@volverjs/ui-vue 0.0.13 → 0.0.15

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 (343) hide show
  1. package/dist/Volver.d.ts +121 -0
  2. package/dist/components/VvAccordion/VvAccordion.vue.d.ts +68 -0
  3. package/dist/components/VvAccordion/index.d.ts +47 -0
  4. package/dist/components/VvAccordionGroup/VvAccordionGroup.vue.d.ts +98 -0
  5. package/dist/components/VvAccordionGroup/index.d.ts +54 -0
  6. package/dist/components/VvAction/VvAction.es.js +26 -26
  7. package/dist/components/VvAction/VvAction.umd.js +1 -1
  8. package/dist/components/VvAction/VvAction.vue.d.ts +110 -0
  9. package/dist/components/VvAction/index.d.ts +2 -0
  10. package/dist/components/VvAlert/VvAlert.es.js +43 -44
  11. package/dist/components/VvAlert/VvAlert.umd.js +1 -1
  12. package/dist/components/VvAlert/VvAlert.vue.d.ts +124 -0
  13. package/dist/components/VvAlert/index.d.ts +104 -0
  14. package/dist/components/VvAlertGroup/VvAlertGroup.es.js +54 -55
  15. package/dist/components/VvAlertGroup/VvAlertGroup.umd.js +1 -1
  16. package/dist/components/VvAlertGroup/VvAlertGroup.vue.d.ts +97 -0
  17. package/dist/components/VvAlertGroup/index.d.ts +47 -0
  18. package/dist/components/VvAvatar/VvAvatar.vue.d.ts +24 -0
  19. package/dist/components/VvAvatar/index.d.ts +10 -0
  20. package/dist/components/VvAvatarGroup/VvAvatarGroup.vue.d.ts +50 -0
  21. package/dist/components/VvAvatarGroup/index.d.ts +28 -0
  22. package/dist/components/VvBadge/VvBadge.vue.d.ts +24 -0
  23. package/dist/components/VvBadge/index.d.ts +7 -0
  24. package/dist/components/VvBreadcrumb/VvBreadcrumb.es.js +34 -34
  25. package/dist/components/VvBreadcrumb/VvBreadcrumb.umd.js +1 -1
  26. package/dist/components/VvBreadcrumb/VvBreadcrumb.vue.d.ts +39 -0
  27. package/dist/components/VvBreadcrumb/index.d.ts +8 -0
  28. package/dist/components/VvButton/VvButton.es.js +186 -187
  29. package/dist/components/VvButton/VvButton.umd.js +1 -1
  30. package/dist/components/VvButton/VvButton.vue.d.ts +221 -0
  31. package/dist/components/VvButton/index.d.ts +131 -0
  32. package/dist/components/VvButtonGroup/VvButtonGroup.vue.d.ts +84 -0
  33. package/dist/components/VvButtonGroup/index.d.ts +37 -0
  34. package/dist/components/VvCard/VvCard.vue.d.ts +30 -0
  35. package/dist/components/VvCard/index.d.ts +7 -0
  36. package/dist/components/VvCheckbox/VvCheckbox.es.js +215 -217
  37. package/dist/components/VvCheckbox/VvCheckbox.umd.js +1 -1
  38. package/dist/components/VvCheckbox/VvCheckbox.vue.d.ts +187 -0
  39. package/dist/components/VvCheckbox/index.d.ts +94 -0
  40. package/dist/components/VvCheckboxGroup/VvCheckboxGroup.es.js +235 -237
  41. package/dist/components/VvCheckboxGroup/VvCheckboxGroup.umd.js +1 -1
  42. package/dist/components/VvCheckboxGroup/VvCheckboxGroup.vue.d.ts +212 -0
  43. package/dist/components/VvCheckboxGroup/index.d.ts +2 -0
  44. package/dist/components/VvCombobox/VvCombobox.es.js +810 -813
  45. package/dist/components/VvCombobox/VvCombobox.umd.js +1 -1
  46. package/dist/components/VvCombobox/VvCombobox.vue.d.ts +346 -0
  47. package/dist/components/VvCombobox/index.d.ts +694 -0
  48. package/dist/components/VvDialog/VvDialog.vue.d.ts +73 -0
  49. package/dist/components/VvDialog/index.d.ts +45 -0
  50. package/dist/components/VvDropdown/VvDropdown.es.js +4 -4
  51. package/dist/components/VvDropdown/VvDropdown.umd.js +1 -1
  52. package/dist/components/VvDropdown/VvDropdown.vue.d.ts +258 -0
  53. package/dist/components/VvDropdown/VvDropdownAction.vue.d.ts +118 -0
  54. package/dist/components/VvDropdown/VvDropdownItem.vue.d.ts +22 -0
  55. package/dist/components/VvDropdown/VvDropdownOptgroup.vue.d.ts +22 -0
  56. package/dist/components/VvDropdown/VvDropdownOption.vue.d.ts +82 -0
  57. package/dist/components/VvDropdown/index.d.ts +120 -0
  58. package/dist/components/VvDropdownAction/VvDropdownAction.es.js +50 -50
  59. package/dist/components/VvDropdownAction/VvDropdownAction.umd.js +1 -1
  60. package/dist/components/VvIcon/VvIcon.es.js +30 -31
  61. package/dist/components/VvIcon/VvIcon.umd.js +1 -1
  62. package/dist/components/VvIcon/VvIcon.vue.d.ts +6 -0
  63. package/dist/components/VvIcon/index.d.ts +86 -0
  64. package/dist/components/VvInputFile/VvInputFile.es.js +415 -418
  65. package/dist/components/VvInputFile/VvInputFile.umd.js +1 -1
  66. package/dist/components/VvInputFile/VvInputFile.vue.d.ts +361 -0
  67. package/dist/components/VvInputFile/index.d.ts +204 -0
  68. package/dist/components/VvInputText/VvInputText.es.js +595 -588
  69. package/dist/components/VvInputText/VvInputText.umd.js +1 -1
  70. package/dist/components/VvInputText/VvInputText.vue.d.ts +524 -0
  71. package/dist/components/VvInputText/VvInputTextActions.d.ts +4 -0
  72. package/dist/components/VvInputText/index.d.ts +313 -0
  73. package/dist/components/VvNav/VvNav.es.js +63 -63
  74. package/dist/components/VvNav/VvNav.umd.js +1 -1
  75. package/dist/components/VvNav/VvNav.vue.d.ts +48 -0
  76. package/dist/components/VvNav/VvNavItem.vue.d.ts +14 -0
  77. package/dist/components/VvNav/VvNavSeparator.vue.d.ts +3 -0
  78. package/dist/components/VvNav/index.d.ts +11 -0
  79. package/dist/components/VvNavItem/VvNavItem.es.js +41 -41
  80. package/dist/components/VvNavItem/VvNavItem.umd.js +1 -1
  81. package/dist/components/VvProgress/VvProgress.vue.d.ts +38 -0
  82. package/dist/components/VvProgress/index.d.ts +33 -0
  83. package/dist/components/VvRadio/VvRadio.es.js +222 -224
  84. package/dist/components/VvRadio/VvRadio.umd.js +1 -1
  85. package/dist/components/VvRadio/VvRadio.vue.d.ts +179 -0
  86. package/dist/components/VvRadio/index.d.ts +80 -0
  87. package/dist/components/VvRadioGroup/VvRadioGroup.es.js +234 -236
  88. package/dist/components/VvRadioGroup/VvRadioGroup.umd.js +1 -1
  89. package/dist/components/VvRadioGroup/VvRadioGroup.vue.d.ts +212 -0
  90. package/dist/components/VvRadioGroup/index.d.ts +2 -0
  91. package/dist/components/VvSelect/VvSelect.es.js +200 -203
  92. package/dist/components/VvSelect/VvSelect.umd.js +1 -1
  93. package/dist/components/VvSelect/VvSelect.vue.d.ts +183 -0
  94. package/dist/components/VvSelect/index.d.ts +298 -0
  95. package/dist/components/VvTab/VvTab.es.js +35 -35
  96. package/dist/components/VvTab/VvTab.umd.js +1 -1
  97. package/dist/components/VvTab/VvTab.vue.d.ts +64 -0
  98. package/dist/components/VvTab/index.d.ts +19 -0
  99. package/dist/components/VvTextarea/VvTextarea.es.js +341 -344
  100. package/dist/components/VvTextarea/VvTextarea.umd.js +1 -1
  101. package/dist/components/VvTextarea/VvTextarea.vue.d.ts +384 -0
  102. package/dist/components/VvTextarea/index.d.ts +190 -0
  103. package/dist/components/VvTooltip/VvTooltip.vue.d.ts +37 -0
  104. package/dist/components/VvTooltip/index.d.ts +19 -0
  105. package/dist/components/VvVirtualScroll/VvVirtualScroll.vue.d.ts +51 -0
  106. package/dist/components/common/HintSlot.d.ts +57 -0
  107. package/dist/components/common/VvInputClearAction.d.ts +52 -0
  108. package/dist/components/common/VvInputPasswordAction.d.ts +71 -0
  109. package/dist/components/common/VvInputStepAction.d.ts +50 -0
  110. package/dist/components/index.d.ts +34 -0
  111. package/dist/components/index.es.js +1965 -1958
  112. package/dist/components/index.umd.js +1 -1
  113. package/dist/composables/alert/useAlerInject.d.ts +4 -0
  114. package/dist/composables/alert/useAlert.d.ts +92 -0
  115. package/dist/composables/alert/useAlertProvide.d.ts +10 -0
  116. package/dist/composables/dropdown/useDropdownContextmenu.d.ts +18 -0
  117. package/dist/composables/dropdown/useDropdownInject.d.ts +12 -0
  118. package/dist/composables/dropdown/useDropdownProvide.d.ts +40 -0
  119. package/dist/composables/dropdown/useDropdownVirtualElement.d.ts +17 -0
  120. package/dist/composables/group/useGroupStateInject.d.ts +9 -0
  121. package/dist/composables/group/useGroupStateProvide.d.ts +6 -0
  122. package/dist/composables/index.d.ts +5 -0
  123. package/dist/composables/index.es.js +34 -34
  124. package/dist/composables/index.umd.js +2 -2
  125. package/dist/composables/useBlurhash.d.ts +7 -0
  126. package/dist/composables/useComponentFocus.d.ts +4 -0
  127. package/dist/composables/useComponentIcon.d.ts +11 -0
  128. package/dist/composables/useDebouncedInput.d.ts +5 -0
  129. package/dist/composables/useDefaults.d.ts +2 -0
  130. package/dist/composables/useModifiers.d.ts +2 -0
  131. package/dist/composables/useOptions.d.ts +8 -0
  132. package/dist/composables/usePersistence.d.ts +3 -0
  133. package/dist/composables/useTextCount.d.ts +10 -0
  134. package/dist/composables/useUniqueId.d.ts +2 -0
  135. package/dist/composables/useVirtualScroll.d.ts +35 -0
  136. package/dist/composables/useVolver.d.ts +4 -0
  137. package/dist/constants.d.ts +104 -0
  138. package/dist/directives/index.d.ts +3 -0
  139. package/dist/directives/index.es.js +22 -22
  140. package/dist/directives/index.umd.js +1 -1
  141. package/dist/directives/v-contextmenu.d.ts +3 -0
  142. package/dist/directives/v-contextmenu.es.js +13 -13
  143. package/dist/directives/v-contextmenu.umd.js +1 -1
  144. package/dist/directives/v-tooltip.d.ts +3 -0
  145. package/dist/icons.d.ts +1889 -0
  146. package/dist/index.d.ts +10 -0
  147. package/dist/index.es.js +19 -19
  148. package/dist/index.umd.js +1 -1
  149. package/dist/json-render/catalog.d.ts +395 -0
  150. package/dist/json-render/components.d.ts +111 -0
  151. package/dist/json-render/definitions.d.ts +697 -0
  152. package/dist/json-render/index.d.ts +55 -0
  153. package/dist/json-render/index.es.js +1877 -1870
  154. package/dist/json-render/index.umd.js +1 -1
  155. package/dist/json-render/registry.d.ts +34 -0
  156. package/dist/props/index.d.ts +959 -0
  157. package/dist/resolvers/unplugin.d.ts +38 -0
  158. package/dist/resolvers/unplugin.es.js +28 -28
  159. package/dist/resolvers/unplugin.umd.js +1 -1
  160. package/dist/stories/Accordion/Accordion.settings.d.ts +9 -0
  161. package/dist/stories/Accordion/Accordion.stories.d.ts +7 -0
  162. package/dist/stories/Accordion/Accordion.test.d.ts +2 -0
  163. package/dist/stories/Accordion/AccordionSlots.stories.d.ts +7 -0
  164. package/dist/stories/AccordionGroup/AccordionGroup.settings.d.ts +13 -0
  165. package/dist/stories/AccordionGroup/AccordionGroup.stories.d.ts +9 -0
  166. package/dist/stories/AccordionGroup/AccordionGroup.test.d.ts +2 -0
  167. package/dist/stories/AccordionGroup/AccordionGroupSlots.stories.d.ts +1788 -0
  168. package/dist/stories/Alert/Alert.settings.d.ts +4 -0
  169. package/dist/stories/Alert/Alert.stories.d.ts +9 -0
  170. package/dist/stories/Alert/Alert.test.d.ts +2 -0
  171. package/dist/stories/Alert/AlertModifiers.stories.d.ts +13 -0
  172. package/dist/stories/Alert/AlertSlots.stories.d.ts +10 -0
  173. package/dist/stories/AlertGroup/AlertGroup.settings.d.ts +14 -0
  174. package/dist/stories/AlertGroup/AlertGroup.stories.d.ts +8 -0
  175. package/dist/stories/AlertGroup/AlertGroup.test.d.ts +2 -0
  176. package/dist/stories/AlertGroup/AlertGroupPosition.stories.d.ts +14 -0
  177. package/dist/stories/AlertGroup/AlertGroupSlots.stories.d.ts +8 -0
  178. package/dist/stories/AlertGroup/AlertGroupWithComposable.stories.d.ts +4 -0
  179. package/dist/stories/Avatar/Avatar.settings.d.ts +5 -0
  180. package/dist/stories/Avatar/Avatar.stories.d.ts +7 -0
  181. package/dist/stories/Avatar/Avatar.test.d.ts +2 -0
  182. package/dist/stories/Avatar/AvatarBadge.stories.d.ts +6 -0
  183. package/dist/stories/Avatar/AvatarModifiers.stories.d.ts +13 -0
  184. package/dist/stories/Avatar/AvatarSlots.stories.d.ts +6 -0
  185. package/dist/stories/AvatarGroup/AvatarGroup.settings.d.ts +14 -0
  186. package/dist/stories/AvatarGroup/AvatarGroup.stories.d.ts +6 -0
  187. package/dist/stories/AvatarGroup/AvatarGroup.test.d.ts +2 -0
  188. package/dist/stories/AvatarGroup/AvatarGroupModifiers.stories.d.ts +7 -0
  189. package/dist/stories/AvatarGroup/AvatarGroupSlotDefault.stories.d.ts +6 -0
  190. package/dist/stories/Badge/Badge.settings.d.ts +5 -0
  191. package/dist/stories/Badge/Badge.stories.d.ts +7 -0
  192. package/dist/stories/Badge/Badge.test.d.ts +2 -0
  193. package/dist/stories/Badge/BadgeSlots.stories.d.ts +6 -0
  194. package/dist/stories/Blurhash/BlurhashComposable.stories.d.ts +4 -0
  195. package/dist/stories/Breadcrumb/Breadcrumb.settings.d.ts +13 -0
  196. package/dist/stories/Breadcrumb/Breadcrumb.stories.d.ts +7 -0
  197. package/dist/stories/Breadcrumb/Breadcrumb.test.d.ts +2 -0
  198. package/dist/stories/Breadcrumb/BreadcrumbSlots.stories.d.ts +6 -0
  199. package/dist/stories/Button/Button.settings.d.ts +4 -0
  200. package/dist/stories/Button/Button.stories.d.ts +6 -0
  201. package/dist/stories/Button/Button.test.d.ts +2 -0
  202. package/dist/stories/Button/ButtonIcon.stories.d.ts +10 -0
  203. package/dist/stories/Button/ButtonLink.stories.d.ts +7 -0
  204. package/dist/stories/Button/ButtonLoading.stories.d.ts +8 -0
  205. package/dist/stories/Button/ButtonModifiers.stories.d.ts +17 -0
  206. package/dist/stories/Button/ButtonSlots.stories.d.ts +9 -0
  207. package/dist/stories/Button/ButtonState.stories.d.ts +8 -0
  208. package/dist/stories/Button/ButtonToggle.stories.d.ts +9 -0
  209. package/dist/stories/ButtonGroup/ButtonGroup.settings.d.ts +5 -0
  210. package/dist/stories/ButtonGroup/ButtonGroup.stories.d.ts +6 -0
  211. package/dist/stories/ButtonGroup/ButtonGroup.test.d.ts +2 -0
  212. package/dist/stories/ButtonGroup/ButtonGroupModifiers.stories.d.ts +8 -0
  213. package/dist/stories/ButtonGroup/ButtonGroupSlots.stories.d.ts +6 -0
  214. package/dist/stories/ButtonGroup/ButtonGroupToggle.stories.d.ts +8 -0
  215. package/dist/stories/Card/Card.settings.d.ts +6 -0
  216. package/dist/stories/Card/Card.stories.d.ts +6 -0
  217. package/dist/stories/Card/Card.test.d.ts +2 -0
  218. package/dist/stories/Card/CardSlots.stories.d.ts +9 -0
  219. package/dist/stories/Checkbox/Checkbox.settings.d.ts +15 -0
  220. package/dist/stories/Checkbox/Checkbox.stories.d.ts +13 -0
  221. package/dist/stories/Checkbox/Checkbox.test.d.ts +2 -0
  222. package/dist/stories/Checkbox/CheckboxBinary.stories.d.ts +7 -0
  223. package/dist/stories/Checkbox/CheckboxSlots.stories.d.ts +7 -0
  224. package/dist/stories/CheckboxGroup/CheckboxGroup.settings.d.ts +12 -0
  225. package/dist/stories/CheckboxGroup/CheckboxGroup.stories.d.ts +12 -0
  226. package/dist/stories/CheckboxGroup/CheckboxGroup.test.d.ts +2 -0
  227. package/dist/stories/CheckboxGroup/CheckboxGroupOptions.stories.d.ts +8 -0
  228. package/dist/stories/CheckboxGroup/CheckboxGroupSlots.stories.d.ts +7 -0
  229. package/dist/stories/Combobox/Combobox.settings.d.ts +4 -0
  230. package/dist/stories/Combobox/Combobox.stories.d.ts +24 -0
  231. package/dist/stories/Combobox/Combobox.test.d.ts +2 -0
  232. package/dist/stories/Combobox/ComboboxIconPosition.stories.d.ts +8 -0
  233. package/dist/stories/Combobox/ComboboxMultiple.stories.d.ts +9 -0
  234. package/dist/stories/Combobox/ComboboxOptions.stories.d.ts +11 -0
  235. package/dist/stories/Combobox/ComboboxSlots.stories.d.ts +10 -0
  236. package/dist/stories/Dialog/Dialog.settings.d.ts +10 -0
  237. package/dist/stories/Dialog/Dialog.stories.d.ts +7 -0
  238. package/dist/stories/Dialog/Dialog.test.d.ts +2 -0
  239. package/dist/stories/Dialog/DialogModifiers.stories.d.ts +8 -0
  240. package/dist/stories/Dialog/DialogSlots.stories.d.ts +8 -0
  241. package/dist/stories/Dropdown/Dropdown.settings.d.ts +5 -0
  242. package/dist/stories/Dropdown/Dropdown.stories.d.ts +9 -0
  243. package/dist/stories/Dropdown/Dropdown.test.d.ts +2 -0
  244. package/dist/stories/Dropdown/DropdownContextmenuDirective.stories.d.ts +6 -0
  245. package/dist/stories/Dropdown/DropdownMultilevel.stories.d.ts +6 -0
  246. package/dist/stories/Dropdown/DropdownSlots.stories.d.ts +8 -0
  247. package/dist/stories/Icon/Icon.settings.d.ts +7 -0
  248. package/dist/stories/Icon/Icon.stories.d.ts +8 -0
  249. package/dist/stories/Icon/IconsCollection.stories.d.ts +6 -0
  250. package/dist/stories/InputFile/InputFile.settings.d.ts +6 -0
  251. package/dist/stories/InputFile/InputFile.stories.d.ts +13 -0
  252. package/dist/stories/InputFile/InputFileDropArea.stories.d.ts +9 -0
  253. package/dist/stories/InputFile/InputFileIconPosition.stories.d.ts +8 -0
  254. package/dist/stories/InputFile/InputFileSlots.stories.d.ts +7 -0
  255. package/dist/stories/InputText/InputText.settings.d.ts +11 -0
  256. package/dist/stories/InputText/InputText.stories.d.ts +16 -0
  257. package/dist/stories/InputText/InputText.test.d.ts +5 -0
  258. package/dist/stories/InputText/InputTextIconPosition.stories.d.ts +8 -0
  259. package/dist/stories/InputText/InputTextIso.stories.d.ts +10 -0
  260. package/dist/stories/InputText/InputTextLength.stories.d.ts +10 -0
  261. package/dist/stories/InputText/InputTextMask.stories.d.ts +12 -0
  262. package/dist/stories/InputText/InputTextMinMax.stories.d.ts +9 -0
  263. package/dist/stories/InputText/InputTextSlots.stories.d.ts +8 -0
  264. package/dist/stories/InputText/InputTextSuggestions.stories.d.ts +8 -0
  265. package/dist/stories/InputText/InputTextType.stories.d.ts +18 -0
  266. package/dist/stories/Nav/Nav.settings.d.ts +4 -0
  267. package/dist/stories/Nav/Nav.stories.d.ts +6 -0
  268. package/dist/stories/Nav/Nav.test.d.ts +2 -0
  269. package/dist/stories/Nav/NavModifiers.stories.d.ts +9 -0
  270. package/dist/stories/Progress/Progress.settings.d.ts +7 -0
  271. package/dist/stories/Progress/Progress.stories.d.ts +7 -0
  272. package/dist/stories/Progress/Progress.test.d.ts +2 -0
  273. package/dist/stories/Radio/Radio.settings.d.ts +12 -0
  274. package/dist/stories/Radio/Radio.stories.d.ts +11 -0
  275. package/dist/stories/Radio/Radio.test.d.ts +2 -0
  276. package/dist/stories/Radio/RadioSlots.stories.d.ts +7 -0
  277. package/dist/stories/RadioGroup/RadioGroup.settings.d.ts +12 -0
  278. package/dist/stories/RadioGroup/RadioGroup.stories.d.ts +12 -0
  279. package/dist/stories/RadioGroup/RadioGroup.test.d.ts +2 -0
  280. package/dist/stories/RadioGroup/RadioGroupOptions.stories.d.ts +8 -0
  281. package/dist/stories/RadioGroup/RadioGroupSlots.stories.d.ts +7 -0
  282. package/dist/stories/Select/Select.settings.d.ts +8 -0
  283. package/dist/stories/Select/Select.stories.d.ts +16 -0
  284. package/dist/stories/Select/Select.test.d.ts +2 -0
  285. package/dist/stories/Select/SelectIconPosition.stories.d.ts +8 -0
  286. package/dist/stories/Select/SelectOptions.stories.d.ts +9 -0
  287. package/dist/stories/Select/SelectSlots.stories.d.ts +8 -0
  288. package/dist/stories/Tab/Tab.settings.d.ts +4 -0
  289. package/dist/stories/Tab/Tab.stories.d.ts +6 -0
  290. package/dist/stories/Tab/Tab.test.d.ts +2 -0
  291. package/dist/stories/Textarea/Textarea.settings.d.ts +9 -0
  292. package/dist/stories/Textarea/Textarea.stories.d.ts +14 -0
  293. package/dist/stories/Textarea/Textarea.test.d.ts +2 -0
  294. package/dist/stories/Textarea/TextareaLength.stories.d.ts +10 -0
  295. package/dist/stories/Textarea/TextareaSlots.stories.d.ts +8 -0
  296. package/dist/stories/Textarea/TextareatIconPosition.stories.d.ts +8 -0
  297. package/dist/stories/Tooltip/Tooltip.settings.d.ts +5 -0
  298. package/dist/stories/Tooltip/Tooltip.stories.d.ts +6 -0
  299. package/dist/stories/Tooltip/Tooltip.test.d.ts +2 -0
  300. package/dist/stories/Tooltip/TooltipDirective.stories.d.ts +10 -0
  301. package/dist/stories/VirtualScroll/VirtualScroll.settings.d.ts +5 -0
  302. package/dist/stories/VirtualScroll/VirtualScroll.stories.d.ts +7 -0
  303. package/dist/stories/VirtualScroll/VirtualScroll.test.d.ts +2 -0
  304. package/dist/stories/VirtualScroll/VirtualScrollWithComposable.stories.d.ts +4 -0
  305. package/dist/stories/argTypes.d.ts +56 -0
  306. package/dist/test/expect.d.ts +18 -0
  307. package/dist/test/options.d.ts +1 -0
  308. package/dist/test/sleep.d.ts +1 -0
  309. package/dist/types/alert.d.ts +15 -0
  310. package/dist/types/blurhash.d.ts +12 -0
  311. package/dist/types/floating-ui.d.ts +15 -0
  312. package/dist/types/generic.d.ts +4 -0
  313. package/dist/types/group.d.ts +59 -0
  314. package/dist/types/index.d.ts +7 -0
  315. package/dist/types/input-file.d.ts +9 -0
  316. package/dist/types/nav.d.ts +17 -0
  317. package/dist/utils/DateUtilities.d.ts +14 -0
  318. package/dist/utils/DomUtilities.d.ts +1 -0
  319. package/dist/utils/FileUtilities.d.ts +14 -0
  320. package/dist/utils/ObjectUtilities.d.ts +76 -0
  321. package/dist/workers/blurhash.d.ts +1 -0
  322. package/package.json +3 -2
  323. package/src/Volver.ts +8 -6
  324. package/src/components/VvAction/index.ts +1 -3
  325. package/src/components/VvButton/VvButton.vue +1 -1
  326. package/src/components/VvCheckboxGroup/index.ts +1 -3
  327. package/src/components/VvCombobox/VvCombobox.vue +3 -3
  328. package/src/components/VvDropdown/VvDropdown.vue +8 -8
  329. package/src/components/VvIcon/VvIcon.vue +3 -6
  330. package/src/components/VvInputFile/VvInputFile.vue +6 -6
  331. package/src/components/VvInputText/VvInputText.vue +95 -78
  332. package/src/components/VvRadioGroup/index.ts +1 -3
  333. package/src/composables/useBlurhash.ts +1 -1
  334. package/src/composables/useDebouncedInput.ts +1 -1
  335. package/src/composables/useDefaults.ts +55 -44
  336. package/src/composables/useModifiers.ts +1 -1
  337. package/src/index.ts +2 -2
  338. package/src/resolvers/unplugin.ts +6 -6
  339. package/src/types/alert.ts +1 -1
  340. package/src/types/nav.ts +1 -1
  341. package/src/utils/DateUtilities.ts +3 -3
  342. package/src/utils/DomUtilities.ts +7 -1
  343. package/src/utils/ObjectUtilities.ts +60 -59
