@vueye-table/styled 3.0.0-alpha.1 → 3.0.0-alpha.10

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/README.md CHANGED
@@ -1,5 +1,7 @@
1
1
  # @vueye-table/styled
2
2
 
3
+ `VtTable` and `VtGrid` accept opt-in `virtual`, `height`, `rowHeight` and `overscan`. A virtual grid also accepts `virtualColumns` and `columnWidth`; headers and body use the same widths and column slice. The supplied binding retains its pagination choice. See `docs/guide/virtualization.md` and the runnable 100k-record component example.
4
+
3
5
  Themed Vue components for vueye-table (`VtTable`, `VtGrid`, `VtToolbar`, `VtSearch`,
4
6
  `VtPagination`, `VtPageSize`, `VtColumnVisibility`, `VtStatus`, `VtEmpty`) and a stylesheet
5
7
  driven by CSS custom properties, with dark mode and three densities.
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { SortInfo, TableColumn, TableRow } from "@vueye-table/core";
2
- import { GridCellSlotProps } from "@vueye-table/headless";
2
+ import { CellEditorSlotProps, DetailSlotProps, GridCellSlotProps } from "@vueye-table/headless";
3
3
  import { AnyDataTableBinding, DataTableBinding } from "@vueye-table/vue";
4
4
  import { Component, PropType, SlotsType, VNode, VNodeChild } from "vue";
5
5
  //#region src/components.d.ts
@@ -69,6 +69,38 @@ declare const VtTable: import("vue").DefineComponent<import("vue").ExtractPropTy
69
69
  readonly type: PropType<"light" | "dark" | undefined>;
70
70
  readonly default: undefined;
71
71
  };
72
+ treeColumn: {
73
+ readonly type: PropType<string | undefined>;
74
+ readonly default: undefined;
75
+ };
76
+ keepAliveDetail: {
77
+ readonly type: BooleanConstructor;
78
+ readonly default: false;
79
+ };
80
+ virtual: {
81
+ readonly type: PropType<boolean | import("@vueye-table/headless").ComponentVirtualOptions>;
82
+ readonly default: false;
83
+ };
84
+ height: {
85
+ readonly type: PropType<string | undefined>;
86
+ readonly default: undefined;
87
+ };
88
+ rowHeight: {
89
+ readonly type: NumberConstructor;
90
+ readonly default: 40;
91
+ };
92
+ overscan: {
93
+ readonly type: NumberConstructor;
94
+ readonly default: 5;
95
+ };
96
+ virtualColumns: {
97
+ readonly type: BooleanConstructor;
98
+ readonly default: false;
99
+ };
100
+ columnWidth: {
101
+ readonly type: NumberConstructor;
102
+ readonly default: 120;
103
+ };
72
104
  table: {
73
105
  type: PropType<AnyDataTableBinding>;
74
106
  required: true;
@@ -104,6 +136,38 @@ declare const VtTable: import("vue").DefineComponent<import("vue").ExtractPropTy
104
136
  readonly type: PropType<"light" | "dark" | undefined>;
105
137
  readonly default: undefined;
106
138
  };
139
+ treeColumn: {
140
+ readonly type: PropType<string | undefined>;
141
+ readonly default: undefined;
142
+ };
143
+ keepAliveDetail: {
144
+ readonly type: BooleanConstructor;
145
+ readonly default: false;
146
+ };
147
+ virtual: {
148
+ readonly type: PropType<boolean | import("@vueye-table/headless").ComponentVirtualOptions>;
149
+ readonly default: false;
150
+ };
151
+ height: {
152
+ readonly type: PropType<string | undefined>;
153
+ readonly default: undefined;
154
+ };
155
+ rowHeight: {
156
+ readonly type: NumberConstructor;
157
+ readonly default: 40;
158
+ };
159
+ overscan: {
160
+ readonly type: NumberConstructor;
161
+ readonly default: 5;
162
+ };
163
+ virtualColumns: {
164
+ readonly type: BooleanConstructor;
165
+ readonly default: false;
166
+ };
167
+ columnWidth: {
168
+ readonly type: NumberConstructor;
169
+ readonly default: 120;
170
+ };
107
171
  table: {
108
172
  type: PropType<AnyDataTableBinding>;
109
173
  required: true;
@@ -116,19 +180,96 @@ declare const VtTable: import("vue").DefineComponent<import("vue").ExtractPropTy
116
180
  stickyHeader: boolean;
117
181
  loading: boolean;
118
182
  theme: "light" | "dark" | undefined;
183
+ treeColumn: string | undefined;
184
+ keepAliveDetail: boolean;
185
+ virtual: boolean | import("@vueye-table/headless").ComponentVirtualOptions;
186
+ height: string | undefined;
187
+ rowHeight: number;
188
+ overscan: number;
189
+ virtualColumns: boolean;
190
+ columnWidth: number;
119
191
  }, SlotsType<{
120
192
  default?: (props: {
121
193
  table: DataTableBinding<unknown>;
122
194
  }) => VNode[];
195
+ expanded?: (props: DetailSlotProps) => VNodeChild;
123
196
  }>, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
