@volverjs/ui-vue 0.0.1-beta.6 → 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (548) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +101 -7
  3. package/bin/icons.cjs +73 -0
  4. package/bin/icons.js +75 -0
  5. package/dist/{DesignSystem.d.ts → Volver.d.ts} +22 -18
  6. package/dist/components/VvAccordion/VvAccordion.es.js +165 -0
  7. package/dist/components/VvAccordion/VvAccordion.umd.js +1 -0
  8. package/dist/components/VvAccordion/VvAccordion.vue.d.ts +32 -97
  9. package/dist/components/VvAccordion/index.d.ts +46 -0
  10. package/dist/components/VvAccordionGroup/VvAccordionGroup.es.js +243 -0
  11. package/dist/components/VvAccordionGroup/VvAccordionGroup.umd.js +1 -0
  12. package/dist/components/VvAccordionGroup/VvAccordionGroup.vue.d.ts +77 -151
  13. package/dist/components/VvAccordionGroup/{VvAccordionGroup.d.ts → index.d.ts} +30 -13
  14. package/dist/components/VvBadge/VvBadge.es.js +62 -0
  15. package/dist/components/VvBadge/VvBadge.umd.js +1 -0
  16. package/dist/components/VvBadge/VvBadge.vue.d.ts +13 -54
  17. package/dist/components/VvBadge/{VvBadge.d.ts → index.d.ts} +1 -1
  18. package/dist/components/VvBreadcrumb/VvBreadcrumb.es.js +93 -0
  19. package/dist/components/VvBreadcrumb/VvBreadcrumb.umd.js +1 -0
  20. package/dist/components/VvBreadcrumb/VvBreadcrumb.vue.d.ts +33 -107
  21. package/dist/components/VvBreadcrumb/{VvBreadcrumb.d.ts → index.d.ts} +2 -3
  22. package/dist/components/VvButton/VvButton.es.js +427 -0
  23. package/dist/components/VvButton/VvButton.umd.js +1 -0
  24. package/dist/components/VvButton/VvButton.vue.d.ts +108 -199
  25. package/dist/components/VvButton/index.d.ts +132 -0
  26. package/dist/components/VvButtonGroup/VvButtonGroup.es.js +108 -0
  27. package/dist/components/VvButtonGroup/VvButtonGroup.umd.js +1 -0
  28. package/dist/components/VvButtonGroup/VvButtonGroup.vue.d.ts +89 -183
  29. package/dist/components/VvButtonGroup/index.d.ts +54 -0
  30. package/dist/components/VvCard/VvCard.es.js +77 -0
  31. package/dist/components/VvCard/VvCard.umd.js +1 -0
  32. package/dist/components/VvCard/VvCard.vue.d.ts +16 -61
  33. package/dist/components/VvCard/{VvCard.d.ts → index.d.ts} +1 -1
  34. package/dist/components/VvCheckbox/VvCheckbox.es.js +357 -0
  35. package/dist/components/VvCheckbox/VvCheckbox.umd.js +1 -0
  36. package/dist/components/VvCheckbox/VvCheckbox.vue.d.ts +74 -0
  37. package/dist/components/VvCheckbox/index.d.ts +54 -0
  38. package/dist/components/VvCheckboxGroup/VvCheckboxGroup.es.js +435 -0
  39. package/dist/components/VvCheckboxGroup/VvCheckboxGroup.umd.js +1 -0
  40. package/dist/components/VvCheckboxGroup/VvCheckboxGroup.vue.d.ts +82 -0
  41. package/dist/components/VvCheckboxGroup/index.d.ts +32 -0
  42. package/dist/components/VvCombobox/VvCombobox.es.js +594 -0
  43. package/dist/components/VvCombobox/VvCombobox.umd.js +1 -0
  44. package/dist/components/VvCombobox/VvCombobox.vue.d.ts +153 -0
  45. package/dist/components/{VvSelect/VvSelect.d.ts → VvCombobox/index.d.ts} +33 -36
  46. package/dist/components/VvDialog/VvDialog.es.js +200 -0
  47. package/dist/components/VvDialog/VvDialog.umd.js +1 -0
  48. package/dist/components/VvDialog/VvDialog.vue.d.ts +28 -132
  49. package/dist/components/VvDialog/{VvDialog.d.ts → index.d.ts} +2 -6
  50. package/dist/components/VvDropdown/VvDropdown.es.js +218 -0
  51. package/dist/components/VvDropdown/VvDropdown.umd.js +1 -0
  52. package/dist/components/VvDropdown/VvDropdown.vue.d.ts +41 -147
  53. package/dist/components/VvDropdown/index.d.ts +37 -0
  54. package/dist/components/VvIcon/VvIcon.es.js +124 -0
  55. package/dist/components/VvIcon/VvIcon.umd.js +1 -0
  56. package/dist/components/VvIcon/VvIcon.vue.d.ts +36 -150
  57. package/dist/components/VvIcon/{VvIcon.d.ts → index.d.ts} +9 -0
  58. package/dist/components/VvInputText/VvInputClearAction.d.ts +36 -0
  59. package/dist/components/VvInputText/VvInputPasswordAction.d.ts +56 -0
  60. package/dist/components/VvInputText/VvInputStepAction.d.ts +37 -0
  61. package/dist/components/VvInputText/VvInputText.es.js +764 -0
  62. package/dist/components/VvInputText/VvInputText.umd.js +1 -0
  63. package/dist/components/VvInputText/VvInputText.vue.d.ts +214 -256
  64. package/dist/components/VvInputText/VvInputTextActions.d.ts +3 -0
  65. package/dist/components/VvInputText/index.d.ts +182 -0
  66. package/dist/components/VvProgress/VvProgress.es.js +71 -0
  67. package/dist/components/VvProgress/VvProgress.umd.js +1 -0
  68. package/dist/components/VvProgress/VvProgress.vue.d.ts +20 -107
  69. package/dist/components/VvProgress/index.d.ts +30 -0
  70. package/dist/components/VvRadio/VvRadio.es.js +320 -0
  71. package/dist/components/VvRadio/VvRadio.umd.js +1 -0
  72. package/dist/components/VvRadio/VvRadio.vue.d.ts +55 -125
  73. package/dist/components/VvRadio/index.d.ts +40 -0
  74. package/dist/components/VvRadioGroup/VvRadioGroup.es.js +398 -0
  75. package/dist/components/VvRadioGroup/VvRadioGroup.umd.js +1 -0
  76. package/dist/components/VvRadioGroup/VvRadioGroup.vue.d.ts +56 -238
  77. package/dist/components/VvRadioGroup/index.d.ts +32 -0
  78. package/dist/components/VvSelect/VvSelect.es.js +415 -0
  79. package/dist/components/VvSelect/VvSelect.umd.js +1 -0
  80. package/dist/components/VvSelect/VvSelect.vue.d.ts +112 -262
  81. package/dist/components/VvSelect/index.d.ts +96 -0
  82. package/dist/components/VvTextarea/VvTextarea.es.js +463 -0
  83. package/dist/components/VvTextarea/VvTextarea.umd.js +1 -0
  84. package/dist/components/VvTextarea/VvTextarea.vue.d.ts +147 -273
  85. package/dist/components/VvTextarea/index.d.ts +102 -0
  86. package/dist/components/common/HintSlot.d.ts +12 -6
  87. package/dist/components/index.d.ts +19 -12
  88. package/dist/components/index.es.js +2309 -0
  89. package/dist/components/index.umd.js +1 -0
  90. package/dist/composables/group/types/IAccordionGroupState.d.ts +3 -4
  91. package/dist/composables/group/types/IButtonGroupState.d.ts +5 -11
  92. package/dist/composables/group/types/IGroupState.d.ts +3 -6
  93. package/dist/composables/group/types/IInputGroup.d.ts +1 -4
  94. package/dist/composables/group/useInjectedGroupState.d.ts +4 -4
  95. package/dist/composables/group/useProvideGroupState.d.ts +2 -2
  96. package/dist/composables/useComponentFocus.d.ts +4 -0
  97. package/dist/composables/{icons/useComponentIcons.d.ts → useComponentIcons.d.ts} +8 -1
  98. package/dist/composables/useDebouncedInput.d.ts +2 -0
  99. package/dist/composables/useModifiers.d.ts +3 -2
  100. package/dist/composables/useOptions.d.ts +6 -0
  101. package/dist/composables/useTextCount.d.ts +10 -0
  102. package/dist/constants.d.ts +4 -4
  103. package/dist/icons.d.ts +1881 -0
  104. package/dist/icons.es.js +12 -14
  105. package/dist/icons.umd.js +1 -1
  106. package/dist/index.d.ts +9 -4
  107. package/dist/index.es.js +2350 -0
  108. package/dist/index.umd.js +1 -0
  109. package/dist/props/index.d.ts +322 -13
  110. package/dist/resolvers/unplugin.d.ts +27 -0
  111. package/dist/resolvers/unplugin.es.js +40 -0
  112. package/dist/resolvers/unplugin.umd.js +1 -0
  113. package/dist/stories/Accordion/Accordion.settings.d.ts +63 -0
  114. package/dist/stories/Accordion/Accordion.test.d.ts +2 -0
  115. package/dist/stories/AccordionGroup/AccordionGroup.settings.d.ts +58 -0
  116. package/dist/stories/AccordionGroup/AccordionGroup.test.d.ts +2 -0
  117. package/dist/stories/Badge/Badge.settings.d.ts +32 -0
  118. package/dist/stories/Badge/Badge.test.d.ts +2 -0
  119. package/dist/stories/Breadcrumb/Breadcrumb.settings.d.ts +29 -0
  120. package/dist/stories/Breadcrumb/Breadcrumb.test.d.ts +2 -0
  121. package/dist/stories/Button/Button.settings.d.ts +200 -0
  122. package/dist/stories/Button/Button.test.d.ts +1 -10
  123. package/dist/stories/ButtonGroup/ButtonGroup.settings.d.ts +38 -0
  124. package/dist/stories/ButtonGroup/ButtonGroup.test.d.ts +2 -0
  125. package/dist/stories/Card/Card.settings.d.ts +70 -0
  126. package/dist/stories/Card/Card.test.d.ts +2 -0
  127. package/dist/stories/Checkbox/Checkbox.settings.d.ts +165 -0
  128. package/dist/stories/Checkbox/Checkbox.test.d.ts +2 -0
  129. package/dist/stories/CheckboxGroup/CheckboxGroup.settings.d.ts +164 -0
  130. package/dist/stories/CheckboxGroup/CheckboxGroup.test.d.ts +2 -0
  131. package/dist/stories/Combobox/Combobox.settings.d.ts +267 -0
  132. package/dist/stories/Combobox/Combobox.test.d.ts +2 -0
  133. package/dist/stories/Dialog/Dialog.settings.d.ts +55 -0
  134. package/dist/stories/Dialog/Dialog.test.d.ts +2 -0
  135. package/dist/stories/Dropdown/Dropdown.settings.d.ts +75 -0
  136. package/dist/stories/Dropdown/Dropdown.test.d.ts +2 -0
  137. package/dist/stories/Icon/Icon.settings.d.ts +74 -0
  138. package/dist/stories/InputText/InputText.settings.d.ts +445 -0
  139. package/dist/stories/InputText/InputText.test.d.ts +2 -0
  140. package/dist/stories/Progress/Progress.settings.d.ts +38 -0
  141. package/dist/stories/Progress/Progress.test.d.ts +2 -0
  142. package/dist/stories/Radio/Radio.settings.d.ts +139 -0
  143. package/dist/stories/Radio/Radio.test.d.ts +2 -0
  144. package/dist/stories/RadioGroup/RadioGroup.settings.d.ts +164 -0
  145. package/dist/stories/RadioGroup/RadioGroup.test.d.ts +2 -0
  146. package/dist/stories/Select/Select.settings.d.ts +265 -0
  147. package/dist/stories/Select/Select.test.d.ts +2 -0
  148. package/dist/stories/Textarea/Textarea.settings.d.ts +336 -0
  149. package/dist/stories/Textarea/Textarea.test.d.ts +2 -0
  150. package/dist/stories/argTypes.d.ts +793 -0
  151. package/dist/test/expect.d.ts +3 -0
  152. package/dist/test/options.d.ts +1 -0
  153. package/dist/test/sleep.d.ts +1 -0
  154. package/dist/utils/ObjectUtilities.d.ts +82 -95
  155. package/env.d.ts +1 -0
  156. package/package.json +198 -124
  157. package/src/{DesignSystem.ts → Volver.ts} +57 -29
  158. package/src/assets/icons/detailed.json +1 -1
  159. package/src/assets/icons/normal.json +1 -1
  160. package/src/assets/icons/simple.json +1 -1
  161. package/src/components/VvAccordion/VvAccordion.vue +94 -78
  162. package/src/components/VvAccordion/index.ts +72 -0
  163. package/src/components/VvAccordionGroup/VvAccordionGroup.vue +93 -53
  164. package/src/components/VvAccordionGroup/{VvAccordionGroup.ts → index.ts} +18 -14
  165. package/src/components/VvBadge/VvBadge.vue +17 -8
  166. package/src/components/VvBadge/index.ts +6 -0
  167. package/src/components/VvBreadcrumb/VvBreadcrumb.vue +26 -24
  168. package/src/components/VvBreadcrumb/{VvBreadcrumb.ts → index.ts} +1 -2
  169. package/src/components/VvButton/VvButton.vue +174 -154
  170. package/src/components/VvButton/index.ts +171 -0
  171. package/src/components/VvButtonGroup/VvButtonGroup.vue +76 -48
  172. package/src/components/VvButtonGroup/index.ts +19 -0
  173. package/src/components/VvCard/VvCard.vue +20 -22
  174. package/src/components/VvCard/{VvCard.ts → index.ts} +1 -1
  175. package/src/components/VvCheckbox/VvCheckbox.vue +172 -0
  176. package/src/components/VvCheckbox/index.ts +60 -0
  177. package/src/components/VvCheckboxGroup/VvCheckboxGroup.vue +85 -0
  178. package/src/components/VvCheckboxGroup/index.ts +5 -0
  179. package/src/components/VvCombobox/VvCombobox.vue +227 -0
  180. package/src/components/VvCombobox/index.ts +82 -0
  181. package/src/components/VvDialog/VvDialog.vue +69 -67
  182. package/src/components/VvDialog/index.ts +10 -0
  183. package/src/components/VvDropdown/VvDropdown.vue +112 -114
  184. package/src/components/VvDropdown/index.ts +25 -0
  185. package/src/components/VvIcon/README.md +64 -0
  186. package/src/components/VvIcon/VvIcon.vue +122 -107
  187. package/src/components/VvIcon/{VvIcon.ts → index.ts} +17 -8
  188. package/src/components/VvInputText/VvInputClearAction.ts +53 -0
  189. package/src/components/VvInputText/VvInputPasswordAction.ts +70 -0
  190. package/src/components/VvInputText/VvInputStepAction.ts +49 -0
  191. package/src/components/VvInputText/VvInputText.vue +293 -252
  192. package/src/components/VvInputText/VvInputTextActions.ts +100 -0
  193. package/src/components/VvInputText/index.ts +140 -0
  194. package/src/components/VvProgress/VvProgress.vue +29 -29
  195. package/src/components/VvProgress/index.ts +32 -0
  196. package/src/components/VvRadio/VvRadio.vue +90 -119
  197. package/src/components/VvRadio/index.ts +40 -0
  198. package/src/components/VvRadioGroup/VvRadioGroup.vue +76 -69
  199. package/src/components/VvRadioGroup/index.ts +5 -0
  200. package/src/components/VvSelect/VvSelect.vue +165 -186
  201. package/src/components/VvSelect/index.ts +74 -0
  202. package/src/components/VvTextarea/VvTextarea.vue +188 -180
  203. package/src/components/VvTextarea/index.ts +50 -0
  204. package/src/components/common/HintSlot.ts +169 -121
  205. package/src/components/index.ts +19 -12
  206. package/src/composables/group/types/IAccordionGroupState.ts +3 -4
  207. package/src/composables/group/types/IButtonGroupState.ts +5 -11
  208. package/src/composables/group/types/IGroupState.ts +4 -6
  209. package/src/composables/group/types/IInputGroup.ts +1 -4
  210. package/src/composables/group/useInjectedGroupState.ts +21 -33
  211. package/src/composables/group/useProvideGroupState.ts +5 -7
  212. package/src/composables/useComponentFocus.ts +17 -0
  213. package/src/composables/useComponentIcons.ts +96 -0
  214. package/src/composables/useDebouncedInput.ts +25 -0
  215. package/src/composables/useModifiers.ts +58 -14
  216. package/src/composables/useOptions.ts +31 -0
  217. package/src/composables/useTextCount.ts +57 -0
  218. package/src/constants.ts +5 -7
  219. package/src/directives/{.README → .gitkeep} +0 -0
  220. package/src/icons.ts +7 -0
  221. package/src/index.ts +12 -5
  222. package/src/props/index.ts +204 -15
  223. package/src/resolvers/unplugin.ts +103 -0
  224. package/src/shims.d.ts +13 -0
  225. package/src/stories/Accordion/Accordion.settings.ts +46 -0
  226. package/src/stories/Accordion/Accordion.stories.mdx +21 -21
  227. package/src/stories/Accordion/Accordion.test.ts +61 -0
  228. package/src/stories/Accordion/AccordionSlots.stories.mdx +46 -70
  229. package/src/stories/AccordionGroup/AccordionGroup.settings.ts +55 -0
  230. package/src/stories/AccordionGroup/AccordionGroup.stories.mdx +24 -27
  231. package/src/stories/AccordionGroup/AccordionGroup.test.ts +50 -0
  232. package/src/stories/AccordionGroup/AccordionGroupSlots.stories.mdx +56 -0
  233. package/src/stories/Badge/Badge.settings.ts +26 -0
  234. package/src/stories/Badge/Badge.stories.mdx +36 -24
  235. package/src/stories/Badge/Badge.test.ts +12 -0
  236. package/src/stories/Badge/BadgeSlots.stories.mdx +20 -0
  237. package/src/stories/Breadcrumb/Breadcrumb.settings.ts +41 -0
  238. package/src/stories/Breadcrumb/Breadcrumb.stories.mdx +32 -29
  239. package/src/stories/Breadcrumb/Breadcrumb.test.ts +50 -0
  240. package/src/stories/Breadcrumb/BreadcrumbSlots.stories.mdx +43 -0
  241. package/src/stories/Button/Button.settings.ts +150 -0
  242. package/src/stories/Button/Button.stories.mdx +20 -54
  243. package/src/stories/Button/Button.test.ts +35 -46
  244. package/src/stories/Button/ButtonIcon.stories.mdx +139 -29
  245. package/src/stories/Button/ButtonLink.stories.mdx +58 -111
  246. package/src/stories/Button/ButtonLoading.stories.mdx +89 -62
  247. package/src/stories/Button/ButtonModifiers.stories.mdx +198 -121
  248. package/src/stories/Button/ButtonSlots.stories.mdx +83 -95
  249. package/src/stories/Button/ButtonState.stories.mdx +75 -0
  250. package/src/stories/Button/ButtonToggle.stories.mdx +50 -0
  251. package/src/stories/ButtonGroup/ButtonGroup.settings.ts +28 -0
  252. package/src/stories/ButtonGroup/ButtonGroup.stories.mdx +16 -18
  253. package/src/stories/ButtonGroup/ButtonGroup.test.ts +35 -0
  254. package/src/stories/ButtonGroup/ButtonGroupModifiers.stories.mdx +52 -0
  255. package/src/stories/ButtonGroup/ButtonGroupToggle.stories.mdx +45 -114
  256. package/src/stories/Card/Card.settings.ts +55 -0
  257. package/src/stories/Card/Card.stories.mdx +27 -11
  258. package/src/stories/Card/Card.test.ts +23 -0
  259. package/src/stories/Card/CardSlots.stories.mdx +80 -24
  260. package/src/stories/Checkbox/Checkbox.settings.ts +43 -0
  261. package/src/stories/Checkbox/Checkbox.stories.mdx +163 -0
  262. package/src/stories/Checkbox/Checkbox.test.ts +81 -0
  263. package/src/stories/Checkbox/CheckboxBinary.stories.mdx +68 -0
  264. package/src/stories/Checkbox/CheckboxSlots.stories.mdx +46 -0
  265. package/src/stories/CheckboxGroup/CheckboxGroup.settings.ts +15 -0
  266. package/src/stories/CheckboxGroup/CheckboxGroup.stories.mdx +134 -0
  267. package/src/stories/CheckboxGroup/CheckboxGroup.test.ts +83 -0
  268. package/src/stories/CheckboxGroup/CheckboxGroupOptions.stories.mdx +100 -0
  269. package/src/stories/CheckboxGroup/CheckboxGroupSlots.stories.mdx +67 -0
  270. package/src/stories/Combobox/Combobox.settings.ts +122 -0
  271. package/src/stories/Combobox/Combobox.stories.mdx +153 -0
  272. package/src/stories/Combobox/Combobox.test.ts +96 -0
  273. package/src/stories/Combobox/ComboboxMultiple.stories.mdx +74 -0
  274. package/src/stories/Combobox/ComboboxOptions.stories.mdx +100 -0
  275. package/src/stories/Combobox/ComboboxSlots.stories.mdx +48 -0
  276. package/src/stories/Dialog/Dialog.settings.ts +45 -0
  277. package/src/stories/Dialog/Dialog.stories.mdx +42 -16
  278. package/src/stories/Dialog/Dialog.test.ts +69 -0
  279. package/src/stories/Dialog/DialogSlots.stories.mdx +63 -0
  280. package/src/stories/Dropdown/Dropdown.settings.ts +42 -0
  281. package/src/stories/Dropdown/Dropdown.stories.mdx +85 -29
  282. package/src/stories/Dropdown/Dropdown.test.ts +43 -0
  283. package/src/stories/Dropdown/DropdownOptions.stories.mdx +87 -67
  284. package/src/stories/Icon/Icon.settings.ts +72 -0
  285. package/src/stories/Icon/Icon.stories.mdx +76 -59
  286. package/src/stories/Icon/IconsCollection.stories.mdx +68 -0
  287. package/src/stories/InputText/InputText.settings.ts +221 -0
  288. package/src/stories/InputText/InputText.stories.mdx +142 -69
  289. package/src/stories/InputText/InputText.test.ts +125 -0
  290. package/src/stories/InputText/InputTextIconPosition.stories.mdx +63 -16
  291. package/src/stories/InputText/InputTextLength.stories.mdx +110 -0
  292. package/src/stories/InputText/InputTextMinMax.stories.mdx +112 -0
  293. package/src/stories/InputText/InputTextSlots.stories.mdx +61 -22
  294. package/src/stories/InputText/InputTextType.stories.mdx +207 -29
  295. package/src/stories/Progress/Progress.settings.ts +33 -0
  296. package/src/stories/Progress/Progress.stories.mdx +12 -14
  297. package/src/stories/Progress/Progress.test.ts +9 -0
  298. package/src/stories/Radio/Radio.settings.ts +15 -0
  299. package/src/stories/Radio/Radio.stories.mdx +102 -42
  300. package/src/stories/Radio/Radio.test.ts +70 -0
  301. package/src/stories/Radio/RadioSlots.stories.mdx +39 -22
  302. package/src/stories/RadioGroup/RadioGroup.settings.ts +15 -0
  303. package/src/stories/RadioGroup/RadioGroup.stories.mdx +115 -54
  304. package/src/stories/RadioGroup/RadioGroup.test.ts +83 -0
  305. package/src/stories/RadioGroup/RadioGroupOptions.stories.mdx +83 -41
  306. package/src/stories/RadioGroup/RadioGroupSlots.stories.mdx +49 -144
  307. package/src/stories/Select/Select.settings.ts +100 -0
  308. package/src/stories/Select/Select.stories.mdx +113 -33
  309. package/src/stories/Select/Select.test.ts +82 -0
  310. package/src/stories/Select/SelectOptions.stories.mdx +91 -69
  311. package/src/stories/Select/SelectSlots.stories.mdx +48 -0
  312. package/src/stories/Textarea/Textarea.settings.ts +96 -0
  313. package/src/stories/Textarea/Textarea.stories.mdx +160 -58
  314. package/src/stories/Textarea/Textarea.test.ts +90 -0
  315. package/src/stories/Textarea/TextareaLength.stories.mdx +110 -0
  316. package/src/stories/Textarea/TextareaSlots.stories.mdx +61 -23
  317. package/src/stories/Textarea/TextareatIconPosition.stories.mdx +78 -0
  318. package/src/stories/argTypes.ts +433 -0
  319. package/src/test/expect.ts +27 -6
  320. package/src/test/options.ts +17 -0
  321. package/src/test/sleep.ts +2 -0
  322. package/src/test/types.d.ts +14 -0
  323. package/src/types/generic.d.ts +5 -0
  324. package/src/utils/ObjectUtilities.ts +253 -244
  325. package/dist/components/VvAccordion/VvAccordion.d.ts +0 -32
  326. package/dist/components/VvAccordion/useAccordionProps.d.ts +0 -16
  327. package/dist/components/VvAccordion/vv-accordion.es.js +0 -262
  328. package/dist/components/VvAccordion/vv-accordion.umd.js +0 -1
  329. package/dist/components/VvAccordionGroup/vv-accordion-group.es.js +0 -315
  330. package/dist/components/VvAccordionGroup/vv-accordion-group.umd.js +0 -1
  331. package/dist/components/VvBadge/vv-badge.es.js +0 -18
  332. package/dist/components/VvBadge/vv-badge.umd.js +0 -1
  333. package/dist/components/VvBreadcrumb/vv-breadcrumb.es.js +0 -206
  334. package/dist/components/VvBreadcrumb/vv-breadcrumb.umd.js +0 -1
  335. package/dist/components/VvButton/VvButton.d.ts +0 -115
  336. package/dist/components/VvButton/useButtonGroupProps.d.ts +0 -23
  337. package/dist/components/VvButton/vv-button.es.js +0 -424
  338. package/dist/components/VvButton/vv-button.umd.js +0 -1
  339. package/dist/components/VvButtonGroup/VvButtonGroup.d.ts +0 -57
  340. package/dist/components/VvButtonGroup/vv-button-group.es.js +0 -210
  341. package/dist/components/VvButtonGroup/vv-button-group.umd.js +0 -1
  342. package/dist/components/VvCard/vv-card.es.js +0 -188
  343. package/dist/components/VvCard/vv-card.umd.js +0 -1
  344. package/dist/components/VvCheck/VvCheck.d.ts +0 -47
  345. package/dist/components/VvCheck/VvCheck.vue.d.ts +0 -165
  346. package/dist/components/VvCheck/useCheckProps.d.ts +0 -16
  347. package/dist/components/VvCheck/vv-check.es.js +0 -321
  348. package/dist/components/VvCheck/vv-check.umd.js +0 -1
  349. package/dist/components/VvCheckGroup/VvCheckGroup.d.ts +0 -65
  350. package/dist/components/VvCheckGroup/VvCheckGroup.vue.d.ts +0 -272
  351. package/dist/components/VvCheckGroup/vv-check-group.es.js +0 -434
  352. package/dist/components/VvCheckGroup/vv-check-group.umd.js +0 -2
  353. package/dist/components/VvDialog/constants.d.ts +0 -5
  354. package/dist/components/VvDialog/vv-dialog.es.js +0 -315
  355. package/dist/components/VvDialog/vv-dialog.umd.js +0 -1
  356. package/dist/components/VvDropdown/VvDropdown.d.ts +0 -52
  357. package/dist/components/VvDropdown/vv-dropdown.es.js +0 -236
  358. package/dist/components/VvDropdown/vv-dropdown.umd.js +0 -1
  359. package/dist/components/VvIcon/vv-icon.es.js +0 -229
  360. package/dist/components/VvIcon/vv-icon.umd.js +0 -1
  361. package/dist/components/VvInputText/VvInputText.d.ts +0 -59
  362. package/dist/components/VvInputText/constants.d.ts +0 -55
  363. package/dist/components/VvInputText/useInputNumber.d.ts +0 -16
  364. package/dist/components/VvInputText/useInputPassword.d.ts +0 -16
  365. package/dist/components/VvInputText/vv-input-text.es.js +0 -596
  366. package/dist/components/VvInputText/vv-input-text.umd.js +0 -2
  367. package/dist/components/VvNativeSelect/VvNativeSelect.d.ts +0 -70
  368. package/dist/components/VvNativeSelect/VvNativeSelect.vue.d.ts +0 -228
  369. package/dist/components/VvNativeSelect/vv-native-select.es.js +0 -395
  370. package/dist/components/VvNativeSelect/vv-native-select.umd.js +0 -2
  371. package/dist/components/VvProgress/VvProgress.d.ts +0 -29
  372. package/dist/components/VvProgress/vv-progress.es.js +0 -185
  373. package/dist/components/VvProgress/vv-progress.umd.js +0 -1
  374. package/dist/components/VvRadio/VvRadio.d.ts +0 -22
  375. package/dist/components/VvRadio/useRadioProps.d.ts +0 -15
  376. package/dist/components/VvRadio/vv-radio.es.js +0 -309
  377. package/dist/components/VvRadio/vv-radio.umd.js +0 -1
  378. package/dist/components/VvRadioGroup/VvRadioGroup.d.ts +0 -54
  379. package/dist/components/VvRadioGroup/vv-radio-group.es.js +0 -423
  380. package/dist/components/VvRadioGroup/vv-radio-group.umd.js +0 -2
  381. package/dist/components/VvSelect/vv-select.es.js +0 -427
  382. package/dist/components/VvSelect/vv-select.umd.js +0 -2
  383. package/dist/components/VvTextarea/VvTextarea.d.ts +0 -67
  384. package/dist/components/VvTextarea/constants.d.ts +0 -19
  385. package/dist/components/VvTextarea/vv-textarea.es.js +0 -472
  386. package/dist/components/VvTextarea/vv-textarea.umd.js +0 -2
  387. package/dist/composables/focus/useComponentFocus.d.ts +0 -7
  388. package/dist/composables/options/useOptions.d.ts +0 -5
  389. package/dist/stories/Icon/IconList.vue.d.ts +0 -44
  390. package/dist/ui-vue.es.js +0 -2985
  391. package/dist/ui-vue.umd.js +0 -2
  392. package/src/assets/icons/index.js +0 -7
  393. package/src/components/VvAccordion/VvAccordion.ts +0 -34
  394. package/src/components/VvAccordion/useAccordionProps.ts +0 -45
  395. package/src/components/VvBadge/VvBadge.ts +0 -4
  396. package/src/components/VvButton/VvButton.ts +0 -117
  397. package/src/components/VvButton/useButtonGroupProps.ts +0 -51
  398. package/src/components/VvButtonGroup/VvButtonGroup.ts +0 -37
  399. package/src/components/VvCheck/VvCheck.ts +0 -48
  400. package/src/components/VvCheck/VvCheck.vue +0 -149
  401. package/src/components/VvCheck/useCheckProps.ts +0 -41
  402. package/src/components/VvCheckGroup/VvCheckGroup.ts +0 -34
  403. package/src/components/VvCheckGroup/VvCheckGroup.vue +0 -84
  404. package/src/components/VvDialog/VvDialog.ts +0 -17
  405. package/src/components/VvDialog/constants.ts +0 -5
  406. package/src/components/VvDropdown/VvDropdown.ts +0 -46
  407. package/src/components/VvInputText/VvInputText.ts +0 -49
  408. package/src/components/VvInputText/constants.ts +0 -34
  409. package/src/components/VvInputText/useInputNumber.ts +0 -40
  410. package/src/components/VvInputText/useInputPassword.ts +0 -38
  411. package/src/components/VvNativeSelect/VvNativeSelect.ts +0 -70
  412. package/src/components/VvNativeSelect/VvNativeSelect.vue +0 -106
  413. package/src/components/VvProgress/VvProgress.ts +0 -28
  414. package/src/components/VvRadio/VvRadio.ts +0 -25
  415. package/src/components/VvRadio/useRadioProps.ts +0 -40
  416. package/src/components/VvRadioGroup/VvRadioGroup.ts +0 -25
  417. package/src/components/VvSelect/VvSelect.ts +0 -91
  418. package/src/components/VvTextarea/VvTextarea.ts +0 -55
  419. package/src/components/VvTextarea/constants.ts +0 -14
  420. package/src/composables/focus/useComponentFocus.ts +0 -22
  421. package/src/composables/icons/useComponentIcons.ts +0 -52
  422. package/src/composables/options/useOptions.ts +0 -27
  423. package/src/stories/Accordion/AccordionBordered.stories.mdx +0 -26
  424. package/src/stories/Accordion/AccordionIconRight.stories.mdx +0 -32
  425. package/src/stories/Accordion/accordionTest.js +0 -36
  426. package/src/stories/AccordionGroup/Accordion.stories.mdx +0 -42
  427. package/src/stories/AccordionGroup/AccordionItems.stories.mdx +0 -51
  428. package/src/stories/AccordionGroup/accordionGroupTest.js +0 -51
  429. package/src/stories/Badge/BadgeColor.stories.mdx +0 -54
  430. package/src/stories/Badge/BadgeDot.stories.mdx +0 -20
  431. package/src/stories/Badge/BadgeTest.js +0 -21
  432. package/src/stories/Breadcrumb/BreadcrumbMultiline.stories.mdx +0 -41
  433. package/src/stories/Button/ButtonBadge.stories.mdx +0 -34
  434. package/src/stories/Button/ButtonIconPosition.stories.mdx +0 -106
  435. package/src/stories/Button/ButtonVariant.stories.mdx +0 -205
  436. package/src/stories/Button/test.js +0 -41
  437. package/src/stories/ButtonGroup/ButtonGroupAction.stories.mdx +0 -83
  438. package/src/stories/ButtonGroup/ButtonGroupActionQuiet.stories.mdx +0 -50
  439. package/src/stories/ButtonGroup/ButtonGroupBlock.stories.mdx +0 -40
  440. package/src/stories/ButtonGroup/ButtonGroupCompact.stories.mdx +0 -38
  441. package/src/stories/ButtonGroup/ButtonGroupRounded.stories.mdx +0 -77
  442. package/src/stories/ButtonGroup/ButtonGroupTest.js +0 -61
  443. package/src/stories/ButtonGroup/ButtonGroupVertical.stories.mdx +0 -38
  444. package/src/stories/Card/CardVariant.stories.mdx +0 -37
  445. package/src/stories/Check/Check.stories.mdx +0 -62
  446. package/src/stories/Check/CheckBinary.stories.mdx +0 -80
  447. package/src/stories/Check/CheckDisabled.stories.mdx +0 -30
  448. package/src/stories/Check/CheckError.stories.mdx +0 -64
  449. package/src/stories/Check/CheckErrorTests.js +0 -72
  450. package/src/stories/Check/CheckHintLabel.stories.mdx +0 -30
  451. package/src/stories/Check/CheckPropertyTest.js +0 -101
  452. package/src/stories/Check/CheckReadonly.stories.mdx +0 -30
  453. package/src/stories/Check/CheckSlots.stories.mdx +0 -51
  454. package/src/stories/Check/CheckSwitch.stories.mdx +0 -30
  455. package/src/stories/CheckGroup/CheckGroup.stories.mdx +0 -69
  456. package/src/stories/CheckGroup/CheckGroupDisabled.stories.mdx +0 -26
  457. package/src/stories/CheckGroup/CheckGroupError.stories.mdx +0 -28
  458. package/src/stories/CheckGroup/CheckGroupHintLabel.stories.mdx +0 -27
  459. package/src/stories/CheckGroup/CheckGroupLabel.stories.mdx +0 -26
  460. package/src/stories/CheckGroup/CheckGroupOptionLabel.stories.mdx +0 -48
  461. package/src/stories/CheckGroup/CheckGroupOptionValue.stories.mdx +0 -48
  462. package/src/stories/CheckGroup/CheckGroupOptions.stories.mdx +0 -40
  463. package/src/stories/CheckGroup/CheckGroupReadonly.stories.mdx +0 -26
  464. package/src/stories/CheckGroup/CheckGroupSlots.stories.mdx +0 -152
  465. package/src/stories/CheckGroup/CheckGroupValid.stories.mdx +0 -28
  466. package/src/stories/CheckGroup/CheckGroupVertical.stories.mdx +0 -26
  467. package/src/stories/Dialog/DialogAutoClose.stories.mdx +0 -18
  468. package/src/stories/Dialog/DialogSize.stories.mdx +0 -36
  469. package/src/stories/Dropdown/DropdownDisabled.stories.mdx +0 -25
  470. package/src/stories/Dropdown/DropdownLabelNoResults.stories.mdx +0 -25
  471. package/src/stories/Dropdown/DropdownMaxValues.stories.mdx +0 -26
  472. package/src/stories/Dropdown/DropdownMultiple.stories.mdx +0 -56
  473. package/src/stories/Dropdown/DropdownUseObject.stories.mdx +0 -58
  474. package/src/stories/Icon/IconList.vue +0 -34
  475. package/src/stories/Icon/IconPrefix.stories.mdx +0 -79
  476. package/src/stories/Icon/IconRemote.stories.mdx +0 -39
  477. package/src/stories/Icon/IconTest.js +0 -27
  478. package/src/stories/Icon/IconsList.stories.mdx +0 -35
  479. package/src/stories/InputText/InputTextAutocomplete.stories.mdx +0 -15
  480. package/src/stories/InputText/InputTextAutofocus.stories.mdx +0 -20
  481. package/src/stories/InputText/InputTextDisabled.stories.mdx +0 -19
  482. package/src/stories/InputText/InputTextError.stories.mdx +0 -19
  483. package/src/stories/InputText/InputTextFloating.stories.mdx +0 -20
  484. package/src/stories/InputText/InputTextHintLabel.stories.mdx +0 -18
  485. package/src/stories/InputText/InputTextIcon.stories.mdx +0 -18
  486. package/src/stories/InputText/InputTextLabel.stories.mdx +0 -15
  487. package/src/stories/InputText/InputTextLoading.stories.mdx +0 -19
  488. package/src/stories/InputText/InputTextMax.stories.mdx +0 -31
  489. package/src/stories/InputText/InputTextMaxLength.stories.mdx +0 -15
  490. package/src/stories/InputText/InputTextMin.stories.mdx +0 -31
  491. package/src/stories/InputText/InputTextMinLength.stories.mdx +0 -15
  492. package/src/stories/InputText/InputTextPlaceholder.stories.mdx +0 -15
  493. package/src/stories/InputText/InputTextReadonly.stories.mdx +0 -19
  494. package/src/stories/InputText/InputTextStep.stories.mdx +0 -31
  495. package/src/stories/InputText/InputTextValid.stories.mdx +0 -19
  496. package/src/stories/NativeSelect/NativeSelect.stories.mdx +0 -53
  497. package/src/stories/NativeSelect/NativeSelectDisabled.stories.mdx +0 -32
  498. package/src/stories/NativeSelect/NativeSelectError.stories.mdx +0 -36
  499. package/src/stories/NativeSelect/NativeSelectHintLabel.stories.mdx +0 -34
  500. package/src/stories/NativeSelect/NativeSelectIconLeftRight.stories.mdx +0 -42
  501. package/src/stories/NativeSelect/NativeSelectLoading.stories.mdx +0 -27
  502. package/src/stories/NativeSelect/NativeSelectOptions.stories.mdx +0 -78
  503. package/src/stories/NativeSelect/NativeSelectReadonly.stories.mdx +0 -34
  504. package/src/stories/NativeSelect/NativeSelectUseObject.stories.mdx +0 -66
  505. package/src/stories/NativeSelect/NativeSelectValid.stories.mdx +0 -36
  506. package/src/stories/NativeSelect/NativeSelectValueKey.stories.mdx +0 -66
  507. package/src/stories/Progress/ProgressDeterminate.stories.mdx +0 -19
  508. package/src/stories/Radio/RadioDisabled.stories.mdx +0 -30
  509. package/src/stories/Radio/RadioError.stories.mdx +0 -64
  510. package/src/stories/Radio/RadioHintLabel.stories.mdx +0 -30
  511. package/src/stories/Radio/RadioTest.js +0 -89
  512. package/src/stories/RadioGroup/RadioGroupDisabled.stories.mdx +0 -29
  513. package/src/stories/RadioGroup/RadioGroupError.stories.mdx +0 -31
  514. package/src/stories/RadioGroup/RadioGroupHintLabel.stories.mdx +0 -28
  515. package/src/stories/RadioGroup/RadioGroupLabel.stories.mdx +0 -29
  516. package/src/stories/RadioGroup/RadioGroupOptionLabel.stories.mdx +0 -65
  517. package/src/stories/RadioGroup/RadioGroupOptionValue.stories.mdx +0 -65
  518. package/src/stories/RadioGroup/RadioGroupReadonly.stories.mdx +0 -29
  519. package/src/stories/RadioGroup/RadioGroupValid.stories.mdx +0 -31
  520. package/src/stories/RadioGroup/RadioGroupVertical.stories.mdx +0 -29
  521. package/src/stories/RadioGroup/RadioOptionsTest.js +0 -78
  522. package/src/stories/RadioGroup/RadioPropertyTest.js +0 -131
  523. package/src/stories/RadioGroup/RadioSlotsTest.js +0 -20
  524. package/src/stories/Select/SelectDisabled.stories.mdx +0 -32
  525. package/src/stories/Select/SelectMaxValues.stories.mdx +0 -33
  526. package/src/stories/Select/SelectMultiple.stories.mdx +0 -64
  527. package/src/stories/Select/SelectSearchable.stories.mdx +0 -80
  528. package/src/stories/Select/SelectSeparator.stories.mdx +0 -64
  529. package/src/stories/Select/SelectUseObject.stories.mdx +0 -66
  530. package/src/stories/Textarea/TextareaAutocomplete.stories.mdx +0 -15
  531. package/src/stories/Textarea/TextareaAutofocus.stories.mdx +0 -20
  532. package/src/stories/Textarea/TextareaDisabled.stories.mdx +0 -19
  533. package/src/stories/Textarea/TextareaError.stories.mdx +0 -19
  534. package/src/stories/Textarea/TextareaFloating.stories.mdx +0 -20
  535. package/src/stories/Textarea/TextareaHintLabel.stories.mdx +0 -18
  536. package/src/stories/Textarea/TextareaIcon.stories.mdx +0 -18
  537. package/src/stories/Textarea/TextareaIconPosition.stories.mdx +0 -31
  538. package/src/stories/Textarea/TextareaLabel.stories.mdx +0 -15
  539. package/src/stories/Textarea/TextareaLoading.stories.mdx +0 -19
  540. package/src/stories/Textarea/TextareaMaxLength.stories.mdx +0 -15
  541. package/src/stories/Textarea/TextareaMinLength.stories.mdx +0 -15
  542. package/src/stories/Textarea/TextareaPlaceholder.stories.mdx +0 -15
  543. package/src/stories/Textarea/TextareaReadonly.stories.mdx +0 -19
  544. package/src/stories/Textarea/TextareaRowsCols.stories.mdx +0 -31
  545. package/src/stories/Textarea/TextareaValid.stories.mdx +0 -19
  546. package/src/stories/stories.scss +0 -24
  547. package/src/stories/volver-ui-vue.stories.mdx +0 -71
  548. package/src/types/.README +0 -0
