@sfxcode/formkit-primevue 3.3.4 → 3.3.6

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 (140) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +138 -13
  3. package/components.d.ts +1 -0
  4. package/dist/components/FormKitDataDebug.d.vue.ts +24 -0
  5. package/dist/components/FormKitDataDebug.vue +9 -5
  6. package/dist/components/FormKitDataDebug.vue.d.ts +24 -0
  7. package/dist/components/FormKitDataEdit.d.vue.ts +180 -0
  8. package/dist/components/FormKitDataEdit.vue +46 -53
  9. package/dist/components/FormKitDataEdit.vue.d.ts +180 -0
  10. package/dist/components/FormKitDataView.d.vue.ts +73 -0
  11. package/dist/components/FormKitDataView.vue +27 -20
  12. package/dist/components/FormKitDataView.vue.d.ts +73 -0
  13. package/dist/components/FormKitIcon.d.vue.ts +39 -0
  14. package/dist/components/FormKitIcon.vue +13 -6
  15. package/dist/components/FormKitIcon.vue.d.ts +39 -0
  16. package/dist/components/FormKitPrefix.d.vue.ts +7 -0
  17. package/dist/components/FormKitPrefix.vue +3 -3
  18. package/dist/components/FormKitPrefix.vue.d.ts +7 -0
  19. package/dist/components/FormKitSuffix.d.vue.ts +7 -0
  20. package/dist/components/FormKitSuffix.vue +3 -3
  21. package/dist/components/FormKitSuffix.vue.d.ts +7 -0
  22. package/dist/components/PrimeAutoComplete.d.vue.ts +31 -0
  23. package/dist/components/PrimeAutoComplete.vue +86 -41
  24. package/dist/components/PrimeAutoComplete.vue.d.ts +31 -0
  25. package/dist/components/PrimeCascadeSelect.d.vue.ts +28 -0
  26. package/dist/components/PrimeCascadeSelect.vue +26 -7
  27. package/dist/components/PrimeCascadeSelect.vue.d.ts +28 -0
  28. package/dist/components/PrimeCheckbox.d.vue.ts +27 -0
  29. package/dist/components/PrimeCheckbox.vue +29 -9
  30. package/dist/components/PrimeCheckbox.vue.d.ts +27 -0
  31. package/dist/components/PrimeColorPicker.d.vue.ts +24 -0
  32. package/dist/components/PrimeColorPicker.vue +22 -7
  33. package/dist/components/PrimeColorPicker.vue.d.ts +24 -0
  34. package/dist/components/PrimeDatePicker.d.vue.ts +63 -0
  35. package/dist/components/PrimeDatePicker.vue +73 -17
  36. package/dist/components/PrimeDatePicker.vue.d.ts +63 -0
  37. package/dist/components/PrimeInputMask.d.vue.ts +28 -0
  38. package/dist/components/PrimeInputMask.vue +29 -10
  39. package/dist/components/PrimeInputMask.vue.d.ts +28 -0
  40. package/dist/components/PrimeInputNumber.d.vue.ts +36 -0
  41. package/dist/components/PrimeInputNumber.vue +56 -21
  42. package/dist/components/PrimeInputNumber.vue.d.ts +36 -0
  43. package/dist/components/PrimeInputOtp.d.vue.ts +26 -0
  44. package/dist/components/PrimeInputOtp.vue +24 -7
  45. package/dist/components/PrimeInputOtp.vue.d.ts +26 -0
  46. package/dist/components/PrimeInputText.d.vue.ts +24 -0
  47. package/dist/components/PrimeInputText.vue +25 -10
  48. package/dist/components/PrimeInputText.vue.d.ts +24 -0
  49. package/dist/components/PrimeKnob.d.vue.ts +31 -0
  50. package/dist/components/PrimeKnob.vue +37 -12
  51. package/dist/components/PrimeKnob.vue.d.ts +31 -0
  52. package/dist/components/PrimeListbox.d.vue.ts +42 -0
  53. package/dist/components/PrimeListbox.vue +39 -7
  54. package/dist/components/PrimeListbox.vue.d.ts +42 -0
  55. package/dist/components/PrimeMultiSelect.d.vue.ts +53 -0
  56. package/dist/components/PrimeMultiSelect.vue +52 -7
  57. package/dist/components/PrimeMultiSelect.vue.d.ts +53 -0
  58. package/dist/components/PrimeOutputBoolean.d.vue.ts +16 -0
  59. package/dist/components/PrimeOutputBoolean.vue +27 -28
  60. package/dist/components/PrimeOutputBoolean.vue.d.ts +16 -0
  61. package/dist/components/PrimeOutputDate.d.vue.ts +16 -0
  62. package/dist/components/PrimeOutputDate.vue +33 -33
  63. package/dist/components/PrimeOutputDate.vue.d.ts +16 -0
  64. package/dist/components/PrimeOutputDuration.d.vue.ts +16 -0
  65. package/dist/components/PrimeOutputDuration.vue +19 -23
  66. package/dist/components/PrimeOutputDuration.vue.d.ts +16 -0
  67. package/dist/components/PrimeOutputLink.d.vue.ts +16 -0
  68. package/dist/components/PrimeOutputLink.vue +27 -29
  69. package/dist/components/PrimeOutputLink.vue.d.ts +16 -0
  70. package/dist/components/PrimeOutputList.d.vue.ts +19 -0
  71. package/dist/components/PrimeOutputList.vue +40 -71
  72. package/dist/components/PrimeOutputList.vue.d.ts +19 -0
  73. package/dist/components/PrimeOutputNumber.d.vue.ts +16 -0
  74. package/dist/components/PrimeOutputNumber.vue +39 -36
  75. package/dist/components/PrimeOutputNumber.vue.d.ts +16 -0
  76. package/dist/components/PrimeOutputReference.d.vue.ts +16 -0
  77. package/dist/components/PrimeOutputReference.vue +30 -32
  78. package/dist/components/PrimeOutputReference.vue.d.ts +16 -0
  79. package/dist/components/PrimeOutputText.d.vue.ts +22 -0
  80. package/dist/components/PrimeOutputText.vue +53 -53
  81. package/dist/components/PrimeOutputText.vue.d.ts +22 -0
  82. package/dist/components/PrimePassword.d.vue.ts +33 -0
  83. package/dist/components/PrimePassword.vue +32 -11
  84. package/dist/components/PrimePassword.vue.d.ts +33 -0
  85. package/dist/components/PrimeRadioButton.d.vue.ts +28 -0
  86. package/dist/components/PrimeRadioButton.vue +29 -19
  87. package/dist/components/PrimeRadioButton.vue.d.ts +28 -0
  88. package/dist/components/PrimeRating.d.vue.ts +24 -0
  89. package/dist/components/PrimeRating.vue +22 -7
  90. package/dist/components/PrimeRating.vue.d.ts +24 -0
  91. package/dist/components/PrimeSelect.d.vue.ts +50 -0
  92. package/dist/components/PrimeSelect.vue +49 -7
  93. package/dist/components/PrimeSelect.vue.d.ts +50 -0
  94. package/dist/components/PrimeSelectButton.d.vue.ts +28 -0
  95. package/dist/components/PrimeSelectButton.vue +27 -7
  96. package/dist/components/PrimeSelectButton.vue.d.ts +28 -0
  97. package/dist/components/PrimeSlider.d.vue.ts +26 -0
  98. package/dist/components/PrimeSlider.vue +28 -10
  99. package/dist/components/PrimeSlider.vue.d.ts +26 -0
  100. package/dist/components/PrimeTextarea.d.vue.ts +25 -0
  101. package/dist/components/PrimeTextarea.vue +23 -7
  102. package/dist/components/PrimeTextarea.vue.d.ts +25 -0
  103. package/dist/components/PrimeToggleButton.d.vue.ts +26 -0
  104. package/dist/components/PrimeToggleButton.vue +25 -7
  105. package/dist/components/PrimeToggleButton.vue.d.ts +26 -0
  106. package/dist/components/PrimeToggleSwitch.d.vue.ts +23 -0
  107. package/dist/components/PrimeToggleSwitch.vue +23 -8
  108. package/dist/components/PrimeToggleSwitch.vue.d.ts +23 -0
  109. package/dist/components/PrimeTreeSelect.d.vue.ts +32 -0
  110. package/dist/components/PrimeTreeSelect.vue +30 -7
  111. package/dist/components/PrimeTreeSelect.vue.d.ts +32 -0
  112. package/dist/components/index.d.ts +23 -23
  113. package/dist/composables/index.d.ts +8 -8
  114. package/dist/composables/index.js +8 -8
  115. package/dist/composables/index.mjs +8 -8
  116. package/dist/composables/useFormKitInput.js +1 -5
  117. package/dist/composables/useFormKitInput.mjs +1 -13
  118. package/dist/composables/useFormKitRepeater.js +1 -1
  119. package/dist/composables/useFormKitRepeater.mjs +17 -45
  120. package/dist/composables/useFormKitSchema.mjs +2 -10
  121. package/dist/composables/useInputEditor.js +4 -4
  122. package/dist/composables/useInputEditor.mjs +24 -52
  123. package/dist/composables/useInputEditorSchema.js +3 -3
  124. package/dist/composables/useInputEditorSchema.mjs +17 -25
  125. package/dist/composables/useOutputDuration.mjs +6 -3
  126. package/dist/definitions/index.js +2 -2
  127. package/dist/definitions/index.mjs +2 -2
  128. package/dist/definitions/input.d.ts +1 -1
  129. package/dist/definitions/input.mjs +15 -301
  130. package/dist/definitions/output.d.ts +1 -1
  131. package/dist/definitions/output.js +1 -1
  132. package/dist/definitions/output.mjs +14 -95
  133. package/dist/index.d.ts +48 -48
  134. package/dist/index.js +12 -12
  135. package/dist/index.mjs +3 -9
  136. package/dist/plugins/index.d.ts +1 -1
  137. package/dist/plugins/index.mjs +27 -31
  138. package/dist/sass/formkit-primevue.scss +101 -99
  139. package/package.json +88 -51
  140. package/dist/vue.d.ts +0 -5