124
197
  /** The styled body, with the empty state in a full-width row. */
125
- declare const VtBody: import("vue").DefineComponent<{}, () => VNode<import("vue").RendererNode, import("vue").RendererElement, {
198
+ declare const VtBody: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
199
+ treeColumn: {
200
+ type: PropType<string | undefined>;
201
+ default: undefined;
202
+ };
203
+ virtual: {
204
+ readonly type: PropType<boolean | import("@vueye-table/headless").ComponentVirtualOptions>;
205
+ readonly default: false;
206
+ };
207
+ height: {
208
+ readonly type: PropType<string | undefined>;
209
+ readonly default: undefined;
210
+ };
211
+ rowHeight: {
212
+ readonly type: NumberConstructor;
213
+ readonly default: 40;
214
+ };
215
+ overscan: {
216
+ readonly type: NumberConstructor;
217
+ readonly default: 5;
218
+ };
219
+ virtualColumns: {
220
+ readonly type: BooleanConstructor;
221
+ readonly default: false;
222
+ };
223
+ columnWidth: {
224
+ readonly type: NumberConstructor;
225
+ readonly default: 120;
226
+ };
227
+ }>, () => VNode<import("vue").RendererNode, import("vue").RendererElement, {
126
228
  [key: string]: any;
127
- }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, SlotsType<{
229
+ }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
230
+ treeColumn: {
231
+ type: PropType<string | undefined>;
232
+ default: undefined;
233
+ };
234
+ virtual: {
235
+ readonly type: PropType<boolean | import("@vueye-table/headless").ComponentVirtualOptions>;
236
+ readonly default: false;
237
+ };
238
+ height: {
239
+ readonly type: PropType<string | undefined>;
240
+ readonly default: undefined;
241
+ };
242
+ rowHeight: {
243
+ readonly type: NumberConstructor;
244
+ readonly default: 40;
245
+ };
246
+ overscan: {
247
+ readonly type: NumberConstructor;
248
+ readonly default: 5;
249
+ };
250
+ virtualColumns: {
251
+ readonly type: BooleanConstructor;
252
+ readonly default: false;
253
+ };
254
+ columnWidth: {
255
+ readonly type: NumberConstructor;
256
+ readonly default: 120;
257
+ };
258
+ }>> & Readonly<{}>, {
259
+ treeColumn: string | undefined;
260
+ virtual: boolean | import("@vueye-table/headless").ComponentVirtualOptions;
261
+ height: string | undefined;
262
+ rowHeight: number;
263
+ overscan: number;
264
+ virtualColumns: boolean;
265
+ columnWidth: number;
266
+ }, SlotsType<{
128
267
  default?: (props: {
129
268
  rows: readonly TableRow<unknown>[];
130
269
  }) => VNode[];
131
270
  empty?: () => VNode[];
271
+ detail?: (props: DetailSlotProps) => VNodeChild;
272
+ row?: (props: DetailSlotProps) => VNodeChild;
132
273
  }>, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
133
274
  /** The default empty state. */
134
275
  declare const VtEmpty: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
@@ -245,14 +386,160 @@ declare const VtStatus: import("vue").DefineComponent<import("vue").ExtractPropT
245
386
  };
