vuetify 3.3.0 → 3.3.1
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 +51 -19
- package/dist/json/importMap.json +22 -22
- package/dist/json/tags.json +8 -0
- package/dist/json/web-types.json +528 -448
- package/dist/vuetify-labs.css +84 -83
- package/dist/vuetify-labs.d.ts +5572 -10787
- package/dist/vuetify-labs.esm.js +173 -29
- package/dist/vuetify-labs.esm.js.map +1 -1
- package/dist/vuetify-labs.js +173 -29
- package/dist/vuetify-labs.min.css +2 -2
- package/dist/vuetify.css +113 -112
- package/dist/vuetify.d.ts +3683 -7528
- package/dist/vuetify.esm.js +4 -4
- package/dist/vuetify.esm.js.map +1 -1
- package/dist/vuetify.js +4 -4
- package/dist/vuetify.js.map +1 -1
- package/dist/vuetify.min.css +2 -2
- package/dist/vuetify.min.js +4 -4
- package/dist/vuetify.min.js.map +1 -1
- package/lib/components/VAlert/VAlert.mjs.map +1 -1
- package/lib/components/VAlert/_variables.scss +2 -2
- package/lib/components/VAlert/index.d.mts +15 -73
- package/lib/components/VApp/index.d.mts +0 -15
- package/lib/components/VAppBar/index.d.mts +0 -81
- package/lib/components/VAutocomplete/VAutocomplete.mjs.map +1 -1
- package/lib/components/VAutocomplete/index.d.mts +117 -171
- package/lib/components/VAvatar/_variables.scss +1 -1
- package/lib/components/VAvatar/index.d.mts +0 -15
- package/lib/components/VBadge/VBadge.mjs.map +1 -1
- package/lib/components/VBadge/index.d.mts +0 -19
- package/lib/components/VBanner/VBanner.mjs.map +1 -1
- package/lib/components/VBanner/index.d.mts +0 -57
- package/lib/components/VBottomNavigation/index.d.mts +0 -15
- package/lib/components/VBreadcrumbs/VBreadcrumbs.mjs.map +1 -1
- package/lib/components/VBreadcrumbs/index.d.mts +30 -60
- package/lib/components/VBtn/VBtn.mjs.map +1 -1
- package/lib/components/VBtn/_variables.scss +15 -15
- package/lib/components/VBtn/index.d.mts +0 -27
- package/lib/components/VBtnGroup/index.d.mts +0 -15
- package/lib/components/VBtnToggle/VBtnToggle.mjs.map +1 -1
- package/lib/components/VBtnToggle/index.d.mts +19 -34
- package/lib/components/VCard/VCard.mjs.map +1 -1
- package/lib/components/VCard/VCard.sass +2 -2
- package/lib/components/VCard/VCardItem.mjs.map +1 -1
- package/lib/components/VCard/_variables.scss +10 -11
- package/lib/components/VCard/index.d.mts +15 -157
- package/lib/components/VCarousel/VCarousel.mjs.map +1 -1
- package/lib/components/VCarousel/index.d.mts +79 -237
- package/lib/components/VCheckbox/index.d.mts +143 -229
- package/lib/components/VChip/VChip.mjs.map +1 -1
- package/lib/components/VChip/index.d.mts +19 -82
- package/lib/components/VChipGroup/VChipGroup.mjs.map +1 -1
- package/lib/components/VChipGroup/index.d.mts +19 -58
- package/lib/components/VCode/index.d.mts +0 -15
- package/lib/components/VCombobox/VCombobox.mjs.map +1 -1
- package/lib/components/VCombobox/index.d.mts +117 -171
- package/lib/components/VCounter/VCounter.mjs.map +1 -1
- package/lib/components/VCounter/index.d.mts +19 -34
- package/lib/components/VDefaultsProvider/index.d.mts +0 -15
- package/lib/components/VDialog/index.d.mts +112 -238
- package/lib/components/VDivider/index.d.mts +0 -15
- package/lib/components/VExpansionPanel/VExpansionPanel.mjs.map +1 -1
- package/lib/components/VExpansionPanel/VExpansionPanelTitle.mjs.map +1 -1
- package/lib/components/VExpansionPanel/index.d.mts +34 -106
- package/lib/components/VField/VField.mjs.map +1 -1
- package/lib/components/VField/VField.sass +0 -1
- package/lib/components/VField/_variables.scss +1 -0
- package/lib/components/VField/index.d.mts +34 -49
- package/lib/components/VFileInput/VFileInput.mjs.map +1 -1
- package/lib/components/VFileInput/index.d.mts +331 -487
- package/lib/components/VFooter/_variables.scss +1 -1
- package/lib/components/VFooter/index.d.mts +0 -15
- package/lib/components/VForm/VForm.mjs.map +1 -1
- package/lib/components/VForm/index.d.mts +19 -146
- package/lib/components/VGrid/index.d.mts +0 -60
- package/lib/components/VHover/VHover.mjs.map +1 -1
- package/lib/components/VHover/index.d.mts +19 -46
- package/lib/components/VIcon/index.d.mts +0 -30
- package/lib/components/VImg/VImg.mjs.map +1 -1
- package/lib/components/VImg/index.d.mts +0 -27
- package/lib/components/VInput/VInput.mjs +1 -1
- package/lib/components/VInput/VInput.mjs.map +1 -1
- package/lib/components/VInput/_variables.scss +1 -1
- package/lib/components/VInput/index.d.mts +79 -110
- package/lib/components/VItemGroup/VItem.mjs.map +1 -1
- package/lib/components/VItemGroup/VItemGroup.mjs.map +1 -1
- package/lib/components/VItemGroup/index.d.mts +38 -120
- package/lib/components/VKbd/index.d.mts +0 -15
- package/lib/components/VLabel/index.d.mts +0 -15
- package/lib/components/VLayout/index.d.mts +0 -30
- package/lib/components/VLazy/index.d.mts +0 -15
- package/lib/components/VList/VListChildren.mjs.map +1 -1
- package/lib/components/VList/VListGroup.mjs.map +1 -1
- package/lib/components/VList/VListItem.mjs.map +1 -1
- package/lib/components/VList/_variables.scss +6 -6
- package/lib/components/VList/index.d.mts +164 -316
- package/lib/components/VLocaleProvider/index.d.mts +0 -15
- package/lib/components/VMain/index.d.mts +0 -15
- package/lib/components/VMenu/index.d.mts +112 -238
- package/lib/components/VMessages/VMessages.mjs.map +1 -1
- package/lib/components/VMessages/index.d.mts +15 -30
- package/lib/components/VNavigationDrawer/VNavigationDrawer.mjs.map +1 -1
- package/lib/components/VNavigationDrawer/index.d.mts +15 -42
- package/lib/components/VOverlay/VOverlay.mjs.map +1 -1
- package/lib/components/VOverlay/index.d.mts +34 -73
- package/lib/components/VPagination/VPagination.mjs.map +1 -1
- package/lib/components/VPagination/index.d.mts +75 -106
- package/lib/components/VParallax/index.d.mts +0 -27
- package/lib/components/VProgressCircular/VProgressCircular.mjs.map +1 -1
- package/lib/components/VProgressCircular/index.d.mts +19 -42
- package/lib/components/VProgressLinear/VProgressLinear.mjs.map +1 -1
- package/lib/components/VProgressLinear/index.d.mts +19 -46
- package/lib/components/VRadio/index.d.mts +30 -65
- package/lib/components/VRadioGroup/index.d.mts +109 -160
- package/lib/components/VRangeSlider/index.d.mts +94 -137
- package/lib/components/VRating/VRating.mjs.map +1 -1
- package/lib/components/VRating/index.d.mts +30 -49
- package/lib/components/VResponsive/VResponsive.mjs.map +1 -1
- package/lib/components/VResponsive/index.d.mts +0 -19
- package/lib/components/VSelect/VSelect.mjs.map +1 -1
- package/lib/components/VSelect/index.d.mts +117 -171
- package/lib/components/VSelectionControl/VSelectionControl.mjs.map +1 -1
- package/lib/components/VSelectionControl/index.d.mts +22 -22
- package/lib/components/VSelectionControlGroup/index.d.mts +0 -15
- package/lib/components/VSheet/index.d.mts +0 -15
- package/lib/components/VSlideGroup/VSlideGroup.mjs.map +1 -1
- package/lib/components/VSlideGroup/VSlideGroupItem.mjs.map +1 -1
- package/lib/components/VSlideGroup/index.d.mts +68 -126
- package/lib/components/VSlider/VSlider.css +5 -4
- package/lib/components/VSlider/VSlider.mjs.map +1 -1
- package/lib/components/VSlider/VSlider.sass +5 -4
- package/lib/components/VSlider/VSliderThumb.mjs.map +1 -1
- package/lib/components/VSlider/VSliderTrack.mjs.map +1 -1
- package/lib/components/VSlider/index.d.mts +94 -137
- package/lib/components/VSnackbar/VSnackbar.mjs.map +1 -1
- package/lib/components/VSnackbar/_variables.scss +1 -1
- package/lib/components/VSnackbar/index.d.mts +93 -215
- package/lib/components/VSwitch/VSwitch.mjs.map +1 -1
- package/lib/components/VSwitch/index.d.mts +124 -179
- package/lib/components/VSystemBar/_variables.scss +2 -2
- package/lib/components/VSystemBar/index.d.mts +0 -15
- package/lib/components/VTable/VTable.mjs.map +1 -1
- package/lib/components/VTable/_variables.scss +1 -1
- package/lib/components/VTable/index.d.mts +0 -27
- package/lib/components/VTabs/index.d.mts +0 -30
- package/lib/components/VTextField/VTextField.mjs.map +1 -1
- package/lib/components/VTextField/index.d.mts +361 -497
- package/lib/components/VTextarea/VTextarea.mjs.map +1 -1
- package/lib/components/VTextarea/index.d.mts +312 -444
- package/lib/components/VThemeProvider/index.d.mts +0 -15
- package/lib/components/VTimeline/VTimelineItem.mjs.map +1 -1
- package/lib/components/VTimeline/index.d.mts +0 -38
- package/lib/components/VToolbar/VToolbar.mjs.map +1 -1
- package/lib/components/VToolbar/VToolbarTitle.mjs.map +1 -1
- package/lib/components/VToolbar/_variables.scss +2 -2
- package/lib/components/VToolbar/index.d.mts +0 -69
- package/lib/components/VTooltip/index.d.mts +112 -238
- package/lib/components/VValidation/VValidation.mjs.map +1 -1
- package/lib/components/VValidation/index.d.mts +19 -90
- package/lib/components/VVirtualScroll/VVirtualScroll.mjs.map +1 -1
- package/lib/components/VVirtualScroll/index.d.mts +17 -17
- package/lib/components/VWindow/VWindow.mjs.map +1 -1
- package/lib/components/VWindow/index.d.mts +64 -138
- package/lib/components/index.d.mts +3269 -7114
- package/lib/components/transitions/index.d.mts +0 -240
- package/lib/composables/loader.mjs.map +1 -1
- package/lib/entry-bundler.mjs +1 -1
- package/lib/framework.mjs +1 -1
- package/lib/index.d.mts +6 -6
- package/lib/labs/VBottomSheet/index.d.mts +34 -73
- package/lib/labs/VDataIterator/VDataIterator.mjs +6 -3
- package/lib/labs/VDataIterator/VDataIterator.mjs.map +1 -1
- package/lib/labs/VDataIterator/composables/items.mjs +7 -1
- package/lib/labs/VDataIterator/composables/items.mjs.map +1 -1
- package/lib/labs/VDataIterator/index.d.mts +115 -105
- package/lib/labs/VDataTable/VDataTable.mjs +6 -3
- package/lib/labs/VDataTable/VDataTable.mjs.map +1 -1
- package/lib/labs/VDataTable/VDataTableFooter.mjs.map +1 -1
- package/lib/labs/VDataTable/VDataTableGroupHeaderRow.mjs.map +1 -1
- package/lib/labs/VDataTable/VDataTableHeaders.mjs +4 -3
- package/lib/labs/VDataTable/VDataTableHeaders.mjs.map +1 -1
- package/lib/labs/VDataTable/VDataTableRow.mjs +1 -0
- package/lib/labs/VDataTable/VDataTableRow.mjs.map +1 -1
- package/lib/labs/VDataTable/VDataTableRows.mjs.map +1 -1
- package/lib/labs/VDataTable/VDataTableServer.mjs +8 -3
- package/lib/labs/VDataTable/VDataTableServer.mjs.map +1 -1
- package/lib/labs/VDataTable/VDataTableVirtual.mjs +6 -3
- package/lib/labs/VDataTable/VDataTableVirtual.mjs.map +1 -1
- package/lib/labs/VDataTable/composables/items.mjs +7 -1
- package/lib/labs/VDataTable/composables/items.mjs.map +1 -1
- package/lib/labs/VDataTable/composables/paginate.mjs.map +1 -1
- package/lib/labs/VDataTable/composables/select.mjs +124 -8
- package/lib/labs/VDataTable/composables/select.mjs.map +1 -1
- package/lib/labs/VDataTable/index.d.mts +1630 -2916
- package/lib/labs/VDataTable/types.mjs.map +1 -1
- package/lib/labs/VInfiniteScroll/VInfiniteScroll.mjs.map +1 -1
- package/lib/labs/VInfiniteScroll/index.d.mts +60 -91
- package/lib/labs/VSkeletonLoader/VSkeletonLoader.mjs.map +1 -1
- package/lib/labs/VSkeletonLoader/index.d.mts +0 -15
- package/lib/labs/components.d.mts +1882 -3252
- package/lib/styles/settings/_colors.scss +18 -15
- package/lib/util/defineComponent.mjs.map +1 -1
- package/package.json +4 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VSwitch.mjs","names":["makeSelectionControlProps","VSelectionControl","makeVInputProps","VInput","VProgressCircular","LoaderSlot","useLoader","useFocus","useProxiedModel","computed","ref","filterInputAttrs","genericComponent","getUid","propsFactory","useRender","makeVSwitchProps","indeterminate","Boolean","inset","flat","loading","type","String","default","VSwitch","name","inheritAttrs","props","emits","focused","update:modelValue","val","setup","_ref","attrs","slots","model","loaderClasses","isFocused","focus","blur","loaderColor","color","uid","id","onChange","value","inputAttrs","controlAttrs","inputProps","_1","filterProps","controlProps","_2","control","onClick","e","stopPropagation","preventDefault","input","click","_createVNode","_mergeProps","class","style","_ref2","messagesId","isDisabled","isReadonly","isValid","$event","undefined","_ref3","textColorClasses","textColorStyles","slotProps","loader","isActive"],"sources":["../../../src/components/VSwitch/VSwitch.tsx"],"sourcesContent":["// Styles\nimport './VSwitch.sass'\n\n// Components\nimport { makeSelectionControlProps, VSelectionControl } from '@/components/VSelectionControl/VSelectionControl'\nimport { makeVInputProps, VInput } from '@/components/VInput/VInput'\nimport { VProgressCircular } from '@/components/VProgressCircular'\n\n// Composables\nimport { LoaderSlot, useLoader } from '@/composables/loader'\nimport { useFocus } from '@/composables/focus'\nimport { useProxiedModel } from '@/composables/proxiedModel'\n\n// Utility\nimport { computed, ref } from 'vue'\nimport { filterInputAttrs, genericComponent, getUid, propsFactory, useRender } from '@/util'\n\n// Types\nimport type { VInputSlots } from '@/components/VInput/VInput'\nimport type { VSelectionControlSlots } from '@/components/VSelectionControl/VSelectionControl'\nimport type { LoaderSlotProps } from '@/composables/loader'\n\nexport type VSwitchSlots =\n & VInputSlots\n & VSelectionControlSlots\n & { loader: [LoaderSlotProps] }\n\nexport const makeVSwitchProps = propsFactory({\n indeterminate: Boolean,\n inset: Boolean,\n flat: Boolean,\n loading: {\n type: [Boolean, String],\n default: false,\n },\n\n ...makeVInputProps(),\n ...makeSelectionControlProps(),\n}, 'v-switch')\n\nexport const VSwitch = genericComponent<VSwitchSlots>()({\n name: 'VSwitch',\n\n inheritAttrs: false,\n\n props: makeVSwitchProps(),\n\n emits: {\n 'update:focused': (focused: boolean) => true,\n 'update:modelValue': () => true,\n 'update:indeterminate': (val: boolean) => true,\n },\n\n setup (props, { attrs, slots }) {\n const indeterminate = useProxiedModel(props, 'indeterminate')\n const model = useProxiedModel(props, 'modelValue')\n const { loaderClasses } = useLoader(props)\n const { isFocused, focus, blur } = useFocus(props)\n\n const loaderColor = computed(() => {\n return typeof props.loading === 'string' && props.loading !== ''\n ? props.loading\n : props.color\n })\n\n const uid = getUid()\n const id = computed(() => props.id || `switch-${uid}`)\n\n function onChange () {\n if (indeterminate.value) {\n indeterminate.value = false\n }\n }\n\n useRender(() => {\n const [inputAttrs, controlAttrs] = filterInputAttrs(attrs)\n const [inputProps, _1] = VInput.filterProps(props)\n const [controlProps, _2] = VSelectionControl.filterProps(props)\n const control = ref<VSelectionControl>()\n\n function onClick (e: Event) {\n e.stopPropagation()\n e.preventDefault()\n control.value?.input?.click()\n }\n\n return (\n <VInput\n class={[\n 'v-switch',\n { 'v-switch--inset': props.inset },\n { 'v-switch--indeterminate': indeterminate.value },\n loaderClasses.value,\n props.class,\n ]}\n style={ props.style }\n { ...inputAttrs }\n { ...inputProps }\n id={ id.value }\n focused={ isFocused.value }\n >\n {{\n ...slots,\n default: ({\n id,\n messagesId,\n isDisabled,\n isReadonly,\n isValid,\n }) => (\n <VSelectionControl\n ref={ control }\n { ...controlProps }\n v-model={ model.value }\n id={ id.value }\n aria-describedby={ messagesId.value }\n type=\"checkbox\"\n onUpdate:modelValue={ onChange }\n aria-checked={ indeterminate.value ? 'mixed' : undefined }\n disabled={ isDisabled.value }\n readonly={ isReadonly.value }\n onFocus={ focus }\n onBlur={ blur }\n { ...controlAttrs }\n >\n {{\n ...slots,\n default: () => (<div class=\"v-switch__track\" onClick={ onClick }></div>),\n input: ({ textColorClasses, textColorStyles }) => (\n <div\n class={[\n 'v-switch__thumb',\n textColorClasses.value,\n ]}\n style={ textColorStyles.value }\n >\n { props.loading && (\n <LoaderSlot\n name=\"v-switch\"\n active\n color={ isValid.value === false ? undefined : loaderColor.value }\n >\n { slotProps => (\n slots.loader\n ? slots.loader(slotProps)\n : (\n <VProgressCircular\n active={ slotProps.isActive }\n color={ slotProps.color }\n indeterminate\n size=\"16\"\n width=\"2\"\n />\n )\n )}\n </LoaderSlot>\n )}\n </div>\n ),\n }}\n </VSelectionControl>\n ),\n }}\n </VInput>\n )\n })\n\n return {}\n },\n})\n\nexport type VSwitch = InstanceType<typeof VSwitch>\n"],"mappings":";AAAA;AACA;;AAEA;AAAA,SACSA,yBAAyB,EAAEC,iBAAiB;AAAA,SAC5CC,eAAe,EAAEC,MAAM;AAAA,SACvBC,iBAAiB,0CAE1B;AAAA,SACSC,UAAU,EAAEC,SAAS;AAAA,SACrBC,QAAQ;AAAA,SACRC,eAAe,8CAExB;AAC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AAQ;kBAAA,SACnBF,SAAS,CAACjC,KAAK;kBAAA;kBAAA,QAElB,IAAI;kBAAA,SACH;gBAAG;cAGlB,EAEJ;YAAA;UAEJ;QAAA;MAGN;IAIT,CAAC,CAAC;IAEF,OAAO,CAAC,CAAC;EACX;AACF,CAAC,CAAC"}
|
|
1
|
+
{"version":3,"file":"VSwitch.mjs","names":["makeSelectionControlProps","VSelectionControl","makeVInputProps","VInput","VProgressCircular","LoaderSlot","useLoader","useFocus","useProxiedModel","computed","ref","filterInputAttrs","genericComponent","getUid","propsFactory","useRender","makeVSwitchProps","indeterminate","Boolean","inset","flat","loading","type","String","default","VSwitch","name","inheritAttrs","props","emits","focused","update:modelValue","val","setup","_ref","attrs","slots","model","loaderClasses","isFocused","focus","blur","loaderColor","color","uid","id","onChange","value","inputAttrs","controlAttrs","inputProps","_1","filterProps","controlProps","_2","control","onClick","e","stopPropagation","preventDefault","input","click","_createVNode","_mergeProps","class","style","_ref2","messagesId","isDisabled","isReadonly","isValid","$event","undefined","_ref3","textColorClasses","textColorStyles","slotProps","loader","isActive"],"sources":["../../../src/components/VSwitch/VSwitch.tsx"],"sourcesContent":["// Styles\nimport './VSwitch.sass'\n\n// Components\nimport { makeSelectionControlProps, VSelectionControl } from '@/components/VSelectionControl/VSelectionControl'\nimport { makeVInputProps, VInput } from '@/components/VInput/VInput'\nimport { VProgressCircular } from '@/components/VProgressCircular'\n\n// Composables\nimport { LoaderSlot, useLoader } from '@/composables/loader'\nimport { useFocus } from '@/composables/focus'\nimport { useProxiedModel } from '@/composables/proxiedModel'\n\n// Utility\nimport { computed, ref } from 'vue'\nimport { filterInputAttrs, genericComponent, getUid, propsFactory, useRender } from '@/util'\n\n// Types\nimport type { VInputSlots } from '@/components/VInput/VInput'\nimport type { VSelectionControlSlots } from '@/components/VSelectionControl/VSelectionControl'\nimport type { LoaderSlotProps } from '@/composables/loader'\n\nexport type VSwitchSlots =\n & VInputSlots\n & VSelectionControlSlots\n & { loader: LoaderSlotProps }\n\nexport const makeVSwitchProps = propsFactory({\n indeterminate: Boolean,\n inset: Boolean,\n flat: Boolean,\n loading: {\n type: [Boolean, String],\n default: false,\n },\n\n ...makeVInputProps(),\n ...makeSelectionControlProps(),\n}, 'v-switch')\n\nexport const VSwitch = genericComponent<VSwitchSlots>()({\n name: 'VSwitch',\n\n inheritAttrs: false,\n\n props: makeVSwitchProps(),\n\n emits: {\n 'update:focused': (focused: boolean) => true,\n 'update:modelValue': () => true,\n 'update:indeterminate': (val: boolean) => true,\n },\n\n setup (props, { attrs, slots }) {\n const indeterminate = useProxiedModel(props, 'indeterminate')\n const model = useProxiedModel(props, 'modelValue')\n const { loaderClasses } = useLoader(props)\n const { isFocused, focus, blur } = useFocus(props)\n\n const loaderColor = computed(() => {\n return typeof props.loading === 'string' && props.loading !== ''\n ? props.loading\n : props.color\n })\n\n const uid = getUid()\n const id = computed(() => props.id || `switch-${uid}`)\n\n function onChange () {\n if (indeterminate.value) {\n indeterminate.value = false\n }\n }\n\n useRender(() => {\n const [inputAttrs, controlAttrs] = filterInputAttrs(attrs)\n const [inputProps, _1] = VInput.filterProps(props)\n const [controlProps, _2] = VSelectionControl.filterProps(props)\n const control = ref<VSelectionControl>()\n\n function onClick (e: Event) {\n e.stopPropagation()\n e.preventDefault()\n control.value?.input?.click()\n }\n\n return (\n <VInput\n class={[\n 'v-switch',\n { 'v-switch--inset': props.inset },\n { 'v-switch--indeterminate': indeterminate.value },\n loaderClasses.value,\n props.class,\n ]}\n style={ props.style }\n { ...inputAttrs }\n { ...inputProps }\n id={ id.value }\n focused={ isFocused.value }\n >\n {{\n ...slots,\n default: ({\n id,\n messagesId,\n isDisabled,\n isReadonly,\n isValid,\n }) => (\n <VSelectionControl\n ref={ control }\n { ...controlProps }\n v-model={ model.value }\n id={ id.value }\n aria-describedby={ messagesId.value }\n type=\"checkbox\"\n onUpdate:modelValue={ onChange }\n aria-checked={ indeterminate.value ? 'mixed' : undefined }\n disabled={ isDisabled.value }\n readonly={ isReadonly.value }\n onFocus={ focus }\n onBlur={ blur }\n { ...controlAttrs }\n >\n {{\n ...slots,\n default: () => (<div class=\"v-switch__track\" onClick={ onClick }></div>),\n input: ({ textColorClasses, textColorStyles }) => (\n <div\n class={[\n 'v-switch__thumb',\n textColorClasses.value,\n ]}\n style={ textColorStyles.value }\n >\n { props.loading && (\n <LoaderSlot\n name=\"v-switch\"\n active\n color={ isValid.value === false ? undefined : loaderColor.value }\n >\n { slotProps => (\n slots.loader\n ? slots.loader(slotProps)\n : (\n <VProgressCircular\n active={ slotProps.isActive }\n color={ slotProps.color }\n indeterminate\n size=\"16\"\n width=\"2\"\n />\n )\n )}\n </LoaderSlot>\n )}\n </div>\n ),\n }}\n </VSelectionControl>\n ),\n }}\n </VInput>\n )\n })\n\n return {}\n },\n})\n\nexport type VSwitch = InstanceType<typeof VSwitch>\n"],"mappings":";AAAA;AACA;;AAEA;AAAA,SACSA,yBAAyB,EAAEC,iBAAiB;AAAA,SAC5CC,eAAe,EAAEC,MAAM;AAAA,SACvBC,iBAAiB,0CAE1B;AAAA,SACSC,UAAU,EAAEC,SAAS;AAAA,SACrBC,QAAQ;AAAA,SACRC,eAAe,8CAExB;AACA,SAASC,QAAQ,EAAEC,GAAG,QAAQ,KAAK;AAAA,SAC1BC,gBAAgB,EAAEC,gBAAgB,EAAEC,MAAM,EAAEC,YAAY,EAAEC,SAAS,gCAE5E;AAUA,OAAO,MAAMC,gBAAgB,GAAGF,YAAY,CAAC;EAC3CG,aAAa,EAAEC,OAAO;EACtBC,KAAK,EAAED,OAAO;EACdE,IAAI,EAAEF,OAAO;EACbG,OAAO,EAAE;IACPC,IAAI,EAAE,CAACJ,OAAO,EAAEK,MAAM,CAAC;IACvBC,OAAO,EAAE;EACX,CAAC;EAED,GAAGtB,eAAe,EAAE;EACpB,GAAGF,yBAAyB;AAC9B,CAAC,EAAE,UAAU,CAAC;AAEd,OAAO,MAAMyB,OAAO,GAAGb,gBAAgB,EAAgB,CAAC;EACtDc,IAA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KAAK;YAAA,YAChBsB,UAAU,CAACtB,KAAK;YAAA,WACjBP,KAAK;YAAA,UACNC;UAAI,GACRQ,YAAY;YAGf,GAAGb,KAAK;YACRZ,OAAO,EAAEA,CAAA,KAAAsC,YAAA;cAAA,SAAkB,iBAAiB;cAAA,WAAWN;YAAO,QAAU;YACxEI,KAAK,EAAEa,KAAA;cAAA,IAAC;gBAAEC,gBAAgB;gBAAEC;cAAgB,CAAC,GAAAF,KAAA;cAAA,OAAAX,YAAA;gBAAA,SAElC,CACL,iBAAiB,EACjBY,gBAAgB,CAAC3B,KAAK,CACvB;gBAAA,SACO4B,eAAe,CAAC5B;cAAK,IAE3BnB,KAAK,CAACP,OAAO,IAAAyC,YAAA,CAAAzD,UAAA;gBAAA,QAEN,UAAU;gBAAA;gBAAA,SAEPiE,OAAO,CAACvB,KAAK,KAAK,KAAK,GAAGyB,SAAS,GAAG9B,WAAW,CAACK;cAAK;gBAAAvB,OAAA,EAE7DoD,SAAS,IACTxC,KAAK,CAACyC,MAAM,GACRzC,KAAK,CAACyC,MAAM,CAACD,SAAS,CAAC,GAAAd,YAAA,CAAA1D,iBAAA;kBAAA,UAGVwE,SAAS,CAACE,QAAQ;kBAAA,SACnBF,SAAS,CAACjC,KAAK;kBAAA;kBAAA,QAElB,IAAI;kBAAA,SACH;gBAAG;cAGlB,EAEJ;YAAA;UAEJ;QAAA;MAGN;IAIT,CAAC,CAAC;IAEF,OAAO,CAAC,CAAC;EACX;AACF,CAAC,CAAC"}
|
|
@@ -85,49 +85,36 @@ declare const VSwitch: {
|
|
|
85
85
|
value?: any;
|
|
86
86
|
label?: string | undefined;
|
|
87
87
|
class?: any;
|
|
88
|
-
$children?: vue.VNodeChild | ((
|
|
89
|
-
default?: ((
|
|
90
|
-
prepend?: ((
|
|
91
|
-
append?: ((
|
|
92
|
-
details?: ((
|
|
93
|
-
message?: ((
|
|
94
|
-
label?: ((
|
|
88
|
+
$children?: vue.VNodeChild | (() => vue.VNodeChild) | {
|
|
89
|
+
default?: (() => vue.VNodeChild) | undefined;
|
|
90
|
+
prepend?: ((arg: VInputSlot) => vue.VNodeChild) | undefined;
|
|
91
|
+
append?: ((arg: VInputSlot) => vue.VNodeChild) | undefined;
|
|
92
|
+
details?: ((arg: VInputSlot) => vue.VNodeChild) | undefined;
|
|
93
|
+
message?: ((arg: VMessageSlot) => vue.VNodeChild) | undefined;
|
|
94
|
+
label?: ((arg: {
|
|
95
95
|
label: string | undefined;
|
|
96
96
|
props: Record<string, unknown>;
|
|
97
97
|
}) => vue.VNodeChild) | undefined;
|
|
98
|
-
input?: ((
|
|
99
|
-
loader?: ((
|
|
98
|
+
input?: ((arg: SelectionControlSlot) => vue.VNodeChild) | undefined;
|
|
99
|
+
loader?: ((arg: LoaderSlotProps) => vue.VNodeChild) | undefined;
|
|
100
100
|
};
|
|
101
101
|
ref?: vue.VNodeRef | undefined;
|
|
102
102
|
ref_for?: boolean | undefined;
|
|
103
103
|
ref_key?: string | undefined;
|
|
104
104
|
theme?: string | undefined;
|
|
105
|
-
"v-slot:default"?: false | ((
|
|
105
|
+
"v-slot:default"?: false | (() => vue.VNodeChild) | undefined;
|
|
106
106
|
'v-slots'?: {
|
|
107
|
-
default?: false | ((
|
|
108
|
-
prepend?: false | ((
|
|
109
|
-
append?: false | ((
|
|
110
|
-
details?: false | ((
|
|
111
|
-
message?: false | ((
|
|
112
|
-
label?: false | ((
|
|
107
|
+
default?: false | (() => vue.VNodeChild) | undefined;
|
|
108
|
+
prepend?: false | ((arg: VInputSlot) => vue.VNodeChild) | undefined;
|
|
109
|
+
append?: false | ((arg: VInputSlot) => vue.VNodeChild) | undefined;
|
|
110
|
+
details?: false | ((arg: VInputSlot) => vue.VNodeChild) | undefined;
|
|
111
|
+
message?: false | ((arg: VMessageSlot) => vue.VNodeChild) | undefined;
|
|
112
|
+
label?: false | ((arg: {
|
|
113
113
|
label: string | undefined;
|
|
114
114
|
props: Record<string, unknown>;
|
|
115
115
|
}) => vue.VNodeChild) | undefined;
|
|
116
|
-
input?: false | ((
|
|
117
|
-
loader?: false | ((
|
|
118
|
-
} | undefined;
|
|
119
|
-
$slots?: {
|
|
120
|
-
default?: ((...args: never) => vue.VNodeChild) | undefined;
|
|
121
|
-
prepend?: ((args_0: VInputSlot) => vue.VNodeChild) | undefined;
|
|
122
|
-
append?: ((args_0: VInputSlot) => vue.VNodeChild) | undefined;
|
|
123
|
-
details?: ((args_0: VInputSlot) => vue.VNodeChild) | undefined;
|
|
124
|
-
message?: ((args_0: VMessageSlot) => vue.VNodeChild) | undefined;
|
|
125
|
-
label?: ((args_0: {
|
|
126
|
-
label: string | undefined;
|
|
127
|
-
props: Record<string, unknown>;
|
|
128
|
-
}) => vue.VNodeChild) | undefined;
|
|
129
|
-
input?: ((args_0: SelectionControlSlot) => vue.VNodeChild) | undefined;
|
|
130
|
-
loader?: ((args_0: LoaderSlotProps) => vue.VNodeChild) | undefined;
|
|
116
|
+
input?: false | ((arg: SelectionControlSlot) => vue.VNodeChild) | undefined;
|
|
117
|
+
loader?: false | ((arg: LoaderSlotProps) => vue.VNodeChild) | undefined;
|
|
131
118
|
} | undefined;
|
|
132
119
|
onVnodeBeforeMount?: ((vnode: vue.VNode<vue.RendererNode, vue.RendererElement, {
|
|
133
120
|
[key: string]: any;
|
|
@@ -167,32 +154,32 @@ declare const VSwitch: {
|
|
|
167
154
|
}>) => void) | ((vnode: vue.VNode<vue.RendererNode, vue.RendererElement, {
|
|
168
155
|
[key: string]: any;
|
|
169
156
|
}>) => void)[] | undefined;
|
|
170
|
-
"v-slot:append"?: false | ((
|
|
171
|
-
"v-slot:prepend"?: false | ((
|
|
157
|
+
"v-slot:append"?: false | ((arg: VInputSlot) => vue.VNodeChild) | undefined;
|
|
158
|
+
"v-slot:prepend"?: false | ((arg: VInputSlot) => vue.VNodeChild) | undefined;
|
|
172
159
|
modelValue?: any;
|
|
173
160
|
"onUpdate:modelValue"?: (() => any) | undefined;
|
|
174
161
|
prependIcon?: IconValue | undefined;
|
|
175
162
|
appendIcon?: IconValue | undefined;
|
|
176
|
-
"v-slot:loader"?: false | ((
|
|
163
|
+
"v-slot:loader"?: false | ((arg: LoaderSlotProps) => vue.VNodeChild) | undefined;
|
|
177
164
|
'onClick:append'?: EventProp<[MouseEvent], (args_0: MouseEvent) => any> | undefined;
|
|
178
165
|
'onClick:prepend'?: EventProp<[MouseEvent], (args_0: MouseEvent) => any> | undefined;
|
|
179
166
|
'onUpdate:focused'?: (EventProp<[boolean], (args_0: boolean) => any> & ((focused: boolean) => any)) | undefined;
|
|
180
|
-
"v-slot:label"?: false | ((
|
|
167
|
+
"v-slot:label"?: false | ((arg: {
|
|
181
168
|
label: string | undefined;
|
|
182
169
|
props: Record<string, unknown>;
|
|
183
170
|
}) => vue.VNodeChild) | undefined;
|
|
184
|
-
"v-slot:message"?: false | ((
|
|
171
|
+
"v-slot:message"?: false | ((arg: VMessageSlot) => vue.VNodeChild) | undefined;
|
|
185
172
|
validateOn?: "lazy" | ("input" | "blur" | "submit") | "input lazy" | "blur lazy" | "submit lazy" | "lazy input" | "lazy blur" | "lazy submit" | undefined;
|
|
186
173
|
validationValue?: any;
|
|
187
174
|
hint?: string | undefined;
|
|
188
175
|
hideDetails?: boolean | "auto" | undefined;
|
|
189
|
-
"v-slot:details"?: false | ((
|
|
176
|
+
"v-slot:details"?: false | ((arg: VInputSlot) => vue.VNodeChild) | undefined;
|
|
190
177
|
defaultsTarget?: string | undefined;
|
|
191
178
|
falseIcon?: IconValue | undefined;
|
|
192
179
|
trueIcon?: IconValue | undefined;
|
|
193
180
|
trueValue?: any;
|
|
194
181
|
falseValue?: any;
|
|
195
|
-
"v-slot:input"?: false | ((
|
|
182
|
+
"v-slot:input"?: false | ((arg: SelectionControlSlot) => vue.VNodeChild) | undefined;
|
|
196
183
|
"onUpdate:indeterminate"?: ((val: boolean) => any) | undefined;
|
|
197
184
|
};
|
|
198
185
|
$attrs: {
|
|
@@ -202,31 +189,31 @@ declare const VSwitch: {
|
|
|
202
189
|
[x: string]: unknown;
|
|
203
190
|
};
|
|
204
191
|
$slots: Readonly<{
|
|
205
|
-
default?: ((
|
|
192
|
+
default?: (() => vue.VNode<vue.RendererNode, vue.RendererElement, {
|
|
206
193
|
[key: string]: any;
|
|
207
194
|
}>[]) | undefined;
|
|
208
|
-
prepend?: ((
|
|
195
|
+
prepend?: ((arg: VInputSlot) => vue.VNode<vue.RendererNode, vue.RendererElement, {
|
|
209
196
|
[key: string]: any;
|
|
210
197
|
}>[]) | undefined;
|
|
211
|
-
append?: ((
|
|
198
|
+
append?: ((arg: VInputSlot) => vue.VNode<vue.RendererNode, vue.RendererElement, {
|
|
212
199
|
[key: string]: any;
|
|
213
200
|
}>[]) | undefined;
|
|
214
|
-
details?: ((
|
|
201
|
+
details?: ((arg: VInputSlot) => vue.VNode<vue.RendererNode, vue.RendererElement, {
|
|
215
202
|
[key: string]: any;
|
|
216
203
|
}>[]) | undefined;
|
|
217
|
-
message?: ((
|
|
204
|
+
message?: ((arg: VMessageSlot) => vue.VNode<vue.RendererNode, vue.RendererElement, {
|
|
218
205
|
[key: string]: any;
|
|
219
206
|
}>[]) | undefined;
|
|
220
|
-
label?: ((
|
|
207
|
+
label?: ((arg: {
|
|
221
208
|
label: string | undefined;
|
|
222
209
|
props: Record<string, unknown>;
|
|
223
210
|
}) => vue.VNode<vue.RendererNode, vue.RendererElement, {
|
|
224
211
|
[key: string]: any;
|
|
225
212
|
}>[]) | undefined;
|
|
226
|
-
input?: ((
|
|
213
|
+
input?: ((arg: SelectionControlSlot) => vue.VNode<vue.RendererNode, vue.RendererElement, {
|
|
227
214
|
[key: string]: any;
|
|
228
215
|
}>[]) | undefined;
|
|
229
|
-
loader?: ((
|
|
216
|
+
loader?: ((arg: LoaderSlotProps) => vue.VNode<vue.RendererNode, vue.RendererElement, {
|
|
230
217
|
[key: string]: any;
|
|
231
218
|
}>[]) | undefined;
|
|
232
219
|
}>;
|
|
@@ -281,58 +268,44 @@ declare const VSwitch: {
|
|
|
281
268
|
trueValue?: any;
|
|
282
269
|
falseValue?: any;
|
|
283
270
|
} & {
|
|
284
|
-
$children?: vue.VNodeChild | ((
|
|
285
|
-
default?: ((
|
|
286
|
-
prepend?: ((
|
|
287
|
-
append?: ((
|
|
288
|
-
details?: ((
|
|
289
|
-
message?: ((
|
|
290
|
-
label?: ((
|
|
271
|
+
$children?: vue.VNodeChild | (() => vue.VNodeChild) | {
|
|
272
|
+
default?: (() => vue.VNodeChild) | undefined;
|
|
273
|
+
prepend?: ((arg: VInputSlot) => vue.VNodeChild) | undefined;
|
|
274
|
+
append?: ((arg: VInputSlot) => vue.VNodeChild) | undefined;
|
|
275
|
+
details?: ((arg: VInputSlot) => vue.VNodeChild) | undefined;
|
|
276
|
+
message?: ((arg: VMessageSlot) => vue.VNodeChild) | undefined;
|
|
277
|
+
label?: ((arg: {
|
|
291
278
|
label: string | undefined;
|
|
292
279
|
props: Record<string, unknown>;
|
|
293
280
|
}) => vue.VNodeChild) | undefined;
|
|
294
|
-
input?: ((
|
|
295
|
-
loader?: ((
|
|
281
|
+
input?: ((arg: SelectionControlSlot) => vue.VNodeChild) | undefined;
|
|
282
|
+
loader?: ((arg: LoaderSlotProps) => vue.VNodeChild) | undefined;
|
|
296
283
|
};
|
|
297
284
|
'v-slots'?: {
|
|
298
|
-
default?: false | ((
|
|
299
|
-
prepend?: false | ((
|
|
300
|
-
append?: false | ((
|
|
301
|
-
details?: false | ((
|
|
302
|
-
message?: false | ((
|
|
303
|
-
label?: false | ((
|
|
285
|
+
default?: false | (() => vue.VNodeChild) | undefined;
|
|
286
|
+
prepend?: false | ((arg: VInputSlot) => vue.VNodeChild) | undefined;
|
|
287
|
+
append?: false | ((arg: VInputSlot) => vue.VNodeChild) | undefined;
|
|
288
|
+
details?: false | ((arg: VInputSlot) => vue.VNodeChild) | undefined;
|
|
289
|
+
message?: false | ((arg: VMessageSlot) => vue.VNodeChild) | undefined;
|
|
290
|
+
label?: false | ((arg: {
|
|
304
291
|
label: string | undefined;
|
|
305
292
|
props: Record<string, unknown>;
|
|
306
293
|
}) => vue.VNodeChild) | undefined;
|
|
307
|
-
input?: false | ((
|
|
308
|
-
loader?: false | ((
|
|
294
|
+
input?: false | ((arg: SelectionControlSlot) => vue.VNodeChild) | undefined;
|
|
295
|
+
loader?: false | ((arg: LoaderSlotProps) => vue.VNodeChild) | undefined;
|
|
309
296
|
} | undefined;
|
|
310
297
|
} & {
|
|
311
|
-
"v-slot:default"?: false | ((
|
|
312
|
-
"v-slot:prepend"?: false | ((
|
|
313
|
-
"v-slot:append"?: false | ((
|
|
314
|
-
"v-slot:details"?: false | ((
|
|
315
|
-
"v-slot:message"?: false | ((
|
|
316
|
-
"v-slot:label"?: false | ((
|
|
298
|
+
"v-slot:default"?: false | (() => vue.VNodeChild) | undefined;
|
|
299
|
+
"v-slot:prepend"?: false | ((arg: VInputSlot) => vue.VNodeChild) | undefined;
|
|
300
|
+
"v-slot:append"?: false | ((arg: VInputSlot) => vue.VNodeChild) | undefined;
|
|
301
|
+
"v-slot:details"?: false | ((arg: VInputSlot) => vue.VNodeChild) | undefined;
|
|
302
|
+
"v-slot:message"?: false | ((arg: VMessageSlot) => vue.VNodeChild) | undefined;
|
|
303
|
+
"v-slot:label"?: false | ((arg: {
|
|
317
304
|
label: string | undefined;
|
|
318
305
|
props: Record<string, unknown>;
|
|
319
306
|
}) => vue.VNodeChild) | undefined;
|
|
320
|
-
"v-slot:input"?: false | ((
|
|
321
|
-
"v-slot:loader"?: false | ((
|
|
322
|
-
} & {
|
|
323
|
-
$slots?: {
|
|
324
|
-
default?: ((...args: never) => vue.VNodeChild) | undefined;
|
|
325
|
-
prepend?: ((args_0: VInputSlot) => vue.VNodeChild) | undefined;
|
|
326
|
-
append?: ((args_0: VInputSlot) => vue.VNodeChild) | undefined;
|
|
327
|
-
details?: ((args_0: VInputSlot) => vue.VNodeChild) | undefined;
|
|
328
|
-
message?: ((args_0: VMessageSlot) => vue.VNodeChild) | undefined;
|
|
329
|
-
label?: ((args_0: {
|
|
330
|
-
label: string | undefined;
|
|
331
|
-
props: Record<string, unknown>;
|
|
332
|
-
}) => vue.VNodeChild) | undefined;
|
|
333
|
-
input?: ((args_0: SelectionControlSlot) => vue.VNodeChild) | undefined;
|
|
334
|
-
loader?: ((args_0: LoaderSlotProps) => vue.VNodeChild) | undefined;
|
|
335
|
-
} | undefined;
|
|
307
|
+
"v-slot:input"?: false | ((arg: SelectionControlSlot) => vue.VNodeChild) | undefined;
|
|
308
|
+
"v-slot:loader"?: false | ((arg: LoaderSlotProps) => vue.VNodeChild) | undefined;
|
|
336
309
|
} & {
|
|
337
310
|
"onUpdate:modelValue"?: (() => any) | undefined;
|
|
338
311
|
"onUpdate:focused"?: ((focused: boolean) => any) | undefined;
|
|
@@ -364,31 +337,31 @@ declare const VSwitch: {
|
|
|
364
337
|
persistentHint: boolean;
|
|
365
338
|
valueComparator: typeof deepEqual;
|
|
366
339
|
}, {}, string, vue.SlotsType<Partial<{
|
|
367
|
-
default: (
|
|
340
|
+
default: () => vue.VNode<vue.RendererNode, vue.RendererElement, {
|
|
368
341
|
[key: string]: any;
|
|
369
342
|
}>[];
|
|
370
|
-
prepend: (
|
|
343
|
+
prepend: (arg: VInputSlot) => vue.VNode<vue.RendererNode, vue.RendererElement, {
|
|
371
344
|
[key: string]: any;
|
|
372
345
|
}>[];
|
|
373
|
-
append: (
|
|
346
|
+
append: (arg: VInputSlot) => vue.VNode<vue.RendererNode, vue.RendererElement, {
|
|
374
347
|
[key: string]: any;
|
|
375
348
|
}>[];
|
|
376
|
-
details: (
|
|
349
|
+
details: (arg: VInputSlot) => vue.VNode<vue.RendererNode, vue.RendererElement, {
|
|
377
350
|
[key: string]: any;
|
|
378
351
|
}>[];
|
|
379
|
-
message: (
|
|
352
|
+
message: (arg: VMessageSlot) => vue.VNode<vue.RendererNode, vue.RendererElement, {
|
|
380
353
|
[key: string]: any;
|
|
381
354
|
}>[];
|
|
382
|
-
label: (
|
|
355
|
+
label: (arg: {
|
|
383
356
|
label: string | undefined;
|
|
384
357
|
props: Record<string, unknown>;
|
|
385
358
|
}) => vue.VNode<vue.RendererNode, vue.RendererElement, {
|
|
386
359
|
[key: string]: any;
|
|
387
360
|
}>[];
|
|
388
|
-
input: (
|
|
361
|
+
input: (arg: SelectionControlSlot) => vue.VNode<vue.RendererNode, vue.RendererElement, {
|
|
389
362
|
[key: string]: any;
|
|
390
363
|
}>[];
|
|
391
|
-
loader: (
|
|
364
|
+
loader: (arg: LoaderSlotProps) => vue.VNode<vue.RendererNode, vue.RendererElement, {
|
|
392
365
|
[key: string]: any;
|
|
393
366
|
}>[];
|
|
394
367
|
}>>> & {
|
|
@@ -458,58 +431,44 @@ declare const VSwitch: {
|
|
|
458
431
|
trueValue?: any;
|
|
459
432
|
falseValue?: any;
|
|
460
433
|
} & {
|
|
461
|
-
$children?: vue.VNodeChild | ((
|
|
462
|
-
default?: ((
|
|
463
|
-
prepend?: ((
|
|
464
|
-
append?: ((
|
|
465
|
-
details?: ((
|
|
466
|
-
message?: ((
|
|
467
|
-
label?: ((
|
|
434
|
+
$children?: vue.VNodeChild | (() => vue.VNodeChild) | {
|
|
435
|
+
default?: (() => vue.VNodeChild) | undefined;
|
|
436
|
+
prepend?: ((arg: VInputSlot) => vue.VNodeChild) | undefined;
|
|
437
|
+
append?: ((arg: VInputSlot) => vue.VNodeChild) | undefined;
|
|
438
|
+
details?: ((arg: VInputSlot) => vue.VNodeChild) | undefined;
|
|
439
|
+
message?: ((arg: VMessageSlot) => vue.VNodeChild) | undefined;
|
|
440
|
+
label?: ((arg: {
|
|
468
441
|
label: string | undefined;
|
|
469
442
|
props: Record<string, unknown>;
|
|
470
443
|
}) => vue.VNodeChild) | undefined;
|
|
471
|
-
input?: ((
|
|
472
|
-
loader?: ((
|
|
444
|
+
input?: ((arg: SelectionControlSlot) => vue.VNodeChild) | undefined;
|
|
445
|
+
loader?: ((arg: LoaderSlotProps) => vue.VNodeChild) | undefined;
|
|
473
446
|
};
|
|
474
447
|
'v-slots'?: {
|
|
475
|
-
default?: false | ((
|
|
476
|
-
prepend?: false | ((
|
|
477
|
-
append?: false | ((
|
|
478
|
-
details?: false | ((
|
|
479
|
-
message?: false | ((
|
|
480
|
-
label?: false | ((
|
|
448
|
+
default?: false | (() => vue.VNodeChild) | undefined;
|
|
449
|
+
prepend?: false | ((arg: VInputSlot) => vue.VNodeChild) | undefined;
|
|
450
|
+
append?: false | ((arg: VInputSlot) => vue.VNodeChild) | undefined;
|
|
451
|
+
details?: false | ((arg: VInputSlot) => vue.VNodeChild) | undefined;
|
|
452
|
+
message?: false | ((arg: VMessageSlot) => vue.VNodeChild) | undefined;
|
|
453
|
+
label?: false | ((arg: {
|
|
481
454
|
label: string | undefined;
|
|
482
455
|
props: Record<string, unknown>;
|
|
483
456
|
}) => vue.VNodeChild) | undefined;
|
|
484
|
-
input?: false | ((
|
|
485
|
-
loader?: false | ((
|
|
457
|
+
input?: false | ((arg: SelectionControlSlot) => vue.VNodeChild) | undefined;
|
|
458
|
+
loader?: false | ((arg: LoaderSlotProps) => vue.VNodeChild) | undefined;
|
|
486
459
|
} | undefined;
|
|
487
460
|
} & {
|
|
488
|
-
"v-slot:default"?: false | ((
|
|
489
|
-
"v-slot:prepend"?: false | ((
|
|
490
|
-
"v-slot:append"?: false | ((
|
|
491
|
-
"v-slot:details"?: false | ((
|
|
492
|
-
"v-slot:message"?: false | ((
|
|
493
|
-
"v-slot:label"?: false | ((
|
|
461
|
+
"v-slot:default"?: false | (() => vue.VNodeChild) | undefined;
|
|
462
|
+
"v-slot:prepend"?: false | ((arg: VInputSlot) => vue.VNodeChild) | undefined;
|
|
463
|
+
"v-slot:append"?: false | ((arg: VInputSlot) => vue.VNodeChild) | undefined;
|
|
464
|
+
"v-slot:details"?: false | ((arg: VInputSlot) => vue.VNodeChild) | undefined;
|
|
465
|
+
"v-slot:message"?: false | ((arg: VMessageSlot) => vue.VNodeChild) | undefined;
|
|
466
|
+
"v-slot:label"?: false | ((arg: {
|
|
494
467
|
label: string | undefined;
|
|
495
468
|
props: Record<string, unknown>;
|
|
496
469
|
}) => vue.VNodeChild) | undefined;
|
|
497
|
-
"v-slot:input"?: false | ((
|
|
498
|
-
"v-slot:loader"?: false | ((
|
|
499
|
-
} & {
|
|
500
|
-
$slots?: {
|
|
501
|
-
default?: ((...args: never) => vue.VNodeChild) | undefined;
|
|
502
|
-
prepend?: ((args_0: VInputSlot) => vue.VNodeChild) | undefined;
|
|
503
|
-
append?: ((args_0: VInputSlot) => vue.VNodeChild) | undefined;
|
|
504
|
-
details?: ((args_0: VInputSlot) => vue.VNodeChild) | undefined;
|
|
505
|
-
message?: ((args_0: VMessageSlot) => vue.VNodeChild) | undefined;
|
|
506
|
-
label?: ((args_0: {
|
|
507
|
-
label: string | undefined;
|
|
508
|
-
props: Record<string, unknown>;
|
|
509
|
-
}) => vue.VNodeChild) | undefined;
|
|
510
|
-
input?: ((args_0: SelectionControlSlot) => vue.VNodeChild) | undefined;
|
|
511
|
-
loader?: ((args_0: LoaderSlotProps) => vue.VNodeChild) | undefined;
|
|
512
|
-
} | undefined;
|
|
470
|
+
"v-slot:input"?: false | ((arg: SelectionControlSlot) => vue.VNodeChild) | undefined;
|
|
471
|
+
"v-slot:loader"?: false | ((arg: LoaderSlotProps) => vue.VNodeChild) | undefined;
|
|
513
472
|
} & {
|
|
514
473
|
"onUpdate:modelValue"?: (() => any) | undefined;
|
|
515
474
|
"onUpdate:focused"?: ((focused: boolean) => any) | undefined;
|
|
@@ -565,58 +524,44 @@ declare const VSwitch: {
|
|
|
565
524
|
trueValue?: any;
|
|
566
525
|
falseValue?: any;
|
|
567
526
|
} & {
|
|
568
|
-
$children?: vue.VNodeChild | ((
|
|
569
|
-
default?: ((
|
|
570
|
-
prepend?: ((
|
|
571
|
-
append?: ((
|
|
572
|
-
details?: ((
|
|
573
|
-
message?: ((
|
|
574
|
-
label?: ((
|
|
527
|
+
$children?: vue.VNodeChild | (() => vue.VNodeChild) | {
|
|
528
|
+
default?: (() => vue.VNodeChild) | undefined;
|
|
529
|
+
prepend?: ((arg: VInputSlot) => vue.VNodeChild) | undefined;
|
|
530
|
+
append?: ((arg: VInputSlot) => vue.VNodeChild) | undefined;
|
|
531
|
+
details?: ((arg: VInputSlot) => vue.VNodeChild) | undefined;
|
|
532
|
+
message?: ((arg: VMessageSlot) => vue.VNodeChild) | undefined;
|
|
533
|
+
label?: ((arg: {
|
|
575
534
|
label: string | undefined;
|
|
576
535
|
props: Record<string, unknown>;
|
|
577
536
|
}) => vue.VNodeChild) | undefined;
|
|
578
|
-
input?: ((
|
|
579
|
-
loader?: ((
|
|
537
|
+
input?: ((arg: SelectionControlSlot) => vue.VNodeChild) | undefined;
|
|
538
|
+
loader?: ((arg: LoaderSlotProps) => vue.VNodeChild) | undefined;
|
|
580
539
|
};
|
|
581
540
|
'v-slots'?: {
|
|
582
|
-
default?: false | ((
|
|
583
|
-
prepend?: false | ((
|
|
584
|
-
append?: false | ((
|
|
585
|
-
details?: false | ((
|
|
586
|
-
message?: false | ((
|
|
587
|
-
label?: false | ((
|
|
541
|
+
default?: false | (() => vue.VNodeChild) | undefined;
|
|
542
|
+
prepend?: false | ((arg: VInputSlot) => vue.VNodeChild) | undefined;
|
|
543
|
+
append?: false | ((arg: VInputSlot) => vue.VNodeChild) | undefined;
|
|
544
|
+
details?: false | ((arg: VInputSlot) => vue.VNodeChild) | undefined;
|
|
545
|
+
message?: false | ((arg: VMessageSlot) => vue.VNodeChild) | undefined;
|
|
546
|
+
label?: false | ((arg: {
|
|
588
547
|
label: string | undefined;
|
|
589
548
|
props: Record<string, unknown>;
|
|
590
549
|
}) => vue.VNodeChild) | undefined;
|
|
591
|
-
input?: false | ((
|
|
592
|
-
loader?: false | ((
|
|
550
|
+
input?: false | ((arg: SelectionControlSlot) => vue.VNodeChild) | undefined;
|
|
551
|
+
loader?: false | ((arg: LoaderSlotProps) => vue.VNodeChild) | undefined;
|
|
593
552
|
} | undefined;
|
|
594
553
|
} & {
|
|
595
|
-
"v-slot:default"?: false | ((
|
|
596
|
-
"v-slot:prepend"?: false | ((
|
|
597
|
-
"v-slot:append"?: false | ((
|
|
598
|
-
"v-slot:details"?: false | ((
|
|
599
|
-
"v-slot:message"?: false | ((
|
|
600
|
-
"v-slot:label"?: false | ((
|
|
554
|
+
"v-slot:default"?: false | (() => vue.VNodeChild) | undefined;
|
|
555
|
+
"v-slot:prepend"?: false | ((arg: VInputSlot) => vue.VNodeChild) | undefined;
|
|
556
|
+
"v-slot:append"?: false | ((arg: VInputSlot) => vue.VNodeChild) | undefined;
|
|
557
|
+
"v-slot:details"?: false | ((arg: VInputSlot) => vue.VNodeChild) | undefined;
|
|
558
|
+
"v-slot:message"?: false | ((arg: VMessageSlot) => vue.VNodeChild) | undefined;
|
|
559
|
+
"v-slot:label"?: false | ((arg: {
|
|
601
560
|
label: string | undefined;
|
|
602
561
|
props: Record<string, unknown>;
|
|
603
562
|
}) => vue.VNodeChild) | undefined;
|
|
604
|
-
"v-slot:input"?: false | ((
|
|
605
|
-
"v-slot:loader"?: false | ((
|
|
606
|
-
} & {
|
|
607
|
-
$slots?: {
|
|
608
|
-
default?: ((...args: never) => vue.VNodeChild) | undefined;
|
|
609
|
-
prepend?: ((args_0: VInputSlot) => vue.VNodeChild) | undefined;
|
|
610
|
-
append?: ((args_0: VInputSlot) => vue.VNodeChild) | undefined;
|
|
611
|
-
details?: ((args_0: VInputSlot) => vue.VNodeChild) | undefined;
|
|
612
|
-
message?: ((args_0: VMessageSlot) => vue.VNodeChild) | undefined;
|
|
613
|
-
label?: ((args_0: {
|
|
614
|
-
label: string | undefined;
|
|
615
|
-
props: Record<string, unknown>;
|
|
616
|
-
}) => vue.VNodeChild) | undefined;
|
|
617
|
-
input?: ((args_0: SelectionControlSlot) => vue.VNodeChild) | undefined;
|
|
618
|
-
loader?: ((args_0: LoaderSlotProps) => vue.VNodeChild) | undefined;
|
|
619
|
-
} | undefined;
|
|
563
|
+
"v-slot:input"?: false | ((arg: SelectionControlSlot) => vue.VNodeChild) | undefined;
|
|
564
|
+
"v-slot:loader"?: false | ((arg: LoaderSlotProps) => vue.VNodeChild) | undefined;
|
|
620
565
|
} & {
|
|
621
566
|
"onUpdate:modelValue"?: (() => any) | undefined;
|
|
622
567
|
"onUpdate:focused"?: ((focused: boolean) => any) | undefined;
|
|
@@ -648,31 +593,31 @@ declare const VSwitch: {
|
|
|
648
593
|
persistentHint: boolean;
|
|
649
594
|
valueComparator: typeof deepEqual;
|
|
650
595
|
}, {}, string, vue.SlotsType<Partial<{
|
|
651
|
-
default: (
|
|
596
|
+
default: () => vue.VNode<vue.RendererNode, vue.RendererElement, {
|
|
652
597
|
[key: string]: any;
|
|
653
598
|
}>[];
|
|
654
|
-
prepend: (
|
|
599
|
+
prepend: (arg: VInputSlot) => vue.VNode<vue.RendererNode, vue.RendererElement, {
|
|
655
600
|
[key: string]: any;
|
|
656
601
|
}>[];
|
|
657
|
-
append: (
|
|
602
|
+
append: (arg: VInputSlot) => vue.VNode<vue.RendererNode, vue.RendererElement, {
|
|
658
603
|
[key: string]: any;
|
|
659
604
|
}>[];
|
|
660
|
-
details: (
|
|
605
|
+
details: (arg: VInputSlot) => vue.VNode<vue.RendererNode, vue.RendererElement, {
|
|
661
606
|
[key: string]: any;
|
|
662
607
|
}>[];
|
|
663
|
-
message: (
|
|
608
|
+
message: (arg: VMessageSlot) => vue.VNode<vue.RendererNode, vue.RendererElement, {
|
|
664
609
|
[key: string]: any;
|
|
665
610
|
}>[];
|
|
666
|
-
label: (
|
|
611
|
+
label: (arg: {
|
|
667
612
|
label: string | undefined;
|
|
668
613
|
props: Record<string, unknown>;
|
|
669
614
|
}) => vue.VNode<vue.RendererNode, vue.RendererElement, {
|
|
670
615
|
[key: string]: any;
|
|
671
616
|
}>[];
|
|
672
|
-
input: (
|
|
617
|
+
input: (arg: SelectionControlSlot) => vue.VNode<vue.RendererNode, vue.RendererElement, {
|
|
673
618
|
[key: string]: any;
|
|
674
619
|
}>[];
|
|
675
|
-
loader: (
|
|
620
|
+
loader: (arg: LoaderSlotProps) => vue.VNode<vue.RendererNode, vue.RendererElement, {
|
|
676
621
|
[key: string]: any;
|
|
677
622
|
}>[];
|
|
678
623
|
}>>> & vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps & FilterPropsOptions<{
|
|
@@ -26,7 +26,7 @@ $system-bar-window-height: 32px !default;
|
|
|
26
26
|
$system-bar-theme: (
|
|
27
27
|
$system-bar-background,
|
|
28
28
|
$system-bar-color
|
|
29
|
-
);
|
|
29
|
+
) !default;
|
|
30
30
|
|
|
31
31
|
$system-bar-typography: (
|
|
32
32
|
$system-bar-font-size,
|
|
@@ -34,7 +34,7 @@ $system-bar-typography: (
|
|
|
34
34
|
$system-bar-letter-spacing,
|
|
35
35
|
$system-bar-line-height,
|
|
36
36
|
$system-bar-text-transform
|
|
37
|
-
);
|
|
37
|
+
) !default;
|
|
38
38
|
|
|
39
39
|
// Deprecated
|
|
40
40
|
$system-bar-padding: 0 8px !default;
|
|
@@ -33,9 +33,6 @@ declare const VSystemBar: {
|
|
|
33
33
|
'v-slots'?: {
|
|
34
34
|
default?: false | (() => vue.VNodeChild) | undefined;
|
|
35
35
|
} | undefined;
|
|
36
|
-
$slots?: {
|
|
37
|
-
default?: (() => vue.VNodeChild) | undefined;
|
|
38
|
-
} | undefined;
|
|
39
36
|
onVnodeBeforeMount?: ((vnode: vue.VNode<vue.RendererNode, vue.RendererElement, {
|
|
40
37
|
[key: string]: any;
|
|
41
38
|
}>) => void) | ((vnode: vue.VNode<vue.RendererNode, vue.RendererElement, {
|
|
@@ -113,10 +110,6 @@ declare const VSystemBar: {
|
|
|
113
110
|
} | undefined;
|
|
114
111
|
} & {
|
|
115
112
|
"v-slot:default"?: false | (() => vue.VNodeChild) | undefined;
|
|
116
|
-
} & {
|
|
117
|
-
$slots?: {
|
|
118
|
-
default?: (() => vue.VNodeChild) | undefined;
|
|
119
|
-
} | undefined;
|
|
120
113
|
}, {}, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, Record<string, any>, string, {
|
|
121
114
|
window: boolean;
|
|
122
115
|
absolute: boolean;
|
|
@@ -171,10 +164,6 @@ declare const VSystemBar: {
|
|
|
171
164
|
} | undefined;
|
|
172
165
|
} & {
|
|
173
166
|
"v-slot:default"?: false | (() => vue.VNodeChild) | undefined;
|
|
174
|
-
} & {
|
|
175
|
-
$slots?: {
|
|
176
|
-
default?: (() => vue.VNodeChild) | undefined;
|
|
177
|
-
} | undefined;
|
|
178
167
|
} & vue.ShallowUnwrapRef<{}> & {} & vue.ComponentCustomProperties & {};
|
|
179
168
|
__isFragment?: undefined;
|
|
180
169
|
__isTeleport?: undefined;
|
|
@@ -202,10 +191,6 @@ declare const VSystemBar: {
|
|
|
202
191
|
} | undefined;
|
|
203
192
|
} & {
|
|
204
193
|
"v-slot:default"?: false | (() => vue.VNodeChild) | undefined;
|
|
205
|
-
} & {
|
|
206
|
-
$slots?: {
|
|
207
|
-
default?: (() => vue.VNodeChild) | undefined;
|
|
208
|
-
} | undefined;
|
|
209
194
|
}, {}, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, Record<string, any>, string, {
|
|
210
195
|
window: boolean;
|
|
211
196
|
absolute: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VTable.mjs","names":["makeComponentProps","makeDensityProps","useDensity","makeTagProps","makeThemeProps","provideTheme","convertToUnit","genericComponent","propsFactory","useRender","makeVTableProps","fixedHeader","Boolean","fixedFooter","height","Number","String","hover","VTable","name","props","setup","_ref","slots","themeClasses","densityClasses","_createVNode","tag","top","bottom","value","class","style","default","wrapper"],"sources":["../../../src/components/VTable/VTable.tsx"],"sourcesContent":["// Styles\nimport './VTable.sass'\n\n// Composables\nimport { makeComponentProps } from '@/composables/component'\nimport { makeDensityProps, useDensity } from '@/composables/density'\nimport { makeTagProps } from '@/composables/tag'\nimport { makeThemeProps, provideTheme } from '@/composables/theme'\n\n// Utilities\nimport { convertToUnit, genericComponent, propsFactory, useRender } from '@/util'\n\nexport type VTableSlots = {\n default:
|
|
1
|
+
{"version":3,"file":"VTable.mjs","names":["makeComponentProps","makeDensityProps","useDensity","makeTagProps","makeThemeProps","provideTheme","convertToUnit","genericComponent","propsFactory","useRender","makeVTableProps","fixedHeader","Boolean","fixedFooter","height","Number","String","hover","VTable","name","props","setup","_ref","slots","themeClasses","densityClasses","_createVNode","tag","top","bottom","value","class","style","default","wrapper"],"sources":["../../../src/components/VTable/VTable.tsx"],"sourcesContent":["// Styles\nimport './VTable.sass'\n\n// Composables\nimport { makeComponentProps } from '@/composables/component'\nimport { makeDensityProps, useDensity } from '@/composables/density'\nimport { makeTagProps } from '@/composables/tag'\nimport { makeThemeProps, provideTheme } from '@/composables/theme'\n\n// Utilities\nimport { convertToUnit, genericComponent, propsFactory, useRender } from '@/util'\n\nexport type VTableSlots = {\n default: never\n top: never\n bottom: never\n wrapper: never\n}\n\nexport const makeVTableProps = propsFactory({\n fixedHeader: Boolean,\n fixedFooter: Boolean,\n height: [Number, String],\n hover: Boolean,\n\n ...makeComponentProps(),\n ...makeDensityProps(),\n ...makeTagProps(),\n ...makeThemeProps(),\n}, 'v-table')\n\nexport const VTable = genericComponent<VTableSlots>()({\n name: 'VTable',\n\n props: makeVTableProps(),\n\n setup (props, { slots }) {\n const { themeClasses } = provideTheme(props)\n const { densityClasses } = useDensity(props)\n\n useRender(() => (\n <props.tag\n class={[\n 'v-table',\n {\n 'v-table--fixed-height': !!props.height,\n 'v-table--fixed-header': props.fixedHeader,\n 'v-table--fixed-footer': props.fixedFooter,\n 'v-table--has-top': !!slots.top,\n 'v-table--has-bottom': !!slots.bottom,\n 'v-table--hover': props.hover,\n },\n themeClasses.value,\n densityClasses.value,\n props.class,\n ]}\n style={ props.style }\n >\n { slots.top?.() }\n\n { slots.default ? (\n <div\n class=\"v-table__wrapper\"\n style={{ height: convertToUnit(props.height) }}\n >\n <table>\n { slots.default() }\n </table>\n </div>\n ) : slots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