@procore/data-table 14.5.0 → 14.6.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 +21 -0
- package/dist/legacy/index.d.mts +16 -3
- package/dist/legacy/index.d.ts +16 -3
- package/dist/legacy/index.js +162 -97
- package/dist/legacy/index.mjs +162 -97
- package/dist/modern/index.d.mts +16 -3
- package/dist/modern/index.d.ts +16 -3
- package/dist/modern/index.js +159 -96
- package/dist/modern/index.mjs +159 -96
- package/package.json +4 -34
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,26 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
+
## 14.6.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 2bbf160ec: Prevent filters from resetting to initial state on every columnDefinition changes.
|
|
8
|
+
- 1908a0e84: Expose `groupSelectsChildren` on `TableProps` and `getServerSideSelectionState` on `TableApi` in order to support group row selection on SSRM tables
|
|
9
|
+
|
|
10
|
+
### Patch Changes
|
|
11
|
+
|
|
12
|
+
- ba88a21d9: Fixes type definitions.
|
|
13
|
+
- Updated dependencies [ba88a21d9]
|
|
14
|
+
- @procore/labs-group-by-select@3.1.2
|
|
15
|
+
|
|
16
|
+
## 14.5.1
|
|
17
|
+
|
|
18
|
+
### Patch Changes
|
|
19
|
+
|
|
20
|
+
- 276ec0423: Add label to "Configure" button
|
|
21
|
+
- 4743df6b3: Fix column header text is cutoff when too long
|
|
22
|
+
- b88566710: Refactor `isEmptyValue`, removing extraneous code paths and adding test cases.
|
|
23
|
+
|
|
3
24
|
## 14.5.0
|
|
4
25
|
|
|
5
26
|
### Minor Changes
|
package/dist/legacy/index.d.mts
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">>;
|
package/dist/legacy/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">>;
|