@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.
Files changed (164) hide show
  1. package/README.md +13 -138
  2. package/dist/PrimeTreeSelect-Dksx7tL-.js +1881 -0
  3. package/dist/components/index.d.ts +2 -24
  4. package/dist/components/index.js +4 -167
  5. package/dist/components-HJnJ39cU.js +255 -0
  6. package/dist/composables/index.d.ts +2 -9
  7. package/dist/composables/index.js +2 -61
  8. package/dist/composables-CZ6f1QYe.js +820 -0
  9. package/dist/definitions/index.d.ts +37 -32
  10. package/dist/definitions/index.js +4 -42
  11. package/dist/definitions-BHwWaom7.js +1196 -0
  12. package/dist/index-Ch3MtT1C.d.ts +266 -0
  13. package/dist/index-EJ8M51RO.d.ts +917 -0
  14. package/dist/index.d.ts +146 -143
  15. package/dist/index.js +5 -62
  16. package/dist/plugins/index.d.ts +7 -3
  17. package/dist/plugins/index.js +45 -57
  18. package/dist/sass/formkit-primevue.scss +99 -101
  19. package/package.json +32 -117
  20. package/LICENSE +0 -21
  21. package/components.d.ts +0 -1
  22. package/dist/components/FormKitDataDebug.d.vue.ts +0 -24
  23. package/dist/components/FormKitDataDebug.vue +0 -23
  24. package/dist/components/FormKitDataDebug.vue.d.ts +0 -24
  25. package/dist/components/FormKitDataEdit.d.vue.ts +0 -180
  26. package/dist/components/FormKitDataEdit.vue +0 -126
  27. package/dist/components/FormKitDataEdit.vue.d.ts +0 -180
  28. package/dist/components/FormKitDataView.d.vue.ts +0 -73
  29. package/dist/components/FormKitDataView.vue +0 -58
  30. package/dist/components/FormKitDataView.vue.d.ts +0 -73
  31. package/dist/components/FormKitIcon.d.vue.ts +0 -39
  32. package/dist/components/FormKitIcon.vue +0 -25
  33. package/dist/components/FormKitIcon.vue.d.ts +0 -39
  34. package/dist/components/FormKitPrefix.d.vue.ts +0 -7
  35. package/dist/components/FormKitPrefix.vue +0 -11
  36. package/dist/components/FormKitPrefix.vue.d.ts +0 -7
  37. package/dist/components/FormKitSuffix.d.vue.ts +0 -7
  38. package/dist/components/FormKitSuffix.vue +0 -11
  39. package/dist/components/FormKitSuffix.vue.d.ts +0 -7
  40. package/dist/components/PrimeAutoComplete.d.vue.ts +0 -31
  41. package/dist/components/PrimeAutoComplete.vue +0 -162
  42. package/dist/components/PrimeAutoComplete.vue.d.ts +0 -31
  43. package/dist/components/PrimeCascadeSelect.d.vue.ts +0 -28
  44. package/dist/components/PrimeCascadeSelect.vue +0 -62
  45. package/dist/components/PrimeCascadeSelect.vue.d.ts +0 -28
  46. package/dist/components/PrimeCheckbox.d.vue.ts +0 -27
  47. package/dist/components/PrimeCheckbox.vue +0 -71
  48. package/dist/components/PrimeCheckbox.vue.d.ts +0 -27
  49. package/dist/components/PrimeColorPicker.d.vue.ts +0 -24
  50. package/dist/components/PrimeColorPicker.vue +0 -48
  51. package/dist/components/PrimeColorPicker.vue.d.ts +0 -24
  52. package/dist/components/PrimeDatePicker.d.vue.ts +0 -63
  53. package/dist/components/PrimeDatePicker.vue +0 -153
  54. package/dist/components/PrimeDatePicker.vue.d.ts +0 -63
  55. package/dist/components/PrimeInputMask.d.vue.ts +0 -28
  56. package/dist/components/PrimeInputMask.vue +0 -88
  57. package/dist/components/PrimeInputMask.vue.d.ts +0 -28
  58. package/dist/components/PrimeInputNumber.d.vue.ts +0 -36
  59. package/dist/components/PrimeInputNumber.vue +0 -110
  60. package/dist/components/PrimeInputNumber.vue.d.ts +0 -36
  61. package/dist/components/PrimeInputOtp.d.vue.ts +0 -26
  62. package/dist/components/PrimeInputOtp.vue +0 -59
  63. package/dist/components/PrimeInputOtp.vue.d.ts +0 -26
  64. package/dist/components/PrimeInputText.d.vue.ts +0 -24
  65. package/dist/components/PrimeInputText.vue +0 -80
  66. package/dist/components/PrimeInputText.vue.d.ts +0 -24
  67. package/dist/components/PrimeKnob.d.vue.ts +0 -31
  68. package/dist/components/PrimeKnob.vue +0 -75
  69. package/dist/components/PrimeKnob.vue.d.ts +0 -31
  70. package/dist/components/PrimeListbox.d.vue.ts +0 -42
  71. package/dist/components/PrimeListbox.vue +0 -86
  72. package/dist/components/PrimeListbox.vue.d.ts +0 -42
  73. package/dist/components/PrimeMultiSelect.d.vue.ts +0 -53
  74. package/dist/components/PrimeMultiSelect.vue +0 -115
  75. package/dist/components/PrimeMultiSelect.vue.d.ts +0 -53
  76. package/dist/components/PrimeOutputBoolean.d.vue.ts +0 -16
  77. package/dist/components/PrimeOutputBoolean.vue +0 -41
  78. package/dist/components/PrimeOutputBoolean.vue.d.ts +0 -16
  79. package/dist/components/PrimeOutputDate.d.vue.ts +0 -16
  80. package/dist/components/PrimeOutputDate.vue +0 -51
  81. package/dist/components/PrimeOutputDate.vue.d.ts +0 -16
  82. package/dist/components/PrimeOutputDuration.d.vue.ts +0 -16
  83. package/dist/components/PrimeOutputDuration.vue +0 -32
  84. package/dist/components/PrimeOutputDuration.vue.d.ts +0 -16
  85. package/dist/components/PrimeOutputLink.d.vue.ts +0 -16
  86. package/dist/components/PrimeOutputLink.vue +0 -50
  87. package/dist/components/PrimeOutputLink.vue.d.ts +0 -16
  88. package/dist/components/PrimeOutputList.d.vue.ts +0 -19
  89. package/dist/components/PrimeOutputList.vue +0 -71
  90. package/dist/components/PrimeOutputList.vue.d.ts +0 -19
  91. package/dist/components/PrimeOutputNumber.d.vue.ts +0 -16
  92. package/dist/components/PrimeOutputNumber.vue +0 -59
  93. package/dist/components/PrimeOutputNumber.vue.d.ts +0 -16
  94. package/dist/components/PrimeOutputReference.d.vue.ts +0 -16
  95. package/dist/components/PrimeOutputReference.vue +0 -62
  96. package/dist/components/PrimeOutputReference.vue.d.ts +0 -16
  97. package/dist/components/PrimeOutputText.d.vue.ts +0 -22
  98. package/dist/components/PrimeOutputText.vue +0 -72
  99. package/dist/components/PrimeOutputText.vue.d.ts +0 -22
  100. package/dist/components/PrimePassword.d.vue.ts +0 -33
  101. package/dist/components/PrimePassword.vue +0 -73
  102. package/dist/components/PrimePassword.vue.d.ts +0 -33
  103. package/dist/components/PrimeRadioButton.d.vue.ts +0 -28
  104. package/dist/components/PrimeRadioButton.vue +0 -53
  105. package/dist/components/PrimeRadioButton.vue.d.ts +0 -28
  106. package/dist/components/PrimeRating.d.vue.ts +0 -24
  107. package/dist/components/PrimeRating.vue +0 -55
  108. package/dist/components/PrimeRating.vue.d.ts +0 -24
  109. package/dist/components/PrimeSelect.d.vue.ts +0 -50
  110. package/dist/components/PrimeSelect.vue +0 -113
  111. package/dist/components/PrimeSelect.vue.d.ts +0 -50
  112. package/dist/components/PrimeSelectButton.d.vue.ts +0 -28
  113. package/dist/components/PrimeSelectButton.vue +0 -64
  114. package/dist/components/PrimeSelectButton.vue.d.ts +0 -28
  115. package/dist/components/PrimeSlider.d.vue.ts +0 -26
  116. package/dist/components/PrimeSlider.vue +0 -60
  117. package/dist/components/PrimeSlider.vue.d.ts +0 -26
  118. package/dist/components/PrimeTextarea.d.vue.ts +0 -25
  119. package/dist/components/PrimeTextarea.vue +0 -53
  120. package/dist/components/PrimeTextarea.vue.d.ts +0 -25
  121. package/dist/components/PrimeToggleButton.d.vue.ts +0 -26
  122. package/dist/components/PrimeToggleButton.vue +0 -60
  123. package/dist/components/PrimeToggleButton.vue.d.ts +0 -26
  124. package/dist/components/PrimeToggleSwitch.d.vue.ts +0 -23
  125. package/dist/components/PrimeToggleSwitch.vue +0 -57
  126. package/dist/components/PrimeToggleSwitch.vue.d.ts +0 -23
  127. package/dist/components/PrimeTreeSelect.d.vue.ts +0 -32
  128. package/dist/components/PrimeTreeSelect.vue +0 -71
  129. package/dist/components/PrimeTreeSelect.vue.d.ts +0 -32
  130. package/dist/components/index.mjs +0 -48
  131. package/dist/composables/index.mjs +0 -18
  132. package/dist/composables/useFormKitInput.d.ts +0 -10
  133. package/dist/composables/useFormKitInput.js +0 -51
  134. package/dist/composables/useFormKitInput.mjs +0 -39
  135. package/dist/composables/useFormKitRepeater.d.ts +0 -15
  136. package/dist/composables/useFormKitRepeater.js +0 -74
  137. package/dist/composables/useFormKitRepeater.mjs +0 -54
  138. package/dist/composables/useFormKitSchema.d.ts +0 -36
  139. package/dist/composables/useFormKitSchema.js +0 -83
  140. package/dist/composables/useFormKitSchema.mjs +0 -58
  141. package/dist/composables/useFormKitSection.d.ts +0 -7
  142. package/dist/composables/useFormKitSection.js +0 -31
  143. package/dist/composables/useFormKitSection.mjs +0 -19
  144. package/dist/composables/useInputEditor.d.ts +0 -8
  145. package/dist/composables/useInputEditor.js +0 -148
  146. package/dist/composables/useInputEditor.mjs +0 -143
  147. package/dist/composables/useInputEditorSchema.d.ts +0 -163
  148. package/dist/composables/useInputEditorSchema.js +0 -313
  149. package/dist/composables/useInputEditorSchema.mjs +0 -315
  150. package/dist/composables/useOutputDuration.d.ts +0 -4
  151. package/dist/composables/useOutputDuration.js +0 -40
  152. package/dist/composables/useOutputDuration.mjs +0 -35
  153. package/dist/composables/usePrimeInputs.d.ts +0 -3
  154. package/dist/composables/usePrimeInputs.js +0 -62
  155. package/dist/composables/usePrimeInputs.mjs +0 -53
  156. package/dist/definitions/index.mjs +0 -68
  157. package/dist/definitions/input.d.ts +0 -47
  158. package/dist/definitions/input.js +0 -142
  159. package/dist/definitions/input.mjs +0 -135
  160. package/dist/definitions/output.d.ts +0 -9
  161. package/dist/definitions/output.js +0 -46
  162. package/dist/definitions/output.mjs +0 -39
  163. package/dist/index.mjs +0 -14
  164. package/dist/plugins/index.mjs +0 -55