@@ -0,0 +1,42 @@
1
+ import type { FormKitFrameworkContext } from '@formkit/core';
2
+ import type { ListboxProps } from 'primevue/listbox';
3
+ import type { PropType } from 'vue';
4
+ export interface FormKitPrimeListboxProps {
5
+ pt?: ListboxProps['pt'];
6
+ ptOptions?: ListboxProps['ptOptions'];
7
+ unstyled?: ListboxProps['unstyled'];
8
+ options?: ListboxProps['options'];
9
+ optionLabel?: ListboxProps['optionLabel'];
10
+ optionValue?: ListboxProps['optionValue'];
11
+ multiple?: ListboxProps['multiple'];
12
+ filter?: ListboxProps['filter'];
13
+ filterIcon?: ListboxProps['filterIcon'];
14
+ filterPlaceholder?: ListboxProps['filterPlaceholder'];
15
+ filterLocale?: ListboxProps['filterLocale'];
16
+ filterMatchMode?: ListboxProps['filterMatchMode'];
17
+ autoOptionFocus?: ListboxProps['autoOptionFocus'];
18
+ selectOnFocus?: ListboxProps['selectOnFocus'];
19
+ optionDisabled?: ListboxProps['optionDisabled'];
20
+ optionGroupLabel?: ListboxProps['optionGroupLabel'];
21
+ optionGroupChildren?: ListboxProps['optionGroupChildren'];
22
+ listStyle?: ListboxProps['listStyle'];
23
+ dataKey?: ListboxProps['dataKey'];
24
+ metaKeySelection?: ListboxProps['metaKeySelection'];
25
+ virtualScrollerOptions?: ListboxProps['virtualScrollerOptions'];
26
+ tabindex?: ListboxProps['tabindex'];
27
+ ariaLabel?: ListboxProps['ariaLabel'];
28
+ ariaLabelledby?: ListboxProps['ariaLabelledby'];
29
+ }
30
+ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
31
+ context: {
32
+ type: PropType<FormKitFrameworkContext & FormKitPrimeListboxProps>;
33
+ required: true;
34
+ };
35
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
36
+ context: {
37
+ type: PropType<FormKitFrameworkContext & FormKitPrimeListboxProps>;
38
+ required: true;
39
+ };
40
+ }>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
41
+ declare const _default: typeof __VLS_export;
42
+ export default _default;
@@ -1,12 +1,44 @@
1
- <script setup>
2
- import { useFormKitInput } from "../composables/index.ts";
1
+ <script setup lang="ts">
2
+ import type { FormKitFrameworkContext } from '@formkit/core'
3
+ import type { ListboxProps } from 'primevue/listbox'
4
+ import type { PropType } from 'vue'
5
+ import { useFormKitInput } from '../composables'
6
+
7
+ export interface FormKitPrimeListboxProps {
8
+ pt?: ListboxProps['pt']
9
+ ptOptions?: ListboxProps['ptOptions']
10
+ unstyled?: ListboxProps['unstyled']
11
+ options?: ListboxProps['options']
12
+ optionLabel?: ListboxProps['optionLabel']
13
+ optionValue?: ListboxProps['optionValue']
14
+ multiple?: ListboxProps['multiple']
15
+ filter?: ListboxProps['filter']
16
+ filterIcon?: ListboxProps['filterIcon']
17
+ filterPlaceholder?: ListboxProps['filterPlaceholder']
18
+ filterLocale?: ListboxProps['filterLocale']
19
+ filterMatchMode?: ListboxProps['filterMatchMode']
20
+ autoOptionFocus?: ListboxProps['autoOptionFocus']
21
+ selectOnFocus?: ListboxProps['selectOnFocus']
22
+ optionDisabled?: ListboxProps['optionDisabled']
23
+ optionGroupLabel?: ListboxProps['optionGroupLabel']
24
+ optionGroupChildren?: ListboxProps['optionGroupChildren']
25
+ listStyle?: ListboxProps['listStyle']
26
+ dataKey?: ListboxProps['dataKey']
27
+ metaKeySelection?: ListboxProps['metaKeySelection']
28
+ virtualScrollerOptions?: ListboxProps['virtualScrollerOptions']
29
+ tabindex?: ListboxProps['tabindex']
30
+ ariaLabel?: ListboxProps['ariaLabel']
31
+ ariaLabelledby?: ListboxProps['ariaLabelledby']
32
+ }
33
+
3
34
  const props = defineProps({
4
35
  context: {
5
- type: Object,
6
- required: true
7
- }
8
- });
9
- const { validSlotNames, unstyled, isInvalid, handleInput, handleBlur, modelValue } = useFormKitInput(props.context);
36
+ type: Object as PropType<FormKitFrameworkContext & FormKitPrimeListboxProps>,
37
+ required: true,
38
+ },
39
+ })
40
+
41
+ const { validSlotNames, unstyled, isInvalid, handleInput, handleBlur, modelValue } = useFormKitInput(props.context)
10
42
  </script>
