@volverjs/ui-vue 0.0.10-beta.2 → 0.0.10-beta.21

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 (258) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +98 -3
  3. package/auto-imports.d.ts +6 -2
  4. package/bin/icons.cjs +1 -1
  5. package/bin/icons.js +23 -16
  6. package/dist/Volver.d.ts +1 -1
  7. package/dist/components/VvAccordion/VvAccordion.es.js +70 -14
  8. package/dist/components/VvAccordion/VvAccordion.umd.js +1 -1
  9. package/dist/components/VvAccordion/VvAccordion.vue.d.ts +13 -6
  10. package/dist/components/VvAccordion/index.d.ts +4 -1
  11. package/dist/components/VvAccordionGroup/VvAccordionGroup.es.js +117 -38
  12. package/dist/components/VvAccordionGroup/VvAccordionGroup.umd.js +1 -1
  13. package/dist/components/VvAccordionGroup/VvAccordionGroup.vue.d.ts +15 -8
  14. package/dist/components/VvAccordionGroup/index.d.ts +4 -1
  15. package/dist/components/VvAction/VvAction.es.js +58 -13
  16. package/dist/components/VvAction/VvAction.umd.js +1 -1
  17. package/dist/components/VvAction/VvAction.vue.d.ts +59 -12
  18. package/dist/components/VvAction/index.d.ts +25 -4
  19. package/dist/components/VvAlert/VvAlert.es.js +195 -152
  20. package/dist/components/VvAlert/VvAlert.umd.js +1 -1
  21. package/dist/components/VvAlert/VvAlert.vue.d.ts +18 -8
  22. package/dist/components/VvAlert/index.d.ts +9 -5
  23. package/dist/components/VvAlertGroup/VvAlertGroup.es.js +240 -174
  24. package/dist/components/VvAlertGroup/VvAlertGroup.umd.js +1 -1
  25. package/dist/components/VvAlertGroup/VvAlertGroup.vue.d.ts +13 -6
  26. package/dist/components/VvAlertGroup/index.d.ts +6 -2
  27. package/dist/components/VvAvatar/VvAvatar.es.js +54 -9
  28. package/dist/components/VvAvatar/VvAvatar.umd.js +1 -1
  29. package/dist/components/VvAvatar/VvAvatar.vue.d.ts +12 -4
  30. package/dist/components/VvAvatar/index.d.ts +4 -1
  31. package/dist/components/VvAvatarGroup/VvAvatarGroup.es.js +111 -36
  32. package/dist/components/VvAvatarGroup/VvAvatarGroup.umd.js +1 -1
  33. package/dist/components/VvAvatarGroup/VvAvatarGroup.vue.d.ts +10 -3
  34. package/dist/components/VvAvatarGroup/index.d.ts +4 -1
  35. package/dist/components/VvBadge/VvBadge.es.js +73 -17
  36. package/dist/components/VvBadge/VvBadge.umd.js +1 -1
  37. package/dist/components/VvBadge/VvBadge.vue.d.ts +12 -4
  38. package/dist/components/VvBadge/index.d.ts +4 -1
  39. package/dist/components/VvBreadcrumb/VvBreadcrumb.es.js +259 -49
  40. package/dist/components/VvBreadcrumb/VvBreadcrumb.umd.js +1 -1
  41. package/dist/components/VvBreadcrumb/VvBreadcrumb.vue.d.ts +27 -7
  42. package/dist/components/VvBreadcrumb/index.d.ts +6 -10
  43. package/dist/components/VvButton/VvButton.es.js +187 -141
  44. package/dist/components/VvButton/VvButton.umd.js +1 -1
  45. package/dist/components/VvButton/VvButton.vue.d.ts +101 -27
  46. package/dist/components/VvButton/index.d.ts +41 -14
  47. package/dist/components/VvButtonGroup/VvButtonGroup.es.js +69 -16
  48. package/dist/components/VvButtonGroup/VvButtonGroup.umd.js +1 -1
  49. package/dist/components/VvButtonGroup/VvButtonGroup.vue.d.ts +23 -10
  50. package/dist/components/VvButtonGroup/index.d.ts +8 -2
  51. package/dist/components/VvCard/VvCard.es.js +84 -25
  52. package/dist/components/VvCard/VvCard.umd.js +1 -1
  53. package/dist/components/VvCard/VvCard.vue.d.ts +12 -4
  54. package/dist/components/VvCard/index.d.ts +4 -1
  55. package/dist/components/VvCheckbox/VvCheckbox.es.js +91 -22
  56. package/dist/components/VvCheckbox/VvCheckbox.umd.js +1 -1
  57. package/dist/components/VvCheckbox/VvCheckbox.vue.d.ts +104 -32
  58. package/dist/components/VvCheckbox/index.d.ts +45 -12
  59. package/dist/components/VvCheckboxGroup/VvCheckboxGroup.es.js +180 -67
  60. package/dist/components/VvCheckboxGroup/VvCheckboxGroup.umd.js +1 -1
  61. package/dist/components/VvCheckboxGroup/VvCheckboxGroup.vue.d.ts +100 -29
  62. package/dist/components/VvCheckboxGroup/index.d.ts +45 -12
  63. package/dist/components/VvCombobox/VvCombobox.es.js +758 -531
  64. package/dist/components/VvCombobox/VvCombobox.umd.js +1 -1
  65. package/dist/components/VvCombobox/VvCombobox.vue.d.ts +181 -108
  66. package/dist/components/VvCombobox/index.d.ts +53 -22
  67. package/dist/components/VvDialog/VvDialog.es.js +136 -141
  68. package/dist/components/VvDialog/VvDialog.umd.js +1 -1
  69. package/dist/components/VvDialog/VvDialog.vue.d.ts +4 -4
  70. package/dist/components/VvDropdown/VvDropdown.es.js +121 -55
  71. package/dist/components/VvDropdown/VvDropdown.umd.js +1 -1
  72. package/dist/components/VvDropdown/VvDropdown.vue.d.ts +101 -75
  73. package/dist/components/VvDropdown/VvDropdownAction.vue.d.ts +72 -11
  74. package/dist/components/VvDropdown/VvDropdownItem.vue.d.ts +1 -1
  75. package/dist/components/VvDropdown/VvDropdownOptgroup.vue.d.ts +12 -4
  76. package/dist/components/VvDropdown/VvDropdownOption.vue.d.ts +26 -7
  77. package/dist/components/VvDropdown/index.d.ts +16 -11
  78. package/dist/components/VvDropdownAction/VvDropdownAction.es.js +82 -22
  79. package/dist/components/VvDropdownAction/VvDropdownAction.umd.js +1 -1
  80. package/dist/components/VvDropdownItem/VvDropdownItem.es.js +13 -7
  81. package/dist/components/VvDropdownOptgroup/VvDropdownOptgroup.es.js +56 -8
  82. package/dist/components/VvDropdownOptgroup/VvDropdownOptgroup.umd.js +1 -1
  83. package/dist/components/VvDropdownOption/VvDropdownOption.es.js +76 -17
  84. package/dist/components/VvDropdownOption/VvDropdownOption.umd.js +1 -1
  85. package/dist/components/VvIcon/VvIcon.es.js +23 -96
  86. package/dist/components/VvIcon/VvIcon.umd.js +1 -1
  87. package/dist/components/VvIcon/VvIcon.vue.d.ts +23 -66
  88. package/dist/components/VvIcon/index.d.ts +33 -48
  89. package/dist/components/VvInputFile/VvInputFile.es.js +1734 -0
  90. package/dist/components/VvInputFile/VvInputFile.umd.js +1 -0
  91. package/dist/components/VvInputFile/VvInputFile.vue.d.ts +313 -0
  92. package/dist/components/VvInputFile/index.d.ts +179 -0
  93. package/dist/components/VvInputText/VvInputClearAction.d.ts +7 -5
  94. package/dist/components/VvInputText/VvInputPasswordAction.d.ts +10 -8
  95. package/dist/components/VvInputText/VvInputStepAction.d.ts +1 -1
  96. package/dist/components/VvInputText/VvInputText.es.js +331 -293
  97. package/dist/components/VvInputText/VvInputText.umd.js +1 -1
  98. package/dist/components/VvInputText/VvInputText.vue.d.ts +162 -55
  99. package/dist/components/VvInputText/index.d.ts +71 -29
  100. package/dist/components/VvNav/VvNav.es.js +151 -73
  101. package/dist/components/VvNav/VvNav.umd.js +1 -1
  102. package/dist/components/VvNav/VvNav.vue.d.ts +41 -14
  103. package/dist/components/VvNav/VvNavItem.vue.d.ts +9 -0
  104. package/dist/components/VvNav/VvNavSeparator.vue.d.ts +2 -0
  105. package/dist/components/VvNav/index.d.ts +5 -13
  106. package/dist/components/VvNavItem/VvNavItem.es.js +436 -0
  107. package/dist/components/VvNavItem/VvNavItem.umd.js +1 -0
  108. package/dist/components/VvNavSeparator/VvNavSeparator.es.js +24 -0
  109. package/dist/components/VvNavSeparator/VvNavSeparator.umd.js +1 -0
  110. package/dist/components/VvProgress/VvProgress.es.js +65 -14
  111. package/dist/components/VvProgress/VvProgress.umd.js +1 -1
  112. package/dist/components/VvProgress/VvProgress.vue.d.ts +10 -3
  113. package/dist/components/VvProgress/index.d.ts +4 -1
  114. package/dist/components/VvRadio/VvRadio.es.js +89 -21
  115. package/dist/components/VvRadio/VvRadio.umd.js +1 -1
  116. package/dist/components/VvRadio/VvRadio.vue.d.ts +102 -30
  117. package/dist/components/VvRadio/index.d.ts +44 -11
  118. package/dist/components/VvRadioGroup/VvRadioGroup.es.js +180 -66
  119. package/dist/components/VvRadioGroup/VvRadioGroup.umd.js +1 -1
  120. package/dist/components/VvRadioGroup/VvRadioGroup.vue.d.ts +100 -29
  121. package/dist/components/VvRadioGroup/index.d.ts +45 -12
  122. package/dist/components/VvSelect/VvSelect.es.js +248 -226
  123. package/dist/components/VvSelect/VvSelect.umd.js +1 -1
  124. package/dist/components/VvSelect/VvSelect.vue.d.ts +112 -39
  125. package/dist/components/VvSelect/index.d.ts +48 -14
  126. package/dist/components/VvTab/VvTab.es.js +256 -110
  127. package/dist/components/VvTab/VvTab.umd.js +1 -1
  128. package/dist/components/VvTab/VvTab.vue.d.ts +50 -13
  129. package/dist/components/VvTab/index.d.ts +13 -4
  130. package/dist/components/VvTextarea/VvTextarea.es.js +229 -212
  131. package/dist/components/VvTextarea/VvTextarea.umd.js +1 -1
  132. package/dist/components/VvTextarea/VvTextarea.vue.d.ts +155 -48
  133. package/dist/components/VvTextarea/index.d.ts +68 -19
  134. package/dist/components/VvTooltip/VvTooltip.es.js +72 -17
  135. package/dist/components/VvTooltip/VvTooltip.umd.js +1 -1
  136. package/dist/components/VvTooltip/VvTooltip.vue.d.ts +10 -3
  137. package/dist/components/VvTooltip/index.d.ts +4 -1
  138. package/dist/components/common/HintSlot.d.ts +1 -1
  139. package/dist/components/index.d.ts +10 -0
  140. package/dist/components/index.es.js +2902 -1329
  141. package/dist/components/index.umd.js +1 -1
  142. package/dist/composables/alert/useAlert.d.ts +37 -4
  143. package/dist/composables/dropdown/useProvideDropdown.d.ts +1 -1
  144. package/dist/composables/index.d.ts +1 -0
  145. package/dist/composables/index.es.js +88 -1
  146. package/dist/composables/index.umd.js +1 -1
  147. package/dist/composables/useBlurhash.d.ts +7 -0
  148. package/dist/composables/useComponentIcon.d.ts +9 -8
  149. package/dist/composables/useVolver.d.ts +1 -1
  150. package/dist/directives/index.d.ts +3 -5
  151. package/dist/directives/index.es.js +92 -31
  152. package/dist/directives/index.umd.js +1 -1
  153. package/dist/directives/v-tooltip.es.js +90 -26
  154. package/dist/directives/v-tooltip.umd.js +1 -1
  155. package/dist/icons.es.js +210 -210
  156. package/dist/icons.umd.js +1 -1
  157. package/dist/index.d.ts +3 -1
  158. package/dist/index.es.js +81 -16
  159. package/dist/index.umd.js +1 -1
  160. package/dist/props/index.d.ts +287 -73
  161. package/dist/resolvers/unplugin.d.ts +6 -1
  162. package/dist/resolvers/unplugin.es.js +78 -10
  163. package/dist/resolvers/unplugin.umd.js +1 -1
  164. package/dist/stories/AccordionGroup/AccordionGroup.stories.d.ts +72 -84
  165. package/dist/stories/AccordionGroup/AccordionGroupSlots.stories.d.ts +623 -461
  166. package/dist/stories/AlertGroup/AlertGroupWithComposable.stories.d.ts +1 -1
  167. package/dist/stories/Blurhash/BlurhashComposable.stories.d.ts +4 -0
  168. package/dist/stories/Combobox/Combobox.settings.d.ts +8 -0
  169. package/dist/stories/Icon/Icon.settings.d.ts +1 -0
  170. package/dist/stories/InputFile/InputFile.settings.d.ts +56 -0
  171. package/dist/stories/InputFile/InputFile.stories.d.ts +12 -0
  172. package/dist/stories/InputFile/InputFileDropArea.stories.d.ts +9 -0
  173. package/dist/stories/InputFile/InputFileIconPosition.stories.d.ts +8 -0
  174. package/dist/stories/InputFile/InputFileSlots.stories.d.ts +7 -0
  175. package/dist/stories/Tab/Tab.settings.d.ts +4 -37
  176. package/dist/types/alert.d.ts +13 -0
  177. package/dist/types/blurhash.d.ts +12 -0
  178. package/dist/types/floating-ui.d.ts +6 -0
  179. package/dist/types/generic.d.ts +4 -0
  180. package/dist/types/group.d.ts +37 -0
  181. package/dist/types/index.d.ts +7 -0
  182. package/dist/types/input-file.d.ts +16 -0
  183. package/dist/types/nav.d.ts +18 -0
  184. package/dist/utils/ObjectUtilities.d.ts +0 -1
  185. package/dist/workers/blurhash.d.ts +1 -0
  186. package/package.json +97 -80
  187. package/src/Volver.ts +31 -20
  188. package/src/assets/icons/detailed.json +1 -1
  189. package/src/assets/icons/normal.json +1 -1
  190. package/src/assets/icons/simple.json +1 -1
  191. package/src/components/VvAccordion/VvAccordion.vue +2 -2
  192. package/src/components/VvAction/VvAction.vue +5 -2
  193. package/src/components/VvAlert/index.ts +1 -3
  194. package/src/components/VvAlertGroup/index.ts +2 -1
  195. package/src/components/VvBreadcrumb/VvBreadcrumb.vue +20 -19
  196. package/src/components/VvBreadcrumb/index.ts +2 -8
  197. package/src/components/VvButton/VvButton.vue +6 -6
  198. package/src/components/VvButton/index.ts +2 -4
  199. package/src/components/VvCombobox/VvCombobox.vue +24 -16
  200. package/src/components/VvCombobox/index.ts +4 -0
  201. package/src/components/VvIcon/VvIcon.vue +2 -2
  202. package/src/components/VvIcon/index.ts +35 -48
  203. package/src/components/VvInputFile/VvInputFile.vue +365 -0
  204. package/src/components/VvInputFile/index.ts +116 -0
  205. package/src/components/VvInputText/VvInputClearAction.ts +10 -6
  206. package/src/components/VvInputText/VvInputPasswordAction.ts +13 -9
  207. package/src/components/VvInputText/VvInputText.vue +17 -18
  208. package/src/components/VvInputText/index.ts +7 -15
  209. package/src/components/VvNav/VvNav.vue +30 -50
  210. package/src/components/VvNav/VvNavItem.vue +18 -0
  211. package/src/components/VvNav/VvNavSeparator.vue +11 -0
  212. package/src/components/VvNav/index.ts +2 -15
  213. package/src/components/VvSelect/VvSelect.vue +5 -8
  214. package/src/components/VvTab/VvTab.vue +63 -35
  215. package/src/components/VvTab/index.ts +10 -4
  216. package/src/components/VvTextarea/VvTextarea.vue +6 -9
  217. package/src/components/index.ts +10 -0
  218. package/src/composables/index.ts +1 -0
  219. package/src/composables/useBlurhash.ts +76 -0
  220. package/src/composables/useComponentIcon.ts +15 -14
  221. package/src/composables/useUniqueId.ts +2 -2
  222. package/src/directives/index.ts +3 -6
  223. package/src/directives/v-tooltip.ts +19 -10
  224. package/src/index.ts +3 -1
  225. package/src/props/index.ts +115 -27
  226. package/src/resolvers/unplugin.ts +24 -14
  227. package/src/stories/AlertGroup/AlertGroupWithComposable.stories.ts +2 -2
  228. package/src/stories/Blurhash/BlurhashComposable.stories.ts +195 -0
  229. package/src/stories/Combobox/Combobox.settings.ts +8 -0
  230. package/src/stories/Icon/Icon.settings.ts +3 -3
  231. package/src/stories/InputFile/InputFile.settings.ts +36 -0
  232. package/src/stories/InputFile/InputFile.stories.ts +89 -0
  233. package/src/stories/InputFile/InputFileDropArea.stories.ts +56 -0
  234. package/src/stories/InputFile/InputFileIconPosition.stories.ts +43 -0
  235. package/src/stories/InputFile/InputFileSlots.stories.ts +33 -0
  236. package/src/stories/Nav/Nav.settings.ts +3 -4
  237. package/src/stories/Nav/Nav.test.ts +4 -15
  238. package/src/stories/Tab/Tab.settings.ts +9 -9
  239. package/src/stories/Tab/Tab.stories.ts +2 -2
  240. package/src/stories/Tab/Tab.test.ts +6 -14
  241. package/src/stories/argTypes.ts +1 -1
  242. package/src/types/blurhash.ts +21 -0
  243. package/src/types/generic.ts +6 -0
  244. package/src/types/index.ts +7 -0
  245. package/src/types/input-file.ts +18 -0
  246. package/src/types/nav.ts +20 -0
  247. package/src/utils/ObjectUtilities.ts +0 -11
  248. package/src/workers/blurhash.ts +9 -0
  249. package/dist/components/VvNav/VvNavItemTitle.vue.d.ts +0 -6
  250. package/dist/components/VvNav/VvNavSeparator.d.ts +0 -2
  251. package/dist/components/VvNavItemTitle/VvNavItemTitle.es.js +0 -19
  252. package/dist/components/VvNavItemTitle/VvNavItemTitle.umd.js +0 -1
  253. package/src/components/VvNav/VvNavItemTitle.vue +0 -11
  254. package/src/components/VvNav/VvNavSeparator.ts +0 -8
  255. package/src/types/generic.d.ts +0 -6
  256. /package/src/types/{alert.d.ts → alert.ts} +0 -0
  257. /package/src/types/{floating-ui.d.ts → floating-ui.ts} +0 -0
  258. /package/src/types/{group.d.ts → group.ts} +0 -0