@@ -1,4 +1,4 @@
1
- import { Fragment as Ce, computed as i, createBlock as Be, createCommentVNode as $e, createElementBlock as E, createElementVNode as le, createSlots as ne, createTextVNode as Ae, createVNode as oe, defineComponent as M, guardReactiveProps as m, h as w, inject as ie, isRef as ue, mergeProps as _e, normalizeClass as se, normalizeProps as S, onMounted as je, openBlock as $, provide as Ne, ref as Ie, renderList as we, renderSlot as h, toDisplayString as de, toRef as Ee, toRefs as x, unref as u, useId as xe, useSlots as ve, vModelCheckbox as De, watch as Ge, watchEffect as Re, withCtx as O, withDirectives as qe } from "vue";
1
+ import { Fragment as Ce, computed as o, createBlock as Be, createCommentVNode as $e, createElementBlock as E, createElementVNode as le, createSlots as ne, createTextVNode as Ae, createVNode as oe, defineComponent as F, guardReactiveProps as h, h as w, inject as ie, isRef as ue, mergeProps as _e, normalizeClass as se, normalizeProps as m, onMounted as je, openBlock as $, provide as Ne, ref as Ie, renderList as we, renderSlot as g, toDisplayString as de, toRef as Ee, toRefs as x, unref as u, useId as xe, useSlots as ve, vModelCheckbox as De, watch as Ge, watchEffect as Re, withCtx as S, withDirectives as qe } from "vue";
2
2
  import { useVModel as He } from "@vueuse/core";
