ag-grid-enterprise 33.3.0 → 33.3.2
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/dist/ag-grid-enterprise.js +63 -33
- package/dist/ag-grid-enterprise.min.js +1 -1
- package/dist/ag-grid-enterprise.min.noStyle.js +1 -1
- package/dist/ag-grid-enterprise.noStyle.js +63 -33
- package/dist/package/main.cjs.js +17 -8
- package/dist/package/main.cjs.min.js +3 -3
- package/dist/package/main.esm.min.mjs +35 -35
- package/dist/package/main.esm.mjs +18 -8
- package/dist/package/package.json +6 -6
- package/dist/types/package.json +6 -6
- package/dist/types/src/serverSideRowModel/stores/lazy/lazyStore.d.ts +1 -0
- package/dist/types/src/version.d.ts +1 -1
- package/package.json +6 -6
|
@@ -31811,7 +31811,7 @@ class FindService extends ag_grid_community_1.BeanStub {
|
|
|
31811
31811
|
}
|
|
31812
31812
|
const nodeWillBeHiddenByOpenParent = node.level > 0 &&
|
|
31813
31813
|
gos.get('groupHideOpenParents') &&
|
|
31814
|
-
node.parent?.
|
|
31814
|
+
node.parent?.getFirstChild() === node &&
|
|
31815
31815
|
!node.parent?.expanded;
|
|
31816
31816
|
for (const column of allCols) {
|
|
31817
31817
|
if ((0, ag_grid_community_1.isRowNumberCol)(column) || (0, ag_grid_community_1.isColumnSelectionCol)(column)) {
|
|
@@ -32498,6 +32498,9 @@ class LicenseManager {
|
|
|
32498
32498
|
}
|
|
32499
32499
|
static setChartsLicenseManager(dependantLicenseManager) {
|
|
32500
32500
|
this.chartsLicenseManager = dependantLicenseManager;
|
|
32501
|
+
// we set this again in the event users have set the key BEFORE they've registered the modules
|
|
32502
|
+
// if we dont then order of events can be such that we dont update the chartsLicenseManager with the license key
|
|
32503
|
+
this.chartsLicenseManager?.setLicenseKey(this.licenseKey, true);
|
|
32501
32504
|
}
|
|
32502
32505
|
static setLicenseKey(licenseKey) {
|
|
32503
32506
|
this.licenseKey = licenseKey;
|
|
@@ -32586,7 +32589,7 @@ class LicenseManager {
|
|
|
32586
32589
|
}
|
|
32587
32590
|
}
|
|
32588
32591
|
exports.LicenseManager = LicenseManager;
|
|
32589
|
-
LicenseManager.RELEASE_INFORMATION = '
|
|
32592
|
+
LicenseManager.RELEASE_INFORMATION = 'MTc0ODQ1MzQ2MTA5Mg==';
|
|
32590
32593
|
|
|
32591
32594
|
|
|
32592
32595
|
/***/ }),
|
|
@@ -37178,7 +37181,9 @@ class PivotResultColsService extends ag_grid_community_1.BeanStub {
|
|
|
37178
37181
|
}
|
|
37179
37182
|
if (colDefs) {
|
|
37180
37183
|
this.processPivotResultColDef(colDefs);
|
|
37181
|
-
|
|
37184
|
+
// if the attempt has come from the API, can't guarantee the user has provided IDs.
|
|
37185
|
+
const createColTreeFunc = source === 'api' ? ag_grid_community_1._createColumnTree : ag_grid_community_1._createColumnTreeWithIds;
|
|
37186
|
+
const balancedTreeResult = createColTreeFunc(this.beans, colDefs, false, this.pivotResultCols?.tree || this.previousPivotResultCols || undefined, source);
|
|
37182
37187
|
(0, ag_grid_community_1._destroyColumnTree)(this.beans, this.pivotResultCols?.tree, balancedTreeResult.columnTree);
|
|
37183
37188
|
const tree = balancedTreeResult.columnTree;
|
|
37184
37189
|
const treeDepth = balancedTreeResult.treeDepth;
|
|
@@ -41846,10 +41851,6 @@ class BaseExpansionService extends ag_grid_community_1.BeanStub {
|
|
|
41846
41851
|
rowNode.dispatchRowEvent('expandedChanged');
|
|
41847
41852
|
const event = { ...(0, ag_grid_community_1._createGlobalRowEvent)(rowNode, this.gos, 'rowGroupOpened'), expanded, event: e || null };
|
|
41848
41853
|
this.dispatchExpandedEvent(event, forceSync);
|
|
41849
|
-
// when using footers we need to refresh the group row, as the aggregation
|
|
41850
|
-
// values jump between group and footer, because the footer can be callback
|
|
41851
|
-
// we refresh regardless as the output of the callback could be a moving target
|
|
41852
|
-
this.beans.rowRenderer.refreshCells({ rowNodes: [rowNode] });
|
|
41853
41854
|
}
|
|
41854
41855
|
isExpandable(rowNode) {
|
|
41855
41856
|
if (rowNode.footer) {
|
|
@@ -41972,6 +41973,11 @@ class ClientSideExpansionService extends baseExpansionService_1.BaseExpansionSer
|
|
|
41972
41973
|
const func = () => {
|
|
41973
41974
|
this.rowModel.onRowGroupOpened();
|
|
41974
41975
|
this.events.forEach((e) => this.eventSvc.dispatchEvent(e));
|
|
41976
|
+
// when using footers we need to refresh the group row, as the aggregation
|
|
41977
|
+
// values jump between group and footer, because the footer can be callback
|
|
41978
|
+
// we refresh regardless as the output of the callback could be a moving target
|
|
41979
|
+
const nodes = this.events.map((e) => e.node);
|
|
41980
|
+
this.beans.rowRenderer.refreshCells({ rowNodes: nodes });
|
|
41975
41981
|
this.events = [];
|
|
41976
41982
|
};
|
|
41977
41983
|
if (forceSync) {
|
|
@@ -42999,7 +43005,7 @@ function _isHiddenParent(node, ancestor, gos) {
|
|
|
42999
43005
|
return false;
|
|
43000
43006
|
}
|
|
43001
43007
|
for (let i = 0; i < levelDiff; i++) {
|
|
43002
|
-
const isFirstChild = currentNode.parent?.
|
|
43008
|
+
const isFirstChild = currentNode.parent?.getFirstChild() === currentNode;
|
|
43003
43009
|
if (!isFirstChild) {
|
|
43004
43010
|
return false;
|
|
43005
43011
|
}
|
|
@@ -43122,7 +43128,8 @@ class ShowRowGroupColValueService extends ag_grid_community_1.BeanStub {
|
|
|
43122
43128
|
const valueSvc = this.beans.valueSvc;
|
|
43123
43129
|
const { displayedNode, value } = groupValue;
|
|
43124
43130
|
const groupedCol = displayedNode.rowGroupColumn;
|
|
43125
|
-
const
|
|
43131
|
+
const isFullWidthGroup = displayedNode.group && !column;
|
|
43132
|
+
const isShowingGroupCell = groupedCol && (isFullWidthGroup || column?.isRowGroupDisplayed(groupedCol.colId));
|
|
43126
43133
|
// for grouped cells; try to use the underlying col formatter
|
|
43127
43134
|
if (isShowingGroupCell) {
|
|
43128
43135
|
// if exporting, check if we should use the value formatter for export
|
|
@@ -43175,7 +43182,7 @@ class ShowRowGroupColValueService extends ag_grid_community_1.BeanStub {
|
|
|
43175
43182
|
}
|
|
43176
43183
|
let pointer = node;
|
|
43177
43184
|
while (pointer && pointer.rowGroupColumn?.getId() != showRowGroup) {
|
|
43178
|
-
const isFirstChild = pointer === pointer.parent?.
|
|
43185
|
+
const isFirstChild = pointer === pointer.parent?.getFirstChild();
|
|
43179
43186
|
if (!isShowOpenedGroupValue && !isFirstChild) {
|
|
43180
43187
|
// if not first child and not showOpenedGroup then groupHideOpenParents doesn't
|
|
43181
43188
|
// display the parent value
|
|
@@ -46177,6 +46184,10 @@ class ServerSideExpansionService extends baseExpansionService_1.BaseExpansionSer
|
|
|
46177
46184
|
}
|
|
46178
46185
|
dispatchExpandedEvent(event) {
|
|
46179
46186
|
this.eventSvc.dispatchEvent(event);
|
|
46187
|
+
// when using footers we need to refresh the group row, as the aggregation
|
|
46188
|
+
// values jump between group and footer, because the footer can be callback
|
|
46189
|
+
// we refresh regardless as the output of the callback could be a moving target
|
|
46190
|
+
this.beans.rowRenderer.refreshCells({ rowNodes: [event.node] });
|
|
46180
46191
|
}
|
|
46181
46192
|
}
|
|
46182
46193
|
exports.ServerSideExpansionService = ServerSideExpansionService;
|
|
@@ -48271,6 +48282,10 @@ class LazyStore extends ag_grid_community_1.BeanStub {
|
|
|
48271
48282
|
getCache() {
|
|
48272
48283
|
return this.cache;
|
|
48273
48284
|
}
|
|
48285
|
+
getFirstNode() {
|
|
48286
|
+
const firstNode = this.cache.getNodes().getBy('index', 0);
|
|
48287
|
+
return firstNode?.node ?? null;
|
|
48288
|
+
}
|
|
48274
48289
|
}
|
|
48275
48290
|
exports.LazyStore = LazyStore;
|
|
48276
48291
|
|
|
@@ -55110,7 +55125,7 @@ exports.clearTreeRowFlags = clearTreeRowFlags;
|
|
|
55110
55125
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
55111
55126
|
exports.VERSION = void 0;
|
|
55112
55127
|
// DO NOT UPDATE MANUALLY: Generated from script during build time
|
|
55113
|
-
exports.VERSION = '33.3.
|
|
55128
|
+
exports.VERSION = '33.3.2';
|
|
55114
55129
|
|
|
55115
55130
|
|
|
55116
55131
|
/***/ }),
|
|
@@ -59806,6 +59821,7 @@ __export(main_exports, {
|
|
|
59806
59821
|
_combineAttributesAndGridOptions: () => _combineAttributesAndGridOptions,
|
|
59807
59822
|
_convertColumnEventSourceType: () => _convertColumnEventSourceType,
|
|
59808
59823
|
_createCellId: () => _createCellId,
|
|
59824
|
+
_createColumnTree: () => _createColumnTree,
|
|
59809
59825
|
_createColumnTreeWithIds: () => _createColumnTreeWithIds,
|
|
59810
59826
|
_createElement: () => _createElement,
|
|
59811
59827
|
_createGlobalRowEvent: () => _createGlobalRowEvent,
|
|
@@ -60882,7 +60898,7 @@ function _defaultComparator(valueA, valueB, accentedCompare = false) {
|
|
|
60882
60898
|
var BASE_URL = "https://www.ag-grid.com";
|
|
60883
60899
|
|
|
60884
60900
|
// packages/ag-grid-community/src/version.ts
|
|
60885
|
-
var VERSION = "33.3.
|
|
60901
|
+
var VERSION = "33.3.2";
|
|
60886
60902
|
|
|
60887
60903
|
// packages/ag-grid-community/src/validation/logging.ts
|
|
60888
60904
|
var MAX_URL_LENGTH = 2e3;
|
|
@@ -68704,6 +68720,12 @@ var RowNode = class {
|
|
|
68704
68720
|
this.dispatchRowEvent("uiLevelChanged");
|
|
68705
68721
|
}
|
|
68706
68722
|
}
|
|
68723
|
+
getFirstChild() {
|
|
68724
|
+
if (this.childStore) {
|
|
68725
|
+
return this.childStore.getFirstNode();
|
|
68726
|
+
}
|
|
68727
|
+
return this.childrenAfterSort?.[0] ?? null;
|
|
68728
|
+
}
|
|
68707
68729
|
};
|
|
68708
68730
|
|
|
68709
68731
|
// packages/ag-grid-community/src/entities/rowNodeUtils.ts
|
|
@@ -72953,19 +72975,25 @@ var GridBodyCtrl = class extends BeanStub {
|
|
|
72953
72975
|
});
|
|
72954
72976
|
}
|
|
72955
72977
|
addBodyViewportListener() {
|
|
72956
|
-
const {
|
|
72978
|
+
const {
|
|
72979
|
+
eBodyViewport,
|
|
72980
|
+
eStickyTop,
|
|
72981
|
+
eStickyBottom,
|
|
72982
|
+
eTop,
|
|
72983
|
+
eBottom,
|
|
72984
|
+
beans: { popupSvc, touchSvc }
|
|
72985
|
+
} = this;
|
|
72957
72986
|
const listener = this.onBodyViewportContextMenu.bind(this);
|
|
72958
|
-
this.addManagedElementListeners(
|
|
72987
|
+
this.addManagedElementListeners(eBodyViewport, { contextmenu: listener });
|
|
72959
72988
|
touchSvc?.mockBodyContextMenu(this, listener);
|
|
72960
|
-
this.addManagedElementListeners(
|
|
72989
|
+
this.addManagedElementListeners(eBodyViewport, {
|
|
72961
72990
|
wheel: this.onBodyViewportWheel.bind(this, popupSvc)
|
|
72962
72991
|
});
|
|
72963
72992
|
const onStickyWheel = this.onStickyWheel.bind(this);
|
|
72964
|
-
|
|
72965
|
-
|
|
72966
|
-
|
|
72967
|
-
this.
|
|
72968
|
-
const onHorizontalWheel = (e) => this.onStickyWheel(e, true);
|
|
72993
|
+
for (const container of [eStickyTop, eStickyBottom, eTop, eBottom]) {
|
|
72994
|
+
this.addManagedElementListeners(container, { wheel: onStickyWheel });
|
|
72995
|
+
}
|
|
72996
|
+
const onHorizontalWheel = this.onHorizontalWheel.bind(this);
|
|
72969
72997
|
for (const container of ["left", "right", "topLeft", "topRight", "bottomLeft", "bottomRight"]) {
|
|
72970
72998
|
this.addManagedElementListeners(this.ctrlsSvc.get(container).eContainer, {
|
|
72971
72999
|
wheel: onHorizontalWheel
|
|
@@ -72985,16 +73013,18 @@ var GridBodyCtrl = class extends BeanStub {
|
|
|
72985
73013
|
this.scrollGridBodyToMatchEvent(e);
|
|
72986
73014
|
}
|
|
72987
73015
|
}
|
|
72988
|
-
onStickyWheel(e
|
|
73016
|
+
onStickyWheel(e) {
|
|
73017
|
+
const { deltaY } = e;
|
|
73018
|
+
e.preventDefault();
|
|
73019
|
+
this.scrollVertically(deltaY);
|
|
73020
|
+
}
|
|
73021
|
+
onHorizontalWheel(e) {
|
|
72989
73022
|
const { deltaX, deltaY, shiftKey } = e;
|
|
72990
73023
|
const isHorizontalScroll = shiftKey || Math.abs(deltaX) > Math.abs(deltaY);
|
|
72991
|
-
const target = e.target;
|
|
72992
73024
|
if (!isHorizontalScroll) {
|
|
72993
|
-
|
|
72994
|
-
this.scrollVertically(deltaY);
|
|
72995
|
-
} else if (this.eStickyTopFullWidthContainer.contains(target) || this.eStickyBottomFullWidthContainer.contains(target) || allowHorizontalScroll) {
|
|
72996
|
-
this.scrollGridBodyToMatchEvent(e);
|
|
73025
|
+
return;
|
|
72997
73026
|
}
|
|
73027
|
+
this.scrollGridBodyToMatchEvent(e);
|
|
72998
73028
|
}
|
|
72999
73029
|
scrollGridBodyToMatchEvent(e) {
|
|
73000
73030
|
const { deltaX, deltaY } = e;
|
|
@@ -94735,13 +94765,13 @@ var RowRenderer = class extends BeanStub {
|
|
|
94735
94765
|
indexesToDraw.push(i);
|
|
94736
94766
|
}
|
|
94737
94767
|
const pagination = this.beans.pagination;
|
|
94738
|
-
const
|
|
94739
|
-
if (
|
|
94740
|
-
indexesToDraw.push(
|
|
94768
|
+
const focusedRowIndex = this.beans.focusSvc?.getFocusedCell()?.rowIndex;
|
|
94769
|
+
if (focusedRowIndex != null && (focusedRowIndex < this.firstRenderedRow || focusedRowIndex > this.lastRenderedRow) && (!pagination || pagination.isRowInPage(focusedRowIndex)) && focusedRowIndex < this.rowModel.getRowCount()) {
|
|
94770
|
+
indexesToDraw.push(focusedRowIndex);
|
|
94741
94771
|
}
|
|
94742
94772
|
const checkRowToDraw = (rowComp) => {
|
|
94743
94773
|
const index = rowComp.rowNode.rowIndex;
|
|
94744
|
-
if (index == null || index ===
|
|
94774
|
+
if (index == null || index === focusedRowIndex) {
|
|
94745
94775
|
return;
|
|
94746
94776
|
}
|
|
94747
94777
|
if (index < this.firstRenderedRow || index > this.lastRenderedRow) {
|
|
@@ -97104,6 +97134,7 @@ var BaseGridSerializingSession = class {
|
|
|
97104
97134
|
isFullWidthGroup ? void 0 : column,
|
|
97105
97135
|
// full width group doesn't have a column
|
|
97106
97136
|
pointer,
|
|
97137
|
+
true,
|
|
97107
97138
|
true
|
|
97108
97139
|
);
|
|
97109
97140
|
concatenatedGroupValue = ` -> ${valueFormatted2 ?? value2 ?? ""}${concatenatedGroupValue}`;
|
|
@@ -97115,7 +97146,7 @@ var BaseGridSerializingSession = class {
|
|
|
97115
97146
|
valueFormatted: concatenatedGroupValue
|
|
97116
97147
|
};
|
|
97117
97148
|
}
|
|
97118
|
-
const { value, valueFormatted } = valueService.getValueForDisplay(column, node, true);
|
|
97149
|
+
const { value, valueFormatted } = valueService.getValueForDisplay(column, node, true, true);
|
|
97119
97150
|
return {
|
|
97120
97151
|
value: value ?? "",
|
|
97121
97152
|
valueFormatted
|
|
@@ -104463,9 +104494,8 @@ var SelectionService = class extends BaseSelectionService {
|
|
|
104463
104494
|
});
|
|
104464
104495
|
}
|
|
104465
104496
|
canSelectAll() {
|
|
104466
|
-
const { gos
|
|
104497
|
+
const { gos } = this.beans;
|
|
104467
104498
|
if (!_isClientSideRowModel(gos)) {
|
|
104468
|
-
_error(100, { rowModelType: rowModel.getType() });
|
|
104469
104499
|
return false;
|
|
104470
104500
|
}
|
|
104471
104501
|
return true;
|