@volverjs/ui-vue 0.0.6-beta.6 → 0.0.6
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 +11 -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 +39 -29
- 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 +154 -101
- package/dist/components/VvCheckbox/VvCheckbox.umd.js +1 -1
- package/dist/components/VvCheckbox/VvCheckbox.vue.d.ts +46 -10
- package/dist/components/VvCheckbox/index.d.ts +8 -3
- package/dist/components/VvCheckboxGroup/VvCheckboxGroup.es.js +190 -104
- package/dist/components/VvCheckboxGroup/VvCheckboxGroup.umd.js +1 -1
- package/dist/components/VvCheckboxGroup/VvCheckboxGroup.vue.d.ts +44 -8
- package/dist/components/VvCheckboxGroup/index.d.ts +8 -3
- package/dist/components/VvCombobox/VvCombobox.es.js +271 -174
- package/dist/components/VvCombobox/VvCombobox.umd.js +1 -1
- package/dist/components/VvCombobox/VvCombobox.vue.d.ts +73 -37
- package/dist/components/VvCombobox/index.d.ts +13 -7
- package/dist/components/VvDialog/VvDialog.es.js +44 -33
- 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 +39 -25
- package/dist/components/VvDropdown/VvDropdown.umd.js +1 -1
- package/dist/components/VvDropdown/VvDropdown.vue.d.ts +21 -17
- 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.es.js +25 -19
- package/dist/components/VvIcon/VvIcon.umd.js +1 -1
- package/dist/components/VvIcon/VvIcon.vue.d.ts +3 -3
- package/dist/components/VvIcon/index.d.ts +2 -2
- 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 +165 -141
- package/dist/components/VvInputText/VvInputText.umd.js +1 -1
- package/dist/components/VvInputText/VvInputText.vue.d.ts +46 -22
- 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 +154 -101
- package/dist/components/VvRadio/VvRadio.umd.js +1 -1
- package/dist/components/VvRadio/VvRadio.vue.d.ts +46 -10
- package/dist/components/VvRadio/index.d.ts +8 -3
- package/dist/components/VvRadioGroup/VvRadioGroup.es.js +190 -104
- package/dist/components/VvRadioGroup/VvRadioGroup.umd.js +1 -1
- package/dist/components/VvRadioGroup/VvRadioGroup.vue.d.ts +44 -8
- package/dist/components/VvRadioGroup/index.d.ts +8 -3
- package/dist/components/VvSelect/VvSelect.es.js +166 -140
- package/dist/components/VvSelect/VvSelect.umd.js +1 -1
- package/dist/components/VvSelect/VvSelect.vue.d.ts +42 -18
- 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 +163 -139
- package/dist/components/VvTextarea/VvTextarea.umd.js +1 -1
- package/dist/components/VvTextarea/VvTextarea.vue.d.ts +40 -16
- 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 +38 -12
- package/dist/components/index.es.js +1066 -768
- 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/useOptions.d.ts +2 -2
- 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 +38 -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 +68 -52
- 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/VvCheckbox/VvCheckbox.vue +23 -2
- package/src/components/VvCheckboxGroup/VvCheckboxGroup.vue +15 -2
- package/src/components/VvCombobox/VvCombobox.vue +41 -24
- 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 +23 -5
- package/src/components/VvDropdown/VvDropdownItem.vue +2 -2
- package/src/components/VvIcon/VvIcon.vue +37 -34
- package/src/components/VvIcon/index.ts +2 -2
- package/src/components/VvInputText/VvInputText.vue +26 -9
- package/src/components/VvRadio/VvRadio.vue +23 -2
- package/src/components/VvRadioGroup/VvRadioGroup.vue +15 -2
- package/src/components/VvSelect/VvSelect.vue +26 -9
- package/src/components/VvTextarea/VvTextarea.vue +26 -9
- package/src/components/common/HintSlot.ts +129 -170
- 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/useOptions.ts +9 -7
- package/src/composables/useVolver.ts +1 -2
- package/src/constants.ts +42 -4
- package/src/props/index.ts +5 -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,4 +1,4 @@
|
|
|
1
|
-
import { inject, provide,
|
|
1
|
+
import { inject, provide, ref, defineComponent, watch, openBlock, createElementBlock, mergeProps, unref, renderSlot, computed, toRefs, createBlock, normalizeClass, withCtx, createElementVNode, normalizeProps, guardReactiveProps, createTextVNode, toDisplayString } from "vue";
|
|
2
2
|
import "mitt";
|
|
3
3
|
import { useElementHover, useFocus, useFocusWithin } from "@vueuse/core";
|
|
4
4
|
var Side = /* @__PURE__ */ ((Side2) => {
|
|
@@ -43,8 +43,12 @@ var AnchorTarget = /* @__PURE__ */ ((AnchorTarget2) => {
|
|
|
43
43
|
AnchorTarget2["_top"] = "_top";
|
|
44
44
|
return AnchorTarget2;
|
|
45
45
|
})(AnchorTarget || {});
|
|
46
|
-
const INJECTION_KEY_DROPDOWN_ITEM = Symbol.for(
|
|
47
|
-
|
|
46
|
+
const INJECTION_KEY_DROPDOWN_ITEM = Symbol.for(
|
|
47
|
+
"dropdownItem"
|
|
48
|
+
);
|
|
49
|
+
const INJECTION_KEY_DROPDOWN_ACTION = Symbol.for(
|
|
50
|
+
"dropdownAction"
|
|
51
|
+
);
|
|
48
52
|
function useInjectedDropdownItem() {
|
|
49
53
|
return inject(INJECTION_KEY_DROPDOWN_ITEM, {});
|
|
50
54
|
}
|
|
@@ -52,7 +56,7 @@ function useProvideDropdownAction({
|
|
|
52
56
|
expanded
|
|
53
57
|
}) {
|
|
54
58
|
provide(INJECTION_KEY_DROPDOWN_ACTION, {
|
|
55
|
-
role: ActionRoles.menuitem,
|
|
59
|
+
role: ref(ActionRoles.menuitem),
|
|
56
60
|
expanded
|
|
57
61
|
});
|
|
58
62
|
}
|
|
@@ -74,7 +78,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
74
78
|
}
|
|
75
79
|
});
|
|
76
80
|
return (_ctx, _cache) => {
|
|
77
|
-
return openBlock(), createElementBlock("
|
|
81
|
+
return openBlock(), createElementBlock("div", mergeProps({ role: unref(role) }, {
|
|
78
82
|
ref_key: "element",
|
|
79
83
|
ref: element,
|
|
80
84
|
class: ["vv-dropdown__item", { "focus-visible": unref(focused) || unref(focusedWithin) }]
|
|
@@ -244,11 +248,11 @@ const UnselectableProps = {
|
|
|
244
248
|
default: false
|
|
245
249
|
},
|
|
246
250
|
/**
|
|
247
|
-
*
|
|
251
|
+
* Keep open dropdown on click outside
|
|
248
252
|
*/
|
|
249
|
-
|
|
253
|
+
keepOpen: {
|
|
250
254
|
type: Boolean,
|
|
251
|
-
default:
|
|
255
|
+
default: false
|
|
252
256
|
},
|
|
253
257
|
/**
|
|
254
258
|
* Autofocus first item on dropdown open
|
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("vue"),require("mitt"),require("@vueuse/core")):"function"==typeof define&&define.amd?define(["vue","mitt","@vueuse/core"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).VvDropdownOption=t(e.vue,null,e.core)}(this,(function(e,t,o){"use strict";var n=(e=>(e.left="left",e.right="right",e.top="top",e.bottom="bottom",e))(n||{}),l=(e=>(e.before="before",e.after="after",e))(l||{}),r=(e=>(e.button="button",e.submit="submit",e.reset="reset",e))(r||{}),s=(e=>(e.button="button",e.link="link",e.menuitem="menuitem",e))(s||{});const d=Symbol.for("dropdownItem"),i=Symbol.for("dropdownAction");const a=e.defineComponent({name:"VvDropdownItem",setup(t){const{role:n,expanded:l}=e.inject(d,{}),r=e.ref(null);!function({expanded:t}){e.provide(i,{role:s.menuitem,expanded:t})}({expanded:l});const a=o.useElementHover(r),{focused:u}=o.useFocus(r),{focused:c}=o.useFocusWithin(r);return e.watch(a,(e=>{e&&(u.value=!0)})),(t,o)=>(e.openBlock(),e.createElementBlock("
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("vue"),require("mitt"),require("@vueuse/core")):"function"==typeof define&&define.amd?define(["vue","mitt","@vueuse/core"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).VvDropdownOption=t(e.vue,null,e.core)}(this,(function(e,t,o){"use strict";var n=(e=>(e.left="left",e.right="right",e.top="top",e.bottom="bottom",e))(n||{}),l=(e=>(e.before="before",e.after="after",e))(l||{}),r=(e=>(e.button="button",e.submit="submit",e.reset="reset",e))(r||{}),s=(e=>(e.button="button",e.link="link",e.menuitem="menuitem",e))(s||{});const d=Symbol.for("dropdownItem"),i=Symbol.for("dropdownAction");const a=e.defineComponent({name:"VvDropdownItem",setup(t){const{role:n,expanded:l}=e.inject(d,{}),r=e.ref(null);!function({expanded:t}){e.provide(i,{role:e.ref(s.menuitem),expanded:t})}({expanded:l});const a=o.useElementHover(r),{focused:u}=o.useFocus(r),{focused:c}=o.useFocusWithin(r);return e.watch(a,(e=>{e&&(u.value=!0)})),(t,o)=>(e.openBlock(),e.createElementBlock("div",e.mergeProps({role:e.unref(n)},{ref_key:"element",ref:r,class:["vv-dropdown__item",{"focus-visible":e.unref(u)||e.unref(c)}]}),[e.renderSlot(t.$slots,"default")],16))}}),u={disabled:Boolean},c={selected:Boolean},f=(Boolean,Boolean,{modifiers:[String,Array]});l.before;const p={unselectable:{type:Boolean,default:!0}};n.bottom,Boolean,Boolean,Boolean,Boolean,Boolean,Boolean,Boolean,Boolean,r.button;const b=["title"];return e.defineComponent({name:"VvDropdownOption",props:{...u,...c,...p,...f,deselectHintLabel:{type:String},selectHintLabel:{type:String},selectedHintLabel:{type:String}},setup(t){const o=t,{modifiers:n}=e.toRefs(o),l=function(t,o,n){return e.computed((()=>{const l={[t]:!0},r="string"==typeof(null==o?void 0:o.value)?o.value.split(" "):null==o?void 0:o.value;return r&&Array.isArray(r)&&r.forEach((e=>{e&&(l[`${t}--${e}`]=!0)})),n&&Object.keys(n.value).forEach((o=>{l[`${t}--${o}`]=e.unref(n.value[o])})),l}))}("vv-dropdown-option",n,e.computed((()=>({disabled:o.disabled,selected:o.selected,unselectable:o.unselectable&&o.selected})))),r=e.computed((()=>o.selected?o.unselectable?o.deselectHintLabel:o.selectedHintLabel:o.disabled?void 0:o.selectHintLabel));return(t,o)=>(e.openBlock(),e.createBlock(a,{class:e.normalizeClass(e.unref(l)),tabindex:t.disabled?-1:0,"aria-selected":t.selected,"aria-disabled":t.disabled},{default:e.withCtx((()=>[e.renderSlot(t.$slots,"default"),e.createElementVNode("span",{class:"vv-dropdown-option__hint",title:e.unref(r)},[e.renderSlot(t.$slots,"hint",e.normalizeProps(e.guardReactiveProps({disabled:t.disabled,selected:t.selected,unselectable:t.unselectable})),(()=>[e.createTextVNode(e.toDisplayString(e.unref(r)),1)]))],8,b)])),_:3},8,["class","tabindex","aria-selected","aria-disabled"]))}})}));
|
|
@@ -129,6 +129,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
129
129
|
props: VvIconProps,
|
|
130
130
|
setup(__props) {
|
|
131
131
|
const props = __props;
|
|
132
|
+
const hasRotate = computed(() => {
|
|
133
|
+
if (typeof props.rotate === "string") {
|
|
134
|
+
return parseFloat(props.rotate);
|
|
135
|
+
}
|
|
136
|
+
return props.rotate;
|
|
137
|
+
});
|
|
132
138
|
const show = ref(true);
|
|
133
139
|
const volver = useVolver();
|
|
134
140
|
const { modifiers } = toRefs(props);
|
|
@@ -137,25 +143,24 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
137
143
|
return props.provider || (volver == null ? void 0 : volver.iconsProvider);
|
|
138
144
|
});
|
|
139
145
|
const icon = computed(() => {
|
|
140
|
-
const
|
|
141
|
-
const iconName = `@${provider.value}:${props.prefix}:${
|
|
142
|
-
if (iconExists(
|
|
143
|
-
return _name;
|
|
144
|
-
} else if (iconExists(iconName)) {
|
|
146
|
+
const name = props.name ?? "";
|
|
147
|
+
const iconName = `@${provider.value}:${props.prefix}:${name}`;
|
|
148
|
+
if (iconExists(iconName)) {
|
|
145
149
|
return iconName;
|
|
146
|
-
} else {
|
|
147
|
-
return (volver == null ? void 0 : volver.iconsCollections.find(
|
|
148
|
-
(iconsCollection) => {
|
|
149
|
-
const icon2 = `@${provider.value}:${iconsCollection.prefix}:${_name}`;
|
|
150
|
-
if (iconExists(icon2)) {
|
|
151
|
-
return icon2;
|
|
152
|
-
}
|
|
153
|
-
}
|
|
154
|
-
)) || _name;
|
|
155
150
|
}
|
|
151
|
+
const iconsCollection = volver == null ? void 0 : volver.iconsCollections.find(
|
|
152
|
+
(iconsCollection2) => {
|
|
153
|
+
const icon2 = `@${provider.value}:${iconsCollection2.prefix}:${name}`;
|
|
154
|
+
return iconExists(icon2);
|
|
155
|
+
}
|
|
156
|
+
);
|
|
157
|
+
if (iconsCollection) {
|
|
158
|
+
return `@${provider.value}:${iconsCollection.prefix}:${name}`;
|
|
159
|
+
}
|
|
160
|
+
return name;
|
|
156
161
|
});
|
|
157
162
|
function getSvgContent(svg) {
|
|
158
|
-
let dom
|
|
163
|
+
let dom;
|
|
159
164
|
if (typeof window === "undefined") {
|
|
160
165
|
const { JSDOM } = require("jsdom");
|
|
161
166
|
dom = new JSDOM().window;
|
|
@@ -186,12 +191,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
186
191
|
show.value = true;
|
|
187
192
|
}
|
|
188
193
|
}).catch((e) => {
|
|
189
|
-
throw new Error(`
|
|
194
|
+
throw new Error(`Error during fetch icon: ${e == null ? void 0 : e.message}`);
|
|
190
195
|
});
|
|
191
|
-
} else if (props.svg) {
|
|
192
|
-
addIconFromSvg(props.svg);
|
|
193
196
|
}
|
|
194
197
|
}
|
|
198
|
+
if (props.svg) {
|
|
199
|
+
addIconFromSvg(props.svg);
|
|
200
|
+
}
|
|
195
201
|
return (_ctx, _cache) => {
|
|
196
202
|
return unref(show) ? (openBlock(), createBlock(unref(Icon), mergeProps({
|
|
197
203
|
key: 0,
|
|
@@ -203,7 +209,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
203
209
|
horizontalFlip: _ctx.horizontalFlip,
|
|
204
210
|
verticalFlip: _ctx.verticalFlip,
|
|
205
211
|
flip: _ctx.flip,
|
|
206
|
-
rotate:
|
|
212
|
+
rotate: unref(hasRotate),
|
|
207
213
|
color: _ctx.color,
|
|
208
214
|
onLoad: _ctx.onLoad,
|
|
209
215
|
icon: unref(icon)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?module.exports=n(require("vue"),require("@iconify/vue")):"function"==typeof define&&define.amd?define(["vue","@iconify/vue"],n):(e="undefined"!=typeof globalThis?globalThis:e||self).VvIcon=n(e.vue,e.vue$1)}(this,(function(e,n){"use strict";const
|
|
1
|
+
!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?module.exports=n(require("vue"),require("@iconify/vue")):"function"==typeof define&&define.amd?define(["vue","@iconify/vue"],n):(e="undefined"!=typeof globalThis?globalThis:e||self).VvIcon=n(e.vue,e.vue$1)}(this,(function(e,n){"use strict";const o={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]}},r=Symbol.for("volver");return e.defineComponent({name:"VvIcon",props:o,setup(o){const i=o,t=e.computed((()=>"string"==typeof i.rotate?parseFloat(i.rotate):i.rotate)),l=e.ref(!0),u=e.inject(r),{modifiers:c}=e.toRefs(i),a=function(n,o,r){return e.computed((()=>{const i={[n]:!0},t="string"==typeof(null==o?void 0:o.value)?o.value.split(" "):null==o?void 0:o.value;return t&&Array.isArray(t)&&t.forEach((e=>{e&&(i[`${n}--${e}`]=!0)})),r&&Object.keys(r.value).forEach((o=>{i[`${n}--${o}`]=e.unref(r.value[o])})),i}))}("vv-icon",c),s=e.computed((()=>i.provider||(null==u?void 0:u.iconsProvider))),f=e.computed((()=>{const e=i.name??"",o=`@${s.value}:${i.prefix}:${e}`;if(n.iconExists(o))return o;const r=null==u?void 0:u.iconsCollections.find((o=>{const r=`@${s.value}:${o.prefix}:${e}`;return n.iconExists(r)}));return r?`@${s.value}:${r.prefix}:${e}`:e}));function d(e){const o=function(e){let n;if("undefined"==typeof window){const{JSDOM:e}=require("jsdom");n=(new e).window}return(n?new n.DOMParser:new window.DOMParser).parseFromString(e,"text/html").querySelector("svg")}(e),r=(null==o?void 0:o.innerHTML.trim())||"";o&&r&&n.addIcon(`@${s.value}:${i.prefix}:${i.name}`,{body:r,height:o.viewBox.baseVal.height,width:o.viewBox.baseVal.width})}return u&&i.src&&!n.iconExists(`@${s.value}:${i.prefix}:${i.name}`)&&(l.value=!1,u.fetchIcon(i.src).then((e=>{e&&(d(e),l.value=!0)})).catch((e=>{throw new Error(`Error during fetch icon: ${null==e?void 0:e.message}`)}))),i.svg&&d(i.svg),(o,r)=>e.unref(l)?(e.openBlock(),e.createBlock(e.unref(n.Icon),e.mergeProps({key:0,class:e.unref(a)},{inline:o.inline,width:o.width,height:o.height,horizontalFlip:o.horizontalFlip,verticalFlip:o.verticalFlip,flip:o.flip,rotate:e.unref(t),color:o.color,onLoad:o.onLoad,icon:e.unref(f)}),null,16,["class"])):e.createCommentVNode("",!0)}})}));
|
|
@@ -24,7 +24,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
24
24
|
mode: globalThis.PropType<import("@iconify/vue").IconifyRenderMode>;
|
|
25
25
|
inline: BooleanConstructor;
|
|
26
26
|
rotate: (StringConstructor | NumberConstructor)[];
|
|
27
|
-
onLoad:
|
|
27
|
+
onLoad: globalThis.PropType<import("@iconify/vue").IconifyIconOnLoad>;
|
|
28
28
|
svg: StringConstructor;
|
|
29
29
|
modifiers: {
|
|
30
30
|
type: globalThis.PropType<string | string[]>;
|
|
@@ -55,7 +55,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
55
55
|
mode: globalThis.PropType<import("@iconify/vue").IconifyRenderMode>;
|
|
56
56
|
inline: BooleanConstructor;
|
|
57
57
|
rotate: (StringConstructor | NumberConstructor)[];
|
|
58
|
-
onLoad:
|
|
58
|
+
onLoad: globalThis.PropType<import("@iconify/vue").IconifyIconOnLoad>;
|
|
59
59
|
svg: StringConstructor;
|
|
60
60
|
modifiers: {
|
|
61
61
|
type: globalThis.PropType<string | string[]>;
|
|
@@ -65,5 +65,5 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
65
65
|
horizontalFlip: boolean;
|
|
66
66
|
verticalFlip: boolean;
|
|
67
67
|
inline: boolean;
|
|
68
|
-
}>;
|
|
68
|
+
}, {}>;
|
|
69
69
|
export default _default;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { PropType } from 'vue';
|
|
2
|
-
import type { IconifyRenderMode } from '@iconify/vue';
|
|
2
|
+
import type { IconifyIconOnLoad, IconifyRenderMode } from '@iconify/vue';
|
|
3
3
|
export declare enum IconPrefix {
|
|
4
4
|
simple = "simple",
|
|
5
5
|
normal = "normal",
|
|
@@ -86,7 +86,7 @@ export declare const VvIconProps: {
|
|
|
86
86
|
/**
|
|
87
87
|
* A callback that is called when icon data has been loaded
|
|
88
88
|
*/
|
|
89
|
-
onLoad:
|
|
89
|
+
onLoad: PropType<IconifyIconOnLoad>;
|
|
90
90
|
/**
|
|
91
91
|
* SVG icon string
|
|
92
92
|
*/
|
|
@@ -1,138 +1,122 @@
|
|
|
1
|
-
import { unref,
|
|
1
|
+
import { unref, computed, defineComponent, h, inject, ref, toRefs, openBlock, createBlock, mergeProps, createCommentVNode, watch, useSlots, createElementBlock, normalizeClass, toDisplayString, createElementVNode, renderSlot, normalizeProps, guardReactiveProps, withModifiers, withDirectives, isRef, vModelDynamic, createTextVNode, createVNode, createSlots, withCtx } from "vue";
|
|
2
2
|
import { Mask } from "maska";
|
|
3
|
-
import { toReactive, useFocus, useElementVisibility } from "@vueuse/core";
|
|
4
3
|
import { iconExists, Icon, addIcon } from "@iconify/vue";
|
|
5
4
|
import { nanoid } from "nanoid";
|
|
6
|
-
|
|
7
|
-
if (data && Object.keys(data).length && field) {
|
|
8
|
-
if (field.indexOf(".") === -1) {
|
|
9
|
-
return data[field];
|
|
10
|
-
} else {
|
|
11
|
-
const fields = field.split(".");
|
|
12
|
-
let value = data;
|
|
13
|
-
for (let i = 0, len = fields.length; i < len; ++i) {
|
|
14
|
-
if (data == null) {
|
|
15
|
-
return null;
|
|
16
|
-
}
|
|
17
|
-
value = value[fields[i]];
|
|
18
|
-
}
|
|
19
|
-
return value;
|
|
20
|
-
}
|
|
21
|
-
} else {
|
|
22
|
-
return null;
|
|
23
|
-
}
|
|
24
|
-
}
|
|
5
|
+
import { useFocus, useElementVisibility } from "@vueuse/core";
|
|
25
6
|
function isEmpty(value) {
|
|
26
7
|
return ((value2) => value2 === null || value2 === void 0 || value2 === "" || Array.isArray(value2) && value2.length === 0 || !(value2 instanceof Date) && typeof value2 === "object" && Object.keys(value2).length === 0)(unref(value));
|
|
27
8
|
}
|
|
28
9
|
function isString(value) {
|
|
29
10
|
return typeof value === "string" || value instanceof String;
|
|
30
11
|
}
|
|
31
|
-
function joinLines(
|
|
32
|
-
if (Array.isArray(
|
|
33
|
-
return
|
|
12
|
+
function joinLines(items) {
|
|
13
|
+
if (Array.isArray(items)) {
|
|
14
|
+
return items.filter((item) => isString(item)).join(" ");
|
|
34
15
|
}
|
|
35
|
-
return
|
|
16
|
+
return items;
|
|
36
17
|
}
|
|
37
|
-
function HintSlotFactory(
|
|
38
|
-
const
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
const {
|
|
45
|
-
hintLabel,
|
|
46
|
-
modelValue,
|
|
47
|
-
valid,
|
|
48
|
-
validLabel,
|
|
49
|
-
invalid,
|
|
50
|
-
invalidLabel,
|
|
51
|
-
...otherProps
|
|
52
|
-
} = toRefs(parentProps);
|
|
53
|
-
const loading = resolveFieldData(otherProps, "loading");
|
|
54
|
-
const loadingLabel = resolveFieldData(otherProps, "loadingLabel");
|
|
55
|
-
const hasInvalid = computed(() => {
|
|
56
|
-
if (!invalid.value) {
|
|
57
|
-
return false;
|
|
58
|
-
}
|
|
59
|
-
if (invalid.value && invalidSlot) {
|
|
60
|
-
return true;
|
|
61
|
-
}
|
|
62
|
-
if ((invalidLabel == null ? void 0 : invalidLabel.value) && Array.isArray(invalidLabel.value) && invalidLabel.value.length > 0) {
|
|
63
|
-
return true;
|
|
64
|
-
}
|
|
65
|
-
if ((invalidLabel == null ? void 0 : invalidLabel.value) && !isEmpty(invalidLabel)) {
|
|
66
|
-
return true;
|
|
67
|
-
}
|
|
68
|
-
return false;
|
|
69
|
-
});
|
|
70
|
-
const hasHint = computed(
|
|
71
|
-
() => !!(hintLabel && hintLabel.value || hintSlot)
|
|
18
|
+
function HintSlotFactory(props, slots) {
|
|
19
|
+
const invalidLabel = computed(() => joinLines(props.invalidLabel));
|
|
20
|
+
const validLabel = computed(() => joinLines(props.validLabel));
|
|
21
|
+
const loadingLabel = computed(() => props.loadingLabel);
|
|
22
|
+
const hintLabel = computed(() => props.hintLabel);
|
|
23
|
+
const hasLoadingLabelOrSlot = computed(
|
|
24
|
+
() => Boolean(props.loading && (slots.loading || loadingLabel.value))
|
|
72
25
|
);
|
|
73
|
-
const
|
|
74
|
-
() =>
|
|
26
|
+
const hasInvalidLabelOrSlot = computed(
|
|
27
|
+
() => !hasLoadingLabelOrSlot.value && Boolean(props.invalid && (slots.invalid || invalidLabel.value))
|
|
75
28
|
);
|
|
76
|
-
const
|
|
77
|
-
() =>
|
|
29
|
+
const hasValidLabelOrSlot = computed(
|
|
30
|
+
() => !hasLoadingLabelOrSlot.value && !hasInvalidLabelOrSlot.value && Boolean(props.valid && (slots.valid || validLabel.value))
|
|
31
|
+
);
|
|
32
|
+
const hasHintLabelOrSlot = computed(
|
|
33
|
+
() => !hasLoadingLabelOrSlot.value && !hasInvalidLabelOrSlot.value && !hasValidLabelOrSlot.value && Boolean(slots.hint || hintLabel.value)
|
|
78
34
|
);
|
|
79
35
|
const isVisible = computed(
|
|
80
|
-
() =>
|
|
36
|
+
() => hasInvalidLabelOrSlot.value || hasValidLabelOrSlot.value || hasLoadingLabelOrSlot.value || hasHintLabelOrSlot.value
|
|
81
37
|
);
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
38
|
+
const hintSlotScope = computed(() => ({
|
|
39
|
+
modelValue: props.modelValue,
|
|
40
|
+
valid: props.valid,
|
|
41
|
+
invalid: props.invalid,
|
|
42
|
+
loading: props.loading
|
|
43
|
+
}));
|
|
44
|
+
const HintSlot = defineComponent({
|
|
45
|
+
name: "HintSlot",
|
|
46
|
+
props: {
|
|
47
|
+
tag: {
|
|
48
|
+
type: String,
|
|
49
|
+
default: "small"
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
setup() {
|
|
53
|
+
return {
|
|
54
|
+
isVisible,
|
|
55
|
+
invalidLabel,
|
|
56
|
+
validLabel,
|
|
57
|
+
loadingLabel,
|
|
58
|
+
hintLabel,
|
|
59
|
+
hasInvalidLabelOrSlot,
|
|
60
|
+
hasValidLabelOrSlot,
|
|
61
|
+
hasLoadingLabelOrSlot,
|
|
62
|
+
hasHintLabelOrSlot
|
|
63
|
+
};
|
|
64
|
+
},
|
|
65
|
+
render() {
|
|
66
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
67
|
+
if (this.isVisible) {
|
|
68
|
+
let role;
|
|
69
|
+
if (this.hasInvalidLabelOrSlot) {
|
|
70
|
+
role = "alert";
|
|
93
71
|
}
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
hintLabel,
|
|
99
|
-
modelValue,
|
|
100
|
-
valid,
|
|
101
|
-
validLabel,
|
|
102
|
-
invalid,
|
|
103
|
-
invalidLabel,
|
|
104
|
-
loading,
|
|
105
|
-
loadingLabel,
|
|
106
|
-
...props.params
|
|
107
|
-
});
|
|
108
|
-
if (invalid == null ? void 0 : invalid.value) {
|
|
109
|
-
return (invalidSlot == null ? void 0 : invalidSlot(slotProps)) || joinLines(invalidLabel == null ? void 0 : invalidLabel.value) || (hintLabel == null ? void 0 : hintLabel.value);
|
|
110
|
-
}
|
|
111
|
-
if (valid == null ? void 0 : valid.value)
|
|
112
|
-
return (validSlot == null ? void 0 : validSlot(slotProps)) || joinLines(validLabel == null ? void 0 : validLabel.value) || (hintLabel == null ? void 0 : hintLabel.value);
|
|
113
|
-
if (loading == null ? void 0 : loading.value)
|
|
114
|
-
return (loadingSlot == null ? void 0 : loadingSlot(slotProps)) || joinLines(loadingLabel == null ? void 0 : loadingLabel.value) || (hintLabel == null ? void 0 : hintLabel.value);
|
|
115
|
-
return (hintSlot == null ? void 0 : hintSlot(slotProps)) || joinLines(hintLabel == null ? void 0 : hintLabel.value) || (hintLabel == null ? void 0 : hintLabel.value);
|
|
116
|
-
});
|
|
117
|
-
return {
|
|
118
|
-
isVisible,
|
|
119
|
-
hasInvalid,
|
|
120
|
-
hasValid,
|
|
121
|
-
hintContent
|
|
122
|
-
};
|
|
123
|
-
},
|
|
124
|
-
render() {
|
|
125
|
-
if (this.isVisible) {
|
|
72
|
+
if (this.hasValidLabelOrSlot) {
|
|
73
|
+
role = "status";
|
|
74
|
+
}
|
|
75
|
+
if (this.hasLoadingLabelOrSlot) {
|
|
126
76
|
return h(
|
|
127
|
-
|
|
77
|
+
this.tag,
|
|
128
78
|
{
|
|
129
|
-
role
|
|
79
|
+
role
|
|
130
80
|
},
|
|
131
|
-
this.
|
|
81
|
+
((_b = (_a = this.$slots).loading) == null ? void 0 : _b.call(_a)) ?? this.loadingLabel
|
|
132
82
|
);
|
|
133
83
|
}
|
|
84
|
+
if (this.hasInvalidLabelOrSlot) {
|
|
85
|
+
return h(
|
|
86
|
+
this.tag,
|
|
87
|
+
{
|
|
88
|
+
role
|
|
89
|
+
},
|
|
90
|
+
((_d = (_c = this.$slots).invalid) == null ? void 0 : _d.call(_c)) ?? this.$slots.invalid ?? this.invalidLabel
|
|
91
|
+
);
|
|
92
|
+
}
|
|
93
|
+
if (this.hasValidLabelOrSlot) {
|
|
94
|
+
return h(
|
|
95
|
+
this.tag,
|
|
96
|
+
{
|
|
97
|
+
role
|
|
98
|
+
},
|
|
99
|
+
((_f = (_e = this.$slots).valid) == null ? void 0 : _f.call(_e)) ?? this.validLabel
|
|
100
|
+
);
|
|
101
|
+
}
|
|
102
|
+
return h(
|
|
103
|
+
this.tag,
|
|
104
|
+
{
|
|
105
|
+
role
|
|
106
|
+
},
|
|
107
|
+
((_h = (_g = this.$slots).hint) == null ? void 0 : _h.call(_g)) ?? this.$slots.hint ?? this.hintLabel
|
|
108
|
+
);
|
|
134
109
|
}
|
|
110
|
+
return null;
|
|
135
111
|
}
|
|
112
|
+
});
|
|
113
|
+
return {
|
|
114
|
+
hasInvalidLabelOrSlot,
|
|
115
|
+
hasHintLabelOrSlot,
|
|
116
|
+
hasValidLabelOrSlot,
|
|
117
|
+
hasLoadingLabelOrSlot,
|
|
118
|
+
hintSlotScope,
|
|
119
|
+
HintSlot
|
|
136
120
|
};
|
|
137
121
|
}
|
|
138
122
|
const VvIconProps = {
|
|
@@ -300,6 +284,12 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
300
284
|
props: VvIconProps,
|
|
301
285
|
setup(__props) {
|
|
302
286
|
const props = __props;
|
|
287
|
+
const hasRotate = computed(() => {
|
|
288
|
+
if (typeof props.rotate === "string") {
|
|
289
|
+
return parseFloat(props.rotate);
|
|
290
|
+
}
|
|
291
|
+
return props.rotate;
|
|
292
|
+
});
|
|
303
293
|
const show = ref(true);
|
|
304
294
|
const volver = useVolver();
|
|
305
295
|
const { modifiers } = toRefs(props);
|
|
@@ -308,25 +298,24 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
308
298
|
return props.provider || (volver == null ? void 0 : volver.iconsProvider);
|
|
309
299
|
});
|
|
310
300
|
const icon = computed(() => {
|
|
311
|
-
const
|
|
312
|
-
const iconName = `@${provider.value}:${props.prefix}:${
|
|
313
|
-
if (iconExists(
|
|
314
|
-
return _name;
|
|
315
|
-
} else if (iconExists(iconName)) {
|
|
301
|
+
const name = props.name ?? "";
|
|
302
|
+
const iconName = `@${provider.value}:${props.prefix}:${name}`;
|
|
303
|
+
if (iconExists(iconName)) {
|
|
316
304
|
return iconName;
|
|
317
|
-
} else {
|
|
318
|
-
return (volver == null ? void 0 : volver.iconsCollections.find(
|
|
319
|
-
(iconsCollection) => {
|
|
320
|
-
const icon2 = `@${provider.value}:${iconsCollection.prefix}:${_name}`;
|
|
321
|
-
if (iconExists(icon2)) {
|
|
322
|
-
return icon2;
|
|
323
|
-
}
|
|
324
|
-
}
|
|
325
|
-
)) || _name;
|
|
326
305
|
}
|
|
306
|
+
const iconsCollection = volver == null ? void 0 : volver.iconsCollections.find(
|
|
307
|
+
(iconsCollection2) => {
|
|
308
|
+
const icon2 = `@${provider.value}:${iconsCollection2.prefix}:${name}`;
|
|
309
|
+
return iconExists(icon2);
|
|
310
|
+
}
|
|
311
|
+
);
|
|
312
|
+
if (iconsCollection) {
|
|
313
|
+
return `@${provider.value}:${iconsCollection.prefix}:${name}`;
|
|
314
|
+
}
|
|
315
|
+
return name;
|
|
327
316
|
});
|
|
328
317
|
function getSvgContent(svg) {
|
|
329
|
-
let dom
|
|
318
|
+
let dom;
|
|
330
319
|
if (typeof window === "undefined") {
|
|
331
320
|
const { JSDOM } = require("jsdom");
|
|
332
321
|
dom = new JSDOM().window;
|
|
@@ -357,12 +346,13 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
357
346
|
show.value = true;
|
|
358
347
|
}
|
|
359
348
|
}).catch((e) => {
|
|
360
|
-
throw new Error(`
|
|
349
|
+
throw new Error(`Error during fetch icon: ${e == null ? void 0 : e.message}`);
|
|
361
350
|
});
|
|
362
|
-
} else if (props.svg) {
|
|
363
|
-
addIconFromSvg(props.svg);
|
|
364
351
|
}
|
|
365
352
|
}
|
|
353
|
+
if (props.svg) {
|
|
354
|
+
addIconFromSvg(props.svg);
|
|
355
|
+
}
|
|
366
356
|
return (_ctx, _cache) => {
|
|
367
357
|
return unref(show) ? (openBlock(), createBlock(unref(Icon), mergeProps({
|
|
368
358
|
key: 0,
|
|
@@ -374,7 +364,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
374
364
|
horizontalFlip: _ctx.horizontalFlip,
|
|
375
365
|
verticalFlip: _ctx.verticalFlip,
|
|
376
366
|
flip: _ctx.flip,
|
|
377
|
-
rotate:
|
|
367
|
+
rotate: unref(hasRotate),
|
|
378
368
|
color: _ctx.color,
|
|
379
369
|
onLoad: _ctx.onLoad,
|
|
380
370
|
icon: unref(icon)
|
|
@@ -608,11 +598,11 @@ const IdProps = {
|
|
|
608
598
|
default: false
|
|
609
599
|
},
|
|
610
600
|
/**
|
|
611
|
-
*
|
|
601
|
+
* Keep open dropdown on click outside
|
|
612
602
|
*/
|
|
613
|
-
|
|
603
|
+
keepOpen: {
|
|
614
604
|
type: Boolean,
|
|
615
|
-
default:
|
|
605
|
+
default: false
|
|
616
606
|
},
|
|
617
607
|
/**
|
|
618
608
|
* Autofocus first item on dropdown open
|
|
@@ -1261,12 +1251,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
1261
1251
|
...__default__,
|
|
1262
1252
|
props: VvInputTextProps,
|
|
1263
1253
|
emits: VvInputTextEvents,
|
|
1264
|
-
setup(__props, { expose, emit }) {
|
|
1254
|
+
setup(__props, { expose: __expose, emit }) {
|
|
1265
1255
|
const props = __props;
|
|
1266
1256
|
const slots = useSlots();
|
|
1267
1257
|
const inputEl = ref();
|
|
1268
1258
|
const innerEl = ref();
|
|
1269
|
-
|
|
1259
|
+
__expose({ $inner: innerEl });
|
|
1270
1260
|
const {
|
|
1271
1261
|
id,
|
|
1272
1262
|
icon,
|
|
@@ -1279,7 +1269,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
1279
1269
|
loading
|
|
1280
1270
|
} = toRefs(props);
|
|
1281
1271
|
const hasId = useUniqueId(id);
|
|
1282
|
-
const
|
|
1272
|
+
const hasHintId = computed(() => `${hasId.value}-hint`);
|
|
1283
1273
|
const inputTextPlaceholder = computed(
|
|
1284
1274
|
() => props.floating && isEmpty(props.placeholder) ? " " : props.placeholder
|
|
1285
1275
|
);
|
|
@@ -1415,8 +1405,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
1415
1405
|
required: props.required,
|
|
1416
1406
|
autocomplete: props.autocomplete,
|
|
1417
1407
|
"aria-invalid": isInvalid.value,
|
|
1418
|
-
"aria-describedby":
|
|
1419
|
-
"aria-errormessage":
|
|
1408
|
+
"aria-describedby": hasHintLabelOrSlot.value ? hasHintId.value : void 0,
|
|
1409
|
+
"aria-errormessage": hasInvalidLabelOrSlot.value ? hasHintId.value : void 0
|
|
1420
1410
|
};
|
|
1421
1411
|
if (type === INPUT_TYPES.DATE || type === INPUT_TYPES.MONTH || type === INPUT_TYPES.WEEK || type === INPUT_TYPES.TIME || type === INPUT_TYPES.DATETIME_LOCAL || type === INPUT_TYPES.NUMBER) {
|
|
1422
1412
|
toReturn.step = props.step;
|
|
@@ -1445,7 +1435,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
1445
1435
|
stepDown: onStepDown,
|
|
1446
1436
|
clear: onClear
|
|
1447
1437
|
}));
|
|
1448
|
-
const {
|
|
1438
|
+
const {
|
|
1439
|
+
HintSlot,
|
|
1440
|
+
hasHintLabelOrSlot,
|
|
1441
|
+
hasInvalidLabelOrSlot,
|
|
1442
|
+
hintSlotScope
|
|
1443
|
+
} = HintSlotFactory(props, slots);
|
|
1449
1444
|
const PasswordInputActions = VvInputTextActionsFactory(
|
|
1450
1445
|
INPUT_TYPES.PASSWORD,
|
|
1451
1446
|
props
|
|
@@ -1560,9 +1555,38 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
1560
1555
|
])) : createCommentVNode("", true)
|
|
1561
1556
|
]),
|
|
1562
1557
|
createVNode(unref(HintSlot), {
|
|
1563
|
-
id: unref(
|
|
1558
|
+
id: unref(hasHintId),
|
|
1564
1559
|
class: "vv-input-text__hint"
|
|
1565
|
-
},
|
|
1560
|
+
}, createSlots({ _: 2 }, [
|
|
1561
|
+
_ctx.$slots.hint ? {
|
|
1562
|
+
name: "hint",
|
|
1563
|
+
fn: withCtx(() => [
|
|
1564
|
+
renderSlot(_ctx.$slots, "hint", normalizeProps(guardReactiveProps(unref(hintSlotScope))))
|
|
1565
|
+
]),
|
|
1566
|
+
key: "0"
|
|
1567
|
+
} : void 0,
|
|
1568
|
+
_ctx.$slots.loading ? {
|
|
1569
|
+
name: "loading",
|
|
1570
|
+
fn: withCtx(() => [
|
|
1571
|
+
renderSlot(_ctx.$slots, "loading", normalizeProps(guardReactiveProps(unref(hintSlotScope))))
|
|
1572
|
+
]),
|
|
1573
|
+
key: "1"
|
|
1574
|
+
} : void 0,
|
|
1575
|
+
_ctx.$slots.valid ? {
|
|
1576
|
+
name: "valid",
|
|
1577
|
+
fn: withCtx(() => [
|
|
1578
|
+
renderSlot(_ctx.$slots, "valid", normalizeProps(guardReactiveProps(unref(hintSlotScope))))
|
|
1579
|
+
]),
|
|
1580
|
+
key: "2"
|
|
1581
|
+
} : void 0,
|
|
1582
|
+
_ctx.$slots.invalid ? {
|
|
1583
|
+
name: "invalid",
|
|
1584
|
+
fn: withCtx(() => [
|
|
1585
|
+
renderSlot(_ctx.$slots, "invalid", normalizeProps(guardReactiveProps(unref(hintSlotScope))))
|
|
1586
|
+
]),
|
|
1587
|
+
key: "3"
|
|
1588
|
+
} : void 0
|
|
1589
|
+
]), 1032, ["id"])
|
|
1566
1590
|
], 2);
|
|
1567
1591
|
};
|
|
1568
1592
|
}
|