11
43
 
12
44
  <template>
@@ -0,0 +1,42 @@
1
+ import type { FormKitFrameworkContext } from '@formkit/core';
2
+ import type { ListboxProps } from 'primevue/listbox';
3
+ import type { PropType } from 'vue';
4
+ export interface FormKitPrimeListboxProps {
5
+ pt?: ListboxProps['pt'];
6
+ ptOptions?: ListboxProps['ptOptions'];
7
+ unstyled?: ListboxProps['unstyled'];
8
+ options?: ListboxProps['options'];
9
+ optionLabel?: ListboxProps['optionLabel'];
10
+ optionValue?: ListboxProps['optionValue'];
11
+ multiple?: ListboxProps['multiple'];
12
+ filter?: ListboxProps['filter'];
13
+ filterIcon?: ListboxProps['filterIcon'];
14
+ filterPlaceholder?: ListboxProps['filterPlaceholder'];
15
+ filterLocale?: ListboxProps['filterLocale'];
16
+ filterMatchMode?: ListboxProps['filterMatchMode'];
17
+ autoOptionFocus?: ListboxProps['autoOptionFocus'];
18
+ selectOnFocus?: ListboxProps['selectOnFocus'];
19
+ optionDisabled?: ListboxProps['optionDisabled'];
20
+ optionGroupLabel?: ListboxProps['optionGroupLabel'];
21
+ optionGroupChildren?: ListboxProps['optionGroupChildren'];
22
+ listStyle?: ListboxProps['listStyle'];
23
+ dataKey?: ListboxProps['dataKey'];
24
+ metaKeySelection?: ListboxProps['metaKeySelection'];
25
+ virtualScrollerOptions?: ListboxProps['virtualScrollerOptions'];
26
+ tabindex?: ListboxProps['tabindex'];
27
+ ariaLabel?: ListboxProps['ariaLabel'];
28
+ ariaLabelledby?: ListboxProps['ariaLabelledby'];
29
+ }
30
+ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
31
+ context: {
32
+ type: PropType<FormKitFrameworkContext & FormKitPrimeListboxProps>;
33
+ required: true;
34
+ };
35
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
36
+ context: {
37
+ type: PropType<FormKitFrameworkContext & FormKitPrimeListboxProps>;
38
+ required: true;
39
+ };
40
+ }>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
41
+ declare const _default: typeof __VLS_export;
42
+ export default _default;
@@ -0,0 +1,53 @@
1
+ import type { FormKitFrameworkContext } from '@formkit/core';
2
+ import type { MultiSelectProps } from 'primevue/multiselect';
3
+ import type { PropType } from 'vue';
4
+ export interface FormKitPrimeMultiSelectProps {
5
+ options?: MultiSelectProps['options'];
6
+ optionLabel?: MultiSelectProps['optionLabel'];
7
+ optionValue?: MultiSelectProps['optionValue'];
8
+ optionDisabled?: MultiSelectProps['optionDisabled'];
9
+ optionGroupLabel?: MultiSelectProps['optionGroupLabel'];
10
+ optionGroupChildren?: MultiSelectProps['optionGroupChildren'];
11
+ scrollHeight?: MultiSelectProps['scrollHeight'];
12
+ dataKey?: MultiSelectProps['dataKey'];
13
+ filter?: MultiSelectProps['filter'];
14
+ filterPlaceholder?: MultiSelectProps['filterPlaceholder'];
15
+ filterLocale?: MultiSelectProps['filterLocale'];
16
+ filterMatchMode?: MultiSelectProps['filterMatchMode'];
17
+ filterFields?: MultiSelectProps['filterFields'];
18
+ appendTo?: MultiSelectProps['appendTo'];
19
+ display?: MultiSelectProps['display'];
20
+ maxSelectedLabels?: MultiSelectProps['maxSelectedLabels'];
21
+ selectedItemsLabel?: MultiSelectProps['selectedItemsLabel'];
22
+ selectionLimit?: MultiSelectProps['selectionLimit'];
23
+ showToggleAll?: MultiSelectProps['showToggleAll'];
24
+ loading?: MultiSelectProps['loading'];
25
+ selectAll?: MultiSelectProps['selectAll'];
26
+ resetFilterOnHide?: MultiSelectProps['resetFilterOnHide'];
27
+ virtualScrollerOptions?: MultiSelectProps['virtualScrollerOptions'];
28
+ autoOptionFocus?: MultiSelectProps['autoOptionFocus'];
29
+ autoFilterFocus?: MultiSelectProps['autoFilterFocus'];
30
+ filterMessage?: MultiSelectProps['filterMessage'];
31
+ selectionMessage?: MultiSelectProps['selectionMessage'];
32
+ emptySelectionMessage?: MultiSelectProps['emptySelectionMessage'];
33
+ emptyFilterMessage?: MultiSelectProps['emptyFilterMessage'];
34
+ emptyMessage?: MultiSelectProps['emptyMessage'];
35
+ pt?: MultiSelectProps['pt'];
36
+ placeholder?: MultiSelectProps['placeholder'];
37
+ ptOptions?: MultiSelectProps['ptOptions'];
38
+ unstyled?: MultiSelectProps['unstyled'];
39
+ size?: MultiSelectProps['size'];
40
+ }
41
+ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
42
+ context: {
43
+ type: PropType<FormKitFrameworkContext & FormKitPrimeMultiSelectProps>;
44
+ required: true;
45
+ };
46
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
47
+ context: {
48
+ type: PropType<FormKitFrameworkContext & FormKitPrimeMultiSelectProps>;
49
+ required: true;
50
+ };
51
+ }>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
52
+ declare const _default: typeof __VLS_export;
53
+ export default _default;
@@ -1,12 +1,57 @@
1
- <script setup>
2
- import { useFormKitInput } from "../composables/index.ts";
1
+ <script setup lang='ts'>
2
+ import type { FormKitFrameworkContext } from '@formkit/core'
3
+ import type { MultiSelectProps } from 'primevue/multiselect'
4
+
5
+ import type { PropType } from 'vue'
6
+ import { useFormKitInput } from '../composables'
7
+
8
+ export interface FormKitPrimeMultiSelectProps {
9
+ options?: MultiSelectProps['options']
10
+ optionLabel?: MultiSelectProps['optionLabel']
11
+ optionValue?: MultiSelectProps['optionValue']
12
+ optionDisabled?: MultiSelectProps['optionDisabled']
13
+ optionGroupLabel?: MultiSelectProps['optionGroupLabel']
14
+ optionGroupChildren?: MultiSelectProps['optionGroupChildren']
15
+ scrollHeight?: MultiSelectProps['scrollHeight']
16
+ dataKey?: MultiSelectProps['dataKey']
17
+ filter?: MultiSelectProps['filter']
18
+ filterPlaceholder?: MultiSelectProps['filterPlaceholder']
19
+ filterLocale?: MultiSelectProps['filterLocale']
20
+ filterMatchMode?: MultiSelectProps['filterMatchMode']
21
+ filterFields?: MultiSelectProps['filterFields']
22
+ appendTo?: MultiSelectProps['appendTo']
23
+ display?: MultiSelectProps['display']
24
+ maxSelectedLabels?: MultiSelectProps['maxSelectedLabels']
25
+ selectedItemsLabel?: MultiSelectProps['selectedItemsLabel']
26
+ selectionLimit?: MultiSelectProps['selectionLimit']
27
+ showToggleAll?: MultiSelectProps['showToggleAll']
28
+ loading?: MultiSelectProps['loading']
29
+ selectAll?: MultiSelectProps['selectAll']
30
+ resetFilterOnHide?: MultiSelectProps['resetFilterOnHide']
31
+ virtualScrollerOptions?: MultiSelectProps['virtualScrollerOptions']
32
+ autoOptionFocus?: MultiSelectProps['autoOptionFocus']
33
+ autoFilterFocus?: MultiSelectProps['autoFilterFocus']
34
+ filterMessage?: MultiSelectProps['filterMessage']
35
+ selectionMessage?: MultiSelectProps['selectionMessage']
36
+ emptySelectionMessage?: MultiSelectProps['emptySelectionMessage']
37
+ emptyFilterMessage?: MultiSelectProps['emptyFilterMessage']
38
+ emptyMessage?: MultiSelectProps['emptyMessage']
39
+ pt?: MultiSelectProps['pt']
40
+ placeholder?: MultiSelectProps['placeholder']
41
+ ptOptions?: MultiSelectProps['ptOptions']
42
+ unstyled?: MultiSelectProps['unstyled']
43
+ size?: MultiSelectProps['size']
44
+
45
+ }
46
+
3
47
  const props = defineProps({
4
48
  context: {
5
- type: Object,
6
- required: true
7
- }
8
- });
9
- const { validSlotNames, unstyled, isInvalid, handleBlur, handleChange, modelValue } = useFormKitInput(props.context);
49
+ type: Object as PropType<FormKitFrameworkContext & FormKitPrimeMultiSelectProps>,
50
+ required: true,
51
+ },
52
+ })
53
+
54
+ const { validSlotNames, unstyled, isInvalid, handleBlur, handleChange, modelValue } = useFormKitInput(props.context)
10
55
  </script>
