ag-grid-community 32.3.4 → 32.3.6
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 +139 -170
- 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 +139 -170
- package/dist/package/main.cjs.js +139 -170
- package/dist/package/main.cjs.min.js +6 -9
- package/dist/package/main.esm.min.mjs +46 -49
- package/dist/package/main.esm.mjs +139 -170
- package/dist/package/package.json +8 -8
- package/dist/types/client-side-row-model/version.d.ts +1 -1
- package/dist/types/core/utils/dom.d.ts +0 -1
- package/dist/types/core/version.d.ts +1 -1
- package/dist/types/csv-export/version.d.ts +1 -1
- package/dist/types/infinite-row-model/version.d.ts +1 -1
- package/dist/types/theming/version.d.ts +1 -1
- package/package.json +8 -8
|
@@ -1929,7 +1929,7 @@ var SortStage = class extends import_core8.BeanStub {
|
|
|
1929
1929
|
};
|
|
1930
1930
|
|
|
1931
1931
|
// community-modules/client-side-row-model/src/version.ts
|
|
1932
|
-
var VERSION = "32.3.
|
|
1932
|
+
var VERSION = "32.3.6";
|
|
1933
1933
|
|
|
1934
1934
|
// community-modules/client-side-row-model/src/clientSideRowModelModule.ts
|
|
1935
1935
|
var ClientSideRowModelCoreModule = (0, import_core9._defineModule)({
|
|
@@ -9140,140 +9140,7 @@ function _getAriaCheckboxStateName(translate, state) {
|
|
|
9140
9140
|
return state === void 0 ? translate("ariaIndeterminate", "indeterminate") : state === true ? translate("ariaChecked", "checked") : translate("ariaUnchecked", "unchecked");
|
|
9141
9141
|
}
|
|
9142
9142
|
|
|
9143
|
-
// community-modules/core/src/utils/browser.ts
|
|
9144
|
-
var isSafari;
|
|
9145
|
-
var safariVersion;
|
|
9146
|
-
var isChrome;
|
|
9147
|
-
var isFirefox;
|
|
9148
|
-
var isMacOs;
|
|
9149
|
-
var isIOS;
|
|
9150
|
-
var invisibleScrollbar;
|
|
9151
|
-
var browserScrollbarWidth;
|
|
9152
|
-
var maxDivHeight;
|
|
9153
|
-
function _isBrowserSafari() {
|
|
9154
|
-
if (isSafari === void 0) {
|
|
9155
|
-
isSafari = /^((?!chrome|android).)*safari/i.test(navigator.userAgent);
|
|
9156
|
-
}
|
|
9157
|
-
return isSafari;
|
|
9158
|
-
}
|
|
9159
|
-
function _getSafariVersion() {
|
|
9160
|
-
if (safariVersion === void 0) {
|
|
9161
|
-
if (_isBrowserSafari()) {
|
|
9162
|
-
const versionMatch = navigator.userAgent.match(/version\/(\d+)/i);
|
|
9163
|
-
if (versionMatch) {
|
|
9164
|
-
safariVersion = versionMatch[1] != null ? parseFloat(versionMatch[1]) : 0;
|
|
9165
|
-
}
|
|
9166
|
-
} else {
|
|
9167
|
-
safariVersion = 0;
|
|
9168
|
-
}
|
|
9169
|
-
}
|
|
9170
|
-
return safariVersion;
|
|
9171
|
-
}
|
|
9172
|
-
function _isBrowserChrome() {
|
|
9173
|
-
if (isChrome === void 0) {
|
|
9174
|
-
const win = window;
|
|
9175
|
-
isChrome = !!win.chrome && (!!win.chrome.webstore || !!win.chrome.runtime) || /Chrome/.test(navigator.userAgent) && /Google Inc/.test(navigator.vendor);
|
|
9176
|
-
}
|
|
9177
|
-
return isChrome;
|
|
9178
|
-
}
|
|
9179
|
-
function _isBrowserFirefox() {
|
|
9180
|
-
if (isFirefox === void 0) {
|
|
9181
|
-
isFirefox = /(firefox)/i.test(navigator.userAgent);
|
|
9182
|
-
}
|
|
9183
|
-
return isFirefox;
|
|
9184
|
-
}
|
|
9185
|
-
function _isMacOsUserAgent() {
|
|
9186
|
-
if (isMacOs === void 0) {
|
|
9187
|
-
isMacOs = /(Mac|iPhone|iPod|iPad)/i.test(navigator.platform);
|
|
9188
|
-
}
|
|
9189
|
-
return isMacOs;
|
|
9190
|
-
}
|
|
9191
|
-
function _isIOSUserAgent() {
|
|
9192
|
-
if (isIOS === void 0) {
|
|
9193
|
-
isIOS = /iPad|iPhone|iPod/.test(navigator.platform) || navigator.platform === "MacIntel" && navigator.maxTouchPoints > 1;
|
|
9194
|
-
}
|
|
9195
|
-
return isIOS;
|
|
9196
|
-
}
|
|
9197
|
-
function _browserSupportsPreventScroll() {
|
|
9198
|
-
return !_isBrowserSafari() || _getSafariVersion() >= 15;
|
|
9199
|
-
}
|
|
9200
|
-
function _getTabIndex(el) {
|
|
9201
|
-
if (!el) {
|
|
9202
|
-
return null;
|
|
9203
|
-
}
|
|
9204
|
-
const numberTabIndex = el.tabIndex;
|
|
9205
|
-
const tabIndex = el.getAttribute("tabIndex");
|
|
9206
|
-
if (numberTabIndex === -1 && (tabIndex === null || tabIndex === "" && !_isBrowserFirefox())) {
|
|
9207
|
-
return null;
|
|
9208
|
-
}
|
|
9209
|
-
return numberTabIndex.toString();
|
|
9210
|
-
}
|
|
9211
|
-
function _getMaxDivHeight() {
|
|
9212
|
-
if (maxDivHeight !== void 0) {
|
|
9213
|
-
return maxDivHeight;
|
|
9214
|
-
}
|
|
9215
|
-
if (!document.body) {
|
|
9216
|
-
return -1;
|
|
9217
|
-
}
|
|
9218
|
-
let res = 1e6;
|
|
9219
|
-
const testUpTo = _isBrowserFirefox() ? 6e6 : 1e9;
|
|
9220
|
-
const div = document.createElement("div");
|
|
9221
|
-
document.body.appendChild(div);
|
|
9222
|
-
while (true) {
|
|
9223
|
-
const test = res * 2;
|
|
9224
|
-
div.style.height = test + "px";
|
|
9225
|
-
if (test > testUpTo || div.clientHeight !== test) {
|
|
9226
|
-
break;
|
|
9227
|
-
} else {
|
|
9228
|
-
res = test;
|
|
9229
|
-
}
|
|
9230
|
-
}
|
|
9231
|
-
document.body.removeChild(div);
|
|
9232
|
-
maxDivHeight = res;
|
|
9233
|
-
return res;
|
|
9234
|
-
}
|
|
9235
|
-
function _getBodyWidth() {
|
|
9236
|
-
return document.body?.clientWidth ?? (window.innerHeight || document.documentElement?.clientWidth || -1);
|
|
9237
|
-
}
|
|
9238
|
-
function _getBodyHeight() {
|
|
9239
|
-
return document.body?.clientHeight ?? (window.innerHeight || document.documentElement?.clientHeight || -1);
|
|
9240
|
-
}
|
|
9241
|
-
function _getScrollbarWidth() {
|
|
9242
|
-
if (browserScrollbarWidth == null) {
|
|
9243
|
-
initScrollbarWidthAndVisibility();
|
|
9244
|
-
}
|
|
9245
|
-
return browserScrollbarWidth;
|
|
9246
|
-
}
|
|
9247
|
-
function initScrollbarWidthAndVisibility() {
|
|
9248
|
-
const body = document.body;
|
|
9249
|
-
const div = document.createElement("div");
|
|
9250
|
-
div.style.width = div.style.height = "100px";
|
|
9251
|
-
div.style.opacity = "0";
|
|
9252
|
-
div.style.overflow = "scroll";
|
|
9253
|
-
div.style.msOverflowStyle = "scrollbar";
|
|
9254
|
-
div.style.position = "absolute";
|
|
9255
|
-
body.appendChild(div);
|
|
9256
|
-
let width = div.offsetWidth - div.clientWidth;
|
|
9257
|
-
if (width === 0 && div.clientWidth === 0) {
|
|
9258
|
-
width = null;
|
|
9259
|
-
}
|
|
9260
|
-
if (div.parentNode) {
|
|
9261
|
-
div.parentNode.removeChild(div);
|
|
9262
|
-
}
|
|
9263
|
-
if (width != null) {
|
|
9264
|
-
browserScrollbarWidth = width;
|
|
9265
|
-
invisibleScrollbar = width === 0;
|
|
9266
|
-
}
|
|
9267
|
-
}
|
|
9268
|
-
function _isInvisibleScrollbar() {
|
|
9269
|
-
if (invisibleScrollbar == null) {
|
|
9270
|
-
initScrollbarWidthAndVisibility();
|
|
9271
|
-
}
|
|
9272
|
-
return invisibleScrollbar;
|
|
9273
|
-
}
|
|
9274
|
-
|
|
9275
9143
|
// community-modules/core/src/utils/dom.ts
|
|
9276
|
-
var rtlNegativeScroll;
|
|
9277
9144
|
function _radioCssClass(element, elementClass, otherElementClass) {
|
|
9278
9145
|
const parent = element.parentElement;
|
|
9279
9146
|
let sibling = parent && parent.firstChild;
|
|
@@ -9403,46 +9270,16 @@ function _getElementRectWithOffset(el) {
|
|
|
9403
9270
|
bottom: offsetElementRect.bottom + (borderBottomWidth || 0)
|
|
9404
9271
|
};
|
|
9405
9272
|
}
|
|
9406
|
-
function _isRtlNegativeScroll() {
|
|
9407
|
-
if (typeof rtlNegativeScroll === "boolean") {
|
|
9408
|
-
return rtlNegativeScroll;
|
|
9409
|
-
}
|
|
9410
|
-
const template = document.createElement("div");
|
|
9411
|
-
template.style.direction = "rtl";
|
|
9412
|
-
template.style.width = "1px";
|
|
9413
|
-
template.style.height = "1px";
|
|
9414
|
-
template.style.position = "fixed";
|
|
9415
|
-
template.style.top = "0px";
|
|
9416
|
-
template.style.overflow = "hidden";
|
|
9417
|
-
template.dir = "rtl";
|
|
9418
|
-
template.innerHTML = /* html */
|
|
9419
|
-
`<div style="width: 2px">
|
|
9420
|
-
<span style="display: inline-block; width: 1px"></span>
|
|
9421
|
-
<span style="display: inline-block; width: 1px"></span>
|
|
9422
|
-
</div>`;
|
|
9423
|
-
document.body.appendChild(template);
|
|
9424
|
-
template.scrollLeft = 1;
|
|
9425
|
-
rtlNegativeScroll = Math.floor(template.scrollLeft) === 0;
|
|
9426
|
-
document.body.removeChild(template);
|
|
9427
|
-
return rtlNegativeScroll;
|
|
9428
|
-
}
|
|
9429
9273
|
function _getScrollLeft(element, rtl) {
|
|
9430
9274
|
let scrollLeft = element.scrollLeft;
|
|
9431
9275
|
if (rtl) {
|
|
9432
9276
|
scrollLeft = Math.abs(scrollLeft);
|
|
9433
|
-
if (_isBrowserChrome() && !_isRtlNegativeScroll()) {
|
|
9434
|
-
scrollLeft = element.scrollWidth - element.getBoundingClientRect().width - scrollLeft;
|
|
9435
|
-
}
|
|
9436
9277
|
}
|
|
9437
9278
|
return scrollLeft;
|
|
9438
9279
|
}
|
|
9439
9280
|
function _setScrollLeft(element, value, rtl) {
|
|
9440
9281
|
if (rtl) {
|
|
9441
|
-
|
|
9442
|
-
value *= -1;
|
|
9443
|
-
} else if (_isBrowserSafari() || _isBrowserChrome()) {
|
|
9444
|
-
value = element.scrollWidth - element.getBoundingClientRect().width - value;
|
|
9445
|
-
}
|
|
9282
|
+
value *= -1;
|
|
9446
9283
|
}
|
|
9447
9284
|
element.scrollLeft = value;
|
|
9448
9285
|
}
|
|
@@ -9613,6 +9450,138 @@ var NumberSequence = class {
|
|
|
9613
9450
|
}
|
|
9614
9451
|
};
|
|
9615
9452
|
|
|
9453
|
+
// community-modules/core/src/utils/browser.ts
|
|
9454
|
+
var isSafari;
|
|
9455
|
+
var safariVersion;
|
|
9456
|
+
var isChrome;
|
|
9457
|
+
var isFirefox;
|
|
9458
|
+
var isMacOs;
|
|
9459
|
+
var isIOS;
|
|
9460
|
+
var invisibleScrollbar;
|
|
9461
|
+
var browserScrollbarWidth;
|
|
9462
|
+
var maxDivHeight;
|
|
9463
|
+
function _isBrowserSafari() {
|
|
9464
|
+
if (isSafari === void 0) {
|
|
9465
|
+
isSafari = /^((?!chrome|android).)*safari/i.test(navigator.userAgent);
|
|
9466
|
+
}
|
|
9467
|
+
return isSafari;
|
|
9468
|
+
}
|
|
9469
|
+
function _getSafariVersion() {
|
|
9470
|
+
if (safariVersion === void 0) {
|
|
9471
|
+
if (_isBrowserSafari()) {
|
|
9472
|
+
const versionMatch = navigator.userAgent.match(/version\/(\d+)/i);
|
|
9473
|
+
if (versionMatch) {
|
|
9474
|
+
safariVersion = versionMatch[1] != null ? parseFloat(versionMatch[1]) : 0;
|
|
9475
|
+
}
|
|
9476
|
+
} else {
|
|
9477
|
+
safariVersion = 0;
|
|
9478
|
+
}
|
|
9479
|
+
}
|
|
9480
|
+
return safariVersion;
|
|
9481
|
+
}
|
|
9482
|
+
function _isBrowserChrome() {
|
|
9483
|
+
if (isChrome === void 0) {
|
|
9484
|
+
const win = window;
|
|
9485
|
+
isChrome = !!win.chrome && (!!win.chrome.webstore || !!win.chrome.runtime) || /Chrome/.test(navigator.userAgent) && /Google Inc/.test(navigator.vendor);
|
|
9486
|
+
}
|
|
9487
|
+
return isChrome;
|
|
9488
|
+
}
|
|
9489
|
+
function _isBrowserFirefox() {
|
|
9490
|
+
if (isFirefox === void 0) {
|
|
9491
|
+
isFirefox = /(firefox)/i.test(navigator.userAgent);
|
|
9492
|
+
}
|
|
9493
|
+
return isFirefox;
|
|
9494
|
+
}
|
|
9495
|
+
function _isMacOsUserAgent() {
|
|
9496
|
+
if (isMacOs === void 0) {
|
|
9497
|
+
isMacOs = /(Mac|iPhone|iPod|iPad)/i.test(navigator.platform);
|
|
9498
|
+
}
|
|
9499
|
+
return isMacOs;
|
|
9500
|
+
}
|
|
9501
|
+
function _isIOSUserAgent() {
|
|
9502
|
+
if (isIOS === void 0) {
|
|
9503
|
+
isIOS = /iPad|iPhone|iPod/.test(navigator.platform) || navigator.platform === "MacIntel" && navigator.maxTouchPoints > 1;
|
|
9504
|
+
}
|
|
9505
|
+
return isIOS;
|
|
9506
|
+
}
|
|
9507
|
+
function _browserSupportsPreventScroll() {
|
|
9508
|
+
return !_isBrowserSafari() || _getSafariVersion() >= 15;
|
|
9509
|
+
}
|
|
9510
|
+
function _getTabIndex(el) {
|
|
9511
|
+
if (!el) {
|
|
9512
|
+
return null;
|
|
9513
|
+
}
|
|
9514
|
+
const numberTabIndex = el.tabIndex;
|
|
9515
|
+
const tabIndex = el.getAttribute("tabIndex");
|
|
9516
|
+
if (numberTabIndex === -1 && (tabIndex === null || tabIndex === "" && !_isBrowserFirefox())) {
|
|
9517
|
+
return null;
|
|
9518
|
+
}
|
|
9519
|
+
return numberTabIndex.toString();
|
|
9520
|
+
}
|
|
9521
|
+
function _getMaxDivHeight() {
|
|
9522
|
+
if (maxDivHeight !== void 0) {
|
|
9523
|
+
return maxDivHeight;
|
|
9524
|
+
}
|
|
9525
|
+
if (!document.body) {
|
|
9526
|
+
return -1;
|
|
9527
|
+
}
|
|
9528
|
+
let res = 1e6;
|
|
9529
|
+
const testUpTo = _isBrowserFirefox() ? 6e6 : 1e9;
|
|
9530
|
+
const div = document.createElement("div");
|
|
9531
|
+
document.body.appendChild(div);
|
|
9532
|
+
while (true) {
|
|
9533
|
+
const test = res * 2;
|
|
9534
|
+
div.style.height = test + "px";
|
|
9535
|
+
if (test > testUpTo || div.clientHeight !== test) {
|
|
9536
|
+
break;
|
|
9537
|
+
} else {
|
|
9538
|
+
res = test;
|
|
9539
|
+
}
|
|
9540
|
+
}
|
|
9541
|
+
document.body.removeChild(div);
|
|
9542
|
+
maxDivHeight = res;
|
|
9543
|
+
return res;
|
|
9544
|
+
}
|
|
9545
|
+
function _getBodyWidth() {
|
|
9546
|
+
return document.body?.clientWidth ?? (window.innerHeight || document.documentElement?.clientWidth || -1);
|
|
9547
|
+
}
|
|
9548
|
+
function _getBodyHeight() {
|
|
9549
|
+
return document.body?.clientHeight ?? (window.innerHeight || document.documentElement?.clientHeight || -1);
|
|
9550
|
+
}
|
|
9551
|
+
function _getScrollbarWidth() {
|
|
9552
|
+
if (browserScrollbarWidth == null) {
|
|
9553
|
+
initScrollbarWidthAndVisibility();
|
|
9554
|
+
}
|
|
9555
|
+
return browserScrollbarWidth;
|
|
9556
|
+
}
|
|
9557
|
+
function initScrollbarWidthAndVisibility() {
|
|
9558
|
+
const body = document.body;
|
|
9559
|
+
const div = document.createElement("div");
|
|
9560
|
+
div.style.width = div.style.height = "100px";
|
|
9561
|
+
div.style.opacity = "0";
|
|
9562
|
+
div.style.overflow = "scroll";
|
|
9563
|
+
div.style.msOverflowStyle = "scrollbar";
|
|
9564
|
+
div.style.position = "absolute";
|
|
9565
|
+
body.appendChild(div);
|
|
9566
|
+
let width = div.offsetWidth - div.clientWidth;
|
|
9567
|
+
if (width === 0 && div.clientWidth === 0) {
|
|
9568
|
+
width = null;
|
|
9569
|
+
}
|
|
9570
|
+
if (div.parentNode) {
|
|
9571
|
+
div.parentNode.removeChild(div);
|
|
9572
|
+
}
|
|
9573
|
+
if (width != null) {
|
|
9574
|
+
browserScrollbarWidth = width;
|
|
9575
|
+
invisibleScrollbar = width === 0;
|
|
9576
|
+
}
|
|
9577
|
+
}
|
|
9578
|
+
function _isInvisibleScrollbar() {
|
|
9579
|
+
if (invisibleScrollbar == null) {
|
|
9580
|
+
initScrollbarWidthAndVisibility();
|
|
9581
|
+
}
|
|
9582
|
+
return invisibleScrollbar;
|
|
9583
|
+
}
|
|
9584
|
+
|
|
9616
9585
|
// community-modules/core/src/widgets/tooltipStateManager.ts
|
|
9617
9586
|
var SHOW_QUICK_TOOLTIP_DIFF = 1e3;
|
|
9618
9587
|
var FADE_OUT_TOOLTIP_TIMEOUT = 1e3;
|
|
@@ -19853,7 +19822,7 @@ function _defineModule(definition) {
|
|
|
19853
19822
|
}
|
|
19854
19823
|
|
|
19855
19824
|
// community-modules/core/src/version.ts
|
|
19856
|
-
var VERSION = "32.3.
|
|
19825
|
+
var VERSION = "32.3.6";
|
|
19857
19826
|
|
|
19858
19827
|
// community-modules/core/src/filter/columnFilterApi.ts
|
|
19859
19828
|
function isColumnFilterPresent(beans) {
|
|
@@ -26050,7 +26019,7 @@ var GridBodyScrollFeature = class extends BeanStub {
|
|
|
26050
26019
|
shouldBlockHorizontalScroll(scrollTo) {
|
|
26051
26020
|
const clientWidth = this.centerRowsCtrl.getCenterWidth();
|
|
26052
26021
|
const { scrollWidth } = this.centerRowsCtrl.getViewportElement();
|
|
26053
|
-
if (this.enableRtl
|
|
26022
|
+
if (this.enableRtl) {
|
|
26054
26023
|
if (scrollTo > 0) {
|
|
26055
26024
|
return true;
|
|
26056
26025
|
}
|
|
@@ -26089,7 +26058,7 @@ var GridBodyScrollFeature = class extends BeanStub {
|
|
|
26089
26058
|
const minScrollLeft = 0;
|
|
26090
26059
|
const maxScrollLeft = this.centerRowsCtrl.getViewportElement().scrollWidth - this.centerRowsCtrl.getCenterWidth();
|
|
26091
26060
|
if (!fromAlignedGridsService && this.shouldBlockScrollUpdate(1 /* Horizontal */, hScrollPosition)) {
|
|
26092
|
-
if (this.enableRtl
|
|
26061
|
+
if (this.enableRtl) {
|
|
26093
26062
|
hScrollPosition = hScrollPosition > 0 ? 0 : maxScrollLeft;
|
|
26094
26063
|
} else {
|
|
26095
26064
|
hScrollPosition = Math.min(Math.max(hScrollPosition, minScrollLeft), maxScrollLeft);
|
|
@@ -48015,7 +47984,7 @@ var GridSerializer = class extends import_core6.BeanStub {
|
|
|
48015
47984
|
};
|
|
48016
47985
|
|
|
48017
47986
|
// community-modules/csv-export/src/version.ts
|
|
48018
|
-
var VERSION = "32.3.
|
|
47987
|
+
var VERSION = "32.3.6";
|
|
48019
47988
|
|
|
48020
47989
|
// community-modules/csv-export/src/csvExportModule.ts
|
|
48021
47990
|
var CsvExportCoreModule = (0, import_core7._defineModule)({
|
|
@@ -49272,7 +49241,7 @@ function getInfiniteRowCount(beans) {
|
|
|
49272
49241
|
}
|
|
49273
49242
|
|
|
49274
49243
|
// community-modules/infinite-row-model/src/version.ts
|
|
49275
|
-
var VERSION = "32.3.
|
|
49244
|
+
var VERSION = "32.3.6";
|
|
49276
49245
|
|
|
49277
49246
|
// community-modules/infinite-row-model/src/infiniteRowModelModule.ts
|
|
49278
49247
|
var InfiniteRowModelCoreModule = (0, import_core4._defineModule)({
|