@procore/data-table 14.7.0 → 14.9.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 +19 -0
- package/dist/legacy/index.cjs +141 -64
- package/dist/legacy/index.d.cts +5 -3
- package/dist/legacy/index.d.ts +5 -3
- package/dist/legacy/index.js +141 -64
- package/dist/modern/index.cjs +139 -62
- package/dist/modern/index.d.cts +5 -3
- package/dist/modern/index.d.ts +5 -3
- package/dist/modern/index.js +139 -62
- package/package.json +7 -5
package/dist/legacy/index.js
CHANGED
|
@@ -11,6 +11,7 @@ import { detectPrng, factory } from 'ulid';
|
|
|
11
11
|
import { useToastAlertContext, ToastAlertProvider } from '@procore/toast-alert';
|
|
12
12
|
import ReactDOM, { createPortal } from 'react-dom';
|
|
13
13
|
import { renderToString, renderToStaticMarkup } from 'react-dom/server';
|
|
14
|
+
import { storage } from '@procore/web-sdk-storage';
|
|
14
15
|
import _isEqual from 'lodash.isequal';
|
|
15
16
|
import ReactResizeDetector from 'react-resize-detector';
|
|
16
17
|
import { DateTimeSelectField } from '@procore/labs-datetime-select';
|
|
@@ -1405,7 +1406,7 @@ ag-grid, ag-grid-angular, ag-grid-ng2, ag-grid-polymer, ag-grid-aurelia {
|
|
|
1405
1406
|
animation-iteration-count: infinite;
|
|
1406
1407
|
animation-name: ag-shake-left-to-right;
|
|
1407
1408
|
}
|
|
1408
|
-
@keyframes _ag-shake-left-to-
|
|
1409
|
+
@keyframes _ag-shake-left-to-right_7x7l9_366 {
|
|
1409
1410
|
from {
|
|
1410
1411
|
padding-left: 6px;
|
|
1411
1412
|
padding-right: 2px;
|
|
@@ -5406,7 +5407,7 @@ input[class^=ag-][type=button]:focus, button[class^=ag-]:focus {
|
|
|
5406
5407
|
animation-iteration-count: infinite;
|
|
5407
5408
|
animation-timing-function: linear;
|
|
5408
5409
|
}
|
|
5409
|
-
@keyframes
|
|
5410
|
+
@keyframes _spin_7x7l9_1 {
|
|
5410
5411
|
from {
|
|
5411
5412
|
transform: rotate(0deg);
|
|
5412
5413
|
}
|
|
@@ -7527,6 +7528,18 @@ input[class^=ag-][type=range]:disabled {
|
|
|
7527
7528
|
box-shadow: 0px -6px 12px -3px hsla(200, 8%, 10%, 0.25);
|
|
7528
7529
|
z-index: 2;
|
|
7529
7530
|
}
|
|
7531
|
+
.ag-theme-alpine.ag-theme-alpine .ag-floating-bottom .ag-pinned-left-floating-bottom .ag-row, .ag-theme-alpine.ag-theme-alpine .ag-floating-bottom .ag-pinned-right-floating-bottom .ag-row {
|
|
7532
|
+
background-color: #f4f5f6;
|
|
7533
|
+
}
|
|
7534
|
+
.ag-theme-alpine.ag-theme-alpine .ag-floating-bottom .ag-pinned-left-floating-bottom {
|
|
7535
|
+
z-index: 1;
|
|
7536
|
+
box-shadow: 3px 0px 12px 0.5px hsl(200, 8%, 90%);
|
|
7537
|
+
border-right: 1px solid #d6dadc;
|
|
7538
|
+
}
|
|
7539
|
+
.ag-theme-alpine.ag-theme-alpine .ag-floating-bottom .ag-pinned-right-floating-bottom {
|
|
7540
|
+
box-shadow: -3px 0px 12px 0.5px hsl(200, 8%, 90%);
|
|
7541
|
+
border-left: 1px solid #d6dadc;
|
|
7542
|
+
}
|
|
7530
7543
|
.ag-theme-alpine.ag-theme-alpine .ag-group-value {
|
|
7531
7544
|
line-height: 16px;
|
|
7532
7545
|
}
|
|
@@ -7893,7 +7906,7 @@ input[class^=ag-][type=range]:disabled {
|
|
|
7893
7906
|
padding-left: 16px;
|
|
7894
7907
|
}
|
|
7895
7908
|
|
|
7896
|
-
div.
|
|
7909
|
+
div._contextPanel_7x7l9_7144 {
|
|
7897
7910
|
width: 400px;
|
|
7898
7911
|
transition: all ease 500ms;
|
|
7899
7912
|
flex: 0 0 auto;
|
|
@@ -7902,7 +7915,7 @@ div._contextPanel_10eap_7131 {
|
|
|
7902
7915
|
border: 1px solid #d6dadc;
|
|
7903
7916
|
display: flex;
|
|
7904
7917
|
}
|
|
7905
|
-
div._contextPanel--
|
|
7918
|
+
div._contextPanel--hidden_7x7l9_7153 {
|
|
7906
7919
|
border: none;
|
|
7907
7920
|
overflow: hidden;
|
|
7908
7921
|
padding: 0px;
|
|
@@ -7910,50 +7923,50 @@ div._contextPanel--hidden_10eap_7140 {
|
|
|
7910
7923
|
width: 0px;
|
|
7911
7924
|
}
|
|
7912
7925
|
|
|
7913
|
-
.
|
|
7926
|
+
._contextPanelWrapper_7x7l9_7161 {
|
|
7914
7927
|
position: relative;
|
|
7915
7928
|
flex-grow: 1;
|
|
7916
7929
|
}
|
|
7917
7930
|
|
|
7918
|
-
.
|
|
7931
|
+
._contextPanelBody_7x7l9_7166 {
|
|
7919
7932
|
width: clamp(380px, 400px, 100%);
|
|
7920
7933
|
}
|
|
7921
7934
|
|
|
7922
|
-
._contextPanel-
|
|
7935
|
+
._contextPanel-stickyHeader_7x7l9_7170 {
|
|
7923
7936
|
background-color: #ffffff;
|
|
7924
7937
|
position: sticky;
|
|
7925
7938
|
top: 0;
|
|
7926
7939
|
z-index: 5;
|
|
7927
7940
|
}
|
|
7928
7941
|
|
|
7929
|
-
._filters-
|
|
7942
|
+
._filters-list_7x7l9_7177 {
|
|
7930
7943
|
padding: 0;
|
|
7931
7944
|
margin: 0;
|
|
7932
7945
|
}
|
|
7933
|
-
._filters-
|
|
7946
|
+
._filters-list_7x7l9_7177 ol {
|
|
7934
7947
|
padding: 0;
|
|
7935
7948
|
margin: 0;
|
|
7936
7949
|
}
|
|
7937
7950
|
|
|
7938
|
-
._col-drag-column-
|
|
7951
|
+
._col-drag-column-icon_7x7l9_7186 {
|
|
7939
7952
|
color: #6a767c;
|
|
7940
7953
|
}
|
|
7941
7954
|
|
|
7942
|
-
._tabular-
|
|
7955
|
+
._tabular-nums_7x7l9_7190 {
|
|
7943
7956
|
font-variant-numeric: tabular-nums;
|
|
7944
7957
|
}`;
|
|
7945
7958
|
document.head.appendChild(document.createElement("style")).appendChild(document.createTextNode(css));
|
|
7946
7959
|
var styles_default = {
|
|
7947
|
-
"contextPanel": "
|
|
7948
|
-
"contextPanel--hidden": "_contextPanel--
|
|
7949
|
-
"contextPanelWrapper": "
|
|
7950
|
-
"contextPanelBody": "
|
|
7951
|
-
"contextPanel-stickyHeader": "_contextPanel-
|
|
7952
|
-
"filters-list": "_filters-
|
|
7953
|
-
"col-drag-column-icon": "_col-drag-column-
|
|
7954
|
-
"tabular-nums": "_tabular-
|
|
7955
|
-
"ag-shake-left-to-right": "_ag-shake-left-to-
|
|
7956
|
-
"spin": "
|
|
7960
|
+
"contextPanel": "_contextPanel_7x7l9_7144",
|
|
7961
|
+
"contextPanel--hidden": "_contextPanel--hidden_7x7l9_7153",
|
|
7962
|
+
"contextPanelWrapper": "_contextPanelWrapper_7x7l9_7161",
|
|
7963
|
+
"contextPanelBody": "_contextPanelBody_7x7l9_7166",
|
|
7964
|
+
"contextPanel-stickyHeader": "_contextPanel-stickyHeader_7x7l9_7170",
|
|
7965
|
+
"filters-list": "_filters-list_7x7l9_7177",
|
|
7966
|
+
"col-drag-column-icon": "_col-drag-column-icon_7x7l9_7186",
|
|
7967
|
+
"tabular-nums": "_tabular-nums_7x7l9_7190",
|
|
7968
|
+
"ag-shake-left-to-right": "_ag-shake-left-to-right_7x7l9_366",
|
|
7969
|
+
"spin": "_spin_7x7l9_1"
|
|
7957
7970
|
};
|
|
7958
7971
|
|
|
7959
7972
|
// src/utils/getCellValueTypographyProps.ts
|
|
@@ -55228,6 +55241,16 @@ function getParentSelectionState(parent, affectedRows, parentChildrenMap) {
|
|
|
55228
55241
|
return rowSelectionState.indeterminate;
|
|
55229
55242
|
}
|
|
55230
55243
|
}
|
|
55244
|
+
function getNodeSelectedState(node) {
|
|
55245
|
+
const filteredChildren = node.childrenAfterFilter || [];
|
|
55246
|
+
const numSelectedChildren = filteredChildren.filter(
|
|
55247
|
+
(child) => child.isSelected()
|
|
55248
|
+
).length;
|
|
55249
|
+
return {
|
|
55250
|
+
selected: filteredChildren.length > 0 ? numSelectedChildren > 0 : node.isSelected(),
|
|
55251
|
+
indeterminate: filteredChildren ? numSelectedChildren > 0 && filteredChildren.length !== numSelectedChildren : false
|
|
55252
|
+
};
|
|
55253
|
+
}
|
|
55231
55254
|
function getAffectedRows(currentRows, selectionNode, affectedRows) {
|
|
55232
55255
|
var _a;
|
|
55233
55256
|
const isNodeRootLevel = isNodeRootLevelOfGrid(selectionNode.parent);
|
|
@@ -55308,13 +55331,9 @@ function getAffectedRows(currentRows, selectionNode, affectedRows) {
|
|
|
55308
55331
|
function noop2() {
|
|
55309
55332
|
}
|
|
55310
55333
|
function ClientSideRowCheckbox(props) {
|
|
55311
|
-
var _a
|
|
55312
|
-
const [
|
|
55313
|
-
const
|
|
55314
|
-
(child) => child.isSelected()
|
|
55315
|
-
).length;
|
|
55316
|
-
const selectedState = props.node.childrenAfterGroup ? numSelectedChildren > 0 : props.node.isSelected();
|
|
55317
|
-
const indeterminateState = props.node.childrenAfterGroup ? numSelectedChildren > 0 && ((_a = props.node.childrenAfterGroup) == null ? void 0 : _a.length) !== numSelectedChildren : false;
|
|
55334
|
+
var _a;
|
|
55335
|
+
const [_selected, setSelected] = useState(props.node.isSelected());
|
|
55336
|
+
const { selected, indeterminate } = getNodeSelectedState(props.node);
|
|
55318
55337
|
function handleRowSelection(event) {
|
|
55319
55338
|
if (props.node === event.node) {
|
|
55320
55339
|
setSelected(event.node.isSelected());
|
|
@@ -55329,13 +55348,18 @@ function ClientSideRowCheckbox(props) {
|
|
|
55329
55348
|
return /* @__PURE__ */ React83.createElement(Box, { paddingRight: "md" }, /* @__PURE__ */ React83.createElement(
|
|
55330
55349
|
Checkbox,
|
|
55331
55350
|
{
|
|
55332
|
-
checked:
|
|
55333
|
-
disabled: (
|
|
55334
|
-
indeterminate
|
|
55351
|
+
checked: selected,
|
|
55352
|
+
disabled: (_a = props.data) == null ? void 0 : _a.checkboxDisabled,
|
|
55353
|
+
indeterminate,
|
|
55335
55354
|
"data-qa": "rowCheckbox",
|
|
55336
55355
|
onClick: noop2,
|
|
55337
|
-
onChange: () => {
|
|
55338
|
-
props.node.
|
|
55356
|
+
onChange: (event) => {
|
|
55357
|
+
return props.node.setSelectedParams({
|
|
55358
|
+
newValue: event.target.checked,
|
|
55359
|
+
groupSelectsFiltered: true,
|
|
55360
|
+
event,
|
|
55361
|
+
source: "checkboxSelected"
|
|
55362
|
+
});
|
|
55339
55363
|
}
|
|
55340
55364
|
}
|
|
55341
55365
|
));
|
|
@@ -55501,23 +55525,33 @@ var AutoGroupCellRenderer = (props) => {
|
|
|
55501
55525
|
};
|
|
55502
55526
|
|
|
55503
55527
|
// src/CellRenderers/rowActionsCellStyles.scss
|
|
55504
|
-
var css6 =
|
|
55505
|
-
left:
|
|
55506
|
-
|
|
55528
|
+
var css6 = `.ag-theme-alpine.ag-theme-alpine div.ag-cell[col-id=rowActions] {
|
|
55529
|
+
left: var(--viewport-width) !important;
|
|
55530
|
+
width: 0px !important;
|
|
55531
|
+
padding: 0px !important;
|
|
55507
55532
|
position: sticky;
|
|
55508
55533
|
visibility: hidden;
|
|
55509
55534
|
flex: none;
|
|
55535
|
+
background: none;
|
|
55536
|
+
overflow: visible;
|
|
55510
55537
|
}
|
|
55511
|
-
.ag-
|
|
55538
|
+
.ag-theme-alpine.ag-theme-alpine div.ag-cell[col-id=rowActions] .inline-nonedit-wrapper {
|
|
55539
|
+
width: auto;
|
|
55540
|
+
height: 100%;
|
|
55541
|
+
padding: 0px 8px;
|
|
55542
|
+
position: absolute;
|
|
55543
|
+
right: 0px;
|
|
55544
|
+
}
|
|
55545
|
+
.ag-theme-alpine.ag-theme-alpine .ag-row-hover div.ag-cell[col-id=rowActions] .inline-nonedit-wrapper {
|
|
55512
55546
|
background: #f4f5f6;
|
|
55513
55547
|
}
|
|
55514
|
-
.ag-row-focus div[col-id=rowActions] {
|
|
55548
|
+
.ag-theme-alpine.ag-theme-alpine .ag-row-focus div.ag-cell[col-id=rowActions] .inline-nonedit-wrapper {
|
|
55515
55549
|
background: #f6f9fe;
|
|
55516
55550
|
}
|
|
55517
|
-
.ag-row-hover
|
|
55551
|
+
.ag-theme-alpine.ag-theme-alpine .ag-row-hover .ag-cell[col-id=rowActions], .ag-theme-alpine.ag-theme-alpine .ag-row-focus .ag-cell[col-id=rowActions] {
|
|
55518
55552
|
visibility: visible;
|
|
55519
55553
|
}
|
|
55520
|
-
|
|
55554
|
+
.ag-theme-alpine.ag-theme-alpine .ag-cell[col-id=rowActions-pinned] {
|
|
55521
55555
|
background: "transparent";
|
|
55522
55556
|
left: calc(var(--viewport-width) - var(--rowActions-width)) !important;
|
|
55523
55557
|
padding: 2px 8px !important;
|
|
@@ -55526,8 +55560,18 @@ div[col-id=rowActions-pinned] {
|
|
|
55526
55560
|
document.head.appendChild(document.createElement("style")).appendChild(document.createTextNode(css6));
|
|
55527
55561
|
|
|
55528
55562
|
// src/CellRenderers/RowActionsCell.tsx
|
|
55563
|
+
function getRowActions(actions, rowProps) {
|
|
55564
|
+
if (typeof actions === "function") {
|
|
55565
|
+
return actions(rowProps);
|
|
55566
|
+
}
|
|
55567
|
+
return actions;
|
|
55568
|
+
}
|
|
55529
55569
|
var InternalRowActionsCellRenderer = (props) => {
|
|
55530
|
-
|
|
55570
|
+
const actions = getRowActions(
|
|
55571
|
+
props.columnDefinition.cellRendererParams.actions,
|
|
55572
|
+
props
|
|
55573
|
+
);
|
|
55574
|
+
if (props.rowPinned || props.columnDefinition.cellRendererParams.hideActionsOnGroupedRow && props.isGroup || actions.length === 0) {
|
|
55531
55575
|
return null;
|
|
55532
55576
|
}
|
|
55533
55577
|
return /* @__PURE__ */ React83.createElement(
|
|
@@ -55538,7 +55582,7 @@ var InternalRowActionsCellRenderer = (props) => {
|
|
|
55538
55582
|
size: "xs",
|
|
55539
55583
|
margin: "0px 4px"
|
|
55540
55584
|
},
|
|
55541
|
-
|
|
55585
|
+
actions.map((Action, idx) => {
|
|
55542
55586
|
const key = `${Action.displayName}${idx}`;
|
|
55543
55587
|
return /* @__PURE__ */ React83.createElement(Action, { ...props, key });
|
|
55544
55588
|
})
|
|
@@ -56199,6 +56243,7 @@ var css7 = `.ag-header-cell .data-table-header-menu {
|
|
|
56199
56243
|
document.head.appendChild(document.createElement("style")).appendChild(document.createTextNode(css7));
|
|
56200
56244
|
|
|
56201
56245
|
// src/GenericHeader/GenericHeader.tsx
|
|
56246
|
+
var filterChanged = "filterChanged";
|
|
56202
56247
|
var selectionChanged = "selectionChanged";
|
|
56203
56248
|
var paginationChanged = "paginationChanged";
|
|
56204
56249
|
var tooltipDelay = {
|
|
@@ -56504,7 +56549,7 @@ var GenericHeaderRenderer = (props) => {
|
|
|
56504
56549
|
if (node.selectable === false) {
|
|
56505
56550
|
return;
|
|
56506
56551
|
}
|
|
56507
|
-
if (node.
|
|
56552
|
+
if (getNodeSelectedState(node).selected) {
|
|
56508
56553
|
hasSelectedNodes = true;
|
|
56509
56554
|
} else {
|
|
56510
56555
|
isAllSelected = false;
|
|
@@ -56518,9 +56563,11 @@ var GenericHeaderRenderer = (props) => {
|
|
|
56518
56563
|
setSelectAll("none" /* None */);
|
|
56519
56564
|
}
|
|
56520
56565
|
}
|
|
56566
|
+
props.api.addEventListener(filterChanged, onSelectionChanged);
|
|
56521
56567
|
props.api.addEventListener(selectionChanged, onSelectionChanged);
|
|
56522
56568
|
onSelectionChanged();
|
|
56523
56569
|
return () => {
|
|
56570
|
+
removeEventListenerFromGrid(filterChanged, onSelectionChanged, props.api);
|
|
56524
56571
|
removeEventListenerFromGrid(
|
|
56525
56572
|
selectionChanged,
|
|
56526
56573
|
onSelectionChanged,
|
|
@@ -81126,9 +81173,20 @@ var useTableApi = ({
|
|
|
81126
81173
|
message
|
|
81127
81174
|
});
|
|
81128
81175
|
}, []);
|
|
81176
|
+
function getUnviewableGroupedColumns(columnApi2) {
|
|
81177
|
+
return ((columnApi2 == null ? void 0 : columnApi2.getRowGroupColumns()) ?? []).filter((column2) => {
|
|
81178
|
+
const colDef = column2.getColDef();
|
|
81179
|
+
return colDef.lockVisible && colDef.hide;
|
|
81180
|
+
}).map((column2) => column2.getColId());
|
|
81181
|
+
}
|
|
81129
81182
|
const setRowGrouping = React83.useCallback(
|
|
81130
81183
|
(value) => {
|
|
81184
|
+
const unviewableGroupedColumns = getUnviewableGroupedColumns(columnApi);
|
|
81131
81185
|
columnApi == null ? void 0 : columnApi.setRowGroupColumns(value);
|
|
81186
|
+
const recentlyUngroupedUnviewableColumns = unviewableGroupedColumns.filter((colId) => !value.includes(colId));
|
|
81187
|
+
if (recentlyUngroupedUnviewableColumns.length > 0) {
|
|
81188
|
+
columnApi == null ? void 0 : columnApi.setColumnsVisible(recentlyUngroupedUnviewableColumns, false);
|
|
81189
|
+
}
|
|
81132
81190
|
resetPagination();
|
|
81133
81191
|
},
|
|
81134
81192
|
[columnApi]
|
|
@@ -81607,15 +81665,16 @@ var DataTable = ({
|
|
|
81607
81665
|
onTableConfigChange,
|
|
81608
81666
|
showExpandCollapseAllToggle,
|
|
81609
81667
|
translations: translations2 = {},
|
|
81610
|
-
enableCellTextSelection
|
|
81668
|
+
enableCellTextSelection,
|
|
81669
|
+
localStoragePersistenceKey
|
|
81611
81670
|
}) => {
|
|
81612
|
-
const
|
|
81671
|
+
const initialTableConfig = localStoragePersistenceKey && storage.local.getItem(localStoragePersistenceKey) || _initialTableConfig;
|
|
81613
81672
|
const onServerSideDataRequestRef = React83.useRef(onServerSideDataRequest);
|
|
81614
81673
|
const tableRef = React83.useRef(null);
|
|
81615
81674
|
const [totalRowCount, setTotalRowCount] = React83.useState(0);
|
|
81616
81675
|
const [selectedGroupIndex, setSelectedGroupIndex] = React83.useState(null);
|
|
81617
81676
|
const [initialConfigSet, setInitialConfigSet] = React83.useState(
|
|
81618
|
-
!
|
|
81677
|
+
!initialTableConfig
|
|
81619
81678
|
);
|
|
81620
81679
|
const contextPanel = useContextPanel();
|
|
81621
81680
|
const clientI18n = useI18nContext();
|
|
@@ -81705,18 +81764,31 @@ var DataTable = ({
|
|
|
81705
81764
|
});
|
|
81706
81765
|
checkboxColumn.current = newCheckboxColumn;
|
|
81707
81766
|
}
|
|
81708
|
-
if (!gridApi || !columnApi
|
|
81767
|
+
if (!gridApi || !columnApi) {
|
|
81709
81768
|
return;
|
|
81710
81769
|
}
|
|
81711
81770
|
const config = (_a = tableRef == null ? void 0 : tableRef.current) == null ? void 0 : _a.getTableConfiguration();
|
|
81712
81771
|
if (config) {
|
|
81713
|
-
|
|
81772
|
+
if (localStoragePersistenceKey) {
|
|
81773
|
+
storage.local.setItem(localStoragePersistenceKey, {
|
|
81774
|
+
...config,
|
|
81775
|
+
rowHeight: rowHeightRef.current,
|
|
81776
|
+
serverFilters: filterStorage.filtersState
|
|
81777
|
+
});
|
|
81778
|
+
}
|
|
81779
|
+
onTableConfigChange == null ? void 0 : onTableConfigChange({
|
|
81714
81780
|
...config,
|
|
81715
81781
|
rowHeight: rowHeightRef.current,
|
|
81716
81782
|
serverFilters: filterStorage.filtersState
|
|
81717
81783
|
});
|
|
81718
81784
|
}
|
|
81719
|
-
}, [
|
|
81785
|
+
}, [
|
|
81786
|
+
gridApi,
|
|
81787
|
+
columnApi,
|
|
81788
|
+
onTableConfigChange,
|
|
81789
|
+
filterStorage.filtersState,
|
|
81790
|
+
localStoragePersistenceKey
|
|
81791
|
+
]);
|
|
81720
81792
|
const filtersRef = useRef(filterStorage.selectedFilters);
|
|
81721
81793
|
if (!_isEqual(filtersRef.current, filterStorage.selectedFilters)) {
|
|
81722
81794
|
filtersRef.current = filterStorage.selectedFilters;
|
|
@@ -82074,10 +82146,14 @@ var Table = (props) => {
|
|
|
82074
82146
|
suppressMovable: true,
|
|
82075
82147
|
suppressSizeToFit: true,
|
|
82076
82148
|
suppressMenu: true,
|
|
82077
|
-
width: rowActionsWidth.current,
|
|
82078
|
-
minWidth: rowActionsWidth.current,
|
|
82149
|
+
width: suppressColumnVirtualisation ? 0 : rowActionsWidth.current,
|
|
82150
|
+
minWidth: suppressColumnVirtualisation ? 0 : rowActionsWidth.current,
|
|
82079
82151
|
cellStyle: (params) => {
|
|
82080
|
-
|
|
82152
|
+
const actions = getRowActions(
|
|
82153
|
+
params.colDef.cellRendererParams.actions,
|
|
82154
|
+
params
|
|
82155
|
+
);
|
|
82156
|
+
if (params.node.rowPinned === "bottom" || actions.length === 0) {
|
|
82081
82157
|
return {
|
|
82082
82158
|
display: "none"
|
|
82083
82159
|
};
|
|
@@ -82686,6 +82762,7 @@ var Table = (props) => {
|
|
|
82686
82762
|
onSortChanged: onSortEventChanged,
|
|
82687
82763
|
onFilterChanged,
|
|
82688
82764
|
onFirstDataRendered: props.onFirstDataRendered,
|
|
82765
|
+
paginateChildRows: props.paginateChildRows,
|
|
82689
82766
|
pagination: props.pagination,
|
|
82690
82767
|
paginationPageSize: props.paginationPageSize || defaultPaginationPageSize,
|
|
82691
82768
|
popupParent: props.popupParent,
|
|
@@ -82718,18 +82795,14 @@ var Table = (props) => {
|
|
|
82718
82795
|
TablePagination,
|
|
82719
82796
|
{
|
|
82720
82797
|
gridApi,
|
|
82721
|
-
|
|
82722
|
-
pageSize: props.paginationPageSize,
|
|
82723
|
-
totalRowCount: internalTableContext.totalRowCount
|
|
82798
|
+
pageSize: props.paginationPageSize
|
|
82724
82799
|
}
|
|
82725
82800
|
)
|
|
82726
82801
|
);
|
|
82727
82802
|
};
|
|
82728
82803
|
var TablePagination = ({
|
|
82729
82804
|
gridApi,
|
|
82730
|
-
|
|
82731
|
-
pageSize,
|
|
82732
|
-
totalRowCount
|
|
82805
|
+
pageSize
|
|
82733
82806
|
}) => {
|
|
82734
82807
|
const [pagination, setPagination] = React83.useState({
|
|
82735
82808
|
page: 0,
|
|
@@ -82758,7 +82831,7 @@ var TablePagination = ({
|
|
|
82758
82831
|
{
|
|
82759
82832
|
activePage: pagination.page + 1,
|
|
82760
82833
|
"data-qa": "data-table-pagination",
|
|
82761
|
-
items:
|
|
82834
|
+
items: pagination.items,
|
|
82762
82835
|
onSelectPage: (_page) => {
|
|
82763
82836
|
gridApi == null ? void 0 : gridApi.paginationGoToPage(_page - 1);
|
|
82764
82837
|
},
|
|
@@ -82834,7 +82907,8 @@ var ClientSideDataTable = ({
|
|
|
82834
82907
|
onBulkEditUpdate,
|
|
82835
82908
|
onTableConfigChange,
|
|
82836
82909
|
translations: translations2 = {},
|
|
82837
|
-
enableCellTextSelection
|
|
82910
|
+
enableCellTextSelection,
|
|
82911
|
+
localStoragePersistenceKey
|
|
82838
82912
|
}) => {
|
|
82839
82913
|
return /* @__PURE__ */ React83.createElement(
|
|
82840
82914
|
DataTable,
|
|
@@ -82850,6 +82924,7 @@ var ClientSideDataTable = ({
|
|
|
82850
82924
|
onBulkEditUpdate,
|
|
82851
82925
|
showExpandCollapseAllToggle: true,
|
|
82852
82926
|
translations: translations2,
|
|
82927
|
+
localStoragePersistenceKey,
|
|
82853
82928
|
customBulkEditorFields,
|
|
82854
82929
|
enableCellTextSelection
|
|
82855
82930
|
},
|
|
@@ -87354,8 +87429,8 @@ var FilterListener = class FilterListener2 extends BeanStub {
|
|
|
87354
87429
|
Object.keys(allColKeysMap).forEach((key) => {
|
|
87355
87430
|
const oldJson = JSON.stringify(oldModel[key]);
|
|
87356
87431
|
const newJson = JSON.stringify(newModel[key]);
|
|
87357
|
-
const
|
|
87358
|
-
if (
|
|
87432
|
+
const filterChanged2 = oldJson != newJson;
|
|
87433
|
+
if (filterChanged2) {
|
|
87359
87434
|
res.push(key);
|
|
87360
87435
|
}
|
|
87361
87436
|
});
|
|
@@ -88266,7 +88341,8 @@ var ServerSideDataTable = ({
|
|
|
88266
88341
|
onTableConfigChange,
|
|
88267
88342
|
enableCellTextSelection,
|
|
88268
88343
|
showExpandCollapseAllToggle,
|
|
88269
|
-
translations: translations2 = {}
|
|
88344
|
+
translations: translations2 = {},
|
|
88345
|
+
localStoragePersistenceKey
|
|
88270
88346
|
}) => {
|
|
88271
88347
|
return /* @__PURE__ */ React83.createElement(
|
|
88272
88348
|
DataTable,
|
|
@@ -88284,7 +88360,8 @@ var ServerSideDataTable = ({
|
|
|
88284
88360
|
showExpandCollapseAllToggle,
|
|
88285
88361
|
translations: translations2,
|
|
88286
88362
|
customBulkEditorFields,
|
|
88287
|
-
enableCellTextSelection
|
|
88363
|
+
enableCellTextSelection,
|
|
88364
|
+
localStoragePersistenceKey
|
|
88288
88365
|
},
|
|
88289
88366
|
children
|
|
88290
88367
|
);
|