@sfxcode/formkit-primevue 3.3.1 → 3.3.4

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.
Files changed (89) hide show
  1. package/dist/components/FormKitDataDebug.vue +19 -0
  2. package/dist/components/FormKitDataEdit.vue +133 -0
  3. package/dist/components/FormKitDataView.vue +51 -0
  4. package/dist/components/FormKitIcon.vue +18 -0
  5. package/dist/components/FormKitPrefix.vue +11 -0
  6. package/dist/components/FormKitSuffix.vue +11 -0
  7. package/dist/components/PrimeAutoComplete.vue +95 -0
  8. package/dist/components/PrimeCascadeSelect.vue +43 -0
  9. package/dist/components/PrimeCheckbox.vue +51 -0
  10. package/dist/components/PrimeColorPicker.vue +33 -0
  11. package/dist/components/PrimeDatePicker.vue +97 -0
  12. package/dist/components/PrimeInputMask.vue +69 -0
  13. package/dist/components/PrimeInputNumber.vue +75 -0
  14. package/dist/components/PrimeInputOtp.vue +42 -0
  15. package/dist/components/PrimeInputText.vue +65 -0
  16. package/dist/components/PrimeKnob.vue +50 -0
  17. package/dist/components/PrimeListbox.vue +54 -0
  18. package/dist/components/PrimeMultiSelect.vue +70 -0
  19. package/dist/components/PrimeOutputBoolean.vue +42 -0
  20. package/dist/components/PrimeOutputDate.vue +51 -0
  21. package/dist/components/PrimeOutputDuration.vue +36 -0
  22. package/dist/components/PrimeOutputLink.vue +52 -0
  23. package/dist/components/PrimeOutputList.vue +106 -0
  24. package/dist/components/PrimeOutputNumber.vue +56 -0
  25. package/dist/components/PrimeOutputReference.vue +64 -0
  26. package/dist/components/PrimeOutputText.vue +72 -0
  27. package/dist/components/PrimePassword.vue +52 -0
  28. package/dist/components/PrimeRadioButton.vue +48 -0
  29. package/dist/components/PrimeRating.vue +40 -0
  30. package/dist/components/PrimeSelect.vue +71 -0
  31. package/dist/components/PrimeSelectButton.vue +44 -0
  32. package/dist/components/PrimeSlider.vue +42 -0
  33. package/dist/components/PrimeTextarea.vue +37 -0
  34. package/dist/components/PrimeToggleButton.vue +42 -0
  35. package/dist/components/PrimeToggleSwitch.vue +42 -0
  36. package/dist/components/PrimeTreeSelect.vue +48 -0
  37. package/dist/components/index.d.ts +24 -2
  38. package/dist/components/index.js +167 -4
  39. package/dist/components/index.mjs +48 -0
  40. package/dist/composables/index.d.ts +9 -2
  41. package/dist/composables/index.js +61 -2
  42. package/dist/composables/index.mjs +18 -0
  43. package/dist/composables/useFormKitInput.d.ts +11 -0
  44. package/dist/composables/useFormKitInput.js +62 -0
  45. package/dist/composables/useFormKitInput.mjs +57 -0
  46. package/dist/composables/useFormKitRepeater.d.ts +15 -0
  47. package/dist/composables/useFormKitRepeater.js +74 -0
  48. package/dist/composables/useFormKitRepeater.mjs +82 -0
  49. package/dist/composables/useFormKitSchema.d.ts +36 -0
  50. package/dist/composables/useFormKitSchema.js +83 -0
  51. package/dist/composables/useFormKitSchema.mjs +66 -0
  52. package/dist/composables/useFormKitSection.d.ts +7 -0
  53. package/dist/composables/useFormKitSection.js +31 -0
  54. package/dist/composables/useFormKitSection.mjs +19 -0
  55. package/dist/composables/useInputEditor.d.ts +8 -0
  56. package/dist/composables/useInputEditor.js +148 -0
  57. package/dist/composables/useInputEditor.mjs +171 -0
  58. package/dist/composables/useInputEditorSchema.d.ts +163 -0
  59. package/dist/composables/useInputEditorSchema.js +313 -0
  60. package/dist/composables/useInputEditorSchema.mjs +323 -0
  61. package/dist/composables/useOutputDuration.d.ts +4 -0
  62. package/dist/composables/useOutputDuration.js +40 -0
  63. package/dist/composables/useOutputDuration.mjs +32 -0
  64. package/dist/composables/usePrimeInputs.d.ts +3 -0
  65. package/dist/composables/usePrimeInputs.js +62 -0
  66. package/dist/composables/usePrimeInputs.mjs +53 -0
  67. package/dist/definitions/index.d.ts +32 -37
  68. package/dist/definitions/index.js +42 -4
  69. package/dist/definitions/index.mjs +68 -0
  70. package/dist/definitions/input.d.ts +47 -0
  71. package/dist/definitions/input.js +142 -0
  72. package/dist/definitions/input.mjs +421 -0
  73. package/dist/definitions/output.d.ts +9 -0
  74. package/dist/definitions/output.js +46 -0
  75. package/dist/definitions/output.mjs +120 -0
  76. package/dist/index.d.ts +142 -145
  77. package/dist/index.js +62 -5
  78. package/dist/index.mjs +20 -0
  79. package/dist/plugins/index.d.ts +3 -7
  80. package/dist/plugins/index.js +57 -45
  81. package/dist/plugins/index.mjs +59 -0
  82. package/dist/vue.d.ts +5 -0
  83. package/package.json +88 -40
  84. package/dist/PrimeTreeSelect-Dksx7tL-.js +0 -1881
  85. package/dist/components-HJnJ39cU.js +0 -255
  86. package/dist/composables-CZ6f1QYe.js +0 -820
  87. package/dist/definitions-BHwWaom7.js +0 -1196
  88. package/dist/index-Ch3MtT1C.d.ts +0 -266
  89. package/dist/index-EJ8M51RO.d.ts +0 -917
