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.
@@ -7209,140 +7209,7 @@ function _getAriaCheckboxStateName(translate, state) {
7209
7209
  return state === void 0 ? translate("ariaIndeterminate", "indeterminate") : state === true ? translate("ariaChecked", "checked") : translate("ariaUnchecked", "unchecked");
7210
7210
  }
7211
7211
 
7212
- // community-modules/core/src/utils/browser.ts
7213
- var isSafari;
7214
- var safariVersion;
7215
- var isChrome;
7216
- var isFirefox;
7217
- var isMacOs;
7218
- var isIOS;
7219
- var invisibleScrollbar;
7220
- var browserScrollbarWidth;
7221
- var maxDivHeight;
7222
- function _isBrowserSafari() {
7223
- if (isSafari === void 0) {
7224
- isSafari = /^((?!chrome|android).)*safari/i.test(navigator.userAgent);
7225
- }
7226
- return isSafari;
7227
- }
7228
- function _getSafariVersion() {
7229
- if (safariVersion === void 0) {
7230
- if (_isBrowserSafari()) {
7231
- const versionMatch = navigator.userAgent.match(/version\/(\d+)/i);
7232
- if (versionMatch) {
7233
- safariVersion = versionMatch[1] != null ? parseFloat(versionMatch[1]) : 0;
7234
- }
7235
- } else {
7236
- safariVersion = 0;
7237
- }
7238
- }
7239
- return safariVersion;
7240
- }
7241
- function _isBrowserChrome() {
7242
- if (isChrome === void 0) {
7243
- const win = window;
7244
- isChrome = !!win.chrome && (!!win.chrome.webstore || !!win.chrome.runtime) || /Chrome/.test(navigator.userAgent) && /Google Inc/.test(navigator.vendor);
7245
- }
7246
- return isChrome;
7247
- }
7248
- function _isBrowserFirefox() {
7249
- if (isFirefox === void 0) {
7250
- isFirefox = /(firefox)/i.test(navigator.userAgent);
7251
- }
7252
- return isFirefox;
7253
- }
7254
- function _isMacOsUserAgent() {
7255
- if (isMacOs === void 0) {
7256
- isMacOs = /(Mac|iPhone|iPod|iPad)/i.test(navigator.platform);
7257
- }
7258
- return isMacOs;
7259
- }
7260
- function _isIOSUserAgent() {
7261
- if (isIOS === void 0) {
7262
- isIOS = /iPad|iPhone|iPod/.test(navigator.platform) || navigator.platform === "MacIntel" && navigator.maxTouchPoints > 1;
7263
- }
7264
- return isIOS;
7265
- }
7266
- function _browserSupportsPreventScroll() {
7267
- return !_isBrowserSafari() || _getSafariVersion() >= 15;
7268
- }
7269
- function _getTabIndex(el) {
7270
- if (!el) {
7271
- return null;
7272
- }
7273
- const numberTabIndex = el.tabIndex;
7274
- const tabIndex = el.getAttribute("tabIndex");
7275
- if (numberTabIndex === -1 && (tabIndex === null || tabIndex === "" && !_isBrowserFirefox())) {
7276
- return null;
7277
- }
7278
- return numberTabIndex.toString();
7279
- }
7280
- function _getMaxDivHeight() {
7281
- if (maxDivHeight !== void 0) {
7282
- return maxDivHeight;
7283
- }
7284
- if (!document.body) {
7285
- return -1;
7286
- }
7287
- let res = 1e6;
7288
- const testUpTo = _isBrowserFirefox() ? 6e6 : 1e9;
7289
- const div = document.createElement("div");
7290
- document.body.appendChild(div);
7291
- while (true) {
7292
- const test = res * 2;
7293
- div.style.height = test + "px";
7294
- if (test > testUpTo || div.clientHeight !== test) {
7295
- break;
7296
- } else {
7297
- res = test;
7298
- }
7299
- }
7300
- document.body.removeChild(div);
7301
- maxDivHeight = res;
7302
- return res;
7303
- }
7304
- function _getBodyWidth() {
7305
- return document.body?.clientWidth ?? (window.innerHeight || document.documentElement?.clientWidth || -1);
7306
- }
7307
- function _getBodyHeight() {
7308
- return document.body?.clientHeight ?? (window.innerHeight || document.documentElement?.clientHeight || -1);
7309
- }
7310
- function _getScrollbarWidth() {
7311
- if (browserScrollbarWidth == null) {
7312
- initScrollbarWidthAndVisibility();
7313
- }
7314
- return browserScrollbarWidth;
7315
- }
7316
- function initScrollbarWidthAndVisibility() {
7317
- const body = document.body;
7318
- const div = document.createElement("div");
7319
- div.style.width = div.style.height = "100px";
7320
- div.style.opacity = "0";
7321
- div.style.overflow = "scroll";
7322
- div.style.msOverflowStyle = "scrollbar";
7323
- div.style.position = "absolute";
7324
- body.appendChild(div);
7325
- let width = div.offsetWidth - div.clientWidth;
7326
- if (width === 0 && div.clientWidth === 0) {
7327
- width = null;
7328
- }
7329
- if (div.parentNode) {
7330
- div.parentNode.removeChild(div);
7331
- }
7332
- if (width != null) {
7333
- browserScrollbarWidth = width;
7334
- invisibleScrollbar = width === 0;
7335
- }
7336
- }
7337
- function _isInvisibleScrollbar() {
7338
- if (invisibleScrollbar == null) {
7339
- initScrollbarWidthAndVisibility();
7340
- }
7341
- return invisibleScrollbar;
7342
- }
7343
-
7344
7212
  // community-modules/core/src/utils/dom.ts
