ag-grid-community 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-community.js +41 -38
- package/dist/ag-grid-community.min.js +1 -1
- package/dist/ag-grid-community.min.noStyle.js +1 -1
- package/dist/ag-grid-community.noStyle.js +41 -38
- package/dist/package/main.cjs.js +37 -22
- package/dist/package/main.cjs.min.js +5 -5
- package/dist/package/main.esm.min.mjs +20 -20
- package/dist/package/main.esm.mjs +37 -22
- package/dist/package/package.json +2 -2
- package/dist/types/package.json +2 -2
- package/dist/types/src/entities/rowNode.d.ts +1 -0
- package/dist/types/src/gridBodyComp/gridBodyCtrl.d.ts +1 -0
- package/dist/types/src/interfaces/IServerSideStore.d.ts +5 -0
- package/dist/types/src/main.d.ts +1 -1
- package/dist/types/src/version.d.ts +1 -1
- package/package.json +2 -2
|
@@ -857,7 +857,7 @@ function _defaultComparator(valueA, valueB, accentedCompare = false) {
|
|
|
857
857
|
var BASE_URL = "https://www.ag-grid.com";
|
|
858
858
|
|
|
859
859
|
// packages/ag-grid-community/src/version.ts
|
|
860
|
-
var VERSION = "33.3.
|
|
860
|
+
var VERSION = "33.3.2";
|
|
861
861
|
|
|
862
862
|
// packages/ag-grid-community/src/validation/logging.ts
|
|
863
863
|
var MAX_URL_LENGTH = 2e3;
|
|
@@ -8679,6 +8679,12 @@ var RowNode = class {
|
|
|
8679
8679
|
this.dispatchRowEvent("uiLevelChanged");
|
|
8680
8680
|
}
|
|
8681
8681
|
}
|
|
8682
|
+
getFirstChild() {
|
|
8683
|
+
if (this.childStore) {
|
|
8684
|
+
return this.childStore.getFirstNode();
|
|
8685
|
+
}
|
|
8686
|
+
return this.childrenAfterSort?.[0] ?? null;
|
|
8687
|
+
}
|
|
8682
8688
|
};
|
|
8683
8689
|
|
|
8684
8690
|
// packages/ag-grid-community/src/entities/rowNodeUtils.ts
|
|
@@ -12928,19 +12934,25 @@ var GridBodyCtrl = class extends BeanStub {
|
|
|
12928
12934
|
});
|
|
12929
12935
|
}
|
|
12930
12936
|
addBodyViewportListener() {
|
|
12931
|
-
const {
|
|
12937
|
+
const {
|
|
12938
|
+
eBodyViewport,
|
|
12939
|
+
eStickyTop,
|
|
12940
|
+
eStickyBottom,
|
|
12941
|
+
eTop,
|
|
12942
|
+
eBottom,
|
|
12943
|
+
beans: { popupSvc, touchSvc }
|
|
12944
|
+
} = this;
|
|
12932
12945
|
const listener = this.onBodyViewportContextMenu.bind(this);
|
|
12933
|
-
this.addManagedElementListeners(
|
|
12946
|
+
this.addManagedElementListeners(eBodyViewport, { contextmenu: listener });
|
|
12934
12947
|
touchSvc?.mockBodyContextMenu(this, listener);
|
|
12935
|
-
this.addManagedElementListeners(
|
|
12948
|
+
this.addManagedElementListeners(eBodyViewport, {
|
|
12936
12949
|
wheel: this.onBodyViewportWheel.bind(this, popupSvc)
|
|
12937
12950
|
});
|
|
12938
12951
|
const onStickyWheel = this.onStickyWheel.bind(this);
|
|
12939
|
-
|
|
12940
|
-
|
|
12941
|
-
|
|
12942
|
-
this.
|
|
12943
|
-
const onHorizontalWheel = (e) => this.onStickyWheel(e, true);
|
|
12952
|
+
for (const container of [eStickyTop, eStickyBottom, eTop, eBottom]) {
|
|
12953
|
+
this.addManagedElementListeners(container, { wheel: onStickyWheel });
|
|
12954
|
+
}
|
|
12955
|
+
const onHorizontalWheel = this.onHorizontalWheel.bind(this);
|
|
12944
12956
|
for (const container of ["left", "right", "topLeft", "topRight", "bottomLeft", "bottomRight"]) {
|
|
12945
12957
|
this.addManagedElementListeners(this.ctrlsSvc.get(container).eContainer, {
|
|
12946
12958
|
wheel: onHorizontalWheel
|
|
@@ -12960,16 +12972,18 @@ var GridBodyCtrl = class extends BeanStub {
|
|
|
12960
12972
|
this.scrollGridBodyToMatchEvent(e);
|
|
12961
12973
|
}
|
|
12962
12974
|
}
|
|
12963
|
-
onStickyWheel(e
|
|
12975
|
+
onStickyWheel(e) {
|
|
12976
|
+
const { deltaY } = e;
|
|
12977
|
+
e.preventDefault();
|
|
12978
|
+
this.scrollVertically(deltaY);
|
|
12979
|
+
}
|
|
12980
|
+
onHorizontalWheel(e) {
|
|
12964
12981
|
const { deltaX, deltaY, shiftKey } = e;
|
|
12965
12982
|
const isHorizontalScroll = shiftKey || Math.abs(deltaX) > Math.abs(deltaY);
|
|
12966
|
-
const target = e.target;
|
|
12967
12983
|
if (!isHorizontalScroll) {
|
|
12968
|
-
|
|
12969
|
-
this.scrollVertically(deltaY);
|
|
12970
|
-
} else if (this.eStickyTopFullWidthContainer.contains(target) || this.eStickyBottomFullWidthContainer.contains(target) || allowHorizontalScroll) {
|
|
12971
|
-
this.scrollGridBodyToMatchEvent(e);
|
|
12984
|
+
return;
|
|
12972
12985
|
}
|
|
12986
|
+
this.scrollGridBodyToMatchEvent(e);
|
|
12973
12987
|
}
|
|
12974
12988
|
scrollGridBodyToMatchEvent(e) {
|
|
12975
12989
|
const { deltaX, deltaY } = e;
|
|
@@ -34710,13 +34724,13 @@ var RowRenderer = class extends BeanStub {
|
|
|
34710
34724
|
indexesToDraw.push(i);
|
|
34711
34725
|
}
|
|
34712
34726
|
const pagination = this.beans.pagination;
|
|
34713
|
-
const
|
|
34714
|
-
if (
|
|
34715
|
-
indexesToDraw.push(
|
|
34727
|
+
const focusedRowIndex = this.beans.focusSvc?.getFocusedCell()?.rowIndex;
|
|
34728
|
+
if (focusedRowIndex != null && (focusedRowIndex < this.firstRenderedRow || focusedRowIndex > this.lastRenderedRow) && (!pagination || pagination.isRowInPage(focusedRowIndex)) && focusedRowIndex < this.rowModel.getRowCount()) {
|
|
34729
|
+
indexesToDraw.push(focusedRowIndex);
|
|
34716
34730
|
}
|
|
34717
34731
|
const checkRowToDraw = (rowComp) => {
|
|
34718
34732
|
const index = rowComp.rowNode.rowIndex;
|
|
34719
|
-
if (index == null || index ===
|
|
34733
|
+
if (index == null || index === focusedRowIndex) {
|
|
34720
34734
|
return;
|
|
34721
34735
|
}
|
|
34722
34736
|
if (index < this.firstRenderedRow || index > this.lastRenderedRow) {
|
|
@@ -37079,6 +37093,7 @@ var BaseGridSerializingSession = class {
|
|
|
37079
37093
|
isFullWidthGroup ? void 0 : column,
|
|
37080
37094
|
// full width group doesn't have a column
|
|
37081
37095
|
pointer,
|
|
37096
|
+
true,
|
|
37082
37097
|
true
|
|
37083
37098
|
);
|
|
37084
37099
|
concatenatedGroupValue = ` -> ${valueFormatted2 ?? value2 ?? ""}${concatenatedGroupValue}`;
|
|
@@ -37090,7 +37105,7 @@ var BaseGridSerializingSession = class {
|
|
|
37090
37105
|
valueFormatted: concatenatedGroupValue
|
|
37091
37106
|
};
|
|
37092
37107
|
}
|
|
37093
|
-
const { value, valueFormatted } = valueService.getValueForDisplay(column, node, true);
|
|
37108
|
+
const { value, valueFormatted } = valueService.getValueForDisplay(column, node, true, true);
|
|
37094
37109
|
return {
|
|
37095
37110
|
value: value ?? "",
|
|
37096
37111
|
valueFormatted
|
|
@@ -44438,9 +44453,8 @@ var SelectionService = class extends BaseSelectionService {
|
|
|
44438
44453
|
});
|
|
44439
44454
|
}
|
|
44440
44455
|
canSelectAll() {
|
|
44441
|
-
const { gos
|
|
44456
|
+
const { gos } = this.beans;
|
|
44442
44457
|
if (!_isClientSideRowModel(gos)) {
|
|
44443
|
-
_error(100, { rowModelType: rowModel.getType() });
|
|
44444
44458
|
return false;
|
|
44445
44459
|
}
|
|
44446
44460
|
return true;
|
|
@@ -51063,6 +51077,7 @@ export {
|
|
|
51063
51077
|
_combineAttributesAndGridOptions,
|
|
51064
51078
|
_convertColumnEventSourceType,
|
|
51065
51079
|
_createCellId,
|
|
51080
|
+
_createColumnTree,
|
|
51066
51081
|
_createColumnTreeWithIds,
|
|
51067
51082
|
_createElement,
|
|
51068
51083
|
_createGlobalRowEvent,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ag-grid-community",
|
|
3
|
-
"version": "33.3.
|
|
3
|
+
"version": "33.3.2",
|
|
4
4
|
"description": "Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue",
|
|
5
5
|
"main": "./dist/package/main.cjs.js",
|
|
6
6
|
"types": "./dist/types/src/main.d.ts",
|
|
@@ -119,7 +119,7 @@
|
|
|
119
119
|
],
|
|
120
120
|
"homepage": "https://www.ag-grid.com/",
|
|
121
121
|
"dependencies": {
|
|
122
|
-
"ag-charts-types": "11.3.
|
|
122
|
+
"ag-charts-types": "11.3.2"
|
|
123
123
|
},
|
|
124
124
|
"devDependencies": {
|
|
125
125
|
"source-map-loader": "^5.0.0",
|
package/dist/types/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ag-grid-community",
|
|
3
|
-
"version": "33.3.
|
|
3
|
+
"version": "33.3.2",
|
|
4
4
|
"description": "Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue",
|
|
5
5
|
"main": "./dist/package/main.cjs.js",
|
|
6
6
|
"types": "./dist/types/src/main.d.ts",
|
|
@@ -119,7 +119,7 @@
|
|
|
119
119
|
],
|
|
120
120
|
"homepage": "https://www.ag-grid.com/",
|
|
121
121
|
"dependencies": {
|
|
122
|
-
"ag-charts-types": "11.3.
|
|
122
|
+
"ag-charts-types": "11.3.2"
|
|
123
123
|
},
|
|
124
124
|
"devDependencies": {
|
|
125
125
|
"source-map-loader": "^5.0.0",
|
|
@@ -317,4 +317,5 @@ export declare class RowNode<TData = any> implements IEventEmitter<RowNodeEventT
|
|
|
317
317
|
setRowIndex(rowIndex: number | null): void;
|
|
318
318
|
setAllChildrenCount(allChildrenCount: number | null): void;
|
|
319
319
|
setUiLevel(uiLevel: number): void;
|
|
320
|
+
getFirstChild(): RowNode<TData> | null;
|
|
320
321
|
}
|
|
@@ -69,6 +69,7 @@ export declare class GridBodyCtrl extends BeanStub {
|
|
|
69
69
|
private addFullWidthContainerWheelListener;
|
|
70
70
|
private onFullWidthContainerWheel;
|
|
71
71
|
private onStickyWheel;
|
|
72
|
+
private onHorizontalWheel;
|
|
72
73
|
private scrollGridBodyToMatchEvent;
|
|
73
74
|
private onBodyViewportContextMenu;
|
|
74
75
|
private onBodyViewportWheel;
|
|
@@ -1,9 +1,14 @@
|
|
|
1
1
|
import type { Bean } from '../context/bean';
|
|
2
|
+
import type { IRowNode } from './iRowNode';
|
|
2
3
|
export interface IServerSideStore extends Bean {
|
|
3
4
|
getStoreBounds(): {
|
|
4
5
|
topPx: number;
|
|
5
6
|
heightPx: number;
|
|
6
7
|
};
|
|
8
|
+
/**
|
|
9
|
+
* Returns the first child of the group (index 0), if the node is not loaded, returns null.
|
|
10
|
+
*/
|
|
11
|
+
getFirstNode(): IRowNode | null;
|
|
7
12
|
}
|
|
8
13
|
export interface StoreRefreshAfterParams {
|
|
9
14
|
valueColChanged: boolean;
|
package/dist/types/src/main.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { _updateColumnState, _addColumnDefaultAndTypes, _createColumnTreeWithIds } from './columns/columnFactoryUtils';
|
|
1
|
+
export { _updateColumnState, _addColumnDefaultAndTypes, _createColumnTree, _createColumnTreeWithIds, } from './columns/columnFactoryUtils';
|
|
2
2
|
export type { ColumnGroupService } from './columns/columnGroups/columnGroupService';
|
|
3
3
|
export type { ColumnModel } from './columns/columnModel';
|
|
4
4
|
export { ColumnCollections as _ColumnCollections, ColKey } from './columns/columnModel';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const VERSION = "33.3.
|
|
1
|
+
export declare const VERSION = "33.3.2";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ag-grid-community",
|
|
3
|
-
"version": "33.3.
|
|
3
|
+
"version": "33.3.2",
|
|
4
4
|
"description": "Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue",
|
|
5
5
|
"main": "./dist/package/main.cjs.js",
|
|
6
6
|
"types": "./dist/types/src/main.d.ts",
|
|
@@ -119,7 +119,7 @@
|
|
|
119
119
|
],
|
|
120
120
|
"homepage": "https://www.ag-grid.com/",
|
|
121
121
|
"dependencies": {
|
|
122
|
-
"ag-charts-types": "11.3.
|
|
122
|
+
"ag-charts-types": "11.3.2"
|
|
123
123
|
},
|
|
124
124
|
"devDependencies": {
|
|
125
125
|
"source-map-loader": "^5.0.0",
|