55 :style =" inlineFieldsContainerStyle"
66 >
77 <div
8- v-if =" (!showField && !fieldOnly) || cardField"
8+ v-if =" (!showField && !settings. fieldOnly) || settings. cardField"
99 :class =" displayContainerClass"
1010 @click =" settings.cell ? toggleField() : undefined"
1111 >
4444 </div >
4545
4646 <div
47- v-if =" showField || fieldOnly || cardField"
47+ v-if =" showField || settings. fieldOnly || settings. cardField"
4848 :class =" fieldContainerClass"
4949 >
5050 <Teleport
51- :disabled =" !cardField"
51+ :disabled =" !settings. cardField"
5252 :to =" cardFieldRef"
5353 >
5454 <v-checkbox
5555 v-bind =" bindingSettings"
56- :color =" color"
56+ :color =" settings. color"
5757 :density =" settings.density"
5858 :disabled =" loadingProp || disabled"
5959 :error =" error"
6060 :false-icon =" theFalseIcon"
6161 :false-value =" settings.falseValue"
62- :hide-details =" hideDetails"
62+ :hide-details =" settings. hideDetails"
6363 :label =" settings.label"
6464 :model-value =" truthyModelValue"
6565 :true-icon =" theTrueIcon"
8282 #append
8383 >
8484 <SaveFieldButtons
85- :cancel-button-color =" cancelButtonColor"
86- :cancel-button-size =" cancelButtonSize"
87- :cancel-button-title =" cancelButtonTitle"
88- :cancel-button-variant =" cancelButtonVariant"
89- :cancel-icon =" cancelIcon"
90- :cancel-icon-color =" cancelIconColor"
85+ :cancel-button-color =" settings. cancelButtonColor"
86+ :cancel-button-size =" settings. cancelButtonSize"
87+ :cancel-button-title =" settings. cancelButtonTitle"
88+ :cancel-button-variant =" settings. cancelButtonVariant"
89+ :cancel-icon =" settings. cancelIcon"
90+ :cancel-icon-color =" settings. cancelIconColor"
9191 :error =" error"
92- :field-only =" fieldOnly"
93- :hide-cancel-icon =" hideCancelIcon"
92+ :field-only =" settings. fieldOnly"
93+ :hide-cancel-icon =" settings. hideCancelIcon"
9494 :hide-save-icon =" true"
9595 :loading =" loadingProp"
96- :loading-icon =" loadingIcon"
97- :loading-icon-color =" loadingIconColor"
98- :save-button-color =" saveButtonColor"
99- :save-button-size =" saveButtonSize"
100- :save-button-title =" saveButtonTitle"
101- :save-button-variant =" saveButtonVariant"
102- :save-icon =" saveIcon"
103- :save-icon-color =" saveIconColor"
96+ :loading-icon =" settings. loadingIcon"
97+ :loading-icon-color =" settings. loadingIconColor"
98+ :save-button-color =" settings. saveButtonColor"
99+ :save-button-size =" settings. saveButtonSize"
100+ :save-button-title =" settings. saveButtonTitle"
101+ :save-button-variant =" settings. saveButtonVariant"
102+ :save-icon =" settings. saveIcon"
103+ :save-icon-color =" settings. saveIconColor"
104104 @close =" closeField"
105105 @save =" saveValue"
106106 />
111111
112112 <!-- Card Field-->
113113 <div
114- v-if =" cardField"
114+ v-if =" settings. cardField"
115115 :class =" cardContainerClass"
116116 :style =" cardContainerStyle"
117117 >
@@ -172,31 +172,17 @@ const iconOptions = inject<IconOptions>(Symbol.for('vuetify:icons'));
172172const theme = useTheme ();
173173
174174const props = withDefaults (defineProps <VInlineCheckboxProps >(), { ... checkboxProps });
175- let settings = reactive ({ ... attrs , ... props , ... injectedOptions });
176-
177- const { cancelButtonColor,
178- cancelButtonSize,
179- cancelButtonTitle,
180- cancelButtonVariant,
181- cancelIcon,
182- cancelIconColor,
183- cardField,
184- closeSiblings,
185- color,
186- fieldOnly,
187- hideCancelIcon,
188- hideDetails,
189- loadingIcon,
190- loadingIconColor,
191- saveButtonColor,
192- saveButtonSize,
193- saveButtonTitle,
194- saveButtonVariant,
195- saveIcon,
196- saveIconColor } = toRefs (settings );
175+ let settings = reactive ({ ... props , ... injectedOptions });
176+
177+
178+ watchEffect (() => {
179+ settings = reactive ({ ... props , ... injectedOptions });
180+ // console.log(settings.underlineColor);
181+ });
197182
198183const disabled = computed (() => props .disabled );
199184const loadingProp = computed (() => props .loading );
185+ const underlineColor = computed (() => settings .underlineColor );
200186
201187const error = ref <boolean >(false );
202188const showField = ref <boolean >(false );
@@ -293,7 +279,7 @@ const displayValueStyle = computed(() => useDisplayValueStyles({
293279 color: settings .color ,
294280 error ,
295281 theme ,
296- underlineColor: settings . underlineColor ,
282+ underlineColor: underlineColor . value ,
297283 underlineStyle: settings .underlineStyle ,
298284 underlineWidth: settings .underlineWidth ,
299285 underlined: settings .underlined ,
@@ -346,18 +332,20 @@ function toggleField() {
346332
347333 const response = useToggleField ({
348334 attrs ,
349- closeSiblings: closeSiblings . value ,
335+ closeSiblings: settings . closeSiblings ,
350336 fieldOnly: settings .fieldOnly ,
351337 props ,
352338 showField ,
353339 timeOpened: timeOpened .value ,
354340 });
355341
356- settings = { ... settings , ... response .settings };
342+ // ! This breaks reactivity stuff ! //
343+ // settings = reactive({ ...settings, ...response.settings });
344+
357345 showField .value = response .showField ;
358346 timeOpened .value = response .timeOpened ;
359347
360- if (closeSiblingsBus !== null && closeSiblings . value && showField .value && ! settings .fieldOnly ) {
348+ if (closeSiblingsBus !== null && settings . closeSiblings && showField .value && ! settings .fieldOnly ) {
361349 closeSiblingsBus .emit (response .timeOpened );
362350 }
363351}
@@ -381,7 +369,7 @@ function saveValue(value: any) {
381369let closeSiblingsBus: unknown | any ;
382370let unsubscribeBus: () => void ;
383371
384- if (closeSiblings . value ) {
372+ if (settings . closeSiblings ) {
385373 import (' @vueuse/core' ).then (({ useEventBus }) => {
386374 closeSiblingsBus = useEventBus (CloseSiblingsBus );
387375 unsubscribeBus = closeSiblingsBus .on (closeSiblingsListener );
0 commit comments