@volverjs/ui-vue 0.0.13 → 0.0.15
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/dist/Volver.d.ts +121 -0
- package/dist/components/VvAccordion/VvAccordion.vue.d.ts +68 -0
- package/dist/components/VvAccordion/index.d.ts +47 -0
- package/dist/components/VvAccordionGroup/VvAccordionGroup.vue.d.ts +98 -0
- package/dist/components/VvAccordionGroup/index.d.ts +54 -0
- package/dist/components/VvAction/VvAction.es.js +26 -26
- package/dist/components/VvAction/VvAction.umd.js +1 -1
- package/dist/components/VvAction/VvAction.vue.d.ts +110 -0
- package/dist/components/VvAction/index.d.ts +2 -0
- package/dist/components/VvAlert/VvAlert.es.js +43 -44
- package/dist/components/VvAlert/VvAlert.umd.js +1 -1
- package/dist/components/VvAlert/VvAlert.vue.d.ts +124 -0
- package/dist/components/VvAlert/index.d.ts +104 -0
- package/dist/components/VvAlertGroup/VvAlertGroup.es.js +54 -55
- package/dist/components/VvAlertGroup/VvAlertGroup.umd.js +1 -1
- package/dist/components/VvAlertGroup/VvAlertGroup.vue.d.ts +97 -0
- package/dist/components/VvAlertGroup/index.d.ts +47 -0
- package/dist/components/VvAvatar/VvAvatar.vue.d.ts +24 -0
- package/dist/components/VvAvatar/index.d.ts +10 -0
- package/dist/components/VvAvatarGroup/VvAvatarGroup.vue.d.ts +50 -0
- package/dist/components/VvAvatarGroup/index.d.ts +28 -0
- package/dist/components/VvBadge/VvBadge.vue.d.ts +24 -0
- package/dist/components/VvBadge/index.d.ts +7 -0
- package/dist/components/VvBreadcrumb/VvBreadcrumb.es.js +34 -34
- package/dist/components/VvBreadcrumb/VvBreadcrumb.umd.js +1 -1
- package/dist/components/VvBreadcrumb/VvBreadcrumb.vue.d.ts +39 -0
- package/dist/components/VvBreadcrumb/index.d.ts +8 -0
- package/dist/components/VvButton/VvButton.es.js +186 -187
- package/dist/components/VvButton/VvButton.umd.js +1 -1
- package/dist/components/VvButton/VvButton.vue.d.ts +221 -0
- package/dist/components/VvButton/index.d.ts +131 -0
- package/dist/components/VvButtonGroup/VvButtonGroup.vue.d.ts +84 -0
- package/dist/components/VvButtonGroup/index.d.ts +37 -0
- package/dist/components/VvCard/VvCard.vue.d.ts +30 -0
- package/dist/components/VvCard/index.d.ts +7 -0
- package/dist/components/VvCheckbox/VvCheckbox.es.js +215 -217
- package/dist/components/VvCheckbox/VvCheckbox.umd.js +1 -1
- package/dist/components/VvCheckbox/VvCheckbox.vue.d.ts +187 -0
- package/dist/components/VvCheckbox/index.d.ts +94 -0
- package/dist/components/VvCheckboxGroup/VvCheckboxGroup.es.js +235 -237
- package/dist/components/VvCheckboxGroup/VvCheckboxGroup.umd.js +1 -1
- package/dist/components/VvCheckboxGroup/VvCheckboxGroup.vue.d.ts +212 -0
- package/dist/components/VvCheckboxGroup/index.d.ts +2 -0
- package/dist/components/VvCombobox/VvCombobox.es.js +810 -813
- package/dist/components/VvCombobox/VvCombobox.umd.js +1 -1
- package/dist/components/VvCombobox/VvCombobox.vue.d.ts +346 -0
- package/dist/components/VvCombobox/index.d.ts +694 -0
- package/dist/components/VvDialog/VvDialog.vue.d.ts +73 -0
- package/dist/components/VvDialog/index.d.ts +45 -0
- package/dist/components/VvDropdown/VvDropdown.es.js +4 -4
- package/dist/components/VvDropdown/VvDropdown.umd.js +1 -1
- package/dist/components/VvDropdown/VvDropdown.vue.d.ts +258 -0
- package/dist/components/VvDropdown/VvDropdownAction.vue.d.ts +118 -0
- package/dist/components/VvDropdown/VvDropdownItem.vue.d.ts +22 -0
- package/dist/components/VvDropdown/VvDropdownOptgroup.vue.d.ts +22 -0
- package/dist/components/VvDropdown/VvDropdownOption.vue.d.ts +82 -0
- package/dist/components/VvDropdown/index.d.ts +120 -0
- package/dist/components/VvDropdownAction/VvDropdownAction.es.js +50 -50
- package/dist/components/VvDropdownAction/VvDropdownAction.umd.js +1 -1
- package/dist/components/VvIcon/VvIcon.es.js +30 -31
- package/dist/components/VvIcon/VvIcon.umd.js +1 -1
- package/dist/components/VvIcon/VvIcon.vue.d.ts +6 -0
- package/dist/components/VvIcon/index.d.ts +86 -0
- package/dist/components/VvInputFile/VvInputFile.es.js +415 -418
- package/dist/components/VvInputFile/VvInputFile.umd.js +1 -1
- package/dist/components/VvInputFile/VvInputFile.vue.d.ts +361 -0
- package/dist/components/VvInputFile/index.d.ts +204 -0
- package/dist/components/VvInputText/VvInputText.es.js +595 -588
- package/dist/components/VvInputText/VvInputText.umd.js +1 -1
- package/dist/components/VvInputText/VvInputText.vue.d.ts +524 -0
- package/dist/components/VvInputText/VvInputTextActions.d.ts +4 -0
- package/dist/components/VvInputText/index.d.ts +313 -0
- package/dist/components/VvNav/VvNav.es.js +63 -63
- package/dist/components/VvNav/VvNav.umd.js +1 -1
- package/dist/components/VvNav/VvNav.vue.d.ts +48 -0
- package/dist/components/VvNav/VvNavItem.vue.d.ts +14 -0
- package/dist/components/VvNav/VvNavSeparator.vue.d.ts +3 -0
- package/dist/components/VvNav/index.d.ts +11 -0
- package/dist/components/VvNavItem/VvNavItem.es.js +41 -41
- package/dist/components/VvNavItem/VvNavItem.umd.js +1 -1
- package/dist/components/VvProgress/VvProgress.vue.d.ts +38 -0
- package/dist/components/VvProgress/index.d.ts +33 -0
- package/dist/components/VvRadio/VvRadio.es.js +222 -224
- package/dist/components/VvRadio/VvRadio.umd.js +1 -1
- package/dist/components/VvRadio/VvRadio.vue.d.ts +179 -0
- package/dist/components/VvRadio/index.d.ts +80 -0
- package/dist/components/VvRadioGroup/VvRadioGroup.es.js +234 -236
- package/dist/components/VvRadioGroup/VvRadioGroup.umd.js +1 -1
- package/dist/components/VvRadioGroup/VvRadioGroup.vue.d.ts +212 -0
- package/dist/components/VvRadioGroup/index.d.ts +2 -0
- package/dist/components/VvSelect/VvSelect.es.js +200 -203
- package/dist/components/VvSelect/VvSelect.umd.js +1 -1
- package/dist/components/VvSelect/VvSelect.vue.d.ts +183 -0
- package/dist/components/VvSelect/index.d.ts +298 -0
- package/dist/components/VvTab/VvTab.es.js +35 -35
- package/dist/components/VvTab/VvTab.umd.js +1 -1
- package/dist/components/VvTab/VvTab.vue.d.ts +64 -0
- package/dist/components/VvTab/index.d.ts +19 -0
- package/dist/components/VvTextarea/VvTextarea.es.js +341 -344
- package/dist/components/VvTextarea/VvTextarea.umd.js +1 -1
- package/dist/components/VvTextarea/VvTextarea.vue.d.ts +384 -0
- package/dist/components/VvTextarea/index.d.ts +190 -0
- package/dist/components/VvTooltip/VvTooltip.vue.d.ts +37 -0
- package/dist/components/VvTooltip/index.d.ts +19 -0
- package/dist/components/VvVirtualScroll/VvVirtualScroll.vue.d.ts +51 -0
- package/dist/components/common/HintSlot.d.ts +57 -0
- package/dist/components/common/VvInputClearAction.d.ts +52 -0
- package/dist/components/common/VvInputPasswordAction.d.ts +71 -0
- package/dist/components/common/VvInputStepAction.d.ts +50 -0
- package/dist/components/index.d.ts +34 -0
- package/dist/components/index.es.js +1965 -1958
- package/dist/components/index.umd.js +1 -1
- package/dist/composables/alert/useAlerInject.d.ts +4 -0
- package/dist/composables/alert/useAlert.d.ts +92 -0
- package/dist/composables/alert/useAlertProvide.d.ts +10 -0
- package/dist/composables/dropdown/useDropdownContextmenu.d.ts +18 -0
- package/dist/composables/dropdown/useDropdownInject.d.ts +12 -0
- package/dist/composables/dropdown/useDropdownProvide.d.ts +40 -0
- package/dist/composables/dropdown/useDropdownVirtualElement.d.ts +17 -0
- package/dist/composables/group/useGroupStateInject.d.ts +9 -0
- package/dist/composables/group/useGroupStateProvide.d.ts +6 -0
- package/dist/composables/index.d.ts +5 -0
- package/dist/composables/index.es.js +34 -34
- package/dist/composables/index.umd.js +2 -2
- package/dist/composables/useBlurhash.d.ts +7 -0
- package/dist/composables/useComponentFocus.d.ts +4 -0
- package/dist/composables/useComponentIcon.d.ts +11 -0
- package/dist/composables/useDebouncedInput.d.ts +5 -0
- package/dist/composables/useDefaults.d.ts +2 -0
- package/dist/composables/useModifiers.d.ts +2 -0
- package/dist/composables/useOptions.d.ts +8 -0
- package/dist/composables/usePersistence.d.ts +3 -0
- package/dist/composables/useTextCount.d.ts +10 -0
- package/dist/composables/useUniqueId.d.ts +2 -0
- package/dist/composables/useVirtualScroll.d.ts +35 -0
- package/dist/composables/useVolver.d.ts +4 -0
- package/dist/constants.d.ts +104 -0
- package/dist/directives/index.d.ts +3 -0
- package/dist/directives/index.es.js +22 -22
- package/dist/directives/index.umd.js +1 -1
- package/dist/directives/v-contextmenu.d.ts +3 -0
- package/dist/directives/v-contextmenu.es.js +13 -13
- package/dist/directives/v-contextmenu.umd.js +1 -1
- package/dist/directives/v-tooltip.d.ts +3 -0
- package/dist/icons.d.ts +1889 -0
- package/dist/index.d.ts +10 -0
- package/dist/index.es.js +19 -19
- package/dist/index.umd.js +1 -1
- package/dist/json-render/catalog.d.ts +395 -0
- package/dist/json-render/components.d.ts +111 -0
- package/dist/json-render/definitions.d.ts +697 -0
- package/dist/json-render/index.d.ts +55 -0
- package/dist/json-render/index.es.js +1877 -1870
- package/dist/json-render/index.umd.js +1 -1
- package/dist/json-render/registry.d.ts +34 -0
- package/dist/props/index.d.ts +959 -0
- package/dist/resolvers/unplugin.d.ts +38 -0
- package/dist/resolvers/unplugin.es.js +28 -28
- package/dist/resolvers/unplugin.umd.js +1 -1
- package/dist/stories/Accordion/Accordion.settings.d.ts +9 -0
- package/dist/stories/Accordion/Accordion.stories.d.ts +7 -0
- package/dist/stories/Accordion/Accordion.test.d.ts +2 -0
- package/dist/stories/Accordion/AccordionSlots.stories.d.ts +7 -0
- package/dist/stories/AccordionGroup/AccordionGroup.settings.d.ts +13 -0
- package/dist/stories/AccordionGroup/AccordionGroup.stories.d.ts +9 -0
- package/dist/stories/AccordionGroup/AccordionGroup.test.d.ts +2 -0
- package/dist/stories/AccordionGroup/AccordionGroupSlots.stories.d.ts +1788 -0
- package/dist/stories/Alert/Alert.settings.d.ts +4 -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 +14 -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/AlertGroup/AlertGroupWithComposable.stories.d.ts +4 -0
- package/dist/stories/Avatar/Avatar.settings.d.ts +5 -0
- package/dist/stories/Avatar/Avatar.stories.d.ts +7 -0
- package/dist/stories/Avatar/Avatar.test.d.ts +2 -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 +14 -0
- package/dist/stories/AvatarGroup/AvatarGroup.stories.d.ts +6 -0
- package/dist/stories/AvatarGroup/AvatarGroup.test.d.ts +2 -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 +5 -0
- package/dist/stories/Badge/Badge.stories.d.ts +7 -0
- package/dist/stories/Badge/Badge.test.d.ts +2 -0
- package/dist/stories/Badge/BadgeSlots.stories.d.ts +6 -0
- package/dist/stories/Blurhash/BlurhashComposable.stories.d.ts +4 -0
- package/dist/stories/Breadcrumb/Breadcrumb.settings.d.ts +13 -0
- package/dist/stories/Breadcrumb/Breadcrumb.stories.d.ts +7 -0
- package/dist/stories/Breadcrumb/Breadcrumb.test.d.ts +2 -0
- package/dist/stories/Breadcrumb/BreadcrumbSlots.stories.d.ts +6 -0
- package/dist/stories/Button/Button.settings.d.ts +4 -0
- package/dist/stories/Button/Button.stories.d.ts +6 -0
- package/dist/stories/Button/Button.test.d.ts +2 -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 +5 -0
- package/dist/stories/ButtonGroup/ButtonGroup.stories.d.ts +6 -0
- package/dist/stories/ButtonGroup/ButtonGroup.test.d.ts +2 -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 +6 -0
- package/dist/stories/Card/Card.stories.d.ts +6 -0
- package/dist/stories/Card/Card.test.d.ts +2 -0
- package/dist/stories/Card/CardSlots.stories.d.ts +9 -0
- package/dist/stories/Checkbox/Checkbox.settings.d.ts +15 -0
- package/dist/stories/Checkbox/Checkbox.stories.d.ts +13 -0
- package/dist/stories/Checkbox/Checkbox.test.d.ts +2 -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 +12 -0
- package/dist/stories/CheckboxGroup/CheckboxGroup.stories.d.ts +12 -0
- package/dist/stories/CheckboxGroup/CheckboxGroup.test.d.ts +2 -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 +4 -0
- package/dist/stories/Combobox/Combobox.stories.d.ts +24 -0
- package/dist/stories/Combobox/Combobox.test.d.ts +2 -0
- package/dist/stories/Combobox/ComboboxIconPosition.stories.d.ts +8 -0
- package/dist/stories/Combobox/ComboboxMultiple.stories.d.ts +9 -0
- package/dist/stories/Combobox/ComboboxOptions.stories.d.ts +11 -0
- package/dist/stories/Combobox/ComboboxSlots.stories.d.ts +10 -0
- package/dist/stories/Dialog/Dialog.settings.d.ts +10 -0
- package/dist/stories/Dialog/Dialog.stories.d.ts +7 -0
- package/dist/stories/Dialog/Dialog.test.d.ts +2 -0
- package/dist/stories/Dialog/DialogModifiers.stories.d.ts +8 -0
- package/dist/stories/Dialog/DialogSlots.stories.d.ts +8 -0
- package/dist/stories/Dropdown/Dropdown.settings.d.ts +5 -0
- package/dist/stories/Dropdown/Dropdown.stories.d.ts +9 -0
- package/dist/stories/Dropdown/Dropdown.test.d.ts +2 -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 +7 -0
- package/dist/stories/Icon/Icon.stories.d.ts +8 -0
- package/dist/stories/Icon/IconsCollection.stories.d.ts +6 -0
- package/dist/stories/InputFile/InputFile.settings.d.ts +6 -0
- package/dist/stories/InputFile/InputFile.stories.d.ts +13 -0
- package/dist/stories/InputFile/InputFileDropArea.stories.d.ts +9 -0
- package/dist/stories/InputFile/InputFileIconPosition.stories.d.ts +8 -0
- package/dist/stories/InputFile/InputFileSlots.stories.d.ts +7 -0
- package/dist/stories/InputText/InputText.settings.d.ts +11 -0
- package/dist/stories/InputText/InputText.stories.d.ts +16 -0
- package/dist/stories/InputText/InputText.test.d.ts +5 -0
- package/dist/stories/InputText/InputTextIconPosition.stories.d.ts +8 -0
- package/dist/stories/InputText/InputTextIso.stories.d.ts +10 -0
- package/dist/stories/InputText/InputTextLength.stories.d.ts +10 -0
- package/dist/stories/InputText/InputTextMask.stories.d.ts +12 -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/InputTextSuggestions.stories.d.ts +8 -0
- package/dist/stories/InputText/InputTextType.stories.d.ts +18 -0
- package/dist/stories/Nav/Nav.settings.d.ts +4 -0
- package/dist/stories/Nav/Nav.stories.d.ts +6 -0
- package/dist/stories/Nav/Nav.test.d.ts +2 -0
- package/dist/stories/Nav/NavModifiers.stories.d.ts +9 -0
- package/dist/stories/Progress/Progress.settings.d.ts +7 -0
- package/dist/stories/Progress/Progress.stories.d.ts +7 -0
- package/dist/stories/Progress/Progress.test.d.ts +2 -0
- package/dist/stories/Radio/Radio.settings.d.ts +12 -0
- package/dist/stories/Radio/Radio.stories.d.ts +11 -0
- package/dist/stories/Radio/Radio.test.d.ts +2 -0
- package/dist/stories/Radio/RadioSlots.stories.d.ts +7 -0
- package/dist/stories/RadioGroup/RadioGroup.settings.d.ts +12 -0
- package/dist/stories/RadioGroup/RadioGroup.stories.d.ts +12 -0
- package/dist/stories/RadioGroup/RadioGroup.test.d.ts +2 -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 +8 -0
- package/dist/stories/Select/Select.stories.d.ts +16 -0
- package/dist/stories/Select/Select.test.d.ts +2 -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.settings.d.ts +4 -0
- package/dist/stories/Tab/Tab.stories.d.ts +6 -0
- package/dist/stories/Tab/Tab.test.d.ts +2 -0
- package/dist/stories/Textarea/Textarea.settings.d.ts +9 -0
- package/dist/stories/Textarea/Textarea.stories.d.ts +14 -0
- package/dist/stories/Textarea/Textarea.test.d.ts +2 -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 +5 -0
- package/dist/stories/Tooltip/Tooltip.stories.d.ts +6 -0
- package/dist/stories/Tooltip/Tooltip.test.d.ts +2 -0
- package/dist/stories/Tooltip/TooltipDirective.stories.d.ts +10 -0
- package/dist/stories/VirtualScroll/VirtualScroll.settings.d.ts +5 -0
- package/dist/stories/VirtualScroll/VirtualScroll.stories.d.ts +7 -0
- package/dist/stories/VirtualScroll/VirtualScroll.test.d.ts +2 -0
- package/dist/stories/VirtualScroll/VirtualScrollWithComposable.stories.d.ts +4 -0
- package/dist/stories/argTypes.d.ts +56 -0
- package/dist/test/expect.d.ts +18 -0
- package/dist/test/options.d.ts +1 -0
- package/dist/test/sleep.d.ts +1 -0
- package/dist/types/alert.d.ts +15 -0
- package/dist/types/blurhash.d.ts +12 -0
- package/dist/types/floating-ui.d.ts +15 -0
- package/dist/types/generic.d.ts +4 -0
- package/dist/types/group.d.ts +59 -0
- package/dist/types/index.d.ts +7 -0
- package/dist/types/input-file.d.ts +9 -0
- package/dist/types/nav.d.ts +17 -0
- package/dist/utils/DateUtilities.d.ts +14 -0
- package/dist/utils/DomUtilities.d.ts +1 -0
- package/dist/utils/FileUtilities.d.ts +14 -0
- package/dist/utils/ObjectUtilities.d.ts +76 -0
- package/dist/workers/blurhash.d.ts +1 -0
- package/package.json +3 -2
- package/src/Volver.ts +8 -6
- package/src/components/VvAction/index.ts +1 -3
- package/src/components/VvButton/VvButton.vue +1 -1
- package/src/components/VvCheckboxGroup/index.ts +1 -3
- package/src/components/VvCombobox/VvCombobox.vue +3 -3
- package/src/components/VvDropdown/VvDropdown.vue +8 -8
- package/src/components/VvIcon/VvIcon.vue +3 -6
- package/src/components/VvInputFile/VvInputFile.vue +6 -6
- package/src/components/VvInputText/VvInputText.vue +95 -78
- package/src/components/VvRadioGroup/index.ts +1 -3
- package/src/composables/useBlurhash.ts +1 -1
- package/src/composables/useDebouncedInput.ts +1 -1
- package/src/composables/useDefaults.ts +55 -44
- package/src/composables/useModifiers.ts +1 -1
- package/src/index.ts +2 -2
- package/src/resolvers/unplugin.ts +6 -6
- package/src/types/alert.ts +1 -1
- package/src/types/nav.ts +1 -1
- package/src/utils/DateUtilities.ts +3 -3
- package/src/utils/DomUtilities.ts +7 -1
- package/src/utils/ObjectUtilities.ts +60 -59
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Fragment as ae, computed as o, createBlock as
|
|
1
|
+
import { Fragment as ae, computed as o, createBlock as w, createCommentVNode as S, createElementBlock as h, createElementVNode as le, createSlots as Me, createVNode as xe, defineComponent as E, guardReactiveProps as B, h as P, inject as Ge, isRef as ge, mergeDefaults as Ue, mergeProps as N, normalizeClass as Je, normalizeProps as $, openBlock as c, ref as he, renderList as ve, renderSlot as I, toDisplayString as A, toRefs as ne, unref as l, useId as We, useSlots as Ye, vModelSelect as Qe, watch as ie, withCtx as j, withDirectives as Xe } from "vue";
|
|
2
2
|
import { Icon as Ze, addIcon as et, iconLoaded as re } from "@iconify/vue";
|
|
3
3
|
import { useElementVisibility as tt, useFocus as at } from "@vueuse/core";
|
|
4
4
|
import { getProperty as oe } from "dot-prop";
|
|
@@ -17,11 +17,11 @@ var lt = {
|
|
|
17
17
|
return e.local = "local", e.session = "session", e;
|
|
18
18
|
})({}), ot = /* @__PURE__ */ (function(e) {
|
|
19
19
|
return e.absolute = "absolute", e.fixed = "fixed", e;
|
|
20
|
-
})({}),
|
|
20
|
+
})({}), _ = /* @__PURE__ */ (function(e) {
|
|
21
21
|
return e.left = "left", e.right = "right", e.top = "top", e.bottom = "bottom", e;
|
|
22
22
|
})({}), it = /* @__PURE__ */ (function(e) {
|
|
23
23
|
return e.topStart = "top-start", e.topEnd = "top-end", e.bottomStart = "bottom-start", e.bottomEnd = "bottom-end", e.leftStart = "left-start", e.leftEnd = "left-end", e.rightStart = "right-start", e.rightEnd = "right-end", e;
|
|
24
|
-
})({}),
|
|
24
|
+
})({}), F = /* @__PURE__ */ (function(e) {
|
|
25
25
|
return e.before = "before", e.after = "after", e;
|
|
26
26
|
})({}), ce = /* @__PURE__ */ (function(e) {
|
|
27
27
|
return e.button = "button", e.submit = "submit", e.reset = "reset", e;
|
|
@@ -62,7 +62,7 @@ var lt = {
|
|
|
62
62
|
type: String,
|
|
63
63
|
default: "Loading..."
|
|
64
64
|
}
|
|
65
|
-
},
|
|
65
|
+
}, C = { disabled: {
|
|
66
66
|
type: Boolean,
|
|
67
67
|
default: !1
|
|
68
68
|
} }, me = { required: {
|
|
@@ -90,7 +90,7 @@ var lt = {
|
|
|
90
90
|
}, ct = { pressed: {
|
|
91
91
|
type: Boolean,
|
|
92
92
|
default: !1
|
|
93
|
-
} },
|
|
93
|
+
} }, V = { label: {
|
|
94
94
|
type: [String, Number],
|
|
95
95
|
default: void 0
|
|
96
96
|
} }, R = { readonly: {
|
|
@@ -99,7 +99,7 @@ var lt = {
|
|
|
99
99
|
} }, K = { modifiers: {
|
|
100
100
|
type: [String, Array],
|
|
101
101
|
default: void 0
|
|
102
|
-
} },
|
|
102
|
+
} }, T = { hintLabel: {
|
|
103
103
|
type: String,
|
|
104
104
|
default: ""
|
|
105
105
|
} }, Se = {
|
|
@@ -138,8 +138,8 @@ var lt = {
|
|
|
138
138
|
},
|
|
139
139
|
iconPosition: {
|
|
140
140
|
type: String,
|
|
141
|
-
default:
|
|
142
|
-
validation: (e) => Object.values(
|
|
141
|
+
default: F.before,
|
|
142
|
+
validation: (e) => Object.values(F).includes(e)
|
|
143
143
|
}
|
|
144
144
|
}, se = { tabindex: {
|
|
145
145
|
type: [String, Number],
|
|
@@ -147,14 +147,14 @@ var lt = {
|
|
|
147
147
|
} }, Le = { floating: {
|
|
148
148
|
type: Boolean,
|
|
149
149
|
default: !1
|
|
150
|
-
} },
|
|
150
|
+
} }, yt = { unselectable: {
|
|
151
151
|
type: Boolean,
|
|
152
152
|
default: !0
|
|
153
|
-
} },
|
|
153
|
+
} }, gt = { id: [String, Number] }, Mt = {
|
|
154
154
|
placement: {
|
|
155
155
|
type: String,
|
|
156
|
-
default:
|
|
157
|
-
validator: (e) => Object.values(
|
|
156
|
+
default: _.bottom,
|
|
157
|
+
validator: (e) => Object.values(_).includes(e) || Object.values(it).includes(e)
|
|
158
158
|
},
|
|
159
159
|
strategy: {
|
|
160
160
|
type: String,
|
|
@@ -206,7 +206,7 @@ var lt = {
|
|
|
206
206
|
default: !1
|
|
207
207
|
}
|
|
208
208
|
}, ue = {
|
|
209
|
-
...
|
|
209
|
+
...gt,
|
|
210
210
|
name: {
|
|
211
211
|
type: String,
|
|
212
212
|
required: !0
|
|
@@ -217,23 +217,23 @@ var lt = {
|
|
|
217
217
|
} }, $e = { autocomplete: {
|
|
218
218
|
type: String,
|
|
219
219
|
default: "off"
|
|
220
|
-
} },
|
|
220
|
+
} }, xt = {
|
|
221
221
|
...ue,
|
|
222
222
|
...Be,
|
|
223
223
|
...$e,
|
|
224
224
|
...se,
|
|
225
|
-
...
|
|
225
|
+
...C,
|
|
226
226
|
...R,
|
|
227
227
|
...q,
|
|
228
228
|
...z,
|
|
229
|
-
...
|
|
229
|
+
...T,
|
|
230
230
|
...H,
|
|
231
231
|
...K,
|
|
232
232
|
...pt,
|
|
233
233
|
...bt,
|
|
234
234
|
...Oe,
|
|
235
235
|
...Le,
|
|
236
|
-
...
|
|
236
|
+
...V,
|
|
237
237
|
minlength: {
|
|
238
238
|
type: [String, Number],
|
|
239
239
|
default: void 0
|
|
@@ -247,16 +247,16 @@ var lt = {
|
|
|
247
247
|
default: void 0
|
|
248
248
|
},
|
|
249
249
|
...me
|
|
250
|
-
},
|
|
250
|
+
}, Gt = {
|
|
251
251
|
...ue,
|
|
252
252
|
...se,
|
|
253
253
|
...q,
|
|
254
254
|
...z,
|
|
255
|
-
...
|
|
256
|
-
...
|
|
255
|
+
...T,
|
|
256
|
+
...C,
|
|
257
257
|
...R,
|
|
258
258
|
...K,
|
|
259
|
-
...
|
|
259
|
+
...V,
|
|
260
260
|
...H,
|
|
261
261
|
value: {
|
|
262
262
|
type: [
|
|
@@ -275,15 +275,15 @@ var lt = {
|
|
|
275
275
|
],
|
|
276
276
|
default: void 0
|
|
277
277
|
}
|
|
278
|
-
},
|
|
278
|
+
}, Ut = {
|
|
279
279
|
...q,
|
|
280
280
|
...z,
|
|
281
281
|
...Se,
|
|
282
|
-
...
|
|
283
|
-
...
|
|
282
|
+
...T,
|
|
283
|
+
...C,
|
|
284
284
|
...R,
|
|
285
285
|
...K,
|
|
286
|
-
...
|
|
286
|
+
...V,
|
|
287
287
|
...H,
|
|
288
288
|
...me,
|
|
289
289
|
modelValue: {
|
|
@@ -304,9 +304,9 @@ var lt = {
|
|
|
304
304
|
type: Boolean,
|
|
305
305
|
default: !1
|
|
306
306
|
}
|
|
307
|
-
},
|
|
308
|
-
..._,
|
|
307
|
+
}, Jt = {
|
|
309
308
|
...C,
|
|
309
|
+
...V,
|
|
310
310
|
...ct,
|
|
311
311
|
...dt,
|
|
312
312
|
...vt,
|
|
@@ -324,7 +324,7 @@ var lt = {
|
|
|
324
324
|
type: String,
|
|
325
325
|
default: nt.button
|
|
326
326
|
}
|
|
327
|
-
},
|
|
327
|
+
}, Wt = {
|
|
328
328
|
storageType: {
|
|
329
329
|
type: String,
|
|
330
330
|
default: fe.local,
|
|
@@ -338,16 +338,16 @@ var lt = {
|
|
|
338
338
|
...se,
|
|
339
339
|
...q,
|
|
340
340
|
...z,
|
|
341
|
-
...
|
|
341
|
+
...T,
|
|
342
342
|
...H,
|
|
343
|
-
...
|
|
343
|
+
...C,
|
|
344
344
|
...R,
|
|
345
345
|
...K,
|
|
346
346
|
...Se,
|
|
347
347
|
...Oe,
|
|
348
348
|
...Le,
|
|
349
|
-
...
|
|
350
|
-
...
|
|
349
|
+
...yt,
|
|
350
|
+
...V,
|
|
351
351
|
...ft,
|
|
352
352
|
multiple: Boolean,
|
|
353
353
|
required: Boolean,
|
|
@@ -381,16 +381,16 @@ function be() {
|
|
|
381
381
|
function ht(e) {
|
|
382
382
|
return typeof e == "string";
|
|
383
383
|
}
|
|
384
|
-
function
|
|
385
|
-
return Array.isArray(e) ? e.filter((
|
|
384
|
+
function ye(e) {
|
|
385
|
+
return Array.isArray(e) ? e.filter((a) => ht(a)).join(" ") : e;
|
|
386
386
|
}
|
|
387
|
-
function mt(e,
|
|
388
|
-
const t = o(() =>
|
|
387
|
+
function mt(e, a) {
|
|
388
|
+
const t = o(() => ge(e) ? e.value : e), i = o(() => ye(t.value.invalidLabel)), n = o(() => ye(t.value.validLabel)), d = o(() => t.value.loadingLabel), p = o(() => t.value.hintLabel), v = o(() => !!(t.value.loading && (a.loading || d.value))), y = o(() => !v.value && !!(t.value.invalid && (a.invalid || i.value))), r = o(() => !v.value && !y.value && !!(t.value.valid && (a.valid || n.value))), b = o(() => !v.value && !y.value && !r.value && !!(a.hint || p.value)), u = o(() => y.value || r.value || v.value || b.value);
|
|
389
389
|
return {
|
|
390
|
-
hasInvalidLabelOrSlot:
|
|
390
|
+
hasInvalidLabelOrSlot: y,
|
|
391
391
|
hasHintLabelOrSlot: b,
|
|
392
|
-
hasValidLabelOrSlot:
|
|
393
|
-
hasLoadingLabelOrSlot:
|
|
392
|
+
hasValidLabelOrSlot: r,
|
|
393
|
+
hasLoadingLabelOrSlot: v,
|
|
394
394
|
hintSlotScope: o(() => ({
|
|
395
395
|
modelValue: t.value.modelValue,
|
|
396
396
|
valid: t.value.valid,
|
|
@@ -405,21 +405,21 @@ function mt(e, l) {
|
|
|
405
405
|
} },
|
|
406
406
|
setup() {
|
|
407
407
|
return {
|
|
408
|
-
isVisible:
|
|
409
|
-
invalidLabel:
|
|
410
|
-
validLabel:
|
|
408
|
+
isVisible: u,
|
|
409
|
+
invalidLabel: i,
|
|
410
|
+
validLabel: n,
|
|
411
411
|
loadingLabel: d,
|
|
412
|
-
hintLabel:
|
|
413
|
-
hasInvalidLabelOrSlot:
|
|
414
|
-
hasValidLabelOrSlot:
|
|
415
|
-
hasLoadingLabelOrSlot:
|
|
412
|
+
hintLabel: p,
|
|
413
|
+
hasInvalidLabelOrSlot: y,
|
|
414
|
+
hasValidLabelOrSlot: r,
|
|
415
|
+
hasLoadingLabelOrSlot: v,
|
|
416
416
|
hasHintLabelOrSlot: b
|
|
417
417
|
};
|
|
418
418
|
},
|
|
419
419
|
render() {
|
|
420
420
|
if (this.isVisible) {
|
|
421
|
-
let
|
|
422
|
-
return this.hasInvalidLabelOrSlot && (
|
|
421
|
+
let f;
|
|
422
|
+
return this.hasInvalidLabelOrSlot && (f = "alert"), this.hasValidLabelOrSlot && (f = "status"), this.hasLoadingLabelOrSlot ? P(this.tag, { role: f }, this.$slots.loading?.() ?? this.loadingLabel) : this.hasInvalidLabelOrSlot ? P(this.tag, { role: f }, this.$slots.invalid?.() ?? this.$slots.invalid ?? this.invalidLabel) : this.hasValidLabelOrSlot ? P(this.tag, { role: f }, this.$slots.valid?.() ?? this.validLabel) : P(this.tag, { role: f }, this.$slots.hint?.() ?? this.$slots.hint ?? this.hintLabel);
|
|
423
423
|
}
|
|
424
424
|
return null;
|
|
425
425
|
}
|
|
@@ -429,14 +429,14 @@ function mt(e, l) {
|
|
|
429
429
|
function Ie() {
|
|
430
430
|
return Ge(st, void 0);
|
|
431
431
|
}
|
|
432
|
-
function Pe(e,
|
|
432
|
+
function Pe(e, a, t) {
|
|
433
433
|
return o(() => {
|
|
434
|
-
const
|
|
435
|
-
return
|
|
436
|
-
d && (
|
|
434
|
+
const i = { [e]: !0 }, n = typeof a?.value == "string" ? a.value.split(" ") : a?.value;
|
|
435
|
+
return n && Array.isArray(n) && n.forEach((d) => {
|
|
436
|
+
d && (i[`${e}--${d}`] = !0);
|
|
437
437
|
}), t && Object.keys(t.value).forEach((d) => {
|
|
438
|
-
|
|
439
|
-
}),
|
|
438
|
+
i[`${e}--${d}`] = l(t.value[d]);
|
|
439
|
+
}), i;
|
|
440
440
|
});
|
|
441
441
|
}
|
|
442
442
|
var St = { name: "VvIcon" }, Ot = /* @__PURE__ */ E({
|
|
@@ -460,31 +460,30 @@ var St = { name: "VvIcon" }, Ot = /* @__PURE__ */ E({
|
|
|
460
460
|
modifiers: {}
|
|
461
461
|
}, rt),
|
|
462
462
|
setup(e) {
|
|
463
|
-
const
|
|
464
|
-
const
|
|
465
|
-
if (re(
|
|
466
|
-
const O =
|
|
467
|
-
return O ? `@${
|
|
463
|
+
const a = e, t = o(() => typeof a.rotate == "string" ? Number.parseFloat(a.rotate) : a.rotate), i = he(!0), n = Ie(), { modifiers: d } = ne(a), p = Pe("vv-icon", d), v = o(() => a.provider || n?.iconsProvider), y = o(() => {
|
|
464
|
+
const u = a.name ?? "", f = `@${v.value}:${a.prefix}:${u}`;
|
|
465
|
+
if (re(f)) return f;
|
|
466
|
+
const O = n?.iconsCollections.find((M) => re(`@${v.value}:${M.prefix}:${u}`));
|
|
467
|
+
return O ? `@${v.value}:${O.prefix}:${u}` : u;
|
|
468
468
|
});
|
|
469
|
-
function
|
|
470
|
-
|
|
471
|
-
return v ? v.parseFromString(n, "text/html").querySelector("svg") : null;
|
|
469
|
+
function r(u) {
|
|
470
|
+
return globalThis.window === void 0 ? null : new globalThis.DOMParser().parseFromString(u, "text/html").querySelector("svg");
|
|
472
471
|
}
|
|
473
|
-
function b(
|
|
474
|
-
const
|
|
475
|
-
|
|
472
|
+
function b(u) {
|
|
473
|
+
const f = r(u), O = f?.innerHTML.trim() || "";
|
|
474
|
+
f && O && et(`@${v.value}:${a.prefix}:${a.name}`, {
|
|
476
475
|
body: O,
|
|
477
|
-
height:
|
|
478
|
-
width:
|
|
476
|
+
height: f.viewBox.baseVal.height,
|
|
477
|
+
width: f.viewBox.baseVal.width
|
|
479
478
|
});
|
|
480
479
|
}
|
|
481
|
-
return
|
|
482
|
-
|
|
483
|
-
}).catch((
|
|
484
|
-
throw
|
|
485
|
-
})),
|
|
480
|
+
return n && a.src && !re(`@${v.value}:${a.prefix}:${a.name}`) && (i.value = !1, n.fetchIcon(a.src).then((u) => {
|
|
481
|
+
u && b(u), i.value = !0;
|
|
482
|
+
}).catch((u) => {
|
|
483
|
+
throw i.value = !0, new Error(`Error during fetch icon: ${u?.message}`);
|
|
484
|
+
})), a.svg && b(a.svg), (u, f) => l(i) ? (c(), w(l(Ze), N({
|
|
486
485
|
key: 0,
|
|
487
|
-
class:
|
|
486
|
+
class: l(p)
|
|
488
487
|
}, {
|
|
489
488
|
inline: e.inline,
|
|
490
489
|
width: e.width,
|
|
@@ -492,26 +491,26 @@ var St = { name: "VvIcon" }, Ot = /* @__PURE__ */ E({
|
|
|
492
491
|
horizontalFlip: e.horizontalFlip,
|
|
493
492
|
verticalFlip: e.verticalFlip,
|
|
494
493
|
flip: e.flip,
|
|
495
|
-
rotate:
|
|
494
|
+
rotate: l(t),
|
|
496
495
|
color: e.color,
|
|
497
|
-
icon:
|
|
496
|
+
icon: l(y)
|
|
498
497
|
}, { onLoad: e.onLoad }), null, 16, ["class", "onLoad"])) : S("v-if", !0);
|
|
499
498
|
}
|
|
500
|
-
}),
|
|
501
|
-
function
|
|
502
|
-
const t = o(() => typeof e?.value == "string" ? { name: e?.value } : e?.value),
|
|
499
|
+
}), D = Ot;
|
|
500
|
+
function _e(e, a) {
|
|
501
|
+
const t = o(() => typeof e?.value == "string" ? { name: e?.value } : e?.value), i = o(() => a?.value === F.before ? t.value : void 0), n = o(() => a?.value === F.after ? t.value : void 0);
|
|
503
502
|
return {
|
|
504
503
|
hasIcon: t,
|
|
505
|
-
hasIconLeft: o(() =>
|
|
506
|
-
hasIconRight: o(() =>
|
|
507
|
-
hasIconTop: o(() =>
|
|
508
|
-
hasIconBottom: o(() =>
|
|
509
|
-
hasIconBefore:
|
|
510
|
-
hasIconAfter:
|
|
504
|
+
hasIconLeft: o(() => a?.value === _.left ? t.value : void 0),
|
|
505
|
+
hasIconRight: o(() => a?.value === _.right ? t.value : void 0),
|
|
506
|
+
hasIconTop: o(() => a?.value === _.top ? t.value : void 0),
|
|
507
|
+
hasIconBottom: o(() => a?.value === _.bottom ? t.value : void 0),
|
|
508
|
+
hasIconBefore: i,
|
|
509
|
+
hasIconAfter: n
|
|
511
510
|
};
|
|
512
511
|
}
|
|
513
512
|
var Lt = E({
|
|
514
|
-
components: { VvIcon:
|
|
513
|
+
components: { VvIcon: D },
|
|
515
514
|
props: {
|
|
516
515
|
inputType: {
|
|
517
516
|
type: String,
|
|
@@ -531,18 +530,18 @@ var Lt = E({
|
|
|
531
530
|
}
|
|
532
531
|
},
|
|
533
532
|
emits: ["clear"],
|
|
534
|
-
setup(e, { emit:
|
|
535
|
-
const { hasIcon: t } =
|
|
536
|
-
function
|
|
537
|
-
|
|
533
|
+
setup(e, { emit: a }) {
|
|
534
|
+
const { hasIcon: t } = _e(o(() => e.icon));
|
|
535
|
+
function i(n) {
|
|
536
|
+
n?.stopPropagation(), e.disabled || a("clear");
|
|
538
537
|
}
|
|
539
538
|
return {
|
|
540
539
|
hasIcon: t,
|
|
541
|
-
onClick:
|
|
540
|
+
onClick: i
|
|
542
541
|
};
|
|
543
542
|
},
|
|
544
543
|
render() {
|
|
545
|
-
const e = this.hasIcon ? P(
|
|
544
|
+
const e = this.hasIcon ? P(D, {
|
|
546
545
|
...this.hasIcon,
|
|
547
546
|
class: `vv-${this.inputType}__icon`
|
|
548
547
|
}) : void 0;
|
|
@@ -555,61 +554,59 @@ var Lt = E({
|
|
|
555
554
|
}, e);
|
|
556
555
|
}
|
|
557
556
|
});
|
|
558
|
-
function Bt(e,
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
557
|
+
function Bt(e, a, t) {
|
|
558
|
+
let i = a;
|
|
559
|
+
if (Array.isArray(e) && e.length) {
|
|
560
|
+
const n = e[0];
|
|
561
|
+
n() === a && (i = t);
|
|
562
|
+
}
|
|
563
|
+
if (typeof e == "function" && e() === a && (i = t), typeof e == "object") {
|
|
564
|
+
let n = e.default;
|
|
565
|
+
typeof n == "function" && (n = n()), (typeof n == "object" ? JSON.stringify(n) === JSON.stringify(a) : n === a) && (i = t);
|
|
566
|
+
}
|
|
567
|
+
return i;
|
|
568
|
+
}
|
|
569
|
+
function $t(e, a, t) {
|
|
570
|
+
const i = Ie(), n = o(() => {
|
|
571
|
+
if (i?.defaults.value?.[e])
|
|
572
|
+
return i.defaults.value[e];
|
|
562
573
|
});
|
|
563
574
|
return o(() => {
|
|
564
|
-
if (
|
|
565
|
-
const d =
|
|
566
|
-
return Object.keys(
|
|
567
|
-
const b =
|
|
568
|
-
|
|
569
|
-
if (Array.isArray(f[a])) {
|
|
570
|
-
const n = f[a];
|
|
571
|
-
n.length && n[0] === b && (p[a] = d[a]);
|
|
572
|
-
}
|
|
573
|
-
if (typeof f[a] == "function") {
|
|
574
|
-
const n = f[a];
|
|
575
|
-
n() === b && (p[a] = d[a]);
|
|
576
|
-
}
|
|
577
|
-
if (typeof f[a] == "object") {
|
|
578
|
-
let n = f[a].default;
|
|
579
|
-
typeof n == "function" && (n = n()), typeof n == "object" ? JSON.stringify(n) === JSON.stringify(b) && (p[a] = d[a]) : n === b && (p[a] = d[a]);
|
|
580
|
-
}
|
|
581
|
-
}
|
|
582
|
-
return p;
|
|
575
|
+
if (n.value === void 0) return t;
|
|
576
|
+
const d = n.value, p = a, v = t;
|
|
577
|
+
return Object.keys(p).reduce((y, r) => {
|
|
578
|
+
const b = v[r];
|
|
579
|
+
return y[r] = r in d ? Bt(p[r], b, d[r]) : b, y;
|
|
583
580
|
}, {});
|
|
584
581
|
});
|
|
585
582
|
}
|
|
586
|
-
function
|
|
583
|
+
function It(e, a) {
|
|
587
584
|
const { focused: t } = at(e);
|
|
588
|
-
return ie(t, (
|
|
589
|
-
|
|
585
|
+
return ie(t, (i) => {
|
|
586
|
+
a(i ? "focus" : "blur", l(e));
|
|
590
587
|
}), { focused: t };
|
|
591
588
|
}
|
|
592
|
-
function
|
|
589
|
+
function Pt(e) {
|
|
593
590
|
return o(() => String(e?.value || We()));
|
|
594
591
|
}
|
|
595
|
-
function
|
|
596
|
-
const { options:
|
|
592
|
+
function _t(e) {
|
|
593
|
+
const { options: a, labelKey: t, valueKey: i, disabledKey: n } = ne(e);
|
|
597
594
|
return {
|
|
598
|
-
options:
|
|
599
|
-
getOptionLabel: (
|
|
600
|
-
getOptionValue: (
|
|
601
|
-
isOptionDisabled: (
|
|
602
|
-
getOptionGrouped: (
|
|
595
|
+
options: a,
|
|
596
|
+
getOptionLabel: (r) => typeof r == "string" ? r : typeof t.value == "function" ? t.value(r) : String(t.value ? oe(r, t.value) : r),
|
|
597
|
+
getOptionValue: (r) => typeof r == "string" ? r : typeof i.value == "function" ? i.value(r) : i.value ? oe(r, i.value) : r,
|
|
598
|
+
isOptionDisabled: (r) => typeof r == "string" ? !1 : typeof n.value == "function" ? n.value(r) : n.value ? !!oe(r, n.value) : !1,
|
|
599
|
+
getOptionGrouped: (r) => typeof r == "string" ? [] : typeof r == "object" && r && "options" in r ? r.options : []
|
|
603
600
|
};
|
|
604
601
|
}
|
|
605
|
-
var
|
|
602
|
+
var Ct = ["for"], Vt = { class: "vv-select__wrapper" }, kt = {
|
|
606
603
|
key: 0,
|
|
607
604
|
class: "vv-select__input-before"
|
|
608
|
-
}, At = { class: "vv-select__inner" },
|
|
605
|
+
}, At = { class: "vv-select__inner" }, jt = ["id"], wt = ["disabled", "hidden"], Nt = ["disabled", "value"], Ft = ["disabled", "label"], Dt = ["disabled", "value"], Et = {
|
|
609
606
|
key: 2,
|
|
610
607
|
class: "vv-select__input-after"
|
|
611
|
-
},
|
|
612
|
-
...
|
|
608
|
+
}, qt = { name: "VvSelect" }, zt = /* @__PURE__ */ E({
|
|
609
|
+
...qt,
|
|
613
610
|
props: be(),
|
|
614
611
|
emits: [
|
|
615
612
|
"update:modelValue",
|
|
@@ -617,140 +614,140 @@ var Vt = ["for"], _t = { class: "vv-select__wrapper" }, Ct = {
|
|
|
617
614
|
"blur",
|
|
618
615
|
"clear"
|
|
619
616
|
],
|
|
620
|
-
setup(e, { emit:
|
|
621
|
-
const t = e,
|
|
622
|
-
function
|
|
623
|
-
return typeof
|
|
617
|
+
setup(e, { emit: a }) {
|
|
618
|
+
const t = e, i = a, n = Ye(), d = $t("VvSelect", be(), t), p = he(), { HintSlot: v, hasHintLabelOrSlot: y, hasInvalidLabelOrSlot: r, hintSlotScope: b } = mt(d, n), { focused: u } = It(p, i);
|
|
619
|
+
function f(s) {
|
|
620
|
+
return typeof s == "string" ? !1 : s.options?.length;
|
|
624
621
|
}
|
|
625
|
-
const { id: O, modifiers:
|
|
622
|
+
const { id: O, modifiers: M, disabled: Ce, readonly: Ve, loading: ke, icon: Ae, iconPosition: je, invalid: we, valid: Ne, floating: Fe, multiple: De } = ne(t), x = Pt(O), G = o(() => `${x.value}-hint`), k = o(() => t.disabled || t.readonly), Ee = o(() => k.value ? -1 : t.tabindex), g = o({
|
|
626
623
|
get: () => t.modelValue,
|
|
627
|
-
set: (
|
|
628
|
-
if (Array.isArray(
|
|
629
|
-
|
|
624
|
+
set: (s) => {
|
|
625
|
+
if (Array.isArray(s) && (s = s.filter((L) => L !== void 0), s.length === 0 && !t.unselectable && p.value)) {
|
|
626
|
+
p.value.value = String(t.modelValue);
|
|
630
627
|
return;
|
|
631
628
|
}
|
|
632
|
-
|
|
629
|
+
i("update:modelValue", s);
|
|
633
630
|
}
|
|
634
|
-
}), U = o(() => Array.isArray(
|
|
635
|
-
ie(tt(
|
|
636
|
-
|
|
631
|
+
}), U = o(() => Array.isArray(g.value) ? g.value.length > 0 : g.value !== void 0 && g.value !== null), J = o(() => k.value ? !1 : t.unselectable);
|
|
632
|
+
ie(tt(p), (s) => {
|
|
633
|
+
s && t.autofocus && (u.value = !0);
|
|
637
634
|
});
|
|
638
|
-
const { hasIconBefore: W, hasIconAfter: Y } =
|
|
635
|
+
const { hasIconBefore: W, hasIconAfter: Y } = _e(Ae, je), qe = o(() => {
|
|
639
636
|
if (t.invalid === !0) return !0;
|
|
640
637
|
if (t.valid === !0) return !1;
|
|
641
|
-
}), ze = Pe("vv-select",
|
|
642
|
-
valid:
|
|
643
|
-
invalid:
|
|
644
|
-
loading:
|
|
645
|
-
disabled:
|
|
646
|
-
readonly:
|
|
638
|
+
}), ze = Pe("vv-select", M, o(() => ({
|
|
639
|
+
valid: Ne.value,
|
|
640
|
+
invalid: we.value,
|
|
641
|
+
loading: ke.value,
|
|
642
|
+
disabled: Ce.value,
|
|
643
|
+
readonly: Ve.value,
|
|
647
644
|
"icon-before": W.value !== void 0,
|
|
648
645
|
"icon-after": Y.value !== void 0,
|
|
649
646
|
dirty: U.value,
|
|
650
|
-
focus:
|
|
651
|
-
floating:
|
|
652
|
-
multiple:
|
|
653
|
-
}))), { getOptionLabel: Q, getOptionValue: X, isOptionDisabled: Z, getOptionGrouped: He } =
|
|
654
|
-
ie(() => t.options, (
|
|
655
|
-
if (
|
|
656
|
-
const L = X(
|
|
657
|
-
|
|
647
|
+
focus: u.value && !k.value,
|
|
648
|
+
floating: Fe.value,
|
|
649
|
+
multiple: De.value
|
|
650
|
+
}))), { getOptionLabel: Q, getOptionValue: X, isOptionDisabled: Z, getOptionGrouped: He } = _t(t);
|
|
651
|
+
ie(() => t.options, (s) => {
|
|
652
|
+
if (s?.length && t.autoselectFirst && !U.value) {
|
|
653
|
+
const L = X(s[0]);
|
|
654
|
+
g.value = t.multiple ? [L] : L;
|
|
658
655
|
}
|
|
659
656
|
}, { immediate: !0 });
|
|
660
657
|
function Re() {
|
|
661
|
-
Array.isArray(
|
|
658
|
+
Array.isArray(g.value) ? g.value = [] : g.value = void 0, i("clear");
|
|
662
659
|
}
|
|
663
660
|
const Ke = o(() => ({
|
|
664
661
|
name: t.name,
|
|
665
662
|
tabindex: Ee.value,
|
|
666
|
-
disabled:
|
|
663
|
+
disabled: k.value,
|
|
667
664
|
required: t.required,
|
|
668
665
|
size: t.size,
|
|
669
666
|
autocomplete: t.autocomplete,
|
|
670
667
|
multiple: t.multiple,
|
|
671
668
|
"aria-invalid": qe.value,
|
|
672
|
-
"aria-describedby":
|
|
673
|
-
"aria-errormessage":
|
|
669
|
+
"aria-describedby": y.value ? G.value : void 0,
|
|
670
|
+
"aria-errormessage": r.value ? G.value : void 0
|
|
674
671
|
})), de = o(() => ({
|
|
675
672
|
valid: t.valid,
|
|
676
673
|
invalid: t.invalid,
|
|
677
674
|
modelValue: t.modelValue
|
|
678
675
|
}));
|
|
679
|
-
return (
|
|
680
|
-
|
|
676
|
+
return (s, L) => (c(), h("div", { class: Je(l(ze)) }, [
|
|
677
|
+
s.label ? (c(), h("label", {
|
|
681
678
|
key: 0,
|
|
682
|
-
for:
|
|
683
|
-
},
|
|
684
|
-
le("div",
|
|
685
|
-
|
|
679
|
+
for: l(x)
|
|
680
|
+
}, A(s.label), 9, Ct)) : S("v-if", !0),
|
|
681
|
+
le("div", Vt, [
|
|
682
|
+
s.$slots.before ? (c(), h("div", kt, [I(s.$slots, "before", $(B(l(de))))])) : S("v-if", !0),
|
|
686
683
|
le("div", At, [
|
|
687
|
-
|
|
688
|
-
Xe(le("select",
|
|
689
|
-
id:
|
|
684
|
+
l(W) ? (c(), w(D, N({ key: 0 }, l(W), { class: "vv-select__icon" }), null, 16)) : S("v-if", !0),
|
|
685
|
+
Xe(le("select", N({
|
|
686
|
+
id: l(x),
|
|
690
687
|
ref_key: "selectEl",
|
|
691
|
-
ref:
|
|
692
|
-
},
|
|
688
|
+
ref: p
|
|
689
|
+
}, l(Ke), { "onUpdate:modelValue": L[0] || (L[0] = (m) => ge(g) ? g.value = m : null) }), [s.placeholder ? (c(), h("option", {
|
|
693
690
|
key: 0,
|
|
694
691
|
value: void 0,
|
|
695
|
-
disabled: !
|
|
696
|
-
hidden: !
|
|
697
|
-
},
|
|
692
|
+
disabled: !l(J),
|
|
693
|
+
hidden: !l(J)
|
|
694
|
+
}, A(s.placeholder), 9, wt)) : S("v-if", !0), (c(!0), h(ae, null, ve(s.options, (m, ee) => (c(), h(ae, null, [f(m) ? (c(), h("optgroup", {
|
|
698
695
|
key: `group-${ee}`,
|
|
699
|
-
disabled:
|
|
700
|
-
label:
|
|
701
|
-
}, [(
|
|
702
|
-
key: `group-${ee}-item-${
|
|
703
|
-
disabled:
|
|
704
|
-
value:
|
|
705
|
-
},
|
|
696
|
+
disabled: l(Z)(m),
|
|
697
|
+
label: l(Q)(m)
|
|
698
|
+
}, [(c(!0), h(ae, null, ve(l(He)(m), (te, Te) => (c(), h("option", {
|
|
699
|
+
key: `group-${ee}-item-${Te}`,
|
|
700
|
+
disabled: l(Z)(te),
|
|
701
|
+
value: l(X)(te)
|
|
702
|
+
}, A(l(Q)(te)), 9, Dt))), 128))], 8, Ft)) : (c(), h("option", {
|
|
706
703
|
key: ee,
|
|
707
|
-
disabled:
|
|
708
|
-
value:
|
|
709
|
-
},
|
|
710
|
-
|
|
704
|
+
disabled: l(Z)(m),
|
|
705
|
+
value: l(X)(m)
|
|
706
|
+
}, A(l(Q)(m)), 9, Nt))], 64))), 256))], 16, jt), [[Qe, l(g)]]),
|
|
707
|
+
l(Y) ? (c(), w(D, N({ key: 1 }, l(Y), { class: "vv-select__icon vv-select__icon-after" }), null, 16)) : S("v-if", !0)
|
|
711
708
|
]),
|
|
712
|
-
|
|
709
|
+
l(J) && l(d).showClearAction ? (c(), w(l(Lt), {
|
|
713
710
|
key: 1,
|
|
714
711
|
"input-type": "select",
|
|
715
|
-
label:
|
|
716
|
-
icon:
|
|
717
|
-
disabled: !
|
|
712
|
+
label: s.labelClear,
|
|
713
|
+
icon: s.iconClear,
|
|
714
|
+
disabled: !l(U),
|
|
718
715
|
onClear: Re
|
|
719
716
|
}, null, 8, [
|
|
720
717
|
"label",
|
|
721
718
|
"icon",
|
|
722
719
|
"disabled"
|
|
723
720
|
])) : S("v-if", !0),
|
|
724
|
-
|
|
721
|
+
s.$slots.after ? (c(), h("div", Et, [I(s.$slots, "after", $(B(l(de))))])) : S("v-if", !0)
|
|
725
722
|
]),
|
|
726
|
-
xe(
|
|
727
|
-
id:
|
|
723
|
+
xe(l(v), {
|
|
724
|
+
id: l(G),
|
|
728
725
|
class: "vv-select__hint"
|
|
729
|
-
},
|
|
730
|
-
|
|
726
|
+
}, Me({ _: 2 }, [
|
|
727
|
+
s.$slots.hint ? {
|
|
731
728
|
name: "hint",
|
|
732
|
-
fn: j(() => [I(
|
|
729
|
+
fn: j(() => [I(s.$slots, "hint", $(B(l(b))))]),
|
|
733
730
|
key: "0"
|
|
734
731
|
} : void 0,
|
|
735
|
-
|
|
732
|
+
s.$slots.loading ? {
|
|
736
733
|
name: "loading",
|
|
737
|
-
fn: j(() => [I(
|
|
734
|
+
fn: j(() => [I(s.$slots, "loading", $(B(l(b))))]),
|
|
738
735
|
key: "1"
|
|
739
736
|
} : void 0,
|
|
740
|
-
|
|
737
|
+
s.$slots.valid ? {
|
|
741
738
|
name: "valid",
|
|
742
|
-
fn: j(() => [I(
|
|
739
|
+
fn: j(() => [I(s.$slots, "valid", $(B(l(b))))]),
|
|
743
740
|
key: "2"
|
|
744
741
|
} : void 0,
|
|
745
|
-
|
|
742
|
+
s.$slots.invalid ? {
|
|
746
743
|
name: "invalid",
|
|
747
|
-
fn: j(() => [I(
|
|
744
|
+
fn: j(() => [I(s.$slots, "invalid", $(B(l(b))))]),
|
|
748
745
|
key: "3"
|
|
749
746
|
} : void 0
|
|
750
747
|
]), 1032, ["id"])
|
|
751
748
|
], 2));
|
|
752
749
|
}
|
|
753
|
-
}),
|
|
750
|
+
}), Yt = zt;
|
|
754
751
|
export {
|
|
755
|
-
|
|
752
|
+
Yt as default
|
|
756
753
|
};
|