@vueye-table/headless 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 +515 -17
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +961 -142
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { AnyDataTableBinding, DataGridBinding, DataTableBinding, VirtualBinding, VirtualColumnItem, VirtualRowItem } from "@vueye-table/vue";
|
|
2
|
-
import { PropType, SlotsType, VNode, VNodeChild } from "vue";
|
|
3
|
-
import {
|
|
1
|
+
import { AnyDataTableBinding, DataGridBinding, DataTableBinding, RowDraft, VirtualBinding, VirtualColumnItem, VirtualRowItem } from "@vueye-table/vue";
|
|
2
|
+
import { PropType, SlotsType, VNode, VNodeChild, shallowRef } from "vue";
|
|
3
|
+
import { EditResult, EditorSpec, LoadState, PageItem, RowKey, SelectionCoverage, SortInfo, TableColumn, TableIssue, TableRow } from "@vueye-table/core";
|
|
4
4
|
//#region src/controls.d.ts
|
|
5
5
|
/**
|
|
6
6
|
* Selects or clears every row in the table's select-all scope. It shows the indeterminate state
|
|
@@ -56,6 +56,7 @@ declare const DataTableSelectRow: import("vue").DefineComponent<import("vue").Ex
|
|
|
56
56
|
}, SlotsType<{
|
|
57
57
|
default?: (props: {
|
|
58
58
|
selected: boolean;
|
|
59
|
+
indeterminate: boolean;
|
|
59
60
|
toggle: () => void;
|
|
60
61
|
}) => VNode[];
|
|
61
62
|
}>, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -209,6 +210,8 @@ interface TableStatusSlotProps {
|
|
|
209
210
|
readonly canLoadMore: boolean;
|
|
210
211
|
readonly retry: () => void;
|
|
211
212
|
readonly loadNext: () => Promise<void>;
|
|
213
|
+
readonly loadingChildrenCount: number;
|
|
214
|
+
readonly childErrorCount: number;
|
|
212
215
|
}
|
|
213
216
|
declare const DataTableStatus: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
214
217
|
as: {
|
|
@@ -264,6 +267,255 @@ declare const DataTableLoadMore: import("vue").DefineComponent<import("vue").Ext
|
|
|
264
267
|
loadingLabel: string;
|
|
265
268
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
266
269
|
//#endregion
|
|
270
|
+
//#region src/editor.d.ts
|
|
271
|
+
/** Shared by native editors and application-owned editor slots. */
|
|
272
|
+
interface CellEditorSlotProps {
|
|
273
|
+
readonly row: TableRow<unknown>;
|
|
274
|
+
readonly column: TableColumn<unknown>;
|
|
275
|
+
readonly value: unknown;
|
|
276
|
+
readonly draft: string;
|
|
277
|
+
readonly spec: EditorSpec;
|
|
278
|
+
readonly finish: (direction?: "up" | "down" | "left" | "right") => void;
|
|
279
|
+
readonly input: (text: string) => void;
|
|
280
|
+
/** Alias retained for existing headless grid slots. */
|
|
281
|
+
readonly update: (text: string) => void;
|
|
282
|
+
/** Strings pass through parse; typed values use core's value-edit path. */
|
|
283
|
+
readonly commit: (value?: unknown) => EditResult<unknown> | Promise<EditResult<unknown>> | undefined;
|
|
284
|
+
readonly cancel: () => void;
|
|
285
|
+
readonly issues: readonly TableIssue[];
|
|
286
|
+
readonly pending: boolean;
|
|
287
|
+
/** Bind to a custom field to associate its validation message. */
|
|
288
|
+
readonly attrs: Readonly<Record<string, string | undefined>>;
|
|
289
|
+
}
|
|
290
|
+
declare const cellEditorProps: {
|
|
291
|
+
readonly editor: {
|
|
292
|
+
readonly type: PropType<CellEditorSlotProps>;
|
|
293
|
+
readonly required: true;
|
|
294
|
+
};
|
|
295
|
+
readonly spec: {
|
|
296
|
+
readonly type: PropType<EditorSpec>;
|
|
297
|
+
readonly default: () => {
|
|
298
|
+
kind: string;
|
|
299
|
+
};
|
|
300
|
+
};
|
|
301
|
+
/** Keyboard movement is owned by the surrounding cell. */
|
|
302
|
+
readonly finish: {
|
|
303
|
+
readonly type: PropType<((direction?: "up" | "down" | "left" | "right") => void) | undefined>;
|
|
304
|
+
readonly default: undefined;
|
|
305
|
+
};
|
|
306
|
+
readonly autofocus: {
|
|
307
|
+
readonly type: BooleanConstructor;
|
|
308
|
+
readonly default: true;
|
|
309
|
+
};
|
|
310
|
+
readonly blurCommit: {
|
|
311
|
+
readonly type: BooleanConstructor;
|
|
312
|
+
readonly default: true;
|
|
313
|
+
};
|
|
314
|
+
readonly tabCommit: {
|
|
315
|
+
readonly type: BooleanConstructor;
|
|
316
|
+
readonly default: true;
|
|
317
|
+
};
|
|
318
|
+
};
|
|
319
|
+
/** Plain native fields. Select results are searched and capped at 50 mounted options. */
|
|
320
|
+
declare const DataCellEditor: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
321
|
+
readonly editor: {
|
|
322
|
+
readonly type: PropType<CellEditorSlotProps>;
|
|
323
|
+
readonly required: true;
|
|
324
|
+
};
|
|
325
|
+
readonly spec: {
|
|
326
|
+
readonly type: PropType<EditorSpec>;
|
|
327
|
+
readonly default: () => {
|
|
328
|
+
kind: string;
|
|
329
|
+
};
|
|
330
|
+
};
|
|
331
|
+
/** Keyboard movement is owned by the surrounding cell. */
|
|
332
|
+
readonly finish: {
|
|
333
|
+
readonly type: PropType<((direction?: "up" | "down" | "left" | "right") => void) | undefined>;
|
|
334
|
+
readonly default: undefined;
|
|
335
|
+
};
|
|
336
|
+
readonly autofocus: {
|
|
337
|
+
readonly type: BooleanConstructor;
|
|
338
|
+
readonly default: true;
|
|
339
|
+
};
|
|
340
|
+
readonly blurCommit: {
|
|
341
|
+
readonly type: BooleanConstructor;
|
|
342
|
+
readonly default: true;
|
|
343
|
+
};
|
|
344
|
+
readonly tabCommit: {
|
|
345
|
+
readonly type: BooleanConstructor;
|
|
346
|
+
readonly default: true;
|
|
347
|
+
};
|
|
348
|
+
}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
349
|
+
[key: string]: any;
|
|
350
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
351
|
+
readonly editor: {
|
|
352
|
+
readonly type: PropType<CellEditorSlotProps>;
|
|
353
|
+
readonly required: true;
|
|
354
|
+
};
|
|
355
|
+
readonly spec: {
|
|
356
|
+
readonly type: PropType<EditorSpec>;
|
|
357
|
+
readonly default: () => {
|
|
358
|
+
kind: string;
|
|
359
|
+
};
|
|
360
|
+
};
|
|
361
|
+
/** Keyboard movement is owned by the surrounding cell. */
|
|
362
|
+
readonly finish: {
|
|
363
|
+
readonly type: PropType<((direction?: "up" | "down" | "left" | "right") => void) | undefined>;
|
|
364
|
+
readonly default: undefined;
|
|
365
|
+
};
|
|
366
|
+
readonly autofocus: {
|
|
367
|
+
readonly type: BooleanConstructor;
|
|
368
|
+
readonly default: true;
|
|
369
|
+
};
|
|
370
|
+
readonly blurCommit: {
|
|
371
|
+
readonly type: BooleanConstructor;
|
|
372
|
+
readonly default: true;
|
|
373
|
+
};
|
|
374
|
+
readonly tabCommit: {
|
|
375
|
+
readonly type: BooleanConstructor;
|
|
376
|
+
readonly default: true;
|
|
377
|
+
};
|
|
378
|
+
}>> & Readonly<{}>, {
|
|
379
|
+
readonly spec: EditorSpec;
|
|
380
|
+
readonly finish: ((direction?: "up" | "down" | "left" | "right") => void) | undefined;
|
|
381
|
+
readonly autofocus: boolean;
|
|
382
|
+
readonly blurCommit: boolean;
|
|
383
|
+
readonly tabCommit: boolean;
|
|
384
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
385
|
+
//#endregion
|
|
386
|
+
//#region src/shared.d.ts
|
|
387
|
+
/** Columns of any row type; callbacks on a column make `TableColumn<unknown>` too narrow. */
|
|
388
|
+
type AnyTableColumn = TableColumn<any>;
|
|
389
|
+
//#endregion
|
|
390
|
+
//#region src/editing.d.ts
|
|
391
|
+
interface EditingContext {
|
|
392
|
+
readonly grid: DataGridBinding<unknown>;
|
|
393
|
+
readonly mode: "cell" | "row";
|
|
394
|
+
readonly draft: RowDraft<unknown> | undefined;
|
|
395
|
+
start(row: TableRow<unknown>): void;
|
|
396
|
+
save(): Promise<EditResult<unknown> | undefined>;
|
|
397
|
+
cancel(key: RowKey): void;
|
|
398
|
+
}
|
|
399
|
+
/** Renderless provider for editable data-table cells and row forms. */
|
|
400
|
+
declare const DataTableEditRoot: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
401
|
+
table: {
|
|
402
|
+
type: PropType<AnyDataTableBinding>;
|
|
403
|
+
required: true;
|
|
404
|
+
};
|
|
405
|
+
mode: {
|
|
406
|
+
type: PropType<"cell" | "row">;
|
|
407
|
+
default: string;
|
|
408
|
+
};
|
|
409
|
+
}>, () => VNodeChild, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
410
|
+
save: (_result: EditResult<unknown>) => true;
|
|
411
|
+
cancel: (_key: RowKey) => true;
|
|
412
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
413
|
+
table: {
|
|
414
|
+
type: PropType<AnyDataTableBinding>;
|
|
415
|
+
required: true;
|
|
416
|
+
};
|
|
417
|
+
mode: {
|
|
418
|
+
type: PropType<"cell" | "row">;
|
|
419
|
+
default: string;
|
|
420
|
+
};
|
|
421
|
+
}>> & Readonly<{
|
|
422
|
+
onCancel?: (_key: RowKey) => any;
|
|
423
|
+
onSave?: (_result: EditResult<unknown>) => any;
|
|
424
|
+
}>, {
|
|
425
|
+
mode: "row" | "cell";
|
|
426
|
+
}, SlotsType<{
|
|
427
|
+
default?: (props: {
|
|
428
|
+
editing: EditingContext;
|
|
429
|
+
}) => VNodeChild;
|
|
430
|
+
}>, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
431
|
+
/** A cell with on-demand editing; row mode shares one draft and one save operation. */
|
|
432
|
+
declare const DataTableEditCell: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
433
|
+
row: {
|
|
434
|
+
readonly type: PropType<TableRow<unknown>>;
|
|
435
|
+
readonly required: true;
|
|
436
|
+
};
|
|
437
|
+
column: {
|
|
438
|
+
readonly type: PropType<AnyTableColumn>;
|
|
439
|
+
readonly required: true;
|
|
440
|
+
};
|
|
441
|
+
rowIndex: {
|
|
442
|
+
type: PropType<number | undefined>;
|
|
443
|
+
default: undefined;
|
|
444
|
+
};
|
|
445
|
+
tree: {
|
|
446
|
+
type: BooleanConstructor;
|
|
447
|
+
default: boolean;
|
|
448
|
+
};
|
|
449
|
+
}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
450
|
+
[key: string]: any;
|
|
451
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
452
|
+
save: (_result: EditResult<unknown>) => true;
|
|
453
|
+
cancel: (_key: RowKey) => true;
|
|
454
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
455
|
+
row: {
|
|
456
|
+
readonly type: PropType<TableRow<unknown>>;
|
|
457
|
+
readonly required: true;
|
|
458
|
+
};
|
|
459
|
+
column: {
|
|
460
|
+
readonly type: PropType<AnyTableColumn>;
|
|
461
|
+
readonly required: true;
|
|
462
|
+
};
|
|
463
|
+
rowIndex: {
|
|
464
|
+
type: PropType<number | undefined>;
|
|
465
|
+
default: undefined;
|
|
466
|
+
};
|
|
467
|
+
tree: {
|
|
468
|
+
type: BooleanConstructor;
|
|
469
|
+
default: boolean;
|
|
470
|
+
};
|
|
471
|
+
}>> & Readonly<{
|
|
472
|
+
onCancel?: (_key: RowKey) => any;
|
|
473
|
+
onSave?: (_result: EditResult<unknown>) => any;
|
|
474
|
+
}>, {
|
|
475
|
+
rowIndex: number | undefined;
|
|
476
|
+
tree: boolean;
|
|
477
|
+
}, SlotsType<{
|
|
478
|
+
default?: (props: {
|
|
479
|
+
row: TableRow<unknown>;
|
|
480
|
+
value: unknown;
|
|
481
|
+
display: string;
|
|
482
|
+
}) => VNodeChild;
|
|
483
|
+
editor?: (props: CellEditorSlotProps) => VNodeChild;
|
|
484
|
+
}>, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
485
|
+
/** One active row form. Controls share the provider's draft and core save/undo path. */
|
|
486
|
+
declare const DataTableRowActions: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
487
|
+
row: {
|
|
488
|
+
readonly type: PropType<TableRow<unknown>>;
|
|
489
|
+
readonly required: true;
|
|
490
|
+
};
|
|
491
|
+
editable: {
|
|
492
|
+
type: BooleanConstructor;
|
|
493
|
+
default: boolean;
|
|
494
|
+
};
|
|
495
|
+
removable: {
|
|
496
|
+
type: BooleanConstructor;
|
|
497
|
+
default: boolean;
|
|
498
|
+
};
|
|
499
|
+
}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
500
|
+
[key: string]: any;
|
|
501
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
502
|
+
row: {
|
|
503
|
+
readonly type: PropType<TableRow<unknown>>;
|
|
504
|
+
readonly required: true;
|
|
505
|
+
};
|
|
506
|
+
editable: {
|
|
507
|
+
type: BooleanConstructor;
|
|
508
|
+
default: boolean;
|
|
509
|
+
};
|
|
510
|
+
removable: {
|
|
511
|
+
type: BooleanConstructor;
|
|
512
|
+
default: boolean;
|
|
513
|
+
};
|
|
514
|
+
}>> & Readonly<{}>, {
|
|
515
|
+
editable: boolean;
|
|
516
|
+
removable: boolean;
|
|
517
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
518
|
+
//#endregion
|
|
267
519
|
//#region src/virtual.d.ts
|
|
268
520
|
interface ComponentVirtualOptions {
|
|
269
521
|
readonly rowHeight?: number | ((index: number) => number) | undefined;
|
|
@@ -336,9 +588,170 @@ declare const DataTableViewport: import("vue").DefineComponent<import("vue").Ext
|
|
|
336
588
|
default?: () => VNode[];
|
|
337
589
|
}>, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
338
590
|
//#endregion
|
|
339
|
-
//#region src/
|
|
340
|
-
|
|
341
|
-
|
|
591
|
+
//#region src/hierarchy.d.ts
|
|
592
|
+
declare const hierarchyProps: {
|
|
593
|
+
readonly treeColumn: {
|
|
594
|
+
readonly type: PropType<string | undefined>;
|
|
595
|
+
readonly default: undefined;
|
|
596
|
+
};
|
|
597
|
+
readonly keepAliveDetail: {
|
|
598
|
+
readonly type: BooleanConstructor;
|
|
599
|
+
readonly default: false;
|
|
600
|
+
};
|
|
601
|
+
};
|
|
602
|
+
declare function resolveTreeColumn(table: AnyDataTableBinding, column?: string): string | undefined;
|
|
603
|
+
declare const expandToggleProps: {
|
|
604
|
+
readonly row: {
|
|
605
|
+
readonly type: PropType<TableRow<unknown>>;
|
|
606
|
+
readonly required: true;
|
|
607
|
+
};
|
|
608
|
+
readonly controls: {
|
|
609
|
+
readonly type: PropType<string | undefined>;
|
|
610
|
+
readonly default: undefined;
|
|
611
|
+
};
|
|
612
|
+
readonly expandLabel: {
|
|
613
|
+
readonly type: StringConstructor;
|
|
614
|
+
readonly default: "Expand row";
|
|
615
|
+
};
|
|
616
|
+
readonly collapseLabel: {
|
|
617
|
+
readonly type: StringConstructor;
|
|
618
|
+
readonly default: "Collapse row";
|
|
619
|
+
};
|
|
620
|
+
};
|
|
621
|
+
declare const treeCellProps: {
|
|
622
|
+
readonly row: {
|
|
623
|
+
readonly type: PropType<TableRow<unknown>>;
|
|
624
|
+
readonly required: true;
|
|
625
|
+
};
|
|
626
|
+
readonly as: {
|
|
627
|
+
readonly type: StringConstructor;
|
|
628
|
+
readonly default: string;
|
|
629
|
+
};
|
|
630
|
+
};
|
|
631
|
+
declare const DataTableExpandToggle: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
632
|
+
readonly row: {
|
|
633
|
+
readonly type: PropType<TableRow<unknown>>;
|
|
634
|
+
readonly required: true;
|
|
635
|
+
};
|
|
636
|
+
readonly controls: {
|
|
637
|
+
readonly type: PropType<string | undefined>;
|
|
638
|
+
readonly default: undefined;
|
|
639
|
+
};
|
|
640
|
+
readonly expandLabel: {
|
|
641
|
+
readonly type: StringConstructor;
|
|
642
|
+
readonly default: "Expand row";
|
|
643
|
+
};
|
|
644
|
+
readonly collapseLabel: {
|
|
645
|
+
readonly type: StringConstructor;
|
|
646
|
+
readonly default: "Collapse row";
|
|
647
|
+
};
|
|
648
|
+
}>, () => VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
649
|
+
[key: string]: any;
|
|
650
|
+
}> | null, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
651
|
+
readonly row: {
|
|
652
|
+
readonly type: PropType<TableRow<unknown>>;
|
|
653
|
+
readonly required: true;
|
|
654
|
+
};
|
|
655
|
+
readonly controls: {
|
|
656
|
+
readonly type: PropType<string | undefined>;
|
|
657
|
+
readonly default: undefined;
|
|
658
|
+
};
|
|
659
|
+
readonly expandLabel: {
|
|
660
|
+
readonly type: StringConstructor;
|
|
661
|
+
readonly default: "Expand row";
|
|
662
|
+
};
|
|
663
|
+
readonly collapseLabel: {
|
|
664
|
+
readonly type: StringConstructor;
|
|
665
|
+
readonly default: "Collapse row";
|
|
666
|
+
};
|
|
667
|
+
}>> & Readonly<{}>, {
|
|
668
|
+
readonly controls: string | undefined;
|
|
669
|
+
readonly expandLabel: string;
|
|
670
|
+
readonly collapseLabel: string;
|
|
671
|
+
}, SlotsType<{
|
|
672
|
+
default?: (props: {
|
|
673
|
+
row: TableRow<unknown>;
|
|
674
|
+
expanded: boolean;
|
|
675
|
+
}) => VNodeChild;
|
|
676
|
+
}>, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
677
|
+
declare const DataTableTreeCell: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
678
|
+
readonly row: {
|
|
679
|
+
readonly type: PropType<TableRow<unknown>>;
|
|
680
|
+
readonly required: true;
|
|
681
|
+
};
|
|
682
|
+
readonly as: {
|
|
683
|
+
readonly type: StringConstructor;
|
|
684
|
+
readonly default: string;
|
|
685
|
+
};
|
|
686
|
+
}>, () => VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
687
|
+
[key: string]: any;
|
|
688
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
689
|
+
readonly row: {
|
|
690
|
+
readonly type: PropType<TableRow<unknown>>;
|
|
691
|
+
readonly required: true;
|
|
692
|
+
};
|
|
693
|
+
readonly as: {
|
|
694
|
+
readonly type: StringConstructor;
|
|
695
|
+
readonly default: string;
|
|
696
|
+
};
|
|
697
|
+
}>> & Readonly<{}>, {
|
|
698
|
+
readonly as: string;
|
|
699
|
+
}, SlotsType<{
|
|
700
|
+
default?: () => VNodeChild;
|
|
701
|
+
toggle?: (props: {
|
|
702
|
+
row: TableRow<unknown>;
|
|
703
|
+
}) => VNodeChild;
|
|
704
|
+
}>, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
705
|
+
/** One full-width detail; retained collapsed content remains hidden and unmeasured. */
|
|
706
|
+
declare const DataTableDetailRow: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
707
|
+
row: {
|
|
708
|
+
readonly type: PropType<TableRow<unknown>>;
|
|
709
|
+
readonly required: true;
|
|
710
|
+
};
|
|
711
|
+
colspan: {
|
|
712
|
+
type: NumberConstructor;
|
|
713
|
+
default: undefined;
|
|
714
|
+
};
|
|
715
|
+
hidden: {
|
|
716
|
+
type: BooleanConstructor;
|
|
717
|
+
default: boolean;
|
|
718
|
+
};
|
|
719
|
+
keepAlive: {
|
|
720
|
+
type: PropType<boolean | undefined>;
|
|
721
|
+
default: undefined;
|
|
722
|
+
};
|
|
723
|
+
}>, () => VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
724
|
+
[key: string]: any;
|
|
725
|
+
}> | null, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
726
|
+
row: {
|
|
727
|
+
readonly type: PropType<TableRow<unknown>>;
|
|
728
|
+
readonly required: true;
|
|
729
|
+
};
|
|
730
|
+
colspan: {
|
|
731
|
+
type: NumberConstructor;
|
|
732
|
+
default: undefined;
|
|
733
|
+
};
|
|
734
|
+
hidden: {
|
|
735
|
+
type: BooleanConstructor;
|
|
736
|
+
default: boolean;
|
|
737
|
+
};
|
|
738
|
+
keepAlive: {
|
|
739
|
+
type: PropType<boolean | undefined>;
|
|
740
|
+
default: undefined;
|
|
741
|
+
};
|
|
742
|
+
}>> & Readonly<{}>, {
|
|
743
|
+
colspan: number;
|
|
744
|
+
hidden: boolean;
|
|
745
|
+
keepAlive: boolean | undefined;
|
|
746
|
+
}, SlotsType<{
|
|
747
|
+
default?: (props: {
|
|
748
|
+
row: TableRow<unknown>;
|
|
749
|
+
}) => VNodeChild;
|
|
750
|
+
}>, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
751
|
+
interface DetailSlotProps {
|
|
752
|
+
readonly row: TableRow<unknown>;
|
|
753
|
+
readonly rowIndex: number;
|
|
754
|
+
}
|
|
342
755
|
//#endregion
|
|
343
756
|
//#region src/grid.d.ts
|
|
344
757
|
declare function cellId(gridId: string, row: number, column: number): string;
|
|
@@ -353,6 +766,18 @@ declare const DataGridRoot: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
353
766
|
type: NumberConstructor;
|
|
354
767
|
default: number;
|
|
355
768
|
};
|
|
769
|
+
leadingColumns: {
|
|
770
|
+
readonly type: NumberConstructor;
|
|
771
|
+
readonly default: 0;
|
|
772
|
+
};
|
|
773
|
+
treeColumn: {
|
|
774
|
+
readonly type: PropType<string | undefined>;
|
|
775
|
+
readonly default: undefined;
|
|
776
|
+
};
|
|
777
|
+
keepAliveDetail: {
|
|
778
|
+
readonly type: BooleanConstructor;
|
|
779
|
+
readonly default: false;
|
|
780
|
+
};
|
|
356
781
|
virtual: {
|
|
357
782
|
readonly type: PropType<boolean | ComponentVirtualOptions>;
|
|
358
783
|
readonly default: false;
|
|
@@ -391,12 +816,27 @@ declare const DataGridRoot: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
391
816
|
};
|
|
392
817
|
}>, () => VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
393
818
|
[key: string]: any;
|
|
394
|
-
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
819
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
820
|
+
save: (_result: unknown) => true;
|
|
821
|
+
cancel: (_key: string | number) => true;
|
|
822
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
395
823
|
/** Width reserved before data columns, for a row-number/header column. */
|
|
396
824
|
gutter: {
|
|
397
825
|
type: NumberConstructor;
|
|
398
826
|
default: number;
|
|
399
827
|
};
|
|
828
|
+
leadingColumns: {
|
|
829
|
+
readonly type: NumberConstructor;
|
|
830
|
+
readonly default: 0;
|
|
831
|
+
};
|
|
832
|
+
treeColumn: {
|
|
833
|
+
readonly type: PropType<string | undefined>;
|
|
834
|
+
readonly default: undefined;
|
|
835
|
+
};
|
|
836
|
+
keepAliveDetail: {
|
|
837
|
+
readonly type: BooleanConstructor;
|
|
838
|
+
readonly default: false;
|
|
839
|
+
};
|
|
400
840
|
virtual: {
|
|
401
841
|
readonly type: PropType<boolean | ComponentVirtualOptions>;
|
|
402
842
|
readonly default: false;
|
|
@@ -433,12 +873,18 @@ declare const DataGridRoot: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
433
873
|
type: PropType<string | undefined>;
|
|
434
874
|
default: undefined;
|
|
435
875
|
};
|
|
436
|
-
}>> & Readonly<{
|
|
876
|
+
}>> & Readonly<{
|
|
877
|
+
onCancel?: (_key: string | number) => any;
|
|
878
|
+
onSave?: (_result: unknown) => any;
|
|
879
|
+
}>, {
|
|
437
880
|
as: string;
|
|
438
881
|
height: string | undefined;
|
|
439
882
|
label: string | undefined;
|
|
440
883
|
virtualColumns: boolean;
|
|
441
884
|
gutter: number;
|
|
885
|
+
leadingColumns: number;
|
|
886
|
+
treeColumn: string | undefined;
|
|
887
|
+
keepAliveDetail: boolean;
|
|
442
888
|
virtual: boolean | ComponentVirtualOptions;
|
|
443
889
|
rowHeight: number;
|
|
444
890
|
overscan: number;
|
|
@@ -466,6 +912,10 @@ declare const DataGridBody: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
466
912
|
type: NumberConstructor;
|
|
467
913
|
default: undefined;
|
|
468
914
|
};
|
|
915
|
+
treeCell: {
|
|
916
|
+
type: BooleanConstructor;
|
|
917
|
+
default: boolean;
|
|
918
|
+
};
|
|
469
919
|
virtual: {
|
|
470
920
|
readonly type: PropType<boolean | ComponentVirtualOptions>;
|
|
471
921
|
readonly default: false;
|
|
@@ -501,6 +951,10 @@ declare const DataGridBody: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
501
951
|
type: NumberConstructor;
|
|
502
952
|
default: undefined;
|
|
503
953
|
};
|
|
954
|
+
treeCell: {
|
|
955
|
+
type: BooleanConstructor;
|
|
956
|
+
default: boolean;
|
|
957
|
+
};
|
|
504
958
|
virtual: {
|
|
505
959
|
readonly type: PropType<boolean | ComponentVirtualOptions>;
|
|
506
960
|
readonly default: false;
|
|
@@ -533,11 +987,12 @@ declare const DataGridBody: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
533
987
|
as: string;
|
|
534
988
|
height: string | undefined;
|
|
535
989
|
virtualColumns: boolean;
|
|
990
|
+
colspan: number;
|
|
536
991
|
virtual: boolean | ComponentVirtualOptions;
|
|
537
992
|
rowHeight: number;
|
|
538
993
|
overscan: number;
|
|
539
994
|
columnWidth: number;
|
|
540
|
-
|
|
995
|
+
treeCell: boolean;
|
|
541
996
|
}, SlotsType<{
|
|
542
997
|
default?: (props: {
|
|
543
998
|
rows: readonly TableRow<unknown>[];
|
|
@@ -547,6 +1002,8 @@ declare const DataGridBody: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
547
1002
|
index: number;
|
|
548
1003
|
}) => VNode[];
|
|
549
1004
|
cell?: (props: GridCellSlotProps) => VNodeChild;
|
|
1005
|
+
editor?: (props: CellEditorSlotProps) => VNodeChild;
|
|
1006
|
+
detail?: (props: DetailSlotProps) => VNodeChild;
|
|
550
1007
|
}>, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
551
1008
|
/**
|
|
552
1009
|
* A grid cell. A click selects it, Shift-click or dragging extends the range, and a double click
|
|
@@ -565,6 +1022,10 @@ declare const DataGridCell: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
565
1022
|
readonly type: StringConstructor;
|
|
566
1023
|
readonly default: string;
|
|
567
1024
|
};
|
|
1025
|
+
tree: {
|
|
1026
|
+
type: BooleanConstructor;
|
|
1027
|
+
default: boolean;
|
|
1028
|
+
};
|
|
568
1029
|
/** The row's position on the page. Found by searching the rows when left out. */
|
|
569
1030
|
rowIndex: {
|
|
570
1031
|
type: PropType<number | undefined>;
|
|
@@ -590,6 +1051,10 @@ declare const DataGridCell: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
590
1051
|
readonly type: StringConstructor;
|
|
591
1052
|
readonly default: string;
|
|
592
1053
|
};
|
|
1054
|
+
tree: {
|
|
1055
|
+
type: BooleanConstructor;
|
|
1056
|
+
default: boolean;
|
|
1057
|
+
};
|
|
593
1058
|
/** The row's position on the page. Found by searching the rows when left out. */
|
|
594
1059
|
rowIndex: {
|
|
595
1060
|
type: PropType<number | undefined>;
|
|
@@ -603,15 +1068,11 @@ declare const DataGridCell: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
603
1068
|
}>> & Readonly<{}>, {
|
|
604
1069
|
as: string;
|
|
605
1070
|
rowIndex: number | undefined;
|
|
1071
|
+
tree: boolean;
|
|
606
1072
|
columnIndex: number | undefined;
|
|
607
1073
|
}, SlotsType<{
|
|
608
1074
|
default?: (props: GridCellSlotProps) => VNodeChild;
|
|
609
|
-
editor?: (props:
|
|
610
|
-
draft: string;
|
|
611
|
-
update: (draft: string) => void;
|
|
612
|
-
commit: (then?: GridDirection) => unknown;
|
|
613
|
-
cancel: () => void;
|
|
614
|
-
}) => VNode[];
|
|
1075
|
+
editor?: (props: CellEditorSlotProps) => VNodeChild;
|
|
615
1076
|
}>, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
616
1077
|
//#endregion
|
|
617
1078
|
//#region src/table.d.ts
|
|
@@ -620,6 +1081,18 @@ declare const DataGridCell: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
620
1081
|
* slot it renders a complete header and body.
|
|
621
1082
|
*/
|
|
622
1083
|
declare const DataTableRoot: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
1084
|
+
leadingColumns: {
|
|
1085
|
+
readonly type: NumberConstructor;
|
|
1086
|
+
readonly default: 0;
|
|
1087
|
+
};
|
|
1088
|
+
treeColumn: {
|
|
1089
|
+
readonly type: PropType<string | undefined>;
|
|
1090
|
+
readonly default: undefined;
|
|
1091
|
+
};
|
|
1092
|
+
keepAliveDetail: {
|
|
1093
|
+
readonly type: BooleanConstructor;
|
|
1094
|
+
readonly default: false;
|
|
1095
|
+
};
|
|
623
1096
|
virtual: {
|
|
624
1097
|
readonly type: PropType<boolean | ComponentVirtualOptions>;
|
|
625
1098
|
readonly default: false;
|
|
@@ -655,6 +1128,18 @@ declare const DataTableRoot: import("vue").DefineComponent<import("vue").Extract
|
|
|
655
1128
|
}>, () => VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
656
1129
|
[key: string]: any;
|
|
657
1130
|
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
1131
|
+
leadingColumns: {
|
|
1132
|
+
readonly type: NumberConstructor;
|
|
1133
|
+
readonly default: 0;
|
|
1134
|
+
};
|
|
1135
|
+
treeColumn: {
|
|
1136
|
+
readonly type: PropType<string | undefined>;
|
|
1137
|
+
readonly default: undefined;
|
|
1138
|
+
};
|
|
1139
|
+
keepAliveDetail: {
|
|
1140
|
+
readonly type: BooleanConstructor;
|
|
1141
|
+
readonly default: false;
|
|
1142
|
+
};
|
|
658
1143
|
virtual: {
|
|
659
1144
|
readonly type: PropType<boolean | ComponentVirtualOptions>;
|
|
660
1145
|
readonly default: false;
|
|
@@ -691,6 +1176,9 @@ declare const DataTableRoot: import("vue").DefineComponent<import("vue").Extract
|
|
|
691
1176
|
as: string;
|
|
692
1177
|
height: string | undefined;
|
|
693
1178
|
virtualColumns: boolean;
|
|
1179
|
+
leadingColumns: number;
|
|
1180
|
+
treeColumn: string | undefined;
|
|
1181
|
+
keepAliveDetail: boolean;
|
|
694
1182
|
virtual: boolean | ComponentVirtualOptions;
|
|
695
1183
|
rowHeight: number;
|
|
696
1184
|
overscan: number;
|
|
@@ -919,11 +1407,11 @@ declare const DataTableBody: import("vue").DefineComponent<import("vue").Extract
|
|
|
919
1407
|
as: string;
|
|
920
1408
|
height: string | undefined;
|
|
921
1409
|
virtualColumns: boolean;
|
|
1410
|
+
colspan: number | undefined;
|
|
922
1411
|
virtual: boolean | ComponentVirtualOptions;
|
|
923
1412
|
rowHeight: number;
|
|
924
1413
|
overscan: number;
|
|
925
1414
|
columnWidth: number;
|
|
926
|
-
colspan: number | undefined;
|
|
927
1415
|
}, SlotsType<{
|
|
928
1416
|
default?: (props: {
|
|
929
1417
|
rows: readonly TableRow<unknown>[];
|
|
@@ -933,6 +1421,7 @@ declare const DataTableBody: import("vue").DefineComponent<import("vue").Extract
|
|
|
933
1421
|
row: TableRow<unknown>;
|
|
934
1422
|
rowIndex: number;
|
|
935
1423
|
}) => VNode[];
|
|
1424
|
+
row?: (props: DetailSlotProps) => VNodeChild;
|
|
936
1425
|
}>, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
937
1426
|
/** A body row; `aria-selected` and `data-selected` follow the selection. */
|
|
938
1427
|
declare const DataTableRow: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
@@ -987,6 +1476,10 @@ declare const DataTableCell: import("vue").DefineComponent<import("vue").Extract
|
|
|
987
1476
|
readonly type: StringConstructor;
|
|
988
1477
|
readonly default: string;
|
|
989
1478
|
};
|
|
1479
|
+
tree: {
|
|
1480
|
+
type: BooleanConstructor;
|
|
1481
|
+
default: boolean;
|
|
1482
|
+
};
|
|
990
1483
|
}>, () => VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
991
1484
|
[key: string]: any;
|
|
992
1485
|
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
@@ -1002,8 +1495,13 @@ declare const DataTableCell: import("vue").DefineComponent<import("vue").Extract
|
|
|
1002
1495
|
readonly type: StringConstructor;
|
|
1003
1496
|
readonly default: string;
|
|
1004
1497
|
};
|
|
1498
|
+
tree: {
|
|
1499
|
+
type: BooleanConstructor;
|
|
1500
|
+
default: boolean;
|
|
1501
|
+
};
|
|
1005
1502
|
}>> & Readonly<{}>, {
|
|
1006
1503
|
as: string;
|
|
1504
|
+
tree: boolean;
|
|
1007
1505
|
}, SlotsType<{
|
|
1008
1506
|
default?: (props: {
|
|
1009
1507
|
row: TableRow<unknown>;
|
|
@@ -1031,5 +1529,5 @@ declare const DataTableEmpty: import("vue").DefineComponent<import("vue").Extrac
|
|
|
1031
1529
|
default?: () => VNode[];
|
|
1032
1530
|
}>, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
1033
1531
|
//#endregion
|
|
1034
|
-
export { type ComponentVirtualBinding, type ComponentVirtualOptions, DataGridBody, DataGridCell, DataGridRoot, DataTableBody, DataTableCaption, DataTableCell, DataTableColumnVisibility, DataTableEmpty, DataTableHeader, DataTableHeaderCell, DataTableHeaderRow, DataTableLoadMore, DataTablePageSize, DataTablePagination, DataTableRoot, DataTableRow, DataTableSearch, DataTableSelectAll, DataTableSelectRow, DataTableSortButton, DataTableStatus, DataTableViewport, DataTableVirtualColumns, type GridCellSlotProps, type TableStatusSlotProps, cellId, columnStyle, injectVirtual as injectVirtualRenderer, virtualProps };
|
|
1532
|
+
export { type CellEditorSlotProps, type ComponentVirtualBinding, type ComponentVirtualOptions, DataCellEditor, DataGridBody, DataGridCell, DataGridRoot, DataTableBody, DataTableCaption, DataTableCell, DataTableColumnVisibility, DataTableDetailRow, DataTableEditCell, DataTableEditRoot, DataTableEmpty, DataTableExpandToggle, DataTableHeader, DataTableHeaderCell, DataTableHeaderRow, DataTableLoadMore, DataTablePageSize, DataTablePagination, DataTableRoot, DataTableRow, DataTableRowActions, DataTableSearch, DataTableSelectAll, DataTableSelectRow, DataTableSortButton, DataTableStatus, DataTableTreeCell, DataTableViewport, DataTableVirtualColumns, type DetailSlotProps, type GridCellSlotProps, type TableStatusSlotProps, cellEditorProps, cellId, columnStyle, expandToggleProps, hierarchyProps, injectVirtual as injectVirtualRenderer, resolveTreeColumn, treeCellProps, virtualProps };
|
|
1035
1533
|
//# sourceMappingURL=index.d.ts.map
|