From 2e225814df217b2f3533290e377f5677633ff282 Mon Sep 17 00:00:00 2001 From: Venkatesh Date: Tue, 4 Feb 2025 15:12:38 +0530 Subject: [PATCH 1/3] fix: circuitname in property panel --- src/components/MessageBox/messageBox.vue | 172 ++++++++++-------- .../ModuleProperty/ModuleProperty.vue | 14 +- .../ProjectProperty/ProjectProperty.vue | 40 ++-- .../PropertiesPanel/PropertiesPanel.vue | 2 +- .../promptComponent/PromptComponent.vue | 22 ++- src/simulator/src/circuit.ts | 10 +- src/store/SimulatorStore/state.ts | 6 +- src/store/promptStore.ts | 4 +- src/store/propertiesPanelStore.ts | 2 +- 9 files changed, 155 insertions(+), 117 deletions(-) diff --git a/src/components/MessageBox/messageBox.vue b/src/components/MessageBox/messageBox.vue index f008946f..ed526222 100644 --- a/src/components/MessageBox/messageBox.vue +++ b/src/components/MessageBox/messageBox.vue @@ -1,82 +1,100 @@ - + {{ buttonItem.text }} + + + + + - + defineProps({ + messageText: { type: String, default: '' }, + isPersistent: { type: Boolean, default: false }, + buttonList: { + type: Array<{ + text: string + emitOption: string | boolean + }>, default: () => [] + }, + inputList: { + type: Array<{ + text: string + val: string + placeholder: string + id: string + class: string + style: string + type: string + }>, default: () => [] + }, + inputClass: { type: String, default: '' }, + tableHeader: { type: Array, default: () => [] }, + tableBody: { type: Array, default: () => [] }, + }) + - + diff --git a/src/components/Panels/PropertiesPanel/ModuleProperty/ModuleProperty.vue b/src/components/Panels/PropertiesPanel/ModuleProperty/ModuleProperty.vue index 7d6dfa91..e3923104 100644 --- a/src/components/Panels/PropertiesPanel/ModuleProperty/ModuleProperty.vue +++ b/src/components/Panels/PropertiesPanel/ModuleProperty/ModuleProperty.vue @@ -10,15 +10,15 @@ - + @@ -34,10 +34,10 @@ import { ref, toRefs } from 'vue' import { onMounted } from 'vue' const props = defineProps({ - panleBodyData: { type: Object, default: undefined }, + panelBodyData: { type: Object, default: undefined }, panelType: { type: Number, default: 1 }, panelBodyHeader: { type: String, default: 'Properties' }, }) -const { panleBodyData, panelType, panelBodyHeader } = toRefs(props) +const { panelBodyData, panelType, panelBodyHeader } = toRefs(props) diff --git a/src/components/Panels/PropertiesPanel/ModuleProperty/ProjectProperty/ProjectProperty.vue b/src/components/Panels/PropertiesPanel/ModuleProperty/ProjectProperty/ProjectProperty.vue index 8c2dd05d..acc575ef 100644 --- a/src/components/Panels/PropertiesPanel/ModuleProperty/ProjectProperty/ProjectProperty.vue +++ b/src/components/Panels/PropertiesPanel/ModuleProperty/ProjectProperty/ProjectProperty.vue @@ -15,14 +15,13 @@

Circuit:

@@ -96,27 +95,35 @@ @@ -140,10 +146,12 @@ export const provideCircuitName = async (): Promise => {