@vuetify/nightly 3.8.3-master.2025-05-04 → 3.8.4-dev.2025-05-07
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +14 -24
- package/dist/json/attributes.json +2834 -2826
- package/dist/json/importMap-labs.json +24 -24
- package/dist/json/importMap.json +156 -156
- package/dist/json/tags.json +2 -0
- package/dist/json/web-types.json +5151 -5131
- package/dist/vuetify-labs.cjs +163 -73
- package/dist/vuetify-labs.css +4647 -4620
- package/dist/vuetify-labs.d.ts +154 -377
- package/dist/vuetify-labs.esm.js +164 -74
- package/dist/vuetify-labs.esm.js.map +1 -1
- package/dist/vuetify-labs.js +163 -73
- package/dist/vuetify-labs.min.css +2 -2
- package/dist/vuetify.cjs +142 -40
- package/dist/vuetify.cjs.map +1 -1
- package/dist/vuetify.css +5041 -5014
- package/dist/vuetify.d.ts +183 -406
- package/dist/vuetify.esm.js +143 -41
- package/dist/vuetify.esm.js.map +1 -1
- package/dist/vuetify.js +142 -40
- package/dist/vuetify.js.map +1 -1
- package/dist/vuetify.min.css +2 -2
- package/dist/vuetify.min.js +1182 -1173
- package/dist/vuetify.min.js.map +1 -1
- package/lib/components/VAutocomplete/VAutocomplete.d.ts +3 -3
- package/lib/components/VAutocomplete/VAutocomplete.js +5 -0
- package/lib/components/VAutocomplete/VAutocomplete.js.map +1 -1
- package/lib/components/VBottomNavigation/VBottomNavigation.d.ts +6 -6
- package/lib/components/VBtnGroup/VBtnGroup.css +30 -7
- package/lib/components/VBtnGroup/VBtnGroup.d.ts +58 -32
- package/lib/components/VBtnGroup/VBtnGroup.js +7 -3
- package/lib/components/VBtnGroup/VBtnGroup.js.map +1 -1
- package/lib/components/VBtnGroup/VBtnGroup.sass +44 -17
- package/lib/components/VBtnToggle/VBtnToggle.d.ts +25 -0
- package/lib/components/VCombobox/VCombobox.d.ts +3 -3
- package/lib/components/VDataTable/VDataTable.d.ts +110 -110
- package/lib/components/VDataTable/VDataTableHeaders.js +1 -2
- package/lib/components/VDataTable/VDataTableHeaders.js.map +1 -1
- package/lib/components/VDataTable/VDataTableServer.d.ts +62 -189
- package/lib/components/VDataTable/VDataTableServer.js.map +1 -1
- package/lib/components/VDataTable/VDataTableVirtual.d.ts +62 -189
- package/lib/components/VDataTable/VDataTableVirtual.js.map +1 -1
- package/lib/components/VDataTable/composables/headers.d.ts +75 -75
- package/lib/components/VDatePicker/VDatePicker.d.ts +3 -3
- package/lib/components/VDatePicker/VDatePickerMonth.d.ts +6 -6
- package/lib/components/VDialog/VDialog.js +1 -1
- package/lib/components/VDialog/VDialog.js.map +1 -1
- package/lib/components/VFileInput/VFileInput.css +4 -0
- package/lib/components/VFileInput/VFileInput.js +21 -3
- package/lib/components/VFileInput/VFileInput.js.map +1 -1
- package/lib/components/VFileInput/VFileInput.sass +4 -0
- package/lib/components/VInput/VInput.d.ts +1 -1
- package/lib/components/VNumberInput/VNumberInput.d.ts +3 -3
- package/lib/components/VOverlay/VOverlay.css +1 -1
- package/lib/components/VOverlay/_variables.scss +1 -1
- package/lib/components/VOverlay/locationStrategies.js +1 -1
- package/lib/components/VOverlay/locationStrategies.js.map +1 -1
- package/lib/components/VSelect/VSelect.d.ts +3 -3
- package/lib/components/VTabs/VTabs.d.ts +6 -6
- package/lib/components/transitions/dialog-transition.js +3 -3
- package/lib/components/transitions/dialog-transition.js.map +1 -1
- package/lib/composables/calendar.d.ts +1 -0
- package/lib/composables/calendar.js.map +1 -1
- package/lib/composables/theme.d.ts +6 -1
- package/lib/composables/theme.js +94 -26
- package/lib/composables/theme.js.map +1 -1
- package/lib/composables/virtual.js +6 -1
- package/lib/composables/virtual.js.map +1 -1
- package/lib/entry-bundler.d.ts +6 -6
- package/lib/entry-bundler.js +1 -1
- package/lib/entry-bundler.js.map +1 -1
- package/lib/framework.d.ts +65 -60
- package/lib/framework.js +1 -1
- package/lib/framework.js.map +1 -1
- package/lib/labs/VCalendar/VCalendar.d.ts +3 -3
- package/lib/labs/VCalendar/VCalendarDay.d.ts +3 -3
- package/lib/labs/VCalendar/VCalendarInterval.d.ts +3 -3
- package/lib/labs/VCalendar/VCalendarMonthDay.d.ts +3 -3
- package/lib/labs/VDateInput/VDateInput.d.ts +9 -9
- package/lib/labs/VFileUpload/VFileUpload.js +19 -31
- package/lib/labs/VFileUpload/VFileUpload.js.map +1 -1
- package/lib/labs/VTimePicker/VTimePickerClock.js +2 -2
- package/lib/labs/VTimePicker/VTimePickerClock.js.map +1 -1
- package/lib/util/globals.d.ts +1 -0
- package/lib/util/globals.js +1 -0
- package/lib/util/globals.js.map +1 -1
- package/lib/util/helpers.js.map +1 -1
- package/package.json +6 -6
@@ -1,9 +1,10 @@
|
|
1
1
|
import { provideExpanded } from './composables/expand.js';
|
2
2
|
import { provideSelection } from './composables/select.js';
|
3
|
+
import type { DeepReadonly } from 'vue';
|
3
4
|
import type { VDataTableSlotProps } from './VDataTable.js';
|
4
5
|
import type { VDataTableHeadersSlots } from './VDataTableHeaders.js';
|
5
6
|
import type { VDataTableRowsSlots } from './VDataTableRows.js';
|
6
|
-
import type { CellProps, RowProps } from "./types.js";
|
7
|
+
import type { CellProps, DataTableHeader, RowProps } from "./types.js";
|
7
8
|
import type { GenericProps, SelectItemKey, TemplateRef } from "../../util/index.js";
|
8
9
|
type VDataTableVirtualSlotProps<T> = Omit<VDataTableSlotProps<T>, 'setItemsPerPage' | 'page' | 'pageCount' | 'itemsPerPage'>;
|
9
10
|
export type VDataTableVirtualSlots<T> = VDataTableRowsSlots<T> & VDataTableHeadersSlots & {
|
@@ -188,14 +189,14 @@ export declare const makeVDataTableVirtualProps: <Defaults extends {
|
|
188
189
|
default: unknown extends Defaults["theme"] ? string : string | Defaults["theme"];
|
189
190
|
};
|
190
191
|
headers: unknown extends Defaults["headers"] ? import("vue").PropType<readonly {
|
191
|
-
readonly key?:
|
192
|
+
readonly key?: "data-table-group" | "data-table-select" | "data-table-expand" | (string & {}) | undefined;
|
192
193
|
readonly value?: SelectItemKey<Record<string, any>>;
|
193
194
|
readonly title?: string | undefined;
|
194
195
|
readonly fixed?: boolean | undefined;
|
195
|
-
readonly align?:
|
196
|
-
readonly width?:
|
197
|
-
readonly minWidth?:
|
198
|
-
readonly maxWidth?:
|
196
|
+
readonly align?: "start" | "end" | "center" | undefined;
|
197
|
+
readonly width?: number | string | undefined;
|
198
|
+
readonly minWidth?: number | string | undefined;
|
199
|
+
readonly maxWidth?: number | string | undefined;
|
199
200
|
readonly nowrap?: boolean | undefined;
|
200
201
|
readonly headerProps?: {
|
201
202
|
readonly [x: string]: any;
|
@@ -208,14 +209,14 @@ export declare const makeVDataTableVirtualProps: <Defaults extends {
|
|
208
209
|
readonly sortRaw?: import("./types.js").DataTableCompareFunction | undefined;
|
209
210
|
readonly filter?: import("../../composables/filter.js").FilterFunction | undefined;
|
210
211
|
readonly children?: readonly {
|
211
|
-
readonly key?:
|
212
|
+
readonly key?: "data-table-group" | "data-table-select" | "data-table-expand" | (string & {}) | undefined;
|
212
213
|
readonly value?: SelectItemKey<Record<string, any>>;
|
213
214
|
readonly title?: string | undefined;
|
214
215
|
readonly fixed?: boolean | undefined;
|
215
|
-
readonly align?:
|
216
|
-
readonly width?:
|
217
|
-
readonly minWidth?:
|
218
|
-
readonly maxWidth?:
|
216
|
+
readonly align?: "start" | "end" | "center" | undefined;
|
217
|
+
readonly width?: number | string | undefined;
|
218
|
+
readonly minWidth?: number | string | undefined;
|
219
|
+
readonly maxWidth?: number | string | undefined;
|
219
220
|
readonly nowrap?: boolean | undefined;
|
220
221
|
readonly headerProps?: {
|
221
222
|
readonly [x: string]: any;
|
@@ -227,18 +228,18 @@ export declare const makeVDataTableVirtualProps: <Defaults extends {
|
|
227
228
|
readonly sort?: import("./types.js").DataTableCompareFunction | undefined;
|
228
229
|
readonly sortRaw?: import("./types.js").DataTableCompareFunction | undefined;
|
229
230
|
readonly filter?: import("../../composables/filter.js").FilterFunction | undefined;
|
230
|
-
readonly children?: readonly any[] | undefined;
|
231
|
+
readonly children?: readonly /*elided*/ any[] | undefined;
|
231
232
|
}[] | undefined;
|
232
233
|
}[]> : {
|
233
234
|
type: import("vue").PropType<unknown extends Defaults["headers"] ? readonly {
|
234
|
-
readonly key?:
|
235
|
+
readonly key?: "data-table-group" | "data-table-select" | "data-table-expand" | (string & {}) | undefined;
|
235
236
|
readonly value?: SelectItemKey<Record<string, any>>;
|
236
237
|
readonly title?: string | undefined;
|
237
238
|
readonly fixed?: boolean | undefined;
|
238
|
-
readonly align?:
|
239
|
-
readonly width?:
|
240
|
-
readonly minWidth?:
|
241
|
-
readonly maxWidth?:
|
239
|
+
readonly align?: "start" | "end" | "center" | undefined;
|
240
|
+
readonly width?: number | string | undefined;
|
241
|
+
readonly minWidth?: number | string | undefined;
|
242
|
+
readonly maxWidth?: number | string | undefined;
|
242
243
|
readonly nowrap?: boolean | undefined;
|
243
244
|
readonly headerProps?: {
|
244
245
|
readonly [x: string]: any;
|
@@ -251,14 +252,14 @@ export declare const makeVDataTableVirtualProps: <Defaults extends {
|
|
251
252
|
readonly sortRaw?: import("./types.js").DataTableCompareFunction | undefined;
|
252
253
|
readonly filter?: import("../../composables/filter.js").FilterFunction | undefined;
|
253
254
|
readonly children?: readonly {
|
254
|
-
readonly key?:
|
255
|
+
readonly key?: "data-table-group" | "data-table-select" | "data-table-expand" | (string & {}) | undefined;
|
255
256
|
readonly value?: SelectItemKey<Record<string, any>>;
|
256
257
|
readonly title?: string | undefined;
|
257
258
|
readonly fixed?: boolean | undefined;
|
258
|
-
readonly align?:
|
259
|
-
readonly width?:
|
260
|
-
readonly minWidth?:
|
261
|
-
readonly maxWidth?:
|
259
|
+
readonly align?: "start" | "end" | "center" | undefined;
|
260
|
+
readonly width?: number | string | undefined;
|
261
|
+
readonly minWidth?: number | string | undefined;
|
262
|
+
readonly maxWidth?: number | string | undefined;
|
262
263
|
readonly nowrap?: boolean | undefined;
|
263
264
|
readonly headerProps?: {
|
264
265
|
readonly [x: string]: any;
|
@@ -270,17 +271,17 @@ export declare const makeVDataTableVirtualProps: <Defaults extends {
|
|
270
271
|
readonly sort?: import("./types.js").DataTableCompareFunction | undefined;
|
271
272
|
readonly sortRaw?: import("./types.js").DataTableCompareFunction | undefined;
|
272
273
|
readonly filter?: import("../../composables/filter.js").FilterFunction | undefined;
|
273
|
-
readonly children?: readonly any[] | undefined;
|
274
|
+
readonly children?: readonly /*elided*/ any[] | undefined;
|
274
275
|
}[] | undefined;
|
275
276
|
}[] : readonly {
|
276
|
-
readonly key?:
|
277
|
+
readonly key?: "data-table-group" | "data-table-select" | "data-table-expand" | (string & {}) | undefined;
|
277
278
|
readonly value?: SelectItemKey<Record<string, any>>;
|
278
279
|
readonly title?: string | undefined;
|
279
280
|
readonly fixed?: boolean | undefined;
|
280
|
-
readonly align?:
|
281
|
-
readonly width?:
|
282
|
-
readonly minWidth?:
|
283
|
-
readonly maxWidth?:
|
281
|
+
readonly align?: "start" | "end" | "center" | undefined;
|
282
|
+
readonly width?: number | string | undefined;
|
283
|
+
readonly minWidth?: number | string | undefined;
|
284
|
+
readonly maxWidth?: number | string | undefined;
|
284
285
|
readonly nowrap?: boolean | undefined;
|
285
286
|
readonly headerProps?: {
|
286
287
|
readonly [x: string]: any;
|
@@ -293,14 +294,14 @@ export declare const makeVDataTableVirtualProps: <Defaults extends {
|
|
293
294
|
readonly sortRaw?: import("./types.js").DataTableCompareFunction | undefined;
|
294
295
|
readonly filter?: import("../../composables/filter.js").FilterFunction | undefined;
|
295
296
|
readonly children?: readonly {
|
296
|
-
readonly key?:
|
297
|
+
readonly key?: "data-table-group" | "data-table-select" | "data-table-expand" | (string & {}) | undefined;
|
297
298
|
readonly value?: SelectItemKey<Record<string, any>>;
|
298
299
|
readonly title?: string | undefined;
|
299
300
|
readonly fixed?: boolean | undefined;
|
300
|
-
readonly align?:
|
301
|
-
readonly width?:
|
302
|
-
readonly minWidth?:
|
303
|
-
readonly maxWidth?:
|
301
|
+
readonly align?: "start" | "end" | "center" | undefined;
|
302
|
+
readonly width?: number | string | undefined;
|
303
|
+
readonly minWidth?: number | string | undefined;
|
304
|
+
readonly maxWidth?: number | string | undefined;
|
304
305
|
readonly nowrap?: boolean | undefined;
|
305
306
|
readonly headerProps?: {
|
306
307
|
readonly [x: string]: any;
|
@@ -312,18 +313,18 @@ export declare const makeVDataTableVirtualProps: <Defaults extends {
|
|
312
313
|
readonly sort?: import("./types.js").DataTableCompareFunction | undefined;
|
313
314
|
readonly sortRaw?: import("./types.js").DataTableCompareFunction | undefined;
|
314
315
|
readonly filter?: import("../../composables/filter.js").FilterFunction | undefined;
|
315
|
-
readonly children?: readonly any[] | undefined;
|
316
|
+
readonly children?: readonly /*elided*/ any[] | undefined;
|
316
317
|
}[] | undefined;
|
317
318
|
}[] | Defaults["headers"]>;
|
318
319
|
default: unknown extends Defaults["headers"] ? readonly {
|
319
|
-
readonly key?:
|
320
|
+
readonly key?: "data-table-group" | "data-table-select" | "data-table-expand" | (string & {}) | undefined;
|
320
321
|
readonly value?: SelectItemKey<Record<string, any>>;
|
321
322
|
readonly title?: string | undefined;
|
322
323
|
readonly fixed?: boolean | undefined;
|
323
|
-
readonly align?:
|
324
|
-
readonly width?:
|
325
|
-
readonly minWidth?:
|
326
|
-
readonly maxWidth?:
|
324
|
+
readonly align?: "start" | "end" | "center" | undefined;
|
325
|
+
readonly width?: number | string | undefined;
|
326
|
+
readonly minWidth?: number | string | undefined;
|
327
|
+
readonly maxWidth?: number | string | undefined;
|
327
328
|
readonly nowrap?: boolean | undefined;
|
328
329
|
readonly headerProps?: {
|
329
330
|
readonly [x: string]: any;
|
@@ -336,14 +337,14 @@ export declare const makeVDataTableVirtualProps: <Defaults extends {
|
|
336
337
|
readonly sortRaw?: import("./types.js").DataTableCompareFunction | undefined;
|
337
338
|
readonly filter?: import("../../composables/filter.js").FilterFunction | undefined;
|
338
339
|
readonly children?: readonly {
|
339
|
-
readonly key?:
|
340
|
+
readonly key?: "data-table-group" | "data-table-select" | "data-table-expand" | (string & {}) | undefined;
|
340
341
|
readonly value?: SelectItemKey<Record<string, any>>;
|
341
342
|
readonly title?: string | undefined;
|
342
343
|
readonly fixed?: boolean | undefined;
|
343
|
-
readonly align?:
|
344
|
-
readonly width?:
|
345
|
-
readonly minWidth?:
|
346
|
-
readonly maxWidth?:
|
344
|
+
readonly align?: "start" | "end" | "center" | undefined;
|
345
|
+
readonly width?: number | string | undefined;
|
346
|
+
readonly minWidth?: number | string | undefined;
|
347
|
+
readonly maxWidth?: number | string | undefined;
|
347
348
|
readonly nowrap?: boolean | undefined;
|
348
349
|
readonly headerProps?: {
|
349
350
|
readonly [x: string]: any;
|
@@ -355,17 +356,17 @@ export declare const makeVDataTableVirtualProps: <Defaults extends {
|
|
355
356
|
readonly sort?: import("./types.js").DataTableCompareFunction | undefined;
|
356
357
|
readonly sortRaw?: import("./types.js").DataTableCompareFunction | undefined;
|
357
358
|
readonly filter?: import("../../composables/filter.js").FilterFunction | undefined;
|
358
|
-
readonly children?: readonly any[] | undefined;
|
359
|
+
readonly children?: readonly /*elided*/ any[] | undefined;
|
359
360
|
}[] | undefined;
|
360
361
|
}[] : readonly {
|
361
|
-
readonly key?:
|
362
|
+
readonly key?: "data-table-group" | "data-table-select" | "data-table-expand" | (string & {}) | undefined;
|
362
363
|
readonly value?: SelectItemKey<Record<string, any>>;
|
363
364
|
readonly title?: string | undefined;
|
364
365
|
readonly fixed?: boolean | undefined;
|
365
|
-
readonly align?:
|
366
|
-
readonly width?:
|
367
|
-
readonly minWidth?:
|
368
|
-
readonly maxWidth?:
|
366
|
+
readonly align?: "start" | "end" | "center" | undefined;
|
367
|
+
readonly width?: number | string | undefined;
|
368
|
+
readonly minWidth?: number | string | undefined;
|
369
|
+
readonly maxWidth?: number | string | undefined;
|
369
370
|
readonly nowrap?: boolean | undefined;
|
370
371
|
readonly headerProps?: {
|
371
372
|
readonly [x: string]: any;
|
@@ -378,14 +379,14 @@ export declare const makeVDataTableVirtualProps: <Defaults extends {
|
|
378
379
|
readonly sortRaw?: import("./types.js").DataTableCompareFunction | undefined;
|
379
380
|
readonly filter?: import("../../composables/filter.js").FilterFunction | undefined;
|
380
381
|
readonly children?: readonly {
|
381
|
-
readonly key?:
|
382
|
+
readonly key?: "data-table-group" | "data-table-select" | "data-table-expand" | (string & {}) | undefined;
|
382
383
|
readonly value?: SelectItemKey<Record<string, any>>;
|
383
384
|
readonly title?: string | undefined;
|
384
385
|
readonly fixed?: boolean | undefined;
|
385
|
-
readonly align?:
|
386
|
-
readonly width?:
|
387
|
-
readonly minWidth?:
|
388
|
-
readonly maxWidth?:
|
386
|
+
readonly align?: "start" | "end" | "center" | undefined;
|
387
|
+
readonly width?: number | string | undefined;
|
388
|
+
readonly minWidth?: number | string | undefined;
|
389
|
+
readonly maxWidth?: number | string | undefined;
|
389
390
|
readonly nowrap?: boolean | undefined;
|
390
391
|
readonly headerProps?: {
|
391
392
|
readonly [x: string]: any;
|
@@ -397,7 +398,7 @@ export declare const makeVDataTableVirtualProps: <Defaults extends {
|
|
397
398
|
readonly sort?: import("./types.js").DataTableCompareFunction | undefined;
|
398
399
|
readonly sortRaw?: import("./types.js").DataTableCompareFunction | undefined;
|
399
400
|
readonly filter?: import("../../composables/filter.js").FilterFunction | undefined;
|
400
|
-
readonly children?: readonly any[] | undefined;
|
401
|
+
readonly children?: readonly /*elided*/ any[] | undefined;
|
401
402
|
}[] | undefined;
|
402
403
|
}[] | Defaults["headers"];
|
403
404
|
};
|
@@ -656,49 +657,6 @@ export declare const VDataTableVirtual: {
|
|
656
657
|
loading?: string | boolean | undefined;
|
657
658
|
class?: any;
|
658
659
|
theme?: string | undefined;
|
659
|
-
headers?: readonly {
|
660
|
-
readonly key?: ("data-table-group" | "data-table-select" | "data-table-expand" | (string & {})) | undefined;
|
661
|
-
readonly value?: SelectItemKey<Record<string, any>>;
|
662
|
-
readonly title?: string | undefined;
|
663
|
-
readonly fixed?: boolean | undefined;
|
664
|
-
readonly align?: ("start" | "end" | "center") | undefined;
|
665
|
-
readonly width?: (number | string) | undefined;
|
666
|
-
readonly minWidth?: (number | string) | undefined;
|
667
|
-
readonly maxWidth?: (number | string) | undefined;
|
668
|
-
readonly nowrap?: boolean | undefined;
|
669
|
-
readonly headerProps?: {
|
670
|
-
readonly [x: string]: any;
|
671
|
-
} | undefined;
|
672
|
-
readonly cellProps?: import("./types.js").HeaderCellPropsFunction | {
|
673
|
-
readonly [x: string]: any;
|
674
|
-
} | undefined;
|
675
|
-
readonly sortable?: boolean | undefined;
|
676
|
-
readonly sort?: import("./types.js").DataTableCompareFunction | undefined;
|
677
|
-
readonly sortRaw?: import("./types.js").DataTableCompareFunction | undefined;
|
678
|
-
readonly filter?: import("../../composables/filter.js").FilterFunction | undefined;
|
679
|
-
readonly children?: readonly {
|
680
|
-
readonly key?: ("data-table-group" | "data-table-select" | "data-table-expand" | (string & {})) | undefined;
|
681
|
-
readonly value?: SelectItemKey<Record<string, any>>;
|
682
|
-
readonly title?: string | undefined;
|
683
|
-
readonly fixed?: boolean | undefined;
|
684
|
-
readonly align?: ("start" | "end" | "center") | undefined;
|
685
|
-
readonly width?: (number | string) | undefined;
|
686
|
-
readonly minWidth?: (number | string) | undefined;
|
687
|
-
readonly maxWidth?: (number | string) | undefined;
|
688
|
-
readonly nowrap?: boolean | undefined;
|
689
|
-
readonly headerProps?: {
|
690
|
-
readonly [x: string]: any;
|
691
|
-
} | undefined;
|
692
|
-
readonly cellProps?: import("./types.js").HeaderCellPropsFunction | {
|
693
|
-
readonly [x: string]: any;
|
694
|
-
} | undefined;
|
695
|
-
readonly sortable?: boolean | undefined;
|
696
|
-
readonly sort?: import("./types.js").DataTableCompareFunction | undefined;
|
697
|
-
readonly sortRaw?: import("./types.js").DataTableCompareFunction | undefined;
|
698
|
-
readonly filter?: import("../../composables/filter.js").FilterFunction | undefined;
|
699
|
-
readonly children?: readonly any[] | undefined;
|
700
|
-
}[] | undefined;
|
701
|
-
}[] | undefined;
|
702
660
|
mobileBreakpoint?: number | import("../../types.js").DisplayBreakpoint | undefined;
|
703
661
|
customFilter?: import("../../composables/filter.js").FilterFunction | undefined;
|
704
662
|
customKeyFilter?: import("../../composables/filter.js").FilterKeyFunctions | undefined;
|
@@ -719,7 +677,7 @@ export declare const VDataTableVirtual: {
|
|
719
677
|
'update:options': (value: any) => true;
|
720
678
|
'update:groupBy': (value: any) => true;
|
721
679
|
'update:expanded': (value: any) => true;
|
722
|
-
}, "$children" | "v-slots" | "modelValue" | "cellProps" | "items" | "itemValue" | "itemSelectable" | "rowProps" | "update:modelValue" | "v-slot:loader" | "v-slot:item" | "v-slot:no-data" | "v-slot:headers" | `v-slot:header.${string}` | "v-slot:data-table-group" | "v-slot:data-table-select" | `v-slot:item.${string}` | "v-slot:loading" | "v-slot:group-header" | "v-slot:expanded-row" | "v-slot:top" | "v-slot:bottom" | "v-slot:colgroup" | "v-slot:tbody" | "v-slot:tfoot" | "v-slot:thead" | "v-slot:body.prepend" | "v-slot:body.append">, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, {
|
680
|
+
}, "headers" | "$children" | "v-slots" | "modelValue" | "cellProps" | "items" | "itemValue" | "itemSelectable" | "rowProps" | "update:modelValue" | "v-slot:loader" | "v-slot:item" | "v-slot:no-data" | "v-slot:headers" | `v-slot:header.${string}` | "v-slot:data-table-group" | "v-slot:data-table-select" | `v-slot:item.${string}` | "v-slot:loading" | "v-slot:group-header" | "v-slot:expanded-row" | "v-slot:top" | "v-slot:bottom" | "v-slot:colgroup" | "v-slot:tbody" | "v-slot:tfoot" | "v-slot:thead" | "v-slot:body.prepend" | "v-slot:body.append">, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, {
|
723
681
|
expanded: readonly string[];
|
724
682
|
style: import("vue").StyleValue;
|
725
683
|
mobile: boolean | null;
|
@@ -842,49 +800,6 @@ export declare const VDataTableVirtual: {
|
|
842
800
|
loading?: string | boolean | undefined;
|
843
801
|
class?: any;
|
844
802
|
theme?: string | undefined;
|
845
|
-
headers?: readonly {
|
846
|
-
readonly key?: ("data-table-group" | "data-table-select" | "data-table-expand" | (string & {})) | undefined;
|
847
|
-
readonly value?: SelectItemKey<Record<string, any>>;
|
848
|
-
readonly title?: string | undefined;
|
849
|
-
readonly fixed?: boolean | undefined;
|
850
|
-
readonly align?: ("start" | "end" | "center") | undefined;
|
851
|
-
readonly width?: (number | string) | undefined;
|
852
|
-
readonly minWidth?: (number | string) | undefined;
|
853
|
-
readonly maxWidth?: (number | string) | undefined;
|
854
|
-
readonly nowrap?: boolean | undefined;
|
855
|
-
readonly headerProps?: {
|
856
|
-
readonly [x: string]: any;
|
857
|
-
} | undefined;
|
858
|
-
readonly cellProps?: import("./types.js").HeaderCellPropsFunction | {
|
859
|
-
readonly [x: string]: any;
|
860
|
-
} | undefined;
|
861
|
-
readonly sortable?: boolean | undefined;
|
862
|
-
readonly sort?: import("./types.js").DataTableCompareFunction | undefined;
|
863
|
-
readonly sortRaw?: import("./types.js").DataTableCompareFunction | undefined;
|
864
|
-
readonly filter?: import("../../composables/filter.js").FilterFunction | undefined;
|
865
|
-
readonly children?: readonly {
|
866
|
-
readonly key?: ("data-table-group" | "data-table-select" | "data-table-expand" | (string & {})) | undefined;
|
867
|
-
readonly value?: SelectItemKey<Record<string, any>>;
|
868
|
-
readonly title?: string | undefined;
|
869
|
-
readonly fixed?: boolean | undefined;
|
870
|
-
readonly align?: ("start" | "end" | "center") | undefined;
|
871
|
-
readonly width?: (number | string) | undefined;
|
872
|
-
readonly minWidth?: (number | string) | undefined;
|
873
|
-
readonly maxWidth?: (number | string) | undefined;
|
874
|
-
readonly nowrap?: boolean | undefined;
|
875
|
-
readonly headerProps?: {
|
876
|
-
readonly [x: string]: any;
|
877
|
-
} | undefined;
|
878
|
-
readonly cellProps?: import("./types.js").HeaderCellPropsFunction | {
|
879
|
-
readonly [x: string]: any;
|
880
|
-
} | undefined;
|
881
|
-
readonly sortable?: boolean | undefined;
|
882
|
-
readonly sort?: import("./types.js").DataTableCompareFunction | undefined;
|
883
|
-
readonly sortRaw?: import("./types.js").DataTableCompareFunction | undefined;
|
884
|
-
readonly filter?: import("../../composables/filter.js").FilterFunction | undefined;
|
885
|
-
readonly children?: readonly any[] | undefined;
|
886
|
-
}[] | undefined;
|
887
|
-
}[] | undefined;
|
888
803
|
mobileBreakpoint?: number | import("../../types.js").DisplayBreakpoint | undefined;
|
889
804
|
customFilter?: import("../../composables/filter.js").FilterFunction | undefined;
|
890
805
|
customKeyFilter?: import("../../composables/filter.js").FilterKeyFunctions | undefined;
|
@@ -975,49 +890,6 @@ export declare const VDataTableVirtual: {
|
|
975
890
|
loading?: string | boolean | undefined;
|
976
891
|
class?: any;
|
977
892
|
theme?: string | undefined;
|
978
|
-
headers?: readonly {
|
979
|
-
readonly key?: ("data-table-group" | "data-table-select" | "data-table-expand" | (string & {})) | undefined;
|
980
|
-
readonly value?: SelectItemKey<Record<string, any>>;
|
981
|
-
readonly title?: string | undefined;
|
982
|
-
readonly fixed?: boolean | undefined;
|
983
|
-
readonly align?: ("start" | "end" | "center") | undefined;
|
984
|
-
readonly width?: (number | string) | undefined;
|
985
|
-
readonly minWidth?: (number | string) | undefined;
|
986
|
-
readonly maxWidth?: (number | string) | undefined;
|
987
|
-
readonly nowrap?: boolean | undefined;
|
988
|
-
readonly headerProps?: {
|
989
|
-
readonly [x: string]: any;
|
990
|
-
} | undefined;
|
991
|
-
readonly cellProps?: import("./types.js").HeaderCellPropsFunction | {
|
992
|
-
readonly [x: string]: any;
|
993
|
-
} | undefined;
|
994
|
-
readonly sortable?: boolean | undefined;
|
995
|
-
readonly sort?: import("./types.js").DataTableCompareFunction | undefined;
|
996
|
-
readonly sortRaw?: import("./types.js").DataTableCompareFunction | undefined;
|
997
|
-
readonly filter?: import("../../composables/filter.js").FilterFunction | undefined;
|
998
|
-
readonly children?: readonly {
|
999
|
-
readonly key?: ("data-table-group" | "data-table-select" | "data-table-expand" | (string & {})) | undefined;
|
1000
|
-
readonly value?: SelectItemKey<Record<string, any>>;
|
1001
|
-
readonly title?: string | undefined;
|
1002
|
-
readonly fixed?: boolean | undefined;
|
1003
|
-
readonly align?: ("start" | "end" | "center") | undefined;
|
1004
|
-
readonly width?: (number | string) | undefined;
|
1005
|
-
readonly minWidth?: (number | string) | undefined;
|
1006
|
-
readonly maxWidth?: (number | string) | undefined;
|
1007
|
-
readonly nowrap?: boolean | undefined;
|
1008
|
-
readonly headerProps?: {
|
1009
|
-
readonly [x: string]: any;
|
1010
|
-
} | undefined;
|
1011
|
-
readonly cellProps?: import("./types.js").HeaderCellPropsFunction | {
|
1012
|
-
readonly [x: string]: any;
|
1013
|
-
} | undefined;
|
1014
|
-
readonly sortable?: boolean | undefined;
|
1015
|
-
readonly sort?: import("./types.js").DataTableCompareFunction | undefined;
|
1016
|
-
readonly sortRaw?: import("./types.js").DataTableCompareFunction | undefined;
|
1017
|
-
readonly filter?: import("../../composables/filter.js").FilterFunction | undefined;
|
1018
|
-
readonly children?: readonly any[] | undefined;
|
1019
|
-
}[] | undefined;
|
1020
|
-
}[] | undefined;
|
1021
893
|
mobileBreakpoint?: number | import("../../types.js").DisplayBreakpoint | undefined;
|
1022
894
|
customFilter?: import("../../composables/filter.js").FilterFunction | undefined;
|
1023
895
|
customKeyFilter?: import("../../composables/filter.js").FilterKeyFunctions | undefined;
|
@@ -1038,7 +910,7 @@ export declare const VDataTableVirtual: {
|
|
1038
910
|
'update:options': (value: any) => true;
|
1039
911
|
'update:groupBy': (value: any) => true;
|
1040
912
|
'update:expanded': (value: any) => true;
|
1041
|
-
}, "$children" | "v-slots" | "modelValue" | "cellProps" | "items" | "itemValue" | "itemSelectable" | "rowProps" | "update:modelValue" | "v-slot:loader" | "v-slot:item" | "v-slot:no-data" | "v-slot:headers" | `v-slot:header.${string}` | "v-slot:data-table-group" | "v-slot:data-table-select" | `v-slot:item.${string}` | "v-slot:loading" | "v-slot:group-header" | "v-slot:expanded-row" | "v-slot:top" | "v-slot:bottom" | "v-slot:colgroup" | "v-slot:tbody" | "v-slot:tfoot" | "v-slot:thead" | "v-slot:body.prepend" | "v-slot:body.append">, string, {
|
913
|
+
}, "headers" | "$children" | "v-slots" | "modelValue" | "cellProps" | "items" | "itemValue" | "itemSelectable" | "rowProps" | "update:modelValue" | "v-slot:loader" | "v-slot:item" | "v-slot:no-data" | "v-slot:headers" | `v-slot:header.${string}` | "v-slot:data-table-group" | "v-slot:data-table-select" | `v-slot:item.${string}` | "v-slot:loading" | "v-slot:group-header" | "v-slot:expanded-row" | "v-slot:top" | "v-slot:bottom" | "v-slot:colgroup" | "v-slot:tbody" | "v-slot:tfoot" | "v-slot:thead" | "v-slot:body.prepend" | "v-slot:body.append">, string, {
|
1042
914
|
expanded: readonly string[];
|
1043
915
|
style: import("vue").StyleValue;
|
1044
916
|
mobile: boolean | null;
|
@@ -1120,6 +992,7 @@ export declare const VDataTableVirtual: {
|
|
1120
992
|
rowProps?: RowProps<ItemType<T>>;
|
1121
993
|
cellProps?: CellProps<ItemType<T>>;
|
1122
994
|
itemSelectable?: SelectItemKey<ItemType<T>>;
|
995
|
+
headers?: DeepReadonly<DataTableHeader<ItemType<T>>[]>;
|
1123
996
|
modelValue?: V;
|
1124
997
|
"onUpdate:modelValue"?: (value: V) => void;
|
1125
998
|
}, slots: VDataTableVirtualSlots<ItemType<T>>) => GenericProps<typeof props, typeof slots>) & import("../../util/index.js").FilterPropsOptions<{
|
@@ -1162,7 +1035,7 @@ export declare const VDataTableVirtual: {
|
|
1162
1035
|
};
|
1163
1036
|
class: import("vue").PropType<import("../../composables/component.js").ClassValue>;
|
1164
1037
|
theme: StringConstructor;
|
1165
|
-
headers: import("vue").PropType<
|
1038
|
+
headers: import("vue").PropType<DeepReadonly<DataTableHeader[]>>;
|
1166
1039
|
tag: {
|
1167
1040
|
type: import("vue").PropType<string | import("../../util/index.js").JSXComponent>;
|
1168
1041
|
default: string;
|
@@ -1277,7 +1150,7 @@ export declare const VDataTableVirtual: {
|
|
1277
1150
|
};
|
1278
1151
|
class: import("vue").PropType<import("../../composables/component.js").ClassValue>;
|
1279
1152
|
theme: StringConstructor;
|
1280
|
-
headers: import("vue").PropType<
|
1153
|
+
headers: import("vue").PropType<DeepReadonly<DataTableHeader[]>>;
|
1281
1154
|
tag: {
|
1282
1155
|
type: import("vue").PropType<string | import("../../util/index.js").JSXComponent>;
|
1283
1156
|
default: string;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"VDataTableVirtual.js","names":["makeDataTableProps","VDataTableHeaders","VDataTableRow","VDataTableRows","VTable","VVirtualScrollItem","provideExpanded","createGroupBy","makeDataTableGroupProps","provideGroupBy","useGroupedItems","createHeaders","useDataTableItems","useOptions","provideSelection","createSort","provideSort","useSortedItems","provideDefaults","makeFilterProps","useFilter","makeVirtualProps","useVirtual","computed","shallowRef","toRef","toRefs","convertToUnit","genericComponent","omit","propsFactory","useRender","makeVDataTableVirtualProps","VDataTableVirtual","name","props","emits","value","setup","_ref","attrs","slots","groupBy","sortBy","multiSort","mustSort","disableSort","columns","headers","filterFunctions","sortFunctions","sortRawFunctions","showSelect","showExpand","items","search","filteredItems","transform","item","customKeyFilter","toggleSort","sortByWithGroups","opened","extractRows","isGroupOpen","toggleGroup","sortedItems","raw","flatItems","allItems","isSelected","select","selectAll","toggleSelect","someSelected","allSelected","currentPage","isExpanded","toggleExpand","containerRef","markerRef","paddingTop","paddingBottom","computedItems","handleItemResize","handleScroll","handleScrollend","calculateVisibleItems","scrollToIndex","displayItems","map","page","itemsPerPage","hideNoData","noDataText","loading","loadingText","slotProps","internalItems","groupedItems","dataTableHeadersProps","filterProps","dataTableRowsProps","tableProps","_createVNode","_mergeProps","class","style","fixedHeader","sticky","top","wrapper","height","colgroup","hideDefaultHeader","thead","hideDefaultBody","border","length","itemSlotProps","internalItem","index","default","_ref2","itemRef","tbody","tfoot","bottom"],"sources":["../../../src/components/VDataTable/VDataTableVirtual.tsx"],"sourcesContent":["// Components\nimport { makeDataTableProps } from './VDataTable'\nimport { VDataTableHeaders } from './VDataTableHeaders'\nimport { VDataTableRow } from './VDataTableRow'\nimport { VDataTableRows } from './VDataTableRows'\nimport { VTable } from '@/components/VTable'\nimport { VVirtualScrollItem } from '@/components/VVirtualScroll/VVirtualScrollItem'\n\n// Composables\nimport { provideExpanded } from './composables/expand'\nimport { createGroupBy, makeDataTableGroupProps, provideGroupBy, useGroupedItems } from './composables/group'\nimport { createHeaders } from './composables/headers'\nimport { useDataTableItems } from './composables/items'\nimport { useOptions } from './composables/options'\nimport { provideSelection } from './composables/select'\nimport { createSort, provideSort, useSortedItems } from './composables/sort'\nimport { provideDefaults } from '@/composables/defaults'\nimport { makeFilterProps, useFilter } from '@/composables/filter'\nimport { makeVirtualProps, useVirtual } from '@/composables/virtual'\n\n// Utilities\nimport { computed, shallowRef, toRef, toRefs } from 'vue'\nimport { convertToUnit, genericComponent, omit, propsFactory, useRender } from '@/util'\n\n// Types\nimport type { VDataTableSlotProps } from './VDataTable'\nimport type { VDataTableHeadersSlots } from './VDataTableHeaders'\nimport type { VDataTableRowsSlots } from './VDataTableRows'\nimport type { CellProps, RowProps } from '@/components/VDataTable/types'\nimport type { GenericProps, SelectItemKey, TemplateRef } from '@/util'\n\ntype VDataTableVirtualSlotProps<T> = Omit<\n VDataTableSlotProps<T>,\n | 'setItemsPerPage'\n | 'page'\n | 'pageCount'\n | 'itemsPerPage'\n>\n\nexport type VDataTableVirtualSlots<T> = VDataTableRowsSlots<T> & VDataTableHeadersSlots & {\n colgroup: VDataTableVirtualSlotProps<T>\n top: VDataTableVirtualSlotProps<T>\n headers: VDataTableHeadersSlots['headers']\n tbody: VDataTableVirtualSlotProps<T>\n thead: VDataTableVirtualSlotProps<T>\n tfoot: VDataTableVirtualSlotProps<T>\n bottom: VDataTableVirtualSlotProps<T>\n 'body.prepend': VDataTableVirtualSlotProps<T>\n 'body.append': VDataTableVirtualSlotProps<T>\n item: {\n itemRef: TemplateRef\n }\n}\n\nexport const makeVDataTableVirtualProps = propsFactory({\n ...omit(makeDataTableProps(), ['hideDefaultFooter']),\n ...makeDataTableGroupProps(),\n ...makeVirtualProps(),\n ...makeFilterProps(),\n}, 'VDataTableVirtual')\n\ntype ItemType<T> = T extends readonly (infer U)[] ? U : never\n\nexport const VDataTableVirtual = genericComponent<new <T extends readonly any[], V>(\n props: {\n items?: T\n itemValue?: SelectItemKey<ItemType<T>>\n rowProps?: RowProps<ItemType<T>>\n cellProps?: CellProps<ItemType<T>>\n itemSelectable?: SelectItemKey<ItemType<T>>\n modelValue?: V\n 'onUpdate:modelValue'?: (value: V) => void\n },\n slots: VDataTableVirtualSlots<ItemType<T>>,\n) => GenericProps<typeof props, typeof slots>>()({\n name: 'VDataTableVirtual',\n\n props: makeVDataTableVirtualProps(),\n\n emits: {\n 'update:modelValue': (value: any[]) => true,\n 'update:sortBy': (value: any) => true,\n 'update:options': (value: any) => true,\n 'update:groupBy': (value: any) => true,\n 'update:expanded': (value: any) => true,\n },\n\n setup (props, { attrs, slots }) {\n const { groupBy } = createGroupBy(props)\n const { sortBy, multiSort, mustSort } = createSort(props)\n const { disableSort } = toRefs(props)\n\n const {\n columns,\n headers,\n filterFunctions,\n sortFunctions,\n sortRawFunctions,\n } = createHeaders(props, {\n groupBy,\n showSelect: toRef(() => props.showSelect),\n showExpand: toRef(() => props.showExpand),\n })\n const { items } = useDataTableItems(props, columns)\n\n const search = toRef(() => props.search)\n const { filteredItems } = useFilter(props, items, search, {\n transform: item => item.columns,\n customKeyFilter: filterFunctions,\n })\n\n const { toggleSort } = provideSort({ sortBy, multiSort, mustSort })\n const { sortByWithGroups, opened, extractRows, isGroupOpen, toggleGroup } = provideGroupBy({ groupBy, sortBy, disableSort })\n\n const { sortedItems } = useSortedItems(props, filteredItems, sortByWithGroups, {\n transform: item => ({ ...item.raw, ...item.columns }),\n sortFunctions,\n sortRawFunctions,\n })\n const { flatItems } = useGroupedItems(sortedItems, groupBy, opened)\n\n const allItems = computed(() => extractRows(flatItems.value))\n\n const { isSelected, select, selectAll, toggleSelect, someSelected, allSelected } = provideSelection(props, {\n allItems,\n currentPage: allItems,\n })\n const { isExpanded, toggleExpand } = provideExpanded(props)\n\n const {\n containerRef,\n markerRef,\n paddingTop,\n paddingBottom,\n computedItems,\n handleItemResize,\n handleScroll,\n handleScrollend,\n calculateVisibleItems,\n scrollToIndex,\n } = useVirtual(props, flatItems)\n const displayItems = computed(() => computedItems.value.map(item => item.raw))\n\n useOptions({\n sortBy,\n page: shallowRef(1),\n itemsPerPage: shallowRef(-1),\n groupBy,\n search,\n })\n\n provideDefaults({\n VDataTableRows: {\n hideNoData: toRef(() => props.hideNoData),\n noDataText: toRef(() => props.noDataText),\n loading: toRef(() => props.loading),\n loadingText: toRef(() => props.loadingText),\n },\n })\n\n const slotProps = computed<VDataTableVirtualSlotProps<any>>(() => ({\n sortBy: sortBy.value,\n toggleSort,\n someSelected: someSelected.value,\n allSelected: allSelected.value,\n isSelected,\n select,\n selectAll,\n toggleSelect,\n isExpanded,\n toggleExpand,\n isGroupOpen,\n toggleGroup,\n items: allItems.value.map(item => item.raw),\n internalItems: allItems.value,\n groupedItems: flatItems.value,\n columns: columns.value,\n headers: headers.value,\n }))\n\n useRender(() => {\n const dataTableHeadersProps = VDataTableHeaders.filterProps(props)\n const dataTableRowsProps = VDataTableRows.filterProps(props)\n const tableProps = VTable.filterProps(props)\n\n return (\n <VTable\n class={[\n 'v-data-table',\n {\n 'v-data-table--loading': props.loading,\n },\n props.class,\n ]}\n style={ props.style }\n { ...tableProps }\n fixedHeader={ props.fixedHeader || props.sticky }\n >\n {{\n top: () => slots.top?.(slotProps.value),\n wrapper: () => (\n <div\n ref={ containerRef }\n onScrollPassive={ handleScroll }\n onScrollend={ handleScrollend }\n class=\"v-table__wrapper\"\n style={{\n height: convertToUnit(props.height),\n }}\n >\n <table>\n { slots.colgroup?.(slotProps.value) }\n { !props.hideDefaultHeader && (\n <thead key=\"thead\">\n <VDataTableHeaders\n { ...dataTableHeadersProps }\n v-slots={ slots }\n />\n </thead>\n )}\n { slots.thead?.(slotProps.value) }\n { !props.hideDefaultBody && (\n <tbody key=\"tbody\">\n <tr ref={ markerRef } style={{ height: convertToUnit(paddingTop.value), border: 0 }}>\n <td colspan={ columns.value.length } style={{ height: 0, border: 0 }}></td>\n </tr>\n\n { slots['body.prepend']?.(slotProps.value) }\n\n <VDataTableRows\n { ...attrs }\n { ...dataTableRowsProps }\n items={ displayItems.value }\n >\n {{\n ...slots,\n item: itemSlotProps => (\n <VVirtualScrollItem\n key={ itemSlotProps.internalItem.index }\n renderless\n onUpdate:height={ height => handleItemResize(itemSlotProps.internalItem.index, height) }\n >\n { ({ itemRef }) => (\n slots.item?.({ ...itemSlotProps, itemRef }) ?? (\n <VDataTableRow\n { ...itemSlotProps.props }\n ref={ itemRef }\n key={ itemSlotProps.internalItem.index }\n index={ itemSlotProps.internalItem.index }\n v-slots={ slots }\n />\n )\n )}\n </VVirtualScrollItem>\n ),\n }}\n </VDataTableRows>\n\n { slots['body.append']?.(slotProps.value) }\n\n <tr style={{ height: convertToUnit(paddingBottom.value), border: 0 }}>\n <td colspan={ columns.value.length } style={{ height: 0, border: 0 }}></td>\n </tr>\n </tbody>\n )}\n { slots.tbody?.(slotProps.value) }\n { slots.tfoot?.(slotProps.value) }\n </table>\n </div>\n ),\n bottom: () => slots.bottom?.(slotProps.value),\n }}\n </VTable>\n )\n })\n\n return {\n calculateVisibleItems,\n scrollToIndex,\n }\n },\n})\n\nexport type VDataTableVirtual = InstanceType<typeof VDataTableVirtual>\n"],"mappings":";AAAA;AAAA,SACSA,kBAAkB;AAAA,SAClBC,iBAAiB;AAAA,SACjBC,aAAa;AAAA,SACbC,cAAc;AAAA,SACdC,MAAM;AAAA,SACNC,kBAAkB,mDAE3B;AAAA,SACSC,eAAe;AAAA,SACfC,aAAa,EAAEC,uBAAuB,EAAEC,cAAc,EAAEC,eAAe;AAAA,SACvEC,aAAa;AAAA,SACbC,iBAAiB;AAAA,SACjBC,UAAU;AAAA,SACVC,gBAAgB;AAAA,SAChBC,UA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,CAACpF,KAAK;gBAAA,OAClByF,OAAO;gBAAA,OACPL,aAAa,CAACC,YAAY,CAACC,KAAK;gBAAA,SAC9BF,aAAa,CAACC,YAAY,CAACC;cAAK,IAC9BhF,KAAK,CAElB;YAAA;UACF;QAEJ,IAIHA,KAAK,CAAC,aAAa,CAAC,GAAGwD,SAAS,CAAC5D,KAAK,CAAC,EAAAmE,YAAA;UAAA,SAE9B;YAAEQ,MAAM,EAAErF,aAAa,CAACuD,aAAa,CAAC7C,KAAK,CAAC;YAAEgF,MAAM,EAAE;UAAE;QAAC,IAAAb,YAAA;UAAA,WACpDzD,OAAO,CAACV,KAAK,CAACiF,MAAM;UAAA,SAAU;YAAEN,MAAM,EAAE,CAAC;YAAEK,MAAM,EAAE;UAAE;QAAC,YAGzE,EACC5E,KAAK,CAACoF,KAAK,GAAG5B,SAAS,CAAC5D,KAAK,CAAC,EAC9BI,KAAK,CAACqF,KAAK,GAAG7B,SAAS,CAAC5D,KAAK,CAAC,IAGrC;QACD0F,MAAM,EAAEA,CAAA,KAAMtF,KAAK,CAACsF,MAAM,GAAG9B,SAAS,CAAC5D,KAAK;MAAC;IAIrD,CAAC,CAAC;IAEF,OAAO;MACLkD,qBAAqB;MACrBC;IACF,CAAC;EACH;AACF,CAAC,CAAC","ignoreList":[]}
|
1
|
+
{"version":3,"file":"VDataTableVirtual.js","names":["makeDataTableProps","VDataTableHeaders","VDataTableRow","VDataTableRows","VTable","VVirtualScrollItem","provideExpanded","createGroupBy","makeDataTableGroupProps","provideGroupBy","useGroupedItems","createHeaders","useDataTableItems","useOptions","provideSelection","createSort","provideSort","useSortedItems","provideDefaults","makeFilterProps","useFilter","makeVirtualProps","useVirtual","computed","shallowRef","toRef","toRefs","convertToUnit","genericComponent","omit","propsFactory","useRender","makeVDataTableVirtualProps","VDataTableVirtual","name","props","emits","value","setup","_ref","attrs","slots","groupBy","sortBy","multiSort","mustSort","disableSort","columns","headers","filterFunctions","sortFunctions","sortRawFunctions","showSelect","showExpand","items","search","filteredItems","transform","item","customKeyFilter","toggleSort","sortByWithGroups","opened","extractRows","isGroupOpen","toggleGroup","sortedItems","raw","flatItems","allItems","isSelected","select","selectAll","toggleSelect","someSelected","allSelected","currentPage","isExpanded","toggleExpand","containerRef","markerRef","paddingTop","paddingBottom","computedItems","handleItemResize","handleScroll","handleScrollend","calculateVisibleItems","scrollToIndex","displayItems","map","page","itemsPerPage","hideNoData","noDataText","loading","loadingText","slotProps","internalItems","groupedItems","dataTableHeadersProps","filterProps","dataTableRowsProps","tableProps","_createVNode","_mergeProps","class","style","fixedHeader","sticky","top","wrapper","height","colgroup","hideDefaultHeader","thead","hideDefaultBody","border","length","itemSlotProps","internalItem","index","default","_ref2","itemRef","tbody","tfoot","bottom"],"sources":["../../../src/components/VDataTable/VDataTableVirtual.tsx"],"sourcesContent":["// Components\nimport { makeDataTableProps } from './VDataTable'\nimport { VDataTableHeaders } from './VDataTableHeaders'\nimport { VDataTableRow } from './VDataTableRow'\nimport { VDataTableRows } from './VDataTableRows'\nimport { VTable } from '@/components/VTable'\nimport { VVirtualScrollItem } from '@/components/VVirtualScroll/VVirtualScrollItem'\n\n// Composables\nimport { provideExpanded } from './composables/expand'\nimport { createGroupBy, makeDataTableGroupProps, provideGroupBy, useGroupedItems } from './composables/group'\nimport { createHeaders } from './composables/headers'\nimport { useDataTableItems } from './composables/items'\nimport { useOptions } from './composables/options'\nimport { provideSelection } from './composables/select'\nimport { createSort, provideSort, useSortedItems } from './composables/sort'\nimport { provideDefaults } from '@/composables/defaults'\nimport { makeFilterProps, useFilter } from '@/composables/filter'\nimport { makeVirtualProps, useVirtual } from '@/composables/virtual'\n\n// Utilities\nimport { computed, shallowRef, toRef, toRefs } from 'vue'\nimport { convertToUnit, genericComponent, omit, propsFactory, useRender } from '@/util'\n\n// Types\nimport type { DeepReadonly } from 'vue'\nimport type { VDataTableSlotProps } from './VDataTable'\nimport type { VDataTableHeadersSlots } from './VDataTableHeaders'\nimport type { VDataTableRowsSlots } from './VDataTableRows'\nimport type { CellProps, DataTableHeader, RowProps } from '@/components/VDataTable/types'\nimport type { GenericProps, SelectItemKey, TemplateRef } from '@/util'\n\ntype VDataTableVirtualSlotProps<T> = Omit<\n VDataTableSlotProps<T>,\n | 'setItemsPerPage'\n | 'page'\n | 'pageCount'\n | 'itemsPerPage'\n>\n\nexport type VDataTableVirtualSlots<T> = VDataTableRowsSlots<T> & VDataTableHeadersSlots & {\n colgroup: VDataTableVirtualSlotProps<T>\n top: VDataTableVirtualSlotProps<T>\n headers: VDataTableHeadersSlots['headers']\n tbody: VDataTableVirtualSlotProps<T>\n thead: VDataTableVirtualSlotProps<T>\n tfoot: VDataTableVirtualSlotProps<T>\n bottom: VDataTableVirtualSlotProps<T>\n 'body.prepend': VDataTableVirtualSlotProps<T>\n 'body.append': VDataTableVirtualSlotProps<T>\n item: {\n itemRef: TemplateRef\n }\n}\n\nexport const makeVDataTableVirtualProps = propsFactory({\n ...omit(makeDataTableProps(), ['hideDefaultFooter']),\n ...makeDataTableGroupProps(),\n ...makeVirtualProps(),\n ...makeFilterProps(),\n}, 'VDataTableVirtual')\n\ntype ItemType<T> = T extends readonly (infer U)[] ? U : never\n\nexport const VDataTableVirtual = genericComponent<new <T extends readonly any[], V>(\n props: {\n items?: T\n itemValue?: SelectItemKey<ItemType<T>>\n rowProps?: RowProps<ItemType<T>>\n cellProps?: CellProps<ItemType<T>>\n itemSelectable?: SelectItemKey<ItemType<T>>\n headers?: DeepReadonly<DataTableHeader<ItemType<T>>[]>\n modelValue?: V\n 'onUpdate:modelValue'?: (value: V) => void\n },\n slots: VDataTableVirtualSlots<ItemType<T>>,\n) => GenericProps<typeof props, typeof slots>>()({\n name: 'VDataTableVirtual',\n\n props: makeVDataTableVirtualProps(),\n\n emits: {\n 'update:modelValue': (value: any[]) => true,\n 'update:sortBy': (value: any) => true,\n 'update:options': (value: any) => true,\n 'update:groupBy': (value: any) => true,\n 'update:expanded': (value: any) => true,\n },\n\n setup (props, { attrs, slots }) {\n const { groupBy } = createGroupBy(props)\n const { sortBy, multiSort, mustSort } = createSort(props)\n const { disableSort } = toRefs(props)\n\n const {\n columns,\n headers,\n filterFunctions,\n sortFunctions,\n sortRawFunctions,\n } = createHeaders(props, {\n groupBy,\n showSelect: toRef(() => props.showSelect),\n showExpand: toRef(() => props.showExpand),\n })\n const { items } = useDataTableItems(props, columns)\n\n const search = toRef(() => props.search)\n const { filteredItems } = useFilter(props, items, search, {\n transform: item => item.columns,\n customKeyFilter: filterFunctions,\n })\n\n const { toggleSort } = provideSort({ sortBy, multiSort, mustSort })\n const { sortByWithGroups, opened, extractRows, isGroupOpen, toggleGroup } = provideGroupBy({ groupBy, sortBy, disableSort })\n\n const { sortedItems } = useSortedItems(props, filteredItems, sortByWithGroups, {\n transform: item => ({ ...item.raw, ...item.columns }),\n sortFunctions,\n sortRawFunctions,\n })\n const { flatItems } = useGroupedItems(sortedItems, groupBy, opened)\n\n const allItems = computed(() => extractRows(flatItems.value))\n\n const { isSelected, select, selectAll, toggleSelect, someSelected, allSelected } = provideSelection(props, {\n allItems,\n currentPage: allItems,\n })\n const { isExpanded, toggleExpand } = provideExpanded(props)\n\n const {\n containerRef,\n markerRef,\n paddingTop,\n paddingBottom,\n computedItems,\n handleItemResize,\n handleScroll,\n handleScrollend,\n calculateVisibleItems,\n scrollToIndex,\n } = useVirtual(props, flatItems)\n const displayItems = computed(() => computedItems.value.map(item => item.raw))\n\n useOptions({\n sortBy,\n page: shallowRef(1),\n itemsPerPage: shallowRef(-1),\n groupBy,\n search,\n })\n\n provideDefaults({\n VDataTableRows: {\n hideNoData: toRef(() => props.hideNoData),\n noDataText: toRef(() => props.noDataText),\n loading: toRef(() => props.loading),\n loadingText: toRef(() => props.loadingText),\n },\n })\n\n const slotProps = computed<VDataTableVirtualSlotProps<any>>(() => ({\n sortBy: sortBy.value,\n toggleSort,\n someSelected: someSelected.value,\n allSelected: allSelected.value,\n isSelected,\n select,\n selectAll,\n toggleSelect,\n isExpanded,\n toggleExpand,\n isGroupOpen,\n toggleGroup,\n items: allItems.value.map(item => item.raw),\n internalItems: allItems.value,\n groupedItems: flatItems.value,\n columns: columns.value,\n headers: headers.value,\n }))\n\n useRender(() => {\n const dataTableHeadersProps = VDataTableHeaders.filterProps(props)\n const dataTableRowsProps = VDataTableRows.filterProps(props)\n const tableProps = VTable.filterProps(props)\n\n return (\n <VTable\n class={[\n 'v-data-table',\n {\n 'v-data-table--loading': props.loading,\n },\n props.class,\n ]}\n style={ props.style }\n { ...tableProps }\n fixedHeader={ props.fixedHeader || props.sticky }\n >\n {{\n top: () => slots.top?.(slotProps.value),\n wrapper: () => (\n <div\n ref={ containerRef }\n onScrollPassive={ handleScroll }\n onScrollend={ handleScrollend }\n class=\"v-table__wrapper\"\n style={{\n height: convertToUnit(props.height),\n }}\n >\n <table>\n { slots.colgroup?.(slotProps.value) }\n { !props.hideDefaultHeader && (\n <thead key=\"thead\">\n <VDataTableHeaders\n { ...dataTableHeadersProps }\n v-slots={ slots }\n />\n </thead>\n )}\n { slots.thead?.(slotProps.value) }\n { !props.hideDefaultBody && (\n <tbody key=\"tbody\">\n <tr ref={ markerRef } style={{ height: convertToUnit(paddingTop.value), border: 0 }}>\n <td colspan={ columns.value.length } style={{ height: 0, border: 0 }}></td>\n </tr>\n\n { slots['body.prepend']?.(slotProps.value) }\n\n <VDataTableRows\n { ...attrs }\n { ...dataTableRowsProps }\n items={ displayItems.value }\n >\n {{\n ...slots,\n item: itemSlotProps => (\n <VVirtualScrollItem\n key={ itemSlotProps.internalItem.index }\n renderless\n onUpdate:height={ height => handleItemResize(itemSlotProps.internalItem.index, height) }\n >\n { ({ itemRef }) => (\n slots.item?.({ ...itemSlotProps, itemRef }) ?? (\n <VDataTableRow\n { ...itemSlotProps.props }\n ref={ itemRef }\n key={ itemSlotProps.internalItem.index }\n index={ itemSlotProps.internalItem.index }\n v-slots={ slots }\n />\n )\n )}\n </VVirtualScrollItem>\n ),\n }}\n </VDataTableRows>\n\n { slots['body.append']?.(slotProps.value) }\n\n <tr style={{ height: convertToUnit(paddingBottom.value), border: 0 }}>\n <td colspan={ columns.value.length } style={{ height: 0, border: 0 }}></td>\n </tr>\n </tbody>\n )}\n { slots.tbody?.(slotProps.value) }\n { slots.tfoot?.(slotProps.value) }\n </table>\n </div>\n ),\n bottom: () => slots.bottom?.(slotProps.value),\n }}\n </VTable>\n )\n })\n\n return {\n calculateVisibleItems,\n scrollToIndex,\n }\n },\n})\n\nexport type VDataTableVirtual = InstanceType<typeof VDataTableVirtual>\n"],"mappings":";AAAA;AAAA,SACSA,kBAAkB;AAAA,SAClBC,iBAAiB;AAAA,SACjBC,aAAa;AAAA,SACbC,cAAc;AAAA,SACdC,MAAM;AAAA,SACNC,kBAAkB,mDAE3B;AAAA,SACSC,eAAe;AAAA,SACfC,aAAa,EAAEC,uBAAuB,EAAEC,cAAc,EAAEC,eAAe;AAAA,SACvEC,aAAa;AAAA,SACbC,iBAAiB;AAAA,SACjBC,UAAU;AAAA,SACVC,gBAAgB;AAAA,SAChBC,UAAU,EAAEC,WAAW,EAAEC,cAAc;AAAA,SACvCC,eAAe;AAAA,SACfC,eAAe,EAAEC,SAAS;AAAA,SAC1BC,gBAAgB,EAAEC,UAAU,wCAErC;AACA,SAASC,QAAQ,EAAEC,UAAU,EAAEC,KAAK,EAAEC,MAAM,QAAQ,KAAK;AAAA,SAChDC,aAAa,EAAEC,gBAAgB,EAAEC,IAAI,EAAEC,YAAY,EAAEC,SAAS,+BAEvE;AA+BA,OAAO,MAAMC,0BAA0B,GAAGF,YAAY,CAAC;EACrD,GAAGD,IAAI,CAAC7B,kBAAkB,CAAC,CAAC,EAAE,CAAC,mBAAmB,CAAC,CAAC;EACpD,GAAGQ,uBAAuB,CAAC,CAAC;EAC5B,GAAGa,gBAAgB,CAAC,CAAC;EACrB,GAAGF,eAAe,CAAC;AACrB,CAAC,EAAE,mBAAmB,CAAC;AAIvB,OAAO,MAAMc,iBAAiB,GAAGL,gBAAgB,CAYF,CAAC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