@@ -1,26 +1,59 @@
1
1
  declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
2
2
  indeterminate: BooleanConstructor;
3
- uncheckedValue: (StringConstructor | BooleanConstructor | NumberConstructor)[];
3
+ uncheckedValue: (BooleanConstructor | StringConstructor | NumberConstructor)[];
4
4
  switch: BooleanConstructor;
5
- modifiers: globalThis.PropType<string | string[]>;
6
- value: (StringConstructor | BooleanConstructor | NumberConstructor)[];
7
- modelValue: (ObjectConstructor | StringConstructor | BooleanConstructor | NumberConstructor)[];
8
- loading: BooleanConstructor;
5
+ modifiers: {
6
+ type: globalThis.PropType<string | string[]>;
7
+ default: undefined;
8
+ };
9
+ value: {
10
+ type: (BooleanConstructor | StringConstructor | NumberConstructor)[];
11
+ default: undefined;
12
+ };
13
+ modelValue: {
14
+ type: (ObjectConstructor | BooleanConstructor | StringConstructor | NumberConstructor)[];
15
+ default: undefined;
16
+ };
17
+ loading: {
18
+ type: BooleanConstructor;
19
+ default: boolean;
20
+ };
9
21
  loadingLabel: {
10
22
  type: StringConstructor;
11
23
  default: string;
12
24
  };
