@volverjs/ui-vue 0.0.10-beta.7 → 0.0.10-beta.70

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 (1091) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +150 -54
  3. package/bin/icons.cjs +1 -1
  4. package/bin/icons.js +39 -28
  5. package/dist/Volver.d.ts +24 -13
  6. package/dist/components/VvAccordion/VvAccordion.es.js +159 -271
  7. package/dist/components/VvAccordion/VvAccordion.umd.js +1 -1
  8. package/dist/components/VvAccordion/VvAccordion.vue.d.ts +35 -15
  9. package/dist/components/VvAccordion/index.d.ts +8 -9
  10. package/dist/components/VvAccordionGroup/VvAccordionGroup.es.js +448 -364
  11. package/dist/components/VvAccordionGroup/VvAccordionGroup.umd.js +1 -1
  12. package/dist/components/VvAccordionGroup/VvAccordionGroup.vue.d.ts +66 -19
  13. package/dist/components/VvAccordionGroup/index.d.ts +16 -8
  14. package/dist/components/VvAction/VvAction.es.js +77 -141
  15. package/dist/components/VvAction/VvAction.umd.js +1 -1
  16. package/dist/components/VvAction/VvAction.vue.d.ts +63 -30
  17. package/dist/components/VvAction/index.d.ts +26 -10
  18. package/dist/components/VvAlert/VvAlert.es.js +321 -480
  19. package/dist/components/VvAlert/VvAlert.umd.js +1 -1
  20. package/dist/components/VvAlert/VvAlert.vue.d.ts +40 -26
  21. package/dist/components/VvAlert/index.d.ts +20 -11
  22. package/dist/components/VvAlertGroup/VvAlertGroup.es.js +361 -491
  23. package/dist/components/VvAlertGroup/VvAlertGroup.umd.js +1 -1
  24. package/dist/components/VvAlertGroup/VvAlertGroup.vue.d.ts +28 -21
  25. package/dist/components/VvAlertGroup/index.d.ts +10 -18
  26. package/dist/components/VvAvatar/VvAvatar.es.js +33 -195
  27. package/dist/components/VvAvatar/VvAvatar.umd.js +1 -1
  28. package/dist/components/VvAvatar/VvAvatar.vue.d.ts +15 -7
  29. package/dist/components/VvAvatar/index.d.ts +4 -1
  30. package/dist/components/VvAvatarGroup/VvAvatarGroup.es.js +115 -242
  31. package/dist/components/VvAvatarGroup/VvAvatarGroup.umd.js +1 -1
  32. package/dist/components/VvAvatarGroup/VvAvatarGroup.vue.d.ts +19 -12
  33. package/dist/components/VvAvatarGroup/index.d.ts +6 -3
  34. package/dist/components/VvBadge/VvBadge.es.js +45 -201
  35. package/dist/components/VvBadge/VvBadge.umd.js +1 -1
  36. package/dist/components/VvBadge/VvBadge.vue.d.ts +15 -7
  37. package/dist/components/VvBadge/index.d.ts +4 -1
  38. package/dist/components/VvBreadcrumb/VvBreadcrumb.es.js +285 -189
  39. package/dist/components/VvBreadcrumb/VvBreadcrumb.umd.js +1 -1
  40. package/dist/components/VvBreadcrumb/VvBreadcrumb.vue.d.ts +31 -11
  41. package/dist/components/VvBreadcrumb/index.d.ts +6 -10
  42. package/dist/components/VvButton/VvButton.es.js +466 -550
  43. package/dist/components/VvButton/VvButton.umd.js +1 -1
  44. package/dist/components/VvButton/VvButton.vue.d.ts +106 -56
  45. package/dist/components/VvButton/index.d.ts +52 -30
  46. package/dist/components/VvButtonGroup/VvButtonGroup.es.js +66 -207
  47. package/dist/components/VvButtonGroup/VvButtonGroup.umd.js +1 -1
  48. package/dist/components/VvButtonGroup/VvButtonGroup.vue.d.ts +38 -19
  49. package/dist/components/VvButtonGroup/index.d.ts +13 -4
  50. package/dist/components/VvCard/VvCard.es.js +54 -209
  51. package/dist/components/VvCard/VvCard.umd.js +1 -1
  52. package/dist/components/VvCard/VvCard.vue.d.ts +21 -10
  53. package/dist/components/VvCard/index.d.ts +4 -1
  54. package/dist/components/VvCheckbox/VvCheckbox.es.js +152 -293
  55. package/dist/components/VvCheckbox/VvCheckbox.umd.js +1 -1
  56. package/dist/components/VvCheckbox/VvCheckbox.vue.d.ts +119 -45
  57. package/dist/components/VvCheckbox/index.d.ts +52 -19
  58. package/dist/components/VvCheckboxGroup/VvCheckboxGroup.es.js +390 -474
  59. package/dist/components/VvCheckboxGroup/VvCheckboxGroup.umd.js +1 -1
  60. package/dist/components/VvCheckboxGroup/VvCheckboxGroup.vue.d.ts +126 -44
  61. package/dist/components/VvCheckboxGroup/index.d.ts +49 -12
  62. package/dist/components/VvCombobox/VvCombobox.es.js +2432 -1986
  63. package/dist/components/VvCombobox/VvCombobox.umd.js +1 -1
  64. package/dist/components/VvCombobox/VvCombobox.vue.d.ts +277 -672
  65. package/dist/components/VvCombobox/index.d.ts +429 -138
  66. package/dist/components/VvDialog/VvDialog.es.js +140 -460
  67. package/dist/components/VvDialog/VvDialog.umd.js +1 -1
  68. package/dist/components/VvDialog/VvDialog.vue.d.ts +29 -11
  69. package/dist/components/VvDialog/index.d.ts +12 -0
  70. package/dist/components/VvDropdown/VvDropdown.es.js +142 -170
  71. package/dist/components/VvDropdown/VvDropdown.umd.js +1 -1
  72. package/dist/components/VvDropdown/VvDropdown.vue.d.ts +114 -330
  73. package/dist/components/VvDropdown/VvDropdownAction.vue.d.ts +73 -29
  74. package/dist/components/VvDropdown/VvDropdownItem.vue.d.ts +15 -3
  75. package/dist/components/VvDropdown/VvDropdownOptgroup.vue.d.ts +13 -5
  76. package/dist/components/VvDropdown/VvDropdownOption.vue.d.ts +43 -14
  77. package/dist/components/VvDropdown/index.d.ts +52 -118
  78. package/dist/components/VvDropdownAction/VvDropdownAction.es.js +130 -166
  79. package/dist/components/VvDropdownAction/VvDropdownAction.umd.js +1 -1
  80. package/dist/components/VvDropdownItem/VvDropdownItem.es.js +103 -11
  81. package/dist/components/VvDropdownItem/VvDropdownItem.umd.js +1 -1
  82. package/dist/components/VvDropdownOptgroup/VvDropdownOptgroup.es.js +35 -183
  83. package/dist/components/VvDropdownOptgroup/VvDropdownOptgroup.umd.js +1 -1
  84. package/dist/components/VvDropdownOption/VvDropdownOption.es.js +128 -237
  85. package/dist/components/VvDropdownOption/VvDropdownOption.umd.js +1 -1
  86. package/dist/components/VvIcon/VvIcon.es.js +29 -108
  87. package/dist/components/VvIcon/VvIcon.umd.js +1 -1
  88. package/dist/components/VvIcon/VvIcon.vue.d.ts +4 -68
  89. package/dist/components/VvIcon/index.d.ts +34 -49
  90. package/dist/components/VvInputFile/VvInputFile.es.js +1716 -0
  91. package/dist/components/VvInputFile/VvInputFile.umd.js +1 -0
  92. package/dist/components/VvInputFile/VvInputFile.vue.d.ts +330 -0
  93. package/dist/components/VvInputFile/index.d.ts +197 -0
  94. package/dist/components/VvInputText/VvInputText.es.js +1660 -643
  95. package/dist/components/VvInputText/VvInputText.umd.js +1 -1
  96. package/dist/components/VvInputText/VvInputText.vue.d.ts +255 -90
  97. package/dist/components/VvInputText/VvInputTextActions.d.ts +4 -3
  98. package/dist/components/VvInputText/index.d.ts +113 -35
  99. package/dist/components/VvNav/VvNav.es.js +148 -183
  100. package/dist/components/VvNav/VvNav.umd.js +1 -1
  101. package/dist/components/VvNav/VvNav.vue.d.ts +35 -13
  102. package/dist/components/VvNav/VvNavItem.vue.d.ts +3 -3
  103. package/dist/components/VvNav/VvNavSeparator.vue.d.ts +1 -1
  104. package/dist/components/VvNav/index.d.ts +5 -2
  105. package/dist/components/VvNavItem/VvNavItem.es.js +93 -147
  106. package/dist/components/VvNavItem/VvNavItem.umd.js +1 -1
  107. package/dist/components/VvNavSeparator/VvNavSeparator.es.js +1 -1
  108. package/dist/components/VvProgress/VvProgress.es.js +40 -194
  109. package/dist/components/VvProgress/VvProgress.umd.js +1 -1
  110. package/dist/components/VvProgress/VvProgress.vue.d.ts +13 -6
  111. package/dist/components/VvProgress/index.d.ts +4 -1
  112. package/dist/components/VvRadio/VvRadio.es.js +150 -292
  113. package/dist/components/VvRadio/VvRadio.umd.js +1 -1
  114. package/dist/components/VvRadio/VvRadio.vue.d.ts +117 -43
  115. package/dist/components/VvRadio/index.d.ts +50 -17
  116. package/dist/components/VvRadioGroup/VvRadioGroup.es.js +388 -473
  117. package/dist/components/VvRadioGroup/VvRadioGroup.umd.js +1 -1
  118. package/dist/components/VvRadioGroup/VvRadioGroup.vue.d.ts +126 -44
  119. package/dist/components/VvRadioGroup/index.d.ts +49 -12
  120. package/dist/components/VvSelect/VvSelect.es.js +749 -762
  121. package/dist/components/VvSelect/VvSelect.umd.js +1 -1
  122. package/dist/components/VvSelect/VvSelect.vue.d.ts +115 -199
  123. package/dist/components/VvSelect/index.d.ts +228 -16
  124. package/dist/components/VvTab/VvTab.es.js +224 -219
  125. package/dist/components/VvTab/VvTab.umd.js +1 -1
  126. package/dist/components/VvTab/VvTab.vue.d.ts +37 -13
  127. package/dist/components/VvTab/index.d.ts +6 -3
  128. package/dist/components/VvTextarea/VvTextarea.es.js +1512 -672
  129. package/dist/components/VvTextarea/VvTextarea.umd.js +1 -1
  130. package/dist/components/VvTextarea/VvTextarea.vue.d.ts +230 -66
  131. package/dist/components/VvTextarea/index.d.ts +105 -20
  132. package/dist/components/VvTooltip/VvTooltip.es.js +51 -198
  133. package/dist/components/VvTooltip/VvTooltip.umd.js +1 -1
  134. package/dist/components/VvTooltip/VvTooltip.vue.d.ts +17 -10
  135. package/dist/components/VvTooltip/index.d.ts +5 -2
  136. package/dist/components/common/HintSlot.d.ts +8 -9
  137. package/dist/components/common/VvInputClearAction.d.ts +52 -0
  138. package/dist/components/common/VvInputPasswordAction.d.ts +71 -0
  139. package/dist/components/common/VvInputStepAction.d.ts +50 -0
  140. package/dist/components/index.d.ts +10 -0
  141. package/dist/components/index.es.js +4614 -2137
  142. package/dist/components/index.umd.js +1 -1
  143. package/dist/composables/alert/useAlerInject.d.ts +4 -0
  144. package/dist/composables/alert/useAlert.d.ts +71 -6
  145. package/dist/composables/alert/{useProvideAlert.d.ts → useAlertProvide.d.ts} +1 -1
  146. package/dist/composables/dropdown/useDropdownContextmenu.d.ts +18 -0
  147. package/dist/composables/dropdown/useDropdownInject.d.ts +12 -0
  148. package/dist/composables/dropdown/{useProvideDropdown.d.ts → useDropdownProvide.d.ts} +8 -8
  149. package/dist/composables/dropdown/useDropdownVirtualElement.d.ts +17 -0
  150. package/dist/composables/group/useGroupStateInject.d.ts +9 -0
  151. package/dist/composables/group/useGroupStateProvide.d.ts +6 -0
  152. package/dist/composables/index.d.ts +3 -0
  153. package/dist/composables/index.es.js +177 -6
  154. package/dist/composables/index.umd.js +1 -1
  155. package/dist/composables/useBlurhash.d.ts +7 -0
  156. package/dist/composables/useComponentFocus.d.ts +2 -2
  157. package/dist/composables/useComponentIcon.d.ts +9 -8
  158. package/dist/composables/useOptions.d.ts +5 -5
  159. package/dist/composables/usePersistence.d.ts +3 -0
  160. package/dist/composables/useUniqueId.d.ts +1 -1
  161. package/dist/composables/useVolver.d.ts +4 -1
  162. package/dist/constants.d.ts +35 -33
  163. package/dist/directives/index.d.ts +3 -5
  164. package/dist/directives/index.es.js +210 -246
  165. package/dist/directives/index.umd.js +1 -1
  166. package/dist/directives/v-contextmenu.es.js +136 -31
  167. package/dist/directives/v-contextmenu.umd.js +1 -1
  168. package/dist/directives/v-tooltip.d.ts +1 -1
  169. package/dist/directives/v-tooltip.es.js +69 -207
  170. package/dist/directives/v-tooltip.umd.js +1 -1
  171. package/dist/icons.d.ts +17 -17
  172. package/dist/icons.es.js +14 -1884
  173. package/dist/icons.umd.js +1 -1
  174. package/dist/index.d.ts +3 -1
  175. package/dist/index.es.js +83 -7
  176. package/dist/index.umd.js +1 -1
  177. package/dist/props/index.d.ts +297 -200
  178. package/dist/resolvers/unplugin.d.ts +7 -2
  179. package/dist/resolvers/unplugin.es.js +91 -14
  180. package/dist/resolvers/unplugin.umd.js +1 -1
  181. package/dist/stories/Accordion/Accordion.settings.d.ts +2 -57
  182. package/dist/stories/AccordionGroup/AccordionGroup.settings.d.ts +2 -66
  183. package/dist/stories/AccordionGroup/AccordionGroup.stories.d.ts +2 -162
  184. package/dist/stories/AccordionGroup/AccordionGroupSlots.stories.d.ts +1625 -790
  185. package/dist/stories/Alert/Alert.settings.d.ts +2 -109
  186. package/dist/stories/Alert/AlertModifiers.stories.d.ts +1 -1
  187. package/dist/stories/Alert/AlertSlots.stories.d.ts +1 -1
  188. package/dist/stories/AlertGroup/AlertGroup.settings.d.ts +2 -85
  189. package/dist/stories/AlertGroup/AlertGroupPosition.stories.d.ts +1 -1
  190. package/dist/stories/AlertGroup/AlertGroupSlots.stories.d.ts +1 -1
  191. package/dist/stories/AlertGroup/AlertGroupWithComposable.stories.d.ts +2 -2
  192. package/dist/stories/AvatarGroup/AvatarGroup.settings.d.ts +2 -38
  193. package/dist/stories/Badge/Badge.settings.d.ts +2 -26
  194. package/dist/stories/Badge/Badge.test.d.ts +1 -1
  195. package/dist/stories/Blurhash/BlurhashComposable.stories.d.ts +4 -0
  196. package/dist/stories/Breadcrumb/Breadcrumb.settings.d.ts +2 -18
  197. package/dist/stories/Breadcrumb/Breadcrumb.test.d.ts +1 -1
  198. package/dist/stories/Button/Button.settings.d.ts +2 -194
  199. package/dist/stories/ButtonGroup/ButtonGroup.settings.d.ts +2 -40
  200. package/dist/stories/Card/Card.settings.d.ts +2 -63
  201. package/dist/stories/Checkbox/Checkbox.settings.d.ts +2 -132
  202. package/dist/stories/CheckboxGroup/CheckboxGroup.settings.d.ts +1 -141
  203. package/dist/stories/Combobox/Combobox.settings.d.ts +2 -617
  204. package/dist/stories/Combobox/Combobox.stories.d.ts +1 -0
  205. package/dist/stories/Combobox/ComboboxMultiple.stories.d.ts +1 -0
  206. package/dist/stories/Dialog/Dialog.settings.d.ts +2 -47
  207. package/dist/stories/Dialog/DialogModifiers.stories.d.ts +8 -0
  208. package/dist/stories/Dropdown/Dropdown.settings.d.ts +2 -205
  209. package/dist/stories/Icon/Icon.settings.d.ts +3 -68
  210. package/dist/stories/InputFile/InputFile.settings.d.ts +6 -0
  211. package/dist/stories/InputFile/InputFile.stories.d.ts +13 -0
  212. package/dist/stories/InputFile/InputFileDropArea.stories.d.ts +9 -0
  213. package/dist/stories/InputFile/InputFileIconPosition.stories.d.ts +8 -0
  214. package/dist/stories/InputFile/InputFileSlots.stories.d.ts +7 -0
  215. package/dist/stories/InputText/InputText.settings.d.ts +2 -438
  216. package/dist/stories/InputText/InputText.stories.d.ts +2 -0
  217. package/dist/stories/InputText/InputText.test.d.ts +3 -0
  218. package/dist/stories/InputText/InputTextIso.stories.d.ts +10 -0
  219. package/dist/stories/Nav/Nav.settings.d.ts +2 -10
  220. package/dist/stories/Progress/Progress.settings.d.ts +2 -27
  221. package/dist/stories/Radio/Radio.settings.d.ts +1 -110
  222. package/dist/stories/RadioGroup/RadioGroup.settings.d.ts +1 -141
  223. package/dist/stories/Select/Select.settings.d.ts +2 -246
  224. package/dist/stories/Select/Select.stories.d.ts +1 -0
  225. package/dist/stories/Textarea/Textarea.settings.d.ts +2 -287
  226. package/dist/stories/argTypes.d.ts +27 -866
  227. package/dist/test/expect.d.ts +1 -2
  228. package/dist/test/options.d.ts +1 -1
  229. package/dist/test/sleep.d.ts +1 -1
  230. package/dist/types/alert.d.ts +9 -7
  231. package/dist/types/blurhash.d.ts +12 -0
  232. package/dist/types/floating-ui.d.ts +1 -1
  233. package/dist/types/generic.d.ts +1 -1
  234. package/dist/types/group.d.ts +37 -15
  235. package/dist/types/index.d.ts +2 -0
  236. package/dist/types/input-file.d.ts +9 -0
  237. package/dist/types/nav.d.ts +2 -2
  238. package/dist/utils/DateUtilities.d.ts +31 -0
  239. package/dist/utils/DomUtilities.d.ts +1 -0
  240. package/dist/utils/FileUtilities.d.ts +14 -0
  241. package/dist/utils/ObjectUtilities.d.ts +8 -9
  242. package/dist/workers/blurhash.d.ts +1 -0
  243. package/package.json +370 -380
  244. package/auto-imports.d.ts +0 -316
  245. package/dist/components/VvInputText/VvInputClearAction.d.ts +0 -36
  246. package/dist/components/VvInputText/VvInputPasswordAction.d.ts +0 -56
  247. package/dist/components/VvInputText/VvInputStepAction.d.ts +0 -37
  248. package/dist/composables/alert/useInjectAlert.d.ts +0 -9
  249. package/dist/composables/dropdown/useInjectDropdown.d.ts +0 -32
  250. package/dist/composables/group/useInjectedGroupState.d.ts +0 -10
  251. package/dist/composables/group/useProvideGroupState.d.ts +0 -6
  252. package/env.d.ts +0 -1
  253. package/src/Volver.ts +0 -296
  254. package/src/assets/icons/detailed/add-circle.svg +0 -12
  255. package/src/assets/icons/detailed/add.svg +0 -8
  256. package/src/assets/icons/detailed/align-center.svg +0 -12
  257. package/src/assets/icons/detailed/align-justify.svg +0 -12
  258. package/src/assets/icons/detailed/align-left.svg +0 -12
  259. package/src/assets/icons/detailed/align-right.svg +0 -12
  260. package/src/assets/icons/detailed/analysis-2.svg +0 -20
  261. package/src/assets/icons/detailed/analysis-3.svg +0 -8
  262. package/src/assets/icons/detailed/analysis.svg +0 -16
  263. package/src/assets/icons/detailed/apple.svg +0 -16
  264. package/src/assets/icons/detailed/arrow-down.svg +0 -8
  265. package/src/assets/icons/detailed/arrow-left.svg +0 -8
  266. package/src/assets/icons/detailed/arrow-right.svg +0 -8
  267. package/src/assets/icons/detailed/arrow-up.svg +0 -8
  268. package/src/assets/icons/detailed/attachment.svg +0 -8
  269. package/src/assets/icons/detailed/back-to-front.svg +0 -17
  270. package/src/assets/icons/detailed/bell-active.svg +0 -14
  271. package/src/assets/icons/detailed/bell.svg +0 -14
  272. package/src/assets/icons/detailed/bold.svg +0 -8
  273. package/src/assets/icons/detailed/bookmark-active.svg +0 -12
  274. package/src/assets/icons/detailed/bookmark.svg +0 -12
  275. package/src/assets/icons/detailed/building.svg +0 -26
  276. package/src/assets/icons/detailed/bullet-list.svg +0 -22
  277. package/src/assets/icons/detailed/calendar.svg +0 -26
  278. package/src/assets/icons/detailed/camera-off.svg +0 -12
  279. package/src/assets/icons/detailed/camera-on.svg +0 -17
  280. package/src/assets/icons/detailed/catalog.svg +0 -15
  281. package/src/assets/icons/detailed/certificate.svg +0 -10
  282. package/src/assets/icons/detailed/chat.svg +0 -6
  283. package/src/assets/icons/detailed/check-badge.svg +0 -9
  284. package/src/assets/icons/detailed/check-circle.svg +0 -10
  285. package/src/assets/icons/detailed/check.svg +0 -6
  286. package/src/assets/icons/detailed/checkbox.svg +0 -8
  287. package/src/assets/icons/detailed/chevron-down-circle.svg +0 -10
  288. package/src/assets/icons/detailed/chevron-down.svg +0 -6
  289. package/src/assets/icons/detailed/chevron-left-circle.svg +0 -10
  290. package/src/assets/icons/detailed/chevron-left.svg +0 -6
  291. package/src/assets/icons/detailed/chevron-right-circle.svg +0 -7
  292. package/src/assets/icons/detailed/chevron-up-circle.svg +0 -10
  293. package/src/assets/icons/detailed/chevron-up.svg +0 -6
  294. package/src/assets/icons/detailed/circle.svg +0 -8
  295. package/src/assets/icons/detailed/classroom.svg +0 -38
  296. package/src/assets/icons/detailed/clear-field.svg +0 -14
  297. package/src/assets/icons/detailed/clear-style.svg +0 -9
  298. package/src/assets/icons/detailed/close-circle.svg +0 -14
  299. package/src/assets/icons/detailed/close-loader.svg +0 -6
  300. package/src/assets/icons/detailed/close.svg +0 -8
  301. package/src/assets/icons/detailed/coffee.svg +0 -21
  302. package/src/assets/icons/detailed/color.svg +0 -20
  303. package/src/assets/icons/detailed/contact-us.svg +0 -27
  304. package/src/assets/icons/detailed/copy.svg +0 -10
  305. package/src/assets/icons/detailed/courses.svg +0 -22
  306. package/src/assets/icons/detailed/dashboard.svg +0 -20
  307. package/src/assets/icons/detailed/download.svg +0 -10
  308. package/src/assets/icons/detailed/drag.svg +0 -10
  309. package/src/assets/icons/detailed/duplicate.svg +0 -23
  310. package/src/assets/icons/detailed/edit.svg +0 -16
  311. package/src/assets/icons/detailed/elearning.svg +0 -13
  312. package/src/assets/icons/detailed/email.svg +0 -11
  313. package/src/assets/icons/detailed/error-2.svg +0 -8
  314. package/src/assets/icons/detailed/error.svg +0 -12
  315. package/src/assets/icons/detailed/exercise.svg +0 -26
  316. package/src/assets/icons/detailed/external-link.svg +0 -11
  317. package/src/assets/icons/detailed/extract.svg +0 -20
  318. package/src/assets/icons/detailed/eye-off.svg +0 -15
  319. package/src/assets/icons/detailed/eye-on.svg +0 -8
  320. package/src/assets/icons/detailed/fail.svg +0 -11
  321. package/src/assets/icons/detailed/fast-back.svg +0 -20
  322. package/src/assets/icons/detailed/fast-forward.svg +0 -20
  323. package/src/assets/icons/detailed/file-add.svg +0 -19
  324. package/src/assets/icons/detailed/file-duplicate.svg +0 -16
  325. package/src/assets/icons/detailed/file-remove.svg +0 -17
  326. package/src/assets/icons/detailed/file-required.svg +0 -23
  327. package/src/assets/icons/detailed/file.svg +0 -13
  328. package/src/assets/icons/detailed/filter-2.svg +0 -22
  329. package/src/assets/icons/detailed/filter-active.svg +0 -12
  330. package/src/assets/icons/detailed/filter.svg +0 -12
  331. package/src/assets/icons/detailed/flag.svg +0 -11
  332. package/src/assets/icons/detailed/folder.svg +0 -14
  333. package/src/assets/icons/detailed/full-width.svg +0 -11
  334. package/src/assets/icons/detailed/go-to-back.svg +0 -19
  335. package/src/assets/icons/detailed/grid.svg +0 -20
  336. package/src/assets/icons/detailed/group-add.svg +0 -24
  337. package/src/assets/icons/detailed/group.svg +0 -16
  338. package/src/assets/icons/detailed/heart-active.svg +0 -12
  339. package/src/assets/icons/detailed/heart.svg +0 -12
  340. package/src/assets/icons/detailed/highlighter.svg +0 -10
  341. package/src/assets/icons/detailed/home.svg +0 -12
  342. package/src/assets/icons/detailed/hourglass.svg +0 -12
  343. package/src/assets/icons/detailed/image.svg +0 -15
  344. package/src/assets/icons/detailed/info-badge.svg +0 -9
  345. package/src/assets/icons/detailed/information.svg +0 -12
  346. package/src/assets/icons/detailed/italic.svg +0 -10
  347. package/src/assets/icons/detailed/key.svg +0 -5
  348. package/src/assets/icons/detailed/language.svg +0 -14
  349. package/src/assets/icons/detailed/learning-path.svg +0 -7
  350. package/src/assets/icons/detailed/light-off.svg +0 -10
  351. package/src/assets/icons/detailed/light-on.svg +0 -18
  352. package/src/assets/icons/detailed/link.svg +0 -12
  353. package/src/assets/icons/detailed/lock.svg +0 -13
  354. package/src/assets/icons/detailed/login.svg +0 -11
  355. package/src/assets/icons/detailed/logout.svg +0 -11
  356. package/src/assets/icons/detailed/maximaze.svg +0 -12
  357. package/src/assets/icons/detailed/menu.svg +0 -9
  358. package/src/assets/icons/detailed/merge.svg +0 -20
  359. package/src/assets/icons/detailed/minimize.svg +0 -14
  360. package/src/assets/icons/detailed/mixed-class.svg +0 -40
  361. package/src/assets/icons/detailed/more-horizontal.svg +0 -7
  362. package/src/assets/icons/detailed/more-vertical.svg +0 -7
  363. package/src/assets/icons/detailed/news.svg +0 -12
  364. package/src/assets/icons/detailed/no-prerequisites.svg +0 -13
  365. package/src/assets/icons/detailed/notes.svg +0 -14
  366. package/src/assets/icons/detailed/number-code.svg +0 -34
  367. package/src/assets/icons/detailed/numbered-list.svg +0 -18
  368. package/src/assets/icons/detailed/on-site.svg +0 -22
  369. package/src/assets/icons/detailed/order-down.svg +0 -12
  370. package/src/assets/icons/detailed/order-up.svg +0 -12
  371. package/src/assets/icons/detailed/paste.svg +0 -14
  372. package/src/assets/icons/detailed/pausa.svg +0 -8
  373. package/src/assets/icons/detailed/pdf.svg +0 -12
  374. package/src/assets/icons/detailed/phone.svg +0 -10
  375. package/src/assets/icons/detailed/pin-map.svg +0 -12
  376. package/src/assets/icons/detailed/pin.svg +0 -15
  377. package/src/assets/icons/detailed/pizza.svg +0 -17
  378. package/src/assets/icons/detailed/play.svg +0 -11
  379. package/src/assets/icons/detailed/plug-in.svg +0 -10
  380. package/src/assets/icons/detailed/pointer.svg +0 -12
  381. package/src/assets/icons/detailed/printer.svg +0 -26
  382. package/src/assets/icons/detailed/profile-add.svg +0 -20
  383. package/src/assets/icons/detailed/profile.svg +0 -10
  384. package/src/assets/icons/detailed/push-pin-off.svg +0 -11
  385. package/src/assets/icons/detailed/push-pin-on.svg +0 -9
  386. package/src/assets/icons/detailed/qrcode.svg +0 -28
  387. package/src/assets/icons/detailed/question-badge.svg +0 -10
  388. package/src/assets/icons/detailed/radio.svg +0 -8
  389. package/src/assets/icons/detailed/redo.svg +0 -9
  390. package/src/assets/icons/detailed/relations.svg +0 -32
  391. package/src/assets/icons/detailed/reload.svg +0 -13
  392. package/src/assets/icons/detailed/remove-circle.svg +0 -10
  393. package/src/assets/icons/detailed/remove.svg +0 -5
  394. package/src/assets/icons/detailed/reorder.svg +0 -12
  395. package/src/assets/icons/detailed/repeat.svg +0 -12
  396. package/src/assets/icons/detailed/repository.svg +0 -18
  397. package/src/assets/icons/detailed/request-form.svg +0 -18
  398. package/src/assets/icons/detailed/resize-100%.svg +0 -15
  399. package/src/assets/icons/detailed/resize-height.svg +0 -12
  400. package/src/assets/icons/detailed/resize-width.svg +0 -12
  401. package/src/assets/icons/detailed/search.svg +0 -12
  402. package/src/assets/icons/detailed/sequential-prerequisites.svg +0 -20
  403. package/src/assets/icons/detailed/settings.svg +0 -14
  404. package/src/assets/icons/detailed/share.svg +0 -20
  405. package/src/assets/icons/detailed/sketch.svg +0 -12
  406. package/src/assets/icons/detailed/skills.svg +0 -20
  407. package/src/assets/icons/detailed/skip-back.svg +0 -12
  408. package/src/assets/icons/detailed/skip-forward.svg +0 -13
  409. package/src/assets/icons/detailed/sms.svg +0 -18
  410. package/src/assets/icons/detailed/sso-access.svg +0 -18
  411. package/src/assets/icons/detailed/star-active.svg +0 -6
  412. package/src/assets/icons/detailed/star.svg +0 -6
  413. package/src/assets/icons/detailed/success.svg +0 -10
  414. package/src/assets/icons/detailed/sun.svg +0 -24
  415. package/src/assets/icons/detailed/sunrise.svg +0 -18
  416. package/src/assets/icons/detailed/support.svg +0 -18
  417. package/src/assets/icons/detailed/survey.svg +0 -24
  418. package/src/assets/icons/detailed/table.svg +0 -11
  419. package/src/assets/icons/detailed/tematic-channels.svg +0 -12
  420. package/src/assets/icons/detailed/test.svg +0 -14
  421. package/src/assets/icons/detailed/text-body.svg +0 -8
  422. package/src/assets/icons/detailed/text-edit.svg +0 -11
  423. package/src/assets/icons/detailed/text-style.svg +0 -10
  424. package/src/assets/icons/detailed/time.svg +0 -10
  425. package/src/assets/icons/detailed/toilet-piper.svg +0 -15
  426. package/src/assets/icons/detailed/training-points.svg +0 -16
  427. package/src/assets/icons/detailed/trash.svg +0 -19
  428. package/src/assets/icons/detailed/underline.svg +0 -8
  429. package/src/assets/icons/detailed/undo.svg +0 -9
  430. package/src/assets/icons/detailed/unlock.svg +0 -13
  431. package/src/assets/icons/detailed/upload.svg +0 -10
  432. package/src/assets/icons/detailed/user-add.svg +0 -16
  433. package/src/assets/icons/detailed/user-badge.svg +0 -11
  434. package/src/assets/icons/detailed/user.svg +0 -8
  435. package/src/assets/icons/detailed/video-off.svg +0 -17
  436. package/src/assets/icons/detailed/video-on.svg +0 -16
  437. package/src/assets/icons/detailed/video-rec.svg +0 -19
  438. package/src/assets/icons/detailed/view-card.svg +0 -12
  439. package/src/assets/icons/detailed/view-list.svg +0 -20
  440. package/src/assets/icons/detailed/view.svg +0 -7
  441. package/src/assets/icons/detailed/voice-off.svg +0 -14
  442. package/src/assets/icons/detailed/voice-on.svg +0 -16
  443. package/src/assets/icons/detailed/volume-down.svg +0 -14
  444. package/src/assets/icons/detailed/volume-off.svg +0 -19
  445. package/src/assets/icons/detailed/volume-up.svg +0 -16
  446. package/src/assets/icons/detailed/warning.svg +0 -16
  447. package/src/assets/icons/detailed/webinar.svg +0 -57
  448. package/src/assets/icons/detailed/whiteboard.svg +0 -16
  449. package/src/assets/icons/detailed/wine.svg +0 -22
  450. package/src/assets/icons/detailed/zip.svg +0 -17
  451. package/src/assets/icons/detailed/zoom-in.svg +0 -18
  452. package/src/assets/icons/detailed/zoom-out.svg +0 -16
  453. package/src/assets/icons/detailed.json +0 -1
  454. package/src/assets/icons/normal/add-circle.svg +0 -12
  455. package/src/assets/icons/normal/add.svg +0 -4
  456. package/src/assets/icons/normal/align-center.svg +0 -11
  457. package/src/assets/icons/normal/align-justify.svg +0 -11
  458. package/src/assets/icons/normal/align-left.svg +0 -11
  459. package/src/assets/icons/normal/align-right.svg +0 -11
  460. package/src/assets/icons/normal/analysis-2.svg +0 -18
  461. package/src/assets/icons/normal/analysis-3.svg +0 -8
  462. package/src/assets/icons/normal/analysis.svg +0 -14
  463. package/src/assets/icons/normal/apple.svg +0 -16
  464. package/src/assets/icons/normal/arrow-down.svg +0 -8
  465. package/src/assets/icons/normal/arrow-left.svg +0 -8
  466. package/src/assets/icons/normal/arrow-right.svg +0 -8
  467. package/src/assets/icons/normal/arrow-up.svg +0 -8
  468. package/src/assets/icons/normal/attachment.svg +0 -6
  469. package/src/assets/icons/normal/back-to-front.svg +0 -15
  470. package/src/assets/icons/normal/bell-active.svg +0 -14
  471. package/src/assets/icons/normal/bell.svg +0 -14
  472. package/src/assets/icons/normal/bold.svg +0 -8
  473. package/src/assets/icons/normal/bookmark active.svg +0 -12
  474. package/src/assets/icons/normal/bookmark.svg +0 -10
  475. package/src/assets/icons/normal/building.svg +0 -21
  476. package/src/assets/icons/normal/bulleted-list.svg +0 -23
  477. package/src/assets/icons/normal/calendar.svg +0 -20
  478. package/src/assets/icons/normal/camera-off.svg +0 -17
  479. package/src/assets/icons/normal/camera-on.svg +0 -16
  480. package/src/assets/icons/normal/catalog.svg +0 -13
  481. package/src/assets/icons/normal/certificate.svg +0 -12
  482. package/src/assets/icons/normal/chat.svg +0 -6
  483. package/src/assets/icons/normal/check-badge.svg +0 -9
  484. package/src/assets/icons/normal/check-circle.svg +0 -10
  485. package/src/assets/icons/normal/check.svg +0 -4
  486. package/src/assets/icons/normal/checkbox.svg +0 -8
  487. package/src/assets/icons/normal/chevron-down-circle.svg +0 -10
  488. package/src/assets/icons/normal/chevron-down.svg +0 -6
  489. package/src/assets/icons/normal/chevron-left-circle.svg +0 -10
  490. package/src/assets/icons/normal/chevron-left.svg +0 -6
  491. package/src/assets/icons/normal/chevron-right-circle.svg +0 -10
  492. package/src/assets/icons/normal/chevron-right.svg +0 -7
  493. package/src/assets/icons/normal/chevron-up-circle.svg +0 -10
  494. package/src/assets/icons/normal/chevron-up.svg +0 -6
  495. package/src/assets/icons/normal/circle.svg +0 -8
  496. package/src/assets/icons/normal/classroom.svg +0 -36
  497. package/src/assets/icons/normal/clear-field.svg +0 -14
  498. package/src/assets/icons/normal/clear-style.svg +0 -18
  499. package/src/assets/icons/normal/close-circle.svg +0 -14
  500. package/src/assets/icons/normal/close-loader.svg +0 -6
  501. package/src/assets/icons/normal/close.svg +0 -8
  502. package/src/assets/icons/normal/coffee.svg +0 -26
  503. package/src/assets/icons/normal/color.svg +0 -18
  504. package/src/assets/icons/normal/contact-us.svg +0 -29
  505. package/src/assets/icons/normal/copy.svg +0 -10
  506. package/src/assets/icons/normal/courses.svg +0 -22
  507. package/src/assets/icons/normal/dashboard.svg +0 -18
  508. package/src/assets/icons/normal/download.svg +0 -10
  509. package/src/assets/icons/normal/drag.svg +0 -5
  510. package/src/assets/icons/normal/dulicate.svg +0 -22
  511. package/src/assets/icons/normal/edit.svg +0 -16
  512. package/src/assets/icons/normal/elearning.svg +0 -16
  513. package/src/assets/icons/normal/email.svg +0 -11
  514. package/src/assets/icons/normal/error-2.svg +0 -8
  515. package/src/assets/icons/normal/error.svg +0 -12
  516. package/src/assets/icons/normal/exercise.svg +0 -26
  517. package/src/assets/icons/normal/external-link.svg +0 -11
  518. package/src/assets/icons/normal/extract.svg +0 -14
  519. package/src/assets/icons/normal/eye-off.svg +0 -14
  520. package/src/assets/icons/normal/eye-on.svg +0 -16
  521. package/src/assets/icons/normal/fail.svg +0 -11
  522. package/src/assets/icons/normal/fast-back.svg +0 -19
  523. package/src/assets/icons/normal/fast-forward.svg +0 -17
  524. package/src/assets/icons/normal/file-add.svg +0 -16
  525. package/src/assets/icons/normal/file-duplicate.svg +0 -22
  526. package/src/assets/icons/normal/file-remove.svg +0 -14
  527. package/src/assets/icons/normal/file-required.svg +0 -24
  528. package/src/assets/icons/normal/file.svg +0 -13
  529. package/src/assets/icons/normal/filter-2.svg +0 -20
  530. package/src/assets/icons/normal/filter-active.svg +0 -12
  531. package/src/assets/icons/normal/filter.svg +0 -12
  532. package/src/assets/icons/normal/flag.svg +0 -10
  533. package/src/assets/icons/normal/folder.svg +0 -12
  534. package/src/assets/icons/normal/full-width.svg +0 -9
  535. package/src/assets/icons/normal/go-to-back.svg +0 -19
  536. package/src/assets/icons/normal/grid.svg +0 -20
  537. package/src/assets/icons/normal/group-add.svg +0 -18
  538. package/src/assets/icons/normal/group.svg +0 -14
  539. package/src/assets/icons/normal/heart-active.svg +0 -10
  540. package/src/assets/icons/normal/heart.svg +0 -10
  541. package/src/assets/icons/normal/highlighter.svg +0 -11
  542. package/src/assets/icons/normal/home.svg +0 -12
  543. package/src/assets/icons/normal/hourglass.svg +0 -8
  544. package/src/assets/icons/normal/image.svg +0 -15
  545. package/src/assets/icons/normal/info-badge.svg +0 -9
  546. package/src/assets/icons/normal/information.svg +0 -12
  547. package/src/assets/icons/normal/italic.svg +0 -10
  548. package/src/assets/icons/normal/key.svg +0 -8
  549. package/src/assets/icons/normal/language.svg +0 -14
  550. package/src/assets/icons/normal/learning-path.svg +0 -7
  551. package/src/assets/icons/normal/light-off.svg +0 -10
  552. package/src/assets/icons/normal/light-on.svg +0 -17
  553. package/src/assets/icons/normal/link.svg +0 -12
  554. package/src/assets/icons/normal/lock.svg +0 -12
  555. package/src/assets/icons/normal/login.svg +0 -10
  556. package/src/assets/icons/normal/logout.svg +0 -10
  557. package/src/assets/icons/normal/maximize.svg +0 -10
  558. package/src/assets/icons/normal/menu.svg +0 -8
  559. package/src/assets/icons/normal/merge.svg +0 -20
  560. package/src/assets/icons/normal/minimize.svg +0 -12
  561. package/src/assets/icons/normal/mixed-class.svg +0 -36
  562. package/src/assets/icons/normal/more-horizontal.svg +0 -7
  563. package/src/assets/icons/normal/more-vertical.svg +0 -7
  564. package/src/assets/icons/normal/news.svg +0 -9
  565. package/src/assets/icons/normal/no-prerequisites.svg +0 -12
  566. package/src/assets/icons/normal/notes.svg +0 -15
  567. package/src/assets/icons/normal/number-code.svg +0 -34
  568. package/src/assets/icons/normal/numbered-list.svg +0 -19
  569. package/src/assets/icons/normal/on-site.svg +0 -18
  570. package/src/assets/icons/normal/order-down.svg +0 -12
  571. package/src/assets/icons/normal/order-up.svg +0 -11
  572. package/src/assets/icons/normal/paste.svg +0 -14
  573. package/src/assets/icons/normal/pausa.svg +0 -7
  574. package/src/assets/icons/normal/pdf.svg +0 -12
  575. package/src/assets/icons/normal/phone.svg +0 -10
  576. package/src/assets/icons/normal/pin-map.svg +0 -10
  577. package/src/assets/icons/normal/pin.svg +0 -12
  578. package/src/assets/icons/normal/pizza.svg +0 -17
  579. package/src/assets/icons/normal/play.svg +0 -9
  580. package/src/assets/icons/normal/plug-in.svg +0 -10
  581. package/src/assets/icons/normal/pointer.svg +0 -12
  582. package/src/assets/icons/normal/printer.svg +0 -28
  583. package/src/assets/icons/normal/profile-add.svg +0 -28
  584. package/src/assets/icons/normal/profile.svg +0 -15
  585. package/src/assets/icons/normal/push pin on.svg +0 -9
  586. package/src/assets/icons/normal/push-pin-off.svg +0 -23
  587. package/src/assets/icons/normal/qrcode.svg +0 -26
  588. package/src/assets/icons/normal/question-badge.svg +0 -10
  589. package/src/assets/icons/normal/radio.svg +0 -8
  590. package/src/assets/icons/normal/redo.svg +0 -9
  591. package/src/assets/icons/normal/relations.svg +0 -28
  592. package/src/assets/icons/normal/reload.svg +0 -12
  593. package/src/assets/icons/normal/remove-circle.svg +0 -10
  594. package/src/assets/icons/normal/remove.svg +0 -4
  595. package/src/assets/icons/normal/reorder.svg +0 -12
  596. package/src/assets/icons/normal/repeat.svg +0 -12
  597. package/src/assets/icons/normal/repository.svg +0 -18
  598. package/src/assets/icons/normal/request-form.svg +0 -18
  599. package/src/assets/icons/normal/resize-100%.svg +0 -17
  600. package/src/assets/icons/normal/resize-height.svg +0 -12
  601. package/src/assets/icons/normal/resize-width.svg +0 -12
  602. package/src/assets/icons/normal/search.svg +0 -10
  603. package/src/assets/icons/normal/sequential-prerequisites.svg +0 -20
  604. package/src/assets/icons/normal/settings.svg +0 -14
  605. package/src/assets/icons/normal/share.svg +0 -20
  606. package/src/assets/icons/normal/sketch.svg +0 -11
  607. package/src/assets/icons/normal/skills.svg +0 -16
  608. package/src/assets/icons/normal/skip-back.svg +0 -12
  609. package/src/assets/icons/normal/skip-forward.svg +0 -13
  610. package/src/assets/icons/normal/sms.svg +0 -20
  611. package/src/assets/icons/normal/sso-access.svg +0 -20
  612. package/src/assets/icons/normal/star-active.svg +0 -4
  613. package/src/assets/icons/normal/star.svg +0 -4
  614. package/src/assets/icons/normal/success.svg +0 -10
  615. package/src/assets/icons/normal/sun.svg +0 -24
  616. package/src/assets/icons/normal/sunrise.svg +0 -18
  617. package/src/assets/icons/normal/support.svg +0 -18
  618. package/src/assets/icons/normal/survey.svg +0 -24
  619. package/src/assets/icons/normal/table.svg +0 -11
  620. package/src/assets/icons/normal/tematic-channels.svg +0 -10
  621. package/src/assets/icons/normal/test.svg +0 -15
  622. package/src/assets/icons/normal/text-body.svg +0 -8
  623. package/src/assets/icons/normal/text-edit.svg +0 -11
  624. package/src/assets/icons/normal/text-style.svg +0 -10
  625. package/src/assets/icons/normal/time.svg +0 -10
  626. package/src/assets/icons/normal/toilet-paper.svg +0 -15
  627. package/src/assets/icons/normal/training-points.svg +0 -16
  628. package/src/assets/icons/normal/trash.svg +0 -19
  629. package/src/assets/icons/normal/underline.svg +0 -8
  630. package/src/assets/icons/normal/undo.svg +0 -9
  631. package/src/assets/icons/normal/unlock.svg +0 -13
  632. package/src/assets/icons/normal/upload.svg +0 -10
  633. package/src/assets/icons/normal/user-add.svg +0 -14
  634. package/src/assets/icons/normal/user-badge.svg +0 -11
  635. package/src/assets/icons/normal/user.svg +0 -5
  636. package/src/assets/icons/normal/video-off.svg +0 -11
  637. package/src/assets/icons/normal/video-on.svg +0 -20
  638. package/src/assets/icons/normal/video-rec.svg +0 -23
  639. package/src/assets/icons/normal/view-card.svg +0 -10
  640. package/src/assets/icons/normal/view-list.svg +0 -18
  641. package/src/assets/icons/normal/view.svg +0 -8
  642. package/src/assets/icons/normal/voice-off.svg +0 -18
  643. package/src/assets/icons/normal/voice-on.svg +0 -15
  644. package/src/assets/icons/normal/volume-down.svg +0 -14
  645. package/src/assets/icons/normal/volume-off.svg +0 -18
  646. package/src/assets/icons/normal/volume-up.svg +0 -16
  647. package/src/assets/icons/normal/warning.svg +0 -16
  648. package/src/assets/icons/normal/webinar.svg +0 -36
  649. package/src/assets/icons/normal/whiteboard.svg +0 -17
  650. package/src/assets/icons/normal/wine.svg +0 -22
  651. package/src/assets/icons/normal/zip.svg +0 -19
  652. package/src/assets/icons/normal/zoom-in.svg +0 -16
  653. package/src/assets/icons/normal/zoom-out.svg +0 -14
  654. package/src/assets/icons/normal.json +0 -1
  655. package/src/assets/icons/simple/add-circle.svg +0 -12
  656. package/src/assets/icons/simple/add.svg +0 -8
  657. package/src/assets/icons/simple/align-center.svg +0 -12
  658. package/src/assets/icons/simple/align-justify.svg +0 -12
  659. package/src/assets/icons/simple/align-left.svg +0 -12
  660. package/src/assets/icons/simple/align-right.svg +0 -12
  661. package/src/assets/icons/simple/analysis-2.svg +0 -21
  662. package/src/assets/icons/simple/analysis-3.svg +0 -8
  663. package/src/assets/icons/simple/analysis.svg +0 -16
  664. package/src/assets/icons/simple/apple.svg +0 -18
  665. package/src/assets/icons/simple/arrow-down.svg +0 -8
  666. package/src/assets/icons/simple/arrow-left.svg +0 -8
  667. package/src/assets/icons/simple/arrow-right.svg +0 -8
  668. package/src/assets/icons/simple/arrow-up.svg +0 -8
  669. package/src/assets/icons/simple/attachment.svg +0 -10
  670. package/src/assets/icons/simple/bck-to-front.svg +0 -19
  671. package/src/assets/icons/simple/bell-active.svg +0 -14
  672. package/src/assets/icons/simple/bell.svg +0 -14
  673. package/src/assets/icons/simple/bold.svg +0 -8
  674. package/src/assets/icons/simple/bookmark-active.svg +0 -12
  675. package/src/assets/icons/simple/bookmark.svg +0 -12
  676. package/src/assets/icons/simple/building.svg +0 -25
  677. package/src/assets/icons/simple/bulleted-list.svg +0 -22
  678. package/src/assets/icons/simple/calendar.svg +0 -22
  679. package/src/assets/icons/simple/camera-off.svg +0 -12
  680. package/src/assets/icons/simple/camera-on.svg +0 -16
  681. package/src/assets/icons/simple/catalog.svg +0 -14
  682. package/src/assets/icons/simple/certificate.svg +0 -15
  683. package/src/assets/icons/simple/chat.svg +0 -9
  684. package/src/assets/icons/simple/check-badge.svg +0 -9
  685. package/src/assets/icons/simple/check-circle.svg +0 -10
  686. package/src/assets/icons/simple/check.svg +0 -6
  687. package/src/assets/icons/simple/checkbox.svg +0 -6
  688. package/src/assets/icons/simple/chevron-down-circle.svg +0 -10
  689. package/src/assets/icons/simple/chevron-down.svg +0 -6
  690. package/src/assets/icons/simple/chevron-left-circle.svg +0 -10
  691. package/src/assets/icons/simple/chevron-left.svg +0 -6
  692. package/src/assets/icons/simple/chevron-right-circle.svg +0 -10
  693. package/src/assets/icons/simple/chevron-right.svg +0 -7
  694. package/src/assets/icons/simple/chevron-up-circle.svg +0 -10
  695. package/src/assets/icons/simple/chevron-up.svg +0 -6
  696. package/src/assets/icons/simple/circle.svg +0 -8
  697. package/src/assets/icons/simple/classroom.svg +0 -38
  698. package/src/assets/icons/simple/clear-field.svg +0 -11
  699. package/src/assets/icons/simple/clear-style.svg +0 -15
  700. package/src/assets/icons/simple/close-circle.svg +0 -14
  701. package/src/assets/icons/simple/close-loader.svg +0 -6
  702. package/src/assets/icons/simple/close.svg +0 -10
  703. package/src/assets/icons/simple/coffee.svg +0 -28
  704. package/src/assets/icons/simple/color.svg +0 -20
  705. package/src/assets/icons/simple/contact-us.svg +0 -26
  706. package/src/assets/icons/simple/copy.svg +0 -10
  707. package/src/assets/icons/simple/courses.svg +0 -21
  708. package/src/assets/icons/simple/dashboard.svg +0 -20
  709. package/src/assets/icons/simple/download.svg +0 -10
  710. package/src/assets/icons/simple/drag.svg +0 -10
  711. package/src/assets/icons/simple/duplicate.svg +0 -24
  712. package/src/assets/icons/simple/edit.svg +0 -17
  713. package/src/assets/icons/simple/elearning.svg +0 -17
  714. package/src/assets/icons/simple/email.svg +0 -11
  715. package/src/assets/icons/simple/error-2.svg +0 -8
  716. package/src/assets/icons/simple/error.svg +0 -12
  717. package/src/assets/icons/simple/exercise.svg +0 -30
  718. package/src/assets/icons/simple/external-link.svg +0 -13
  719. package/src/assets/icons/simple/extract.svg +0 -17
  720. package/src/assets/icons/simple/eye-off.svg +0 -13
  721. package/src/assets/icons/simple/eye-on.svg +0 -11
  722. package/src/assets/icons/simple/fail.svg +0 -11
  723. package/src/assets/icons/simple/fast-back.svg +0 -20
  724. package/src/assets/icons/simple/fast-forward.svg +0 -19
  725. package/src/assets/icons/simple/file-add.svg +0 -20
  726. package/src/assets/icons/simple/file-duplicate.svg +0 -22
  727. package/src/assets/icons/simple/file-remove.svg +0 -18
  728. package/src/assets/icons/simple/file-required.svg +0 -24
  729. package/src/assets/icons/simple/file.svg +0 -14
  730. package/src/assets/icons/simple/filter-2.svg +0 -24
  731. package/src/assets/icons/simple/filter-active.svg +0 -13
  732. package/src/assets/icons/simple/filter.svg +0 -12
  733. package/src/assets/icons/simple/flag.svg +0 -12
  734. package/src/assets/icons/simple/folder.svg +0 -14
  735. package/src/assets/icons/simple/full-width.svg +0 -11
  736. package/src/assets/icons/simple/go-to-back.svg +0 -18
  737. package/src/assets/icons/simple/grid.svg +0 -20
  738. package/src/assets/icons/simple/group-add.svg +0 -24
  739. package/src/assets/icons/simple/group.svg +0 -18
  740. package/src/assets/icons/simple/heart-active.svg +0 -12
  741. package/src/assets/icons/simple/heart.svg +0 -12
  742. package/src/assets/icons/simple/highlighter.svg +0 -12
  743. package/src/assets/icons/simple/home.svg +0 -13
  744. package/src/assets/icons/simple/hourglass.svg +0 -11
  745. package/src/assets/icons/simple/image.svg +0 -15
  746. package/src/assets/icons/simple/info-badge.svg +0 -9
  747. package/src/assets/icons/simple/information.svg +0 -12
  748. package/src/assets/icons/simple/italic.svg +0 -12
  749. package/src/assets/icons/simple/key.svg +0 -11
  750. package/src/assets/icons/simple/language.svg +0 -12
  751. package/src/assets/icons/simple/learning-path.svg +0 -9
  752. package/src/assets/icons/simple/light-off.svg +0 -7
  753. package/src/assets/icons/simple/light-on.svg +0 -18
  754. package/src/assets/icons/simple/link.svg +0 -14
  755. package/src/assets/icons/simple/lock.svg +0 -13
  756. package/src/assets/icons/simple/login.svg +0 -11
  757. package/src/assets/icons/simple/logout.svg +0 -11
  758. package/src/assets/icons/simple/maximaze.svg +0 -12
  759. package/src/assets/icons/simple/menu.svg +0 -10
  760. package/src/assets/icons/simple/merge.svg +0 -20
  761. package/src/assets/icons/simple/minimaze.svg +0 -12
  762. package/src/assets/icons/simple/mixed-class.svg +0 -40
  763. package/src/assets/icons/simple/more-horizontal.svg +0 -8
  764. package/src/assets/icons/simple/more-vertical.svg +0 -8
  765. package/src/assets/icons/simple/news.svg +0 -12
  766. package/src/assets/icons/simple/no-prerequisites.svg +0 -17
  767. package/src/assets/icons/simple/notes.svg +0 -14
  768. package/src/assets/icons/simple/number-code.svg +0 -29
  769. package/src/assets/icons/simple/numbered-list.svg +0 -18
  770. package/src/assets/icons/simple/on-site.svg +0 -18
  771. package/src/assets/icons/simple/order-down.svg +0 -12
  772. package/src/assets/icons/simple/order-up.svg +0 -12
  773. package/src/assets/icons/simple/paste.svg +0 -14
  774. package/src/assets/icons/simple/pausa.svg +0 -8
  775. package/src/assets/icons/simple/pdf.svg +0 -12
  776. package/src/assets/icons/simple/phone.svg +0 -10
  777. package/src/assets/icons/simple/pin-map.svg +0 -13
  778. package/src/assets/icons/simple/pin.svg +0 -14
  779. package/src/assets/icons/simple/pizza.svg +0 -17
  780. package/src/assets/icons/simple/play.svg +0 -10
  781. package/src/assets/icons/simple/plug-in.svg +0 -10
  782. package/src/assets/icons/simple/pointer.svg +0 -6
  783. package/src/assets/icons/simple/printer.svg +0 -28
  784. package/src/assets/icons/simple/profile-add.svg +0 -28
  785. package/src/assets/icons/simple/profile.svg +0 -13
  786. package/src/assets/icons/simple/push-pin-off.svg +0 -11
  787. package/src/assets/icons/simple/push-pin-on.svg +0 -12
  788. package/src/assets/icons/simple/qrcode.svg +0 -26
  789. package/src/assets/icons/simple/question-badge.svg +0 -10
  790. package/src/assets/icons/simple/radio.svg +0 -8
  791. package/src/assets/icons/simple/redo.svg +0 -9
  792. package/src/assets/icons/simple/relations.svg +0 -28
  793. package/src/assets/icons/simple/reload.svg +0 -12
  794. package/src/assets/icons/simple/remove-circle.svg +0 -10
  795. package/src/assets/icons/simple/remove.svg +0 -6
  796. package/src/assets/icons/simple/repeart.svg +0 -14
  797. package/src/assets/icons/simple/repository.svg +0 -18
  798. package/src/assets/icons/simple/request-form.svg +0 -20
  799. package/src/assets/icons/simple/resize-100%.svg +0 -15
  800. package/src/assets/icons/simple/resize-height.svg +0 -12
  801. package/src/assets/icons/simple/resize-width.svg +0 -14
  802. package/src/assets/icons/simple/search.svg +0 -10
  803. package/src/assets/icons/simple/sequential-prerequisites.svg +0 -22
  804. package/src/assets/icons/simple/settings.svg +0 -17
  805. package/src/assets/icons/simple/share.svg +0 -21
  806. package/src/assets/icons/simple/sketch.svg +0 -13
  807. package/src/assets/icons/simple/skills.svg +0 -17
  808. package/src/assets/icons/simple/skip-back.svg +0 -14
  809. package/src/assets/icons/simple/skip-forward.svg +0 -14
  810. package/src/assets/icons/simple/sms.svg +0 -22
  811. package/src/assets/icons/simple/sso-access.svg +0 -20
  812. package/src/assets/icons/simple/star-active.svg +0 -6
  813. package/src/assets/icons/simple/star.svg +0 -6
  814. package/src/assets/icons/simple/success.svg +0 -12
  815. package/src/assets/icons/simple/sun.svg +0 -22
  816. package/src/assets/icons/simple/sunrise.svg +0 -18
  817. package/src/assets/icons/simple/support.svg +0 -18
  818. package/src/assets/icons/simple/survey.svg +0 -32
  819. package/src/assets/icons/simple/table.svg +0 -11
  820. package/src/assets/icons/simple/tematic-channels.svg +0 -15
  821. package/src/assets/icons/simple/test.svg +0 -23
  822. package/src/assets/icons/simple/text-body.svg +0 -7
  823. package/src/assets/icons/simple/text-edit.svg +0 -11
  824. package/src/assets/icons/simple/text-style.svg +0 -10
  825. package/src/assets/icons/simple/time.svg +0 -10
  826. package/src/assets/icons/simple/toilet-paper.svg +0 -17
  827. package/src/assets/icons/simple/training-points.svg +0 -18
  828. package/src/assets/icons/simple/trash.svg +0 -20
  829. package/src/assets/icons/simple/underline.svg +0 -9
  830. package/src/assets/icons/simple/undo.svg +0 -9
  831. package/src/assets/icons/simple/unlock.svg +0 -15
  832. package/src/assets/icons/simple/upload.svg +0 -10
  833. package/src/assets/icons/simple/user-add.svg +0 -18
  834. package/src/assets/icons/simple/user-badge.svg +0 -12
  835. package/src/assets/icons/simple/user.svg +0 -8
  836. package/src/assets/icons/simple/video-off.svg +0 -17
  837. package/src/assets/icons/simple/video-on.svg +0 -17
  838. package/src/assets/icons/simple/video-rec.svg +0 -20
  839. package/src/assets/icons/simple/view-card.svg +0 -12
  840. package/src/assets/icons/simple/view-list.svg +0 -20
  841. package/src/assets/icons/simple/view.svg +0 -17
  842. package/src/assets/icons/simple/voice-off.svg +0 -16
  843. package/src/assets/icons/simple/voice-on.svg +0 -16
  844. package/src/assets/icons/simple/volume-down.svg +0 -15
  845. package/src/assets/icons/simple/volume-off.svg +0 -16
  846. package/src/assets/icons/simple/volume-up.svg +0 -16
  847. package/src/assets/icons/simple/warning.svg +0 -14
  848. package/src/assets/icons/simple/webinar.svg +0 -19
  849. package/src/assets/icons/simple/whiteboard.svg +0 -16
  850. package/src/assets/icons/simple/wine.svg +0 -24
  851. package/src/assets/icons/simple/zip.svg +0 -22
  852. package/src/assets/icons/simple/zoom-in.svg +0 -18
  853. package/src/assets/icons/simple/zoom-out.svg +0 -17
  854. package/src/assets/icons/simple.json +0 -1
  855. package/src/components/VvAccordion/VvAccordion.vue +0 -109
  856. package/src/components/VvAccordion/index.ts +0 -96
  857. package/src/components/VvAccordionGroup/VvAccordionGroup.vue +0 -115
  858. package/src/components/VvAccordionGroup/index.ts +0 -50
  859. package/src/components/VvAction/VvAction.vue +0 -146
  860. package/src/components/VvAction/index.ts +0 -5
  861. package/src/components/VvAlert/VvAlert.vue +0 -76
  862. package/src/components/VvAlert/index.ts +0 -162
  863. package/src/components/VvAlertGroup/VvAlertGroup.vue +0 -64
  864. package/src/components/VvAlertGroup/index.ts +0 -132
  865. package/src/components/VvAvatar/VvAvatar.vue +0 -21
  866. package/src/components/VvAvatar/index.ts +0 -9
  867. package/src/components/VvAvatarGroup/VvAvatarGroup.vue +0 -65
  868. package/src/components/VvAvatarGroup/index.ts +0 -28
  869. package/src/components/VvBadge/VvBadge.vue +0 -20
  870. package/src/components/VvBadge/index.ts +0 -6
  871. package/src/components/VvBreadcrumb/VvBreadcrumb.vue +0 -54
  872. package/src/components/VvBreadcrumb/index.ts +0 -13
  873. package/src/components/VvButton/VvButton.vue +0 -164
  874. package/src/components/VvButton/index.ts +0 -132
  875. package/src/components/VvButtonGroup/VvButtonGroup.vue +0 -74
  876. package/src/components/VvButtonGroup/index.ts +0 -28
  877. package/src/components/VvCard/VvCard.vue +0 -37
  878. package/src/components/VvCard/index.ts +0 -6
  879. package/src/components/VvCheckbox/VvCheckbox.vue +0 -198
  880. package/src/components/VvCheckbox/index.ts +0 -65
  881. package/src/components/VvCheckboxGroup/VvCheckboxGroup.vue +0 -99
  882. package/src/components/VvCheckboxGroup/index.ts +0 -5
  883. package/src/components/VvCombobox/VvCombobox.vue +0 -629
  884. package/src/components/VvCombobox/index.ts +0 -179
  885. package/src/components/VvDialog/VvDialog.vue +0 -144
  886. package/src/components/VvDialog/index.ts +0 -42
  887. package/src/components/VvDropdown/VvDropdown.vue +0 -475
  888. package/src/components/VvDropdown/VvDropdownAction.vue +0 -46
  889. package/src/components/VvDropdown/VvDropdownItem.vue +0 -32
  890. package/src/components/VvDropdown/VvDropdownOptgroup.vue +0 -18
  891. package/src/components/VvDropdown/VvDropdownOption.vue +0 -72
  892. package/src/components/VvDropdown/index.ts +0 -32
  893. package/src/components/VvIcon/README.md +0 -64
  894. package/src/components/VvIcon/VvIcon.vue +0 -139
  895. package/src/components/VvIcon/index.ts +0 -103
  896. package/src/components/VvInputText/VvInputClearAction.ts +0 -52
  897. package/src/components/VvInputText/VvInputPasswordAction.ts +0 -68
  898. package/src/components/VvInputText/VvInputStepAction.ts +0 -49
  899. package/src/components/VvInputText/VvInputText.vue +0 -547
  900. package/src/components/VvInputText/VvInputTextActions.ts +0 -97
  901. package/src/components/VvInputText/index.ts +0 -199
  902. package/src/components/VvNav/VvNav.vue +0 -44
  903. package/src/components/VvNav/VvNavItem.vue +0 -18
  904. package/src/components/VvNav/VvNavSeparator.vue +0 -11
  905. package/src/components/VvNav/index.ts +0 -8
  906. package/src/components/VvProgress/VvProgress.vue +0 -34
  907. package/src/components/VvProgress/index.ts +0 -32
  908. package/src/components/VvRadio/VvRadio.vue +0 -124
  909. package/src/components/VvRadio/index.ts +0 -46
  910. package/src/components/VvRadioGroup/VvRadioGroup.vue +0 -103
  911. package/src/components/VvRadioGroup/index.ts +0 -5
  912. package/src/components/VvSelect/VvSelect.vue +0 -247
  913. package/src/components/VvSelect/index.ts +0 -69
  914. package/src/components/VvTab/VvTab.vue +0 -77
  915. package/src/components/VvTab/index.ts +0 -19
  916. package/src/components/VvTextarea/VvTextarea.vue +0 -225
  917. package/src/components/VvTextarea/index.ts +0 -50
  918. package/src/components/VvTooltip/VvTooltip.vue +0 -23
  919. package/src/components/VvTooltip/index.ts +0 -18
  920. package/src/components/common/HintSlot.ts +0 -175
  921. package/src/components/index.ts +0 -24
  922. package/src/composables/alert/useAlert.ts +0 -103
  923. package/src/composables/alert/useInjectAlert.ts +0 -8
  924. package/src/composables/alert/useProvideAlert.ts +0 -23
  925. package/src/composables/dropdown/useInjectDropdown.ts +0 -26
  926. package/src/composables/dropdown/useProvideDropdown.ts +0 -94
  927. package/src/composables/group/useInjectedGroupState.ts +0 -51
  928. package/src/composables/group/useProvideGroupState.ts +0 -20
  929. package/src/composables/index.ts +0 -1
  930. package/src/composables/useComponentFocus.ts +0 -16
  931. package/src/composables/useComponentIcon.ts +0 -41
  932. package/src/composables/useDebouncedInput.ts +0 -32
  933. package/src/composables/useDefaults.ts +0 -89
  934. package/src/composables/useModifiers.ts +0 -36
  935. package/src/composables/useOptions.ts +0 -47
  936. package/src/composables/useTextCount.ts +0 -57
  937. package/src/composables/useUniqueId.ts +0 -5
  938. package/src/composables/useVolver.ts +0 -5
  939. package/src/constants.ts +0 -138
  940. package/src/directives/index.ts +0 -7
  941. package/src/directives/v-contextmenu.ts +0 -40
  942. package/src/directives/v-tooltip.ts +0 -15
  943. package/src/icons.ts +0 -7
  944. package/src/index.ts +0 -12
  945. package/src/props/index.ts +0 -479
  946. package/src/resolvers/unplugin.ts +0 -169
  947. package/src/shims.d.ts +0 -13
  948. package/src/stories/Accordion/Accordion.settings.ts +0 -57
  949. package/src/stories/Accordion/Accordion.stories.ts +0 -45
  950. package/src/stories/Accordion/Accordion.test.ts +0 -67
  951. package/src/stories/Accordion/AccordionSlots.stories.ts +0 -29
  952. package/src/stories/AccordionGroup/AccordionGroup.settings.ts +0 -77
  953. package/src/stories/AccordionGroup/AccordionGroup.stories.ts +0 -62
  954. package/src/stories/AccordionGroup/AccordionGroup.test.ts +0 -56
  955. package/src/stories/AccordionGroup/AccordionGroupSlots.stories.ts +0 -53
  956. package/src/stories/Alert/Alert.settings.ts +0 -122
  957. package/src/stories/Alert/Alert.stories.ts +0 -60
  958. package/src/stories/Alert/Alert.test.ts +0 -99
  959. package/src/stories/Alert/AlertModifiers.stories.ts +0 -77
  960. package/src/stories/Alert/AlertSlots.stories.ts +0 -74
  961. package/src/stories/AlertGroup/AlertGroup.settings.ts +0 -110
  962. package/src/stories/AlertGroup/AlertGroup.stories.ts +0 -50
  963. package/src/stories/AlertGroup/AlertGroup.test.ts +0 -89
  964. package/src/stories/AlertGroup/AlertGroupPosition.stories.ts +0 -103
  965. package/src/stories/AlertGroup/AlertGroupSlots.stories.ts +0 -67
  966. package/src/stories/AlertGroup/AlertGroupWithComposable.stories.ts +0 -118
  967. package/src/stories/Avatar/Avatar.settings.ts +0 -37
  968. package/src/stories/Avatar/Avatar.stories.ts +0 -42
  969. package/src/stories/Avatar/Avatar.test.ts +0 -34
  970. package/src/stories/Avatar/AvatarBadge.stories.ts +0 -36
  971. package/src/stories/Avatar/AvatarModifiers.stories.ts +0 -100
  972. package/src/stories/Avatar/AvatarSlots.stories.ts +0 -34
  973. package/src/stories/AvatarGroup/AvatarGroup.settings.ts +0 -60
  974. package/src/stories/AvatarGroup/AvatarGroup.stories.ts +0 -35
  975. package/src/stories/AvatarGroup/AvatarGroup.test.ts +0 -36
  976. package/src/stories/AvatarGroup/AvatarGroupModifiers.stories.ts +0 -31
  977. package/src/stories/AvatarGroup/AvatarGroupSlotDefault.stories.ts +0 -39
  978. package/src/stories/Badge/Badge.settings.ts +0 -26
  979. package/src/stories/Badge/Badge.stories.ts +0 -43
  980. package/src/stories/Badge/Badge.test.ts +0 -12
  981. package/src/stories/Badge/BadgeSlots.stories.ts +0 -23
  982. package/src/stories/Breadcrumb/Breadcrumb.settings.ts +0 -40
  983. package/src/stories/Breadcrumb/Breadcrumb.stories.ts +0 -41
  984. package/src/stories/Breadcrumb/Breadcrumb.test.ts +0 -52
  985. package/src/stories/Breadcrumb/BreadcrumbSlots.stories.ts +0 -37
  986. package/src/stories/Button/Button.settings.ts +0 -159
  987. package/src/stories/Button/Button.stories.ts +0 -38
  988. package/src/stories/Button/Button.test.ts +0 -48
  989. package/src/stories/Button/ButtonIcon.stories.ts +0 -67
  990. package/src/stories/Button/ButtonLink.stories.ts +0 -40
  991. package/src/stories/Button/ButtonLoading.stories.ts +0 -41
  992. package/src/stories/Button/ButtonModifiers.stories.ts +0 -148
  993. package/src/stories/Button/ButtonSlots.stories.ts +0 -87
  994. package/src/stories/Button/ButtonState.stories.ts +0 -42
  995. package/src/stories/Button/ButtonToggle.stories.ts +0 -52
  996. package/src/stories/ButtonGroup/ButtonGroup.settings.ts +0 -32
  997. package/src/stories/ButtonGroup/ButtonGroup.stories.ts +0 -39
  998. package/src/stories/ButtonGroup/ButtonGroup.test.ts +0 -35
  999. package/src/stories/ButtonGroup/ButtonGroupModifiers.stories.ts +0 -39
  1000. package/src/stories/ButtonGroup/ButtonGroupSlots.stories.ts +0 -38
  1001. package/src/stories/ButtonGroup/ButtonGroupToggle.stories.ts +0 -41
  1002. package/src/stories/Card/Card.settings.ts +0 -55
  1003. package/src/stories/Card/Card.stories.ts +0 -46
  1004. package/src/stories/Card/Card.test.ts +0 -23
  1005. package/src/stories/Card/CardSlots.stories.ts +0 -81
  1006. package/src/stories/Checkbox/Checkbox.settings.ts +0 -41
  1007. package/src/stories/Checkbox/Checkbox.stories.ts +0 -97
  1008. package/src/stories/Checkbox/Checkbox.test.ts +0 -81
  1009. package/src/stories/Checkbox/CheckboxBinary.stories.ts +0 -33
  1010. package/src/stories/Checkbox/CheckboxSlots.stories.ts +0 -31
  1011. package/src/stories/CheckboxGroup/CheckboxGroup.settings.ts +0 -15
  1012. package/src/stories/CheckboxGroup/CheckboxGroup.stories.ts +0 -87
  1013. package/src/stories/CheckboxGroup/CheckboxGroup.test.ts +0 -83
  1014. package/src/stories/CheckboxGroup/CheckboxGroupOptions.stories.ts +0 -53
  1015. package/src/stories/CheckboxGroup/CheckboxGroupSlots.stories.ts +0 -47
  1016. package/src/stories/Combobox/Combobox.settings.ts +0 -403
  1017. package/src/stories/Combobox/Combobox.stories.ts +0 -176
  1018. package/src/stories/Combobox/Combobox.test.ts +0 -110
  1019. package/src/stories/Combobox/ComboboxIconPosition.stories.ts +0 -43
  1020. package/src/stories/Combobox/ComboboxMultiple.stories.ts +0 -41
  1021. package/src/stories/Combobox/ComboboxOptions.stories.ts +0 -114
  1022. package/src/stories/Combobox/ComboboxSlots.stories.ts +0 -104
  1023. package/src/stories/Dialog/Dialog.settings.ts +0 -45
  1024. package/src/stories/Dialog/Dialog.stories.ts +0 -51
  1025. package/src/stories/Dialog/Dialog.test.ts +0 -69
  1026. package/src/stories/Dialog/DialogSlots.stories.ts +0 -39
  1027. package/src/stories/Dropdown/Dropdown.settings.ts +0 -69
  1028. package/src/stories/Dropdown/Dropdown.stories.ts +0 -107
  1029. package/src/stories/Dropdown/Dropdown.test.ts +0 -21
  1030. package/src/stories/Dropdown/DropdownContextmenuDirective.stories.ts +0 -49
  1031. package/src/stories/Dropdown/DropdownMultilevel.stories.ts +0 -61
  1032. package/src/stories/Dropdown/DropdownSlots.stories.ts +0 -95
  1033. package/src/stories/Icon/Icon.settings.ts +0 -72
  1034. package/src/stories/Icon/Icon.stories.ts +0 -48
  1035. package/src/stories/Icon/IconsCollection.stories.ts +0 -53
  1036. package/src/stories/InputText/InputText.settings.ts +0 -259
  1037. package/src/stories/InputText/InputText.stories.ts +0 -113
  1038. package/src/stories/InputText/InputText.test.ts +0 -144
  1039. package/src/stories/InputText/InputTextIconPosition.stories.ts +0 -43
  1040. package/src/stories/InputText/InputTextLength.stories.ts +0 -58
  1041. package/src/stories/InputText/InputTextMask.stories.ts +0 -122
  1042. package/src/stories/InputText/InputTextMinMax.stories.ts +0 -51
  1043. package/src/stories/InputText/InputTextSlots.stories.ts +0 -39
  1044. package/src/stories/InputText/InputTextType.stories.ts +0 -119
  1045. package/src/stories/Nav/Nav.settings.ts +0 -35
  1046. package/src/stories/Nav/Nav.stories.ts +0 -33
  1047. package/src/stories/Nav/Nav.test.ts +0 -21
  1048. package/src/stories/Nav/NavModifiers.stories.ts +0 -47
  1049. package/src/stories/Progress/Progress.settings.ts +0 -30
  1050. package/src/stories/Progress/Progress.stories.ts +0 -41
  1051. package/src/stories/Progress/Progress.test.ts +0 -9
  1052. package/src/stories/Radio/Radio.settings.ts +0 -15
  1053. package/src/stories/Radio/Radio.stories.ts +0 -81
  1054. package/src/stories/Radio/Radio.test.ts +0 -70
  1055. package/src/stories/Radio/RadioSlots.stories.ts +0 -31
  1056. package/src/stories/RadioGroup/RadioGroup.settings.ts +0 -15
  1057. package/src/stories/RadioGroup/RadioGroup.stories.ts +0 -88
  1058. package/src/stories/RadioGroup/RadioGroup.test.ts +0 -83
  1059. package/src/stories/RadioGroup/RadioGroupOptions.stories.ts +0 -53
  1060. package/src/stories/RadioGroup/RadioGroupSlots.stories.ts +0 -47
  1061. package/src/stories/Select/Select.settings.ts +0 -80
  1062. package/src/stories/Select/Select.stories.ts +0 -113
  1063. package/src/stories/Select/Select.test.ts +0 -85
  1064. package/src/stories/Select/SelectIconPosition.stories.ts +0 -43
  1065. package/src/stories/Select/SelectOptions.stories.ts +0 -77
  1066. package/src/stories/Select/SelectSlots.stories.ts +0 -39
  1067. package/src/stories/Tab/Tab.settings.ts +0 -41
  1068. package/src/stories/Tab/Tab.stories.ts +0 -70
  1069. package/src/stories/Tab/Tab.test.ts +0 -29
  1070. package/src/stories/Textarea/Textarea.settings.ts +0 -88
  1071. package/src/stories/Textarea/Textarea.stories.ts +0 -107
  1072. package/src/stories/Textarea/Textarea.test.ts +0 -90
  1073. package/src/stories/Textarea/TextareaLength.stories.ts +0 -58
  1074. package/src/stories/Textarea/TextareaSlots.stories.ts +0 -39
  1075. package/src/stories/Textarea/TextareatIconPosition.stories.ts +0 -43
  1076. package/src/stories/Tooltip/Tooltip.settings.ts +0 -25
  1077. package/src/stories/Tooltip/Tooltip.stories.ts +0 -40
  1078. package/src/stories/Tooltip/Tooltip.test.ts +0 -60
  1079. package/src/stories/Tooltip/TooltipDirective.stories.ts +0 -68
  1080. package/src/stories/argTypes.ts +0 -562
  1081. package/src/test/expect.ts +0 -88
  1082. package/src/test/options.ts +0 -17
  1083. package/src/test/sleep.ts +0 -2
  1084. package/src/test/types.d.ts +0 -17
  1085. package/src/types/alert.ts +0 -20
  1086. package/src/types/floating-ui.ts +0 -7
  1087. package/src/types/generic.ts +0 -5
  1088. package/src/types/group.ts +0 -44
  1089. package/src/types/index.ts +0 -5
  1090. package/src/types/nav.ts +0 -19
  1091. package/src/utils/ObjectUtilities.ts +0 -288