3
3
  import { getProperty as K } from "dot-prop";
4
4
  var Ke = {
@@ -34,7 +34,7 @@ var Ke = {
34
34
  type: String,
35
35
  default: "noopener noreferrer"
36
36
  }
37
- }, T = {
37
+ }, M = {
38
38
  valid: {
39
39
  type: Boolean,
40
40
  default: !1
@@ -43,7 +43,7 @@ var Ke = {
43
43
  type: [String, Array],
44
44
  default: void 0
45
45
  }
46
- }, z = {
46
+ }, T = {
47
47
  invalid: {
48
48
  type: Boolean,
49
49
  default: !1
@@ -52,7 +52,7 @@ var Ke = {
52
52
  type: [String, Array],
53
53
  default: void 0
54
54
  }
55
- }, J = {
55
+ }, z = {
56
56
  loading: {
57
57
  type: Boolean,
58
58
  default: !1
@@ -73,7 +73,7 @@ var Ke = {
73
73
  } }, Ye = { current: {
74
74
  type: Boolean,
75
75
  default: !1
76
- } }, At = {
76
+ } }, jt = {
77
77
  showClearAction: {
78
78
  type: Boolean,
79
79
  default: !1
@@ -92,13 +92,13 @@ var Ke = {
92
92
  } }, G = { label: {
93
93
  type: [String, Number],
94
94
  default: void 0
95
- } }, U = { readonly: {
95
+ } }, J = { readonly: {
96
96
  type: Boolean,
97
97
  default: !1
98
98
  } }, R = { modifiers: {
99
99
  type: [String, Array],
100
100
  default: void 0
101
- } }, Y = { hintLabel: {
101
+ } }, U = { hintLabel: {
102
102
  type: String,
103
103
  default: ""
104
104
  } }, Qe = {
@@ -146,7 +146,7 @@ var Ke = {
146
146
  } }, tt = { floating: {
147
147
  type: Boolean,
148
148
  default: !1
149
- } }, at = { id: [String, Number] }, _t = {
149
+ } }, at = { id: [String, Number] }, Nt = {
150
150
  placement: {
151
151
  type: String,
152
152
  default: Q.bottom,
@@ -213,17 +213,17 @@ var Ke = {
213
213
  } }, lt = { autocomplete: {
214
214
  type: String,
215
215
  default: "off"
216
- } }, jt = {
216
+ } }, It = {
217
217
  ...be,
218
218
  ...rt,
219
219
  ...lt,
220
220
  ...pe,
221
221
  ...D,
222
- ...U,
222
+ ...J,
223
+ ...M,
223
224
  ...T,
225
+ ...U,
224
226
  ...z,
225
- ...Y,
226
- ...J,
227
227
  ...R,
228
228
  ...Xe,
229
229
  ...Ze,
@@ -246,14 +246,14 @@ var Ke = {
246
246
  }, nt = {
247
247
  ...be,
248
248
  ...pe,
249
+ ...M,
249
250
  ...T,
250
- ...z,
251
- ...Y,
252
- ...D,
253
251
  ...U,
252
+ ...D,
253
+ ...J,
254
254
  ...R,
255
255
  ...G,
256
- ...J,
256
+ ...z,
257
257
  value: {
258
258
  type: [
259
259
  String,
@@ -271,16 +271,16 @@ var Ke = {
271
271
  ],
272
272
  default: void 0
273
273
  }
274
- }, ot = {
274
+ }, ee = {
275
+ ...M,
275
276
  ...T,
276
- ...z,
277
277
  ...Qe,
278
- ...Y,
279
- ...D,
280
278
  ...U,
279
+ ...D,
280
+ ...J,
281
281
  ...R,
282
282
  ...G,
283
- ...J,
283
+ ...z,
284
284
  ...ce,
285
285
  modelValue: {
286
286
  type: [
@@ -300,7 +300,7 @@ var Ke = {
300
300
  type: Boolean,
301
301
  default: !1
302
302
  }
303
- }, Nt = {
303
+ }, wt = {
304
304
  ...D,
305
305
  ...G,
306
306
  ...We,
@@ -320,82 +320,82 @@ var Ke = {
320
320
  type: String,
321
321
  default: Te.button
322
322
  }
323
- }, It = {
323
+ }, Et = {
324
324
  storageType: {
325
325
  type: String,
326
326
  default: W.local,
327
327
  validator: (e) => Object.values(W).includes(e)
328
328
  },
329
329
  storageKey: String
330
- }, ee = ot, it = ["update:modelValue", "change"];
331
- function ge(e, r, t) {
332
- return t ? te(e, t) === te(r, t) : F(e, r);
330
+ }, ot = ["update:modelValue", "change"];
331
+ function ye(e, a, t) {
332
+ return t ? te(e, t) === te(a, t) : Y(e, a);
333
333
  }
334
- function F(e, r) {
335
- if (e === r) return !0;
336
- if (e && r && typeof e == "object" && typeof r == "object") {
337
- const t = Array.isArray(e), o = Array.isArray(r);
338
- let l, n, s;
339
- if (t && o) {
340
- if (n = e.length, n !== r.length) return !1;
341
- for (l = n; l-- !== 0; ) if (!F(e[l], r[l])) return !1;
342
- return !0;
343
- }
344
- if (t !== o) return !1;
345
- const d = e instanceof Date, v = r instanceof Date;
346
- if (d !== v) return !1;
347
- if (d && v) return e.getTime() === r.getTime();
348
- const a = e instanceof RegExp, b = r instanceof RegExp;
349
- if (a !== b) return !1;
350
- if (a && b) return e.toString() === r.toString();
351
- const f = Object.keys(e);
352
- if (n = f.length, n !== Object.keys(r).length) return !1;
353
- for (l = n; l-- !== 0; ) if (!Object.hasOwn(r, f[l])) return !1;
354
- for (l = n; l-- !== 0; )
355
- if (s = f[l], !F(e[s], r[s])) return !1;
356
- return !0;
334
+ function it(e, a) {
335
+ if (e.length !== a.length) return !1;
336
+ for (let t = e.length; t-- !== 0; ) if (!Y(e[t], a[t])) return !1;
337
+ return !0;
338
+ }
339
+ function ut(e, a) {
340
+ const t = Object.keys(e), { length: n } = t;
341
+ if (n !== Object.keys(a).length) return !1;
342
+ for (let r = n; r-- !== 0; ) if (!Object.hasOwn(a, t[r])) return !1;
343
+ for (let r = n; r-- !== 0; ) {
344
+ const i = t[r];
345
+ if (!Y(e[i], a[i])) return !1;
357
346
  }
358
- return Number.isNaN(e) && Number.isNaN(r);
347
+ return !0;
359
348
  }
360
- function te(e, r) {
361
- if (e && Object.keys(e).length && r) if (r.includes(".")) {
362
- const t = r.split(".");
363
- let o = e;
364
- for (let l = 0, n = t.length; l < n; ++l) {
365
- if (e == null) return null;
366
- o = o[t[l]];
349
+ function Y(e, a) {
350
+ if (e === a) return !0;
351
+ if (!e || !a || typeof e != "object" || typeof a != "object") return Number.isNaN(e) && Number.isNaN(a);
352
+ const t = Array.isArray(e), n = Array.isArray(a);
353
+ if (t !== n) return !1;
354
+ if (t && n) return it(e, a);
355
+ const r = e instanceof Date, i = a instanceof Date;
356
+ if (r !== i) return !1;
357
+ if (r && i) return e.getTime() === a.getTime();
358
+ const f = e instanceof RegExp, s = a instanceof RegExp;
359
+ return f !== s ? !1 : f && s ? e.toString() === a.toString() : ut(e, a);
360
+ }
361
+ function te(e, a) {
362
+ if (e && Object.keys(e).length && a) {
363
+ if (!a.includes(".")) return e[a];
364
+ const t = a.split(".");
365
+ let n = e;
366
+ for (let r = 0, i = t.length; r < i; ++r) {
367
+ if (n == null) return null;
368
+ n = n[t[r]];
367
369
  }
368
- return o;
369
- } else
370
- return e[r];
371
- else return null;
370
+ return n;
371
+ } else return null;
372
372
  }
373
- function ut(e, r) {
374
- if (e != null && r && r.length) {
375
- for (const t of r) if (ge(e, t)) return !0;
373
+ function st(e, a) {
374
+ if (e != null && a?.length) {
375
+ for (const t of a) if (ye(e, t)) return !0;
376
376
  }
377
377
  return !1;
378
378
  }
379
- function st(e) {
379
+ function dt(e) {
380
380
  return typeof e == "string";
381
381
  }
382
382
  function ae(e) {
383
- return Array.isArray(e) ? e.filter((r) => st(r)).join(" ") : e;
383
+ return Array.isArray(e) ? e.filter((a) => dt(a)).join(" ") : e;
384
384
  }
385
- function ye(e, r) {
386
- const t = i(() => ue(e) ? e.value : e), o = i(() => ae(t.value.invalidLabel)), l = i(() => ae(t.value.validLabel)), n = i(() => t.value.loadingLabel), s = i(() => t.value.hintLabel), d = i(() => !!(t.value.loading && (r.loading || n.value))), v = i(() => !d.value && !!(t.value.invalid && (r.invalid || o.value))), a = i(() => !d.value && !v.value && !!(t.value.valid && (r.valid || l.value))), b = i(() => !d.value && !v.value && !a.value && !!(r.hint || s.value)), f = i(() => v.value || a.value || d.value || b.value);
385
+ function ge(e, a) {
386
+ const t = o(() => ue(e) ? e.value : e), n = o(() => ae(t.value.invalidLabel)), r = o(() => ae(t.value.validLabel)), i = o(() => t.value.loadingLabel), f = o(() => t.value.hintLabel), s = o(() => !!(t.value.loading && (a.loading || i.value))), p = o(() => !s.value && !!(t.value.invalid && (a.invalid || n.value))), l = o(() => !s.value && !p.value && !!(t.value.valid && (a.valid || r.value))), b = o(() => !s.value && !p.value && !l.value && !!(a.hint || f.value)), O = o(() => p.value || l.value || s.value || b.value);
387
387
  return {
388
- hasInvalidLabelOrSlot: v,
388
+ hasInvalidLabelOrSlot: p,
389
389
  hasHintLabelOrSlot: b,
390
- hasValidLabelOrSlot: a,
391
- hasLoadingLabelOrSlot: d,
392
- hintSlotScope: i(() => ({
390
+ hasValidLabelOrSlot: l,
391
+ hasLoadingLabelOrSlot: s,
392
+ hintSlotScope: o(() => ({
393
393
  modelValue: t.value.modelValue,
394
394
  valid: t.value.valid,
395
395
  invalid: t.value.invalid,
396
396
  loading: t.value.loading
397
397
  })),
398
- HintSlot: M({
398
+ HintSlot: F({
399
399
  name: "HintSlot",
400
400
  props: { tag: {
401
401
  type: String,
@@ -403,53 +403,53 @@ function ye(e, r) {
403
403
  } },
404
404
  setup() {
405
405
  return {
406
- isVisible: f,
407
- invalidLabel: o,
408
- validLabel: l,
409
- loadingLabel: n,
410
- hintLabel: s,
411
- hasInvalidLabelOrSlot: v,
412
- hasValidLabelOrSlot: a,
413
- hasLoadingLabelOrSlot: d,
406
+ isVisible: O,
407
+ invalidLabel: n,
408
+ validLabel: r,
409
+ loadingLabel: i,
410
+ hintLabel: f,
411
+ hasInvalidLabelOrSlot: p,
412
+ hasValidLabelOrSlot: l,
413
+ hasLoadingLabelOrSlot: s,
414
414
  hasHintLabelOrSlot: b
415
415
  };
416
416
  },
417
417
  render() {
418
418
  if (this.isVisible) {
419
- let c;
420
- return this.hasInvalidLabelOrSlot && (c = "alert"), this.hasValidLabelOrSlot && (c = "status"), this.hasLoadingLabelOrSlot ? w(this.tag, { role: c }, this.$slots.loading?.() ?? this.loadingLabel) : this.hasInvalidLabelOrSlot ? w(this.tag, { role: c }, this.$slots.invalid?.() ?? this.$slots.invalid ?? this.invalidLabel) : this.hasValidLabelOrSlot ? w(this.tag, { role: c }, this.$slots.valid?.() ?? this.validLabel) : w(this.tag, { role: c }, this.$slots.hint?.() ?? this.$slots.hint ?? this.hintLabel);
419
+ let d;
420
+ return this.hasInvalidLabelOrSlot && (d = "alert"), this.hasValidLabelOrSlot && (d = "status"), this.hasLoadingLabelOrSlot ? w(this.tag, { role: d }, this.$slots.loading?.() ?? this.loadingLabel) : this.hasInvalidLabelOrSlot ? w(this.tag, { role: d }, this.$slots.invalid?.() ?? this.$slots.invalid ?? this.invalidLabel) : this.hasValidLabelOrSlot ? w(this.tag, { role: d }, this.$slots.valid?.() ?? this.validLabel) : w(this.tag, { role: d }, this.$slots.hint?.() ?? this.$slots.hint ?? this.hintLabel);
421
421
  }
422
422
  return null;
423
423
  }
424
424
  })
425
425
  };
426
426
  }
427
- function dt(e) {
428
- const r = ie(e, void 0), t = i(() => r !== void 0);
429
- function o(l, n, s) {
430
- const d = r?.[l];
431
- if (d) return i({
427
+ function vt(e) {
428
+ const a = ie(e, void 0), t = o(() => a !== void 0);
429
+ function n(r, i, f) {
430
+ const s = a?.[r];
431
+ if (s) return o({
432
432
  get() {
433
- return d.value;
433
+ return s.value;
434
434
  },
435
- set(a) {
436
- d.value = a;
435
+ set(l) {
436
+ s.value = l;
437
437
  }
438
438
  });
439
- const v = Ee(n, l);
440
- return i({
439
+ const p = Ee(i, r);
440
+ return o({
441
441
  get() {
442
- return v.value;
442
+ return p.value;
443
443
  },
444
- set(a) {
445
- s && s(`update:${l}`, a);
444
+ set(l) {
445
+ f && f(`update:${r}`, l);
446
446
  }
447
447
  });
448
448
  }
449
449
  return {
450
- group: r,
450
+ group: a,
451
451
  isInGroup: t,
452
- getGroupOrLocalRef: o
452
+ getGroupOrLocalRef: n
453
453
  };
454
454
  }
455
455
  var re = {
@@ -462,72 +462,70 @@ var re = {
462
462
  Boolean
463
463
  ],
464
464
  switch: Boolean
465
- }, vt = [
465
+ }, ft = [
466
466
  "click",
467
467
  "update:modelValue",
468
468
  "change",
469
469
  "blur"
470
470
  ];
471
- function ft(e, r) {
472
- const { group: t, isInGroup: o, getGroupOrLocalRef: l } = dt(fe), { id: n, switch: s, indeterminate: d } = x(e);
471
+ function ct(e, a) {
472
+ const { group: t, isInGroup: n, getGroupOrLocalRef: r } = vt(fe), { id: i, switch: f, indeterminate: s } = x(e);
473
473
  return {
474
- id: n,
475
- propsSwitch: s,
476
- indeterminate: d,
474
+ id: i,
475
+ propsSwitch: f,
476
+ indeterminate: s,
477
477
  group: t,
478
- isInGroup: o,
479
- modelValue: l("modelValue", e, r),
480
- valid: l("valid", e),
481
- invalid: l("invalid", e),
482
- readonly: i(() => !!(e.readonly || t?.readonly.value)),
483
- disabled: i(() => !!(e.disabled || t?.disabled.value))
478
+ isInGroup: n,
479
+ modelValue: r("modelValue", e, a),
480
+ valid: r("valid", e),
481
+ invalid: r("invalid", e),
482
+ readonly: o(() => !!(e.readonly || t?.readonly.value)),
483
+ disabled: o(() => !!(e.disabled || t?.disabled.value))
484
484
  };
485
485
  }
486
- function ct() {
486
+ function pt() {
487
487
  return ie(ze, void 0);
488
488
  }
489
- function he(e, r, t) {
490
- const o = ct(), l = i(() => {
491
- if (!(!o || !o.defaults.value?.[e]))
492
- return o.defaults.value[e];
489
+ function bt(e, a, t) {
490
+ let n = a;
491
+ if (Array.isArray(e) && e.length) {
492
+ const r = e[0];
493
+ r() === a && (n = t);
494
+ }
495
+ if (typeof e == "function" && e() === a && (n = t), typeof e == "object") {
496
+ let r = e.default;
497
+ typeof r == "function" && (r = r()), (typeof r == "object" ? JSON.stringify(r) === JSON.stringify(a) : r === a) && (n = t);
498
+ }
499
+ return n;
500
+ }
501
+ function he(e, a, t) {
502
+ const n = pt(), r = o(() => {
503
+ if (n?.defaults.value?.[e])
504
+ return n.defaults.value[e];
493
505
  });
494
- return i(() => {
495
- if (l.value === void 0) return t;
496
- const n = l.value, s = r, d = t;
497
- return Object.keys(s).reduce((v, a) => {
498
- const b = d[a];
499
- if (v[a] = b, a in n) {
500
- if (Array.isArray(s[a])) {
501
- const f = s[a];
502
- f.length && f[0] === b && (v[a] = n[a]);
503
- }
504
- if (typeof s[a] == "function") {
505
- const f = s[a];
506
- f() === b && (v[a] = n[a]);
507
- }
508
- if (typeof s[a] == "object") {
509
- let f = s[a].default;
510
- typeof f == "function" && (f = f()), typeof f == "object" ? JSON.stringify(f) === JSON.stringify(b) && (v[a] = n[a]) : f === b && (v[a] = n[a]);
511
- }
512
- }
513
- return v;
506
+ return o(() => {
507
+ if (r.value === void 0) return t;
508
+ const i = r.value, f = a, s = t;
509
+ return Object.keys(f).reduce((p, l) => {
510
+ const b = s[l];
511
+ return p[l] = l in i ? bt(f[l], b, i[l]) : b, p;
514
512
  }, {});
515
513
  });
516
514
  }
517
- function pt(e) {
518
- return i(() => String(e?.value || xe()));
515
+ function yt(e) {
516
+ return o(() => String(e?.value || xe()));
519
517
  }
520
- function me(e, r, t) {
521
- return i(() => {
522
- const o = { [e]: !0 }, l = typeof r?.value == "string" ? r.value.split(" ") : r?.value;
523
- return l && Array.isArray(l) && l.forEach((n) => {
524
- n && (o[`${e}--${n}`] = !0);
525
- }), t && Object.keys(t.value).forEach((n) => {
526
- o[`${e}--${n}`] = u(t.value[n]);
527
- }), o;
518
+ function me(e, a, t) {
519
+ return o(() => {
520
+ const n = { [e]: !0 }, r = typeof a?.value == "string" ? a.value.split(" ") : a?.value;
521
+ return r && Array.isArray(r) && r.forEach((i) => {
522
+ i && (n[`${e}--${i}`] = !0);
523
+ }), t && Object.keys(t.value).forEach((i) => {
524
+ n[`${e}--${i}`] = u(t.value[i]);
525
+ }), n;
528
526
  });
529
527
  }
530
- var bt = ["for"], gt = [
528
+ var gt = ["for"], ht = [
531
529
  "id",
532
530
  "name",
533
531
  "disabled",
@@ -536,173 +534,173 @@ var bt = ["for"], gt = [
536
534
  "aria-invalid",
537
535
  "aria-describedby",
538
536
  "aria-errormessage"
539
- ], yt = { name: "VvCheckbox" }, ht = /* @__PURE__ */ M({
540
- ...yt,
537
+ ], mt = { name: "VvCheckbox" }, St = /* @__PURE__ */ F({
538
+ ...mt,
541
539
  props: re,
542
- emits: vt,
543
- setup(e, { emit: r }) {
544
- const t = e, o = r, l = ve(), n = he("VvCheckbox", re, t), { id: s, disabled: d, readonly: v, valid: a, invalid: b, propsSwitch: f, modelValue: c, indeterminate: A, isInGroup: _ } = ft(t, o), L = pt(s), P = i(() => `${L.value}-hint`), q = i(() => p.value ? -1 : t.tabindex), V = Ie(), y = i(() => t.uncheckedValue !== void 0 && !_.value), p = i(() => d.value || v.value), j = i(() => {
540
+ emits: ft,
541
+ setup(e, { emit: a }) {
542
+ const t = e, n = a, r = ve(), i = he("VvCheckbox", re, t), { id: f, disabled: s, readonly: p, valid: l, invalid: b, propsSwitch: O, modelValue: d, indeterminate: A, isInGroup: _ } = ct(t, n), V = yt(f), P = o(() => `${V.value}-hint`), q = o(() => v.value ? -1 : t.tabindex), k = Ie(), y = o(() => t.uncheckedValue !== void 0 && !_.value), v = o(() => s.value || p.value), j = o(() => {
545
543
  if (b.value === !0) return !0;
546
- if (a.value === !0) return !1;
547
- }), N = i(() => y.value ? c.value === t.value : Array.isArray(c.value) ? ut(t.value, c.value) : ge(t.value, c.value)), C = i(() => !!(A.value || !N.value && y.value && t.uncheckedValue !== c.value)), Se = i(() => {
544
+ if (l.value === !0) return !1;
545
+ }), N = o(() => y.value ? d.value === t.value : Array.isArray(d.value) ? st(t.value, d.value) : ye(t.value, d.value)), C = o(() => !!(A.value || !N.value && y.value && t.uncheckedValue !== d.value)), Se = o(() => {
548
546
  if (!y.value)
549
547
  return [
550
548
  "string",
551
549
  "number",
552
550
  "boolean"
553
551
  ].includes(typeof t.value) ? t.value : !0;
554
- }), H = i({
552
+ }), H = o({
555
553
  get() {
556
554
  return N.value;
557
555
  },
558
- set(g) {
559
- if (y.value) c.value = g ? t.value : t.uncheckedValue;
560
- else if (Array.isArray(c.value) || _.value) {
561
- const k = c.value ?? [], B = new Set(Array.isArray(k) ? k : [k]);
562
- g ? B.add(t.value) : B.delete(t.value), c.value = [...B];
563
- } else c.value = g ? t.value : void 0;
564
- o("change", g);
556
+ set(c) {
557
+ if (y.value) d.value = c ? t.value : t.uncheckedValue;
558
+ else if (Array.isArray(d.value) || _.value) {
559
+ const L = d.value ?? [], B = new Set(Array.isArray(L) ? L : [L]);
560
+ c ? B.add(t.value) : B.delete(t.value), d.value = [...B];
561
+ } else d.value = c ? t.value : void 0;
562
+ n("change", c);
565
563
  }
566
- }), { modifiers: Oe } = x(t), Ve = me("vv-checkbox", Oe, i(() => ({
567
- switch: f.value,
568
- valid: a.value,
564
+ }), { modifiers: Oe } = x(t), ke = me("vv-checkbox", Oe, o(() => ({
565
+ switch: O.value,
566
+ valid: l.value,
569
567
  invalid: b.value,
570
- disabled: d.value,
571
- readonly: v.value,
568
+ disabled: s.value,
569
+ readonly: p.value,
572
570
  indeterminate: A.value
573
571
  })));
574
572
  Re(() => {
575
- y.value && Array.isArray(c.value) && console.warn("[VvCheckbox] The model value is an array but the component is in binary mode.");
576
- }), Ge(() => C.value, (g) => {
577
- g ? V.value.indeterminate = !0 : V.value.indeterminate = !1;
573
+ y.value && Array.isArray(d.value) && console.warn("[VvCheckbox] The model value is an array but the component is in binary mode.");
574
+ }), Ge(() => C.value, (c) => {
575
+ c ? k.value.indeterminate = !0 : k.value.indeterminate = !1;
578
576
  }), je(() => {
579
- C.value && (V.value.indeterminate = !0);
577
+ C.value && (k.value.indeterminate = !0);
580
578
  });
581
- const { HintSlot: ke, hasHintLabelOrSlot: Le, hasInvalidLabelOrSlot: Pe, hintSlotScope: I } = ye(n, l);
582
- return (g, k) => ($(), E("label", {
583
- class: se(u(Ve)),
584
- for: u(L)
579
+ const { HintSlot: Le, hasHintLabelOrSlot: Ve, hasInvalidLabelOrSlot: Pe, hintSlotScope: I } = ge(i, r);
580
+ return (c, L) => ($(), E("label", {
581
+ class: se(u(ke)),
582
+ for: u(V)
585
583
  }, [
586
584
  qe(le("input", {
587
- id: u(L),
585
+ id: u(V),
588
586
  ref_key: "input",
589
- ref: V,
590
- "onUpdate:modelValue": k[0] || (k[0] = (B) => ue(H) ? H.value = B : null),
587
+ ref: k,
588
+ "onUpdate:modelValue": L[0] || (L[0] = (B) => ue(H) ? H.value = B : null),
591
589
  type: "checkbox",
592
590
  class: "vv-checkbox__input",
593
- name: g.name,
594
- disabled: u(p),
591
+ name: c.name,
592
+ disabled: u(v),
595
593
  value: u(Se),
596
594
  tabindex: u(q),
597
595
  "aria-invalid": u(j),
598
- "aria-describedby": u(Le) ? u(P) : void 0,
596
+ "aria-describedby": u(Ve) ? u(P) : void 0,
599
597
  "aria-errormessage": u(Pe) ? u(P) : void 0
600
- }, null, 8, gt), [[De, u(H)]]),
601
- h(g.$slots, "default", { value: u(c) }, () => [Ae(de(g.label), 1)]),
602
- oe(u(ke), {
598
+ }, null, 8, ht), [[De, u(H)]]),
599
+ g(c.$slots, "default", { value: u(d) }, () => [Ae(de(c.label), 1)]),
600
+ oe(u(Le), {
603
601
  id: u(P),
604
602
  class: "vv-checkbox__hint"
605
603
  }, ne({ _: 2 }, [
606
- g.$slots.hint ? {
604
+ c.$slots.hint ? {
607
605
  name: "hint",
608
- fn: O(() => [h(g.$slots, "hint", S(m(u(I))))]),
606
+ fn: S(() => [g(c.$slots, "hint", m(h(u(I))))]),
609
607
  key: "0"
610
608
  } : void 0,
611
- g.$slots.loading ? {
609
+ c.$slots.loading ? {
612
610
  name: "loading",
613
- fn: O(() => [h(g.$slots, "loading", S(m(u(I))))]),
611
+ fn: S(() => [g(c.$slots, "loading", m(h(u(I))))]),
614
612
  key: "1"
615
613
  } : void 0,
616
- g.$slots.valid ? {
614
+ c.$slots.valid ? {
617
615
  name: "valid",
618
- fn: O(() => [h(g.$slots, "valid", S(m(u(I))))]),
616
+ fn: S(() => [g(c.$slots, "valid", m(h(u(I))))]),
619
617
  key: "2"
620
618
  } : void 0,
621
- g.$slots.invalid ? {
619
+ c.$slots.invalid ? {
622
620
  name: "invalid",
623
- fn: O(() => [h(g.$slots, "invalid", S(m(u(I))))]),
621
+ fn: S(() => [g(c.$slots, "invalid", m(h(u(I))))]),
624
622
  key: "3"
625
623
  } : void 0
626
624
  ]), 1032, ["id"])
627
- ], 10, bt));
625
+ ], 10, gt));
628
626
  }
629
- }), mt = ht;
630
- function St(e, r) {
631
- Ne(e, r);
627
+ }), Ot = St;
628
+ function kt(e, a) {
629
+ Ne(e, a);
632
630
  }
633
- function Ot(e) {
634
- const { options: r, labelKey: t, valueKey: o, disabledKey: l } = x(e);
631
+ function Lt(e) {
632
+ const { options: a, labelKey: t, valueKey: n, disabledKey: r } = x(e);
635
633
  return {
636
- options: r,
637
- getOptionLabel: (a) => typeof a == "string" ? a : typeof t.value == "function" ? t.value(a) : String(t.value ? K(a, t.value) : a),
638
- getOptionValue: (a) => typeof a == "string" ? a : typeof o.value == "function" ? o.value(a) : o.value ? K(a, o.value) : a,
639
- isOptionDisabled: (a) => typeof a == "string" ? !1 : typeof l.value == "function" ? l.value(a) : l.value ? !!K(a, l.value) : !1,
640
- getOptionGrouped: (a) => typeof a == "string" ? [] : typeof a == "object" && a && "options" in a ? a.options : []
634
+ options: a,
635
+ getOptionLabel: (l) => typeof l == "string" ? l : typeof t.value == "function" ? t.value(l) : String(t.value ? K(l, t.value) : l),
636
+ getOptionValue: (l) => typeof l == "string" ? l : typeof n.value == "function" ? n.value(l) : n.value ? K(l, n.value) : l,
637
+ isOptionDisabled: (l) => typeof l == "string" ? !1 : typeof r.value == "function" ? r.value(l) : r.value ? !!K(l, r.value) : !1,
638
+ getOptionGrouped: (l) => typeof l == "string" ? [] : typeof l == "object" && l && "options" in l ? l.options : []
641
639
  };
642
640
  }
643
- var Vt = ["textContent"], kt = { class: "vv-checkbox-group__wrapper" }, Lt = { name: "VvCheckboxGroup" }, Pt = /* @__PURE__ */ M({
644
- ...Lt,
641
+ var Vt = ["textContent"], Pt = { class: "vv-checkbox-group__wrapper" }, Ct = { name: "VvCheckboxGroup" }, Bt = /* @__PURE__ */ F({
642
+ ...Ct,
645
643
  props: ee,
646
- emits: it,
647
- setup(e, { emit: r }) {
648
- const t = e, o = r, l = ve(), n = he("VvCheckboxGroup", ee, t), s = He(t, "modelValue", o), { disabled: d, readonly: v, vertical: a, valid: b, invalid: f, modifiers: c } = x(t);
649
- St(fe, {
650
- modelValue: s,
651
- disabled: d,
652
- readonly: v,
644
+ emits: ot,
645
+ setup(e, { emit: a }) {
646
+ const t = e, n = a, r = ve(), i = he("VvCheckboxGroup", ee, t), f = He(t, "modelValue", n), { disabled: s, readonly: p, vertical: l, valid: b, invalid: O, modifiers: d } = x(t);
647
+ kt(fe, {
648
+ modelValue: f,
649
+ disabled: s,
650
+ readonly: p,
653
651
  valid: b,
654
- invalid: f
652
+ invalid: O
655
653
  });
656
- const { getOptionLabel: A, getOptionValue: _, isOptionDisabled: L } = Ot(t), P = me("vv-checkbox-group", c, i(() => ({
657
- disabled: d.value,
658
- readonly: v.value,
654
+ const { getOptionLabel: A, getOptionValue: _, isOptionDisabled: V } = Lt(t), P = me("vv-checkbox-group", d, o(() => ({
655
+ disabled: s.value,
656
+ readonly: p.value,
659
657
  required: t.required,
660
- horizontal: !a.value,
658
+ horizontal: !l.value,
661
659
  valid: b.value,
662
- invalid: f.value
660
+ invalid: O.value
663
661
  })));
664
- function q(p, j) {
662
+ function q(v, j) {
665
663
  return {
666
664
  id: `${t.name}_opt${j}`,
667
665
  name: t.name,
668
- label: A(p),
669
- value: _(p),
666
+ label: A(v),
667
+ value: _(v),
670
668
  required: t.required,
671
- disabled: L(p)
669
+ disabled: V(v)
672
670
  };
673
671
  }
674
- const { HintSlot: V, hintSlotScope: y } = ye(n, l);
675
- return (p, j) => ($(), E("fieldset", { class: se(u(P)) }, [
676
- p.label ? ($(), E("legend", {
672
+ const { HintSlot: k, hintSlotScope: y } = ge(i, r);
673
+ return (v, j) => ($(), E("fieldset", { class: se(u(P)) }, [
674
+ v.label ? ($(), E("legend", {
677
675
  key: 0,
678
- textContent: de(p.label)
676
+ textContent: de(v.label)
679
677
  }, null, 8, Vt)) : $e("v-if", !0),
680
- le("div", kt, [p.options.length > 0 ? ($(!0), E(Ce, { key: 0 }, we(p.options, (N, C) => ($(), Be(mt, _e({ key: C }, { ref_for: !0 }, q(N, C)), null, 16))), 128)) : h(p.$slots, "default", { key: 1 })]),
681
- oe(u(V), { class: "vv-checkbox-group__hint" }, ne({ _: 2 }, [
682
- p.$slots.hint ? {
678
+ le("div", Pt, [v.options.length > 0 ? ($(!0), E(Ce, { key: 0 }, we(v.options, (N, C) => ($(), Be(Ot, _e({ key: C }, { ref_for: !0 }, q(N, C)), null, 16))), 128)) : g(v.$slots, "default", { key: 1 })]),
679
+ oe(u(k), { class: "vv-checkbox-group__hint" }, ne({ _: 2 }, [
680
+ v.$slots.hint ? {
683
681
  name: "hint",
684
- fn: O(() => [h(p.$slots, "hint", S(m(u(y))))]),
682
+ fn: S(() => [g(v.$slots, "hint", m(h(u(y))))]),
685
683
  key: "0"
686
684
  } : void 0,
687
- p.$slots.loading ? {
685
+ v.$slots.loading ? {
688
686
  name: "loading",
689
- fn: O(() => [h(p.$slots, "loading", S(m(u(y))))]),
687
+ fn: S(() => [g(v.$slots, "loading", m(h(u(y))))]),
690
688
  key: "1"
691
689
  } : void 0,
692
- p.$slots.valid ? {
690
+ v.$slots.valid ? {
693
691
  name: "valid",
694
- fn: O(() => [h(p.$slots, "valid", S(m(u(y))))]),
692
+ fn: S(() => [g(v.$slots, "valid", m(h(u(y))))]),
695
693
  key: "2"
696
694
  } : void 0,
697
- p.$slots.invalid ? {
695
+ v.$slots.invalid ? {
698
696
  name: "invalid",
699
- fn: O(() => [h(p.$slots, "invalid", S(m(u(y))))]),
697
+ fn: S(() => [g(v.$slots, "invalid", m(h(u(y))))]),
700
698
  key: "3"
701
699
  } : void 0
702
700
  ]), 1024)
703
701
  ], 2));
704
702
  }
705
- }), wt = Pt;
703
+ }), xt = Bt;
706
704
  export {
707
- wt as default
705
+ xt as default
708
706
  };