@volverjs/ui-vue 0.0.3-beta.4 → 0.0.4

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 (853) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +56 -16
  3. package/auto-imports.d.ts +10 -6
  4. package/bin/icons.cjs +8 -8
  5. package/bin/icons.js +8 -8
  6. package/dist/Volver.d.ts +43 -13
  7. package/dist/components/VvAccordion/VvAccordion.es.js +133 -59
  8. package/dist/components/VvAccordion/VvAccordion.umd.js +1 -1
  9. package/dist/components/VvAccordion/index.d.ts +2 -2
  10. package/dist/components/VvAccordionGroup/VvAccordionGroup.es.js +207 -100
  11. package/dist/components/VvAccordionGroup/VvAccordionGroup.umd.js +1 -1
  12. package/dist/components/VvAccordionGroup/VvAccordionGroup.vue.d.ts +1 -1
  13. package/dist/components/VvAction/VvAction.es.js +170 -0
  14. package/dist/components/VvAction/VvAction.umd.js +1 -0
  15. package/dist/components/VvAction/VvAction.vue.d.ts +63 -0
  16. package/dist/components/VvAction/index.d.ts +24 -0
  17. package/dist/components/VvBadge/VvBadge.es.js +92 -17
  18. package/dist/components/VvBadge/VvBadge.umd.js +1 -1
  19. package/dist/components/VvBreadcrumb/VvBreadcrumb.es.js +104 -57
  20. package/dist/components/VvBreadcrumb/VvBreadcrumb.umd.js +1 -1
  21. package/dist/components/VvButton/VvButton.es.js +526 -202
  22. package/dist/components/VvButton/VvButton.umd.js +1 -1
  23. package/dist/components/VvButton/VvButton.vue.d.ts +59 -62
  24. package/dist/components/VvButton/index.d.ts +32 -83
  25. package/dist/components/VvButtonGroup/VvButtonGroup.es.js +133 -43
  26. package/dist/components/VvButtonGroup/VvButtonGroup.umd.js +1 -1
  27. package/dist/components/VvButtonGroup/VvButtonGroup.vue.d.ts +1 -1
  28. package/dist/components/VvCard/VvCard.es.js +38 -27
  29. package/dist/components/VvCard/VvCard.umd.js +1 -1
  30. package/dist/components/VvCheckbox/VvCheckbox.es.js +386 -147
  31. package/dist/components/VvCheckbox/VvCheckbox.umd.js +1 -1
  32. package/dist/components/VvCheckbox/VvCheckbox.vue.d.ts +7 -5
  33. package/dist/components/VvCheckbox/index.d.ts +6 -10
  34. package/dist/components/VvCheckboxGroup/VvCheckboxGroup.es.js +475 -189
  35. package/dist/components/VvCheckboxGroup/VvCheckboxGroup.umd.js +1 -1
  36. package/dist/components/VvCheckboxGroup/VvCheckboxGroup.vue.d.ts +14 -3
  37. package/dist/components/VvCheckboxGroup/index.d.ts +6 -1
  38. package/dist/components/VvCombobox/VvCombobox.es.js +1488 -457
  39. package/dist/components/VvCombobox/VvCombobox.umd.js +1 -1
  40. package/dist/components/VvCombobox/VvCombobox.vue.d.ts +282 -25
  41. package/dist/components/VvCombobox/index.d.ts +141 -15
  42. package/dist/components/VvDialog/VvDialog.es.js +248 -82
  43. package/dist/components/VvDialog/VvDialog.umd.js +1 -1
  44. package/dist/components/VvDialog/VvDialog.vue.d.ts +3 -9
  45. package/dist/components/VvDialog/index.d.ts +16 -4
  46. package/dist/components/VvDropdown/VvDropdown.es.js +448 -89
  47. package/dist/components/VvDropdown/VvDropdown.umd.js +1 -1
  48. package/dist/components/VvDropdown/VvDropdown.vue.d.ts +184 -51
  49. package/dist/components/VvDropdown/VvDropdownAction.vue.d.ts +61 -0
  50. package/dist/components/VvDropdown/VvDropdownItem.vue.d.ts +9 -0
  51. package/dist/components/VvDropdown/VvDropdownOption.vue.d.ts +52 -0
  52. package/dist/components/VvDropdown/index.d.ts +70 -31
  53. package/dist/components/VvDropdownAction/VvDropdownAction.es.js +251 -0
  54. package/dist/components/VvDropdownAction/VvDropdownAction.umd.js +1 -0
  55. package/dist/components/VvDropdownItem/VvDropdownItem.es.js +38 -0
  56. package/dist/components/VvDropdownItem/VvDropdownItem.umd.js +1 -0
  57. package/dist/components/VvDropdownOption/VvDropdownOption.es.js +176 -0
  58. package/dist/components/VvDropdownOption/VvDropdownOption.umd.js +1 -0
  59. package/dist/components/VvIcon/VvIcon.es.js +113 -34
  60. package/dist/components/VvIcon/VvIcon.umd.js +1 -1
  61. package/dist/components/VvInputText/VvInputText.es.js +721 -342
  62. package/dist/components/VvInputText/VvInputText.umd.js +1 -1
  63. package/dist/components/VvInputText/VvInputText.vue.d.ts +21 -14
  64. package/dist/components/VvInputText/index.d.ts +17 -6
  65. package/dist/components/VvProgress/VvProgress.es.js +113 -19
  66. package/dist/components/VvProgress/VvProgress.umd.js +1 -1
  67. package/dist/components/VvRadio/VvRadio.es.js +345 -120
  68. package/dist/components/VvRadio/VvRadio.umd.js +1 -1
  69. package/dist/components/VvRadio/VvRadio.vue.d.ts +6 -4
  70. package/dist/components/VvRadio/index.d.ts +6 -4
  71. package/dist/components/VvRadioGroup/VvRadioGroup.es.js +434 -162
  72. package/dist/components/VvRadioGroup/VvRadioGroup.umd.js +1 -1
  73. package/dist/components/VvRadioGroup/VvRadioGroup.vue.d.ts +14 -3
  74. package/dist/components/VvRadioGroup/index.d.ts +6 -1
  75. package/dist/components/VvSelect/VvSelect.es.js +542 -222
  76. package/dist/components/VvSelect/VvSelect.umd.js +1 -1
  77. package/dist/components/VvSelect/VvSelect.vue.d.ts +44 -21
  78. package/dist/components/VvSelect/index.d.ts +13 -9
  79. package/dist/components/VvTextarea/VvTextarea.es.js +579 -236
  80. package/dist/components/VvTextarea/VvTextarea.umd.js +1 -1
  81. package/dist/components/VvTextarea/VvTextarea.vue.d.ts +20 -13
  82. package/dist/components/VvTextarea/index.d.ts +9 -6
  83. package/dist/components/VvTooltip/VvTooltip.es.js +104 -14
  84. package/dist/components/VvTooltip/VvTooltip.umd.js +1 -1
  85. package/dist/components/VvTooltip/VvTooltip.vue.d.ts +11 -5
  86. package/dist/components/VvTooltip/index.d.ts +7 -9
  87. package/dist/components/index.es.js +2800 -1423
  88. package/dist/components/index.umd.js +1 -1
  89. package/dist/composables/dropdown/useInjectDropdown.d.ts +31 -0
  90. package/dist/composables/dropdown/useProvideDropdown.d.ts +36 -0
  91. package/dist/composables/group/useInjectedGroupState.d.ts +4 -4
  92. package/dist/composables/group/useProvideGroupState.d.ts +2 -2
  93. package/dist/composables/useComponentIcon.d.ts +10 -0
  94. package/dist/composables/useModifiers.d.ts +1 -9
  95. package/dist/composables/useOptions.d.ts +2 -1
  96. package/dist/composables/useUniqueId.d.ts +2 -0
  97. package/dist/composables/useVolver.d.ts +2 -0
  98. package/dist/constants.d.ts +59 -4
  99. package/dist/directives/index.d.ts +4 -0
  100. package/dist/directives/index.es.js +128 -0
  101. package/dist/directives/index.umd.js +1 -0
  102. package/dist/directives/v-tooltip.d.ts +3 -0
  103. package/dist/directives/v-tooltip.es.js +126 -0
  104. package/dist/directives/v-tooltip.umd.js +1 -0
  105. package/dist/icons.d.ts +9 -0
  106. package/dist/icons.es.js +30 -21
  107. package/dist/icons.umd.js +1 -1
  108. package/dist/index.d.ts +1 -1
  109. package/dist/index.es.js +2866 -1455
  110. package/dist/index.umd.js +1 -1
  111. package/dist/props/index.d.ts +327 -33
  112. package/dist/resolvers/unplugin.d.ts +8 -8
  113. package/dist/resolvers/unplugin.es.js +54 -33
  114. package/dist/resolvers/unplugin.umd.js +1 -1
  115. package/dist/stories/CheckboxGroup/CheckboxGroup.settings.d.ts +14 -0
  116. package/dist/stories/Combobox/Combobox.settings.d.ts +270 -3
  117. package/dist/stories/Dropdown/Dropdown.settings.d.ts +139 -28
  118. package/dist/stories/Dropdown/Dropdown.test.d.ts +1 -1
  119. package/dist/stories/InputText/InputText.settings.d.ts +24 -24
  120. package/dist/stories/RadioGroup/RadioGroup.settings.d.ts +14 -0
  121. package/dist/stories/Select/Select.settings.d.ts +15 -1
  122. package/dist/stories/Textarea/Textarea.settings.d.ts +24 -24
  123. package/dist/stories/Tooltip/Tooltip.settings.d.ts +1 -1
  124. package/dist/stories/argTypes.d.ts +164 -3
  125. package/package.json +83 -48
  126. package/src/Volver.ts +152 -33
  127. package/src/assets/icons/detailed/add-circle.svg +12 -1
  128. package/src/assets/icons/detailed/add.svg +8 -1
  129. package/src/assets/icons/detailed/align-center.svg +12 -1
  130. package/src/assets/icons/detailed/align-justify.svg +12 -1
  131. package/src/assets/icons/detailed/align-left.svg +12 -1
  132. package/src/assets/icons/detailed/align-right.svg +12 -1
  133. package/src/assets/icons/detailed/analysis-2.svg +20 -1
  134. package/src/assets/icons/detailed/analysis-3.svg +8 -1
  135. package/src/assets/icons/detailed/analysis.svg +16 -1
  136. package/src/assets/icons/detailed/apple.svg +16 -1
  137. package/src/assets/icons/detailed/arrow-down.svg +8 -1
  138. package/src/assets/icons/detailed/arrow-left.svg +8 -1
  139. package/src/assets/icons/detailed/arrow-right.svg +8 -1
  140. package/src/assets/icons/detailed/arrow-up.svg +8 -1
  141. package/src/assets/icons/detailed/attachment.svg +8 -1
  142. package/src/assets/icons/detailed/back-to-front.svg +17 -1
  143. package/src/assets/icons/detailed/bell-active.svg +14 -1
  144. package/src/assets/icons/detailed/bell.svg +14 -1
  145. package/src/assets/icons/detailed/bold.svg +8 -1
  146. package/src/assets/icons/detailed/bookmark-active.svg +12 -1
  147. package/src/assets/icons/detailed/bookmark.svg +12 -1
  148. package/src/assets/icons/detailed/building.svg +26 -1
  149. package/src/assets/icons/detailed/bullet-list.svg +22 -1
  150. package/src/assets/icons/detailed/calendar.svg +26 -1
  151. package/src/assets/icons/detailed/camera-off.svg +12 -1
  152. package/src/assets/icons/detailed/camera-on.svg +17 -1
  153. package/src/assets/icons/detailed/catalog.svg +15 -1
  154. package/src/assets/icons/detailed/certificate.svg +10 -1
  155. package/src/assets/icons/detailed/chat.svg +6 -1
  156. package/src/assets/icons/detailed/check-badge.svg +9 -1
  157. package/src/assets/icons/detailed/check-circle.svg +10 -1
  158. package/src/assets/icons/detailed/check.svg +6 -1
  159. package/src/assets/icons/detailed/checkbox.svg +8 -1
  160. package/src/assets/icons/detailed/chevron-down-circle.svg +10 -1
  161. package/src/assets/icons/detailed/chevron-down.svg +6 -1
  162. package/src/assets/icons/detailed/chevron-left-circle.svg +10 -1
  163. package/src/assets/icons/detailed/chevron-left.svg +6 -1
  164. package/src/assets/icons/detailed/chevron-right-circle.svg +7 -1
  165. package/src/assets/icons/detailed/chevron-up-circle.svg +10 -1
  166. package/src/assets/icons/detailed/chevron-up.svg +6 -1
  167. package/src/assets/icons/detailed/circle.svg +8 -0
  168. package/src/assets/icons/detailed/classroom.svg +38 -1
  169. package/src/assets/icons/detailed/clear-field.svg +14 -1
  170. package/src/assets/icons/detailed/clear-style.svg +9 -1
  171. package/src/assets/icons/detailed/close-circle.svg +14 -1
  172. package/src/assets/icons/detailed/close-loader.svg +6 -1
  173. package/src/assets/icons/detailed/close.svg +8 -1
  174. package/src/assets/icons/detailed/coffee.svg +21 -1
  175. package/src/assets/icons/detailed/color.svg +20 -1
  176. package/src/assets/icons/detailed/contact-us.svg +27 -1
  177. package/src/assets/icons/detailed/copy.svg +10 -1
  178. package/src/assets/icons/detailed/courses.svg +22 -1
  179. package/src/assets/icons/detailed/dashboard.svg +20 -1
  180. package/src/assets/icons/detailed/download.svg +10 -1
  181. package/src/assets/icons/detailed/drag.svg +10 -1
  182. package/src/assets/icons/detailed/duplicate.svg +23 -1
  183. package/src/assets/icons/detailed/edit.svg +16 -1
  184. package/src/assets/icons/detailed/elearning.svg +13 -1
  185. package/src/assets/icons/detailed/email.svg +11 -1
  186. package/src/assets/icons/detailed/error-2.svg +8 -1
  187. package/src/assets/icons/detailed/error.svg +12 -1
  188. package/src/assets/icons/detailed/exercise.svg +26 -1
  189. package/src/assets/icons/detailed/external-link.svg +11 -1
  190. package/src/assets/icons/detailed/extract.svg +20 -1
  191. package/src/assets/icons/detailed/eye-off.svg +15 -1
  192. package/src/assets/icons/detailed/eye-on.svg +8 -1
  193. package/src/assets/icons/detailed/fail.svg +11 -1
  194. package/src/assets/icons/detailed/fast-back.svg +20 -1
  195. package/src/assets/icons/detailed/fast-forward.svg +20 -1
  196. package/src/assets/icons/detailed/file-add.svg +19 -1
  197. package/src/assets/icons/detailed/file-duplicate.svg +16 -1
  198. package/src/assets/icons/detailed/file-remove.svg +17 -1
  199. package/src/assets/icons/detailed/file-required.svg +23 -1
  200. package/src/assets/icons/detailed/file.svg +13 -1
  201. package/src/assets/icons/detailed/filter-2.svg +22 -1
  202. package/src/assets/icons/detailed/filter-active.svg +12 -1
  203. package/src/assets/icons/detailed/filter.svg +12 -1
  204. package/src/assets/icons/detailed/flag.svg +11 -1
  205. package/src/assets/icons/detailed/folder.svg +14 -1
  206. package/src/assets/icons/detailed/full-width.svg +11 -1
  207. package/src/assets/icons/detailed/go-to-back.svg +19 -1
  208. package/src/assets/icons/detailed/grid.svg +20 -1
  209. package/src/assets/icons/detailed/group-add.svg +24 -1
  210. package/src/assets/icons/detailed/group.svg +16 -1
  211. package/src/assets/icons/detailed/heart-active.svg +12 -1
  212. package/src/assets/icons/detailed/heart.svg +12 -1
  213. package/src/assets/icons/detailed/highlighter.svg +10 -1
  214. package/src/assets/icons/detailed/home.svg +12 -1
  215. package/src/assets/icons/detailed/hourglass.svg +12 -1
  216. package/src/assets/icons/detailed/image.svg +15 -1
  217. package/src/assets/icons/detailed/info-badge.svg +9 -1
  218. package/src/assets/icons/detailed/information.svg +12 -1
  219. package/src/assets/icons/detailed/italic.svg +10 -1
  220. package/src/assets/icons/detailed/key.svg +5 -1
  221. package/src/assets/icons/detailed/language.svg +14 -1
  222. package/src/assets/icons/detailed/learning-path.svg +7 -1
  223. package/src/assets/icons/detailed/light-off.svg +10 -1
  224. package/src/assets/icons/detailed/light-on.svg +18 -1
  225. package/src/assets/icons/detailed/link.svg +12 -1
  226. package/src/assets/icons/detailed/lock.svg +13 -1
  227. package/src/assets/icons/detailed/login.svg +11 -1
  228. package/src/assets/icons/detailed/logout.svg +11 -1
  229. package/src/assets/icons/detailed/maximaze.svg +12 -1
  230. package/src/assets/icons/detailed/menu.svg +9 -1
  231. package/src/assets/icons/detailed/merge.svg +20 -1
  232. package/src/assets/icons/detailed/minimize.svg +14 -1
  233. package/src/assets/icons/detailed/mixed-class.svg +40 -1
  234. package/src/assets/icons/detailed/more-horizontal.svg +7 -1
  235. package/src/assets/icons/detailed/more-vertical.svg +7 -1
  236. package/src/assets/icons/detailed/news.svg +12 -1
  237. package/src/assets/icons/detailed/no-prerequisites.svg +13 -1
  238. package/src/assets/icons/detailed/notes.svg +14 -1
  239. package/src/assets/icons/detailed/number-code.svg +34 -1
  240. package/src/assets/icons/detailed/numbered-list.svg +18 -1
  241. package/src/assets/icons/detailed/on-site.svg +22 -1
  242. package/src/assets/icons/detailed/order-down.svg +12 -1
  243. package/src/assets/icons/detailed/order-up.svg +12 -1
  244. package/src/assets/icons/detailed/paste.svg +14 -1
  245. package/src/assets/icons/detailed/pausa.svg +8 -1
  246. package/src/assets/icons/detailed/pdf.svg +12 -1
  247. package/src/assets/icons/detailed/phone.svg +10 -1
  248. package/src/assets/icons/detailed/pin-map.svg +12 -1
  249. package/src/assets/icons/detailed/pin.svg +15 -1
  250. package/src/assets/icons/detailed/pizza.svg +17 -1
  251. package/src/assets/icons/detailed/play.svg +11 -1
  252. package/src/assets/icons/detailed/plug-in.svg +10 -1
  253. package/src/assets/icons/detailed/pointer.svg +12 -1
  254. package/src/assets/icons/detailed/printer.svg +26 -1
  255. package/src/assets/icons/detailed/profile-add.svg +20 -1
  256. package/src/assets/icons/detailed/profile.svg +10 -1
  257. package/src/assets/icons/detailed/push-pin-off.svg +11 -1
  258. package/src/assets/icons/detailed/push-pin-on.svg +9 -1
  259. package/src/assets/icons/detailed/qrcode.svg +28 -1
  260. package/src/assets/icons/detailed/question-badge.svg +10 -1
  261. package/src/assets/icons/detailed/radio.svg +8 -1
  262. package/src/assets/icons/detailed/redo.svg +9 -1
  263. package/src/assets/icons/detailed/relations.svg +32 -1
  264. package/src/assets/icons/detailed/reload.svg +13 -1
  265. package/src/assets/icons/detailed/remove-circle.svg +10 -1
  266. package/src/assets/icons/detailed/remove.svg +5 -1
  267. package/src/assets/icons/detailed/reorder.svg +12 -1
  268. package/src/assets/icons/detailed/repeat.svg +12 -1
  269. package/src/assets/icons/detailed/repository.svg +18 -1
  270. package/src/assets/icons/detailed/request-form.svg +18 -1
  271. package/src/assets/icons/detailed/resize-100%.svg +15 -1
  272. package/src/assets/icons/detailed/resize-height.svg +12 -1
  273. package/src/assets/icons/detailed/resize-width.svg +12 -1
  274. package/src/assets/icons/detailed/search.svg +12 -1
  275. package/src/assets/icons/detailed/sequential-prerequisites.svg +20 -1
  276. package/src/assets/icons/detailed/settings.svg +14 -1
  277. package/src/assets/icons/detailed/share.svg +20 -1
  278. package/src/assets/icons/detailed/sketch.svg +12 -1
  279. package/src/assets/icons/detailed/skills.svg +20 -1
  280. package/src/assets/icons/detailed/skip-back.svg +12 -1
  281. package/src/assets/icons/detailed/skip-forward.svg +13 -1
  282. package/src/assets/icons/detailed/sms.svg +18 -1
  283. package/src/assets/icons/detailed/sso-access.svg +18 -1
  284. package/src/assets/icons/detailed/star-active.svg +6 -1
  285. package/src/assets/icons/detailed/star.svg +6 -1
  286. package/src/assets/icons/detailed/success.svg +10 -1
  287. package/src/assets/icons/detailed/sun.svg +24 -1
  288. package/src/assets/icons/detailed/sunrise.svg +18 -1
  289. package/src/assets/icons/detailed/support.svg +18 -1
  290. package/src/assets/icons/detailed/survey.svg +24 -1
  291. package/src/assets/icons/detailed/table.svg +11 -1
  292. package/src/assets/icons/detailed/tematic-channels.svg +12 -1
  293. package/src/assets/icons/detailed/test.svg +14 -1
  294. package/src/assets/icons/detailed/text-body.svg +8 -1
  295. package/src/assets/icons/detailed/text-edit.svg +11 -1
  296. package/src/assets/icons/detailed/text-style.svg +10 -1
  297. package/src/assets/icons/detailed/time.svg +10 -1
  298. package/src/assets/icons/detailed/toilet-piper.svg +15 -1
  299. package/src/assets/icons/detailed/training-points.svg +16 -1
  300. package/src/assets/icons/detailed/trash.svg +19 -1
  301. package/src/assets/icons/detailed/underline.svg +8 -1
  302. package/src/assets/icons/detailed/undo.svg +9 -1
  303. package/src/assets/icons/detailed/unlock.svg +13 -1
  304. package/src/assets/icons/detailed/upload.svg +10 -1
  305. package/src/assets/icons/detailed/user-add.svg +16 -1
  306. package/src/assets/icons/detailed/user-badge.svg +11 -1
  307. package/src/assets/icons/detailed/user.svg +8 -1
  308. package/src/assets/icons/detailed/video-off.svg +17 -1
  309. package/src/assets/icons/detailed/video-on.svg +16 -1
  310. package/src/assets/icons/detailed/video-rec.svg +19 -1
  311. package/src/assets/icons/detailed/view-card.svg +12 -1
  312. package/src/assets/icons/detailed/view-list.svg +20 -1
  313. package/src/assets/icons/detailed/view.svg +7 -1
  314. package/src/assets/icons/detailed/voice-off.svg +14 -1
  315. package/src/assets/icons/detailed/voice-on.svg +16 -1
  316. package/src/assets/icons/detailed/volume-down.svg +14 -1
  317. package/src/assets/icons/detailed/volume-off.svg +19 -1
  318. package/src/assets/icons/detailed/volume-up.svg +16 -1
  319. package/src/assets/icons/detailed/warning.svg +16 -1
  320. package/src/assets/icons/detailed/webinar.svg +57 -1
  321. package/src/assets/icons/detailed/whiteboard.svg +16 -1
  322. package/src/assets/icons/detailed/wine.svg +22 -1
  323. package/src/assets/icons/detailed/zip.svg +17 -1
  324. package/src/assets/icons/detailed/zoom-in.svg +18 -1
  325. package/src/assets/icons/detailed/zoom-out.svg +16 -1
  326. package/src/assets/icons/detailed.json +1 -1
  327. package/src/assets/icons/normal/add-circle.svg +12 -1
  328. package/src/assets/icons/normal/add.svg +4 -1
  329. package/src/assets/icons/normal/align-center.svg +11 -1
  330. package/src/assets/icons/normal/align-justify.svg +11 -1
  331. package/src/assets/icons/normal/align-left.svg +11 -1
  332. package/src/assets/icons/normal/align-right.svg +11 -1
  333. package/src/assets/icons/normal/analysis-2.svg +18 -1
  334. package/src/assets/icons/normal/analysis-3.svg +8 -1
  335. package/src/assets/icons/normal/analysis.svg +14 -1
  336. package/src/assets/icons/normal/apple.svg +16 -1
  337. package/src/assets/icons/normal/arrow-down.svg +8 -1
  338. package/src/assets/icons/normal/arrow-left.svg +8 -1
  339. package/src/assets/icons/normal/arrow-right.svg +8 -1
  340. package/src/assets/icons/normal/arrow-up.svg +8 -1
  341. package/src/assets/icons/normal/attachment.svg +6 -1
  342. package/src/assets/icons/normal/back-to-front.svg +15 -1
  343. package/src/assets/icons/normal/bell-active.svg +14 -1
  344. package/src/assets/icons/normal/bell.svg +14 -1
  345. package/src/assets/icons/normal/bold.svg +8 -1
  346. package/src/assets/icons/normal/bookmark active.svg +12 -1
  347. package/src/assets/icons/normal/bookmark.svg +10 -1
  348. package/src/assets/icons/normal/building.svg +21 -1
  349. package/src/assets/icons/normal/bulleted-list.svg +23 -1
  350. package/src/assets/icons/normal/calendar.svg +20 -1
  351. package/src/assets/icons/normal/camera-off.svg +17 -1
  352. package/src/assets/icons/normal/camera-on.svg +16 -1
  353. package/src/assets/icons/normal/catalog.svg +13 -1
  354. package/src/assets/icons/normal/certificate.svg +12 -1
  355. package/src/assets/icons/normal/chat.svg +6 -1
  356. package/src/assets/icons/normal/check-badge.svg +9 -1
  357. package/src/assets/icons/normal/check-circle.svg +10 -1
  358. package/src/assets/icons/normal/check.svg +4 -1
  359. package/src/assets/icons/normal/checkbox.svg +8 -1
  360. package/src/assets/icons/normal/chevron-down-circle.svg +10 -1
  361. package/src/assets/icons/normal/chevron-down.svg +6 -1
  362. package/src/assets/icons/normal/chevron-left-circle.svg +10 -1
  363. package/src/assets/icons/normal/chevron-left.svg +6 -1
  364. package/src/assets/icons/normal/chevron-right-circle.svg +10 -1
  365. package/src/assets/icons/normal/chevron-right.svg +7 -1
  366. package/src/assets/icons/normal/chevron-up-circle.svg +10 -1
  367. package/src/assets/icons/normal/chevron-up.svg +6 -1
  368. package/src/assets/icons/normal/circle.svg +8 -0
  369. package/src/assets/icons/normal/classroom.svg +36 -1
  370. package/src/assets/icons/normal/clear-field.svg +14 -1
  371. package/src/assets/icons/normal/clear-style.svg +18 -1
  372. package/src/assets/icons/normal/close-circle.svg +14 -1
  373. package/src/assets/icons/normal/close-loader.svg +6 -1
  374. package/src/assets/icons/normal/close.svg +8 -1
  375. package/src/assets/icons/normal/coffee.svg +26 -1
  376. package/src/assets/icons/normal/color.svg +18 -1
  377. package/src/assets/icons/normal/contact-us.svg +29 -1
  378. package/src/assets/icons/normal/copy.svg +10 -1
  379. package/src/assets/icons/normal/courses.svg +22 -1
  380. package/src/assets/icons/normal/dashboard.svg +18 -1
  381. package/src/assets/icons/normal/download.svg +10 -1
  382. package/src/assets/icons/normal/drag.svg +5 -1
  383. package/src/assets/icons/normal/dulicate.svg +22 -1
  384. package/src/assets/icons/normal/edit.svg +16 -1
  385. package/src/assets/icons/normal/elearning.svg +16 -1
  386. package/src/assets/icons/normal/email.svg +11 -1
  387. package/src/assets/icons/normal/error-2.svg +8 -1
  388. package/src/assets/icons/normal/error.svg +12 -1
  389. package/src/assets/icons/normal/exercise.svg +26 -1
  390. package/src/assets/icons/normal/external-link.svg +11 -1
  391. package/src/assets/icons/normal/extract.svg +14 -1
  392. package/src/assets/icons/normal/eye-off.svg +14 -1
  393. package/src/assets/icons/normal/eye-on.svg +16 -1
  394. package/src/assets/icons/normal/fail.svg +11 -1
  395. package/src/assets/icons/normal/fast-back.svg +19 -1
  396. package/src/assets/icons/normal/fast-forward.svg +17 -1
  397. package/src/assets/icons/normal/file-add.svg +16 -1
  398. package/src/assets/icons/normal/file-duplicate.svg +22 -1
  399. package/src/assets/icons/normal/file-remove.svg +14 -1
  400. package/src/assets/icons/normal/file-required.svg +24 -1
  401. package/src/assets/icons/normal/file.svg +13 -1
  402. package/src/assets/icons/normal/filter-2.svg +20 -1
  403. package/src/assets/icons/normal/filter-active.svg +12 -1
  404. package/src/assets/icons/normal/filter.svg +12 -1
  405. package/src/assets/icons/normal/flag.svg +10 -1
  406. package/src/assets/icons/normal/folder.svg +12 -1
  407. package/src/assets/icons/normal/full-width.svg +9 -1
  408. package/src/assets/icons/normal/go-to-back.svg +19 -1
  409. package/src/assets/icons/normal/grid.svg +20 -1
  410. package/src/assets/icons/normal/group-add.svg +18 -1
  411. package/src/assets/icons/normal/group.svg +14 -1
  412. package/src/assets/icons/normal/heart-active.svg +10 -1
  413. package/src/assets/icons/normal/heart.svg +10 -1
  414. package/src/assets/icons/normal/highlighter.svg +11 -1
  415. package/src/assets/icons/normal/home.svg +12 -1
  416. package/src/assets/icons/normal/hourglass.svg +8 -1
  417. package/src/assets/icons/normal/image.svg +15 -1
  418. package/src/assets/icons/normal/info-badge.svg +9 -1
  419. package/src/assets/icons/normal/information.svg +12 -1
  420. package/src/assets/icons/normal/italic.svg +10 -1
  421. package/src/assets/icons/normal/key.svg +8 -1
  422. package/src/assets/icons/normal/language.svg +14 -1
  423. package/src/assets/icons/normal/learning-path.svg +7 -1
  424. package/src/assets/icons/normal/light-off.svg +10 -1
  425. package/src/assets/icons/normal/light-on.svg +17 -1
  426. package/src/assets/icons/normal/link.svg +12 -1
  427. package/src/assets/icons/normal/lock.svg +12 -1
  428. package/src/assets/icons/normal/login.svg +10 -1
  429. package/src/assets/icons/normal/logout.svg +10 -1
  430. package/src/assets/icons/normal/maximize.svg +10 -1
  431. package/src/assets/icons/normal/menu.svg +8 -1
  432. package/src/assets/icons/normal/merge.svg +20 -1
  433. package/src/assets/icons/normal/minimize.svg +12 -1
  434. package/src/assets/icons/normal/mixed-class.svg +36 -1
  435. package/src/assets/icons/normal/more-horizontal.svg +7 -1
  436. package/src/assets/icons/normal/more-vertical.svg +7 -1
  437. package/src/assets/icons/normal/news.svg +9 -1
  438. package/src/assets/icons/normal/no-prerequisites.svg +12 -1
  439. package/src/assets/icons/normal/notes.svg +15 -1
  440. package/src/assets/icons/normal/number-code.svg +34 -1
  441. package/src/assets/icons/normal/numbered-list.svg +19 -1
  442. package/src/assets/icons/normal/on-site.svg +18 -1
  443. package/src/assets/icons/normal/order-down.svg +12 -1
  444. package/src/assets/icons/normal/order-up.svg +11 -1
  445. package/src/assets/icons/normal/paste.svg +14 -1
  446. package/src/assets/icons/normal/pausa.svg +7 -1
  447. package/src/assets/icons/normal/pdf.svg +12 -1
  448. package/src/assets/icons/normal/phone.svg +10 -1
  449. package/src/assets/icons/normal/pin-map.svg +10 -1
  450. package/src/assets/icons/normal/pin.svg +12 -1
  451. package/src/assets/icons/normal/pizza.svg +17 -1
  452. package/src/assets/icons/normal/play.svg +9 -1
  453. package/src/assets/icons/normal/plug-in.svg +10 -1
  454. package/src/assets/icons/normal/pointer.svg +12 -1
  455. package/src/assets/icons/normal/printer.svg +28 -1
  456. package/src/assets/icons/normal/profile-add.svg +28 -1
  457. package/src/assets/icons/normal/profile.svg +15 -1
  458. package/src/assets/icons/normal/push pin on.svg +9 -1
  459. package/src/assets/icons/normal/push-pin-off.svg +23 -1
  460. package/src/assets/icons/normal/qrcode.svg +26 -1
  461. package/src/assets/icons/normal/question-badge.svg +10 -1
  462. package/src/assets/icons/normal/radio.svg +8 -1
  463. package/src/assets/icons/normal/redo.svg +9 -1
  464. package/src/assets/icons/normal/relations.svg +28 -1
  465. package/src/assets/icons/normal/reload.svg +12 -1
  466. package/src/assets/icons/normal/remove-circle.svg +10 -1
  467. package/src/assets/icons/normal/remove.svg +4 -1
  468. package/src/assets/icons/normal/reorder.svg +12 -1
  469. package/src/assets/icons/normal/repeat.svg +12 -1
  470. package/src/assets/icons/normal/repository.svg +18 -1
  471. package/src/assets/icons/normal/request-form.svg +18 -1
  472. package/src/assets/icons/normal/resize-100%.svg +17 -1
  473. package/src/assets/icons/normal/resize-height.svg +12 -1
  474. package/src/assets/icons/normal/resize-width.svg +12 -1
  475. package/src/assets/icons/normal/search.svg +10 -1
  476. package/src/assets/icons/normal/sequential-prerequisites.svg +20 -1
  477. package/src/assets/icons/normal/settings.svg +14 -1
  478. package/src/assets/icons/normal/share.svg +20 -1
  479. package/src/assets/icons/normal/sketch.svg +11 -1
  480. package/src/assets/icons/normal/skills.svg +16 -1
  481. package/src/assets/icons/normal/skip-back.svg +12 -1
  482. package/src/assets/icons/normal/skip-forward.svg +13 -1
  483. package/src/assets/icons/normal/sms.svg +20 -1
  484. package/src/assets/icons/normal/sso-access.svg +20 -1
  485. package/src/assets/icons/normal/star-active.svg +4 -1
  486. package/src/assets/icons/normal/star.svg +4 -1
  487. package/src/assets/icons/normal/success.svg +10 -1
  488. package/src/assets/icons/normal/sun.svg +24 -1
  489. package/src/assets/icons/normal/sunrise.svg +18 -1
  490. package/src/assets/icons/normal/support.svg +18 -1
  491. package/src/assets/icons/normal/survey.svg +24 -1
  492. package/src/assets/icons/normal/table.svg +11 -1
  493. package/src/assets/icons/normal/tematic-channels.svg +10 -1
  494. package/src/assets/icons/normal/test.svg +15 -1
  495. package/src/assets/icons/normal/text-body.svg +8 -1
  496. package/src/assets/icons/normal/text-edit.svg +11 -1
  497. package/src/assets/icons/normal/text-style.svg +10 -1
  498. package/src/assets/icons/normal/time.svg +10 -1
  499. package/src/assets/icons/normal/toilet-paper.svg +15 -1
  500. package/src/assets/icons/normal/training-points.svg +16 -1
  501. package/src/assets/icons/normal/trash.svg +19 -1
  502. package/src/assets/icons/normal/underline.svg +8 -1
  503. package/src/assets/icons/normal/undo.svg +9 -1
  504. package/src/assets/icons/normal/unlock.svg +13 -1
  505. package/src/assets/icons/normal/upload.svg +10 -1
  506. package/src/assets/icons/normal/user-add.svg +14 -1
  507. package/src/assets/icons/normal/user-badge.svg +11 -1
  508. package/src/assets/icons/normal/user.svg +5 -1
  509. package/src/assets/icons/normal/video-off.svg +11 -1
  510. package/src/assets/icons/normal/video-on.svg +20 -1
  511. package/src/assets/icons/normal/video-rec.svg +23 -1
  512. package/src/assets/icons/normal/view-card.svg +10 -1
  513. package/src/assets/icons/normal/view-list.svg +18 -1
  514. package/src/assets/icons/normal/view.svg +8 -1
  515. package/src/assets/icons/normal/voice-off.svg +18 -1
  516. package/src/assets/icons/normal/voice-on.svg +15 -1
  517. package/src/assets/icons/normal/volume-down.svg +14 -1
  518. package/src/assets/icons/normal/volume-off.svg +18 -1
  519. package/src/assets/icons/normal/volume-up.svg +16 -1
  520. package/src/assets/icons/normal/warning.svg +16 -1
  521. package/src/assets/icons/normal/webinar.svg +36 -1
  522. package/src/assets/icons/normal/whiteboard.svg +17 -1
  523. package/src/assets/icons/normal/wine.svg +22 -1
  524. package/src/assets/icons/normal/zip.svg +19 -1
  525. package/src/assets/icons/normal/zoom-in.svg +16 -1
  526. package/src/assets/icons/normal/zoom-out.svg +14 -1
  527. package/src/assets/icons/normal.json +1 -1
  528. package/src/assets/icons/simple/add-circle.svg +12 -1
  529. package/src/assets/icons/simple/add.svg +8 -1
  530. package/src/assets/icons/simple/align-center.svg +12 -1
  531. package/src/assets/icons/simple/align-justify.svg +12 -1
  532. package/src/assets/icons/simple/align-left.svg +12 -1
  533. package/src/assets/icons/simple/align-right.svg +12 -1
  534. package/src/assets/icons/simple/analysis-2.svg +21 -1
  535. package/src/assets/icons/simple/analysis-3.svg +8 -1
  536. package/src/assets/icons/simple/analysis.svg +16 -1
  537. package/src/assets/icons/simple/apple.svg +18 -1
  538. package/src/assets/icons/simple/arrow-down.svg +8 -1
  539. package/src/assets/icons/simple/arrow-left.svg +8 -1
  540. package/src/assets/icons/simple/arrow-right.svg +8 -1
  541. package/src/assets/icons/simple/arrow-up.svg +8 -1
  542. package/src/assets/icons/simple/attachment.svg +10 -1
  543. package/src/assets/icons/simple/bck-to-front.svg +19 -1
  544. package/src/assets/icons/simple/bell-active.svg +14 -1
  545. package/src/assets/icons/simple/bell.svg +14 -1
  546. package/src/assets/icons/simple/bold.svg +8 -1
  547. package/src/assets/icons/simple/bookmark-active.svg +12 -1
  548. package/src/assets/icons/simple/bookmark.svg +12 -1
  549. package/src/assets/icons/simple/building.svg +25 -1
  550. package/src/assets/icons/simple/bulleted-list.svg +22 -1
  551. package/src/assets/icons/simple/calendar.svg +22 -1
  552. package/src/assets/icons/simple/camera-off.svg +12 -1
  553. package/src/assets/icons/simple/camera-on.svg +16 -1
  554. package/src/assets/icons/simple/catalog.svg +14 -1
  555. package/src/assets/icons/simple/certificate.svg +15 -1
  556. package/src/assets/icons/simple/chat.svg +9 -1
  557. package/src/assets/icons/simple/check-badge.svg +9 -1
  558. package/src/assets/icons/simple/check-circle.svg +10 -1
  559. package/src/assets/icons/simple/check.svg +6 -1
  560. package/src/assets/icons/simple/checkbox.svg +6 -1
  561. package/src/assets/icons/simple/chevron-down-circle.svg +10 -1
  562. package/src/assets/icons/simple/chevron-down.svg +6 -1
  563. package/src/assets/icons/simple/chevron-left-circle.svg +10 -1
  564. package/src/assets/icons/simple/chevron-left.svg +6 -1
  565. package/src/assets/icons/simple/chevron-right-circle.svg +10 -1
  566. package/src/assets/icons/simple/chevron-right.svg +7 -1
  567. package/src/assets/icons/simple/chevron-up-circle.svg +10 -1
  568. package/src/assets/icons/simple/chevron-up.svg +6 -1
  569. package/src/assets/icons/simple/circle.svg +8 -0
  570. package/src/assets/icons/simple/classroom.svg +38 -1
  571. package/src/assets/icons/simple/clear-field.svg +11 -1
  572. package/src/assets/icons/simple/clear-style.svg +15 -1
  573. package/src/assets/icons/simple/close-circle.svg +14 -1
  574. package/src/assets/icons/simple/close-loader.svg +6 -1
  575. package/src/assets/icons/simple/close.svg +10 -1
  576. package/src/assets/icons/simple/coffee.svg +28 -1
  577. package/src/assets/icons/simple/color.svg +20 -1
  578. package/src/assets/icons/simple/contact-us.svg +26 -1
  579. package/src/assets/icons/simple/copy.svg +10 -1
  580. package/src/assets/icons/simple/courses.svg +21 -1
  581. package/src/assets/icons/simple/dashboard.svg +20 -1
  582. package/src/assets/icons/simple/download.svg +10 -1
  583. package/src/assets/icons/simple/drag.svg +10 -1
  584. package/src/assets/icons/simple/duplicate.svg +24 -1
  585. package/src/assets/icons/simple/edit.svg +17 -1
  586. package/src/assets/icons/simple/elearning.svg +17 -1
  587. package/src/assets/icons/simple/email.svg +11 -1
  588. package/src/assets/icons/simple/error-2.svg +8 -1
  589. package/src/assets/icons/simple/error.svg +12 -1
  590. package/src/assets/icons/simple/exercise.svg +30 -1
  591. package/src/assets/icons/simple/external-link.svg +13 -1
  592. package/src/assets/icons/simple/extract.svg +17 -1
  593. package/src/assets/icons/simple/eye-off.svg +13 -1
  594. package/src/assets/icons/simple/eye-on.svg +11 -1
  595. package/src/assets/icons/simple/fail.svg +11 -1
  596. package/src/assets/icons/simple/fast-back.svg +20 -1
  597. package/src/assets/icons/simple/fast-forward.svg +19 -1
  598. package/src/assets/icons/simple/file-add.svg +20 -1
  599. package/src/assets/icons/simple/file-duplicate.svg +22 -1
  600. package/src/assets/icons/simple/file-remove.svg +18 -1
  601. package/src/assets/icons/simple/file-required.svg +24 -1
  602. package/src/assets/icons/simple/file.svg +14 -1
  603. package/src/assets/icons/simple/filter-2.svg +24 -1
  604. package/src/assets/icons/simple/filter-active.svg +13 -1
  605. package/src/assets/icons/simple/filter.svg +12 -1
  606. package/src/assets/icons/simple/flag.svg +12 -1
  607. package/src/assets/icons/simple/folder.svg +14 -1
  608. package/src/assets/icons/simple/full-width.svg +11 -1
  609. package/src/assets/icons/simple/go-to-back.svg +18 -1
  610. package/src/assets/icons/simple/grid.svg +20 -1
  611. package/src/assets/icons/simple/group-add.svg +24 -1
  612. package/src/assets/icons/simple/group.svg +18 -1
  613. package/src/assets/icons/simple/heart-active.svg +12 -1
  614. package/src/assets/icons/simple/heart.svg +12 -1
  615. package/src/assets/icons/simple/highlighter.svg +12 -1
  616. package/src/assets/icons/simple/home.svg +13 -1
  617. package/src/assets/icons/simple/hourglass.svg +11 -1
  618. package/src/assets/icons/simple/image.svg +15 -1
  619. package/src/assets/icons/simple/info-badge.svg +9 -1
  620. package/src/assets/icons/simple/information.svg +12 -1
  621. package/src/assets/icons/simple/italic.svg +12 -1
  622. package/src/assets/icons/simple/key.svg +11 -1
  623. package/src/assets/icons/simple/language.svg +12 -1
  624. package/src/assets/icons/simple/learning-path.svg +9 -1
  625. package/src/assets/icons/simple/light-off.svg +7 -1
  626. package/src/assets/icons/simple/light-on.svg +18 -1
  627. package/src/assets/icons/simple/link.svg +14 -1
  628. package/src/assets/icons/simple/lock.svg +13 -1
  629. package/src/assets/icons/simple/login.svg +11 -1
  630. package/src/assets/icons/simple/logout.svg +11 -1
  631. package/src/assets/icons/simple/maximaze.svg +12 -1
  632. package/src/assets/icons/simple/menu.svg +10 -1
  633. package/src/assets/icons/simple/merge.svg +20 -1
  634. package/src/assets/icons/simple/minimaze.svg +12 -1
  635. package/src/assets/icons/simple/mixed-class.svg +40 -1
  636. package/src/assets/icons/simple/more-horizontal.svg +8 -1
  637. package/src/assets/icons/simple/more-vertical.svg +8 -1
  638. package/src/assets/icons/simple/news.svg +12 -1
  639. package/src/assets/icons/simple/no-prerequisites.svg +17 -1
  640. package/src/assets/icons/simple/notes.svg +14 -1
  641. package/src/assets/icons/simple/number-code.svg +29 -1
  642. package/src/assets/icons/simple/numbered-list.svg +18 -1
  643. package/src/assets/icons/simple/on-site.svg +18 -1
  644. package/src/assets/icons/simple/order-down.svg +12 -1
  645. package/src/assets/icons/simple/order-up.svg +12 -1
  646. package/src/assets/icons/simple/paste.svg +14 -1
  647. package/src/assets/icons/simple/pausa.svg +8 -1
  648. package/src/assets/icons/simple/pdf.svg +12 -1
  649. package/src/assets/icons/simple/phone.svg +10 -1
  650. package/src/assets/icons/simple/pin-map.svg +13 -1
  651. package/src/assets/icons/simple/pin.svg +14 -1
  652. package/src/assets/icons/simple/pizza.svg +17 -1
  653. package/src/assets/icons/simple/play.svg +10 -1
  654. package/src/assets/icons/simple/plug-in.svg +10 -1
  655. package/src/assets/icons/simple/pointer.svg +6 -1
  656. package/src/assets/icons/simple/printer.svg +28 -1
  657. package/src/assets/icons/simple/profile-add.svg +28 -1
  658. package/src/assets/icons/simple/profile.svg +13 -1
  659. package/src/assets/icons/simple/push-pin-off.svg +11 -1
  660. package/src/assets/icons/simple/push-pin-on.svg +12 -1
  661. package/src/assets/icons/simple/qrcode.svg +26 -1
  662. package/src/assets/icons/simple/question-badge.svg +10 -1
  663. package/src/assets/icons/simple/radio.svg +8 -1
  664. package/src/assets/icons/simple/redo.svg +9 -1
  665. package/src/assets/icons/simple/relations.svg +28 -1
  666. package/src/assets/icons/simple/reload.svg +12 -1
  667. package/src/assets/icons/simple/remove-circle.svg +10 -1
  668. package/src/assets/icons/simple/remove.svg +6 -1
  669. package/src/assets/icons/simple/repeart.svg +14 -1
  670. package/src/assets/icons/simple/repository.svg +18 -1
  671. package/src/assets/icons/simple/request-form.svg +20 -1
  672. package/src/assets/icons/simple/resize-100%.svg +15 -1
  673. package/src/assets/icons/simple/resize-height.svg +12 -1
  674. package/src/assets/icons/simple/resize-width.svg +14 -1
  675. package/src/assets/icons/simple/search.svg +10 -1
  676. package/src/assets/icons/simple/sequential-prerequisites.svg +22 -1
  677. package/src/assets/icons/simple/settings.svg +17 -1
  678. package/src/assets/icons/simple/share.svg +21 -1
  679. package/src/assets/icons/simple/sketch.svg +13 -1
  680. package/src/assets/icons/simple/skills.svg +17 -1
  681. package/src/assets/icons/simple/skip-back.svg +14 -1
  682. package/src/assets/icons/simple/skip-forward.svg +14 -1
  683. package/src/assets/icons/simple/sms.svg +22 -1
  684. package/src/assets/icons/simple/sso-access.svg +20 -1
  685. package/src/assets/icons/simple/star-active.svg +6 -1
  686. package/src/assets/icons/simple/star.svg +6 -1
  687. package/src/assets/icons/simple/success.svg +12 -1
  688. package/src/assets/icons/simple/sun.svg +22 -1
  689. package/src/assets/icons/simple/sunrise.svg +18 -1
  690. package/src/assets/icons/simple/support.svg +18 -1
  691. package/src/assets/icons/simple/survey.svg +32 -1
  692. package/src/assets/icons/simple/table.svg +11 -1
  693. package/src/assets/icons/simple/tematic-channels.svg +15 -1
  694. package/src/assets/icons/simple/test.svg +23 -1
  695. package/src/assets/icons/simple/text-body.svg +7 -1
  696. package/src/assets/icons/simple/text-edit.svg +11 -1
  697. package/src/assets/icons/simple/text-style.svg +10 -1
  698. package/src/assets/icons/simple/time.svg +10 -1
  699. package/src/assets/icons/simple/toilet-paper.svg +17 -1
  700. package/src/assets/icons/simple/training-points.svg +18 -1
  701. package/src/assets/icons/simple/trash.svg +20 -1
  702. package/src/assets/icons/simple/underline.svg +9 -1
  703. package/src/assets/icons/simple/undo.svg +9 -1
  704. package/src/assets/icons/simple/unlock.svg +15 -1
  705. package/src/assets/icons/simple/upload.svg +10 -1
  706. package/src/assets/icons/simple/user-add.svg +18 -1
  707. package/src/assets/icons/simple/user-badge.svg +12 -1
  708. package/src/assets/icons/simple/user.svg +8 -1
  709. package/src/assets/icons/simple/video-off.svg +17 -1
  710. package/src/assets/icons/simple/video-on.svg +17 -1
  711. package/src/assets/icons/simple/video-rec.svg +20 -1
  712. package/src/assets/icons/simple/view-card.svg +12 -1
  713. package/src/assets/icons/simple/view-list.svg +20 -1
  714. package/src/assets/icons/simple/view.svg +17 -1
  715. package/src/assets/icons/simple/voice-off.svg +16 -1
  716. package/src/assets/icons/simple/voice-on.svg +16 -1
  717. package/src/assets/icons/simple/volume-down.svg +15 -1
  718. package/src/assets/icons/simple/volume-off.svg +16 -1
  719. package/src/assets/icons/simple/volume-up.svg +16 -1
  720. package/src/assets/icons/simple/warning.svg +14 -1
  721. package/src/assets/icons/simple/webinar.svg +19 -1
  722. package/src/assets/icons/simple/whiteboard.svg +16 -1
  723. package/src/assets/icons/simple/wine.svg +24 -1
  724. package/src/assets/icons/simple/zip.svg +22 -1
  725. package/src/assets/icons/simple/zoom-in.svg +18 -1
  726. package/src/assets/icons/simple/zoom-out.svg +17 -1
  727. package/src/assets/icons/simple.json +1 -1
  728. package/src/components/VvAccordion/VvAccordion.vue +16 -9
  729. package/src/components/VvAccordion/index.ts +5 -3
  730. package/src/components/VvAccordionGroup/VvAccordionGroup.vue +16 -11
  731. package/src/components/VvAction/VvAction.vue +144 -0
  732. package/src/components/VvAction/index.ts +5 -0
  733. package/src/components/VvBadge/VvBadge.vue +3 -3
  734. package/src/components/VvBreadcrumb/VvBreadcrumb.vue +5 -5
  735. package/src/components/VvButton/VvButton.vue +53 -100
  736. package/src/components/VvButton/index.ts +21 -94
  737. package/src/components/VvButtonGroup/VvButtonGroup.vue +7 -10
  738. package/src/components/VvCard/VvCard.vue +6 -3
  739. package/src/components/VvCheckbox/VvCheckbox.vue +17 -12
  740. package/src/components/VvCheckbox/index.ts +7 -5
  741. package/src/components/VvCheckboxGroup/VvCheckboxGroup.vue +21 -19
  742. package/src/components/VvCombobox/VvCombobox.vue +330 -101
  743. package/src/components/VvCombobox/index.ts +63 -7
  744. package/src/components/VvDialog/VvDialog.vue +14 -6
  745. package/src/components/VvDialog/index.ts +18 -1
  746. package/src/components/VvDropdown/VvDropdown.vue +344 -95
  747. package/src/components/VvDropdown/VvDropdownAction.vue +44 -0
  748. package/src/components/VvDropdown/VvDropdownItem.vue +32 -0
  749. package/src/components/VvDropdown/VvDropdownOption.vue +65 -0
  750. package/src/components/VvDropdown/index.ts +20 -23
  751. package/src/components/VvIcon/VvIcon.vue +16 -16
  752. package/src/components/VvInputText/VvInputText.vue +45 -34
  753. package/src/components/VvProgress/VvProgress.vue +7 -5
  754. package/src/components/VvRadio/VvRadio.vue +16 -14
  755. package/src/components/VvRadio/index.ts +6 -3
  756. package/src/components/VvRadioGroup/VvRadioGroup.vue +20 -16
  757. package/src/components/VvSelect/VvSelect.vue +69 -56
  758. package/src/components/VvSelect/index.ts +4 -6
  759. package/src/components/VvTextarea/VvTextarea.vue +46 -33
  760. package/src/components/VvTooltip/VvTooltip.vue +16 -10
  761. package/src/components/VvTooltip/index.ts +8 -11
  762. package/src/components/common/HintSlot.ts +5 -4
  763. package/src/composables/dropdown/useInjectDropdown.ts +51 -0
  764. package/src/composables/dropdown/useProvideDropdown.ts +95 -0
  765. package/src/composables/group/useInjectedGroupState.ts +7 -7
  766. package/src/composables/group/useProvideGroupState.ts +3 -3
  767. package/src/composables/useComponentIcon.ts +41 -0
  768. package/src/composables/useModifiers.ts +28 -91
  769. package/src/composables/useOptions.ts +11 -3
  770. package/src/composables/useUniqueId.ts +5 -0
  771. package/src/composables/useVolver.ts +6 -0
  772. package/src/constants.ts +74 -5
  773. package/src/directives/index.ts +5 -0
  774. package/src/directives/v-tooltip.ts +15 -0
  775. package/src/index.ts +1 -1
  776. package/src/props/index.ts +222 -26
  777. package/src/resolvers/unplugin.ts +83 -47
  778. package/src/shims.d.ts +1 -1
  779. package/src/stories/Accordion/Accordion.stories.mdx +9 -7
  780. package/src/stories/Accordion/Accordion.test.ts +1 -1
  781. package/src/stories/Accordion/AccordionSlots.stories.mdx +2 -2
  782. package/src/stories/AccordionGroup/AccordionGroup.stories.mdx +6 -4
  783. package/src/stories/AccordionGroup/AccordionGroupSlots.stories.mdx +12 -9
  784. package/src/stories/Badge/Badge.stories.mdx +4 -3
  785. package/src/stories/Breadcrumb/Breadcrumb.stories.mdx +6 -4
  786. package/src/stories/Breadcrumb/Breadcrumb.test.ts +14 -12
  787. package/src/stories/Breadcrumb/BreadcrumbSlots.stories.mdx +8 -8
  788. package/src/stories/Button/Button.stories.mdx +10 -8
  789. package/src/stories/Button/Button.test.ts +9 -7
  790. package/src/stories/Button/ButtonModifiers.stories.mdx +4 -4
  791. package/src/stories/Button/ButtonSlots.stories.mdx +20 -15
  792. package/src/stories/Button/ButtonState.stories.mdx +2 -11
  793. package/src/stories/ButtonGroup/ButtonGroup.stories.mdx +2 -2
  794. package/src/stories/ButtonGroup/ButtonGroupSlots.stories.mdx +2 -2
  795. package/src/stories/Card/Card.stories.mdx +4 -3
  796. package/src/stories/Card/Card.test.ts +1 -1
  797. package/src/stories/Card/CardSlots.stories.mdx +2 -2
  798. package/src/stories/Checkbox/Checkbox.stories.mdx +9 -8
  799. package/src/stories/CheckboxGroup/CheckboxGroup.stories.mdx +9 -8
  800. package/src/stories/CheckboxGroup/CheckboxGroupSlots.stories.mdx +11 -10
  801. package/src/stories/Combobox/Combobox.settings.ts +155 -4
  802. package/src/stories/Combobox/Combobox.stories.mdx +125 -5
  803. package/src/stories/Combobox/Combobox.test.ts +2 -2
  804. package/src/stories/Combobox/ComboboxIconPosition.stories.mdx +78 -0
  805. package/src/stories/Combobox/ComboboxMultiple.stories.mdx +1 -2
  806. package/src/stories/Combobox/ComboboxSlots.stories.mdx +107 -2
  807. package/src/stories/Dialog/Dialog.stories.mdx +4 -3
  808. package/src/stories/Dialog/Dialog.test.ts +4 -4
  809. package/src/stories/Dropdown/Dropdown.settings.ts +55 -36
  810. package/src/stories/Dropdown/Dropdown.stories.mdx +60 -59
  811. package/src/stories/Dropdown/Dropdown.test.ts +10 -32
  812. package/src/stories/Dropdown/DropdownMultilevel.stories.mdx +56 -0
  813. package/src/stories/Dropdown/DropdownSlots.stories.mdx +114 -0
  814. package/src/stories/Icon/Icon.stories.mdx +3 -2
  815. package/src/stories/Icon/IconsCollection.stories.mdx +4 -3
  816. package/src/stories/InputText/InputText.settings.ts +2 -1
  817. package/src/stories/InputText/InputText.stories.mdx +9 -5
  818. package/src/stories/InputText/InputTextIconPosition.stories.mdx +2 -2
  819. package/src/stories/InputText/InputTextSlots.stories.mdx +2 -2
  820. package/src/stories/Progress/Progress.stories.mdx +5 -2
  821. package/src/stories/Progress/Progress.test.ts +1 -1
  822. package/src/stories/Radio/Radio.stories.mdx +3 -2
  823. package/src/stories/RadioGroup/RadioGroup.stories.mdx +9 -8
  824. package/src/stories/RadioGroup/RadioGroupSlots.stories.mdx +11 -10
  825. package/src/stories/Select/Select.settings.ts +2 -2
  826. package/src/stories/Select/Select.stories.mdx +5 -4
  827. package/src/stories/Select/SelectIconPosition.stories.mdx +78 -0
  828. package/src/stories/Select/SelectSlots.stories.mdx +2 -2
  829. package/src/stories/Textarea/Textarea.settings.ts +2 -1
  830. package/src/stories/Textarea/Textarea.stories.mdx +6 -5
  831. package/src/stories/Textarea/TextareaSlots.stories.mdx +2 -2
  832. package/src/stories/Textarea/TextareatIconPosition.stories.mdx +2 -2
  833. package/src/stories/Tooltip/Tooltip.settings.ts +13 -13
  834. package/src/stories/Tooltip/Tooltip.stories.mdx +26 -22
  835. package/src/stories/Tooltip/Tooltip.test.ts +22 -13
  836. package/src/stories/Tooltip/TooltipDirective.stories.mdx +99 -0
  837. package/src/stories/argTypes.ts +153 -4
  838. package/src/types/floating-ui.d.ts +7 -0
  839. package/src/types/generic.d.ts +0 -1
  840. package/src/types/group.d.ts +37 -0
  841. package/src/utils/ObjectUtilities.ts +4 -1
  842. package/dist/composables/group/types/IAccordionGroupState.d.ts +0 -9
  843. package/dist/composables/group/types/IButtonGroupState.d.ts +0 -13
  844. package/dist/composables/group/types/IGroupState.d.ts +0 -8
  845. package/dist/composables/group/types/IInputGroup.d.ts +0 -8
  846. package/dist/composables/useComponentIcons.d.ts +0 -27
  847. package/src/composables/group/types/IAccordionGroupState.ts +0 -10
  848. package/src/composables/group/types/IButtonGroupState.ts +0 -14
  849. package/src/composables/group/types/IGroupState.ts +0 -10
  850. package/src/composables/group/types/IInputGroup.ts +0 -9
  851. package/src/composables/useComponentIcons.ts +0 -96
  852. package/src/directives/.gitkeep +0 -0
  853. package/src/stories/Dropdown/DropdownOptions.stories.mdx +0 -96
