@sfxcode/formkit-primevue 1.9.6 → 1.9.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -1,468 +1,6 @@
1
- import { createInput } from "@formkit/vue";
2
- import PrimeAutoComplete from "./components/PrimeAutoComplete.vue";
3
- import PrimeCalendar from "./components/PrimeCalendar.vue";
4
- import PrimeCascadeSelect from "./components/PrimeCascadeSelect.vue";
5
- import PrimeCheckbox from "./components/PrimeCheckbox.vue";
6
- import PrimeChips from "./components/PrimeChips.vue";
7
- import PrimeColorPicker from "./components/PrimeColorPicker.vue";
8
- import PrimeDropdown from "./components/PrimeDropdown.vue";
9
- import PrimeEditor from "./components/PrimeEditor.vue";
10
- import PrimeInputMask from "./components/PrimeInputMask.vue";
11
- import PrimeInputNumber from "./components/PrimeInputNumber.vue";
12
- import PrimeInputOtp from "./components/PrimeInputOtp.vue";
13
- import PrimeInputSwitch from "./components/PrimeInputSwitch.vue";
14
- import PrimeInputText from "./components/PrimeInputText.vue";
15
- import PrimeTextarea from "./components/PrimeTextarea.vue";
16
- import PrimeKnob from "./components/PrimeKnob.vue";
17
- import PrimeMultiSelect from "./components/PrimeMultiSelect.vue";
18
- import PrimeListbox from "./components/PrimeListbox.vue";
19
- import PrimePassword from "./components/PrimePassword.vue";
20
- import PrimeRadioButton from "./components/PrimeRadioButton.vue";
21
- import PrimeRating from "./components/PrimeRating.vue";
22
- import PrimeSlider from "./components/PrimeSlider.vue";
23
- import PrimeToggleButton from "./components/PrimeToggleButton.vue";
24
- import PrimeTreeSelect from "./components/PrimeTreeSelect.vue";
25
- import PrimeSelectButton from "./components/PrimeSelectButton.vue";
26
- import PrimeTriStateCheckbox from "./components/PrimeTriStateCheckbox.vue";
27
1
  import { useFormKitSchema } from "./composables/index.mjs";