13
- label: (StringConstructor | NumberConstructor)[];
14
- readonly: BooleanConstructor;
15
- disabled: BooleanConstructor;
25
+ label: {
26
+ type: (StringConstructor | NumberConstructor)[];
27
+ default: undefined;
28
+ };
29
+ readonly: {
30
+ type: BooleanConstructor;
31
+ default: boolean;
32
+ };
33
+ disabled: {
34
+ type: BooleanConstructor;
35
+ default: boolean;
36
+ };
16
37
  hintLabel: {
17
38
  type: StringConstructor;
18
39
  default: string;
19
40
  };
20
- invalid: BooleanConstructor;
21
- invalidLabel: (ArrayConstructor | StringConstructor)[];
22
- valid: BooleanConstructor;
23
- validLabel: (ArrayConstructor | StringConstructor)[];
41
+ invalid: {
42
+ type: BooleanConstructor;
43
+ default: boolean;
44
+ };
45
+ invalidLabel: {
46
+ type: (ArrayConstructor | StringConstructor)[];
47
+ default: undefined;
48
+ };
49
+ valid: {
50
+ type: BooleanConstructor;
51
+ default: boolean;
52
+ };
53
+ validLabel: {
54
+ type: (ArrayConstructor | StringConstructor)[];
55
+ default: undefined;
56
+ };
24
57
  tabindex: {
25
58
  type: (StringConstructor | NumberConstructor)[];
26
59
  default: number;
@@ -30,29 +63,64 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
30
63
  required: boolean;
31
64
  };