7345
- var rtlNegativeScroll;
7346
7213
  function _radioCssClass(element, elementClass, otherElementClass) {
7347
7214
  const parent = element.parentElement;
7348
7215
  let sibling = parent && parent.firstChild;
@@ -7472,46 +7339,16 @@ function _getElementRectWithOffset(el) {
7472
7339
  bottom: offsetElementRect.bottom + (borderBottomWidth || 0)
7473
7340
  };
7474
7341
  }
7475
- function _isRtlNegativeScroll() {
7476
- if (typeof rtlNegativeScroll === "boolean") {
7477
- return rtlNegativeScroll;
7478
- }
7479
- const template = document.createElement("div");
7480
- template.style.direction = "rtl";
7481
- template.style.width = "1px";
7482
- template.style.height = "1px";
7483
- template.style.position = "fixed";
7484
- template.style.top = "0px";
7485
- template.style.overflow = "hidden";
7486
- template.dir = "rtl";
7487
- template.innerHTML = /* html */
7488
- `<div style="width: 2px">
7489
- <span style="display: inline-block; width: 1px"></span>
7490
- <span style="display: inline-block; width: 1px"></span>
7491
- </div>`;
7492
- document.body.appendChild(template);
7493
- template.scrollLeft = 1;
7494
- rtlNegativeScroll = Math.floor(template.scrollLeft) === 0;
7495
- document.body.removeChild(template);
7496
- return rtlNegativeScroll;
7497
- }
7498
7342
  function _getScrollLeft(element, rtl) {
7499
7343
  let scrollLeft = element.scrollLeft;
7500
7344
  if (rtl) {
7501
7345
  scrollLeft = Math.abs(scrollLeft);
7502
- if (_isBrowserChrome() && !_isRtlNegativeScroll()) {
7503
- scrollLeft = element.scrollWidth - element.getBoundingClientRect().width - scrollLeft;
7504
- }
7505
7346
  }
7506
7347
  return scrollLeft;
7507
7348
  }
7508
7349
  function _setScrollLeft(element, value, rtl) {
7509
7350
  if (rtl) {
7510
- if (_isRtlNegativeScroll()) {
7511
- value *= -1;
7512
- } else if (_isBrowserSafari() || _isBrowserChrome()) {
7513
- value = element.scrollWidth - element.getBoundingClientRect().width - value;
7514
- }
7351
+ value *= -1;
7515
7352
  }
7516
7353
  element.scrollLeft = value;
7517
7354
  }
@@ -7682,6 +7519,138 @@ var NumberSequence = class {
7682
7519
  }
7683
7520
  };
7684
7521
 
