@volverjs/ui-vue 0.0.1-beta.8 → 0.0.1
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 +91 -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 +427 -0
- package/dist/components/VvButton/VvButton.umd.js +1 -0
- package/dist/components/VvButton/VvButton.vue.d.ts +108 -199
- package/dist/components/VvButton/index.d.ts +132 -0
- package/dist/components/VvButtonGroup/VvButtonGroup.es.js +108 -0
- package/dist/components/VvButtonGroup/VvButtonGroup.umd.js +1 -0
- package/dist/components/VvButtonGroup/VvButtonGroup.vue.d.ts +89 -183
- 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 +594 -0
- package/dist/components/VvCombobox/VvCombobox.umd.js +1 -0
- package/dist/components/VvCombobox/VvCombobox.vue.d.ts +153 -0
- package/dist/components/{VvSelect/VvSelect.d.ts → VvCombobox/index.d.ts} +33 -36
- 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 +218 -0
- package/dist/components/VvDropdown/VvDropdown.umd.js +1 -0
- package/dist/components/VvDropdown/VvDropdown.vue.d.ts +41 -147
- package/dist/components/VvDropdown/index.d.ts +37 -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 +764 -0
- package/dist/components/VvInputText/VvInputText.umd.js +1 -0
- package/dist/components/VvInputText/VvInputText.vue.d.ts +210 -287
- 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 +415 -0
- package/dist/components/VvSelect/VvSelect.umd.js +1 -0
- package/dist/components/VvSelect/VvSelect.vue.d.ts +112 -262
- package/dist/components/VvSelect/index.d.ts +96 -0
- package/dist/components/VvTextarea/VvTextarea.es.js +463 -0
- package/dist/components/VvTextarea/VvTextarea.umd.js +1 -0
- package/dist/components/VvTextarea/VvTextarea.vue.d.ts +139 -320
- 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 +2309 -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 +2350 -0
- package/dist/index.umd.js +1 -0
- package/dist/props/index.d.ts +297 -30
- package/dist/resolvers/unplugin.d.ts +27 -0
- package/dist/resolvers/unplugin.es.js +40 -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 +200 -0
- package/dist/stories/Button/Button.test.d.ts +1 -10
- package/dist/stories/ButtonGroup/ButtonGroup.settings.d.ts +38 -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 +267 -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 +75 -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 +265 -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 +793 -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 +198 -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 +171 -0
- package/src/components/VvButtonGroup/VvButtonGroup.vue +76 -48
- package/src/components/VvButtonGroup/index.ts +19 -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 +227 -0
- package/src/components/VvCombobox/index.ts +82 -0
- package/src/components/VvDialog/VvDialog.vue +69 -67
- package/src/components/VvDialog/index.ts +10 -0
- package/src/components/VvDropdown/VvDropdown.vue +112 -114
- package/src/components/VvDropdown/index.ts +25 -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 +305 -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 +165 -186
- package/src/components/VvSelect/index.ts +74 -0
- package/src/components/VvTextarea/VvTextarea.vue +185 -173
- 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 +21 -33
- 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 +186 -36
- package/src/resolvers/unplugin.ts +103 -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 +150 -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 +28 -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/ButtonGroupToggle.stories.mdx +45 -114
- 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 +122 -0
- package/src/stories/Combobox/Combobox.stories.mdx +153 -0
- package/src/stories/Combobox/Combobox.test.ts +96 -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 +42 -0
- package/src/stories/Dropdown/Dropdown.stories.mdx +85 -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 +100 -0
- package/src/stories/Select/Select.stories.mdx +113 -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 +433 -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/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,415 @@
|
|
|
1
|
+
import { unref as u, computed as i, toRefs as j, watch as oe, defineComponent as G, ref as J, inject as se, openBlock as y, createBlock as R, mergeProps as D, createCommentVNode as $, h as ae, useSlots as ie, createElementBlock as O, normalizeClass as le, toDisplayString as N, createElementVNode as H, renderSlot as M, normalizeProps as T, withDirectives as ue, isRef as ce, Fragment as de, renderList as fe, vModelSelect as ve, createVNode as pe } from "vue";
|
|
2
|
+
import { nanoid as me } from "nanoid";
|
|
3
|
+
import { useFocus as ge, toReactive as he } from "@vueuse/core";
|
|
4
|
+
import { iconExists as F, Icon as ye, addIcon as be } from "@iconify/vue";
|
|
5
|
+
function q(e, r) {
|
|
6
|
+
if (e && Object.keys(e).length && r) {
|
|
7
|
+
if (r.indexOf(".") === -1)
|
|
8
|
+
return e[r];
|
|
9
|
+
{
|
|
10
|
+
const t = r.split(".");
|
|
11
|
+
let l = e;
|
|
12
|
+
for (let a = 0, c = t.length; a < c; ++a) {
|
|
13
|
+
if (e == null)
|
|
14
|
+
return null;
|
|
15
|
+
l = l[t[a]];
|
|
16
|
+
}
|
|
17
|
+
return l;
|
|
18
|
+
}
|
|
19
|
+
} else
|
|
20
|
+
return null;
|
|
21
|
+
}
|
|
22
|
+
function U(e) {
|
|
23
|
+
return ((r) => r == null || r === "" || Array.isArray(r) && r.length === 0 || !(r instanceof Date) && typeof r == "object" && Object.keys(r).length === 0)(u(e));
|
|
24
|
+
}
|
|
25
|
+
function Se(e) {
|
|
26
|
+
return typeof e == "string" || e instanceof String;
|
|
27
|
+
}
|
|
28
|
+
function L(e) {
|
|
29
|
+
var r, t;
|
|
30
|
+
if (e)
|
|
31
|
+
return (t = (r = e.match(
|
|
32
|
+
/[A-Z]{2,}(?=[A-Z][a-z]+[0-9]*|\b)|[A-Z]?[a-z]+[0-9]*|[A-Z]|[0-9]+/g
|
|
33
|
+
)) == null ? void 0 : r.join("-")) == null ? void 0 : t.toLowerCase();
|
|
34
|
+
}
|
|
35
|
+
function X(e, r) {
|
|
36
|
+
const t = { [`${e}`]: !0 };
|
|
37
|
+
return {
|
|
38
|
+
bemCssClasses: i(() => Object.keys(r).reduce((a, c) => {
|
|
39
|
+
const n = u(r[c]) || !1;
|
|
40
|
+
if (!n)
|
|
41
|
+
return a;
|
|
42
|
+
if (c === "modifiers") {
|
|
43
|
+
const h = Array.isArray(n) ? n : n.split(" ");
|
|
44
|
+
return {
|
|
45
|
+
...a,
|
|
46
|
+
...h.reduce(
|
|
47
|
+
(p, f) => ({
|
|
48
|
+
...p,
|
|
49
|
+
[`${e}--${L(f)}`]: !0
|
|
50
|
+
}),
|
|
51
|
+
{}
|
|
52
|
+
)
|
|
53
|
+
};
|
|
54
|
+
} else
|
|
55
|
+
return {
|
|
56
|
+
...a,
|
|
57
|
+
[`${e}--${L(c)}`]: n
|
|
58
|
+
};
|
|
59
|
+
}, t) || {})
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
function Ie(e, r, t) {
|
|
63
|
+
const l = i(
|
|
64
|
+
() => !!(e != null && e.value && r.value === "left" || t != null && t.iconLeft)
|
|
65
|
+
), a = i(
|
|
66
|
+
() => !!(e != null && e.value && r.value === "right" || t != null && t.iconRight)
|
|
67
|
+
), c = i(
|
|
68
|
+
() => !!(e != null && e.value && r.value === "top" || t != null && t.iconTop)
|
|
69
|
+
), n = i(
|
|
70
|
+
() => !!(e != null && e.value && r.value === "bottom" || t != null && t.iconBottom)
|
|
71
|
+
);
|
|
72
|
+
return {
|
|
73
|
+
hasIcon: i(() => typeof (e == null ? void 0 : e.value) == "string" ? { name: e == null ? void 0 : e.value } : e == null ? void 0 : e.value),
|
|
74
|
+
hasIconLeft: l,
|
|
75
|
+
hasIconRight: a,
|
|
76
|
+
hasIconTop: c,
|
|
77
|
+
hasIconBottom: n
|
|
78
|
+
};
|
|
79
|
+
}
|
|
80
|
+
function Ve(e) {
|
|
81
|
+
const { options: r, labelKey: t, valueKey: l } = j(e);
|
|
82
|
+
return {
|
|
83
|
+
options: r,
|
|
84
|
+
getOptionLabel: (n) => typeof n != "object" && n !== null ? n : typeof t.value == "function" ? t.value(n) : n[t.value],
|
|
85
|
+
getOptionValue: (n) => typeof n != "object" && n !== null ? n : typeof l.value == "function" ? l.value(n) : n[l.value]
|
|
86
|
+
};
|
|
87
|
+
}
|
|
88
|
+
function we(e, r) {
|
|
89
|
+
const { focused: t } = ge(e);
|
|
90
|
+
return oe(t, (l) => {
|
|
91
|
+
r(l ? "focus" : "blur", u(e));
|
|
92
|
+
}), {
|
|
93
|
+
focused: t
|
|
94
|
+
};
|
|
95
|
+
}
|
|
96
|
+
const Oe = "ds", $e = {
|
|
97
|
+
color: String,
|
|
98
|
+
width: {
|
|
99
|
+
type: [String, Number]
|
|
100
|
+
},
|
|
101
|
+
height: {
|
|
102
|
+
type: [String, Number]
|
|
103
|
+
},
|
|
104
|
+
name: {
|
|
105
|
+
type: String,
|
|
106
|
+
required: !0
|
|
107
|
+
},
|
|
108
|
+
provider: {
|
|
109
|
+
type: String
|
|
110
|
+
},
|
|
111
|
+
prefix: {
|
|
112
|
+
type: String,
|
|
113
|
+
default: "normal"
|
|
114
|
+
},
|
|
115
|
+
src: String,
|
|
116
|
+
horizontalFlip: Boolean,
|
|
117
|
+
verticalFlip: Boolean,
|
|
118
|
+
flip: String,
|
|
119
|
+
mode: String,
|
|
120
|
+
inline: Boolean,
|
|
121
|
+
rotate: [Number, String],
|
|
122
|
+
onLoad: Function,
|
|
123
|
+
svg: String,
|
|
124
|
+
modifiers: {
|
|
125
|
+
type: [String, Array]
|
|
126
|
+
}
|
|
127
|
+
}, Ce = {
|
|
128
|
+
name: "VvIcon"
|
|
129
|
+
}, K = /* @__PURE__ */ G({
|
|
130
|
+
...Ce,
|
|
131
|
+
props: $e,
|
|
132
|
+
setup(e) {
|
|
133
|
+
const r = e, t = J(!0), { modifiers: l } = j(r), a = se(Oe), { bemCssClasses: c } = X("vv-icon", {
|
|
134
|
+
modifiers: l
|
|
135
|
+
}), n = i(() => r.provider || (a == null ? void 0 : a.provider)), h = i(() => {
|
|
136
|
+
const o = r.name ?? "", s = `@${n.value}:${r.prefix}:${r.name}`;
|
|
137
|
+
return F(o) ? o : F(s) ? s : (a == null ? void 0 : a.iconsCollections.find((m) => {
|
|
138
|
+
const d = `@${n.value}:${m.prefix}:${o}`;
|
|
139
|
+
if (F(d))
|
|
140
|
+
return d;
|
|
141
|
+
})) || o;
|
|
142
|
+
});
|
|
143
|
+
function p(o) {
|
|
144
|
+
let s = null;
|
|
145
|
+
if (typeof window > "u") {
|
|
146
|
+
const { JSDOM: b } = require("jsdom");
|
|
147
|
+
s = new b().window;
|
|
148
|
+
}
|
|
149
|
+
return (s ? new s.DOMParser() : new window.DOMParser()).parseFromString(o, "text/html").querySelector("svg");
|
|
150
|
+
}
|
|
151
|
+
function f(o) {
|
|
152
|
+
const s = p(o), m = (s == null ? void 0 : s.innerHTML.trim()) || "";
|
|
153
|
+
s && m && be(`@${n.value}:${r.prefix}:${r.name}`, {
|
|
154
|
+
body: m,
|
|
155
|
+
height: s.viewBox.baseVal.height,
|
|
156
|
+
width: s.viewBox.baseVal.width
|
|
157
|
+
});
|
|
158
|
+
}
|
|
159
|
+
return a && (r.src && !F(`@${n.value}:${r.prefix}:${r.name}`) ? (t.value = !1, a.fetchIcon(r.src).then((o) => {
|
|
160
|
+
o && (f(o), t.value = !0);
|
|
161
|
+
}).catch((o) => {
|
|
162
|
+
throw new Error(`During fetch icon: ${o == null ? void 0 : o.message}`);
|
|
163
|
+
})) : r.svg && f(r.svg)), (o, s) => t.value ? (y(), R(u(ye), D({
|
|
164
|
+
key: 0,
|
|
165
|
+
class: u(c)
|
|
166
|
+
}, {
|
|
167
|
+
inline: o.inline,
|
|
168
|
+
width: o.width,
|
|
169
|
+
height: o.height,
|
|
170
|
+
horizontalFlip: o.horizontalFlip,
|
|
171
|
+
verticalFlip: o.verticalFlip,
|
|
172
|
+
flip: o.flip,
|
|
173
|
+
rotate: o.rotate,
|
|
174
|
+
color: o.color,
|
|
175
|
+
onLoad: o.onLoad,
|
|
176
|
+
icon: u(h)
|
|
177
|
+
}), null, 16, ["class"])) : $("", !0);
|
|
178
|
+
}
|
|
179
|
+
});
|
|
180
|
+
function _(e) {
|
|
181
|
+
return Array.isArray(e) ? e.filter((r) => Se(r)).join(" ") : e;
|
|
182
|
+
}
|
|
183
|
+
function Pe(e, r) {
|
|
184
|
+
const {
|
|
185
|
+
invalid: t,
|
|
186
|
+
valid: l,
|
|
187
|
+
hint: a,
|
|
188
|
+
loading: c
|
|
189
|
+
} = r, {
|
|
190
|
+
hintLabel: n,
|
|
191
|
+
modelValue: h,
|
|
192
|
+
valid: p,
|
|
193
|
+
validLabel: f,
|
|
194
|
+
invalid: o,
|
|
195
|
+
invalidLabel: s,
|
|
196
|
+
...m
|
|
197
|
+
} = j(e), d = q(m, "loading"), g = q(m, "loadingLabel"), b = i(() => o.value ? !!(o.value && t || s != null && s.value && Array.isArray(s.value) && s.value.length > 0 || s != null && s.value && !U(s)) : !1), I = i(
|
|
198
|
+
() => !!(n && n.value || a)
|
|
199
|
+
), S = i(
|
|
200
|
+
() => !!(f && f.value || l)
|
|
201
|
+
), C = i(
|
|
202
|
+
() => !!(d != null && d.value && c || d != null && d.value && (g != null && g.value))
|
|
203
|
+
), P = i(
|
|
204
|
+
() => I.value || S.value || b.value || C.value
|
|
205
|
+
);
|
|
206
|
+
return {
|
|
207
|
+
hasInvalid: b,
|
|
208
|
+
hasHint: I,
|
|
209
|
+
hasValid: S,
|
|
210
|
+
hasLoading: C,
|
|
211
|
+
HintSlot: {
|
|
212
|
+
name: "HintSlot",
|
|
213
|
+
props: {
|
|
214
|
+
params: {
|
|
215
|
+
type: Object,
|
|
216
|
+
default: () => ({})
|
|
217
|
+
}
|
|
218
|
+
},
|
|
219
|
+
setup(B) {
|
|
220
|
+
const A = i(() => {
|
|
221
|
+
const V = he({
|
|
222
|
+
hintLabel: n,
|
|
223
|
+
modelValue: h,
|
|
224
|
+
valid: p,
|
|
225
|
+
validLabel: f,
|
|
226
|
+
invalid: o,
|
|
227
|
+
invalidLabel: s,
|
|
228
|
+
loading: d,
|
|
229
|
+
loadingLabel: g,
|
|
230
|
+
...B.params
|
|
231
|
+
});
|
|
232
|
+
return o != null && o.value ? (t == null ? void 0 : t(V)) || _(s == null ? void 0 : s.value) || (n == null ? void 0 : n.value) : p != null && p.value ? (l == null ? void 0 : l(V)) || _(f == null ? void 0 : f.value) || (n == null ? void 0 : n.value) : d != null && d.value ? (c == null ? void 0 : c(V)) || _(g == null ? void 0 : g.value) || (n == null ? void 0 : n.value) : (a == null ? void 0 : a(V)) || _(n == null ? void 0 : n.value) || (n == null ? void 0 : n.value);
|
|
233
|
+
});
|
|
234
|
+
return {
|
|
235
|
+
isVisible: P,
|
|
236
|
+
hasInvalid: b,
|
|
237
|
+
hasValid: S,
|
|
238
|
+
hintContent: A
|
|
239
|
+
};
|
|
240
|
+
},
|
|
241
|
+
render() {
|
|
242
|
+
if (this.isVisible)
|
|
243
|
+
return ae(
|
|
244
|
+
"small",
|
|
245
|
+
{
|
|
246
|
+
role: this.hasInvalid || this.hasValid ? "alert" : void 0
|
|
247
|
+
},
|
|
248
|
+
this.hintContent
|
|
249
|
+
);
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
};
|
|
253
|
+
}
|
|
254
|
+
const Be = {
|
|
255
|
+
valid: Boolean,
|
|
256
|
+
validLabel: [String, Array]
|
|
257
|
+
}, Ae = {
|
|
258
|
+
invalid: Boolean,
|
|
259
|
+
invalidLabel: [String, Array]
|
|
260
|
+
}, Fe = {
|
|
261
|
+
loading: Boolean,
|
|
262
|
+
loadingLabel: String
|
|
263
|
+
}, _e = {
|
|
264
|
+
disabled: Boolean
|
|
265
|
+
}, De = {
|
|
266
|
+
readonly: Boolean
|
|
267
|
+
}, je = {
|
|
268
|
+
modifiers: [String, Array]
|
|
269
|
+
}, ke = {
|
|
270
|
+
hintLabel: { type: String, default: "" }
|
|
271
|
+
}, Ne = {
|
|
272
|
+
options: {
|
|
273
|
+
type: Array,
|
|
274
|
+
default: () => []
|
|
275
|
+
},
|
|
276
|
+
labelKey: { type: [String, Function], default: "label" },
|
|
277
|
+
valueKey: { type: [String, Function], default: "value" }
|
|
278
|
+
}, Z = {
|
|
279
|
+
LEFT: "left",
|
|
280
|
+
RIGHT: "right"
|
|
281
|
+
}, Re = {
|
|
282
|
+
icon: { type: [String, Object] },
|
|
283
|
+
iconPosition: {
|
|
284
|
+
type: String,
|
|
285
|
+
validation: (e) => Object.values(Z).includes(e),
|
|
286
|
+
default: Z.RIGHT
|
|
287
|
+
}
|
|
288
|
+
}, ze = {
|
|
289
|
+
tabindex: { type: [String, Number], default: 0 }
|
|
290
|
+
}, Ee = {
|
|
291
|
+
id: [String, Number],
|
|
292
|
+
name: { type: String, required: !0 }
|
|
293
|
+
}, He = {
|
|
294
|
+
...Ee,
|
|
295
|
+
...ze,
|
|
296
|
+
...Be,
|
|
297
|
+
...Ae,
|
|
298
|
+
...ke,
|
|
299
|
+
...Fe,
|
|
300
|
+
..._e,
|
|
301
|
+
...De,
|
|
302
|
+
...je,
|
|
303
|
+
...Ne,
|
|
304
|
+
...Re,
|
|
305
|
+
autocomplete: { type: String, default: "off" },
|
|
306
|
+
autofocus: Boolean,
|
|
307
|
+
multiple: Boolean,
|
|
308
|
+
required: Boolean,
|
|
309
|
+
size: [String, Number],
|
|
310
|
+
modelValue: {
|
|
311
|
+
type: [String, Number, Boolean, Object, Array],
|
|
312
|
+
default: void 0
|
|
313
|
+
},
|
|
314
|
+
label: String,
|
|
315
|
+
placeholder: String
|
|
316
|
+
}, Me = ["update:modelValue", "focus", "blur"], Te = ["for"], qe = { class: "vv-select__wrapper" }, Le = ["id"], Ke = {
|
|
317
|
+
key: 0,
|
|
318
|
+
value: void 0,
|
|
319
|
+
disabled: ""
|
|
320
|
+
}, Ze = ["disabled", "value"], Ge = {
|
|
321
|
+
name: "VvSelect"
|
|
322
|
+
}, Qe = /* @__PURE__ */ G({
|
|
323
|
+
...Ge,
|
|
324
|
+
props: He,
|
|
325
|
+
emits: Me,
|
|
326
|
+
setup(e, { emit: r }) {
|
|
327
|
+
const t = e, l = ie(), a = J(), { HintSlot: c, hasHint: n, hasInvalid: h } = Pe(t, l), {
|
|
328
|
+
modifiers: p,
|
|
329
|
+
disabled: f,
|
|
330
|
+
readonly: o,
|
|
331
|
+
loading: s,
|
|
332
|
+
icon: m,
|
|
333
|
+
iconPosition: d,
|
|
334
|
+
invalid: g,
|
|
335
|
+
valid: b
|
|
336
|
+
} = j(t), I = i(() => String(t.id || me())), S = i(() => `${I.value}-hint`), { focused: C } = we(a, r), { hasIcon: P, hasIconLeft: B, hasIconRight: A } = Ie(
|
|
337
|
+
m,
|
|
338
|
+
d
|
|
339
|
+
), V = i(() => !U(t.modelValue)), z = i(() => t.disabled || t.readonly), x = i(() => z.value ? -1 : t.tabindex), Q = i(() => {
|
|
340
|
+
if (t.invalid === !0)
|
|
341
|
+
return !0;
|
|
342
|
+
if (t.valid === !0)
|
|
343
|
+
return !1;
|
|
344
|
+
}), { bemCssClasses: W } = X("vv-select", {
|
|
345
|
+
modifiers: p,
|
|
346
|
+
valid: b,
|
|
347
|
+
invalid: g,
|
|
348
|
+
loading: s,
|
|
349
|
+
disabled: f,
|
|
350
|
+
readonly: o,
|
|
351
|
+
iconLeft: B,
|
|
352
|
+
iconRight: A,
|
|
353
|
+
dirty: V,
|
|
354
|
+
focus: C
|
|
355
|
+
}), Y = i(() => ({
|
|
356
|
+
name: t.name,
|
|
357
|
+
tabindex: x.value,
|
|
358
|
+
disabled: z.value,
|
|
359
|
+
required: t.required,
|
|
360
|
+
size: t.size,
|
|
361
|
+
autocomplete: t.autocomplete,
|
|
362
|
+
multiple: t.multiple,
|
|
363
|
+
"aria-invalid": Q.value,
|
|
364
|
+
"aria-describedby": !h.value && n.value ? S.value : void 0,
|
|
365
|
+
"aria-errormessage": h.value ? S.value : void 0
|
|
366
|
+
})), { getOptionLabel: ee, getOptionValue: te } = Ve(t);
|
|
367
|
+
function re(v) {
|
|
368
|
+
return typeof v == "string" || v.disabled === void 0 ? f.value : v.disabled;
|
|
369
|
+
}
|
|
370
|
+
const k = i({
|
|
371
|
+
get: () => t.modelValue,
|
|
372
|
+
set: (v) => {
|
|
373
|
+
r("update:modelValue", v);
|
|
374
|
+
}
|
|
375
|
+
});
|
|
376
|
+
return (v, E) => (y(), O("div", {
|
|
377
|
+
class: le(u(W))
|
|
378
|
+
}, [
|
|
379
|
+
v.label ? (y(), O("label", {
|
|
380
|
+
key: 0,
|
|
381
|
+
for: u(I)
|
|
382
|
+
}, N(v.label), 9, Te)) : $("", !0),
|
|
383
|
+
H("div", qe, [
|
|
384
|
+
M(v.$slots, "before", {}, () => [
|
|
385
|
+
u(B) ? (y(), R(K, T(D({ key: 0 }, u(P))), null, 16)) : $("", !0)
|
|
386
|
+
]),
|
|
387
|
+
ue(H("select", D({
|
|
388
|
+
id: u(I),
|
|
389
|
+
ref_key: "select",
|
|
390
|
+
ref: a,
|
|
391
|
+
"onUpdate:modelValue": E[0] || (E[0] = (w) => ce(k) ? k.value = w : null)
|
|
392
|
+
}, u(Y)), [
|
|
393
|
+
v.placeholder ? (y(), O("option", Ke, N(v.placeholder), 1)) : $("", !0),
|
|
394
|
+
(y(!0), O(de, null, fe(v.options, (w, ne) => (y(), O("option", {
|
|
395
|
+
key: ne,
|
|
396
|
+
disabled: re(w),
|
|
397
|
+
value: u(te)(w)
|
|
398
|
+
}, N(u(ee)(w)), 9, Ze))), 128))
|
|
399
|
+
], 16, Le), [
|
|
400
|
+
[ve, u(k)]
|
|
401
|
+
]),
|
|
402
|
+
M(v.$slots, "after", {}, () => [
|
|
403
|
+
u(A) ? (y(), R(K, T(D({ key: 0 }, u(P))), null, 16)) : $("", !0)
|
|
404
|
+
])
|
|
405
|
+
]),
|
|
406
|
+
pe(u(c), {
|
|
407
|
+
id: u(S),
|
|
408
|
+
class: "vv-select__hint"
|
|
409
|
+
}, null, 8, ["id"])
|
|
410
|
+
], 2));
|
|
411
|
+
}
|
|
412
|
+
});
|
|
413
|
+
export {
|
|
414
|
+
Qe as default
|
|
415
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(function(e,I){typeof exports=="object"&&typeof module<"u"?module.exports=I(require("vue"),require("nanoid"),require("@vueuse/core"),require("@iconify/vue")):typeof define=="function"&&define.amd?define(["vue","nanoid","@vueuse/core","@iconify/vue"],I):(e=typeof globalThis<"u"?globalThis:e||self,e.VvSelect=I(e.vue,e.nanoid,e.core,e.vue$1))})(this,function(e,I,_,b){"use strict";function A(t,r){if(t&&Object.keys(t).length&&r){if(r.indexOf(".")===-1)return t[r];{const n=r.split(".");let l=t;for(let a=0,c=n.length;a<c;++a){if(t==null)return null;l=l[n[a]]}return l}}else return null}function $(t){return(r=>r==null||r===""||Array.isArray(r)&&r.length===0||!(r instanceof Date)&&typeof r=="object"&&Object.keys(r).length===0)(e.unref(t))}function z(t){return typeof t=="string"||t instanceof String}function E(t){var r,n;if(t)return(n=(r=t.match(/[A-Z]{2,}(?=[A-Z][a-z]+[0-9]*|\b)|[A-Z]?[a-z]+[0-9]*|[A-Z]|[0-9]+/g))==null?void 0:r.join("-"))==null?void 0:n.toLowerCase()}function F(t,r){const n={[`${t}`]:!0};return{bemCssClasses:e.computed(()=>Object.keys(r).reduce((a,c)=>{const o=e.unref(r[c])||!1;if(!o)return a;if(c==="modifiers"){const h=Array.isArray(o)?o:o.split(" ");return{...a,...h.reduce((p,d)=>({...p,[`${t}--${E(d)}`]:!0}),{})}}else return{...a,[`${t}--${E(c)}`]:o}},n)||{})}}function T(t,r,n){const l=e.computed(()=>!!(t!=null&&t.value&&r.value==="left"||n!=null&&n.iconLeft)),a=e.computed(()=>!!(t!=null&&t.value&&r.value==="right"||n!=null&&n.iconRight)),c=e.computed(()=>!!(t!=null&&t.value&&r.value==="top"||n!=null&&n.iconTop)),o=e.computed(()=>!!(t!=null&&t.value&&r.value==="bottom"||n!=null&&n.iconBottom));return{hasIcon:e.computed(()=>typeof(t==null?void 0:t.value)=="string"?{name:t==null?void 0:t.value}:t==null?void 0:t.value),hasIconLeft:l,hasIconRight:a,hasIconTop:c,hasIconBottom:o}}function H(t){const{options:r,labelKey:n,valueKey:l}=e.toRefs(t);return{options:r,getOptionLabel:o=>typeof o!="object"&&o!==null?o:typeof n.value=="function"?n.value(o):o[n.value],getOptionValue:o=>typeof o!="object"&&o!==null?o:typeof l.value=="function"?l.value(o):o[l.value]}}function M(t,r){const{focused:n}=_.useFocus(t);return e.watch(n,l=>{r(l?"focus":"blur",e.unref(t))}),{focused:n}}const x="ds",L={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]}},K={name:"VvIcon"},D=e.defineComponent({...K,props:L,setup(t){const r=t,n=e.ref(!0),{modifiers:l}=e.toRefs(r),a=e.inject(x),{bemCssClasses:c}=F("vv-icon",{modifiers:l}),o=e.computed(()=>r.provider||(a==null?void 0:a.provider)),h=e.computed(()=>{const s=r.name??"",i=`@${o.value}:${r.prefix}:${r.name}`;return b.iconExists(s)?s:b.iconExists(i)?i:(a==null?void 0:a.iconsCollections.find(m=>{const u=`@${o.value}:${m.prefix}:${s}`;if(b.iconExists(u))return u}))||s});function p(s){let i=null;if(typeof window>"u"){const{JSDOM:y}=require("jsdom");i=new y().window}return(i?new i.DOMParser:new window.DOMParser).parseFromString(s,"text/html").querySelector("svg")}function d(s){const i=p(s),m=(i==null?void 0:i.innerHTML.trim())||"";i&&m&&b.addIcon(`@${o.value}:${r.prefix}:${r.name}`,{body:m,height:i.viewBox.baseVal.height,width:i.viewBox.baseVal.width})}return a&&(r.src&&!b.iconExists(`@${o.value}:${r.prefix}:${r.name}`)?(n.value=!1,a.fetchIcon(r.src).then(s=>{s&&(d(s),n.value=!0)}).catch(s=>{throw new Error(`During fetch icon: ${s==null?void 0:s.message}`)})):r.svg&&d(r.svg)),(s,i)=>n.value?(e.openBlock(),e.createBlock(e.unref(b.Icon),e.mergeProps({key:0,class:e.unref(c)},{inline:s.inline,width:s.width,height:s.height,horizontalFlip:s.horizontalFlip,verticalFlip:s.verticalFlip,flip:s.flip,rotate:s.rotate,color:s.color,onLoad:s.onLoad,icon:e.unref(h)}),null,16,["class"])):e.createCommentVNode("",!0)}});function k(t){return Array.isArray(t)?t.filter(r=>z(r)).join(" "):t}function Z(t,r){const{invalid:n,valid:l,hint:a,loading:c}=r,{hintLabel:o,modelValue:h,valid:p,validLabel:d,invalid:s,invalidLabel:i,...m}=e.toRefs(t),u=A(m,"loading"),g=A(m,"loadingLabel"),y=e.computed(()=>s.value?!!(s.value&&n||i!=null&&i.value&&Array.isArray(i.value)&&i.value.length>0||i!=null&&i.value&&!$(i)):!1),B=e.computed(()=>!!(o&&o.value||a)),S=e.computed(()=>!!(d&&d.value||l)),C=e.computed(()=>!!(u!=null&&u.value&&c||u!=null&&u.value&&(g!=null&&g.value))),v=e.computed(()=>B.value||S.value||y.value||C.value);return{hasInvalid:y,hasHint:B,hasValid:S,hasLoading:C,HintSlot:{name:"HintSlot",props:{params:{type:Object,default:()=>({})}},setup(w){const O=e.computed(()=>{const V=_.toReactive({hintLabel:o,modelValue:h,valid:p,validLabel:d,invalid:s,invalidLabel:i,loading:u,loadingLabel:g,...w.params});return s!=null&&s.value?(n==null?void 0:n(V))||k(i==null?void 0:i.value)||(o==null?void 0:o.value):p!=null&&p.value?(l==null?void 0:l(V))||k(d==null?void 0:d.value)||(o==null?void 0:o.value):u!=null&&u.value?(c==null?void 0:c(V))||k(g==null?void 0:g.value)||(o==null?void 0:o.value):(a==null?void 0:a(V))||k(o==null?void 0:o.value)||(o==null?void 0:o.value)});return{isVisible:v,hasInvalid:y,hasValid:S,hintContent:O}},render(){if(this.isVisible)return e.h("small",{role:this.hasInvalid||this.hasValid?"alert":void 0},this.hintContent)}}}}const G={valid:Boolean,validLabel:[String,Array]},J={invalid:Boolean,invalidLabel:[String,Array]},U={loading:Boolean,loadingLabel:String},X={disabled:Boolean},Q={readonly:Boolean},W={modifiers:[String,Array]},Y={hintLabel:{type:String,default:""}},ee={options:{type:Array,default:()=>[]},labelKey:{type:[String,Function],default:"label"},valueKey:{type:[String,Function],default:"value"}},j={LEFT:"left",RIGHT:"right"},te={icon:{type:[String,Object]},iconPosition:{type:String,validation:t=>Object.values(j).includes(t),default:j.RIGHT}},ne={...{id:[String,Number],name:{type:String,required:!0}},...{tabindex:{type:[String,Number],default:0}},...G,...J,...Y,...U,...X,...Q,...W,...ee,...te,autocomplete:{type:String,default:"off"},autofocus:Boolean,multiple:Boolean,required:Boolean,size:[String,Number],modelValue:{type:[String,Number,Boolean,Object,Array],default:void 0},label:String,placeholder:String},re=["update:modelValue","focus","blur"],oe=["for"],se={class:"vv-select__wrapper"},ie=["id"],ae={key:0,value:void 0,disabled:""},le=["disabled","value"],ce={name:"VvSelect"};return e.defineComponent({...ce,props:ne,emits:re,setup(t,{emit:r}){const n=t,l=e.useSlots(),a=e.ref(),{HintSlot:c,hasHint:o,hasInvalid:h}=Z(n,l),{modifiers:p,disabled:d,readonly:s,loading:i,icon:m,iconPosition:u,invalid:g,valid:y}=e.toRefs(n),B=e.computed(()=>String(n.id||I.nanoid())),S=e.computed(()=>`${B.value}-hint`),{focused:C}=M(a,r),{hasIcon:v,hasIconLeft:w,hasIconRight:O}=T(m,u),V=e.computed(()=>!$(n.modelValue)),R=e.computed(()=>n.disabled||n.readonly),ue=e.computed(()=>R.value?-1:n.tabindex),de=e.computed(()=>{if(n.invalid===!0)return!0;if(n.valid===!0)return!1}),{bemCssClasses:fe}=F("vv-select",{modifiers:p,valid:y,invalid:g,loading:i,disabled:d,readonly:s,iconLeft:w,iconRight:O,dirty:V,focus:C}),pe=e.computed(()=>({name:n.name,tabindex:ue.value,disabled:R.value,required:n.required,size:n.size,autocomplete:n.autocomplete,multiple:n.multiple,"aria-invalid":de.value,"aria-describedby":!h.value&&o.value?S.value:void 0,"aria-errormessage":h.value?S.value:void 0})),{getOptionLabel:me,getOptionValue:ge}=H(n);function he(f){return typeof f=="string"||f.disabled===void 0?d.value:f.disabled}const N=e.computed({get:()=>n.modelValue,set:f=>{r("update:modelValue",f)}});return(f,q)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(e.unref(fe))},[f.label?(e.openBlock(),e.createElementBlock("label",{key:0,for:e.unref(B)},e.toDisplayString(f.label),9,oe)):e.createCommentVNode("",!0),e.createElementVNode("div",se,[e.renderSlot(f.$slots,"before",{},()=>[e.unref(w)?(e.openBlock(),e.createBlock(D,e.normalizeProps(e.mergeProps({key:0},e.unref(v))),null,16)):e.createCommentVNode("",!0)]),e.withDirectives(e.createElementVNode("select",e.mergeProps({id:e.unref(B),ref_key:"select",ref:a,"onUpdate:modelValue":q[0]||(q[0]=P=>e.isRef(N)?N.value=P:null)},e.unref(pe)),[f.placeholder?(e.openBlock(),e.createElementBlock("option",ae,e.toDisplayString(f.placeholder),1)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(f.options,(P,ye)=>(e.openBlock(),e.createElementBlock("option",{key:ye,disabled:he(P),value:e.unref(ge)(P)},e.toDisplayString(e.unref(me)(P)),9,le))),128))],16,ie),[[e.vModelSelect,e.unref(N)]]),e.renderSlot(f.$slots,"after",{},()=>[e.unref(O)?(e.openBlock(),e.createBlock(D,e.normalizeProps(e.mergeProps({key:0},e.unref(v))),null,16)):e.createCommentVNode("",!0)])]),e.createVNode(e.unref(c),{id:e.unref(S),class:"vv-select__hint"},null,8,["id"])],2))}})});
|