@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,7 +1,7 @@
|
|
|
1
|
-
import { computed as
|
|
1
|
+
import { computed as n, createElementBlock as fe, createElementVNode as ce, createSlots as pe, createTextVNode as be, createVNode as ye, defineComponent as W, guardReactiveProps as O, h as L, inject as Q, isRef as X, normalizeClass as ge, normalizeProps as k, onMounted as he, openBlock as Se, ref as me, renderSlot as h, toDisplayString as Oe, toRef as Le, toRefs as Z, unref as u, useId as ke, useSlots as Pe, vModelCheckbox as Be, watch as Ae, watchEffect as Ce, withCtx as P, withDirectives as Ve } from "vue";
|
|
2
2
|
var K = /* @__PURE__ */ (function(e) {
|
|
3
3
|
return e.local = "local", e.session = "session", e;
|
|
4
|
-
})({}),
|
|
4
|
+
})({}), je = /* @__PURE__ */ (function(e) {
|
|
5
5
|
return e.absolute = "absolute", e.fixed = "fixed", e;
|
|
6
6
|
})({}), T = /* @__PURE__ */ (function(e) {
|
|
7
7
|
return e.left = "left", e.right = "right", e.top = "top", e.bottom = "bottom", e;
|
|
@@ -13,7 +13,7 @@ var K = /* @__PURE__ */ (function(e) {
|
|
|
13
13
|
return e.button = "button", e.submit = "submit", e.reset = "reset", e;
|
|
14
14
|
})({}), Ie = /* @__PURE__ */ (function(e) {
|
|
15
15
|
return e.nuxtLink = "nuxt-link", e.routerLink = "router-link", e.a = "a", e.button = "button", e;
|
|
16
|
-
})({}), we = /* @__PURE__ */ Symbol.for("volver"), xe = /* @__PURE__ */ Symbol.for("checkGroup"),
|
|
16
|
+
})({}), we = /* @__PURE__ */ Symbol.for("volver"), xe = /* @__PURE__ */ Symbol.for("checkGroup"), Ee = {
|
|
17
17
|
showPassword: "eye-on",
|
|
18
18
|
hidePassword: "eye-off",
|
|
19
19
|
showDatePicker: "calendar",
|
|
@@ -24,7 +24,7 @@ var K = /* @__PURE__ */ (function(e) {
|
|
|
24
24
|
remove: "trash",
|
|
25
25
|
edit: "edit",
|
|
26
26
|
download: "download"
|
|
27
|
-
},
|
|
27
|
+
}, $e = {
|
|
28
28
|
to: { type: [String, Object] },
|
|
29
29
|
href: String,
|
|
30
30
|
target: String,
|
|
@@ -32,7 +32,7 @@ var K = /* @__PURE__ */ (function(e) {
|
|
|
32
32
|
type: String,
|
|
33
33
|
default: "noopener noreferrer"
|
|
34
34
|
}
|
|
35
|
-
},
|
|
35
|
+
}, w = {
|
|
36
36
|
valid: {
|
|
37
37
|
type: Boolean,
|
|
38
38
|
default: !1
|
|
@@ -41,7 +41,7 @@ var K = /* @__PURE__ */ (function(e) {
|
|
|
41
41
|
type: [String, Array],
|
|
42
42
|
default: void 0
|
|
43
43
|
}
|
|
44
|
-
},
|
|
44
|
+
}, x = {
|
|
45
45
|
invalid: {
|
|
46
46
|
type: Boolean,
|
|
47
47
|
default: !1
|
|
@@ -59,7 +59,7 @@ var K = /* @__PURE__ */ (function(e) {
|
|
|
59
59
|
type: String,
|
|
60
60
|
default: "Loading..."
|
|
61
61
|
}
|
|
62
|
-
},
|
|
62
|
+
}, B = { disabled: {
|
|
63
63
|
type: Boolean,
|
|
64
64
|
default: !1
|
|
65
65
|
} }, ee = { required: {
|
|
@@ -68,35 +68,35 @@ var K = /* @__PURE__ */ (function(e) {
|
|
|
68
68
|
} }, _e = { active: {
|
|
69
69
|
type: Boolean,
|
|
70
70
|
default: !1
|
|
71
|
-
} },
|
|
71
|
+
} }, Re = { current: {
|
|
72
72
|
type: Boolean,
|
|
73
73
|
default: !1
|
|
74
|
-
} },
|
|
74
|
+
} }, ft = {
|
|
75
75
|
showClearAction: {
|
|
76
76
|
type: Boolean,
|
|
77
77
|
default: !1
|
|
78
78
|
},
|
|
79
79
|
iconClear: {
|
|
80
80
|
type: [String, Object],
|
|
81
|
-
default:
|
|
81
|
+
default: Ee.clear
|
|
82
82
|
},
|
|
83
83
|
labelClear: {
|
|
84
84
|
type: String,
|
|
85
85
|
default: "Clear"
|
|
86
86
|
}
|
|
87
|
-
},
|
|
87
|
+
}, De = { pressed: {
|
|
88
88
|
type: Boolean,
|
|
89
89
|
default: !1
|
|
90
|
-
} },
|
|
90
|
+
} }, A = { label: {
|
|
91
91
|
type: [String, Number],
|
|
92
92
|
default: void 0
|
|
93
|
-
} },
|
|
93
|
+
} }, $ = { readonly: {
|
|
94
94
|
type: Boolean,
|
|
95
95
|
default: !1
|
|
96
|
-
} },
|
|
96
|
+
} }, C = { modifiers: {
|
|
97
97
|
type: [String, Array],
|
|
98
98
|
default: void 0
|
|
99
|
-
} },
|
|
99
|
+
} }, _ = { hintLabel: {
|
|
100
100
|
type: String,
|
|
101
101
|
default: ""
|
|
102
102
|
} }, Ge = {
|
|
@@ -116,7 +116,7 @@ var K = /* @__PURE__ */ (function(e) {
|
|
|
116
116
|
type: [String, Function],
|
|
117
117
|
default: "disabled"
|
|
118
118
|
}
|
|
119
|
-
},
|
|
119
|
+
}, qe = { count: {
|
|
120
120
|
type: [Boolean, String],
|
|
121
121
|
default: !1,
|
|
122
122
|
validator: (e) => [
|
|
@@ -125,10 +125,10 @@ var K = /* @__PURE__ */ (function(e) {
|
|
|
125
125
|
"limit",
|
|
126
126
|
"countdown"
|
|
127
127
|
].includes(e)
|
|
128
|
-
} },
|
|
128
|
+
} }, He = { debounce: {
|
|
129
129
|
type: [Number, String],
|
|
130
130
|
default: void 0
|
|
131
|
-
} },
|
|
131
|
+
} }, Fe = {
|
|
132
132
|
icon: {
|
|
133
133
|
type: [String, Object],
|
|
134
134
|
default: void 0
|
|
@@ -144,7 +144,7 @@ var K = /* @__PURE__ */ (function(e) {
|
|
|
144
144
|
} }, Ke = { floating: {
|
|
145
145
|
type: Boolean,
|
|
146
146
|
default: !1
|
|
147
|
-
} }, Te = { id: [String, Number] },
|
|
147
|
+
} }, Te = { id: [String, Number] }, ct = {
|
|
148
148
|
placement: {
|
|
149
149
|
type: String,
|
|
150
150
|
default: T.bottom,
|
|
@@ -153,7 +153,7 @@ var K = /* @__PURE__ */ (function(e) {
|
|
|
153
153
|
strategy: {
|
|
154
154
|
type: String,
|
|
155
155
|
default: void 0,
|
|
156
|
-
validator: (e) => Object.values(
|
|
156
|
+
validator: (e) => Object.values(je).includes(e)
|
|
157
157
|
},
|
|
158
158
|
transitionName: {
|
|
159
159
|
type: String,
|
|
@@ -211,23 +211,23 @@ var K = /* @__PURE__ */ (function(e) {
|
|
|
211
211
|
} }, Je = { autocomplete: {
|
|
212
212
|
type: String,
|
|
213
213
|
default: "off"
|
|
214
|
-
} },
|
|
214
|
+
} }, pt = {
|
|
215
215
|
...ae,
|
|
216
216
|
...Me,
|
|
217
217
|
...Je,
|
|
218
218
|
...te,
|
|
219
|
-
...
|
|
220
|
-
..._,
|
|
221
|
-
...x,
|
|
219
|
+
...B,
|
|
222
220
|
...$,
|
|
223
|
-
...
|
|
221
|
+
...w,
|
|
222
|
+
...x,
|
|
223
|
+
..._,
|
|
224
224
|
...E,
|
|
225
|
-
...
|
|
225
|
+
...C,
|
|
226
|
+
...qe,
|
|
226
227
|
...He,
|
|
227
228
|
...Fe,
|
|
228
|
-
...qe,
|
|
229
229
|
...Ke,
|
|
230
|
-
...
|
|
230
|
+
...A,
|
|
231
231
|
minlength: {
|
|
232
232
|
type: [String, Number],
|
|
233
233
|
default: void 0
|
|
@@ -244,13 +244,13 @@ var K = /* @__PURE__ */ (function(e) {
|
|
|
244
244
|
}, ze = {
|
|
245
245
|
...ae,
|
|
246
246
|
...te,
|
|
247
|
+
...w,
|
|
247
248
|
...x,
|
|
248
|
-
...$,
|
|
249
|
-
...D,
|
|
250
|
-
...A,
|
|
251
249
|
..._,
|
|
252
|
-
...
|
|
250
|
+
...B,
|
|
251
|
+
...$,
|
|
253
252
|
...C,
|
|
253
|
+
...A,
|
|
254
254
|
...E,
|
|
255
255
|
value: {
|
|
256
256
|
type: [
|
|
@@ -269,15 +269,15 @@ var K = /* @__PURE__ */ (function(e) {
|
|
|
269
269
|
],
|
|
270
270
|
default: void 0
|
|
271
271
|
}
|
|
272
|
-
},
|
|
272
|
+
}, bt = {
|
|
273
|
+
...w,
|
|
273
274
|
...x,
|
|
274
|
-
...$,
|
|
275
275
|
...Ge,
|
|
276
|
-
...D,
|
|
277
|
-
...A,
|
|
278
276
|
..._,
|
|
279
|
-
...
|
|
277
|
+
...B,
|
|
278
|
+
...$,
|
|
280
279
|
...C,
|
|
280
|
+
...A,
|
|
281
281
|
...E,
|
|
282
282
|
...ee,
|
|
283
283
|
modelValue: {
|
|
@@ -298,13 +298,13 @@ var K = /* @__PURE__ */ (function(e) {
|
|
|
298
298
|
type: Boolean,
|
|
299
299
|
default: !1
|
|
300
300
|
}
|
|
301
|
-
},
|
|
301
|
+
}, yt = {
|
|
302
|
+
...B,
|
|
302
303
|
...A,
|
|
303
|
-
...C,
|
|
304
|
-
...Re,
|
|
305
|
-
..._e,
|
|
306
304
|
...De,
|
|
307
|
-
...
|
|
305
|
+
..._e,
|
|
306
|
+
...Re,
|
|
307
|
+
...$e,
|
|
308
308
|
type: {
|
|
309
309
|
type: String,
|
|
310
310
|
default: J.button,
|
|
@@ -318,7 +318,7 @@ var K = /* @__PURE__ */ (function(e) {
|
|
|
318
318
|
type: String,
|
|
319
319
|
default: Ie.button
|
|
320
320
|
}
|
|
321
|
-
},
|
|
321
|
+
}, gt = {
|
|
322
322
|
storageType: {
|
|
323
323
|
type: String,
|
|
324
324
|
default: K.local,
|
|
@@ -327,36 +327,36 @@ var K = /* @__PURE__ */ (function(e) {
|
|
|
327
327
|
storageKey: String
|
|
328
328
|
};
|
|
329
329
|
function Ue(e) {
|
|
330
|
-
const a = Q(e, void 0), t =
|
|
331
|
-
function
|
|
332
|
-
const
|
|
333
|
-
if (
|
|
330
|
+
const a = Q(e, void 0), t = n(() => a !== void 0);
|
|
331
|
+
function l(r, o, f) {
|
|
332
|
+
const i = a?.[r];
|
|
333
|
+
if (i) return n({
|
|
334
334
|
get() {
|
|
335
|
-
return
|
|
335
|
+
return i.value;
|
|
336
336
|
},
|
|
337
|
-
set(
|
|
338
|
-
|
|
337
|
+
set(v) {
|
|
338
|
+
i.value = v;
|
|
339
339
|
}
|
|
340
340
|
});
|
|
341
|
-
const
|
|
342
|
-
return
|
|
341
|
+
const c = Le(o, r);
|
|
342
|
+
return n({
|
|
343
343
|
get() {
|
|
344
|
-
return
|
|
344
|
+
return c.value;
|
|
345
345
|
},
|
|
346
|
-
set(
|
|
347
|
-
|
|
346
|
+
set(v) {
|
|
347
|
+
f && f(`update:${r}`, v);
|
|
348
348
|
}
|
|
349
349
|
});
|
|
350
350
|
}
|
|
351
351
|
return {
|
|
352
352
|
group: a,
|
|
353
353
|
isInGroup: t,
|
|
354
|
-
getGroupOrLocalRef:
|
|
354
|
+
getGroupOrLocalRef: l
|
|
355
355
|
};
|
|
356
356
|
}
|
|
357
357
|
var z = {
|
|
358
358
|
...ze,
|
|
359
|
-
...
|
|
359
|
+
...C,
|
|
360
360
|
indeterminate: Boolean,
|
|
361
361
|
uncheckedValue: [
|
|
362
362
|
String,
|
|
@@ -371,82 +371,82 @@ var z = {
|
|
|
371
371
|
"blur"
|
|
372
372
|
];
|
|
373
373
|
function We(e, a) {
|
|
374
|
-
const { group: t, isInGroup:
|
|
374
|
+
const { group: t, isInGroup: l, getGroupOrLocalRef: r } = Ue(xe), { id: o, switch: f, indeterminate: i } = Z(e);
|
|
375
375
|
return {
|
|
376
|
-
id:
|
|
377
|
-
propsSwitch:
|
|
378
|
-
indeterminate:
|
|
376
|
+
id: o,
|
|
377
|
+
propsSwitch: f,
|
|
378
|
+
indeterminate: i,
|
|
379
379
|
group: t,
|
|
380
|
-
isInGroup:
|
|
381
|
-
modelValue:
|
|
382
|
-
valid:
|
|
383
|
-
invalid:
|
|
384
|
-
readonly:
|
|
385
|
-
disabled:
|
|
380
|
+
isInGroup: l,
|
|
381
|
+
modelValue: r("modelValue", e, a),
|
|
382
|
+
valid: r("valid", e),
|
|
383
|
+
invalid: r("invalid", e),
|
|
384
|
+
readonly: n(() => !!(e.readonly || t?.readonly.value)),
|
|
385
|
+
disabled: n(() => !!(e.disabled || t?.disabled.value))
|
|
386
386
|
};
|
|
387
387
|
}
|
|
388
|
-
function
|
|
389
|
-
return t ? U(e, t) === U(a, t) :
|
|
388
|
+
function re(e, a, t) {
|
|
389
|
+
return t ? U(e, t) === U(a, t) : R(e, a);
|
|
390
390
|
}
|
|
391
|
-
function
|
|
392
|
-
if (e
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
if (s !== d) return !1;
|
|
404
|
-
if (s && d) return e.getTime() === a.getTime();
|
|
405
|
-
const r = e instanceof RegExp, b = a instanceof RegExp;
|
|
406
|
-
if (r !== b) return !1;
|
|
407
|
-
if (r && b) return e.toString() === a.toString();
|
|
408
|
-
const f = Object.keys(e);
|
|
409
|
-
if (n = f.length, n !== Object.keys(a).length) return !1;
|
|
410
|
-
for (l = n; l-- !== 0; ) if (!Object.hasOwn(a, f[l])) return !1;
|
|
411
|
-
for (l = n; l-- !== 0; )
|
|
412
|
-
if (u = f[l], !w(e[u], a[u])) return !1;
|
|
413
|
-
return !0;
|
|
391
|
+
function Qe(e, a) {
|
|
392
|
+
if (e.length !== a.length) return !1;
|
|
393
|
+
for (let t = e.length; t-- !== 0; ) if (!R(e[t], a[t])) return !1;
|
|
394
|
+
return !0;
|
|
395
|
+
}
|
|
396
|
+
function Xe(e, a) {
|
|
397
|
+
const t = Object.keys(e), { length: l } = t;
|
|
398
|
+
if (l !== Object.keys(a).length) return !1;
|
|
399
|
+
for (let r = l; r-- !== 0; ) if (!Object.hasOwn(a, t[r])) return !1;
|
|
400
|
+
for (let r = l; r-- !== 0; ) {
|
|
401
|
+
const o = t[r];
|
|
402
|
+
if (!R(e[o], a[o])) return !1;
|
|
414
403
|
}
|
|
415
|
-
return
|
|
404
|
+
return !0;
|
|
405
|
+
}
|
|
406
|
+
function R(e, a) {
|
|
407
|
+
if (e === a) return !0;
|
|
408
|
+
if (!e || !a || typeof e != "object" || typeof a != "object") return Number.isNaN(e) && Number.isNaN(a);
|
|
409
|
+
const t = Array.isArray(e), l = Array.isArray(a);
|
|
410
|
+
if (t !== l) return !1;
|
|
411
|
+
if (t && l) return Qe(e, a);
|
|
412
|
+
const r = e instanceof Date, o = a instanceof Date;
|
|
413
|
+
if (r !== o) return !1;
|
|
414
|
+
if (r && o) return e.getTime() === a.getTime();
|
|
415
|
+
const f = e instanceof RegExp, i = a instanceof RegExp;
|
|
416
|
+
return f !== i ? !1 : f && i ? e.toString() === a.toString() : Xe(e, a);
|
|
416
417
|
}
|
|
417
418
|
function U(e, a) {
|
|
418
|
-
if (e && Object.keys(e).length && a)
|
|
419
|
+
if (e && Object.keys(e).length && a) {
|
|
420
|
+
if (!a.includes(".")) return e[a];
|
|
419
421
|
const t = a.split(".");
|
|
420
|
-
let
|
|
421
|
-
for (let
|
|
422
|
-
if (
|
|
423
|
-
|
|
422
|
+
let l = e;
|
|
423
|
+
for (let r = 0, o = t.length; r < o; ++r) {
|
|
424
|
+
if (l == null) return null;
|
|
425
|
+
l = l[t[r]];
|
|
424
426
|
}
|
|
425
|
-
return
|
|
426
|
-
} else
|
|
427
|
-
return e[a];
|
|
428
|
-
else return null;
|
|
427
|
+
return l;
|
|
428
|
+
} else return null;
|
|
429
429
|
}
|
|
430
|
-
function
|
|
431
|
-
if (e != null && a
|
|
432
|
-
for (const t of a) if (
|
|
430
|
+
function Ze(e, a) {
|
|
431
|
+
if (e != null && a?.length) {
|
|
432
|
+
for (const t of a) if (re(e, t)) return !0;
|
|
433
433
|
}
|
|
434
434
|
return !1;
|
|
435
435
|
}
|
|
436
|
-
function
|
|
436
|
+
function et(e) {
|
|
437
437
|
return typeof e == "string";
|
|
438
438
|
}
|
|
439
439
|
function Y(e) {
|
|
440
|
-
return Array.isArray(e) ? e.filter((a) =>
|
|
440
|
+
return Array.isArray(e) ? e.filter((a) => et(a)).join(" ") : e;
|
|
441
441
|
}
|
|
442
|
-
function
|
|
443
|
-
const t =
|
|
442
|
+
function tt(e, a) {
|
|
443
|
+
const t = n(() => X(e) ? e.value : e), l = n(() => Y(t.value.invalidLabel)), r = n(() => Y(t.value.validLabel)), o = n(() => t.value.loadingLabel), f = n(() => t.value.hintLabel), i = n(() => !!(t.value.loading && (a.loading || o.value))), c = n(() => !i.value && !!(t.value.invalid && (a.invalid || l.value))), v = n(() => !i.value && !c.value && !!(t.value.valid && (a.valid || r.value))), p = n(() => !i.value && !c.value && !v.value && !!(a.hint || f.value)), V = n(() => c.value || v.value || i.value || p.value);
|
|
444
444
|
return {
|
|
445
|
-
hasInvalidLabelOrSlot:
|
|
446
|
-
hasHintLabelOrSlot:
|
|
447
|
-
hasValidLabelOrSlot:
|
|
448
|
-
hasLoadingLabelOrSlot:
|
|
449
|
-
hintSlotScope:
|
|
445
|
+
hasInvalidLabelOrSlot: c,
|
|
446
|
+
hasHintLabelOrSlot: p,
|
|
447
|
+
hasValidLabelOrSlot: v,
|
|
448
|
+
hasLoadingLabelOrSlot: i,
|
|
449
|
+
hintSlotScope: n(() => ({
|
|
450
450
|
modelValue: t.value.modelValue,
|
|
451
451
|
valid: t.value.valid,
|
|
452
452
|
invalid: t.value.invalid,
|
|
@@ -460,72 +460,70 @@ function Ze(e, a) {
|
|
|
460
460
|
} },
|
|
461
461
|
setup() {
|
|
462
462
|
return {
|
|
463
|
-
isVisible:
|
|
464
|
-
invalidLabel:
|
|
465
|
-
validLabel:
|
|
466
|
-
loadingLabel:
|
|
467
|
-
hintLabel:
|
|
468
|
-
hasInvalidLabelOrSlot:
|
|
469
|
-
hasValidLabelOrSlot:
|
|
470
|
-
hasLoadingLabelOrSlot:
|
|
471
|
-
hasHintLabelOrSlot:
|
|
463
|
+
isVisible: V,
|
|
464
|
+
invalidLabel: l,
|
|
465
|
+
validLabel: r,
|
|
466
|
+
loadingLabel: o,
|
|
467
|
+
hintLabel: f,
|
|
468
|
+
hasInvalidLabelOrSlot: c,
|
|
469
|
+
hasValidLabelOrSlot: v,
|
|
470
|
+
hasLoadingLabelOrSlot: i,
|
|
471
|
+
hasHintLabelOrSlot: p
|
|
472
472
|
};
|
|
473
473
|
},
|
|
474
474
|
render() {
|
|
475
475
|
if (this.isVisible) {
|
|
476
|
-
let
|
|
477
|
-
return this.hasInvalidLabelOrSlot && (
|
|
476
|
+
let s;
|
|
477
|
+
return this.hasInvalidLabelOrSlot && (s = "alert"), this.hasValidLabelOrSlot && (s = "status"), this.hasLoadingLabelOrSlot ? L(this.tag, { role: s }, this.$slots.loading?.() ?? this.loadingLabel) : this.hasInvalidLabelOrSlot ? L(this.tag, { role: s }, this.$slots.invalid?.() ?? this.$slots.invalid ?? this.invalidLabel) : this.hasValidLabelOrSlot ? L(this.tag, { role: s }, this.$slots.valid?.() ?? this.validLabel) : L(this.tag, { role: s }, this.$slots.hint?.() ?? this.$slots.hint ?? this.hintLabel);
|
|
478
478
|
}
|
|
479
479
|
return null;
|
|
480
480
|
}
|
|
481
481
|
})
|
|
482
482
|
};
|
|
483
483
|
}
|
|
484
|
-
function
|
|
484
|
+
function at() {
|
|
485
485
|
return Q(we, void 0);
|
|
486
486
|
}
|
|
487
|
-
function
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
487
|
+
function rt(e, a, t) {
|
|
488
|
+
let l = a;
|
|
489
|
+
if (Array.isArray(e) && e.length) {
|
|
490
|
+
const r = e[0];
|
|
491
|
+
r() === a && (l = t);
|
|
492
|
+
}
|
|
493
|
+
if (typeof e == "function" && e() === a && (l = t), typeof e == "object") {
|
|
494
|
+
let r = e.default;
|
|
495
|
+
typeof r == "function" && (r = r()), (typeof r == "object" ? JSON.stringify(r) === JSON.stringify(a) : r === a) && (l = t);
|
|
496
|
+
}
|
|
497
|
+
return l;
|
|
498
|
+
}
|
|
499
|
+
function lt(e, a, t) {
|
|
500
|
+
const l = at(), r = n(() => {
|
|
501
|
+
if (l?.defaults.value?.[e])
|
|
502
|
+
return l.defaults.value[e];
|
|
491
503
|
});
|
|
492
|
-
return
|
|
493
|
-
if (
|
|
494
|
-
const
|
|
495
|
-
return Object.keys(
|
|
496
|
-
const
|
|
497
|
-
|
|
498
|
-
if (Array.isArray(u[r])) {
|
|
499
|
-
const f = u[r];
|
|
500
|
-
f.length && f[0] === b && (d[r] = n[r]);
|
|
501
|
-
}
|
|
502
|
-
if (typeof u[r] == "function") {
|
|
503
|
-
const f = u[r];
|
|
504
|
-
f() === b && (d[r] = n[r]);
|
|
505
|
-
}
|
|
506
|
-
if (typeof u[r] == "object") {
|
|
507
|
-
let f = u[r].default;
|
|
508
|
-
typeof f == "function" && (f = f()), typeof f == "object" ? JSON.stringify(f) === JSON.stringify(b) && (d[r] = n[r]) : f === b && (d[r] = n[r]);
|
|
509
|
-
}
|
|
510
|
-
}
|
|
511
|
-
return d;
|
|
504
|
+
return n(() => {
|
|
505
|
+
if (r.value === void 0) return t;
|
|
506
|
+
const o = r.value, f = a, i = t;
|
|
507
|
+
return Object.keys(f).reduce((c, v) => {
|
|
508
|
+
const p = i[v];
|
|
509
|
+
return c[v] = v in o ? rt(f[v], p, o[v]) : p, c;
|
|
512
510
|
}, {});
|
|
513
511
|
});
|
|
514
512
|
}
|
|
515
|
-
function
|
|
516
|
-
return
|
|
513
|
+
function nt(e) {
|
|
514
|
+
return n(() => String(e?.value || ke()));
|
|
517
515
|
}
|
|
518
|
-
function
|
|
519
|
-
return
|
|
520
|
-
const
|
|
521
|
-
return
|
|
522
|
-
|
|
523
|
-
}), t && Object.keys(t.value).forEach((
|
|
524
|
-
|
|
525
|
-
}),
|
|
516
|
+
function ot(e, a, t) {
|
|
517
|
+
return n(() => {
|
|
518
|
+
const l = { [e]: !0 }, r = typeof a?.value == "string" ? a.value.split(" ") : a?.value;
|
|
519
|
+
return r && Array.isArray(r) && r.forEach((o) => {
|
|
520
|
+
o && (l[`${e}--${o}`] = !0);
|
|
521
|
+
}), t && Object.keys(t.value).forEach((o) => {
|
|
522
|
+
l[`${e}--${o}`] = u(t.value[o]);
|
|
523
|
+
}), l;
|
|
526
524
|
});
|
|
527
525
|
}
|
|
528
|
-
var
|
|
526
|
+
var it = ["for"], ut = [
|
|
529
527
|
"id",
|
|
530
528
|
"name",
|
|
531
529
|
"disabled",
|
|
@@ -534,97 +532,97 @@ var rt = ["for"], nt = [
|
|
|
534
532
|
"aria-invalid",
|
|
535
533
|
"aria-describedby",
|
|
536
534
|
"aria-errormessage"
|
|
537
|
-
],
|
|
538
|
-
...
|
|
535
|
+
], st = { name: "VvCheckbox" }, dt = /* @__PURE__ */ W({
|
|
536
|
+
...st,
|
|
539
537
|
props: z,
|
|
540
538
|
emits: Ye,
|
|
541
539
|
setup(e, { emit: a }) {
|
|
542
|
-
const t = e,
|
|
543
|
-
if (
|
|
544
|
-
if (
|
|
545
|
-
}),
|
|
540
|
+
const t = e, l = a, r = Pe(), o = lt("VvCheckbox", z, t), { id: f, disabled: i, readonly: c, valid: v, invalid: p, propsSwitch: V, modelValue: s, indeterminate: D, isInGroup: G } = We(t, l), j = nt(f), N = n(() => `${j.value}-hint`), le = n(() => q.value ? -1 : t.tabindex), S = me(), y = n(() => t.uncheckedValue !== void 0 && !G.value), q = n(() => i.value || c.value), ne = n(() => {
|
|
541
|
+
if (p.value === !0) return !0;
|
|
542
|
+
if (v.value === !0) return !1;
|
|
543
|
+
}), H = n(() => y.value ? s.value === t.value : Array.isArray(s.value) ? Ze(t.value, s.value) : re(t.value, s.value)), F = n(() => !!(D.value || !H.value && y.value && t.uncheckedValue !== s.value)), oe = n(() => {
|
|
546
544
|
if (!y.value)
|
|
547
545
|
return [
|
|
548
546
|
"string",
|
|
549
547
|
"number",
|
|
550
548
|
"boolean"
|
|
551
549
|
].includes(typeof t.value) ? t.value : !0;
|
|
552
|
-
}), I =
|
|
550
|
+
}), I = n({
|
|
553
551
|
get() {
|
|
554
|
-
return
|
|
552
|
+
return H.value;
|
|
555
553
|
},
|
|
556
|
-
set(
|
|
557
|
-
if (y.value)
|
|
558
|
-
else if (Array.isArray(
|
|
559
|
-
const
|
|
560
|
-
|
|
561
|
-
} else
|
|
562
|
-
|
|
554
|
+
set(d) {
|
|
555
|
+
if (y.value) s.value = d ? t.value : t.uncheckedValue;
|
|
556
|
+
else if (Array.isArray(s.value) || G.value) {
|
|
557
|
+
const b = s.value ?? [], g = new Set(Array.isArray(b) ? b : [b]);
|
|
558
|
+
d ? g.add(t.value) : g.delete(t.value), s.value = [...g];
|
|
559
|
+
} else s.value = d ? t.value : void 0;
|
|
560
|
+
l("change", d);
|
|
563
561
|
}
|
|
564
|
-
}), { modifiers: ie } = Z(t), ue =
|
|
565
|
-
switch:
|
|
566
|
-
valid:
|
|
567
|
-
invalid:
|
|
568
|
-
disabled:
|
|
569
|
-
readonly:
|
|
570
|
-
indeterminate:
|
|
562
|
+
}), { modifiers: ie } = Z(t), ue = ot("vv-checkbox", ie, n(() => ({
|
|
563
|
+
switch: V.value,
|
|
564
|
+
valid: v.value,
|
|
565
|
+
invalid: p.value,
|
|
566
|
+
disabled: i.value,
|
|
567
|
+
readonly: c.value,
|
|
568
|
+
indeterminate: D.value
|
|
571
569
|
})));
|
|
572
570
|
Ce(() => {
|
|
573
|
-
y.value && Array.isArray(
|
|
574
|
-
}), Ae(() =>
|
|
575
|
-
|
|
571
|
+
y.value && Array.isArray(s.value) && console.warn("[VvCheckbox] The model value is an array but the component is in binary mode.");
|
|
572
|
+
}), Ae(() => F.value, (d) => {
|
|
573
|
+
d ? S.value.indeterminate = !0 : S.value.indeterminate = !1;
|
|
576
574
|
}), he(() => {
|
|
577
|
-
|
|
575
|
+
F.value && (S.value.indeterminate = !0);
|
|
578
576
|
});
|
|
579
|
-
const { HintSlot: se, hasHintLabelOrSlot: de, hasInvalidLabelOrSlot: ve, hintSlotScope:
|
|
580
|
-
return (
|
|
581
|
-
class:
|
|
582
|
-
for:
|
|
577
|
+
const { HintSlot: se, hasHintLabelOrSlot: de, hasInvalidLabelOrSlot: ve, hintSlotScope: m } = tt(o, r);
|
|
578
|
+
return (d, b) => (Se(), fe("label", {
|
|
579
|
+
class: ge(u(ue)),
|
|
580
|
+
for: u(j)
|
|
583
581
|
}, [
|
|
584
|
-
|
|
585
|
-
id:
|
|
582
|
+
Ve(ce("input", {
|
|
583
|
+
id: u(j),
|
|
586
584
|
ref_key: "input",
|
|
587
|
-
ref:
|
|
588
|
-
"onUpdate:modelValue":
|
|
585
|
+
ref: S,
|
|
586
|
+
"onUpdate:modelValue": b[0] || (b[0] = (g) => X(I) ? I.value = g : null),
|
|
589
587
|
type: "checkbox",
|
|
590
588
|
class: "vv-checkbox__input",
|
|
591
|
-
name:
|
|
592
|
-
disabled:
|
|
593
|
-
value:
|
|
594
|
-
tabindex:
|
|
595
|
-
"aria-invalid":
|
|
596
|
-
"aria-describedby":
|
|
597
|
-
"aria-errormessage":
|
|
598
|
-
}, null, 8,
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
id:
|
|
589
|
+
name: d.name,
|
|
590
|
+
disabled: u(q),
|
|
591
|
+
value: u(oe),
|
|
592
|
+
tabindex: u(le),
|
|
593
|
+
"aria-invalid": u(ne),
|
|
594
|
+
"aria-describedby": u(de) ? u(N) : void 0,
|
|
595
|
+
"aria-errormessage": u(ve) ? u(N) : void 0
|
|
596
|
+
}, null, 8, ut), [[Be, u(I)]]),
|
|
597
|
+
h(d.$slots, "default", { value: u(s) }, () => [be(Oe(d.label), 1)]),
|
|
598
|
+
ye(u(se), {
|
|
599
|
+
id: u(N),
|
|
602
600
|
class: "vv-checkbox__hint"
|
|
603
601
|
}, pe({ _: 2 }, [
|
|
604
|
-
|
|
602
|
+
d.$slots.hint ? {
|
|
605
603
|
name: "hint",
|
|
606
|
-
fn:
|
|
604
|
+
fn: P(() => [h(d.$slots, "hint", k(O(u(m))))]),
|
|
607
605
|
key: "0"
|
|
608
606
|
} : void 0,
|
|
609
|
-
|
|
607
|
+
d.$slots.loading ? {
|
|
610
608
|
name: "loading",
|
|
611
|
-
fn:
|
|
609
|
+
fn: P(() => [h(d.$slots, "loading", k(O(u(m))))]),
|
|
612
610
|
key: "1"
|
|
613
611
|
} : void 0,
|
|
614
|
-
|
|
612
|
+
d.$slots.valid ? {
|
|
615
613
|
name: "valid",
|
|
616
|
-
fn:
|
|
614
|
+
fn: P(() => [h(d.$slots, "valid", k(O(u(m))))]),
|
|
617
615
|
key: "2"
|
|
618
616
|
} : void 0,
|
|
619
|
-
|
|
617
|
+
d.$slots.invalid ? {
|
|
620
618
|
name: "invalid",
|
|
621
|
-
fn:
|
|
619
|
+
fn: P(() => [h(d.$slots, "invalid", k(O(u(m))))]),
|
|
622
620
|
key: "3"
|
|
623
621
|
} : void 0
|
|
624
622
|
]), 1032, ["id"])
|
|
625
|
-
], 10,
|
|
623
|
+
], 10, it));
|
|
626
624
|
}
|
|
627
|
-
}),
|
|
625
|
+
}), ht = dt;
|
|
628
626
|
export {
|
|
629
|
-
|
|
627
|
+
ht as default
|
|
630
628
|
};
|