@procore/data-table 14.5.1 → 14.7.0
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 +27 -2
- package/dist/legacy/{index.mjs → index.cjs} +1589 -1466
- package/dist/legacy/{index.d.mts → index.d.cts} +16 -3
- package/dist/legacy/index.d.ts +16 -3
- package/dist/legacy/index.js +1530 -1525
- package/dist/modern/{index.mjs → index.cjs} +1586 -1465
- package/dist/modern/{index.d.mts → index.d.cts} +16 -3
- package/dist/modern/index.d.ts +16 -3
- package/dist/modern/index.js +1527 -1524
- package/package.json +17 -13
|
@@ -577,6 +577,10 @@ interface TableApi {
|
|
|
577
577
|
getFilteredAndSortedRowNodes: () => RowNode[];
|
|
578
578
|
getListFilter: (field: string) => Promise<any | undefined>;
|
|
579
579
|
getListFilters: (fields?: string[]) => Promise<ListFilter[]>;
|
|
580
|
+
/**
|
|
581
|
+
* Enables the ability to grab the complete selection state of an SSRM table when some of the selected rows have not yet been fetched.
|
|
582
|
+
*/
|
|
583
|
+
getServerSideSelectionState: () => ReturnType<GridApi['getServerSideSelectionState']> | undefined;
|
|
580
584
|
getTableConfiguration: () => DataTableConfig;
|
|
581
585
|
getBulkEditColumns: () => ColumnDefinition[];
|
|
582
586
|
hideContextPanel: ContextPanelApi['hide'];
|
|
@@ -641,7 +645,7 @@ interface TableApi {
|
|
|
641
645
|
*/
|
|
642
646
|
setIsRowSelectable?(isRowSelectableFunc: IsRowSelectable): void;
|
|
643
647
|
}
|
|
644
|
-
type PartialTableApi = Pick<TableApi, 'applyTransaction' | 'applyServerSideTransaction' | 'collapseAll' | 'deselectAll' | 'expandAll' | 'getColumnDefinitions' | 'getDetailGridTableApi' | 'getFilteredAndSortedRowNodes' | 'getRootAggregateData' | 'getRowData' | 'getSelectedRows' | 'getTableConfiguration' | 'refreshCells' | 'scrollToRow' | 'selectAll' | 'setPinnedBottomRowData' | 'setRowData' | 'setRowNodeExpanded' | 'sizeColumnsToFit'>;
|
|
648
|
+
type PartialTableApi = Pick<TableApi, 'applyTransaction' | 'applyServerSideTransaction' | 'collapseAll' | 'deselectAll' | 'expandAll' | 'getColumnDefinitions' | 'getDetailGridTableApi' | 'getFilteredAndSortedRowNodes' | 'getRootAggregateData' | 'getRowData' | 'getSelectedRows' | 'getServerSideSelectionState' | 'getTableConfiguration' | 'refreshCells' | 'scrollToRow' | 'selectAll' | 'setPinnedBottomRowData' | 'setRowData' | 'setRowNodeExpanded' | 'sizeColumnsToFit'>;
|
|
645
649
|
type AgDomLayout = 'normal' | 'autoHeight' | 'print' | undefined;
|
|
646
650
|
interface IsRowSelectable {
|
|
647
651
|
(node: RowNode): boolean;
|
|
@@ -932,6 +936,7 @@ interface TableProps<TRow = any, TBottomRow = any> {
|
|
|
932
936
|
getSubtotalLabel?: (columnDefinition: ColumnDefinition, rowData: TRow, value: string | number) => string;
|
|
933
937
|
groupDefaultExpanded?: number;
|
|
934
938
|
groupIncludeFooter?: boolean;
|
|
939
|
+
groupSelectsChildren?: boolean;
|
|
935
940
|
headerHeight?: number;
|
|
936
941
|
hideActionsOnGroupedRow?: boolean;
|
|
937
942
|
initialGroupOrderComparator?: (nodeA: RowNode, nodeB: RowNode) => number;
|
|
@@ -1340,7 +1345,11 @@ declare const _default$1: (({ analytics, children, columnDefinitions: _columnDef
|
|
|
1340
1345
|
overlayMatchesTriggerWidth?: boolean | undefined;
|
|
1341
1346
|
}>;
|
|
1342
1347
|
RowGroupSelector: React__default.FC<{
|
|
1343
|
-
localeText:
|
|
1348
|
+
localeText: {
|
|
1349
|
+
reset: string;
|
|
1350
|
+
placeholder: string;
|
|
1351
|
+
selectedItemsPrefix?: string | undefined;
|
|
1352
|
+
};
|
|
1344
1353
|
}>;
|
|
1345
1354
|
Search: React__default.FunctionComponent<SearchProps>;
|
|
1346
1355
|
Table: React__default.FC<Omit<TableProps<any, any>, "selectionSSREnabled" | "modules">>;
|
|
@@ -1373,7 +1382,11 @@ declare const _default: (({ analytics, children, columnDefinitions: _columnDefin
|
|
|
1373
1382
|
overlayMatchesTriggerWidth?: boolean | undefined;
|
|
1374
1383
|
}>;
|
|
1375
1384
|
RowGroupSelector: React__default.FC<{
|
|
1376
|
-
localeText:
|
|
1385
|
+
localeText: {
|
|
1386
|
+
reset: string;
|
|
1387
|
+
placeholder: string;
|
|
1388
|
+
selectedItemsPrefix?: string | undefined;
|
|
1389
|
+
};
|
|
1377
1390
|
}>;
|
|
1378
1391
|
Search: React__default.FunctionComponent<SearchProps>;
|
|
1379
1392
|
Table: React__default.FC<Omit<TableProps<any, any>, "rows" | "modules">>;
|
package/dist/modern/index.d.ts
CHANGED
|
@@ -577,6 +577,10 @@ interface TableApi {
|
|
|
577
577
|
getFilteredAndSortedRowNodes: () => RowNode[];
|
|
578
578
|
getListFilter: (field: string) => Promise<any | undefined>;
|
|
579
579
|
getListFilters: (fields?: string[]) => Promise<ListFilter[]>;
|
|
580
|
+
/**
|
|
581
|
+
* Enables the ability to grab the complete selection state of an SSRM table when some of the selected rows have not yet been fetched.
|
|
582
|
+
*/
|
|
583
|
+
getServerSideSelectionState: () => ReturnType<GridApi['getServerSideSelectionState']> | undefined;
|
|
580
584
|
getTableConfiguration: () => DataTableConfig;
|
|
581
585
|
getBulkEditColumns: () => ColumnDefinition[];
|
|
582
586
|
hideContextPanel: ContextPanelApi['hide'];
|
|
@@ -641,7 +645,7 @@ interface TableApi {
|
|
|
641
645
|
*/
|
|
642
646
|
setIsRowSelectable?(isRowSelectableFunc: IsRowSelectable): void;
|
|
643
647
|
}
|
|
644
|
-
type PartialTableApi = Pick<TableApi, 'applyTransaction' | 'applyServerSideTransaction' | 'collapseAll' | 'deselectAll' | 'expandAll' | 'getColumnDefinitions' | 'getDetailGridTableApi' | 'getFilteredAndSortedRowNodes' | 'getRootAggregateData' | 'getRowData' | 'getSelectedRows' | 'getTableConfiguration' | 'refreshCells' | 'scrollToRow' | 'selectAll' | 'setPinnedBottomRowData' | 'setRowData' | 'setRowNodeExpanded' | 'sizeColumnsToFit'>;
|
|
648
|
+
type PartialTableApi = Pick<TableApi, 'applyTransaction' | 'applyServerSideTransaction' | 'collapseAll' | 'deselectAll' | 'expandAll' | 'getColumnDefinitions' | 'getDetailGridTableApi' | 'getFilteredAndSortedRowNodes' | 'getRootAggregateData' | 'getRowData' | 'getSelectedRows' | 'getServerSideSelectionState' | 'getTableConfiguration' | 'refreshCells' | 'scrollToRow' | 'selectAll' | 'setPinnedBottomRowData' | 'setRowData' | 'setRowNodeExpanded' | 'sizeColumnsToFit'>;
|
|
645
649
|
type AgDomLayout = 'normal' | 'autoHeight' | 'print' | undefined;
|
|
646
650
|
interface IsRowSelectable {
|
|
647
651
|
(node: RowNode): boolean;
|
|
@@ -932,6 +936,7 @@ interface TableProps<TRow = any, TBottomRow = any> {
|
|
|
932
936
|
getSubtotalLabel?: (columnDefinition: ColumnDefinition, rowData: TRow, value: string | number) => string;
|
|
933
937
|
groupDefaultExpanded?: number;
|
|
934
938
|
groupIncludeFooter?: boolean;
|
|
939
|
+
groupSelectsChildren?: boolean;
|
|
935
940
|
headerHeight?: number;
|
|
936
941
|
hideActionsOnGroupedRow?: boolean;
|
|
937
942
|
initialGroupOrderComparator?: (nodeA: RowNode, nodeB: RowNode) => number;
|
|
@@ -1340,7 +1345,11 @@ declare const _default$1: (({ analytics, children, columnDefinitions: _columnDef
|
|
|
1340
1345
|
overlayMatchesTriggerWidth?: boolean | undefined;
|
|
1341
1346
|
}>;
|
|
1342
1347
|
RowGroupSelector: React__default.FC<{
|
|
1343
|
-
localeText:
|
|
1348
|
+
localeText: {
|
|
1349
|
+
reset: string;
|
|
1350
|
+
placeholder: string;
|
|
1351
|
+
selectedItemsPrefix?: string | undefined;
|
|
1352
|
+
};
|
|
1344
1353
|
}>;
|
|
1345
1354
|
Search: React__default.FunctionComponent<SearchProps>;
|
|
1346
1355
|
Table: React__default.FC<Omit<TableProps<any, any>, "selectionSSREnabled" | "modules">>;
|
|
@@ -1373,7 +1382,11 @@ declare const _default: (({ analytics, children, columnDefinitions: _columnDefin
|
|
|
1373
1382
|
overlayMatchesTriggerWidth?: boolean | undefined;
|
|
1374
1383
|
}>;
|
|
1375
1384
|
RowGroupSelector: React__default.FC<{
|
|
1376
|
-
localeText:
|
|
1385
|
+
localeText: {
|
|
1386
|
+
reset: string;
|
|
1387
|
+
placeholder: string;
|
|
1388
|
+
selectedItemsPrefix?: string | undefined;
|
|
1389
|
+
};
|
|
1377
1390
|
}>;
|
|
1378
1391
|
Search: React__default.FunctionComponent<SearchProps>;
|
|
1379
1392
|
Table: React__default.FC<Omit<TableProps<any, any>, "rows" | "modules">>;
|