@vuetify/nightly 3.7.7-master.2025-01-25 → 3.7.8-master.2025-01-28

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.
Files changed (38) hide show
  1. package/CHANGELOG.md +3 -46
  2. package/dist/json/attributes.json +3233 -3233
  3. package/dist/json/importMap-labs.json +14 -14
  4. package/dist/json/importMap.json +156 -156
  5. package/dist/json/web-types.json +5933 -5933
  6. package/dist/vuetify-labs.css +4338 -4326
  7. package/dist/vuetify-labs.d.ts +0 -17
  8. package/dist/vuetify-labs.esm.js +16 -10
  9. package/dist/vuetify-labs.esm.js.map +1 -1
  10. package/dist/vuetify-labs.js +16 -10
  11. package/dist/vuetify-labs.min.css +2 -2
  12. package/dist/vuetify.css +3262 -3250
  13. package/dist/vuetify.d.ts +54 -71
  14. package/dist/vuetify.esm.js +16 -10
  15. package/dist/vuetify.esm.js.map +1 -1
  16. package/dist/vuetify.js +16 -10
  17. package/dist/vuetify.js.map +1 -1
  18. package/dist/vuetify.min.css +2 -2
  19. package/dist/vuetify.min.js +6 -9
  20. package/dist/vuetify.min.js.map +1 -1
  21. package/lib/components/VDataIterator/index.d.mts +0 -1
  22. package/lib/components/VDataTable/index.d.mts +0 -17
  23. package/lib/components/VDataTable/types.mjs.map +1 -1
  24. package/lib/components/VFab/VFab.css +5 -1
  25. package/lib/components/VFab/VFab.mjs +1 -2
  26. package/lib/components/VFab/VFab.mjs.map +1 -1
  27. package/lib/components/VFab/VFab.sass +5 -1
  28. package/lib/components/VField/VField.css +8 -0
  29. package/lib/components/VField/VField.sass +10 -2
  30. package/lib/components/VPagination/VPagination.mjs +1 -1
  31. package/lib/components/VPagination/VPagination.mjs.map +1 -1
  32. package/lib/components/index.d.mts +0 -17
  33. package/lib/composables/display.mjs +11 -4
  34. package/lib/composables/display.mjs.map +1 -1
  35. package/lib/entry-bundler.mjs +1 -1
  36. package/lib/framework.mjs +1 -1
  37. package/lib/index.d.mts +54 -54
  38. package/package.json +1 -1
@@ -116,7 +116,6 @@ type DataTableHeader<T = Record<string, any>> = {
116
116
  sort?: DataTableCompareFunction;
117
117
  sortRaw?: DataTableCompareFunction;
118
118
  filter?: FilterFunction;
119
- mobile?: boolean;
120
119
  children?: DataTableHeader<T>[];
121
120
  };
