@osdk/react-components 0.43.0 → 0.43.1-main-eab07502700f00fae33f4d3d60a4e457d68f5e69
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 +9 -0
- package/build/browser/object-table/ObjectTableApi.js.map +1 -1
- package/build/browser/util/UserAgent.js +1 -1
- package/build/browser/util/UserAgent.js.map +1 -1
- package/build/cjs/{chunk-KZINCUSO.cjs → chunk-4RHYSLOF.cjs} +4 -4
- package/build/cjs/{chunk-KZINCUSO.cjs.map → chunk-4RHYSLOF.cjs.map} +1 -1
- package/build/cjs/{chunk-QBNUA5WG.cjs → chunk-5VZLGEZC.cjs} +4 -4
- package/build/cjs/{chunk-QBNUA5WG.cjs.map → chunk-5VZLGEZC.cjs.map} +1 -1
- package/build/cjs/{chunk-IGTCAXIJ.cjs → chunk-6FC3IRD6.cjs} +4 -4
- package/build/cjs/{chunk-IGTCAXIJ.cjs.map → chunk-6FC3IRD6.cjs.map} +1 -1
- package/build/cjs/{chunk-S3ITMFF3.cjs → chunk-76KDF3JW.cjs} +3 -3
- package/build/cjs/chunk-76KDF3JW.cjs.map +1 -0
- package/build/cjs/chunk-M35GTTYY.cjs +11 -0
- package/build/cjs/{chunk-XXYKJGWB.cjs.map → chunk-M35GTTYY.cjs.map} +1 -1
- package/build/cjs/chunk-MMXFXPW7.cjs +11 -0
- package/build/cjs/{chunk-KTPZ5SKZ.cjs.map → chunk-MMXFXPW7.cjs.map} +1 -1
- package/build/cjs/{chunk-FDRBFQS4.cjs → chunk-NJX2FUOF.cjs} +4 -4
- package/build/cjs/{chunk-FDRBFQS4.cjs.map → chunk-NJX2FUOF.cjs.map} +1 -1
- package/build/cjs/chunk-QGK4II3K.cjs +11 -0
- package/build/cjs/{chunk-DVC36NGS.cjs.map → chunk-QGK4II3K.cjs.map} +1 -1
- package/build/cjs/{chunk-T2MN4MGM.cjs → chunk-RNADPIG7.cjs} +4 -4
- package/build/cjs/{chunk-T2MN4MGM.cjs.map → chunk-RNADPIG7.cjs.map} +1 -1
- package/build/cjs/{chunk-P2YIHI5H.cjs → chunk-RZJEJUTM.cjs} +4 -4
- package/build/cjs/{chunk-P2YIHI5H.cjs.map → chunk-RZJEJUTM.cjs.map} +1 -1
- package/build/cjs/chunk-UHPUV7GG.cjs +11 -0
- package/build/cjs/{chunk-3OPZKCH7.cjs.map → chunk-UHPUV7GG.cjs.map} +1 -1
- package/build/cjs/{chunk-JCUVNLFE.cjs → chunk-X52ISTY4.cjs} +4 -4
- package/build/cjs/{chunk-JCUVNLFE.cjs.map → chunk-X52ISTY4.cjs.map} +1 -1
- package/build/cjs/{chunk-D63UEIY6.cjs → chunk-XMJMURMR.cjs} +4 -4
- package/build/cjs/{chunk-D63UEIY6.cjs.map → chunk-XMJMURMR.cjs.map} +1 -1
- package/build/cjs/chunk-Z5QMB2F7.cjs +11 -0
- package/build/cjs/{chunk-JWRNK62V.cjs.map → chunk-Z5QMB2F7.cjs.map} +1 -1
- package/build/cjs/public/experimental/action-form.cjs +4 -4
- package/build/cjs/public/experimental/cbac-picker.cjs +11 -11
- package/build/cjs/public/experimental/document-viewer.cjs +4 -4
- package/build/cjs/public/experimental/email-viewer.cjs +3 -3
- package/build/cjs/public/experimental/excel-viewer.cjs +3 -3
- package/build/cjs/public/experimental/filter-list.cjs +15 -15
- package/build/cjs/public/experimental/image-viewer.cjs +3 -3
- package/build/cjs/public/experimental/markdown-renderer.cjs +3 -3
- package/build/cjs/public/experimental/object-table.cjs +21 -21
- package/build/cjs/public/experimental/object-table.d.cts +91 -91
- package/build/cjs/public/experimental/pdf-viewer.cjs +7 -7
- package/build/cjs/public/experimental/tiff-renderer.cjs +3 -3
- package/build/cjs/public/experimental/video-viewer.cjs +3 -3
- package/build/cjs/public/experimental/xml-viewer.cjs +3 -3
- package/build/cjs/public/experimental.cjs +71 -71
- package/build/esm/object-table/ObjectTableApi.js.map +1 -1
- package/build/esm/util/UserAgent.js +1 -1
- package/build/esm/util/UserAgent.js.map +1 -1
- package/build/types/object-table/ObjectTableApi.d.ts +91 -91
- package/build/types/object-table/ObjectTableApi.d.ts.map +1 -1
- package/docs/ObjectTable.md +14 -14
- package/docs/ObjectTableOverview.md +131 -0
- package/package.json +7 -7
- package/build/cjs/chunk-3OPZKCH7.cjs +0 -11
- package/build/cjs/chunk-DVC36NGS.cjs +0 -11
- package/build/cjs/chunk-JWRNK62V.cjs +0 -11
- package/build/cjs/chunk-KTPZ5SKZ.cjs +0 -11
- package/build/cjs/chunk-S3ITMFF3.cjs.map +0 -1
- package/build/cjs/chunk-XXYKJGWB.cjs +0 -11
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunk6FC3IRD6_cjs = require('../../chunk-6FC3IRD6.cjs');
|
|
4
4
|
require('../../chunk-HWBCFCBO.cjs');
|
|
5
5
|
require('../../chunk-ASBETQHB.cjs');
|
|
6
6
|
require('../../chunk-FDRFBFI7.cjs');
|
|
@@ -12,86 +12,86 @@ require('../../chunk-DWNKXV5E.cjs');
|
|
|
12
12
|
require('../../chunk-HNBSGCSZ.cjs');
|
|
13
13
|
require('../../chunk-7LXS66DW.cjs');
|
|
14
14
|
require('../../chunk-QP2LHBCZ.cjs');
|
|
15
|
-
require('../../chunk-
|
|
15
|
+
require('../../chunk-76KDF3JW.cjs');
|
|
16
16
|
require('../../chunk-PZPCRXSV.cjs');
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
Object.defineProperty(exports, "BaseTable", {
|
|
21
21
|
enumerable: true,
|
|
22
|
-
get: function () { return
|
|
22
|
+
get: function () { return chunk6FC3IRD6_cjs.BaseTable; }
|
|
23
23
|
});
|
|
24
24
|
Object.defineProperty(exports, "ColumnConfigDialog", {
|
|
25
25
|
enumerable: true,
|
|
26
|
-
get: function () { return
|
|
26
|
+
get: function () { return chunk6FC3IRD6_cjs.ColumnConfigDialog; }
|
|
27
27
|
});
|
|
28
28
|
Object.defineProperty(exports, "LoadingCell", {
|
|
29
29
|
enumerable: true,
|
|
30
|
-
get: function () { return
|
|
30
|
+
get: function () { return chunk6FC3IRD6_cjs.LoadingCell; }
|
|
31
31
|
});
|
|
32
32
|
Object.defineProperty(exports, "LoadingCellContent", {
|
|
33
33
|
enumerable: true,
|
|
34
|
-
get: function () { return
|
|
34
|
+
get: function () { return chunk6FC3IRD6_cjs.LoadingCellContent; }
|
|
35
35
|
});
|
|
36
36
|
Object.defineProperty(exports, "MultiColumnSortDialog", {
|
|
37
37
|
enumerable: true,
|
|
38
|
-
get: function () { return
|
|
38
|
+
get: function () { return chunk6FC3IRD6_cjs.MultiColumnSortDialog; }
|
|
39
39
|
});
|
|
40
40
|
Object.defineProperty(exports, "ObjectTable", {
|
|
41
41
|
enumerable: true,
|
|
42
|
-
get: function () { return
|
|
42
|
+
get: function () { return chunk6FC3IRD6_cjs.ObjectTable; }
|
|
43
43
|
});
|
|
44
44
|
Object.defineProperty(exports, "useCellContextMenu", {
|
|
45
45
|
enumerable: true,
|
|
46
|
-
get: function () { return
|
|
46
|
+
get: function () { return chunk6FC3IRD6_cjs.useCellContextMenu; }
|
|
47
47
|
});
|
|
48
48
|
Object.defineProperty(exports, "useColumnDefs", {
|
|
49
49
|
enumerable: true,
|
|
50
|
-
get: function () { return
|
|
50
|
+
get: function () { return chunk6FC3IRD6_cjs.useColumnDefs; }
|
|
51
51
|
});
|
|
52
52
|
Object.defineProperty(exports, "useColumnPinning", {
|
|
53
53
|
enumerable: true,
|
|
54
|
-
get: function () { return
|
|
54
|
+
get: function () { return chunk6FC3IRD6_cjs.useColumnPinning; }
|
|
55
55
|
});
|
|
56
56
|
Object.defineProperty(exports, "useColumnResize", {
|
|
57
57
|
enumerable: true,
|
|
58
|
-
get: function () { return
|
|
58
|
+
get: function () { return chunk6FC3IRD6_cjs.useColumnResize; }
|
|
59
59
|
});
|
|
60
60
|
Object.defineProperty(exports, "useColumnVisibility", {
|
|
61
61
|
enumerable: true,
|
|
62
|
-
get: function () { return
|
|
62
|
+
get: function () { return chunk6FC3IRD6_cjs.useColumnVisibility; }
|
|
63
63
|
});
|
|
64
64
|
Object.defineProperty(exports, "useEditableTable", {
|
|
65
65
|
enumerable: true,
|
|
66
|
-
get: function () { return
|
|
66
|
+
get: function () { return chunk6FC3IRD6_cjs.useEditableTable; }
|
|
67
67
|
});
|
|
68
68
|
Object.defineProperty(exports, "useFocusedRow", {
|
|
69
69
|
enumerable: true,
|
|
70
|
-
get: function () { return
|
|
70
|
+
get: function () { return chunk6FC3IRD6_cjs.useFocusedRow; }
|
|
71
71
|
});
|
|
72
72
|
Object.defineProperty(exports, "useFunctionColumnsData", {
|
|
73
73
|
enumerable: true,
|
|
74
|
-
get: function () { return
|
|
74
|
+
get: function () { return chunk6FC3IRD6_cjs.useFunctionColumnsData; }
|
|
75
75
|
});
|
|
76
76
|
Object.defineProperty(exports, "useObjectTableData", {
|
|
77
77
|
enumerable: true,
|
|
78
|
-
get: function () { return
|
|
78
|
+
get: function () { return chunk6FC3IRD6_cjs.useObjectTableData; }
|
|
79
79
|
});
|
|
80
80
|
Object.defineProperty(exports, "useObjectTableSnapshot", {
|
|
81
81
|
enumerable: true,
|
|
82
|
-
get: function () { return
|
|
82
|
+
get: function () { return chunk6FC3IRD6_cjs.useObjectTableSnapshot; }
|
|
83
83
|
});
|
|
84
84
|
Object.defineProperty(exports, "useRowSelection", {
|
|
85
85
|
enumerable: true,
|
|
86
|
-
get: function () { return
|
|
86
|
+
get: function () { return chunk6FC3IRD6_cjs.useRowSelection; }
|
|
87
87
|
});
|
|
88
88
|
Object.defineProperty(exports, "useSelectionColumn", {
|
|
89
89
|
enumerable: true,
|
|
90
|
-
get: function () { return
|
|
90
|
+
get: function () { return chunk6FC3IRD6_cjs.useSelectionColumn; }
|
|
91
91
|
});
|
|
92
92
|
Object.defineProperty(exports, "useTableSorting", {
|
|
93
93
|
enumerable: true,
|
|
94
|
-
get: function () { return
|
|
94
|
+
get: function () { return chunk6FC3IRD6_cjs.useTableSorting; }
|
|
95
95
|
});
|
|
96
96
|
//# sourceMappingURL=object-table.cjs.map
|
|
97
97
|
//# sourceMappingURL=object-table.cjs.map
|
|
@@ -415,6 +415,12 @@ interface ObjectTableProps<Q extends ObjectOrInterfaceDefinition, RDPs extends R
|
|
|
415
415
|
* Use objectType-based fetching if you need those.
|
|
416
416
|
*/
|
|
417
417
|
objectSet?: ObjectSet<Q>;
|
|
418
|
+
/**
|
|
419
|
+
* Ordered list of column definitions to show in the table
|
|
420
|
+
*
|
|
421
|
+
* If not provided, all of the properties of the object type will be shown in default order.
|
|
422
|
+
*/
|
|
423
|
+
columnDefinitions?: Array<ColumnDefinition<Q, RDPs, FunctionColumns>>;
|
|
418
424
|
objectSetOptions?: ObjectSetOptions<Q>;
|
|
419
425
|
/**
|
|
420
426
|
* Minimum time between fetch requests in milliseconds.
|
|
@@ -443,23 +449,17 @@ interface ObjectTableProps<Q extends ObjectOrInterfaceDefinition, RDPs extends R
|
|
|
443
449
|
* @default 50
|
|
444
450
|
*/
|
|
445
451
|
pageSize?: number;
|
|
446
|
-
/**
|
|
447
|
-
* Ordered list of column definitions to show in the table
|
|
448
|
-
*
|
|
449
|
-
* If not provided, all of the properties of the object type will be shown in default order.
|
|
450
|
-
*/
|
|
451
|
-
columnDefinitions?: Array<ColumnDefinition<Q, RDPs, FunctionColumns>>;
|
|
452
452
|
/**
|
|
453
453
|
* The current where clause to filter the objects in the table.
|
|
454
454
|
* If provided, the filter is controlled.
|
|
455
455
|
*/
|
|
456
456
|
filter?: WhereClause<Q, RDPs>;
|
|
457
457
|
/**
|
|
458
|
-
* Whether the
|
|
458
|
+
* Whether the column configuration dialog for column visibility and ordering is available to the user.
|
|
459
459
|
*
|
|
460
460
|
* @default true
|
|
461
461
|
*/
|
|
462
|
-
|
|
462
|
+
enableColumnConfig?: boolean;
|
|
463
463
|
/**
|
|
464
464
|
* Whether columns can be pinned by the user.
|
|
465
465
|
*
|
|
@@ -473,29 +473,50 @@ interface ObjectTableProps<Q extends ObjectOrInterfaceDefinition, RDPs extends R
|
|
|
473
473
|
*/
|
|
474
474
|
enableColumnResizing?: boolean;
|
|
475
475
|
/**
|
|
476
|
-
*
|
|
476
|
+
* Called when the column visibility or ordering changed.
|
|
477
477
|
*
|
|
478
|
-
*
|
|
478
|
+
* If provided, the table will allow the user to show/hide columns.
|
|
479
|
+
*
|
|
480
|
+
* @param newStates The columns sorted in their display order in the table and their visibility state.
|
|
479
481
|
*/
|
|
480
|
-
|
|
482
|
+
onColumnVisibilityChanged?: (newStates: Array<{
|
|
483
|
+
columnId: PropertyKeys<Q> | keyof RDPs | keyof FunctionColumns;
|
|
484
|
+
isVisible: boolean;
|
|
485
|
+
}>) => void;
|
|
481
486
|
/**
|
|
482
|
-
*
|
|
483
|
-
* - "always": Editable cells are immediately in edit mode on row clicked.
|
|
484
|
-
* - "manual": User can toggle edit mode on/off via the Edit Table button.
|
|
487
|
+
* Called when the pinned columns change.
|
|
485
488
|
*
|
|
486
|
-
*
|
|
489
|
+
* If provided, the table will allow the user to pin/unpin columns.
|
|
490
|
+
*
|
|
491
|
+
* @param newStates The new list of column pin states
|
|
487
492
|
*/
|
|
488
|
-
|
|
493
|
+
onColumnsPinnedChanged?: (newStates: Array<{
|
|
494
|
+
columnId: PropertyKeys<Q> | keyof RDPs | keyof FunctionColumns;
|
|
495
|
+
pinned: "left" | "right" | "none";
|
|
496
|
+
}>) => void;
|
|
489
497
|
/**
|
|
490
|
-
*
|
|
491
|
-
* "Edit Table" / "Cancel" / "Submit Edits" buttons and the edit-state
|
|
492
|
-
* indicators (modification count, validation errors).
|
|
498
|
+
* Called when a column is resized.
|
|
493
499
|
*
|
|
494
|
-
* @
|
|
495
|
-
*
|
|
496
|
-
* When `false`, the "Edit Table" and "Submit Edits" buttons will not be shown.
|
|
500
|
+
* @param columnId The ID of the resized column
|
|
501
|
+
* @param newWidth The new width of the column. When newWidth = null, the column size is reset.
|
|
497
502
|
*/
|
|
498
|
-
|
|
503
|
+
onColumnResize?: (columnId: PropertyKeys<Q> | keyof RDPs | keyof FunctionColumns, newWidth: number | null) => void;
|
|
504
|
+
/**
|
|
505
|
+
* Called when a column header is clicked.
|
|
506
|
+
*
|
|
507
|
+
* The columnId matches the `locator.id` configured on the column definition.
|
|
508
|
+
* The dropdown menu trigger is excluded — clicking the chevron opens the
|
|
509
|
+
* header menu instead of firing this callback.
|
|
510
|
+
*
|
|
511
|
+
* @param columnId The id of the clicked column
|
|
512
|
+
*/
|
|
513
|
+
onColumnHeaderClick?: (columnId: PropertyKeys<Q> | keyof RDPs | keyof FunctionColumns) => void;
|
|
514
|
+
/**
|
|
515
|
+
* Whether the table is sortable by the user.
|
|
516
|
+
*
|
|
517
|
+
* @default true
|
|
518
|
+
*/
|
|
519
|
+
enableOrdering?: boolean;
|
|
499
520
|
/**
|
|
500
521
|
* The default order by clause to sort the objects in the table.
|
|
501
522
|
* If provided without orderBy prop, the sorting is uncontrolled.
|
|
@@ -525,55 +546,31 @@ interface ObjectTableProps<Q extends ObjectOrInterfaceDefinition, RDPs extends R
|
|
|
525
546
|
direction: "asc" | "desc";
|
|
526
547
|
}>) => void;
|
|
527
548
|
/**
|
|
528
|
-
*
|
|
529
|
-
*
|
|
530
|
-
* @param info An object containing details about the cell that was edited,
|
|
531
|
-
* including the rowId, columnId, new and old values, and the row data before the edit
|
|
532
|
-
*/
|
|
533
|
-
onCellValueChanged?: (info: CellEditInfo<Osdk.Instance<Q, "$allBaseProperties", PropertyKeys<Q>, RDPs>, unknown>) => void;
|
|
534
|
-
/**
|
|
535
|
-
* If provided, the "Submit Edits" button will be shown in the edit footer.
|
|
536
|
-
*
|
|
537
|
-
* @param edits an array of edit info containing details about the edited cells
|
|
538
|
-
* including the rowId, columnId, new and old values, and the row data before the edit
|
|
539
|
-
* @return a promise that resolves to true if the edits were successfully submitted
|
|
540
|
-
*/
|
|
541
|
-
onSubmitEdits?: (edits: CellEditInfo<Osdk.Instance<Q, "$allBaseProperties", PropertyKeys<Q>, RDPs>, unknown>[]) => Promise<boolean>;
|
|
542
|
-
/**
|
|
543
|
-
* Called when the column visibility or ordering changed.
|
|
549
|
+
* Selection mode for the table rows.
|
|
544
550
|
*
|
|
545
|
-
* If
|
|
551
|
+
* If multiple, a checkbox will be shown for each row to allow selecting multiple rows
|
|
552
|
+
* as well as a top-level checkbox in the header to select all rows.
|
|
546
553
|
*
|
|
547
|
-
* @
|
|
554
|
+
* @default "none"
|
|
548
555
|
*/
|
|
549
|
-
|
|
550
|
-
columnId: PropertyKeys<Q> | keyof RDPs | keyof FunctionColumns;
|
|
551
|
-
isVisible: boolean;
|
|
552
|
-
}>) => void;
|
|
556
|
+
selectionMode?: "single" | "multiple" | "none";
|
|
553
557
|
/**
|
|
554
|
-
*
|
|
555
|
-
*
|
|
556
|
-
* If provided, the table will allow the user to pin/unpin columns.
|
|
557
|
-
*
|
|
558
|
-
* @param newStates The new list of column pin states
|
|
558
|
+
* The currently selected rows in the table.
|
|
559
|
+
* If provided, the row selection is controlled.
|
|
559
560
|
*/
|
|
560
|
-
|
|
561
|
-
columnId: PropertyKeys<Q> | keyof RDPs | keyof FunctionColumns;
|
|
562
|
-
pinned: "left" | "right" | "none";
|
|
563
|
-
}>) => void;
|
|
561
|
+
selectedRows?: PrimaryKeyType<Q>[];
|
|
564
562
|
/**
|
|
565
|
-
*
|
|
566
|
-
*
|
|
567
|
-
* @param columnId The ID of the resized column
|
|
568
|
-
* @param newWidth The new width of the column. When newWidth = null, the column size is reset.
|
|
563
|
+
* Indicates whether all rows are selected in controlled mode.
|
|
564
|
+
* When true, the table will show all rows as selected regardless of the selectedRows array.
|
|
569
565
|
*/
|
|
570
|
-
|
|
566
|
+
isAllSelected?: boolean;
|
|
571
567
|
/**
|
|
572
|
-
* Called when
|
|
568
|
+
* Called when the row selection changes, with a {@link RowSelectionChange}
|
|
569
|
+
* payload describing the new state.
|
|
573
570
|
*
|
|
574
|
-
* @param
|
|
571
|
+
* @param change The new selection state. See {@link RowSelectionChange}.
|
|
575
572
|
*/
|
|
576
|
-
|
|
573
|
+
onRowSelectionChanged?: (change: RowSelectionChange<Q, RDPs>) => void;
|
|
577
574
|
/**
|
|
578
575
|
* The primary key of the row to render as visually focused (the
|
|
579
576
|
* "last interacted" row). When provided, focus state is controlled by
|
|
@@ -595,57 +592,60 @@ interface ObjectTableProps<Q extends ObjectOrInterfaceDefinition, RDPs extends R
|
|
|
595
592
|
*/
|
|
596
593
|
onFocusedRowChanged?: (row: Osdk.Instance<Q, "$allBaseProperties", PropertyKeys<Q>, RDPs> | null) => void;
|
|
597
594
|
/**
|
|
598
|
-
*
|
|
599
|
-
*
|
|
600
|
-
*
|
|
601
|
-
* The dropdown menu trigger is excluded — clicking the chevron opens the
|
|
602
|
-
* header menu instead of firing this callback.
|
|
595
|
+
* Controls the edit mode behavior of the table.
|
|
596
|
+
* - "always": Editable cells are immediately in edit mode on row clicked.
|
|
597
|
+
* - "manual": User can toggle edit mode on/off via the Edit Table button.
|
|
603
598
|
*
|
|
604
|
-
* @
|
|
599
|
+
* @default "manual"
|
|
605
600
|
*/
|
|
606
|
-
|
|
601
|
+
editMode?: "always" | "manual";
|
|
607
602
|
/**
|
|
608
|
-
*
|
|
609
|
-
*
|
|
610
|
-
*
|
|
611
|
-
* as well as a top-level checkbox in the header to select all rows.
|
|
603
|
+
* Whether to render the bottom edit footer that hosts the
|
|
604
|
+
* "Edit Table" / "Cancel" / "Submit Edits" buttons and the edit-state
|
|
605
|
+
* indicators (modification count, validation errors).
|
|
612
606
|
*
|
|
613
|
-
* @default
|
|
607
|
+
* @default true whenever the table has at least one column declared
|
|
608
|
+
* editable (i.e. any column with `editable: true` or `editable: (object) => boolean`).
|
|
609
|
+
* When `false`, the "Edit Table" and "Submit Edits" buttons will not be shown.
|
|
614
610
|
*/
|
|
615
|
-
|
|
611
|
+
showEditFooter?: boolean;
|
|
616
612
|
/**
|
|
617
|
-
*
|
|
618
|
-
*
|
|
613
|
+
* Called after the value of a cell is edited and committed by the user.
|
|
614
|
+
*
|
|
615
|
+
* @param info An object containing details about the cell that was edited,
|
|
616
|
+
* including the rowId, columnId, new and old values, and the row data before the edit
|
|
619
617
|
*/
|
|
620
|
-
|
|
618
|
+
onCellValueChanged?: (info: CellEditInfo<Osdk.Instance<Q, "$allBaseProperties", PropertyKeys<Q>, RDPs>, unknown>) => void;
|
|
621
619
|
/**
|
|
622
|
-
*
|
|
623
|
-
*
|
|
620
|
+
* If provided, the "Submit Edits" button will be shown in the edit footer.
|
|
621
|
+
*
|
|
622
|
+
* @param edits an array of edit info containing details about the edited cells
|
|
623
|
+
* including the rowId, columnId, new and old values, and the row data before the edit
|
|
624
|
+
* @return a promise that resolves to true if the edits were successfully submitted
|
|
624
625
|
*/
|
|
625
|
-
|
|
626
|
+
onSubmitEdits?: (edits: CellEditInfo<Osdk.Instance<Q, "$allBaseProperties", PropertyKeys<Q>, RDPs>, unknown>[]) => Promise<boolean>;
|
|
626
627
|
/**
|
|
627
|
-
* Called when
|
|
628
|
-
* payload describing the new state.
|
|
628
|
+
* Called when a row is clicked.
|
|
629
629
|
*
|
|
630
|
-
* @param
|
|
630
|
+
* @param object The object representing the clicked row
|
|
631
631
|
*/
|
|
632
|
-
|
|
632
|
+
onRowClick?: (object: Osdk.Instance<Q, "$allBaseProperties", PropertyKeys<Q>, RDPs>) => void;
|
|
633
633
|
/**
|
|
634
634
|
* If provided, will render this context menu when right clicking on a cell
|
|
635
635
|
*/
|
|
636
636
|
renderCellContextMenu?: (row: Osdk.Instance<Q, "$allBaseProperties", PropertyKeys<Q>, RDPs>, cellValue: unknown) => React.ReactNode;
|
|
637
|
-
/**
|
|
638
|
-
* Render override for the empty state. Called when the table has no
|
|
639
|
-
* rows and no error. When omitted, a default "No Data" indicator is
|
|
640
|
-
* rendered.
|
|
641
|
-
*/
|
|
642
|
-
renderEmptyState?: () => React.ReactNode;
|
|
643
637
|
/**
|
|
644
638
|
* The height of each row in pixels.
|
|
645
639
|
*
|
|
646
640
|
* @default 40
|
|
647
641
|
*/
|
|
648
642
|
rowHeight?: number;
|
|
643
|
+
/**
|
|
644
|
+
* Render override for the empty state. Called when the table has no
|
|
645
|
+
* rows and no error. When omitted, a default "No Data" indicator is
|
|
646
|
+
* rendered.
|
|
647
|
+
*/
|
|
648
|
+
renderEmptyState?: () => React.ReactNode;
|
|
649
649
|
/**
|
|
650
650
|
* Returns extra HTML attributes (typically `data-*`) to apply to each
|
|
651
651
|
* row element. Use this to drive conditional row styling
|
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkNJX2FUOF_cjs = require('../../chunk-NJX2FUOF.cjs');
|
|
4
4
|
var chunkXJDMSVW4_cjs = require('../../chunk-XJDMSVW4.cjs');
|
|
5
|
-
require('../../chunk-
|
|
5
|
+
require('../../chunk-76KDF3JW.cjs');
|
|
6
6
|
require('../../chunk-PZPCRXSV.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
Object.defineProperty(exports, "PdfViewer", {
|
|
11
11
|
enumerable: true,
|
|
12
|
-
get: function () { return
|
|
12
|
+
get: function () { return chunkNJX2FUOF_cjs.PdfViewer; }
|
|
13
13
|
});
|
|
14
14
|
Object.defineProperty(exports, "PdfViewerContent", {
|
|
15
15
|
enumerable: true,
|
|
16
|
-
get: function () { return
|
|
16
|
+
get: function () { return chunkNJX2FUOF_cjs.PdfViewerContent; }
|
|
17
17
|
});
|
|
18
18
|
Object.defineProperty(exports, "PdfViewerProvider", {
|
|
19
19
|
enumerable: true,
|
|
20
|
-
get: function () { return
|
|
20
|
+
get: function () { return chunkNJX2FUOF_cjs.PdfViewerProvider; }
|
|
21
21
|
});
|
|
22
22
|
Object.defineProperty(exports, "usePdfViewerContext", {
|
|
23
23
|
enumerable: true,
|
|
24
|
-
get: function () { return
|
|
24
|
+
get: function () { return chunkNJX2FUOF_cjs.usePdfViewerContext; }
|
|
25
25
|
});
|
|
26
26
|
Object.defineProperty(exports, "usePdfViewerInstance", {
|
|
27
27
|
enumerable: true,
|
|
28
|
-
get: function () { return
|
|
28
|
+
get: function () { return chunkNJX2FUOF_cjs.usePdfViewerInstance; }
|
|
29
29
|
});
|
|
30
30
|
Object.defineProperty(exports, "BasePdfViewer", {
|
|
31
31
|
enumerable: true,
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkRZJEJUTM_cjs = require('../../chunk-RZJEJUTM.cjs');
|
|
4
4
|
var chunkLB3IHFAB_cjs = require('../../chunk-LB3IHFAB.cjs');
|
|
5
5
|
require('../../chunk-MVQKV5BJ.cjs');
|
|
6
|
-
require('../../chunk-
|
|
6
|
+
require('../../chunk-76KDF3JW.cjs');
|
|
7
7
|
require('../../chunk-PZPCRXSV.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
Object.defineProperty(exports, "TiffViewerMedia", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunkRZJEJUTM_cjs.TiffViewerMedia; }
|
|
14
14
|
});
|
|
15
15
|
Object.defineProperty(exports, "TiffRenderer", {
|
|
16
16
|
enumerable: true,
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkM35GTTYY_cjs = require('../../chunk-M35GTTYY.cjs');
|
|
4
4
|
var chunkKHMOMROL_cjs = require('../../chunk-KHMOMROL.cjs');
|
|
5
5
|
require('../../chunk-MVQKV5BJ.cjs');
|
|
6
|
-
require('../../chunk-
|
|
6
|
+
require('../../chunk-76KDF3JW.cjs');
|
|
7
7
|
require('../../chunk-PZPCRXSV.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
Object.defineProperty(exports, "VideoViewer", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunkM35GTTYY_cjs.VideoViewer; }
|
|
14
14
|
});
|
|
15
15
|
Object.defineProperty(exports, "BaseVideoViewer", {
|
|
16
16
|
enumerable: true,
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkUHPUV7GG_cjs = require('../../chunk-UHPUV7GG.cjs');
|
|
4
4
|
var chunkRVZE7LPI_cjs = require('../../chunk-RVZE7LPI.cjs');
|
|
5
5
|
require('../../chunk-MVQKV5BJ.cjs');
|
|
6
|
-
require('../../chunk-
|
|
6
|
+
require('../../chunk-76KDF3JW.cjs');
|
|
7
7
|
require('../../chunk-PZPCRXSV.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
Object.defineProperty(exports, "XmlViewer", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunkUHPUV7GG_cjs.XmlViewer; }
|
|
14
14
|
});
|
|
15
15
|
Object.defineProperty(exports, "BaseXmlViewer", {
|
|
16
16
|
enumerable: true,
|