@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 ae, computed as o, createBlock as N, createCommentVNode as S, createElementBlock as h, createElementVNode as le, createSlots as Te, createVNode as xe, defineComponent as E, guardReactiveProps as B, h as P, inject as Ge, isRef as ye, mergeDefaults as Ue, mergeProps as F, normalizeClass as Je, normalizeProps as $, openBlock as g, ref as he, renderList as ve, renderSlot as I, toDisplayString as w, toRefs as ne, unref as r, useId as We, useSlots as Ye, vModelSelect as Qe, watch as ie, withCtx as j, withDirectives as Xe } from "vue";
1
+ import { Fragment as ae, computed as o, createBlock as w, createCommentVNode as S, createElementBlock as h, createElementVNode as le, createSlots as Me, createVNode as xe, defineComponent as E, guardReactiveProps as B, h as P, inject as Ge, isRef as ge, mergeDefaults as Ue, mergeProps as N, normalizeClass as Je, normalizeProps as $, openBlock as c, ref as he, renderList as ve, renderSlot as I, toDisplayString as A, toRefs as ne, unref as l, useId as We, useSlots as Ye, vModelSelect as Qe, watch as ie, withCtx as j, withDirectives as Xe } from "vue";
2
2
  import { Icon as Ze, addIcon as et, iconLoaded as re } from "@iconify/vue";
3
3
  import { useElementVisibility as tt, useFocus as at } from "@vueuse/core";
4
4
  import { getProperty as oe } from "dot-prop";
