@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,6 +1,6 @@
|
|
|
1
|
-
import { unref, computed, isRef, defineComponent, h, inject, ref, toRefs, openBlock, createBlock, mergeProps, createCommentVNode, watch, useSlots, createElementBlock, normalizeClass, toDisplayString, createElementVNode, renderSlot, normalizeProps, guardReactiveProps, withDirectives, vModelText, createTextVNode, createVNode, createSlots, withCtx } from "vue";
|
|
1
|
+
import { unref, computed, isRef, defineComponent, h, inject, mergeDefaults, ref, toRefs, openBlock, createBlock, mergeProps, createCommentVNode, watch, useSlots, createElementBlock, normalizeClass, toDisplayString, createElementVNode, renderSlot, normalizeProps, guardReactiveProps, withDirectives, vModelText, createTextVNode, createVNode, createSlots, withCtx } from "vue";
|
|
2
2
|
import { iconExists, Icon, addIcon } from "@iconify/vue";
|
|
3
|
-
import {
|
|
3
|
+
import { uid } from "uid";
|
|
4
4
|
import { useFocus, useElementVisibility } from "@vueuse/core";
|
|
5
5
|
function isEmpty(value) {
|
|
6
6
|
return ((value2) => value2 === null || value2 === void 0 || value2 === "" || Array.isArray(value2) && value2.length === 0 || !(value2 instanceof Date) && typeof value2 === "object" && Object.keys(value2).length === 0)(unref(value));
|
|
@@ -126,99 +126,9 @@ function HintSlotFactory(propsOrRef, slots) {
|
|
|
126
126
|
HintSlot
|
|
127
127
|
};
|
|
128
128
|
}
|
|
129
|
-
const
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
*/
|
|
133
|
-
color: String,
|
|
134
|
-
/**
|
|
135
|
-
* Width
|
|
136
|
-
*/
|
|
137
|
-
width: {
|
|
138
|
-
type: [String, Number]
|
|
139
|
-
},
|
|
140
|
-
/**
|
|
141
|
-
* Height
|
|
142
|
-
*/
|
|
143
|
-
height: {
|
|
144
|
-
type: [String, Number]
|
|
145
|
-
},
|
|
146
|
-
/**
|
|
147
|
-
* Icon name
|
|
148
|
-
* Can be the full composition of iconify name "@{provider}:{prefix}:{name}" or "{prefix}:{name}" or "{name}"
|
|
149
|
-
* https://docs.iconify.design/api/providers.html#provider-in-icon-name
|
|
150
|
-
*/
|
|
151
|
-
name: {
|
|
152
|
-
type: String,
|
|
153
|
-
required: true
|
|
154
|
-
},
|
|
155
|
-
/**
|
|
156
|
-
* By default 'vv'
|
|
157
|
-
* If custom collection is not added with "addCollection" DS class method, this prop could not be used
|
|
158
|
-
* Icon provider: https://docs.iconify.design/api/providers.html#provider-in-icon-name
|
|
159
|
-
*/
|
|
160
|
-
provider: {
|
|
161
|
-
type: String
|
|
162
|
-
},
|
|
163
|
-
/**
|
|
164
|
-
* The name of icon set.
|
|
165
|
-
* Icon default options prefix: simple | normal | detailed
|
|
166
|
-
*/
|
|
167
|
-
prefix: {
|
|
168
|
-
type: String,
|
|
169
|
-
default: "normal"
|
|
170
|
-
},
|
|
171
|
-
/**
|
|
172
|
-
* Url remote SVG icon
|
|
173
|
-
*/
|
|
174
|
-
src: String,
|
|
175
|
-
/**
|
|
176
|
-
* Horizontal flip
|
|
177
|
-
*/
|
|
178
|
-
horizontalFlip: Boolean,
|
|
179
|
-
/**
|
|
180
|
-
* Vertical flip
|
|
181
|
-
*/
|
|
182
|
-
verticalFlip: Boolean,
|
|
183
|
-
/**
|
|
184
|
-
* String alternative to "horizontalFlip" and "verticalFlip".
|
|
185
|
-
* Example: https://docs.iconify.design/icon-components/vue/transform.html
|
|
186
|
-
*/
|
|
187
|
-
flip: String,
|
|
188
|
-
/**
|
|
189
|
-
* Icon render mode
|
|
190
|
-
* 'style' = 'bg' or 'mask', depending on icon content
|
|
191
|
-
* 'bg' = span with style using `background`
|
|
192
|
-
* 'mask' = span with style using `mask`
|
|
193
|
-
* 'svg' = svg
|
|
194
|
-
* Iconify doc: https://docs.iconify.design/iconify-icon/modes.html
|
|
195
|
-
*/
|
|
196
|
-
mode: String,
|
|
197
|
-
/**
|
|
198
|
-
* Toggles inline or block mode
|
|
199
|
-
* Example https://docs.iconify.design/icon-components/vue/inline.html
|
|
200
|
-
*/
|
|
201
|
-
inline: Boolean,
|
|
202
|
-
/**
|
|
203
|
-
* rotates icon
|
|
204
|
-
* Example https://docs.iconify.design/icon-components/vue/transform.html
|
|
205
|
-
*/
|
|
206
|
-
rotate: [Number, String],
|
|
207
|
-
/**
|
|
208
|
-
* A callback that is called when icon data has been loaded
|
|
209
|
-
*/
|
|
210
|
-
onLoad: Function,
|
|
211
|
-
/**
|
|
212
|
-
* SVG icon string
|
|
213
|
-
*/
|
|
214
|
-
svg: String,
|
|
215
|
-
/**
|
|
216
|
-
* Icon modifiers: vv-icon css helper classes, value/s are concatened with prefix 'vv-icon--'
|
|
217
|
-
* @values string | string[]
|
|
218
|
-
*/
|
|
219
|
-
modifiers: {
|
|
220
|
-
type: [String, Array]
|
|
221
|
-
}
|
|
129
|
+
const VvIconPropsDefaults = {
|
|
130
|
+
prefix: "normal"
|
|
131
|
+
/* normal */
|
|
222
132
|
};
|
|
223
133
|
var Strategy = /* @__PURE__ */ ((Strategy2) => {
|
|
224
134
|
Strategy2["absolute"] = "absolute";
|
|
@@ -254,6 +164,13 @@ var ButtonType = /* @__PURE__ */ ((ButtonType2) => {
|
|
|
254
164
|
ButtonType2["reset"] = "reset";
|
|
255
165
|
return ButtonType2;
|
|
256
166
|
})(ButtonType || {});
|
|
167
|
+
var ActionTag = /* @__PURE__ */ ((ActionTag2) => {
|
|
168
|
+
ActionTag2["nuxtLink"] = "nuxt-link";
|
|
169
|
+
ActionTag2["routerLink"] = "router-link";
|
|
170
|
+
ActionTag2["a"] = "a";
|
|
171
|
+
ActionTag2["button"] = "button";
|
|
172
|
+
return ActionTag2;
|
|
173
|
+
})(ActionTag || {});
|
|
257
174
|
var AnchorTarget = /* @__PURE__ */ ((AnchorTarget2) => {
|
|
258
175
|
AnchorTarget2["_blank"] = "_blank";
|
|
259
176
|
AnchorTarget2["_self"] = "_self";
|
|
@@ -293,7 +210,24 @@ const __default__$1 = {
|
|
|
293
210
|
};
|
|
294
211
|
const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
295
212
|
...__default__$1,
|
|
296
|
-
props:
|
|
213
|
+
props: /* @__PURE__ */ mergeDefaults({
|
|
214
|
+
name: {},
|
|
215
|
+
color: {},
|
|
216
|
+
width: {},
|
|
217
|
+
height: {},
|
|
218
|
+
provider: {},
|
|
219
|
+
prefix: {},
|
|
220
|
+
src: {},
|
|
221
|
+
horizontalFlip: { type: Boolean },
|
|
222
|
+
verticalFlip: { type: Boolean },
|
|
223
|
+
flip: {},
|
|
224
|
+
mode: {},
|
|
225
|
+
inline: { type: Boolean },
|
|
226
|
+
rotate: {},
|
|
227
|
+
onLoad: { type: Function },
|
|
228
|
+
svg: {},
|
|
229
|
+
modifiers: {}
|
|
230
|
+
}, VvIconPropsDefaults),
|
|
297
231
|
setup(__props) {
|
|
298
232
|
const props = __props;
|
|
299
233
|
const hasRotate = computed(() => {
|
|
@@ -380,7 +314,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
380
314
|
color: _ctx.color,
|
|
381
315
|
onLoad: _ctx.onLoad,
|
|
382
316
|
icon: unref(icon)
|
|
383
|
-
}), null, 16, ["class"])) : createCommentVNode("", true);
|
|
317
|
+
}), null, 16, ["class"])) : createCommentVNode("v-if", true);
|
|
384
318
|
};
|
|
385
319
|
}
|
|
386
320
|
});
|
|
@@ -401,6 +335,7 @@ const LinkProps = {
|
|
|
401
335
|
*/
|
|
402
336
|
target: {
|
|
403
337
|
type: String,
|
|
338
|
+
default: void 0,
|
|
404
339
|
validator: (value) => Object.values(AnchorTarget).includes(value)
|
|
405
340
|
},
|
|
406
341
|
/**
|
|
@@ -415,27 +350,33 @@ const ValidProps = {
|
|
|
415
350
|
/**
|
|
416
351
|
* Valid status
|
|
417
352
|
*/
|
|
418
|
-
valid: Boolean,
|
|
353
|
+
valid: { type: Boolean, default: false },
|
|
419
354
|
/**
|
|
420
355
|
* Valid label
|
|
421
356
|
*/
|
|
422
|
-
validLabel: [String, Array]
|
|
357
|
+
validLabel: { type: [String, Array], default: void 0 }
|
|
423
358
|
};
|
|
424
359
|
const InvalidProps = {
|
|
425
360
|
/**
|
|
426
361
|
* Invalid status
|
|
427
362
|
*/
|
|
428
|
-
invalid:
|
|
363
|
+
invalid: {
|
|
364
|
+
type: Boolean,
|
|
365
|
+
default: false
|
|
366
|
+
},
|
|
429
367
|
/**
|
|
430
368
|
* Invalid label
|
|
431
369
|
*/
|
|
432
|
-
invalidLabel: [String, Array]
|
|
370
|
+
invalidLabel: { type: [String, Array], default: void 0 }
|
|
433
371
|
};
|
|
434
372
|
const LoadingProps = {
|
|
435
373
|
/**
|
|
436
374
|
* Loading status
|
|
437
375
|
*/
|
|
438
|
-
loading:
|
|
376
|
+
loading: {
|
|
377
|
+
type: Boolean,
|
|
378
|
+
default: false
|
|
379
|
+
},
|
|
439
380
|
/**
|
|
440
381
|
* Loading label
|
|
441
382
|
*/
|
|
@@ -448,37 +389,64 @@ const DisabledProps = {
|
|
|
448
389
|
/**
|
|
449
390
|
* Whether the form control is disabled
|
|
450
391
|
*/
|
|
451
|
-
disabled:
|
|
392
|
+
disabled: {
|
|
393
|
+
type: Boolean,
|
|
394
|
+
default: false
|
|
395
|
+
}
|
|
452
396
|
};
|
|
453
397
|
const ActiveProps = {
|
|
454
398
|
/**
|
|
455
399
|
* Whether the item is active
|
|
456
400
|
*/
|
|
457
|
-
active:
|
|
401
|
+
active: {
|
|
402
|
+
type: Boolean,
|
|
403
|
+
default: false
|
|
404
|
+
}
|
|
405
|
+
};
|
|
406
|
+
const CurrentProps = {
|
|
407
|
+
/**
|
|
408
|
+
* Whether the item is current
|
|
409
|
+
*/
|
|
410
|
+
current: {
|
|
411
|
+
type: Boolean,
|
|
412
|
+
default: false
|
|
413
|
+
}
|
|
458
414
|
};
|
|
459
415
|
const PressedProps = {
|
|
460
416
|
/**
|
|
461
417
|
* Whether the item is pressed
|
|
462
418
|
*/
|
|
463
|
-
pressed:
|
|
419
|
+
pressed: {
|
|
420
|
+
type: Boolean,
|
|
421
|
+
default: false
|
|
422
|
+
}
|
|
464
423
|
};
|
|
465
424
|
const LabelProps = {
|
|
466
425
|
/**
|
|
467
426
|
* The item label
|
|
468
427
|
*/
|
|
469
|
-
label:
|
|
428
|
+
label: {
|
|
429
|
+
type: [String, Number],
|
|
430
|
+
default: void 0
|
|
431
|
+
}
|
|
470
432
|
};
|
|
471
433
|
const ReadonlyProps = {
|
|
472
434
|
/**
|
|
473
435
|
* The value is not editable
|
|
474
436
|
*/
|
|
475
|
-
readonly:
|
|
437
|
+
readonly: {
|
|
438
|
+
type: Boolean,
|
|
439
|
+
default: false
|
|
440
|
+
}
|
|
476
441
|
};
|
|
477
442
|
const ModifiersProps = {
|
|
478
443
|
/**
|
|
479
444
|
* Component BEM modifiers
|
|
480
445
|
*/
|
|
481
|
-
modifiers:
|
|
446
|
+
modifiers: {
|
|
447
|
+
type: [String, Array],
|
|
448
|
+
default: void 0
|
|
449
|
+
}
|
|
482
450
|
};
|
|
483
451
|
const HintProps = {
|
|
484
452
|
hintLabel: { type: String, default: "" }
|
|
@@ -497,14 +465,20 @@ const DebounceProps = {
|
|
|
497
465
|
/**
|
|
498
466
|
* Milliseconds to wait before emitting the input event
|
|
499
467
|
*/
|
|
500
|
-
debounce:
|
|
468
|
+
debounce: {
|
|
469
|
+
type: [Number, String],
|
|
470
|
+
default: void 0
|
|
471
|
+
}
|
|
501
472
|
};
|
|
502
473
|
const IconProps = {
|
|
503
474
|
/**
|
|
504
475
|
* VvIcon name or props
|
|
505
476
|
* @see VVIcon
|
|
506
477
|
*/
|
|
507
|
-
icon: {
|
|
478
|
+
icon: {
|
|
479
|
+
type: [String, Object],
|
|
480
|
+
default: void 0
|
|
481
|
+
},
|
|
508
482
|
/**
|
|
509
483
|
* VvIcon position
|
|
510
484
|
*/
|
|
@@ -525,7 +499,10 @@ const FloatingLabelProps = {
|
|
|
525
499
|
/**
|
|
526
500
|
* If true the label will be floating
|
|
527
501
|
*/
|
|
528
|
-
floating:
|
|
502
|
+
floating: {
|
|
503
|
+
type: Boolean,
|
|
504
|
+
default: false
|
|
505
|
+
}
|
|
529
506
|
};
|
|
530
507
|
const IdProps = {
|
|
531
508
|
/**
|
|
@@ -555,7 +532,8 @@ const IdProps = {
|
|
|
555
532
|
* Dropdown show / hide transition name
|
|
556
533
|
*/
|
|
557
534
|
transitionName: {
|
|
558
|
-
type: String
|
|
535
|
+
type: String,
|
|
536
|
+
default: void 0
|
|
559
537
|
},
|
|
560
538
|
/**
|
|
561
539
|
* Offset of the dropdown from the trigger
|
|
@@ -623,7 +601,8 @@ const IdProps = {
|
|
|
623
601
|
* Set dropdown width to the same as the trigger
|
|
624
602
|
*/
|
|
625
603
|
triggerWidth: {
|
|
626
|
-
type: Boolean
|
|
604
|
+
type: Boolean,
|
|
605
|
+
default: false
|
|
627
606
|
}
|
|
628
607
|
});
|
|
629
608
|
const IdNameProps = {
|
|
@@ -640,7 +619,10 @@ const AutofocusProps = {
|
|
|
640
619
|
* Global attribute autofocus
|
|
641
620
|
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/autofocus
|
|
642
621
|
*/
|
|
643
|
-
autofocus:
|
|
622
|
+
autofocus: {
|
|
623
|
+
type: Boolean,
|
|
624
|
+
default: false
|
|
625
|
+
}
|
|
644
626
|
};
|
|
645
627
|
const AutocompleteProps = {
|
|
646
628
|
/**
|
|
@@ -672,34 +654,41 @@ const InputTextareaProps = {
|
|
|
672
654
|
* Available for input types: text, search, url, tel, email, password
|
|
673
655
|
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#minlength
|
|
674
656
|
*/
|
|
675
|
-
minlength: [String, Number],
|
|
657
|
+
minlength: { type: [String, Number], default: void 0 },
|
|
676
658
|
/**
|
|
677
659
|
* Input / Textarea maxlength
|
|
678
660
|
* Maximum length (number of characters) of value
|
|
679
661
|
* Available for input types: text, search, url, tel, email, password
|
|
680
662
|
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#maxlength
|
|
681
663
|
*/
|
|
682
|
-
maxlength: [String, Number],
|
|
664
|
+
maxlength: { type: [String, Number], default: void 0 },
|
|
683
665
|
/**
|
|
684
666
|
* Input / Textarea placeholder
|
|
685
667
|
* Text that appears in the form control when it has no value set
|
|
686
668
|
* Available for input types: text, search, url, tel, email, password, number
|
|
687
669
|
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#placeholder
|
|
688
670
|
*/
|
|
689
|
-
placeholder:
|
|
671
|
+
placeholder: {
|
|
672
|
+
type: String,
|
|
673
|
+
default: void 0
|
|
674
|
+
},
|
|
690
675
|
/**
|
|
691
676
|
* Input / Textarea required
|
|
692
677
|
* A value is required or must be check for the form to be submittable
|
|
693
678
|
* Available for all input types except color
|
|
694
679
|
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#required
|
|
695
680
|
*/
|
|
696
|
-
required:
|
|
681
|
+
required: {
|
|
682
|
+
type: Boolean,
|
|
683
|
+
default: false
|
|
684
|
+
}
|
|
697
685
|
};
|
|
698
686
|
({
|
|
699
687
|
...DisabledProps,
|
|
700
688
|
...LabelProps,
|
|
701
689
|
...PressedProps,
|
|
702
690
|
...ActiveProps,
|
|
691
|
+
...CurrentProps,
|
|
703
692
|
...LinkProps,
|
|
704
693
|
/**
|
|
705
694
|
* Button type
|
|
@@ -715,6 +704,13 @@ const InputTextareaProps = {
|
|
|
715
704
|
ariaLabel: {
|
|
716
705
|
type: String,
|
|
717
706
|
default: void 0
|
|
707
|
+
},
|
|
708
|
+
/**
|
|
709
|
+
* Default tag for the action
|
|
710
|
+
*/
|
|
711
|
+
defaultTag: {
|
|
712
|
+
type: String,
|
|
713
|
+
default: ActionTag.button
|
|
718
714
|
}
|
|
719
715
|
});
|
|
720
716
|
const WRAP = {
|
|
@@ -812,7 +808,7 @@ function useDefaults(componentName, propsDefinition, props) {
|
|
|
812
808
|
}, {});
|
|
813
809
|
});
|
|
814
810
|
}
|
|
815
|
-
const useUniqueId = (id) => computed(() => String((id == null ? void 0 : id.value) ||
|
|
811
|
+
const useUniqueId = (id) => computed(() => String((id == null ? void 0 : id.value) || uid()));
|
|
816
812
|
function useDebouncedInput(modelValue, emit, ms = 0, {
|
|
817
813
|
getter = (value) => value,
|
|
818
814
|
setter = (value) => value
|
|
@@ -834,30 +830,30 @@ function useDebouncedInput(modelValue, emit, ms = 0, {
|
|
|
834
830
|
});
|
|
835
831
|
}
|
|
836
832
|
function useComponentIcon(icon, iconPosition) {
|
|
833
|
+
const hasIcon = computed(() => {
|
|
834
|
+
if (typeof (icon == null ? void 0 : icon.value) === "string") {
|
|
835
|
+
return { name: icon == null ? void 0 : icon.value };
|
|
836
|
+
}
|
|
837
|
+
return icon == null ? void 0 : icon.value;
|
|
838
|
+
});
|
|
837
839
|
const hasIconBefore = computed(
|
|
838
|
-
() =>
|
|
840
|
+
() => (iconPosition == null ? void 0 : iconPosition.value) === Position.before ? hasIcon.value : void 0
|
|
839
841
|
);
|
|
840
842
|
const hasIconAfter = computed(
|
|
841
|
-
() =>
|
|
843
|
+
() => (iconPosition == null ? void 0 : iconPosition.value) === Position.after ? hasIcon.value : void 0
|
|
842
844
|
);
|
|
843
845
|
const hasIconLeft = computed(
|
|
844
|
-
() =>
|
|
846
|
+
() => (iconPosition == null ? void 0 : iconPosition.value) === Side.left ? hasIcon.value : void 0
|
|
845
847
|
);
|
|
846
848
|
const hasIconRight = computed(
|
|
847
|
-
() =>
|
|
849
|
+
() => (iconPosition == null ? void 0 : iconPosition.value) === Side.right ? hasIcon.value : void 0
|
|
848
850
|
);
|
|
849
851
|
const hasIconTop = computed(
|
|
850
|
-
() =>
|
|
852
|
+
() => (iconPosition == null ? void 0 : iconPosition.value) === Side.top ? hasIcon.value : void 0
|
|
851
853
|
);
|
|
852
854
|
const hasIconBottom = computed(
|
|
853
|
-
() =>
|
|
855
|
+
() => (iconPosition == null ? void 0 : iconPosition.value) === Side.bottom ? hasIcon.value : void 0
|
|
854
856
|
);
|
|
855
|
-
const hasIcon = computed(() => {
|
|
856
|
-
if (typeof (icon == null ? void 0 : icon.value) === "string") {
|
|
857
|
-
return { name: icon == null ? void 0 : icon.value };
|
|
858
|
-
}
|
|
859
|
-
return icon == null ? void 0 : icon.value;
|
|
860
|
-
});
|
|
861
857
|
return {
|
|
862
858
|
hasIcon,
|
|
863
859
|
hasIconLeft,
|
|
@@ -934,8 +930,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
934
930
|
...__default__,
|
|
935
931
|
props: VvTextareaProps,
|
|
936
932
|
emits: VvTextareaEvents,
|
|
937
|
-
setup(__props, { emit }) {
|
|
933
|
+
setup(__props, { emit: __emit }) {
|
|
938
934
|
const props = __props;
|
|
935
|
+
const emit = __emit;
|
|
939
936
|
const slots = useSlots();
|
|
940
937
|
const propsDefaults = useDefaults(
|
|
941
938
|
"VvTextarea",
|
|
@@ -964,10 +961,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
964
961
|
() => props.floating && isEmpty(props.placeholder) ? " " : props.placeholder
|
|
965
962
|
);
|
|
966
963
|
const localModelValue = useDebouncedInput(modelValue, emit, debounce == null ? void 0 : debounce.value);
|
|
967
|
-
const {
|
|
968
|
-
icon,
|
|
969
|
-
iconPosition
|
|
970
|
-
);
|
|
964
|
+
const { hasIconBefore, hasIconAfter } = useComponentIcon(icon, iconPosition);
|
|
971
965
|
const { focused } = useComponentFocus(textarea, emit);
|
|
972
966
|
const isVisible = useElementVisibility(textarea);
|
|
973
967
|
watch(isVisible, (newValue) => {
|
|
@@ -1009,11 +1003,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
1009
1003
|
loading: loading.value,
|
|
1010
1004
|
disabled: props.disabled,
|
|
1011
1005
|
readonly: props.readonly,
|
|
1012
|
-
"icon-before": hasIconBefore.value,
|
|
1013
|
-
"icon-after": hasIconAfter.value,
|
|
1006
|
+
"icon-before": hasIconBefore.value !== void 0,
|
|
1007
|
+
"icon-after": hasIconAfter.value !== void 0,
|
|
1014
1008
|
floating: props.floating && !isEmpty(props.label),
|
|
1015
1009
|
dirty: isDirty.value,
|
|
1016
|
-
|
|
1010
|
+
focus: focused.value,
|
|
1017
1011
|
resizable: props.resizable
|
|
1018
1012
|
}))
|
|
1019
1013
|
);
|
|
@@ -1050,81 +1044,104 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
1050
1044
|
localModelValue.value = void 0;
|
|
1051
1045
|
};
|
|
1052
1046
|
return (_ctx, _cache) => {
|
|
1053
|
-
return openBlock(), createElementBlock(
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1047
|
+
return openBlock(), createElementBlock(
|
|
1048
|
+
"div",
|
|
1049
|
+
{
|
|
1050
|
+
class: normalizeClass(unref(bemCssClasses))
|
|
1051
|
+
},
|
|
1052
|
+
[
|
|
1053
|
+
unref(label) ? (openBlock(), createElementBlock("label", {
|
|
1054
|
+
key: 0,
|
|
1055
|
+
for: unref(hasId),
|
|
1056
|
+
class: "vv-textarea__label"
|
|
1057
|
+
}, toDisplayString(unref(label)), 9, _hoisted_1)) : createCommentVNode("v-if", true),
|
|
1058
|
+
createElementVNode("div", _hoisted_2, [
|
|
1059
|
+
createCommentVNode(" @slot Slot to replace icon before textarea "),
|
|
1060
|
+
_ctx.$slots.before ? (openBlock(), createElementBlock("div", _hoisted_3, [
|
|
1061
|
+
createCommentVNode(" @slot Slot before input "),
|
|
1062
|
+
renderSlot(_ctx.$slots, "before", normalizeProps(guardReactiveProps(unref(slotProps))))
|
|
1063
|
+
])) : createCommentVNode("v-if", true),
|
|
1064
|
+
createElementVNode("div", _hoisted_4, [
|
|
1065
|
+
unref(hasIconBefore) ? (openBlock(), createBlock(
|
|
1066
|
+
_sfc_main$1,
|
|
1067
|
+
mergeProps({ key: 0 }, unref(hasIconBefore), { class: "vv-textarea__icon" }),
|
|
1068
|
+
null,
|
|
1069
|
+
16
|
|
1070
|
+
/* FULL_PROPS */
|
|
1071
|
+
)) : createCommentVNode("v-if", true),
|
|
1072
|
+
withDirectives(createElementVNode("textarea", mergeProps({
|
|
1073
|
+
id: unref(hasId),
|
|
1074
|
+
ref_key: "textarea",
|
|
1075
|
+
ref: textarea,
|
|
1076
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(localModelValue) ? localModelValue.value = $event : null)
|
|
1077
|
+
}, unref(hasAttrs), {
|
|
1078
|
+
onKeyup: _cache[1] || (_cache[1] = ($event) => emit("keyup", $event))
|
|
1079
|
+
}), null, 16, _hoisted_5), [
|
|
1080
|
+
[vModelText, unref(localModelValue)]
|
|
1081
|
+
]),
|
|
1082
|
+
unref(hasIconAfter) ? (openBlock(), createBlock(
|
|
1083
|
+
_sfc_main$1,
|
|
1084
|
+
mergeProps({ key: 1 }, unref(hasIconAfter), { class: "vv-textarea__icon vv-textarea__icon-after" }),
|
|
1085
|
+
null,
|
|
1086
|
+
16
|
|
1087
|
+
/* FULL_PROPS */
|
|
1088
|
+
)) : createCommentVNode("v-if", true)
|
|
1079
1089
|
]),
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1090
|
+
_ctx.$slots.after ? (openBlock(), createElementBlock("div", _hoisted_6, [
|
|
1091
|
+
createCommentVNode(" @slot Slot after input "),
|
|
1092
|
+
renderSlot(_ctx.$slots, "after", normalizeProps(guardReactiveProps(unref(slotProps))))
|
|
1093
|
+
])) : createCommentVNode("v-if", true),
|
|
1094
|
+
unref(count) ? (openBlock(), createElementBlock("span", _hoisted_7, [
|
|
1095
|
+
createCommentVNode(" @slot Slot to replace count "),
|
|
1096
|
+
renderSlot(_ctx.$slots, "count", normalizeProps(guardReactiveProps(unref(slotProps))), () => [
|
|
1097
|
+
createTextVNode(
|
|
1098
|
+
toDisplayString(unref(countFormatted)),
|
|
1099
|
+
1
|
|
1100
|
+
/* TEXT */
|
|
1101
|
+
)
|
|
1102
|
+
])
|
|
1103
|
+
])) : createCommentVNode("v-if", true)
|
|
1084
1104
|
]),
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
} : void 0
|
|
1126
|
-
]), 1032, ["id"])
|
|
1127
|
-
], 2);
|
|
1105
|
+
createVNode(unref(HintSlot), {
|
|
1106
|
+
id: unref(hasHintId),
|
|
1107
|
+
class: "vv-textarea__hint"
|
|
1108
|
+
}, createSlots({
|
|
1109
|
+
_: 2
|
|
1110
|
+
/* DYNAMIC */
|
|
1111
|
+
}, [
|
|
1112
|
+
_ctx.$slots.hint ? {
|
|
1113
|
+
name: "hint",
|
|
1114
|
+
fn: withCtx(() => [
|
|
1115
|
+
renderSlot(_ctx.$slots, "hint", normalizeProps(guardReactiveProps(unref(hintSlotScope))))
|
|
1116
|
+
]),
|
|
1117
|
+
key: "0"
|
|
1118
|
+
} : void 0,
|
|
1119
|
+
_ctx.$slots.loading ? {
|
|
1120
|
+
name: "loading",
|
|
1121
|
+
fn: withCtx(() => [
|
|
1122
|
+
renderSlot(_ctx.$slots, "loading", normalizeProps(guardReactiveProps(unref(hintSlotScope))))
|
|
1123
|
+
]),
|
|
1124
|
+
key: "1"
|
|
1125
|
+
} : void 0,
|
|
1126
|
+
_ctx.$slots.valid ? {
|
|
1127
|
+
name: "valid",
|
|
1128
|
+
fn: withCtx(() => [
|
|
1129
|
+
renderSlot(_ctx.$slots, "valid", normalizeProps(guardReactiveProps(unref(hintSlotScope))))
|
|
1130
|
+
]),
|
|
1131
|
+
key: "2"
|
|
1132
|
+
} : void 0,
|
|
1133
|
+
_ctx.$slots.invalid ? {
|
|
1134
|
+
name: "invalid",
|
|
1135
|
+
fn: withCtx(() => [
|
|
1136
|
+
renderSlot(_ctx.$slots, "invalid", normalizeProps(guardReactiveProps(unref(hintSlotScope))))
|
|
1137
|
+
]),
|
|
1138
|
+
key: "3"
|
|
1139
|
+
} : void 0
|
|
1140
|
+
]), 1032, ["id"])
|
|
1141
|
+
],
|
|
1142
|
+
2
|
|
1143
|
+
/* CLASS */
|
|
1144
|
+
);
|
|
1128
1145
|
};
|
|
1129
1146
|
}
|
|
1130
1147
|
});
|