@procore/data-table 14.35.4 → 14.36.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/CHANGELOG.md +44 -0
- package/dist/legacy/index.cjs +32 -34
- package/dist/legacy/index.d.cts +12 -7
- package/dist/legacy/index.d.ts +12 -7
- package/dist/legacy/index.js +32 -34
- package/dist/modern/index.cjs +31 -32
- package/dist/modern/index.d.cts +12 -7
- package/dist/modern/index.d.ts +12 -7
- package/dist/modern/index.js +31 -32
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,49 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
+
## 14.36.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 6f750df: Add tooltip support for row selection checkboxes. Checkboxes can now display contextual information via the checkboxTooltip row data property.
|
|
8
|
+
|
|
9
|
+
## 14.36.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- d1578b0: Add UNSAFE_agGridInternalOverrides prop to detailRowConfig to allow custom AG Grid configuration for detail grids (nested tables)
|
|
14
|
+
|
|
15
|
+
### Patch Changes
|
|
16
|
+
|
|
17
|
+
- e850539: Remove deprecated `detailRowSelectionEnabled` prop and consolidate row selection logic within `detailRowConfig`.
|
|
18
|
+
|
|
19
|
+
**Changes:**
|
|
20
|
+
|
|
21
|
+
- Removed deprecated `detailRowSelectionEnabled` prop (deprecated since 11.13.0)
|
|
22
|
+
- Updated `DetailRowConfig.rowSelectionEnabled` type to use `RowSelectablePredicateParams` instead of `CheckboxSelectionCallbackParams`
|
|
23
|
+
- Refactored checkbox selection logic from `defaultColDef` to centralized `isRowSelectable` function
|
|
24
|
+
- Added RowSelection story demonstrating nested table row selection with parent disabled
|
|
25
|
+
- Added comprehensive e2e tests for nested table row selection functionality
|
|
26
|
+
|
|
27
|
+
**Migration:** If still using the deprecated `detailRowSelectionEnabled` prop, move it to `detailRowConfig.rowSelectionEnabled`:
|
|
28
|
+
|
|
29
|
+
```tsx
|
|
30
|
+
// Before
|
|
31
|
+
<DataTable.Table
|
|
32
|
+
detailRowSelectionEnabled={true}
|
|
33
|
+
detailRowConfig={{
|
|
34
|
+
// ... other config
|
|
35
|
+
}}
|
|
36
|
+
/>
|
|
37
|
+
|
|
38
|
+
// After
|
|
39
|
+
<DataTable.Table
|
|
40
|
+
detailRowConfig={{
|
|
41
|
+
rowSelectionEnabled: true,
|
|
42
|
+
// ... other config
|
|
43
|
+
}}
|
|
44
|
+
/>
|
|
45
|
+
```
|
|
46
|
+
|
|
3
47
|
## 14.35.4
|
|
4
48
|
|
|
5
49
|
### Patch Changes
|
package/dist/legacy/index.cjs
CHANGED
|
@@ -55450,7 +55450,7 @@ function getCheckboxState(node, isServerSideDataRequest, rowSelectionRef) {
|
|
|
55450
55450
|
};
|
|
55451
55451
|
}
|
|
55452
55452
|
function RowCheckbox(props) {
|
|
55453
|
-
var _a;
|
|
55453
|
+
var _a, _b, _c;
|
|
55454
55454
|
const I18n = coreReact.useI18nContext();
|
|
55455
55455
|
const { rowSelectionRef, onServerSideDataRequest } = useInternalTableContext();
|
|
55456
55456
|
const [_selected, setSelected] = React80.useState(props.node.isSelected());
|
|
@@ -55470,7 +55470,7 @@ function RowCheckbox(props) {
|
|
|
55470
55470
|
removeEventListenerFromGrid("rowSelected", handleRowSelection, props.api);
|
|
55471
55471
|
};
|
|
55472
55472
|
}, []);
|
|
55473
|
-
|
|
55473
|
+
let checkbox = /* @__PURE__ */ React80__default.default.createElement(
|
|
55474
55474
|
coreReact.Checkbox,
|
|
55475
55475
|
{
|
|
55476
55476
|
checked: selected,
|
|
@@ -55490,7 +55490,11 @@ function RowCheckbox(props) {
|
|
|
55490
55490
|
},
|
|
55491
55491
|
onChange: noop2
|
|
55492
55492
|
}
|
|
55493
|
-
)
|
|
55493
|
+
);
|
|
55494
|
+
if ((_b = props.data) == null ? void 0 : _b.checkboxTooltip) {
|
|
55495
|
+
checkbox = /* @__PURE__ */ React80__default.default.createElement(coreReact.Tooltip, { overlay: (_c = props.data) == null ? void 0 : _c.checkboxTooltip, placement: "right" }, /* @__PURE__ */ React80__default.default.createElement("span", null, checkbox));
|
|
55496
|
+
}
|
|
55497
|
+
return /* @__PURE__ */ React80__default.default.createElement(coreReact.Box, { paddingRight: "md" }, checkbox);
|
|
55494
55498
|
}
|
|
55495
55499
|
|
|
55496
55500
|
// src/CellRenderers/AutoGroupCell.tsx
|
|
@@ -81414,7 +81418,7 @@ __decorate216([
|
|
|
81414
81418
|
__decorate216([
|
|
81415
81419
|
Validate(NUMBER())
|
|
81416
81420
|
], TooltipPosition.prototype, "yOffset", void 0);
|
|
81417
|
-
var
|
|
81421
|
+
var Tooltip7 = class _Tooltip {
|
|
81418
81422
|
constructor(canvasElement, document2, container) {
|
|
81419
81423
|
this.enableInteraction = false;
|
|
81420
81424
|
this.enabled = true;
|
|
@@ -81550,25 +81554,25 @@ var Tooltip6 = class _Tooltip {
|
|
|
81550
81554
|
this._showArrow = show;
|
|
81551
81555
|
}
|
|
81552
81556
|
};
|
|
81553
|
-
|
|
81557
|
+
Tooltip7.tooltipDocuments = [];
|
|
81554
81558
|
__decorate216([
|
|
81555
81559
|
Validate(BOOLEAN)
|
|
81556
|
-
],
|
|
81560
|
+
], Tooltip7.prototype, "enabled", void 0);
|
|
81557
81561
|
__decorate216([
|
|
81558
81562
|
Validate(OPT_BOOLEAN)
|
|
81559
|
-
],
|
|
81563
|
+
], Tooltip7.prototype, "showArrow", void 0);
|
|
81560
81564
|
__decorate216([
|
|
81561
81565
|
Validate(OPT_STRING)
|
|
81562
|
-
],
|
|
81566
|
+
], Tooltip7.prototype, "class", void 0);
|
|
81563
81567
|
__decorate216([
|
|
81564
81568
|
Validate(NUMBER(0))
|
|
81565
|
-
],
|
|
81569
|
+
], Tooltip7.prototype, "delay", void 0);
|
|
81566
81570
|
__decorate216([
|
|
81567
81571
|
DeprecatedAndRenamedTo("range", (value) => value ? "nearest" : "exact")
|
|
81568
|
-
],
|
|
81572
|
+
], Tooltip7.prototype, "tracking", void 0);
|
|
81569
81573
|
__decorate216([
|
|
81570
81574
|
Validate(INTERACTION_RANGE)
|
|
81571
|
-
],
|
|
81575
|
+
], Tooltip7.prototype, "range", void 0);
|
|
81572
81576
|
|
|
81573
81577
|
// ../../node_modules/ag-charts-community/dist/esm/es6/chart/data/aggregateFunctions.mjs
|
|
81574
81578
|
function sumValues(values2, accumulator = [0, 0]) {
|
|
@@ -86553,7 +86557,7 @@ var Chart = class extends Observable {
|
|
|
86553
86557
|
this.animationManager = new AnimationManager(this.interactionManager);
|
|
86554
86558
|
this.animationManager.skipAnimations = true;
|
|
86555
86559
|
this.animationManager.play();
|
|
86556
|
-
this.tooltip = new
|
|
86560
|
+
this.tooltip = new Tooltip7(this.scene.canvas.element, document2, document2.body);
|
|
86557
86561
|
this.tooltipManager = new TooltipManager(this.tooltip, this.interactionManager);
|
|
86558
86562
|
this.overlays = new ChartOverlays(this.element);
|
|
86559
86563
|
this.highlight = new ChartHighlight();
|
|
@@ -101009,7 +101013,7 @@ __export(integrated_charts_scene_exports, {
|
|
|
101009
101013
|
Shape: () => Shape,
|
|
101010
101014
|
Square: () => Square,
|
|
101011
101015
|
Text: () => Text,
|
|
101012
|
-
Tooltip: () =>
|
|
101016
|
+
Tooltip: () => Tooltip7,
|
|
101013
101017
|
getFont: () => getFont2,
|
|
101014
101018
|
getMarker: () => getMarker,
|
|
101015
101019
|
toRadians: () => toRadians,
|
|
@@ -104339,12 +104343,10 @@ var buildDetailRowsConfig = ({
|
|
|
104339
104343
|
frameworkComponents,
|
|
104340
104344
|
getRowHeight,
|
|
104341
104345
|
emptyStateRenderer,
|
|
104342
|
-
detailRowSelectionEnabled: detailRowSelectionEnabled_,
|
|
104343
104346
|
enableGroupEditAndValidation,
|
|
104344
104347
|
enableDynamicRowHeight,
|
|
104345
104348
|
isServerSideRowModel
|
|
104346
104349
|
}) => {
|
|
104347
|
-
const detailRowSelectionEnabled = detailRowSelectionEnabled_ ?? false;
|
|
104348
104350
|
if (detailRowConfig === void 0) {
|
|
104349
104351
|
return {};
|
|
104350
104352
|
}
|
|
@@ -104353,7 +104355,6 @@ var buildDetailRowsConfig = ({
|
|
|
104353
104355
|
frameworkComponents,
|
|
104354
104356
|
getRowHeight,
|
|
104355
104357
|
emptyStateRenderer,
|
|
104356
|
-
detailRowSelectionEnabled,
|
|
104357
104358
|
enableGroupEditAndValidation,
|
|
104358
104359
|
enableDynamicRowHeight,
|
|
104359
104360
|
isServerSideRowModel
|
|
@@ -104364,7 +104365,6 @@ var buildDetailRowsConfig_ = (detailRowConfig, {
|
|
|
104364
104365
|
frameworkComponents,
|
|
104365
104366
|
getRowHeight,
|
|
104366
104367
|
emptyStateRenderer,
|
|
104367
|
-
detailRowSelectionEnabled: deprecatedDetailRowSelectionEnabled,
|
|
104368
104368
|
enableGroupEditAndValidation,
|
|
104369
104369
|
enableDynamicRowHeight,
|
|
104370
104370
|
isServerSideRowModel
|
|
@@ -104379,7 +104379,18 @@ var buildDetailRowsConfig_ = (detailRowConfig, {
|
|
|
104379
104379
|
}
|
|
104380
104380
|
};
|
|
104381
104381
|
const rowHeightConfig = detailRowConfig.height === "auto" || detailRowConfig.height === void 0 ? { detailRowAutoHeight: true } : { detailRowHeight: detailRowConfig.height };
|
|
104382
|
-
const isRowSelectable = () =>
|
|
104382
|
+
const isRowSelectable = (node) => {
|
|
104383
|
+
if (typeof detailRowConfig.rowSelectionEnabled === "boolean") {
|
|
104384
|
+
return detailRowConfig.rowSelectionEnabled;
|
|
104385
|
+
}
|
|
104386
|
+
if (typeof detailRowConfig.rowSelectionEnabled === "function") {
|
|
104387
|
+
return isRowSelectionEnabledForRow(
|
|
104388
|
+
detailRowConfig.rowSelectionEnabled,
|
|
104389
|
+
node
|
|
104390
|
+
);
|
|
104391
|
+
}
|
|
104392
|
+
return false;
|
|
104393
|
+
};
|
|
104383
104394
|
return {
|
|
104384
104395
|
isRowMaster: detailRowConfig.isExpandable,
|
|
104385
104396
|
masterDetail: true,
|
|
@@ -104420,18 +104431,7 @@ var buildDetailRowsConfig_ = (detailRowConfig, {
|
|
|
104420
104431
|
onRowSelected: detailRowConfig.onRowSelected ?? null,
|
|
104421
104432
|
refreshStrategy: detailRowConfig.refreshStrategy || "everything",
|
|
104422
104433
|
aggFuncs: aggregationFunctions_exports,
|
|
104423
|
-
defaultColDef
|
|
104424
|
-
...defaultColDef,
|
|
104425
|
-
checkboxSelection(params) {
|
|
104426
|
-
var _a, _b, _c;
|
|
104427
|
-
const rowSelectionEnabled = detailRowConfig.rowSelectionEnabled ?? deprecatedDetailRowSelectionEnabled;
|
|
104428
|
-
const rowSelectionEnabledValue = typeof rowSelectionEnabled === "function" ? rowSelectionEnabled(params) : rowSelectionEnabled ?? false;
|
|
104429
|
-
if (!rowSelectionEnabledValue) {
|
|
104430
|
-
return false;
|
|
104431
|
-
}
|
|
104432
|
-
return ((_c = (_b = (_a = params.columnApi) == null ? void 0 : _a.getRowGroupColumns) == null ? void 0 : _b.call(_a)) == null ? void 0 : _c.length) === 0 && isFirstColumn(params);
|
|
104433
|
-
}
|
|
104434
|
-
},
|
|
104434
|
+
defaultColDef,
|
|
104435
104435
|
rowSelection: detailRowConfig.rowSelection,
|
|
104436
104436
|
rowMultiSelectWithClick: detailRowConfig.rowMultiSelectWithClick,
|
|
104437
104437
|
suppressRowClickSelection: detailRowConfig.suppressRowClickSelection ?? true,
|
|
@@ -104451,7 +104451,8 @@ var buildDetailRowsConfig_ = (detailRowConfig, {
|
|
|
104451
104451
|
suppressAggFuncInHeader: true,
|
|
104452
104452
|
suppressContextMenu: true,
|
|
104453
104453
|
suppressColumnVirtualisation: true,
|
|
104454
|
-
getRowHeight: getRowHeight == null ? void 0 : getRowHeight(detailRowConfig.customFooters)
|
|
104454
|
+
getRowHeight: getRowHeight == null ? void 0 : getRowHeight(detailRowConfig.customFooters),
|
|
104455
|
+
...detailRowConfig.UNSAFE_agGridInternalOverrides ?? {}
|
|
104455
104456
|
},
|
|
104456
104457
|
getDetailRowData: detailRowConfig.getDetailRowData
|
|
104457
104458
|
};
|
|
@@ -109348,7 +109349,6 @@ var Table = (props) => {
|
|
|
109348
109349
|
[
|
|
109349
109350
|
columnGroupBordersEnabled,
|
|
109350
109351
|
props.showGroupChildCount,
|
|
109351
|
-
props.detailRowSelectionEnabled,
|
|
109352
109352
|
props.detailRowConfigs,
|
|
109353
109353
|
props.detailRowConfig
|
|
109354
109354
|
]
|
|
@@ -109360,13 +109360,11 @@ var Table = (props) => {
|
|
|
109360
109360
|
frameworkComponents: frameworkComponents.detail,
|
|
109361
109361
|
getRowHeight,
|
|
109362
109362
|
emptyStateRenderer: props.emptyStateRenderer,
|
|
109363
|
-
detailRowSelectionEnabled: props.detailRowSelectionEnabled,
|
|
109364
109363
|
enableGroupEditAndValidation: internalTableContext.enableGroupEditAndValidation,
|
|
109365
109364
|
enableDynamicRowHeight: internalTableContext.enableDynamicRowHeight,
|
|
109366
109365
|
isServerSideRowModel: !!internalTableContext.onServerSideDataRequest
|
|
109367
109366
|
});
|
|
109368
109367
|
}, [
|
|
109369
|
-
props.detailRowSelectionEnabled,
|
|
109370
109368
|
props.detailRowConfigs,
|
|
109371
109369
|
props.detailRowConfig,
|
|
109372
109370
|
defaultColDef,
|
package/dist/legacy/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as _ag_grid_community_core from '@ag-grid-community/core';
|
|
2
|
-
import { ICellRendererParams, NumberFilterModel as NumberFilterModel$1, ColDef, IRowNode, ICellEditorParams, ColumnPinnedType, RowHeightParams, GetRowIdParams, RowDataTransaction, RowNodeTransaction, ServerSideTransaction, GridApi, ICellEditor, RefreshCellsParams, RowNode as RowNode$1, Column, SelectionEventSourceType,
|
|
2
|
+
import { ICellRendererParams, NumberFilterModel as NumberFilterModel$1, ColDef, IRowNode, ICellEditorParams, ColumnPinnedType, RowHeightParams, GetRowIdParams, RowDataTransaction, RowNodeTransaction, ServerSideTransaction, GridApi, ICellEditor, RefreshCellsParams, RowNode as RowNode$1, Column, SelectionEventSourceType, RowSelectedEvent, ExcelDataType, Module, RowGroupOpenedEvent, ColumnEverythingChangedEvent, CellFocusedEvent, ColumnApi, TabToNextCellParams, CellPosition, IFilter, IScalarFilterParams, ISimpleFilterParams } from '@ag-grid-community/core';
|
|
3
3
|
import * as React$1 from 'react';
|
|
4
4
|
import React__default from 'react';
|
|
5
5
|
import { AgGridReactProps, AgReactUiProps } from '@ag-grid-community/react';
|
|
@@ -755,11 +755,21 @@ interface DetailRowConfig<TRow = any> {
|
|
|
755
755
|
customFooters?: CustomFooterConfig[];
|
|
756
756
|
/** See ag-grid docs for more info: https://www.ag-grid.com/javascript-data-grid/master-detail-refresh/ */
|
|
757
757
|
refreshStrategy?: 'everything' | 'rows' | 'nothing';
|
|
758
|
-
rowSelectionEnabled?: boolean | ((params:
|
|
758
|
+
rowSelectionEnabled?: boolean | ((params: RowSelectablePredicateParams<TRow>) => boolean);
|
|
759
759
|
rowSelection?: 'multiple' | 'single';
|
|
760
760
|
rowMultiSelectWithClick?: boolean;
|
|
761
761
|
suppressRowClickSelection?: boolean;
|
|
762
762
|
onRowSelected?: (event: RowSelectedEvent) => void;
|
|
763
|
+
/**
|
|
764
|
+
* Overrides internal props for the detail grid's AgGridReact component. This is not guaranteed under DataTable SemVer
|
|
765
|
+
* and can break during any upgrade of the ag-grid-react package
|
|
766
|
+
*
|
|
767
|
+
* For documentation see: {@link https://www.ag-grid.com/react-data-grid/grid-options/}
|
|
768
|
+
* The ag-grid changelog can be found here: {@link https://www.ag-grid.com/changelog/}
|
|
769
|
+
*
|
|
770
|
+
* Warning: This can break normal Data Table functionality.
|
|
771
|
+
*/
|
|
772
|
+
UNSAFE_agGridInternalOverrides?: AgGridReactProps | AgReactUiProps;
|
|
763
773
|
}
|
|
764
774
|
type CustomRendererCell = {
|
|
765
775
|
component: React.ComponentType<any>;
|
|
@@ -972,11 +982,6 @@ interface TableProps<TRow = any, TBottomRow = any> {
|
|
|
972
982
|
*/
|
|
973
983
|
detailRowConfigs?: DetailRowConfig<TRow>[];
|
|
974
984
|
detailRowConfig?: DetailRowConfig<TRow>;
|
|
975
|
-
/**
|
|
976
|
-
* @deprecated Please use `detailRowConfig.rowSelectionEnabled` instead
|
|
977
|
-
* @deprecatedSince 11.13.0
|
|
978
|
-
*/
|
|
979
|
-
detailRowSelectionEnabled?: boolean;
|
|
980
985
|
siblingGroupsRowSelectionDisabled?: boolean;
|
|
981
986
|
emptyStateRenderer?: React.FunctionComponent;
|
|
982
987
|
excelDataTypeFormats?: DTExcelFormats[];
|
package/dist/legacy/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as _ag_grid_community_core from '@ag-grid-community/core';
|
|
2
|
-
import { ICellRendererParams, NumberFilterModel as NumberFilterModel$1, ColDef, IRowNode, ICellEditorParams, ColumnPinnedType, RowHeightParams, GetRowIdParams, RowDataTransaction, RowNodeTransaction, ServerSideTransaction, GridApi, ICellEditor, RefreshCellsParams, RowNode as RowNode$1, Column, SelectionEventSourceType,
|
|
2
|
+
import { ICellRendererParams, NumberFilterModel as NumberFilterModel$1, ColDef, IRowNode, ICellEditorParams, ColumnPinnedType, RowHeightParams, GetRowIdParams, RowDataTransaction, RowNodeTransaction, ServerSideTransaction, GridApi, ICellEditor, RefreshCellsParams, RowNode as RowNode$1, Column, SelectionEventSourceType, RowSelectedEvent, ExcelDataType, Module, RowGroupOpenedEvent, ColumnEverythingChangedEvent, CellFocusedEvent, ColumnApi, TabToNextCellParams, CellPosition, IFilter, IScalarFilterParams, ISimpleFilterParams } from '@ag-grid-community/core';
|
|
3
3
|
import * as React$1 from 'react';
|
|
4
4
|
import React__default from 'react';
|
|
5
5
|
import { AgGridReactProps, AgReactUiProps } from '@ag-grid-community/react';
|
|
@@ -755,11 +755,21 @@ interface DetailRowConfig<TRow = any> {
|
|
|
755
755
|
customFooters?: CustomFooterConfig[];
|
|
756
756
|
/** See ag-grid docs for more info: https://www.ag-grid.com/javascript-data-grid/master-detail-refresh/ */
|
|
757
757
|
refreshStrategy?: 'everything' | 'rows' | 'nothing';
|
|
758
|
-
rowSelectionEnabled?: boolean | ((params:
|
|
758
|
+
rowSelectionEnabled?: boolean | ((params: RowSelectablePredicateParams<TRow>) => boolean);
|
|
759
759
|
rowSelection?: 'multiple' | 'single';
|
|
760
760
|
rowMultiSelectWithClick?: boolean;
|
|
761
761
|
suppressRowClickSelection?: boolean;
|
|
762
762
|
onRowSelected?: (event: RowSelectedEvent) => void;
|
|
763
|
+
/**
|
|
764
|
+
* Overrides internal props for the detail grid's AgGridReact component. This is not guaranteed under DataTable SemVer
|
|
765
|
+
* and can break during any upgrade of the ag-grid-react package
|
|
766
|
+
*
|
|
767
|
+
* For documentation see: {@link https://www.ag-grid.com/react-data-grid/grid-options/}
|
|
768
|
+
* The ag-grid changelog can be found here: {@link https://www.ag-grid.com/changelog/}
|
|
769
|
+
*
|
|
770
|
+
* Warning: This can break normal Data Table functionality.
|
|
771
|
+
*/
|
|
772
|
+
UNSAFE_agGridInternalOverrides?: AgGridReactProps | AgReactUiProps;
|
|
763
773
|
}
|
|
764
774
|
type CustomRendererCell = {
|
|
765
775
|
component: React.ComponentType<any>;
|
|
@@ -972,11 +982,6 @@ interface TableProps<TRow = any, TBottomRow = any> {
|
|
|
972
982
|
*/
|
|
973
983
|
detailRowConfigs?: DetailRowConfig<TRow>[];
|
|
974
984
|
detailRowConfig?: DetailRowConfig<TRow>;
|
|
975
|
-
/**
|
|
976
|
-
* @deprecated Please use `detailRowConfig.rowSelectionEnabled` instead
|
|
977
|
-
* @deprecatedSince 11.13.0
|
|
978
|
-
*/
|
|
979
|
-
detailRowSelectionEnabled?: boolean;
|
|
980
985
|
siblingGroupsRowSelectionDisabled?: boolean;
|
|
981
986
|
emptyStateRenderer?: React.FunctionComponent;
|
|
982
987
|
excelDataTypeFormats?: DTExcelFormats[];
|
package/dist/legacy/index.js
CHANGED
|
@@ -55437,7 +55437,7 @@ function getCheckboxState(node, isServerSideDataRequest, rowSelectionRef) {
|
|
|
55437
55437
|
};
|
|
55438
55438
|
}
|
|
55439
55439
|
function RowCheckbox(props) {
|
|
55440
|
-
var _a;
|
|
55440
|
+
var _a, _b, _c;
|
|
55441
55441
|
const I18n = useI18nContext();
|
|
55442
55442
|
const { rowSelectionRef, onServerSideDataRequest } = useInternalTableContext();
|
|
55443
55443
|
const [_selected, setSelected] = useState(props.node.isSelected());
|
|
@@ -55457,7 +55457,7 @@ function RowCheckbox(props) {
|
|
|
55457
55457
|
removeEventListenerFromGrid("rowSelected", handleRowSelection, props.api);
|
|
55458
55458
|
};
|
|
55459
55459
|
}, []);
|
|
55460
|
-
|
|
55460
|
+
let checkbox = /* @__PURE__ */ React80.createElement(
|
|
55461
55461
|
Checkbox,
|
|
55462
55462
|
{
|
|
55463
55463
|
checked: selected,
|
|
@@ -55477,7 +55477,11 @@ function RowCheckbox(props) {
|
|
|
55477
55477
|
},
|
|
55478
55478
|
onChange: noop2
|
|
55479
55479
|
}
|
|
55480
|
-
)
|
|
55480
|
+
);
|
|
55481
|
+
if ((_b = props.data) == null ? void 0 : _b.checkboxTooltip) {
|
|
55482
|
+
checkbox = /* @__PURE__ */ React80.createElement(Tooltip, { overlay: (_c = props.data) == null ? void 0 : _c.checkboxTooltip, placement: "right" }, /* @__PURE__ */ React80.createElement("span", null, checkbox));
|
|
55483
|
+
}
|
|
55484
|
+
return /* @__PURE__ */ React80.createElement(Box, { paddingRight: "md" }, checkbox);
|
|
55481
55485
|
}
|
|
55482
55486
|
|
|
55483
55487
|
// src/CellRenderers/AutoGroupCell.tsx
|
|
@@ -81401,7 +81405,7 @@ __decorate216([
|
|
|
81401
81405
|
__decorate216([
|
|
81402
81406
|
Validate(NUMBER())
|
|
81403
81407
|
], TooltipPosition.prototype, "yOffset", void 0);
|
|
81404
|
-
var
|
|
81408
|
+
var Tooltip7 = class _Tooltip {
|
|
81405
81409
|
constructor(canvasElement, document2, container) {
|
|
81406
81410
|
this.enableInteraction = false;
|
|
81407
81411
|
this.enabled = true;
|
|
@@ -81537,25 +81541,25 @@ var Tooltip6 = class _Tooltip {
|
|
|
81537
81541
|
this._showArrow = show;
|
|
81538
81542
|
}
|
|
81539
81543
|
};
|
|
81540
|
-
|
|
81544
|
+
Tooltip7.tooltipDocuments = [];
|
|
81541
81545
|
__decorate216([
|
|
81542
81546
|
Validate(BOOLEAN)
|
|
81543
|
-
],
|
|
81547
|
+
], Tooltip7.prototype, "enabled", void 0);
|
|
81544
81548
|
__decorate216([
|
|
81545
81549
|
Validate(OPT_BOOLEAN)
|
|
81546
|
-
],
|
|
81550
|
+
], Tooltip7.prototype, "showArrow", void 0);
|
|
81547
81551
|
__decorate216([
|
|
81548
81552
|
Validate(OPT_STRING)
|
|
81549
|
-
],
|
|
81553
|
+
], Tooltip7.prototype, "class", void 0);
|
|
81550
81554
|
__decorate216([
|
|
81551
81555
|
Validate(NUMBER(0))
|
|
81552
|
-
],
|
|
81556
|
+
], Tooltip7.prototype, "delay", void 0);
|
|
81553
81557
|
__decorate216([
|
|
81554
81558
|
DeprecatedAndRenamedTo("range", (value) => value ? "nearest" : "exact")
|
|
81555
|
-
],
|
|
81559
|
+
], Tooltip7.prototype, "tracking", void 0);
|
|
81556
81560
|
__decorate216([
|
|
81557
81561
|
Validate(INTERACTION_RANGE)
|
|
81558
|
-
],
|
|
81562
|
+
], Tooltip7.prototype, "range", void 0);
|
|
81559
81563
|
|
|
81560
81564
|
// ../../node_modules/ag-charts-community/dist/esm/es6/chart/data/aggregateFunctions.mjs
|
|
81561
81565
|
function sumValues(values2, accumulator = [0, 0]) {
|
|
@@ -86540,7 +86544,7 @@ var Chart = class extends Observable {
|
|
|
86540
86544
|
this.animationManager = new AnimationManager(this.interactionManager);
|
|
86541
86545
|
this.animationManager.skipAnimations = true;
|
|
86542
86546
|
this.animationManager.play();
|
|
86543
|
-
this.tooltip = new
|
|
86547
|
+
this.tooltip = new Tooltip7(this.scene.canvas.element, document2, document2.body);
|
|
86544
86548
|
this.tooltipManager = new TooltipManager(this.tooltip, this.interactionManager);
|
|
86545
86549
|
this.overlays = new ChartOverlays(this.element);
|
|
86546
86550
|
this.highlight = new ChartHighlight();
|
|
@@ -100996,7 +101000,7 @@ __export(integrated_charts_scene_exports, {
|
|
|
100996
101000
|
Shape: () => Shape,
|
|
100997
101001
|
Square: () => Square,
|
|
100998
101002
|
Text: () => Text,
|
|
100999
|
-
Tooltip: () =>
|
|
101003
|
+
Tooltip: () => Tooltip7,
|
|
101000
101004
|
getFont: () => getFont2,
|
|
101001
101005
|
getMarker: () => getMarker,
|
|
101002
101006
|
toRadians: () => toRadians,
|
|
@@ -104326,12 +104330,10 @@ var buildDetailRowsConfig = ({
|
|
|
104326
104330
|
frameworkComponents,
|
|
104327
104331
|
getRowHeight,
|
|
104328
104332
|
emptyStateRenderer,
|
|
104329
|
-
detailRowSelectionEnabled: detailRowSelectionEnabled_,
|
|
104330
104333
|
enableGroupEditAndValidation,
|
|
104331
104334
|
enableDynamicRowHeight,
|
|
104332
104335
|
isServerSideRowModel
|
|
104333
104336
|
}) => {
|
|
104334
|
-
const detailRowSelectionEnabled = detailRowSelectionEnabled_ ?? false;
|
|
104335
104337
|
if (detailRowConfig === void 0) {
|
|
104336
104338
|
return {};
|
|
104337
104339
|
}
|
|
@@ -104340,7 +104342,6 @@ var buildDetailRowsConfig = ({
|
|
|
104340
104342
|
frameworkComponents,
|
|
104341
104343
|
getRowHeight,
|
|
104342
104344
|
emptyStateRenderer,
|
|
104343
|
-
detailRowSelectionEnabled,
|
|
104344
104345
|
enableGroupEditAndValidation,
|
|
104345
104346
|
enableDynamicRowHeight,
|
|
104346
104347
|
isServerSideRowModel
|
|
@@ -104351,7 +104352,6 @@ var buildDetailRowsConfig_ = (detailRowConfig, {
|
|
|
104351
104352
|
frameworkComponents,
|
|
104352
104353
|
getRowHeight,
|
|
104353
104354
|
emptyStateRenderer,
|
|
104354
|
-
detailRowSelectionEnabled: deprecatedDetailRowSelectionEnabled,
|
|
104355
104355
|
enableGroupEditAndValidation,
|
|
104356
104356
|
enableDynamicRowHeight,
|
|
104357
104357
|
isServerSideRowModel
|
|
@@ -104366,7 +104366,18 @@ var buildDetailRowsConfig_ = (detailRowConfig, {
|
|
|
104366
104366
|
}
|
|
104367
104367
|
};
|
|
104368
104368
|
const rowHeightConfig = detailRowConfig.height === "auto" || detailRowConfig.height === void 0 ? { detailRowAutoHeight: true } : { detailRowHeight: detailRowConfig.height };
|
|
104369
|
-
const isRowSelectable = () =>
|
|
104369
|
+
const isRowSelectable = (node) => {
|
|
104370
|
+
if (typeof detailRowConfig.rowSelectionEnabled === "boolean") {
|
|
104371
|
+
return detailRowConfig.rowSelectionEnabled;
|
|
104372
|
+
}
|
|
104373
|
+
if (typeof detailRowConfig.rowSelectionEnabled === "function") {
|
|
104374
|
+
return isRowSelectionEnabledForRow(
|
|
104375
|
+
detailRowConfig.rowSelectionEnabled,
|
|
104376
|
+
node
|
|
104377
|
+
);
|
|
104378
|
+
}
|
|
104379
|
+
return false;
|
|
104380
|
+
};
|
|
104370
104381
|
return {
|
|
104371
104382
|
isRowMaster: detailRowConfig.isExpandable,
|
|
104372
104383
|
masterDetail: true,
|
|
@@ -104407,18 +104418,7 @@ var buildDetailRowsConfig_ = (detailRowConfig, {
|
|
|
104407
104418
|
onRowSelected: detailRowConfig.onRowSelected ?? null,
|
|
104408
104419
|
refreshStrategy: detailRowConfig.refreshStrategy || "everything",
|
|
104409
104420
|
aggFuncs: aggregationFunctions_exports,
|
|
104410
|
-
defaultColDef
|
|
104411
|
-
...defaultColDef,
|
|
104412
|
-
checkboxSelection(params) {
|
|
104413
|
-
var _a, _b, _c;
|
|
104414
|
-
const rowSelectionEnabled = detailRowConfig.rowSelectionEnabled ?? deprecatedDetailRowSelectionEnabled;
|
|
104415
|
-
const rowSelectionEnabledValue = typeof rowSelectionEnabled === "function" ? rowSelectionEnabled(params) : rowSelectionEnabled ?? false;
|
|
104416
|
-
if (!rowSelectionEnabledValue) {
|
|
104417
|
-
return false;
|
|
104418
|
-
}
|
|
104419
|
-
return ((_c = (_b = (_a = params.columnApi) == null ? void 0 : _a.getRowGroupColumns) == null ? void 0 : _b.call(_a)) == null ? void 0 : _c.length) === 0 && isFirstColumn(params);
|
|
104420
|
-
}
|
|
104421
|
-
},
|
|
104421
|
+
defaultColDef,
|
|
104422
104422
|
rowSelection: detailRowConfig.rowSelection,
|
|
104423
104423
|
rowMultiSelectWithClick: detailRowConfig.rowMultiSelectWithClick,
|
|
104424
104424
|
suppressRowClickSelection: detailRowConfig.suppressRowClickSelection ?? true,
|
|
@@ -104438,7 +104438,8 @@ var buildDetailRowsConfig_ = (detailRowConfig, {
|
|
|
104438
104438
|
suppressAggFuncInHeader: true,
|
|
104439
104439
|
suppressContextMenu: true,
|
|
104440
104440
|
suppressColumnVirtualisation: true,
|
|
104441
|
-
getRowHeight: getRowHeight == null ? void 0 : getRowHeight(detailRowConfig.customFooters)
|
|
104441
|
+
getRowHeight: getRowHeight == null ? void 0 : getRowHeight(detailRowConfig.customFooters),
|
|
104442
|
+
...detailRowConfig.UNSAFE_agGridInternalOverrides ?? {}
|
|
104442
104443
|
},
|
|
104443
104444
|
getDetailRowData: detailRowConfig.getDetailRowData
|
|
104444
104445
|
};
|
|
@@ -109335,7 +109336,6 @@ var Table = (props) => {
|
|
|
109335
109336
|
[
|
|
109336
109337
|
columnGroupBordersEnabled,
|
|
109337
109338
|
props.showGroupChildCount,
|
|
109338
|
-
props.detailRowSelectionEnabled,
|
|
109339
109339
|
props.detailRowConfigs,
|
|
109340
109340
|
props.detailRowConfig
|
|
109341
109341
|
]
|
|
@@ -109347,13 +109347,11 @@ var Table = (props) => {
|
|
|
109347
109347
|
frameworkComponents: frameworkComponents.detail,
|
|
109348
109348
|
getRowHeight,
|
|
109349
109349
|
emptyStateRenderer: props.emptyStateRenderer,
|
|
109350
|
-
detailRowSelectionEnabled: props.detailRowSelectionEnabled,
|
|
109351
109350
|
enableGroupEditAndValidation: internalTableContext.enableGroupEditAndValidation,
|
|
109352
109351
|
enableDynamicRowHeight: internalTableContext.enableDynamicRowHeight,
|
|
109353
109352
|
isServerSideRowModel: !!internalTableContext.onServerSideDataRequest
|
|
109354
109353
|
});
|
|
109355
109354
|
}, [
|
|
109356
|
-
props.detailRowSelectionEnabled,
|
|
109357
109355
|
props.detailRowConfigs,
|
|
109358
109356
|
props.detailRowConfig,
|
|
109359
109357
|
defaultColDef,
|
package/dist/modern/index.cjs
CHANGED
|
@@ -55407,7 +55407,7 @@ function RowCheckbox(props) {
|
|
|
55407
55407
|
removeEventListenerFromGrid("rowSelected", handleRowSelection, props.api);
|
|
55408
55408
|
};
|
|
55409
55409
|
}, []);
|
|
55410
|
-
|
|
55410
|
+
let checkbox = /* @__PURE__ */ React80__default.default.createElement(
|
|
55411
55411
|
coreReact.Checkbox,
|
|
55412
55412
|
{
|
|
55413
55413
|
checked: selected,
|
|
@@ -55426,7 +55426,11 @@ function RowCheckbox(props) {
|
|
|
55426
55426
|
},
|
|
55427
55427
|
onChange: noop2
|
|
55428
55428
|
}
|
|
55429
|
-
)
|
|
55429
|
+
);
|
|
55430
|
+
if (props.data?.checkboxTooltip) {
|
|
55431
|
+
checkbox = /* @__PURE__ */ React80__default.default.createElement(coreReact.Tooltip, { overlay: props.data?.checkboxTooltip, placement: "right" }, /* @__PURE__ */ React80__default.default.createElement("span", null, checkbox));
|
|
55432
|
+
}
|
|
55433
|
+
return /* @__PURE__ */ React80__default.default.createElement(coreReact.Box, { paddingRight: "md" }, checkbox);
|
|
55430
55434
|
}
|
|
55431
55435
|
|
|
55432
55436
|
// src/CellRenderers/AutoGroupCell.tsx
|
|
@@ -81311,7 +81315,7 @@ __decorate216([
|
|
|
81311
81315
|
__decorate216([
|
|
81312
81316
|
Validate(NUMBER())
|
|
81313
81317
|
], TooltipPosition.prototype, "yOffset", void 0);
|
|
81314
|
-
var
|
|
81318
|
+
var Tooltip7 = class _Tooltip {
|
|
81315
81319
|
constructor(canvasElement, document2, container) {
|
|
81316
81320
|
this.enableInteraction = false;
|
|
81317
81321
|
this.enabled = true;
|
|
@@ -81447,25 +81451,25 @@ var Tooltip6 = class _Tooltip {
|
|
|
81447
81451
|
this._showArrow = show;
|
|
81448
81452
|
}
|
|
81449
81453
|
};
|
|
81450
|
-
|
|
81454
|
+
Tooltip7.tooltipDocuments = [];
|
|
81451
81455
|
__decorate216([
|
|
81452
81456
|
Validate(BOOLEAN)
|
|
81453
|
-
],
|
|
81457
|
+
], Tooltip7.prototype, "enabled", void 0);
|
|
81454
81458
|
__decorate216([
|
|
81455
81459
|
Validate(OPT_BOOLEAN)
|
|
81456
|
-
],
|
|
81460
|
+
], Tooltip7.prototype, "showArrow", void 0);
|
|
81457
81461
|
__decorate216([
|
|
81458
81462
|
Validate(OPT_STRING)
|
|
81459
|
-
],
|
|
81463
|
+
], Tooltip7.prototype, "class", void 0);
|
|
81460
81464
|
__decorate216([
|
|
81461
81465
|
Validate(NUMBER(0))
|
|
81462
|
-
],
|
|
81466
|
+
], Tooltip7.prototype, "delay", void 0);
|
|
81463
81467
|
__decorate216([
|
|
81464
81468
|
DeprecatedAndRenamedTo("range", (value) => value ? "nearest" : "exact")
|
|
81465
|
-
],
|
|
81469
|
+
], Tooltip7.prototype, "tracking", void 0);
|
|
81466
81470
|
__decorate216([
|
|
81467
81471
|
Validate(INTERACTION_RANGE)
|
|
81468
|
-
],
|
|
81472
|
+
], Tooltip7.prototype, "range", void 0);
|
|
81469
81473
|
|
|
81470
81474
|
// ../../node_modules/ag-charts-community/dist/esm/es6/chart/data/aggregateFunctions.mjs
|
|
81471
81475
|
function sumValues(values2, accumulator = [0, 0]) {
|
|
@@ -86450,7 +86454,7 @@ var Chart = class extends Observable {
|
|
|
86450
86454
|
this.animationManager = new AnimationManager(this.interactionManager);
|
|
86451
86455
|
this.animationManager.skipAnimations = true;
|
|
86452
86456
|
this.animationManager.play();
|
|
86453
|
-
this.tooltip = new
|
|
86457
|
+
this.tooltip = new Tooltip7(this.scene.canvas.element, document2, document2.body);
|
|
86454
86458
|
this.tooltipManager = new TooltipManager(this.tooltip, this.interactionManager);
|
|
86455
86459
|
this.overlays = new ChartOverlays(this.element);
|
|
86456
86460
|
this.highlight = new ChartHighlight();
|
|
@@ -100906,7 +100910,7 @@ __export(integrated_charts_scene_exports, {
|
|
|
100906
100910
|
Shape: () => Shape,
|
|
100907
100911
|
Square: () => Square,
|
|
100908
100912
|
Text: () => Text,
|
|
100909
|
-
Tooltip: () =>
|
|
100913
|
+
Tooltip: () => Tooltip7,
|
|
100910
100914
|
getFont: () => getFont2,
|
|
100911
100915
|
getMarker: () => getMarker,
|
|
100912
100916
|
toRadians: () => toRadians,
|
|
@@ -104205,12 +104209,10 @@ var buildDetailRowsConfig = ({
|
|
|
104205
104209
|
frameworkComponents,
|
|
104206
104210
|
getRowHeight,
|
|
104207
104211
|
emptyStateRenderer,
|
|
104208
|
-
detailRowSelectionEnabled: detailRowSelectionEnabled_,
|
|
104209
104212
|
enableGroupEditAndValidation,
|
|
104210
104213
|
enableDynamicRowHeight,
|
|
104211
104214
|
isServerSideRowModel
|
|
104212
104215
|
}) => {
|
|
104213
|
-
const detailRowSelectionEnabled = detailRowSelectionEnabled_ ?? false;
|
|
104214
104216
|
if (detailRowConfig === void 0) {
|
|
104215
104217
|
return {};
|
|
104216
104218
|
}
|
|
@@ -104219,7 +104221,6 @@ var buildDetailRowsConfig = ({
|
|
|
104219
104221
|
frameworkComponents,
|
|
104220
104222
|
getRowHeight,
|
|
104221
104223
|
emptyStateRenderer,
|
|
104222
|
-
detailRowSelectionEnabled,
|
|
104223
104224
|
enableGroupEditAndValidation,
|
|
104224
104225
|
enableDynamicRowHeight,
|
|
104225
104226
|
isServerSideRowModel
|
|
@@ -104230,7 +104231,6 @@ var buildDetailRowsConfig_ = (detailRowConfig, {
|
|
|
104230
104231
|
frameworkComponents,
|
|
104231
104232
|
getRowHeight,
|
|
104232
104233
|
emptyStateRenderer,
|
|
104233
|
-
detailRowSelectionEnabled: deprecatedDetailRowSelectionEnabled,
|
|
104234
104234
|
enableGroupEditAndValidation,
|
|
104235
104235
|
enableDynamicRowHeight,
|
|
104236
104236
|
isServerSideRowModel
|
|
@@ -104245,7 +104245,18 @@ var buildDetailRowsConfig_ = (detailRowConfig, {
|
|
|
104245
104245
|
}
|
|
104246
104246
|
};
|
|
104247
104247
|
const rowHeightConfig = detailRowConfig.height === "auto" || detailRowConfig.height === void 0 ? { detailRowAutoHeight: true } : { detailRowHeight: detailRowConfig.height };
|
|
104248
|
-
const isRowSelectable = () =>
|
|
104248
|
+
const isRowSelectable = (node) => {
|
|
104249
|
+
if (typeof detailRowConfig.rowSelectionEnabled === "boolean") {
|
|
104250
|
+
return detailRowConfig.rowSelectionEnabled;
|
|
104251
|
+
}
|
|
104252
|
+
if (typeof detailRowConfig.rowSelectionEnabled === "function") {
|
|
104253
|
+
return isRowSelectionEnabledForRow(
|
|
104254
|
+
detailRowConfig.rowSelectionEnabled,
|
|
104255
|
+
node
|
|
104256
|
+
);
|
|
104257
|
+
}
|
|
104258
|
+
return false;
|
|
104259
|
+
};
|
|
104249
104260
|
return {
|
|
104250
104261
|
isRowMaster: detailRowConfig.isExpandable,
|
|
104251
104262
|
masterDetail: true,
|
|
@@ -104286,17 +104297,7 @@ var buildDetailRowsConfig_ = (detailRowConfig, {
|
|
|
104286
104297
|
onRowSelected: detailRowConfig.onRowSelected ?? null,
|
|
104287
104298
|
refreshStrategy: detailRowConfig.refreshStrategy || "everything",
|
|
104288
104299
|
aggFuncs: aggregationFunctions_exports,
|
|
104289
|
-
defaultColDef
|
|
104290
|
-
...defaultColDef,
|
|
104291
|
-
checkboxSelection(params) {
|
|
104292
|
-
const rowSelectionEnabled = detailRowConfig.rowSelectionEnabled ?? deprecatedDetailRowSelectionEnabled;
|
|
104293
|
-
const rowSelectionEnabledValue = typeof rowSelectionEnabled === "function" ? rowSelectionEnabled(params) : rowSelectionEnabled ?? false;
|
|
104294
|
-
if (!rowSelectionEnabledValue) {
|
|
104295
|
-
return false;
|
|
104296
|
-
}
|
|
104297
|
-
return params.columnApi?.getRowGroupColumns?.()?.length === 0 && isFirstColumn(params);
|
|
104298
|
-
}
|
|
104299
|
-
},
|
|
104300
|
+
defaultColDef,
|
|
104300
104301
|
rowSelection: detailRowConfig.rowSelection,
|
|
104301
104302
|
rowMultiSelectWithClick: detailRowConfig.rowMultiSelectWithClick,
|
|
104302
104303
|
suppressRowClickSelection: detailRowConfig.suppressRowClickSelection ?? true,
|
|
@@ -104316,7 +104317,8 @@ var buildDetailRowsConfig_ = (detailRowConfig, {
|
|
|
104316
104317
|
suppressAggFuncInHeader: true,
|
|
104317
104318
|
suppressContextMenu: true,
|
|
104318
104319
|
suppressColumnVirtualisation: true,
|
|
104319
|
-
getRowHeight: getRowHeight?.(detailRowConfig.customFooters)
|
|
104320
|
+
getRowHeight: getRowHeight?.(detailRowConfig.customFooters),
|
|
104321
|
+
...detailRowConfig.UNSAFE_agGridInternalOverrides ?? {}
|
|
104320
104322
|
},
|
|
104321
104323
|
getDetailRowData: detailRowConfig.getDetailRowData
|
|
104322
104324
|
};
|
|
@@ -109159,7 +109161,6 @@ var Table = (props) => {
|
|
|
109159
109161
|
[
|
|
109160
109162
|
columnGroupBordersEnabled,
|
|
109161
109163
|
props.showGroupChildCount,
|
|
109162
|
-
props.detailRowSelectionEnabled,
|
|
109163
109164
|
props.detailRowConfigs,
|
|
109164
109165
|
props.detailRowConfig
|
|
109165
109166
|
]
|
|
@@ -109171,13 +109172,11 @@ var Table = (props) => {
|
|
|
109171
109172
|
frameworkComponents: frameworkComponents.detail,
|
|
109172
109173
|
getRowHeight,
|
|
109173
109174
|
emptyStateRenderer: props.emptyStateRenderer,
|
|
109174
|
-
detailRowSelectionEnabled: props.detailRowSelectionEnabled,
|
|
109175
109175
|
enableGroupEditAndValidation: internalTableContext.enableGroupEditAndValidation,
|
|
109176
109176
|
enableDynamicRowHeight: internalTableContext.enableDynamicRowHeight,
|
|
109177
109177
|
isServerSideRowModel: !!internalTableContext.onServerSideDataRequest
|
|
109178
109178
|
});
|
|
109179
109179
|
}, [
|
|
109180
|
-
props.detailRowSelectionEnabled,
|
|
109181
109180
|
props.detailRowConfigs,
|
|
109182
109181
|
props.detailRowConfig,
|
|
109183
109182
|
defaultColDef,
|
package/dist/modern/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as _ag_grid_community_core from '@ag-grid-community/core';
|
|
2
|
-
import { ICellRendererParams, NumberFilterModel as NumberFilterModel$1, ColDef, IRowNode, ICellEditorParams, ColumnPinnedType, RowHeightParams, GetRowIdParams, RowDataTransaction, RowNodeTransaction, ServerSideTransaction, GridApi, ICellEditor, RefreshCellsParams, RowNode as RowNode$1, Column, SelectionEventSourceType,
|
|
2
|
+
import { ICellRendererParams, NumberFilterModel as NumberFilterModel$1, ColDef, IRowNode, ICellEditorParams, ColumnPinnedType, RowHeightParams, GetRowIdParams, RowDataTransaction, RowNodeTransaction, ServerSideTransaction, GridApi, ICellEditor, RefreshCellsParams, RowNode as RowNode$1, Column, SelectionEventSourceType, RowSelectedEvent, ExcelDataType, Module, RowGroupOpenedEvent, ColumnEverythingChangedEvent, CellFocusedEvent, ColumnApi, TabToNextCellParams, CellPosition, IFilter, IScalarFilterParams, ISimpleFilterParams } from '@ag-grid-community/core';
|
|
3
3
|
import * as React$1 from 'react';
|
|
4
4
|
import React__default from 'react';
|
|
5
5
|
import { AgGridReactProps, AgReactUiProps } from '@ag-grid-community/react';
|
|
@@ -755,11 +755,21 @@ interface DetailRowConfig<TRow = any> {
|
|
|
755
755
|
customFooters?: CustomFooterConfig[];
|
|
756
756
|
/** See ag-grid docs for more info: https://www.ag-grid.com/javascript-data-grid/master-detail-refresh/ */
|
|
757
757
|
refreshStrategy?: 'everything' | 'rows' | 'nothing';
|
|
758
|
-
rowSelectionEnabled?: boolean | ((params:
|
|
758
|
+
rowSelectionEnabled?: boolean | ((params: RowSelectablePredicateParams<TRow>) => boolean);
|
|
759
759
|
rowSelection?: 'multiple' | 'single';
|
|
760
760
|
rowMultiSelectWithClick?: boolean;
|
|
761
761
|
suppressRowClickSelection?: boolean;
|
|
762
762
|
onRowSelected?: (event: RowSelectedEvent) => void;
|
|
763
|
+
/**
|
|
764
|
+
* Overrides internal props for the detail grid's AgGridReact component. This is not guaranteed under DataTable SemVer
|
|
765
|
+
* and can break during any upgrade of the ag-grid-react package
|
|
766
|
+
*
|
|
767
|
+
* For documentation see: {@link https://www.ag-grid.com/react-data-grid/grid-options/}
|
|
768
|
+
* The ag-grid changelog can be found here: {@link https://www.ag-grid.com/changelog/}
|
|
769
|
+
*
|
|
770
|
+
* Warning: This can break normal Data Table functionality.
|
|
771
|
+
*/
|
|
772
|
+
UNSAFE_agGridInternalOverrides?: AgGridReactProps | AgReactUiProps;
|
|
763
773
|
}
|
|
764
774
|
type CustomRendererCell = {
|
|
765
775
|
component: React.ComponentType<any>;
|
|
@@ -972,11 +982,6 @@ interface TableProps<TRow = any, TBottomRow = any> {
|
|
|
972
982
|
*/
|
|
973
983
|
detailRowConfigs?: DetailRowConfig<TRow>[];
|
|
974
984
|
detailRowConfig?: DetailRowConfig<TRow>;
|
|
975
|
-
/**
|
|
976
|
-
* @deprecated Please use `detailRowConfig.rowSelectionEnabled` instead
|
|
977
|
-
* @deprecatedSince 11.13.0
|
|
978
|
-
*/
|
|
979
|
-
detailRowSelectionEnabled?: boolean;
|
|
980
985
|
siblingGroupsRowSelectionDisabled?: boolean;
|
|
981
986
|
emptyStateRenderer?: React.FunctionComponent;
|
|
982
987
|
excelDataTypeFormats?: DTExcelFormats[];
|
package/dist/modern/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as _ag_grid_community_core from '@ag-grid-community/core';
|
|
2
|
-
import { ICellRendererParams, NumberFilterModel as NumberFilterModel$1, ColDef, IRowNode, ICellEditorParams, ColumnPinnedType, RowHeightParams, GetRowIdParams, RowDataTransaction, RowNodeTransaction, ServerSideTransaction, GridApi, ICellEditor, RefreshCellsParams, RowNode as RowNode$1, Column, SelectionEventSourceType,
|
|
2
|
+
import { ICellRendererParams, NumberFilterModel as NumberFilterModel$1, ColDef, IRowNode, ICellEditorParams, ColumnPinnedType, RowHeightParams, GetRowIdParams, RowDataTransaction, RowNodeTransaction, ServerSideTransaction, GridApi, ICellEditor, RefreshCellsParams, RowNode as RowNode$1, Column, SelectionEventSourceType, RowSelectedEvent, ExcelDataType, Module, RowGroupOpenedEvent, ColumnEverythingChangedEvent, CellFocusedEvent, ColumnApi, TabToNextCellParams, CellPosition, IFilter, IScalarFilterParams, ISimpleFilterParams } from '@ag-grid-community/core';
|
|
3
3
|
import * as React$1 from 'react';
|
|
4
4
|
import React__default from 'react';
|
|
5
5
|
import { AgGridReactProps, AgReactUiProps } from '@ag-grid-community/react';
|
|
@@ -755,11 +755,21 @@ interface DetailRowConfig<TRow = any> {
|
|
|
755
755
|
customFooters?: CustomFooterConfig[];
|
|
756
756
|
/** See ag-grid docs for more info: https://www.ag-grid.com/javascript-data-grid/master-detail-refresh/ */
|
|
757
757
|
refreshStrategy?: 'everything' | 'rows' | 'nothing';
|
|
758
|
-
rowSelectionEnabled?: boolean | ((params:
|
|
758
|
+
rowSelectionEnabled?: boolean | ((params: RowSelectablePredicateParams<TRow>) => boolean);
|
|
759
759
|
rowSelection?: 'multiple' | 'single';
|
|
760
760
|
rowMultiSelectWithClick?: boolean;
|
|
761
761
|
suppressRowClickSelection?: boolean;
|
|
762
762
|
onRowSelected?: (event: RowSelectedEvent) => void;
|
|
763
|
+
/**
|
|
764
|
+
* Overrides internal props for the detail grid's AgGridReact component. This is not guaranteed under DataTable SemVer
|
|
765
|
+
* and can break during any upgrade of the ag-grid-react package
|
|
766
|
+
*
|
|
767
|
+
* For documentation see: {@link https://www.ag-grid.com/react-data-grid/grid-options/}
|
|
768
|
+
* The ag-grid changelog can be found here: {@link https://www.ag-grid.com/changelog/}
|
|
769
|
+
*
|
|
770
|
+
* Warning: This can break normal Data Table functionality.
|
|
771
|
+
*/
|
|
772
|
+
UNSAFE_agGridInternalOverrides?: AgGridReactProps | AgReactUiProps;
|
|
763
773
|
}
|
|
764
774
|
type CustomRendererCell = {
|
|
765
775
|
component: React.ComponentType<any>;
|
|
@@ -972,11 +982,6 @@ interface TableProps<TRow = any, TBottomRow = any> {
|
|
|
972
982
|
*/
|
|
973
983
|
detailRowConfigs?: DetailRowConfig<TRow>[];
|
|
974
984
|
detailRowConfig?: DetailRowConfig<TRow>;
|
|
975
|
-
/**
|
|
976
|
-
* @deprecated Please use `detailRowConfig.rowSelectionEnabled` instead
|
|
977
|
-
* @deprecatedSince 11.13.0
|
|
978
|
-
*/
|
|
979
|
-
detailRowSelectionEnabled?: boolean;
|
|
980
985
|
siblingGroupsRowSelectionDisabled?: boolean;
|
|
981
986
|
emptyStateRenderer?: React.FunctionComponent;
|
|
982
987
|
excelDataTypeFormats?: DTExcelFormats[];
|
package/dist/modern/index.js
CHANGED
|
@@ -55394,7 +55394,7 @@ function RowCheckbox(props) {
|
|
|
55394
55394
|
removeEventListenerFromGrid("rowSelected", handleRowSelection, props.api);
|
|
55395
55395
|
};
|
|
55396
55396
|
}, []);
|
|
55397
|
-
|
|
55397
|
+
let checkbox = /* @__PURE__ */ React80.createElement(
|
|
55398
55398
|
Checkbox,
|
|
55399
55399
|
{
|
|
55400
55400
|
checked: selected,
|
|
@@ -55413,7 +55413,11 @@ function RowCheckbox(props) {
|
|
|
55413
55413
|
},
|
|
55414
55414
|
onChange: noop2
|
|
55415
55415
|
}
|
|
55416
|
-
)
|
|
55416
|
+
);
|
|
55417
|
+
if (props.data?.checkboxTooltip) {
|
|
55418
|
+
checkbox = /* @__PURE__ */ React80.createElement(Tooltip, { overlay: props.data?.checkboxTooltip, placement: "right" }, /* @__PURE__ */ React80.createElement("span", null, checkbox));
|
|
55419
|
+
}
|
|
55420
|
+
return /* @__PURE__ */ React80.createElement(Box, { paddingRight: "md" }, checkbox);
|
|
55417
55421
|
}
|
|
55418
55422
|
|
|
55419
55423
|
// src/CellRenderers/AutoGroupCell.tsx
|
|
@@ -81298,7 +81302,7 @@ __decorate216([
|
|
|
81298
81302
|
__decorate216([
|
|
81299
81303
|
Validate(NUMBER())
|
|
81300
81304
|
], TooltipPosition.prototype, "yOffset", void 0);
|
|
81301
|
-
var
|
|
81305
|
+
var Tooltip7 = class _Tooltip {
|
|
81302
81306
|
constructor(canvasElement, document2, container) {
|
|
81303
81307
|
this.enableInteraction = false;
|
|
81304
81308
|
this.enabled = true;
|
|
@@ -81434,25 +81438,25 @@ var Tooltip6 = class _Tooltip {
|
|
|
81434
81438
|
this._showArrow = show;
|
|
81435
81439
|
}
|
|
81436
81440
|
};
|
|
81437
|
-
|
|
81441
|
+
Tooltip7.tooltipDocuments = [];
|
|
81438
81442
|
__decorate216([
|
|
81439
81443
|
Validate(BOOLEAN)
|
|
81440
|
-
],
|
|
81444
|
+
], Tooltip7.prototype, "enabled", void 0);
|
|
81441
81445
|
__decorate216([
|
|
81442
81446
|
Validate(OPT_BOOLEAN)
|
|
81443
|
-
],
|
|
81447
|
+
], Tooltip7.prototype, "showArrow", void 0);
|
|
81444
81448
|
__decorate216([
|
|
81445
81449
|
Validate(OPT_STRING)
|
|
81446
|
-
],
|
|
81450
|
+
], Tooltip7.prototype, "class", void 0);
|
|
81447
81451
|
__decorate216([
|
|
81448
81452
|
Validate(NUMBER(0))
|
|
81449
|
-
],
|
|
81453
|
+
], Tooltip7.prototype, "delay", void 0);
|
|
81450
81454
|
__decorate216([
|
|
81451
81455
|
DeprecatedAndRenamedTo("range", (value) => value ? "nearest" : "exact")
|
|
81452
|
-
],
|
|
81456
|
+
], Tooltip7.prototype, "tracking", void 0);
|
|
81453
81457
|
__decorate216([
|
|
81454
81458
|
Validate(INTERACTION_RANGE)
|
|
81455
|
-
],
|
|
81459
|
+
], Tooltip7.prototype, "range", void 0);
|
|
81456
81460
|
|
|
81457
81461
|
// ../../node_modules/ag-charts-community/dist/esm/es6/chart/data/aggregateFunctions.mjs
|
|
81458
81462
|
function sumValues(values2, accumulator = [0, 0]) {
|
|
@@ -86437,7 +86441,7 @@ var Chart = class extends Observable {
|
|
|
86437
86441
|
this.animationManager = new AnimationManager(this.interactionManager);
|
|
86438
86442
|
this.animationManager.skipAnimations = true;
|
|
86439
86443
|
this.animationManager.play();
|
|
86440
|
-
this.tooltip = new
|
|
86444
|
+
this.tooltip = new Tooltip7(this.scene.canvas.element, document2, document2.body);
|
|
86441
86445
|
this.tooltipManager = new TooltipManager(this.tooltip, this.interactionManager);
|
|
86442
86446
|
this.overlays = new ChartOverlays(this.element);
|
|
86443
86447
|
this.highlight = new ChartHighlight();
|
|
@@ -100893,7 +100897,7 @@ __export(integrated_charts_scene_exports, {
|
|
|
100893
100897
|
Shape: () => Shape,
|
|
100894
100898
|
Square: () => Square,
|
|
100895
100899
|
Text: () => Text,
|
|
100896
|
-
Tooltip: () =>
|
|
100900
|
+
Tooltip: () => Tooltip7,
|
|
100897
100901
|
getFont: () => getFont2,
|
|
100898
100902
|
getMarker: () => getMarker,
|
|
100899
100903
|
toRadians: () => toRadians,
|
|
@@ -104192,12 +104196,10 @@ var buildDetailRowsConfig = ({
|
|
|
104192
104196
|
frameworkComponents,
|
|
104193
104197
|
getRowHeight,
|
|
104194
104198
|
emptyStateRenderer,
|
|
104195
|
-
detailRowSelectionEnabled: detailRowSelectionEnabled_,
|
|
104196
104199
|
enableGroupEditAndValidation,
|
|
104197
104200
|
enableDynamicRowHeight,
|
|
104198
104201
|
isServerSideRowModel
|
|
104199
104202
|
}) => {
|
|
104200
|
-
const detailRowSelectionEnabled = detailRowSelectionEnabled_ ?? false;
|
|
104201
104203
|
if (detailRowConfig === void 0) {
|
|
104202
104204
|
return {};
|
|
104203
104205
|
}
|
|
@@ -104206,7 +104208,6 @@ var buildDetailRowsConfig = ({
|
|
|
104206
104208
|
frameworkComponents,
|
|
104207
104209
|
getRowHeight,
|
|
104208
104210
|
emptyStateRenderer,
|
|
104209
|
-
detailRowSelectionEnabled,
|
|
104210
104211
|
enableGroupEditAndValidation,
|
|
104211
104212
|
enableDynamicRowHeight,
|
|
104212
104213
|
isServerSideRowModel
|
|
@@ -104217,7 +104218,6 @@ var buildDetailRowsConfig_ = (detailRowConfig, {
|
|
|
104217
104218
|
frameworkComponents,
|
|
104218
104219
|
getRowHeight,
|
|
104219
104220
|
emptyStateRenderer,
|
|
104220
|
-
detailRowSelectionEnabled: deprecatedDetailRowSelectionEnabled,
|
|
104221
104221
|
enableGroupEditAndValidation,
|
|
104222
104222
|
enableDynamicRowHeight,
|
|
104223
104223
|
isServerSideRowModel
|
|
@@ -104232,7 +104232,18 @@ var buildDetailRowsConfig_ = (detailRowConfig, {
|
|
|
104232
104232
|
}
|
|
104233
104233
|
};
|
|
104234
104234
|
const rowHeightConfig = detailRowConfig.height === "auto" || detailRowConfig.height === void 0 ? { detailRowAutoHeight: true } : { detailRowHeight: detailRowConfig.height };
|
|
104235
|
-
const isRowSelectable = () =>
|
|
104235
|
+
const isRowSelectable = (node) => {
|
|
104236
|
+
if (typeof detailRowConfig.rowSelectionEnabled === "boolean") {
|
|
104237
|
+
return detailRowConfig.rowSelectionEnabled;
|
|
104238
|
+
}
|
|
104239
|
+
if (typeof detailRowConfig.rowSelectionEnabled === "function") {
|
|
104240
|
+
return isRowSelectionEnabledForRow(
|
|
104241
|
+
detailRowConfig.rowSelectionEnabled,
|
|
104242
|
+
node
|
|
104243
|
+
);
|
|
104244
|
+
}
|
|
104245
|
+
return false;
|
|
104246
|
+
};
|
|
104236
104247
|
return {
|
|
104237
104248
|
isRowMaster: detailRowConfig.isExpandable,
|
|
104238
104249
|
masterDetail: true,
|
|
@@ -104273,17 +104284,7 @@ var buildDetailRowsConfig_ = (detailRowConfig, {
|
|
|
104273
104284
|
onRowSelected: detailRowConfig.onRowSelected ?? null,
|
|
104274
104285
|
refreshStrategy: detailRowConfig.refreshStrategy || "everything",
|
|
104275
104286
|
aggFuncs: aggregationFunctions_exports,
|
|
104276
|
-
defaultColDef
|
|
104277
|
-
...defaultColDef,
|
|
104278
|
-
checkboxSelection(params) {
|
|
104279
|
-
const rowSelectionEnabled = detailRowConfig.rowSelectionEnabled ?? deprecatedDetailRowSelectionEnabled;
|
|
104280
|
-
const rowSelectionEnabledValue = typeof rowSelectionEnabled === "function" ? rowSelectionEnabled(params) : rowSelectionEnabled ?? false;
|
|
104281
|
-
if (!rowSelectionEnabledValue) {
|
|
104282
|
-
return false;
|
|
104283
|
-
}
|
|
104284
|
-
return params.columnApi?.getRowGroupColumns?.()?.length === 0 && isFirstColumn(params);
|
|
104285
|
-
}
|
|
104286
|
-
},
|
|
104287
|
+
defaultColDef,
|
|
104287
104288
|
rowSelection: detailRowConfig.rowSelection,
|
|
104288
104289
|
rowMultiSelectWithClick: detailRowConfig.rowMultiSelectWithClick,
|
|
104289
104290
|
suppressRowClickSelection: detailRowConfig.suppressRowClickSelection ?? true,
|
|
@@ -104303,7 +104304,8 @@ var buildDetailRowsConfig_ = (detailRowConfig, {
|
|
|
104303
104304
|
suppressAggFuncInHeader: true,
|
|
104304
104305
|
suppressContextMenu: true,
|
|
104305
104306
|
suppressColumnVirtualisation: true,
|
|
104306
|
-
getRowHeight: getRowHeight?.(detailRowConfig.customFooters)
|
|
104307
|
+
getRowHeight: getRowHeight?.(detailRowConfig.customFooters),
|
|
104308
|
+
...detailRowConfig.UNSAFE_agGridInternalOverrides ?? {}
|
|
104307
104309
|
},
|
|
104308
104310
|
getDetailRowData: detailRowConfig.getDetailRowData
|
|
104309
104311
|
};
|
|
@@ -109146,7 +109148,6 @@ var Table = (props) => {
|
|
|
109146
109148
|
[
|
|
109147
109149
|
columnGroupBordersEnabled,
|
|
109148
109150
|
props.showGroupChildCount,
|
|
109149
|
-
props.detailRowSelectionEnabled,
|
|
109150
109151
|
props.detailRowConfigs,
|
|
109151
109152
|
props.detailRowConfig
|
|
109152
109153
|
]
|
|
@@ -109158,13 +109159,11 @@ var Table = (props) => {
|
|
|
109158
109159
|
frameworkComponents: frameworkComponents.detail,
|
|
109159
109160
|
getRowHeight,
|
|
109160
109161
|
emptyStateRenderer: props.emptyStateRenderer,
|
|
109161
|
-
detailRowSelectionEnabled: props.detailRowSelectionEnabled,
|
|
109162
109162
|
enableGroupEditAndValidation: internalTableContext.enableGroupEditAndValidation,
|
|
109163
109163
|
enableDynamicRowHeight: internalTableContext.enableDynamicRowHeight,
|
|
109164
109164
|
isServerSideRowModel: !!internalTableContext.onServerSideDataRequest
|
|
109165
109165
|
});
|
|
109166
109166
|
}, [
|
|
109167
|
-
props.detailRowSelectionEnabled,
|
|
109168
109167
|
props.detailRowConfigs,
|
|
109169
109168
|
props.detailRowConfig,
|
|
109170
109169
|
defaultColDef,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@procore/data-table",
|
|
3
|
-
"version": "14.
|
|
3
|
+
"version": "14.36.1",
|
|
4
4
|
"description": "Complex data grid built on top of ag-grid, with DST components and styles.",
|
|
5
5
|
"author": "Procore Technologies",
|
|
6
6
|
"homepage": "https://github.com/procore/core/tree/main/packages/data-table",
|
|
@@ -107,9 +107,9 @@
|
|
|
107
107
|
"@dotenvx/dotenvx": "1.6.4",
|
|
108
108
|
"@ngneat/falso": "6.4.0",
|
|
109
109
|
"@procore/core-css": "10.17.0",
|
|
110
|
-
"@procore/core-icons": "^12.10.
|
|
110
|
+
"@procore/core-icons": "^12.10.1",
|
|
111
111
|
"@procore/core-prettier": "10.2.0",
|
|
112
|
-
"@procore/core-react": "^12.
|
|
112
|
+
"@procore/core-react": "^12.30.0",
|
|
113
113
|
"@procore/eslint-config": "10.0.0",
|
|
114
114
|
"@procore/globalization-toolkit": "3.1.0",
|
|
115
115
|
"@procore/labs-financials-utils": "4.3.1",
|