7522
+ // community-modules/core/src/utils/browser.ts
7523
+ var isSafari;
7524
+ var safariVersion;
7525
+ var isChrome;
7526
+ var isFirefox;
7527
+ var isMacOs;
7528
+ var isIOS;
7529
+ var invisibleScrollbar;
7530
+ var browserScrollbarWidth;
7531
+ var maxDivHeight;
7532
+ function _isBrowserSafari() {
7533
+ if (isSafari === void 0) {
7534
+ isSafari = /^((?!chrome|android).)*safari/i.test(navigator.userAgent);
7535
+ }
7536
+ return isSafari;
7537
+ }
7538
+ function _getSafariVersion() {
7539
+ if (safariVersion === void 0) {
7540
+ if (_isBrowserSafari()) {
7541
+ const versionMatch = navigator.userAgent.match(/version\/(\d+)/i);
7542
+ if (versionMatch) {
7543
+ safariVersion = versionMatch[1] != null ? parseFloat(versionMatch[1]) : 0;
7544
+ }
7545
+ } else {
7546
+ safariVersion = 0;
7547
+ }
7548
+ }
7549
+ return safariVersion;
7550
+ }
7551
+ function _isBrowserChrome() {
7552
+ if (isChrome === void 0) {
7553
+ const win = window;
7554
+ isChrome = !!win.chrome && (!!win.chrome.webstore || !!win.chrome.runtime) || /Chrome/.test(navigator.userAgent) && /Google Inc/.test(navigator.vendor);
7555
+ }
7556
+ return isChrome;
7557
+ }
7558
+ function _isBrowserFirefox() {
7559
+ if (isFirefox === void 0) {
7560
+ isFirefox = /(firefox)/i.test(navigator.userAgent);
7561
+ }
7562
+ return isFirefox;
7563
+ }
7564
+ function _isMacOsUserAgent() {
7565
+ if (isMacOs === void 0) {
7566
+ isMacOs = /(Mac|iPhone|iPod|iPad)/i.test(navigator.platform);
7567
+ }
7568
+ return isMacOs;
7569
+ }
7570
+ function _isIOSUserAgent() {
7571
+ if (isIOS === void 0) {
7572
+ isIOS = /iPad|iPhone|iPod/.test(navigator.platform) || navigator.platform === "MacIntel" && navigator.maxTouchPoints > 1;
7573
+ }
7574
+ return isIOS;
7575
+ }
7576
+ function _browserSupportsPreventScroll() {
7577
+ return !_isBrowserSafari() || _getSafariVersion() >= 15;
7578
+ }
7579
+ function _getTabIndex(el) {
7580
+ if (!el) {
7581
+ return null;
7582
+ }
7583
+ const numberTabIndex = el.tabIndex;
7584
+ const tabIndex = el.getAttribute("tabIndex");
7585
+ if (numberTabIndex === -1 && (tabIndex === null || tabIndex === "" && !_isBrowserFirefox())) {
7586
+ return null;
7587
+ }
7588
+ return numberTabIndex.toString();
7589
+ }
7590
+ function _getMaxDivHeight() {
7591
+ if (maxDivHeight !== void 0) {
7592
+ return maxDivHeight;
7593
+ }
7594
+ if (!document.body) {
7595
+ return -1;
7596
+ }
7597
+ let res = 1e6;
7598
+ const testUpTo = _isBrowserFirefox() ? 6e6 : 1e9;
7599
+ const div = document.createElement("div");
7600
+ document.body.appendChild(div);
7601
+ while (true) {
7602
+ const test = res * 2;
7603
+ div.style.height = test + "px";
7604
+ if (test > testUpTo || div.clientHeight !== test) {
7605
+ break;
7606
+ } else {
7607
+ res = test;
7608
+ }
7609
+ }
7610
+ document.body.removeChild(div);
7611
+ maxDivHeight = res;
7612
+ return res;
7613
+ }
7614
+ function _getBodyWidth() {
7615
+ return document.body?.clientWidth ?? (window.innerHeight || document.documentElement?.clientWidth || -1);
7616
+ }
7617
+ function _getBodyHeight() {
7618
+ return document.body?.clientHeight ?? (window.innerHeight || document.documentElement?.clientHeight || -1);
7619
+ }
7620
+ function _getScrollbarWidth() {
7621
+ if (browserScrollbarWidth == null) {
7622
+ initScrollbarWidthAndVisibility();
7623
+ }
7624
+ return browserScrollbarWidth;
7625
+ }
7626
+ function initScrollbarWidthAndVisibility() {
7627
+ const body = document.body;
7628
+ const div = document.createElement("div");
7629
+ div.style.width = div.style.height = "100px";
7630
+ div.style.opacity = "0";
7631
+ div.style.overflow = "scroll";
7632
+ div.style.msOverflowStyle = "scrollbar";
7633
+ div.style.position = "absolute";
7634
+ body.appendChild(div);
7635
+ let width = div.offsetWidth - div.clientWidth;
7636
+ if (width === 0 && div.clientWidth === 0) {
7637
+ width = null;
7638
+ }
7639
+ if (div.parentNode) {
7640
+ div.parentNode.removeChild(div);
7641
+ }
7642
+ if (width != null) {
7643
+ browserScrollbarWidth = width;
7644
+ invisibleScrollbar = width === 0;
7645
+ }
7646
+ }
7647
+ function _isInvisibleScrollbar() {
7648
+ if (invisibleScrollbar == null) {
7649
+ initScrollbarWidthAndVisibility();
7650
+ }
7651
+ return invisibleScrollbar;
7652
+ }
7653
+
7685
7654
  // community-modules/core/src/widgets/tooltipStateManager.ts
