@volverjs/ui-vue 0.0.10-beta.2 → 0.0.10-beta.20
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 +67 -13
- 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 +111 -37
- 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 +56 -12
- 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 +188 -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 +230 -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 +71 -16
- 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 +257 -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 +165 -137
- 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 +67 -15
- 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 +79 -24
- 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 +89 -21
- 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 +168 -66
- 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 +721 -527
- package/dist/components/VvCombobox/VvCombobox.umd.js +1 -1
- package/dist/components/VvCombobox/VvCombobox.vue.d.ts +145 -72
- package/dist/components/VvCombobox/index.d.ts +53 -22
- package/dist/components/VvDialog/VvDialog.es.js +133 -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 +61 -35
- 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 +80 -21
- 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 +21 -48
- package/dist/components/VvInputFile/VvInputFile.es.js +1558 -0
- package/dist/components/VvInputFile/VvInputFile.umd.js +1 -0
- package/dist/components/VvInputFile/VvInputFile.vue.d.ts +190 -0
- package/dist/components/VvInputFile/index.d.ts +74 -0
- package/dist/components/VvInputText/VvInputClearAction.d.ts +2 -2
- package/dist/components/VvInputText/VvInputPasswordAction.d.ts +1 -1
- package/dist/components/VvInputText/VvInputStepAction.d.ts +1 -1
- package/dist/components/VvInputText/VvInputText.es.js +266 -242
- package/dist/components/VvInputText/VvInputText.umd.js +1 -1
- package/dist/components/VvInputText/VvInputText.vue.d.ts +153 -46
- package/dist/components/VvInputText/index.d.ts +69 -18
- package/dist/components/VvNav/VvNav.es.js +150 -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.d.ts → VvNavSeparator.vue.d.ts} +1 -1
- package/dist/components/VvNav/index.d.ts +5 -13
- package/dist/components/VvNavItem/VvNavItem.es.js +435 -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 +168 -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 +244 -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 +251 -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 +225 -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/index.d.ts +10 -0
- package/dist/components/index.es.js +2635 -1301
- 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 +6 -6
- 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 +13 -0
- package/dist/stories/InputFile/InputFileModifiers.stories.d.ts +9 -0
- package/dist/stories/InputFile/InputFileSlots.stories.d.ts +6 -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 +14 -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 +91 -74
- 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 +22 -48
- package/src/components/VvInputFile/VvInputFile.vue +302 -0
- package/src/components/VvInputFile/index.ts +38 -0
- package/src/components/VvInputText/VvInputText.vue +13 -14
- 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 +98 -0
- package/src/stories/InputFile/InputFileModifiers.stories.ts +51 -0
- package/src/stories/InputFile/InputFileSlots.stories.ts +25 -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 +16 -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/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,7 +1,7 @@
|
|
|
1
|
-
import { unref, computed, isRef, defineComponent, h, inject, ref, toRefs, openBlock, createBlock, mergeProps, createCommentVNode, watch, useSlots, onMounted, createElementBlock, normalizeClass, toDisplayString, createElementVNode, renderSlot, normalizeProps, guardReactiveProps, withModifiers, createTextVNode, createVNode, createSlots, withCtx } from "vue";
|
|
1
|
+
import { unref, computed, isRef, defineComponent, h, inject, mergeDefaults, ref, toRefs, openBlock, createBlock, mergeProps, createCommentVNode, watch, useSlots, onMounted, createElementBlock, normalizeClass, toDisplayString, createElementVNode, renderSlot, normalizeProps, guardReactiveProps, withModifiers, createTextVNode, createVNode, createSlots, withCtx } from "vue";
|
|
2
2
|
import { useIMask } from "vue-imask";
|
|
3
3
|
import { iconExists, Icon, addIcon } from "@iconify/vue";
|
|
4
|
-
import {
|
|
4
|
+
import { uid } from "uid";
|
|
5
5
|
import { useFocus, useElementVisibility } from "@vueuse/core";
|
|
6
6
|
function isEmpty(value) {
|
|
7
7
|
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));
|
|
@@ -127,99 +127,9 @@ function HintSlotFactory(propsOrRef, slots) {
|
|
|
127
127
|
HintSlot
|
|
128
128
|
};
|
|
129
129
|
}
|
|
130
|
-
const
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
*/
|
|
134
|
-
color: String,
|
|
135
|
-
/**
|
|
136
|
-
* Width
|
|
137
|
-
*/
|
|
138
|
-
width: {
|
|
139
|
-
type: [String, Number]
|
|
140
|
-
},
|
|
141
|
-
/**
|
|
142
|
-
* Height
|
|
143
|
-
*/
|
|
144
|
-
height: {
|
|
145
|
-
type: [String, Number]
|
|
146
|
-
},
|
|
147
|
-
/**
|
|
148
|
-
* Icon name
|
|
149
|
-
* Can be the full composition of iconify name "@{provider}:{prefix}:{name}" or "{prefix}:{name}" or "{name}"
|
|
150
|
-
* https://docs.iconify.design/api/providers.html#provider-in-icon-name
|
|
151
|
-
*/
|
|
152
|
-
name: {
|
|
153
|
-
type: String,
|
|
154
|
-
required: true
|
|
155
|
-
},
|
|
156
|
-
/**
|
|
157
|
-
* By default 'vv'
|
|
158
|
-
* If custom collection is not added with "addCollection" DS class method, this prop could not be used
|
|
159
|
-
* Icon provider: https://docs.iconify.design/api/providers.html#provider-in-icon-name
|
|
160
|
-
*/
|
|
161
|
-
provider: {
|
|
162
|
-
type: String
|
|
163
|
-
},
|
|
164
|
-
/**
|
|
165
|
-
* The name of icon set.
|
|
166
|
-
* Icon default options prefix: simple | normal | detailed
|
|
167
|
-
*/
|
|
168
|
-
prefix: {
|
|
169
|
-
type: String,
|
|
170
|
-
default: "normal"
|
|
171
|
-
},
|
|
172
|
-
/**
|
|
173
|
-
* Url remote SVG icon
|
|
174
|
-
*/
|
|
175
|
-
src: String,
|
|
176
|
-
/**
|
|
177
|
-
* Horizontal flip
|
|
178
|
-
*/
|
|
179
|
-
horizontalFlip: Boolean,
|
|
180
|
-
/**
|
|
181
|
-
* Vertical flip
|
|
182
|
-
*/
|
|
183
|
-
verticalFlip: Boolean,
|
|
184
|
-
/**
|
|
185
|
-
* String alternative to "horizontalFlip" and "verticalFlip".
|
|
186
|
-
* Example: https://docs.iconify.design/icon-components/vue/transform.html
|
|
187
|
-
*/
|
|
188
|
-
flip: String,
|
|
189
|
-
/**
|
|
190
|
-
* Icon render mode
|
|
191
|
-
* 'style' = 'bg' or 'mask', depending on icon content
|
|
192
|
-
* 'bg' = span with style using `background`
|
|
193
|
-
* 'mask' = span with style using `mask`
|
|
194
|
-
* 'svg' = svg
|
|
195
|
-
* Iconify doc: https://docs.iconify.design/iconify-icon/modes.html
|
|
196
|
-
*/
|
|
197
|
-
mode: String,
|
|
198
|
-
/**
|
|
199
|
-
* Toggles inline or block mode
|
|
200
|
-
* Example https://docs.iconify.design/icon-components/vue/inline.html
|
|
201
|
-
*/
|
|
202
|
-
inline: Boolean,
|
|
203
|
-
/**
|
|
204
|
-
* rotates icon
|
|
205
|
-
* Example https://docs.iconify.design/icon-components/vue/transform.html
|
|
206
|
-
*/
|
|
207
|
-
rotate: [Number, String],
|
|
208
|
-
/**
|
|
209
|
-
* A callback that is called when icon data has been loaded
|
|
210
|
-
*/
|
|
211
|
-
onLoad: Function,
|
|
212
|
-
/**
|
|
213
|
-
* SVG icon string
|
|
214
|
-
*/
|
|
215
|
-
svg: String,
|
|
216
|
-
/**
|
|
217
|
-
* Icon modifiers: vv-icon css helper classes, value/s are concatened with prefix 'vv-icon--'
|
|
218
|
-
* @values string | string[]
|
|
219
|
-
*/
|
|
220
|
-
modifiers: {
|
|
221
|
-
type: [String, Array]
|
|
222
|
-
}
|
|
130
|
+
const VvIconPropsDefaults = {
|
|
131
|
+
prefix: "normal"
|
|
132
|
+
/* normal */
|
|
223
133
|
};
|
|
224
134
|
var Strategy = /* @__PURE__ */ ((Strategy2) => {
|
|
225
135
|
Strategy2["absolute"] = "absolute";
|
|
@@ -255,6 +165,13 @@ var ButtonType = /* @__PURE__ */ ((ButtonType2) => {
|
|
|
255
165
|
ButtonType2["reset"] = "reset";
|
|
256
166
|
return ButtonType2;
|
|
257
167
|
})(ButtonType || {});
|
|
168
|
+
var ActionTag = /* @__PURE__ */ ((ActionTag2) => {
|
|
169
|
+
ActionTag2["nuxtLink"] = "nuxt-link";
|
|
170
|
+
ActionTag2["routerLink"] = "router-link";
|
|
171
|
+
ActionTag2["a"] = "a";
|
|
172
|
+
ActionTag2["button"] = "button";
|
|
173
|
+
return ActionTag2;
|
|
174
|
+
})(ActionTag || {});
|
|
258
175
|
var AnchorTarget = /* @__PURE__ */ ((AnchorTarget2) => {
|
|
259
176
|
AnchorTarget2["_blank"] = "_blank";
|
|
260
177
|
AnchorTarget2["_self"] = "_self";
|
|
@@ -294,7 +211,24 @@ const __default__$1 = {
|
|
|
294
211
|
};
|
|
295
212
|
const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
296
213
|
...__default__$1,
|
|
297
|
-
props:
|
|
214
|
+
props: /* @__PURE__ */ mergeDefaults({
|
|
215
|
+
name: {},
|
|
216
|
+
color: {},
|
|
217
|
+
width: {},
|
|
218
|
+
height: {},
|
|
219
|
+
provider: {},
|
|
220
|
+
prefix: {},
|
|
221
|
+
src: {},
|
|
222
|
+
horizontalFlip: { type: Boolean },
|
|
223
|
+
verticalFlip: { type: Boolean },
|
|
224
|
+
flip: {},
|
|
225
|
+
mode: {},
|
|
226
|
+
inline: { type: Boolean },
|
|
227
|
+
rotate: {},
|
|
228
|
+
onLoad: { type: Function },
|
|
229
|
+
svg: {},
|
|
230
|
+
modifiers: {}
|
|
231
|
+
}, VvIconPropsDefaults),
|
|
298
232
|
setup(__props) {
|
|
299
233
|
const props = __props;
|
|
300
234
|
const hasRotate = computed(() => {
|
|
@@ -381,7 +315,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
381
315
|
color: _ctx.color,
|
|
382
316
|
onLoad: _ctx.onLoad,
|
|
383
317
|
icon: unref(icon)
|
|
384
|
-
}), null, 16, ["class"])) : createCommentVNode("", true);
|
|
318
|
+
}), null, 16, ["class"])) : createCommentVNode("v-if", true);
|
|
385
319
|
};
|
|
386
320
|
}
|
|
387
321
|
});
|
|
@@ -402,6 +336,7 @@ const LinkProps = {
|
|
|
402
336
|
*/
|
|
403
337
|
target: {
|
|
404
338
|
type: String,
|
|
339
|
+
default: void 0,
|
|
405
340
|
validator: (value) => Object.values(AnchorTarget).includes(value)
|
|
406
341
|
},
|
|
407
342
|
/**
|
|
@@ -416,27 +351,33 @@ const ValidProps = {
|
|
|
416
351
|
/**
|
|
417
352
|
* Valid status
|
|
418
353
|
*/
|
|
419
|
-
valid: Boolean,
|
|
354
|
+
valid: { type: Boolean, default: false },
|
|
420
355
|
/**
|
|
421
356
|
* Valid label
|
|
422
357
|
*/
|
|
423
|
-
validLabel: [String, Array]
|
|
358
|
+
validLabel: { type: [String, Array], default: void 0 }
|
|
424
359
|
};
|
|
425
360
|
const InvalidProps = {
|
|
426
361
|
/**
|
|
427
362
|
* Invalid status
|
|
428
363
|
*/
|
|
429
|
-
invalid:
|
|
364
|
+
invalid: {
|
|
365
|
+
type: Boolean,
|
|
366
|
+
default: false
|
|
367
|
+
},
|
|
430
368
|
/**
|
|
431
369
|
* Invalid label
|
|
432
370
|
*/
|
|
433
|
-
invalidLabel: [String, Array]
|
|
371
|
+
invalidLabel: { type: [String, Array], default: void 0 }
|
|
434
372
|
};
|
|
435
373
|
const LoadingProps = {
|
|
436
374
|
/**
|
|
437
375
|
* Loading status
|
|
438
376
|
*/
|
|
439
|
-
loading:
|
|
377
|
+
loading: {
|
|
378
|
+
type: Boolean,
|
|
379
|
+
default: false
|
|
380
|
+
},
|
|
440
381
|
/**
|
|
441
382
|
* Loading label
|
|
442
383
|
*/
|
|
@@ -449,37 +390,64 @@ const DisabledProps = {
|
|
|
449
390
|
/**
|
|
450
391
|
* Whether the form control is disabled
|
|
451
392
|
*/
|
|
452
|
-
disabled:
|
|
393
|
+
disabled: {
|
|
394
|
+
type: Boolean,
|
|
395
|
+
default: false
|
|
396
|
+
}
|
|
453
397
|
};
|
|
454
398
|
const ActiveProps = {
|
|
455
399
|
/**
|
|
456
400
|
* Whether the item is active
|
|
457
401
|
*/
|
|
458
|
-
active:
|
|
402
|
+
active: {
|
|
403
|
+
type: Boolean,
|
|
404
|
+
default: false
|
|
405
|
+
}
|
|
406
|
+
};
|
|
407
|
+
const CurrentProps = {
|
|
408
|
+
/**
|
|
409
|
+
* Whether the item is current
|
|
410
|
+
*/
|
|
411
|
+
current: {
|
|
412
|
+
type: Boolean,
|
|
413
|
+
default: false
|
|
414
|
+
}
|
|
459
415
|
};
|
|
460
416
|
const PressedProps = {
|
|
461
417
|
/**
|
|
462
418
|
* Whether the item is pressed
|
|
463
419
|
*/
|
|
464
|
-
pressed:
|
|
420
|
+
pressed: {
|
|
421
|
+
type: Boolean,
|
|
422
|
+
default: false
|
|
423
|
+
}
|
|
465
424
|
};
|
|
466
425
|
const LabelProps = {
|
|
467
426
|
/**
|
|
468
427
|
* The item label
|
|
469
428
|
*/
|
|
470
|
-
label:
|
|
429
|
+
label: {
|
|
430
|
+
type: [String, Number],
|
|
431
|
+
default: void 0
|
|
432
|
+
}
|
|
471
433
|
};
|
|
472
434
|
const ReadonlyProps = {
|
|
473
435
|
/**
|
|
474
436
|
* The value is not editable
|
|
475
437
|
*/
|
|
476
|
-
readonly:
|
|
438
|
+
readonly: {
|
|
439
|
+
type: Boolean,
|
|
440
|
+
default: false
|
|
441
|
+
}
|
|
477
442
|
};
|
|
478
443
|
const ModifiersProps = {
|
|
479
444
|
/**
|
|
480
445
|
* Component BEM modifiers
|
|
481
446
|
*/
|
|
482
|
-
modifiers:
|
|
447
|
+
modifiers: {
|
|
448
|
+
type: [String, Array],
|
|
449
|
+
default: void 0
|
|
450
|
+
}
|
|
483
451
|
};
|
|
484
452
|
const HintProps = {
|
|
485
453
|
hintLabel: { type: String, default: "" }
|
|
@@ -498,14 +466,20 @@ const DebounceProps = {
|
|
|
498
466
|
/**
|
|
499
467
|
* Milliseconds to wait before emitting the input event
|
|
500
468
|
*/
|
|
501
|
-
debounce:
|
|
469
|
+
debounce: {
|
|
470
|
+
type: [Number, String],
|
|
471
|
+
default: void 0
|
|
472
|
+
}
|
|
502
473
|
};
|
|
503
474
|
const IconProps = {
|
|
504
475
|
/**
|
|
505
476
|
* VvIcon name or props
|
|
506
477
|
* @see VVIcon
|
|
507
478
|
*/
|
|
508
|
-
icon: {
|
|
479
|
+
icon: {
|
|
480
|
+
type: [String, Object],
|
|
481
|
+
default: void 0
|
|
482
|
+
},
|
|
509
483
|
/**
|
|
510
484
|
* VvIcon position
|
|
511
485
|
*/
|
|
@@ -526,7 +500,10 @@ const FloatingLabelProps = {
|
|
|
526
500
|
/**
|
|
527
501
|
* If true the label will be floating
|
|
528
502
|
*/
|
|
529
|
-
floating:
|
|
503
|
+
floating: {
|
|
504
|
+
type: Boolean,
|
|
505
|
+
default: false
|
|
506
|
+
}
|
|
530
507
|
};
|
|
531
508
|
const IdProps = {
|
|
532
509
|
/**
|
|
@@ -556,7 +533,8 @@ const IdProps = {
|
|
|
556
533
|
* Dropdown show / hide transition name
|
|
557
534
|
*/
|
|
558
535
|
transitionName: {
|
|
559
|
-
type: String
|
|
536
|
+
type: String,
|
|
537
|
+
default: void 0
|
|
560
538
|
},
|
|
561
539
|
/**
|
|
562
540
|
* Offset of the dropdown from the trigger
|
|
@@ -624,7 +602,8 @@ const IdProps = {
|
|
|
624
602
|
* Set dropdown width to the same as the trigger
|
|
625
603
|
*/
|
|
626
604
|
triggerWidth: {
|
|
627
|
-
type: Boolean
|
|
605
|
+
type: Boolean,
|
|
606
|
+
default: false
|
|
628
607
|
}
|
|
629
608
|
});
|
|
630
609
|
const IdNameProps = {
|
|
@@ -641,7 +620,10 @@ const AutofocusProps = {
|
|
|
641
620
|
* Global attribute autofocus
|
|
642
621
|
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/autofocus
|
|
643
622
|
*/
|
|
644
|
-
autofocus:
|
|
623
|
+
autofocus: {
|
|
624
|
+
type: Boolean,
|
|
625
|
+
default: false
|
|
626
|
+
}
|
|
645
627
|
};
|
|
646
628
|
const AutocompleteProps = {
|
|
647
629
|
/**
|
|
@@ -673,34 +655,41 @@ const InputTextareaProps = {
|
|
|
673
655
|
* Available for input types: text, search, url, tel, email, password
|
|
674
656
|
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#minlength
|
|
675
657
|
*/
|
|
676
|
-
minlength: [String, Number],
|
|
658
|
+
minlength: { type: [String, Number], default: void 0 },
|
|
677
659
|
/**
|
|
678
660
|
* Input / Textarea maxlength
|
|
679
661
|
* Maximum length (number of characters) of value
|
|
680
662
|
* Available for input types: text, search, url, tel, email, password
|
|
681
663
|
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#maxlength
|
|
682
664
|
*/
|
|
683
|
-
maxlength: [String, Number],
|
|
665
|
+
maxlength: { type: [String, Number], default: void 0 },
|
|
684
666
|
/**
|
|
685
667
|
* Input / Textarea placeholder
|
|
686
668
|
* Text that appears in the form control when it has no value set
|
|
687
669
|
* Available for input types: text, search, url, tel, email, password, number
|
|
688
670
|
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#placeholder
|
|
689
671
|
*/
|
|
690
|
-
placeholder:
|
|
672
|
+
placeholder: {
|
|
673
|
+
type: String,
|
|
674
|
+
default: void 0
|
|
675
|
+
},
|
|
691
676
|
/**
|
|
692
677
|
* Input / Textarea required
|
|
693
678
|
* A value is required or must be check for the form to be submittable
|
|
694
679
|
* Available for all input types except color
|
|
695
680
|
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#required
|
|
696
681
|
*/
|
|
697
|
-
required:
|
|
682
|
+
required: {
|
|
683
|
+
type: Boolean,
|
|
684
|
+
default: false
|
|
685
|
+
}
|
|
698
686
|
};
|
|
699
687
|
({
|
|
700
688
|
...DisabledProps,
|
|
701
689
|
...LabelProps,
|
|
702
690
|
...PressedProps,
|
|
703
691
|
...ActiveProps,
|
|
692
|
+
...CurrentProps,
|
|
704
693
|
...LinkProps,
|
|
705
694
|
/**
|
|
706
695
|
* Button type
|
|
@@ -716,6 +705,13 @@ const InputTextareaProps = {
|
|
|
716
705
|
ariaLabel: {
|
|
717
706
|
type: String,
|
|
718
707
|
default: void 0
|
|
708
|
+
},
|
|
709
|
+
/**
|
|
710
|
+
* Default tag for the action
|
|
711
|
+
*/
|
|
712
|
+
defaultTag: {
|
|
713
|
+
type: String,
|
|
714
|
+
default: ActionTag.button
|
|
719
715
|
}
|
|
720
716
|
});
|
|
721
717
|
const INPUT_TYPES = {
|
|
@@ -1192,7 +1188,7 @@ function useDefaults(componentName, propsDefinition, props) {
|
|
|
1192
1188
|
}, {});
|
|
1193
1189
|
});
|
|
1194
1190
|
}
|
|
1195
|
-
const useUniqueId = (id) => computed(() => String((id == null ? void 0 : id.value) ||
|
|
1191
|
+
const useUniqueId = (id) => computed(() => String((id == null ? void 0 : id.value) || uid()));
|
|
1196
1192
|
function useDebouncedInput(modelValue, emit, ms = 0, {
|
|
1197
1193
|
getter = (value) => value,
|
|
1198
1194
|
setter = (value) => value
|
|
@@ -1223,30 +1219,30 @@ function useComponentFocus(inputTemplateRef, emit) {
|
|
|
1223
1219
|
};
|
|
1224
1220
|
}
|
|
1225
1221
|
function useComponentIcon(icon, iconPosition) {
|
|
1222
|
+
const hasIcon = computed(() => {
|
|
1223
|
+
if (typeof (icon == null ? void 0 : icon.value) === "string") {
|
|
1224
|
+
return { name: icon == null ? void 0 : icon.value };
|
|
1225
|
+
}
|
|
1226
|
+
return icon == null ? void 0 : icon.value;
|
|
1227
|
+
});
|
|
1226
1228
|
const hasIconBefore = computed(
|
|
1227
|
-
() =>
|
|
1229
|
+
() => (iconPosition == null ? void 0 : iconPosition.value) === Position.before ? hasIcon.value : void 0
|
|
1228
1230
|
);
|
|
1229
1231
|
const hasIconAfter = computed(
|
|
1230
|
-
() =>
|
|
1232
|
+
() => (iconPosition == null ? void 0 : iconPosition.value) === Position.after ? hasIcon.value : void 0
|
|
1231
1233
|
);
|
|
1232
1234
|
const hasIconLeft = computed(
|
|
1233
|
-
() =>
|
|
1235
|
+
() => (iconPosition == null ? void 0 : iconPosition.value) === Side.left ? hasIcon.value : void 0
|
|
1234
1236
|
);
|
|
1235
1237
|
const hasIconRight = computed(
|
|
1236
|
-
() =>
|
|
1238
|
+
() => (iconPosition == null ? void 0 : iconPosition.value) === Side.right ? hasIcon.value : void 0
|
|
1237
1239
|
);
|
|
1238
1240
|
const hasIconTop = computed(
|
|
1239
|
-
() =>
|
|
1241
|
+
() => (iconPosition == null ? void 0 : iconPosition.value) === Side.top ? hasIcon.value : void 0
|
|
1240
1242
|
);
|
|
1241
1243
|
const hasIconBottom = computed(
|
|
1242
|
-
() =>
|
|
1244
|
+
() => (iconPosition == null ? void 0 : iconPosition.value) === Side.bottom ? hasIcon.value : void 0
|
|
1243
1245
|
);
|
|
1244
|
-
const hasIcon = computed(() => {
|
|
1245
|
-
if (typeof (icon == null ? void 0 : icon.value) === "string") {
|
|
1246
|
-
return { name: icon == null ? void 0 : icon.value };
|
|
1247
|
-
}
|
|
1248
|
-
return icon == null ? void 0 : icon.value;
|
|
1249
|
-
});
|
|
1250
1246
|
return {
|
|
1251
1247
|
hasIcon,
|
|
1252
1248
|
hasIconLeft,
|
|
@@ -1297,17 +1293,16 @@ const _hoisted_3 = {
|
|
|
1297
1293
|
key: 0,
|
|
1298
1294
|
class: "vv-input-text__input-before"
|
|
1299
1295
|
};
|
|
1300
|
-
const _hoisted_4 = ["
|
|
1301
|
-
const _hoisted_5 =
|
|
1302
|
-
const _hoisted_6 = {
|
|
1296
|
+
const _hoisted_4 = ["id"];
|
|
1297
|
+
const _hoisted_5 = {
|
|
1303
1298
|
key: 1,
|
|
1304
1299
|
class: "vv-input-text__unit"
|
|
1305
1300
|
};
|
|
1306
|
-
const
|
|
1301
|
+
const _hoisted_6 = {
|
|
1307
1302
|
key: 5,
|
|
1308
1303
|
class: "vv-input-text__input-after"
|
|
1309
1304
|
};
|
|
1310
|
-
const
|
|
1305
|
+
const _hoisted_7 = {
|
|
1311
1306
|
key: 6,
|
|
1312
1307
|
class: "vv-input-text__limit"
|
|
1313
1308
|
};
|
|
@@ -1318,8 +1313,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
1318
1313
|
...__default__,
|
|
1319
1314
|
props: VvInputTextProps,
|
|
1320
1315
|
emits: VvInputTextEvents,
|
|
1321
|
-
setup(__props, { expose: __expose, emit }) {
|
|
1316
|
+
setup(__props, { expose: __expose, emit: __emit }) {
|
|
1322
1317
|
const props = __props;
|
|
1318
|
+
const emit = __emit;
|
|
1323
1319
|
const slots = useSlots();
|
|
1324
1320
|
const propsDefaults = useDefaults(
|
|
1325
1321
|
"VvInputText",
|
|
@@ -1482,7 +1478,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
1482
1478
|
return;
|
|
1483
1479
|
}
|
|
1484
1480
|
inputEl.value.stepUp();
|
|
1485
|
-
localModelValue.value = unref(inputEl).value;
|
|
1481
|
+
localModelValue.value = Number(unref(inputEl).value);
|
|
1486
1482
|
}
|
|
1487
1483
|
};
|
|
1488
1484
|
const onStepDown = () => {
|
|
@@ -1492,18 +1488,18 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
1492
1488
|
return;
|
|
1493
1489
|
}
|
|
1494
1490
|
inputEl.value.stepDown();
|
|
1495
|
-
localModelValue.value = unref(inputEl).value;
|
|
1491
|
+
localModelValue.value = Number(unref(inputEl).value);
|
|
1496
1492
|
}
|
|
1497
1493
|
};
|
|
1498
1494
|
const isSearch = computed(() => props.type === INPUT_TYPES.SEARCH);
|
|
1499
1495
|
const onClear = () => {
|
|
1500
1496
|
localModelValue.value = "";
|
|
1501
1497
|
};
|
|
1502
|
-
const {
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
|
|
1498
|
+
const { hasIconBefore, hasIconAfter } = useComponentIcon(icon, iconPosition);
|
|
1499
|
+
const iconAfter = computed(() => {
|
|
1500
|
+
if (hasIconAfter.value !== void 0) {
|
|
1501
|
+
return hasIconAfter.value;
|
|
1502
|
+
}
|
|
1507
1503
|
switch (props.type) {
|
|
1508
1504
|
case INPUT_TYPES.COLOR:
|
|
1509
1505
|
return { name: TYPES_ICON.COLOR };
|
|
@@ -1514,9 +1510,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
1514
1510
|
return { name: TYPES_ICON.DATE };
|
|
1515
1511
|
case INPUT_TYPES.TIME:
|
|
1516
1512
|
return { name: TYPES_ICON.TIME };
|
|
1517
|
-
default:
|
|
1518
|
-
return "";
|
|
1519
1513
|
}
|
|
1514
|
+
return void 0;
|
|
1520
1515
|
});
|
|
1521
1516
|
const { formatted: countFormatted } = useTextCount(localModelValue, {
|
|
1522
1517
|
mode: count.value,
|
|
@@ -1547,8 +1542,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
1547
1542
|
loading: loading.value,
|
|
1548
1543
|
disabled: props.disabled,
|
|
1549
1544
|
readonly: props.readonly,
|
|
1550
|
-
"icon-before": hasIconBefore.value,
|
|
1551
|
-
"icon-after":
|
|
1545
|
+
"icon-before": hasIconBefore.value !== void 0,
|
|
1546
|
+
"icon-after": iconAfter.value !== void 0,
|
|
1552
1547
|
floating: props.floating && !isEmpty(props.label),
|
|
1553
1548
|
dirty: isDirty.value,
|
|
1554
1549
|
focus: isFocused.value,
|
|
@@ -1656,101 +1651,130 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
1656
1651
|
emit("keydown", event);
|
|
1657
1652
|
};
|
|
1658
1653
|
return (_ctx, _cache) => {
|
|
1659
|
-
return openBlock(), createElementBlock(
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
|
|
1677
|
-
|
|
1678
|
-
|
|
1679
|
-
|
|
1680
|
-
|
|
1681
|
-
|
|
1682
|
-
|
|
1683
|
-
|
|
1684
|
-
|
|
1685
|
-
|
|
1686
|
-
|
|
1687
|
-
|
|
1688
|
-
|
|
1689
|
-
|
|
1690
|
-
|
|
1691
|
-
|
|
1692
|
-
|
|
1693
|
-
|
|
1654
|
+
return openBlock(), createElementBlock(
|
|
1655
|
+
"div",
|
|
1656
|
+
{
|
|
1657
|
+
class: normalizeClass(unref(bemCssClasses))
|
|
1658
|
+
},
|
|
1659
|
+
[
|
|
1660
|
+
unref(label) ? (openBlock(), createElementBlock("label", {
|
|
1661
|
+
key: 0,
|
|
1662
|
+
for: unref(hasId),
|
|
1663
|
+
class: "vv-input-text__label"
|
|
1664
|
+
}, toDisplayString(unref(label)), 9, _hoisted_1)) : createCommentVNode("v-if", true),
|
|
1665
|
+
createElementVNode("div", _hoisted_2, [
|
|
1666
|
+
_ctx.$slots.before ? (openBlock(), createElementBlock("div", _hoisted_3, [
|
|
1667
|
+
renderSlot(_ctx.$slots, "before", normalizeProps(guardReactiveProps(unref(slotProps))))
|
|
1668
|
+
])) : createCommentVNode("v-if", true),
|
|
1669
|
+
createElementVNode(
|
|
1670
|
+
"div",
|
|
1671
|
+
{
|
|
1672
|
+
ref_key: "innerEl",
|
|
1673
|
+
ref: innerEl,
|
|
1674
|
+
class: "vv-input-text__inner",
|
|
1675
|
+
onClick: withModifiers(onClickInner, ["stop"])
|
|
1676
|
+
},
|
|
1677
|
+
[
|
|
1678
|
+
unref(hasIconBefore) ? (openBlock(), createBlock(
|
|
1679
|
+
_sfc_main$1,
|
|
1680
|
+
mergeProps({ key: 0 }, unref(hasIconBefore), { class: "vv-input-text__icon" }),
|
|
1681
|
+
null,
|
|
1682
|
+
16
|
|
1683
|
+
/* FULL_PROPS */
|
|
1684
|
+
)) : createCommentVNode("v-if", true),
|
|
1685
|
+
createElementVNode("input", mergeProps({
|
|
1686
|
+
id: unref(hasId),
|
|
1687
|
+
ref_key: "inputEl",
|
|
1688
|
+
ref: inputEl
|
|
1689
|
+
}, unref(hasAttrs), {
|
|
1690
|
+
style: unref(hasStyle),
|
|
1691
|
+
onKeyup: _cache[0] || (_cache[0] = ($event) => emit("keyup", $event)),
|
|
1692
|
+
onKeydown: onKeyDown,
|
|
1693
|
+
onKeypress: _cache[1] || (_cache[1] = ($event) => emit("keypress", $event))
|
|
1694
|
+
}), null, 16, _hoisted_4),
|
|
1695
|
+
(_ctx.unit || _ctx.$slots.unit) && unref(isDirty) ? (openBlock(), createElementBlock("div", _hoisted_5, [
|
|
1696
|
+
renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(unref(slotProps))), () => [
|
|
1697
|
+
createTextVNode(
|
|
1698
|
+
toDisplayString(_ctx.unit),
|
|
1699
|
+
1
|
|
1700
|
+
/* TEXT */
|
|
1701
|
+
)
|
|
1702
|
+
])
|
|
1703
|
+
])) : createCommentVNode("v-if", true)
|
|
1704
|
+
],
|
|
1705
|
+
512
|
|
1706
|
+
/* NEED_PATCH */
|
|
1707
|
+
),
|
|
1708
|
+
unref(iconAfter) ? (openBlock(), createBlock(
|
|
1709
|
+
_sfc_main$1,
|
|
1710
|
+
mergeProps({ key: 1 }, unref(iconAfter), { class: "vv-input-text__icon vv-input-text__icon-after" }),
|
|
1711
|
+
null,
|
|
1712
|
+
16
|
|
1713
|
+
/* FULL_PROPS */
|
|
1714
|
+
)) : unref(isPassword) && !_ctx.hideActions && unref(isClickable) ? (openBlock(), createBlock(unref(PasswordInputActions), {
|
|
1715
|
+
key: 2,
|
|
1716
|
+
onTogglePassword
|
|
1717
|
+
})) : unref(isNumber) && !_ctx.hideActions && unref(isClickable) ? (openBlock(), createBlock(unref(NumberInputActions), {
|
|
1718
|
+
key: 3,
|
|
1719
|
+
onStepUp,
|
|
1720
|
+
onStepDown
|
|
1721
|
+
})) : unref(isSearch) && !_ctx.hideActions && unref(isClickable) ? (openBlock(), createBlock(unref(SearchInputActions), {
|
|
1722
|
+
key: 4,
|
|
1723
|
+
onClear
|
|
1724
|
+
})) : createCommentVNode("v-if", true),
|
|
1725
|
+
_ctx.$slots.after ? (openBlock(), createElementBlock("div", _hoisted_6, [
|
|
1726
|
+
renderSlot(_ctx.$slots, "after", normalizeProps(guardReactiveProps(unref(slotProps))))
|
|
1727
|
+
])) : createCommentVNode("v-if", true),
|
|
1728
|
+
unref(count) ? (openBlock(), createElementBlock("span", _hoisted_7, [
|
|
1729
|
+
renderSlot(_ctx.$slots, "count", normalizeProps(guardReactiveProps(unref(slotProps))), () => [
|
|
1730
|
+
createTextVNode(
|
|
1731
|
+
toDisplayString(unref(countFormatted)),
|
|
1732
|
+
1
|
|
1733
|
+
/* TEXT */
|
|
1734
|
+
)
|
|
1694
1735
|
])
|
|
1695
|
-
])) : createCommentVNode("", true)
|
|
1696
|
-
]
|
|
1697
|
-
|
|
1698
|
-
|
|
1699
|
-
class: "vv-input-
|
|
1700
|
-
},
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
}
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
|
|
1707
|
-
|
|
1708
|
-
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
|
|
1716
|
-
|
|
1717
|
-
|
|
1718
|
-
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
|
|
1724
|
-
|
|
1725
|
-
|
|
1726
|
-
|
|
1727
|
-
|
|
1728
|
-
|
|
1729
|
-
|
|
1730
|
-
|
|
1731
|
-
|
|
1732
|
-
|
|
1733
|
-
|
|
1734
|
-
|
|
1735
|
-
|
|
1736
|
-
|
|
1737
|
-
} : void 0,
|
|
1738
|
-
_ctx.$slots.valid ? {
|
|
1739
|
-
name: "valid",
|
|
1740
|
-
fn: withCtx(() => [
|
|
1741
|
-
renderSlot(_ctx.$slots, "valid", normalizeProps(guardReactiveProps(unref(hintSlotScope))))
|
|
1742
|
-
]),
|
|
1743
|
-
key: "2"
|
|
1744
|
-
} : void 0,
|
|
1745
|
-
_ctx.$slots.invalid ? {
|
|
1746
|
-
name: "invalid",
|
|
1747
|
-
fn: withCtx(() => [
|
|
1748
|
-
renderSlot(_ctx.$slots, "invalid", normalizeProps(guardReactiveProps(unref(hintSlotScope))))
|
|
1749
|
-
]),
|
|
1750
|
-
key: "3"
|
|
1751
|
-
} : void 0
|
|
1752
|
-
]), 1032, ["id"])
|
|
1753
|
-
], 2);
|
|
1736
|
+
])) : createCommentVNode("v-if", true)
|
|
1737
|
+
]),
|
|
1738
|
+
createVNode(unref(HintSlot), {
|
|
1739
|
+
id: unref(hasHintId),
|
|
1740
|
+
class: "vv-input-text__hint"
|
|
1741
|
+
}, createSlots({
|
|
1742
|
+
_: 2
|
|
1743
|
+
/* DYNAMIC */
|
|
1744
|
+
}, [
|
|
1745
|
+
_ctx.$slots.hint ? {
|
|
1746
|
+
name: "hint",
|
|
1747
|
+
fn: withCtx(() => [
|
|
1748
|
+
renderSlot(_ctx.$slots, "hint", normalizeProps(guardReactiveProps(unref(hintSlotScope))))
|
|
1749
|
+
]),
|
|
1750
|
+
key: "0"
|
|
1751
|
+
} : void 0,
|
|
1752
|
+
_ctx.$slots.loading ? {
|
|
1753
|
+
name: "loading",
|
|
1754
|
+
fn: withCtx(() => [
|
|
1755
|
+
renderSlot(_ctx.$slots, "loading", normalizeProps(guardReactiveProps(unref(hintSlotScope))))
|
|
1756
|
+
]),
|
|
1757
|
+
key: "1"
|
|
1758
|
+
} : void 0,
|
|
1759
|
+
_ctx.$slots.valid ? {
|
|
1760
|
+
name: "valid",
|
|
1761
|
+
fn: withCtx(() => [
|
|
1762
|
+
renderSlot(_ctx.$slots, "valid", normalizeProps(guardReactiveProps(unref(hintSlotScope))))
|
|
1763
|
+
]),
|
|
1764
|
+
key: "2"
|
|
1765
|
+
} : void 0,
|
|
1766
|
+
_ctx.$slots.invalid ? {
|
|
1767
|
+
name: "invalid",
|
|
1768
|
+
fn: withCtx(() => [
|
|
1769
|
+
renderSlot(_ctx.$slots, "invalid", normalizeProps(guardReactiveProps(unref(hintSlotScope))))
|
|
1770
|
+
]),
|
|
1771
|
+
key: "3"
|
|
1772
|
+
} : void 0
|
|
1773
|
+
]), 1032, ["id"])
|
|
1774
|
+
],
|
|
1775
|
+
2
|
|
1776
|
+
/* CLASS */
|
|
1777
|
+
);
|
|
1754
1778
|
};
|
|
1755
1779
|
}
|
|
1756
1780
|
});
|