@sfxcode/formkit-primevue 3.3.1 → 3.3.3
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/LICENSE +21 -0
- package/README.md +138 -13
- package/components.d.ts +1 -0
- package/dist/components/FormKitDataDebug.d.vue.ts +24 -0
- package/dist/components/FormKitDataDebug.vue +23 -0
- package/dist/components/FormKitDataDebug.vue.d.ts +24 -0
- package/dist/components/FormKitDataEdit.d.vue.ts +180 -0
- package/dist/components/FormKitDataEdit.vue +126 -0
- package/dist/components/FormKitDataEdit.vue.d.ts +180 -0
- package/dist/components/FormKitDataView.d.vue.ts +73 -0
- package/dist/components/FormKitDataView.vue +58 -0
- package/dist/components/FormKitDataView.vue.d.ts +73 -0
- package/dist/components/FormKitIcon.d.vue.ts +39 -0
- package/dist/components/FormKitIcon.vue +25 -0
- package/dist/components/FormKitIcon.vue.d.ts +39 -0
- package/dist/components/FormKitPrefix.d.vue.ts +7 -0
- package/dist/components/FormKitPrefix.vue +11 -0
- package/dist/components/FormKitPrefix.vue.d.ts +7 -0
- package/dist/components/FormKitSuffix.d.vue.ts +7 -0
- package/dist/components/FormKitSuffix.vue +11 -0
- package/dist/components/FormKitSuffix.vue.d.ts +7 -0
- package/dist/components/PrimeAutoComplete.d.vue.ts +31 -0
- package/dist/components/PrimeAutoComplete.vue +140 -0
- package/dist/components/PrimeAutoComplete.vue.d.ts +31 -0
- package/dist/components/PrimeCascadeSelect.d.vue.ts +28 -0
- package/dist/components/PrimeCascadeSelect.vue +62 -0
- package/dist/components/PrimeCascadeSelect.vue.d.ts +28 -0
- package/dist/components/PrimeCheckbox.d.vue.ts +27 -0
- package/dist/components/PrimeCheckbox.vue +71 -0
- package/dist/components/PrimeCheckbox.vue.d.ts +27 -0
- package/dist/components/PrimeColorPicker.d.vue.ts +24 -0
- package/dist/components/PrimeColorPicker.vue +48 -0
- package/dist/components/PrimeColorPicker.vue.d.ts +24 -0
- package/dist/components/PrimeDatePicker.d.vue.ts +63 -0
- package/dist/components/PrimeDatePicker.vue +153 -0
- package/dist/components/PrimeDatePicker.vue.d.ts +63 -0
- package/dist/components/PrimeInputMask.d.vue.ts +28 -0
- package/dist/components/PrimeInputMask.vue +88 -0
- package/dist/components/PrimeInputMask.vue.d.ts +28 -0
- package/dist/components/PrimeInputNumber.d.vue.ts +36 -0
- package/dist/components/PrimeInputNumber.vue +110 -0
- package/dist/components/PrimeInputNumber.vue.d.ts +36 -0
- package/dist/components/PrimeInputOtp.d.vue.ts +26 -0
- package/dist/components/PrimeInputOtp.vue +59 -0
- package/dist/components/PrimeInputOtp.vue.d.ts +26 -0
- package/dist/components/PrimeInputText.d.vue.ts +24 -0
- package/dist/components/PrimeInputText.vue +80 -0
- package/dist/components/PrimeInputText.vue.d.ts +24 -0
- package/dist/components/PrimeKnob.d.vue.ts +31 -0
- package/dist/components/PrimeKnob.vue +75 -0
- package/dist/components/PrimeKnob.vue.d.ts +31 -0
- package/dist/components/PrimeListbox.d.vue.ts +42 -0
- package/dist/components/PrimeListbox.vue +86 -0
- package/dist/components/PrimeListbox.vue.d.ts +42 -0
- package/dist/components/PrimeMultiSelect.d.vue.ts +53 -0
- package/dist/components/PrimeMultiSelect.vue +115 -0
- package/dist/components/PrimeMultiSelect.vue.d.ts +53 -0
- package/dist/components/PrimeOutputBoolean.d.vue.ts +16 -0
- package/dist/components/PrimeOutputBoolean.vue +41 -0
- package/dist/components/PrimeOutputBoolean.vue.d.ts +16 -0
- package/dist/components/PrimeOutputDate.d.vue.ts +16 -0
- package/dist/components/PrimeOutputDate.vue +51 -0
- package/dist/components/PrimeOutputDate.vue.d.ts +16 -0
- package/dist/components/PrimeOutputDuration.d.vue.ts +16 -0
- package/dist/components/PrimeOutputDuration.vue +32 -0
- package/dist/components/PrimeOutputDuration.vue.d.ts +16 -0
- package/dist/components/PrimeOutputLink.d.vue.ts +16 -0
- package/dist/components/PrimeOutputLink.vue +50 -0
- package/dist/components/PrimeOutputLink.vue.d.ts +16 -0
- package/dist/components/PrimeOutputList.d.vue.ts +19 -0
- package/dist/components/PrimeOutputList.vue +75 -0
- package/dist/components/PrimeOutputList.vue.d.ts +19 -0
- package/dist/components/PrimeOutputNumber.d.vue.ts +16 -0
- package/dist/components/PrimeOutputNumber.vue +59 -0
- package/dist/components/PrimeOutputNumber.vue.d.ts +16 -0
- package/dist/components/PrimeOutputReference.d.vue.ts +16 -0
- package/dist/components/PrimeOutputReference.vue +62 -0
- package/dist/components/PrimeOutputReference.vue.d.ts +16 -0
- package/dist/components/PrimeOutputText.d.vue.ts +22 -0
- package/dist/components/PrimeOutputText.vue +72 -0
- package/dist/components/PrimeOutputText.vue.d.ts +22 -0
- package/dist/components/PrimePassword.d.vue.ts +33 -0
- package/dist/components/PrimePassword.vue +73 -0
- package/dist/components/PrimePassword.vue.d.ts +33 -0
- package/dist/components/PrimeRadioButton.d.vue.ts +28 -0
- package/dist/components/PrimeRadioButton.vue +58 -0
- package/dist/components/PrimeRadioButton.vue.d.ts +28 -0
- package/dist/components/PrimeRating.d.vue.ts +24 -0
- package/dist/components/PrimeRating.vue +55 -0
- package/dist/components/PrimeRating.vue.d.ts +24 -0
- package/dist/components/PrimeSelect.d.vue.ts +50 -0
- package/dist/components/PrimeSelect.vue +113 -0
- package/dist/components/PrimeSelect.vue.d.ts +50 -0
- package/dist/components/PrimeSelectButton.d.vue.ts +28 -0
- package/dist/components/PrimeSelectButton.vue +64 -0
- package/dist/components/PrimeSelectButton.vue.d.ts +28 -0
- package/dist/components/PrimeSlider.d.vue.ts +26 -0
- package/dist/components/PrimeSlider.vue +60 -0
- package/dist/components/PrimeSlider.vue.d.ts +26 -0
- package/dist/components/PrimeTextarea.d.vue.ts +25 -0
- package/dist/components/PrimeTextarea.vue +53 -0
- package/dist/components/PrimeTextarea.vue.d.ts +25 -0
- package/dist/components/PrimeToggleButton.d.vue.ts +26 -0
- package/dist/components/PrimeToggleButton.vue +60 -0
- package/dist/components/PrimeToggleButton.vue.d.ts +26 -0
- package/dist/components/PrimeToggleSwitch.d.vue.ts +23 -0
- package/dist/components/PrimeToggleSwitch.vue +57 -0
- package/dist/components/PrimeToggleSwitch.vue.d.ts +23 -0
- package/dist/components/PrimeTreeSelect.d.vue.ts +32 -0
- package/dist/components/PrimeTreeSelect.vue +71 -0
- package/dist/components/PrimeTreeSelect.vue.d.ts +32 -0
- package/dist/components/index.d.ts +24 -2
- package/dist/components/index.js +167 -4
- package/dist/components/index.mjs +48 -0
- package/dist/composables/index.d.ts +9 -2
- package/dist/composables/index.js +61 -2
- package/dist/composables/index.mjs +18 -0
- package/dist/composables/useFormKitInput.d.ts +11 -0
- package/dist/composables/useFormKitInput.js +58 -0
- package/dist/composables/useFormKitInput.mjs +45 -0
- package/dist/composables/useFormKitRepeater.d.ts +15 -0
- package/dist/composables/useFormKitRepeater.js +74 -0
- package/dist/composables/useFormKitRepeater.mjs +54 -0
- package/dist/composables/useFormKitSchema.d.ts +36 -0
- package/dist/composables/useFormKitSchema.js +83 -0
- package/dist/composables/useFormKitSchema.mjs +58 -0
- package/dist/composables/useFormKitSection.d.ts +7 -0
- package/dist/composables/useFormKitSection.js +31 -0
- package/dist/composables/useFormKitSection.mjs +19 -0
- package/dist/composables/useInputEditor.d.ts +8 -0
- package/dist/composables/useInputEditor.js +148 -0
- package/dist/composables/useInputEditor.mjs +143 -0
- package/dist/composables/useInputEditorSchema.d.ts +163 -0
- package/dist/composables/useInputEditorSchema.js +313 -0
- package/dist/composables/useInputEditorSchema.mjs +315 -0
- package/dist/composables/useOutputDuration.d.ts +4 -0
- package/dist/composables/useOutputDuration.js +40 -0
- package/dist/composables/useOutputDuration.mjs +35 -0
- package/dist/composables/usePrimeInputs.d.ts +3 -0
- package/dist/composables/usePrimeInputs.js +62 -0
- package/dist/composables/usePrimeInputs.mjs +53 -0
- package/dist/definitions/index.d.ts +32 -37
- package/dist/definitions/index.js +42 -4
- package/dist/definitions/index.mjs +68 -0
- package/dist/definitions/input.d.ts +47 -0
- package/dist/definitions/input.js +142 -0
- package/dist/definitions/input.mjs +135 -0
- package/dist/definitions/output.d.ts +9 -0
- package/dist/definitions/output.js +46 -0
- package/dist/definitions/output.mjs +39 -0
- package/dist/index.d.ts +143 -146
- package/dist/index.js +62 -5
- package/dist/index.mjs +14 -0
- package/dist/plugins/index.d.ts +3 -7
- package/dist/plugins/index.js +57 -45
- package/dist/plugins/index.mjs +55 -0
- package/dist/sass/formkit-primevue.scss +101 -99
- package/package.json +115 -30
- package/dist/PrimeTreeSelect-Dksx7tL-.js +0 -1881
- package/dist/components-HJnJ39cU.js +0 -255
- package/dist/composables-CZ6f1QYe.js +0 -820
- package/dist/definitions-BHwWaom7.js +0 -1196
- package/dist/index-Ch3MtT1C.d.ts +0 -266
- package/dist/index-EJ8M51RO.d.ts +0 -917
package/dist/index.d.ts
CHANGED
|
@@ -1,151 +1,148 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
|
|
13
|
-
//#region src/index.d.ts
|
|
1
|
+
import type { FormKitBaseSlots, FormKitInputs } from '@formkit/inputs';
|
|
2
|
+
import type { AutoCompleteSlots, CascadeSelectSlots, CheckboxSlots, ColorPickerSlots, DatePickerSlots, InputMaskSlots, InputNumberSlots, InputOtpSlots, InputTextSlots, KnobSlots, ListboxSlots, MultiSelectSlots, PasswordSlots, RadioButtonSlots, RatingSlots, SelectButtonSlots, SelectSlots, SliderSlots, TextareaSlots, ToggleButtonSlots, ToggleSwitchSlots, TreeSelectSlots } from 'primevue';
|
|
3
|
+
import type { CascadeSelectProps } from 'primevue/cascadeselect';
|
|
4
|
+
import type { ListboxProps } from 'primevue/listbox';
|
|
5
|
+
import type { MultiSelectProps } from 'primevue/multiselect';
|
|
6
|
+
import type { SelectProps } from 'primevue/select';
|
|
7
|
+
import type { SelectButtonProps } from 'primevue/selectbutton';
|
|
8
|
+
import type { TreeSelectProps } from 'primevue/treeselect';
|
|
9
|
+
import { FormKitDataEdit, FormKitDataView } from './components';
|
|
10
|
+
import { useFormKitRepeater, useFormKitSchema, useInputEditor, useInputEditorSchema, usePrimeInputs } from './composables';
|
|
11
|
+
import { primeInputs, primeOutputs } from './definitions';
|
|
12
|
+
export { FormKitDataEdit, FormKitDataView, primeInputs, primeOutputs, useFormKitRepeater, useFormKitSchema, useInputEditor, useInputEditorSchema, usePrimeInputs, };
|
|
14
13
|
/**
|
|
15
14
|
* Keeps all slots from 1st argument, add any slots from 2nd type which do not collide with the 1st's names.
|
|
16
15
|
*/
|
|
17
16
|
type MergeSlots<A, B> = A & Omit<B, keyof A>;
|
|
18
|
-
declare module
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
17
|
+
declare module '@formkit/inputs' {
|
|
18
|
+
interface FormKitInputProps<Props extends FormKitInputs<Props>> {
|
|
19
|
+
primeAutoComplete: {
|
|
20
|
+
type: 'primeAutoComplete';
|
|
21
|
+
};
|
|
22
|
+
primeInputText: {
|
|
23
|
+
type: 'primeInputText';
|
|
24
|
+
};
|
|
25
|
+
primeInputNumber: {
|
|
26
|
+
type: 'primeInputNumber';
|
|
27
|
+
};
|
|
28
|
+
primeInputMask: {
|
|
29
|
+
type: 'primeInputMask';
|
|
30
|
+
};
|
|
31
|
+
primePassword: {
|
|
32
|
+
type: 'primePassword';
|
|
33
|
+
};
|
|
34
|
+
primeCheckbox: {
|
|
35
|
+
type: 'primeCheckbox';
|
|
36
|
+
};
|
|
37
|
+
primeToggleSwitch: {
|
|
38
|
+
type: 'primeToggleSwitch';
|
|
39
|
+
};
|
|
40
|
+
primeTextarea: {
|
|
41
|
+
type: 'primeTextarea';
|
|
42
|
+
};
|
|
43
|
+
primeSelect: {
|
|
44
|
+
type: 'primeSelect';
|
|
45
|
+
options?: SelectProps['options'];
|
|
46
|
+
};
|
|
47
|
+
primeMultiSelect: {
|
|
48
|
+
type: 'primeMultiSelect';
|
|
49
|
+
options?: MultiSelectProps['options'];
|
|
50
|
+
};
|
|
51
|
+
primeDatePicker: {
|
|
52
|
+
type: 'primeDatePicker';
|
|
53
|
+
};
|
|
54
|
+
primeSlider: {
|
|
55
|
+
type: 'primeSlider';
|
|
56
|
+
};
|
|
57
|
+
primeKnob: {
|
|
58
|
+
type: 'primeKnob';
|
|
59
|
+
};
|
|
60
|
+
primeRating: {
|
|
61
|
+
type: 'primeRating';
|
|
62
|
+
};
|
|
63
|
+
primeRadioButton: {
|
|
64
|
+
type: 'primeRadioButton';
|
|
65
|
+
};
|
|
66
|
+
primeColorPicker: {
|
|
67
|
+
type: 'primeColorPicker';
|
|
68
|
+
};
|
|
69
|
+
primeToggleButton: {
|
|
70
|
+
type: 'primeToggleButton';
|
|
71
|
+
};
|
|
72
|
+
primeListbox: {
|
|
73
|
+
type: 'primeListbox';
|
|
74
|
+
options?: ListboxProps['options'];
|
|
75
|
+
};
|
|
76
|
+
primeSelectButton: {
|
|
77
|
+
type: 'primeSelectButton';
|
|
78
|
+
options?: SelectButtonProps['options'];
|
|
79
|
+
};
|
|
80
|
+
primeCascadeSelect: {
|
|
81
|
+
type: 'primeCascadeSelect';
|
|
82
|
+
options?: CascadeSelectProps['options'];
|
|
83
|
+
};
|
|
84
|
+
primeTreeSelect: {
|
|
85
|
+
type: 'primeTreeSelect';
|
|
86
|
+
options?: TreeSelectProps['options'];
|
|
87
|
+
};
|
|
88
|
+
primeInputOtp: {
|
|
89
|
+
type: 'primeInputOtp';
|
|
90
|
+
};
|
|
91
|
+
primeOutputText: {
|
|
92
|
+
type: 'primeOutputText';
|
|
93
|
+
};
|
|
94
|
+
primeOutputLink: {
|
|
95
|
+
type: 'primeOutputLink';
|
|
96
|
+
};
|
|
97
|
+
primeOutputReference: {
|
|
98
|
+
type: 'primeOutputReference';
|
|
99
|
+
};
|
|
100
|
+
primeOutputNumber: {
|
|
101
|
+
type: 'primeOutputNumber';
|
|
102
|
+
};
|
|
103
|
+
primeOutputDate: {
|
|
104
|
+
type: 'primeOutputDate';
|
|
105
|
+
};
|
|
106
|
+
primeOutputBoolean: {
|
|
107
|
+
type: 'primeOutputBoolean';
|
|
108
|
+
};
|
|
109
|
+
primeOutputDuration: {
|
|
110
|
+
type: 'primeOutputDuration';
|
|
111
|
+
};
|
|
112
|
+
primeOutputList: {
|
|
113
|
+
type: 'primeOutputList';
|
|
114
|
+
};
|
|
115
|
+
}
|
|
116
|
+
interface FormKitInputSlots<Props extends FormKitInputs<Props>> {
|
|
117
|
+
primeAutoComplete: MergeSlots<FormKitBaseSlots<Props>, AutoCompleteSlots>;
|
|
118
|
+
primeCascadeSelect: MergeSlots<FormKitBaseSlots<Props>, CascadeSelectSlots>;
|
|
119
|
+
primeCheckbox: MergeSlots<FormKitBaseSlots<Props>, CheckboxSlots>;
|
|
120
|
+
primeColorPicker: MergeSlots<FormKitBaseSlots<Props>, ColorPickerSlots>;
|
|
121
|
+
primeDatePicker: MergeSlots<FormKitBaseSlots<Props>, DatePickerSlots>;
|
|
122
|
+
primeInputMask: MergeSlots<FormKitBaseSlots<Props>, InputMaskSlots>;
|
|
123
|
+
primeInputNumber: MergeSlots<FormKitBaseSlots<Props>, InputNumberSlots>;
|
|
124
|
+
primeInputOtp: MergeSlots<FormKitBaseSlots<Props>, InputOtpSlots>;
|
|
125
|
+
primeInputText: MergeSlots<FormKitBaseSlots<Props>, InputTextSlots>;
|
|
126
|
+
primeKnob: MergeSlots<FormKitBaseSlots<Props>, KnobSlots>;
|
|
127
|
+
primeListbox: MergeSlots<FormKitBaseSlots<Props>, ListboxSlots>;
|
|
128
|
+
primeMultiSelect: MergeSlots<FormKitBaseSlots<Props>, MultiSelectSlots>;
|
|
129
|
+
primeOutputBoolean: FormKitBaseSlots<Props>;
|
|
130
|
+
primeOutputDate: FormKitBaseSlots<Props>;
|
|
131
|
+
primeOutputDuration: FormKitBaseSlots<Props>;
|
|
132
|
+
primeOutputLink: FormKitBaseSlots<Props>;
|
|
133
|
+
primeOutputList: FormKitBaseSlots<Props>;
|
|
134
|
+
primeOutputNumber: FormKitBaseSlots<Props>;
|
|
135
|
+
primeOutputReference: FormKitBaseSlots<Props>;
|
|
136
|
+
primeOutputText: FormKitBaseSlots<Props>;
|
|
137
|
+
primePassword: MergeSlots<FormKitBaseSlots<Props>, PasswordSlots>;
|
|
138
|
+
primeRadioButton: MergeSlots<FormKitBaseSlots<Props>, RadioButtonSlots>;
|
|
139
|
+
primeRating: MergeSlots<FormKitBaseSlots<Props>, RatingSlots>;
|
|
140
|
+
primeSelect: MergeSlots<FormKitBaseSlots<Props>, SelectSlots>;
|
|
141
|
+
primeSelectButton: MergeSlots<FormKitBaseSlots<Props>, SelectButtonSlots>;
|
|
142
|
+
primeSlider: MergeSlots<FormKitBaseSlots<Props>, SliderSlots>;
|
|
143
|
+
primeTextarea: MergeSlots<FormKitBaseSlots<Props>, TextareaSlots>;
|
|
144
|
+
primeToggleButton: MergeSlots<FormKitBaseSlots<Props>, ToggleButtonSlots>;
|
|
145
|
+
primeToggleSwitch: MergeSlots<FormKitBaseSlots<Props>, ToggleSwitchSlots>;
|
|
146
|
+
primeTreeSelect: MergeSlots<FormKitBaseSlots<Props>, TreeSelectSlots>;
|
|
147
|
+
}
|
|
149
148
|
}
|
|
150
|
-
//#endregion
|
|
151
|
-
export { _default as FormKitDataEdit, _default$1 as FormKitDataView, primeInputs, primeOutputs, useFormKitRepeater, useFormKitSchema, useInputEditor, useInputEditorSchema, usePrimeInputs };
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,62 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
Object.defineProperty(exports, "FormKitDataEdit", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function () {
|
|
9
|
+
return _components.FormKitDataEdit;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
Object.defineProperty(exports, "FormKitDataView", {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: function () {
|
|
15
|
+
return _components.FormKitDataView;
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
Object.defineProperty(exports, "primeInputs", {
|
|
19
|
+
enumerable: true,
|
|
20
|
+
get: function () {
|
|
21
|
+
return _definitions.primeInputs;
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
Object.defineProperty(exports, "primeOutputs", {
|
|
25
|
+
enumerable: true,
|
|
26
|
+
get: function () {
|
|
27
|
+
return _definitions.primeOutputs;
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
Object.defineProperty(exports, "useFormKitRepeater", {
|
|
31
|
+
enumerable: true,
|
|
32
|
+
get: function () {
|
|
33
|
+
return _composables.useFormKitRepeater;
|
|
34
|
+
}
|
|
35
|
+
});
|
|
36
|
+
Object.defineProperty(exports, "useFormKitSchema", {
|
|
37
|
+
enumerable: true,
|
|
38
|
+
get: function () {
|
|
39
|
+
return _composables.useFormKitSchema;
|
|
40
|
+
}
|
|
41
|
+
});
|
|
42
|
+
Object.defineProperty(exports, "useInputEditor", {
|
|
43
|
+
enumerable: true,
|
|
44
|
+
get: function () {
|
|
45
|
+
return _composables.useInputEditor;
|
|
46
|
+
}
|
|
47
|
+
});
|
|
48
|
+
Object.defineProperty(exports, "useInputEditorSchema", {
|
|
49
|
+
enumerable: true,
|
|
50
|
+
get: function () {
|
|
51
|
+
return _composables.useInputEditorSchema;
|
|
52
|
+
}
|
|
53
|
+
});
|
|
54
|
+
Object.defineProperty(exports, "usePrimeInputs", {
|
|
55
|
+
enumerable: true,
|
|
56
|
+
get: function () {
|
|
57
|
+
return _composables.usePrimeInputs;
|
|
58
|
+
}
|
|
59
|
+
});
|
|
60
|
+
var _components = require("./components");
|
|
61
|
+
var _composables = require("./composables");
|
|
62
|
+
var _definitions = require("./definitions");
|
package/dist/index.mjs
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { FormKitDataEdit, FormKitDataView } from "./components/index.mjs";
|
|
2
|
+
import { useFormKitRepeater, useFormKitSchema, useInputEditor, useInputEditorSchema, usePrimeInputs } from "./composables/index.mjs";
|
|
3
|
+
import { primeInputs, primeOutputs } from "./definitions/index.mjs";
|
|
4
|
+
export {
|
|
5
|
+
FormKitDataEdit,
|
|
6
|
+
FormKitDataView,
|
|
7
|
+
primeInputs,
|
|
8
|
+
primeOutputs,
|
|
9
|
+
useFormKitRepeater,
|
|
10
|
+
useFormKitSchema,
|
|
11
|
+
useInputEditor,
|
|
12
|
+
useInputEditorSchema,
|
|
13
|
+
usePrimeInputs
|
|
14
|
+
};
|
package/dist/plugins/index.d.ts
CHANGED
|
@@ -1,7 +1,3 @@
|
|
|
1
|
-
import { FormKitNode } from
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
declare function addPrimeAsteriskPlugin(node: FormKitNode): void;
|
|
5
|
-
declare function addLabelPlugin(node: FormKitNode): void;
|
|
6
|
-
//#endregion
|
|
7
|
-
export { addLabelPlugin, addPrimeAsteriskPlugin };
|
|
1
|
+
import type { FormKitNode } from '@formkit/core';
|
|
2
|
+
export declare function addPrimeAsteriskPlugin(node: FormKitNode): void;
|
|
3
|
+
export declare function addLabelPlugin(node: FormKitNode): void;
|
package/dist/plugins/index.js
CHANGED
|
@@ -1,48 +1,60 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.addLabelPlugin = addLabelPlugin;
|
|
7
|
+
exports.addPrimeAsteriskPlugin = addPrimeAsteriskPlugin;
|
|
2
8
|
function addPrimeAsteriskPlugin(node) {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
9
|
+
if (!node.props.type.startsWith("prime") || node.props.type.startsWith("primeOutput")) return;
|
|
10
|
+
node.on("created", () => {
|
|
11
|
+
if (node.props.definition?.schema) {
|
|
12
|
+
const schemaFn = node.props.definition?.schema;
|
|
13
|
+
node.props.definition.schema = (sectionsSchema = {}) => {
|
|
14
|
+
sectionsSchema.label = {
|
|
15
|
+
children: ["$label", {
|
|
16
|
+
$el: "span",
|
|
17
|
+
if: "$state.required",
|
|
18
|
+
attrs: {
|
|
19
|
+
class: "p-formkit-asterisk"
|
|
20
|
+
},
|
|
21
|
+
children: ["*"]
|
|
22
|
+
}]
|
|
23
|
+
};
|
|
24
|
+
return schemaFn(sectionsSchema);
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
});
|
|
18
28
|
}
|
|
19
29
|
function addLabelPlugin(node) {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
30
|
+
if (!node.props.type.startsWith("prime")) return;
|
|
31
|
+
node.on("created", () => {
|
|
32
|
+
if (node.props.definition?.schema) {
|
|
33
|
+
const schemaFn = node.props.definition?.schema;
|
|
34
|
+
node.props.definition.schema = (sectionsSchema = {}) => {
|
|
35
|
+
sectionsSchema.label = {
|
|
36
|
+
children: [{
|
|
37
|
+
$el: "span",
|
|
38
|
+
attrs: {
|
|
39
|
+
title: "$help",
|
|
40
|
+
class: "p-formkit-label"
|
|
41
|
+
},
|
|
42
|
+
children: ["$label"]
|
|
43
|
+
}, {
|
|
44
|
+
$el: "span",
|
|
45
|
+
if: "$state.required",
|
|
46
|
+
attrs: {
|
|
47
|
+
class: "p-formkit-required",
|
|
48
|
+
title: "$help"
|
|
49
|
+
},
|
|
50
|
+
children: ["*"]
|
|
51
|
+
}]
|
|
52
|
+
};
|
|
53
|
+
sectionsSchema.help = {
|
|
54
|
+
children: []
|
|
55
|
+
};
|
|
56
|
+
return schemaFn(sectionsSchema);
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
});
|
|
60
|
+
}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
export function addPrimeAsteriskPlugin(node) {
|
|
2
|
+
if (!node.props.type.startsWith("prime") || node.props.type.startsWith("primeOutput"))
|
|
3
|
+
return;
|
|
4
|
+
node.on("created", () => {
|
|
5
|
+
if (node.props.definition?.schema) {
|
|
6
|
+
const schemaFn = node.props.definition?.schema;
|
|
7
|
+
node.props.definition.schema = (sectionsSchema = {}) => {
|
|
8
|
+
sectionsSchema.label = {
|
|
9
|
+
children: ["$label", {
|
|
10
|
+
$el: "span",
|
|
11
|
+
if: "$state.required",
|
|
12
|
+
attrs: {
|
|
13
|
+
class: "p-formkit-asterisk"
|
|
14
|
+
},
|
|
15
|
+
children: ["*"]
|
|
16
|
+
}]
|
|
17
|
+
};
|
|
18
|
+
return schemaFn(sectionsSchema);
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
export function addLabelPlugin(node) {
|
|
24
|
+
if (!node.props.type.startsWith("prime"))
|
|
25
|
+
return;
|
|
26
|
+
node.on("created", () => {
|
|
27
|
+
if (node.props.definition?.schema) {
|
|
28
|
+
const schemaFn = node.props.definition?.schema;
|
|
29
|
+
node.props.definition.schema = (sectionsSchema = {}) => {
|
|
30
|
+
sectionsSchema.label = {
|
|
31
|
+
children: [{
|
|
32
|
+
$el: "span",
|
|
33
|
+
attrs: {
|
|
34
|
+
title: "$help",
|
|
35
|
+
class: "p-formkit-label"
|
|
36
|
+
},
|
|
37
|
+
children: ["$label"]
|
|
38
|
+
}, {
|
|
39
|
+
$el: "span",
|
|
40
|
+
if: "$state.required",
|
|
41
|
+
attrs: {
|
|
42
|
+
class: "p-formkit-required",
|
|
43
|
+
title: "$help"
|
|
44
|
+
},
|
|
45
|
+
children: ["*"]
|
|
46
|
+
}]
|
|
47
|
+
};
|
|
48
|
+
sectionsSchema.help = {
|
|
49
|
+
children: []
|
|
50
|
+
};
|
|
51
|
+
return schemaFn(sectionsSchema);
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
});
|
|
55
|
+
}
|