vuetify 3.1.6 → 3.1.8
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/dist/json/attributes.json +33 -33
- package/dist/json/importMap.json +4 -4
- package/dist/json/web-types.json +967 -79
- package/dist/vuetify-labs.css +544 -401
- package/dist/vuetify-labs.d.ts +3453 -144
- package/dist/vuetify-labs.esm.js +66 -44
- package/dist/vuetify-labs.esm.js.map +1 -1
- package/dist/vuetify-labs.js +66 -44
- package/dist/vuetify-labs.min.css +2 -2
- package/dist/vuetify.css +1398 -1255
- package/dist/vuetify.d.ts +1918 -67
- package/dist/vuetify.esm.js +33 -32
- package/dist/vuetify.esm.js.map +1 -1
- package/dist/vuetify.js +33 -32
- package/dist/vuetify.js.map +1 -1
- package/dist/vuetify.min.css +2 -2
- package/dist/vuetify.min.js +209 -210
- package/dist/vuetify.min.js.map +1 -1
- package/lib/components/VAlert/VAlert.css +1 -1
- package/lib/components/VAlert/VAlert.mjs.map +1 -1
- package/lib/components/VAlert/_variables.scss +1 -1
- package/lib/components/VAlert/index.d.ts +22 -0
- package/lib/components/VApp/index.d.ts +6 -0
- package/lib/components/VAppBar/index.d.ts +36 -0
- package/lib/components/VAutocomplete/VAutocomplete.mjs.map +1 -1
- package/lib/components/VAutocomplete/index.d.ts +117 -6
- package/lib/components/VAvatar/index.d.ts +6 -0
- package/lib/components/VBadge/index.d.ts +8 -0
- package/lib/components/VBanner/VBanner.mjs.map +1 -1
- package/lib/components/VBanner/index.d.ts +24 -0
- package/lib/components/VBottomNavigation/VBottomNavigation.mjs.map +1 -1
- package/lib/components/VBottomNavigation/index.d.ts +6 -0
- package/lib/components/VBreadcrumbs/VBreadcrumbs.mjs.map +1 -1
- package/lib/components/VBreadcrumbs/index.d.ts +28 -4
- package/lib/components/VBtn/VBtn.mjs.map +1 -1
- package/lib/components/VBtn/index.d.ts +12 -0
- package/lib/components/VBtnGroup/index.d.ts +6 -0
- package/lib/components/VBtnToggle/VBtnToggle.mjs.map +1 -1
- package/lib/components/VBtnToggle/index.d.ts +6 -0
- package/lib/components/VCard/VCard.mjs.map +1 -1
- package/lib/components/VCard/VCardItem.mjs.map +1 -1
- package/lib/components/VCard/index.d.ts +60 -0
- package/lib/components/VCarousel/VCarousel.mjs.map +1 -1
- package/lib/components/VCarousel/index.d.ts +60 -0
- package/lib/components/VCheckbox/index.d.ts +38 -0
- package/lib/components/VChip/VChip.mjs.map +1 -1
- package/lib/components/VChip/index.d.ts +12 -0
- package/lib/components/VChipGroup/VChipGroup.mjs.map +1 -1
- package/lib/components/VChipGroup/index.d.ts +6 -0
- package/lib/components/VCode/index.d.ts +6 -0
- package/lib/components/VColorPicker/VColorPicker.mjs.map +1 -1
- package/lib/components/VColorPicker/VColorPickerEdit.mjs.map +1 -1
- package/lib/components/VColorPicker/VColorPickerPreview.mjs.map +1 -1
- package/lib/components/VColorPicker/VColorPickerSwatches.mjs.map +1 -1
- package/lib/components/VCombobox/VCombobox.mjs.map +1 -1
- package/lib/components/VCombobox/index.d.ts +117 -6
- package/lib/components/VCounter/index.d.ts +24 -0
- package/lib/components/VDefaultsProvider/index.d.ts +6 -0
- package/lib/components/VDialog/index.d.ts +64 -1
- package/lib/components/VDivider/VDivider.mjs.map +1 -1
- package/lib/components/VDivider/index.d.ts +6 -0
- package/lib/components/VExpansionPanel/VExpansionPanel.mjs.map +1 -1
- package/lib/components/VExpansionPanel/VExpansionPanelText.mjs.map +1 -1
- package/lib/components/VExpansionPanel/VExpansionPanelTitle.mjs.map +1 -1
- package/lib/components/VExpansionPanel/index.d.ts +49 -12
- package/lib/components/VField/VField.mjs.map +1 -1
- package/lib/components/VField/index.d.ts +20 -6
- package/lib/components/VFileInput/VFileInput.mjs +1 -0
- package/lib/components/VFileInput/VFileInput.mjs.map +1 -1
- package/lib/components/VFileInput/index.d.ts +43 -1
- package/lib/components/VFooter/index.d.ts +6 -0
- package/lib/components/VForm/index.d.ts +6 -0
- package/lib/components/VGrid/index.d.ts +24 -0
- package/lib/components/VHover/index.d.ts +12 -0
- package/lib/components/VIcon/index.d.ts +12 -0
- package/lib/components/VImg/index.d.ts +12 -0
- package/lib/components/VInput/VInput.mjs.map +1 -1
- package/lib/components/VInput/index.d.ts +12 -0
- package/lib/components/VItemGroup/VItemGroup.mjs.map +1 -1
- package/lib/components/VItemGroup/index.d.ts +12 -0
- package/lib/components/VKbd/index.d.ts +6 -0
- package/lib/components/VLabel/index.d.ts +6 -0
- package/lib/components/VLayout/index.d.ts +12 -0
- package/lib/components/VLazy/index.d.ts +6 -0
- package/lib/components/VList/VListGroup.mjs.map +1 -1
- package/lib/components/VList/VListItem.mjs.map +1 -1
- package/lib/components/VList/VListSubheader.mjs.map +1 -1
- package/lib/components/VList/index.d.ts +77 -6
- package/lib/components/VLocaleProvider/index.d.ts +6 -0
- package/lib/components/VMain/index.d.ts +6 -0
- package/lib/components/VMenu/index.d.ts +64 -1
- package/lib/components/VMessages/VMessages.mjs.map +1 -1
- package/lib/components/VMessages/index.d.ts +24 -0
- package/lib/components/VNavigationDrawer/index.d.ts +12 -0
- package/lib/components/VNoSsr/index.d.ts +6 -0
- package/lib/components/VOverlay/VOverlay.mjs.map +1 -1
- package/lib/components/VOverlay/index.d.ts +18 -0
- package/lib/components/VPagination/VPagination.mjs.map +1 -1
- package/lib/components/VPagination/index.d.ts +14 -0
- package/lib/components/VParallax/index.d.ts +12 -0
- package/lib/components/VProgressCircular/VProgressCircular.mjs.map +1 -1
- package/lib/components/VProgressCircular/index.d.ts +6 -0
- package/lib/components/VProgressLinear/VProgressLinear.mjs.map +1 -1
- package/lib/components/VProgressLinear/index.d.ts +12 -0
- package/lib/components/VRadio/index.d.ts +16 -0
- package/lib/components/VRadioGroup/VRadioGroup.mjs.map +1 -1
- package/lib/components/VRadioGroup/index.d.ts +22 -0
- package/lib/components/VRangeSlider/VRangeSlider.mjs.map +1 -1
- package/lib/components/VRangeSlider/index.d.ts +16 -0
- package/lib/components/VRating/VRating.mjs.map +1 -1
- package/lib/components/VRating/index.d.ts +8 -0
- package/lib/components/VResponsive/index.d.ts +8 -0
- package/lib/components/VSelect/VSelect.mjs.map +1 -1
- package/lib/components/VSelect/index.d.ts +183 -6
- package/lib/components/VSelectionControl/VSelectionControl.mjs.map +1 -1
- package/lib/components/VSelectionControl/index.d.ts +14 -6
- package/lib/components/VSelectionControlGroup/index.d.ts +6 -0
- package/lib/components/VSheet/index.d.ts +6 -0
- package/lib/components/VSlideGroup/VSlideGroup.mjs.map +1 -1
- package/lib/components/VSlideGroup/index.d.ts +26 -0
- package/lib/components/VSlider/VSliderTrack.mjs.map +1 -1
- package/lib/components/VSlider/index.d.ts +16 -0
- package/lib/components/VSnackbar/VSnackbar.css +0 -2
- package/lib/components/VSnackbar/VSnackbar.mjs +6 -8
- package/lib/components/VSnackbar/VSnackbar.mjs.map +1 -1
- package/lib/components/VSnackbar/VSnackbar.sass +0 -2
- package/lib/components/VSnackbar/index.d.ts +44 -1
- package/lib/components/VSwitch/VSwitch.mjs.map +1 -1
- package/lib/components/VSwitch/index.d.ts +22 -0
- package/lib/components/VSystemBar/index.d.ts +6 -0
- package/lib/components/VTable/VTable.mjs.map +1 -1
- package/lib/components/VTable/index.d.ts +12 -0
- package/lib/components/VTabs/VTab.mjs.map +1 -1
- package/lib/components/VTabs/VTabs.mjs.map +1 -1
- package/lib/components/VTabs/index.d.ts +12 -0
- package/lib/components/VTextField/VTextField.mjs +1 -0
- package/lib/components/VTextField/VTextField.mjs.map +1 -1
- package/lib/components/VTextField/index.d.ts +54 -6
- package/lib/components/VTextarea/VTextarea.mjs +1 -0
- package/lib/components/VTextarea/VTextarea.mjs.map +1 -1
- package/lib/components/VTextarea/index.d.ts +39 -1
- package/lib/components/VThemeProvider/index.d.ts +6 -0
- package/lib/components/VTimeline/VTimelineDivider.mjs.map +1 -1
- package/lib/components/VTimeline/VTimelineItem.mjs.map +1 -1
- package/lib/components/VTimeline/index.d.ts +16 -0
- package/lib/components/VToolbar/VToolbar.mjs.map +1 -1
- package/lib/components/VToolbar/VToolbarTitle.mjs.map +1 -1
- package/lib/components/VToolbar/index.d.ts +30 -0
- package/lib/components/VTooltip/index.d.ts +46 -1
- package/lib/components/VValidation/index.d.ts +6 -0
- package/lib/components/VWindow/index.d.ts +34 -0
- package/lib/components/index.d.ts +1916 -65
- package/lib/components/transitions/createTransition.mjs +1 -1
- package/lib/components/transitions/createTransition.mjs.map +1 -1
- package/lib/components/transitions/index.d.ts +96 -0
- package/lib/composables/display.mjs +13 -10
- package/lib/composables/display.mjs.map +1 -1
- package/lib/composables/loader.mjs.map +1 -1
- package/lib/composables/theme.mjs +7 -10
- package/lib/composables/theme.mjs.map +1 -1
- package/lib/composables/variant.mjs.map +1 -1
- package/lib/entry-bundler.mjs +1 -1
- package/lib/framework.mjs +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/labs/VDataTable/VDataTable.mjs +4 -2
- package/lib/labs/VDataTable/VDataTable.mjs.map +1 -1
- package/lib/labs/VDataTable/VDataTableFooter.mjs.map +1 -1
- package/lib/labs/VDataTable/VDataTableHeaders.mjs.map +1 -1
- package/lib/labs/VDataTable/VDataTableRow.mjs.map +1 -1
- package/lib/labs/VDataTable/VDataTableRows.mjs +4 -6
- package/lib/labs/VDataTable/VDataTableRows.mjs.map +1 -1
- package/lib/labs/VDataTable/VDataTableServer.mjs.map +1 -1
- package/lib/labs/VDataTable/VDataTableVirtual.mjs +4 -2
- package/lib/labs/VDataTable/VDataTableVirtual.mjs.map +1 -1
- package/lib/labs/VDataTable/composables/options.mjs +7 -1
- package/lib/labs/VDataTable/composables/options.mjs.map +1 -1
- package/lib/labs/VDataTable/index.d.ts +1503 -48
- package/lib/labs/VVirtualScroll/VVirtualScroll.mjs +15 -2
- package/lib/labs/VVirtualScroll/VVirtualScroll.mjs.map +1 -1
- package/lib/labs/VVirtualScroll/index.d.ts +9 -6
- package/lib/labs/components.d.ts +1512 -54
- package/lib/locale/index.mjs +1 -1
- package/lib/locale/index.mjs.map +1 -1
- package/lib/styles/elements/_global.sass +0 -4
- package/lib/styles/generic/_index.scss +0 -1
- package/lib/styles/generic/_transitions.scss +111 -9
- package/lib/styles/main.css +312 -167
- package/lib/styles/tools/_sheet.sass +3 -6
- package/lib/styles/utilities/_display.sass +6 -5
- package/lib/styles/utilities/_elevation.scss +13 -0
- package/lib/styles/utilities/_index.sass +3 -2
- package/lib/styles/utilities/_screenreaders.sass +13 -11
- package/lib/util/defineComponent.mjs.map +1 -1
- package/package.json +18 -4
- package/lib/styles/generic/_elevation.scss +0 -10
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VFileInput.mjs","names":["filterFieldProps","makeVFieldProps","filterInputProps","makeVInputProps","VInput","VChip","VCounter","VField","forwardRefs","useLocale","useProxiedModel","computed","nextTick","ref","watch","callEvent","filterInputAttrs","genericComponent","humanReadableFileSize","useRender","wrapInArray","VFileInput","name","inheritAttrs","props","chips","Boolean","counter","counterSizeString","type","String","default","counterString","multiple","hint","persistentHint","placeholder","showSize","Number","validator","v","includes","prependIcon","modelValue","Array","val","every","clearable","emits","e","files","setup","attrs","emit","slots","t","model","base","undefined","totalBytes","value","reduce","bytes","size","totalBytesReadable","fileNames","map","file","counterValue","fileCount","length","vInputRef","vFieldRef","isFocused","inputRef","messages","onFocus","document","activeElement","focus","onClickPrepend","onControlClick","onControlMousedown","click","onClear","stopPropagation","newValue","hasModelReset","isArray","hasCounter","hasDetails","details","rootAttrs","inputAttrs","_","inputProps","fieldProps","id","isDisabled","isDirty","isReadonly","isValid","class","fieldClass","slotProps","target","selection","text","color","join"],"sources":["../../../src/components/VFileInput/VFileInput.tsx"],"sourcesContent":["// Styles\nimport './VFileInput.sass'\n\n// Components\nimport { filterFieldProps, makeVFieldProps } from '@/components/VField/VField'\nimport { filterInputProps, makeVInputProps, VInput } from '@/components/VInput/VInput'\nimport { VChip } from '@/components/VChip'\nimport { VCounter } from '@/components/VCounter'\nimport { VField } from '@/components/VField'\n\n// Composables\nimport { forwardRefs } from '@/composables/forwardRefs'\nimport { useLocale } from '@/composables/locale'\nimport { useProxiedModel } from '@/composables/proxiedModel'\n\n// Utilities\nimport { computed, nextTick, ref, watch } from 'vue'\nimport {\n callEvent,\n filterInputAttrs,\n genericComponent,\n humanReadableFileSize,\n useRender,\n wrapInArray,\n} from '@/util'\n\n// Types\nimport type { PropType } from 'vue'\nimport type { MakeSlots } from '@/util'\nimport type { VFieldSlots } from '@/components/VField/VField'\nimport type { VInputSlots } from '@/components/VInput/VInput'\n\nexport type VFileInputSlots = VInputSlots & VFieldSlots & MakeSlots<{\n counter: []\n}>\n\nexport const VFileInput = genericComponent<VFileInputSlots>()({\n name: 'VFileInput',\n\n inheritAttrs: false,\n\n props: {\n chips: Boolean,\n counter: Boolean,\n counterSizeString: {\n type: String,\n default: '$vuetify.fileInput.counterSize',\n },\n counterString: {\n type: String,\n default: '$vuetify.fileInput.counter',\n },\n multiple: Boolean,\n hint: String,\n persistentHint: Boolean,\n placeholder: String,\n showSize: {\n type: [Boolean, Number] as PropType<boolean | 1000 | 1024>,\n default: false,\n validator: (v: boolean | number) => {\n return (\n typeof v === 'boolean' ||\n [1000, 1024].includes(v)\n )\n },\n },\n\n ...makeVInputProps({ prependIcon: '$file' }),\n\n modelValue: {\n type: Array as PropType<File[]>,\n default: () => ([]),\n validator: (val: any) => {\n return wrapInArray(val).every(v => v != null && typeof v === 'object')\n },\n },\n\n ...makeVFieldProps({ clearable: true }),\n },\n\n emits: {\n 'click:control': (e: MouseEvent) => true,\n 'mousedown:control': (e: MouseEvent) => true,\n 'update:modelValue': (files: File[]) => true,\n },\n\n setup (props, { attrs, emit, slots }) {\n const { t } = useLocale()\n const model = useProxiedModel(props, 'modelValue')\n const base = computed(() => typeof props.showSize !== 'boolean' ? props.showSize : undefined)\n const totalBytes = computed(() => (model.value ?? []).reduce((bytes, { size = 0 }) => bytes + size, 0))\n const totalBytesReadable = computed(() => humanReadableFileSize(totalBytes.value, base.value))\n\n const fileNames = computed(() => (model.value ?? []).map(file => {\n const { name = '', size = 0 } = file\n\n return !props.showSize\n ? name\n : `${name} (${humanReadableFileSize(size, base.value)})`\n }))\n\n const counterValue = computed(() => {\n const fileCount = model.value?.length ?? 0\n if (props.showSize) return t(props.counterSizeString, fileCount, totalBytesReadable.value)\n else return t(props.counterString, fileCount)\n })\n const vInputRef = ref<VInput>()\n const vFieldRef = ref<VInput>()\n const isFocused = ref(false)\n const inputRef = ref<HTMLInputElement>()\n const messages = computed(() => {\n return props.messages.length\n ? props.messages\n : (props.persistentHint) ? props.hint : ''\n })\n function onFocus () {\n if (inputRef.value !== document.activeElement) {\n inputRef.value?.focus()\n }\n\n if (!isFocused.value) {\n isFocused.value = true\n }\n }\n function onClickPrepend (e: MouseEvent) {\n callEvent(props['onClick:prepend'], e)\n onControlClick(e)\n }\n function onControlMousedown (e: MouseEvent) {\n emit('mousedown:control', e)\n }\n function onControlClick (e: MouseEvent) {\n inputRef.value?.click()\n\n emit('click:control', e)\n }\n function onClear (e: MouseEvent) {\n e.stopPropagation()\n\n onFocus()\n\n nextTick(() => {\n model.value = []\n\n callEvent(props['onClick:clear'], e)\n })\n }\n\n watch(model, newValue => {\n const hasModelReset = !Array.isArray(newValue) || !newValue.length\n\n if (hasModelReset && inputRef.value) {\n inputRef.value.value = ''\n }\n })\n\n useRender(() => {\n const hasCounter = !!(slots.counter || props.counter)\n const hasDetails = !!(hasCounter || slots.details)\n const [rootAttrs, inputAttrs] = filterInputAttrs(attrs)\n const [{ modelValue: _, ...inputProps }] = filterInputProps(props)\n const [fieldProps] = filterFieldProps(props)\n\n return (\n <VInput\n ref={ vInputRef }\n v-model={ model.value }\n class=\"v-file-input\"\n onClick:prepend={ onClickPrepend }\n onClick:append={ props['onClick:append'] }\n { ...rootAttrs }\n { ...inputProps }\n focused={ isFocused.value }\n messages={ messages.value }\n >\n {{\n ...slots,\n default: ({\n id,\n isDisabled,\n isDirty,\n isReadonly,\n isValid,\n }) => (\n <VField\n ref={ vFieldRef }\n prepend-icon={ props.prependIcon }\n onMousedown={ onControlMousedown }\n onClick={ onControlClick }\n onClick:clear={ onClear }\n onClick:prependInner={ props['onClick:prependInner'] }\n onClick:appendInner={ props['onClick:appendInner'] }\n { ...fieldProps }\n id={ id.value }\n active={ isDirty.value || isFocused.value }\n dirty={ isDirty.value }\n focused={ isFocused.value }\n error={ isValid.value === false }\n >\n {{\n ...slots,\n default: ({\n props: { class: fieldClass, ...slotProps },\n }) => (\n <>\n <input\n ref={ inputRef }\n type=\"file\"\n readonly={ isReadonly.value }\n disabled={ isDisabled.value }\n multiple={ props.multiple }\n name={ props.name }\n onClick={ e => {\n e.stopPropagation()\n\n onFocus()\n } }\n onChange={ e => {\n if (!e.target) return\n\n const target = e.target as HTMLInputElement\n model.value = [...target.files ?? []]\n } }\n onFocus={ onFocus }\n onBlur={ () => (isFocused.value = false) }\n { ...slotProps }\n { ...inputAttrs }\n />\n\n <div class={ fieldClass }>\n { !!model.value?.length && (\n slots.selection ? slots.selection({\n fileNames: fileNames.value,\n totalBytes: totalBytes.value,\n totalBytesReadable: totalBytesReadable.value,\n })\n : props.chips ? fileNames.value.map(text => (\n <VChip\n key={ text }\n size=\"small\"\n color={ props.color }\n >{ text }</VChip>\n ))\n : fileNames.value.join(', ')\n )}\n </div>\n </>\n ),\n }}\n </VField>\n ),\n details: hasDetails ? slotProps => (\n <>\n { slots.details?.(slotProps) }\n\n { hasCounter && (\n <>\n <span />\n\n <VCounter\n active={ !!model.value?.length }\n value={ counterValue.value }\n v-slots:default={ slots.counter }\n />\n </>\n ) }\n </>\n ) : undefined,\n }}\n </VInput>\n )\n })\n\n return forwardRefs({}, vInputRef, vFieldRef, inputRef)\n },\n})\n\nexport type VFileInput = InstanceType<typeof VFileInput>\n"],"mappings":";AAAA;AACA;;AAEA;AAAA,SACSA,gBAAgB,EAAEC,eAAe;AAAA,SACjCC,gBAAgB,EAAEC,eAAe,EAAEC,MAAM;AAAA,SACzCC,KAAK;AAAA,SACLC,QAAQ;AAAA,S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,CAAC,CAACwD,MAA0B;kBAC3CjD,KAAK,CAACI,KAAK,GAAG,CAAC,IAAG6C,MAAM,CAACvD,KAAK,IAAI,EAAE,EAAC;gBACvC,CAAC;gBAAA,WACS0B,OAAO;gBAAA,UACR,MAAOH,SAAS,CAACb,KAAK,GAAG;cAAM,GACnC4C,SAAS,EACTX,UAAU;gBAAA,SAGJU;cAAU,IACnB,CAAC,CAAC/C,KAAK,CAACI,KAAK,EAAEU,MAAM,KACrBhB,KAAK,CAACoD,SAAS,GAAGpD,KAAK,CAACoD,SAAS,CAAC;gBAChCzC,SAAS,EAAEA,SAAS,CAACL,KAAK;gBAC1BD,UAAU,EAAEA,UAAU,CAACC,KAAK;gBAC5BI,kBAAkB,EAAEA,kBAAkB,CAACJ;cACzC,CAAC,CAAC,GACApC,KAAK,CAACC,KAAK,GAAGwC,SAAS,CAACL,KAAK,CAACM,GAAG,CAACyC,IAAI;gBAAA,OAE9BA,IAAI;gBAAA,QACL,OAAO;gBAAA,SACJnF,KAAK,CAACoF;cAAK;gBAAA,gBAClBD,IAAI;cAAA,EACR,CAAC,GACA1C,SAAS,CAACL,KAAK,CAACiD,IAAI,CAAC,IAAI,CAAC,CAC7B;YAAA;UAGN;QAAA,CAGN;QACDlB,OAAO,EAAED,UAAU,GAAGc,SAAS,mCAEzBlD,KAAK,CAACqC,OAAO,GAAGa,SAAS,CAAC,EAE1Bf,UAAU;UAAA,UAKG,CAAC,CAACjC,KAAK,CAACI,KAAK,EAAEU,MAAM;UAAA,SACtBF,YAAY,CAACR;QAAK,GACRN,KAAK,CAAC3B,OAAO,GAGpC,EAEJ,GAAG+B;MAAS;IAIrB,CAAC,CAAC;IAEF,OAAOlD,WAAW,CAAC,CAAC,CAAC,EAAE+D,SAAS,EAAEC,SAAS,EAAEE,QAAQ,CAAC;EACxD;AACF,CAAC,CAAC"}
|
|
1
|
+
{"version":3,"file":"VFileInput.mjs","names":["filterFieldProps","makeVFieldProps","filterInputProps","makeVInputProps","VInput","VChip","VCounter","VField","forwardRefs","useLocale","useProxiedModel","computed","nextTick","ref","watch","callEvent","filterInputAttrs","genericComponent","humanReadableFileSize","useRender","wrapInArray","VFileInput","name","inheritAttrs","props","chips","Boolean","counter","counterSizeString","type","String","default","counterString","multiple","hint","persistentHint","placeholder","showSize","Number","validator","v","includes","prependIcon","modelValue","Array","val","every","clearable","emits","e","files","setup","attrs","emit","slots","t","model","base","undefined","totalBytes","value","reduce","bytes","size","totalBytesReadable","fileNames","map","file","counterValue","fileCount","length","vInputRef","vFieldRef","isFocused","inputRef","messages","onFocus","document","activeElement","focus","onClickPrepend","onControlClick","onControlMousedown","click","onClear","stopPropagation","newValue","hasModelReset","isArray","hasCounter","hasDetails","details","rootAttrs","inputAttrs","_","inputProps","fieldProps","id","isDisabled","isDirty","isReadonly","isValid","class","fieldClass","slotProps","target","selection","text","color","join"],"sources":["../../../src/components/VFileInput/VFileInput.tsx"],"sourcesContent":["// Styles\nimport './VFileInput.sass'\n\n// Components\nimport { filterFieldProps, makeVFieldProps } from '@/components/VField/VField'\nimport { filterInputProps, makeVInputProps, VInput } from '@/components/VInput/VInput'\nimport { VChip } from '@/components/VChip'\nimport { VCounter } from '@/components/VCounter'\nimport { VField } from '@/components/VField'\n\n// Composables\nimport { forwardRefs } from '@/composables/forwardRefs'\nimport { useLocale } from '@/composables/locale'\nimport { useProxiedModel } from '@/composables/proxiedModel'\n\n// Utilities\nimport { computed, nextTick, ref, watch } from 'vue'\nimport {\n callEvent,\n filterInputAttrs,\n genericComponent,\n humanReadableFileSize,\n useRender,\n wrapInArray,\n} from '@/util'\n\n// Types\nimport type { PropType } from 'vue'\nimport type { MakeSlots } from '@/util'\nimport type { VFieldSlots } from '@/components/VField/VField'\nimport type { VInputSlots } from '@/components/VInput/VInput'\n\nexport type VFileInputSlots = VInputSlots & VFieldSlots & MakeSlots<{\n counter: []\n}>\n\nexport const VFileInput = genericComponent<VFileInputSlots>()({\n name: 'VFileInput',\n\n inheritAttrs: false,\n\n props: {\n chips: Boolean,\n counter: Boolean,\n counterSizeString: {\n type: String,\n default: '$vuetify.fileInput.counterSize',\n },\n counterString: {\n type: String,\n default: '$vuetify.fileInput.counter',\n },\n multiple: Boolean,\n hint: String,\n persistentHint: Boolean,\n placeholder: String,\n showSize: {\n type: [Boolean, Number] as PropType<boolean | 1000 | 1024>,\n default: false,\n validator: (v: boolean | number) => {\n return (\n typeof v === 'boolean' ||\n [1000, 1024].includes(v)\n )\n },\n },\n\n ...makeVInputProps({ prependIcon: '$file' }),\n\n modelValue: {\n type: Array as PropType<File[]>,\n default: () => ([]),\n validator: (val: any) => {\n return wrapInArray(val).every(v => v != null && typeof v === 'object')\n },\n },\n\n ...makeVFieldProps({ clearable: true }),\n },\n\n emits: {\n 'click:control': (e: MouseEvent) => true,\n 'mousedown:control': (e: MouseEvent) => true,\n 'update:modelValue': (files: File[]) => true,\n },\n\n setup (props, { attrs, emit, slots }) {\n const { t } = useLocale()\n const model = useProxiedModel(props, 'modelValue')\n const base = computed(() => typeof props.showSize !== 'boolean' ? props.showSize : undefined)\n const totalBytes = computed(() => (model.value ?? []).reduce((bytes, { size = 0 }) => bytes + size, 0))\n const totalBytesReadable = computed(() => humanReadableFileSize(totalBytes.value, base.value))\n\n const fileNames = computed(() => (model.value ?? []).map(file => {\n const { name = '', size = 0 } = file\n\n return !props.showSize\n ? name\n : `${name} (${humanReadableFileSize(size, base.value)})`\n }))\n\n const counterValue = computed(() => {\n const fileCount = model.value?.length ?? 0\n if (props.showSize) return t(props.counterSizeString, fileCount, totalBytesReadable.value)\n else return t(props.counterString, fileCount)\n })\n const vInputRef = ref<VInput>()\n const vFieldRef = ref<VInput>()\n const isFocused = ref(false)\n const inputRef = ref<HTMLInputElement>()\n const messages = computed(() => {\n return props.messages.length\n ? props.messages\n : (props.persistentHint) ? props.hint : ''\n })\n function onFocus () {\n if (inputRef.value !== document.activeElement) {\n inputRef.value?.focus()\n }\n\n if (!isFocused.value) {\n isFocused.value = true\n }\n }\n function onClickPrepend (e: MouseEvent) {\n callEvent(props['onClick:prepend'], e)\n onControlClick(e)\n }\n function onControlMousedown (e: MouseEvent) {\n emit('mousedown:control', e)\n }\n function onControlClick (e: MouseEvent) {\n inputRef.value?.click()\n\n emit('click:control', e)\n }\n function onClear (e: MouseEvent) {\n e.stopPropagation()\n\n onFocus()\n\n nextTick(() => {\n model.value = []\n\n callEvent(props['onClick:clear'], e)\n })\n }\n\n watch(model, newValue => {\n const hasModelReset = !Array.isArray(newValue) || !newValue.length\n\n if (hasModelReset && inputRef.value) {\n inputRef.value.value = ''\n }\n })\n\n useRender(() => {\n const hasCounter = !!(slots.counter || props.counter)\n const hasDetails = !!(hasCounter || slots.details)\n const [rootAttrs, inputAttrs] = filterInputAttrs(attrs)\n const [{ modelValue: _, ...inputProps }] = filterInputProps(props)\n const [fieldProps] = filterFieldProps(props)\n\n return (\n <VInput\n ref={ vInputRef }\n v-model={ model.value }\n class=\"v-file-input\"\n onClick:prepend={ onClickPrepend }\n onClick:append={ props['onClick:append'] }\n { ...rootAttrs }\n { ...inputProps }\n focused={ isFocused.value }\n messages={ messages.value }\n >\n {{\n ...slots,\n default: ({\n id,\n isDisabled,\n isDirty,\n isReadonly,\n isValid,\n }) => (\n <VField\n ref={ vFieldRef }\n prepend-icon={ props.prependIcon }\n onMousedown={ onControlMousedown }\n onClick={ onControlClick }\n onClick:clear={ onClear }\n onClick:prependInner={ props['onClick:prependInner'] }\n onClick:appendInner={ props['onClick:appendInner'] }\n { ...fieldProps }\n id={ id.value }\n active={ isDirty.value || isFocused.value }\n dirty={ isDirty.value }\n disabled={ isDisabled.value }\n focused={ isFocused.value }\n error={ isValid.value === false }\n >\n {{\n ...slots,\n default: ({\n props: { class: fieldClass, ...slotProps },\n }) => (\n <>\n <input\n ref={ inputRef }\n type=\"file\"\n readonly={ isReadonly.value }\n disabled={ isDisabled.value }\n multiple={ props.multiple }\n name={ props.name }\n onClick={ e => {\n e.stopPropagation()\n\n onFocus()\n }}\n onChange={ e => {\n if (!e.target) return\n\n const target = e.target as HTMLInputElement\n model.value = [...target.files ?? []]\n }}\n onFocus={ onFocus }\n onBlur={ () => (isFocused.value = false) }\n { ...slotProps }\n { ...inputAttrs }\n />\n\n <div class={ fieldClass }>\n { !!model.value?.length && (\n slots.selection ? slots.selection({\n fileNames: fileNames.value,\n totalBytes: totalBytes.value,\n totalBytesReadable: totalBytesReadable.value,\n })\n : props.chips ? fileNames.value.map(text => (\n <VChip\n key={ text }\n size=\"small\"\n color={ props.color }\n >{ text }</VChip>\n ))\n : fileNames.value.join(', ')\n )}\n </div>\n </>\n ),\n }}\n </VField>\n ),\n details: hasDetails ? slotProps => (\n <>\n { slots.details?.(slotProps) }\n\n { hasCounter && (\n <>\n <span />\n\n <VCounter\n active={ !!model.value?.length }\n value={ counterValue.value }\n v-slots:default={ slots.counter }\n />\n </>\n )}\n </>\n ) : undefined,\n }}\n </VInput>\n )\n })\n\n return forwardRefs({}, vInputRef, vFieldRef, inputRef)\n },\n})\n\nexport type VFileInput = InstanceType<typeof VFileInput>\n"],"mappings":";AAAA;AACA;;AAEA;AAAA,SACSA,gBAAgB,EAAEC,eAAe;AAAA,SACjCC,gBAAgB,EAAEC,eAAe,EAAEC,MAAM;AAAA,SACzCC,KAAK;AAAA,SACLC,QAAQ;AAAA,SACRC,MAAM,+BAEf;AAAA,SACSC,WAAW;AAAA,SACXC,SAAS;AAAA,SACTC,eAAe,8CAExB;AACA,SAASC,QAAQ,EAAEC,QAAQ,EAAEC,GAAG,EAAEC,KAAK,QAAQ,KAAK;AAAA,SAElDC,SAAS,EACTC,gBAAgB,EAChBC,gBAAgB,EAChBC,qBAAqB,EACrBC,SAAS,EACTC,WAAW,gCAGb;AAUA,OAAO,MAAMC,UAAU,GAAGJ,gBAAgB,EAAmB,CAAC;EAC5DK,IAAI,EAAE,YAAY;EAElBC,YAAY,EAAE,KAAK;EAEnBC,KAAK,EAAE;IACLC,KAAK,EAAEC,OAAO;IACdC,OAAO,EAAED,OAAO;IA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AC1BD,UAAU,EAAEA,UAAU,CAACC,KAAK;gBAC5BI,kBAAkB,EAAEA,kBAAkB,CAACJ;cACzC,CAAC,CAAC,GACApC,KAAK,CAACC,KAAK,GAAGwC,SAAS,CAACL,KAAK,CAACM,GAAG,CAACyC,IAAI;gBAAA,OAE9BA,IAAI;gBAAA,QACL,OAAO;gBAAA,SACJnF,KAAK,CAACoF;cAAK;gBAAA,gBAClBD,IAAI;cAAA,EACR,CAAC,GACA1C,SAAS,CAACL,KAAK,CAACiD,IAAI,CAAC,IAAI,CAAC,CAC7B;YAAA;UAGN;QAAA,CAGN;QACDlB,OAAO,EAAED,UAAU,GAAGc,SAAS,mCAEzBlD,KAAK,CAACqC,OAAO,GAAGa,SAAS,CAAC,EAE1Bf,UAAU;UAAA,UAKG,CAAC,CAACjC,KAAK,CAACI,KAAK,EAAEU,MAAM;UAAA,SACtBF,YAAY,CAACR;QAAK,GACRN,KAAK,CAAC3B,OAAO,GAGpC,EAEJ,GAAG+B;MAAS;IAIrB,CAAC,CAAC;IAEF,OAAOlD,WAAW,CAAC,CAAC,CAAC,EAAE+D,SAAS,EAAEC,SAAS,EAAEE,QAAQ,CAAC;EACxD;AACF,CAAC,CAAC"}
|
|
@@ -104,6 +104,18 @@ declare const VFileInput: vue.DefineComponent<{
|
|
|
104
104
|
loader?: ((args_0: LoaderSlotProps) => vue.VNodeChild) | undefined;
|
|
105
105
|
counter?: (() => vue.VNodeChild) | undefined;
|
|
106
106
|
};
|
|
107
|
+
$slots?: {
|
|
108
|
+
default?: (((args_0: VInputSlot) => vue.VNodeChild) & ((args_0: VFieldSlot) => vue.VNodeChild)) | undefined;
|
|
109
|
+
prepend?: ((args_0: VInputSlot) => vue.VNodeChild) | undefined;
|
|
110
|
+
append?: ((args_0: VInputSlot) => vue.VNodeChild) | undefined;
|
|
111
|
+
details?: ((args_0: VInputSlot) => vue.VNodeChild) | undefined;
|
|
112
|
+
clear?: (() => vue.VNodeChild) | undefined;
|
|
113
|
+
'prepend-inner'?: ((args_0: DefaultInputSlot & VInputSlot) => vue.VNodeChild) | undefined;
|
|
114
|
+
'append-inner'?: ((args_0: DefaultInputSlot & VInputSlot) => vue.VNodeChild) | undefined;
|
|
115
|
+
label?: ((args_0: DefaultInputSlot & VInputSlot) => vue.VNodeChild) | undefined;
|
|
116
|
+
loader?: ((args_0: LoaderSlotProps) => vue.VNodeChild) | undefined;
|
|
117
|
+
counter?: (() => vue.VNodeChild) | undefined;
|
|
118
|
+
} | undefined;
|
|
107
119
|
'v-slots'?: {
|
|
108
120
|
default?: false | (((args_0: VInputSlot) => vue.VNodeChild) & ((args_0: VFieldSlot) => vue.VNodeChild)) | undefined;
|
|
109
121
|
prepend?: false | ((args_0: VInputSlot) => vue.VNodeChild) | undefined;
|
|
@@ -171,6 +183,12 @@ declare const VFileInput: vue.DefineComponent<{
|
|
|
171
183
|
append?: ((args_0: VInputSlot) => vue.VNodeChild) | undefined;
|
|
172
184
|
details?: ((args_0: VInputSlot) => vue.VNodeChild) | undefined;
|
|
173
185
|
};
|
|
186
|
+
$slots?: {
|
|
187
|
+
default?: ((args_0: VInputSlot) => vue.VNodeChild) | undefined;
|
|
188
|
+
prepend?: ((args_0: VInputSlot) => vue.VNodeChild) | undefined;
|
|
189
|
+
append?: ((args_0: VInputSlot) => vue.VNodeChild) | undefined;
|
|
190
|
+
details?: ((args_0: VInputSlot) => vue.VNodeChild) | undefined;
|
|
191
|
+
} | undefined;
|
|
174
192
|
'v-slots'?: {
|
|
175
193
|
default?: false | ((args_0: VInputSlot) => vue.VNodeChild) | undefined;
|
|
176
194
|
prepend?: false | ((args_0: VInputSlot) => vue.VNodeChild) | undefined;
|
|
@@ -228,6 +246,12 @@ declare const VFileInput: vue.DefineComponent<{
|
|
|
228
246
|
append?: ((args_0: VInputSlot) => vue.VNodeChild) | undefined;
|
|
229
247
|
details?: ((args_0: VInputSlot) => vue.VNodeChild) | undefined;
|
|
230
248
|
};
|
|
249
|
+
$slots?: {
|
|
250
|
+
default?: ((args_0: VInputSlot) => vue.VNodeChild) | undefined;
|
|
251
|
+
prepend?: ((args_0: VInputSlot) => vue.VNodeChild) | undefined;
|
|
252
|
+
append?: ((args_0: VInputSlot) => vue.VNodeChild) | undefined;
|
|
253
|
+
details?: ((args_0: VInputSlot) => vue.VNodeChild) | undefined;
|
|
254
|
+
} | undefined;
|
|
231
255
|
'v-slots'?: {
|
|
232
256
|
default?: false | ((args_0: VInputSlot) => vue.VNodeChild) | undefined;
|
|
233
257
|
prepend?: false | ((args_0: VInputSlot) => vue.VNodeChild) | undefined;
|
|
@@ -308,6 +332,12 @@ declare const VFileInput: vue.DefineComponent<{
|
|
|
308
332
|
append?: ((args_0: VInputSlot) => vue.VNodeChild) | undefined;
|
|
309
333
|
details?: ((args_0: VInputSlot) => vue.VNodeChild) | undefined;
|
|
310
334
|
};
|
|
335
|
+
$slots?: {
|
|
336
|
+
default?: ((args_0: VInputSlot) => vue.VNodeChild) | undefined;
|
|
337
|
+
prepend?: ((args_0: VInputSlot) => vue.VNodeChild) | undefined;
|
|
338
|
+
append?: ((args_0: VInputSlot) => vue.VNodeChild) | undefined;
|
|
339
|
+
details?: ((args_0: VInputSlot) => vue.VNodeChild) | undefined;
|
|
340
|
+
} | undefined;
|
|
311
341
|
'v-slots'?: {
|
|
312
342
|
default?: false | ((args_0: VInputSlot) => vue.VNodeChild) | undefined;
|
|
313
343
|
prepend?: false | ((args_0: VInputSlot) => vue.VNodeChild) | undefined;
|
|
@@ -325,7 +355,7 @@ declare const VFileInput: vue.DefineComponent<{
|
|
|
325
355
|
reset: () => void;
|
|
326
356
|
resetValidation: () => void;
|
|
327
357
|
validate: () => Promise<string[]>;
|
|
328
|
-
}> & {} & vue.ComponentCustomProperties & {}, "id" | "name" | "label" | "$children" | "v-slot:default" | "v-slots" | keyof vue.VNodeProps | keyof vue.AllowedComponentProps | "v-slot:append" | "v-slot:prepend" | "modelValue" | "onUpdate:modelValue" | "prependIcon" | "appendIcon" | "onClick:append" | "onClick:prepend" | "validateOn" | "validationValue" | "hideDetails" | ("error" | "direction" | "disabled" | "readonly" | "messages" | "density" | "focused" | "errorMessages" | "maxErrors" | "rules") | "v-slot:details">, `$${any}`>, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
|
358
|
+
}> & {} & vue.ComponentCustomProperties & {}, "id" | "name" | "label" | "$children" | "v-slot:default" | "$slots" | "v-slots" | keyof vue.VNodeProps | keyof vue.AllowedComponentProps | "v-slot:append" | "v-slot:prepend" | "modelValue" | "onUpdate:modelValue" | "prependIcon" | "appendIcon" | "onClick:append" | "onClick:prepend" | "validateOn" | "validationValue" | "hideDetails" | ("error" | "direction" | "disabled" | "readonly" | "messages" | "density" | "focused" | "errorMessages" | "maxErrors" | "rules") | "v-slot:details">, `$${any}`>, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
|
329
359
|
'click:control': (e: MouseEvent) => true;
|
|
330
360
|
'mousedown:control': (e: MouseEvent) => true;
|
|
331
361
|
'update:modelValue': (files: File[]) => true;
|
|
@@ -391,6 +421,18 @@ declare const VFileInput: vue.DefineComponent<{
|
|
|
391
421
|
loader?: ((args_0: LoaderSlotProps) => vue.VNodeChild) | undefined;
|
|
392
422
|
counter?: (() => vue.VNodeChild) | undefined;
|
|
393
423
|
};
|
|
424
|
+
$slots?: {
|
|
425
|
+
default?: (((args_0: VInputSlot) => vue.VNodeChild) & ((args_0: VFieldSlot) => vue.VNodeChild)) | undefined;
|
|
426
|
+
prepend?: ((args_0: VInputSlot) => vue.VNodeChild) | undefined;
|
|
427
|
+
append?: ((args_0: VInputSlot) => vue.VNodeChild) | undefined;
|
|
428
|
+
details?: ((args_0: VInputSlot) => vue.VNodeChild) | undefined;
|
|
429
|
+
clear?: (() => vue.VNodeChild) | undefined;
|
|
430
|
+
'prepend-inner'?: ((args_0: DefaultInputSlot & VInputSlot) => vue.VNodeChild) | undefined;
|
|
431
|
+
'append-inner'?: ((args_0: DefaultInputSlot & VInputSlot) => vue.VNodeChild) | undefined;
|
|
432
|
+
label?: ((args_0: DefaultInputSlot & VInputSlot) => vue.VNodeChild) | undefined;
|
|
433
|
+
loader?: ((args_0: LoaderSlotProps) => vue.VNodeChild) | undefined;
|
|
434
|
+
counter?: (() => vue.VNodeChild) | undefined;
|
|
435
|
+
} | undefined;
|
|
394
436
|
'v-slots'?: {
|
|
395
437
|
default?: false | (((args_0: VInputSlot) => vue.VNodeChild) & ((args_0: VFieldSlot) => vue.VNodeChild)) | undefined;
|
|
396
438
|
prepend?: false | ((args_0: VInputSlot) => vue.VNodeChild) | undefined;
|
|
@@ -17,6 +17,9 @@ declare const VFooter: vue.DefineComponent<{
|
|
|
17
17
|
$children?: vue.VNodeChild | (() => vue.VNodeChild) | {
|
|
18
18
|
default?: (() => vue.VNodeChild) | undefined;
|
|
19
19
|
};
|
|
20
|
+
$slots?: {
|
|
21
|
+
default?: (() => vue.VNodeChild) | undefined;
|
|
22
|
+
} | undefined;
|
|
20
23
|
'v-slots'?: {
|
|
21
24
|
default?: false | (() => vue.VNodeChild) | undefined;
|
|
22
25
|
} | undefined;
|
|
@@ -39,6 +42,9 @@ declare const VFooter: vue.DefineComponent<{
|
|
|
39
42
|
$children?: vue.VNodeChild | (() => vue.VNodeChild) | {
|
|
40
43
|
default?: (() => vue.VNodeChild) | undefined;
|
|
41
44
|
};
|
|
45
|
+
$slots?: {
|
|
46
|
+
default?: (() => vue.VNodeChild) | undefined;
|
|
47
|
+
} | undefined;
|
|
42
48
|
'v-slots'?: {
|
|
43
49
|
default?: false | (() => vue.VNodeChild) | undefined;
|
|
44
50
|
} | undefined;
|
|
@@ -21,6 +21,9 @@ declare const VForm: vue.DefineComponent<{
|
|
|
21
21
|
$children?: vue.VNodeChild | (() => vue.VNodeChild) | {
|
|
22
22
|
default?: (() => vue.VNodeChild) | undefined;
|
|
23
23
|
};
|
|
24
|
+
$slots?: {
|
|
25
|
+
default?: (() => vue.VNodeChild) | undefined;
|
|
26
|
+
} | undefined;
|
|
24
27
|
'v-slots'?: {
|
|
25
28
|
default?: false | (() => vue.VNodeChild) | undefined;
|
|
26
29
|
} | undefined;
|
|
@@ -64,6 +67,9 @@ declare const VForm: vue.DefineComponent<{
|
|
|
64
67
|
$children?: vue.VNodeChild | (() => vue.VNodeChild) | {
|
|
65
68
|
default?: (() => vue.VNodeChild) | undefined;
|
|
66
69
|
};
|
|
70
|
+
$slots?: {
|
|
71
|
+
default?: (() => vue.VNodeChild) | undefined;
|
|
72
|
+
} | undefined;
|
|
67
73
|
'v-slots'?: {
|
|
68
74
|
default?: false | (() => vue.VNodeChild) | undefined;
|
|
69
75
|
} | undefined;
|
|
@@ -7,6 +7,9 @@ declare const VContainer: vue.DefineComponent<{
|
|
|
7
7
|
$children?: vue.VNodeChild | (() => vue.VNodeChild) | {
|
|
8
8
|
default?: (() => vue.VNodeChild) | undefined;
|
|
9
9
|
};
|
|
10
|
+
$slots?: {
|
|
11
|
+
default?: (() => vue.VNodeChild) | undefined;
|
|
12
|
+
} | undefined;
|
|
10
13
|
'v-slots'?: {
|
|
11
14
|
default?: false | (() => vue.VNodeChild) | undefined;
|
|
12
15
|
} | undefined;
|
|
@@ -19,6 +22,9 @@ declare const VContainer: vue.DefineComponent<{
|
|
|
19
22
|
$children?: vue.VNodeChild | (() => vue.VNodeChild) | {
|
|
20
23
|
default?: (() => vue.VNodeChild) | undefined;
|
|
21
24
|
};
|
|
25
|
+
$slots?: {
|
|
26
|
+
default?: (() => vue.VNodeChild) | undefined;
|
|
27
|
+
} | undefined;
|
|
22
28
|
'v-slots'?: {
|
|
23
29
|
default?: false | (() => vue.VNodeChild) | undefined;
|
|
24
30
|
} | undefined;
|
|
@@ -40,6 +46,9 @@ declare const VCol: vue.DefineComponent<{
|
|
|
40
46
|
$children?: vue.VNodeChild | (() => vue.VNodeChild) | {
|
|
41
47
|
default?: (() => vue.VNodeChild) | undefined;
|
|
42
48
|
};
|
|
49
|
+
$slots?: {
|
|
50
|
+
default?: (() => vue.VNodeChild) | undefined;
|
|
51
|
+
} | undefined;
|
|
43
52
|
'v-slots'?: {
|
|
44
53
|
default?: false | (() => vue.VNodeChild) | undefined;
|
|
45
54
|
} | undefined;
|
|
@@ -57,6 +66,9 @@ declare const VCol: vue.DefineComponent<{
|
|
|
57
66
|
$children?: vue.VNodeChild | (() => vue.VNodeChild) | {
|
|
58
67
|
default?: (() => vue.VNodeChild) | undefined;
|
|
59
68
|
};
|
|
69
|
+
$slots?: {
|
|
70
|
+
default?: (() => vue.VNodeChild) | undefined;
|
|
71
|
+
} | undefined;
|
|
60
72
|
'v-slots'?: {
|
|
61
73
|
default?: false | (() => vue.VNodeChild) | undefined;
|
|
62
74
|
} | undefined;
|
|
@@ -82,6 +94,9 @@ declare const VRow: vue.DefineComponent<{
|
|
|
82
94
|
$children?: vue.VNodeChild | (() => vue.VNodeChild) | {
|
|
83
95
|
default?: (() => vue.VNodeChild) | undefined;
|
|
84
96
|
};
|
|
97
|
+
$slots?: {
|
|
98
|
+
default?: (() => vue.VNodeChild) | undefined;
|
|
99
|
+
} | undefined;
|
|
85
100
|
'v-slots'?: {
|
|
86
101
|
default?: false | (() => vue.VNodeChild) | undefined;
|
|
87
102
|
} | undefined;
|
|
@@ -100,6 +115,9 @@ declare const VRow: vue.DefineComponent<{
|
|
|
100
115
|
$children?: vue.VNodeChild | (() => vue.VNodeChild) | {
|
|
101
116
|
default?: (() => vue.VNodeChild) | undefined;
|
|
102
117
|
};
|
|
118
|
+
$slots?: {
|
|
119
|
+
default?: (() => vue.VNodeChild) | undefined;
|
|
120
|
+
} | undefined;
|
|
103
121
|
'v-slots'?: {
|
|
104
122
|
default?: false | (() => vue.VNodeChild) | undefined;
|
|
105
123
|
} | undefined;
|
|
@@ -121,6 +139,9 @@ declare const VSpacer: vue.DefineComponent<{
|
|
|
121
139
|
$children?: vue.VNodeChild | (() => vue.VNodeChild) | {
|
|
122
140
|
default?: (() => vue.VNodeChild) | undefined;
|
|
123
141
|
};
|
|
142
|
+
$slots?: {
|
|
143
|
+
default?: (() => vue.VNodeChild) | undefined;
|
|
144
|
+
} | undefined;
|
|
124
145
|
'v-slots'?: {
|
|
125
146
|
default?: false | (() => vue.VNodeChild) | undefined;
|
|
126
147
|
} | undefined;
|
|
@@ -134,6 +155,9 @@ declare const VSpacer: vue.DefineComponent<{
|
|
|
134
155
|
$children?: vue.VNodeChild | (() => vue.VNodeChild) | {
|
|
135
156
|
default?: (() => vue.VNodeChild) | undefined;
|
|
136
157
|
};
|
|
158
|
+
$slots?: {
|
|
159
|
+
default?: (() => vue.VNodeChild) | undefined;
|
|
160
|
+
} | undefined;
|
|
137
161
|
'v-slots'?: {
|
|
138
162
|
default?: false | (() => vue.VNodeChild) | undefined;
|
|
139
163
|
} | undefined;
|
|
@@ -16,6 +16,12 @@ declare const VHover: vue.DefineComponent<{
|
|
|
16
16
|
props: Record<string, unknown>;
|
|
17
17
|
}) => vue.VNodeChild) | undefined;
|
|
18
18
|
};
|
|
19
|
+
$slots?: {
|
|
20
|
+
default?: ((args_0: {
|
|
21
|
+
isHovering: boolean;
|
|
22
|
+
props: Record<string, unknown>;
|
|
23
|
+
}) => vue.VNodeChild) | undefined;
|
|
24
|
+
} | undefined;
|
|
19
25
|
'v-slots'?: {
|
|
20
26
|
default?: false | ((args_0: {
|
|
21
27
|
isHovering: boolean;
|
|
@@ -47,6 +53,12 @@ declare const VHover: vue.DefineComponent<{
|
|
|
47
53
|
props: Record<string, unknown>;
|
|
48
54
|
}) => vue.VNodeChild) | undefined;
|
|
49
55
|
};
|
|
56
|
+
$slots?: {
|
|
57
|
+
default?: ((args_0: {
|
|
58
|
+
isHovering: boolean;
|
|
59
|
+
props: Record<string, unknown>;
|
|
60
|
+
}) => vue.VNodeChild) | undefined;
|
|
61
|
+
} | undefined;
|
|
50
62
|
'v-slots'?: {
|
|
51
63
|
default?: false | ((args_0: {
|
|
52
64
|
isHovering: boolean;
|
|
@@ -11,6 +11,9 @@ declare const VComponentIcon: vue.DefineComponent<{
|
|
|
11
11
|
$children?: vue.VNodeChild | (() => vue.VNodeChild) | {
|
|
12
12
|
default?: (() => vue.VNodeChild) | undefined;
|
|
13
13
|
};
|
|
14
|
+
$slots?: {
|
|
15
|
+
default?: (() => vue.VNodeChild) | undefined;
|
|
16
|
+
} | undefined;
|
|
14
17
|
'v-slots'?: {
|
|
15
18
|
default?: false | (() => vue.VNodeChild) | undefined;
|
|
16
19
|
} | undefined;
|
|
@@ -24,6 +27,9 @@ declare const VComponentIcon: vue.DefineComponent<{
|
|
|
24
27
|
$children?: vue.VNodeChild | (() => vue.VNodeChild) | {
|
|
25
28
|
default?: (() => vue.VNodeChild) | undefined;
|
|
26
29
|
};
|
|
30
|
+
$slots?: {
|
|
31
|
+
default?: (() => vue.VNodeChild) | undefined;
|
|
32
|
+
} | undefined;
|
|
27
33
|
'v-slots'?: {
|
|
28
34
|
default?: false | (() => vue.VNodeChild) | undefined;
|
|
29
35
|
} | undefined;
|
|
@@ -99,6 +105,9 @@ declare const VIcon: vue.DefineComponent<{
|
|
|
99
105
|
$children?: vue.VNodeChild | (() => vue.VNodeChild) | {
|
|
100
106
|
default?: (() => vue.VNodeChild) | undefined;
|
|
101
107
|
};
|
|
108
|
+
$slots?: {
|
|
109
|
+
default?: (() => vue.VNodeChild) | undefined;
|
|
110
|
+
} | undefined;
|
|
102
111
|
'v-slots'?: {
|
|
103
112
|
default?: false | (() => vue.VNodeChild) | undefined;
|
|
104
113
|
} | undefined;
|
|
@@ -117,6 +126,9 @@ declare const VIcon: vue.DefineComponent<{
|
|
|
117
126
|
$children?: vue.VNodeChild | (() => vue.VNodeChild) | {
|
|
118
127
|
default?: (() => vue.VNodeChild) | undefined;
|
|
119
128
|
};
|
|
129
|
+
$slots?: {
|
|
130
|
+
default?: (() => vue.VNodeChild) | undefined;
|
|
131
|
+
} | undefined;
|
|
120
132
|
'v-slots'?: {
|
|
121
133
|
default?: false | (() => vue.VNodeChild) | undefined;
|
|
122
134
|
} | undefined;
|
|
@@ -29,6 +29,12 @@ declare const VImg: vue.DefineComponent<{
|
|
|
29
29
|
error?: (() => vue.VNodeChild) | undefined;
|
|
30
30
|
sources?: (() => vue.VNodeChild) | undefined;
|
|
31
31
|
};
|
|
32
|
+
$slots?: {
|
|
33
|
+
default?: (() => vue.VNodeChild) | undefined;
|
|
34
|
+
placeholder?: (() => vue.VNodeChild) | undefined;
|
|
35
|
+
error?: (() => vue.VNodeChild) | undefined;
|
|
36
|
+
sources?: (() => vue.VNodeChild) | undefined;
|
|
37
|
+
} | undefined;
|
|
32
38
|
'v-slots'?: {
|
|
33
39
|
default?: false | (() => vue.VNodeChild) | undefined;
|
|
34
40
|
placeholder?: false | (() => vue.VNodeChild) | undefined;
|
|
@@ -73,6 +79,12 @@ declare const VImg: vue.DefineComponent<{
|
|
|
73
79
|
error?: (() => vue.VNodeChild) | undefined;
|
|
74
80
|
sources?: (() => vue.VNodeChild) | undefined;
|
|
75
81
|
};
|
|
82
|
+
$slots?: {
|
|
83
|
+
default?: (() => vue.VNodeChild) | undefined;
|
|
84
|
+
placeholder?: (() => vue.VNodeChild) | undefined;
|
|
85
|
+
error?: (() => vue.VNodeChild) | undefined;
|
|
86
|
+
sources?: (() => vue.VNodeChild) | undefined;
|
|
87
|
+
} | undefined;
|
|
76
88
|
'v-slots'?: {
|
|
77
89
|
default?: false | (() => vue.VNodeChild) | undefined;
|
|
78
90
|
placeholder?: false | (() => vue.VNodeChild) | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VInput.mjs","names":["VMessages","IconValue","makeDensityProps","useDensity","makeValidationProps","useValidation","computed","EventProp","genericComponent","getUid","isOn","pick","propsFactory","useRender","useInputIcon","makeVInputProps","id","String","appendIcon","prependIcon","hideDetails","Boolean","messages","type","Array","default","direction","validator","v","includes","VInput","name","props","emits","val","setup","attrs","slots","emit","densityClasses","InputIcon","uid","messagesId","value","errorMessages","isDirty","isDisabled","isReadonly","isPristine","isValid","isValidating","reset","resetValidation","validate","validationClasses","slotProps","hasPrepend","prepend","hasAppend","append","hasMessages","length","hasDetails","details","message","filterInputProps","keys","Object","filter","k"],"sources":["../../../src/components/VInput/VInput.tsx"],"sourcesContent":["// Styles\nimport './VInput.sass'\n\n// Components\nimport { VMessages } from '@/components/VMessages'\n\n// Composables\nimport { IconValue } from '@/composables/icons'\nimport { makeDensityProps, useDensity } from '@/composables/density'\nimport { makeValidationProps, useValidation } from '@/composables/validation'\n\n// Utilities\nimport { computed } from 'vue'\nimport { EventProp, genericComponent, getUid, isOn, pick, propsFactory, useRender } from '@/util'\n\n// Types\nimport type { ComputedRef, PropType, Ref } from 'vue'\nimport type { MakeSlots } from '@/util'\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 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,\n 'onClick:append': EventProp,\n\n ...makeDensityProps(),\n ...makeValidationProps(),\n}, 'v-input')\n\nexport type VInputSlots = MakeSlots<{\n default: [VInputSlot]\n prepend: [VInputSlot]\n append: [VInputSlot]\n details: [VInputSlot]\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 useRender(() => {\n const hasPrepend = !!(slots.prepend || props.prependIcon)\n const hasAppend = !!(slots.append || props.appendIcon)\n const hasMessages = !!(\n props.messages?.length ||\n errorMessages.value.length\n )\n const hasDetails = !props.hideDetails || (\n props.hideDetails === 'auto' &&\n (hasMessages || !!slots.details)\n )\n\n return (\n <div class={[\n 'v-input',\n `v-input--${props.direction}`,\n densityClasses.value,\n validationClasses.value,\n ]}\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 )
|
|
1
|
+
{"version":3,"file":"VInput.mjs","names":["VMessages","IconValue","makeDensityProps","useDensity","makeValidationProps","useValidation","computed","EventProp","genericComponent","getUid","isOn","pick","propsFactory","useRender","useInputIcon","makeVInputProps","id","String","appendIcon","prependIcon","hideDetails","Boolean","messages","type","Array","default","direction","validator","v","includes","VInput","name","props","emits","val","setup","attrs","slots","emit","densityClasses","InputIcon","uid","messagesId","value","errorMessages","isDirty","isDisabled","isReadonly","isPristine","isValid","isValidating","reset","resetValidation","validate","validationClasses","slotProps","hasPrepend","prepend","hasAppend","append","hasMessages","length","hasDetails","details","message","filterInputProps","keys","Object","filter","k"],"sources":["../../../src/components/VInput/VInput.tsx"],"sourcesContent":["// Styles\nimport './VInput.sass'\n\n// Components\nimport { VMessages } from '@/components/VMessages'\n\n// Composables\nimport { IconValue } from '@/composables/icons'\nimport { makeDensityProps, useDensity } from '@/composables/density'\nimport { makeValidationProps, useValidation } from '@/composables/validation'\n\n// Utilities\nimport { computed } from 'vue'\nimport { EventProp, genericComponent, getUid, isOn, pick, propsFactory, useRender } from '@/util'\n\n// Types\nimport type { ComputedRef, PropType, Ref } from 'vue'\nimport type { MakeSlots } from '@/util'\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 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,\n 'onClick:append': EventProp,\n\n ...makeDensityProps(),\n ...makeValidationProps(),\n}, 'v-input')\n\nexport type VInputSlots = MakeSlots<{\n default: [VInputSlot]\n prepend: [VInputSlot]\n append: [VInputSlot]\n details: [VInputSlot]\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 useRender(() => {\n const hasPrepend = !!(slots.prepend || props.prependIcon)\n const hasAppend = !!(slots.append || props.appendIcon)\n const hasMessages = !!(\n props.messages?.length ||\n errorMessages.value.length\n )\n const hasDetails = !props.hideDetails || (\n props.hideDetails === 'auto' &&\n (hasMessages || !!slots.details)\n )\n\n return (\n <div class={[\n 'v-input',\n `v-input--${props.direction}`,\n densityClasses.value,\n validationClasses.value,\n ]}\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={ errorMessages.value.length > 0\n ? errorMessages.value\n : props.messages\n }\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\nexport function filterInputProps (props: Record<string, unknown>) {\n const keys = Object.keys(VInput.props).filter(k => !isOn(k))\n return pick(props, keys)\n}\n"],"mappings":";AAAA;AACA;;AAEA;AAAA,SACSA,SAAS,kCAElB;AAAA,SACSC,SAAS;AAAA,SACTC,gBAAgB,EAAEC,UAA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55
|
append?: ((args_0: VInputSlot) => vue.VNodeChild) | undefined;
|
|
56
56
|
details?: ((args_0: VInputSlot) => vue.VNodeChild) | undefined;
|
|
57
57
|
};
|
|
58
|
+
$slots?: {
|
|
59
|
+
default?: ((args_0: VInputSlot) => vue.VNodeChild) | undefined;
|
|
60
|
+
prepend?: ((args_0: VInputSlot) => vue.VNodeChild) | undefined;
|
|
61
|
+
append?: ((args_0: VInputSlot) => vue.VNodeChild) | undefined;
|
|
62
|
+
details?: ((args_0: VInputSlot) => vue.VNodeChild) | undefined;
|
|
63
|
+
} | undefined;
|
|
58
64
|
'v-slots'?: {
|
|
59
65
|
default?: false | ((args_0: VInputSlot) => vue.VNodeChild) | undefined;
|
|
60
66
|
prepend?: false | ((args_0: VInputSlot) => vue.VNodeChild) | undefined;
|
|
@@ -102,6 +108,12 @@ declare const VInput: vue.DefineComponent<{
|
|
|
102
108
|
append?: ((args_0: VInputSlot) => vue.VNodeChild) | undefined;
|
|
103
109
|
details?: ((args_0: VInputSlot) => vue.VNodeChild) | undefined;
|
|
104
110
|
};
|
|
111
|
+
$slots?: {
|
|
112
|
+
default?: ((args_0: VInputSlot) => vue.VNodeChild) | undefined;
|
|
113
|
+
prepend?: ((args_0: VInputSlot) => vue.VNodeChild) | undefined;
|
|
114
|
+
append?: ((args_0: VInputSlot) => vue.VNodeChild) | undefined;
|
|
115
|
+
details?: ((args_0: VInputSlot) => vue.VNodeChild) | undefined;
|
|
116
|
+
} | undefined;
|
|
105
117
|
'v-slots'?: {
|
|
106
118
|
default?: false | ((args_0: VInputSlot) => vue.VNodeChild) | undefined;
|
|
107
119
|
prepend?: false | ((args_0: VInputSlot) => vue.VNodeChild) | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VItemGroup.mjs","names":["makeGroupProps","useGroup","makeTagProps","makeThemeProps","provideTheme","genericComponent","VItemGroupSymbol","Symbol","for","VItemGroup","name","props","selectedClass","emits","value","setup","slots","themeClasses","isSelected","select","next","prev","selected","default"],"sources":["../../../src/components/VItemGroup/VItemGroup.tsx"],"sourcesContent":["// Styles\nimport './VItemGroup.sass'\n\n// Composables\nimport { makeGroupProps, useGroup } from '@/composables/group'\nimport { makeTagProps } from '@/composables/tag'\nimport { makeThemeProps, provideTheme } from '@/composables/theme'\n\n// Utilities\nimport { genericComponent } from '@/util'\n\nexport const VItemGroupSymbol = Symbol.for('vuetify:v-item-group')\n\nexport const VItemGroup = genericComponent()({\n name: 'VItemGroup',\n\n props: {\n ...makeGroupProps({\n selectedClass: 'v-item--selected',\n }),\n ...makeTagProps(),\n ...makeThemeProps(),\n },\n\n emits: {\n 'update:modelValue': (value: any) => true,\n },\n\n setup (props, { slots }) {\n const { themeClasses } = provideTheme(props)\n const { isSelected, select, next, prev, selected } = useGroup(props, VItemGroupSymbol)\n\n return () => (\n <props.tag\n class={[\n 'v-item-group',\n themeClasses.value,\n ]}\n >\n { slots.default?.({\n isSelected,\n select,\n next,\n prev,\n selected: selected.value,\n })
|
|
1
|
+
{"version":3,"file":"VItemGroup.mjs","names":["makeGroupProps","useGroup","makeTagProps","makeThemeProps","provideTheme","genericComponent","VItemGroupSymbol","Symbol","for","VItemGroup","name","props","selectedClass","emits","value","setup","slots","themeClasses","isSelected","select","next","prev","selected","default"],"sources":["../../../src/components/VItemGroup/VItemGroup.tsx"],"sourcesContent":["// Styles\nimport './VItemGroup.sass'\n\n// Composables\nimport { makeGroupProps, useGroup } from '@/composables/group'\nimport { makeTagProps } from '@/composables/tag'\nimport { makeThemeProps, provideTheme } from '@/composables/theme'\n\n// Utilities\nimport { genericComponent } from '@/util'\n\nexport const VItemGroupSymbol = Symbol.for('vuetify:v-item-group')\n\nexport const VItemGroup = genericComponent()({\n name: 'VItemGroup',\n\n props: {\n ...makeGroupProps({\n selectedClass: 'v-item--selected',\n }),\n ...makeTagProps(),\n ...makeThemeProps(),\n },\n\n emits: {\n 'update:modelValue': (value: any) => true,\n },\n\n setup (props, { slots }) {\n const { themeClasses } = provideTheme(props)\n const { isSelected, select, next, prev, selected } = useGroup(props, VItemGroupSymbol)\n\n return () => (\n <props.tag\n class={[\n 'v-item-group',\n themeClasses.value,\n ]}\n >\n { slots.default?.({\n isSelected,\n select,\n next,\n prev,\n selected: selected.value,\n })}\n </props.tag>\n )\n },\n})\n\nexport type VItemGroup = InstanceType<typeof VItemGroup>\n"],"mappings":";AAAA;AACA;;AAEA;AAAA,SACSA,cAAc,EAAEC,QAAQ;AAAA,SACxBC,YAAY;AAAA,SACZC,cAAc,EAAEC,YAAY,uCAErC;AAAA,SACSC,gBAAgB;AAEzB,OAAO,MAAMC,gBAAgB,GAAGC,MAAM,CAACC,GAAG,CAAC,sBAAsB,CAAC;AAElE,OAAO,MAAMC,UAAU,GAAGJ,gBAAgB,EAAE,CAAC;EAC3CK,IAAI,EAAE,YAAY;EAElBC,KAAK,EAAE;IACL,GAAGX,cAAc,CAAC;MAChBY,aAAa,EAAE;IACjB,CAAC,CAAC;IACF,GAAGV,YAAY,EAAE;IACjB,GAAGC,cAAc;EACnB,CAAC;EAEDU,KAAK,EAAE;IACL,mBAAmB,EAAGC,KAAU,IAAK;EACvC,CAAC;EAEDC,KAAK,CAAEJ,KAAK,QAAa;IAAA,IAAX;MAAEK;IAAM,CAAC;IACrB,MAAM;MAAEC;IAAa,CAAC,GAAGb,YAAY,CAACO,KAAK,CAAC;IAC5C,MAAM;MAAEO,UAAU;MAAEC,MAAM;MAAEC,IAAI;MAAEC,IAAI;MAAEC;IAAS,CAAC,GAAGrB,QAAQ,CAACU,KAAK,EAAEL,gBAAgB,CAAC;IAEtF,OAAO;MAAA,SAEI,CACL,cAAc,EACdW,YAAY,CAACH,KAAK;IACnB;MAAA,gBAECE,KAAK,CAACO,OAAO,GAAG;QAChBL,UAAU;QACVC,MAAM;QACNC,IAAI;QACJC,IAAI;QACJC,QAAQ,EAAEA,QAAQ,CAACR;MACrB,CAAC,CAAC;IAAA,EAEL;EACH;AACF,CAAC,CAAC"}
|
|
@@ -15,6 +15,9 @@ declare const VItemGroup: vue.DefineComponent<{
|
|
|
15
15
|
$children?: vue.VNodeChild | (() => vue.VNodeChild) | {
|
|
16
16
|
default?: (() => vue.VNodeChild) | undefined;
|
|
17
17
|
};
|
|
18
|
+
$slots?: {
|
|
19
|
+
default?: (() => vue.VNodeChild) | undefined;
|
|
20
|
+
} | undefined;
|
|
18
21
|
'v-slots'?: {
|
|
19
22
|
default?: false | (() => vue.VNodeChild) | undefined;
|
|
20
23
|
} | undefined;
|
|
@@ -36,6 +39,9 @@ declare const VItemGroup: vue.DefineComponent<{
|
|
|
36
39
|
$children?: vue.VNodeChild | (() => vue.VNodeChild) | {
|
|
37
40
|
default?: (() => vue.VNodeChild) | undefined;
|
|
38
41
|
};
|
|
42
|
+
$slots?: {
|
|
43
|
+
default?: (() => vue.VNodeChild) | undefined;
|
|
44
|
+
} | undefined;
|
|
39
45
|
'v-slots'?: {
|
|
40
46
|
default?: false | (() => vue.VNodeChild) | undefined;
|
|
41
47
|
} | undefined;
|
|
@@ -94,6 +100,9 @@ declare const VItem: vue.DefineComponent<{
|
|
|
94
100
|
$children?: vue.VNodeChild | ((args_0: GroupItemProvide) => vue.VNodeChild) | {
|
|
95
101
|
default?: ((args_0: GroupItemProvide) => vue.VNodeChild) | undefined;
|
|
96
102
|
};
|
|
103
|
+
$slots?: {
|
|
104
|
+
default?: ((args_0: GroupItemProvide) => vue.VNodeChild) | undefined;
|
|
105
|
+
} | undefined;
|
|
97
106
|
'v-slots'?: {
|
|
98
107
|
default?: false | ((args_0: GroupItemProvide) => vue.VNodeChild) | undefined;
|
|
99
108
|
} | undefined;
|
|
@@ -114,6 +123,9 @@ declare const VItem: vue.DefineComponent<{
|
|
|
114
123
|
$children?: vue.VNodeChild | ((args_0: GroupItemProvide) => vue.VNodeChild) | {
|
|
115
124
|
default?: ((args_0: GroupItemProvide) => vue.VNodeChild) | undefined;
|
|
116
125
|
};
|
|
126
|
+
$slots?: {
|
|
127
|
+
default?: ((args_0: GroupItemProvide) => vue.VNodeChild) | undefined;
|
|
128
|
+
} | undefined;
|
|
117
129
|
'v-slots'?: {
|
|
118
130
|
default?: false | ((args_0: GroupItemProvide) => vue.VNodeChild) | undefined;
|
|
119
131
|
} | undefined;
|
|
@@ -6,6 +6,9 @@ declare const VKbd: vue.DefineComponent<{
|
|
|
6
6
|
$children?: vue.VNodeChild | (() => vue.VNodeChild) | {
|
|
7
7
|
default?: (() => vue.VNodeChild) | undefined;
|
|
8
8
|
};
|
|
9
|
+
$slots?: {
|
|
10
|
+
default?: (() => vue.VNodeChild) | undefined;
|
|
11
|
+
} | undefined;
|
|
9
12
|
'v-slots'?: {
|
|
10
13
|
default?: false | (() => vue.VNodeChild) | undefined;
|
|
11
14
|
} | undefined;
|
|
@@ -19,6 +22,9 @@ declare const VKbd: vue.DefineComponent<{
|
|
|
19
22
|
$children?: vue.VNodeChild | (() => vue.VNodeChild) | {
|
|
20
23
|
default?: (() => vue.VNodeChild) | undefined;
|
|
21
24
|
};
|
|
25
|
+
$slots?: {
|
|
26
|
+
default?: (() => vue.VNodeChild) | undefined;
|
|
27
|
+
} | undefined;
|
|
22
28
|
'v-slots'?: {
|
|
23
29
|
default?: false | (() => vue.VNodeChild) | undefined;
|
|
24
30
|
} | undefined;
|
|
@@ -9,6 +9,9 @@ declare const VLabel: vue.DefineComponent<{
|
|
|
9
9
|
$children?: vue.VNodeChild | (() => vue.VNodeChild) | {
|
|
10
10
|
default?: (() => vue.VNodeChild) | undefined;
|
|
11
11
|
};
|
|
12
|
+
$slots?: {
|
|
13
|
+
default?: (() => vue.VNodeChild) | undefined;
|
|
14
|
+
} | undefined;
|
|
12
15
|
'v-slots'?: {
|
|
13
16
|
default?: false | (() => vue.VNodeChild) | undefined;
|
|
14
17
|
} | undefined;
|
|
@@ -23,6 +26,9 @@ declare const VLabel: vue.DefineComponent<{
|
|
|
23
26
|
$children?: vue.VNodeChild | (() => vue.VNodeChild) | {
|
|
24
27
|
default?: (() => vue.VNodeChild) | undefined;
|
|
25
28
|
};
|
|
29
|
+
$slots?: {
|
|
30
|
+
default?: (() => vue.VNodeChild) | undefined;
|
|
31
|
+
} | undefined;
|
|
26
32
|
'v-slots'?: {
|
|
27
33
|
default?: false | (() => vue.VNodeChild) | undefined;
|
|
28
34
|
} | undefined;
|
|
@@ -8,6 +8,9 @@ declare const VLayout: vue.DefineComponent<{
|
|
|
8
8
|
$children?: vue.VNodeChild | (() => vue.VNodeChild) | {
|
|
9
9
|
default?: (() => vue.VNodeChild) | undefined;
|
|
10
10
|
};
|
|
11
|
+
$slots?: {
|
|
12
|
+
default?: (() => vue.VNodeChild) | undefined;
|
|
13
|
+
} | undefined;
|
|
11
14
|
'v-slots'?: {
|
|
12
15
|
default?: false | (() => vue.VNodeChild) | undefined;
|
|
13
16
|
} | undefined;
|
|
@@ -40,6 +43,9 @@ declare const VLayout: vue.DefineComponent<{
|
|
|
40
43
|
$children?: vue.VNodeChild | (() => vue.VNodeChild) | {
|
|
41
44
|
default?: (() => vue.VNodeChild) | undefined;
|
|
42
45
|
};
|
|
46
|
+
$slots?: {
|
|
47
|
+
default?: (() => vue.VNodeChild) | undefined;
|
|
48
|
+
} | undefined;
|
|
43
49
|
'v-slots'?: {
|
|
44
50
|
default?: false | (() => vue.VNodeChild) | undefined;
|
|
45
51
|
} | undefined;
|
|
@@ -62,6 +68,9 @@ declare const VLayoutItem: vue.DefineComponent<{
|
|
|
62
68
|
$children?: vue.VNodeChild | (() => vue.VNodeChild) | {
|
|
63
69
|
default?: (() => vue.VNodeChild) | undefined;
|
|
64
70
|
};
|
|
71
|
+
$slots?: {
|
|
72
|
+
default?: (() => vue.VNodeChild) | undefined;
|
|
73
|
+
} | undefined;
|
|
65
74
|
'v-slots'?: {
|
|
66
75
|
default?: false | (() => vue.VNodeChild) | undefined;
|
|
67
76
|
} | undefined;
|
|
@@ -79,6 +88,9 @@ declare const VLayoutItem: vue.DefineComponent<{
|
|
|
79
88
|
$children?: vue.VNodeChild | (() => vue.VNodeChild) | {
|
|
80
89
|
default?: (() => vue.VNodeChild) | undefined;
|
|
81
90
|
};
|
|
91
|
+
$slots?: {
|
|
92
|
+
default?: (() => vue.VNodeChild) | undefined;
|
|
93
|
+
} | undefined;
|
|
82
94
|
'v-slots'?: {
|
|
83
95
|
default?: false | (() => vue.VNodeChild) | undefined;
|
|
84
96
|
} | undefined;
|
|
@@ -18,6 +18,9 @@ declare const VLazy: vue.DefineComponent<{
|
|
|
18
18
|
$children?: vue.VNodeChild | (() => vue.VNodeChild) | {
|
|
19
19
|
default?: (() => vue.VNodeChild) | undefined;
|
|
20
20
|
};
|
|
21
|
+
$slots?: {
|
|
22
|
+
default?: (() => vue.VNodeChild) | undefined;
|
|
23
|
+
} | undefined;
|
|
21
24
|
'v-slots'?: {
|
|
22
25
|
default?: false | (() => vue.VNodeChild) | undefined;
|
|
23
26
|
} | undefined;
|
|
@@ -43,6 +46,9 @@ declare const VLazy: vue.DefineComponent<{
|
|
|
43
46
|
$children?: vue.VNodeChild | (() => vue.VNodeChild) | {
|
|
44
47
|
default?: (() => vue.VNodeChild) | undefined;
|
|
45
48
|
};
|
|
49
|
+
$slots?: {
|
|
50
|
+
default?: (() => vue.VNodeChild) | undefined;
|
|
51
|
+
} | undefined;
|
|
46
52
|
'v-slots'?: {
|
|
47
53
|
default?: false | (() => vue.VNodeChild) | undefined;
|
|
48
54
|
} | undefined;
|