@volverjs/ui-vue 0.0.1-beta.12 → 0.0.1-beta.16
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/bin/icons.cjs +73 -0
- package/bin/icons.js +75 -0
- package/dist/Volver.d.ts +15 -2
- package/dist/components/VvAccordion/VvAccordion.es.js +133 -236
- package/dist/components/VvAccordion/VvAccordion.umd.js +1 -1
- 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 +199 -277
- package/dist/components/VvAccordionGroup/VvAccordionGroup.umd.js +1 -1
- package/dist/components/VvAccordionGroup/VvAccordionGroup.vue.d.ts +44 -151
- package/dist/components/VvAccordionGroup/{VvAccordionGroup.d.ts → index.d.ts} +9 -13
- package/dist/components/VvBadge/VvBadge.es.js +42 -151
- package/dist/components/VvBadge/VvBadge.umd.js +1 -1
- package/dist/components/VvBadge/VvBadge.vue.d.ts +12 -53
- package/dist/components/VvBadge/{VvBadge.d.ts → index.d.ts} +0 -0
- package/dist/components/VvBreadcrumb/VvBreadcrumb.es.js +55 -168
- package/dist/components/VvBreadcrumb/VvBreadcrumb.umd.js +1 -1
- package/dist/components/VvBreadcrumb/VvBreadcrumb.vue.d.ts +24 -104
- package/dist/components/VvBreadcrumb/{VvBreadcrumb.d.ts → index.d.ts} +1 -1
- package/dist/components/VvButton/VvButton.es.js +298 -312
- package/dist/components/VvButton/VvButton.umd.js +1 -1
- package/dist/components/VvButton/VvButton.vue.d.ts +91 -163
- package/dist/components/VvButton/{VvButton.d.ts → index.d.ts} +46 -9
- package/dist/components/VvButtonGroup/VvButtonGroup.es.js +59 -172
- package/dist/components/VvButtonGroup/VvButtonGroup.umd.js +1 -1
- package/dist/components/VvButtonGroup/VvButtonGroup.vue.d.ts +30 -125
- package/dist/components/VvButtonGroup/{VvButtonGroup.d.ts → index.d.ts} +0 -0
- package/dist/components/VvCard/VvCard.es.js +55 -166
- package/dist/components/VvCard/VvCard.umd.js +1 -1
- 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 +344 -0
- package/dist/components/VvCheckbox/VvCheckbox.umd.js +1 -0
- package/dist/components/VvCheckbox/VvCheckbox.vue.d.ts +87 -0
- package/dist/components/VvCheckbox/index.d.ts +86 -0
- package/dist/components/VvCheckboxGroup/VvCheckboxGroup.es.js +415 -0
- package/dist/components/VvCheckboxGroup/VvCheckboxGroup.umd.js +1 -0
- package/dist/components/VvCheckboxGroup/VvCheckboxGroup.vue.d.ts +113 -0
- package/dist/components/{VvCheckGroup/VvCheckGroup.d.ts → VvCheckboxGroup/index.d.ts} +10 -10
- package/dist/components/VvDialog/VvDialog.es.js +108 -230
- package/dist/components/VvDialog/VvDialog.umd.js +1 -1
- 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 +167 -186
- package/dist/components/VvDropdown/VvDropdown.umd.js +1 -1
- package/dist/components/VvDropdown/VvDropdown.vue.d.ts +34 -136
- package/dist/components/VvDropdown/{VvDropdown.d.ts → index.d.ts} +7 -3
- package/dist/components/VvIcon/VvIcon.es.js +62 -174
- package/dist/components/VvIcon/VvIcon.umd.js +1 -1
- 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 +586 -577
- package/dist/components/VvInputText/VvInputText.umd.js +1 -2
- package/dist/components/VvInputText/VvInputText.vue.d.ts +187 -275
- package/dist/components/VvInputText/VvInputTextActions.d.ts +1 -1
- package/dist/components/VvInputText/index.d.ts +175 -0
- package/dist/components/VvNativeSelect/VvNativeSelect.es.js +299 -347
- package/dist/components/VvNativeSelect/VvNativeSelect.umd.js +1 -2
- package/dist/components/VvNativeSelect/VvNativeSelect.vue.d.ts +78 -190
- package/dist/components/VvNativeSelect/{VvNativeSelect.d.ts → index.d.ts} +35 -8
- package/dist/components/VvProgress/VvProgress.es.js +45 -162
- package/dist/components/VvProgress/VvProgress.umd.js +1 -1
- package/dist/components/VvProgress/VvProgress.vue.d.ts +17 -103
- package/dist/components/VvProgress/{VvProgress.d.ts → index.d.ts} +1 -7
- package/dist/components/VvRadio/VvRadio.es.js +292 -267
- package/dist/components/VvRadio/VvRadio.umd.js +1 -1
- package/dist/components/VvRadio/VvRadio.vue.d.ts +52 -122
- package/dist/components/VvRadio/index.d.ts +64 -0
- package/dist/components/VvRadioGroup/VvRadioGroup.es.js +342 -380
- package/dist/components/VvRadioGroup/VvRadioGroup.umd.js +1 -2
- package/dist/components/VvRadioGroup/VvRadioGroup.vue.d.ts +58 -213
- package/dist/components/VvRadioGroup/{VvRadioGroup.d.ts → index.d.ts} +2 -2
- package/dist/components/VvSelect/VvSelect.es.js +556 -510
- package/dist/components/VvSelect/VvSelect.umd.js +1 -2
- package/dist/components/VvSelect/VvSelect.vue.d.ts +75 -240
- package/dist/components/VvSelect/{VvSelect.d.ts → index.d.ts} +12 -5
- package/dist/components/VvTextarea/VvTextarea.es.js +372 -481
- package/dist/components/VvTextarea/VvTextarea.umd.js +1 -2
- package/dist/components/VvTextarea/VvTextarea.vue.d.ts +103 -299
- package/dist/components/VvTextarea/{VvTextarea.d.ts → index.d.ts} +36 -13
- package/dist/components/common/HintSlot.d.ts +10 -4
- package/dist/components/index.d.ts +13 -6
- package/dist/components/index.es.js +2070 -895
- package/dist/components/index.umd.js +1 -2
- package/dist/composables/debouncedInput/useDebouncedInput.d.ts +2 -2
- package/dist/composables/focus/useComponentFocus.d.ts +3 -3
- package/dist/composables/group/types/IAccordionGroupState.d.ts +1 -3
- package/dist/composables/group/types/IGroupState.d.ts +2 -2
- package/dist/composables/group/useInjectedGroupState.d.ts +4 -4
- package/dist/composables/group/useProvideGroupState.d.ts +1 -1
- package/dist/composables/icons/useComponentIcons.d.ts +2 -2
- package/dist/composables/textLimit/useTextLimit.d.ts +0 -3
- package/dist/constants.d.ts +4 -4
- package/dist/icons.d.ts +1881 -0
- package/dist/icons.es.js +4 -6
- package/dist/icons.umd.js +1 -1
- package/dist/index.es.js +2113 -932
- package/dist/index.umd.js +1 -2
- package/dist/props/index.d.ts +9 -3
- 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.test.d.ts +4 -0
- package/dist/stories/Badge/Badge.test.d.ts +2 -0
- package/dist/stories/Breadcrumb/Breadcrumb.test.d.ts +2 -0
- package/dist/stories/Button/Button.test.d.ts +3 -8
- package/dist/stories/Card/Card.test.d.ts +3 -0
- package/dist/stories/Dialog/Dialog.test.d.ts +2 -0
- package/dist/stories/Dropdown/Dropdown.test.d.ts +2 -0
- package/dist/stories/Icon/IconList.vue.d.ts +1 -43
- package/dist/stories/InputText/InputText.test.d.ts +6 -0
- package/dist/stories/Radio/Radio.test.d.ts +3 -0
- package/dist/stories/RadioGroup/RadioGroup.test.d.ts +8 -0
- package/dist/stories/Select/Select.test.d.ts +3 -0
- package/dist/stories/Textarea/Textarea.test.d.ts +8 -0
- package/dist/stories/utils.d.ts +1 -3
- 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 +102 -68
- package/src/Volver.ts +32 -3
- 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 +80 -76
- package/src/components/VvAccordion/index.ts +69 -0
- package/src/components/VvAccordionGroup/VvAccordionGroup.vue +77 -41
- package/src/components/VvAccordionGroup/{VvAccordionGroup.ts → index.ts} +8 -12
- package/src/components/VvBadge/VvBadge.vue +14 -10
- package/src/components/VvBadge/{VvBadge.ts → index.ts} +0 -0
- package/src/components/VvBreadcrumb/VvBreadcrumb.vue +18 -19
- package/src/components/VvBreadcrumb/{VvBreadcrumb.ts → index.ts} +1 -1
- package/src/components/VvButton/VvButton.vue +123 -113
- package/src/components/VvButton/index.ts +147 -0
- package/src/components/VvButtonGroup/VvButtonGroup.vue +21 -17
- package/src/components/VvButtonGroup/{VvButtonGroup.ts → index.ts} +0 -0
- package/src/components/VvCard/VvCard.vue +20 -22
- package/src/components/VvCard/{VvCard.ts → index.ts} +0 -0
- package/src/components/VvCheckbox/VvCheckbox.vue +124 -0
- package/src/components/VvCheckbox/index.ts +94 -0
- package/src/components/{VvCheckGroup/VvCheckGroup.vue → VvCheckboxGroup/VvCheckboxGroup.vue} +49 -54
- package/src/components/{VvCheckGroup/VvCheckGroup.ts → VvCheckboxGroup/index.ts} +9 -9
- package/src/components/VvDialog/VvDialog.vue +47 -50
- package/src/components/VvDialog/index.ts +10 -0
- package/src/components/VvDropdown/VvDropdown.vue +61 -40
- package/src/components/VvDropdown/{VvDropdown.ts → index.ts} +8 -4
- package/src/components/VvIcon/VvIcon.vue +31 -25
- package/src/components/VvIcon/{VvIcon.ts → index.ts} +9 -0
- 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 +168 -170
- package/src/components/VvInputText/VvInputTextActions.ts +54 -108
- package/src/components/VvInputText/index.ts +135 -0
- package/src/components/VvNativeSelect/VvNativeSelect.vue +130 -68
- package/src/components/VvNativeSelect/{VvNativeSelect.ts → index.ts} +26 -7
- package/src/components/VvProgress/VvProgress.vue +25 -26
- package/src/components/VvProgress/{VvProgress.ts → index.ts} +4 -7
- package/src/components/VvRadio/VvRadio.vue +81 -108
- package/src/components/VvRadio/index.ts +78 -0
- package/src/components/VvRadioGroup/VvRadioGroup.vue +45 -45
- package/src/components/VvRadioGroup/{VvRadioGroup.ts → index.ts} +1 -1
- package/src/components/VvSelect/VvSelect.vue +90 -69
- package/src/components/VvSelect/{VvSelect.ts → index.ts} +12 -5
- package/src/components/VvTextarea/VvTextarea.vue +121 -128
- package/src/components/VvTextarea/{VvTextarea.ts → index.ts} +31 -11
- package/src/components/common/HintSlot.ts +157 -136
- package/src/components/index.ts +13 -6
- package/src/composables/debouncedInput/useDebouncedInput.ts +21 -15
- package/src/composables/focus/useComponentFocus.ts +6 -8
- package/src/composables/group/types/IAccordionGroupState.ts +1 -3
- package/src/composables/group/types/IGroupState.ts +2 -2
- package/src/composables/group/useInjectedGroupState.ts +20 -30
- package/src/composables/group/useProvideGroupState.ts +1 -2
- package/src/composables/icons/useComponentIcons.ts +2 -3
- package/src/composables/options/useOptions.ts +3 -0
- package/src/composables/textLimit/useTextLimit.ts +1 -4
- package/src/composables/useModifiers.ts +13 -15
- package/src/constants.ts +5 -7
- package/src/directives/{.README → .gitkeep} +0 -0
- package/src/icons.ts +7 -0
- package/src/index.ts +0 -1
- package/src/props/index.ts +7 -1
- package/src/resolvers/unplugin.ts +103 -0
- package/src/shims.d.ts +11 -0
- package/src/stories/Accordion/Accordion.stories.mdx +10 -9
- package/src/stories/Accordion/Accordion.test.ts +37 -0
- package/src/stories/Accordion/AccordionSlots.stories.mdx +40 -25
- package/src/stories/AccordionGroup/AccordionGroup.stories.mdx +10 -16
- package/src/stories/AccordionGroup/{accordionGroupTest.js → AccordionGroup.test.js} +15 -17
- package/src/stories/AccordionGroup/AccordionGroupCollapse.stories.mdx +38 -0
- package/src/stories/AccordionGroup/{AccordionItems.stories.mdx → AccordionGroupItems.stories.mdx} +7 -13
- package/src/stories/Badge/Badge.stories.mdx +8 -8
- package/src/stories/Badge/Badge.test.ts +16 -0
- package/src/stories/Badge/BadgeColor.stories.mdx +6 -7
- package/src/stories/Badge/BadgeDot.stories.mdx +4 -3
- package/src/stories/Badge/BadgeModifiers.stories.mdx +7 -6
- package/src/stories/Breadcrumb/Breadcrumb.stories.mdx +15 -7
- package/src/stories/Breadcrumb/Breadcrumb.test.ts +49 -0
- package/src/stories/Breadcrumb/BreadcrumbMultiline.stories.mdx +15 -7
- package/src/stories/Button/Button.stories.mdx +16 -17
- package/src/stories/Button/Button.test.ts +8 -12
- package/src/stories/Button/ButtonActive.stories.mdx +2 -1
- package/src/stories/Button/ButtonBadge.stories.mdx +2 -2
- package/src/stories/Button/ButtonDisabled.stories.mdx +1 -1
- package/src/stories/Button/ButtonIcon.stories.mdx +6 -3
- package/src/stories/Button/ButtonIconPosition.stories.mdx +1 -1
- package/src/stories/Button/ButtonLink.stories.mdx +1 -19
- package/src/stories/Button/ButtonLoading.stories.mdx +4 -4
- package/src/stories/Button/ButtonModifiers.stories.mdx +1 -1
- package/src/stories/Button/ButtonPressed.stories.mdx +31 -0
- package/src/stories/Button/ButtonSlots.stories.mdx +1 -1
- package/src/stories/ButtonGroup/ButtonGroup.stories.mdx +5 -6
- package/src/stories/ButtonGroup/{ButtonGroupTest.js → ButtonGroup.test.js} +6 -28
- package/src/stories/ButtonGroup/ButtonGroupAction.stories.mdx +5 -6
- package/src/stories/ButtonGroup/ButtonGroupActionQuiet.stories.mdx +3 -4
- package/src/stories/ButtonGroup/ButtonGroupBlock.stories.mdx +3 -4
- package/src/stories/ButtonGroup/ButtonGroupCompact.stories.mdx +3 -4
- package/src/stories/ButtonGroup/ButtonGroupRounded.stories.mdx +3 -4
- package/src/stories/ButtonGroup/ButtonGroupToggle.stories.mdx +11 -12
- package/src/stories/ButtonGroup/ButtonGroupVertical.stories.mdx +3 -4
- package/src/stories/Card/Card.stories.mdx +7 -5
- package/src/stories/Card/Card.test.ts +26 -0
- package/src/stories/Card/CardSlots.stories.mdx +5 -5
- package/src/stories/Card/CardVariant.stories.mdx +5 -4
- package/src/stories/Checkbox/Checkbox.stories.mdx +51 -0
- package/src/stories/Checkbox/Checkbox.test.js +115 -0
- package/src/stories/Checkbox/CheckboxBinary.stories.mdx +76 -0
- package/src/stories/{Check/CheckDisabled.stories.mdx → Checkbox/CheckboxDisabled.stories.mdx} +7 -7
- package/src/stories/Checkbox/CheckboxError.stories.mdx +43 -0
- package/src/stories/Checkbox/CheckboxHintLabel.stories.mdx +35 -0
- package/src/stories/{Check/CheckReadonly.stories.mdx → Checkbox/CheckboxReadonly.stories.mdx} +6 -8
- package/src/stories/Checkbox/CheckboxSlots.stories.mdx +69 -0
- package/src/stories/{Check/CheckSwitch.stories.mdx → Checkbox/CheckboxSwitch.stories.mdx} +8 -8
- package/src/stories/CheckboxGroup/CheckboxGroup.stories.mdx +69 -0
- package/src/stories/CheckboxGroup/CheckboxGroupDisabled.stories.mdx +26 -0
- package/src/stories/CheckboxGroup/CheckboxGroupError.stories.mdx +28 -0
- package/src/stories/CheckboxGroup/CheckboxGroupHintLabel.stories.mdx +27 -0
- package/src/stories/CheckboxGroup/CheckboxGroupLabel.stories.mdx +26 -0
- package/src/stories/{CheckGroup/CheckGroupOptionLabel.stories.mdx → CheckboxGroup/CheckboxGroupOptionLabel.stories.mdx} +14 -11
- package/src/stories/{CheckGroup/CheckGroupOptionValue.stories.mdx → CheckboxGroup/CheckboxGroupOptionValue.stories.mdx} +13 -10
- package/src/stories/{CheckGroup/CheckGroupOptions.stories.mdx → CheckboxGroup/CheckboxGroupOptions.stories.mdx} +8 -8
- package/src/stories/CheckboxGroup/CheckboxGroupReadonly.stories.mdx +26 -0
- package/src/stories/CheckboxGroup/CheckboxGroupSlots.stories.mdx +152 -0
- package/src/stories/CheckboxGroup/CheckboxGroupValid.stories.mdx +28 -0
- package/src/stories/CheckboxGroup/CheckboxGroupVertical.stories.mdx +26 -0
- package/src/stories/Dialog/Dialog.stories.mdx +5 -5
- package/src/stories/Dialog/Dialog.test.ts +26 -0
- package/src/stories/Dialog/DialogAutoClose.stories.mdx +1 -1
- package/src/stories/Dialog/DialogSize.stories.mdx +1 -1
- package/src/stories/Dropdown/Dropdown.stories.mdx +11 -7
- package/src/stories/Dropdown/Dropdown.test.ts +80 -0
- package/src/stories/Dropdown/DropdownDisabled.stories.mdx +9 -2
- package/src/stories/Dropdown/DropdownLabelNoResults.stories.mdx +2 -2
- package/src/stories/Dropdown/DropdownMaxValues.stories.mdx +4 -2
- package/src/stories/Dropdown/DropdownMultiple.stories.mdx +4 -2
- package/src/stories/Dropdown/DropdownOptions.stories.mdx +4 -4
- package/src/stories/Dropdown/DropdownUseObject.stories.mdx +4 -2
- package/src/stories/Icon/Icon.stories.mdx +8 -8
- package/src/stories/Icon/{IconTest.js → Icon.test.js} +2 -5
- package/src/stories/Icon/IconList.vue +5 -6
- package/src/stories/Icon/IconPrefix.stories.mdx +2 -2
- package/src/stories/Icon/IconRemote.stories.mdx +2 -2
- package/src/stories/Icon/IconsList.stories.mdx +2 -18
- package/src/stories/InputText/InputText.stories.mdx +25 -19
- package/src/stories/InputText/InputText.test.ts +156 -0
- package/src/stories/InputText/InputTextAutocomplete.stories.mdx +9 -2
- package/src/stories/InputText/InputTextAutofocus.stories.mdx +6 -3
- package/src/stories/InputText/InputTextDisabled.stories.mdx +10 -2
- package/src/stories/InputText/InputTextError.stories.mdx +10 -2
- package/src/stories/InputText/InputTextFloating.stories.mdx +10 -3
- package/src/stories/InputText/InputTextHintLabel.stories.mdx +10 -2
- package/src/stories/InputText/InputTextIcon.stories.mdx +6 -2
- package/src/stories/InputText/InputTextIconPosition.stories.mdx +10 -3
- package/src/stories/InputText/InputTextLabel.stories.mdx +8 -2
- package/src/stories/InputText/InputTextLoading.stories.mdx +10 -2
- package/src/stories/InputText/InputTextMax.stories.mdx +10 -3
- package/src/stories/InputText/InputTextMaxLength.stories.mdx +22 -5
- package/src/stories/InputText/InputTextMin.stories.mdx +10 -3
- package/src/stories/InputText/InputTextMinLength.stories.mdx +9 -2
- package/src/stories/InputText/InputTextPlaceholder.stories.mdx +8 -2
- package/src/stories/InputText/InputTextReadonly.stories.mdx +6 -2
- package/src/stories/InputText/InputTextSlots.stories.mdx +4 -5
- package/src/stories/InputText/InputTextStep.stories.mdx +9 -3
- package/src/stories/InputText/InputTextType.stories.mdx +110 -13
- package/src/stories/InputText/InputTextValid.stories.mdx +10 -2
- package/src/stories/NativeSelect/NativeSelect.stories.mdx +15 -11
- package/src/stories/NativeSelect/NativeSelect.test.js +151 -0
- package/src/stories/NativeSelect/NativeSelectDisabled.stories.mdx +6 -7
- package/src/stories/NativeSelect/NativeSelectError.stories.mdx +7 -3
- package/src/stories/NativeSelect/NativeSelectHintLabel.stories.mdx +7 -3
- package/src/stories/NativeSelect/NativeSelectIconLeftRight.stories.mdx +14 -12
- package/src/stories/NativeSelect/NativeSelectLoading.stories.mdx +7 -3
- package/src/stories/NativeSelect/NativeSelectOptions.stories.mdx +44 -38
- package/src/stories/NativeSelect/NativeSelectReadonly.stories.mdx +19 -11
- package/src/stories/NativeSelect/NativeSelectUseObject.stories.mdx +26 -30
- package/src/stories/NativeSelect/NativeSelectValid.stories.mdx +7 -3
- package/src/stories/NativeSelect/NativeSelectValueKey.stories.mdx +30 -30
- package/src/stories/Progress/Progress.stories.mdx +8 -11
- package/src/stories/Progress/{ProgressTest.js → Progress.test.js} +4 -10
- package/src/stories/Progress/ProgressDeterminate.stories.mdx +3 -6
- package/src/stories/Radio/Radio.stories.mdx +11 -17
- package/src/stories/Radio/Radio.test.ts +52 -0
- package/src/stories/Radio/RadioDisabled.stories.mdx +4 -7
- package/src/stories/Radio/RadioError.stories.mdx +8 -28
- package/src/stories/Radio/RadioHintLabel.stories.mdx +6 -7
- package/src/stories/Radio/RadioSlots.stories.mdx +21 -7
- package/src/stories/RadioGroup/RadioGroup.stories.mdx +20 -27
- package/src/stories/RadioGroup/RadioGroup.test.ts +139 -0
- package/src/stories/RadioGroup/RadioGroupDisabled.stories.mdx +6 -8
- package/src/stories/RadioGroup/RadioGroupError.stories.mdx +9 -11
- package/src/stories/RadioGroup/RadioGroupHintLabel.stories.mdx +8 -10
- package/src/stories/RadioGroup/RadioGroupLabel.stories.mdx +6 -8
- package/src/stories/RadioGroup/RadioGroupOptionLabel.stories.mdx +11 -13
- package/src/stories/RadioGroup/RadioGroupOptionValue.stories.mdx +9 -11
- package/src/stories/RadioGroup/RadioGroupOptions.stories.mdx +7 -9
- package/src/stories/RadioGroup/RadioGroupReadonly.stories.mdx +6 -8
- package/src/stories/RadioGroup/RadioGroupSlots.stories.mdx +39 -62
- package/src/stories/RadioGroup/RadioGroupValid.stories.mdx +9 -11
- package/src/stories/RadioGroup/RadioGroupVertical.stories.mdx +6 -8
- package/src/stories/Select/Select.stories.mdx +32 -29
- package/src/stories/Select/Select.test.ts +104 -0
- package/src/stories/Select/SelectDisabled.stories.mdx +3 -3
- package/src/stories/Select/SelectMaxValues.stories.mdx +3 -3
- package/src/stories/Select/SelectMultiple.stories.mdx +5 -6
- package/src/stories/Select/SelectNative.stories.mdx +6 -8
- package/src/stories/Select/SelectOptions.stories.mdx +4 -4
- package/src/stories/Select/SelectSearchable.stories.mdx +13 -12
- package/src/stories/Select/SelectSeparator.stories.mdx +3 -3
- package/src/stories/Select/SelectUseObject.stories.mdx +3 -3
- package/src/stories/Textarea/Textarea.stories.mdx +6 -10
- package/src/stories/Textarea/Textarea.test.ts +204 -0
- package/src/stories/Textarea/TextareaAutoclear.stories.mdx +3 -2
- package/src/stories/Textarea/TextareaAutocomplete.stories.mdx +3 -2
- package/src/stories/Textarea/TextareaAutofocus.stories.mdx +3 -2
- package/src/stories/Textarea/TextareaDebounce.stories.mdx +7 -6
- package/src/stories/Textarea/TextareaDisabled.stories.mdx +9 -3
- package/src/stories/Textarea/TextareaError.stories.mdx +7 -2
- package/src/stories/Textarea/TextareaErrorLabel.stories.mdx +12 -2
- package/src/stories/Textarea/TextareaFloating.stories.mdx +7 -2
- package/src/stories/Textarea/TextareaHintLabel.stories.mdx +7 -2
- package/src/stories/Textarea/TextareaIcon.stories.mdx +3 -2
- package/src/stories/Textarea/TextareaIconPosition.stories.mdx +4 -2
- package/src/stories/Textarea/TextareaId.stories.mdx +3 -2
- package/src/stories/Textarea/TextareaLabel.stories.mdx +3 -2
- package/src/stories/Textarea/TextareaLimit.stories.mdx +5 -2
- package/src/stories/Textarea/TextareaLoading.stories.mdx +7 -2
- package/src/stories/Textarea/TextareaLoadingLabel.stories.mdx +9 -3
- package/src/stories/Textarea/TextareaMaxLength.stories.mdx +5 -4
- package/src/stories/Textarea/TextareaMinLength.stories.mdx +3 -2
- package/src/stories/Textarea/TextareaModifiers.stories.mdx +10 -2
- package/src/stories/Textarea/TextareaName.stories.mdx +3 -2
- package/src/stories/Textarea/TextareaPlaceholder.stories.mdx +4 -3
- package/src/stories/Textarea/TextareaReadonly.stories.mdx +8 -3
- package/src/stories/Textarea/TextareaRequired.stories.mdx +3 -2
- package/src/stories/Textarea/TextareaResizable.stories.mdx +7 -2
- package/src/stories/Textarea/TextareaRowsCols.stories.mdx +4 -2
- package/src/stories/Textarea/TextareaSlots.stories.mdx +7 -8
- package/src/stories/Textarea/TextareaValid.stories.mdx +7 -1
- package/src/stories/Textarea/TextareaValidLabel.stories.mdx +14 -4
- package/src/stories/utils.ts +1 -1
- package/src/stories/volver-ui-vue.stories.mdx +1 -1
- package/src/test/expect.ts +3 -1
- package/src/test/sleep.ts +2 -0
- package/src/test/types.d.ts +14 -1
- package/src/types/{.README → .gitkeep} +0 -0
- package/src/utils/ObjectUtilities.ts +247 -241
- package/dist/components/VvAccordion/VvAccordion.d.ts +0 -32
- package/dist/components/VvAccordion/useAccordionProps.d.ts +0 -16
- package/dist/components/VvButton/useButtonGroupProps.d.ts +0 -18
- package/dist/components/VvCheck/VvCheck.d.ts +0 -47
- package/dist/components/VvCheck/VvCheck.es.js +0 -318
- package/dist/components/VvCheck/VvCheck.umd.js +0 -1
- package/dist/components/VvCheck/VvCheck.vue.d.ts +0 -165
- package/dist/components/VvCheck/useCheckProps.d.ts +0 -16
- package/dist/components/VvCheckGroup/VvCheckGroup.es.js +0 -451
- package/dist/components/VvCheckGroup/VvCheckGroup.umd.js +0 -2
- package/dist/components/VvCheckGroup/VvCheckGroup.vue.d.ts +0 -272
- package/dist/components/VvDialog/constants.d.ts +0 -5
- package/dist/components/VvInputText/VvInputText.d.ts +0 -73
- package/dist/components/VvInputText/constants.d.ts +0 -55
- package/dist/components/VvRadio/VvRadio.d.ts +0 -22
- package/dist/components/VvRadio/useRadioProps.d.ts +0 -15
- package/dist/components/VvTextarea/constants.d.ts +0 -19
- package/dist/stories/RadioGroup/RadioOption.test.d.ts +0 -4
- package/dist/stories/RadioGroup/RadioProperty.test.d.ts +0 -12
- package/dist/stories/RadioGroup/RadioSlots.test.d.ts +0 -6
- 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/VvButton/VvButton.ts +0 -87
- package/src/components/VvButton/useButtonGroupProps.ts +0 -43
- package/src/components/VvCheck/VvCheck.ts +0 -48
- package/src/components/VvCheck/VvCheck.vue +0 -147
- package/src/components/VvCheck/useCheckProps.ts +0 -41
- package/src/components/VvDialog/VvDialog.ts +0 -17
- package/src/components/VvDialog/constants.ts +0 -5
- package/src/components/VvInputText/VvInputText.ts +0 -66
- package/src/components/VvInputText/constants.ts +0 -34
- package/src/components/VvRadio/VvRadio.ts +0 -25
- package/src/components/VvRadio/useRadioProps.ts +0 -40
- package/src/components/VvTextarea/constants.ts +0 -14
- 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/Badge/BadgeTest.js +0 -21
- package/src/stories/Button/ButtonSelected.stories.mdx +0 -30
- package/src/stories/Check/Check.stories.mdx +0 -62
- package/src/stories/Check/CheckBinary.stories.mdx +0 -75
- package/src/stories/Check/CheckError.stories.mdx +0 -64
- package/src/stories/Check/CheckErrorTests.js +0 -74
- package/src/stories/Check/CheckHintLabel.stories.mdx +0 -30
- package/src/stories/Check/CheckPropertyTest.js +0 -102
- package/src/stories/Check/CheckSlots.stories.mdx +0 -51
- 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/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/RadioGroup/RadioOption.test.ts +0 -45
- package/src/stories/RadioGroup/RadioProperty.test.ts +0 -87
- package/src/stories/RadioGroup/RadioSlots.test.ts +0 -29
- package/src/stories/stories.scss +0 -13
|
@@ -1,2 +1 @@
|
|
|
1
|
-
(function(e,
|
|
2
|
-
`+r:r,""):t}function U(t,n){return{name:"HintSlot",props:{params:{type:Object,default:()=>({})}},setup(r){const s=e.toRefs(t),{error:o,valid:i,hint:a,loading:d}=n,{hintLabel:l,modelValue:g,valid:c,validLabel:u,error:m,errorLabel:f}=s,p=y.resolveFieldData(s,"loading"),h=y.resolveFieldData(s,"loadingLabel"),A=e.computed(()=>m.value?!!(m.value&&o||(f==null?void 0:f.value)&&Array.isArray(f.value)&&f.value.length>0||(f==null?void 0:f.value)&&y.isNotEmpty(f.value)):!1),k=e.computed(()=>!!(l&&l.value||a||i||u&&u.value||A.value||(p==null?void 0:p.value)&&d||(p==null?void 0:p.value)&&(h==null?void 0:h.value))),P=e.computed(()=>{const B=_.toReactive({hintLabel:l,modelValue:g,valid:c,validLabel:u,error:m,errorLabel:f,loading:p,loadingLabel:h,...r.params});return m!=null&&m.value?(o==null?void 0:o(B))||E(f==null?void 0:f.value)||(l==null?void 0:l.value):c!=null&&c.value?(i==null?void 0:i(B))||E(u==null?void 0:u.value)||(l==null?void 0:l.value):p!=null&&p.value?(d==null?void 0:d(B))||E(h==null?void 0:h.value)||(l==null?void 0:l.value):(a==null?void 0:a(B))||E(l==null?void 0:l.value)||(l==null?void 0:l.value)});return{hasHint:k,hintContent:P}},render(){if(this.hasHint)return e.h("pre",{style:{"white-space":"pre"}},this.hintContent)}}}function J(t,n,r){const s=e.computed(()=>!!(t.value&&n.value==="left"||r.iconLeft)),o=e.computed(()=>!!(t.value&&n.value==="right"||r.iconRight)),i=e.computed(()=>!!(t.value&&n.value==="top"||r.iconTop)),a=e.computed(()=>!!(t.value&&n.value==="bottom"||r.iconBottom));return{hasIconLeft:s,hasIconRight:o,hasIconTop:i,hasIconBottom:a}}function X(t,n){const{focused:r}=_.useFocus(t);return e.watch(r,s=>{n(s?"focus":"blur",t.value)}),{focused:r}}function K(t,n,r){const s=e.ref(t==null?void 0:t.value),o=_.refDebounced(s,n||0);return e.watch(o,i=>r("update:modelValue",i)),s}function Q(t,n){const r=e.computed(()=>{const i=e.unref(t);return _.isString(i)?i.length:0}),s=e.computed(()=>{const i=e.unref(t)||"";return!_.isString(i)||n.mode===!1?0:n.mode===!0?i.length:e.unref(n.upperLimit)-i.length}),o=e.computed(()=>n.mode===!1?"":n.mode===!0&&n.upperLimit&&n.upperLimit>0?`${s.value}/${e.unref(n.upperLimit)}`:s.value);return{textLength:r,textLimitLength:s,formattedTextLimitLength:o}}const Y=["for"],v={class:"vv-textarea__wrapper"},ee={key:3,class:"vv-textarea__limit"},te={inheritAttrs:!1};return e.defineComponent({...te,__name:"VvTextarea",props:H,emits:M,setup(t,{emit:n}){const r=t,s=e.useSlots(),o=e.useAttrs(),i=e.ref(),{icon:a,iconPosition:d,label:l,modelValue:g,autoclear:c,limit:u}=e.toRefs(r),m=r.id||r.name,f=`${r.name}-label`,p=`${r.name}-hint`,h=e.computed(()=>r.floating&&y.isEmpty(r.placeholder)?" ":r.placeholder),A=K(g,r.debounce,n),{hasIconLeft:k,hasIconRight:P}=J(a,d,{iconLeft:s["icon-left"],iconRight:s["icon-right"]}),{focused:B}=X(i,n),{textLength:N,formattedTextLimitLength:re}=Q(A,{mode:r.limit,upperLimit:r.maxlength||0}),ne=e.computed(()=>[G("vv-textarea",{modifiers:r.modifiers,readonly:r.readonly,valid:r.valid,invalid:r.error,loading:r.loading,iconLeft:k,iconRight:P,floating:r.floating&&y.isNotEmpty(r.label),dirty:y.isNotEmpty(g==null?void 0:g.value),resizable:r.resizable}),o.class]),oe=e.computed(()=>{const b=y.pickBy(o,x=>x.startsWith("data-"));return{style:o.style,...b}}),se=e.computed(()=>{const b=y.pickBy(o,x=>x.startsWith("aria-"));return{id:m,placeholder:h.value,name:r.name,autocomplete:r.autocomplete,disabled:r.disabled,readonly:r.readonly,minlength:r.minlength,maxlength:r.maxlength,cols:r.cols,rows:r.rows,required:r.required,tabindex:o.tabindex,"aria-invalid":r.error,"aria-valid":!r.valid,"aria-labeledby":f,"aria-describedby":p,"aria-errormessage":p,...b}}),$=e.computed(()=>{const{modelValue:b,valid:x,error:C,maxlength:le,hintLabel:ce}=r;return{valid:x,error:C,modelValue:b,hintLabel:ce,maxlength:le,textLength:N}}),ie=U(r,s);function ae(){A.value=""}return e.onMounted(()=>{r.autofocus&&(B.value=!0)}),(b,x)=>(e.openBlock(),e.createElementBlock("div",e.mergeProps(e.unref(oe),{class:e.unref(ne)}),[e.unref(l)?(e.openBlock(),e.createElementBlock("label",{key:0,id:f,for:e.unref(m)},e.toDisplayString(e.unref(l)),9,Y)):e.createCommentVNode("",!0),e.createElementVNode("div",v,[e.unref(k)?e.renderSlot(b.$slots,"icon-left",e.normalizeProps(e.mergeProps({key:0},e.unref($))),()=>[e.createVNode(w,{class:"vv-textarea__icon-left",name:e.unref(a)},null,8,["name"])]):e.createCommentVNode("",!0),e.withDirectives(e.createElementVNode("textarea",e.mergeProps({ref_key:"input",ref:i,"onUpdate:modelValue":x[0]||(x[0]=C=>e.isRef(A)?A.value=C:null)},e.unref(se),{onInput:x[1]||(x[1]=C=>n("input",C))}),null,16),[[e.vModelText,e.unref(A)]]),e.unref(c)&&e.unref(N)>0?(e.openBlock(),e.createElementBlock("button",{key:1,class:"vv-button vv-button--ghost",onClick:ae},[e.createVNode(w,{name:"clear-field"})])):e.createCommentVNode("",!0),e.unref(P)?e.renderSlot(b.$slots,"icon-right",e.normalizeProps(e.mergeProps({key:2},e.unref($))),()=>[e.createVNode(w,{name:e.unref(a)},null,8,["name"])]):e.createCommentVNode("",!0),e.unref(u)?(e.openBlock(),e.createElementBlock("span",ee,[e.renderSlot(b.$slots,"limit",{},()=>[e.createTextVNode(e.toDisplayString(e.unref(re)),1)])])):e.createCommentVNode("",!0)]),e.createVNode(e.unref(ie),{id:p,class:"vv-textarea__hint"})],16))}})});
|
|
1
|
+
(function(e,_){typeof exports=="object"&&typeof module<"u"?module.exports=_(require("vue"),require("nanoid"),require("@vueuse/core"),require("@iconify/vue")):typeof define=="function"&&define.amd?define(["vue","nanoid","@vueuse/core","@iconify/vue"],_):(e=typeof globalThis<"u"?globalThis:e||self,e.VvTextarea=_(e.vue,e.nanoid,e.core,e.vue$1))})(this,function(e,_,B,S){"use strict";function A(r,n){if(r&&Object.keys(r).length&&n){if(n.indexOf(".")===-1)return r[n];{const t=n.split(".");let a=r;for(let s=0,c=t.length;s<c;++s){if(r==null)return null;a=a[t[s]]}return a}}else return null}function P(r){return(n=>n==null||n===""||Array.isArray(n)&&n.length===0||!(n instanceof Date)&&typeof n=="object"&&Object.keys(n).length===0)(e.unref(r))}function v(r){return typeof r=="string"||r instanceof String}function D(r){var n,t;if(r)return(t=(n=r.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:n.join("-"))==null?void 0:t.toLowerCase()}function C(r){return Array.isArray(r)?r.filter(n=>v(n)).join(" "):r}function F(r,n){const{error:t,valid:a,hint:s,loading:c}=n,{hintLabel:o,modelValue:g,valid:p,validLabel:f,error:l,errorLabel:i,...m}=e.toRefs(r),u=A(m,"loading"),d=A(m,"loadingLabel"),h=e.computed(()=>l.value?!!(l.value&&t||i!=null&&i.value&&Array.isArray(i.value)&&i.value.length>0||i!=null&&i.value&&!P(i)):!1),x=e.computed(()=>!!(o&&o.value||s)),V=e.computed(()=>!!(f&&f.value||a)),w=e.computed(()=>!!(u!=null&&u.value&&c||u!=null&&u.value&&(d!=null&&d.value))),$=e.computed(()=>x.value||V||h.value||w.value);return{hasErrors:h,hasHint:x,hasValid:V,hasLoading:w,HintSlot:{name:"HintSlot",props:{params:{type:Object,default:()=>({})}},setup(E){const k=e.computed(()=>{const b=B.toReactive({hintLabel:o,modelValue:g,valid:p,validLabel:f,error:l,errorLabel:i,loading:u,loadingLabel:d,...E.params});return l!=null&&l.value?(t==null?void 0:t(b))||C(i==null?void 0:i.value)||(o==null?void 0:o.value):p!=null&&p.value?(a==null?void 0:a(b))||C(f==null?void 0:f.value)||(o==null?void 0:o.value):u!=null&&u.value?(c==null?void 0:c(b))||C(d==null?void 0:d.value)||(o==null?void 0:o.value):(s==null?void 0:s(b))||C(o==null?void 0:o.value)||(o==null?void 0:o.value)});return{isVisible:$,hasErrors:h,hasValid:V,hintContent:k}},render(){if(this.isVisible)return e.h("small",{role:this.hasErrors||this.hasValid?"alert":void 0},this.hintContent)}}}}function H(r,n,t){const a=e.computed(()=>!!(r.value&&n.value==="left"||t.iconLeft)),s=e.computed(()=>!!(r.value&&n.value==="right"||t.iconRight)),c=e.computed(()=>!!(r.value&&n.value==="top"||t.iconTop)),o=e.computed(()=>!!(r.value&&n.value==="bottom"||t.iconBottom));return{hasIconLeft:a,hasIconRight:s,hasIconTop:c,hasIconBottom:o}}function M(r,n){const{focused:t}=B.useFocus(r);return e.watch(t,a=>{n(a?"focus":"blur",e.unref(r))}),{focused:t}}function z(r,n,t=0){let a;return typeof t=="string"&&(t=parseInt(t)),e.computed({get:()=>r==null?void 0:r.value,set:s=>{a&&clearTimeout(a),a=setTimeout(()=>{n("update:modelValue",s)},t)}})}function Z(r,n){const t=e.computed(()=>{const c=e.unref(r);return B.isString(c)?c.length:0}),a=e.computed(()=>{const c=e.unref(r)||"";return!B.isString(c)||n.mode===!1?0:n.mode===!0?c.length:e.unref(n.upperLimit)-c.length}),s=e.computed(()=>n.mode===!1?"":n.mode===!0&&n.upperLimit&&n.upperLimit>0?`${a.value}/${e.unref(n.upperLimit)}`:a.value);return{textLength:t,textLimitLength:a,formattedTextLimitLength:s}}function L(r,n){const t={[`${r}`]:!0};return{bemCssClasses:e.computed(()=>Object.keys(n).reduce((s,c)=>{const o=e.unref(n[c])||!1;if(!o)return s;if(c==="modifiers"){const g=Array.isArray(o)?o:o.split(" ");return{...s,...g.reduce((p,f)=>({...p,[`${r}--${D(f)}`]:!0}),{})}}else return{...s,[`${r}--${D(c)}`]:o}},t)||{})}}const G="ds",J={color:String,width:{type:[String,Number]},height:{type:[String,Number]},name:{type:String,required:!0},provider:{type:String},prefix:{type:String,default:"normal"},src:String,horizontalFlip:Boolean,verticalFlip:Boolean,flip:String,mode:String,inline:Boolean,rotate:[Number,String],onLoad:Function,svg:String,modifiers:{type:[String,Array]}},U={name:"VvIcon"},I=e.defineComponent({...U,props:J,setup(r){const n=r,t=e.ref(!0),{modifiers:a}=e.toRefs(n),s=e.inject(G),{bemCssClasses:c}=L("vv-icon",{modifiers:a}),o=e.computed(()=>n.provider||(s==null?void 0:s.provider)),g=e.computed(()=>{const l=n.name||"",i=`@${o.value}:${n.prefix}:${n.name}`;return S.iconExists(l)?l:S.iconExists(i)?i:(s==null?void 0:s.iconsCollections.find(m=>{const u=`@${o.value}:${m.prefix}:${l}`;if(S.iconExists(u))return u}))||l});function p(l){let i=null;if(typeof window>"u"){const{JSDOM:h}=require("jsdom");i=new h().window}return(i?new i.DOMParser:new window.DOMParser).parseFromString(l,"text/html").querySelector("svg")}function f(l){const i=p(l),m=(i==null?void 0:i.innerHTML.trim())||"";i&&m&&S.addIcon(`@${o.value}:${n.prefix}:${n.name}`,{body:m,height:i.viewBox.baseVal.height,width:i.viewBox.baseVal.width})}return s&&(n.src&&!S.iconExists(`@${o.value}:${n.prefix}:${n.name}`)?(t.value=!1,s.fetchIcon(n.src).then(l=>{l&&(f(l),t.value=!0)}).catch(l=>{throw new Error(`During fetch icon: ${l==null?void 0:l.message}`)})):n.svg&&f(n.svg)),(l,i)=>t.value?(e.openBlock(),e.createBlock(e.unref(S.Icon),e.mergeProps({key:0,class:e.unref(c)},{...l.$props,provider:e.unref(o),icon:e.unref(g)}),null,16,["class"])):e.createCommentVNode("",!0)}}),W={valid:Boolean,validLabel:[String,Array]},X={error:Boolean,errorLabel:[String,Array]},K={loading:Boolean,loadingLabel:String},Q={modifiers:[String,Array]},Y={hintLabel:{type:String,default:""}},ee={limit:{type:[Boolean,String],default:!1,validator:r=>[!0,!1,"countdown"].includes(r)}},te={id:[String,Number],name:{type:String,required:!0},autocomplete:{type:String,default:"off"},autofocus:Boolean,minlength:Number,maxlength:Number,label:String,placeholder:String,required:Boolean,disabled:Boolean,readonly:Boolean},ne={debounce:Number},R={LEFT:"left",RIGHT:"right"},re={hard:"hard",soft:"soft"},oe=["update:modelValue","focus","blur"],ie={...W,...X,...Y,...K,...Q,...ee,...te,...ne,id:[String,Number],modelValue:{type:[String],default:void 0},cols:{type:Number,default:50},rows:{type:Number,default:5},icon:{type:String,default:""},iconPosition:{type:String,validation:r=>Object.values(R).includes(r),default:R.RIGHT},floating:Boolean,wrap:{type:String,default:re.soft},autoclear:Boolean,resizable:Boolean},se=["for"],ae={class:"vv-textarea__wrapper"},le=["id","disabled","readonly","required"],ce={key:2,class:"vv-textarea__limit"},ue={name:"VvInputText"};return e.defineComponent({...ue,props:ie,emits:oe,setup(r,{emit:n}){const t=r,a=e.useSlots(),s=e.ref(),{icon:c,iconPosition:o,label:g,modelValue:p,autoclear:f,limit:l}=e.toRefs(t),i=e.computed(()=>String(t.id||_.nanoid())),m=e.computed(()=>`${i.value}-hint`),u=e.computed(()=>t.floating&&P(t.placeholder)?" ":t.placeholder),d=z(p,n,t.debounce),{hasIconLeft:h,hasIconRight:x}=H(c,o,{iconLeft:a["icon-left"],iconRight:a["icon-right"]}),{focused:V}=M(s,n),{textLength:w,formattedTextLimitLength:$}=Z(d,{mode:t.limit,upperLimit:t.maxlength||0}),E=e.computed(()=>!P(p)),k=e.computed(()=>{if(t.error===!0)return!0;if(t.valid===!0)return!1}),{HintSlot:b,hasHint:de,hasErrors:O}=F(t,a),{bemCssClasses:fe}=L("vv-textarea",{modifiers:t.modifiers,readonly:t.readonly,valid:t.valid,invalid:t.error,loading:t.loading,iconLeft:h,iconRight:x,floating:t.floating&&!P(t.label),dirty:E,resizable:t.resizable}),j=e.computed(()=>({placeholder:u.value,name:t.name,autocomplete:t.autocomplete,minlength:t.minlength,maxlength:t.maxlength,cols:t.cols,rows:t.rows,"aria-invalid":k.value,"aria-describedby":!O.value&&de.value?m.value:void 0,"aria-errormessage":O.value?m.value:void 0})),q=e.computed(()=>{const{modelValue:y,valid:N,error:T,maxlength:pe,hintLabel:ge}=t;return{valid:N,error:T,modelValue:y,hintLabel:ge,maxlength:pe,textLength:w}});function me(){d.value=""}return e.onMounted(()=>{t.autofocus&&(V.value=!0)}),(y,N)=>(e.openBlock(),e.createElementBlock("div",e.mergeProps(e.unref(j),{class:e.unref(fe)}),[e.unref(g)?(e.openBlock(),e.createElementBlock("label",{key:0,for:e.unref(i),class:"vv-textarea__label"},e.toDisplayString(e.unref(g)),9,se)):e.createCommentVNode("",!0),e.createElementVNode("div",ae,[e.unref(h)?e.renderSlot(y.$slots,"icon-left",e.normalizeProps(e.mergeProps({key:0},e.unref(q))),()=>[e.createVNode(I,{class:"vv-textarea__icon-left",name:e.unref(c)},null,8,["name"])]):e.createCommentVNode("",!0),e.withDirectives(e.createElementVNode("textarea",e.mergeProps({id:e.unref(i),ref_key:"input",ref:s,"onUpdate:modelValue":N[0]||(N[0]=T=>e.isRef(d)?d.value=T:null)},e.unref(j),{disabled:y.disabled,readonly:y.readonly,required:y.required}),null,16,le),[[e.vModelText,e.unref(d)]]),e.withDirectives(e.createElementVNode("button",{class:"vv-button vv-button--ghost",onClick:me},[e.createVNode(I,{name:"clear-field"})],512),[[e.vShow,e.unref(f)&&e.unref(w)>0]]),e.unref(x)?e.renderSlot(y.$slots,"icon-right",e.normalizeProps(e.mergeProps({key:1},e.unref(q))),()=>[e.createVNode(I,{name:e.unref(c)},null,8,["name"])]):e.createCommentVNode("",!0),e.unref(l)?(e.openBlock(),e.createElementBlock("span",ce,[e.renderSlot(y.$slots,"limit",{},()=>[e.createTextVNode(e.toDisplayString(e.unref($)),1)])])):e.createCommentVNode("",!0)]),e.createVNode(e.unref(b),{id:e.unref(m),class:"vv-textarea__hint"},null,8,["id"])],16))}})});
|
|
@@ -1,271 +1,9 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
disabled: boolean;
|
|
8
|
-
readonly: boolean;
|
|
9
|
-
icon: string;
|
|
10
|
-
iconPosition: string;
|
|
11
|
-
loading: boolean;
|
|
12
|
-
error: boolean;
|
|
13
|
-
valid: boolean;
|
|
14
|
-
hintLabel: string;
|
|
15
|
-
autocomplete: string;
|
|
16
|
-
autofocus: boolean;
|
|
17
|
-
floating: boolean;
|
|
18
|
-
autoclear: boolean;
|
|
19
|
-
limit: string | boolean;
|
|
20
|
-
cols: number;
|
|
21
|
-
rows: number;
|
|
22
|
-
wrap: string;
|
|
23
|
-
resizable: boolean;
|
|
24
|
-
}> & Omit<Readonly<import("vue").ExtractPropTypes<{
|
|
25
|
-
modelValue: null;
|
|
26
|
-
cols: {
|
|
27
|
-
type: NumberConstructor;
|
|
28
|
-
default: number;
|
|
29
|
-
};
|
|
30
|
-
rows: {
|
|
31
|
-
type: NumberConstructor;
|
|
32
|
-
default: number;
|
|
33
|
-
};
|
|
34
|
-
icon: {
|
|
35
|
-
type: StringConstructor;
|
|
36
|
-
default: string;
|
|
37
|
-
};
|
|
38
|
-
iconPosition: {
|
|
39
|
-
type: StringConstructor;
|
|
40
|
-
validation: (value: string) => boolean;
|
|
41
|
-
default: string;
|
|
42
|
-
};
|
|
43
|
-
floating: BooleanConstructor;
|
|
44
|
-
wrap: {
|
|
45
|
-
type: StringConstructor;
|
|
46
|
-
default: string;
|
|
47
|
-
};
|
|
48
|
-
autoclear: BooleanConstructor;
|
|
49
|
-
resizable: BooleanConstructor;
|
|
50
|
-
debounce: NumberConstructor;
|
|
51
|
-
id: StringConstructor;
|
|
52
|
-
name: {
|
|
53
|
-
type: StringConstructor;
|
|
54
|
-
required: boolean;
|
|
55
|
-
};
|
|
56
|
-
autocomplete: {
|
|
57
|
-
type: StringConstructor;
|
|
58
|
-
default: string;
|
|
59
|
-
};
|
|
60
|
-
autofocus: BooleanConstructor;
|
|
61
|
-
minlength: NumberConstructor;
|
|
62
|
-
maxlength: NumberConstructor;
|
|
63
|
-
label: StringConstructor;
|
|
64
|
-
placeholder: StringConstructor;
|
|
65
|
-
required: BooleanConstructor;
|
|
66
|
-
disabled: BooleanConstructor;
|
|
67
|
-
readonly: BooleanConstructor;
|
|
68
|
-
limit: {
|
|
69
|
-
type: (StringConstructor | BooleanConstructor)[];
|
|
70
|
-
default: boolean;
|
|
71
|
-
validator: (value: string) => boolean;
|
|
72
|
-
};
|
|
73
|
-
modifiers: import("vue").PropType<string | string[]>;
|
|
74
|
-
loading: BooleanConstructor;
|
|
75
|
-
loadingLabel: StringConstructor;
|
|
76
|
-
hintLabel: {
|
|
77
|
-
type: StringConstructor;
|
|
78
|
-
default: string;
|
|
79
|
-
};
|
|
80
|
-
error: BooleanConstructor;
|
|
81
|
-
errorLabel: (StringConstructor | ArrayConstructor)[];
|
|
82
|
-
valid: BooleanConstructor;
|
|
83
|
-
validLabel: (StringConstructor | ArrayConstructor)[];
|
|
84
|
-
}>> & {
|
|
85
|
-
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
86
|
-
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "required" | "disabled" | "readonly" | "icon" | "iconPosition" | "loading" | "error" | "valid" | "hintLabel" | "autocomplete" | "autofocus" | "floating" | "autoclear" | "limit" | "cols" | "rows" | "wrap" | "resizable">;
|
|
87
|
-
$attrs: {
|
|
88
|
-
[x: string]: unknown;
|
|
89
|
-
};
|
|
90
|
-
$refs: {
|
|
91
|
-
[x: string]: unknown;
|
|
92
|
-
};
|
|
93
|
-
$slots: Readonly<{
|
|
94
|
-
[name: string]: import("vue").Slot | undefined;
|
|
95
|
-
}>;
|
|
96
|
-
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null;
|
|
97
|
-
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null;
|
|
98
|
-
$emit: (event: string, ...args: any[]) => void;
|
|
99
|
-
$el: any;
|
|
100
|
-
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
101
|
-
modelValue: null;
|
|
102
|
-
cols: {
|
|
103
|
-
type: NumberConstructor;
|
|
104
|
-
default: number;
|
|
105
|
-
};
|
|
106
|
-
rows: {
|
|
107
|
-
type: NumberConstructor;
|
|
108
|
-
default: number;
|
|
109
|
-
};
|
|
110
|
-
icon: {
|
|
111
|
-
type: StringConstructor;
|
|
112
|
-
default: string;
|
|
113
|
-
};
|
|
114
|
-
iconPosition: {
|
|
115
|
-
type: StringConstructor;
|
|
116
|
-
validation: (value: string) => boolean;
|
|
117
|
-
default: string;
|
|
118
|
-
};
|
|
119
|
-
floating: BooleanConstructor;
|
|
120
|
-
wrap: {
|
|
121
|
-
type: StringConstructor;
|
|
122
|
-
default: string;
|
|
123
|
-
};
|
|
124
|
-
autoclear: BooleanConstructor;
|
|
125
|
-
resizable: BooleanConstructor;
|
|
126
|
-
debounce: NumberConstructor;
|
|
127
|
-
id: StringConstructor;
|
|
128
|
-
name: {
|
|
129
|
-
type: StringConstructor;
|
|
130
|
-
required: boolean;
|
|
131
|
-
};
|
|
132
|
-
autocomplete: {
|
|
133
|
-
type: StringConstructor;
|
|
134
|
-
default: string;
|
|
135
|
-
};
|
|
136
|
-
autofocus: BooleanConstructor;
|
|
137
|
-
minlength: NumberConstructor;
|
|
138
|
-
maxlength: NumberConstructor;
|
|
139
|
-
label: StringConstructor;
|
|
140
|
-
placeholder: StringConstructor;
|
|
141
|
-
required: BooleanConstructor;
|
|
142
|
-
disabled: BooleanConstructor;
|
|
143
|
-
readonly: BooleanConstructor;
|
|
144
|
-
limit: {
|
|
145
|
-
type: (StringConstructor | BooleanConstructor)[];
|
|
146
|
-
default: boolean;
|
|
147
|
-
validator: (value: string) => boolean;
|
|
148
|
-
};
|
|
149
|
-
modifiers: import("vue").PropType<string | string[]>;
|
|
150
|
-
loading: BooleanConstructor;
|
|
151
|
-
loadingLabel: StringConstructor;
|
|
152
|
-
hintLabel: {
|
|
153
|
-
type: StringConstructor;
|
|
154
|
-
default: string;
|
|
155
|
-
};
|
|
156
|
-
error: BooleanConstructor;
|
|
157
|
-
errorLabel: (StringConstructor | ArrayConstructor)[];
|
|
158
|
-
valid: BooleanConstructor;
|
|
159
|
-
validLabel: (StringConstructor | ArrayConstructor)[];
|
|
160
|
-
}>> & {
|
|
161
|
-
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
162
|
-
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, string[], string, {
|
|
163
|
-
required: boolean;
|
|
164
|
-
disabled: boolean;
|
|
165
|
-
readonly: boolean;
|
|
166
|
-
icon: string;
|
|
167
|
-
iconPosition: string;
|
|
168
|
-
loading: boolean;
|
|
169
|
-
error: boolean;
|
|
170
|
-
valid: boolean;
|
|
171
|
-
hintLabel: string;
|
|
172
|
-
autocomplete: string;
|
|
173
|
-
autofocus: boolean;
|
|
174
|
-
floating: boolean;
|
|
175
|
-
autoclear: boolean;
|
|
176
|
-
limit: string | boolean;
|
|
177
|
-
cols: number;
|
|
178
|
-
rows: number;
|
|
179
|
-
wrap: string;
|
|
180
|
-
resizable: boolean;
|
|
181
|
-
}, {}, string> & {
|
|
182
|
-
beforeCreate?: ((() => void) | (() => void)[]) | undefined;
|
|
183
|
-
created?: ((() => void) | (() => void)[]) | undefined;
|
|
184
|
-
beforeMount?: ((() => void) | (() => void)[]) | undefined;
|
|
185
|
-
mounted?: ((() => void) | (() => void)[]) | undefined;
|
|
186
|
-
beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
|
|
187
|
-
updated?: ((() => void) | (() => void)[]) | undefined;
|
|
188
|
-
activated?: ((() => void) | (() => void)[]) | undefined;
|
|
189
|
-
deactivated?: ((() => void) | (() => void)[]) | undefined;
|
|
190
|
-
beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
|
|
191
|
-
beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
|
|
192
|
-
destroyed?: ((() => void) | (() => void)[]) | undefined;
|
|
193
|
-
unmounted?: ((() => void) | (() => void)[]) | undefined;
|
|
194
|
-
renderTracked?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
|
|
195
|
-
renderTriggered?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
|
|
196
|
-
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;
|
|
197
|
-
};
|
|
198
|
-
$forceUpdate: () => void;
|
|
199
|
-
$nextTick: typeof import("vue").nextTick;
|
|
200
|
-
$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;
|
|
201
|
-
} & Readonly<import("vue").ExtractPropTypes<{
|
|
202
|
-
modelValue: null;
|
|
203
|
-
cols: {
|
|
204
|
-
type: NumberConstructor;
|
|
205
|
-
default: number;
|
|
206
|
-
};
|
|
207
|
-
rows: {
|
|
208
|
-
type: NumberConstructor;
|
|
209
|
-
default: number;
|
|
210
|
-
};
|
|
211
|
-
icon: {
|
|
212
|
-
type: StringConstructor;
|
|
213
|
-
default: string;
|
|
214
|
-
};
|
|
215
|
-
iconPosition: {
|
|
216
|
-
type: StringConstructor;
|
|
217
|
-
validation: (value: string) => boolean;
|
|
218
|
-
default: string;
|
|
219
|
-
};
|
|
220
|
-
floating: BooleanConstructor;
|
|
221
|
-
wrap: {
|
|
222
|
-
type: StringConstructor;
|
|
223
|
-
default: string;
|
|
224
|
-
};
|
|
225
|
-
autoclear: BooleanConstructor;
|
|
226
|
-
resizable: BooleanConstructor;
|
|
227
|
-
debounce: NumberConstructor;
|
|
228
|
-
id: StringConstructor;
|
|
229
|
-
name: {
|
|
230
|
-
type: StringConstructor;
|
|
231
|
-
required: boolean;
|
|
232
|
-
};
|
|
233
|
-
autocomplete: {
|
|
234
|
-
type: StringConstructor;
|
|
235
|
-
default: string;
|
|
236
|
-
};
|
|
237
|
-
autofocus: BooleanConstructor;
|
|
238
|
-
minlength: NumberConstructor;
|
|
239
|
-
maxlength: NumberConstructor;
|
|
240
|
-
label: StringConstructor;
|
|
241
|
-
placeholder: StringConstructor;
|
|
242
|
-
required: BooleanConstructor;
|
|
243
|
-
disabled: BooleanConstructor;
|
|
244
|
-
readonly: BooleanConstructor;
|
|
245
|
-
limit: {
|
|
246
|
-
type: (StringConstructor | BooleanConstructor)[];
|
|
247
|
-
default: boolean;
|
|
248
|
-
validator: (value: string) => boolean;
|
|
249
|
-
};
|
|
250
|
-
modifiers: import("vue").PropType<string | string[]>;
|
|
251
|
-
loading: BooleanConstructor;
|
|
252
|
-
loadingLabel: StringConstructor;
|
|
253
|
-
hintLabel: {
|
|
254
|
-
type: StringConstructor;
|
|
255
|
-
default: string;
|
|
256
|
-
};
|
|
257
|
-
error: BooleanConstructor;
|
|
258
|
-
errorLabel: (StringConstructor | ArrayConstructor)[];
|
|
259
|
-
valid: BooleanConstructor;
|
|
260
|
-
validLabel: (StringConstructor | ArrayConstructor)[];
|
|
261
|
-
}>> & {
|
|
262
|
-
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
263
|
-
} & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties & {};
|
|
264
|
-
__isFragment?: undefined;
|
|
265
|
-
__isTeleport?: undefined;
|
|
266
|
-
__isSuspense?: undefined;
|
|
267
|
-
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
268
|
-
modelValue: null;
|
|
1
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
2
|
+
id: (StringConstructor | NumberConstructor)[];
|
|
3
|
+
modelValue: {
|
|
4
|
+
type: StringConstructor[];
|
|
5
|
+
default: undefined;
|
|
6
|
+
};
|
|
269
7
|
cols: {
|
|
270
8
|
type: NumberConstructor;
|
|
271
9
|
default: number;
|
|
@@ -291,7 +29,6 @@ declare const _default: {
|
|
|
291
29
|
autoclear: BooleanConstructor;
|
|
292
30
|
resizable: BooleanConstructor;
|
|
293
31
|
debounce: NumberConstructor;
|
|
294
|
-
id: StringConstructor;
|
|
295
32
|
name: {
|
|
296
33
|
type: StringConstructor;
|
|
297
34
|
required: boolean;
|
|
@@ -321,49 +58,116 @@ declare const _default: {
|
|
|
321
58
|
default: string;
|
|
322
59
|
};
|
|
323
60
|
error: BooleanConstructor;
|
|
324
|
-
errorLabel: (
|
|
61
|
+
errorLabel: (ArrayConstructor | StringConstructor)[];
|
|
325
62
|
valid: BooleanConstructor;
|
|
326
|
-
validLabel: (
|
|
63
|
+
validLabel: (ArrayConstructor | StringConstructor)[];
|
|
64
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, string[], string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
65
|
+
id: (StringConstructor | NumberConstructor)[];
|
|
66
|
+
modelValue: {
|
|
67
|
+
type: StringConstructor[];
|
|
68
|
+
default: undefined;
|
|
69
|
+
};
|
|
70
|
+
cols: {
|
|
71
|
+
type: NumberConstructor;
|
|
72
|
+
default: number;
|
|
73
|
+
};
|
|
74
|
+
rows: {
|
|
75
|
+
type: NumberConstructor;
|
|
76
|
+
default: number;
|
|
77
|
+
};
|
|
78
|
+
icon: {
|
|
79
|
+
type: StringConstructor;
|
|
80
|
+
default: string;
|
|
81
|
+
};
|
|
82
|
+
iconPosition: {
|
|
83
|
+
type: StringConstructor;
|
|
84
|
+
validation: (value: string) => boolean;
|
|
85
|
+
default: string;
|
|
86
|
+
};
|
|
87
|
+
floating: BooleanConstructor;
|
|
88
|
+
wrap: {
|
|
89
|
+
type: StringConstructor;
|
|
90
|
+
default: string;
|
|
91
|
+
};
|
|
92
|
+
autoclear: BooleanConstructor;
|
|
93
|
+
resizable: BooleanConstructor;
|
|
94
|
+
debounce: NumberConstructor;
|
|
95
|
+
name: {
|
|
96
|
+
type: StringConstructor;
|
|
97
|
+
required: boolean;
|
|
98
|
+
};
|
|
99
|
+
autocomplete: {
|
|
100
|
+
type: StringConstructor;
|
|
101
|
+
default: string;
|
|
102
|
+
};
|
|
103
|
+
autofocus: BooleanConstructor;
|
|
104
|
+
minlength: NumberConstructor;
|
|
105
|
+
maxlength: NumberConstructor;
|
|
106
|
+
label: StringConstructor;
|
|
107
|
+
placeholder: StringConstructor;
|
|
108
|
+
required: BooleanConstructor;
|
|
109
|
+
disabled: BooleanConstructor;
|
|
110
|
+
readonly: BooleanConstructor;
|
|
111
|
+
limit: {
|
|
112
|
+
type: (StringConstructor | BooleanConstructor)[];
|
|
113
|
+
default: boolean;
|
|
114
|
+
validator: (value: string) => boolean;
|
|
115
|
+
};
|
|
116
|
+
modifiers: import("vue").PropType<string | string[]>;
|
|
117
|
+
loading: BooleanConstructor;
|
|
118
|
+
loadingLabel: StringConstructor;
|
|
119
|
+
hintLabel: {
|
|
120
|
+
type: StringConstructor;
|
|
121
|
+
default: string;
|
|
122
|
+
};
|
|
123
|
+
error: BooleanConstructor;
|
|
124
|
+
errorLabel: (ArrayConstructor | StringConstructor)[];
|
|
125
|
+
valid: BooleanConstructor;
|
|
126
|
+
validLabel: (ArrayConstructor | StringConstructor)[];
|
|
327
127
|
}>> & {
|
|
328
128
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
329
|
-
}, {
|
|
330
|
-
|
|
129
|
+
}, {
|
|
130
|
+
modelValue: string;
|
|
331
131
|
disabled: boolean;
|
|
332
|
-
|
|
132
|
+
error: boolean;
|
|
133
|
+
required: boolean;
|
|
333
134
|
icon: string;
|
|
334
135
|
iconPosition: string;
|
|
335
136
|
loading: boolean;
|
|
336
|
-
|
|
337
|
-
valid: boolean;
|
|
137
|
+
readonly: boolean;
|
|
338
138
|
hintLabel: string;
|
|
139
|
+
valid: boolean;
|
|
140
|
+
floating: boolean;
|
|
339
141
|
autocomplete: string;
|
|
340
142
|
autofocus: boolean;
|
|
341
|
-
floating: boolean;
|
|
342
|
-
autoclear: boolean;
|
|
343
143
|
limit: string | boolean;
|
|
344
144
|
cols: number;
|
|
345
145
|
rows: number;
|
|
346
146
|
wrap: string;
|
|
147
|
+
autoclear: boolean;
|
|
347
148
|
resizable: boolean;
|
|
348
|
-
}
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
};
|
|
368
|
-
});
|
|
149
|
+
}>, {
|
|
150
|
+
'icon-left': (_: {
|
|
151
|
+
valid: boolean;
|
|
152
|
+
error: boolean;
|
|
153
|
+
modelValue: string | undefined;
|
|
154
|
+
hintLabel: string;
|
|
155
|
+
maxlength: number | undefined;
|
|
156
|
+
textLength: import("vue").ComputedRef<number>;
|
|
157
|
+
}) => any;
|
|
158
|
+
'icon-right': (_: {
|
|
159
|
+
valid: boolean;
|
|
160
|
+
error: boolean;
|
|
161
|
+
modelValue: string | undefined;
|
|
162
|
+
hintLabel: string;
|
|
163
|
+
maxlength: number | undefined;
|
|
164
|
+
textLength: import("vue").ComputedRef<number>;
|
|
165
|
+
}) => any;
|
|
166
|
+
limit: (_: {}) => any;
|
|
167
|
+
}>;
|
|
369
168
|
export default _default;
|
|
169
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
170
|
+
new (): {
|
|
171
|
+
$slots: S;
|
|
172
|
+
};
|
|
173
|
+
};
|
|
@@ -1,7 +1,33 @@
|
|
|
1
1
|
import type { ExtractPropTypes } from 'vue';
|
|
2
|
+
export declare const ICON_POSITIONS: {
|
|
3
|
+
LEFT: string;
|
|
4
|
+
RIGHT: string;
|
|
5
|
+
};
|
|
6
|
+
export declare const WRAP: {
|
|
7
|
+
hard: string;
|
|
8
|
+
soft: string;
|
|
9
|
+
};
|
|
10
|
+
declare const _default: {
|
|
11
|
+
ICON_POSITIONS: {
|
|
12
|
+
LEFT: string;
|
|
13
|
+
RIGHT: string;
|
|
14
|
+
};
|
|
15
|
+
WRAP: {
|
|
16
|
+
hard: string;
|
|
17
|
+
soft: string;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
export default _default;
|
|
2
21
|
export declare const VvTextareaEvents: string[];
|
|
3
22
|
export declare const VvTextareaProps: {
|
|
4
|
-
|
|
23
|
+
/**
|
|
24
|
+
* Input id
|
|
25
|
+
*/
|
|
26
|
+
id: (StringConstructor | NumberConstructor)[];
|
|
27
|
+
modelValue: {
|
|
28
|
+
type: StringConstructor[];
|
|
29
|
+
default: undefined;
|
|
30
|
+
};
|
|
5
31
|
cols: {
|
|
6
32
|
type: NumberConstructor;
|
|
7
33
|
default: number;
|
|
@@ -11,7 +37,7 @@ export declare const VvTextareaProps: {
|
|
|
11
37
|
default: number;
|
|
12
38
|
};
|
|
13
39
|
/**
|
|
14
|
-
*
|
|
40
|
+
* Icon name
|
|
15
41
|
* @see DsIcon
|
|
16
42
|
*/
|
|
17
43
|
icon: {
|
|
@@ -19,7 +45,7 @@ export declare const VvTextareaProps: {
|
|
|
19
45
|
default: string;
|
|
20
46
|
};
|
|
21
47
|
/**
|
|
22
|
-
*
|
|
48
|
+
* Icon position
|
|
23
49
|
*/
|
|
24
50
|
iconPosition: {
|
|
25
51
|
type: StringConstructor;
|
|
@@ -27,11 +53,11 @@ export declare const VvTextareaProps: {
|
|
|
27
53
|
default: string;
|
|
28
54
|
};
|
|
29
55
|
/**
|
|
30
|
-
*
|
|
56
|
+
* If true, the label will be floating
|
|
31
57
|
*/
|
|
32
58
|
floating: BooleanConstructor;
|
|
33
59
|
/**
|
|
34
|
-
*
|
|
60
|
+
* How the text in a text area is to be wrapped.
|
|
35
61
|
* @see Documentation https://www.w3schools.com/tags/att_textarea_wrap.asp
|
|
36
62
|
*/
|
|
37
63
|
wrap: {
|
|
@@ -39,17 +65,16 @@ export declare const VvTextareaProps: {
|
|
|
39
65
|
default: string;
|
|
40
66
|
};
|
|
41
67
|
/**
|
|
42
|
-
*
|
|
68
|
+
* If true, the value of the textarea will be cleared automatically
|
|
43
69
|
*/
|
|
44
70
|
autoclear: BooleanConstructor;
|
|
45
71
|
/**
|
|
46
|
-
*
|
|
72
|
+
* If true, the textarea will be resizable
|
|
47
73
|
* @description
|
|
48
74
|
* Il resize è pilotato via css. Al momento è attivo solamente il resize verticale
|
|
49
75
|
*/
|
|
50
76
|
resizable: BooleanConstructor;
|
|
51
77
|
debounce: NumberConstructor;
|
|
52
|
-
id: StringConstructor;
|
|
53
78
|
name: {
|
|
54
79
|
type: StringConstructor;
|
|
55
80
|
required: boolean;
|
|
@@ -79,10 +104,8 @@ export declare const VvTextareaProps: {
|
|
|
79
104
|
default: string;
|
|
80
105
|
};
|
|
81
106
|
error: BooleanConstructor;
|
|
82
|
-
errorLabel: (
|
|
107
|
+
errorLabel: (ArrayConstructor | StringConstructor)[];
|
|
83
108
|
valid: BooleanConstructor;
|
|
84
|
-
validLabel: (
|
|
109
|
+
validLabel: (ArrayConstructor | StringConstructor)[];
|
|
85
110
|
};
|
|
86
|
-
|
|
87
|
-
export declare type VvTextareaPropsTypes = ExtractPropTypes<VvTextareaPropsType>;
|
|
88
|
-
export {};
|
|
111
|
+
export type VvTextareaPropsTypes = ExtractPropTypes<typeof VvTextareaProps>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type Component, type ExtractPropTypes, type Slots } from 'vue';
|
|
1
|
+
import { type Component, type ExtractPropTypes, type Slots, type Ref } from 'vue';
|
|
2
2
|
interface HintSlotProps {
|
|
3
3
|
hintLabel: {
|
|
4
4
|
type: StringConstructor;
|
|
@@ -17,9 +17,15 @@ interface HintSlotPropsWithLoading extends HintSlotProps {
|
|
|
17
17
|
}
|
|
18
18
|
/**
|
|
19
19
|
* Return a vue component (HintSlot) to render and manage hint, errors, valid, loading state and messages
|
|
20
|
-
* @param {Readonly<ExtractPropTypes<HintSlotProps | HintSlotPropsWithLoading>>}
|
|
21
|
-
* @param {Slots}
|
|
20
|
+
* @param {Readonly<ExtractPropTypes<HintSlotProps | HintSlotPropsWithLoading>>} parentProps vue props
|
|
21
|
+
* @param {Slots} parentSlots vue slots
|
|
22
22
|
* @returns {Component} vue component
|
|
23
23
|
*/
|
|
24
|
-
export declare function HintSlotFactory(
|
|
24
|
+
export declare function HintSlotFactory(parentProps: Readonly<ExtractPropTypes<HintSlotProps | HintSlotPropsWithLoading>>, parentSlots: Slots): {
|
|
25
|
+
HintSlot: Component;
|
|
26
|
+
hasHint: Ref<boolean>;
|
|
27
|
+
hasErrors: Ref<boolean>;
|
|
28
|
+
hasValid: Ref<boolean>;
|
|
29
|
+
hasLoading: Ref<boolean>;
|
|
30
|
+
};
|
|
25
31
|
export default HintSlotFactory;
|
|
@@ -1,12 +1,19 @@
|
|
|
1
|
-
export { default as VvButton } from './VvButton/VvButton.vue';
|
|
2
|
-
export { default as VvIcon } from './VvIcon/VvIcon.vue';
|
|
3
|
-
export { default as VvBadge } from './VvBadge/VvBadge.vue';
|
|
4
|
-
export { default as VvButtonGroup } from './VvButtonGroup/VvButtonGroup.vue';
|
|
5
1
|
export { default as VvAccordion } from './VvAccordion/VvAccordion.vue';
|
|
6
2
|
export { default as VvAccordionGroup } from './VvAccordionGroup/VvAccordionGroup.vue';
|
|
3
|
+
export { default as VvBadge } from './VvBadge/VvBadge.vue';
|
|
7
4
|
export { default as VvBreadcrumb } from './VvBreadcrumb/VvBreadcrumb.vue';
|
|
5
|
+
export { default as VvButton } from './VvButton/VvButton.vue';
|
|
6
|
+
export { default as VvButtonGroup } from './VvButtonGroup/VvButtonGroup.vue';
|
|
8
7
|
export { default as VvCard } from './VvCard/VvCard.vue';
|
|
9
|
-
export { default as
|
|
10
|
-
export { default as
|
|
8
|
+
export { default as VvCheckbox } from './VvCheckbox/VvCheckbox.vue';
|
|
9
|
+
export { default as VvCheckboxGroup } from './VvCheckboxGroup/VvCheckboxGroup.vue';
|
|
11
10
|
export { default as VvDialog } from './VvDialog/VvDialog.vue';
|
|
12
11
|
export { default as VvDropdown } from './VvDropdown/VvDropdown.vue';
|
|
12
|
+
export { default as VvIcon } from './VvIcon/VvIcon.vue';
|
|
13
|
+
export { default as VvInputText } from './VvInputText/VvInputText.vue';
|
|
14
|
+
export { default as VvNativeSelect } from './VvNativeSelect/VvNativeSelect.vue';
|
|
15
|
+
export { default as VvProgress } from './VvProgress/VvProgress.vue';
|
|
16
|
+
export { default as VvRadio } from './VvRadio/VvRadio.vue';
|
|
17
|
+
export { default as VvRadioGroup } from './VvRadioGroup/VvRadioGroup.vue';
|
|
18
|
+
export { default as VvSelect } from './VvSelect/VvSelect.vue';
|
|
19
|
+
export { default as VvTextarea } from './VvTextarea/VvTextarea.vue';
|