ag-grid-community 33.3.0 → 33.3.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/dist/ag-grid-community.js +17 -22
- 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 +17 -22
- package/dist/package/main.cjs.js +24 -17
- package/dist/package/main.cjs.min.js +3 -3
- package/dist/package/main.esm.min.mjs +11 -11
- package/dist/package/main.esm.mjs +24 -17
- package/dist/package/package.json +2 -2
- package/dist/types/package.json +2 -2
- package/dist/types/src/gridBodyComp/gridBodyCtrl.d.ts +1 -0
- package/dist/types/src/version.d.ts +1 -1
- package/package.json +2 -2
|
@@ -25394,21 +25394,20 @@ class GridBodyCtrl extends beanStub_1.BeanStub {
|
|
|
25394
25394
|
});
|
|
25395
25395
|
}
|
|
25396
25396
|
addBodyViewportListener() {
|
|
25397
|
-
const { popupSvc, touchSvc } = this
|
|
25397
|
+
const { eBodyViewport, eStickyTop, eStickyBottom, eTop, eBottom, beans: { popupSvc, touchSvc }, } = this;
|
|
25398
25398
|
// we want to listen for clicks directly on the eBodyViewport, so the user has a way of showing
|
|
25399
25399
|
// the context menu if no rows or columns are displayed, or user simply clicks outside of a cell
|
|
25400
25400
|
const listener = this.onBodyViewportContextMenu.bind(this);
|
|
25401
|
-
this.addManagedElementListeners(
|
|
25401
|
+
this.addManagedElementListeners(eBodyViewport, { contextmenu: listener });
|
|
25402
25402
|
touchSvc?.mockBodyContextMenu(this, listener);
|
|
25403
|
-
this.addManagedElementListeners(
|
|
25403
|
+
this.addManagedElementListeners(eBodyViewport, {
|
|
25404
25404
|
wheel: this.onBodyViewportWheel.bind(this, popupSvc),
|
|
25405
25405
|
});
|
|
25406
25406
|
const onStickyWheel = this.onStickyWheel.bind(this);
|
|
25407
|
-
|
|
25408
|
-
|
|
25409
|
-
|
|
25410
|
-
this.
|
|
25411
|
-
const onHorizontalWheel = (e) => this.onStickyWheel(e, true);
|
|
25407
|
+
for (const container of [eStickyTop, eStickyBottom, eTop, eBottom]) {
|
|
25408
|
+
this.addManagedElementListeners(container, { wheel: onStickyWheel });
|
|
25409
|
+
}
|
|
25410
|
+
const onHorizontalWheel = this.onHorizontalWheel.bind(this);
|
|
25412
25411
|
for (const container of ['left', 'right', 'topLeft', 'topRight', 'bottomLeft', 'bottomRight']) {
|
|
25413
25412
|
this.addManagedElementListeners(this.ctrlsSvc.get(container).eContainer, {
|
|
25414
25413
|
wheel: onHorizontalWheel,
|
|
@@ -25429,21 +25428,18 @@ class GridBodyCtrl extends beanStub_1.BeanStub {
|
|
|
25429
25428
|
this.scrollGridBodyToMatchEvent(e);
|
|
25430
25429
|
}
|
|
25431
25430
|
}
|
|
25432
|
-
onStickyWheel(e
|
|
25431
|
+
onStickyWheel(e) {
|
|
25432
|
+
const { deltaY } = e;
|
|
25433
|
+
e.preventDefault();
|
|
25434
|
+
this.scrollVertically(deltaY);
|
|
25435
|
+
}
|
|
25436
|
+
onHorizontalWheel(e) {
|
|
25433
25437
|
const { deltaX, deltaY, shiftKey } = e;
|
|
25434
25438
|
const isHorizontalScroll = shiftKey || Math.abs(deltaX) > Math.abs(deltaY);
|
|
25435
|
-
// we test for shift key because some devices will
|
|
25436
|
-
// only change deltaY even when scrolling horizontally
|
|
25437
|
-
const target = e.target;
|
|
25438
25439
|
if (!isHorizontalScroll) {
|
|
25439
|
-
|
|
25440
|
-
this.scrollVertically(deltaY);
|
|
25441
|
-
}
|
|
25442
|
-
else if (this.eStickyTopFullWidthContainer.contains(target) ||
|
|
25443
|
-
this.eStickyBottomFullWidthContainer.contains(target) ||
|
|
25444
|
-
allowHorizontalScroll) {
|
|
25445
|
-
this.scrollGridBodyToMatchEvent(e);
|
|
25440
|
+
return;
|
|
25446
25441
|
}
|
|
25442
|
+
this.scrollGridBodyToMatchEvent(e);
|
|
25447
25443
|
}
|
|
25448
25444
|
scrollGridBodyToMatchEvent(e) {
|
|
25449
25445
|
const { deltaX, deltaY } = e;
|
|
@@ -49143,9 +49139,8 @@ class SelectionService extends baseSelectionService_1.BaseSelectionService {
|
|
|
49143
49139
|
});
|
|
49144
49140
|
}
|
|
49145
49141
|
canSelectAll() {
|
|
49146
|
-
const { gos
|
|
49142
|
+
const { gos } = this.beans;
|
|
49147
49143
|
if (!(0, gridOptionsUtils_1._isClientSideRowModel)(gos)) {
|
|
49148
|
-
(0, logging_1._error)(100, { rowModelType: rowModel.getType() });
|
|
49149
49144
|
return false;
|
|
49150
49145
|
}
|
|
49151
49146
|
return true;
|
|
@@ -58795,7 +58790,7 @@ exports.VanillaFrameworkOverrides = VanillaFrameworkOverrides;
|
|
|
58795
58790
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
58796
58791
|
exports.VERSION = void 0;
|
|
58797
58792
|
// DO NOT UPDATE MANUALLY: Generated from script during build time
|
|
58798
|
-
exports.VERSION = '33.3.
|
|
58793
|
+
exports.VERSION = '33.3.1';
|
|
58799
58794
|
|
|
58800
58795
|
|
|
58801
58796
|
/***/ }),
|