@volverjs/ui-vue 0.0.13 → 0.0.14
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.vue.d.ts +110 -0
- package/dist/components/VvAction/index.d.ts +45 -0
- package/dist/components/VvAlert/VvAlert.vue.d.ts +124 -0
- package/dist/components/VvAlert/index.d.ts +104 -0
- 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.vue.d.ts +39 -0
- package/dist/components/VvBreadcrumb/index.d.ts +8 -0
- 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.vue.d.ts +187 -0
- package/dist/components/VvCheckbox/index.d.ts +94 -0
- package/dist/components/VvCheckboxGroup/VvCheckboxGroup.vue.d.ts +212 -0
- package/dist/components/VvCheckboxGroup/index.d.ts +79 -0
- 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.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/VvIcon/VvIcon.vue.d.ts +6 -0
- package/dist/components/VvIcon/index.d.ts +86 -0
- package/dist/components/VvInputFile/VvInputFile.vue.d.ts +361 -0
- package/dist/components/VvInputFile/index.d.ts +204 -0
- 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.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/VvProgress/VvProgress.vue.d.ts +38 -0
- package/dist/components/VvProgress/index.d.ts +33 -0
- package/dist/components/VvRadio/VvRadio.vue.d.ts +179 -0
- package/dist/components/VvRadio/index.d.ts +80 -0
- package/dist/components/VvRadioGroup/VvRadioGroup.vue.d.ts +212 -0
- package/dist/components/VvRadioGroup/index.d.ts +79 -0
- package/dist/components/VvSelect/VvSelect.vue.d.ts +183 -0
- package/dist/components/VvSelect/index.d.ts +298 -0
- package/dist/components/VvTab/VvTab.vue.d.ts +64 -0
- package/dist/components/VvTab/index.d.ts +19 -0
- 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/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/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/v-contextmenu.d.ts +3 -0
- 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/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/registry.d.ts +34 -0
- package/dist/props/index.d.ts +959 -0
- package/dist/resolvers/unplugin.d.ts +38 -0
- 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 +82 -0
- package/dist/workers/blurhash.d.ts +1 -0
- package/package.json +3 -2
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 _fetchOptions;
|
|
105
|
+
private _iconsCollections;
|
|
106
|
+
private _iconsProvider;
|
|
107
|
+
private _nuxt;
|
|
108
|
+
private _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[];
|
|
@@ -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
|
+
};
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
export declare const VvActionEvents: string[];
|
|
2
|
+
export declare const VvActionProps: {
|
|
3
|
+
type: {
|
|
4
|
+
type: PropType<`${import("../../constants").ButtonType}`>;
|
|
5
|
+
default: import("../../constants").ButtonType;
|
|
6
|
+
validator: (value: import("../../constants").ButtonType) => boolean;
|
|
7
|
+
};
|
|
8
|
+
ariaLabel: {
|
|
9
|
+
type: StringConstructor;
|
|
10
|
+
default: undefined;
|
|
11
|
+
};
|
|
12
|
+
defaultTag: {
|
|
13
|
+
type: StringConstructor;
|
|
14
|
+
default: import("../../constants").ActionTag;
|
|
15
|
+
};
|
|
16
|
+
to: {
|
|
17
|
+
type: (ObjectConstructor | StringConstructor)[];
|
|
18
|
+
};
|
|
19
|
+
href: StringConstructor;
|
|
20
|
+
target: StringConstructor;
|
|
21
|
+
rel: {
|
|
22
|
+
type: StringConstructor;
|
|
23
|
+
default: string;
|
|
24
|
+
};
|
|
25
|
+
current: {
|
|
26
|
+
type: BooleanConstructor;
|
|
27
|
+
default: boolean;
|
|
28
|
+
};
|
|
29
|
+
active: {
|
|
30
|
+
type: BooleanConstructor;
|
|
31
|
+
default: boolean;
|
|
32
|
+
};
|
|
33
|
+
pressed: {
|
|
34
|
+
type: BooleanConstructor;
|
|
35
|
+
default: boolean;
|
|
36
|
+
};
|
|
37
|
+
label: {
|
|
38
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
39
|
+
default: undefined;
|
|
40
|
+
};
|
|
41
|
+
disabled: {
|
|
42
|
+
type: BooleanConstructor;
|
|
43
|
+
default: boolean;
|
|
44
|
+
};
|
|
45
|
+
};
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
declare const _default: typeof __VLS_export;
|
|
2
|
+
export default _default;
|
|
3
|
+
declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<globalThis.ExtractPropTypes<{
|
|
4
|
+
modifiers: {
|
|
5
|
+
type: PropType<import("../..").AlertModifier | import("../..").AlertModifier[]>;
|
|
6
|
+
default: undefined;
|
|
7
|
+
};
|
|
8
|
+
dismissable: {
|
|
9
|
+
type: BooleanConstructor;
|
|
10
|
+
default: boolean;
|
|
11
|
+
};
|
|
12
|
+
autoClose: {
|
|
13
|
+
type: NumberConstructor;
|
|
14
|
+
default: number;
|
|
15
|
+
};
|
|
16
|
+
closeLabel: {
|
|
17
|
+
type: StringConstructor;
|
|
18
|
+
default: string;
|
|
19
|
+
};
|
|
20
|
+
title: {
|
|
21
|
+
type: StringConstructor;
|
|
22
|
+
default: undefined;
|
|
23
|
+
};
|
|
24
|
+
content: {
|
|
25
|
+
type: StringConstructor;
|
|
26
|
+
default: undefined;
|
|
27
|
+
};
|
|
28
|
+
footer: {
|
|
29
|
+
type: StringConstructor;
|
|
30
|
+
default: undefined;
|
|
31
|
+
};
|
|
32
|
+
role: {
|
|
33
|
+
type: PropType<`${import("../../constants").AlertRole}`>;
|
|
34
|
+
default: import("../../constants").AlertRole;
|
|
35
|
+
};
|
|
36
|
+
icon: {
|
|
37
|
+
type: PropType<string | import("../VvIcon").VvIconProps>;
|
|
38
|
+
default: undefined;
|
|
39
|
+
};
|
|
40
|
+
iconPosition: {
|
|
41
|
+
type: PropType<`${import("../../constants").Position}`>;
|
|
42
|
+
default: import("../../constants").Position;
|
|
43
|
+
validation: (value: import("../../constants").Position) => boolean;
|
|
44
|
+
};
|
|
45
|
+
id: (NumberConstructor | StringConstructor)[];
|
|
46
|
+
}>, {
|
|
47
|
+
/** Close the alert */
|
|
48
|
+
close: () => void;
|
|
49
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
50
|
+
modifiers: {
|
|
51
|
+
type: PropType<import("../..").AlertModifier | import("../..").AlertModifier[]>;
|
|
52
|
+
default: undefined;
|
|
53
|
+
};
|
|
54
|
+
dismissable: {
|
|
55
|
+
type: BooleanConstructor;
|
|
56
|
+
default: boolean;
|
|
57
|
+
};
|
|
58
|
+
autoClose: {
|
|
59
|
+
type: NumberConstructor;
|
|
60
|
+
default: number;
|
|
61
|
+
};
|
|
62
|
+
closeLabel: {
|
|
63
|
+
type: StringConstructor;
|
|
64
|
+
default: string;
|
|
65
|
+
};
|
|
66
|
+
title: {
|
|
67
|
+
type: StringConstructor;
|
|
68
|
+
default: undefined;
|
|
69
|
+
};
|
|
70
|
+
content: {
|
|
71
|
+
type: StringConstructor;
|
|
72
|
+
default: undefined;
|
|
73
|
+
};
|
|
74
|
+
footer: {
|
|
75
|
+
type: StringConstructor;
|
|
76
|
+
default: undefined;
|
|
77
|
+
};
|
|
78
|
+
role: {
|
|
79
|
+
type: PropType<`${import("../../constants").AlertRole}`>;
|
|
80
|
+
default: import("../../constants").AlertRole;
|
|
81
|
+
};
|
|
82
|
+
icon: {
|
|
83
|
+
type: PropType<string | import("../VvIcon").VvIconProps>;
|
|
84
|
+
default: undefined;
|
|
85
|
+
};
|
|
86
|
+
iconPosition: {
|
|
87
|
+
type: PropType<`${import("../../constants").Position}`>;
|
|
88
|
+
default: import("../../constants").Position;
|
|
89
|
+
validation: (value: import("../../constants").Position) => boolean;
|
|
90
|
+
};
|
|
91
|
+
id: (NumberConstructor | StringConstructor)[];
|
|
92
|
+
}>> & Readonly<{}>, {
|
|
93
|
+
title: string;
|
|
94
|
+
icon: string | import("../VvIcon").VvIconProps;
|
|
95
|
+
content: string;
|
|
96
|
+
footer: string;
|
|
97
|
+
modifiers: string | string[];
|
|
98
|
+
dismissable: boolean;
|
|
99
|
+
autoClose: number;
|
|
100
|
+
closeLabel: string;
|
|
101
|
+
role: "alert" | "alertdialog";
|
|
102
|
+
iconPosition: "before" | "after";
|
|
103
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, {
|
|
104
|
+
header?: (props: {}) => any;
|
|
105
|
+
} & {
|
|
106
|
+
'title::before'?: (props: {}) => any;
|
|
107
|
+
} & {
|
|
108
|
+
title?: (props: {}) => any;
|
|
109
|
+
} & {
|
|
110
|
+
'title::after'?: (props: {}) => any;
|
|
111
|
+
} & {
|
|
112
|
+
close?: (props: {
|
|
113
|
+
close: () => void;
|
|
114
|
+
}) => any;
|
|
115
|
+
} & {
|
|
116
|
+
default?: (props: {}) => any;
|
|
117
|
+
} & {
|
|
118
|
+
footer?: (props: {}) => any;
|
|
119
|
+
}>;
|
|
120
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
121
|
+
new (): {
|
|
122
|
+
$slots: S;
|
|
123
|
+
};
|
|
124
|
+
};
|