11
56
 
12
57
  <template>
@@ -0,0 +1,53 @@
1
+ import type { FormKitFrameworkContext } from '@formkit/core';
2
+ import type { MultiSelectProps } from 'primevue/multiselect';
3
+ import type { PropType } from 'vue';
4
+ export interface FormKitPrimeMultiSelectProps {
5
+ options?: MultiSelectProps['options'];
6
+ optionLabel?: MultiSelectProps['optionLabel'];
7
+ optionValue?: MultiSelectProps['optionValue'];
8
+ optionDisabled?: MultiSelectProps['optionDisabled'];
9
+ optionGroupLabel?: MultiSelectProps['optionGroupLabel'];
10
+ optionGroupChildren?: MultiSelectProps['optionGroupChildren'];
11
+ scrollHeight?: MultiSelectProps['scrollHeight'];
12
+ dataKey?: MultiSelectProps['dataKey'];
13
+ filter?: MultiSelectProps['filter'];
14
+ filterPlaceholder?: MultiSelectProps['filterPlaceholder'];
15
+ filterLocale?: MultiSelectProps['filterLocale'];
16
+ filterMatchMode?: MultiSelectProps['filterMatchMode'];
17
+ filterFields?: MultiSelectProps['filterFields'];
18
+ appendTo?: MultiSelectProps['appendTo'];
19
+ display?: MultiSelectProps['display'];
20
+ maxSelectedLabels?: MultiSelectProps['maxSelectedLabels'];
21
+ selectedItemsLabel?: MultiSelectProps['selectedItemsLabel'];
22
+ selectionLimit?: MultiSelectProps['selectionLimit'];
23
+ showToggleAll?: MultiSelectProps['showToggleAll'];
24
+ loading?: MultiSelectProps['loading'];
25
+ selectAll?: MultiSelectProps['selectAll'];
26
+ resetFilterOnHide?: MultiSelectProps['resetFilterOnHide'];
27
+ virtualScrollerOptions?: MultiSelectProps['virtualScrollerOptions'];
28
+ autoOptionFocus?: MultiSelectProps['autoOptionFocus'];
29
+ autoFilterFocus?: MultiSelectProps['autoFilterFocus'];
30
+ filterMessage?: MultiSelectProps['filterMessage'];
31
+ selectionMessage?: MultiSelectProps['selectionMessage'];
32
+ emptySelectionMessage?: MultiSelectProps['emptySelectionMessage'];
33
+ emptyFilterMessage?: MultiSelectProps['emptyFilterMessage'];
34
+ emptyMessage?: MultiSelectProps['emptyMessage'];
35
+ pt?: MultiSelectProps['pt'];
36
+ placeholder?: MultiSelectProps['placeholder'];
37
+ ptOptions?: MultiSelectProps['ptOptions'];
38
+ unstyled?: MultiSelectProps['unstyled'];
39
+ size?: MultiSelectProps['size'];
40
+ }
41
+ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
42
+ context: {
43
+ type: PropType<FormKitFrameworkContext & FormKitPrimeMultiSelectProps>;
44
+ required: true;
45
+ };
46
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
47
+ context: {
48
+ type: PropType<FormKitFrameworkContext & FormKitPrimeMultiSelectProps>;
49
+ required: true;
50
+ };
51
+ }>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
52
+ declare const _default: typeof __VLS_export;
53
+ export default _default;
@@ -0,0 +1,16 @@
1
+ import type { FormKitFrameworkContext } from '@formkit/core';
2
+ import type { PropType } from 'vue';
3
+ import type { FormKitIconProps } from './FormKitIcon.vue';
4
+ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
5
+ context: {
6
+ type: PropType<FormKitFrameworkContext> & FormKitIconProps;
7
+ required: true;
8
+ };
9
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
10
+ context: {
11
+ type: PropType<FormKitFrameworkContext> & FormKitIconProps;
12
+ required: true;
13
+ };
14
+ }>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
15
+ declare const _default: typeof __VLS_export;
16
+ export default _default;
@@ -1,42 +1,41 @@
1
- <script setup>
2
- import { computed } from "vue";
3
- import { useI18n } from "vue-i18n";
4
- import { useFormKitSection } from "../composables/index.ts";
5
- import FormKitIcon from "./FormKitIcon.vue";
6
- import FormKitPrefix from "./FormKitPrefix.vue";
7
- import FormKitSuffix from "./FormKitSuffix.vue";
1
+ <script setup lang='ts'>
2
+ import type { FormKitFrameworkContext } from '@formkit/core'
3
+ import type { PropType } from 'vue'
4
+ import type { FormKitIconProps } from './FormKitIcon.vue'
5
+ import { computed } from 'vue'
6
+ import { useI18n } from 'vue-i18n'
7
+ import { useFormKitSection } from '../composables'
8
+ import FormKitIcon from './FormKitIcon.vue'
9
+ import FormKitPrefix from './FormKitPrefix.vue'
10
+ import FormKitSuffix from './FormKitSuffix.vue'
11
+
8
12
  const props = defineProps({
9
13
  context: {
10
- type: Object,
11
- required: true
12
- }
13
- });
14
- const { hasPrefix, hasPrefixIcon, hasSuffix, hasSuffixIcon } = useFormKitSection(props.context);
15
- const { t } = useI18n();
14
+ type: Object as PropType<FormKitFrameworkContext> & FormKitIconProps,
15
+ required: true,
16
+ },
17
+ })
18
+
19
+ const { hasPrefix, hasPrefixIcon, hasSuffix, hasSuffixIcon } = useFormKitSection(props.context)
20
+
21
+ const { t } = useI18n()
22
+
16
23
  const translated = computed(() => {
17
- if (props.context?._value) return props.context?.trueValue ?? t("formkit.prime.true", "true");
18
- else return props.context?.falseValue ?? t("formkit.prime.false", "false");
19
- });
24
+ if (props.context?._value)
25
+ return props.context?.trueValue ?? t('formkit.prime.true', 'true')
26
+ else
27
+ return props.context?.falseValue ?? t('formkit.prime.false', 'false')
28
+ })
20
29
  </script>
