@vuetify/nightly 3.9.3-dev.2025-07-31 → 3.9.3-dev.2025-08-01
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 +7 -3
- package/dist/json/attributes.json +3665 -3589
- package/dist/json/importMap-labs.json +26 -26
- package/dist/json/importMap.json +172 -172
- package/dist/json/tags.json +19 -0
- package/dist/json/web-types.json +7396 -7206
- package/dist/vuetify-labs.cjs +70 -20
- package/dist/vuetify-labs.css +5522 -5516
- package/dist/vuetify-labs.d.ts +330 -63
- package/dist/vuetify-labs.esm.js +70 -20
- package/dist/vuetify-labs.esm.js.map +1 -1
- package/dist/vuetify-labs.js +70 -20
- package/dist/vuetify-labs.min.css +2 -2
- package/dist/vuetify.cjs +70 -20
- package/dist/vuetify.cjs.map +1 -1
- package/dist/vuetify.css +3671 -3665
- package/dist/vuetify.d.ts +330 -63
- package/dist/vuetify.esm.js +70 -20
- package/dist/vuetify.esm.js.map +1 -1
- package/dist/vuetify.js +70 -20
- package/dist/vuetify.js.map +1 -1
- package/dist/vuetify.min.css +2 -2
- package/dist/vuetify.min.js +239 -236
- package/dist/vuetify.min.js.map +1 -1
- package/lib/components/VDataTable/VDataTable.css +7 -1
- package/lib/components/VDataTable/VDataTable.d.ts +164 -0
- package/lib/components/VDataTable/VDataTable.sass +4 -1
- package/lib/components/VDataTable/VDataTableColumn.d.ts +4 -1
- package/lib/components/VDataTable/VDataTableColumn.js +6 -2
- package/lib/components/VDataTable/VDataTableColumn.js.map +1 -1
- package/lib/components/VDataTable/VDataTableGroupHeaderRow.d.ts +57 -3
- package/lib/components/VDataTable/VDataTableGroupHeaderRow.js +27 -12
- package/lib/components/VDataTable/VDataTableGroupHeaderRow.js.map +1 -1
- package/lib/components/VDataTable/VDataTableHeaders.js +3 -0
- package/lib/components/VDataTable/VDataTableHeaders.js.map +1 -1
- package/lib/components/VDataTable/VDataTableRow.d.ts +51 -0
- package/lib/components/VDataTable/VDataTableRow.js +17 -4
- package/lib/components/VDataTable/VDataTableRow.js.map +1 -1
- package/lib/components/VDataTable/VDataTableRows.d.ts +100 -0
- package/lib/components/VDataTable/VDataTableRows.js +9 -4
- package/lib/components/VDataTable/VDataTableRows.js.map +1 -1
- package/lib/components/VDataTable/VDataTableServer.d.ts +110 -0
- package/lib/components/VDataTable/VDataTableVirtual.d.ts +110 -0
- package/lib/components/VDataTable/composables/headers.d.ts +14 -0
- package/lib/components/VDataTable/types.d.ts +1 -0
- package/lib/components/VDataTable/types.js.map +1 -1
- package/lib/components/VFileInput/VFileInput.d.ts +25 -0
- package/lib/components/VFileInput/VFileInput.js +11 -1
- package/lib/components/VFileInput/VFileInput.js.map +1 -1
- package/lib/entry-bundler.js +1 -1
- package/lib/framework.d.ts +64 -63
- package/lib/framework.js +1 -1
- package/lib/iconsets/fa.js +2 -0
- package/lib/iconsets/fa.js.map +1 -1
- package/lib/iconsets/fa4.js +2 -0
- package/lib/iconsets/fa4.js.map +1 -1
- package/lib/iconsets/md.js +2 -0
- package/lib/iconsets/md.js.map +1 -1
- package/lib/iconsets/mdi-svg.js +2 -0
- package/lib/iconsets/mdi-svg.js.map +1 -1
- package/lib/iconsets/mdi.js +2 -0
- package/lib/iconsets/mdi.js.map +1 -1
- package/package.json +1 -1
|
@@ -66,11 +66,15 @@ export declare const makeVDataTableVirtualProps: <Defaults extends {
|
|
|
66
66
|
valueComparator?: unknown;
|
|
67
67
|
density?: unknown;
|
|
68
68
|
striped?: unknown;
|
|
69
|
+
collapseIcon?: unknown;
|
|
70
|
+
expandIcon?: unknown;
|
|
69
71
|
hideNoData?: unknown;
|
|
70
72
|
hover?: unknown;
|
|
71
73
|
fixedHeader?: unknown;
|
|
72
74
|
sortAscIcon?: unknown;
|
|
73
75
|
sortDescIcon?: unknown;
|
|
76
|
+
groupCollapseIcon?: unknown;
|
|
77
|
+
groupExpandIcon?: unknown;
|
|
74
78
|
fixedFooter?: unknown;
|
|
75
79
|
hideDefaultBody?: unknown;
|
|
76
80
|
hideDefaultHeader?: unknown;
|
|
@@ -199,6 +203,7 @@ export declare const makeVDataTableVirtualProps: <Defaults extends {
|
|
|
199
203
|
readonly minWidth?: number | string | undefined;
|
|
200
204
|
readonly maxWidth?: number | string | undefined;
|
|
201
205
|
readonly nowrap?: boolean | undefined;
|
|
206
|
+
readonly intent?: number | undefined;
|
|
202
207
|
readonly headerProps?: {
|
|
203
208
|
readonly [x: string]: any;
|
|
204
209
|
} | undefined;
|
|
@@ -219,6 +224,7 @@ export declare const makeVDataTableVirtualProps: <Defaults extends {
|
|
|
219
224
|
readonly minWidth?: number | string | undefined;
|
|
220
225
|
readonly maxWidth?: number | string | undefined;
|
|
221
226
|
readonly nowrap?: boolean | undefined;
|
|
227
|
+
readonly intent?: number | undefined;
|
|
222
228
|
readonly headerProps?: {
|
|
223
229
|
readonly [x: string]: any;
|
|
224
230
|
} | undefined;
|
|
@@ -242,6 +248,7 @@ export declare const makeVDataTableVirtualProps: <Defaults extends {
|
|
|
242
248
|
readonly minWidth?: number | string | undefined;
|
|
243
249
|
readonly maxWidth?: number | string | undefined;
|
|
244
250
|
readonly nowrap?: boolean | undefined;
|
|
251
|
+
readonly intent?: number | undefined;
|
|
245
252
|
readonly headerProps?: {
|
|
246
253
|
readonly [x: string]: any;
|
|
247
254
|
} | undefined;
|
|
@@ -262,6 +269,7 @@ export declare const makeVDataTableVirtualProps: <Defaults extends {
|
|
|
262
269
|
readonly minWidth?: number | string | undefined;
|
|
263
270
|
readonly maxWidth?: number | string | undefined;
|
|
264
271
|
readonly nowrap?: boolean | undefined;
|
|
272
|
+
readonly intent?: number | undefined;
|
|
265
273
|
readonly headerProps?: {
|
|
266
274
|
readonly [x: string]: any;
|
|
267
275
|
} | undefined;
|
|
@@ -284,6 +292,7 @@ export declare const makeVDataTableVirtualProps: <Defaults extends {
|
|
|
284
292
|
readonly minWidth?: number | string | undefined;
|
|
285
293
|
readonly maxWidth?: number | string | undefined;
|
|
286
294
|
readonly nowrap?: boolean | undefined;
|
|
295
|
+
readonly intent?: number | undefined;
|
|
287
296
|
readonly headerProps?: {
|
|
288
297
|
readonly [x: string]: any;
|
|
289
298
|
} | undefined;
|
|
@@ -304,6 +313,7 @@ export declare const makeVDataTableVirtualProps: <Defaults extends {
|
|
|
304
313
|
readonly minWidth?: number | string | undefined;
|
|
305
314
|
readonly maxWidth?: number | string | undefined;
|
|
306
315
|
readonly nowrap?: boolean | undefined;
|
|
316
|
+
readonly intent?: number | undefined;
|
|
307
317
|
readonly headerProps?: {
|
|
308
318
|
readonly [x: string]: any;
|
|
309
319
|
} | undefined;
|
|
@@ -327,6 +337,7 @@ export declare const makeVDataTableVirtualProps: <Defaults extends {
|
|
|
327
337
|
readonly minWidth?: number | string | undefined;
|
|
328
338
|
readonly maxWidth?: number | string | undefined;
|
|
329
339
|
readonly nowrap?: boolean | undefined;
|
|
340
|
+
readonly intent?: number | undefined;
|
|
330
341
|
readonly headerProps?: {
|
|
331
342
|
readonly [x: string]: any;
|
|
332
343
|
} | undefined;
|
|
@@ -347,6 +358,7 @@ export declare const makeVDataTableVirtualProps: <Defaults extends {
|
|
|
347
358
|
readonly minWidth?: number | string | undefined;
|
|
348
359
|
readonly maxWidth?: number | string | undefined;
|
|
349
360
|
readonly nowrap?: boolean | undefined;
|
|
361
|
+
readonly intent?: number | undefined;
|
|
350
362
|
readonly headerProps?: {
|
|
351
363
|
readonly [x: string]: any;
|
|
352
364
|
} | undefined;
|
|
@@ -369,6 +381,7 @@ export declare const makeVDataTableVirtualProps: <Defaults extends {
|
|
|
369
381
|
readonly minWidth?: number | string | undefined;
|
|
370
382
|
readonly maxWidth?: number | string | undefined;
|
|
371
383
|
readonly nowrap?: boolean | undefined;
|
|
384
|
+
readonly intent?: number | undefined;
|
|
372
385
|
readonly headerProps?: {
|
|
373
386
|
readonly [x: string]: any;
|
|
374
387
|
} | undefined;
|
|
@@ -389,6 +402,7 @@ export declare const makeVDataTableVirtualProps: <Defaults extends {
|
|
|
389
402
|
readonly minWidth?: number | string | undefined;
|
|
390
403
|
readonly maxWidth?: number | string | undefined;
|
|
391
404
|
readonly nowrap?: boolean | undefined;
|
|
405
|
+
readonly intent?: number | undefined;
|
|
392
406
|
readonly headerProps?: {
|
|
393
407
|
readonly [x: string]: any;
|
|
394
408
|
} | undefined;
|
|
@@ -583,6 +597,26 @@ export declare const makeVDataTableVirtualProps: <Defaults extends {
|
|
|
583
597
|
type: import("vue").PropType<unknown extends Defaults["striped"] ? import("../VTable/VTable.js").Striped : import("../VTable/VTable.js").Striped | Defaults["striped"]>;
|
|
584
598
|
default: unknown extends Defaults["striped"] ? import("../VTable/VTable.js").Striped : NonNullable<import("../VTable/VTable.js").Striped> | Defaults["striped"];
|
|
585
599
|
};
|
|
600
|
+
collapseIcon: unknown extends Defaults["collapseIcon"] ? {
|
|
601
|
+
type: import("vue").PropType<import("../../composables/icons.js").IconValue>;
|
|
602
|
+
default: string;
|
|
603
|
+
} : Omit<{
|
|
604
|
+
type: import("vue").PropType<import("../../composables/icons.js").IconValue>;
|
|
605
|
+
default: string;
|
|
606
|
+
}, "type" | "default"> & {
|
|
607
|
+
type: import("vue").PropType<unknown extends Defaults["collapseIcon"] ? import("../../composables/icons.js").IconValue : import("../../composables/icons.js").IconValue | Defaults["collapseIcon"]>;
|
|
608
|
+
default: unknown extends Defaults["collapseIcon"] ? import("../../composables/icons.js").IconValue : NonNullable<import("../../composables/icons.js").IconValue> | Defaults["collapseIcon"];
|
|
609
|
+
};
|
|
610
|
+
expandIcon: unknown extends Defaults["expandIcon"] ? {
|
|
611
|
+
type: import("vue").PropType<import("../../composables/icons.js").IconValue>;
|
|
612
|
+
default: string;
|
|
613
|
+
} : Omit<{
|
|
614
|
+
type: import("vue").PropType<import("../../composables/icons.js").IconValue>;
|
|
615
|
+
default: string;
|
|
616
|
+
}, "type" | "default"> & {
|
|
617
|
+
type: import("vue").PropType<unknown extends Defaults["expandIcon"] ? import("../../composables/icons.js").IconValue : import("../../composables/icons.js").IconValue | Defaults["expandIcon"]>;
|
|
618
|
+
default: unknown extends Defaults["expandIcon"] ? import("../../composables/icons.js").IconValue : NonNullable<import("../../composables/icons.js").IconValue> | Defaults["expandIcon"];
|
|
619
|
+
};
|
|
586
620
|
hideNoData: unknown extends Defaults["hideNoData"] ? BooleanConstructor : {
|
|
587
621
|
type: import("vue").PropType<unknown extends Defaults["hideNoData"] ? boolean : boolean | Defaults["hideNoData"]>;
|
|
588
622
|
default: unknown extends Defaults["hideNoData"] ? boolean : boolean | Defaults["hideNoData"];
|
|
@@ -615,6 +649,26 @@ export declare const makeVDataTableVirtualProps: <Defaults extends {
|
|
|
615
649
|
type: import("vue").PropType<unknown extends Defaults["sortDescIcon"] ? import("../../composables/icons.js").IconValue : import("../../composables/icons.js").IconValue | Defaults["sortDescIcon"]>;
|
|
616
650
|
default: unknown extends Defaults["sortDescIcon"] ? import("../../composables/icons.js").IconValue : NonNullable<import("../../composables/icons.js").IconValue> | Defaults["sortDescIcon"];
|
|
617
651
|
};
|
|
652
|
+
groupCollapseIcon: unknown extends Defaults["groupCollapseIcon"] ? {
|
|
653
|
+
type: import("vue").PropType<import("../../composables/icons.js").IconValue>;
|
|
654
|
+
default: string;
|
|
655
|
+
} : Omit<{
|
|
656
|
+
type: import("vue").PropType<import("../../composables/icons.js").IconValue>;
|
|
657
|
+
default: string;
|
|
658
|
+
}, "type" | "default"> & {
|
|
659
|
+
type: import("vue").PropType<unknown extends Defaults["groupCollapseIcon"] ? import("../../composables/icons.js").IconValue : import("../../composables/icons.js").IconValue | Defaults["groupCollapseIcon"]>;
|
|
660
|
+
default: unknown extends Defaults["groupCollapseIcon"] ? import("../../composables/icons.js").IconValue : NonNullable<import("../../composables/icons.js").IconValue> | Defaults["groupCollapseIcon"];
|
|
661
|
+
};
|
|
662
|
+
groupExpandIcon: unknown extends Defaults["groupExpandIcon"] ? {
|
|
663
|
+
type: import("vue").PropType<import("../../composables/icons.js").IconValue>;
|
|
664
|
+
default: string;
|
|
665
|
+
} : Omit<{
|
|
666
|
+
type: import("vue").PropType<import("../../composables/icons.js").IconValue>;
|
|
667
|
+
default: string;
|
|
668
|
+
}, "type" | "default"> & {
|
|
669
|
+
type: import("vue").PropType<unknown extends Defaults["groupExpandIcon"] ? import("../../composables/icons.js").IconValue : import("../../composables/icons.js").IconValue | Defaults["groupExpandIcon"]>;
|
|
670
|
+
default: unknown extends Defaults["groupExpandIcon"] ? import("../../composables/icons.js").IconValue : NonNullable<import("../../composables/icons.js").IconValue> | Defaults["groupExpandIcon"];
|
|
671
|
+
};
|
|
618
672
|
fixedFooter: unknown extends Defaults["fixedFooter"] ? BooleanConstructor : {
|
|
619
673
|
type: import("vue").PropType<unknown extends Defaults["fixedFooter"] ? boolean : boolean | Defaults["fixedFooter"]>;
|
|
620
674
|
default: unknown extends Defaults["fixedFooter"] ? boolean : boolean | Defaults["fixedFooter"];
|
|
@@ -653,6 +707,8 @@ export declare const VDataTableVirtual: {
|
|
|
653
707
|
valueComparator: typeof import("../../util/index.js").deepEqual;
|
|
654
708
|
density: import("../../composables/density.js").Density;
|
|
655
709
|
striped: import("../VTable/VTable.js").Striped;
|
|
710
|
+
collapseIcon: import("../../composables/icons.js").IconValue;
|
|
711
|
+
expandIcon: import("../../composables/icons.js").IconValue;
|
|
656
712
|
itemHeight: string | number;
|
|
657
713
|
itemKey: SelectItemKey;
|
|
658
714
|
hideNoData: boolean;
|
|
@@ -660,6 +716,8 @@ export declare const VDataTableVirtual: {
|
|
|
660
716
|
fixedHeader: boolean;
|
|
661
717
|
sortAscIcon: import("../../composables/icons.js").IconValue;
|
|
662
718
|
sortDescIcon: import("../../composables/icons.js").IconValue;
|
|
719
|
+
groupCollapseIcon: import("../../composables/icons.js").IconValue;
|
|
720
|
+
groupExpandIcon: import("../../composables/icons.js").IconValue;
|
|
663
721
|
fixedFooter: boolean;
|
|
664
722
|
hideDefaultBody: boolean;
|
|
665
723
|
hideDefaultHeader: boolean;
|
|
@@ -714,6 +772,8 @@ export declare const VDataTableVirtual: {
|
|
|
714
772
|
valueComparator: typeof import("../../util/index.js").deepEqual;
|
|
715
773
|
density: import("../../composables/density.js").Density;
|
|
716
774
|
striped: import("../VTable/VTable.js").Striped;
|
|
775
|
+
collapseIcon: import("../../composables/icons.js").IconValue;
|
|
776
|
+
expandIcon: import("../../composables/icons.js").IconValue;
|
|
717
777
|
itemHeight: string | number;
|
|
718
778
|
itemKey: SelectItemKey;
|
|
719
779
|
hideNoData: boolean;
|
|
@@ -721,6 +781,8 @@ export declare const VDataTableVirtual: {
|
|
|
721
781
|
fixedHeader: boolean;
|
|
722
782
|
sortAscIcon: import("../../composables/icons.js").IconValue;
|
|
723
783
|
sortDescIcon: import("../../composables/icons.js").IconValue;
|
|
784
|
+
groupCollapseIcon: import("../../composables/icons.js").IconValue;
|
|
785
|
+
groupExpandIcon: import("../../composables/icons.js").IconValue;
|
|
724
786
|
fixedFooter: boolean;
|
|
725
787
|
hideDefaultBody: boolean;
|
|
726
788
|
hideDefaultHeader: boolean;
|
|
@@ -798,6 +860,8 @@ export declare const VDataTableVirtual: {
|
|
|
798
860
|
valueComparator: typeof import("../../util/index.js").deepEqual;
|
|
799
861
|
density: import("../../composables/density.js").Density;
|
|
800
862
|
striped: import("../VTable/VTable.js").Striped;
|
|
863
|
+
collapseIcon: import("../../composables/icons.js").IconValue;
|
|
864
|
+
expandIcon: import("../../composables/icons.js").IconValue;
|
|
801
865
|
itemHeight: string | number;
|
|
802
866
|
itemKey: SelectItemKey;
|
|
803
867
|
hideNoData: boolean;
|
|
@@ -805,6 +869,8 @@ export declare const VDataTableVirtual: {
|
|
|
805
869
|
fixedHeader: boolean;
|
|
806
870
|
sortAscIcon: import("../../composables/icons.js").IconValue;
|
|
807
871
|
sortDescIcon: import("../../composables/icons.js").IconValue;
|
|
872
|
+
groupCollapseIcon: import("../../composables/icons.js").IconValue;
|
|
873
|
+
groupExpandIcon: import("../../composables/icons.js").IconValue;
|
|
808
874
|
fixedFooter: boolean;
|
|
809
875
|
hideDefaultBody: boolean;
|
|
810
876
|
hideDefaultHeader: boolean;
|
|
@@ -853,6 +919,8 @@ export declare const VDataTableVirtual: {
|
|
|
853
919
|
valueComparator: typeof import("../../util/index.js").deepEqual;
|
|
854
920
|
density: import("../../composables/density.js").Density;
|
|
855
921
|
striped: import("../VTable/VTable.js").Striped;
|
|
922
|
+
collapseIcon: import("../../composables/icons.js").IconValue;
|
|
923
|
+
expandIcon: import("../../composables/icons.js").IconValue;
|
|
856
924
|
itemHeight: string | number;
|
|
857
925
|
itemKey: SelectItemKey;
|
|
858
926
|
hideNoData: boolean;
|
|
@@ -860,6 +928,8 @@ export declare const VDataTableVirtual: {
|
|
|
860
928
|
fixedHeader: boolean;
|
|
861
929
|
sortAscIcon: import("../../composables/icons.js").IconValue;
|
|
862
930
|
sortDescIcon: import("../../composables/icons.js").IconValue;
|
|
931
|
+
groupCollapseIcon: import("../../composables/icons.js").IconValue;
|
|
932
|
+
groupExpandIcon: import("../../composables/icons.js").IconValue;
|
|
863
933
|
fixedFooter: boolean;
|
|
864
934
|
hideDefaultBody: boolean;
|
|
865
935
|
hideDefaultHeader: boolean;
|
|
@@ -890,6 +960,8 @@ export declare const VDataTableVirtual: {
|
|
|
890
960
|
valueComparator: typeof import("../../util/index.js").deepEqual;
|
|
891
961
|
density: import("../../composables/density.js").Density;
|
|
892
962
|
striped: import("../VTable/VTable.js").Striped;
|
|
963
|
+
collapseIcon: import("../../composables/icons.js").IconValue;
|
|
964
|
+
expandIcon: import("../../composables/icons.js").IconValue;
|
|
893
965
|
itemHeight: string | number;
|
|
894
966
|
itemKey: SelectItemKey;
|
|
895
967
|
hideNoData: boolean;
|
|
@@ -897,6 +969,8 @@ export declare const VDataTableVirtual: {
|
|
|
897
969
|
fixedHeader: boolean;
|
|
898
970
|
sortAscIcon: import("../../composables/icons.js").IconValue;
|
|
899
971
|
sortDescIcon: import("../../composables/icons.js").IconValue;
|
|
972
|
+
groupCollapseIcon: import("../../composables/icons.js").IconValue;
|
|
973
|
+
groupExpandIcon: import("../../composables/icons.js").IconValue;
|
|
900
974
|
fixedFooter: boolean;
|
|
901
975
|
hideDefaultBody: boolean;
|
|
902
976
|
hideDefaultHeader: boolean;
|
|
@@ -951,6 +1025,8 @@ export declare const VDataTableVirtual: {
|
|
|
951
1025
|
valueComparator: typeof import("../../util/index.js").deepEqual;
|
|
952
1026
|
density: import("../../composables/density.js").Density;
|
|
953
1027
|
striped: import("../VTable/VTable.js").Striped;
|
|
1028
|
+
collapseIcon: import("../../composables/icons.js").IconValue;
|
|
1029
|
+
expandIcon: import("../../composables/icons.js").IconValue;
|
|
954
1030
|
itemHeight: string | number;
|
|
955
1031
|
itemKey: SelectItemKey;
|
|
956
1032
|
hideNoData: boolean;
|
|
@@ -958,6 +1034,8 @@ export declare const VDataTableVirtual: {
|
|
|
958
1034
|
fixedHeader: boolean;
|
|
959
1035
|
sortAscIcon: import("../../composables/icons.js").IconValue;
|
|
960
1036
|
sortDescIcon: import("../../composables/icons.js").IconValue;
|
|
1037
|
+
groupCollapseIcon: import("../../composables/icons.js").IconValue;
|
|
1038
|
+
groupExpandIcon: import("../../composables/icons.js").IconValue;
|
|
961
1039
|
fixedFooter: boolean;
|
|
962
1040
|
hideDefaultBody: boolean;
|
|
963
1041
|
hideDefaultHeader: boolean;
|
|
@@ -1120,6 +1198,14 @@ export declare const VDataTableVirtual: {
|
|
|
1120
1198
|
default: null;
|
|
1121
1199
|
validator: (v: any) => boolean;
|
|
1122
1200
|
};
|
|
1201
|
+
collapseIcon: {
|
|
1202
|
+
type: import("vue").PropType<import("../../composables/icons.js").IconValue>;
|
|
1203
|
+
default: string;
|
|
1204
|
+
};
|
|
1205
|
+
expandIcon: {
|
|
1206
|
+
type: import("vue").PropType<import("../../composables/icons.js").IconValue>;
|
|
1207
|
+
default: string;
|
|
1208
|
+
};
|
|
1123
1209
|
hideNoData: BooleanConstructor;
|
|
1124
1210
|
hover: BooleanConstructor;
|
|
1125
1211
|
fixedHeader: BooleanConstructor;
|
|
@@ -1131,6 +1217,14 @@ export declare const VDataTableVirtual: {
|
|
|
1131
1217
|
type: import("vue").PropType<import("../../composables/icons.js").IconValue>;
|
|
1132
1218
|
default: string;
|
|
1133
1219
|
};
|
|
1220
|
+
groupCollapseIcon: {
|
|
1221
|
+
type: import("vue").PropType<import("../../composables/icons.js").IconValue>;
|
|
1222
|
+
default: string;
|
|
1223
|
+
};
|
|
1224
|
+
groupExpandIcon: {
|
|
1225
|
+
type: import("vue").PropType<import("../../composables/icons.js").IconValue>;
|
|
1226
|
+
default: string;
|
|
1227
|
+
};
|
|
1134
1228
|
fixedFooter: BooleanConstructor;
|
|
1135
1229
|
hideDefaultBody: BooleanConstructor;
|
|
1136
1230
|
hideDefaultHeader: BooleanConstructor;
|
|
@@ -1240,6 +1334,14 @@ export declare const VDataTableVirtual: {
|
|
|
1240
1334
|
default: null;
|
|
1241
1335
|
validator: (v: any) => boolean;
|
|
1242
1336
|
};
|
|
1337
|
+
collapseIcon: {
|
|
1338
|
+
type: import("vue").PropType<import("../../composables/icons.js").IconValue>;
|
|
1339
|
+
default: string;
|
|
1340
|
+
};
|
|
1341
|
+
expandIcon: {
|
|
1342
|
+
type: import("vue").PropType<import("../../composables/icons.js").IconValue>;
|
|
1343
|
+
default: string;
|
|
1344
|
+
};
|
|
1243
1345
|
hideNoData: BooleanConstructor;
|
|
1244
1346
|
hover: BooleanConstructor;
|
|
1245
1347
|
fixedHeader: BooleanConstructor;
|
|
@@ -1251,6 +1353,14 @@ export declare const VDataTableVirtual: {
|
|
|
1251
1353
|
type: import("vue").PropType<import("../../composables/icons.js").IconValue>;
|
|
1252
1354
|
default: string;
|
|
1253
1355
|
};
|
|
1356
|
+
groupCollapseIcon: {
|
|
1357
|
+
type: import("vue").PropType<import("../../composables/icons.js").IconValue>;
|
|
1358
|
+
default: string;
|
|
1359
|
+
};
|
|
1360
|
+
groupExpandIcon: {
|
|
1361
|
+
type: import("vue").PropType<import("../../composables/icons.js").IconValue>;
|
|
1362
|
+
default: string;
|
|
1363
|
+
};
|
|
1254
1364
|
fixedFooter: BooleanConstructor;
|
|
1255
1365
|
hideDefaultBody: BooleanConstructor;
|
|
1256
1366
|
hideDefaultHeader: BooleanConstructor;
|
|
@@ -15,6 +15,7 @@ export declare const makeDataTableHeaderProps: <Defaults extends {
|
|
|
15
15
|
readonly minWidth?: number | string | undefined;
|
|
16
16
|
readonly maxWidth?: number | string | undefined;
|
|
17
17
|
readonly nowrap?: boolean | undefined;
|
|
18
|
+
readonly intent?: number | undefined;
|
|
18
19
|
readonly headerProps?: {
|
|
19
20
|
readonly [x: string]: any;
|
|
20
21
|
} | undefined;
|
|
@@ -35,6 +36,7 @@ export declare const makeDataTableHeaderProps: <Defaults extends {
|
|
|
35
36
|
readonly minWidth?: number | string | undefined;
|
|
36
37
|
readonly maxWidth?: number | string | undefined;
|
|
37
38
|
readonly nowrap?: boolean | undefined;
|
|
39
|
+
readonly intent?: number | undefined;
|
|
38
40
|
readonly headerProps?: {
|
|
39
41
|
readonly [x: string]: any;
|
|
40
42
|
} | undefined;
|
|
@@ -58,6 +60,7 @@ export declare const makeDataTableHeaderProps: <Defaults extends {
|
|
|
58
60
|
readonly minWidth?: number | string | undefined;
|
|
59
61
|
readonly maxWidth?: number | string | undefined;
|
|
60
62
|
readonly nowrap?: boolean | undefined;
|
|
63
|
+
readonly intent?: number | undefined;
|
|
61
64
|
readonly headerProps?: {
|
|
62
65
|
readonly [x: string]: any;
|
|
63
66
|
} | undefined;
|
|
@@ -78,6 +81,7 @@ export declare const makeDataTableHeaderProps: <Defaults extends {
|
|
|
78
81
|
readonly minWidth?: number | string | undefined;
|
|
79
82
|
readonly maxWidth?: number | string | undefined;
|
|
80
83
|
readonly nowrap?: boolean | undefined;
|
|
84
|
+
readonly intent?: number | undefined;
|
|
81
85
|
readonly headerProps?: {
|
|
82
86
|
readonly [x: string]: any;
|
|
83
87
|
} | undefined;
|
|
@@ -100,6 +104,7 @@ export declare const makeDataTableHeaderProps: <Defaults extends {
|
|
|
100
104
|
readonly minWidth?: number | string | undefined;
|
|
101
105
|
readonly maxWidth?: number | string | undefined;
|
|
102
106
|
readonly nowrap?: boolean | undefined;
|
|
107
|
+
readonly intent?: number | undefined;
|
|
103
108
|
readonly headerProps?: {
|
|
104
109
|
readonly [x: string]: any;
|
|
105
110
|
} | undefined;
|
|
@@ -120,6 +125,7 @@ export declare const makeDataTableHeaderProps: <Defaults extends {
|
|
|
120
125
|
readonly minWidth?: number | string | undefined;
|
|
121
126
|
readonly maxWidth?: number | string | undefined;
|
|
122
127
|
readonly nowrap?: boolean | undefined;
|
|
128
|
+
readonly intent?: number | undefined;
|
|
123
129
|
readonly headerProps?: {
|
|
124
130
|
readonly [x: string]: any;
|
|
125
131
|
} | undefined;
|
|
@@ -143,6 +149,7 @@ export declare const makeDataTableHeaderProps: <Defaults extends {
|
|
|
143
149
|
readonly minWidth?: number | string | undefined;
|
|
144
150
|
readonly maxWidth?: number | string | undefined;
|
|
145
151
|
readonly nowrap?: boolean | undefined;
|
|
152
|
+
readonly intent?: number | undefined;
|
|
146
153
|
readonly headerProps?: {
|
|
147
154
|
readonly [x: string]: any;
|
|
148
155
|
} | undefined;
|
|
@@ -163,6 +170,7 @@ export declare const makeDataTableHeaderProps: <Defaults extends {
|
|
|
163
170
|
readonly minWidth?: number | string | undefined;
|
|
164
171
|
readonly maxWidth?: number | string | undefined;
|
|
165
172
|
readonly nowrap?: boolean | undefined;
|
|
173
|
+
readonly intent?: number | undefined;
|
|
166
174
|
readonly headerProps?: {
|
|
167
175
|
readonly [x: string]: any;
|
|
168
176
|
} | undefined;
|
|
@@ -185,6 +193,7 @@ export declare const makeDataTableHeaderProps: <Defaults extends {
|
|
|
185
193
|
readonly minWidth?: number | string | undefined;
|
|
186
194
|
readonly maxWidth?: number | string | undefined;
|
|
187
195
|
readonly nowrap?: boolean | undefined;
|
|
196
|
+
readonly intent?: number | undefined;
|
|
188
197
|
readonly headerProps?: {
|
|
189
198
|
readonly [x: string]: any;
|
|
190
199
|
} | undefined;
|
|
@@ -205,6 +214,7 @@ export declare const makeDataTableHeaderProps: <Defaults extends {
|
|
|
205
214
|
readonly minWidth?: number | string | undefined;
|
|
206
215
|
readonly maxWidth?: number | string | undefined;
|
|
207
216
|
readonly nowrap?: boolean | undefined;
|
|
217
|
+
readonly intent?: number | undefined;
|
|
208
218
|
readonly headerProps?: {
|
|
209
219
|
readonly [x: string]: any;
|
|
210
220
|
} | undefined;
|
|
@@ -243,6 +253,7 @@ export declare function createHeaders(props: HeaderProps, options?: {
|
|
|
243
253
|
title?: string | undefined;
|
|
244
254
|
nowrap?: boolean | undefined;
|
|
245
255
|
align?: "start" | "end" | "center" | undefined;
|
|
256
|
+
intent?: number | undefined;
|
|
246
257
|
headerProps?: Record<string, any> | undefined;
|
|
247
258
|
cellProps?: import("../types.js").HeaderCellProps | undefined;
|
|
248
259
|
sortable: boolean;
|
|
@@ -266,6 +277,7 @@ export declare function createHeaders(props: HeaderProps, options?: {
|
|
|
266
277
|
title?: string | undefined;
|
|
267
278
|
nowrap?: boolean | undefined;
|
|
268
279
|
align?: "start" | "end" | "center" | undefined;
|
|
280
|
+
intent?: number | undefined;
|
|
269
281
|
headerProps?: Record<string, any> | undefined;
|
|
270
282
|
cellProps?: import("../types.js").HeaderCellProps | undefined;
|
|
271
283
|
sortable: boolean;
|
|
@@ -290,6 +302,7 @@ export declare function createHeaders(props: HeaderProps, options?: {
|
|
|
290
302
|
title?: string | undefined;
|
|
291
303
|
nowrap?: boolean | undefined;
|
|
292
304
|
align?: "start" | "end" | "center" | undefined;
|
|
305
|
+
intent?: number | undefined;
|
|
293
306
|
headerProps?: Record<string, any> | undefined;
|
|
294
307
|
cellProps?: import("../types.js").HeaderCellProps | undefined;
|
|
295
308
|
sortable: boolean;
|
|
@@ -313,6 +326,7 @@ export declare function createHeaders(props: HeaderProps, options?: {
|
|
|
313
326
|
title?: string | undefined;
|
|
314
327
|
nowrap?: boolean | undefined;
|
|
315
328
|
align?: "start" | "end" | "center" | undefined;
|
|
329
|
+
intent?: number | undefined;
|
|
316
330
|
headerProps?: Record<string, any> | undefined;
|
|
317
331
|
cellProps?: import("../types.js").HeaderCellProps | undefined;
|
|
318
332
|
sortable: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","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 | 'start' | 'end'\n align?: 'start' | 'end' | 'center'\n\n width?: number | string\n minWidth?: number | string\n maxWidth?: number | 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 fixedEndOffset?: number\n lastFixed?: boolean\n firstFixedEnd?: boolean\n nowrap?: boolean\n colspan?: number\n rowspan?: number\n children?: InternalDataTableHeader[]\n}\n\nexport interface DataTableItem<T = any> extends Omit<InternalItem<T>, 'type'>, 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> = Record<string, any> | RowPropsFunction<T>\nexport type RowPropsFunction<T> = (\n data: Pick<ItemKeySlot<T>, 'index' | 'item' | 'internalItem'>\n) => Record<string, any>\n\nexport type CellProps<T> = Record<string, any> | CellPropsFunction<T>\nexport type CellPropsFunction<T> = (\n data: Pick<ItemKeySlot<T>, 'index' | 'item' | 'internalItem' | 'value' | 'column'>\n) => Record<string, any>\n\nexport type HeaderCellProps = Record<string, any> | HeaderCellPropsFunction\nexport type HeaderCellPropsFunction = (\n data: Pick<ItemKeySlot<any>, 'index' | 'item' | 'internalItem' | 'value'>\n) => Record<string, any>\n"],"mappings":"","ignoreList":[]}
|
|
1
|
+
{"version":3,"file":"types.js","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 | 'start' | 'end'\n align?: 'start' | 'end' | 'center'\n\n width?: number | string\n minWidth?: number | string\n maxWidth?: number | string\n nowrap?: boolean\n intent?: number\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 fixedEndOffset?: number\n lastFixed?: boolean\n firstFixedEnd?: boolean\n nowrap?: boolean\n colspan?: number\n rowspan?: number\n children?: InternalDataTableHeader[]\n}\n\nexport interface DataTableItem<T = any> extends Omit<InternalItem<T>, 'type'>, 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> = Record<string, any> | RowPropsFunction<T>\nexport type RowPropsFunction<T> = (\n data: Pick<ItemKeySlot<T>, 'index' | 'item' | 'internalItem'>\n) => Record<string, any>\n\nexport type CellProps<T> = Record<string, any> | CellPropsFunction<T>\nexport type CellPropsFunction<T> = (\n data: Pick<ItemKeySlot<T>, 'index' | 'item' | 'internalItem' | 'value' | 'column'>\n) => Record<string, any>\n\nexport type HeaderCellProps = Record<string, any> | HeaderCellPropsFunction\nexport type HeaderCellPropsFunction = (\n data: Pick<ItemKeySlot<any>, 'index' | 'item' | 'internalItem' | 'value'>\n) => Record<string, any>\n"],"mappings":"","ignoreList":[]}
|
|
@@ -74,6 +74,7 @@ export declare const makeVFileInputProps: <Defaults extends {
|
|
|
74
74
|
hideInput?: unknown;
|
|
75
75
|
multiple?: unknown;
|
|
76
76
|
showSize?: unknown;
|
|
77
|
+
truncateLength?: unknown;
|
|
77
78
|
} = {}>(defaults?: Defaults | undefined) => {
|
|
78
79
|
theme: unknown extends Defaults["theme"] ? StringConstructor : {
|
|
79
80
|
type: PropType<unknown extends Defaults["theme"] ? string : string | Defaults["theme"]>;
|
|
@@ -451,6 +452,16 @@ export declare const makeVFileInputProps: <Defaults extends {
|
|
|
451
452
|
type: PropType<unknown extends Defaults["showSize"] ? boolean | 1024 | 1000 : boolean | 1024 | 1000 | Defaults["showSize"]>;
|
|
452
453
|
default: unknown extends Defaults["showSize"] ? boolean | 1024 | 1000 : Defaults["showSize"] | NonNullable<boolean | 1024 | 1000>;
|
|
453
454
|
};
|
|
455
|
+
truncateLength: unknown extends Defaults["truncateLength"] ? {
|
|
456
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
457
|
+
default: number;
|
|
458
|
+
} : Omit<{
|
|
459
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
460
|
+
default: number;
|
|
461
|
+
}, "type" | "default"> & {
|
|
462
|
+
type: PropType<unknown extends Defaults["truncateLength"] ? string | number : string | number | Defaults["truncateLength"]>;
|
|
463
|
+
default: unknown extends Defaults["truncateLength"] ? string | number : NonNullable<string | number> | Defaults["truncateLength"];
|
|
464
|
+
};
|
|
454
465
|
};
|
|
455
466
|
export declare const VFileInput: {
|
|
456
467
|
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<{
|
|
@@ -488,6 +499,7 @@ export declare const VFileInput: {
|
|
|
488
499
|
counterString: string;
|
|
489
500
|
hideInput: boolean;
|
|
490
501
|
showSize: boolean | 1024 | 1000;
|
|
502
|
+
truncateLength: string | number;
|
|
491
503
|
} & {
|
|
492
504
|
name?: string | undefined;
|
|
493
505
|
id?: string | undefined;
|
|
@@ -869,6 +881,7 @@ export declare const VFileInput: {
|
|
|
869
881
|
counterString: string;
|
|
870
882
|
hideInput: boolean;
|
|
871
883
|
showSize: boolean | 1024 | 1000;
|
|
884
|
+
truncateLength: string | number;
|
|
872
885
|
}, true, {}, import("vue").SlotsType<Partial<{
|
|
873
886
|
default: (arg: import("../VInput/VInput.js").VInputSlot & import("../VField/VField.js").VFieldSlot) => import("vue").VNode[];
|
|
874
887
|
prepend: (arg: import("../VInput/VInput.js").VInputSlot) => import("vue").VNode[];
|
|
@@ -933,6 +946,7 @@ export declare const VFileInput: {
|
|
|
933
946
|
counterString: string;
|
|
934
947
|
hideInput: boolean;
|
|
935
948
|
showSize: boolean | 1024 | 1000;
|
|
949
|
+
truncateLength: string | number;
|
|
936
950
|
} & {
|
|
937
951
|
name?: string | undefined;
|
|
938
952
|
id?: string | undefined;
|
|
@@ -1308,6 +1322,7 @@ export declare const VFileInput: {
|
|
|
1308
1322
|
counterString: string;
|
|
1309
1323
|
hideInput: boolean;
|
|
1310
1324
|
showSize: boolean | 1024 | 1000;
|
|
1325
|
+
truncateLength: string | number;
|
|
1311
1326
|
}>;
|
|
1312
1327
|
__isFragment?: never;
|
|
1313
1328
|
__isTeleport?: never;
|
|
@@ -1347,6 +1362,7 @@ export declare const VFileInput: {
|
|
|
1347
1362
|
counterString: string;
|
|
1348
1363
|
hideInput: boolean;
|
|
1349
1364
|
showSize: boolean | 1024 | 1000;
|
|
1365
|
+
truncateLength: string | number;
|
|
1350
1366
|
} & {
|
|
1351
1367
|
name?: string | undefined;
|
|
1352
1368
|
id?: string | undefined;
|
|
@@ -1728,6 +1744,7 @@ export declare const VFileInput: {
|
|
|
1728
1744
|
counterString: string;
|
|
1729
1745
|
hideInput: boolean;
|
|
1730
1746
|
showSize: boolean | 1024 | 1000;
|
|
1747
|
+
truncateLength: string | number;
|
|
1731
1748
|
}, {}, string, import("vue").SlotsType<Partial<{
|
|
1732
1749
|
default: (arg: import("../VInput/VInput.js").VInputSlot & import("../VField/VField.js").VFieldSlot) => import("vue").VNode[];
|
|
1733
1750
|
prepend: (arg: import("../VInput/VInput.js").VInputSlot) => import("vue").VNode[];
|
|
@@ -1876,6 +1893,10 @@ export declare const VFileInput: {
|
|
|
1876
1893
|
default: boolean;
|
|
1877
1894
|
validator: (v: boolean | number) => boolean;
|
|
1878
1895
|
};
|
|
1896
|
+
truncateLength: {
|
|
1897
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
1898
|
+
default: number;
|
|
1899
|
+
};
|
|
1879
1900
|
}, import("vue").ExtractPropTypes<{
|
|
1880
1901
|
theme: StringConstructor;
|
|
1881
1902
|
rounded: {
|
|
@@ -2002,5 +2023,9 @@ export declare const VFileInput: {
|
|
|
2002
2023
|
default: boolean;
|
|
2003
2024
|
validator: (v: boolean | number) => boolean;
|
|
2004
2025
|
};
|
|
2026
|
+
truncateLength: {
|
|
2027
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
2028
|
+
default: number;
|
|
2029
|
+
};
|
|
2005
2030
|
}>>;
|
|
2006
2031
|
export type VFileInput = InstanceType<typeof VFileInput>;
|
|
@@ -36,6 +36,10 @@ export const makeVFileInputProps = propsFactory({
|
|
|
36
36
|
return typeof v === 'boolean' || [1000, 1024].includes(Number(v));
|
|
37
37
|
}
|
|
38
38
|
},
|
|
39
|
+
truncateLength: {
|
|
40
|
+
type: [Number, String],
|
|
41
|
+
default: 22
|
|
42
|
+
},
|
|
39
43
|
...makeVInputProps({
|
|
40
44
|
prependIcon: '$file'
|
|
41
45
|
}),
|
|
@@ -93,7 +97,8 @@ export const VFileInput = genericComponent()({
|
|
|
93
97
|
name = '',
|
|
94
98
|
size = 0
|
|
95
99
|
} = file;
|
|
96
|
-
|
|
100
|
+
const truncatedText = truncateText(name);
|
|
101
|
+
return !props.showSize ? truncatedText : `${truncatedText} (${humanReadableFileSize(size, base.value)})`;
|
|
97
102
|
}));
|
|
98
103
|
const counterValue = computed(() => {
|
|
99
104
|
const fileCount = model.value?.length ?? 0;
|
|
@@ -133,6 +138,11 @@ export const VFileInput = genericComponent()({
|
|
|
133
138
|
callEvent(props['onClick:clear'], e);
|
|
134
139
|
});
|
|
135
140
|
}
|
|
141
|
+
function truncateText(str) {
|
|
142
|
+
if (str.length < Number(props.truncateLength)) return str;
|
|
143
|
+
const charsKeepOneSide = Math.floor((Number(props.truncateLength) - 1) / 2);
|
|
144
|
+
return `${str.slice(0, charsKeepOneSide)}…${str.slice(str.length - charsKeepOneSide)}`;
|
|
145
|
+
}
|
|
136
146
|
function onDragover(e) {
|
|
137
147
|
e.preventDefault();
|
|
138
148
|
e.stopImmediatePropagation();
|