@volverjs/ui-vue 0.0.10-beta.2 → 0.0.10-beta.21
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 +1 -1
- package/README.md +98 -3
- package/auto-imports.d.ts +6 -2
- package/bin/icons.cjs +1 -1
- package/bin/icons.js +23 -16
- package/dist/Volver.d.ts +1 -1
- package/dist/components/VvAccordion/VvAccordion.es.js +70 -14
- package/dist/components/VvAccordion/VvAccordion.umd.js +1 -1
- package/dist/components/VvAccordion/VvAccordion.vue.d.ts +13 -6
- package/dist/components/VvAccordion/index.d.ts +4 -1
- package/dist/components/VvAccordionGroup/VvAccordionGroup.es.js +117 -38
- package/dist/components/VvAccordionGroup/VvAccordionGroup.umd.js +1 -1
- package/dist/components/VvAccordionGroup/VvAccordionGroup.vue.d.ts +15 -8
- package/dist/components/VvAccordionGroup/index.d.ts +4 -1
- package/dist/components/VvAction/VvAction.es.js +58 -13
- package/dist/components/VvAction/VvAction.umd.js +1 -1
- package/dist/components/VvAction/VvAction.vue.d.ts +59 -12
- package/dist/components/VvAction/index.d.ts +25 -4
- package/dist/components/VvAlert/VvAlert.es.js +195 -152
- package/dist/components/VvAlert/VvAlert.umd.js +1 -1
- package/dist/components/VvAlert/VvAlert.vue.d.ts +18 -8
- package/dist/components/VvAlert/index.d.ts +9 -5
- package/dist/components/VvAlertGroup/VvAlertGroup.es.js +240 -174
- package/dist/components/VvAlertGroup/VvAlertGroup.umd.js +1 -1
- package/dist/components/VvAlertGroup/VvAlertGroup.vue.d.ts +13 -6
- package/dist/components/VvAlertGroup/index.d.ts +6 -2
- package/dist/components/VvAvatar/VvAvatar.es.js +54 -9
- package/dist/components/VvAvatar/VvAvatar.umd.js +1 -1
- package/dist/components/VvAvatar/VvAvatar.vue.d.ts +12 -4
- package/dist/components/VvAvatar/index.d.ts +4 -1
- package/dist/components/VvAvatarGroup/VvAvatarGroup.es.js +111 -36
- package/dist/components/VvAvatarGroup/VvAvatarGroup.umd.js +1 -1
- package/dist/components/VvAvatarGroup/VvAvatarGroup.vue.d.ts +10 -3
- package/dist/components/VvAvatarGroup/index.d.ts +4 -1
- package/dist/components/VvBadge/VvBadge.es.js +73 -17
- package/dist/components/VvBadge/VvBadge.umd.js +1 -1
- package/dist/components/VvBadge/VvBadge.vue.d.ts +12 -4
- package/dist/components/VvBadge/index.d.ts +4 -1
- package/dist/components/VvBreadcrumb/VvBreadcrumb.es.js +259 -49
- package/dist/components/VvBreadcrumb/VvBreadcrumb.umd.js +1 -1
- package/dist/components/VvBreadcrumb/VvBreadcrumb.vue.d.ts +27 -7
- package/dist/components/VvBreadcrumb/index.d.ts +6 -10
- package/dist/components/VvButton/VvButton.es.js +187 -141
- package/dist/components/VvButton/VvButton.umd.js +1 -1
- package/dist/components/VvButton/VvButton.vue.d.ts +101 -27
- package/dist/components/VvButton/index.d.ts +41 -14
- package/dist/components/VvButtonGroup/VvButtonGroup.es.js +69 -16
- package/dist/components/VvButtonGroup/VvButtonGroup.umd.js +1 -1
- package/dist/components/VvButtonGroup/VvButtonGroup.vue.d.ts +23 -10
- package/dist/components/VvButtonGroup/index.d.ts +8 -2
- package/dist/components/VvCard/VvCard.es.js +84 -25
- package/dist/components/VvCard/VvCard.umd.js +1 -1
- package/dist/components/VvCard/VvCard.vue.d.ts +12 -4
- package/dist/components/VvCard/index.d.ts +4 -1
- package/dist/components/VvCheckbox/VvCheckbox.es.js +91 -22
- package/dist/components/VvCheckbox/VvCheckbox.umd.js +1 -1
- package/dist/components/VvCheckbox/VvCheckbox.vue.d.ts +104 -32
- package/dist/components/VvCheckbox/index.d.ts +45 -12
- package/dist/components/VvCheckboxGroup/VvCheckboxGroup.es.js +180 -67
- package/dist/components/VvCheckboxGroup/VvCheckboxGroup.umd.js +1 -1
- package/dist/components/VvCheckboxGroup/VvCheckboxGroup.vue.d.ts +100 -29
- package/dist/components/VvCheckboxGroup/index.d.ts +45 -12
- package/dist/components/VvCombobox/VvCombobox.es.js +758 -531
- package/dist/components/VvCombobox/VvCombobox.umd.js +1 -1
- package/dist/components/VvCombobox/VvCombobox.vue.d.ts +181 -108
- package/dist/components/VvCombobox/index.d.ts +53 -22
- package/dist/components/VvDialog/VvDialog.es.js +136 -141
- package/dist/components/VvDialog/VvDialog.umd.js +1 -1
- package/dist/components/VvDialog/VvDialog.vue.d.ts +4 -4
- package/dist/components/VvDropdown/VvDropdown.es.js +121 -55
- package/dist/components/VvDropdown/VvDropdown.umd.js +1 -1
- package/dist/components/VvDropdown/VvDropdown.vue.d.ts +101 -75
- package/dist/components/VvDropdown/VvDropdownAction.vue.d.ts +72 -11
- package/dist/components/VvDropdown/VvDropdownItem.vue.d.ts +1 -1
- package/dist/components/VvDropdown/VvDropdownOptgroup.vue.d.ts +12 -4
- package/dist/components/VvDropdown/VvDropdownOption.vue.d.ts +26 -7
- package/dist/components/VvDropdown/index.d.ts +16 -11
- package/dist/components/VvDropdownAction/VvDropdownAction.es.js +82 -22
- package/dist/components/VvDropdownAction/VvDropdownAction.umd.js +1 -1
- package/dist/components/VvDropdownItem/VvDropdownItem.es.js +13 -7
- package/dist/components/VvDropdownOptgroup/VvDropdownOptgroup.es.js +56 -8
- package/dist/components/VvDropdownOptgroup/VvDropdownOptgroup.umd.js +1 -1
- package/dist/components/VvDropdownOption/VvDropdownOption.es.js +76 -17
- package/dist/components/VvDropdownOption/VvDropdownOption.umd.js +1 -1
- package/dist/components/VvIcon/VvIcon.es.js +23 -96
- package/dist/components/VvIcon/VvIcon.umd.js +1 -1
- package/dist/components/VvIcon/VvIcon.vue.d.ts +23 -66
- package/dist/components/VvIcon/index.d.ts +33 -48
- package/dist/components/VvInputFile/VvInputFile.es.js +1734 -0
- package/dist/components/VvInputFile/VvInputFile.umd.js +1 -0
- package/dist/components/VvInputFile/VvInputFile.vue.d.ts +313 -0
- package/dist/components/VvInputFile/index.d.ts +179 -0
- package/dist/components/VvInputText/VvInputClearAction.d.ts +7 -5
- package/dist/components/VvInputText/VvInputPasswordAction.d.ts +10 -8
- package/dist/components/VvInputText/VvInputStepAction.d.ts +1 -1
- package/dist/components/VvInputText/VvInputText.es.js +331 -293
- package/dist/components/VvInputText/VvInputText.umd.js +1 -1
- package/dist/components/VvInputText/VvInputText.vue.d.ts +162 -55
- package/dist/components/VvInputText/index.d.ts +71 -29
- package/dist/components/VvNav/VvNav.es.js +151 -73
- package/dist/components/VvNav/VvNav.umd.js +1 -1
- package/dist/components/VvNav/VvNav.vue.d.ts +41 -14
- package/dist/components/VvNav/VvNavItem.vue.d.ts +9 -0
- package/dist/components/VvNav/VvNavSeparator.vue.d.ts +2 -0
- package/dist/components/VvNav/index.d.ts +5 -13
- package/dist/components/VvNavItem/VvNavItem.es.js +436 -0
- package/dist/components/VvNavItem/VvNavItem.umd.js +1 -0
- package/dist/components/VvNavSeparator/VvNavSeparator.es.js +24 -0
- package/dist/components/VvNavSeparator/VvNavSeparator.umd.js +1 -0
- package/dist/components/VvProgress/VvProgress.es.js +65 -14
- package/dist/components/VvProgress/VvProgress.umd.js +1 -1
- package/dist/components/VvProgress/VvProgress.vue.d.ts +10 -3
- package/dist/components/VvProgress/index.d.ts +4 -1
- package/dist/components/VvRadio/VvRadio.es.js +89 -21
- package/dist/components/VvRadio/VvRadio.umd.js +1 -1
- package/dist/components/VvRadio/VvRadio.vue.d.ts +102 -30
- package/dist/components/VvRadio/index.d.ts +44 -11
- package/dist/components/VvRadioGroup/VvRadioGroup.es.js +180 -66
- package/dist/components/VvRadioGroup/VvRadioGroup.umd.js +1 -1
- package/dist/components/VvRadioGroup/VvRadioGroup.vue.d.ts +100 -29
- package/dist/components/VvRadioGroup/index.d.ts +45 -12
- package/dist/components/VvSelect/VvSelect.es.js +248 -226
- package/dist/components/VvSelect/VvSelect.umd.js +1 -1
- package/dist/components/VvSelect/VvSelect.vue.d.ts +112 -39
- package/dist/components/VvSelect/index.d.ts +48 -14
- package/dist/components/VvTab/VvTab.es.js +256 -110
- package/dist/components/VvTab/VvTab.umd.js +1 -1
- package/dist/components/VvTab/VvTab.vue.d.ts +50 -13
- package/dist/components/VvTab/index.d.ts +13 -4
- package/dist/components/VvTextarea/VvTextarea.es.js +229 -212
- package/dist/components/VvTextarea/VvTextarea.umd.js +1 -1
- package/dist/components/VvTextarea/VvTextarea.vue.d.ts +155 -48
- package/dist/components/VvTextarea/index.d.ts +68 -19
- package/dist/components/VvTooltip/VvTooltip.es.js +72 -17
- package/dist/components/VvTooltip/VvTooltip.umd.js +1 -1
- package/dist/components/VvTooltip/VvTooltip.vue.d.ts +10 -3
- package/dist/components/VvTooltip/index.d.ts +4 -1
- package/dist/components/common/HintSlot.d.ts +1 -1
- package/dist/components/index.d.ts +10 -0
- package/dist/components/index.es.js +2902 -1329
- package/dist/components/index.umd.js +1 -1
- package/dist/composables/alert/useAlert.d.ts +37 -4
- package/dist/composables/dropdown/useProvideDropdown.d.ts +1 -1
- package/dist/composables/index.d.ts +1 -0
- package/dist/composables/index.es.js +88 -1
- package/dist/composables/index.umd.js +1 -1
- package/dist/composables/useBlurhash.d.ts +7 -0
- package/dist/composables/useComponentIcon.d.ts +9 -8
- package/dist/composables/useVolver.d.ts +1 -1
- package/dist/directives/index.d.ts +3 -5
- package/dist/directives/index.es.js +92 -31
- package/dist/directives/index.umd.js +1 -1
- package/dist/directives/v-tooltip.es.js +90 -26
- package/dist/directives/v-tooltip.umd.js +1 -1
- package/dist/icons.es.js +210 -210
- package/dist/icons.umd.js +1 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.es.js +81 -16
- package/dist/index.umd.js +1 -1
- package/dist/props/index.d.ts +287 -73
- package/dist/resolvers/unplugin.d.ts +6 -1
- package/dist/resolvers/unplugin.es.js +78 -10
- package/dist/resolvers/unplugin.umd.js +1 -1
- package/dist/stories/AccordionGroup/AccordionGroup.stories.d.ts +72 -84
- package/dist/stories/AccordionGroup/AccordionGroupSlots.stories.d.ts +623 -461
- package/dist/stories/AlertGroup/AlertGroupWithComposable.stories.d.ts +1 -1
- package/dist/stories/Blurhash/BlurhashComposable.stories.d.ts +4 -0
- package/dist/stories/Combobox/Combobox.settings.d.ts +8 -0
- package/dist/stories/Icon/Icon.settings.d.ts +1 -0
- package/dist/stories/InputFile/InputFile.settings.d.ts +56 -0
- package/dist/stories/InputFile/InputFile.stories.d.ts +12 -0
- package/dist/stories/InputFile/InputFileDropArea.stories.d.ts +9 -0
- package/dist/stories/InputFile/InputFileIconPosition.stories.d.ts +8 -0
- package/dist/stories/InputFile/InputFileSlots.stories.d.ts +7 -0
- package/dist/stories/Tab/Tab.settings.d.ts +4 -37
- package/dist/types/alert.d.ts +13 -0
- package/dist/types/blurhash.d.ts +12 -0
- package/dist/types/floating-ui.d.ts +6 -0
- package/dist/types/generic.d.ts +4 -0
- package/dist/types/group.d.ts +37 -0
- package/dist/types/index.d.ts +7 -0
- package/dist/types/input-file.d.ts +16 -0
- package/dist/types/nav.d.ts +18 -0
- package/dist/utils/ObjectUtilities.d.ts +0 -1
- package/dist/workers/blurhash.d.ts +1 -0
- package/package.json +97 -80
- package/src/Volver.ts +31 -20
- 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 +2 -2
- package/src/components/VvAction/VvAction.vue +5 -2
- package/src/components/VvAlert/index.ts +1 -3
- package/src/components/VvAlertGroup/index.ts +2 -1
- package/src/components/VvBreadcrumb/VvBreadcrumb.vue +20 -19
- package/src/components/VvBreadcrumb/index.ts +2 -8
- package/src/components/VvButton/VvButton.vue +6 -6
- package/src/components/VvButton/index.ts +2 -4
- package/src/components/VvCombobox/VvCombobox.vue +24 -16
- package/src/components/VvCombobox/index.ts +4 -0
- package/src/components/VvIcon/VvIcon.vue +2 -2
- package/src/components/VvIcon/index.ts +35 -48
- package/src/components/VvInputFile/VvInputFile.vue +365 -0
- package/src/components/VvInputFile/index.ts +116 -0
- package/src/components/VvInputText/VvInputClearAction.ts +10 -6
- package/src/components/VvInputText/VvInputPasswordAction.ts +13 -9
- package/src/components/VvInputText/VvInputText.vue +17 -18
- package/src/components/VvInputText/index.ts +7 -15
- package/src/components/VvNav/VvNav.vue +30 -50
- package/src/components/VvNav/VvNavItem.vue +18 -0
- package/src/components/VvNav/VvNavSeparator.vue +11 -0
- package/src/components/VvNav/index.ts +2 -15
- package/src/components/VvSelect/VvSelect.vue +5 -8
- package/src/components/VvTab/VvTab.vue +63 -35
- package/src/components/VvTab/index.ts +10 -4
- package/src/components/VvTextarea/VvTextarea.vue +6 -9
- package/src/components/index.ts +10 -0
- package/src/composables/index.ts +1 -0
- package/src/composables/useBlurhash.ts +76 -0
- package/src/composables/useComponentIcon.ts +15 -14
- package/src/composables/useUniqueId.ts +2 -2
- package/src/directives/index.ts +3 -6
- package/src/directives/v-tooltip.ts +19 -10
- package/src/index.ts +3 -1
- package/src/props/index.ts +115 -27
- package/src/resolvers/unplugin.ts +24 -14
- package/src/stories/AlertGroup/AlertGroupWithComposable.stories.ts +2 -2
- package/src/stories/Blurhash/BlurhashComposable.stories.ts +195 -0
- package/src/stories/Combobox/Combobox.settings.ts +8 -0
- package/src/stories/Icon/Icon.settings.ts +3 -3
- package/src/stories/InputFile/InputFile.settings.ts +36 -0
- package/src/stories/InputFile/InputFile.stories.ts +89 -0
- package/src/stories/InputFile/InputFileDropArea.stories.ts +56 -0
- package/src/stories/InputFile/InputFileIconPosition.stories.ts +43 -0
- package/src/stories/InputFile/InputFileSlots.stories.ts +33 -0
- package/src/stories/Nav/Nav.settings.ts +3 -4
- package/src/stories/Nav/Nav.test.ts +4 -15
- package/src/stories/Tab/Tab.settings.ts +9 -9
- package/src/stories/Tab/Tab.stories.ts +2 -2
- package/src/stories/Tab/Tab.test.ts +6 -14
- package/src/stories/argTypes.ts +1 -1
- package/src/types/blurhash.ts +21 -0
- package/src/types/generic.ts +6 -0
- package/src/types/index.ts +7 -0
- package/src/types/input-file.ts +18 -0
- package/src/types/nav.ts +20 -0
- package/src/utils/ObjectUtilities.ts +0 -11
- package/src/workers/blurhash.ts +9 -0
- package/dist/components/VvNav/VvNavItemTitle.vue.d.ts +0 -6
- package/dist/components/VvNav/VvNavSeparator.d.ts +0 -2
- package/dist/components/VvNavItemTitle/VvNavItemTitle.es.js +0 -19
- package/dist/components/VvNavItemTitle/VvNavItemTitle.umd.js +0 -1
- package/src/components/VvNav/VvNavItemTitle.vue +0 -11
- package/src/components/VvNav/VvNavSeparator.ts +0 -8
- package/src/types/generic.d.ts +0 -6
- /package/src/types/{alert.d.ts → alert.ts} +0 -0
- /package/src/types/{floating-ui.d.ts → floating-ui.ts} +0 -0
- /package/src/types/{group.d.ts → group.ts} +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { unref, inject, computed, toRef, toRefs, isRef, defineComponent, h, useSlots, ref, openBlock, createElementBlock, normalizeClass, withDirectives, createElementVNode, vModelRadio, renderSlot, createTextVNode, toDisplayString, createVNode, createSlots, withCtx, normalizeProps, guardReactiveProps } from "vue";
|
|
2
|
-
import {
|
|
2
|
+
import { uid } from "uid";
|
|
3
3
|
var Strategy = /* @__PURE__ */ ((Strategy2) => {
|
|
4
4
|
Strategy2["absolute"] = "absolute";
|
|
5
5
|
Strategy2["fixed"] = "fixed";
|
|
@@ -34,6 +34,13 @@ var ButtonType = /* @__PURE__ */ ((ButtonType2) => {
|
|
|
34
34
|
ButtonType2["reset"] = "reset";
|
|
35
35
|
return ButtonType2;
|
|
36
36
|
})(ButtonType || {});
|
|
37
|
+
var ActionTag = /* @__PURE__ */ ((ActionTag2) => {
|
|
38
|
+
ActionTag2["nuxtLink"] = "nuxt-link";
|
|
39
|
+
ActionTag2["routerLink"] = "router-link";
|
|
40
|
+
ActionTag2["a"] = "a";
|
|
41
|
+
ActionTag2["button"] = "button";
|
|
42
|
+
return ActionTag2;
|
|
43
|
+
})(ActionTag || {});
|
|
37
44
|
var AnchorTarget = /* @__PURE__ */ ((AnchorTarget2) => {
|
|
38
45
|
AnchorTarget2["_blank"] = "_blank";
|
|
39
46
|
AnchorTarget2["_self"] = "_self";
|
|
@@ -60,6 +67,7 @@ const LinkProps = {
|
|
|
60
67
|
*/
|
|
61
68
|
target: {
|
|
62
69
|
type: String,
|
|
70
|
+
default: void 0,
|
|
63
71
|
validator: (value) => Object.values(AnchorTarget).includes(value)
|
|
64
72
|
},
|
|
65
73
|
/**
|
|
@@ -74,27 +82,33 @@ const ValidProps = {
|
|
|
74
82
|
/**
|
|
75
83
|
* Valid status
|
|
76
84
|
*/
|
|
77
|
-
valid: Boolean,
|
|
85
|
+
valid: { type: Boolean, default: false },
|
|
78
86
|
/**
|
|
79
87
|
* Valid label
|
|
80
88
|
*/
|
|
81
|
-
validLabel: [String, Array]
|
|
89
|
+
validLabel: { type: [String, Array], default: void 0 }
|
|
82
90
|
};
|
|
83
91
|
const InvalidProps = {
|
|
84
92
|
/**
|
|
85
93
|
* Invalid status
|
|
86
94
|
*/
|
|
87
|
-
invalid:
|
|
95
|
+
invalid: {
|
|
96
|
+
type: Boolean,
|
|
97
|
+
default: false
|
|
98
|
+
},
|
|
88
99
|
/**
|
|
89
100
|
* Invalid label
|
|
90
101
|
*/
|
|
91
|
-
invalidLabel: [String, Array]
|
|
102
|
+
invalidLabel: { type: [String, Array], default: void 0 }
|
|
92
103
|
};
|
|
93
104
|
const LoadingProps = {
|
|
94
105
|
/**
|
|
95
106
|
* Loading status
|
|
96
107
|
*/
|
|
97
|
-
loading:
|
|
108
|
+
loading: {
|
|
109
|
+
type: Boolean,
|
|
110
|
+
default: false
|
|
111
|
+
},
|
|
98
112
|
/**
|
|
99
113
|
* Loading label
|
|
100
114
|
*/
|
|
@@ -107,37 +121,64 @@ const DisabledProps = {
|
|
|
107
121
|
/**
|
|
108
122
|
* Whether the form control is disabled
|
|
109
123
|
*/
|
|
110
|
-
disabled:
|
|
124
|
+
disabled: {
|
|
125
|
+
type: Boolean,
|
|
126
|
+
default: false
|
|
127
|
+
}
|
|
111
128
|
};
|
|
112
129
|
const ActiveProps = {
|
|
113
130
|
/**
|
|
114
131
|
* Whether the item is active
|
|
115
132
|
*/
|
|
116
|
-
active:
|
|
133
|
+
active: {
|
|
134
|
+
type: Boolean,
|
|
135
|
+
default: false
|
|
136
|
+
}
|
|
137
|
+
};
|
|
138
|
+
const CurrentProps = {
|
|
139
|
+
/**
|
|
140
|
+
* Whether the item is current
|
|
141
|
+
*/
|
|
142
|
+
current: {
|
|
143
|
+
type: Boolean,
|
|
144
|
+
default: false
|
|
145
|
+
}
|
|
117
146
|
};
|
|
118
147
|
const PressedProps = {
|
|
119
148
|
/**
|
|
120
149
|
* Whether the item is pressed
|
|
121
150
|
*/
|
|
122
|
-
pressed:
|
|
151
|
+
pressed: {
|
|
152
|
+
type: Boolean,
|
|
153
|
+
default: false
|
|
154
|
+
}
|
|
123
155
|
};
|
|
124
156
|
const LabelProps = {
|
|
125
157
|
/**
|
|
126
158
|
* The item label
|
|
127
159
|
*/
|
|
128
|
-
label:
|
|
160
|
+
label: {
|
|
161
|
+
type: [String, Number],
|
|
162
|
+
default: void 0
|
|
163
|
+
}
|
|
129
164
|
};
|
|
130
165
|
const ReadonlyProps = {
|
|
131
166
|
/**
|
|
132
167
|
* The value is not editable
|
|
133
168
|
*/
|
|
134
|
-
readonly:
|
|
169
|
+
readonly: {
|
|
170
|
+
type: Boolean,
|
|
171
|
+
default: false
|
|
172
|
+
}
|
|
135
173
|
};
|
|
136
174
|
const ModifiersProps = {
|
|
137
175
|
/**
|
|
138
176
|
* Component BEM modifiers
|
|
139
177
|
*/
|
|
140
|
-
modifiers:
|
|
178
|
+
modifiers: {
|
|
179
|
+
type: [String, Array],
|
|
180
|
+
default: void 0
|
|
181
|
+
}
|
|
141
182
|
};
|
|
142
183
|
const HintProps = {
|
|
143
184
|
hintLabel: { type: String, default: "" }
|
|
@@ -147,7 +188,10 @@ const HintProps = {
|
|
|
147
188
|
* VvIcon name or props
|
|
148
189
|
* @see VVIcon
|
|
149
190
|
*/
|
|
150
|
-
icon: {
|
|
191
|
+
icon: {
|
|
192
|
+
type: [String, Object],
|
|
193
|
+
default: void 0
|
|
194
|
+
},
|
|
151
195
|
/**
|
|
152
196
|
* VvIcon position
|
|
153
197
|
*/
|
|
@@ -192,7 +236,8 @@ const IdProps = {
|
|
|
192
236
|
* Dropdown show / hide transition name
|
|
193
237
|
*/
|
|
194
238
|
transitionName: {
|
|
195
|
-
type: String
|
|
239
|
+
type: String,
|
|
240
|
+
default: void 0
|
|
196
241
|
},
|
|
197
242
|
/**
|
|
198
243
|
* Offset of the dropdown from the trigger
|
|
@@ -260,7 +305,8 @@ const IdProps = {
|
|
|
260
305
|
* Set dropdown width to the same as the trigger
|
|
261
306
|
*/
|
|
262
307
|
triggerWidth: {
|
|
263
|
-
type: Boolean
|
|
308
|
+
type: Boolean,
|
|
309
|
+
default: false
|
|
264
310
|
}
|
|
265
311
|
});
|
|
266
312
|
const IdNameProps = {
|
|
@@ -287,17 +333,24 @@ const CheckboxRadioProps = {
|
|
|
287
333
|
* Input value
|
|
288
334
|
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#value
|
|
289
335
|
*/
|
|
290
|
-
value:
|
|
336
|
+
value: {
|
|
337
|
+
type: [String, Number, Boolean],
|
|
338
|
+
default: void 0
|
|
339
|
+
},
|
|
291
340
|
/**
|
|
292
341
|
* Input value
|
|
293
342
|
*/
|
|
294
|
-
modelValue:
|
|
343
|
+
modelValue: {
|
|
344
|
+
type: [Object, Number, Boolean, String],
|
|
345
|
+
default: void 0
|
|
346
|
+
}
|
|
295
347
|
};
|
|
296
348
|
({
|
|
297
349
|
...DisabledProps,
|
|
298
350
|
...LabelProps,
|
|
299
351
|
...PressedProps,
|
|
300
352
|
...ActiveProps,
|
|
353
|
+
...CurrentProps,
|
|
301
354
|
...LinkProps,
|
|
302
355
|
/**
|
|
303
356
|
* Button type
|
|
@@ -313,6 +366,13 @@ const CheckboxRadioProps = {
|
|
|
313
366
|
ariaLabel: {
|
|
314
367
|
type: String,
|
|
315
368
|
default: void 0
|
|
369
|
+
},
|
|
370
|
+
/**
|
|
371
|
+
* Default tag for the action
|
|
372
|
+
*/
|
|
373
|
+
defaultTag: {
|
|
374
|
+
type: String,
|
|
375
|
+
default: ActionTag.button
|
|
316
376
|
}
|
|
317
377
|
});
|
|
318
378
|
function equals(obj1, obj2, field) {
|
|
@@ -639,7 +699,7 @@ function useDefaults(componentName, propsDefinition, props) {
|
|
|
639
699
|
}, {});
|
|
640
700
|
});
|
|
641
701
|
}
|
|
642
|
-
const useUniqueId = (id) => computed(() => String((id == null ? void 0 : id.value) ||
|
|
702
|
+
const useUniqueId = (id) => computed(() => String((id == null ? void 0 : id.value) || uid()));
|
|
643
703
|
function useModifiers(prefix, modifiers, others) {
|
|
644
704
|
return computed(() => {
|
|
645
705
|
const toReturn = {
|
|
@@ -672,8 +732,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
672
732
|
...__default__,
|
|
673
733
|
props: VvRadioProps,
|
|
674
734
|
emits: VvRadioEvents,
|
|
675
|
-
setup(__props, { emit }) {
|
|
735
|
+
setup(__props, { emit: __emit }) {
|
|
676
736
|
const props = __props;
|
|
737
|
+
const emit = __emit;
|
|
677
738
|
const slots = useSlots();
|
|
678
739
|
const propsDefaults = useDefaults(
|
|
679
740
|
"VvRadio",
|
|
@@ -754,12 +815,19 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
754
815
|
[vModelRadio, unref(localModelValue)]
|
|
755
816
|
]),
|
|
756
817
|
renderSlot(_ctx.$slots, "default", { value: unref(modelValue) }, () => [
|
|
757
|
-
createTextVNode(
|
|
818
|
+
createTextVNode(
|
|
819
|
+
toDisplayString(_ctx.label),
|
|
820
|
+
1
|
|
821
|
+
/* TEXT */
|
|
822
|
+
)
|
|
758
823
|
]),
|
|
759
824
|
createVNode(unref(HintSlot), {
|
|
760
825
|
id: unref(hasHintId),
|
|
761
826
|
class: "vv-radio__hint"
|
|
762
|
-
}, createSlots({
|
|
827
|
+
}, createSlots({
|
|
828
|
+
_: 2
|
|
829
|
+
/* DYNAMIC */
|
|
830
|
+
}, [
|
|
763
831
|
_ctx.$slots.hint ? {
|
|
764
832
|
name: "hint",
|
|
765
833
|
fn: withCtx(() => [
|
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(e,
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("vue"),require("uid")):"function"==typeof define&&define.amd?define(["vue","uid"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).VvRadio=t(e.vue,e.uid)}(this,(function(e,t){"use strict";var l=(e=>(e.left="left",e.right="right",e.top="top",e.bottom="bottom",e))(l||{}),a=(e=>(e.before="before",e.after="after",e))(a||{}),n=(e=>(e.button="button",e.submit="submit",e.reset="reset",e))(n||{}),o=(e=>(e.nuxtLink="nuxt-link",e.routerLink="router-link",e.a="a",e.button="button",e))(o||{});const i=Symbol.for("volver"),r=Symbol.for("radioGroup"),u={valid:{type:Boolean,default:!1},validLabel:{type:[String,Array],default:void 0}},d={invalid:{type:Boolean,default:!1},invalidLabel:{type:[String,Array],default:void 0}},s={loading:{type:Boolean,default:!1},loadingLabel:{type:String,default:"Loading..."}},v={disabled:{type:Boolean,default:!1}},f=(Boolean,Boolean,Boolean,{label:{type:[String,Number],default:void 0}}),c={readonly:{type:Boolean,default:!1}},p={modifiers:{type:[String,Array],default:void 0}},b={hintLabel:{type:String,default:""}};a.before;const m={tabindex:{type:[String,Number],default:0}},g={id:[String,Number]};l.bottom,Boolean,Boolean,Boolean,Boolean,Boolean,Boolean,Boolean,Boolean;const h={...{...g,name:{type:String,required:!0}},...m,...u,...d,...b,...v,...c,...p,...f,...s,value:{type:[String,Number,Boolean],default:void 0},modelValue:{type:[Object,Number,Boolean,String],default:void 0}};function y(e,t,l){return l?L(e,l)===L(t,l):S(e,t)}function S(e,t){if(e===t)return!0;if(e&&t&&"object"==typeof e&&"object"==typeof t){const l=Array.isArray(e),a=Array.isArray(t);let n,o,i;if(l&&a){if(o=e.length,o!=t.length)return!1;for(n=o;0!=n--;)if(!S(e[n],t[n]))return!1;return!0}if(l!=a)return!1;const r=e instanceof Date,u=t instanceof Date;if(r!=u)return!1;if(r&&u)return e.getTime()==t.getTime();const d=e instanceof RegExp,s=t instanceof RegExp;if(d!=s)return!1;if(d&&s)return e.toString()==t.toString();const v=Object.keys(e);if(o=v.length,o!==Object.keys(t).length)return!1;for(n=o;0!=n--;)if(!Object.prototype.hasOwnProperty.call(t,v[n]))return!1;for(n=o;0!=n--;)if(i=v[n],!S(e[i],t[i]))return!1;return!0}return e!=e&&t!=t}function L(e,t){if(e&&Object.keys(e).length&&t){if(-1===t.indexOf("."))return e[t];{const l=t.split(".");let a=e;for(let t=0,n=l.length;t<n;++t){if(null==e)return null;a=a[l[t]]}return a}}return null}function O(t){const l=e.inject(t,void 0),a=e.computed((()=>{return t=l,!(null==(a=e.unref(t))||""===a||Array.isArray(a)&&0===a.length||!(a instanceof Date)&&"object"==typeof a&&0===Object.keys(a).length);var t,a}));return{group:l,isInGroup:a,getGroupOrLocalRef:function(t,a,n){if(null==l?void 0:l.value){const a=e.unref(l.value)[t];return e.computed({get:()=>null==a?void 0:a.value,set(e){a.value=e}})}const o=e.toRef(a,t);return e.computed({get:()=>o.value,set(e){n&&n(`update:${t}`,e)}})}}}n.button,o.button;const B=h;function $(e){return Array.isArray(e)?e.filter((e=>{return"string"==typeof(t=e)||t instanceof String;var t})).join(" "):e}function V(t,l,a){const n=e.inject(i),o=e.computed((()=>{var e;if(n&&(null==(e=n.defaults.value)?void 0:e[t]))return n.defaults.value[t]}));return e.computed((()=>{if(void 0===o.value)return a;const e=o.value,t=l,n=a;return Object.keys(t).reduce(((l,a)=>{const o=n[a];if(l[a]=o,a in e){if(Array.isArray(t[a])){const n=t[a];if(n.length){n[0]===o&&(l[a]=e[a])}}if("function"==typeof t[a]){(0,t[a])()===o&&(l[a]=e[a])}if("object"==typeof t[a]){let n=t[a].default;"function"==typeof n&&(n=n()),"object"==typeof n?JSON.stringify(n)===JSON.stringify(o)&&(l[a]=e[a]):n===o&&(l[a]=e[a])}}return l}),{})}))}const A=["for"],k=["id","name","disabled","value","tabindex","aria-invalid","aria-describedby","aria-errormessage"];return e.defineComponent({name:"VvRadio",props:B,emits:["click","update:modelValue","change","blur"],setup(l,{emit:a}){const n=l,o=a,i=e.useSlots(),u=V("VvRadio",B,n),{id:d,disabled:s,readonly:v,modelValue:f,valid:c,invalid:p}=function(t,l){const{id:a}=e.toRefs(t),{group:n,isInGroup:o,getGroupOrLocalRef:i}=O(r),u=i("modelValue",t,l),d=i("valid",t),s=i("invalid",t),v=e.computed((()=>{var e;return Boolean(t.readonly||(null==(e=null==n?void 0:n.value)?void 0:e.readonly.value))})),f=e.computed((()=>{var e;return Boolean(t.disabled||(null==(e=null==n?void 0:n.value)?void 0:e.disabled.value))}));return{id:a,group:n,isInGroup:o,modelValue:u,valid:d,invalid:s,readonly:v,disabled:f}}(n,o),b=(l=>e.computed((()=>String((null==l?void 0:l.value)||t.uid()))))(d),m=e.computed((()=>`${b.value}-hint`)),g=e.computed((()=>S.value?-1:n.tabindex)),h=e.ref(),S=e.computed((()=>s.value||v.value)),L=e.computed((()=>!0===p.value||!0!==c.value&&void 0)),j=e.computed((()=>Array.isArray(f.value)?function(e,t){if(null!=e&&t&&t.length)for(const l of t)if(y(e,l))return!0;return!1}(n.value,f.value):y(n.value,f.value))),R=e.computed((()=>!["string","number","boolean"].includes(typeof n.value)||n.value)),x=e.computed({get:()=>j.value?R.value:null,set(e){Array.isArray(f.value)?f.value=[n.value]:f.value=n.value,o("change",e)}}),{modifiers:N}=e.toRefs(n),P=function(t,l,a){return e.computed((()=>{const n={[t]:!0},o="string"==typeof(null==l?void 0:l.value)?l.value.split(" "):null==l?void 0:l.value;return o&&Array.isArray(o)&&o.forEach((e=>{e&&(n[`${t}--${e}`]=!0)})),a&&Object.keys(a.value).forEach((l=>{n[`${t}--${l}`]=e.unref(a.value[l])})),n}))}("vv-radio",N,e.computed((()=>({valid:c.value,invalid:p.value,disabled:s.value,readonly:v.value})))),{HintSlot:I,hasHintLabelOrSlot:C,hasInvalidLabelOrSlot:w,hintSlotScope:E}=function(t,l){const a=e.computed((()=>e.isRef(t)?t.value:t)),n=e.computed((()=>$(a.value.invalidLabel))),o=e.computed((()=>$(a.value.validLabel))),i=e.computed((()=>a.value.loadingLabel)),r=e.computed((()=>a.value.hintLabel)),u=e.computed((()=>Boolean(a.value.loading&&(l.loading||i.value)))),d=e.computed((()=>!u.value&&Boolean(a.value.invalid&&(l.invalid||n.value)))),s=e.computed((()=>!u.value&&!d.value&&Boolean(a.value.valid&&(l.valid||o.value)))),v=e.computed((()=>!u.value&&!d.value&&!s.value&&Boolean(l.hint||r.value))),f=e.computed((()=>d.value||s.value||u.value||v.value)),c=e.computed((()=>({modelValue:a.value.modelValue,valid:a.value.valid,invalid:a.value.invalid,loading:a.value.loading}))),p=e.defineComponent({name:"HintSlot",props:{tag:{type:String,default:"small"}},setup:()=>({isVisible:f,invalidLabel:n,validLabel:o,loadingLabel:i,hintLabel:r,hasInvalidLabelOrSlot:d,hasValidLabelOrSlot:s,hasLoadingLabelOrSlot:u,hasHintLabelOrSlot:v}),render(){var t,l,a,n,o,i,r,u;if(this.isVisible){let d;return this.hasInvalidLabelOrSlot&&(d="alert"),this.hasValidLabelOrSlot&&(d="status"),this.hasLoadingLabelOrSlot?e.h(this.tag,{role:d},(null==(l=(t=this.$slots).loading)?void 0:l.call(t))??this.loadingLabel):this.hasInvalidLabelOrSlot?e.h(this.tag,{role:d},(null==(n=(a=this.$slots).invalid)?void 0:n.call(a))??this.$slots.invalid??this.invalidLabel):this.hasValidLabelOrSlot?e.h(this.tag,{role:d},(null==(i=(o=this.$slots).valid)?void 0:i.call(o))??this.validLabel):e.h(this.tag,{role:d},(null==(u=(r=this.$slots).hint)?void 0:u.call(r))??this.$slots.hint??this.hintLabel)}return null}});return{hasInvalidLabelOrSlot:d,hasHintLabelOrSlot:v,hasValidLabelOrSlot:s,hasLoadingLabelOrSlot:u,hintSlotScope:c,HintSlot:p}}(u,i);return(t,l)=>(e.openBlock(),e.createElementBlock("label",{class:e.normalizeClass(e.unref(P)),for:e.unref(b)},[e.withDirectives(e.createElementVNode("input",{id:e.unref(b),ref_key:"input",ref:h,"onUpdate:modelValue":l[0]||(l[0]=t=>e.isRef(x)?x.value=t:null),type:"radio",class:"vv-radio__input",name:t.name,disabled:e.unref(S),value:e.unref(R),tabindex:e.unref(g),"aria-invalid":e.unref(L),"aria-describedby":e.unref(C)?e.unref(m):void 0,"aria-errormessage":e.unref(w)?e.unref(m):void 0},null,8,k),[[e.vModelRadio,e.unref(x)]]),e.renderSlot(t.$slots,"default",{value:e.unref(f)},(()=>[e.createTextVNode(e.toDisplayString(t.label),1)])),e.createVNode(e.unref(I),{id:e.unref(m),class:"vv-radio__hint"},e.createSlots({_:2},[t.$slots.hint?{name:"hint",fn:e.withCtx((()=>[e.renderSlot(t.$slots,"hint",e.normalizeProps(e.guardReactiveProps(e.unref(E))))])),key:"0"}:void 0,t.$slots.loading?{name:"loading",fn:e.withCtx((()=>[e.renderSlot(t.$slots,"loading",e.normalizeProps(e.guardReactiveProps(e.unref(E))))])),key:"1"}:void 0,t.$slots.valid?{name:"valid",fn:e.withCtx((()=>[e.renderSlot(t.$slots,"valid",e.normalizeProps(e.guardReactiveProps(e.unref(E))))])),key:"2"}:void 0,t.$slots.invalid?{name:"invalid",fn:e.withCtx((()=>[e.renderSlot(t.$slots,"invalid",e.normalizeProps(e.guardReactiveProps(e.unref(E))))])),key:"3"}:void 0]),1032,["id"])],10,A))}})}));
|
|
@@ -1,23 +1,56 @@
|
|
|
1
1
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
2
|
-
value:
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
value: {
|
|
3
|
+
type: (BooleanConstructor | StringConstructor | NumberConstructor)[];
|
|
4
|
+
default: undefined;
|
|
5
|
+
};
|
|
6
|
+
modelValue: {
|
|
7
|
+
type: (ObjectConstructor | BooleanConstructor | StringConstructor | NumberConstructor)[];
|
|
8
|
+
default: undefined;
|
|
9
|
+
};
|
|
10
|
+
loading: {
|
|
11
|
+
type: BooleanConstructor;
|
|
12
|
+
default: boolean;
|
|
13
|
+
};
|
|
5
14
|
loadingLabel: {
|
|
6
15
|
type: StringConstructor;
|
|
7
16
|
default: string;
|
|
8
17
|
};
|
|
9
|
-
label:
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
18
|
+
label: {
|
|
19
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
20
|
+
default: undefined;
|
|
21
|
+
};
|
|
22
|
+
modifiers: {
|
|
23
|
+
type: globalThis.PropType<string | string[]>;
|
|
24
|
+
default: undefined;
|
|
25
|
+
};
|
|
26
|
+
readonly: {
|
|
27
|
+
type: BooleanConstructor;
|
|
28
|
+
default: boolean;
|
|
29
|
+
};
|
|
30
|
+
disabled: {
|
|
31
|
+
type: BooleanConstructor;
|
|
32
|
+
default: boolean;
|
|
33
|
+
};
|
|
13
34
|
hintLabel: {
|
|
14
35
|
type: StringConstructor;
|
|
15
36
|
default: string;
|
|
16
37
|
};
|
|
17
|
-
invalid:
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
38
|
+
invalid: {
|
|
39
|
+
type: BooleanConstructor;
|
|
40
|
+
default: boolean;
|
|
41
|
+
};
|
|
42
|
+
invalidLabel: {
|
|
43
|
+
type: (ArrayConstructor | StringConstructor)[];
|
|
44
|
+
default: undefined;
|
|
45
|
+
};
|
|
46
|
+
valid: {
|
|
47
|
+
type: BooleanConstructor;
|
|
48
|
+
default: boolean;
|
|
49
|
+
};
|
|
50
|
+
validLabel: {
|
|
51
|
+
type: (ArrayConstructor | StringConstructor)[];
|
|
52
|
+
default: undefined;
|
|
53
|
+
};
|
|
21
54
|
tabindex: {
|
|
22
55
|
type: (StringConstructor | NumberConstructor)[];
|
|
23
56
|
default: number;
|
|
@@ -27,26 +60,61 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
27
60
|
required: boolean;
|
|
28
61
|
};
|
|
29
62
|
id: (StringConstructor | NumberConstructor)[];
|
|
30
|
-
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
63
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
64
|
+
[x: string]: (...args: any[]) => void;
|
|
65
|
+
}, string, import("vue").PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
66
|
+
value: {
|
|
67
|
+
type: (BooleanConstructor | StringConstructor | NumberConstructor)[];
|
|
68
|
+
default: undefined;
|
|
69
|
+
};
|
|
70
|
+
modelValue: {
|
|
71
|
+
type: (ObjectConstructor | BooleanConstructor | StringConstructor | NumberConstructor)[];
|
|
72
|
+
default: undefined;
|
|
73
|
+
};
|
|
74
|
+
loading: {
|
|
75
|
+
type: BooleanConstructor;
|
|
76
|
+
default: boolean;
|
|
77
|
+
};
|
|
34
78
|
loadingLabel: {
|
|
35
79
|
type: StringConstructor;
|
|
36
80
|
default: string;
|
|
37
81
|
};
|
|
38
|
-
label:
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
82
|
+
label: {
|
|
83
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
84
|
+
default: undefined;
|
|
85
|
+
};
|
|
86
|
+
modifiers: {
|
|
87
|
+
type: globalThis.PropType<string | string[]>;
|
|
88
|
+
default: undefined;
|
|
89
|
+
};
|
|
90
|
+
readonly: {
|
|
91
|
+
type: BooleanConstructor;
|
|
92
|
+
default: boolean;
|
|
93
|
+
};
|
|
94
|
+
disabled: {
|
|
95
|
+
type: BooleanConstructor;
|
|
96
|
+
default: boolean;
|
|
97
|
+
};
|
|
42
98
|
hintLabel: {
|
|
43
99
|
type: StringConstructor;
|
|
44
100
|
default: string;
|
|
45
101
|
};
|
|
46
|
-
invalid:
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
102
|
+
invalid: {
|
|
103
|
+
type: BooleanConstructor;
|
|
104
|
+
default: boolean;
|
|
105
|
+
};
|
|
106
|
+
invalidLabel: {
|
|
107
|
+
type: (ArrayConstructor | StringConstructor)[];
|
|
108
|
+
default: undefined;
|
|
109
|
+
};
|
|
110
|
+
valid: {
|
|
111
|
+
type: BooleanConstructor;
|
|
112
|
+
default: boolean;
|
|
113
|
+
};
|
|
114
|
+
validLabel: {
|
|
115
|
+
type: (ArrayConstructor | StringConstructor)[];
|
|
116
|
+
default: undefined;
|
|
117
|
+
};
|
|
50
118
|
tabindex: {
|
|
51
119
|
type: (StringConstructor | NumberConstructor)[];
|
|
52
120
|
default: number;
|
|
@@ -56,17 +124,21 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
56
124
|
required: boolean;
|
|
57
125
|
};
|
|
58
126
|
id: (StringConstructor | NumberConstructor)[];
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
}, {
|
|
127
|
+
}>>, {
|
|
128
|
+
readonly: boolean;
|
|
62
129
|
disabled: boolean;
|
|
63
|
-
|
|
130
|
+
valid: boolean;
|
|
131
|
+
invalid: boolean;
|
|
132
|
+
modelValue: string | number | boolean | Record<string, any>;
|
|
133
|
+
modifiers: string | string[];
|
|
134
|
+
label: string | number;
|
|
135
|
+
value: string | number | boolean;
|
|
64
136
|
loading: boolean;
|
|
65
137
|
loadingLabel: string;
|
|
66
|
-
readonly: boolean;
|
|
67
138
|
hintLabel: string;
|
|
68
|
-
|
|
69
|
-
|
|
139
|
+
invalidLabel: string | unknown[];
|
|
140
|
+
validLabel: string | unknown[];
|
|
141
|
+
tabindex: string | number;
|
|
70
142
|
}, {}>, {
|
|
71
143
|
default?(_: {
|
|
72
144
|
value: any;
|
|
@@ -1,25 +1,58 @@
|
|
|
1
1
|
import type { ExtractPropTypes, Ref } from 'vue';
|
|
2
2
|
import type { InputGroupState } from '../../types/group';
|
|
3
3
|
export declare const VvRadioProps: {
|
|
4
|
-
value:
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
value: {
|
|
5
|
+
type: (BooleanConstructor | StringConstructor | NumberConstructor)[];
|
|
6
|
+
default: undefined;
|
|
7
|
+
};
|
|
8
|
+
modelValue: {
|
|
9
|
+
type: (ObjectConstructor | BooleanConstructor | StringConstructor | NumberConstructor)[];
|
|
10
|
+
default: undefined;
|
|
11
|
+
};
|
|
12
|
+
loading: {
|
|
13
|
+
type: BooleanConstructor;
|
|
14
|
+
default: boolean;
|
|
15
|
+
};
|
|
7
16
|
loadingLabel: {
|
|
8
17
|
type: StringConstructor;
|
|
9
18
|
default: string;
|
|
10
19
|
};
|
|
11
|
-
label:
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
20
|
+
label: {
|
|
21
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
22
|
+
default: undefined;
|
|
23
|
+
};
|
|
24
|
+
modifiers: {
|
|
25
|
+
type: globalThis.PropType<string | string[]>;
|
|
26
|
+
default: undefined;
|
|
27
|
+
};
|
|
28
|
+
readonly: {
|
|
29
|
+
type: BooleanConstructor;
|
|
30
|
+
default: boolean;
|
|
31
|
+
};
|
|
32
|
+
disabled: {
|
|
33
|
+
type: BooleanConstructor;
|
|
34
|
+
default: boolean;
|
|
35
|
+
};
|
|
15
36
|
hintLabel: {
|
|
16
37
|
type: StringConstructor;
|
|
17
38
|
default: string;
|
|
18
39
|
};
|
|
19
|
-
invalid:
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
40
|
+
invalid: {
|
|
41
|
+
type: BooleanConstructor;
|
|
42
|
+
default: boolean;
|
|
43
|
+
};
|
|
44
|
+
invalidLabel: {
|
|
45
|
+
type: (ArrayConstructor | StringConstructor)[];
|
|
46
|
+
default: undefined;
|
|
47
|
+
};
|
|
48
|
+
valid: {
|
|
49
|
+
type: BooleanConstructor;
|
|
50
|
+
default: boolean;
|
|
51
|
+
};
|
|
52
|
+
validLabel: {
|
|
53
|
+
type: (ArrayConstructor | StringConstructor)[];
|
|
54
|
+
default: undefined;
|
|
55
|
+
};
|
|
23
56
|
tabindex: {
|
|
24
57
|
type: (StringConstructor | NumberConstructor)[];
|
|
25
58
|
default: number;
|