28
- import * as components from "./components/index.mjs";
29
- const install = {
30
- install(app) {
31
- for (const key of Object.keys(components))
32
- app.component(key, components[key]);
33
- }
34
- };
35
- export default install;
36
- export const primeAutoCompleteDefinition = createInput(PrimeAutoComplete, {
37
- props: ["pt", "ptOptions", "unstyled", "dropdown", "multiple"]
38
- });
39
- export const primeInputTextDefinition = createInput(PrimeInputText, {
40
- props: [
41
- "pt",
42
- "ptOptions",
43
- "unstyled",
44
- "placeholder",
45
- "icon"
46
- ]
47
- });
48
- export const primeInputNumberDefinition = createInput(PrimeInputNumber, {
49
- props: [
50
- "useGrouping",
51
- "min",
52
- "max",
53
- "minFractionDigits",
54
- "maxFractionDigits",
55
- "locale",
56
- "mode",
57
- "currency",
58
- "prefix",
59
- "suffix",
60
- "showButtons",
61
- "buttonLayout",
62
- "step",
63
- "pt",
64
- "ptOptions",
65
- "unstyled",
66
- "placeholder"
67
- ]
68
- });
69
- export const primeInputMaskDefinition = createInput(PrimeInputMask, {
70
- props: [
71
- "mask",
72
- "slotChar",
73
- "autoClear",
74
- "unmask",
75
- "pt",
76
- "ptOptions",
77
- "unstyled",
78
- "invalid",
79
- "variant",
80
- "iconLeft",
81
- "iconRight"
82
- ]
83
- });
84
- export const primePasswordDefinition = createInput(PrimePassword, {
85
- props: [
86
- "mediumRegex",
87
- "strongRegex",
88
- "promptLabel",
89
- "weakLabel",
90
- "mediumLabel",
91
- "strongLabel",
92
- "hideIcon",
93
- "showIcon",
94
- "pt",
95
- "ptOptions",
96
- "unstyled",
97
- "placeholder",
98
- "feedback",
99
- "toggleMask"
100
- ]
101
- });
102
- export const primeTextareaDefinition = createInput(PrimeTextarea, {
103
- props: [
104
- "pt",
105
- "ptOptions",
106
- "unstyled",
107
- "autoResize",
108
- "rows",
109
- "placeholder"
110
- ]
111
- });
112
- export const primeCheckboxDefinition = createInput(PrimeCheckbox, {
113
- props: [
114
- "binary",
115
- "trueValue",
116
- "falseValue",
117
- "pt",
118
- "ptOptions",
119
- "unstyled",
120
- "labelLeft",
121
- "labelRight"
122
- ]
123
- });
124
- export const primeInputSwitchDefinition = createInput(PrimeInputSwitch, {
125
- props: [
126
- "trueValue",
127
- "falseValue",
128
- "pt",
129
- "ptOptions",
130
- "unstyled",
131
- "labelLeft",
132
- "labelRight"
133
- ]
134
- });
135
- export const primeInputOtpDefinition = createInput(PrimeInputOtp, {
136
- props: [
137
- "length",
138
- "variant",
139
- "mask",
140
- "integerOnly",
141
- "pt",
142
- "ptOptions",
143
- "unstyled"
144
- ]
145
- });
146
- export const primeEditorDefinition = createInput(PrimeEditor, {
147
- props: [
148
- "placeholder",
149
- "formats",
150
- "modules",
151
- "pt",
152
- "ptOptions",
153
- "unstyled"
154
- ]
155
- });
156
- export const primeDropdownDefinition = createInput(PrimeDropdown, {
157
- props: [
158
- "options",
159
- "optionLabel",
160
- "optionValue",
161
- "optionDisabled",
162
- "optionGroupLabel",
163
- "optionGroupChildren",
164
- "scrollHeight",
165
- "filter",
166
- "filterPlaceholder",
167
- "filterLocale",
168
- "filterMatchMode",
169
- "filterFields",
170
- "filterInputProps",
171
- "editable",
172
- "placeholder",
173
- "dataKey",
174
- "showClear",
175
- "panelStyle",
176
- "panelClass",
177
- "panelProps",
178
- "appendTo",
179
- "resetFilterOnHide",
180
- "virtualScrollerOptions",
181
- "autoOptionFocus",
182
- "selectOnFocus",
183
- "filterMessage",
184
- "selectionMessage",
185
- "emptySelectionMessage",
186
- "emptyFilterMessage",
187
- "emptyMessage",
188
- "pt",
189
- "ptOptions",
190
- "unstyled"
191
- ]
192
- });
193
- export const primeMultiSelectDefinition = createInput(PrimeMultiSelect, {
194
- props: [
195
- "options",
196
- "optionLabel",
197
- "optionValue",
198
- "optionDisabled",
199
- "optionGroupLabel",
200
- "optionGroupChildren",
201
- "scrollHeight",
202
- "inputProps",
203
- "closeButtonProps",
204
- "dataKey",
205
- "filter",
206
- "filterPlaceholder",
207
- "filterLocale",
208
- "filterMatchMode",
209
- "filterFields",
210
- "appendTo",
211
- "display",
212
- "maxSelectedLabels",
213
- "selectedItemsLabel",
214
- "selectionLimit",
215
- "showToggleAll",
216
- "loading",
217
- "selectAll",
218
- "resetFilterOnHide",
219
- "virtualScrollerOptions",
220
- "autoOptionFocus",
221
- "autoFilterFocus",
222
- "filterMessage",
223
- "selectionMessage",
224
- "emptySelectionMessage",
225
- "emptyFilterMessage",
226
- "emptyMessage",
227
- "pt",
228
- "placeholder",
229
- "ptOptions",
230
- "unstyled"
231
- ]
232
- });
233
- export const primeListboxDefinition = createInput(PrimeListbox, {
234
- props: [
235
- "pt",
236
- "ptOptions",
237
- "unstyled",
238
- "options",
239
- "optionLabel",
240
- "optionValue",
241
- "multiple",
242
- "filter",
243
- "filterIcon",
244
- "filterPlaceholder",
245
- "filterLocale",
246
- "filterMatchMode",
247
- "autoOptionFocus",
248
- "selectOnFocus"
249
- ]
250
- });
251
- export const primeCalendarDefinition = createInput(PrimeCalendar, {
252
- props: [
253
- "dateFormat",
254
- "placeholder",
255
- "selectionMode",
256
- "inline",
257
- "icon",
258
- "showOtherMonths",
259
- "selectOtherMonths",
260
- "showIcon",
261
- "previousIcon",
262
- "nextIcon",
263
- "incrementIcon",
264
- "decrementIcon",
265
- "numberOfMonths",
266
- "responsiveOptions",
267
- "view",
268
- "touchUI",
269
- "minDate",
270
- "maxDate",
271
- "disabledDates",
272
- "disabledDays",
273
- "maxDateCount",
274
- "showOnFocus",
275
- "autoZIndex",
276
- "baseZIndex",
277
- "showButtonBar",
278
- "showTime",
279
- "timeOnly",
280
- "shortYearCutoff",
281
- "hourFormat",
282
- "stepHour",
283
- "stepMinute",
284
- "stepSecond",
285
- "showSeconds",
286
- "hideOnDateTimeSelect",
287
- "hideOnRangeSelection",
288
- "timeSeparator",
289
- "showWeek",
290
- "manualInput",
291
- "appendTo",
292
- "panelStyle",
293
- "panelClass",
294
- "pt",
295
- "ptOptions",
296
- "unstyled"
297
- ]
298
- });
299
- export const primeSliderDefinition = createInput(PrimeSlider, {
300
- props: [
301
- "pt",
302
- "ptOptions",
303
- "unstyled",
304
- "min",
305
- "max",
306
- "step",
307
- "range",
308
- "orientation"
309
- ]
310
- });
311
- export const primeRatingDefinition = createInput(PrimeRating, {
312
- props: [
313
- "unstyled",
314
- "stars",
315
- "cancel",
316
- "onIcon",
317
- "offIcon",
318
- "cancelIcon",
319
- "ptOptions",
320
- "pt"
321
- ]
322
- });
323
- export const primeRadioButtonDefinition = createInput(PrimeRadioButton, {
324
- props: [
325
- "pt",
326
- "ptOptions",
327
- "unstyled",
328
- "options",
329
- "options_class",
330
- "option_class",
331
- "label_class"
332
- ]
333
- });
334
- export const primeChipsDefinition = createInput(PrimeChips, {
335
- props: [
336
- "allowDuplicate",
337
- "addOnBlur",
338
- "max",
339
- "placeholder",
340
- "seperator",
341
- "pt",
342
- "ptOptions",
343
- "unstyled"
344
- ]
345
- });
346
- export const primeKnobDefinition = createInput(PrimeKnob, {
347
- props: [
348
- "pt",
349
- "ptOptions",
350
- "unstyled",
351
- "min",
352
- "max",
353
- "step",
354
- "size",
355
- "strokeWidth",
356
- "showValue",
357
- "valueColor",
358
- "rangeColor",
359
- "textColor",
360
- "valueTemplate"
361
- ]
362
- });
363
- export const primeColorPickerDefinition = createInput(PrimeColorPicker, {
364
- props: [
365
- "defaultColor",
366
- "inline",
367
- "format",
368
- "pt",
369
- "ptOptions",
370
- "unstyled"
371
- ]
372
- });
373
- export const primeToggleButtonDefinition = createInput(PrimeToggleButton, {
374
- props: [
375
- "pt",
376
- "ptOptions",
377
- "unstyled",
378
- "onLabel",
379
- "offLabel",
380
- "onIcon",
381
- "offIcon",
382
- "iconPos"
383
- ]
384
- });
385
- export const primeSelectButtonDefinition = createInput(PrimeSelectButton, {
386
- props: [
387
- "pt",
388
- "ptOptions",
389
- "unstyled",
390
- "optionLabel",
391
- "optionValue",
392
- "optionDisabled",
393
- "multiple",
394
- "unselectable",
395
- "dataKey",
396
- "options"
397
- ]
398
- });
399
- export const primeTriStateCheckboxDefinition = createInput(PrimeTriStateCheckbox, {
400
- props: [
401
- "pt",
402
- "ptOptions",
403
- "unstyled",
404
- "variant",
405
- "labelRight",
406
- "labelLeft"
407
- ]
408
- });
409
- export const primeCascadeSelectDefinition = createInput(PrimeCascadeSelect, {
410
- props: [
411
- "options",
412
- "optionLabel",
413
- "optionValue",
414
- "optionGroupLabel",
415
- "optionGroupChildren",
416
- "placeholder",
417
- "pt",
418
- "ptOptions",
419
- "unstyled"
420
- ]
421
- });
422
- export const primeTreeSelectDefinition = createInput(PrimeTreeSelect, {
423
- props: [
424
- "options",
425
- "placeholder",
426
- "selectionMode",
427
- "pt",
428
- "ptOptions",
429
- "unstyled",
430
- "emptyMessage",
431
- "display",
432
- "metaKeySelection",
433
- "appendTo",
434
- "scrollHeight",
435
- "panelClass",
436
- "variant"
437
- ]
438
- });
439
- export const primeInputs = {
440
- primeAutoComplete: primeAutoCompleteDefinition,
441
- primeInputText: primeInputTextDefinition,
442
- primeInputNumber: primeInputNumberDefinition,
443
- primeInputMask: primeInputMaskDefinition,
444
- primePassword: primePasswordDefinition,
445
- primeCheckbox: primeCheckboxDefinition,
446
- primeInputSwitch: primeInputSwitchDefinition,
447
- primeTextarea: primeTextareaDefinition,
448
- primeEditor: primeEditorDefinition,
449
- primeDropdown: primeDropdownDefinition,
450
- primeMultiSelect: primeMultiSelectDefinition,
451
- primeCalendar: primeCalendarDefinition,
452
- primeSlider: primeSliderDefinition,
453
- primeChips: primeChipsDefinition,
454
- primeKnob: primeKnobDefinition,
455
- primeRating: primeRatingDefinition,
456
- primeRadioButton: primeRadioButtonDefinition,
457
- primeColorPicker: primeColorPickerDefinition,
458
- primeToggleButton: primeToggleButtonDefinition,
459
- primeListbox: primeListboxDefinition,
460
- primeSelectButton: primeSelectButtonDefinition,
461
- primeTriStateCheckbox: primeTriStateCheckboxDefinition,
462
- primeCascadeSelect: primeCascadeSelectDefinition,
463
- primeTreeSelect: primeTreeSelectDefinition,
464
- primeInputOtp: primeInputOtpDefinition
465
- };
2
+ import { primeInputs } from "./definitions/index.mjs";
466
3
  export {
467
- useFormKitSchema
4
+ useFormKitSchema,
5
+ primeInputs
468
6
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sfxcode/formkit-primevue",
3
3
  "type": "module",
4
- "version": "1.9.6",
4
+ "version": "1.9.8",
5
5
  "author": {
6
6
  "name": "Tom",
7
7
  "email": "tom@sfxcode.com"
@@ -28,6 +28,11 @@
28
28
  "import": "./dist/composables/index.mjs",
29
29
  "require": "./dist/composables/index.js"
30
30
  },
31
+ "./definitions": {
32
+ "types": "./dist/definitions/index.d.ts",
33
+ "import": "./dist/definitions/index.mjs",
34
+ "require": "./dist/definitions/index.js"
35
+ },
31
36
  "./dist/sass/formkit-primevue.scss": {
32
37
  "import": "./dist/sass/formkit-primevue.scss",
33
38
  "require": "./dist/sass/formkit-primevue.scss"
@@ -73,18 +78,18 @@
73
78
  "vue": "^3.4.0"
74
79
  },
75
80
  "dependencies": {
76
- "@formkit/addons": "^1.6.0",
77
- "@formkit/i18n": "^1.6.0",
78
- "@formkit/vue": "^1.6.0",
79
- "primeicons": "^6.0.1",
81
+ "@formkit/addons": "^1.6.1",
82
+ "@formkit/i18n": "^1.6.1",
83
+ "@formkit/vue": "^1.6.1",
84
+ "primeicons": "^7.0.0",
80
85
  "primevue": "^3.50.0"
81
86
  },
82
87
  "devDependencies": {
83
- "@antfu/eslint-config": "2.8.3",
84
- "@formkit/core": "^1.6.0",
85
- "@types/node": "^20.11.28",
86
- "@unocss/preset-icons": "^0.58.6",
87
- "@unocss/preset-uno": "0.58.6",
88
+ "@antfu/eslint-config": "2.11.6",
89
+ "@formkit/core": "^1.6.1",
90
+ "@types/node": "^20.12.2",
91
+ "@unocss/preset-icons": "^0.58.8",
92
+ "@unocss/preset-uno": "0.58.8",
88
93
  "@vitejs/plugin-vue": "^5.0.4",
89
94
  "@vue/compiler-sfc": "^3.4.21",
90
95
  "@vue/server-renderer": "^3.4.21",
@@ -103,21 +108,21 @@
103
108
  "quill": "^1.3.7",
104
109
  "sass": "^1.72.0",
105
110
  "tslib": "^2.6.2",
106
- "typescript": "^5.4.2",
111
+ "typescript": "^5.4.3",
107
112
  "unbuild": "2.0.0",
108
- "unocss": "^0.58.6",
113
+ "unocss": "^0.58.8",
109
114
  "unplugin-auto-import": "^0.17.5",
110
115
  "unplugin-vue-components": "^0.26.0",
111
- "vanilla-jsoneditor": "^0.23.0",
112
- "vite": "^5.1.6",
113
- "vite-plugin-dts": "^3.7.3",
116
+ "vanilla-jsoneditor": "^0.23.1",
117
+ "vite": "^5.2.7",
118
+ "vite-plugin-dts": "^3.8.1",
114
119
  "vite-plugin-eslint": "^1.8.1",
115
- "vite-plugin-pages": "^0.32.0",
120
+ "vite-plugin-pages": "^0.32.1",
116
121
  "vite-ssg": "^0.23.6",
117
- "vitepress": "1.0.0-rc.45",
122
+ "vitepress": "1.0.1",
118
123
  "vue": "^3.4.21",
119
124
  "vue-demi": "^0.14.7",
120
125
  "vue-router": "^4.3.0",
121
- "vue-tsc": "^2.0.6"
126
+ "vue-tsc": "^2.0.7"
122
127
  }
123
128
  }