@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
|
@@ -1,414 +0,0 @@
|
|
|
1
|
-
import { computed as A, unref as p, defineComponent as R, ref as M, toRefs as q, inject as x, openBlock as S, createBlock as F, mergeProps as K, createCommentVNode as w, h as T, useSlots as z, createElementBlock as O, normalizeClass as Z, toDisplayString as _, createElementVNode as V, renderSlot as N, Fragment as J, renderList as U, createVNode as G } from "vue";
|
|
2
|
-
import { v4 as Q } from "uuid";
|
|
3
|
-
import { iconExists as D, Icon as W, addIcon as X } from "@iconify/vue";
|
|
4
|
-
import { toReactive as Y } from "@vueuse/core";
|
|
5
|
-
const b = {
|
|
6
|
-
equals(e, t, r) {
|
|
7
|
-
return r ? this.resolveFieldData(e, r) === this.resolveFieldData(t, r) : this.deepEquals(e, t);
|
|
8
|
-
},
|
|
9
|
-
deepEquals(e, t) {
|
|
10
|
-
if (e === t)
|
|
11
|
-
return !0;
|
|
12
|
-
if (e && t && typeof e == "object" && typeof t == "object") {
|
|
13
|
-
const r = Array.isArray(e), i = Array.isArray(t);
|
|
14
|
-
let n, u, a;
|
|
15
|
-
if (r && i) {
|
|
16
|
-
if (u = e.length, u != t.length)
|
|
17
|
-
return !1;
|
|
18
|
-
for (n = u; n-- !== 0; )
|
|
19
|
-
if (!this.deepEquals(e[n], t[n]))
|
|
20
|
-
return !1;
|
|
21
|
-
return !0;
|
|
22
|
-
}
|
|
23
|
-
if (r != i)
|
|
24
|
-
return !1;
|
|
25
|
-
const d = e instanceof Date, o = t instanceof Date;
|
|
26
|
-
if (d != o)
|
|
27
|
-
return !1;
|
|
28
|
-
if (d && o)
|
|
29
|
-
return e.getTime() == t.getTime();
|
|
30
|
-
const m = e instanceof RegExp, s = t instanceof RegExp;
|
|
31
|
-
if (m != s)
|
|
32
|
-
return !1;
|
|
33
|
-
if (m && s)
|
|
34
|
-
return e.toString() == t.toString();
|
|
35
|
-
const l = Object.keys(e);
|
|
36
|
-
if (u = l.length, u !== Object.keys(t).length)
|
|
37
|
-
return !1;
|
|
38
|
-
for (n = u; n-- !== 0; )
|
|
39
|
-
if (!Object.prototype.hasOwnProperty.call(t, l[n]))
|
|
40
|
-
return !1;
|
|
41
|
-
for (n = u; n-- !== 0; )
|
|
42
|
-
if (a = l[n], !this.deepEquals(e[a], t[a]))
|
|
43
|
-
return !1;
|
|
44
|
-
return !0;
|
|
45
|
-
}
|
|
46
|
-
return e !== e && t !== t;
|
|
47
|
-
},
|
|
48
|
-
resolveFieldData(e, t) {
|
|
49
|
-
if (e && Object.keys(e).length && t) {
|
|
50
|
-
if (t.indexOf(".") === -1)
|
|
51
|
-
return e[t];
|
|
52
|
-
{
|
|
53
|
-
const r = t.split(".");
|
|
54
|
-
let i = e;
|
|
55
|
-
for (let n = 0, u = r.length; n < u; ++n) {
|
|
56
|
-
if (e == null)
|
|
57
|
-
return null;
|
|
58
|
-
i = i[r[n]];
|
|
59
|
-
}
|
|
60
|
-
return i;
|
|
61
|
-
}
|
|
62
|
-
} else
|
|
63
|
-
return null;
|
|
64
|
-
},
|
|
65
|
-
isFunction(e) {
|
|
66
|
-
return !!(e && e.constructor && e.call && e.apply);
|
|
67
|
-
},
|
|
68
|
-
findIndexInList(e, t) {
|
|
69
|
-
let r = -1;
|
|
70
|
-
if (t) {
|
|
71
|
-
for (let i = 0; i < t.length; i++)
|
|
72
|
-
if (this.equals(t[i], e)) {
|
|
73
|
-
r = i;
|
|
74
|
-
break;
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
return r;
|
|
78
|
-
},
|
|
79
|
-
contains(e, t) {
|
|
80
|
-
if (e != null && t && t.length) {
|
|
81
|
-
for (const r of t)
|
|
82
|
-
if (this.equals(e, r))
|
|
83
|
-
return !0;
|
|
84
|
-
}
|
|
85
|
-
return !1;
|
|
86
|
-
},
|
|
87
|
-
isEmpty(e) {
|
|
88
|
-
return e == null || e === "" || Array.isArray(e) && e.length === 0 || !(e instanceof Date) && typeof e == "object" && Object.keys(e).length === 0;
|
|
89
|
-
},
|
|
90
|
-
isNotEmpty(e) {
|
|
91
|
-
return !this.isEmpty(e);
|
|
92
|
-
},
|
|
93
|
-
pickBy(e, t) {
|
|
94
|
-
return Object.fromEntries(
|
|
95
|
-
Object.entries(e).filter(([r]) => t(r))
|
|
96
|
-
);
|
|
97
|
-
},
|
|
98
|
-
removeFromList(e, t) {
|
|
99
|
-
const r = this.findIndexInList(e, t);
|
|
100
|
-
return r > -1 ? t.filter((i, n) => n !== r) : t;
|
|
101
|
-
},
|
|
102
|
-
isString(e) {
|
|
103
|
-
return typeof e == "string" || e instanceof String;
|
|
104
|
-
},
|
|
105
|
-
propsToObject(e) {
|
|
106
|
-
return Object.keys(e).reduce((t, r) => {
|
|
107
|
-
var i, n, u, a, d;
|
|
108
|
-
return this.isFunction(e[r]) ? t[r] = e[r]() : Array.isArray(e[r]) ? t[r] = e[r][0]() : (i = e[r]) != null && i.type && (Array.isArray(e[r].type) ? t[r] = ((n = e[r]) == null ? void 0 : n.default) || ((u = e[r]) == null ? void 0 : u.type[0]()) : t[r] = ((a = e[r]) == null ? void 0 : a.default) || ((d = e[r]) == null ? void 0 : d.type())), t;
|
|
109
|
-
}, {});
|
|
110
|
-
},
|
|
111
|
-
filterArray(e, t, r) {
|
|
112
|
-
return e.filter((i) => t.some((n) => typeof n == "string" ? i[r] == n : this.equals(
|
|
113
|
-
i[r],
|
|
114
|
-
n[r]
|
|
115
|
-
)));
|
|
116
|
-
},
|
|
117
|
-
kebabCase(e) {
|
|
118
|
-
var t, r;
|
|
119
|
-
if (e)
|
|
120
|
-
return (r = (t = e.match(
|
|
121
|
-
/[A-Z]{2,}(?=[A-Z][a-z]+[0-9]*|\b)|[A-Z]?[a-z]+[0-9]*|[A-Z]|[0-9]+/g
|
|
122
|
-
)) == null ? void 0 : t.join("-")) == null ? void 0 : r.toLowerCase();
|
|
123
|
-
}
|
|
124
|
-
}, L = {
|
|
125
|
-
valid: Boolean,
|
|
126
|
-
validLabel: [String, Array]
|
|
127
|
-
}, ee = {
|
|
128
|
-
error: Boolean,
|
|
129
|
-
errorLabel: [String, Array]
|
|
130
|
-
}, te = {
|
|
131
|
-
loading: Boolean,
|
|
132
|
-
loadingLabel: String
|
|
133
|
-
}, re = {
|
|
134
|
-
disabled: Boolean
|
|
135
|
-
}, ne = {
|
|
136
|
-
readonly: Boolean
|
|
137
|
-
}, se = {
|
|
138
|
-
modifiers: [String, Array]
|
|
139
|
-
}, ie = {
|
|
140
|
-
hintLabel: { type: String, default: "" }
|
|
141
|
-
}, oe = {
|
|
142
|
-
...L,
|
|
143
|
-
...ee,
|
|
144
|
-
...ie,
|
|
145
|
-
...te,
|
|
146
|
-
...re,
|
|
147
|
-
...ne,
|
|
148
|
-
...se,
|
|
149
|
-
modelValue: {
|
|
150
|
-
type: [String, Object],
|
|
151
|
-
required: !0
|
|
152
|
-
},
|
|
153
|
-
label: String,
|
|
154
|
-
placeholder: String,
|
|
155
|
-
options: {
|
|
156
|
-
type: Array,
|
|
157
|
-
required: !0
|
|
158
|
-
},
|
|
159
|
-
useObject: Boolean,
|
|
160
|
-
labelKey: { type: String, default: "label" },
|
|
161
|
-
valueKey: { type: String, default: "value" },
|
|
162
|
-
iconLeft: String,
|
|
163
|
-
iconRight: String,
|
|
164
|
-
modifiers: [String, Array]
|
|
165
|
-
}, le = {
|
|
166
|
-
color: String,
|
|
167
|
-
width: {
|
|
168
|
-
type: [String, Number]
|
|
169
|
-
},
|
|
170
|
-
height: {
|
|
171
|
-
type: [String, Number]
|
|
172
|
-
},
|
|
173
|
-
name: {
|
|
174
|
-
type: String,
|
|
175
|
-
required: !0
|
|
176
|
-
},
|
|
177
|
-
provider: {
|
|
178
|
-
type: String
|
|
179
|
-
},
|
|
180
|
-
prefix: {
|
|
181
|
-
type: String,
|
|
182
|
-
default: "normal"
|
|
183
|
-
},
|
|
184
|
-
src: String,
|
|
185
|
-
horizontalFlip: Boolean,
|
|
186
|
-
verticalFlip: Boolean,
|
|
187
|
-
flip: String,
|
|
188
|
-
mode: String,
|
|
189
|
-
inline: Boolean,
|
|
190
|
-
rotate: [Number, String],
|
|
191
|
-
onLoad: Function,
|
|
192
|
-
svg: String,
|
|
193
|
-
modifiers: {
|
|
194
|
-
type: [String, Array]
|
|
195
|
-
}
|
|
196
|
-
};
|
|
197
|
-
function H(e, t) {
|
|
198
|
-
const r = { [`${e}`]: !0 };
|
|
199
|
-
return {
|
|
200
|
-
bemCssClasses: A(() => Object.keys(t).reduce((n, u) => {
|
|
201
|
-
const a = p(t[u]) || !1;
|
|
202
|
-
if (!a)
|
|
203
|
-
return n;
|
|
204
|
-
if (u === "modifiers") {
|
|
205
|
-
const d = Array.isArray(a) ? a : [a];
|
|
206
|
-
return {
|
|
207
|
-
...n,
|
|
208
|
-
...d.reduce(
|
|
209
|
-
(o, m) => ({
|
|
210
|
-
...o,
|
|
211
|
-
[`${e}--${b.kebabCase(
|
|
212
|
-
m
|
|
213
|
-
)}`]: !0
|
|
214
|
-
}),
|
|
215
|
-
{}
|
|
216
|
-
)
|
|
217
|
-
};
|
|
218
|
-
} else
|
|
219
|
-
return {
|
|
220
|
-
...n,
|
|
221
|
-
[`${e}--${b.kebabCase(u)}`]: a
|
|
222
|
-
};
|
|
223
|
-
}, r) || {})
|
|
224
|
-
};
|
|
225
|
-
}
|
|
226
|
-
const I = /* @__PURE__ */ R({
|
|
227
|
-
__name: "VvIcon",
|
|
228
|
-
props: le,
|
|
229
|
-
setup(e) {
|
|
230
|
-
const t = e, r = M(!0), { modifiers: i } = q(t), n = x("ds"), { bemCssClasses: u } = H("vv-icon", {
|
|
231
|
-
modifiers: i
|
|
232
|
-
}), a = A(() => t.provider || (n == null ? void 0 : n.provider)), d = A(() => {
|
|
233
|
-
const s = t.name || "", l = `@${a.value}:${t.prefix}:${t.name}`;
|
|
234
|
-
return D(s) ? s : D(l) ? l : (n == null ? void 0 : n.iconsCollections.find((y) => {
|
|
235
|
-
const f = `@${a.value}:${y.prefix}:${s}`;
|
|
236
|
-
if (D(f))
|
|
237
|
-
return f;
|
|
238
|
-
})) || s;
|
|
239
|
-
});
|
|
240
|
-
function o(s) {
|
|
241
|
-
let l = null;
|
|
242
|
-
if (typeof window > "u") {
|
|
243
|
-
const { JSDOM: v } = require("jsdom");
|
|
244
|
-
l = new v().window;
|
|
245
|
-
}
|
|
246
|
-
return (l ? new l.DOMParser() : new window.DOMParser()).parseFromString(s, "text/html").querySelector("svg");
|
|
247
|
-
}
|
|
248
|
-
function m(s) {
|
|
249
|
-
const l = o(s), y = (l == null ? void 0 : l.innerHTML.trim()) || "";
|
|
250
|
-
l && y && X(`@${a.value}:${t.prefix}:${t.name}`, {
|
|
251
|
-
body: y,
|
|
252
|
-
height: l.viewBox.baseVal.height,
|
|
253
|
-
width: l.viewBox.baseVal.width
|
|
254
|
-
});
|
|
255
|
-
}
|
|
256
|
-
return n && (t.src ? (r.value = !1, n.fetchIcon(t.src).then((s) => {
|
|
257
|
-
s && (m(s), r.value = !0);
|
|
258
|
-
}).catch((s) => {
|
|
259
|
-
throw new Error(`During fetch icon: ${s == null ? void 0 : s.message}`);
|
|
260
|
-
})) : t.svg && m(t.svg)), (s, l) => r.value ? (S(), F(p(W), K({
|
|
261
|
-
key: 0,
|
|
262
|
-
class: p(u)
|
|
263
|
-
}, {
|
|
264
|
-
...s.$props,
|
|
265
|
-
provider: p(a),
|
|
266
|
-
icon: p(d)
|
|
267
|
-
}), null, 16, ["class"])) : w("", !0);
|
|
268
|
-
}
|
|
269
|
-
});
|
|
270
|
-
function B(e) {
|
|
271
|
-
return Array.isArray(e) ? e.filter((t) => b.isString(t)).reduce((t, r) => t.length > 0 ? t + `
|
|
272
|
-
` + r : r, "") : e;
|
|
273
|
-
}
|
|
274
|
-
function ae(e, t) {
|
|
275
|
-
return {
|
|
276
|
-
name: "HintSlot",
|
|
277
|
-
props: {
|
|
278
|
-
params: { type: Object, default: () => {
|
|
279
|
-
} }
|
|
280
|
-
},
|
|
281
|
-
setup(r) {
|
|
282
|
-
const i = q(e), {
|
|
283
|
-
error: n,
|
|
284
|
-
valid: u,
|
|
285
|
-
hint: a,
|
|
286
|
-
loading: d
|
|
287
|
-
} = t, {
|
|
288
|
-
hintLabel: o,
|
|
289
|
-
modelValue: m,
|
|
290
|
-
valid: s,
|
|
291
|
-
validLabel: l,
|
|
292
|
-
error: y,
|
|
293
|
-
errorLabel: f
|
|
294
|
-
} = i, g = b.resolveFieldData(i, "loading"), v = b.resolveFieldData(
|
|
295
|
-
i,
|
|
296
|
-
"loadingLabel"
|
|
297
|
-
), $ = A(() => y.value ? !!(y.value && n || (f == null ? void 0 : f.value) && Array.isArray(f.value) && f.value.length > 0 || (f == null ? void 0 : f.value) && b.isNotEmpty(f.value)) : !1), k = A(() => !!(o && o.value || a || u || l && l.value || $.value || (g == null ? void 0 : g.value) && d || (g == null ? void 0 : g.value) && (v == null ? void 0 : v.value))), c = A(() => {
|
|
298
|
-
const h = Y({
|
|
299
|
-
hintLabel: o,
|
|
300
|
-
modelValue: m,
|
|
301
|
-
valid: s,
|
|
302
|
-
validLabel: l,
|
|
303
|
-
error: y,
|
|
304
|
-
errorLabel: f,
|
|
305
|
-
loading: g,
|
|
306
|
-
loadingLabel: v,
|
|
307
|
-
...r.params
|
|
308
|
-
});
|
|
309
|
-
return y != null && y.value ? (n == null ? void 0 : n(h)) || B(f == null ? void 0 : f.value) || (o == null ? void 0 : o.value) : s != null && s.value ? (u == null ? void 0 : u(h)) || B(l == null ? void 0 : l.value) || (o == null ? void 0 : o.value) : g != null && g.value ? (d == null ? void 0 : d(h)) || B(v == null ? void 0 : v.value) || (o == null ? void 0 : o.value) : (a == null ? void 0 : a(h)) || B(o == null ? void 0 : o.value) || (o == null ? void 0 : o.value);
|
|
310
|
-
});
|
|
311
|
-
return {
|
|
312
|
-
hasHint: k,
|
|
313
|
-
hintContent: c
|
|
314
|
-
};
|
|
315
|
-
},
|
|
316
|
-
render() {
|
|
317
|
-
if (this.hasHint)
|
|
318
|
-
return T(
|
|
319
|
-
"pre",
|
|
320
|
-
{ style: { "white-space": "pre" } },
|
|
321
|
-
this.hintContent
|
|
322
|
-
);
|
|
323
|
-
}
|
|
324
|
-
};
|
|
325
|
-
}
|
|
326
|
-
const ue = ["for"], ce = { class: "vv-select__wrapper" }, fe = ["id", "value", "disabled"], de = {
|
|
327
|
-
key: 0,
|
|
328
|
-
value: "",
|
|
329
|
-
disabled: "",
|
|
330
|
-
selected: ""
|
|
331
|
-
}, pe = ["disabled", "value"], he = /* @__PURE__ */ R({
|
|
332
|
-
__name: "VvNativeSelect",
|
|
333
|
-
props: oe,
|
|
334
|
-
emits: ["update:modelValue"],
|
|
335
|
-
setup(e, { emit: t }) {
|
|
336
|
-
const r = e, i = z(), n = ae(r, i), {
|
|
337
|
-
modifiers: u,
|
|
338
|
-
disabled: a,
|
|
339
|
-
readonly: d,
|
|
340
|
-
loading: o,
|
|
341
|
-
iconLeft: m,
|
|
342
|
-
iconRight: s,
|
|
343
|
-
error: l,
|
|
344
|
-
valid: y
|
|
345
|
-
} = q(r), f = Q(), { bemCssClasses: g } = H("vv-select", {
|
|
346
|
-
modifiers: u,
|
|
347
|
-
loading: o,
|
|
348
|
-
readonly: d,
|
|
349
|
-
iconLeft: m,
|
|
350
|
-
iconRight: s,
|
|
351
|
-
valid: y,
|
|
352
|
-
invalid: l,
|
|
353
|
-
dirty: A(() => b.isNotEmpty(r.modelValue))
|
|
354
|
-
});
|
|
355
|
-
function v(c) {
|
|
356
|
-
return typeof c == "string" ? c : c[r.valueKey];
|
|
357
|
-
}
|
|
358
|
-
function $(c) {
|
|
359
|
-
return typeof c == "string" ? c : c[r.labelKey];
|
|
360
|
-
}
|
|
361
|
-
function k(c) {
|
|
362
|
-
var j;
|
|
363
|
-
const h = c.target, C = (r.useObject ? (j = r.options) == null ? void 0 : j.find(
|
|
364
|
-
(E) => E[r.valueKey] == h.value
|
|
365
|
-
) : null) || h.value;
|
|
366
|
-
t("update:modelValue", C);
|
|
367
|
-
}
|
|
368
|
-
return (c, h) => {
|
|
369
|
-
var P;
|
|
370
|
-
return S(), O("div", {
|
|
371
|
-
class: Z(p(g))
|
|
372
|
-
}, [
|
|
373
|
-
c.label ? (S(), O("label", {
|
|
374
|
-
key: 0,
|
|
375
|
-
for: p(f)
|
|
376
|
-
}, _(c.label), 9, ue)) : w("", !0),
|
|
377
|
-
V("div", ce, [
|
|
378
|
-
N(c.$slots, "icon-left", {}, () => [
|
|
379
|
-
p(m) ? (S(), F(I, {
|
|
380
|
-
key: 0,
|
|
381
|
-
name: p(m)
|
|
382
|
-
}, null, 8, ["name"])) : w("", !0)
|
|
383
|
-
]),
|
|
384
|
-
V("select", {
|
|
385
|
-
id: p(f),
|
|
386
|
-
value: typeof c.modelValue == "string" ? c.modelValue : (P = c.modelValue) == null ? void 0 : P[c.valueKey],
|
|
387
|
-
disabled: p(a) || p(d),
|
|
388
|
-
onInput: k
|
|
389
|
-
}, [
|
|
390
|
-
c.placeholder ? (S(), O("option", de, _(c.placeholder), 1)) : w("", !0),
|
|
391
|
-
(S(!0), O(J, null, U(c.options, (C, j) => {
|
|
392
|
-
var E;
|
|
393
|
-
return S(), O("option", {
|
|
394
|
-
key: j,
|
|
395
|
-
disabled: typeof C == "object" ? (E = C.disabled) != null ? E : p(a) : p(a),
|
|
396
|
-
value: v(C)
|
|
397
|
-
}, _($(C)), 9, pe);
|
|
398
|
-
}), 128))
|
|
399
|
-
], 40, fe),
|
|
400
|
-
N(c.$slots, "icon-right", {}, () => [
|
|
401
|
-
p(s) ? (S(), F(I, {
|
|
402
|
-
key: 0,
|
|
403
|
-
name: p(s)
|
|
404
|
-
}, null, 8, ["name"])) : w("", !0)
|
|
405
|
-
])
|
|
406
|
-
]),
|
|
407
|
-
G(p(n), { class: "vv-select__hint" })
|
|
408
|
-
], 2);
|
|
409
|
-
};
|
|
410
|
-
}
|
|
411
|
-
});
|
|
412
|
-
export {
|
|
413
|
-
he as default
|
|
414
|
-
};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
(function(t,A){typeof exports=="object"&&typeof module<"u"?module.exports=A(require("vue"),require("uuid"),require("@iconify/vue"),require("@vueuse/core")):typeof define=="function"&&define.amd?define(["vue","uuid","@iconify/vue","@vueuse/core"],A):(t=typeof globalThis<"u"?globalThis:t||self,t.VvNativeSelect=A(t.vue,t.uuid,t.vue$1,t.core))})(this,function(t,A,C,_){"use strict";const B={equals(e,r,n){return n?this.resolveFieldData(e,n)===this.resolveFieldData(r,n):this.deepEquals(e,r)},deepEquals(e,r){if(e===r)return!0;if(e&&r&&typeof e=="object"&&typeof r=="object"){const n=Array.isArray(e),i=Array.isArray(r);let s,u,a;if(n&&i){if(u=e.length,u!=r.length)return!1;for(s=u;s--!==0;)if(!this.deepEquals(e[s],r[s]))return!1;return!0}if(n!=i)return!1;const p=e instanceof Date,l=r instanceof Date;if(p!=l)return!1;if(p&&l)return e.getTime()==r.getTime();const y=e instanceof RegExp,o=r instanceof RegExp;if(y!=o)return!1;if(y&&o)return e.toString()==r.toString();const c=Object.keys(e);if(u=c.length,u!==Object.keys(r).length)return!1;for(s=u;s--!==0;)if(!Object.prototype.hasOwnProperty.call(r,c[s]))return!1;for(s=u;s--!==0;)if(a=c[s],!this.deepEquals(e[a],r[a]))return!1;return!0}return e!==e&&r!==r},resolveFieldData(e,r){if(e&&Object.keys(e).length&&r){if(r.indexOf(".")===-1)return e[r];{const n=r.split(".");let i=e;for(let s=0,u=n.length;s<u;++s){if(e==null)return null;i=i[n[s]]}return i}}else return null},isFunction(e){return!!(e&&e.constructor&&e.call&&e.apply)},findIndexInList(e,r){let n=-1;if(r){for(let i=0;i<r.length;i++)if(this.equals(r[i],e)){n=i;break}}return n},contains(e,r){if(e!=null&&r&&r.length){for(const n of r)if(this.equals(e,n))return!0}return!1},isEmpty(e){return e==null||e===""||Array.isArray(e)&&e.length===0||!(e instanceof Date)&&typeof e=="object"&&Object.keys(e).length===0},isNotEmpty(e){return!this.isEmpty(e)},pickBy(e,r){return Object.fromEntries(Object.entries(e).filter(([n])=>r(n)))},removeFromList(e,r){const n=this.findIndexInList(e,r);return n>-1?r.filter((i,s)=>s!==n):r},isString(e){return typeof e=="string"||e instanceof String},propsToObject(e){return Object.keys(e).reduce((r,n)=>{var i,s,u,a,p;return this.isFunction(e[n])?r[n]=e[n]():Array.isArray(e[n])?r[n]=e[n][0]():(i=e[n])!=null&&i.type&&(Array.isArray(e[n].type)?r[n]=((s=e[n])==null?void 0:s.default)||((u=e[n])==null?void 0:u.type[0]()):r[n]=((a=e[n])==null?void 0:a.default)||((p=e[n])==null?void 0:p.type())),r},{})},filterArray(e,r,n){return e.filter(i=>r.some(s=>typeof s=="string"?i[n]==s:this.equals(i[n],s[n])))},kebabCase(e){var r,n;if(e)return(n=(r=e.match(/[A-Z]{2,}(?=[A-Z][a-z]+[0-9]*|\b)|[A-Z]?[a-z]+[0-9]*|[A-Z]|[0-9]+/g))==null?void 0:r.join("-"))==null?void 0:n.toLowerCase()}},N={...{valid:Boolean,validLabel:[String,Array]},...{error:Boolean,errorLabel:[String,Array]},...{hintLabel:{type:String,default:""}},...{loading:Boolean,loadingLabel:String},...{disabled:Boolean},...{readonly:Boolean},...{modifiers:[String,Array]},modelValue:{type:[String,Object],required:!0},label:String,placeholder:String,options:{type:Array,required:!0},useObject:Boolean,labelKey:{type:String,default:"label"},valueKey:{type:String,default:"value"},iconLeft:String,iconRight:String,modifiers:[String,Array]},q={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]}};function V(e,r){const n={[`${e}`]:!0};return{bemCssClasses:t.computed(()=>Object.keys(r).reduce((s,u)=>{const a=t.unref(r[u])||!1;if(!a)return s;if(u==="modifiers"){const p=Array.isArray(a)?a:[a];return{...s,...p.reduce((l,y)=>({...l,[`${e}--${B.kebabCase(y)}`]:!0}),{})}}else return{...s,[`${e}--${B.kebabCase(u)}`]:a}},n)||{})}}const D=t.defineComponent({__name:"VvIcon",props:q,setup(e){const r=e,n=t.ref(!0),{modifiers:i}=t.toRefs(r),s=t.inject("ds"),{bemCssClasses:u}=V("vv-icon",{modifiers:i}),a=t.computed(()=>r.provider||(s==null?void 0:s.provider)),p=t.computed(()=>{const o=r.name||"",c=`@${a.value}:${r.prefix}:${r.name}`;return C.iconExists(o)?o:C.iconExists(c)?c:(s==null?void 0:s.iconsCollections.find(m=>{const d=`@${a.value}:${m.prefix}:${o}`;if(C.iconExists(d))return d}))||o});function l(o){let c=null;if(typeof window>"u"){const{JSDOM:h}=require("jsdom");c=new h().window}return(c?new c.DOMParser:new window.DOMParser).parseFromString(o,"text/html").querySelector("svg")}function y(o){const c=l(o),m=(c==null?void 0:c.innerHTML.trim())||"";c&&m&&C.addIcon(`@${a.value}:${r.prefix}:${r.name}`,{body:m,height:c.viewBox.baseVal.height,width:c.viewBox.baseVal.width})}return s&&(r.src?(n.value=!1,s.fetchIcon(r.src).then(o=>{o&&(y(o),n.value=!0)}).catch(o=>{throw new Error(`During fetch icon: ${o==null?void 0:o.message}`)})):r.svg&&y(r.svg)),(o,c)=>n.value?(t.openBlock(),t.createBlock(t.unref(C.Icon),t.mergeProps({key:0,class:t.unref(u)},{...o.$props,provider:t.unref(a),icon:t.unref(p)}),null,16,["class"])):t.createCommentVNode("",!0)}});function E(e){return Array.isArray(e)?e.filter(r=>B.isString(r)).reduce((r,n)=>r.length>0?r+`
|
|
2
|
-
`+n:n,""):e}function $(e,r){return{name:"HintSlot",props:{params:{type:Object,default:()=>{}}},setup(n){const i=t.toRefs(e),{error:s,valid:u,hint:a,loading:p}=r,{hintLabel:l,modelValue:y,valid:o,validLabel:c,error:m,errorLabel:d}=i,g=B.resolveFieldData(i,"loading"),h=B.resolveFieldData(i,"loadingLabel"),O=t.computed(()=>m.value?!!(m.value&&s||(d==null?void 0:d.value)&&Array.isArray(d.value)&&d.value.length>0||(d==null?void 0:d.value)&&B.isNotEmpty(d.value)):!1),j=t.computed(()=>!!(l&&l.value||a||u||c&&c.value||O.value||(g==null?void 0:g.value)&&p||(g==null?void 0:g.value)&&(h==null?void 0:h.value))),f=t.computed(()=>{const S=_.toReactive({hintLabel:l,modelValue:y,valid:o,validLabel:c,error:m,errorLabel:d,loading:g,loadingLabel:h,...n.params});return m!=null&&m.value?(s==null?void 0:s(S))||E(d==null?void 0:d.value)||(l==null?void 0:l.value):o!=null&&o.value?(u==null?void 0:u(S))||E(c==null?void 0:c.value)||(l==null?void 0:l.value):g!=null&&g.value?(p==null?void 0:p(S))||E(h==null?void 0:h.value)||(l==null?void 0:l.value):(a==null?void 0:a(S))||E(l==null?void 0:l.value)||(l==null?void 0:l.value)});return{hasHint:j,hintContent:f}},render(){if(this.hasHint)return t.h("pre",{style:{"white-space":"pre"}},this.hintContent)}}}const F=["for"],I={class:"vv-select__wrapper"},R=["id","value","disabled"],v={key:0,value:"",disabled:"",selected:""},x=["disabled","value"];return t.defineComponent({__name:"VvNativeSelect",props:N,emits:["update:modelValue"],setup(e,{emit:r}){const n=e,i=t.useSlots(),s=$(n,i),{modifiers:u,disabled:a,readonly:p,loading:l,iconLeft:y,iconRight:o,error:c,valid:m}=t.toRefs(n),d=A.v4(),{bemCssClasses:g}=V("vv-select",{modifiers:u,loading:l,readonly:p,iconLeft:y,iconRight:o,valid:m,invalid:c,dirty:t.computed(()=>B.isNotEmpty(n.modelValue))});function h(f){return typeof f=="string"?f:f[n.valueKey]}function O(f){return typeof f=="string"?f:f[n.labelKey]}function j(f){var P;const S=f.target,k=(n.useObject?(P=n.options)==null?void 0:P.find(b=>b[n.valueKey]==S.value):null)||S.value;r("update:modelValue",k)}return(f,S)=>{var w;return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(t.unref(g))},[f.label?(t.openBlock(),t.createElementBlock("label",{key:0,for:t.unref(d)},t.toDisplayString(f.label),9,F)):t.createCommentVNode("",!0),t.createElementVNode("div",I,[t.renderSlot(f.$slots,"icon-left",{},()=>[t.unref(y)?(t.openBlock(),t.createBlock(D,{key:0,name:t.unref(y)},null,8,["name"])):t.createCommentVNode("",!0)]),t.createElementVNode("select",{id:t.unref(d),value:typeof f.modelValue=="string"?f.modelValue:(w=f.modelValue)==null?void 0:w[f.valueKey],disabled:t.unref(a)||t.unref(p),onInput:j},[f.placeholder?(t.openBlock(),t.createElementBlock("option",v,t.toDisplayString(f.placeholder),1)):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(f.options,(k,P)=>{var b;return t.openBlock(),t.createElementBlock("option",{key:P,disabled:typeof k=="object"&&(b=k.disabled)!=null?b:t.unref(a),value:h(k)},t.toDisplayString(O(k)),9,x)}),128))],40,R),t.renderSlot(f.$slots,"icon-right",{},()=>[t.unref(o)?(t.openBlock(),t.createBlock(D,{key:0,name:t.unref(o)},null,8,["name"])):t.createCommentVNode("",!0)])]),t.createVNode(t.unref(s),{class:"vv-select__hint"})],2)}}})});
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
export declare const VvProgressProps: {
|
|
2
|
-
/**
|
|
3
|
-
* Progress value
|
|
4
|
-
*/
|
|
5
|
-
value: {
|
|
6
|
-
type: (StringConstructor | NumberConstructor)[];
|
|
7
|
-
};
|
|
8
|
-
/**
|
|
9
|
-
* Progress max value
|
|
10
|
-
*/
|
|
11
|
-
max: {
|
|
12
|
-
type: (StringConstructor | NumberConstructor)[];
|
|
13
|
-
};
|
|
14
|
-
/**
|
|
15
|
-
* Progress label
|
|
16
|
-
*/
|
|
17
|
-
ariaLabel: {
|
|
18
|
-
type: StringConstructor;
|
|
19
|
-
default: string;
|
|
20
|
-
};
|
|
21
|
-
/**
|
|
22
|
-
* determinate attribute
|
|
23
|
-
*/
|
|
24
|
-
determinate: {
|
|
25
|
-
type: BooleanConstructor;
|
|
26
|
-
default: boolean;
|
|
27
|
-
};
|
|
28
|
-
modifiers: (StringConstructor | ArrayConstructor)[];
|
|
29
|
-
};
|
|
@@ -1,185 +0,0 @@
|
|
|
1
|
-
import { computed as c, unref as m, defineComponent as p, toRefs as d, openBlock as h, createElementBlock as A, normalizeProps as b, guardReactiveProps as C } from "vue";
|
|
2
|
-
const g = {
|
|
3
|
-
equals(e, r, t) {
|
|
4
|
-
return t ? this.resolveFieldData(e, t) === this.resolveFieldData(r, t) : this.deepEquals(e, r);
|
|
5
|
-
},
|
|
6
|
-
deepEquals(e, r) {
|
|
7
|
-
if (e === r)
|
|
8
|
-
return !0;
|
|
9
|
-
if (e && r && typeof e == "object" && typeof r == "object") {
|
|
10
|
-
const t = Array.isArray(e), n = Array.isArray(r);
|
|
11
|
-
let s, i, o;
|
|
12
|
-
if (t && n) {
|
|
13
|
-
if (i = e.length, i != r.length)
|
|
14
|
-
return !1;
|
|
15
|
-
for (s = i; s-- !== 0; )
|
|
16
|
-
if (!this.deepEquals(e[s], r[s]))
|
|
17
|
-
return !1;
|
|
18
|
-
return !0;
|
|
19
|
-
}
|
|
20
|
-
if (t != n)
|
|
21
|
-
return !1;
|
|
22
|
-
const f = e instanceof Date, l = r instanceof Date;
|
|
23
|
-
if (f != l)
|
|
24
|
-
return !1;
|
|
25
|
-
if (f && l)
|
|
26
|
-
return e.getTime() == r.getTime();
|
|
27
|
-
const u = e instanceof RegExp, y = r instanceof RegExp;
|
|
28
|
-
if (u != y)
|
|
29
|
-
return !1;
|
|
30
|
-
if (u && y)
|
|
31
|
-
return e.toString() == r.toString();
|
|
32
|
-
const a = Object.keys(e);
|
|
33
|
-
if (i = a.length, i !== Object.keys(r).length)
|
|
34
|
-
return !1;
|
|
35
|
-
for (s = i; s-- !== 0; )
|
|
36
|
-
if (!Object.prototype.hasOwnProperty.call(r, a[s]))
|
|
37
|
-
return !1;
|
|
38
|
-
for (s = i; s-- !== 0; )
|
|
39
|
-
if (o = a[s], !this.deepEquals(e[o], r[o]))
|
|
40
|
-
return !1;
|
|
41
|
-
return !0;
|
|
42
|
-
}
|
|
43
|
-
return e !== e && r !== r;
|
|
44
|
-
},
|
|
45
|
-
resolveFieldData(e, r) {
|
|
46
|
-
if (e && Object.keys(e).length && r) {
|
|
47
|
-
if (r.indexOf(".") === -1)
|
|
48
|
-
return e[r];
|
|
49
|
-
{
|
|
50
|
-
const t = r.split(".");
|
|
51
|
-
let n = e;
|
|
52
|
-
for (let s = 0, i = t.length; s < i; ++s) {
|
|
53
|
-
if (e == null)
|
|
54
|
-
return null;
|
|
55
|
-
n = n[t[s]];
|
|
56
|
-
}
|
|
57
|
-
return n;
|
|
58
|
-
}
|
|
59
|
-
} else
|
|
60
|
-
return null;
|
|
61
|
-
},
|
|
62
|
-
isFunction(e) {
|
|
63
|
-
return !!(e && e.constructor && e.call && e.apply);
|
|
64
|
-
},
|
|
65
|
-
findIndexInList(e, r) {
|
|
66
|
-
let t = -1;
|
|
67
|
-
if (r) {
|
|
68
|
-
for (let n = 0; n < r.length; n++)
|
|
69
|
-
if (this.equals(r[n], e)) {
|
|
70
|
-
t = n;
|
|
71
|
-
break;
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
return t;
|
|
75
|
-
},
|
|
76
|
-
contains(e, r) {
|
|
77
|
-
if (e != null && r && r.length) {
|
|
78
|
-
for (const t of r)
|
|
79
|
-
if (this.equals(e, t))
|
|
80
|
-
return !0;
|
|
81
|
-
}
|
|
82
|
-
return !1;
|
|
83
|
-
},
|
|
84
|
-
isEmpty(e) {
|
|
85
|
-
return e == null || e === "" || Array.isArray(e) && e.length === 0 || !(e instanceof Date) && typeof e == "object" && Object.keys(e).length === 0;
|
|
86
|
-
},
|
|
87
|
-
isNotEmpty(e) {
|
|
88
|
-
return !this.isEmpty(e);
|
|
89
|
-
},
|
|
90
|
-
pickBy(e, r) {
|
|
91
|
-
return Object.fromEntries(
|
|
92
|
-
Object.entries(e).filter(([t]) => r(t))
|
|
93
|
-
);
|
|
94
|
-
},
|
|
95
|
-
removeFromList(e, r) {
|
|
96
|
-
const t = this.findIndexInList(e, r);
|
|
97
|
-
return t > -1 ? r.filter((n, s) => s !== t) : r;
|
|
98
|
-
},
|
|
99
|
-
isString(e) {
|
|
100
|
-
return typeof e == "string" || e instanceof String;
|
|
101
|
-
},
|
|
102
|
-
propsToObject(e) {
|
|
103
|
-
return Object.keys(e).reduce((r, t) => {
|
|
104
|
-
var n, s, i, o, f;
|
|
105
|
-
return this.isFunction(e[t]) ? r[t] = e[t]() : Array.isArray(e[t]) ? r[t] = e[t][0]() : (n = e[t]) != null && n.type && (Array.isArray(e[t].type) ? r[t] = ((s = e[t]) == null ? void 0 : s.default) || ((i = e[t]) == null ? void 0 : i.type[0]()) : r[t] = ((o = e[t]) == null ? void 0 : o.default) || ((f = e[t]) == null ? void 0 : f.type())), r;
|
|
106
|
-
}, {});
|
|
107
|
-
},
|
|
108
|
-
filterArray(e, r, t) {
|
|
109
|
-
return e.filter((n) => r.some((s) => typeof s == "string" ? n[t] == s : this.equals(
|
|
110
|
-
n[t],
|
|
111
|
-
s[t]
|
|
112
|
-
)));
|
|
113
|
-
},
|
|
114
|
-
kebabCase(e) {
|
|
115
|
-
var r, t;
|
|
116
|
-
if (e)
|
|
117
|
-
return (t = (r = e.match(
|
|
118
|
-
/[A-Z]{2,}(?=[A-Z][a-z]+[0-9]*|\b)|[A-Z]?[a-z]+[0-9]*|[A-Z]|[0-9]+/g
|
|
119
|
-
)) == null ? void 0 : r.join("-")) == null ? void 0 : t.toLowerCase();
|
|
120
|
-
}
|
|
121
|
-
};
|
|
122
|
-
function O(e, r) {
|
|
123
|
-
const t = { [`${e}`]: !0 };
|
|
124
|
-
return {
|
|
125
|
-
bemCssClasses: c(() => Object.keys(r).reduce((s, i) => {
|
|
126
|
-
const o = m(r[i]) || !1;
|
|
127
|
-
if (!o)
|
|
128
|
-
return s;
|
|
129
|
-
if (i === "modifiers") {
|
|
130
|
-
const f = Array.isArray(o) ? o : [o];
|
|
131
|
-
return {
|
|
132
|
-
...s,
|
|
133
|
-
...f.reduce(
|
|
134
|
-
(l, u) => ({
|
|
135
|
-
...l,
|
|
136
|
-
[`${e}--${g.kebabCase(
|
|
137
|
-
u
|
|
138
|
-
)}`]: !0
|
|
139
|
-
}),
|
|
140
|
-
{}
|
|
141
|
-
)
|
|
142
|
-
};
|
|
143
|
-
} else
|
|
144
|
-
return {
|
|
145
|
-
...s,
|
|
146
|
-
[`${e}--${g.kebabCase(i)}`]: o
|
|
147
|
-
};
|
|
148
|
-
}, t) || {})
|
|
149
|
-
};
|
|
150
|
-
}
|
|
151
|
-
const x = {
|
|
152
|
-
modifiers: [String, Array]
|
|
153
|
-
}, E = {
|
|
154
|
-
...x,
|
|
155
|
-
value: {
|
|
156
|
-
type: [Number, String]
|
|
157
|
-
},
|
|
158
|
-
max: {
|
|
159
|
-
type: [Number, String]
|
|
160
|
-
},
|
|
161
|
-
ariaLabel: {
|
|
162
|
-
type: String,
|
|
163
|
-
default: "progress-bar"
|
|
164
|
-
},
|
|
165
|
-
determinate: { type: Boolean, default: !1 }
|
|
166
|
-
}, j = /* @__PURE__ */ p({
|
|
167
|
-
__name: "VvProgress",
|
|
168
|
-
props: E,
|
|
169
|
-
setup(e) {
|
|
170
|
-
const r = e, { modifiers: t } = d(r), { bemCssClasses: n } = O("vv-progress", {
|
|
171
|
-
modifiers: t,
|
|
172
|
-
indeterminate: c(() => !r.determinate)
|
|
173
|
-
}), s = c(() => ({
|
|
174
|
-
"aria-label": r.ariaLabel,
|
|
175
|
-
role: "progressbar",
|
|
176
|
-
class: n.value,
|
|
177
|
-
value: r.value,
|
|
178
|
-
max: r.max
|
|
179
|
-
}));
|
|
180
|
-
return (i, o) => (h(), A("progress", b(C(m(s))), null, 16));
|
|
181
|
-
}
|
|
182
|
-
});
|
|
183
|
-
export {
|
|
184
|
-
j as default
|
|
185
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(function(o,c){typeof exports=="object"&&typeof module<"u"?module.exports=c(require("vue")):typeof define=="function"&&define.amd?define(["vue"],c):(o=typeof globalThis<"u"?globalThis:o||self,o.VvProgress=c(o.vue))})(this,function(o){"use strict";const c={equals(e,r,t){return t?this.resolveFieldData(e,t)===this.resolveFieldData(r,t):this.deepEquals(e,r)},deepEquals(e,r){if(e===r)return!0;if(e&&r&&typeof e=="object"&&typeof r=="object"){const t=Array.isArray(e),n=Array.isArray(r);let s,i,f;if(t&&n){if(i=e.length,i!=r.length)return!1;for(s=i;s--!==0;)if(!this.deepEquals(e[s],r[s]))return!1;return!0}if(t!=n)return!1;const u=e instanceof Date,l=r instanceof Date;if(u!=l)return!1;if(u&&l)return e.getTime()==r.getTime();const a=e instanceof RegExp,y=r instanceof RegExp;if(a!=y)return!1;if(a&&y)return e.toString()==r.toString();const d=Object.keys(e);if(i=d.length,i!==Object.keys(r).length)return!1;for(s=i;s--!==0;)if(!Object.prototype.hasOwnProperty.call(r,d[s]))return!1;for(s=i;s--!==0;)if(f=d[s],!this.deepEquals(e[f],r[f]))return!1;return!0}return e!==e&&r!==r},resolveFieldData(e,r){if(e&&Object.keys(e).length&&r){if(r.indexOf(".")===-1)return e[r];{const t=r.split(".");let n=e;for(let s=0,i=t.length;s<i;++s){if(e==null)return null;n=n[t[s]]}return n}}else return null},isFunction(e){return!!(e&&e.constructor&&e.call&&e.apply)},findIndexInList(e,r){let t=-1;if(r){for(let n=0;n<r.length;n++)if(this.equals(r[n],e)){t=n;break}}return t},contains(e,r){if(e!=null&&r&&r.length){for(const t of r)if(this.equals(e,t))return!0}return!1},isEmpty(e){return e==null||e===""||Array.isArray(e)&&e.length===0||!(e instanceof Date)&&typeof e=="object"&&Object.keys(e).length===0},isNotEmpty(e){return!this.isEmpty(e)},pickBy(e,r){return Object.fromEntries(Object.entries(e).filter(([t])=>r(t)))},removeFromList(e,r){const t=this.findIndexInList(e,r);return t>-1?r.filter((n,s)=>s!==t):r},isString(e){return typeof e=="string"||e instanceof String},propsToObject(e){return Object.keys(e).reduce((r,t)=>{var n,s,i,f,u;return this.isFunction(e[t])?r[t]=e[t]():Array.isArray(e[t])?r[t]=e[t][0]():(n=e[t])!=null&&n.type&&(Array.isArray(e[t].type)?r[t]=((s=e[t])==null?void 0:s.default)||((i=e[t])==null?void 0:i.type[0]()):r[t]=((f=e[t])==null?void 0:f.default)||((u=e[t])==null?void 0:u.type())),r},{})},filterArray(e,r,t){return e.filter(n=>r.some(s=>typeof s=="string"?n[t]==s:this.equals(n[t],s[t])))},kebabCase(e){var r,t;if(e)return(t=(r=e.match(/[A-Z]{2,}(?=[A-Z][a-z]+[0-9]*|\b)|[A-Z]?[a-z]+[0-9]*|[A-Z]|[0-9]+/g))==null?void 0:r.join("-"))==null?void 0:t.toLowerCase()}};function p(e,r){const t={[`${e}`]:!0};return{bemCssClasses:o.computed(()=>Object.keys(r).reduce((s,i)=>{const f=o.unref(r[i])||!1;if(!f)return s;if(i==="modifiers"){const u=Array.isArray(f)?f:[f];return{...s,...u.reduce((l,a)=>({...l,[`${e}--${c.kebabCase(a)}`]:!0}),{})}}else return{...s,[`${e}--${c.kebabCase(i)}`]:f}},t)||{})}}const m={...{modifiers:[String,Array]},value:{type:[Number,String]},max:{type:[Number,String]},ariaLabel:{type:String,default:"progress-bar"},determinate:{type:Boolean,default:!1}};return o.defineComponent({__name:"VvProgress",props:m,setup(e){const r=e,{modifiers:t}=o.toRefs(r),{bemCssClasses:n}=p("vv-progress",{modifiers:t,indeterminate:o.computed(()=>!r.determinate)}),s=o.computed(()=>({"aria-label":r.ariaLabel,role:"progressbar",class:n.value,value:r.value,max:r.max}));return(i,f)=>(o.openBlock(),o.createElementBlock("progress",o.normalizeProps(o.guardReactiveProps(o.unref(s))),null,16))}})});
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import type { ExtractPropTypes } from 'vue';
|
|
2
|
-
export declare const VvRadioProps: {
|
|
3
|
-
/**
|
|
4
|
-
* Valore del radio
|
|
5
|
-
*/
|
|
6
|
-
value: null;
|
|
7
|
-
modelValue: {
|
|
8
|
-
type: (StringConstructor | BooleanConstructor | ObjectConstructor | NumberConstructor)[];
|
|
9
|
-
};
|
|
10
|
-
label: {
|
|
11
|
-
type: StringConstructor;
|
|
12
|
-
default: string;
|
|
13
|
-
};
|
|
14
|
-
disabled: BooleanConstructor;
|
|
15
|
-
readonly: BooleanConstructor;
|
|
16
|
-
error: BooleanConstructor;
|
|
17
|
-
errorLabel: (StringConstructor | ArrayConstructor)[];
|
|
18
|
-
valid: BooleanConstructor;
|
|
19
|
-
validLabel: (StringConstructor | ArrayConstructor)[];
|
|
20
|
-
};
|
|
21
|
-
export declare const VvRadioEvents: string[];
|
|
22
|
-
export declare type VvRadioPropsType = ExtractPropTypes<typeof VvRadioProps>;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import type { VvRadioPropsType } from '../VvRadio/VvRadio';
|
|
2
|
-
import type { IInputGroupState } from '@/composables/group/types/IInputGroup';
|
|
3
|
-
/**
|
|
4
|
-
* Estreae tutte le prop del componente VvButton che possono essere
|
|
5
|
-
* "sovrascritte" quando il buttone si trova in un gruppo.
|
|
6
|
-
*/
|
|
7
|
-
export declare function toRadioInputRefs(props: VvRadioPropsType, emit: (event: any, ...args: any[]) => void): {
|
|
8
|
-
group: import("vue").Ref<IInputGroupState> | undefined;
|
|
9
|
-
isInGroup: import("vue").ComputedRef<boolean>;
|
|
10
|
-
valid: import("vue").Ref<boolean>;
|
|
11
|
-
error: import("vue").Ref<boolean>;
|
|
12
|
-
modelValue: import("vue").WritableComputedRef<any>;
|
|
13
|
-
readonly: import("vue").WritableComputedRef<any>;
|
|
14
|
-
disabled: import("vue").WritableComputedRef<any>;
|
|
15
|
-
};
|