@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
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(function(V,A){typeof exports=="object"&&typeof module<"u"?A(exports,require("@iconify/vue"),require("vue"),require("@vueuse/core"),require("nanoid")):typeof define=="function"&&define.amd?define(["exports","@iconify/vue","vue","@vueuse/core","nanoid"],A):(V=typeof globalThis<"u"?globalThis:V||self,A(V.volver={},V.vue,V.vue$1,V.core,V.nanoid))})(this,function(V,A,e,M,F){"use strict";var yn=Object.defineProperty;var Vn=(V,A,e)=>A in V?yn(V,A,{enumerable:!0,configurable:!0,writable:!0,value:e}):V[A]=e;var ue=(V,A,e)=>(Vn(V,typeof A!="symbol"?A+"":A,e),e);const pe="ds";class Qe{constructor({fetchWithCredentials:o=!1,fetchOptions:t={},iconsCollections:r=[],nuxt:l=!1}={}){ue(this,"fetchOptions");ue(this,"iconsCollections");ue(this,"provider");ue(this,"nuxt");o&&(t={...t,credentials:"include"}),this.provider=pe,this.fetchOptions=t,this.iconsCollections=r,this.iconsCollections.forEach(s=>{this.addCollection(s,this.provider)}),this.nuxt=l}addCollection(o,t){return A.addCollection(o,t)}addIcon(o,t){return A.addIcon(o,t)}addAPIProvider(o,t){return A.addAPIProvider(o,t)}fetchIcon(o,t={cache:"force-cache"}){return new Promise((r,l)=>{fetch(o,{...this.fetchOptions,...t}).catch(s=>l(s)).then(s=>s==null?void 0:s.text()).then(s=>r(s))})}}const $e={install(n,o){const t=new Qe(o);n.config.globalProperties.$ds=t,n.provide(pe,t)}};function Q(n,o,t){return t?me(n,t)===me(o,t):_e(n,o)}function _e(n,o){if(n===o)return!0;if(n&&o&&typeof n=="object"&&typeof o=="object"){const t=Array.isArray(n),r=Array.isArray(o);let l,s,a;if(t&&r){if(s=n.length,s!=o.length)return!1;for(l=s;l--!==0;)if(!_e(n[l],o[l]))return!1;return!0}if(t!=r)return!1;const f=n instanceof Date,d=o instanceof Date;if(f!=d)return!1;if(f&&d)return n.getTime()==o.getTime();const c=n instanceof RegExp,i=o instanceof RegExp;if(c!=i)return!1;if(c&&i)return n.toString()==o.toString();const p=Object.keys(n);if(s=p.length,s!==Object.keys(o).length)return!1;for(l=s;l--!==0;)if(!Object.prototype.hasOwnProperty.call(o,p[l]))return!1;for(l=s;l--!==0;)if(a=p[l],!_e(n[a],o[a]))return!1;return!0}return n!==n&&o!==o}function me(n,o){if(n&&Object.keys(n).length&&o){if(o.indexOf(".")===-1)return n[o];{const t=o.split(".");let r=n;for(let l=0,s=t.length;l<s;++l){if(n==null)return null;r=r[t[l]]}return r}}else return null}function et(n,o){let t=-1;if(o){for(let r=0;r<o.length;r++)if(Q(o[r],n)){t=r;break}}return t}function $(n,o){if(n!=null&&o&&o.length){for(const t of o)if(Q(n,t))return!0}return!1}function G(n){return(o=>o==null||o===""||Array.isArray(o)&&o.length===0||!(o instanceof Date)&&typeof o=="object"&&Object.keys(o).length===0)(e.unref(n))}function tt(n,o){const t=et(n,o);return t>-1?o.filter((r,l)=>l!==t):o}function ot(n){return typeof n=="string"||n instanceof String}function Ne(n){var o,t;if(n)return(t=(o=n.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:o.join("-"))==null?void 0:t.toLowerCase()}function I(n,o){const t={[`${n}`]:!0};return{bemCssClasses:e.computed(()=>Object.keys(o).reduce((l,s)=>{const a=e.unref(o[s])||!1;if(!a)return l;if(s==="modifiers"){const f=Array.isArray(a)?a:a.split(" ");return{...l,...f.reduce((d,c)=>({...d,[`${n}--${Ne(c)}`]:!0}),{})}}else return{...l,[`${n}--${Ne(s)}`]:a}},t)||{})}}function fe(n){const o=e.inject(n,void 0),t=e.computed(()=>!G(o));function r(l,s,a){if(o!=null&&o.value){const d=e.unref(o.value)[l];return e.computed({get(){return d==null?void 0:d.value},set(c){d.value=c}})}const f=e.toRef(s,l);return e.computed({get(){return f.value},set(d){a&&a(`update:${l}`,d)}})}return{group:o,isInGroup:t,getGroupOrLocalRef:r}}const Re="VV_BUTTON_GROUP",Ie="VV_RADIO_GROUP",De="VV_CHECK_GROUP",Oe="VV_ACCORDION_GROUP",nt={name:String,title:String,content:String,modelValue:{type:Boolean,default:void 0},modifiers:[String,Array],disabled:Boolean},lt=["update:modelValue"];function rt(n,o){const{group:t,isInGroup:r,getGroupOrLocalRef:l}=fe(Oe),{title:s,content:a}=e.toRefs(n),f=l("modelValue",n,o),d=l("disabled",n),c=l("collapse",n),i=l("modifiers",n);return{modelValue:f,disabled:d,isInGroup:r,group:t,collapse:c,modifiers:i,title:s,content:a}}const at=["id","open"],st=["aria-controls","aria-expanded"],it=["aria-hidden"],ct={name:"VvAccordion"},Te=e.defineComponent({...ct,props:nt,emits:lt,setup(n,{emit:o}){const t=n,r=e.useAttrs(),l=t.name||(r==null?void 0:r.id)||F.nanoid(),{modifiers:s,title:a,content:f,disabled:d,collapse:c,modelValue:i,isInGroup:p}=rt(t,o),u=e.ref(!1),b=e.computed({get:()=>p.value?c.value&&Array.isArray(i.value)?i.value.includes(l):i.value===l:i.value===void 0?u.value:i.value,set:m=>{if(p.value){if(c.value&&Array.isArray(i.value)){if(m){i.value.push(l);return}i.value=i.value.filter(S=>S!==l);return}i.value=m?l:null;return}if(i.value===void 0&&typeof m=="boolean"){u.value=m;return}i.value=m}}),{bemCssClasses:g}=I("vv-accordion",{modifiers:s,disabled:d}),h=M.useToggle(b);return(m,S)=>(e.openBlock(),e.createElementBlock("details",{id:e.unref(l),class:e.normalizeClass(e.unref(g)),open:e.unref(b),onClick:S[0]||(S[0]=e.withModifiers(P=>e.unref(h)(),["prevent"]))},[e.createElementVNode("summary",{"aria-controls":e.unref(l),"aria-expanded":e.unref(b),class:"vv-collapse__summary"},[e.renderSlot(m.$slots,"summary",e.normalizeProps(e.guardReactiveProps({open:e.unref(b)})),()=>[e.createTextVNode(e.toDisplayString(e.unref(a)),1)])],8,st),e.createElementVNode("div",{"aria-hidden":!e.unref(b),class:"vv-collapse__content"},[e.renderSlot(m.$slots,"details",e.normalizeProps(e.guardReactiveProps({open:e.unref(b)})),()=>[e.createTextVNode(e.toDisplayString(e.unref(f)),1)])],8,it)],10,at))}});function be(n){if(Object.keys(n).some(o=>o!=="key"&&!e.isRef(n[o])))throw Error("One or more groupState props aren't ref.");e.provide(n.key,e.computed(()=>n))}const dt={modelValue:[String,Array],items:{type:Array,default:()=>[]},collapse:Boolean,modifiers:[String,Array],itemModifiers:{type:[String,Array],default:""},disabled:Boolean},ut=["update:modelValue"],pt={name:"VvAccordionGroup"},mt=e.defineComponent({...pt,props:dt,emits:ut,setup(n,{emit:o}){const t=n,{disabled:r,collapse:l,modifiers:s,itemModifiers:a,items:f}=e.toRefs(t);e.watchEffect(()=>{typeof t.modelValue=="string"&&l.value&&console.warn("[VvAccordionGroup]: modelValue is a string but collapse is true.")});const d=e.ref([]),c=e.computed({get:()=>{var u;return t.modelValue!==void 0?l.value?t.modelValue:Array.isArray(t.modelValue)?t.modelValue[0]:t.modelValue:l.value?d.value:(u=d.value)==null?void 0:u[0]},set:u=>{if(t.modelValue!==void 0)return(Array.isArray(t.modelValue)||l.value)&&!Array.isArray(u)&&(u=[u]),o("update:modelValue",u);d.value=Array.isArray(u)?u:[u]}});be({key:Oe,modelValue:c,disabled:r,collapse:l,modifiers:a});const{bemCssClasses:p}=I("vv-accordion-group",{modifiers:s,disabled:r});return(u,b)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(e.unref(p))},[e.renderSlot(u.$slots,"default",{},()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(f),g=>(e.openBlock(),e.createBlock(Te,e.mergeProps({key:g.title},{name:g.name,title:g.title,content:g.content}),{header:e.withCtx(h=>[e.renderSlot(u.$slots,`header::${g.name}`,e.normalizeProps(e.guardReactiveProps(h)))]),details:e.withCtx(h=>[e.renderSlot(u.$slots,`details::${g.name}`,e.normalizeProps(e.guardReactiveProps(h)))]),_:2},1040))),128))])],2))}}),re={valid:Boolean,validLabel:[String,Array]},ae={invalid:Boolean,invalidLabel:[String,Array]},Ce={loading:Boolean,loadingLabel:String},ee={disabled:Boolean},se={readonly:Boolean},K={modifiers:[String,Array]},ie={hintLabel:{type:String,default:""}},ge={options:{type:Array,default:()=>[]},labelKey:{type:[String,Function],default:"label"},valueKey:{type:[String,Function],default:"value"}},ft={count:{type:[Boolean,String],default:!1,validator:n=>[!0,!1,"limit","countdown"].includes(n)}},bt={debounce:[Number,String]},Le={LEFT:"left",RIGHT:"right"},Be={icon:{type:[String,Object]},iconPosition:{type:String,validation:n=>Object.values(Le).includes(n),default:Le.RIGHT}},he={tabindex:{type:[String,Number],default:0}},Pe={floating:Boolean},ye={unselectable:{type:Boolean,default:!0}},ce={id:[String,Number],name:{type:String,required:!0}},xe={autofocus:Boolean},Me={autocomplete:{type:String,default:"off"}},He={...ce,...xe,...Me,...he,...ee,...se,...re,...ae,...ie,...Ce,...K,...ft,...bt,...Be,...Pe,minlength:Number,maxlength:Number,placeholder:String,required:Boolean,label:String},ve={...ce,...he,...re,...ae,...ie,...ee,...se,value:[String,Number,Boolean],modelValue:[Object,Number,Boolean,String],label:String},Ge={...re,...ae,...ge,...ie,...ee,...se,modelValue:[String,Array],label:String,name:{type:String,required:!0},vertical:Boolean},gt={...K,value:[String,Number]},ht={name:"VvBadge"},yt=e.defineComponent({...ht,props:gt,setup(n){const o=n,{bemCssClasses:t}=I("vv-badge",{modifiers:o.modifiers});return(r,l)=>(e.openBlock(),e.createElementBlock("span",{class:e.normalizeClass(e.unref(t)),role:"status"},[e.renderSlot(r.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(r.value),1)])],2))}}),Vt={...K,routes:Array},St={class:"vv-breadcrumb__list"},kt=["content"],_t={name:"VvBreadcrumb"},Ct=e.defineComponent({..._t,props:Vt,setup(n){const o=n,{bemCssClasses:t}=I("vv-breadcrumb",{modifiers:o.modifiers});return(r,l)=>(e.openBlock(),e.createElementBlock("nav",{class:e.normalizeClass(e.unref(t)),"aria-label":"breadcrumbs"},[e.createElementVNode("ol",St,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.routes,(s,a)=>{var f,d,c,i;return e.openBlock(),e.createElementBlock("li",{key:`${s.label}-${a}`,class:e.normalizeClass({"vv-breadcrumb__item":a<Number((f=r.routes)==null?void 0:f.length)-1,"vv-breadcrumb__item-active":a===Number((d=r.routes)==null?void 0:d.length)-1}),itemprop:"itemListElement",itemtype:"https://schema.org/ListItem",itemscope:""},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(s.to?"router-link":s.href?"a":"span"),e.mergeProps(s,{class:{"vv-breadcrumb__link":a<Number((c=r.routes)==null?void 0:c.length)-1},"aria-current":a===Number((i=r.routes)==null?void 0:i.length)-1?"page":void 0,itemprop:"item"}),{default:e.withCtx(()=>[e.renderSlot(r.$slots,"label",e.normalizeProps(e.guardReactiveProps({route:s,index:a})),()=>[e.createTextVNode(e.toDisplayString(s.label),1)])]),_:2},1040,["class","aria-current"])),e.createElementVNode("meta",{itemprop:"position",content:`${a+1}`},null,8,kt)],2)}),128))])],2))}}),Bt={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]}},Pt={name:"VvIcon"},D=e.defineComponent({...Pt,props:Bt,setup(n){const o=n,t=e.ref(!0),{modifiers:r}=e.toRefs(o),l=e.inject(pe),{bemCssClasses:s}=I("vv-icon",{modifiers:r}),a=e.computed(()=>o.provider||(l==null?void 0:l.provider)),f=e.computed(()=>{const i=o.name??"",p=`@${a.value}:${o.prefix}:${o.name}`;return A.iconExists(i)?i:A.iconExists(p)?p:(l==null?void 0:l.iconsCollections.find(u=>{const b=`@${a.value}:${u.prefix}:${i}`;if(A.iconExists(b))return b}))||i});function d(i){let p=null;if(typeof window>"u"){const{JSDOM:h}=require("jsdom");p=new h().window}return(p?new p.DOMParser:new window.DOMParser).parseFromString(i,"text/html").querySelector("svg")}function c(i){const p=d(i),u=(p==null?void 0:p.innerHTML.trim())||"";p&&u&&A.addIcon(`@${a.value}:${o.prefix}:${o.name}`,{body:u,height:p.viewBox.baseVal.height,width:p.viewBox.baseVal.width})}return l&&(o.src&&!A.iconExists(`@${a.value}:${o.prefix}:${o.name}`)?(t.value=!1,l.fetchIcon(o.src).then(i=>{i&&(c(i),t.value=!0)}).catch(i=>{throw new Error(`During fetch icon: ${i==null?void 0:i.message}`)})):o.svg&&c(o.svg)),(i,p)=>t.value?(e.openBlock(),e.createBlock(e.unref(A.Icon),e.mergeProps({key:0,class:e.unref(s)},{inline:i.inline,width:i.width,height:i.height,horizontalFlip:i.horizontalFlip,verticalFlip:i.verticalFlip,flip:i.flip,rotate:i.rotate,color:i.color,onLoad:i.onLoad,icon:e.unref(f)}),null,16,["class"])):e.createCommentVNode("",!0)}});var le=(n=>(n.left="left",n.right="right",n.top="top",n.bottom="bottom",n))(le||{}),ze=(n=>(n.button="button",n.submit="submit",n.reset="reset",n))(ze||{}),W=(n=>(n.nuxtLink="nuxt-link",n.routerLink="router-link",n.a="a",n.button="button",n))(W||{}),Ue=(n=>(n._blank="_blank",n._self="_self",n._parent="_parent",n._top="_top",n))(Ue||{});const Et=["update:modelValue"],At={...K,...ee,...ye,icon:{type:[String,Object],default:""},iconPosition:{type:String,default:"left",validator:n=>n in le},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:n=>n in Ue},active:Boolean,pressed:Boolean,rel:{type:String,default:"noopener noreferrer"},type:{type:String,default:"button",validator:n=>n in ze},toggle:{type:Boolean,default:!1},modelValue:String};function wt(n,o){var m;const{group:t,isInGroup:r,getGroupOrLocalRef:l}=fe(Re),{iconPosition:s,icon:a,label:f,pressed:d,modifiers:c}=e.toRefs(n),i=l("modelValue",n,o),p=l("disabled",n),u=l("toggle",n),b=l("unselectable",n),g=((m=t==null?void 0:t.value)==null?void 0:m.multiple)??e.ref(!1),h=e.computed(()=>{var k;const S=c!=null&&c.value?Array.isArray(c.value)?c.value:[c.value]:[],P=(k=t==null?void 0:t.value.itemModifiers)!=null&&k.value?Array.isArray(t.value.itemModifiers.value)?t.value.itemModifiers.value:[t.value.itemModifiers.value]:[];return[...S,...P]});return{group:t,isInGroup:r,modelValue:i,disabled:p,toggle:u,unselectable:b,multiple:g,modifiers:h,pressed:d,iconPosition:s,icon:a,label:f}}const Nt={key:1,class:"vv-button__label"},Rt={key:1,class:"vv-button__label"},It={name:"VvButton"},Dt=e.defineComponent({...It,props:At,emits:Et,setup(n,{emit:o}){const t=n,r=e.useAttrs(),l=e.useSlots(),s=(r==null?void 0:r.name)||F.nanoid(),{modifiers:a,iconPosition:f,icon:d,label:c,modelValue:i,disabled:p,toggle:u,unselectable:b}=wt(t,o),g=e.inject(pe),h=e.computed(()=>{switch(!0){case p.value:return W.button;case t.to!==void 0:return g!=null&&g.nuxt?W.nuxtLink:W.routerLink;case t.href!==void 0:return W.a;default:return W.button}}),m=e.computed(()=>u.value?Array.isArray(i.value)?$(s,i.value):Q(s,i.value):t.pressed),{bemCssClasses:S}=I("vv-button",{modifiers:a,active:t.active,pressed:m,disabled:p,reverse:e.computed(()=>[le.right,le.bottom].includes(f.value)),column:e.computed(()=>[le.top,le.bottom].includes(f.value)),iconOnly:e.computed(()=>(d==null?void 0:d.value)&&!(c!=null&&c.value)&&!l.default)}),P=e.computed(()=>typeof(d==null?void 0:d.value)=="string"?{name:d==null?void 0:d.value}:d==null?void 0:d.value),k=e.computed(()=>{const _={class:S.value,"aria-pressed":m.value?!0:void 0};switch(h.value){case W.a:return{..._,role:"button",href:t.href,target:t.target,rel:t.rel};case W.routerLink:case W.nuxtLink:return{..._,role:"button",to:t.to,target:t.target};default:return{..._,type:t.type,disabled:p.value}}}),R=()=>{if(u.value){if(Array.isArray(i.value)){if($(s,i.value)){b.value&&(i.value=i.value.filter(_=>_!==s));return}i.value.push(s);return}if(Q(s,i.value)&&b.value){i.value=void 0;return}i.value=s}};return(_,O)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(h)),e.mergeProps(e.unref(k),{onClickPassive:R}),{default:e.withCtx(()=>[e.renderSlot(_.$slots,"default",{},()=>[_.loading?e.renderSlot(_.$slots,"loading",{key:0},()=>[_.loadingIcon?(e.openBlock(),e.createBlock(D,{key:0,class:"vv-button__loading-icon",name:_.loadingIcon},null,8,["name"])):e.createCommentVNode("",!0),_.loadingLabel?(e.openBlock(),e.createElementBlock("span",Nt,e.toDisplayString(_.loadingLabel),1)):e.createCommentVNode("",!0)]):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.renderSlot(_.$slots,"before"),e.unref(d)?(e.openBlock(),e.createBlock(D,e.mergeProps({key:0,class:"vv-button__icon"},e.unref(P)),null,16)):e.createCommentVNode("",!0),e.unref(c)?(e.openBlock(),e.createElementBlock("span",Rt,[e.renderSlot(_.$slots,"label",{},()=>[e.createTextVNode(e.toDisplayString(e.unref(c)),1)])])):e.createCommentVNode("",!0),e.renderSlot(_.$slots,"after")],64))])]),_:3},16))}}),Ot={...K,...ee,...ye,itemModifiers:{type:[String,Array],default:void 0},toggle:{type:Boolean,default:!1},multiple:{type:Boolean,default:!1},modelValue:{type:[String,Array],default:void 0}},Tt=["update:modelValue"],Lt={name:"VvButtonGroup"},xt=e.defineComponent({...Lt,props:Ot,emits:Tt,setup(n,{emit:o}){const t=n,{disabled:r,toggle:l,modifiers:s,multiple:a,unselectable:f,itemModifiers:d}=e.toRefs(t);e.watchEffect(()=>{typeof t.modelValue=="string"&&a.value&&console.warn("[VvButtonGroup]: modelValue is a string but multiple is true.")});const c=e.computed({get:()=>a.value?t.modelValue:Array.isArray(t.modelValue)?t.modelValue[0]:t.modelValue,set:u=>(u!==void 0&&(Array.isArray(t.modelValue)||a.value)&&!Array.isArray(u)&&(u=[u]),o("update:modelValue",u))});be({key:Re,modelValue:c,disabled:r,toggle:l,multiple:a,unselectable:f,itemModifiers:d});const{bemCssClasses:p}=I("vv-button-group",{modifiers:s});return(u,b)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(e.unref(p)),role:"group"},[e.renderSlot(u.$slots,"default")],2))}}),Mt={title:String,modifiers:[String,Array]},Ht={key:0,class:"vv-card__header"},vt={key:1,class:"vv-card__content"},Gt={key:2,class:"vv-card__footer"},zt={name:"VvCard"},Ut=e.defineComponent({...zt,props:Mt,setup(n){const o=n,{bemCssClasses:t}=I("vv-card",{modifiers:o.modifiers});return(r,l)=>(e.openBlock(),e.createElementBlock("article",{class:e.normalizeClass(e.unref(t))},[r.$slots.header||r.title?(e.openBlock(),e.createElementBlock("header",Ht,[e.renderSlot(r.$slots,"header",{},()=>[e.createTextVNode(e.toDisplayString(r.title),1)])])):e.createCommentVNode("",!0),e.renderSlot(r.$slots,"default"),r.$slots.content?(e.openBlock(),e.createElementBlock("div",vt,[e.renderSlot(r.$slots,"content")])):e.createCommentVNode("",!0),r.$slots.footer?(e.openBlock(),e.createElementBlock("footer",Gt,[e.renderSlot(r.$slots,"footer")])):e.createCommentVNode("",!0)],2))}}),jt={...ve,indeterminate:Boolean,uncheckedValue:[String,Number,Boolean],switch:Boolean},Ft=["click","update:modelValue","change","blur"];function Kt(n,o){const{group:t,isInGroup:r,getGroupOrLocalRef:l}=fe(De),{switch:s,indeterminate:a}=e.toRefs(n),f=l("modelValue",n,o),d=l("readonly",n),c=l("disabled",n),i=l("valid",n),p=l("invalid",n);return{propsSwitch:s,indeterminate:a,group:t,isInGroup:r,modelValue:f,readonly:d,disabled:c,valid:i,invalid:p}}function Ve(n){return Array.isArray(n)?n.filter(o=>ot(o)).join(" "):n}function te(n,o){const{invalid:t,valid:r,hint:l,loading:s}=o,{hintLabel:a,modelValue:f,valid:d,validLabel:c,invalid:i,invalidLabel:p,...u}=e.toRefs(n),b=me(u,"loading"),g=me(u,"loadingLabel"),h=e.computed(()=>i.value?!!(i.value&&t||p!=null&&p.value&&Array.isArray(p.value)&&p.value.length>0||p!=null&&p.value&&!G(p)):!1),m=e.computed(()=>!!(a&&a.value||l)),S=e.computed(()=>!!(c&&c.value||r)),P=e.computed(()=>!!(b!=null&&b.value&&s||b!=null&&b.value&&(g!=null&&g.value))),k=e.computed(()=>m.value||S.value||h.value||P.value);return{hasInvalid:h,hasHint:m,hasValid:S,hasLoading:P,HintSlot:{name:"HintSlot",props:{params:{type:Object,default:()=>({})}},setup(R){const _=e.computed(()=>{const O=M.toReactive({hintLabel:a,modelValue:f,valid:d,validLabel:c,invalid:i,invalidLabel:p,loading:b,loadingLabel:g,...R.params});return i!=null&&i.value?(t==null?void 0:t(O))||Ve(p==null?void 0:p.value)||(a==null?void 0:a.value):d!=null&&d.value?(r==null?void 0:r(O))||Ve(c==null?void 0:c.value)||(a==null?void 0:a.value):b!=null&&b.value?(s==null?void 0:s(O))||Ve(g==null?void 0:g.value)||(a==null?void 0:a.value):(l==null?void 0:l(O))||Ve(a==null?void 0:a.value)||(a==null?void 0:a.value)});return{isVisible:k,hasInvalid:h,hasValid:S,hintContent:_}},render(){if(this.isVisible)return e.h("small",{role:this.hasInvalid||this.hasValid?"alert":void 0},this.hintContent)}}}}const Wt=["for"],qt=["id","name","disabled","value","tabindex","aria-invalid"],Xt={name:"VvCheckbox"},je=e.defineComponent({...Xt,props:jt,emits:Ft,setup(n,{emit:o}){const t=n,r=e.useSlots(),{disabled:l,readonly:s,valid:a,invalid:f,propsSwitch:d,modelValue:c,indeterminate:i,isInGroup:p}=Kt(t,o),u=e.computed(()=>String(t.id||F.nanoid())),b=e.computed(()=>m.value?-1:t.tabindex),g=e.ref(),h=e.computed(()=>t.uncheckedValue!==void 0&&!p.value),m=e.computed(()=>l.value||s.value),S=e.computed(()=>{if(f.value===!0)return!0;if(a.value===!0)return!1}),P=e.computed(()=>h.value?c.value===t.value:Array.isArray(c.value)?$(t.value,c.value):Q(t.value,c.value)),k=e.computed(()=>!!(i.value||!P.value&&h.value&&t.uncheckedValue!==c.value)),R=e.computed(()=>{if(!h.value)return["string","number","boolean"].includes(typeof t.value)?t.value:!0}),_=e.computed({get(){return P.value},set(w){if(h.value)c.value=w?t.value:t.uncheckedValue;else if(Array.isArray(c.value)||p.value){const T=new Set(Array.isArray(c.value)?c.value:c.value!==void 0?[c.value]:[]);w?T.add(t.value):T.delete(t.value),c.value=[...T]}else c.value=w?t.value:void 0;o("change",w)}}),{bemCssClasses:O}=I("vv-checkbox",{switch:d,valid:a,invalid:f,disabled:l,readonly:s,indeterminate:i});e.watchEffect(()=>{h.value&&Array.isArray(c.value)&&console.warn("[VvCheckbox] The model value is an array but the component is in binary mode.")}),e.watch(()=>k.value,w=>{w?g.value.indeterminate=!0:g.value.indeterminate=!1}),e.onMounted(()=>{k.value&&(g.value.indeterminate=!0)});const{HintSlot:z}=te(t,r);return(w,T)=>(e.openBlock(),e.createElementBlock("label",{class:e.normalizeClass(e.unref(O)),for:e.unref(u)},[e.withDirectives(e.createElementVNode("input",{id:e.unref(u),ref_key:"input",ref:g,"onUpdate:modelValue":T[0]||(T[0]=U=>e.isRef(_)?_.value=U:null),type:"checkbox",class:"vv-checkbox__input",name:w.name,disabled:e.unref(m),value:e.unref(R),tabindex:e.unref(b),"aria-invalid":e.unref(S)},null,8,qt),[[e.vModelCheckbox,e.unref(_)]]),e.renderSlot(w.$slots,"default",{value:e.unref(c)},()=>[e.createTextVNode(e.toDisplayString(w.label),1)]),e.createVNode(e.unref(z),{class:"vv-checkbox__hint",params:{value:e.unref(c)}},null,8,["params"])],10,Wt))}});function de(n){const{options:o,labelKey:t,valueKey:r}=e.toRefs(n);return{options:o,getOptionLabel:a=>typeof a!="object"&&a!==null?a:typeof t.value=="function"?t.value(a):a[t.value],getOptionValue:a=>typeof a!="object"&&a!==null?a:typeof r.value=="function"?r.value(a):a[r.value]}}const Zt=Ge,Yt=["update:modelValue","change"],Jt=["textContent"],Qt={class:"vv-checkbox-group__wrapper"},$t={name:"VvCheckboxGroup"},eo=e.defineComponent({...$t,props:Zt,emits:Yt,setup(n,{emit:o}){const t=n,r=e.useSlots(),l=M.useVModel(t,"modelValue",o),{disabled:s,readonly:a,vertical:f,valid:d,invalid:c}=e.toRefs(t);be({key:De,modelValue:l,disabled:s,readonly:a,valid:d,invalid:c});const{getOptionLabel:p,getOptionValue:u}=de(t),{bemCssClasses:b}=I("vv-checkbox-group",{disabled:s,readonly:a,horizontal:e.computed(()=>!f.value),valid:d,invalid:c}),g=(m,S)=>({id:`${t.name}_opt${S}`,name:t.name,label:p(m),value:u(m)}),{HintSlot:h}=te(t,r);return(m,S)=>(e.openBlock(),e.createElementBlock("fieldset",{class:e.normalizeClass(e.unref(b))},[m.label?(e.openBlock(),e.createElementBlock("legend",{key:0,textContent:e.toDisplayString(m.label)},null,8,Jt)):e.createCommentVNode("",!0),e.createElementVNode("div",Qt,[m.options.length>0?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(m.options,(P,k)=>(e.openBlock(),e.createBlock(je,e.mergeProps({key:k},g(P,k)),null,16))),128)):e.renderSlot(m.$slots,"default",{key:1})]),e.createVNode(e.unref(h),{class:"vv-checkbox-group__hint"})],2))}});function Se(n,o,t){const r=e.computed(()=>!!(n!=null&&n.value&&o.value==="left"||t!=null&&t.iconLeft)),l=e.computed(()=>!!(n!=null&&n.value&&o.value==="right"||t!=null&&t.iconRight)),s=e.computed(()=>!!(n!=null&&n.value&&o.value==="top"||t!=null&&t.iconTop)),a=e.computed(()=>!!(n!=null&&n.value&&o.value==="bottom"||t!=null&&t.iconBottom));return{hasIcon:e.computed(()=>typeof(n==null?void 0:n.value)=="string"?{name:n==null?void 0:n.value}:n==null?void 0:n.value),hasIconLeft:r,hasIconRight:l,hasIconTop:s,hasIconBottom:a}}function ke(n,o){const{focused:t}=M.useFocus(n);return e.watch(t,r=>{o(r?"focus":"blur",e.unref(n))}),{focused:t}}const to={...ce,...ge,...ee,...K,modelValue:{type:[String,Number,Boolean,Object,Array]},labelNoResults:{type:String,default:"No results"},multiple:Boolean,maxValues:[Number,String],unselectable:{type:Boolean,default:!0}},oo=["id"],no={key:0,role:"option"},lo=["aria-selected"],ro=["for","onClick"],ao=["id","type","value","checked","disabled","name"],so={name:"VvDropdown"},Fe=e.defineComponent({...so,props:to,emits:["update:modelValue"],setup(n,{emit:o}){const t=n,r=e.computed(()=>String(t.id||F.nanoid())),{modifiers:l,disabled:s}=e.toRefs(t),{getOptionLabel:a,getOptionValue:f}=de(t),{bemCssClasses:d}=I("vv-dropdown",{modifiers:l,disabled:s});function c(u){return Array.isArray(t.modelValue)?$(u,t.modelValue)||$(f(u),t.modelValue):Q(u,t.modelValue)||Q(f(u),t.modelValue)}function i(u){return typeof u=="string"||u.disabled===void 0?s.value:u.disabled}function p(u){var g;if(t.disabled)return;let b=u;if(t.multiple)if(Array.isArray(t.modelValue)){if(t.maxValues!==void 0&&t.maxValues>=0&&((g=t.modelValue)==null?void 0:g.length)>=t.maxValues&&!$(u,t.modelValue))return;b=$(u,t.modelValue)?tt(u,t.modelValue):[...t.modelValue,u]}else b=[u];else t.unselectable&&u===t.modelValue&&(b=void 0);o("update:modelValue",b)}return(u,b)=>{var g;return e.openBlock(),e.createElementBlock("ul",{id:e.unref(r),class:e.normalizeClass(e.unref(d)),role:"listbox"},[(g=u.options)!=null&&g.length?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("li",no,[e.createElementVNode("label",null,e.toDisplayString(u.labelNoResults),1)])),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(u.options,(h,m)=>(e.openBlock(),e.createElementBlock("li",{key:m,role:"option","aria-selected":c(h)},[e.createElementVNode("label",{for:`dropdown-${m}-${e.unref(r)}`,onClick:e.withModifiers(S=>p(e.unref(f)(h)),["prevent"])},[e.createElementVNode("input",{id:`dropdown-${m}-${e.unref(r)}`,type:u.multiple?"checkbox":"radio",value:e.unref(f)(h),checked:c(h),disabled:i(h),name:u.name,tabindex:"-1","aria-hidden":"true"},null,8,ao),e.createTextVNode(" "+e.toDisplayString(e.unref(a)(h)),1)],8,ro)],8,lo))),128))],10,oo)}}}),io={...ce,...xe,...Me,...he,...re,...ae,...ie,...Ce,...ee,...se,...K,...ge,...Be,...Pe,...ye,multiple:Boolean,required:Boolean,size:[String,Number],modelValue:{type:[String,Number,Boolean,Object,Array],default:void 0},label:String,placeholder:String},co=["update:modelValue","focus","blur"],uo=["for"],po={class:"vv-select__wrapper"},mo=["id"],fo=["disabled","hidden"],bo=["disabled","value"],go={name:"VvSelect"},Ke=e.defineComponent({...go,props:io,emits:co,setup(n,{emit:o}){const t=n,r=e.useSlots(),l=e.ref(),{HintSlot:s,hasHint:a,hasInvalid:f}=te(t,r),{modifiers:d,disabled:c,readonly:i,loading:p,icon:u,iconPosition:b,invalid:g,valid:h,floating:m,multiple:S}=e.toRefs(t),P=e.computed(()=>String(t.id||F.nanoid())),k=e.computed(()=>`${P.value}-hint`),{focused:R}=ke(l,o),_=M.useElementVisibility(l);e.watch(_,B=>{B&&t.autofocus&&(R.value=!0)});const{hasIcon:O,hasIconLeft:z,hasIconRight:w}=Se(u,b),T=e.computed(()=>!G(t.modelValue)),U=e.computed(()=>t.disabled||t.readonly),q=e.computed(()=>U.value?-1:t.tabindex),X=e.computed(()=>{if(t.invalid===!0)return!0;if(t.valid===!0)return!1}),{bemCssClasses:j}=I("vv-select",{modifiers:d,valid:h,invalid:g,loading:p,disabled:c,readonly:i,iconLeft:z,iconRight:w,dirty:T,focus:R,floating:m,multiple:S}),ne=e.computed(()=>({name:t.name,tabindex:q.value,disabled:U.value,required:t.required,size:t.size,autocomplete:t.autocomplete,multiple:t.multiple,"aria-invalid":X.value,"aria-describedby":!f.value&&a.value?k.value:void 0,"aria-errormessage":f.value?k.value:void 0})),{getOptionLabel:Z,getOptionValue:Y}=de(t);function J(B){return typeof B=="string"||B.disabled===void 0?c.value:B.disabled}const x=e.computed({get:()=>t.modelValue,set:B=>{Array.isArray(B)&&(B=B.filter(H=>H!==void 0)),o("update:modelValue",B)}});return(B,H)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(e.unref(j))},[B.label?(e.openBlock(),e.createElementBlock("label",{key:0,for:e.unref(P)},e.toDisplayString(B.label),9,uo)):e.createCommentVNode("",!0),e.createElementVNode("div",po,[e.renderSlot(B.$slots,"before",{},()=>[e.unref(z)?(e.openBlock(),e.createBlock(D,e.normalizeProps(e.mergeProps({key:0},e.unref(O))),null,16)):e.createCommentVNode("",!0)]),e.withDirectives(e.createElementVNode("select",e.mergeProps({id:e.unref(P),ref_key:"select",ref:l,"onUpdate:modelValue":H[0]||(H[0]=C=>e.isRef(x)?x.value=C:null)},e.unref(ne)),[B.placeholder?(e.openBlock(),e.createElementBlock("option",{key:0,value:void 0,disabled:!B.unselectable,hidden:!B.unselectable},e.toDisplayString(B.placeholder),9,fo)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(B.options,(C,N)=>(e.openBlock(),e.createElementBlock("option",{key:N,disabled:J(C),value:e.unref(Y)(C)},e.toDisplayString(e.unref(Z)(C)),9,bo))),128))],16,mo),[[e.vModelSelect,e.unref(x)]]),e.renderSlot(B.$slots,"after",{},()=>[e.unref(w)?(e.openBlock(),e.createBlock(D,e.normalizeProps(e.mergeProps({key:0},e.unref(O))),null,16)):e.createCommentVNode("",!0)])]),e.createVNode(e.unref(s),{id:e.unref(k),class:"vv-select__hint"},null,8,["id"])],2))}}),ho=["update:modelValue","change:search","focus","blur"],yo={...ce,...he,...re,...ae,...ie,...Ce,...ee,...se,...K,...ge,...Be,...Pe,...ye,modelValue:{type:[String,Number,Boolean,Object,Array],default:void 0},label:String,labelNoResults:{type:String,default:"No results"},placeholder:String,searchable:Boolean,searchPlaceholder:String,debounceSearch:{type:[Number,String],default:0},multiple:Boolean,maxValues:[Number,String],separator:{type:String,default:", "},native:Boolean},Vo=["id"],So=["id","for"],ko=["tabindex"],_o=["id","placeholder"],Co={name:"VvCombobox"},Bo=e.defineComponent({...Co,props:yo,emits:ho,setup(n,{emit:o}){const t=n,r=e.useSlots(),{HintSlot:l}=te(t,r),s=e.ref(),a=e.ref(),{focused:f}=ke(s,o),d=e.computed(()=>String(t.id||F.nanoid())),c=e.ref(""),i=M.refDebounced(c,Number(t.debounceSearch)),p=e.ref(!1),{icon:u,iconPosition:b,modifiers:g,disabled:h,readonly:m,loading:S,valid:P,invalid:k,floating:R}=e.toRefs(t);e.watch(i,()=>o("change:search",i.value));const{hasIcon:_,hasIconLeft:O,hasIconRight:z}=Se(u,b),w=e.computed(()=>!G(t.modelValue)),T=e.computed(()=>h.value||m.value?-1:t.tabindex),{bemCssClasses:U}=I("vv-select",{modifiers:g,disabled:h,loading:S,readonly:m,iconLeft:O,iconRight:z,valid:P,invalid:k,dirty:w,focus:f,floating:R}),q=e.computed(()=>t.searchable?ne.value:t.options),{getOptionLabel:X,getOptionValue:j}=de(t),ne=e.computed(()=>{var C;return(C=t.options)==null?void 0:C.filter(N=>X(N).toLowerCase().includes(i.value.toLowerCase().trim()))}),Z=e.computed(()=>{let C=[];return Array.isArray(t.modelValue)?C=t.modelValue:t.modelValue&&(C=[t.modelValue]),t.options.filter(N=>C.includes(j(N)))}),Y=e.computed(()=>Z.value.map(C=>X(C)).join(t.separator));M.onClickOutside(s,()=>{s.value.open=!1});function J(C){const N=C.target;p.value=N.open}function x(C){s.value&&!t.multiple&&(s.value.open=!1),o("update:modelValue",C)}const B=e.computed(()=>({name:t.name,options:q.value,labelKey:t.labelKey,valueKey:t.valueKey,disabled:t.disabled,labelNoResults:t.labelNoResults,multiple:t.multiple,maxValues:t.maxValues,modelValue:t.modelValue,unselectable:t.unselectable})),H=e.computed(()=>({id:d.value,name:t.name,tabindex:T.value,valid:P.value,validLabel:t.validLabel,invalid:k.value,invalidLabel:t.invalidLabel,hintLabel:t.hintLabel,loading:S.value,loadingLabel:t.loadingLabel,disabled:h.value,readonly:m.value,modifiers:t.modifiers,options:q.value,labelKey:t.labelKey,valueKey:t.valueKey,icon:t.icon,iconPosition:t.iconPosition,floating:t.floating,unselectable:t.unselectable,multiple:t.multiple,label:t.label,placeholder:t.placeholder,modelValue:t.modelValue}));return(C,N)=>C.native?(e.openBlock(),e.createBlock(Ke,e.mergeProps({key:1},e.unref(H),{"onUpdate:modelValue":N[4]||(N[4]=v=>o("update:modelValue",v))}),null,16)):(e.openBlock(),e.createElementBlock("div",{key:0,id:e.unref(d),class:e.normalizeClass(e.unref(U))},[C.label?(e.openBlock(),e.createElementBlock("label",{key:0,id:`${e.unref(d)}-label`,for:C.searchable&&p.value?`${e.unref(d)}-input`:void 0},e.toDisplayString(C.label),9,So)):e.createCommentVNode("",!0),e.createElementVNode("details",{ref_key:"dropdown",ref:s,class:"vv-select__wrapper",onClick:N[2]||(N[2]=v=>e.unref(h)||e.unref(m)?v.preventDefault():null),onKeyup:N[3]||(N[3]=e.withKeys(v=>s.value.open=!1,["esc"])),onToggle:J},[e.createElementVNode("summary",{class:"vv-select__input",tabindex:e.unref(T),onKeyup:N[1]||(N[1]=e.withKeys(v=>C.searchable?v.preventDefault():null,["space"]))},[e.renderSlot(C.$slots,"before",{},()=>[e.unref(O)?(e.openBlock(),e.createBlock(D,e.mergeProps({key:0,class:"vv-select__icon-left"},e.unref(_)),null,16)):e.createCommentVNode("",!0)]),C.searchable&&p.value?e.withDirectives((e.openBlock(),e.createElementBlock("input",{key:0,id:`${e.unref(d)}-input`,ref_key:"inputSearch",ref:a,"onUpdate:modelValue":N[0]||(N[0]=v=>c.value=v),role:"combobox",type:"search",placeholder:C.searchPlaceholder},null,8,_o)),[[e.vModelText,c.value]]):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString(e.unref(Y)||C.placeholder),1)],64)),e.renderSlot(C.$slots,"after",{},()=>[e.unref(z)?(e.openBlock(),e.createBlock(D,e.mergeProps({key:0,class:"vv-select__icon-right"},e.unref(_)),null,16)):e.createCommentVNode("",!0)])],40,ko),e.createVNode(Fe,e.mergeProps({id:`${e.unref(d)}-dropdown`},e.unref(B),{"onUpdate:modelValue":x}),null,16,["id"])],544),e.createVNode(e.unref(l),{class:"vv-select__hint"})],10,Vo))}}),Po=["open","close","update:modelValue"],Eo={id:{type:String,required:!0},title:String,modelValue:Boolean,transition:{type:String,default:"fade-block"},size:String,autoClose:{type:Boolean,default:!0}},Ao={key:0,class:"vv-dialog__header"},wo=["onClick"],No={class:"vv-dialog__content"},Ro={key:1,class:"vv-dialog__footer"},Io={name:"VvDialog"},Do=e.defineComponent({...Io,props:Eo,emits:Po,setup(n,{emit:o}){const t=n,r=M.useVModel(t,"modelValue",o),l=e.ref(!0),s=e.ref(null),a=e.computed(()=>{const{id:p}=t;return{id:p,open:l.value}}),f=e.computed(()=>t.size?["vv-dialog",`vv-dialog--${t.size}`]:"vv-dialog"),d=e.computed(()=>`vv-dialog--${t.transition}`),c={"before-enter":()=>{l.value=!0,o("open")},"after-leave":()=>{l.value=!1,o("close")}};M.onClickOutside(s,()=>{t.autoClose&&(r.value=!1)});function i(){r.value=!1}return(p,u)=>(e.openBlock(),e.createBlock(e.Transition,e.mergeProps({name:e.unref(d)},e.toHandlers(c)),{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("dialog",e.mergeProps(e.unref(a),{class:e.unref(f)}),[e.createElementVNode("article",{ref_key:"modalWrapper",ref:s,class:"vv-dialog__wrapper"},[p.$slots.header||p.title?(e.openBlock(),e.createElementBlock("header",Ao,[e.renderSlot(p.$slots,"header",{},()=>[e.createTextVNode(e.toDisplayString(p.title)+" ",1),e.createElementVNode("button",{type:"button","aria-label":"Close",class:"vv-dialog__close",onClick:e.withModifiers(i,["prevent"])},[e.createVNode(D,{name:"close"})],8,wo)])])):e.createCommentVNode("",!0),e.createElementVNode("div",No,[e.renderSlot(p.$slots,"default")]),p.$slots.footer?(e.openBlock(),e.createElementBlock("footer",Ro,[e.renderSlot(p.$slots,"footer")])):e.createCommentVNode("",!0)],512)],16),[[e.vShow,e.unref(r)]])]),_:3},16,["name"]))}});function We(n,o,t=0){let r;return typeof t=="string"&&(t=parseInt(t)),e.computed({get:()=>n==null?void 0:n.value,set:l=>{r&&clearTimeout(r),r=setTimeout(()=>{o("update:modelValue",l)},t)}})}function qe(n,o){const t=e.computed(()=>(e.unref(n)??"").length),r=e.computed(()=>(o==null?void 0:o.lowerLimit)!==void 0&&t.value<(o==null?void 0:o.lowerLimit)?t.value-o.lowerLimit:(o==null?void 0:o.upperLimit)!==void 0&&t.value<(o==null?void 0:o.upperLimit)?o.upperLimit-t.value:0),l=e.computed(()=>(o==null?void 0:o.mode)===!1?"":(o==null?void 0:o.mode)==="limit"&&(o!=null&&o.upperLimit)?`${t.value} / ${o.lowerLimit?`${o.lowerLimit}-`:""}${o.upperLimit}`:(o==null?void 0:o.mode)==="countdown"?r.value===0?void 0:r:t.value);return{length:t,gap:r,formatted:l}}const y={TEXT:"text",PASSWORD:"password",NUMBER:"number",EMAIL:"email",TEL:"tel",URL:"url",COLOR:"color",SEARCH:"search",DATE:"date",TIME:"time",DATETIME_LOCAL:"datetime-local",MONTH:"month",WEEK:"week"},oe={PASSWORD_SHOW:"eye-on",PASSWORD_HIDE:"eye-off",DATE:"calendar",TIME:"time",COLOR:"color",SEARCH:"close"},Oo=["update:modelValue","focus","blur","keyup"],To={...He,modelValue:[String,Number],type:{type:String,default:y.TEXT,validator:n=>Object.values(y).includes(n)},min:[Number,Date,String],max:[Number,Date,String],step:{type:[String,Number],default:1},pattern:String,multiple:Boolean,iconShowPassword:{type:String,default:oe.PASSWORD_SHOW},iconHidePassword:{type:String,default:oe.PASSWORD_HIDE},iconClear:{type:String,default:oe.SEARCH},labelStepUp:{type:String,default:"Increase value"},labelStepDown:{type:String,default:"Decrease value"},labelShowPassword:{type:String,default:"Show password"},labelHidePassword:{type:String,default:"Hide password"},labelClear:{type:String,default:"Clear"}},Xe=e.defineComponent({components:{VvIcon:D},props:{disabled:{type:Boolean,default:!1},labelShow:{type:String,default:"Show password"},labelHide:{type:String,default:"Hide password"},iconShow:{type:String,default:oe.PASSWORD_SHOW},iconHide:{type:String,default:oe.PASSWORD_HIDE}},emits:["toggle-password"],setup(n,{emit:o}){const t=e.ref(!1),r=e.computed(()=>t.value?n.iconHide:n.iconShow);function l(s){s==null||s.stopPropagation(),n.disabled||(t.value=!t.value,o("toggle-password",t.value))}return{active:t,activeIcon:r,onClick:l}},render(){const n=e.h(D,{name:this.activeIcon,class:"vv-input-text__action-icon"});return e.h("button",{disabled:this.disabled,class:"vv-input-text__action",ariaLabel:this.active?this.labelHide:this.labelShow,type:"button",onClick:this.onClick},n)}}),Ee=e.defineComponent({components:{VvIcon:D},props:{disabled:{type:Boolean,default:!1},label:{type:String},mode:{type:String,validator:n=>["up","down"].includes(n),default:"up"}},emits:["step-up","step-down"],setup(n,{emit:o}){const t=e.computed(()=>n.mode==="up");return{isUp:t,onClick:l=>{l==null||l.stopPropagation(),n.disabled||o(t.value?"step-up":"step-down")}}},render(){return e.h("button",{class:["vv-input-text__action-chevron",this.isUp&&"vv-input-text__action-chevron-up"],disabled:this.disabled,ariaLabel:this.label,onClick:this.onClick})}}),Ze=e.defineComponent({components:{VvIcon:D},props:{disabled:{type:Boolean,default:!1},label:{type:String,default:"Clear"},icon:{type:String,default:"close"}},emits:["clear"],setup(n,{emit:o}){function t(r){r==null||r.stopPropagation(),n.disabled||o("clear")}return{onClick:t}},render(){const n=e.h(D,{name:this.icon,class:"vv-input-text__action-icon"});return e.h("button",{disabled:this.disabled,class:"vv-input-text__action",ariaLabel:this.label,type:"button",onClick:this.onClick},n)}});function Ae(n,o){return{name:"VvInputTextActions",components:{VvIcon:D,VvInputPasswordAction:Xe,VvInputStepAction:Ee,VvInputClearAction:Ze},setup(){return{isDisabled:e.computed(()=>o.disabled||o.readonly),labelStepUp:o.labelStepUp,labelStepDown:o.labelStepDown,labelShowPassword:o.labelShowPassword,labelHidePassword:o.labelHidePassword,labelClear:o.labelClear,iconShowPassword:o.iconShowPassword,iconHidePassword:o.iconHidePassword}},render(){let t=null;switch(n){case y.SEARCH:{const{onClear:r}=this.$attrs;t=[e.h(Ze,{disabled:this.isDisabled,label:this.labelShowPassword,onClear:r})];break}case y.PASSWORD:{const{onTogglePassword:r}=this.$attrs;t=[e.h(Xe,{disabled:this.isDisabled,onTogglePassword:r,labelShow:this.labelShowPassword,labelHide:this.labelHidePassword,iconShow:this.iconShowPassword,iconHide:this.iconHidePassword})];break}case y.NUMBER:{const{onStepUp:r,onStepDown:l}=this.$attrs;t=[e.h(Ee,{mode:"up",disabled:this.isDisabled||o.max!==void 0&&o.modelValue===o.max,label:this.labelStepUp,onStepUp:r,onStepDown:l}),e.h(Ee,{mode:"down",disabled:this.isDisabled||o.min!==void 0&&o.modelValue===o.min,label:this.labelStepDown,onStepUp:r,onStepDown:l})];break}}return Array.isArray(t)?e.h("div",{class:"vv-input-text__actions-group"},t):t}}}const Lo=["for"],xo={class:"vv-input-text__wrapper"},Mo=["id"],Ho={key:0,class:"vv-input-text__limit"},vo={name:"VvInputText"},Go=e.defineComponent({...vo,props:To,emits:Oo,setup(n,{emit:o}){const t=n,r=e.useSlots(),l=e.ref(),{icon:s,iconPosition:a,label:f,modelValue:d,count:c,valid:i,invalid:p,loading:u}=e.toRefs(t),b=e.computed(()=>String(t.id||F.nanoid())),g=e.computed(()=>`${b.value}-hint`),h=e.computed(()=>t.floating&&G(t.placeholder)?" ":t.placeholder),m=We(d,o,t.debounce),{focused:S}=ke(l,o),P=M.useElementVisibility(l);e.watch(P,E=>{E&&t.autofocus&&(S.value=!0)});const k=e.ref(!1),R=e.computed(()=>t.type===y.PASSWORD),_=()=>{k.value=!k.value},O=e.computed(()=>t.type===y.TIME||t.type===y.DATETIME_LOCAL||t.type===y.DATE||t.type===y.WEEK||t.type===y.MONTH),z=e.computed(()=>t.type===y.NUMBER),w=()=>{J.value&&(l.value.stepUp(),m.value=e.unref(l).value)},T=()=>{J.value&&(l.value.stepDown(),m.value=e.unref(l).value)},U=e.computed(()=>t.type===y.SEARCH),q=()=>{m.value=void 0},{hasIconLeft:X,hasIconRight:j,hasIcon:ne}=Se(s,a),Z=e.computed(()=>{switch(t.type){case y.COLOR:return{name:oe.COLOR};case y.DATE:case y.DATETIME_LOCAL:case y.WEEK:case y.MONTH:return{name:oe.DATE};case y.TIME:return{name:oe.TIME};default:return""}}),{formatted:Y}=qe(m,{mode:t.count,upperLimit:t.maxlength,lowerLimit:t.minlength}),J=e.computed(()=>!t.disabled&&!t.readonly),x=e.computed(()=>J.value?t.tabindex:-1),B=e.computed(()=>!G(d)),H=e.computed(()=>{if(p.value===!0)return!0;if(i.value===!0)return!1}),{bemCssClasses:C}=I("vv-input-text",{modifiers:t.modifiers,valid:i,invalid:p,loading:u,disabled:t.disabled,readonly:t.readonly,iconLeft:X,iconRight:j.value||!G(Z),floating:t.floating&&!G(t.label),dirty:B,focus:S}),N=e.computed(()=>{const E=(()=>R.value&&k.value||O.value&&!B.value&&!S.value?y.TEXT:t.type)(),L={type:E,name:t.name,tabindex:x.value,disabled:t.disabled,readonly:t.readonly,required:t.required,autocomplete:t.autocomplete,"aria-invalid":H.value,"aria-describedby":!Je.value&&fn.value?g.value:void 0,"aria-errormessage":Je.value?g.value:void 0};return(E===y.DATE||E===y.MONTH||E===y.WEEK||E===y.TIME||E===y.DATETIME_LOCAL||E===y.NUMBER)&&(L.step=t.step,L.max=String(t.max),L.min=String(t.min)),(E===y.TEXT||E===y.SEARCH||E===y.URL||E===y.TEL||E===y.EMAIL||E===y.PASSWORD||E===y.NUMBER)&&(L.placeholder=h.value),(E===y.TEXT||E===y.SEARCH||E===y.URL||E===y.TEL||E===y.EMAIL||E===y.PASSWORD)&&(L.minlength=t.minlength,L.maxlength=t.maxlength,L.pattern=t.pattern),E===y.EMAIL&&(L.multiple=t.multiple),L}),v=e.computed(()=>({valid:t.valid,invalid:t.invalid,modelValue:t.modelValue,togglePassword:_,stepUp:w,stepDown:T,clear:q})),{HintSlot:mn,hasHint:fn,hasInvalid:Je}=te(t,r),bn=Ae(y.PASSWORD,t),gn=Ae(y.NUMBER,t),hn=Ae(y.SEARCH,t);return(E,L)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(e.unref(C))},[e.unref(f)?(e.openBlock(),e.createElementBlock("label",{key:0,for:e.unref(b),class:"vv-input-text__label"},e.toDisplayString(e.unref(f)),9,Lo)):e.createCommentVNode("",!0),e.createElementVNode("div",xo,[e.renderSlot(E.$slots,"before",e.normalizeProps(e.guardReactiveProps(e.unref(v))),()=>[e.unref(X)?(e.openBlock(),e.createBlock(D,e.mergeProps({key:0,class:"vv-input-text__icon-left"},e.unref(ne)),null,16)):e.createCommentVNode("",!0)]),e.withDirectives(e.createElementVNode("input",e.mergeProps({id:e.unref(b),ref_key:"input",ref:l,"onUpdate:modelValue":L[0]||(L[0]=we=>e.isRef(m)?m.value=we:null)},e.unref(N),{onKeyup:L[1]||(L[1]=we=>o("keyup",we))}),null,16,Mo),[[e.vModelDynamic,e.unref(m)]]),e.renderSlot(E.$slots,"after",e.normalizeProps(e.guardReactiveProps(e.unref(v))),()=>[e.unref(j)||e.unref(Z)?(e.openBlock(),e.createBlock(D,e.normalizeProps(e.mergeProps({key:0},e.unref(j)?e.unref(ne):e.unref(Z))),null,16)):e.unref(R)?(e.openBlock(),e.createBlock(e.unref(bn),{key:1,onTogglePassword:_})):e.unref(z)?(e.openBlock(),e.createBlock(e.unref(gn),{key:2,onStepUp:w,onStepDown:T})):e.unref(U)?(e.openBlock(),e.createBlock(e.unref(hn),{key:3,onClear:q})):e.createCommentVNode("",!0)]),e.unref(c)?(e.openBlock(),e.createElementBlock("span",Ho,[e.renderSlot(E.$slots,"count",e.normalizeProps(e.guardReactiveProps(e.unref(v))),()=>[e.createTextVNode(e.toDisplayString(e.unref(Y)),1)])])):e.createCommentVNode("",!0)]),e.createVNode(e.unref(mn),{id:e.unref(g),class:"vv-input-text__hint"},null,8,["id"])],2))}}),zo={...K,value:{type:[Number,String],default:void 0},max:{type:[Number,String]},label:{type:String,required:!0}},Uo={name:"VvProgress"},jo=e.defineComponent({...Uo,props:zo,setup(n){const o=n,{value:t,max:r,label:l}=e.toRefs(o),s=e.computed(()=>o.value===void 0),{bemCssClasses:a}=I("vv-progress",{modifiers:o.modifiers,indeterminate:s});return(f,d)=>(e.openBlock(),e.createElementBlock("progress",e.mergeProps({role:"progressbar"},{class:e.unref(a),ariaLabel:e.unref(l),max:e.unref(r),value:e.unref(t)}),null,16))}}),Fo=ve,Ko=["click","update:modelValue","change","blur"];function Wo(n,o){const{group:t,isInGroup:r,getGroupOrLocalRef:l}=fe(Ie),s=l("modelValue",n,o),a=l("readonly",n),f=l("disabled",n),d=l("valid",n),c=l("invalid",n);return{group:t,isInGroup:r,modelValue:s,readonly:a,disabled:f,valid:d,invalid:c}}const qo=["for"],Xo=["id","name","disabled","value","tabindex","aria-invalid"],Zo={name:"VvRadio"},Ye=e.defineComponent({...Zo,props:Fo,emits:Ko,setup(n,{emit:o}){const t=n,r=e.useSlots(),{disabled:l,readonly:s,modelValue:a,valid:f,invalid:d}=Wo(t,o),c=e.computed(()=>String(t.id||F.nanoid())),i=e.computed(()=>u.value?-1:t.tabindex),p=e.ref(),u=e.computed(()=>l.value||s.value),b=e.computed(()=>{if(d.value===!0)return!0;if(f.value===!0)return!1}),g=e.computed(()=>Array.isArray(a.value)?$(t.value,a.value):Q(t.value,a.value)),h=e.computed(()=>["string","number","boolean"].includes(typeof t.value)?t.value:!0),m=e.computed({get(){return g.value?h.value:null},set(k){Array.isArray(a.value)?a.value=[t.value]:a.value=t.value,o("change",k)}}),{bemCssClasses:S}=I("vv-radio",{valid:f,invalid:d,disabled:l,readonly:s}),{HintSlot:P}=te(t,r);return(k,R)=>(e.openBlock(),e.createElementBlock("label",{class:e.normalizeClass(e.unref(S)),for:e.unref(c)},[e.withDirectives(e.createElementVNode("input",{id:e.unref(c),ref_key:"input",ref:p,"onUpdate:modelValue":R[0]||(R[0]=_=>e.isRef(m)?m.value=_:null),type:"radio",class:"vv-radio__input",name:k.name,disabled:e.unref(u),value:e.unref(h),tabindex:e.unref(i),"aria-invalid":e.unref(b)},null,8,Xo),[[e.vModelRadio,e.unref(m)]]),e.renderSlot(k.$slots,"default",{value:e.unref(a)},()=>[e.createTextVNode(e.toDisplayString(k.label),1)]),e.createVNode(e.unref(P),{class:"vv-radio__hint",params:{value:e.unref(a)}},null,8,["params"])],10,qo))}}),Yo=Ge,Jo=["update:modelValue","change"],Qo=["textContent"],$o={class:"vv-radio-group__wrapper"},en={name:"VvRadioGroup"},tn=e.defineComponent({...en,props:Yo,emits:Jo,setup(n,{emit:o}){const t=n,r=e.useSlots(),l=M.useVModel(t,"modelValue",o),{disabled:s,readonly:a,vertical:f,valid:d,invalid:c}=e.toRefs(t);be({key:Ie,modelValue:l,disabled:s,readonly:a,valid:d,invalid:c});const{getOptionLabel:p,getOptionValue:u}=de(t),{bemCssClasses:b}=I("vv-radio-group",{disabled:s,readonly:a,horizontal:e.computed(()=>!f.value),valid:d,invalid:c}),g=(m,S)=>({id:`${t.name}_opt${S}`,name:t.name,label:p(m),value:u(m)}),{HintSlot:h}=te(t,r);return(m,S)=>(e.openBlock(),e.createElementBlock("fieldset",{class:e.normalizeClass(e.unref(b))},[m.label?(e.openBlock(),e.createElementBlock("legend",{key:0,textContent:e.toDisplayString(m.label)},null,8,Qo)):e.createCommentVNode("",!0),e.createElementVNode("div",$o,[m.options.length>0?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(m.options,(P,k)=>(e.openBlock(),e.createBlock(Ye,e.mergeProps({key:k},g(P,k)),null,16))),128)):e.renderSlot(m.$slots,"default",{key:1})]),e.createVNode(e.unref(h),{class:"vv-radio-group__hint"})],2))}}),on={hard:"hard",soft:"soft"},nn={true:!0,false:!1,default:"default"},ln=["update:modelValue","focus","blur","keyup"],rn={...He,modelValue:String,cols:{type:[String,Number],default:20},rows:{type:[String,Number],default:2},wrap:{type:String,default:on.soft},spellcheck:{type:[Boolean,String],default:nn.default},resizable:Boolean},an=["for"],sn={class:"vv-textarea__wrapper"},cn=["id"],dn={key:0,class:"vv-textarea__limit"},un={name:"VvTextarea"},pn=e.defineComponent({...un,props:rn,emits:ln,setup(n,{emit:o}){const t=n,r=e.useSlots(),l=e.ref(),{icon:s,iconPosition:a,label:f,modelValue:d,count:c,valid:i,invalid:p,loading:u}=e.toRefs(t),b=e.computed(()=>String(t.id||F.nanoid())),g=e.computed(()=>`${b.value}-hint`),h=e.computed(()=>t.floating&&G(t.placeholder)?" ":t.placeholder),m=We(d,o,t.debounce),{hasIcon:S,hasIconLeft:P,hasIconRight:k}=Se(s,a),{focused:R}=ke(l,o),_=M.useElementVisibility(l);e.watch(_,x=>{x&&t.autofocus&&(R.value=!0)});const{formatted:O}=qe(m,{mode:t.count,upperLimit:t.maxlength,lowerLimit:t.minlength}),z=e.computed(()=>!t.disabled&&!t.readonly),w=e.computed(()=>z.value?t.tabindex:-1),T=e.computed(()=>!G(d)),U=e.computed(()=>{if(t.invalid===!0)return!0;if(t.valid===!0)return!1}),{HintSlot:q,hasHint:X,hasInvalid:j}=te(t,r),{bemCssClasses:ne}=I("vv-textarea",{modifiers:t.modifiers,valid:i,invalid:p,loading:u,disabled:t.disabled,readonly:t.readonly,iconLeft:P,iconRight:k,floating:t.floating&&!G(t.label),dirty:T,focused:R,resizable:t.resizable}),Z=e.computed(()=>({name:t.name,placeholder:h.value,tabindex:w.value,disabled:t.disabled,readonly:t.readonly,required:t.required,autocomplete:t.autocomplete,minlength:t.minlength,maxlength:t.maxlength,cols:t.cols,rows:t.rows,wrap:t.wrap,spellcheck:t.spellcheck,"aria-invalid":U.value,"aria-describedby":!j.value&&X.value?g.value:void 0,"aria-errormessage":j.value?g.value:void 0})),Y=e.computed(()=>({valid:t.valid,invalid:t.invalid,modelValue:t.modelValue,hintLabel:t.hintLabel,maxlength:t.maxlength,minlength:t.minlength,clear:J})),J=()=>{m.value=void 0};return(x,B)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(e.unref(ne))},[e.unref(f)?(e.openBlock(),e.createElementBlock("label",{key:0,for:e.unref(b),class:"vv-textarea__label"},e.toDisplayString(e.unref(f)),9,an)):e.createCommentVNode("",!0),e.createElementVNode("div",sn,[e.renderSlot(x.$slots,"before",e.normalizeProps(e.guardReactiveProps(e.unref(Y))),()=>[e.unref(P)?(e.openBlock(),e.createBlock(D,e.mergeProps({key:0,class:"vv-textarea__icon-left"},e.unref(S)),null,16)):e.createCommentVNode("",!0)]),e.withDirectives(e.createElementVNode("textarea",e.mergeProps({id:e.unref(b),ref_key:"textarea",ref:l,"onUpdate:modelValue":B[0]||(B[0]=H=>e.isRef(m)?m.value=H:null)},e.unref(Z),{onKeyup:B[1]||(B[1]=H=>o("keyup",H))}),null,16,cn),[[e.vModelText,e.unref(m)]]),e.renderSlot(x.$slots,"after",e.normalizeProps(e.guardReactiveProps(e.unref(Y))),()=>[e.unref(k)?(e.openBlock(),e.createBlock(D,e.normalizeProps(e.mergeProps({key:0},e.unref(S))),null,16)):e.createCommentVNode("",!0)]),e.unref(c)?(e.openBlock(),e.createElementBlock("span",dn,[e.renderSlot(x.$slots,"count",e.normalizeProps(e.guardReactiveProps(e.unref(Y))),()=>[e.createTextVNode(e.toDisplayString(e.unref(O)),1)])])):e.createCommentVNode("",!0)]),e.createVNode(e.unref(q),{id:e.unref(g),class:"vv-textarea__hint"},null,8,["id"])],2))}});V.VolverPlugin=$e,V.VvAccordion=Te,V.VvAccordionGroup=mt,V.VvBadge=yt,V.VvBreadcrumb=Ct,V.VvButton=Dt,V.VvButtonGroup=xt,V.VvCard=Ut,V.VvCheckbox=je,V.VvCheckboxGroup=eo,V.VvCombobox=Bo,V.VvDialog=Do,V.VvDropdown=Fe,V.VvIcon=D,V.VvInputText=Go,V.VvProgress=jo,V.VvRadio=Ye,V.VvRadioGroup=tn,V.VvSelect=Ke,V.VvTextarea=pn,Object.defineProperty(V,Symbol.toStringTag,{value:"Module"})});
|
package/dist/props/index.d.ts
CHANGED
|
@@ -1,23 +1,34 @@
|
|
|
1
|
+
import type { PropType } from 'vue';
|
|
2
|
+
import type { Option } from '@/types/generic';
|
|
1
3
|
export declare const ValidProps: {
|
|
2
4
|
valid: BooleanConstructor;
|
|
3
|
-
validLabel: (
|
|
5
|
+
validLabel: (ArrayConstructor | StringConstructor)[];
|
|
4
6
|
};
|
|
5
|
-
export declare const
|
|
6
|
-
|
|
7
|
-
|
|
7
|
+
export declare const InvalidProps: {
|
|
8
|
+
invalid: BooleanConstructor;
|
|
9
|
+
invalidLabel: (ArrayConstructor | StringConstructor)[];
|
|
8
10
|
};
|
|
9
11
|
export declare const LoadingProps: {
|
|
10
12
|
loading: BooleanConstructor;
|
|
11
13
|
loadingLabel: StringConstructor;
|
|
12
14
|
};
|
|
13
15
|
export declare const DisabledProps: {
|
|
16
|
+
/**
|
|
17
|
+
* Whether the form control is disabled
|
|
18
|
+
*/
|
|
14
19
|
disabled: BooleanConstructor;
|
|
15
20
|
};
|
|
16
21
|
export declare const ReadonlyProps: {
|
|
22
|
+
/**
|
|
23
|
+
* The value is not editable
|
|
24
|
+
*/
|
|
17
25
|
readonly: BooleanConstructor;
|
|
18
26
|
};
|
|
19
27
|
export declare const ModifiersProps: {
|
|
20
|
-
|
|
28
|
+
/**
|
|
29
|
+
* Component BEM modifiers
|
|
30
|
+
*/
|
|
31
|
+
modifiers: PropType<string | string[]>;
|
|
21
32
|
};
|
|
22
33
|
export declare const HintProps: {
|
|
23
34
|
hintLabel: {
|
|
@@ -27,66 +38,353 @@ export declare const HintProps: {
|
|
|
27
38
|
};
|
|
28
39
|
export declare const OptionsProps: {
|
|
29
40
|
/**
|
|
30
|
-
*
|
|
41
|
+
* List of options, can be string[] or object[]
|
|
31
42
|
*/
|
|
32
43
|
options: {
|
|
33
|
-
type:
|
|
44
|
+
type: PropType<(string | Option)[]>;
|
|
34
45
|
default: () => never[];
|
|
35
46
|
};
|
|
36
47
|
/**
|
|
37
|
-
*
|
|
48
|
+
* Used when options are objects: key to use for option label
|
|
38
49
|
*/
|
|
39
|
-
|
|
50
|
+
labelKey: {
|
|
40
51
|
type: (StringConstructor | FunctionConstructor)[];
|
|
41
|
-
default:
|
|
52
|
+
default: string;
|
|
42
53
|
};
|
|
43
54
|
/**
|
|
44
|
-
*
|
|
55
|
+
* Used when options are objects: key to use for option label
|
|
45
56
|
*/
|
|
46
|
-
|
|
57
|
+
valueKey: {
|
|
47
58
|
type: (StringConstructor | FunctionConstructor)[];
|
|
48
|
-
default:
|
|
59
|
+
default: string;
|
|
49
60
|
};
|
|
50
61
|
};
|
|
51
|
-
export declare const
|
|
62
|
+
export declare const CountProps: {
|
|
52
63
|
/**
|
|
53
|
-
*
|
|
54
|
-
* @description
|
|
55
|
-
* Se false, non mostrare il conteggio caratteri
|
|
56
|
-
* Se true, mostra quanti caratteri ho digitato sin ora e qualì'è la maxlength.
|
|
57
|
-
* Se true e maxlength > 0, mostra quanti caratteri ho digitato sin ora e qualì'è la maxlength.
|
|
58
|
-
* Se "countdown", mostra quanti caratteri mancano per raggiungere la maxlength.
|
|
64
|
+
* Show character limit
|
|
59
65
|
*/
|
|
60
|
-
|
|
66
|
+
count: {
|
|
61
67
|
type: (StringConstructor | BooleanConstructor)[];
|
|
62
68
|
default: boolean;
|
|
63
69
|
validator: (value: string) => boolean;
|
|
64
70
|
};
|
|
65
71
|
};
|
|
66
|
-
export declare const
|
|
67
|
-
|
|
72
|
+
export declare const DebounceProps: {
|
|
73
|
+
/**
|
|
74
|
+
* Milliseconds to wait before emitting the input event
|
|
75
|
+
*/
|
|
76
|
+
debounce: (StringConstructor | NumberConstructor)[];
|
|
77
|
+
};
|
|
78
|
+
export declare const ICON_POSITIONS: {
|
|
79
|
+
readonly LEFT: "left";
|
|
80
|
+
readonly RIGHT: "right";
|
|
81
|
+
};
|
|
82
|
+
export type IconPosition = ValueOf<typeof ICON_POSITIONS>;
|
|
83
|
+
export declare const IconProps: {
|
|
84
|
+
/**
|
|
85
|
+
* VvIcon name or props
|
|
86
|
+
* @see VVIcon
|
|
87
|
+
*/
|
|
88
|
+
icon: {
|
|
89
|
+
type: (ObjectConstructor | StringConstructor)[];
|
|
90
|
+
};
|
|
91
|
+
/**
|
|
92
|
+
* VvIcon position
|
|
93
|
+
*/
|
|
94
|
+
iconPosition: {
|
|
95
|
+
type: PropType<IconPosition>;
|
|
96
|
+
validation: (value: IconPosition) => boolean;
|
|
97
|
+
default: "right";
|
|
98
|
+
};
|
|
99
|
+
};
|
|
100
|
+
export declare const TabindexProps: {
|
|
101
|
+
/**
|
|
102
|
+
* Global attribute tabindex
|
|
103
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/tabindex
|
|
104
|
+
*/
|
|
105
|
+
tabindex: {
|
|
106
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
107
|
+
default: number;
|
|
108
|
+
};
|
|
109
|
+
};
|
|
110
|
+
export declare const FloatingProps: {
|
|
111
|
+
/**
|
|
112
|
+
* If true the label will be floating
|
|
113
|
+
*/
|
|
114
|
+
floating: BooleanConstructor;
|
|
115
|
+
};
|
|
116
|
+
export declare const UnselectableProps: {
|
|
117
|
+
/**
|
|
118
|
+
* If true the input will be unselectable
|
|
119
|
+
*/
|
|
120
|
+
unselectable: {
|
|
121
|
+
type: BooleanConstructor;
|
|
122
|
+
default: boolean;
|
|
123
|
+
};
|
|
124
|
+
};
|
|
125
|
+
export declare const IdNameProps: {
|
|
126
|
+
/**
|
|
127
|
+
* Global attribute id
|
|
128
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/id
|
|
129
|
+
*/
|
|
130
|
+
id: (StringConstructor | NumberConstructor)[];
|
|
131
|
+
/**
|
|
132
|
+
* Input / Textarea name
|
|
133
|
+
* Name of the form control. Submitted with the form as part of a name/value pair
|
|
134
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#name
|
|
135
|
+
*/
|
|
68
136
|
name: {
|
|
69
137
|
type: StringConstructor;
|
|
70
138
|
required: boolean;
|
|
71
139
|
};
|
|
140
|
+
};
|
|
141
|
+
export declare const AutofocusProps: {
|
|
142
|
+
/**
|
|
143
|
+
* Global attribute autofocus
|
|
144
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/autofocus
|
|
145
|
+
*/
|
|
146
|
+
autofocus: BooleanConstructor;
|
|
147
|
+
};
|
|
148
|
+
export declare const AutocompleteProps: {
|
|
149
|
+
/**
|
|
150
|
+
* Global attribute autocomplete
|
|
151
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete
|
|
152
|
+
*/
|
|
72
153
|
autocomplete: {
|
|
73
154
|
type: StringConstructor;
|
|
74
155
|
default: string;
|
|
75
156
|
};
|
|
76
|
-
|
|
157
|
+
};
|
|
158
|
+
export declare const InputTextareaProps: {
|
|
159
|
+
/**
|
|
160
|
+
* Input / Textarea minlength
|
|
161
|
+
* Minimum length (number of characters) of value
|
|
162
|
+
* Available for input types: text, search, url, tel, email, password
|
|
163
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#minlength
|
|
164
|
+
*/
|
|
77
165
|
minlength: NumberConstructor;
|
|
166
|
+
/**
|
|
167
|
+
* Input / Textarea maxlength
|
|
168
|
+
* Maximum length (number of characters) of value
|
|
169
|
+
* Available for input types: text, search, url, tel, email, password
|
|
170
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#maxlength
|
|
171
|
+
*/
|
|
78
172
|
maxlength: NumberConstructor;
|
|
79
|
-
|
|
173
|
+
/**
|
|
174
|
+
* Input / Textarea placeholder
|
|
175
|
+
* Text that appears in the form control when it has no value set
|
|
176
|
+
* Available for input types: text, search, url, tel, email, password, number
|
|
177
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#placeholder
|
|
178
|
+
*/
|
|
80
179
|
placeholder: StringConstructor;
|
|
180
|
+
/**
|
|
181
|
+
* Input / Textarea required
|
|
182
|
+
* A value is required or must be check for the form to be submittable
|
|
183
|
+
* Available for all input types except color
|
|
184
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#required
|
|
185
|
+
*/
|
|
81
186
|
required: BooleanConstructor;
|
|
187
|
+
/**
|
|
188
|
+
* <label> value for the Input / Textarea
|
|
189
|
+
*/
|
|
190
|
+
label: StringConstructor;
|
|
191
|
+
/**
|
|
192
|
+
* If true the label will be floating
|
|
193
|
+
*/
|
|
194
|
+
floating: BooleanConstructor;
|
|
195
|
+
/**
|
|
196
|
+
* VvIcon name or props
|
|
197
|
+
* @see VVIcon
|
|
198
|
+
*/
|
|
199
|
+
icon: {
|
|
200
|
+
type: (ObjectConstructor | StringConstructor)[];
|
|
201
|
+
};
|
|
202
|
+
/**
|
|
203
|
+
* VvIcon position
|
|
204
|
+
*/
|
|
205
|
+
iconPosition: {
|
|
206
|
+
type: PropType<IconPosition>;
|
|
207
|
+
validation: (value: IconPosition) => boolean;
|
|
208
|
+
default: "right";
|
|
209
|
+
};
|
|
210
|
+
/**
|
|
211
|
+
* Milliseconds to wait before emitting the input event
|
|
212
|
+
*/
|
|
213
|
+
debounce: (StringConstructor | NumberConstructor)[];
|
|
214
|
+
/**
|
|
215
|
+
* Show character limit
|
|
216
|
+
*/
|
|
217
|
+
count: {
|
|
218
|
+
type: (StringConstructor | BooleanConstructor)[];
|
|
219
|
+
default: boolean;
|
|
220
|
+
validator: (value: string) => boolean;
|
|
221
|
+
};
|
|
222
|
+
/**
|
|
223
|
+
* Component BEM modifiers
|
|
224
|
+
*/
|
|
225
|
+
modifiers: PropType<string | string[]>;
|
|
226
|
+
loading: BooleanConstructor;
|
|
227
|
+
loadingLabel: StringConstructor;
|
|
228
|
+
hintLabel: {
|
|
229
|
+
type: StringConstructor;
|
|
230
|
+
default: string;
|
|
231
|
+
};
|
|
232
|
+
invalid: BooleanConstructor;
|
|
233
|
+
invalidLabel: (ArrayConstructor | StringConstructor)[];
|
|
234
|
+
valid: BooleanConstructor;
|
|
235
|
+
validLabel: (ArrayConstructor | StringConstructor)[];
|
|
236
|
+
/**
|
|
237
|
+
* The value is not editable
|
|
238
|
+
*/
|
|
239
|
+
readonly: BooleanConstructor;
|
|
240
|
+
/**
|
|
241
|
+
* Whether the form control is disabled
|
|
242
|
+
*/
|
|
82
243
|
disabled: BooleanConstructor;
|
|
244
|
+
/**
|
|
245
|
+
* Global attribute tabindex
|
|
246
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/tabindex
|
|
247
|
+
*/
|
|
248
|
+
tabindex: {
|
|
249
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
250
|
+
default: number;
|
|
251
|
+
};
|
|
252
|
+
/**
|
|
253
|
+
* Global attribute autocomplete
|
|
254
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete
|
|
255
|
+
*/
|
|
256
|
+
autocomplete: {
|
|
257
|
+
type: StringConstructor;
|
|
258
|
+
default: string;
|
|
259
|
+
};
|
|
260
|
+
/**
|
|
261
|
+
* Global attribute autofocus
|
|
262
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/autofocus
|
|
263
|
+
*/
|
|
264
|
+
autofocus: BooleanConstructor;
|
|
265
|
+
/**
|
|
266
|
+
* Global attribute id
|
|
267
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/id
|
|
268
|
+
*/
|
|
269
|
+
id: (StringConstructor | NumberConstructor)[];
|
|
270
|
+
/**
|
|
271
|
+
* Input / Textarea name
|
|
272
|
+
* Name of the form control. Submitted with the form as part of a name/value pair
|
|
273
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#name
|
|
274
|
+
*/
|
|
275
|
+
name: {
|
|
276
|
+
type: StringConstructor;
|
|
277
|
+
required: boolean;
|
|
278
|
+
};
|
|
279
|
+
};
|
|
280
|
+
export declare const CheckboxRadioProps: {
|
|
281
|
+
/**
|
|
282
|
+
* Input value
|
|
283
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#value
|
|
284
|
+
*/
|
|
285
|
+
value: (StringConstructor | BooleanConstructor | NumberConstructor)[];
|
|
286
|
+
/**
|
|
287
|
+
* Input value
|
|
288
|
+
*/
|
|
289
|
+
modelValue: (ObjectConstructor | StringConstructor | BooleanConstructor | NumberConstructor)[];
|
|
290
|
+
/**
|
|
291
|
+
* <label> for input
|
|
292
|
+
*/
|
|
293
|
+
label: StringConstructor;
|
|
294
|
+
/**
|
|
295
|
+
* The value is not editable
|
|
296
|
+
*/
|
|
83
297
|
readonly: BooleanConstructor;
|
|
298
|
+
/**
|
|
299
|
+
* Whether the form control is disabled
|
|
300
|
+
*/
|
|
301
|
+
disabled: BooleanConstructor;
|
|
302
|
+
hintLabel: {
|
|
303
|
+
type: StringConstructor;
|
|
304
|
+
default: string;
|
|
305
|
+
};
|
|
306
|
+
invalid: BooleanConstructor;
|
|
307
|
+
invalidLabel: (ArrayConstructor | StringConstructor)[];
|
|
308
|
+
valid: BooleanConstructor;
|
|
309
|
+
validLabel: (ArrayConstructor | StringConstructor)[];
|
|
310
|
+
/**
|
|
311
|
+
* Global attribute tabindex
|
|
312
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/tabindex
|
|
313
|
+
*/
|
|
314
|
+
tabindex: {
|
|
315
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
316
|
+
default: number;
|
|
317
|
+
};
|
|
318
|
+
/**
|
|
319
|
+
* Global attribute id
|
|
320
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/id
|
|
321
|
+
*/
|
|
322
|
+
id: (StringConstructor | NumberConstructor)[];
|
|
323
|
+
/**
|
|
324
|
+
* Input / Textarea name
|
|
325
|
+
* Name of the form control. Submitted with the form as part of a name/value pair
|
|
326
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#name
|
|
327
|
+
*/
|
|
328
|
+
name: {
|
|
329
|
+
type: StringConstructor;
|
|
330
|
+
required: boolean;
|
|
331
|
+
};
|
|
84
332
|
};
|
|
85
|
-
export declare const
|
|
333
|
+
export declare const CheckboxRadioGroupProps: {
|
|
334
|
+
/**
|
|
335
|
+
* Input value
|
|
336
|
+
*/
|
|
337
|
+
modelValue: (ArrayConstructor | StringConstructor)[];
|
|
338
|
+
/**
|
|
339
|
+
* Input label
|
|
340
|
+
*/
|
|
341
|
+
label: StringConstructor;
|
|
342
|
+
/**
|
|
343
|
+
* Input name
|
|
344
|
+
*/
|
|
345
|
+
name: {
|
|
346
|
+
type: StringConstructor;
|
|
347
|
+
required: boolean;
|
|
348
|
+
};
|
|
349
|
+
/**
|
|
350
|
+
* If true, the group will be displayed in a vertical column
|
|
351
|
+
*/
|
|
352
|
+
vertical: BooleanConstructor;
|
|
353
|
+
/**
|
|
354
|
+
* The value is not editable
|
|
355
|
+
*/
|
|
356
|
+
readonly: BooleanConstructor;
|
|
86
357
|
/**
|
|
87
|
-
*
|
|
88
|
-
* @descrition
|
|
89
|
-
* Tempo che deve passare dall'ultima battuta prima che modelValue venga aggiornato.
|
|
358
|
+
* Whether the form control is disabled
|
|
90
359
|
*/
|
|
91
|
-
|
|
360
|
+
disabled: BooleanConstructor;
|
|
361
|
+
hintLabel: {
|
|
362
|
+
type: StringConstructor;
|
|
363
|
+
default: string;
|
|
364
|
+
};
|
|
365
|
+
/**
|
|
366
|
+
* List of options, can be string[] or object[]
|
|
367
|
+
*/
|
|
368
|
+
options: {
|
|
369
|
+
type: PropType<(string | Option)[]>;
|
|
370
|
+
default: () => never[];
|
|
371
|
+
};
|
|
372
|
+
/**
|
|
373
|
+
* Used when options are objects: key to use for option label
|
|
374
|
+
*/
|
|
375
|
+
labelKey: {
|
|
376
|
+
type: (StringConstructor | FunctionConstructor)[];
|
|
377
|
+
default: string;
|
|
378
|
+
};
|
|
379
|
+
/**
|
|
380
|
+
* Used when options are objects: key to use for option label
|
|
381
|
+
*/
|
|
382
|
+
valueKey: {
|
|
383
|
+
type: (StringConstructor | FunctionConstructor)[];
|
|
384
|
+
default: string;
|
|
385
|
+
};
|
|
386
|
+
invalid: BooleanConstructor;
|
|
387
|
+
invalidLabel: (ArrayConstructor | StringConstructor)[];
|
|
388
|
+
valid: BooleanConstructor;
|
|
389
|
+
validLabel: (ArrayConstructor | StringConstructor)[];
|
|
92
390
|
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type { ComponentResolver } from 'unplugin-vue-components/types';
|
|
2
|
+
export interface VolverResolverOptions {
|
|
3
|
+
/**
|
|
4
|
+
* import style along with components
|
|
5
|
+
*
|
|
6
|
+
* @default 'css'
|
|
7
|
+
*/
|
|
8
|
+
importStyle?: boolean | 'css' | 'scss';
|
|
9
|
+
/**
|
|
10
|
+
* import custom style path
|
|
11
|
+
*
|
|
12
|
+
* @default ''
|
|
13
|
+
*/
|
|
14
|
+
customStylePath?: string;
|
|
15
|
+
/**
|
|
16
|
+
* prefix for components (e.g. 'vv' to resolve Button from VvButton)
|
|
17
|
+
*
|
|
18
|
+
* @default 'vv'
|
|
19
|
+
*/
|
|
20
|
+
prefix?: string;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Resolver for @volverjs/ui-vue
|
|
24
|
+
*
|
|
25
|
+
* @link https://github.com/volverjs/ui-vue
|
|
26
|
+
*/
|
|
27
|
+
export declare function VolverResolver({ prefix, importStyle, customStylePath, }?: VolverResolverOptions): ComponentResolver;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
function i(r, o) {
|
|
2
|
+
if (typeof r != "string")
|
|
3
|
+
throw new TypeError("expected a string");
|
|
4
|
+
return r.trim().replace(/([a-z])([A-Z])/g, "$1-$2").replace(/\W/g, (e) => /[À-ž]/.test(e) ? e : "-").replace(/^-+|-+$/g, "").replace(/-{2,}/g, (e) => o != null && o.condense ? "-" : e).toLowerCase();
|
|
5
|
+
}
|
|
6
|
+
const f = ["vv-icon"], s = "vv", p = function(r) {
|
|
7
|
+
if (!f.includes(r))
|
|
8
|
+
return r === "vv-combobox" ? ["vv-select", "vv-dropdown"] : r === "vv-accordion-group" ? ["vv-accordion-group", "vv-accordion"] : r === "vv-checkbox-group" ? ["vv-checkbox-group", "vv-checkbox"] : r === "vv-radio-group" ? ["vv-radio-group", "vv-radio"] : [r];
|
|
9
|
+
};
|
|
10
|
+
function d({
|
|
11
|
+
prefix: r = s,
|
|
12
|
+
importStyle: o,
|
|
13
|
+
customStylePath: e
|
|
14
|
+
} = {}) {
|
|
15
|
+
return {
|
|
16
|
+
type: "component",
|
|
17
|
+
resolve: (v) => {
|
|
18
|
+
if (!r || !v.toLowerCase().startsWith(r.toLowerCase()))
|
|
19
|
+
return;
|
|
20
|
+
const c = [], t = i(v).replace(
|
|
21
|
+
`${r}-`,
|
|
22
|
+
`${s}-`
|
|
23
|
+
);
|
|
24
|
+
if (o) {
|
|
25
|
+
e && c.push(e);
|
|
26
|
+
const n = p(t);
|
|
27
|
+
n && n.forEach((u) => {
|
|
28
|
+
c.push(
|
|
29
|
+
`@volverjs/style/${o === "scss" ? "scss/" : ""}components/${u}`
|
|
30
|
+
);
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
return {
|
|
34
|
+
from: `@volverjs/ui-vue/${t}`,
|
|
35
|
+
sideEffects: c
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
export {
|
|
41
|
+
d as VolverResolver
|
|
42
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(function(r,t){typeof exports=="object"&&typeof module<"u"?t(exports):typeof define=="function"&&define.amd?define(["exports"],t):(r=typeof globalThis<"u"?globalThis:r||self,t(r.components={}))})(this,function(r){"use strict";function t(e,n){if(typeof e!="string")throw new TypeError("expected a string");return e.trim().replace(/([a-z])([A-Z])/g,"$1-$2").replace(/\W/g,o=>/[À-ž]/.test(o)?o:"-").replace(/^-+|-+$/g,"").replace(/-{2,}/g,o=>n!=null&&n.condense?"-":o).toLowerCase()}const f=["vv-icon"],s="vv",d=function(e){if(!f.includes(e))return e==="vv-combobox"?["vv-select","vv-dropdown"]:e==="vv-accordion-group"?["vv-accordion-group","vv-accordion"]:e==="vv-checkbox-group"?["vv-checkbox-group","vv-checkbox"]:e==="vv-radio-group"?["vv-radio-group","vv-radio"]:[e]};function p({prefix:e=s,importStyle:n,customStylePath:o}={}){return{type:"component",resolve:v=>{if(!e||!v.toLowerCase().startsWith(e.toLowerCase()))return;const c=[],i=t(v).replace(`${e}-`,`${s}-`);if(n){o&&c.push(o);const u=d(i);u&&u.forEach(l=>{c.push(`@volverjs/style/${n==="scss"?"scss/":""}components/${l}`)})}return{from:`@volverjs/ui-vue/${i}`,sideEffects:c}}}}r.VolverResolver=p,Object.defineProperty(r,Symbol.toStringTag,{value:"Module"})});
|