@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 Ce, computed as
|
|
1
|
+
import { Fragment as Ce, computed as o, createBlock as Be, createCommentVNode as $e, createElementBlock as E, createElementVNode as le, createSlots as ne, createTextVNode as Ae, createVNode as oe, defineComponent as F, guardReactiveProps as h, h as w, inject as ie, isRef as ue, mergeProps as _e, normalizeClass as se, normalizeProps as m, onMounted as je, openBlock as $, provide as Ne, ref as Ie, renderList as we, renderSlot as g, toDisplayString as de, toRef as Ee, toRefs as x, unref as u, useId as xe, useSlots as ve, vModelCheckbox as De, watch as Ge, watchEffect as Re, withCtx as S, withDirectives as qe } from "vue";
|
|
2
2
|
import { useVModel as He } from "@vueuse/core";
|
|
3
3
|
import { getProperty as K } from "dot-prop";
|
|
4
4
|
var Ke = {
|
|
@@ -34,7 +34,7 @@ var Ke = {
|
|
|
34
34
|
type: String,
|
|
35
35
|
default: "noopener noreferrer"
|
|
36
36
|
}
|
|
37
|
-
},
|
|
37
|
+
}, M = {
|
|
38
38
|
valid: {
|
|
39
39
|
type: Boolean,
|
|
40
40
|
default: !1
|
|
@@ -43,7 +43,7 @@ var Ke = {
|
|
|
43
43
|
type: [String, Array],
|
|
44
44
|
default: void 0
|
|
45
45
|
}
|
|
46
|
-
},
|
|
46
|
+
}, T = {
|
|
47
47
|
invalid: {
|
|
48
48
|
type: Boolean,
|
|
49
49
|
default: !1
|
|
@@ -52,7 +52,7 @@ var Ke = {
|
|
|
52
52
|
type: [String, Array],
|
|
53
53
|
default: void 0
|
|
54
54
|
}
|
|
55
|
-
},
|
|
55
|
+
}, z = {
|
|
56
56
|
loading: {
|
|
57
57
|
type: Boolean,
|
|
58
58
|
default: !1
|
|
@@ -73,7 +73,7 @@ var Ke = {
|
|
|
73
73
|
} }, Ye = { current: {
|
|
74
74
|
type: Boolean,
|
|
75
75
|
default: !1
|
|
76
|
-
} },
|
|
76
|
+
} }, jt = {
|
|
77
77
|
showClearAction: {
|
|
78
78
|
type: Boolean,
|
|
79
79
|
default: !1
|
|
@@ -92,13 +92,13 @@ var Ke = {
|
|
|
92
92
|
} }, G = { label: {
|
|
93
93
|
type: [String, Number],
|
|
94
94
|
default: void 0
|
|
95
|
-
} },
|
|
95
|
+
} }, J = { readonly: {
|
|
96
96
|
type: Boolean,
|
|
97
97
|
default: !1
|
|
98
98
|
} }, R = { modifiers: {
|
|
99
99
|
type: [String, Array],
|
|
100
100
|
default: void 0
|
|
101
|
-
} },
|
|
101
|
+
} }, U = { hintLabel: {
|
|
102
102
|
type: String,
|
|
103
103
|
default: ""
|
|
104
104
|
} }, Qe = {
|
|
@@ -146,7 +146,7 @@ var Ke = {
|
|
|
146
146
|
} }, tt = { floating: {
|
|
147
147
|
type: Boolean,
|
|
148
148
|
default: !1
|
|
149
|
-
} }, at = { id: [String, Number] },
|
|
149
|
+
} }, at = { id: [String, Number] }, Nt = {
|
|
150
150
|
placement: {
|
|
151
151
|
type: String,
|
|
152
152
|
default: Q.bottom,
|
|
@@ -213,17 +213,17 @@ var Ke = {
|
|
|
213
213
|
} }, lt = { autocomplete: {
|
|
214
214
|
type: String,
|
|
215
215
|
default: "off"
|
|
216
|
-
} },
|
|
216
|
+
} }, It = {
|
|
217
217
|
...be,
|
|
218
218
|
...rt,
|
|
219
219
|
...lt,
|
|
220
220
|
...pe,
|
|
221
221
|
...D,
|
|
222
|
-
...
|
|
222
|
+
...J,
|
|
223
|
+
...M,
|
|
223
224
|
...T,
|
|
225
|
+
...U,
|
|
224
226
|
...z,
|
|
225
|
-
...Y,
|
|
226
|
-
...J,
|
|
227
227
|
...R,
|
|
228
228
|
...Xe,
|
|
229
229
|
...Ze,
|
|
@@ -246,14 +246,14 @@ var Ke = {
|
|
|
246
246
|
}, nt = {
|
|
247
247
|
...be,
|
|
248
248
|
...pe,
|
|
249
|
+
...M,
|
|
249
250
|
...T,
|
|
250
|
-
...z,
|
|
251
|
-
...Y,
|
|
252
|
-
...D,
|
|
253
251
|
...U,
|
|
252
|
+
...D,
|
|
253
|
+
...J,
|
|
254
254
|
...R,
|
|
255
255
|
...G,
|
|
256
|
-
...
|
|
256
|
+
...z,
|
|
257
257
|
value: {
|
|
258
258
|
type: [
|
|
259
259
|
String,
|
|
@@ -271,16 +271,16 @@ var Ke = {
|
|
|
271
271
|
],
|
|
272
272
|
default: void 0
|
|
273
273
|
}
|
|
274
|
-
},
|
|
274
|
+
}, ee = {
|
|
275
|
+
...M,
|
|
275
276
|
...T,
|
|
276
|
-
...z,
|
|
277
277
|
...Qe,
|
|
278
|
-
...Y,
|
|
279
|
-
...D,
|
|
280
278
|
...U,
|
|
279
|
+
...D,
|
|
280
|
+
...J,
|
|
281
281
|
...R,
|
|
282
282
|
...G,
|
|
283
|
-
...
|
|
283
|
+
...z,
|
|
284
284
|
...ce,
|
|
285
285
|
modelValue: {
|
|
286
286
|
type: [
|
|
@@ -300,7 +300,7 @@ var Ke = {
|
|
|
300
300
|
type: Boolean,
|
|
301
301
|
default: !1
|
|
302
302
|
}
|
|
303
|
-
},
|
|
303
|
+
}, wt = {
|
|
304
304
|
...D,
|
|
305
305
|
...G,
|
|
306
306
|
...We,
|
|
@@ -320,82 +320,82 @@ var Ke = {
|
|
|
320
320
|
type: String,
|
|
321
321
|
default: Te.button
|
|
322
322
|
}
|
|
323
|
-
},
|
|
323
|
+
}, Et = {
|
|
324
324
|
storageType: {
|
|
325
325
|
type: String,
|
|
326
326
|
default: W.local,
|
|
327
327
|
validator: (e) => Object.values(W).includes(e)
|
|
328
328
|
},
|
|
329
329
|
storageKey: String
|
|
330
|
-
},
|
|
331
|
-
function
|
|
332
|
-
return t ? te(e, t) === te(
|
|
330
|
+
}, ot = ["update:modelValue", "change"];
|
|
331
|
+
function ye(e, a, t) {
|
|
332
|
+
return t ? te(e, t) === te(a, t) : Y(e, a);
|
|
333
333
|
}
|
|
334
|
-
function
|
|
335
|
-
if (e
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
if (d !== v) return !1;
|
|
347
|
-
if (d && v) return e.getTime() === r.getTime();
|
|
348
|
-
const a = e instanceof RegExp, b = r instanceof RegExp;
|
|
349
|
-
if (a !== b) return !1;
|
|
350
|
-
if (a && b) return e.toString() === r.toString();
|
|
351
|
-
const f = Object.keys(e);
|
|
352
|
-
if (n = f.length, n !== Object.keys(r).length) return !1;
|
|
353
|
-
for (l = n; l-- !== 0; ) if (!Object.hasOwn(r, f[l])) return !1;
|
|
354
|
-
for (l = n; l-- !== 0; )
|
|
355
|
-
if (s = f[l], !F(e[s], r[s])) return !1;
|
|
356
|
-
return !0;
|
|
334
|
+
function it(e, a) {
|
|
335
|
+
if (e.length !== a.length) return !1;
|
|
336
|
+
for (let t = e.length; t-- !== 0; ) if (!Y(e[t], a[t])) return !1;
|
|
337
|
+
return !0;
|
|
338
|
+
}
|
|
339
|
+
function ut(e, a) {
|
|
340
|
+
const t = Object.keys(e), { length: n } = t;
|
|
341
|
+
if (n !== Object.keys(a).length) return !1;
|
|
342
|
+
for (let r = n; r-- !== 0; ) if (!Object.hasOwn(a, t[r])) return !1;
|
|
343
|
+
for (let r = n; r-- !== 0; ) {
|
|
344
|
+
const i = t[r];
|
|
345
|
+
if (!Y(e[i], a[i])) return !1;
|
|
357
346
|
}
|
|
358
|
-
return
|
|
347
|
+
return !0;
|
|
359
348
|
}
|
|
360
|
-
function
|
|
361
|
-
if (e
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
349
|
+
function Y(e, a) {
|
|
350
|
+
if (e === a) return !0;
|
|
351
|
+
if (!e || !a || typeof e != "object" || typeof a != "object") return Number.isNaN(e) && Number.isNaN(a);
|
|
352
|
+
const t = Array.isArray(e), n = Array.isArray(a);
|
|
353
|
+
if (t !== n) return !1;
|
|
354
|
+
if (t && n) return it(e, a);
|
|
355
|
+
const r = e instanceof Date, i = a instanceof Date;
|
|
356
|
+
if (r !== i) return !1;
|
|
357
|
+
if (r && i) return e.getTime() === a.getTime();
|
|
358
|
+
const f = e instanceof RegExp, s = a instanceof RegExp;
|
|
359
|
+
return f !== s ? !1 : f && s ? e.toString() === a.toString() : ut(e, a);
|
|
360
|
+
}
|
|
361
|
+
function te(e, a) {
|
|
362
|
+
if (e && Object.keys(e).length && a) {
|
|
363
|
+
if (!a.includes(".")) return e[a];
|
|
364
|
+
const t = a.split(".");
|
|
365
|
+
let n = e;
|
|
366
|
+
for (let r = 0, i = t.length; r < i; ++r) {
|
|
367
|
+
if (n == null) return null;
|
|
368
|
+
n = n[t[r]];
|
|
367
369
|
}
|
|
368
|
-
return
|
|
369
|
-
} else
|
|
370
|
-
return e[r];
|
|
371
|
-
else return null;
|
|
370
|
+
return n;
|
|
371
|
+
} else return null;
|
|
372
372
|
}
|
|
373
|
-
function
|
|
374
|
-
if (e != null &&
|
|
375
|
-
for (const t of
|
|
373
|
+
function st(e, a) {
|
|
374
|
+
if (e != null && a?.length) {
|
|
375
|
+
for (const t of a) if (ye(e, t)) return !0;
|
|
376
376
|
}
|
|
377
377
|
return !1;
|
|
378
378
|
}
|
|
379
|
-
function
|
|
379
|
+
function dt(e) {
|
|
380
380
|
return typeof e == "string";
|
|
381
381
|
}
|
|
382
382
|
function ae(e) {
|
|
383
|
-
return Array.isArray(e) ? e.filter((
|
|
383
|
+
return Array.isArray(e) ? e.filter((a) => dt(a)).join(" ") : e;
|
|
384
384
|
}
|
|
385
|
-
function
|
|
386
|
-
const t =
|
|
385
|
+
function ge(e, a) {
|
|
386
|
+
const t = o(() => ue(e) ? e.value : e), n = o(() => ae(t.value.invalidLabel)), r = o(() => ae(t.value.validLabel)), i = o(() => t.value.loadingLabel), f = o(() => t.value.hintLabel), s = o(() => !!(t.value.loading && (a.loading || i.value))), p = o(() => !s.value && !!(t.value.invalid && (a.invalid || n.value))), l = o(() => !s.value && !p.value && !!(t.value.valid && (a.valid || r.value))), b = o(() => !s.value && !p.value && !l.value && !!(a.hint || f.value)), O = o(() => p.value || l.value || s.value || b.value);
|
|
387
387
|
return {
|
|
388
|
-
hasInvalidLabelOrSlot:
|
|
388
|
+
hasInvalidLabelOrSlot: p,
|
|
389
389
|
hasHintLabelOrSlot: b,
|
|
390
|
-
hasValidLabelOrSlot:
|
|
391
|
-
hasLoadingLabelOrSlot:
|
|
392
|
-
hintSlotScope:
|
|
390
|
+
hasValidLabelOrSlot: l,
|
|
391
|
+
hasLoadingLabelOrSlot: s,
|
|
392
|
+
hintSlotScope: o(() => ({
|
|
393
393
|
modelValue: t.value.modelValue,
|
|
394
394
|
valid: t.value.valid,
|
|
395
395
|
invalid: t.value.invalid,
|
|
396
396
|
loading: t.value.loading
|
|
397
397
|
})),
|
|
398
|
-
HintSlot:
|
|
398
|
+
HintSlot: F({
|
|
399
399
|
name: "HintSlot",
|
|
400
400
|
props: { tag: {
|
|
401
401
|
type: String,
|
|
@@ -403,53 +403,53 @@ function ye(e, r) {
|
|
|
403
403
|
} },
|
|
404
404
|
setup() {
|
|
405
405
|
return {
|
|
406
|
-
isVisible:
|
|
407
|
-
invalidLabel:
|
|
408
|
-
validLabel:
|
|
409
|
-
loadingLabel:
|
|
410
|
-
hintLabel:
|
|
411
|
-
hasInvalidLabelOrSlot:
|
|
412
|
-
hasValidLabelOrSlot:
|
|
413
|
-
hasLoadingLabelOrSlot:
|
|
406
|
+
isVisible: O,
|
|
407
|
+
invalidLabel: n,
|
|
408
|
+
validLabel: r,
|
|
409
|
+
loadingLabel: i,
|
|
410
|
+
hintLabel: f,
|
|
411
|
+
hasInvalidLabelOrSlot: p,
|
|
412
|
+
hasValidLabelOrSlot: l,
|
|
413
|
+
hasLoadingLabelOrSlot: s,
|
|
414
414
|
hasHintLabelOrSlot: b
|
|
415
415
|
};
|
|
416
416
|
},
|
|
417
417
|
render() {
|
|
418
418
|
if (this.isVisible) {
|
|
419
|
-
let
|
|
420
|
-
return this.hasInvalidLabelOrSlot && (
|
|
419
|
+
let d;
|
|
420
|
+
return this.hasInvalidLabelOrSlot && (d = "alert"), this.hasValidLabelOrSlot && (d = "status"), this.hasLoadingLabelOrSlot ? w(this.tag, { role: d }, this.$slots.loading?.() ?? this.loadingLabel) : this.hasInvalidLabelOrSlot ? w(this.tag, { role: d }, this.$slots.invalid?.() ?? this.$slots.invalid ?? this.invalidLabel) : this.hasValidLabelOrSlot ? w(this.tag, { role: d }, this.$slots.valid?.() ?? this.validLabel) : w(this.tag, { role: d }, this.$slots.hint?.() ?? this.$slots.hint ?? this.hintLabel);
|
|
421
421
|
}
|
|
422
422
|
return null;
|
|
423
423
|
}
|
|
424
424
|
})
|
|
425
425
|
};
|
|
426
426
|
}
|
|
427
|
-
function
|
|
428
|
-
const
|
|
429
|
-
function
|
|
430
|
-
const
|
|
431
|
-
if (
|
|
427
|
+
function vt(e) {
|
|
428
|
+
const a = ie(e, void 0), t = o(() => a !== void 0);
|
|
429
|
+
function n(r, i, f) {
|
|
430
|
+
const s = a?.[r];
|
|
431
|
+
if (s) return o({
|
|
432
432
|
get() {
|
|
433
|
-
return
|
|
433
|
+
return s.value;
|
|
434
434
|
},
|
|
435
|
-
set(
|
|
436
|
-
|
|
435
|
+
set(l) {
|
|
436
|
+
s.value = l;
|
|
437
437
|
}
|
|
438
438
|
});
|
|
439
|
-
const
|
|
440
|
-
return
|
|
439
|
+
const p = Ee(i, r);
|
|
440
|
+
return o({
|
|
441
441
|
get() {
|
|
442
|
-
return
|
|
442
|
+
return p.value;
|
|
443
443
|
},
|
|
444
|
-
set(
|
|
445
|
-
|
|
444
|
+
set(l) {
|
|
445
|
+
f && f(`update:${r}`, l);
|
|
446
446
|
}
|
|
447
447
|
});
|
|
448
448
|
}
|
|
449
449
|
return {
|
|
450
|
-
group:
|
|
450
|
+
group: a,
|
|
451
451
|
isInGroup: t,
|
|
452
|
-
getGroupOrLocalRef:
|
|
452
|
+
getGroupOrLocalRef: n
|
|
453
453
|
};
|
|
454
454
|
}
|
|
455
455
|
var re = {
|
|
@@ -462,72 +462,70 @@ var re = {
|
|
|
462
462
|
Boolean
|
|
463
463
|
],
|
|
464
464
|
switch: Boolean
|
|
465
|
-
},
|
|
465
|
+
}, ft = [
|
|
466
466
|
"click",
|
|
467
467
|
"update:modelValue",
|
|
468
468
|
"change",
|
|
469
469
|
"blur"
|
|
470
470
|
];
|
|
471
|
-
function
|
|
472
|
-
const { group: t, isInGroup:
|
|
471
|
+
function ct(e, a) {
|
|
472
|
+
const { group: t, isInGroup: n, getGroupOrLocalRef: r } = vt(fe), { id: i, switch: f, indeterminate: s } = x(e);
|
|
473
473
|
return {
|
|
474
|
-
id:
|
|
475
|
-
propsSwitch:
|
|
476
|
-
indeterminate:
|
|
474
|
+
id: i,
|
|
475
|
+
propsSwitch: f,
|
|
476
|
+
indeterminate: s,
|
|
477
477
|
group: t,
|
|
478
|
-
isInGroup:
|
|
479
|
-
modelValue:
|
|
480
|
-
valid:
|
|
481
|
-
invalid:
|
|
482
|
-
readonly:
|
|
483
|
-
disabled:
|
|
478
|
+
isInGroup: n,
|
|
479
|
+
modelValue: r("modelValue", e, a),
|
|
480
|
+
valid: r("valid", e),
|
|
481
|
+
invalid: r("invalid", e),
|
|
482
|
+
readonly: o(() => !!(e.readonly || t?.readonly.value)),
|
|
483
|
+
disabled: o(() => !!(e.disabled || t?.disabled.value))
|
|
484
484
|
};
|
|
485
485
|
}
|
|
486
|
-
function
|
|
486
|
+
function pt() {
|
|
487
487
|
return ie(ze, void 0);
|
|
488
488
|
}
|
|
489
|
-
function
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
489
|
+
function bt(e, a, t) {
|
|
490
|
+
let n = a;
|
|
491
|
+
if (Array.isArray(e) && e.length) {
|
|
492
|
+
const r = e[0];
|
|
493
|
+
r() === a && (n = t);
|
|
494
|
+
}
|
|
495
|
+
if (typeof e == "function" && e() === a && (n = t), typeof e == "object") {
|
|
496
|
+
let r = e.default;
|
|
497
|
+
typeof r == "function" && (r = r()), (typeof r == "object" ? JSON.stringify(r) === JSON.stringify(a) : r === a) && (n = t);
|
|
498
|
+
}
|
|
499
|
+
return n;
|
|
500
|
+
}
|
|
501
|
+
function he(e, a, t) {
|
|
502
|
+
const n = pt(), r = o(() => {
|
|
503
|
+
if (n?.defaults.value?.[e])
|
|
504
|
+
return n.defaults.value[e];
|
|
493
505
|
});
|
|
494
|
-
return
|
|
495
|
-
if (
|
|
496
|
-
const
|
|
497
|
-
return Object.keys(
|
|
498
|
-
const b =
|
|
499
|
-
|
|
500
|
-
if (Array.isArray(s[a])) {
|
|
501
|
-
const f = s[a];
|
|
502
|
-
f.length && f[0] === b && (v[a] = n[a]);
|
|
503
|
-
}
|
|
504
|
-
if (typeof s[a] == "function") {
|
|
505
|
-
const f = s[a];
|
|
506
|
-
f() === b && (v[a] = n[a]);
|
|
507
|
-
}
|
|
508
|
-
if (typeof s[a] == "object") {
|
|
509
|
-
let f = s[a].default;
|
|
510
|
-
typeof f == "function" && (f = f()), typeof f == "object" ? JSON.stringify(f) === JSON.stringify(b) && (v[a] = n[a]) : f === b && (v[a] = n[a]);
|
|
511
|
-
}
|
|
512
|
-
}
|
|
513
|
-
return v;
|
|
506
|
+
return o(() => {
|
|
507
|
+
if (r.value === void 0) return t;
|
|
508
|
+
const i = r.value, f = a, s = t;
|
|
509
|
+
return Object.keys(f).reduce((p, l) => {
|
|
510
|
+
const b = s[l];
|
|
511
|
+
return p[l] = l in i ? bt(f[l], b, i[l]) : b, p;
|
|
514
512
|
}, {});
|
|
515
513
|
});
|
|
516
514
|
}
|
|
517
|
-
function
|
|
518
|
-
return
|
|
515
|
+
function yt(e) {
|
|
516
|
+
return o(() => String(e?.value || xe()));
|
|
519
517
|
}
|
|
520
|
-
function me(e,
|
|
521
|
-
return
|
|
522
|
-
const
|
|
523
|
-
return
|
|
524
|
-
|
|
525
|
-
}), t && Object.keys(t.value).forEach((
|
|
526
|
-
|
|
527
|
-
}),
|
|
518
|
+
function me(e, a, t) {
|
|
519
|
+
return o(() => {
|
|
520
|
+
const n = { [e]: !0 }, r = typeof a?.value == "string" ? a.value.split(" ") : a?.value;
|
|
521
|
+
return r && Array.isArray(r) && r.forEach((i) => {
|
|
522
|
+
i && (n[`${e}--${i}`] = !0);
|
|
523
|
+
}), t && Object.keys(t.value).forEach((i) => {
|
|
524
|
+
n[`${e}--${i}`] = u(t.value[i]);
|
|
525
|
+
}), n;
|
|
528
526
|
});
|
|
529
527
|
}
|
|
530
|
-
var
|
|
528
|
+
var gt = ["for"], ht = [
|
|
531
529
|
"id",
|
|
532
530
|
"name",
|
|
533
531
|
"disabled",
|
|
@@ -536,173 +534,173 @@ var bt = ["for"], gt = [
|
|
|
536
534
|
"aria-invalid",
|
|
537
535
|
"aria-describedby",
|
|
538
536
|
"aria-errormessage"
|
|
539
|
-
],
|
|
540
|
-
...
|
|
537
|
+
], mt = { name: "VvCheckbox" }, St = /* @__PURE__ */ F({
|
|
538
|
+
...mt,
|
|
541
539
|
props: re,
|
|
542
|
-
emits:
|
|
543
|
-
setup(e, { emit:
|
|
544
|
-
const t = e,
|
|
540
|
+
emits: ft,
|
|
541
|
+
setup(e, { emit: a }) {
|
|
542
|
+
const t = e, n = a, r = ve(), i = he("VvCheckbox", re, t), { id: f, disabled: s, readonly: p, valid: l, invalid: b, propsSwitch: O, modelValue: d, indeterminate: A, isInGroup: _ } = ct(t, n), V = yt(f), P = o(() => `${V.value}-hint`), q = o(() => v.value ? -1 : t.tabindex), k = Ie(), y = o(() => t.uncheckedValue !== void 0 && !_.value), v = o(() => s.value || p.value), j = o(() => {
|
|
545
543
|
if (b.value === !0) return !0;
|
|
546
|
-
if (
|
|
547
|
-
}), N =
|
|
544
|
+
if (l.value === !0) return !1;
|
|
545
|
+
}), N = o(() => y.value ? d.value === t.value : Array.isArray(d.value) ? st(t.value, d.value) : ye(t.value, d.value)), C = o(() => !!(A.value || !N.value && y.value && t.uncheckedValue !== d.value)), Se = o(() => {
|
|
548
546
|
if (!y.value)
|
|
549
547
|
return [
|
|
550
548
|
"string",
|
|
551
549
|
"number",
|
|
552
550
|
"boolean"
|
|
553
551
|
].includes(typeof t.value) ? t.value : !0;
|
|
554
|
-
}), H =
|
|
552
|
+
}), H = o({
|
|
555
553
|
get() {
|
|
556
554
|
return N.value;
|
|
557
555
|
},
|
|
558
|
-
set(
|
|
559
|
-
if (y.value)
|
|
560
|
-
else if (Array.isArray(
|
|
561
|
-
const
|
|
562
|
-
|
|
563
|
-
} else
|
|
564
|
-
|
|
556
|
+
set(c) {
|
|
557
|
+
if (y.value) d.value = c ? t.value : t.uncheckedValue;
|
|
558
|
+
else if (Array.isArray(d.value) || _.value) {
|
|
559
|
+
const L = d.value ?? [], B = new Set(Array.isArray(L) ? L : [L]);
|
|
560
|
+
c ? B.add(t.value) : B.delete(t.value), d.value = [...B];
|
|
561
|
+
} else d.value = c ? t.value : void 0;
|
|
562
|
+
n("change", c);
|
|
565
563
|
}
|
|
566
|
-
}), { modifiers: Oe } = x(t),
|
|
567
|
-
switch:
|
|
568
|
-
valid:
|
|
564
|
+
}), { modifiers: Oe } = x(t), ke = me("vv-checkbox", Oe, o(() => ({
|
|
565
|
+
switch: O.value,
|
|
566
|
+
valid: l.value,
|
|
569
567
|
invalid: b.value,
|
|
570
|
-
disabled:
|
|
571
|
-
readonly:
|
|
568
|
+
disabled: s.value,
|
|
569
|
+
readonly: p.value,
|
|
572
570
|
indeterminate: A.value
|
|
573
571
|
})));
|
|
574
572
|
Re(() => {
|
|
575
|
-
y.value && Array.isArray(
|
|
576
|
-
}), Ge(() => C.value, (
|
|
577
|
-
|
|
573
|
+
y.value && Array.isArray(d.value) && console.warn("[VvCheckbox] The model value is an array but the component is in binary mode.");
|
|
574
|
+
}), Ge(() => C.value, (c) => {
|
|
575
|
+
c ? k.value.indeterminate = !0 : k.value.indeterminate = !1;
|
|
578
576
|
}), je(() => {
|
|
579
|
-
C.value && (
|
|
577
|
+
C.value && (k.value.indeterminate = !0);
|
|
580
578
|
});
|
|
581
|
-
const { HintSlot:
|
|
582
|
-
return (
|
|
583
|
-
class: se(u(
|
|
584
|
-
for: u(
|
|
579
|
+
const { HintSlot: Le, hasHintLabelOrSlot: Ve, hasInvalidLabelOrSlot: Pe, hintSlotScope: I } = ge(i, r);
|
|
580
|
+
return (c, L) => ($(), E("label", {
|
|
581
|
+
class: se(u(ke)),
|
|
582
|
+
for: u(V)
|
|
585
583
|
}, [
|
|
586
584
|
qe(le("input", {
|
|
587
|
-
id: u(
|
|
585
|
+
id: u(V),
|
|
588
586
|
ref_key: "input",
|
|
589
|
-
ref:
|
|
590
|
-
"onUpdate:modelValue":
|
|
587
|
+
ref: k,
|
|
588
|
+
"onUpdate:modelValue": L[0] || (L[0] = (B) => ue(H) ? H.value = B : null),
|
|
591
589
|
type: "checkbox",
|
|
592
590
|
class: "vv-checkbox__input",
|
|
593
|
-
name:
|
|
594
|
-
disabled: u(
|
|
591
|
+
name: c.name,
|
|
592
|
+
disabled: u(v),
|
|
595
593
|
value: u(Se),
|
|
596
594
|
tabindex: u(q),
|
|
597
595
|
"aria-invalid": u(j),
|
|
598
|
-
"aria-describedby": u(
|
|
596
|
+
"aria-describedby": u(Ve) ? u(P) : void 0,
|
|
599
597
|
"aria-errormessage": u(Pe) ? u(P) : void 0
|
|
600
|
-
}, null, 8,
|
|
601
|
-
|
|
602
|
-
oe(u(
|
|
598
|
+
}, null, 8, ht), [[De, u(H)]]),
|
|
599
|
+
g(c.$slots, "default", { value: u(d) }, () => [Ae(de(c.label), 1)]),
|
|
600
|
+
oe(u(Le), {
|
|
603
601
|
id: u(P),
|
|
604
602
|
class: "vv-checkbox__hint"
|
|
605
603
|
}, ne({ _: 2 }, [
|
|
606
|
-
|
|
604
|
+
c.$slots.hint ? {
|
|
607
605
|
name: "hint",
|
|
608
|
-
fn:
|
|
606
|
+
fn: S(() => [g(c.$slots, "hint", m(h(u(I))))]),
|
|
609
607
|
key: "0"
|
|
610
608
|
} : void 0,
|
|
611
|
-
|
|
609
|
+
c.$slots.loading ? {
|
|
612
610
|
name: "loading",
|
|
613
|
-
fn:
|
|
611
|
+
fn: S(() => [g(c.$slots, "loading", m(h(u(I))))]),
|
|
614
612
|
key: "1"
|
|
615
613
|
} : void 0,
|
|
616
|
-
|
|
614
|
+
c.$slots.valid ? {
|
|
617
615
|
name: "valid",
|
|
618
|
-
fn:
|
|
616
|
+
fn: S(() => [g(c.$slots, "valid", m(h(u(I))))]),
|
|
619
617
|
key: "2"
|
|
620
618
|
} : void 0,
|
|
621
|
-
|
|
619
|
+
c.$slots.invalid ? {
|
|
622
620
|
name: "invalid",
|
|
623
|
-
fn:
|
|
621
|
+
fn: S(() => [g(c.$slots, "invalid", m(h(u(I))))]),
|
|
624
622
|
key: "3"
|
|
625
623
|
} : void 0
|
|
626
624
|
]), 1032, ["id"])
|
|
627
|
-
], 10,
|
|
625
|
+
], 10, gt));
|
|
628
626
|
}
|
|
629
|
-
}),
|
|
630
|
-
function
|
|
631
|
-
Ne(e,
|
|
627
|
+
}), Ot = St;
|
|
628
|
+
function kt(e, a) {
|
|
629
|
+
Ne(e, a);
|
|
632
630
|
}
|
|
633
|
-
function
|
|
634
|
-
const { options:
|
|
631
|
+
function Lt(e) {
|
|
632
|
+
const { options: a, labelKey: t, valueKey: n, disabledKey: r } = x(e);
|
|
635
633
|
return {
|
|
636
|
-
options:
|
|
637
|
-
getOptionLabel: (
|
|
638
|
-
getOptionValue: (
|
|
639
|
-
isOptionDisabled: (
|
|
640
|
-
getOptionGrouped: (
|
|
634
|
+
options: a,
|
|
635
|
+
getOptionLabel: (l) => typeof l == "string" ? l : typeof t.value == "function" ? t.value(l) : String(t.value ? K(l, t.value) : l),
|
|
636
|
+
getOptionValue: (l) => typeof l == "string" ? l : typeof n.value == "function" ? n.value(l) : n.value ? K(l, n.value) : l,
|
|
637
|
+
isOptionDisabled: (l) => typeof l == "string" ? !1 : typeof r.value == "function" ? r.value(l) : r.value ? !!K(l, r.value) : !1,
|
|
638
|
+
getOptionGrouped: (l) => typeof l == "string" ? [] : typeof l == "object" && l && "options" in l ? l.options : []
|
|
641
639
|
};
|
|
642
640
|
}
|
|
643
|
-
var Vt = ["textContent"],
|
|
644
|
-
...
|
|
641
|
+
var Vt = ["textContent"], Pt = { class: "vv-checkbox-group__wrapper" }, Ct = { name: "VvCheckboxGroup" }, Bt = /* @__PURE__ */ F({
|
|
642
|
+
...Ct,
|
|
645
643
|
props: ee,
|
|
646
|
-
emits:
|
|
647
|
-
setup(e, { emit:
|
|
648
|
-
const t = e,
|
|
649
|
-
|
|
650
|
-
modelValue:
|
|
651
|
-
disabled:
|
|
652
|
-
readonly:
|
|
644
|
+
emits: ot,
|
|
645
|
+
setup(e, { emit: a }) {
|
|
646
|
+
const t = e, n = a, r = ve(), i = he("VvCheckboxGroup", ee, t), f = He(t, "modelValue", n), { disabled: s, readonly: p, vertical: l, valid: b, invalid: O, modifiers: d } = x(t);
|
|
647
|
+
kt(fe, {
|
|
648
|
+
modelValue: f,
|
|
649
|
+
disabled: s,
|
|
650
|
+
readonly: p,
|
|
653
651
|
valid: b,
|
|
654
|
-
invalid:
|
|
652
|
+
invalid: O
|
|
655
653
|
});
|
|
656
|
-
const { getOptionLabel: A, getOptionValue: _, isOptionDisabled:
|
|
657
|
-
disabled:
|
|
658
|
-
readonly:
|
|
654
|
+
const { getOptionLabel: A, getOptionValue: _, isOptionDisabled: V } = Lt(t), P = me("vv-checkbox-group", d, o(() => ({
|
|
655
|
+
disabled: s.value,
|
|
656
|
+
readonly: p.value,
|
|
659
657
|
required: t.required,
|
|
660
|
-
horizontal: !
|
|
658
|
+
horizontal: !l.value,
|
|
661
659
|
valid: b.value,
|
|
662
|
-
invalid:
|
|
660
|
+
invalid: O.value
|
|
663
661
|
})));
|
|
664
|
-
function q(
|
|
662
|
+
function q(v, j) {
|
|
665
663
|
return {
|
|
666
664
|
id: `${t.name}_opt${j}`,
|
|
667
665
|
name: t.name,
|
|
668
|
-
label: A(
|
|
669
|
-
value: _(
|
|
666
|
+
label: A(v),
|
|
667
|
+
value: _(v),
|
|
670
668
|
required: t.required,
|
|
671
|
-
disabled:
|
|
669
|
+
disabled: V(v)
|
|
672
670
|
};
|
|
673
671
|
}
|
|
674
|
-
const { HintSlot:
|
|
675
|
-
return (
|
|
676
|
-
|
|
672
|
+
const { HintSlot: k, hintSlotScope: y } = ge(i, r);
|
|
673
|
+
return (v, j) => ($(), E("fieldset", { class: se(u(P)) }, [
|
|
674
|
+
v.label ? ($(), E("legend", {
|
|
677
675
|
key: 0,
|
|
678
|
-
textContent: de(
|
|
676
|
+
textContent: de(v.label)
|
|
679
677
|
}, null, 8, Vt)) : $e("v-if", !0),
|
|
680
|
-
le("div",
|
|
681
|
-
oe(u(
|
|
682
|
-
|
|
678
|
+
le("div", Pt, [v.options.length > 0 ? ($(!0), E(Ce, { key: 0 }, we(v.options, (N, C) => ($(), Be(Ot, _e({ key: C }, { ref_for: !0 }, q(N, C)), null, 16))), 128)) : g(v.$slots, "default", { key: 1 })]),
|
|
679
|
+
oe(u(k), { class: "vv-checkbox-group__hint" }, ne({ _: 2 }, [
|
|
680
|
+
v.$slots.hint ? {
|
|
683
681
|
name: "hint",
|
|
684
|
-
fn:
|
|
682
|
+
fn: S(() => [g(v.$slots, "hint", m(h(u(y))))]),
|
|
685
683
|
key: "0"
|
|
686
684
|
} : void 0,
|
|
687
|
-
|
|
685
|
+
v.$slots.loading ? {
|
|
688
686
|
name: "loading",
|
|
689
|
-
fn:
|
|
687
|
+
fn: S(() => [g(v.$slots, "loading", m(h(u(y))))]),
|
|
690
688
|
key: "1"
|
|
691
689
|
} : void 0,
|
|
692
|
-
|
|
690
|
+
v.$slots.valid ? {
|
|
693
691
|
name: "valid",
|
|
694
|
-
fn:
|
|
692
|
+
fn: S(() => [g(v.$slots, "valid", m(h(u(y))))]),
|
|
695
693
|
key: "2"
|
|
696
694
|
} : void 0,
|
|
697
|
-
|
|
695
|
+
v.$slots.invalid ? {
|
|
698
696
|
name: "invalid",
|
|
699
|
-
fn:
|
|
697
|
+
fn: S(() => [g(v.$slots, "invalid", m(h(u(y))))]),
|
|
700
698
|
key: "3"
|
|
701
699
|
} : void 0
|
|
702
700
|
]), 1024)
|
|
703
701
|
], 2));
|
|
704
702
|
}
|
|
705
|
-
}),
|
|
703
|
+
}), xt = Bt;
|
|
706
704
|
export {
|
|
707
|
-
|
|
705
|
+
xt as default
|
|
708
706
|
};
|