@@ -1,37 +1,61 @@
1
- import { defineComponent as se, unref as a, openBlock as y, createBlock as D, mergeProps as M, createCommentVNode as R, createElementBlock as W, normalizeClass as be, toDisplayString as ee, createElementVNode as te, renderSlot as F, normalizeProps as V, guardReactiveProps as j, withDirectives as ge, isRef as ye, vModelDynamic as we, createTextVNode as Ee, createVNode as Ie } from "vue";
2
- import { nanoid as Pe } from "nanoid";
3
- import { iconExists as x, Icon as Te, addIcon as Ae } from "@iconify/vue";
4
- function N(i) {
5
- return Array.isArray(i) ? i.filter((o) => isString(o)).join(" ") : i;
1
+ import { unref as s, toRefs as U, computed as l, h as y, inject as Re, defineComponent as L, ref as j, openBlock as g, createBlock as P, mergeProps as $, createCommentVNode as O, watch as ve, useSlots as xe, createElementBlock as H, normalizeClass as Le, toDisplayString as ue, createElementVNode as Y, renderSlot as J, normalizeProps as G, guardReactiveProps as Q, withDirectives as Ne, isRef as Ve, vModelDynamic as ke, createTextVNode as Me, createVNode as $e } from "vue";
2
+ import { toReactive as Ue, useFocus as je, useElementVisibility as We } from "@vueuse/core";
3
+ import { iconExists as k, Icon as Fe, addIcon as qe } from "@iconify/vue";
4
+ import { nanoid as ze } from "nanoid";
5
+ function ce(e, t) {
6
+ if (e && Object.keys(e).length && t) {
7
+ if (t.indexOf(".") === -1)
8
+ return e[t];
9
+ {
10
+ const n = t.split(".");
11
+ let a = e;
12
+ for (let o = 0, p = n.length; o < p; ++o) {
13
+ if (e == null)
14
+ return null;
15
+ a = a[n[o]];
16
+ }
17
+ return a;
18
+ }
19
+ } else
20
+ return null;
21
+ }
22
+ function R(e) {
23
+ return ((t) => t == null || t === "" || Array.isArray(t) && t.length === 0 || !(t instanceof Date) && typeof t == "object" && Object.keys(t).length === 0)(s(e));
24
+ }
25
+ function Ke(e) {
26
+ return typeof e == "string" || e instanceof String;
27
+ }
28
+ function M(e) {
29
+ return Array.isArray(e) ? e.filter((t) => Ke(t)).join(" ") : e;
6
30
  }
7
- function De(i, o) {
31
+ function Xe(e, t) {
8
32
  const {
9
- invalid: e,
10
- valid: c,
11
- hint: l,
12
- loading: m
13
- } = o, {
14
- hintLabel: u,
15
- modelValue: T,
16
- valid: g,
17
- validLabel: f,
18
33
  invalid: n,
19
- invalidLabel: s,
34
+ valid: a,
35
+ hint: o,
36
+ loading: p
37
+ } = t, {
38
+ hintLabel: d,
39
+ modelValue: A,
40
+ valid: w,
41
+ validLabel: m,
42
+ invalid: i,
43
+ invalidLabel: u,
20
44
  ...S
21
- } = toRefs(i), d = resolveFieldData(S, "loading"), v = resolveFieldData(S, "loadingLabel"), I = computed(() => n.value ? !!(n.value && e || s != null && s.value && Array.isArray(s.value) && s.value.length > 0 || s != null && s.value && !isEmpty(s)) : !1), b = computed(
22
- () => !!(u && u.value || l)
23
- ), P = computed(
24
- () => !!(f && f.value || c)
25
- ), _ = computed(
26
- () => !!(d != null && d.value && m || d != null && d.value && (v != null && v.value))
27
- ), C = computed(
28
- () => b.value || P.value || I.value || _.value
45
+ } = U(e), v = ce(S, "loading"), b = ce(S, "loadingLabel"), E = l(() => i.value ? !!(i.value && n || u != null && u.value && Array.isArray(u.value) && u.value.length > 0 || u != null && u.value && !R(u)) : !1), N = l(
46
+ () => !!(d && d.value || o)
47
+ ), h = l(
48
+ () => !!(m && m.value || a)
49
+ ), C = l(
50
+ () => !!(v != null && v.value && p || v != null && v.value && (b != null && b.value))
51
+ ), W = l(
52
+ () => N.value || h.value || E.value || C.value
29
53
  );
30
54
  return {
31
- hasInvalid: I,
32
- hasHint: b,
33
- hasValid: P,
34
- hasLoading: _,
55
+ hasInvalid: E,
56
+ hasHint: N,
57
+ hasValid: h,
58
+ hasLoading: C,
35
59
  HintSlot: {
36
60
  name: "HintSlot",
37
61
  props: {
@@ -40,34 +64,34 @@ function De(i, o) {
40
64
  default: () => ({})
41
65
  }
42
66
  },
43
- setup(H) {
44
- const O = computed(() => {
45
- const A = toReactive({
46
- hintLabel: u,
47
- modelValue: T,
48
- valid: g,
49
- validLabel: f,
50
- invalid: n,
51
- invalidLabel: s,
52
- loading: d,
53
- loadingLabel: v,
54
- ...H.params
67
+ setup(B) {
68
+ const V = l(() => {
69
+ const D = Ue({
70
+ hintLabel: d,
71
+ modelValue: A,
72
+ valid: w,
73
+ validLabel: m,
74
+ invalid: i,
75
+ invalidLabel: u,
76
+ loading: v,
77
+ loadingLabel: b,
78
+ ...B.params
55
79
  });
56
- return n != null && n.value ? (e == null ? void 0 : e(A)) || N(s == null ? void 0 : s.value) || (u == null ? void 0 : u.value) : g != null && g.value ? (c == null ? void 0 : c(A)) || N(f == null ? void 0 : f.value) || (u == null ? void 0 : u.value) : d != null && d.value ? (m == null ? void 0 : m(A)) || N(v == null ? void 0 : v.value) || (u == null ? void 0 : u.value) : (l == null ? void 0 : l(A)) || N(u == null ? void 0 : u.value) || (u == null ? void 0 : u.value);
80
+ return i != null && i.value ? (n == null ? void 0 : n(D)) || M(u == null ? void 0 : u.value) || (d == null ? void 0 : d.value) : w != null && w.value ? (a == null ? void 0 : a(D)) || M(m == null ? void 0 : m.value) || (d == null ? void 0 : d.value) : v != null && v.value ? (p == null ? void 0 : p(D)) || M(b == null ? void 0 : b.value) || (d == null ? void 0 : d.value) : (o == null ? void 0 : o(D)) || M(d == null ? void 0 : d.value) || (d == null ? void 0 : d.value);
57
81
  });
58
82
  return {
59
- isVisible: C,
60
- hasInvalid: I,
61
- hasValid: P,
62
- hintContent: O
83
+ isVisible: W,
84
+ hasInvalid: E,
85
+ hasValid: h,
86
+ hintContent: V
63
87
  };
64
88
  },
65
89
  render() {
66
90
  if (this.isVisible)
67
- return h(
91
+ return y(
68
92
  "small",
69
93
  {
70
- role: this.hasInvalid || this.hasValid ? "alert" : void 0
94
+ role: this.hasInvalid ? "alert" : this.hasValid ? "status" : void 0
71
95
  },
72
96
  this.hintContent
73
97
  );
@@ -75,157 +99,383 @@ function De(i, o) {
75
99
  }
76
100
  };
77
101
  }
78
- const Ce = "ds", Re = {
102
+ const Ye = {
103
+ /**
104
+ * Color
105
+ */
79
106
  color: String,
107
+ /**
108
+ * Width
109
+ */
80
110
  width: {
81
111
  type: [String, Number]
82
112
  },
113
+ /**
114
+ * Height
115
+ */
83
116
  height: {
84
117
  type: [String, Number]
85
118
  },
119
+ /**
120
+ * Icon name
121
+ * Can be the full composition of iconify name "@{provider}:{prefix}:{name}" or "{prefix}:{name}" or "{name}"
122
+ * https://docs.iconify.design/api/providers.html#provider-in-icon-name
123
+ */
86
124
  name: {
87
125
  type: String,
88
126
  required: !0
89
127
  },
128
+ /**
129
+ * By default 'vv'
130
+ * If custom collection is not added with "addCollection" DS class method, this prop could not be used
131
+ * Icon provider: https://docs.iconify.design/api/providers.html#provider-in-icon-name
132
+ */
90
133
  provider: {
91
134
  type: String
92
135
  },
136
+ /**
137
+ * The name of icon set.
138
+ * Icon default options prefix: simple | normal | detailed
139
+ */
93
140
  prefix: {
94
141
  type: String,
95
142
  default: "normal"
96
143
  },
144
+ /**
145
+ * Url remote SVG icon
146
+ */
97
147
  src: String,
148
+ /**
149
+ * Horizontal flip
150
+ */
98
151
  horizontalFlip: Boolean,
152
+ /**
153
+ * Vertical flip
154
+ */
99
155
  verticalFlip: Boolean,
156
+ /**
157
+ * String alternative to "horizontalFlip" and "verticalFlip".
158
+ * Example: https://docs.iconify.design/icon-components/vue/transform.html
159
+ */
100
160
  flip: String,
161
+ /**
162
+ * Icon render mode
163
+ * 'style' = 'bg' or 'mask', depending on icon content
164
+ * 'bg' = span with style using `background`
165
+ * 'mask' = span with style using `mask`
166
+ * 'svg' = svg
167
+ * Iconify doc: https://docs.iconify.design/iconify-icon/modes.html
168
+ */
101
169
  mode: String,
170
+ /**
171
+ * Toggles inline or block mode
172
+ * Example https://docs.iconify.design/icon-components/vue/inline.html
173
+ */
102
174
  inline: Boolean,
175
+ /**
176
+ * rotates icon
177
+ * Example https://docs.iconify.design/icon-components/vue/transform.html
178
+ */
103
179
  rotate: [Number, String],
180
+ /**
181
+ * A callback that is called when icon data has been loaded
182
+ */
104
183
  onLoad: Function,
184
+ /**
185
+ * SVG icon string
186
+ */
105
187
  svg: String,
188
+ /**
189
+ * Icon modifiers: vv-icon css helper classes, value/s are concatened with prefix 'vv-icon--'
190
+ * @values string | Array<string>
191
+ */
106
192
  modifiers: {
107
193
  type: [String, Array]
108
194
  }
109
- }, _e = {
195
+ };
196
+ var T = /* @__PURE__ */ ((e) => (e.left = "left", e.right = "right", e.top = "top", e.bottom = "bottom", e))(T || {}), fe = /* @__PURE__ */ ((e) => (e.topStart = "top-start", e.topEnd = "top-end", e.bottomStart = "bottom-start", e.bottomEnd = "bottom-end", e.leftStart = "left-start", e.leftEnd = "left-end", e.rightStart = "right-start", e.rightEnd = "right-end", e))(fe || {}), x = /* @__PURE__ */ ((e) => (e.before = "before", e.after = "after", e))(x || {}), te = /* @__PURE__ */ ((e) => (e.button = "button", e.submit = "submit", e.reset = "reset", e))(te || {}), me = /* @__PURE__ */ ((e) => (e._blank = "_blank", e._self = "_self", e._parent = "_parent", e._top = "_top", e))(me || {});
197
+ const Je = Symbol.for("volver");
198
+ function Ge() {
199
+ return Re(Je);
200
+ }
201
+ function be(e, t, n) {
202
+ return l(() => {
203
+ const a = {
204
+ [e]: !0
205
+ }, o = typeof (t == null ? void 0 : t.value) == "string" ? t.value.split(" ") : t == null ? void 0 : t.value;
206
+ return o && Array.isArray(o) && o.forEach((p) => {
207
+ a[`${e}--${p}`] = !0;
208
+ }), n && Object.keys(n.value).forEach((p) => {
209
+ a[`${e}--${p}`] = s(n.value[p]);
210
+ }), a;
211
+ });
212
+ }
213
+ const Qe = {
110
214
  name: "VvIcon"
111
- }, E = /* @__PURE__ */ se({
112
- ..._e,
113
- props: Re,
114
- setup(i) {
115
- const o = i, e = ref(!0), { modifiers: c } = toRefs(o), l = inject(Ce), { bemCssClasses: m } = useBemModifiers("vv-icon", {
116
- modifiers: c
117
- }), u = computed(() => o.provider || (l == null ? void 0 : l.provider)), T = computed(() => {
118
- const n = o.name ?? "", s = `@${u.value}:${o.prefix}:${o.name}`;
119
- return x(n) ? n : x(s) ? s : (l == null ? void 0 : l.iconsCollections.find((S) => {
120
- const d = `@${u.value}:${S.prefix}:${n}`;
121
- if (x(d))
122
- return d;
123
- })) || n;
215
+ }, _ = /* @__PURE__ */ L({
216
+ ...Qe,
217
+ props: Ye,
218
+ setup(e) {
219
+ const t = e, n = j(!0), a = Ge(), { modifiers: o } = U(t), p = be("vv-icon", o), d = l(() => t.provider || (a == null ? void 0 : a.provider)), A = l(() => {
220
+ const i = t.name ?? "", u = `@${d.value}:${t.prefix}:${t.name}`;
221
+ return k(i) ? i : k(u) ? u : (a == null ? void 0 : a.iconsCollections.find(
222
+ (S) => {
223
+ const v = `@${d.value}:${S.prefix}:${i}`;
224
+ if (k(v))
225
+ return v;
226
+ }
227
+ )) || i;
124
228
  });
125
- function g(n) {
126
- let s = null;
229
+ function w(i) {
230
+ let u = null;
127
231
  if (typeof window > "u") {
128
- const { JSDOM: I } = require("jsdom");
129
- s = new I().window;
232
+ const { JSDOM: E } = require("jsdom");
233
+ u = new E().window;
130
234
  }
131
- return (s ? new s.DOMParser() : new window.DOMParser()).parseFromString(n, "text/html").querySelector("svg");
235
+ return (u ? new u.DOMParser() : new window.DOMParser()).parseFromString(i, "text/html").querySelector("svg");
132
236
  }
133
- function f(n) {
134
- const s = g(n), S = (s == null ? void 0 : s.innerHTML.trim()) || "";
135
- s && S && Ae(`@${u.value}:${o.prefix}:${o.name}`, {
237
+ function m(i) {
238
+ const u = w(i), S = (u == null ? void 0 : u.innerHTML.trim()) || "";
239
+ u && S && qe(`@${d.value}:${t.prefix}:${t.name}`, {
136
240
  body: S,
137
- height: s.viewBox.baseVal.height,
138
- width: s.viewBox.baseVal.width
241
+ // Set height and width from svg content
242
+ height: u.viewBox.baseVal.height,
243
+ width: u.viewBox.baseVal.width
139
244
  });
140
245
  }
141
- return l && (o.src && !x(`@${u.value}:${o.prefix}:${o.name}`) ? (e.value = !1, l.fetchIcon(o.src).then((n) => {
142
- n && (f(n), e.value = !0);
143
- }).catch((n) => {
144
- throw new Error(`During fetch icon: ${n == null ? void 0 : n.message}`);
145
- })) : o.svg && f(o.svg)), (n, s) => a(e) ? (y(), D(a(Te), M({
246
+ return a && (t.src && !k(`@${d.value}:${t.prefix}:${t.name}`) ? (n.value = !1, a.fetchIcon(t.src).then((i) => {
247
+ i && (m(i), n.value = !0);
248
+ }).catch((i) => {
249
+ throw new Error(`During fetch icon: ${i == null ? void 0 : i.message}`);
250
+ })) : t.svg && m(t.svg)), (i, u) => s(n) ? (g(), P(s(Fe), $({
146
251
  key: 0,
147
- class: a(m)
252
+ class: s(p)
148
253
  }, {
149
- inline: n.inline,
150
- width: n.width,
151
- height: n.height,
152
- horizontalFlip: n.horizontalFlip,
153
- verticalFlip: n.verticalFlip,
154
- flip: n.flip,
155
- rotate: n.rotate,
156
- color: n.color,
157
- onLoad: n.onLoad,
158
- icon: a(T)
159
- }), null, 16, ["class"])) : R("", !0);
254
+ inline: i.inline,
255
+ width: i.width,
256
+ height: i.height,
257
+ horizontalFlip: i.horizontalFlip,
258
+ verticalFlip: i.verticalFlip,
259
+ flip: i.flip,
260
+ rotate: i.rotate,
261
+ color: i.color,
262
+ onLoad: i.onLoad,
263
+ icon: s(A)
264
+ }), null, 16, ["class"])) : O("", !0);
265
+ }
266
+ }), Ze = {
267
+ /**
268
+ * The router-link/nuxt-link property, if it is defined the button is rendered as a ruouter-link or nuxt-link.
269
+ * @see Documentation of [router-link](https://router.vuejs.org/api/#router-link) and [nuxt-link](https://nuxtjs.org/api/components-nuxt-link/)
270
+ */
271
+ to: {
272
+ type: [String, Object]
273
+ },
274
+ /**
275
+ * Anchor href
276
+ */
277
+ href: String,
278
+ /**
279
+ * Anchor target
280
+ */
281
+ target: {
282
+ type: String,
283
+ validator: (e) => Object.values(me).includes(e)
284
+ },
285
+ /**
286
+ * Anchor rel
287
+ */
288
+ rel: {
289
+ type: String,
290
+ default: "noopener noreferrer"
160
291
  }
161
- }), He = {
292
+ }, et = {
293
+ /**
294
+ * Valid status
295
+ */
162
296
  valid: Boolean,
297
+ /**
298
+ * Valid label
299
+ */
163
300
  validLabel: [String, Array]
164
- }, Oe = {
301
+ }, tt = {
302
+ /**
303
+ * Invalid status
304
+ */
165
305
  invalid: Boolean,
306
+ /**
307
+ * Invalid label
308
+ */
166
309
  invalidLabel: [String, Array]
167
- }, Ve = {
310
+ }, nt = {
311
+ /**
312
+ * Loading status
313
+ */
168
314
  loading: Boolean,
169
- loadingLabel: String
170
- }, xe = {
315
+ /**
316
+ * Loading label
317
+ */
318
+ loadingLabel: {
319
+ type: String,
320
+ default: "Loading..."
321
+ }
322
+ }, Se = {
323
+ /**
324
+ * Whether the form control is disabled
325
+ */
171
326
  disabled: Boolean
172
- }, Ne = {
327
+ }, at = {
328
+ /**
329
+ * Whether the item is active
330
+ */
331
+ active: Boolean
332
+ }, rt = {
333
+ /**
334
+ * Whether the item is pressed
335
+ */
336
+ pressed: Boolean
337
+ }, he = {
338
+ /**
339
+ * The item label
340
+ */
341
+ label: [String, Number]
342
+ }, lt = {
343
+ /**
344
+ * The value is not editable
345
+ */
173
346
  readonly: Boolean
174
- }, Me = {
347
+ }, ot = {
348
+ /**
349
+ * Component BEM modifiers
350
+ */
175
351
  modifiers: [String, Array]
176
- }, Be = {
352
+ }, st = {
177
353
  hintLabel: { type: String, default: "" }
178
- }, ke = {
354
+ }, it = {
355
+ /**
356
+ * Show character limit
357
+ */
179
358
  count: {
180
359
  type: [Boolean, String],
181
360
  default: !1,
182
- validator: (i) => [!0, !1, "limit", "countdown"].includes(i)
361
+ validator: (e) => [!0, !1, "limit", "countdown"].includes(e)
183
362
  }
184
- }, Le = {
363
+ }, ut = {
364
+ /**
365
+ * Milliseconds to wait before emitting the input event
366
+ */
185
367
  debounce: [Number, String]
186
- }, oe = {
187
- LEFT: "left",
188
- RIGHT: "right"
189
- }, $e = {
368
+ }, ct = {
369
+ /**
370
+ * VvIcon name or props
371
+ * @see VVIcon
372
+ */
190
373
  icon: { type: [String, Object] },
374
+ /**
375
+ * VvIcon position
376
+ */
191
377
  iconPosition: {
192
378
  type: String,
193
- validation: (i) => Object.values(oe).includes(i),
194
- default: oe.RIGHT
379
+ default: x.before,
380
+ validation: (e) => Object.values(x).includes(e)
195
381
  }
196
- }, Ue = {
382
+ }, dt = {
383
+ /**
384
+ * Global attribute tabindex
385
+ * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/tabindex
386
+ */
197
387
  tabindex: { type: [String, Number], default: 0 }
198
- }, We = {
388
+ }, pt = {
389
+ /**
390
+ * If true the label will be floating
391
+ */
199
392
  floating: Boolean
200
- }, Fe = {
201
- id: [String, Number],
393
+ }, vt = {
394
+ /**
395
+ * Global attribute id
396
+ * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/id
397
+ */
398
+ id: [String, Number]
399
+ };
400
+ T.bottom;
401
+ const ft = {
402
+ ...vt,
403
+ /**
404
+ * Input / Textarea name
405
+ * Name of the form control. Submitted with the form as part of a name/value pair
406
+ * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#name
407
+ */
202
408
  name: { type: String, required: !0 }
203
- }, je = {
409
+ }, mt = {
410
+ /**
411
+ * Global attribute autofocus
412
+ * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/autofocus
413
+ */
204
414
  autofocus: Boolean
205
- }, qe = {
415
+ }, bt = {
416
+ /**
417
+ * Global attribute autocomplete
418
+ * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete
419
+ */
206
420
  autocomplete: { type: String, default: "off" }
207
- }, Xe = {
208
- ...Fe,
209
- ...je,
210
- ...qe,
211
- ...Ue,
212
- ...xe,
213
- ...Ne,
214
- ...He,
215
- ...Oe,
216
- ...Be,
217
- ...Ve,
218
- ...Me,
219
- ...ke,
220
- ...Le,
221
- ...$e,
222
- ...We,
421
+ }, St = {
422
+ ...ft,
423
+ ...mt,
424
+ ...bt,
425
+ ...dt,
426
+ ...Se,
427
+ ...lt,
428
+ ...et,
429
+ ...tt,
430
+ ...st,
431
+ ...nt,
432
+ ...ot,
433
+ ...it,
434
+ ...ut,
435
+ ...ct,
436
+ ...pt,
437
+ ...he,
438
+ /**
439
+ * Input / Textarea minlength
440
+ * Minimum length (number of characters) of value
441
+ * Available for input types: text, search, url, tel, email, password
442
+ * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#minlength
443
+ */
223
444
  minlength: Number,
445
+ /**
446
+ * Input / Textarea maxlength
447
+ * Maximum length (number of characters) of value
448
+ * Available for input types: text, search, url, tel, email, password
449
+ * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#maxlength
450
+ */
224
451
  maxlength: Number,
452
+ /**
453
+ * Input / Textarea placeholder
454
+ * Text that appears in the form control when it has no value set
455
+ * Available for input types: text, search, url, tel, email, password, number
456
+ * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#placeholder
457
+ */
225
458
  placeholder: String,
226
- required: Boolean,
227
- label: String
228
- }, t = {
459
+ /**
460
+ * Input / Textarea required
461
+ * A value is required or must be check for the form to be submittable
462
+ * Available for all input types except color
463
+ * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#required
464
+ */
465
+ required: Boolean
466
+ };
467
+ ({
468
+ ...Se,
469
+ ...he,
470
+ ...rt,
471
+ ...at,
472
+ ...Ze,
473
+ /**
474
+ * Button type
475
+ */
476
+ type: te.button
477
+ });
478
+ const r = {
229
479
  TEXT: "text",
230
480
  PASSWORD: "password",
231
481
  NUMBER: "number",
@@ -239,61 +489,121 @@ const Ce = "ds", Re = {
239
489
  DATETIME_LOCAL: "datetime-local",
240
490
  MONTH: "month",
241
491
  WEEK: "week"
242
- }, w = {
492
+ }, I = {
243
493
  PASSWORD_SHOW: "eye-on",
244
494
  PASSWORD_HIDE: "eye-off",
245
495
  DATE: "calendar",
246
496
  TIME: "time",
247
497
  COLOR: "color",
248
498
  SEARCH: "close"
249
- }, ze = ["update:modelValue", "focus", "blur", "keyup"], Ke = {
250
- ...Xe,
499
+ }, ht = ["update:modelValue", "focus", "blur", "keyup"], gt = {
500
+ ...St,
501
+ /**
502
+ * Input value
503
+ * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#value
504
+ */
251
505
  modelValue: [String, Number],
506
+ /**
507
+ * Type of form control
508
+ * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#type
509
+ */
252
510
  type: {
253
511
  type: String,
254
- default: t.TEXT,
255
- validator: (i) => Object.values(t).includes(i)
512
+ default: r.TEXT,
513
+ validator: (e) => Object.values(r).includes(e)
256
514
  },
515
+ /**
516
+ * Minimum value
517
+ * Available for input types: date, month, week, time, datetime-local, number, range.
518
+ * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#min
519
+ */
257
520
  min: [Number, Date, String],
521
+ /**
522
+ * Maximum value
523
+ * Available for input types: date, month, week, time, datetime-local, number, range.
524
+ * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#max
525
+ */
258
526
  max: [Number, Date, String],
527
+ /**
528
+ * Incremental values that are valid
529
+ * Available for input types: date, month, week, time, datetime-local and number
530
+ * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#step
531
+ */
259
532
  step: { type: [String, Number], default: 1 },
533
+ /**
534
+ * Pattern the value must match to be valid
535
+ * Available for input types: text, search, url, tel, email and password
536
+ * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#pattern
537
+ */
260
538
  pattern: String,
539
+ /**
540
+ * Whether to allow multiple values
541
+ * Available for input type email
542
+ * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#multiple
543
+ */
261
544
  multiple: Boolean,
545
+ /**
546
+ * VvIcon name for show password button
547
+ * @see VVIcon
548
+ */
262
549
  iconShowPassword: {
263
550
  type: String,
264
- default: w.PASSWORD_SHOW
551
+ default: I.PASSWORD_SHOW
265
552
  },
553
+ /**
554
+ * VvIcon name for hide password button
555
+ * @see VVIcon
556
+ */
266
557
  iconHidePassword: {
267
558
  type: String,
268
- default: w.PASSWORD_HIDE
559
+ default: I.PASSWORD_HIDE
269
560
  },
561
+ /**
562
+ * VvIcon name for clear button
563
+ * @see VVIcon
564
+ */
270
565
  iconClear: {
271
566
  type: String,
272
- default: w.SEARCH
567
+ default: I.SEARCH
273
568
  },
569
+ /**
570
+ * Label for step up button
571
+ */
274
572
  labelStepUp: {
275
573
  type: String,
276
574
  default: "Increase value"
277
575
  },
576
+ /**
577
+ * Label for step down button
578
+ */
278
579
  labelStepDown: {
279
580
  type: String,
280
581
  default: "Decrease value"
281
582
  },
583
+ /**
584
+ * Label for show password button
585
+ */
282
586
  labelShowPassword: {
283
587
  type: String,
284
588
  default: "Show password"
285
589
  },
590
+ /**
591
+ * Label for hide password button
592
+ */
286
593
  labelHidePassword: {
287
594
  type: String,
288
595
  default: "Hide password"
289
596
  },
597
+ /**
598
+ * Label for clear button
599
+ */
290
600
  labelClear: {
291
601
  type: String,
292
602
  default: "Clear"
293
603
  }
294
- }, ne = defineComponent({
604
+ }, de = L({
295
605
  components: {
296
- VvIcon: E
606
+ VvIcon: _
297
607
  },
298
608
  props: {
299
609
  disabled: {
@@ -310,33 +620,33 @@ const Ce = "ds", Re = {
310
620
  },
311
621
  iconShow: {
312
622
  type: String,
313
- default: w.PASSWORD_SHOW
623
+ default: I.PASSWORD_SHOW
314
624
  },
315
625
  iconHide: {
316
626
  type: String,
317
- default: w.PASSWORD_HIDE
627
+ default: I.PASSWORD_HIDE
318
628
  }
319
629
  },
320
630
  emits: ["toggle-password"],
321
- setup(i, { emit: o }) {
322
- const e = ref(!1), c = computed(
323
- () => e.value ? i.iconHide : i.iconShow
631
+ setup(e, { emit: t }) {
632
+ const n = j(!1), a = l(
633
+ () => n.value ? e.iconHide : e.iconShow
324
634
  );
325
- function l(m) {
326
- m == null || m.stopPropagation(), i.disabled || (e.value = !e.value, o("toggle-password", e.value));
635
+ function o(p) {
636
+ p == null || p.stopPropagation(), e.disabled || (n.value = !n.value, t("toggle-password", n.value));
327
637
  }
328
638
  return {
329
- active: e,
330
- activeIcon: c,
331
- onClick: l
639
+ active: n,
640
+ activeIcon: a,
641
+ onClick: o
332
642
  };
333
643
  },
334
644
  render() {
335
- const i = h(E, {
645
+ const e = y(_, {
336
646
  name: this.activeIcon,
337
647
  class: "vv-input-text__action-icon"
338
648
  });
339
- return h(
649
+ return y(
340
650
  "button",
341
651
  {
342
652
  disabled: this.disabled,
@@ -345,12 +655,12 @@ const Ce = "ds", Re = {
345
655
  type: "button",
346
656
  onClick: this.onClick
347
657
  },
348
- i
658
+ e
349
659
  );
350
660
  }
351
- }), q = defineComponent({
661
+ }), Z = L({
352
662
  components: {
353
- VvIcon: E
663
+ VvIcon: _
354
664
  },
355
665
  props: {
356
666
  disabled: {
@@ -362,22 +672,22 @@ const Ce = "ds", Re = {
362
672
  },
363
673
  mode: {
364
674
  type: String,
365
- validator: (i) => ["up", "down"].includes(i),
675
+ validator: (e) => ["up", "down"].includes(e),
366
676
  default: "up"
367
677
  }
368
678
  },
369
679
  emits: ["step-up", "step-down"],
370
- setup(i, { emit: o }) {
371
- const e = computed(() => i.mode === "up");
680
+ setup(e, { emit: t }) {
681
+ const n = l(() => e.mode === "up");
372
682
  return {
373
- isUp: e,
374
- onClick: (l) => {
375
- l == null || l.stopPropagation(), i.disabled || o(e.value ? "step-up" : "step-down");
683
+ isUp: n,
684
+ onClick: (o) => {
685
+ o == null || o.stopPropagation(), e.disabled || t(n.value ? "step-up" : "step-down");
376
686
  }
377
687
  };
378
688
  },
379
689
  render() {
380
- return h("button", {
690
+ return y("button", {
381
691
  class: [
382
692
  "vv-input-text__action-chevron",
383
693
  this.isUp && "vv-input-text__action-chevron-up"
@@ -387,9 +697,9 @@ const Ce = "ds", Re = {
387
697
  onClick: this.onClick
388
698
  });
389
699
  }
390
- }), ie = defineComponent({
700
+ }), pe = L({
391
701
  components: {
392
- VvIcon: E
702
+ VvIcon: _
393
703
  },
394
704
  props: {
395
705
  disabled: {
@@ -406,20 +716,20 @@ const Ce = "ds", Re = {
406
716
  }
407
717
  },
408
718
  emits: ["clear"],
409
- setup(i, { emit: o }) {
410
- function e(c) {
411
- c == null || c.stopPropagation(), i.disabled || o("clear");
719
+ setup(e, { emit: t }) {
720
+ function n(a) {
721
+ a == null || a.stopPropagation(), e.disabled || t("clear");
412
722
  }
413
723
  return {
414
- onClick: e
724
+ onClick: n
415
725
  };
416
726
  },
417
727
  render() {
418
- const i = h(E, {
728
+ const e = y(_, {
419
729
  name: this.icon,
420
730
  class: "vv-input-text__action-icon"
421
731
  });
422
- return h(
732
+ return y(
423
733
  "button",
424
734
  {
425
735
  disabled: this.disabled,
@@ -428,51 +738,51 @@ const Ce = "ds", Re = {
428
738
  type: "button",
429
739
  onClick: this.onClick
430
740
  },
431
- i
741
+ e
432
742
  );
433
743
  }
434
744
  });
435
- function X(i, o) {
745
+ function ee(e, t) {
436
746
  return {
437
747
  name: "VvInputTextActions",
438
748
  components: {
439
- VvIcon: E,
440
- VvInputPasswordAction: ne,
441
- VvInputStepAction: q,
442
- VvInputClearAction: ie
749
+ VvIcon: _,
750
+ VvInputPasswordAction: de,
751
+ VvInputStepAction: Z,
752
+ VvInputClearAction: pe
443
753
  },
444
754
  setup() {
445
755
  return {
446
- isDisabled: computed(() => o.disabled || o.readonly),
447
- labelStepUp: o.labelStepUp,
448
- labelStepDown: o.labelStepDown,
449
- labelShowPassword: o.labelShowPassword,
450
- labelHidePassword: o.labelHidePassword,
451
- labelClear: o.labelClear,
452
- iconShowPassword: o.iconShowPassword,
453
- iconHidePassword: o.iconHidePassword
756
+ isDisabled: l(() => t.disabled || t.readonly),
757
+ labelStepUp: t.labelStepUp,
758
+ labelStepDown: t.labelStepDown,
759
+ labelShowPassword: t.labelShowPassword,
760
+ labelHidePassword: t.labelHidePassword,
761
+ labelClear: t.labelClear,
762
+ iconShowPassword: t.iconShowPassword,
763
+ iconHidePassword: t.iconHidePassword
454
764
  };
455
765
  },
456
766
  render() {
457
- let e = null;
458
- switch (i) {
459
- case t.SEARCH: {
460
- const { onClear: c } = this.$attrs;
461
- e = [
462
- h(ie, {
767
+ let n = null;
768
+ switch (e) {
769
+ case r.SEARCH: {
770
+ const { onClear: a } = this.$attrs;
771
+ n = [
772
+ y(pe, {
463
773
  disabled: this.isDisabled,
464
774
  label: this.labelShowPassword,
465
- onClear: c
775
+ onClear: a
466
776
  })
467
777
  ];
468
778
  break;
469
779
  }
470
- case t.PASSWORD: {
471
- const { onTogglePassword: c } = this.$attrs;
472
- e = [
473
- h(ne, {
780
+ case r.PASSWORD: {
781
+ const { onTogglePassword: a } = this.$attrs;
782
+ n = [
783
+ y(de, {
474
784
  disabled: this.isDisabled,
475
- onTogglePassword: c,
785
+ onTogglePassword: a,
476
786
  labelShow: this.labelShowPassword,
477
787
  labelHide: this.labelHidePassword,
478
788
  iconShow: this.iconShowPassword,
@@ -481,189 +791,258 @@ function X(i, o) {
481
791
  ];
482
792
  break;
483
793
  }
484
- case t.NUMBER: {
485
- const { onStepUp: c, onStepDown: l } = this.$attrs;
486
- e = [
487
- h(q, {
794
+ case r.NUMBER: {
795
+ const { onStepUp: a, onStepDown: o } = this.$attrs;
796
+ n = [
797
+ y(Z, {
488
798
  mode: "up",
489
- disabled: this.isDisabled || o.max !== void 0 && o.modelValue === o.max,
799
+ disabled: this.isDisabled || t.max !== void 0 && t.modelValue === t.max,
490
800
  label: this.labelStepUp,
491
- onStepUp: c,
492
- onStepDown: l
801
+ onStepUp: a,
802
+ onStepDown: o
493
803
  }),
494
- h(q, {
804
+ y(Z, {
495
805
  mode: "down",
496
- disabled: this.isDisabled || o.min !== void 0 && o.modelValue === o.min,
806
+ disabled: this.isDisabled || t.min !== void 0 && t.modelValue === t.min,
497
807
  label: this.labelStepDown,
498
- onStepUp: c,
499
- onStepDown: l
808
+ onStepUp: a,
809
+ onStepDown: o
500
810
  })
501
811
  ];
502
812
  break;
503
813
  }
504
814
  }
505
- return Array.isArray(e) ? h("div", { class: "vv-input-text__actions-group" }, e) : e;
815
+ return Array.isArray(n) ? y("div", { class: "vv-input-text__actions-group" }, n) : n;
816
+ }
817
+ };
818
+ }
819
+ const yt = (e) => l(() => String((e == null ? void 0 : e.value) || ze()));
820
+ function wt(e, t, n = 0) {
821
+ let a;
822
+ return typeof n == "string" && (n = parseInt(n)), l({
823
+ get: () => e == null ? void 0 : e.value,
824
+ set: (o) => {
825
+ a && clearTimeout(a), a = setTimeout(() => {
826
+ t("update:modelValue", o);
827
+ }, n);
506
828
  }
829
+ });
830
+ }
831
+ function Et(e, t) {
832
+ const { focused: n } = je(e);
833
+ return ve(n, (a) => {
834
+ t(a ? "focus" : "blur", s(e));
835
+ }), {
836
+ focused: n
837
+ };
838
+ }
839
+ function It(e, t) {
840
+ const n = l(
841
+ () => Boolean((e == null ? void 0 : e.value) && t.value === x.before)
842
+ ), a = l(
843
+ () => Boolean((e == null ? void 0 : e.value) && t.value === x.after)
844
+ ), o = l(
845
+ () => Boolean((e == null ? void 0 : e.value) && t.value === T.left)
846
+ ), p = l(
847
+ () => Boolean((e == null ? void 0 : e.value) && t.value === T.right)
848
+ ), d = l(
849
+ () => Boolean((e == null ? void 0 : e.value) && t.value === T.top)
850
+ ), A = l(
851
+ () => Boolean((e == null ? void 0 : e.value) && t.value === T.bottom)
852
+ );
853
+ return {
854
+ hasIcon: l(() => typeof (e == null ? void 0 : e.value) == "string" ? { name: e == null ? void 0 : e.value } : e == null ? void 0 : e.value),
855
+ hasIconLeft: o,
856
+ hasIconRight: p,
857
+ hasIconTop: d,
858
+ hasIconBottom: A,
859
+ hasIconBefore: n,
860
+ hasIconAfter: a
507
861
  };
508
862
  }
509
- const Ge = ["for"], Ye = { class: "vv-input-text__wrapper" }, Je = ["id"], Qe = {
863
+ function _t(e, t) {
864
+ const n = l(() => (s(e) ?? "").length), a = l(() => (t == null ? void 0 : t.lowerLimit) !== void 0 && n.value < (t == null ? void 0 : t.lowerLimit) ? n.value - t.lowerLimit : (t == null ? void 0 : t.upperLimit) !== void 0 && n.value < (t == null ? void 0 : t.upperLimit) ? t.upperLimit - n.value : 0), o = l(() => (t == null ? void 0 : t.mode) === !1 ? "" : (t == null ? void 0 : t.mode) === "limit" && (t != null && t.upperLimit) ? `${n.value} / ${t.lowerLimit ? `${t.lowerLimit}-` : ""}${t.upperLimit}` : (t == null ? void 0 : t.mode) === "countdown" ? a.value === 0 ? void 0 : a : n.value);
865
+ return {
866
+ length: n,
867
+ gap: a,
868
+ formatted: o
869
+ };
870
+ }
871
+ const At = ["for"], Dt = { class: "vv-input-text__wrapper" }, Ot = {
510
872
  key: 0,
873
+ class: "vv-input-text__input-before"
874
+ }, Tt = { class: "vv-input-text__inner" }, Ct = ["id"], Pt = {
875
+ key: 1,
876
+ class: "vv-input-text__input-after"
877
+ }, Bt = {
878
+ key: 2,
511
879
  class: "vv-input-text__limit"
512
- }, Ze = {
880
+ }, Ht = {
513
881
  name: "VvInputText"
514
- }, nt = /* @__PURE__ */ se({
515
- ...Ze,
516
- props: Ke,
517
- emits: ze,
518
- setup(i, { emit: o }) {
519
- const e = i, c = useSlots(), l = ref(), {
520
- icon: m,
521
- iconPosition: u,
522
- label: T,
523
- modelValue: g,
524
- count: f,
525
- valid: n,
526
- invalid: s,
527
- loading: S
528
- } = toRefs(e), d = computed(() => String(e.id || Pe())), v = computed(() => `${d.value}-hint`), I = computed(
529
- () => e.floating && isEmpty(e.placeholder) ? " " : e.placeholder
530
- ), b = useDebouncedInput(g, o, e.debounce), { focused: P } = useComponentFocus(l, o), _ = useElementVisibility(l);
531
- watch(_, (r) => {
532
- r && e.autofocus && (P.value = !0);
882
+ }, Vt = /* @__PURE__ */ L({
883
+ ...Ht,
884
+ props: gt,
885
+ emits: ht,
886
+ setup(e, { emit: t }) {
887
+ const n = e, a = xe(), o = j(), {
888
+ id: p,
889
+ icon: d,
890
+ iconPosition: A,
891
+ label: w,
892
+ modelValue: m,
893
+ count: i,
894
+ valid: u,
895
+ invalid: S,
896
+ loading: v
897
+ } = U(n), b = yt(p), E = l(() => `${b.value}-hint`), N = l(
898
+ () => n.floating && R(n.placeholder) ? " " : n.placeholder
899
+ ), h = wt(m, t, n.debounce), { focused: C } = Et(o, t), W = We(o);
900
+ ve(W, (c) => {
901
+ c && n.autofocus && (C.value = !0);
533
902
  });
534
- const C = ref(!1), H = computed(() => e.type === t.PASSWORD), O = () => {
535
- C.value = !C.value;
536
- }, A = computed(
537
- () => e.type === t.TIME || e.type === t.DATETIME_LOCAL || e.type === t.DATE || e.type === t.WEEK || e.type === t.MONTH
538
- ), ae = computed(() => e.type === t.NUMBER), z = () => {
539
- L.value && (l.value.stepUp(), b.value = unref(l).value);
540
- }, K = () => {
541
- L.value && (l.value.stepDown(), b.value = unref(l).value);
542
- }, le = computed(() => e.type === t.SEARCH), G = () => {
543
- b.value = void 0;
544
- }, { hasIconLeft: Y, hasIconRight: B, hasIcon: J } = useComponentIcon(
545
- m,
546
- u
547
- ), k = computed(() => {
548
- switch (e.type) {
549
- case t.COLOR:
550
- return { name: w.COLOR };
551
- case t.DATE:
552
- case t.DATETIME_LOCAL:
553
- case t.WEEK:
554
- case t.MONTH:
555
- return { name: w.DATE };
556
- case t.TIME:
557
- return { name: w.TIME };
903
+ const B = j(!1), V = l(() => n.type === r.PASSWORD), D = () => {
904
+ B.value = !B.value;
905
+ }, ge = l(
906
+ () => n.type === r.TIME || n.type === r.DATETIME_LOCAL || n.type === r.DATE || n.type === r.WEEK || n.type === r.MONTH
907
+ ), ye = l(() => n.type === r.NUMBER), ne = () => {
908
+ z.value && (o.value.stepUp(), h.value = s(o).value);
909
+ }, ae = () => {
910
+ z.value && (o.value.stepDown(), h.value = s(o).value);
911
+ }, we = l(() => n.type === r.SEARCH), re = () => {
912
+ h.value = void 0;
913
+ }, { hasIcon: le, hasIconBefore: oe, hasIconAfter: F } = It(
914
+ d,
915
+ A
916
+ ), q = l(() => {
917
+ switch (n.type) {
918
+ case r.COLOR:
919
+ return { name: I.COLOR };
920
+ case r.DATE:
921
+ case r.DATETIME_LOCAL:
922
+ case r.WEEK:
923
+ case r.MONTH:
924
+ return { name: I.DATE };
925
+ case r.TIME:
926
+ return { name: I.TIME };
558
927
  default:
559
928
  return "";
560
929
  }
561
- }), { formatted: re } = useTextCount(b, {
562
- mode: e.count,
563
- upperLimit: e.maxlength,
564
- lowerLimit: e.minlength
565
- }), L = computed(() => !e.disabled && !e.readonly), ue = computed(
566
- () => L.value ? e.tabindex : -1
567
- ), Q = computed(() => !isEmpty(g)), ce = computed(() => {
568
- if (s.value === !0)
930
+ }), { formatted: Ee } = _t(h, {
931
+ mode: n.count,
932
+ upperLimit: n.maxlength,
933
+ lowerLimit: n.minlength
934
+ }), z = l(() => !n.disabled && !n.readonly), Ie = l(
935
+ () => z.value ? n.tabindex : -1
936
+ ), se = l(() => !R(m)), _e = l(() => {
937
+ if (S.value === !0)
569
938
  return !0;
570
- if (n.value === !0)
939
+ if (u.value === !0)
571
940
  return !1;
572
- }), { bemCssClasses: de } = useBemModifiers("vv-input-text", {
573
- modifiers: e.modifiers,
574
- valid: n,
575
- invalid: s,
576
- loading: S,
577
- disabled: e.disabled,
578
- readonly: e.readonly,
579
- iconLeft: Y,
580
- iconRight: B.value || !isEmpty(k),
581
- floating: e.floating && !isEmpty(e.label),
582
- dirty: Q,
583
- focus: P
584
- }), pe = computed(() => {
585
- const r = (() => H.value && C.value || A.value && !Q.value && !P.value ? t.TEXT : e.type)(), p = {
586
- type: r,
587
- name: e.name,
588
- tabindex: ue.value,
589
- disabled: e.disabled,
590
- readonly: e.readonly,
591
- required: e.required,
592
- autocomplete: e.autocomplete,
593
- "aria-invalid": ce.value,
594
- "aria-describedby": !Z.value && ve.value ? v.value : void 0,
595
- "aria-errormessage": Z.value ? v.value : void 0
941
+ }), { modifiers: Ae } = U(n), De = be(
942
+ "vv-input-text",
943
+ Ae,
944
+ l(() => ({
945
+ valid: u.value,
946
+ invalid: S.value,
947
+ loading: v.value,
948
+ disabled: n.disabled,
949
+ readonly: n.readonly,
950
+ "icon-before": oe.value,
951
+ "icon-after": F.value || !R(q),
952
+ floating: n.floating && !R(n.label),
953
+ dirty: se.value,
954
+ focus: C.value
955
+ }))
956
+ ), Oe = l(() => {
957
+ const c = (() => V.value && B.value || ge.value && !se.value && !C.value ? r.TEXT : n.type)(), f = {
958
+ type: c,
959
+ name: n.name,
960
+ tabindex: Ie.value,
961
+ disabled: n.disabled,
962
+ readonly: n.readonly,
963
+ required: n.required,
964
+ autocomplete: n.autocomplete,
965
+ "aria-invalid": _e.value,
966
+ "aria-describedby": !ie.value && Ce.value ? E.value : void 0,
967
+ "aria-errormessage": ie.value ? E.value : void 0
596
968
  };
597
- return (r === t.DATE || r === t.MONTH || r === t.WEEK || r === t.TIME || r === t.DATETIME_LOCAL || r === t.NUMBER) && (p.step = e.step, p.max = String(e.max), p.min = String(e.min)), (r === t.TEXT || r === t.SEARCH || r === t.URL || r === t.TEL || r === t.EMAIL || r === t.PASSWORD || r === t.NUMBER) && (p.placeholder = I.value), (r === t.TEXT || r === t.SEARCH || r === t.URL || r === t.TEL || r === t.EMAIL || r === t.PASSWORD) && (p.minlength = e.minlength, p.maxlength = e.maxlength, p.pattern = e.pattern), r === t.EMAIL && (p.multiple = e.multiple), p;
598
- }), $ = computed(() => ({
599
- valid: e.valid,
600
- invalid: e.invalid,
601
- modelValue: e.modelValue,
602
- togglePassword: O,
603
- stepUp: z,
604
- stepDown: K,
605
- clear: G
606
- })), { HintSlot: me, hasHint: ve, hasInvalid: Z } = De(e, c), fe = X(
607
- t.PASSWORD,
608
- e
609
- ), Se = X(
610
- t.NUMBER,
611
- e
612
- ), he = X(
613
- t.SEARCH,
614
- e
969
+ return (c === r.DATE || c === r.MONTH || c === r.WEEK || c === r.TIME || c === r.DATETIME_LOCAL || c === r.NUMBER) && (f.step = n.step, f.max = String(n.max), f.min = String(n.min)), (c === r.TEXT || c === r.SEARCH || c === r.URL || c === r.TEL || c === r.EMAIL || c === r.PASSWORD || c === r.NUMBER) && (f.placeholder = N.value), (c === r.TEXT || c === r.SEARCH || c === r.URL || c === r.TEL || c === r.EMAIL || c === r.PASSWORD) && (f.minlength = n.minlength, f.maxlength = n.maxlength, f.pattern = n.pattern), c === r.EMAIL && (f.multiple = n.multiple), f;
970
+ }), K = l(() => ({
971
+ valid: n.valid,
972
+ invalid: n.invalid,
973
+ modelValue: n.modelValue,
974
+ togglePassword: D,
975
+ stepUp: ne,
976
+ stepDown: ae,
977
+ clear: re
978
+ })), { HintSlot: Te, hasHint: Ce, hasInvalid: ie } = Xe(n, a), Pe = ee(
979
+ r.PASSWORD,
980
+ n
981
+ ), Be = ee(
982
+ r.NUMBER,
983
+ n
984
+ ), He = ee(
985
+ r.SEARCH,
986
+ n
615
987
  );
616
- return (r, p) => (y(), W("div", {
617
- class: be(a(de))
988
+ return (c, f) => (g(), H("div", {
989
+ class: Le(s(De))
618
990
  }, [
619
- a(T) ? (y(), W("label", {
991
+ s(w) ? (g(), H("label", {
620
992
  key: 0,
621
- for: a(d),
993
+ for: s(b),
622
994
  class: "vv-input-text__label"
623
- }, ee(a(T)), 9, Ge)) : R("", !0),
624
- te("div", Ye, [
625
- F(r.$slots, "before", V(j(a($))), () => [
626
- a(Y) ? (y(), D(E, M({
995
+ }, ue(s(w)), 9, At)) : O("", !0),
996
+ Y("div", Dt, [
997
+ c.$slots.before ? (g(), H("div", Ot, [
998
+ J(c.$slots, "before", G(Q(s(K))))
999
+ ])) : O("", !0),
1000
+ Y("div", Tt, [
1001
+ s(oe) ? (g(), P(_, $({
627
1002
  key: 0,
628
- class: "vv-input-text__icon-left"
629
- }, a(J)), null, 16)) : R("", !0)
630
- ]),
631
- ge(te("input", M({
632
- id: a(d),
633
- ref_key: "input",
634
- ref: l,
635
- "onUpdate:modelValue": p[0] || (p[0] = (U) => ye(b) ? b.value = U : null)
636
- }, a(pe), {
637
- onKeyup: p[1] || (p[1] = (U) => o("keyup", U))
638
- }), null, 16, Je), [
639
- [we, a(b)]
640
- ]),
641
- F(r.$slots, "after", V(j(a($))), () => [
642
- a(B) || a(k) ? (y(), D(E, V(M({ key: 0 }, a(B) ? a(J) : a(k))), null, 16)) : a(H) ? (y(), D(a(fe), {
1003
+ class: "vv-input-text__icon"
1004
+ }, s(le)), null, 16)) : O("", !0),
1005
+ Ne(Y("input", $({
1006
+ id: s(b),
1007
+ ref_key: "input",
1008
+ ref: o,
1009
+ "onUpdate:modelValue": f[0] || (f[0] = (X) => Ve(h) ? h.value = X : null)
1010
+ }, s(Oe), {
1011
+ onKeyup: f[1] || (f[1] = (X) => t("keyup", X))
1012
+ }), null, 16, Ct), [
1013
+ [ke, s(h)]
1014
+ ]),
1015
+ s(F) || s(q) ? (g(), P(_, $({
643
1016
  key: 1,
644
- onTogglePassword: O
645
- })) : a(ae) ? (y(), D(a(Se), {
1017
+ class: "vv-input-text__icon vv-input-text__icon-after"
1018
+ }, s(F) ? s(le) : s(q)), null, 16)) : s(V) ? (g(), P(s(Pe), {
646
1019
  key: 2,
647
- onStepUp: z,
648
- onStepDown: K
649
- })) : a(le) ? (y(), D(a(he), {
1020
+ onTogglePassword: D
1021
+ })) : s(ye) ? (g(), P(s(Be), {
650
1022
  key: 3,
651
- onClear: G
652
- })) : R("", !0)
1023
+ onStepUp: ne,
1024
+ onStepDown: ae
1025
+ })) : s(we) ? (g(), P(s(He), {
1026
+ key: 4,
1027
+ onClear: re
1028
+ })) : O("", !0)
653
1029
  ]),
654
- a(f) ? (y(), W("span", Qe, [
655
- F(r.$slots, "count", V(j(a($))), () => [
656
- Ee(ee(a(re)), 1)
1030
+ c.$slots.after ? (g(), H("div", Pt, [
1031
+ J(c.$slots, "after", G(Q(s(K))))
1032
+ ])) : O("", !0),
1033
+ s(i) ? (g(), H("span", Bt, [
1034
+ J(c.$slots, "count", G(Q(s(K))), () => [
1035
+ Me(ue(s(Ee)), 1)
657
1036
  ])
658
- ])) : R("", !0)
1037
+ ])) : O("", !0)
659
1038
  ]),
660
- Ie(a(me), {
661
- id: a(v),
1039
+ $e(s(Te), {
1040
+ id: s(E),
662
1041
  class: "vv-input-text__hint"
663
1042
  }, null, 8, ["id"])
664
1043
  ], 2));
665
1044
  }
666
1045
  });
667
1046
  export {
668
- nt as default
1047
+ Vt as default
669
1048
  };