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

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
@@ -0,0 +1,1716 @@
1
+ import { computed, isRef, defineComponent, h, inject, toRef, toRefs, getCurrentInstance, ref, watch, resolveComponent, createBlock, openBlock, resolveDynamicComponent, unref, mergeProps, withCtx, renderSlot, createTextVNode, toDisplayString, mergeDefaults, createCommentVNode, useId, useAttrs, useSlots, createElementBlock, Fragment, onBeforeUnmount, normalizeClass, createElementVNode, createVNode, withModifiers, normalizeProps, guardReactiveProps, createSlots } from "vue";
2
+ import { useVModel } from "@vueuse/core";
3
+ import Sortable from "vuedraggable";
4
+ import { iconLoaded, Icon, addIcon } from "@iconify/vue";
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 INJECTION_KEY_BUTTON_GROUP = Symbol.for(
37
+ "buttonGroup"
38
+ );
39
+ const INJECTION_KEY_DROPDOWN_TRIGGER = Symbol.for(
40
+ "dropdownTrigger"
41
+ );
42
+ const INJECTION_KEY_DROPDOWN_ACTION = Symbol.for(
43
+ "dropdownAction"
44
+ );
45
+ const LinkProps = {
46
+ /**
47
+ * The router-link/nuxt-link property, if it is defined the button is rendered as a ruouter-link or nuxt-link.
48
+ * @see Documentation of [router-link](https://router.vuejs.org/api/#router-link) and [nuxt-link](https://nuxtjs.org/api/components-nuxt-link/)
49
+ */
50
+ to: {
51
+ type: [String, Object]
52
+ },
53
+ /**
54
+ * Anchor href
55
+ */
56
+ href: String,
57
+ /**
58
+ * Anchor target
59
+ */
60
+ target: String,
61
+ /**
62
+ * Anchor rel
63
+ */
64
+ rel: {
65
+ type: String,
66
+ default: "noopener noreferrer"
67
+ }
68
+ };
69
+ const ValidProps = {
70
+ /**
71
+ * Valid status
72
+ */
73
+ valid: { type: Boolean, default: false },
74
+ /**
75
+ * Valid label
76
+ */
77
+ validLabel: { type: [String, Array], default: void 0 }
78
+ };
79
+ const InvalidProps = {
80
+ /**
81
+ * Invalid status
82
+ */
83
+ invalid: {
84
+ type: Boolean,
85
+ default: false
86
+ },
87
+ /**
88
+ * Invalid label
89
+ */
90
+ invalidLabel: { type: [String, Array], default: void 0 }
91
+ };
92
+ const LoadingProps = {
93
+ /**
94
+ * Loading status
95
+ */
96
+ loading: {
97
+ type: Boolean,
98
+ default: false
99
+ },
100
+ /**
101
+ * Loading label
102
+ */
103
+ loadingLabel: {
104
+ type: String,
105
+ default: "Loading..."
106
+ }
107
+ };
108
+ const DisabledProps = {
109
+ /**
110
+ * Whether the form control is disabled
111
+ */
112
+ disabled: {
113
+ type: Boolean,
114
+ default: false
115
+ }
116
+ };
117
+ const RequiredProps = {
118
+ /**
119
+ * Whether the form control is required
120
+ */
121
+ required: {
122
+ type: Boolean,
123
+ default: false
124
+ }
125
+ };
126
+ const ActiveProps = {
127
+ /**
128
+ * Whether the item is active
129
+ */
130
+ active: {
131
+ type: Boolean,
132
+ default: false
133
+ }
134
+ };
135
+ const CurrentProps = {
136
+ /**
137
+ * Whether the item is current
138
+ */
139
+ current: {
140
+ type: Boolean,
141
+ default: false
142
+ }
143
+ };
144
+ const PressedProps = {
145
+ /**
146
+ * Whether the item is pressed
147
+ */
148
+ pressed: {
149
+ type: Boolean,
150
+ default: false
151
+ }
152
+ };
153
+ const LabelProps = {
154
+ /**
155
+ * The item label
156
+ */
157
+ label: {
158
+ type: [String, Number],
159
+ default: void 0
160
+ }
161
+ };
162
+ const ReadonlyProps = {
163
+ /**
164
+ * The value is not editable
165
+ */
166
+ readonly: {
167
+ type: Boolean,
168
+ default: false
169
+ }
170
+ };
171
+ const ModifiersProps = {
172
+ /**
173
+ * Component BEM modifiers
174
+ */
175
+ modifiers: {
176
+ type: [String, Array],
177
+ default: void 0
178
+ }
179
+ };
180
+ const HintProps = {
181
+ hintLabel: { type: String, default: "" }
182
+ };
183
+ const IconProps = {
184
+ /**
185
+ * VvIcon name or props
186
+ * @see VvIcon
187
+ */
188
+ icon: {
189
+ type: [String, Object],
190
+ default: void 0
191
+ },
192
+ /**
193
+ * VvIcon position
194
+ */
195
+ iconPosition: {
196
+ type: String,
197
+ default: Position.before,
198
+ validation: (value) => Object.values(Position).includes(value)
199
+ }
200
+ };
201
+ const UnselectableProps = {
202
+ /**
203
+ * If true the input will be unselectable
204
+ */
205
+ unselectable: { type: Boolean, default: true }
206
+ };
207
+ const IdProps = {
208
+ /**
209
+ * Global attribute id
210
+ * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/id
211
+ */
212
+ id: [String, Number]
213
+ };
214
+ ({
215
+ /**
216
+ * Dropdown placement
217
+ */
218
+ placement: {
219
+ default: Side.bottom
220
+ }
221
+ });
222
+ const IdNameProps = {
223
+ ...IdProps,
224
+ /**
225
+ * Input / Textarea name
226
+ * Name of the form control. Submitted with the form as part of a name/value pair
227
+ * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#name
228
+ */
229
+ name: { type: String, required: true }
230
+ };
231
+ const ActionProps = {
232
+ ...DisabledProps,
233
+ ...LabelProps,
234
+ ...PressedProps,
235
+ ...ActiveProps,
236
+ ...CurrentProps,
237
+ ...LinkProps,
238
+ /**
239
+ * Button type
240
+ */
241
+ type: {
242
+ type: String,
243
+ default: ButtonType.button,
244
+ validator: (value) => Object.values(ButtonType).includes(value)
245
+ },
246
+ /**
247
+ * Button aria-label
248
+ */
249
+ ariaLabel: {
250
+ type: String,
251
+ default: void 0
252
+ },
253
+ /**
254
+ * Default tag for the action
255
+ */
256
+ defaultTag: {
257
+ type: String,
258
+ default: ActionTag.button
259
+ }
260
+ };
261
+ ({
262
+ storageType: {
263
+ default: StorageType.local
264
+ }
265
+ });
266
+ const ACTION_ICONS = {
267
+ add: "add",
268
+ edit: "edit",
269
+ download: "download"
270
+ };
271
+ const VvIconPropsDefaults = {
272
+ prefix: "normal"
273
+ /* normal */
274
+ };
275
+ const VvInputFileProps = {
276
+ ...IdNameProps,
277
+ ...ModifiersProps,
278
+ ...ValidProps,
279
+ ...InvalidProps,
280
+ ...HintProps,
281
+ ...LabelProps,
282
+ ...LoadingProps,
283
+ ...ReadonlyProps,
284
+ ...DisabledProps,
285
+ ...RequiredProps,
286
+ ...IconProps,
287
+ /**
288
+ * Input value
289
+ */
290
+ modelValue: {
291
+ type: Object
292
+ },
293
+ /**
294
+ * Whether to show progress bar
295
+ */
296
+ progress: { type: [Number, String], default: void 0 },
297
+ /**
298
+ * Input
299
+ * Text that appears in the form control when it has no value set
300
+ * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#placeholder
301
+ */
302
+ placeholder: { type: String, default: void 0 },
303
+ /**
304
+ * File types to accept
305
+ * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/accept
306
+ */
307
+ accept: { type: String, default: "*" },
308
+ /**
309
+ * Whether to allow multiple values
310
+ * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#multiple
311
+ */
312
+ multiple: { type: Boolean, default: false },
313
+ /**
314
+ * Front or rear camera
315
+ * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/capture
316
+ */
317
+ capture: {
318
+ type: String,
319
+ default: void 0,
320
+ validation: (value) => {
321
+ if (value === void 0) {
322
+ return true;
323
+ }
324
+ return ["user", "environment"].includes(value);
325
+ }
326
+ },
327
+ /**
328
+ * Max number of files
329
+ */
330
+ max: { type: [Number, String], default: void 0 },
331
+ /**
332
+ * Show drop area
333
+ */
334
+ dropArea: { type: Boolean, default: false },
335
+ /**
336
+ * Enable sorting
337
+ */
338
+ sortable: { type: Boolean, default: false },
339
+ /**
340
+ * Label for add button
341
+ */
342
+ labelAdd: {
343
+ type: String,
344
+ default: "Add file"
345
+ },
346
+ /**
347
+ * VvIcon name for add button
348
+ * @see VvIcon
349
+ */
350
+ iconAdd: {
351
+ type: [String, Object],
352
+ default: ACTION_ICONS.add
353
+ },
354
+ /**
355
+ * Label for replace button
356
+ */
357
+ labelReplace: {
358
+ type: String,
359
+ default: "Replace file"
360
+ },
361
+ /**
362
+ * VvIcon name for replace button
363
+ * @see VvIcon
364
+ */
365
+ iconReplace: {
366
+ type: [String, Object],
367
+ default: ACTION_ICONS.edit
368
+ },
369
+ /**
370
+ * Label for download button
371
+ */
372
+ labelDownload: {
373
+ type: String,
374
+ default: "Downlaod file"
375
+ },
376
+ /**
377
+ * VvIcon name for download button
378
+ * @see VvIcon
379
+ */
380
+ iconDownload: {
381
+ type: [String, Object],
382
+ default: ACTION_ICONS.download
383
+ },
384
+ /**
385
+ * Label for remove button
386
+ */
387
+ labelRemove: {
388
+ type: String,
389
+ default: "Remove file"
390
+ }
391
+ };
392
+ function acceptedMimeTypes(acceptValue) {
393
+ const mimeTypes = [];
394
+ const extensions = [];
395
+ const wildcards = [];
396
+ const acceptedTypes = acceptValue == null ? void 0 : acceptValue.split(",").map((type) => type.trim().toLowerCase());
397
+ if (acceptedTypes == null ? void 0 : acceptedTypes.length) {
398
+ acceptedTypes.forEach((type) => {
399
+ if (type.startsWith(".")) {
400
+ extensions.push(type);
401
+ } else if (type.includes("/*")) {
402
+ wildcards.push(type.replace("/*", ""));
403
+ } else {
404
+ mimeTypes.push(type);
405
+ }
406
+ });
407
+ }
408
+ return {
409
+ mimeTypes,
410
+ extensions,
411
+ wildcards
412
+ };
413
+ }
414
+ function filterFileList(fileList, acceptValue) {
415
+ if (!acceptValue || acceptValue.trim() === "" || acceptValue === "*") {
416
+ return Array.from(fileList);
417
+ }
418
+ const { mimeTypes, extensions, wildcards } = acceptedMimeTypes(acceptValue);
419
+ return Array.from(fileList).filter((file) => {
420
+ var _a;
421
+ const fileType = file.type.toLowerCase();
422
+ const fileExtension = `.${(_a = file.name.split(".").pop()) == null ? void 0 : _a.toLowerCase()}`;
423
+ const mimeMatches = mimeTypes.includes(fileType);
424
+ const wildcardMatches = wildcards.some((wildcard) => fileType.startsWith(`${wildcard}/`));
425
+ const extensionMatches = extensions.some((ext) => fileExtension === ext.toLowerCase());
426
+ return mimeMatches || wildcardMatches || extensionMatches;
427
+ });
428
+ }
429
+ function equals(obj1, obj2, field) {
430
+ return deepEquals(obj1, obj2);
431
+ }
432
+ function deepEquals(a, b) {
433
+ if (a === b)
434
+ return true;
435
+ if (a && b && typeof a == "object" && typeof b == "object") {
436
+ const arrA = Array.isArray(a);
437
+ const arrB = Array.isArray(b);
438
+ let i, length, key;
439
+ if (arrA && arrB) {
440
+ length = a.length;
441
+ if (length !== b.length)
442
+ return false;
443
+ for (i = length; i-- !== 0; ) {
444
+ if (!deepEquals(a[i], b[i]))
445
+ return false;
446
+ }
447
+ return true;
448
+ }
449
+ if (arrA !== arrB)
450
+ return false;
451
+ const dateA = a instanceof Date;
452
+ const dateB = b instanceof Date;
453
+ if (dateA !== dateB)
454
+ return false;
455
+ if (dateA && dateB)
456
+ return a.getTime() === b.getTime();
457
+ const regexpA = a instanceof RegExp;
458
+ const regexpB = b instanceof RegExp;
459
+ if (regexpA !== regexpB)
460
+ return false;
461
+ if (regexpA && regexpB)
462
+ return a.toString() === b.toString();
463
+ const keys = Object.keys(a);
464
+ length = keys.length;
465
+ if (length !== Object.keys(b).length)
466
+ return false;
467
+ for (i = length; i-- !== 0; ) {
468
+ if (!Object.prototype.hasOwnProperty.call(b, keys[i]))
469
+ return false;
470
+ }
471
+ for (i = length; i-- !== 0; ) {
472
+ key = keys[i];
473
+ if (!deepEquals(a[key], b[key]))
474
+ return false;
475
+ }
476
+ return true;
477
+ }
478
+ return Number.isNaN(a) && Number.isNaN(b);
479
+ }
480
+ function contains(value, list) {
481
+ if (value != null && list && list.length) {
482
+ for (const val of list) {
483
+ if (equals(value, val)) {
484
+ return true;
485
+ }
486
+ }
487
+ }
488
+ return false;
489
+ }
490
+ function isString(value) {
491
+ return typeof value === "string";
492
+ }
493
+ function joinLines(items) {
494
+ if (Array.isArray(items)) {
495
+ return items.filter((item) => isString(item)).join(" ");
496
+ }
497
+ return items;
498
+ }
499
+ function HintSlotFactory(propsOrRef, slots) {
500
+ const props = computed(() => {
501
+ if (isRef(propsOrRef)) {
502
+ return propsOrRef.value;
503
+ }
504
+ return propsOrRef;
505
+ });
506
+ const invalidLabel = computed(() => joinLines(props.value.invalidLabel));
507
+ const validLabel = computed(() => joinLines(props.value.validLabel));
508
+ const loadingLabel = computed(() => props.value.loadingLabel);
509
+ const hintLabel = computed(() => props.value.hintLabel);
510
+ const hasLoadingLabelOrSlot = computed(
511
+ () => Boolean(props.value.loading && (slots.loading || loadingLabel.value))
512
+ );
513
+ const hasInvalidLabelOrSlot = computed(
514
+ () => !hasLoadingLabelOrSlot.value && Boolean(
515
+ props.value.invalid && (slots.invalid || invalidLabel.value)
516
+ )
517
+ );
518
+ const hasValidLabelOrSlot = computed(
519
+ () => !hasLoadingLabelOrSlot.value && !hasInvalidLabelOrSlot.value && Boolean(props.value.valid && (slots.valid || validLabel.value))
520
+ );
521
+ const hasHintLabelOrSlot = computed(
522
+ () => !hasLoadingLabelOrSlot.value && !hasInvalidLabelOrSlot.value && !hasValidLabelOrSlot.value && Boolean(slots.hint || hintLabel.value)
523
+ );
524
+ const isVisible = computed(
525
+ () => hasInvalidLabelOrSlot.value || hasValidLabelOrSlot.value || hasLoadingLabelOrSlot.value || hasHintLabelOrSlot.value
526
+ );
527
+ const hintSlotScope = computed(() => ({
528
+ modelValue: props.value.modelValue,
529
+ valid: props.value.valid,
530
+ invalid: props.value.invalid,
531
+ loading: props.value.loading
532
+ }));
533
+ const HintSlot = defineComponent({
534
+ name: "HintSlot",
535
+ props: {
536
+ tag: {
537
+ type: String,
538
+ default: "small"
539
+ }
540
+ },
541
+ setup() {
542
+ return {
543
+ isVisible,
544
+ invalidLabel,
545
+ validLabel,
546
+ loadingLabel,
547
+ hintLabel,
548
+ hasInvalidLabelOrSlot,
549
+ hasValidLabelOrSlot,
550
+ hasLoadingLabelOrSlot,
551
+ hasHintLabelOrSlot
552
+ };
553
+ },
554
+ render() {
555
+ var _a, _b, _c, _d, _e, _f, _g, _h;
556
+ if (this.isVisible) {
557
+ let role;
558
+ if (this.hasInvalidLabelOrSlot) {
559
+ role = "alert";
560
+ }
561
+ if (this.hasValidLabelOrSlot) {
562
+ role = "status";
563
+ }
564
+ if (this.hasLoadingLabelOrSlot) {
565
+ return h(
566
+ this.tag,
567
+ {
568
+ role
569
+ },
570
+ ((_b = (_a = this.$slots).loading) == null ? void 0 : _b.call(_a)) ?? this.loadingLabel
571
+ );
572
+ }
573
+ if (this.hasInvalidLabelOrSlot) {
574
+ return h(
575
+ this.tag,
576
+ {
577
+ role
578
+ },
579
+ ((_d = (_c = this.$slots).invalid) == null ? void 0 : _d.call(_c)) ?? this.$slots.invalid ?? this.invalidLabel
580
+ );
581
+ }
582
+ if (this.hasValidLabelOrSlot) {
583
+ return h(
584
+ this.tag,
585
+ {
586
+ role
587
+ },
588
+ ((_f = (_e = this.$slots).valid) == null ? void 0 : _f.call(_e)) ?? this.validLabel
589
+ );
590
+ }
591
+ return h(
592
+ this.tag,
593
+ {
594
+ role
595
+ },
596
+ ((_h = (_g = this.$slots).hint) == null ? void 0 : _h.call(_g)) ?? this.$slots.hint ?? this.hintLabel
597
+ );
598
+ }
599
+ return null;
600
+ }
601
+ });
602
+ return {
603
+ hasInvalidLabelOrSlot,
604
+ hasHintLabelOrSlot,
605
+ hasValidLabelOrSlot,
606
+ hasLoadingLabelOrSlot,
607
+ hintSlotScope,
608
+ HintSlot
609
+ };
610
+ }
611
+ function useGroupStateInject(groupKey) {
612
+ const group = inject(groupKey, void 0);
613
+ const isInGroup = computed(() => group !== void 0);
614
+ function getGroupOrLocalRef(propName, props, emit) {
615
+ const groupPropValue = group == null ? void 0 : group[propName];
616
+ if (groupPropValue) {
617
+ return computed({
618
+ get() {
619
+ return groupPropValue.value;
620
+ },
621
+ set(value) {
622
+ groupPropValue.value = value;
623
+ }
624
+ });
625
+ }
626
+ const propRef = toRef(props, propName);
627
+ return computed({
628
+ get() {
629
+ return propRef.value;
630
+ },
631
+ set(value) {
632
+ if (emit) {
633
+ emit(`update:${propName}`, value);
634
+ }
635
+ }
636
+ });
637
+ }
638
+ return {
639
+ group,
640
+ isInGroup,
641
+ getGroupOrLocalRef
642
+ };
643
+ }
644
+ const VvButtonEvents = ["update:modelValue"];
645
+ const VvButtonProps = {
646
+ ...ActionProps,
647
+ ...IdProps,
648
+ ...ModifiersProps,
649
+ ...UnselectableProps,
650
+ ...LoadingProps,
651
+ ...IconProps,
652
+ /**
653
+ * Button icon position
654
+ */
655
+ iconPosition: {
656
+ type: String,
657
+ default: Side.left,
658
+ validator: (value) => Object.values(Side).includes(value)
659
+ },
660
+ /**
661
+ * Loading icon
662
+ */
663
+ loadingIcon: { type: String, default: "eos-icons:bubble-loading" },
664
+ /**
665
+ * Enable button toggle
666
+ */
667
+ toggle: {
668
+ type: Boolean,
669
+ default: false
670
+ },
671
+ /**
672
+ * Button toggle value
673
+ */
674
+ value: {
675
+ type: [String, Number, Boolean],
676
+ default: void 0
677
+ },
678
+ /**
679
+ * Value associated with the unchecked state
680
+ */
681
+ uncheckedValue: {
682
+ type: [String, Number, Boolean],
683
+ default: void 0
684
+ },
685
+ /**
686
+ * Button toggle model value
687
+ */
688
+ modelValue: {
689
+ type: [String, Number, Boolean],
690
+ default: void 0
691
+ }
692
+ };
693
+ function useGroupProps(props, emit) {
694
+ const { group, isInGroup, getGroupOrLocalRef } = useGroupStateInject(INJECTION_KEY_BUTTON_GROUP);
695
+ const { id, iconPosition, icon, label, pressed } = toRefs(props);
696
+ const modelValue = getGroupOrLocalRef("modelValue", props, emit);
697
+ const toggle = getGroupOrLocalRef("toggle", props);
698
+ const unselectable = getGroupOrLocalRef("unselectable", props);
699
+ const multiple = computed(() => (group == null ? void 0 : group.multiple.value) ?? false);
700
+ const modifiers = computed(() => {
701
+ let localModifiers = props.modifiers;
702
+ let groupModifiers = group == null ? void 0 : group.modifiers.value;
703
+ const toReturn = /* @__PURE__ */ new Set();
704
+ if (localModifiers) {
705
+ if (!Array.isArray(localModifiers)) {
706
+ localModifiers = localModifiers.split(" ");
707
+ }
708
+ localModifiers.forEach((modifier) => toReturn.add(modifier));
709
+ }
710
+ if (groupModifiers) {
711
+ if (!Array.isArray(groupModifiers)) {
712
+ groupModifiers = groupModifiers.split(" ");
713
+ }
714
+ groupModifiers.forEach((modifier) => toReturn.add(modifier));
715
+ }
716
+ return Array.from(toReturn);
717
+ });
718
+ const disabled = computed(
719
+ () => Boolean(props.disabled || (group == null ? void 0 : group.disabled.value))
720
+ );
721
+ return {
722
+ // group props
723
+ group,
724
+ isInGroup,
725
+ modelValue,
726
+ toggle,
727
+ unselectable,
728
+ multiple,
729
+ modifiers,
730
+ disabled,
731
+ // local props
732
+ id,
733
+ pressed,
734
+ iconPosition,
735
+ icon,
736
+ label
737
+ };
738
+ }
739
+ const VvActionEvents = ["click", "mouseover", "mouseleave"];
740
+ const VvActionProps = ActionProps;
741
+ function useVolver() {
742
+ return inject(INJECTION_KEY_VOLVER, void 0);
743
+ }
744
+ function useInjectedDropdownTrigger() {
745
+ return inject(INJECTION_KEY_DROPDOWN_TRIGGER, {});
746
+ }
747
+ function useInjectedDropdownAction() {
748
+ return inject(INJECTION_KEY_DROPDOWN_ACTION, {});
749
+ }
750
+ const __default__$3 = {
751
+ name: "VvAction"
752
+ };
753
+ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
754
+ ...__default__$3,
755
+ props: VvActionProps,
756
+ emits: VvActionEvents,
757
+ setup(__props, { expose: __expose, emit: __emit }) {
758
+ const props = __props;
759
+ const emit = __emit;
760
+ const instance = getCurrentInstance();
761
+ const volver = useVolver();
762
+ const element = ref(null);
763
+ __expose({ $el: element });
764
+ const {
765
+ reference: dropdownTriggerReference,
766
+ bus: dropdownEventBus,
767
+ aria: dropdownAria,
768
+ expanded: dropdownExpanded
769
+ } = useInjectedDropdownTrigger();
770
+ watch(
771
+ () => element.value,
772
+ (newValue) => {
773
+ if (dropdownTriggerReference) {
774
+ dropdownTriggerReference.value = newValue;
775
+ }
776
+ }
777
+ );
778
+ const pressed = computed(() => {
779
+ return props.pressed || (dropdownExpanded == null ? void 0 : dropdownExpanded.value);
780
+ });
781
+ const { role } = useInjectedDropdownAction();
782
+ const hasTag = computed(() => {
783
+ switch (true) {
784
+ case props.disabled:
785
+ return ActionTag.button;
786
+ case props.to !== void 0:
787
+ return (volver == null ? void 0 : volver.nuxt) ? resolveComponent(ActionTag.nuxtLink) : ActionTag.routerLink;
788
+ case props.href !== void 0:
789
+ return ActionTag.a;
790
+ default:
791
+ return props.defaultTag;
792
+ }
793
+ });
794
+ const hasProps = computed(() => {
795
+ const toReturn = {
796
+ ...dropdownAria == null ? void 0 : dropdownAria.value,
797
+ ariaPressed: pressed.value ? true : void 0,
798
+ ariaLabel: props.ariaLabel,
799
+ role: role == null ? void 0 : role.value
800
+ };
801
+ switch (hasTag.value) {
802
+ case ActionTag.a:
803
+ return {
804
+ ...toReturn,
805
+ href: props.href,
806
+ target: props.target,
807
+ rel: props.rel
808
+ };
809
+ case ActionTag.routerLink:
810
+ case ActionTag.nuxtLink:
811
+ return {
812
+ ...toReturn,
813
+ to: props.to,
814
+ target: props.target
815
+ };
816
+ case ActionTag.button:
817
+ return {
818
+ ...toReturn,
819
+ type: props.type,
820
+ disabled: props.disabled
821
+ };
822
+ default:
823
+ return toReturn;
824
+ }
825
+ });
826
+ function onClick(e) {
827
+ var _a;
828
+ if (props.disabled) {
829
+ e.preventDefault();
830
+ return;
831
+ }
832
+ if ((_a = instance == null ? void 0 : instance.vnode.props) == null ? void 0 : _a.onClick) {
833
+ emit("click", e);
834
+ return;
835
+ }
836
+ dropdownEventBus == null ? void 0 : dropdownEventBus.emit("click", e);
837
+ }
838
+ function onMouseover(e) {
839
+ var _a;
840
+ if ((_a = instance == null ? void 0 : instance.vnode.props) == null ? void 0 : _a.onMouseover) {
841
+ emit("mouseover", e);
842
+ return;
843
+ }
844
+ dropdownEventBus == null ? void 0 : dropdownEventBus.emit("mouseover", e);
845
+ }
846
+ function onMouseleave(e) {
847
+ var _a;
848
+ if ((_a = instance == null ? void 0 : instance.vnode.props) == null ? void 0 : _a.onMouseleave) {
849
+ emit("mouseleave", e);
850
+ return;
851
+ }
852
+ dropdownEventBus == null ? void 0 : dropdownEventBus.emit("mouseleave", e);
853
+ }
854
+ return (_ctx, _cache) => {
855
+ return openBlock(), createBlock(resolveDynamicComponent(unref(hasTag)), mergeProps(unref(hasProps), {
856
+ ref_key: "element",
857
+ ref: element,
858
+ class: {
859
+ active: _ctx.active,
860
+ pressed: unref(pressed),
861
+ disabled: _ctx.disabled,
862
+ current: _ctx.current
863
+ },
864
+ onClickPassive: onClick,
865
+ onMouseoverPassive: onMouseover,
866
+ onMouseleavePassive: onMouseleave
867
+ }), {
868
+ default: withCtx(() => [
869
+ renderSlot(_ctx.$slots, "default", {}, () => [
870
+ createTextVNode(
871
+ toDisplayString(_ctx.label),
872
+ 1
873
+ /* TEXT */
874
+ )
875
+ ])
876
+ ]),
877
+ _: 3
878
+ /* FORWARDED */
879
+ }, 16, ["class"]);
880
+ };
881
+ }
882
+ });
883
+ function useModifiers(prefix, modifiers, others) {
884
+ return computed(() => {
885
+ const toReturn = {
886
+ [prefix]: true
887
+ };
888
+ const modifiersArray = typeof (modifiers == null ? void 0 : modifiers.value) === "string" ? modifiers.value.split(" ") : modifiers == null ? void 0 : modifiers.value;
889
+ if (modifiersArray) {
890
+ if (Array.isArray(modifiersArray)) {
891
+ modifiersArray.forEach((modifier) => {
892
+ if (modifier) {
893
+ toReturn[`${prefix}--${modifier}`] = true;
894
+ }
895
+ });
896
+ }
897
+ }
898
+ if (others) {
899
+ Object.keys(others.value).forEach((key) => {
900
+ toReturn[`${prefix}--${key}`] = unref(others.value[key]);
901
+ });
902
+ }
903
+ return toReturn;
904
+ });
905
+ }
906
+ const __default__$2 = {
907
+ name: "VvIcon"
908
+ };
909
+ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
910
+ ...__default__$2,
911
+ props: /* @__PURE__ */ mergeDefaults({
912
+ name: {},
913
+ color: {},
914
+ width: {},
915
+ height: {},
916
+ provider: {},
917
+ prefix: {},
918
+ src: {},
919
+ horizontalFlip: { type: Boolean },
920
+ verticalFlip: { type: Boolean },
921
+ flip: {},
922
+ mode: {},
923
+ inline: { type: Boolean },
924
+ rotate: {},
925
+ onLoad: { type: Function },
926
+ svg: {},
927
+ modifiers: {}
928
+ }, VvIconPropsDefaults),
929
+ setup(__props) {
930
+ const props = __props;
931
+ const hasRotate = computed(() => {
932
+ if (typeof props.rotate === "string") {
933
+ return Number.parseFloat(props.rotate);
934
+ }
935
+ return props.rotate;
936
+ });
937
+ const show = ref(true);
938
+ const volver = useVolver();
939
+ const { modifiers } = toRefs(props);
940
+ const bemCssClasses = useModifiers("vv-icon", modifiers);
941
+ const provider = computed(() => {
942
+ return props.provider || (volver == null ? void 0 : volver.iconsProvider);
943
+ });
944
+ const icon = computed(() => {
945
+ const name = props.name ?? "";
946
+ const iconName = `@${provider.value}:${props.prefix}:${name}`;
947
+ if (iconLoaded(iconName)) {
948
+ return iconName;
949
+ }
950
+ const iconsCollection = volver == null ? void 0 : volver.iconsCollections.find(
951
+ (iconsCollection2) => {
952
+ const icon2 = `@${provider.value}:${iconsCollection2.prefix}:${name}`;
953
+ return iconLoaded(icon2);
954
+ }
955
+ );
956
+ if (iconsCollection) {
957
+ return `@${provider.value}:${iconsCollection.prefix}:${name}`;
958
+ }
959
+ return name;
960
+ });
961
+ function getSvgContent(svg) {
962
+ let dom;
963
+ if (typeof window === "undefined") {
964
+ const { JSDOM } = require("jsdom");
965
+ dom = new JSDOM().window;
966
+ }
967
+ const domParser = dom ? new dom.DOMParser() : new window.DOMParser();
968
+ const svgDomString = domParser.parseFromString(svg, "text/html");
969
+ const svgEl = svgDomString.querySelector("svg");
970
+ return svgEl;
971
+ }
972
+ function addIconFromSvg(svg) {
973
+ const svgContentEl = getSvgContent(svg);
974
+ const svgContent = (svgContentEl == null ? void 0 : svgContentEl.innerHTML.trim()) || "";
975
+ if (svgContentEl && svgContent) {
976
+ addIcon(`@${provider.value}:${props.prefix}:${props.name}`, {
977
+ body: svgContent,
978
+ // Set height and width from svg content
979
+ height: svgContentEl.viewBox.baseVal.height,
980
+ width: svgContentEl.viewBox.baseVal.width
981
+ });
982
+ }
983
+ }
984
+ if (volver) {
985
+ if (props.src && !iconLoaded(`@${provider.value}:${props.prefix}:${props.name}`)) {
986
+ show.value = false;
987
+ volver.fetchIcon(props.src).then((svg) => {
988
+ if (svg) {
989
+ addIconFromSvg(svg);
990
+ show.value = true;
991
+ }
992
+ }).catch((e) => {
993
+ throw new Error(`Error during fetch icon: ${e == null ? void 0 : e.message}`);
994
+ });
995
+ }
996
+ }
997
+ if (props.svg) {
998
+ addIconFromSvg(props.svg);
999
+ }
1000
+ return (_ctx, _cache) => {
1001
+ return unref(show) ? (openBlock(), createBlock(unref(Icon), mergeProps({
1002
+ key: 0,
1003
+ class: unref(bemCssClasses)
1004
+ }, {
1005
+ inline: _ctx.inline,
1006
+ width: _ctx.width,
1007
+ height: _ctx.height,
1008
+ horizontalFlip: _ctx.horizontalFlip,
1009
+ verticalFlip: _ctx.verticalFlip,
1010
+ flip: _ctx.flip,
1011
+ rotate: unref(hasRotate),
1012
+ color: _ctx.color,
1013
+ icon: unref(icon)
1014
+ }, { onLoad: _ctx.onLoad }), null, 16, ["class", "onLoad"])) : createCommentVNode("v-if", true);
1015
+ };
1016
+ }
1017
+ });
1018
+ function useUniqueId(id) {
1019
+ return computed(() => String((id == null ? void 0 : id.value) || useId()));
1020
+ }
1021
+ function useComponentIcon(icon, iconPosition) {
1022
+ const hasIcon = computed(() => {
1023
+ if (typeof (icon == null ? void 0 : icon.value) === "string") {
1024
+ return { name: icon == null ? void 0 : icon.value };
1025
+ }
1026
+ return icon == null ? void 0 : icon.value;
1027
+ });
1028
+ const hasIconBefore = computed(
1029
+ () => (iconPosition == null ? void 0 : iconPosition.value) === Position.before ? hasIcon.value : void 0
1030
+ );
1031
+ const hasIconAfter = computed(
1032
+ () => (iconPosition == null ? void 0 : iconPosition.value) === Position.after ? hasIcon.value : void 0
1033
+ );
1034
+ const hasIconLeft = computed(
1035
+ () => (iconPosition == null ? void 0 : iconPosition.value) === Side.left ? hasIcon.value : void 0
1036
+ );
1037
+ const hasIconRight = computed(
1038
+ () => (iconPosition == null ? void 0 : iconPosition.value) === Side.right ? hasIcon.value : void 0
1039
+ );
1040
+ const hasIconTop = computed(
1041
+ () => (iconPosition == null ? void 0 : iconPosition.value) === Side.top ? hasIcon.value : void 0
1042
+ );
1043
+ const hasIconBottom = computed(
1044
+ () => (iconPosition == null ? void 0 : iconPosition.value) === Side.bottom ? hasIcon.value : void 0
1045
+ );
1046
+ return {
1047
+ hasIcon,
1048
+ hasIconLeft,
1049
+ hasIconRight,
1050
+ hasIconTop,
1051
+ hasIconBottom,
1052
+ hasIconBefore,
1053
+ hasIconAfter
1054
+ };
1055
+ }
1056
+ const _hoisted_1$1 = {
1057
+ key: 1,
1058
+ class: "vv-button__label"
1059
+ };
1060
+ const _hoisted_2$1 = {
1061
+ key: 1,
1062
+ class: "vv-button__label"
1063
+ };
1064
+ const __default__$1 = {
1065
+ name: "VvButton",
1066
+ inheritAttrs: false
1067
+ };
1068
+ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
1069
+ ...__default__$1,
1070
+ props: VvButtonProps,
1071
+ emits: VvButtonEvents,
1072
+ setup(__props, { expose: __expose, emit: __emit }) {
1073
+ const props = __props;
1074
+ const emit = __emit;
1075
+ const attrs = useAttrs();
1076
+ const slots = useSlots();
1077
+ const {
1078
+ id,
1079
+ modifiers,
1080
+ iconPosition,
1081
+ icon,
1082
+ label,
1083
+ modelValue,
1084
+ disabled,
1085
+ toggle,
1086
+ unselectable
1087
+ } = useGroupProps(props, emit);
1088
+ const hasId = useUniqueId(id);
1089
+ const name = computed(() => (attrs == null ? void 0 : attrs.name) || hasId.value);
1090
+ const element = ref(null);
1091
+ const $el = computed(() => {
1092
+ var _a;
1093
+ return (_a = element.value) == null ? void 0 : _a.$el;
1094
+ });
1095
+ __expose({ $el });
1096
+ const pressed = computed(() => {
1097
+ if (!toggle.value) {
1098
+ return props.pressed;
1099
+ }
1100
+ if (Array.isArray(modelValue.value)) {
1101
+ return contains(name.value, modelValue.value);
1102
+ }
1103
+ return equals(name.value, modelValue.value);
1104
+ });
1105
+ const bemCssClasses = useModifiers(
1106
+ "vv-button",
1107
+ modifiers,
1108
+ computed(() => ({
1109
+ "reverse": [Side.right, Side.bottom].includes(
1110
+ iconPosition.value
1111
+ ),
1112
+ "column": [Side.top, Side.bottom].includes(
1113
+ iconPosition.value
1114
+ ),
1115
+ "icon-only": Boolean(
1116
+ (icon == null ? void 0 : icon.value) && !(label == null ? void 0 : label.value) && !slots.default
1117
+ )
1118
+ }))
1119
+ );
1120
+ const { hasIcon } = useComponentIcon(icon);
1121
+ const toggleValue = computed(() => {
1122
+ return props.value !== void 0 ? props.value : name.value;
1123
+ });
1124
+ const hasListeners = computed(() => {
1125
+ if (!toggle.value) {
1126
+ return void 0;
1127
+ }
1128
+ return {
1129
+ onClick
1130
+ };
1131
+ });
1132
+ function onClick() {
1133
+ if (toggle.value) {
1134
+ if (Array.isArray(modelValue.value)) {
1135
+ if (contains(toggleValue.value, modelValue.value)) {
1136
+ if (unselectable.value) {
1137
+ modelValue.value = modelValue.value.filter(
1138
+ (n) => n !== toggleValue.value
1139
+ );
1140
+ }
1141
+ return;
1142
+ }
1143
+ modelValue.value.push(toggleValue.value);
1144
+ return;
1145
+ }
1146
+ if (toggleValue.value === modelValue.value && unselectable.value) {
1147
+ modelValue.value = props.uncheckedValue;
1148
+ return;
1149
+ }
1150
+ modelValue.value = toggleValue.value;
1151
+ }
1152
+ }
1153
+ return (_ctx, _cache) => {
1154
+ return openBlock(), createBlock(_sfc_main$3, mergeProps({
1155
+ ...unref(attrs),
1156
+ ...unref(hasListeners),
1157
+ disabled: unref(disabled),
1158
+ pressed: unref(pressed),
1159
+ active: _ctx.active,
1160
+ type: _ctx.type,
1161
+ to: _ctx.to,
1162
+ href: _ctx.href,
1163
+ target: _ctx.target,
1164
+ rel: _ctx.rel,
1165
+ ariaLabel: _ctx.ariaLabel
1166
+ }, {
1167
+ id: unref(hasId),
1168
+ ref_key: "element",
1169
+ ref: element,
1170
+ class: unref(bemCssClasses)
1171
+ }), {
1172
+ default: withCtx(() => [
1173
+ renderSlot(_ctx.$slots, "default", {}, () => [
1174
+ _ctx.loading ? renderSlot(_ctx.$slots, "loading", { key: 0 }, () => [
1175
+ _ctx.loadingIcon ? (openBlock(), createBlock(_sfc_main$2, {
1176
+ key: 0,
1177
+ class: "vv-button__loading-icon",
1178
+ name: _ctx.loadingIcon
1179
+ }, null, 8, ["name"])) : createCommentVNode("v-if", true),
1180
+ _ctx.loadingLabel ? (openBlock(), createElementBlock(
1181
+ "span",
1182
+ _hoisted_1$1,
1183
+ toDisplayString(_ctx.loadingLabel),
1184
+ 1
1185
+ /* TEXT */
1186
+ )) : createCommentVNode("v-if", true)
1187
+ ]) : (openBlock(), createElementBlock(
1188
+ Fragment,
1189
+ { key: 1 },
1190
+ [
1191
+ renderSlot(_ctx.$slots, "before"),
1192
+ unref(hasIcon) ? (openBlock(), createBlock(
1193
+ _sfc_main$2,
1194
+ mergeProps({ key: 0 }, unref(hasIcon), { class: "vv-button__icon" }),
1195
+ null,
1196
+ 16
1197
+ /* FULL_PROPS */
1198
+ )) : createCommentVNode("v-if", true),
1199
+ unref(label) ? (openBlock(), createElementBlock("span", _hoisted_2$1, [
1200
+ renderSlot(_ctx.$slots, "label", {}, () => [
1201
+ createTextVNode(
1202
+ toDisplayString(unref(label)),
1203
+ 1
1204
+ /* TEXT */
1205
+ )
1206
+ ])
1207
+ ])) : createCommentVNode("v-if", true),
1208
+ renderSlot(_ctx.$slots, "after")
1209
+ ],
1210
+ 64
1211
+ /* STABLE_FRAGMENT */
1212
+ ))
1213
+ ])
1214
+ ]),
1215
+ _: 3
1216
+ /* FORWARDED */
1217
+ }, 16, ["id", "class"]);
1218
+ };
1219
+ }
1220
+ });
1221
+ function useDefaults(componentName, propsDefinition, props) {
1222
+ const volver = useVolver();
1223
+ const volverComponentDefaults = computed(() => {
1224
+ var _a;
1225
+ if (!volver || !((_a = volver.defaults.value) == null ? void 0 : _a[componentName])) {
1226
+ return void 0;
1227
+ }
1228
+ return volver.defaults.value[componentName];
1229
+ });
1230
+ return computed(() => {
1231
+ if (volverComponentDefaults.value === void 0) {
1232
+ return props;
1233
+ }
1234
+ const componentDefaults = volverComponentDefaults.value;
1235
+ const simplifiedPropsDefinition = propsDefinition;
1236
+ const simplifiedProps = props;
1237
+ return Object.keys(simplifiedPropsDefinition).reduce((acc, key) => {
1238
+ const propValue = simplifiedProps[key];
1239
+ acc[key] = propValue;
1240
+ if (key in componentDefaults) {
1241
+ if (Array.isArray(simplifiedPropsDefinition[key])) {
1242
+ const typeArray = simplifiedPropsDefinition[key];
1243
+ if (typeArray.length) {
1244
+ const typeFunction = typeArray[0];
1245
+ if (typeFunction === propValue) {
1246
+ acc[key] = componentDefaults[key];
1247
+ }
1248
+ }
1249
+ }
1250
+ if (typeof simplifiedPropsDefinition[key] === "function") {
1251
+ const typeFunction = simplifiedPropsDefinition[key];
1252
+ if (typeFunction() === propValue) {
1253
+ acc[key] = componentDefaults[key];
1254
+ }
1255
+ }
1256
+ if (typeof simplifiedPropsDefinition[key] === "object") {
1257
+ let defaultValue = simplifiedPropsDefinition[key].default;
1258
+ if (typeof defaultValue === "function") {
1259
+ defaultValue = defaultValue();
1260
+ }
1261
+ if (typeof defaultValue === "object") {
1262
+ if (JSON.stringify(defaultValue) === JSON.stringify(propValue)) {
1263
+ acc[key] = componentDefaults[key];
1264
+ }
1265
+ } else if (defaultValue === propValue) {
1266
+ acc[key] = componentDefaults[key];
1267
+ }
1268
+ }
1269
+ }
1270
+ return acc;
1271
+ }, {});
1272
+ });
1273
+ }
1274
+ const _hoisted_1 = ["for"];
1275
+ const _hoisted_2 = { class: "vv-input-file__preview" };
1276
+ const _hoisted_3 = ["src", "alt"];
1277
+ const _hoisted_4 = { class: "vv-input-file__wrapper" };
1278
+ const _hoisted_5 = ["id", "readonly", "disabled", "required", "placeholder", "aria-describedby", "aria-invalid", "aria-errormessage", "multiple", "accept", "capture", "name"];
1279
+ const _hoisted_6 = ["value"];
1280
+ const _hoisted_7 = ["onClick"];
1281
+ const _hoisted_8 = ["title", "onClick"];
1282
+ const _hoisted_9 = { class: "vv-input-file__item-name" };
1283
+ const _hoisted_10 = { class: "vv-input-file__item-info" };
1284
+ const _hoisted_11 = ["title", "disabled", "onClick"];
1285
+ const __default__ = {
1286
+ name: "VvInputFile"
1287
+ };
1288
+ const _sfc_main = /* @__PURE__ */ defineComponent({
1289
+ ...__default__,
1290
+ props: VvInputFileProps,
1291
+ emits: ["remove", "download", "update:modelValue"],
1292
+ setup(__props, { emit: __emit }) {
1293
+ const props = __props;
1294
+ const emit = __emit;
1295
+ const slots = useSlots();
1296
+ const propsDefaults = useDefaults(
1297
+ "VvInputFile",
1298
+ VvInputFileProps,
1299
+ props
1300
+ );
1301
+ const { modifiers, id, readonly, disabled, icon, iconPosition, iconDownload } = toRefs(props);
1302
+ const hasId = useUniqueId(id);
1303
+ const hasHintId = computed(() => `${hasId.value}-hint`);
1304
+ const hasProgress = computed(() => {
1305
+ if (!props.progress) {
1306
+ return false;
1307
+ }
1308
+ const progress = typeof props.progress === "string" ? Number.parseInt(props.progress) : props.progress;
1309
+ return progress > 0 && progress < 100;
1310
+ });
1311
+ const { hasIconBefore, hasIconAfter } = useComponentIcon(icon, iconPosition);
1312
+ const { hasIcon: hasIconDownload } = useComponentIcon(iconDownload);
1313
+ const bemCssClasses = useModifiers(
1314
+ "vv-input-file",
1315
+ modifiers,
1316
+ computed(() => ({
1317
+ "valid": props.valid === true,
1318
+ "invalid": props.invalid === true,
1319
+ "loading": props.loading && !hasProgress.value,
1320
+ "disabled": props.disabled,
1321
+ "required": props.required,
1322
+ "readonly": props.readonly,
1323
+ "dragging": isDragging.value,
1324
+ "icon-before": !!hasIconBefore.value,
1325
+ "icon-after": !!hasIconAfter.value,
1326
+ "drop-area": hasDropArea.value
1327
+ }))
1328
+ );
1329
+ const {
1330
+ HintSlot,
1331
+ hasHintLabelOrSlot,
1332
+ hasInvalidLabelOrSlot,
1333
+ hintSlotScope
1334
+ } = HintSlotFactory(propsDefaults, slots);
1335
+ const localModelValue = useVModel(props, "modelValue", emit);
1336
+ const files = computed({
1337
+ get: () => {
1338
+ var _a;
1339
+ if (!localModelValue.value || !Array.isArray(localModelValue.value) && !((_a = localModelValue.value) == null ? void 0 : _a.name)) {
1340
+ return [];
1341
+ }
1342
+ return Array.isArray(localModelValue.value) ? localModelValue.value : [localModelValue.value];
1343
+ },
1344
+ set: (value) => {
1345
+ if (isMultiple.value) {
1346
+ localModelValue.value = value;
1347
+ return;
1348
+ }
1349
+ localModelValue.value = value == null ? void 0 : value[0];
1350
+ }
1351
+ });
1352
+ const isDisabledOrReadonly = computed(() => props.disabled || props.readonly);
1353
+ const hasMax = computed(() => {
1354
+ return typeof props.max === "string" ? Number.parseInt(props.max) : props.max;
1355
+ });
1356
+ const hasDropArea = computed(() => {
1357
+ return props.dropArea && !isDisabledOrReadonly.value;
1358
+ });
1359
+ const isMultiple = computed(() => {
1360
+ if (!props.multiple) {
1361
+ return false;
1362
+ }
1363
+ if (!hasMax.value) {
1364
+ return true;
1365
+ }
1366
+ return hasMax.value - files.value.length > 1;
1367
+ });
1368
+ const isDragging = ref(false);
1369
+ const inputEl = ref();
1370
+ function onDragenter() {
1371
+ isDragging.value = true;
1372
+ }
1373
+ function onDragleave() {
1374
+ isDragging.value = false;
1375
+ }
1376
+ function onDrop(event) {
1377
+ var _a, _b;
1378
+ if (!((_a = event.dataTransfer) == null ? void 0 : _a.files)) {
1379
+ return;
1380
+ }
1381
+ isDragging.value = false;
1382
+ addFiles((_b = event.dataTransfer) == null ? void 0 : _b.files);
1383
+ }
1384
+ function onChange() {
1385
+ var _a;
1386
+ if (!((_a = inputEl.value) == null ? void 0 : _a.files)) {
1387
+ return;
1388
+ }
1389
+ addFiles(inputEl.value.files);
1390
+ inputEl.value.value = "";
1391
+ }
1392
+ function addFiles(uploadedFiles) {
1393
+ const filteredFiles = filterFileList(uploadedFiles, props.accept);
1394
+ if (!props.multiple) {
1395
+ if (Array.isArray(localModelValue.value)) {
1396
+ localModelValue.value = filteredFiles;
1397
+ return;
1398
+ }
1399
+ localModelValue.value = filteredFiles[0];
1400
+ return;
1401
+ }
1402
+ let toReturn = [];
1403
+ if (!Array.isArray(localModelValue.value) && localModelValue.value) {
1404
+ toReturn = [localModelValue.value];
1405
+ } else {
1406
+ toReturn = localModelValue.value && Array.isArray(localModelValue.value) ? [...localModelValue.value] : toReturn;
1407
+ }
1408
+ for (const file of filteredFiles) {
1409
+ if (hasMax.value && toReturn.length >= hasMax.value) {
1410
+ break;
1411
+ }
1412
+ toReturn.push(file);
1413
+ }
1414
+ localModelValue.value = toReturn;
1415
+ selectedFileIndex.value = toReturn.length - 1;
1416
+ }
1417
+ function onClickDropArea() {
1418
+ if (!inputEl.value) {
1419
+ return;
1420
+ }
1421
+ if (!isDisabledOrReadonly.value) {
1422
+ inputEl.value.click();
1423
+ }
1424
+ }
1425
+ function onClickRemoveFile(index) {
1426
+ const toRemove = !Array.isArray(localModelValue.value) ? localModelValue.value : localModelValue.value[index];
1427
+ if (!toRemove) {
1428
+ return;
1429
+ }
1430
+ emit("remove", toRemove);
1431
+ if (!Array.isArray(localModelValue.value)) {
1432
+ localModelValue.value = void 0;
1433
+ return;
1434
+ }
1435
+ if (selectedFileIndex.value === index) {
1436
+ selectedFileIndex.value = 0;
1437
+ }
1438
+ const newModelValue = [...localModelValue.value];
1439
+ newModelValue.splice(index, 1);
1440
+ localModelValue.value = newModelValue;
1441
+ }
1442
+ const selectedFileIndex = ref(0);
1443
+ const PREVIEW_MIME_TYPES = ["image/jpeg", "image/png"];
1444
+ const previewSrc = computed(() => {
1445
+ if (files.value.length === 0) {
1446
+ return;
1447
+ }
1448
+ if (!files.value[selectedFileIndex.value]) {
1449
+ return void 0;
1450
+ }
1451
+ if (files.value[selectedFileIndex.value] instanceof File) {
1452
+ const currentFile2 = files.value[selectedFileIndex.value];
1453
+ if (!PREVIEW_MIME_TYPES.includes(currentFile2.type)) {
1454
+ return void 0;
1455
+ }
1456
+ return URL.createObjectURL(currentFile2);
1457
+ }
1458
+ const currentFile = files.value[selectedFileIndex.value];
1459
+ if (currentFile.thumbnailUrl) {
1460
+ return currentFile.thumbnailUrl;
1461
+ }
1462
+ if (!PREVIEW_MIME_TYPES.includes(currentFile.type)) {
1463
+ return void 0;
1464
+ }
1465
+ return currentFile.url;
1466
+ });
1467
+ watch(previewSrc, (_newValue, oldValue) => {
1468
+ if (oldValue) {
1469
+ URL.revokeObjectURL(oldValue);
1470
+ }
1471
+ });
1472
+ onBeforeUnmount(() => {
1473
+ if (previewSrc.value) {
1474
+ URL.revokeObjectURL(previewSrc.value);
1475
+ }
1476
+ });
1477
+ function formatBytes(bytes, decimals) {
1478
+ if (!bytes) {
1479
+ return;
1480
+ }
1481
+ if (bytes === 0)
1482
+ return "0 Bytes";
1483
+ const k = 1024;
1484
+ const dm = 2;
1485
+ const sizes = ["Bytes", "KB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB"];
1486
+ const i = Math.floor(Math.log(bytes) / Math.log(k));
1487
+ return `${Number.parseFloat((bytes / k ** i).toFixed(dm))} ${sizes[i]}`;
1488
+ }
1489
+ function onClickDownloadFile(file) {
1490
+ emit("download", file);
1491
+ const href = file instanceof File ? URL.createObjectURL(file) : file.url;
1492
+ if (!href) {
1493
+ return;
1494
+ }
1495
+ const link = document.createElement("a");
1496
+ link.href = href;
1497
+ link.setAttribute("download", file.name);
1498
+ document.body.appendChild(link);
1499
+ link.click();
1500
+ document.body.removeChild(link);
1501
+ URL.revokeObjectURL(link.href);
1502
+ }
1503
+ function onClickSelectFile(index) {
1504
+ selectedFileIndex.value = index;
1505
+ }
1506
+ const dropdAreaActionLabel = computed(() => {
1507
+ if (files.value.length === 0 || isMultiple.value) {
1508
+ return props.labelAdd;
1509
+ }
1510
+ return props.labelReplace;
1511
+ });
1512
+ const dropAreaActionIcon = computed(() => {
1513
+ if (files.value.length === 0 || isMultiple.value) {
1514
+ return props.iconAdd;
1515
+ }
1516
+ return props.iconReplace;
1517
+ });
1518
+ function onSortEnd({ newIndex }) {
1519
+ if (newIndex !== null) {
1520
+ selectedFileIndex.value = newIndex;
1521
+ }
1522
+ }
1523
+ return (_ctx, _cache) => {
1524
+ return openBlock(), createElementBlock(
1525
+ "div",
1526
+ {
1527
+ class: normalizeClass(unref(bemCssClasses))
1528
+ },
1529
+ [
1530
+ _ctx.label ? (openBlock(), createElementBlock("label", {
1531
+ key: 0,
1532
+ for: unref(hasId)
1533
+ }, toDisplayString(_ctx.label), 9, _hoisted_1)) : createCommentVNode("v-if", true),
1534
+ hasDropArea.value ? (openBlock(), createElementBlock(
1535
+ "div",
1536
+ {
1537
+ key: 1,
1538
+ class: "vv-input-file__drop-area",
1539
+ onDragenter: withModifiers(onDragenter, ["prevent", "stop"]),
1540
+ onDragleave: withModifiers(onDragleave, ["prevent", "stop"]),
1541
+ onDrop: withModifiers(onDrop, ["prevent", "stop"]),
1542
+ onDragover: _cache[0] || (_cache[0] = withModifiers(() => {
1543
+ }, ["prevent", "stop"])),
1544
+ onClick: withModifiers(onClickDropArea, ["stop"])
1545
+ },
1546
+ [
1547
+ renderSlot(_ctx.$slots, "drop-area", {}, () => [
1548
+ createElementVNode("picture", _hoisted_2, [
1549
+ previewSrc.value ? (openBlock(), createElementBlock("img", {
1550
+ key: 0,
1551
+ src: previewSrc.value,
1552
+ alt: files.value[selectedFileIndex.value].name
1553
+ }, null, 8, _hoisted_3)) : createCommentVNode("v-if", true)
1554
+ ]),
1555
+ !unref(readonly) ? (openBlock(), createBlock(_sfc_main$1, {
1556
+ key: 0,
1557
+ modifiers: "action",
1558
+ label: !previewSrc.value ? dropdAreaActionLabel.value : void 0,
1559
+ title: previewSrc.value ? dropdAreaActionLabel.value : void 0,
1560
+ disabled: unref(disabled),
1561
+ class: normalizeClass({
1562
+ "vv-input-file__drop-area-action": previewSrc.value
1563
+ }),
1564
+ icon: dropAreaActionIcon.value,
1565
+ onClick: withModifiers(onClickDropArea, ["stop"])
1566
+ }, null, 8, ["label", "title", "disabled", "class", "icon"])) : createCommentVNode("v-if", true)
1567
+ ])
1568
+ ],
1569
+ 32
1570
+ /* NEED_HYDRATION */
1571
+ )) : createCommentVNode("v-if", true),
1572
+ createElementVNode("div", _hoisted_4, [
1573
+ unref(hasIconBefore) ? (openBlock(), createBlock(
1574
+ _sfc_main$2,
1575
+ normalizeProps(mergeProps({ key: 0 }, unref(hasIconBefore))),
1576
+ null,
1577
+ 16
1578
+ /* FULL_PROPS */
1579
+ )) : createCommentVNode("v-if", true),
1580
+ createElementVNode("input", {
1581
+ id: unref(hasId),
1582
+ ref_key: "inputEl",
1583
+ ref: inputEl,
1584
+ type: "file",
1585
+ readonly: unref(readonly),
1586
+ disabled: unref(disabled),
1587
+ required: _ctx.required,
1588
+ placeholder: _ctx.placeholder,
1589
+ "aria-describedby": unref(hasHintLabelOrSlot) ? hasHintId.value : void 0,
1590
+ "aria-invalid": _ctx.invalid,
1591
+ "aria-errormessage": unref(hasInvalidLabelOrSlot) ? hasHintId.value : void 0,
1592
+ multiple: isMultiple.value,
1593
+ accept: _ctx.accept,
1594
+ capture: _ctx.capture,
1595
+ name: _ctx.name,
1596
+ onChange
1597
+ }, null, 40, _hoisted_5),
1598
+ hasProgress.value ? (openBlock(), createElementBlock("progress", {
1599
+ key: 1,
1600
+ class: "vv-input-file__progress",
1601
+ value: _ctx.progress,
1602
+ max: "100"
1603
+ }, toDisplayString(_ctx.progress) + "% ", 9, _hoisted_6)) : createCommentVNode("v-if", true),
1604
+ unref(hasIconAfter) ? (openBlock(), createBlock(
1605
+ _sfc_main$2,
1606
+ normalizeProps(mergeProps({ key: 2 }, unref(hasIconAfter))),
1607
+ null,
1608
+ 16
1609
+ /* FULL_PROPS */
1610
+ )) : createCommentVNode("v-if", true)
1611
+ ]),
1612
+ createVNode(unref(Sortable), {
1613
+ modelValue: files.value,
1614
+ "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => files.value = $event),
1615
+ tag: "ul",
1616
+ class: "vv-input-file__list",
1617
+ "item-key": "name",
1618
+ move: () => _ctx.sortable,
1619
+ onEnd: onSortEnd
1620
+ }, {
1621
+ item: withCtx(({ element: file, index }) => [
1622
+ createElementVNode("li", {
1623
+ class: normalizeClass(["vv-input-file__item", {
1624
+ "active": index === selectedFileIndex.value && hasDropArea.value && files.value.length > 1,
1625
+ "cursor-move": _ctx.sortable
1626
+ }]),
1627
+ onClick: withModifiers(($event) => onClickSelectFile(index), ["stop"])
1628
+ }, [
1629
+ unref(hasIconDownload) ? (openBlock(), createElementBlock("button", {
1630
+ key: 0,
1631
+ type: "button",
1632
+ class: "vv-input-file__item-action",
1633
+ title: _ctx.labelDownload,
1634
+ onClick: withModifiers(($event) => onClickDownloadFile(file), ["stop"])
1635
+ }, [
1636
+ createVNode(
1637
+ _sfc_main$2,
1638
+ normalizeProps(guardReactiveProps(unref(hasIconDownload))),
1639
+ null,
1640
+ 16
1641
+ /* FULL_PROPS */
1642
+ )
1643
+ ], 8, _hoisted_8)) : createCommentVNode("v-if", true),
1644
+ createElementVNode(
1645
+ "div",
1646
+ _hoisted_9,
1647
+ toDisplayString(file.name),
1648
+ 1
1649
+ /* TEXT */
1650
+ ),
1651
+ createElementVNode(
1652
+ "small",
1653
+ _hoisted_10,
1654
+ toDisplayString(formatBytes(file.size)),
1655
+ 1
1656
+ /* TEXT */
1657
+ ),
1658
+ !unref(readonly) ? (openBlock(), createElementBlock("button", {
1659
+ key: 1,
1660
+ type: "button",
1661
+ class: "vv-input-file__item-remove",
1662
+ title: _ctx.labelRemove,
1663
+ disabled: unref(disabled),
1664
+ onClick: withModifiers(($event) => onClickRemoveFile(index), ["stop"])
1665
+ }, null, 8, _hoisted_11)) : createCommentVNode("v-if", true)
1666
+ ], 10, _hoisted_7)
1667
+ ]),
1668
+ _: 1
1669
+ /* STABLE */
1670
+ }, 8, ["modelValue", "move"]),
1671
+ createVNode(unref(HintSlot), {
1672
+ id: hasHintId.value,
1673
+ class: "vv-input-file__hint"
1674
+ }, createSlots({
1675
+ _: 2
1676
+ /* DYNAMIC */
1677
+ }, [
1678
+ _ctx.$slots.hint ? {
1679
+ name: "hint",
1680
+ fn: withCtx(() => [
1681
+ renderSlot(_ctx.$slots, "hint", normalizeProps(guardReactiveProps(unref(hintSlotScope))))
1682
+ ]),
1683
+ key: "0"
1684
+ } : void 0,
1685
+ _ctx.$slots.loading ? {
1686
+ name: "loading",
1687
+ fn: withCtx(() => [
1688
+ renderSlot(_ctx.$slots, "loading", normalizeProps(guardReactiveProps(unref(hintSlotScope))))
1689
+ ]),
1690
+ key: "1"
1691
+ } : void 0,
1692
+ _ctx.$slots.valid ? {
1693
+ name: "valid",
1694
+ fn: withCtx(() => [
1695
+ renderSlot(_ctx.$slots, "valid", normalizeProps(guardReactiveProps(unref(hintSlotScope))))
1696
+ ]),
1697
+ key: "2"
1698
+ } : void 0,
1699
+ _ctx.$slots.invalid ? {
1700
+ name: "invalid",
1701
+ fn: withCtx(() => [
1702
+ renderSlot(_ctx.$slots, "invalid", normalizeProps(guardReactiveProps(unref(hintSlotScope))))
1703
+ ]),
1704
+ key: "3"
1705
+ } : void 0
1706
+ ]), 1032, ["id"])
1707
+ ],
1708
+ 2
1709
+ /* CLASS */
1710
+ );
1711
+ };
1712
+ }
1713
+ });
1714
+ export {
1715
+ _sfc_main as default
1716
+ };