246
387
  }>> & Readonly<{}>, {
247
388
  as: string;
389
+ }, SlotsType<{
390
+ default?: (props: import("@vueye-table/headless").TableStatusSlotProps) => VNode[];
391
+ }>, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
392
+ declare const VtLoadMore: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
393
+ label: {
394
+ type: StringConstructor;
395
+ default: string;
396
+ };
397
+ retryLabel: {
398
+ type: StringConstructor;
399
+ default: string;
400
+ };
401
+ loadingLabel: {
402
+ type: StringConstructor;
403
+ default: string;
404
+ };
405
+ }>, () => VNode<import("vue").RendererNode, import("vue").RendererElement, {
406
+ [key: string]: any;
407
+ }> | null, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
408
+ label: {
409
+ type: StringConstructor;
410
+ default: string;
411
+ };
412
+ retryLabel: {
413
+ type: StringConstructor;
414
+ default: string;
415
+ };
416
+ loadingLabel: {
417
+ type: StringConstructor;
418
+ default: string;
419
+ };
420
+ }>> & Readonly<{}>, {
421
+ label: string;
422
+ retryLabel: string;
423
+ loadingLabel: string;
424
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
425
+ declare const VtDetailRow: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
426
+ row: {
427
+ readonly type: PropType<TableRow<unknown>>;
428
+ readonly required: true;
429
+ };
430
+ colspan: {
431
+ type: NumberConstructor;
432
+ default: undefined;
433
+ };
434
+ hidden: {
435
+ type: BooleanConstructor;
436
+ default: boolean;
437
+ };
438
+ keepAlive: {
439
+ type: PropType<boolean | undefined>;
440
+ default: undefined;
441
+ };
442
+ }>, () => VNode<import("vue").RendererNode, import("vue").RendererElement, {
443
+ [key: string]: any;
444
+ }> | null, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
445
+ row: {
446
+ readonly type: PropType<TableRow<unknown>>;
447
+ readonly required: true;
448
+ };
449
+ colspan: {
450
+ type: NumberConstructor;
451
+ default: undefined;
452
+ };
453
+ hidden: {
454
+ type: BooleanConstructor;
455
+ default: boolean;
456
+ };
457
+ keepAlive: {
458
+ type: PropType<boolean | undefined>;
459
+ default: undefined;
460
+ };
461
+ }>> & Readonly<{}>, {
462
+ colspan: number;
463
+ hidden: boolean;
464
+ keepAlive: boolean | undefined;
248
465
  }, SlotsType<{
249
466
  default?: (props: {
250
- start: number;
251
- end: number;
252
- rowCount: number;
253
- totalRowCount: number;
254
- selectedCount: number;
255
- }) => VNode[];
467
+ row: TableRow<unknown>;
468
+ }) => VNodeChild;
469
+ }>, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
470
+ declare const VtExpandToggle: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
471
+ readonly row: {
472
+ readonly type: PropType<TableRow<unknown>>;
473
+ readonly required: true;
474
+ };
475
+ readonly controls: {
476
+ readonly type: PropType<string | undefined>;
477
+ readonly default: undefined;
478
+ };
479
+ readonly expandLabel: {
480
+ readonly type: StringConstructor;
481
+ readonly default: "Expand row";
482
+ };
483
+ readonly collapseLabel: {
484
+ readonly type: StringConstructor;
485
+ readonly default: "Collapse row";
486
+ };
487
+ }>, () => VNode<import("vue").RendererNode, import("vue").RendererElement, {
488
+ [key: string]: any;
489
+ }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
490
+ readonly row: {
491
+ readonly type: PropType<TableRow<unknown>>;
492
+ readonly required: true;
493
+ };
494
+ readonly controls: {
495
+ readonly type: PropType<string | undefined>;
496
+ readonly default: undefined;
497
+ };
498
+ readonly expandLabel: {
499
+ readonly type: StringConstructor;
500
+ readonly default: "Expand row";
501
+ };
502
+ readonly collapseLabel: {
503
+ readonly type: StringConstructor;
504
+ readonly default: "Collapse row";
505
+ };
506
+ }>> & Readonly<{}>, {
507
+ readonly controls: string | undefined;
508
+ readonly expandLabel: string;
509
+ readonly collapseLabel: string;
510
+ }, SlotsType<{
511
+ default?: (props: {
512
+ row: TableRow<unknown>;
513
+ expanded: boolean;
514
+ }) => VNodeChild;
515
+ }>, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
516
+ declare const VtTreeCell: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
517
+ readonly row: {
518
+ readonly type: PropType<TableRow<unknown>>;
519
+ readonly required: true;
520
+ };
521
+ readonly as: {
522
+ readonly type: StringConstructor;
523
+ readonly default: string;
524
+ };
525
+ }>, () => VNode<import("vue").RendererNode, import("vue").RendererElement, {
526
+ [key: string]: any;
527
+ }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
528
+ readonly row: {
529
+ readonly type: PropType<TableRow<unknown>>;
530
+ readonly required: true;
531
+ };
532
+ readonly as: {
533
+ readonly type: StringConstructor;
534
+ readonly default: string;
535
+ };
536
+ }>> & Readonly<{}>, {
537
+ readonly as: string;
538
+ }, SlotsType<{
539
+ default?: () => VNodeChild;
540
+ toggle?: (props: {
541
+ row: TableRow<unknown>;
542
+ }) => VNodeChild;
256
543
  }>, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
