@volverjs/ui-vue 0.0.6-beta.7 → 0.0.7-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -5
- package/auto-imports.d.ts +2 -0
- package/dist/components/VvAccordion/VvAccordion.es.js +220 -4
- package/dist/components/VvAccordion/VvAccordion.umd.js +1 -1
- package/dist/components/VvAccordion/VvAccordion.vue.d.ts +8 -8
- package/dist/components/VvAccordion/index.d.ts +1 -4
- package/dist/components/VvAccordionGroup/VvAccordionGroup.es.js +221 -8
- package/dist/components/VvAccordionGroup/VvAccordionGroup.umd.js +1 -1
- package/dist/components/VvAccordionGroup/VvAccordionGroup.vue.d.ts +6 -6
- package/dist/components/VvAccordionGroup/index.d.ts +2 -5
- package/dist/components/VvAction/VvAction.es.js +12 -8
- package/dist/components/VvAction/VvAction.umd.js +1 -1
- package/dist/components/VvAction/VvAction.vue.d.ts +4 -4
- package/dist/components/VvAction/index.d.ts +1 -1
- package/dist/components/VvAlert/VvAlert.es.js +661 -0
- package/dist/components/VvAlert/VvAlert.umd.js +1 -0
- package/dist/components/VvAlert/VvAlert.vue.d.ts +104 -0
- package/dist/components/VvAlert/index.d.ts +95 -0
- package/dist/components/VvAlertGroup/VvAlertGroup.es.js +799 -0
- package/dist/components/VvAlertGroup/VvAlertGroup.umd.js +1 -0
- package/dist/components/VvAlertGroup/VvAlertGroup.vue.d.ts +89 -0
- package/dist/components/VvAlertGroup/index.d.ts +55 -0
- package/dist/components/VvAvatar/VvAvatar.es.js +3 -3
- package/dist/components/VvAvatar/VvAvatar.vue.d.ts +2 -2
- package/dist/components/VvAvatarGroup/VvAvatarGroup.es.js +3 -3
- package/dist/components/VvAvatarGroup/VvAvatarGroup.vue.d.ts +2 -2
- package/dist/components/VvBadge/VvBadge.es.js +3 -3
- package/dist/components/VvBadge/VvBadge.vue.d.ts +2 -2
- package/dist/components/VvBreadcrumb/VvBreadcrumb.es.js +3 -3
- package/dist/components/VvBreadcrumb/VvBreadcrumb.vue.d.ts +3 -3
- package/dist/components/VvButton/VvButton.es.js +14 -10
- package/dist/components/VvButton/VvButton.umd.js +1 -1
- package/dist/components/VvButton/VvButton.vue.d.ts +13 -13
- package/dist/components/VvButton/index.d.ts +2 -2
- package/dist/components/VvButtonGroup/VvButtonGroup.es.js +3 -3
- package/dist/components/VvButtonGroup/VvButtonGroup.vue.d.ts +4 -4
- package/dist/components/VvCard/VvCard.es.js +221 -2
- package/dist/components/VvCard/VvCard.umd.js +1 -1
- package/dist/components/VvCard/VvCard.vue.d.ts +5 -5
- package/dist/components/VvCheckbox/VvCheckbox.es.js +3 -3
- package/dist/components/VvCheckbox/VvCheckbox.vue.d.ts +18 -18
- package/dist/components/VvCheckbox/index.d.ts +3 -3
- package/dist/components/VvCheckboxGroup/VvCheckboxGroup.es.js +3 -3
- package/dist/components/VvCheckboxGroup/VvCheckboxGroup.vue.d.ts +16 -16
- package/dist/components/VvCheckboxGroup/index.d.ts +3 -3
- package/dist/components/VvCombobox/VvCombobox.es.js +65 -60
- package/dist/components/VvCombobox/VvCombobox.umd.js +1 -1
- package/dist/components/VvCombobox/VvCombobox.vue.d.ts +56 -44
- package/dist/components/VvCombobox/index.d.ts +13 -7
- package/dist/components/VvDialog/VvDialog.es.js +19 -14
- package/dist/components/VvDialog/VvDialog.umd.js +1 -1
- package/dist/components/VvDialog/VvDialog.vue.d.ts +7 -7
- package/dist/components/VvDialog/index.d.ts +2 -2
- package/dist/components/VvDropdown/VvDropdown.es.js +22 -23
- package/dist/components/VvDropdown/VvDropdown.umd.js +1 -1
- package/dist/components/VvDropdown/VvDropdown.vue.d.ts +16 -16
- package/dist/components/VvDropdown/VvDropdownAction.vue.d.ts +4 -4
- package/dist/components/VvDropdown/VvDropdownItem.vue.d.ts +2 -2
- package/dist/components/VvDropdown/VvDropdownOptgroup.vue.d.ts +1 -1
- package/dist/components/VvDropdown/VvDropdownOption.vue.d.ts +4 -4
- package/dist/components/VvDropdown/index.d.ts +1 -1
- package/dist/components/VvDropdownAction/VvDropdownAction.es.js +17 -11
- package/dist/components/VvDropdownAction/VvDropdownAction.umd.js +1 -1
- package/dist/components/VvDropdownItem/VvDropdownItem.es.js +9 -5
- package/dist/components/VvDropdownItem/VvDropdownItem.umd.js +1 -1
- package/dist/components/VvDropdownOptgroup/VvDropdownOptgroup.es.js +3 -3
- package/dist/components/VvDropdownOption/VvDropdownOption.es.js +12 -8
- package/dist/components/VvDropdownOption/VvDropdownOption.umd.js +1 -1
- package/dist/components/VvIcon/VvIcon.vue.d.ts +1 -1
- package/dist/components/VvInputText/VvInputClearAction.d.ts +2 -2
- package/dist/components/VvInputText/VvInputPasswordAction.d.ts +1 -1
- package/dist/components/VvInputText/VvInputStepAction.d.ts +1 -1
- package/dist/components/VvInputText/VvInputText.es.js +5 -5
- package/dist/components/VvInputText/VvInputText.umd.js +1 -1
- package/dist/components/VvInputText/VvInputText.vue.d.ts +30 -30
- package/dist/components/VvInputText/index.d.ts +5 -5
- package/dist/components/VvNav/VvNav.es.js +12 -8
- package/dist/components/VvNav/VvNav.umd.js +1 -1
- package/dist/components/VvNav/VvNav.vue.d.ts +1 -1
- package/dist/components/VvNavItemTitle/VvNavItemTitle.vue.d.ts +1 -1
- package/dist/components/VvNavSeparator/VvNavSeparator.d.ts +1 -1
- package/dist/components/VvProgress/VvProgress.es.js +3 -3
- package/dist/components/VvProgress/VvProgress.vue.d.ts +1 -1
- package/dist/components/VvRadio/VvRadio.es.js +3 -3
- package/dist/components/VvRadio/VvRadio.vue.d.ts +18 -18
- package/dist/components/VvRadio/index.d.ts +3 -3
- package/dist/components/VvRadioGroup/VvRadioGroup.es.js +3 -3
- package/dist/components/VvRadioGroup/VvRadioGroup.vue.d.ts +16 -16
- package/dist/components/VvRadioGroup/index.d.ts +3 -3
- package/dist/components/VvSelect/VvSelect.es.js +3 -3
- package/dist/components/VvSelect/VvSelect.vue.d.ts +26 -26
- package/dist/components/VvSelect/index.d.ts +4 -4
- package/dist/components/VvTab/VvTab.es.js +12 -8
- package/dist/components/VvTab/VvTab.umd.js +1 -1
- package/dist/components/VvTab/VvTab.vue.d.ts +1 -1
- package/dist/components/VvTextarea/VvTextarea.es.js +3 -3
- package/dist/components/VvTextarea/VvTextarea.vue.d.ts +24 -24
- package/dist/components/VvTextarea/index.d.ts +3 -3
- package/dist/components/VvTooltip/VvTooltip.es.js +3 -3
- package/dist/components/VvTooltip/VvTooltip.vue.d.ts +2 -2
- package/dist/components/common/HintSlot.d.ts +1 -1
- package/dist/components/index.es.js +773 -769
- package/dist/components/index.umd.js +1 -1
- package/dist/composables/alert/useInjectAlert.d.ts +9 -0
- package/dist/composables/alert/useProvideAlert.d.ts +10 -0
- package/dist/composables/dropdown/useInjectDropdown.d.ts +17 -16
- package/dist/composables/dropdown/useProvideDropdown.d.ts +7 -3
- package/dist/composables/useVolver.d.ts +1 -2
- package/dist/constants.d.ts +33 -4
- package/dist/directives/index.es.js +3 -3
- package/dist/directives/v-tooltip.es.js +3 -3
- package/dist/icons.es.js +3 -3
- package/dist/icons.umd.js +1 -1
- package/dist/props/index.d.ts +16 -16
- package/dist/resolvers/unplugin.es.js +6 -3
- package/dist/resolvers/unplugin.umd.js +1 -1
- package/dist/stories/Accordion/Accordion.settings.d.ts +18 -17
- package/dist/stories/Accordion/Accordion.stories.d.ts +7 -0
- package/dist/stories/Accordion/AccordionSlots.stories.d.ts +7 -0
- package/dist/stories/AccordionGroup/AccordionGroup.settings.d.ts +23 -4
- package/dist/stories/AccordionGroup/AccordionGroup.stories.d.ts +134 -0
- package/dist/stories/AccordionGroup/AccordionGroupSlots.stories.d.ts +894 -0
- package/dist/stories/Alert/Alert.settings.d.ts +105 -0
- package/dist/stories/Alert/Alert.stories.d.ts +9 -0
- package/dist/stories/Alert/Alert.test.d.ts +2 -0
- package/dist/stories/Alert/AlertModifiers.stories.d.ts +13 -0
- package/dist/stories/Alert/AlertSlots.stories.d.ts +10 -0
- package/dist/stories/AlertGroup/AlertGroup.settings.d.ts +97 -0
- package/dist/stories/AlertGroup/AlertGroup.stories.d.ts +8 -0
- package/dist/stories/AlertGroup/AlertGroup.test.d.ts +2 -0
- package/dist/stories/AlertGroup/AlertGroupPosition.stories.d.ts +14 -0
- package/dist/stories/AlertGroup/AlertGroupSlots.stories.d.ts +8 -0
- package/dist/stories/Avatar/Avatar.settings.d.ts +2 -33
- package/dist/stories/Avatar/Avatar.stories.d.ts +7 -0
- package/dist/stories/Avatar/AvatarBadge.stories.d.ts +6 -0
- package/dist/stories/Avatar/AvatarModifiers.stories.d.ts +13 -0
- package/dist/stories/Avatar/AvatarSlots.stories.d.ts +6 -0
- package/dist/stories/AvatarGroup/AvatarGroup.settings.d.ts +0 -6
- package/dist/stories/AvatarGroup/AvatarGroup.stories.d.ts +6 -0
- package/dist/stories/AvatarGroup/AvatarGroupModifiers.stories.d.ts +7 -0
- package/dist/stories/AvatarGroup/AvatarGroupSlotDefault.stories.d.ts +6 -0
- package/dist/stories/Badge/Badge.settings.d.ts +0 -3
- package/dist/stories/Badge/Badge.stories.d.ts +7 -0
- package/dist/stories/Badge/BadgeSlots.stories.d.ts +6 -0
- package/dist/stories/Breadcrumb/Breadcrumb.stories.d.ts +7 -0
- package/dist/stories/Breadcrumb/Breadcrumb.test.d.ts +1 -1
- package/dist/stories/Breadcrumb/BreadcrumbSlots.stories.d.ts +6 -0
- package/dist/stories/Button/Button.settings.d.ts +1 -18
- package/dist/stories/Button/Button.stories.d.ts +6 -0
- package/dist/stories/Button/ButtonIcon.stories.d.ts +10 -0
- package/dist/stories/Button/ButtonLink.stories.d.ts +7 -0
- package/dist/stories/Button/ButtonLoading.stories.d.ts +8 -0
- package/dist/stories/Button/ButtonModifiers.stories.d.ts +17 -0
- package/dist/stories/Button/ButtonSlots.stories.d.ts +9 -0
- package/dist/stories/Button/ButtonState.stories.d.ts +8 -0
- package/dist/stories/Button/ButtonToggle.stories.d.ts +9 -0
- package/dist/stories/ButtonGroup/ButtonGroup.settings.d.ts +0 -4
- package/dist/stories/ButtonGroup/ButtonGroup.stories.d.ts +6 -0
- package/dist/stories/ButtonGroup/ButtonGroupModifiers.stories.d.ts +8 -0
- package/dist/stories/ButtonGroup/ButtonGroupSlots.stories.d.ts +6 -0
- package/dist/stories/ButtonGroup/ButtonGroupToggle.stories.d.ts +8 -0
- package/dist/stories/Card/Card.settings.d.ts +0 -3
- package/dist/stories/Card/Card.stories.d.ts +6 -0
- package/dist/stories/Card/CardSlots.stories.d.ts +9 -0
- package/dist/stories/Checkbox/Checkbox.settings.d.ts +1 -21
- package/dist/stories/Checkbox/Checkbox.stories.d.ts +13 -0
- package/dist/stories/Checkbox/CheckboxBinary.stories.d.ts +7 -0
- package/dist/stories/Checkbox/CheckboxSlots.stories.d.ts +7 -0
- package/dist/stories/CheckboxGroup/CheckboxGroup.settings.d.ts +1 -27
- package/dist/stories/CheckboxGroup/CheckboxGroup.stories.d.ts +12 -0
- package/dist/stories/CheckboxGroup/CheckboxGroupOptions.stories.d.ts +8 -0
- package/dist/stories/CheckboxGroup/CheckboxGroupSlots.stories.d.ts +7 -0
- package/dist/stories/Combobox/Combobox.settings.d.ts +2 -54
- package/dist/stories/Combobox/Combobox.stories.d.ts +21 -0
- package/dist/stories/Combobox/ComboboxIconPosition.stories.d.ts +8 -0
- package/dist/stories/Combobox/ComboboxMultiple.stories.d.ts +8 -0
- package/dist/stories/Combobox/ComboboxOptions.stories.d.ts +9 -0
- package/dist/stories/Combobox/ComboboxSlots.stories.d.ts +10 -0
- package/dist/stories/Dialog/Dialog.settings.d.ts +1 -1
- package/dist/stories/Dialog/Dialog.stories.d.ts +7 -0
- package/dist/stories/Dialog/DialogSlots.stories.d.ts +8 -0
- package/dist/stories/Dropdown/Dropdown.settings.d.ts +1 -1
- package/dist/stories/Dropdown/Dropdown.stories.d.ts +9 -0
- package/dist/stories/Dropdown/DropdownContextmenuDirective.stories.d.ts +6 -0
- package/dist/stories/Dropdown/DropdownMultilevel.stories.d.ts +6 -0
- package/dist/stories/Dropdown/DropdownSlots.stories.d.ts +8 -0
- package/dist/stories/Icon/Icon.settings.d.ts +1 -3
- package/dist/stories/Icon/Icon.stories.d.ts +8 -0
- package/dist/stories/Icon/IconsCollection.stories.d.ts +6 -0
- package/dist/stories/InputText/InputText.settings.d.ts +1 -74
- package/dist/stories/InputText/InputText.stories.d.ts +15 -0
- package/dist/stories/InputText/InputTextIconPosition.stories.d.ts +8 -0
- package/dist/stories/InputText/InputTextLength.stories.d.ts +10 -0
- package/dist/stories/InputText/InputTextMinMax.stories.d.ts +9 -0
- package/dist/stories/InputText/InputTextSlots.stories.d.ts +8 -0
- package/dist/stories/InputText/InputTextType.stories.d.ts +18 -0
- package/dist/stories/Nav/Nav.settings.d.ts +0 -3
- package/dist/stories/Nav/Nav.stories.d.ts +6 -0
- package/dist/stories/Nav/NavModifiers.stories.d.ts +9 -0
- package/dist/stories/Progress/Progress.settings.d.ts +0 -6
- package/dist/stories/Progress/Progress.stories.d.ts +7 -0
- package/dist/stories/Radio/Radio.settings.d.ts +1 -19
- package/dist/stories/Radio/Radio.stories.d.ts +11 -0
- package/dist/stories/Radio/RadioSlots.stories.d.ts +7 -0
- package/dist/stories/RadioGroup/RadioGroup.settings.d.ts +1 -27
- package/dist/stories/RadioGroup/RadioGroup.stories.d.ts +12 -0
- package/dist/stories/RadioGroup/RadioGroupOptions.stories.d.ts +8 -0
- package/dist/stories/RadioGroup/RadioGroupSlots.stories.d.ts +7 -0
- package/dist/stories/Select/Select.settings.d.ts +1 -47
- package/dist/stories/Select/Select.stories.d.ts +15 -0
- package/dist/stories/Select/SelectIconPosition.stories.d.ts +8 -0
- package/dist/stories/Select/SelectOptions.stories.d.ts +9 -0
- package/dist/stories/Select/SelectSlots.stories.d.ts +8 -0
- package/dist/stories/Tab/Tab.stories.d.ts +6 -0
- package/dist/stories/Textarea/Textarea.settings.d.ts +1 -43
- package/dist/stories/Textarea/Textarea.stories.d.ts +14 -0
- package/dist/stories/Textarea/TextareaLength.stories.d.ts +10 -0
- package/dist/stories/Textarea/TextareaSlots.stories.d.ts +8 -0
- package/dist/stories/Textarea/TextareatIconPosition.stories.d.ts +8 -0
- package/dist/stories/Tooltip/Tooltip.settings.d.ts +2 -39
- package/dist/stories/Tooltip/Tooltip.stories.d.ts +6 -0
- package/dist/stories/Tooltip/TooltipDirective.stories.d.ts +10 -0
- package/dist/stories/argTypes.d.ts +5 -125
- package/package.json +66 -49
- package/src/assets/icons/detailed.json +1 -1
- package/src/assets/icons/normal.json +1 -1
- package/src/assets/icons/simple.json +1 -1
- package/src/components/VvAccordion/index.ts +2 -4
- package/src/components/VvAccordionGroup/index.ts +3 -4
- package/src/components/VvAction/VvAction.vue +1 -1
- package/src/components/VvAlert/VvAlert.vue +54 -0
- package/src/components/VvAlert/index.ts +162 -0
- package/src/components/VvAlertGroup/VvAlertGroup.vue +34 -0
- package/src/components/VvAlertGroup/index.ts +122 -0
- package/src/components/VvCard/index.ts +3 -1
- package/src/components/VvCombobox/VvCombobox.vue +22 -26
- package/src/components/VvCombobox/index.ts +9 -3
- package/src/components/VvDialog/VvDialog.vue +11 -7
- package/src/components/VvDialog/index.ts +2 -2
- package/src/components/VvDropdown/VvDropdown.vue +8 -4
- package/src/components/VvDropdown/VvDropdownItem.vue +2 -2
- package/src/composables/alert/useInjectAlert.ts +8 -0
- package/src/composables/alert/useProvideAlert.ts +23 -0
- package/src/composables/dropdown/useInjectDropdown.ts +3 -28
- package/src/composables/dropdown/useProvideDropdown.ts +14 -15
- package/src/composables/useVolver.ts +1 -2
- package/src/constants.ts +42 -4
- package/src/props/index.ts +3 -3
- package/src/resolvers/unplugin.ts +6 -3
- package/src/stories/Accordion/Accordion.settings.ts +18 -7
- package/src/stories/Accordion/Accordion.stories.ts +45 -0
- package/src/stories/Accordion/AccordionSlots.stories.ts +29 -0
- package/src/stories/AccordionGroup/AccordionGroup.settings.ts +22 -0
- package/src/stories/AccordionGroup/AccordionGroup.stories.ts +62 -0
- package/src/stories/AccordionGroup/AccordionGroupSlots.stories.ts +53 -0
- package/src/stories/Alert/Alert.settings.ts +110 -0
- package/src/stories/Alert/Alert.stories.ts +60 -0
- package/src/stories/Alert/Alert.test.ts +95 -0
- package/src/stories/Alert/AlertModifiers.stories.ts +77 -0
- package/src/stories/Alert/AlertSlots.stories.ts +74 -0
- package/src/stories/AlertGroup/AlertGroup.settings.ts +110 -0
- package/src/stories/AlertGroup/AlertGroup.stories.ts +50 -0
- package/src/stories/AlertGroup/AlertGroup.test.ts +76 -0
- package/src/stories/AlertGroup/AlertGroupPosition.stories.ts +103 -0
- package/src/stories/AlertGroup/AlertGroupSlots.stories.ts +67 -0
- package/src/stories/Avatar/Avatar.settings.ts +7 -6
- package/src/stories/Avatar/Avatar.stories.ts +42 -0
- package/src/stories/Avatar/Avatar.test.ts +1 -1
- 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.stories.ts +35 -0
- package/src/stories/AvatarGroup/AvatarGroupModifiers.stories.ts +31 -0
- package/src/stories/AvatarGroup/{AvatarGroupSlotDefault.stories.mdx → AvatarGroupSlotDefault.stories.ts} +24 -30
- package/src/stories/Badge/Badge.stories.ts +43 -0
- package/src/stories/Badge/BadgeSlots.stories.ts +23 -0
- package/src/stories/Breadcrumb/Breadcrumb.stories.ts +41 -0
- package/src/stories/Breadcrumb/Breadcrumb.test.ts +1 -1
- package/src/stories/Breadcrumb/BreadcrumbSlots.stories.ts +37 -0
- package/src/stories/Button/Button.settings.ts +2 -11
- package/src/stories/Button/Button.stories.ts +38 -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 +158 -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.stories.ts +39 -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.stories.ts +46 -0
- package/src/stories/Card/CardSlots.stories.ts +81 -0
- package/src/stories/Checkbox/Checkbox.settings.ts +0 -2
- package/src/stories/Checkbox/Checkbox.stories.ts +97 -0
- package/src/stories/Checkbox/CheckboxBinary.stories.ts +33 -0
- package/src/stories/Checkbox/CheckboxSlots.stories.ts +31 -0
- package/src/stories/CheckboxGroup/CheckboxGroup.stories.ts +87 -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 +3 -23
- package/src/stories/Combobox/Combobox.stories.ts +176 -0
- package/src/stories/Combobox/Combobox.test.ts +2 -2
- package/src/stories/Combobox/ComboboxIconPosition.stories.ts +43 -0
- package/src/stories/Combobox/ComboboxMultiple.stories.ts +41 -0
- package/src/stories/Combobox/ComboboxOptions.stories.ts +78 -0
- package/src/stories/Combobox/ComboboxSlots.stories.ts +104 -0
- package/src/stories/Dialog/Dialog.settings.ts +1 -1
- package/src/stories/Dialog/Dialog.stories.ts +51 -0
- package/src/stories/Dialog/Dialog.test.ts +2 -2
- package/src/stories/Dialog/DialogSlots.stories.ts +39 -0
- package/src/stories/Dropdown/Dropdown.stories.ts +107 -0
- package/src/stories/Dropdown/DropdownContextmenuDirective.stories.ts +49 -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 +1 -0
- package/src/stories/Icon/Icon.stories.ts +48 -0
- package/src/stories/Icon/IconsCollection.stories.ts +53 -0
- package/src/stories/InputText/InputText.settings.ts +3 -39
- package/src/stories/InputText/InputText.stories.ts +121 -0
- package/src/stories/InputText/InputTextIconPosition.stories.ts +43 -0
- package/src/stories/InputText/InputTextLength.stories.ts +58 -0
- package/src/stories/InputText/InputTextMinMax.stories.ts +51 -0
- package/src/stories/InputText/InputTextSlots.stories.ts +39 -0
- package/src/stories/InputText/InputTextType.stories.ts +119 -0
- package/src/stories/Nav/Nav.stories.ts +33 -0
- package/src/stories/Nav/NavModifiers.stories.ts +47 -0
- package/src/stories/Progress/Progress.settings.ts +0 -3
- package/src/stories/Progress/Progress.stories.ts +41 -0
- package/src/stories/Radio/Radio.stories.ts +81 -0
- package/src/stories/Radio/RadioSlots.stories.ts +31 -0
- package/src/stories/RadioGroup/RadioGroup.stories.ts +88 -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 +0 -5
- package/src/stories/Select/Select.stories.ts +113 -0
- package/src/stories/Select/SelectIconPosition.stories.ts +43 -0
- package/src/stories/Select/SelectOptions.stories.ts +77 -0
- package/src/stories/Select/SelectSlots.stories.ts +39 -0
- package/src/stories/Tab/Tab.stories.ts +70 -0
- package/src/stories/Textarea/Textarea.settings.ts +0 -8
- package/src/stories/Textarea/Textarea.stories.ts +107 -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 +4 -4
- package/src/stories/Tooltip/Tooltip.stories.ts +40 -0
- package/src/stories/Tooltip/TooltipDirective.stories.ts +68 -0
- package/src/stories/argTypes.ts +5 -59
- package/src/stories/Accordion/Accordion.stories.mdx +0 -45
- package/src/stories/Accordion/AccordionSlots.stories.mdx +0 -58
- package/src/stories/AccordionGroup/AccordionGroup.stories.mdx +0 -58
- package/src/stories/AccordionGroup/AccordionGroupSlots.stories.mdx +0 -59
- package/src/stories/Avatar/Avatar.stories.mdx +0 -40
- package/src/stories/Avatar/AvatarBadge.stories.mdx +0 -41
- package/src/stories/Avatar/AvatarModifiers.stories.mdx +0 -87
- package/src/stories/Avatar/AvatarSlotDefault.stories.mdx +0 -29
- package/src/stories/AvatarGroup/AvatarGroup.stories.mdx +0 -30
- package/src/stories/AvatarGroup/AvatarGroupModifiers.stories.mdx +0 -24
- package/src/stories/Badge/Badge.stories.mdx +0 -51
- package/src/stories/Badge/BadgeSlots.stories.mdx +0 -20
- package/src/stories/Breadcrumb/Breadcrumb.stories.mdx +0 -50
- package/src/stories/Breadcrumb/BreadcrumbSlots.stories.mdx +0 -43
- package/src/stories/Button/Button.stories.mdx +0 -35
- package/src/stories/Button/ButtonIcon.stories.mdx +0 -153
- package/src/stories/Button/ButtonLink.stories.mdx +0 -72
- package/src/stories/Button/ButtonLoading.stories.mdx +0 -108
- package/src/stories/Button/ButtonModifiers.stories.mdx +0 -257
- package/src/stories/Button/ButtonSlots.stories.mdx +0 -116
- package/src/stories/Button/ButtonState.stories.mdx +0 -66
- package/src/stories/Button/ButtonToggle.stories.mdx +0 -112
- package/src/stories/ButtonGroup/ButtonGroup.stories.mdx +0 -37
- package/src/stories/ButtonGroup/ButtonGroupModifiers.stories.mdx +0 -52
- package/src/stories/ButtonGroup/ButtonGroupSlots.stories.mdx +0 -37
- package/src/stories/ButtonGroup/ButtonGroupToggle.stories.mdx +0 -73
- package/src/stories/Card/Card.stories.mdx +0 -40
- package/src/stories/Card/CardSlots.stories.mdx +0 -98
- package/src/stories/Checkbox/Checkbox.stories.mdx +0 -164
- package/src/stories/Checkbox/CheckboxBinary.stories.mdx +0 -68
- package/src/stories/Checkbox/CheckboxSlots.stories.mdx +0 -46
- package/src/stories/CheckboxGroup/CheckboxGroup.stories.mdx +0 -135
- package/src/stories/CheckboxGroup/CheckboxGroupOptions.stories.mdx +0 -100
- package/src/stories/CheckboxGroup/CheckboxGroupSlots.stories.mdx +0 -68
- package/src/stories/Combobox/Combobox.stories.mdx +0 -324
- package/src/stories/Combobox/ComboboxIconPosition.stories.mdx +0 -78
- package/src/stories/Combobox/ComboboxMultiple.stories.mdx +0 -73
- package/src/stories/Combobox/ComboboxOptions.stories.mdx +0 -135
- package/src/stories/Combobox/ComboboxSlots.stories.mdx +0 -153
- package/src/stories/Dialog/Dialog.stories.mdx +0 -56
- package/src/stories/Dialog/DialogSlots.stories.mdx +0 -63
- package/src/stories/Dropdown/Dropdown.stories.mdx +0 -124
- package/src/stories/Dropdown/DropdownContextmenuDirective.stories.mdx +0 -41
- package/src/stories/Dropdown/DropdownMultilevel.stories.mdx +0 -56
- package/src/stories/Dropdown/DropdownSlots.stories.mdx +0 -114
- package/src/stories/Icon/Icon.stories.mdx +0 -91
- package/src/stories/Icon/IconsCollection.stories.mdx +0 -69
- package/src/stories/InputText/InputText.stories.mdx +0 -211
- package/src/stories/InputText/InputTextIconPosition.stories.mdx +0 -78
- package/src/stories/InputText/InputTextLength.stories.mdx +0 -110
- package/src/stories/InputText/InputTextMinMax.stories.mdx +0 -112
- package/src/stories/InputText/InputTextSlots.stories.mdx +0 -69
- package/src/stories/InputText/InputTextType.stories.mdx +0 -259
- package/src/stories/Nav/Nav.stories.mdx +0 -28
- package/src/stories/Nav/NavModifiers.stories.mdx +0 -48
- package/src/stories/Progress/Progress.stories.mdx +0 -30
- package/src/stories/Radio/Radio.stories.mdx +0 -128
- package/src/stories/Radio/RadioSlots.stories.mdx +0 -46
- package/src/stories/RadioGroup/RadioGroup.stories.mdx +0 -135
- package/src/stories/RadioGroup/RadioGroupOptions.stories.mdx +0 -100
- package/src/stories/RadioGroup/RadioGroupSlots.stories.mdx +0 -68
- package/src/stories/Select/Select.stories.mdx +0 -196
- package/src/stories/Select/SelectIconPosition.stories.mdx +0 -78
- package/src/stories/Select/SelectOptions.stories.mdx +0 -135
- package/src/stories/Select/SelectSlots.stories.mdx +0 -48
- package/src/stories/Tab/Tab.stories.mdx +0 -65
- package/src/stories/Textarea/Textarea.stories.mdx +0 -187
- package/src/stories/Textarea/TextareaLength.stories.mdx +0 -110
- package/src/stories/Textarea/TextareaSlots.stories.mdx +0 -69
- package/src/stories/Textarea/TextareatIconPosition.stories.mdx +0 -78
- package/src/stories/Tooltip/Tooltip.stories.mdx +0 -102
- package/src/stories/Tooltip/TooltipDirective.stories.mdx +0 -99
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("vue"),require("nanoid"),require("@vueuse/core"),require("@iconify/vue"),require("@floating-ui/vue"),require("mitt"),require("maska")):"function"==typeof define&&define.amd?define(["exports","vue","nanoid","@vueuse/core","@iconify/vue","@floating-ui/vue","mitt","maska"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).components={},e.vue,e.nanoid,e.core,e.vue$1,e.vue$2,e.mitt,e.maska)}(this,(function(e,t,l,o,a,n,r,i){"use strict";var u=(e=>(e.left="left",e.right="right",e.top="top",e.bottom="bottom",e))(u||{}),d=(e=>(e.topStart="top-start",e.topEnd="top-end",e.bottomStart="bottom-start",e.bottomEnd="bottom-end",e.leftStart="left-start",e.leftEnd="left-end",e.rightStart="right-start",e.rightEnd="right-end",e))(d||{}),s=(e=>(e.before="before",e.after="after",e))(s||{}),c=(e=>(e.button="button",e.submit="submit",e.reset="reset",e))(c||{}),v=(e=>(e.nuxtLink="nuxt-link",e.routerLink="router-link",e.a="a",e.button="button",e))(v||{}),p=(e=>(e.button="button",e.link="link",e.menuitem="menuitem",e))(p||{}),m=(e=>(e.listbox="listbox",e.menu="menu",e))(m||{}),f=(e=>(e.option="option",e.presentation="presentation",e))(f||{}),b=(e=>(e._blank="_blank",e._self="_self",e._parent="_parent",e._top="_top",e))(b||{});const g=Symbol.for("volver"),y=Symbol.for("buttonGroup"),h=Symbol.for("radioGroup"),k=Symbol.for("checkGroup"),S=Symbol.for("accordionGroup"),V=Symbol.for("dropdownTrigger"),B=Symbol.for("dropdownItem"),w=Symbol.for("dropdownAction");function x(e,t,l){return l?P(e,l)===P(t,l):C(e,t)}function C(e,t){if(e===t)return!0;if(e&&t&&"object"==typeof e&&"object"==typeof t){const l=Array.isArray(e),o=Array.isArray(t);let a,n,r;if(l&&o){if(n=e.length,n!=t.length)return!1;for(a=n;0!=a--;)if(!C(e[a],t[a]))return!1;return!0}if(l!=o)return!1;const i=e instanceof Date,u=t instanceof Date;if(i!=u)return!1;if(i&&u)return e.getTime()==t.getTime();const d=e instanceof RegExp,s=t instanceof RegExp;if(d!=s)return!1;if(d&&s)return e.toString()==t.toString();const c=Object.keys(e);if(n=c.length,n!==Object.keys(t).length)return!1;for(a=n;0!=a--;)if(!Object.prototype.hasOwnProperty.call(t,c[a]))return!1;for(a=n;0!=a--;)if(r=c[a],!C(e[r],t[r]))return!1;return!0}return e!=e&&t!=t}function P(e,t){if(e&&Object.keys(e).length&&t){if(-1===t.indexOf("."))return e[t];{const l=t.split(".");let o=e;for(let t=0,a=l.length;t<a;++t){if(null==e)return null;o=o[l[t]]}return o}}return null}function _(e,t){if(null!=e&&t&&t.length)for(const l of t)if(x(e,l))return!0;return!1}function $(e){return null==(l=t.unref(e))||""===l||Array.isArray(l)&&0===l.length||!(l instanceof Date)&&"object"==typeof l&&0===Object.keys(l).length;var l}function E(e,t){const l=function(e,t){let l=-1;if(t)for(let o=0;o<t.length;o++)if(x(t[o],e)){l=o;break}return l}(e,t);return l>-1?t.filter(((e,t)=>t!==l)):t}function N(e){const l=t.inject(e,void 0),o=t.computed((()=>!$(l)));return{group:l,isInGroup:o,getGroupOrLocalRef:function(e,o,a){if(null==l?void 0:l.value){const o=t.unref(l.value)[e];return t.computed({get:()=>null==o?void 0:o.value,set(e){o.value=e}})}const n=t.toRef(o,e);return t.computed({get:()=>n.value,set(t){a&&a(`update:${e}`,t)}})}}}const L={name:String,title:String,content:String,modelValue:{type:Boolean,default:void 0},modifiers:[String,Array],disabled:Boolean,not:Boolean};function A(e,l,o){return t.computed((()=>{const a={[e]:!0},n="string"==typeof(null==l?void 0:l.value)?l.value.split(" "):null==l?void 0:l.value;return n&&Array.isArray(n)&&n.forEach((t=>{t&&(a[`${e}--${t}`]=!0)})),o&&Object.keys(o.value).forEach((l=>{a[`${e}--${l}`]=t.unref(o.value[l])})),a}))}const R=["id","open"],O=["aria-controls","aria-expanded"],D=["aria-hidden"],z=t.defineComponent({name:"VvAccordion",props:L,emits:["update:modelValue"],setup(e,{emit:a}){const n=e,r=t.useAttrs(),i=t.computed((()=>n.name||(null==r?void 0:r.id)||l.nanoid())),{modifiers:u,title:d,content:s,disabled:c,collapse:v,modelValue:p,isInGroup:m,not:f}=function(e,l){const{group:o,isInGroup:a,getGroupOrLocalRef:n}=N(S),{title:r,content:i}=t.toRefs(e),u=n("modelValue",e,l),d=n("not",e),s=n("collapse",e),c=t.computed((()=>{var t;return Boolean(e.disabled||(null==(t=null==o?void 0:o.value)?void 0:t.disabled.value))})),v=t.computed((()=>{let t=e.modifiers,l=null==o?void 0:o.value.modifiers.value;const a=new Set;return t&&(Array.isArray(t)||(t=t.split(" ")),t.forEach((e=>a.add(e)))),l&&(Array.isArray(l)||(l=l.split(" ")),l.forEach((e=>a.add(e)))),Array.from(a)}));return{modelValue:u,not:d,isInGroup:a,group:o,collapse:s,modifiers:v,disabled:c,title:r,content:i}}(n,a),b=t.ref(!1),g=t.computed({get:()=>{let e=p.value;return m.value?e=v.value&&Array.isArray(p.value)?p.value.includes(i.value):p.value===i.value:void 0===p.value&&(e=b.value),f.value?!e:e},set:e=>{if(f.value&&(e=!e),m.value)return v.value&&Array.isArray(p.value)?e?void p.value.push(i.value):void(p.value=p.value.filter((e=>e!==i.value))):void(p.value=e?i.value:null);void 0!==p.value||"boolean"!=typeof e?p.value=e:b.value=e}}),y=A("vv-accordion",u,t.computed((()=>({disabled:c.value})))),h=o.useToggle(g);return(e,l)=>(t.openBlock(),t.createElementBlock("details",{id:t.unref(i),class:t.normalizeClass(t.unref(y)),open:t.unref(g)},[t.createElementVNode("summary",{"aria-controls":t.unref(i),"aria-expanded":t.unref(g),class:"vv-accordion__summary",onClick:l[0]||(l[0]=t.withModifiers((e=>t.unref(h)()),["prevent"]))},[t.renderSlot(e.$slots,"summary",t.normalizeProps(t.guardReactiveProps({open:t.unref(g)})),(()=>[t.createTextVNode(t.toDisplayString(t.unref(d)),1)]))],8,O),t.createElementVNode("div",{"aria-hidden":!t.unref(g),class:"vv-accordion__content"},[t.renderSlot(e.$slots,"default",t.normalizeProps(t.guardReactiveProps({open:t.unref(g)})),(()=>[t.createTextVNode(t.toDisplayString(t.unref(s)),1)]))],8,D)],10,R))}}),T={modelValue:[String,Array],items:{type:Array,default:()=>[]},collapse:Boolean,modifiers:[String,Array],itemModifiers:{type:[String,Array],default:""},disabled:Boolean,not:Boolean,storeKey:String};function I(e){if(Object.keys(e).some((l=>"key"!==l&&!t.isRef(e[l]))))throw Error("One or more groupState props aren't ref.");t.provide(e.key,t.computed((()=>e)))}const H=t.defineComponent({name:"VvAccordionGroup",props:T,emits:["update:modelValue"],setup(e,{emit:l}){const a=e,{disabled:n,collapse:r,modifiers:i,itemModifiers:u,items:d,not:s}=t.toRefs(a);t.watchEffect((()=>{"string"==typeof a.modelValue&&r.value&&console.warn("[VvAccordionGroup]: modelValue is a string but collapse is true.")}));let c=t.ref([]);t.watch((()=>a.storeKey),(e=>{c=e?o.useStorage(e,c.value):t.ref([])}),{immediate:!0});const v=t.computed({get:()=>{var e;return void 0!==a.modelValue?r.value?a.modelValue:Array.isArray(a.modelValue)?a.modelValue[0]:a.modelValue:r.value?c.value:null==(e=c.value)?void 0:e[0]},set:e=>{if(void 0!==a.modelValue)return!Array.isArray(a.modelValue)&&!r.value||Array.isArray(e)||(e=[e]),l("update:modelValue",e);c.value=Array.isArray(e)?e:[e]}});I({key:S,modelValue:v,disabled:n,collapse:r,modifiers:u,not:s});const p=A("vv-accordion-group",i,t.computed((()=>({disabled:n.value}))));return(e,l)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(t.unref(p))},[t.renderSlot(e.$slots,"default",{},(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(d),(l=>(t.openBlock(),t.createBlock(z,t.mergeProps({key:l.title},{name:l.name,title:l.title,content:l.content}),{header:t.withCtx((o=>[t.renderSlot(e.$slots,`header::${l.name}`,t.normalizeProps(t.guardReactiveProps(o)))])),details:t.withCtx((o=>[t.renderSlot(e.$slots,`details::${l.name}`,t.normalizeProps(t.guardReactiveProps(o)))])),_:2},1040)))),128))]))],2))}}),M={to:{type:[String,Object]},href:String,target:{type:String,validator:e=>Object.values(b).includes(e)},rel:{type:String,default:"noopener noreferrer"}},j={valid:Boolean,validLabel:[String,Array]},F={invalid:Boolean,invalidLabel:[String,Array]},G={loading:Boolean,loadingLabel:{type:String,default:"Loading..."}},U={disabled:Boolean},W={selected:Boolean},K={active:Boolean},q={pressed:Boolean},X={label:[String,Number]},J={readonly:Boolean},Q={modifiers:[String,Array]},Y={hintLabel:{type:String,default:""}},Z={options:{type:Array,default:()=>[]},labelKey:{type:[String,Function],default:"label"},valueKey:{type:[String,Function],default:"value"},disabledKey:{type:[String,Function],default:"disabled"}},ee={count:{type:[Boolean,String],default:!1,validator:e=>[!0,!1,"limit","countdown"].includes(e)}},te={debounce:[Number,String]},le={icon:{type:[String,Object]},iconPosition:{type:String,default:s.before,validation:e=>Object.values(s).includes(e)}},oe={tabindex:{type:[String,Number],default:0}},ae={floating:Boolean},ne={unselectable:{type:Boolean,default:!0}},re={id:[String,Number]},ie={placement:{type:String,default:u.bottom,validator:e=>Object.values(u).includes(e)||Object.values(d).includes(e)},strategy:{type:String,default:"absolute",validator:e=>["fixed","absolute"].includes(e)},transitionName:{type:String},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},autoClose:{type:Boolean,default:!0},autofocusFirst:{type:Boolean,default:!0},triggerWidth:{type:Boolean}},ue={...re,name:{type:String,required:!0}},de={autofocus:Boolean},se={autocomplete:{type:String,default:"off"}},ce={...ue,...de,...se,...oe,...U,...J,...j,...F,...Y,...G,...Q,...ee,...te,...le,...ae,...X,minlength:[String,Number],maxlength:[String,Number],placeholder:String,required:Boolean},ve={...ue,...oe,...j,...F,...Y,...U,...J,...Q,...X,...G,value:[String,Number,Boolean],modelValue:[Object,Number,Boolean,String]},pe={...j,...F,...Z,...Y,...U,...J,...Q,...X,...G,modelValue:[String,Array,Boolean,Number,Symbol],name:{type:String,required:!0},vertical:Boolean},me={...U,...X,...q,...K,...M,type:{type:String,default:c.button,validator:e=>Object.values(c).includes(e)}},fe={...Q,value:[String,Number]},be=t.defineComponent({name:"VvBadge",props:fe,setup(e){const l=e,{modifiers:o}=t.toRefs(l),a=A("vv-badge",o);return(e,l)=>(t.openBlock(),t.createElementBlock("span",{class:t.normalizeClass(t.unref(a)),role:"status"},[t.renderSlot(e.$slots,"default",{},(()=>[t.createTextVNode(t.toDisplayString(e.value),1)]))],2))}}),ge={...Q,routes:Array},ye={class:"vv-breadcrumb__list"},he=["content"],ke=t.defineComponent({name:"VvBreadcrumb",props:ge,setup(e){const l=e,{modifiers:o}=t.toRefs(l),a=A("vv-breadcrumb",o);return(e,l)=>(t.openBlock(),t.createElementBlock("nav",{class:t.normalizeClass(t.unref(a)),"aria-label":"breadcrumbs"},[t.createElementVNode("ol",ye,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.routes,((l,o)=>{var a,n,r,i;return t.openBlock(),t.createElementBlock("li",{key:`${l.label}-${o}`,class:t.normalizeClass({"vv-breadcrumb__item":o<Number(null==(a=e.routes)?void 0:a.length)-1,"vv-breadcrumb__item-active":o===Number(null==(n=e.routes)?void 0:n.length)-1}),itemprop:"itemListElement",itemtype:"https://schema.org/ListItem",itemscope:""},[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(l.to?"router-link":l.href?"a":"span"),t.mergeProps(l,{class:{"vv-breadcrumb__link":o<Number(null==(r=e.routes)?void 0:r.length)-1},"aria-current":o===Number(null==(i=e.routes)?void 0:i.length)-1?"page":void 0,itemprop:"item"}),{default:t.withCtx((()=>[t.renderSlot(e.$slots,"label",t.normalizeProps(t.guardReactiveProps({route:l,index:o})),(()=>[t.createTextVNode(t.toDisplayString(l.label),1)]))])),_:2},1040,["class","aria-current"])),t.createElementVNode("meta",{itemprop:"position",content:`${o+1}`},null,8,he)],2)})),128))])],2))}}),Se={color:String,width:{type:[String,Number]},height:{type:[String,Number]},name:{type:String,required:!0},provider:{type:String},prefix:{type:String,default:"normal"},src:String,horizontalFlip:Boolean,verticalFlip:Boolean,flip:String,mode:String,inline:Boolean,rotate:[Number,String],onLoad:Function,svg:String,modifiers:{type:[String,Array]}};function Ve(){return t.inject(g)}const Be=t.defineComponent({name:"VvIcon",props:Se,setup(e){const l=e,o=t.computed((()=>"string"==typeof l.rotate?parseFloat(l.rotate):l.rotate)),n=t.ref(!0),r=Ve(),{modifiers:i}=t.toRefs(l),u=A("vv-icon",i),d=t.computed((()=>l.provider||(null==r?void 0:r.iconsProvider))),s=t.computed((()=>{const e=l.name??"",t=`@${d.value}:${l.prefix}:${e}`;if(a.iconExists(t))return t;const o=null==r?void 0:r.iconsCollections.find((t=>{const l=`@${d.value}:${t.prefix}:${e}`;return a.iconExists(l)}));return o?`@${d.value}:${o.prefix}:${e}`:e}));function c(e){const t=function(e){let t;if("undefined"==typeof window){const{JSDOM:e}=require("jsdom");t=(new e).window}return(t?new t.DOMParser:new window.DOMParser).parseFromString(e,"text/html").querySelector("svg")}(e),o=(null==t?void 0:t.innerHTML.trim())||"";t&&o&&a.addIcon(`@${d.value}:${l.prefix}:${l.name}`,{body:o,height:t.viewBox.baseVal.height,width:t.viewBox.baseVal.width})}return r&&l.src&&!a.iconExists(`@${d.value}:${l.prefix}:${l.name}`)&&(n.value=!1,r.fetchIcon(l.src).then((e=>{e&&(c(e),n.value=!0)})).catch((e=>{throw new Error(`Error during fetch icon: ${null==e?void 0:e.message}`)}))),l.svg&&c(l.svg),(e,l)=>t.unref(n)?(t.openBlock(),t.createBlock(t.unref(a.Icon),t.mergeProps({key:0,class:t.unref(u)},{inline:e.inline,width:e.width,height:e.height,horizontalFlip:e.horizontalFlip,verticalFlip:e.verticalFlip,flip:e.flip,rotate:t.unref(o),color:e.color,onLoad:e.onLoad,icon:t.unref(s)}),null,16,["class"])):t.createCommentVNode("",!0)}}),we=me;const xe=t.defineComponent({name:"VvAction",props:we,emits:["click","mouseover","mouseleave"],setup(e,{expose:l,emit:o}){const a=e,n=Ve(),r=t.ref(null);l({$el:r});const{reference:i,bus:u,aria:d,expanded:s}=t.inject(V,{});t.watch((()=>r.value),(e=>{i&&(i.value=e)}));const c=t.computed((()=>a.pressed||(null==s?void 0:s.value))),{role:p}=t.inject(w,{}),m=t.computed((()=>{switch(!0){case a.disabled:return v.button;case void 0!==a.to:return(null==n?void 0:n.nuxt)?v.nuxtLink:v.routerLink;case void 0!==a.href:return v.a;default:return v.button}})),f=t.computed((()=>{const e={...null==d?void 0:d.value,"aria-pressed":!!c.value||void 0,role:p};switch(m.value){case v.a:return{...e,href:a.href,target:a.target,rel:a.rel};case v.routerLink:case v.nuxtLink:return{...e,to:a.to,target:a.target};default:return{...e,type:a.type,disabled:a.disabled}}})),b=e=>{a.disabled?e.preventDefault():(null==u||u.emit("click",e),o("click",e))},g=e=>{null==u||u.emit("mouseover",e),o("mouseover",e)},y=e=>{null==u||u.emit("mouseleave",e),o("mouseleave",e)};return(e,l)=>(t.openBlock(),t.createBlock(t.resolveDynamicComponent(t.unref(m)),t.mergeProps(t.unref(f),{ref_key:"element",ref:r,class:{active:e.active,pressed:t.unref(c),disabled:e.disabled},onClickPassive:b,onMouseoverPassive:g,onMouseleavePassive:y}),{default:t.withCtx((()=>[t.renderSlot(e.$slots,"default",{},(()=>[t.createTextVNode(t.toDisplayString(e.label),1)]))])),_:3},16,["class"]))}}),Ce={...me,...re,...Q,...ne,...G,icon:[String,Object],iconPosition:{type:String,default:u.left,validator:e=>Object.values(u).includes(e)},loadingIcon:{type:String,default:"eos-icons:bubble-loading"},toggle:{type:Boolean,default:!1},value:{type:[String,Number,Boolean],default:void 0},uncheckedValue:{type:[String,Number,Boolean],default:void 0},modelValue:{type:[String,Number,Boolean],default:void 0}};const Pe=e=>t.computed((()=>String((null==e?void 0:e.value)||l.nanoid()))),_e={key:1,class:"vv-button__label"},$e={key:1,class:"vv-button__label"},Ee=t.defineComponent({name:"VvButton",props:Ce,emits:["update:modelValue"],setup(e,{expose:l,emit:o}){const a=e,n=t.useAttrs(),r=t.useSlots(),{id:i,modifiers:d,iconPosition:s,icon:c,label:v,modelValue:p,disabled:m,toggle:f,unselectable:b}=function(e,l){const{group:o,isInGroup:a,getGroupOrLocalRef:n}=N(y),{id:r,iconPosition:i,icon:u,label:d,pressed:s}=t.toRefs(e),c=n("modelValue",e,l),v=n("toggle",e),p=n("unselectable",e),m=t.computed((()=>(null==o?void 0:o.value.multiple.value)??!1)),f=t.computed((()=>{let t=e.modifiers,l=null==o?void 0:o.value.modifiers.value;const a=new Set;return t&&(Array.isArray(t)||(t=t.split(" ")),t.forEach((e=>a.add(e)))),l&&(Array.isArray(l)||(l=l.split(" ")),l.forEach((e=>a.add(e)))),Array.from(a)})),b=t.computed((()=>{var t;return Boolean(e.disabled||(null==(t=null==o?void 0:o.value)?void 0:t.disabled.value))}));return{group:o,isInGroup:a,modelValue:c,toggle:v,unselectable:p,multiple:m,modifiers:f,disabled:b,id:r,pressed:s,iconPosition:i,icon:u,label:d}}(a,o),g=Pe(i),h=t.computed((()=>(null==n?void 0:n.name)||g.value)),k=t.ref(null);l({$el:t.computed((()=>{var e;return null==(e=k.value)?void 0:e.$el}))});const S=t.computed((()=>f.value?Array.isArray(p.value)?_(h.value,p.value):x(h.value,p.value):a.pressed)),V=A("vv-button",d,t.computed((()=>({reverse:[u.right,u.bottom].includes(s.value),column:[u.top,u.bottom].includes(s.value),"icon-only":Boolean((null==c?void 0:c.value)&&!(null==v?void 0:v.value)&&!r.default)})))),B=t.computed((()=>"string"==typeof(null==c?void 0:c.value)?{name:null==c?void 0:c.value}:null==c?void 0:c.value)),w=t.computed((()=>void 0!==a.value?a.value:h.value)),C=()=>{if(f.value){if(Array.isArray(p.value))return _(w.value,p.value)?void(b.value&&(p.value=p.value.filter((e=>e!==w.value)))):void p.value.push(w.value);if(w.value===p.value&&b.value)return void(p.value=a.uncheckedValue);p.value=w.value}};return(e,l)=>(t.openBlock(),t.createBlock(xe,t.mergeProps({disabled:t.unref(m),pressed:t.unref(S),active:e.active,type:e.type,to:e.to,href:e.href,target:e.target,rel:e.rel},{id:t.unref(g),ref_key:"element",ref:k,class:t.unref(V),onClick:C}),{default:t.withCtx((()=>[t.renderSlot(e.$slots,"default",{},(()=>[e.loading?t.renderSlot(e.$slots,"loading",{key:0},(()=>[e.loadingIcon?(t.openBlock(),t.createBlock(Be,{key:0,class:"vv-button__loading-icon",name:e.loadingIcon},null,8,["name"])):t.createCommentVNode("",!0),e.loadingLabel?(t.openBlock(),t.createElementBlock("span",_e,t.toDisplayString(e.loadingLabel),1)):t.createCommentVNode("",!0)])):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.renderSlot(e.$slots,"before"),t.unref(c)?(t.openBlock(),t.createBlock(Be,t.mergeProps({key:0,class:"vv-button__icon"},t.unref(B)),null,16)):t.createCommentVNode("",!0),t.unref(v)?(t.openBlock(),t.createElementBlock("span",$e,[t.renderSlot(e.$slots,"label",{},(()=>[t.createTextVNode(t.toDisplayString(t.unref(v)),1)]))])):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"after")],64))]))])),_:3},16,["id","class"]))}}),Ne={...Q,...U,...ne,itemModifiers:{type:[String,Array],default:""},toggle:{type:Boolean,default:!1},multiple:{type:Boolean,default:!1},modelValue:{type:[String,Number,Boolean,Array],default:void 0}},Le=t.defineComponent({name:"VvButtonGroup",props:Ne,emits:["update:modelValue"],setup(e,{emit:l}){const o=e,{disabled:a,toggle:n,modifiers:r,multiple:i,unselectable:u,itemModifiers:d}=t.toRefs(o);t.watchEffect((()=>{"string"==typeof o.modelValue&&i.value&&console.warn("[VvButtonGroup]: modelValue is a string but multiple is true.")}));const s=t.computed({get:()=>i.value?o.modelValue:Array.isArray(o.modelValue)?o.modelValue[0]:o.modelValue,set:e=>void 0===e||!Array.isArray(o.modelValue)&&!i.value||Array.isArray(e)?l("update:modelValue",e):l("update:modelValue",[e])});I({key:y,modelValue:s,disabled:a,toggle:n,multiple:i,unselectable:u,modifiers:d});const c=A("vv-button-group",r);return(e,l)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(t.unref(c)),role:"group"},[t.renderSlot(e.$slots,"default")],2))}}),Ae={title:String,modifiers:[String,Array]},Re={key:0,class:"vv-card__header"},Oe={key:1,class:"vv-card__content"},De={key:2,class:"vv-card__footer"},ze=t.defineComponent({name:"VvCard",props:Ae,setup(e){const l=e,{modifiers:o}=t.toRefs(l),a=A("vv-card",o);return(e,l)=>(t.openBlock(),t.createElementBlock("article",{class:t.normalizeClass(t.unref(a))},[e.$slots.header||e.title?(t.openBlock(),t.createElementBlock("header",Re,[t.renderSlot(e.$slots,"header",{},(()=>[t.createTextVNode(t.toDisplayString(e.title),1)]))])):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"default"),e.$slots.content?(t.openBlock(),t.createElementBlock("div",Oe,[t.renderSlot(e.$slots,"content")])):t.createCommentVNode("",!0),e.$slots.footer?(t.openBlock(),t.createElementBlock("footer",De,[t.renderSlot(e.$slots,"footer")])):t.createCommentVNode("",!0)],2))}}),Te={...ve,...Q,indeterminate:Boolean,uncheckedValue:[String,Number,Boolean],switch:Boolean};function Ie(e){return Array.isArray(e)?e.filter((e=>{return"string"==typeof(t=e)||t instanceof String;var t})).join(" "):e}function He(e,l){const o=t.computed((()=>Ie(e.invalidLabel))),a=t.computed((()=>Ie(e.validLabel))),n=t.computed((()=>e.loadingLabel)),r=t.computed((()=>e.hintLabel)),i=t.computed((()=>Boolean(e.loading&&(l.loading||n.value)))),u=t.computed((()=>!i.value&&Boolean(e.invalid&&(l.invalid||o.value)))),d=t.computed((()=>!i.value&&!u.value&&Boolean(e.valid&&(l.valid||a.value)))),s=t.computed((()=>!i.value&&!u.value&&!d.value&&Boolean(l.hint||r.value))),c=t.computed((()=>u.value||d.value||i.value||s.value)),v=t.computed((()=>({modelValue:e.modelValue,valid:e.valid,invalid:e.invalid,loading:e.loading}))),p=t.defineComponent({name:"HintSlot",props:{tag:{type:String,default:"small"}},setup:()=>({isVisible:c,invalidLabel:o,validLabel:a,loadingLabel:n,hintLabel:r,hasInvalidLabelOrSlot:u,hasValidLabelOrSlot:d,hasLoadingLabelOrSlot:i,hasHintLabelOrSlot:s}),render(){var e,l,o,a,n,r,i,u;if(this.isVisible){let d;return this.hasInvalidLabelOrSlot&&(d="alert"),this.hasValidLabelOrSlot&&(d="status"),this.hasLoadingLabelOrSlot?t.h(this.tag,{role:d},(null==(l=(e=this.$slots).loading)?void 0:l.call(e))??this.loadingLabel):this.hasInvalidLabelOrSlot?t.h(this.tag,{role:d},(null==(a=(o=this.$slots).invalid)?void 0:a.call(o))??this.$slots.invalid??this.invalidLabel):this.hasValidLabelOrSlot?t.h(this.tag,{role:d},(null==(r=(n=this.$slots).valid)?void 0:r.call(n))??this.validLabel):t.h(this.tag,{role:d},(null==(u=(i=this.$slots).hint)?void 0:u.call(i))??this.$slots.hint??this.hintLabel)}return null}});return{hasInvalidLabelOrSlot:u,hasHintLabelOrSlot:s,hasValidLabelOrSlot:d,hasLoadingLabelOrSlot:i,hintSlotScope:v,HintSlot:p}}const Me=["for"],je=["id","name","disabled","value","tabindex","aria-invalid","aria-describedby","aria-errormessage"],Fe=t.defineComponent({name:"VvCheckbox",props:Te,emits:["click","update:modelValue","change","blur"],setup(e,{emit:l}){const o=e,a=t.useSlots(),{id:n,disabled:r,readonly:i,valid:u,invalid:d,propsSwitch:s,modelValue:c,indeterminate:v,isInGroup:p}=function(e,l){const{group:o,isInGroup:a,getGroupOrLocalRef:n}=N(k),{id:r,switch:i,indeterminate:u}=t.toRefs(e),d=n("modelValue",e,l),s=n("valid",e),c=n("invalid",e),v=t.computed((()=>{var t;return Boolean(e.readonly||(null==(t=null==o?void 0:o.value)?void 0:t.readonly.value))})),p=t.computed((()=>{var t;return Boolean(e.disabled||(null==(t=null==o?void 0:o.value)?void 0:t.disabled.value))}));return{id:r,propsSwitch:i,indeterminate:u,group:o,isInGroup:a,modelValue:d,valid:s,invalid:c,readonly:v,disabled:p}}(o,l),m=Pe(n),f=t.computed((()=>`${m.value}-hint`)),b=t.computed((()=>h.value?-1:o.tabindex)),g=t.ref(),y=t.computed((()=>void 0!==o.uncheckedValue&&!p.value)),h=t.computed((()=>r.value||i.value)),S=t.computed((()=>!0===d.value||!0!==u.value&&void 0)),V=t.computed((()=>y.value?c.value===o.value:Array.isArray(c.value)?_(o.value,c.value):x(o.value,c.value))),B=t.computed((()=>!!v.value||!(V.value||!y.value||o.uncheckedValue===c.value))),w=t.computed((()=>{if(!y.value)return!["string","number","boolean"].includes(typeof o.value)||o.value})),C=t.computed({get:()=>V.value,set(e){if(y.value)c.value=e?o.value:o.uncheckedValue;else if(Array.isArray(c.value)||p.value){const t=new Set(Array.isArray(c.value)?c.value:void 0!==c.value?[c.value]:[]);e?t.add(o.value):t.delete(o.value),c.value=[...t]}else c.value=e?o.value:void 0;l("change",e)}}),{modifiers:P}=t.toRefs(o),$=A("vv-checkbox",P,t.computed((()=>({switch:s.value,valid:u.value,invalid:d.value,disabled:r.value,readonly:i.value,indeterminate:v.value}))));t.watchEffect((()=>{y.value&&Array.isArray(c.value)&&console.warn("[VvCheckbox] The model value is an array but the component is in binary mode.")})),t.watch((()=>B.value),(e=>{g.value.indeterminate=!!e})),t.onMounted((()=>{B.value&&(g.value.indeterminate=!0)}));const{HintSlot:E,hasHintLabelOrSlot:L,hasInvalidLabelOrSlot:R,hintSlotScope:O}=He(o,a);return(e,l)=>(t.openBlock(),t.createElementBlock("label",{class:t.normalizeClass(t.unref($)),for:t.unref(m)},[t.withDirectives(t.createElementVNode("input",{id:t.unref(m),ref_key:"input",ref:g,"onUpdate:modelValue":l[0]||(l[0]=e=>t.isRef(C)?C.value=e:null),type:"checkbox",class:"vv-checkbox__input",name:e.name,disabled:t.unref(h),value:t.unref(w),tabindex:t.unref(b),"aria-invalid":t.unref(S),"aria-describedby":t.unref(L)?t.unref(f):void 0,"aria-errormessage":t.unref(R)?t.unref(f):void 0},null,8,je),[[t.vModelCheckbox,t.unref(C)]]),t.renderSlot(e.$slots,"default",{value:t.unref(c)},(()=>[t.createTextVNode(t.toDisplayString(e.label),1)])),t.createVNode(t.unref(E),{id:t.unref(f),class:"vv-checkbox__hint"},t.createSlots({_:2},[e.$slots.hint?{name:"hint",fn:t.withCtx((()=>[t.renderSlot(e.$slots,"hint",t.normalizeProps(t.guardReactiveProps(t.unref(O))))])),key:"0"}:void 0,e.$slots.loading?{name:"loading",fn:t.withCtx((()=>[t.renderSlot(e.$slots,"loading",t.normalizeProps(t.guardReactiveProps(t.unref(O))))])),key:"1"}:void 0,e.$slots.valid?{name:"valid",fn:t.withCtx((()=>[t.renderSlot(e.$slots,"valid",t.normalizeProps(t.guardReactiveProps(t.unref(O))))])),key:"2"}:void 0,e.$slots.invalid?{name:"invalid",fn:t.withCtx((()=>[t.renderSlot(e.$slots,"invalid",t.normalizeProps(t.guardReactiveProps(t.unref(O))))])),key:"3"}:void 0]),1032,["id"])],10,Me))}}),Ge=pe;function Ue(e){const{options:l,labelKey:o,valueKey:a,disabledKey:n}=t.toRefs(e);return{options:l,getOptionLabel:e=>"object"!=typeof e&&null!==e?e:String("function"==typeof o.value?o.value(e):e[o.value]),getOptionValue:e=>"object"!=typeof e&&null!==e?e:"function"==typeof a.value?a.value(e):e[a.value],getOptionDisabled:e=>("object"==typeof e||null===e)&&("function"==typeof n.value?n.value(e):e[n.value]),getOptionGrouped:e=>"object"!=typeof e&&null!==e?[]:e.options||[]}}const We=["textContent"],Ke={class:"vv-checkbox-group__wrapper"},qe=t.defineComponent({name:"VvCheckboxGroup",props:Ge,emits:["update:modelValue","change"],setup(e,{emit:l}){const a=e,n=t.useSlots(),r=o.useVModel(a,"modelValue",l),{disabled:i,readonly:u,vertical:d,valid:s,invalid:c,modifiers:v}=t.toRefs(a);I({key:k,modelValue:r,disabled:i,readonly:u,valid:s,invalid:c});const{getOptionLabel:p,getOptionValue:m}=Ue(a),f=A("vv-checkbox-group",v,t.computed((()=>({disabled:i.value,readonly:u.value,horizontal:!d.value,valid:s.value,invalid:c.value})))),{HintSlot:b,hintSlotScope:g}=He(a,n);return(e,l)=>(t.openBlock(),t.createElementBlock("fieldset",{class:t.normalizeClass(t.unref(f))},[e.label?(t.openBlock(),t.createElementBlock("legend",{key:0,textContent:t.toDisplayString(e.label)},null,8,We)):t.createCommentVNode("",!0),t.createElementVNode("div",Ke,[e.options.length>0?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(e.options,((e,l)=>(t.openBlock(),t.createBlock(Fe,t.mergeProps({key:l},((e,t)=>({id:`${a.name}_opt${t}`,name:a.name,label:p(e),value:m(e)}))(e,l)),null,16)))),128)):t.renderSlot(e.$slots,"default",{key:1})]),t.createVNode(t.unref(b),{class:"vv-checkbox-group__hint"},t.createSlots({_:2},[e.$slots.hint?{name:"hint",fn:t.withCtx((()=>[t.renderSlot(e.$slots,"hint",t.normalizeProps(t.guardReactiveProps(t.unref(g))))])),key:"0"}:void 0,e.$slots.loading?{name:"loading",fn:t.withCtx((()=>[t.renderSlot(e.$slots,"loading",t.normalizeProps(t.guardReactiveProps(t.unref(g))))])),key:"1"}:void 0,e.$slots.valid?{name:"valid",fn:t.withCtx((()=>[t.renderSlot(e.$slots,"valid",t.normalizeProps(t.guardReactiveProps(t.unref(g))))])),key:"2"}:void 0,e.$slots.invalid?{name:"invalid",fn:t.withCtx((()=>[t.renderSlot(e.$slots,"invalid",t.normalizeProps(t.guardReactiveProps(t.unref(g))))])),key:"3"}:void 0]),1024)],2))}}),Xe={...ue,...oe,...j,...F,...Y,...G,...U,...J,...Q,...Z,...le,...ae,...ne,...ie,...X,modelValue:{type:[String,Number,Boolean,Object,Array],default:void 0},noResultsLabel:{type:String,default:"No results"},noOptionsLabel:{type:String,default:"No options available"},selectedHintLabel:{type:String,default:"Selected"},deselectActionLabel:{type:String,default:"Deselect"},selectHintLabel:{type:String,default:"Press enter to select"},deselectHintLabel:{type:String,default:"Press enter to remove"},placeholder:String,searchable:Boolean,searchPlaceholder:{type:String,default:"Search..."},debounceSearch:{type:[Number,String],default:0},multiple:Boolean,maxValues:[Number,String],separator:{type:String,default:", "},native:Boolean,badges:Boolean,badgeModifiers:{type:[String,Array],default:"action sm"},triggerWidth:{...ie.triggerWidth,default:!0},dropdownModifiers:{type:[String,Array]},autoOpen:Boolean,autoClose:Boolean},Je={...re,...Q,...ie,modelValue:{type:Boolean,default:void 0},reference:{type:Object,default:null},role:{type:String,default:m.menu,validator:e=>Object.values(m).includes(e)}};const Qe=["id","tabindex","role","aria-labelledby"],Ye=t.defineComponent({name:"VvDropdown",inheritAttrs:!1,props:Je,emits:["update:modelValue","beforeExpand","beforeCollapse","afterExpand","afterCollapse"],setup(e,{expose:l,emit:a}){const i=e,{id:u}=t.toRefs(i),d=Pe(u),s=t.useAttrs(),c=t.ref("auto"),v=t.ref("auto"),p=t.ref(null),b=t.ref(null),g=t.ref(null),y=t.ref(null),h=t.computed({get:()=>i.reference??p.value,set:e=>{p.value=e}}),k=t.computed((()=>{const e=[];if(i.autoPlacement?"boolean"==typeof i.autoPlacement?e.push(n.autoPlacement()):e.push(n.autoPlacement(i.autoPlacement)):i.flip&&("boolean"==typeof i.flip?e.push(n.flip()):e.push(n.flip(i.flip))),i.shift&&("boolean"==typeof i.shift?e.push(n.shift()):e.push(n.shift(i.shift))),i.size){const t=({availableWidth:e,availableHeight:t})=>{c.value=`${e}px`,v.value=`${t}px`};"boolean"==typeof i.size?e.push(n.size({apply:t})):e.push(n.size({...i.size,apply:t}))}return i.offset&&(e.push(n.offset(Number(i.offset))),["string","number"].includes(typeof i.offset)?e.push(n.offset(Number(i.offset))):e.push(n.offset(i.offset))),i.arrow&&e.push(n.arrow({element:g})),e})),{x:S,y:w,strategy:x,middlewareData:C,placement:P}=n.useFloating(h,b,{whileElementsMounted:n.autoUpdate,placement:t.computed((()=>i.placement)),strategy:t.computed((()=>i.strategy)),middleware:k}),_=t.computed((()=>({position:x.value,top:`${w.value??0}px`,left:`${S.value??0}px`,maxWidth:c.value,maxHeight:v.value,width:i.triggerWidth&&h.value?`${h.value.offsetWidth}px`:void 0}))),$=t.computed((()=>P.value.split("-")[0])),E=t.computed((()=>({top:"bottom",right:"left",bottom:"top",left:"right"}[$.value]??"bottom"))),N=t.computed((()=>{var e,t,l,o;return["bottom","top"].includes(E.value)?{right:`${(null==(e=C.value.arrow)?void 0:e.x)??0}px`,[E.value]:-((null==(t=g.value)?void 0:t.offsetWidth)??0)/2+"px"}:{top:`${(null==(l=C.value.arrow)?void 0:l.y)??0}px`,[E.value]:-((null==(o=g.value)?void 0:o.offsetWidth)??0)/2+"px"}})),L=o.useVModel(i,"modelValue",a),R=t.ref(!1),O=t.computed({get:()=>L.value??R.value,set:e=>{void 0!==L.value?L.value=e:R.value=e}}),D=()=>{O.value=!0},z=()=>{O.value=!1},T=()=>{O.value=!O.value},I=e=>{h.value=e};l({toggle:T,show:D,hide:z,init:I}),t.watch(O,(e=>{e&&i.autofocusFirst&&t.nextTick((()=>{const e=X(b.value);e.length>0&&e[0].focus()}))})),o.onClickOutside(b,(()=>{i.autoClose&&(O.value=!1)}),{ignore:[h]});const H=t.computed((()=>{var e,t;return(null==(t=null==(e=h.value)?void 0:e.getAttribute)?void 0:t.call(e,"id"))??void 0})),M=t.computed((()=>({"aria-controls":d.value,"aria-haspopup":!0,"aria-expanded":O.value}))),{component:j,bus:F}=function({reference:e,id:l,expanded:o,aria:a}){const n=r(),i=t.defineComponent({name:"VvDropdownTriggerProvider",provide:()=>({[V]:{reference:e,id:l,expanded:o,aria:a,bus:n}}),setup:()=>({}),render(){var e,l;return t.h(t.Fragment,{},null==(l=(e=this.$slots).default)?void 0:l.call(e))}});return{bus:n,component:i}}({reference:h,id:d,expanded:O,aria:M});F.on("click",T);const{role:G,modifiers:U}=t.toRefs(i),{itemRole:W}=function({role:e,expanded:l}){const o=t.computed((()=>e.value===m.listbox?f.option:f.presentation));return t.provide(B,{role:o,expanded:l}),{itemRole:o}}({role:G,expanded:O}),K=A("vv-dropdown",U,t.computed((()=>({arrow:i.arrow})))),{focused:q}=o.useFocusWithin(b);function X(e){return e?[...e.querySelectorAll('a[href], button, input, textarea, select, details,[tabindex]:not([tabindex="-1"])')].filter((e=>!e.hasAttribute("disabled")&&!e.getAttribute("aria-hidden"))):[]}o.onKeyStroke("Escape",(e=>{O.value&&(e.preventDefault(),z())})),o.onKeyStroke("ArrowDown",(e=>{O.value&&q.value&&(e.preventDefault(),t.nextTick((()=>{if(q.value){const e=X(b.value);if(0===e.length||!document.activeElement)return;const t=e.indexOf(document.activeElement);t<e.length-1?e[t+1].focus():e[0].focus()}})))})),o.onKeyStroke("ArrowUp",(e=>{O.value&&q.value&&(e.preventDefault(),t.nextTick((()=>{if(q.value){const e=X(b.value);if(0===e.length||!document.activeElement)return;const t=e.indexOf(document.activeElement);t>0?e[t-1].focus():e[e.length-1].focus()}})))})),o.onKeyStroke([" ","Enter"],(e=>{if(O.value&&q.value){e.preventDefault();document.activeElement.click()}}));const J=()=>{a(O.value?"beforeExpand":"beforeCollapse")},Q=()=>{a(O.value?"afterExpand":"afterCollapse")};return(e,l)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createVNode(t.unref(j),null,{default:t.withCtx((()=>[t.renderSlot(e.$slots,"default",t.normalizeProps(t.guardReactiveProps({init:I,show:D,hide:z,toggle:T,expanded:t.unref(O),aria:t.unref(M)})))])),_:3}),t.createVNode(t.Transition,t.mergeProps({name:e.transitionName},t.toHandlers({beforeEnter:J,onAfterLeave:Q})),{default:t.withCtx((()=>[t.withDirectives(t.createElementVNode("div",{ref_key:"floatingEl",ref:b,style:t.normalizeStyle(t.unref(_)),class:t.normalizeClass(t.unref(K))},[i.arrow?(t.openBlock(),t.createElementBlock("div",{key:0,ref_key:"arrowEl",ref:g,style:t.normalizeStyle(t.unref(N)),class:"vv-dropdown__arrow"},null,4)):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"before",t.normalizeProps(t.guardReactiveProps({expanded:t.unref(O)}))),t.createElementVNode("ul",t.mergeProps(t.unref(s),{id:t.unref(d),ref_key:"listEl",ref:y,tabindex:t.unref(O)?void 0:-1,role:t.unref(G),"aria-labelledby":t.unref(H),class:"vv-dropdown__list"}),[t.renderSlot(e.$slots,"items",t.normalizeProps(t.guardReactiveProps({role:t.unref(W)})))],16,Qe),t.renderSlot(e.$slots,"after",t.normalizeProps(t.guardReactiveProps({expanded:t.unref(O)})))],6),[[t.vShow,t.unref(O)]])])),_:3},16,["name"])],64))}}),Ze=t.defineComponent({name:"VvDropdownItem",setup(e){const{role:l,expanded:a}=t.inject(B,{}),n=t.ref(null);!function({expanded:e}){t.provide(w,{role:p.menuitem,expanded:e})}({expanded:a});const r=o.useElementHover(n),{focused:i}=o.useFocus(n),{focused:u}=o.useFocusWithin(n);return t.watch(r,(e=>{e&&(i.value=!0)})),(e,o)=>(t.openBlock(),t.createElementBlock("li",t.mergeProps({role:t.unref(l)},{ref_key:"element",ref:n,class:["vv-dropdown__item",{"focus-visible":t.unref(i)||t.unref(u)}]}),[t.renderSlot(e.$slots,"default")],16))}}),et=["title"],tt=t.defineComponent({name:"VvDropdownOption",props:{...U,...W,...ne,...Q,deselectHintLabel:{type:String},selectHintLabel:{type:String},selectedHintLabel:{type:String}},setup(e){const l=e,{modifiers:o}=t.toRefs(l),a=A("vv-dropdown-option",o,t.computed((()=>({disabled:l.disabled,selected:l.selected,unselectable:l.unselectable&&l.selected})))),n=t.computed((()=>l.selected?l.unselectable?l.deselectHintLabel:l.selectedHintLabel:l.disabled?void 0:l.selectHintLabel));return(e,l)=>(t.openBlock(),t.createBlock(Ze,{class:t.normalizeClass(t.unref(a)),tabindex:e.disabled?-1:0,"aria-selected":e.selected,"aria-disabled":e.disabled},{default:t.withCtx((()=>[t.renderSlot(e.$slots,"default"),t.createElementVNode("span",{class:"vv-dropdown-option__hint",title:t.unref(n)},[t.renderSlot(e.$slots,"hint",t.normalizeProps(t.guardReactiveProps({disabled:e.disabled,selected:e.selected,unselectable:e.unselectable})),(()=>[t.createTextVNode(t.toDisplayString(t.unref(n)),1)]))],8,et)])),_:3},8,["class","tabindex","aria-selected","aria-disabled"]))}}),lt={class:"vv-dropdown-optgroup",role:"presentation",tabindex:"-1"},ot=t.defineComponent({name:"VvDropdownOptgroup",props:{...X},setup(e){const l=e;return(e,o)=>(t.openBlock(),t.createElementBlock("li",lt,t.toDisplayString(l.label),1))}}),at={...ue,...de,...se,...oe,...j,...F,...Y,...G,...U,...J,...Q,...Z,...le,...ae,...ne,...X,multiple:Boolean,required:Boolean,size:[String,Number],modelValue:{type:[String,Number,Boolean,Object,Array],default:void 0},placeholder:String};function nt(e,l){const{focused:a}=o.useFocus(e);return t.watch(a,(o=>{l(o?"focus":"blur",t.unref(e))})),{focused:a}}function rt(e,l){const o=t.computed((()=>Boolean((null==e?void 0:e.value)&&l.value===s.before))),a=t.computed((()=>Boolean((null==e?void 0:e.value)&&l.value===s.after))),n=t.computed((()=>Boolean((null==e?void 0:e.value)&&l.value===u.left))),r=t.computed((()=>Boolean((null==e?void 0:e.value)&&l.value===u.right))),i=t.computed((()=>Boolean((null==e?void 0:e.value)&&l.value===u.top))),d=t.computed((()=>Boolean((null==e?void 0:e.value)&&l.value===u.bottom)));return{hasIcon:t.computed((()=>"string"==typeof(null==e?void 0:e.value)?{name:null==e?void 0:e.value}:null==e?void 0:e.value)),hasIconLeft:n,hasIconRight:r,hasIconTop:i,hasIconBottom:d,hasIconBefore:o,hasIconAfter:a}}const it=["for"],ut={class:"vv-select__wrapper"},dt={key:0,class:"vv-select__input-before"},st={class:"vv-select__inner"},ct=["id"],vt=["disabled","hidden"],pt=["disabled","value"],mt=["disabled","label"],ft=["disabled","value"],bt={key:1,class:"vv-select__input-after"},gt=t.defineComponent({name:"VvSelect",props:at,emits:["update:modelValue","focus","blur"],setup(e,{emit:l}){const a=e,n=t.useSlots(),r=t.ref(),{HintSlot:i,hasHintLabelOrSlot:u,hasInvalidLabelOrSlot:d,hintSlotScope:s}=He(a,n),{id:c,modifiers:v,disabled:p,readonly:m,loading:f,icon:b,iconPosition:g,invalid:y,valid:h,floating:k,multiple:S}=t.toRefs(a),V=Pe(c),B=t.computed((()=>`${V.value}-hint`)),{focused:w}=nt(r,l),x=o.useElementVisibility(r);t.watch(x,(e=>{e&&a.autofocus&&(w.value=!0)}));const{hasIcon:C,hasIconBefore:P,hasIconAfter:_}=rt(b,g),E=t.computed((()=>!$(a.modelValue))),N=t.computed((()=>a.disabled||a.readonly)),L=t.computed((()=>N.value?-1:a.tabindex)),R=t.computed((()=>!0===a.invalid||!0!==a.valid&&void 0)),O=A("vv-select",v,t.computed((()=>({valid:h.value,invalid:y.value,loading:f.value,disabled:p.value,readonly:m.value,"icon-before":P.value,"icon-after":_.value,dirty:E.value,focus:w.value,floating:k.value,multiple:S.value})))),D=t.computed((()=>({name:a.name,tabindex:L.value,disabled:N.value,required:a.required,size:a.size,autocomplete:a.autocomplete,multiple:a.multiple,"aria-invalid":R.value,"aria-describedby":u.value?B.value:void 0,"aria-errormessage":d.value?B.value:void 0}))),z=t.computed((()=>({valid:a.valid,invalid:a.invalid,modelValue:a.modelValue}))),{getOptionLabel:T,getOptionValue:I,getOptionDisabled:H,getOptionGrouped:M}=Ue(a),j=t.computed({get:()=>a.modelValue,set:e=>{Array.isArray(e)&&(e=e.filter((e=>void 0!==e))),l("update:modelValue",e)}}),F=e=>"string"!=typeof e&&(e&&e.options&&e.options.length>0);return(e,l)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(t.unref(O))},[e.label?(t.openBlock(),t.createElementBlock("label",{key:0,for:t.unref(V)},t.toDisplayString(e.label),9,it)):t.createCommentVNode("",!0),t.createElementVNode("div",ut,[e.$slots.before?(t.openBlock(),t.createElementBlock("div",dt,[t.renderSlot(e.$slots,"before",t.normalizeProps(t.guardReactiveProps(t.unref(z))))])):t.createCommentVNode("",!0),t.createElementVNode("div",st,[t.unref(P)?(t.openBlock(),t.createBlock(Be,t.mergeProps({key:0,class:"vv-select__icon"},t.unref(C)),null,16)):t.createCommentVNode("",!0),t.withDirectives(t.createElementVNode("select",t.mergeProps({id:t.unref(V),ref_key:"select",ref:r,"onUpdate:modelValue":l[0]||(l[0]=e=>t.isRef(j)?j.value=e:null)},t.unref(D)),[e.placeholder?(t.openBlock(),t.createElementBlock("option",{key:0,value:void 0,disabled:!e.unselectable,hidden:!e.unselectable},t.toDisplayString(e.placeholder),9,vt)):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.options,((e,l)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[F(e)?(t.openBlock(),t.createElementBlock("optgroup",{key:`group-${l}`,disabled:t.unref(H)(e),label:t.unref(T)(e)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(M)(e),((e,o)=>(t.openBlock(),t.createElementBlock("option",{key:`group-${l}-item-${o}`,disabled:t.unref(H)(e),value:t.unref(I)(e)},t.toDisplayString(t.unref(T)(e)),9,ft)))),128))],8,mt)):(t.openBlock(),t.createElementBlock("option",{key:l,disabled:t.unref(H)(e),value:t.unref(I)(e)},t.toDisplayString(t.unref(T)(e)),9,pt))],64)))),256))],16,ct),[[t.vModelSelect,t.unref(j)]]),t.unref(_)?(t.openBlock(),t.createBlock(Be,t.mergeProps({key:1,class:"vv-select__icon vv-select__icon-after"},t.unref(C)),null,16)):t.createCommentVNode("",!0)]),e.$slots.after?(t.openBlock(),t.createElementBlock("div",bt,[t.renderSlot(e.$slots,"after",t.normalizeProps(t.guardReactiveProps(t.unref(z))))])):t.createCommentVNode("",!0)]),t.createVNode(t.unref(i),{id:t.unref(B),class:"vv-select__hint"},t.createSlots({_:2},[e.$slots.hint?{name:"hint",fn:t.withCtx((()=>[t.renderSlot(e.$slots,"hint",t.normalizeProps(t.guardReactiveProps(t.unref(s))))])),key:"0"}:void 0,e.$slots.loading?{name:"loading",fn:t.withCtx((()=>[t.renderSlot(e.$slots,"loading",t.normalizeProps(t.guardReactiveProps(t.unref(s))))])),key:"1"}:void 0,e.$slots.valid?{name:"valid",fn:t.withCtx((()=>[t.renderSlot(e.$slots,"valid",t.normalizeProps(t.guardReactiveProps(t.unref(s))))])),key:"2"}:void 0,e.$slots.invalid?{name:"invalid",fn:t.withCtx((()=>[t.renderSlot(e.$slots,"invalid",t.normalizeProps(t.guardReactiveProps(t.unref(s))))])),key:"3"}:void 0]),1032,["id"])],2))}});const yt=["id"],ht=["id","for"],kt=["id","aria-controls","placeholder"],St={key:0,class:"vv-select__input-before"},Vt={class:"vv-select__inner"},Bt=["aria-expanded","aria-labelledby","aria-describedby","aria-errormessage","tabindex"],wt=["aria-label","onClick"],xt={key:1,class:"vv-select__input-after"},Ct={name:"VvCombobox",components:{VvDropdown:Ye,VvDropdownOption:tt,VvDropdownOptgroup:ot}},Pt=t.defineComponent({...Ct,props:Xe,emits:["update:modelValue","change:search","focus","blur"],setup(e,{emit:l}){const a=e,n=t.useSlots(),r=function(e,l,o){const a=Ve(),n=t.computed((()=>{var t;if(a&&(null==(t=a.defaults.value)?void 0:t[e]))return a.defaults.value[e]}));return t.computed((()=>{if(void 0===n.value)return o;const e=n.value,t=l,a=o;return Object.keys(t).reduce(((l,o)=>{const n=a[o];if(l[o]=n,o in e){if(Array.isArray(t[o])){const a=t[o];a.length&&a[0]===n&&(l[o]=e[o])}if("function"==typeof t[o]&&(0,t[o])()===n&&(l[o]=e[o]),"object"==typeof t[o]){let a=t[o].default;"function"==typeof a&&(a=a()),"object"==typeof a?JSON.stringify(a)===JSON.stringify(n)&&(l[o]=e[o]):a===n&&(l[o]=e[o])}}return l}),{})}))}("VvCombobox",Xe,a),i=e=>"string"!=typeof e&&(e.options&&e.options.length>0),{HintSlot:u,hasHintLabelOrSlot:d,hasInvalidLabelOrSlot:s,hintSlotScope:c}=He(a,n),v=t.ref(null),p=t.ref(null),f=t.ref(null),{focused:b}=nt(v,l),{focused:g}=o.useFocusWithin(f);t.watch(b,(e=>{a.autoOpen&&(!e||k.value?e||!k.value||g.value||B():V())})),t.watch(g,(e=>{b.value||e||!k.value||B()}));const y=t.ref(""),h=o.refDebounced(y,Number(a.debounceSearch));t.watch(h,(()=>l("change:search",h.value)));const k=t.ref(!1),S=()=>{a.disabled||a.readonly||(k.value=!k.value)},V=()=>{a.disabled||a.readonly||k.value||(k.value=!0)},B=()=>{a.disabled||a.readonly||!k.value||(k.value=!1)},w=()=>{M.value&&p.value&&p.value.focus()},C=()=>{M.value&&(y.value="")},{id:P,icon:N,iconPosition:L,modifiers:R,disabled:O,readonly:D,loading:z,valid:T,invalid:I,floating:H,searchable:M}=t.toRefs(a),j=Pe(P),F=t.computed((()=>`${j.value}-hint`)),G=t.computed((()=>`${j.value}-dropdown`)),U=t.computed((()=>`${j.value}-search`)),W=t.computed((()=>`${j.value}-label`)),{hasIcon:K,hasIconBefore:q,hasIconAfter:X}=rt(N,L),J=t.computed((()=>!$(a.modelValue))),Q=t.computed((()=>O.value||D.value?-1:a.tabindex)),Y=A("vv-select",R,t.computed((()=>({disabled:O.value,loading:z.value,readonly:D.value,"icon-before":Boolean(q.value),"icon-after":Boolean(X.value),valid:T.value,invalid:I.value,dirty:J.value,focus:b.value,floating:H.value})))),Z=t.computed((()=>a.searchable?ae.value:a.options)),{getOptionLabel:ee,getOptionValue:te,getOptionDisabled:le,getOptionGrouped:oe}=Ue(a),ae=t.computed((()=>{var e;return null==(e=a.options)?void 0:e.filter((e=>ee(e).toLowerCase().includes(h.value.toLowerCase().trim())))}));function ne(e){return Array.isArray(a.modelValue)?_(e,a.modelValue)||_(te(e),a.modelValue):x(e,a.modelValue)||x(te(e),a.modelValue)}const re=t.computed((()=>{let e=[];Array.isArray(a.modelValue)?e=a.modelValue:a.modelValue&&(e=[a.modelValue]);return a.options.reduce(((e,t)=>i(t)?[...e,...oe(t)]:[...e,t]),[]).filter((t=>i(t)?oe(t).some((t=>e.includes(te(t)))):e.includes(te(t))))})),ie=t.computed((()=>re.value.map((e=>ee(e))).join(a.separator)));t.watch(re,(()=>{!a.multiple&&a.autoClose&&B()}));const ue=()=>{a.autoOpen?V():S()},de=e=>{var t;if(a.disabled||a.readonly)return;const o=te(e);let n=o;if(a.multiple)if(Array.isArray(a.modelValue)){const e=Number(a.maxValues);if(void 0!==a.maxValues&&e>=0&&(null==(t=a.modelValue)?void 0:t.length)>=e&&!_(o,a.modelValue))return;n=_(o,a.modelValue)?E(o,a.modelValue):[...a.modelValue,o]}else n=[o];else a.autoClose&&B(),a.unselectable&&o===a.modelValue&&(n=void 0);l("update:modelValue",n)},se=t.computed((()=>({id:j.value,name:a.name,tabindex:Q.value,valid:T.value,validLabel:r.value.validLabel,invalid:I.value,invalidLabel:r.value.invalidLabel,hintLabel:r.value.hintLabel,loading:z.value,loadingLabel:r.value.loadingLabel,disabled:O.value,readonly:D.value,modifiers:a.modifiers,options:Z.value,labelKey:a.labelKey,valueKey:a.valueKey,icon:a.icon,iconPosition:a.iconPosition,floating:a.floating,unselectable:a.unselectable,multiple:a.multiple,label:a.label,placeholder:a.placeholder,modelValue:a.modelValue}))),ce=t.computed((()=>({id:G.value,reference:f.value,placement:a.placement,strategy:a.strategy,transitionName:a.transitionName,offset:a.offset,shift:a.shift,flip:a.flip,autoPlacement:a.autoPlacement,arrow:a.arrow,autoClose:a.autoClose,autofocusFirst:!M.value&&a.autofocusFirst,triggerWidth:a.triggerWidth,modifiers:a.dropdownModifiers}))),ve=t.computed((()=>({valid:a.valid,invalid:a.invalid,modelValue:a.modelValue})));return o.onKeyStroke([" ","Enter"],(e=>{a.autoOpen||!k.value&&b.value&&(e.preventDefault(),e.stopImmediatePropagation(),S())})),(e,o)=>e.native?(t.openBlock(),t.createBlock(gt,t.mergeProps({key:1},t.unref(se),{"onUpdate:modelValue":o[2]||(o[2]=e=>l("update:modelValue",e))}),null,16)):(t.openBlock(),t.createElementBlock("div",{key:0,id:t.unref(j),class:t.normalizeClass(t.unref(Y))},[e.label?(t.openBlock(),t.createElementBlock("label",{key:0,id:t.unref(W),for:t.unref(M)?t.unref(U):void 0},t.toDisplayString(e.label),9,ht)):t.createCommentVNode("",!0),t.createElementVNode("div",{ref_key:"wrapperEl",ref:f,class:"vv-select__wrapper"},[t.createVNode(Ye,t.mergeProps({modelValue:t.unref(k),"onUpdate:modelValue":o[1]||(o[1]=e=>t.isRef(k)?k.value=e:null)},t.unref(ce),{role:t.unref(m).listbox,onAfterExpand:w,onAfterCollapse:C}),t.createSlots({default:t.withCtx((({aria:l})=>[e.$slots.before?(t.openBlock(),t.createElementBlock("div",St,[t.renderSlot(e.$slots,"before",t.normalizeProps(t.guardReactiveProps(t.unref(ve))))])):t.createCommentVNode("",!0),t.createElementVNode("div",Vt,[t.unref(q)?(t.openBlock(),t.createBlock(Be,t.mergeProps({key:0,class:"vv-select__icon"},t.unref(K)),null,16)):t.createCommentVNode("",!0),t.createElementVNode("div",t.mergeProps({ref_key:"inputEl",ref:v},l,{class:"vv-select__input",role:"combobox","aria-expanded":t.unref(k),"aria-labelledby":t.unref(W),"aria-describedby":t.unref(d)?t.unref(F):void 0,"aria-errormessage":t.unref(s)?t.unref(F):void 0,tabindex:t.unref(Q),onClickPassive:ue}),[t.renderSlot(e.$slots,"value",t.normalizeProps(t.guardReactiveProps({selectedOptions:t.unref(re),onInput:de})),(()=>[t.unref(ie)?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e.badges?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:1},t.renderList(t.unref(re),((l,o)=>(t.openBlock(),t.createBlock(be,{key:o,modifiers:e.badgeModifiers,class:"vv-select__badge"},{default:t.withCtx((()=>[t.createTextVNode(t.toDisplayString(t.unref(ee)(l))+" ",1),!e.unselectable||t.unref(D)||t.unref(O)?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("button",{key:0,"aria-label":t.unref(r).deselectActionLabel,onClick:t.withModifiers((e=>de(l)),["stop"])},[t.createVNode(Be,{name:"close"})],8,wt))])),_:2},1032,["modifiers"])))),128)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(t.unref(ie)),1)],64))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(e.placeholder),1)],64))]))],16,Bt),t.unref(X)?(t.openBlock(),t.createBlock(Be,t.mergeProps({key:1,class:"vv-select__icon vv-select__icon-after"},t.unref(K)),null,16)):t.createCommentVNode("",!0)]),e.$slots.after?(t.openBlock(),t.createElementBlock("div",xt,[t.renderSlot(e.$slots,"after",t.normalizeProps(t.guardReactiveProps(t.unref(ve))))])):t.createCommentVNode("",!0)])),items:t.withCtx((()=>[t.unref(ae).length?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(t.unref(ae),((l,o)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:o},[i(l)?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createVNode(ot,{label:t.unref(ee)(l)},null,8,["label"]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(oe)(l),((o,a)=>(t.openBlock(),t.createBlock(tt,t.mergeProps({disabled:t.unref(le)(o),selected:ne(o),unselectable:e.unselectable,deselectHintLabel:t.unref(r).deselectHintLabel,selectHintLabel:t.unref(r).selectHintLabel,selectedHintLabel:t.unref(r).selectedHintLabel},{key:a,class:"vv-dropdown-option",onClickPassive:e=>de(o)}),{default:t.withCtx((()=>[t.renderSlot(e.$slots,"option",t.normalizeProps(t.guardReactiveProps({option:l,selectedOptions:t.unref(re),selected:ne(o),disabled:t.unref(le)(o)})),(()=>[t.createTextVNode(t.toDisplayString(t.unref(ee)(o)),1)]))])),_:2},1040,["onClickPassive"])))),128))],64)):(t.openBlock(),t.createBlock(tt,t.mergeProps({key:1},{disabled:t.unref(le)(l),selected:ne(l),unselectable:e.unselectable,deselectHintLabel:t.unref(r).deselectHintLabel,selectHintLabel:t.unref(r).selectHintLabel,selectedHintLabel:t.unref(r).selectedHintLabel},{class:"vv-dropdown-option",onClickPassive:e=>de(l)}),{default:t.withCtx((()=>[t.renderSlot(e.$slots,"option",t.normalizeProps(t.guardReactiveProps({option:l,selectedOptions:t.unref(re),selected:ne(l),disabled:t.unref(le)(l)})),(()=>[t.createTextVNode(t.toDisplayString(t.unref(ee)(l)),1)]))])),_:2},1040,["onClickPassive"]))],64)))),128)):e.options.length?(t.openBlock(),t.createBlock(tt,{key:2,modifiers:"inert"},{default:t.withCtx((()=>[t.renderSlot(e.$slots,"no-results",{},(()=>[t.createTextVNode(t.toDisplayString(t.unref(r).noResultsLabel),1)]))])),_:3})):(t.openBlock(),t.createBlock(tt,{key:1,modifiers:"inert"},{default:t.withCtx((()=>[t.renderSlot(e.$slots,"no-options",{},(()=>[t.createTextVNode(t.toDisplayString(t.unref(r).noOptionsLabel),1)]))])),_:3}))])),_:2},[t.unref(M)||e.$slots["dropdown::before"]?{name:"before",fn:t.withCtx((()=>[t.renderSlot(e.$slots,"dropdown::before"),t.unref(M)?t.withDirectives((t.openBlock(),t.createElementBlock("input",{key:0,id:t.unref(U),ref_key:"inputSearchEl",ref:p,"onUpdate:modelValue":o[0]||(o[0]=e=>t.isRef(y)?y.value=e:null),"aria-autocomplete":"list","aria-controls":t.unref(G),autocomplete:"off",spellcheck:"false",type:"search",class:"vv-dropdown__search",placeholder:t.unref(r).searchPlaceholder},null,8,kt)),[[t.vShow,t.unref(k)],[t.vModelText,t.unref(y)]]):t.createCommentVNode("",!0)])),key:"0"}:void 0,e.$slots["dropdown::after"]?{name:"after",fn:t.withCtx((()=>[t.renderSlot(e.$slots,"dropdown::after")])),key:"1"}:void 0]),1040,["modelValue","role"])],512),t.createVNode(t.unref(u),{id:t.unref(F),class:"vv-select__hint"},t.createSlots({_:2},[e.$slots.hint?{name:"hint",fn:t.withCtx((()=>[t.renderSlot(e.$slots,"hint",t.normalizeProps(t.guardReactiveProps(t.unref(c))))])),key:"0"}:void 0,e.$slots.loading?{name:"loading",fn:t.withCtx((()=>[t.renderSlot(e.$slots,"loading",t.normalizeProps(t.guardReactiveProps(t.unref(c))))])),key:"1"}:void 0,e.$slots.valid?{name:"valid",fn:t.withCtx((()=>[t.renderSlot(e.$slots,"valid",t.normalizeProps(t.guardReactiveProps(t.unref(c))))])),key:"2"}:void 0,e.$slots.invalid?{name:"invalid",fn:t.withCtx((()=>[t.renderSlot(e.$slots,"invalid",t.normalizeProps(t.guardReactiveProps(t.unref(c))))])),key:"3"}:void 0]),1032,["id"])],10,yt))}}),_t={...re,title:String,modelValue:{type:Boolean,default:void 0},transition:{type:String,default:"fade-block"},size:String,autoClose:{type:Boolean,default:!0}},$t={key:0,class:"vv-dialog__header"},Et={class:"vv-dialog__content"},Nt={key:1,class:"vv-dialog__footer"},Lt=t.defineComponent({name:"VvDialog",props:_t,emits:["open","close","update:modelValue"],setup(e,{expose:l,emit:a}){const n=e,r=t.ref(!1),i=t.computed({get:()=>n.modelValue??r.value,set(e){void 0===n.modelValue&&(r.value=e),a("update:modelValue",e)}}),u=t.ref(!0),d=t.ref(null),s=t.computed((()=>{const{id:e}=n;return{id:e,open:u.value}})),c=t.computed((()=>n.size?["vv-dialog",`vv-dialog--${n.size}`]:"vv-dialog")),v=t.computed((()=>`vv-dialog--${n.transition}`)),p={"before-enter":()=>{u.value=!0,a("open")},"after-leave":()=>{u.value=!1,a("close")}};function m(){i.value=!1}return o.onClickOutside(d,(()=>{n.autoClose&&(i.value=!1)})),l({close:m,open:function(){i.value=!0}}),o.onKeyStroke("Escape",(e=>{i.value&&(e.preventDefault(),m())})),(e,l)=>(t.openBlock(),t.createBlock(t.Transition,t.mergeProps({name:t.unref(v)},t.toHandlers(p)),{default:t.withCtx((()=>[t.withDirectives(t.createElementVNode("dialog",t.mergeProps(t.unref(s),{class:t.unref(c)}),[t.createElementVNode("article",{ref_key:"modalWrapper",ref:d,class:"vv-dialog__wrapper"},[e.$slots.header||e.title?(t.openBlock(),t.createElementBlock("header",$t,[t.renderSlot(e.$slots,"header",{},(()=>[t.createTextVNode(t.toDisplayString(e.title)+" ",1),t.createElementVNode("button",{type:"button","aria-label":"Close",class:"vv-dialog__close",onClickPassive:m},[t.createVNode(Be,{name:"close"})],32)]))])):t.createCommentVNode("",!0),t.createElementVNode("div",Et,[t.renderSlot(e.$slots,"default")]),e.$slots.footer?(t.openBlock(),t.createElementBlock("footer",Nt,[t.renderSlot(e.$slots,"footer")])):t.createCommentVNode("",!0)],512)],16),[[t.vShow,t.unref(i)]])])),_:3},16,["name"]))}}),At={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"},Rt="eye-on",Ot="eye-off",Dt="calendar",zt="time",Tt="color",It="close",Ht={...ce,modelValue:[String,Number],type:{type:String,default:At.TEXT,validator:e=>Object.values(At).includes(e)},min:[Number,Date,String],max:[Number,Date,String],step:{type:[String,Number],default:1},pattern:String,multiple:Boolean,iconShowPassword:{type:String,default:Rt},iconHidePassword:{type:String,default:Ot},iconClear:{type:String,default:It},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"},mask:{type:String,default:void 0},maskEager:{type:Boolean,default:!1},maskReversed:{type:Boolean,default:!1},maskTokens:{type:Object,default:void 0},maskTokensReplace:{type:Boolean,default:!1},autoWidth:{type:Boolean,default:!1},hideActions:{type:Boolean,default:!1},unit:{type:String}},Mt=t.defineComponent({components:{VvIcon:Be},props:{disabled:{type:Boolean,default:!1},labelShow:{type:String,default:"Show password"},labelHide:{type:String,default:"Hide password"},iconShow:{type:String,default:Rt},iconHide:{type:String,default:Ot}},emits:["toggle-password"],setup(e,{emit:l}){const o=t.ref(!1),a=t.computed((()=>o.value?e.iconHide:e.iconShow));return{active:o,activeIcon:a,onClick:function(t){null==t||t.stopPropagation(),e.disabled||(o.value=!o.value,l("toggle-password",o.value))}}},render(){const e=t.h(Be,{name:this.activeIcon,class:"vv-input-text__icon"});return t.h("button",{disabled:this.disabled,class:"vv-input-text__action",ariaLabel:this.active?this.labelHide:this.labelShow,type:"button",onClick:this.onClick},e)}}),jt=t.defineComponent({components:{VvIcon:Be},props:{disabled:{type:Boolean,default:!1},label:{type:String},mode:{type:String,validator:e=>["up","down"].includes(e),default:"up"}},emits:["step-up","step-down"],setup(e,{emit:l}){const o=t.computed((()=>"up"===e.mode));return{isUp:o,onClick:t=>{null==t||t.stopPropagation(),e.disabled||l(o.value?"step-up":"step-down")}}},render(){return t.h("button",{class:["vv-input-text__action vv-input-text__action-chevron",this.isUp&&"vv-input-text__action-chevron-up"],disabled:this.disabled,ariaLabel:this.label,type:"button",onClick:this.onClick})}}),Ft=t.defineComponent({components:{VvIcon:Be},props:{disabled:{type:Boolean,default:!1},label:{type:String,default:"Clear"},icon:{type:String,default:"close"}},emits:["clear"],setup:(e,{emit:t})=>({onClick:function(l){null==l||l.stopPropagation(),e.disabled||t("clear")}}),render(){const e=t.h(Be,{name:this.icon,class:"vv-input-text__icon"});return t.h("button",{disabled:this.disabled,class:"vv-input-text__action",ariaLabel:this.label,type:"button",onClick:this.onClick},e)}});function Gt(e,l){return{name:"VvInputTextActions",components:{VvIcon:Be,VvInputPasswordAction:Mt,VvInputStepAction:jt,VvInputClearAction:Ft},setup:()=>({isDisabled:t.computed((()=>l.disabled||l.readonly)),labelStepUp:l.labelStepUp,labelStepDown:l.labelStepDown,labelShowPassword:l.labelShowPassword,labelHidePassword:l.labelHidePassword,labelClear:l.labelClear,iconShowPassword:l.iconShowPassword,iconHidePassword:l.iconHidePassword}),render(){let o=null;switch(e){case At.SEARCH:{const{onClear:e}=this.$attrs;o=[t.h(Ft,{disabled:this.isDisabled,label:this.labelShowPassword,onClear:e})];break}case At.PASSWORD:{const{onTogglePassword:e}=this.$attrs;o=[t.h(Mt,{disabled:this.isDisabled,onTogglePassword:e,labelShow:this.labelShowPassword,labelHide:this.labelHidePassword,iconShow:this.iconShowPassword,iconHide:this.iconHidePassword})];break}case At.NUMBER:{const{onStepUp:e,onStepDown:a}=this.$attrs;o=[t.h(jt,{mode:"up",disabled:this.isDisabled||void 0!==l.max&&l.modelValue===l.max,label:this.labelStepUp,onStepUp:e,onStepDown:a}),t.h(jt,{mode:"down",disabled:this.isDisabled||void 0!==l.min&&l.modelValue===l.min,label:this.labelStepDown,onStepUp:e,onStepDown:a})];break}}return Array.isArray(o)?t.h("div",{class:"vv-input-text__actions-group"},o):o}}}function Ut(e,l,o=0,{getter:a=(e=>e),setter:n=(e=>e)}={}){let r;return"string"==typeof o&&(o=parseInt(o)),t.computed({get:()=>a(null==e?void 0:e.value),set:e=>{r&&clearTimeout(r),r=setTimeout((()=>{l("update:modelValue",n(e))}),o)}})}function Wt(e,l){const o=t.computed((()=>(t.unref(e)??"").length)),a=t.computed((()=>void 0!==(null==l?void 0:l.lowerLimit)&&o.value<(null==l?void 0:l.lowerLimit)?o.value-l.lowerLimit:void 0!==(null==l?void 0:l.upperLimit)&&o.value<(null==l?void 0:l.upperLimit)?l.upperLimit-o.value:0)),n=t.computed((()=>{if(!1===(null==l?void 0:l.mode))return"";if("limit"===(null==l?void 0:l.mode)&&(null==l?void 0:l.upperLimit))return`${o.value} / ${l.lowerLimit?`${l.lowerLimit}-`:""}${l.upperLimit}`;if("countdown"===(null==l?void 0:l.mode)){if(0===a.value)return;return a}return o.value}));return{length:o,gap:a,formatted:n}}const Kt=["for"],qt={class:"vv-input-text__wrapper"},Xt={key:0,class:"vv-input-text__input-before"},Jt=["onClick"],Qt=["id"],Yt={key:1,class:"vv-input-text__unit"},Zt={key:5,class:"vv-input-text__input-after"},el={key:6,class:"vv-input-text__limit"},tl=t.defineComponent({name:"VvInputText",props:Ht,emits:["update:modelValue","focus","blur","keyup"],setup(e,{expose:l,emit:a}){const n=e,r=t.useSlots(),u=t.ref(),d=t.ref();l({$inner:d});const{id:s,icon:c,iconPosition:v,label:p,modelValue:m,count:f,valid:b,invalid:g,loading:y}=t.toRefs(n),h=Pe(s),k=t.computed((()=>`${h.value}-hint`)),S=t.computed((()=>n.floating&&$(n.placeholder)?" ":n.placeholder)),V=Ut(m,a,n.debounce,{getter:e=>oe.value?oe.value.masked(e??""):e,setter:e=>(oe.value&&(e=oe.value.unmasked(e)),n.type===At.NUMBER?Number(e):e)}),{focused:B}=nt(u,a),w=t.computed((()=>B.value&&!n.disabled&&!n.readonly)),x=o.useElementVisibility(u);t.watch(x,(e=>{e&&n.autofocus&&!n.disabled&&!n.readonly&&(B.value=!0)}));const C=t.ref(!1),P=t.computed((()=>n.type===At.PASSWORD)),_=()=>{C.value=!C.value},E=t.computed((()=>n.type===At.TIME||n.type===At.DATETIME_LOCAL||n.type===At.DATE||n.type===At.WEEK||n.type===At.MONTH)),N=t.computed((()=>n.type===At.NUMBER)),L=()=>{j.value&&(u.value.stepUp(),V.value=t.unref(u).value)},R=()=>{j.value&&(u.value.stepDown(),V.value=t.unref(u).value)},O=t.computed((()=>n.type===At.SEARCH)),D=()=>{V.value=void 0},{hasIcon:z,hasIconBefore:T,hasIconAfter:I}=rt(c,v),H=t.computed((()=>{switch(n.type){case At.COLOR:return{name:Tt};case At.DATE:case At.DATETIME_LOCAL:case At.WEEK:case At.MONTH:return{name:Dt};case At.TIME:return{name:zt};default:return""}})),{formatted:M}=Wt(V,{mode:n.count,upperLimit:Number(n.maxlength),lowerLimit:Number(n.minlength)}),j=t.computed((()=>!n.disabled&&!n.readonly)),F=t.computed((()=>j.value?n.tabindex:-1)),G=t.computed((()=>!$(m))),U=t.computed((()=>!0===g.value||!0!==b.value&&void 0)),{modifiers:W}=t.toRefs(n),K=A("vv-input-text",W,t.computed((()=>({valid:b.value,invalid:g.value,loading:y.value,disabled:n.disabled,readonly:n.readonly,"icon-before":T.value,"icon-after":I.value||!$(H),floating:n.floating&&!$(n.label),dirty:G.value,focus:w.value,"auto-width":n.autoWidth})))),q=t.computed((()=>{const e=P.value&&C.value?At.TEXT:!E.value||G.value||B.value?n.type:At.TEXT,t={type:e,name:n.name,tabindex:F.value,disabled:n.disabled,readonly:n.readonly,required:n.required,autocomplete:n.autocomplete,"aria-invalid":U.value,"aria-describedby":Q.value?k.value:void 0,"aria-errormessage":Y.value?k.value:void 0};return e!==At.DATE&&e!==At.MONTH&&e!==At.WEEK&&e!==At.TIME&&e!==At.DATETIME_LOCAL&&e!==At.NUMBER||(t.step=n.step,t.max=void 0!==n.max?String(n.max):void 0,t.min=void 0!==n.min?String(n.min):void 0),e!==At.TEXT&&e!==At.SEARCH&&e!==At.URL&&e!==At.TEL&&e!==At.EMAIL&&e!==At.PASSWORD&&e!==At.NUMBER||(t.placeholder=S.value),e!==At.TEXT&&e!==At.SEARCH&&e!==At.URL&&e!==At.TEL&&e!==At.EMAIL&&e!==At.PASSWORD||(t.minlength=n.minlength,t.maxlength=n.maxlength,t.pattern=n.pattern),e===At.EMAIL&&(t.multiple=n.multiple),t})),X=t.computed((()=>({valid:n.valid,invalid:n.invalid,modelValue:n.modelValue,togglePassword:_,stepUp:L,stepDown:R,clear:D}))),{HintSlot:J,hasHintLabelOrSlot:Q,hasInvalidLabelOrSlot:Y,hintSlotScope:Z}=He(n,r),ee=Gt(At.PASSWORD,n),te=Gt(At.NUMBER,n),le=Gt(At.SEARCH,n),oe=t.ref();t.watch([()=>n.mask,()=>n.type,()=>n.maskEager,()=>n.maskReversed,()=>n.maskTokens,()=>n.maskTokensReplace],(([e,t,l,o,a,n])=>{e&&t===At.TEXT?oe.value=new i.Mask({mask:e,eager:l,reversed:o,tokens:a,tokensReplace:n}):oe.value=void 0}),{immediate:!0});const ae=()=>{j.value&&(B.value=!0)},ne=t.computed((()=>{if(n.autoWidth)return{width:void 0!==V.value?`${String(V.value).length+1}ch`:void 0}}));return(e,l)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(t.unref(K))},[t.unref(p)?(t.openBlock(),t.createElementBlock("label",{key:0,for:t.unref(h),class:"vv-input-text__label"},t.toDisplayString(t.unref(p)),9,Kt)):t.createCommentVNode("",!0),t.createElementVNode("div",qt,[e.$slots.before?(t.openBlock(),t.createElementBlock("div",Xt,[t.renderSlot(e.$slots,"before",t.normalizeProps(t.guardReactiveProps(t.unref(X))))])):t.createCommentVNode("",!0),t.createElementVNode("div",{ref_key:"innerEl",ref:d,class:"vv-input-text__inner",onClick:t.withModifiers(ae,["stop"])},[t.unref(T)?(t.openBlock(),t.createBlock(Be,t.mergeProps({key:0,class:"vv-input-text__icon"},t.unref(z)),null,16)):t.createCommentVNode("",!0),t.withDirectives(t.createElementVNode("input",t.mergeProps({id:t.unref(h),ref_key:"inputEl",ref:u,"onUpdate:modelValue":l[0]||(l[0]=e=>t.isRef(V)?V.value=e:null)},t.unref(q),{style:t.unref(ne),onKeyup:l[1]||(l[1]=e=>a("keyup",e))}),null,16,Qt),[[t.vModelDynamic,t.unref(V)]]),(e.unit||e.$slots.unit)&&t.unref(G)?(t.openBlock(),t.createElementBlock("div",Yt,[t.renderSlot(e.$slots,"default",t.normalizeProps(t.guardReactiveProps(t.unref(X))),(()=>[t.createTextVNode(t.toDisplayString(e.unit),1)]))])):t.createCommentVNode("",!0)],8,Jt),t.unref(I)||t.unref(H)?(t.openBlock(),t.createBlock(Be,t.mergeProps({key:1,class:"vv-input-text__icon vv-input-text__icon-after"},t.unref(I)?t.unref(z):t.unref(H)),null,16)):t.unref(P)&&!e.hideActions&&t.unref(j)?(t.openBlock(),t.createBlock(t.unref(ee),{key:2,onTogglePassword:_})):t.unref(N)&&!e.hideActions&&t.unref(j)?(t.openBlock(),t.createBlock(t.unref(te),{key:3,onStepUp:L,onStepDown:R})):t.unref(O)&&!e.hideActions&&t.unref(j)?(t.openBlock(),t.createBlock(t.unref(le),{key:4,onClear:D})):t.createCommentVNode("",!0),e.$slots.after?(t.openBlock(),t.createElementBlock("div",Zt,[t.renderSlot(e.$slots,"after",t.normalizeProps(t.guardReactiveProps(t.unref(X))))])):t.createCommentVNode("",!0),t.unref(f)?(t.openBlock(),t.createElementBlock("span",el,[t.renderSlot(e.$slots,"count",t.normalizeProps(t.guardReactiveProps(t.unref(X))),(()=>[t.createTextVNode(t.toDisplayString(t.unref(M)),1)]))])):t.createCommentVNode("",!0)]),t.createVNode(t.unref(J),{id:t.unref(k),class:"vv-input-text__hint"},t.createSlots({_:2},[e.$slots.hint?{name:"hint",fn:t.withCtx((()=>[t.renderSlot(e.$slots,"hint",t.normalizeProps(t.guardReactiveProps(t.unref(Z))))])),key:"0"}:void 0,e.$slots.loading?{name:"loading",fn:t.withCtx((()=>[t.renderSlot(e.$slots,"loading",t.normalizeProps(t.guardReactiveProps(t.unref(Z))))])),key:"1"}:void 0,e.$slots.valid?{name:"valid",fn:t.withCtx((()=>[t.renderSlot(e.$slots,"valid",t.normalizeProps(t.guardReactiveProps(t.unref(Z))))])),key:"2"}:void 0,e.$slots.invalid?{name:"invalid",fn:t.withCtx((()=>[t.renderSlot(e.$slots,"invalid",t.normalizeProps(t.guardReactiveProps(t.unref(Z))))])),key:"3"}:void 0]),1032,["id"])],2))}}),ll={...Q,value:{type:[Number,String],default:void 0},max:{type:[Number,String]},label:{type:String,required:!0}},ol=t.defineComponent({name:"VvProgress",props:ll,setup(e){const l=e,{value:o,max:a,label:n}=t.toRefs(l),r=t.computed((()=>void 0===l.value)),{modifiers:i}=t.toRefs(l),u=A("vv-progress",i,t.computed((()=>({indeterminate:r.value}))));return(e,l)=>(t.openBlock(),t.createElementBlock("progress",t.mergeProps({role:"progressbar"},{class:t.unref(u),ariaLabel:t.unref(n),max:t.unref(a),value:t.unref(o)}),null,16))}}),al=ve;const nl=["for"],rl=["id","name","disabled","value","tabindex","aria-invalid","aria-describedby","aria-errormessage"],il=t.defineComponent({name:"VvRadio",props:al,emits:["click","update:modelValue","change","blur"],setup(e,{emit:l}){const o=e,a=t.useSlots(),{id:n,disabled:r,readonly:i,modelValue:u,valid:d,invalid:s}=function(e,l){const{id:o}=t.toRefs(e),{group:a,isInGroup:n,getGroupOrLocalRef:r}=N(h),i=r("modelValue",e,l),u=r("valid",e),d=r("invalid",e),s=t.computed((()=>{var t;return Boolean(e.readonly||(null==(t=null==a?void 0:a.value)?void 0:t.readonly.value))})),c=t.computed((()=>{var t;return Boolean(e.disabled||(null==(t=null==a?void 0:a.value)?void 0:t.disabled.value))}));return{id:o,group:a,isInGroup:n,modelValue:i,valid:u,invalid:d,readonly:s,disabled:c}}(o,l),c=Pe(n),v=t.computed((()=>`${c.value}-hint`)),p=t.computed((()=>f.value?-1:o.tabindex)),m=t.ref(),f=t.computed((()=>r.value||i.value)),b=t.computed((()=>!0===s.value||!0!==d.value&&void 0)),g=t.computed((()=>Array.isArray(u.value)?_(o.value,u.value):x(o.value,u.value))),y=t.computed((()=>!["string","number","boolean"].includes(typeof o.value)||o.value)),k=t.computed({get:()=>g.value?y.value:null,set(e){Array.isArray(u.value)?u.value=[o.value]:u.value=o.value,l("change",e)}}),{modifiers:S}=t.toRefs(o),V=A("vv-radio",S,t.computed((()=>({valid:d.value,invalid:s.value,disabled:r.value,readonly:i.value})))),{HintSlot:B,hasHintLabelOrSlot:w,hasInvalidLabelOrSlot:C,hintSlotScope:P}=He(o,a);return(e,l)=>(t.openBlock(),t.createElementBlock("label",{class:t.normalizeClass(t.unref(V)),for:t.unref(c)},[t.withDirectives(t.createElementVNode("input",{id:t.unref(c),ref_key:"input",ref:m,"onUpdate:modelValue":l[0]||(l[0]=e=>t.isRef(k)?k.value=e:null),type:"radio",class:"vv-radio__input",name:e.name,disabled:t.unref(f),value:t.unref(y),tabindex:t.unref(p),"aria-invalid":t.unref(b),"aria-describedby":t.unref(w)?t.unref(v):void 0,"aria-errormessage":t.unref(C)?t.unref(v):void 0},null,8,rl),[[t.vModelRadio,t.unref(k)]]),t.renderSlot(e.$slots,"default",{value:t.unref(u)},(()=>[t.createTextVNode(t.toDisplayString(e.label),1)])),t.createVNode(t.unref(B),{id:t.unref(v),class:"vv-radio__hint"},t.createSlots({_:2},[e.$slots.hint?{name:"hint",fn:t.withCtx((()=>[t.renderSlot(e.$slots,"hint",t.normalizeProps(t.guardReactiveProps(t.unref(P))))])),key:"0"}:void 0,e.$slots.loading?{name:"loading",fn:t.withCtx((()=>[t.renderSlot(e.$slots,"loading",t.normalizeProps(t.guardReactiveProps(t.unref(P))))])),key:"1"}:void 0,e.$slots.valid?{name:"valid",fn:t.withCtx((()=>[t.renderSlot(e.$slots,"valid",t.normalizeProps(t.guardReactiveProps(t.unref(P))))])),key:"2"}:void 0,e.$slots.invalid?{name:"invalid",fn:t.withCtx((()=>[t.renderSlot(e.$slots,"invalid",t.normalizeProps(t.guardReactiveProps(t.unref(P))))])),key:"3"}:void 0]),1032,["id"])],10,nl))}}),ul=pe,dl=["textContent"],sl={class:"vv-radio-group__wrapper"},cl=t.defineComponent({name:"VvRadioGroup",props:ul,emits:["update:modelValue","change"],setup(e,{emit:l}){const a=e,n=t.useSlots(),r=o.useVModel(a,"modelValue",l),{disabled:i,readonly:u,vertical:d,valid:s,invalid:c,modifiers:v}=t.toRefs(a);I({key:h,modelValue:r,disabled:i,readonly:u,valid:s,invalid:c});const{getOptionLabel:p,getOptionValue:m}=Ue(a),f=A("vv-radio-group",v,t.computed((()=>({disabled:i.value,readonly:u.value,horizontal:!d.value,valid:s.value,invalid:c.value})))),{HintSlot:b,hintSlotScope:g}=He(a,n);return(e,l)=>(t.openBlock(),t.createElementBlock("fieldset",{class:t.normalizeClass(t.unref(f))},[e.label?(t.openBlock(),t.createElementBlock("legend",{key:0,textContent:t.toDisplayString(e.label)},null,8,dl)):t.createCommentVNode("",!0),t.createElementVNode("div",sl,[e.options.length>0?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(e.options,((e,l)=>(t.openBlock(),t.createBlock(il,t.mergeProps({key:l},((e,t)=>({id:`${a.name}_opt${t}`,name:a.name,label:p(e),value:m(e)}))(e,l)),null,16)))),128)):t.renderSlot(e.$slots,"default",{key:1})]),t.createVNode(t.unref(b),{class:"vv-radio-group__hint"},t.createSlots({_:2},[e.$slots.hint?{name:"hint",fn:t.withCtx((()=>[t.renderSlot(e.$slots,"hint",t.normalizeProps(t.guardReactiveProps(t.unref(g))))])),key:"0"}:void 0,e.$slots.loading?{name:"loading",fn:t.withCtx((()=>[t.renderSlot(e.$slots,"loading",t.normalizeProps(t.guardReactiveProps(t.unref(g))))])),key:"1"}:void 0,e.$slots.valid?{name:"valid",fn:t.withCtx((()=>[t.renderSlot(e.$slots,"valid",t.normalizeProps(t.guardReactiveProps(t.unref(g))))])),key:"2"}:void 0,e.$slots.invalid?{name:"invalid",fn:t.withCtx((()=>[t.renderSlot(e.$slots,"invalid",t.normalizeProps(t.guardReactiveProps(t.unref(g))))])),key:"3"}:void 0]),1024)],2))}}),vl={...ce,modelValue:String,cols:{type:[String,Number],default:20},rows:{type:[String,Number],default:2},wrap:{type:String,default:"soft"},spellcheck:{type:[Boolean,String],default:"default"},resizable:Boolean},pl=["for"],ml={class:"vv-textarea__wrapper"},fl={key:0,class:"vv-textarea__input-before"},bl={class:"vv-textarea__inner"},gl=["id"],yl={key:1,class:"vv-textarea__input-after"},hl={key:2,class:"vv-textarea__limit"},kl=t.defineComponent({name:"VvTextarea",props:vl,emits:["update:modelValue","focus","blur","keyup"],setup(e,{emit:l}){const a=e,n=t.useSlots(),r=t.ref(),{id:i,icon:u,iconPosition:d,label:s,modelValue:c,count:v,valid:p,invalid:m,loading:f,modifiers:b}=t.toRefs(a),g=Pe(i),y=t.computed((()=>`${g.value}-hint`)),h=t.computed((()=>a.floating&&$(a.placeholder)?" ":a.placeholder)),k=Ut(c,l,a.debounce),{hasIcon:S,hasIconBefore:V,hasIconAfter:B}=rt(u,d),{focused:w}=nt(r,l),x=o.useElementVisibility(r);t.watch(x,(e=>{e&&a.autofocus&&(w.value=!0)}));const{formatted:C}=Wt(k,{mode:a.count,upperLimit:Number(a.maxlength),lowerLimit:Number(a.minlength)}),P=t.computed((()=>!a.disabled&&!a.readonly)),_=t.computed((()=>P.value?a.tabindex:-1)),E=t.computed((()=>!$(c))),N=t.computed((()=>!0===a.invalid||!0!==a.valid&&void 0)),{HintSlot:L,hasHintLabelOrSlot:R,hasInvalidLabelOrSlot:O,hintSlotScope:D}=He(a,n),z=A("vv-textarea",b,t.computed((()=>({valid:p.value,invalid:m.value,loading:f.value,disabled:a.disabled,readonly:a.readonly,"icon-before":V.value,"icon-after":B.value,floating:a.floating&&!$(a.label),dirty:E.value,focused:w.value,resizable:a.resizable})))),T=t.computed((()=>({name:a.name,placeholder:h.value,tabindex:_.value,disabled:a.disabled,readonly:a.readonly,required:a.required,autocomplete:a.autocomplete,minlength:a.minlength,maxlength:a.maxlength,cols:a.cols,rows:a.rows,wrap:a.wrap,spellcheck:a.spellcheck,"aria-invalid":N.value,"aria-describedby":R.value?y.value:void 0,"aria-errormessage":O.value?y.value:void 0}))),I=t.computed((()=>({valid:a.valid,invalid:a.invalid,modelValue:a.modelValue,hintLabel:a.hintLabel,maxlength:a.maxlength,minlength:a.minlength,clear:H}))),H=()=>{k.value=void 0};return(e,o)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(t.unref(z))},[t.unref(s)?(t.openBlock(),t.createElementBlock("label",{key:0,for:t.unref(g),class:"vv-textarea__label"},t.toDisplayString(t.unref(s)),9,pl)):t.createCommentVNode("",!0),t.createElementVNode("div",ml,[e.$slots.before?(t.openBlock(),t.createElementBlock("div",fl,[t.renderSlot(e.$slots,"before",t.normalizeProps(t.guardReactiveProps(t.unref(I))))])):t.createCommentVNode("",!0),t.createElementVNode("div",bl,[t.unref(V)?(t.openBlock(),t.createBlock(Be,t.mergeProps({key:0,class:"vv-textarea__icon"},t.unref(S)),null,16)):t.createCommentVNode("",!0),t.withDirectives(t.createElementVNode("textarea",t.mergeProps({id:t.unref(g),ref_key:"textarea",ref:r,"onUpdate:modelValue":o[0]||(o[0]=e=>t.isRef(k)?k.value=e:null)},t.unref(T),{onKeyup:o[1]||(o[1]=e=>l("keyup",e))}),null,16,gl),[[t.vModelText,t.unref(k)]]),t.unref(B)?(t.openBlock(),t.createBlock(Be,t.mergeProps({key:1,class:"vv-textarea__icon vv-textarea__icon-after"},t.unref(S)),null,16)):t.createCommentVNode("",!0)]),e.$slots.after?(t.openBlock(),t.createElementBlock("div",yl,[t.renderSlot(e.$slots,"after",t.normalizeProps(t.guardReactiveProps(t.unref(I))))])):t.createCommentVNode("",!0),t.unref(v)?(t.openBlock(),t.createElementBlock("span",hl,[t.renderSlot(e.$slots,"count",t.normalizeProps(t.guardReactiveProps(t.unref(I))),(()=>[t.createTextVNode(t.toDisplayString(t.unref(C)),1)]))])):t.createCommentVNode("",!0)]),t.createVNode(t.unref(L),{id:t.unref(y),class:"vv-textarea__hint"},t.createSlots({_:2},[e.$slots.hint?{name:"hint",fn:t.withCtx((()=>[t.renderSlot(e.$slots,"hint",t.normalizeProps(t.guardReactiveProps(t.unref(D))))])),key:"0"}:void 0,e.$slots.loading?{name:"loading",fn:t.withCtx((()=>[t.renderSlot(e.$slots,"loading",t.normalizeProps(t.guardReactiveProps(t.unref(D))))])),key:"1"}:void 0,e.$slots.valid?{name:"valid",fn:t.withCtx((()=>[t.renderSlot(e.$slots,"valid",t.normalizeProps(t.guardReactiveProps(t.unref(D))))])),key:"2"}:void 0,e.$slots.invalid?{name:"invalid",fn:t.withCtx((()=>[t.renderSlot(e.$slots,"invalid",t.normalizeProps(t.guardReactiveProps(t.unref(D))))])),key:"3"}:void 0]),1032,["id"])],2))}});e.VvAccordion=z,e.VvAccordionGroup=H,e.VvBadge=be,e.VvBreadcrumb=ke,e.VvButton=Ee,e.VvButtonGroup=Le,e.VvCard=ze,e.VvCheckbox=Fe,e.VvCheckboxGroup=qe,e.VvCombobox=Pt,e.VvDialog=Lt,e.VvDropdown=Ye,e.VvIcon=Be,e.VvInputText=tl,e.VvProgress=ol,e.VvRadio=il,e.VvRadioGroup=cl,e.VvSelect=gt,e.VvTextarea=kl,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})}));
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("vue"),require("nanoid"),require("@vueuse/core"),require("@iconify/vue"),require("@floating-ui/vue"),require("mitt"),require("maska")):"function"==typeof define&&define.amd?define(["exports","vue","nanoid","@vueuse/core","@iconify/vue","@floating-ui/vue","mitt","maska"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).components={},e.vue,e.nanoid,e.core,e.vue$1,e.vue$2,e.mitt,e.maska)}(this,(function(e,t,l,o,a,n,r,i){"use strict";var u=(e=>(e.left="left",e.right="right",e.top="top",e.bottom="bottom",e))(u||{}),d=(e=>(e.topStart="top-start",e.topEnd="top-end",e.bottomStart="bottom-start",e.bottomEnd="bottom-end",e.leftStart="left-start",e.leftEnd="left-end",e.rightStart="right-start",e.rightEnd="right-end",e))(d||{}),s=(e=>(e.before="before",e.after="after",e))(s||{}),c=(e=>(e.button="button",e.submit="submit",e.reset="reset",e))(c||{}),v=(e=>(e.nuxtLink="nuxt-link",e.routerLink="router-link",e.a="a",e.button="button",e))(v||{}),p=(e=>(e.button="button",e.link="link",e.menuitem="menuitem",e))(p||{}),m=(e=>(e.listbox="listbox",e.menu="menu",e))(m||{}),f=(e=>(e.option="option",e.presentation="presentation",e))(f||{}),b=(e=>(e._blank="_blank",e._self="_self",e._parent="_parent",e._top="_top",e))(b||{});const g=Symbol.for("volver"),y=Symbol.for("buttonGroup"),h=Symbol.for("radioGroup"),k=Symbol.for("checkGroup"),S=Symbol.for("accordionGroup"),V=Symbol.for("dropdownTrigger"),B=Symbol.for("dropdownItem"),w=Symbol.for("dropdownAction"),x={to:{type:[String,Object]},href:String,target:{type:String,validator:e=>Object.values(b).includes(e)},rel:{type:String,default:"noopener noreferrer"}},P={valid:Boolean,validLabel:[String,Array]},_={invalid:Boolean,invalidLabel:[String,Array]},C={loading:Boolean,loadingLabel:{type:String,default:"Loading..."}},$={disabled:Boolean},E={selected:Boolean},N={active:Boolean},L={pressed:Boolean},A={label:[String,Number]},R={readonly:Boolean},O={modifiers:[String,Array]},D={hintLabel:{type:String,default:""}},z={options:{type:Array,default:()=>[]},labelKey:{type:[String,Function],default:"label"},valueKey:{type:[String,Function],default:"value"},disabledKey:{type:[String,Function],default:"disabled"}},T={count:{type:[Boolean,String],default:!1,validator:e=>[!0,!1,"limit","countdown"].includes(e)}},I={debounce:[Number,String]},H={icon:{type:[String,Object]},iconPosition:{type:String,default:s.before,validation:e=>Object.values(s).includes(e)}},M={tabindex:{type:[String,Number],default:0}},j={floating:Boolean},F={unselectable:{type:Boolean,default:!0}},G={id:[String,Number]},U={placement:{type:String,default:u.bottom,validator:e=>Object.values(u).includes(e)||Object.values(d).includes(e)},strategy:{type:String,default:"absolute",validator:e=>["fixed","absolute"].includes(e)},transitionName:{type:String},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}},W={...G,name:{type:String,required:!0}},K={autofocus:Boolean},q={autocomplete:{type:String,default:"off"}},X={...W,...K,...q,...M,...$,...R,...P,..._,...D,...C,...O,...T,...I,...H,...j,...A,minlength:[String,Number],maxlength:[String,Number],placeholder:String,required:Boolean},J={...W,...M,...P,..._,...D,...$,...R,...O,...A,...C,value:[String,Number,Boolean],modelValue:[Object,Number,Boolean,String]},Q={...P,..._,...z,...D,...$,...R,...O,...A,...C,modelValue:[String,Array,Boolean,Number,Symbol],name:{type:String,required:!0},vertical:Boolean},Y={...$,...A,...L,...N,...x,type:{type:String,default:c.button,validator:e=>Object.values(c).includes(e)}};function Z(e,t,l){return l?te(e,l)===te(t,l):ee(e,t)}function ee(e,t){if(e===t)return!0;if(e&&t&&"object"==typeof e&&"object"==typeof t){const l=Array.isArray(e),o=Array.isArray(t);let a,n,r;if(l&&o){if(n=e.length,n!=t.length)return!1;for(a=n;0!=a--;)if(!ee(e[a],t[a]))return!1;return!0}if(l!=o)return!1;const i=e instanceof Date,u=t instanceof Date;if(i!=u)return!1;if(i&&u)return e.getTime()==t.getTime();const d=e instanceof RegExp,s=t instanceof RegExp;if(d!=s)return!1;if(d&&s)return e.toString()==t.toString();const c=Object.keys(e);if(n=c.length,n!==Object.keys(t).length)return!1;for(a=n;0!=a--;)if(!Object.prototype.hasOwnProperty.call(t,c[a]))return!1;for(a=n;0!=a--;)if(r=c[a],!ee(e[r],t[r]))return!1;return!0}return e!=e&&t!=t}function te(e,t){if(e&&Object.keys(e).length&&t){if(-1===t.indexOf("."))return e[t];{const l=t.split(".");let o=e;for(let t=0,a=l.length;t<a;++t){if(null==e)return null;o=o[l[t]]}return o}}return null}function le(e,t){if(null!=e&&t&&t.length)for(const l of t)if(Z(e,l))return!0;return!1}function oe(e){return null==(l=t.unref(e))||""===l||Array.isArray(l)&&0===l.length||!(l instanceof Date)&&"object"==typeof l&&0===Object.keys(l).length;var l}function ae(e,t){const l=function(e,t){let l=-1;if(t)for(let o=0;o<t.length;o++)if(Z(t[o],e)){l=o;break}return l}(e,t);return l>-1?t.filter(((e,t)=>t!==l)):t}function ne(e){const l=t.inject(e,void 0),o=t.computed((()=>!oe(l)));return{group:l,isInGroup:o,getGroupOrLocalRef:function(e,o,a){if(null==l?void 0:l.value){const o=t.unref(l.value)[e];return t.computed({get:()=>null==o?void 0:o.value,set(e){o.value=e}})}const n=t.toRef(o,e);return t.computed({get:()=>n.value,set(t){a&&a(`update:${e}`,t)}})}}}const re={...O,name:String,title:String,content:String,modelValue:{type:Boolean,default:void 0},disabled:Boolean,not:Boolean};function ie(e,l,o){return t.computed((()=>{const a={[e]:!0},n="string"==typeof(null==l?void 0:l.value)?l.value.split(" "):null==l?void 0:l.value;return n&&Array.isArray(n)&&n.forEach((t=>{t&&(a[`${e}--${t}`]=!0)})),o&&Object.keys(o.value).forEach((l=>{a[`${e}--${l}`]=t.unref(o.value[l])})),a}))}const ue=["id","open"],de=["aria-controls","aria-expanded"],se=["aria-hidden"],ce=t.defineComponent({name:"VvAccordion",props:re,emits:["update:modelValue"],setup(e,{emit:a}){const n=e,r=t.useAttrs(),i=t.computed((()=>n.name||(null==r?void 0:r.id)||l.nanoid())),{modifiers:u,title:d,content:s,disabled:c,collapse:v,modelValue:p,isInGroup:m,not:f}=function(e,l){const{group:o,isInGroup:a,getGroupOrLocalRef:n}=ne(S),{title:r,content:i}=t.toRefs(e),u=n("modelValue",e,l),d=n("not",e),s=n("collapse",e),c=t.computed((()=>{var t;return Boolean(e.disabled||(null==(t=null==o?void 0:o.value)?void 0:t.disabled.value))})),v=t.computed((()=>{let t=e.modifiers,l=null==o?void 0:o.value.modifiers.value;const a=new Set;return t&&(Array.isArray(t)||(t=t.split(" ")),t.forEach((e=>a.add(e)))),l&&(Array.isArray(l)||(l=l.split(" ")),l.forEach((e=>a.add(e)))),Array.from(a)}));return{modelValue:u,not:d,isInGroup:a,group:o,collapse:s,modifiers:v,disabled:c,title:r,content:i}}(n,a),b=t.ref(!1),g=t.computed({get:()=>{let e=p.value;return m.value?e=v.value&&Array.isArray(p.value)?p.value.includes(i.value):p.value===i.value:void 0===p.value&&(e=b.value),f.value?!e:e},set:e=>{if(f.value&&(e=!e),m.value)return v.value&&Array.isArray(p.value)?e?void p.value.push(i.value):void(p.value=p.value.filter((e=>e!==i.value))):void(p.value=e?i.value:null);void 0!==p.value||"boolean"!=typeof e?p.value=e:b.value=e}}),y=ie("vv-accordion",u,t.computed((()=>({disabled:c.value})))),h=o.useToggle(g);return(e,l)=>(t.openBlock(),t.createElementBlock("details",{id:t.unref(i),class:t.normalizeClass(t.unref(y)),open:t.unref(g)},[t.createElementVNode("summary",{"aria-controls":t.unref(i),"aria-expanded":t.unref(g),class:"vv-accordion__summary",onClick:l[0]||(l[0]=t.withModifiers((e=>t.unref(h)()),["prevent"]))},[t.renderSlot(e.$slots,"summary",t.normalizeProps(t.guardReactiveProps({open:t.unref(g)})),(()=>[t.createTextVNode(t.toDisplayString(t.unref(d)),1)]))],8,de),t.createElementVNode("div",{"aria-hidden":!t.unref(g),class:"vv-accordion__content"},[t.renderSlot(e.$slots,"default",t.normalizeProps(t.guardReactiveProps({open:t.unref(g)})),(()=>[t.createTextVNode(t.toDisplayString(t.unref(s)),1)]))],8,se)],10,ue))}}),ve={...O,modelValue:[String,Array],items:{type:Array,default:()=>[]},collapse:Boolean,itemModifiers:{type:[String,Array],default:""},disabled:Boolean,not:Boolean,storeKey:String};function pe(e){if(Object.keys(e).some((l=>"key"!==l&&!t.isRef(e[l]))))throw Error("One or more groupState props aren't ref.");t.provide(e.key,t.computed((()=>e)))}const me=t.defineComponent({name:"VvAccordionGroup",props:ve,emits:["update:modelValue"],setup(e,{emit:l}){const a=e,{disabled:n,collapse:r,modifiers:i,itemModifiers:u,items:d,not:s}=t.toRefs(a);t.watchEffect((()=>{"string"==typeof a.modelValue&&r.value&&console.warn("[VvAccordionGroup]: modelValue is a string but collapse is true.")}));let c=t.ref([]);t.watch((()=>a.storeKey),(e=>{c=e?o.useStorage(e,c.value):t.ref([])}),{immediate:!0});const v=t.computed({get:()=>{var e;return void 0!==a.modelValue?r.value?a.modelValue:Array.isArray(a.modelValue)?a.modelValue[0]:a.modelValue:r.value?c.value:null==(e=c.value)?void 0:e[0]},set:e=>{if(void 0!==a.modelValue)return!Array.isArray(a.modelValue)&&!r.value||Array.isArray(e)||(e=[e]),l("update:modelValue",e);c.value=Array.isArray(e)?e:[e]}});pe({key:S,modelValue:v,disabled:n,collapse:r,modifiers:u,not:s});const p=ie("vv-accordion-group",i,t.computed((()=>({disabled:n.value}))));return(e,l)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(t.unref(p))},[t.renderSlot(e.$slots,"default",{},(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(d),(l=>(t.openBlock(),t.createBlock(ce,t.mergeProps({key:l.title},{name:l.name,title:l.title,content:l.content}),{header:t.withCtx((o=>[t.renderSlot(e.$slots,`header::${l.name}`,t.normalizeProps(t.guardReactiveProps(o)))])),details:t.withCtx((o=>[t.renderSlot(e.$slots,`details::${l.name}`,t.normalizeProps(t.guardReactiveProps(o)))])),_:2},1040)))),128))]))],2))}}),fe={...O,value:[String,Number]},be=t.defineComponent({name:"VvBadge",props:fe,setup(e){const l=e,{modifiers:o}=t.toRefs(l),a=ie("vv-badge",o);return(e,l)=>(t.openBlock(),t.createElementBlock("span",{class:t.normalizeClass(t.unref(a)),role:"status"},[t.renderSlot(e.$slots,"default",{},(()=>[t.createTextVNode(t.toDisplayString(e.value),1)]))],2))}}),ge={...O,routes:Array},ye={class:"vv-breadcrumb__list"},he=["content"],ke=t.defineComponent({name:"VvBreadcrumb",props:ge,setup(e){const l=e,{modifiers:o}=t.toRefs(l),a=ie("vv-breadcrumb",o);return(e,l)=>(t.openBlock(),t.createElementBlock("nav",{class:t.normalizeClass(t.unref(a)),"aria-label":"breadcrumbs"},[t.createElementVNode("ol",ye,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.routes,((l,o)=>{var a,n,r,i;return t.openBlock(),t.createElementBlock("li",{key:`${l.label}-${o}`,class:t.normalizeClass({"vv-breadcrumb__item":o<Number(null==(a=e.routes)?void 0:a.length)-1,"vv-breadcrumb__item-active":o===Number(null==(n=e.routes)?void 0:n.length)-1}),itemprop:"itemListElement",itemtype:"https://schema.org/ListItem",itemscope:""},[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(l.to?"router-link":l.href?"a":"span"),t.mergeProps(l,{class:{"vv-breadcrumb__link":o<Number(null==(r=e.routes)?void 0:r.length)-1},"aria-current":o===Number(null==(i=e.routes)?void 0:i.length)-1?"page":void 0,itemprop:"item"}),{default:t.withCtx((()=>[t.renderSlot(e.$slots,"label",t.normalizeProps(t.guardReactiveProps({route:l,index:o})),(()=>[t.createTextVNode(t.toDisplayString(l.label),1)]))])),_:2},1040,["class","aria-current"])),t.createElementVNode("meta",{itemprop:"position",content:`${o+1}`},null,8,he)],2)})),128))])],2))}}),Se={color:String,width:{type:[String,Number]},height:{type:[String,Number]},name:{type:String,required:!0},provider:{type:String},prefix:{type:String,default:"normal"},src:String,horizontalFlip:Boolean,verticalFlip:Boolean,flip:String,mode:String,inline:Boolean,rotate:[Number,String],onLoad:Function,svg:String,modifiers:{type:[String,Array]}};function Ve(){return t.inject(g)}const Be=t.defineComponent({name:"VvIcon",props:Se,setup(e){const l=e,o=t.computed((()=>"string"==typeof l.rotate?parseFloat(l.rotate):l.rotate)),n=t.ref(!0),r=Ve(),{modifiers:i}=t.toRefs(l),u=ie("vv-icon",i),d=t.computed((()=>l.provider||(null==r?void 0:r.iconsProvider))),s=t.computed((()=>{const e=l.name??"",t=`@${d.value}:${l.prefix}:${e}`;if(a.iconExists(t))return t;const o=null==r?void 0:r.iconsCollections.find((t=>{const l=`@${d.value}:${t.prefix}:${e}`;return a.iconExists(l)}));return o?`@${d.value}:${o.prefix}:${e}`:e}));function c(e){const t=function(e){let t;if("undefined"==typeof window){const{JSDOM:e}=require("jsdom");t=(new e).window}return(t?new t.DOMParser:new window.DOMParser).parseFromString(e,"text/html").querySelector("svg")}(e),o=(null==t?void 0:t.innerHTML.trim())||"";t&&o&&a.addIcon(`@${d.value}:${l.prefix}:${l.name}`,{body:o,height:t.viewBox.baseVal.height,width:t.viewBox.baseVal.width})}return r&&l.src&&!a.iconExists(`@${d.value}:${l.prefix}:${l.name}`)&&(n.value=!1,r.fetchIcon(l.src).then((e=>{e&&(c(e),n.value=!0)})).catch((e=>{throw new Error(`Error during fetch icon: ${null==e?void 0:e.message}`)}))),l.svg&&c(l.svg),(e,l)=>t.unref(n)?(t.openBlock(),t.createBlock(t.unref(a.Icon),t.mergeProps({key:0,class:t.unref(u)},{inline:e.inline,width:e.width,height:e.height,horizontalFlip:e.horizontalFlip,verticalFlip:e.verticalFlip,flip:e.flip,rotate:t.unref(o),color:e.color,onLoad:e.onLoad,icon:t.unref(s)}),null,16,["class"])):t.createCommentVNode("",!0)}}),we=Y;const xe=t.defineComponent({name:"VvAction",props:we,emits:["click","mouseover","mouseleave"],setup(e,{expose:l,emit:o}){const a=e,n=Ve(),r=t.ref(null);l({$el:r});const{reference:i,bus:u,aria:d,expanded:s}=t.inject(V,{});t.watch((()=>r.value),(e=>{i&&(i.value=e)}));const c=t.computed((()=>a.pressed||(null==s?void 0:s.value))),{role:p}=t.inject(w,{}),m=t.computed((()=>{switch(!0){case a.disabled:return v.button;case void 0!==a.to:return(null==n?void 0:n.nuxt)?v.nuxtLink:v.routerLink;case void 0!==a.href:return v.a;default:return v.button}})),f=t.computed((()=>{const e={...null==d?void 0:d.value,"aria-pressed":!!c.value||void 0,role:null==p?void 0:p.value};switch(m.value){case v.a:return{...e,href:a.href,target:a.target,rel:a.rel};case v.routerLink:case v.nuxtLink:return{...e,to:a.to,target:a.target};default:return{...e,type:a.type,disabled:a.disabled}}})),b=e=>{a.disabled?e.preventDefault():(null==u||u.emit("click",e),o("click",e))},g=e=>{null==u||u.emit("mouseover",e),o("mouseover",e)},y=e=>{null==u||u.emit("mouseleave",e),o("mouseleave",e)};return(e,l)=>(t.openBlock(),t.createBlock(t.resolveDynamicComponent(t.unref(m)),t.mergeProps(t.unref(f),{ref_key:"element",ref:r,class:{active:e.active,pressed:t.unref(c),disabled:e.disabled},onClickPassive:b,onMouseoverPassive:g,onMouseleavePassive:y}),{default:t.withCtx((()=>[t.renderSlot(e.$slots,"default",{},(()=>[t.createTextVNode(t.toDisplayString(e.label),1)]))])),_:3},16,["class"]))}}),Pe={...Y,...G,...O,...F,...C,icon:[String,Object],iconPosition:{type:String,default:u.left,validator:e=>Object.values(u).includes(e)},loadingIcon:{type:String,default:"eos-icons:bubble-loading"},toggle:{type:Boolean,default:!1},value:{type:[String,Number,Boolean],default:void 0},uncheckedValue:{type:[String,Number,Boolean],default:void 0},modelValue:{type:[String,Number,Boolean],default:void 0}};const _e=e=>t.computed((()=>String((null==e?void 0:e.value)||l.nanoid()))),Ce={key:1,class:"vv-button__label"},$e={key:1,class:"vv-button__label"},Ee=t.defineComponent({name:"VvButton",props:Pe,emits:["update:modelValue"],setup(e,{expose:l,emit:o}){const a=e,n=t.useAttrs(),r=t.useSlots(),{id:i,modifiers:d,iconPosition:s,icon:c,label:v,modelValue:p,disabled:m,toggle:f,unselectable:b}=function(e,l){const{group:o,isInGroup:a,getGroupOrLocalRef:n}=ne(y),{id:r,iconPosition:i,icon:u,label:d,pressed:s}=t.toRefs(e),c=n("modelValue",e,l),v=n("toggle",e),p=n("unselectable",e),m=t.computed((()=>(null==o?void 0:o.value.multiple.value)??!1)),f=t.computed((()=>{let t=e.modifiers,l=null==o?void 0:o.value.modifiers.value;const a=new Set;return t&&(Array.isArray(t)||(t=t.split(" ")),t.forEach((e=>a.add(e)))),l&&(Array.isArray(l)||(l=l.split(" ")),l.forEach((e=>a.add(e)))),Array.from(a)})),b=t.computed((()=>{var t;return Boolean(e.disabled||(null==(t=null==o?void 0:o.value)?void 0:t.disabled.value))}));return{group:o,isInGroup:a,modelValue:c,toggle:v,unselectable:p,multiple:m,modifiers:f,disabled:b,id:r,pressed:s,iconPosition:i,icon:u,label:d}}(a,o),g=_e(i),h=t.computed((()=>(null==n?void 0:n.name)||g.value)),k=t.ref(null);l({$el:t.computed((()=>{var e;return null==(e=k.value)?void 0:e.$el}))});const S=t.computed((()=>f.value?Array.isArray(p.value)?le(h.value,p.value):Z(h.value,p.value):a.pressed)),V=ie("vv-button",d,t.computed((()=>({reverse:[u.right,u.bottom].includes(s.value),column:[u.top,u.bottom].includes(s.value),"icon-only":Boolean((null==c?void 0:c.value)&&!(null==v?void 0:v.value)&&!r.default)})))),B=t.computed((()=>"string"==typeof(null==c?void 0:c.value)?{name:null==c?void 0:c.value}:null==c?void 0:c.value)),w=t.computed((()=>void 0!==a.value?a.value:h.value)),x=()=>{if(f.value){if(Array.isArray(p.value))return le(w.value,p.value)?void(b.value&&(p.value=p.value.filter((e=>e!==w.value)))):void p.value.push(w.value);if(w.value===p.value&&b.value)return void(p.value=a.uncheckedValue);p.value=w.value}};return(e,l)=>(t.openBlock(),t.createBlock(xe,t.mergeProps({disabled:t.unref(m),pressed:t.unref(S),active:e.active,type:e.type,to:e.to,href:e.href,target:e.target,rel:e.rel},{id:t.unref(g),ref_key:"element",ref:k,class:t.unref(V),onClick:x}),{default:t.withCtx((()=>[t.renderSlot(e.$slots,"default",{},(()=>[e.loading?t.renderSlot(e.$slots,"loading",{key:0},(()=>[e.loadingIcon?(t.openBlock(),t.createBlock(Be,{key:0,class:"vv-button__loading-icon",name:e.loadingIcon},null,8,["name"])):t.createCommentVNode("",!0),e.loadingLabel?(t.openBlock(),t.createElementBlock("span",Ce,t.toDisplayString(e.loadingLabel),1)):t.createCommentVNode("",!0)])):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.renderSlot(e.$slots,"before"),t.unref(c)?(t.openBlock(),t.createBlock(Be,t.mergeProps({key:0,class:"vv-button__icon"},t.unref(B)),null,16)):t.createCommentVNode("",!0),t.unref(v)?(t.openBlock(),t.createElementBlock("span",$e,[t.renderSlot(e.$slots,"label",{},(()=>[t.createTextVNode(t.toDisplayString(t.unref(v)),1)]))])):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"after")],64))]))])),_:3},16,["id","class"]))}}),Ne={...O,...$,...F,itemModifiers:{type:[String,Array],default:""},toggle:{type:Boolean,default:!1},multiple:{type:Boolean,default:!1},modelValue:{type:[String,Number,Boolean,Array],default:void 0}},Le=t.defineComponent({name:"VvButtonGroup",props:Ne,emits:["update:modelValue"],setup(e,{emit:l}){const o=e,{disabled:a,toggle:n,modifiers:r,multiple:i,unselectable:u,itemModifiers:d}=t.toRefs(o);t.watchEffect((()=>{"string"==typeof o.modelValue&&i.value&&console.warn("[VvButtonGroup]: modelValue is a string but multiple is true.")}));const s=t.computed({get:()=>i.value?o.modelValue:Array.isArray(o.modelValue)?o.modelValue[0]:o.modelValue,set:e=>void 0===e||!Array.isArray(o.modelValue)&&!i.value||Array.isArray(e)?l("update:modelValue",e):l("update:modelValue",[e])});pe({key:y,modelValue:s,disabled:a,toggle:n,multiple:i,unselectable:u,modifiers:d});const c=ie("vv-button-group",r);return(e,l)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(t.unref(c)),role:"group"},[t.renderSlot(e.$slots,"default")],2))}}),Ae={...O,title:String},Re={key:0,class:"vv-card__header"},Oe={key:1,class:"vv-card__content"},De={key:2,class:"vv-card__footer"},ze=t.defineComponent({name:"VvCard",props:Ae,setup(e){const l=e,{modifiers:o}=t.toRefs(l),a=ie("vv-card",o);return(e,l)=>(t.openBlock(),t.createElementBlock("article",{class:t.normalizeClass(t.unref(a))},[e.$slots.header||e.title?(t.openBlock(),t.createElementBlock("header",Re,[t.renderSlot(e.$slots,"header",{},(()=>[t.createTextVNode(t.toDisplayString(e.title),1)]))])):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"default"),e.$slots.content?(t.openBlock(),t.createElementBlock("div",Oe,[t.renderSlot(e.$slots,"content")])):t.createCommentVNode("",!0),e.$slots.footer?(t.openBlock(),t.createElementBlock("footer",De,[t.renderSlot(e.$slots,"footer")])):t.createCommentVNode("",!0)],2))}}),Te={...J,...O,indeterminate:Boolean,uncheckedValue:[String,Number,Boolean],switch:Boolean};function Ie(e){return Array.isArray(e)?e.filter((e=>{return"string"==typeof(t=e)||t instanceof String;var t})).join(" "):e}function He(e,l){const o=t.computed((()=>Ie(e.invalidLabel))),a=t.computed((()=>Ie(e.validLabel))),n=t.computed((()=>e.loadingLabel)),r=t.computed((()=>e.hintLabel)),i=t.computed((()=>Boolean(e.loading&&(l.loading||n.value)))),u=t.computed((()=>!i.value&&Boolean(e.invalid&&(l.invalid||o.value)))),d=t.computed((()=>!i.value&&!u.value&&Boolean(e.valid&&(l.valid||a.value)))),s=t.computed((()=>!i.value&&!u.value&&!d.value&&Boolean(l.hint||r.value))),c=t.computed((()=>u.value||d.value||i.value||s.value)),v=t.computed((()=>({modelValue:e.modelValue,valid:e.valid,invalid:e.invalid,loading:e.loading}))),p=t.defineComponent({name:"HintSlot",props:{tag:{type:String,default:"small"}},setup:()=>({isVisible:c,invalidLabel:o,validLabel:a,loadingLabel:n,hintLabel:r,hasInvalidLabelOrSlot:u,hasValidLabelOrSlot:d,hasLoadingLabelOrSlot:i,hasHintLabelOrSlot:s}),render(){var e,l,o,a,n,r,i,u;if(this.isVisible){let d;return this.hasInvalidLabelOrSlot&&(d="alert"),this.hasValidLabelOrSlot&&(d="status"),this.hasLoadingLabelOrSlot?t.h(this.tag,{role:d},(null==(l=(e=this.$slots).loading)?void 0:l.call(e))??this.loadingLabel):this.hasInvalidLabelOrSlot?t.h(this.tag,{role:d},(null==(a=(o=this.$slots).invalid)?void 0:a.call(o))??this.$slots.invalid??this.invalidLabel):this.hasValidLabelOrSlot?t.h(this.tag,{role:d},(null==(r=(n=this.$slots).valid)?void 0:r.call(n))??this.validLabel):t.h(this.tag,{role:d},(null==(u=(i=this.$slots).hint)?void 0:u.call(i))??this.$slots.hint??this.hintLabel)}return null}});return{hasInvalidLabelOrSlot:u,hasHintLabelOrSlot:s,hasValidLabelOrSlot:d,hasLoadingLabelOrSlot:i,hintSlotScope:v,HintSlot:p}}const Me=["for"],je=["id","name","disabled","value","tabindex","aria-invalid","aria-describedby","aria-errormessage"],Fe=t.defineComponent({name:"VvCheckbox",props:Te,emits:["click","update:modelValue","change","blur"],setup(e,{emit:l}){const o=e,a=t.useSlots(),{id:n,disabled:r,readonly:i,valid:u,invalid:d,propsSwitch:s,modelValue:c,indeterminate:v,isInGroup:p}=function(e,l){const{group:o,isInGroup:a,getGroupOrLocalRef:n}=ne(k),{id:r,switch:i,indeterminate:u}=t.toRefs(e),d=n("modelValue",e,l),s=n("valid",e),c=n("invalid",e),v=t.computed((()=>{var t;return Boolean(e.readonly||(null==(t=null==o?void 0:o.value)?void 0:t.readonly.value))})),p=t.computed((()=>{var t;return Boolean(e.disabled||(null==(t=null==o?void 0:o.value)?void 0:t.disabled.value))}));return{id:r,propsSwitch:i,indeterminate:u,group:o,isInGroup:a,modelValue:d,valid:s,invalid:c,readonly:v,disabled:p}}(o,l),m=_e(n),f=t.computed((()=>`${m.value}-hint`)),b=t.computed((()=>h.value?-1:o.tabindex)),g=t.ref(),y=t.computed((()=>void 0!==o.uncheckedValue&&!p.value)),h=t.computed((()=>r.value||i.value)),S=t.computed((()=>!0===d.value||!0!==u.value&&void 0)),V=t.computed((()=>y.value?c.value===o.value:Array.isArray(c.value)?le(o.value,c.value):Z(o.value,c.value))),B=t.computed((()=>!!v.value||!(V.value||!y.value||o.uncheckedValue===c.value))),w=t.computed((()=>{if(!y.value)return!["string","number","boolean"].includes(typeof o.value)||o.value})),x=t.computed({get:()=>V.value,set(e){if(y.value)c.value=e?o.value:o.uncheckedValue;else if(Array.isArray(c.value)||p.value){const t=new Set(Array.isArray(c.value)?c.value:void 0!==c.value?[c.value]:[]);e?t.add(o.value):t.delete(o.value),c.value=[...t]}else c.value=e?o.value:void 0;l("change",e)}}),{modifiers:P}=t.toRefs(o),_=ie("vv-checkbox",P,t.computed((()=>({switch:s.value,valid:u.value,invalid:d.value,disabled:r.value,readonly:i.value,indeterminate:v.value}))));t.watchEffect((()=>{y.value&&Array.isArray(c.value)&&console.warn("[VvCheckbox] The model value is an array but the component is in binary mode.")})),t.watch((()=>B.value),(e=>{g.value.indeterminate=!!e})),t.onMounted((()=>{B.value&&(g.value.indeterminate=!0)}));const{HintSlot:C,hasHintLabelOrSlot:$,hasInvalidLabelOrSlot:E,hintSlotScope:N}=He(o,a);return(e,l)=>(t.openBlock(),t.createElementBlock("label",{class:t.normalizeClass(t.unref(_)),for:t.unref(m)},[t.withDirectives(t.createElementVNode("input",{id:t.unref(m),ref_key:"input",ref:g,"onUpdate:modelValue":l[0]||(l[0]=e=>t.isRef(x)?x.value=e:null),type:"checkbox",class:"vv-checkbox__input",name:e.name,disabled:t.unref(h),value:t.unref(w),tabindex:t.unref(b),"aria-invalid":t.unref(S),"aria-describedby":t.unref($)?t.unref(f):void 0,"aria-errormessage":t.unref(E)?t.unref(f):void 0},null,8,je),[[t.vModelCheckbox,t.unref(x)]]),t.renderSlot(e.$slots,"default",{value:t.unref(c)},(()=>[t.createTextVNode(t.toDisplayString(e.label),1)])),t.createVNode(t.unref(C),{id:t.unref(f),class:"vv-checkbox__hint"},t.createSlots({_:2},[e.$slots.hint?{name:"hint",fn:t.withCtx((()=>[t.renderSlot(e.$slots,"hint",t.normalizeProps(t.guardReactiveProps(t.unref(N))))])),key:"0"}:void 0,e.$slots.loading?{name:"loading",fn:t.withCtx((()=>[t.renderSlot(e.$slots,"loading",t.normalizeProps(t.guardReactiveProps(t.unref(N))))])),key:"1"}:void 0,e.$slots.valid?{name:"valid",fn:t.withCtx((()=>[t.renderSlot(e.$slots,"valid",t.normalizeProps(t.guardReactiveProps(t.unref(N))))])),key:"2"}:void 0,e.$slots.invalid?{name:"invalid",fn:t.withCtx((()=>[t.renderSlot(e.$slots,"invalid",t.normalizeProps(t.guardReactiveProps(t.unref(N))))])),key:"3"}:void 0]),1032,["id"])],10,Me))}}),Ge=Q;function Ue(e){const{options:l,labelKey:o,valueKey:a,disabledKey:n}=t.toRefs(e);return{options:l,getOptionLabel:e=>"object"!=typeof e&&null!==e?e:String("function"==typeof o.value?o.value(e):e[o.value]),getOptionValue:e=>"object"!=typeof e&&null!==e?e:"function"==typeof a.value?a.value(e):e[a.value],getOptionDisabled:e=>("object"==typeof e||null===e)&&("function"==typeof n.value?n.value(e):e[n.value]),getOptionGrouped:e=>"object"!=typeof e&&null!==e?[]:e.options||[]}}const We=["textContent"],Ke={class:"vv-checkbox-group__wrapper"},qe=t.defineComponent({name:"VvCheckboxGroup",props:Ge,emits:["update:modelValue","change"],setup(e,{emit:l}){const a=e,n=t.useSlots(),r=o.useVModel(a,"modelValue",l),{disabled:i,readonly:u,vertical:d,valid:s,invalid:c,modifiers:v}=t.toRefs(a);pe({key:k,modelValue:r,disabled:i,readonly:u,valid:s,invalid:c});const{getOptionLabel:p,getOptionValue:m}=Ue(a),f=ie("vv-checkbox-group",v,t.computed((()=>({disabled:i.value,readonly:u.value,horizontal:!d.value,valid:s.value,invalid:c.value})))),{HintSlot:b,hintSlotScope:g}=He(a,n);return(e,l)=>(t.openBlock(),t.createElementBlock("fieldset",{class:t.normalizeClass(t.unref(f))},[e.label?(t.openBlock(),t.createElementBlock("legend",{key:0,textContent:t.toDisplayString(e.label)},null,8,We)):t.createCommentVNode("",!0),t.createElementVNode("div",Ke,[e.options.length>0?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(e.options,((e,l)=>(t.openBlock(),t.createBlock(Fe,t.mergeProps({key:l},((e,t)=>({id:`${a.name}_opt${t}`,name:a.name,label:p(e),value:m(e)}))(e,l)),null,16)))),128)):t.renderSlot(e.$slots,"default",{key:1})]),t.createVNode(t.unref(b),{class:"vv-checkbox-group__hint"},t.createSlots({_:2},[e.$slots.hint?{name:"hint",fn:t.withCtx((()=>[t.renderSlot(e.$slots,"hint",t.normalizeProps(t.guardReactiveProps(t.unref(g))))])),key:"0"}:void 0,e.$slots.loading?{name:"loading",fn:t.withCtx((()=>[t.renderSlot(e.$slots,"loading",t.normalizeProps(t.guardReactiveProps(t.unref(g))))])),key:"1"}:void 0,e.$slots.valid?{name:"valid",fn:t.withCtx((()=>[t.renderSlot(e.$slots,"valid",t.normalizeProps(t.guardReactiveProps(t.unref(g))))])),key:"2"}:void 0,e.$slots.invalid?{name:"invalid",fn:t.withCtx((()=>[t.renderSlot(e.$slots,"invalid",t.normalizeProps(t.guardReactiveProps(t.unref(g))))])),key:"3"}:void 0]),1024)],2))}}),Xe={...W,...M,...P,..._,...D,...C,...$,...R,...O,...z,...H,...j,...F,...U,...A,modelValue:{type:[String,Number,Boolean,Object,Array],default:void 0},noResultsLabel:{type:String,default:"No results"},noOptionsLabel:{type:String,default:"No options available"},selectedHintLabel:{type:String,default:"Selected"},deselectActionLabel:{type:String,default:"Deselect"},selectHintLabel:{type:String,default:"Press enter to select"},deselectHintLabel:{type:String,default:"Press enter to remove"},placeholder:String,searchable:Boolean,searchPlaceholder:{type:String,default:"Search..."},debounceSearch:{type:[Number,String],default:0},multiple:Boolean,maxValues:[Number,String],separator:{type:String,default:", "},native:Boolean,badges:Boolean,badgeModifiers:{type:[String,Array],default:"action sm"},triggerWidth:{...U.triggerWidth,default:!0},dropdownModifiers:{type:[String,Array]},autoOpen:{type:Boolean,default:!1},keepOpen:{type:Boolean,default:!1}},Je={...G,...O,...U,modelValue:{type:Boolean,default:void 0},reference:{type:Object,default:null},role:{type:String,default:m.menu,validator:e=>Object.values(m).includes(e)}};const Qe=["id","tabindex","role","aria-labelledby"],Ye=t.defineComponent({name:"VvDropdown",inheritAttrs:!1,props:Je,emits:["update:modelValue","beforeExpand","beforeCollapse","afterExpand","afterCollapse"],setup(e,{expose:l,emit:a}){const i=e,{id:u}=t.toRefs(i),d=_e(u),s=t.useAttrs(),c=t.ref("auto"),v=t.ref("auto"),p=t.ref(null),b=t.ref(null),g=t.ref(null),y=t.ref(null),h=t.computed({get:()=>i.reference??p.value,set:e=>{p.value=e}}),k=t.computed((()=>{const e=[];if(i.autoPlacement?"boolean"==typeof i.autoPlacement?e.push(n.autoPlacement()):e.push(n.autoPlacement(i.autoPlacement)):i.flip&&("boolean"==typeof i.flip?e.push(n.flip()):e.push(n.flip(i.flip))),i.shift&&("boolean"==typeof i.shift?e.push(n.shift()):e.push(n.shift(i.shift))),i.size){const t=({availableWidth:e,availableHeight:t})=>{c.value=`${e}px`,v.value=`${t}px`};"boolean"==typeof i.size?e.push(n.size({apply:t})):e.push(n.size({...i.size,apply:t}))}return i.offset&&(e.push(n.offset(Number(i.offset))),["string","number"].includes(typeof i.offset)?e.push(n.offset(Number(i.offset))):e.push(n.offset(i.offset))),i.arrow&&e.push(n.arrow({element:g})),e})),{x:S,y:w,strategy:x,middlewareData:P,placement:_}=n.useFloating(h,b,{whileElementsMounted:n.autoUpdate,placement:t.computed((()=>i.placement)),strategy:t.computed((()=>i.strategy)),middleware:k}),C=t.computed((()=>({position:x.value,top:`${w.value??0}px`,left:`${S.value??0}px`,maxWidth:c.value,maxHeight:v.value,width:i.triggerWidth&&h.value?`${h.value.offsetWidth}px`:void 0}))),$=t.computed((()=>_.value.split("-")[0])),E=t.computed((()=>({top:"bottom",right:"left",bottom:"top",left:"right"}[$.value]??"bottom"))),N=t.computed((()=>{var e,t,l,o;return["bottom","top"].includes(E.value)?{right:`${(null==(e=P.value.arrow)?void 0:e.x)??0}px`,[E.value]:-((null==(t=g.value)?void 0:t.offsetWidth)??0)/2+"px"}:{top:`${(null==(l=P.value.arrow)?void 0:l.y)??0}px`,[E.value]:-((null==(o=g.value)?void 0:o.offsetWidth)??0)/2+"px"}})),L=o.useVModel(i,"modelValue",a),A=t.ref(!1),R=t.computed({get:()=>L.value??A.value,set:e=>{void 0!==L.value?L.value=e:A.value=e}}),O=()=>{R.value=!0},D=()=>{R.value=!1},z=()=>{R.value=!R.value},T=e=>{h.value=e};l({toggle:z,show:O,hide:D,init:T}),t.watch(R,(e=>{e&&i.autofocusFirst&&t.nextTick((()=>{const e=q(b.value);e.length>0&&e[0].focus()}))})),o.onClickOutside(b,(()=>{i.keepOpen||(R.value=!1)}),{ignore:[h]});const I=t.computed((()=>{var e,t;return(null==(t=null==(e=h.value)?void 0:e.getAttribute)?void 0:t.call(e,"id"))??void 0})),H=t.computed((()=>({"aria-controls":d.value,"aria-haspopup":!0,"aria-expanded":R.value}))),{component:M,bus:j}=function({reference:e,id:l,expanded:o,aria:a}){const n=r(),i=t.defineComponent({name:"VvDropdownTriggerProvider",setup(){t.provide(V,{reference:e,id:l,expanded:o,aria:a,bus:n})},render(){var e,l;return t.h(t.Fragment,{},null==(l=(e=this.$slots).default)?void 0:l.call(e))}});return{bus:n,component:i}}({reference:h,id:d,expanded:R,aria:H});j.on("click",z);const{role:F,modifiers:G}=t.toRefs(i),{itemRole:U}=function({role:e,expanded:l}){const o=t.computed((()=>e.value===m.listbox?f.option:f.presentation));return t.provide(B,{role:o,expanded:l}),{itemRole:o}}({role:F,expanded:R}),W=ie("vv-dropdown",G,t.computed((()=>({arrow:i.arrow})))),{focused:K}=o.useFocusWithin(b);function q(e){return e?[...e.querySelectorAll('a[href], button, input, textarea, select, details,[tabindex]:not([tabindex="-1"])')].filter((e=>!e.hasAttribute("disabled")&&!e.getAttribute("aria-hidden"))):[]}o.onKeyStroke("Escape",(e=>{R.value&&(e.preventDefault(),D())})),o.onKeyStroke("ArrowDown",(e=>{R.value&&K.value&&(e.preventDefault(),t.nextTick((()=>{if(K.value){const e=q(b.value);if(0===e.length||!document.activeElement)return;const t=e.indexOf(document.activeElement);t<e.length-1?e[t+1].focus():e[0].focus()}})))})),o.onKeyStroke("ArrowUp",(e=>{R.value&&K.value&&(e.preventDefault(),t.nextTick((()=>{if(K.value){const e=q(b.value);if(0===e.length||!document.activeElement)return;const t=e.indexOf(document.activeElement);t>0?e[t-1].focus():e[e.length-1].focus()}})))})),o.onKeyStroke([" ","Enter"],(e=>{if(R.value&&K.value&&e.target!==document.activeElement){e.preventDefault();document.activeElement.click()}}));const X=()=>{a(R.value?"beforeExpand":"beforeCollapse")},J=()=>{a(R.value?"afterExpand":"afterCollapse")};return(e,l)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createVNode(t.unref(M),null,{default:t.withCtx((()=>[t.renderSlot(e.$slots,"default",t.normalizeProps(t.guardReactiveProps({init:T,show:O,hide:D,toggle:z,expanded:t.unref(R),aria:t.unref(H)})))])),_:3}),t.createVNode(t.Transition,t.mergeProps({name:e.transitionName},t.toHandlers({beforeEnter:X,onAfterLeave:J})),{default:t.withCtx((()=>[t.withDirectives(t.createElementVNode("div",{ref_key:"floatingEl",ref:b,style:t.normalizeStyle(t.unref(C)),class:t.normalizeClass(t.unref(W))},[i.arrow?(t.openBlock(),t.createElementBlock("div",{key:0,ref_key:"arrowEl",ref:g,style:t.normalizeStyle(t.unref(N)),class:"vv-dropdown__arrow"},null,4)):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"before",t.normalizeProps(t.guardReactiveProps({expanded:t.unref(R)}))),t.createElementVNode("div",t.mergeProps(t.unref(s),{id:t.unref(d),ref_key:"listEl",ref:y,tabindex:t.unref(R)?void 0:-1,role:t.unref(F),"aria-labelledby":t.unref(I),class:"vv-dropdown__list"}),[t.renderSlot(e.$slots,"items",t.normalizeProps(t.guardReactiveProps({role:t.unref(U)})))],16,Qe),t.renderSlot(e.$slots,"after",t.normalizeProps(t.guardReactiveProps({expanded:t.unref(R)})))],6),[[t.vShow,t.unref(R)]])])),_:3},16,["name"])],64))}}),Ze=t.defineComponent({name:"VvDropdownItem",setup(e){const{role:l,expanded:a}=t.inject(B,{}),n=t.ref(null);!function({expanded:e}){t.provide(w,{role:t.ref(p.menuitem),expanded:e})}({expanded:a});const r=o.useElementHover(n),{focused:i}=o.useFocus(n),{focused:u}=o.useFocusWithin(n);return t.watch(r,(e=>{e&&(i.value=!0)})),(e,o)=>(t.openBlock(),t.createElementBlock("div",t.mergeProps({role:t.unref(l)},{ref_key:"element",ref:n,class:["vv-dropdown__item",{"focus-visible":t.unref(i)||t.unref(u)}]}),[t.renderSlot(e.$slots,"default")],16))}}),et=["title"],tt=t.defineComponent({name:"VvDropdownOption",props:{...$,...E,...F,...O,deselectHintLabel:{type:String},selectHintLabel:{type:String},selectedHintLabel:{type:String}},setup(e){const l=e,{modifiers:o}=t.toRefs(l),a=ie("vv-dropdown-option",o,t.computed((()=>({disabled:l.disabled,selected:l.selected,unselectable:l.unselectable&&l.selected})))),n=t.computed((()=>l.selected?l.unselectable?l.deselectHintLabel:l.selectedHintLabel:l.disabled?void 0:l.selectHintLabel));return(e,l)=>(t.openBlock(),t.createBlock(Ze,{class:t.normalizeClass(t.unref(a)),tabindex:e.disabled?-1:0,"aria-selected":e.selected,"aria-disabled":e.disabled},{default:t.withCtx((()=>[t.renderSlot(e.$slots,"default"),t.createElementVNode("span",{class:"vv-dropdown-option__hint",title:t.unref(n)},[t.renderSlot(e.$slots,"hint",t.normalizeProps(t.guardReactiveProps({disabled:e.disabled,selected:e.selected,unselectable:e.unselectable})),(()=>[t.createTextVNode(t.toDisplayString(t.unref(n)),1)]))],8,et)])),_:3},8,["class","tabindex","aria-selected","aria-disabled"]))}}),lt={class:"vv-dropdown-optgroup",role:"presentation",tabindex:"-1"},ot=t.defineComponent({name:"VvDropdownOptgroup",props:{...A},setup(e){const l=e;return(e,o)=>(t.openBlock(),t.createElementBlock("li",lt,t.toDisplayString(l.label),1))}}),at={...W,...K,...q,...M,...P,..._,...D,...C,...$,...R,...O,...z,...H,...j,...F,...A,multiple:Boolean,required:Boolean,size:[String,Number],modelValue:{type:[String,Number,Boolean,Object,Array],default:void 0},placeholder:String};function nt(e,l){const{focused:a}=o.useFocus(e);return t.watch(a,(o=>{l(o?"focus":"blur",t.unref(e))})),{focused:a}}function rt(e,l){const o=t.computed((()=>Boolean((null==e?void 0:e.value)&&l.value===s.before))),a=t.computed((()=>Boolean((null==e?void 0:e.value)&&l.value===s.after))),n=t.computed((()=>Boolean((null==e?void 0:e.value)&&l.value===u.left))),r=t.computed((()=>Boolean((null==e?void 0:e.value)&&l.value===u.right))),i=t.computed((()=>Boolean((null==e?void 0:e.value)&&l.value===u.top))),d=t.computed((()=>Boolean((null==e?void 0:e.value)&&l.value===u.bottom)));return{hasIcon:t.computed((()=>"string"==typeof(null==e?void 0:e.value)?{name:null==e?void 0:e.value}:null==e?void 0:e.value)),hasIconLeft:n,hasIconRight:r,hasIconTop:i,hasIconBottom:d,hasIconBefore:o,hasIconAfter:a}}const it=["for"],ut={class:"vv-select__wrapper"},dt={key:0,class:"vv-select__input-before"},st={class:"vv-select__inner"},ct=["id"],vt=["disabled","hidden"],pt=["disabled","value"],mt=["disabled","label"],ft=["disabled","value"],bt={key:1,class:"vv-select__input-after"},gt=t.defineComponent({name:"VvSelect",props:at,emits:["update:modelValue","focus","blur"],setup(e,{emit:l}){const a=e,n=t.useSlots(),r=t.ref(),{HintSlot:i,hasHintLabelOrSlot:u,hasInvalidLabelOrSlot:d,hintSlotScope:s}=He(a,n),{id:c,modifiers:v,disabled:p,readonly:m,loading:f,icon:b,iconPosition:g,invalid:y,valid:h,floating:k,multiple:S}=t.toRefs(a),V=_e(c),B=t.computed((()=>`${V.value}-hint`)),{focused:w}=nt(r,l),x=o.useElementVisibility(r);t.watch(x,(e=>{e&&a.autofocus&&(w.value=!0)}));const{hasIcon:P,hasIconBefore:_,hasIconAfter:C}=rt(b,g),$=t.computed((()=>!oe(a.modelValue))),E=t.computed((()=>a.disabled||a.readonly)),N=t.computed((()=>E.value?-1:a.tabindex)),L=t.computed((()=>!0===a.invalid||!0!==a.valid&&void 0)),A=ie("vv-select",v,t.computed((()=>({valid:h.value,invalid:y.value,loading:f.value,disabled:p.value,readonly:m.value,"icon-before":_.value,"icon-after":C.value,dirty:$.value,focus:w.value,floating:k.value,multiple:S.value})))),R=t.computed((()=>({name:a.name,tabindex:N.value,disabled:E.value,required:a.required,size:a.size,autocomplete:a.autocomplete,multiple:a.multiple,"aria-invalid":L.value,"aria-describedby":u.value?B.value:void 0,"aria-errormessage":d.value?B.value:void 0}))),O=t.computed((()=>({valid:a.valid,invalid:a.invalid,modelValue:a.modelValue}))),{getOptionLabel:D,getOptionValue:z,getOptionDisabled:T,getOptionGrouped:I}=Ue(a),H=t.computed({get:()=>a.modelValue,set:e=>{Array.isArray(e)&&(e=e.filter((e=>void 0!==e))),l("update:modelValue",e)}}),M=e=>"string"!=typeof e&&(e&&e.options&&e.options.length>0);return(e,l)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(t.unref(A))},[e.label?(t.openBlock(),t.createElementBlock("label",{key:0,for:t.unref(V)},t.toDisplayString(e.label),9,it)):t.createCommentVNode("",!0),t.createElementVNode("div",ut,[e.$slots.before?(t.openBlock(),t.createElementBlock("div",dt,[t.renderSlot(e.$slots,"before",t.normalizeProps(t.guardReactiveProps(t.unref(O))))])):t.createCommentVNode("",!0),t.createElementVNode("div",st,[t.unref(_)?(t.openBlock(),t.createBlock(Be,t.mergeProps({key:0,class:"vv-select__icon"},t.unref(P)),null,16)):t.createCommentVNode("",!0),t.withDirectives(t.createElementVNode("select",t.mergeProps({id:t.unref(V),ref_key:"select",ref:r,"onUpdate:modelValue":l[0]||(l[0]=e=>t.isRef(H)?H.value=e:null)},t.unref(R)),[e.placeholder?(t.openBlock(),t.createElementBlock("option",{key:0,value:void 0,disabled:!e.unselectable,hidden:!e.unselectable},t.toDisplayString(e.placeholder),9,vt)):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.options,((e,l)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[M(e)?(t.openBlock(),t.createElementBlock("optgroup",{key:`group-${l}`,disabled:t.unref(T)(e),label:t.unref(D)(e)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(I)(e),((e,o)=>(t.openBlock(),t.createElementBlock("option",{key:`group-${l}-item-${o}`,disabled:t.unref(T)(e),value:t.unref(z)(e)},t.toDisplayString(t.unref(D)(e)),9,ft)))),128))],8,mt)):(t.openBlock(),t.createElementBlock("option",{key:l,disabled:t.unref(T)(e),value:t.unref(z)(e)},t.toDisplayString(t.unref(D)(e)),9,pt))],64)))),256))],16,ct),[[t.vModelSelect,t.unref(H)]]),t.unref(C)?(t.openBlock(),t.createBlock(Be,t.mergeProps({key:1,class:"vv-select__icon vv-select__icon-after"},t.unref(P)),null,16)):t.createCommentVNode("",!0)]),e.$slots.after?(t.openBlock(),t.createElementBlock("div",bt,[t.renderSlot(e.$slots,"after",t.normalizeProps(t.guardReactiveProps(t.unref(O))))])):t.createCommentVNode("",!0)]),t.createVNode(t.unref(i),{id:t.unref(B),class:"vv-select__hint"},t.createSlots({_:2},[e.$slots.hint?{name:"hint",fn:t.withCtx((()=>[t.renderSlot(e.$slots,"hint",t.normalizeProps(t.guardReactiveProps(t.unref(s))))])),key:"0"}:void 0,e.$slots.loading?{name:"loading",fn:t.withCtx((()=>[t.renderSlot(e.$slots,"loading",t.normalizeProps(t.guardReactiveProps(t.unref(s))))])),key:"1"}:void 0,e.$slots.valid?{name:"valid",fn:t.withCtx((()=>[t.renderSlot(e.$slots,"valid",t.normalizeProps(t.guardReactiveProps(t.unref(s))))])),key:"2"}:void 0,e.$slots.invalid?{name:"invalid",fn:t.withCtx((()=>[t.renderSlot(e.$slots,"invalid",t.normalizeProps(t.guardReactiveProps(t.unref(s))))])),key:"3"}:void 0]),1032,["id"])],2))}});const yt=["id"],ht=["id","for"],kt=["id","aria-controls","placeholder"],St={key:0,class:"vv-select__input-before"},Vt={class:"vv-select__inner"},Bt=["aria-expanded","aria-labelledby","aria-describedby","aria-errormessage","tabindex"],wt={key:0,class:"vv-select__value"},xt=["aria-label","onClick"],Pt={key:1,class:"vv-select__input-after"},_t={name:"VvCombobox",components:{VvDropdown:Ye,VvDropdownOption:tt,VvDropdownOptgroup:ot}},Ct=t.defineComponent({..._t,props:Xe,emits:["update:modelValue","change:search","focus","blur"],setup(e,{emit:l}){const a=e,n=t.useSlots(),r=function(e,l,o){const a=Ve(),n=t.computed((()=>{var t;if(a&&(null==(t=a.defaults.value)?void 0:t[e]))return a.defaults.value[e]}));return t.computed((()=>{if(void 0===n.value)return o;const e=n.value,t=l,a=o;return Object.keys(t).reduce(((l,o)=>{const n=a[o];if(l[o]=n,o in e){if(Array.isArray(t[o])){const a=t[o];a.length&&a[0]===n&&(l[o]=e[o])}if("function"==typeof t[o]&&(0,t[o])()===n&&(l[o]=e[o]),"object"==typeof t[o]){let a=t[o].default;"function"==typeof a&&(a=a()),"object"==typeof a?JSON.stringify(a)===JSON.stringify(n)&&(l[o]=e[o]):a===n&&(l[o]=e[o])}}return l}),{})}))}("VvCombobox",Xe,a),i=e=>"string"!=typeof e&&(e.options&&e.options.length>0),{HintSlot:u,hasHintLabelOrSlot:d,hasInvalidLabelOrSlot:s,hintSlotScope:c}=He(a,n),v=t.ref(null),p=t.ref(null),f=t.ref(null),{focused:b}=nt(v,l),{focused:g}=o.useFocusWithin(f);t.watch(b,(e=>{a.autoOpen&&(!e||k.value?e||!k.value||g.value||B():V())})),t.watch(g,(e=>{b.value||e||!k.value||B()}));const y=t.ref(""),h=o.refDebounced(y,Number(a.debounceSearch));t.watch(h,(()=>l("change:search",h.value)));const k=t.ref(!1),S=()=>{a.disabled||a.readonly||(k.value=!k.value)},V=()=>{a.disabled||a.readonly||k.value||(k.value=!0)},B=()=>{a.disabled||a.readonly||!k.value||(k.value=!1)},w=()=>{D.value&&p.value&&p.value.focus()},x=()=>{D.value&&(y.value="")},{id:P,icon:_,iconPosition:C,modifiers:$,disabled:E,readonly:N,loading:L,valid:A,invalid:R,floating:O,searchable:D}=t.toRefs(a),z=_e(P),T=t.computed((()=>`${z.value}-hint`)),I=t.computed((()=>`${z.value}-dropdown`)),H=t.computed((()=>`${z.value}-search`)),M=t.computed((()=>`${z.value}-label`)),{hasIcon:j,hasIconBefore:F,hasIconAfter:G}=rt(_,C),U=t.computed((()=>!oe(a.modelValue))),W=t.computed((()=>E.value||N.value?-1:a.tabindex)),K=ie("vv-select",$,t.computed((()=>({disabled:E.value,loading:L.value,readonly:N.value,"icon-before":Boolean(F.value),"icon-after":Boolean(G.value),valid:A.value,invalid:R.value,dirty:U.value,focus:b.value,floating:O.value,badges:a.badges})))),{getOptionLabel:q,getOptionValue:X,getOptionDisabled:J,getOptionGrouped:Q}=Ue(a),Y=t.computed((()=>{var e;return null==(e=a.options)?void 0:e.filter((e=>q(e).toLowerCase().includes(h.value.toLowerCase().trim())))}));function ee(e){return Array.isArray(a.modelValue)?le(e,a.modelValue)||le(X(e),a.modelValue):Z(e,a.modelValue)||Z(X(e),a.modelValue)}const te=t.computed((()=>{let e=[];Array.isArray(a.modelValue)?e=a.modelValue:a.modelValue&&(e=[a.modelValue]);return a.options.reduce(((e,t)=>i(t)?[...e,...Q(t)]:[...e,t]),[]).filter((t=>i(t)?Q(t).some((t=>e.includes(X(t)))):e.includes(X(t))))})),ne=t.computed((()=>te.value.map((e=>q(e))).join(a.separator))),re=()=>{a.autoOpen?V():S()},ue=e=>{var t;if(a.disabled||a.readonly)return;const o=X(e);let n=o;if(a.multiple)if(Array.isArray(a.modelValue)){const e=Number(a.maxValues);if(void 0!==a.maxValues&&e>=0&&(null==(t=a.modelValue)?void 0:t.length)>=e&&!le(o,a.modelValue))return;n=le(o,a.modelValue)?ae(o,a.modelValue):[...a.modelValue,o]}else n=[o];else a.keepOpen||B(),a.unselectable&&o===a.modelValue&&(n=void 0);l("update:modelValue",n)},de=t.computed((()=>({id:z.value,name:a.name,tabindex:W.value,valid:A.value,validLabel:r.value.validLabel,invalid:R.value,invalidLabel:r.value.invalidLabel,hintLabel:r.value.hintLabel,loading:L.value,loadingLabel:r.value.loadingLabel,disabled:E.value,readonly:N.value,modifiers:a.modifiers,options:a.options,labelKey:a.labelKey,valueKey:a.valueKey,icon:a.icon,iconPosition:a.iconPosition,floating:a.floating,unselectable:a.unselectable,multiple:a.multiple,label:a.label,placeholder:a.placeholder,modelValue:a.modelValue}))),se=t.computed((()=>({id:I.value,reference:f.value,placement:a.placement,strategy:a.strategy,transitionName:a.transitionName,offset:a.offset,shift:a.shift,flip:a.flip,autoPlacement:a.autoPlacement,arrow:a.arrow,autofocusFirst:!D.value&&a.autofocusFirst,triggerWidth:a.triggerWidth,modifiers:a.dropdownModifiers}))),ce=t.computed((()=>({valid:a.valid,invalid:a.invalid,modelValue:a.modelValue})));return o.onKeyStroke([" ","Enter"],(e=>{a.autoOpen||!k.value&&b.value&&(e.preventDefault(),e.stopImmediatePropagation(),S())}),{target:v}),(e,o)=>e.native?(t.openBlock(),t.createBlock(gt,t.mergeProps({key:1},t.unref(de),{"onUpdate:modelValue":o[2]||(o[2]=e=>l("update:modelValue",e))}),null,16)):(t.openBlock(),t.createElementBlock("div",{key:0,id:t.unref(z),class:t.normalizeClass(t.unref(K))},[e.label?(t.openBlock(),t.createElementBlock("label",{key:0,id:t.unref(M),for:t.unref(D)?t.unref(H):void 0},t.toDisplayString(e.label),9,ht)):t.createCommentVNode("",!0),t.createElementVNode("div",{ref_key:"wrapperEl",ref:f,class:"vv-select__wrapper"},[t.createVNode(Ye,t.mergeProps({modelValue:t.unref(k),"onUpdate:modelValue":o[1]||(o[1]=e=>t.isRef(k)?k.value=e:null)},t.unref(se),{role:t.unref(m).listbox,onAfterExpand:w,onAfterCollapse:x}),t.createSlots({default:t.withCtx((({aria:l})=>[e.$slots.before?(t.openBlock(),t.createElementBlock("div",St,[t.renderSlot(e.$slots,"before",t.normalizeProps(t.guardReactiveProps(t.unref(ce))))])):t.createCommentVNode("",!0),t.createElementVNode("div",Vt,[t.unref(F)?(t.openBlock(),t.createBlock(Be,t.mergeProps({key:0,class:"vv-select__icon"},t.unref(j)),null,16)):t.createCommentVNode("",!0),t.createElementVNode("div",t.mergeProps({ref_key:"inputEl",ref:v},l,{class:"vv-select__input",role:"combobox","aria-expanded":t.unref(k),"aria-labelledby":t.unref(M),"aria-describedby":t.unref(d)?t.unref(T):void 0,"aria-errormessage":t.unref(s)?t.unref(T):void 0,tabindex:t.unref(W),onClickPassive:re}),[t.renderSlot(e.$slots,"value",t.normalizeProps(t.guardReactiveProps({selectedOptions:t.unref(te),onInput:ue})),(()=>[t.unref(ne)?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e.badges?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:1},t.renderList(t.unref(te),((l,o)=>(t.openBlock(),t.createBlock(be,{key:o,modifiers:e.badgeModifiers,class:"vv-select__badge"},{default:t.withCtx((()=>[t.createTextVNode(t.toDisplayString(t.unref(q)(l))+" ",1),!e.unselectable||t.unref(N)||t.unref(E)?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("button",{key:0,"aria-label":t.unref(r).deselectActionLabel,onClick:t.withModifiers((e=>ue(l)),["stop"])},[t.createVNode(Be,{name:"close"})],8,xt))])),_:2},1032,["modifiers"])))),128)):(t.openBlock(),t.createElementBlock("div",wt,t.toDisplayString(t.unref(ne)),1))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(e.placeholder),1)],64))]))],16,Bt),t.unref(G)?(t.openBlock(),t.createBlock(Be,t.mergeProps({key:1,class:"vv-select__icon vv-select__icon-after"},t.unref(j)),null,16)):t.createCommentVNode("",!0)]),e.$slots.after?(t.openBlock(),t.createElementBlock("div",Pt,[t.renderSlot(e.$slots,"after",t.normalizeProps(t.guardReactiveProps(t.unref(ce))))])):t.createCommentVNode("",!0)])),items:t.withCtx((()=>[t.unref(Y).length?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(t.unref(Y),((l,o)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:o},[i(l)?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createVNode(ot,{label:t.unref(q)(l)},null,8,["label"]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(Q)(l),((o,a)=>(t.openBlock(),t.createBlock(tt,t.mergeProps({disabled:t.unref(J)(o),selected:ee(o),unselectable:e.unselectable,deselectHintLabel:t.unref(r).deselectHintLabel,selectHintLabel:t.unref(r).selectHintLabel,selectedHintLabel:t.unref(r).selectedHintLabel},{key:a,class:"vv-dropdown-option",onClickPassive:e=>ue(o)}),{default:t.withCtx((()=>[t.renderSlot(e.$slots,"option",t.normalizeProps(t.guardReactiveProps({option:l,selectedOptions:t.unref(te),selected:ee(o),disabled:t.unref(J)(o)})),(()=>[t.createTextVNode(t.toDisplayString(t.unref(q)(o)),1)]))])),_:2},1040,["onClickPassive"])))),128))],64)):(t.openBlock(),t.createBlock(tt,t.mergeProps({key:1},{disabled:t.unref(J)(l),selected:ee(l),unselectable:e.unselectable,deselectHintLabel:t.unref(r).deselectHintLabel,selectHintLabel:t.unref(r).selectHintLabel,selectedHintLabel:t.unref(r).selectedHintLabel},{class:"vv-dropdown-option",onClickPassive:e=>ue(l)}),{default:t.withCtx((()=>[t.renderSlot(e.$slots,"option",t.normalizeProps(t.guardReactiveProps({option:l,selectedOptions:t.unref(te),selected:ee(l),disabled:t.unref(J)(l)})),(()=>[t.createTextVNode(t.toDisplayString(t.unref(q)(l)),1)]))])),_:2},1040,["onClickPassive"]))],64)))),128)):e.options.length?(t.openBlock(),t.createBlock(tt,{key:2,modifiers:"inert"},{default:t.withCtx((()=>[t.renderSlot(e.$slots,"no-results",{},(()=>[t.createTextVNode(t.toDisplayString(t.unref(r).noResultsLabel),1)]))])),_:3})):(t.openBlock(),t.createBlock(tt,{key:1,modifiers:"inert"},{default:t.withCtx((()=>[t.renderSlot(e.$slots,"no-options",{},(()=>[t.createTextVNode(t.toDisplayString(t.unref(r).noOptionsLabel),1)]))])),_:3}))])),_:2},[t.unref(D)||e.$slots["dropdown::before"]?{name:"before",fn:t.withCtx((()=>[t.renderSlot(e.$slots,"dropdown::before"),t.unref(D)?t.withDirectives((t.openBlock(),t.createElementBlock("input",{key:0,id:t.unref(H),ref_key:"inputSearchEl",ref:p,"onUpdate:modelValue":o[0]||(o[0]=e=>t.isRef(y)?y.value=e:null),"aria-autocomplete":"list","aria-controls":t.unref(I),autocomplete:"off",spellcheck:"false",type:"search",class:"vv-dropdown__search",placeholder:t.unref(r).searchPlaceholder},null,8,kt)),[[t.vShow,t.unref(k)],[t.vModelText,t.unref(y)]]):t.createCommentVNode("",!0)])),key:"0"}:void 0,e.$slots["dropdown::after"]?{name:"after",fn:t.withCtx((()=>[t.renderSlot(e.$slots,"dropdown::after")])),key:"1"}:void 0]),1040,["modelValue","role"])],512),t.createVNode(t.unref(u),{id:t.unref(T),class:"vv-select__hint"},t.createSlots({_:2},[e.$slots.hint?{name:"hint",fn:t.withCtx((()=>[t.renderSlot(e.$slots,"hint",t.normalizeProps(t.guardReactiveProps(t.unref(c))))])),key:"0"}:void 0,e.$slots.loading?{name:"loading",fn:t.withCtx((()=>[t.renderSlot(e.$slots,"loading",t.normalizeProps(t.guardReactiveProps(t.unref(c))))])),key:"1"}:void 0,e.$slots.valid?{name:"valid",fn:t.withCtx((()=>[t.renderSlot(e.$slots,"valid",t.normalizeProps(t.guardReactiveProps(t.unref(c))))])),key:"2"}:void 0,e.$slots.invalid?{name:"invalid",fn:t.withCtx((()=>[t.renderSlot(e.$slots,"invalid",t.normalizeProps(t.guardReactiveProps(t.unref(c))))])),key:"3"}:void 0]),1032,["id"])],10,yt))}}),$t={...G,title:String,modelValue:{type:Boolean,default:void 0},transition:{type:String,default:"fade-block"},size:String,keepOpen:{type:Boolean,default:!1}},Et={key:0,class:"vv-dialog__header"},Nt={class:"vv-dialog__content"},Lt={key:1,class:"vv-dialog__footer"},At=t.defineComponent({name:"VvDialog",props:$t,emits:["open","close","update:modelValue"],setup(e,{expose:l,emit:a}){const n=e,r=t.ref(),i=t.ref(!1),u=t.computed({get:()=>n.modelValue??i.value,set(e){void 0===n.modelValue&&(i.value=e),a("update:modelValue",e)}}),d=t.ref(null),s=t.computed((()=>{const{id:e}=n;return{id:e}})),c=t.computed((()=>n.size?["vv-dialog",`vv-dialog--${n.size}`]:"vv-dialog")),v=t.computed((()=>`vv-dialog--${n.transition}`)),p={"before-enter":()=>{var e;null==(e=r.value)||e.showModal(),a("open")},"after-leave":()=>{var e;null==(e=r.value)||e.close(),a("close")}};function m(){u.value=!1}return o.onClickOutside(d,(()=>{n.keepOpen||(u.value=!1)})),l({close:m,open:function(){u.value=!0}}),o.onKeyStroke("Escape",(e=>{u.value&&(e.preventDefault(),m())})),(e,l)=>(t.openBlock(),t.createBlock(t.Transition,t.mergeProps({name:t.unref(v)},t.toHandlers(p)),{default:t.withCtx((()=>[t.withDirectives(t.createElementVNode("dialog",t.mergeProps(t.unref(s),{ref_key:"dialogEl",ref:r,class:t.unref(c)}),[t.createElementVNode("article",{ref_key:"modalWrapper",ref:d,class:"vv-dialog__wrapper"},[e.$slots.header||e.title?(t.openBlock(),t.createElementBlock("header",Et,[t.renderSlot(e.$slots,"header",{},(()=>[t.createTextVNode(t.toDisplayString(e.title)+" ",1),t.createElementVNode("button",{type:"button","aria-label":"Close",class:"vv-dialog__close",onClickPassive:m},[t.createVNode(Be,{name:"close"})],32)]))])):t.createCommentVNode("",!0),t.createElementVNode("div",Nt,[t.renderSlot(e.$slots,"default")]),e.$slots.footer?(t.openBlock(),t.createElementBlock("footer",Lt,[t.renderSlot(e.$slots,"footer")])):t.createCommentVNode("",!0)],512)],16),[[t.vShow,t.unref(u)]])])),_:3},16,["name"]))}}),Rt={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"},Ot="eye-on",Dt="eye-off",zt="calendar",Tt="time",It="color",Ht="close",Mt={...X,modelValue:[String,Number],type:{type:String,default:Rt.TEXT,validator:e=>Object.values(Rt).includes(e)},min:[Number,Date,String],max:[Number,Date,String],step:{type:[String,Number],default:1},pattern:String,multiple:Boolean,iconShowPassword:{type:String,default:Ot},iconHidePassword:{type:String,default:Dt},iconClear:{type:String,default:Ht},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"},mask:{type:String,default:void 0},maskEager:{type:Boolean,default:!1},maskReversed:{type:Boolean,default:!1},maskTokens:{type:Object,default:void 0},maskTokensReplace:{type:Boolean,default:!1},autoWidth:{type:Boolean,default:!1},hideActions:{type:Boolean,default:!1},unit:{type:String}},jt=t.defineComponent({components:{VvIcon:Be},props:{disabled:{type:Boolean,default:!1},labelShow:{type:String,default:"Show password"},labelHide:{type:String,default:"Hide password"},iconShow:{type:String,default:Ot},iconHide:{type:String,default:Dt}},emits:["toggle-password"],setup(e,{emit:l}){const o=t.ref(!1),a=t.computed((()=>o.value?e.iconHide:e.iconShow));return{active:o,activeIcon:a,onClick:function(t){null==t||t.stopPropagation(),e.disabled||(o.value=!o.value,l("toggle-password",o.value))}}},render(){const e=t.h(Be,{name:this.activeIcon,class:"vv-input-text__icon"});return t.h("button",{disabled:this.disabled,class:"vv-input-text__action",ariaLabel:this.active?this.labelHide:this.labelShow,type:"button",onClick:this.onClick},e)}}),Ft=t.defineComponent({components:{VvIcon:Be},props:{disabled:{type:Boolean,default:!1},label:{type:String},mode:{type:String,validator:e=>["up","down"].includes(e),default:"up"}},emits:["step-up","step-down"],setup(e,{emit:l}){const o=t.computed((()=>"up"===e.mode));return{isUp:o,onClick:t=>{null==t||t.stopPropagation(),e.disabled||l(o.value?"step-up":"step-down")}}},render(){return t.h("button",{class:["vv-input-text__action vv-input-text__action-chevron",this.isUp&&"vv-input-text__action-chevron-up"],disabled:this.disabled,ariaLabel:this.label,type:"button",onClick:this.onClick})}}),Gt=t.defineComponent({components:{VvIcon:Be},props:{disabled:{type:Boolean,default:!1},label:{type:String,default:"Clear"},icon:{type:String,default:"close"}},emits:["clear"],setup:(e,{emit:t})=>({onClick:function(l){null==l||l.stopPropagation(),e.disabled||t("clear")}}),render(){const e=t.h(Be,{name:this.icon,class:"vv-input-text__icon"});return t.h("button",{disabled:this.disabled,class:"vv-input-text__action",ariaLabel:this.label,type:"button",onClick:this.onClick},e)}});function Ut(e,l){return{name:"VvInputTextActions",components:{VvIcon:Be,VvInputPasswordAction:jt,VvInputStepAction:Ft,VvInputClearAction:Gt},setup:()=>({isDisabled:t.computed((()=>l.disabled||l.readonly)),labelStepUp:l.labelStepUp,labelStepDown:l.labelStepDown,labelShowPassword:l.labelShowPassword,labelHidePassword:l.labelHidePassword,labelClear:l.labelClear,iconShowPassword:l.iconShowPassword,iconHidePassword:l.iconHidePassword}),render(){let o=null;switch(e){case Rt.SEARCH:{const{onClear:e}=this.$attrs;o=[t.h(Gt,{disabled:this.isDisabled,label:this.labelShowPassword,onClear:e})];break}case Rt.PASSWORD:{const{onTogglePassword:e}=this.$attrs;o=[t.h(jt,{disabled:this.isDisabled,onTogglePassword:e,labelShow:this.labelShowPassword,labelHide:this.labelHidePassword,iconShow:this.iconShowPassword,iconHide:this.iconHidePassword})];break}case Rt.NUMBER:{const{onStepUp:e,onStepDown:a}=this.$attrs;o=[t.h(Ft,{mode:"up",disabled:this.isDisabled||void 0!==l.max&&l.modelValue===l.max,label:this.labelStepUp,onStepUp:e,onStepDown:a}),t.h(Ft,{mode:"down",disabled:this.isDisabled||void 0!==l.min&&l.modelValue===l.min,label:this.labelStepDown,onStepUp:e,onStepDown:a})];break}}return Array.isArray(o)?t.h("div",{class:"vv-input-text__actions-group"},o):o}}}function Wt(e,l,o=0,{getter:a=(e=>e),setter:n=(e=>e)}={}){let r;return"string"==typeof o&&(o=parseInt(o)),t.computed({get:()=>a(null==e?void 0:e.value),set:e=>{r&&clearTimeout(r),r=setTimeout((()=>{l("update:modelValue",n(e))}),o)}})}function Kt(e,l){const o=t.computed((()=>(t.unref(e)??"").length)),a=t.computed((()=>void 0!==(null==l?void 0:l.lowerLimit)&&o.value<(null==l?void 0:l.lowerLimit)?o.value-l.lowerLimit:void 0!==(null==l?void 0:l.upperLimit)&&o.value<(null==l?void 0:l.upperLimit)?l.upperLimit-o.value:0)),n=t.computed((()=>{if(!1===(null==l?void 0:l.mode))return"";if("limit"===(null==l?void 0:l.mode)&&(null==l?void 0:l.upperLimit))return`${o.value} / ${l.lowerLimit?`${l.lowerLimit}-`:""}${l.upperLimit}`;if("countdown"===(null==l?void 0:l.mode)){if(0===a.value)return;return a}return o.value}));return{length:o,gap:a,formatted:n}}const qt=["for"],Xt={class:"vv-input-text__wrapper"},Jt={key:0,class:"vv-input-text__input-before"},Qt=["onClick"],Yt=["id"],Zt={key:1,class:"vv-input-text__unit"},el={key:5,class:"vv-input-text__input-after"},tl={key:6,class:"vv-input-text__limit"},ll=t.defineComponent({name:"VvInputText",props:Mt,emits:["update:modelValue","focus","blur","keyup"],setup(e,{expose:l,emit:a}){const n=e,r=t.useSlots(),u=t.ref(),d=t.ref();l({$inner:d});const{id:s,icon:c,iconPosition:v,label:p,modelValue:m,count:f,valid:b,invalid:g,loading:y}=t.toRefs(n),h=_e(s),k=t.computed((()=>`${h.value}-hint`)),S=t.computed((()=>n.floating&&oe(n.placeholder)?" ":n.placeholder)),V=Wt(m,a,n.debounce,{getter:e=>te.value?te.value.masked(e??""):e,setter:e=>(te.value&&(e=te.value.unmasked(e)),n.type===Rt.NUMBER?Number(e):e)}),{focused:B}=nt(u,a),w=t.computed((()=>B.value&&!n.disabled&&!n.readonly)),x=o.useElementVisibility(u);t.watch(x,(e=>{e&&n.autofocus&&!n.disabled&&!n.readonly&&(B.value=!0)}));const P=t.ref(!1),_=t.computed((()=>n.type===Rt.PASSWORD)),C=()=>{P.value=!P.value},$=t.computed((()=>n.type===Rt.TIME||n.type===Rt.DATETIME_LOCAL||n.type===Rt.DATE||n.type===Rt.WEEK||n.type===Rt.MONTH)),E=t.computed((()=>n.type===Rt.NUMBER)),N=()=>{H.value&&(u.value.stepUp(),V.value=t.unref(u).value)},L=()=>{H.value&&(u.value.stepDown(),V.value=t.unref(u).value)},A=t.computed((()=>n.type===Rt.SEARCH)),R=()=>{V.value=void 0},{hasIcon:O,hasIconBefore:D,hasIconAfter:z}=rt(c,v),T=t.computed((()=>{switch(n.type){case Rt.COLOR:return{name:It};case Rt.DATE:case Rt.DATETIME_LOCAL:case Rt.WEEK:case Rt.MONTH:return{name:zt};case Rt.TIME:return{name:Tt};default:return""}})),{formatted:I}=Kt(V,{mode:n.count,upperLimit:Number(n.maxlength),lowerLimit:Number(n.minlength)}),H=t.computed((()=>!n.disabled&&!n.readonly)),M=t.computed((()=>H.value?n.tabindex:-1)),j=t.computed((()=>!oe(m))),F=t.computed((()=>!0===g.value||!0!==b.value&&void 0)),{modifiers:G}=t.toRefs(n),U=ie("vv-input-text",G,t.computed((()=>({valid:b.value,invalid:g.value,loading:y.value,disabled:n.disabled,readonly:n.readonly,"icon-before":D.value,"icon-after":z.value||!oe(T),floating:n.floating&&!oe(n.label),dirty:j.value,focus:w.value,"auto-width":n.autoWidth})))),W=t.computed((()=>{const e=_.value&&P.value?Rt.TEXT:!$.value||j.value||B.value?n.type:Rt.TEXT,t={type:e,name:n.name,tabindex:M.value,disabled:n.disabled,readonly:n.readonly,required:n.required,autocomplete:n.autocomplete,"aria-invalid":F.value,"aria-describedby":X.value?k.value:void 0,"aria-errormessage":J.value?k.value:void 0};return e!==Rt.DATE&&e!==Rt.MONTH&&e!==Rt.WEEK&&e!==Rt.TIME&&e!==Rt.DATETIME_LOCAL&&e!==Rt.NUMBER||(t.step=n.step,t.max=void 0!==n.max?String(n.max):void 0,t.min=void 0!==n.min?String(n.min):void 0),e!==Rt.TEXT&&e!==Rt.SEARCH&&e!==Rt.URL&&e!==Rt.TEL&&e!==Rt.EMAIL&&e!==Rt.PASSWORD&&e!==Rt.NUMBER||(t.placeholder=S.value),e!==Rt.TEXT&&e!==Rt.SEARCH&&e!==Rt.URL&&e!==Rt.TEL&&e!==Rt.EMAIL&&e!==Rt.PASSWORD||(t.minlength=n.minlength,t.maxlength=n.maxlength,t.pattern=n.pattern),e===Rt.EMAIL&&(t.multiple=n.multiple),t})),K=t.computed((()=>({valid:n.valid,invalid:n.invalid,modelValue:n.modelValue,togglePassword:C,stepUp:N,stepDown:L,clear:R}))),{HintSlot:q,hasHintLabelOrSlot:X,hasInvalidLabelOrSlot:J,hintSlotScope:Q}=He(n,r),Y=Ut(Rt.PASSWORD,n),Z=Ut(Rt.NUMBER,n),ee=Ut(Rt.SEARCH,n),te=t.ref();t.watch([()=>n.mask,()=>n.type,()=>n.maskEager,()=>n.maskReversed,()=>n.maskTokens,()=>n.maskTokensReplace],(([e,t,l,o,a,n])=>{te.value=e&&t===Rt.TEXT?new i.Mask({mask:e,eager:l,reversed:o,tokens:a,tokensReplace:n}):void 0}),{immediate:!0});const le=()=>{H.value&&(B.value=!0)},ae=t.computed((()=>{if(n.autoWidth)return{width:void 0!==V.value?`${String(V.value).length+1}ch`:void 0}}));return(e,l)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(t.unref(U))},[t.unref(p)?(t.openBlock(),t.createElementBlock("label",{key:0,for:t.unref(h),class:"vv-input-text__label"},t.toDisplayString(t.unref(p)),9,qt)):t.createCommentVNode("",!0),t.createElementVNode("div",Xt,[e.$slots.before?(t.openBlock(),t.createElementBlock("div",Jt,[t.renderSlot(e.$slots,"before",t.normalizeProps(t.guardReactiveProps(t.unref(K))))])):t.createCommentVNode("",!0),t.createElementVNode("div",{ref_key:"innerEl",ref:d,class:"vv-input-text__inner",onClick:t.withModifiers(le,["stop"])},[t.unref(D)?(t.openBlock(),t.createBlock(Be,t.mergeProps({key:0,class:"vv-input-text__icon"},t.unref(O)),null,16)):t.createCommentVNode("",!0),t.withDirectives(t.createElementVNode("input",t.mergeProps({id:t.unref(h),ref_key:"inputEl",ref:u,"onUpdate:modelValue":l[0]||(l[0]=e=>t.isRef(V)?V.value=e:null)},t.unref(W),{style:t.unref(ae),onKeyup:l[1]||(l[1]=e=>a("keyup",e))}),null,16,Yt),[[t.vModelDynamic,t.unref(V)]]),(e.unit||e.$slots.unit)&&t.unref(j)?(t.openBlock(),t.createElementBlock("div",Zt,[t.renderSlot(e.$slots,"default",t.normalizeProps(t.guardReactiveProps(t.unref(K))),(()=>[t.createTextVNode(t.toDisplayString(e.unit),1)]))])):t.createCommentVNode("",!0)],8,Qt),t.unref(z)||t.unref(T)?(t.openBlock(),t.createBlock(Be,t.mergeProps({key:1,class:"vv-input-text__icon vv-input-text__icon-after"},t.unref(z)?t.unref(O):t.unref(T)),null,16)):t.unref(_)&&!e.hideActions&&t.unref(H)?(t.openBlock(),t.createBlock(t.unref(Y),{key:2,onTogglePassword:C})):t.unref(E)&&!e.hideActions&&t.unref(H)?(t.openBlock(),t.createBlock(t.unref(Z),{key:3,onStepUp:N,onStepDown:L})):t.unref(A)&&!e.hideActions&&t.unref(H)?(t.openBlock(),t.createBlock(t.unref(ee),{key:4,onClear:R})):t.createCommentVNode("",!0),e.$slots.after?(t.openBlock(),t.createElementBlock("div",el,[t.renderSlot(e.$slots,"after",t.normalizeProps(t.guardReactiveProps(t.unref(K))))])):t.createCommentVNode("",!0),t.unref(f)?(t.openBlock(),t.createElementBlock("span",tl,[t.renderSlot(e.$slots,"count",t.normalizeProps(t.guardReactiveProps(t.unref(K))),(()=>[t.createTextVNode(t.toDisplayString(t.unref(I)),1)]))])):t.createCommentVNode("",!0)]),t.createVNode(t.unref(q),{id:t.unref(k),class:"vv-input-text__hint"},t.createSlots({_:2},[e.$slots.hint?{name:"hint",fn:t.withCtx((()=>[t.renderSlot(e.$slots,"hint",t.normalizeProps(t.guardReactiveProps(t.unref(Q))))])),key:"0"}:void 0,e.$slots.loading?{name:"loading",fn:t.withCtx((()=>[t.renderSlot(e.$slots,"loading",t.normalizeProps(t.guardReactiveProps(t.unref(Q))))])),key:"1"}:void 0,e.$slots.valid?{name:"valid",fn:t.withCtx((()=>[t.renderSlot(e.$slots,"valid",t.normalizeProps(t.guardReactiveProps(t.unref(Q))))])),key:"2"}:void 0,e.$slots.invalid?{name:"invalid",fn:t.withCtx((()=>[t.renderSlot(e.$slots,"invalid",t.normalizeProps(t.guardReactiveProps(t.unref(Q))))])),key:"3"}:void 0]),1032,["id"])],2))}}),ol={...O,value:{type:[Number,String],default:void 0},max:{type:[Number,String]},label:{type:String,required:!0}},al=t.defineComponent({name:"VvProgress",props:ol,setup(e){const l=e,{value:o,max:a,label:n}=t.toRefs(l),r=t.computed((()=>void 0===l.value)),{modifiers:i}=t.toRefs(l),u=ie("vv-progress",i,t.computed((()=>({indeterminate:r.value}))));return(e,l)=>(t.openBlock(),t.createElementBlock("progress",t.mergeProps({role:"progressbar"},{class:t.unref(u),ariaLabel:t.unref(n),max:t.unref(a),value:t.unref(o)}),null,16))}}),nl=J;const rl=["for"],il=["id","name","disabled","value","tabindex","aria-invalid","aria-describedby","aria-errormessage"],ul=t.defineComponent({name:"VvRadio",props:nl,emits:["click","update:modelValue","change","blur"],setup(e,{emit:l}){const o=e,a=t.useSlots(),{id:n,disabled:r,readonly:i,modelValue:u,valid:d,invalid:s}=function(e,l){const{id:o}=t.toRefs(e),{group:a,isInGroup:n,getGroupOrLocalRef:r}=ne(h),i=r("modelValue",e,l),u=r("valid",e),d=r("invalid",e),s=t.computed((()=>{var t;return Boolean(e.readonly||(null==(t=null==a?void 0:a.value)?void 0:t.readonly.value))})),c=t.computed((()=>{var t;return Boolean(e.disabled||(null==(t=null==a?void 0:a.value)?void 0:t.disabled.value))}));return{id:o,group:a,isInGroup:n,modelValue:i,valid:u,invalid:d,readonly:s,disabled:c}}(o,l),c=_e(n),v=t.computed((()=>`${c.value}-hint`)),p=t.computed((()=>f.value?-1:o.tabindex)),m=t.ref(),f=t.computed((()=>r.value||i.value)),b=t.computed((()=>!0===s.value||!0!==d.value&&void 0)),g=t.computed((()=>Array.isArray(u.value)?le(o.value,u.value):Z(o.value,u.value))),y=t.computed((()=>!["string","number","boolean"].includes(typeof o.value)||o.value)),k=t.computed({get:()=>g.value?y.value:null,set(e){Array.isArray(u.value)?u.value=[o.value]:u.value=o.value,l("change",e)}}),{modifiers:S}=t.toRefs(o),V=ie("vv-radio",S,t.computed((()=>({valid:d.value,invalid:s.value,disabled:r.value,readonly:i.value})))),{HintSlot:B,hasHintLabelOrSlot:w,hasInvalidLabelOrSlot:x,hintSlotScope:P}=He(o,a);return(e,l)=>(t.openBlock(),t.createElementBlock("label",{class:t.normalizeClass(t.unref(V)),for:t.unref(c)},[t.withDirectives(t.createElementVNode("input",{id:t.unref(c),ref_key:"input",ref:m,"onUpdate:modelValue":l[0]||(l[0]=e=>t.isRef(k)?k.value=e:null),type:"radio",class:"vv-radio__input",name:e.name,disabled:t.unref(f),value:t.unref(y),tabindex:t.unref(p),"aria-invalid":t.unref(b),"aria-describedby":t.unref(w)?t.unref(v):void 0,"aria-errormessage":t.unref(x)?t.unref(v):void 0},null,8,il),[[t.vModelRadio,t.unref(k)]]),t.renderSlot(e.$slots,"default",{value:t.unref(u)},(()=>[t.createTextVNode(t.toDisplayString(e.label),1)])),t.createVNode(t.unref(B),{id:t.unref(v),class:"vv-radio__hint"},t.createSlots({_:2},[e.$slots.hint?{name:"hint",fn:t.withCtx((()=>[t.renderSlot(e.$slots,"hint",t.normalizeProps(t.guardReactiveProps(t.unref(P))))])),key:"0"}:void 0,e.$slots.loading?{name:"loading",fn:t.withCtx((()=>[t.renderSlot(e.$slots,"loading",t.normalizeProps(t.guardReactiveProps(t.unref(P))))])),key:"1"}:void 0,e.$slots.valid?{name:"valid",fn:t.withCtx((()=>[t.renderSlot(e.$slots,"valid",t.normalizeProps(t.guardReactiveProps(t.unref(P))))])),key:"2"}:void 0,e.$slots.invalid?{name:"invalid",fn:t.withCtx((()=>[t.renderSlot(e.$slots,"invalid",t.normalizeProps(t.guardReactiveProps(t.unref(P))))])),key:"3"}:void 0]),1032,["id"])],10,rl))}}),dl=Q,sl=["textContent"],cl={class:"vv-radio-group__wrapper"},vl=t.defineComponent({name:"VvRadioGroup",props:dl,emits:["update:modelValue","change"],setup(e,{emit:l}){const a=e,n=t.useSlots(),r=o.useVModel(a,"modelValue",l),{disabled:i,readonly:u,vertical:d,valid:s,invalid:c,modifiers:v}=t.toRefs(a);pe({key:h,modelValue:r,disabled:i,readonly:u,valid:s,invalid:c});const{getOptionLabel:p,getOptionValue:m}=Ue(a),f=ie("vv-radio-group",v,t.computed((()=>({disabled:i.value,readonly:u.value,horizontal:!d.value,valid:s.value,invalid:c.value})))),{HintSlot:b,hintSlotScope:g}=He(a,n);return(e,l)=>(t.openBlock(),t.createElementBlock("fieldset",{class:t.normalizeClass(t.unref(f))},[e.label?(t.openBlock(),t.createElementBlock("legend",{key:0,textContent:t.toDisplayString(e.label)},null,8,sl)):t.createCommentVNode("",!0),t.createElementVNode("div",cl,[e.options.length>0?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(e.options,((e,l)=>(t.openBlock(),t.createBlock(ul,t.mergeProps({key:l},((e,t)=>({id:`${a.name}_opt${t}`,name:a.name,label:p(e),value:m(e)}))(e,l)),null,16)))),128)):t.renderSlot(e.$slots,"default",{key:1})]),t.createVNode(t.unref(b),{class:"vv-radio-group__hint"},t.createSlots({_:2},[e.$slots.hint?{name:"hint",fn:t.withCtx((()=>[t.renderSlot(e.$slots,"hint",t.normalizeProps(t.guardReactiveProps(t.unref(g))))])),key:"0"}:void 0,e.$slots.loading?{name:"loading",fn:t.withCtx((()=>[t.renderSlot(e.$slots,"loading",t.normalizeProps(t.guardReactiveProps(t.unref(g))))])),key:"1"}:void 0,e.$slots.valid?{name:"valid",fn:t.withCtx((()=>[t.renderSlot(e.$slots,"valid",t.normalizeProps(t.guardReactiveProps(t.unref(g))))])),key:"2"}:void 0,e.$slots.invalid?{name:"invalid",fn:t.withCtx((()=>[t.renderSlot(e.$slots,"invalid",t.normalizeProps(t.guardReactiveProps(t.unref(g))))])),key:"3"}:void 0]),1024)],2))}}),pl={...X,modelValue:String,cols:{type:[String,Number],default:20},rows:{type:[String,Number],default:2},wrap:{type:String,default:"soft"},spellcheck:{type:[Boolean,String],default:"default"},resizable:Boolean},ml=["for"],fl={class:"vv-textarea__wrapper"},bl={key:0,class:"vv-textarea__input-before"},gl={class:"vv-textarea__inner"},yl=["id"],hl={key:1,class:"vv-textarea__input-after"},kl={key:2,class:"vv-textarea__limit"},Sl=t.defineComponent({name:"VvTextarea",props:pl,emits:["update:modelValue","focus","blur","keyup"],setup(e,{emit:l}){const a=e,n=t.useSlots(),r=t.ref(),{id:i,icon:u,iconPosition:d,label:s,modelValue:c,count:v,valid:p,invalid:m,loading:f,modifiers:b}=t.toRefs(a),g=_e(i),y=t.computed((()=>`${g.value}-hint`)),h=t.computed((()=>a.floating&&oe(a.placeholder)?" ":a.placeholder)),k=Wt(c,l,a.debounce),{hasIcon:S,hasIconBefore:V,hasIconAfter:B}=rt(u,d),{focused:w}=nt(r,l),x=o.useElementVisibility(r);t.watch(x,(e=>{e&&a.autofocus&&(w.value=!0)}));const{formatted:P}=Kt(k,{mode:a.count,upperLimit:Number(a.maxlength),lowerLimit:Number(a.minlength)}),_=t.computed((()=>!a.disabled&&!a.readonly)),C=t.computed((()=>_.value?a.tabindex:-1)),$=t.computed((()=>!oe(c))),E=t.computed((()=>!0===a.invalid||!0!==a.valid&&void 0)),{HintSlot:N,hasHintLabelOrSlot:L,hasInvalidLabelOrSlot:A,hintSlotScope:R}=He(a,n),O=ie("vv-textarea",b,t.computed((()=>({valid:p.value,invalid:m.value,loading:f.value,disabled:a.disabled,readonly:a.readonly,"icon-before":V.value,"icon-after":B.value,floating:a.floating&&!oe(a.label),dirty:$.value,focused:w.value,resizable:a.resizable})))),D=t.computed((()=>({name:a.name,placeholder:h.value,tabindex:C.value,disabled:a.disabled,readonly:a.readonly,required:a.required,autocomplete:a.autocomplete,minlength:a.minlength,maxlength:a.maxlength,cols:a.cols,rows:a.rows,wrap:a.wrap,spellcheck:a.spellcheck,"aria-invalid":E.value,"aria-describedby":L.value?y.value:void 0,"aria-errormessage":A.value?y.value:void 0}))),z=t.computed((()=>({valid:a.valid,invalid:a.invalid,modelValue:a.modelValue,hintLabel:a.hintLabel,maxlength:a.maxlength,minlength:a.minlength,clear:T}))),T=()=>{k.value=void 0};return(e,o)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(t.unref(O))},[t.unref(s)?(t.openBlock(),t.createElementBlock("label",{key:0,for:t.unref(g),class:"vv-textarea__label"},t.toDisplayString(t.unref(s)),9,ml)):t.createCommentVNode("",!0),t.createElementVNode("div",fl,[e.$slots.before?(t.openBlock(),t.createElementBlock("div",bl,[t.renderSlot(e.$slots,"before",t.normalizeProps(t.guardReactiveProps(t.unref(z))))])):t.createCommentVNode("",!0),t.createElementVNode("div",gl,[t.unref(V)?(t.openBlock(),t.createBlock(Be,t.mergeProps({key:0,class:"vv-textarea__icon"},t.unref(S)),null,16)):t.createCommentVNode("",!0),t.withDirectives(t.createElementVNode("textarea",t.mergeProps({id:t.unref(g),ref_key:"textarea",ref:r,"onUpdate:modelValue":o[0]||(o[0]=e=>t.isRef(k)?k.value=e:null)},t.unref(D),{onKeyup:o[1]||(o[1]=e=>l("keyup",e))}),null,16,yl),[[t.vModelText,t.unref(k)]]),t.unref(B)?(t.openBlock(),t.createBlock(Be,t.mergeProps({key:1,class:"vv-textarea__icon vv-textarea__icon-after"},t.unref(S)),null,16)):t.createCommentVNode("",!0)]),e.$slots.after?(t.openBlock(),t.createElementBlock("div",hl,[t.renderSlot(e.$slots,"after",t.normalizeProps(t.guardReactiveProps(t.unref(z))))])):t.createCommentVNode("",!0),t.unref(v)?(t.openBlock(),t.createElementBlock("span",kl,[t.renderSlot(e.$slots,"count",t.normalizeProps(t.guardReactiveProps(t.unref(z))),(()=>[t.createTextVNode(t.toDisplayString(t.unref(P)),1)]))])):t.createCommentVNode("",!0)]),t.createVNode(t.unref(N),{id:t.unref(y),class:"vv-textarea__hint"},t.createSlots({_:2},[e.$slots.hint?{name:"hint",fn:t.withCtx((()=>[t.renderSlot(e.$slots,"hint",t.normalizeProps(t.guardReactiveProps(t.unref(R))))])),key:"0"}:void 0,e.$slots.loading?{name:"loading",fn:t.withCtx((()=>[t.renderSlot(e.$slots,"loading",t.normalizeProps(t.guardReactiveProps(t.unref(R))))])),key:"1"}:void 0,e.$slots.valid?{name:"valid",fn:t.withCtx((()=>[t.renderSlot(e.$slots,"valid",t.normalizeProps(t.guardReactiveProps(t.unref(R))))])),key:"2"}:void 0,e.$slots.invalid?{name:"invalid",fn:t.withCtx((()=>[t.renderSlot(e.$slots,"invalid",t.normalizeProps(t.guardReactiveProps(t.unref(R))))])),key:"3"}:void 0]),1032,["id"])],2))}});e.VvAccordion=ce,e.VvAccordionGroup=me,e.VvBadge=be,e.VvBreadcrumb=ke,e.VvButton=Ee,e.VvButtonGroup=Le,e.VvCard=ze,e.VvCheckbox=Fe,e.VvCheckboxGroup=qe,e.VvCombobox=Ct,e.VvDialog=At,e.VvDropdown=Ye,e.VvIcon=Be,e.VvInputText=ll,e.VvProgress=al,e.VvRadio=ul,e.VvRadioGroup=vl,e.VvSelect=gt,e.VvTextarea=Sl,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})}));
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { Ref } from 'vue';
|
|
2
|
+
/**
|
|
3
|
+
* Share the alert group name with all its children.
|
|
4
|
+
* @param {Ref<string | undefined>} name the alert group name
|
|
5
|
+
*/
|
|
6
|
+
export declare function useProvideAlertGroup({ name, }: {
|
|
7
|
+
name: Ref<string | undefined>;
|
|
8
|
+
}): import("mitt").Emitter<{
|
|
9
|
+
close: string;
|
|
10
|
+
}>;
|
|
@@ -1,31 +1,32 @@
|
|
|
1
|
-
import type { Ref } from 'vue';
|
|
2
|
-
import type { Emitter, EventType } from 'mitt';
|
|
3
|
-
import { type DropdownItemRole } from '../../constants';
|
|
4
1
|
/**
|
|
5
2
|
* Injects dropdown reference and the event bus
|
|
6
3
|
*/
|
|
7
4
|
export declare function useInjectedDropdownTrigger(): {
|
|
8
|
-
id
|
|
9
|
-
reference
|
|
10
|
-
bus
|
|
11
|
-
|
|
12
|
-
|
|
5
|
+
id?: globalThis.Ref<string | number> | undefined;
|
|
6
|
+
reference?: globalThis.Ref<HTMLElement | null> | undefined;
|
|
7
|
+
bus?: import("mitt").Emitter<{
|
|
8
|
+
click: Event;
|
|
9
|
+
mouseover: Event;
|
|
10
|
+
mouseleave: Event;
|
|
11
|
+
}> | undefined;
|
|
12
|
+
expanded?: globalThis.Ref<boolean> | undefined;
|
|
13
|
+
aria?: globalThis.Ref<{
|
|
13
14
|
'aria-controls': string;
|
|
14
15
|
'aria-haspopup': boolean;
|
|
15
16
|
'aria-expanded': boolean;
|
|
16
|
-
}
|
|
17
|
-
}
|
|
17
|
+
}> | undefined;
|
|
18
|
+
};
|
|
18
19
|
/**
|
|
19
20
|
* Injects dropdown item role
|
|
20
21
|
*/
|
|
21
22
|
export declare function useInjectedDropdownItem(): {
|
|
22
|
-
role
|
|
23
|
-
expanded
|
|
24
|
-
}
|
|
23
|
+
role?: globalThis.Ref<"option" | "presentation"> | undefined;
|
|
24
|
+
expanded?: globalThis.Ref<boolean> | undefined;
|
|
25
|
+
};
|
|
25
26
|
/**
|
|
26
27
|
* Injects dropdown action role
|
|
27
28
|
*/
|
|
28
29
|
export declare function useInjectedDropdownAction(): {
|
|
29
|
-
role
|
|
30
|
-
expanded
|
|
31
|
-
}
|
|
30
|
+
role?: globalThis.Ref<"button" | "link" | "menuitem"> | undefined;
|
|
31
|
+
expanded?: globalThis.Ref<boolean> | undefined;
|
|
32
|
+
};
|
|
@@ -14,8 +14,12 @@ export declare function useProvideDropdownTrigger({ reference, id, expanded, ari
|
|
|
14
14
|
'aria-expanded': boolean;
|
|
15
15
|
}>;
|
|
16
16
|
}): {
|
|
17
|
-
bus: import("mitt").Emitter<
|
|
18
|
-
|
|
17
|
+
bus: import("mitt").Emitter<{
|
|
18
|
+
click: Event;
|
|
19
|
+
mouseover: Event;
|
|
20
|
+
mouseleave: Event;
|
|
21
|
+
}>;
|
|
22
|
+
component: import("vue").DefineComponent<{}, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
|
|
19
23
|
};
|
|
20
24
|
/**
|
|
21
25
|
* Share the dropdown item role with all its children.
|
|
@@ -32,5 +36,5 @@ export declare function useProvideDropdownItem({ role, expanded, }: {
|
|
|
32
36
|
* @param {Ref<string>} role the dropdown item role
|
|
33
37
|
*/
|
|
34
38
|
export declare function useProvideDropdownAction({ expanded, }: {
|
|
35
|
-
expanded
|
|
39
|
+
expanded?: Ref<boolean>;
|
|
36
40
|
}): void;
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export declare function useVolver(): VolverInterface | undefined;
|
|
1
|
+
export declare function useVolver(): import("../Volver").Volver | undefined;
|
package/dist/constants.d.ts
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import type { InjectionKey, Ref } from 'vue';
|
|
2
|
+
import type { Emitter } from 'mitt';
|
|
3
|
+
import type { Volver } from './Volver';
|
|
1
4
|
export declare const DEFAULT_ICONIFY_PROVIDER = "vv";
|
|
2
5
|
export declare enum Side {
|
|
3
6
|
left = "left",
|
|
@@ -49,11 +52,37 @@ export declare enum AnchorTarget {
|
|
|
49
52
|
_parent = "_parent",
|
|
50
53
|
_top = "_top"
|
|
51
54
|
}
|
|
52
|
-
export declare const INJECTION_KEY_VOLVER:
|
|
55
|
+
export declare const INJECTION_KEY_VOLVER: InjectionKey<Volver>;
|
|
53
56
|
export declare const INJECTION_KEY_BUTTON_GROUP: unique symbol;
|
|
54
57
|
export declare const INJECTION_KEY_RADIO_GROUP: unique symbol;
|
|
55
58
|
export declare const INJECTION_KEY_CHECK_GROUP: unique symbol;
|
|
56
59
|
export declare const INJECTION_KEY_ACCORDION_GROUP: unique symbol;
|
|
57
|
-
export declare const INJECTION_KEY_DROPDOWN_TRIGGER:
|
|
58
|
-
|
|
59
|
-
|
|
60
|
+
export declare const INJECTION_KEY_DROPDOWN_TRIGGER: InjectionKey<{
|
|
61
|
+
id?: Ref<string | number> | undefined;
|
|
62
|
+
reference?: Ref<HTMLElement | null> | undefined;
|
|
63
|
+
bus?: Emitter<{
|
|
64
|
+
click: Event;
|
|
65
|
+
mouseover: Event;
|
|
66
|
+
mouseleave: Event;
|
|
67
|
+
}> | undefined;
|
|
68
|
+
expanded?: Ref<boolean> | undefined;
|
|
69
|
+
aria?: Ref<{
|
|
70
|
+
'aria-controls': string;
|
|
71
|
+
'aria-haspopup': boolean;
|
|
72
|
+
'aria-expanded': boolean;
|
|
73
|
+
}> | undefined;
|
|
74
|
+
}>;
|
|
75
|
+
export declare const INJECTION_KEY_DROPDOWN_ITEM: InjectionKey<{
|
|
76
|
+
role?: Ref<"option" | "presentation"> | undefined;
|
|
77
|
+
expanded?: Ref<boolean> | undefined;
|
|
78
|
+
}>;
|
|
79
|
+
export declare const INJECTION_KEY_DROPDOWN_ACTION: InjectionKey<{
|
|
80
|
+
role?: Ref<"button" | "link" | "menuitem"> | undefined;
|
|
81
|
+
expanded?: Ref<boolean> | undefined;
|
|
82
|
+
}>;
|
|
83
|
+
export declare const INJECTION_KEY_ALERT_GROUP: InjectionKey<{
|
|
84
|
+
name?: Ref<string | undefined> | undefined;
|
|
85
|
+
bus?: Emitter<{
|
|
86
|
+
close: string;
|
|
87
|
+
}> | undefined;
|
|
88
|
+
}>;
|
|
@@ -183,11 +183,11 @@ const ModifiersProps = {
|
|
|
183
183
|
default: false
|
|
184
184
|
},
|
|
185
185
|
/**
|
|
186
|
-
*
|
|
186
|
+
* Keep open dropdown on click outside
|
|
187
187
|
*/
|
|
188
|
-
|
|
188
|
+
keepOpen: {
|
|
189
189
|
type: Boolean,
|
|
190
|
-
default:
|
|
190
|
+
default: false
|
|
191
191
|
},
|
|
192
192
|
/**
|
|
193
193
|
* Autofocus first item on dropdown open
|
|
@@ -183,11 +183,11 @@ const ModifiersProps = {
|
|
|
183
183
|
default: false
|
|
184
184
|
},
|
|
185
185
|
/**
|
|
186
|
-
*
|
|
186
|
+
* Keep open dropdown on click outside
|
|
187
187
|
*/
|
|
188
|
-
|
|
188
|
+
keepOpen: {
|
|
189
189
|
type: Boolean,
|
|
190
|
-
default:
|
|
190
|
+
default: false
|
|
191
191
|
},
|
|
192
192
|
/**
|
|
193
193
|
* Autofocus first item on dropdown open
|