From 1ed8284996c402ca1a87d0ec62d0a6663e75aad9 Mon Sep 17 00:00:00 2001 From: Robert Kossessa Date: Sat, 9 Mar 2024 17:59:34 +0100 Subject: [PATCH] ADD: ValueCards --- .../src/components/common/ConfigSection.vue | 4 +- .../components/config/actions/ActionCard.vue | 40 +++-- .../components/config/actions/ActionGroup.vue | 2 +- .../config/actions/SendKeyAction.vue | 2 +- .../config/keys/KeyMappingConfig.vue | 2 +- .../config/knob/KnobMappingConfig.vue | 89 ++-------- .../config/values/TriggerActionsValue.vue | 33 ++++ .../components/config/values/ValueCard.vue | 168 ++++++++++++++++++ .../components/config/values/ValueGroup.vue | 42 +++++ 9 files changed, 287 insertions(+), 95 deletions(-) create mode 100644 src/renderer/src/components/config/values/TriggerActionsValue.vue create mode 100644 src/renderer/src/components/config/values/ValueCard.vue create mode 100644 src/renderer/src/components/config/values/ValueGroup.vue diff --git a/src/renderer/src/components/common/ConfigSection.vue b/src/renderer/src/components/common/ConfigSection.vue index fcd59bd..6c116ac 100644 --- a/src/renderer/src/components/common/ConfigSection.vue +++ b/src/renderer/src/components/common/ConfigSection.vue @@ -1,6 +1,6 @@ @@ -102,7 +113,7 @@ defineProps({ } }) -const actionOptions = ref({ +const actionTypeOptions = ref({ sendKey: { label: 'Press Key or Combination', component: SendKeyAction }, sendString: { label: 'Type a String', component: SendStringAction }, sendMouse: { label: 'Move, Scroll or Click', component: 'SendMouseAction' }, @@ -110,9 +121,6 @@ const actionOptions = ref({ sendMidi: { label: 'Send a MIDI Message', component: 'SendMidiAction' }, sendOsc: { label: 'Send an OSC Message', component: 'SendOscAction' }, sendSerial: { label: 'Send a Serial Message', component: 'SendSerialAction' }, - controlMedia: { label: 'Control Media Playback', component: 'ControlMediaAction' }, - controlSystem: { label: 'Control your OS', component: 'ControlSystemAction' }, - runProgram: { label: 'Start a Program', component: 'RunProgramAction' }, changeProfile: { label: 'Change Device Profile', component: 'ChangeProfileAction' } }) @@ -120,6 +128,6 @@ const comboboxButton = ref(null) const { width } = useElementSize(comboboxButton) const open = ref(false) -const value = ref('') +const inputValue = ref('') const confirmDelete = ref(false) diff --git a/src/renderer/src/components/config/actions/ActionGroup.vue b/src/renderer/src/components/config/actions/ActionGroup.vue index acd84ed..1e1ec5a 100644 --- a/src/renderer/src/components/config/actions/ActionGroup.vue +++ b/src/renderer/src/components/config/actions/ActionGroup.vue @@ -1,5 +1,5 @@