257
544
  /** A horizontal bar for controls above or below a table. */
258
545
  declare const VtToolbar: import("vue").DefineComponent<{}, () => VNode<import("vue").RendererNode, import("vue").RendererElement, {
@@ -260,11 +547,114 @@ declare const VtToolbar: import("vue").DefineComponent<{}, () => VNode<import("v
260
547
  }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, SlotsType<{
261
548
  default?: () => VNode[];
262
549
  }>, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
550
+ declare const VtCellEditor: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
551
+ readonly editor: {
552
+ readonly type: PropType<CellEditorSlotProps>;
553
+ readonly required: true;
554
+ };
555
+ readonly spec: {
556
+ readonly type: PropType<import("@vueye-table/core").EditorSpec>;
557
+ readonly default: () => {
558
+ kind: string;
559
+ };
560
+ };
561
+ readonly finish: {
562
+ readonly type: PropType<((direction?: "up" | "down" | "left" | "right") => void) | undefined>;
563
+ readonly default: undefined;
564
+ };
565
+ readonly autofocus: {
566
+ readonly type: BooleanConstructor;
567
+ readonly default: true;
568
+ };
569
+ readonly blurCommit: {
570
+ readonly type: BooleanConstructor;
571
+ readonly default: true;
572
+ };
573
+ readonly tabCommit: {
574
+ readonly type: BooleanConstructor;
575
+ readonly default: true;
576
+ };
577
+ }>, () => VNode<import("vue").RendererNode, import("vue").RendererElement, {
578
+ [key: string]: any;
579
+ }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
580
+ readonly editor: {
581
+ readonly type: PropType<CellEditorSlotProps>;
582
+ readonly required: true;
583
+ };
584
+ readonly spec: {
585
+ readonly type: PropType<import("@vueye-table/core").EditorSpec>;
586
+ readonly default: () => {
587
+ kind: string;
588
+ };
589
+ };
590
+ readonly finish: {
591
+ readonly type: PropType<((direction?: "up" | "down" | "left" | "right") => void) | undefined>;
592
+ readonly default: undefined;
593
+ };
594
+ readonly autofocus: {
595
+ readonly type: BooleanConstructor;
596
+ readonly default: true;
597
+ };
598
+ readonly blurCommit: {
599
+ readonly type: BooleanConstructor;
600
+ readonly default: true;
601
+ };
602
+ readonly tabCommit: {
603
+ readonly type: BooleanConstructor;
604
+ readonly default: true;
605
+ };
606
+ }>> & Readonly<{}>, {
607
+ readonly spec: import("@vueye-table/core").EditorSpec;
608
+ readonly finish: ((direction?: "up" | "down" | "left" | "right") => void) | undefined;
609
+ readonly autofocus: boolean;
610
+ readonly blurCommit: boolean;
611
+ readonly tabCommit: boolean;
612
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
613
+ declare const VtRowActions: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
614
+ row: {
615
+ readonly type: PropType<TableRow<unknown>>;
616
+ readonly required: true;
617
+ };
618
+ editable: {
619
+ type: BooleanConstructor;
620
+ default: boolean;
621
+ };
622
+ removable: {
623
+ type: BooleanConstructor;
624
+ default: boolean;
625
+ };
626
+ }>, () => VNode<import("vue").RendererNode, import("vue").RendererElement, {
627
+ [key: string]: any;
628
+ }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
629
+ row: {
630
+ readonly type: PropType<TableRow<unknown>>;
631
+ readonly required: true;
632
+ };
633
+ editable: {
634
+ type: BooleanConstructor;
635
+ default: boolean;
636
+ };
637
+ removable: {
638
+ type: BooleanConstructor;
639
+ default: boolean;
640
+ };
641
+ }>> & Readonly<{}>, {
642
+ editable: boolean;
643
+ removable: boolean;
644
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
263
645
  /**
264
646
  * The styled spreadsheet grid, with optional row numbers and A, B, C column letters. A
265
647
  * `cell.<column id>` slot draws that column's cells while they are not being edited.
266
648
  */
267
649
  declare const VtGrid: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
650
+ rowActions: {
651
+ type: BooleanConstructor;
652
+ default: boolean;
653
+ };
654
+ removable: {
655
+ type: BooleanConstructor;
656
+ default: boolean;
657
+ };
268
658
  density: {
269
659
  readonly type: PropType<Density>;
270
660
  readonly default: "comfortable";
@@ -293,6 +683,38 @@ declare const VtGrid: import("vue").DefineComponent<import("vue").ExtractPropTyp
293
683
  readonly type: PropType<"light" | "dark" | undefined>;
294
684
  readonly default: undefined;
295
685
  };
686
+ treeColumn: {
687
+ readonly type: PropType<string | undefined>;
688
+ readonly default: undefined;
689
+ };
690
+ keepAliveDetail: {
691
+ readonly type: BooleanConstructor;
692
+ readonly default: false;
693
+ };
694
+ virtual: {
695
+ readonly type: PropType<boolean | import("@vueye-table/headless").ComponentVirtualOptions>;
696
+ readonly default: false;
697
+ };
698
+ height: {
699
+ readonly type: PropType<string | undefined>;
700
+ readonly default: undefined;
701
+ };
702
+ rowHeight: {
703
+ readonly type: NumberConstructor;
704
+ readonly default: 40;
705
+ };
706
+ overscan: {
707
+ readonly type: NumberConstructor;
708
+ readonly default: 5;
709
+ };
710
+ virtualColumns: {
711
+ readonly type: BooleanConstructor;
712
+ readonly default: false;
713
+ };
714
+ columnWidth: {
715
+ readonly type: NumberConstructor;
716
+ readonly default: 120;
717
+ };
296
718
  table: {
297
719
  type: PropType<AnyDataTableBinding>;
298
720
  required: true;
@@ -311,7 +733,18 @@ declare const VtGrid: import("vue").DefineComponent<import("vue").ExtractPropTyp
311
733
  };
312
734
  }>, () => VNode<import("vue").RendererNode, import("vue").RendererElement, {
313
735
  [key: string]: any;
314
- }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
736
+ }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
737
+ save: (_result: unknown) => true;
738
+ cancel: (_key: unknown) => true;
739
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
740
+ rowActions: {
741
+ type: BooleanConstructor;
742
+ default: boolean;
743
+ };
744
+ removable: {
745
+ type: BooleanConstructor;
746
+ default: boolean;
747
+ };
315
748
  density: {
316
749
  readonly type: PropType<Density>;
317
750
  readonly default: "comfortable";
@@ -340,6 +773,38 @@ declare const VtGrid: import("vue").DefineComponent<import("vue").ExtractPropTyp
340
773
  readonly type: PropType<"light" | "dark" | undefined>;
341
774
  readonly default: undefined;
342
775
  };