32
65
  id: (StringConstructor | NumberConstructor)[];
33
- }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, string[], string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
66
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
67
+ [x: string]: (...args: any[]) => void;
68
+ }, string, import("vue").PublicProps, Readonly<globalThis.ExtractPropTypes<{
34
69
  indeterminate: BooleanConstructor;
35
- uncheckedValue: (StringConstructor | BooleanConstructor | NumberConstructor)[];
70
+ uncheckedValue: (BooleanConstructor | StringConstructor | NumberConstructor)[];
36
71
  switch: BooleanConstructor;
37
- modifiers: globalThis.PropType<string | string[]>;
38
- value: (StringConstructor | BooleanConstructor | NumberConstructor)[];
39
- modelValue: (ObjectConstructor | StringConstructor | BooleanConstructor | NumberConstructor)[];
40
- loading: BooleanConstructor;
72
+ modifiers: {
73
+ type: globalThis.PropType<string | string[]>;
74
+ default: undefined;
75
+ };
76
+ value: {
77
+ type: (BooleanConstructor | StringConstructor | NumberConstructor)[];
78
+ default: undefined;
79
+ };
80
+ modelValue: {
81
+ type: (ObjectConstructor | BooleanConstructor | StringConstructor | NumberConstructor)[];
82
+ default: undefined;
83
+ };
84
+ loading: {
85
+ type: BooleanConstructor;
86
+ default: boolean;
87
+ };
41
88
  loadingLabel: {
42
89
  type: StringConstructor;
43
90
  default: string;
44
91
  };
45
- label: (StringConstructor | NumberConstructor)[];
46
- readonly: BooleanConstructor;
47
- disabled: BooleanConstructor;
92
+ label: {
93
+ type: (StringConstructor | NumberConstructor)[];
94
+ default: undefined;
95
+ };
96
+ readonly: {
97
+ type: BooleanConstructor;
98
+ default: boolean;
99
+ };
100
+ disabled: {
101
+ type: BooleanConstructor;
102
+ default: boolean;
103
+ };
48
104
  hintLabel: {
49
105
  type: StringConstructor;
50
106
  default: string;
51
107
  };
52
- invalid: BooleanConstructor;
53
- invalidLabel: (ArrayConstructor | StringConstructor)[];
54
- valid: BooleanConstructor;
55
- validLabel: (ArrayConstructor | StringConstructor)[];
108
+ invalid: {
109
+ type: BooleanConstructor;
110
+ default: boolean;
111
+ };
112
+ invalidLabel: {
113
+ type: (ArrayConstructor | StringConstructor)[];
114
+ default: undefined;
115
+ };
116
+ valid: {
117
+ type: BooleanConstructor;
118
+ default: boolean;
119
+ };
120
+ validLabel: {
121
+ type: (ArrayConstructor | StringConstructor)[];
122
+ default: undefined;
123
+ };
56
124
  tabindex: {
57
125
  type: (StringConstructor | NumberConstructor)[];
58
126
  default: number;
@@ -62,19 +130,23 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
62
130
  required: boolean;
63
131
  };
64
132
  id: (StringConstructor | NumberConstructor)[];
65
- }>> & {
66
- [x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
67
- }, {
133
+ }>>, {
134
+ readonly: boolean;
68
135
  disabled: boolean;
136
+ valid: boolean;
137
+ invalid: boolean;
138
+ modelValue: string | number | boolean | Record<string, any>;
139
+ modifiers: string | string[];
140
+ label: string | number;
141
+ value: string | number | boolean;
69
142
  switch: boolean;
70
- tabindex: string | number;
71
143
  loading: boolean;
72
144
  loadingLabel: string;
73
145
  indeterminate: boolean;
74
- readonly: boolean;
75
146
  hintLabel: string;
76
- invalid: boolean;
77
- valid: boolean;
147
+ invalidLabel: string | unknown[];
148
+ validLabel: string | unknown[];
149
+ tabindex: string | number;
78
150
  }, {}>, {
79
151
  default?(_: {
80
152
  value: any;
@@ -8,30 +8,63 @@ export declare const VvCheckboxProps: {
8
8
  /**
9
9
  * Value associated with the unchecked state
10
10
  */
11
- uncheckedValue: (StringConstructor | BooleanConstructor | NumberConstructor)[];
11
+ uncheckedValue: (BooleanConstructor | StringConstructor | NumberConstructor)[];
12
12
  /**
13
13
  * If true, the input will be displayed as a switch
14
14
  */
15
15
  switch: BooleanConstructor;
16
- modifiers: globalThis.PropType<string | string[]>;
17
- value: (StringConstructor | BooleanConstructor | NumberConstructor)[];
18
- modelValue: (ObjectConstructor | StringConstructor | BooleanConstructor | NumberConstructor)[];
19
- loading: BooleanConstructor;
16
+ modifiers: {
17
+ type: globalThis.PropType<string | string[]>;
18
+ default: undefined;
19
+ };
20
+ value: {
21
+ type: (BooleanConstructor | StringConstructor | NumberConstructor)[];
22
+ default: undefined;
23
+ };
24
+ modelValue: {
25
+ type: (ObjectConstructor | BooleanConstructor | StringConstructor | NumberConstructor)[];
26
+ default: undefined;
27
+ };
28
+ loading: {
29
+ type: BooleanConstructor;
30
+ default: boolean;
31
+ };
20
32
  loadingLabel: {
21
33
  type: StringConstructor;
22
34
  default: string;
23
35
  };
24
- label: (StringConstructor | NumberConstructor)[];
25
- readonly: BooleanConstructor;
26
- disabled: BooleanConstructor;
36
+ label: {
37
+ type: (StringConstructor | NumberConstructor)[];
38
+ default: undefined;
39
+ };
40
+ readonly: {
41
+ type: BooleanConstructor;
42
+ default: boolean;
43
+ };
44
+ disabled: {
45
+ type: BooleanConstructor;
46
+ default: boolean;
47
+ };
27
48
  hintLabel: {
28
49
  type: StringConstructor;
29
50
  default: string;
30
51
  };
31
- invalid: BooleanConstructor;
32
- invalidLabel: (ArrayConstructor | StringConstructor)[];
33
- valid: BooleanConstructor;
34
- validLabel: (ArrayConstructor | StringConstructor)[];
52
+ invalid: {
53
+ type: BooleanConstructor;
54
+ default: boolean;
55
+ };
56
+ invalidLabel: {
57
+ type: (ArrayConstructor | StringConstructor)[];
58
+ default: undefined;
59
+ };
60
+ valid: {
61
+ type: BooleanConstructor;
62
+ default: boolean;
63
+ };
64
+ validLabel: {
65
+ type: (ArrayConstructor | StringConstructor)[];
66
+ default: undefined;
67
+ };
35
68
  tabindex: {
36
69
  type: (StringConstructor | NumberConstructor)[];
37
70
  default: number;
@@ -1,5 +1,5 @@
1
- import { unref, computed, isRef, defineComponent, h, inject, toRef, toRefs, useSlots, ref, watchEffect, watch, onMounted, openBlock, createElementBlock, normalizeClass, withDirectives, createElementVNode, vModelCheckbox, renderSlot, createTextVNode, toDisplayString, createVNode, createSlots, withCtx, normalizeProps, guardReactiveProps, provide, createCommentVNode, Fragment, renderList, createBlock, mergeProps } from "vue";
2
- import { nanoid } from "nanoid";
1
+ import { unref, computed, isRef, defineComponent, h, inject, toRef, toRefs, useSlots, ref, watchEffect, watch, onMounted, openBlock, createElementBlock, normalizeClass, withDirectives, createElementVNode, vModelCheckbox, createCommentVNode, renderSlot, createTextVNode, toDisplayString, createVNode, createSlots, withCtx, normalizeProps, guardReactiveProps, provide, Fragment, renderList, createBlock, mergeProps } from "vue";
2
+ import { uid } from "uid";
3
3
  import { useVModel } from "@vueuse/core";
4
4
  import { get } from "ts-dot-prop";
5
5
  var Strategy = /* @__PURE__ */ ((Strategy2) => {
@@ -36,6 +36,13 @@ var ButtonType = /* @__PURE__ */ ((ButtonType2) => {
36
36
  ButtonType2["reset"] = "reset";
37
37
  return ButtonType2;
38
38
  })(ButtonType || {});
39
+ var ActionTag = /* @__PURE__ */ ((ActionTag2) => {
40
+ ActionTag2["nuxtLink"] = "nuxt-link";
41
+ ActionTag2["routerLink"] = "router-link";
42
+ ActionTag2["a"] = "a";
43
+ ActionTag2["button"] = "button";
44
+ return ActionTag2;
45
+ })(ActionTag || {});
39
46
  var AnchorTarget = /* @__PURE__ */ ((AnchorTarget2) => {
40
47
  AnchorTarget2["_blank"] = "_blank";
41
48
  AnchorTarget2["_self"] = "_self";
@@ -265,6 +272,7 @@ const LinkProps = {
265
272
  */
266
273
  target: {
267
274
  type: String,
275
+ default: void 0,
268
276
  validator: (value) => Object.values(AnchorTarget).includes(value)
269
277
  },
270
278
  /**
@@ -279,27 +287,33 @@ const ValidProps = {
279
287
  /**
280
288
  * Valid status
281
289
  */
282
- valid: Boolean,
290
+ valid: { type: Boolean, default: false },
283
291
  /**
284
292
  * Valid label
285
293
  */
286
- validLabel: [String, Array]
294
+ validLabel: { type: [String, Array], default: void 0 }
287
295
  };
288
296
  const InvalidProps = {
289
297
  /**
290
298
  * Invalid status
291
299
  */
292
- invalid: Boolean,
300
+ invalid: {
301
+ type: Boolean,
302
+ default: false
303
+ },
293
304
  /**
294
305
  * Invalid label
295
306
  */
296
- invalidLabel: [String, Array]
307
+ invalidLabel: { type: [String, Array], default: void 0 }
297
308
  };
298
309
  const LoadingProps = {
299
310
  /**
300
311
  * Loading status
301
312
  */
302
- loading: Boolean,
313
+ loading: {
314
+ type: Boolean,
315
+ default: false
316
+ },
303
317
  /**
304
318
  * Loading label
305
319
  */
@@ -312,37 +326,64 @@ const DisabledProps = {
312
326
  /**
313
327
  * Whether the form control is disabled
314
328
  */
315
- disabled: Boolean
329
+ disabled: {
330
+ type: Boolean,
331
+ default: false
332
+ }
316
333
  };
317
334
  const ActiveProps = {
318
335
  /**
319
336
  * Whether the item is active
320
337
  */
321
- active: Boolean
338
+ active: {
339
+ type: Boolean,
340
+ default: false
341
+ }
342
+ };
343
+ const CurrentProps = {
344
+ /**
345
+ * Whether the item is current
346
+ */
347
+ current: {
348
+ type: Boolean,
349
+ default: false
350
+ }
322
351
  };
323
352
  const PressedProps = {
324
353
  /**
325
354
  * Whether the item is pressed
326
355
  */
327
- pressed: Boolean
356
+ pressed: {
357
+ type: Boolean,
358
+ default: false
359
+ }
328
360
  };
329
361
  const LabelProps = {
330
362
  /**
331
363
  * The item label
332
364
  */
333
- label: [String, Number]
365
+ label: {
366
+ type: [String, Number],
367
+ default: void 0
368
+ }
334
369
  };
335
370
  const ReadonlyProps = {
336
371
  /**
337
372
  * The value is not editable
338
373
  */
339
- readonly: Boolean
374
+ readonly: {
375
+ type: Boolean,
376
+ default: false
377
+ }
340
378
  };
341
379
  const ModifiersProps = {
342
380
  /**
343
381
  * Component BEM modifiers
344
382
  */
345
- modifiers: [String, Array]
383
+ modifiers: {
384
+ type: [String, Array],
385
+ default: void 0
386
+ }
346
387
  };
347
388
  const HintProps = {
348
389
  hintLabel: { type: String, default: "" }
@@ -373,7 +414,10 @@ const OptionsProps = {
373
414
  * VvIcon name or props
374
415
  * @see VVIcon
375
416
  */
376
- icon: { type: [String, Object] },
417
+ icon: {
418
+ type: [String, Object],
419
+ default: void 0
420
+ },
377
421
  /**
378
422
  * VvIcon position
379
423
  */
@@ -418,7 +462,8 @@ const IdProps = {
418
462
  * Dropdown show / hide transition name
419
463
  */
420
464
  transitionName: {
421
- type: String
465
+ type: String,
466
+ default: void 0
422
467
  },
423
468
  /**
424
469
  * Offset of the dropdown from the trigger
@@ -486,7 +531,8 @@ const IdProps = {
486
531
  * Set dropdown width to the same as the trigger
487
532
  */
488
533
  triggerWidth: {
489
- type: Boolean
534
+ type: Boolean,
535
+ default: false
490
536
  }
491
537
  });
492
538
  const IdNameProps = {
@@ -513,11 +559,17 @@ const CheckboxRadioProps = {
513
559
  * Input value
514
560
  * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#value
515
561
  */
516
- value: [String, Number, Boolean],
562
+ value: {
563
+ type: [String, Number, Boolean],
564
+ default: void 0
565
+ },
517
566
  /**
518
567
  * Input value
519
568
  */
520
- modelValue: [Object, Number, Boolean, String]
569
+ modelValue: {
570
+ type: [Object, Number, Boolean, String],
571
+ default: void 0
572
+ }
521
573
  };
522
574
  const CheckboxRadioGroupProps = {
523
575
  ...ValidProps,
@@ -532,7 +584,10 @@ const CheckboxRadioGroupProps = {
532
584
  /**
533
585
  * Input value
534
586
  */
535
- modelValue: [String, Array, Boolean, Number, Symbol],
587
+ modelValue: {
588
+ type: [String, Array, Boolean, Number, Symbol],
589
+ default: void 0
590
+ },
536
591
  /**
537
592
  * Input name
538
593
  */
@@ -540,13 +595,17 @@ const CheckboxRadioGroupProps = {
540
595
  /**
541
596
  * If true, the group will be displayed in a vertical column
542
597
  */
543
- vertical: Boolean
598
+ vertical: {
599
+ type: Boolean,
600
+ default: false
601
+ }
544
602
  };
545
603
  ({
546
604
  ...DisabledProps,
547
605
  ...LabelProps,
548
606
  ...PressedProps,
549
607
  ...ActiveProps,
608
+ ...CurrentProps,
550
609
  ...LinkProps,
551
610
  /**
552
611
  * Button type
@@ -562,6 +621,13 @@ const CheckboxRadioGroupProps = {
562
621
  ariaLabel: {
563
622
  type: String,
564
623
  default: void 0
624
+ },
625
+ /**
626
+ * Default tag for the action
627
+ */
628
+ defaultTag: {
629
+ type: String,
630
+ default: ActionTag.button
565
631
  }
566
632
  });
567
633
  function useInjectedGroupState(groupKey) {
@@ -702,7 +768,7 @@ function useDefaults(componentName, propsDefinition, props) {
702
768
  }, {});
703
769
  });
704
770
  }
705
- const useUniqueId = (id) => computed(() => String((id == null ? void 0 : id.value) || nanoid()));
771
+ const useUniqueId = (id) => computed(() => String((id == null ? void 0 : id.value) || uid()));
706
772
  function useModifiers(prefix, modifiers, others) {
707
773
  return computed(() => {
708
774
  const toReturn = {
@@ -735,8 +801,9 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
735
801
  ...__default__$1,
736
802
  props: VvCheckboxProps,
737
803
  emits: VvCheckboxEvents,
738
- setup(__props, { emit }) {
804
+ setup(__props, { emit: __emit }) {
739
805
  const props = __props;
806
+ const emit = __emit;
740
807
  const slots = useSlots();
741
808
  const propsDefaults = useDefaults(
742
809
  "VvCheckbox",
@@ -878,13 +945,21 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
878
945
  }, null, 8, _hoisted_2$1), [
879
946
  [vModelCheckbox, unref(localModelValue)]
880
947
  ]),
948
+ createCommentVNode(" @slot Use this slot for check label "),
881
949
  renderSlot(_ctx.$slots, "default", { value: unref(modelValue) }, () => [
882
- createTextVNode(toDisplayString(_ctx.label), 1)
950
+ createTextVNode(
951
+ toDisplayString(_ctx.label),
952
+ 1
953
+ /* TEXT */
954
+ )
883
955
  ]),
884
956
  createVNode(unref(HintSlot), {
885
957
  id: unref(hasHintId),
886
958
  class: "vv-checkbox__hint"
887
- }, createSlots({ _: 2 }, [
959
+ }, createSlots({
960
+ _: 2
961
+ /* DYNAMIC */
962
+ }, [
888
963
  _ctx.$slots.hint ? {
889
964
  name: "hint",
890
965
  fn: withCtx(() => [
@@ -971,8 +1046,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
971
1046
  ...__default__,
972
1047
  props: VvCheckboxGroupProps,
973
1048
  emits: VvCheckboxGroupEvents,
974
- setup(__props, { emit }) {
1049
+ setup(__props, { emit: __emit }) {
975
1050
  const props = __props;
1051
+ const emit = __emit;
976
1052
  const slots = useSlots();
977
1053
  const propsDefaults = useDefaults(
978
1054
  "VvCheckboxGroup",
@@ -1011,49 +1087,86 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
1011
1087
  };
1012
1088
  const { HintSlot, hintSlotScope } = HintSlotFactory(propsDefaults, slots);
1013
1089
  return (_ctx, _cache) => {
1014
- return openBlock(), createElementBlock("fieldset", {
1015
- class: normalizeClass(unref(bemCssClasses))
1016
- }, [
1017
- _ctx.label ? (openBlock(), createElementBlock("legend", {
1018
- key: 0,
1019
- textContent: toDisplayString(_ctx.label)
1020
- }, null, 8, _hoisted_1)) : createCommentVNode("", true),
1021
- createElementVNode("div", _hoisted_2, [
1022
- _ctx.options.length > 0 ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(_ctx.options, (option, index) => {
1023
- return openBlock(), createBlock(_sfc_main$1, mergeProps({ key: index }, getOptionProps(option, index)), null, 16);
1024
- }), 128)) : renderSlot(_ctx.$slots, "default", { key: 1 })
1025
- ]),
1026
- createVNode(unref(HintSlot), { class: "vv-checkbox-group__hint" }, createSlots({ _: 2 }, [
1027
- _ctx.$slots.hint ? {
1028
- name: "hint",
1029
- fn: withCtx(() => [
1030
- renderSlot(_ctx.$slots, "hint", normalizeProps(guardReactiveProps(unref(hintSlotScope))))
1031
- ]),
1032
- key: "0"
1033
- } : void 0,
1034
- _ctx.$slots.loading ? {
1035
- name: "loading",
1036
- fn: withCtx(() => [
1037
- renderSlot(_ctx.$slots, "loading", normalizeProps(guardReactiveProps(unref(hintSlotScope))))
1038
- ]),
1039
- key: "1"
1040
- } : void 0,
1041
- _ctx.$slots.valid ? {
1042
- name: "valid",
1043
- fn: withCtx(() => [
1044
- renderSlot(_ctx.$slots, "valid", normalizeProps(guardReactiveProps(unref(hintSlotScope))))
1045
- ]),
1046
- key: "2"
1047
- } : void 0,
1048
- _ctx.$slots.invalid ? {
1049
- name: "invalid",
1050
- fn: withCtx(() => [
1051
- renderSlot(_ctx.$slots, "invalid", normalizeProps(guardReactiveProps(unref(hintSlotScope))))
1090
+ return openBlock(), createElementBlock(
1091
+ "fieldset",
1092
+ {
1093
+ class: normalizeClass(unref(bemCssClasses))
1094
+ },
1095
+ [
1096
+ _ctx.label ? (openBlock(), createElementBlock("legend", {
1097
+ key: 0,
1098
+ textContent: toDisplayString(_ctx.label)
1099
+ }, null, 8, _hoisted_1)) : createCommentVNode("v-if", true),
1100
+ createElementVNode("div", _hoisted_2, [
1101
+ createCommentVNode(" #region options set up "),
1102
+ _ctx.options.length > 0 ? (openBlock(true), createElementBlock(
1103
+ Fragment,
1104
+ { key: 0 },
1105
+ renderList(_ctx.options, (option, index) => {
1106
+ return openBlock(), createBlock(
1107
+ _sfc_main$1,
1108
+ mergeProps({ key: index }, getOptionProps(option, index)),
1109
+ null,
1110
+ 16
1111
+ /* FULL_PROPS */
1112
+ );
1113
+ }),
1114
+ 128
1115
+ /* KEYED_FRAGMENT */
1116
+ )) : (openBlock(), createElementBlock(
1117
+ Fragment,
1118
+ { key: 1 },
1119
+ [
1120
+ createCommentVNode(" #endregion "),
1121
+ renderSlot(_ctx.$slots, "default")
1122
+ ],
1123
+ 2112
1124
+ /* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
1125
+ ))
1126
+ ]),
1127
+ createVNode(
1128
+ unref(HintSlot),
1129
+ { class: "vv-checkbox-group__hint" },
1130
+ createSlots({
1131
+ _: 2
1132
+ /* DYNAMIC */
1133
+ }, [
1134
+ _ctx.$slots.hint ? {
1135
+ name: "hint",
1136
+ fn: withCtx(() => [
1137
+ renderSlot(_ctx.$slots, "hint", normalizeProps(guardReactiveProps(unref(hintSlotScope))))
1138
+ ]),
1139
+ key: "0"
1140
+ } : void 0,
1141
+ _ctx.$slots.loading ? {
1142
+ name: "loading",
1143
+ fn: withCtx(() => [
1144
+ renderSlot(_ctx.$slots, "loading", normalizeProps(guardReactiveProps(unref(hintSlotScope))))
1145
+ ]),
1146
+ key: "1"
1147
+ } : void 0,
1148
+ _ctx.$slots.valid ? {
1149
+ name: "valid",
1150
+ fn: withCtx(() => [
1151
+ renderSlot(_ctx.$slots, "valid", normalizeProps(guardReactiveProps(unref(hintSlotScope))))
1152
+ ]),
1153
+ key: "2"
1154
+ } : void 0,
1155
+ _ctx.$slots.invalid ? {
1156
+ name: "invalid",
1157
+ fn: withCtx(() => [
1158
+ renderSlot(_ctx.$slots, "invalid", normalizeProps(guardReactiveProps(unref(hintSlotScope))))
1159
+ ]),
1160
+ key: "3"
1161
+ } : void 0
1052
1162
  ]),
1053
- key: "3"
1054
- } : void 0
1055
- ]), 1024)
1056
- ], 2);
1163
+ 1024
1164
+ /* DYNAMIC_SLOTS */
1165
+ )
1166
+ ],
1167
+ 2
1168
+ /* CLASS */
1169
+ );
1057
1170
  };
1058
1171
  }
1059
1172
  });