21
30
 
22
31
  <template>
23
32
  <div class="p-formkit p-output-boolean">
24
- <FormKitIcon
25
- v-if="hasPrefixIcon"
26
- :icon-class="context?.iconPrefix as string"
27
- :on-click="context?.onIconPrefixClicked as () => void"
28
- position="prefix"
29
- />
33
+ <FormKitIcon v-if="hasPrefixIcon" :icon-class="context?.iconPrefix as string" :on-click="context?.onIconPrefixClicked as (() => void)" position="prefix" />
30
34
  <FormKitPrefix v-if="hasPrefix" :prefix="context?.prefix as string" />
31
35
  <span :id="context?.id" :style="context?.attrs?.style" :class="context?.attrs?.class">
32
36
  {{ translated }}
33
37
  </span>
34
38
  <FormKitSuffix v-if="hasSuffix" :suffix="context?.suffix as string" />
35
- <FormKitIcon
36
- v-if="hasSuffixIcon"
37
- :icon-class="context?.iconSuffix as string"
38
- :on-click="context?.onIconSuffixClicked as () => void"
39
- position="suffix"
40
- />
39
+ <FormKitIcon v-if="hasSuffixIcon" :icon-class="context?.iconSuffix as string" :on-click="context?.onIconSuffixClicked as (() => void)" position="suffix" />
41
40
  </div>