776
+ treeColumn: {
777
+ readonly type: PropType<string | undefined>;
778
+ readonly default: undefined;
779
+ };
780
+ keepAliveDetail: {
781
+ readonly type: BooleanConstructor;
782
+ readonly default: false;
783
+ };
784
+ virtual: {
785
+ readonly type: PropType<boolean | import("@vueye-table/headless").ComponentVirtualOptions>;
786
+ readonly default: false;
787
+ };
788
+ height: {
789
+ readonly type: PropType<string | undefined>;
790
+ readonly default: undefined;
791
+ };
792
+ rowHeight: {
793
+ readonly type: NumberConstructor;
794
+ readonly default: 40;
795
+ };
796
+ overscan: {
797
+ readonly type: NumberConstructor;
798
+ readonly default: 5;
799
+ };
800
+ virtualColumns: {
801
+ readonly type: BooleanConstructor;
802
+ readonly default: false;
803
+ };
804
+ columnWidth: {
805
+ readonly type: NumberConstructor;
806
+ readonly default: 120;
807
+ };
343
808
  table: {
344
809
  type: PropType<AnyDataTableBinding>;
345
810
  required: true;
@@ -356,7 +821,10 @@ declare const VtGrid: import("vue").DefineComponent<import("vue").ExtractPropTyp
356
821
  type: BooleanConstructor;
357
822
  default: boolean;
358
823
  };