122
121
  type InternalDataTableHeader = Omit<DataTableHeader, 'key' | 'value' | 'children'> & {
@@ -145,7 +145,6 @@ type DataTableHeader<T = Record<string, any>> = {
145
145
  sort?: DataTableCompareFunction;
146
146
  sortRaw?: DataTableCompareFunction;
147
147
  filter?: FilterFunction;
148
- mobile?: boolean;
149
148
  children?: DataTableHeader<T>[];
150
149
  };
151
150
  type InternalDataTableHeader = Omit<DataTableHeader, 'key' | 'value' | 'children'> & {
@@ -2084,7 +2083,6 @@ declare const VDataTableVirtual: {
2084
2083
  readonly sort?: DataTableCompareFunction | undefined;
2085
2084
  readonly sortRaw?: DataTableCompareFunction | undefined;
2086
2085
  readonly filter?: FilterFunction | undefined;
2087
- readonly mobile?: boolean | undefined;
2088
2086
  readonly children?: readonly {
2089
2087
  readonly key?: ("data-table-group" | "data-table-select" | "data-table-expand" | (string & {})) | undefined;
2090
2088
  readonly value?: SelectItemKey<Record<string, any>>;
@@ -2105,7 +2103,6 @@ declare const VDataTableVirtual: {
2105
2103
  readonly sort?: DataTableCompareFunction | undefined;
2106
2104
  readonly sortRaw?: DataTableCompareFunction | undefined;
2107
2105
  readonly filter?: FilterFunction | undefined;
2108
- readonly mobile?: boolean | undefined;
2109
2106
  readonly children?: readonly any[] | undefined;
2110
2107
  }[] | undefined;
2111
2108
  }[] | undefined;
@@ -2186,7 +2183,6 @@ declare const VDataTableVirtual: {
2186
2183
  readonly sort?: DataTableCompareFunction | undefined;
2187
2184
  readonly sortRaw?: DataTableCompareFunction | undefined;
2188
2185
  readonly filter?: FilterFunction | undefined;
2189
- readonly mobile?: boolean | undefined;
2190
2186
  readonly children?: readonly {
2191
2187
  readonly key?: ("data-table-group" | "data-table-select" | "data-table-expand" | (string & {})) | undefined;
2192
2188
  readonly value?: SelectItemKey<Record<string, any>>;
@@ -2207,7 +2203,6 @@ declare const VDataTableVirtual: {
2207
2203
  readonly sort?: DataTableCompareFunction | undefined;
2208
2204
  readonly sortRaw?: DataTableCompareFunction | undefined;
2209
2205
  readonly filter?: FilterFunction | undefined;
2210
- readonly mobile?: boolean | undefined;
2211
2206
  readonly children?: readonly any[] | undefined;
2212
2207
  }[] | undefined;
2213
2208
  }[] | undefined;
@@ -2362,7 +2357,6 @@ declare const VDataTableVirtual: {
2362
2357
  readonly sort?: DataTableCompareFunction | undefined;
2363
2358
  readonly sortRaw?: DataTableCompareFunction | undefined;
2364
2359
  readonly filter?: FilterFunction | undefined;
2365
- readonly mobile?: boolean | undefined;
2366
2360
  readonly children?: readonly {
2367
2361
  readonly key?: ("data-table-group" | "data-table-select" | "data-table-expand" | (string & {})) | undefined;
2368
2362
  readonly value?: SelectItemKey<Record<string, any>>;
@@ -2383,7 +2377,6 @@ declare const VDataTableVirtual: {
2383
2377
  readonly sort?: DataTableCompareFunction | undefined;
2384
2378
  readonly sortRaw?: DataTableCompareFunction | undefined;
2385
2379
  readonly filter?: FilterFunction | undefined;
2386
- readonly mobile?: boolean | undefined;
2387
2380
  readonly children?: readonly any[] | undefined;
2388
2381
  }[] | undefined;
2389
2382
  }[] | undefined;
@@ -2494,7 +2487,6 @@ declare const VDataTableVirtual: {
2494
2487
  readonly sort?: DataTableCompareFunction | undefined;
2495
2488
  readonly sortRaw?: DataTableCompareFunction | undefined;
2496
2489
  readonly filter?: FilterFunction | undefined;
2497
- readonly mobile?: boolean | undefined;
2498
2490
  readonly children?: readonly {
2499
2491
  readonly key?: ("data-table-group" | "data-table-select" | "data-table-expand" | (string & {})) | undefined;
2500
2492
  readonly value?: SelectItemKey<Record<string, any>>;
@@ -2515,7 +2507,6 @@ declare const VDataTableVirtual: {
2515
2507
  readonly sort?: DataTableCompareFunction | undefined;
2516
2508
  readonly sortRaw?: DataTableCompareFunction | undefined;
2517
2509
  readonly filter?: FilterFunction | undefined;
2518
- readonly mobile?: boolean | undefined;
2519
2510
  readonly children?: readonly any[] | undefined;
2520
2511
  }[] | undefined;
2521
2512
  }[] | undefined;
@@ -2921,7 +2912,6 @@ declare const VDataTableServer: {
2921
2912
  readonly sort?: DataTableCompareFunction | undefined;
2922
2913
  readonly sortRaw?: DataTableCompareFunction | undefined;
2923
2914
  readonly filter?: FilterFunction | undefined;
2924
- readonly mobile?: boolean | undefined;
2925
2915
  readonly children?: readonly {
2926
2916
  readonly key?: ("data-table-group" | "data-table-select" | "data-table-expand" | (string & {})) | undefined;
2927
2917
  readonly value?: SelectItemKey<Record<string, any>>;
@@ -2942,7 +2932,6 @@ declare const VDataTableServer: {
2942
2932
  readonly sort?: DataTableCompareFunction | undefined;
2943
2933
  readonly sortRaw?: DataTableCompareFunction | undefined;
2944
2934
  readonly filter?: FilterFunction | undefined;
2945
- readonly mobile?: boolean | undefined;
2946
2935
  readonly children?: readonly any[] | undefined;
2947
2936
  }[] | undefined;
2948
2937
  }[] | undefined;
@@ -3039,7 +3028,6 @@ declare const VDataTableServer: {
3039
3028
  readonly sort?: DataTableCompareFunction | undefined;
3040
3029
  readonly sortRaw?: DataTableCompareFunction | undefined;
3041
3030
  readonly filter?: FilterFunction | undefined;
3042
- readonly mobile?: boolean | undefined;
3043
3031
  readonly children?: readonly {
3044
3032
  readonly key?: ("data-table-group" | "data-table-select" | "data-table-expand" | (string & {})) | undefined;
3045
3033
  readonly value?: SelectItemKey<Record<string, any>>;
@@ -3060,7 +3048,6 @@ declare const VDataTableServer: {
3060
3048
  readonly sort?: DataTableCompareFunction | undefined;
3061
3049
  readonly sortRaw?: DataTableCompareFunction | undefined;
3062
3050
  readonly filter?: FilterFunction | undefined;
3063
- readonly mobile?: boolean | undefined;
3064
3051
  readonly children?: readonly any[] | undefined;
3065
3052
  }[] | undefined;
3066
3053
  }[] | undefined;
@@ -3247,7 +3234,6 @@ declare const VDataTableServer: {
3247
3234
  readonly sort?: DataTableCompareFunction | undefined;
3248
3235
  readonly sortRaw?: DataTableCompareFunction | undefined;
3249
3236
  readonly filter?: FilterFunction | undefined;
3250
- readonly mobile?: boolean | undefined;
3251
3237
  readonly children?: readonly {
3252
3238
  readonly key?: ("data-table-group" | "data-table-select" | "data-table-expand" | (string & {})) | undefined;
3253
3239
  readonly value?: SelectItemKey<Record<string, any>>;
@@ -3268,7 +3254,6 @@ declare const VDataTableServer: {
3268
3254
  readonly sort?: DataTableCompareFunction | undefined;
3269
3255
  readonly sortRaw?: DataTableCompareFunction | undefined;
3270
3256
  readonly filter?: FilterFunction | undefined;
3271
- readonly mobile?: boolean | undefined;
3272
3257
  readonly children?: readonly any[] | undefined;
3273
3258
  }[] | undefined;
3274
3259
  }[] | undefined;
@@ -3407,7 +3392,6 @@ declare const VDataTableServer: {
3407
3392
  readonly sort?: DataTableCompareFunction | undefined;
3408
3393
  readonly sortRaw?: DataTableCompareFunction | undefined;
3409
3394
  readonly filter?: FilterFunction | undefined;
3410
- readonly mobile?: boolean | undefined;
3411
3395
  readonly children?: readonly {
3412
3396
  readonly key?: ("data-table-group" | "data-table-select" | "data-table-expand" | (string & {})) | undefined;
3413
3397
  readonly value?: SelectItemKey<Record<string, any>>;
@@ -3428,7 +3412,6 @@ declare const VDataTableServer: {
3428
3412
  readonly sort?: DataTableCompareFunction | undefined;
3429
3413
  readonly sortRaw?: DataTableCompareFunction | undefined;
3430
3414
  readonly filter?: FilterFunction | undefined;
3431
- readonly mobile?: boolean | undefined;
3432
3415
  readonly children?: readonly any[] | undefined;
3433
3416
  }[] | undefined;
3434
3417
  }[] | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"types.mjs","names":[],"sources":["../../../src/components/VDataTable/types.ts"],"sourcesContent":["// Types\nimport type { provideExpanded } from './composables/expand'\nimport type { Group, GroupableItem, provideGroupBy } from './composables/group'\nimport type { provideSelection, SelectableItem } from './composables/select'\nimport type { FilterFunction, InternalItem } from '@/composables/filter'\nimport type { SelectItemKey } from '@/util'\n\nexport type DataTableCompareFunction<T = any> = (a: T, b: T) => number | null\n\nexport type DataTableHeader<T = Record<string, any>> = {\n key?: 'data-table-group' | 'data-table-select' | 'data-table-expand' | (string & {})\n value?: SelectItemKey<T>\n title?: string\n\n fixed?: boolean\n align?: 'start' | 'end' | 'center'\n\n width?: number | string\n minWidth?: string\n maxWidth?: string\n nowrap?: boolean\n\n headerProps?: Record<string, any>\n cellProps?: HeaderCellProps\n\n sortable?: boolean\n sort?: DataTableCompareFunction\n sortRaw?: DataTableCompareFunction\n filter?: FilterFunction\n\n mobile?: boolean\n\n children?: DataTableHeader<T>[]\n}\n\nexport type InternalDataTableHeader = Omit<DataTableHeader, 'key' | 'value' | 'children'> & {\n key: string | null\n value: SelectItemKey | null\n sortable: boolean\n fixedOffset?: number\n lastFixed?: boolean\n nowrap?: boolean\n colspan?: number\n rowspan?: number\n children?: InternalDataTableHeader[]\n}\n\nexport interface DataTableItem<T = any> extends InternalItem<T>, GroupableItem<T>, SelectableItem {\n key: any\n index: number\n columns: {\n [key: string]: any\n }\n}\n\nexport type GroupHeaderSlot = {\n index: number\n item: Group\n columns: InternalDataTableHeader[]\n isExpanded: ReturnType<typeof provideExpanded>['isExpanded']\n toggleExpand: ReturnType<typeof provideExpanded>['toggleExpand']\n isSelected: ReturnType<typeof provideSelection>['isSelected']\n toggleSelect: ReturnType<typeof provideSelection>['toggleSelect']\n toggleGroup: ReturnType<typeof provideGroupBy>['toggleGroup']\n isGroupOpen: ReturnType<typeof provideGroupBy>['isGroupOpen']\n}\n\ntype ItemSlotBase<T> = {\n index: number\n item: T\n internalItem: DataTableItem<T>\n isExpanded: ReturnType<typeof provideExpanded>['isExpanded']\n toggleExpand: ReturnType<typeof provideExpanded>['toggleExpand']\n isSelected: ReturnType<typeof provideSelection>['isSelected']\n toggleSelect: ReturnType<typeof provideSelection>['toggleSelect']\n}\n\nexport type ItemSlot<T> = ItemSlotBase<T> & {\n columns: InternalDataTableHeader[]\n}\n\nexport type ItemKeySlot<T> = ItemSlotBase<T> & {\n value: any\n column: InternalDataTableHeader\n}\n\nexport type RowProps<T> =\n | Record<string, any>\n | ((data: Pick<ItemKeySlot<T>, 'index' | 'item' | 'internalItem'>) => Record<string, any>)\n\nexport type CellProps<T> =\n | Record<string, any>\n | ((data: Pick<ItemKeySlot<T>, 'index' | 'item' | 'internalItem' | 'value' | 'column'>) => Record<string, any>)\n\nexport type HeaderCellProps =\n | Record<string, any>\n | ((data: Pick<ItemKeySlot<any>, 'index' | 'item' | 'internalItem' | 'value'>) => Record<string, any>)\n"],"mappings":"","ignoreList":[]}
1
+ {"version":3,"file":"types.mjs","names":[],"sources":["../../../src/components/VDataTable/types.ts"],"sourcesContent":["// Types\nimport type { provideExpanded } from './composables/expand'\nimport type { Group, GroupableItem, provideGroupBy } from './composables/group'\nimport type { provideSelection, SelectableItem } from './composables/select'\nimport type { FilterFunction, InternalItem } from '@/composables/filter'\nimport type { SelectItemKey } from '@/util'\n\nexport type DataTableCompareFunction<T = any> = (a: T, b: T) => number | null\n\nexport type DataTableHeader<T = Record<string, any>> = {\n key?: 'data-table-group' | 'data-table-select' | 'data-table-expand' | (string & {})\n value?: SelectItemKey<T>\n title?: string\n\n fixed?: boolean\n align?: 'start' | 'end' | 'center'\n\n width?: number | string\n minWidth?: string\n maxWidth?: string\n nowrap?: boolean\n\n headerProps?: Record<string, any>\n cellProps?: HeaderCellProps\n\n sortable?: boolean\n sort?: DataTableCompareFunction\n sortRaw?: DataTableCompareFunction\n filter?: FilterFunction\n\n children?: DataTableHeader<T>[]\n}\n\nexport type InternalDataTableHeader = Omit<DataTableHeader, 'key' | 'value' | 'children'> & {\n key: string | null\n value: SelectItemKey | null\n sortable: boolean\n fixedOffset?: number\n lastFixed?: boolean\n nowrap?: boolean\n colspan?: number\n rowspan?: number\n children?: InternalDataTableHeader[]\n}\n\nexport interface DataTableItem<T = any> extends InternalItem<T>, GroupableItem<T>, SelectableItem {\n key: any\n index: number\n columns: {\n [key: string]: any\n }\n}\n\nexport type GroupHeaderSlot = {\n index: number\n item: Group\n columns: InternalDataTableHeader[]\n isExpanded: ReturnType<typeof provideExpanded>['isExpanded']\n toggleExpand: ReturnType<typeof provideExpanded>['toggleExpand']\n isSelected: ReturnType<typeof provideSelection>['isSelected']\n toggleSelect: ReturnType<typeof provideSelection>['toggleSelect']\n toggleGroup: ReturnType<typeof provideGroupBy>['toggleGroup']\n isGroupOpen: ReturnType<typeof provideGroupBy>['isGroupOpen']\n}\n\ntype ItemSlotBase<T> = {\n index: number\n item: T\n internalItem: DataTableItem<T>\n isExpanded: ReturnType<typeof provideExpanded>['isExpanded']\n toggleExpand: ReturnType<typeof provideExpanded>['toggleExpand']\n isSelected: ReturnType<typeof provideSelection>['isSelected']\n toggleSelect: ReturnType<typeof provideSelection>['toggleSelect']\n}\n\nexport type ItemSlot<T> = ItemSlotBase<T> & {\n columns: InternalDataTableHeader[]\n}\n\nexport type ItemKeySlot<T> = ItemSlotBase<T> & {\n value: any\n column: InternalDataTableHeader\n}\n\nexport type RowProps<T> =\n | Record<string, any>\n | ((data: Pick<ItemKeySlot<T>, 'index' | 'item' | 'internalItem'>) => Record<string, any>)\n\nexport type CellProps<T> =\n | Record<string, any>\n | ((data: Pick<ItemKeySlot<T>, 'index' | 'item' | 'internalItem' | 'value' | 'column'>) => Record<string, any>)\n\nexport type HeaderCellProps =\n | Record<string, any>\n | ((data: Pick<ItemKeySlot<any>, 'index' | 'item' | 'internalItem' | 'value'>) => Record<string, any>)\n"],"mappings":"","ignoreList":[]}
@@ -17,6 +17,10 @@
17
17
  .v-fab--app, .v-fab--absolute {
18
18
  display: flex;
19
19
  }
20
+ .v-fab--absolute {
21
+ position: absolute;
22
+ inset: 0;
23
+ }
20
24
  .v-fab--start, .v-fab--left {
21
25
  justify-content: flex-start;
22
26
  }
@@ -40,11 +44,11 @@
40
44
  .v-fab__container {
41
45
  align-self: center;
42
46
  display: inline-flex;
43
- position: absolute;
44
47
  vertical-align: middle;
45
48
  }
46
49
  .v-fab--app .v-fab__container {
47
50
  margin: 12px;
51
+ position: fixed;
48
52
  }
49
53
  .v-fab--absolute .v-fab__container {
50
54
  position: absolute;
@@ -89,8 +89,7 @@ export const VFab = genericComponent()({
89
89
  "style": [props.app ? {
90
90
  ...layoutItemStyles.value
91
91
  } : {
92
- height: 'inherit',
93
- width: undefined
92
+ height: props.absolute ? '100%' : 'inherit'
94
93
  }, props.style]
95
94
  }, [_createVNode("div", {
96
95
  "class": "v-fab__container"
@@ -1 +1 @@
1
- {"version":3,"file":"VFab.mjs","names":["makeVBtnProps","VBtn","makeLayoutItemProps","useLayoutItem","makeLocationProps","useProxiedModel","useResizeObserver","useToggleScope","makeTransitionProps","MaybeTransition","computed","ref","shallowRef","toRef","watchEffect","genericComponent","omit","propsFactory","useRender","makeVFabProps","app","Boolean","appear","extended","layout","offset","modelValue","type","default","active","transition","VFab","name","props","emits","value","setup","_ref","slots","model","height","layoutItemStyles","resizeRef","entries","length","target","clientHeight","hasPosition","absolute","position","location","split","shift","orientation","id","order","parseInt","layoutSize","elementSize","vFabRef","btnProps","filterProps","_createVNode","class","width","undefined","style","_withDirectives","_mergeProps","_vShow"],"sources":["../../../src/components/VFab/VFab.tsx"],"sourcesContent":["// Styles\nimport './VFab.sass'\n\n// Components\nimport { makeVBtnProps, VBtn } from '@/components/VBtn/VBtn'\n\n// Composables\nimport { makeLayoutItemProps, useLayoutItem } from '@/composables/layout'\nimport { makeLocationProps } from '@/composables/location'\nimport { useProxiedModel } from '@/composables/proxiedModel'\nimport { useResizeObserver } from '@/composables/resizeObserver'\nimport { useToggleScope } from '@/composables/toggleScope'\nimport { makeTransitionProps, MaybeTransition } from '@/composables/transition'\n\n// Utilities\nimport { computed, ref, shallowRef, toRef, watchEffect } from 'vue'\nimport { genericComponent, omit, propsFactory, useRender } from '@/util'\n\n// Types\nimport type { ComputedRef } from 'vue'\nimport type { Position } from '@/composables/layout'\n\nexport const makeVFabProps = propsFactory({\n app: Boolean,\n appear: Boolean,\n extended: Boolean,\n layout: Boolean,\n offset: Boolean,\n modelValue: {\n type: Boolean,\n default: true,\n },\n\n ...omit(makeVBtnProps({ active: true }), ['location']),\n ...makeLayoutItemProps(),\n ...makeLocationProps(),\n ...makeTransitionProps({ transition: 'fab-transition' }),\n}, 'VFab')\n\nexport const VFab = genericComponent()({\n name: 'VFab',\n\n props: makeVFabProps(),\n\n emits: {\n 'update:modelValue': (value: boolean) => true,\n },\n\n setup (props, { slots }) {\n const model = useProxiedModel(props, 'modelValue')\n const height = shallowRef(56)\n const layoutItemStyles = ref()\n\n const { resizeRef } = useResizeObserver(entries => {\n if (!entries.length) return\n height.value = entries[0].target.clientHeight\n })\n\n const hasPosition = computed(() => props.app || props.absolute)\n\n const position = computed(() => {\n if (!hasPosition.value) return false\n\n return props.location?.split(' ').shift() ?? 'bottom'\n }) as ComputedRef<Position>\n\n const orientation = computed(() => {\n if (!hasPosition.value) return false\n\n return props.location?.split(' ')[1] ?? 'end'\n })\n\n useToggleScope(() => props.app, () => {\n const layout = useLayoutItem({\n id: props.name,\n order: computed(() => parseInt(props.order, 10)),\n position,\n layoutSize: computed(() => props.layout ? height.value + 24 : 0),\n elementSize: computed(() => height.value + 24),\n active: computed(() => props.app && model.value),\n absolute: toRef(props, 'absolute'),\n })\n\n watchEffect(() => {\n layoutItemStyles.value = layout.layoutItemStyles.value\n })\n })\n\n const vFabRef = ref()\n\n useRender(() => {\n const btnProps = VBtn.filterProps(props)\n\n return (\n <div\n ref={ vFabRef }\n class={[\n 'v-fab',\n {\n 'v-fab--absolute': props.absolute,\n 'v-fab--app': !!props.app,\n 'v-fab--extended': props.extended,\n 'v-fab--offset': props.offset,\n [`v-fab--${position.value}`]: hasPosition.value,\n [`v-fab--${orientation.value}`]: hasPosition.value,\n },\n props.class,\n ]}\n style={[\n props.app ? {\n ...layoutItemStyles.value,\n } : {\n height: 'inherit',\n width: undefined,\n },\n props.style,\n ]}\n >\n <div class=\"v-fab__container\">\n <MaybeTransition\n appear={ props.appear }\n transition={ props.transition }\n >\n <VBtn\n v-show={ props.active }\n ref={ resizeRef }\n { ...btnProps }\n active={ undefined }\n location={ undefined }\n v-slots={ slots }\n />\n </MaybeTransition>\n </div>\n </div>\n )\n })\n\n return {}\n },\n})\n\nexport type VFab = InstanceType<typeof VFab>\n"],"mappings":";AAAA;AACA;;AAEA;AAAA,SACSA,aAAa,EAAEC,IAAI,4BAE5B;AAAA,SACSC,mBAAmB,EAAEC,aAAa;AAAA,SAClCC,iBAAiB;AAAA,SACjBC,eAAe;AAAA,SACfC,iBAAiB;AAAA,SACjBC,cAAc;AAAA,SACdC,mBAAmB,EAAEC,eAAe,4CAE7C;AACA,SAASC,QAAQ,EAAEC,GAAG,EAAEC,UAAU,EAAEC,KAAK,EAAEC,WAAW,QAAQ,KAAK;AAAA,SAC1DC,gBAAgB,EAAEC,IAAI,EAAEC,YAAY,EAAEC,SAAS,gCAExD;AAIA,OAAO,MAAMC,aAAa,GAAGF,YAAY,CAAC;EACxCG,GAAG,EAAEC,OAAO;EACZC,MAAM,EAAED,OAAO;EACfE,QAAQ,EAAEF,OAAO;EACjBG,MAAM,EAAEH,OAAO;EACfI,MAAM,EAAEJ,OAAO;EACfK,UAAU,EAAE;IACVC,IAAI,EAAEN,OAAO;IACbO,OAAO,EAAE;EACX,CAAC;EAED,GAAGZ,IAAI,CAAChB,aAAa,CAAC;IAAE6B,MAAM,EAAE;EAAK,CAAC,CAAC,EAAE,CAAC,UAAU,CAAC,CAAC;EACtD,GAAG3B,mBAAmB,CAAC,CAAC;EACxB,GAAGE,iBAAiB,CAAC,CAAC;EACtB,GAAGI,mBAAmB,CAAC;IAAEsB,UAAU,EAAE;EAAiB,CAAC;AACzD,CAAC,EAAE,MAAM,CAAC;AAEV,OAAO,MAAMC,IAAI,GAAGhB,gBAAgB,CAAC,CAAC,CAAC;EACrCiB,IAAI,EAAE,MAAM;EAEZC,KAAK,EAAEd,aAAa,CAAC,CAAC;EAEtBe,KA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tB,CAAC,GAAG;UACFK,MAAM,EAAE,SAAS;UACjBwB,KAAK,EAAEC;QACT,CAAC,EACDhC,KAAK,CAACiC,KAAK;MACZ,IAAAJ,YAAA;QAAA;MAAA,IAAAA,YAAA,CAAArD,eAAA;QAAA,UAIYwB,KAAK,CAACX,MAAM;QAAA,cACRW,KAAK,CAACH;MAAU;QAAAF,OAAA,EAAAA,CAAA,MAAAuC,eAAA,CAAAL,YAAA,CAAA7D,IAAA,EAAAmE,WAAA;UAAA,OAIrB1B;QAAS,GACVkB,QAAQ;UAAA,UACJK,SAAS;UAAA,YACPA;QAAS,IACV3B,KAAK,KAAA+B,MAAA,EALNpC,KAAK,CAACJ,MAAM;MAAA;IAWjC,CAAC,CAAC;IAEF,OAAO,CAAC,CAAC;EACX;AACF,CAAC,CAAC","ignoreList":[]}
1
+ {"version":3,"file":"VFab.mjs","names":["makeVBtnProps","VBtn","makeLayoutItemProps","useLayoutItem","makeLocationProps","useProxiedModel","useResizeObserver","useToggleScope","makeTransitionProps","MaybeTransition","computed","ref","shallowRef","toRef","watchEffect","genericComponent","omit","propsFactory","useRender","makeVFabProps","app","Boolean","appear","extended","layout","offset","modelValue","type","default","active","transition","VFab","name","props","emits","value","setup","_ref","slots","model","height","layoutItemStyles","resizeRef","entries","length","target","clientHeight","hasPosition","absolute","position","location","split","shift","orientation","id","order","parseInt","layoutSize","elementSize","vFabRef","btnProps","filterProps","_createVNode","class","style","_withDirectives","_mergeProps","undefined","_vShow"],"sources":["../../../src/components/VFab/VFab.tsx"],"sourcesContent":["// Styles\nimport './VFab.sass'\n\n// Components\nimport { makeVBtnProps, VBtn } from '@/components/VBtn/VBtn'\n\n// Composables\nimport { makeLayoutItemProps, useLayoutItem } from '@/composables/layout'\nimport { makeLocationProps } from '@/composables/location'\nimport { useProxiedModel } from '@/composables/proxiedModel'\nimport { useResizeObserver } from '@/composables/resizeObserver'\nimport { useToggleScope } from '@/composables/toggleScope'\nimport { makeTransitionProps, MaybeTransition } from '@/composables/transition'\n\n// Utilities\nimport { computed, ref, shallowRef, toRef, watchEffect } from 'vue'\nimport { genericComponent, omit, propsFactory, useRender } from '@/util'\n\n// Types\nimport type { ComputedRef } from 'vue'\nimport type { Position } from '@/composables/layout'\n\nexport const makeVFabProps = propsFactory({\n app: Boolean,\n appear: Boolean,\n extended: Boolean,\n layout: Boolean,\n offset: Boolean,\n modelValue: {\n type: Boolean,\n default: true,\n },\n\n ...omit(makeVBtnProps({ active: true }), ['location']),\n ...makeLayoutItemProps(),\n ...makeLocationProps(),\n ...makeTransitionProps({ transition: 'fab-transition' }),\n}, 'VFab')\n\nexport const VFab = genericComponent()({\n name: 'VFab',\n\n props: makeVFabProps(),\n\n emits: {\n 'update:modelValue': (value: boolean) => true,\n },\n\n setup (props, { slots }) {\n const model = useProxiedModel(props, 'modelValue')\n const height = shallowRef(56)\n const layoutItemStyles = ref()\n\n const { resizeRef } = useResizeObserver(entries => {\n if (!entries.length) return\n height.value = entries[0].target.clientHeight\n })\n\n const hasPosition = computed(() => props.app || props.absolute)\n\n const position = computed(() => {\n if (!hasPosition.value) return false\n\n return props.location?.split(' ').shift() ?? 'bottom'\n }) as ComputedRef<Position>\n\n const orientation = computed(() => {\n if (!hasPosition.value) return false\n\n return props.location?.split(' ')[1] ?? 'end'\n })\n\n useToggleScope(() => props.app, () => {\n const layout = useLayoutItem({\n id: props.name,\n order: computed(() => parseInt(props.order, 10)),\n position,\n layoutSize: computed(() => props.layout ? height.value + 24 : 0),\n elementSize: computed(() => height.value + 24),\n active: computed(() => props.app && model.value),\n absolute: toRef(props, 'absolute'),\n })\n\n watchEffect(() => {\n layoutItemStyles.value = layout.layoutItemStyles.value\n })\n })\n\n const vFabRef = ref()\n\n useRender(() => {\n const btnProps = VBtn.filterProps(props)\n\n return (\n <div\n ref={ vFabRef }\n class={[\n 'v-fab',\n {\n 'v-fab--absolute': props.absolute,\n 'v-fab--app': !!props.app,\n 'v-fab--extended': props.extended,\n 'v-fab--offset': props.offset,\n [`v-fab--${position.value}`]: hasPosition.value,\n [`v-fab--${orientation.value}`]: hasPosition.value,\n },\n props.class,\n ]}\n style={[\n props.app\n ? { ...layoutItemStyles.value }\n : {\n height: props.absolute\n ? '100%'\n : 'inherit',\n },\n props.style,\n ]}\n >\n <div class=\"v-fab__container\">\n <MaybeTransition\n appear={ props.appear }\n transition={ props.transition }\n >\n <VBtn\n v-show={ props.active }\n ref={ resizeRef }\n { ...btnProps }\n active={ undefined }\n location={ undefined }\n v-slots={ slots }\n />\n </MaybeTransition>\n </div>\n </div>\n )\n })\n\n return {}\n },\n})\n\nexport type VFab = InstanceType<typeof VFab>\n"],"mappings":";AAAA;AACA;;AAEA;AAAA,SACSA,aAAa,EAAEC,IAAI,4BAE5B;AAAA,SACSC,mBAAmB,EAAEC,aAAa;AAAA,SAClCC,iBAAiB;AAAA,SACjBC,eAAe;AAAA,SACfC,iBAAiB;AAAA,SACjBC,cAAc;AAAA,SACdC,mBAAmB,EAAEC,eAAe,4CAE7C;AACA,SAASC,QAAQ,EAAEC,GAAG,EAAEC,UAAU,EAAEC,KAAK,EAAEC,WAAW,QAAQ,KAAK;AAAA,SAC1DC,gBAAgB,EAAEC,IAAI,EAAEC,YAAY,EAAEC,SAAS,gCAExD;AAIA,OAAO,MAAMC,aAAa,GAAGF,YAAY,CAAC;EACxCG,GAAG,EAAEC,OAAO;EACZC,MAAM,EAAED,OAAO;EACfE,QAAQ,EAAEF,OAAO;EACjBG,MAAM,EAAEH,OAAO;EACfI,MAAM,EAAEJ,OAAO;EACfK,UAAU,EAAE;IACVC,IAAI,EAAEN,OAAO;IACbO,OAAO,EAAE;EACX,CAAC;EAED,GAAGZ,IAAI,CAAChB,aAAa,CAAC;IAAE6B,MAAM,EAAE;EAAK,CAAC,CAAC,EAAE,CAAC,UAAU,CAAC,CAAC;EACtD,GAAG3B,mBAAmB,CAAC,CAAC;EACxB,GAAGE,iBAAiB,CAAC,CAAC;EACtB,GAAGI,mBAAmB,CAAC;IAAEsB,UAAU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;UAC/C,CAAC,UAAUkB,WAAW,CAAClB,KAAK,EAAE,GAAGY,WAAW,CAACZ;QAC/C,CAAC,EACDF,KAAK,CAAC8B,KAAK,CACZ;QAAA,SACM,CACL9B,KAAK,CAACb,GAAG,GACL;UAAE,GAAGqB,gBAAgB,CAACN;QAAM,CAAC,GAC7B;UACAK,MAAM,EAAEP,KAAK,CAACe,QAAQ,GAClB,MAAM,GACN;QACN,CAAC,EACHf,KAAK,CAAC+B,KAAK;MACZ,IAAAF,YAAA;QAAA;MAAA,IAAAA,YAAA,CAAArD,eAAA;QAAA,UAIYwB,KAAK,CAACX,MAAM;QAAA,cACRW,KAAK,CAACH;MAAU;QAAAF,OAAA,EAAAA,CAAA,MAAAqC,eAAA,CAAAH,YAAA,CAAA7D,IAAA,EAAAiE,WAAA;UAAA,OAIrBxB;QAAS,GACVkB,QAAQ;UAAA,UACJO,SAAS;UAAA,YACPA;QAAS,IACV7B,KAAK,KAAA8B,MAAA,EALNnC,KAAK,CAACJ,MAAM;MAAA;IAWjC,CAAC,CAAC;IAEF,OAAO,CAAC,CAAC;EACX;AACF,CAAC,CAAC","ignoreList":[]}
@@ -26,6 +26,10 @@
26
26
  &--absolute
27
27
  display: flex
28
28
 
29
+ &--absolute
30
+ position: absolute
31
+ inset: 0
32
+
29
33
  &--start,
30
34
  &--left
31
35
  justify-content: flex-start
@@ -53,11 +57,11 @@
53
57
  .v-fab__container
54
58
  align-self: center
55
59
  display: inline-flex
56
- position: absolute
57
60
  vertical-align: middle
58
61
 
59
62
  .v-fab--app &
60
63
  margin: 12px
64
+ position: fixed
61
65
 
62
66
  .v-fab--absolute &
63
67
  position: absolute
@@ -304,6 +304,8 @@ textarea.v-field__input::placeholder {
304
304
  --v-field-label-scale: 0.75em;
305
305
  font-size: var(--v-field-label-scale);
306
306
  visibility: hidden;
307
+ }
308
+ .v-field--variant-outlined .v-label.v-field-label--floating {
307
309
  max-width: 100%;
308
310
  }
309
311
  .v-field--center-affix .v-label.v-field-label--floating {
@@ -435,8 +437,14 @@ textarea.v-field__input::placeholder {
435
437
  .v-field--variant-outlined .v-field__outline__notch {
436
438
  flex: none;
437
439
  position: relative;
440
+ max-width: calc(100% - 24px);
441
+ }
442
+ .v-field--rounded.v-field--variant-outlined .v-field__outline__notch,
443
+ [class^=rounded-].v-field--variant-outlined .v-field__outline__notch,
444
+ [class*=" rounded-"].v-field--variant-outlined .v-field__outline__notch {
438
445
  max-width: calc(100% - var(--v-input-control-height));
439
446
  }
447
+
440
448
  .v-field--variant-outlined .v-field__outline__notch::before, .v-field--variant-outlined .v-field__outline__notch::after {
441
449
  opacity: var(--v-field-border-opacity);
442
450
  transition: opacity 250ms cubic-bezier(0.4, 0, 0.2, 1);
@@ -278,7 +278,9 @@
278
278
  --v-field-label-scale: #{$field-label-floating-scale}em
279
279
  font-size: var(--v-field-label-scale)
280
280
  visibility: hidden
281
- max-width: 100%
281
+
282
+ .v-field--variant-outlined &
283
+ max-width: 100%
282
284
 
283
285
  .v-field--center-affix &
284
286
  transform: none
@@ -399,7 +401,13 @@
399
401
  &__notch
400
402
  flex: none
401
403
  position: relative
402
- max-width: calc(100% - var(--v-input-control-height))
404
+ max-width: calc(100% - $field-control-affixed-padding * 2)
405
+
406
+ @at-root
407
+ #{selector.append('.v-field--rounded', &)},
408
+ #{selector.append('[class^="rounded-"]', &)},
409
+ #{selector.append('[class*=" rounded-"]', &)}
410
+ max-width: calc(100% - var(--v-input-control-height))
403
411
 
404
412
  &::before,
405
413
  &::after
@@ -178,7 +178,7 @@ export const VPagination = genericComponent()({
178
178
  const rangeStart = length.value - rangeLength + start.value;
179
179
  return [start.value, props.ellipsis, ...createRange(rangeLength, rangeStart)];
180
180
  } else {
181
- const rangeLength = Math.max(1, totalVisible.value - 3);
181
+ const rangeLength = Math.max(1, totalVisible.value - 2);
182
182
  const rangeStart = rangeLength === 1 ? page.value : page.value - Math.ceil(rangeLength / 2) + start.value;
183
183
  return [start.value, props.ellipsis, ...createRange(rangeLength, rangeStart), props.ellipsis, length.value];
184
184
  }
@@ -1 +1 @@
1
- {"version":3,"file":"VPagination.mjs","names":["VBtn","useDisplay","makeBorderProps","makeComponentProps","provideDefaults","makeDensityProps","makeElevationProps","IconValue","useLocale","useRtl","useProxiedModel","useRefs","useResizeObserver","makeRoundedProps","makeSizeProps","makeTagProps","makeThemeProps","provideTheme","makeVariantProps","computed","nextTick","shallowRef","toRef","createRange","genericComponent","keyValues","propsFactory","useRender","makeVPaginationProps","activeColor","String","start","type","Number","default","modelValue","props","disabled","Boolean","length","validator","val","totalVisible","firstIcon","prevIcon","nextIcon","lastIcon","ariaLabel","pageAriaLabel","currentPageAriaLabel","firstAriaLabel","previousAriaLabel","nextAriaLabel","lastAriaLabel","ellipsis","showFirstLastPage","tag","variant","VPagination","name","emits","value","first","prev","next","last","setup","_ref","slots","emit","page","t","n","isRtl","themeClasses","width","maxButtons","undefined","scoped","resizeRef","entries","target","contentRect","firstItem","querySelector","totalWidth","itemWidth","offsetWidth","parseFloat","getComputedStyle","marginRight","getMax","parseInt","minButtons","Math","max","floor","toFixed","range","isNaN","MAX_SAFE_INTEGER","even","middle","left","right","rangeLength","rangeStart","ceil","setValue","e","event","preventDefault","refs","updateRef","VPaginationBtn","color","border","density","size","rounded","elevation","items","map","item","index","ref","isActive","key","icon","onClick","controls","prevDisabled","nextDisabled","updateFocus","currentIndex","$el","focus","onKeydown","_createVNode","class","style","_mergeProps"],"sources":["../../../src/components/VPagination/VPagination.tsx"],"sourcesContent":["// Styles\nimport './VPagination.sass'\n\n// Components\nimport { VBtn } from '../VBtn'\n\n// Composables\nimport { useDisplay } from '@/composables'\nimport { makeBorderProps } from '@/composables/border'\nimport { makeComponentProps } from '@/composables/component'\nimport { provideDefaults } from '@/composables/defaults'\nimport { makeDensityProps } from '@/composables/density'\nimport { makeElevationProps } from '@/composables/elevation'\nimport { IconValue } from '@/composables/icons'\nimport { useLocale, useRtl } from '@/composables/locale'\nimport { useProxiedModel } from '@/composables/proxiedModel'\nimport { useRefs } from '@/composables/refs'\nimport { useResizeObserver } from '@/composables/resizeObserver'\nimport { makeRoundedProps } from '@/composables/rounded'\nimport { makeSizeProps } from '@/composables/size'\nimport { makeTagProps } from '@/composables/tag'\nimport { makeThemeProps, provideTheme } from '@/composables/theme'\nimport { makeVariantProps } from '@/composables/variant'\n\n// Utilities\nimport { computed, nextTick, shallowRef, toRef } from 'vue'\nimport { createRange, genericComponent, keyValues, propsFactory, useRender } from '@/util'\n\n// Types\nimport type { ComponentPublicInstance } from 'vue'\n\ntype ItemSlot = {\n isActive: boolean\n key: string | number\n page: string\n props: Record<string, any>\n}\n\ntype ControlSlot = {\n icon: IconValue\n onClick: (e: Event) => void\n disabled: boolean\n 'aria-label': string\n 'aria-disabled': boolean\n}\n\nexport type VPaginationSlots = {\n item: ItemSlot\n first: ControlSlot\n prev: ControlSlot\n next: ControlSlot\n last: ControlSlot\n}\n\nexport const makeVPaginationProps = propsFactory({\n activeColor: String,\n start: {\n type: [Number, String],\n default: 1,\n },\n modelValue: {\n type: Number,\n default: (props: any) => props.start as number,\n },\n disabled: Boolean,\n length: {\n type: [Number, String],\n default: 1,\n validator: (val: number) => val % 1 === 0,\n },\n totalVisible: [Number, String],\n firstIcon: {\n type: IconValue,\n default: '$first',\n },\n prevIcon: {\n type: IconValue,\n default: '$prev',\n },\n nextIcon: {\n type: IconValue,\n default: '$next',\n },\n lastIcon: {\n type: IconValue,\n default: '$last',\n },\n ariaLabel: {\n type: String,\n default: '$vuetify.pagination.ariaLabel.root',\n },\n pageAriaLabel: {\n type: String,\n default: '$vuetify.pagination.ariaLabel.page',\n },\n currentPageAriaLabel: {\n type: String,\n default: '$vuetify.pagination.ariaLabel.currentPage',\n },\n firstAriaLabel: {\n type: String,\n default: '$vuetify.pagination.ariaLabel.first',\n },\n previousAriaLabel: {\n type: String,\n default: '$vuetify.pagination.ariaLabel.previous',\n },\n nextAriaLabel: {\n type: String,\n default: '$vuetify.pagination.ariaLabel.next',\n },\n lastAriaLabel: {\n type: String,\n default: '$vuetify.pagination.ariaLabel.last',\n },\n ellipsis: {\n type: String,\n default: '...',\n },\n showFirstLastPage: Boolean,\n\n ...makeBorderProps(),\n ...makeComponentProps(),\n ...makeDensityProps(),\n ...makeElevationProps(),\n ...makeRoundedProps(),\n ...makeSizeProps(),\n ...makeTagProps({ tag: 'nav' }),\n ...makeThemeProps(),\n ...makeVariantProps({ variant: 'text' } as const),\n}, 'VPagination')\n\nexport const VPagination = genericComponent<VPaginationSlots>()({\n name: 'VPagination',\n\n props: makeVPaginationProps(),\n\n emits: {\n 'update:modelValue': (value: number) => true,\n first: (value: number) => true,\n prev: (value: number) => true,\n next: (value: number) => true,\n last: (value: number) => true,\n },\n\n setup (props, { slots, emit }) {\n const page = useProxiedModel(props, 'modelValue')\n const { t, n } = useLocale()\n const { isRtl } = useRtl()\n const { themeClasses } = provideTheme(props)\n const { width } = useDisplay()\n const maxButtons = shallowRef(-1)\n\n provideDefaults(undefined, { scoped: true })\n\n const { resizeRef } = useResizeObserver((entries: ResizeObserverEntry[]) => {\n if (!entries.length) return\n\n const { target, contentRect } = entries[0]\n\n const firstItem = target.querySelector('.v-pagination__list > *') as HTMLElement\n\n if (!firstItem) return\n\n const totalWidth = contentRect.width\n const itemWidth =\n firstItem.offsetWidth +\n parseFloat(getComputedStyle(firstItem).marginRight) * 2\n\n maxButtons.value = getMax(totalWidth, itemWidth)\n })\n\n const length = computed(() => parseInt(props.length, 10))\n const start = computed(() => parseInt(props.start, 10))\n\n const totalVisible = computed(() => {\n if (props.totalVisible != null) return parseInt(props.totalVisible, 10)\n else if (maxButtons.value >= 0) return maxButtons.value\n return getMax(width.value, 58)\n })\n\n function getMax (totalWidth: number, itemWidth: number) {\n const minButtons = props.showFirstLastPage ? 5 : 3\n return Math.max(0, Math.floor(\n // Round to two decimal places to avoid floating point errors\n +((totalWidth - itemWidth * minButtons) / itemWidth).toFixed(2)\n ))\n }\n\n const range = computed(() => {\n if (length.value <= 0 || isNaN(length.value) || length.value > Number.MAX_SAFE_INTEGER) return []\n\n if (totalVisible.value <= 0) return []\n else if (totalVisible.value === 1) return [page.value]\n\n if (length.value <= totalVisible.value) {\n return createRange(length.value, start.value)\n }\n\n const even = totalVisible.value % 2 === 0\n const middle = even ? totalVisible.value / 2 : Math.floor(totalVisible.value / 2)\n const left = even ? middle : middle + 1\n const right = length.value - middle\n\n if (left - page.value >= 0) {\n return [...createRange(Math.max(1, totalVisible.value - 1), start.value), props.ellipsis, length.value]\n } else if (page.value - right >= (even ? 1 : 0)) {\n const rangeLength = totalVisible.value - 1\n const rangeStart = length.value - rangeLength + start.value\n return [start.value, props.ellipsis, ...createRange(rangeLength, rangeStart)]\n } else {\n const rangeLength = Math.max(1, totalVisible.value - 3)\n const rangeStart = rangeLength === 1 ? page.value : page.value - Math.ceil(rangeLength / 2) + start.value\n return [start.value, props.ellipsis, ...createRange(rangeLength, rangeStart), props.ellipsis, length.value]\n }\n })\n\n // TODO: 'first' | 'prev' | 'next' | 'last' does not work here?\n function setValue (e: Event, value: number, event?: any) {\n e.preventDefault()\n page.value = value\n event && emit(event, value)\n }\n\n const { refs, updateRef } = useRefs<ComponentPublicInstance>()\n\n provideDefaults({\n VPaginationBtn: {\n color: toRef(props, 'color'),\n border: toRef(props, 'border'),\n density: toRef(props, 'density'),\n size: toRef(props, 'size'),\n variant: toRef(props, 'variant'),\n rounded: toRef(props, 'rounded'),\n elevation: toRef(props, 'elevation'),\n },\n })\n\n const items = computed(() => {\n return range.value.map((item, index) => {\n const ref = (e: any) => updateRef(e, index)\n\n if (typeof item === 'string') {\n return {\n isActive: false,\n key: `ellipsis-${index}`,\n page: item,\n props: {\n ref,\n ellipsis: true,\n icon: true,\n disabled: true,\n },\n }\n } else {\n const isActive = item === page.value\n return {\n isActive,\n key: item,\n page: n(item),\n props: {\n ref,\n ellipsis: false,\n icon: true,\n disabled: !!props.disabled || +props.length < 2,\n color: isActive ? props.activeColor : props.color,\n 'aria-current': isActive,\n 'aria-label': t(isActive ? props.currentPageAriaLabel : props.pageAriaLabel, item),\n onClick: (e: Event) => setValue(e, item),\n },\n }\n }\n })\n })\n\n const controls = computed(() => {\n const prevDisabled = !!props.disabled || page.value <= start.value\n const nextDisabled = !!props.disabled || page.value >= start.value + length.value - 1\n\n return {\n first: props.showFirstLastPage ? {\n icon: isRtl.value ? props.lastIcon : props.firstIcon,\n onClick: (e: Event) => setValue(e, start.value, 'first'),\n disabled: prevDisabled,\n 'aria-label': t(props.firstAriaLabel),\n 'aria-disabled': prevDisabled,\n } : undefined,\n prev: {\n icon: isRtl.value ? props.nextIcon : props.prevIcon,\n onClick: (e: Event) => setValue(e, page.value - 1, 'prev'),\n disabled: prevDisabled,\n 'aria-label': t(props.previousAriaLabel),\n 'aria-disabled': prevDisabled,\n },\n next: {\n icon: isRtl.value ? props.prevIcon : props.nextIcon,\n onClick: (e: Event) => setValue(e, page.value + 1, 'next'),\n disabled: nextDisabled,\n 'aria-label': t(props.nextAriaLabel),\n 'aria-disabled': nextDisabled,\n },\n last: props.showFirstLastPage ? {\n icon: isRtl.value ? props.firstIcon : props.lastIcon,\n onClick: (e: Event) => setValue(e, start.value + length.value - 1, 'last'),\n disabled: nextDisabled,\n 'aria-label': t(props.lastAriaLabel),\n 'aria-disabled': nextDisabled,\n } : undefined,\n }\n })\n\n function updateFocus () {\n const currentIndex = page.value - start.value\n refs.value[currentIndex]?.$el.focus()\n }\n\n function onKeydown (e: KeyboardEvent) {\n if (e.key === keyValues.left && !props.disabled && page.value > +props.start) {\n page.value = page.value - 1\n nextTick(updateFocus)\n } else if (e.key === keyValues.right && !props.disabled && page.value < start.value + length.value - 1) {\n page.value = page.value + 1\n nextTick(updateFocus)\n }\n }\n\n useRender(() => (\n <props.tag\n ref={ resizeRef }\n class={[\n 'v-pagination',\n themeClasses.value,\n props.class,\n ]}\n style={ props.style }\n role=\"navigation\"\n aria-label={ t(props.ariaLabel) }\n onKeydown={ onKeydown }\n data-test=\"v-pagination-root\"\n >\n <ul class=\"v-pagination__list\">\n { props.showFirstLastPage && (\n <li key=\"first\" class=\"v-pagination__first\" data-test=\"v-pagination-first\">\n { slots.first ? slots.first(controls.value.first!) : (\n <VBtn _as=\"VPaginationBtn\" { ...controls.value.first } />\n )}\n </li>\n )}\n\n <li key=\"prev\" class=\"v-pagination__prev\" data-test=\"v-pagination-prev\">\n { slots.prev ? slots.prev(controls.value.prev) : (\n <VBtn _as=\"VPaginationBtn\" { ...controls.value.prev } />\n )}\n </li>\n\n { items.value.map((item, index) => (\n <li\n key={ item.key }\n class={[\n 'v-pagination__item',\n {\n 'v-pagination__item--is-active': item.isActive,\n },\n ]}\n data-test=\"v-pagination-item\"\n >\n { slots.item ? slots.item(item) : (\n <VBtn _as=\"VPaginationBtn\" { ...item.props }>{ item.page }</VBtn>\n )}\n </li>\n ))}\n\n <li\n key=\"next\"\n class=\"v-pagination__next\"\n data-test=\"v-pagination-next\"\n >\n { slots.next ? slots.next(controls.value.next) : (\n <VBtn _as=\"VPaginationBtn\" { ...controls.value.next } />\n )}\n </li>\n\n { props.showFirstLastPage && (\n <li\n key=\"last\"\n class=\"v-pagination__last\"\n data-test=\"v-pagination-last\"\n >\n { slots.last ? slots.last(controls.value.last!) : (\n <VBtn _as=\"VPaginationBtn\" { ...controls.value.last } />\n )}\n </li>\n )}\n </ul>\n </props.tag>\n ))\n\n return {}\n },\n})\n\nexport type VPagination = InstanceType<typeof VPagination>\n"],"mappings":";AAAA;AACA;;AAEA;AAAA,SACSA,IAAI,6BAEb;AAAA,SACSC,UAAU;AAAA,SACVC,eAAe;AAAA,SACfC,kBAAkB;AAAA,SAClBC,eAAe;AAAA,SACfC,gBAAgB;AAAA,SAChBC,kBAAkB;AAAA,SAClBC,SAAS;AAAA,SACTC,SAAS,EAAEC,MAAM;AAAA,SACjBC,eAAe;AAAA,SACfC,OAAO;AAAA,SACPC,iBAAiB;AAAA,SACjBC,gBAAgB;AAAA,SAChBC,aAAa;AAAA,SACbC,YAAY;AAAA,SACZC,cAAc,EA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MAAA,EACzD,EAEJ,CAAC,EAAAoE,YAAA;QAAA;QAAA;QAAA;MAAA,IAOEtE,KAAK,CAACJ,IAAI,GAAGI,KAAK,CAACJ,IAAI,CAACkE,QAAQ,CAACrE,KAAK,CAACG,IAAI,CAAC,GAAA0E,YAAA,CAAA1I,IAAA,EAAA6I,WAAA;QAAA;MAAA,GACZX,QAAQ,CAACrE,KAAK,CAACG,IAAI,QACpD,IAGD5B,KAAK,CAACmB,iBAAiB,IAAAmF,YAAA;QAAA;QAAA;QAAA;MAAA,IAMnBtE,KAAK,CAACH,IAAI,GAAGG,KAAK,CAACH,IAAI,CAACiE,QAAQ,CAACrE,KAAK,CAACI,IAAK,CAAC,GAAAyE,YAAA,CAAA1I,IAAA,EAAA6I,WAAA;QAAA;MAAA,GACbX,QAAQ,CAACrE,KAAK,CAACI,IAAI,QACpD,EAEJ;IAAA,EAGN,CAAC;IAEF,OAAO,CAAC,CAAC;EACX;AACF,CAAC,CAAC","ignoreList":[]}
1
+ {"version":3,"file":"VPagination.mjs","names":["VBtn","useDisplay","makeBorderProps","makeComponentProps","provideDefaults","makeDensityProps","makeElevationProps","IconValue","useLocale","useRtl","useProxiedModel","useRefs","useResizeObserver","makeRoundedProps","makeSizeProps","makeTagProps","makeThemeProps","provideTheme","makeVariantProps","computed","nextTick","shallowRef","toRef","createRange","genericComponent","keyValues","propsFactory","useRender","makeVPaginationProps","activeColor","String","start","type","Number","default","modelValue","props","disabled","Boolean","length","validator","val","totalVisible","firstIcon","prevIcon","nextIcon","lastIcon","ariaLabel","pageAriaLabel","currentPageAriaLabel","firstAriaLabel","previousAriaLabel","nextAriaLabel","lastAriaLabel","ellipsis","showFirstLastPage","tag","variant","VPagination","name","emits","value","first","prev","next","last","setup","_ref","slots","emit","page","t","n","isRtl","themeClasses","width","maxButtons","undefined","scoped","resizeRef","entries","target","contentRect","firstItem","querySelector","totalWidth","itemWidth","offsetWidth","parseFloat","getComputedStyle","marginRight","getMax","parseInt","minButtons","Math","max","floor","toFixed","range","isNaN","MAX_SAFE_INTEGER","even","middle","left","right","rangeLength","rangeStart","ceil","setValue","e","event","preventDefault","refs","updateRef","VPaginationBtn","color","border","density","size","rounded","elevation","items","map","item","index","ref","isActive","key","icon","onClick","controls","prevDisabled","nextDisabled","updateFocus","currentIndex","$el","focus","onKeydown","_createVNode","class","style","_mergeProps"],"sources":["../../../src/components/VPagination/VPagination.tsx"],"sourcesContent":["// Styles\nimport './VPagination.sass'\n\n// Components\nimport { VBtn } from '../VBtn'\n\n// Composables\nimport { useDisplay } from '@/composables'\nimport { makeBorderProps } from '@/composables/border'\nimport { makeComponentProps } from '@/composables/component'\nimport { provideDefaults } from '@/composables/defaults'\nimport { makeDensityProps } from '@/composables/density'\nimport { makeElevationProps } from '@/composables/elevation'\nimport { IconValue } from '@/composables/icons'\nimport { useLocale, useRtl } from '@/composables/locale'\nimport { useProxiedModel } from '@/composables/proxiedModel'\nimport { useRefs } from '@/composables/refs'\nimport { useResizeObserver } from '@/composables/resizeObserver'\nimport { makeRoundedProps } from '@/composables/rounded'\nimport { makeSizeProps } from '@/composables/size'\nimport { makeTagProps } from '@/composables/tag'\nimport { makeThemeProps, provideTheme } from '@/composables/theme'\nimport { makeVariantProps } from '@/composables/variant'\n\n// Utilities\nimport { computed, nextTick, shallowRef, toRef } from 'vue'\nimport { createRange, genericComponent, keyValues, propsFactory, useRender } from '@/util'\n\n// Types\nimport type { ComponentPublicInstance } from 'vue'\n\ntype ItemSlot = {\n isActive: boolean\n key: string | number\n page: string\n props: Record<string, any>\n}\n\ntype ControlSlot = {\n icon: IconValue\n onClick: (e: Event) => void\n disabled: boolean\n 'aria-label': string\n 'aria-disabled': boolean\n}\n\nexport type VPaginationSlots = {\n item: ItemSlot\n first: ControlSlot\n prev: ControlSlot\n next: ControlSlot\n last: ControlSlot\n}\n\nexport const makeVPaginationProps = propsFactory({\n activeColor: String,\n start: {\n type: [Number, String],\n default: 1,\n },\n modelValue: {\n type: Number,\n default: (props: any) => props.start as number,\n },\n disabled: Boolean,\n length: {\n type: [Number, String],\n default: 1,\n validator: (val: number) => val % 1 === 0,\n },\n totalVisible: [Number, String],\n firstIcon: {\n type: IconValue,\n default: '$first',\n },\n prevIcon: {\n type: IconValue,\n default: '$prev',\n },\n nextIcon: {\n type: IconValue,\n default: '$next',\n },\n lastIcon: {\n type: IconValue,\n default: '$last',\n },\n ariaLabel: {\n type: String,\n default: '$vuetify.pagination.ariaLabel.root',\n },\n pageAriaLabel: {\n type: String,\n default: '$vuetify.pagination.ariaLabel.page',\n },\n currentPageAriaLabel: {\n type: String,\n default: '$vuetify.pagination.ariaLabel.currentPage',\n },\n firstAriaLabel: {\n type: String,\n default: '$vuetify.pagination.ariaLabel.first',\n },\n previousAriaLabel: {\n type: String,\n default: '$vuetify.pagination.ariaLabel.previous',\n },\n nextAriaLabel: {\n type: String,\n default: '$vuetify.pagination.ariaLabel.next',\n },\n lastAriaLabel: {\n type: String,\n default: '$vuetify.pagination.ariaLabel.last',\n },\n ellipsis: {\n type: String,\n default: '...',\n },\n showFirstLastPage: Boolean,\n\n ...makeBorderProps(),\n ...makeComponentProps(),\n ...makeDensityProps(),\n ...makeElevationProps(),\n ...makeRoundedProps(),\n ...makeSizeProps(),\n ...makeTagProps({ tag: 'nav' }),\n ...makeThemeProps(),\n ...makeVariantProps({ variant: 'text' } as const),\n}, 'VPagination')\n\nexport const VPagination = genericComponent<VPaginationSlots>()({\n name: 'VPagination',\n\n props: makeVPaginationProps(),\n\n emits: {\n 'update:modelValue': (value: number) => true,\n first: (value: number) => true,\n prev: (value: number) => true,\n next: (value: number) => true,\n last: (value: number) => true,\n },\n\n setup (props, { slots, emit }) {\n const page = useProxiedModel(props, 'modelValue')\n const { t, n } = useLocale()\n const { isRtl } = useRtl()\n const { themeClasses } = provideTheme(props)\n const { width } = useDisplay()\n const maxButtons = shallowRef(-1)\n\n provideDefaults(undefined, { scoped: true })\n\n const { resizeRef } = useResizeObserver((entries: ResizeObserverEntry[]) => {\n if (!entries.length) return\n\n const { target, contentRect } = entries[0]\n\n const firstItem = target.querySelector('.v-pagination__list > *') as HTMLElement\n\n if (!firstItem) return\n\n const totalWidth = contentRect.width\n const itemWidth =\n firstItem.offsetWidth +\n parseFloat(getComputedStyle(firstItem).marginRight) * 2\n\n maxButtons.value = getMax(totalWidth, itemWidth)\n })\n\n const length = computed(() => parseInt(props.length, 10))\n const start = computed(() => parseInt(props.start, 10))\n\n const totalVisible = computed(() => {\n if (props.totalVisible != null) return parseInt(props.totalVisible, 10)\n else if (maxButtons.value >= 0) return maxButtons.value\n return getMax(width.value, 58)\n })\n\n function getMax (totalWidth: number, itemWidth: number) {\n const minButtons = props.showFirstLastPage ? 5 : 3\n return Math.max(0, Math.floor(\n // Round to two decimal places to avoid floating point errors\n +((totalWidth - itemWidth * minButtons) / itemWidth).toFixed(2)\n ))\n }\n\n const range = computed(() => {\n if (length.value <= 0 || isNaN(length.value) || length.value > Number.MAX_SAFE_INTEGER) return []\n\n if (totalVisible.value <= 0) return []\n else if (totalVisible.value === 1) return [page.value]\n\n if (length.value <= totalVisible.value) {\n return createRange(length.value, start.value)\n }\n\n const even = totalVisible.value % 2 === 0\n const middle = even ? totalVisible.value / 2 : Math.floor(totalVisible.value / 2)\n const left = even ? middle : middle + 1\n const right = length.value - middle\n\n if (left - page.value >= 0) {\n return [...createRange(Math.max(1, totalVisible.value - 1), start.value), props.ellipsis, length.value]\n } else if (page.value - right >= (even ? 1 : 0)) {\n const rangeLength = totalVisible.value - 1\n const rangeStart = length.value - rangeLength + start.value\n return [start.value, props.ellipsis, ...createRange(rangeLength, rangeStart)]\n } else {\n const rangeLength = Math.max(1, totalVisible.value - 2)\n const rangeStart = rangeLength === 1 ? page.value : page.value - Math.ceil(rangeLength / 2) + start.value\n return [start.value, props.ellipsis, ...createRange(rangeLength, rangeStart), props.ellipsis, length.value]\n }\n })\n\n // TODO: 'first' | 'prev' | 'next' | 'last' does not work here?\n function setValue (e: Event, value: number, event?: any) {\n e.preventDefault()\n page.value = value\n event && emit(event, value)\n }\n\n const { refs, updateRef } = useRefs<ComponentPublicInstance>()\n\n provideDefaults({\n VPaginationBtn: {\n color: toRef(props, 'color'),\n border: toRef(props, 'border'),\n density: toRef(props, 'density'),\n size: toRef(props, 'size'),\n variant: toRef(props, 'variant'),\n rounded: toRef(props, 'rounded'),\n elevation: toRef(props, 'elevation'),\n },\n })\n\n const items = computed(() => {\n return range.value.map((item, index) => {\n const ref = (e: any) => updateRef(e, index)\n\n if (typeof item === 'string') {\n return {\n isActive: false,\n key: `ellipsis-${index}`,\n page: item,\n props: {\n ref,\n ellipsis: true,\n icon: true,\n disabled: true,\n },\n }\n } else {\n const isActive = item === page.value\n return {\n isActive,\n key: item,\n page: n(item),\n props: {\n ref,\n ellipsis: false,\n icon: true,\n disabled: !!props.disabled || +props.length < 2,\n color: isActive ? props.activeColor : props.color,\n 'aria-current': isActive,\n 'aria-label': t(isActive ? props.currentPageAriaLabel : props.pageAriaLabel, item),\n onClick: (e: Event) => setValue(e, item),\n },\n }\n }\n })\n })\n\n const controls = computed(() => {\n const prevDisabled = !!props.disabled || page.value <= start.value\n const nextDisabled = !!props.disabled || page.value >= start.value + length.value - 1\n\n return {\n first: props.showFirstLastPage ? {\n icon: isRtl.value ? props.lastIcon : props.firstIcon,\n onClick: (e: Event) => setValue(e, start.value, 'first'),\n disabled: prevDisabled,\n 'aria-label': t(props.firstAriaLabel),\n 'aria-disabled': prevDisabled,\n } : undefined,\n prev: {\n icon: isRtl.value ? props.nextIcon : props.prevIcon,\n onClick: (e: Event) => setValue(e, page.value - 1, 'prev'),\n disabled: prevDisabled,\n 'aria-label': t(props.previousAriaLabel),\n 'aria-disabled': prevDisabled,\n },\n next: {\n icon: isRtl.value ? props.prevIcon : props.nextIcon,\n onClick: (e: Event) => setValue(e, page.value + 1, 'next'),\n disabled: nextDisabled,\n 'aria-label': t(props.nextAriaLabel),\n 'aria-disabled': nextDisabled,\n },\n last: props.showFirstLastPage ? {\n icon: isRtl.value ? props.firstIcon : props.lastIcon,\n onClick: (e: Event) => setValue(e, start.value + length.value - 1, 'last'),\n disabled: nextDisabled,\n 'aria-label': t(props.lastAriaLabel),\n 'aria-disabled': nextDisabled,\n } : undefined,\n }\n })\n\n function updateFocus () {\n const currentIndex = page.value - start.value\n refs.value[currentIndex]?.$el.focus()\n }\n\n function onKeydown (e: KeyboardEvent) {\n if (e.key === keyValues.left && !props.disabled && page.value > +props.start) {\n page.value = page.value - 1\n nextTick(updateFocus)\n } else if (e.key === keyValues.right && !props.disabled && page.value < start.value + length.value - 1) {\n page.value = page.value + 1\n nextTick(updateFocus)\n }\n }\n\n useRender(() => (\n <props.tag\n ref={ resizeRef }\n class={[\n 'v-pagination',\n themeClasses.value,\n props.class,\n ]}\n style={ props.style }\n role=\"navigation\"\n aria-label={ t(props.ariaLabel) }\n onKeydown={ onKeydown }\n data-test=\"v-pagination-root\"\n >\n <ul class=\"v-pagination__list\">\n { props.showFirstLastPage && (\n <li key=\"first\" class=\"v-pagination__first\" data-test=\"v-pagination-first\">\n { slots.first ? slots.first(controls.value.first!) : (\n <VBtn _as=\"VPaginationBtn\" { ...controls.value.first } />\n )}\n </li>\n )}\n\n <li key=\"prev\" class=\"v-pagination__prev\" data-test=\"v-pagination-prev\">\n { slots.prev ? slots.prev(controls.value.prev) : (\n <VBtn _as=\"VPaginationBtn\" { ...controls.value.prev } />\n )}\n </li>\n\n { items.value.map((item, index) => (\n <li\n key={ item.key }\n class={[\n 'v-pagination__item',\n {\n 'v-pagination__item--is-active': item.isActive,\n },\n ]}\n data-test=\"v-pagination-item\"\n >\n { slots.item ? slots.item(item) : (\n <VBtn _as=\"VPaginationBtn\" { ...item.props }>{ item.page }</VBtn>\n )}\n </li>\n ))}\n\n <li\n key=\"next\"\n class=\"v-pagination__next\"\n data-test=\"v-pagination-next\"\n >\n { slots.next ? slots.next(controls.value.next) : (\n <VBtn _as=\"VPaginationBtn\" { ...controls.value.next } />\n )}\n </li>\n\n { props.showFirstLastPage && (\n <li\n key=\"last\"\n class=\"v-pagination__last\"\n data-test=\"v-pagination-last\"\n >\n { slots.last ? slots.last(controls.value.last!) : (\n <VBtn _as=\"VPaginationBtn\" { ...controls.value.last } />\n )}\n </li>\n )}\n </ul>\n </props.tag>\n ))\n\n return {}\n },\n})\n\nexport type VPagination = InstanceType<typeof VPagination>\n"],"mappings":";AAAA;AACA;;AAEA;AAAA,SACSA,IAAI,6BAEb;AAAA,SACSC,UAAU;AAAA,SACVC,eAAe;AAAA,SACfC,kBAAkB;AAAA,SAClBC,eAAe;AAAA,SACfC,gBAAgB;AAAA,SAChBC,kBAAkB;AAAA,SAClBC,SAAS;AAAA,SACTC,SAAS,EAAEC,MAAM;AAAA,SACjBC,eAAe;AAAA,SACfC,OAAO;AAAA,SACPC,iBAAiB;AAAA,SACjBC,gBAAgB;AAAA,SAChBC,aAAa;AAAA,SACbC,YAAY;AAAA,SACZC,cAAc,EAAEC,YAAY;AAAA,SAC5BC,gBAAgB,yCAEzB;AACA,SAASC,QAAQ,EAAEC,QAAQ,EAAEC,UAAU,EAAEC,KAAK,QAAQ,KAAK;AAAA,SAClDC,WAAW,EAAEC,gBAAgB,EAAEC,SAAS,EAAEC,YAAY,EAAEC,SAAS,gCAE1E;AA0BA,OAAO,MAAMC,oBAAoB,GAAGF,YAAY,CAAC;EAC/CG,WAAW,EAAEC,MAAM;EACnBC,KAAK,EAAE;IACLC,IAAI,EAAE,CAACC,MAAM,EAAEH,MAAM,CAAC;IACtBI,OAAO,EAAE;EACX,CAAC;EACDC,UAAU,EAAE;IACVH,IAAI,EAAEC,MAAM;IACZC,OAAO,EAAGE,KAAU,IAAKA,KAAK,CAACL;EACjC,CAAC;EACDM,QAAQ,EAAEC,OAAO;EACjBC,MAAM,EAAE;IACNP,IAAI,EAAE,CAACC,MAAM,EAAEH,MAAM,CAAC;IACtBI,OAAO,EAAE,CAAC;IACVM,SAAS,EAAGC,GAAW,IAAKA,GAAG,GAAG,CAAC,KAAK;EAC1C,C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> = {
23154
23154
  sort?: DataTableCompareFunction;
23155
23155
  sortRaw?: DataTableCompareFunction;
23156
23156
  filter?: FilterFunction;
23157
- mobile?: boolean;
23158
23157
  children?: DataTableHeader<T>[];
23159
23158
  };
23160
23159
  type InternalDataTableHeader = Omit<DataTableHeader, 'key' | 'value' | 'children'> & {
@@ -25633,7 +25632,6 @@ declare const VDataTableVirtual: {
25633
25632
  readonly sort?: DataTableCompareFunction | undefined;
25634
25633
  readonly sortRaw?: DataTableCompareFunction | undefined;
25635
25634
  readonly filter?: FilterFunction | undefined;
25636
- readonly mobile?: boolean | undefined;
25637
25635
  readonly children?: readonly {
25638
25636
  readonly key?: ("data-table-group" | "data-table-select" | "data-table-expand" | (string & {})) | undefined;
25639
25637
  readonly value?: SelectItemKey<Record<string, any>>;
@@ -25654,7 +25652,6 @@ declare const VDataTableVirtual: {
25654
25652
  readonly sort?: DataTableCompareFunction | undefined;
25655
25653
  readonly sortRaw?: DataTableCompareFunction | undefined;
25656
25654
  readonly filter?: FilterFunction | undefined;
25657
- readonly mobile?: boolean | undefined;
25658
25655
  readonly children?: readonly any[] | undefined;
25659
25656
  }[] | undefined;
25660
25657
  }[] | undefined;
@@ -25735,7 +25732,6 @@ declare const VDataTableVirtual: {
25735
25732
  readonly sort?: DataTableCompareFunction | undefined;
25736
25733
  readonly sortRaw?: DataTableCompareFunction | undefined;
25737
25734
  readonly filter?: FilterFunction | undefined;
25738
- readonly mobile?: boolean | undefined;
25739
25735
  readonly children?: readonly {
25740
25736
  readonly key?: ("data-table-group" | "data-table-select" | "data-table-expand" | (string & {})) | undefined;
25741
25737
  readonly value?: SelectItemKey<Record<string, any>>;
@@ -25756,7 +25752,6 @@ declare const VDataTableVirtual: {
25756
25752
  readonly sort?: DataTableCompareFunction | undefined;
25757
25753
  readonly sortRaw?: DataTableCompareFunction | undefined;
25758
25754
  readonly filter?: FilterFunction | undefined;
25759
- readonly mobile?: boolean | undefined;
25760
25755
  readonly children?: readonly any[] | undefined;
25761
25756
  }[] | undefined;
25762
25757
  }[] | undefined;
@@ -25911,7 +25906,6 @@ declare const VDataTableVirtual: {
25911
25906
  readonly sort?: DataTableCompareFunction | undefined;
25912
25907
  readonly sortRaw?: DataTableCompareFunction | undefined;
25913
25908
  readonly filter?: FilterFunction | undefined;
25914
- readonly mobile?: boolean | undefined;
25915
25909
  readonly children?: readonly {
25916
25910
  readonly key?: ("data-table-group" | "data-table-select" | "data-table-expand" | (string & {})) | undefined;
25917
25911
  readonly value?: SelectItemKey<Record<string, any>>;
@@ -25932,7 +25926,6 @@ declare const VDataTableVirtual: {
25932
25926
  readonly sort?: DataTableCompareFunction | undefined;
25933
25927
  readonly sortRaw?: DataTableCompareFunction | undefined;
25934
25928
  readonly filter?: FilterFunction | undefined;
25935
- readonly mobile?: boolean | undefined;
25936
25929
  readonly children?: readonly any[] | undefined;
25937
25930
  }[] | undefined;
25938
25931
  }[] | undefined;
@@ -26043,7 +26036,6 @@ declare const VDataTableVirtual: {
26043
26036
  readonly sort?: DataTableCompareFunction | undefined;
26044
26037
  readonly sortRaw?: DataTableCompareFunction | undefined;
26045
26038
  readonly filter?: FilterFunction | undefined;
26046
- readonly mobile?: boolean | undefined;
26047
26039
  readonly children?: readonly {
26048
26040
  readonly key?: ("data-table-group" | "data-table-select" | "data-table-expand" | (string & {})) | undefined;
26049
26041
  readonly value?: SelectItemKey<Record<string, any>>;
@@ -26064,7 +26056,6 @@ declare const VDataTableVirtual: {
26064
26056
  readonly sort?: DataTableCompareFunction | undefined;
26065
26057
  readonly sortRaw?: DataTableCompareFunction | undefined;
26066
26058
  readonly filter?: FilterFunction | undefined;
26067
- readonly mobile?: boolean | undefined;
26068
26059
  readonly children?: readonly any[] | undefined;
26069
26060
  }[] | undefined;
26070
26061
  }[] | undefined;
@@ -26470,7 +26461,6 @@ declare const VDataTableServer: {
26470
26461
  readonly sort?: DataTableCompareFunction | undefined;
26471
26462
  readonly sortRaw?: DataTableCompareFunction | undefined;
26472
26463
  readonly filter?: FilterFunction | undefined;
26473
- readonly mobile?: boolean | undefined;
26474
26464
  readonly children?: readonly {
26475
26465
  readonly key?: ("data-table-group" | "data-table-select" | "data-table-expand" | (string & {})) | undefined;
26476
26466
  readonly value?: SelectItemKey<Record<string, any>>;
@@ -26491,7 +26481,6 @@ declare const VDataTableServer: {
26491
26481
  readonly sort?: DataTableCompareFunction | undefined;
26492
26482
  readonly sortRaw?: DataTableCompareFunction | undefined;
26493
26483
  readonly filter?: FilterFunction | undefined;
26494
- readonly mobile?: boolean | undefined;
26495
26484
  readonly children?: readonly any[] | undefined;
26496
26485
  }[] | undefined;
26497
26486
  }[] | undefined;
@@ -26588,7 +26577,6 @@ declare const VDataTableServer: {
26588
26577
  readonly sort?: DataTableCompareFunction | undefined;
26589
26578
  readonly sortRaw?: DataTableCompareFunction | undefined;
26590
26579
  readonly filter?: FilterFunction | undefined;
26591
- readonly mobile?: boolean | undefined;
26592
26580
  readonly children?: readonly {
26593
26581
  readonly key?: ("data-table-group" | "data-table-select" | "data-table-expand" | (string & {})) | undefined;
26594
26582
  readonly value?: SelectItemKey<Record<string, any>>;
@@ -26609,7 +26597,6 @@ declare const VDataTableServer: {
26609
26597
  readonly sort?: DataTableCompareFunction | undefined;
26610
26598
  readonly sortRaw?: DataTableCompareFunction | undefined;
26611
26599
  readonly filter?: FilterFunction | undefined;
26612
- readonly mobile?: boolean | undefined;
26613
26600
  readonly children?: readonly any[] | undefined;
26614
26601
  }[] | undefined;
26615
26602
  }[] | undefined;
@@ -26796,7 +26783,6 @@ declare const VDataTableServer: {
26796
26783
  readonly sort?: DataTableCompareFunction | undefined;
26797
26784
  readonly sortRaw?: DataTableCompareFunction | undefined;
26798
26785
  readonly filter?: FilterFunction | undefined;
26799
- readonly mobile?: boolean | undefined;
26800
26786
  readonly children?: readonly {
26801
26787
  readonly key?: ("data-table-group" | "data-table-select" | "data-table-expand" | (string & {})) | undefined;
26802
26788
  readonly value?: SelectItemKey<Record<string, any>>;
@@ -26817,7 +26803,6 @@ declare const VDataTableServer: {
26817
26803
  readonly sort?: DataTableCompareFunction | undefined;
26818
26804
  readonly sortRaw?: DataTableCompareFunction | undefined;
26819
26805
  readonly filter?: FilterFunction | undefined;
26820
- readonly mobile?: boolean | undefined;
26821
26806
  readonly children?: readonly any[] | undefined;
26822
26807
  }[] | undefined;
26823
26808
  }[] | undefined;
@@ -26956,7 +26941,6 @@ declare const VDataTableServer: {
26956
26941
  readonly sort?: DataTableCompareFunction | undefined;
26957
26942
  readonly sortRaw?: DataTableCompareFunction | undefined;
26958
26943
  readonly filter?: FilterFunction | undefined;
26959
- readonly mobile?: boolean | undefined;
26960
26944
  readonly children?: readonly {
26961
26945
  readonly key?: ("data-table-group" | "data-table-select" | "data-table-expand" | (string & {})) | undefined;
26962
26946
  readonly value?: SelectItemKey<Record<string, any>>;
@@ -26977,7 +26961,6 @@ declare const VDataTableServer: {
26977
26961
  readonly sort?: DataTableCompareFunction | undefined;
26978
26962
  readonly sortRaw?: DataTableCompareFunction | undefined;
26979
26963
  readonly filter?: FilterFunction | undefined;
26980
- readonly mobile?: boolean | undefined;
26981
26964
  readonly children?: readonly any[] | undefined;
26982
26965
  }[] | undefined;
26983
26966
  }[] | undefined;
@@ -133,10 +133,17 @@ export function useDisplay() {
133
133
  const display = inject(DisplaySymbol);
134
134
  if (!display) throw new Error('Could not find Vuetify display injection');
135
135
  const mobile = computed(() => {
136
- if (props.mobile != null) return props.mobile;
137
- if (!props.mobileBreakpoint) return display.mobile.value;
138
- const breakpointValue = typeof props.mobileBreakpoint === 'number' ? props.mobileBreakpoint : display.thresholds.value[props.mobileBreakpoint];
139
- return display.width.value < breakpointValue;
136
+ if (props.mobile) {
137
+ return true;
138
+ } else if (typeof props.mobileBreakpoint === 'number') {
139
+ return display.width.value < props.mobileBreakpoint;
140
+ } else if (props.mobileBreakpoint) {
141
+ return display.width.value < display.thresholds.value[props.mobileBreakpoint];
142
+ } else if (props.mobile === null) {
143
+ return display.mobile.value;
144
+ } else {
145
+ return false;
146
+ }
140
147
  });
141
148
  const displayClasses = computed(() => {
142
149
  if (!name) return {};