@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
package/dist/Volver.d.ts
ADDED
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
import type { IconifyIcon, IconifyJSON, PartialIconifyAPIConfig } from '@iconify/vue';
|
|
2
|
+
import type { Component, Directive, Plugin, Ref } from 'vue';
|
|
3
|
+
export declare function useDefaultProps(component: Component, defaults?: Record<string, unknown>, name?: string): Component;
|
|
4
|
+
export type DefaultOptions = Record<string, Record<string, unknown>>;
|
|
5
|
+
export type VolverExperimentalFeatures = {
|
|
6
|
+
/**
|
|
7
|
+
* Force suggestions in `VvInputText` and `VvTextarea` component
|
|
8
|
+
*/
|
|
9
|
+
forceInputSuggestions?: boolean;
|
|
10
|
+
};
|
|
11
|
+
export type VolverOptions = {
|
|
12
|
+
/**
|
|
13
|
+
* If true set "fetchOptions" with credentials: 'include'
|
|
14
|
+
*/
|
|
15
|
+
fetchWithCredentials?: boolean;
|
|
16
|
+
/**
|
|
17
|
+
* Optional fetch params
|
|
18
|
+
*/
|
|
19
|
+
fetchOptions?: RequestInit;
|
|
20
|
+
/**
|
|
21
|
+
* Array of iconify collections that will be added during plugin install
|
|
22
|
+
* @see https://docs.iconify.design/types/iconify-json.html
|
|
23
|
+
*/
|
|
24
|
+
iconsCollections?: IconifyJSON[];
|
|
25
|
+
/**
|
|
26
|
+
* Set true inside nuxt
|
|
27
|
+
*/
|
|
28
|
+
nuxt?: boolean;
|
|
29
|
+
/**
|
|
30
|
+
* Default iconify provider
|
|
31
|
+
* @see https://docs.iconify.design/icon-components/vue/add-collection.html
|
|
32
|
+
* @default 'vv'
|
|
33
|
+
*/
|
|
34
|
+
iconsProvider?: string;
|
|
35
|
+
/**
|
|
36
|
+
* Components to install
|
|
37
|
+
*/
|
|
38
|
+
components?: Record<string, Component>;
|
|
39
|
+
/**
|
|
40
|
+
* Alias to install
|
|
41
|
+
*/
|
|
42
|
+
aliases?: Record<string, Component>;
|
|
43
|
+
/**
|
|
44
|
+
* Directives to install
|
|
45
|
+
*/
|
|
46
|
+
directives?: Record<string, Directive>;
|
|
47
|
+
/**
|
|
48
|
+
* Default props for components
|
|
49
|
+
*/
|
|
50
|
+
defaults?: DefaultOptions;
|
|
51
|
+
/**
|
|
52
|
+
* Experimental features
|
|
53
|
+
*/
|
|
54
|
+
experimentalFeatures?: VolverExperimentalFeatures;
|
|
55
|
+
};
|
|
56
|
+
export interface VolverInterface {
|
|
57
|
+
/**
|
|
58
|
+
* @param {string} src Icon source path (url)
|
|
59
|
+
* @param {RequestInit} options
|
|
60
|
+
* @returns {Promise<string | undefined>} String SVG if exist
|
|
61
|
+
*/
|
|
62
|
+
fetchIcon: (src: string, options?: RequestInit) => Promise<string | undefined>;
|
|
63
|
+
/**
|
|
64
|
+
* Add iconify collection to library
|
|
65
|
+
* @see https://docs.iconify.design/icon-components/vue/add-collection.html
|
|
66
|
+
* @param {IconifyJSON} collection
|
|
67
|
+
* @param {string} providerName Optional provider name
|
|
68
|
+
*/
|
|
69
|
+
addCollection: (collection: IconifyJSON, providerName?: string) => boolean;
|
|
70
|
+
/**
|
|
71
|
+
* Add icon to collection
|
|
72
|
+
* @see https://docs.iconify.design/icon-components/vue/add-icon.html
|
|
73
|
+
* @param {string} name
|
|
74
|
+
* @param {IconifyIcon} data
|
|
75
|
+
* @returns {boolean} true on success, false if something is wrong with data
|
|
76
|
+
*/
|
|
77
|
+
addIcon: (name: string, data: IconifyIcon) => boolean;
|
|
78
|
+
/**
|
|
79
|
+
* Add custom config for icons provider
|
|
80
|
+
* @param {string} provider
|
|
81
|
+
* @param {PartialIconifyAPIConfig} customConfig
|
|
82
|
+
* @returns {boolean} true on success, false if something is wrong with data
|
|
83
|
+
*/
|
|
84
|
+
addIconsAPIProvider: (provider: string, customConfig: PartialIconifyAPIConfig) => boolean;
|
|
85
|
+
/**
|
|
86
|
+
* Current provider
|
|
87
|
+
*/
|
|
88
|
+
iconsProvider: string;
|
|
89
|
+
/**
|
|
90
|
+
* Array of installed iconify collections
|
|
91
|
+
* @see https://docs.iconify.design/types/iconify-json.html
|
|
92
|
+
*/
|
|
93
|
+
iconsCollections: IconifyJSON[];
|
|
94
|
+
/**
|
|
95
|
+
* Set true inside nuxt
|
|
96
|
+
*/
|
|
97
|
+
nuxt: boolean;
|
|
98
|
+
/**
|
|
99
|
+
* Components defaults options
|
|
100
|
+
*/
|
|
101
|
+
defaults: Ref<DefaultOptions>;
|
|
102
|
+
}
|
|
103
|
+
export declare class Volver implements VolverInterface {
|
|
104
|
+
private readonly _fetchOptions;
|
|
105
|
+
private readonly _iconsCollections;
|
|
106
|
+
private readonly _iconsProvider;
|
|
107
|
+
private readonly _nuxt;
|
|
108
|
+
private readonly _experimentalFeatures;
|
|
109
|
+
defaults: Ref<DefaultOptions>;
|
|
110
|
+
constructor({ fetchWithCredentials, fetchOptions, iconsProvider, nuxt, iconsCollections, defaults, experimentalFeatures, }?: VolverOptions);
|
|
111
|
+
get nuxt(): boolean;
|
|
112
|
+
get iconsProvider(): string;
|
|
113
|
+
get iconsCollections(): IconifyJSON[];
|
|
114
|
+
get experimentalFeatures(): VolverExperimentalFeatures;
|
|
115
|
+
addCollection(collection: IconifyJSON, providerName?: string): boolean;
|
|
116
|
+
addIcon(name: string, data: IconifyIcon): boolean;
|
|
117
|
+
addIconsAPIProvider(provider: string, customConfig: PartialIconifyAPIConfig): boolean;
|
|
118
|
+
fetchIcon(src: string, options?: RequestInit): Promise<string | undefined>;
|
|
119
|
+
}
|
|
120
|
+
declare const VolverPlugin: Plugin;
|
|
121
|
+
export default VolverPlugin;
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
declare const _default: typeof __VLS_export;
|
|
2
|
+
export default _default;
|
|
3
|
+
declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<globalThis.ExtractPropTypes<{
|
|
4
|
+
name: StringConstructor;
|
|
5
|
+
title: StringConstructor;
|
|
6
|
+
content: StringConstructor;
|
|
7
|
+
modelValue: {
|
|
8
|
+
type: BooleanConstructor;
|
|
9
|
+
default: undefined;
|
|
10
|
+
};
|
|
11
|
+
disabled: BooleanConstructor;
|
|
12
|
+
not: BooleanConstructor;
|
|
13
|
+
modifiers: {
|
|
14
|
+
type: PropType<string | string[]>;
|
|
15
|
+
default: undefined;
|
|
16
|
+
};
|
|
17
|
+
}>, {
|
|
18
|
+
/** Whether the accordion is expanded */
|
|
19
|
+
isExpanded: globalThis.Ref<boolean, boolean>;
|
|
20
|
+
/** Expand the accordion */
|
|
21
|
+
expand: () => void;
|
|
22
|
+
/** Collapse the accordion */
|
|
23
|
+
collapse: () => void;
|
|
24
|
+
/** Expand accordions in the same group */
|
|
25
|
+
groupExpand: (name?: string | string[]) => void;
|
|
26
|
+
/** Collapse accordions in the same group */
|
|
27
|
+
groupCollapse: (name?: string | string[]) => void;
|
|
28
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
29
|
+
name: StringConstructor;
|
|
30
|
+
title: StringConstructor;
|
|
31
|
+
content: StringConstructor;
|
|
32
|
+
modelValue: {
|
|
33
|
+
type: BooleanConstructor;
|
|
34
|
+
default: undefined;
|
|
35
|
+
};
|
|
36
|
+
disabled: BooleanConstructor;
|
|
37
|
+
not: BooleanConstructor;
|
|
38
|
+
modifiers: {
|
|
39
|
+
type: PropType<string | string[]>;
|
|
40
|
+
default: undefined;
|
|
41
|
+
};
|
|
42
|
+
}>> & Readonly<{}>, {
|
|
43
|
+
modelValue: boolean;
|
|
44
|
+
modifiers: string | string[];
|
|
45
|
+
disabled: boolean;
|
|
46
|
+
not: boolean;
|
|
47
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, {
|
|
48
|
+
summary?: (props: {
|
|
49
|
+
isExpanded: boolean;
|
|
50
|
+
expand: () => void;
|
|
51
|
+
collapse: () => void;
|
|
52
|
+
groupExpand: (name?: string | string[]) => void;
|
|
53
|
+
groupCollapse: (name?: string | string[]) => void;
|
|
54
|
+
}) => any;
|
|
55
|
+
} & {
|
|
56
|
+
default?: (props: {
|
|
57
|
+
isExpanded: boolean;
|
|
58
|
+
expand: () => void;
|
|
59
|
+
collapse: () => void;
|
|
60
|
+
groupExpand: (name?: string | string[]) => void;
|
|
61
|
+
groupCollapse: (name?: string | string[]) => void;
|
|
62
|
+
}) => any;
|
|
63
|
+
}>;
|
|
64
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
65
|
+
new (): {
|
|
66
|
+
$slots: S;
|
|
67
|
+
};
|
|
68
|
+
};
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import type { ExtractPropTypes } from 'vue';
|
|
2
|
+
import type { AccordionGroupState } from '../../types/group';
|
|
3
|
+
export declare const VvAccordionProps: {
|
|
4
|
+
/**
|
|
5
|
+
* Accordion name
|
|
6
|
+
*/
|
|
7
|
+
name: StringConstructor;
|
|
8
|
+
/**
|
|
9
|
+
* Header title
|
|
10
|
+
*/
|
|
11
|
+
title: StringConstructor;
|
|
12
|
+
/**
|
|
13
|
+
* Content text
|
|
14
|
+
*/
|
|
15
|
+
content: StringConstructor;
|
|
16
|
+
/**
|
|
17
|
+
* (Optional) Defines if item is open. Event "update:modelValue" is emitted on accordion header click
|
|
18
|
+
*/
|
|
19
|
+
modelValue: {
|
|
20
|
+
type: BooleanConstructor;
|
|
21
|
+
default: undefined;
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* If true, the accordion will be disabled
|
|
25
|
+
*/
|
|
26
|
+
disabled: BooleanConstructor;
|
|
27
|
+
/**
|
|
28
|
+
* If true, the accordion will be opened by default
|
|
29
|
+
*/
|
|
30
|
+
not: BooleanConstructor;
|
|
31
|
+
modifiers: {
|
|
32
|
+
type: PropType<string | string[]>;
|
|
33
|
+
default: undefined;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
export declare const VvAccordionEvents: string[];
|
|
37
|
+
export type VvAccordionPropsTypes = ExtractPropTypes<typeof VvAccordionProps>;
|
|
38
|
+
/**
|
|
39
|
+
* Merges local and group props
|
|
40
|
+
*/
|
|
41
|
+
export declare function useGroupProps(props: VvAccordionPropsTypes): {
|
|
42
|
+
isInGroup: globalThis.ComputedRef<boolean>;
|
|
43
|
+
group: AccordionGroupState | undefined;
|
|
44
|
+
modifiers: globalThis.ComputedRef<string[]>;
|
|
45
|
+
disabled: globalThis.ComputedRef<boolean>;
|
|
46
|
+
bus: import("mitt").Emitter<import("../..").AccordionGroupBusEvents> | undefined;
|
|
47
|
+
};
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
declare const _default: typeof __VLS_export;
|
|
2
|
+
export default _default;
|
|
3
|
+
declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<globalThis.ExtractPropTypes<{
|
|
4
|
+
modelValue: {
|
|
5
|
+
type: PropType<string | string[] | undefined>;
|
|
6
|
+
default: undefined;
|
|
7
|
+
};
|
|
8
|
+
items: {
|
|
9
|
+
type: PropType<import(".").VvAccordionGroupItem[]>;
|
|
10
|
+
default: () => never[];
|
|
11
|
+
};
|
|
12
|
+
collapse: BooleanConstructor;
|
|
13
|
+
itemModifiers: {
|
|
14
|
+
type: PropType<string | string[]>;
|
|
15
|
+
default: string;
|
|
16
|
+
};
|
|
17
|
+
disabled: BooleanConstructor;
|
|
18
|
+
not: BooleanConstructor;
|
|
19
|
+
storageType: {
|
|
20
|
+
type: PropType<`${import("../../constants").StorageType}`>;
|
|
21
|
+
default: import("../../constants").StorageType;
|
|
22
|
+
validator: (value: import("../../constants").StorageType) => boolean;
|
|
23
|
+
};
|
|
24
|
+
storageKey: StringConstructor;
|
|
25
|
+
modifiers: {
|
|
26
|
+
type: PropType<string | string[]>;
|
|
27
|
+
default: undefined;
|
|
28
|
+
};
|
|
29
|
+
}>, {
|
|
30
|
+
/** Expanded accordions names */
|
|
31
|
+
expandedAccordions: globalThis.WritableComputedRef<Set<string>, Set<string>>;
|
|
32
|
+
/** Expand accordion by name, expand all if no name is provided */
|
|
33
|
+
expand: (name?: string | string[]) => void;
|
|
34
|
+
/** Collapse accordion by name, collapse all if no name is provided */
|
|
35
|
+
collapse: (name?: string | string[]) => void;
|
|
36
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
37
|
+
modelValue: {
|
|
38
|
+
type: PropType<string | string[] | undefined>;
|
|
39
|
+
default: undefined;
|
|
40
|
+
};
|
|
41
|
+
items: {
|
|
42
|
+
type: PropType<import(".").VvAccordionGroupItem[]>;
|
|
43
|
+
default: () => never[];
|
|
44
|
+
};
|
|
45
|
+
collapse: BooleanConstructor;
|
|
46
|
+
itemModifiers: {
|
|
47
|
+
type: PropType<string | string[]>;
|
|
48
|
+
default: string;
|
|
49
|
+
};
|
|
50
|
+
disabled: BooleanConstructor;
|
|
51
|
+
not: BooleanConstructor;
|
|
52
|
+
storageType: {
|
|
53
|
+
type: PropType<`${import("../../constants").StorageType}`>;
|
|
54
|
+
default: import("../../constants").StorageType;
|
|
55
|
+
validator: (value: import("../../constants").StorageType) => boolean;
|
|
56
|
+
};
|
|
57
|
+
storageKey: StringConstructor;
|
|
58
|
+
modifiers: {
|
|
59
|
+
type: PropType<string | string[]>;
|
|
60
|
+
default: undefined;
|
|
61
|
+
};
|
|
62
|
+
}>> & Readonly<{}>, {
|
|
63
|
+
modelValue: string | string[] | undefined;
|
|
64
|
+
collapse: boolean;
|
|
65
|
+
modifiers: string | string[];
|
|
66
|
+
disabled: boolean;
|
|
67
|
+
not: boolean;
|
|
68
|
+
items: import(".").VvAccordionGroupItem[];
|
|
69
|
+
itemModifiers: string | string[];
|
|
70
|
+
storageType: "local" | "session";
|
|
71
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, {
|
|
72
|
+
[x: `summary::${string}`]: ((props: {
|
|
73
|
+
isExpanded: boolean;
|
|
74
|
+
expand: () => void;
|
|
75
|
+
collapse: () => void;
|
|
76
|
+
groupExpand: (name?: string | string[]) => void;
|
|
77
|
+
groupCollapse: (name?: string | string[]) => void;
|
|
78
|
+
}) => any) | undefined;
|
|
79
|
+
} & {
|
|
80
|
+
[x: `content::${string}`]: ((props: {
|
|
81
|
+
isExpanded: boolean;
|
|
82
|
+
expand: () => void;
|
|
83
|
+
collapse: () => void;
|
|
84
|
+
groupExpand: (name?: string | string[]) => void;
|
|
85
|
+
groupCollapse: (name?: string | string[]) => void;
|
|
86
|
+
}) => any) | undefined;
|
|
87
|
+
} & {
|
|
88
|
+
default?: (props: {
|
|
89
|
+
expandedAccordions: Set<string>;
|
|
90
|
+
expand: (name?: string | string[]) => void;
|
|
91
|
+
collapse: (name?: string | string[]) => void;
|
|
92
|
+
}) => any;
|
|
93
|
+
}>;
|
|
94
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
95
|
+
new (): {
|
|
96
|
+
$slots: S;
|
|
97
|
+
};
|
|
98
|
+
};
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
export interface VvAccordionGroupItem {
|
|
2
|
+
title: string;
|
|
3
|
+
content: string;
|
|
4
|
+
name?: string;
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
modifiers?: string | string[];
|
|
7
|
+
}
|
|
8
|
+
export declare const VvAccordionGroupProps: {
|
|
9
|
+
/**
|
|
10
|
+
* VModel
|
|
11
|
+
*/
|
|
12
|
+
modelValue: {
|
|
13
|
+
type: PropType<string | string[] | undefined>;
|
|
14
|
+
default: undefined;
|
|
15
|
+
};
|
|
16
|
+
/**
|
|
17
|
+
* Accordion items
|
|
18
|
+
* @type VvAccordionGroupItem
|
|
19
|
+
*/
|
|
20
|
+
items: {
|
|
21
|
+
type: PropType<VvAccordionGroupItem[]>;
|
|
22
|
+
default: () => never[];
|
|
23
|
+
};
|
|
24
|
+
/**
|
|
25
|
+
* If true, accordion items stay open when another item is opened
|
|
26
|
+
*/
|
|
27
|
+
collapse: BooleanConstructor;
|
|
28
|
+
/**
|
|
29
|
+
* String or String[] of css classes (modifiers) that will be concatenated to prefix 'vv-accordion--'
|
|
30
|
+
*/
|
|
31
|
+
itemModifiers: {
|
|
32
|
+
type: PropType<string | string[]>;
|
|
33
|
+
default: string;
|
|
34
|
+
};
|
|
35
|
+
/**
|
|
36
|
+
* If true, the accordion items will be disabled
|
|
37
|
+
*/
|
|
38
|
+
disabled: BooleanConstructor;
|
|
39
|
+
/**
|
|
40
|
+
* If true, the accordion items will be opened by default
|
|
41
|
+
*/
|
|
42
|
+
not: BooleanConstructor;
|
|
43
|
+
storageType: {
|
|
44
|
+
type: PropType<`${import("../../constants").StorageType}`>;
|
|
45
|
+
default: import("../../constants").StorageType;
|
|
46
|
+
validator: (value: import("../../constants").StorageType) => boolean;
|
|
47
|
+
};
|
|
48
|
+
storageKey: StringConstructor;
|
|
49
|
+
modifiers: {
|
|
50
|
+
type: PropType<string | string[]>;
|
|
51
|
+
default: undefined;
|
|
52
|
+
};
|
|
53
|
+
};
|
|
54
|
+
export declare const VvAccordionGroupEvents: string[];
|
|
@@ -71,7 +71,7 @@ var X = {
|
|
|
71
71
|
} }, le = { current: {
|
|
72
72
|
type: Boolean,
|
|
73
73
|
default: !1
|
|
74
|
-
} },
|
|
74
|
+
} }, we = {
|
|
75
75
|
showClearAction: {
|
|
76
76
|
type: Boolean,
|
|
77
77
|
default: !1
|
|
@@ -144,7 +144,7 @@ var X = {
|
|
|
144
144
|
} }, fe = { floating: {
|
|
145
145
|
type: Boolean,
|
|
146
146
|
default: !1
|
|
147
|
-
} }, ve = { id: [String, Number] },
|
|
147
|
+
} }, ve = { id: [String, Number] }, Ce = {
|
|
148
148
|
placement: {
|
|
149
149
|
type: String,
|
|
150
150
|
default: B.bottom,
|
|
@@ -211,7 +211,7 @@ var X = {
|
|
|
211
211
|
} }, be = { autocomplete: {
|
|
212
212
|
type: String,
|
|
213
213
|
default: "off"
|
|
214
|
-
} },
|
|
214
|
+
} }, Ne = {
|
|
215
215
|
..._,
|
|
216
216
|
...ce,
|
|
217
217
|
...be,
|
|
@@ -241,7 +241,7 @@ var X = {
|
|
|
241
241
|
default: void 0
|
|
242
242
|
},
|
|
243
243
|
...C
|
|
244
|
-
},
|
|
244
|
+
}, _e = {
|
|
245
245
|
..._,
|
|
246
246
|
...N,
|
|
247
247
|
...v,
|
|
@@ -269,7 +269,7 @@ var X = {
|
|
|
269
269
|
],
|
|
270
270
|
default: void 0
|
|
271
271
|
}
|
|
272
|
-
},
|
|
272
|
+
}, Le = {
|
|
273
273
|
...v,
|
|
274
274
|
...c,
|
|
275
275
|
...ue,
|
|
@@ -318,7 +318,7 @@ var X = {
|
|
|
318
318
|
type: String,
|
|
319
319
|
default: o.button
|
|
320
320
|
}
|
|
321
|
-
},
|
|
321
|
+
}, je = {
|
|
322
322
|
storageType: {
|
|
323
323
|
type: String,
|
|
324
324
|
default: O.local,
|
|
@@ -329,28 +329,28 @@ var X = {
|
|
|
329
329
|
"click",
|
|
330
330
|
"mouseover",
|
|
331
331
|
"mouseleave"
|
|
332
|
-
]
|
|
333
|
-
function
|
|
332
|
+
];
|
|
333
|
+
function me() {
|
|
334
334
|
return f(te, void 0);
|
|
335
335
|
}
|
|
336
|
-
function
|
|
336
|
+
function Se() {
|
|
337
337
|
return f(re, {});
|
|
338
338
|
}
|
|
339
|
-
function
|
|
339
|
+
function Pe() {
|
|
340
340
|
return f(oe, {});
|
|
341
341
|
}
|
|
342
|
-
var
|
|
343
|
-
...
|
|
344
|
-
props:
|
|
342
|
+
var he = { name: "VvAction" }, Oe = /* @__PURE__ */ F({
|
|
343
|
+
...he,
|
|
344
|
+
props: ye,
|
|
345
345
|
emits: ge,
|
|
346
346
|
setup(e, { expose: L, emit: j }) {
|
|
347
|
-
const r = e, l = j, i = q(), I =
|
|
347
|
+
const r = e, l = j, i = q(), I = me(), u = W(null);
|
|
348
348
|
L({ $el: u });
|
|
349
|
-
const { reference: S, bus: d, aria:
|
|
349
|
+
const { reference: S, bus: d, aria: E, expanded: A } = Se();
|
|
350
350
|
Q(() => u.value, (t) => {
|
|
351
351
|
S && (S.value = t);
|
|
352
352
|
});
|
|
353
|
-
const P = s(() => r.pressed ||
|
|
353
|
+
const P = s(() => r.pressed || A?.value), { role: x } = Pe(), h = s(() => {
|
|
354
354
|
switch (!0) {
|
|
355
355
|
case r.disabled:
|
|
356
356
|
return o.button;
|
|
@@ -363,7 +363,7 @@ var Oe = { name: "VvAction" }, Be = /* @__PURE__ */ F({
|
|
|
363
363
|
}
|
|
364
364
|
}), D = s(() => {
|
|
365
365
|
const t = {
|
|
366
|
-
...
|
|
366
|
+
...E?.value,
|
|
367
367
|
ariaPressed: P.value ? !0 : void 0,
|
|
368
368
|
ariaLabel: r.ariaLabel,
|
|
369
369
|
role: x?.value
|
|
@@ -393,7 +393,7 @@ var Oe = { name: "VvAction" }, Be = /* @__PURE__ */ F({
|
|
|
393
393
|
return t;
|
|
394
394
|
}
|
|
395
395
|
});
|
|
396
|
-
function
|
|
396
|
+
function R(t) {
|
|
397
397
|
if (r.disabled) {
|
|
398
398
|
t.preventDefault();
|
|
399
399
|
return;
|
|
@@ -404,21 +404,21 @@ var Oe = { name: "VvAction" }, Be = /* @__PURE__ */ F({
|
|
|
404
404
|
}
|
|
405
405
|
d?.emit("click", t);
|
|
406
406
|
}
|
|
407
|
-
function
|
|
407
|
+
function T(t) {
|
|
408
408
|
if (i?.vnode.props?.onMouseover) {
|
|
409
409
|
l("mouseover", t);
|
|
410
410
|
return;
|
|
411
411
|
}
|
|
412
412
|
d?.emit("mouseover", t);
|
|
413
413
|
}
|
|
414
|
-
function
|
|
414
|
+
function V(t) {
|
|
415
415
|
if (i?.vnode.props?.onMouseleave) {
|
|
416
416
|
l("mouseleave", t);
|
|
417
417
|
return;
|
|
418
418
|
}
|
|
419
419
|
d?.emit("mouseleave", t);
|
|
420
420
|
}
|
|
421
|
-
return (t,
|
|
421
|
+
return (t, Be) => (J(), K(z(p(h)), G(p(D), {
|
|
422
422
|
ref_key: "rootEl",
|
|
423
423
|
ref: u,
|
|
424
424
|
class: {
|
|
@@ -427,15 +427,15 @@ var Oe = { name: "VvAction" }, Be = /* @__PURE__ */ F({
|
|
|
427
427
|
disabled: t.disabled,
|
|
428
428
|
current: t.current
|
|
429
429
|
},
|
|
430
|
-
onClickPassive:
|
|
431
|
-
onMouseoverPassive:
|
|
432
|
-
onMouseleavePassive:
|
|
430
|
+
onClickPassive: R,
|
|
431
|
+
onMouseoverPassive: T,
|
|
432
|
+
onMouseleavePassive: V
|
|
433
433
|
}), {
|
|
434
434
|
default: U(() => [Y(t.$slots, "default", {}, () => [M(H(t.label), 1)])]),
|
|
435
435
|
_: 3
|
|
436
436
|
}, 16, ["class"]));
|
|
437
437
|
}
|
|
438
|
-
}),
|
|
438
|
+
}), Ie = Oe;
|
|
439
439
|
export {
|
|
440
|
-
|
|
440
|
+
Ie as default
|
|
441
441
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(t,n){typeof exports=="object"&&typeof module<"u"?module.exports=n(require("vue")):typeof define=="function"&&define.amd?define(["vue"],n):(t=typeof globalThis<"u"?globalThis:t||self,t.VvAction=n(t.Vue))})(this,function(t){var n={showPassword:"eye-on",hidePassword:"eye-off",showDatePicker:"calendar",showTimePicker:"time",showColorPicker:"color",clear:"close",add:"add",remove:"trash",edit:"edit",download:"download"},m=(function(e){return e.local="local",e.session="session",e})({}),j=(function(e){return e.absolute="absolute",e.fixed="fixed",e})({}),S=(function(e){return e.left="left",e.right="right",e.top="top",e.bottom="bottom",e})({}),_=(function(e){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})({}),P=(function(e){return e.before="before",e.after="after",e})({}),h=(function(e){return e.button="button",e.submit="submit",e.reset="reset",e})({}),a=(function(e){return e.nuxtLink="nuxt-link",e.routerLink="router-link",e.a="a",e.button="button",e})({}),L=Symbol.for("volver"),
|
|
1
|
+
(function(t,n){typeof exports=="object"&&typeof module<"u"?module.exports=n(require("vue")):typeof define=="function"&&define.amd?define(["vue"],n):(t=typeof globalThis<"u"?globalThis:t||self,t.VvAction=n(t.Vue))})(this,function(t){var n={showPassword:"eye-on",hidePassword:"eye-off",showDatePicker:"calendar",showTimePicker:"time",showColorPicker:"color",clear:"close",add:"add",remove:"trash",edit:"edit",download:"download"},m=(function(e){return e.local="local",e.session="session",e})({}),j=(function(e){return e.absolute="absolute",e.fixed="fixed",e})({}),S=(function(e){return e.left="left",e.right="right",e.top="top",e.bottom="bottom",e})({}),_=(function(e){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})({}),P=(function(e){return e.before="before",e.after="after",e})({}),h=(function(e){return e.button="button",e.submit="submit",e.reset="reset",e})({}),a=(function(e){return e.nuxtLink="nuxt-link",e.routerLink="router-link",e.a="a",e.button="button",e})({}),L=Symbol.for("volver"),I=Symbol.for("dropdownTrigger"),A=Symbol.for("dropdownAction"),E={to:{type:[String,Object]},href:String,target:String,rel:{type:String,default:"noopener noreferrer"}},d={valid:{type:Boolean,default:!1},validLabel:{type:[String,Array],default:void 0}},u={invalid:{type:Boolean,default:!1},invalidLabel:{type:[String,Array],default:void 0}},s={loading:{type:Boolean,default:!1},loadingLabel:{type:String,default:"Loading..."}},l={disabled:{type:Boolean,default:!1}},O={required:{type:Boolean,default:!1}},x={active:{type:Boolean,default:!1}},D={current:{type:Boolean,default:!1}},ue={showClearAction:{type:Boolean,default:!1},iconClear:{type:[String,Object],default:n.clear},labelClear:{type:String,default:"Clear"}},T={pressed:{type:Boolean,default:!1}},i={label:{type:[String,Number],default:void 0}},f={readonly:{type:Boolean,default:!1}},p={modifiers:{type:[String,Array],default:void 0}},c={hintLabel:{type:String,default:""}},V={options:{type:Array,default:()=>[]},labelKey:{type:[String,Function],default:"label"},valueKey:{type:[String,Function],default:"value"},disabledKey:{type:[String,Function],default:"disabled"}},R={count:{type:[Boolean,String],default:!1,validator:e=>[!0,!1,"limit","countdown"].includes(e)}},K={debounce:{type:[Number,String],default:void 0}},M={icon:{type:[String,Object],default:void 0},iconPosition:{type:String,default:P.before,validation:e=>Object.values(P).includes(e)}},B={tabindex:{type:[String,Number],default:0}},q={floating:{type:Boolean,default:!1}},F={id:[String,Number]},se={placement:{type:String,default:S.bottom,validator:e=>Object.values(S).includes(e)||Object.values(_).includes(e)},strategy:{type:String,default:void 0,validator:e=>Object.values(j).includes(e)},transitionName:{type:String,default:void 0},offset:{type:[Number,String,Object],default:0},shift:{type:[Boolean,Object],default:!1},flip:{type:[Boolean,Object],default:!0},size:{type:[Boolean,Object],default:()=>({padding:10})},autoPlacement:{type:[Boolean,Object],default:!1},arrow:{type:Boolean,default:!1},keepOpen:{type:Boolean,default:!1},autofocusFirst:{type:Boolean,default:!0},triggerWidth:{type:Boolean,default:!1}},k={...F,name:{type:String,required:!0}},G={autofocus:{type:Boolean,default:!1}},J={autocomplete:{type:String,default:"off"}},fe={...k,...G,...J,...B,...l,...f,...d,...u,...c,...s,...p,...R,...K,...M,...q,...i,minlength:{type:[String,Number],default:void 0},maxlength:{type:[String,Number],default:void 0},placeholder:{type:String,default:void 0},...O},pe={...k,...B,...d,...u,...c,...l,...f,...p,...i,...s,value:{type:[String,Number,Boolean],default:void 0},modelValue:{type:[Object,Number,Boolean,String],default:void 0}},ce={...d,...u,...V,...c,...l,...f,...p,...i,...s,...O,modelValue:{type:[String,Array,Boolean,Number,Symbol],default:void 0},name:{type:String,required:!0},vertical:{type:Boolean,default:!1}},W={...l,...i,...T,...x,...D,...E,type:{type:String,default:h.button,validator:e=>Object.values(h).includes(e)},ariaLabel:{type:String,default:void 0},defaultTag:{type:String,default:a.button}},ve={storageType:{type:String,default:m.local,validator:e=>Object.values(m).includes(e)},storageKey:String},Y=["click","mouseover","mouseleave"];function $(){return(0,t.inject)(L,void 0)}function z(){return(0,t.inject)(I,{})}function H(){return(0,t.inject)(A,{})}var Q={name:"VvAction"},U=(0,t.defineComponent)({...Q,props:W,emits:Y,setup(e,{expose:Z,emit:ee}){const o=e,v=ee,b=(0,t.getCurrentInstance)(),te=$(),y=(0,t.ref)(null);Z({$el:y});const{reference:w,bus:g,aria:re,expanded:oe}=z();(0,t.watch)(()=>y.value,r=>{w&&(w.value=r)});const C=(0,t.computed)(()=>o.pressed||oe?.value),{role:ae}=H(),N=(0,t.computed)(()=>{switch(!0){case o.disabled:return a.button;case o.to!==void 0:return te?.nuxt?(0,t.resolveComponent)(a.nuxtLink):a.routerLink;case o.href!==void 0:return a.a;default:return o.defaultTag}}),ne=(0,t.computed)(()=>{const r={...re?.value,ariaPressed:C.value?!0:void 0,ariaLabel:o.ariaLabel,role:ae?.value};switch(N.value){case a.a:return{...r,href:o.href,target:o.target,rel:o.rel};case a.routerLink:case a.nuxtLink:return{...r,to:o.to,target:o.target};case a.button:return{...r,type:o.type,disabled:o.disabled};default:return r}});function le(r){if(o.disabled){r.preventDefault();return}if(b?.vnode.props?.onClick){v("click",r);return}g?.emit("click",r)}function ie(r){if(b?.vnode.props?.onMouseover){v("mouseover",r);return}g?.emit("mouseover",r)}function de(r){if(b?.vnode.props?.onMouseleave){v("mouseleave",r);return}g?.emit("mouseleave",r)}return(r,be)=>((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)((0,t.unref)(N)),(0,t.mergeProps)((0,t.unref)(ne),{ref_key:"rootEl",ref:y,class:{active:r.active,pressed:(0,t.unref)(C),disabled:r.disabled,current:r.current},onClickPassive:le,onMouseoverPassive:ie,onMouseleavePassive:de}),{default:(0,t.withCtx)(()=>[(0,t.renderSlot)(r.$slots,"default",{},()=>[(0,t.createTextVNode)((0,t.toDisplayString)(r.label),1)])]),_:3},16,["class"]))}}),X=U;return X});
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
import { ActionTag } from '../../constants';
|
|
2
|
+
declare const _default: typeof __VLS_export;
|
|
3
|
+
export default _default;
|
|
4
|
+
declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<globalThis.ExtractPropTypes<{
|
|
5
|
+
type: {
|
|
6
|
+
type: PropType<`${import("../../constants").ButtonType}`>;
|
|
7
|
+
default: import("../../constants").ButtonType;
|
|
8
|
+
validator: (value: import("../../constants").ButtonType) => boolean;
|
|
9
|
+
};
|
|
10
|
+
ariaLabel: {
|
|
11
|
+
type: StringConstructor;
|
|
12
|
+
default: undefined;
|
|
13
|
+
};
|
|
14
|
+
defaultTag: {
|
|
15
|
+
type: StringConstructor;
|
|
16
|
+
default: ActionTag;
|
|
17
|
+
};
|
|
18
|
+
to: {
|
|
19
|
+
type: (ObjectConstructor | StringConstructor)[];
|
|
20
|
+
};
|
|
21
|
+
href: StringConstructor;
|
|
22
|
+
target: StringConstructor;
|
|
23
|
+
rel: {
|
|
24
|
+
type: StringConstructor;
|
|
25
|
+
default: string;
|
|
26
|
+
};
|
|
27
|
+
current: {
|
|
28
|
+
type: BooleanConstructor;
|
|
29
|
+
default: boolean;
|
|
30
|
+
};
|
|
31
|
+
active: {
|
|
32
|
+
type: BooleanConstructor;
|
|
33
|
+
default: boolean;
|
|
34
|
+
};
|
|
35
|
+
pressed: {
|
|
36
|
+
type: BooleanConstructor;
|
|
37
|
+
default: boolean;
|
|
38
|
+
};
|
|
39
|
+
label: {
|
|
40
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
41
|
+
default: undefined;
|
|
42
|
+
};
|
|
43
|
+
disabled: {
|
|
44
|
+
type: BooleanConstructor;
|
|
45
|
+
default: boolean;
|
|
46
|
+
};
|
|
47
|
+
}>, {
|
|
48
|
+
/** Reference to the root element */
|
|
49
|
+
$el: globalThis.Ref<HTMLElement | null, HTMLElement | null>;
|
|
50
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
51
|
+
type: {
|
|
52
|
+
type: PropType<`${import("../../constants").ButtonType}`>;
|
|
53
|
+
default: import("../../constants").ButtonType;
|
|
54
|
+
validator: (value: import("../../constants").ButtonType) => boolean;
|
|
55
|
+
};
|
|
56
|
+
ariaLabel: {
|
|
57
|
+
type: StringConstructor;
|
|
58
|
+
default: undefined;
|
|
59
|
+
};
|
|
60
|
+
defaultTag: {
|
|
61
|
+
type: StringConstructor;
|
|
62
|
+
default: ActionTag;
|
|
63
|
+
};
|
|
64
|
+
to: {
|
|
65
|
+
type: (ObjectConstructor | StringConstructor)[];
|
|
66
|
+
};
|
|
67
|
+
href: StringConstructor;
|
|
68
|
+
target: StringConstructor;
|
|
69
|
+
rel: {
|
|
70
|
+
type: StringConstructor;
|
|
71
|
+
default: string;
|
|
72
|
+
};
|
|
73
|
+
current: {
|
|
74
|
+
type: BooleanConstructor;
|
|
75
|
+
default: boolean;
|
|
76
|
+
};
|
|
77
|
+
active: {
|
|
78
|
+
type: BooleanConstructor;
|
|
79
|
+
default: boolean;
|
|
80
|
+
};
|
|
81
|
+
pressed: {
|
|
82
|
+
type: BooleanConstructor;
|
|
83
|
+
default: boolean;
|
|
84
|
+
};
|
|
85
|
+
label: {
|
|
86
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
87
|
+
default: undefined;
|
|
88
|
+
};
|
|
89
|
+
disabled: {
|
|
90
|
+
type: BooleanConstructor;
|
|
91
|
+
default: boolean;
|
|
92
|
+
};
|
|
93
|
+
}>> & Readonly<{}>, {
|
|
94
|
+
label: string | number;
|
|
95
|
+
disabled: boolean;
|
|
96
|
+
type: "button" | "submit" | "reset";
|
|
97
|
+
ariaLabel: string;
|
|
98
|
+
defaultTag: string;
|
|
99
|
+
rel: string;
|
|
100
|
+
current: boolean;
|
|
101
|
+
active: boolean;
|
|
102
|
+
pressed: boolean;
|
|
103
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, {
|
|
104
|
+
default?: (props: {}) => any;
|
|
105
|
+
}>;
|
|
106
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
107
|
+
new (): {
|
|
108
|
+
$slots: S;
|
|
109
|
+
};
|
|
110
|
+
};
|