@sfxcode/nuxt-ui-formkit 1.2.4 → 1.2.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/module.json +1 -1
- package/dist/runtime/components/FUAutoForm.d.vue.ts +7 -8
- package/dist/runtime/components/FUAutoForm.vue +1 -1
- package/dist/runtime/components/FUAutoForm.vue.d.ts +7 -8
- package/dist/runtime/components/FUAutoFormOverlay.d.vue.ts +1 -1
- package/dist/runtime/components/FUAutoFormOverlay.vue.d.ts +1 -1
- package/dist/runtime/components/FUDataEdit.d.vue.ts +7 -7
- package/dist/runtime/components/FUDataEdit.vue +1 -1
- package/dist/runtime/components/FUDataEdit.vue.d.ts +7 -7
- package/dist/runtime/components/FUDataView.d.vue.ts +7 -7
- package/dist/runtime/components/FUDataView.vue +1 -1
- package/dist/runtime/components/FUDataView.vue.d.ts +7 -7
- package/dist/runtime/components/inputs/FUCalendar.vue +2 -2
- package/dist/runtime/components/inputs/FUCheckbox.vue +2 -2
- package/dist/runtime/components/inputs/FUCheckboxGroup.vue +2 -1
- package/dist/runtime/components/inputs/FUColorPicker.vue +2 -2
- package/dist/runtime/components/inputs/FUEditor.vue +2 -2
- package/dist/runtime/components/inputs/FUFileUpload.vue +2 -2
- package/dist/runtime/components/inputs/FUInput.vue +2 -2
- package/dist/runtime/components/inputs/FUInputDate.vue +2 -2
- package/dist/runtime/components/inputs/FUInputMenu.vue +2 -2
- package/dist/runtime/components/inputs/FUInputNumber.vue +2 -2
- package/dist/runtime/components/inputs/FUInputTags.vue +2 -2
- package/dist/runtime/components/inputs/FUInputTime.vue +2 -2
- package/dist/runtime/components/inputs/FUListbox.vue +7 -6
- package/dist/runtime/components/inputs/FUPinInput.vue +2 -2
- package/dist/runtime/components/inputs/FURadioGroup.vue +2 -2
- package/dist/runtime/components/inputs/FUSelect.vue +2 -2
- package/dist/runtime/components/inputs/FUSelectMenu.vue +2 -2
- package/dist/runtime/components/inputs/FUSlider.vue +2 -2
- package/dist/runtime/components/inputs/FUSwitch.vue +2 -2
- package/dist/runtime/components/inputs/FUTextarea.vue +2 -2
- package/dist/runtime/components/output/FUOutputBoolean.d.vue.ts +2 -0
- package/dist/runtime/components/output/FUOutputBoolean.vue.d.ts +2 -0
- package/dist/runtime/components/output/FUOutputDate.d.vue.ts +2 -0
- package/dist/runtime/components/output/FUOutputDate.vue.d.ts +2 -0
- package/dist/runtime/components/output/FUOutputLink.d.vue.ts +2 -0
- package/dist/runtime/components/output/FUOutputLink.vue.d.ts +2 -0
- package/dist/runtime/components/output/FUOutputList.d.vue.ts +2 -0
- package/dist/runtime/components/output/FUOutputList.vue +2 -1
- package/dist/runtime/components/output/FUOutputList.vue.d.ts +2 -0
- package/dist/runtime/components/output/FUOutputNumber.d.vue.ts +2 -0
- package/dist/runtime/components/output/FUOutputNumber.vue.d.ts +2 -0
- package/dist/runtime/components/output/FUOutputText.d.vue.ts +2 -0
- package/dist/runtime/components/output/FUOutputText.vue.d.ts +2 -0
- package/dist/runtime/composables/useFormKitRepeater.js +5 -5
- package/dist/runtime/composables/useFormKitSchema.d.ts +7 -24
- package/dist/runtime/formkit/definitions/output.js +6 -6
- package/dist/runtime/formkit/definitions/output.mjs +6 -6
- package/dist/runtime/formkit/definitions/repeater.js +4 -0
- package/dist/runtime/formkit/definitions/repeater.mjs +4 -0
- package/dist/runtime/formkit/index.d.ts +6 -1
- package/dist/runtime/utils/useFormKitInput.d.ts +1 -0
- package/dist/runtime/utils/useFormKitInput.js +10 -2
- package/dist/runtime/utils/useFormKitOutput.d.ts +25 -0
- package/dist/runtime/utils/useFormKitOutput.js +21 -5
- package/package.json +6 -6
package/dist/module.json
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import type { FormKitSchemaDefinition } from '@formkit/core';
|
|
2
1
|
import type { PropType } from 'vue';
|
|
3
2
|
import type { AutoFormOverrides, ValibotLikeSchema, ZodLikeSchema } from '../composables/useFormKitAutoForm.js';
|
|
4
3
|
declare var __VLS_10: string, __VLS_11: any;
|
|
@@ -7,7 +6,7 @@ type __VLS_Slots = {} & {
|
|
|
7
6
|
};
|
|
8
7
|
declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
9
8
|
data: {
|
|
10
|
-
type:
|
|
9
|
+
type: PropType<Record<string, unknown>>;
|
|
11
10
|
default: null;
|
|
12
11
|
};
|
|
13
12
|
overrides: {
|
|
@@ -23,13 +22,13 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
23
22
|
default: undefined;
|
|
24
23
|
};
|
|
25
24
|
modelValue: {
|
|
26
|
-
type: PropType<
|
|
25
|
+
type: PropType<Record<string, unknown>>;
|
|
27
26
|
};
|
|
28
27
|
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
29
|
-
"update:modelValue": (value:
|
|
28
|
+
"update:modelValue": (value: Record<string, unknown> | undefined) => any;
|
|
30
29
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
31
30
|
data: {
|
|
32
|
-
type:
|
|
31
|
+
type: PropType<Record<string, unknown>>;
|
|
33
32
|
default: null;
|
|
34
33
|
};
|
|
35
34
|
overrides: {
|
|
@@ -45,12 +44,12 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
45
44
|
default: undefined;
|
|
46
45
|
};
|
|
47
46
|
modelValue: {
|
|
48
|
-
type: PropType<
|
|
47
|
+
type: PropType<Record<string, unknown>>;
|
|
49
48
|
};
|
|
50
49
|
}>> & Readonly<{
|
|
51
|
-
"onUpdate:modelValue"?: ((value:
|
|
50
|
+
"onUpdate:modelValue"?: ((value: Record<string, unknown> | undefined) => any) | undefined;
|
|
52
51
|
}>, {
|
|
53
|
-
data: Record<string,
|
|
52
|
+
data: Record<string, unknown>;
|
|
54
53
|
overrides: AutoFormOverrides;
|
|
55
54
|
valibotSchema: ValibotLikeSchema;
|
|
56
55
|
zodSchema: ZodLikeSchema;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import type { FormKitSchemaDefinition } from '@formkit/core';
|
|
2
1
|
import type { PropType } from 'vue';
|
|
3
2
|
import type { AutoFormOverrides, ValibotLikeSchema, ZodLikeSchema } from '../composables/useFormKitAutoForm.js';
|
|
4
3
|
declare var __VLS_10: string, __VLS_11: any;
|
|
@@ -7,7 +6,7 @@ type __VLS_Slots = {} & {
|
|
|
7
6
|
};
|
|
8
7
|
declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
9
8
|
data: {
|
|
10
|
-
type:
|
|
9
|
+
type: PropType<Record<string, unknown>>;
|
|
11
10
|
default: null;
|
|
12
11
|
};
|
|
13
12
|
overrides: {
|
|
@@ -23,13 +22,13 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
23
22
|
default: undefined;
|
|
24
23
|
};
|
|
25
24
|
modelValue: {
|
|
26
|
-
type: PropType<
|
|
25
|
+
type: PropType<Record<string, unknown>>;
|
|
27
26
|
};
|
|
28
27
|
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
29
|
-
"update:modelValue": (value:
|
|
28
|
+
"update:modelValue": (value: Record<string, unknown> | undefined) => any;
|
|
30
29
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
31
30
|
data: {
|
|
32
|
-
type:
|
|
31
|
+
type: PropType<Record<string, unknown>>;
|
|
33
32
|
default: null;
|
|
34
33
|
};
|
|
35
34
|
overrides: {
|
|
@@ -45,12 +44,12 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
45
44
|
default: undefined;
|
|
46
45
|
};
|
|
47
46
|
modelValue: {
|
|
48
|
-
type: PropType<
|
|
47
|
+
type: PropType<Record<string, unknown>>;
|
|
49
48
|
};
|
|
50
49
|
}>> & Readonly<{
|
|
51
|
-
"onUpdate:modelValue"?: ((value:
|
|
50
|
+
"onUpdate:modelValue"?: ((value: Record<string, unknown> | undefined) => any) | undefined;
|
|
52
51
|
}>, {
|
|
53
|
-
data: Record<string,
|
|
52
|
+
data: Record<string, unknown>;
|
|
54
53
|
overrides: AutoFormOverrides;
|
|
55
54
|
valibotSchema: ValibotLikeSchema;
|
|
56
55
|
zodSchema: ZodLikeSchema;
|
|
@@ -73,10 +73,10 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
73
73
|
}>, {
|
|
74
74
|
data: Record<string, any>;
|
|
75
75
|
title: string;
|
|
76
|
+
as: "modal" | "slideover";
|
|
76
77
|
overrides: AutoFormOverrides;
|
|
77
78
|
valibotSchema: ValibotLikeSchema;
|
|
78
79
|
zodSchema: ZodLikeSchema;
|
|
79
|
-
as: "modal" | "slideover";
|
|
80
80
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
81
81
|
declare const _default: typeof __VLS_export;
|
|
82
82
|
export default _default;
|
|
@@ -73,10 +73,10 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
73
73
|
}>, {
|
|
74
74
|
data: Record<string, any>;
|
|
75
75
|
title: string;
|
|
76
|
+
as: "modal" | "slideover";
|
|
76
77
|
overrides: AutoFormOverrides;
|
|
77
78
|
valibotSchema: ValibotLikeSchema;
|
|
78
79
|
zodSchema: ZodLikeSchema;
|
|
79
|
-
as: "modal" | "slideover";
|
|
80
80
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
81
81
|
declare const _default: typeof __VLS_export;
|
|
82
82
|
export default _default;
|
|
@@ -15,7 +15,7 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
15
15
|
default: string;
|
|
16
16
|
};
|
|
17
17
|
data: {
|
|
18
|
-
type:
|
|
18
|
+
type: PropType<Record<string, unknown>>;
|
|
19
19
|
default: null;
|
|
20
20
|
};
|
|
21
21
|
schema: {
|
|
@@ -79,17 +79,17 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
79
79
|
default: boolean;
|
|
80
80
|
};
|
|
81
81
|
modelValue: {
|
|
82
|
-
type: PropType<
|
|
82
|
+
type: PropType<Record<string, unknown>>;
|
|
83
83
|
};
|
|
84
84
|
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
85
|
-
"update:modelValue": (value:
|
|
85
|
+
"update:modelValue": (value: Record<string, unknown> | undefined) => any;
|
|
86
86
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
87
87
|
id: {
|
|
88
88
|
type: StringConstructor;
|
|
89
89
|
default: string;
|
|
90
90
|
};
|
|
91
91
|
data: {
|
|
92
|
-
type:
|
|
92
|
+
type: PropType<Record<string, unknown>>;
|
|
93
93
|
default: null;
|
|
94
94
|
};
|
|
95
95
|
schema: {
|
|
@@ -153,13 +153,13 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
153
153
|
default: boolean;
|
|
154
154
|
};
|
|
155
155
|
modelValue: {
|
|
156
|
-
type: PropType<
|
|
156
|
+
type: PropType<Record<string, unknown>>;
|
|
157
157
|
};
|
|
158
158
|
}>> & Readonly<{
|
|
159
|
-
"onUpdate:modelValue"?: ((value:
|
|
159
|
+
"onUpdate:modelValue"?: ((value: Record<string, unknown> | undefined) => any) | undefined;
|
|
160
160
|
}>, {
|
|
161
161
|
schema: FormKitSchemaDefinition;
|
|
162
|
-
data: Record<string,
|
|
162
|
+
data: Record<string, unknown>;
|
|
163
163
|
id: string;
|
|
164
164
|
standardSchema: StandardSchemaV1<unknown, unknown>;
|
|
165
165
|
formClass: string;
|
|
@@ -82,7 +82,7 @@ useFormKitContextById(props.id, (context) => {
|
|
|
82
82
|
});
|
|
83
83
|
onScopeDispose(() => detachStandardSchema?.());
|
|
84
84
|
const formSchema = ref(props.schema);
|
|
85
|
-
const formData = defineModel({ type:
|
|
85
|
+
const formData = defineModel({ type: Object });
|
|
86
86
|
watch(() => props.schema, (newSchema) => {
|
|
87
87
|
formSchema.value = newSchema;
|
|
88
88
|
}, { deep: true });
|
|
@@ -15,7 +15,7 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
15
15
|
default: string;
|
|
16
16
|
};
|
|
17
17
|
data: {
|
|
18
|
-
type:
|
|
18
|
+
type: PropType<Record<string, unknown>>;
|
|
19
19
|
default: null;
|
|
20
20
|
};
|
|
21
21
|
schema: {
|
|
@@ -79,17 +79,17 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
79
79
|
default: boolean;
|
|
80
80
|
};
|
|
81
81
|
modelValue: {
|
|
82
|
-
type: PropType<
|
|
82
|
+
type: PropType<Record<string, unknown>>;
|
|
83
83
|
};
|
|
84
84
|
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
85
|
-
"update:modelValue": (value:
|
|
85
|
+
"update:modelValue": (value: Record<string, unknown> | undefined) => any;
|
|
86
86
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
87
87
|
id: {
|
|
88
88
|
type: StringConstructor;
|
|
89
89
|
default: string;
|
|
90
90
|
};
|
|
91
91
|
data: {
|
|
92
|
-
type:
|
|
92
|
+
type: PropType<Record<string, unknown>>;
|
|
93
93
|
default: null;
|
|
94
94
|
};
|
|
95
95
|
schema: {
|
|
@@ -153,13 +153,13 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
153
153
|
default: boolean;
|
|
154
154
|
};
|
|
155
155
|
modelValue: {
|
|
156
|
-
type: PropType<
|
|
156
|
+
type: PropType<Record<string, unknown>>;
|
|
157
157
|
};
|
|
158
158
|
}>> & Readonly<{
|
|
159
|
-
"onUpdate:modelValue"?: ((value:
|
|
159
|
+
"onUpdate:modelValue"?: ((value: Record<string, unknown> | undefined) => any) | undefined;
|
|
160
160
|
}>, {
|
|
161
161
|
schema: FormKitSchemaDefinition;
|
|
162
|
-
data: Record<string,
|
|
162
|
+
data: Record<string, unknown>;
|
|
163
163
|
id: string;
|
|
164
164
|
standardSchema: StandardSchemaV1<unknown, unknown>;
|
|
165
165
|
formClass: string;
|
|
@@ -6,7 +6,7 @@ type __VLS_Slots = {} & {
|
|
|
6
6
|
};
|
|
7
7
|
declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
8
8
|
data: {
|
|
9
|
-
type:
|
|
9
|
+
type: PropType<Record<string, unknown>>;
|
|
10
10
|
default: null;
|
|
11
11
|
};
|
|
12
12
|
schema: {
|
|
@@ -26,13 +26,13 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
26
26
|
default: boolean;
|
|
27
27
|
};
|
|
28
28
|
modelValue: {
|
|
29
|
-
type: PropType<
|
|
29
|
+
type: PropType<Record<string, unknown>>;
|
|
30
30
|
};
|
|
31
31
|
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
32
|
-
"update:modelValue": (value:
|
|
32
|
+
"update:modelValue": (value: Record<string, unknown> | undefined) => any;
|
|
33
33
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
34
34
|
data: {
|
|
35
|
-
type:
|
|
35
|
+
type: PropType<Record<string, unknown>>;
|
|
36
36
|
default: null;
|
|
37
37
|
};
|
|
38
38
|
schema: {
|
|
@@ -52,13 +52,13 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
52
52
|
default: boolean;
|
|
53
53
|
};
|
|
54
54
|
modelValue: {
|
|
55
|
-
type: PropType<
|
|
55
|
+
type: PropType<Record<string, unknown>>;
|
|
56
56
|
};
|
|
57
57
|
}>> & Readonly<{
|
|
58
|
-
"onUpdate:modelValue"?: ((value:
|
|
58
|
+
"onUpdate:modelValue"?: ((value: Record<string, unknown> | undefined) => any) | undefined;
|
|
59
59
|
}>, {
|
|
60
60
|
schema: FormKitSchemaDefinition;
|
|
61
|
-
data: Record<string,
|
|
61
|
+
data: Record<string, unknown>;
|
|
62
62
|
formClass: string;
|
|
63
63
|
debugData: boolean;
|
|
64
64
|
debugSchema: boolean;
|
|
@@ -25,7 +25,7 @@ const props = defineProps({
|
|
|
25
25
|
}
|
|
26
26
|
});
|
|
27
27
|
const formSchema = ref(props.schema);
|
|
28
|
-
const formData = defineModel({ type:
|
|
28
|
+
const formData = defineModel({ type: Object });
|
|
29
29
|
watch(() => props.schema, (newSchema) => {
|
|
30
30
|
formSchema.value = newSchema;
|
|
31
31
|
}, { deep: true });
|
|
@@ -6,7 +6,7 @@ type __VLS_Slots = {} & {
|
|
|
6
6
|
};
|
|
7
7
|
declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
8
8
|
data: {
|
|
9
|
-
type:
|
|
9
|
+
type: PropType<Record<string, unknown>>;
|
|
10
10
|
default: null;
|
|
11
11
|
};
|
|
12
12
|
schema: {
|
|
@@ -26,13 +26,13 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
26
26
|
default: boolean;
|
|
27
27
|
};
|
|
28
28
|
modelValue: {
|
|
29
|
-
type: PropType<
|
|
29
|
+
type: PropType<Record<string, unknown>>;
|
|
30
30
|
};
|
|
31
31
|
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
32
|
-
"update:modelValue": (value:
|
|
32
|
+
"update:modelValue": (value: Record<string, unknown> | undefined) => any;
|
|
33
33
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
34
34
|
data: {
|
|
35
|
-
type:
|
|
35
|
+
type: PropType<Record<string, unknown>>;
|
|
36
36
|
default: null;
|
|
37
37
|
};
|
|
38
38
|
schema: {
|
|
@@ -52,13 +52,13 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
52
52
|
default: boolean;
|
|
53
53
|
};
|
|
54
54
|
modelValue: {
|
|
55
|
-
type: PropType<
|
|
55
|
+
type: PropType<Record<string, unknown>>;
|
|
56
56
|
};
|
|
57
57
|
}>> & Readonly<{
|
|
58
|
-
"onUpdate:modelValue"?: ((value:
|
|
58
|
+
"onUpdate:modelValue"?: ((value: Record<string, unknown> | undefined) => any) | undefined;
|
|
59
59
|
}>, {
|
|
60
60
|
schema: FormKitSchemaDefinition;
|
|
61
|
-
data: Record<string,
|
|
61
|
+
data: Record<string, unknown>;
|
|
62
62
|
formClass: string;
|
|
63
63
|
debugData: boolean;
|
|
64
64
|
debugSchema: boolean;
|
|
@@ -9,7 +9,7 @@ const props = defineProps({
|
|
|
9
9
|
required: true
|
|
10
10
|
}
|
|
11
11
|
});
|
|
12
|
-
const { handleInput, styleClass, color, validSlotNames } = useFormKitInput(props.context);
|
|
12
|
+
const { handleInput, styleClass, color, validSlotNames, ui } = useFormKitInput(props.context);
|
|
13
13
|
const handleContainerBlur = createContainerBlurHandler(props.context);
|
|
14
14
|
const conversionOptions = computed(() => ({ timeZone: props.context.timeZone }));
|
|
15
15
|
const modelValue = computed({
|
|
@@ -46,7 +46,7 @@ const maxValue = computed(() => toDateValue(props.context.maxValue, conversionOp
|
|
|
46
46
|
:max-value="maxValue"
|
|
47
47
|
:is-date-disabled="context.isDateDisabled"
|
|
48
48
|
:is-date-unavailable="context.isDateUnavailable"
|
|
49
|
-
:ui="
|
|
49
|
+
:ui="ui"
|
|
50
50
|
@update:model-value="handleInput"
|
|
51
51
|
@focusout="handleContainerBlur"
|
|
52
52
|
>
|
|
@@ -6,7 +6,7 @@ const props = defineProps({
|
|
|
6
6
|
required: true
|
|
7
7
|
}
|
|
8
8
|
});
|
|
9
|
-
const { handleInput, handleChange, handleBlur, styleClass, modelValue, color, validSlotNames } = useFormKitInput(props.context);
|
|
9
|
+
const { handleInput, handleChange, handleBlur, styleClass, modelValue, color, validSlotNames, ui } = useFormKitInput(props.context);
|
|
10
10
|
</script>
|
|
11
11
|
|
|
12
12
|
<template>
|
|
@@ -28,7 +28,7 @@ const { handleInput, handleChange, handleBlur, styleClass, modelValue, color, va
|
|
|
28
28
|
:true-value="context.trueValue"
|
|
29
29
|
:false-value="context.falseValue"
|
|
30
30
|
:autofocus="context.autofocus"
|
|
31
|
-
:ui="
|
|
31
|
+
:ui="ui"
|
|
32
32
|
@change="handleChange"
|
|
33
33
|
@update:model-value="handleInput"
|
|
34
34
|
@blur="handleBlur"
|
|
@@ -7,7 +7,7 @@ const props = defineProps({
|
|
|
7
7
|
required: true
|
|
8
8
|
}
|
|
9
9
|
});
|
|
10
|
-
const { handleInput, handleChange, styleClass, color, modelValue, items, validSlotNames } = useFormKitInput(props.context);
|
|
10
|
+
const { handleInput, handleChange, styleClass, color, modelValue, items, validSlotNames, ui } = useFormKitInput(props.context);
|
|
11
11
|
const handleContainerBlur = createContainerBlurHandler(props.context);
|
|
12
12
|
</script>
|
|
13
13
|
|
|
@@ -31,6 +31,7 @@ const handleContainerBlur = createContainerBlurHandler(props.context);
|
|
|
31
31
|
:description-key="context.descriptionKey"
|
|
32
32
|
:loop="context.loop ?? false"
|
|
33
33
|
:name="context.name"
|
|
34
|
+
:ui="ui"
|
|
34
35
|
@change="handleChange"
|
|
35
36
|
@update:model-value="handleInput"
|
|
36
37
|
@focusout="handleContainerBlur"
|
|
@@ -6,7 +6,7 @@ const props = defineProps({
|
|
|
6
6
|
required: true
|
|
7
7
|
}
|
|
8
8
|
});
|
|
9
|
-
const { handleInput, handleChange, styleClass, modelValue } = useFormKitInput(props.context);
|
|
9
|
+
const { handleInput, handleChange, styleClass, modelValue, ui } = useFormKitInput(props.context);
|
|
10
10
|
</script>
|
|
11
11
|
|
|
12
12
|
<template>
|
|
@@ -20,7 +20,7 @@ const { handleInput, handleChange, styleClass, modelValue } = useFormKitInput(pr
|
|
|
20
20
|
:size="context.size ?? 'md'"
|
|
21
21
|
:format="context.format || 'hex'"
|
|
22
22
|
:throttle="context.throttle"
|
|
23
|
-
:ui="
|
|
23
|
+
:ui="ui"
|
|
24
24
|
@change="handleChange"
|
|
25
25
|
@update:model-value="handleInput"
|
|
26
26
|
/>
|
|
@@ -61,7 +61,7 @@ const props = defineProps({
|
|
|
61
61
|
required: true
|
|
62
62
|
}
|
|
63
63
|
});
|
|
64
|
-
const { handleInput, styleClass, modelValue } = useFormKitInput(props.context);
|
|
64
|
+
const { handleInput, styleClass, modelValue, ui } = useFormKitInput(props.context);
|
|
65
65
|
const handleContainerBlur = createContainerBlurHandler(props.context);
|
|
66
66
|
</script>
|
|
67
67
|
|
|
@@ -83,7 +83,7 @@ const handleContainerBlur = createContainerBlurHandler(props.context);
|
|
|
83
83
|
:handlers="context.editorHandlers"
|
|
84
84
|
:extensions="context.extensions"
|
|
85
85
|
:autofocus="context.autofocus"
|
|
86
|
-
:ui="
|
|
86
|
+
:ui="ui"
|
|
87
87
|
@update:model-value="handleInput"
|
|
88
88
|
>
|
|
89
89
|
<template #default="{ editor, handlers }">
|
|
@@ -6,7 +6,7 @@ const props = defineProps({
|
|
|
6
6
|
required: true
|
|
7
7
|
}
|
|
8
8
|
});
|
|
9
|
-
const { handleInput, handleChange, handleBlur, isInvalid, styleClass, color, modelValue, validSlotNames } = useFormKitInput(props.context);
|
|
9
|
+
const { handleInput, handleChange, handleBlur, isInvalid, styleClass, color, modelValue, validSlotNames, ui } = useFormKitInput(props.context);
|
|
10
10
|
</script>
|
|
11
11
|
|
|
12
12
|
<template>
|
|
@@ -38,7 +38,7 @@ const { handleInput, handleChange, handleBlur, isInvalid, styleClass, color, mod
|
|
|
38
38
|
:file-delete-icon="context.fileDeleteIcon"
|
|
39
39
|
:preview="context.preview"
|
|
40
40
|
:name="context.name"
|
|
41
|
-
:ui="
|
|
41
|
+
:ui="ui"
|
|
42
42
|
@change="handleChange"
|
|
43
43
|
@update:model-value="handleInput"
|
|
44
44
|
@blur="handleBlur"
|
|
@@ -6,7 +6,7 @@ const props = defineProps({
|
|
|
6
6
|
required: true
|
|
7
7
|
}
|
|
8
8
|
});
|
|
9
|
-
const { handleInput, handleChange, handleBlur, isInvalid, styleClass, color, modelValue, validSlotNames } = useFormKitInput(props.context);
|
|
9
|
+
const { handleInput, handleChange, handleBlur, isInvalid, styleClass, color, modelValue, validSlotNames, ui } = useFormKitInput(props.context);
|
|
10
10
|
</script>
|
|
11
11
|
|
|
12
12
|
<template>
|
|
@@ -43,7 +43,7 @@ const { handleInput, handleChange, handleBlur, isInvalid, styleClass, color, mod
|
|
|
43
43
|
:min-length="context.minLength"
|
|
44
44
|
:pattern="context.pattern"
|
|
45
45
|
:step="context.step"
|
|
46
|
-
:ui="
|
|
46
|
+
:ui="ui"
|
|
47
47
|
@change="handleChange"
|
|
48
48
|
@update:model-value="handleInput"
|
|
49
49
|
@blur="handleBlur"
|
|
@@ -9,7 +9,7 @@ const props = defineProps({
|
|
|
9
9
|
required: true
|
|
10
10
|
}
|
|
11
11
|
});
|
|
12
|
-
const { handleInput, handleChange, handleBlur, isInvalid, styleClass, color, validSlotNames } = useFormKitInput(props.context);
|
|
12
|
+
const { handleInput, handleChange, handleBlur, isInvalid, styleClass, color, validSlotNames, ui } = useFormKitInput(props.context);
|
|
13
13
|
const handleContainerBlur = createContainerBlurHandler(props.context);
|
|
14
14
|
const conversionOptions = computed(() => ({
|
|
15
15
|
granularity: props.context.granularity,
|
|
@@ -65,7 +65,7 @@ const minValue = computed(() => toDateValue(props.context.minValue, conversionOp
|
|
|
65
65
|
:max-value="maxValue"
|
|
66
66
|
:min-value="minValue"
|
|
67
67
|
:is-date-unavailable="context.isDateUnavailable"
|
|
68
|
-
:ui="
|
|
68
|
+
:ui="ui"
|
|
69
69
|
@change="handleChange"
|
|
70
70
|
@update:model-value="handleInput"
|
|
71
71
|
@blur="handleBlur"
|
|
@@ -6,7 +6,7 @@ const props = defineProps({
|
|
|
6
6
|
required: true
|
|
7
7
|
}
|
|
8
8
|
});
|
|
9
|
-
const { handleInput, handleChange, handleBlur, isInvalid, styleClass, color, modelValue, items, validSlotNames } = useFormKitInput(props.context);
|
|
9
|
+
const { handleInput, handleChange, handleBlur, isInvalid, styleClass, color, modelValue, items, validSlotNames, ui } = useFormKitInput(props.context);
|
|
10
10
|
</script>
|
|
11
11
|
|
|
12
12
|
<template>
|
|
@@ -62,7 +62,7 @@ const { handleInput, handleChange, handleBlur, isInvalid, styleClass, color, mod
|
|
|
62
62
|
:list="context.list"
|
|
63
63
|
:autocomplete="context.autocomplete"
|
|
64
64
|
:search-term="context.searchTerm"
|
|
65
|
-
:ui="
|
|
65
|
+
:ui="ui"
|
|
66
66
|
@change="handleChange"
|
|
67
67
|
@update:model-value="handleInput"
|
|
68
68
|
@blur="handleBlur"
|
|
@@ -6,7 +6,7 @@ const props = defineProps({
|
|
|
6
6
|
required: true
|
|
7
7
|
}
|
|
8
8
|
});
|
|
9
|
-
const { handleInput, handleChange, handleBlur, isInvalid, styleClass, color, modelValue, validSlotNames } = useFormKitInput(props.context);
|
|
9
|
+
const { handleInput, handleChange, handleBlur, isInvalid, styleClass, color, modelValue, validSlotNames, ui } = useFormKitInput(props.context);
|
|
10
10
|
</script>
|
|
11
11
|
|
|
12
12
|
<template>
|
|
@@ -44,7 +44,7 @@ const { handleInput, handleChange, handleBlur, isInvalid, styleClass, color, mod
|
|
|
44
44
|
:placeholder="context.placeholder"
|
|
45
45
|
:list="context.list"
|
|
46
46
|
:autocomplete="context.autocomplete"
|
|
47
|
-
:ui="
|
|
47
|
+
:ui="ui"
|
|
48
48
|
@change="handleChange"
|
|
49
49
|
@update:model-value="handleInput"
|
|
50
50
|
@blur="handleBlur"
|
|
@@ -6,7 +6,7 @@ const props = defineProps({
|
|
|
6
6
|
required: true
|
|
7
7
|
}
|
|
8
8
|
});
|
|
9
|
-
const { handleInput, handleChange, handleBlur, isInvalid, styleClass, color, modelValue, validSlotNames } = useFormKitInput(props.context);
|
|
9
|
+
const { handleInput, handleChange, handleBlur, isInvalid, styleClass, color, modelValue, validSlotNames, ui } = useFormKitInput(props.context);
|
|
10
10
|
</script>
|
|
11
11
|
|
|
12
12
|
<template>
|
|
@@ -46,7 +46,7 @@ const { handleInput, handleChange, handleBlur, isInvalid, styleClass, color, mod
|
|
|
46
46
|
:loading-icon="context.loadingIcon"
|
|
47
47
|
:list="context.list"
|
|
48
48
|
:autocomplete="context.autocomplete || 'off'"
|
|
49
|
-
:ui="
|
|
49
|
+
:ui="ui"
|
|
50
50
|
@change="handleChange"
|
|
51
51
|
@update:model-value="handleInput"
|
|
52
52
|
@blur="handleBlur"
|
|
@@ -7,7 +7,7 @@ const props = defineProps({
|
|
|
7
7
|
required: true
|
|
8
8
|
}
|
|
9
9
|
});
|
|
10
|
-
const { handleInput, handleChange, handleBlur, isInvalid, styleClass, color, modelValue, validSlotNames } = useFormKitInput(props.context);
|
|
10
|
+
const { handleInput, handleChange, handleBlur, isInvalid, styleClass, color, modelValue, validSlotNames, ui } = useFormKitInput(props.context);
|
|
11
11
|
const handleContainerBlur = createContainerBlurHandler(props.context);
|
|
12
12
|
</script>
|
|
13
13
|
|
|
@@ -45,7 +45,7 @@ const handleContainerBlur = createContainerBlurHandler(props.context);
|
|
|
45
45
|
:hide-time-zone="context.hideTimeZone"
|
|
46
46
|
:max-value="context.maxValue"
|
|
47
47
|
:min-value="context.minValue"
|
|
48
|
-
:ui="
|
|
48
|
+
:ui="ui"
|
|
49
49
|
@change="handleChange"
|
|
50
50
|
@update:model-value="handleInput"
|
|
51
51
|
@blur="handleBlur"
|
|
@@ -8,7 +8,7 @@ const props = defineProps({
|
|
|
8
8
|
required: true
|
|
9
9
|
}
|
|
10
10
|
});
|
|
11
|
-
const { handleInput, handleChange, isInvalid, styleClass, color, modelValue, items, validSlotNames } = useFormKitInput(props.context);
|
|
11
|
+
const { handleInput, handleChange, isInvalid, styleClass, color, modelValue, items, validSlotNames, ui } = useFormKitInput(props.context);
|
|
12
12
|
const handleContainerBlur = createContainerBlurHandler(props.context);
|
|
13
13
|
const targetItems = ref(modelValue.value || []);
|
|
14
14
|
const sourceSelection = ref([]);
|
|
@@ -24,6 +24,7 @@ const sourceItems = computed(() => {
|
|
|
24
24
|
return items.value.filter((item) => !targetItems.value.some((t) => t[valueKey] === item[valueKey]));
|
|
25
25
|
});
|
|
26
26
|
const transferSlotNames = computed(() => validSlotNames.value.filter((name) => name !== "item-trailing"));
|
|
27
|
+
const transferDefaultValue = computed(() => props.context.defaultValue);
|
|
27
28
|
const sourceContainerRef = ref();
|
|
28
29
|
const targetContainerRef = ref();
|
|
29
30
|
const sourceDragActive = ref(false);
|
|
@@ -239,7 +240,7 @@ watch(targetItems, (newVal) => {
|
|
|
239
240
|
:autofocus="context.autofocus"
|
|
240
241
|
:autofocus-delay="context.autofocusDelay"
|
|
241
242
|
:search-term="context.searchTerm"
|
|
242
|
-
:ui="
|
|
243
|
+
:ui="ui"
|
|
243
244
|
@change="handleChange"
|
|
244
245
|
@update:model-value="handleInput"
|
|
245
246
|
@focusout="handleContainerBlur"
|
|
@@ -287,7 +288,7 @@ watch(targetItems, (newVal) => {
|
|
|
287
288
|
:orientation="context.orientation"
|
|
288
289
|
:selection-behavior="context.selectionBehavior"
|
|
289
290
|
:disabled="!!context?.disabled"
|
|
290
|
-
:default-value="
|
|
291
|
+
:default-value="transferDefaultValue"
|
|
291
292
|
:multiple="true"
|
|
292
293
|
:value-key="context.valueKey"
|
|
293
294
|
:label-key="context.labelKey"
|
|
@@ -304,7 +305,7 @@ watch(targetItems, (newVal) => {
|
|
|
304
305
|
:autofocus="context.autofocus"
|
|
305
306
|
:autofocus-delay="context.autofocusDelay"
|
|
306
307
|
:search-term="context.searchTerm"
|
|
307
|
-
:ui="
|
|
308
|
+
:ui="ui"
|
|
308
309
|
@change="handleChange"
|
|
309
310
|
@update:model-value="handleInput"
|
|
310
311
|
>
|
|
@@ -389,7 +390,7 @@ watch(targetItems, (newVal) => {
|
|
|
389
390
|
:orientation="context.orientation"
|
|
390
391
|
:selection-behavior="context.selectionBehavior"
|
|
391
392
|
:disabled="!!context?.disabled"
|
|
392
|
-
:default-value="
|
|
393
|
+
:default-value="transferDefaultValue"
|
|
393
394
|
:multiple="true"
|
|
394
395
|
:value-key="context.valueKey"
|
|
395
396
|
:label-key="context.labelKey"
|
|
@@ -406,7 +407,7 @@ watch(targetItems, (newVal) => {
|
|
|
406
407
|
:autofocus="context.autofocus"
|
|
407
408
|
:autofocus-delay="context.autofocusDelay"
|
|
408
409
|
:search-term="context.searchTerm"
|
|
409
|
-
:ui="
|
|
410
|
+
:ui="ui"
|
|
410
411
|
@change="handleChange"
|
|
411
412
|
@update:model-value="handleInput"
|
|
412
413
|
>
|
|
@@ -7,7 +7,7 @@ const props = defineProps({
|
|
|
7
7
|
required: true
|
|
8
8
|
}
|
|
9
9
|
});
|
|
10
|
-
const { handleInput, handleChange, handleBlur, isInvalid, styleClass, color, modelValue } = useFormKitInput(props.context);
|
|
10
|
+
const { handleInput, handleChange, handleBlur, isInvalid, styleClass, color, modelValue, ui } = useFormKitInput(props.context);
|
|
11
11
|
const handleContainerBlur = createContainerBlurHandler(props.context);
|
|
12
12
|
function handlePinBlur(event) {
|
|
13
13
|
handleBlur(event);
|
|
@@ -37,7 +37,7 @@ function handlePinBlur(event) {
|
|
|
37
37
|
:separator="context.separator"
|
|
38
38
|
:type="context.type ?? 'text'"
|
|
39
39
|
:placeholder="context.placeholder"
|
|
40
|
-
:ui="
|
|
40
|
+
:ui="ui"
|
|
41
41
|
@change="handleChange"
|
|
42
42
|
@update:model-value="handleInput"
|
|
43
43
|
@blur="handlePinBlur"
|