@@ -0,0 +1,163 @@
1
+ export declare function useInputEditorSchema(): {
2
+ editorSchema: (inputOptions?: any[]) => ({
3
+ $formkit: string;
4
+ if: string;
5
+ name: string;
6
+ dynamic: boolean;
7
+ children: object[];
8
+ } | {
9
+ $formkit: string;
10
+ id: string;
11
+ name: string;
12
+ label: string;
13
+ value: string;
14
+ optionLabel: string;
15
+ optionValue: string;
16
+ options: any[];
17
+ filter: boolean;
18
+ key: string;
19
+ outerClass: string;
20
+ preserve: boolean;
21
+ validation?: undefined;
22
+ validationVisibility?: undefined;
23
+ allowEmpty?: undefined;
24
+ if?: undefined;
25
+ suffix?: undefined;
26
+ } | {
27
+ $formkit: string;
28
+ name: string;
29
+ label: string;
30
+ validation: string;
31
+ validationVisibility: string;
32
+ key: string;
33
+ outerClass: string;
34
+ preserve: boolean;
35
+ id?: undefined;
36
+ value?: undefined;
37
+ optionLabel?: undefined;
38
+ optionValue?: undefined;
39
+ options?: undefined;
40
+ filter?: undefined;
41
+ allowEmpty?: undefined;
42
+ if?: undefined;
43
+ suffix?: undefined;
44
+ } | {
45
+ $formkit: string;
46
+ id: string;
47
+ name: string;
48
+ options: {
49
+ label: string;
50
+ value: string;
51
+ }[];
52
+ optionLabel: string;
53
+ optionValue: string;
54
+ value: string;
55
+ allowEmpty: boolean;
56
+ key: string;
57
+ preserve: boolean;
58
+ label?: undefined;
59
+ filter?: undefined;
60
+ outerClass?: undefined;
61
+ validation?: undefined;
62
+ validationVisibility?: undefined;
63
+ if?: undefined;
64
+ suffix?: undefined;
65
+ } | {
66
+ $formkit: string;
67
+ if: string;
68
+ name: string;
69
+ label: string;
70
+ key: string;
71
+ preserve: boolean;
72
+ id?: undefined;
73
+ value?: undefined;
74
+ optionLabel?: undefined;
75
+ optionValue?: undefined;
76
+ options?: undefined;
77
+ filter?: undefined;
78
+ outerClass?: undefined;
79
+ validation?: undefined;
80
+ validationVisibility?: undefined;
81
+ allowEmpty?: undefined;
82
+ suffix?: undefined;
83
+ } | {
84
+ $formkit: string;
85
+ if: string;
86
+ name: string;
87
+ label: string;
88
+ key: string;
89
+ outerClass: string;
90
+ preserve: boolean;
91
+ id?: undefined;
92
+ value?: undefined;
93
+ optionLabel?: undefined;
94
+ optionValue?: undefined;
95
+ options?: undefined;
96
+ filter?: undefined;
97
+ validation?: undefined;
98
+ validationVisibility?: undefined;
99
+ allowEmpty?: undefined;
100
+ suffix?: undefined;
101
+ } | {
102
+ $formkit: string;
103
+ if: string;
104
+ name: string;
105
+ label: string;
106
+ key: string;
107
+ value: boolean;
108
+ suffix: string;
109
+ outerClass: string;
110
+ preserve: boolean;
111
+ id?: undefined;
112
+ optionLabel?: undefined;
113
+ optionValue?: undefined;
114
+ options?: undefined;
115
+ filter?: undefined;
116
+ validation?: undefined;
117
+ validationVisibility?: undefined;
118
+ allowEmpty?: undefined;
119
+ } | {
120
+ $formkit: string;
121
+ if: string;
122
+ name: string;
123
+ label: string;
124
+ key: string;
125
+ value: boolean;
126
+ outerClass: string;
127
+ preserve: boolean;
128
+ id?: undefined;
129
+ optionLabel?: undefined;
130
+ optionValue?: undefined;
131
+ options?: undefined;
132
+ filter?: undefined;
133
+ validation?: undefined;
134
+ validationVisibility?: undefined;
135
+ allowEmpty?: undefined;
136
+ suffix?: undefined;
137
+ } | {
138
+ $formkit: string;
139
+ if: string;
140
+ name: string;
141
+ label: string;
142
+ optionLabel: string;
143
+ optionValue: string;
144
+ options: {
145
+ label: string;
146
+ value: string;
147
+ }[];
148
+ key: string;
149
+ outerClass: string;
150
+ preserve: boolean;
151
+ id?: undefined;
152
+ value?: undefined;
153
+ filter?: undefined;
154
+ validation?: undefined;
155
+ validationVisibility?: undefined;
156
+ allowEmpty?: undefined;
157
+ suffix?: undefined;
158
+ })[];
159
+ primeInputOptions: (list: string[]) => {
160
+ label: string;
161
+ value: string;
162
+ }[];
163
+ };
@@ -0,0 +1,313 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.useInputEditorSchema = useInputEditorSchema;
7
+ var _useFormKitRepeater = require("./useFormKitRepeater.ts");
8
+ var _useFormKitSchema = require("./useFormKitSchema.ts");
9
+ var _useInputEditor = require("./useInputEditor.ts");
10
+ function useInputEditorSchema() {
11
+ const {
12
+ addList,
13
+ addListGroup
14
+ } = (0, _useFormKitSchema.useFormKitSchema)();
15
+ const {
16
+ addInsertButton,
17
+ addGroupButtons
18
+ } = (0, _useFormKitRepeater.useFormKitRepeater)();
19
+ const {
20
+ primeInputNames,
21
+ primeOutputNames
22
+ } = (0, _useInputEditor.useInputEditor)();
23
+ function primeInputOptions(list) {
24
+ return list.map(name => {
25
+ return {
26
+ label: name,
27
+ value: `prime${name}`
28
+ };
29
+ });
30
+ }
31
+ const selectOptions = [{
32
+ label: "Base",
33
+ value: "showBasic"
34
+ }, {
35
+ label: "Display",
36
+ value: "showDisplay"
37
+ }, {
38
+ label: "Style",
39
+ value: "showStyle"
40
+ }, {
41
+ label: "Validation",
42
+ value: "showValidation"
43
+ }, {
44
+ label: "Options",
45
+ value: "showOptions"
46
+ }, {
47
+ label: "Prime",
48
+ value: "showPrime"
49
+ }];
50
+ const validationOptions = [{
51
+ label: "Blur",
52
+ value: "blur"
53
+ }, {
54
+ label: "Live",
55
+ value: "live"
56
+ }, {
57
+ label: "Dirty",
58
+ value: "dirty"
59
+ }, {
60
+ label: "Submit",
61
+ value: "submit"
62
+ }];
63
+ function editorSchema(inputOptions = primeInputOptions([...primeInputNames, ...primeOutputNames])) {
64
+ return [{
65
+ $formkit: "primeSelect",
66
+ id: "inputSelection",
67
+ name: "_dollar_formkit",
68
+ label: "Prime Input",
69
+ value: "primeInputText",
70
+ optionLabel: "label",
71
+ optionValue: "value",
72
+ options: inputOptions,
73
+ filter: true,
74
+ key: "schema_inputSelection",
75
+ outerClass: "col-6",
76
+ preserve: true
77
+ }, {
78
+ $formkit: "primeInputText",
79
+ name: "name",
80
+ label: "Field Name",
81
+ validation: "required",
82
+ validationVisibility: "live",
83
+ key: "schema_name",
84
+ outerClass: "col-6",
85
+ preserve: true
86
+ }, {
87
+ $formkit: "primeSelectButton",
88
+ id: "selectButton",
89
+ name: "selectButton",
90
+ options: selectOptions,
91
+ optionLabel: "label",
92
+ optionValue: "value",
93
+ value: "showBasic",
94
+ allowEmpty: false,
95
+ key: "schema_selectButton",
96
+ preserve: true
97
+ }, {
98
+ $formkit: "primeInputText",
99
+ if: "$get(selectButton).value === 'showBasic'",
100
+ name: "label",
101
+ label: "Input Label",
102
+ key: "schema_label",
103
+ preserve: true
104
+ }, {
105
+ $formkit: "primeInputText",
106
+ if: "$get(selectButton).value === 'showBasic'",
107
+ name: "help",
108
+ label: "Input Help",
109
+ key: "schema_help",
110
+ preserve: true
111
+ }, {
112
+ $formkit: "primeInputText",
113
+ if: "$get(selectButton).value === 'showBasic'",
114
+ name: "value",
115
+ label: "Input Value",
116
+ key: "schema_value",
117
+ outerClass: "col-6",
118
+ preserve: true
119
+ }, {
120
+ $formkit: "primeInputText",
121
+ if: "$get(selectButton).value === 'showBasic'",
122
+ name: "format",
123
+ label: "Value Format",
124
+ key: "schema_format",
125
+ outerClass: "col-6",
126
+ preserve: true
127
+ }, {
128
+ $formkit: "primeInputText",
129
+ if: "$get(selectButton).value === 'showBasic'",
130
+ name: "id",
131
+ label: "Input ID",
132
+ key: "schema_id",
133
+ outerClass: "col-6",
134
+ preserve: true
135
+ }, {
136
+ $formkit: "primeInputText",
137
+ if: "$get(selectButton).value === 'showBasic'",
138
+ name: "key",
139
+ label: "Input Key",
140
+ key: "schema_key",
141
+ outerClass: "col-6",
142
+ preserve: true
143
+ }, {
144
+ $formkit: "primeInputText",
145
+ if: "$get(selectButton).value === 'showBasic'",
146
+ name: "tabindex",
147
+ label: "Tab Index",
148
+ key: "schema_tabindex",
149
+ outerClass: "col-6",
150
+ preserve: true
151
+ }, {
152
+ $formkit: "primeCheckbox",
153
+ if: "$get(selectButton).value === 'showBasic'",
154
+ name: "preserve",
155
+ label: "Preserve",
156
+ key: "schema_preserve",
157
+ value: false,
158
+ suffix: "Input Preserve",
159
+ outerClass: "col-3",
160
+ preserve: true
161
+ }, {
162
+ $formkit: "primeInputText",
163
+ if: "$get(selectButton).value === 'showDisplay'",
164
+ name: "class",
165
+ label: "Input StyleClass",
166
+ key: "schema_class",
167
+ outerClass: "col-6",
168
+ preserve: true
169
+ }, {
170
+ $formkit: "primeInputText",
171
+ if: "$get(selectButton).value === 'showDisplay'",
172
+ name: "style",
173
+ label: "Input Style",
174
+ key: "schema_style",
175
+ outerClass: "col-6",
176
+ preserve: true
177
+ }, {
178
+ $formkit: "primeInputText",
179
+ if: "$get(selectButton).value === 'showDisplay'",
180
+ name: "if",
181
+ label: "Should Render (if-Expression)",
182
+ key: "schema_if",
183
+ preserve: true
184
+ }, {
185
+ $formkit: "primeInputText",
186
+ if: "$get(selectButton).value === 'showDisplay'",
187
+ name: "iconPrefix",
188
+ label: "Prefix Icon",
189
+ key: "schema_prefix_icon",
190
+ outerClass: "col-6",
191
+ preserve: true
192
+ }, {
193
+ $formkit: "primeInputText",
194
+ if: "$get(selectButton).value === 'showDisplay'",
195
+ name: "prefix",
196
+ label: "Prefix",
197
+ key: "schema_prefix",
198
+ outerClass: "col-6",
199
+ preserve: true
200
+ }, {
201
+ $formkit: "primeInputText",
202
+ if: "$get(selectButton).value === 'showDisplay'",
203
+ name: "suffix",
204
+ label: "Suffix",
205
+ key: "schema_suffix",
206
+ outerClass: "col-6",
207
+ preserve: true
208
+ }, {
209
+ $formkit: "primeInputText",
210
+ if: "$get(selectButton).value === 'showDisplay'",
211
+ name: "iconSuffix",
212
+ label: "Suffix Icon",
213
+ key: "schema_suffix_icon",
214
+ outerClass: "col-6",
215
+ preserve: true
216
+ }, {
217
+ $formkit: "primeCheckbox",
218
+ if: "$get(selectButton).value === 'showDisplay'",
219
+ name: "disabled",
220
+ label: "Input Disabled",
221
+ key: "schema_disabled",
222
+ value: false,
223
+ outerClass: "col-3",
224
+ preserve: true
225
+ }, {
226
+ $formkit: "primeCheckbox",
227
+ if: "$get(selectButton).value === 'showDisplay'",
228
+ name: "readonly",
229
+ label: "Input Read Only",
230
+ key: "schema_readonly",
231
+ value: false,
232
+ outerClass: "col-3",
233
+ preserve: true
234
+ }, {
235
+ $formkit: "primeInputText",
236
+ if: "$get(selectButton).value === 'showStyle'",
237
+ name: "outerClass",
238
+ label: "Outer Class",
239
+ key: "schema_outerClass",
240
+ preserve: true
241
+ }, {
242
+ $formkit: "primeInputText",
243
+ if: "$get(selectButton).value === 'showStyle'",
244
+ name: "wrapperClass",
245
+ label: "Wrapper Class",
246
+ key: "schema_wrapperClass",
247
+ preserve: true
248
+ }, {
249
+ $formkit: "primeInputText",
250
+ if: "$get(selectButton).value === 'showStyle'",
251
+ name: "innerClass",
252
+ label: "Inner Class",
253
+ key: "schema_innerClass",
254
+ preserve: true
255
+ }, {
256
+ $formkit: "primeInputText",
257
+ if: "$get(selectButton).value === 'showValidation'",
258
+ name: "validation",
259
+ label: "Field Validation",
260
+ key: "schema_validation",
261
+ outerClass: "col-6",
262
+ preserve: true
263
+ }, {
264
+ $formkit: "primeSelect",
265
+ if: "$get(selectButton).value === 'showValidation'",
266
+ name: "validation-visibility",
267
+ label: "Field Validation Visibility",
268
+ optionLabel: "label",
269
+ optionValue: "value",
270
+ options: validationOptions,
271
+ key: "schema_validation-visibility",
272
+ outerClass: "col-6",
273
+ preserve: true
274
+ }, {
275
+ $formkit: "primeInputText",
276
+ if: "$get(selectButton).value === 'showValidation'",
277
+ name: "validation-label",
278
+ label: "Field Validation Label",
279
+ key: "schema_validation-label",
280
+ preserve: true
281
+ }, addList("options", [addInsertButton("Add Option"), addListGroup([{
282
+ $formkit: "primeInputText",
283
+ label: "Label",
284
+ name: "label",
285
+ outerClass: "col-4"
286
+ }, {
287
+ $formkit: "primeInputText",
288
+ label: "Value",
289
+ name: "value",
290
+ outerClass: "col-4"
291
+ }, addGroupButtons()])], true, "$get(selectButton).value === 'showOptions'", {
292
+ key: "schema_options",
293
+ preserve: true
294
+ }), addList("prime", [addInsertButton("Add PrimeVue Attribute"), addListGroup([{
295
+ $formkit: "primeInputText",
296
+ label: "PrimeVue Key",
297
+ name: "prime_key",
298
+ outerClass: "col-3"
299
+ }, {
300
+ $formkit: "primeInputText",
301
+ label: "Value",
302
+ name: "prime_value",
303
+ outerClass: "col-3"
304
+ }, addGroupButtons()])], true, "$get(selectButton).value === 'showPrime'", {
305
+ key: "schema_prime",
306
+ preserve: true
307
+ })];
308
+ }
309
+ return {
310
+ editorSchema,
311
+ primeInputOptions
312
+ };
313
+ }