ag-grid-community 32.0.0 → 32.0.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 +83 -39
- 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 +83 -39
- package/dist/package/main.cjs.js +83 -39
- package/dist/package/main.cjs.min.js +17 -17
- package/dist/package/main.esm.min.mjs +41 -41
- package/dist/package/main.esm.mjs +83 -39
- package/dist/package/package.json +7 -7
- package/dist/types/client-side-row-model/version.d.ts +1 -1
- package/dist/types/core/interfaces/iCallbackParams.d.ts +3 -1
- package/dist/types/core/interfaces/iColumn.d.ts +4 -6
- package/dist/types/core/interfaces/iRowNode.d.ts +2 -2
- package/dist/types/core/main.d.ts +1 -1
- package/dist/types/core/pinnedRowModel/pinnedRowModel.d.ts +1 -0
- package/dist/types/core/rendering/row/rowDragComp.d.ts +2 -0
- package/dist/types/core/utils/object.d.ts +1 -0
- package/dist/types/core/version.d.ts +1 -1
- package/dist/types/core/widgets/component.d.ts +1 -0
- package/dist/types/csv-export/version.d.ts +1 -1
- package/dist/types/infinite-row-model/version.d.ts +1 -1
- package/package.json +7 -7
|
@@ -615,6 +615,7 @@ function _values(object) {
|
|
|
615
615
|
}
|
|
616
616
|
|
|
617
617
|
// community-modules/core/src/utils/object.ts
|
|
618
|
+
var SKIP_JS_BUILTINS = /* @__PURE__ */ new Set(["__proto__", "constructor", "prototype"]);
|
|
618
619
|
function _iterateObject(object, callback) {
|
|
619
620
|
if (object == null) {
|
|
620
621
|
return;
|
|
@@ -633,6 +634,9 @@ function _cloneObject(object) {
|
|
|
633
634
|
const copy = {};
|
|
634
635
|
const keys = Object.keys(object);
|
|
635
636
|
for (let i = 0; i < keys.length; i++) {
|
|
637
|
+
if (SKIP_JS_BUILTINS.has(keys[i])) {
|
|
638
|
+
continue;
|
|
639
|
+
}
|
|
636
640
|
const key = keys[i];
|
|
637
641
|
const value = object[key];
|
|
638
642
|
copy[key] = value;
|
|
@@ -646,7 +650,7 @@ function _deepCloneDefinition(object, keysToSkip) {
|
|
|
646
650
|
const obj = object;
|
|
647
651
|
const res = {};
|
|
648
652
|
Object.keys(obj).forEach((key) => {
|
|
649
|
-
if (keysToSkip && keysToSkip.indexOf(key) >= 0) {
|
|
653
|
+
if (keysToSkip && keysToSkip.indexOf(key) >= 0 || SKIP_JS_BUILTINS.has(key)) {
|
|
650
654
|
return;
|
|
651
655
|
}
|
|
652
656
|
const value = obj[key];
|
|
@@ -680,6 +684,9 @@ function _mergeDeep(dest, source, copyUndefined = true, makeCopyOfSimpleObjects
|
|
|
680
684
|
return;
|
|
681
685
|
}
|
|
682
686
|
_iterateObject(source, (key, sourceValue) => {
|
|
687
|
+
if (SKIP_JS_BUILTINS.has(key)) {
|
|
688
|
+
return;
|
|
689
|
+
}
|
|
683
690
|
let destValue = dest[key];
|
|
684
691
|
if (destValue === sourceValue) {
|
|
685
692
|
return;
|
|
@@ -1486,10 +1493,10 @@ function _log(message, ...args) {
|
|
|
1486
1493
|
console.log("AG Grid: " + message, ...args);
|
|
1487
1494
|
}
|
|
1488
1495
|
function _warnOnce(msg, ...args) {
|
|
1489
|
-
_doOnce(() => console.warn("AG Grid: " + msg, ...args), msg);
|
|
1496
|
+
_doOnce(() => console.warn("AG Grid: " + msg, ...args), msg + args?.join(""));
|
|
1490
1497
|
}
|
|
1491
1498
|
function _errorOnce(msg, ...args) {
|
|
1492
|
-
_doOnce(() => console.error("AG Grid: " + msg, ...args), msg);
|
|
1499
|
+
_doOnce(() => console.error("AG Grid: " + msg, ...args), msg + args?.join(""));
|
|
1493
1500
|
}
|
|
1494
1501
|
function _isFunction(val) {
|
|
1495
1502
|
return !!(val && val.constructor && val.call && val.apply);
|
|
@@ -3878,21 +3885,25 @@ var ColumnMoveService = class extends BeanStub {
|
|
|
3878
3885
|
return proposedColumnOrder;
|
|
3879
3886
|
}
|
|
3880
3887
|
doesMovePassLockedPositions(proposedColumnOrder) {
|
|
3881
|
-
let lastPlacement = 0;
|
|
3882
|
-
let rulePassed = true;
|
|
3883
3888
|
const lockPositionToPlacement = (position) => {
|
|
3884
3889
|
if (!position) {
|
|
3885
|
-
return
|
|
3886
|
-
}
|
|
3887
|
-
if (position === true) {
|
|
3888
|
-
return 0;
|
|
3890
|
+
return 0 /* NONE */;
|
|
3889
3891
|
}
|
|
3890
|
-
return position === "left" ?
|
|
3892
|
+
return position === "left" || position === true ? -1 /* LEFT */ : 1 /* RIGHT */;
|
|
3891
3893
|
};
|
|
3894
|
+
const isRtl = this.gos.get("enableRtl");
|
|
3895
|
+
let lastPlacement = isRtl ? 1 /* RIGHT */ : -1 /* LEFT */;
|
|
3896
|
+
let rulePassed = true;
|
|
3892
3897
|
proposedColumnOrder.forEach((col) => {
|
|
3893
3898
|
const placement = lockPositionToPlacement(col.getColDef().lockPosition);
|
|
3894
|
-
if (
|
|
3895
|
-
|
|
3899
|
+
if (isRtl) {
|
|
3900
|
+
if (placement > lastPlacement) {
|
|
3901
|
+
rulePassed = false;
|
|
3902
|
+
}
|
|
3903
|
+
} else {
|
|
3904
|
+
if (placement < lastPlacement) {
|
|
3905
|
+
rulePassed = false;
|
|
3906
|
+
}
|
|
3896
3907
|
}
|
|
3897
3908
|
lastPlacement = placement;
|
|
3898
3909
|
});
|
|
@@ -7239,9 +7250,15 @@ var Component = class _Component extends BeanStub {
|
|
|
7239
7250
|
);
|
|
7240
7251
|
}
|
|
7241
7252
|
}
|
|
7253
|
+
getDataRefAttribute(element) {
|
|
7254
|
+
if (element.getAttribute) {
|
|
7255
|
+
return element.getAttribute("data-ref");
|
|
7256
|
+
}
|
|
7257
|
+
return null;
|
|
7258
|
+
}
|
|
7242
7259
|
applyElementsToComponent(element, elementRef, paramsMap, newComponent = null) {
|
|
7243
7260
|
if (elementRef === void 0) {
|
|
7244
|
-
elementRef =
|
|
7261
|
+
elementRef = this.getDataRefAttribute(element);
|
|
7245
7262
|
}
|
|
7246
7263
|
if (elementRef) {
|
|
7247
7264
|
const current = this[elementRef];
|
|
@@ -7286,7 +7303,7 @@ var Component = class _Component extends BeanStub {
|
|
|
7286
7303
|
}
|
|
7287
7304
|
createComponentFromElement(element, afterPreCreateCallback, paramsMap) {
|
|
7288
7305
|
const key = element.nodeName;
|
|
7289
|
-
const elementRef =
|
|
7306
|
+
const elementRef = this.getDataRefAttribute(element);
|
|
7290
7307
|
const isAgGridComponent = key.indexOf("AG-") === 0;
|
|
7291
7308
|
const componentSelector = isAgGridComponent ? this.componentSelectors.get(key) : null;
|
|
7292
7309
|
let newComponent = null;
|
|
@@ -10498,9 +10515,11 @@ var RowDragFeature = class extends BeanStub {
|
|
|
10498
10515
|
addIndex--;
|
|
10499
10516
|
}
|
|
10500
10517
|
this.clientSideRowModel.updateRowData({
|
|
10501
|
-
add: rowNodes.
|
|
10502
|
-
(
|
|
10503
|
-
|
|
10518
|
+
add: rowNodes.filter(
|
|
10519
|
+
(node) => !this.clientSideRowModel.getRowNode(
|
|
10520
|
+
getRowIdFunc?.({ data: node.data, level: 0, rowPinned: node.rowPinned }) ?? node.data.id
|
|
10521
|
+
)
|
|
10522
|
+
).map((node) => node.data),
|
|
10504
10523
|
addIndex
|
|
10505
10524
|
});
|
|
10506
10525
|
}
|
|
@@ -10975,10 +10994,19 @@ var RowDragComp = class extends Component {
|
|
|
10975
10994
|
if (this.dragSource) {
|
|
10976
10995
|
this.removeDragSource();
|
|
10977
10996
|
}
|
|
10997
|
+
const eGui = this.getGui();
|
|
10998
|
+
if (this.gos.get("enableCellTextSelection")) {
|
|
10999
|
+
this.removeMouseDownListener();
|
|
11000
|
+
this.mouseDownListener = this.addManagedElementListeners(eGui, {
|
|
11001
|
+
mousedown: (e) => {
|
|
11002
|
+
e?.preventDefault();
|
|
11003
|
+
}
|
|
11004
|
+
})[0];
|
|
11005
|
+
}
|
|
10978
11006
|
const translate = this.localeService.getLocaleTextFunc();
|
|
10979
11007
|
this.dragSource = {
|
|
10980
11008
|
type: 2 /* RowDrag */,
|
|
10981
|
-
eElement:
|
|
11009
|
+
eElement: eGui,
|
|
10982
11010
|
dragItemName: () => {
|
|
10983
11011
|
const dragItem = this.getDragItem();
|
|
10984
11012
|
const dragItemCount = dragItem.rowNodes?.length || 1;
|
|
@@ -10996,14 +11024,23 @@ var RowDragComp = class extends Component {
|
|
|
10996
11024
|
}
|
|
10997
11025
|
destroy() {
|
|
10998
11026
|
this.removeDragSource();
|
|
11027
|
+
this.removeMouseDownListener();
|
|
10999
11028
|
super.destroy();
|
|
11000
11029
|
}
|
|
11001
11030
|
removeDragSource() {
|
|
11002
|
-
if (this.dragSource) {
|
|
11003
|
-
|
|
11031
|
+
if (!this.dragSource) {
|
|
11032
|
+
return;
|
|
11004
11033
|
}
|
|
11034
|
+
this.beans.dragAndDropService.removeDragSource(this.dragSource);
|
|
11005
11035
|
this.dragSource = null;
|
|
11006
11036
|
}
|
|
11037
|
+
removeMouseDownListener() {
|
|
11038
|
+
if (!this.mouseDownListener) {
|
|
11039
|
+
return;
|
|
11040
|
+
}
|
|
11041
|
+
this.mouseDownListener();
|
|
11042
|
+
this.mouseDownListener = void 0;
|
|
11043
|
+
}
|
|
11007
11044
|
};
|
|
11008
11045
|
var VisibilityStrategy = class extends BeanStub {
|
|
11009
11046
|
constructor(parent, rowNode, column) {
|
|
@@ -11238,7 +11275,8 @@ var _RowNode = class _RowNode {
|
|
|
11238
11275
|
this.id = getRowIdFunc({
|
|
11239
11276
|
data: this.data,
|
|
11240
11277
|
parentKeys: parentKeys.length > 0 ? parentKeys : void 0,
|
|
11241
|
-
level: this.level
|
|
11278
|
+
level: this.level,
|
|
11279
|
+
rowPinned: this.rowPinned
|
|
11242
11280
|
});
|
|
11243
11281
|
if (this.id.startsWith(_RowNode.ID_PREFIX_ROW_GROUP)) {
|
|
11244
11282
|
_errorOnce(
|
|
@@ -16707,7 +16745,7 @@ var HeaderFilterCellCtrl = class extends AbstractHeaderCellCtrl {
|
|
|
16707
16745
|
};
|
|
16708
16746
|
|
|
16709
16747
|
// community-modules/core/src/version.ts
|
|
16710
|
-
var VERSION = "32.0.
|
|
16748
|
+
var VERSION = "32.0.2";
|
|
16711
16749
|
|
|
16712
16750
|
// community-modules/core/src/filter/columnFilterApi.ts
|
|
16713
16751
|
function isColumnFilterPresent(beans) {
|
|
@@ -24097,35 +24135,36 @@ var CellMouseListenerFeature = class extends BeanStub {
|
|
|
24097
24135
|
return res;
|
|
24098
24136
|
}
|
|
24099
24137
|
onCellDoubleClicked(mouseEvent) {
|
|
24100
|
-
const
|
|
24101
|
-
const
|
|
24102
|
-
|
|
24103
|
-
|
|
24104
|
-
);
|
|
24105
|
-
this.beans.eventService.dispatchEvent(cellDoubleClickedEvent);
|
|
24138
|
+
const { column, beans, cellCtrl } = this;
|
|
24139
|
+
const { eventService, frameworkOverrides, gos } = beans;
|
|
24140
|
+
const colDef = column.getColDef();
|
|
24141
|
+
const cellDoubleClickedEvent = cellCtrl.createEvent(mouseEvent, "cellDoubleClicked");
|
|
24142
|
+
eventService.dispatchEvent(cellDoubleClickedEvent);
|
|
24106
24143
|
if (typeof colDef.onCellDoubleClicked === "function") {
|
|
24107
24144
|
window.setTimeout(() => {
|
|
24108
|
-
|
|
24145
|
+
frameworkOverrides.wrapOutgoing(() => {
|
|
24109
24146
|
colDef.onCellDoubleClicked(cellDoubleClickedEvent);
|
|
24110
24147
|
});
|
|
24111
24148
|
}, 0);
|
|
24112
24149
|
}
|
|
24113
|
-
const editOnDoubleClick = !
|
|
24150
|
+
const editOnDoubleClick = !gos.get("singleClickEdit") && !gos.get("suppressClickEdit");
|
|
24114
24151
|
if (editOnDoubleClick) {
|
|
24115
|
-
|
|
24152
|
+
cellCtrl.startRowOrCellEdit(null, mouseEvent);
|
|
24116
24153
|
}
|
|
24117
24154
|
}
|
|
24118
24155
|
onMouseDown(mouseEvent) {
|
|
24119
24156
|
const { ctrlKey, metaKey, shiftKey } = mouseEvent;
|
|
24120
24157
|
const target = mouseEvent.target;
|
|
24121
24158
|
const { cellCtrl, beans } = this;
|
|
24122
|
-
const { eventService, rangeService, focusService } = beans;
|
|
24159
|
+
const { eventService, rangeService, focusService, gos } = beans;
|
|
24123
24160
|
if (this.isRightClickInExistingRange(mouseEvent)) {
|
|
24124
24161
|
return;
|
|
24125
24162
|
}
|
|
24126
24163
|
const ranges = rangeService && rangeService.getCellRanges().length != 0;
|
|
24127
24164
|
if (!shiftKey || !ranges) {
|
|
24128
|
-
const
|
|
24165
|
+
const isEnableCellTextSelection = gos.get("enableCellTextSelection");
|
|
24166
|
+
const shouldFocus = isEnableCellTextSelection && mouseEvent.defaultPrevented;
|
|
24167
|
+
const forceBrowserFocus = (_isBrowserSafari() || shouldFocus) && !cellCtrl.isEditing() && !_isFocusableFormField(target);
|
|
24129
24168
|
cellCtrl.focusCell(forceBrowserFocus);
|
|
24130
24169
|
}
|
|
24131
24170
|
if (shiftKey && ranges && !focusService.isCellFocused(cellCtrl.getCellPosition())) {
|
|
@@ -31785,6 +31824,7 @@ var PinnedRowModel = class extends BeanStub {
|
|
|
31785
31824
|
constructor() {
|
|
31786
31825
|
super(...arguments);
|
|
31787
31826
|
this.beanName = "pinnedRowModel";
|
|
31827
|
+
this.nextId = 0;
|
|
31788
31828
|
}
|
|
31789
31829
|
wireBeans(beans) {
|
|
31790
31830
|
this.beans = beans;
|
|
@@ -31869,11 +31909,12 @@ var PinnedRowModel = class extends BeanStub {
|
|
|
31869
31909
|
const getRowId = this.gos.getRowIdCallback();
|
|
31870
31910
|
const idPrefix = isTop ? RowNode.ID_PREFIX_TOP_PINNED : RowNode.ID_PREFIX_BOTTOM_PINNED;
|
|
31871
31911
|
let nextRowTop = 0;
|
|
31912
|
+
const pinned = isTop ? "top" : "bottom";
|
|
31872
31913
|
allData.forEach((dataItem, index) => {
|
|
31873
31914
|
const rowNode = new RowNode(this.beans);
|
|
31874
31915
|
rowNode.data = dataItem;
|
|
31875
|
-
rowNode.id = getRowId?.({ data: dataItem, level: 0 }) ?? idPrefix +
|
|
31876
|
-
rowNode.rowPinned =
|
|
31916
|
+
rowNode.id = getRowId?.({ data: dataItem, level: 0, rowPinned: pinned }) ?? idPrefix + this.nextId++;
|
|
31917
|
+
rowNode.rowPinned = pinned;
|
|
31877
31918
|
rowNode.setRowTop(nextRowTop);
|
|
31878
31919
|
rowNode.setRowHeight(this.gos.getRowHeightForNode(rowNode).height);
|
|
31879
31920
|
rowNode.setRowIndex(index);
|
|
@@ -33633,6 +33674,9 @@ function createApi(context) {
|
|
|
33633
33674
|
const apiFunctionService = context.getBean("apiFunctionService");
|
|
33634
33675
|
return new Proxy(apiFunctionService, {
|
|
33635
33676
|
get(target, prop) {
|
|
33677
|
+
if (prop === "then") {
|
|
33678
|
+
return;
|
|
33679
|
+
}
|
|
33636
33680
|
return (...args) => target.callFunction(prop, args);
|
|
33637
33681
|
}
|
|
33638
33682
|
});
|
|
@@ -40353,7 +40397,7 @@ var _GridOptionsService = class _GridOptionsService extends BeanStub {
|
|
|
40353
40397
|
return (params) => {
|
|
40354
40398
|
let id = getRowId(params);
|
|
40355
40399
|
if (typeof id !== "string") {
|
|
40356
|
-
_warnOnce(`The getRowId callback must return a string. The ID
|
|
40400
|
+
_warnOnce(`The getRowId callback must return a string. The ID `, id, ` is being cast to a string.`);
|
|
40357
40401
|
id = String(id);
|
|
40358
40402
|
}
|
|
40359
40403
|
return id;
|
|
@@ -44989,7 +45033,7 @@ var SortStage = class extends BeanStub {
|
|
|
44989
45033
|
};
|
|
44990
45034
|
|
|
44991
45035
|
// community-modules/client-side-row-model/src/version.ts
|
|
44992
|
-
var VERSION2 = "32.0.
|
|
45036
|
+
var VERSION2 = "32.0.2";
|
|
44993
45037
|
|
|
44994
45038
|
// community-modules/client-side-row-model/src/clientSideRowModelModule.ts
|
|
44995
45039
|
var ClientSideRowModelCoreModule = {
|
|
@@ -45678,7 +45722,7 @@ var GridSerializer = class extends BeanStub {
|
|
|
45678
45722
|
});
|
|
45679
45723
|
}
|
|
45680
45724
|
};
|
|
45681
|
-
var VERSION3 = "32.0.
|
|
45725
|
+
var VERSION3 = "32.0.2";
|
|
45682
45726
|
var CsvExportCoreModule = {
|
|
45683
45727
|
version: VERSION3,
|
|
45684
45728
|
moduleName: `${"@ag-grid-community/csv-export" /* CsvExportModule */}-core`,
|
|
@@ -46876,7 +46920,7 @@ function getInfiniteRowCount(beans) {
|
|
|
46876
46920
|
function isLastRowIndexKnown(beans) {
|
|
46877
46921
|
return beans.rowModelHelperService?.getInfiniteRowModel()?.isLastRowIndexKnown();
|
|
46878
46922
|
}
|
|
46879
|
-
var VERSION4 = "32.0.
|
|
46923
|
+
var VERSION4 = "32.0.2";
|
|
46880
46924
|
var InfiniteRowModelCoreModule = {
|
|
46881
46925
|
version: VERSION4,
|
|
46882
46926
|
moduleName: `${"@ag-grid-community/infinite-row-model" /* InfiniteRowModelModule */}-core`,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ag-grid-community",
|
|
3
|
-
"version": "32.0.
|
|
3
|
+
"version": "32.0.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/main.d.ts",
|
|
@@ -62,18 +62,18 @@
|
|
|
62
62
|
],
|
|
63
63
|
"homepage": "https://www.ag-grid.com/",
|
|
64
64
|
"dependencies": {
|
|
65
|
-
"ag-charts-types": "10.0.
|
|
65
|
+
"ag-charts-types": "10.0.2"
|
|
66
66
|
},
|
|
67
67
|
"devDependencies": {
|
|
68
68
|
"source-map-loader": "^5.0.0",
|
|
69
69
|
"gulp": "^4.0.0",
|
|
70
70
|
"gulp-replace": "^1.0.0",
|
|
71
71
|
"gulp-rename": "^2.0.0",
|
|
72
|
-
"@ag-grid-community/client-side-row-model": "32.0.
|
|
73
|
-
"@ag-grid-community/core": "32.0.
|
|
74
|
-
"@ag-grid-community/csv-export": "32.0.
|
|
75
|
-
"@ag-grid-community/infinite-row-model": "32.0.
|
|
76
|
-
"@ag-grid-community/styles": "32.0.
|
|
72
|
+
"@ag-grid-community/client-side-row-model": "32.0.2",
|
|
73
|
+
"@ag-grid-community/core": "32.0.2",
|
|
74
|
+
"@ag-grid-community/csv-export": "32.0.2",
|
|
75
|
+
"@ag-grid-community/infinite-row-model": "32.0.2",
|
|
76
|
+
"@ag-grid-community/styles": "32.0.2",
|
|
77
77
|
"ts-loader": "^9.5.1",
|
|
78
78
|
"style-loader": "^3.3.4",
|
|
79
79
|
"css-loader": "^6.10.0",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const VERSION = "32.0.
|
|
1
|
+
export declare const VERSION = "32.0.2";
|
|
@@ -3,7 +3,7 @@ import type { HeaderPosition } from '../headerRendering/common/headerPosition';
|
|
|
3
3
|
import type { ChartToolbarMenuItemOptions } from './iChartOptions';
|
|
4
4
|
import type { Column } from './iColumn';
|
|
5
5
|
import type { AgGridCommon } from './iCommon';
|
|
6
|
-
import type { IRowNode } from './iRowNode';
|
|
6
|
+
import type { IRowNode, RowPinnedType } from './iRowNode';
|
|
7
7
|
import type { ServerSideTransaction } from './serverSideTransaction';
|
|
8
8
|
export interface GetContextMenuItemsParams<TData = any, TContext = any> extends AgGridCommon<TData, TContext> {
|
|
9
9
|
/** Names of the items that would be provided by default. */
|
|
@@ -145,6 +145,8 @@ export interface IsApplyServerSideTransactionParams extends AgGridCommon<any, an
|
|
|
145
145
|
export interface GetRowIdParams<TData = any, TContext = any> extends AgGridCommon<TData, TContext> {
|
|
146
146
|
/** The data item provided to the grid for the row in question */
|
|
147
147
|
data: TData;
|
|
148
|
+
/** Pinned state of the row */
|
|
149
|
+
rowPinned?: RowPinnedType;
|
|
148
150
|
/** If grouping, the level, ie how many levels from the top. Used by ServerSide Row Model only */
|
|
149
151
|
level: number;
|
|
150
152
|
/** If grouping, provides the keys of the parent groups. Used by ServerSide Row Model only */
|
|
@@ -39,6 +39,10 @@ interface IProvidedColumn {
|
|
|
39
39
|
getInstanceId(): ColumnInstanceId;
|
|
40
40
|
/** Returns whether this column should be shown when the group is open / closed or undefined if its always shown. */
|
|
41
41
|
getColumnGroupShow(): ColumnGroupShowType | undefined;
|
|
42
|
+
/**
|
|
43
|
+
* Returns the parent column group, if this column is part of a column group.
|
|
44
|
+
*/
|
|
45
|
+
getOriginalParent(): ProvidedColumnGroup | null;
|
|
42
46
|
/** Returns the unique ID for the column. */
|
|
43
47
|
getId(): string;
|
|
44
48
|
}
|
|
@@ -209,12 +213,6 @@ export interface ColumnGroup<TValue = any> extends IHeaderColumn<TValue, AgColum
|
|
|
209
213
|
isColumn: false;
|
|
210
214
|
}
|
|
211
215
|
export interface ProvidedColumnGroup extends IProvidedColumn, IEventEmitter<AgProvidedColumnGroupEvent> {
|
|
212
|
-
/**
|
|
213
|
-
* Used for marryChildren, helps with comparing when duplicate groups have been created to manage split groups.
|
|
214
|
-
*
|
|
215
|
-
* Parent may contain a duplicate but not identical group when the group is split.
|
|
216
|
-
*/
|
|
217
|
-
getOriginalParent(): ProvidedColumnGroup | null;
|
|
218
216
|
/** Returns the level of this group. */
|
|
219
217
|
getLevel(): number;
|
|
220
218
|
/** Returns `true` if this column group is a padding group that is used to correctly align column groups / children. */
|
|
@@ -3,7 +3,7 @@ import type { Column } from '../interfaces/iColumn';
|
|
|
3
3
|
import type { BuildEventTypeMap } from './iEventEmitter';
|
|
4
4
|
export type RowNodeEventType = 'rowSelected' | 'selectableChanged' | 'displayedChanged' | 'dataChanged' | 'cellChanged' | 'masterChanged' | 'heightChanged' | 'topChanged' | 'groupChanged' | 'allChildrenCountChanged' | 'firstChildChanged' | 'lastChildChanged' | 'childIndexChanged' | 'rowIndexChanged' | 'expandedChanged' | 'hasChildrenChanged' | 'uiLevelChanged' | 'rowHighlightChanged' | 'mouseEnter' | 'mouseLeave' | 'draggingChanged';
|
|
5
5
|
export type RowNodeEventTypeMap<TData = any> = BuildEventTypeMap<RowNodeEventType, {
|
|
6
|
-
rowSelected:
|
|
6
|
+
rowSelected: RowNodeSelectedEvent<TData>;
|
|
7
7
|
selectableChanged: SelectableChangedEvent<TData>;
|
|
8
8
|
displayedChanged: DisplayedChangedEvent<TData>;
|
|
9
9
|
dataChanged: DataChangedEvent<TData>;
|
|
@@ -37,7 +37,7 @@ export interface SetSelectedParams {
|
|
|
37
37
|
export interface RowNodeEvent<T extends RowNodeEventType, TData = any> extends AgEvent<T> {
|
|
38
38
|
node: IRowNode<TData>;
|
|
39
39
|
}
|
|
40
|
-
export interface
|
|
40
|
+
export interface RowNodeSelectedEvent<TData = any> extends RowNodeEvent<'rowSelected', TData> {
|
|
41
41
|
}
|
|
42
42
|
export interface MouseEnterEvent<TData = any> extends RowNodeEvent<'mouseEnter', TData> {
|
|
43
43
|
}
|
|
@@ -34,7 +34,7 @@ export { AgColumn, isColumn } from './entities/agColumn';
|
|
|
34
34
|
export { AgColumnGroup, isColumnGroup } from './entities/agColumnGroup';
|
|
35
35
|
export { AgProvidedColumnGroup, isProvidedColumnGroup } from './entities/agProvidedColumnGroup';
|
|
36
36
|
export { RowNode } from './entities/rowNode';
|
|
37
|
-
export { RowHighlightPosition, RowPinnedType, IRowNode,
|
|
37
|
+
export { RowHighlightPosition, RowPinnedType, IRowNode, RowNodeSelectedEvent, MouseEnterEvent, MouseLeaveEvent, HeightChangedEvent, RowIndexChangedEvent, TopChangedEvent, ExpandedChangedEvent, FirstChildChangedEvent, LastChildChangedEvent, ChildIndexChangedEvent, AllChildrenCountChangedEvent, UiLevelChangedEvent, DataChangedEvent, CellChangedEvent, SelectableChangedEvent, DisplayedChangedEvent, MasterChangedEvent, GroupChangedEvent, HasChildrenChangedEvent, RowHighlightChangedEvent, DraggingChangedEvent, } from './interfaces/iRowNode';
|
|
38
38
|
export { IFilterDef, IFilterParams, IFilterOptionDef, IDoesFilterPassParams, ProvidedFilterModel, IFilter, IFilterComp, IFilterType, IFloatingFilterType, FilterModel, BaseFilter, BaseFilterParams, } from './interfaces/iFilter';
|
|
39
39
|
export { ISetFilter, SetFilterModel, ISetFilterParams, SetFilterParams, SetFilterValues, SetFilterModelValue, SetFilterValuesFunc, SetFilterValuesFuncParams, ISetFilterTreeListTooltipParams, } from './interfaces/iSetFilter';
|
|
40
40
|
export { FilterManager } from './filter/filterManager';
|
|
@@ -16,6 +16,7 @@ export declare class RowDragComp extends Component {
|
|
|
16
16
|
private readonly suppressVisibilityChange?;
|
|
17
17
|
private dragSource;
|
|
18
18
|
private beans;
|
|
19
|
+
private mouseDownListener;
|
|
19
20
|
wireBeans(beans: BeanCollection): void;
|
|
20
21
|
constructor(cellValueFn: () => string, rowNode: RowNode, column?: AgColumn<any> | undefined, customGui?: HTMLElement | undefined, dragStartPixels?: number | undefined, suppressVisibilityChange?: boolean | undefined);
|
|
21
22
|
isCustomGui(): boolean;
|
|
@@ -28,4 +29,5 @@ export declare class RowDragComp extends Component {
|
|
|
28
29
|
private addDragSource;
|
|
29
30
|
destroy(): void;
|
|
30
31
|
private removeDragSource;
|
|
32
|
+
private removeMouseDownListener;
|
|
31
33
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const VERSION = "32.0.
|
|
1
|
+
export declare const VERSION = "32.0.2";
|
|
@@ -54,6 +54,7 @@ export declare class Component<TLocalEvent extends string = ComponentEvent> exte
|
|
|
54
54
|
getColDef?(): ColDef | ColGroupDef;
|
|
55
55
|
shouldDisplayTooltip?: () => boolean;
|
|
56
56
|
}): void;
|
|
57
|
+
private getDataRefAttribute;
|
|
57
58
|
private applyElementsToComponent;
|
|
58
59
|
private createChildComponentsFromTags;
|
|
59
60
|
private createComponentFromElement;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const VERSION = "32.0.
|
|
1
|
+
export declare const VERSION = "32.0.2";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const VERSION = "32.0.
|
|
1
|
+
export declare const VERSION = "32.0.2";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ag-grid-community",
|
|
3
|
-
"version": "32.0.
|
|
3
|
+
"version": "32.0.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/main.d.ts",
|
|
@@ -62,18 +62,18 @@
|
|
|
62
62
|
],
|
|
63
63
|
"homepage": "https://www.ag-grid.com/",
|
|
64
64
|
"dependencies": {
|
|
65
|
-
"ag-charts-types": "10.0.
|
|
65
|
+
"ag-charts-types": "10.0.2"
|
|
66
66
|
},
|
|
67
67
|
"devDependencies": {
|
|
68
68
|
"source-map-loader": "^5.0.0",
|
|
69
69
|
"gulp": "^4.0.0",
|
|
70
70
|
"gulp-replace": "^1.0.0",
|
|
71
71
|
"gulp-rename": "^2.0.0",
|
|
72
|
-
"@ag-grid-community/client-side-row-model": "32.0.
|
|
73
|
-
"@ag-grid-community/core": "32.0.
|
|
74
|
-
"@ag-grid-community/csv-export": "32.0.
|
|
75
|
-
"@ag-grid-community/infinite-row-model": "32.0.
|
|
76
|
-
"@ag-grid-community/styles": "32.0.
|
|
72
|
+
"@ag-grid-community/client-side-row-model": "32.0.2",
|
|
73
|
+
"@ag-grid-community/core": "32.0.2",
|
|
74
|
+
"@ag-grid-community/csv-export": "32.0.2",
|
|
75
|
+
"@ag-grid-community/infinite-row-model": "32.0.2",
|
|
76
|
+
"@ag-grid-community/styles": "32.0.2",
|
|
77
77
|
"ts-loader": "^9.5.1",
|
|
78
78
|
"style-loader": "^3.3.4",
|
|
79
79
|
"css-loader": "^6.10.0",
|