@volverjs/ui-vue 0.0.1-beta.8 → 0.0.2
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/LICENSE +21 -0
- package/README.md +108 -56
- package/bin/icons.cjs +73 -0
- package/bin/icons.js +75 -0
- package/dist/{DesignSystem.d.ts → Volver.d.ts} +22 -18
- package/dist/components/VvAccordion/VvAccordion.es.js +165 -0
- package/dist/components/VvAccordion/VvAccordion.umd.js +1 -0
- package/dist/components/VvAccordion/VvAccordion.vue.d.ts +32 -97
- package/dist/components/VvAccordion/index.d.ts +46 -0
- package/dist/components/VvAccordionGroup/VvAccordionGroup.es.js +243 -0
- package/dist/components/VvAccordionGroup/VvAccordionGroup.umd.js +1 -0
- package/dist/components/VvAccordionGroup/VvAccordionGroup.vue.d.ts +77 -151
- package/dist/components/VvAccordionGroup/{VvAccordionGroup.d.ts → index.d.ts} +30 -13
- package/dist/components/VvBadge/VvBadge.es.js +62 -0
- package/dist/components/VvBadge/VvBadge.umd.js +1 -0
- package/dist/components/VvBadge/VvBadge.vue.d.ts +13 -54
- package/dist/components/VvBadge/{VvBadge.d.ts → index.d.ts} +1 -1
- package/dist/components/VvBreadcrumb/VvBreadcrumb.es.js +93 -0
- package/dist/components/VvBreadcrumb/VvBreadcrumb.umd.js +1 -0
- package/dist/components/VvBreadcrumb/VvBreadcrumb.vue.d.ts +33 -107
- package/dist/components/VvBreadcrumb/{VvBreadcrumb.d.ts → index.d.ts} +2 -3
- package/dist/components/VvButton/VvButton.es.js +439 -0
- package/dist/components/VvButton/VvButton.umd.js +1 -0
- package/dist/components/VvButton/VvButton.vue.d.ts +100 -199
- package/dist/components/VvButton/index.d.ts +132 -0
- package/dist/components/VvButtonGroup/VvButtonGroup.es.js +107 -0
- package/dist/components/VvButtonGroup/VvButtonGroup.umd.js +1 -0
- package/dist/components/VvButtonGroup/VvButtonGroup.vue.d.ts +92 -186
- package/dist/components/VvButtonGroup/index.d.ts +54 -0
- package/dist/components/VvCard/VvCard.es.js +77 -0
- package/dist/components/VvCard/VvCard.umd.js +1 -0
- package/dist/components/VvCard/VvCard.vue.d.ts +16 -61
- package/dist/components/VvCard/{VvCard.d.ts → index.d.ts} +1 -1
- package/dist/components/VvCheckbox/VvCheckbox.es.js +357 -0
- package/dist/components/VvCheckbox/VvCheckbox.umd.js +1 -0
- package/dist/components/VvCheckbox/VvCheckbox.vue.d.ts +74 -0
- package/dist/components/VvCheckbox/index.d.ts +54 -0
- package/dist/components/VvCheckboxGroup/VvCheckboxGroup.es.js +435 -0
- package/dist/components/VvCheckboxGroup/VvCheckboxGroup.umd.js +1 -0
- package/dist/components/VvCheckboxGroup/VvCheckboxGroup.vue.d.ts +82 -0
- package/dist/components/VvCheckboxGroup/index.d.ts +32 -0
- package/dist/components/VvCombobox/VvCombobox.es.js +775 -0
- package/dist/components/VvCombobox/VvCombobox.umd.js +1 -0
- package/dist/components/VvCombobox/VvCombobox.vue.d.ts +175 -0
- package/dist/components/VvCombobox/index.d.ts +108 -0
- package/dist/components/VvDialog/VvDialog.es.js +200 -0
- package/dist/components/VvDialog/VvDialog.umd.js +1 -0
- package/dist/components/VvDialog/VvDialog.vue.d.ts +28 -132
- package/dist/components/VvDialog/{VvDialog.d.ts → index.d.ts} +2 -6
- package/dist/components/VvDropdown/VvDropdown.es.js +227 -0
- package/dist/components/VvDropdown/VvDropdown.umd.js +1 -0
- package/dist/components/VvDropdown/VvDropdown.vue.d.ts +59 -146
- package/dist/components/VvDropdown/index.d.ts +49 -0
- package/dist/components/VvIcon/VvIcon.es.js +124 -0
- package/dist/components/VvIcon/VvIcon.umd.js +1 -0
- package/dist/components/VvIcon/VvIcon.vue.d.ts +36 -150
- package/dist/components/VvIcon/{VvIcon.d.ts → index.d.ts} +9 -0
- package/dist/components/VvInputText/VvInputClearAction.d.ts +36 -0
- package/dist/components/VvInputText/VvInputPasswordAction.d.ts +56 -0
- package/dist/components/VvInputText/VvInputStepAction.d.ts +37 -0
- package/dist/components/VvInputText/VvInputText.es.js +772 -0
- package/dist/components/VvInputText/VvInputText.umd.js +1 -0
- package/dist/components/VvInputText/VvInputText.vue.d.ts +211 -288
- package/dist/components/VvInputText/VvInputTextActions.d.ts +1 -1
- package/dist/components/VvInputText/index.d.ts +182 -0
- package/dist/components/VvProgress/VvProgress.es.js +71 -0
- package/dist/components/VvProgress/VvProgress.umd.js +1 -0
- package/dist/components/VvProgress/VvProgress.vue.d.ts +20 -107
- package/dist/components/VvProgress/index.d.ts +30 -0
- package/dist/components/VvRadio/VvRadio.es.js +320 -0
- package/dist/components/VvRadio/VvRadio.umd.js +1 -0
- package/dist/components/VvRadio/VvRadio.vue.d.ts +55 -125
- package/dist/components/VvRadio/index.d.ts +40 -0
- package/dist/components/VvRadioGroup/VvRadioGroup.es.js +398 -0
- package/dist/components/VvRadioGroup/VvRadioGroup.umd.js +1 -0
- package/dist/components/VvRadioGroup/VvRadioGroup.vue.d.ts +56 -238
- package/dist/components/VvRadioGroup/index.d.ts +32 -0
- package/dist/components/VvSelect/VvSelect.es.js +434 -0
- package/dist/components/VvSelect/VvSelect.umd.js +1 -0
- package/dist/components/VvSelect/VvSelect.vue.d.ts +125 -263
- package/dist/components/VvSelect/index.d.ts +89 -0
- package/dist/components/VvTextarea/VvTextarea.es.js +471 -0
- package/dist/components/VvTextarea/VvTextarea.umd.js +1 -0
- package/dist/components/VvTextarea/VvTextarea.vue.d.ts +140 -321
- package/dist/components/VvTextarea/index.d.ts +102 -0
- package/dist/components/common/HintSlot.d.ts +12 -6
- package/dist/components/index.d.ts +19 -12
- package/dist/components/index.es.js +2379 -0
- package/dist/components/index.umd.js +1 -0
- package/dist/composables/group/types/IAccordionGroupState.d.ts +3 -4
- package/dist/composables/group/types/IButtonGroupState.d.ts +5 -11
- package/dist/composables/group/types/IGroupState.d.ts +3 -6
- package/dist/composables/group/types/IInputGroup.d.ts +1 -4
- package/dist/composables/group/useInjectedGroupState.d.ts +4 -4
- package/dist/composables/group/useProvideGroupState.d.ts +2 -2
- package/dist/composables/useComponentFocus.d.ts +4 -0
- package/dist/composables/{icons/useComponentIcons.d.ts → useComponentIcons.d.ts} +3 -2
- package/dist/composables/useDebouncedInput.d.ts +2 -0
- package/dist/composables/useOptions.d.ts +6 -0
- package/dist/composables/useTextCount.d.ts +10 -0
- package/dist/constants.d.ts +4 -4
- package/dist/icons.d.ts +1881 -0
- package/dist/icons.es.js +12 -14
- package/dist/icons.umd.js +1 -1
- package/dist/index.d.ts +9 -4
- package/dist/index.es.js +2420 -0
- package/dist/index.umd.js +1 -0
- package/dist/props/index.d.ts +328 -30
- package/dist/resolvers/unplugin.d.ts +27 -0
- package/dist/resolvers/unplugin.es.js +42 -0
- package/dist/resolvers/unplugin.umd.js +1 -0
- package/dist/stories/Accordion/Accordion.settings.d.ts +63 -0
- package/dist/stories/Accordion/Accordion.test.d.ts +2 -0
- package/dist/stories/AccordionGroup/AccordionGroup.settings.d.ts +58 -0
- package/dist/stories/AccordionGroup/AccordionGroup.test.d.ts +2 -0
- package/dist/stories/Badge/Badge.settings.d.ts +32 -0
- package/dist/stories/Badge/Badge.test.d.ts +2 -0
- package/dist/stories/Breadcrumb/Breadcrumb.settings.d.ts +29 -0
- package/dist/stories/Breadcrumb/Breadcrumb.test.d.ts +2 -0
- package/dist/stories/Button/Button.settings.d.ts +198 -0
- package/dist/stories/Button/Button.test.d.ts +1 -10
- package/dist/stories/ButtonGroup/ButtonGroup.settings.d.ts +47 -0
- package/dist/stories/ButtonGroup/ButtonGroup.test.d.ts +2 -0
- package/dist/stories/Card/Card.settings.d.ts +70 -0
- package/dist/stories/Card/Card.test.d.ts +2 -0
- package/dist/stories/Checkbox/Checkbox.settings.d.ts +165 -0
- package/dist/stories/Checkbox/Checkbox.test.d.ts +2 -0
- package/dist/stories/CheckboxGroup/CheckboxGroup.settings.d.ts +164 -0
- package/dist/stories/CheckboxGroup/CheckboxGroup.test.d.ts +2 -0
- package/dist/stories/Combobox/Combobox.settings.d.ts +286 -0
- package/dist/stories/Combobox/Combobox.test.d.ts +2 -0
- package/dist/stories/Dialog/Dialog.settings.d.ts +55 -0
- package/dist/stories/Dialog/Dialog.test.d.ts +2 -0
- package/dist/stories/Dropdown/Dropdown.settings.d.ts +85 -0
- package/dist/stories/Dropdown/Dropdown.test.d.ts +2 -0
- package/dist/stories/Icon/Icon.settings.d.ts +74 -0
- package/dist/stories/InputText/InputText.settings.d.ts +445 -0
- package/dist/stories/InputText/InputText.test.d.ts +2 -0
- package/dist/stories/Progress/Progress.settings.d.ts +38 -0
- package/dist/stories/Progress/Progress.test.d.ts +2 -0
- package/dist/stories/Radio/Radio.settings.d.ts +139 -0
- package/dist/stories/Radio/Radio.test.d.ts +2 -0
- package/dist/stories/RadioGroup/RadioGroup.settings.d.ts +164 -0
- package/dist/stories/RadioGroup/RadioGroup.test.d.ts +2 -0
- package/dist/stories/Select/Select.settings.d.ts +284 -0
- package/dist/stories/Select/Select.test.d.ts +2 -0
- package/dist/stories/Textarea/Textarea.settings.d.ts +336 -0
- package/dist/stories/Textarea/Textarea.test.d.ts +2 -0
- package/dist/stories/argTypes.d.ts +842 -0
- package/dist/test/expect.d.ts +3 -0
- package/dist/test/options.d.ts +1 -0
- package/dist/test/sleep.d.ts +1 -0
- package/dist/utils/ObjectUtilities.d.ts +82 -95
- package/env.d.ts +1 -0
- package/package.json +199 -126
- package/src/{DesignSystem.ts → Volver.ts} +57 -29
- package/src/assets/icons/detailed.json +1 -1
- package/src/assets/icons/normal.json +1 -1
- package/src/assets/icons/simple.json +1 -1
- package/src/components/VvAccordion/VvAccordion.vue +94 -78
- package/src/components/VvAccordion/index.ts +72 -0
- package/src/components/VvAccordionGroup/VvAccordionGroup.vue +93 -53
- package/src/components/VvAccordionGroup/{VvAccordionGroup.ts → index.ts} +18 -14
- package/src/components/VvBadge/VvBadge.vue +17 -8
- package/src/components/VvBadge/index.ts +6 -0
- package/src/components/VvBreadcrumb/VvBreadcrumb.vue +26 -24
- package/src/components/VvBreadcrumb/{VvBreadcrumb.ts → index.ts} +1 -2
- package/src/components/VvButton/VvButton.vue +174 -153
- package/src/components/VvButton/index.ts +189 -0
- package/src/components/VvButtonGroup/VvButtonGroup.vue +76 -48
- package/src/components/VvButtonGroup/index.ts +16 -0
- package/src/components/VvCard/VvCard.vue +20 -22
- package/src/components/VvCard/{VvCard.ts → index.ts} +1 -1
- package/src/components/VvCheckbox/VvCheckbox.vue +172 -0
- package/src/components/VvCheckbox/index.ts +60 -0
- package/src/components/VvCheckboxGroup/VvCheckboxGroup.vue +85 -0
- package/src/components/VvCheckboxGroup/index.ts +5 -0
- package/src/components/VvCombobox/VvCombobox.vue +261 -0
- package/src/components/VvCombobox/index.ts +88 -0
- package/src/components/VvDialog/VvDialog.vue +69 -67
- package/src/components/VvDialog/index.ts +10 -0
- package/src/components/VvDropdown/VvDropdown.vue +115 -114
- package/src/components/VvDropdown/index.ts +35 -0
- package/src/components/VvIcon/README.md +64 -0
- package/src/components/VvIcon/VvIcon.vue +122 -107
- package/src/components/VvIcon/{VvIcon.ts → index.ts} +17 -8
- package/src/components/VvInputText/VvInputClearAction.ts +53 -0
- package/src/components/VvInputText/VvInputPasswordAction.ts +70 -0
- package/src/components/VvInputText/VvInputStepAction.ts +49 -0
- package/src/components/VvInputText/VvInputText.vue +307 -238
- package/src/components/VvInputText/VvInputTextActions.ts +63 -114
- package/src/components/VvInputText/index.ts +140 -0
- package/src/components/VvProgress/VvProgress.vue +29 -29
- package/src/components/VvProgress/index.ts +32 -0
- package/src/components/VvRadio/VvRadio.vue +90 -119
- package/src/components/VvRadio/index.ts +40 -0
- package/src/components/VvRadioGroup/VvRadioGroup.vue +76 -69
- package/src/components/VvRadioGroup/index.ts +5 -0
- package/src/components/VvSelect/VvSelect.vue +187 -186
- package/src/components/VvSelect/index.ts +71 -0
- package/src/components/VvTextarea/VvTextarea.vue +188 -174
- package/src/components/VvTextarea/index.ts +50 -0
- package/src/components/common/HintSlot.ts +167 -137
- package/src/components/index.ts +19 -12
- package/src/composables/group/types/IAccordionGroupState.ts +3 -4
- package/src/composables/group/types/IButtonGroupState.ts +5 -11
- package/src/composables/group/types/IGroupState.ts +4 -6
- package/src/composables/group/types/IInputGroup.ts +1 -4
- package/src/composables/group/useInjectedGroupState.ts +23 -35
- package/src/composables/group/useProvideGroupState.ts +5 -7
- package/src/composables/useComponentFocus.ts +17 -0
- package/src/composables/{icons/useComponentIcons.ts → useComponentIcons.ts} +29 -20
- package/src/composables/useDebouncedInput.ts +25 -0
- package/src/composables/useModifiers.ts +18 -20
- package/src/composables/useOptions.ts +31 -0
- package/src/composables/useTextCount.ts +57 -0
- package/src/constants.ts +5 -7
- package/src/directives/{.README → .gitkeep} +0 -0
- package/src/icons.ts +7 -0
- package/src/index.ts +12 -5
- package/src/props/index.ts +204 -36
- package/src/resolvers/unplugin.ts +112 -0
- package/src/shims.d.ts +13 -0
- package/src/stories/Accordion/Accordion.settings.ts +46 -0
- package/src/stories/Accordion/Accordion.stories.mdx +21 -21
- package/src/stories/Accordion/Accordion.test.ts +61 -0
- package/src/stories/Accordion/AccordionSlots.stories.mdx +46 -70
- package/src/stories/AccordionGroup/AccordionGroup.settings.ts +55 -0
- package/src/stories/AccordionGroup/AccordionGroup.stories.mdx +24 -27
- package/src/stories/AccordionGroup/AccordionGroup.test.ts +50 -0
- package/src/stories/AccordionGroup/AccordionGroupSlots.stories.mdx +56 -0
- package/src/stories/Badge/Badge.settings.ts +26 -0
- package/src/stories/Badge/Badge.stories.mdx +36 -24
- package/src/stories/Badge/Badge.test.ts +12 -0
- package/src/stories/Badge/BadgeSlots.stories.mdx +20 -0
- package/src/stories/Breadcrumb/Breadcrumb.settings.ts +41 -0
- package/src/stories/Breadcrumb/Breadcrumb.stories.mdx +32 -29
- package/src/stories/Breadcrumb/Breadcrumb.test.ts +50 -0
- package/src/stories/Breadcrumb/BreadcrumbSlots.stories.mdx +43 -0
- package/src/stories/Button/Button.settings.ts +145 -0
- package/src/stories/Button/Button.stories.mdx +20 -54
- package/src/stories/Button/Button.test.ts +35 -46
- package/src/stories/Button/ButtonIcon.stories.mdx +139 -29
- package/src/stories/Button/ButtonLink.stories.mdx +58 -111
- package/src/stories/Button/ButtonLoading.stories.mdx +89 -62
- package/src/stories/Button/ButtonModifiers.stories.mdx +198 -121
- package/src/stories/Button/ButtonSlots.stories.mdx +83 -95
- package/src/stories/Button/ButtonState.stories.mdx +75 -0
- package/src/stories/Button/ButtonToggle.stories.mdx +50 -0
- package/src/stories/ButtonGroup/ButtonGroup.settings.ts +33 -0
- package/src/stories/ButtonGroup/ButtonGroup.stories.mdx +16 -18
- package/src/stories/ButtonGroup/ButtonGroup.test.ts +35 -0
- package/src/stories/ButtonGroup/ButtonGroupModifiers.stories.mdx +52 -0
- package/src/stories/ButtonGroup/ButtonGroupSlots.stories.mdx +37 -0
- package/src/stories/ButtonGroup/ButtonGroupToggle.stories.mdx +52 -110
- package/src/stories/Card/Card.settings.ts +55 -0
- package/src/stories/Card/Card.stories.mdx +27 -11
- package/src/stories/Card/Card.test.ts +23 -0
- package/src/stories/Card/CardSlots.stories.mdx +80 -24
- package/src/stories/Checkbox/Checkbox.settings.ts +43 -0
- package/src/stories/Checkbox/Checkbox.stories.mdx +163 -0
- package/src/stories/Checkbox/Checkbox.test.ts +81 -0
- package/src/stories/Checkbox/CheckboxBinary.stories.mdx +68 -0
- package/src/stories/Checkbox/CheckboxSlots.stories.mdx +46 -0
- package/src/stories/CheckboxGroup/CheckboxGroup.settings.ts +15 -0
- package/src/stories/CheckboxGroup/CheckboxGroup.stories.mdx +134 -0
- package/src/stories/CheckboxGroup/CheckboxGroup.test.ts +83 -0
- package/src/stories/CheckboxGroup/CheckboxGroupOptions.stories.mdx +100 -0
- package/src/stories/CheckboxGroup/CheckboxGroupSlots.stories.mdx +67 -0
- package/src/stories/Combobox/Combobox.settings.ts +127 -0
- package/src/stories/Combobox/Combobox.stories.mdx +204 -0
- package/src/stories/Combobox/Combobox.test.ts +103 -0
- package/src/stories/Combobox/ComboboxMultiple.stories.mdx +74 -0
- package/src/stories/Combobox/ComboboxOptions.stories.mdx +100 -0
- package/src/stories/Combobox/ComboboxSlots.stories.mdx +48 -0
- package/src/stories/Dialog/Dialog.settings.ts +45 -0
- package/src/stories/Dialog/Dialog.stories.mdx +42 -16
- package/src/stories/Dialog/Dialog.test.ts +69 -0
- package/src/stories/Dialog/DialogSlots.stories.mdx +63 -0
- package/src/stories/Dropdown/Dropdown.settings.ts +51 -0
- package/src/stories/Dropdown/Dropdown.stories.mdx +102 -29
- package/src/stories/Dropdown/Dropdown.test.ts +43 -0
- package/src/stories/Dropdown/DropdownOptions.stories.mdx +87 -67
- package/src/stories/Icon/Icon.settings.ts +72 -0
- package/src/stories/Icon/Icon.stories.mdx +76 -59
- package/src/stories/Icon/IconsCollection.stories.mdx +68 -0
- package/src/stories/InputText/InputText.settings.ts +221 -0
- package/src/stories/InputText/InputText.stories.mdx +142 -69
- package/src/stories/InputText/InputText.test.ts +125 -0
- package/src/stories/InputText/InputTextIconPosition.stories.mdx +63 -16
- package/src/stories/InputText/InputTextLength.stories.mdx +110 -0
- package/src/stories/InputText/InputTextMinMax.stories.mdx +112 -0
- package/src/stories/InputText/InputTextSlots.stories.mdx +61 -22
- package/src/stories/InputText/InputTextType.stories.mdx +207 -29
- package/src/stories/Progress/Progress.settings.ts +33 -0
- package/src/stories/Progress/Progress.stories.mdx +12 -14
- package/src/stories/Progress/Progress.test.ts +9 -0
- package/src/stories/Radio/Radio.settings.ts +15 -0
- package/src/stories/Radio/Radio.stories.mdx +102 -42
- package/src/stories/Radio/Radio.test.ts +70 -0
- package/src/stories/Radio/RadioSlots.stories.mdx +39 -22
- package/src/stories/RadioGroup/RadioGroup.settings.ts +15 -0
- package/src/stories/RadioGroup/RadioGroup.stories.mdx +115 -54
- package/src/stories/RadioGroup/RadioGroup.test.ts +83 -0
- package/src/stories/RadioGroup/RadioGroupOptions.stories.mdx +83 -41
- package/src/stories/RadioGroup/RadioGroupSlots.stories.mdx +49 -144
- package/src/stories/Select/Select.settings.ts +86 -0
- package/src/stories/Select/Select.stories.mdx +173 -33
- package/src/stories/Select/Select.test.ts +82 -0
- package/src/stories/Select/SelectOptions.stories.mdx +91 -69
- package/src/stories/Select/SelectSlots.stories.mdx +48 -0
- package/src/stories/Textarea/Textarea.settings.ts +96 -0
- package/src/stories/Textarea/Textarea.stories.mdx +167 -47
- package/src/stories/Textarea/Textarea.test.ts +90 -0
- package/src/stories/Textarea/TextareaLength.stories.mdx +110 -0
- package/src/stories/Textarea/TextareaSlots.stories.mdx +61 -23
- package/src/stories/Textarea/TextareatIconPosition.stories.mdx +78 -0
- package/src/stories/argTypes.ts +457 -0
- package/src/test/expect.ts +27 -6
- package/src/test/options.ts +17 -0
- package/src/test/sleep.ts +2 -0
- package/src/test/types.d.ts +14 -0
- package/src/types/generic.d.ts +5 -0
- package/src/utils/ObjectUtilities.ts +253 -244
- package/dist/components/VvAccordion/VvAccordion.d.ts +0 -32
- package/dist/components/VvAccordion/useAccordionProps.d.ts +0 -16
- package/dist/components/VvAccordion/vv-accordion.es.js +0 -262
- package/dist/components/VvAccordion/vv-accordion.umd.js +0 -1
- package/dist/components/VvAccordionGroup/vv-accordion-group.es.js +0 -315
- package/dist/components/VvAccordionGroup/vv-accordion-group.umd.js +0 -1
- package/dist/components/VvBadge/vv-badge.es.js +0 -18
- package/dist/components/VvBadge/vv-badge.umd.js +0 -1
- package/dist/components/VvBreadcrumb/vv-breadcrumb.es.js +0 -206
- package/dist/components/VvBreadcrumb/vv-breadcrumb.umd.js +0 -1
- package/dist/components/VvButton/VvButton.d.ts +0 -115
- package/dist/components/VvButton/useButtonGroupProps.d.ts +0 -23
- package/dist/components/VvButton/vv-button.es.js +0 -422
- package/dist/components/VvButton/vv-button.umd.js +0 -1
- package/dist/components/VvButtonGroup/VvButtonGroup.d.ts +0 -57
- package/dist/components/VvButtonGroup/vv-button-group.es.js +0 -210
- package/dist/components/VvButtonGroup/vv-button-group.umd.js +0 -1
- package/dist/components/VvCard/vv-card.es.js +0 -188
- package/dist/components/VvCard/vv-card.umd.js +0 -1
- package/dist/components/VvCheck/VvCheck.d.ts +0 -47
- package/dist/components/VvCheck/VvCheck.vue.d.ts +0 -165
- package/dist/components/VvCheck/useCheckProps.d.ts +0 -16
- package/dist/components/VvCheck/vv-check.es.js +0 -321
- package/dist/components/VvCheck/vv-check.umd.js +0 -1
- package/dist/components/VvCheckGroup/VvCheckGroup.d.ts +0 -65
- package/dist/components/VvCheckGroup/VvCheckGroup.vue.d.ts +0 -272
- package/dist/components/VvCheckGroup/vv-check-group.es.js +0 -452
- package/dist/components/VvCheckGroup/vv-check-group.umd.js +0 -2
- package/dist/components/VvDialog/constants.d.ts +0 -5
- package/dist/components/VvDialog/vv-dialog.es.js +0 -315
- package/dist/components/VvDialog/vv-dialog.umd.js +0 -1
- package/dist/components/VvDropdown/VvDropdown.d.ts +0 -52
- package/dist/components/VvDropdown/vv-dropdown.es.js +0 -236
- package/dist/components/VvDropdown/vv-dropdown.umd.js +0 -1
- package/dist/components/VvIcon/vv-icon.es.js +0 -229
- package/dist/components/VvIcon/vv-icon.umd.js +0 -1
- package/dist/components/VvInputText/VvInputText.d.ts +0 -73
- package/dist/components/VvInputText/constants.d.ts +0 -55
- package/dist/components/VvInputText/vv-input-text.es.js +0 -725
- package/dist/components/VvInputText/vv-input-text.umd.js +0 -2
- package/dist/components/VvNativeSelect/VvNativeSelect.d.ts +0 -70
- package/dist/components/VvNativeSelect/VvNativeSelect.vue.d.ts +0 -228
- package/dist/components/VvNativeSelect/vv-native-select.es.js +0 -414
- package/dist/components/VvNativeSelect/vv-native-select.umd.js +0 -2
- package/dist/components/VvProgress/VvProgress.d.ts +0 -29
- package/dist/components/VvProgress/vv-progress.es.js +0 -185
- package/dist/components/VvProgress/vv-progress.umd.js +0 -1
- package/dist/components/VvRadio/VvRadio.d.ts +0 -22
- package/dist/components/VvRadio/useRadioProps.d.ts +0 -15
- package/dist/components/VvRadio/vv-radio.es.js +0 -309
- package/dist/components/VvRadio/vv-radio.umd.js +0 -1
- package/dist/components/VvRadioGroup/VvRadioGroup.d.ts +0 -54
- package/dist/components/VvRadioGroup/vv-radio-group.es.js +0 -441
- package/dist/components/VvRadioGroup/vv-radio-group.umd.js +0 -2
- package/dist/components/VvSelect/VvSelect.d.ts +0 -99
- package/dist/components/VvSelect/vv-select.es.js +0 -445
- package/dist/components/VvSelect/vv-select.umd.js +0 -2
- package/dist/components/VvTextarea/VvTextarea.d.ts +0 -88
- package/dist/components/VvTextarea/constants.d.ts +0 -19
- package/dist/components/VvTextarea/vv-textarea.es.js +0 -548
- package/dist/components/VvTextarea/vv-textarea.umd.js +0 -2
- package/dist/composables/debouncedInput/useDebouncedInput.d.ts +0 -2
- package/dist/composables/focus/useComponentFocus.d.ts +0 -7
- package/dist/composables/options/useOptions.d.ts +0 -5
- package/dist/composables/textLimit/useTextLimit.d.ts +0 -14
- package/dist/stories/Icon/IconList.vue.d.ts +0 -44
- package/dist/stories/utils.d.ts +0 -5
- package/dist/ui-vue.es.js +0 -3001
- package/dist/ui-vue.umd.js +0 -2
- package/src/assets/icons/index.js +0 -7
- package/src/components/VvAccordion/VvAccordion.ts +0 -34
- package/src/components/VvAccordion/useAccordionProps.ts +0 -45
- package/src/components/VvBadge/VvBadge.ts +0 -4
- package/src/components/VvButton/VvButton.ts +0 -117
- package/src/components/VvButton/useButtonGroupProps.ts +0 -51
- package/src/components/VvButtonGroup/VvButtonGroup.ts +0 -37
- package/src/components/VvCheck/VvCheck.ts +0 -48
- package/src/components/VvCheck/VvCheck.vue +0 -149
- package/src/components/VvCheck/useCheckProps.ts +0 -41
- package/src/components/VvCheckGroup/VvCheckGroup.ts +0 -34
- package/src/components/VvCheckGroup/VvCheckGroup.vue +0 -84
- package/src/components/VvDialog/VvDialog.ts +0 -17
- package/src/components/VvDialog/constants.ts +0 -5
- package/src/components/VvDropdown/VvDropdown.ts +0 -46
- package/src/components/VvInputText/VvInputText.ts +0 -66
- package/src/components/VvInputText/constants.ts +0 -34
- package/src/components/VvNativeSelect/VvNativeSelect.ts +0 -70
- package/src/components/VvNativeSelect/VvNativeSelect.vue +0 -106
- package/src/components/VvProgress/VvProgress.ts +0 -28
- package/src/components/VvRadio/VvRadio.ts +0 -25
- package/src/components/VvRadio/useRadioProps.ts +0 -40
- package/src/components/VvRadioGroup/VvRadioGroup.ts +0 -25
- package/src/components/VvSelect/VvSelect.ts +0 -91
- package/src/components/VvTextarea/VvTextarea.ts +0 -64
- package/src/components/VvTextarea/constants.ts +0 -14
- package/src/composables/debouncedInput/useDebouncedInput.ts +0 -19
- package/src/composables/focus/useComponentFocus.ts +0 -22
- package/src/composables/options/useOptions.ts +0 -27
- package/src/composables/textLimit/useTextLimit.ts +0 -44
- package/src/stories/Accordion/AccordionBordered.stories.mdx +0 -26
- package/src/stories/Accordion/AccordionIconRight.stories.mdx +0 -32
- package/src/stories/Accordion/accordionTest.js +0 -36
- package/src/stories/AccordionGroup/Accordion.stories.mdx +0 -42
- package/src/stories/AccordionGroup/AccordionItems.stories.mdx +0 -51
- package/src/stories/AccordionGroup/accordionGroupTest.js +0 -51
- package/src/stories/Badge/BadgeColor.stories.mdx +0 -54
- package/src/stories/Badge/BadgeDot.stories.mdx +0 -20
- package/src/stories/Badge/BadgeTest.js +0 -21
- package/src/stories/Breadcrumb/BreadcrumbMultiline.stories.mdx +0 -41
- package/src/stories/Button/ButtonBadge.stories.mdx +0 -34
- package/src/stories/Button/ButtonIconPosition.stories.mdx +0 -106
- package/src/stories/Button/ButtonVariant.stories.mdx +0 -205
- package/src/stories/Button/test.js +0 -41
- package/src/stories/ButtonGroup/ButtonGroupAction.stories.mdx +0 -83
- package/src/stories/ButtonGroup/ButtonGroupActionQuiet.stories.mdx +0 -50
- package/src/stories/ButtonGroup/ButtonGroupBlock.stories.mdx +0 -40
- package/src/stories/ButtonGroup/ButtonGroupCompact.stories.mdx +0 -38
- package/src/stories/ButtonGroup/ButtonGroupRounded.stories.mdx +0 -77
- package/src/stories/ButtonGroup/ButtonGroupTest.js +0 -61
- package/src/stories/ButtonGroup/ButtonGroupVertical.stories.mdx +0 -38
- package/src/stories/Card/CardVariant.stories.mdx +0 -37
- package/src/stories/Check/Check.stories.mdx +0 -62
- package/src/stories/Check/CheckBinary.stories.mdx +0 -80
- package/src/stories/Check/CheckDisabled.stories.mdx +0 -30
- package/src/stories/Check/CheckError.stories.mdx +0 -64
- package/src/stories/Check/CheckErrorTests.js +0 -72
- package/src/stories/Check/CheckHintLabel.stories.mdx +0 -30
- package/src/stories/Check/CheckPropertyTest.js +0 -101
- package/src/stories/Check/CheckReadonly.stories.mdx +0 -30
- package/src/stories/Check/CheckSlots.stories.mdx +0 -51
- package/src/stories/Check/CheckSwitch.stories.mdx +0 -30
- package/src/stories/CheckGroup/CheckGroup.stories.mdx +0 -69
- package/src/stories/CheckGroup/CheckGroupDisabled.stories.mdx +0 -26
- package/src/stories/CheckGroup/CheckGroupError.stories.mdx +0 -28
- package/src/stories/CheckGroup/CheckGroupHintLabel.stories.mdx +0 -27
- package/src/stories/CheckGroup/CheckGroupLabel.stories.mdx +0 -26
- package/src/stories/CheckGroup/CheckGroupOptionLabel.stories.mdx +0 -48
- package/src/stories/CheckGroup/CheckGroupOptionValue.stories.mdx +0 -48
- package/src/stories/CheckGroup/CheckGroupOptions.stories.mdx +0 -40
- package/src/stories/CheckGroup/CheckGroupReadonly.stories.mdx +0 -26
- package/src/stories/CheckGroup/CheckGroupSlots.stories.mdx +0 -152
- package/src/stories/CheckGroup/CheckGroupValid.stories.mdx +0 -28
- package/src/stories/CheckGroup/CheckGroupVertical.stories.mdx +0 -26
- package/src/stories/Dialog/DialogAutoClose.stories.mdx +0 -18
- package/src/stories/Dialog/DialogSize.stories.mdx +0 -36
- package/src/stories/Dropdown/DropdownDisabled.stories.mdx +0 -25
- package/src/stories/Dropdown/DropdownLabelNoResults.stories.mdx +0 -25
- package/src/stories/Dropdown/DropdownMaxValues.stories.mdx +0 -26
- package/src/stories/Dropdown/DropdownMultiple.stories.mdx +0 -56
- package/src/stories/Dropdown/DropdownUseObject.stories.mdx +0 -58
- package/src/stories/Icon/IconList.vue +0 -34
- package/src/stories/Icon/IconPrefix.stories.mdx +0 -79
- package/src/stories/Icon/IconRemote.stories.mdx +0 -39
- package/src/stories/Icon/IconTest.js +0 -27
- package/src/stories/Icon/IconsList.stories.mdx +0 -35
- package/src/stories/InputText/InputTextAutocomplete.stories.mdx +0 -15
- package/src/stories/InputText/InputTextAutofocus.stories.mdx +0 -20
- package/src/stories/InputText/InputTextDisabled.stories.mdx +0 -19
- package/src/stories/InputText/InputTextError.stories.mdx +0 -19
- package/src/stories/InputText/InputTextFloating.stories.mdx +0 -20
- package/src/stories/InputText/InputTextHintLabel.stories.mdx +0 -18
- package/src/stories/InputText/InputTextIcon.stories.mdx +0 -18
- package/src/stories/InputText/InputTextLabel.stories.mdx +0 -15
- package/src/stories/InputText/InputTextLoading.stories.mdx +0 -19
- package/src/stories/InputText/InputTextMax.stories.mdx +0 -31
- package/src/stories/InputText/InputTextMaxLength.stories.mdx +0 -36
- package/src/stories/InputText/InputTextMin.stories.mdx +0 -31
- package/src/stories/InputText/InputTextMinLength.stories.mdx +0 -15
- package/src/stories/InputText/InputTextPlaceholder.stories.mdx +0 -15
- package/src/stories/InputText/InputTextReadonly.stories.mdx +0 -19
- package/src/stories/InputText/InputTextStep.stories.mdx +0 -31
- package/src/stories/InputText/InputTextValid.stories.mdx +0 -19
- package/src/stories/NativeSelect/NativeSelect.stories.mdx +0 -53
- package/src/stories/NativeSelect/NativeSelectDisabled.stories.mdx +0 -32
- package/src/stories/NativeSelect/NativeSelectError.stories.mdx +0 -36
- package/src/stories/NativeSelect/NativeSelectHintLabel.stories.mdx +0 -34
- package/src/stories/NativeSelect/NativeSelectIconLeftRight.stories.mdx +0 -42
- package/src/stories/NativeSelect/NativeSelectLoading.stories.mdx +0 -27
- package/src/stories/NativeSelect/NativeSelectOptions.stories.mdx +0 -78
- package/src/stories/NativeSelect/NativeSelectReadonly.stories.mdx +0 -34
- package/src/stories/NativeSelect/NativeSelectUseObject.stories.mdx +0 -66
- package/src/stories/NativeSelect/NativeSelectValid.stories.mdx +0 -36
- package/src/stories/NativeSelect/NativeSelectValueKey.stories.mdx +0 -66
- package/src/stories/Progress/ProgressDeterminate.stories.mdx +0 -19
- package/src/stories/Radio/RadioDisabled.stories.mdx +0 -30
- package/src/stories/Radio/RadioError.stories.mdx +0 -64
- package/src/stories/Radio/RadioHintLabel.stories.mdx +0 -30
- package/src/stories/Radio/RadioTest.js +0 -89
- package/src/stories/RadioGroup/RadioGroupDisabled.stories.mdx +0 -29
- package/src/stories/RadioGroup/RadioGroupError.stories.mdx +0 -31
- package/src/stories/RadioGroup/RadioGroupHintLabel.stories.mdx +0 -28
- package/src/stories/RadioGroup/RadioGroupLabel.stories.mdx +0 -29
- package/src/stories/RadioGroup/RadioGroupOptionLabel.stories.mdx +0 -65
- package/src/stories/RadioGroup/RadioGroupOptionValue.stories.mdx +0 -65
- package/src/stories/RadioGroup/RadioGroupReadonly.stories.mdx +0 -29
- package/src/stories/RadioGroup/RadioGroupValid.stories.mdx +0 -31
- package/src/stories/RadioGroup/RadioGroupVertical.stories.mdx +0 -29
- package/src/stories/RadioGroup/RadioOptionsTest.js +0 -78
- package/src/stories/RadioGroup/RadioPropertyTest.js +0 -131
- package/src/stories/RadioGroup/RadioSlotsTest.js +0 -20
- package/src/stories/Select/SelectDisabled.stories.mdx +0 -32
- package/src/stories/Select/SelectMaxValues.stories.mdx +0 -33
- package/src/stories/Select/SelectMultiple.stories.mdx +0 -64
- package/src/stories/Select/SelectSearchable.stories.mdx +0 -80
- package/src/stories/Select/SelectSeparator.stories.mdx +0 -64
- package/src/stories/Select/SelectUseObject.stories.mdx +0 -66
- package/src/stories/Textarea/TextareaAutoclear.stories.mdx +0 -23
- package/src/stories/Textarea/TextareaAutocomplete.stories.mdx +0 -23
- package/src/stories/Textarea/TextareaAutofocus.stories.mdx +0 -24
- package/src/stories/Textarea/TextareaDebounce.stories.mdx +0 -23
- package/src/stories/Textarea/TextareaDisabled.stories.mdx +0 -23
- package/src/stories/Textarea/TextareaError.stories.mdx +0 -22
- package/src/stories/Textarea/TextareaErrorLabel.stories.mdx +0 -37
- package/src/stories/Textarea/TextareaFloating.stories.mdx +0 -25
- package/src/stories/Textarea/TextareaHintLabel.stories.mdx +0 -22
- package/src/stories/Textarea/TextareaIcon.stories.mdx +0 -22
- package/src/stories/Textarea/TextareaIconPosition.stories.mdx +0 -39
- package/src/stories/Textarea/TextareaId.stories.mdx +0 -19
- package/src/stories/Textarea/TextareaLabel.stories.mdx +0 -19
- package/src/stories/Textarea/TextareaLimit.stories.mdx +0 -50
- package/src/stories/Textarea/TextareaLoading.stories.mdx +0 -22
- package/src/stories/Textarea/TextareaLoadingLabel.stories.mdx +0 -23
- package/src/stories/Textarea/TextareaMaxLength.stories.mdx +0 -19
- package/src/stories/Textarea/TextareaMinLength.stories.mdx +0 -19
- package/src/stories/Textarea/TextareaModifiers.stories.mdx +0 -24
- package/src/stories/Textarea/TextareaName.stories.mdx +0 -23
- package/src/stories/Textarea/TextareaPlaceholder.stories.mdx +0 -19
- package/src/stories/Textarea/TextareaReadonly.stories.mdx +0 -23
- package/src/stories/Textarea/TextareaRequired.stories.mdx +0 -22
- package/src/stories/Textarea/TextareaResizable.stories.mdx +0 -22
- package/src/stories/Textarea/TextareaRowsCols.stories.mdx +0 -39
- package/src/stories/Textarea/TextareaValid.stories.mdx +0 -22
- package/src/stories/Textarea/TextareaValidLabel.stories.mdx +0 -35
- package/src/stories/stories.scss +0 -35
- package/src/stories/utils.ts +0 -12
- package/src/stories/volver-ui-vue.stories.mdx +0 -77
- package/src/types/.README +0 -0
|
@@ -1,106 +1,9 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
new (...args: any[]): {
|
|
3
|
-
$: import("vue").ComponentInternalInstance;
|
|
4
|
-
$data: {};
|
|
5
|
-
$props: Partial<{
|
|
6
|
-
multiline: boolean;
|
|
7
|
-
}> & Omit<Readonly<import("vue").ExtractPropTypes<{
|
|
8
|
-
routes: {
|
|
9
|
-
(arrayLength: number): import("./VvBreadcrumb").Route[];
|
|
10
|
-
(...items: import("./VvBreadcrumb").Route[]): import("./VvBreadcrumb").Route[];
|
|
11
|
-
new (arrayLength: number): import("./VvBreadcrumb").Route[];
|
|
12
|
-
new (...items: import("./VvBreadcrumb").Route[]): import("./VvBreadcrumb").Route[];
|
|
13
|
-
isArray(arg: any): arg is any[];
|
|
14
|
-
readonly prototype: any[];
|
|
15
|
-
from<T>(arrayLike: ArrayLike<T>): T[];
|
|
16
|
-
from<T_1, U>(arrayLike: ArrayLike<T_1>, mapfn: (v: T_1, k: number) => U, thisArg?: any): U[];
|
|
17
|
-
from<T_2>(iterable: Iterable<T_2> | ArrayLike<T_2>): T_2[];
|
|
18
|
-
from<T_3, U_1>(iterable: Iterable<T_3> | ArrayLike<T_3>, mapfn: (v: T_3, k: number) => U_1, thisArg?: any): U_1[];
|
|
19
|
-
of<T_4>(...items: T_4[]): T_4[];
|
|
20
|
-
readonly [Symbol.species]: ArrayConstructor;
|
|
21
|
-
};
|
|
22
|
-
multiline: BooleanConstructor;
|
|
23
|
-
modifiers: (StringConstructor | ArrayConstructor)[];
|
|
24
|
-
}>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "multiline">;
|
|
25
|
-
$attrs: {
|
|
26
|
-
[x: string]: unknown;
|
|
27
|
-
};
|
|
28
|
-
$refs: {
|
|
29
|
-
[x: string]: unknown;
|
|
30
|
-
};
|
|
31
|
-
$slots: Readonly<{
|
|
32
|
-
[name: string]: import("vue").Slot | undefined;
|
|
33
|
-
}>;
|
|
34
|
-
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null;
|
|
35
|
-
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null;
|
|
36
|
-
$emit: (event: string, ...args: any[]) => void;
|
|
37
|
-
$el: any;
|
|
38
|
-
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
39
|
-
routes: {
|
|
40
|
-
(arrayLength: number): import("./VvBreadcrumb").Route[];
|
|
41
|
-
(...items: import("./VvBreadcrumb").Route[]): import("./VvBreadcrumb").Route[];
|
|
42
|
-
new (arrayLength: number): import("./VvBreadcrumb").Route[];
|
|
43
|
-
new (...items: import("./VvBreadcrumb").Route[]): import("./VvBreadcrumb").Route[];
|
|
44
|
-
isArray(arg: any): arg is any[];
|
|
45
|
-
readonly prototype: any[];
|
|
46
|
-
from<T>(arrayLike: ArrayLike<T>): T[];
|
|
47
|
-
from<T_1, U>(arrayLike: ArrayLike<T_1>, mapfn: (v: T_1, k: number) => U, thisArg?: any): U[];
|
|
48
|
-
from<T_2>(iterable: Iterable<T_2> | ArrayLike<T_2>): T_2[];
|
|
49
|
-
from<T_3, U_1>(iterable: Iterable<T_3> | ArrayLike<T_3>, mapfn: (v: T_3, k: number) => U_1, thisArg?: any): U_1[];
|
|
50
|
-
of<T_4>(...items: T_4[]): T_4[];
|
|
51
|
-
readonly [Symbol.species]: ArrayConstructor;
|
|
52
|
-
};
|
|
53
|
-
multiline: BooleanConstructor;
|
|
54
|
-
modifiers: (StringConstructor | ArrayConstructor)[];
|
|
55
|
-
}>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
|
|
56
|
-
multiline: boolean;
|
|
57
|
-
}, {}, string> & {
|
|
58
|
-
beforeCreate?: ((() => void) | (() => void)[]) | undefined;
|
|
59
|
-
created?: ((() => void) | (() => void)[]) | undefined;
|
|
60
|
-
beforeMount?: ((() => void) | (() => void)[]) | undefined;
|
|
61
|
-
mounted?: ((() => void) | (() => void)[]) | undefined;
|
|
62
|
-
beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
|
|
63
|
-
updated?: ((() => void) | (() => void)[]) | undefined;
|
|
64
|
-
activated?: ((() => void) | (() => void)[]) | undefined;
|
|
65
|
-
deactivated?: ((() => void) | (() => void)[]) | undefined;
|
|
66
|
-
beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
|
|
67
|
-
beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
|
|
68
|
-
destroyed?: ((() => void) | (() => void)[]) | undefined;
|
|
69
|
-
unmounted?: ((() => void) | (() => void)[]) | undefined;
|
|
70
|
-
renderTracked?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
|
|
71
|
-
renderTriggered?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
|
|
72
|
-
errorCaptured?: (((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null, info: string) => boolean | void)[]) | undefined;
|
|
73
|
-
};
|
|
74
|
-
$forceUpdate: () => void;
|
|
75
|
-
$nextTick: typeof import("vue").nextTick;
|
|
76
|
-
$watch<T_5 extends string | ((...args: any) => any)>(source: T_5, cb: T_5 extends (...args: any) => infer R ? (args_0: R, args_1: R) => any : (...args: any) => any, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
|
|
77
|
-
} & Readonly<import("vue").ExtractPropTypes<{
|
|
78
|
-
routes: {
|
|
79
|
-
(arrayLength: number): import("./VvBreadcrumb").Route[];
|
|
80
|
-
(...items: import("./VvBreadcrumb").Route[]): import("./VvBreadcrumb").Route[];
|
|
81
|
-
new (arrayLength: number): import("./VvBreadcrumb").Route[];
|
|
82
|
-
new (...items: import("./VvBreadcrumb").Route[]): import("./VvBreadcrumb").Route[];
|
|
83
|
-
isArray(arg: any): arg is any[];
|
|
84
|
-
readonly prototype: any[];
|
|
85
|
-
from<T>(arrayLike: ArrayLike<T>): T[];
|
|
86
|
-
from<T_1, U>(arrayLike: ArrayLike<T_1>, mapfn: (v: T_1, k: number) => U, thisArg?: any): U[];
|
|
87
|
-
from<T_2>(iterable: Iterable<T_2> | ArrayLike<T_2>): T_2[];
|
|
88
|
-
from<T_3, U_1>(iterable: Iterable<T_3> | ArrayLike<T_3>, mapfn: (v: T_3, k: number) => U_1, thisArg?: any): U_1[];
|
|
89
|
-
of<T_4>(...items: T_4[]): T_4[];
|
|
90
|
-
readonly [Symbol.species]: ArrayConstructor;
|
|
91
|
-
};
|
|
92
|
-
multiline: BooleanConstructor;
|
|
93
|
-
modifiers: (StringConstructor | ArrayConstructor)[];
|
|
94
|
-
}>> & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties & {};
|
|
95
|
-
__isFragment?: undefined;
|
|
96
|
-
__isTeleport?: undefined;
|
|
97
|
-
__isSuspense?: undefined;
|
|
98
|
-
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
1
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
99
2
|
routes: {
|
|
100
|
-
(arrayLength: number): import("
|
|
101
|
-
(...items: import("
|
|
102
|
-
new (arrayLength: number): import("
|
|
103
|
-
new (...items: import("
|
|
3
|
+
(arrayLength: number): import("@/components/VvBreadcrumb").Route[];
|
|
4
|
+
(...items: import("@/components/VvBreadcrumb").Route[]): import("@/components/VvBreadcrumb").Route[];
|
|
5
|
+
new (arrayLength: number): import("@/components/VvBreadcrumb").Route[];
|
|
6
|
+
new (...items: import("@/components/VvBreadcrumb").Route[]): import("@/components/VvBreadcrumb").Route[];
|
|
104
7
|
isArray(arg: any): arg is any[];
|
|
105
8
|
readonly prototype: any[];
|
|
106
9
|
from<T>(arrayLike: ArrayLike<T>): T[];
|
|
@@ -110,9 +13,32 @@ declare const _default: {
|
|
|
110
13
|
of<T_4>(...items: T_4[]): T_4[];
|
|
111
14
|
readonly [Symbol.species]: ArrayConstructor;
|
|
112
15
|
};
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
16
|
+
modifiers: import("vue").PropType<string | string[]>;
|
|
17
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
18
|
+
routes: {
|
|
19
|
+
(arrayLength: number): import("@/components/VvBreadcrumb").Route[];
|
|
20
|
+
(...items: import("@/components/VvBreadcrumb").Route[]): import("@/components/VvBreadcrumb").Route[];
|
|
21
|
+
new (arrayLength: number): import("@/components/VvBreadcrumb").Route[];
|
|
22
|
+
new (...items: import("@/components/VvBreadcrumb").Route[]): import("@/components/VvBreadcrumb").Route[];
|
|
23
|
+
isArray(arg: any): arg is any[];
|
|
24
|
+
readonly prototype: any[];
|
|
25
|
+
from<T>(arrayLike: ArrayLike<T>): T[];
|
|
26
|
+
from<T_1, U>(arrayLike: ArrayLike<T_1>, mapfn: (v: T_1, k: number) => U, thisArg?: any): U[];
|
|
27
|
+
from<T_2>(iterable: Iterable<T_2> | ArrayLike<T_2>): T_2[];
|
|
28
|
+
from<T_3, U_1>(iterable: Iterable<T_3> | ArrayLike<T_3>, mapfn: (v: T_3, k: number) => U_1, thisArg?: any): U_1[];
|
|
29
|
+
of<T_4>(...items: T_4[]): T_4[];
|
|
30
|
+
readonly [Symbol.species]: ArrayConstructor;
|
|
31
|
+
};
|
|
32
|
+
modifiers: import("vue").PropType<string | string[]>;
|
|
33
|
+
}>>, {}>, {
|
|
34
|
+
label: (_: {
|
|
35
|
+
route: import("@/components/VvBreadcrumb").Route;
|
|
36
|
+
index: number;
|
|
37
|
+
}) => any;
|
|
38
|
+
}>;
|
|
118
39
|
export default _default;
|
|
40
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
41
|
+
new (): {
|
|
42
|
+
$slots: S;
|
|
43
|
+
};
|
|
44
|
+
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export interface Route {
|
|
2
2
|
label: string;
|
|
3
3
|
to?: string | {
|
|
4
|
-
[key: string]:
|
|
4
|
+
[key: string]: unknown;
|
|
5
5
|
};
|
|
6
6
|
title?: string;
|
|
7
7
|
href?: string;
|
|
@@ -21,6 +21,5 @@ export declare const VvBreadcrumbProps: {
|
|
|
21
21
|
of<T_4>(...items: T_4[]): T_4[];
|
|
22
22
|
readonly [Symbol.species]: ArrayConstructor;
|
|
23
23
|
};
|
|
24
|
-
|
|
25
|
-
modifiers: (StringConstructor | ArrayConstructor)[];
|
|
24
|
+
modifiers: import("vue").PropType<string | string[]>;
|
|
26
25
|
};
|
|
@@ -0,0 +1,439 @@
|
|
|
1
|
+
import { unref as g, computed as d, defineComponent as N, ref as q, toRefs as z, inject as F, openBlock as h, createBlock as V, mergeProps as D, createCommentVNode as $, toRef as T, useAttrs as X, useSlots as K, resolveDynamicComponent as Q, withCtx as W, renderSlot as _, createElementBlock as P, toDisplayString as R, Fragment as Y, createTextVNode as ee } from "vue";
|
|
2
|
+
import { nanoid as te } from "nanoid";
|
|
3
|
+
import { iconExists as O, Icon as re, addIcon as ne } from "@iconify/vue";
|
|
4
|
+
function j(e, t, r) {
|
|
5
|
+
return r ? E(e, r) === E(t, r) : B(e, t);
|
|
6
|
+
}
|
|
7
|
+
function B(e, t) {
|
|
8
|
+
if (e === t)
|
|
9
|
+
return !0;
|
|
10
|
+
if (e && t && typeof e == "object" && typeof t == "object") {
|
|
11
|
+
const r = Array.isArray(e), c = Array.isArray(t);
|
|
12
|
+
let o, l, u;
|
|
13
|
+
if (r && c) {
|
|
14
|
+
if (l = e.length, l != t.length)
|
|
15
|
+
return !1;
|
|
16
|
+
for (o = l; o-- !== 0; )
|
|
17
|
+
if (!B(e[o], t[o]))
|
|
18
|
+
return !1;
|
|
19
|
+
return !0;
|
|
20
|
+
}
|
|
21
|
+
if (r != c)
|
|
22
|
+
return !1;
|
|
23
|
+
const v = e instanceof Date, s = t instanceof Date;
|
|
24
|
+
if (v != s)
|
|
25
|
+
return !1;
|
|
26
|
+
if (v && s)
|
|
27
|
+
return e.getTime() == t.getTime();
|
|
28
|
+
const a = e instanceof RegExp, n = t instanceof RegExp;
|
|
29
|
+
if (a != n)
|
|
30
|
+
return !1;
|
|
31
|
+
if (a && n)
|
|
32
|
+
return e.toString() == t.toString();
|
|
33
|
+
const i = Object.keys(e);
|
|
34
|
+
if (l = i.length, l !== Object.keys(t).length)
|
|
35
|
+
return !1;
|
|
36
|
+
for (o = l; o-- !== 0; )
|
|
37
|
+
if (!Object.prototype.hasOwnProperty.call(t, i[o]))
|
|
38
|
+
return !1;
|
|
39
|
+
for (o = l; o-- !== 0; )
|
|
40
|
+
if (u = i[o], !B(e[u], t[u]))
|
|
41
|
+
return !1;
|
|
42
|
+
return !0;
|
|
43
|
+
}
|
|
44
|
+
return e !== e && t !== t;
|
|
45
|
+
}
|
|
46
|
+
function E(e, t) {
|
|
47
|
+
if (e && Object.keys(e).length && t) {
|
|
48
|
+
if (t.indexOf(".") === -1)
|
|
49
|
+
return e[t];
|
|
50
|
+
{
|
|
51
|
+
const r = t.split(".");
|
|
52
|
+
let c = e;
|
|
53
|
+
for (let o = 0, l = r.length; o < l; ++o) {
|
|
54
|
+
if (e == null)
|
|
55
|
+
return null;
|
|
56
|
+
c = c[r[o]];
|
|
57
|
+
}
|
|
58
|
+
return c;
|
|
59
|
+
}
|
|
60
|
+
} else
|
|
61
|
+
return null;
|
|
62
|
+
}
|
|
63
|
+
function I(e, t) {
|
|
64
|
+
if (e != null && t && t.length) {
|
|
65
|
+
for (const r of t)
|
|
66
|
+
if (j(e, r))
|
|
67
|
+
return !0;
|
|
68
|
+
}
|
|
69
|
+
return !1;
|
|
70
|
+
}
|
|
71
|
+
function oe(e) {
|
|
72
|
+
return ((t) => t == null || t === "" || Array.isArray(t) && t.length === 0 || !(t instanceof Date) && typeof t == "object" && Object.keys(t).length === 0)(g(e));
|
|
73
|
+
}
|
|
74
|
+
function M(e) {
|
|
75
|
+
var t, r;
|
|
76
|
+
if (e)
|
|
77
|
+
return (r = (t = e.match(
|
|
78
|
+
/[A-Z]{2,}(?=[A-Z][a-z]+[0-9]*|\b)|[A-Z]?[a-z]+[0-9]*|[A-Z]|[0-9]+/g
|
|
79
|
+
)) == null ? void 0 : t.join("-")) == null ? void 0 : r.toLowerCase();
|
|
80
|
+
}
|
|
81
|
+
const U = "ds";
|
|
82
|
+
function Z(e, t) {
|
|
83
|
+
const r = { [`${e}`]: !0 };
|
|
84
|
+
return {
|
|
85
|
+
bemCssClasses: d(() => Object.keys(t).reduce((o, l) => {
|
|
86
|
+
const u = g(t[l]) || !1;
|
|
87
|
+
if (!u)
|
|
88
|
+
return o;
|
|
89
|
+
if (l === "modifiers") {
|
|
90
|
+
const v = Array.isArray(u) ? u : u.split(" ");
|
|
91
|
+
return {
|
|
92
|
+
...o,
|
|
93
|
+
...v.reduce(
|
|
94
|
+
(s, a) => ({
|
|
95
|
+
...s,
|
|
96
|
+
[`${e}--${M(a)}`]: !0
|
|
97
|
+
}),
|
|
98
|
+
{}
|
|
99
|
+
)
|
|
100
|
+
};
|
|
101
|
+
} else
|
|
102
|
+
return {
|
|
103
|
+
...o,
|
|
104
|
+
[`${e}--${M(l)}`]: u
|
|
105
|
+
};
|
|
106
|
+
}, r) || {})
|
|
107
|
+
};
|
|
108
|
+
}
|
|
109
|
+
const se = {
|
|
110
|
+
color: String,
|
|
111
|
+
width: {
|
|
112
|
+
type: [String, Number]
|
|
113
|
+
},
|
|
114
|
+
height: {
|
|
115
|
+
type: [String, Number]
|
|
116
|
+
},
|
|
117
|
+
name: {
|
|
118
|
+
type: String,
|
|
119
|
+
required: !0
|
|
120
|
+
},
|
|
121
|
+
provider: {
|
|
122
|
+
type: String
|
|
123
|
+
},
|
|
124
|
+
prefix: {
|
|
125
|
+
type: String,
|
|
126
|
+
default: "normal"
|
|
127
|
+
},
|
|
128
|
+
src: String,
|
|
129
|
+
horizontalFlip: Boolean,
|
|
130
|
+
verticalFlip: Boolean,
|
|
131
|
+
flip: String,
|
|
132
|
+
mode: String,
|
|
133
|
+
inline: Boolean,
|
|
134
|
+
rotate: [Number, String],
|
|
135
|
+
onLoad: Function,
|
|
136
|
+
svg: String,
|
|
137
|
+
modifiers: {
|
|
138
|
+
type: [String, Array]
|
|
139
|
+
}
|
|
140
|
+
}, le = {
|
|
141
|
+
name: "VvIcon"
|
|
142
|
+
}, G = /* @__PURE__ */ N({
|
|
143
|
+
...le,
|
|
144
|
+
props: se,
|
|
145
|
+
setup(e) {
|
|
146
|
+
const t = e, r = q(!0), { modifiers: c } = z(t), o = F(U), { bemCssClasses: l } = Z("vv-icon", {
|
|
147
|
+
modifiers: c
|
|
148
|
+
}), u = d(() => t.provider || (o == null ? void 0 : o.provider)), v = d(() => {
|
|
149
|
+
const n = t.name ?? "", i = `@${u.value}:${t.prefix}:${t.name}`;
|
|
150
|
+
return O(n) ? n : O(i) ? i : (o == null ? void 0 : o.iconsCollections.find((p) => {
|
|
151
|
+
const y = `@${u.value}:${p.prefix}:${n}`;
|
|
152
|
+
if (O(y))
|
|
153
|
+
return y;
|
|
154
|
+
})) || n;
|
|
155
|
+
});
|
|
156
|
+
function s(n) {
|
|
157
|
+
let i = null;
|
|
158
|
+
if (typeof window > "u") {
|
|
159
|
+
const { JSDOM: S } = require("jsdom");
|
|
160
|
+
i = new S().window;
|
|
161
|
+
}
|
|
162
|
+
return (i ? new i.DOMParser() : new window.DOMParser()).parseFromString(n, "text/html").querySelector("svg");
|
|
163
|
+
}
|
|
164
|
+
function a(n) {
|
|
165
|
+
const i = s(n), p = (i == null ? void 0 : i.innerHTML.trim()) || "";
|
|
166
|
+
i && p && ne(`@${u.value}:${t.prefix}:${t.name}`, {
|
|
167
|
+
body: p,
|
|
168
|
+
height: i.viewBox.baseVal.height,
|
|
169
|
+
width: i.viewBox.baseVal.width
|
|
170
|
+
});
|
|
171
|
+
}
|
|
172
|
+
return o && (t.src && !O(`@${u.value}:${t.prefix}:${t.name}`) ? (r.value = !1, o.fetchIcon(t.src).then((n) => {
|
|
173
|
+
n && (a(n), r.value = !0);
|
|
174
|
+
}).catch((n) => {
|
|
175
|
+
throw new Error(`During fetch icon: ${n == null ? void 0 : n.message}`);
|
|
176
|
+
})) : t.svg && a(t.svg)), (n, i) => r.value ? (h(), V(g(re), D({
|
|
177
|
+
key: 0,
|
|
178
|
+
class: g(l)
|
|
179
|
+
}, {
|
|
180
|
+
inline: n.inline,
|
|
181
|
+
width: n.width,
|
|
182
|
+
height: n.height,
|
|
183
|
+
horizontalFlip: n.horizontalFlip,
|
|
184
|
+
verticalFlip: n.verticalFlip,
|
|
185
|
+
flip: n.flip,
|
|
186
|
+
rotate: n.rotate,
|
|
187
|
+
color: n.color,
|
|
188
|
+
onLoad: n.onLoad,
|
|
189
|
+
icon: g(v)
|
|
190
|
+
}), null, 16, ["class"])) : $("", !0);
|
|
191
|
+
}
|
|
192
|
+
}), ie = {
|
|
193
|
+
disabled: Boolean
|
|
194
|
+
}, ae = {
|
|
195
|
+
modifiers: [String, Array]
|
|
196
|
+
}, ue = {
|
|
197
|
+
unselectable: { type: Boolean, default: !0 }
|
|
198
|
+
};
|
|
199
|
+
function ce(e) {
|
|
200
|
+
const t = F(e, void 0), r = d(() => !oe(t));
|
|
201
|
+
function c(o, l, u) {
|
|
202
|
+
if (t != null && t.value) {
|
|
203
|
+
const s = g(t.value)[o];
|
|
204
|
+
return d({
|
|
205
|
+
get() {
|
|
206
|
+
return s == null ? void 0 : s.value;
|
|
207
|
+
},
|
|
208
|
+
set(a) {
|
|
209
|
+
s.value = a;
|
|
210
|
+
}
|
|
211
|
+
});
|
|
212
|
+
}
|
|
213
|
+
const v = T(l, o);
|
|
214
|
+
return d({
|
|
215
|
+
get() {
|
|
216
|
+
return v.value;
|
|
217
|
+
},
|
|
218
|
+
set(s) {
|
|
219
|
+
u && u(`update:${o}`, s);
|
|
220
|
+
}
|
|
221
|
+
});
|
|
222
|
+
}
|
|
223
|
+
return {
|
|
224
|
+
group: t,
|
|
225
|
+
isInGroup: r,
|
|
226
|
+
getGroupOrLocalRef: c
|
|
227
|
+
};
|
|
228
|
+
}
|
|
229
|
+
const fe = "VV_BUTTON_GROUP";
|
|
230
|
+
var k = /* @__PURE__ */ ((e) => (e.left = "left", e.right = "right", e.top = "top", e.bottom = "bottom", e))(k || {}), x = /* @__PURE__ */ ((e) => (e.button = "button", e.submit = "submit", e.reset = "reset", e))(x || {}), m = /* @__PURE__ */ ((e) => (e.nuxtLink = "nuxt-link", e.routerLink = "router-link", e.a = "a", e.button = "button", e))(m || {}), H = /* @__PURE__ */ ((e) => (e._blank = "_blank", e._self = "_self", e._parent = "_parent", e._top = "_top", e))(H || {});
|
|
231
|
+
const de = ["update:modelValue"], ve = {
|
|
232
|
+
...ae,
|
|
233
|
+
...ie,
|
|
234
|
+
...ue,
|
|
235
|
+
icon: {
|
|
236
|
+
type: [String, Object],
|
|
237
|
+
default: ""
|
|
238
|
+
},
|
|
239
|
+
iconPosition: {
|
|
240
|
+
type: String,
|
|
241
|
+
default: "left",
|
|
242
|
+
validator: (e) => e in k
|
|
243
|
+
},
|
|
244
|
+
label: [String, Number],
|
|
245
|
+
loading: Boolean,
|
|
246
|
+
loadingIcon: { type: String, default: "eos-icons:bubble-loading" },
|
|
247
|
+
loadingLabel: {
|
|
248
|
+
type: String,
|
|
249
|
+
default: "Loading..."
|
|
250
|
+
},
|
|
251
|
+
to: {
|
|
252
|
+
type: [String, Object]
|
|
253
|
+
},
|
|
254
|
+
href: String,
|
|
255
|
+
target: {
|
|
256
|
+
type: String,
|
|
257
|
+
validator: (e) => e in H
|
|
258
|
+
},
|
|
259
|
+
active: Boolean,
|
|
260
|
+
pressed: Boolean,
|
|
261
|
+
rel: {
|
|
262
|
+
type: String,
|
|
263
|
+
default: "noopener noreferrer"
|
|
264
|
+
},
|
|
265
|
+
type: {
|
|
266
|
+
type: String,
|
|
267
|
+
default: "button",
|
|
268
|
+
validator: (e) => e in x
|
|
269
|
+
},
|
|
270
|
+
toggle: {
|
|
271
|
+
type: Boolean,
|
|
272
|
+
default: !1
|
|
273
|
+
},
|
|
274
|
+
modelValue: String
|
|
275
|
+
};
|
|
276
|
+
function ge(e, t) {
|
|
277
|
+
var A;
|
|
278
|
+
const { group: r, isInGroup: c, getGroupOrLocalRef: o } = ce(fe), {
|
|
279
|
+
iconPosition: l,
|
|
280
|
+
icon: u,
|
|
281
|
+
label: v,
|
|
282
|
+
pressed: s,
|
|
283
|
+
modifiers: a
|
|
284
|
+
} = z(e), n = o("modelValue", e, t), i = o("disabled", e), p = o("toggle", e), y = o(
|
|
285
|
+
"unselectable",
|
|
286
|
+
e
|
|
287
|
+
), b = ((A = r == null ? void 0 : r.value) == null ? void 0 : A.multiple) ?? q(!1), S = d(() => {
|
|
288
|
+
var w;
|
|
289
|
+
const C = a != null && a.value ? Array.isArray(a.value) ? a.value : [a.value] : [], L = (w = r == null ? void 0 : r.value.itemModifiers) != null && w.value ? Array.isArray(r.value.itemModifiers.value) ? r.value.itemModifiers.value : [r.value.itemModifiers.value] : [];
|
|
290
|
+
return [...C, ...L];
|
|
291
|
+
});
|
|
292
|
+
return {
|
|
293
|
+
group: r,
|
|
294
|
+
isInGroup: c,
|
|
295
|
+
modelValue: n,
|
|
296
|
+
disabled: i,
|
|
297
|
+
toggle: p,
|
|
298
|
+
unselectable: y,
|
|
299
|
+
multiple: b,
|
|
300
|
+
modifiers: S,
|
|
301
|
+
pressed: s,
|
|
302
|
+
iconPosition: l,
|
|
303
|
+
icon: u,
|
|
304
|
+
label: v
|
|
305
|
+
};
|
|
306
|
+
}
|
|
307
|
+
const pe = {
|
|
308
|
+
key: 1,
|
|
309
|
+
class: "vv-button__label"
|
|
310
|
+
}, me = {
|
|
311
|
+
key: 1,
|
|
312
|
+
class: "vv-button__label"
|
|
313
|
+
}, ye = {
|
|
314
|
+
name: "VvButton"
|
|
315
|
+
}, Ae = /* @__PURE__ */ N({
|
|
316
|
+
...ye,
|
|
317
|
+
props: ve,
|
|
318
|
+
emits: de,
|
|
319
|
+
setup(e, { emit: t }) {
|
|
320
|
+
const r = e, c = X(), o = K(), l = (c == null ? void 0 : c.name) || te(), {
|
|
321
|
+
modifiers: u,
|
|
322
|
+
iconPosition: v,
|
|
323
|
+
icon: s,
|
|
324
|
+
label: a,
|
|
325
|
+
modelValue: n,
|
|
326
|
+
disabled: i,
|
|
327
|
+
toggle: p,
|
|
328
|
+
unselectable: y
|
|
329
|
+
} = ge(r, t), b = F(U), S = d(() => {
|
|
330
|
+
switch (!0) {
|
|
331
|
+
case i.value:
|
|
332
|
+
return m.button;
|
|
333
|
+
case r.to !== void 0:
|
|
334
|
+
return b != null && b.nuxt ? m.nuxtLink : m.routerLink;
|
|
335
|
+
case r.href !== void 0:
|
|
336
|
+
return m.a;
|
|
337
|
+
default:
|
|
338
|
+
return m.button;
|
|
339
|
+
}
|
|
340
|
+
}), A = d(() => p.value ? Array.isArray(n.value) ? I(l, n.value) : j(l, n.value) : r.pressed), { bemCssClasses: C } = Z("vv-button", {
|
|
341
|
+
modifiers: u,
|
|
342
|
+
active: r.active,
|
|
343
|
+
pressed: A,
|
|
344
|
+
disabled: i,
|
|
345
|
+
reverse: d(
|
|
346
|
+
() => [k.right, k.bottom].includes(
|
|
347
|
+
v.value
|
|
348
|
+
)
|
|
349
|
+
),
|
|
350
|
+
column: d(
|
|
351
|
+
() => [k.top, k.bottom].includes(
|
|
352
|
+
v.value
|
|
353
|
+
)
|
|
354
|
+
),
|
|
355
|
+
iconOnly: d(
|
|
356
|
+
() => (s == null ? void 0 : s.value) && !(a != null && a.value) && !o.default
|
|
357
|
+
)
|
|
358
|
+
}), L = d(
|
|
359
|
+
() => typeof (s == null ? void 0 : s.value) == "string" ? { name: s == null ? void 0 : s.value } : s == null ? void 0 : s.value
|
|
360
|
+
), w = d(() => {
|
|
361
|
+
const f = {
|
|
362
|
+
class: C.value,
|
|
363
|
+
"aria-pressed": A.value ? !0 : void 0
|
|
364
|
+
};
|
|
365
|
+
switch (S.value) {
|
|
366
|
+
case m.a:
|
|
367
|
+
return {
|
|
368
|
+
...f,
|
|
369
|
+
role: "button",
|
|
370
|
+
href: r.href,
|
|
371
|
+
target: r.target,
|
|
372
|
+
rel: r.rel
|
|
373
|
+
};
|
|
374
|
+
case m.routerLink:
|
|
375
|
+
case m.nuxtLink:
|
|
376
|
+
return {
|
|
377
|
+
...f,
|
|
378
|
+
role: "button",
|
|
379
|
+
to: r.to,
|
|
380
|
+
target: r.target
|
|
381
|
+
};
|
|
382
|
+
default:
|
|
383
|
+
return {
|
|
384
|
+
...f,
|
|
385
|
+
type: r.type,
|
|
386
|
+
disabled: i.value
|
|
387
|
+
};
|
|
388
|
+
}
|
|
389
|
+
}), J = () => {
|
|
390
|
+
if (p.value) {
|
|
391
|
+
if (Array.isArray(n.value)) {
|
|
392
|
+
if (I(l, n.value)) {
|
|
393
|
+
y.value && (n.value = n.value.filter(
|
|
394
|
+
(f) => f !== l
|
|
395
|
+
));
|
|
396
|
+
return;
|
|
397
|
+
}
|
|
398
|
+
n.value.push(l);
|
|
399
|
+
return;
|
|
400
|
+
}
|
|
401
|
+
if (j(l, n.value) && y.value) {
|
|
402
|
+
n.value = void 0;
|
|
403
|
+
return;
|
|
404
|
+
}
|
|
405
|
+
n.value = l;
|
|
406
|
+
}
|
|
407
|
+
};
|
|
408
|
+
return (f, he) => (h(), V(Q(g(S)), D(g(w), { onClickPassive: J }), {
|
|
409
|
+
default: W(() => [
|
|
410
|
+
_(f.$slots, "default", {}, () => [
|
|
411
|
+
f.loading ? _(f.$slots, "loading", { key: 0 }, () => [
|
|
412
|
+
f.loadingIcon ? (h(), V(G, {
|
|
413
|
+
key: 0,
|
|
414
|
+
class: "vv-button__loading-icon",
|
|
415
|
+
name: f.loadingIcon
|
|
416
|
+
}, null, 8, ["name"])) : $("", !0),
|
|
417
|
+
f.loadingLabel ? (h(), P("span", pe, R(f.loadingLabel), 1)) : $("", !0)
|
|
418
|
+
]) : (h(), P(Y, { key: 1 }, [
|
|
419
|
+
_(f.$slots, "before"),
|
|
420
|
+
g(s) ? (h(), V(G, D({
|
|
421
|
+
key: 0,
|
|
422
|
+
class: "vv-button__icon"
|
|
423
|
+
}, g(L)), null, 16)) : $("", !0),
|
|
424
|
+
g(a) ? (h(), P("span", me, [
|
|
425
|
+
_(f.$slots, "label", {}, () => [
|
|
426
|
+
ee(R(g(a)), 1)
|
|
427
|
+
])
|
|
428
|
+
])) : $("", !0),
|
|
429
|
+
_(f.$slots, "after")
|
|
430
|
+
], 64))
|
|
431
|
+
])
|
|
432
|
+
]),
|
|
433
|
+
_: 3
|
|
434
|
+
}, 16));
|
|
435
|
+
}
|
|
436
|
+
});
|
|
437
|
+
export {
|
|
438
|
+
Ae as default
|
|
439
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(function(e,v){typeof exports=="object"&&typeof module<"u"?module.exports=v(require("vue"),require("nanoid"),require("@iconify/vue")):typeof define=="function"&&define.amd?define(["vue","nanoid","@iconify/vue"],v):(e=typeof globalThis<"u"?globalThis:e||self,e.VvButton=v(e.vue,e.nanoid,e.vue$1))})(this,function(e,v,h){"use strict";function V(t,n,r){return r?$(t,r)===$(n,r):C(t,n)}function C(t,n){if(t===n)return!0;if(t&&n&&typeof t=="object"&&typeof n=="object"){const r=Array.isArray(t),f=Array.isArray(n);let s,l,u;if(r&&f){if(l=t.length,l!=n.length)return!1;for(s=l;s--!==0;)if(!C(t[s],n[s]))return!1;return!0}if(r!=f)return!1;const p=t instanceof Date,i=n instanceof Date;if(p!=i)return!1;if(p&&i)return t.getTime()==n.getTime();const c=t instanceof RegExp,o=n instanceof RegExp;if(c!=o)return!1;if(c&&o)return t.toString()==n.toString();const a=Object.keys(t);if(l=a.length,l!==Object.keys(n).length)return!1;for(s=l;s--!==0;)if(!Object.prototype.hasOwnProperty.call(n,a[s]))return!1;for(s=l;s--!==0;)if(u=a[s],!C(t[u],n[u]))return!1;return!0}return t!==t&&n!==n}function $(t,n){if(t&&Object.keys(t).length&&n){if(n.indexOf(".")===-1)return t[n];{const r=n.split(".");let f=t;for(let s=0,l=r.length;s<l;++s){if(t==null)return null;f=f[r[s]]}return f}}else return null}function O(t,n){if(t!=null&&n&&n.length){for(const r of n)if(V(t,r))return!0}return!1}function F(t){return(n=>n==null||n===""||Array.isArray(n)&&n.length===0||!(n instanceof Date)&&typeof n=="object"&&Object.keys(n).length===0)(e.unref(t))}function P(t){var n,r;if(t)return(r=(n=t.match(/[A-Z]{2,}(?=[A-Z][a-z]+[0-9]*|\b)|[A-Z]?[a-z]+[0-9]*|[A-Z]|[0-9]+/g))==null?void 0:n.join("-"))==null?void 0:r.toLowerCase()}const L="ds";function j(t,n){const r={[`${t}`]:!0};return{bemCssClasses:e.computed(()=>Object.keys(n).reduce((s,l)=>{const u=e.unref(n[l])||!1;if(!u)return s;if(l==="modifiers"){const p=Array.isArray(u)?u:u.split(" ");return{...s,...p.reduce((i,c)=>({...i,[`${t}--${P(c)}`]:!0}),{})}}else return{...s,[`${t}--${P(l)}`]:u}},r)||{})}}const I={color:String,width:{type:[String,Number]},height:{type:[String,Number]},name:{type:String,required:!0},provider:{type:String},prefix:{type:String,default:"normal"},src:String,horizontalFlip:Boolean,verticalFlip:Boolean,flip:String,mode:String,inline:Boolean,rotate:[Number,String],onLoad:Function,svg:String,modifiers:{type:[String,Array]}},N={name:"VvIcon"},E=e.defineComponent({...N,props:I,setup(t){const n=t,r=e.ref(!0),{modifiers:f}=e.toRefs(n),s=e.inject(L),{bemCssClasses:l}=j("vv-icon",{modifiers:f}),u=e.computed(()=>n.provider||(s==null?void 0:s.provider)),p=e.computed(()=>{const o=n.name??"",a=`@${u.value}:${n.prefix}:${n.name}`;return h.iconExists(o)?o:h.iconExists(a)?a:(s==null?void 0:s.iconsCollections.find(m=>{const y=`@${u.value}:${m.prefix}:${o}`;if(h.iconExists(y))return y}))||o});function i(o){let a=null;if(typeof window>"u"){const{JSDOM:k}=require("jsdom");a=new k().window}return(a?new a.DOMParser:new window.DOMParser).parseFromString(o,"text/html").querySelector("svg")}function c(o){const a=i(o),m=(a==null?void 0:a.innerHTML.trim())||"";a&&m&&h.addIcon(`@${u.value}:${n.prefix}:${n.name}`,{body:m,height:a.viewBox.baseVal.height,width:a.viewBox.baseVal.width})}return s&&(n.src&&!h.iconExists(`@${u.value}:${n.prefix}:${n.name}`)?(r.value=!1,s.fetchIcon(n.src).then(o=>{o&&(c(o),r.value=!0)}).catch(o=>{throw new Error(`During fetch icon: ${o==null?void 0:o.message}`)})):n.svg&&c(n.svg)),(o,a)=>r.value?(e.openBlock(),e.createBlock(e.unref(h.Icon),e.mergeProps({key:0,class:e.unref(l)},{inline:o.inline,width:o.width,height:o.height,horizontalFlip:o.horizontalFlip,verticalFlip:o.verticalFlip,flip:o.flip,rotate:o.rotate,color:o.color,onLoad:o.onLoad,icon:e.unref(p)}),null,16,["class"])):e.createCommentVNode("",!0)}}),M={disabled:Boolean},q={modifiers:[String,Array]},G={unselectable:{type:Boolean,default:!0}};function x(t){const n=e.inject(t,void 0),r=e.computed(()=>!F(n));function f(s,l,u){if(n!=null&&n.value){const i=e.unref(n.value)[s];return e.computed({get(){return i==null?void 0:i.value},set(c){i.value=c}})}const p=e.toRef(l,s);return e.computed({get(){return p.value},set(i){u&&u(`update:${s}`,i)}})}return{group:n,isInGroup:r,getGroupOrLocalRef:f}}const z="VV_BUTTON_GROUP";var b=(t=>(t.left="left",t.right="right",t.top="top",t.bottom="bottom",t))(b||{}),D=(t=>(t.button="button",t.submit="submit",t.reset="reset",t))(D||{}),g=(t=>(t.nuxtLink="nuxt-link",t.routerLink="router-link",t.a="a",t.button="button",t))(g||{}),R=(t=>(t._blank="_blank",t._self="_self",t._parent="_parent",t._top="_top",t))(R||{});const U=["update:modelValue"],Z={...q,...M,...G,icon:{type:[String,Object],default:""},iconPosition:{type:String,default:"left",validator:t=>t in b},label:[String,Number],loading:Boolean,loadingIcon:{type:String,default:"eos-icons:bubble-loading"},loadingLabel:{type:String,default:"Loading..."},to:{type:[String,Object]},href:String,target:{type:String,validator:t=>t in R},active:Boolean,pressed:Boolean,rel:{type:String,default:"noopener noreferrer"},type:{type:String,default:"button",validator:t=>t in D},toggle:{type:Boolean,default:!1},modelValue:String};function T(t,n){var _;const{group:r,isInGroup:f,getGroupOrLocalRef:s}=x(z),{iconPosition:l,icon:u,label:p,pressed:i,modifiers:c}=e.toRefs(t),o=s("modelValue",t,n),a=s("disabled",t),m=s("toggle",t),y=s("unselectable",t),S=((_=r==null?void 0:r.value)==null?void 0:_.multiple)??e.ref(!1),k=e.computed(()=>{var A;const w=c!=null&&c.value?Array.isArray(c.value)?c.value:[c.value]:[],B=(A=r==null?void 0:r.value.itemModifiers)!=null&&A.value?Array.isArray(r.value.itemModifiers.value)?r.value.itemModifiers.value:[r.value.itemModifiers.value]:[];return[...w,...B]});return{group:r,isInGroup:f,modelValue:o,disabled:a,toggle:m,unselectable:y,multiple:S,modifiers:k,pressed:i,iconPosition:l,icon:u,label:p}}const H={key:1,class:"vv-button__label"},J={key:1,class:"vv-button__label"},X={name:"VvButton"};return e.defineComponent({...X,props:Z,emits:U,setup(t,{emit:n}){const r=t,f=e.useAttrs(),s=e.useSlots(),l=(f==null?void 0:f.name)||v.nanoid(),{modifiers:u,iconPosition:p,icon:i,label:c,modelValue:o,disabled:a,toggle:m,unselectable:y}=T(r,n),S=e.inject(L),k=e.computed(()=>{switch(!0){case a.value:return g.button;case r.to!==void 0:return S!=null&&S.nuxt?g.nuxtLink:g.routerLink;case r.href!==void 0:return g.a;default:return g.button}}),_=e.computed(()=>m.value?Array.isArray(o.value)?O(l,o.value):V(l,o.value):r.pressed),{bemCssClasses:w}=j("vv-button",{modifiers:u,active:r.active,pressed:_,disabled:a,reverse:e.computed(()=>[b.right,b.bottom].includes(p.value)),column:e.computed(()=>[b.top,b.bottom].includes(p.value)),iconOnly:e.computed(()=>(i==null?void 0:i.value)&&!(c!=null&&c.value)&&!s.default)}),B=e.computed(()=>typeof(i==null?void 0:i.value)=="string"?{name:i==null?void 0:i.value}:i==null?void 0:i.value),A=e.computed(()=>{const d={class:w.value,"aria-pressed":_.value?!0:void 0};switch(k.value){case g.a:return{...d,role:"button",href:r.href,target:r.target,rel:r.rel};case g.routerLink:case g.nuxtLink:return{...d,role:"button",to:r.to,target:r.target};default:return{...d,type:r.type,disabled:a.value}}}),K=()=>{if(m.value){if(Array.isArray(o.value)){if(O(l,o.value)){y.value&&(o.value=o.value.filter(d=>d!==l));return}o.value.push(l);return}if(V(l,o.value)&&y.value){o.value=void 0;return}o.value=l}};return(d,W)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(k)),e.mergeProps(e.unref(A),{onClickPassive:K}),{default:e.withCtx(()=>[e.renderSlot(d.$slots,"default",{},()=>[d.loading?e.renderSlot(d.$slots,"loading",{key:0},()=>[d.loadingIcon?(e.openBlock(),e.createBlock(E,{key:0,class:"vv-button__loading-icon",name:d.loadingIcon},null,8,["name"])):e.createCommentVNode("",!0),d.loadingLabel?(e.openBlock(),e.createElementBlock("span",H,e.toDisplayString(d.loadingLabel),1)):e.createCommentVNode("",!0)]):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.renderSlot(d.$slots,"before"),e.unref(i)?(e.openBlock(),e.createBlock(E,e.mergeProps({key:0,class:"vv-button__icon"},e.unref(B)),null,16)):e.createCommentVNode("",!0),e.unref(c)?(e.openBlock(),e.createElementBlock("span",J,[e.renderSlot(d.$slots,"label",{},()=>[e.createTextVNode(e.toDisplayString(e.unref(c)),1)])])):e.createCommentVNode("",!0),e.renderSlot(d.$slots,"after")],64))])]),_:3},16))}})});
|