@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,320 @@
|
|
|
1
|
+
import { unref as f, computed as c, inject as x, toRef as D, toRefs as I, h as G, defineComponent as E, useSlots as $, ref as H, openBlock as N, createElementBlock as M, normalizeClass as T, withDirectives as Z, createElementVNode as q, isRef as w, vModelRadio as z, renderSlot as U, createTextVNode as F, toDisplayString as J, createVNode as K } from "vue";
|
|
2
|
+
import { nanoid as Q } from "nanoid";
|
|
3
|
+
import { toReactive as W } from "@vueuse/core";
|
|
4
|
+
function P(t, e, n) {
|
|
5
|
+
return n ? O(t, n) === O(e, n) : j(t, e);
|
|
6
|
+
}
|
|
7
|
+
function j(t, e) {
|
|
8
|
+
if (t === e)
|
|
9
|
+
return !0;
|
|
10
|
+
if (t && e && typeof t == "object" && typeof e == "object") {
|
|
11
|
+
const n = Array.isArray(t), l = Array.isArray(e);
|
|
12
|
+
let s, o, r;
|
|
13
|
+
if (n && l) {
|
|
14
|
+
if (o = t.length, o != e.length)
|
|
15
|
+
return !1;
|
|
16
|
+
for (s = o; s-- !== 0; )
|
|
17
|
+
if (!j(t[s], e[s]))
|
|
18
|
+
return !1;
|
|
19
|
+
return !0;
|
|
20
|
+
}
|
|
21
|
+
if (n != l)
|
|
22
|
+
return !1;
|
|
23
|
+
const d = t instanceof Date, u = e instanceof Date;
|
|
24
|
+
if (d != u)
|
|
25
|
+
return !1;
|
|
26
|
+
if (d && u)
|
|
27
|
+
return t.getTime() == e.getTime();
|
|
28
|
+
const i = t instanceof RegExp, p = e instanceof RegExp;
|
|
29
|
+
if (i != p)
|
|
30
|
+
return !1;
|
|
31
|
+
if (i && p)
|
|
32
|
+
return t.toString() == e.toString();
|
|
33
|
+
const a = Object.keys(t);
|
|
34
|
+
if (o = a.length, o !== Object.keys(e).length)
|
|
35
|
+
return !1;
|
|
36
|
+
for (s = o; s-- !== 0; )
|
|
37
|
+
if (!Object.prototype.hasOwnProperty.call(e, a[s]))
|
|
38
|
+
return !1;
|
|
39
|
+
for (s = o; s-- !== 0; )
|
|
40
|
+
if (r = a[s], !j(t[r], e[r]))
|
|
41
|
+
return !1;
|
|
42
|
+
return !0;
|
|
43
|
+
}
|
|
44
|
+
return t !== t && e !== e;
|
|
45
|
+
}
|
|
46
|
+
function O(t, e) {
|
|
47
|
+
if (t && Object.keys(t).length && e) {
|
|
48
|
+
if (e.indexOf(".") === -1)
|
|
49
|
+
return t[e];
|
|
50
|
+
{
|
|
51
|
+
const n = e.split(".");
|
|
52
|
+
let l = t;
|
|
53
|
+
for (let s = 0, o = n.length; s < o; ++s) {
|
|
54
|
+
if (t == null)
|
|
55
|
+
return null;
|
|
56
|
+
l = l[n[s]];
|
|
57
|
+
}
|
|
58
|
+
return l;
|
|
59
|
+
}
|
|
60
|
+
} else
|
|
61
|
+
return null;
|
|
62
|
+
}
|
|
63
|
+
function X(t, e) {
|
|
64
|
+
if (t != null && e && e.length) {
|
|
65
|
+
for (const n of e)
|
|
66
|
+
if (P(t, n))
|
|
67
|
+
return !0;
|
|
68
|
+
}
|
|
69
|
+
return !1;
|
|
70
|
+
}
|
|
71
|
+
function B(t) {
|
|
72
|
+
return ((e) => e == null || e === "" || Array.isArray(e) && e.length === 0 || !(e instanceof Date) && typeof e == "object" && Object.keys(e).length === 0)(f(t));
|
|
73
|
+
}
|
|
74
|
+
function Y(t) {
|
|
75
|
+
return typeof t == "string" || t instanceof String;
|
|
76
|
+
}
|
|
77
|
+
function k(t) {
|
|
78
|
+
var e, n;
|
|
79
|
+
if (t)
|
|
80
|
+
return (n = (e = t.match(
|
|
81
|
+
/[A-Z]{2,}(?=[A-Z][a-z]+[0-9]*|\b)|[A-Z]?[a-z]+[0-9]*|[A-Z]|[0-9]+/g
|
|
82
|
+
)) == null ? void 0 : e.join("-")) == null ? void 0 : n.toLowerCase();
|
|
83
|
+
}
|
|
84
|
+
function L(t, e) {
|
|
85
|
+
const n = { [`${t}`]: !0 };
|
|
86
|
+
return {
|
|
87
|
+
bemCssClasses: c(() => Object.keys(e).reduce((s, o) => {
|
|
88
|
+
const r = f(e[o]) || !1;
|
|
89
|
+
if (!r)
|
|
90
|
+
return s;
|
|
91
|
+
if (o === "modifiers") {
|
|
92
|
+
const d = Array.isArray(r) ? r : r.split(" ");
|
|
93
|
+
return {
|
|
94
|
+
...s,
|
|
95
|
+
...d.reduce(
|
|
96
|
+
(u, i) => ({
|
|
97
|
+
...u,
|
|
98
|
+
[`${t}--${k(i)}`]: !0
|
|
99
|
+
}),
|
|
100
|
+
{}
|
|
101
|
+
)
|
|
102
|
+
};
|
|
103
|
+
} else
|
|
104
|
+
return {
|
|
105
|
+
...s,
|
|
106
|
+
[`${t}--${k(o)}`]: r
|
|
107
|
+
};
|
|
108
|
+
}, n) || {})
|
|
109
|
+
};
|
|
110
|
+
}
|
|
111
|
+
const ee = {
|
|
112
|
+
valid: Boolean,
|
|
113
|
+
validLabel: [String, Array]
|
|
114
|
+
}, te = {
|
|
115
|
+
invalid: Boolean,
|
|
116
|
+
invalidLabel: [String, Array]
|
|
117
|
+
}, re = {
|
|
118
|
+
disabled: Boolean
|
|
119
|
+
}, ne = {
|
|
120
|
+
readonly: Boolean
|
|
121
|
+
}, se = {
|
|
122
|
+
hintLabel: { type: String, default: "" }
|
|
123
|
+
}, oe = {
|
|
124
|
+
tabindex: { type: [String, Number], default: 0 }
|
|
125
|
+
}, ue = {
|
|
126
|
+
id: [String, Number],
|
|
127
|
+
name: { type: String, required: !0 }
|
|
128
|
+
}, ae = {
|
|
129
|
+
...ue,
|
|
130
|
+
...oe,
|
|
131
|
+
...ee,
|
|
132
|
+
...te,
|
|
133
|
+
...se,
|
|
134
|
+
...re,
|
|
135
|
+
...ne,
|
|
136
|
+
value: [String, Number, Boolean],
|
|
137
|
+
modelValue: [Object, Number, Boolean, String],
|
|
138
|
+
label: String
|
|
139
|
+
};
|
|
140
|
+
function le(t) {
|
|
141
|
+
const e = x(t, void 0), n = c(() => !B(e));
|
|
142
|
+
function l(s, o, r) {
|
|
143
|
+
if (e != null && e.value) {
|
|
144
|
+
const u = f(e.value)[s];
|
|
145
|
+
return c({
|
|
146
|
+
get() {
|
|
147
|
+
return u == null ? void 0 : u.value;
|
|
148
|
+
},
|
|
149
|
+
set(i) {
|
|
150
|
+
u.value = i;
|
|
151
|
+
}
|
|
152
|
+
});
|
|
153
|
+
}
|
|
154
|
+
const d = D(o, s);
|
|
155
|
+
return c({
|
|
156
|
+
get() {
|
|
157
|
+
return d.value;
|
|
158
|
+
},
|
|
159
|
+
set(u) {
|
|
160
|
+
r && r(`update:${s}`, u);
|
|
161
|
+
}
|
|
162
|
+
});
|
|
163
|
+
}
|
|
164
|
+
return {
|
|
165
|
+
group: e,
|
|
166
|
+
isInGroup: n,
|
|
167
|
+
getGroupOrLocalRef: l
|
|
168
|
+
};
|
|
169
|
+
}
|
|
170
|
+
const ie = "VV_RADIO_GROUP", ce = ae, fe = ["click", "update:modelValue", "change", "blur"];
|
|
171
|
+
function de(t, e) {
|
|
172
|
+
const { group: n, isInGroup: l, getGroupOrLocalRef: s } = le(ie), o = s("modelValue", t, e), r = s("readonly", t), d = s("disabled", t), u = s("valid", t), i = s("invalid", t);
|
|
173
|
+
return {
|
|
174
|
+
group: n,
|
|
175
|
+
isInGroup: l,
|
|
176
|
+
modelValue: o,
|
|
177
|
+
readonly: r,
|
|
178
|
+
disabled: d,
|
|
179
|
+
valid: u,
|
|
180
|
+
invalid: i
|
|
181
|
+
};
|
|
182
|
+
}
|
|
183
|
+
function C(t) {
|
|
184
|
+
return Array.isArray(t) ? t.filter((e) => Y(e)).join(" ") : t;
|
|
185
|
+
}
|
|
186
|
+
function ve(t, e) {
|
|
187
|
+
const {
|
|
188
|
+
invalid: n,
|
|
189
|
+
valid: l,
|
|
190
|
+
hint: s,
|
|
191
|
+
loading: o
|
|
192
|
+
} = e, {
|
|
193
|
+
hintLabel: r,
|
|
194
|
+
modelValue: d,
|
|
195
|
+
valid: u,
|
|
196
|
+
validLabel: i,
|
|
197
|
+
invalid: p,
|
|
198
|
+
invalidLabel: a,
|
|
199
|
+
...A
|
|
200
|
+
} = I(t), v = O(A, "loading"), y = O(A, "loadingLabel"), g = c(() => p.value ? !!(p.value && n || a != null && a.value && Array.isArray(a.value) && a.value.length > 0 || a != null && a.value && !B(a)) : !1), h = c(
|
|
201
|
+
() => !!(r && r.value || s)
|
|
202
|
+
), V = c(
|
|
203
|
+
() => !!(i && i.value || l)
|
|
204
|
+
), R = c(
|
|
205
|
+
() => !!(v != null && v.value && o || v != null && v.value && (y != null && y.value))
|
|
206
|
+
), m = c(
|
|
207
|
+
() => h.value || V.value || g.value || R.value
|
|
208
|
+
);
|
|
209
|
+
return {
|
|
210
|
+
hasInvalid: g,
|
|
211
|
+
hasHint: h,
|
|
212
|
+
hasValid: V,
|
|
213
|
+
hasLoading: R,
|
|
214
|
+
HintSlot: {
|
|
215
|
+
name: "HintSlot",
|
|
216
|
+
props: {
|
|
217
|
+
params: {
|
|
218
|
+
type: Object,
|
|
219
|
+
default: () => ({})
|
|
220
|
+
}
|
|
221
|
+
},
|
|
222
|
+
setup(S) {
|
|
223
|
+
const b = c(() => {
|
|
224
|
+
const _ = W({
|
|
225
|
+
hintLabel: r,
|
|
226
|
+
modelValue: d,
|
|
227
|
+
valid: u,
|
|
228
|
+
validLabel: i,
|
|
229
|
+
invalid: p,
|
|
230
|
+
invalidLabel: a,
|
|
231
|
+
loading: v,
|
|
232
|
+
loadingLabel: y,
|
|
233
|
+
...S.params
|
|
234
|
+
});
|
|
235
|
+
return p != null && p.value ? (n == null ? void 0 : n(_)) || C(a == null ? void 0 : a.value) || (r == null ? void 0 : r.value) : u != null && u.value ? (l == null ? void 0 : l(_)) || C(i == null ? void 0 : i.value) || (r == null ? void 0 : r.value) : v != null && v.value ? (o == null ? void 0 : o(_)) || C(y == null ? void 0 : y.value) || (r == null ? void 0 : r.value) : (s == null ? void 0 : s(_)) || C(r == null ? void 0 : r.value) || (r == null ? void 0 : r.value);
|
|
236
|
+
});
|
|
237
|
+
return {
|
|
238
|
+
isVisible: m,
|
|
239
|
+
hasInvalid: g,
|
|
240
|
+
hasValid: V,
|
|
241
|
+
hintContent: b
|
|
242
|
+
};
|
|
243
|
+
},
|
|
244
|
+
render() {
|
|
245
|
+
if (this.isVisible)
|
|
246
|
+
return G(
|
|
247
|
+
"small",
|
|
248
|
+
{
|
|
249
|
+
role: this.hasInvalid || this.hasValid ? "alert" : void 0
|
|
250
|
+
},
|
|
251
|
+
this.hintContent
|
|
252
|
+
);
|
|
253
|
+
}
|
|
254
|
+
}
|
|
255
|
+
};
|
|
256
|
+
}
|
|
257
|
+
const pe = ["for"], ye = ["id", "name", "disabled", "value", "tabindex", "aria-invalid"], me = {
|
|
258
|
+
name: "VvRadio"
|
|
259
|
+
}, Ve = /* @__PURE__ */ E({
|
|
260
|
+
...me,
|
|
261
|
+
props: ce,
|
|
262
|
+
emits: fe,
|
|
263
|
+
setup(t, { emit: e }) {
|
|
264
|
+
const n = t, l = $(), { disabled: s, readonly: o, modelValue: r, valid: d, invalid: u } = de(
|
|
265
|
+
n,
|
|
266
|
+
e
|
|
267
|
+
), i = c(() => String(n.id || Q())), p = c(() => A.value ? -1 : n.tabindex), a = H(), A = c(() => s.value || o.value), v = c(() => {
|
|
268
|
+
if (u.value === !0)
|
|
269
|
+
return !0;
|
|
270
|
+
if (d.value === !0)
|
|
271
|
+
return !1;
|
|
272
|
+
}), y = c(
|
|
273
|
+
() => Array.isArray(r.value) ? X(n.value, r.value) : P(n.value, r.value)
|
|
274
|
+
), g = c(
|
|
275
|
+
() => ["string", "number", "boolean"].includes(typeof n.value) ? n.value : !0
|
|
276
|
+
), h = c({
|
|
277
|
+
get() {
|
|
278
|
+
return y.value ? g.value : null;
|
|
279
|
+
},
|
|
280
|
+
set(m) {
|
|
281
|
+
Array.isArray(r.value) ? r.value = [n.value] : r.value = n.value, e("change", m);
|
|
282
|
+
}
|
|
283
|
+
}), { bemCssClasses: V } = L("vv-radio", {
|
|
284
|
+
valid: d,
|
|
285
|
+
invalid: u,
|
|
286
|
+
disabled: s,
|
|
287
|
+
readonly: o
|
|
288
|
+
}), { HintSlot: R } = ve(n, l);
|
|
289
|
+
return (m, S) => (N(), M("label", {
|
|
290
|
+
class: T(f(V)),
|
|
291
|
+
for: f(i)
|
|
292
|
+
}, [
|
|
293
|
+
Z(q("input", {
|
|
294
|
+
id: f(i),
|
|
295
|
+
ref_key: "input",
|
|
296
|
+
ref: a,
|
|
297
|
+
"onUpdate:modelValue": S[0] || (S[0] = (b) => w(h) ? h.value = b : null),
|
|
298
|
+
type: "radio",
|
|
299
|
+
class: "vv-radio__input",
|
|
300
|
+
name: m.name,
|
|
301
|
+
disabled: f(A),
|
|
302
|
+
value: f(g),
|
|
303
|
+
tabindex: f(p),
|
|
304
|
+
"aria-invalid": f(v)
|
|
305
|
+
}, null, 8, ye), [
|
|
306
|
+
[z, f(h)]
|
|
307
|
+
]),
|
|
308
|
+
U(m.$slots, "default", { value: f(r) }, () => [
|
|
309
|
+
F(J(m.label), 1)
|
|
310
|
+
]),
|
|
311
|
+
K(f(R), {
|
|
312
|
+
class: "vv-radio__hint",
|
|
313
|
+
params: { value: f(r) }
|
|
314
|
+
}, null, 8, ["params"])
|
|
315
|
+
], 10, pe));
|
|
316
|
+
}
|
|
317
|
+
});
|
|
318
|
+
export {
|
|
319
|
+
Ve as default
|
|
320
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(function(t,h){typeof exports=="object"&&typeof module<"u"?module.exports=h(require("vue"),require("nanoid"),require("@vueuse/core")):typeof define=="function"&&define.amd?define(["vue","nanoid","@vueuse/core"],h):(t=typeof globalThis<"u"?globalThis:t||self,t.VvRadio=h(t.vue,t.nanoid,t.core))})(this,function(t,h,B){"use strict";function j(n,e,s){return s?P(n,s)===P(e,s):O(n,e)}function O(n,e){if(n===e)return!0;if(n&&e&&typeof n=="object"&&typeof e=="object"){const s=Array.isArray(n),l=Array.isArray(e);let o,i,r;if(s&&l){if(i=n.length,i!=e.length)return!1;for(o=i;o--!==0;)if(!O(n[o],e[o]))return!1;return!0}if(s!=l)return!1;const f=n instanceof Date,a=e instanceof Date;if(f!=a)return!1;if(f&&a)return n.getTime()==e.getTime();const c=n instanceof RegExp,p=e instanceof RegExp;if(c!=p)return!1;if(c&&p)return n.toString()==e.toString();const u=Object.keys(n);if(i=u.length,i!==Object.keys(e).length)return!1;for(o=i;o--!==0;)if(!Object.prototype.hasOwnProperty.call(e,u[o]))return!1;for(o=i;o--!==0;)if(r=u[o],!O(n[r],e[r]))return!1;return!0}return n!==n&&e!==e}function P(n,e){if(n&&Object.keys(n).length&&e){if(e.indexOf(".")===-1)return n[e];{const s=e.split(".");let l=n;for(let o=0,i=s.length;o<i;++o){if(n==null)return null;l=l[s[o]]}return l}}else return null}function I(n,e){if(n!=null&&e&&e.length){for(const s of e)if(j(n,s))return!0}return!1}function k(n){return(e=>e==null||e===""||Array.isArray(e)&&e.length===0||!(e instanceof Date)&&typeof e=="object"&&Object.keys(e).length===0)(t.unref(n))}function D(n){return typeof n=="string"||n instanceof String}function x(n){var e,s;if(n)return(s=(e=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:e.join("-"))==null?void 0:s.toLowerCase()}function G(n,e){const s={[`${n}`]:!0};return{bemCssClasses:t.computed(()=>Object.keys(e).reduce((o,i)=>{const r=t.unref(e[i])||!1;if(!r)return o;if(i==="modifiers"){const f=Array.isArray(r)?r:r.split(" ");return{...o,...f.reduce((a,c)=>({...a,[`${n}--${x(c)}`]:!0}),{})}}else return{...o,[`${n}--${x(i)}`]:r}},s)||{})}}const E={...{id:[String,Number],name:{type:String,required:!0}},...{tabindex:{type:[String,Number],default:0}},...{valid:Boolean,validLabel:[String,Array]},...{invalid:Boolean,invalidLabel:[String,Array]},...{hintLabel:{type:String,default:""}},...{disabled:Boolean},...{readonly:Boolean},value:[String,Number,Boolean],modelValue:[Object,Number,Boolean,String],label:String};function H(n){const e=t.inject(n,void 0),s=t.computed(()=>!k(e));function l(o,i,r){if(e!=null&&e.value){const a=t.unref(e.value)[o];return t.computed({get(){return a==null?void 0:a.value},set(c){a.value=c}})}const f=t.toRef(i,o);return t.computed({get(){return f.value},set(a){r&&r(`update:${o}`,a)}})}return{group:e,isInGroup:s,getGroupOrLocalRef:l}}const N="VV_RADIO_GROUP",T=E,$=["click","update:modelValue","change","blur"];function q(n,e){const{group:s,isInGroup:l,getGroupOrLocalRef:o}=H(N),i=o("modelValue",n,e),r=o("readonly",n),f=o("disabled",n),a=o("valid",n),c=o("invalid",n);return{group:s,isInGroup:l,modelValue:i,readonly:r,disabled:f,valid:a,invalid:c}}function R(n){return Array.isArray(n)?n.filter(e=>D(e)).join(" "):n}function M(n,e){const{invalid:s,valid:l,hint:o,loading:i}=e,{hintLabel:r,modelValue:f,valid:a,validLabel:c,invalid:p,invalidLabel:u,...A}=t.toRefs(n),d=P(A,"loading"),m=P(A,"loadingLabel"),g=t.computed(()=>p.value?!!(p.value&&s||u!=null&&u.value&&Array.isArray(u.value)&&u.value.length>0||u!=null&&u.value&&!k(u)):!1),v=t.computed(()=>!!(r&&r.value||o)),V=t.computed(()=>!!(c&&c.value||l)),_=t.computed(()=>!!(d!=null&&d.value&&i||d!=null&&d.value&&(m!=null&&m.value))),y=t.computed(()=>v.value||V.value||g.value||_.value);return{hasInvalid:g,hasHint:v,hasValid:V,hasLoading:_,HintSlot:{name:"HintSlot",props:{params:{type:Object,default:()=>({})}},setup(S){const b=t.computed(()=>{const C=B.toReactive({hintLabel:r,modelValue:f,valid:a,validLabel:c,invalid:p,invalidLabel:u,loading:d,loadingLabel:m,...S.params});return p!=null&&p.value?(s==null?void 0:s(C))||R(u==null?void 0:u.value)||(r==null?void 0:r.value):a!=null&&a.value?(l==null?void 0:l(C))||R(c==null?void 0:c.value)||(r==null?void 0:r.value):d!=null&&d.value?(i==null?void 0:i(C))||R(m==null?void 0:m.value)||(r==null?void 0:r.value):(o==null?void 0:o(C))||R(r==null?void 0:r.value)||(r==null?void 0:r.value)});return{isVisible:y,hasInvalid:g,hasValid:V,hintContent:b}},render(){if(this.isVisible)return t.h("small",{role:this.hasInvalid||this.hasValid?"alert":void 0},this.hintContent)}}}}const Z=["for"],w=["id","name","disabled","value","tabindex","aria-invalid"],z={name:"VvRadio"};return t.defineComponent({...z,props:T,emits:$,setup(n,{emit:e}){const s=n,l=t.useSlots(),{disabled:o,readonly:i,modelValue:r,valid:f,invalid:a}=q(s,e),c=t.computed(()=>String(s.id||h.nanoid())),p=t.computed(()=>A.value?-1:s.tabindex),u=t.ref(),A=t.computed(()=>o.value||i.value),d=t.computed(()=>{if(a.value===!0)return!0;if(f.value===!0)return!1}),m=t.computed(()=>Array.isArray(r.value)?I(s.value,r.value):j(s.value,r.value)),g=t.computed(()=>["string","number","boolean"].includes(typeof s.value)?s.value:!0),v=t.computed({get(){return m.value?g.value:null},set(y){Array.isArray(r.value)?r.value=[s.value]:r.value=s.value,e("change",y)}}),{bemCssClasses:V}=G("vv-radio",{valid:f,invalid:a,disabled:o,readonly:i}),{HintSlot:_}=M(s,l);return(y,S)=>(t.openBlock(),t.createElementBlock("label",{class:t.normalizeClass(t.unref(V)),for:t.unref(c)},[t.withDirectives(t.createElementVNode("input",{id:t.unref(c),ref_key:"input",ref:u,"onUpdate:modelValue":S[0]||(S[0]=b=>t.isRef(v)?v.value=b:null),type:"radio",class:"vv-radio__input",name:y.name,disabled:t.unref(A),value:t.unref(g),tabindex:t.unref(p),"aria-invalid":t.unref(d)},null,8,w),[[t.vModelRadio,t.unref(v)]]),t.renderSlot(y.$slots,"default",{value:t.unref(r)},()=>[t.createTextVNode(t.toDisplayString(y.label),1)]),t.createVNode(t.unref(_),{class:"vv-radio__hint",params:{value:t.unref(r)}},null,8,["params"])],10,Z))}})});
|
|
@@ -1,136 +1,66 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
label: string;
|
|
9
|
-
error: boolean;
|
|
10
|
-
valid: boolean;
|
|
11
|
-
}> & Omit<Readonly<import("vue").ExtractPropTypes<{
|
|
12
|
-
value: null;
|
|
13
|
-
modelValue: {
|
|
14
|
-
type: (StringConstructor | BooleanConstructor | ObjectConstructor | NumberConstructor)[];
|
|
15
|
-
};
|
|
16
|
-
label: {
|
|
17
|
-
type: StringConstructor;
|
|
18
|
-
default: string;
|
|
19
|
-
};
|
|
20
|
-
disabled: BooleanConstructor;
|
|
21
|
-
readonly: BooleanConstructor;
|
|
22
|
-
error: BooleanConstructor;
|
|
23
|
-
errorLabel: (StringConstructor | ArrayConstructor)[];
|
|
24
|
-
valid: BooleanConstructor;
|
|
25
|
-
validLabel: (StringConstructor | ArrayConstructor)[];
|
|
26
|
-
}>> & {
|
|
27
|
-
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
28
|
-
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "disabled" | "readonly" | "label" | "error" | "valid">;
|
|
29
|
-
$attrs: {
|
|
30
|
-
[x: string]: unknown;
|
|
31
|
-
};
|
|
32
|
-
$refs: {
|
|
33
|
-
[x: string]: unknown;
|
|
34
|
-
};
|
|
35
|
-
$slots: Readonly<{
|
|
36
|
-
[name: string]: import("vue").Slot | undefined;
|
|
37
|
-
}>;
|
|
38
|
-
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null;
|
|
39
|
-
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null;
|
|
40
|
-
$emit: (event: string, ...args: any[]) => void;
|
|
41
|
-
$el: any;
|
|
42
|
-
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
43
|
-
value: null;
|
|
44
|
-
modelValue: {
|
|
45
|
-
type: (StringConstructor | BooleanConstructor | ObjectConstructor | NumberConstructor)[];
|
|
46
|
-
};
|
|
47
|
-
label: {
|
|
48
|
-
type: StringConstructor;
|
|
49
|
-
default: string;
|
|
50
|
-
};
|
|
51
|
-
disabled: BooleanConstructor;
|
|
52
|
-
readonly: BooleanConstructor;
|
|
53
|
-
error: BooleanConstructor;
|
|
54
|
-
errorLabel: (StringConstructor | ArrayConstructor)[];
|
|
55
|
-
valid: BooleanConstructor;
|
|
56
|
-
validLabel: (StringConstructor | ArrayConstructor)[];
|
|
57
|
-
}>> & {
|
|
58
|
-
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
59
|
-
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, string[], string, {
|
|
60
|
-
disabled: boolean;
|
|
61
|
-
readonly: boolean;
|
|
62
|
-
label: string;
|
|
63
|
-
error: boolean;
|
|
64
|
-
valid: boolean;
|
|
65
|
-
}, {}, string> & {
|
|
66
|
-
beforeCreate?: ((() => void) | (() => void)[]) | undefined;
|
|
67
|
-
created?: ((() => void) | (() => void)[]) | undefined;
|
|
68
|
-
beforeMount?: ((() => void) | (() => void)[]) | undefined;
|
|
69
|
-
mounted?: ((() => void) | (() => void)[]) | undefined;
|
|
70
|
-
beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
|
|
71
|
-
updated?: ((() => void) | (() => void)[]) | undefined;
|
|
72
|
-
activated?: ((() => void) | (() => void)[]) | undefined;
|
|
73
|
-
deactivated?: ((() => void) | (() => void)[]) | undefined;
|
|
74
|
-
beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
|
|
75
|
-
beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
|
|
76
|
-
destroyed?: ((() => void) | (() => void)[]) | undefined;
|
|
77
|
-
unmounted?: ((() => void) | (() => void)[]) | undefined;
|
|
78
|
-
renderTracked?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
|
|
79
|
-
renderTriggered?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
|
|
80
|
-
errorCaptured?: (((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null, info: string) => boolean | void)[]) | undefined;
|
|
81
|
-
};
|
|
82
|
-
$forceUpdate: () => void;
|
|
83
|
-
$nextTick: typeof import("vue").nextTick;
|
|
84
|
-
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (args_0: R, args_1: R) => any : (...args: any) => any, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
|
|
85
|
-
} & Readonly<import("vue").ExtractPropTypes<{
|
|
86
|
-
value: null;
|
|
87
|
-
modelValue: {
|
|
88
|
-
type: (StringConstructor | BooleanConstructor | ObjectConstructor | NumberConstructor)[];
|
|
89
|
-
};
|
|
90
|
-
label: {
|
|
91
|
-
type: StringConstructor;
|
|
92
|
-
default: string;
|
|
93
|
-
};
|
|
94
|
-
disabled: BooleanConstructor;
|
|
95
|
-
readonly: BooleanConstructor;
|
|
96
|
-
error: BooleanConstructor;
|
|
97
|
-
errorLabel: (StringConstructor | ArrayConstructor)[];
|
|
98
|
-
valid: BooleanConstructor;
|
|
99
|
-
validLabel: (StringConstructor | ArrayConstructor)[];
|
|
100
|
-
}>> & {
|
|
101
|
-
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
102
|
-
} & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties & {};
|
|
103
|
-
__isFragment?: undefined;
|
|
104
|
-
__isTeleport?: undefined;
|
|
105
|
-
__isSuspense?: undefined;
|
|
106
|
-
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
107
|
-
value: null;
|
|
108
|
-
modelValue: {
|
|
109
|
-
type: (StringConstructor | BooleanConstructor | ObjectConstructor | NumberConstructor)[];
|
|
110
|
-
};
|
|
111
|
-
label: {
|
|
1
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
2
|
+
value: (StringConstructor | BooleanConstructor | NumberConstructor)[];
|
|
3
|
+
modelValue: (ObjectConstructor | StringConstructor | BooleanConstructor | NumberConstructor)[];
|
|
4
|
+
label: StringConstructor;
|
|
5
|
+
readonly: BooleanConstructor;
|
|
6
|
+
disabled: BooleanConstructor;
|
|
7
|
+
hintLabel: {
|
|
112
8
|
type: StringConstructor;
|
|
113
9
|
default: string;
|
|
114
10
|
};
|
|
115
|
-
|
|
11
|
+
invalid: BooleanConstructor;
|
|
12
|
+
invalidLabel: (ArrayConstructor | StringConstructor)[];
|
|
13
|
+
valid: BooleanConstructor;
|
|
14
|
+
validLabel: (ArrayConstructor | StringConstructor)[];
|
|
15
|
+
tabindex: {
|
|
16
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
17
|
+
default: number;
|
|
18
|
+
};
|
|
19
|
+
id: (StringConstructor | NumberConstructor)[];
|
|
20
|
+
name: {
|
|
21
|
+
type: StringConstructor;
|
|
22
|
+
required: boolean;
|
|
23
|
+
};
|
|
24
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, string[], string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
25
|
+
value: (StringConstructor | BooleanConstructor | NumberConstructor)[];
|
|
26
|
+
modelValue: (ObjectConstructor | StringConstructor | BooleanConstructor | NumberConstructor)[];
|
|
27
|
+
label: StringConstructor;
|
|
116
28
|
readonly: BooleanConstructor;
|
|
117
|
-
|
|
118
|
-
|
|
29
|
+
disabled: BooleanConstructor;
|
|
30
|
+
hintLabel: {
|
|
31
|
+
type: StringConstructor;
|
|
32
|
+
default: string;
|
|
33
|
+
};
|
|
34
|
+
invalid: BooleanConstructor;
|
|
35
|
+
invalidLabel: (ArrayConstructor | StringConstructor)[];
|
|
119
36
|
valid: BooleanConstructor;
|
|
120
|
-
validLabel: (
|
|
37
|
+
validLabel: (ArrayConstructor | StringConstructor)[];
|
|
38
|
+
tabindex: {
|
|
39
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
40
|
+
default: number;
|
|
41
|
+
};
|
|
42
|
+
id: (StringConstructor | NumberConstructor)[];
|
|
43
|
+
name: {
|
|
44
|
+
type: StringConstructor;
|
|
45
|
+
required: boolean;
|
|
46
|
+
};
|
|
121
47
|
}>> & {
|
|
122
48
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
123
|
-
}, {
|
|
49
|
+
}, {
|
|
124
50
|
disabled: boolean;
|
|
125
51
|
readonly: boolean;
|
|
126
|
-
|
|
127
|
-
|
|
52
|
+
hintLabel: string;
|
|
53
|
+
invalid: boolean;
|
|
128
54
|
valid: boolean;
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
});
|
|
55
|
+
tabindex: string | number;
|
|
56
|
+
}>, {
|
|
57
|
+
default: (_: {
|
|
58
|
+
value: string | number | boolean | Record<string, any> | undefined;
|
|
59
|
+
}) => any;
|
|
60
|
+
}>;
|
|
136
61
|
export default _default;
|
|
62
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
63
|
+
new (): {
|
|
64
|
+
$slots: S;
|
|
65
|
+
};
|
|
66
|
+
};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import type { ExtractPropTypes, Ref } from 'vue';
|
|
2
|
+
import type { IInputGroupState } from '@/composables/group/types/IInputGroup';
|
|
3
|
+
export declare const VvRadioProps: {
|
|
4
|
+
value: (StringConstructor | BooleanConstructor | NumberConstructor)[];
|
|
5
|
+
modelValue: (ObjectConstructor | StringConstructor | BooleanConstructor | NumberConstructor)[];
|
|
6
|
+
label: StringConstructor;
|
|
7
|
+
readonly: BooleanConstructor;
|
|
8
|
+
disabled: BooleanConstructor;
|
|
9
|
+
hintLabel: {
|
|
10
|
+
type: StringConstructor;
|
|
11
|
+
default: string;
|
|
12
|
+
};
|
|
13
|
+
invalid: BooleanConstructor;
|
|
14
|
+
invalidLabel: (ArrayConstructor | StringConstructor)[];
|
|
15
|
+
valid: BooleanConstructor;
|
|
16
|
+
validLabel: (ArrayConstructor | StringConstructor)[];
|
|
17
|
+
tabindex: {
|
|
18
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
19
|
+
default: number;
|
|
20
|
+
};
|
|
21
|
+
id: (StringConstructor | NumberConstructor)[];
|
|
22
|
+
name: {
|
|
23
|
+
type: StringConstructor;
|
|
24
|
+
required: boolean;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
export declare const VvRadioEvents: string[];
|
|
28
|
+
export type VvRadioPropsType = ExtractPropTypes<typeof VvRadioProps>;
|
|
29
|
+
/**
|
|
30
|
+
* Merges local and group props
|
|
31
|
+
*/
|
|
32
|
+
export declare function useGroupProps(props: VvRadioPropsType, emit: (event: (typeof VvRadioEvents)[number], value: unknown) => void): {
|
|
33
|
+
group: Ref<IInputGroupState> | undefined;
|
|
34
|
+
isInGroup: import("vue").ComputedRef<boolean>;
|
|
35
|
+
modelValue: import("vue").WritableComputedRef<unknown>;
|
|
36
|
+
readonly: Ref<boolean>;
|
|
37
|
+
disabled: Ref<boolean>;
|
|
38
|
+
valid: Ref<boolean>;
|
|
39
|
+
invalid: Ref<boolean>;
|
|
40
|
+
};
|