@vuetify/nightly 4.0.0-dev-20230515.0 → 4.0.0-dev-20230516.0
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/CHANGELOG.md +5 -4
- package/dist/json/attributes.json +14 -14
- package/dist/json/importMap.json +4 -4
- package/dist/json/web-types.json +21 -17
- package/dist/vuetify-labs.css +7 -3
- package/dist/vuetify-labs.d.ts +6549 -1557
- package/dist/vuetify-labs.esm.js +42 -21
- package/dist/vuetify-labs.esm.js.map +1 -1
- package/dist/vuetify-labs.js +42 -21
- package/dist/vuetify-labs.min.css +2 -2
- package/dist/vuetify.css +204 -200
- package/dist/vuetify.d.ts +4883 -968
- package/dist/vuetify.esm.js +42 -21
- package/dist/vuetify.esm.js.map +1 -1
- package/dist/vuetify.js +42 -21
- package/dist/vuetify.js.map +1 -1
- package/dist/vuetify.min.css +2 -2
- package/dist/vuetify.min.js +182 -180
- package/dist/vuetify.min.js.map +1 -1
- package/lib/components/VAlert/index.d.mts +58 -0
- package/lib/components/VApp/index.d.mts +15 -0
- package/lib/components/VAppBar/index.d.mts +81 -0
- package/lib/components/VAutocomplete/VAutocomplete.mjs.map +1 -1
- package/lib/components/VAutocomplete/index.d.mts +68 -10
- package/lib/components/VAvatar/index.d.mts +15 -0
- package/lib/components/VBadge/index.d.mts +19 -0
- package/lib/components/VBanner/index.d.mts +57 -0
- package/lib/components/VBottomNavigation/index.d.mts +15 -0
- package/lib/components/VBreadcrumbs/index.d.mts +37 -3
- package/lib/components/VBtn/index.d.mts +27 -0
- package/lib/components/VBtnGroup/index.d.mts +15 -0
- package/lib/components/VBtnToggle/index.d.mts +15 -0
- package/lib/components/VCard/index.d.mts +142 -0
- package/lib/components/VCarousel/index.d.mts +158 -0
- package/lib/components/VCheckbox/VCheckboxBtn.mjs +3 -3
- package/lib/components/VCheckbox/VCheckboxBtn.mjs.map +1 -1
- package/lib/components/VCheckbox/index.d.mts +92 -6
- package/lib/components/VChip/VChip.css +4 -2
- package/lib/components/VChip/VChip.sass +3 -2
- package/lib/components/VChip/index.d.mts +63 -0
- package/lib/components/VChipGroup/index.d.mts +39 -0
- package/lib/components/VCode/index.d.mts +15 -0
- package/lib/components/VCombobox/VCombobox.mjs.map +1 -1
- package/lib/components/VCombobox/index.d.mts +68 -10
- package/lib/components/VCounter/index.d.mts +15 -0
- package/lib/components/VDefaultsProvider/index.d.mts +15 -0
- package/lib/components/VDialog/index.d.mts +129 -3
- package/lib/components/VDivider/index.d.mts +15 -0
- package/lib/components/VExpansionPanel/index.d.mts +72 -0
- package/lib/components/VField/index.d.mts +22 -3
- package/lib/components/VFileInput/index.d.mts +180 -24
- package/lib/components/VFooter/index.d.mts +15 -0
- package/lib/components/VForm/index.d.mts +201 -8
- package/lib/components/VGrid/index.d.mts +60 -0
- package/lib/components/VHover/index.d.mts +27 -0
- package/lib/components/VIcon/index.d.mts +30 -0
- package/lib/components/VImg/index.d.mts +27 -0
- package/lib/components/VInput/VInput.mjs +1 -1
- package/lib/components/VInput/VInput.mjs.map +1 -1
- package/lib/components/VInput/index.d.mts +40 -9
- package/lib/components/VItemGroup/index.d.mts +82 -0
- package/lib/components/VKbd/index.d.mts +15 -0
- package/lib/components/VLabel/index.d.mts +15 -0
- package/lib/components/VLayout/index.d.mts +30 -0
- package/lib/components/VLazy/index.d.mts +15 -0
- package/lib/components/VList/index.d.mts +159 -3
- package/lib/components/VLocaleProvider/index.d.mts +15 -0
- package/lib/components/VMain/index.d.mts +15 -0
- package/lib/components/VMenu/index.d.mts +129 -3
- package/lib/components/VMessages/index.d.mts +15 -0
- package/lib/components/VNavigationDrawer/VNavigationDrawer.css +2 -0
- package/lib/components/VNavigationDrawer/VNavigationDrawer.sass +2 -0
- package/lib/components/VNavigationDrawer/index.d.mts +27 -0
- package/lib/components/VOverlay/index.d.mts +39 -0
- package/lib/components/VPagination/index.d.mts +31 -0
- package/lib/components/VParallax/index.d.mts +27 -0
- package/lib/components/VProgressCircular/index.d.mts +23 -0
- package/lib/components/VProgressLinear/index.d.mts +27 -0
- package/lib/components/VRadio/index.d.mts +35 -0
- package/lib/components/VRadioGroup/index.d.mts +57 -6
- package/lib/components/VRangeSlider/index.d.mts +49 -6
- package/lib/components/VRating/index.d.mts +19 -0
- package/lib/components/VResponsive/index.d.mts +19 -0
- package/lib/components/VSelect/VSelect.mjs.map +1 -1
- package/lib/components/VSelect/index.d.mts +68 -10
- package/lib/components/VSelectionControl/index.d.mts +7 -3
- package/lib/components/VSelectionControlGroup/index.d.mts +15 -0
- package/lib/components/VSheet/index.d.mts +15 -0
- package/lib/components/VSlideGroup/index.d.mts +58 -0
- package/lib/components/VSlider/index.d.mts +49 -6
- package/lib/components/VSnackbar/index.d.mts +125 -3
- package/lib/components/VSwitch/index.d.mts +61 -6
- package/lib/components/VSystemBar/index.d.mts +15 -0
- package/lib/components/VTable/index.d.mts +27 -0
- package/lib/components/VTabs/index.d.mts +30 -0
- package/lib/components/VTextField/index.d.mts +167 -27
- package/lib/components/VTextarea/index.d.mts +156 -24
- package/lib/components/VThemeProvider/index.d.mts +15 -0
- package/lib/components/VTimeline/index.d.mts +38 -0
- package/lib/components/VToolbar/index.d.mts +69 -0
- package/lib/components/VTooltip/index.d.mts +129 -3
- package/lib/components/VValidation/index.d.mts +96 -25
- package/lib/components/VVirtualScroll/index.d.mts +7 -3
- package/lib/components/VWindow/index.d.mts +74 -0
- package/lib/components/index.d.mts +4673 -758
- package/lib/components/transitions/index.d.mts +240 -0
- package/lib/composables/form.mjs +2 -3
- package/lib/composables/form.mjs.map +1 -1
- package/lib/composables/validation.mjs +34 -12
- package/lib/composables/validation.mjs.map +1 -1
- package/lib/entry-bundler.mjs +1 -1
- package/lib/framework.mjs +1 -1
- package/lib/index.d.mts +1 -1
- package/lib/labs/VDataTable/index.d.mts +1056 -25
- package/lib/labs/VInfiniteScroll/index.d.mts +31 -0
- package/lib/labs/VSkeletonLoader/index.d.mts +15 -0
- package/lib/labs/components.d.mts +1099 -22
- package/lib/styles/settings/_variables.scss +3 -3
- package/lib/util/defineComponent.mjs.map +1 -1
- package/package.json +1 -1
@@ -27,6 +27,9 @@ declare const VComponentIcon: {
|
|
27
27
|
'v-slots'?: {
|
28
28
|
default?: false | (() => vue.VNodeChild) | undefined;
|
29
29
|
} | undefined;
|
30
|
+
$slots?: {
|
31
|
+
default?: (() => vue.VNodeChild) | undefined;
|
32
|
+
} | undefined;
|
30
33
|
onVnodeBeforeMount?: ((vnode: vue.VNode<vue.RendererNode, vue.RendererElement, {
|
31
34
|
[key: string]: any;
|
32
35
|
}>) => void) | ((vnode: vue.VNode<vue.RendererNode, vue.RendererElement, {
|
@@ -94,6 +97,10 @@ declare const VComponentIcon: {
|
|
94
97
|
} | undefined;
|
95
98
|
} & {
|
96
99
|
"v-slot:default"?: false | (() => vue.VNodeChild) | undefined;
|
100
|
+
} & {
|
101
|
+
$slots?: {
|
102
|
+
default?: (() => vue.VNodeChild) | undefined;
|
103
|
+
} | undefined;
|
97
104
|
}, () => JSX.Element, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, Record<string, any>, string, {}, {}, string, vue.SlotsType<Partial<{
|
98
105
|
default: () => vue.VNode<vue.RendererNode, vue.RendererElement, {
|
99
106
|
[key: string]: any;
|
@@ -131,6 +138,10 @@ declare const VComponentIcon: {
|
|
131
138
|
} | undefined;
|
132
139
|
} & {
|
133
140
|
"v-slot:default"?: false | (() => vue.VNodeChild) | undefined;
|
141
|
+
} & {
|
142
|
+
$slots?: {
|
143
|
+
default?: (() => vue.VNodeChild) | undefined;
|
144
|
+
} | undefined;
|
134
145
|
} & vue.ShallowUnwrapRef<() => JSX.Element> & {} & vue.ComponentCustomProperties & {};
|
135
146
|
__isFragment?: undefined;
|
136
147
|
__isTeleport?: undefined;
|
@@ -148,6 +159,10 @@ declare const VComponentIcon: {
|
|
148
159
|
} | undefined;
|
149
160
|
} & {
|
150
161
|
"v-slot:default"?: false | (() => vue.VNodeChild) | undefined;
|
162
|
+
} & {
|
163
|
+
$slots?: {
|
164
|
+
default?: (() => vue.VNodeChild) | undefined;
|
165
|
+
} | undefined;
|
151
166
|
}, () => JSX.Element, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, Record<string, any>, string, {}, {}, string, vue.SlotsType<Partial<{
|
152
167
|
default: () => vue.VNode<vue.RendererNode, vue.RendererElement, {
|
153
168
|
[key: string]: any;
|
@@ -589,6 +604,9 @@ declare const VIcon: {
|
|
589
604
|
'v-slots'?: {
|
590
605
|
default?: false | (() => vue.VNodeChild) | undefined;
|
591
606
|
} | undefined;
|
607
|
+
$slots?: {
|
608
|
+
default?: (() => vue.VNodeChild) | undefined;
|
609
|
+
} | undefined;
|
592
610
|
onVnodeBeforeMount?: ((vnode: vue.VNode<vue.RendererNode, vue.RendererElement, {
|
593
611
|
[key: string]: any;
|
594
612
|
}>) => void) | ((vnode: vue.VNode<vue.RendererNode, vue.RendererElement, {
|
@@ -663,6 +681,10 @@ declare const VIcon: {
|
|
663
681
|
} | undefined;
|
664
682
|
} & {
|
665
683
|
"v-slot:default"?: false | (() => vue.VNodeChild) | undefined;
|
684
|
+
} & {
|
685
|
+
$slots?: {
|
686
|
+
default?: (() => vue.VNodeChild) | undefined;
|
687
|
+
} | undefined;
|
666
688
|
}, {}, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, Record<string, any>, string, {
|
667
689
|
end: boolean;
|
668
690
|
start: boolean;
|
@@ -713,6 +735,10 @@ declare const VIcon: {
|
|
713
735
|
} | undefined;
|
714
736
|
} & {
|
715
737
|
"v-slot:default"?: false | (() => vue.VNodeChild) | undefined;
|
738
|
+
} & {
|
739
|
+
$slots?: {
|
740
|
+
default?: (() => vue.VNodeChild) | undefined;
|
741
|
+
} | undefined;
|
716
742
|
} & vue.ShallowUnwrapRef<{}> & {} & vue.ComponentCustomProperties & {};
|
717
743
|
__isFragment?: undefined;
|
718
744
|
__isTeleport?: undefined;
|
@@ -737,6 +763,10 @@ declare const VIcon: {
|
|
737
763
|
} | undefined;
|
738
764
|
} & {
|
739
765
|
"v-slot:default"?: false | (() => vue.VNodeChild) | undefined;
|
766
|
+
} & {
|
767
|
+
$slots?: {
|
768
|
+
default?: (() => vue.VNodeChild) | undefined;
|
769
|
+
} | undefined;
|
740
770
|
}, {}, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, Record<string, any>, string, {
|
741
771
|
end: boolean;
|
742
772
|
start: boolean;
|
@@ -62,6 +62,12 @@ declare const VImg: {
|
|
62
62
|
"v-slot:error"?: false | (() => vue.VNodeChild) | undefined;
|
63
63
|
"v-slot:sources"?: false | (() => vue.VNodeChild) | undefined;
|
64
64
|
"v-slot:placeholder"?: false | (() => vue.VNodeChild) | undefined;
|
65
|
+
$slots?: {
|
66
|
+
default?: (() => vue.VNodeChild) | undefined;
|
67
|
+
placeholder?: (() => vue.VNodeChild) | undefined;
|
68
|
+
error?: (() => vue.VNodeChild) | undefined;
|
69
|
+
sources?: (() => vue.VNodeChild) | undefined;
|
70
|
+
} | undefined;
|
65
71
|
onVnodeBeforeMount?: ((vnode: vue.VNode<vue.RendererNode, vue.RendererElement, {
|
66
72
|
[key: string]: any;
|
67
73
|
}>) => void) | ((vnode: vue.VNode<vue.RendererNode, vue.RendererElement, {
|
@@ -168,6 +174,13 @@ declare const VImg: {
|
|
168
174
|
"v-slot:placeholder"?: false | (() => vue.VNodeChild) | undefined;
|
169
175
|
"v-slot:error"?: false | (() => vue.VNodeChild) | undefined;
|
170
176
|
"v-slot:sources"?: false | (() => vue.VNodeChild) | undefined;
|
177
|
+
} & {
|
178
|
+
$slots?: {
|
179
|
+
default?: (() => vue.VNodeChild) | undefined;
|
180
|
+
placeholder?: (() => vue.VNodeChild) | undefined;
|
181
|
+
error?: (() => vue.VNodeChild) | undefined;
|
182
|
+
sources?: (() => vue.VNodeChild) | undefined;
|
183
|
+
} | undefined;
|
171
184
|
} & {
|
172
185
|
onError?: ((value: string | undefined) => any) | undefined;
|
173
186
|
onLoad?: ((value: string | undefined) => any) | undefined;
|
@@ -268,6 +281,13 @@ declare const VImg: {
|
|
268
281
|
"v-slot:placeholder"?: false | (() => vue.VNodeChild) | undefined;
|
269
282
|
"v-slot:error"?: false | (() => vue.VNodeChild) | undefined;
|
270
283
|
"v-slot:sources"?: false | (() => vue.VNodeChild) | undefined;
|
284
|
+
} & {
|
285
|
+
$slots?: {
|
286
|
+
default?: (() => vue.VNodeChild) | undefined;
|
287
|
+
placeholder?: (() => vue.VNodeChild) | undefined;
|
288
|
+
error?: (() => vue.VNodeChild) | undefined;
|
289
|
+
sources?: (() => vue.VNodeChild) | undefined;
|
290
|
+
} | undefined;
|
271
291
|
} & {
|
272
292
|
onError?: ((value: string | undefined) => any) | undefined;
|
273
293
|
onLoad?: ((value: string | undefined) => any) | undefined;
|
@@ -325,6 +345,13 @@ declare const VImg: {
|
|
325
345
|
"v-slot:placeholder"?: false | (() => vue.VNodeChild) | undefined;
|
326
346
|
"v-slot:error"?: false | (() => vue.VNodeChild) | undefined;
|
327
347
|
"v-slot:sources"?: false | (() => vue.VNodeChild) | undefined;
|
348
|
+
} & {
|
349
|
+
$slots?: {
|
350
|
+
default?: (() => vue.VNodeChild) | undefined;
|
351
|
+
placeholder?: (() => vue.VNodeChild) | undefined;
|
352
|
+
error?: (() => vue.VNodeChild) | undefined;
|
353
|
+
sources?: (() => vue.VNodeChild) | undefined;
|
354
|
+
} | undefined;
|
328
355
|
} & {
|
329
356
|
onError?: ((value: string | undefined) => any) | undefined;
|
330
357
|
onLoad?: ((value: string | undefined) => any) | undefined;
|
@@ -83,7 +83,7 @@ export const VInput = genericComponent()({
|
|
83
83
|
validate
|
84
84
|
}));
|
85
85
|
const messages = computed(() => {
|
86
|
-
if (errorMessages.value.length > 0) {
|
86
|
+
if (!isPristine.value && errorMessages.value.length > 0) {
|
87
87
|
return errorMessages.value;
|
88
88
|
} else if (props.hint && (props.persistentHint || props.focused)) {
|
89
89
|
return props.hint;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"VInput.mjs","names":["VMessages","IconValue","makeComponentProps","makeDensityProps","useDensity","makeValidationProps","useValidation","computed","EventProp","genericComponent","getUid","propsFactory","useRender","useInputIcon","makeVInputProps","id","String","appendIcon","prependIcon","hideDetails","Boolean","hint","persistentHint","messages","type","Array","default","direction","validator","v","includes","VInput","name","props","emits","val","setup","_ref","attrs","slots","emit","densityClasses","InputIcon","uid","messagesId","value","errorMessages","isDirty","isDisabled","isReadonly","isPristine","isValid","isValidating","reset","resetValidation","validate","validationClasses","slotProps","length","focused","hasPrepend","prepend","hasAppend","append","hasMessages","hasDetails","details","_createVNode","class","style","message"],"sources":["../../../src/components/VInput/VInput.tsx"],"sourcesContent":["// Styles\nimport './VInput.sass'\n\n// Components\nimport { VMessages, type VMessageSlot } from '@/components/VMessages/VMessages'\n\n// Composables\nimport { IconValue } from '@/composables/icons'\nimport { makeComponentProps } from '@/composables/component'\nimport { makeDensityProps, useDensity } from '@/composables/density'\nimport { makeValidationProps, useValidation } from '@/composables/validation'\n\n// Utilities\nimport { computed } from 'vue'\nimport { EventProp, genericComponent, getUid, propsFactory, useRender } from '@/util'\n\n// Types\nimport type { ComputedRef, PropType, Ref } from 'vue'\nimport { useInputIcon } from '@/components/VInput/InputIcon'\n\nexport interface VInputSlot {\n id: ComputedRef<string>\n messagesId: ComputedRef<string>\n isDirty: ComputedRef<boolean>\n isDisabled: ComputedRef<boolean>\n isReadonly: ComputedRef<boolean>\n isPristine: Ref<boolean>\n isValid: ComputedRef<boolean | null>\n isValidating: Ref<boolean>\n reset: () => void\n resetValidation: () => void\n validate: () => void\n}\n\nexport const makeVInputProps = propsFactory({\n id: String,\n appendIcon: IconValue,\n prependIcon: IconValue,\n hideDetails: [Boolean, String] as PropType<boolean | 'auto'>,\n hint: String,\n persistentHint: Boolean,\n messages: {\n type: [Array, String] as PropType<string | string[]>,\n default: () => ([]),\n },\n direction: {\n type: String as PropType<'horizontal' | 'vertical'>,\n default: 'horizontal',\n validator: (v: any) => ['horizontal', 'vertical'].includes(v),\n },\n\n 'onClick:prepend': EventProp<[MouseEvent]>(),\n 'onClick:append': EventProp<[MouseEvent]>(),\n\n ...makeComponentProps(),\n ...makeDensityProps(),\n ...makeValidationProps(),\n}, 'v-input')\n\nexport type VInputSlots = {\n default: [VInputSlot]\n prepend: [VInputSlot]\n append: [VInputSlot]\n details: [VInputSlot]\n message: [VMessageSlot]\n}\n\nexport const VInput = genericComponent<VInputSlots>()({\n name: 'VInput',\n\n props: {\n ...makeVInputProps(),\n },\n\n emits: {\n 'update:modelValue': (val: any) => true,\n },\n\n setup (props, { attrs, slots, emit }) {\n const { densityClasses } = useDensity(props)\n const { InputIcon } = useInputIcon(props)\n\n const uid = getUid()\n const id = computed(() => props.id || `input-${uid}`)\n const messagesId = computed(() => `${id.value}-messages`)\n\n const {\n errorMessages,\n isDirty,\n isDisabled,\n isReadonly,\n isPristine,\n isValid,\n isValidating,\n reset,\n resetValidation,\n validate,\n validationClasses,\n } = useValidation(props, 'v-input', id)\n\n const slotProps = computed<VInputSlot>(() => ({\n id,\n messagesId,\n isDirty,\n isDisabled,\n isReadonly,\n isPristine,\n isValid,\n isValidating,\n reset,\n resetValidation,\n validate,\n }))\n\n const messages = computed(() => {\n if (errorMessages.value.length > 0) {\n return errorMessages.value\n } else if (props.hint && (props.persistentHint || props.focused)) {\n return props.hint\n } else {\n return props.messages\n }\n })\n\n useRender(() => {\n const hasPrepend = !!(slots.prepend || props.prependIcon)\n const hasAppend = !!(slots.append || props.appendIcon)\n const hasMessages = messages.value.length > 0\n const hasDetails = !props.hideDetails || (\n props.hideDetails === 'auto' &&\n (hasMessages || !!slots.details)\n )\n\n return (\n <div\n class={[\n 'v-input',\n `v-input--${props.direction}`,\n densityClasses.value,\n validationClasses.value,\n props.class,\n ]}\n style={ props.style }\n >\n { hasPrepend && (\n <div key=\"prepend\" class=\"v-input__prepend\">\n { slots.prepend?.(slotProps.value) }\n\n { props.prependIcon && (\n <InputIcon\n key=\"prepend-icon\"\n name=\"prepend\"\n />\n )}\n </div>\n )}\n\n { slots.default && (\n <div class=\"v-input__control\">\n { slots.default?.(slotProps.value) }\n </div>\n )}\n\n { hasAppend && (\n <div key=\"append\" class=\"v-input__append\">\n { props.appendIcon && (\n <InputIcon\n key=\"append-icon\"\n name=\"append\"\n />\n )}\n\n { slots.append?.(slotProps.value) }\n </div>\n )}\n\n { hasDetails && (\n <div class=\"v-input__details\">\n <VMessages\n id={ messagesId.value }\n active={ hasMessages }\n messages={ messages.value }\n v-slots={{ message: slots.message }}\n />\n\n { slots.details?.(slotProps.value) }\n </div>\n )}\n </div>\n )\n })\n\n return {\n reset,\n resetValidation,\n validate,\n }\n },\n})\n\nexport type VInput = InstanceType<typeof VInput>\n"],"mappings":";AAAA;AACA;;AAEA;AAAA,SACSA,SAAS,sCAElB;AAAA,SACSC,SAAS;AAAA,SACTC,kBAAkB;AAAA,SAClBC,gBAAgB,EAAEC,UAAU;AAAA,SAC5BC,mBAAmB,EAAEC,aAAa,4CAE3C;AACA,SAASC,QAAQ,QAAQ,KAAK;AAAA,SACrBC,SAAS,EAAEC,gBAAgB,EAAEC,MAAM,EAAEC,YAAY,EAAEC,SAAS,gCAErE;AAAA,SAESC,YAAY;AAgBrB,OAAO,MAAMC,eAAe,GAAGH,YAAY,CAAC;EAC1CI,EAAE,EAAEC,MAAM;EACVC,UAAU,EAAEhB,SAAS;EACrBiB,WAAW,EAAEjB,SAAS;EACtBkB,WAAW,EAAE,CAACC,OAAO,EAAEJ,MAAM,CAA+B;EAC5DK,IAAI,EAAEL,MAAM;EACZM,cAAc,EAAEF,OAAO;EACvBG,QAAQ,EAAE;IACRC,IAAI,EAAE,CAACC,KAAK,EAAET,MAAM,CAAgC;IACpDU,OAAO,EAAEA,CAAA,KAAO;EAClB,CAAC;EACDC,SAAS,EAAE;IACTH,IAAI,EAAER,MAA6C;IACnDU,OAAO,EAAE,YAAY;IACrBE,SAAS,EAAGC,CA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,OAAO;MACPC,UAAU;MACVC,UAAU;MACVC,UAAU;MACVC,OAAO;MACPC,YAAY;MACZC,KAAK;MACLC,eAAe;MACfC;IACF,CAAC,CAAC,CAAC;IAEH,MAAMhC,QAAQ,GAAGhB,QAAQ,CAAC,MAAM;MAC9B,
|
1
|
+
{"version":3,"file":"VInput.mjs","names":["VMessages","IconValue","makeComponentProps","makeDensityProps","useDensity","makeValidationProps","useValidation","computed","EventProp","genericComponent","getUid","propsFactory","useRender","useInputIcon","makeVInputProps","id","String","appendIcon","prependIcon","hideDetails","Boolean","hint","persistentHint","messages","type","Array","default","direction","validator","v","includes","VInput","name","props","emits","val","setup","_ref","attrs","slots","emit","densityClasses","InputIcon","uid","messagesId","value","errorMessages","isDirty","isDisabled","isReadonly","isPristine","isValid","isValidating","reset","resetValidation","validate","validationClasses","slotProps","length","focused","hasPrepend","prepend","hasAppend","append","hasMessages","hasDetails","details","_createVNode","class","style","message"],"sources":["../../../src/components/VInput/VInput.tsx"],"sourcesContent":["// Styles\nimport './VInput.sass'\n\n// Components\nimport { VMessages, type VMessageSlot } from '@/components/VMessages/VMessages'\n\n// Composables\nimport { IconValue } from '@/composables/icons'\nimport { makeComponentProps } from '@/composables/component'\nimport { makeDensityProps, useDensity } from '@/composables/density'\nimport { makeValidationProps, useValidation } from '@/composables/validation'\n\n// Utilities\nimport { computed } from 'vue'\nimport { EventProp, genericComponent, getUid, propsFactory, useRender } from '@/util'\n\n// Types\nimport type { ComputedRef, PropType, Ref } from 'vue'\nimport { useInputIcon } from '@/components/VInput/InputIcon'\n\nexport interface VInputSlot {\n id: ComputedRef<string>\n messagesId: ComputedRef<string>\n isDirty: ComputedRef<boolean>\n isDisabled: ComputedRef<boolean>\n isReadonly: ComputedRef<boolean>\n isPristine: Ref<boolean>\n isValid: ComputedRef<boolean | null>\n isValidating: Ref<boolean>\n reset: () => void\n resetValidation: () => void\n validate: () => void\n}\n\nexport const makeVInputProps = propsFactory({\n id: String,\n appendIcon: IconValue,\n prependIcon: IconValue,\n hideDetails: [Boolean, String] as PropType<boolean | 'auto'>,\n hint: String,\n persistentHint: Boolean,\n messages: {\n type: [Array, String] as PropType<string | string[]>,\n default: () => ([]),\n },\n direction: {\n type: String as PropType<'horizontal' | 'vertical'>,\n default: 'horizontal',\n validator: (v: any) => ['horizontal', 'vertical'].includes(v),\n },\n\n 'onClick:prepend': EventProp<[MouseEvent]>(),\n 'onClick:append': EventProp<[MouseEvent]>(),\n\n ...makeComponentProps(),\n ...makeDensityProps(),\n ...makeValidationProps(),\n}, 'v-input')\n\nexport type VInputSlots = {\n default: [VInputSlot]\n prepend: [VInputSlot]\n append: [VInputSlot]\n details: [VInputSlot]\n message: [VMessageSlot]\n}\n\nexport const VInput = genericComponent<VInputSlots>()({\n name: 'VInput',\n\n props: {\n ...makeVInputProps(),\n },\n\n emits: {\n 'update:modelValue': (val: any) => true,\n },\n\n setup (props, { attrs, slots, emit }) {\n const { densityClasses } = useDensity(props)\n const { InputIcon } = useInputIcon(props)\n\n const uid = getUid()\n const id = computed(() => props.id || `input-${uid}`)\n const messagesId = computed(() => `${id.value}-messages`)\n\n const {\n errorMessages,\n isDirty,\n isDisabled,\n isReadonly,\n isPristine,\n isValid,\n isValidating,\n reset,\n resetValidation,\n validate,\n validationClasses,\n } = useValidation(props, 'v-input', id)\n\n const slotProps = computed<VInputSlot>(() => ({\n id,\n messagesId,\n isDirty,\n isDisabled,\n isReadonly,\n isPristine,\n isValid,\n isValidating,\n reset,\n resetValidation,\n validate,\n }))\n\n const messages = computed(() => {\n if (!isPristine.value && errorMessages.value.length > 0) {\n return errorMessages.value\n } else if (props.hint && (props.persistentHint || props.focused)) {\n return props.hint\n } else {\n return props.messages\n }\n })\n\n useRender(() => {\n const hasPrepend = !!(slots.prepend || props.prependIcon)\n const hasAppend = !!(slots.append || props.appendIcon)\n const hasMessages = messages.value.length > 0\n const hasDetails = !props.hideDetails || (\n props.hideDetails === 'auto' &&\n (hasMessages || !!slots.details)\n )\n\n return (\n <div\n class={[\n 'v-input',\n `v-input--${props.direction}`,\n densityClasses.value,\n validationClasses.value,\n props.class,\n ]}\n style={ props.style }\n >\n { hasPrepend && (\n <div key=\"prepend\" class=\"v-input__prepend\">\n { slots.prepend?.(slotProps.value) }\n\n { props.prependIcon && (\n <InputIcon\n key=\"prepend-icon\"\n name=\"prepend\"\n />\n )}\n </div>\n )}\n\n { slots.default && (\n <div class=\"v-input__control\">\n { slots.default?.(slotProps.value) }\n </div>\n )}\n\n { hasAppend && (\n <div key=\"append\" class=\"v-input__append\">\n { props.appendIcon && (\n <InputIcon\n key=\"append-icon\"\n name=\"append\"\n />\n )}\n\n { slots.append?.(slotProps.value) }\n </div>\n )}\n\n { hasDetails && (\n <div class=\"v-input__details\">\n <VMessages\n id={ messagesId.value }\n active={ hasMessages }\n messages={ messages.value }\n v-slots={{ message: slots.message }}\n />\n\n { slots.details?.(slotProps.value) }\n </div>\n )}\n </div>\n )\n })\n\n return {\n reset,\n resetValidation,\n validate,\n }\n },\n})\n\nexport type VInput = InstanceType<typeof VInput>\n"],"mappings":";AAAA;AACA;;AAEA;AAAA,SACSA,SAAS,sCAElB;AAAA,SACSC,SAAS;AAAA,SACTC,kBAAkB;AAAA,SAClBC,gBAAgB,EAAEC,UAAU;AAAA,SAC5BC,mBAAmB,EAAEC,aAAa,4CAE3C;AACA,SAASC,QAAQ,QAAQ,KAAK;AAAA,SACrBC,SAAS,EAAEC,gBAAgB,EAAEC,MAAM,EAAEC,YAAY,EAAEC,SAAS,gCAErE;AAAA,SAESC,YAAY;AAgBrB,OAAO,MAAMC,eAAe,GAAGH,YAAY,CAAC;EAC1CI,EAAE,EAAEC,MAAM;EACVC,UAAU,EAAEhB,SAAS;EACrBiB,WAAW,EAAEjB,SAAS;EACtBkB,WAAW,EAAE,CAACC,OAAO,EAAEJ,MAAM,CAA+B;EAC5DK,IAAI,EAAEL,MAAM;EACZM,cAAc,EAAEF,OAAO;EACvBG,QAAQ,EAAE;IACRC,IAAI,EAAE,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AiB,CAACX,KAAK,EACvBZ,KAAK,CAACmC,KAAK,CACZ;QAAA,SACOnC,KAAK,CAACoC;MAAK,IAEjBT,UAAU,IAAAO,YAAA;QAAA,OACD,SAAS;QAAA,SAAO;MAAkB,IACvC5B,KAAK,CAACsB,OAAO,GAAGJ,SAAS,CAACZ,KAAK,CAAC,EAEhCZ,KAAK,CAACf,WAAW,IAAAiD,YAAA,CAAAzB,SAAA;QAAA,OAEX,cAAc;QAAA,QACb;MAAS,QAEjB,EAEJ,EAECH,KAAK,CAACb,OAAO,IAAAyC,YAAA;QAAA,SACF;MAAkB,IACzB5B,KAAK,CAACb,OAAO,GAAG+B,SAAS,CAACZ,KAAK,CAAC,EAErC,EAECiB,SAAS,IAAAK,YAAA;QAAA,OACA,QAAQ;QAAA,SAAO;MAAiB,IACrClC,KAAK,CAAChB,UAAU,IAAAkD,YAAA,CAAAzB,SAAA;QAAA,OAEV,aAAa;QAAA,QACZ;MAAQ,QAEhB,EAECH,KAAK,CAACwB,MAAM,GAAGN,SAAS,CAACZ,KAAK,CAAC,EAEpC,EAECoB,UAAU,IAAAE,YAAA;QAAA,SACC;MAAkB,IAAAA,YAAA,CAAAnE,SAAA;QAAA,MAEpB4C,UAAU,CAACC,KAAK;QAAA,UACZmB,WAAW;QAAA,YACTzC,QAAQ,CAACsB;MAAK,GAChB;QAAEyB,OAAO,EAAE/B,KAAK,CAAC+B;MAAQ,CAAC,GAGnC/B,KAAK,CAAC2B,OAAO,GAAGT,SAAS,CAACZ,KAAK,CAAC,EAErC;IAGP,CAAC,CAAC;IAEF,OAAO;MACLQ,KAAK;MACLC,eAAe;MACfC;IACF,CAAC;EACH;AACF,CAAC,CAAC"}
|
@@ -73,6 +73,13 @@ declare const VInput: {
|
|
73
73
|
details?: false | ((args_0: VInputSlot) => vue.VNodeChild) | undefined;
|
74
74
|
message?: false | ((args_0: VMessageSlot) => vue.VNodeChild) | undefined;
|
75
75
|
} | undefined;
|
76
|
+
$slots?: {
|
77
|
+
default?: ((args_0: VInputSlot) => vue.VNodeChild) | undefined;
|
78
|
+
prepend?: ((args_0: VInputSlot) => vue.VNodeChild) | undefined;
|
79
|
+
append?: ((args_0: VInputSlot) => vue.VNodeChild) | undefined;
|
80
|
+
details?: ((args_0: VInputSlot) => vue.VNodeChild) | undefined;
|
81
|
+
message?: ((args_0: VMessageSlot) => vue.VNodeChild) | undefined;
|
82
|
+
} | undefined;
|
76
83
|
onVnodeBeforeMount?: ((vnode: vue.VNode<vue.RendererNode, vue.RendererElement, {
|
77
84
|
[key: string]: any;
|
78
85
|
}>) => void) | ((vnode: vue.VNode<vue.RendererNode, vue.RendererElement, {
|
@@ -121,7 +128,7 @@ declare const VInput: {
|
|
121
128
|
'onClick:prepend'?: EventProp<[MouseEvent], (args_0: MouseEvent) => any> | undefined;
|
122
129
|
'onUpdate:focused'?: EventProp<[boolean], (args_0: boolean) => any> | undefined;
|
123
130
|
"v-slot:message"?: false | ((args_0: VMessageSlot) => vue.VNodeChild) | undefined;
|
124
|
-
validateOn?: "input" | "blur" | "submit" | undefined;
|
131
|
+
validateOn?: "lazy" | ("input" | "blur" | "submit") | "input lazy" | "blur lazy" | "submit lazy" | "lazy input" | "lazy blur" | "lazy submit" | undefined;
|
125
132
|
validationValue?: any;
|
126
133
|
hint?: string | undefined;
|
127
134
|
hideDetails?: boolean | "auto" | undefined;
|
@@ -178,7 +185,7 @@ declare const VInput: {
|
|
178
185
|
'onClick:append'?: EventProp<[MouseEvent], (args_0: MouseEvent) => any> | undefined;
|
179
186
|
'onClick:prepend'?: EventProp<[MouseEvent], (args_0: MouseEvent) => any> | undefined;
|
180
187
|
'onUpdate:focused'?: EventProp<[boolean], (args_0: boolean) => any> | undefined;
|
181
|
-
validateOn?: "input" | "blur" | "submit" | undefined;
|
188
|
+
validateOn?: "lazy" | ("input" | "blur" | "submit") | "input lazy" | "blur lazy" | "submit lazy" | "lazy input" | "lazy blur" | "lazy submit" | undefined;
|
182
189
|
validationValue?: any;
|
183
190
|
hint?: string | undefined;
|
184
191
|
hideDetails?: boolean | "auto" | undefined;
|
@@ -203,12 +210,20 @@ declare const VInput: {
|
|
203
210
|
"v-slot:append"?: false | ((args_0: VInputSlot) => vue.VNodeChild) | undefined;
|
204
211
|
"v-slot:details"?: false | ((args_0: VInputSlot) => vue.VNodeChild) | undefined;
|
205
212
|
"v-slot:message"?: false | ((args_0: VMessageSlot) => vue.VNodeChild) | undefined;
|
213
|
+
} & {
|
214
|
+
$slots?: {
|
215
|
+
default?: ((args_0: VInputSlot) => vue.VNodeChild) | undefined;
|
216
|
+
prepend?: ((args_0: VInputSlot) => vue.VNodeChild) | undefined;
|
217
|
+
append?: ((args_0: VInputSlot) => vue.VNodeChild) | undefined;
|
218
|
+
details?: ((args_0: VInputSlot) => vue.VNodeChild) | undefined;
|
219
|
+
message?: ((args_0: VMessageSlot) => vue.VNodeChild) | undefined;
|
220
|
+
} | undefined;
|
206
221
|
} & {
|
207
222
|
"onUpdate:modelValue"?: ((val: any) => any) | undefined;
|
208
223
|
}, {
|
209
224
|
reset: () => void;
|
210
225
|
resetValidation: () => void;
|
211
|
-
validate: () => Promise<string[]>;
|
226
|
+
validate: (silent?: boolean) => Promise<string[]>;
|
212
227
|
}, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
213
228
|
'update:modelValue': (val: any) => true;
|
214
229
|
}, string, {
|
@@ -284,7 +299,7 @@ declare const VInput: {
|
|
284
299
|
'onClick:append'?: EventProp<[MouseEvent], (args_0: MouseEvent) => any> | undefined;
|
285
300
|
'onClick:prepend'?: EventProp<[MouseEvent], (args_0: MouseEvent) => any> | undefined;
|
286
301
|
'onUpdate:focused'?: EventProp<[boolean], (args_0: boolean) => any> | undefined;
|
287
|
-
validateOn?: "input" | "blur" | "submit" | undefined;
|
302
|
+
validateOn?: "lazy" | ("input" | "blur" | "submit") | "input lazy" | "blur lazy" | "submit lazy" | "lazy input" | "lazy blur" | "lazy submit" | undefined;
|
288
303
|
validationValue?: any;
|
289
304
|
hint?: string | undefined;
|
290
305
|
hideDetails?: boolean | "auto" | undefined;
|
@@ -309,12 +324,20 @@ declare const VInput: {
|
|
309
324
|
"v-slot:append"?: false | ((args_0: VInputSlot) => vue.VNodeChild) | undefined;
|
310
325
|
"v-slot:details"?: false | ((args_0: VInputSlot) => vue.VNodeChild) | undefined;
|
311
326
|
"v-slot:message"?: false | ((args_0: VMessageSlot) => vue.VNodeChild) | undefined;
|
327
|
+
} & {
|
328
|
+
$slots?: {
|
329
|
+
default?: ((args_0: VInputSlot) => vue.VNodeChild) | undefined;
|
330
|
+
prepend?: ((args_0: VInputSlot) => vue.VNodeChild) | undefined;
|
331
|
+
append?: ((args_0: VInputSlot) => vue.VNodeChild) | undefined;
|
332
|
+
details?: ((args_0: VInputSlot) => vue.VNodeChild) | undefined;
|
333
|
+
message?: ((args_0: VMessageSlot) => vue.VNodeChild) | undefined;
|
334
|
+
} | undefined;
|
312
335
|
} & {
|
313
336
|
"onUpdate:modelValue"?: ((val: any) => any) | undefined;
|
314
337
|
} & vue.ShallowUnwrapRef<{
|
315
338
|
reset: () => void;
|
316
339
|
resetValidation: () => void;
|
317
|
-
validate: () => Promise<string[]>;
|
340
|
+
validate: (silent?: boolean) => Promise<string[]>;
|
318
341
|
}> & {} & vue.ComponentCustomProperties & {};
|
319
342
|
__isFragment?: undefined;
|
320
343
|
__isTeleport?: undefined;
|
@@ -343,7 +366,7 @@ declare const VInput: {
|
|
343
366
|
'onClick:append'?: EventProp<[MouseEvent], (args_0: MouseEvent) => any> | undefined;
|
344
367
|
'onClick:prepend'?: EventProp<[MouseEvent], (args_0: MouseEvent) => any> | undefined;
|
345
368
|
'onUpdate:focused'?: EventProp<[boolean], (args_0: boolean) => any> | undefined;
|
346
|
-
validateOn?: "input" | "blur" | "submit" | undefined;
|
369
|
+
validateOn?: "lazy" | ("input" | "blur" | "submit") | "input lazy" | "blur lazy" | "submit lazy" | "lazy input" | "lazy blur" | "lazy submit" | undefined;
|
347
370
|
validationValue?: any;
|
348
371
|
hint?: string | undefined;
|
349
372
|
hideDetails?: boolean | "auto" | undefined;
|
@@ -368,12 +391,20 @@ declare const VInput: {
|
|
368
391
|
"v-slot:append"?: false | ((args_0: VInputSlot) => vue.VNodeChild) | undefined;
|
369
392
|
"v-slot:details"?: false | ((args_0: VInputSlot) => vue.VNodeChild) | undefined;
|
370
393
|
"v-slot:message"?: false | ((args_0: VMessageSlot) => vue.VNodeChild) | undefined;
|
394
|
+
} & {
|
395
|
+
$slots?: {
|
396
|
+
default?: ((args_0: VInputSlot) => vue.VNodeChild) | undefined;
|
397
|
+
prepend?: ((args_0: VInputSlot) => vue.VNodeChild) | undefined;
|
398
|
+
append?: ((args_0: VInputSlot) => vue.VNodeChild) | undefined;
|
399
|
+
details?: ((args_0: VInputSlot) => vue.VNodeChild) | undefined;
|
400
|
+
message?: ((args_0: VMessageSlot) => vue.VNodeChild) | undefined;
|
401
|
+
} | undefined;
|
371
402
|
} & {
|
372
403
|
"onUpdate:modelValue"?: ((val: any) => any) | undefined;
|
373
404
|
}, {
|
374
405
|
reset: () => void;
|
375
406
|
resetValidation: () => void;
|
376
|
-
validate: () => Promise<string[]>;
|
407
|
+
validate: (silent?: boolean) => Promise<string[]>;
|
377
408
|
}, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
378
409
|
'update:modelValue': (val: any) => true;
|
379
410
|
}, string, {
|
@@ -426,7 +457,7 @@ declare const VInput: {
|
|
426
457
|
default: () => never[];
|
427
458
|
};
|
428
459
|
modelValue: null;
|
429
|
-
validateOn: PropType<"input" | "blur" | "submit" | undefined>;
|
460
|
+
validateOn: PropType<"lazy" | ("input" | "blur" | "submit") | "input lazy" | "blur lazy" | "submit lazy" | "lazy input" | "lazy blur" | "lazy submit" | undefined>;
|
430
461
|
validationValue: null;
|
431
462
|
density: {
|
432
463
|
type: PropType<Density>;
|
@@ -476,7 +507,7 @@ declare const VInput: {
|
|
476
507
|
default: () => never[];
|
477
508
|
};
|
478
509
|
modelValue: null;
|
479
|
-
validateOn: PropType<"input" | "blur" | "submit" | undefined>;
|
510
|
+
validateOn: PropType<"lazy" | ("input" | "blur" | "submit") | "input lazy" | "blur lazy" | "submit lazy" | "lazy input" | "lazy blur" | "lazy submit" | undefined>;
|
480
511
|
validationValue: null;
|
481
512
|
density: {
|
482
513
|
type: PropType<Density>;
|
@@ -55,6 +55,15 @@ declare const VItemGroup: {
|
|
55
55
|
selected: readonly number[];
|
56
56
|
}) => vue.VNodeChild) | undefined;
|
57
57
|
} | undefined;
|
58
|
+
$slots?: {
|
59
|
+
default?: ((args_0: {
|
60
|
+
isSelected: (id: number) => boolean;
|
61
|
+
select: (id: number, value: boolean) => void;
|
62
|
+
next: () => void;
|
63
|
+
prev: () => void;
|
64
|
+
selected: readonly number[];
|
65
|
+
}) => vue.VNodeChild) | undefined;
|
66
|
+
} | undefined;
|
58
67
|
onVnodeBeforeMount?: ((vnode: vue.VNode<vue.RendererNode, vue.RendererElement, {
|
59
68
|
[key: string]: any;
|
60
69
|
}>) => void) | ((vnode: vue.VNode<vue.RendererNode, vue.RendererElement, {
|
@@ -161,6 +170,16 @@ declare const VItemGroup: {
|
|
161
170
|
prev: () => void;
|
162
171
|
selected: readonly number[];
|
163
172
|
}) => vue.VNodeChild) | undefined;
|
173
|
+
} & {
|
174
|
+
$slots?: {
|
175
|
+
default?: ((args_0: {
|
176
|
+
isSelected: (id: number) => boolean;
|
177
|
+
select: (id: number, value: boolean) => void;
|
178
|
+
next: () => void;
|
179
|
+
prev: () => void;
|
180
|
+
selected: readonly number[];
|
181
|
+
}) => vue.VNodeChild) | undefined;
|
182
|
+
} | undefined;
|
164
183
|
} & {
|
165
184
|
"onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
166
185
|
}, () => JSX.Element, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
@@ -247,6 +266,16 @@ declare const VItemGroup: {
|
|
247
266
|
prev: () => void;
|
248
267
|
selected: readonly number[];
|
249
268
|
}) => vue.VNodeChild) | undefined;
|
269
|
+
} & {
|
270
|
+
$slots?: {
|
271
|
+
default?: ((args_0: {
|
272
|
+
isSelected: (id: number) => boolean;
|
273
|
+
select: (id: number, value: boolean) => void;
|
274
|
+
next: () => void;
|
275
|
+
prev: () => void;
|
276
|
+
selected: readonly number[];
|
277
|
+
}) => vue.VNodeChild) | undefined;
|
278
|
+
} | undefined;
|
250
279
|
} & {
|
251
280
|
"onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
252
281
|
} & vue.ShallowUnwrapRef<() => JSX.Element> & {} & vue.ComponentCustomProperties & {};
|
@@ -298,6 +327,16 @@ declare const VItemGroup: {
|
|
298
327
|
prev: () => void;
|
299
328
|
selected: readonly number[];
|
300
329
|
}) => vue.VNodeChild) | undefined;
|
330
|
+
} & {
|
331
|
+
$slots?: {
|
332
|
+
default?: ((args_0: {
|
333
|
+
isSelected: (id: number) => boolean;
|
334
|
+
select: (id: number, value: boolean) => void;
|
335
|
+
next: () => void;
|
336
|
+
prev: () => void;
|
337
|
+
selected: readonly number[];
|
338
|
+
}) => vue.VNodeChild) | undefined;
|
339
|
+
} | undefined;
|
301
340
|
} & {
|
302
341
|
"onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
303
342
|
}, () => JSX.Element, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
@@ -416,6 +455,16 @@ declare const VItem: {
|
|
416
455
|
disabled: boolean | undefined;
|
417
456
|
}) => vue.VNodeChild) | undefined;
|
418
457
|
} | undefined;
|
458
|
+
$slots?: {
|
459
|
+
default?: ((args_0: {
|
460
|
+
isSelected: boolean | undefined;
|
461
|
+
selectedClass: boolean | (string | undefined)[] | undefined;
|
462
|
+
select: ((value: boolean) => void) | undefined;
|
463
|
+
toggle: (() => void) | undefined;
|
464
|
+
value: unknown;
|
465
|
+
disabled: boolean | undefined;
|
466
|
+
}) => vue.VNodeChild) | undefined;
|
467
|
+
} | undefined;
|
419
468
|
onVnodeBeforeMount?: ((vnode: vue.VNode<vue.RendererNode, vue.RendererElement, {
|
420
469
|
[key: string]: any;
|
421
470
|
}>) => void) | ((vnode: vue.VNode<vue.RendererNode, vue.RendererElement, {
|
@@ -525,6 +574,17 @@ declare const VItem: {
|
|
525
574
|
value: unknown;
|
526
575
|
disabled: boolean | undefined;
|
527
576
|
}) => vue.VNodeChild) | undefined;
|
577
|
+
} & {
|
578
|
+
$slots?: {
|
579
|
+
default?: ((args_0: {
|
580
|
+
isSelected: boolean | undefined;
|
581
|
+
selectedClass: boolean | (string | undefined)[] | undefined;
|
582
|
+
select: ((value: boolean) => void) | undefined;
|
583
|
+
toggle: (() => void) | undefined;
|
584
|
+
value: unknown;
|
585
|
+
disabled: boolean | undefined;
|
586
|
+
}) => vue.VNodeChild) | undefined;
|
587
|
+
} | undefined;
|
528
588
|
} & {
|
529
589
|
"onGroup:selected"?: ((val: {
|
530
590
|
value: boolean;
|
@@ -610,6 +670,17 @@ declare const VItem: {
|
|
610
670
|
value: unknown;
|
611
671
|
disabled: boolean | undefined;
|
612
672
|
}) => vue.VNodeChild) | undefined;
|
673
|
+
} & {
|
674
|
+
$slots?: {
|
675
|
+
default?: ((args_0: {
|
676
|
+
isSelected: boolean | undefined;
|
677
|
+
selectedClass: boolean | (string | undefined)[] | undefined;
|
678
|
+
select: ((value: boolean) => void) | undefined;
|
679
|
+
toggle: (() => void) | undefined;
|
680
|
+
value: unknown;
|
681
|
+
disabled: boolean | undefined;
|
682
|
+
}) => vue.VNodeChild) | undefined;
|
683
|
+
} | undefined;
|
613
684
|
} & {
|
614
685
|
"onGroup:selected"?: ((val: {
|
615
686
|
value: boolean;
|
@@ -662,6 +733,17 @@ declare const VItem: {
|
|
662
733
|
value: unknown;
|
663
734
|
disabled: boolean | undefined;
|
664
735
|
}) => vue.VNodeChild) | undefined;
|
736
|
+
} & {
|
737
|
+
$slots?: {
|
738
|
+
default?: ((args_0: {
|
739
|
+
isSelected: boolean | undefined;
|
740
|
+
selectedClass: boolean | (string | undefined)[] | undefined;
|
741
|
+
select: ((value: boolean) => void) | undefined;
|
742
|
+
toggle: (() => void) | undefined;
|
743
|
+
value: unknown;
|
744
|
+
disabled: boolean | undefined;
|
745
|
+
}) => vue.VNodeChild) | undefined;
|
746
|
+
} | undefined;
|
665
747
|
} & {
|
666
748
|
"onGroup:selected"?: ((val: {
|
667
749
|
value: boolean;
|
@@ -24,6 +24,9 @@ declare const VKbd: {
|
|
24
24
|
'v-slots'?: {
|
25
25
|
default?: false | (() => vue.VNodeChild) | undefined;
|
26
26
|
} | undefined;
|
27
|
+
$slots?: {
|
28
|
+
default?: (() => vue.VNodeChild) | undefined;
|
29
|
+
} | undefined;
|
27
30
|
onVnodeBeforeMount?: ((vnode: vue.VNode<vue.RendererNode, vue.RendererElement, {
|
28
31
|
[key: string]: any;
|
29
32
|
}>) => void) | ((vnode: vue.VNode<vue.RendererNode, vue.RendererElement, {
|
@@ -92,6 +95,10 @@ declare const VKbd: {
|
|
92
95
|
} | undefined;
|
93
96
|
} & {
|
94
97
|
"v-slot:default"?: false | (() => vue.VNodeChild) | undefined;
|
98
|
+
} & {
|
99
|
+
$slots?: {
|
100
|
+
default?: (() => vue.VNodeChild) | undefined;
|
101
|
+
} | undefined;
|
95
102
|
}, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
|
96
103
|
[key: string]: any;
|
97
104
|
}>, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, Record<string, any>, string, {
|
@@ -135,6 +142,10 @@ declare const VKbd: {
|
|
135
142
|
} | undefined;
|
136
143
|
} & {
|
137
144
|
"v-slot:default"?: false | (() => vue.VNodeChild) | undefined;
|
145
|
+
} & {
|
146
|
+
$slots?: {
|
147
|
+
default?: (() => vue.VNodeChild) | undefined;
|
148
|
+
} | undefined;
|
138
149
|
} & vue.ShallowUnwrapRef<() => vue.VNode<vue.RendererNode, vue.RendererElement, {
|
139
150
|
[key: string]: any;
|
140
151
|
}>> & {} & vue.ComponentCustomProperties & {};
|
@@ -155,6 +166,10 @@ declare const VKbd: {
|
|
155
166
|
} | undefined;
|
156
167
|
} & {
|
157
168
|
"v-slot:default"?: false | (() => vue.VNodeChild) | undefined;
|
169
|
+
} & {
|
170
|
+
$slots?: {
|
171
|
+
default?: (() => vue.VNodeChild) | undefined;
|
172
|
+
} | undefined;
|
158
173
|
}, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
|
159
174
|
[key: string]: any;
|
160
175
|
}>, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, Record<string, any>, string, {
|
@@ -26,6 +26,9 @@ declare const VLabel: {
|
|
26
26
|
'v-slots'?: {
|
27
27
|
default?: false | (() => vue.VNodeChild) | undefined;
|
28
28
|
} | undefined;
|
29
|
+
$slots?: {
|
30
|
+
default?: (() => vue.VNodeChild) | undefined;
|
31
|
+
} | undefined;
|
29
32
|
onVnodeBeforeMount?: ((vnode: vue.VNode<vue.RendererNode, vue.RendererElement, {
|
30
33
|
[key: string]: any;
|
31
34
|
}>) => void) | ((vnode: vue.VNode<vue.RendererNode, vue.RendererElement, {
|
@@ -96,6 +99,10 @@ declare const VLabel: {
|
|
96
99
|
} | undefined;
|
97
100
|
} & {
|
98
101
|
"v-slot:default"?: false | (() => vue.VNodeChild) | undefined;
|
102
|
+
} & {
|
103
|
+
$slots?: {
|
104
|
+
default?: (() => vue.VNodeChild) | undefined;
|
105
|
+
} | undefined;
|
99
106
|
}, {}, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, Record<string, any>, string, {
|
100
107
|
style: vue.StyleValue;
|
101
108
|
clickable: boolean;
|
@@ -139,6 +146,10 @@ declare const VLabel: {
|
|
139
146
|
} | undefined;
|
140
147
|
} & {
|
141
148
|
"v-slot:default"?: false | (() => vue.VNodeChild) | undefined;
|
149
|
+
} & {
|
150
|
+
$slots?: {
|
151
|
+
default?: (() => vue.VNodeChild) | undefined;
|
152
|
+
} | undefined;
|
142
153
|
} & vue.ShallowUnwrapRef<{}> & {} & vue.ComponentCustomProperties & {};
|
143
154
|
__isFragment?: undefined;
|
144
155
|
__isTeleport?: undefined;
|
@@ -159,6 +170,10 @@ declare const VLabel: {
|
|
159
170
|
} | undefined;
|
160
171
|
} & {
|
161
172
|
"v-slot:default"?: false | (() => vue.VNodeChild) | undefined;
|
173
|
+
} & {
|
174
|
+
$slots?: {
|
175
|
+
default?: (() => vue.VNodeChild) | undefined;
|
176
|
+
} | undefined;
|
162
177
|
}, {}, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, Record<string, any>, string, {
|
163
178
|
style: vue.StyleValue;
|
164
179
|
clickable: boolean;
|
@@ -25,6 +25,9 @@ declare const VLayout: {
|
|
25
25
|
'v-slots'?: {
|
26
26
|
default?: false | (() => vue.VNodeChild) | undefined;
|
27
27
|
} | undefined;
|
28
|
+
$slots?: {
|
29
|
+
default?: (() => vue.VNodeChild) | undefined;
|
30
|
+
} | undefined;
|
28
31
|
onVnodeBeforeMount?: ((vnode: vue.VNode<vue.RendererNode, vue.RendererElement, {
|
29
32
|
[key: string]: any;
|
30
33
|
}>) => void) | ((vnode: vue.VNode<vue.RendererNode, vue.RendererElement, {
|
@@ -94,6 +97,10 @@ declare const VLayout: {
|
|
94
97
|
} | undefined;
|
95
98
|
} & {
|
96
99
|
"v-slot:default"?: false | (() => vue.VNodeChild) | undefined;
|
100
|
+
} & {
|
101
|
+
$slots?: {
|
102
|
+
default?: (() => vue.VNodeChild) | undefined;
|
103
|
+
} | undefined;
|
97
104
|
}, {
|
98
105
|
getLayoutItem: (id: string) => {
|
99
106
|
size: number;
|
@@ -155,6 +162,10 @@ declare const VLayout: {
|
|
155
162
|
} | undefined;
|
156
163
|
} & {
|
157
164
|
"v-slot:default"?: false | (() => vue.VNodeChild) | undefined;
|
165
|
+
} & {
|
166
|
+
$slots?: {
|
167
|
+
default?: (() => vue.VNodeChild) | undefined;
|
168
|
+
} | undefined;
|
158
169
|
} & vue.ShallowUnwrapRef<{
|
159
170
|
getLayoutItem: (id: string) => {
|
160
171
|
size: number;
|
@@ -193,6 +204,10 @@ declare const VLayout: {
|
|
193
204
|
} | undefined;
|
194
205
|
} & {
|
195
206
|
"v-slot:default"?: false | (() => vue.VNodeChild) | undefined;
|
207
|
+
} & {
|
208
|
+
$slots?: {
|
209
|
+
default?: (() => vue.VNodeChild) | undefined;
|
210
|
+
} | undefined;
|
196
211
|
}, {
|
197
212
|
getLayoutItem: (id: string) => {
|
198
213
|
size: number;
|
@@ -262,6 +277,9 @@ declare const VLayoutItem: {
|
|
262
277
|
'v-slots'?: {
|
263
278
|
default?: false | (() => vue.VNodeChild) | undefined;
|
264
279
|
} | undefined;
|
280
|
+
$slots?: {
|
281
|
+
default?: (() => vue.VNodeChild) | undefined;
|
282
|
+
} | undefined;
|
265
283
|
onVnodeBeforeMount?: ((vnode: vue.VNode<vue.RendererNode, vue.RendererElement, {
|
266
284
|
[key: string]: any;
|
267
285
|
}>) => void) | ((vnode: vue.VNode<vue.RendererNode, vue.RendererElement, {
|
@@ -335,6 +353,10 @@ declare const VLayoutItem: {
|
|
335
353
|
} | undefined;
|
336
354
|
} & {
|
337
355
|
"v-slot:default"?: false | (() => vue.VNodeChild) | undefined;
|
356
|
+
} & {
|
357
|
+
$slots?: {
|
358
|
+
default?: (() => vue.VNodeChild) | undefined;
|
359
|
+
} | undefined;
|
338
360
|
}, () => JSX.Element, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, Record<string, any>, string, {
|
339
361
|
absolute: boolean;
|
340
362
|
order: string | number;
|
@@ -384,6 +406,10 @@ declare const VLayoutItem: {
|
|
384
406
|
} | undefined;
|
385
407
|
} & {
|
386
408
|
"v-slot:default"?: false | (() => vue.VNodeChild) | undefined;
|
409
|
+
} & {
|
410
|
+
$slots?: {
|
411
|
+
default?: (() => vue.VNodeChild) | undefined;
|
412
|
+
} | undefined;
|
387
413
|
} & vue.ShallowUnwrapRef<() => JSX.Element> & {} & vue.ComponentCustomProperties & {};
|
388
414
|
__isFragment?: undefined;
|
389
415
|
__isTeleport?: undefined;
|
@@ -407,6 +433,10 @@ declare const VLayoutItem: {
|
|
407
433
|
} | undefined;
|
408
434
|
} & {
|
409
435
|
"v-slot:default"?: false | (() => vue.VNodeChild) | undefined;
|
436
|
+
} & {
|
437
|
+
$slots?: {
|
438
|
+
default?: (() => vue.VNodeChild) | undefined;
|
439
|
+
} | undefined;
|
410
440
|
}, () => JSX.Element, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, Record<string, any>, string, {
|
411
441
|
absolute: boolean;
|
412
442
|
order: string | number;
|