@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,422 +0,0 @@
|
|
|
1
|
-
import { computed as f, unref as y, defineComponent as D, ref as T, toRefs as q, inject as F, openBlock as b, createBlock as O, mergeProps as P, createCommentVNode as C, toRef as Z, useAttrs as z, resolveDynamicComponent as H, withCtx as J, renderSlot as A, createElementBlock as w, toDisplayString as L, Fragment as K, createTextVNode as W } from "vue";
|
|
2
|
-
import { v4 as X } from "uuid";
|
|
3
|
-
import { iconExists as j, Icon as Y, addIcon as ee } from "@iconify/vue";
|
|
4
|
-
var _ = /* @__PURE__ */ ((e) => (e.left = "left", e.right = "right", e.top = "top", e.bottom = "bottom", e))(_ || {}), k = /* @__PURE__ */ ((e) => (e.nuxtLink = "nuxt-link", e.routerLink = "router-link", e.a = "a", e.button = "button", e))(k || {}), R = /* @__PURE__ */ ((e) => (e._blank = "_blank", e._self = "_self", e._parent = "_parent", e._top = "_top", e))(R || {});
|
|
5
|
-
const te = {
|
|
6
|
-
icon: String,
|
|
7
|
-
iconPosition: {
|
|
8
|
-
type: String,
|
|
9
|
-
default: "left",
|
|
10
|
-
validator: (e) => e in _
|
|
11
|
-
},
|
|
12
|
-
label: String,
|
|
13
|
-
loading: Boolean,
|
|
14
|
-
loadingIcon: { type: String, default: "eos-icons:bubble-loading" },
|
|
15
|
-
loadingLabel: {
|
|
16
|
-
type: String,
|
|
17
|
-
default: "Loading..."
|
|
18
|
-
},
|
|
19
|
-
to: {
|
|
20
|
-
type: [String, Object]
|
|
21
|
-
},
|
|
22
|
-
href: String,
|
|
23
|
-
target: {
|
|
24
|
-
type: String,
|
|
25
|
-
validator: (e) => e in R
|
|
26
|
-
},
|
|
27
|
-
block: Boolean,
|
|
28
|
-
active: Boolean,
|
|
29
|
-
rounded: Boolean,
|
|
30
|
-
disabled: Boolean,
|
|
31
|
-
fullBleed: Boolean,
|
|
32
|
-
action: Boolean,
|
|
33
|
-
actionQuiet: Boolean,
|
|
34
|
-
selected: Boolean,
|
|
35
|
-
modifiers: [Array, String]
|
|
36
|
-
}, h = {
|
|
37
|
-
equals(e, t, n) {
|
|
38
|
-
return n ? this.resolveFieldData(e, n) === this.resolveFieldData(t, n) : this.deepEquals(e, t);
|
|
39
|
-
},
|
|
40
|
-
deepEquals(e, t) {
|
|
41
|
-
if (e === t)
|
|
42
|
-
return !0;
|
|
43
|
-
if (e && t && typeof e == "object" && typeof t == "object") {
|
|
44
|
-
const n = Array.isArray(e), o = Array.isArray(t);
|
|
45
|
-
let r, l, a;
|
|
46
|
-
if (n && o) {
|
|
47
|
-
if (l = e.length, l != t.length)
|
|
48
|
-
return !1;
|
|
49
|
-
for (r = l; r-- !== 0; )
|
|
50
|
-
if (!this.deepEquals(e[r], t[r]))
|
|
51
|
-
return !1;
|
|
52
|
-
return !0;
|
|
53
|
-
}
|
|
54
|
-
if (n != o)
|
|
55
|
-
return !1;
|
|
56
|
-
const u = e instanceof Date, c = t instanceof Date;
|
|
57
|
-
if (u != c)
|
|
58
|
-
return !1;
|
|
59
|
-
if (u && c)
|
|
60
|
-
return e.getTime() == t.getTime();
|
|
61
|
-
const v = e instanceof RegExp, s = t instanceof RegExp;
|
|
62
|
-
if (v != s)
|
|
63
|
-
return !1;
|
|
64
|
-
if (v && s)
|
|
65
|
-
return e.toString() == t.toString();
|
|
66
|
-
const i = Object.keys(e);
|
|
67
|
-
if (l = i.length, l !== Object.keys(t).length)
|
|
68
|
-
return !1;
|
|
69
|
-
for (r = l; r-- !== 0; )
|
|
70
|
-
if (!Object.prototype.hasOwnProperty.call(t, i[r]))
|
|
71
|
-
return !1;
|
|
72
|
-
for (r = l; r-- !== 0; )
|
|
73
|
-
if (a = i[r], !this.deepEquals(e[a], t[a]))
|
|
74
|
-
return !1;
|
|
75
|
-
return !0;
|
|
76
|
-
}
|
|
77
|
-
return e !== e && t !== t;
|
|
78
|
-
},
|
|
79
|
-
resolveFieldData(e, t) {
|
|
80
|
-
if (e && Object.keys(e).length && t) {
|
|
81
|
-
if (t.indexOf(".") === -1)
|
|
82
|
-
return e[t];
|
|
83
|
-
{
|
|
84
|
-
const n = t.split(".");
|
|
85
|
-
let o = e;
|
|
86
|
-
for (let r = 0, l = n.length; r < l; ++r) {
|
|
87
|
-
if (e == null)
|
|
88
|
-
return null;
|
|
89
|
-
o = o[n[r]];
|
|
90
|
-
}
|
|
91
|
-
return o;
|
|
92
|
-
}
|
|
93
|
-
} else
|
|
94
|
-
return null;
|
|
95
|
-
},
|
|
96
|
-
isFunction(e) {
|
|
97
|
-
return !!(e && e.constructor && e.call && e.apply);
|
|
98
|
-
},
|
|
99
|
-
findIndexInList(e, t) {
|
|
100
|
-
let n = -1;
|
|
101
|
-
if (t) {
|
|
102
|
-
for (let o = 0; o < t.length; o++)
|
|
103
|
-
if (this.equals(t[o], e)) {
|
|
104
|
-
n = o;
|
|
105
|
-
break;
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
return n;
|
|
109
|
-
},
|
|
110
|
-
contains(e, t) {
|
|
111
|
-
if (e != null && t && t.length) {
|
|
112
|
-
for (const n of t)
|
|
113
|
-
if (this.equals(e, n))
|
|
114
|
-
return !0;
|
|
115
|
-
}
|
|
116
|
-
return !1;
|
|
117
|
-
},
|
|
118
|
-
isEmpty(e) {
|
|
119
|
-
return e == null || e === "" || Array.isArray(e) && e.length === 0 || !(e instanceof Date) && typeof e == "object" && Object.keys(e).length === 0;
|
|
120
|
-
},
|
|
121
|
-
isNotEmpty(e) {
|
|
122
|
-
return !this.isEmpty(e);
|
|
123
|
-
},
|
|
124
|
-
pickBy(e, t) {
|
|
125
|
-
return Object.fromEntries(
|
|
126
|
-
Object.entries(e).filter(([n]) => t(n))
|
|
127
|
-
);
|
|
128
|
-
},
|
|
129
|
-
removeFromList(e, t) {
|
|
130
|
-
const n = this.findIndexInList(e, t);
|
|
131
|
-
return n > -1 ? t.filter((o, r) => r !== n) : t;
|
|
132
|
-
},
|
|
133
|
-
isString(e) {
|
|
134
|
-
return typeof e == "string" || e instanceof String;
|
|
135
|
-
},
|
|
136
|
-
propsToObject(e) {
|
|
137
|
-
return Object.keys(e).reduce((t, n) => {
|
|
138
|
-
var o, r, l, a, u;
|
|
139
|
-
return this.isFunction(e[n]) ? t[n] = e[n]() : Array.isArray(e[n]) ? t[n] = e[n][0]() : (o = e[n]) != null && o.type && (Array.isArray(e[n].type) ? t[n] = ((r = e[n]) == null ? void 0 : r.default) || ((l = e[n]) == null ? void 0 : l.type[0]()) : t[n] = ((a = e[n]) == null ? void 0 : a.default) || ((u = e[n]) == null ? void 0 : u.type())), t;
|
|
140
|
-
}, {});
|
|
141
|
-
},
|
|
142
|
-
filterArray(e, t, n) {
|
|
143
|
-
return e.filter((o) => t.some((r) => typeof r == "string" ? o[n] == r : this.equals(
|
|
144
|
-
o[n],
|
|
145
|
-
r[n]
|
|
146
|
-
)));
|
|
147
|
-
},
|
|
148
|
-
kebabCase(e) {
|
|
149
|
-
var t, n;
|
|
150
|
-
if (e)
|
|
151
|
-
return (n = (t = e.match(
|
|
152
|
-
/[A-Z]{2,}(?=[A-Z][a-z]+[0-9]*|\b)|[A-Z]?[a-z]+[0-9]*|[A-Z]|[0-9]+/g
|
|
153
|
-
)) == null ? void 0 : t.join("-")) == null ? void 0 : n.toLowerCase();
|
|
154
|
-
}
|
|
155
|
-
}, ne = {
|
|
156
|
-
color: String,
|
|
157
|
-
width: {
|
|
158
|
-
type: [String, Number]
|
|
159
|
-
},
|
|
160
|
-
height: {
|
|
161
|
-
type: [String, Number]
|
|
162
|
-
},
|
|
163
|
-
name: {
|
|
164
|
-
type: String,
|
|
165
|
-
required: !0
|
|
166
|
-
},
|
|
167
|
-
provider: {
|
|
168
|
-
type: String
|
|
169
|
-
},
|
|
170
|
-
prefix: {
|
|
171
|
-
type: String,
|
|
172
|
-
default: "normal"
|
|
173
|
-
},
|
|
174
|
-
src: String,
|
|
175
|
-
horizontalFlip: Boolean,
|
|
176
|
-
verticalFlip: Boolean,
|
|
177
|
-
flip: String,
|
|
178
|
-
mode: String,
|
|
179
|
-
inline: Boolean,
|
|
180
|
-
rotate: [Number, String],
|
|
181
|
-
onLoad: Function,
|
|
182
|
-
svg: String,
|
|
183
|
-
modifiers: {
|
|
184
|
-
type: [String, Array]
|
|
185
|
-
}
|
|
186
|
-
};
|
|
187
|
-
function x(e, t) {
|
|
188
|
-
const n = { [`${e}`]: !0 };
|
|
189
|
-
return {
|
|
190
|
-
bemCssClasses: f(() => Object.keys(t).reduce((r, l) => {
|
|
191
|
-
const a = y(t[l]) || !1;
|
|
192
|
-
if (!a)
|
|
193
|
-
return r;
|
|
194
|
-
if (l === "modifiers") {
|
|
195
|
-
const u = Array.isArray(a) ? a : [a];
|
|
196
|
-
return {
|
|
197
|
-
...r,
|
|
198
|
-
...u.reduce(
|
|
199
|
-
(c, v) => ({
|
|
200
|
-
...c,
|
|
201
|
-
[`${e}--${h.kebabCase(
|
|
202
|
-
v
|
|
203
|
-
)}`]: !0
|
|
204
|
-
}),
|
|
205
|
-
{}
|
|
206
|
-
)
|
|
207
|
-
};
|
|
208
|
-
} else
|
|
209
|
-
return {
|
|
210
|
-
...r,
|
|
211
|
-
[`${e}--${h.kebabCase(l)}`]: a
|
|
212
|
-
};
|
|
213
|
-
}, n) || {})
|
|
214
|
-
};
|
|
215
|
-
}
|
|
216
|
-
const I = /* @__PURE__ */ D({
|
|
217
|
-
__name: "VvIcon",
|
|
218
|
-
props: ne,
|
|
219
|
-
setup(e) {
|
|
220
|
-
const t = e, n = T(!0), { modifiers: o } = q(t), r = F("ds"), { bemCssClasses: l } = x("vv-icon", {
|
|
221
|
-
modifiers: o
|
|
222
|
-
}), a = f(() => t.provider || (r == null ? void 0 : r.provider)), u = f(() => {
|
|
223
|
-
const s = t.name || "", i = `@${a.value}:${t.prefix}:${t.name}`;
|
|
224
|
-
return j(s) ? s : j(i) ? i : (r == null ? void 0 : r.iconsCollections.find((d) => {
|
|
225
|
-
const g = `@${a.value}:${d.prefix}:${s}`;
|
|
226
|
-
if (j(g))
|
|
227
|
-
return g;
|
|
228
|
-
})) || s;
|
|
229
|
-
});
|
|
230
|
-
function c(s) {
|
|
231
|
-
let i = null;
|
|
232
|
-
if (typeof window > "u") {
|
|
233
|
-
const { JSDOM: S } = require("jsdom");
|
|
234
|
-
i = new S().window;
|
|
235
|
-
}
|
|
236
|
-
return (i ? new i.DOMParser() : new window.DOMParser()).parseFromString(s, "text/html").querySelector("svg");
|
|
237
|
-
}
|
|
238
|
-
function v(s) {
|
|
239
|
-
const i = c(s), d = (i == null ? void 0 : i.innerHTML.trim()) || "";
|
|
240
|
-
i && d && ee(`@${a.value}:${t.prefix}:${t.name}`, {
|
|
241
|
-
body: d,
|
|
242
|
-
height: i.viewBox.baseVal.height,
|
|
243
|
-
width: i.viewBox.baseVal.width
|
|
244
|
-
});
|
|
245
|
-
}
|
|
246
|
-
return r && (t.src ? (n.value = !1, r.fetchIcon(t.src).then((s) => {
|
|
247
|
-
s && (v(s), n.value = !0);
|
|
248
|
-
}).catch((s) => {
|
|
249
|
-
throw new Error(`During fetch icon: ${s == null ? void 0 : s.message}`);
|
|
250
|
-
})) : t.svg && v(t.svg)), (s, i) => n.value ? (b(), O(y(Y), P({
|
|
251
|
-
key: 0,
|
|
252
|
-
class: y(l)
|
|
253
|
-
}, {
|
|
254
|
-
...s.$props,
|
|
255
|
-
provider: y(a),
|
|
256
|
-
icon: y(u)
|
|
257
|
-
}), null, 16, ["class"])) : C("", !0);
|
|
258
|
-
}
|
|
259
|
-
});
|
|
260
|
-
function re(e) {
|
|
261
|
-
const t = F(e, void 0);
|
|
262
|
-
console.log("Inject - ", t);
|
|
263
|
-
const n = f(() => h.isNotEmpty(t));
|
|
264
|
-
function o(r, l, a) {
|
|
265
|
-
if (t != null && t.value) {
|
|
266
|
-
const u = y(t.value)[r];
|
|
267
|
-
return f({
|
|
268
|
-
get() {
|
|
269
|
-
return u == null ? void 0 : u.value;
|
|
270
|
-
},
|
|
271
|
-
set(c) {
|
|
272
|
-
u.value = c;
|
|
273
|
-
}
|
|
274
|
-
});
|
|
275
|
-
} else {
|
|
276
|
-
const u = Z(l, r);
|
|
277
|
-
return f({
|
|
278
|
-
get() {
|
|
279
|
-
return u.value;
|
|
280
|
-
},
|
|
281
|
-
set(c) {
|
|
282
|
-
a && a(`update:${r}`, c);
|
|
283
|
-
}
|
|
284
|
-
});
|
|
285
|
-
}
|
|
286
|
-
}
|
|
287
|
-
return {
|
|
288
|
-
group: t,
|
|
289
|
-
isInGroup: n,
|
|
290
|
-
getGroupOrLocalRef: o
|
|
291
|
-
};
|
|
292
|
-
}
|
|
293
|
-
const oe = Symbol("VV_BUTTON_GROUP");
|
|
294
|
-
function ie(e) {
|
|
295
|
-
const { group: t, isInGroup: n, getGroupOrLocalRef: o } = re(oe), { modifiers: r, fullBleed: l, iconPosition: a, icon: u, label: c, block: v, selected: s } = q(e), i = o("modelValue", e), d = o("disabled", e), g = o("toggle", e), p = o("rounded", e), S = o("action", e), $ = o("actionQuiet", e);
|
|
296
|
-
return {
|
|
297
|
-
modelValue: i,
|
|
298
|
-
disabled: d,
|
|
299
|
-
toggle: g,
|
|
300
|
-
isInGroup: n,
|
|
301
|
-
group: t,
|
|
302
|
-
modifiers: r,
|
|
303
|
-
action: S,
|
|
304
|
-
actionQuiet: $,
|
|
305
|
-
selected: s,
|
|
306
|
-
block: v,
|
|
307
|
-
rounded: p,
|
|
308
|
-
fullBleed: l,
|
|
309
|
-
iconPosition: a,
|
|
310
|
-
icon: u,
|
|
311
|
-
label: c
|
|
312
|
-
};
|
|
313
|
-
}
|
|
314
|
-
const se = {
|
|
315
|
-
key: 1,
|
|
316
|
-
class: "vv-button__label"
|
|
317
|
-
}, le = {
|
|
318
|
-
key: 1,
|
|
319
|
-
class: "vv-button__label"
|
|
320
|
-
}, fe = /* @__PURE__ */ D({
|
|
321
|
-
__name: "VvButton",
|
|
322
|
-
props: te,
|
|
323
|
-
setup(e) {
|
|
324
|
-
const t = e, n = z(), o = (n == null ? void 0 : n.name) || X(), {
|
|
325
|
-
modifiers: r,
|
|
326
|
-
action: l,
|
|
327
|
-
actionQuiet: a,
|
|
328
|
-
block: u,
|
|
329
|
-
rounded: c,
|
|
330
|
-
fullBleed: v,
|
|
331
|
-
iconPosition: s,
|
|
332
|
-
icon: i,
|
|
333
|
-
label: d,
|
|
334
|
-
modelValue: g,
|
|
335
|
-
disabled: p,
|
|
336
|
-
toggle: S,
|
|
337
|
-
isInGroup: $
|
|
338
|
-
} = ie(t), E = f(() => {
|
|
339
|
-
switch (!0) {
|
|
340
|
-
case p.value:
|
|
341
|
-
return k.button;
|
|
342
|
-
case t.to !== void 0:
|
|
343
|
-
return k.routerLink;
|
|
344
|
-
case t.href !== void 0:
|
|
345
|
-
return k.a;
|
|
346
|
-
default:
|
|
347
|
-
return k.button;
|
|
348
|
-
}
|
|
349
|
-
}), V = f(() => S.value ? Array.isArray(g.value) ? h.contains(o, g.value) : h.equals(o, g.value) : t.active), N = f(() => S.value ? Array.isArray(g.value) ? h.contains(o, g.value) : h.equals(o, g.value) : t.selected), { bemCssClasses: G } = x("vv-button", {
|
|
350
|
-
modifiers: r,
|
|
351
|
-
active: V,
|
|
352
|
-
action: l,
|
|
353
|
-
actionQuiet: a,
|
|
354
|
-
selected: N,
|
|
355
|
-
block: u,
|
|
356
|
-
rounded: c,
|
|
357
|
-
fullBleed: v,
|
|
358
|
-
disabled: p,
|
|
359
|
-
reverse: f(
|
|
360
|
-
() => [_.right, _.bottom].includes(
|
|
361
|
-
s.value
|
|
362
|
-
)
|
|
363
|
-
),
|
|
364
|
-
column: f(
|
|
365
|
-
() => [_.top, _.bottom].includes(
|
|
366
|
-
s.value
|
|
367
|
-
)
|
|
368
|
-
),
|
|
369
|
-
iconOnly: f(() => (i == null ? void 0 : i.value) && !(d != null && d.value))
|
|
370
|
-
}), M = f(() => ({
|
|
371
|
-
...U.value,
|
|
372
|
-
"aria-label": t.label || n["aria-label"],
|
|
373
|
-
"aria-disabled": p.value,
|
|
374
|
-
role: "button",
|
|
375
|
-
class: G.value,
|
|
376
|
-
to: t.to
|
|
377
|
-
})), U = f(() => {
|
|
378
|
-
const m = E.value === k.a;
|
|
379
|
-
let B = {};
|
|
380
|
-
return m && (B = p.value ? {
|
|
381
|
-
href: "javascript:;"
|
|
382
|
-
} : {
|
|
383
|
-
target: t.target,
|
|
384
|
-
href: t.href
|
|
385
|
-
}), B;
|
|
386
|
-
});
|
|
387
|
-
function Q() {
|
|
388
|
-
$.value && (g.value = o);
|
|
389
|
-
}
|
|
390
|
-
return (m, B) => (b(), O(H(y(E)), P(y(M), { onClickPassive: Q }), {
|
|
391
|
-
default: J(() => [
|
|
392
|
-
A(m.$slots, "default", {}, () => [
|
|
393
|
-
m.loading ? A(m.$slots, "loading", { key: 0 }, () => [
|
|
394
|
-
m.loadingIcon ? (b(), O(I, {
|
|
395
|
-
key: 0,
|
|
396
|
-
class: "vv-button__loading-icon",
|
|
397
|
-
name: m.loadingIcon
|
|
398
|
-
}, null, 8, ["name"])) : C("", !0),
|
|
399
|
-
m.loadingLabel ? (b(), w("span", se, L(m.loadingLabel), 1)) : C("", !0)
|
|
400
|
-
]) : (b(), w(K, { key: 1 }, [
|
|
401
|
-
A(m.$slots, "before"),
|
|
402
|
-
y(i) ? (b(), O(I, {
|
|
403
|
-
key: 0,
|
|
404
|
-
class: "vv-button__icon",
|
|
405
|
-
name: y(i)
|
|
406
|
-
}, null, 8, ["name"])) : C("", !0),
|
|
407
|
-
y(d) ? (b(), w("span", le, [
|
|
408
|
-
A(m.$slots, "label", {}, () => [
|
|
409
|
-
W(L(y(d)), 1)
|
|
410
|
-
])
|
|
411
|
-
])) : C("", !0),
|
|
412
|
-
A(m.$slots, "after")
|
|
413
|
-
], 64))
|
|
414
|
-
])
|
|
415
|
-
]),
|
|
416
|
-
_: 3
|
|
417
|
-
}, 16));
|
|
418
|
-
}
|
|
419
|
-
});
|
|
420
|
-
export {
|
|
421
|
-
fe as default
|
|
422
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(function(n,B){typeof exports=="object"&&typeof module<"u"?module.exports=B(require("vue"),require("uuid"),require("@iconify/vue")):typeof define=="function"&&define.amd?define(["vue","uuid","@iconify/vue"],B):(n=typeof globalThis<"u"?globalThis:n||self,n.VvButton=B(n.vue,n.uuid,n.vue$1))})(this,function(n,B,_){"use strict";var b=(e=>(e.left="left",e.right="right",e.top="top",e.bottom="bottom",e))(b||{}),k=(e=>(e.nuxtLink="nuxt-link",e.routerLink="router-link",e.a="a",e.button="button",e))(k||{}),O=(e=>(e._blank="_blank",e._self="_self",e._parent="_parent",e._top="_top",e))(O||{});const j={icon:String,iconPosition:{type:String,default:"left",validator:e=>e in b},label:String,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:e=>e in O},block:Boolean,active:Boolean,rounded:Boolean,disabled:Boolean,fullBleed:Boolean,action:Boolean,actionQuiet:Boolean,selected:Boolean,modifiers:[Array,String]},y={equals(e,t,r){return r?this.resolveFieldData(e,r)===this.resolveFieldData(t,r):this.deepEquals(e,t)},deepEquals(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){const r=Array.isArray(e),i=Array.isArray(t);let o,c,a;if(r&&i){if(c=e.length,c!=t.length)return!1;for(o=c;o--!==0;)if(!this.deepEquals(e[o],t[o]))return!1;return!0}if(r!=i)return!1;const u=e instanceof Date,f=t instanceof Date;if(u!=f)return!1;if(u&&f)return e.getTime()==t.getTime();const p=e instanceof RegExp,l=t instanceof RegExp;if(p!=l)return!1;if(p&&l)return e.toString()==t.toString();const s=Object.keys(e);if(c=s.length,c!==Object.keys(t).length)return!1;for(o=c;o--!==0;)if(!Object.prototype.hasOwnProperty.call(t,s[o]))return!1;for(o=c;o--!==0;)if(a=s[o],!this.deepEquals(e[a],t[a]))return!1;return!0}return e!==e&&t!==t},resolveFieldData(e,t){if(e&&Object.keys(e).length&&t){if(t.indexOf(".")===-1)return e[t];{const r=t.split(".");let i=e;for(let o=0,c=r.length;o<c;++o){if(e==null)return null;i=i[r[o]]}return i}}else return null},isFunction(e){return!!(e&&e.constructor&&e.call&&e.apply)},findIndexInList(e,t){let r=-1;if(t){for(let i=0;i<t.length;i++)if(this.equals(t[i],e)){r=i;break}}return r},contains(e,t){if(e!=null&&t&&t.length){for(const r of t)if(this.equals(e,r))return!0}return!1},isEmpty(e){return e==null||e===""||Array.isArray(e)&&e.length===0||!(e instanceof Date)&&typeof e=="object"&&Object.keys(e).length===0},isNotEmpty(e){return!this.isEmpty(e)},pickBy(e,t){return Object.fromEntries(Object.entries(e).filter(([r])=>t(r)))},removeFromList(e,t){const r=this.findIndexInList(e,t);return r>-1?t.filter((i,o)=>o!==r):t},isString(e){return typeof e=="string"||e instanceof String},propsToObject(e){return Object.keys(e).reduce((t,r)=>{var i,o,c,a,u;return this.isFunction(e[r])?t[r]=e[r]():Array.isArray(e[r])?t[r]=e[r][0]():(i=e[r])!=null&&i.type&&(Array.isArray(e[r].type)?t[r]=((o=e[r])==null?void 0:o.default)||((c=e[r])==null?void 0:c.type[0]()):t[r]=((a=e[r])==null?void 0:a.default)||((u=e[r])==null?void 0:u.type())),t},{})},filterArray(e,t,r){return e.filter(i=>t.some(o=>typeof o=="string"?i[r]==o:this.equals(i[r],o[r])))},kebabCase(e){var t,r;if(e)return(r=(t=e.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:t.join("-"))==null?void 0:r.toLowerCase()}},q={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]}};function w(e,t){const r={[`${e}`]:!0};return{bemCssClasses:n.computed(()=>Object.keys(t).reduce((o,c)=>{const a=n.unref(t[c])||!1;if(!a)return o;if(c==="modifiers"){const u=Array.isArray(a)?a:[a];return{...o,...u.reduce((f,p)=>({...f,[`${e}--${y.kebabCase(p)}`]:!0}),{})}}else return{...o,[`${e}--${y.kebabCase(c)}`]:a}},r)||{})}}const E=n.defineComponent({__name:"VvIcon",props:q,setup(e){const t=e,r=n.ref(!0),{modifiers:i}=n.toRefs(t),o=n.inject("ds"),{bemCssClasses:c}=w("vv-icon",{modifiers:i}),a=n.computed(()=>t.provider||(o==null?void 0:o.provider)),u=n.computed(()=>{const l=t.name||"",s=`@${a.value}:${t.prefix}:${t.name}`;return _.iconExists(l)?l:_.iconExists(s)?s:(o==null?void 0:o.iconsCollections.find(d=>{const m=`@${a.value}:${d.prefix}:${l}`;if(_.iconExists(m))return m}))||l});function f(l){let s=null;if(typeof window>"u"){const{JSDOM:S}=require("jsdom");s=new S().window}return(s?new s.DOMParser:new window.DOMParser).parseFromString(l,"text/html").querySelector("svg")}function p(l){const s=f(l),d=(s==null?void 0:s.innerHTML.trim())||"";s&&d&&_.addIcon(`@${a.value}:${t.prefix}:${t.name}`,{body:d,height:s.viewBox.baseVal.height,width:s.viewBox.baseVal.width})}return o&&(t.src?(r.value=!1,o.fetchIcon(t.src).then(l=>{l&&(p(l),r.value=!0)}).catch(l=>{throw new Error(`During fetch icon: ${l==null?void 0:l.message}`)})):t.svg&&p(t.svg)),(l,s)=>r.value?(n.openBlock(),n.createBlock(n.unref(_.Icon),n.mergeProps({key:0,class:n.unref(c)},{...l.$props,provider:n.unref(a),icon:n.unref(u)}),null,16,["class"])):n.createCommentVNode("",!0)}});function L(e){const t=n.inject(e,void 0);console.log("Inject - ",t);const r=n.computed(()=>y.isNotEmpty(t));function i(o,c,a){if(t!=null&&t.value){const u=n.unref(t.value)[o];return n.computed({get(){return u==null?void 0:u.value},set(f){u.value=f}})}else{const u=n.toRef(c,o);return n.computed({get(){return u.value},set(f){a&&a(`update:${o}`,f)}})}}return{group:t,isInGroup:r,getGroupOrLocalRef:i}}const D=Symbol("VV_BUTTON_GROUP");function I(e){const{group:t,isInGroup:r,getGroupOrLocalRef:i}=L(D),{modifiers:o,fullBleed:c,iconPosition:a,icon:u,label:f,block:p,selected:l}=n.toRefs(e),s=i("modelValue",e),d=i("disabled",e),m=i("toggle",e),h=i("rounded",e),S=i("action",e),C=i("actionQuiet",e);return{modelValue:s,disabled:d,toggle:m,isInGroup:r,group:t,modifiers:o,action:S,actionQuiet:C,selected:l,block:p,rounded:h,fullBleed:c,iconPosition:a,icon:u,label:f}}const V={key:1,class:"vv-button__label"},x={key:1,class:"vv-button__label"};return n.defineComponent({__name:"VvButton",props:j,setup(e){const t=e,r=n.useAttrs(),i=(r==null?void 0:r.name)||B.v4(),{modifiers:o,action:c,actionQuiet:a,block:u,rounded:f,fullBleed:p,iconPosition:l,icon:s,label:d,modelValue:m,disabled:h,toggle:S,isInGroup:C}=I(t),$=n.computed(()=>{switch(!0){case h.value:return k.button;case t.to!==void 0:return k.routerLink;case t.href!==void 0:return k.a;default:return k.button}}),N=n.computed(()=>S.value?Array.isArray(m.value)?y.contains(i,m.value):y.equals(i,m.value):t.active),P=n.computed(()=>S.value?Array.isArray(m.value)?y.contains(i,m.value):y.equals(i,m.value):t.selected),{bemCssClasses:R}=w("vv-button",{modifiers:o,active:N,action:c,actionQuiet:a,selected:P,block:u,rounded:f,fullBleed:p,disabled:h,reverse:n.computed(()=>[b.right,b.bottom].includes(l.value)),column:n.computed(()=>[b.top,b.bottom].includes(l.value)),iconOnly:n.computed(()=>(s==null?void 0:s.value)&&!(d!=null&&d.value))}),F=n.computed(()=>({...G.value,"aria-label":t.label||r["aria-label"],"aria-disabled":h.value,role:"button",class:R.value,to:t.to})),G=n.computed(()=>{const g=$.value===k.a;let A={};return g&&(A=h.value?{href:"javascript:;"}:{target:t.target,href:t.href}),A});function M(){C.value&&(m.value=i)}return(g,A)=>(n.openBlock(),n.createBlock(n.resolveDynamicComponent(n.unref($)),n.mergeProps(n.unref(F),{onClickPassive:M}),{default:n.withCtx(()=>[n.renderSlot(g.$slots,"default",{},()=>[g.loading?n.renderSlot(g.$slots,"loading",{key:0},()=>[g.loadingIcon?(n.openBlock(),n.createBlock(E,{key:0,class:"vv-button__loading-icon",name:g.loadingIcon},null,8,["name"])):n.createCommentVNode("",!0),g.loadingLabel?(n.openBlock(),n.createElementBlock("span",V,n.toDisplayString(g.loadingLabel),1)):n.createCommentVNode("",!0)]):(n.openBlock(),n.createElementBlock(n.Fragment,{key:1},[n.renderSlot(g.$slots,"before"),n.unref(s)?(n.openBlock(),n.createBlock(E,{key:0,class:"vv-button__icon",name:n.unref(s)},null,8,["name"])):n.createCommentVNode("",!0),n.unref(d)?(n.openBlock(),n.createElementBlock("span",x,[n.renderSlot(g.$slots,"label",{},()=>[n.createTextVNode(n.toDisplayString(n.unref(d)),1)])])):n.createCommentVNode("",!0),n.renderSlot(g.$slots,"after")],64))])]),_:3},16))}})});
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
export declare const VvButtonGroupProps: {
|
|
2
|
-
disabled: {
|
|
3
|
-
type: BooleanConstructor;
|
|
4
|
-
default: boolean;
|
|
5
|
-
};
|
|
6
|
-
/**
|
|
7
|
-
* True = show buttons vertically
|
|
8
|
-
*/
|
|
9
|
-
vertical: {
|
|
10
|
-
type: BooleanConstructor;
|
|
11
|
-
default: boolean;
|
|
12
|
-
};
|
|
13
|
-
/**
|
|
14
|
-
* True = no padding between buttons
|
|
15
|
-
*/
|
|
16
|
-
compact: {
|
|
17
|
-
type: BooleanConstructor;
|
|
18
|
-
default: boolean;
|
|
19
|
-
};
|
|
20
|
-
/**
|
|
21
|
-
* True = il button group si comporterà come un toggle, materrà attivo l'ultimo pulsante cliccato.
|
|
22
|
-
*/
|
|
23
|
-
toggle: {
|
|
24
|
-
type: BooleanConstructor;
|
|
25
|
-
default: boolean;
|
|
26
|
-
};
|
|
27
|
-
/**
|
|
28
|
-
* True = display as block
|
|
29
|
-
*/
|
|
30
|
-
block: {
|
|
31
|
-
type: BooleanConstructor;
|
|
32
|
-
default: boolean;
|
|
33
|
-
};
|
|
34
|
-
/**
|
|
35
|
-
* True = display btn-broup as rounded (first and last child .vv-button)
|
|
36
|
-
*/
|
|
37
|
-
rounded: {
|
|
38
|
-
type: BooleanConstructor;
|
|
39
|
-
default: boolean;
|
|
40
|
-
};
|
|
41
|
-
/**
|
|
42
|
-
* Button action mode
|
|
43
|
-
*/
|
|
44
|
-
action: BooleanConstructor;
|
|
45
|
-
/**
|
|
46
|
-
* Button action mode
|
|
47
|
-
*/
|
|
48
|
-
actionQuiet: BooleanConstructor;
|
|
49
|
-
/**
|
|
50
|
-
* Active button (name)
|
|
51
|
-
*/
|
|
52
|
-
modelValue: {
|
|
53
|
-
type: StringConstructor;
|
|
54
|
-
default: undefined;
|
|
55
|
-
};
|
|
56
|
-
};
|
|
57
|
-
export declare const VvButtonGroupEvents: string[];
|
|
@@ -1,210 +0,0 @@
|
|
|
1
|
-
import { isRef as h, provide as A, computed as y, unref as p, defineComponent as B, toRefs as O, openBlock as k, createElementBlock as b, normalizeClass as C, renderSlot as E } from "vue";
|
|
2
|
-
import { useVModel as j } from "@vueuse/core";
|
|
3
|
-
const _ = {
|
|
4
|
-
disabled: { type: Boolean, default: !1 },
|
|
5
|
-
vertical: { type: Boolean, default: !1 },
|
|
6
|
-
compact: { type: Boolean, default: !1 },
|
|
7
|
-
toggle: { type: Boolean, default: !1 },
|
|
8
|
-
block: { type: Boolean, default: !1 },
|
|
9
|
-
rounded: { type: Boolean, default: !1 },
|
|
10
|
-
action: Boolean,
|
|
11
|
-
actionQuiet: Boolean,
|
|
12
|
-
modelValue: { type: String, default: void 0 }
|
|
13
|
-
}, q = ["update:modelValue"], x = Symbol("VV_BUTTON_GROUP");
|
|
14
|
-
function R(e) {
|
|
15
|
-
if (Object.keys(e).some(
|
|
16
|
-
(t) => t !== "key" && !h(e[t])
|
|
17
|
-
))
|
|
18
|
-
throw Error("One or more groupState props aren't ref.");
|
|
19
|
-
console.log("PRovide - ", e), A(
|
|
20
|
-
e.key,
|
|
21
|
-
y(() => e)
|
|
22
|
-
);
|
|
23
|
-
}
|
|
24
|
-
const d = {
|
|
25
|
-
equals(e, t, r) {
|
|
26
|
-
return r ? this.resolveFieldData(e, r) === this.resolveFieldData(t, r) : this.deepEquals(e, t);
|
|
27
|
-
},
|
|
28
|
-
deepEquals(e, t) {
|
|
29
|
-
if (e === t)
|
|
30
|
-
return !0;
|
|
31
|
-
if (e && t && typeof e == "object" && typeof t == "object") {
|
|
32
|
-
const r = Array.isArray(e), s = Array.isArray(t);
|
|
33
|
-
let n, o, i;
|
|
34
|
-
if (r && s) {
|
|
35
|
-
if (o = e.length, o != t.length)
|
|
36
|
-
return !1;
|
|
37
|
-
for (n = o; n-- !== 0; )
|
|
38
|
-
if (!this.deepEquals(e[n], t[n]))
|
|
39
|
-
return !1;
|
|
40
|
-
return !0;
|
|
41
|
-
}
|
|
42
|
-
if (r != s)
|
|
43
|
-
return !1;
|
|
44
|
-
const l = e instanceof Date, f = t instanceof Date;
|
|
45
|
-
if (l != f)
|
|
46
|
-
return !1;
|
|
47
|
-
if (l && f)
|
|
48
|
-
return e.getTime() == t.getTime();
|
|
49
|
-
const u = e instanceof RegExp, a = t instanceof RegExp;
|
|
50
|
-
if (u != a)
|
|
51
|
-
return !1;
|
|
52
|
-
if (u && a)
|
|
53
|
-
return e.toString() == t.toString();
|
|
54
|
-
const c = Object.keys(e);
|
|
55
|
-
if (o = c.length, o !== Object.keys(t).length)
|
|
56
|
-
return !1;
|
|
57
|
-
for (n = o; n-- !== 0; )
|
|
58
|
-
if (!Object.prototype.hasOwnProperty.call(t, c[n]))
|
|
59
|
-
return !1;
|
|
60
|
-
for (n = o; n-- !== 0; )
|
|
61
|
-
if (i = c[n], !this.deepEquals(e[i], t[i]))
|
|
62
|
-
return !1;
|
|
63
|
-
return !0;
|
|
64
|
-
}
|
|
65
|
-
return e !== e && t !== t;
|
|
66
|
-
},
|
|
67
|
-
resolveFieldData(e, t) {
|
|
68
|
-
if (e && Object.keys(e).length && t) {
|
|
69
|
-
if (t.indexOf(".") === -1)
|
|
70
|
-
return e[t];
|
|
71
|
-
{
|
|
72
|
-
const r = t.split(".");
|
|
73
|
-
let s = e;
|
|
74
|
-
for (let n = 0, o = r.length; n < o; ++n) {
|
|
75
|
-
if (e == null)
|
|
76
|
-
return null;
|
|
77
|
-
s = s[r[n]];
|
|
78
|
-
}
|
|
79
|
-
return s;
|
|
80
|
-
}
|
|
81
|
-
} else
|
|
82
|
-
return null;
|
|
83
|
-
},
|
|
84
|
-
isFunction(e) {
|
|
85
|
-
return !!(e && e.constructor && e.call && e.apply);
|
|
86
|
-
},
|
|
87
|
-
findIndexInList(e, t) {
|
|
88
|
-
let r = -1;
|
|
89
|
-
if (t) {
|
|
90
|
-
for (let s = 0; s < t.length; s++)
|
|
91
|
-
if (this.equals(t[s], e)) {
|
|
92
|
-
r = s;
|
|
93
|
-
break;
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
return r;
|
|
97
|
-
},
|
|
98
|
-
contains(e, t) {
|
|
99
|
-
if (e != null && t && t.length) {
|
|
100
|
-
for (const r of t)
|
|
101
|
-
if (this.equals(e, r))
|
|
102
|
-
return !0;
|
|
103
|
-
}
|
|
104
|
-
return !1;
|
|
105
|
-
},
|
|
106
|
-
isEmpty(e) {
|
|
107
|
-
return e == null || e === "" || Array.isArray(e) && e.length === 0 || !(e instanceof Date) && typeof e == "object" && Object.keys(e).length === 0;
|
|
108
|
-
},
|
|
109
|
-
isNotEmpty(e) {
|
|
110
|
-
return !this.isEmpty(e);
|
|
111
|
-
},
|
|
112
|
-
pickBy(e, t) {
|
|
113
|
-
return Object.fromEntries(
|
|
114
|
-
Object.entries(e).filter(([r]) => t(r))
|
|
115
|
-
);
|
|
116
|
-
},
|
|
117
|
-
removeFromList(e, t) {
|
|
118
|
-
const r = this.findIndexInList(e, t);
|
|
119
|
-
return r > -1 ? t.filter((s, n) => n !== r) : t;
|
|
120
|
-
},
|
|
121
|
-
isString(e) {
|
|
122
|
-
return typeof e == "string" || e instanceof String;
|
|
123
|
-
},
|
|
124
|
-
propsToObject(e) {
|
|
125
|
-
return Object.keys(e).reduce((t, r) => {
|
|
126
|
-
var s, n, o, i, l;
|
|
127
|
-
return this.isFunction(e[r]) ? t[r] = e[r]() : Array.isArray(e[r]) ? t[r] = e[r][0]() : (s = e[r]) != null && s.type && (Array.isArray(e[r].type) ? t[r] = ((n = e[r]) == null ? void 0 : n.default) || ((o = e[r]) == null ? void 0 : o.type[0]()) : t[r] = ((i = e[r]) == null ? void 0 : i.default) || ((l = e[r]) == null ? void 0 : l.type())), t;
|
|
128
|
-
}, {});
|
|
129
|
-
},
|
|
130
|
-
filterArray(e, t, r) {
|
|
131
|
-
return e.filter((s) => t.some((n) => typeof n == "string" ? s[r] == n : this.equals(
|
|
132
|
-
s[r],
|
|
133
|
-
n[r]
|
|
134
|
-
)));
|
|
135
|
-
},
|
|
136
|
-
kebabCase(e) {
|
|
137
|
-
var t, r;
|
|
138
|
-
if (e)
|
|
139
|
-
return (r = (t = e.match(
|
|
140
|
-
/[A-Z]{2,}(?=[A-Z][a-z]+[0-9]*|\b)|[A-Z]?[a-z]+[0-9]*|[A-Z]|[0-9]+/g
|
|
141
|
-
)) == null ? void 0 : t.join("-")) == null ? void 0 : r.toLowerCase();
|
|
142
|
-
}
|
|
143
|
-
};
|
|
144
|
-
function T(e, t) {
|
|
145
|
-
const r = { [`${e}`]: !0 };
|
|
146
|
-
return {
|
|
147
|
-
bemCssClasses: y(() => Object.keys(t).reduce((n, o) => {
|
|
148
|
-
const i = p(t[o]) || !1;
|
|
149
|
-
if (!i)
|
|
150
|
-
return n;
|
|
151
|
-
if (o === "modifiers") {
|
|
152
|
-
const l = Array.isArray(i) ? i : [i];
|
|
153
|
-
return {
|
|
154
|
-
...n,
|
|
155
|
-
...l.reduce(
|
|
156
|
-
(f, u) => ({
|
|
157
|
-
...f,
|
|
158
|
-
[`${e}--${d.kebabCase(
|
|
159
|
-
u
|
|
160
|
-
)}`]: !0
|
|
161
|
-
}),
|
|
162
|
-
{}
|
|
163
|
-
)
|
|
164
|
-
};
|
|
165
|
-
} else
|
|
166
|
-
return {
|
|
167
|
-
...n,
|
|
168
|
-
[`${e}--${d.kebabCase(o)}`]: i
|
|
169
|
-
};
|
|
170
|
-
}, r) || {})
|
|
171
|
-
};
|
|
172
|
-
}
|
|
173
|
-
const F = /* @__PURE__ */ B({
|
|
174
|
-
__name: "VvButtonGroup",
|
|
175
|
-
props: _,
|
|
176
|
-
emits: q,
|
|
177
|
-
setup(e, { emit: t }) {
|
|
178
|
-
const r = e, s = j(r, "modelValue", t), {
|
|
179
|
-
disabled: n,
|
|
180
|
-
vertical: o,
|
|
181
|
-
compact: i,
|
|
182
|
-
block: l,
|
|
183
|
-
rounded: f,
|
|
184
|
-
toggle: u,
|
|
185
|
-
action: a,
|
|
186
|
-
actionQuiet: c
|
|
187
|
-
} = O(r), { bemCssClasses: m } = T("vv-button-group", {
|
|
188
|
-
vertical: o,
|
|
189
|
-
compact: i,
|
|
190
|
-
block: l
|
|
191
|
-
});
|
|
192
|
-
return R({
|
|
193
|
-
key: x,
|
|
194
|
-
modelValue: s,
|
|
195
|
-
disabled: n,
|
|
196
|
-
toggle: u,
|
|
197
|
-
rounded: f,
|
|
198
|
-
action: a,
|
|
199
|
-
actionQuiet: c
|
|
200
|
-
}), (g, G) => (k(), b("div", {
|
|
201
|
-
class: C(p(m)),
|
|
202
|
-
role: "group"
|
|
203
|
-
}, [
|
|
204
|
-
E(g.$slots, "default")
|
|
205
|
-
], 2));
|
|
206
|
-
}
|
|
207
|
-
});
|
|
208
|
-
export {
|
|
209
|
-
F as default
|
|
210
|
-
};
|