@@ -17,11 +17,11 @@ var lt = {
17
17
  return e.local = "local", e.session = "session", e;
18
18
  })({}), ot = /* @__PURE__ */ (function(e) {
19
19
  return e.absolute = "absolute", e.fixed = "fixed", e;
20
- })({}), V = /* @__PURE__ */ (function(e) {
20
+ })({}), _ = /* @__PURE__ */ (function(e) {
21
21
  return e.left = "left", e.right = "right", e.top = "top", e.bottom = "bottom", e;
22
22
  })({}), it = /* @__PURE__ */ (function(e) {
23
23
  return e.topStart = "top-start", e.topEnd = "top-end", e.bottomStart = "bottom-start", e.bottomEnd = "bottom-end", e.leftStart = "left-start", e.leftEnd = "left-end", e.rightStart = "right-start", e.rightEnd = "right-end", e;
24
- })({}), D = /* @__PURE__ */ (function(e) {
24
+ })({}), F = /* @__PURE__ */ (function(e) {
25
25
  return e.before = "before", e.after = "after", e;
26
26
  })({}), ce = /* @__PURE__ */ (function(e) {
27
27
  return e.button = "button", e.submit = "submit", e.reset = "reset", e;
@@ -62,7 +62,7 @@ var lt = {
62
62
  type: String,
63
63
  default: "Loading..."
64
64
  }
65
- }, _ = { disabled: {
65
+ }, C = { disabled: {
66
66
  type: Boolean,
67
67
  default: !1
68
68
  } }, me = { required: {
@@ -90,7 +90,7 @@ var lt = {
90
90
  }, ct = { pressed: {
91
91
  type: Boolean,
92
92
  default: !1
93
- } }, C = { label: {
93
+ } }, V = { label: {
94
94
  type: [String, Number],
95
95
  default: void 0
96
96
  } }, R = { readonly: {
@@ -99,7 +99,7 @@ var lt = {
99
99
  } }, K = { modifiers: {
100
100
  type: [String, Array],
101
101
  default: void 0
102
- } }, M = { hintLabel: {
102
+ } }, T = { hintLabel: {
103
103
  type: String,
104
104
  default: ""
105
105
  } }, Se = {
@@ -138,8 +138,8 @@ var lt = {
138
138
  },
139
139
  iconPosition: {
140
140
  type: String,
141
- default: D.before,
142
- validation: (e) => Object.values(D).includes(e)
141
+ default: F.before,
142
+ validation: (e) => Object.values(F).includes(e)
143
143
  }
144
144
  }, se = { tabindex: {
145
145
  type: [String, Number],
@@ -147,14 +147,14 @@ var lt = {
147
147
  } }, Le = { floating: {
148
148
  type: Boolean,
149
149
  default: !1
150
- } }, gt = { unselectable: {
150
+ } }, yt = { unselectable: {
151
151
  type: Boolean,
152
152
  default: !0
153
- } }, yt = { id: [String, Number] }, Mt = {
153
+ } }, gt = { id: [String, Number] }, Mt = {
154
154
  placement: {
155
155
  type: String,
156
- default: V.bottom,
157
- validator: (e) => Object.values(V).includes(e) || Object.values(it).includes(e)
156
+ default: _.bottom,
157
+ validator: (e) => Object.values(_).includes(e) || Object.values(it).includes(e)
158
158
  },
159
159
  strategy: {
160
160
  type: String,
@@ -206,7 +206,7 @@ var lt = {
206
206
  default: !1
207
207
  }
208
208
  }, ue = {
209
- ...yt,
209
+ ...gt,
210
210
  name: {
211
211
  type: String,
212
212
  required: !0
@@ -217,23 +217,23 @@ var lt = {
217
217
  } }, $e = { autocomplete: {
218
218
  type: String,
219
219
  default: "off"
220
- } }, Tt = {
220
+ } }, xt = {
221
221
  ...ue,
222
222
  ...Be,
223
223
  ...$e,
224
224
  ...se,
225
- ..._,
225
+ ...C,
226
226
  ...R,
227
227
  ...q,
228
228
  ...z,
229
- ...M,
229
+ ...T,
230
230
  ...H,
231
231
  ...K,
232
232
  ...pt,
233
233
  ...bt,
234
234
  ...Oe,
235
235
  ...Le,
236
- ...C,
236
+ ...V,
237
237
  minlength: {
238
238
  type: [String, Number],
239
239
  default: void 0
@@ -247,16 +247,16 @@ var lt = {
247
247
  default: void 0
248
248
  },
249
249
  ...me
250
- }, xt = {
250
+ }, Gt = {
251
251
  ...ue,
252
252
  ...se,
253
253
  ...q,
254
254
  ...z,
255
- ...M,
256
- ..._,
255
+ ...T,
256
+ ...C,
257
257
  ...R,
258
258
  ...K,
259
- ...C,
259
+ ...V,
260
260
  ...H,
261
261
  value: {
262
262
  type: [
@@ -275,15 +275,15 @@ var lt = {
275
275
  ],
276
276
  default: void 0
277
277
  }
278
- }, Gt = {
278
+ }, Ut = {
279
279
  ...q,
280
280
  ...z,
281
281
  ...Se,
282
- ...M,
283
- ..._,
282
+ ...T,
283
+ ...C,
284
284
  ...R,
285
285
  ...K,
286
- ...C,
286
+ ...V,
287
287
  ...H,
288
288
  ...me,
289
289
  modelValue: {
@@ -304,9 +304,9 @@ var lt = {
304
304
  type: Boolean,
305
305
  default: !1
306
306
  }
307
- }, Ut = {
308
- ..._,
307
+ }, Jt = {
309
308
  ...C,
309
+ ...V,
310
310
  ...ct,
311
311
  ...dt,
312
312
  ...vt,
@@ -324,7 +324,7 @@ var lt = {
324
324
  type: String,
325
325
  default: nt.button
326
326
  }
327
- }, Jt = {
327
+ }, Wt = {
328
328
  storageType: {
329
329
  type: String,
330
330
  default: fe.local,
@@ -338,16 +338,16 @@ var lt = {
338
338
  ...se,
339
339
  ...q,
340
340
  ...z,
341
- ...M,
341
+ ...T,
342
342
  ...H,
343
- ..._,
343
+ ...C,
344
344
  ...R,
345
345
  ...K,
346
346
  ...Se,
347
347
  ...Oe,
348
348
  ...Le,
349
- ...gt,
350
- ...C,
349
+ ...yt,
350
+ ...V,
351
351
  ...ft,
352
352
  multiple: Boolean,
353
353
  required: Boolean,
@@ -381,16 +381,16 @@ function be() {
381
381
  function ht(e) {
382
382
  return typeof e == "string";
383
383
  }
384
- function ge(e) {
385
- return Array.isArray(e) ? e.filter((l) => ht(l)).join(" ") : e;
384
+ function ye(e) {
385
+ return Array.isArray(e) ? e.filter((a) => ht(a)).join(" ") : e;
386
386
  }
387
- function mt(e, l) {
388
- const t = o(() => ye(e) ? e.value : e), s = o(() => ge(t.value.invalidLabel)), u = o(() => ge(t.value.validLabel)), d = o(() => t.value.loadingLabel), f = o(() => t.value.hintLabel), c = o(() => !!(t.value.loading && (l.loading || d.value))), p = o(() => !c.value && !!(t.value.invalid && (l.invalid || s.value))), a = o(() => !c.value && !p.value && !!(t.value.valid && (l.valid || u.value))), b = o(() => !c.value && !p.value && !a.value && !!(l.hint || f.value)), n = o(() => p.value || a.value || c.value || b.value);
387
+ function mt(e, a) {
388
+ const t = o(() => ge(e) ? e.value : e), i = o(() => ye(t.value.invalidLabel)), n = o(() => ye(t.value.validLabel)), d = o(() => t.value.loadingLabel), p = o(() => t.value.hintLabel), v = o(() => !!(t.value.loading && (a.loading || d.value))), y = o(() => !v.value && !!(t.value.invalid && (a.invalid || i.value))), r = o(() => !v.value && !y.value && !!(t.value.valid && (a.valid || n.value))), b = o(() => !v.value && !y.value && !r.value && !!(a.hint || p.value)), u = o(() => y.value || r.value || v.value || b.value);
389
389
  return {
390
- hasInvalidLabelOrSlot: p,
390
+ hasInvalidLabelOrSlot: y,
391
391
  hasHintLabelOrSlot: b,
392
- hasValidLabelOrSlot: a,
393
- hasLoadingLabelOrSlot: c,
392
+ hasValidLabelOrSlot: r,
393
+ hasLoadingLabelOrSlot: v,
394
394
  hintSlotScope: o(() => ({
395
395
  modelValue: t.value.modelValue,
396
396
  valid: t.value.valid,
@@ -405,21 +405,21 @@ function mt(e, l) {
405
405
  } },
406
406
  setup() {
407
407
  return {
408
- isVisible: n,
409
- invalidLabel: s,
410
- validLabel: u,
408
+ isVisible: u,
409
+ invalidLabel: i,
410
+ validLabel: n,
411
411
  loadingLabel: d,
412
- hintLabel: f,
413
- hasInvalidLabelOrSlot: p,
414
- hasValidLabelOrSlot: a,
415
- hasLoadingLabelOrSlot: c,
412
+ hintLabel: p,
413
+ hasInvalidLabelOrSlot: y,
414
+ hasValidLabelOrSlot: r,
415
+ hasLoadingLabelOrSlot: v,
416
416
  hasHintLabelOrSlot: b
417
417
  };
418
418
  },
419
419
  render() {
420
420
  if (this.isVisible) {
421
- let v;
422
- return this.hasInvalidLabelOrSlot && (v = "alert"), this.hasValidLabelOrSlot && (v = "status"), this.hasLoadingLabelOrSlot ? P(this.tag, { role: v }, this.$slots.loading?.() ?? this.loadingLabel) : this.hasInvalidLabelOrSlot ? P(this.tag, { role: v }, this.$slots.invalid?.() ?? this.$slots.invalid ?? this.invalidLabel) : this.hasValidLabelOrSlot ? P(this.tag, { role: v }, this.$slots.valid?.() ?? this.validLabel) : P(this.tag, { role: v }, this.$slots.hint?.() ?? this.$slots.hint ?? this.hintLabel);
421
+ let f;
422
+ return this.hasInvalidLabelOrSlot && (f = "alert"), this.hasValidLabelOrSlot && (f = "status"), this.hasLoadingLabelOrSlot ? P(this.tag, { role: f }, this.$slots.loading?.() ?? this.loadingLabel) : this.hasInvalidLabelOrSlot ? P(this.tag, { role: f }, this.$slots.invalid?.() ?? this.$slots.invalid ?? this.invalidLabel) : this.hasValidLabelOrSlot ? P(this.tag, { role: f }, this.$slots.valid?.() ?? this.validLabel) : P(this.tag, { role: f }, this.$slots.hint?.() ?? this.$slots.hint ?? this.hintLabel);
423
423
  }
424
424
  return null;
425
425
  }
@@ -429,14 +429,14 @@ function mt(e, l) {
429
429
  function Ie() {
430
430
  return Ge(st, void 0);
431
431
  }
432
- function Pe(e, l, t) {
432
+ function Pe(e, a, t) {
433
433
  return o(() => {
434
- const s = { [e]: !0 }, u = typeof l?.value == "string" ? l.value.split(" ") : l?.value;
435
- return u && Array.isArray(u) && u.forEach((d) => {
436
- d && (s[`${e}--${d}`] = !0);
434
+ const i = { [e]: !0 }, n = typeof a?.value == "string" ? a.value.split(" ") : a?.value;
435
+ return n && Array.isArray(n) && n.forEach((d) => {
436
+ d && (i[`${e}--${d}`] = !0);
437
437
  }), t && Object.keys(t.value).forEach((d) => {
438
- s[`${e}--${d}`] = r(t.value[d]);
439
- }), s;
438
+ i[`${e}--${d}`] = l(t.value[d]);
439
+ }), i;
440
440
  });
441
441
  }
442
442
  var St = { name: "VvIcon" }, Ot = /* @__PURE__ */ E({
@@ -460,31 +460,30 @@ var St = { name: "VvIcon" }, Ot = /* @__PURE__ */ E({
460
460
  modifiers: {}
461
461
  }, rt),
462
462
  setup(e) {
463
- const l = e, t = o(() => typeof l.rotate == "string" ? Number.parseFloat(l.rotate) : l.rotate), s = he(!0), u = Ie(), { modifiers: d } = ne(l), f = Pe("vv-icon", d), c = o(() => l.provider || u?.iconsProvider), p = o(() => {
464
- const n = l.name ?? "", v = `@${c.value}:${l.prefix}:${n}`;
465
- if (re(v)) return v;
466
- const O = u?.iconsCollections.find((T) => re(`@${c.value}:${T.prefix}:${n}`));
467
- return O ? `@${c.value}:${O.prefix}:${n}` : n;
463
+ const a = e, t = o(() => typeof a.rotate == "string" ? Number.parseFloat(a.rotate) : a.rotate), i = he(!0), n = Ie(), { modifiers: d } = ne(a), p = Pe("vv-icon", d), v = o(() => a.provider || n?.iconsProvider), y = o(() => {
464
+ const u = a.name ?? "", f = `@${v.value}:${a.prefix}:${u}`;
465
+ if (re(f)) return f;
466
+ const O = n?.iconsCollections.find((M) => re(`@${v.value}:${M.prefix}:${u}`));
467
+ return O ? `@${v.value}:${O.prefix}:${u}` : u;
468
468
  });
469
- function a(n) {
470
- const v = typeof window < "u" ? new window.DOMParser() : null;
471
- return v ? v.parseFromString(n, "text/html").querySelector("svg") : null;
469
+ function r(u) {
470
+ return globalThis.window === void 0 ? null : new globalThis.DOMParser().parseFromString(u, "text/html").querySelector("svg");
472
471
  }
473
- function b(n) {
474
- const v = a(n), O = v?.innerHTML.trim() || "";
475
- v && O && et(`@${c.value}:${l.prefix}:${l.name}`, {
472
+ function b(u) {
473
+ const f = r(u), O = f?.innerHTML.trim() || "";
474
+ f && O && et(`@${v.value}:${a.prefix}:${a.name}`, {
476
475
  body: O,
477
- height: v.viewBox.baseVal.height,
478
- width: v.viewBox.baseVal.width
476
+ height: f.viewBox.baseVal.height,
477
+ width: f.viewBox.baseVal.width
479
478
  });
480
479
  }
481
- return u && l.src && !re(`@${c.value}:${l.prefix}:${l.name}`) && (s.value = !1, u.fetchIcon(l.src).then((n) => {
482
- n && b(n), s.value = !0;
483
- }).catch((n) => {
484
- throw s.value = !0, new Error(`Error during fetch icon: ${n?.message}`);
485
- })), l.svg && b(l.svg), (n, v) => r(s) ? (g(), N(r(Ze), F({
480
+ return n && a.src && !re(`@${v.value}:${a.prefix}:${a.name}`) && (i.value = !1, n.fetchIcon(a.src).then((u) => {
481
+ u && b(u), i.value = !0;
482
+ }).catch((u) => {
483
+ throw i.value = !0, new Error(`Error during fetch icon: ${u?.message}`);
484
+ })), a.svg && b(a.svg), (u, f) => l(i) ? (c(), w(l(Ze), N({
486
485
  key: 0,
487
- class: r(f)
486
+ class: l(p)
488
487
  }, {
489
488
  inline: e.inline,
490
489
  width: e.width,
@@ -492,26 +491,26 @@ var St = { name: "VvIcon" }, Ot = /* @__PURE__ */ E({
492
491
  horizontalFlip: e.horizontalFlip,
493
492
  verticalFlip: e.verticalFlip,
494
493
  flip: e.flip,
495
- rotate: r(t),
494
+ rotate: l(t),
496
495
  color: e.color,
497
- icon: r(p)
496
+ icon: l(y)
498
497
  }, { onLoad: e.onLoad }), null, 16, ["class", "onLoad"])) : S("v-if", !0);
499
498
  }
500
- }), k = Ot;
501
- function Ve(e, l) {
502
- const t = o(() => typeof e?.value == "string" ? { name: e?.value } : e?.value), s = o(() => l?.value === D.before ? t.value : void 0), u = o(() => l?.value === D.after ? t.value : void 0);
499
+ }), D = Ot;
500
+ function _e(e, a) {
501
+ const t = o(() => typeof e?.value == "string" ? { name: e?.value } : e?.value), i = o(() => a?.value === F.before ? t.value : void 0), n = o(() => a?.value === F.after ? t.value : void 0);
503
502
  return {
504
503
  hasIcon: t,
505
- hasIconLeft: o(() => l?.value === V.left ? t.value : void 0),
506
- hasIconRight: o(() => l?.value === V.right ? t.value : void 0),
507
- hasIconTop: o(() => l?.value === V.top ? t.value : void 0),
508
- hasIconBottom: o(() => l?.value === V.bottom ? t.value : void 0),
509
- hasIconBefore: s,
510
- hasIconAfter: u
504
+ hasIconLeft: o(() => a?.value === _.left ? t.value : void 0),
505
+ hasIconRight: o(() => a?.value === _.right ? t.value : void 0),
506
+ hasIconTop: o(() => a?.value === _.top ? t.value : void 0),
507
+ hasIconBottom: o(() => a?.value === _.bottom ? t.value : void 0),
508
+ hasIconBefore: i,
509
+ hasIconAfter: n
511
510
  };
512
511
  }
513
512
  var Lt = E({
514
- components: { VvIcon: k },
513
+ components: { VvIcon: D },
515
514
  props: {
516
515
  inputType: {
517
516
  type: String,
@@ -531,18 +530,18 @@ var Lt = E({
531
530
  }
532
531
  },
533
532
  emits: ["clear"],
534
- setup(e, { emit: l }) {
535
- const { hasIcon: t } = Ve(o(() => e.icon));
536
- function s(u) {
537
- u?.stopPropagation(), e.disabled || l("clear");
533
+ setup(e, { emit: a }) {
534
+ const { hasIcon: t } = _e(o(() => e.icon));
535
+ function i(n) {
536
+ n?.stopPropagation(), e.disabled || a("clear");
538
537
  }
539
538
  return {
540
539
  hasIcon: t,
541
- onClick: s
540
+ onClick: i
542
541
  };
543
542
  },
544
543
  render() {
545
- const e = this.hasIcon ? P(k, {
544
+ const e = this.hasIcon ? P(D, {
546
545
  ...this.hasIcon,
547
546
  class: `vv-${this.inputType}__icon`
548
547
  }) : void 0;
@@ -555,61 +554,59 @@ var Lt = E({
555
554
  }, e);
556
555
  }
557
556
  });
558
- function Bt(e, l, t) {
559
- const s = Ie(), u = o(() => {
560
- if (!(!s || !s.defaults.value?.[e]))
561
- return s.defaults.value[e];
557
+ function Bt(e, a, t) {
558
+ let i = a;
559
+ if (Array.isArray(e) && e.length) {
560
+ const n = e[0];
561
+ n() === a && (i = t);
562
+ }
563
+ if (typeof e == "function" && e() === a && (i = t), typeof e == "object") {
564
+ let n = e.default;
565
+ typeof n == "function" && (n = n()), (typeof n == "object" ? JSON.stringify(n) === JSON.stringify(a) : n === a) && (i = t);
566
+ }
567
+ return i;
568
+ }
569
+ function $t(e, a, t) {
570
+ const i = Ie(), n = o(() => {
571
+ if (i?.defaults.value?.[e])
572
+ return i.defaults.value[e];
562
573
  });
563
574
  return o(() => {
564
- if (u.value === void 0) return t;
565
- const d = u.value, f = l, c = t;
566
- return Object.keys(f).reduce((p, a) => {
567
- const b = c[a];
568
- if (p[a] = b, a in d) {
569
- if (Array.isArray(f[a])) {
570
- const n = f[a];
571
- n.length && n[0] === b && (p[a] = d[a]);
572
- }
573
- if (typeof f[a] == "function") {
574
- const n = f[a];
575
- n() === b && (p[a] = d[a]);
576
- }
577
- if (typeof f[a] == "object") {
578
- let n = f[a].default;
579
- typeof n == "function" && (n = n()), typeof n == "object" ? JSON.stringify(n) === JSON.stringify(b) && (p[a] = d[a]) : n === b && (p[a] = d[a]);
580
- }
581
- }
582
- return p;
575
+ if (n.value === void 0) return t;
576
+ const d = n.value, p = a, v = t;
577
+ return Object.keys(p).reduce((y, r) => {
578
+ const b = v[r];
579
+ return y[r] = r in d ? Bt(p[r], b, d[r]) : b, y;
583
580
  }, {});
584
581
  });
585
582
  }
586
- function $t(e, l) {
583
+ function It(e, a) {
587
584
  const { focused: t } = at(e);
588
- return ie(t, (s) => {
589
- l(s ? "focus" : "blur", r(e));
585
+ return ie(t, (i) => {
586
+ a(i ? "focus" : "blur", l(e));
590
587
  }), { focused: t };
591
588
  }
592
- function It(e) {
589
+ function Pt(e) {
593
590
  return o(() => String(e?.value || We()));
594
591
  }
595
- function Pt(e) {
596
- const { options: l, labelKey: t, valueKey: s, disabledKey: u } = ne(e);
592
+ function _t(e) {
593
+ const { options: a, labelKey: t, valueKey: i, disabledKey: n } = ne(e);
597
594
  return {
598
- options: l,
599
- getOptionLabel: (a) => typeof a == "string" ? a : typeof t.value == "function" ? t.value(a) : String(t.value ? oe(a, t.value) : a),
600
- getOptionValue: (a) => typeof a == "string" ? a : typeof s.value == "function" ? s.value(a) : s.value ? oe(a, s.value) : a,
601
- isOptionDisabled: (a) => typeof a == "string" ? !1 : typeof u.value == "function" ? u.value(a) : u.value ? !!oe(a, u.value) : !1,
602
- getOptionGrouped: (a) => typeof a == "string" ? [] : typeof a == "object" && a && "options" in a ? a.options : []
595
+ options: a,
596
+ getOptionLabel: (r) => typeof r == "string" ? r : typeof t.value == "function" ? t.value(r) : String(t.value ? oe(r, t.value) : r),
597
+ getOptionValue: (r) => typeof r == "string" ? r : typeof i.value == "function" ? i.value(r) : i.value ? oe(r, i.value) : r,
598
+ isOptionDisabled: (r) => typeof r == "string" ? !1 : typeof n.value == "function" ? n.value(r) : n.value ? !!oe(r, n.value) : !1,
599
+ getOptionGrouped: (r) => typeof r == "string" ? [] : typeof r == "object" && r && "options" in r ? r.options : []
603
600
  };
604
601
  }
605
- var Vt = ["for"], _t = { class: "vv-select__wrapper" }, Ct = {
602
+ var Ct = ["for"], Vt = { class: "vv-select__wrapper" }, kt = {
606
603
  key: 0,
607
604
  class: "vv-select__input-before"
608
- }, At = { class: "vv-select__inner" }, wt = ["id"], jt = ["disabled", "hidden"], Nt = ["disabled", "value"], Ft = ["disabled", "label"], Dt = ["disabled", "value"], kt = {
605
+ }, At = { class: "vv-select__inner" }, jt = ["id"], wt = ["disabled", "hidden"], Nt = ["disabled", "value"], Ft = ["disabled", "label"], Dt = ["disabled", "value"], Et = {
609
606
  key: 2,
610
607
  class: "vv-select__input-after"
611
- }, Et = { name: "VvSelect" }, qt = /* @__PURE__ */ E({
612
- ...Et,
608
+ }, qt = { name: "VvSelect" }, zt = /* @__PURE__ */ E({
609
+ ...qt,
613
610
  props: be(),
614
611
  emits: [
615
612
  "update:modelValue",
@@ -617,140 +614,140 @@ var Vt = ["for"], _t = { class: "vv-select__wrapper" }, Ct = {
617
614
  "blur",
618
615
  "clear"
619
616
  ],
620
- setup(e, { emit: l }) {
621
- const t = e, s = l, u = Ye(), d = Bt("VvSelect", be(), t), f = he(), { HintSlot: c, hasHintLabelOrSlot: p, hasInvalidLabelOrSlot: a, hintSlotScope: b } = mt(d, u), { focused: n } = $t(f, s);
622
- function v(i) {
623
- return typeof i == "string" ? !1 : i.options?.length;
617
+ setup(e, { emit: a }) {
618
+ const t = e, i = a, n = Ye(), d = $t("VvSelect", be(), t), p = he(), { HintSlot: v, hasHintLabelOrSlot: y, hasInvalidLabelOrSlot: r, hintSlotScope: b } = mt(d, n), { focused: u } = It(p, i);
619
+ function f(s) {
620
+ return typeof s == "string" ? !1 : s.options?.length;
624
621
  }
625
- const { id: O, modifiers: T, disabled: _e, readonly: Ce, loading: Ae, icon: we, iconPosition: je, invalid: Ne, valid: Fe, floating: De, multiple: ke } = ne(t), x = It(O), G = o(() => `${x.value}-hint`), A = o(() => t.disabled || t.readonly), Ee = o(() => A.value ? -1 : t.tabindex), y = o({
622
+ const { id: O, modifiers: M, disabled: Ce, readonly: Ve, loading: ke, icon: Ae, iconPosition: je, invalid: we, valid: Ne, floating: Fe, multiple: De } = ne(t), x = Pt(O), G = o(() => `${x.value}-hint`), k = o(() => t.disabled || t.readonly), Ee = o(() => k.value ? -1 : t.tabindex), g = o({
626
623
  get: () => t.modelValue,
627
- set: (i) => {
628
- if (Array.isArray(i) && (i = i.filter((L) => L !== void 0), i.length === 0 && !t.unselectable && f.value)) {
629
- f.value.value = String(t.modelValue);
624
+ set: (s) => {
625
+ if (Array.isArray(s) && (s = s.filter((L) => L !== void 0), s.length === 0 && !t.unselectable && p.value)) {
626
+ p.value.value = String(t.modelValue);
630
627
  return;
631
628
  }
632
- s("update:modelValue", i);
629
+ i("update:modelValue", s);
633
630
  }
634
- }), U = o(() => Array.isArray(y.value) ? y.value.length > 0 : y.value !== void 0 && y.value !== null), J = o(() => A.value ? !1 : t.unselectable);
635
- ie(tt(f), (i) => {
636
- i && t.autofocus && (n.value = !0);
631
+ }), U = o(() => Array.isArray(g.value) ? g.value.length > 0 : g.value !== void 0 && g.value !== null), J = o(() => k.value ? !1 : t.unselectable);
632
+ ie(tt(p), (s) => {
633
+ s && t.autofocus && (u.value = !0);
637
634
  });
638
- const { hasIconBefore: W, hasIconAfter: Y } = Ve(we, je), qe = o(() => {
635
+ const { hasIconBefore: W, hasIconAfter: Y } = _e(Ae, je), qe = o(() => {
639
636
  if (t.invalid === !0) return !0;
640
637
  if (t.valid === !0) return !1;
641
- }), ze = Pe("vv-select", T, o(() => ({
642
- valid: Fe.value,
643
- invalid: Ne.value,
644
- loading: Ae.value,
645
- disabled: _e.value,
646
- readonly: Ce.value,
638
+ }), ze = Pe("vv-select", M, o(() => ({
639
+ valid: Ne.value,
640
+ invalid: we.value,
641
+ loading: ke.value,
642
+ disabled: Ce.value,
643
+ readonly: Ve.value,
647
644
  "icon-before": W.value !== void 0,
648
645
  "icon-after": Y.value !== void 0,
649
646
  dirty: U.value,
650
- focus: n.value && !A.value,
651
- floating: De.value,
652
- multiple: ke.value
653
- }))), { getOptionLabel: Q, getOptionValue: X, isOptionDisabled: Z, getOptionGrouped: He } = Pt(t);
654
- ie(() => t.options, (i) => {
655
- if (i?.length && t.autoselectFirst && !U.value) {
656
- const L = X(i[0]);
657
- y.value = t.multiple ? [L] : L;
647
+ focus: u.value && !k.value,
648
+ floating: Fe.value,
649
+ multiple: De.value
650
+ }))), { getOptionLabel: Q, getOptionValue: X, isOptionDisabled: Z, getOptionGrouped: He } = _t(t);
651
+ ie(() => t.options, (s) => {
652
+ if (s?.length && t.autoselectFirst && !U.value) {
653
+ const L = X(s[0]);
654
+ g.value = t.multiple ? [L] : L;
658
655
  }
659
656
  }, { immediate: !0 });
660
657
  function Re() {
661
- Array.isArray(y.value) ? y.value = [] : y.value = void 0, s("clear");
658
+ Array.isArray(g.value) ? g.value = [] : g.value = void 0, i("clear");
662
659
  }
663
660
  const Ke = o(() => ({
664
661
  name: t.name,
665
662
  tabindex: Ee.value,
666
- disabled: A.value,
663
+ disabled: k.value,
667
664
  required: t.required,
668
665
  size: t.size,
669
666
  autocomplete: t.autocomplete,
670
667
  multiple: t.multiple,
671
668
  "aria-invalid": qe.value,
672
- "aria-describedby": p.value ? G.value : void 0,
673
- "aria-errormessage": a.value ? G.value : void 0
669
+ "aria-describedby": y.value ? G.value : void 0,
670
+ "aria-errormessage": r.value ? G.value : void 0
674
671
  })), de = o(() => ({
675
672
  valid: t.valid,
676
673
  invalid: t.invalid,
677
674
  modelValue: t.modelValue
678
675
  }));
679
- return (i, L) => (g(), h("div", { class: Je(r(ze)) }, [
680
- i.label ? (g(), h("label", {
676
+ return (s, L) => (c(), h("div", { class: Je(l(ze)) }, [
677
+ s.label ? (c(), h("label", {
681
678
  key: 0,
682
- for: r(x)
683
- }, w(i.label), 9, Vt)) : S("v-if", !0),
684
- le("div", _t, [
685
- i.$slots.before ? (g(), h("div", Ct, [I(i.$slots, "before", $(B(r(de))))])) : S("v-if", !0),
679
+ for: l(x)
680
+ }, A(s.label), 9, Ct)) : S("v-if", !0),
681
+ le("div", Vt, [
682
+ s.$slots.before ? (c(), h("div", kt, [I(s.$slots, "before", $(B(l(de))))])) : S("v-if", !0),
686
683
  le("div", At, [
687
- r(W) ? (g(), N(k, F({ key: 0 }, r(W), { class: "vv-select__icon" }), null, 16)) : S("v-if", !0),
688
- Xe(le("select", F({
689
- id: r(x),
684
+ l(W) ? (c(), w(D, N({ key: 0 }, l(W), { class: "vv-select__icon" }), null, 16)) : S("v-if", !0),
685
+ Xe(le("select", N({
686
+ id: l(x),
690
687
  ref_key: "selectEl",
691
- ref: f
692
- }, r(Ke), { "onUpdate:modelValue": L[0] || (L[0] = (m) => ye(y) ? y.value = m : null) }), [i.placeholder ? (g(), h("option", {
688
+ ref: p
689
+ }, l(Ke), { "onUpdate:modelValue": L[0] || (L[0] = (m) => ge(g) ? g.value = m : null) }), [s.placeholder ? (c(), h("option", {
693
690
  key: 0,
694
691
  value: void 0,
695
- disabled: !r(J),
696
- hidden: !r(J)
697
- }, w(i.placeholder), 9, jt)) : S("v-if", !0), (g(!0), h(ae, null, ve(i.options, (m, ee) => (g(), h(ae, null, [v(m) ? (g(), h("optgroup", {
692
+ disabled: !l(J),
693
+ hidden: !l(J)
694
+ }, A(s.placeholder), 9, wt)) : S("v-if", !0), (c(!0), h(ae, null, ve(s.options, (m, ee) => (c(), h(ae, null, [f(m) ? (c(), h("optgroup", {
698
695
  key: `group-${ee}`,
699
- disabled: r(Z)(m),
700
- label: r(Q)(m)
701
- }, [(g(!0), h(ae, null, ve(r(He)(m), (te, Me) => (g(), h("option", {
702
- key: `group-${ee}-item-${Me}`,
703
- disabled: r(Z)(te),
704
- value: r(X)(te)
705
- }, w(r(Q)(te)), 9, Dt))), 128))], 8, Ft)) : (g(), h("option", {
696
+ disabled: l(Z)(m),
697
+ label: l(Q)(m)
698
+ }, [(c(!0), h(ae, null, ve(l(He)(m), (te, Te) => (c(), h("option", {
699
+ key: `group-${ee}-item-${Te}`,
700
+ disabled: l(Z)(te),
701
+ value: l(X)(te)
702
+ }, A(l(Q)(te)), 9, Dt))), 128))], 8, Ft)) : (c(), h("option", {
706
703
  key: ee,
707
- disabled: r(Z)(m),
708
- value: r(X)(m)
709
- }, w(r(Q)(m)), 9, Nt))], 64))), 256))], 16, wt), [[Qe, r(y)]]),
710
- r(Y) ? (g(), N(k, F({ key: 1 }, r(Y), { class: "vv-select__icon vv-select__icon-after" }), null, 16)) : S("v-if", !0)
704
+ disabled: l(Z)(m),
705
+ value: l(X)(m)
706
+ }, A(l(Q)(m)), 9, Nt))], 64))), 256))], 16, jt), [[Qe, l(g)]]),
707
+ l(Y) ? (c(), w(D, N({ key: 1 }, l(Y), { class: "vv-select__icon vv-select__icon-after" }), null, 16)) : S("v-if", !0)
711
708
  ]),
712
- r(J) && r(d).showClearAction ? (g(), N(r(Lt), {
709
+ l(J) && l(d).showClearAction ? (c(), w(l(Lt), {
713
710
  key: 1,
714
711
  "input-type": "select",
715
- label: i.labelClear,
716
- icon: i.iconClear,
717
- disabled: !r(U),
712
+ label: s.labelClear,
713
+ icon: s.iconClear,
714
+ disabled: !l(U),
718
715
  onClear: Re
719
716
  }, null, 8, [
720
717
  "label",
721
718
  "icon",
722
719
  "disabled"
723
720
  ])) : S("v-if", !0),
724
- i.$slots.after ? (g(), h("div", kt, [I(i.$slots, "after", $(B(r(de))))])) : S("v-if", !0)
721
+ s.$slots.after ? (c(), h("div", Et, [I(s.$slots, "after", $(B(l(de))))])) : S("v-if", !0)
725
722
  ]),
726
- xe(r(c), {
727
- id: r(G),
723
+ xe(l(v), {
724
+ id: l(G),
728
725
  class: "vv-select__hint"
729
- }, Te({ _: 2 }, [
730
- i.$slots.hint ? {
726
+ }, Me({ _: 2 }, [
727
+ s.$slots.hint ? {
731
728
  name: "hint",
732
- fn: j(() => [I(i.$slots, "hint", $(B(r(b))))]),
729
+ fn: j(() => [I(s.$slots, "hint", $(B(l(b))))]),
733
730
  key: "0"
734
731
  } : void 0,
735
- i.$slots.loading ? {
732
+ s.$slots.loading ? {
736
733
  name: "loading",
737
- fn: j(() => [I(i.$slots, "loading", $(B(r(b))))]),
734
+ fn: j(() => [I(s.$slots, "loading", $(B(l(b))))]),
738
735
  key: "1"
739
736
  } : void 0,
740
- i.$slots.valid ? {
737
+ s.$slots.valid ? {
741
738
  name: "valid",
742
- fn: j(() => [I(i.$slots, "valid", $(B(r(b))))]),
739
+ fn: j(() => [I(s.$slots, "valid", $(B(l(b))))]),
743
740
  key: "2"
744
741
  } : void 0,
745
- i.$slots.invalid ? {
742
+ s.$slots.invalid ? {
746
743
  name: "invalid",
747
- fn: j(() => [I(i.$slots, "invalid", $(B(r(b))))]),
744
+ fn: j(() => [I(s.$slots, "invalid", $(B(l(b))))]),
748
745
  key: "3"
749
746
  } : void 0
750
747
  ]), 1032, ["id"])
751
748
  ], 2));
752
749
  }
753
- }), Wt = qt;
750
+ }), Yt = zt;
754
751
  export {
755
- Wt as default
752
+ Yt as default
756
753
  };