vueye-table 3.0.0-alpha.8 → 3.0.0-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { CellChange, RowKey, TableIssue, TableRow, TableState } from "@vueye-table/core";
2
- import { GridCellSlotProps, TableStatusSlotProps } from "@vueye-table/headless";
1
+ import { CellChange, EditResult, RowKey, TableIssue, TableRow, TableState } from "@vueye-table/core";
2
+ import { CellEditorSlotProps, DetailSlotProps, GridCellSlotProps, TableStatusSlotProps } from "@vueye-table/headless";
3
3
  import { Plugin, PropType, SlotsType, VNode } from "vue";
4
4
  export * from "@vueye-table/core";
5
5
  export * from "@vueye-table/headless";
@@ -52,6 +52,46 @@ declare const VueyeGrid: import("vue").DefineComponent<import("vue").ExtractProp
52
52
  type: BooleanConstructor;
53
53
  default: boolean;
54
54
  };
55
+ rowCanExpand: {
56
+ readonly type: PropType<((row: any) => boolean) | undefined>;
57
+ readonly default: undefined;
58
+ };
59
+ expandMode: {
60
+ readonly type: PropType<import("@vueye-table/core").ExpandMode>;
61
+ readonly default: "multiple";
62
+ };
63
+ expanded: {
64
+ readonly type: PropType<import("@vueye-table/core").ExpandedState | undefined>;
65
+ readonly default: undefined;
66
+ };
67
+ getChildren: {
68
+ readonly type: PropType<import("@vueye-table/core").TreeOptions<any>["getChildren"]>;
69
+ readonly default: undefined;
70
+ };
71
+ setChildren: {
72
+ readonly type: PropType<import("@vueye-table/core").TreeOptions<any>["setChildren"]>;
73
+ readonly default: undefined;
74
+ };
75
+ getParentKey: {
76
+ readonly type: PropType<import("@vueye-table/core").TreeOptions<any>["getParentKey"]>;
77
+ readonly default: undefined;
78
+ };
79
+ hasChildren: {
80
+ readonly type: PropType<import("@vueye-table/core").TreeOptions<any>["hasChildren"]>;
81
+ readonly default: undefined;
82
+ };
83
+ loadChildren: {
84
+ readonly type: PropType<import("@vueye-table/core").TreeOptions<any, AbortSignal>["loadChildren"]>;
85
+ readonly default: undefined;
86
+ };
87
+ treeFilter: {
88
+ readonly type: PropType<import("@vueye-table/core").TreeOptions<unknown>["treeFilter"]>;
89
+ readonly default: undefined;
90
+ };
91
+ paginateBy: {
92
+ readonly type: PropType<import("@vueye-table/core").TreeOptions<unknown>["paginateBy"]>;
93
+ readonly default: undefined;
94
+ };
55
95
  source: {
56
96
  readonly type: PropType<import("@vueye-table/vue").TableSource<unknown> | undefined>;
57
97
  readonly default: undefined;
@@ -156,6 +196,14 @@ declare const VueyeGrid: import("vue").DefineComponent<import("vue").ExtractProp
156
196
  readonly type: PropType<import("@vueye-table/core").SelectScope>;
157
197
  readonly default: "all";
158
198
  };
199
+ treeColumn: {
200
+ readonly type: PropType<string | undefined>;
201
+ readonly default: undefined;
202
+ };
203
+ keepAliveDetail: {
204
+ readonly type: BooleanConstructor;
205
+ readonly default: false;
206
+ };
159
207
  virtual: {
160
208
  readonly type: PropType<boolean | import("@vueye-table/headless").ComponentVirtualOptions>;
161
209
  readonly default: false;
@@ -180,6 +228,30 @@ declare const VueyeGrid: import("vue").DefineComponent<import("vue").ExtractProp
180
228
  readonly type: NumberConstructor;
181
229
  readonly default: 120;
182
230
  };