@@ -1,228 +0,0 @@
1
- import { type Option } from './VvNativeSelect';
2
- declare const _default: {
3
- new (...args: any[]): {
4
- $: import("vue").ComponentInternalInstance;
5
- $data: {};
6
- $props: Partial<{
7
- disabled: boolean;
8
- readonly: boolean;
9
- loading: boolean;
10
- error: boolean;
11
- valid: boolean;
12
- hintLabel: string;
13
- useObject: boolean;
14
- labelKey: string;
15
- valueKey: string;
16
- }> & Omit<Readonly<import("vue").ExtractPropTypes<{
17
- modelValue: {
18
- type: (StringConstructor | ObjectConstructor)[];
19
- required: boolean;
20
- };
21
- label: StringConstructor;
22
- placeholder: StringConstructor;
23
- options: {
24
- type: import("vue").PropType<(string | Option)[]>;
25
- required: boolean;
26
- };
27
- useObject: BooleanConstructor;
28
- labelKey: {
29
- type: StringConstructor;
30
- default: string;
31
- };
32
- valueKey: {
33
- type: StringConstructor;
34
- default: string;
35
- };
36
- iconLeft: StringConstructor;
37
- iconRight: StringConstructor;
38
- modifiers: (StringConstructor | ArrayConstructor)[];
39
- readonly: BooleanConstructor;
40
- disabled: BooleanConstructor;
41
- loading: BooleanConstructor;
42
- loadingLabel: StringConstructor;
43
- hintLabel: {
44
- type: StringConstructor;
45
- default: string;
46
- };
47
- error: BooleanConstructor;
48
- errorLabel: (StringConstructor | ArrayConstructor)[];
49
- valid: BooleanConstructor;
50
- validLabel: (StringConstructor | ArrayConstructor)[];
51
- }>> & {
52
- "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
53
- } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "disabled" | "readonly" | "loading" | "error" | "valid" | "hintLabel" | "useObject" | "labelKey" | "valueKey">;
54
- $attrs: {
55
- [x: string]: unknown;
56
- };
57
- $refs: {
58
- [x: string]: unknown;
59
- };
60
- $slots: Readonly<{
61
- [name: string]: import("vue").Slot | undefined;
62
- }>;
63
- $root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null;
64
- $parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null;
65
- $emit: (event: "update:modelValue", ...args: any[]) => void;
66
- $el: any;
67
- $options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
68
- modelValue: {
69
- type: (StringConstructor | ObjectConstructor)[];
70
- required: boolean;
71
- };
72
- label: StringConstructor;
73
- placeholder: StringConstructor;
74
- options: {
75
- type: import("vue").PropType<(string | Option)[]>;
76
- required: boolean;
77
- };
78
- useObject: BooleanConstructor;
79
- labelKey: {
80
- type: StringConstructor;
81
- default: string;
82
- };
83
- valueKey: {
84
- type: StringConstructor;
85
- default: string;
86
- };
87
- iconLeft: StringConstructor;
88
- iconRight: StringConstructor;
89
- modifiers: (StringConstructor | ArrayConstructor)[];
90
- readonly: BooleanConstructor;
91
- disabled: BooleanConstructor;
92
- loading: BooleanConstructor;
93
- loadingLabel: StringConstructor;
94
- hintLabel: {
95
- type: StringConstructor;
96
- default: string;
97
- };
98
- error: BooleanConstructor;
99
- errorLabel: (StringConstructor | ArrayConstructor)[];
100
- valid: BooleanConstructor;
101
- validLabel: (StringConstructor | ArrayConstructor)[];
102
- }>> & {
103
- "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
104
- }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], string, {
105
- disabled: boolean;
106
- readonly: boolean;
107
- loading: boolean;
108
- error: boolean;
109
- valid: boolean;
110
- hintLabel: string;
111
- useObject: boolean;
112
- labelKey: string;
113
- valueKey: string;
114
- }, {}, string> & {
115
- beforeCreate?: ((() => void) | (() => void)[]) | undefined;
116
- created?: ((() => void) | (() => void)[]) | undefined;
117
- beforeMount?: ((() => void) | (() => void)[]) | undefined;
118
- mounted?: ((() => void) | (() => void)[]) | undefined;
119
- beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
120
- updated?: ((() => void) | (() => void)[]) | undefined;
121
- activated?: ((() => void) | (() => void)[]) | undefined;
122
- deactivated?: ((() => void) | (() => void)[]) | undefined;
123
- beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
124
- beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
125
- destroyed?: ((() => void) | (() => void)[]) | undefined;
126
- unmounted?: ((() => void) | (() => void)[]) | undefined;
127
- renderTracked?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
128
- renderTriggered?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
129
- errorCaptured?: (((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null, info: string) => boolean | void)[]) | undefined;
130
- };
131
- $forceUpdate: () => void;
132
- $nextTick: typeof import("vue").nextTick;
133
- $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (args_0: R, args_1: R) => any : (...args: any) => any, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
134
- } & Readonly<import("vue").ExtractPropTypes<{
135
- modelValue: {
136
- type: (StringConstructor | ObjectConstructor)[];
137
- required: boolean;
138
- };
139
- label: StringConstructor;
140
- placeholder: StringConstructor;
141
- options: {
142
- type: import("vue").PropType<(string | Option)[]>;
143
- required: boolean;
144
- };
145
- useObject: BooleanConstructor;
146
- labelKey: {
147
- type: StringConstructor;
148
- default: string;
149
- };
150
- valueKey: {
151
- type: StringConstructor;
152
- default: string;
153
- };
154
- iconLeft: StringConstructor;
155
- iconRight: StringConstructor;
156
- modifiers: (StringConstructor | ArrayConstructor)[];
157
- readonly: BooleanConstructor;
158
- disabled: BooleanConstructor;
159
- loading: BooleanConstructor;
160
- loadingLabel: StringConstructor;
161
- hintLabel: {
162
- type: StringConstructor;
163
- default: string;
164
- };
165
- error: BooleanConstructor;
166
- errorLabel: (StringConstructor | ArrayConstructor)[];
167
- valid: BooleanConstructor;
168
- validLabel: (StringConstructor | ArrayConstructor)[];
169
- }>> & {
170
- "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
171
- } & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties & {};
172
- __isFragment?: undefined;
173
- __isTeleport?: undefined;
174
- __isSuspense?: undefined;
175
- } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
176
- modelValue: {
177
- type: (StringConstructor | ObjectConstructor)[];
178
- required: boolean;
179
- };
180
- label: StringConstructor;
181
- placeholder: StringConstructor;
182
- options: {
183
- type: import("vue").PropType<(string | Option)[]>;
184
- required: boolean;
185
- };
186
- useObject: BooleanConstructor;
187
- labelKey: {
188
- type: StringConstructor;
189
- default: string;
190
- };
191
- valueKey: {
192
- type: StringConstructor;
193
- default: string;
194
- };
195
- iconLeft: StringConstructor;
196
- iconRight: StringConstructor;
197
- modifiers: (StringConstructor | ArrayConstructor)[];
198
- readonly: BooleanConstructor;
199
- disabled: BooleanConstructor;
200
- loading: BooleanConstructor;
201
- loadingLabel: StringConstructor;
202
- hintLabel: {
203
- type: StringConstructor;
204
- default: string;
205
- };
206
- error: BooleanConstructor;
207
- errorLabel: (StringConstructor | ArrayConstructor)[];
208
- valid: BooleanConstructor;
209
- validLabel: (StringConstructor | ArrayConstructor)[];
210
- }>> & {
211
- "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
212
- }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", {
213
- disabled: boolean;
214
- readonly: boolean;
215
- loading: boolean;
216
- error: boolean;
217
- valid: boolean;
218
- hintLabel: string;
219
- useObject: boolean;
220
- labelKey: string;
221
- valueKey: string;
222
- }, {}, string> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
223
- $slots: {
224
- 'icon-left': (_: {}) => any;
225
- 'icon-right': (_: {}) => any;
226
- };
227
- });
228
- export default _default;
@@ -1,395 +0,0 @@
1
- import { computed as S, unref as d, defineComponent as I, ref as R, toRefs as F, inject as x, openBlock as h, createBlock as D, mergeProps as K, createCommentVNode as w, h as M, useSlots as T, createElementBlock as b, normalizeClass as z, toDisplayString as P, createElementVNode as q, renderSlot as V, Fragment as Z, renderList as J, createVNode as U } from "vue";
2
- import { v4 as G } from "uuid";
3
- import { iconExists as _, Icon as Q, addIcon as W } from "@iconify/vue";
4
- const A = {
5
- equals(e, t, r) {
6
- return r ? this.resolveFieldData(e, r) === this.resolveFieldData(t, r) : this.deepEquals(e, t);
7
- },
8
- deepEquals(e, t) {
9
- if (e === t)
10
- return !0;
11
- if (e && t && typeof e == "object" && typeof t == "object") {
12
- const r = Array.isArray(e), o = Array.isArray(t);
13
- let n, c, u;
14
- if (r && o) {
15
- if (c = e.length, c != t.length)
16
- return !1;
17
- for (n = c; n-- !== 0; )
18
- if (!this.deepEquals(e[n], t[n]))
19
- return !1;
20
- return !0;
21
- }
22
- if (r != o)
23
- return !1;
24
- const s = e instanceof Date, m = t instanceof Date;
25
- if (s != m)
26
- return !1;
27
- if (s && m)
28
- return e.getTime() == t.getTime();
29
- const y = e instanceof RegExp, i = t instanceof RegExp;
30
- if (y != i)
31
- return !1;
32
- if (y && i)
33
- return e.toString() == t.toString();
34
- const l = Object.keys(e);
35
- if (c = l.length, c !== Object.keys(t).length)
36
- return !1;
37
- for (n = c; n-- !== 0; )
38
- if (!Object.prototype.hasOwnProperty.call(t, l[n]))
39
- return !1;
40
- for (n = c; n-- !== 0; )
41
- if (u = l[n], !this.deepEquals(e[u], t[u]))
42
- return !1;
43
- return !0;
44
- }
45
- return e !== e && t !== t;
46
- },
47
- resolveFieldData(e, t) {
48
- if (e && Object.keys(e).length && t) {
49
- if (t.indexOf(".") === -1)
50
- return e[t];
51
- {
52
- const r = t.split(".");
53
- let o = e;
54
- for (let n = 0, c = r.length; n < c; ++n) {
55
- if (e == null)
56
- return null;
57
- o = o[r[n]];
58
- }
59
- return o;
60
- }
61
- } else
62
- return null;
63
- },
64
- isFunction(e) {
65
- return !!(e && e.constructor && e.call && e.apply);
66
- },
67
- findIndexInList(e, t) {
68
- let r = -1;
69
- if (t) {
70
- for (let o = 0; o < t.length; o++)
71
- if (this.equals(t[o], e)) {
72
- r = o;
73
- break;
74
- }
75
- }
76
- return r;
77
- },
78
- contains(e, t) {
79
- if (e != null && t && t.length) {
80
- for (const r of t)
81
- if (this.equals(e, r))
82
- return !0;
83
- }
84
- return !1;
85
- },
86
- isEmpty(e) {
87
- return e == null || e === "" || Array.isArray(e) && e.length === 0 || !(e instanceof Date) && typeof e == "object" && Object.keys(e).length === 0;
88
- },
89
- isNotEmpty(e) {
90
- return !this.isEmpty(e);
91
- },
92
- pickBy(e, t) {
93
- return Object.fromEntries(
94
- Object.entries(e).filter(([r]) => t(r))
95
- );
96
- },
97
- removeFromList(e, t) {
98
- const r = this.findIndexInList(e, t);
99
- return r > -1 ? t.filter((o, n) => n !== r) : t;
100
- },
101
- isString(e) {
102
- return typeof e == "string" || e instanceof String;
103
- },
104
- propsToObject(e) {
105
- return Object.keys(e).reduce((t, r) => {
106
- var o, n, c, u, s;
107
- return this.isFunction(e[r]) ? t[r] = e[r]() : Array.isArray(e[r]) ? t[r] = e[r][0]() : (o = e[r]) != null && o.type && (Array.isArray(e[r].type) ? t[r] = ((n = e[r]) == null ? void 0 : n.default) || ((c = e[r]) == null ? void 0 : c.type[0]()) : t[r] = ((u = e[r]) == null ? void 0 : u.default) || ((s = e[r]) == null ? void 0 : s.type())), t;
108
- }, {});
109
- },
110
- filterArray(e, t, r) {
111
- return e.filter((o) => t.some((n) => typeof n == "string" ? o[r] == n : this.equals(
112
- o[r],
113
- n[r]
114
- )));
115
- },
116
- kebabCase(e) {
117
- var t, r;
118
- if (e)
119
- return (r = (t = e.match(
120
- /[A-Z]{2,}(?=[A-Z][a-z]+[0-9]*|\b)|[A-Z]?[a-z]+[0-9]*|[A-Z]|[0-9]+/g
121
- )) == null ? void 0 : t.join("-")) == null ? void 0 : r.toLowerCase();
122
- }
123
- }, X = {
124
- valid: Boolean,
125
- validLabel: [String, Array]
126
- }, Y = {
127
- error: Boolean,
128
- errorLabel: [String, Array]
129
- }, L = {
130
- loading: Boolean,
131
- loadingLabel: String
132
- }, ee = {
133
- disabled: Boolean
134
- }, te = {
135
- readonly: Boolean
136
- }, re = {
137
- modifiers: [String, Array]
138
- }, ne = {
139
- hintLabel: { type: String, default: "" }
140
- }, se = {
141
- ...X,
142
- ...Y,
143
- ...ne,
144
- ...L,
145
- ...ee,
146
- ...te,
147
- ...re,
148
- modelValue: {
149
- type: [String, Object],
150
- required: !0
151
- },
152
- label: String,
153
- placeholder: String,
154
- options: {
155
- type: Array,
156
- required: !0
157
- },
158
- useObject: Boolean,
159
- labelKey: { type: String, default: "label" },
160
- valueKey: { type: String, default: "value" },
161
- iconLeft: String,
162
- iconRight: String,
163
- modifiers: [String, Array]
164
- }, ie = {
165
- color: String,
166
- width: {
167
- type: [String, Number]
168
- },
169
- height: {
170
- type: [String, Number]
171
- },
172
- name: {
173
- type: String,
174
- required: !0
175
- },
176
- provider: {
177
- type: String
178
- },
179
- prefix: {
180
- type: String,
181
- default: "normal"
182
- },
183
- src: String,
184
- horizontalFlip: Boolean,
185
- verticalFlip: Boolean,
186
- flip: String,
187
- mode: String,
188
- inline: Boolean,
189
- rotate: [Number, String],
190
- onLoad: Function,
191
- svg: String,
192
- modifiers: {
193
- type: [String, Array]
194
- }
195
- };
196
- function H(e, t) {
197
- const r = { [`${e}`]: !0 };
198
- return {
199
- bemCssClasses: S(() => Object.keys(t).reduce((n, c) => {
200
- const u = d(t[c]) || !1;
201
- if (!u)
202
- return n;
203
- if (c === "modifiers") {
204
- const s = Array.isArray(u) ? u : [u];
205
- return {
206
- ...n,
207
- ...s.reduce(
208
- (m, y) => ({
209
- ...m,
210
- [`${e}--${A.kebabCase(
211
- y
212
- )}`]: !0
213
- }),
214
- {}
215
- )
216
- };
217
- } else
218
- return {
219
- ...n,
220
- [`${e}--${A.kebabCase(c)}`]: u
221
- };
222
- }, r) || {})
223
- };
224
- }
225
- const N = /* @__PURE__ */ I({
226
- __name: "VvIcon",
227
- props: ie,
228
- setup(e) {
229
- const t = e, r = R(!0), { modifiers: o } = F(t), n = x("ds"), { bemCssClasses: c } = H("vv-icon", {
230
- modifiers: o
231
- }), u = S(() => t.provider || (n == null ? void 0 : n.provider)), s = S(() => {
232
- const i = t.name || "", l = `@${u.value}:${t.prefix}:${t.name}`;
233
- return _(i) ? i : _(l) ? l : (n == null ? void 0 : n.iconsCollections.find((a) => {
234
- const g = `@${u.value}:${a.prefix}:${i}`;
235
- if (_(g))
236
- return g;
237
- })) || i;
238
- });
239
- function m(i) {
240
- let l = null;
241
- if (typeof window > "u") {
242
- const { JSDOM: E } = require("jsdom");
243
- l = new E().window;
244
- }
245
- return (l ? new l.DOMParser() : new window.DOMParser()).parseFromString(i, "text/html").querySelector("svg");
246
- }
247
- function y(i) {
248
- const l = m(i), a = (l == null ? void 0 : l.innerHTML.trim()) || "";
249
- l && a && W(`@${u.value}:${t.prefix}:${t.name}`, {
250
- body: a,
251
- height: l.viewBox.baseVal.height,
252
- width: l.viewBox.baseVal.width
253
- });
254
- }
255
- return n && (t.src ? (r.value = !1, n.fetchIcon(t.src).then((i) => {
256
- i && (y(i), r.value = !0);
257
- }).catch((i) => {
258
- throw new Error(`During fetch icon: ${i == null ? void 0 : i.message}`);
259
- })) : t.svg && y(t.svg)), (i, l) => r.value ? (h(), D(d(Q), K({
260
- key: 0,
261
- class: d(c)
262
- }, {
263
- ...i.$props,
264
- provider: d(u),
265
- icon: d(s)
266
- }), null, 16, ["class"])) : w("", !0);
267
- }
268
- });
269
- function oe(e) {
270
- return Array.isArray(e) ? e.filter((t) => A.isString(t)).reduce((t, r) => t.length > 0 ? t + `
271
- ` + r : r, "") : e;
272
- }
273
- function le(e, t) {
274
- return {
275
- name: "HintSlot",
276
- setup() {
277
- const r = F(e), {
278
- error: o,
279
- valid: n,
280
- hint: c,
281
- loading: u
282
- } = t, {
283
- hintLabel: s,
284
- modelValue: m,
285
- valid: y,
286
- validLabel: i,
287
- error: l,
288
- errorLabel: a
289
- } = r, g = A.resolveFieldData(r, "loading"), p = A.resolveFieldData(
290
- r,
291
- "loadingLabel"
292
- ), E = S(() => l.value ? !!(l.value && o || (a == null ? void 0 : a.value) && Array.isArray(a.value) && a.value.length > 0 || (a == null ? void 0 : a.value) && A.isNotEmpty(a.value)) : !1), $ = S(() => !!(s && s.value || c || n || i && i.value || E.value || (g == null ? void 0 : g.value) && u || (g == null ? void 0 : g.value) && (p == null ? void 0 : p.value))), O = S(() => Array.isArray(a == null ? void 0 : a.value) ? oe((a == null ? void 0 : a.value) || "") : a == null ? void 0 : a.value), f = S(() => {
293
- const v = { modelValue: m, error: l, valid: y };
294
- return l != null && l.value ? (o == null ? void 0 : o(v)) || (O == null ? void 0 : O.value) || (s == null ? void 0 : s.value) : y != null && y.value ? (n == null ? void 0 : n(v)) || (i == null ? void 0 : i.value) || (s == null ? void 0 : s.value) : g != null && g.value ? (u == null ? void 0 : u(v)) || (p == null ? void 0 : p.value) || (s == null ? void 0 : s.value) : (c == null ? void 0 : c(v)) || (s == null ? void 0 : s.value) || (s == null ? void 0 : s.value);
295
- });
296
- return {
297
- hasHint: $,
298
- hintContent: f
299
- };
300
- },
301
- render() {
302
- if (this.hasHint)
303
- return M("span", null, this.hintContent);
304
- }
305
- };
306
- }
307
- const ue = ["for"], ae = { class: "vv-select__wrapper" }, ce = ["id", "value", "disabled"], fe = {
308
- key: 0,
309
- value: "",
310
- disabled: "",
311
- selected: ""
312
- }, de = ["disabled", "value"], pe = /* @__PURE__ */ I({
313
- __name: "VvNativeSelect",
314
- props: se,
315
- emits: ["update:modelValue"],
316
- setup(e, { emit: t }) {
317
- const r = e, o = T(), n = le(r, o), {
318
- modifiers: c,
319
- disabled: u,
320
- readonly: s,
321
- loading: m,
322
- iconLeft: y,
323
- iconRight: i,
324
- error: l,
325
- valid: a
326
- } = F(r), g = G(), { bemCssClasses: p } = H("vv-select", {
327
- modifiers: c,
328
- loading: m,
329
- readonly: s,
330
- iconLeft: y,
331
- iconRight: i,
332
- valid: a,
333
- invalid: l,
334
- dirty: S(() => A.isNotEmpty(r.modelValue))
335
- });
336
- function E(f) {
337
- return typeof f == "string" ? f : f[r.valueKey];
338
- }
339
- function $(f) {
340
- return typeof f == "string" ? f : f[r.labelKey];
341
- }
342
- function O(f) {
343
- var j;
344
- const v = f.target, C = (r.useObject ? (j = r.options) == null ? void 0 : j.find(
345
- (B) => B[r.valueKey] == v.value
346
- ) : null) || v.value;
347
- t("update:modelValue", C);
348
- }
349
- return (f, v) => {
350
- var k;
351
- return h(), b("div", {
352
- class: z(d(p))
353
- }, [
354
- f.label ? (h(), b("label", {
355
- key: 0,
356
- for: d(g)
357
- }, P(f.label), 9, ue)) : w("", !0),
358
- q("div", ae, [
359
- V(f.$slots, "icon-left", {}, () => [
360
- d(y) ? (h(), D(N, {
361
- key: 0,
362
- name: d(y)
363
- }, null, 8, ["name"])) : w("", !0)
364
- ]),
365
- q("select", {
366
- id: d(g),
367
- value: typeof f.modelValue == "string" ? f.modelValue : (k = f.modelValue) == null ? void 0 : k[f.valueKey],
368
- disabled: d(u) || d(s),
369
- onInput: O
370
- }, [
371
- f.placeholder ? (h(), b("option", fe, P(f.placeholder), 1)) : w("", !0),
372
- (h(!0), b(Z, null, J(f.options, (C, j) => {
373
- var B;
374
- return h(), b("option", {
375
- key: j,
376
- disabled: typeof C == "object" ? (B = C.disabled) != null ? B : d(u) : d(u),
377
- value: E(C)
378
- }, P($(C)), 9, de);
379
- }), 128))
380
- ], 40, ce),
381
- V(f.$slots, "icon-right", {}, () => [
382
- d(i) ? (h(), D(N, {
383
- key: 0,
384
- name: d(i)
385
- }, null, 8, ["name"])) : w("", !0)
386
- ])
387
- ]),
388
- U(d(n), { class: "vv-select__hint" })
389
- ], 2);
390
- };
391
- }
392
- });
393
- export {
394
- pe as default
395
- };
@@ -1,2 +0,0 @@
1
- (function(t,B){typeof exports=="object"&&typeof module<"u"?module.exports=B(require("vue"),require("uuid"),require("@iconify/vue")):typeof define=="function"&&define.amd?define(["vue","uuid","@iconify/vue"],B):(t=typeof globalThis<"u"?globalThis:t||self,t.VvNativeSelect=B(t.vue,t.uuid,t.vue$1))})(this,function(t,B,k){"use strict";const S={equals(e,r,n){return n?this.resolveFieldData(e,n)===this.resolveFieldData(r,n):this.deepEquals(e,r)},deepEquals(e,r){if(e===r)return!0;if(e&&r&&typeof e=="object"&&typeof r=="object"){const n=Array.isArray(e),l=Array.isArray(r);let s,f,a;if(n&&l){if(f=e.length,f!=r.length)return!1;for(s=f;s--!==0;)if(!this.deepEquals(e[s],r[s]))return!1;return!0}if(n!=l)return!1;const o=e instanceof Date,y=r instanceof Date;if(o!=y)return!1;if(o&&y)return e.getTime()==r.getTime();const p=e instanceof RegExp,i=r instanceof RegExp;if(p!=i)return!1;if(p&&i)return e.toString()==r.toString();const c=Object.keys(e);if(f=c.length,f!==Object.keys(r).length)return!1;for(s=f;s--!==0;)if(!Object.prototype.hasOwnProperty.call(r,c[s]))return!1;for(s=f;s--!==0;)if(a=c[s],!this.deepEquals(e[a],r[a]))return!1;return!0}return e!==e&&r!==r},resolveFieldData(e,r){if(e&&Object.keys(e).length&&r){if(r.indexOf(".")===-1)return e[r];{const n=r.split(".");let l=e;for(let s=0,f=n.length;s<f;++s){if(e==null)return null;l=l[n[s]]}return l}}else return null},isFunction(e){return!!(e&&e.constructor&&e.call&&e.apply)},findIndexInList(e,r){let n=-1;if(r){for(let l=0;l<r.length;l++)if(this.equals(r[l],e)){n=l;break}}return n},contains(e,r){if(e!=null&&r&&r.length){for(const n of r)if(this.equals(e,n))return!0}return!1},isEmpty(e){return e==null||e===""||Array.isArray(e)&&e.length===0||!(e instanceof Date)&&typeof e=="object"&&Object.keys(e).length===0},isNotEmpty(e){return!this.isEmpty(e)},pickBy(e,r){return Object.fromEntries(Object.entries(e).filter(([n])=>r(n)))},removeFromList(e,r){const n=this.findIndexInList(e,r);return n>-1?r.filter((l,s)=>s!==n):r},isString(e){return typeof e=="string"||e instanceof String},propsToObject(e){return Object.keys(e).reduce((r,n)=>{var l,s,f,a,o;return this.isFunction(e[n])?r[n]=e[n]():Array.isArray(e[n])?r[n]=e[n][0]():(l=e[n])!=null&&l.type&&(Array.isArray(e[n].type)?r[n]=((s=e[n])==null?void 0:s.default)||((f=e[n])==null?void 0:f.type[0]()):r[n]=((a=e[n])==null?void 0:a.default)||((o=e[n])==null?void 0:o.type())),r},{})},filterArray(e,r,n){return e.filter(l=>r.some(s=>typeof s=="string"?l[n]==s:this.equals(l[n],s[n])))},kebabCase(e){var r,n;if(e)return(n=(r=e.match(/[A-Z]{2,}(?=[A-Z][a-z]+[0-9]*|\b)|[A-Z]?[a-z]+[0-9]*|[A-Z]|[0-9]+/g))==null?void 0:r.join("-"))==null?void 0:n.toLowerCase()}},D={...{valid:Boolean,validLabel:[String,Array]},...{error:Boolean,errorLabel:[String,Array]},...{hintLabel:{type:String,default:""}},...{loading:Boolean,loadingLabel:String},...{disabled:Boolean},...{readonly:Boolean},...{modifiers:[String,Array]},modelValue:{type:[String,Object],required:!0},label:String,placeholder:String,options:{type:Array,required:!0},useObject:Boolean,labelKey:{type:String,default:"label"},valueKey:{type:String,default:"value"},iconLeft:String,iconRight:String,modifiers:[String,Array]},_={color:String,width:{type:[String,Number]},height:{type:[String,Number]},name:{type:String,required:!0},provider:{type:String},prefix:{type:String,default:"normal"},src:String,horizontalFlip:Boolean,verticalFlip:Boolean,flip:String,mode:String,inline:Boolean,rotate:[Number,String],onLoad:Function,svg:String,modifiers:{type:[String,Array]}};function V(e,r){const n={[`${e}`]:!0};return{bemCssClasses:t.computed(()=>Object.keys(r).reduce((s,f)=>{const a=t.unref(r[f])||!1;if(!a)return s;if(f==="modifiers"){const o=Array.isArray(a)?a:[a];return{...s,...o.reduce((y,p)=>({...y,[`${e}--${S.kebabCase(p)}`]:!0}),{})}}else return{...s,[`${e}--${S.kebabCase(f)}`]:a}},n)||{})}}const b=t.defineComponent({__name:"VvIcon",props:_,setup(e){const r=e,n=t.ref(!0),{modifiers:l}=t.toRefs(r),s=t.inject("ds"),{bemCssClasses:f}=V("vv-icon",{modifiers:l}),a=t.computed(()=>r.provider||(s==null?void 0:s.provider)),o=t.computed(()=>{const i=r.name||"",c=`@${a.value}:${r.prefix}:${r.name}`;return k.iconExists(i)?i:k.iconExists(c)?c:(s==null?void 0:s.iconsCollections.find(u=>{const m=`@${a.value}:${u.prefix}:${i}`;if(k.iconExists(m))return m}))||i});function y(i){let c=null;if(typeof window>"u"){const{JSDOM:E}=require("jsdom");c=new E().window}return(c?new c.DOMParser:new window.DOMParser).parseFromString(i,"text/html").querySelector("svg")}function p(i){const c=y(i),u=(c==null?void 0:c.innerHTML.trim())||"";c&&u&&k.addIcon(`@${a.value}:${r.prefix}:${r.name}`,{body:u,height:c.viewBox.baseVal.height,width:c.viewBox.baseVal.width})}return s&&(r.src?(n.value=!1,s.fetchIcon(r.src).then(i=>{i&&(p(i),n.value=!0)}).catch(i=>{throw new Error(`During fetch icon: ${i==null?void 0:i.message}`)})):r.svg&&p(r.svg)),(i,c)=>n.value?(t.openBlock(),t.createBlock(t.unref(k.Icon),t.mergeProps({key:0,class:t.unref(f)},{...i.$props,provider:t.unref(a),icon:t.unref(o)}),null,16,["class"])):t.createCommentVNode("",!0)}});function N(e){return Array.isArray(e)?e.filter(r=>S.isString(r)).reduce((r,n)=>r.length>0?r+`
2
- `+n:n,""):e}function q(e,r){return{name:"HintSlot",setup(){const n=t.toRefs(e),{error:l,valid:s,hint:f,loading:a}=r,{hintLabel:o,modelValue:y,valid:p,validLabel:i,error:c,errorLabel:u}=n,m=S.resolveFieldData(n,"loading"),g=S.resolveFieldData(n,"loadingLabel"),E=t.computed(()=>c.value?!!(c.value&&l||(u==null?void 0:u.value)&&Array.isArray(u.value)&&u.value.length>0||(u==null?void 0:u.value)&&S.isNotEmpty(u.value)):!1),j=t.computed(()=>!!(o&&o.value||f||s||i&&i.value||E.value||(m==null?void 0:m.value)&&a||(m==null?void 0:m.value)&&(g==null?void 0:g.value))),C=t.computed(()=>Array.isArray(u==null?void 0:u.value)?N((u==null?void 0:u.value)||""):u==null?void 0:u.value),d=t.computed(()=>{const h={modelValue:y,error:c,valid:p};return c!=null&&c.value?(l==null?void 0:l(h))||(C==null?void 0:C.value)||(o==null?void 0:o.value):p!=null&&p.value?(s==null?void 0:s(h))||(i==null?void 0:i.value)||(o==null?void 0:o.value):m!=null&&m.value?(a==null?void 0:a(h))||(g==null?void 0:g.value)||(o==null?void 0:o.value):(f==null?void 0:f(h))||(o==null?void 0:o.value)||(o==null?void 0:o.value)});return{hasHint:j,hintContent:d}},render(){if(this.hasHint)return t.h("span",null,this.hintContent)}}}const $=["for"],F={class:"vv-select__wrapper"},I=["id","value","disabled"],R={key:0,value:"",disabled:"",selected:""},x=["disabled","value"];return t.defineComponent({__name:"VvNativeSelect",props:D,emits:["update:modelValue"],setup(e,{emit:r}){const n=e,l=t.useSlots(),s=q(n,l),{modifiers:f,disabled:a,readonly:o,loading:y,iconLeft:p,iconRight:i,error:c,valid:u}=t.toRefs(n),m=B.v4(),{bemCssClasses:g}=V("vv-select",{modifiers:f,loading:y,readonly:o,iconLeft:p,iconRight:i,valid:u,invalid:c,dirty:t.computed(()=>S.isNotEmpty(n.modelValue))});function E(d){return typeof d=="string"?d:d[n.valueKey]}function j(d){return typeof d=="string"?d:d[n.labelKey]}function C(d){var P;const h=d.target,A=(n.useObject?(P=n.options)==null?void 0:P.find(O=>O[n.valueKey]==h.value):null)||h.value;r("update:modelValue",A)}return(d,h)=>{var w;return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(t.unref(g))},[d.label?(t.openBlock(),t.createElementBlock("label",{key:0,for:t.unref(m)},t.toDisplayString(d.label),9,$)):t.createCommentVNode("",!0),t.createElementVNode("div",F,[t.renderSlot(d.$slots,"icon-left",{},()=>[t.unref(p)?(t.openBlock(),t.createBlock(b,{key:0,name:t.unref(p)},null,8,["name"])):t.createCommentVNode("",!0)]),t.createElementVNode("select",{id:t.unref(m),value:typeof d.modelValue=="string"?d.modelValue:(w=d.modelValue)==null?void 0:w[d.valueKey],disabled:t.unref(a)||t.unref(o),onInput:C},[d.placeholder?(t.openBlock(),t.createElementBlock("option",R,t.toDisplayString(d.placeholder),1)):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(d.options,(A,P)=>{var O;return t.openBlock(),t.createElementBlock("option",{key:P,disabled:typeof A=="object"&&(O=A.disabled)!=null?O:t.unref(a),value:E(A)},t.toDisplayString(j(A)),9,x)}),128))],40,I),t.renderSlot(d.$slots,"icon-right",{},()=>[t.unref(i)?(t.openBlock(),t.createBlock(b,{key:0,name:t.unref(i)},null,8,["name"])):t.createCommentVNode("",!0)])]),t.createVNode(t.unref(s),{class:"vv-select__hint"})],2)}}})});
@@ -1,29 +0,0 @@
1
- export declare const VvProgressProps: {
2
- /**
3
- * Progress value
4
- */
5
- value: {
6
- type: (StringConstructor | NumberConstructor)[];
7
- };
8
- /**
9
- * Progress max value
10
- */
11
- max: {
12
- type: (StringConstructor | NumberConstructor)[];
13
- };
14
- /**
15
- * Progress label
16
- */
17
- ariaLabel: {
18
- type: StringConstructor;
19
- default: string;
20
- };
21
- /**
22
- * determinate attribute
23
- */
24
- determinate: {
25
- type: BooleanConstructor;
26
- default: boolean;
27
- };
28
- modifiers: (StringConstructor | ArrayConstructor)[];
29
- };