From 5e84ac66f03026102ab90726dab1392c5c2a695f Mon Sep 17 00:00:00 2001 From: WebDevNerdStuff Date: Mon, 26 Jun 2023 15:25:02 -0700 Subject: [PATCH 01/14] Fixing save to toggle if loadingWait is false --- src/plugin/VInlineCheckbox.vue | 5 ++++- src/plugin/VInlineSelect.vue | 4 ++++ src/plugin/VInlineSwitch.vue | 4 ++++ src/plugin/VInlineTextField.vue | 5 +++++ src/plugin/VInlineTextarea.vue | 4 ++++ 5 files changed, 21 insertions(+), 1 deletion(-) diff --git a/src/plugin/VInlineCheckbox.vue b/src/plugin/VInlineCheckbox.vue index 02443af..41321de 100644 --- a/src/plugin/VInlineCheckbox.vue +++ b/src/plugin/VInlineCheckbox.vue @@ -256,7 +256,10 @@ function saveValue(value: any) { modelValue.value = value; emit('update', value); - toggleField(); + + if (!settings.loadingWait) { + toggleField(); + } } diff --git a/src/plugin/VInlineSelect.vue b/src/plugin/VInlineSelect.vue index c5ac8be..11ce1cb 100644 --- a/src/plugin/VInlineSelect.vue +++ b/src/plugin/VInlineSelect.vue @@ -294,6 +294,10 @@ function saveValue() { originalValue = modelValue.value; emit('update', modelValue.value); + + if (!settings.loadingWait) { + toggleField(); + } } diff --git a/src/plugin/VInlineSwitch.vue b/src/plugin/VInlineSwitch.vue index 73d6e4b..52c069f 100644 --- a/src/plugin/VInlineSwitch.vue +++ b/src/plugin/VInlineSwitch.vue @@ -236,6 +236,10 @@ function saveValue(value: any) { modelValue.value = value; emit('update', value); + + if (!settings.loadingWait) { + toggleField(); + } } diff --git a/src/plugin/VInlineTextField.vue b/src/plugin/VInlineTextField.vue index bc875c0..b607590 100644 --- a/src/plugin/VInlineTextField.vue +++ b/src/plugin/VInlineTextField.vue @@ -216,6 +216,7 @@ function closeField() { // ------------------------------------------------ Toggle the field // function toggleField() { + console.log('settings.loadingWait', settings.loadingWait); if (settings.disabled || (settings.loadingWait && props.loading)) { return; } @@ -278,6 +279,10 @@ function saveValue() { originalValue = modelValue.value; emit('update', modelValue.value); + + if (!settings.loadingWait) { + toggleField(); + } } diff --git a/src/plugin/VInlineTextarea.vue b/src/plugin/VInlineTextarea.vue index 378b10c..b6fd716 100644 --- a/src/plugin/VInlineTextarea.vue +++ b/src/plugin/VInlineTextarea.vue @@ -275,6 +275,10 @@ function saveValue() { originalValue = modelValue.value; emit('update', modelValue.value); + + if (!settings.loadingWait) { + toggleField(); + } } From 562a97e814c5ad79c12488cc7038ced1976e650f Mon Sep 17 00:00:00 2001 From: WebDevNerdStuff Date: Mon, 26 Jun 2023 16:56:18 -0700 Subject: [PATCH 02/14] Updating docs --- src/documentation/DocsPage.vue | 19 +++++++++++++++++++ .../components/CheckboxComponent.vue | 4 ++-- .../components/SelectComponent.vue | 4 ++-- .../components/SwitchComponent.vue | 4 ++-- .../components/TextFieldComponent.vue | 4 ++-- .../components/TextareaComponent.vue | 4 ++-- .../sections/ComponentsSection.vue | 14 -------------- src/documentation/sections/PropsSection.vue | 4 ++-- 8 files changed, 31 insertions(+), 26 deletions(-) diff --git a/src/documentation/DocsPage.vue b/src/documentation/DocsPage.vue index 0cf425b..e9fa31d 100644 --- a/src/documentation/DocsPage.vue +++ b/src/documentation/DocsPage.vue @@ -131,5 +131,24 @@ const componentVersion = ref(packageInfo.version); provide('classes', classes); + + diff --git a/src/documentation/components/CheckboxComponent.vue b/src/documentation/components/CheckboxComponent.vue index e296b1a..49a51c5 100644 --- a/src/documentation/components/CheckboxComponent.vue +++ b/src/documentation/components/CheckboxComponent.vue @@ -25,8 +25,8 @@ @@ -52,7 +52,7 @@ :items="propsStore.vInlineCheckboxProps" section-id="inline-checkbox-props" section-title="Props" - subtitle="These are all props for the VInlineCheckbox component" + subtitle="These are all props for the VInlineCheckbox component" /> diff --git a/src/documentation/components/SelectComponent.vue b/src/documentation/components/SelectComponent.vue index c012a2d..8c88a85 100644 --- a/src/documentation/components/SelectComponent.vue +++ b/src/documentation/components/SelectComponent.vue @@ -26,10 +26,10 @@ v-model="values.select" align-items="flex-end" :density="density" - do-not-save item-title="state" item-value="abbr" :items="items" + :loading-wait="false" :table-field="false" :variant="variant" > @@ -64,7 +64,7 @@ :items="propsStore.vInlineSelectProps" section-id="inline-select-props" section-title="Props" - subtitle="These are all props for the VInlineSelect component" + subtitle="These are all props for the VInlineSelect component" /> diff --git a/src/documentation/components/SwitchComponent.vue b/src/documentation/components/SwitchComponent.vue index 058ce45..69aa63d 100644 --- a/src/documentation/components/SwitchComponent.vue +++ b/src/documentation/components/SwitchComponent.vue @@ -25,8 +25,8 @@ @@ -51,7 +51,7 @@ :items="propsStore.vInlineSwitchProps" section-id="inline-switch-props" section-title="Props" - subtitle="These are all props for the VInlineSwitch component" + subtitle="These are all props for the VInlineSwitch component" /> diff --git a/src/documentation/components/TextFieldComponent.vue b/src/documentation/components/TextFieldComponent.vue index 0cba430..a3d9d84 100644 --- a/src/documentation/components/TextFieldComponent.vue +++ b/src/documentation/components/TextFieldComponent.vue @@ -26,7 +26,7 @@ v-model="values.textField" align-items="flex-end" :density="density" - do-not-save + :loading-wait="false" :table-field="false" :variant="variant" > @@ -53,7 +53,7 @@ :items="propsStore.vInlineTextFieldProps" section-id="inline-text-field-props" section-title="Props" - subtitle="These are all props for the VInlineTextField component" + subtitle="These are all props for the VInlineTextField component" /> diff --git a/src/documentation/components/TextareaComponent.vue b/src/documentation/components/TextareaComponent.vue index cf62a59..34d9328 100644 --- a/src/documentation/components/TextareaComponent.vue +++ b/src/documentation/components/TextareaComponent.vue @@ -26,7 +26,7 @@ v-model="values.textField" align-items="flex-start" :density="density" - do-not-save + :loading-wait="false" rows="1" :table-field="true" :variant="variant" @@ -55,7 +55,7 @@ :items="propsStore.vInlineTextareaProps" section-id="inline-textarea-props" section-title="Props" - subtitle="These are all props for the VInlineTextarea component" + subtitle="These are all props for the VInlineTextarea component" /> diff --git a/src/documentation/sections/ComponentsSection.vue b/src/documentation/sections/ComponentsSection.vue index fdb6dd0..ddbbc7a 100644 --- a/src/documentation/sections/ComponentsSection.vue +++ b/src/documentation/sections/ComponentsSection.vue @@ -47,20 +47,6 @@ const store = useCoreStore();