@@ -0,0 +1,1881 @@
1
+ import { a as useFormKitSection, c as useFormKitInput } from "./composables-CZ6f1QYe.js";
2
+ import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createVNode, defineComponent, guardReactiveProps, isRef, mergeProps, normalizeClass, normalizeProps, openBlock, ref, renderList, resolveComponent, resolveDynamicComponent, toDisplayString, unref, watch, withCtx, withKeys, withModifiers } from "vue";
3
+ import IconField from "primevue/iconfield";
4
+ import InputIcon from "primevue/inputicon";
5
+ //#region src/components/PrimeAutoComplete.vue
6
+ const _hoisted_1$20 = { class: "p-formkit" };
7
+ const _sfc_main$20 = /* @__PURE__ */ defineComponent({
8
+ __name: "PrimeAutoComplete",
9
+ props: { context: {
10
+ type: Object,
11
+ required: true
12
+ } },
13
+ setup(__props) {
14
+ const props = __props;
15
+ const { validSlotNames, unstyled, isInvalid, handleInput, handleBlur, modelValue } = useFormKitInput(props.context);
16
+ const suggestions = ref(["", {}]);
17
+ suggestions.value = [];
18
+ const loading = ref(false);
19
+ /**
20
+ * Searches for suggestions based on the input query.
21
+ */
22
+ async function search(event) {
23
+ if (props.context?.options && props.context?.optionLabel) suggestions.value = props.context.options.filter((option) => {
24
+ return option[`${props.context.optionLabel}`].toString().toLowerCase().includes(event.query.toLowerCase());
25
+ });
26
+ else {
27
+ loading.value = true;
28
+ try {
29
+ suggestions.value = await props.context?.attrs.complete(event.query);
30
+ } catch (error) {
31
+ console.error("Error fetching suggestions:", error);
32
+ suggestions.value = [];
33
+ } finally {
34
+ loading.value = false;
35
+ }
36
+ }
37
+ }
38
+ /**
39
+ * Handles paste event to transform a string separated by any of the provided separators into multiple items.
40
+ */
41
+ function handlePaste(event) {
42
+ if (!props.context?.multiple) return;
43
+ const clipboardData = event.clipboardData;
44
+ if (!clipboardData) return;
45
+ const pastedText = clipboardData.getData("text");
46
+ const separators = Array.isArray(props.context?.separators) && props.context.separators.length > 0 ? props.context.separators : [","];
47
+ const regex = new RegExp(`[${separators.map((s) => s.replace(/[-/\\^$*+?.()|[\]{}]/g, "\\$&")).join("")}]`);
48
+ if (pastedText && regex.test(pastedText)) {
49
+ event.preventDefault();
50
+ const items = pastedText.split(regex).map((item) => item.trim()).filter((item) => item.length > 0);
51
+ if (Array.isArray(modelValue.value)) modelValue.value = [...modelValue.value, ...items];
52
+ else modelValue.value = items;
53
+ } else if (pastedText) {
54
+ event.preventDefault();
55
+ if (Array.isArray(modelValue.value)) modelValue.value = [...modelValue.value, pastedText.trim()];
56
+ else modelValue.value = [pastedText.trim()];
57
+ }
58
+ }
59
+ return (_ctx, _cache) => {
60
+ const _component_AutoComplete = resolveComponent("AutoComplete");
61
+ return openBlock(), createElementBlock("div", _hoisted_1$20, [createVNode(_component_AutoComplete, mergeProps({
62
+ id: __props.context.id,
63
+ modelValue: unref(modelValue),
64
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(modelValue) ? modelValue.value = $event : null)
65
+ }, __props.context?.attrs, {
66
+ disabled: !!__props.context?.disabled,
67
+ class: __props.context?.attrs?.class,
68
+ invalid: unref(isInvalid),
69
+ tabindex: __props.context?.attrs.tabindex,
70
+ "aria-label": __props.context?.attrs.ariaLabel,
71
+ "aria-labelledby": __props.context?.attrs.ariaLabelledby,
72
+ size: __props.context?.size ?? void 0,
73
+ suggestions: suggestions.value,
74
+ "option-label": __props.context?.optionLabel,
75
+ dropdown: __props.context?.dropdown ?? false,
76
+ multiple: __props.context?.multiple ?? false,
77
+ typeahead: __props.context?.typeahead ?? true,
78
+ "min-length": __props.context?.minLength ?? void 0,
79
+ placeholder: __props.context?.placeholder ?? void 0,
80
+ fluid: __props.context?.fluid ?? void 0,
81
+ pt: __props.context?.pt,
82
+ "pt-options": __props.context?.ptOptions,
83
+ unstyled: unref(unstyled),
84
+ loading: loading.value,
85
+ onKeydown: _cache[1] || (_cache[1] = withKeys(withModifiers(() => {}, ["prevent"]), ["enter"])),
86
+ onComplete: search,
87
+ onChange: unref(handleInput),
88
+ onBlur: unref(handleBlur),
89
+ onPaste: handlePaste
90
+ }), createSlots({ _: 2 }, [renderList(unref(validSlotNames), (slotName) => {
91
+ return {
92
+ name: slotName,
93
+ fn: withCtx((slotProps) => [(openBlock(), createBlock(resolveDynamicComponent(__props.context?.slots[slotName]), normalizeProps(guardReactiveProps({
94
+ ...__props.context,
95
+ ...slotProps
96
+ })), null, 16))])
97
+ };
98
+ })]), 1040, [
99
+ "id",
100
+ "modelValue",
101
+ "disabled",
102
+ "class",
103
+ "invalid",
104
+ "tabindex",
105
+ "aria-label",
106
+ "aria-labelledby",
107
+ "size",
108
+ "suggestions",
109
+ "option-label",
110
+ "dropdown",
111
+ "multiple",
112
+ "typeahead",
113
+ "min-length",
114
+ "placeholder",
115
+ "fluid",
116
+ "pt",
117
+ "pt-options",
118
+ "unstyled",
119
+ "loading",
120
+ "onChange",
121
+ "onBlur"
122
+ ])]);
123
+ };
124
+ }
125
+ });
126
+ //#endregion
127
+ //#region src/components/PrimeCascadeSelect.vue
128
+ const _hoisted_1$19 = { class: "p-formkit" };
129
+ const _sfc_main$19 = /* @__PURE__ */ defineComponent({
130
+ __name: "PrimeCascadeSelect",
131
+ props: { context: {
132
+ type: Object,
133
+ required: true
134
+ } },
135
+ setup(__props) {
136
+ const { validSlotNames, unstyled, isInvalid, handleInput, handleBlur, modelValue } = useFormKitInput(__props.context);
137
+ return (_ctx, _cache) => {
138
+ const _component_CascadeSelect = resolveComponent("CascadeSelect");
139
+ return openBlock(), createElementBlock("div", _hoisted_1$19, [createVNode(_component_CascadeSelect, mergeProps({
140
+ id: __props.context.id,
141
+ modelValue: unref(modelValue),
142
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(modelValue) ? modelValue.value = $event : null)
143
+ }, __props.context?.attrs, {
144
+ disabled: !!__props.context?.disabled,
145
+ readonly: __props.context?.attrs.readonly ?? false,
146
+ class: __props.context?.attrs?.class,
147
+ invalid: unref(isInvalid),
148
+ tabindex: __props.context?.attrs.tabindex,
149
+ "aria-label": __props.context?.attrs.ariaLabel,
150
+ "aria-labelledby": __props.context?.attrs.ariaLabelledby,
151
+ size: __props.context?.size ?? void 0,
152
+ options: __props.context?.options,
153
+ "option-label": __props.context?.optionLabel,
154
+ "option-value": __props.context.optionValue,
155
+ "option-group-label": __props.context.optionGroupLabel,
156
+ "option-group-children": __props.context.optionGroupChildren,
157
+ placeholder: __props.context.placeholder,
158
+ pt: __props.context.pt,
159
+ "pt-options": __props.context.ptOptions,
160
+ unstyled: unref(unstyled),
161
+ onChange: unref(handleInput),
162
+ onBlur: unref(handleBlur)
163
+ }), createSlots({ _: 2 }, [renderList(unref(validSlotNames), (slotName) => {
164
+ return {
165
+ name: slotName,
166
+ fn: withCtx((slotProps) => [(openBlock(), createBlock(resolveDynamicComponent(__props.context?.slots[slotName]), normalizeProps(guardReactiveProps({
167
+ ...__props.context,
168
+ ...slotProps
169
+ })), null, 16))])
170
+ };
171
+ })]), 1040, [
172
+ "id",
173
+ "modelValue",
174
+ "disabled",
175
+ "readonly",
176
+ "class",
177
+ "invalid",
178
+ "tabindex",
179
+ "aria-label",
180
+ "aria-labelledby",
181
+ "size",
182
+ "options",
183
+ "option-label",
184
+ "option-value",
185
+ "option-group-label",
186
+ "option-group-children",
187
+ "placeholder",
188
+ "pt",
189
+ "pt-options",
190
+ "unstyled",
191
+ "onChange",
192
+ "onBlur"
193
+ ])]);
194
+ };
195
+ }
196
+ });
197
+ //#endregion
198
+ //#region src/components/PrimeCheckbox.vue
199
+ const _hoisted_1$18 = { class: "p-formkit" };
200
+ const _hoisted_2$1 = ["for"];
201
+ const _hoisted_3$1 = ["for"];
202
+ const _sfc_main$18 = /* @__PURE__ */ defineComponent({
203
+ __name: "PrimeCheckbox",
204
+ props: { context: {
205
+ type: Object,
206
+ required: true
207
+ } },
208
+ setup(__props) {
209
+ const props = __props;
210
+ const { hasPrefix, hasSuffix, generateId } = useFormKitSection(props.context);
211
+ const { validSlotNames, unstyled, isInvalid, handleInput, handleBlur, modelValue } = useFormKitInput(props.context);
212
+ const generatedId = generateId();
213
+ return (_ctx, _cache) => {
214
+ const _component_Checkbox = resolveComponent("Checkbox");
215
+ return openBlock(), createElementBlock("div", _hoisted_1$18, [
216
+ unref(hasPrefix) ? (openBlock(), createElementBlock("label", {
217
+ key: 0,
218
+ for: unref(generatedId),
219
+ class: "formkit-prefix"
220
+ }, toDisplayString(__props.context?.prefix), 9, _hoisted_2$1)) : createCommentVNode("v-if", true),
221
+ createVNode(_component_Checkbox, mergeProps({
222
+ modelValue: unref(modelValue),
223
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(modelValue) ? modelValue.value = $event : null)
224
+ }, __props.context?.attrs, {
225
+ "input-id": unref(generatedId),
226
+ disabled: !!__props.context?.disabled,
227
+ readonly: __props.context?.attrs.readonly ?? false,
228
+ "input-style": __props.context?.attrs.style,
229
+ "input-class": __props.context?.attrs?.class,
230
+ invalid: unref(isInvalid),
231
+ tabindex: __props.context?.attrs.tabindex,
232
+ "aria-label": __props.context?.attrs.ariaLabel,
233
+ "aria-labelledby": __props.context?.attrs.ariaLabelledby,
234
+ size: __props.context?.size ?? void 0,
235
+ indeterminate: __props.context.indeterminate ?? void 0,
236
+ binary: __props.context.binary ?? true,
237
+ variant: __props.context.variant ?? "outlined",
238
+ "true-value": __props.context.trueValue ?? void 0,
239
+ "false-value": __props.context.falseValue ?? void 0,
240
+ pt: __props.context.pt,
241
+ "pt-options": __props.context.ptOptions,
242
+ unstyled: unref(unstyled),
243
+ onChange: unref(handleInput),
244
+ onBlur: unref(handleBlur)
245
+ }), createSlots({ _: 2 }, [renderList(unref(validSlotNames), (slotName) => {
246
+ return {
247
+ name: slotName,
248
+ fn: withCtx((slotProps) => [(openBlock(), createBlock(resolveDynamicComponent(__props.context?.slots[slotName]), normalizeProps(guardReactiveProps({
249
+ ...__props.context,
250
+ ...slotProps
251
+ })), null, 16))])
252
+ };
253
+ })]), 1040, [
254
+ "modelValue",
255
+ "input-id",
256
+ "disabled",
257
+ "readonly",
258
+ "input-style",
259
+ "input-class",
260
+ "invalid",
261
+ "tabindex",
262
+ "aria-label",
263
+ "aria-labelledby",
264
+ "size",
265
+ "indeterminate",
266
+ "binary",
267
+ "variant",
268
+ "true-value",
269
+ "false-value",
270
+ "pt",
271
+ "pt-options",
272
+ "unstyled",
273
+ "onChange",
274
+ "onBlur"
275
+ ]),
276
+ unref(hasSuffix) ? (openBlock(), createElementBlock("label", {
277
+ key: 1,
278
+ for: unref(generatedId),
279
+ class: "formkit-suffix"
280
+ }, toDisplayString(__props.context?.suffix), 9, _hoisted_3$1)) : createCommentVNode("v-if", true)
281
+ ]);
282
+ };
283
+ }
284
+ });
285
+ //#endregion
286
+ //#region src/components/PrimeColorPicker.vue
287
+ const _hoisted_1$17 = { class: "p-formkit" };
288
+ const _sfc_main$17 = /* @__PURE__ */ defineComponent({
289
+ __name: "PrimeColorPicker",
290
+ props: { context: {
291
+ type: Object,
292
+ required: true
293
+ } },
294
+ setup(__props) {
295
+ const { unstyled, handleChange, modelValue } = useFormKitInput(__props.context);
296
+ return (_ctx, _cache) => {
297
+ const _component_ColorPicker = resolveComponent("ColorPicker");
298
+ return openBlock(), createElementBlock("div", _hoisted_1$17, [createVNode(_component_ColorPicker, mergeProps({
299
+ modelValue: unref(modelValue),
300
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(modelValue) ? modelValue.value = $event : null)
301
+ }, __props.context?.attrs, {
302
+ disabled: !!__props.context?.disabled,
303
+ readonly: __props.context?.attrs.readonly ?? false,
304
+ style: __props.context?.attrs.style,
305
+ "panel-class": __props.context?.attrs.class,
306
+ tabindex: __props.context?.attrs.tabindex,
307
+ "aria-label": __props.context?.attrs.ariaLabel,
308
+ "aria-labelledby": __props.context?.attrs.ariaLabelledby,
309
+ "default-color": __props.context.defaultColor ?? "ff0000",
310
+ inline: __props.context.inline ?? false,
311
+ format: __props.context.format,
312
+ pt: __props.context.pt,
313
+ "pt-options": __props.context.ptOptions,
314
+ unstyled: unref(unstyled),
315
+ onChange: unref(handleChange)
316
+ }), null, 16, [
317
+ "modelValue",
318
+ "disabled",
319
+ "readonly",
320
+ "style",
321
+ "panel-class",
322
+ "tabindex",
323
+ "aria-label",
324
+ "aria-labelledby",
325
+ "default-color",
326
+ "inline",
327
+ "format",
328
+ "pt",
329
+ "pt-options",
330
+ "unstyled",
331
+ "onChange"
332
+ ])]);
333
+ };
334
+ }
335
+ });
336
+ //#endregion
337
+ //#region src/components/PrimeDatePicker.vue
338
+ const _hoisted_1$16 = { class: "p-formkit" };
339
+ const _sfc_main$16 = /* @__PURE__ */ defineComponent({
340
+ __name: "PrimeDatePicker",
341
+ props: { context: {
342
+ type: Object,
343
+ required: true
344
+ } },
345
+ setup(__props) {
346
+ const props = __props;
347
+ const { validSlotNames, unstyled, isInvalid, handleInput, modelValue } = useFormKitInput(props.context);
348
+ function handleBlur(e) {
349
+ props.context?.handlers.blur(e.originalEvent);
350
+ }
351
+ function handleClearClick() {
352
+ props.context?.node.input(null);
353
+ }
354
+ function handleSelect(e) {
355
+ if (props.context?.selectionMode === "range" || props.context?.selectionMode === "multiple") props.context?.node.input(props.context._value);
356
+ else props.context?.node.input(e);
357
+ }
358
+ return (_ctx, _cache) => {
359
+ const _component_DatePicker = resolveComponent("DatePicker");
360
+ return openBlock(), createElementBlock("div", _hoisted_1$16, [createVNode(_component_DatePicker, mergeProps({
361
+ modelValue: unref(modelValue),
362
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(modelValue) ? modelValue.value = $event : null)
363
+ }, __props.context?.attrs, {
364
+ "input-id": __props.context.id,
365
+ disabled: !!__props.context?.disabled,
366
+ readonly: __props.context?.attrs.readonly ?? false,
367
+ "input-style": __props.context?.attrs.style,
368
+ "input-class": __props.context?.attrs?.class,
369
+ invalid: unref(isInvalid),
370
+ tabindex: __props.context?.attrs.tabindex,
371
+ "aria-label": __props.context?.attrs.ariaLabel,
372
+ "aria-labelledby": __props.context?.attrs.ariaLabelledby,
373
+ size: __props.context?.size ?? void 0,
374
+ "date-format": __props.context?.dateFormat,
375
+ placeholder: __props.context?.placeholder,
376
+ "selection-mode": __props.context?.selectionMode ?? "single",
377
+ inline: __props.context?.inline ?? false,
378
+ "show-other-months": __props.context?.showOtherMonths ?? true,
379
+ "select-other-months": __props.context?.selectOtherMonths ?? false,
380
+ icon: __props.context?.icon,
381
+ "show-icon": __props.context.showIcon,
382
+ "previous-icon": __props.context?.previousIcon,
383
+ "next-icon": __props.context?.nextIcon,
384
+ "increment-icon": __props.context?.incrementIcon,
385
+ "decrement-icon": __props.context?.decrementIcon,
386
+ "number-of-months": __props.context?.numberOfMonths ?? 1,
387
+ "responsive-options": __props.context?.responsiveOptions,
388
+ view: __props.context?.view ?? "date",
389
+ "touch-u-i": __props.context?.touchUI ?? false,
390
+ "min-date": __props.context?.minDate,
391
+ "max-date": __props.context?.maxDate,
392
+ "disabled-dates": __props.context?.disabledDates,
393
+ "disabled-days": __props.context?.disabledDays,
394
+ "max-date-count": __props.context?.maxDateCount,
395
+ "show-on-focus": __props.context?.showOnFocus ?? true,
396
+ "auto-z-index": __props.context?.autoZIndex ?? true,
397
+ "base-z-index": __props.context?.baseZIndex ?? 0,
398
+ "show-button-bar": __props.context?.showButtonBar ?? false,
399
+ "show-time": __props.context?.showTime ?? false,
400
+ "time-only": __props.context?.timeOnly ?? false,
401
+ "short-year-cutoff": __props.context?.shortYearCutoff ?? "+10",
402
+ "hour-format": __props.context?.hourFormat ?? "24",
403
+ "step-hour": __props.context?.stepHour ?? 1,
404
+ "step-minute": __props.context?.stepMinute ?? 1,
405
+ "step-second": __props.context?.stepSecond ?? 1,
406
+ "show-seconds": __props.context?.showSeconds ?? false,
407
+ "hide-on-date-time-select": __props.context?.hideOnDateTimeSelect ?? false,
408
+ "hide-on-range-selection": __props.context?.hideOnRangeSelection ?? false,
409
+ "time-separator": __props.context?.timeSeparator ?? ":",
410
+ "show-week": __props.context?.showWeek ?? false,
411
+ "manual-input": __props.context?.manualInput ?? true,
412
+ "append-to": __props.context?.appendTo ?? "body",
413
+ "panel-style": __props.context?.panelStyle,
414
+ "panel-class": __props.context?.panelClass,
415
+ pt: __props.context?.pt,
416
+ "pt-options": __props.context?.ptOptions,
417
+ unstyled: unref(unstyled),
418
+ "update-model-type": __props.context?.updateModelType ?? "date",
419
+ onDateSelect: handleSelect,
420
+ onBlur: handleBlur,
421
+ onClearClick: handleClearClick,
422
+ onValueChange: unref(handleInput)
423
+ }), createSlots({ _: 2 }, [renderList(unref(validSlotNames), (slotName) => {
424
+ return {
425
+ name: slotName,
426
+ fn: withCtx((slotProps) => [(openBlock(), createBlock(resolveDynamicComponent(__props.context?.slots[slotName]), normalizeProps(guardReactiveProps({
427
+ ...__props.context,
428
+ ...slotProps
429
+ })), null, 16))])
430
+ };
431
+ })]), 1040, [
432
+ "modelValue",
433
+ "input-id",
434
+ "disabled",
435
+ "readonly",
436
+ "input-style",
437
+ "input-class",
438
+ "invalid",
439
+ "tabindex",
440
+ "aria-label",
441
+ "aria-labelledby",
442
+ "size",
443
+ "date-format",
444
+ "placeholder",
445
+ "selection-mode",
446
+ "inline",
447
+ "show-other-months",
448
+ "select-other-months",
449
+ "icon",
450
+ "show-icon",
451
+ "previous-icon",
452
+ "next-icon",
453
+ "increment-icon",
454
+ "decrement-icon",
455
+ "number-of-months",
456
+ "responsive-options",
457
+ "view",
458
+ "touch-u-i",
459
+ "min-date",
460
+ "max-date",
461
+ "disabled-dates",
462
+ "disabled-days",
463
+ "max-date-count",
464
+ "show-on-focus",
465
+ "auto-z-index",
466
+ "base-z-index",
467
+ "show-button-bar",
468
+ "show-time",
469
+ "time-only",
470
+ "short-year-cutoff",
471
+ "hour-format",
472
+ "step-hour",
473
+ "step-minute",
474
+ "step-second",
475
+ "show-seconds",
476
+ "hide-on-date-time-select",
477
+ "hide-on-range-selection",
478
+ "time-separator",
479
+ "show-week",
480
+ "manual-input",
481
+ "append-to",
482
+ "panel-style",
483
+ "panel-class",
484
+ "pt",
485
+ "pt-options",
486
+ "unstyled",
487
+ "update-model-type",
488
+ "onValueChange"
489
+ ])]);
490
+ };
491
+ }
492
+ });
493
+ //#endregion
494
+ //#region src/components/PrimeInputMask.vue
495
+ const _hoisted_1$15 = { class: "p-formkit" };
496
+ const _sfc_main$15 = /* @__PURE__ */ defineComponent({
497
+ __name: "PrimeInputMask",
498
+ props: { context: {
499
+ type: Object,
500
+ required: true
501
+ } },
502
+ setup(__props) {
503
+ const props = __props;
504
+ const { unstyled, isInvalid, handleInput, handleBlur, modelValue } = useFormKitInput(props.context);
505
+ const { hasPrefixIcon, hasSuffixIcon } = useFormKitSection(props.context);
506
+ return (_ctx, _cache) => {
507
+ const _component_InputMask = resolveComponent("InputMask");
508
+ return openBlock(), createElementBlock("div", _hoisted_1$15, [unref(hasPrefixIcon) || unref(hasSuffixIcon) ? (openBlock(), createBlock(unref(IconField), { key: 0 }, {
509
+ default: withCtx(() => [
510
+ unref(hasPrefixIcon) ? (openBlock(), createBlock(unref(InputIcon), {
511
+ key: 0,
512
+ class: normalizeClass(__props.context?.iconPrefix)
513
+ }, null, 8, ["class"])) : createCommentVNode("v-if", true),
514
+ createVNode(_component_InputMask, mergeProps({
515
+ id: __props.context.id,
516
+ modelValue: unref(modelValue),
517
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(modelValue) ? modelValue.value = $event : null)
518
+ }, __props.context?.attrs, {
519
+ disabled: !!__props.context?.disabled,
520
+ readonly: __props.context?.attrs.readonly ?? false,
521
+ class: __props.context?.attrs?.class,
522
+ invalid: unref(isInvalid),
523
+ tabindex: __props.context?.attrs.tabindex,
524
+ "aria-label": __props.context?.attrs.ariaLabel,
525
+ "aria-labelledby": __props.context?.attrs.ariaLabelledby,
526
+ size: __props.context?.size ?? void 0,
527
+ mask: __props.context.mask ?? void 0,
528
+ "slot-char": __props.context.slotChar ?? "_",
529
+ "auto-clear": __props.context.autoClear ?? true,
530
+ unmask: __props.context.unmask ?? false,
531
+ pt: __props.context.pt,
532
+ variant: __props.context.variant,
533
+ "pt-options": __props.context.ptOptions,
534
+ unstyled: unref(unstyled),
535
+ "onUpdate:modelValue": unref(handleInput),
536
+ onBlur: unref(handleBlur)
537
+ }), null, 16, [
538
+ "id",
539
+ "modelValue",
540
+ "disabled",
541
+ "readonly",
542
+ "class",
543
+ "invalid",
544
+ "tabindex",
545
+ "aria-label",
546
+ "aria-labelledby",
547
+ "size",
548
+ "mask",
549
+ "slot-char",
550
+ "auto-clear",
551
+ "unmask",
552
+ "pt",
553
+ "variant",
554
+ "pt-options",
555
+ "unstyled",
556
+ "onUpdate:modelValue",
557
+ "onBlur"
558
+ ]),
559
+ unref(hasSuffixIcon) ? (openBlock(), createBlock(unref(InputIcon), {
560
+ key: 1,
561
+ class: normalizeClass(__props.context?.iconSuffix)
562
+ }, null, 8, ["class"])) : createCommentVNode("v-if", true)
563
+ ]),
564
+ _: 1
565
+ })) : createCommentVNode("v-if", true), !unref(hasPrefixIcon) && !unref(hasSuffixIcon) ? (openBlock(), createBlock(_component_InputMask, mergeProps({
566
+ key: 1,
567
+ id: __props.context.id,
568
+ modelValue: unref(modelValue),
569
+ "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => isRef(modelValue) ? modelValue.value = $event : null)
570
+ }, __props.context?.attrs, {
571
+ disabled: !!__props.context?.disabled,
572
+ readonly: __props.context?.attrs.readonly ?? false,
573
+ class: __props.context?.attrs?.class,
574
+ invalid: unref(isInvalid),
575
+ tabindex: __props.context?.attrs.tabindex,
576
+ "aria-label": __props.context?.attrs.ariaLabel,
577
+ "aria-labelledby": __props.context?.attrs.ariaLabelledby,
578
+ size: __props.context?.size ?? void 0,
579
+ mask: __props.context.mask ?? void 0,
580
+ "slot-char": __props.context.slotChar ?? "_",
581
+ "auto-clear": __props.context.autoClear ?? true,
582
+ unmask: __props.context.unmask ?? false,
583
+ pt: __props.context.pt,
584
+ variant: __props.context.variant,
585
+ "pt-options": __props.context.ptOptions,
586
+ unstyled: unref(unstyled),
587
+ "onUpdate:modelValue": unref(handleInput),
588
+ onBlur: unref(handleBlur)
589
+ }), null, 16, [
590
+ "id",
591
+ "modelValue",
592
+ "disabled",
593
+ "readonly",
594
+ "class",
595
+ "invalid",
596
+ "tabindex",
597
+ "aria-label",
598
+ "aria-labelledby",
599
+ "size",
600
+ "mask",
601
+ "slot-char",
602
+ "auto-clear",
603
+ "unmask",
604
+ "pt",
605
+ "variant",
606
+ "pt-options",
607
+ "unstyled",
608
+ "onUpdate:modelValue",
609
+ "onBlur"
610
+ ])) : createCommentVNode("v-if", true)]);
611
+ };
612
+ }
613
+ });
614
+ //#endregion
615
+ //#region src/components/PrimeInputNumber.vue
616
+ const _hoisted_1$14 = { class: "p-formkit" };
617
+ const _sfc_main$14 = /* @__PURE__ */ defineComponent({
618
+ __name: "PrimeInputNumber",
619
+ props: { context: {
620
+ type: Object,
621
+ required: true
622
+ } },
623
+ setup(__props) {
624
+ const props = __props;
625
+ const { validSlotNames, unstyled, isInvalid, modelValue } = useFormKitInput(props.context);
626
+ function handleBlur(e) {
627
+ props.context?.handlers.blur(e.originalEvent);
628
+ }
629
+ function handleInput(_) {
630
+ if (typeof _.value === "number" || _.value === null) props.context?.node.input(_.value);
631
+ }
632
+ function roundToDecimals(value, decimals) {
633
+ const factor = 10 ** decimals;
634
+ return Math.round(value * factor) / factor;
635
+ }
636
+ watch(() => props.context._value, (newValue) => {
637
+ if (newValue !== props.context.node.value && typeof newValue === "number") if (props.context.maxFractionDigits && props.context.maxFractionDigits > 0) props.context?.node.input(roundToDecimals(newValue, props.context.maxFractionDigits));
638
+ else props.context?.node.input(newValue);
639
+ });
640
+ return (_ctx, _cache) => {
641
+ const _component_InputNumber = resolveComponent("InputNumber");
642
+ return openBlock(), createElementBlock("div", _hoisted_1$14, [createVNode(_component_InputNumber, mergeProps({
643
+ modelValue: unref(modelValue),
644
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(modelValue) ? modelValue.value = $event : null)
645
+ }, __props.context?.attrs, {
646
+ "input-id": __props.context.id,
647
+ disabled: !!__props.context?.disabled,
648
+ readonly: __props.context?.attrs.readonly ?? false,
649
+ "input-style": __props.context?.attrs.style,
650
+ "input-class": __props.context?.attrs?.class,
651
+ invalid: unref(isInvalid),
652
+ tabindex: __props.context?.attrs.tabindex,
653
+ "aria-label": __props.context?.attrs.ariaLabel,
654
+ "aria-labelledby": __props.context?.attrs.ariaLabelledby,
655
+ size: __props.context?.size ?? void 0,
656
+ placeholder: __props.context.placeholder,
657
+ "use-grouping": __props.context.useGrouping ?? true,
658
+ min: __props.context.min ?? void 0,
659
+ max: __props.context.max ?? void 0,
660
+ "min-fraction-digits": __props.context.minFractionDigits ?? void 0,
661
+ "max-fraction-digits": __props.context.maxFractionDigits ?? void 0,
662
+ locale: __props.context.locale ?? void 0,
663
+ mode: __props.context.mode ?? void 0,
664
+ currency: __props.context.currency ?? void 0,
665
+ prefix: __props.context.prefix ?? void 0,
666
+ suffix: __props.context.suffix ?? void 0,
667
+ "show-buttons": __props.context.showButtons ?? void 0,
668
+ "button-layout": __props.context.buttonLayout ?? "stacked",
669
+ step: __props.context.step ?? void 0,
670
+ pt: __props.context.pt,
671
+ "pt-options": __props.context.ptOptions,
672
+ unstyled: unref(unstyled),
673
+ onInput: handleInput,
674
+ onBlur: handleBlur
675
+ }), createSlots({ _: 2 }, [renderList(unref(validSlotNames), (slotName) => {
676
+ return {
677
+ name: slotName,
678
+ fn: withCtx((slotProps) => [(openBlock(), createBlock(resolveDynamicComponent(__props.context?.slots[slotName]), normalizeProps(guardReactiveProps({
679
+ ...__props.context,
680
+ ...slotProps
681
+ })), null, 16))])
682
+ };
683
+ })]), 1040, [
684
+ "modelValue",
685
+ "input-id",
686
+ "disabled",
687
+ "readonly",
688
+ "input-style",
689
+ "input-class",
690
+ "invalid",
691
+ "tabindex",
692
+ "aria-label",
693
+ "aria-labelledby",
694
+ "size",
695
+ "placeholder",
696
+ "use-grouping",
697
+ "min",
698
+ "max",
699
+ "min-fraction-digits",
700
+ "max-fraction-digits",
701
+ "locale",
702
+ "mode",
703
+ "currency",
704
+ "prefix",
705
+ "suffix",
706
+ "show-buttons",
707
+ "button-layout",
708
+ "step",
709
+ "pt",
710
+ "pt-options",
711
+ "unstyled"
712
+ ])]);
713
+ };
714
+ }
715
+ });
716
+ //#endregion
717
+ //#region src/components/PrimeInputText.vue
718
+ const _hoisted_1$13 = { class: "p-formkit" };
719
+ const _sfc_main$13 = /* @__PURE__ */ defineComponent({
720
+ __name: "PrimeInputText",
721
+ props: { context: {
722
+ type: Object,
723
+ required: true
724
+ } },
725
+ setup(__props) {
726
+ const props = __props;
727
+ const { unstyled, isInvalid, handleInput, handleBlur, modelValue } = useFormKitInput(props.context);
728
+ const { hasPrefixIcon, hasSuffixIcon } = useFormKitSection(props.context);
729
+ return (_ctx, _cache) => {
730
+ const _component_InputText = resolveComponent("InputText");
731
+ return openBlock(), createElementBlock("div", _hoisted_1$13, [unref(hasPrefixIcon) || unref(hasSuffixIcon) ? (openBlock(), createBlock(unref(IconField), { key: 0 }, {
732
+ default: withCtx(() => [
733
+ unref(hasPrefixIcon) ? (openBlock(), createBlock(unref(InputIcon), {
734
+ key: 0,
735
+ class: normalizeClass(__props.context?.iconPrefix)
736
+ }, null, 8, ["class"])) : createCommentVNode("v-if", true),
737
+ createVNode(_component_InputText, mergeProps({
738
+ id: __props.context.id,
739
+ modelValue: unref(modelValue),
740
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(modelValue) ? modelValue.value = $event : null)
741
+ }, __props.context?.attrs, {
742
+ type: __props.context?.attrs?.inputType ?? "text",
743
+ disabled: !!__props.context?.disabled,
744
+ readonly: __props.context?.attrs.readonly ?? false,
745
+ style: __props.context?.attrs?.style,
746
+ class: __props.context?.attrs?.class,
747
+ invalid: unref(isInvalid),
748
+ tabindex: __props.context?.attrs.tabindex,
749
+ "aria-label": __props.context?.attrs.ariaLabel,
750
+ "aria-labelledby": __props.context?.attrs.ariaLabelledby,
751
+ size: __props.context?.size ?? void 0,
752
+ placeholder: __props.context.placeholder,
753
+ pt: __props.context.pt,
754
+ "pt-options": __props.context.ptOptions,
755
+ unstyled: unref(unstyled),
756
+ onInput: unref(handleInput),
757
+ onBlur: unref(handleBlur)
758
+ }), null, 16, [
759
+ "id",
760
+ "modelValue",
761
+ "type",
762
+ "disabled",
763
+ "readonly",
764
+ "style",
765
+ "class",
766
+ "invalid",
767
+ "tabindex",
768
+ "aria-label",
769
+ "aria-labelledby",
770
+ "size",
771
+ "placeholder",
772
+ "pt",
773
+ "pt-options",
774
+ "unstyled",
775
+ "onInput",
776
+ "onBlur"
777
+ ]),
778
+ unref(hasSuffixIcon) ? (openBlock(), createBlock(unref(InputIcon), {
779
+ key: 1,
780
+ class: normalizeClass(__props.context?.iconSuffix)
781
+ }, null, 8, ["class"])) : createCommentVNode("v-if", true)
782
+ ]),
783
+ _: 1
784
+ })) : createCommentVNode("v-if", true), !unref(hasPrefixIcon) && !unref(hasSuffixIcon) ? (openBlock(), createBlock(_component_InputText, mergeProps({
785
+ key: 1,
786
+ id: __props.context.id,
787
+ modelValue: unref(modelValue),
788
+ "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => isRef(modelValue) ? modelValue.value = $event : null)
789
+ }, __props.context?.attrs, {
790
+ type: __props.context?.inputType ?? "text",
791
+ disabled: !!__props.context?.disabled,
792
+ readonly: __props.context?.attrs.readonly ?? false,
793
+ style: __props.context?.attrs.style,
794
+ class: __props.context?.attrs?.class,
795
+ invalid: unref(isInvalid),
796
+ tabindex: __props.context?.attrs.tabindex,
797
+ "aria-label": __props.context?.attrs.ariaLabel,
798
+ "aria-labelledby": __props.context?.attrs.ariaLabelledby,
799
+ size: __props.context?.size ?? void 0,
800
+ placeholder: __props.context.placeholder,
801
+ pt: __props.context.pt,
802
+ "pt-options": __props.context.ptOptions,
803
+ unstyled: unref(unstyled),
804
+ onInput: unref(handleInput),
805
+ onBlur: unref(handleBlur)
806
+ }), null, 16, [
807
+ "id",
808
+ "modelValue",
809
+ "type",
810
+ "disabled",
811
+ "readonly",
812
+ "style",
813
+ "class",
814
+ "invalid",
815
+ "tabindex",
816
+ "aria-label",
817
+ "aria-labelledby",
818
+ "size",
819
+ "placeholder",
820
+ "pt",
821
+ "pt-options",
822
+ "unstyled",
823
+ "onInput",
824
+ "onBlur"
825
+ ])) : createCommentVNode("v-if", true)]);
826
+ };
827
+ }
828
+ });
829
+ //#endregion
830
+ //#region src/components/PrimeKnob.vue
831
+ const _hoisted_1$12 = { class: "p-formkit" };
832
+ const _sfc_main$12 = /* @__PURE__ */ defineComponent({
833
+ __name: "PrimeKnob",
834
+ props: { context: {
835
+ type: Object,
836
+ required: true
837
+ } },
838
+ setup(__props) {
839
+ const props = __props;
840
+ const { unstyled, isInvalid, modelValue } = useFormKitInput(props.context);
841
+ function handleInput(e) {
842
+ props.context?.node.input(e);
843
+ props.context?.handlers.blur(e);
844
+ }
845
+ function updateValue(n) {
846
+ props.context?.node.input(n);
847
+ }
848
+ return (_ctx, _cache) => {
849
+ const _component_Knob = resolveComponent("Knob");
850
+ return openBlock(), createElementBlock("div", _hoisted_1$12, [createVNode(_component_Knob, mergeProps({
851
+ id: __props.context.id,
852
+ modelValue: unref(modelValue),
853
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(modelValue) ? modelValue.value = $event : null)
854
+ }, __props.context?.attrs, {
855
+ disabled: !!__props.context?.disabled,
856
+ readonly: __props.context?.attrs.readonly ?? false,
857
+ style: __props.context?.attrs.style,
858
+ class: __props.context?.attrs?.class,
859
+ invalid: unref(isInvalid),
860
+ tabindex: __props.context?.attrs.tabindex,
861
+ "aria-label": __props.context?.attrs.ariaLabel,
862
+ "aria-labelledby": __props.context?.attrs.ariaLabelledby,
863
+ min: __props.context.min ?? 0,
864
+ max: __props.context.max ?? 100,
865
+ step: __props.context.step ?? void 0,
866
+ size: __props.context.size ?? 100,
867
+ "stroke-width": __props.context.strokeWidth ?? 14,
868
+ "show-value": __props.context.showValue ?? true,
869
+ "value-color": __props.context.valueColor ?? void 0,
870
+ "range-color": __props.context.rangeColor ?? void 0,
871
+ "text-color": __props.context.textColor ?? void 0,
872
+ "value-template": __props.context.valueTemplate ?? void 0,
873
+ pt: __props.context.pt,
874
+ "pt-options": __props.context.ptOptions,
875
+ unstyled: unref(unstyled),
876
+ onChange: handleInput,
877
+ "onUpdate:modelValue": updateValue
878
+ }), null, 16, [
879
+ "id",
880
+ "modelValue",
881
+ "disabled",
882
+ "readonly",
883
+ "style",
884
+ "class",
885
+ "invalid",
886
+ "tabindex",
887
+ "aria-label",
888
+ "aria-labelledby",
889
+ "min",
890
+ "max",
891
+ "step",
892
+ "size",
893
+ "stroke-width",
894
+ "show-value",
895
+ "value-color",
896
+ "range-color",
897
+ "text-color",
898
+ "value-template",
899
+ "pt",
900
+ "pt-options",
901
+ "unstyled"
902
+ ])]);
903
+ };
904
+ }
905
+ });
906
+ //#endregion
907
+ //#region src/components/PrimeListbox.vue
908
+ const _hoisted_1$11 = { class: "p-formkit" };
909
+ const _sfc_main$11 = /* @__PURE__ */ defineComponent({
910
+ __name: "PrimeListbox",
911
+ props: { context: {
912
+ type: Object,
913
+ required: true
914
+ } },
915
+ setup(__props) {
916
+ const { validSlotNames, unstyled, isInvalid, handleInput, handleBlur, modelValue } = useFormKitInput(__props.context);
917
+ return (_ctx, _cache) => {
918
+ const _component_Listbox = resolveComponent("Listbox");
919
+ return openBlock(), createElementBlock("div", _hoisted_1$11, [createVNode(_component_Listbox, mergeProps({
920
+ id: __props.context.id,
921
+ modelValue: unref(modelValue),
922
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(modelValue) ? modelValue.value = $event : null)
923
+ }, __props.context?.attrs, {
924
+ disabled: !!__props.context?.disabled,
925
+ readonly: __props.context?.attrs.readonly ?? false,
926
+ "list-style": __props.context?.attrs.style,
927
+ class: __props.context?.attrs?.class,
928
+ invalid: unref(isInvalid),
929
+ tabindex: __props.context?.attrs.tabindex,
930
+ "aria-label": __props.context?.attrs.ariaLabel,
931
+ "aria-labelledby": __props.context?.attrs.ariaLabelledby,
932
+ options: __props.context?.options,
933
+ "option-label": __props.context.optionLabel,
934
+ "option-value": __props.context.optionValue,
935
+ "option-disabled": __props.context.optionDisabled,
936
+ "option-group-label": __props.context.optionGroupLabel,
937
+ "option-group-children": __props.context.optionGroupChildren,
938
+ multiple: __props.context.multiple ?? false,
939
+ filter: __props.context.filter ?? false,
940
+ "filter-icon": __props.context.filterIcon,
941
+ "filter-placeholder": __props.context.filterPlaceholder,
942
+ "filter-locale": __props.context.filterLocale,
943
+ "filter-match-mode": __props.context.filterMatchMode,
944
+ "auto-option-focus": __props.context.autoOptionFocus ?? true,
945
+ "select-on-focus": __props.context.selectOnFocus ?? false,
946
+ "data-key": __props.context.dataKey,
947
+ "meta-key-selection": __props.context.metaKeySelection ?? false,
948
+ "virtual-scroller-options": __props.context.virtualScrollerOptions,
949
+ pt: __props.context.pt,
950
+ "pt-options": __props.context.ptOptions,
951
+ unstyled: unref(unstyled),
952
+ onChange: unref(handleInput),
953
+ onBlur: unref(handleBlur)
954
+ }), createSlots({ _: 2 }, [renderList(unref(validSlotNames), (slotName) => {
955
+ return {
956
+ name: slotName,
957
+ fn: withCtx((slotProps) => [(openBlock(), createBlock(resolveDynamicComponent(__props.context?.slots[slotName]), normalizeProps(guardReactiveProps({
958
+ ...__props.context,
959
+ ...slotProps
960
+ })), null, 16))])
961
+ };
962
+ })]), 1040, [
963
+ "id",
964
+ "modelValue",
965
+ "disabled",
966
+ "readonly",
967
+ "list-style",
968
+ "class",
969
+ "invalid",
970
+ "tabindex",
971
+ "aria-label",
972
+ "aria-labelledby",
973
+ "options",
974
+ "option-label",
975
+ "option-value",
976
+ "option-disabled",
977
+ "option-group-label",
978
+ "option-group-children",
979
+ "multiple",
980
+ "filter",
981
+ "filter-icon",
982
+ "filter-placeholder",
983
+ "filter-locale",
984
+ "filter-match-mode",
985
+ "auto-option-focus",
986
+ "select-on-focus",
987
+ "data-key",
988
+ "meta-key-selection",
989
+ "virtual-scroller-options",
990
+ "pt",
991
+ "pt-options",
992
+ "unstyled",
993
+ "onChange",
994
+ "onBlur"
995
+ ])]);
996
+ };
997
+ }
998
+ });
999
+ //#endregion
1000
+ //#region src/components/PrimeMultiSelect.vue
1001
+ const _hoisted_1$10 = { class: "p-formkit" };
1002
+ const _sfc_main$10 = /* @__PURE__ */ defineComponent({
1003
+ __name: "PrimeMultiSelect",
1004
+ props: { context: {
1005
+ type: Object,
1006
+ required: true
1007
+ } },
1008
+ setup(__props) {
1009
+ const { validSlotNames, unstyled, isInvalid, handleBlur, handleChange, modelValue } = useFormKitInput(__props.context);
1010
+ return (_ctx, _cache) => {
1011
+ const _component_MultiSelect = resolveComponent("MultiSelect");
1012
+ return openBlock(), createElementBlock("div", _hoisted_1$10, [createVNode(_component_MultiSelect, mergeProps({
1013
+ modelValue: unref(modelValue),
1014
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(modelValue) ? modelValue.value = $event : null)
1015
+ }, __props.context?.attrs, {
1016
+ "input-id": __props.context.id,
1017
+ disabled: !!__props.context?.disabled,
1018
+ readonly: __props.context?.attrs.readonly ?? false,
1019
+ "list-style": __props.context?.attrs.style,
1020
+ class: __props.context?.attrs?.class,
1021
+ invalid: unref(isInvalid),
1022
+ tabindex: __props.context?.attrs.tabindex,
1023
+ "aria-label": __props.context?.attrs.ariaLabel,
1024
+ "aria-labelledby": __props.context?.attrs.ariaLabelledby,
1025
+ size: __props.context?.size ?? void 0,
1026
+ placeholder: __props.context.placeholder,
1027
+ options: __props.context.options,
1028
+ "option-label": __props.context.optionLabel,
1029
+ "option-value": __props.context.optionValue,
1030
+ "option-disabled": __props.context.optionDisabled,
1031
+ "option-group-label": __props.context.optionGroupLabel,
1032
+ "option-group-children": __props.context.optionGroupChildren,
1033
+ "scroll-height": __props.context.scrollHeight,
1034
+ "data-key": __props.context.dataKey,
1035
+ filter: __props.context.filter ?? false,
1036
+ "filter-placeholder": __props.context.filterPlaceholder,
1037
+ "filter-locale": __props.context.filterLocale,
1038
+ "filter-match-mode": __props.context.filterMatchMode,
1039
+ "fitler-fields": __props.context.filterFields,
1040
+ "append-to": __props.context.appendTo,
1041
+ "close-icon": __props.context.closeIcon,
1042
+ display: __props.context.display,
1043
+ "max-selected-labels": __props.context.maxSelectedLabels,
1044
+ "selected-items-label": __props.context.selectedItemsLabel,
1045
+ "selection-limit": __props.context.selectionLimit,
1046
+ "show-toggle-all": __props.context.showToggleAll,
1047
+ loading: __props.context.loading,
1048
+ "select-all": __props.context.selectAll,
1049
+ "reset-filter-on-hide": __props.context.resetFilterOnHide,
1050
+ "virtual-scroller-options": __props.context.virtualScrollerOptions,
1051
+ "auto-option-focus": __props.context.autoOptionFocus,
1052
+ "auto-filter-focus": __props.context.autoFilterFocus,
1053
+ "filter-message": __props.context.filterMessage,
1054
+ "selection-message": __props.context.selectionMessage,
1055
+ "empty-selection-message": __props.context.emptySelectionMessage,
1056
+ "empty-filter-message": __props.context.emptyFilterMessage,
1057
+ "empty-message": __props.context.emptyMessage,
1058
+ pt: __props.context.pt,
1059
+ "pt-options": __props.context.ptOptions,
1060
+ unstyled: unref(unstyled),
1061
+ onChange: unref(handleChange),
1062
+ onBlur: unref(handleBlur)
1063
+ }), createSlots({ _: 2 }, [renderList(unref(validSlotNames), (slotName) => {
1064
+ return {
1065
+ name: slotName,
1066
+ fn: withCtx((slotProps) => [(openBlock(), createBlock(resolveDynamicComponent(__props.context?.slots[slotName]), normalizeProps(guardReactiveProps({
1067
+ ...__props.context,
1068
+ ...slotProps
1069
+ })), null, 16))])
1070
+ };
1071
+ })]), 1040, [
1072
+ "modelValue",
1073
+ "input-id",
1074
+ "disabled",
1075
+ "readonly",
1076
+ "list-style",
1077
+ "class",
1078
+ "invalid",
1079
+ "tabindex",
1080
+ "aria-label",
1081
+ "aria-labelledby",
1082
+ "size",
1083
+ "placeholder",
1084
+ "options",
1085
+ "option-label",
1086
+ "option-value",
1087
+ "option-disabled",
1088
+ "option-group-label",
1089
+ "option-group-children",
1090
+ "scroll-height",
1091
+ "data-key",
1092
+ "filter",
1093
+ "filter-placeholder",
1094
+ "filter-locale",
1095
+ "filter-match-mode",
1096
+ "fitler-fields",
1097
+ "append-to",
1098
+ "close-icon",
1099
+ "display",
1100
+ "max-selected-labels",
1101
+ "selected-items-label",
1102
+ "selection-limit",
1103
+ "show-toggle-all",
1104
+ "loading",
1105
+ "select-all",
1106
+ "reset-filter-on-hide",
1107
+ "virtual-scroller-options",
1108
+ "auto-option-focus",
1109
+ "auto-filter-focus",
1110
+ "filter-message",
1111
+ "selection-message",
1112
+ "empty-selection-message",
1113
+ "empty-filter-message",
1114
+ "empty-message",
1115
+ "pt",
1116
+ "pt-options",
1117
+ "unstyled",
1118
+ "onChange",
1119
+ "onBlur"
1120
+ ])]);
1121
+ };
1122
+ }
1123
+ });
1124
+ //#endregion
1125
+ //#region src/components/PrimePassword.vue
1126
+ const _hoisted_1$9 = { class: "p-formkit" };
1127
+ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
1128
+ __name: "PrimePassword",
1129
+ props: { context: {
1130
+ type: Object,
1131
+ required: true
1132
+ } },
1133
+ setup(__props) {
1134
+ const { validSlotNames, unstyled, isInvalid, handleInput, handleBlur, modelValue } = useFormKitInput(__props.context);
1135
+ return (_ctx, _cache) => {
1136
+ const _component_Password = resolveComponent("Password");
1137
+ return openBlock(), createElementBlock("div", _hoisted_1$9, [createVNode(_component_Password, mergeProps({
1138
+ modelValue: unref(modelValue),
1139
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(modelValue) ? modelValue.value = $event : null)
1140
+ }, __props.context?.attrs, {
1141
+ "input-id": __props.context.id,
1142
+ disabled: !!__props.context?.disabled,
1143
+ readonly: __props.context?.attrs.readonly ?? false,
1144
+ "input-style": __props.context?.attrs.style,
1145
+ "input-class": __props.context?.attrs?.class,
1146
+ invalid: unref(isInvalid),
1147
+ tabindex: __props.context?.attrs.tabindex,
1148
+ "aria-label": __props.context?.attrs.ariaLabel,
1149
+ "aria-labelledby": __props.context?.attrs.ariaLabelledby,
1150
+ size: __props.context?.size ?? void 0,
1151
+ placeholder: __props.context.placeholder,
1152
+ "medium-regex": __props.context.mediumRegex ?? "^(((?=.*[a-z])(?=.*[A-Z]))|((?=.*[a-z])(?=.*[0-9]))|((?=.*[A-Z])(?=.*[0-9])))(?=.{6,})",
1153
+ "strong-regex": __props.context.strongRegex ?? "^(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.{8,})",
1154
+ "prompt-label": __props.context.promptLabel,
1155
+ "weak-label": __props.context.weakLabel,
1156
+ "medium-label": __props.context.mediumLabel,
1157
+ "strong-label": __props.context.strongLabel,
1158
+ "mask-icon": __props.context.maskIcon,
1159
+ "unmask-icon": __props.context.unmaskIcon,
1160
+ feedback: __props.context.feedback ?? false,
1161
+ "toggle-mask": __props.context.toggleMask ?? false,
1162
+ pt: __props.context.pt,
1163
+ "pt-options": __props.context.ptOptions,
1164
+ unstyled: unref(unstyled),
1165
+ onInput: unref(handleInput),
1166
+ onBlur: unref(handleBlur)
1167
+ }), createSlots({ _: 2 }, [renderList(unref(validSlotNames), (slotName) => {
1168
+ return {
1169
+ name: slotName,
1170
+ fn: withCtx((slotProps) => [(openBlock(), createBlock(resolveDynamicComponent(__props.context?.slots[slotName]), normalizeProps(guardReactiveProps({
1171
+ ...__props.context,
1172
+ ...slotProps
1173
+ })), null, 16))])
1174
+ };
1175
+ })]), 1040, [
1176
+ "modelValue",
1177
+ "input-id",
1178
+ "disabled",
1179
+ "readonly",
1180
+ "input-style",
1181
+ "input-class",
1182
+ "invalid",
1183
+ "tabindex",
1184
+ "aria-label",
1185
+ "aria-labelledby",
1186
+ "size",
1187
+ "placeholder",
1188
+ "medium-regex",
1189
+ "strong-regex",
1190
+ "prompt-label",
1191
+ "weak-label",
1192
+ "medium-label",
1193
+ "strong-label",
1194
+ "mask-icon",
1195
+ "unmask-icon",
1196
+ "feedback",
1197
+ "toggle-mask",
1198
+ "pt",
1199
+ "pt-options",
1200
+ "unstyled",
1201
+ "onInput",
1202
+ "onBlur"
1203
+ ])]);
1204
+ };
1205
+ }
1206
+ });
1207
+ //#endregion
1208
+ //#region src/components/PrimeRadioButton.vue
1209
+ const _hoisted_1$8 = ["for"];
1210
+ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
1211
+ __name: "PrimeRadioButton",
1212
+ props: { context: {
1213
+ type: Object,
1214
+ required: true
1215
+ } },
1216
+ setup(__props) {
1217
+ const props = __props;
1218
+ const { unstyled, isInvalid, handleChange, handleBlur, modelValue } = useFormKitInput(props.context);
1219
+ const optionsClass = computed(() => props.context?.optionsClass ?? "");
1220
+ const optionClass = computed(() => props.context?.optionClass ?? "");
1221
+ const labelClass = computed(() => props.context?.labelClass ?? "");
1222
+ return (_ctx, _cache) => {
1223
+ const _component_RadioButton = resolveComponent("RadioButton");
1224
+ return openBlock(), createElementBlock("div", { class: normalizeClass(["p-formkit p-formkit-options", optionsClass.value]) }, [(openBlock(true), createElementBlock(Fragment, null, renderList(__props.context.options, (option) => {
1225
+ return openBlock(), createElementBlock("div", {
1226
+ key: option.value,
1227
+ class: normalizeClass(["p-formkit-option", optionClass.value])
1228
+ }, [createVNode(_component_RadioButton, mergeProps({
1229
+ id: __props.context.id,
1230
+ modelValue: unref(modelValue),
1231
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(modelValue) ? modelValue.value = $event : null)
1232
+ }, { ref_for: true }, __props.context?.attrs, {
1233
+ disabled: !!__props.context?.disabled,
1234
+ readonly: __props.context?.attrs.readonly ?? false,
1235
+ name: __props.context?.attrs.name,
1236
+ value: option.value,
1237
+ "input-style": __props.context?.attrs.style,
1238
+ "input-class": __props.context?.attrs?.class,
1239
+ invalid: unref(isInvalid),
1240
+ size: __props.context?.size ?? void 0,
1241
+ pt: __props.context.pt,
1242
+ "pt-options": __props.context.ptOptions,
1243
+ unstyled: unref(unstyled),
1244
+ onClick: unref(handleChange),
1245
+ onChange: unref(handleChange),
1246
+ onBlur: unref(handleBlur)
1247
+ }), null, 16, [
1248
+ "id",
1249
+ "modelValue",
1250
+ "disabled",
1251
+ "readonly",
1252
+ "name",
1253
+ "value",
1254
+ "input-style",
1255
+ "input-class",
1256
+ "invalid",
1257
+ "size",
1258
+ "pt",
1259
+ "pt-options",
1260
+ "unstyled",
1261
+ "onClick",
1262
+ "onChange",
1263
+ "onBlur"
1264
+ ]), createElementVNode("label", {
1265
+ for: option.value,
1266
+ class: normalizeClass(labelClass.value)
1267
+ }, toDisplayString(option.label), 11, _hoisted_1$8)], 2);
1268
+ }), 128))], 2);
1269
+ };
1270
+ }
1271
+ });
1272
+ //#endregion
1273
+ //#region src/components/PrimeRating.vue
1274
+ const _hoisted_1$7 = { class: "p-formkit" };
1275
+ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
1276
+ __name: "PrimeRating",
1277
+ props: { context: {
1278
+ type: Object,
1279
+ required: true
1280
+ } },
1281
+ setup(__props) {
1282
+ const { validSlotNames, unstyled, isInvalid, handleInput, handleBlur, modelValue } = useFormKitInput(__props.context);
1283
+ return (_ctx, _cache) => {
1284
+ const _component_Rating = resolveComponent("Rating");
1285
+ return openBlock(), createElementBlock("div", _hoisted_1$7, [createVNode(_component_Rating, mergeProps({
1286
+ id: __props.context.id,
1287
+ modelValue: unref(modelValue),
1288
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(modelValue) ? modelValue.value = $event : null)
1289
+ }, __props.context?.attrs, {
1290
+ disabled: !!__props.context?.disabled,
1291
+ readonly: __props.context?.attrs.readonly ?? false,
1292
+ style: __props.context?.attrs.style,
1293
+ class: __props.context?.attrs?.class,
1294
+ invalid: unref(isInvalid),
1295
+ tabindex: __props.context?.attrs.tabindex,
1296
+ "aria-label": __props.context?.attrs.ariaLabel,
1297
+ "aria-labelledby": __props.context?.attrs.ariaLabelledby,
1298
+ stars: __props.context.stars ?? 5,
1299
+ "on-icon": __props.context.onIcon,
1300
+ "off-icon": __props.context.offIcon,
1301
+ pt: __props.context.pt,
1302
+ "pt-options": __props.context.ptOptions,
1303
+ unstyled: unref(unstyled),
1304
+ onChange: unref(handleInput),
1305
+ onBlur: unref(handleBlur)
1306
+ }), createSlots({ _: 2 }, [renderList(unref(validSlotNames), (slotName) => {
1307
+ return {
1308
+ name: slotName,
1309
+ fn: withCtx((slotProps) => [(openBlock(), createBlock(resolveDynamicComponent(__props.context?.slots[slotName]), normalizeProps(guardReactiveProps({
1310
+ ...__props.context,
1311
+ ...slotProps
1312
+ })), null, 16))])
1313
+ };
1314
+ })]), 1040, [
1315
+ "id",
1316
+ "modelValue",
1317
+ "disabled",
1318
+ "readonly",
1319
+ "style",
1320
+ "class",
1321
+ "invalid",
1322
+ "tabindex",
1323
+ "aria-label",
1324
+ "aria-labelledby",
1325
+ "stars",
1326
+ "on-icon",
1327
+ "off-icon",
1328
+ "pt",
1329
+ "pt-options",
1330
+ "unstyled",
1331
+ "onChange",
1332
+ "onBlur"
1333
+ ])]);
1334
+ };
1335
+ }
1336
+ });
1337
+ //#endregion
1338
+ //#region src/components/PrimeSelect.vue
1339
+ const _hoisted_1$6 = { class: "p-formkit" };
1340
+ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
1341
+ __name: "PrimeSelect",
1342
+ props: { context: {
1343
+ type: Object,
1344
+ required: true
1345
+ } },
1346
+ setup(__props) {
1347
+ const { validSlotNames, unstyled, isInvalid, handleInput, handleBlur, modelValue } = useFormKitInput(__props.context);
1348
+ return (_ctx, _cache) => {
1349
+ const _component_Select = resolveComponent("Select");
1350
+ return openBlock(), createElementBlock("div", _hoisted_1$6, [createVNode(_component_Select, mergeProps({
1351
+ modelValue: unref(modelValue),
1352
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(modelValue) ? modelValue.value = $event : null)
1353
+ }, __props.context?.attrs, {
1354
+ "input-id": __props.context.id,
1355
+ disabled: !!__props.context?.disabled,
1356
+ readonly: __props.context?.attrs.readonly ?? false,
1357
+ style: __props.context?.attrs.style,
1358
+ class: __props.context?.attrs?.class,
1359
+ invalid: unref(isInvalid),
1360
+ "input-style": __props.context?.attrs.style,
1361
+ "input-class": __props.context?.attrs?.class,
1362
+ "input-props": __props.context?.attrs.inputProps,
1363
+ tabindex: __props.context?.attrs.tabindex,
1364
+ "aria-label": __props.context?.attrs.ariaLabel,
1365
+ "aria-labelledby": __props.context?.attrs.ariaLabelledby,
1366
+ size: __props.context?.size ?? void 0,
1367
+ options: __props.context.options,
1368
+ "option-label": __props.context.optionLabel,
1369
+ "option-value": __props.context.optionValue,
1370
+ "option-disabled": __props.context.optionDisabled,
1371
+ "option-group-label": __props.context.optionGroupLabel,
1372
+ "option-group-children": __props.context.optionGroupChildren,
1373
+ "scroll-height": __props.context.scrollHeight,
1374
+ filter: __props.context.filter ?? false,
1375
+ "filter-placeholder": __props.context.filterPlaceholder,
1376
+ "filter-locale": __props.context.filterLocale,
1377
+ "filter-match-mode": __props.context.filterMatchMode,
1378
+ "fitler-fields": __props.context.filterFields,
1379
+ "filter-input-props": __props.context.filterInputProps,
1380
+ editable: __props.context.editable,
1381
+ placeholder: __props.context.placeholder,
1382
+ "data-key": __props.context.dataKey,
1383
+ "show-clear": __props.context.showClear ?? false,
1384
+ "overlay-style": __props.context.overlayStyle,
1385
+ "overlay-class": __props.context.overlayClass,
1386
+ "panel-props": __props.context.panelProps,
1387
+ "append-to": __props.context.appendTo,
1388
+ "reset-filter-on-hide": __props.context.resetFilterOnHide,
1389
+ "virtual-scroller-options": __props.context.virtualScrollerOptions,
1390
+ "auto-option-focus": __props.context.autoOptionFocus,
1391
+ "select-on-focus": __props.context.selectOnFocus,
1392
+ "filter-message": __props.context.filterMessage,
1393
+ "selection-message": __props.context.selectionMessage,
1394
+ "empty-selection-message": __props.context.emptySelectionMessage,
1395
+ "empty-filter-message": __props.context.emptyFilterMessage,
1396
+ "empty-message": __props.context.emptyMessage,
1397
+ pt: __props.context.pt,
1398
+ "pt-options": __props.context.ptOptions,
1399
+ unstyled: unref(unstyled),
1400
+ onChange: unref(handleInput),
1401
+ onBlur: unref(handleBlur)
1402
+ }), createSlots({ _: 2 }, [renderList(unref(validSlotNames), (slotName) => {
1403
+ return {
1404
+ name: slotName,
1405
+ fn: withCtx((slotProps) => [(openBlock(), createBlock(resolveDynamicComponent(__props.context?.slots[slotName]), normalizeProps(guardReactiveProps({
1406
+ ...__props.context,
1407
+ ...slotProps
1408
+ })), null, 16))])
1409
+ };
1410
+ })]), 1040, [
1411
+ "modelValue",
1412
+ "input-id",
1413
+ "disabled",
1414
+ "readonly",
1415
+ "style",
1416
+ "class",
1417
+ "invalid",
1418
+ "input-style",
1419
+ "input-class",
1420
+ "input-props",
1421
+ "tabindex",
1422
+ "aria-label",
1423
+ "aria-labelledby",
1424
+ "size",
1425
+ "options",
1426
+ "option-label",
1427
+ "option-value",
1428
+ "option-disabled",
1429
+ "option-group-label",
1430
+ "option-group-children",
1431
+ "scroll-height",
1432
+ "filter",
1433
+ "filter-placeholder",
1434
+ "filter-locale",
1435
+ "filter-match-mode",
1436
+ "fitler-fields",
1437
+ "filter-input-props",
1438
+ "editable",
1439
+ "placeholder",
1440
+ "data-key",
1441
+ "show-clear",
1442
+ "overlay-style",
1443
+ "overlay-class",
1444
+ "panel-props",
1445
+ "append-to",
1446
+ "reset-filter-on-hide",
1447
+ "virtual-scroller-options",
1448
+ "auto-option-focus",
1449
+ "select-on-focus",
1450
+ "filter-message",
1451
+ "selection-message",
1452
+ "empty-selection-message",
1453
+ "empty-filter-message",
1454
+ "empty-message",
1455
+ "pt",
1456
+ "pt-options",
1457
+ "unstyled",
1458
+ "onChange",
1459
+ "onBlur"
1460
+ ])]);
1461
+ };
1462
+ }
1463
+ });
1464
+ //#endregion
1465
+ //#region src/components/PrimeSelectButton.vue
1466
+ const _hoisted_1$5 = { class: "p-formkit" };
1467
+ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
1468
+ __name: "PrimeSelectButton",
1469
+ props: { context: {
1470
+ type: Object,
1471
+ required: true
1472
+ } },
1473
+ setup(__props) {
1474
+ const { validSlotNames, unstyled, isInvalid, handleChange, handleBlur, modelValue } = useFormKitInput(__props.context);
1475
+ return (_ctx, _cache) => {
1476
+ const _component_SelectButton = resolveComponent("SelectButton");
1477
+ return openBlock(), createElementBlock("div", _hoisted_1$5, [createVNode(_component_SelectButton, mergeProps({
1478
+ id: __props.context.id,
1479
+ modelValue: unref(modelValue),
1480
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(modelValue) ? modelValue.value = $event : null)
1481
+ }, __props.context?.attrs, {
1482
+ disabled: !!__props.context?.disabled,
1483
+ readonly: __props.context?.attrs.readonly ?? false,
1484
+ style: __props.context?.attrs.style,
1485
+ class: __props.context?.attrs?.class,
1486
+ invalid: unref(isInvalid),
1487
+ tabindex: __props.context?.attrs.tabindex,
1488
+ "aria-label": __props.context?.attrs.ariaLabel,
1489
+ "aria-labelledby": __props.context?.attrs.ariaLabelledby,
1490
+ size: __props.context?.size ?? void 0,
1491
+ options: __props.context.options,
1492
+ "option-label": __props.context.optionLabel,
1493
+ "option-value": __props.context.optionValue,
1494
+ "option-disabled": __props.context.optionDisabled,
1495
+ multiple: __props.context.multiple ?? false,
1496
+ "data-key": __props.context.dataKey,
1497
+ pt: __props.context.pt,
1498
+ "pt-options": __props.context.ptOptions,
1499
+ unstyled: unref(unstyled),
1500
+ onChange: unref(handleChange),
1501
+ onBlur: unref(handleBlur)
1502
+ }), createSlots({ _: 2 }, [renderList(unref(validSlotNames), (slotName) => {
1503
+ return {
1504
+ name: slotName,
1505
+ fn: withCtx((slotProps) => [(openBlock(), createBlock(resolveDynamicComponent(__props.context?.slots[slotName]), normalizeProps(guardReactiveProps({
1506
+ ...__props.context,
1507
+ ...slotProps
1508
+ })), null, 16))])
1509
+ };
1510
+ })]), 1040, [
1511
+ "id",
1512
+ "modelValue",
1513
+ "disabled",
1514
+ "readonly",
1515
+ "style",
1516
+ "class",
1517
+ "invalid",
1518
+ "tabindex",
1519
+ "aria-label",
1520
+ "aria-labelledby",
1521
+ "size",
1522
+ "options",
1523
+ "option-label",
1524
+ "option-value",
1525
+ "option-disabled",
1526
+ "multiple",
1527
+ "data-key",
1528
+ "pt",
1529
+ "pt-options",
1530
+ "unstyled",
1531
+ "onChange",
1532
+ "onBlur"
1533
+ ])]);
1534
+ };
1535
+ }
1536
+ });
1537
+ //#endregion
1538
+ //#region src/components/PrimeSlider.vue
1539
+ const _hoisted_1$4 = { class: "p-formkit" };
1540
+ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
1541
+ __name: "PrimeSlider",
1542
+ props: { context: {
1543
+ type: Object,
1544
+ required: true
1545
+ } },
1546
+ setup(__props) {
1547
+ const props = __props;
1548
+ const { unstyled, isInvalid, handleBlur, modelValue } = useFormKitInput(props.context);
1549
+ function handleInput(e) {
1550
+ props.context?.node.input(e);
1551
+ props.context?.handlers.blur(e);
1552
+ }
1553
+ return (_ctx, _cache) => {
1554
+ const _component_Slider = resolveComponent("Slider");
1555
+ return openBlock(), createElementBlock("div", _hoisted_1$4, [createVNode(_component_Slider, mergeProps({
1556
+ id: __props.context.id,
1557
+ modelValue: unref(modelValue),
1558
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(modelValue) ? modelValue.value = $event : null)
1559
+ }, __props.context?.attrs, {
1560
+ disabled: !!__props.context?.disabled,
1561
+ readonly: __props.context?.attrs.readonly ?? false,
1562
+ style: __props.context?.attrs.style,
1563
+ class: __props.context?.attrs?.class,
1564
+ invalid: unref(isInvalid),
1565
+ tabindex: __props.context?.attrs.tabindex,
1566
+ "aria-label": __props.context?.attrs.ariaLabel,
1567
+ "aria-labelledby": __props.context?.attrs.ariaLabelledby,
1568
+ min: __props.context.min ?? 0,
1569
+ max: __props.context.max ?? 100,
1570
+ step: __props.context.step ?? void 0,
1571
+ range: __props.context.range ?? false,
1572
+ orientation: __props.context.orientation ?? "horizontal",
1573
+ pt: __props.context.pt,
1574
+ "pt-options": __props.context.ptOptions,
1575
+ unstyled: unref(unstyled),
1576
+ onChange: handleInput,
1577
+ onBlur: unref(handleBlur)
1578
+ }), null, 16, [
1579
+ "id",
1580
+ "modelValue",
1581
+ "disabled",
1582
+ "readonly",
1583
+ "style",
1584
+ "class",
1585
+ "invalid",
1586
+ "tabindex",
1587
+ "aria-label",
1588
+ "aria-labelledby",
1589
+ "min",
1590
+ "max",
1591
+ "step",
1592
+ "range",
1593
+ "orientation",
1594
+ "pt",
1595
+ "pt-options",
1596
+ "unstyled",
1597
+ "onBlur"
1598
+ ])]);
1599
+ };
1600
+ }
1601
+ });
1602
+ //#endregion
1603
+ //#region src/components/PrimeTextarea.vue
1604
+ const _hoisted_1$3 = { class: "p-formkit" };
1605
+ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
1606
+ __name: "PrimeTextarea",
1607
+ props: { context: {
1608
+ type: Object,
1609
+ required: true
1610
+ } },
1611
+ setup(__props) {
1612
+ const { unstyled, isInvalid, handleInput, handleBlur, modelValue } = useFormKitInput(__props.context);
1613
+ return (_ctx, _cache) => {
1614
+ const _component_Textarea = resolveComponent("Textarea");
1615
+ return openBlock(), createElementBlock("div", _hoisted_1$3, [createVNode(_component_Textarea, mergeProps({
1616
+ id: __props.context.id,
1617
+ modelValue: unref(modelValue),
1618
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(modelValue) ? modelValue.value = $event : null)
1619
+ }, __props.context?.attrs, {
1620
+ disabled: !!__props.context?.disabled,
1621
+ readonly: __props.context?.attrs.readonly ?? false,
1622
+ style: __props.context?.attrs.style,
1623
+ class: __props.context?.attrs?.class,
1624
+ invalid: unref(isInvalid),
1625
+ tabindex: __props.context?.attrs.tabindex,
1626
+ "aria-label": __props.context?.attrs.ariaLabel,
1627
+ "aria-labelledby": __props.context?.attrs.ariaLabelledby,
1628
+ size: __props.context?.size ?? void 0,
1629
+ placeholder: __props.context.placeholder,
1630
+ rows: __props.context.rows ?? 3,
1631
+ "auto-resize": __props.context.autoResize ?? false,
1632
+ pt: __props.context.pt,
1633
+ "pt-options": __props.context.ptOptions,
1634
+ unstyled: unref(unstyled),
1635
+ onInput: unref(handleInput),
1636
+ onBlur: unref(handleBlur)
1637
+ }), null, 16, [
1638
+ "id",
1639
+ "modelValue",
1640
+ "disabled",
1641
+ "readonly",
1642
+ "style",
1643
+ "class",
1644
+ "invalid",
1645
+ "tabindex",
1646
+ "aria-label",
1647
+ "aria-labelledby",
1648
+ "size",
1649
+ "placeholder",
1650
+ "rows",
1651
+ "auto-resize",
1652
+ "pt",
1653
+ "pt-options",
1654
+ "unstyled",
1655
+ "onInput",
1656
+ "onBlur"
1657
+ ])]);
1658
+ };
1659
+ }
1660
+ });
1661
+ //#endregion
1662
+ //#region src/components/PrimeToggleButton.vue
1663
+ const _hoisted_1$2 = { class: "p-formkit" };
1664
+ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
1665
+ __name: "PrimeToggleButton",
1666
+ props: { context: {
1667
+ type: Object,
1668
+ required: true
1669
+ } },
1670
+ setup(__props) {
1671
+ const { validSlotNames, unstyled, isInvalid, handleChange, handleBlur, modelValue } = useFormKitInput(__props.context);
1672
+ return (_ctx, _cache) => {
1673
+ const _component_ToggleButton = resolveComponent("ToggleButton");
1674
+ return openBlock(), createElementBlock("div", _hoisted_1$2, [createVNode(_component_ToggleButton, mergeProps({
1675
+ modelValue: unref(modelValue),
1676
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(modelValue) ? modelValue.value = $event : null)
1677
+ }, __props.context?.attrs, {
1678
+ "input-id": __props.context.id,
1679
+ disabled: !!__props.context?.disabled,
1680
+ readonly: __props.context?.attrs.readonly ?? false,
1681
+ "input-style": __props.context?.attrs.style,
1682
+ "input-class": __props.context?.attrs?.class,
1683
+ invalid: unref(isInvalid),
1684
+ tabindex: __props.context?.attrs.tabindex,
1685
+ "aria-label": __props.context?.attrs.ariaLabel,
1686
+ "aria-labelledby": __props.context?.attrs.ariaLabelledby,
1687
+ size: __props.context?.size ?? void 0,
1688
+ "on-label": __props.context.onLabel ?? "Yes",
1689
+ "off-label": __props.context.offLabel ?? "No",
1690
+ "on-icon": __props.context.onIcon,
1691
+ "off-icon": __props.context.offIcon,
1692
+ pt: __props.context.pt,
1693
+ "pt-options": __props.context.ptOptions,
1694
+ unstyled: unref(unstyled),
1695
+ onChange: unref(handleChange),
1696
+ onBlur: unref(handleBlur)
1697
+ }), createSlots({ _: 2 }, [renderList(unref(validSlotNames), (slotName) => {
1698
+ return {
1699
+ name: slotName,
1700
+ fn: withCtx((slotProps) => [(openBlock(), createBlock(resolveDynamicComponent(__props.context?.slots[slotName]), normalizeProps(guardReactiveProps({
1701
+ ...__props.context,
1702
+ ...slotProps
1703
+ })), null, 16))])
1704
+ };
1705
+ })]), 1040, [
1706
+ "modelValue",
1707
+ "input-id",
1708
+ "disabled",
1709
+ "readonly",
1710
+ "input-style",
1711
+ "input-class",
1712
+ "invalid",
1713
+ "tabindex",
1714
+ "aria-label",
1715
+ "aria-labelledby",
1716
+ "size",
1717
+ "on-label",
1718
+ "off-label",
1719
+ "on-icon",
1720
+ "off-icon",
1721
+ "pt",
1722
+ "pt-options",
1723
+ "unstyled",
1724
+ "onChange",
1725
+ "onBlur"
1726
+ ])]);
1727
+ };
1728
+ }
1729
+ });
1730
+ //#endregion
1731
+ //#region src/components/PrimeToggleSwitch.vue
1732
+ const _hoisted_1$1 = { class: "p-formkit" };
1733
+ const _hoisted_2 = {
1734
+ key: 0,
1735
+ class: "formkit-prefix"
1736
+ };
1737
+ const _hoisted_3 = {
1738
+ key: 1,
1739
+ class: "formkit-suffix"
1740
+ };
1741
+ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
1742
+ __name: "PrimeToggleSwitch",
1743
+ props: { context: {
1744
+ type: Object,
1745
+ required: true
1746
+ } },
1747
+ setup(__props) {
1748
+ const props = __props;
1749
+ const { hasPrefix, hasSuffix } = useFormKitSection(props.context);
1750
+ const { unstyled, isInvalid, handleInput, handleBlur, modelValue } = useFormKitInput(props.context);
1751
+ return (_ctx, _cache) => {
1752
+ const _component_ToggleSwitch = resolveComponent("ToggleSwitch");
1753
+ return openBlock(), createElementBlock("div", _hoisted_1$1, [
1754
+ unref(hasPrefix) ? (openBlock(), createElementBlock("span", _hoisted_2, toDisplayString(__props.context?.prefix), 1)) : createCommentVNode("v-if", true),
1755
+ createVNode(_component_ToggleSwitch, mergeProps({
1756
+ modelValue: unref(modelValue),
1757
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(modelValue) ? modelValue.value = $event : null)
1758
+ }, __props.context?.attrs, {
1759
+ "input-id": __props.context.id,
1760
+ disabled: !!__props.context?.disabled,
1761
+ readonly: __props.context?.attrs.readonly ?? false,
1762
+ "input-style": __props.context?.attrs.style,
1763
+ "input-class": __props.context?.attrs?.class,
1764
+ invalid: unref(isInvalid),
1765
+ tabindex: __props.context?.attrs.tabindex,
1766
+ "aria-label": __props.context?.attrs.ariaLabel,
1767
+ "aria-labelledby": __props.context?.attrs.ariaLabelledby,
1768
+ "true-value": __props.context.trueValue ?? void 0,
1769
+ "false-value": __props.context.falseValue ?? void 0,
1770
+ pt: __props.context.pt,
1771
+ "pt-options": __props.context.ptOptions,
1772
+ unstyled: unref(unstyled),
1773
+ onChange: unref(handleInput),
1774
+ onBlur: unref(handleBlur)
1775
+ }), null, 16, [
1776
+ "modelValue",
1777
+ "input-id",
1778
+ "disabled",
1779
+ "readonly",
1780
+ "input-style",
1781
+ "input-class",
1782
+ "invalid",
1783
+ "tabindex",
1784
+ "aria-label",
1785
+ "aria-labelledby",
1786
+ "true-value",
1787
+ "false-value",
1788
+ "pt",
1789
+ "pt-options",
1790
+ "unstyled",
1791
+ "onChange",
1792
+ "onBlur"
1793
+ ]),
1794
+ unref(hasSuffix) ? (openBlock(), createElementBlock("span", _hoisted_3, toDisplayString(__props.context?.suffix), 1)) : createCommentVNode("v-if", true)
1795
+ ]);
1796
+ };
1797
+ }
1798
+ });
1799
+ //#endregion
1800
+ //#region src/components/PrimeTreeSelect.vue
1801
+ const _hoisted_1 = { class: "p-formkit" };
1802
+ const _sfc_main = /* @__PURE__ */ defineComponent({
1803
+ __name: "PrimeTreeSelect",
1804
+ props: { context: {
1805
+ type: Object,
1806
+ required: true
1807
+ } },
1808
+ setup(__props) {
1809
+ const { validSlotNames, unstyled, isInvalid, handleInput, handleBlur, modelValue } = useFormKitInput(__props.context);
1810
+ return (_ctx, _cache) => {
1811
+ const _component_TreeSelect = resolveComponent("TreeSelect");
1812
+ return openBlock(), createElementBlock("div", _hoisted_1, [createVNode(_component_TreeSelect, mergeProps({
1813
+ modelValue: unref(modelValue),
1814
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(modelValue) ? modelValue.value = $event : null)
1815
+ }, __props.context?.attrs, {
1816
+ "input-id": __props.context.id,
1817
+ disabled: !!__props.context?.disabled,
1818
+ readonly: __props.context?.attrs.readonly ?? false,
1819
+ "input-style": __props.context?.attrs.style,
1820
+ "input-class": __props.context?.attrs?.class,
1821
+ invalid: unref(isInvalid),
1822
+ tabindex: __props.context?.attrs.tabindex,
1823
+ "aria-label": __props.context?.attrs.ariaLabel,
1824
+ "aria-labelledby": __props.context?.attrs.ariaLabelledby,
1825
+ size: __props.context?.size ?? void 0,
1826
+ options: __props.context?.options,
1827
+ placeholder: __props.context.placeholder,
1828
+ "selection-mode": __props.context.selectionMode,
1829
+ pt: __props.context.pt,
1830
+ "empty-message": __props.context.emptyMessage,
1831
+ display: __props.context.display,
1832
+ "meta-key-selection": __props.context.metaKeySelection,
1833
+ "append-to": __props.context.appendTo,
1834
+ "scroll-height": __props.context.scrollHeight,
1835
+ "panel-class": __props.context.panelClass,
1836
+ variant: __props.context.variant,
1837
+ "pt-options": __props.context.ptOptions,
1838
+ unstyled: unref(unstyled),
1839
+ onChange: unref(handleInput),
1840
+ onBlur: unref(handleBlur)
1841
+ }), createSlots({ _: 2 }, [renderList(unref(validSlotNames), (slotName) => {
1842
+ return {
1843
+ name: slotName,
1844
+ fn: withCtx((slotProps) => [(openBlock(), createBlock(resolveDynamicComponent(__props.context?.slots[slotName]), normalizeProps(guardReactiveProps({
1845
+ ...__props.context,
1846
+ ...slotProps
1847
+ })), null, 16))])
1848
+ };
1849
+ })]), 1040, [
1850
+ "modelValue",
1851
+ "input-id",
1852
+ "disabled",
1853
+ "readonly",
1854
+ "input-style",
1855
+ "input-class",
1856
+ "invalid",
1857
+ "tabindex",
1858
+ "aria-label",
1859
+ "aria-labelledby",
1860
+ "size",
1861
+ "options",
1862
+ "placeholder",
1863
+ "selection-mode",
1864
+ "pt",
1865
+ "empty-message",
1866
+ "display",
1867
+ "meta-key-selection",
1868
+ "append-to",
1869
+ "scroll-height",
1870
+ "panel-class",
1871
+ "variant",
1872
+ "pt-options",
1873
+ "unstyled",
1874
+ "onChange",
1875
+ "onBlur"
1876
+ ])]);
1877
+ };
1878
+ }
1879
+ });
1880
+ //#endregion
1881
+ export { _sfc_main$16 as _, _sfc_main$4 as a, _sfc_main$19 as b, _sfc_main$7 as c, _sfc_main$10 as d, _sfc_main$11 as f, _sfc_main$15 as g, _sfc_main$14 as h, _sfc_main$3 as i, _sfc_main$8 as l, _sfc_main$13 as m, _sfc_main$1 as n, _sfc_main$5 as o, _sfc_main$12 as p, _sfc_main$2 as r, _sfc_main$6 as s, _sfc_main as t, _sfc_main$9 as u, _sfc_main$17 as v, _sfc_main$20 as x, _sfc_main$18 as y };