42
41
  </template>
@@ -0,0 +1,16 @@
1
+ import type { FormKitFrameworkContext } from '@formkit/core';
2
+ import type { PropType } from 'vue';
3
+ import type { FormKitIconProps } from './FormKitIcon.vue';
4
+ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
5
+ context: {
6
+ type: PropType<FormKitFrameworkContext> & FormKitIconProps;
7
+ required: true;
8
+ };
9
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
10
+ context: {
11
+ type: PropType<FormKitFrameworkContext> & FormKitIconProps;
12
+ required: true;
13
+ };
14
+ }>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
15
+ declare const _default: typeof __VLS_export;
16
+ export default _default;
@@ -0,0 +1,16 @@
1
+ import type { FormKitFrameworkContext } from '@formkit/core';
2
+ import type { PropType } from 'vue';
3
+ import type { FormKitIconProps } from './FormKitIcon.vue';
4
+ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
5
+ context: {
6
+ type: PropType<FormKitFrameworkContext> & FormKitIconProps;
7
+ required: true;
8
+ };
9
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
10
+ context: {
11
+ type: PropType<FormKitFrameworkContext> & FormKitIconProps;
12
+ required: true;
13
+ };
14
+ }>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
15
+ declare const _default: typeof __VLS_export;
16
+ export default _default;
@@ -1,51 +1,51 @@
1
- <script setup>
2
- import { computed } from "vue";
3
- import { useI18n } from "vue-i18n";
4
- import { useFormKitSection } from "../composables/index.ts";
5
- import FormKitIcon from "./FormKitIcon.vue";
6
- import FormKitPrefix from "./FormKitPrefix.vue";
7
- import FormKitSuffix from "./FormKitSuffix.vue";
1
+ <script setup lang='ts'>
2
+ import type { FormKitFrameworkContext } from '@formkit/core'
3
+ import type { PropType } from 'vue'
4
+ import type { FormKitIconProps } from './FormKitIcon.vue'
5
+ import { computed } from 'vue'
6
+ import { useI18n } from 'vue-i18n'
7
+ import { useFormKitSection } from '../composables'
8
+ import FormKitIcon from './FormKitIcon.vue'
9
+ import FormKitPrefix from './FormKitPrefix.vue'
10
+ import FormKitSuffix from './FormKitSuffix.vue'
11
+
8
12
  const props = defineProps({
9
13
  context: {
10
- type: Object,
11
- required: true
12
- }
13
- });
14
- const { hasPrefix, hasPrefixIcon, hasSuffix, hasSuffixIcon } = useFormKitSection(props.context);
15
- const { d } = useI18n();
14
+ type: Object as PropType<FormKitFrameworkContext> & FormKitIconProps,
15
+ required: true,
16
+ },
17
+ })
18
+
19
+ const { hasPrefix, hasPrefixIcon, hasSuffix, hasSuffixIcon } = useFormKitSection(props.context)
20
+
21
+ const { d } = useI18n()
22
+
16
23
  const converted = computed(() => {
17
24
  if (props?.context?._value) {
18
- let result = "";
19
- const format = props?.context?.attrs?.value?.format ? props?.context?.attrs.value.format : "short";
25
+ let result = ''
26
+ const format = props?.context?.attrs?.value?.format ? props?.context?.attrs.value.format : 'short'
20
27
  try {
21
- result = d(props?.context?._value, format);
22
- } catch (e) {
28
+ result = d(props?.context?._value, format)
29
+ }
30
+ // eslint-disable-next-line unused-imports/no-unused-vars
31
+ catch (e) {
23
32
  }
24
- return result;
25
- } else {
26
- return "";
33
+ return result
34
+ }
35
+ else {
36
+ return ''
27
37
  }
28
- });
38
+ })
29
39
  </script>