359
- }>> & Readonly<{}>, {
824
+ }>> & Readonly<{
825
+ onCancel?: (_key: unknown) => any;
826
+ onSave?: (_result: unknown) => any;
827
+ }>, {
360
828
  label: string | undefined;
361
829
  density: Density;
362
830
  striped: boolean;
@@ -365,12 +833,24 @@ declare const VtGrid: import("vue").DefineComponent<import("vue").ExtractPropTyp
365
833
  stickyHeader: boolean;
366
834
  loading: boolean;
367
835
  theme: "light" | "dark" | undefined;
836
+ treeColumn: string | undefined;
837
+ keepAliveDetail: boolean;
838
+ virtual: boolean | import("@vueye-table/headless").ComponentVirtualOptions;
839
+ height: string | undefined;
840
+ rowHeight: number;
841
+ overscan: number;
842
+ virtualColumns: boolean;
843
+ columnWidth: number;
844
+ removable: boolean;
368
845
  rowNumbers: boolean;
369
846
  columnLetters: boolean;
847
+ rowActions: boolean;
370
848
  }, SlotsType<{
371
849
  [key: `cell.${string}`]: GridCellSlotProps;
850
+ [key: `editor.${string}`]: CellEditorSlotProps;
372
851
  } & {
373
852
  default?: (props: Record<string, unknown>) => VNode[];
853
+ expanded?: (props: DetailSlotProps) => VNodeChild;
374
854
  }>, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
375
855
  //#endregion
376
856
  //#region src/icons.d.ts
@@ -381,6 +861,8 @@ declare const paths: {
381
861
  readonly search: "M11 19a8 8 0 1 1 0-16 8 8 0 0 1 0 16zm10 2-4.35-4.35";
382
862
  readonly columns: "M4 4h6v16H4zM14 4h6v16h-6z";
383
863
  readonly empty: "M3 7h18M3 12h18M3 17h10";
864
+ readonly expand: "M9 5l7 7-7 7";
865
+ readonly collapse: "M5 9l7 7 7-7";
384
866
  };
385
867
  type IconName = keyof typeof paths;
386
868
  /** A 24-pixel stroke icon that inherits the text color. */
@@ -393,5 +875,5 @@ declare function icon(name: IconName, className?: string): VNode;
393
875
  */
394
876
  declare function withClass<TComponent extends Component>(component: TComponent, className: string, name: string): TComponent;
395
877
  //#endregion
396
- export { type Density, type IconName, VtBody, VtColumnVisibility, VtEmpty, VtGrid, VtHeader, VtPageSize, VtPagination, VtSearch, VtSortIndicator, VtStatus, VtTable, VtToolbar, icon, withClass };
878
+ export { type Density, type IconName, VtBody, VtCellEditor, VtColumnVisibility, VtDetailRow, VtEmpty, VtExpandToggle, VtGrid, VtHeader, VtLoadMore, VtPageSize, VtPagination, VtRowActions, VtSearch, VtSortIndicator, VtStatus, VtTable, VtToolbar, VtTreeCell, icon, withClass };
397
879
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","names":[],"sources":["../src/components.ts","../src/icons.ts","../src/with-class.ts"],"mappings":";;;;;KA8BY;;cAqCC,+BAAe,8BAAA;;IAEO,MAAA,SAAS;;;;;;;IAAT,MAAA,SAAS;;;;;qCAW1C;;cAGW,wBAAQ,0BAAA,oBAAA,4BAAA;;;GAIoB,2BAAA;IACjC,QAAQ;IACR,MAAM;IACN,aAAa;QACT;;EAEG,eAAM;EACP,cAAM;EACL,UAAC;IAAS,QAAQ;QAA2B;kCAoC1D;;;;;cAMW,uBAAO,8BAAA;;aAvGS,MAAA,SAAS;;;;;;;;;;;;;;;;;;;;;;;;aAOX,MAAA;;;;IAsGE,MAAA,SAAS;;;;;;;aA7GT,MAAA,SAAS;;;;;;;;;;;;;;;;;;;;;;;;aAOX,MAAA;;;;IAsGE,MAAA,SAAS;;;;;;;;;;;;EAHxB,WAAC;IAAS,OAAO;QAAgC;kCAqB7D;;cAGW,sBAAM,0BAAA,oBAAA,4BAAA;;;EAGL,WAAC;IAAS,eAAe;QAA0B;EACrD,cAAM;kCAahB;;cAGW,uBAAO,8BAAA;;;;;;;;;;;;;;;EAEqB,gBAAM;kCAS7C;;cAGW,wBAAQ,0BAAA,oBAAA,4BAAA;;8BAMnB,qCAAA,iDAAA,aAAA,eAAA,oDAAA;;cAGW,0BAAU,8BAAA;;IAGO,MAAA;;;;;;;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