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