@volverjs/ui-vue 0.0.13-beta.9 → 0.0.14
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.
- package/bin/icons.cjs +2 -2
- package/bin/icons.js +44 -43
- package/dist/components/VvAccordion/VvAccordion.es.js +121 -119
- package/dist/components/VvAccordion/VvAccordion.umd.js +1 -1
- package/dist/components/VvAccordionGroup/VvAccordionGroup.es.js +218 -216
- package/dist/components/VvAccordionGroup/VvAccordionGroup.umd.js +1 -1
- package/dist/components/VvAction/VvAction.es.js +46 -48
- package/dist/components/VvAction/VvAction.umd.js +1 -1
- package/dist/components/VvAlert/VvAlert.es.js +46 -46
- package/dist/components/VvAlert/VvAlert.umd.js +1 -1
- package/dist/components/VvAlertGroup/VvAlertGroup.es.js +66 -66
- package/dist/components/VvAlertGroup/VvAlertGroup.umd.js +1 -1
- package/dist/components/VvAvatar/VvAvatar.es.js +47 -49
- package/dist/components/VvAvatar/VvAvatar.umd.js +1 -1
- package/dist/components/VvAvatarGroup/VvAvatarGroup.es.js +66 -68
- package/dist/components/VvAvatarGroup/VvAvatarGroup.umd.js +1 -1
- package/dist/components/VvBadge/VvBadge.es.js +43 -45
- package/dist/components/VvBadge/VvBadge.umd.js +1 -1
- package/dist/components/VvBreadcrumb/VvBreadcrumb.es.js +77 -79
- package/dist/components/VvBreadcrumb/VvBreadcrumb.umd.js +1 -1
- package/dist/components/VvButton/VvButton.es.js +63 -65
- package/dist/components/VvButton/VvButton.umd.js +1 -1
- package/dist/components/VvButtonGroup/VvButtonGroup.es.js +56 -58
- package/dist/components/VvButtonGroup/VvButtonGroup.umd.js +1 -1
- package/dist/components/VvCard/VvCard.es.js +53 -55
- package/dist/components/VvCard/VvCard.umd.js +1 -1
- package/dist/components/VvCheckbox/VvCheckbox.es.js +67 -69
- package/dist/components/VvCheckbox/VvCheckbox.umd.js +1 -1
- package/dist/components/VvCheckboxGroup/VvCheckboxGroup.es.js +88 -90
- package/dist/components/VvCheckboxGroup/VvCheckboxGroup.umd.js +1 -1
- package/dist/components/VvCombobox/VvCombobox.es.js +836 -825
- package/dist/components/VvCombobox/VvCombobox.umd.js +1 -1
- package/dist/components/VvDialog/VvDialog.es.js +58 -60
- package/dist/components/VvDialog/VvDialog.umd.js +1 -1
- package/dist/components/VvDropdown/VvDropdown.es.js +228 -227
- package/dist/components/VvDropdown/VvDropdown.umd.js +1 -1
- package/dist/components/VvDropdown/VvDropdown.vue.d.ts +5 -93
- package/dist/components/VvDropdownAction/VvDropdownAction.es.js +87 -89
- package/dist/components/VvDropdownAction/VvDropdownAction.umd.js +1 -1
- package/dist/components/VvDropdownItem/VvDropdownItem.es.js +54 -56
- package/dist/components/VvDropdownItem/VvDropdownItem.umd.js +1 -1
- package/dist/components/VvDropdownOptgroup/VvDropdownOptgroup.es.js +34 -36
- package/dist/components/VvDropdownOptgroup/VvDropdownOptgroup.umd.js +1 -1
- package/dist/components/VvDropdownOption/VvDropdownOption.es.js +63 -65
- package/dist/components/VvDropdownOption/VvDropdownOption.umd.js +1 -1
- package/dist/components/VvIcon/VvIcon.es.js +40 -42
- package/dist/components/VvIcon/VvIcon.umd.js +1 -1
- package/dist/components/VvInputFile/VvInputFile.es.js +129 -131
- package/dist/components/VvInputFile/VvInputFile.umd.js +1 -1
- package/dist/components/VvInputText/VvInputText.es.js +445 -444
- package/dist/components/VvInputText/VvInputText.umd.js +1 -1
- package/dist/components/VvNav/VvNav.es.js +84 -86
- package/dist/components/VvNav/VvNav.umd.js +1 -1
- package/dist/components/VvNavItem/VvNavItem.es.js +51 -53
- package/dist/components/VvNavItem/VvNavItem.umd.js +1 -1
- package/dist/components/VvProgress/VvProgress.es.js +40 -42
- package/dist/components/VvProgress/VvProgress.umd.js +1 -1
- package/dist/components/VvRadio/VvRadio.es.js +58 -60
- package/dist/components/VvRadio/VvRadio.umd.js +1 -1
- package/dist/components/VvRadioGroup/VvRadioGroup.es.js +63 -65
- package/dist/components/VvRadioGroup/VvRadioGroup.umd.js +1 -1
- package/dist/components/VvSelect/VvSelect.es.js +89 -91
- package/dist/components/VvSelect/VvSelect.umd.js +1 -1
- package/dist/components/VvTab/VvTab.es.js +85 -87
- package/dist/components/VvTab/VvTab.umd.js +1 -1
- package/dist/components/VvTextarea/VvTextarea.es.js +393 -392
- package/dist/components/VvTextarea/VvTextarea.umd.js +1 -1
- package/dist/components/VvTooltip/VvTooltip.es.js +35 -37
- package/dist/components/VvTooltip/VvTooltip.umd.js +1 -1
- package/dist/components/VvVirtualScroll/VvVirtualScroll.vue.d.ts +2 -2
- package/dist/components/index.es.js +1852 -1835
- package/dist/components/index.umd.js +1 -1
- package/dist/composables/index.es.js +90 -85
- package/dist/composables/index.umd.js +2 -2
- package/dist/composables/useTextCount.d.ts +1 -1
- package/dist/composables/useVirtualScroll.d.ts +4 -4
- package/dist/directives/index.es.js +177 -601
- package/dist/directives/index.umd.js +1 -420
- package/dist/directives/v-contextmenu.es.js +48 -471
- package/dist/directives/v-contextmenu.umd.js +1 -420
- package/dist/directives/v-tooltip.es.js +40 -42
- package/dist/directives/v-tooltip.umd.js +1 -1
- package/dist/icons.d.ts +0 -3
- package/dist/icons.es.js +18 -21
- package/dist/icons.umd.js +1 -1
- package/dist/index.es.js +48 -48
- package/dist/index.umd.js +1 -1
- package/dist/json-render/index.es.js +1961 -1944
- package/dist/json-render/index.umd.js +1 -1
- package/dist/stories/AccordionGroup/AccordionGroupSlots.stories.d.ts +14 -14
- package/dist/stories/CheckboxGroup/CheckboxGroup.settings.d.ts +1 -1
- package/dist/stories/Radio/Radio.settings.d.ts +1 -1
- package/dist/stories/RadioGroup/RadioGroup.settings.d.ts +1 -1
- package/dist/types/floating-ui.d.ts +14 -5
- package/package.json +58 -52
- package/src/Volver.ts +326 -0
- package/src/assets/icons/detailed/add-circle.svg +12 -0
- package/src/assets/icons/detailed/add.svg +8 -0
- package/src/assets/icons/detailed/align-center.svg +12 -0
- package/src/assets/icons/detailed/align-justify.svg +12 -0
- package/src/assets/icons/detailed/align-left.svg +12 -0
- package/src/assets/icons/detailed/align-right.svg +12 -0
- package/src/assets/icons/detailed/analysis-2.svg +20 -0
- package/src/assets/icons/detailed/analysis-3.svg +8 -0
- package/src/assets/icons/detailed/analysis.svg +16 -0
- package/src/assets/icons/detailed/apple.svg +16 -0
- package/src/assets/icons/detailed/arrow-down.svg +8 -0
- package/src/assets/icons/detailed/arrow-left.svg +8 -0
- package/src/assets/icons/detailed/arrow-right.svg +8 -0
- package/src/assets/icons/detailed/arrow-up.svg +8 -0
- package/src/assets/icons/detailed/attachment.svg +8 -0
- package/src/assets/icons/detailed/back-to-front.svg +17 -0
- package/src/assets/icons/detailed/bell-active.svg +14 -0
- package/src/assets/icons/detailed/bell.svg +14 -0
- package/src/assets/icons/detailed/bold.svg +8 -0
- package/src/assets/icons/detailed/bookmark-active.svg +12 -0
- package/src/assets/icons/detailed/bookmark.svg +12 -0
- package/src/assets/icons/detailed/building.svg +26 -0
- package/src/assets/icons/detailed/bullet-list.svg +22 -0
- package/src/assets/icons/detailed/calendar.svg +26 -0
- package/src/assets/icons/detailed/camera-off.svg +12 -0
- package/src/assets/icons/detailed/camera-on.svg +17 -0
- package/src/assets/icons/detailed/catalog.svg +15 -0
- package/src/assets/icons/detailed/certificate.svg +10 -0
- package/src/assets/icons/detailed/chat.svg +6 -0
- package/src/assets/icons/detailed/check-badge.svg +9 -0
- package/src/assets/icons/detailed/check-circle.svg +10 -0
- package/src/assets/icons/detailed/check.svg +6 -0
- package/src/assets/icons/detailed/checkbox.svg +8 -0
- package/src/assets/icons/detailed/chevron-down-circle.svg +10 -0
- package/src/assets/icons/detailed/chevron-down.svg +6 -0
- package/src/assets/icons/detailed/chevron-left-circle.svg +10 -0
- package/src/assets/icons/detailed/chevron-left.svg +6 -0
- package/src/assets/icons/detailed/chevron-right-circle.svg +7 -0
- package/src/assets/icons/detailed/chevron-up-circle.svg +10 -0
- package/src/assets/icons/detailed/chevron-up.svg +6 -0
- package/src/assets/icons/detailed/circle.svg +8 -0
- package/src/assets/icons/detailed/classroom.svg +38 -0
- package/src/assets/icons/detailed/clear-field.svg +14 -0
- package/src/assets/icons/detailed/clear-style.svg +9 -0
- package/src/assets/icons/detailed/close-circle.svg +14 -0
- package/src/assets/icons/detailed/close-loader.svg +6 -0
- package/src/assets/icons/detailed/close.svg +8 -0
- package/src/assets/icons/detailed/coffee.svg +21 -0
- package/src/assets/icons/detailed/color.svg +20 -0
- package/src/assets/icons/detailed/contact-us.svg +27 -0
- package/src/assets/icons/detailed/copy.svg +10 -0
- package/src/assets/icons/detailed/courses.svg +22 -0
- package/src/assets/icons/detailed/dashboard.svg +20 -0
- package/src/assets/icons/detailed/download.svg +10 -0
- package/src/assets/icons/detailed/drag.svg +10 -0
- package/src/assets/icons/detailed/duplicate.svg +23 -0
- package/src/assets/icons/detailed/edit.svg +16 -0
- package/src/assets/icons/detailed/elearning.svg +13 -0
- package/src/assets/icons/detailed/email.svg +11 -0
- package/src/assets/icons/detailed/error-2.svg +8 -0
- package/src/assets/icons/detailed/error.svg +12 -0
- package/src/assets/icons/detailed/exercise.svg +26 -0
- package/src/assets/icons/detailed/external-link.svg +11 -0
- package/src/assets/icons/detailed/extract.svg +20 -0
- package/src/assets/icons/detailed/eye-off.svg +15 -0
- package/src/assets/icons/detailed/eye-on.svg +8 -0
- package/src/assets/icons/detailed/fail.svg +11 -0
- package/src/assets/icons/detailed/fast-back.svg +20 -0
- package/src/assets/icons/detailed/fast-forward.svg +20 -0
- package/src/assets/icons/detailed/file-add.svg +19 -0
- package/src/assets/icons/detailed/file-duplicate.svg +16 -0
- package/src/assets/icons/detailed/file-remove.svg +17 -0
- package/src/assets/icons/detailed/file-required.svg +23 -0
- package/src/assets/icons/detailed/file.svg +13 -0
- package/src/assets/icons/detailed/filter-2.svg +22 -0
- package/src/assets/icons/detailed/filter-active.svg +12 -0
- package/src/assets/icons/detailed/filter.svg +12 -0
- package/src/assets/icons/detailed/flag.svg +11 -0
- package/src/assets/icons/detailed/folder.svg +14 -0
- package/src/assets/icons/detailed/full-width.svg +11 -0
- package/src/assets/icons/detailed/go-to-back.svg +19 -0
- package/src/assets/icons/detailed/grid.svg +20 -0
- package/src/assets/icons/detailed/group-add.svg +24 -0
- package/src/assets/icons/detailed/group.svg +16 -0
- package/src/assets/icons/detailed/heart-active.svg +12 -0
- package/src/assets/icons/detailed/heart.svg +12 -0
- package/src/assets/icons/detailed/highlighter.svg +10 -0
- package/src/assets/icons/detailed/home.svg +12 -0
- package/src/assets/icons/detailed/hourglass.svg +12 -0
- package/src/assets/icons/detailed/image.svg +15 -0
- package/src/assets/icons/detailed/info-badge.svg +9 -0
- package/src/assets/icons/detailed/information.svg +12 -0
- package/src/assets/icons/detailed/italic.svg +10 -0
- package/src/assets/icons/detailed/key.svg +5 -0
- package/src/assets/icons/detailed/language.svg +14 -0
- package/src/assets/icons/detailed/learning-path.svg +7 -0
- package/src/assets/icons/detailed/light-off.svg +10 -0
- package/src/assets/icons/detailed/light-on.svg +18 -0
- package/src/assets/icons/detailed/link.svg +12 -0
- package/src/assets/icons/detailed/lock.svg +13 -0
- package/src/assets/icons/detailed/login.svg +11 -0
- package/src/assets/icons/detailed/logout.svg +11 -0
- package/src/assets/icons/detailed/maximaze.svg +12 -0
- package/src/assets/icons/detailed/menu.svg +9 -0
- package/src/assets/icons/detailed/merge.svg +20 -0
- package/src/assets/icons/detailed/minimize.svg +14 -0
- package/src/assets/icons/detailed/mixed-class.svg +40 -0
- package/src/assets/icons/detailed/more-horizontal.svg +7 -0
- package/src/assets/icons/detailed/more-vertical.svg +7 -0
- package/src/assets/icons/detailed/news.svg +12 -0
- package/src/assets/icons/detailed/no-prerequisites.svg +13 -0
- package/src/assets/icons/detailed/notes.svg +14 -0
- package/src/assets/icons/detailed/number-code.svg +34 -0
- package/src/assets/icons/detailed/numbered-list.svg +18 -0
- package/src/assets/icons/detailed/on-site.svg +22 -0
- package/src/assets/icons/detailed/order-down.svg +12 -0
- package/src/assets/icons/detailed/order-up.svg +12 -0
- package/src/assets/icons/detailed/paste.svg +14 -0
- package/src/assets/icons/detailed/pausa.svg +8 -0
- package/src/assets/icons/detailed/pdf.svg +12 -0
- package/src/assets/icons/detailed/phone.svg +10 -0
- package/src/assets/icons/detailed/pin-map.svg +12 -0
- package/src/assets/icons/detailed/pin.svg +15 -0
- package/src/assets/icons/detailed/pizza.svg +17 -0
- package/src/assets/icons/detailed/play.svg +11 -0
- package/src/assets/icons/detailed/plug-in.svg +10 -0
- package/src/assets/icons/detailed/pointer.svg +12 -0
- package/src/assets/icons/detailed/printer.svg +26 -0
- package/src/assets/icons/detailed/profile-add.svg +20 -0
- package/src/assets/icons/detailed/profile.svg +10 -0
- package/src/assets/icons/detailed/push-pin-off.svg +11 -0
- package/src/assets/icons/detailed/push-pin-on.svg +9 -0
- package/src/assets/icons/detailed/qrcode.svg +28 -0
- package/src/assets/icons/detailed/question-badge.svg +10 -0
- package/src/assets/icons/detailed/radio.svg +8 -0
- package/src/assets/icons/detailed/redo.svg +9 -0
- package/src/assets/icons/detailed/relations.svg +32 -0
- package/src/assets/icons/detailed/reload.svg +13 -0
- package/src/assets/icons/detailed/remove-circle.svg +10 -0
- package/src/assets/icons/detailed/remove.svg +5 -0
- package/src/assets/icons/detailed/reorder.svg +12 -0
- package/src/assets/icons/detailed/repeat.svg +12 -0
- package/src/assets/icons/detailed/repository.svg +18 -0
- package/src/assets/icons/detailed/request-form.svg +18 -0
- package/src/assets/icons/detailed/resize-100%.svg +15 -0
- package/src/assets/icons/detailed/resize-height.svg +12 -0
- package/src/assets/icons/detailed/resize-width.svg +12 -0
- package/src/assets/icons/detailed/search.svg +12 -0
- package/src/assets/icons/detailed/sequential-prerequisites.svg +20 -0
- package/src/assets/icons/detailed/settings.svg +14 -0
- package/src/assets/icons/detailed/share.svg +20 -0
- package/src/assets/icons/detailed/sketch.svg +12 -0
- package/src/assets/icons/detailed/skills.svg +20 -0
- package/src/assets/icons/detailed/skip-back.svg +12 -0
- package/src/assets/icons/detailed/skip-forward.svg +13 -0
- package/src/assets/icons/detailed/sms.svg +18 -0
- package/src/assets/icons/detailed/sso-access.svg +18 -0
- package/src/assets/icons/detailed/star-active.svg +6 -0
- package/src/assets/icons/detailed/star.svg +6 -0
- package/src/assets/icons/detailed/success.svg +10 -0
- package/src/assets/icons/detailed/sun.svg +24 -0
- package/src/assets/icons/detailed/sunrise.svg +18 -0
- package/src/assets/icons/detailed/support.svg +18 -0
- package/src/assets/icons/detailed/survey.svg +24 -0
- package/src/assets/icons/detailed/table.svg +11 -0
- package/src/assets/icons/detailed/tematic-channels.svg +12 -0
- package/src/assets/icons/detailed/test.svg +14 -0
- package/src/assets/icons/detailed/text-body.svg +8 -0
- package/src/assets/icons/detailed/text-edit.svg +11 -0
- package/src/assets/icons/detailed/text-style.svg +10 -0
- package/src/assets/icons/detailed/time.svg +10 -0
- package/src/assets/icons/detailed/toilet-piper.svg +15 -0
- package/src/assets/icons/detailed/training-points.svg +16 -0
- package/src/assets/icons/detailed/trash.svg +19 -0
- package/src/assets/icons/detailed/underline.svg +8 -0
- package/src/assets/icons/detailed/undo.svg +9 -0
- package/src/assets/icons/detailed/unlock.svg +13 -0
- package/src/assets/icons/detailed/upload.svg +10 -0
- package/src/assets/icons/detailed/user-add.svg +16 -0
- package/src/assets/icons/detailed/user-badge.svg +11 -0
- package/src/assets/icons/detailed/user.svg +8 -0
- package/src/assets/icons/detailed/video-off.svg +17 -0
- package/src/assets/icons/detailed/video-on.svg +16 -0
- package/src/assets/icons/detailed/video-rec.svg +19 -0
- package/src/assets/icons/detailed/view-card.svg +12 -0
- package/src/assets/icons/detailed/view-list.svg +20 -0
- package/src/assets/icons/detailed/view.svg +7 -0
- package/src/assets/icons/detailed/voice-off.svg +14 -0
- package/src/assets/icons/detailed/voice-on.svg +16 -0
- package/src/assets/icons/detailed/volume-down.svg +14 -0
- package/src/assets/icons/detailed/volume-off.svg +19 -0
- package/src/assets/icons/detailed/volume-up.svg +16 -0
- package/src/assets/icons/detailed/warning.svg +16 -0
- package/src/assets/icons/detailed/webinar.svg +57 -0
- package/src/assets/icons/detailed/whiteboard.svg +16 -0
- package/src/assets/icons/detailed/wine.svg +22 -0
- package/src/assets/icons/detailed/zip.svg +17 -0
- package/src/assets/icons/detailed/zoom-in.svg +18 -0
- package/src/assets/icons/detailed/zoom-out.svg +16 -0
- package/src/assets/icons/detailed.json +1 -0
- package/src/assets/icons/normal/add-circle.svg +12 -0
- package/src/assets/icons/normal/add.svg +4 -0
- package/src/assets/icons/normal/align-center.svg +11 -0
- package/src/assets/icons/normal/align-justify.svg +11 -0
- package/src/assets/icons/normal/align-left.svg +11 -0
- package/src/assets/icons/normal/align-right.svg +11 -0
- package/src/assets/icons/normal/analysis-2.svg +18 -0
- package/src/assets/icons/normal/analysis-3.svg +8 -0
- package/src/assets/icons/normal/analysis.svg +14 -0
- package/src/assets/icons/normal/apple.svg +16 -0
- package/src/assets/icons/normal/arrow-down.svg +8 -0
- package/src/assets/icons/normal/arrow-left.svg +8 -0
- package/src/assets/icons/normal/arrow-right.svg +8 -0
- package/src/assets/icons/normal/arrow-up.svg +8 -0
- package/src/assets/icons/normal/attachment.svg +6 -0
- package/src/assets/icons/normal/back-to-front.svg +15 -0
- package/src/assets/icons/normal/bell-active.svg +14 -0
- package/src/assets/icons/normal/bell.svg +14 -0
- package/src/assets/icons/normal/bold.svg +8 -0
- package/src/assets/icons/normal/bookmark active.svg +12 -0
- package/src/assets/icons/normal/bookmark.svg +10 -0
- package/src/assets/icons/normal/building.svg +21 -0
- package/src/assets/icons/normal/bulleted-list.svg +23 -0
- package/src/assets/icons/normal/calendar.svg +20 -0
- package/src/assets/icons/normal/camera-off.svg +17 -0
- package/src/assets/icons/normal/camera-on.svg +16 -0
- package/src/assets/icons/normal/catalog.svg +13 -0
- package/src/assets/icons/normal/certificate.svg +12 -0
- package/src/assets/icons/normal/chat.svg +6 -0
- package/src/assets/icons/normal/check-badge.svg +9 -0
- package/src/assets/icons/normal/check-circle.svg +10 -0
- package/src/assets/icons/normal/check.svg +4 -0
- package/src/assets/icons/normal/checkbox.svg +8 -0
- package/src/assets/icons/normal/chevron-down-circle.svg +10 -0
- package/src/assets/icons/normal/chevron-down.svg +6 -0
- package/src/assets/icons/normal/chevron-left-circle.svg +10 -0
- package/src/assets/icons/normal/chevron-left.svg +6 -0
- package/src/assets/icons/normal/chevron-right-circle.svg +10 -0
- package/src/assets/icons/normal/chevron-right.svg +7 -0
- package/src/assets/icons/normal/chevron-up-circle.svg +10 -0
- package/src/assets/icons/normal/chevron-up.svg +6 -0
- package/src/assets/icons/normal/circle.svg +8 -0
- package/src/assets/icons/normal/classroom.svg +36 -0
- package/src/assets/icons/normal/clear-field.svg +14 -0
- package/src/assets/icons/normal/clear-style.svg +18 -0
- package/src/assets/icons/normal/close-circle.svg +14 -0
- package/src/assets/icons/normal/close-loader.svg +6 -0
- package/src/assets/icons/normal/close.svg +8 -0
- package/src/assets/icons/normal/coffee.svg +26 -0
- package/src/assets/icons/normal/color.svg +18 -0
- package/src/assets/icons/normal/contact-us.svg +29 -0
- package/src/assets/icons/normal/copy.svg +10 -0
- package/src/assets/icons/normal/courses.svg +22 -0
- package/src/assets/icons/normal/dashboard.svg +18 -0
- package/src/assets/icons/normal/download.svg +10 -0
- package/src/assets/icons/normal/drag.svg +5 -0
- package/src/assets/icons/normal/duplicate.svg +22 -0
- package/src/assets/icons/normal/edit.svg +16 -0
- package/src/assets/icons/normal/elearning.svg +16 -0
- package/src/assets/icons/normal/email.svg +11 -0
- package/src/assets/icons/normal/error-2.svg +8 -0
- package/src/assets/icons/normal/error.svg +12 -0
- package/src/assets/icons/normal/exercise.svg +26 -0
- package/src/assets/icons/normal/external-link.svg +11 -0
- package/src/assets/icons/normal/extract.svg +14 -0
- package/src/assets/icons/normal/eye-off.svg +14 -0
- package/src/assets/icons/normal/eye-on.svg +16 -0
- package/src/assets/icons/normal/fail.svg +11 -0
- package/src/assets/icons/normal/fast-back.svg +19 -0
- package/src/assets/icons/normal/fast-forward.svg +17 -0
- package/src/assets/icons/normal/file-add.svg +16 -0
- package/src/assets/icons/normal/file-duplicate.svg +22 -0
- package/src/assets/icons/normal/file-remove.svg +14 -0
- package/src/assets/icons/normal/file-required.svg +24 -0
- package/src/assets/icons/normal/file.svg +13 -0
- package/src/assets/icons/normal/filter-2.svg +20 -0
- package/src/assets/icons/normal/filter-active.svg +12 -0
- package/src/assets/icons/normal/filter.svg +12 -0
- package/src/assets/icons/normal/flag.svg +10 -0
- package/src/assets/icons/normal/folder.svg +12 -0
- package/src/assets/icons/normal/full-width.svg +9 -0
- package/src/assets/icons/normal/go-to-back.svg +19 -0
- package/src/assets/icons/normal/grid.svg +20 -0
- package/src/assets/icons/normal/group-add.svg +18 -0
- package/src/assets/icons/normal/group.svg +14 -0
- package/src/assets/icons/normal/heart-active.svg +10 -0
- package/src/assets/icons/normal/heart.svg +10 -0
- package/src/assets/icons/normal/highlighter.svg +11 -0
- package/src/assets/icons/normal/home.svg +12 -0
- package/src/assets/icons/normal/hourglass.svg +8 -0
- package/src/assets/icons/normal/image.svg +15 -0
- package/src/assets/icons/normal/info-badge.svg +9 -0
- package/src/assets/icons/normal/information.svg +12 -0
- package/src/assets/icons/normal/italic.svg +10 -0
- package/src/assets/icons/normal/key.svg +8 -0
- package/src/assets/icons/normal/language.svg +14 -0
- package/src/assets/icons/normal/learning-path.svg +7 -0
- package/src/assets/icons/normal/light-off.svg +10 -0
- package/src/assets/icons/normal/light-on.svg +17 -0
- package/src/assets/icons/normal/link.svg +12 -0
- package/src/assets/icons/normal/lock.svg +12 -0
- package/src/assets/icons/normal/login.svg +10 -0
- package/src/assets/icons/normal/logout.svg +10 -0
- package/src/assets/icons/normal/maximize.svg +10 -0
- package/src/assets/icons/normal/menu.svg +8 -0
- package/src/assets/icons/normal/merge.svg +20 -0
- package/src/assets/icons/normal/minimize.svg +12 -0
- package/src/assets/icons/normal/mixed-class.svg +36 -0
- package/src/assets/icons/normal/more-horizontal.svg +7 -0
- package/src/assets/icons/normal/more-vertical.svg +7 -0
- package/src/assets/icons/normal/news.svg +9 -0
- package/src/assets/icons/normal/no-prerequisites.svg +12 -0
- package/src/assets/icons/normal/notes.svg +15 -0
- package/src/assets/icons/normal/number-code.svg +34 -0
- package/src/assets/icons/normal/numbered-list.svg +19 -0
- package/src/assets/icons/normal/on-site.svg +18 -0
- package/src/assets/icons/normal/order-down.svg +12 -0
- package/src/assets/icons/normal/order-up.svg +11 -0
- package/src/assets/icons/normal/paste.svg +14 -0
- package/src/assets/icons/normal/pausa.svg +7 -0
- package/src/assets/icons/normal/pdf.svg +12 -0
- package/src/assets/icons/normal/phone.svg +10 -0
- package/src/assets/icons/normal/pin-map.svg +10 -0
- package/src/assets/icons/normal/pin.svg +12 -0
- package/src/assets/icons/normal/pizza.svg +17 -0
- package/src/assets/icons/normal/play.svg +9 -0
- package/src/assets/icons/normal/plug-in.svg +10 -0
- package/src/assets/icons/normal/pointer.svg +12 -0
- package/src/assets/icons/normal/printer.svg +28 -0
- package/src/assets/icons/normal/profile-add.svg +28 -0
- package/src/assets/icons/normal/profile.svg +15 -0
- package/src/assets/icons/normal/push pin on.svg +9 -0
- package/src/assets/icons/normal/push-pin-off.svg +23 -0
- package/src/assets/icons/normal/qrcode.svg +26 -0
- package/src/assets/icons/normal/question-badge.svg +10 -0
- package/src/assets/icons/normal/radio.svg +8 -0
- package/src/assets/icons/normal/redo.svg +9 -0
- package/src/assets/icons/normal/relations.svg +28 -0
- package/src/assets/icons/normal/reload.svg +12 -0
- package/src/assets/icons/normal/remove-circle.svg +10 -0
- package/src/assets/icons/normal/remove.svg +4 -0
- package/src/assets/icons/normal/reorder.svg +12 -0
- package/src/assets/icons/normal/repeat.svg +12 -0
- package/src/assets/icons/normal/repository.svg +18 -0
- package/src/assets/icons/normal/request-form.svg +18 -0
- package/src/assets/icons/normal/resize-100%.svg +17 -0
- package/src/assets/icons/normal/resize-height.svg +12 -0
- package/src/assets/icons/normal/resize-width.svg +12 -0
- package/src/assets/icons/normal/search.svg +10 -0
- package/src/assets/icons/normal/sequential-prerequisites.svg +20 -0
- package/src/assets/icons/normal/settings.svg +14 -0
- package/src/assets/icons/normal/share.svg +20 -0
- package/src/assets/icons/normal/sketch.svg +11 -0
- package/src/assets/icons/normal/skills.svg +16 -0
- package/src/assets/icons/normal/skip-back.svg +12 -0
- package/src/assets/icons/normal/skip-forward.svg +13 -0
- package/src/assets/icons/normal/sms.svg +20 -0
- package/src/assets/icons/normal/sso-access.svg +20 -0
- package/src/assets/icons/normal/star-active.svg +4 -0
- package/src/assets/icons/normal/star.svg +4 -0
- package/src/assets/icons/normal/success.svg +10 -0
- package/src/assets/icons/normal/sun.svg +24 -0
- package/src/assets/icons/normal/sunrise.svg +18 -0
- package/src/assets/icons/normal/support.svg +18 -0
- package/src/assets/icons/normal/survey.svg +24 -0
- package/src/assets/icons/normal/table.svg +11 -0
- package/src/assets/icons/normal/tematic-channels.svg +10 -0
- package/src/assets/icons/normal/test.svg +15 -0
- package/src/assets/icons/normal/text-body.svg +8 -0
- package/src/assets/icons/normal/text-edit.svg +11 -0
- package/src/assets/icons/normal/text-style.svg +10 -0
- package/src/assets/icons/normal/time.svg +10 -0
- package/src/assets/icons/normal/toilet-paper.svg +15 -0
- package/src/assets/icons/normal/training-points.svg +16 -0
- package/src/assets/icons/normal/trash.svg +19 -0
- package/src/assets/icons/normal/underline.svg +8 -0
- package/src/assets/icons/normal/undo.svg +9 -0
- package/src/assets/icons/normal/unlock.svg +13 -0
- package/src/assets/icons/normal/upload.svg +10 -0
- package/src/assets/icons/normal/user-add.svg +14 -0
- package/src/assets/icons/normal/user-badge.svg +11 -0
- package/src/assets/icons/normal/user.svg +5 -0
- package/src/assets/icons/normal/video-off.svg +11 -0
- package/src/assets/icons/normal/video-on.svg +20 -0
- package/src/assets/icons/normal/video-rec.svg +23 -0
- package/src/assets/icons/normal/view-card.svg +10 -0
- package/src/assets/icons/normal/view-list.svg +18 -0
- package/src/assets/icons/normal/view.svg +8 -0
- package/src/assets/icons/normal/voice-off.svg +18 -0
- package/src/assets/icons/normal/voice-on.svg +15 -0
- package/src/assets/icons/normal/volume-down.svg +14 -0
- package/src/assets/icons/normal/volume-off.svg +18 -0
- package/src/assets/icons/normal/volume-up.svg +16 -0
- package/src/assets/icons/normal/warning.svg +16 -0
- package/src/assets/icons/normal/webinar.svg +36 -0
- package/src/assets/icons/normal/whiteboard.svg +17 -0
- package/src/assets/icons/normal/wine.svg +22 -0
- package/src/assets/icons/normal/zip.svg +19 -0
- package/src/assets/icons/normal/zoom-in.svg +16 -0
- package/src/assets/icons/normal/zoom-out.svg +14 -0
- package/src/assets/icons/normal.json +1 -0
- package/src/assets/icons/simple/add-circle.svg +12 -0
- package/src/assets/icons/simple/add.svg +8 -0
- package/src/assets/icons/simple/align-center.svg +12 -0
- package/src/assets/icons/simple/align-justify.svg +12 -0
- package/src/assets/icons/simple/align-left.svg +12 -0
- package/src/assets/icons/simple/align-right.svg +12 -0
- package/src/assets/icons/simple/analysis-2.svg +21 -0
- package/src/assets/icons/simple/analysis-3.svg +8 -0
- package/src/assets/icons/simple/analysis.svg +16 -0
- package/src/assets/icons/simple/apple.svg +18 -0
- package/src/assets/icons/simple/arrow-down.svg +8 -0
- package/src/assets/icons/simple/arrow-left.svg +8 -0
- package/src/assets/icons/simple/arrow-right.svg +8 -0
- package/src/assets/icons/simple/arrow-up.svg +8 -0
- package/src/assets/icons/simple/attachment.svg +10 -0
- package/src/assets/icons/simple/bck-to-front.svg +19 -0
- package/src/assets/icons/simple/bell-active.svg +14 -0
- package/src/assets/icons/simple/bell.svg +14 -0
- package/src/assets/icons/simple/bold.svg +8 -0
- package/src/assets/icons/simple/bookmark-active.svg +12 -0
- package/src/assets/icons/simple/bookmark.svg +12 -0
- package/src/assets/icons/simple/building.svg +25 -0
- package/src/assets/icons/simple/bulleted-list.svg +22 -0
- package/src/assets/icons/simple/calendar.svg +22 -0
- package/src/assets/icons/simple/camera-off.svg +12 -0
- package/src/assets/icons/simple/camera-on.svg +16 -0
- package/src/assets/icons/simple/catalog.svg +14 -0
- package/src/assets/icons/simple/certificate.svg +15 -0
- package/src/assets/icons/simple/chat.svg +9 -0
- package/src/assets/icons/simple/check-badge.svg +9 -0
- package/src/assets/icons/simple/check-circle.svg +10 -0
- package/src/assets/icons/simple/check.svg +6 -0
- package/src/assets/icons/simple/checkbox.svg +6 -0
- package/src/assets/icons/simple/chevron-down-circle.svg +10 -0
- package/src/assets/icons/simple/chevron-down.svg +6 -0
- package/src/assets/icons/simple/chevron-left-circle.svg +10 -0
- package/src/assets/icons/simple/chevron-left.svg +6 -0
- package/src/assets/icons/simple/chevron-right-circle.svg +10 -0
- package/src/assets/icons/simple/chevron-right.svg +7 -0
- package/src/assets/icons/simple/chevron-up-circle.svg +10 -0
- package/src/assets/icons/simple/chevron-up.svg +6 -0
- package/src/assets/icons/simple/circle.svg +8 -0
- package/src/assets/icons/simple/classroom.svg +38 -0
- package/src/assets/icons/simple/clear-field.svg +11 -0
- package/src/assets/icons/simple/clear-style.svg +15 -0
- package/src/assets/icons/simple/close-circle.svg +14 -0
- package/src/assets/icons/simple/close-loader.svg +6 -0
- package/src/assets/icons/simple/close.svg +10 -0
- package/src/assets/icons/simple/coffee.svg +28 -0
- package/src/assets/icons/simple/color.svg +20 -0
- package/src/assets/icons/simple/contact-us.svg +26 -0
- package/src/assets/icons/simple/copy.svg +10 -0
- package/src/assets/icons/simple/courses.svg +21 -0
- package/src/assets/icons/simple/dashboard.svg +20 -0
- package/src/assets/icons/simple/download.svg +10 -0
- package/src/assets/icons/simple/drag.svg +10 -0
- package/src/assets/icons/simple/duplicate.svg +24 -0
- package/src/assets/icons/simple/edit.svg +17 -0
- package/src/assets/icons/simple/elearning.svg +17 -0
- package/src/assets/icons/simple/email.svg +11 -0
- package/src/assets/icons/simple/error-2.svg +8 -0
- package/src/assets/icons/simple/error.svg +12 -0
- package/src/assets/icons/simple/exercise.svg +30 -0
- package/src/assets/icons/simple/external-link.svg +13 -0
- package/src/assets/icons/simple/extract.svg +17 -0
- package/src/assets/icons/simple/eye-off.svg +13 -0
- package/src/assets/icons/simple/eye-on.svg +11 -0
- package/src/assets/icons/simple/fail.svg +11 -0
- package/src/assets/icons/simple/fast-back.svg +20 -0
- package/src/assets/icons/simple/fast-forward.svg +19 -0
- package/src/assets/icons/simple/file-add.svg +20 -0
- package/src/assets/icons/simple/file-duplicate.svg +22 -0
- package/src/assets/icons/simple/file-remove.svg +18 -0
- package/src/assets/icons/simple/file-required.svg +24 -0
- package/src/assets/icons/simple/file.svg +14 -0
- package/src/assets/icons/simple/filter-2.svg +24 -0
- package/src/assets/icons/simple/filter-active.svg +13 -0
- package/src/assets/icons/simple/filter.svg +12 -0
- package/src/assets/icons/simple/flag.svg +12 -0
- package/src/assets/icons/simple/folder.svg +14 -0
- package/src/assets/icons/simple/full-width.svg +11 -0
- package/src/assets/icons/simple/go-to-back.svg +18 -0
- package/src/assets/icons/simple/grid.svg +20 -0
- package/src/assets/icons/simple/group-add.svg +24 -0
- package/src/assets/icons/simple/group.svg +18 -0
- package/src/assets/icons/simple/heart-active.svg +12 -0
- package/src/assets/icons/simple/heart.svg +12 -0
- package/src/assets/icons/simple/highlighter.svg +12 -0
- package/src/assets/icons/simple/home.svg +13 -0
- package/src/assets/icons/simple/hourglass.svg +11 -0
- package/src/assets/icons/simple/image.svg +15 -0
- package/src/assets/icons/simple/info-badge.svg +9 -0
- package/src/assets/icons/simple/information.svg +12 -0
- package/src/assets/icons/simple/italic.svg +12 -0
- package/src/assets/icons/simple/key.svg +11 -0
- package/src/assets/icons/simple/language.svg +12 -0
- package/src/assets/icons/simple/learning-path.svg +9 -0
- package/src/assets/icons/simple/light-off.svg +7 -0
- package/src/assets/icons/simple/light-on.svg +18 -0
- package/src/assets/icons/simple/link.svg +14 -0
- package/src/assets/icons/simple/lock.svg +13 -0
- package/src/assets/icons/simple/login.svg +11 -0
- package/src/assets/icons/simple/logout.svg +11 -0
- package/src/assets/icons/simple/maximaze.svg +12 -0
- package/src/assets/icons/simple/menu.svg +10 -0
- package/src/assets/icons/simple/merge.svg +20 -0
- package/src/assets/icons/simple/minimaze.svg +12 -0
- package/src/assets/icons/simple/mixed-class.svg +40 -0
- package/src/assets/icons/simple/more-horizontal.svg +8 -0
- package/src/assets/icons/simple/more-vertical.svg +8 -0
- package/src/assets/icons/simple/news.svg +12 -0
- package/src/assets/icons/simple/no-prerequisites.svg +17 -0
- package/src/assets/icons/simple/notes.svg +14 -0
- package/src/assets/icons/simple/number-code.svg +29 -0
- package/src/assets/icons/simple/numbered-list.svg +18 -0
- package/src/assets/icons/simple/on-site.svg +18 -0
- package/src/assets/icons/simple/order-down.svg +12 -0
- package/src/assets/icons/simple/order-up.svg +12 -0
- package/src/assets/icons/simple/paste.svg +14 -0
- package/src/assets/icons/simple/pausa.svg +8 -0
- package/src/assets/icons/simple/pdf.svg +12 -0
- package/src/assets/icons/simple/phone.svg +10 -0
- package/src/assets/icons/simple/pin-map.svg +13 -0
- package/src/assets/icons/simple/pin.svg +14 -0
- package/src/assets/icons/simple/pizza.svg +17 -0
- package/src/assets/icons/simple/play.svg +10 -0
- package/src/assets/icons/simple/plug-in.svg +10 -0
- package/src/assets/icons/simple/pointer.svg +6 -0
- package/src/assets/icons/simple/printer.svg +28 -0
- package/src/assets/icons/simple/profile-add.svg +28 -0
- package/src/assets/icons/simple/profile.svg +13 -0
- package/src/assets/icons/simple/push-pin-off.svg +11 -0
- package/src/assets/icons/simple/push-pin-on.svg +12 -0
- package/src/assets/icons/simple/qrcode.svg +26 -0
- package/src/assets/icons/simple/question-badge.svg +10 -0
- package/src/assets/icons/simple/radio.svg +8 -0
- package/src/assets/icons/simple/redo.svg +9 -0
- package/src/assets/icons/simple/relations.svg +28 -0
- package/src/assets/icons/simple/reload.svg +12 -0
- package/src/assets/icons/simple/remove-circle.svg +10 -0
- package/src/assets/icons/simple/remove.svg +6 -0
- package/src/assets/icons/simple/repeart.svg +14 -0
- package/src/assets/icons/simple/repository.svg +18 -0
- package/src/assets/icons/simple/request-form.svg +20 -0
- package/src/assets/icons/simple/resize-100%.svg +15 -0
- package/src/assets/icons/simple/resize-height.svg +12 -0
- package/src/assets/icons/simple/resize-width.svg +14 -0
- package/src/assets/icons/simple/search.svg +10 -0
- package/src/assets/icons/simple/sequential-prerequisites.svg +22 -0
- package/src/assets/icons/simple/settings.svg +17 -0
- package/src/assets/icons/simple/share.svg +21 -0
- package/src/assets/icons/simple/sketch.svg +13 -0
- package/src/assets/icons/simple/skills.svg +17 -0
- package/src/assets/icons/simple/skip-back.svg +14 -0
- package/src/assets/icons/simple/skip-forward.svg +14 -0
- package/src/assets/icons/simple/sms.svg +22 -0
- package/src/assets/icons/simple/sso-access.svg +20 -0
- package/src/assets/icons/simple/star-active.svg +6 -0
- package/src/assets/icons/simple/star.svg +6 -0
- package/src/assets/icons/simple/success.svg +12 -0
- package/src/assets/icons/simple/sun.svg +22 -0
- package/src/assets/icons/simple/sunrise.svg +18 -0
- package/src/assets/icons/simple/support.svg +18 -0
- package/src/assets/icons/simple/survey.svg +32 -0
- package/src/assets/icons/simple/table.svg +11 -0
- package/src/assets/icons/simple/tematic-channels.svg +15 -0
- package/src/assets/icons/simple/test.svg +23 -0
- package/src/assets/icons/simple/text-body.svg +7 -0
- package/src/assets/icons/simple/text-edit.svg +11 -0
- package/src/assets/icons/simple/text-style.svg +10 -0
- package/src/assets/icons/simple/time.svg +10 -0
- package/src/assets/icons/simple/toilet-paper.svg +17 -0
- package/src/assets/icons/simple/training-points.svg +18 -0
- package/src/assets/icons/simple/trash.svg +20 -0
- package/src/assets/icons/simple/underline.svg +9 -0
- package/src/assets/icons/simple/undo.svg +9 -0
- package/src/assets/icons/simple/unlock.svg +15 -0
- package/src/assets/icons/simple/upload.svg +10 -0
- package/src/assets/icons/simple/user-add.svg +18 -0
- package/src/assets/icons/simple/user-badge.svg +12 -0
- package/src/assets/icons/simple/user.svg +8 -0
- package/src/assets/icons/simple/video-off.svg +17 -0
- package/src/assets/icons/simple/video-on.svg +17 -0
- package/src/assets/icons/simple/video-rec.svg +20 -0
- package/src/assets/icons/simple/view-card.svg +12 -0
- package/src/assets/icons/simple/view-list.svg +20 -0
- package/src/assets/icons/simple/view.svg +17 -0
- package/src/assets/icons/simple/voice-off.svg +16 -0
- package/src/assets/icons/simple/voice-on.svg +16 -0
- package/src/assets/icons/simple/volume-down.svg +15 -0
- package/src/assets/icons/simple/volume-off.svg +16 -0
- package/src/assets/icons/simple/volume-up.svg +16 -0
- package/src/assets/icons/simple/warning.svg +14 -0
- package/src/assets/icons/simple/webinar.svg +19 -0
- package/src/assets/icons/simple/whiteboard.svg +16 -0
- package/src/assets/icons/simple/wine.svg +24 -0
- package/src/assets/icons/simple/zip.svg +22 -0
- package/src/assets/icons/simple/zoom-in.svg +18 -0
- package/src/assets/icons/simple/zoom-out.svg +17 -0
- package/src/assets/icons/simple.json +1 -0
- package/src/components/VvAccordion/VvAccordion.vue +181 -0
- package/src/components/VvAccordion/index.ts +81 -0
- package/src/components/VvAccordionGroup/VvAccordionGroup.vue +237 -0
- package/src/components/VvAccordionGroup/index.ts +50 -0
- package/src/components/VvAction/VvAction.vue +163 -0
- package/src/components/VvAction/index.ts +5 -0
- package/src/components/VvAlert/VvAlert.vue +82 -0
- package/src/components/VvAlert/index.ts +170 -0
- package/src/components/VvAlertGroup/VvAlertGroup.vue +65 -0
- package/src/components/VvAlertGroup/index.ts +116 -0
- package/src/components/VvAvatar/VvAvatar.vue +27 -0
- package/src/components/VvAvatar/index.ts +9 -0
- package/src/components/VvAvatarGroup/VvAvatarGroup.vue +70 -0
- package/src/components/VvAvatarGroup/index.ts +28 -0
- package/src/components/VvBadge/VvBadge.vue +21 -0
- package/src/components/VvBadge/index.ts +6 -0
- package/src/components/VvBreadcrumb/VvBreadcrumb.vue +56 -0
- package/src/components/VvBreadcrumb/index.ts +7 -0
- package/src/components/VvButton/VvButton.vue +178 -0
- package/src/components/VvButton/index.ts +125 -0
- package/src/components/VvButtonGroup/VvButtonGroup.vue +82 -0
- package/src/components/VvButtonGroup/index.ts +29 -0
- package/src/components/VvCard/VvCard.vue +37 -0
- package/src/components/VvCard/index.ts +6 -0
- package/src/components/VvCheckbox/VvCheckbox.vue +196 -0
- package/src/components/VvCheckbox/index.ts +65 -0
- package/src/components/VvCheckboxGroup/VvCheckboxGroup.vue +103 -0
- package/src/components/VvCheckboxGroup/index.ts +5 -0
- package/src/components/VvCombobox/VvCombobox.vue +754 -0
- package/src/components/VvCombobox/index.ts +249 -0
- package/src/components/VvDialog/VvDialog.vue +159 -0
- package/src/components/VvDialog/index.ts +48 -0
- package/src/components/VvDropdown/VvDropdown.vue +532 -0
- package/src/components/VvDropdown/VvDropdownAction.vue +44 -0
- package/src/components/VvDropdown/VvDropdownItem.vue +36 -0
- package/src/components/VvDropdown/VvDropdownOptgroup.vue +21 -0
- package/src/components/VvDropdown/VvDropdownOption.vue +55 -0
- package/src/components/VvDropdown/index.ts +66 -0
- package/src/components/VvIcon/README.md +76 -0
- package/src/components/VvIcon/VvIcon.vue +140 -0
- package/src/components/VvIcon/index.ts +90 -0
- package/src/components/VvInputFile/VvInputFile.vue +428 -0
- package/src/components/VvInputFile/index.ts +150 -0
- package/src/components/VvInputText/VvInputText.vue +809 -0
- package/src/components/VvInputText/VvInputTextActions.ts +100 -0
- package/src/components/VvInputText/index.ts +234 -0
- package/src/components/VvNav/VvNav.vue +48 -0
- package/src/components/VvNav/VvNavItem.vue +20 -0
- package/src/components/VvNav/VvNavSeparator.vue +11 -0
- package/src/components/VvNav/index.ts +8 -0
- package/src/components/VvProgress/VvProgress.vue +34 -0
- package/src/components/VvProgress/index.ts +32 -0
- package/src/components/VvRadio/VvRadio.vue +126 -0
- package/src/components/VvRadio/index.ts +46 -0
- package/src/components/VvRadioGroup/VvRadioGroup.vue +107 -0
- package/src/components/VvRadioGroup/index.ts +5 -0
- package/src/components/VvSelect/VvSelect.vue +273 -0
- package/src/components/VvSelect/index.ts +97 -0
- package/src/components/VvTab/VvTab.vue +87 -0
- package/src/components/VvTab/index.ts +19 -0
- package/src/components/VvTextarea/VvTextarea.vue +333 -0
- package/src/components/VvTextarea/index.ts +82 -0
- package/src/components/VvTooltip/VvTooltip.vue +29 -0
- package/src/components/VvTooltip/index.ts +18 -0
- package/src/components/VvVirtualScroll/VvVirtualScroll.vue +123 -0
- package/src/components/common/HintSlot.ts +174 -0
- package/src/components/common/VvInputClearAction.ts +61 -0
- package/src/components/common/VvInputPasswordAction.ts +77 -0
- package/src/components/common/VvInputStepAction.ts +54 -0
- package/src/components/index.ts +34 -0
- package/src/composables/alert/useAlerInject.ts +8 -0
- package/src/composables/alert/useAlert.ts +106 -0
- package/src/composables/alert/useAlertProvide.ts +23 -0
- package/src/composables/dropdown/useDropdownContextmenu.ts +23 -0
- package/src/composables/dropdown/useDropdownInject.ts +26 -0
- package/src/composables/dropdown/useDropdownProvide.ts +96 -0
- package/src/composables/dropdown/useDropdownVirtualElement.ts +54 -0
- package/src/composables/group/useGroupStateInject.ts +55 -0
- package/src/composables/group/useGroupStateProvide.ts +14 -0
- package/src/composables/index.ts +5 -0
- package/src/composables/useBlurhash.ts +79 -0
- package/src/composables/useComponentFocus.ts +16 -0
- package/src/composables/useComponentIcon.ts +42 -0
- package/src/composables/useDebouncedInput.ts +32 -0
- package/src/composables/useDefaults.ts +89 -0
- package/src/composables/useModifiers.ts +36 -0
- package/src/composables/useOptions.ts +56 -0
- package/src/composables/usePersistence.ts +77 -0
- package/src/composables/useTextCount.ts +54 -0
- package/src/composables/useUniqueId.ts +6 -0
- package/src/composables/useVirtualScroll.ts +89 -0
- package/src/composables/useVolver.ts +8 -0
- package/src/constants.ts +153 -0
- package/src/directives/index.ts +4 -0
- package/src/directives/v-contextmenu.ts +32 -0
- package/src/directives/v-tooltip.ts +25 -0
- package/src/icons.ts +7 -0
- package/src/index.ts +14 -0
- package/src/json-render/catalog.ts +31 -0
- package/src/json-render/components.ts +308 -0
- package/src/json-render/definitions.ts +440 -0
- package/src/json-render/index.ts +127 -0
- package/src/json-render/registry.ts +40 -0
- package/src/props/index.ts +597 -0
- package/src/resolvers/unplugin.ts +179 -0
- package/src/shims.d.ts +12 -0
- package/src/stories/Accordion/Accordion.settings.ts +58 -0
- package/src/stories/Accordion/Accordion.stories.ts +45 -0
- package/src/stories/Accordion/Accordion.test.ts +67 -0
- package/src/stories/Accordion/AccordionSlots.stories.ts +29 -0
- package/src/stories/AccordionGroup/AccordionGroup.settings.ts +89 -0
- package/src/stories/AccordionGroup/AccordionGroup.stories.ts +64 -0
- package/src/stories/AccordionGroup/AccordionGroup.test.ts +56 -0
- package/src/stories/AccordionGroup/AccordionGroupSlots.stories.ts +54 -0
- package/src/stories/Alert/Alert.settings.ts +123 -0
- package/src/stories/Alert/Alert.stories.ts +60 -0
- package/src/stories/Alert/Alert.test.ts +97 -0
- package/src/stories/Alert/AlertModifiers.stories.ts +78 -0
- package/src/stories/Alert/AlertSlots.stories.ts +75 -0
- package/src/stories/AlertGroup/AlertGroup.settings.ts +112 -0
- package/src/stories/AlertGroup/AlertGroup.stories.ts +50 -0
- package/src/stories/AlertGroup/AlertGroup.test.ts +87 -0
- package/src/stories/AlertGroup/AlertGroupPosition.stories.ts +104 -0
- package/src/stories/AlertGroup/AlertGroupSlots.stories.ts +68 -0
- package/src/stories/AlertGroup/AlertGroupWithComposable.stories.ts +116 -0
- package/src/stories/Avatar/Avatar.settings.ts +36 -0
- package/src/stories/Avatar/Avatar.stories.ts +43 -0
- package/src/stories/Avatar/Avatar.test.ts +32 -0
- package/src/stories/Avatar/AvatarBadge.stories.ts +36 -0
- package/src/stories/Avatar/AvatarModifiers.stories.ts +100 -0
- package/src/stories/Avatar/AvatarSlots.stories.ts +34 -0
- package/src/stories/AvatarGroup/AvatarGroup.settings.ts +61 -0
- package/src/stories/AvatarGroup/AvatarGroup.stories.ts +35 -0
- package/src/stories/AvatarGroup/AvatarGroup.test.ts +34 -0
- package/src/stories/AvatarGroup/AvatarGroupModifiers.stories.ts +31 -0
- package/src/stories/AvatarGroup/AvatarGroupSlotDefault.stories.ts +39 -0
- package/src/stories/Badge/Badge.settings.ts +27 -0
- package/src/stories/Badge/Badge.stories.ts +43 -0
- package/src/stories/Badge/Badge.test.ts +12 -0
- package/src/stories/Badge/BadgeSlots.stories.ts +23 -0
- package/src/stories/Blurhash/BlurhashComposable.stories.ts +215 -0
- package/src/stories/Breadcrumb/Breadcrumb.settings.ts +41 -0
- package/src/stories/Breadcrumb/Breadcrumb.stories.ts +41 -0
- package/src/stories/Breadcrumb/Breadcrumb.test.ts +52 -0
- package/src/stories/Breadcrumb/BreadcrumbSlots.stories.ts +37 -0
- package/src/stories/Button/Button.settings.ts +155 -0
- package/src/stories/Button/Button.stories.ts +38 -0
- package/src/stories/Button/Button.test.ts +46 -0
- package/src/stories/Button/ButtonIcon.stories.ts +67 -0
- package/src/stories/Button/ButtonLink.stories.ts +40 -0
- package/src/stories/Button/ButtonLoading.stories.ts +41 -0
- package/src/stories/Button/ButtonModifiers.stories.ts +148 -0
- package/src/stories/Button/ButtonSlots.stories.ts +87 -0
- package/src/stories/Button/ButtonState.stories.ts +42 -0
- package/src/stories/Button/ButtonToggle.stories.ts +52 -0
- package/src/stories/ButtonGroup/ButtonGroup.settings.ts +41 -0
- package/src/stories/ButtonGroup/ButtonGroup.stories.ts +39 -0
- package/src/stories/ButtonGroup/ButtonGroup.test.ts +31 -0
- package/src/stories/ButtonGroup/ButtonGroupModifiers.stories.ts +39 -0
- package/src/stories/ButtonGroup/ButtonGroupSlots.stories.ts +38 -0
- package/src/stories/ButtonGroup/ButtonGroupToggle.stories.ts +41 -0
- package/src/stories/Card/Card.settings.ts +56 -0
- package/src/stories/Card/Card.stories.ts +46 -0
- package/src/stories/Card/Card.test.ts +21 -0
- package/src/stories/Card/CardSlots.stories.ts +81 -0
- package/src/stories/Checkbox/Checkbox.settings.ts +42 -0
- package/src/stories/Checkbox/Checkbox.stories.ts +97 -0
- package/src/stories/Checkbox/Checkbox.test.ts +77 -0
- package/src/stories/Checkbox/CheckboxBinary.stories.ts +33 -0
- package/src/stories/Checkbox/CheckboxSlots.stories.ts +31 -0
- package/src/stories/CheckboxGroup/CheckboxGroup.settings.ts +15 -0
- package/src/stories/CheckboxGroup/CheckboxGroup.stories.ts +87 -0
- package/src/stories/CheckboxGroup/CheckboxGroup.test.ts +79 -0
- package/src/stories/CheckboxGroup/CheckboxGroupOptions.stories.ts +53 -0
- package/src/stories/CheckboxGroup/CheckboxGroupSlots.stories.ts +47 -0
- package/src/stories/Combobox/Combobox.settings.ts +446 -0
- package/src/stories/Combobox/Combobox.stories.ts +249 -0
- package/src/stories/Combobox/Combobox.test.ts +108 -0
- package/src/stories/Combobox/ComboboxIconPosition.stories.ts +44 -0
- package/src/stories/Combobox/ComboboxMultiple.stories.ts +51 -0
- package/src/stories/Combobox/ComboboxOptions.stories.ts +111 -0
- package/src/stories/Combobox/ComboboxSlots.stories.ts +105 -0
- package/src/stories/Dialog/Dialog.settings.ts +54 -0
- package/src/stories/Dialog/Dialog.stories.ts +51 -0
- package/src/stories/Dialog/Dialog.test.ts +64 -0
- package/src/stories/Dialog/DialogModifiers.stories.ts +42 -0
- package/src/stories/Dialog/DialogSlots.stories.ts +39 -0
- package/src/stories/Dropdown/Dropdown.settings.ts +70 -0
- package/src/stories/Dropdown/Dropdown.stories.ts +107 -0
- package/src/stories/Dropdown/Dropdown.test.ts +17 -0
- package/src/stories/Dropdown/DropdownContextmenuDirective.stories.ts +48 -0
- package/src/stories/Dropdown/DropdownMultilevel.stories.ts +61 -0
- package/src/stories/Dropdown/DropdownSlots.stories.ts +95 -0
- package/src/stories/Icon/Icon.settings.ts +73 -0
- package/src/stories/Icon/Icon.stories.ts +47 -0
- package/src/stories/Icon/IconsCollection.stories.ts +53 -0
- package/src/stories/InputFile/InputFile.settings.ts +37 -0
- package/src/stories/InputFile/InputFile.stories.ts +97 -0
- package/src/stories/InputFile/InputFileDropArea.stories.ts +56 -0
- package/src/stories/InputFile/InputFileIconPosition.stories.ts +43 -0
- package/src/stories/InputFile/InputFileSlots.stories.ts +34 -0
- package/src/stories/InputText/InputText.settings.ts +262 -0
- package/src/stories/InputText/InputText.stories.ts +149 -0
- package/src/stories/InputText/InputText.test.ts +184 -0
- package/src/stories/InputText/InputTextIconPosition.stories.ts +43 -0
- package/src/stories/InputText/InputTextIso.stories.ts +69 -0
- package/src/stories/InputText/InputTextLength.stories.ts +58 -0
- package/src/stories/InputText/InputTextMask.stories.ts +122 -0
- package/src/stories/InputText/InputTextMinMax.stories.ts +51 -0
- package/src/stories/InputText/InputTextSlots.stories.ts +39 -0
- package/src/stories/InputText/InputTextSuggestions.stories.ts +118 -0
- package/src/stories/InputText/InputTextType.stories.ts +119 -0
- package/src/stories/Nav/Nav.settings.ts +35 -0
- package/src/stories/Nav/Nav.stories.ts +33 -0
- package/src/stories/Nav/Nav.test.ts +19 -0
- package/src/stories/Nav/NavModifiers.stories.ts +47 -0
- package/src/stories/Progress/Progress.settings.ts +31 -0
- package/src/stories/Progress/Progress.stories.ts +41 -0
- package/src/stories/Progress/Progress.test.ts +9 -0
- package/src/stories/Radio/Radio.settings.ts +15 -0
- package/src/stories/Radio/Radio.stories.ts +81 -0
- package/src/stories/Radio/Radio.test.ts +66 -0
- package/src/stories/Radio/RadioSlots.stories.ts +31 -0
- package/src/stories/RadioGroup/RadioGroup.settings.ts +15 -0
- package/src/stories/RadioGroup/RadioGroup.stories.ts +87 -0
- package/src/stories/RadioGroup/RadioGroup.test.ts +79 -0
- package/src/stories/RadioGroup/RadioGroupOptions.stories.ts +53 -0
- package/src/stories/RadioGroup/RadioGroupSlots.stories.ts +47 -0
- package/src/stories/Select/Select.settings.ts +81 -0
- package/src/stories/Select/Select.stories.ts +126 -0
- package/src/stories/Select/Select.test.ts +81 -0
- package/src/stories/Select/SelectIconPosition.stories.ts +44 -0
- package/src/stories/Select/SelectOptions.stories.ts +77 -0
- package/src/stories/Select/SelectSlots.stories.ts +40 -0
- package/src/stories/Tab/Tab.settings.ts +41 -0
- package/src/stories/Tab/Tab.stories.ts +70 -0
- package/src/stories/Tab/Tab.test.ts +27 -0
- package/src/stories/Textarea/Textarea.settings.ts +90 -0
- package/src/stories/Textarea/Textarea.stories.ts +107 -0
- package/src/stories/Textarea/Textarea.test.ts +86 -0
- package/src/stories/Textarea/TextareaLength.stories.ts +58 -0
- package/src/stories/Textarea/TextareaSlots.stories.ts +39 -0
- package/src/stories/Textarea/TextareatIconPosition.stories.ts +43 -0
- package/src/stories/Tooltip/Tooltip.settings.ts +24 -0
- package/src/stories/Tooltip/Tooltip.stories.ts +40 -0
- package/src/stories/Tooltip/Tooltip.test.ts +58 -0
- package/src/stories/Tooltip/TooltipDirective.stories.ts +68 -0
- package/src/stories/VirtualScroll/VirtualScroll.settings.ts +7 -0
- package/src/stories/VirtualScroll/VirtualScroll.stories.ts +72 -0
- package/src/stories/VirtualScroll/VirtualScroll.test.ts +53 -0
- package/src/stories/VirtualScroll/VirtualScrollWithComposable.stories.ts +92 -0
- package/src/stories/argTypes.ts +563 -0
- package/src/test/expect.ts +83 -0
- package/src/test/options.ts +16 -0
- package/src/test/sleep.ts +3 -0
- package/src/test/types.d.ts +17 -0
- package/src/types/alert.ts +24 -0
- package/src/types/blurhash.ts +21 -0
- package/src/types/floating-ui.ts +18 -0
- package/src/types/generic.ts +5 -0
- package/src/types/group.ts +52 -0
- package/src/types/index.ts +7 -0
- package/src/types/input-file.ts +10 -0
- package/src/types/nav.ts +18 -0
- package/src/utils/DateUtilities.ts +120 -0
- package/src/utils/DomUtilities.ts +15 -0
- package/src/utils/FileUtilities.ts +104 -0
- package/src/utils/ObjectUtilities.ts +289 -0
- package/src/workers/blurhash.ts +9 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(e,X){typeof exports=="object"&&typeof module<"u"?module.exports=X(require("vue"),require("vue-imask"),require("@floating-ui/vue"),require("@vueuse/core"),require("mitt"),require("@iconify/vue")):typeof define=="function"&&define.amd?define(["vue","vue-imask","@floating-ui/vue","@vueuse/core","mitt","@iconify/vue"],X):(e=typeof globalThis<"u"?globalThis:e||self,e.VvInputText=X(e.Vue,e.vueImask,e.FloatingUiVue,e.VueuseCore,e.mitt,e.IconifyVue))})(this,function(e,X,P,k,he,G){var st=Object.create,Fe=Object.defineProperty,dt=Object.getOwnPropertyDescriptor,ut=Object.getOwnPropertyNames,ct=Object.getPrototypeOf,ft=Object.prototype.hasOwnProperty,pt=(t,a,l,o)=>{if(a&&typeof a=="object"||typeof a=="function")for(var r=ut(a),s=0,f=r.length,p;s<f;s++)p=r[s],!ft.call(t,p)&&p!==l&&Fe(t,p,{get:(h=>a[h]).bind(null,p),enumerable:!(o=dt(a,p))||o.enumerable});return t},mt=(t,a,l)=>(l=t!=null?st(ct(t)):{},pt(a||!t||!t.__esModule?Fe(l,"default",{value:t,enumerable:!0}):l,t));he=mt(he);var $=t=>t.toString().padStart(2,"0"),vt=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(?:\.\d{1,3})?(?:Z|[+-]\d{2}:?\d{2})?$/;function je(t){if(typeof t!="string"||!vt.test(t))return!1;const a=new Date(t);return!Number.isNaN(a.getTime())&&a.toISOString()===t}function ze(t,a="date",l){if(typeof t=="string"&&!je(t))return"";const o=new Date(t);if(Number.isNaN(o.getTime()))return"";let r=`${o.getFullYear()}-${$(o.getMonth()+1)}`;if(a==="month"||(r+=`-${$(o.getDate())}`,a==="date"))return r;const s=l?`${$(o.getHours())}:${$(o.getMinutes())}:${$(o.getSeconds())}`:`${$(o.getHours())}:${$(o.getMinutes())}`;return a==="time"?s:`${r}T${s}`}var ht=/^\d{4}-\d{2}-\d{2}$/,gt=/^\d{4}-\d{2}$/,bt=/^(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d)?$/,yt=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}(?::\d{2})?$/;function St(t,a="date"){if(!t?.trim())return null;const l=new Date,o=l.getFullYear(),r=l.getMonth(),s=l.getDate();if(a==="date"){if(!ht.test(t))throw new Error("Invalid date format. Expected: YYYY-MM-DD");return new Date(`${t}T00:00:00`)}if(a==="month"){if(!gt.test(t))throw new Error("Invalid month format. Expected: YYYY-MM");return new Date(`${t}-01T00:00:00`)}if(a==="time"){if(!bt.test(t))throw new Error("Invalid time format. Expected: HH:mm or HH:mm:ss");return t.length===8?new Date(`${o}-${$(r+1)}-${$(s)}T${t}`):new Date(`${o}-${$(r+1)}-${$(s)}T${t}:00`)}if(!yt.test(t))throw new Error("Invalid datetime format. Expected: YYYY-MM-DDThh:mm or YYYY-MM-DDThh:mm:ss");return t.length===16?new Date(`${t}:00`):new Date(`${t}`)}function ae(t){return(a=>a==null||a===""||Array.isArray(a)&&a.length===0||!(a instanceof Date)&&typeof a=="object"&&Object.keys(a).length===0)((0,e.unref)(t))}function wt(t){return typeof t=="string"}function Ue(t){return Array.isArray(t)?t.filter(a=>wt(a)).join(" "):t}function Et(t,a){const l=(0,e.computed)(()=>(0,e.isRef)(t)?t.value:t),o=(0,e.computed)(()=>Ue(l.value.invalidLabel)),r=(0,e.computed)(()=>Ue(l.value.validLabel)),s=(0,e.computed)(()=>l.value.loadingLabel),f=(0,e.computed)(()=>l.value.hintLabel),p=(0,e.computed)(()=>!!(l.value.loading&&(a.loading||s.value))),h=(0,e.computed)(()=>!p.value&&!!(l.value.invalid&&(a.invalid||o.value))),m=(0,e.computed)(()=>!p.value&&!h.value&&!!(l.value.valid&&(a.valid||r.value))),E=(0,e.computed)(()=>!p.value&&!h.value&&!m.value&&!!(a.hint||f.value)),u=(0,e.computed)(()=>h.value||m.value||p.value||E.value);return{hasInvalidLabelOrSlot:h,hasHintLabelOrSlot:E,hasValidLabelOrSlot:m,hasLoadingLabelOrSlot:p,hintSlotScope:(0,e.computed)(()=>({modelValue:l.value.modelValue,valid:l.value.valid,invalid:l.value.invalid,loading:l.value.loading})),HintSlot:(0,e.defineComponent)({name:"HintSlot",props:{tag:{type:String,default:"small"}},setup(){return{isVisible:u,invalidLabel:o,validLabel:r,loadingLabel:s,hintLabel:f,hasInvalidLabelOrSlot:h,hasValidLabelOrSlot:m,hasLoadingLabelOrSlot:p,hasHintLabelOrSlot:E}},render(){if(this.isVisible){let y;return this.hasInvalidLabelOrSlot&&(y="alert"),this.hasValidLabelOrSlot&&(y="status"),this.hasLoadingLabelOrSlot?(0,e.h)(this.tag,{role:y},this.$slots.loading?.()??this.loadingLabel):this.hasInvalidLabelOrSlot?(0,e.h)(this.tag,{role:y},this.$slots.invalid?.()??this.$slots.invalid??this.invalidLabel):this.hasValidLabelOrSlot?(0,e.h)(this.tag,{role:y},this.$slots.valid?.()??this.validLabel):(0,e.h)(this.tag,{role:y},this.$slots.hint?.()??this.$slots.hint??this.hintLabel)}return null}})}}var U=(function(t){return t.local="local",t.session="session",t})({}),We=(function(t){return t.absolute="absolute",t.fixed="fixed",t})({}),C=(function(t){return t.left="left",t.right="right",t.top="top",t.bottom="bottom",t})({}),Dt=(function(t){return t.topStart="top-start",t.topEnd="top-end",t.bottomStart="bottom-start",t.bottomEnd="bottom-end",t.leftStart="left-start",t.leftEnd="left-end",t.rightStart="right-start",t.rightEnd="right-end",t})({}),ne=(function(t){return t.before="before",t.after="after",t})({}),Ye=(function(t){return t.button="button",t.submit="submit",t.reset="reset",t})({}),kt=(function(t){return t.nuxtLink="nuxt-link",t.routerLink="router-link",t.a="a",t.button="button",t})({}),Pt=(function(t){return t.button="button",t.link="link",t.menuitem="menuitem",t})({}),ge=(function(t){return t.listbox="listbox",t.menu="menu",t})({}),qe=(function(t){return t.option="option",t.presentation="presentation",t})({}),Ct=Symbol.for("volver"),It=Symbol.for("dropdownTrigger"),Ke=Symbol.for("dropdownItem"),Tt=Symbol.for("dropdownAction"),L={showPassword:"eye-on",hidePassword:"eye-off",showDatePicker:"calendar",showTimePicker:"time",showColorPicker:"color",clear:"close",add:"add",remove:"trash",edit:"edit",download:"download"},$t=(function(t){return t.simple="simple",t.normal="normal",t.detailed="detailed",t})({}),Ot={prefix:$t.normal},Lt={to:{type:[String,Object]},href:String,target:String,rel:{type:String,default:"noopener noreferrer"}},be={valid:{type:Boolean,default:!1},validLabel:{type:[String,Array],default:void 0}},ye={invalid:{type:Boolean,default:!1},invalidLabel:{type:[String,Array],default:void 0}},Se={loading:{type:Boolean,default:!1},loadingLabel:{type:String,default:"Loading..."}},J={disabled:{type:Boolean,default:!1}},Xe={required:{type:Boolean,default:!1}},Nt={selected:{type:Boolean,default:!1}},xt={active:{type:Boolean,default:!1}},Vt={current:{type:Boolean,default:!1}},oa={showClearAction:{type:Boolean,default:!1},iconClear:{type:[String,Object],default:L.clear},labelClear:{type:String,default:"Clear"}},At={pressed:{type:Boolean,default:!1}},re={label:{type:[String,Number],default:void 0}},we={readonly:{type:Boolean,default:!1}},Z={modifiers:{type:[String,Array],default:void 0}},Ee={hintLabel:{type:String,default:""}},Bt={options:{type:Array,default:()=>[]},labelKey:{type:[String,Function],default:"label"},valueKey:{type:[String,Function],default:"value"},disabledKey:{type:[String,Function],default:"disabled"}},Mt={count:{type:[Boolean,String],default:!1,validator:t=>[!0,!1,"limit","countdown"].includes(t)}},Rt={debounce:{type:[Number,String],default:void 0}},_t={icon:{type:[String,Object],default:void 0},iconPosition:{type:String,default:ne.before,validation:t=>Object.values(ne).includes(t)}},Ge={tabindex:{type:[String,Number],default:0}},Ht={floating:{type:Boolean,default:!1}},Ft={unselectable:{type:Boolean,default:!0}},Je={id:[String,Number]},jt={placement:{type:String,default:C.bottom,validator:t=>Object.values(C).includes(t)||Object.values(Dt).includes(t)},strategy:{type:String,default:void 0,validator:t=>Object.values(We).includes(t)},transitionName:{type:String,default:void 0},offset:{type:[Number,String,Object],default:0},shift:{type:[Boolean,Object],default:!1},flip:{type:[Boolean,Object],default:!0},size:{type:[Boolean,Object],default:()=>({padding:10})},autoPlacement:{type:[Boolean,Object],default:!1},arrow:{type:Boolean,default:!1},keepOpen:{type:Boolean,default:!1},autofocusFirst:{type:Boolean,default:!0},triggerWidth:{type:Boolean,default:!1}},Ze={...Je,name:{type:String,required:!0}},zt={autofocus:{type:Boolean,default:!1}},Ut={autocomplete:{type:String,default:"off"}},Wt={...Ze,...zt,...Ut,...Ge,...J,...we,...be,...ye,...Ee,...Se,...Z,...Mt,...Rt,..._t,...Ht,...re,minlength:{type:[String,Number],default:void 0},maxlength:{type:[String,Number],default:void 0},placeholder:{type:String,default:void 0},...Xe},aa={...Ze,...Ge,...be,...ye,...Ee,...J,...we,...Z,...re,...Se,value:{type:[String,Number,Boolean],default:void 0},modelValue:{type:[Object,Number,Boolean,String],default:void 0}},na={...be,...ye,...Bt,...Ee,...J,...we,...Z,...re,...Se,...Xe,modelValue:{type:[String,Array,Boolean,Number,Symbol],default:void 0},name:{type:String,required:!0},vertical:{type:Boolean,default:!1}},ra={...J,...re,...At,...xt,...Vt,...Lt,type:{type:String,default:Ye.button,validator:t=>Object.values(Ye).includes(t)},ariaLabel:{type:String,default:void 0},defaultTag:{type:String,default:kt.button}},Yt={storageType:{type:String,default:U.local,validator:t=>Object.values(U).includes(t)},storageKey:String},qt={...Je,...jt,...Z,modelValue:{type:Boolean,default:void 0},reference:{type:Object,default:null},role:{type:String,default:ge.menu,validator:t=>Object.values(ge).includes(t)}},Kt={focusOnHover:{type:Boolean,default:!1}},Xt={...J,...Nt,...Ft,...Z,deselectHintLabel:{type:String},selectHintLabel:{type:String},selectedHintLabel:{type:String},focusOnHover:{type:Boolean,default:!1}};function Qe(t){return(0,e.computed)(()=>String(t?.value||(0,e.useId)()))}function Gt({reference:t,id:a,expanded:l,aria:o}){const r=(0,he.default)();return{bus:r,component:(0,e.defineComponent)({name:"VvDropdownTriggerProvider",setup(){(0,e.provide)(It,{reference:t,id:a,expanded:l,aria:o,bus:r})},render(){return(0,e.h)(e.Fragment,{},this.$slots.default?.())}})}}function Jt({role:t,...a}){const l=(0,e.computed)(()=>t.value===ge.listbox?qe.option:qe.presentation);return(0,e.provide)(Ke,{role:l,...a}),{itemRole:l}}function Zt({expanded:t}){(0,e.provide)(Tt,{role:(0,e.ref)(Pt.menuitem),expanded:t})}function le(t,a,l){return(0,e.computed)(()=>{const o={[t]:!0},r=typeof a?.value=="string"?a.value.split(" "):a?.value;return r&&Array.isArray(r)&&r.forEach(s=>{s&&(o[`${t}--${s}`]=!0)}),l&&Object.keys(l.value).forEach(s=>{o[`${t}--${s}`]=(0,e.unref)(l.value[s])}),o})}var Qt=["id","tabindex","role","aria-labelledby"],eo={name:"VvDropdown",inheritAttrs:!1},to=(0,e.defineComponent)({...eo,props:qt,emits:["update:modelValue","beforeEnter","afterLeave","beforeExpand","beforeCollapse","afterExpand","afterCollapse","before-enter","after-leave","enter","afterEnter","enterCancelled","beforeLeave","leave","leaveCancelled"],setup(t,{expose:a,emit:l}){const o=t,r=l,{id:s}=(0,e.toRefs)(o),f=Qe(s),p=(0,e.useAttrs)(),h=(0,e.ref)("auto"),m=(0,e.ref)("auto"),E=(0,e.ref)(),u=(0,e.ref)(),y=(0,e.ref)(),N=(0,e.ref)(),T=(0,e.computed)({get:()=>o.reference??E.value,set:i=>{E.value=i}}),_=(0,e.ref)(!1);(0,e.onMounted)(()=>{(0,k.useMutationObserver)(u.value,()=>{_.value=window.getComputedStyle(u.value).getPropertyValue("--dropdown-custom-position")?.trim()==="true"},{attributeFilter:["style"],window})});const Ce=(0,e.computed)(()=>{const i=[];if(o.autoPlacement?typeof o.autoPlacement=="boolean"?i.push((0,P.autoPlacement)()):i.push((0,P.autoPlacement)(o.autoPlacement)):o.flip&&(typeof o.flip=="boolean"?i.push((0,P.flip)({fallbackStrategy:"initialPlacement"})):i.push((0,P.flip)(o.flip))),o.shift&&(typeof o.shift=="boolean"?i.push((0,P.shift)()):i.push((0,P.shift)(o.shift))),o.size){const w=({availableWidth:Ne,availableHeight:xe})=>{h.value=`${Ne}px`,m.value=`${xe}px`};typeof o.size=="boolean"?i.push((0,P.size)({apply:w})):i.push((0,P.size)({...o.size,apply:w}))}return o.offset&&(i.push((0,P.offset)(Number(o.offset))),["string","number"].includes(typeof o.offset)?i.push((0,P.offset)(Number(o.offset))):i.push((0,P.offset)(o.offset))),o.arrow&&i.push((0,P.arrow)({element:y})),i}),{x:Ie,y:Te,middlewareData:W,placement:se,strategy:H}=(0,P.useFloating)(T,u,{whileElementsMounted:(...i)=>(0,P.autoUpdate)(...i,{animationFrame:o.strategy===We.fixed}),placement:(0,e.computed)(()=>o.placement),strategy:(0,e.computed)(()=>o.strategy),middleware:Ce}),$e=(0,e.computed)(()=>{if(_.value)return;const i=o.triggerWidth&&T.value?`${T.value?.offsetWidth}px`:void 0;return{position:H.value,top:`${Te.value??0}px`,left:`${Ie.value??0}px`,maxWidth:i?void 0:h.value,maxHeight:m.value,width:i}}),S=(0,e.computed)(()=>se.value.split("-")[0]),de=(0,e.computed)(()=>{if(_.value)return;const i={[C.top]:C.bottom,[C.right]:C.left,[C.bottom]:C.top,[C.left]:C.right}[S.value];return{left:W.value.arrow?.x!==void 0?`${W.value.arrow?.x}px`:void 0,top:W.value.arrow?.y!==void 0?`${W.value.arrow?.y}px`:void 0,[i]:`${-(y.value?.offsetWidth??0)/2}px`}}),Y=(0,k.useVModel)(o,"modelValue",r),q=(0,e.ref)(!1),g=(0,e.computed)({get:()=>Y.value??q.value,set:i=>{if(Y.value===void 0){q.value=i;return}Y.value=i}});function F(){g.value=!0}function c(){g.value=!1}function B(){g.value=!g.value}function Q(i){T.value=i}(0,k.onClickOutside)(u,()=>{!o.keepOpen&&g.value&&(g.value=!1)},{ignore:[T]});const Oe=(0,e.computed)(()=>T.value?.getAttribute?.("id")??void 0),ue=(0,e.computed)(()=>({"aria-controls":f.value,"aria-haspopup":!0,"aria-expanded":g.value})),{component:ce,bus:x}=Gt({reference:T,id:f,expanded:g,aria:ue});x.on("click",B);const{role:M,modifiers:Le}=(0,e.toRefs)(o),fe=le("vv-dropdown",Le,(0,e.computed)(()=>({arrow:o.arrow}))),{focused:b}=(0,k.useFocusWithin)(u);function j(i){return i?[...i.querySelectorAll('a[href], button, input, textarea, select, details, [tabindex]:not([tabindex="-1"])')].filter(w=>!w.hasAttribute("disabled")&&!w.getAttribute("aria-hidden")):[]}function O(){(0,e.nextTick)(()=>{const i=j(u.value);i.length>0&&i[0].focus({preventScroll:!0})})}function pe(){(0,e.nextTick)(()=>{const i=j(N.value);i.length>0&&i[0].focus({preventScroll:!0})})}function I(){(0,e.nextTick)(()=>{if(b.value){const i=j(u.value);if(i.length===0||!document.activeElement)return;const w=i.indexOf(document.activeElement);w<i.length-1?i[w+1].focus({preventScroll:!0}):i[0].focus({preventScroll:!0})}})}function ee(){(0,e.nextTick)(()=>{if(b.value){const i=j(u.value);if(i.length===0||!document.activeElement)return;const w=i.indexOf(document.activeElement);if(w>0){i[w-1].focus({preventScroll:!0});return}i.at(-1)?.focus({preventScroll:!0})}})}(0,e.watch)(g,i=>{i&&o.autofocusFirst&&O()}),a({toggle:B,show:F,hide:c,init:Q,focusFirst:O,focusFirstListElement:pe,focusNext:I,focusPrev:ee,customPosition:_});const{itemRole:te}=Jt({role:M,expanded:g,focused:b,hovered:(0,k.useElementHover)(u)});(0,k.onKeyStroke)("Escape",i=>{g.value&&(i.preventDefault(),c())}),(0,k.onKeyStroke)("ArrowDown",i=>{g.value&&b.value&&(i.preventDefault(),I())}),(0,k.onKeyStroke)("ArrowUp",i=>{g.value&&b.value&&(i.preventDefault(),ee())}),(0,k.onKeyStroke)([" ","Enter"],i=>{const w=i.target;g.value&&b.value&&w&&w?.click()});const oe={"before-enter":()=>{r(g.value?"beforeExpand":"beforeCollapse"),r("beforeEnter")},"after-leave":()=>{r(g.value?"afterExpand":"afterCollapse"),r("afterLeave")},enter:()=>{r("enter")},"after-enter":()=>{r("afterEnter")},"enter-cancelled":()=>{r("enterCancelled")},"before-leave":()=>{r("beforeLeave")},leave:()=>{r("leave")},"leave-cancelled":()=>{r("leaveCancelled")}};return(i,w)=>((0,e.openBlock)(),(0,e.createElementBlock)(e.Fragment,null,[(0,e.createVNode)((0,e.unref)(ce),null,{default:(0,e.withCtx)(()=>[(0,e.renderSlot)(i.$slots,"default",(0,e.normalizeProps)((0,e.guardReactiveProps)({init:Q,show:F,hide:c,toggle:B,expanded:(0,e.unref)(g),aria:(0,e.unref)(ue)})))]),_:3}),(0,e.createVNode)(e.Transition,(0,e.mergeProps)({name:i.transitionName},(0,e.toHandlers)(oe),{persisted:""}),{default:(0,e.withCtx)(()=>[(0,e.withDirectives)((0,e.createElementVNode)("div",{ref_key:"floatingEl",ref:u,style:(0,e.normalizeStyle)((0,e.unref)($e)),class:(0,e.normalizeClass)((0,e.unref)(fe))},[o.arrow?((0,e.openBlock)(),(0,e.createElementBlock)("div",{key:0,ref_key:"arrowEl",ref:y,style:(0,e.normalizeStyle)((0,e.unref)(de)),class:"vv-dropdown__arrow"},null,4)):(0,e.createCommentVNode)("v-if",!0),(0,e.renderSlot)(i.$slots,"before",(0,e.normalizeProps)((0,e.guardReactiveProps)({show:F,hide:c,toggle:B,expanded:(0,e.unref)(g)}))),(0,e.createElementVNode)("div",(0,e.mergeProps)((0,e.unref)(p),{id:(0,e.unref)(f),ref_key:"listEl",ref:N,tabindex:(0,e.unref)(g)?void 0:-1,role:(0,e.unref)(M),"aria-labelledby":(0,e.unref)(Oe),class:"vv-dropdown__list"}),[(0,e.renderSlot)(i.$slots,"items",(0,e.normalizeProps)((0,e.guardReactiveProps)({show:F,hide:c,toggle:B,expanded:(0,e.unref)(g),role:(0,e.unref)(te)})))],16,Qt),(0,e.renderSlot)(i.$slots,"after",(0,e.normalizeProps)((0,e.guardReactiveProps)({show:F,hide:c,toggle:B,expanded:(0,e.unref)(g)})))],6),[[e.vShow,(0,e.unref)(g)]])]),_:3},16,["name"])],64))}}),oo=to;function ao(){return(0,e.inject)(Ke,{})}var no={name:"VvDropdownItem"},ro=(0,e.defineComponent)({...no,props:Kt,setup(t){const a=t,{role:l,expanded:o}=ao(),r=(0,e.ref)(null);Zt({expanded:o});const s=(0,k.useElementHover)(r),{focused:f}=(0,k.useFocus)(r),{focused:p}=(0,k.useFocusWithin)(r);return(0,e.watch)(s,h=>{h&&a.focusOnHover&&(f.value=!0)}),(h,m)=>((0,e.openBlock)(),(0,e.createElementBlock)("div",(0,e.mergeProps)({role:(0,e.unref)(l)},{ref_key:"element",ref:r,class:["vv-dropdown__item",{"focus-visible":(0,e.unref)(f)||(0,e.unref)(p)}]}),[(0,e.renderSlot)(h.$slots,"default")],16))}}),lo=ro,io=["title"],so={name:"VvDropdownOption"},uo=(0,e.defineComponent)({...so,props:Xt,setup(t){const a=t,{modifiers:l}=(0,e.toRefs)(a),o=le("vv-dropdown-option",l,(0,e.computed)(()=>({disabled:a.disabled,selected:a.selected,unselectable:a.unselectable&&a.selected}))),r=(0,e.computed)(()=>a.selected?a.unselectable?a.deselectHintLabel:a.selectedHintLabel:a.disabled?"":a.selectHintLabel);return(s,f)=>((0,e.openBlock)(),(0,e.createBlock)(lo,{class:(0,e.normalizeClass)((0,e.unref)(o)),tabindex:s.disabled?-1:0,"aria-selected":s.selected,"aria-disabled":s.disabled,"focus-on-hover":s.focusOnHover},{default:(0,e.withCtx)(()=>[(0,e.renderSlot)(s.$slots,"default"),(0,e.createElementVNode)("span",{class:"vv-dropdown-option__hint",title:(0,e.unref)(r)},[(0,e.renderSlot)(s.$slots,"hint",(0,e.normalizeProps)((0,e.guardReactiveProps)({disabled:s.disabled,selected:s.selected,unselectable:s.unselectable})),()=>[(0,e.createTextVNode)((0,e.toDisplayString)((0,e.unref)(r)),1)])],8,io)]),_:3},8,["class","tabindex","aria-selected","aria-disabled","focus-on-hover"]))}}),co=uo;function De(){return(0,e.inject)(Ct,void 0)}var fo={name:"VvIcon"},po=(0,e.defineComponent)({...fo,props:(0,e.mergeDefaults)({name:{},color:{},width:{},height:{},provider:{},prefix:{},src:{},horizontalFlip:{type:Boolean},verticalFlip:{type:Boolean},flip:{},mode:{},inline:{type:Boolean},rotate:{},onLoad:{type:Function},svg:{},modifiers:{}},Ot),setup(t){const a=t,l=(0,e.computed)(()=>typeof a.rotate=="string"?Number.parseFloat(a.rotate):a.rotate),o=(0,e.ref)(!0),r=De(),{modifiers:s}=(0,e.toRefs)(a),f=le("vv-icon",s),p=(0,e.computed)(()=>a.provider||r?.iconsProvider),h=(0,e.computed)(()=>{const u=a.name??"",y=`@${p.value}:${a.prefix}:${u}`;if((0,G.iconLoaded)(y))return y;const N=r?.iconsCollections.find(T=>(0,G.iconLoaded)(`@${p.value}:${T.prefix}:${u}`));return N?`@${p.value}:${N.prefix}:${u}`:u});function m(u){const y=typeof window<"u"?new window.DOMParser:null;return y?y.parseFromString(u,"text/html").querySelector("svg"):null}function E(u){const y=m(u),N=y?.innerHTML.trim()||"";y&&N&&(0,G.addIcon)(`@${p.value}:${a.prefix}:${a.name}`,{body:N,height:y.viewBox.baseVal.height,width:y.viewBox.baseVal.width})}return r&&a.src&&!(0,G.iconLoaded)(`@${p.value}:${a.prefix}:${a.name}`)&&(o.value=!1,r.fetchIcon(a.src).then(u=>{u&&E(u),o.value=!0}).catch(u=>{throw o.value=!0,new Error(`Error during fetch icon: ${u?.message}`)})),a.svg&&E(a.svg),(u,y)=>(0,e.unref)(o)?((0,e.openBlock)(),(0,e.createBlock)((0,e.unref)(G.Icon),(0,e.mergeProps)({key:0,class:(0,e.unref)(f)},{inline:t.inline,width:t.width,height:t.height,horizontalFlip:t.horizontalFlip,verticalFlip:t.verticalFlip,flip:t.flip,rotate:(0,e.unref)(l),color:t.color,icon:(0,e.unref)(h)},{onLoad:t.onLoad}),null,16,["class","onLoad"])):(0,e.createCommentVNode)("v-if",!0)}}),A=po,d={TEXT:"text",PASSWORD:"password",NUMBER:"number",EMAIL:"email",TEL:"tel",URL:"url",COLOR:"color",SEARCH:"search",DATE:"date",TIME:"time",DATETIME_LOCAL:"datetime-local",MONTH:"month",WEEK:"week"},mo=["update:modelValue","update:masked","accept","accept:typed","accept:masked","accept:unmasked","complete","complete:typed","complete:masked","complete:unmasked","suggestion:selected","suggestion:removed","focus","blur","keyup","keydown","keypress","clear"],et={...Wt,...Yt,modelValue:[String,Number,Date],type:{type:String,default:d.TEXT,validator:t=>Object.values(d).includes(t)},min:[Number,Date,String],max:[Number,Date,String],step:{type:[String,Number],default:1},pattern:String,multiple:Boolean,iconShowPassword:{type:[String,Object],default:L.showPassword},iconHidePassword:{type:[String,Object],default:L.hidePassword},iconClear:{type:[String,Object],default:L.clear},iconRemoveSuggestion:{type:[String,Object],default:L.remove},labelStepUp:{type:String,default:"Increase value"},labelStepDown:{type:String,default:"Decrease value"},labelShowPassword:{type:String,default:"Show password"},labelHidePassword:{type:String,default:"Hide password"},labelClear:{type:String,default:"Clear"},labelRemoveSuggestion:{type:String,default:"Remove suggestion"},iMask:{type:Object,default:void 0},masked:{type:String,default:void 0},autoWidth:{type:Boolean,default:!1},hideActions:{type:Boolean,default:!1},unit:{type:String},selectOnFocus:{type:Boolean,default:!1},maxSuggestions:{type:Number,default:5},suggestions:{type:Array,default:void 0},inputMode:{type:String,default:"text"}};function ie(t,a){const l=(0,e.computed)(()=>typeof t?.value=="string"?{name:t?.value}:t?.value),o=(0,e.computed)(()=>a?.value===ne.before?l.value:void 0),r=(0,e.computed)(()=>a?.value===ne.after?l.value:void 0);return{hasIcon:l,hasIconLeft:(0,e.computed)(()=>a?.value===C.left?l.value:void 0),hasIconRight:(0,e.computed)(()=>a?.value===C.right?l.value:void 0),hasIconTop:(0,e.computed)(()=>a?.value===C.top?l.value:void 0),hasIconBottom:(0,e.computed)(()=>a?.value===C.bottom?l.value:void 0),hasIconBefore:o,hasIconAfter:r}}var tt=(0,e.defineComponent)({components:{VvIcon:A},props:{inputType:{type:String,default:"input-text"},disabled:{type:Boolean,default:!1},label:{type:String,default:"Clear"},icon:{type:[String,Object],default:"close"}},emits:["clear"],setup(t,{emit:a}){const{hasIcon:l}=ie((0,e.computed)(()=>t.icon));function o(r){r?.stopPropagation(),t.disabled||a("clear")}return{hasIcon:l,onClick:o}},render(){const t=this.hasIcon?(0,e.h)(A,{...this.hasIcon,class:`vv-${this.inputType}__icon`}):void 0;return(0,e.h)("button",{disabled:this.disabled,class:`vv-${this.inputType}__action`,ariaLabel:this.label,type:"button",onClick:this.onClick},t)}}),ot=(0,e.defineComponent)({components:{VvIcon:A},props:{inputType:{type:String,default:"input-text"},disabled:{type:Boolean,default:!1},labelShow:{type:String,default:"Show password"},labelHide:{type:String,default:"Hide password"},iconShow:{type:[String,Object],default:L.showPassword},iconHide:{type:[String,Object],default:L.hidePassword}},emits:["toggle-password"],setup(t,{emit:a}){const l=(0,e.ref)(!1),o=(0,e.computed)(()=>l.value?t.iconHide:t.iconShow),{hasIcon:r}=ie(o);function s(f){f?.stopPropagation(),t.disabled||(l.value=!l.value,a("toggle-password",l.value))}return{active:l,activeIcon:o,hasIcon:r,onClick:s}},render(){const t=this.hasIcon?(0,e.h)(A,{...this.hasIcon,class:`vv-${this.inputType}__icon`}):void 0;return(0,e.h)("button",{disabled:this.disabled,class:`vv-${this.inputType}__action`,ariaLabel:this.active?this.labelHide:this.labelShow,type:"button",onClick:this.onClick},t)}}),ke=(0,e.defineComponent)({components:{VvIcon:A},props:{inputType:{type:String,default:"input-text"},disabled:{type:Boolean,default:!1},label:{type:String},mode:{type:String,validator:t=>["up","down"].includes(t),default:"up"}},emits:["step-up","step-down"],setup(t,{emit:a}){const l=(0,e.computed)(()=>t.mode==="up");return{isUp:l,onClick:r=>{r?.stopPropagation(),t.disabled||a(l.value?"step-up":"step-down")}}},render(){return(0,e.h)("button",{class:[`vv-${this.inputType}__action`,`vv-${this.inputType}__action-chevron`,this.isUp?`vv-${this.inputType}__action-chevron-up`:void 0],disabled:this.disabled,ariaLabel:this.label,type:"button",onClick:this.onClick})}});function Pe(t,a,l){return{name:"VvInputTextActions",components:{VvIcon:A,VvInputPasswordAction:ot,VvInputStepAction:ke,VvInputClearAction:tt},setup(){return{isDirty:l,isDisabled:(0,e.computed)(()=>a.disabled||a.readonly),labelStepUp:a.labelStepUp,labelStepDown:a.labelStepDown,labelShowPassword:a.labelShowPassword,labelHidePassword:a.labelHidePassword,labelClear:a.labelClear,iconShowPassword:a.iconShowPassword,iconHidePassword:a.iconHidePassword}},render(){let o=null;switch(t){case d.SEARCH:{const{onClear:r}=this.$attrs;o=[(0,e.h)(tt,{disabled:this.isDisabled||!this.isDirty,label:this.labelClear,onClear:r})];break}case d.PASSWORD:{const{onTogglePassword:r}=this.$attrs;o=[(0,e.h)(ot,{disabled:this.isDisabled,onTogglePassword:r,labelShow:this.labelShowPassword,labelHide:this.labelHidePassword,iconShow:this.iconShowPassword,iconHide:this.iconHidePassword})];break}case d.NUMBER:{const{onStepUp:r,onStepDown:s}=this.$attrs;o=[(0,e.h)(ke,{mode:"up",disabled:this.isDisabled||a.max!==void 0&&a.modelValue===a.max,label:this.labelStepUp,onStepUp:r,onStepDown:s}),(0,e.h)(ke,{mode:"down",disabled:this.isDisabled||a.min!==void 0&&a.modelValue===a.min,label:this.labelStepDown,onStepUp:r,onStepDown:s})];break}}return Array.isArray(o)?(0,e.h)("div",{class:"vv-input-text__actions-group"},o):o}}}function vo(t,a,l){const o=De(),r=(0,e.computed)(()=>{if(!(!o||!o.defaults.value?.[t]))return o.defaults.value[t]});return(0,e.computed)(()=>{if(r.value===void 0)return l;const s=r.value,f=a,p=l;return Object.keys(f).reduce((h,m)=>{const E=p[m];if(h[m]=E,m in s){if(Array.isArray(f[m])){const u=f[m];u.length&&u[0]===E&&(h[m]=s[m])}if(typeof f[m]=="function"){const u=f[m];u()===E&&(h[m]=s[m])}if(typeof f[m]=="object"){let u=f[m].default;typeof u=="function"&&(u=u()),typeof u=="object"?JSON.stringify(u)===JSON.stringify(E)&&(h[m]=s[m]):u===E&&(h[m]=s[m])}}return h},{})})}function ho(t,a,l=0,{getter:o=s=>s,setter:r=s=>s}={}){let s;return typeof l=="string"&&(l=Number.parseInt(l)),(0,e.computed)({get:()=>o(t?.value),set:f=>{s&&clearTimeout(s),s=setTimeout(()=>{a("update:modelValue",r(f))},l)}})}function go(t,a){const{focused:l}=(0,k.useFocus)(t);return(0,e.watch)(l,o=>{a(o?"focus":"blur",(0,e.unref)(t))}),{focused:l}}function bo(t,a){const l=(0,e.computed)(()=>((0,e.unref)(t)??"").length),o=(0,e.computed)(()=>a?.lowerLimit!==void 0&&l.value<a?.lowerLimit?l.value-a.lowerLimit:a?.upperLimit!==void 0&&l.value<a?.upperLimit?a.upperLimit-l.value:0);return{length:l,gap:o,formatted:(0,e.computed)(()=>a?.mode===!1?"":a?.mode==="limit"&&a?.upperLimit?`${l.value} / ${a.lowerLimit?`${a.lowerLimit}-`:""}${a.upperLimit}`:a?.mode==="countdown"?o.value===0?void 0:o:l.value)}}function yo(t,a=U.local,l){const o=(0,e.ref)();l&&(o.value=l);let r;return(0,e.onMounted)(()=>{t&&(0,e.watch)(t,(s,f)=>{const p=(0,e.unref)(a)===U.session?sessionStorage:localStorage;if(f&&f!==s&&p.removeItem(f),s){r=(0,k.useStorage)(s,r?.value??o.value,p),r.value&&(o.value=r.value);return}r=void 0},{immediate:!0}),(0,e.isRef)(a)&&(0,e.watch)(a,(s,f)=>{if(t?.value){if(s){const p=s===U.session?sessionStorage:localStorage;r=(0,k.useStorage)(t.value,r?.value??o.value,p)}f&&f!==s&&(f===U.session?sessionStorage:localStorage).removeItem(t.value)}})}),(0,e.watch)(o,s=>{r&&(r.value=s)},{deep:!0,immediate:!0}),o}var So=["for"],wo={key:0,class:"vv-input-text__input-before"},Eo=["id"],Do={key:1,class:"vv-input-text__unit"},ko={key:5,class:"vv-input-text__input-after"},Po={key:6,class:"vv-input-text__limit"},Co={class:"flex-1"},Io=["title","onClick"],To={name:"VvInputText"},$o=(0,e.defineComponent)({...To,props:et,emits:mo,setup(t,{expose:a,emit:l}){const o=t,r=l,s=(0,e.useSlots)(),f=De(),p=vo("VvInputText",et,o),{count:h,debounce:m,icon:E,iconPosition:u,iconRemoveSuggestion:y,id:N,invalid:T,label:_,labelRemoveSuggestion:Ce,loading:Ie,maxlength:Te,minlength:W,modelValue:se,step:H,storageType:$e,type:S,unit:de,valid:Y}=(0,e.toRefs)(o),q=Qe(N),g=(0,e.computed)(()=>`${q.value}-hint`),F=(0,e.computed)(()=>o.floating&&ae(o.placeholder)?" ":o.placeholder),c=ho(se,r,m?.value??0),B=(0,e.computed)(()=>{const n=typeof H.value=="number"?H.value:Number.parseInt(H.value);return Number.isNaN(n)?!1:n%60!==0}),Q=/^-0?[.,]?[0*]?$/,Oe=/./,ue=/^-$|^$/,ce=(0,e.ref)(!1),x=(0,e.ref)(),M=(0,e.ref)(),{el:Le,mask:fe,typed:b,masked:j,unmasked:O}=(0,X.useIMask)((0,e.computed)(()=>{if(!o.iMask)return{mask:Oe};if(o.iMask.mask===Number){const n={...o.iMask};return o.min&&(n.min=Number(o.min)),o.max&&(n.max=Number(o.max)),n}return o.iMask}),{emit:r,onAccept:()=>{if(ce.value){if(r("update:masked",j.value),S.value===d.NUMBER){if(ue.test(O.value)){if(c.value===null||c.value===void 0)return;c.value=void 0;return}if(Q.test(O.value)){c.value=0;return}if(typeof b.value!="number"){c.value=Number(b.value);return}c.value=b.value;return}if(S.value===d.DATETIME_LOCAL||S.value===d.DATE||S.value===d.TIME||S.value===d.MONTH){if(!b.value){if(!c.value)return;if(x.value){c.value=void 0;return}c.value="";return}if(!(b.value instanceof Date)&&!x.value&&!M.value){c.value=b.value;return}let n=b.value;if(n instanceof Date||(n=St(b.value,S.value)),x.value||M.value){const v=new Date(x.value||M.value);if((S.value===d.DATETIME_LOCAL||S.value===d.DATE||S.value===d.MONTH)&&(v.setFullYear(n.getFullYear()),v.setMonth(n.getMonth())),(S.value===d.DATETIME_LOCAL||S.value===d.DATE)&&v.setDate(n.getDate()),(S.value===d.DATETIME_LOCAL||S.value===d.TIME)&&(v.setHours(n.getHours()),v.setMinutes(n.getMinutes()),v.setSeconds(n.getSeconds())),x.value instanceof Date){if(c.value?.getTime()===v.getTime())return;c.value=v;return}c.value=v.toISOString();return}c.value=ze(n,S.value,B.value);return}!c.value&&!O.value||(c.value=O.value)}}});function pe(n){if(n==null){b.value="",O.value="";return}if(o.iMask?.mask===Date){b.value=n instanceof Date?n:new Date(n);return}if(!(S.value===d.NUMBER&&Q.test(O.value)&&n===0)){if(He.value){if(n instanceof Date||je(n)){if(n instanceof Date?(x.value=n,M.value=void 0):(M.value=n,x.value=void 0),S.value!==d.WEEK){const v=new Date(n),D=S.value;b.value=ze(v,D,B.value),O.value=b.value}return}x.value=void 0,M.value=void 0}b.value=n,O.value=`${b.value}`}}(0,e.onMounted)(()=>{fe.value&&(ce.value=!0,pe(o.modelValue))}),(0,e.watch)(()=>o.modelValue,n=>{fe.value&&pe(n)}),(0,e.watch)(()=>o.masked,n=>{j.value=n??""});const I=Le,ee=(0,e.ref)(),te=(0,e.ref)(),oe=(0,e.ref)();a({$input:I,$inner:ee,$wrapper:te});const{focused:i}=go(I,r),w=(0,e.computed)(()=>i.value&&!o.disabled&&!o.readonly);function Ne(n){n?xe():Lo()}function xe(){p.value.selectOnFocus&&I.value&&I.value.select(),K.value.size&&oe.value?.show()}function Lo(){if(!z.value||!V.value)return;const n=o.maxSuggestions;c.value!==void 0&&c.value!==null&&c.value!==""&&(V.value.size>=n&&!V.value.has(c.value)&&(V.value=new Set([...V.value].slice(V.value.size-n+1))),V.value.add(c.value))}(0,e.watch)(w,Ne),(0,e.watch)((0,k.useElementVisibility)(I),n=>{n&&o.autofocus&&!o.disabled&&!o.readonly&&(i.value=!0)});const Ve=(0,e.ref)(!1),at=(0,e.computed)(()=>o.type===d.PASSWORD);function nt(){Ve.value=!Ve.value}const No=(0,e.computed)(()=>He.value),Ae=(0,e.computed)(()=>o.type===d.NUMBER);function Be(){if(!R.value){if(o.iMask){b.value=Number(b.value)+Number(H?.value??1);return}I.value.stepUp(),c.value=Number(I.value.value)}}function Me(){if(!R.value){if(o.iMask){b.value=Number(b.value)-Number(H?.value??1);return}I.value.stepDown(),c.value=Number(I.value.value)}}const xo=(0,e.computed)(()=>o.type===d.SEARCH);function rt(){c.value="",r("clear")}const{hasIconBefore:Re,hasIconAfter:lt}=ie(E,u),_e=(0,e.computed)(()=>{if(lt.value!==void 0)return lt.value;switch(o.type){case d.COLOR:return{name:L.showColorPicker};case d.DATE:case d.DATETIME_LOCAL:case d.WEEK:case d.MONTH:return{name:L.showDatePicker};case d.TIME:return{name:L.showTimePicker}}}),{hasIcon:it}=ie(y),{formatted:Vo}=bo(c,{mode:h.value,upperLimit:Number(Te?.value),lowerLimit:Number(W?.value)}),R=(0,e.computed)(()=>o.disabled||o.readonly),Ao=(0,e.computed)(()=>R.value?-1:o.tabindex),z=(0,e.computed)(()=>!ae(se?.value)),Bo=(0,e.computed)(()=>{if(T.value===!0)return!0;if(Y.value===!0)return!1}),V=yo((0,e.computed)(()=>o.storageKey??(f?.experimentalFeatures.forceInputSuggestions?o.name:void 0)),$e,new Set),K=(0,e.computed)(()=>{const n=new Map;if(V.value)for(const v of V.value)n.set(v,{isFromStorage:!0});if(o.suggestions)for(const v of o.suggestions)n.set(v,{isFromStorage:!1});return n}),Mo=(0,e.computed)(()=>K.value.size===0?[]:[...K.value.entries()].filter(([n])=>ae(c.value)||`${n}`.toLowerCase().includes(`${c.value}`.toLowerCase())&&n!==c.value).reverse().map(([n])=>n)),Ro=(0,e.computed)(()=>K.value.size>0);function _o(n){c.value=n,oe.value?.hide(),r("suggestion:selected",n)}function Ho(n){K.value.get(n)?.isFromStorage&&(V.value?.delete(n),r("suggestion:removed",n))}const{modifiers:Fo}=(0,e.toRefs)(o),jo=le("vv-input-text",Fo,(0,e.computed)(()=>({valid:Y.value,invalid:T.value,loading:Ie.value,disabled:o.disabled,required:o.required,readonly:o.readonly,"icon-before":!!Re.value,"icon-after":!!_e.value,floating:o.floating&&!ae(o.label),dirty:z.value,focus:w.value&&!R.value,"auto-width":o.autoWidth}))),zo=(0,e.computed)(()=>[d.TEXT,d.SEARCH,d.URL,d.TEL,d.EMAIL,d.PASSWORD].includes(S.value)),He=(0,e.computed)(()=>[d.DATE,d.MONTH,d.WEEK,d.TIME,d.DATETIME_LOCAL].includes(S.value)),Uo=(0,e.computed)(()=>[d.TEXT,d.SEARCH,d.URL,d.TEL,d.EMAIL,d.PASSWORD].includes(S.value)),Wo=(0,e.computed)(()=>{const n=at.value&&Ve.value||No.value&&!z.value&&!i.value||o.iMask?d.TEXT:o.type,v={type:n,name:o.name,tabindex:Ao.value,disabled:o.disabled,readonly:o.readonly,required:o.required,autocomplete:o.autocomplete,"aria-invalid":Bo.value,"aria-describedby":qo.value?g.value:void 0,"aria-errormessage":Ko.value?g.value:void 0,inputMode:o.inputMode};if(He.value||n===d.NUMBER){let D=o.max;n===d.DATE&&!D&&(D="9999-12-31"),v.step=o.step,v.max=D!==void 0?String(D):void 0,v.min=o.min!==void 0?String(o.min):void 0}return(zo.value||n===d.TEXT||n===d.NUMBER)&&(v.placeholder=F.value),Uo.value&&(v.minlength=o.minlength,v.maxlength=o.maxlength,v.pattern=o.pattern),n===d.EMAIL&&(v.multiple=o.multiple),v}),me=(0,e.computed)(()=>({valid:o.valid,invalid:o.invalid,modelValue:o.modelValue,togglePassword:nt,stepUp:Be,stepDown:Me,clear:rt})),{HintSlot:Yo,hasHintLabelOrSlot:qo,hasInvalidLabelOrSlot:Ko,hintSlotScope:ve}=Et(p,s),Xo=Pe(d.PASSWORD,o,z),Go=Pe(d.NUMBER,o,z),Jo=Pe(d.SEARCH,o,z);function Zo(){R.value||(i.value=!0)}const Qo=(0,e.computed)(()=>{if(o.autoWidth)return{width:c.value!==void 0?`${String(c.value).length+1}ch`:void 0}});function ea(n){switch(n.code){case"ArrowUp":Ae.value&&(Be(),n.preventDefault());break;case"ArrowDown":Ae.value&&(Me(),n.preventDefault());break}r("keydown",n)}return(n,v)=>((0,e.openBlock)(),(0,e.createElementBlock)("div",{class:(0,e.normalizeClass)((0,e.unref)(jo))},[(0,e.unref)(_)?((0,e.openBlock)(),(0,e.createElementBlock)("label",{key:0,for:(0,e.unref)(q),class:"vv-input-text__label"},(0,e.toDisplayString)((0,e.unref)(_)),9,So)):(0,e.createCommentVNode)("v-if",!0),(0,e.createElementVNode)("div",{ref_key:"wrapperEl",ref:te,class:"vv-input-text__wrapper"},[n.$slots.before?((0,e.openBlock)(),(0,e.createElementBlock)("div",wo,[(0,e.renderSlot)(n.$slots,"before",(0,e.normalizeProps)((0,e.guardReactiveProps)((0,e.unref)(me))))])):(0,e.createCommentVNode)("v-if",!0),(0,e.createElementVNode)("div",{ref_key:"innerEl",ref:ee,class:"vv-input-text__inner",onClick:(0,e.withModifiers)(Zo,["stop"])},[(0,e.unref)(Re)?((0,e.openBlock)(),(0,e.createBlock)(A,(0,e.mergeProps)({key:0},(0,e.unref)(Re),{class:"vv-input-text__icon"}),null,16)):(0,e.createCommentVNode)("v-if",!0),(0,e.createElementVNode)("input",(0,e.mergeProps)({id:(0,e.unref)(q),ref_key:"inputEl",ref:I},(0,e.unref)(Wo),{style:(0,e.unref)(Qo),onKeyup:v[0]||(v[0]=D=>r("keyup",D)),onKeydown:ea,onKeypress:v[1]||(v[1]=D=>r("keypress",D))}),null,16,Eo),((0,e.unref)(de)||n.$slots.unit)&&(0,e.unref)(z)?((0,e.openBlock)(),(0,e.createElementBlock)("div",Do,[(0,e.renderSlot)(n.$slots,"unit",(0,e.normalizeProps)((0,e.guardReactiveProps)((0,e.unref)(me))),()=>[(0,e.createTextVNode)((0,e.toDisplayString)((0,e.unref)(de)),1)])])):(0,e.createCommentVNode)("v-if",!0)],512),(0,e.unref)(_e)?((0,e.openBlock)(),(0,e.createBlock)(A,(0,e.mergeProps)({key:1},(0,e.unref)(_e),{class:"vv-input-text__icon vv-input-text__icon-after"}),null,16)):(0,e.unref)(at)&&!n.hideActions&&!(0,e.unref)(R)?((0,e.openBlock)(),(0,e.createBlock)((0,e.unref)(Xo),{key:2,onTogglePassword:nt})):(0,e.unref)(Ae)&&!n.hideActions&&!(0,e.unref)(R)?((0,e.openBlock)(),(0,e.createBlock)((0,e.unref)(Go),{key:3,onStepUp:Be,onStepDown:Me})):(0,e.unref)(xo)&&!n.hideActions&&!(0,e.unref)(R)?((0,e.openBlock)(),(0,e.createBlock)((0,e.unref)(Jo),{key:4,onClear:rt})):(0,e.createCommentVNode)("v-if",!0),n.$slots.after?((0,e.openBlock)(),(0,e.createElementBlock)("div",ko,[(0,e.renderSlot)(n.$slots,"after",(0,e.normalizeProps)((0,e.guardReactiveProps)((0,e.unref)(me))))])):(0,e.createCommentVNode)("v-if",!0),(0,e.unref)(h)?((0,e.openBlock)(),(0,e.createElementBlock)("span",Po,[(0,e.renderSlot)(n.$slots,"count",(0,e.normalizeProps)((0,e.guardReactiveProps)((0,e.unref)(me))),()=>[(0,e.createTextVNode)((0,e.toDisplayString)((0,e.unref)(Vo)),1)])])):(0,e.createCommentVNode)("v-if",!0)],512),(0,e.createVNode)((0,e.unref)(Yo),{id:(0,e.unref)(g),class:"vv-input-text__hint"},(0,e.createSlots)({_:2},[n.$slots.hint?{name:"hint",fn:(0,e.withCtx)(()=>[(0,e.renderSlot)(n.$slots,"hint",(0,e.normalizeProps)((0,e.guardReactiveProps)((0,e.unref)(ve))))]),key:"0"}:void 0,n.$slots.loading?{name:"loading",fn:(0,e.withCtx)(()=>[(0,e.renderSlot)(n.$slots,"loading",(0,e.normalizeProps)((0,e.guardReactiveProps)((0,e.unref)(ve))))]),key:"1"}:void 0,n.$slots.valid?{name:"valid",fn:(0,e.withCtx)(()=>[(0,e.renderSlot)(n.$slots,"valid",(0,e.normalizeProps)((0,e.guardReactiveProps)((0,e.unref)(ve))))]),key:"2"}:void 0,n.$slots.invalid?{name:"invalid",fn:(0,e.withCtx)(()=>[(0,e.renderSlot)(n.$slots,"invalid",(0,e.normalizeProps)((0,e.guardReactiveProps)((0,e.unref)(ve))))]),key:"3"}:void 0]),1032,["id"]),(0,e.unref)(Ro)?((0,e.openBlock)(),(0,e.createBlock)(oo,{key:1,ref_key:"suggestionsDropdownEl",ref:oe,reference:(0,e.unref)(te),"autofocus-first":!1,"trigger-width":!0},{items:(0,e.withCtx)(()=>[((0,e.openBlock)(!0),(0,e.createElementBlock)(e.Fragment,null,(0,e.renderList)((0,e.unref)(Mo),D=>((0,e.openBlock)(),(0,e.createBlock)(co,{key:String(D),onClick:(0,e.withModifiers)(ta=>_o(D),["stop"])},{default:(0,e.withCtx)(()=>[(0,e.createElementVNode)("div",Co,[(0,e.renderSlot)(n.$slots,"suggestion",(0,e.mergeProps)({ref_for:!0},{value:D}),()=>[(0,e.createTextVNode)((0,e.toDisplayString)(D),1)])]),(0,e.unref)(K).get(D)?.isFromStorage&&(0,e.unref)(it)?((0,e.openBlock)(),(0,e.createElementBlock)("button",{key:0,type:"button",tabindex:"-1",class:"cursor-pointer",title:(0,e.unref)(Ce),onClick:(0,e.withModifiers)(ta=>Ho(D),["stop"])},[(0,e.createVNode)(A,(0,e.mergeProps)({ref_for:!0},(0,e.unref)(it)),null,16)],8,Io)):(0,e.createCommentVNode)("v-if",!0)]),_:2},1032,["onClick"]))),128))]),_:3},8,["reference"])):(0,e.createCommentVNode)("v-if",!0)],2))}}),Oo=$o;return Oo});
|
|
1
|
+
(function(e,Q){typeof exports=="object"&&typeof module<"u"?module.exports=Q(require("vue"),require("vue-imask"),require("@floating-ui/vue"),require("@vueuse/core"),require("mitt"),require("@iconify/vue")):typeof define=="function"&&define.amd?define(["vue","vue-imask","@floating-ui/vue","@vueuse/core","mitt","@iconify/vue"],Q):(e=typeof globalThis<"u"?globalThis:e||self,e.VvInputText=Q(e.Vue,e.vueImask,e.FloatingUiVue,e.VueuseCore,e.mitt,e.IconifyVue))})(this,function(e,Q,C,k,ye,ee){var dt=Object.create,je=Object.defineProperty,ut=Object.getOwnPropertyDescriptor,ct=Object.getOwnPropertyNames,ft=Object.getPrototypeOf,pt=Object.prototype.hasOwnProperty,mt=(t,a,l,o)=>{if(a&&typeof a=="object"||typeof a=="function")for(var r=ct(a),i=0,f=r.length,p;i<f;i++)p=r[i],!pt.call(t,p)&&p!==l&&je(t,p,{get:(h=>a[h]).bind(null,p),enumerable:!(o=ut(a,p))||o.enumerable});return t},vt=(t,a,l)=>(l=t!=null?dt(ft(t)):{},mt(a||!t||!t.__esModule?je(l,"default",{value:t,enumerable:!0}):l,t));ye=vt(ye,1);var O=t=>t.toString().padStart(2,"0"),ht=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(?:\.\d{1,3})?(?:Z|[+-]\d{2}:?\d{2})?$/;function ze(t){if(typeof t!="string"||!ht.test(t))return!1;const a=new Date(t);return!Number.isNaN(a.getTime())&&a.toISOString()===t}function Ue(t,a="date",l){if(typeof t=="string"&&!ze(t))return"";const o=new Date(t);if(Number.isNaN(o.getTime()))return"";let r=`${o.getFullYear()}-${O(o.getMonth()+1)}`;if(a==="month"||(r+=`-${O(o.getDate())}`,a==="date"))return r;const i=l?`${O(o.getHours())}:${O(o.getMinutes())}:${O(o.getSeconds())}`:`${O(o.getHours())}:${O(o.getMinutes())}`;return a==="time"?i:`${r}T${i}`}var gt=/^\d{4}-\d{2}-\d{2}$/,bt=/^\d{4}-\d{2}$/,yt=/^(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d)?$/,St=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}(?::\d{2})?$/;function wt(t,a="date"){if(!t?.trim())return null;const l=new Date,o=l.getFullYear(),r=l.getMonth(),i=l.getDate();if(a==="date"){if(!gt.test(t))throw new Error("Invalid date format. Expected: YYYY-MM-DD");return new Date(`${t}T00:00:00`)}if(a==="month"){if(!bt.test(t))throw new Error("Invalid month format. Expected: YYYY-MM");return new Date(`${t}-01T00:00:00`)}if(a==="time"){if(!yt.test(t))throw new Error("Invalid time format. Expected: HH:mm or HH:mm:ss");return t.length===8?new Date(`${o}-${O(r+1)}-${O(i)}T${t}`):new Date(`${o}-${O(r+1)}-${O(i)}T${t}:00`)}if(!St.test(t))throw new Error("Invalid datetime format. Expected: YYYY-MM-DDThh:mm or YYYY-MM-DDThh:mm:ss");return t.length===16?new Date(`${t}:00`):new Date(`${t}`)}function ie(t){return(a=>a==null||a===""||Array.isArray(a)&&a.length===0||!(a instanceof Date)&&typeof a=="object"&&Object.keys(a).length===0)((0,e.unref)(t))}function Et(t){return typeof t=="string"}function We(t){return Array.isArray(t)?t.filter(a=>Et(a)).join(" "):t}function Dt(t,a){const l=(0,e.computed)(()=>(0,e.isRef)(t)?t.value:t),o=(0,e.computed)(()=>We(l.value.invalidLabel)),r=(0,e.computed)(()=>We(l.value.validLabel)),i=(0,e.computed)(()=>l.value.loadingLabel),f=(0,e.computed)(()=>l.value.hintLabel),p=(0,e.computed)(()=>!!(l.value.loading&&(a.loading||i.value))),h=(0,e.computed)(()=>!p.value&&!!(l.value.invalid&&(a.invalid||o.value))),m=(0,e.computed)(()=>!p.value&&!h.value&&!!(l.value.valid&&(a.valid||r.value))),E=(0,e.computed)(()=>!p.value&&!h.value&&!m.value&&!!(a.hint||f.value)),u=(0,e.computed)(()=>h.value||m.value||p.value||E.value);return{hasInvalidLabelOrSlot:h,hasHintLabelOrSlot:E,hasValidLabelOrSlot:m,hasLoadingLabelOrSlot:p,hintSlotScope:(0,e.computed)(()=>({modelValue:l.value.modelValue,valid:l.value.valid,invalid:l.value.invalid,loading:l.value.loading})),HintSlot:(0,e.defineComponent)({name:"HintSlot",props:{tag:{type:String,default:"small"}},setup(){return{isVisible:u,invalidLabel:o,validLabel:r,loadingLabel:i,hintLabel:f,hasInvalidLabelOrSlot:h,hasValidLabelOrSlot:m,hasLoadingLabelOrSlot:p,hasHintLabelOrSlot:E}},render(){if(this.isVisible){let b;return this.hasInvalidLabelOrSlot&&(b="alert"),this.hasValidLabelOrSlot&&(b="status"),this.hasLoadingLabelOrSlot?(0,e.h)(this.tag,{role:b},this.$slots.loading?.()??this.loadingLabel):this.hasInvalidLabelOrSlot?(0,e.h)(this.tag,{role:b},this.$slots.invalid?.()??this.$slots.invalid??this.invalidLabel):this.hasValidLabelOrSlot?(0,e.h)(this.tag,{role:b},this.$slots.valid?.()??this.validLabel):(0,e.h)(this.tag,{role:b},this.$slots.hint?.()??this.$slots.hint??this.hintLabel)}return null}})}}var q=(function(t){return t.local="local",t.session="session",t})({}),Ye=(function(t){return t.absolute="absolute",t.fixed="fixed",t})({}),P=(function(t){return t.left="left",t.right="right",t.top="top",t.bottom="bottom",t})({}),kt=(function(t){return t.topStart="top-start",t.topEnd="top-end",t.bottomStart="bottom-start",t.bottomEnd="bottom-end",t.leftStart="left-start",t.leftEnd="left-end",t.rightStart="right-start",t.rightEnd="right-end",t})({}),se=(function(t){return t.before="before",t.after="after",t})({}),qe=(function(t){return t.button="button",t.submit="submit",t.reset="reset",t})({}),Pt=(function(t){return t.nuxtLink="nuxt-link",t.routerLink="router-link",t.a="a",t.button="button",t})({}),Ct=(function(t){return t.button="button",t.link="link",t.menuitem="menuitem",t})({}),Se=(function(t){return t.listbox="listbox",t.menu="menu",t})({}),Ke=(function(t){return t.option="option",t.presentation="presentation",t})({}),It=Symbol.for("volver"),Tt=Symbol.for("dropdownTrigger"),Xe=Symbol.for("dropdownItem"),$t=Symbol.for("dropdownAction"),x={showPassword:"eye-on",hidePassword:"eye-off",showDatePicker:"calendar",showTimePicker:"time",showColorPicker:"color",clear:"close",add:"add",remove:"trash",edit:"edit",download:"download"},Ot={prefix:"normal"},xt={to:{type:[String,Object]},href:String,target:String,rel:{type:String,default:"noopener noreferrer"}},we={valid:{type:Boolean,default:!1},validLabel:{type:[String,Array],default:void 0}},Ee={invalid:{type:Boolean,default:!1},invalidLabel:{type:[String,Array],default:void 0}},De={loading:{type:Boolean,default:!1},loadingLabel:{type:String,default:"Loading..."}},te={disabled:{type:Boolean,default:!1}},Ge={required:{type:Boolean,default:!1}},Lt={selected:{type:Boolean,default:!1}},Nt={active:{type:Boolean,default:!1}},Vt={current:{type:Boolean,default:!1}},ta={showClearAction:{type:Boolean,default:!1},iconClear:{type:[String,Object],default:x.clear},labelClear:{type:String,default:"Clear"}},At={pressed:{type:Boolean,default:!1}},de={label:{type:[String,Number],default:void 0}},ke={readonly:{type:Boolean,default:!1}},oe={modifiers:{type:[String,Array],default:void 0}},Pe={hintLabel:{type:String,default:""}},Bt={options:{type:Array,default:()=>[]},labelKey:{type:[String,Function],default:"label"},valueKey:{type:[String,Function],default:"value"},disabledKey:{type:[String,Function],default:"disabled"}},Mt={count:{type:[Boolean,String],default:!1,validator:t=>[!0,!1,"limit","countdown"].includes(t)}},_t={debounce:{type:[Number,String],default:void 0}},Rt={icon:{type:[String,Object],default:void 0},iconPosition:{type:String,default:se.before,validation:t=>Object.values(se).includes(t)}},Je={tabindex:{type:[String,Number],default:0}},Ht={floating:{type:Boolean,default:!1}},Ft={unselectable:{type:Boolean,default:!0}},Ze={id:[String,Number]},jt={placement:{type:String,default:P.bottom,validator:t=>Object.values(P).includes(t)||Object.values(kt).includes(t)},strategy:{type:String,default:void 0,validator:t=>Object.values(Ye).includes(t)},transitionName:{type:String,default:void 0},offset:{type:[Number,String,Object],default:0},shift:{type:[Boolean,Object],default:!1},flip:{type:[Boolean,Object],default:!0},size:{type:[Boolean,Object],default:()=>({padding:10})},autoPlacement:{type:[Boolean,Object],default:!1},arrow:{type:Boolean,default:!1},keepOpen:{type:Boolean,default:!1},autofocusFirst:{type:Boolean,default:!0},triggerWidth:{type:Boolean,default:!1}},Qe={...Ze,name:{type:String,required:!0}},zt={autofocus:{type:Boolean,default:!1}},Ut={autocomplete:{type:String,default:"off"}},Wt={...Qe,...zt,...Ut,...Je,...te,...ke,...we,...Ee,...Pe,...De,...oe,...Mt,..._t,...Rt,...Ht,...de,minlength:{type:[String,Number],default:void 0},maxlength:{type:[String,Number],default:void 0},placeholder:{type:String,default:void 0},...Ge},oa={...Qe,...Je,...we,...Ee,...Pe,...te,...ke,...oe,...de,...De,value:{type:[String,Number,Boolean],default:void 0},modelValue:{type:[Object,Number,Boolean,String],default:void 0}},aa={...we,...Ee,...Bt,...Pe,...te,...ke,...oe,...de,...De,...Ge,modelValue:{type:[String,Array,Boolean,Number,Symbol],default:void 0},name:{type:String,required:!0},vertical:{type:Boolean,default:!1}},na={...te,...de,...At,...Nt,...Vt,...xt,type:{type:String,default:qe.button,validator:t=>Object.values(qe).includes(t)},ariaLabel:{type:String,default:void 0},defaultTag:{type:String,default:Pt.button}},Yt={storageType:{type:String,default:q.local,validator:t=>Object.values(q).includes(t)},storageKey:String},qt={...Ze,...jt,...oe,modelValue:{type:Boolean,default:void 0},reference:{type:Object,default:null},role:{type:String,default:Se.menu,validator:t=>Object.values(Se).includes(t)}},Kt={focusOnHover:{type:Boolean,default:!1}},Xt={...te,...Lt,...Ft,...oe,deselectHintLabel:{type:String},selectHintLabel:{type:String},selectedHintLabel:{type:String},focusOnHover:{type:Boolean,default:!1}};function et(t){return(0,e.computed)(()=>String(t?.value||(0,e.useId)()))}function Gt({reference:t,id:a,expanded:l,aria:o}){const r=(0,ye.default)();return{bus:r,component:(0,e.defineComponent)({name:"VvDropdownTriggerProvider",setup(){(0,e.provide)(Tt,{reference:t,id:a,expanded:l,aria:o,bus:r})},render(){return(0,e.h)(e.Fragment,{},this.$slots.default?.())}})}}function Jt({role:t,...a}){const l=(0,e.computed)(()=>t.value===Se.listbox?Ke.option:Ke.presentation);return(0,e.provide)(Xe,{role:l,...a}),{itemRole:l}}function Zt({expanded:t}){(0,e.provide)($t,{role:(0,e.ref)(Ct.menuitem),expanded:t})}function ue(t,a,l){return(0,e.computed)(()=>{const o={[t]:!0},r=typeof a?.value=="string"?a.value.split(" "):a?.value;return r&&Array.isArray(r)&&r.forEach(i=>{i&&(o[`${t}--${i}`]=!0)}),l&&Object.keys(l.value).forEach(i=>{o[`${t}--${i}`]=(0,e.unref)(l.value[i])}),o})}var Qt=["id","tabindex","role","aria-labelledby"],eo={name:"VvDropdown",inheritAttrs:!1},to=(0,e.defineComponent)({...eo,props:qt,emits:["update:modelValue","beforeEnter","afterLeave","beforeExpand","beforeCollapse","afterExpand","afterCollapse","before-enter","after-leave","enter","afterEnter","enterCancelled","beforeLeave","leave","leaveCancelled"],setup(t,{expose:a,emit:l}){const o=t,r=l,{id:i}=(0,e.toRefs)(o),f=et(i),p=(0,e.useAttrs)(),h=(0,e.ref)("auto"),m=(0,e.ref)("auto"),E=(0,e.ref)(),u=(0,e.ref)(),b=(0,e.ref)(),L=(0,e.ref)(),T=(0,e.computed)({get:()=>o.reference??E.value,set:s=>{E.value=s}}),F=(0,e.ref)(!1);(0,e.onMounted)(()=>{(0,k.useMutationObserver)(u.value,()=>{F.value=window.getComputedStyle(u.value).getPropertyValue("--dropdown-custom-position")?.trim()==="true"},{attributeFilter:["style"],window})});function K(s,g,W){return typeof s=="boolean"?g():W(s)}const $e=(0,e.computed)(()=>{const s=[];if(o.autoPlacement?s.push(K(o.autoPlacement,()=>(0,C.autoPlacement)(),g=>(0,C.autoPlacement)(g))):o.flip&&s.push(K(o.flip,()=>(0,C.flip)({fallbackStrategy:"initialPlacement"}),g=>(0,C.flip)(g))),o.shift&&s.push(K(o.shift,()=>(0,C.shift)(),g=>(0,C.shift)(g))),o.size){const g=({availableWidth:W,availableHeight:Ve})=>{h.value=`${W}px`,m.value=`${Ve}px`};s.push(K(o.size,()=>(0,C.size)({apply:g}),W=>(0,C.size)({...W,apply:g})))}return o.offset&&s.push(["string","number"].includes(typeof o.offset)?(0,C.offset)(Number(o.offset)):(0,C.offset)(o.offset)),o.arrow&&s.push((0,C.arrow)({element:b})),s}),{x:Oe,y:xe,middlewareData:j,placement:z,strategy:Le}=(0,C.useFloating)(T,u,{whileElementsMounted:(...s)=>(0,C.autoUpdate)(...s,{animationFrame:o.strategy===Ye.fixed}),placement:(0,e.computed)(()=>o.placement),strategy:(0,e.computed)(()=>o.strategy),middleware:$e}),S=(0,e.computed)(()=>{if(F.value)return;const s=o.triggerWidth&&T.value?`${T.value?.offsetWidth}px`:void 0;return{position:Le.value,top:`${xe.value??0}px`,left:`${Oe.value??0}px`,maxWidth:s?void 0:h.value,maxHeight:m.value,width:s}}),fe=(0,e.computed)(()=>z.value.split("-")[0]),pe=(0,e.computed)(()=>{if(F.value)return;const s={[P.top]:P.bottom,[P.right]:P.left,[P.bottom]:P.top,[P.left]:P.right}[fe.value];return{left:j.value.arrow?.x!==void 0?`${j.value.arrow?.x}px`:void 0,top:j.value.arrow?.y!==void 0?`${j.value.arrow?.y}px`:void 0,[s]:`${-(b.value?.offsetWidth??0)/2}px`}}),U=(0,k.useVModel)(o,"modelValue",r),X=(0,e.ref)(!1),y=(0,e.computed)({get:()=>U.value??X.value,set:s=>{if(U.value===void 0){X.value=s;return}U.value=s}});function c(){y.value=!0}function B(){y.value=!1}function M(){y.value=!y.value}function me(s){T.value=s}(0,k.onClickOutside)(u,()=>{!o.keepOpen&&y.value&&(y.value=!1)},{ignore:[T]});const Ne=(0,e.computed)(()=>T.value?.getAttribute?.("id")??void 0),ae=(0,e.computed)(()=>({"aria-controls":f.value,"aria-haspopup":!0,"aria-expanded":y.value})),{component:N,bus:R}=Gt({reference:T,id:f,expanded:y,aria:ae});R.on("click",M);const{role:ve,modifiers:he}=(0,e.toRefs)(o),w=ue("vv-dropdown",he,(0,e.computed)(()=>({arrow:o.arrow}))),{focused:_}=(0,k.useFocusWithin)(u);function I(s){return s?[...s.querySelectorAll('a[href], button, input, textarea, select, details, [tabindex]:not([tabindex="-1"])')].filter(g=>!g.hasAttribute("disabled")&&!g.getAttribute("aria-hidden")):[]}function ne(){(0,e.nextTick)(()=>{const s=I(u.value);s.length>0&&s[0].focus({preventScroll:!0})})}function $(){(0,e.nextTick)(()=>{const s=I(L.value);s.length>0&&s[0].focus({preventScroll:!0})})}function re(){(0,e.nextTick)(()=>{if(_.value){const s=I(u.value);if(s.length===0||!document.activeElement)return;const g=s.indexOf(document.activeElement);g<s.length-1?s[g+1].focus({preventScroll:!0}):s[0].focus({preventScroll:!0})}})}function G(){(0,e.nextTick)(()=>{if(_.value){const s=I(u.value);if(s.length===0||!document.activeElement)return;const g=s.indexOf(document.activeElement);if(g>0){s[g-1].focus({preventScroll:!0});return}s.at(-1)?.focus({preventScroll:!0})}})}(0,e.watch)(y,s=>{s&&o.autofocusFirst&&ne()}),a({toggle:M,show:c,hide:B,init:me,focusFirst:ne,focusFirstListElement:$,focusNext:re,focusPrev:G,customPosition:F});const{itemRole:le}=Jt({role:ve,expanded:y,focused:_,hovered:(0,k.useElementHover)(u)});(0,k.onKeyStroke)("Escape",s=>{y.value&&(s.preventDefault(),B())}),(0,k.onKeyStroke)("ArrowDown",s=>{y.value&&_.value&&(s.preventDefault(),re())}),(0,k.onKeyStroke)("ArrowUp",s=>{y.value&&_.value&&(s.preventDefault(),G())}),(0,k.onKeyStroke)([" ","Enter"],s=>{const g=s.target;y.value&&_.value&&g&&g?.click()});const J={"before-enter":()=>{r(y.value?"beforeExpand":"beforeCollapse"),r("beforeEnter")},"after-leave":()=>{r(y.value?"afterExpand":"afterCollapse"),r("afterLeave")},enter:()=>{r("enter")},"after-enter":()=>{r("afterEnter")},"enter-cancelled":()=>{r("enterCancelled")},"before-leave":()=>{r("beforeLeave")},leave:()=>{r("leave")},"leave-cancelled":()=>{r("leaveCancelled")}};return(s,g)=>((0,e.openBlock)(),(0,e.createElementBlock)(e.Fragment,null,[(0,e.createVNode)((0,e.unref)(N),null,{default:(0,e.withCtx)(()=>[(0,e.renderSlot)(s.$slots,"default",(0,e.normalizeProps)((0,e.guardReactiveProps)({init:me,show:c,hide:B,toggle:M,expanded:(0,e.unref)(y),aria:(0,e.unref)(ae)})))]),_:3}),(0,e.createVNode)(e.Transition,(0,e.mergeProps)({name:s.transitionName},(0,e.toHandlers)(J),{persisted:""}),{default:(0,e.withCtx)(()=>[(0,e.withDirectives)((0,e.createElementVNode)("div",{ref_key:"floatingEl",ref:u,style:(0,e.normalizeStyle)((0,e.unref)(S)),class:(0,e.normalizeClass)((0,e.unref)(w))},[o.arrow?((0,e.openBlock)(),(0,e.createElementBlock)("div",{key:0,ref_key:"arrowEl",ref:b,style:(0,e.normalizeStyle)((0,e.unref)(pe)),class:"vv-dropdown__arrow"},null,4)):(0,e.createCommentVNode)("v-if",!0),(0,e.renderSlot)(s.$slots,"before",(0,e.normalizeProps)((0,e.guardReactiveProps)({show:c,hide:B,toggle:M,expanded:(0,e.unref)(y)}))),(0,e.createElementVNode)("div",(0,e.mergeProps)((0,e.unref)(p),{id:(0,e.unref)(f),ref_key:"listEl",ref:L,tabindex:(0,e.unref)(y)?void 0:-1,role:(0,e.unref)(ve),"aria-labelledby":(0,e.unref)(Ne),class:"vv-dropdown__list"}),[(0,e.renderSlot)(s.$slots,"items",(0,e.normalizeProps)((0,e.guardReactiveProps)({show:c,hide:B,toggle:M,expanded:(0,e.unref)(y),role:(0,e.unref)(le)})))],16,Qt),(0,e.renderSlot)(s.$slots,"after",(0,e.normalizeProps)((0,e.guardReactiveProps)({show:c,hide:B,toggle:M,expanded:(0,e.unref)(y)})))],6),[[e.vShow,(0,e.unref)(y)]])]),_:3},16,["name"])],64))}}),oo=to;function ao(){return(0,e.inject)(Xe,{})}var no={name:"VvDropdownItem"},ro=(0,e.defineComponent)({...no,props:Kt,setup(t){const a=t,{role:l,expanded:o}=ao(),r=(0,e.ref)(null);Zt({expanded:o});const i=(0,k.useElementHover)(r),{focused:f}=(0,k.useFocus)(r),{focused:p}=(0,k.useFocusWithin)(r);return(0,e.watch)(i,h=>{h&&a.focusOnHover&&(f.value=!0)}),(h,m)=>((0,e.openBlock)(),(0,e.createElementBlock)("div",(0,e.mergeProps)({role:(0,e.unref)(l)},{ref_key:"element",ref:r,class:["vv-dropdown__item",{"focus-visible":(0,e.unref)(f)||(0,e.unref)(p)}]}),[(0,e.renderSlot)(h.$slots,"default")],16))}}),lo=ro,io=["title"],so={name:"VvDropdownOption"},uo=(0,e.defineComponent)({...so,props:Xt,setup(t){const a=t,{modifiers:l}=(0,e.toRefs)(a),o=ue("vv-dropdown-option",l,(0,e.computed)(()=>({disabled:a.disabled,selected:a.selected,unselectable:a.unselectable&&a.selected}))),r=(0,e.computed)(()=>a.selected?a.unselectable?a.deselectHintLabel:a.selectedHintLabel:a.disabled?"":a.selectHintLabel);return(i,f)=>((0,e.openBlock)(),(0,e.createBlock)(lo,{class:(0,e.normalizeClass)((0,e.unref)(o)),tabindex:i.disabled?-1:0,"aria-selected":i.selected,"aria-disabled":i.disabled,"focus-on-hover":i.focusOnHover},{default:(0,e.withCtx)(()=>[(0,e.renderSlot)(i.$slots,"default"),(0,e.createElementVNode)("span",{class:"vv-dropdown-option__hint",title:(0,e.unref)(r)},[(0,e.renderSlot)(i.$slots,"hint",(0,e.normalizeProps)((0,e.guardReactiveProps)({disabled:i.disabled,selected:i.selected,unselectable:i.unselectable})),()=>[(0,e.createTextVNode)((0,e.toDisplayString)((0,e.unref)(r)),1)])],8,io)]),_:3},8,["class","tabindex","aria-selected","aria-disabled","focus-on-hover"]))}}),co=uo;function Ce(){return(0,e.inject)(It,void 0)}var fo={name:"VvIcon"},po=(0,e.defineComponent)({...fo,props:(0,e.mergeDefaults)({name:{},color:{},width:{},height:{},provider:{},prefix:{},src:{},horizontalFlip:{type:Boolean},verticalFlip:{type:Boolean},flip:{},mode:{},inline:{type:Boolean},rotate:{},onLoad:{type:Function},svg:{},modifiers:{}},Ot),setup(t){const a=t,l=(0,e.computed)(()=>typeof a.rotate=="string"?Number.parseFloat(a.rotate):a.rotate),o=(0,e.ref)(!0),r=Ce(),{modifiers:i}=(0,e.toRefs)(a),f=ue("vv-icon",i),p=(0,e.computed)(()=>a.provider||r?.iconsProvider),h=(0,e.computed)(()=>{const u=a.name??"",b=`@${p.value}:${a.prefix}:${u}`;if((0,ee.iconLoaded)(b))return b;const L=r?.iconsCollections.find(T=>(0,ee.iconLoaded)(`@${p.value}:${T.prefix}:${u}`));return L?`@${p.value}:${L.prefix}:${u}`:u});function m(u){const b=typeof window<"u"?new window.DOMParser:null;return b?b.parseFromString(u,"text/html").querySelector("svg"):null}function E(u){const b=m(u),L=b?.innerHTML.trim()||"";b&&L&&(0,ee.addIcon)(`@${p.value}:${a.prefix}:${a.name}`,{body:L,height:b.viewBox.baseVal.height,width:b.viewBox.baseVal.width})}return r&&a.src&&!(0,ee.iconLoaded)(`@${p.value}:${a.prefix}:${a.name}`)&&(o.value=!1,r.fetchIcon(a.src).then(u=>{u&&E(u),o.value=!0}).catch(u=>{throw o.value=!0,new Error(`Error during fetch icon: ${u?.message}`)})),a.svg&&E(a.svg),(u,b)=>(0,e.unref)(o)?((0,e.openBlock)(),(0,e.createBlock)((0,e.unref)(ee.Icon),(0,e.mergeProps)({key:0,class:(0,e.unref)(f)},{inline:t.inline,width:t.width,height:t.height,horizontalFlip:t.horizontalFlip,verticalFlip:t.verticalFlip,flip:t.flip,rotate:(0,e.unref)(l),color:t.color,icon:(0,e.unref)(h)},{onLoad:t.onLoad}),null,16,["class","onLoad"])):(0,e.createCommentVNode)("v-if",!0)}}),A=po,d={TEXT:"text",PASSWORD:"password",NUMBER:"number",EMAIL:"email",TEL:"tel",URL:"url",COLOR:"color",SEARCH:"search",DATE:"date",TIME:"time",DATETIME_LOCAL:"datetime-local",MONTH:"month",WEEK:"week"},mo=["update:modelValue","update:masked","accept","accept:typed","accept:masked","accept:unmasked","complete","complete:typed","complete:masked","complete:unmasked","suggestion:selected","suggestion:removed","focus","blur","keyup","keydown","keypress","clear"],tt={...Wt,...Yt,modelValue:[String,Number,Date],type:{type:String,default:d.TEXT,validator:t=>Object.values(d).includes(t)},min:[Number,Date,String],max:[Number,Date,String],step:{type:[String,Number],default:1},pattern:String,multiple:Boolean,iconShowPassword:{type:[String,Object],default:x.showPassword},iconHidePassword:{type:[String,Object],default:x.hidePassword},iconClear:{type:[String,Object],default:x.clear},iconRemoveSuggestion:{type:[String,Object],default:x.remove},labelStepUp:{type:String,default:"Increase value"},labelStepDown:{type:String,default:"Decrease value"},labelShowPassword:{type:String,default:"Show password"},labelHidePassword:{type:String,default:"Hide password"},labelClear:{type:String,default:"Clear"},labelRemoveSuggestion:{type:String,default:"Remove suggestion"},iMask:{type:Object,default:void 0},masked:{type:String,default:void 0},autoWidth:{type:Boolean,default:!1},hideActions:{type:Boolean,default:!1},unit:{type:String},selectOnFocus:{type:Boolean,default:!1},maxSuggestions:{type:Number,default:5},suggestions:{type:Array,default:void 0},inputMode:{type:String,default:"text"}};function ce(t,a){const l=(0,e.computed)(()=>typeof t?.value=="string"?{name:t?.value}:t?.value),o=(0,e.computed)(()=>a?.value===se.before?l.value:void 0),r=(0,e.computed)(()=>a?.value===se.after?l.value:void 0);return{hasIcon:l,hasIconLeft:(0,e.computed)(()=>a?.value===P.left?l.value:void 0),hasIconRight:(0,e.computed)(()=>a?.value===P.right?l.value:void 0),hasIconTop:(0,e.computed)(()=>a?.value===P.top?l.value:void 0),hasIconBottom:(0,e.computed)(()=>a?.value===P.bottom?l.value:void 0),hasIconBefore:o,hasIconAfter:r}}var ot=(0,e.defineComponent)({components:{VvIcon:A},props:{inputType:{type:String,default:"input-text"},disabled:{type:Boolean,default:!1},label:{type:String,default:"Clear"},icon:{type:[String,Object],default:"close"}},emits:["clear"],setup(t,{emit:a}){const{hasIcon:l}=ce((0,e.computed)(()=>t.icon));function o(r){r?.stopPropagation(),t.disabled||a("clear")}return{hasIcon:l,onClick:o}},render(){const t=this.hasIcon?(0,e.h)(A,{...this.hasIcon,class:`vv-${this.inputType}__icon`}):void 0;return(0,e.h)("button",{disabled:this.disabled,class:`vv-${this.inputType}__action`,ariaLabel:this.label,type:"button",onClick:this.onClick},t)}}),at=(0,e.defineComponent)({components:{VvIcon:A},props:{inputType:{type:String,default:"input-text"},disabled:{type:Boolean,default:!1},labelShow:{type:String,default:"Show password"},labelHide:{type:String,default:"Hide password"},iconShow:{type:[String,Object],default:x.showPassword},iconHide:{type:[String,Object],default:x.hidePassword}},emits:["toggle-password"],setup(t,{emit:a}){const l=(0,e.ref)(!1),o=(0,e.computed)(()=>l.value?t.iconHide:t.iconShow),{hasIcon:r}=ce(o);function i(f){f?.stopPropagation(),t.disabled||(l.value=!l.value,a("toggle-password",l.value))}return{active:l,activeIcon:o,hasIcon:r,onClick:i}},render(){const t=this.hasIcon?(0,e.h)(A,{...this.hasIcon,class:`vv-${this.inputType}__icon`}):void 0;return(0,e.h)("button",{disabled:this.disabled,class:`vv-${this.inputType}__action`,ariaLabel:this.active?this.labelHide:this.labelShow,type:"button",onClick:this.onClick},t)}}),Ie=(0,e.defineComponent)({components:{VvIcon:A},props:{inputType:{type:String,default:"input-text"},disabled:{type:Boolean,default:!1},label:{type:String},mode:{type:String,validator:t=>["up","down"].includes(t),default:"up"}},emits:["step-up","step-down"],setup(t,{emit:a}){const l=(0,e.computed)(()=>t.mode==="up");return{isUp:l,onClick:r=>{r?.stopPropagation(),t.disabled||a(l.value?"step-up":"step-down")}}},render(){return(0,e.h)("button",{class:[`vv-${this.inputType}__action`,`vv-${this.inputType}__action-chevron`,this.isUp?`vv-${this.inputType}__action-chevron-up`:void 0],disabled:this.disabled,ariaLabel:this.label,type:"button",onClick:this.onClick})}});function Te(t,a,l){return{name:"VvInputTextActions",components:{VvIcon:A,VvInputPasswordAction:at,VvInputStepAction:Ie,VvInputClearAction:ot},setup(){return{isDirty:l,isDisabled:(0,e.computed)(()=>a.disabled||a.readonly),labelStepUp:a.labelStepUp,labelStepDown:a.labelStepDown,labelShowPassword:a.labelShowPassword,labelHidePassword:a.labelHidePassword,labelClear:a.labelClear,iconShowPassword:a.iconShowPassword,iconHidePassword:a.iconHidePassword}},render(){let o=null;switch(t){case d.SEARCH:{const{onClear:r}=this.$attrs;o=[(0,e.h)(ot,{disabled:this.isDisabled||!this.isDirty,label:this.labelClear,onClear:r})];break}case d.PASSWORD:{const{onTogglePassword:r}=this.$attrs;o=[(0,e.h)(at,{disabled:this.isDisabled,onTogglePassword:r,labelShow:this.labelShowPassword,labelHide:this.labelHidePassword,iconShow:this.iconShowPassword,iconHide:this.iconHidePassword})];break}case d.NUMBER:{const{onStepUp:r,onStepDown:i}=this.$attrs;o=[(0,e.h)(Ie,{mode:"up",disabled:this.isDisabled||a.max!==void 0&&a.modelValue===a.max,label:this.labelStepUp,onStepUp:r,onStepDown:i}),(0,e.h)(Ie,{mode:"down",disabled:this.isDisabled||a.min!==void 0&&a.modelValue===a.min,label:this.labelStepDown,onStepUp:r,onStepDown:i})];break}}return Array.isArray(o)?(0,e.h)("div",{class:"vv-input-text__actions-group"},o):o}}}function vo(t,a,l){const o=Ce(),r=(0,e.computed)(()=>{if(!(!o||!o.defaults.value?.[t]))return o.defaults.value[t]});return(0,e.computed)(()=>{if(r.value===void 0)return l;const i=r.value,f=a,p=l;return Object.keys(f).reduce((h,m)=>{const E=p[m];if(h[m]=E,m in i){if(Array.isArray(f[m])){const u=f[m];u.length&&u[0]===E&&(h[m]=i[m])}if(typeof f[m]=="function"){const u=f[m];u()===E&&(h[m]=i[m])}if(typeof f[m]=="object"){let u=f[m].default;typeof u=="function"&&(u=u()),typeof u=="object"?JSON.stringify(u)===JSON.stringify(E)&&(h[m]=i[m]):u===E&&(h[m]=i[m])}}return h},{})})}function ho(t,a,l=0,{getter:o=i=>i,setter:r=i=>i}={}){let i;return typeof l=="string"&&(l=Number.parseInt(l)),(0,e.computed)({get:()=>o(t?.value),set:f=>{i&&clearTimeout(i),i=setTimeout(()=>{a("update:modelValue",r(f))},l)}})}function go(t,a){const{focused:l}=(0,k.useFocus)(t);return(0,e.watch)(l,o=>{a(o?"focus":"blur",(0,e.unref)(t))}),{focused:l}}function bo(t,a){const l=(0,e.computed)(()=>((0,e.unref)(t)??"").length),o=(0,e.computed)(()=>a?.lowerLimit!==void 0&&l.value<a?.lowerLimit?l.value-a.lowerLimit:a?.upperLimit!==void 0?a.upperLimit-l.value:0);return{length:l,gap:o,formatted:(0,e.computed)(()=>a?.mode===!1?"":a?.mode==="limit"&&a?.upperLimit?`${l.value} / ${a.lowerLimit?`${a.lowerLimit}-`:""}${a.upperLimit}`:a?.mode==="countdown"?o.value===0?void 0:o.value:l.value)}}function yo(t,a=q.local,l){const o=(0,e.ref)();l&&(o.value=l);let r;return(0,e.onMounted)(()=>{t&&(0,e.watch)(t,(i,f)=>{const p=(0,e.unref)(a)===q.session?sessionStorage:localStorage;if(f&&f!==i&&p.removeItem(f),i){r=(0,k.useStorage)(i,r?.value??o.value,p),r.value&&(o.value=r.value);return}r=void 0},{immediate:!0}),(0,e.isRef)(a)&&(0,e.watch)(a,(i,f)=>{if(t?.value){if(i){const p=i===q.session?sessionStorage:localStorage;r=(0,k.useStorage)(t.value,r?.value??o.value,p)}f&&f!==i&&(f===q.session?sessionStorage:localStorage).removeItem(t.value)}})}),(0,e.watch)(o,i=>{r&&(r.value=i)},{deep:!0,immediate:!0}),o}var So=["for"],wo={key:0,class:"vv-input-text__input-before"},Eo=["id"],Do={key:1,class:"vv-input-text__unit"},ko={key:5,class:"vv-input-text__input-after"},Po={key:6,class:"vv-input-text__limit"},Co={class:"flex-1"},Io=["title","onClick"],To={name:"VvInputText"},$o=(0,e.defineComponent)({...To,props:tt,emits:mo,setup(t,{expose:a,emit:l}){const o=t,r=l,i=(0,e.useSlots)(),f=Ce(),p=vo("VvInputText",tt,o),{count:h,debounce:m,icon:E,iconPosition:u,iconRemoveSuggestion:b,id:L,invalid:T,label:F,labelRemoveSuggestion:K,loading:$e,maxlength:Oe,minlength:xe,modelValue:j,step:z,storageType:Le,type:S,unit:fe,valid:pe}=(0,e.toRefs)(o),U=et(L),X=(0,e.computed)(()=>`${U.value}-hint`),y=(0,e.computed)(()=>o.floating&&ie(o.placeholder)?" ":o.placeholder),c=ho(j,r,m?.value??0),B=(0,e.computed)(()=>{const n=typeof z.value=="number"?z.value:Number.parseInt(z.value);return Number.isNaN(n)?!1:n%60!==0}),M=/^-0?[.,]?[0*]?$/,me=/./,Ne=/^-$|^$/,ae=(0,e.ref)(!1),N=(0,e.ref)(),R=(0,e.ref)(),{el:ve,mask:he,typed:w,masked:_,unmasked:I}=(0,Q.useIMask)((0,e.computed)(()=>{if(!o.iMask)return{mask:me};if(o.iMask.mask===Number){const n={...o.iMask};return o.min&&(n.min=Number(o.min)),o.max&&(n.max=Number(o.max)),n}return o.iMask}),{emit:r,onAccept:()=>{if(ae.value){if(r("update:masked",_.value),S.value===d.NUMBER){if(Ne.test(I.value)){if(c.value===null||c.value===void 0)return;c.value=void 0;return}if(M.test(I.value)){c.value=0;return}if(typeof w.value!="number"){c.value=Number(w.value);return}c.value=w.value;return}if(S.value===d.DATETIME_LOCAL||S.value===d.DATE||S.value===d.TIME||S.value===d.MONTH){if(!w.value){if(!c.value)return;if(N.value){c.value=void 0;return}c.value="";return}if(!(w.value instanceof Date)&&!N.value&&!R.value){c.value=w.value;return}let n=w.value;if(n instanceof Date||(n=wt(w.value,S.value)),N.value||R.value){const v=new Date(N.value||R.value);if((S.value===d.DATETIME_LOCAL||S.value===d.DATE||S.value===d.MONTH)&&(v.setFullYear(n.getFullYear()),v.setMonth(n.getMonth())),(S.value===d.DATETIME_LOCAL||S.value===d.DATE)&&v.setDate(n.getDate()),(S.value===d.DATETIME_LOCAL||S.value===d.TIME)&&(v.setHours(n.getHours()),v.setMinutes(n.getMinutes()),v.setSeconds(n.getSeconds())),N.value instanceof Date){if(c.value?.getTime()===v.getTime())return;c.value=v;return}c.value=v.toISOString();return}c.value=Ue(n,S.value,B.value);return}!c.value&&!I.value||(c.value=I.value)}}});function ne(n){if(n==null){w.value="",I.value="";return}if(o.iMask?.mask===Date){w.value=n instanceof Date?n:new Date(n);return}if(!(S.value===d.NUMBER&&M.test(I.value)&&n===0)){if(Fe.value){if(n instanceof Date||ze(n)){if(n instanceof Date?(N.value=n,R.value=void 0):(R.value=n,N.value=void 0),S.value!==d.WEEK){const v=new Date(n),D=S.value;w.value=Ue(v,D,B.value),I.value=w.value}return}N.value=void 0,R.value=void 0}w.value=n,I.value=`${w.value}`}}(0,e.onMounted)(()=>{he.value&&(ae.value=!0,ne(o.modelValue))}),(0,e.watch)(()=>o.modelValue,n=>{he.value&&ne(n)}),(0,e.watch)(()=>o.masked,n=>{_.value=n??""});const $=ve,re=(0,e.ref)(),G=(0,e.ref)(),le=(0,e.ref)();a({$input:$,$inner:re,$wrapper:G});const{focused:J}=go($,r),s=(0,e.computed)(()=>J.value&&!o.disabled&&!o.readonly);function g(n){n?W():Ve()}function W(){p.value.selectOnFocus&&$.value&&$.value.select(),Z.value.size&&le.value?.show()}function Ve(){if(!Y.value||!V.value)return;const n=o.maxSuggestions;c.value!==void 0&&c.value!==null&&c.value!==""&&(V.value.size>=n&&!V.value.has(c.value)&&(V.value=new Set([...V.value].slice(V.value.size-n+1))),V.value.add(c.value))}(0,e.watch)(s,g),(0,e.watch)((0,k.useElementVisibility)($),n=>{n&&o.autofocus&&!o.disabled&&!o.readonly&&(J.value=!0)});const Ae=(0,e.ref)(!1),nt=(0,e.computed)(()=>o.type===d.PASSWORD);function rt(){Ae.value=!Ae.value}const xo=(0,e.computed)(()=>Fe.value),Be=(0,e.computed)(()=>o.type===d.NUMBER);function Me(){if(!H.value){if(o.iMask){w.value=Number(w.value)+Number(z?.value??1);return}$.value.stepUp(),c.value=Number($.value.value)}}function _e(){if(!H.value){if(o.iMask){w.value=Number(w.value)-Number(z?.value??1);return}$.value.stepDown(),c.value=Number($.value.value)}}const Lo=(0,e.computed)(()=>o.type===d.SEARCH);function lt(){c.value="",r("clear")}const{hasIconBefore:Re,hasIconAfter:it}=ce(E,u),He=(0,e.computed)(()=>{if(it.value!==void 0)return it.value;switch(o.type){case d.COLOR:return{name:x.showColorPicker};case d.DATE:case d.DATETIME_LOCAL:case d.WEEK:case d.MONTH:return{name:x.showDatePicker};case d.TIME:return{name:x.showTimePicker}}}),{hasIcon:st}=ce(b),{formatted:No}=bo(c,{mode:h.value,upperLimit:Number(Oe?.value),lowerLimit:Number(xe?.value)}),H=(0,e.computed)(()=>o.disabled||o.readonly),Vo=(0,e.computed)(()=>H.value?-1:o.tabindex),Y=(0,e.computed)(()=>!ie(j?.value)),Ao=(0,e.computed)(()=>{if(T.value===!0)return!0;if(pe.value===!0)return!1}),V=yo((0,e.computed)(()=>o.storageKey??(f?.experimentalFeatures.forceInputSuggestions?o.name:void 0)),Le,new Set),Z=(0,e.computed)(()=>{const n=new Map;if(V.value)for(const v of V.value)n.set(v,{isFromStorage:!0});if(o.suggestions)for(const v of o.suggestions)n.set(v,{isFromStorage:!1});return n}),Bo=(0,e.computed)(()=>Z.value.size===0?[]:[...Z.value.entries()].filter(([n])=>ie(c.value)||`${n}`.toLowerCase().includes(`${c.value}`.toLowerCase())&&n!==c.value).reverse().map(([n])=>n)),Mo=(0,e.computed)(()=>Z.value.size>0);function _o(n){c.value=n,le.value?.hide(),r("suggestion:selected",n)}function Ro(n){Z.value.get(n)?.isFromStorage&&(V.value?.delete(n),r("suggestion:removed",n))}const{modifiers:Ho}=(0,e.toRefs)(o),Fo=ue("vv-input-text",Ho,(0,e.computed)(()=>({valid:pe.value,invalid:T.value,loading:$e.value,disabled:o.disabled,required:o.required,readonly:o.readonly,"icon-before":!!Re.value,"icon-after":!!He.value,floating:o.floating&&!ie(o.label),dirty:Y.value,focus:s.value&&!H.value,"auto-width":o.autoWidth}))),jo=(0,e.computed)(()=>[d.TEXT,d.SEARCH,d.URL,d.TEL,d.EMAIL,d.PASSWORD].includes(S.value)),Fe=(0,e.computed)(()=>[d.DATE,d.MONTH,d.WEEK,d.TIME,d.DATETIME_LOCAL].includes(S.value)),zo=(0,e.computed)(()=>[d.TEXT,d.SEARCH,d.URL,d.TEL,d.EMAIL,d.PASSWORD].includes(S.value)),Uo=(0,e.computed)(()=>{const n=nt.value&&Ae.value||xo.value&&!Y.value&&!J.value||o.iMask?d.TEXT:o.type,v={type:n,name:o.name,tabindex:Vo.value,disabled:o.disabled,readonly:o.readonly,required:o.required,autocomplete:o.autocomplete,"aria-invalid":Ao.value,"aria-describedby":Yo.value?X.value:void 0,"aria-errormessage":qo.value?X.value:void 0,inputMode:o.inputMode};if(Fe.value||n===d.NUMBER){let D=o.max;n===d.DATE&&!D&&(D="9999-12-31"),v.step=o.step,v.max=D!==void 0?String(D):void 0,v.min=o.min!==void 0?String(o.min):void 0}return(jo.value||n===d.TEXT||n===d.NUMBER)&&(v.placeholder=y.value),zo.value&&(v.minlength=o.minlength,v.maxlength=o.maxlength,v.pattern=o.pattern),n===d.EMAIL&&(v.multiple=o.multiple),v}),ge=(0,e.computed)(()=>({valid:o.valid,invalid:o.invalid,modelValue:o.modelValue,togglePassword:rt,stepUp:Me,stepDown:_e,clear:lt})),{HintSlot:Wo,hasHintLabelOrSlot:Yo,hasInvalidLabelOrSlot:qo,hintSlotScope:be}=Dt(p,i),Ko=Te(d.PASSWORD,o,Y),Xo=Te(d.NUMBER,o,Y),Go=Te(d.SEARCH,o,Y);function Jo(){H.value||(J.value=!0)}const Zo=(0,e.computed)(()=>{if(o.autoWidth)return{width:c.value!==void 0?`${String(c.value).length+1}ch`:void 0}});function Qo(n){switch(n.code){case"ArrowUp":Be.value&&(Me(),n.preventDefault());break;case"ArrowDown":Be.value&&(_e(),n.preventDefault());break}r("keydown",n)}return(n,v)=>((0,e.openBlock)(),(0,e.createElementBlock)("div",{class:(0,e.normalizeClass)((0,e.unref)(Fo))},[(0,e.unref)(F)?((0,e.openBlock)(),(0,e.createElementBlock)("label",{key:0,for:(0,e.unref)(U),class:"vv-input-text__label"},(0,e.toDisplayString)((0,e.unref)(F)),9,So)):(0,e.createCommentVNode)("v-if",!0),(0,e.createElementVNode)("div",{ref_key:"wrapperEl",ref:G,class:"vv-input-text__wrapper"},[n.$slots.before?((0,e.openBlock)(),(0,e.createElementBlock)("div",wo,[(0,e.renderSlot)(n.$slots,"before",(0,e.normalizeProps)((0,e.guardReactiveProps)((0,e.unref)(ge))))])):(0,e.createCommentVNode)("v-if",!0),(0,e.createElementVNode)("div",{ref_key:"innerEl",ref:re,class:"vv-input-text__inner",onClick:(0,e.withModifiers)(Jo,["stop"])},[(0,e.unref)(Re)?((0,e.openBlock)(),(0,e.createBlock)(A,(0,e.mergeProps)({key:0},(0,e.unref)(Re),{class:"vv-input-text__icon"}),null,16)):(0,e.createCommentVNode)("v-if",!0),(0,e.createElementVNode)("input",(0,e.mergeProps)({id:(0,e.unref)(U),ref_key:"inputEl",ref:$},(0,e.unref)(Uo),{style:(0,e.unref)(Zo),onKeyup:v[0]||(v[0]=D=>r("keyup",D)),onKeydown:Qo,onKeypress:v[1]||(v[1]=D=>r("keypress",D))}),null,16,Eo),((0,e.unref)(fe)||n.$slots.unit)&&(0,e.unref)(Y)?((0,e.openBlock)(),(0,e.createElementBlock)("div",Do,[(0,e.renderSlot)(n.$slots,"unit",(0,e.normalizeProps)((0,e.guardReactiveProps)((0,e.unref)(ge))),()=>[(0,e.createTextVNode)((0,e.toDisplayString)((0,e.unref)(fe)),1)])])):(0,e.createCommentVNode)("v-if",!0)],512),(0,e.unref)(He)?((0,e.openBlock)(),(0,e.createBlock)(A,(0,e.mergeProps)({key:1},(0,e.unref)(He),{class:"vv-input-text__icon vv-input-text__icon-after"}),null,16)):(0,e.unref)(nt)&&!n.hideActions&&!(0,e.unref)(H)?((0,e.openBlock)(),(0,e.createBlock)((0,e.unref)(Ko),{key:2,onTogglePassword:rt})):(0,e.unref)(Be)&&!n.hideActions&&!(0,e.unref)(H)?((0,e.openBlock)(),(0,e.createBlock)((0,e.unref)(Xo),{key:3,onStepUp:Me,onStepDown:_e})):(0,e.unref)(Lo)&&!n.hideActions&&!(0,e.unref)(H)?((0,e.openBlock)(),(0,e.createBlock)((0,e.unref)(Go),{key:4,onClear:lt})):(0,e.createCommentVNode)("v-if",!0),n.$slots.after?((0,e.openBlock)(),(0,e.createElementBlock)("div",ko,[(0,e.renderSlot)(n.$slots,"after",(0,e.normalizeProps)((0,e.guardReactiveProps)((0,e.unref)(ge))))])):(0,e.createCommentVNode)("v-if",!0),(0,e.unref)(h)?((0,e.openBlock)(),(0,e.createElementBlock)("span",Po,[(0,e.renderSlot)(n.$slots,"count",(0,e.normalizeProps)((0,e.guardReactiveProps)((0,e.unref)(ge))),()=>[(0,e.createTextVNode)((0,e.toDisplayString)((0,e.unref)(No)),1)])])):(0,e.createCommentVNode)("v-if",!0)],512),(0,e.createVNode)((0,e.unref)(Wo),{id:(0,e.unref)(X),class:"vv-input-text__hint"},(0,e.createSlots)({_:2},[n.$slots.hint?{name:"hint",fn:(0,e.withCtx)(()=>[(0,e.renderSlot)(n.$slots,"hint",(0,e.normalizeProps)((0,e.guardReactiveProps)((0,e.unref)(be))))]),key:"0"}:void 0,n.$slots.loading?{name:"loading",fn:(0,e.withCtx)(()=>[(0,e.renderSlot)(n.$slots,"loading",(0,e.normalizeProps)((0,e.guardReactiveProps)((0,e.unref)(be))))]),key:"1"}:void 0,n.$slots.valid?{name:"valid",fn:(0,e.withCtx)(()=>[(0,e.renderSlot)(n.$slots,"valid",(0,e.normalizeProps)((0,e.guardReactiveProps)((0,e.unref)(be))))]),key:"2"}:void 0,n.$slots.invalid?{name:"invalid",fn:(0,e.withCtx)(()=>[(0,e.renderSlot)(n.$slots,"invalid",(0,e.normalizeProps)((0,e.guardReactiveProps)((0,e.unref)(be))))]),key:"3"}:void 0]),1032,["id"]),(0,e.unref)(Mo)?((0,e.openBlock)(),(0,e.createBlock)(oo,{key:1,ref_key:"suggestionsDropdownEl",ref:le,reference:(0,e.unref)(G),"autofocus-first":!1,"trigger-width":!0},{items:(0,e.withCtx)(()=>[((0,e.openBlock)(!0),(0,e.createElementBlock)(e.Fragment,null,(0,e.renderList)((0,e.unref)(Bo),D=>((0,e.openBlock)(),(0,e.createBlock)(co,{key:String(D),onClick:(0,e.withModifiers)(ea=>_o(D),["stop"])},{default:(0,e.withCtx)(()=>[(0,e.createElementVNode)("div",Co,[(0,e.renderSlot)(n.$slots,"suggestion",(0,e.mergeProps)({ref_for:!0},{value:D}),()=>[(0,e.createTextVNode)((0,e.toDisplayString)(D),1)])]),(0,e.unref)(Z).get(D)?.isFromStorage&&(0,e.unref)(st)?((0,e.openBlock)(),(0,e.createElementBlock)("button",{key:0,type:"button",tabindex:"-1",class:"cursor-pointer",title:(0,e.unref)(K),onClick:(0,e.withModifiers)(ea=>Ro(D),["stop"])},[(0,e.createVNode)(A,(0,e.mergeProps)({ref_for:!0},(0,e.unref)(st)),null,16)],8,Io)):(0,e.createCommentVNode)("v-if",!0)]),_:2},1032,["onClick"]))),128))]),_:3},8,["reference"])):(0,e.createCommentVNode)("v-if",!0)],2))}}),Oo=$o;return Oo});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Fragment as W, computed as
|
|
1
|
+
import { Fragment as W, computed as g, createBlock as R, createElementBlock as N, createElementVNode as Y, createTextVNode as z, createVNode as H, defineComponent as k, getCurrentInstance as Q, inject as C, mergeProps as m, normalizeClass as U, openBlock as c, ref as X, renderList as Z, renderSlot as p, resolveComponent as ee, resolveDynamicComponent as te, toDisplayString as re, toHandlers as ae, toRefs as oe, unref as b, watch as ne, withCtx as O, withModifiers as le } from "vue";
|
|
2
2
|
var se = {
|
|
3
3
|
showPassword: "eye-on",
|
|
4
4
|
hidePassword: "eye-off",
|
|
@@ -10,23 +10,21 @@ var se = {
|
|
|
10
10
|
remove: "trash",
|
|
11
11
|
edit: "edit",
|
|
12
12
|
download: "download"
|
|
13
|
-
},
|
|
14
|
-
return e.simple = "simple", e.normal = "normal", e.detailed = "detailed", e;
|
|
15
|
-
})({}), Ye = { prefix: ue.normal }, L = /* @__PURE__ */ (function(e) {
|
|
13
|
+
}, L = /* @__PURE__ */ (function(e) {
|
|
16
14
|
return e.local = "local", e.session = "session", e;
|
|
17
|
-
})({}),
|
|
15
|
+
})({}), ue = /* @__PURE__ */ (function(e) {
|
|
18
16
|
return e.absolute = "absolute", e.fixed = "fixed", e;
|
|
19
17
|
})({}), j = /* @__PURE__ */ (function(e) {
|
|
20
18
|
return e.left = "left", e.right = "right", e.top = "top", e.bottom = "bottom", e;
|
|
21
|
-
})({}),
|
|
19
|
+
})({}), ie = /* @__PURE__ */ (function(e) {
|
|
22
20
|
return e.topStart = "top-start", e.topEnd = "top-end", e.bottomStart = "bottom-start", e.bottomEnd = "bottom-end", e.leftStart = "left-start", e.leftEnd = "left-end", e.rightStart = "right-start", e.rightEnd = "right-end", e;
|
|
23
|
-
})({}), D = /* @__PURE__ */ (function(e) {
|
|
24
|
-
return e.before = "before", e.after = "after", e;
|
|
25
21
|
})({}), $ = /* @__PURE__ */ (function(e) {
|
|
22
|
+
return e.before = "before", e.after = "after", e;
|
|
23
|
+
})({}), D = /* @__PURE__ */ (function(e) {
|
|
26
24
|
return e.button = "button", e.submit = "submit", e.reset = "reset", e;
|
|
27
25
|
})({}), u = /* @__PURE__ */ (function(e) {
|
|
28
26
|
return e.nuxtLink = "nuxt-link", e.routerLink = "router-link", e.a = "a", e.button = "button", e;
|
|
29
|
-
})({}),
|
|
27
|
+
})({}), de = /* @__PURE__ */ Symbol.for("volver"), ve = /* @__PURE__ */ Symbol.for("dropdownTrigger"), fe = /* @__PURE__ */ Symbol.for("dropdownAction"), pe = {
|
|
30
28
|
to: { type: [String, Object] },
|
|
31
29
|
href: String,
|
|
32
30
|
target: String,
|
|
@@ -52,7 +50,7 @@ var se = {
|
|
|
52
50
|
type: [String, Array],
|
|
53
51
|
default: void 0
|
|
54
52
|
}
|
|
55
|
-
},
|
|
53
|
+
}, A = {
|
|
56
54
|
loading: {
|
|
57
55
|
type: Boolean,
|
|
58
56
|
default: !1
|
|
@@ -64,16 +62,16 @@ var se = {
|
|
|
64
62
|
}, _ = { disabled: {
|
|
65
63
|
type: Boolean,
|
|
66
64
|
default: !1
|
|
67
|
-
} },
|
|
65
|
+
} }, x = { required: {
|
|
68
66
|
type: Boolean,
|
|
69
67
|
default: !1
|
|
70
|
-
} },
|
|
68
|
+
} }, ce = { active: {
|
|
71
69
|
type: Boolean,
|
|
72
70
|
default: !1
|
|
73
|
-
} },
|
|
71
|
+
} }, be = { current: {
|
|
74
72
|
type: Boolean,
|
|
75
73
|
default: !1
|
|
76
|
-
} },
|
|
74
|
+
} }, We = {
|
|
77
75
|
showClearAction: {
|
|
78
76
|
type: Boolean,
|
|
79
77
|
default: !1
|
|
@@ -86,19 +84,19 @@ var se = {
|
|
|
86
84
|
type: String,
|
|
87
85
|
default: "Clear"
|
|
88
86
|
}
|
|
89
|
-
},
|
|
87
|
+
}, ye = { pressed: {
|
|
90
88
|
type: Boolean,
|
|
91
89
|
default: !1
|
|
92
90
|
} }, S = { label: {
|
|
93
91
|
type: [String, Number],
|
|
94
92
|
default: void 0
|
|
95
|
-
} },
|
|
93
|
+
} }, E = { readonly: {
|
|
96
94
|
type: Boolean,
|
|
97
95
|
default: !1
|
|
98
96
|
} }, P = { modifiers: {
|
|
99
97
|
type: [String, Array],
|
|
100
98
|
default: void 0
|
|
101
|
-
} },
|
|
99
|
+
} }, I = { hintLabel: {
|
|
102
100
|
type: String,
|
|
103
101
|
default: ""
|
|
104
102
|
} }, ge = {
|
|
@@ -118,7 +116,7 @@ var se = {
|
|
|
118
116
|
type: [String, Function],
|
|
119
117
|
default: "disabled"
|
|
120
118
|
}
|
|
121
|
-
},
|
|
119
|
+
}, me = { count: {
|
|
122
120
|
type: [Boolean, String],
|
|
123
121
|
default: !1,
|
|
124
122
|
validator: (e) => [
|
|
@@ -127,35 +125,35 @@ var se = {
|
|
|
127
125
|
"limit",
|
|
128
126
|
"countdown"
|
|
129
127
|
].includes(e)
|
|
130
|
-
} },
|
|
128
|
+
} }, _e = { debounce: {
|
|
131
129
|
type: [Number, String],
|
|
132
130
|
default: void 0
|
|
133
|
-
} },
|
|
131
|
+
} }, Se = {
|
|
134
132
|
icon: {
|
|
135
133
|
type: [String, Object],
|
|
136
134
|
default: void 0
|
|
137
135
|
},
|
|
138
136
|
iconPosition: {
|
|
139
137
|
type: String,
|
|
140
|
-
default:
|
|
141
|
-
validation: (e) => Object.values(
|
|
138
|
+
default: $.before,
|
|
139
|
+
validation: (e) => Object.values($).includes(e)
|
|
142
140
|
}
|
|
143
|
-
},
|
|
141
|
+
}, T = { tabindex: {
|
|
144
142
|
type: [String, Number],
|
|
145
143
|
default: 0
|
|
146
|
-
} },
|
|
144
|
+
} }, Pe = { floating: {
|
|
147
145
|
type: Boolean,
|
|
148
146
|
default: !1
|
|
149
|
-
} },
|
|
147
|
+
} }, he = { id: [String, Number] }, Ye = {
|
|
150
148
|
placement: {
|
|
151
149
|
type: String,
|
|
152
150
|
default: j.bottom,
|
|
153
|
-
validator: (e) => Object.values(j).includes(e) || Object.values(
|
|
151
|
+
validator: (e) => Object.values(j).includes(e) || Object.values(ie).includes(e)
|
|
154
152
|
},
|
|
155
153
|
strategy: {
|
|
156
154
|
type: String,
|
|
157
155
|
default: void 0,
|
|
158
|
-
validator: (e) => Object.values(
|
|
156
|
+
validator: (e) => Object.values(ue).includes(e)
|
|
159
157
|
},
|
|
160
158
|
transitionName: {
|
|
161
159
|
type: String,
|
|
@@ -202,33 +200,33 @@ var se = {
|
|
|
202
200
|
default: !1
|
|
203
201
|
}
|
|
204
202
|
}, M = {
|
|
205
|
-
...
|
|
203
|
+
...he,
|
|
206
204
|
name: {
|
|
207
205
|
type: String,
|
|
208
206
|
required: !0
|
|
209
207
|
}
|
|
210
|
-
},
|
|
208
|
+
}, Ne = { autofocus: {
|
|
211
209
|
type: Boolean,
|
|
212
210
|
default: !1
|
|
213
|
-
} },
|
|
211
|
+
} }, ke = { autocomplete: {
|
|
214
212
|
type: String,
|
|
215
213
|
default: "off"
|
|
216
|
-
} },
|
|
214
|
+
} }, ze = {
|
|
217
215
|
...M,
|
|
216
|
+
...Ne,
|
|
218
217
|
...ke,
|
|
219
|
-
...
|
|
220
|
-
...x,
|
|
218
|
+
...T,
|
|
221
219
|
..._,
|
|
222
|
-
...
|
|
220
|
+
...E,
|
|
223
221
|
...B,
|
|
224
222
|
...w,
|
|
225
|
-
...
|
|
226
|
-
...
|
|
223
|
+
...I,
|
|
224
|
+
...A,
|
|
227
225
|
...P,
|
|
226
|
+
...me,
|
|
228
227
|
..._e,
|
|
229
228
|
...Se,
|
|
230
229
|
...Pe,
|
|
231
|
-
...he,
|
|
232
230
|
...S,
|
|
233
231
|
minlength: {
|
|
234
232
|
type: [String, Number],
|
|
@@ -242,18 +240,18 @@ var se = {
|
|
|
242
240
|
type: String,
|
|
243
241
|
default: void 0
|
|
244
242
|
},
|
|
245
|
-
...
|
|
246
|
-
},
|
|
243
|
+
...x
|
|
244
|
+
}, He = {
|
|
247
245
|
...M,
|
|
248
|
-
...
|
|
246
|
+
...T,
|
|
249
247
|
...B,
|
|
250
248
|
...w,
|
|
251
|
-
...
|
|
249
|
+
...I,
|
|
252
250
|
..._,
|
|
253
|
-
...
|
|
251
|
+
...E,
|
|
254
252
|
...P,
|
|
255
253
|
...S,
|
|
256
|
-
...
|
|
254
|
+
...A,
|
|
257
255
|
value: {
|
|
258
256
|
type: [
|
|
259
257
|
String,
|
|
@@ -271,17 +269,17 @@ var se = {
|
|
|
271
269
|
],
|
|
272
270
|
default: void 0
|
|
273
271
|
}
|
|
274
|
-
},
|
|
272
|
+
}, Qe = {
|
|
275
273
|
...B,
|
|
276
274
|
...w,
|
|
277
275
|
...ge,
|
|
278
|
-
...
|
|
276
|
+
...I,
|
|
279
277
|
..._,
|
|
280
|
-
...
|
|
278
|
+
...E,
|
|
281
279
|
...P,
|
|
282
280
|
...S,
|
|
283
|
-
...
|
|
284
|
-
...
|
|
281
|
+
...A,
|
|
282
|
+
...x,
|
|
285
283
|
modelValue: {
|
|
286
284
|
type: [
|
|
287
285
|
String,
|
|
@@ -300,17 +298,17 @@ var se = {
|
|
|
300
298
|
type: Boolean,
|
|
301
299
|
default: !1
|
|
302
300
|
}
|
|
303
|
-
},
|
|
301
|
+
}, Ce = {
|
|
304
302
|
..._,
|
|
305
303
|
...S,
|
|
306
|
-
...me,
|
|
307
|
-
...be,
|
|
308
304
|
...ye,
|
|
309
305
|
...ce,
|
|
306
|
+
...be,
|
|
307
|
+
...pe,
|
|
310
308
|
type: {
|
|
311
309
|
type: String,
|
|
312
|
-
default:
|
|
313
|
-
validator: (e) => Object.values(
|
|
310
|
+
default: D.button,
|
|
311
|
+
validator: (e) => Object.values(D).includes(e)
|
|
314
312
|
},
|
|
315
313
|
ariaLabel: {
|
|
316
314
|
type: String,
|
|
@@ -320,45 +318,45 @@ var se = {
|
|
|
320
318
|
type: String,
|
|
321
319
|
default: u.button
|
|
322
320
|
}
|
|
323
|
-
},
|
|
321
|
+
}, Oe = { items: {
|
|
324
322
|
type: Array,
|
|
325
323
|
default: () => []
|
|
326
|
-
} },
|
|
324
|
+
} }, Ue = {
|
|
327
325
|
storageType: {
|
|
328
326
|
type: String,
|
|
329
327
|
default: L.local,
|
|
330
328
|
validator: (e) => Object.values(L).includes(e)
|
|
331
329
|
},
|
|
332
330
|
storageKey: String
|
|
333
|
-
},
|
|
331
|
+
}, Be = {
|
|
334
332
|
...P,
|
|
335
|
-
...
|
|
336
|
-
},
|
|
333
|
+
...Oe
|
|
334
|
+
}, we = ["click"], Ae = [
|
|
337
335
|
"click",
|
|
338
336
|
"mouseover",
|
|
339
337
|
"mouseleave"
|
|
340
|
-
], Ee =
|
|
338
|
+
], Ee = Ce;
|
|
341
339
|
function Ie() {
|
|
342
|
-
return C(
|
|
340
|
+
return C(de, void 0);
|
|
341
|
+
}
|
|
342
|
+
function Ve() {
|
|
343
|
+
return C(ve, {});
|
|
343
344
|
}
|
|
344
345
|
function Le() {
|
|
345
346
|
return C(fe, {});
|
|
346
347
|
}
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
}
|
|
350
|
-
var De = { name: "VvAction" }, $e = /* @__PURE__ */ k({
|
|
351
|
-
...De,
|
|
348
|
+
var je = { name: "VvAction" }, $e = /* @__PURE__ */ k({
|
|
349
|
+
...je,
|
|
352
350
|
props: Ee,
|
|
353
351
|
emits: Ae,
|
|
354
352
|
setup(e, { expose: a, emit: n }) {
|
|
355
353
|
const r = e, l = n, o = Q(), h = Ie(), s = X(null);
|
|
356
354
|
a({ $el: s });
|
|
357
|
-
const { reference: v, bus: i, aria: d, expanded: y } =
|
|
355
|
+
const { reference: v, bus: i, aria: d, expanded: y } = Ve();
|
|
358
356
|
ne(() => s.value, (t) => {
|
|
359
357
|
v && (v.value = t);
|
|
360
358
|
});
|
|
361
|
-
const f =
|
|
359
|
+
const f = g(() => r.pressed || y?.value), { role: K } = Le(), V = g(() => {
|
|
362
360
|
switch (!0) {
|
|
363
361
|
case r.disabled:
|
|
364
362
|
return u.button;
|
|
@@ -369,14 +367,14 @@ var De = { name: "VvAction" }, $e = /* @__PURE__ */ k({
|
|
|
369
367
|
default:
|
|
370
368
|
return r.defaultTag;
|
|
371
369
|
}
|
|
372
|
-
}), F =
|
|
370
|
+
}), F = g(() => {
|
|
373
371
|
const t = {
|
|
374
372
|
...d?.value,
|
|
375
373
|
ariaPressed: f.value ? !0 : void 0,
|
|
376
374
|
ariaLabel: r.ariaLabel,
|
|
377
375
|
role: K?.value
|
|
378
376
|
};
|
|
379
|
-
switch (
|
|
377
|
+
switch (V.value) {
|
|
380
378
|
case u.a:
|
|
381
379
|
return {
|
|
382
380
|
...t,
|
|
@@ -426,7 +424,7 @@ var De = { name: "VvAction" }, $e = /* @__PURE__ */ k({
|
|
|
426
424
|
}
|
|
427
425
|
i?.emit("mouseleave", t);
|
|
428
426
|
}
|
|
429
|
-
return (t,
|
|
427
|
+
return (t, Ge) => (c(), R(te(b(V)), m(b(F), {
|
|
430
428
|
ref_key: "rootEl",
|
|
431
429
|
ref: s,
|
|
432
430
|
class: {
|
|
@@ -443,18 +441,18 @@ var De = { name: "VvAction" }, $e = /* @__PURE__ */ k({
|
|
|
443
441
|
_: 3
|
|
444
442
|
}, 16, ["class"]));
|
|
445
443
|
}
|
|
446
|
-
}),
|
|
444
|
+
}), De = $e, Re = {
|
|
447
445
|
class: "vv-nav__item",
|
|
448
446
|
role: "presentation"
|
|
449
447
|
}, xe = {
|
|
450
448
|
name: "VvNavItem",
|
|
451
449
|
inheritAttrs: !1
|
|
452
|
-
},
|
|
450
|
+
}, Te = /* @__PURE__ */ k({
|
|
453
451
|
...xe,
|
|
454
452
|
setup(e) {
|
|
455
|
-
return (a, n) => (c(), N("li",
|
|
453
|
+
return (a, n) => (c(), N("li", Re, [
|
|
456
454
|
p(a.$slots, "before"),
|
|
457
|
-
H(
|
|
455
|
+
H(De, m(a.$attrs, {
|
|
458
456
|
class: "vv-nav__item-label",
|
|
459
457
|
role: "menuitem"
|
|
460
458
|
}), {
|
|
@@ -464,9 +462,9 @@ var De = { name: "VvAction" }, $e = /* @__PURE__ */ k({
|
|
|
464
462
|
p(a.$slots, "after")
|
|
465
463
|
]));
|
|
466
464
|
}
|
|
467
|
-
}),
|
|
468
|
-
function
|
|
469
|
-
return
|
|
465
|
+
}), Me = Te;
|
|
466
|
+
function Ke(e, a, n) {
|
|
467
|
+
return g(() => {
|
|
470
468
|
const r = { [e]: !0 }, l = typeof a?.value == "string" ? a.value.split(" ") : a?.value;
|
|
471
469
|
return l && Array.isArray(l) && l.forEach((o) => {
|
|
472
470
|
o && (r[`${e}--${o}`] = !0);
|
|
@@ -475,10 +473,10 @@ function Fe(e, a, n) {
|
|
|
475
473
|
}), r;
|
|
476
474
|
});
|
|
477
475
|
}
|
|
478
|
-
var
|
|
479
|
-
...
|
|
480
|
-
props:
|
|
481
|
-
emits:
|
|
476
|
+
var Fe = { name: "VvNav" }, qe = /* @__PURE__ */ k({
|
|
477
|
+
...Fe,
|
|
478
|
+
props: Be,
|
|
479
|
+
emits: we,
|
|
482
480
|
setup(e, { emit: a }) {
|
|
483
481
|
const n = e, r = a, { modifiers: l } = oe(n);
|
|
484
482
|
function o(s) {
|
|
@@ -489,16 +487,16 @@ var qe = { name: "VvNav" }, Ge = /* @__PURE__ */ k({
|
|
|
489
487
|
r("click", d);
|
|
490
488
|
}
|
|
491
489
|
}
|
|
492
|
-
const h =
|
|
490
|
+
const h = Ke("vv-nav", l);
|
|
493
491
|
return (s, v) => (c(), N("nav", { class: U(b(h)) }, [Y("ul", {
|
|
494
492
|
class: "vv-nav__menu",
|
|
495
493
|
role: "menu",
|
|
496
494
|
onClick: le(o, ["stop"])
|
|
497
|
-
}, [p(s.$slots, "default", {}, () => [(c(!0), N(W, null, Z(s.items, ({ on: i = {}, data: d, ...y }, f) => (c(), R(
|
|
495
|
+
}, [p(s.$slots, "default", {}, () => [(c(!0), N(W, null, Z(s.items, ({ on: i = {}, data: d, ...y }, f) => (c(), R(Me, m({
|
|
498
496
|
key: f,
|
|
499
497
|
"data-index": f
|
|
500
498
|
}, { ref_for: !0 }, y, ae(i)), {
|
|
501
|
-
default: O(() => [p(s.$slots, "item",
|
|
499
|
+
default: O(() => [p(s.$slots, "item", m({ ref_for: !0 }, {
|
|
502
500
|
item: y,
|
|
503
501
|
data: d,
|
|
504
502
|
index: f
|
|
@@ -506,7 +504,7 @@ var qe = { name: "VvNav" }, Ge = /* @__PURE__ */ k({
|
|
|
506
504
|
_: 2
|
|
507
505
|
}, 1040, ["data-index"]))), 128))])])], 2));
|
|
508
506
|
}
|
|
509
|
-
}),
|
|
507
|
+
}), Xe = qe;
|
|
510
508
|
export {
|
|
511
|
-
|
|
509
|
+
Xe as default
|
|
512
510
|
};
|