7686
7655
  var SHOW_QUICK_TOOLTIP_DIFF = 1e3;
7687
7656
  var FADE_OUT_TOOLTIP_TIMEOUT = 1e3;
@@ -17922,7 +17891,7 @@ function _defineModule(definition) {
17922
17891
  }
17923
17892
 
17924
17893
  // community-modules/core/src/version.ts
17925
- var VERSION = "32.3.4";
17894
+ var VERSION = "32.3.6";
17926
17895
 
17927
17896
  // community-modules/core/src/filter/columnFilterApi.ts
17928
17897
  function isColumnFilterPresent(beans) {
@@ -24119,7 +24088,7 @@ var GridBodyScrollFeature = class extends BeanStub {
24119
24088
  shouldBlockHorizontalScroll(scrollTo) {
24120
24089
  const clientWidth = this.centerRowsCtrl.getCenterWidth();
24121
24090
  const { scrollWidth } = this.centerRowsCtrl.getViewportElement();
24122
- if (this.enableRtl && _isRtlNegativeScroll()) {
24091
+ if (this.enableRtl) {
24123
24092
  if (scrollTo > 0) {
24124
24093
  return true;
24125
24094
  }
@@ -24158,7 +24127,7 @@ var GridBodyScrollFeature = class extends BeanStub {
24158
24127
  const minScrollLeft = 0;
24159
24128
  const maxScrollLeft = this.centerRowsCtrl.getViewportElement().scrollWidth - this.centerRowsCtrl.getCenterWidth();
24160
24129
  if (!fromAlignedGridsService && this.shouldBlockScrollUpdate(1 /* Horizontal */, hScrollPosition)) {
24161
- if (this.enableRtl && _isRtlNegativeScroll()) {
24130
+ if (this.enableRtl) {
24162
24131
  hScrollPosition = hScrollPosition > 0 ? 0 : maxScrollLeft;
24163
24132
  } else {
24164
24133
  hScrollPosition = Math.min(Math.max(hScrollPosition, minScrollLeft), maxScrollLeft);
@@ -47236,7 +47205,7 @@ var SortStage = class extends BeanStub {
47236
47205
  };
47237
47206
 
47238
47207
  // community-modules/client-side-row-model/src/version.ts
47239
- var VERSION2 = "32.3.4";
47208
+ var VERSION2 = "32.3.6";
47240
47209
 
47241
47210
  // community-modules/client-side-row-model/src/clientSideRowModelModule.ts
47242
47211
  var ClientSideRowModelCoreModule = _defineModule({
@@ -47929,7 +47898,7 @@ var GridSerializer = class extends BeanStub {
47929
47898
  });
47930
47899
  }
47931
47900
  };
47932
- var VERSION3 = "32.3.4";
47901
+ var VERSION3 = "32.3.6";
47933
47902
  var CsvExportCoreModule = _defineModule({
47934
47903
  version: VERSION3,
47935
47904
  moduleName: `${"@ag-grid-community/csv-export" /* CsvExportModule */}-core`,
@@ -49120,7 +49089,7 @@ function purgeInfiniteCache(beans) {
49120
49089
  function getInfiniteRowCount(beans) {
49121
49090
  return beans.rowModelHelperService?.getInfiniteRowModel()?.getRowCount();
49122
49091
  }
49123
- var VERSION4 = "32.3.4";
49092
+ var VERSION4 = "32.3.6";
49124
49093
  var InfiniteRowModelCoreModule = _defineModule({
49125
49094
  version: VERSION4,
49126
49095
  moduleName: `${"@ag-grid-community/infinite-row-model" /* InfiniteRowModelModule */}-core`,