@sfxcode/formkit-primevue 3.3.0 → 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 -140
  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 -75
  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 -58
  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 -11
  133. package/dist/composables/useFormKitInput.js +0 -58
  134. package/dist/composables/useFormKitInput.mjs +0 -45
  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,1196 @@
1
+ import { a as useFormKitSection, c as useFormKitInput, n as useOutputDuration } from "./composables-CZ6f1QYe.js";
2
+ import { _ as _sfc_main$23, a as _sfc_main$24, b as _sfc_main$31, c as _sfc_main$25, d as _sfc_main$21, f as _sfc_main$22, g as _sfc_main$15, h as _sfc_main$14, i as _sfc_main$17, l as _sfc_main$26, m as _sfc_main$13, n as _sfc_main$19, o as _sfc_main$30, p as _sfc_main$27, r as _sfc_main$29, s as _sfc_main$20, t as _sfc_main$32, u as _sfc_main$16, v as _sfc_main$28, x as _sfc_main$12, y as _sfc_main$18 } from "./PrimeTreeSelect-Dksx7tL-.js";
3
+ import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createTextVNode, createVNode, defineComponent, guardReactiveProps, isRef, mergeProps, normalizeClass, normalizeProps, normalizeStyle, openBlock, renderList, resolveComponent, resolveDynamicComponent, toDisplayString, unref, withCtx } from "vue";
4
+ import { createInput } from "@formkit/vue";
5
+ import { useI18n } from "vue-i18n";
6
+ //#region src/components/PrimeInputOtp.vue
7
+ const _hoisted_1$10 = { class: "p-formkit" };
8
+ const _sfc_main$11 = /* @__PURE__ */ defineComponent({
9
+ __name: "PrimeInputOtp",
10
+ props: { context: {
11
+ type: Object,
12
+ required: true
13
+ } },
14
+ setup(__props) {
15
+ const { validSlotNames, unstyled, isInvalid, handleBlur, handleInput, modelValue } = useFormKitInput(__props.context);
16
+ return (_ctx, _cache) => {
17
+ const _component_InputOtp = resolveComponent("InputOtp");
18
+ return openBlock(), createElementBlock("div", _hoisted_1$10, [createVNode(_component_InputOtp, mergeProps({
19
+ id: __props.context.id,
20
+ modelValue: unref(modelValue),
21
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(modelValue) ? modelValue.value = $event : null)
22
+ }, __props.context?.attrs, {
23
+ disabled: !!__props.context?.disabled,
24
+ readonly: __props.context?.attrs.readonly ?? false,
25
+ style: __props.context?.attrs.style,
26
+ class: __props.context?.attrs?.class,
27
+ invalid: unref(isInvalid),
28
+ tabindex: __props.context?.attrs.tabindex,
29
+ "aria-label": __props.context?.attrs.ariaLabel,
30
+ "aria-labelledby": __props.context?.attrs.ariaLabelledby,
31
+ size: __props.context?.size ?? void 0,
32
+ length: __props.context.length,
33
+ variant: __props.context.variant,
34
+ mask: __props.context.mask,
35
+ "integer-only": __props.context.integerOnly,
36
+ pt: __props.context.pt,
37
+ "pt-options": __props.context.ptOptions,
38
+ unstyled: unref(unstyled),
39
+ onChange: unref(handleInput),
40
+ onBlur: unref(handleBlur)
41
+ }), createSlots({ _: 2 }, [renderList(unref(validSlotNames), (slotName) => {
42
+ return {
43
+ name: slotName,
44
+ fn: withCtx((slotProps) => [(openBlock(), createBlock(resolveDynamicComponent(__props.context?.slots[slotName]), normalizeProps(guardReactiveProps({
45
+ ...__props.context,
46
+ ...slotProps
47
+ })), null, 16))])
48
+ };
49
+ })]), 1040, [
50
+ "id",
51
+ "modelValue",
52
+ "disabled",
53
+ "readonly",
54
+ "style",
55
+ "class",
56
+ "invalid",
57
+ "tabindex",
58
+ "aria-label",
59
+ "aria-labelledby",
60
+ "size",
61
+ "length",
62
+ "variant",
63
+ "mask",
64
+ "integer-only",
65
+ "pt",
66
+ "pt-options",
67
+ "unstyled",
68
+ "onChange",
69
+ "onBlur"
70
+ ])]);
71
+ };
72
+ }
73
+ });
74
+ //#endregion
75
+ //#region src/definitions/input.ts
76
+ const primeAutoCompleteDefinition = createInput(_sfc_main$12, {
77
+ props: [
78
+ "pt",
79
+ "ptOptions",
80
+ "unstyled",
81
+ "Select",
82
+ "multiple",
83
+ "typeahead",
84
+ "optionLabel",
85
+ "options",
86
+ "size",
87
+ "minLength",
88
+ "placeholder",
89
+ "fluid",
90
+ "separators"
91
+ ],
92
+ family: "PrimeInput"
93
+ });
94
+ const primeInputTextDefinition = createInput(_sfc_main$13, {
95
+ props: [
96
+ "pt",
97
+ "ptOptions",
98
+ "unstyled",
99
+ "placeholder",
100
+ "iconPrefix",
101
+ "iconSuffix",
102
+ "size",
103
+ "inputType"
104
+ ],
105
+ family: "PrimeInput"
106
+ });
107
+ const primeInputNumberDefinition = createInput(_sfc_main$14, {
108
+ props: [
109
+ "useGrouping",
110
+ "min",
111
+ "max",
112
+ "minFractionDigits",
113
+ "maxFractionDigits",
114
+ "locale",
115
+ "mode",
116
+ "currency",
117
+ "prefix",
118
+ "suffix",
119
+ "showButtons",
120
+ "buttonLayout",
121
+ "step",
122
+ "pt",
123
+ "ptOptions",
124
+ "unstyled",
125
+ "placeholder",
126
+ "size"
127
+ ],
128
+ family: "PrimeInput"
129
+ });
130
+ const primeInputMaskDefinition = createInput(_sfc_main$15, {
131
+ props: [
132
+ "mask",
133
+ "slotChar",
134
+ "autoClear",
135
+ "unmask",
136
+ "pt",
137
+ "ptOptions",
138
+ "unstyled",
139
+ "invalid",
140
+ "variant",
141
+ "iconPrefix",
142
+ "iconSuffix",
143
+ "size"
144
+ ],
145
+ family: "PrimeInput"
146
+ });
147
+ const primePasswordDefinition = createInput(_sfc_main$16, {
148
+ props: [
149
+ "mediumRegex",
150
+ "strongRegex",
151
+ "promptLabel",
152
+ "weakLabel",
153
+ "mediumLabel",
154
+ "strongLabel",
155
+ "hideIcon",
156
+ "showIcon",
157
+ "pt",
158
+ "ptOptions",
159
+ "unstyled",
160
+ "placeholder",
161
+ "feedback",
162
+ "toggleMask",
163
+ "size"
164
+ ],
165
+ family: "PrimeInput"
166
+ });
167
+ const primeTextareaDefinition = createInput(_sfc_main$17, {
168
+ props: [
169
+ "pt",
170
+ "ptOptions",
171
+ "unstyled",
172
+ "autoResize",
173
+ "rows",
174
+ "placeholder",
175
+ "size"
176
+ ],
177
+ family: "PrimeInput"
178
+ });
179
+ const primeCheckboxDefinition = createInput(_sfc_main$18, {
180
+ props: [
181
+ "binary",
182
+ "trueValue",
183
+ "falseValue",
184
+ "pt",
185
+ "ptOptions",
186
+ "unstyled",
187
+ "indeterminate",
188
+ "variant",
189
+ "prefix",
190
+ "suffix",
191
+ "size"
192
+ ],
193
+ family: "PrimeInput"
194
+ });
195
+ const primeToggleSwitchDefinition = createInput(_sfc_main$19, {
196
+ props: [
197
+ "trueValue",
198
+ "falseValue",
199
+ "pt",
200
+ "ptOptions",
201
+ "unstyled",
202
+ "prefix",
203
+ "suffix"
204
+ ],
205
+ family: "PrimeInput"
206
+ });
207
+ const primeInputOtpDefinition = createInput(_sfc_main$11, {
208
+ props: [
209
+ "length",
210
+ "variant",
211
+ "mask",
212
+ "integerOnly",
213
+ "pt",
214
+ "ptOptions",
215
+ "unstyled",
216
+ "size"
217
+ ],
218
+ family: "PrimeInput"
219
+ });
220
+ const primeSelectDefinition = createInput(_sfc_main$20, {
221
+ props: [
222
+ "options",
223
+ "optionLabel",
224
+ "optionValue",
225
+ "optionDisabled",
226
+ "optionGroupLabel",
227
+ "optionGroupChildren",
228
+ "scrollHeight",
229
+ "filter",
230
+ "filterPlaceholder",
231
+ "filterLocale",
232
+ "filterMatchMode",
233
+ "filterFields",
234
+ "filterInputProps",
235
+ "editable",
236
+ "placeholder",
237
+ "dataKey",
238
+ "showClear",
239
+ "panelStyle",
240
+ "panelClass",
241
+ "panelProps",
242
+ "appendTo",
243
+ "resetFilterOnHide",
244
+ "virtualScrollerOptions",
245
+ "autoOptionFocus",
246
+ "selectOnFocus",
247
+ "filterMessage",
248
+ "selectionMessage",
249
+ "emptySelectionMessage",
250
+ "emptyFilterMessage",
251
+ "emptyMessage",
252
+ "pt",
253
+ "ptOptions",
254
+ "unstyled",
255
+ "size"
256
+ ],
257
+ family: "PrimeInput"
258
+ });
259
+ const primeMultiSelectDefinition = createInput(_sfc_main$21, {
260
+ props: [
261
+ "options",
262
+ "optionLabel",
263
+ "optionValue",
264
+ "optionDisabled",
265
+ "optionGroupLabel",
266
+ "optionGroupChildren",
267
+ "scrollHeight",
268
+ "inputProps",
269
+ "closeButtonProps",
270
+ "dataKey",
271
+ "filter",
272
+ "filterPlaceholder",
273
+ "filterLocale",
274
+ "filterMatchMode",
275
+ "filterFields",
276
+ "appendTo",
277
+ "display",
278
+ "maxSelectedLabels",
279
+ "selectedItemsLabel",
280
+ "selectionLimit",
281
+ "showToggleAll",
282
+ "loading",
283
+ "selectAll",
284
+ "resetFilterOnHide",
285
+ "virtualScrollerOptions",
286
+ "autoOptionFocus",
287
+ "autoFilterFocus",
288
+ "filterMessage",
289
+ "selectionMessage",
290
+ "emptySelectionMessage",
291
+ "emptyFilterMessage",
292
+ "emptyMessage",
293
+ "pt",
294
+ "placeholder",
295
+ "ptOptions",
296
+ "unstyled",
297
+ "size"
298
+ ],
299
+ family: "PrimeInput"
300
+ });
301
+ const primeListboxDefinition = createInput(_sfc_main$22, {
302
+ props: [
303
+ "pt",
304
+ "ptOptions",
305
+ "unstyled",
306
+ "options",
307
+ "optionLabel",
308
+ "optionValue",
309
+ "multiple",
310
+ "filter",
311
+ "filterIcon",
312
+ "filterPlaceholder",
313
+ "filterLocale",
314
+ "filterMatchMode",
315
+ "autoOptionFocus",
316
+ "selectOnFocus",
317
+ "optionDisabled",
318
+ "optionGroupLabel",
319
+ "optionGroupChildren",
320
+ "dataKey",
321
+ "metaKeySelection",
322
+ "virtualScrollerOptions"
323
+ ],
324
+ family: "PrimeInput"
325
+ });
326
+ const primeDatePickerDefinition = createInput(_sfc_main$23, {
327
+ props: [
328
+ "dateFormat",
329
+ "placeholder",
330
+ "selectionMode",
331
+ "inline",
332
+ "icon",
333
+ "showOtherMonths",
334
+ "selectOtherMonths",
335
+ "showIcon",
336
+ "previousIcon",
337
+ "nextIcon",
338
+ "incrementIcon",
339
+ "decrementIcon",
340
+ "numberOfMonths",
341
+ "responsiveOptions",
342
+ "view",
343
+ "touchUI",
344
+ "minDate",
345
+ "maxDate",
346
+ "disabledDates",
347
+ "disabledDays",
348
+ "maxDateCount",
349
+ "showOnFocus",
350
+ "autoZIndex",
351
+ "baseZIndex",
352
+ "showButtonBar",
353
+ "showTime",
354
+ "timeOnly",
355
+ "shortYearCutoff",
356
+ "hourFormat",
357
+ "stepHour",
358
+ "stepMinute",
359
+ "stepSecond",
360
+ "showSeconds",
361
+ "hideOnDateTimeSelect",
362
+ "hideOnRangeSelection",
363
+ "timeSeparator",
364
+ "showWeek",
365
+ "manualInput",
366
+ "appendTo",
367
+ "panelStyle",
368
+ "panelClass",
369
+ "pt",
370
+ "ptOptions",
371
+ "unstyled",
372
+ "size",
373
+ "updateModelType"
374
+ ],
375
+ family: "PrimeInput"
376
+ });
377
+ const primeSliderDefinition = createInput(_sfc_main$24, {
378
+ props: [
379
+ "pt",
380
+ "ptOptions",
381
+ "unstyled",
382
+ "min",
383
+ "max",
384
+ "step",
385
+ "range",
386
+ "orientation"
387
+ ],
388
+ family: "PrimeInput"
389
+ });
390
+ const primeRatingDefinition = createInput(_sfc_main$25, {
391
+ props: [
392
+ "unstyled",
393
+ "stars",
394
+ "cancel",
395
+ "onIcon",
396
+ "offIcon",
397
+ "cancelIcon",
398
+ "ptOptions",
399
+ "pt"
400
+ ],
401
+ family: "PrimeInput"
402
+ });
403
+ const primeRadioButtonDefinition = createInput(_sfc_main$26, {
404
+ props: [
405
+ "pt",
406
+ "ptOptions",
407
+ "unstyled",
408
+ "options",
409
+ "optionsClass",
410
+ "optionClass",
411
+ "size"
412
+ ],
413
+ family: "PrimeInput"
414
+ });
415
+ const primeKnobDefinition = createInput(_sfc_main$27, {
416
+ props: [
417
+ "pt",
418
+ "ptOptions",
419
+ "unstyled",
420
+ "min",
421
+ "max",
422
+ "step",
423
+ "size",
424
+ "strokeWidth",
425
+ "showValue",
426
+ "valueColor",
427
+ "rangeColor",
428
+ "textColor",
429
+ "valueTemplate"
430
+ ],
431
+ family: "PrimeInput"
432
+ });
433
+ const primeColorPickerDefinition = createInput(_sfc_main$28, {
434
+ props: [
435
+ "defaultColor",
436
+ "inline",
437
+ "format",
438
+ "pt",
439
+ "ptOptions",
440
+ "unstyled"
441
+ ],
442
+ family: "PrimeInput"
443
+ });
444
+ const primeToggleButtonDefinition = createInput(_sfc_main$29, {
445
+ props: [
446
+ "pt",
447
+ "ptOptions",
448
+ "unstyled",
449
+ "onLabel",
450
+ "offLabel",
451
+ "onIcon",
452
+ "offIcon",
453
+ "iconPos",
454
+ "size"
455
+ ],
456
+ family: "PrimeInput"
457
+ });
458
+ const primeSelectButtonDefinition = createInput(_sfc_main$30, {
459
+ props: [
460
+ "pt",
461
+ "ptOptions",
462
+ "unstyled",
463
+ "optionLabel",
464
+ "optionValue",
465
+ "optionDisabled",
466
+ "multiple",
467
+ "unselectable",
468
+ "dataKey",
469
+ "options",
470
+ "size"
471
+ ],
472
+ family: "PrimeInput"
473
+ });
474
+ const primeCascadeSelectDefinition = createInput(_sfc_main$31, {
475
+ props: [
476
+ "options",
477
+ "optionLabel",
478
+ "optionValue",
479
+ "optionGroupLabel",
480
+ "optionGroupChildren",
481
+ "placeholder",
482
+ "pt",
483
+ "ptOptions",
484
+ "unstyled",
485
+ "size"
486
+ ],
487
+ family: "PrimeInput"
488
+ });
489
+ const primeTreeSelectDefinition = createInput(_sfc_main$32, {
490
+ props: [
491
+ "options",
492
+ "placeholder",
493
+ "selectionMode",
494
+ "pt",
495
+ "ptOptions",
496
+ "unstyled",
497
+ "emptyMessage",
498
+ "display",
499
+ "metaKeySelection",
500
+ "appendTo",
501
+ "scrollHeight",
502
+ "panelClass",
503
+ "variant",
504
+ "size"
505
+ ],
506
+ family: "PrimeInput"
507
+ });
508
+ //#endregion
509
+ //#region src/components/FormKitIcon.vue
510
+ const _sfc_main$10 = /* @__PURE__ */ defineComponent({
511
+ __name: "FormKitIcon",
512
+ props: {
513
+ iconClass: {
514
+ type: String,
515
+ default: ""
516
+ },
517
+ onClick: {
518
+ type: Function,
519
+ default: void 0
520
+ },
521
+ position: {
522
+ type: String,
523
+ required: true,
524
+ validator: (val) => ["prefix", "suffix"].includes(val)
525
+ }
526
+ },
527
+ setup(__props) {
528
+ return (_ctx, _cache) => {
529
+ return openBlock(), createElementBlock("i", {
530
+ class: normalizeClass([`formkit-${__props.position}-icon`, __props.iconClass]),
531
+ onClick: _cache[0] || (_cache[0] = (...args) => __props.onClick && __props.onClick(...args))
532
+ }, null, 2);
533
+ };
534
+ }
535
+ });
536
+ //#endregion
537
+ //#region src/components/FormKitPrefix.vue
538
+ const _hoisted_1$9 = { class: "formkit-prefix" };
539
+ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
540
+ __name: "FormKitPrefix",
541
+ props: { prefix: String },
542
+ setup(__props) {
543
+ return (_ctx, _cache) => {
544
+ return openBlock(), createElementBlock("span", _hoisted_1$9, toDisplayString(__props.prefix), 1);
545
+ };
546
+ }
547
+ });
548
+ //#endregion
549
+ //#region src/components/FormKitSuffix.vue
550
+ const _hoisted_1$8 = { class: "formkit-suffix" };
551
+ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
552
+ __name: "FormKitSuffix",
553
+ props: { suffix: String },
554
+ setup(__props) {
555
+ return (_ctx, _cache) => {
556
+ return openBlock(), createElementBlock("span", _hoisted_1$8, toDisplayString(__props.suffix), 1);
557
+ };
558
+ }
559
+ });
560
+ //#endregion
561
+ //#region src/components/PrimeOutputBoolean.vue
562
+ const _hoisted_1$7 = { class: "p-formkit p-output-boolean" };
563
+ const _hoisted_2$7 = ["id"];
564
+ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
565
+ __name: "PrimeOutputBoolean",
566
+ props: { context: {
567
+ type: Object,
568
+ required: true
569
+ } },
570
+ setup(__props) {
571
+ const props = __props;
572
+ const { hasPrefix, hasPrefixIcon, hasSuffix, hasSuffixIcon } = useFormKitSection(props.context);
573
+ const { t } = useI18n();
574
+ const translated = computed(() => {
575
+ if (props.context?._value) return props.context?.trueValue ?? t("formkit.prime.true", "true");
576
+ else return props.context?.falseValue ?? t("formkit.prime.false", "false");
577
+ });
578
+ return (_ctx, _cache) => {
579
+ return openBlock(), createElementBlock("div", _hoisted_1$7, [
580
+ unref(hasPrefixIcon) ? (openBlock(), createBlock(_sfc_main$10, {
581
+ key: 0,
582
+ "icon-class": __props.context?.iconPrefix,
583
+ "on-click": __props.context?.onIconPrefixClicked,
584
+ position: "prefix"
585
+ }, null, 8, ["icon-class", "on-click"])) : createCommentVNode("v-if", true),
586
+ unref(hasPrefix) ? (openBlock(), createBlock(_sfc_main$9, {
587
+ key: 1,
588
+ prefix: __props.context?.prefix
589
+ }, null, 8, ["prefix"])) : createCommentVNode("v-if", true),
590
+ createElementVNode("span", {
591
+ id: __props.context?.id,
592
+ style: normalizeStyle(__props.context?.attrs?.style),
593
+ class: normalizeClass(__props.context?.attrs?.class)
594
+ }, toDisplayString(translated.value), 15, _hoisted_2$7),
595
+ unref(hasSuffix) ? (openBlock(), createBlock(_sfc_main$8, {
596
+ key: 2,
597
+ suffix: __props.context?.suffix
598
+ }, null, 8, ["suffix"])) : createCommentVNode("v-if", true),
599
+ unref(hasSuffixIcon) ? (openBlock(), createBlock(_sfc_main$10, {
600
+ key: 3,
601
+ "icon-class": __props.context?.iconSuffix,
602
+ "on-click": __props.context?.onIconSuffixClicked,
603
+ position: "suffix"
604
+ }, null, 8, ["icon-class", "on-click"])) : createCommentVNode("v-if", true)
605
+ ]);
606
+ };
607
+ }
608
+ });
609
+ //#endregion
610
+ //#region src/components/PrimeOutputDate.vue
611
+ const _hoisted_1$6 = { class: "p-formkit p-output-date" };
612
+ const _hoisted_2$6 = ["id"];
613
+ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
614
+ __name: "PrimeOutputDate",
615
+ props: { context: {
616
+ type: Object,
617
+ required: true
618
+ } },
619
+ setup(__props) {
620
+ const props = __props;
621
+ const { hasPrefix, hasPrefixIcon, hasSuffix, hasSuffixIcon } = useFormKitSection(props.context);
622
+ const { d } = useI18n();
623
+ const converted = computed(() => {
624
+ if (props?.context?._value) {
625
+ let result = "";
626
+ const format = props?.context?.attrs?.value?.format ? props?.context?.attrs.value.format : "short";
627
+ try {
628
+ result = d(props?.context?._value, format);
629
+ } catch (e) {}
630
+ return result;
631
+ } else return "";
632
+ });
633
+ return (_ctx, _cache) => {
634
+ return openBlock(), createElementBlock("div", _hoisted_1$6, [
635
+ unref(hasPrefixIcon) ? (openBlock(), createBlock(_sfc_main$10, {
636
+ key: 0,
637
+ "icon-class": __props.context?.iconPrefix,
638
+ "on-click": __props.context?.onIconPrefixClicked,
639
+ position: "prefix"
640
+ }, null, 8, ["icon-class", "on-click"])) : createCommentVNode("v-if", true),
641
+ unref(hasPrefix) ? (openBlock(), createBlock(_sfc_main$9, {
642
+ key: 1,
643
+ prefix: __props.context?.prefix
644
+ }, null, 8, ["prefix"])) : createCommentVNode("v-if", true),
645
+ createElementVNode("span", {
646
+ id: __props.context?.id,
647
+ style: normalizeStyle(__props.context?.attrs?.style),
648
+ class: normalizeClass(__props.context?.attrs?.class)
649
+ }, toDisplayString(converted.value), 15, _hoisted_2$6),
650
+ unref(hasSuffix) ? (openBlock(), createBlock(_sfc_main$8, {
651
+ key: 2,
652
+ suffix: __props.context?.suffix
653
+ }, null, 8, ["suffix"])) : createCommentVNode("v-if", true),
654
+ unref(hasSuffixIcon) ? (openBlock(), createBlock(_sfc_main$10, {
655
+ key: 3,
656
+ "icon-class": __props.context?.iconSuffix,
657
+ "on-click": __props.context?.onIconSuffixClicked,
658
+ position: "suffix"
659
+ }, null, 8, ["icon-class", "on-click"])) : createCommentVNode("v-if", true)
660
+ ]);
661
+ };
662
+ }
663
+ });
664
+ //#endregion
665
+ //#region src/components/PrimeOutputDuration.vue
666
+ const _hoisted_1$5 = { class: "p-formkit p-output-duration" };
667
+ const _hoisted_2$5 = ["id"];
668
+ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
669
+ __name: "PrimeOutputDuration",
670
+ props: { context: {
671
+ type: Object,
672
+ required: true
673
+ } },
674
+ setup(__props) {
675
+ const { hasPrefix, hasPrefixIcon, hasSuffix, hasSuffixIcon } = useFormKitSection(__props.context);
676
+ const { formattedDuration } = useOutputDuration();
677
+ return (_ctx, _cache) => {
678
+ return openBlock(), createElementBlock("div", _hoisted_1$5, [
679
+ unref(hasPrefixIcon) ? (openBlock(), createBlock(_sfc_main$10, {
680
+ key: 0,
681
+ "icon-class": __props.context?.iconPrefix,
682
+ "on-click": __props.context?.onIconPrefixClicked,
683
+ position: "prefix"
684
+ }, null, 8, ["icon-class", "on-click"])) : createCommentVNode("v-if", true),
685
+ unref(hasPrefix) ? (openBlock(), createBlock(_sfc_main$9, {
686
+ key: 1,
687
+ prefix: __props.context?.prefix
688
+ }, null, 8, ["prefix"])) : createCommentVNode("v-if", true),
689
+ createElementVNode("span", {
690
+ id: __props.context?.id,
691
+ style: normalizeStyle(__props.context?.attrs?.style),
692
+ class: normalizeClass(__props.context?.attrs?.class)
693
+ }, toDisplayString(unref(formattedDuration)(__props.context?._value)), 15, _hoisted_2$5),
694
+ unref(hasSuffix) ? (openBlock(), createBlock(_sfc_main$8, {
695
+ key: 2,
696
+ suffix: __props.context?.suffix
697
+ }, null, 8, ["suffix"])) : createCommentVNode("v-if", true),
698
+ unref(hasSuffixIcon) ? (openBlock(), createBlock(_sfc_main$10, {
699
+ key: 3,
700
+ "icon-class": __props.context?.iconSuffix,
701
+ "on-click": __props.context?.onIconSuffixClicked,
702
+ position: "suffix"
703
+ }, null, 8, ["icon-class", "on-click"])) : createCommentVNode("v-if", true)
704
+ ]);
705
+ };
706
+ }
707
+ });
708
+ //#endregion
709
+ //#region src/components/PrimeOutputLink.vue
710
+ const _hoisted_1$4 = { class: "p-formkit p-output-link" };
711
+ const _hoisted_2$4 = [
712
+ "id",
713
+ "href",
714
+ "target"
715
+ ];
716
+ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
717
+ __name: "PrimeOutputLink",
718
+ props: { context: {
719
+ type: Object,
720
+ required: true
721
+ } },
722
+ setup(__props) {
723
+ const props = __props;
724
+ const { hasPrefix, hasPrefixIcon, hasSuffix, hasSuffixIcon } = useFormKitSection(props.context);
725
+ const url = computed(() => {
726
+ if (props.context?._value) return props.context?._value.indexOf("http") > -1 ? props.context?._value : `https://${props.context?._value}`;
727
+ else return "";
728
+ });
729
+ const title = computed(() => {
730
+ const value = props.context?._value ?? "";
731
+ return props.context?.title ?? value;
732
+ });
733
+ return (_ctx, _cache) => {
734
+ return openBlock(), createElementBlock("div", _hoisted_1$4, [
735
+ unref(hasPrefixIcon) ? (openBlock(), createBlock(_sfc_main$10, {
736
+ key: 0,
737
+ "icon-class": __props.context?.iconPrefix,
738
+ "on-click": __props.context?.onIconPrefixClicked,
739
+ position: "prefix"
740
+ }, null, 8, ["icon-class", "on-click"])) : createCommentVNode("v-if", true),
741
+ unref(hasPrefix) ? (openBlock(), createBlock(_sfc_main$9, {
742
+ key: 1,
743
+ prefix: __props.context?.prefix
744
+ }, null, 8, ["prefix"])) : createCommentVNode("v-if", true),
745
+ __props.context?.value ? (openBlock(), createElementBlock("a", {
746
+ key: 2,
747
+ id: __props.context?.id,
748
+ style: normalizeStyle(__props.context?.attrs?.style),
749
+ class: normalizeClass(__props.context?.attrs?.class),
750
+ href: url.value,
751
+ target: __props.context?.attrs?.target ?? "_new"
752
+ }, [createElementVNode("span", null, toDisplayString(title.value), 1)], 14, _hoisted_2$4)) : createCommentVNode("v-if", true),
753
+ unref(hasSuffix) ? (openBlock(), createBlock(_sfc_main$8, {
754
+ key: 3,
755
+ suffix: __props.context?.suffix
756
+ }, null, 8, ["suffix"])) : createCommentVNode("v-if", true),
757
+ unref(hasSuffixIcon) ? (openBlock(), createBlock(_sfc_main$10, {
758
+ key: 4,
759
+ "icon-class": __props.context?.iconSuffix,
760
+ "on-click": __props.context?.onIconSuffixClicked,
761
+ position: "suffix"
762
+ }, null, 8, ["icon-class", "on-click"])) : createCommentVNode("v-if", true)
763
+ ]);
764
+ };
765
+ }
766
+ });
767
+ //#endregion
768
+ //#region src/components/PrimeOutputList.vue
769
+ const _hoisted_1$3 = { class: "p-formkit p-output-list" };
770
+ const _hoisted_2$3 = ["id"];
771
+ const _hoisted_3$1 = ["id"];
772
+ const _hoisted_4 = ["id"];
773
+ const _hoisted_5 = ["id"];
774
+ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
775
+ __name: "PrimeOutputList",
776
+ props: { context: {
777
+ type: Object,
778
+ required: true
779
+ } },
780
+ setup(__props) {
781
+ const props = __props;
782
+ const listStyle = computed(() => {
783
+ return props.context?.listStyle || "span";
784
+ });
785
+ const { hasPrefix, hasPrefixIcon, hasSuffix, hasSuffixIcon } = useFormKitSection(props.context);
786
+ const getListValues = computed(() => {
787
+ const values = Array.isArray(props.context?._value) ? props.context._value : [];
788
+ if (typeof props.context?.convertValue === "function") return props.context.convertValue([...values]);
789
+ return values;
790
+ });
791
+ const dividerClass = computed(() => props.context?.dividerClass || "");
792
+ const itemClass = computed(() => props.context?.itemClass || "");
793
+ const listItemsClass = computed(() => props.context?.attrs?.class || "");
794
+ return (_ctx, _cache) => {
795
+ return openBlock(), createElementBlock("div", _hoisted_1$3, [
796
+ unref(hasPrefixIcon) ? (openBlock(), createBlock(_sfc_main$10, {
797
+ key: 0,
798
+ "icon-class": __props.context?.iconPrefix,
799
+ "on-click": __props.context?.onIconPrefixClicked,
800
+ position: "prefix"
801
+ }, null, 8, ["icon-class", "on-click"])) : createCommentVNode("v-if", true),
802
+ unref(hasPrefix) && listStyle.value === "span" ? (openBlock(), createBlock(_sfc_main$9, {
803
+ key: 1,
804
+ prefix: __props.context?.prefix
805
+ }, null, 8, ["prefix"])) : createCommentVNode("v-if", true),
806
+ listStyle.value === "span" ? (openBlock(), createElementBlock("span", {
807
+ key: 2,
808
+ id: __props.context?.id,
809
+ style: normalizeStyle(__props.context?.attrs?.style),
810
+ class: normalizeClass(["p-output-list-items", listItemsClass.value])
811
+ }, [(openBlock(true), createElementBlock(Fragment, null, renderList(getListValues.value, (value, index) => {
812
+ return openBlock(), createElementBlock(Fragment, { key: index }, [index !== 0 ? (openBlock(), createElementBlock("span", {
813
+ key: 0,
814
+ class: normalizeClass(["p-output-list-divider", dividerClass.value])
815
+ }, toDisplayString(__props.context?.divider ?? ", "), 3)) : createCommentVNode("v-if", true), createElementVNode("span", { class: normalizeClass(["p-output-list-item", itemClass.value]) }, toDisplayString(value), 3)], 64);
816
+ }), 128))], 14, _hoisted_2$3)) : createCommentVNode("v-if", true),
817
+ listStyle.value === "div" ? (openBlock(), createElementBlock("div", {
818
+ key: 3,
819
+ id: __props.context?.id,
820
+ style: normalizeStyle(__props.context?.attrs?.style),
821
+ class: normalizeClass(["p-output-list-items", listItemsClass.value])
822
+ }, [(openBlock(true), createElementBlock(Fragment, null, renderList(getListValues.value, (value, index) => {
823
+ return openBlock(), createElementBlock("div", {
824
+ key: index,
825
+ class: normalizeClass(["p-output-list-item", itemClass.value])
826
+ }, toDisplayString(value), 3);
827
+ }), 128))], 14, _hoisted_3$1)) : createCommentVNode("v-if", true),
828
+ listStyle.value === "ul" ? (openBlock(), createElementBlock("ul", {
829
+ key: 4,
830
+ id: __props.context?.id,
831
+ style: normalizeStyle(__props.context?.attrs?.style),
832
+ class: normalizeClass(["p-output-list-items", listItemsClass.value])
833
+ }, [(openBlock(true), createElementBlock(Fragment, null, renderList(getListValues.value, (value, index) => {
834
+ return openBlock(), createElementBlock("li", { key: index }, [createElementVNode("span", { class: normalizeClass(["p-output-list-item", itemClass.value]) }, toDisplayString(value), 3)]);
835
+ }), 128))], 14, _hoisted_4)) : createCommentVNode("v-if", true),
836
+ listStyle.value === "ol" ? (openBlock(), createElementBlock("ol", {
837
+ key: 5,
838
+ id: __props.context?.id,
839
+ style: normalizeStyle(__props.context?.attrs?.style),
840
+ class: normalizeClass(["p-output-list-items", listItemsClass.value])
841
+ }, [(openBlock(true), createElementBlock(Fragment, null, renderList(getListValues.value, (value, index) => {
842
+ return openBlock(), createElementBlock("li", { key: index }, [createElementVNode("span", { class: normalizeClass(["p-output-list-item", itemClass.value]) }, toDisplayString(value), 3)]);
843
+ }), 128))], 14, _hoisted_5)) : createCommentVNode("v-if", true),
844
+ unref(hasSuffix) && listStyle.value === "span" ? (openBlock(), createBlock(_sfc_main$8, {
845
+ key: 6,
846
+ suffix: __props.context?.suffix
847
+ }, null, 8, ["suffix"])) : createCommentVNode("v-if", true),
848
+ unref(hasSuffixIcon) ? (openBlock(), createBlock(_sfc_main$10, {
849
+ key: 7,
850
+ "icon-class": __props.context?.iconSuffix,
851
+ "on-click": __props.context?.onIconSuffixClicked,
852
+ position: "suffix"
853
+ }, null, 8, ["icon-class", "on-click"])) : createCommentVNode("v-if", true)
854
+ ]);
855
+ };
856
+ }
857
+ });
858
+ //#endregion
859
+ //#region src/components/PrimeOutputNumber.vue
860
+ const _hoisted_1$2 = { class: "p-formkit p-output-number" };
861
+ const _hoisted_2$2 = ["id"];
862
+ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
863
+ __name: "PrimeOutputNumber",
864
+ props: { context: {
865
+ type: Object,
866
+ required: true
867
+ } },
868
+ setup(__props) {
869
+ const props = __props;
870
+ const { hasPrefix, hasPrefixIcon, hasSuffix, hasSuffixIcon } = useFormKitSection(props.context);
871
+ const { n } = useI18n();
872
+ const converted = computed(() => {
873
+ const value = props?.context?._value;
874
+ if (value) {
875
+ let result = "";
876
+ const format = props?.context?.attrs?.format ? props?.context?.attrs?.format : "short";
877
+ try {
878
+ result = n(value, format);
879
+ } catch (e) {
880
+ try {
881
+ result = n(+value, format);
882
+ } catch (e) {}
883
+ }
884
+ return result;
885
+ } else return "";
886
+ });
887
+ return (_ctx, _cache) => {
888
+ return openBlock(), createElementBlock("div", _hoisted_1$2, [
889
+ unref(hasPrefixIcon) ? (openBlock(), createBlock(_sfc_main$10, {
890
+ key: 0,
891
+ "icon-class": __props.context?.iconPrefix,
892
+ "on-click": __props.context?.onIconPrefixClicked,
893
+ position: "prefix"
894
+ }, null, 8, ["icon-class", "on-click"])) : createCommentVNode("v-if", true),
895
+ unref(hasPrefix) ? (openBlock(), createBlock(_sfc_main$9, {
896
+ key: 1,
897
+ prefix: __props.context?.prefix
898
+ }, null, 8, ["prefix"])) : createCommentVNode("v-if", true),
899
+ createElementVNode("span", {
900
+ id: __props.context?.id,
901
+ style: normalizeStyle(__props.context?.attrs?.style),
902
+ class: normalizeClass(__props.context?.attrs?.class)
903
+ }, toDisplayString(converted.value), 15, _hoisted_2$2),
904
+ unref(hasSuffix) ? (openBlock(), createBlock(_sfc_main$8, {
905
+ key: 2,
906
+ suffix: __props.context?.suffix
907
+ }, null, 8, ["suffix"])) : createCommentVNode("v-if", true),
908
+ unref(hasSuffixIcon) ? (openBlock(), createBlock(_sfc_main$10, {
909
+ key: 3,
910
+ "icon-class": __props.context?.iconSuffix,
911
+ "on-click": __props.context?.onIconSuffixClicked,
912
+ position: "suffix"
913
+ }, null, 8, ["icon-class", "on-click"])) : createCommentVNode("v-if", true)
914
+ ]);
915
+ };
916
+ }
917
+ });
918
+ //#endregion
919
+ //#region src/components/PrimeOutputReference.vue
920
+ const _hoisted_1$1 = { class: "p-formkit p-output-reference" };
921
+ const _hoisted_2$1 = [
922
+ "id",
923
+ "href",
924
+ "target"
925
+ ];
926
+ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
927
+ __name: "PrimeOutputReference",
928
+ props: { context: {
929
+ type: Object,
930
+ required: true
931
+ } },
932
+ setup(__props) {
933
+ const props = __props;
934
+ const { hasPrefix, hasPrefixIcon, hasSuffix, hasSuffixIcon } = useFormKitSection(props.context);
935
+ const reference = computed(() => {
936
+ const value = props.context?._value ?? "";
937
+ let result = props.context?.reference ? `${props.context?.reference}` : "reference-must-be-set";
938
+ if (!props.context?.internal && !result.includes("http")) result = `https://${result}`;
939
+ return result.replace(/\{\{.*\}\}/, value);
940
+ });
941
+ const title = computed(() => {
942
+ const value = props.context?._value ?? "";
943
+ return `${props.context?.title ?? value}`.replace(/\{\{.*\}\}/, value);
944
+ });
945
+ return (_ctx, _cache) => {
946
+ return openBlock(), createElementBlock("div", _hoisted_1$1, [
947
+ unref(hasPrefixIcon) ? (openBlock(), createBlock(_sfc_main$10, {
948
+ key: 0,
949
+ "icon-class": __props.context?.iconPrefix,
950
+ "on-click": __props.context?.onIconPrefixClicked,
951
+ position: "prefix"
952
+ }, null, 8, ["icon-class", "on-click"])) : createCommentVNode("v-if", true),
953
+ unref(hasPrefix) ? (openBlock(), createBlock(_sfc_main$9, {
954
+ key: 1,
955
+ prefix: __props.context?.prefix
956
+ }, null, 8, ["prefix"])) : createCommentVNode("v-if", true),
957
+ __props.context?.internal ? (openBlock(), createBlock(resolveDynamicComponent(__props.context?.linkComponentName ? __props.context?.linkComponentName : "RouterLink"), mergeProps({
958
+ key: 2,
959
+ style: __props.context?.attrs?.style,
960
+ class: __props.context?.attrs?.class,
961
+ to: reference.value
962
+ }, __props.context?.attrs), {
963
+ default: withCtx(() => [createTextVNode(toDisplayString(title.value), 1)]),
964
+ _: 1
965
+ }, 16, [
966
+ "style",
967
+ "class",
968
+ "to"
969
+ ])) : (openBlock(), createElementBlock("a", {
970
+ key: 3,
971
+ id: __props.context?.id,
972
+ style: normalizeStyle(__props.context?.attrs?.style),
973
+ class: normalizeClass(__props.context?.attrs?.class),
974
+ href: reference.value,
975
+ target: __props.context?.attrs?.target ?? "_new"
976
+ }, toDisplayString(title.value), 15, _hoisted_2$1)),
977
+ unref(hasSuffix) ? (openBlock(), createBlock(_sfc_main$8, {
978
+ key: 4,
979
+ suffix: __props.context?.suffix
980
+ }, null, 8, ["suffix"])) : createCommentVNode("v-if", true),
981
+ unref(hasSuffixIcon) ? (openBlock(), createBlock(_sfc_main$10, {
982
+ key: 5,
983
+ "icon-class": __props.context?.iconSuffix,
984
+ "on-click": __props.context?.onIconSuffixClicked,
985
+ position: "suffix"
986
+ }, null, 8, ["icon-class", "on-click"])) : createCommentVNode("v-if", true)
987
+ ]);
988
+ };
989
+ }
990
+ });
991
+ //#endregion
992
+ //#region src/components/PrimeOutputText.vue
993
+ const _hoisted_1 = { class: "p-formkit p-output-text" };
994
+ const _hoisted_2 = ["id", "innerHTML"];
995
+ const _hoisted_3 = ["id", "textContent"];
996
+ //#endregion
997
+ //#region src/definitions/output.ts
998
+ const primeOutputTextDefinition = createInput(/* @__PURE__ */ defineComponent({
999
+ __name: "PrimeOutputText",
1000
+ props: { context: {
1001
+ type: Object,
1002
+ required: true
1003
+ } },
1004
+ setup(__props) {
1005
+ const props = __props;
1006
+ const textValue = computed(() => {
1007
+ const value = props.context?._value;
1008
+ const { t } = useI18n();
1009
+ let result = "";
1010
+ if (value) if (props.context?.isTranslationKey) result = t(value);
1011
+ else if (typeof props.context?.convertValue === "function") result = props.context?.convertValue(value);
1012
+ else result = value;
1013
+ const maxLength = props.context?.maxLength;
1014
+ if (result && maxLength && !props.context?.html && result.length > maxLength) {
1015
+ let truncated = result.substring(0, maxLength);
1016
+ const lastSpaceIndex = truncated.lastIndexOf(" ");
1017
+ if (lastSpaceIndex > maxLength * .8) truncated = truncated.substring(0, lastSpaceIndex);
1018
+ result = `${truncated}...`;
1019
+ }
1020
+ return result;
1021
+ });
1022
+ const { hasPrefix, hasPrefixIcon, hasSuffix, hasSuffixIcon } = useFormKitSection(props.context);
1023
+ return (_ctx, _cache) => {
1024
+ return openBlock(), createElementBlock("div", _hoisted_1, [
1025
+ unref(hasPrefixIcon) ? (openBlock(), createBlock(_sfc_main$10, {
1026
+ key: 0,
1027
+ "icon-class": __props.context?.iconPrefix,
1028
+ "on-click": __props.context?.onIconPrefixClicked,
1029
+ position: "prefix"
1030
+ }, null, 8, ["icon-class", "on-click"])) : createCommentVNode("v-if", true),
1031
+ unref(hasPrefix) ? (openBlock(), createBlock(_sfc_main$9, {
1032
+ key: 1,
1033
+ prefix: __props.context?.prefix
1034
+ }, null, 8, ["prefix"])) : createCommentVNode("v-if", true),
1035
+ __props.context?.html ? (openBlock(), createElementBlock("span", {
1036
+ key: 2,
1037
+ id: __props.context?.id,
1038
+ class: normalizeClass(__props.context?.attrs?.class),
1039
+ style: normalizeStyle(__props.context?.attrs?.style),
1040
+ innerHTML: textValue.value
1041
+ }, null, 14, _hoisted_2)) : (openBlock(), createElementBlock("span", {
1042
+ key: 3,
1043
+ id: __props.context?.id,
1044
+ class: normalizeClass(__props.context?.attrs?.class),
1045
+ style: normalizeStyle(__props.context?.attrs?.style),
1046
+ textContent: toDisplayString(textValue.value)
1047
+ }, null, 14, _hoisted_3)),
1048
+ unref(hasSuffix) ? (openBlock(), createBlock(_sfc_main$8, {
1049
+ key: 4,
1050
+ suffix: __props.context?.suffix
1051
+ }, null, 8, ["suffix"])) : createCommentVNode("v-if", true),
1052
+ unref(hasSuffixIcon) ? (openBlock(), createBlock(_sfc_main$10, {
1053
+ key: 5,
1054
+ "icon-class": __props.context?.iconSuffix,
1055
+ "on-click": __props.context?.onIconSuffixClicked,
1056
+ position: "suffix"
1057
+ }, null, 8, ["icon-class", "on-click"])) : createCommentVNode("v-if", true)
1058
+ ]);
1059
+ };
1060
+ }
1061
+ }), { props: [
1062
+ "prefix",
1063
+ "suffix",
1064
+ "iconPrefix",
1065
+ "iconSuffix",
1066
+ "isTranslationKey",
1067
+ "html",
1068
+ "onIconPrefixClicked",
1069
+ "onIconSuffixClicked",
1070
+ "convertValue",
1071
+ "maxLength"
1072
+ ] });
1073
+ const primeOutputDateDefinition = createInput(_sfc_main$6, { props: [
1074
+ "prefix",
1075
+ "suffix",
1076
+ "iconPrefix",
1077
+ "iconSuffix",
1078
+ "onIconPrefixClicked",
1079
+ "onIconSuffixClicked"
1080
+ ] });
1081
+ const primeOutputNumberDefinition = createInput(_sfc_main$2, {
1082
+ props: [
1083
+ "prefix",
1084
+ "suffix",
1085
+ "iconPrefix",
1086
+ "iconSuffix",
1087
+ "onIconPrefixClicked",
1088
+ "onIconSuffixClicked"
1089
+ ],
1090
+ family: "PrimeOutput"
1091
+ });
1092
+ const primeOutputLinkDefinition = createInput(_sfc_main$4, {
1093
+ props: [
1094
+ "prefix",
1095
+ "suffix",
1096
+ "iconPrefix",
1097
+ "iconSuffix",
1098
+ "title",
1099
+ "onIconPrefixClicked",
1100
+ "onIconSuffixClicked"
1101
+ ],
1102
+ family: "PrimeOutput"
1103
+ });
1104
+ const primeOutputReferenceDefinition = createInput(_sfc_main$1, {
1105
+ props: [
1106
+ "prefix",
1107
+ "suffix",
1108
+ "iconPrefix",
1109
+ "iconSuffix",
1110
+ "reference",
1111
+ "internal",
1112
+ "linkComponentName",
1113
+ "title",
1114
+ "onIconPrefixClicked",
1115
+ "onIconSuffixClicked"
1116
+ ],
1117
+ family: "PrimeOutput"
1118
+ });
1119
+ const primeOutputBooleanDefinition = createInput(_sfc_main$7, {
1120
+ props: [
1121
+ "prefix",
1122
+ "suffix",
1123
+ "iconPrefix",
1124
+ "iconSuffix",
1125
+ "trueValue",
1126
+ "falseValue",
1127
+ "onIconPrefixClicked",
1128
+ "onIconSuffixClicked"
1129
+ ],
1130
+ family: "PrimeOutput"
1131
+ });
1132
+ const primeOutputDurationDefinition = createInput(_sfc_main$5, {
1133
+ props: [
1134
+ "prefix",
1135
+ "suffix",
1136
+ "iconPrefix",
1137
+ "iconSuffix",
1138
+ "onIconPrefixClicked",
1139
+ "onIconSuffixClicked"
1140
+ ],
1141
+ family: "PrimeOutput"
1142
+ });
1143
+ const primeOutputListDefinition = createInput(_sfc_main$3, {
1144
+ props: [
1145
+ "prefix",
1146
+ "suffix",
1147
+ "iconPrefix",
1148
+ "iconSuffix",
1149
+ "divider",
1150
+ "itemClass",
1151
+ "dividerClass",
1152
+ "listStyle",
1153
+ "onIconPrefixClicked",
1154
+ "onIconSuffixClicked",
1155
+ "convertValue"
1156
+ ],
1157
+ family: "PrimeOutput"
1158
+ });
1159
+ //#endregion
1160
+ //#region src/definitions/index.ts
1161
+ const primeInputs = {
1162
+ primeAutoComplete: primeAutoCompleteDefinition,
1163
+ primeInputText: primeInputTextDefinition,
1164
+ primeInputNumber: primeInputNumberDefinition,
1165
+ primeInputMask: primeInputMaskDefinition,
1166
+ primePassword: primePasswordDefinition,
1167
+ primeCheckbox: primeCheckboxDefinition,
1168
+ primeToggleSwitch: primeToggleSwitchDefinition,
1169
+ primeTextarea: primeTextareaDefinition,
1170
+ primeSelect: primeSelectDefinition,
1171
+ primeMultiSelect: primeMultiSelectDefinition,
1172
+ primeDatePicker: primeDatePickerDefinition,
1173
+ primeSlider: primeSliderDefinition,
1174
+ primeKnob: primeKnobDefinition,
1175
+ primeRating: primeRatingDefinition,
1176
+ primeRadioButton: primeRadioButtonDefinition,
1177
+ primeColorPicker: primeColorPickerDefinition,
1178
+ primeToggleButton: primeToggleButtonDefinition,
1179
+ primeListbox: primeListboxDefinition,
1180
+ primeSelectButton: primeSelectButtonDefinition,
1181
+ primeCascadeSelect: primeCascadeSelectDefinition,
1182
+ primeTreeSelect: primeTreeSelectDefinition,
1183
+ primeInputOtp: primeInputOtpDefinition
1184
+ };
1185
+ const primeOutputs = {
1186
+ primeOutputText: primeOutputTextDefinition,
1187
+ primeOutputLink: primeOutputLinkDefinition,
1188
+ primeOutputReference: primeOutputReferenceDefinition,
1189
+ primeOutputNumber: primeOutputNumberDefinition,
1190
+ primeOutputDate: primeOutputDateDefinition,
1191
+ primeOutputBoolean: primeOutputBooleanDefinition,
1192
+ primeOutputDuration: primeOutputDurationDefinition,
1193
+ primeOutputList: primeOutputListDefinition
1194
+ };
1195
+ //#endregion
1196
+ export { primeOutputs as n, primeInputs as t };