30
40
 
31
41
  <template>
32
42
  <div class="p-formkit p-output-date">
33
- <FormKitIcon
34
- v-if="hasPrefixIcon"
35
- :icon-class="context?.iconPrefix as string"
36
- :on-click="context?.onIconPrefixClicked as () => void"
37
- position="prefix"
38
- />
43
+ <FormKitIcon v-if="hasPrefixIcon" :icon-class="context?.iconPrefix as string" :on-click="context?.onIconPrefixClicked as (() => void)" position="prefix" />
39
44
  <FormKitPrefix v-if="hasPrefix" :prefix="context?.prefix as string" />
40
45
  <span :id="context?.id" :style="context?.attrs?.style" :class="context?.attrs?.class">
41
46
  {{ converted }}
42
47
  </span>
43
48
  <FormKitSuffix v-if="hasSuffix" :suffix="context?.suffix as string" />
44
- <FormKitIcon
45
- v-if="hasSuffixIcon"
46
- :icon-class="context?.iconSuffix as string"
47
- :on-click="context?.onIconSuffixClicked as () => void"
48
- position="suffix"
49
- />
49
+ <FormKitIcon v-if="hasSuffixIcon" :icon-class="context?.iconSuffix as string" :on-click="context?.onIconSuffixClicked as (() => void)" position="suffix" />
50
50
  </div>
51
51
  </template>
