@volverjs/ui-vue 0.0.1-beta.8 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +108 -56
- package/bin/icons.cjs +73 -0
- package/bin/icons.js +75 -0
- package/dist/{DesignSystem.d.ts → Volver.d.ts} +22 -18
- package/dist/components/VvAccordion/VvAccordion.es.js +165 -0
- package/dist/components/VvAccordion/VvAccordion.umd.js +1 -0
- package/dist/components/VvAccordion/VvAccordion.vue.d.ts +32 -97
- package/dist/components/VvAccordion/index.d.ts +46 -0
- package/dist/components/VvAccordionGroup/VvAccordionGroup.es.js +243 -0
- package/dist/components/VvAccordionGroup/VvAccordionGroup.umd.js +1 -0
- package/dist/components/VvAccordionGroup/VvAccordionGroup.vue.d.ts +77 -151
- package/dist/components/VvAccordionGroup/{VvAccordionGroup.d.ts → index.d.ts} +30 -13
- package/dist/components/VvBadge/VvBadge.es.js +62 -0
- package/dist/components/VvBadge/VvBadge.umd.js +1 -0
- package/dist/components/VvBadge/VvBadge.vue.d.ts +13 -54
- package/dist/components/VvBadge/{VvBadge.d.ts → index.d.ts} +1 -1
- package/dist/components/VvBreadcrumb/VvBreadcrumb.es.js +93 -0
- package/dist/components/VvBreadcrumb/VvBreadcrumb.umd.js +1 -0
- package/dist/components/VvBreadcrumb/VvBreadcrumb.vue.d.ts +33 -107
- package/dist/components/VvBreadcrumb/{VvBreadcrumb.d.ts → index.d.ts} +2 -3
- package/dist/components/VvButton/VvButton.es.js +439 -0
- package/dist/components/VvButton/VvButton.umd.js +1 -0
- package/dist/components/VvButton/VvButton.vue.d.ts +100 -199
- package/dist/components/VvButton/index.d.ts +132 -0
- package/dist/components/VvButtonGroup/VvButtonGroup.es.js +107 -0
- package/dist/components/VvButtonGroup/VvButtonGroup.umd.js +1 -0
- package/dist/components/VvButtonGroup/VvButtonGroup.vue.d.ts +92 -186
- package/dist/components/VvButtonGroup/index.d.ts +54 -0
- package/dist/components/VvCard/VvCard.es.js +77 -0
- package/dist/components/VvCard/VvCard.umd.js +1 -0
- package/dist/components/VvCard/VvCard.vue.d.ts +16 -61
- package/dist/components/VvCard/{VvCard.d.ts → index.d.ts} +1 -1
- package/dist/components/VvCheckbox/VvCheckbox.es.js +357 -0
- package/dist/components/VvCheckbox/VvCheckbox.umd.js +1 -0
- package/dist/components/VvCheckbox/VvCheckbox.vue.d.ts +74 -0
- package/dist/components/VvCheckbox/index.d.ts +54 -0
- package/dist/components/VvCheckboxGroup/VvCheckboxGroup.es.js +435 -0
- package/dist/components/VvCheckboxGroup/VvCheckboxGroup.umd.js +1 -0
- package/dist/components/VvCheckboxGroup/VvCheckboxGroup.vue.d.ts +82 -0
- package/dist/components/VvCheckboxGroup/index.d.ts +32 -0
- package/dist/components/VvCombobox/VvCombobox.es.js +775 -0
- package/dist/components/VvCombobox/VvCombobox.umd.js +1 -0
- package/dist/components/VvCombobox/VvCombobox.vue.d.ts +175 -0
- package/dist/components/VvCombobox/index.d.ts +108 -0
- package/dist/components/VvDialog/VvDialog.es.js +200 -0
- package/dist/components/VvDialog/VvDialog.umd.js +1 -0
- package/dist/components/VvDialog/VvDialog.vue.d.ts +28 -132
- package/dist/components/VvDialog/{VvDialog.d.ts → index.d.ts} +2 -6
- package/dist/components/VvDropdown/VvDropdown.es.js +227 -0
- package/dist/components/VvDropdown/VvDropdown.umd.js +1 -0
- package/dist/components/VvDropdown/VvDropdown.vue.d.ts +59 -146
- package/dist/components/VvDropdown/index.d.ts +49 -0
- package/dist/components/VvIcon/VvIcon.es.js +124 -0
- package/dist/components/VvIcon/VvIcon.umd.js +1 -0
- package/dist/components/VvIcon/VvIcon.vue.d.ts +36 -150
- package/dist/components/VvIcon/{VvIcon.d.ts → index.d.ts} +9 -0
- package/dist/components/VvInputText/VvInputClearAction.d.ts +36 -0
- package/dist/components/VvInputText/VvInputPasswordAction.d.ts +56 -0
- package/dist/components/VvInputText/VvInputStepAction.d.ts +37 -0
- package/dist/components/VvInputText/VvInputText.es.js +772 -0
- package/dist/components/VvInputText/VvInputText.umd.js +1 -0
- package/dist/components/VvInputText/VvInputText.vue.d.ts +211 -288
- package/dist/components/VvInputText/VvInputTextActions.d.ts +1 -1
- package/dist/components/VvInputText/index.d.ts +182 -0
- package/dist/components/VvProgress/VvProgress.es.js +71 -0
- package/dist/components/VvProgress/VvProgress.umd.js +1 -0
- package/dist/components/VvProgress/VvProgress.vue.d.ts +20 -107
- package/dist/components/VvProgress/index.d.ts +30 -0
- package/dist/components/VvRadio/VvRadio.es.js +320 -0
- package/dist/components/VvRadio/VvRadio.umd.js +1 -0
- package/dist/components/VvRadio/VvRadio.vue.d.ts +55 -125
- package/dist/components/VvRadio/index.d.ts +40 -0
- package/dist/components/VvRadioGroup/VvRadioGroup.es.js +398 -0
- package/dist/components/VvRadioGroup/VvRadioGroup.umd.js +1 -0
- package/dist/components/VvRadioGroup/VvRadioGroup.vue.d.ts +56 -238
- package/dist/components/VvRadioGroup/index.d.ts +32 -0
- package/dist/components/VvSelect/VvSelect.es.js +434 -0
- package/dist/components/VvSelect/VvSelect.umd.js +1 -0
- package/dist/components/VvSelect/VvSelect.vue.d.ts +125 -263
- package/dist/components/VvSelect/index.d.ts +89 -0
- package/dist/components/VvTextarea/VvTextarea.es.js +471 -0
- package/dist/components/VvTextarea/VvTextarea.umd.js +1 -0
- package/dist/components/VvTextarea/VvTextarea.vue.d.ts +140 -321
- package/dist/components/VvTextarea/index.d.ts +102 -0
- package/dist/components/common/HintSlot.d.ts +12 -6
- package/dist/components/index.d.ts +19 -12
- package/dist/components/index.es.js +2379 -0
- package/dist/components/index.umd.js +1 -0
- package/dist/composables/group/types/IAccordionGroupState.d.ts +3 -4
- package/dist/composables/group/types/IButtonGroupState.d.ts +5 -11
- package/dist/composables/group/types/IGroupState.d.ts +3 -6
- package/dist/composables/group/types/IInputGroup.d.ts +1 -4
- package/dist/composables/group/useInjectedGroupState.d.ts +4 -4
- package/dist/composables/group/useProvideGroupState.d.ts +2 -2
- package/dist/composables/useComponentFocus.d.ts +4 -0
- package/dist/composables/{icons/useComponentIcons.d.ts → useComponentIcons.d.ts} +3 -2
- package/dist/composables/useDebouncedInput.d.ts +2 -0
- package/dist/composables/useOptions.d.ts +6 -0
- package/dist/composables/useTextCount.d.ts +10 -0
- package/dist/constants.d.ts +4 -4
- package/dist/icons.d.ts +1881 -0
- package/dist/icons.es.js +12 -14
- package/dist/icons.umd.js +1 -1
- package/dist/index.d.ts +9 -4
- package/dist/index.es.js +2420 -0
- package/dist/index.umd.js +1 -0
- package/dist/props/index.d.ts +328 -30
- package/dist/resolvers/unplugin.d.ts +27 -0
- package/dist/resolvers/unplugin.es.js +42 -0
- package/dist/resolvers/unplugin.umd.js +1 -0
- package/dist/stories/Accordion/Accordion.settings.d.ts +63 -0
- package/dist/stories/Accordion/Accordion.test.d.ts +2 -0
- package/dist/stories/AccordionGroup/AccordionGroup.settings.d.ts +58 -0
- package/dist/stories/AccordionGroup/AccordionGroup.test.d.ts +2 -0
- package/dist/stories/Badge/Badge.settings.d.ts +32 -0
- package/dist/stories/Badge/Badge.test.d.ts +2 -0
- package/dist/stories/Breadcrumb/Breadcrumb.settings.d.ts +29 -0
- package/dist/stories/Breadcrumb/Breadcrumb.test.d.ts +2 -0
- package/dist/stories/Button/Button.settings.d.ts +198 -0
- package/dist/stories/Button/Button.test.d.ts +1 -10
- package/dist/stories/ButtonGroup/ButtonGroup.settings.d.ts +47 -0
- package/dist/stories/ButtonGroup/ButtonGroup.test.d.ts +2 -0
- package/dist/stories/Card/Card.settings.d.ts +70 -0
- package/dist/stories/Card/Card.test.d.ts +2 -0
- package/dist/stories/Checkbox/Checkbox.settings.d.ts +165 -0
- package/dist/stories/Checkbox/Checkbox.test.d.ts +2 -0
- package/dist/stories/CheckboxGroup/CheckboxGroup.settings.d.ts +164 -0
- package/dist/stories/CheckboxGroup/CheckboxGroup.test.d.ts +2 -0
- package/dist/stories/Combobox/Combobox.settings.d.ts +286 -0
- package/dist/stories/Combobox/Combobox.test.d.ts +2 -0
- package/dist/stories/Dialog/Dialog.settings.d.ts +55 -0
- package/dist/stories/Dialog/Dialog.test.d.ts +2 -0
- package/dist/stories/Dropdown/Dropdown.settings.d.ts +85 -0
- package/dist/stories/Dropdown/Dropdown.test.d.ts +2 -0
- package/dist/stories/Icon/Icon.settings.d.ts +74 -0
- package/dist/stories/InputText/InputText.settings.d.ts +445 -0
- package/dist/stories/InputText/InputText.test.d.ts +2 -0
- package/dist/stories/Progress/Progress.settings.d.ts +38 -0
- package/dist/stories/Progress/Progress.test.d.ts +2 -0
- package/dist/stories/Radio/Radio.settings.d.ts +139 -0
- package/dist/stories/Radio/Radio.test.d.ts +2 -0
- package/dist/stories/RadioGroup/RadioGroup.settings.d.ts +164 -0
- package/dist/stories/RadioGroup/RadioGroup.test.d.ts +2 -0
- package/dist/stories/Select/Select.settings.d.ts +284 -0
- package/dist/stories/Select/Select.test.d.ts +2 -0
- package/dist/stories/Textarea/Textarea.settings.d.ts +336 -0
- package/dist/stories/Textarea/Textarea.test.d.ts +2 -0
- package/dist/stories/argTypes.d.ts +842 -0
- package/dist/test/expect.d.ts +3 -0
- package/dist/test/options.d.ts +1 -0
- package/dist/test/sleep.d.ts +1 -0
- package/dist/utils/ObjectUtilities.d.ts +82 -95
- package/env.d.ts +1 -0
- package/package.json +199 -126
- package/src/{DesignSystem.ts → Volver.ts} +57 -29
- package/src/assets/icons/detailed.json +1 -1
- package/src/assets/icons/normal.json +1 -1
- package/src/assets/icons/simple.json +1 -1
- package/src/components/VvAccordion/VvAccordion.vue +94 -78
- package/src/components/VvAccordion/index.ts +72 -0
- package/src/components/VvAccordionGroup/VvAccordionGroup.vue +93 -53
- package/src/components/VvAccordionGroup/{VvAccordionGroup.ts → index.ts} +18 -14
- package/src/components/VvBadge/VvBadge.vue +17 -8
- package/src/components/VvBadge/index.ts +6 -0
- package/src/components/VvBreadcrumb/VvBreadcrumb.vue +26 -24
- package/src/components/VvBreadcrumb/{VvBreadcrumb.ts → index.ts} +1 -2
- package/src/components/VvButton/VvButton.vue +174 -153
- package/src/components/VvButton/index.ts +189 -0
- package/src/components/VvButtonGroup/VvButtonGroup.vue +76 -48
- package/src/components/VvButtonGroup/index.ts +16 -0
- package/src/components/VvCard/VvCard.vue +20 -22
- package/src/components/VvCard/{VvCard.ts → index.ts} +1 -1
- package/src/components/VvCheckbox/VvCheckbox.vue +172 -0
- package/src/components/VvCheckbox/index.ts +60 -0
- package/src/components/VvCheckboxGroup/VvCheckboxGroup.vue +85 -0
- package/src/components/VvCheckboxGroup/index.ts +5 -0
- package/src/components/VvCombobox/VvCombobox.vue +261 -0
- package/src/components/VvCombobox/index.ts +88 -0
- package/src/components/VvDialog/VvDialog.vue +69 -67
- package/src/components/VvDialog/index.ts +10 -0
- package/src/components/VvDropdown/VvDropdown.vue +115 -114
- package/src/components/VvDropdown/index.ts +35 -0
- package/src/components/VvIcon/README.md +64 -0
- package/src/components/VvIcon/VvIcon.vue +122 -107
- package/src/components/VvIcon/{VvIcon.ts → index.ts} +17 -8
- package/src/components/VvInputText/VvInputClearAction.ts +53 -0
- package/src/components/VvInputText/VvInputPasswordAction.ts +70 -0
- package/src/components/VvInputText/VvInputStepAction.ts +49 -0
- package/src/components/VvInputText/VvInputText.vue +307 -238
- package/src/components/VvInputText/VvInputTextActions.ts +63 -114
- package/src/components/VvInputText/index.ts +140 -0
- package/src/components/VvProgress/VvProgress.vue +29 -29
- package/src/components/VvProgress/index.ts +32 -0
- package/src/components/VvRadio/VvRadio.vue +90 -119
- package/src/components/VvRadio/index.ts +40 -0
- package/src/components/VvRadioGroup/VvRadioGroup.vue +76 -69
- package/src/components/VvRadioGroup/index.ts +5 -0
- package/src/components/VvSelect/VvSelect.vue +187 -186
- package/src/components/VvSelect/index.ts +71 -0
- package/src/components/VvTextarea/VvTextarea.vue +188 -174
- package/src/components/VvTextarea/index.ts +50 -0
- package/src/components/common/HintSlot.ts +167 -137
- package/src/components/index.ts +19 -12
- package/src/composables/group/types/IAccordionGroupState.ts +3 -4
- package/src/composables/group/types/IButtonGroupState.ts +5 -11
- package/src/composables/group/types/IGroupState.ts +4 -6
- package/src/composables/group/types/IInputGroup.ts +1 -4
- package/src/composables/group/useInjectedGroupState.ts +23 -35
- package/src/composables/group/useProvideGroupState.ts +5 -7
- package/src/composables/useComponentFocus.ts +17 -0
- package/src/composables/{icons/useComponentIcons.ts → useComponentIcons.ts} +29 -20
- package/src/composables/useDebouncedInput.ts +25 -0
- package/src/composables/useModifiers.ts +18 -20
- package/src/composables/useOptions.ts +31 -0
- package/src/composables/useTextCount.ts +57 -0
- package/src/constants.ts +5 -7
- package/src/directives/{.README → .gitkeep} +0 -0
- package/src/icons.ts +7 -0
- package/src/index.ts +12 -5
- package/src/props/index.ts +204 -36
- package/src/resolvers/unplugin.ts +112 -0
- package/src/shims.d.ts +13 -0
- package/src/stories/Accordion/Accordion.settings.ts +46 -0
- package/src/stories/Accordion/Accordion.stories.mdx +21 -21
- package/src/stories/Accordion/Accordion.test.ts +61 -0
- package/src/stories/Accordion/AccordionSlots.stories.mdx +46 -70
- package/src/stories/AccordionGroup/AccordionGroup.settings.ts +55 -0
- package/src/stories/AccordionGroup/AccordionGroup.stories.mdx +24 -27
- package/src/stories/AccordionGroup/AccordionGroup.test.ts +50 -0
- package/src/stories/AccordionGroup/AccordionGroupSlots.stories.mdx +56 -0
- package/src/stories/Badge/Badge.settings.ts +26 -0
- package/src/stories/Badge/Badge.stories.mdx +36 -24
- package/src/stories/Badge/Badge.test.ts +12 -0
- package/src/stories/Badge/BadgeSlots.stories.mdx +20 -0
- package/src/stories/Breadcrumb/Breadcrumb.settings.ts +41 -0
- package/src/stories/Breadcrumb/Breadcrumb.stories.mdx +32 -29
- package/src/stories/Breadcrumb/Breadcrumb.test.ts +50 -0
- package/src/stories/Breadcrumb/BreadcrumbSlots.stories.mdx +43 -0
- package/src/stories/Button/Button.settings.ts +145 -0
- package/src/stories/Button/Button.stories.mdx +20 -54
- package/src/stories/Button/Button.test.ts +35 -46
- package/src/stories/Button/ButtonIcon.stories.mdx +139 -29
- package/src/stories/Button/ButtonLink.stories.mdx +58 -111
- package/src/stories/Button/ButtonLoading.stories.mdx +89 -62
- package/src/stories/Button/ButtonModifiers.stories.mdx +198 -121
- package/src/stories/Button/ButtonSlots.stories.mdx +83 -95
- package/src/stories/Button/ButtonState.stories.mdx +75 -0
- package/src/stories/Button/ButtonToggle.stories.mdx +50 -0
- package/src/stories/ButtonGroup/ButtonGroup.settings.ts +33 -0
- package/src/stories/ButtonGroup/ButtonGroup.stories.mdx +16 -18
- package/src/stories/ButtonGroup/ButtonGroup.test.ts +35 -0
- package/src/stories/ButtonGroup/ButtonGroupModifiers.stories.mdx +52 -0
- package/src/stories/ButtonGroup/ButtonGroupSlots.stories.mdx +37 -0
- package/src/stories/ButtonGroup/ButtonGroupToggle.stories.mdx +52 -110
- package/src/stories/Card/Card.settings.ts +55 -0
- package/src/stories/Card/Card.stories.mdx +27 -11
- package/src/stories/Card/Card.test.ts +23 -0
- package/src/stories/Card/CardSlots.stories.mdx +80 -24
- package/src/stories/Checkbox/Checkbox.settings.ts +43 -0
- package/src/stories/Checkbox/Checkbox.stories.mdx +163 -0
- package/src/stories/Checkbox/Checkbox.test.ts +81 -0
- package/src/stories/Checkbox/CheckboxBinary.stories.mdx +68 -0
- package/src/stories/Checkbox/CheckboxSlots.stories.mdx +46 -0
- package/src/stories/CheckboxGroup/CheckboxGroup.settings.ts +15 -0
- package/src/stories/CheckboxGroup/CheckboxGroup.stories.mdx +134 -0
- package/src/stories/CheckboxGroup/CheckboxGroup.test.ts +83 -0
- package/src/stories/CheckboxGroup/CheckboxGroupOptions.stories.mdx +100 -0
- package/src/stories/CheckboxGroup/CheckboxGroupSlots.stories.mdx +67 -0
- package/src/stories/Combobox/Combobox.settings.ts +127 -0
- package/src/stories/Combobox/Combobox.stories.mdx +204 -0
- package/src/stories/Combobox/Combobox.test.ts +103 -0
- package/src/stories/Combobox/ComboboxMultiple.stories.mdx +74 -0
- package/src/stories/Combobox/ComboboxOptions.stories.mdx +100 -0
- package/src/stories/Combobox/ComboboxSlots.stories.mdx +48 -0
- package/src/stories/Dialog/Dialog.settings.ts +45 -0
- package/src/stories/Dialog/Dialog.stories.mdx +42 -16
- package/src/stories/Dialog/Dialog.test.ts +69 -0
- package/src/stories/Dialog/DialogSlots.stories.mdx +63 -0
- package/src/stories/Dropdown/Dropdown.settings.ts +51 -0
- package/src/stories/Dropdown/Dropdown.stories.mdx +102 -29
- package/src/stories/Dropdown/Dropdown.test.ts +43 -0
- package/src/stories/Dropdown/DropdownOptions.stories.mdx +87 -67
- package/src/stories/Icon/Icon.settings.ts +72 -0
- package/src/stories/Icon/Icon.stories.mdx +76 -59
- package/src/stories/Icon/IconsCollection.stories.mdx +68 -0
- package/src/stories/InputText/InputText.settings.ts +221 -0
- package/src/stories/InputText/InputText.stories.mdx +142 -69
- package/src/stories/InputText/InputText.test.ts +125 -0
- package/src/stories/InputText/InputTextIconPosition.stories.mdx +63 -16
- package/src/stories/InputText/InputTextLength.stories.mdx +110 -0
- package/src/stories/InputText/InputTextMinMax.stories.mdx +112 -0
- package/src/stories/InputText/InputTextSlots.stories.mdx +61 -22
- package/src/stories/InputText/InputTextType.stories.mdx +207 -29
- package/src/stories/Progress/Progress.settings.ts +33 -0
- package/src/stories/Progress/Progress.stories.mdx +12 -14
- package/src/stories/Progress/Progress.test.ts +9 -0
- package/src/stories/Radio/Radio.settings.ts +15 -0
- package/src/stories/Radio/Radio.stories.mdx +102 -42
- package/src/stories/Radio/Radio.test.ts +70 -0
- package/src/stories/Radio/RadioSlots.stories.mdx +39 -22
- package/src/stories/RadioGroup/RadioGroup.settings.ts +15 -0
- package/src/stories/RadioGroup/RadioGroup.stories.mdx +115 -54
- package/src/stories/RadioGroup/RadioGroup.test.ts +83 -0
- package/src/stories/RadioGroup/RadioGroupOptions.stories.mdx +83 -41
- package/src/stories/RadioGroup/RadioGroupSlots.stories.mdx +49 -144
- package/src/stories/Select/Select.settings.ts +86 -0
- package/src/stories/Select/Select.stories.mdx +173 -33
- package/src/stories/Select/Select.test.ts +82 -0
- package/src/stories/Select/SelectOptions.stories.mdx +91 -69
- package/src/stories/Select/SelectSlots.stories.mdx +48 -0
- package/src/stories/Textarea/Textarea.settings.ts +96 -0
- package/src/stories/Textarea/Textarea.stories.mdx +167 -47
- package/src/stories/Textarea/Textarea.test.ts +90 -0
- package/src/stories/Textarea/TextareaLength.stories.mdx +110 -0
- package/src/stories/Textarea/TextareaSlots.stories.mdx +61 -23
- package/src/stories/Textarea/TextareatIconPosition.stories.mdx +78 -0
- package/src/stories/argTypes.ts +457 -0
- package/src/test/expect.ts +27 -6
- package/src/test/options.ts +17 -0
- package/src/test/sleep.ts +2 -0
- package/src/test/types.d.ts +14 -0
- package/src/types/generic.d.ts +5 -0
- package/src/utils/ObjectUtilities.ts +253 -244
- package/dist/components/VvAccordion/VvAccordion.d.ts +0 -32
- package/dist/components/VvAccordion/useAccordionProps.d.ts +0 -16
- package/dist/components/VvAccordion/vv-accordion.es.js +0 -262
- package/dist/components/VvAccordion/vv-accordion.umd.js +0 -1
- package/dist/components/VvAccordionGroup/vv-accordion-group.es.js +0 -315
- package/dist/components/VvAccordionGroup/vv-accordion-group.umd.js +0 -1
- package/dist/components/VvBadge/vv-badge.es.js +0 -18
- package/dist/components/VvBadge/vv-badge.umd.js +0 -1
- package/dist/components/VvBreadcrumb/vv-breadcrumb.es.js +0 -206
- package/dist/components/VvBreadcrumb/vv-breadcrumb.umd.js +0 -1
- package/dist/components/VvButton/VvButton.d.ts +0 -115
- package/dist/components/VvButton/useButtonGroupProps.d.ts +0 -23
- package/dist/components/VvButton/vv-button.es.js +0 -422
- package/dist/components/VvButton/vv-button.umd.js +0 -1
- package/dist/components/VvButtonGroup/VvButtonGroup.d.ts +0 -57
- package/dist/components/VvButtonGroup/vv-button-group.es.js +0 -210
- package/dist/components/VvButtonGroup/vv-button-group.umd.js +0 -1
- package/dist/components/VvCard/vv-card.es.js +0 -188
- package/dist/components/VvCard/vv-card.umd.js +0 -1
- package/dist/components/VvCheck/VvCheck.d.ts +0 -47
- package/dist/components/VvCheck/VvCheck.vue.d.ts +0 -165
- package/dist/components/VvCheck/useCheckProps.d.ts +0 -16
- package/dist/components/VvCheck/vv-check.es.js +0 -321
- package/dist/components/VvCheck/vv-check.umd.js +0 -1
- package/dist/components/VvCheckGroup/VvCheckGroup.d.ts +0 -65
- package/dist/components/VvCheckGroup/VvCheckGroup.vue.d.ts +0 -272
- package/dist/components/VvCheckGroup/vv-check-group.es.js +0 -452
- package/dist/components/VvCheckGroup/vv-check-group.umd.js +0 -2
- package/dist/components/VvDialog/constants.d.ts +0 -5
- package/dist/components/VvDialog/vv-dialog.es.js +0 -315
- package/dist/components/VvDialog/vv-dialog.umd.js +0 -1
- package/dist/components/VvDropdown/VvDropdown.d.ts +0 -52
- package/dist/components/VvDropdown/vv-dropdown.es.js +0 -236
- package/dist/components/VvDropdown/vv-dropdown.umd.js +0 -1
- package/dist/components/VvIcon/vv-icon.es.js +0 -229
- package/dist/components/VvIcon/vv-icon.umd.js +0 -1
- package/dist/components/VvInputText/VvInputText.d.ts +0 -73
- package/dist/components/VvInputText/constants.d.ts +0 -55
- package/dist/components/VvInputText/vv-input-text.es.js +0 -725
- package/dist/components/VvInputText/vv-input-text.umd.js +0 -2
- package/dist/components/VvNativeSelect/VvNativeSelect.d.ts +0 -70
- package/dist/components/VvNativeSelect/VvNativeSelect.vue.d.ts +0 -228
- package/dist/components/VvNativeSelect/vv-native-select.es.js +0 -414
- package/dist/components/VvNativeSelect/vv-native-select.umd.js +0 -2
- package/dist/components/VvProgress/VvProgress.d.ts +0 -29
- package/dist/components/VvProgress/vv-progress.es.js +0 -185
- package/dist/components/VvProgress/vv-progress.umd.js +0 -1
- package/dist/components/VvRadio/VvRadio.d.ts +0 -22
- package/dist/components/VvRadio/useRadioProps.d.ts +0 -15
- package/dist/components/VvRadio/vv-radio.es.js +0 -309
- package/dist/components/VvRadio/vv-radio.umd.js +0 -1
- package/dist/components/VvRadioGroup/VvRadioGroup.d.ts +0 -54
- package/dist/components/VvRadioGroup/vv-radio-group.es.js +0 -441
- package/dist/components/VvRadioGroup/vv-radio-group.umd.js +0 -2
- package/dist/components/VvSelect/VvSelect.d.ts +0 -99
- package/dist/components/VvSelect/vv-select.es.js +0 -445
- package/dist/components/VvSelect/vv-select.umd.js +0 -2
- package/dist/components/VvTextarea/VvTextarea.d.ts +0 -88
- package/dist/components/VvTextarea/constants.d.ts +0 -19
- package/dist/components/VvTextarea/vv-textarea.es.js +0 -548
- package/dist/components/VvTextarea/vv-textarea.umd.js +0 -2
- package/dist/composables/debouncedInput/useDebouncedInput.d.ts +0 -2
- package/dist/composables/focus/useComponentFocus.d.ts +0 -7
- package/dist/composables/options/useOptions.d.ts +0 -5
- package/dist/composables/textLimit/useTextLimit.d.ts +0 -14
- package/dist/stories/Icon/IconList.vue.d.ts +0 -44
- package/dist/stories/utils.d.ts +0 -5
- package/dist/ui-vue.es.js +0 -3001
- package/dist/ui-vue.umd.js +0 -2
- package/src/assets/icons/index.js +0 -7
- package/src/components/VvAccordion/VvAccordion.ts +0 -34
- package/src/components/VvAccordion/useAccordionProps.ts +0 -45
- package/src/components/VvBadge/VvBadge.ts +0 -4
- package/src/components/VvButton/VvButton.ts +0 -117
- package/src/components/VvButton/useButtonGroupProps.ts +0 -51
- package/src/components/VvButtonGroup/VvButtonGroup.ts +0 -37
- package/src/components/VvCheck/VvCheck.ts +0 -48
- package/src/components/VvCheck/VvCheck.vue +0 -149
- package/src/components/VvCheck/useCheckProps.ts +0 -41
- package/src/components/VvCheckGroup/VvCheckGroup.ts +0 -34
- package/src/components/VvCheckGroup/VvCheckGroup.vue +0 -84
- package/src/components/VvDialog/VvDialog.ts +0 -17
- package/src/components/VvDialog/constants.ts +0 -5
- package/src/components/VvDropdown/VvDropdown.ts +0 -46
- package/src/components/VvInputText/VvInputText.ts +0 -66
- package/src/components/VvInputText/constants.ts +0 -34
- package/src/components/VvNativeSelect/VvNativeSelect.ts +0 -70
- package/src/components/VvNativeSelect/VvNativeSelect.vue +0 -106
- package/src/components/VvProgress/VvProgress.ts +0 -28
- package/src/components/VvRadio/VvRadio.ts +0 -25
- package/src/components/VvRadio/useRadioProps.ts +0 -40
- package/src/components/VvRadioGroup/VvRadioGroup.ts +0 -25
- package/src/components/VvSelect/VvSelect.ts +0 -91
- package/src/components/VvTextarea/VvTextarea.ts +0 -64
- package/src/components/VvTextarea/constants.ts +0 -14
- package/src/composables/debouncedInput/useDebouncedInput.ts +0 -19
- package/src/composables/focus/useComponentFocus.ts +0 -22
- package/src/composables/options/useOptions.ts +0 -27
- package/src/composables/textLimit/useTextLimit.ts +0 -44
- package/src/stories/Accordion/AccordionBordered.stories.mdx +0 -26
- package/src/stories/Accordion/AccordionIconRight.stories.mdx +0 -32
- package/src/stories/Accordion/accordionTest.js +0 -36
- package/src/stories/AccordionGroup/Accordion.stories.mdx +0 -42
- package/src/stories/AccordionGroup/AccordionItems.stories.mdx +0 -51
- package/src/stories/AccordionGroup/accordionGroupTest.js +0 -51
- package/src/stories/Badge/BadgeColor.stories.mdx +0 -54
- package/src/stories/Badge/BadgeDot.stories.mdx +0 -20
- package/src/stories/Badge/BadgeTest.js +0 -21
- package/src/stories/Breadcrumb/BreadcrumbMultiline.stories.mdx +0 -41
- package/src/stories/Button/ButtonBadge.stories.mdx +0 -34
- package/src/stories/Button/ButtonIconPosition.stories.mdx +0 -106
- package/src/stories/Button/ButtonVariant.stories.mdx +0 -205
- package/src/stories/Button/test.js +0 -41
- package/src/stories/ButtonGroup/ButtonGroupAction.stories.mdx +0 -83
- package/src/stories/ButtonGroup/ButtonGroupActionQuiet.stories.mdx +0 -50
- package/src/stories/ButtonGroup/ButtonGroupBlock.stories.mdx +0 -40
- package/src/stories/ButtonGroup/ButtonGroupCompact.stories.mdx +0 -38
- package/src/stories/ButtonGroup/ButtonGroupRounded.stories.mdx +0 -77
- package/src/stories/ButtonGroup/ButtonGroupTest.js +0 -61
- package/src/stories/ButtonGroup/ButtonGroupVertical.stories.mdx +0 -38
- package/src/stories/Card/CardVariant.stories.mdx +0 -37
- package/src/stories/Check/Check.stories.mdx +0 -62
- package/src/stories/Check/CheckBinary.stories.mdx +0 -80
- package/src/stories/Check/CheckDisabled.stories.mdx +0 -30
- package/src/stories/Check/CheckError.stories.mdx +0 -64
- package/src/stories/Check/CheckErrorTests.js +0 -72
- package/src/stories/Check/CheckHintLabel.stories.mdx +0 -30
- package/src/stories/Check/CheckPropertyTest.js +0 -101
- package/src/stories/Check/CheckReadonly.stories.mdx +0 -30
- package/src/stories/Check/CheckSlots.stories.mdx +0 -51
- package/src/stories/Check/CheckSwitch.stories.mdx +0 -30
- package/src/stories/CheckGroup/CheckGroup.stories.mdx +0 -69
- package/src/stories/CheckGroup/CheckGroupDisabled.stories.mdx +0 -26
- package/src/stories/CheckGroup/CheckGroupError.stories.mdx +0 -28
- package/src/stories/CheckGroup/CheckGroupHintLabel.stories.mdx +0 -27
- package/src/stories/CheckGroup/CheckGroupLabel.stories.mdx +0 -26
- package/src/stories/CheckGroup/CheckGroupOptionLabel.stories.mdx +0 -48
- package/src/stories/CheckGroup/CheckGroupOptionValue.stories.mdx +0 -48
- package/src/stories/CheckGroup/CheckGroupOptions.stories.mdx +0 -40
- package/src/stories/CheckGroup/CheckGroupReadonly.stories.mdx +0 -26
- package/src/stories/CheckGroup/CheckGroupSlots.stories.mdx +0 -152
- package/src/stories/CheckGroup/CheckGroupValid.stories.mdx +0 -28
- package/src/stories/CheckGroup/CheckGroupVertical.stories.mdx +0 -26
- package/src/stories/Dialog/DialogAutoClose.stories.mdx +0 -18
- package/src/stories/Dialog/DialogSize.stories.mdx +0 -36
- package/src/stories/Dropdown/DropdownDisabled.stories.mdx +0 -25
- package/src/stories/Dropdown/DropdownLabelNoResults.stories.mdx +0 -25
- package/src/stories/Dropdown/DropdownMaxValues.stories.mdx +0 -26
- package/src/stories/Dropdown/DropdownMultiple.stories.mdx +0 -56
- package/src/stories/Dropdown/DropdownUseObject.stories.mdx +0 -58
- package/src/stories/Icon/IconList.vue +0 -34
- package/src/stories/Icon/IconPrefix.stories.mdx +0 -79
- package/src/stories/Icon/IconRemote.stories.mdx +0 -39
- package/src/stories/Icon/IconTest.js +0 -27
- package/src/stories/Icon/IconsList.stories.mdx +0 -35
- package/src/stories/InputText/InputTextAutocomplete.stories.mdx +0 -15
- package/src/stories/InputText/InputTextAutofocus.stories.mdx +0 -20
- package/src/stories/InputText/InputTextDisabled.stories.mdx +0 -19
- package/src/stories/InputText/InputTextError.stories.mdx +0 -19
- package/src/stories/InputText/InputTextFloating.stories.mdx +0 -20
- package/src/stories/InputText/InputTextHintLabel.stories.mdx +0 -18
- package/src/stories/InputText/InputTextIcon.stories.mdx +0 -18
- package/src/stories/InputText/InputTextLabel.stories.mdx +0 -15
- package/src/stories/InputText/InputTextLoading.stories.mdx +0 -19
- package/src/stories/InputText/InputTextMax.stories.mdx +0 -31
- package/src/stories/InputText/InputTextMaxLength.stories.mdx +0 -36
- package/src/stories/InputText/InputTextMin.stories.mdx +0 -31
- package/src/stories/InputText/InputTextMinLength.stories.mdx +0 -15
- package/src/stories/InputText/InputTextPlaceholder.stories.mdx +0 -15
- package/src/stories/InputText/InputTextReadonly.stories.mdx +0 -19
- package/src/stories/InputText/InputTextStep.stories.mdx +0 -31
- package/src/stories/InputText/InputTextValid.stories.mdx +0 -19
- package/src/stories/NativeSelect/NativeSelect.stories.mdx +0 -53
- package/src/stories/NativeSelect/NativeSelectDisabled.stories.mdx +0 -32
- package/src/stories/NativeSelect/NativeSelectError.stories.mdx +0 -36
- package/src/stories/NativeSelect/NativeSelectHintLabel.stories.mdx +0 -34
- package/src/stories/NativeSelect/NativeSelectIconLeftRight.stories.mdx +0 -42
- package/src/stories/NativeSelect/NativeSelectLoading.stories.mdx +0 -27
- package/src/stories/NativeSelect/NativeSelectOptions.stories.mdx +0 -78
- package/src/stories/NativeSelect/NativeSelectReadonly.stories.mdx +0 -34
- package/src/stories/NativeSelect/NativeSelectUseObject.stories.mdx +0 -66
- package/src/stories/NativeSelect/NativeSelectValid.stories.mdx +0 -36
- package/src/stories/NativeSelect/NativeSelectValueKey.stories.mdx +0 -66
- package/src/stories/Progress/ProgressDeterminate.stories.mdx +0 -19
- package/src/stories/Radio/RadioDisabled.stories.mdx +0 -30
- package/src/stories/Radio/RadioError.stories.mdx +0 -64
- package/src/stories/Radio/RadioHintLabel.stories.mdx +0 -30
- package/src/stories/Radio/RadioTest.js +0 -89
- package/src/stories/RadioGroup/RadioGroupDisabled.stories.mdx +0 -29
- package/src/stories/RadioGroup/RadioGroupError.stories.mdx +0 -31
- package/src/stories/RadioGroup/RadioGroupHintLabel.stories.mdx +0 -28
- package/src/stories/RadioGroup/RadioGroupLabel.stories.mdx +0 -29
- package/src/stories/RadioGroup/RadioGroupOptionLabel.stories.mdx +0 -65
- package/src/stories/RadioGroup/RadioGroupOptionValue.stories.mdx +0 -65
- package/src/stories/RadioGroup/RadioGroupReadonly.stories.mdx +0 -29
- package/src/stories/RadioGroup/RadioGroupValid.stories.mdx +0 -31
- package/src/stories/RadioGroup/RadioGroupVertical.stories.mdx +0 -29
- package/src/stories/RadioGroup/RadioOptionsTest.js +0 -78
- package/src/stories/RadioGroup/RadioPropertyTest.js +0 -131
- package/src/stories/RadioGroup/RadioSlotsTest.js +0 -20
- package/src/stories/Select/SelectDisabled.stories.mdx +0 -32
- package/src/stories/Select/SelectMaxValues.stories.mdx +0 -33
- package/src/stories/Select/SelectMultiple.stories.mdx +0 -64
- package/src/stories/Select/SelectSearchable.stories.mdx +0 -80
- package/src/stories/Select/SelectSeparator.stories.mdx +0 -64
- package/src/stories/Select/SelectUseObject.stories.mdx +0 -66
- package/src/stories/Textarea/TextareaAutoclear.stories.mdx +0 -23
- package/src/stories/Textarea/TextareaAutocomplete.stories.mdx +0 -23
- package/src/stories/Textarea/TextareaAutofocus.stories.mdx +0 -24
- package/src/stories/Textarea/TextareaDebounce.stories.mdx +0 -23
- package/src/stories/Textarea/TextareaDisabled.stories.mdx +0 -23
- package/src/stories/Textarea/TextareaError.stories.mdx +0 -22
- package/src/stories/Textarea/TextareaErrorLabel.stories.mdx +0 -37
- package/src/stories/Textarea/TextareaFloating.stories.mdx +0 -25
- package/src/stories/Textarea/TextareaHintLabel.stories.mdx +0 -22
- package/src/stories/Textarea/TextareaIcon.stories.mdx +0 -22
- package/src/stories/Textarea/TextareaIconPosition.stories.mdx +0 -39
- package/src/stories/Textarea/TextareaId.stories.mdx +0 -19
- package/src/stories/Textarea/TextareaLabel.stories.mdx +0 -19
- package/src/stories/Textarea/TextareaLimit.stories.mdx +0 -50
- package/src/stories/Textarea/TextareaLoading.stories.mdx +0 -22
- package/src/stories/Textarea/TextareaLoadingLabel.stories.mdx +0 -23
- package/src/stories/Textarea/TextareaMaxLength.stories.mdx +0 -19
- package/src/stories/Textarea/TextareaMinLength.stories.mdx +0 -19
- package/src/stories/Textarea/TextareaModifiers.stories.mdx +0 -24
- package/src/stories/Textarea/TextareaName.stories.mdx +0 -23
- package/src/stories/Textarea/TextareaPlaceholder.stories.mdx +0 -19
- package/src/stories/Textarea/TextareaReadonly.stories.mdx +0 -23
- package/src/stories/Textarea/TextareaRequired.stories.mdx +0 -22
- package/src/stories/Textarea/TextareaResizable.stories.mdx +0 -22
- package/src/stories/Textarea/TextareaRowsCols.stories.mdx +0 -39
- package/src/stories/Textarea/TextareaValid.stories.mdx +0 -22
- package/src/stories/Textarea/TextareaValidLabel.stories.mdx +0 -35
- package/src/stories/stories.scss +0 -35
- package/src/stories/utils.ts +0 -12
- package/src/stories/volver-ui-vue.stories.mdx +0 -77
- package/src/types/.README +0 -0
|
@@ -0,0 +1,357 @@
|
|
|
1
|
+
import { unref as v, computed as i, inject as D, toRef as H, toRefs as R, h as N, defineComponent as $, useSlots as M, ref as T, watchEffect as Z, watch as q, onMounted as z, openBlock as U, createElementBlock as F, normalizeClass as K, withDirectives as J, createElementVNode as Q, isRef as W, vModelCheckbox as X, renderSlot as Y, createTextVNode as L, toDisplayString as ee, createVNode as te } from "vue";
|
|
2
|
+
import { nanoid as re } from "nanoid";
|
|
3
|
+
import { toReactive as ne } from "@vueuse/core";
|
|
4
|
+
function E(t, e, r) {
|
|
5
|
+
return r ? B(t, r) === B(e, r) : O(t, e);
|
|
6
|
+
}
|
|
7
|
+
function O(t, e) {
|
|
8
|
+
if (t === e)
|
|
9
|
+
return !0;
|
|
10
|
+
if (t && e && typeof t == "object" && typeof e == "object") {
|
|
11
|
+
const r = Array.isArray(t), c = Array.isArray(e);
|
|
12
|
+
let n, a, u;
|
|
13
|
+
if (r && c) {
|
|
14
|
+
if (a = t.length, a != e.length)
|
|
15
|
+
return !1;
|
|
16
|
+
for (n = a; n-- !== 0; )
|
|
17
|
+
if (!O(t[n], e[n]))
|
|
18
|
+
return !1;
|
|
19
|
+
return !0;
|
|
20
|
+
}
|
|
21
|
+
if (r != c)
|
|
22
|
+
return !1;
|
|
23
|
+
const d = t instanceof Date, l = e instanceof Date;
|
|
24
|
+
if (d != l)
|
|
25
|
+
return !1;
|
|
26
|
+
if (d && l)
|
|
27
|
+
return t.getTime() == e.getTime();
|
|
28
|
+
const s = t instanceof RegExp, f = e instanceof RegExp;
|
|
29
|
+
if (s != f)
|
|
30
|
+
return !1;
|
|
31
|
+
if (s && f)
|
|
32
|
+
return t.toString() == e.toString();
|
|
33
|
+
const o = Object.keys(t);
|
|
34
|
+
if (a = o.length, a !== Object.keys(e).length)
|
|
35
|
+
return !1;
|
|
36
|
+
for (n = a; n-- !== 0; )
|
|
37
|
+
if (!Object.prototype.hasOwnProperty.call(e, o[n]))
|
|
38
|
+
return !1;
|
|
39
|
+
for (n = a; n-- !== 0; )
|
|
40
|
+
if (u = o[n], !O(t[u], e[u]))
|
|
41
|
+
return !1;
|
|
42
|
+
return !0;
|
|
43
|
+
}
|
|
44
|
+
return t !== t && e !== e;
|
|
45
|
+
}
|
|
46
|
+
function B(t, e) {
|
|
47
|
+
if (t && Object.keys(t).length && e) {
|
|
48
|
+
if (e.indexOf(".") === -1)
|
|
49
|
+
return t[e];
|
|
50
|
+
{
|
|
51
|
+
const r = e.split(".");
|
|
52
|
+
let c = t;
|
|
53
|
+
for (let n = 0, a = r.length; n < a; ++n) {
|
|
54
|
+
if (t == null)
|
|
55
|
+
return null;
|
|
56
|
+
c = c[r[n]];
|
|
57
|
+
}
|
|
58
|
+
return c;
|
|
59
|
+
}
|
|
60
|
+
} else
|
|
61
|
+
return null;
|
|
62
|
+
}
|
|
63
|
+
function ue(t, e) {
|
|
64
|
+
if (t != null && e && e.length) {
|
|
65
|
+
for (const r of e)
|
|
66
|
+
if (E(t, r))
|
|
67
|
+
return !0;
|
|
68
|
+
}
|
|
69
|
+
return !1;
|
|
70
|
+
}
|
|
71
|
+
function I(t) {
|
|
72
|
+
return ((e) => e == null || e === "" || Array.isArray(e) && e.length === 0 || !(e instanceof Date) && typeof e == "object" && Object.keys(e).length === 0)(v(t));
|
|
73
|
+
}
|
|
74
|
+
function se(t) {
|
|
75
|
+
return typeof t == "string" || t instanceof String;
|
|
76
|
+
}
|
|
77
|
+
function P(t) {
|
|
78
|
+
var e, r;
|
|
79
|
+
if (t)
|
|
80
|
+
return (r = (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 : r.toLowerCase();
|
|
83
|
+
}
|
|
84
|
+
function ae(t, e) {
|
|
85
|
+
const r = { [`${t}`]: !0 };
|
|
86
|
+
return {
|
|
87
|
+
bemCssClasses: i(() => Object.keys(e).reduce((n, a) => {
|
|
88
|
+
const u = v(e[a]) || !1;
|
|
89
|
+
if (!u)
|
|
90
|
+
return n;
|
|
91
|
+
if (a === "modifiers") {
|
|
92
|
+
const d = Array.isArray(u) ? u : u.split(" ");
|
|
93
|
+
return {
|
|
94
|
+
...n,
|
|
95
|
+
...d.reduce(
|
|
96
|
+
(l, s) => ({
|
|
97
|
+
...l,
|
|
98
|
+
[`${t}--${P(s)}`]: !0
|
|
99
|
+
}),
|
|
100
|
+
{}
|
|
101
|
+
)
|
|
102
|
+
};
|
|
103
|
+
} else
|
|
104
|
+
return {
|
|
105
|
+
...n,
|
|
106
|
+
[`${t}--${P(a)}`]: u
|
|
107
|
+
};
|
|
108
|
+
}, r) || {})
|
|
109
|
+
};
|
|
110
|
+
}
|
|
111
|
+
function oe(t) {
|
|
112
|
+
const e = D(t, void 0), r = i(() => !I(e));
|
|
113
|
+
function c(n, a, u) {
|
|
114
|
+
if (e != null && e.value) {
|
|
115
|
+
const l = v(e.value)[n];
|
|
116
|
+
return i({
|
|
117
|
+
get() {
|
|
118
|
+
return l == null ? void 0 : l.value;
|
|
119
|
+
},
|
|
120
|
+
set(s) {
|
|
121
|
+
l.value = s;
|
|
122
|
+
}
|
|
123
|
+
});
|
|
124
|
+
}
|
|
125
|
+
const d = H(a, n);
|
|
126
|
+
return i({
|
|
127
|
+
get() {
|
|
128
|
+
return d.value;
|
|
129
|
+
},
|
|
130
|
+
set(l) {
|
|
131
|
+
u && u(`update:${n}`, l);
|
|
132
|
+
}
|
|
133
|
+
});
|
|
134
|
+
}
|
|
135
|
+
return {
|
|
136
|
+
group: e,
|
|
137
|
+
isInGroup: r,
|
|
138
|
+
getGroupOrLocalRef: c
|
|
139
|
+
};
|
|
140
|
+
}
|
|
141
|
+
const le = {
|
|
142
|
+
valid: Boolean,
|
|
143
|
+
validLabel: [String, Array]
|
|
144
|
+
}, ie = {
|
|
145
|
+
invalid: Boolean,
|
|
146
|
+
invalidLabel: [String, Array]
|
|
147
|
+
}, ce = {
|
|
148
|
+
disabled: Boolean
|
|
149
|
+
}, fe = {
|
|
150
|
+
readonly: Boolean
|
|
151
|
+
}, ve = {
|
|
152
|
+
hintLabel: { type: String, default: "" }
|
|
153
|
+
}, de = {
|
|
154
|
+
tabindex: { type: [String, Number], default: 0 }
|
|
155
|
+
}, pe = {
|
|
156
|
+
id: [String, Number],
|
|
157
|
+
name: { type: String, required: !0 }
|
|
158
|
+
}, ye = {
|
|
159
|
+
...pe,
|
|
160
|
+
...de,
|
|
161
|
+
...le,
|
|
162
|
+
...ie,
|
|
163
|
+
...ve,
|
|
164
|
+
...ce,
|
|
165
|
+
...fe,
|
|
166
|
+
value: [String, Number, Boolean],
|
|
167
|
+
modelValue: [Object, Number, Boolean, String],
|
|
168
|
+
label: String
|
|
169
|
+
}, me = "VV_CHECK_GROUP", he = {
|
|
170
|
+
...ye,
|
|
171
|
+
indeterminate: Boolean,
|
|
172
|
+
uncheckedValue: [String, Number, Boolean],
|
|
173
|
+
switch: Boolean
|
|
174
|
+
}, ge = ["click", "update:modelValue", "change", "blur"];
|
|
175
|
+
function Ae(t, e) {
|
|
176
|
+
const { group: r, isInGroup: c, getGroupOrLocalRef: n } = oe(me), { switch: a, indeterminate: u } = R(t), d = n("modelValue", t, e), l = n("readonly", t), s = n("disabled", t), f = n("valid", t), o = n("invalid", t);
|
|
177
|
+
return {
|
|
178
|
+
propsSwitch: a,
|
|
179
|
+
indeterminate: u,
|
|
180
|
+
group: r,
|
|
181
|
+
isInGroup: c,
|
|
182
|
+
modelValue: d,
|
|
183
|
+
readonly: l,
|
|
184
|
+
disabled: s,
|
|
185
|
+
valid: f,
|
|
186
|
+
invalid: o
|
|
187
|
+
};
|
|
188
|
+
}
|
|
189
|
+
function _(t) {
|
|
190
|
+
return Array.isArray(t) ? t.filter((e) => se(e)).join(" ") : t;
|
|
191
|
+
}
|
|
192
|
+
function be(t, e) {
|
|
193
|
+
const {
|
|
194
|
+
invalid: r,
|
|
195
|
+
valid: c,
|
|
196
|
+
hint: n,
|
|
197
|
+
loading: a
|
|
198
|
+
} = e, {
|
|
199
|
+
hintLabel: u,
|
|
200
|
+
modelValue: d,
|
|
201
|
+
valid: l,
|
|
202
|
+
validLabel: s,
|
|
203
|
+
invalid: f,
|
|
204
|
+
invalidLabel: o,
|
|
205
|
+
...b
|
|
206
|
+
} = R(t), p = B(b, "loading"), y = B(b, "loadingLabel"), h = i(() => f.value ? !!(f.value && r || o != null && o.value && Array.isArray(o.value) && o.value.length > 0 || o != null && o.value && !I(o)) : !1), k = i(
|
|
207
|
+
() => !!(u && u.value || n)
|
|
208
|
+
), C = i(
|
|
209
|
+
() => !!(s && s.value || c)
|
|
210
|
+
), V = i(
|
|
211
|
+
() => !!(p != null && p.value && a || p != null && p.value && (y != null && y.value))
|
|
212
|
+
), x = i(
|
|
213
|
+
() => k.value || C.value || h.value || V.value
|
|
214
|
+
);
|
|
215
|
+
return {
|
|
216
|
+
hasInvalid: h,
|
|
217
|
+
hasHint: k,
|
|
218
|
+
hasValid: C,
|
|
219
|
+
hasLoading: V,
|
|
220
|
+
HintSlot: {
|
|
221
|
+
name: "HintSlot",
|
|
222
|
+
props: {
|
|
223
|
+
params: {
|
|
224
|
+
type: Object,
|
|
225
|
+
default: () => ({})
|
|
226
|
+
}
|
|
227
|
+
},
|
|
228
|
+
setup(j) {
|
|
229
|
+
const S = i(() => {
|
|
230
|
+
const g = ne({
|
|
231
|
+
hintLabel: u,
|
|
232
|
+
modelValue: d,
|
|
233
|
+
valid: l,
|
|
234
|
+
validLabel: s,
|
|
235
|
+
invalid: f,
|
|
236
|
+
invalidLabel: o,
|
|
237
|
+
loading: p,
|
|
238
|
+
loadingLabel: y,
|
|
239
|
+
...j.params
|
|
240
|
+
});
|
|
241
|
+
return f != null && f.value ? (r == null ? void 0 : r(g)) || _(o == null ? void 0 : o.value) || (u == null ? void 0 : u.value) : l != null && l.value ? (c == null ? void 0 : c(g)) || _(s == null ? void 0 : s.value) || (u == null ? void 0 : u.value) : p != null && p.value ? (a == null ? void 0 : a(g)) || _(y == null ? void 0 : y.value) || (u == null ? void 0 : u.value) : (n == null ? void 0 : n(g)) || _(u == null ? void 0 : u.value) || (u == null ? void 0 : u.value);
|
|
242
|
+
});
|
|
243
|
+
return {
|
|
244
|
+
isVisible: x,
|
|
245
|
+
hasInvalid: h,
|
|
246
|
+
hasValid: C,
|
|
247
|
+
hintContent: S
|
|
248
|
+
};
|
|
249
|
+
},
|
|
250
|
+
render() {
|
|
251
|
+
if (this.isVisible)
|
|
252
|
+
return N(
|
|
253
|
+
"small",
|
|
254
|
+
{
|
|
255
|
+
role: this.hasInvalid || this.hasValid ? "alert" : void 0
|
|
256
|
+
},
|
|
257
|
+
this.hintContent
|
|
258
|
+
);
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
};
|
|
262
|
+
}
|
|
263
|
+
const ke = ["for"], Ce = ["id", "name", "disabled", "value", "tabindex", "aria-invalid"], Ve = {
|
|
264
|
+
name: "VvCheckbox"
|
|
265
|
+
}, Be = /* @__PURE__ */ $({
|
|
266
|
+
...Ve,
|
|
267
|
+
props: he,
|
|
268
|
+
emits: ge,
|
|
269
|
+
setup(t, { emit: e }) {
|
|
270
|
+
const r = t, c = M(), {
|
|
271
|
+
disabled: n,
|
|
272
|
+
readonly: a,
|
|
273
|
+
valid: u,
|
|
274
|
+
invalid: d,
|
|
275
|
+
propsSwitch: l,
|
|
276
|
+
modelValue: s,
|
|
277
|
+
indeterminate: f,
|
|
278
|
+
isInGroup: o
|
|
279
|
+
} = Ae(r, e), b = i(() => String(r.id || re())), p = i(() => k.value ? -1 : r.tabindex), y = T(), h = i(
|
|
280
|
+
() => r.uncheckedValue !== void 0 && !o.value
|
|
281
|
+
), k = i(() => n.value || a.value), C = i(() => {
|
|
282
|
+
if (d.value === !0)
|
|
283
|
+
return !0;
|
|
284
|
+
if (u.value === !0)
|
|
285
|
+
return !1;
|
|
286
|
+
}), V = i(() => h.value ? s.value === r.value : Array.isArray(s.value) ? ue(r.value, s.value) : E(r.value, s.value)), x = i(() => !!(f.value || !V.value && h.value && r.uncheckedValue !== s.value)), j = i(() => {
|
|
287
|
+
if (!h.value)
|
|
288
|
+
return ["string", "number", "boolean"].includes(typeof r.value) ? r.value : !0;
|
|
289
|
+
}), S = i({
|
|
290
|
+
get() {
|
|
291
|
+
return V.value;
|
|
292
|
+
},
|
|
293
|
+
set(m) {
|
|
294
|
+
if (h.value)
|
|
295
|
+
s.value = m ? r.value : r.uncheckedValue;
|
|
296
|
+
else if (Array.isArray(s.value) || o.value) {
|
|
297
|
+
const A = new Set(
|
|
298
|
+
Array.isArray(s.value) ? s.value : s.value !== void 0 ? [s.value] : []
|
|
299
|
+
);
|
|
300
|
+
m ? A.add(r.value) : A.delete(r.value), s.value = [...A];
|
|
301
|
+
} else
|
|
302
|
+
s.value = m ? r.value : void 0;
|
|
303
|
+
e("change", m);
|
|
304
|
+
}
|
|
305
|
+
}), { bemCssClasses: g } = ae("vv-checkbox", {
|
|
306
|
+
switch: l,
|
|
307
|
+
valid: u,
|
|
308
|
+
invalid: d,
|
|
309
|
+
disabled: n,
|
|
310
|
+
readonly: a,
|
|
311
|
+
indeterminate: f
|
|
312
|
+
});
|
|
313
|
+
Z(() => {
|
|
314
|
+
h.value && Array.isArray(s.value) && console.warn(
|
|
315
|
+
"[VvCheckbox] The model value is an array but the component is in binary mode."
|
|
316
|
+
);
|
|
317
|
+
}), q(
|
|
318
|
+
() => x.value,
|
|
319
|
+
(m) => {
|
|
320
|
+
m ? y.value.indeterminate = !0 : y.value.indeterminate = !1;
|
|
321
|
+
}
|
|
322
|
+
), z(() => {
|
|
323
|
+
x.value && (y.value.indeterminate = !0);
|
|
324
|
+
});
|
|
325
|
+
const { HintSlot: w } = be(r, c);
|
|
326
|
+
return (m, A) => (U(), F("label", {
|
|
327
|
+
class: K(v(g)),
|
|
328
|
+
for: v(b)
|
|
329
|
+
}, [
|
|
330
|
+
J(Q("input", {
|
|
331
|
+
id: v(b),
|
|
332
|
+
ref_key: "input",
|
|
333
|
+
ref: y,
|
|
334
|
+
"onUpdate:modelValue": A[0] || (A[0] = (G) => W(S) ? S.value = G : null),
|
|
335
|
+
type: "checkbox",
|
|
336
|
+
class: "vv-checkbox__input",
|
|
337
|
+
name: m.name,
|
|
338
|
+
disabled: v(k),
|
|
339
|
+
value: v(j),
|
|
340
|
+
tabindex: v(p),
|
|
341
|
+
"aria-invalid": v(C)
|
|
342
|
+
}, null, 8, Ce), [
|
|
343
|
+
[X, v(S)]
|
|
344
|
+
]),
|
|
345
|
+
Y(m.$slots, "default", { value: v(s) }, () => [
|
|
346
|
+
L(ee(m.label), 1)
|
|
347
|
+
]),
|
|
348
|
+
te(v(w), {
|
|
349
|
+
class: "vv-checkbox__hint",
|
|
350
|
+
params: { value: v(s) }
|
|
351
|
+
}, null, 8, ["params"])
|
|
352
|
+
], 10, ke));
|
|
353
|
+
}
|
|
354
|
+
});
|
|
355
|
+
export {
|
|
356
|
+
Be as default
|
|
357
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(function(e,A){typeof exports=="object"&&typeof module<"u"?module.exports=A(require("vue"),require("nanoid"),require("@vueuse/core")):typeof define=="function"&&define.amd?define(["vue","nanoid","@vueuse/core"],A):(e=typeof globalThis<"u"?globalThis:e||self,e.VvCheckbox=A(e.vue,e.nanoid,e.core))})(this,function(e,A,E){"use strict";function j(n,t,r){return r?S(n,r)===S(t,r):B(n,t)}function B(n,t){if(n===t)return!0;if(n&&t&&typeof n=="object"&&typeof t=="object"){const r=Array.isArray(n),c=Array.isArray(t);let o,i,s;if(r&&c){if(i=n.length,i!=t.length)return!1;for(o=i;o--!==0;)if(!B(n[o],t[o]))return!1;return!0}if(r!=c)return!1;const d=n instanceof Date,l=t instanceof Date;if(d!=l)return!1;if(d&&l)return n.getTime()==t.getTime();const a=n instanceof RegExp,f=t instanceof RegExp;if(a!=f)return!1;if(a&&f)return n.toString()==t.toString();const u=Object.keys(n);if(i=u.length,i!==Object.keys(t).length)return!1;for(o=i;o--!==0;)if(!Object.prototype.hasOwnProperty.call(t,u[o]))return!1;for(o=i;o--!==0;)if(s=u[o],!B(n[s],t[s]))return!1;return!0}return n!==n&&t!==t}function S(n,t){if(n&&Object.keys(n).length&&t){if(t.indexOf(".")===-1)return n[t];{const r=t.split(".");let c=n;for(let o=0,i=r.length;o<i;++o){if(n==null)return null;c=c[r[o]]}return c}}else return null}function w(n,t){if(n!=null&&t&&t.length){for(const r of t)if(j(n,r))return!0}return!1}function O(n){return(t=>t==null||t===""||Array.isArray(t)&&t.length===0||!(t instanceof Date)&&typeof t=="object"&&Object.keys(t).length===0)(e.unref(n))}function D(n){return typeof n=="string"||n instanceof String}function I(n){var t,r;if(n)return(r=(t=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:t.join("-"))==null?void 0:r.toLowerCase()}function G(n,t){const r={[`${n}`]:!0};return{bemCssClasses:e.computed(()=>Object.keys(t).reduce((o,i)=>{const s=e.unref(t[i])||!1;if(!s)return o;if(i==="modifiers"){const d=Array.isArray(s)?s:s.split(" ");return{...o,...d.reduce((l,a)=>({...l,[`${n}--${I(a)}`]:!0}),{})}}else return{...o,[`${n}--${I(i)}`]:s}},r)||{})}}function H(n){const t=e.inject(n,void 0),r=e.computed(()=>!O(t));function c(o,i,s){if(t!=null&&t.value){const l=e.unref(t.value)[o];return e.computed({get(){return l==null?void 0:l.value},set(a){l.value=a}})}const d=e.toRef(i,o);return e.computed({get(){return d.value},set(l){s&&s(`update:${o}`,l)}})}return{group:t,isInGroup:r,getGroupOrLocalRef:c}}const N={...{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},T="VV_CHECK_GROUP",$={...N,indeterminate:Boolean,uncheckedValue:[String,Number,Boolean],switch:Boolean},q=["click","update:modelValue","change","blur"];function M(n,t){const{group:r,isInGroup:c,getGroupOrLocalRef:o}=H(T),{switch:i,indeterminate:s}=e.toRefs(n),d=o("modelValue",n,t),l=o("readonly",n),a=o("disabled",n),f=o("valid",n),u=o("invalid",n);return{propsSwitch:i,indeterminate:s,group:r,isInGroup:c,modelValue:d,readonly:l,disabled:a,valid:f,invalid:u}}function P(n){return Array.isArray(n)?n.filter(t=>D(t)).join(" "):n}function Z(n,t){const{invalid:r,valid:c,hint:o,loading:i}=t,{hintLabel:s,modelValue:d,valid:l,validLabel:a,invalid:f,invalidLabel:u,...b}=e.toRefs(n),p=S(b,"loading"),m=S(b,"loadingLabel"),y=e.computed(()=>f.value?!!(f.value&&r||u!=null&&u.value&&Array.isArray(u.value)&&u.value.length>0||u!=null&&u.value&&!O(u)):!1),k=e.computed(()=>!!(s&&s.value||o)),V=e.computed(()=>!!(a&&a.value||c)),C=e.computed(()=>!!(p!=null&&p.value&&i||p!=null&&p.value&&(m!=null&&m.value))),_=e.computed(()=>k.value||V.value||y.value||C.value);return{hasInvalid:y,hasHint:k,hasValid:V,hasLoading:C,HintSlot:{name:"HintSlot",props:{params:{type:Object,default:()=>({})}},setup(R){const x=e.computed(()=>{const h=E.toReactive({hintLabel:s,modelValue:d,valid:l,validLabel:a,invalid:f,invalidLabel:u,loading:p,loadingLabel:m,...R.params});return f!=null&&f.value?(r==null?void 0:r(h))||P(u==null?void 0:u.value)||(s==null?void 0:s.value):l!=null&&l.value?(c==null?void 0:c(h))||P(a==null?void 0:a.value)||(s==null?void 0:s.value):p!=null&&p.value?(i==null?void 0:i(h))||P(m==null?void 0:m.value)||(s==null?void 0:s.value):(o==null?void 0:o(h))||P(s==null?void 0:s.value)||(s==null?void 0:s.value)});return{isVisible:_,hasInvalid:y,hasValid:V,hintContent:x}},render(){if(this.isVisible)return e.h("small",{role:this.hasInvalid||this.hasValid?"alert":void 0},this.hintContent)}}}}const z=["for"],U=["id","name","disabled","value","tabindex","aria-invalid"],F={name:"VvCheckbox"};return e.defineComponent({...F,props:$,emits:q,setup(n,{emit:t}){const r=n,c=e.useSlots(),{disabled:o,readonly:i,valid:s,invalid:d,propsSwitch:l,modelValue:a,indeterminate:f,isInGroup:u}=M(r,t),b=e.computed(()=>String(r.id||A.nanoid())),p=e.computed(()=>k.value?-1:r.tabindex),m=e.ref(),y=e.computed(()=>r.uncheckedValue!==void 0&&!u.value),k=e.computed(()=>o.value||i.value),V=e.computed(()=>{if(d.value===!0)return!0;if(s.value===!0)return!1}),C=e.computed(()=>y.value?a.value===r.value:Array.isArray(a.value)?w(r.value,a.value):j(r.value,a.value)),_=e.computed(()=>!!(f.value||!C.value&&y.value&&r.uncheckedValue!==a.value)),R=e.computed(()=>{if(!y.value)return["string","number","boolean"].includes(typeof r.value)?r.value:!0}),x=e.computed({get(){return C.value},set(v){if(y.value)a.value=v?r.value:r.uncheckedValue;else if(Array.isArray(a.value)||u.value){const g=new Set(Array.isArray(a.value)?a.value:a.value!==void 0?[a.value]:[]);v?g.add(r.value):g.delete(r.value),a.value=[...g]}else a.value=v?r.value:void 0;t("change",v)}}),{bemCssClasses:h}=G("vv-checkbox",{switch:l,valid:s,invalid:d,disabled:o,readonly:i,indeterminate:f});e.watchEffect(()=>{y.value&&Array.isArray(a.value)&&console.warn("[VvCheckbox] The model value is an array but the component is in binary mode.")}),e.watch(()=>_.value,v=>{v?m.value.indeterminate=!0:m.value.indeterminate=!1}),e.onMounted(()=>{_.value&&(m.value.indeterminate=!0)});const{HintSlot:K}=Z(r,c);return(v,g)=>(e.openBlock(),e.createElementBlock("label",{class:e.normalizeClass(e.unref(h)),for:e.unref(b)},[e.withDirectives(e.createElementVNode("input",{id:e.unref(b),ref_key:"input",ref:m,"onUpdate:modelValue":g[0]||(g[0]=J=>e.isRef(x)?x.value=J:null),type:"checkbox",class:"vv-checkbox__input",name:v.name,disabled:e.unref(k),value:e.unref(R),tabindex:e.unref(p),"aria-invalid":e.unref(V)},null,8,U),[[e.vModelCheckbox,e.unref(x)]]),e.renderSlot(v.$slots,"default",{value:e.unref(a)},()=>[e.createTextVNode(e.toDisplayString(v.label),1)]),e.createVNode(e.unref(K),{class:"vv-checkbox__hint",params:{value:e.unref(a)}},null,8,["params"])],10,z))}})});
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
2
|
+
indeterminate: BooleanConstructor;
|
|
3
|
+
uncheckedValue: (StringConstructor | BooleanConstructor | NumberConstructor)[];
|
|
4
|
+
switch: BooleanConstructor;
|
|
5
|
+
value: (StringConstructor | BooleanConstructor | NumberConstructor)[];
|
|
6
|
+
modelValue: (ObjectConstructor | StringConstructor | BooleanConstructor | NumberConstructor)[];
|
|
7
|
+
label: StringConstructor;
|
|
8
|
+
readonly: BooleanConstructor;
|
|
9
|
+
disabled: BooleanConstructor;
|
|
10
|
+
hintLabel: {
|
|
11
|
+
type: StringConstructor;
|
|
12
|
+
default: string;
|
|
13
|
+
};
|
|
14
|
+
invalid: BooleanConstructor;
|
|
15
|
+
invalidLabel: (ArrayConstructor | StringConstructor)[];
|
|
16
|
+
valid: BooleanConstructor;
|
|
17
|
+
validLabel: (ArrayConstructor | StringConstructor)[];
|
|
18
|
+
tabindex: {
|
|
19
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
20
|
+
default: number;
|
|
21
|
+
};
|
|
22
|
+
id: (StringConstructor | NumberConstructor)[];
|
|
23
|
+
name: {
|
|
24
|
+
type: StringConstructor;
|
|
25
|
+
required: boolean;
|
|
26
|
+
};
|
|
27
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, string[], string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
28
|
+
indeterminate: BooleanConstructor;
|
|
29
|
+
uncheckedValue: (StringConstructor | BooleanConstructor | NumberConstructor)[];
|
|
30
|
+
switch: BooleanConstructor;
|
|
31
|
+
value: (StringConstructor | BooleanConstructor | NumberConstructor)[];
|
|
32
|
+
modelValue: (ObjectConstructor | StringConstructor | BooleanConstructor | NumberConstructor)[];
|
|
33
|
+
label: StringConstructor;
|
|
34
|
+
readonly: BooleanConstructor;
|
|
35
|
+
disabled: BooleanConstructor;
|
|
36
|
+
hintLabel: {
|
|
37
|
+
type: StringConstructor;
|
|
38
|
+
default: string;
|
|
39
|
+
};
|
|
40
|
+
invalid: BooleanConstructor;
|
|
41
|
+
invalidLabel: (ArrayConstructor | StringConstructor)[];
|
|
42
|
+
valid: BooleanConstructor;
|
|
43
|
+
validLabel: (ArrayConstructor | StringConstructor)[];
|
|
44
|
+
tabindex: {
|
|
45
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
46
|
+
default: number;
|
|
47
|
+
};
|
|
48
|
+
id: (StringConstructor | NumberConstructor)[];
|
|
49
|
+
name: {
|
|
50
|
+
type: StringConstructor;
|
|
51
|
+
required: boolean;
|
|
52
|
+
};
|
|
53
|
+
}>> & {
|
|
54
|
+
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
55
|
+
}, {
|
|
56
|
+
disabled: boolean;
|
|
57
|
+
switch: boolean;
|
|
58
|
+
readonly: boolean;
|
|
59
|
+
indeterminate: boolean;
|
|
60
|
+
hintLabel: string;
|
|
61
|
+
invalid: boolean;
|
|
62
|
+
valid: boolean;
|
|
63
|
+
tabindex: string | number;
|
|
64
|
+
}>, {
|
|
65
|
+
default: (_: {
|
|
66
|
+
value: string | number | boolean | Record<string, any> | undefined;
|
|
67
|
+
}) => any;
|
|
68
|
+
}>;
|
|
69
|
+
export default _default;
|
|
70
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
71
|
+
new (): {
|
|
72
|
+
$slots: S;
|
|
73
|
+
};
|
|
74
|
+
};
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { type ExtractPropTypes, type Ref } from 'vue';
|
|
2
|
+
import type { IInputGroupState } from '@/composables/group/types/IInputGroup';
|
|
3
|
+
export declare const VvCheckboxProps: {
|
|
4
|
+
/**
|
|
5
|
+
* If true, the input will be indeterminated
|
|
6
|
+
*/
|
|
7
|
+
indeterminate: BooleanConstructor;
|
|
8
|
+
/**
|
|
9
|
+
* Value associated with the unchecked state
|
|
10
|
+
*/
|
|
11
|
+
uncheckedValue: (StringConstructor | BooleanConstructor | NumberConstructor)[];
|
|
12
|
+
/**
|
|
13
|
+
* If true, the input will be displayed as a switch
|
|
14
|
+
*/
|
|
15
|
+
switch: BooleanConstructor;
|
|
16
|
+
value: (StringConstructor | BooleanConstructor | NumberConstructor)[];
|
|
17
|
+
modelValue: (ObjectConstructor | StringConstructor | BooleanConstructor | NumberConstructor)[];
|
|
18
|
+
label: StringConstructor;
|
|
19
|
+
readonly: BooleanConstructor;
|
|
20
|
+
disabled: BooleanConstructor;
|
|
21
|
+
hintLabel: {
|
|
22
|
+
type: StringConstructor;
|
|
23
|
+
default: string;
|
|
24
|
+
};
|
|
25
|
+
invalid: BooleanConstructor;
|
|
26
|
+
invalidLabel: (ArrayConstructor | StringConstructor)[];
|
|
27
|
+
valid: BooleanConstructor;
|
|
28
|
+
validLabel: (ArrayConstructor | StringConstructor)[];
|
|
29
|
+
tabindex: {
|
|
30
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
31
|
+
default: number;
|
|
32
|
+
};
|
|
33
|
+
id: (StringConstructor | NumberConstructor)[];
|
|
34
|
+
name: {
|
|
35
|
+
type: StringConstructor;
|
|
36
|
+
required: boolean;
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
export declare const VvCheckboxEvents: string[];
|
|
40
|
+
export type VvCheckboxPropsTypes = ExtractPropTypes<typeof VvCheckboxProps>;
|
|
41
|
+
/**
|
|
42
|
+
* Merges local and group props
|
|
43
|
+
*/
|
|
44
|
+
export declare function useGroupProps(props: VvCheckboxPropsTypes, emit: (event: (typeof VvCheckboxEvents)[number], value: unknown) => void): {
|
|
45
|
+
propsSwitch: Ref<boolean>;
|
|
46
|
+
indeterminate: Ref<boolean>;
|
|
47
|
+
group: Ref<IInputGroupState> | undefined;
|
|
48
|
+
isInGroup: import("vue").ComputedRef<boolean>;
|
|
49
|
+
modelValue: import("vue").WritableComputedRef<unknown>;
|
|
50
|
+
readonly: Ref<boolean>;
|
|
51
|
+
disabled: Ref<boolean>;
|
|
52
|
+
valid: Ref<boolean>;
|
|
53
|
+
invalid: Ref<boolean>;
|
|
54
|
+
};
|