@sfxcode/formkit-primevue 3.3.0 → 3.3.1
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/README.md +13 -138
- package/dist/PrimeTreeSelect-Dksx7tL-.js +1881 -0
- package/dist/components/index.d.ts +2 -24
- package/dist/components/index.js +4 -167
- package/dist/components-HJnJ39cU.js +255 -0
- package/dist/composables/index.d.ts +2 -9
- package/dist/composables/index.js +2 -61
- package/dist/composables-CZ6f1QYe.js +820 -0
- package/dist/definitions/index.d.ts +37 -32
- package/dist/definitions/index.js +4 -42
- package/dist/definitions-BHwWaom7.js +1196 -0
- package/dist/index-Ch3MtT1C.d.ts +266 -0
- package/dist/index-EJ8M51RO.d.ts +917 -0
- package/dist/index.d.ts +146 -143
- package/dist/index.js +5 -62
- package/dist/plugins/index.d.ts +7 -3
- package/dist/plugins/index.js +45 -57
- package/dist/sass/formkit-primevue.scss +99 -101
- package/package.json +32 -117
- package/LICENSE +0 -21
- package/components.d.ts +0 -1
- package/dist/components/FormKitDataDebug.d.vue.ts +0 -24
- package/dist/components/FormKitDataDebug.vue +0 -23
- package/dist/components/FormKitDataDebug.vue.d.ts +0 -24
- package/dist/components/FormKitDataEdit.d.vue.ts +0 -180
- package/dist/components/FormKitDataEdit.vue +0 -126
- package/dist/components/FormKitDataEdit.vue.d.ts +0 -180
- package/dist/components/FormKitDataView.d.vue.ts +0 -73
- package/dist/components/FormKitDataView.vue +0 -58
- package/dist/components/FormKitDataView.vue.d.ts +0 -73
- package/dist/components/FormKitIcon.d.vue.ts +0 -39
- package/dist/components/FormKitIcon.vue +0 -25
- package/dist/components/FormKitIcon.vue.d.ts +0 -39
- package/dist/components/FormKitPrefix.d.vue.ts +0 -7
- package/dist/components/FormKitPrefix.vue +0 -11
- package/dist/components/FormKitPrefix.vue.d.ts +0 -7
- package/dist/components/FormKitSuffix.d.vue.ts +0 -7
- package/dist/components/FormKitSuffix.vue +0 -11
- package/dist/components/FormKitSuffix.vue.d.ts +0 -7
- package/dist/components/PrimeAutoComplete.d.vue.ts +0 -31
- package/dist/components/PrimeAutoComplete.vue +0 -140
- package/dist/components/PrimeAutoComplete.vue.d.ts +0 -31
- package/dist/components/PrimeCascadeSelect.d.vue.ts +0 -28
- package/dist/components/PrimeCascadeSelect.vue +0 -62
- package/dist/components/PrimeCascadeSelect.vue.d.ts +0 -28
- package/dist/components/PrimeCheckbox.d.vue.ts +0 -27
- package/dist/components/PrimeCheckbox.vue +0 -71
- package/dist/components/PrimeCheckbox.vue.d.ts +0 -27
- package/dist/components/PrimeColorPicker.d.vue.ts +0 -24
- package/dist/components/PrimeColorPicker.vue +0 -48
- package/dist/components/PrimeColorPicker.vue.d.ts +0 -24
- package/dist/components/PrimeDatePicker.d.vue.ts +0 -63
- package/dist/components/PrimeDatePicker.vue +0 -153
- package/dist/components/PrimeDatePicker.vue.d.ts +0 -63
- package/dist/components/PrimeInputMask.d.vue.ts +0 -28
- package/dist/components/PrimeInputMask.vue +0 -88
- package/dist/components/PrimeInputMask.vue.d.ts +0 -28
- package/dist/components/PrimeInputNumber.d.vue.ts +0 -36
- package/dist/components/PrimeInputNumber.vue +0 -110
- package/dist/components/PrimeInputNumber.vue.d.ts +0 -36
- package/dist/components/PrimeInputOtp.d.vue.ts +0 -26
- package/dist/components/PrimeInputOtp.vue +0 -59
- package/dist/components/PrimeInputOtp.vue.d.ts +0 -26
- package/dist/components/PrimeInputText.d.vue.ts +0 -24
- package/dist/components/PrimeInputText.vue +0 -80
- package/dist/components/PrimeInputText.vue.d.ts +0 -24
- package/dist/components/PrimeKnob.d.vue.ts +0 -31
- package/dist/components/PrimeKnob.vue +0 -75
- package/dist/components/PrimeKnob.vue.d.ts +0 -31
- package/dist/components/PrimeListbox.d.vue.ts +0 -42
- package/dist/components/PrimeListbox.vue +0 -86
- package/dist/components/PrimeListbox.vue.d.ts +0 -42
- package/dist/components/PrimeMultiSelect.d.vue.ts +0 -53
- package/dist/components/PrimeMultiSelect.vue +0 -115
- package/dist/components/PrimeMultiSelect.vue.d.ts +0 -53
- package/dist/components/PrimeOutputBoolean.d.vue.ts +0 -16
- package/dist/components/PrimeOutputBoolean.vue +0 -41
- package/dist/components/PrimeOutputBoolean.vue.d.ts +0 -16
- package/dist/components/PrimeOutputDate.d.vue.ts +0 -16
- package/dist/components/PrimeOutputDate.vue +0 -51
- package/dist/components/PrimeOutputDate.vue.d.ts +0 -16
- package/dist/components/PrimeOutputDuration.d.vue.ts +0 -16
- package/dist/components/PrimeOutputDuration.vue +0 -32
- package/dist/components/PrimeOutputDuration.vue.d.ts +0 -16
- package/dist/components/PrimeOutputLink.d.vue.ts +0 -16
- package/dist/components/PrimeOutputLink.vue +0 -50
- package/dist/components/PrimeOutputLink.vue.d.ts +0 -16
- package/dist/components/PrimeOutputList.d.vue.ts +0 -19
- package/dist/components/PrimeOutputList.vue +0 -75
- package/dist/components/PrimeOutputList.vue.d.ts +0 -19
- package/dist/components/PrimeOutputNumber.d.vue.ts +0 -16
- package/dist/components/PrimeOutputNumber.vue +0 -59
- package/dist/components/PrimeOutputNumber.vue.d.ts +0 -16
- package/dist/components/PrimeOutputReference.d.vue.ts +0 -16
- package/dist/components/PrimeOutputReference.vue +0 -62
- package/dist/components/PrimeOutputReference.vue.d.ts +0 -16
- package/dist/components/PrimeOutputText.d.vue.ts +0 -22
- package/dist/components/PrimeOutputText.vue +0 -72
- package/dist/components/PrimeOutputText.vue.d.ts +0 -22
- package/dist/components/PrimePassword.d.vue.ts +0 -33
- package/dist/components/PrimePassword.vue +0 -73
- package/dist/components/PrimePassword.vue.d.ts +0 -33
- package/dist/components/PrimeRadioButton.d.vue.ts +0 -28
- package/dist/components/PrimeRadioButton.vue +0 -58
- package/dist/components/PrimeRadioButton.vue.d.ts +0 -28
- package/dist/components/PrimeRating.d.vue.ts +0 -24
- package/dist/components/PrimeRating.vue +0 -55
- package/dist/components/PrimeRating.vue.d.ts +0 -24
- package/dist/components/PrimeSelect.d.vue.ts +0 -50
- package/dist/components/PrimeSelect.vue +0 -113
- package/dist/components/PrimeSelect.vue.d.ts +0 -50
- package/dist/components/PrimeSelectButton.d.vue.ts +0 -28
- package/dist/components/PrimeSelectButton.vue +0 -64
- package/dist/components/PrimeSelectButton.vue.d.ts +0 -28
- package/dist/components/PrimeSlider.d.vue.ts +0 -26
- package/dist/components/PrimeSlider.vue +0 -60
- package/dist/components/PrimeSlider.vue.d.ts +0 -26
- package/dist/components/PrimeTextarea.d.vue.ts +0 -25
- package/dist/components/PrimeTextarea.vue +0 -53
- package/dist/components/PrimeTextarea.vue.d.ts +0 -25
- package/dist/components/PrimeToggleButton.d.vue.ts +0 -26
- package/dist/components/PrimeToggleButton.vue +0 -60
- package/dist/components/PrimeToggleButton.vue.d.ts +0 -26
- package/dist/components/PrimeToggleSwitch.d.vue.ts +0 -23
- package/dist/components/PrimeToggleSwitch.vue +0 -57
- package/dist/components/PrimeToggleSwitch.vue.d.ts +0 -23
- package/dist/components/PrimeTreeSelect.d.vue.ts +0 -32
- package/dist/components/PrimeTreeSelect.vue +0 -71
- package/dist/components/PrimeTreeSelect.vue.d.ts +0 -32
- package/dist/components/index.mjs +0 -48
- package/dist/composables/index.mjs +0 -18
- package/dist/composables/useFormKitInput.d.ts +0 -11
- package/dist/composables/useFormKitInput.js +0 -58
- package/dist/composables/useFormKitInput.mjs +0 -45
- package/dist/composables/useFormKitRepeater.d.ts +0 -15
- package/dist/composables/useFormKitRepeater.js +0 -74
- package/dist/composables/useFormKitRepeater.mjs +0 -54
- package/dist/composables/useFormKitSchema.d.ts +0 -36
- package/dist/composables/useFormKitSchema.js +0 -83
- package/dist/composables/useFormKitSchema.mjs +0 -58
- package/dist/composables/useFormKitSection.d.ts +0 -7
- package/dist/composables/useFormKitSection.js +0 -31
- package/dist/composables/useFormKitSection.mjs +0 -19
- package/dist/composables/useInputEditor.d.ts +0 -8
- package/dist/composables/useInputEditor.js +0 -148
- package/dist/composables/useInputEditor.mjs +0 -143
- package/dist/composables/useInputEditorSchema.d.ts +0 -163
- package/dist/composables/useInputEditorSchema.js +0 -313
- package/dist/composables/useInputEditorSchema.mjs +0 -315
- package/dist/composables/useOutputDuration.d.ts +0 -4
- package/dist/composables/useOutputDuration.js +0 -40
- package/dist/composables/useOutputDuration.mjs +0 -35
- package/dist/composables/usePrimeInputs.d.ts +0 -3
- package/dist/composables/usePrimeInputs.js +0 -62
- package/dist/composables/usePrimeInputs.mjs +0 -53
- package/dist/definitions/index.mjs +0 -68
- package/dist/definitions/input.d.ts +0 -47
- package/dist/definitions/input.js +0 -142
- package/dist/definitions/input.mjs +0 -135
- package/dist/definitions/output.d.ts +0 -9
- package/dist/definitions/output.js +0 -46
- package/dist/definitions/output.mjs +0 -39
- package/dist/index.mjs +0 -14
- package/dist/plugins/index.mjs +0 -55
|
@@ -1,180 +0,0 @@
|
|
|
1
|
-
import type { FormKitSchemaDefinition } from '@formkit/core';
|
|
2
|
-
import type { PropType } from 'vue';
|
|
3
|
-
declare var __VLS_16: {}, __VLS_29: {}, __VLS_37: {};
|
|
4
|
-
type __VLS_Slots = {} & {
|
|
5
|
-
default?: (props: typeof __VLS_16) => any;
|
|
6
|
-
} & {
|
|
7
|
-
messages?: (props: typeof __VLS_29) => any;
|
|
8
|
-
} & {
|
|
9
|
-
submit?: (props: typeof __VLS_37) => any;
|
|
10
|
-
};
|
|
11
|
-
declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
12
|
-
id: {
|
|
13
|
-
type: StringConstructor;
|
|
14
|
-
default: string;
|
|
15
|
-
};
|
|
16
|
-
data: {
|
|
17
|
-
type: ObjectConstructor;
|
|
18
|
-
default: null;
|
|
19
|
-
};
|
|
20
|
-
schema: {
|
|
21
|
-
type: PropType<FormKitSchemaDefinition>;
|
|
22
|
-
default: null;
|
|
23
|
-
};
|
|
24
|
-
formClass: {
|
|
25
|
-
type: StringConstructor;
|
|
26
|
-
default: string;
|
|
27
|
-
};
|
|
28
|
-
actionsClass: {
|
|
29
|
-
type: StringConstructor;
|
|
30
|
-
default: string;
|
|
31
|
-
};
|
|
32
|
-
submitSeverity: {
|
|
33
|
-
type: StringConstructor;
|
|
34
|
-
default: string;
|
|
35
|
-
};
|
|
36
|
-
submitClass: {
|
|
37
|
-
type: StringConstructor;
|
|
38
|
-
default: string;
|
|
39
|
-
};
|
|
40
|
-
submitLabel: {
|
|
41
|
-
type: StringConstructor;
|
|
42
|
-
default: string;
|
|
43
|
-
};
|
|
44
|
-
submitIcon: {
|
|
45
|
-
type: StringConstructor;
|
|
46
|
-
default: string;
|
|
47
|
-
};
|
|
48
|
-
showReset: {
|
|
49
|
-
type: BooleanConstructor;
|
|
50
|
-
default: boolean;
|
|
51
|
-
};
|
|
52
|
-
resetSeverity: {
|
|
53
|
-
type: StringConstructor;
|
|
54
|
-
default: string;
|
|
55
|
-
};
|
|
56
|
-
resetLabel: {
|
|
57
|
-
type: StringConstructor;
|
|
58
|
-
default: string;
|
|
59
|
-
};
|
|
60
|
-
resetClass: {
|
|
61
|
-
type: StringConstructor;
|
|
62
|
-
default: string;
|
|
63
|
-
};
|
|
64
|
-
resetIcon: {
|
|
65
|
-
type: StringConstructor;
|
|
66
|
-
default: string;
|
|
67
|
-
};
|
|
68
|
-
debugData: {
|
|
69
|
-
type: BooleanConstructor;
|
|
70
|
-
default: boolean;
|
|
71
|
-
};
|
|
72
|
-
debugSchema: {
|
|
73
|
-
type: BooleanConstructor;
|
|
74
|
-
default: boolean;
|
|
75
|
-
};
|
|
76
|
-
modelValue: {
|
|
77
|
-
type: PropType<any>;
|
|
78
|
-
};
|
|
79
|
-
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
80
|
-
onReset: (...args: any[]) => void;
|
|
81
|
-
dataSaved: (...args: any[]) => void;
|
|
82
|
-
"update:modelValue": (value: any) => void;
|
|
83
|
-
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
84
|
-
id: {
|
|
85
|
-
type: StringConstructor;
|
|
86
|
-
default: string;
|
|
87
|
-
};
|
|
88
|
-
data: {
|
|
89
|
-
type: ObjectConstructor;
|
|
90
|
-
default: null;
|
|
91
|
-
};
|
|
92
|
-
schema: {
|
|
93
|
-
type: PropType<FormKitSchemaDefinition>;
|
|
94
|
-
default: null;
|
|
95
|
-
};
|
|
96
|
-
formClass: {
|
|
97
|
-
type: StringConstructor;
|
|
98
|
-
default: string;
|
|
99
|
-
};
|
|
100
|
-
actionsClass: {
|
|
101
|
-
type: StringConstructor;
|
|
102
|
-
default: string;
|
|
103
|
-
};
|
|
104
|
-
submitSeverity: {
|
|
105
|
-
type: StringConstructor;
|
|
106
|
-
default: string;
|
|
107
|
-
};
|
|
108
|
-
submitClass: {
|
|
109
|
-
type: StringConstructor;
|
|
110
|
-
default: string;
|
|
111
|
-
};
|
|
112
|
-
submitLabel: {
|
|
113
|
-
type: StringConstructor;
|
|
114
|
-
default: string;
|
|
115
|
-
};
|
|
116
|
-
submitIcon: {
|
|
117
|
-
type: StringConstructor;
|
|
118
|
-
default: string;
|
|
119
|
-
};
|
|
120
|
-
showReset: {
|
|
121
|
-
type: BooleanConstructor;
|
|
122
|
-
default: boolean;
|
|
123
|
-
};
|
|
124
|
-
resetSeverity: {
|
|
125
|
-
type: StringConstructor;
|
|
126
|
-
default: string;
|
|
127
|
-
};
|
|
128
|
-
resetLabel: {
|
|
129
|
-
type: StringConstructor;
|
|
130
|
-
default: string;
|
|
131
|
-
};
|
|
132
|
-
resetClass: {
|
|
133
|
-
type: StringConstructor;
|
|
134
|
-
default: string;
|
|
135
|
-
};
|
|
136
|
-
resetIcon: {
|
|
137
|
-
type: StringConstructor;
|
|
138
|
-
default: string;
|
|
139
|
-
};
|
|
140
|
-
debugData: {
|
|
141
|
-
type: BooleanConstructor;
|
|
142
|
-
default: boolean;
|
|
143
|
-
};
|
|
144
|
-
debugSchema: {
|
|
145
|
-
type: BooleanConstructor;
|
|
146
|
-
default: boolean;
|
|
147
|
-
};
|
|
148
|
-
modelValue: {
|
|
149
|
-
type: PropType<any>;
|
|
150
|
-
};
|
|
151
|
-
}>> & Readonly<{
|
|
152
|
-
onOnReset?: ((...args: any[]) => any) | undefined;
|
|
153
|
-
onDataSaved?: ((...args: any[]) => any) | undefined;
|
|
154
|
-
"onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
|
155
|
-
}>, {
|
|
156
|
-
data: Record<string, any>;
|
|
157
|
-
id: string;
|
|
158
|
-
schema: FormKitSchemaDefinition;
|
|
159
|
-
formClass: string;
|
|
160
|
-
actionsClass: string;
|
|
161
|
-
submitSeverity: string;
|
|
162
|
-
submitClass: string;
|
|
163
|
-
submitLabel: string;
|
|
164
|
-
submitIcon: string;
|
|
165
|
-
showReset: boolean;
|
|
166
|
-
resetSeverity: string;
|
|
167
|
-
resetLabel: string;
|
|
168
|
-
resetClass: string;
|
|
169
|
-
resetIcon: string;
|
|
170
|
-
debugData: boolean;
|
|
171
|
-
debugSchema: boolean;
|
|
172
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
173
|
-
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
174
|
-
declare const _default: typeof __VLS_export;
|
|
175
|
-
export default _default;
|
|
176
|
-
type __VLS_WithSlots<T, S> = T & {
|
|
177
|
-
new (): {
|
|
178
|
-
$slots: S;
|
|
179
|
-
};
|
|
180
|
-
};
|
|
@@ -1,126 +0,0 @@
|
|
|
1
|
-
<script setup lang='ts'>
|
|
2
|
-
import type { FormKitSchemaDefinition } from '@formkit/core'
|
|
3
|
-
import type { PropType } from 'vue'
|
|
4
|
-
import { reset } from '@formkit/core'
|
|
5
|
-
import { FormKit, FormKitMessages, FormKitSchema } from '@formkit/vue'
|
|
6
|
-
import { ref } from 'vue'
|
|
7
|
-
import FormKitDataDebug from './FormKitDataDebug.vue'
|
|
8
|
-
|
|
9
|
-
const props = defineProps({
|
|
10
|
-
id: {
|
|
11
|
-
type: String,
|
|
12
|
-
default: 'formkit_form',
|
|
13
|
-
},
|
|
14
|
-
data: {
|
|
15
|
-
type: Object,
|
|
16
|
-
default: null,
|
|
17
|
-
},
|
|
18
|
-
schema: {
|
|
19
|
-
type: Object as PropType<FormKitSchemaDefinition>,
|
|
20
|
-
default: null,
|
|
21
|
-
},
|
|
22
|
-
formClass: {
|
|
23
|
-
type: String,
|
|
24
|
-
default: '',
|
|
25
|
-
},
|
|
26
|
-
actionsClass: {
|
|
27
|
-
type: String,
|
|
28
|
-
default: '',
|
|
29
|
-
},
|
|
30
|
-
submitSeverity: {
|
|
31
|
-
type: String,
|
|
32
|
-
default: '',
|
|
33
|
-
},
|
|
34
|
-
submitClass: {
|
|
35
|
-
type: String,
|
|
36
|
-
default: '',
|
|
37
|
-
},
|
|
38
|
-
submitLabel: {
|
|
39
|
-
type: String,
|
|
40
|
-
default: 'Save',
|
|
41
|
-
},
|
|
42
|
-
submitIcon: {
|
|
43
|
-
type: String,
|
|
44
|
-
default: '',
|
|
45
|
-
},
|
|
46
|
-
showReset: {
|
|
47
|
-
type: Boolean,
|
|
48
|
-
default: false,
|
|
49
|
-
},
|
|
50
|
-
resetSeverity: {
|
|
51
|
-
type: String,
|
|
52
|
-
default: 'danger',
|
|
53
|
-
},
|
|
54
|
-
resetLabel: {
|
|
55
|
-
type: String,
|
|
56
|
-
default: 'Reset',
|
|
57
|
-
},
|
|
58
|
-
resetClass: {
|
|
59
|
-
type: String,
|
|
60
|
-
default: '',
|
|
61
|
-
},
|
|
62
|
-
resetIcon: {
|
|
63
|
-
type: String,
|
|
64
|
-
default: '',
|
|
65
|
-
},
|
|
66
|
-
debugData: {
|
|
67
|
-
type: Boolean,
|
|
68
|
-
default: false,
|
|
69
|
-
},
|
|
70
|
-
debugSchema: {
|
|
71
|
-
type: Boolean,
|
|
72
|
-
default: false,
|
|
73
|
-
},
|
|
74
|
-
})
|
|
75
|
-
const emit = defineEmits(['dataSaved', 'onReset'])
|
|
76
|
-
|
|
77
|
-
const formData = defineModel<any>()
|
|
78
|
-
|
|
79
|
-
if (props.data) {
|
|
80
|
-
formData.value = props.data
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
const formSchema = ref(props.schema)
|
|
84
|
-
|
|
85
|
-
function handleSave() {
|
|
86
|
-
emit('dataSaved', formData.value)
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
function handleReset() {
|
|
90
|
-
reset(props.id)
|
|
91
|
-
emit('onReset')
|
|
92
|
-
}
|
|
93
|
-
</script>
|
|
94
|
-
|
|
95
|
-
<template>
|
|
96
|
-
<FormKit
|
|
97
|
-
:id="id"
|
|
98
|
-
v-model="formData"
|
|
99
|
-
:actions-class="actionsClass"
|
|
100
|
-
:form-class="`p-formkit-data-edit ${formClass}`"
|
|
101
|
-
type="form"
|
|
102
|
-
@submit="handleSave"
|
|
103
|
-
>
|
|
104
|
-
<template #default>
|
|
105
|
-
<FormKitSchema v-if="formSchema" :schema="formSchema" :data="formData" />
|
|
106
|
-
<slot />
|
|
107
|
-
<FormKitDataDebug v-if="debugData" :data="formData" header="Debug Mode - Data" />
|
|
108
|
-
<FormKitDataDebug v-if="debugSchema" :data="formSchema as object" header="Debug Mode - Schema" />
|
|
109
|
-
</template>
|
|
110
|
-
<template #messages>
|
|
111
|
-
<slot name="messages">
|
|
112
|
-
<FormKitMessages class="p-formkit-data-edit-messages" />
|
|
113
|
-
</slot>
|
|
114
|
-
</template>
|
|
115
|
-
<template #submit>
|
|
116
|
-
<slot name="submit">
|
|
117
|
-
<Button :icon="submitIcon" type="submit" :label="submitLabel" :class="submitClass" :severity="submitSeverity" @submit="handleSave" />
|
|
118
|
-
<Button v-if="showReset" type="reset" :icon="resetIcon" :label="resetLabel" :class="resetClass" :severity="resetSeverity" @click="handleReset" />
|
|
119
|
-
</slot>
|
|
120
|
-
</template>
|
|
121
|
-
</FormKit>
|
|
122
|
-
</template>
|
|
123
|
-
|
|
124
|
-
<style scoped>
|
|
125
|
-
|
|
126
|
-
</style>
|
|
@@ -1,180 +0,0 @@
|
|
|
1
|
-
import type { FormKitSchemaDefinition } from '@formkit/core';
|
|
2
|
-
import type { PropType } from 'vue';
|
|
3
|
-
declare var __VLS_16: {}, __VLS_29: {}, __VLS_37: {};
|
|
4
|
-
type __VLS_Slots = {} & {
|
|
5
|
-
default?: (props: typeof __VLS_16) => any;
|
|
6
|
-
} & {
|
|
7
|
-
messages?: (props: typeof __VLS_29) => any;
|
|
8
|
-
} & {
|
|
9
|
-
submit?: (props: typeof __VLS_37) => any;
|
|
10
|
-
};
|
|
11
|
-
declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
12
|
-
id: {
|
|
13
|
-
type: StringConstructor;
|
|
14
|
-
default: string;
|
|
15
|
-
};
|
|
16
|
-
data: {
|
|
17
|
-
type: ObjectConstructor;
|
|
18
|
-
default: null;
|
|
19
|
-
};
|
|
20
|
-
schema: {
|
|
21
|
-
type: PropType<FormKitSchemaDefinition>;
|
|
22
|
-
default: null;
|
|
23
|
-
};
|
|
24
|
-
formClass: {
|
|
25
|
-
type: StringConstructor;
|
|
26
|
-
default: string;
|
|
27
|
-
};
|
|
28
|
-
actionsClass: {
|
|
29
|
-
type: StringConstructor;
|
|
30
|
-
default: string;
|
|
31
|
-
};
|
|
32
|
-
submitSeverity: {
|
|
33
|
-
type: StringConstructor;
|
|
34
|
-
default: string;
|
|
35
|
-
};
|
|
36
|
-
submitClass: {
|
|
37
|
-
type: StringConstructor;
|
|
38
|
-
default: string;
|
|
39
|
-
};
|
|
40
|
-
submitLabel: {
|
|
41
|
-
type: StringConstructor;
|
|
42
|
-
default: string;
|
|
43
|
-
};
|
|
44
|
-
submitIcon: {
|
|
45
|
-
type: StringConstructor;
|
|
46
|
-
default: string;
|
|
47
|
-
};
|
|
48
|
-
showReset: {
|
|
49
|
-
type: BooleanConstructor;
|
|
50
|
-
default: boolean;
|
|
51
|
-
};
|
|
52
|
-
resetSeverity: {
|
|
53
|
-
type: StringConstructor;
|
|
54
|
-
default: string;
|
|
55
|
-
};
|
|
56
|
-
resetLabel: {
|
|
57
|
-
type: StringConstructor;
|
|
58
|
-
default: string;
|
|
59
|
-
};
|
|
60
|
-
resetClass: {
|
|
61
|
-
type: StringConstructor;
|
|
62
|
-
default: string;
|
|
63
|
-
};
|
|
64
|
-
resetIcon: {
|
|
65
|
-
type: StringConstructor;
|
|
66
|
-
default: string;
|
|
67
|
-
};
|
|
68
|
-
debugData: {
|
|
69
|
-
type: BooleanConstructor;
|
|
70
|
-
default: boolean;
|
|
71
|
-
};
|
|
72
|
-
debugSchema: {
|
|
73
|
-
type: BooleanConstructor;
|
|
74
|
-
default: boolean;
|
|
75
|
-
};
|
|
76
|
-
modelValue: {
|
|
77
|
-
type: PropType<any>;
|
|
78
|
-
};
|
|
79
|
-
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
80
|
-
onReset: (...args: any[]) => void;
|
|
81
|
-
dataSaved: (...args: any[]) => void;
|
|
82
|
-
"update:modelValue": (value: any) => void;
|
|
83
|
-
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
84
|
-
id: {
|
|
85
|
-
type: StringConstructor;
|
|
86
|
-
default: string;
|
|
87
|
-
};
|
|
88
|
-
data: {
|
|
89
|
-
type: ObjectConstructor;
|
|
90
|
-
default: null;
|
|
91
|
-
};
|
|
92
|
-
schema: {
|
|
93
|
-
type: PropType<FormKitSchemaDefinition>;
|
|
94
|
-
default: null;
|
|
95
|
-
};
|
|
96
|
-
formClass: {
|
|
97
|
-
type: StringConstructor;
|
|
98
|
-
default: string;
|
|
99
|
-
};
|
|
100
|
-
actionsClass: {
|
|
101
|
-
type: StringConstructor;
|
|
102
|
-
default: string;
|
|
103
|
-
};
|
|
104
|
-
submitSeverity: {
|
|
105
|
-
type: StringConstructor;
|
|
106
|
-
default: string;
|
|
107
|
-
};
|
|
108
|
-
submitClass: {
|
|
109
|
-
type: StringConstructor;
|
|
110
|
-
default: string;
|
|
111
|
-
};
|
|
112
|
-
submitLabel: {
|
|
113
|
-
type: StringConstructor;
|
|
114
|
-
default: string;
|
|
115
|
-
};
|
|
116
|
-
submitIcon: {
|
|
117
|
-
type: StringConstructor;
|
|
118
|
-
default: string;
|
|
119
|
-
};
|
|
120
|
-
showReset: {
|
|
121
|
-
type: BooleanConstructor;
|
|
122
|
-
default: boolean;
|
|
123
|
-
};
|
|
124
|
-
resetSeverity: {
|
|
125
|
-
type: StringConstructor;
|
|
126
|
-
default: string;
|
|
127
|
-
};
|
|
128
|
-
resetLabel: {
|
|
129
|
-
type: StringConstructor;
|
|
130
|
-
default: string;
|
|
131
|
-
};
|
|
132
|
-
resetClass: {
|
|
133
|
-
type: StringConstructor;
|
|
134
|
-
default: string;
|
|
135
|
-
};
|
|
136
|
-
resetIcon: {
|
|
137
|
-
type: StringConstructor;
|
|
138
|
-
default: string;
|
|
139
|
-
};
|
|
140
|
-
debugData: {
|
|
141
|
-
type: BooleanConstructor;
|
|
142
|
-
default: boolean;
|
|
143
|
-
};
|
|
144
|
-
debugSchema: {
|
|
145
|
-
type: BooleanConstructor;
|
|
146
|
-
default: boolean;
|
|
147
|
-
};
|
|
148
|
-
modelValue: {
|
|
149
|
-
type: PropType<any>;
|
|
150
|
-
};
|
|
151
|
-
}>> & Readonly<{
|
|
152
|
-
onOnReset?: ((...args: any[]) => any) | undefined;
|
|
153
|
-
onDataSaved?: ((...args: any[]) => any) | undefined;
|
|
154
|
-
"onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
|
155
|
-
}>, {
|
|
156
|
-
data: Record<string, any>;
|
|
157
|
-
id: string;
|
|
158
|
-
schema: FormKitSchemaDefinition;
|
|
159
|
-
formClass: string;
|
|
160
|
-
actionsClass: string;
|
|
161
|
-
submitSeverity: string;
|
|
162
|
-
submitClass: string;
|
|
163
|
-
submitLabel: string;
|
|
164
|
-
submitIcon: string;
|
|
165
|
-
showReset: boolean;
|
|
166
|
-
resetSeverity: string;
|
|
167
|
-
resetLabel: string;
|
|
168
|
-
resetClass: string;
|
|
169
|
-
resetIcon: string;
|
|
170
|
-
debugData: boolean;
|
|
171
|
-
debugSchema: boolean;
|
|
172
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
173
|
-
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
174
|
-
declare const _default: typeof __VLS_export;
|
|
175
|
-
export default _default;
|
|
176
|
-
type __VLS_WithSlots<T, S> = T & {
|
|
177
|
-
new (): {
|
|
178
|
-
$slots: S;
|
|
179
|
-
};
|
|
180
|
-
};
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
import type { FormKitSchemaDefinition } from '@formkit/core';
|
|
2
|
-
import type { PropType } from 'vue';
|
|
3
|
-
declare var __VLS_13: {};
|
|
4
|
-
type __VLS_Slots = {} & {
|
|
5
|
-
default?: (props: typeof __VLS_13) => any;
|
|
6
|
-
};
|
|
7
|
-
declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
8
|
-
data: {
|
|
9
|
-
type: ObjectConstructor;
|
|
10
|
-
default: null;
|
|
11
|
-
};
|
|
12
|
-
schema: {
|
|
13
|
-
type: PropType<FormKitSchemaDefinition>;
|
|
14
|
-
default: null;
|
|
15
|
-
};
|
|
16
|
-
formClass: {
|
|
17
|
-
type: StringConstructor;
|
|
18
|
-
default: string;
|
|
19
|
-
};
|
|
20
|
-
debugData: {
|
|
21
|
-
type: BooleanConstructor;
|
|
22
|
-
default: boolean;
|
|
23
|
-
};
|
|
24
|
-
debugSchema: {
|
|
25
|
-
type: BooleanConstructor;
|
|
26
|
-
default: boolean;
|
|
27
|
-
};
|
|
28
|
-
modelValue: {
|
|
29
|
-
type: PropType<any>;
|
|
30
|
-
};
|
|
31
|
-
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
32
|
-
"update:modelValue": (value: any) => any;
|
|
33
|
-
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
34
|
-
data: {
|
|
35
|
-
type: ObjectConstructor;
|
|
36
|
-
default: null;
|
|
37
|
-
};
|
|
38
|
-
schema: {
|
|
39
|
-
type: PropType<FormKitSchemaDefinition>;
|
|
40
|
-
default: null;
|
|
41
|
-
};
|
|
42
|
-
formClass: {
|
|
43
|
-
type: StringConstructor;
|
|
44
|
-
default: string;
|
|
45
|
-
};
|
|
46
|
-
debugData: {
|
|
47
|
-
type: BooleanConstructor;
|
|
48
|
-
default: boolean;
|
|
49
|
-
};
|
|
50
|
-
debugSchema: {
|
|
51
|
-
type: BooleanConstructor;
|
|
52
|
-
default: boolean;
|
|
53
|
-
};
|
|
54
|
-
modelValue: {
|
|
55
|
-
type: PropType<any>;
|
|
56
|
-
};
|
|
57
|
-
}>> & Readonly<{
|
|
58
|
-
"onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
|
59
|
-
}>, {
|
|
60
|
-
data: Record<string, any>;
|
|
61
|
-
schema: FormKitSchemaDefinition;
|
|
62
|
-
formClass: string;
|
|
63
|
-
debugData: boolean;
|
|
64
|
-
debugSchema: boolean;
|
|
65
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
66
|
-
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
67
|
-
declare const _default: typeof __VLS_export;
|
|
68
|
-
export default _default;
|
|
69
|
-
type __VLS_WithSlots<T, S> = T & {
|
|
70
|
-
new (): {
|
|
71
|
-
$slots: S;
|
|
72
|
-
};
|
|
73
|
-
};
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
<script setup lang='ts'>
|
|
2
|
-
import type { FormKitSchemaDefinition } from '@formkit/core'
|
|
3
|
-
import type { PropType } from 'vue'
|
|
4
|
-
|
|
5
|
-
import { FormKit, FormKitSchema } from '@formkit/vue'
|
|
6
|
-
import { ref } from 'vue'
|
|
7
|
-
import FormKitDataDebug from './FormKitDataDebug.vue'
|
|
8
|
-
|
|
9
|
-
const props = defineProps({
|
|
10
|
-
data: {
|
|
11
|
-
type: Object,
|
|
12
|
-
default: null,
|
|
13
|
-
},
|
|
14
|
-
schema: {
|
|
15
|
-
type: Object as PropType<FormKitSchemaDefinition>,
|
|
16
|
-
default: null,
|
|
17
|
-
},
|
|
18
|
-
formClass: {
|
|
19
|
-
type: String,
|
|
20
|
-
default: '',
|
|
21
|
-
},
|
|
22
|
-
debugData: {
|
|
23
|
-
type: Boolean,
|
|
24
|
-
default: false,
|
|
25
|
-
},
|
|
26
|
-
debugSchema: {
|
|
27
|
-
type: Boolean,
|
|
28
|
-
default: false,
|
|
29
|
-
},
|
|
30
|
-
})
|
|
31
|
-
|
|
32
|
-
const formSchema = ref(props.schema)
|
|
33
|
-
|
|
34
|
-
const formData = defineModel<any>()
|
|
35
|
-
|
|
36
|
-
if (props.data) {
|
|
37
|
-
formData.value = props.data
|
|
38
|
-
}
|
|
39
|
-
</script>
|
|
40
|
-
|
|
41
|
-
<template>
|
|
42
|
-
<FormKit
|
|
43
|
-
v-model="formData"
|
|
44
|
-
:actions="false"
|
|
45
|
-
:form-class="`p-formkit-data-view ${formClass}`"
|
|
46
|
-
class="p-formkit-data-view"
|
|
47
|
-
type="form"
|
|
48
|
-
>
|
|
49
|
-
<FormKitSchema v-if="schema" :schema="formSchema" :data="formData" />
|
|
50
|
-
<slot />
|
|
51
|
-
<FormKitDataDebug v-if="debugData" :data="formData" header="Debug Mode - Data" />
|
|
52
|
-
<FormKitDataDebug v-if="debugSchema" :data="formSchema as object" header="Debug Mode - Schema" />
|
|
53
|
-
</FormKit>
|
|
54
|
-
</template>
|
|
55
|
-
|
|
56
|
-
<style scoped>
|
|
57
|
-
|
|
58
|
-
</style>
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
import type { FormKitSchemaDefinition } from '@formkit/core';
|
|
2
|
-
import type { PropType } from 'vue';
|
|
3
|
-
declare var __VLS_13: {};
|
|
4
|
-
type __VLS_Slots = {} & {
|
|
5
|
-
default?: (props: typeof __VLS_13) => any;
|
|
6
|
-
};
|
|
7
|
-
declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
8
|
-
data: {
|
|
9
|
-
type: ObjectConstructor;
|
|
10
|
-
default: null;
|
|
11
|
-
};
|
|
12
|
-
schema: {
|
|
13
|
-
type: PropType<FormKitSchemaDefinition>;
|
|
14
|
-
default: null;
|
|
15
|
-
};
|
|
16
|
-
formClass: {
|
|
17
|
-
type: StringConstructor;
|
|
18
|
-
default: string;
|
|
19
|
-
};
|
|
20
|
-
debugData: {
|
|
21
|
-
type: BooleanConstructor;
|
|
22
|
-
default: boolean;
|
|
23
|
-
};
|
|
24
|
-
debugSchema: {
|
|
25
|
-
type: BooleanConstructor;
|
|
26
|
-
default: boolean;
|
|
27
|
-
};
|
|
28
|
-
modelValue: {
|
|
29
|
-
type: PropType<any>;
|
|
30
|
-
};
|
|
31
|
-
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
32
|
-
"update:modelValue": (value: any) => any;
|
|
33
|
-
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
34
|
-
data: {
|
|
35
|
-
type: ObjectConstructor;
|
|
36
|
-
default: null;
|
|
37
|
-
};
|
|
38
|
-
schema: {
|
|
39
|
-
type: PropType<FormKitSchemaDefinition>;
|
|
40
|
-
default: null;
|
|
41
|
-
};
|
|
42
|
-
formClass: {
|
|
43
|
-
type: StringConstructor;
|
|
44
|
-
default: string;
|
|
45
|
-
};
|
|
46
|
-
debugData: {
|
|
47
|
-
type: BooleanConstructor;
|
|
48
|
-
default: boolean;
|
|
49
|
-
};
|
|
50
|
-
debugSchema: {
|
|
51
|
-
type: BooleanConstructor;
|
|
52
|
-
default: boolean;
|
|
53
|
-
};
|
|
54
|
-
modelValue: {
|
|
55
|
-
type: PropType<any>;
|
|
56
|
-
};
|
|
57
|
-
}>> & Readonly<{
|
|
58
|
-
"onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
|
59
|
-
}>, {
|
|
60
|
-
data: Record<string, any>;
|
|
61
|
-
schema: FormKitSchemaDefinition;
|
|
62
|
-
formClass: string;
|
|
63
|
-
debugData: boolean;
|
|
64
|
-
debugSchema: boolean;
|
|
65
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
66
|
-
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
67
|
-
declare const _default: typeof __VLS_export;
|
|
68
|
-
export default _default;
|
|
69
|
-
type __VLS_WithSlots<T, S> = T & {
|
|
70
|
-
new (): {
|
|
71
|
-
$slots: S;
|
|
72
|
-
};
|
|
73
|
-
};
|