@@ -1,271 +1,326 @@
1
- import { inject, computed, unref, defineComponent, ref, toRefs, openBlock, createBlock, mergeProps, createCommentVNode, isRef, h, watch, useSlots, createElementBlock, normalizeClass, toDisplayString, createElementVNode, renderSlot, normalizeProps, guardReactiveProps, withDirectives, Fragment, renderList, vModelSelect, createVNode, createSlots, withCtx } from "vue";
2
- import { iconExists, Icon, addIcon } from "@iconify/vue";
3
- import { uid } from "uid";
1
+ import { computed, isRef, defineComponent, h, inject, unref, mergeDefaults, ref, toRefs, createBlock, createCommentVNode, openBlock, mergeProps, watch, useId, useSlots, createElementBlock, normalizeClass, createElementVNode, createVNode, toDisplayString, renderSlot, normalizeProps, guardReactiveProps, withDirectives, Fragment, renderList, vModelSelect, createSlots, withCtx } from "vue";
2
+ import { iconLoaded, Icon, addIcon } from "@iconify/vue";
4
3
  import { useFocus, useElementVisibility } from "@vueuse/core";
5
4
  import { get } from "ts-dot-prop";
6
- const VvIconProps = {
5
+ var StorageType = /* @__PURE__ */ ((StorageType2) => {
6
+ StorageType2["local"] = "local";
7
+ StorageType2["session"] = "session";
8
+ return StorageType2;
9
+ })(StorageType || {});
10
+ var Side = /* @__PURE__ */ ((Side2) => {
11
+ Side2["left"] = "left";
12
+ Side2["right"] = "right";
13
+ Side2["top"] = "top";
14
+ Side2["bottom"] = "bottom";
15
+ return Side2;
16
+ })(Side || {});
17
+ var Position = /* @__PURE__ */ ((Position2) => {
18
+ Position2["before"] = "before";
19
+ Position2["after"] = "after";
20
+ return Position2;
21
+ })(Position || {});
22
+ var ButtonType = /* @__PURE__ */ ((ButtonType2) => {
23
+ ButtonType2["button"] = "button";
24
+ ButtonType2["submit"] = "submit";
25
+ ButtonType2["reset"] = "reset";
26
+ return ButtonType2;
27
+ })(ButtonType || {});
28
+ var ActionTag = /* @__PURE__ */ ((ActionTag2) => {
29
+ ActionTag2["nuxtLink"] = "nuxt-link";
30
+ ActionTag2["routerLink"] = "router-link";
31
+ ActionTag2["a"] = "a";
32
+ ActionTag2["button"] = "button";
33
+ return ActionTag2;
34
+ })(ActionTag || {});
35
+ const INJECTION_KEY_VOLVER = Symbol.for("volver");
36
+ const ValidProps = {
37
+ /**
38
+ * Valid status
39
+ */
40
+ valid: { type: Boolean, default: false },
7
41
  /**
8
- * Color
42
+ * Valid label
9
43
  */
10
- color: String,
44
+ validLabel: { type: [String, Array], default: void 0 }
45
+ };
46
+ const InvalidProps = {
11
47
  /**
12
- * Width
48
+ * Invalid status
13
49
  */
14
- width: {
15
- type: [String, Number]
50
+ invalid: {
51
+ type: Boolean,
52
+ default: false
16
53
  },
17
54
  /**
18
- * Height
55
+ * Invalid label
56
+ */
57
+ invalidLabel: { type: [String, Array], default: void 0 }
58
+ };
59
+ const LoadingProps = {
60
+ /**
61
+ * Loading status
19
62
  */
20
- height: {
21
- type: [String, Number]
63
+ loading: {
64
+ type: Boolean,
65
+ default: false
22
66
  },
23
67
  /**
24
- * Icon name
25
- * Can be the full composition of iconify name "@{provider}:{prefix}:{name}" or "{prefix}:{name}" or "{name}"
26
- * https://docs.iconify.design/api/providers.html#provider-in-icon-name
68
+ * Loading label
27
69
  */
28
- name: {
70
+ loadingLabel: {
29
71
  type: String,
30
- required: true
72
+ default: "Loading..."
73
+ }
74
+ };
75
+ const DisabledProps = {
76
+ /**
77
+ * Whether the form control is disabled
78
+ */
79
+ disabled: {
80
+ type: Boolean,
81
+ default: false
82
+ }
83
+ };
84
+ const LabelProps = {
85
+ /**
86
+ * The item label
87
+ */
88
+ label: {
89
+ type: [String, Number],
90
+ default: void 0
91
+ }
92
+ };
93
+ const ReadonlyProps = {
94
+ /**
95
+ * The value is not editable
96
+ */
97
+ readonly: {
98
+ type: Boolean,
99
+ default: false
100
+ }
101
+ };
102
+ const ModifiersProps = {
103
+ /**
104
+ * Component BEM modifiers
105
+ */
106
+ modifiers: {
107
+ type: [String, Array],
108
+ default: void 0
109
+ }
110
+ };
111
+ const HintProps = {
112
+ hintLabel: { type: String, default: "" }
113
+ };
114
+ const OptionsProps = {
115
+ /**
116
+ * List of options, can be string[] or object[]
117
+ */
118
+ options: {
119
+ type: Array,
120
+ default: () => []
31
121
  },
32
122
  /**
33
- * By default 'vv'
34
- * If custom collection is not added with "addCollection" DS class method, this prop could not be used
35
- * Icon provider: https://docs.iconify.design/api/providers.html#provider-in-icon-name
123
+ * Used when options are objects: key to use for option label
124
+ */
125
+ labelKey: { type: [String, Function], default: "label" },
126
+ /**
127
+ * Used when options are objects: key to use for option label
128
+ */
129
+ valueKey: { type: [String, Function], default: "value" },
130
+ /**
131
+ * Used when options are objects: key to use for option disabled
132
+ */
133
+ disabledKey: { type: [String, Function], default: "disabled" }
134
+ };
135
+ const IconProps = {
136
+ /**
137
+ * VvIcon name or props
138
+ * @see VvIcon
36
139
  */
37
- provider: {
38
- type: String
140
+ icon: {
141
+ type: [String, Object],
142
+ default: void 0
39
143
  },
40
144
  /**
41
- * The name of icon set.
42
- * Icon default options prefix: simple | normal | detailed
145
+ * VvIcon position
43
146
  */
44
- prefix: {
147
+ iconPosition: {
45
148
  type: String,
46
- default: "normal"
47
- },
149
+ default: Position.before,
150
+ validation: (value) => Object.values(Position).includes(value)
151
+ }
152
+ };
153
+ const TabindexProps = {
48
154
  /**
49
- * Url remote SVG icon
155
+ * Global attribute tabindex
156
+ * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/tabindex
50
157
  */
51
- src: String,
158
+ tabindex: { type: [String, Number], default: 0 }
159
+ };
160
+ const FloatingLabelProps = {
52
161
  /**
53
- * Horizontal flip
162
+ * If true the label will be floating
54
163
  */
55
- horizontalFlip: Boolean,
164
+ floating: {
165
+ type: Boolean,
166
+ default: false
167
+ }
168
+ };
169
+ const UnselectableProps = {
56
170
  /**
57
- * Vertical flip
171
+ * If true the input will be unselectable
58
172
  */
59
- verticalFlip: Boolean,
173
+ unselectable: { type: Boolean, default: true }
174
+ };
175
+ const IdProps = {
60
176
  /**
61
- * String alternative to "horizontalFlip" and "verticalFlip".
62
- * Example: https://docs.iconify.design/icon-components/vue/transform.html
177
+ * Global attribute id
178
+ * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/id
63
179
  */
64
- flip: String,
180
+ id: [String, Number]
181
+ };
182
+ ({
65
183
  /**
66
- * Icon render mode
67
- * 'style' = 'bg' or 'mask', depending on icon content
68
- * 'bg' = span with style using `background`
69
- * 'mask' = span with style using `mask`
70
- * 'svg' = svg
71
- * Iconify doc: https://docs.iconify.design/iconify-icon/modes.html
184
+ * Dropdown placement
72
185
  */
73
- mode: String,
186
+ placement: {
187
+ default: Side.bottom
188
+ }
189
+ });
190
+ const IdNameProps = {
191
+ ...IdProps,
74
192
  /**
75
- * Toggles inline or block mode
76
- * Example https://docs.iconify.design/icon-components/vue/inline.html
193
+ * Input / Textarea name
194
+ * Name of the form control. Submitted with the form as part of a name/value pair
195
+ * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#name
77
196
  */
78
- inline: Boolean,
197
+ name: { type: String, required: true }
198
+ };
199
+ const AutofocusProps = {
79
200
  /**
80
- * rotates icon
81
- * Example https://docs.iconify.design/icon-components/vue/transform.html
201
+ * Global attribute autofocus
202
+ * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/autofocus
82
203
  */
83
- rotate: [Number, String],
204
+ autofocus: {
205
+ type: Boolean,
206
+ default: false
207
+ }
208
+ };
209
+ const AutocompleteProps = {
84
210
  /**
85
- * A callback that is called when icon data has been loaded
211
+ * Global attribute autocomplete
212
+ * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete
86
213
  */
87
- onLoad: Function,
214
+ autocomplete: { type: String, default: "off" }
215
+ };
216
+ ({
88
217
  /**
89
- * SVG icon string
218
+ * Button type
90
219
  */
91
- svg: String,
220
+ type: {
221
+ default: ButtonType.button
222
+ },
92
223
  /**
93
- * Icon modifiers: vv-icon css helper classes, value/s are concatened with prefix 'vv-icon--'
94
- * @values string | string[]
224
+ * Default tag for the action
95
225
  */
96
- modifiers: {
97
- type: [String, Array]
226
+ defaultTag: {
227
+ default: ActionTag.button
228
+ }
229
+ });
230
+ ({
231
+ storageType: {
232
+ default: StorageType.local
98
233
  }
234
+ });
235
+ const ACTION_ICONS = {
236
+ clear: "close"
99
237
  };
100
- var Strategy = /* @__PURE__ */ ((Strategy2) => {
101
- Strategy2["absolute"] = "absolute";
102
- Strategy2["fixed"] = "fixed";
103
- return Strategy2;
104
- })(Strategy || {});
105
- var Side = /* @__PURE__ */ ((Side2) => {
106
- Side2["left"] = "left";
107
- Side2["right"] = "right";
108
- Side2["top"] = "top";
109
- Side2["bottom"] = "bottom";
110
- return Side2;
111
- })(Side || {});
112
- var Placement = /* @__PURE__ */ ((Placement2) => {
113
- Placement2["topStart"] = "top-start";
114
- Placement2["topEnd"] = "top-end";
115
- Placement2["bottomStart"] = "bottom-start";
116
- Placement2["bottomEnd"] = "bottom-end";
117
- Placement2["leftStart"] = "left-start";
118
- Placement2["leftEnd"] = "left-end";
119
- Placement2["rightStart"] = "right-start";
120
- Placement2["rightEnd"] = "right-end";
121
- return Placement2;
122
- })(Placement || {});
123
- var Position = /* @__PURE__ */ ((Position2) => {
124
- Position2["before"] = "before";
125
- Position2["after"] = "after";
126
- return Position2;
127
- })(Position || {});
128
- var ButtonType = /* @__PURE__ */ ((ButtonType2) => {
129
- ButtonType2["button"] = "button";
130
- ButtonType2["submit"] = "submit";
131
- ButtonType2["reset"] = "reset";
132
- return ButtonType2;
133
- })(ButtonType || {});
134
- var AnchorTarget = /* @__PURE__ */ ((AnchorTarget2) => {
135
- AnchorTarget2["_blank"] = "_blank";
136
- AnchorTarget2["_self"] = "_self";
137
- AnchorTarget2["_parent"] = "_parent";
138
- AnchorTarget2["_top"] = "_top";
139
- return AnchorTarget2;
140
- })(AnchorTarget || {});
141
- const INJECTION_KEY_VOLVER = Symbol.for("volver");
142
- function useVolver() {
143
- return inject(INJECTION_KEY_VOLVER);
144
- }
145
- function useModifiers(prefix, modifiers, others) {
146
- return computed(() => {
147
- const toReturn = {
148
- [prefix]: true
149
- };
150
- const modifiersArray = typeof (modifiers == null ? void 0 : modifiers.value) === "string" ? modifiers.value.split(" ") : modifiers == null ? void 0 : modifiers.value;
151
- if (modifiersArray) {
152
- if (Array.isArray(modifiersArray)) {
153
- modifiersArray.forEach((modifier) => {
154
- if (modifier) {
155
- toReturn[`${prefix}--${modifier}`] = true;
156
- }
157
- });
158
- }
159
- }
160
- if (others) {
161
- Object.keys(others.value).forEach((key) => {
162
- toReturn[`${prefix}--${key}`] = unref(others.value[key]);
163
- });
164
- }
165
- return toReturn;
166
- });
167
- }
168
- const __default__$1 = {
169
- name: "VvIcon"
238
+ const VvIconPropsDefaults = {
239
+ prefix: "normal"
240
+ /* normal */
170
241
  };
171
- const _sfc_main$1 = /* @__PURE__ */ defineComponent({
172
- ...__default__$1,
173
- props: VvIconProps,
174
- setup(__props) {
175
- const props = __props;
176
- const hasRotate = computed(() => {
177
- if (typeof props.rotate === "string") {
178
- return parseFloat(props.rotate);
179
- }
180
- return props.rotate;
181
- });
182
- const show = ref(true);
183
- const volver = useVolver();
184
- const { modifiers } = toRefs(props);
185
- const bemCssClasses = useModifiers("vv-icon", modifiers);
186
- const provider = computed(() => {
187
- return props.provider || (volver == null ? void 0 : volver.iconsProvider);
188
- });
189
- const icon = computed(() => {
190
- const name = props.name ?? "";
191
- const iconName = `@${provider.value}:${props.prefix}:${name}`;
192
- if (iconExists(iconName)) {
193
- return iconName;
194
- }
195
- const iconsCollection = volver == null ? void 0 : volver.iconsCollections.find(
196
- (iconsCollection2) => {
197
- const icon2 = `@${provider.value}:${iconsCollection2.prefix}:${name}`;
198
- return iconExists(icon2);
199
- }
200
- );
201
- if (iconsCollection) {
202
- return `@${provider.value}:${iconsCollection.prefix}:${name}`;
203
- }
204
- return name;
205
- });
206
- function getSvgContent(svg) {
207
- let dom;
208
- if (typeof window === "undefined") {
209
- const { JSDOM } = require("jsdom");
210
- dom = new JSDOM().window;
211
- }
212
- const domParser = dom ? new dom.DOMParser() : new window.DOMParser();
213
- const svgDomString = domParser.parseFromString(svg, "text/html");
214
- const svgEl = svgDomString.querySelector("svg");
215
- return svgEl;
216
- }
217
- function addIconFromSvg(svg) {
218
- const svgContentEl = getSvgContent(svg);
219
- const svgContent = (svgContentEl == null ? void 0 : svgContentEl.innerHTML.trim()) || "";
220
- if (svgContentEl && svgContent) {
221
- addIcon(`@${provider.value}:${props.prefix}:${props.name}`, {
222
- body: svgContent,
223
- // Set height and width from svg content
224
- height: svgContentEl.viewBox.baseVal.height,
225
- width: svgContentEl.viewBox.baseVal.width
226
- });
227
- }
228
- }
229
- if (volver) {
230
- if (props.src && !iconExists(`@${provider.value}:${props.prefix}:${props.name}`)) {
231
- show.value = false;
232
- volver.fetchIcon(props.src).then((svg) => {
233
- if (svg) {
234
- addIconFromSvg(svg);
235
- show.value = true;
236
- }
237
- }).catch((e) => {
238
- throw new Error(`Error during fetch icon: ${e == null ? void 0 : e.message}`);
239
- });
240
- }
241
- }
242
- if (props.svg) {
243
- addIconFromSvg(props.svg);
244
- }
245
- return (_ctx, _cache) => {
246
- return unref(show) ? (openBlock(), createBlock(unref(Icon), mergeProps({
247
- key: 0,
248
- class: unref(bemCssClasses)
249
- }, {
250
- inline: _ctx.inline,
251
- width: _ctx.width,
252
- height: _ctx.height,
253
- horizontalFlip: _ctx.horizontalFlip,
254
- verticalFlip: _ctx.verticalFlip,
255
- flip: _ctx.flip,
256
- rotate: unref(hasRotate),
257
- color: _ctx.color,
258
- onLoad: _ctx.onLoad,
259
- icon: unref(icon)
260
- }), null, 16, ["class"])) : createCommentVNode("", true);
261
- };
242
+ const VvSelectProps = {
243
+ ...IdNameProps,
244
+ ...AutofocusProps,
245
+ ...AutocompleteProps,
246
+ ...TabindexProps,
247
+ ...ValidProps,
248
+ ...InvalidProps,
249
+ ...HintProps,
250
+ ...LoadingProps,
251
+ ...DisabledProps,
252
+ ...ReadonlyProps,
253
+ ...ModifiersProps,
254
+ ...OptionsProps,
255
+ ...IconProps,
256
+ ...FloatingLabelProps,
257
+ ...UnselectableProps,
258
+ ...LabelProps,
259
+ /**
260
+ * This Boolean attribute indicates that multiple options can be selected in the list.
261
+ * If it is not specified, then only one option can be selected at a time.
262
+ * When multiple is specified, most browsers will show a scrolling list box instead of a single line dropdown.
263
+ * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/select#attr-multiple
264
+ */
265
+ multiple: Boolean,
266
+ /**
267
+ * A Boolean attribute indicating that an option with a non-empty string value must be selected.
268
+ * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/select#attr-required
269
+ */
270
+ required: Boolean,
271
+ /**
272
+ * If the control is presented as a scrolling list box (e.g. when multiple is specified),
273
+ * this attribute represents the number of rows in the list that should be visible at one time.
274
+ * Browsers are not required to present a select element as a scrolled list box. The default value is 0.
275
+ * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/select#attr-size
276
+ */
277
+ size: [String, Number],
278
+ /**
279
+ * modelValue can be a string, number, boolean, object or array of string, number, boolean, object
280
+ */
281
+ modelValue: {
282
+ type: [String, Number, Boolean, Object, Array],
283
+ default: void 0
284
+ },
285
+ /**
286
+ * Select first option automatically
287
+ */
288
+ autoselectFirst: {
289
+ type: Boolean,
290
+ default: false
291
+ },
292
+ /**
293
+ * Select placeholder
294
+ */
295
+ placeholder: String,
296
+ /**
297
+ * VvIcon name for clear button
298
+ * @see VvIcon
299
+ */
300
+ iconClear: {
301
+ type: [String, Object],
302
+ default: ACTION_ICONS.clear
303
+ },
304
+ /**
305
+ * Label for clear button
306
+ */
307
+ labelClear: {
308
+ type: String,
309
+ default: "Clear"
262
310
  }
263
- });
264
- function isEmpty(value) {
265
- return ((value2) => value2 === null || value2 === void 0 || value2 === "" || Array.isArray(value2) && value2.length === 0 || !(value2 instanceof Date) && typeof value2 === "object" && Object.keys(value2).length === 0)(unref(value));
311
+ };
312
+ function useVvSelectProps() {
313
+ return {
314
+ ...VvSelectProps,
315
+ options: {
316
+ ...VvSelectProps.options,
317
+ type: Array,
318
+ default: () => []
319
+ }
320
+ };
266
321
  }
267
322
  function isString(value) {
268
- return typeof value === "string" || value instanceof String;
323
+ return typeof value === "string";
269
324
  }
270
325
  function joinLines(items) {
271
326
  if (Array.isArray(items)) {
@@ -385,360 +440,233 @@ function HintSlotFactory(propsOrRef, slots) {
385
440
  HintSlot
386
441
  };
387
442
  }
388
- const LinkProps = {
389
- /**
390
- * The router-link/nuxt-link property, if it is defined the button is rendered as a ruouter-link or nuxt-link.
391
- * @see Documentation of [router-link](https://router.vuejs.org/api/#router-link) and [nuxt-link](https://nuxtjs.org/api/components-nuxt-link/)
392
- */
393
- to: {
394
- type: [String, Object]
395
- },
396
- /**
397
- * Anchor href
398
- */
399
- href: String,
400
- /**
401
- * Anchor target
402
- */
403
- target: {
404
- type: String,
405
- validator: (value) => Object.values(AnchorTarget).includes(value)
406
- },
407
- /**
408
- * Anchor rel
409
- */
410
- rel: {
411
- type: String,
412
- default: "noopener noreferrer"
413
- }
414
- };
415
- const ValidProps = {
416
- /**
417
- * Valid status
418
- */
419
- valid: Boolean,
420
- /**
421
- * Valid label
422
- */
423
- validLabel: [String, Array]
424
- };
425
- const InvalidProps = {
426
- /**
427
- * Invalid status
428
- */
429
- invalid: Boolean,
430
- /**
431
- * Invalid label
432
- */
433
- invalidLabel: [String, Array]
434
- };
435
- const LoadingProps = {
436
- /**
437
- * Loading status
438
- */
439
- loading: Boolean,
440
- /**
441
- * Loading label
442
- */
443
- loadingLabel: {
444
- type: String,
445
- default: "Loading..."
446
- }
447
- };
448
- const DisabledProps = {
449
- /**
450
- * Whether the form control is disabled
451
- */
452
- disabled: Boolean
453
- };
454
- const ActiveProps = {
455
- /**
456
- * Whether the item is active
457
- */
458
- active: Boolean
459
- };
460
- const CurrentProps = {
461
- /**
462
- * Whether the item is current
463
- */
464
- current: Boolean
465
- };
466
- const PressedProps = {
467
- /**
468
- * Whether the item is pressed
469
- */
470
- pressed: Boolean
471
- };
472
- const LabelProps = {
473
- /**
474
- * The item label
475
- */
476
- label: [String, Number]
477
- };
478
- const ReadonlyProps = {
479
- /**
480
- * The value is not editable
481
- */
482
- readonly: Boolean
483
- };
484
- const ModifiersProps = {
485
- /**
486
- * Component BEM modifiers
487
- */
488
- modifiers: [String, Array]
489
- };
490
- const HintProps = {
491
- hintLabel: { type: String, default: "" }
492
- };
493
- const OptionsProps = {
494
- /**
495
- * List of options, can be string[] or object[]
496
- */
497
- options: {
498
- type: Array,
499
- default: () => []
500
- },
501
- /**
502
- * Used when options are objects: key to use for option label
503
- */
504
- labelKey: { type: [String, Function], default: "label" },
505
- /**
506
- * Used when options are objects: key to use for option label
507
- */
508
- valueKey: { type: [String, Function], default: "value" },
509
- /**
510
- * Used when options are objects: key to use for option disabled
511
- */
512
- disabledKey: { type: [String, Function], default: "disabled" }
513
- };
514
- const IconProps = {
515
- /**
516
- * VvIcon name or props
517
- * @see VVIcon
518
- */
519
- icon: { type: [String, Object] },
520
- /**
521
- * VvIcon position
522
- */
523
- iconPosition: {
524
- type: String,
525
- default: Position.before,
526
- validation: (value) => Object.values(Position).includes(value)
527
- }
528
- };
529
- const TabindexProps = {
530
- /**
531
- * Global attribute tabindex
532
- * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/tabindex
533
- */
534
- tabindex: { type: [String, Number], default: 0 }
535
- };
536
- const FloatingLabelProps = {
537
- /**
538
- * If true the label will be floating
539
- */
540
- floating: Boolean
541
- };
542
- const UnselectableProps = {
543
- /**
544
- * If true the input will be unselectable
545
- */
546
- unselectable: { type: Boolean, default: true }
547
- };
548
- const IdProps = {
549
- /**
550
- * Global attribute id
551
- * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/id
552
- */
553
- id: [String, Number]
443
+ function useVolver() {
444
+ return inject(INJECTION_KEY_VOLVER, void 0);
445
+ }
446
+ function useModifiers(prefix, modifiers, others) {
447
+ return computed(() => {
448
+ const toReturn = {
449
+ [prefix]: true
450
+ };
451
+ const modifiersArray = typeof (modifiers == null ? void 0 : modifiers.value) === "string" ? modifiers.value.split(" ") : modifiers == null ? void 0 : modifiers.value;
452
+ if (modifiersArray) {
453
+ if (Array.isArray(modifiersArray)) {
454
+ modifiersArray.forEach((modifier) => {
455
+ if (modifier) {
456
+ toReturn[`${prefix}--${modifier}`] = true;
457
+ }
458
+ });
459
+ }
460
+ }
461
+ if (others) {
462
+ Object.keys(others.value).forEach((key) => {
463
+ toReturn[`${prefix}--${key}`] = unref(others.value[key]);
464
+ });
465
+ }
466
+ return toReturn;
467
+ });
468
+ }
469
+ const __default__$1 = {
470
+ name: "VvIcon"
554
471
  };
555
- ({
556
- /**
557
- * Dropdown placement
558
- */
559
- placement: {
560
- type: String,
561
- default: Side.bottom,
562
- validator: (value) => Object.values(Side).includes(value) || Object.values(Placement).includes(value)
563
- },
564
- /**
565
- * Dropdown strategy
566
- */
567
- strategy: {
568
- type: String,
569
- default: void 0,
570
- validator: (value) => Object.values(Strategy).includes(value)
571
- },
572
- /**
573
- * Dropdown show / hide transition name
574
- */
575
- transitionName: {
576
- type: String
577
- },
578
- /**
579
- * Offset of the dropdown from the trigger
580
- * @see https://floating-ui.com/docs/offset
581
- */
582
- offset: {
583
- type: [Number, String, Object],
584
- default: 0
585
- },
586
- /**
587
- * Move dropdown to the side if there is no space in the default position
588
- * @see https://floating-ui.com/docs/shift
589
- */
590
- shift: {
591
- type: [Boolean, Object],
592
- default: false
593
- },
594
- /**
595
- * Flip dropdown position if there is no space in the default position
596
- * @see https://floating-ui.com/docs/flip
597
- */
598
- flip: {
599
- type: [Boolean, Object],
600
- default: true
601
- },
602
- /**
603
- * Size of the dropdown
604
- * @see https://floating-ui.com/docs/size
605
- */
606
- size: {
607
- type: [Boolean, Object],
608
- default: () => ({ padding: 10 })
609
- },
610
- /**
611
- * Automatically change the position of the dropdown
612
- * @see https://floating-ui.com/docs/autoPlacement
613
- */
614
- autoPlacement: {
615
- type: [Boolean, Object],
616
- default: false
617
- },
618
- /**
619
- * Add arrow to the dropdown
620
- * @see https://floating-ui.com/docs/arrow
621
- */
622
- arrow: {
623
- type: Boolean,
624
- default: false
625
- },
626
- /**
627
- * Keep open dropdown on click outside
628
- */
629
- keepOpen: {
630
- type: Boolean,
631
- default: false
632
- },
633
- /**
634
- * Autofocus first item on dropdown open
635
- */
636
- autofocusFirst: {
637
- type: Boolean,
638
- default: true
639
- },
640
- /**
641
- * Set dropdown width to the same as the trigger
642
- */
643
- triggerWidth: {
644
- type: Boolean
472
+ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
473
+ ...__default__$1,
474
+ props: /* @__PURE__ */ mergeDefaults({
475
+ name: {},
476
+ color: {},
477
+ width: {},
478
+ height: {},
479
+ provider: {},
480
+ prefix: {},
481
+ src: {},
482
+ horizontalFlip: { type: Boolean },
483
+ verticalFlip: { type: Boolean },
484
+ flip: {},
485
+ mode: {},
486
+ inline: { type: Boolean },
487
+ rotate: {},
488
+ onLoad: { type: Function },
489
+ svg: {},
490
+ modifiers: {}
491
+ }, VvIconPropsDefaults),
492
+ setup(__props) {
493
+ const props = __props;
494
+ const hasRotate = computed(() => {
495
+ if (typeof props.rotate === "string") {
496
+ return Number.parseFloat(props.rotate);
497
+ }
498
+ return props.rotate;
499
+ });
500
+ const show = ref(true);
501
+ const volver = useVolver();
502
+ const { modifiers } = toRefs(props);
503
+ const bemCssClasses = useModifiers("vv-icon", modifiers);
504
+ const provider = computed(() => {
505
+ return props.provider || (volver == null ? void 0 : volver.iconsProvider);
506
+ });
507
+ const icon = computed(() => {
508
+ const name = props.name ?? "";
509
+ const iconName = `@${provider.value}:${props.prefix}:${name}`;
510
+ if (iconLoaded(iconName)) {
511
+ return iconName;
512
+ }
513
+ const iconsCollection = volver == null ? void 0 : volver.iconsCollections.find(
514
+ (iconsCollection2) => {
515
+ const icon2 = `@${provider.value}:${iconsCollection2.prefix}:${name}`;
516
+ return iconLoaded(icon2);
517
+ }
518
+ );
519
+ if (iconsCollection) {
520
+ return `@${provider.value}:${iconsCollection.prefix}:${name}`;
521
+ }
522
+ return name;
523
+ });
524
+ function getSvgContent(svg) {
525
+ let dom;
526
+ if (typeof window === "undefined") {
527
+ const { JSDOM } = require("jsdom");
528
+ dom = new JSDOM().window;
529
+ }
530
+ const domParser = dom ? new dom.DOMParser() : new window.DOMParser();
531
+ const svgDomString = domParser.parseFromString(svg, "text/html");
532
+ const svgEl = svgDomString.querySelector("svg");
533
+ return svgEl;
534
+ }
535
+ function addIconFromSvg(svg) {
536
+ const svgContentEl = getSvgContent(svg);
537
+ const svgContent = (svgContentEl == null ? void 0 : svgContentEl.innerHTML.trim()) || "";
538
+ if (svgContentEl && svgContent) {
539
+ addIcon(`@${provider.value}:${props.prefix}:${props.name}`, {
540
+ body: svgContent,
541
+ // Set height and width from svg content
542
+ height: svgContentEl.viewBox.baseVal.height,
543
+ width: svgContentEl.viewBox.baseVal.width
544
+ });
545
+ }
546
+ }
547
+ if (volver) {
548
+ if (props.src && !iconLoaded(`@${provider.value}:${props.prefix}:${props.name}`)) {
549
+ show.value = false;
550
+ volver.fetchIcon(props.src).then((svg) => {
551
+ if (svg) {
552
+ addIconFromSvg(svg);
553
+ show.value = true;
554
+ }
555
+ }).catch((e) => {
556
+ throw new Error(`Error during fetch icon: ${e == null ? void 0 : e.message}`);
557
+ });
558
+ }
559
+ }
560
+ if (props.svg) {
561
+ addIconFromSvg(props.svg);
562
+ }
563
+ return (_ctx, _cache) => {
564
+ return unref(show) ? (openBlock(), createBlock(unref(Icon), mergeProps({
565
+ key: 0,
566
+ class: unref(bemCssClasses)
567
+ }, {
568
+ inline: _ctx.inline,
569
+ width: _ctx.width,
570
+ height: _ctx.height,
571
+ horizontalFlip: _ctx.horizontalFlip,
572
+ verticalFlip: _ctx.verticalFlip,
573
+ flip: _ctx.flip,
574
+ rotate: unref(hasRotate),
575
+ color: _ctx.color,
576
+ icon: unref(icon)
577
+ }, { onLoad: _ctx.onLoad }), null, 16, ["class", "onLoad"])) : createCommentVNode("v-if", true);
578
+ };
645
579
  }
646
580
  });
647
- const IdNameProps = {
648
- ...IdProps,
649
- /**
650
- * Input / Textarea name
651
- * Name of the form control. Submitted with the form as part of a name/value pair
652
- * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#name
653
- */
654
- name: { type: String, required: true }
655
- };
656
- const AutofocusProps = {
657
- /**
658
- * Global attribute autofocus
659
- * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/autofocus
660
- */
661
- autofocus: Boolean
662
- };
663
- const AutocompleteProps = {
664
- /**
665
- * Global attribute autocomplete
666
- * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete
667
- */
668
- autocomplete: { type: String, default: "off" }
669
- };
670
- ({
671
- ...DisabledProps,
672
- ...LabelProps,
673
- ...PressedProps,
674
- ...ActiveProps,
675
- ...CurrentProps,
676
- ...LinkProps,
677
- /**
678
- * Button type
679
- */
680
- type: {
681
- type: String,
682
- default: ButtonType.button,
683
- validator: (value) => Object.values(ButtonType).includes(value)
581
+ function useComponentIcon(icon, iconPosition) {
582
+ const hasIcon = computed(() => {
583
+ if (typeof (icon == null ? void 0 : icon.value) === "string") {
584
+ return { name: icon == null ? void 0 : icon.value };
585
+ }
586
+ return icon == null ? void 0 : icon.value;
587
+ });
588
+ const hasIconBefore = computed(
589
+ () => (iconPosition == null ? void 0 : iconPosition.value) === Position.before ? hasIcon.value : void 0
590
+ );
591
+ const hasIconAfter = computed(
592
+ () => (iconPosition == null ? void 0 : iconPosition.value) === Position.after ? hasIcon.value : void 0
593
+ );
594
+ const hasIconLeft = computed(
595
+ () => (iconPosition == null ? void 0 : iconPosition.value) === Side.left ? hasIcon.value : void 0
596
+ );
597
+ const hasIconRight = computed(
598
+ () => (iconPosition == null ? void 0 : iconPosition.value) === Side.right ? hasIcon.value : void 0
599
+ );
600
+ const hasIconTop = computed(
601
+ () => (iconPosition == null ? void 0 : iconPosition.value) === Side.top ? hasIcon.value : void 0
602
+ );
603
+ const hasIconBottom = computed(
604
+ () => (iconPosition == null ? void 0 : iconPosition.value) === Side.bottom ? hasIcon.value : void 0
605
+ );
606
+ return {
607
+ hasIcon,
608
+ hasIconLeft,
609
+ hasIconRight,
610
+ hasIconTop,
611
+ hasIconBottom,
612
+ hasIconBefore,
613
+ hasIconAfter
614
+ };
615
+ }
616
+ const VvInputClearAction = defineComponent({
617
+ components: {
618
+ VvIcon: _sfc_main$1
684
619
  },
685
- /**
686
- * Button aria-label
687
- */
688
- ariaLabel: {
689
- type: String,
690
- default: void 0
620
+ props: {
621
+ inputType: {
622
+ type: String,
623
+ default: "input-text"
624
+ },
625
+ disabled: {
626
+ type: Boolean,
627
+ default: false
628
+ },
629
+ label: {
630
+ type: String,
631
+ default: "Clear"
632
+ },
633
+ icon: {
634
+ type: [String, Object],
635
+ default: "close"
636
+ }
637
+ },
638
+ emits: ["clear"],
639
+ setup(props, { emit }) {
640
+ const { hasIcon } = useComponentIcon(computed(() => props.icon));
641
+ function onClick(e) {
642
+ e == null ? void 0 : e.stopPropagation();
643
+ if (!props.disabled) {
644
+ emit("clear");
645
+ }
646
+ }
647
+ return {
648
+ hasIcon,
649
+ onClick
650
+ };
651
+ },
652
+ render() {
653
+ const icon = this.hasIcon ? h(_sfc_main$1, {
654
+ ...this.hasIcon,
655
+ class: `vv-${this.inputType}__icon`
656
+ }) : void 0;
657
+ return h(
658
+ "button",
659
+ {
660
+ disabled: this.disabled,
661
+ class: `vv-${this.inputType}__action`,
662
+ ariaLabel: this.label,
663
+ type: "button",
664
+ onClick: this.onClick
665
+ },
666
+ icon
667
+ );
691
668
  }
692
669
  });
693
- const VvSelectProps = {
694
- ...IdNameProps,
695
- ...AutofocusProps,
696
- ...AutocompleteProps,
697
- ...TabindexProps,
698
- ...ValidProps,
699
- ...InvalidProps,
700
- ...HintProps,
701
- ...LoadingProps,
702
- ...DisabledProps,
703
- ...ReadonlyProps,
704
- ...ModifiersProps,
705
- ...OptionsProps,
706
- ...IconProps,
707
- ...FloatingLabelProps,
708
- ...UnselectableProps,
709
- ...LabelProps,
710
- /**
711
- * This Boolean attribute indicates that multiple options can be selected in the list.
712
- * If it is not specified, then only one option can be selected at a time.
713
- * When multiple is specified, most browsers will show a scrolling list box instead of a single line dropdown.
714
- * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/select#attr-multiple
715
- */
716
- multiple: Boolean,
717
- /**
718
- * A Boolean attribute indicating that an option with a non-empty string value must be selected.
719
- * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/select#attr-required
720
- */
721
- required: Boolean,
722
- /**
723
- * If the control is presented as a scrolling list box (e.g. when multiple is specified),
724
- * this attribute represents the number of rows in the list that should be visible at one time.
725
- * Browsers are not required to present a select element as a scrolled list box. The default value is 0.
726
- * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/select#attr-size
727
- */
728
- size: [String, Number],
729
- /**
730
- * modelValue can be a string, number, boolean, object or array of string, number, boolean, object
731
- */
732
- modelValue: {
733
- type: [String, Number, Boolean, Object, Array],
734
- default: void 0
735
- },
736
- /**
737
- * Select placeholder
738
- */
739
- placeholder: String
740
- };
741
- const VvSelectEmits = ["update:modelValue", "focus", "blur"];
742
670
  function useDefaults(componentName, propsDefinition, props) {
743
671
  const volver = useVolver();
744
672
  const volverComponentDefaults = computed(() => {
@@ -792,7 +720,6 @@ function useDefaults(componentName, propsDefinition, props) {
792
720
  }, {});
793
721
  });
794
722
  }
795
- const useUniqueId = (id) => computed(() => String((id == null ? void 0 : id.value) || uid()));
796
723
  function useComponentFocus(inputTemplateRef, emit) {
797
724
  const { focused } = useFocus(inputTemplateRef);
798
725
  watch(focused, (newValue) => {
@@ -802,64 +729,48 @@ function useComponentFocus(inputTemplateRef, emit) {
802
729
  focused
803
730
  };
804
731
  }
805
- function useComponentIcon(icon, iconPosition) {
806
- const hasIconBefore = computed(
807
- () => Boolean((icon == null ? void 0 : icon.value) && iconPosition.value === Position.before)
808
- );
809
- const hasIconAfter = computed(
810
- () => Boolean((icon == null ? void 0 : icon.value) && iconPosition.value === Position.after)
811
- );
812
- const hasIconLeft = computed(
813
- () => Boolean((icon == null ? void 0 : icon.value) && iconPosition.value === Side.left)
814
- );
815
- const hasIconRight = computed(
816
- () => Boolean((icon == null ? void 0 : icon.value) && iconPosition.value === Side.right)
817
- );
818
- const hasIconTop = computed(
819
- () => Boolean((icon == null ? void 0 : icon.value) && iconPosition.value === Side.top)
820
- );
821
- const hasIconBottom = computed(
822
- () => Boolean((icon == null ? void 0 : icon.value) && iconPosition.value === Side.bottom)
823
- );
824
- const hasIcon = computed(() => {
825
- if (typeof (icon == null ? void 0 : icon.value) === "string") {
826
- return { name: icon == null ? void 0 : icon.value };
827
- }
828
- return icon == null ? void 0 : icon.value;
829
- });
830
- return {
831
- hasIcon,
832
- hasIconLeft,
833
- hasIconRight,
834
- hasIconTop,
835
- hasIconBottom,
836
- hasIconBefore,
837
- hasIconAfter
838
- };
732
+ function useUniqueId(id) {
733
+ return computed(() => String((id == null ? void 0 : id.value) || useId()));
839
734
  }
840
735
  function useOptions(props) {
841
736
  const { options, labelKey, valueKey, disabledKey } = toRefs(props);
842
737
  const getOptionLabel = (option) => {
843
- if (typeof option !== "object" && option !== null)
738
+ if (typeof option === "string") {
844
739
  return option;
740
+ }
741
+ if (typeof labelKey.value === "function") {
742
+ return labelKey.value(option);
743
+ }
845
744
  return String(
846
- typeof labelKey.value === "function" ? labelKey.value(option) : get(option, labelKey.value)
745
+ labelKey.value ? get(option, labelKey.value) : option
847
746
  );
848
747
  };
849
748
  const getOptionValue = (option) => {
850
- if (typeof option !== "object" && option !== null)
749
+ if (typeof option === "string") {
851
750
  return option;
852
- return typeof valueKey.value === "function" ? valueKey.value(option) : get(option, valueKey.value);
751
+ }
752
+ if (typeof valueKey.value === "function") {
753
+ return valueKey.value(option);
754
+ }
755
+ return valueKey.value ? get(option, valueKey.value) : option;
853
756
  };
854
757
  const isOptionDisabled = (option) => {
855
- if (typeof option !== "object" && option !== null)
758
+ if (typeof option === "string") {
856
759
  return false;
857
- return typeof disabledKey.value === "function" ? disabledKey.value(option) : get(option, disabledKey.value);
760
+ }
761
+ if (typeof disabledKey.value === "function") {
762
+ return disabledKey.value(option);
763
+ }
764
+ return disabledKey.value ? get(option, disabledKey.value) : false;
858
765
  };
859
766
  const getOptionGrouped = (option) => {
860
- if (typeof option !== "object" && option !== null)
767
+ if (typeof option == "string") {
861
768
  return [];
862
- return option.options || [];
769
+ }
770
+ if (typeof option === "object" && option && "options" in option) {
771
+ return option.options;
772
+ }
773
+ return [];
863
774
  };
864
775
  return {
865
776
  options,
@@ -882,7 +793,7 @@ const _hoisted_7 = ["disabled", "value"];
882
793
  const _hoisted_8 = ["disabled", "label"];
883
794
  const _hoisted_9 = ["disabled", "value"];
884
795
  const _hoisted_10 = {
885
- key: 1,
796
+ key: 2,
886
797
  class: "vv-select__input-after"
887
798
  };
888
799
  const __default__ = {
@@ -890,23 +801,33 @@ const __default__ = {
890
801
  };
891
802
  const _sfc_main = /* @__PURE__ */ defineComponent({
892
803
  ...__default__,
893
- props: VvSelectProps,
894
- emits: VvSelectEmits,
895
- setup(__props, { emit }) {
804
+ props: useVvSelectProps(),
805
+ emits: ["update:modelValue", "focus", "blur", "clear"],
806
+ setup(__props, { emit: __emit }) {
896
807
  const props = __props;
808
+ const emit = __emit;
897
809
  const slots = useSlots();
810
+ const VvSelectProps2 = useVvSelectProps();
898
811
  const propsDefaults = useDefaults(
899
812
  "VvSelect",
900
- VvSelectProps,
813
+ VvSelectProps2,
901
814
  props
902
815
  );
903
- const select = ref();
816
+ const selectEl = ref();
904
817
  const {
905
818
  HintSlot,
906
819
  hasHintLabelOrSlot,
907
820
  hasInvalidLabelOrSlot,
908
821
  hintSlotScope
909
822
  } = HintSlotFactory(propsDefaults, slots);
823
+ const { focused } = useComponentFocus(selectEl, emit);
824
+ function isGroup(option) {
825
+ var _a;
826
+ if (typeof option === "string") {
827
+ return false;
828
+ }
829
+ return (_a = option.options) == null ? void 0 : _a.length;
830
+ }
910
831
  const {
911
832
  id,
912
833
  modifiers,
@@ -922,22 +843,44 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
922
843
  } = toRefs(props);
923
844
  const hasId = useUniqueId(id);
924
845
  const hasHintId = computed(() => `${hasId.value}-hint`);
925
- const { focused } = useComponentFocus(select, emit);
926
- const isVisible = useElementVisibility(select);
846
+ const isDisabledOrReadonly = computed(() => props.disabled || props.readonly);
847
+ const hasTabindex = computed(() => {
848
+ return isDisabledOrReadonly.value ? -1 : props.tabindex;
849
+ });
850
+ const localModelValue = computed({
851
+ get: () => {
852
+ return props.modelValue;
853
+ },
854
+ set: (newValue) => {
855
+ if (Array.isArray(newValue)) {
856
+ newValue = newValue.filter((item) => item !== void 0);
857
+ if (newValue.length === 0 && !props.unselectable && selectEl.value) {
858
+ selectEl.value.value = String(props.modelValue);
859
+ return;
860
+ }
861
+ }
862
+ emit("update:modelValue", newValue);
863
+ }
864
+ });
865
+ const isDirty = computed(() => {
866
+ if (Array.isArray(localModelValue.value)) {
867
+ return localModelValue.value.length > 0;
868
+ }
869
+ return localModelValue.value !== void 0 && localModelValue.value !== null;
870
+ });
871
+ const isUnselectable = computed(() => {
872
+ if (isDisabledOrReadonly.value) {
873
+ return false;
874
+ }
875
+ return props.unselectable;
876
+ });
877
+ const isVisible = useElementVisibility(selectEl);
927
878
  watch(isVisible, (newValue) => {
928
879
  if (newValue && props.autofocus) {
929
880
  focused.value = true;
930
881
  }
931
882
  });
932
- const { hasIcon, hasIconBefore, hasIconAfter } = useComponentIcon(
933
- icon,
934
- iconPosition
935
- );
936
- const isDirty = computed(() => !isEmpty(props.modelValue));
937
- const isDisabled = computed(() => props.disabled || props.readonly);
938
- const hasTabindex = computed(() => {
939
- return isDisabled.value ? -1 : props.tabindex;
940
- });
883
+ const { hasIconBefore, hasIconAfter } = useComponentIcon(icon, iconPosition);
941
884
  const isInvalid = computed(() => {
942
885
  if (props.invalid === true) {
943
886
  return true;
@@ -951,28 +894,52 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
951
894
  "vv-select",
952
895
  modifiers,
953
896
  computed(() => ({
954
- valid: valid.value,
955
- invalid: invalid.value,
956
- loading: loading.value,
957
- disabled: disabled.value,
958
- readonly: readonly.value,
959
- "icon-before": hasIconBefore.value,
960
- "icon-after": hasIconAfter.value,
961
- dirty: isDirty.value,
962
- focus: focused.value,
963
- floating: floating.value,
964
- multiple: multiple.value
897
+ "valid": valid.value,
898
+ "invalid": invalid.value,
899
+ "loading": loading.value,
900
+ "disabled": disabled.value,
901
+ "readonly": readonly.value,
902
+ "icon-before": hasIconBefore.value !== void 0,
903
+ "icon-after": hasIconAfter.value !== void 0,
904
+ "dirty": isDirty.value,
905
+ "focus": focused.value && !isDisabledOrReadonly.value,
906
+ "floating": floating.value,
907
+ "multiple": multiple.value
965
908
  }))
966
909
  );
910
+ const {
911
+ getOptionLabel,
912
+ getOptionValue,
913
+ isOptionDisabled,
914
+ getOptionGrouped
915
+ } = useOptions(props);
916
+ watch(
917
+ () => props.options,
918
+ (newValue) => {
919
+ if ((newValue == null ? void 0 : newValue.length) && props.autoselectFirst && !isDirty.value) {
920
+ const firstOptionValue = getOptionValue(newValue[0]);
921
+ localModelValue.value = props.multiple ? [firstOptionValue] : firstOptionValue;
922
+ }
923
+ },
924
+ { immediate: true }
925
+ );
926
+ function onClear() {
927
+ if (Array.isArray(localModelValue.value)) {
928
+ localModelValue.value = [];
929
+ } else {
930
+ localModelValue.value = void 0;
931
+ }
932
+ emit("clear");
933
+ }
967
934
  const hasAttrs = computed(() => {
968
935
  return {
969
- name: props.name,
970
- tabindex: hasTabindex.value,
971
- disabled: isDisabled.value,
972
- required: props.required,
973
- size: props.size,
974
- autocomplete: props.autocomplete,
975
- multiple: props.multiple,
936
+ "name": props.name,
937
+ "tabindex": hasTabindex.value,
938
+ "disabled": isDisabledOrReadonly.value,
939
+ "required": props.required,
940
+ "size": props.size,
941
+ "autocomplete": props.autocomplete,
942
+ "multiple": props.multiple,
976
943
  "aria-invalid": isInvalid.value,
977
944
  "aria-describedby": hasHintLabelOrSlot.value ? hasHintId.value : void 0,
978
945
  "aria-errormessage": hasInvalidLabelOrSlot.value ? hasHintId.value : void 0
@@ -983,124 +950,144 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
983
950
  invalid: props.invalid,
984
951
  modelValue: props.modelValue
985
952
  }));
986
- const {
987
- getOptionLabel,
988
- getOptionValue,
989
- isOptionDisabled,
990
- getOptionGrouped
991
- } = useOptions(props);
992
- const localModelValue = computed({
993
- get: () => {
994
- return props.modelValue;
995
- },
996
- set: (newValue) => {
997
- if (Array.isArray(newValue)) {
998
- newValue = newValue.filter((item) => item !== void 0);
999
- }
1000
- emit("update:modelValue", newValue);
1001
- }
1002
- });
1003
- const isGroup = (option) => {
1004
- if (typeof option === "string")
1005
- return false;
1006
- return option && option.options && option.options.length > 0;
1007
- };
1008
953
  return (_ctx, _cache) => {
1009
- return openBlock(), createElementBlock("div", {
1010
- class: normalizeClass(unref(bemCssClasses))
1011
- }, [
1012
- _ctx.label ? (openBlock(), createElementBlock("label", {
1013
- key: 0,
1014
- for: unref(hasId)
1015
- }, toDisplayString(_ctx.label), 9, _hoisted_1)) : createCommentVNode("", true),
1016
- createElementVNode("div", _hoisted_2, [
1017
- _ctx.$slots.before ? (openBlock(), createElementBlock("div", _hoisted_3, [
1018
- renderSlot(_ctx.$slots, "before", normalizeProps(guardReactiveProps(unref(slotProps))))
1019
- ])) : createCommentVNode("", true),
1020
- createElementVNode("div", _hoisted_4, [
1021
- unref(hasIconBefore) ? (openBlock(), createBlock(_sfc_main$1, mergeProps({
1022
- key: 0,
1023
- class: "vv-select__icon"
1024
- }, unref(hasIcon)), null, 16)) : createCommentVNode("", true),
1025
- withDirectives(createElementVNode("select", mergeProps({
1026
- id: unref(hasId),
1027
- ref_key: "select",
1028
- ref: select,
1029
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(localModelValue) ? localModelValue.value = $event : null)
1030
- }, unref(hasAttrs)), [
1031
- _ctx.placeholder ? (openBlock(), createElementBlock("option", {
1032
- key: 0,
1033
- value: void 0,
1034
- disabled: !_ctx.unselectable,
1035
- hidden: !_ctx.unselectable
1036
- }, toDisplayString(_ctx.placeholder), 9, _hoisted_6)) : createCommentVNode("", true),
1037
- (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.options, (option, index) => {
1038
- return openBlock(), createElementBlock(Fragment, null, [
1039
- !isGroup(option) ? (openBlock(), createElementBlock("option", {
1040
- key: index,
1041
- disabled: unref(isOptionDisabled)(option),
1042
- value: unref(getOptionValue)(option)
1043
- }, toDisplayString(unref(getOptionLabel)(option)), 9, _hoisted_7)) : (openBlock(), createElementBlock("optgroup", {
1044
- key: `group-${index}`,
1045
- disabled: unref(isOptionDisabled)(option),
1046
- label: unref(getOptionLabel)(option)
1047
- }, [
1048
- (openBlock(true), createElementBlock(Fragment, null, renderList(unref(getOptionGrouped)(option), (item, i) => {
1049
- return openBlock(), createElementBlock("option", {
1050
- key: `group-${index}-item-${i}`,
1051
- disabled: unref(isOptionDisabled)(item),
1052
- value: unref(getOptionValue)(item)
1053
- }, toDisplayString(unref(getOptionLabel)(item)), 9, _hoisted_9);
1054
- }), 128))
1055
- ], 8, _hoisted_8))
1056
- ], 64);
1057
- }), 256))
1058
- ], 16, _hoisted_5), [
1059
- [vModelSelect, unref(localModelValue)]
954
+ return openBlock(), createElementBlock(
955
+ "div",
956
+ {
957
+ class: normalizeClass(unref(bemCssClasses))
958
+ },
959
+ [
960
+ _ctx.label ? (openBlock(), createElementBlock("label", {
961
+ key: 0,
962
+ for: unref(hasId)
963
+ }, toDisplayString(_ctx.label), 9, _hoisted_1)) : createCommentVNode("v-if", true),
964
+ createElementVNode("div", _hoisted_2, [
965
+ _ctx.$slots.before ? (openBlock(), createElementBlock("div", _hoisted_3, [
966
+ renderSlot(_ctx.$slots, "before", normalizeProps(guardReactiveProps(unref(slotProps))))
967
+ ])) : createCommentVNode("v-if", true),
968
+ createElementVNode("div", _hoisted_4, [
969
+ unref(hasIconBefore) ? (openBlock(), createBlock(
970
+ _sfc_main$1,
971
+ mergeProps({ key: 0 }, unref(hasIconBefore), { class: "vv-select__icon" }),
972
+ null,
973
+ 16
974
+ /* FULL_PROPS */
975
+ )) : createCommentVNode("v-if", true),
976
+ withDirectives(createElementVNode("select", mergeProps({
977
+ id: unref(hasId),
978
+ ref_key: "selectEl",
979
+ ref: selectEl
980
+ }, unref(hasAttrs), {
981
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(localModelValue) ? localModelValue.value = $event : null)
982
+ }), [
983
+ _ctx.placeholder ? (openBlock(), createElementBlock("option", {
984
+ key: 0,
985
+ value: void 0,
986
+ disabled: !unref(isUnselectable),
987
+ hidden: !unref(isUnselectable)
988
+ }, toDisplayString(_ctx.placeholder), 9, _hoisted_6)) : createCommentVNode("v-if", true),
989
+ (openBlock(true), createElementBlock(
990
+ Fragment,
991
+ null,
992
+ renderList(_ctx.options, (option, index) => {
993
+ return openBlock(), createElementBlock(
994
+ Fragment,
995
+ null,
996
+ [
997
+ !isGroup(option) ? (openBlock(), createElementBlock("option", {
998
+ key: index,
999
+ disabled: unref(isOptionDisabled)(option),
1000
+ value: unref(getOptionValue)(option)
1001
+ }, toDisplayString(unref(getOptionLabel)(option)), 9, _hoisted_7)) : (openBlock(), createElementBlock("optgroup", {
1002
+ key: `group-${index}`,
1003
+ disabled: unref(isOptionDisabled)(option),
1004
+ label: unref(getOptionLabel)(option)
1005
+ }, [
1006
+ (openBlock(true), createElementBlock(
1007
+ Fragment,
1008
+ null,
1009
+ renderList(unref(getOptionGrouped)(option), (item, i) => {
1010
+ return openBlock(), createElementBlock("option", {
1011
+ key: `group-${index}-item-${i}`,
1012
+ disabled: unref(isOptionDisabled)(item),
1013
+ value: unref(getOptionValue)(item)
1014
+ }, toDisplayString(unref(getOptionLabel)(item)), 9, _hoisted_9);
1015
+ }),
1016
+ 128
1017
+ /* KEYED_FRAGMENT */
1018
+ ))
1019
+ ], 8, _hoisted_8))
1020
+ ],
1021
+ 64
1022
+ /* STABLE_FRAGMENT */
1023
+ );
1024
+ }),
1025
+ 256
1026
+ /* UNKEYED_FRAGMENT */
1027
+ ))
1028
+ ], 16, _hoisted_5), [
1029
+ [vModelSelect, unref(localModelValue)]
1030
+ ]),
1031
+ unref(hasIconAfter) ? (openBlock(), createBlock(
1032
+ _sfc_main$1,
1033
+ mergeProps({ key: 1 }, unref(hasIconAfter), { class: "vv-select__icon vv-select__icon-after" }),
1034
+ null,
1035
+ 16
1036
+ /* FULL_PROPS */
1037
+ )) : createCommentVNode("v-if", true)
1060
1038
  ]),
1061
- unref(hasIconAfter) ? (openBlock(), createBlock(_sfc_main$1, mergeProps({
1039
+ unref(isUnselectable) ? (openBlock(), createBlock(unref(VvInputClearAction), {
1062
1040
  key: 1,
1063
- class: "vv-select__icon vv-select__icon-after"
1064
- }, unref(hasIcon)), null, 16)) : createCommentVNode("", true)
1041
+ "input-type": "select",
1042
+ label: _ctx.labelClear,
1043
+ icon: _ctx.iconClear,
1044
+ disabled: !unref(isDirty),
1045
+ onClear
1046
+ }, null, 8, ["label", "icon", "disabled"])) : createCommentVNode("v-if", true),
1047
+ _ctx.$slots.after ? (openBlock(), createElementBlock("div", _hoisted_10, [
1048
+ renderSlot(_ctx.$slots, "after", normalizeProps(guardReactiveProps(unref(slotProps))))
1049
+ ])) : createCommentVNode("v-if", true)
1065
1050
  ]),
1066
- _ctx.$slots.after ? (openBlock(), createElementBlock("div", _hoisted_10, [
1067
- renderSlot(_ctx.$slots, "after", normalizeProps(guardReactiveProps(unref(slotProps))))
1068
- ])) : createCommentVNode("", true)
1069
- ]),
1070
- createVNode(unref(HintSlot), {
1071
- id: unref(hasHintId),
1072
- class: "vv-select__hint"
1073
- }, createSlots({ _: 2 }, [
1074
- _ctx.$slots.hint ? {
1075
- name: "hint",
1076
- fn: withCtx(() => [
1077
- renderSlot(_ctx.$slots, "hint", normalizeProps(guardReactiveProps(unref(hintSlotScope))))
1078
- ]),
1079
- key: "0"
1080
- } : void 0,
1081
- _ctx.$slots.loading ? {
1082
- name: "loading",
1083
- fn: withCtx(() => [
1084
- renderSlot(_ctx.$slots, "loading", normalizeProps(guardReactiveProps(unref(hintSlotScope))))
1085
- ]),
1086
- key: "1"
1087
- } : void 0,
1088
- _ctx.$slots.valid ? {
1089
- name: "valid",
1090
- fn: withCtx(() => [
1091
- renderSlot(_ctx.$slots, "valid", normalizeProps(guardReactiveProps(unref(hintSlotScope))))
1092
- ]),
1093
- key: "2"
1094
- } : void 0,
1095
- _ctx.$slots.invalid ? {
1096
- name: "invalid",
1097
- fn: withCtx(() => [
1098
- renderSlot(_ctx.$slots, "invalid", normalizeProps(guardReactiveProps(unref(hintSlotScope))))
1099
- ]),
1100
- key: "3"
1101
- } : void 0
1102
- ]), 1032, ["id"])
1103
- ], 2);
1051
+ createVNode(unref(HintSlot), {
1052
+ id: unref(hasHintId),
1053
+ class: "vv-select__hint"
1054
+ }, createSlots({
1055
+ _: 2
1056
+ /* DYNAMIC */
1057
+ }, [
1058
+ _ctx.$slots.hint ? {
1059
+ name: "hint",
1060
+ fn: withCtx(() => [
1061
+ renderSlot(_ctx.$slots, "hint", normalizeProps(guardReactiveProps(unref(hintSlotScope))))
1062
+ ]),
1063
+ key: "0"
1064
+ } : void 0,
1065
+ _ctx.$slots.loading ? {
1066
+ name: "loading",
1067
+ fn: withCtx(() => [
1068
+ renderSlot(_ctx.$slots, "loading", normalizeProps(guardReactiveProps(unref(hintSlotScope))))
1069
+ ]),
1070
+ key: "1"
1071
+ } : void 0,
1072
+ _ctx.$slots.valid ? {
1073
+ name: "valid",
1074
+ fn: withCtx(() => [
1075
+ renderSlot(_ctx.$slots, "valid", normalizeProps(guardReactiveProps(unref(hintSlotScope))))
1076
+ ]),
1077
+ key: "2"
1078
+ } : void 0,
1079
+ _ctx.$slots.invalid ? {
1080
+ name: "invalid",
1081
+ fn: withCtx(() => [
1082
+ renderSlot(_ctx.$slots, "invalid", normalizeProps(guardReactiveProps(unref(hintSlotScope))))
1083
+ ]),
1084
+ key: "3"
1085
+ } : void 0
1086
+ ]), 1032, ["id"])
1087
+ ],
1088
+ 2
1089
+ /* CLASS */
1090
+ );
1104
1091
  };
1105
1092
  }
1106
1093
  });