231
+ validateRow: {
232
+ readonly type: PropType<import("@vueye-table/core").TableOptions<any>["validateRow"]>;
233
+ readonly default: undefined;
234
+ };
235
+ asyncValidation: {
236
+ readonly type: PropType<"held" | "optimistic" | undefined>;
237
+ readonly default: undefined;
238
+ };
239
+ createRow: {
240
+ readonly type: PropType<(() => any) | undefined>;
241
+ readonly default: undefined;
242
+ };
243
+ setParentKey: {
244
+ readonly type: PropType<import("@vueye-table/core").TableOptions<any>["setParentKey"]>;
245
+ readonly default: undefined;
246
+ };
247
+ addRow: {
248
+ readonly type: BooleanConstructor;
249
+ readonly default: false;
250
+ };
251
+ removeRows: {
252
+ readonly type: BooleanConstructor;
253
+ readonly default: false;
254
+ };
183
255
  data: {
184
256
  type: PropType<readonly unknown[]>;
185
257
  default: () => never[];
@@ -194,12 +266,22 @@ declare const VueyeGrid: import("vue").DefineComponent<import("vue").ExtractProp
194
266
  "update:filters": null;
195
267
  "update:hiddenColumns": null;
196
268
  "update:selected": null;
269
+ "update:expanded": null;
270
+ } & {
271
+ "update:data": (_data: readonly unknown[]) => boolean;
272
+ edit: (_changes: readonly CellChange<unknown>[]) => boolean;
273
+ save: (_result: EditResult<unknown>) => boolean;
274
+ cancel: (_key: import("@vueye-table/core").RowKey) => boolean;
275
+ "edit-issues": (_issues: readonly TableIssue[]) => boolean;
276
+ "edit-error": (_issues: readonly TableIssue[]) => boolean;
197
277
  } & {
198
278
  "state-change": (state: TableState) => boolean;
199
279
  "update:data": (data: readonly unknown[]) => boolean;
200
280
  edit: (changes: readonly CellChange<unknown>[]) => boolean;
201
281
  "edit-error": (issues: readonly TableIssue[]) => boolean;
202
282
  export: (csv: string) => boolean;
283
+ expand: (item: unknown, row: TableRow<unknown>) => boolean;
284
+ collapse: (item: unknown, row: TableRow<unknown>) => boolean;
203
285
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
204
286
  searchable: {
205
287
  type: BooleanConstructor;
@@ -236,6 +318,46 @@ declare const VueyeGrid: import("vue").DefineComponent<import("vue").ExtractProp
236
318
  type: BooleanConstructor;
237
319
  default: boolean;
238
320
  };
321
+ rowCanExpand: {
322
+ readonly type: PropType<((row: any) => boolean) | undefined>;
323
+ readonly default: undefined;
324
+ };
325
+ expandMode: {
326
+ readonly type: PropType<import("@vueye-table/core").ExpandMode>;
327
+ readonly default: "multiple";
328
+ };
329
+ expanded: {
330
+ readonly type: PropType<import("@vueye-table/core").ExpandedState | undefined>;
331
+ readonly default: undefined;
332
+ };
333
+ getChildren: {
334
+ readonly type: PropType<import("@vueye-table/core").TreeOptions<any>["getChildren"]>;
335
+ readonly default: undefined;
336
+ };
337
+ setChildren: {
338
+ readonly type: PropType<import("@vueye-table/core").TreeOptions<any>["setChildren"]>;
339
+ readonly default: undefined;
340
+ };
341
+ getParentKey: {
342
+ readonly type: PropType<import("@vueye-table/core").TreeOptions<any>["getParentKey"]>;
343
+ readonly default: undefined;
344
+ };
345
+ hasChildren: {
346
+ readonly type: PropType<import("@vueye-table/core").TreeOptions<any>["hasChildren"]>;
347
+ readonly default: undefined;
348
+ };
349
+ loadChildren: {
350
+ readonly type: PropType<import("@vueye-table/core").TreeOptions<any, AbortSignal>["loadChildren"]>;
351
+ readonly default: undefined;
352
+ };
353
+ treeFilter: {
354
+ readonly type: PropType<import("@vueye-table/core").TreeOptions<unknown>["treeFilter"]>;
355
+ readonly default: undefined;
356
+ };
357
+ paginateBy: {
358
+ readonly type: PropType<import("@vueye-table/core").TreeOptions<unknown>["paginateBy"]>;
359
+ readonly default: undefined;
360
+ };
239
361
  source: {
240
362
  readonly type: PropType<import("@vueye-table/vue").TableSource<unknown> | undefined>;
241
363
  readonly default: undefined;
@@ -340,6 +462,14 @@ declare const VueyeGrid: import("vue").DefineComponent<import("vue").ExtractProp
340
462
  readonly type: PropType<import("@vueye-table/core").SelectScope>;
341
463
  readonly default: "all";
342
464
  };
465
+ treeColumn: {
466
+ readonly type: PropType<string | undefined>;
467
+ readonly default: undefined;
468
+ };
469
+ keepAliveDetail: {
470
+ readonly type: BooleanConstructor;
471
+ readonly default: false;
472
+ };
343
473
  virtual: {
344
474
  readonly type: PropType<boolean | import("@vueye-table/headless").ComponentVirtualOptions>;
345
475
  readonly default: false;
@@ -364,6 +494,30 @@ declare const VueyeGrid: import("vue").DefineComponent<import("vue").ExtractProp
364
494
  readonly type: NumberConstructor;
365
495
  readonly default: 120;
366
496
  };
497
+ validateRow: {
498
+ readonly type: PropType<import("@vueye-table/core").TableOptions<any>["validateRow"]>;
499
+ readonly default: undefined;
500
+ };
501
+ asyncValidation: {
502
+ readonly type: PropType<"held" | "optimistic" | undefined>;
503
+ readonly default: undefined;
504
+ };
505
+ createRow: {
506
+ readonly type: PropType<(() => any) | undefined>;
507
+ readonly default: undefined;
508
+ };
509
+ setParentKey: {
510
+ readonly type: PropType<import("@vueye-table/core").TableOptions<any>["setParentKey"]>;
511
+ readonly default: undefined;
512
+ };
513
+ addRow: {
514
+ readonly type: BooleanConstructor;
515
+ readonly default: false;
516
+ };
517
+ removeRows: {
518
+ readonly type: BooleanConstructor;
519
+ readonly default: false;
520
+ };
367
521
  data: {
368
522
  type: PropType<readonly unknown[]>;
369
523
  default: () => never[];
@@ -376,22 +530,32 @@ declare const VueyeGrid: import("vue").DefineComponent<import("vue").ExtractProp
376
530
  "onUpdate:filters"?: (...args: any[]) => any;
377
531
  "onUpdate:hiddenColumns"?: (...args: any[]) => any;
378
532
  "onUpdate:selected"?: (...args: any[]) => any;
533
+ "onUpdate:expanded"?: (...args: any[]) => any;
534
+ "onUpdate:data"?: (_data: readonly unknown[]) => any;
535
+ onEdit?: (_changes: readonly CellChange<unknown>[]) => any;
536
+ onSave?: (_result: EditResult<unknown>) => any;
537
+ onCancel?: (_key: import("@vueye-table/core").RowKey) => any;
538
+ "onEdit-issues"?: (_issues: readonly TableIssue[]) => any;
539
+ "onEdit-error"?: (_issues: readonly TableIssue[]) => any;
379
540
  "onState-change"?: (state: TableState) => any;
380
- "onUpdate:data"?: (data: readonly unknown[]) => any;
381
- onEdit?: (changes: readonly CellChange<unknown>[]) => any;
382
- "onEdit-error"?: (issues: readonly TableIssue[]) => any;
541
+ onExpand?: (item: unknown, row: TableRow<unknown>) => any;
542
+ onCollapse?: (item: unknown, row: TableRow<unknown>) => any;
383
543
  onExport?: (csv: string) => any;
384
544
  }>, {
545
+ validateRow: ((next: any, previous: any) => import("@vueye-table/core").ValidationResult | Promise<import("@vueye-table/core").ValidationResult>) | undefined;
546
+ setParentKey: ((row: any, parent: import("@vueye-table/core").RowKey | undefined) => any) | undefined;
547
+ getChildren: ((row: any) => readonly any[] | undefined) | undefined;
548
+ setChildren: ((row: any, children: readonly any[]) => any) | undefined;
549
+ getParentKey: ((row: any) => import("@vueye-table/core").RowKey | null | undefined) | undefined;
550
+ hasChildren: ((row: any) => boolean) | undefined;
551
+ loadChildren: ((row: TableRow<any>, signal: AbortSignal) => Promise<readonly any[]>) | undefined;
552
+ treeFilter: import("@vueye-table/core").TreeFilter | undefined;
553
+ paginateBy: import("@vueye-table/core").TreePagination | undefined;
385
554
  page: number;
386
555
  data: readonly unknown[];
387
- searchable: boolean;
388
- columnToggle: boolean;
389
- pagination: boolean;
390
- editable: boolean;
391
- rowNumbers: boolean;
392
- columnLetters: boolean;
393
- label: string;
394
- toolbar: boolean;
556
+ rowCanExpand: ((row: any) => boolean) | undefined;
557
+ expandMode: import("@vueye-table/core").ExpandMode;
558
+ expanded: import("@vueye-table/core").ExpandedState | undefined;
395
559
  source: import("@vueye-table/vue").TableSource<unknown> | undefined;
396
560
  loadMore: import("@vueye-table/vue").LoadMore<unknown> | undefined;
397
561
  endThreshold: number;
@@ -409,7 +573,10 @@ declare const VueyeGrid: import("vue").DefineComponent<import("vue").ExtractProp
409
573
  stickyHeader: boolean;
410
574
  theme: "light" | "dark";
411
575
  maxHeight: string;
576
+ searchable: boolean;
412
577
  searchPlaceholder: string;
578
+ columnToggle: boolean;
579
+ pagination: boolean;
413
580
  pageSizeOptions: readonly number[];
414
581
  pageSize: number;
415
582
  sorting: readonly import("@vueye-table/core").SortRule[];
@@ -417,19 +584,32 @@ declare const VueyeGrid: import("vue").DefineComponent<import("vue").ExtractProp
417
584
  filters: Readonly<Record<string, unknown>>;
418
585
  hiddenColumns: readonly string[];
419
586
  selectScope: import("@vueye-table/core").SelectScope;
587
+ treeColumn: string | undefined;
588
+ keepAliveDetail: boolean;
420
589
  virtual: boolean | import("@vueye-table/headless").ComponentVirtualOptions;
421
590
  height: string | undefined;
422
591
  rowHeight: number;
423
592
  overscan: number;
424
593
  virtualColumns: boolean;
425
594
  columnWidth: number;
595
+ asyncValidation: "held" | "optimistic" | undefined;
596
+ createRow: (() => any) | undefined;
597
+ addRow: boolean;
598
+ removeRows: boolean;
599
+ toolbar: boolean;
600
+ label: string;
601
+ editable: boolean;
602
+ rowNumbers: boolean;
603
+ columnLetters: boolean;
426
604
  }, SlotsType<{
427
605
  [key: `cell.${string}`]: GridCellSlotProps & {
428
606
  readonly item: unknown;
429
607
  };
608
+ [key: `editor.${string}`]: CellEditorSlotProps;
430
609
  } & {
431
610
  default?: (props: Record<string, unknown>) => VNode[];
432
611
  status?: (props: TableStatusSlotProps) => VNode[];
612
+ expanded?: (props: DetailSlotProps) => VNode[];
433
613
  }>, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
434
614
  //#endregion
435
615
  //#region src/vueye-table.d.ts
@@ -452,6 +632,10 @@ type StatusSlotProps = TableStatusSlotProps;
452
632
  * `v-model`, and `manual` hands searching, sorting, and paging to a server.
453
633
  */
454
634
  declare const VueyeTable: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
635
+ editMode: {
636
+ type: PropType<"cell" | "row" | undefined>;
637
+ default: undefined;
638
+ };
455
639
  /** `true` or `"multiple"` for checkboxes, `"single"` for one row at a time. */
456
640
  selectable: {
457
641
  type: PropType<boolean | "single" | "multiple">;
@@ -467,6 +651,46 @@ declare const VueyeTable: import("vue").DefineComponent<import("vue").ExtractPro
467
651
  type: StringConstructor;
468
652
  default: string;
469
653
  };
654
+ rowCanExpand: {
655
+ readonly type: PropType<((row: any) => boolean) | undefined>;
656
+ readonly default: undefined;
657
+ };
658
+ expandMode: {
659
+ readonly type: PropType<import("@vueye-table/core").ExpandMode>;
660
+ readonly default: "multiple";
661
+ };
662
+ expanded: {
663
+ readonly type: PropType<import("@vueye-table/core").ExpandedState | undefined>;
664
+ readonly default: undefined;
665
+ };
666
+ getChildren: {
667
+ readonly type: PropType<import("@vueye-table/core").TreeOptions<any>["getChildren"]>;
668
+ readonly default: undefined;
669
+ };
670
+ setChildren: {
671
+ readonly type: PropType<import("@vueye-table/core").TreeOptions<any>["setChildren"]>;
672
+ readonly default: undefined;
673
+ };
674
+ getParentKey: {
675
+ readonly type: PropType<import("@vueye-table/core").TreeOptions<any>["getParentKey"]>;
676
+ readonly default: undefined;
677
+ };
678
+ hasChildren: {
679
+ readonly type: PropType<import("@vueye-table/core").TreeOptions<any>["hasChildren"]>;
680
+ readonly default: undefined;
681
+ };
682
+ loadChildren: {
683
+ readonly type: PropType<import("@vueye-table/core").TreeOptions<any, AbortSignal>["loadChildren"]>;
684
+ readonly default: undefined;
685
+ };
686
+ treeFilter: {
687
+ readonly type: PropType<import("@vueye-table/core").TreeOptions<unknown>["treeFilter"]>;
688
+ readonly default: undefined;
689
+ };
690
+ paginateBy: {
691
+ readonly type: PropType<import("@vueye-table/core").TreeOptions<unknown>["paginateBy"]>;
692
+ readonly default: undefined;
693
+ };
470
694
  source: {
471
695
  readonly type: PropType<import("@vueye-table/vue").TableSource<unknown> | undefined>;
472
696
  readonly default: undefined;
@@ -583,6 +807,14 @@ declare const VueyeTable: import("vue").DefineComponent<import("vue").ExtractPro
583
807
  readonly type: PropType<import("@vueye-table/core").SelectScope>;
584
808
  readonly default: "all";
585
809
  };
810
+ treeColumn: {
811
+ readonly type: PropType<string | undefined>;
812
+ readonly default: undefined;
813
+ };
814
+ keepAliveDetail: {
815
+ readonly type: BooleanConstructor;
816
+ readonly default: false;
817
+ };
586
818
  virtual: {
587
819
  readonly type: PropType<boolean | import("@vueye-table/headless").ComponentVirtualOptions>;
588
820
  readonly default: false;
@@ -607,6 +839,30 @@ declare const VueyeTable: import("vue").DefineComponent<import("vue").ExtractPro
607
839
  readonly type: NumberConstructor;
608
840
  readonly default: 120;
609
841
  };
842
+ validateRow: {
843
+ readonly type: PropType<import("@vueye-table/core").TableOptions<any>["validateRow"]>;
844
+ readonly default: undefined;
845
+ };
846
+ asyncValidation: {
847
+ readonly type: PropType<"held" | "optimistic" | undefined>;
848
+ readonly default: undefined;
849
+ };
850
+ createRow: {
851
+ readonly type: PropType<(() => any) | undefined>;
852
+ readonly default: undefined;
853
+ };
854
+ setParentKey: {
855
+ readonly type: PropType<import("@vueye-table/core").TableOptions<any>["setParentKey"]>;
856
+ readonly default: undefined;
857
+ };
858
+ addRow: {
859
+ readonly type: BooleanConstructor;
860
+ readonly default: false;
861
+ };
862
+ removeRows: {
863
+ readonly type: BooleanConstructor;
864
+ readonly default: false;
865
+ };
610
866
  data: {
611
867
  type: PropType<readonly unknown[]>;
612
868
  default: () => never[];
@@ -621,10 +877,24 @@ declare const VueyeTable: import("vue").DefineComponent<import("vue").ExtractPro
621
877
  "update:filters": null;
622
878
  "update:hiddenColumns": null;
623
879
  "update:selected": null;
880
+ "update:expanded": null;
881
+ } & {
882
+ "update:data": (_data: readonly unknown[]) => boolean;
883
+ edit: (_changes: readonly import("@vueye-table/core").CellChange<unknown>[]) => boolean;
884
+ save: (_result: EditResult<unknown>) => boolean;
885
+ cancel: (_key: RowKey) => boolean;
886
+ "edit-issues": (_issues: readonly import("@vueye-table/core").TableIssue[]) => boolean;
887
+ "edit-error": (_issues: readonly import("@vueye-table/core").TableIssue[]) => boolean;
624
888
  } & {
625
889
  "state-change": (state: TableState) => boolean;
626
890
  "row-click": (item: unknown, row: TableRow<unknown>) => boolean;
891
+ expand: (item: unknown, row: TableRow<unknown>) => boolean;
892
+ collapse: (item: unknown, row: TableRow<unknown>) => boolean;
627
893
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
894
+ editMode: {
895
+ type: PropType<"cell" | "row" | undefined>;
896
+ default: undefined;
897
+ };
628
898
  /** `true` or `"multiple"` for checkboxes, `"single"` for one row at a time. */
629
899
  selectable: {
630
900
  type: PropType<boolean | "single" | "multiple">;
@@ -640,6 +910,46 @@ declare const VueyeTable: import("vue").DefineComponent<import("vue").ExtractPro
640
910
  type: StringConstructor;
641
911
  default: string;
642
912
  };
913
+ rowCanExpand: {
914
+ readonly type: PropType<((row: any) => boolean) | undefined>;
915
+ readonly default: undefined;
916
+ };
917
+ expandMode: {
918
+ readonly type: PropType<import("@vueye-table/core").ExpandMode>;
919
+ readonly default: "multiple";
920
+ };
921
+ expanded: {
922
+ readonly type: PropType<import("@vueye-table/core").ExpandedState | undefined>;
923
+ readonly default: undefined;
924
+ };
925
+ getChildren: {
926
+ readonly type: PropType<import("@vueye-table/core").TreeOptions<any>["getChildren"]>;
927
+ readonly default: undefined;
928
+ };
929
+ setChildren: {
930
+ readonly type: PropType<import("@vueye-table/core").TreeOptions<any>["setChildren"]>;
931
+ readonly default: undefined;
932
+ };
933
+ getParentKey: {
934
+ readonly type: PropType<import("@vueye-table/core").TreeOptions<any>["getParentKey"]>;
935
+ readonly default: undefined;
936
+ };
937
+ hasChildren: {
938
+ readonly type: PropType<import("@vueye-table/core").TreeOptions<any>["hasChildren"]>;
939
+ readonly default: undefined;
940
+ };
941
+ loadChildren: {
942
+ readonly type: PropType<import("@vueye-table/core").TreeOptions<any, AbortSignal>["loadChildren"]>;
943
+ readonly default: undefined;
944
+ };
945
+ treeFilter: {
946
+ readonly type: PropType<import("@vueye-table/core").TreeOptions<unknown>["treeFilter"]>;
947
+ readonly default: undefined;
948
+ };
949
+ paginateBy: {
950
+ readonly type: PropType<import("@vueye-table/core").TreeOptions<unknown>["paginateBy"]>;
951
+ readonly default: undefined;
952
+ };
643
953
  source: {
644
954
  readonly type: PropType<import("@vueye-table/vue").TableSource<unknown> | undefined>;
645
955
  readonly default: undefined;
@@ -756,6 +1066,14 @@ declare const VueyeTable: import("vue").DefineComponent<import("vue").ExtractPro
756
1066
  readonly type: PropType<import("@vueye-table/core").SelectScope>;
757
1067
  readonly default: "all";
758
1068
  };
1069
+ treeColumn: {
1070
+ readonly type: PropType<string | undefined>;
1071
+ readonly default: undefined;
1072
+ };
1073
+ keepAliveDetail: {
1074
+ readonly type: BooleanConstructor;
1075
+ readonly default: false;
1076
+ };
759
1077
  virtual: {
760
1078
  readonly type: PropType<boolean | import("@vueye-table/headless").ComponentVirtualOptions>;
761
1079
  readonly default: false;
@@ -780,6 +1098,30 @@ declare const VueyeTable: import("vue").DefineComponent<import("vue").ExtractPro
780
1098
  readonly type: NumberConstructor;
781
1099
  readonly default: 120;
782
1100
  };
1101
+ validateRow: {
1102
+ readonly type: PropType<import("@vueye-table/core").TableOptions<any>["validateRow"]>;
1103
+ readonly default: undefined;
1104
+ };
1105
+ asyncValidation: {
1106
+ readonly type: PropType<"held" | "optimistic" | undefined>;
1107
+ readonly default: undefined;
1108
+ };
1109
+ createRow: {
1110
+ readonly type: PropType<(() => any) | undefined>;
1111
+ readonly default: undefined;
1112
+ };
1113
+ setParentKey: {
1114
+ readonly type: PropType<import("@vueye-table/core").TableOptions<any>["setParentKey"]>;
1115
+ readonly default: undefined;
1116
+ };
1117
+ addRow: {
1118
+ readonly type: BooleanConstructor;
1119
+ readonly default: false;
1120
+ };
1121
+ removeRows: {
1122
+ readonly type: BooleanConstructor;
1123
+ readonly default: false;
1124
+ };
783
1125
  data: {
784
1126
  type: PropType<readonly unknown[]>;
785
1127
  default: () => never[];
@@ -792,14 +1134,36 @@ declare const VueyeTable: import("vue").DefineComponent<import("vue").ExtractPro
792
1134
  "onUpdate:filters"?: (...args: any[]) => any;
793
1135
  "onUpdate:hiddenColumns"?: (...args: any[]) => any;
794
1136
  "onUpdate:selected"?: (...args: any[]) => any;
1137
+ "onUpdate:expanded"?: (...args: any[]) => any;
1138
+ "onUpdate:data"?: (_data: readonly unknown[]) => any;
1139
+ onEdit?: (_changes: readonly import("@vueye-table/core").CellChange<unknown>[]) => any;
1140
+ onSave?: (_result: EditResult<unknown>) => any;
1141
+ onCancel?: (_key: RowKey) => any;
1142
+ "onEdit-issues"?: (_issues: readonly import("@vueye-table/core").TableIssue[]) => any;
1143
+ "onEdit-error"?: (_issues: readonly import("@vueye-table/core").TableIssue[]) => any;
795
1144
  "onState-change"?: (state: TableState) => any;
796
1145
  "onRow-click"?: (item: unknown, row: TableRow<unknown>) => any;
1146
+ onExpand?: (item: unknown, row: TableRow<unknown>) => any;
1147
+ onCollapse?: (item: unknown, row: TableRow<unknown>) => any;
797
1148
  }>, {
1149
+ validateRow: ((next: any, previous: any) => import("@vueye-table/core").ValidationResult | Promise<import("@vueye-table/core").ValidationResult>) | undefined;
1150
+ setParentKey: ((row: any, parent: RowKey | undefined) => any) | undefined;
1151
+ getChildren: ((row: any) => readonly any[] | undefined) | undefined;
1152
+ setChildren: ((row: any, children: readonly any[]) => any) | undefined;
1153
+ getParentKey: ((row: any) => RowKey | null | undefined) | undefined;
1154
+ hasChildren: ((row: any) => boolean) | undefined;
1155
+ loadChildren: ((row: TableRow<any>, signal: AbortSignal) => Promise<readonly any[]>) | undefined;
1156
+ treeFilter: import("@vueye-table/core").TreeFilter | undefined;
1157
+ paginateBy: import("@vueye-table/core").TreePagination | undefined;
798
1158
  page: number;
799
1159
  data: readonly unknown[];
800
- searchable: boolean;
801
- columnToggle: boolean;
802
- pagination: boolean;
1160
+ editMode: "row" | "cell" | undefined;
1161
+ selectable: boolean | "single" | "multiple";
1162
+ selected: readonly RowKey[];
1163
+ loadingText: string;
1164
+ rowCanExpand: ((row: any) => boolean) | undefined;
1165
+ expandMode: import("@vueye-table/core").ExpandMode;
1166
+ expanded: import("@vueye-table/core").ExpandedState | undefined;
803
1167
  source: import("@vueye-table/vue").TableSource<unknown> | undefined;
804
1168
  loadMore: import("@vueye-table/vue").LoadMore<unknown> | undefined;
805
1169
  endThreshold: number;
@@ -817,7 +1181,10 @@ declare const VueyeTable: import("vue").DefineComponent<import("vue").ExtractPro
817
1181
  stickyHeader: boolean;
818
1182
  theme: "light" | "dark";
819
1183
  maxHeight: string;
1184
+ searchable: boolean;
820
1185
  searchPlaceholder: string;
1186
+ columnToggle: boolean;
1187
+ pagination: boolean;
821
1188
  pageSizeOptions: readonly number[];
822
1189
  pageSize: number;
823
1190
  sorting: readonly import("@vueye-table/core").SortRule[];
@@ -825,17 +1192,21 @@ declare const VueyeTable: import("vue").DefineComponent<import("vue").ExtractPro
825
1192
  filters: Readonly<Record<string, unknown>>;
826
1193
  hiddenColumns: readonly string[];
827
1194
  selectScope: import("@vueye-table/core").SelectScope;
1195
+ treeColumn: string | undefined;
1196
+ keepAliveDetail: boolean;
828
1197
  virtual: boolean | import("@vueye-table/headless").ComponentVirtualOptions;
829
1198
  height: string | undefined;
830
1199
  rowHeight: number;
831
1200
  overscan: number;
832
1201
  virtualColumns: boolean;
833
1202
  columnWidth: number;
834
- selected: readonly RowKey[];
835
- selectable: boolean | "single" | "multiple";
836
- loadingText: string;
1203
+ asyncValidation: "held" | "optimistic" | undefined;
1204
+ createRow: (() => any) | undefined;
1205
+ addRow: boolean;
1206
+ removeRows: boolean;
837
1207
  }, SlotsType<{
838
1208
  [key: `cell.${string}`]: CellSlotProps;
1209
+ [key: `editor.${string}`]: CellEditorSlotProps;
839
1210
  [key: `header.${string}`]: {
840
1211
  column: {
841
1212
  id: string;
@@ -852,6 +1223,7 @@ declare const VueyeTable: import("vue").DefineComponent<import("vue").ExtractPro
852
1223
  table: unknown;
853
1224
  };
854
1225
  status: StatusSlotProps;
1226
+ expanded: DetailSlotProps;
855
1227
  }>, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
856
1228
  //#endregion
857
1229
  //#region src/index.d.ts
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","names":[],"sources":["../src/plugin.ts","../src/vueye-grid.ts","../src/vueye-table.ts","../src/index.ts"],"mappings":";;;;;;;;;cAMa,kBAAkB;;;;;;;;;cCsBlB,yBAAS,8BAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IASK,MAAA;;;;;;;;;;;;;;EAsBP,iBAAC,OAAO;EACT,gBAAC;EACV,OAAC,kBAAkB;EACX,eAAC,iBAAiB;EACxB,SAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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