@@ -0,0 +1,16 @@
1
+ import type { FormKitFrameworkContext } from '@formkit/core';
2
+ import type { PropType } from 'vue';
3
+ import type { FormKitIconProps } from './FormKitIcon.vue';
4
+ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
5
+ context: {
6
+ type: PropType<FormKitFrameworkContext> & FormKitIconProps;
7
+ required: true;
8
+ };
9
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
10
+ context: {
11
+ type: PropType<FormKitFrameworkContext> & FormKitIconProps;
12
+ required: true;
13
+ };
14
+ }>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
15
+ declare const _default: typeof __VLS_export;
16
+ export default _default;
@@ -0,0 +1,16 @@
1
+ import type { FormKitFrameworkContext } from '@formkit/core';
2
+ import type { PropType } from 'vue';
3
+ import type { FormKitIconProps } from './FormKitIcon.vue';
4
+ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
5
+ context: {
6
+ type: PropType<FormKitFrameworkContext> & FormKitIconProps;
7
+ required: true;
8
+ };
9
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
10
+ context: {
11
+ type: PropType<FormKitFrameworkContext> & FormKitIconProps;
12
+ required: true;
13
+ };
14
+ }>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
15
+ declare const _default: typeof __VLS_export;
16
+ export default _default;
@@ -1,36 +1,32 @@
1
- <script setup>
2
- import { useFormKitSection, useOutputDuration } from "../composables/index.ts";
3
- import FormKitIcon from "./FormKitIcon.vue";
4
- import FormKitPrefix from "./FormKitPrefix.vue";
5
- import FormKitSuffix from "./FormKitSuffix.vue";
1
+ <script setup lang='ts'>
2
+ import type { FormKitFrameworkContext } from '@formkit/core'
3
+ import type { PropType } from 'vue'
4
+ import type { FormKitIconProps } from './FormKitIcon.vue'
5
+ import { useFormKitSection, useOutputDuration } from '../composables'
6
+ import FormKitIcon from './FormKitIcon.vue'
7
+ import FormKitPrefix from './FormKitPrefix.vue'
8
+ import FormKitSuffix from './FormKitSuffix.vue'
9
+
6
10
  const props = defineProps({
7
11
  context: {
8
- type: Object,
9
- required: true
10
- }
11
- });
12
- const { hasPrefix, hasPrefixIcon, hasSuffix, hasSuffixIcon } = useFormKitSection(props.context);
13
- const { formattedDuration } = useOutputDuration();
12
+ type: Object as PropType<FormKitFrameworkContext> & FormKitIconProps,
13
+ required: true,
14
+ },
15
+ })
16
+
17
+ const { hasPrefix, hasPrefixIcon, hasSuffix, hasSuffixIcon } = useFormKitSection(props.context)
18
+
19
+ const { formattedDuration } = useOutputDuration()
14
20
  </script>
15
21
 
16
22
  <template>
17
23
  <div class="p-formkit p-output-duration">
18
- <FormKitIcon
19
- v-if="hasPrefixIcon"
20
- :icon-class="context?.iconPrefix as string"
21
- :on-click="context?.onIconPrefixClicked as () => void"
22
- position="prefix"
23
- />
24
+ <FormKitIcon v-if="hasPrefixIcon" :icon-class="context?.iconPrefix as string" :on-click="context?.onIconPrefixClicked as (() => void)" position="prefix" />
24
25
  <FormKitPrefix v-if="hasPrefix" :prefix="context?.prefix as string" />
25
26
  <span :id="context?.id" :style="context?.attrs?.style" :class="context?.attrs?.class">
26
27
  {{ formattedDuration(context?._value) }}
27
28
  </span>
28
29
  <FormKitSuffix v-if="hasSuffix" :suffix="context?.suffix as string" />
29
- <FormKitIcon
30
- v-if="hasSuffixIcon"
31
- :icon-class="context?.iconSuffix as string"
32
- :on-click="context?.onIconSuffixClicked as () => void"
33
- position="suffix"
34
- />
30
+ <FormKitIcon v-if="hasSuffixIcon" :icon-class="context?.iconSuffix as string" :on-click="context?.onIconSuffixClicked as (() => void)" position="suffix" />
35
31
  </div>
36
32
  </template>
@@ -0,0 +1,16 @@
1
+ import type { FormKitFrameworkContext } from '@formkit/core';
2
+ import type { PropType } from 'vue';
3
+ import type { FormKitIconProps } from './FormKitIcon.vue';
4
+ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
5
+ context: {
6
+ type: PropType<FormKitFrameworkContext> & FormKitIconProps;
7
+ required: true;
8
+ };
9
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
10
+ context: {
11
+ type: PropType<FormKitFrameworkContext> & FormKitIconProps;
12
+ required: true;
13
+ };
14
+ }>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
15
+ declare const _default: typeof __VLS_export;
16
+ export default _default;
@@ -0,0 +1,16 @@
1
+ import type { FormKitFrameworkContext } from '@formkit/core';
2
+ import type { PropType } from 'vue';
3
+ import type { FormKitIconProps } from './FormKitIcon.vue';
4
+ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
5
+ context: {
6
+ type: PropType<FormKitFrameworkContext> & FormKitIconProps;
7
+ required: true;
8
+ };
9
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
10
+ context: {
11
+ type: PropType<FormKitFrameworkContext> & FormKitIconProps;
12
+ required: true;
13
+ };
14
+ }>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
15
+ declare const _default: typeof __VLS_export;
16
+ export default _default;