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.
@@ -6833,140 +6833,7 @@ function _getAriaCheckboxStateName(translate, state) {
6833
6833
  return state === void 0 ? translate("ariaIndeterminate", "indeterminate") : state === true ? translate("ariaChecked", "checked") : translate("ariaUnchecked", "unchecked");
6834
6834
  }
6835
6835
 
6836
- // community-modules/core/src/utils/browser.ts
6837
- var isSafari;
6838
- var safariVersion;
6839
- var isChrome;
6840
- var isFirefox;
6841
- var isMacOs;
6842
- var isIOS;
6843
- var invisibleScrollbar;
6844
- var browserScrollbarWidth;
6845
- var maxDivHeight;
6846
- function _isBrowserSafari() {
6847
- if (isSafari === void 0) {
6848
- isSafari = /^((?!chrome|android).)*safari/i.test(navigator.userAgent);
6849
- }
6850
- return isSafari;
6851
- }
6852
- function _getSafariVersion() {
6853
- if (safariVersion === void 0) {
6854
- if (_isBrowserSafari()) {
6855
- const versionMatch = navigator.userAgent.match(/version\/(\d+)/i);
6856
- if (versionMatch) {
6857
- safariVersion = versionMatch[1] != null ? parseFloat(versionMatch[1]) : 0;
6858
- }
6859
- } else {
6860
- safariVersion = 0;
6861
- }
6862
- }
6863
- return safariVersion;
6864
- }
6865
- function _isBrowserChrome() {
6866
- if (isChrome === void 0) {
6867
- const win = window;
6868
- isChrome = !!win.chrome && (!!win.chrome.webstore || !!win.chrome.runtime) || /Chrome/.test(navigator.userAgent) && /Google Inc/.test(navigator.vendor);
6869
- }
6870
- return isChrome;
6871
- }
6872
- function _isBrowserFirefox() {
6873
- if (isFirefox === void 0) {
6874
- isFirefox = /(firefox)/i.test(navigator.userAgent);
6875
- }
6876
- return isFirefox;
6877
- }
6878
- function _isMacOsUserAgent() {
6879
- if (isMacOs === void 0) {
6880
- isMacOs = /(Mac|iPhone|iPod|iPad)/i.test(navigator.platform);
6881
- }
6882
- return isMacOs;
6883
- }
6884
- function _isIOSUserAgent() {
6885
- if (isIOS === void 0) {
6886
- isIOS = /iPad|iPhone|iPod/.test(navigator.platform) || navigator.platform === "MacIntel" && navigator.maxTouchPoints > 1;
6887
- }
6888
- return isIOS;
6889
- }
6890
- function _browserSupportsPreventScroll() {
6891
- return !_isBrowserSafari() || _getSafariVersion() >= 15;
6892
- }
6893
- function _getTabIndex(el) {
6894
- if (!el) {
6895
- return null;
6896
- }
6897
- const numberTabIndex = el.tabIndex;
6898
- const tabIndex = el.getAttribute("tabIndex");
6899
- if (numberTabIndex === -1 && (tabIndex === null || tabIndex === "" && !_isBrowserFirefox())) {
6900
- return null;
6901
- }
6902
- return numberTabIndex.toString();
6903
- }
6904
- function _getMaxDivHeight() {
6905
- if (maxDivHeight !== void 0) {
6906
- return maxDivHeight;
6907
- }
6908
- if (!document.body) {
6909
- return -1;
6910
- }
6911
- let res = 1e6;
6912
- const testUpTo = _isBrowserFirefox() ? 6e6 : 1e9;
6913
- const div = document.createElement("div");
6914
- document.body.appendChild(div);
6915
- while (true) {
6916
- const test = res * 2;
6917
- div.style.height = test + "px";
6918
- if (test > testUpTo || div.clientHeight !== test) {
6919
- break;
6920
- } else {
6921
- res = test;
6922
- }
6923
- }
6924
- document.body.removeChild(div);
6925
- maxDivHeight = res;
6926
- return res;
6927
- }
6928
- function _getBodyWidth() {
6929
- return document.body?.clientWidth ?? (window.innerHeight || document.documentElement?.clientWidth || -1);
6930
- }
6931
- function _getBodyHeight() {
6932
- return document.body?.clientHeight ?? (window.innerHeight || document.documentElement?.clientHeight || -1);
6933
- }
6934
- function _getScrollbarWidth() {
6935
- if (browserScrollbarWidth == null) {
6936
- initScrollbarWidthAndVisibility();
6937
- }
6938
- return browserScrollbarWidth;
6939
- }
6940
- function initScrollbarWidthAndVisibility() {
6941
- const body = document.body;
6942
- const div = document.createElement("div");
6943
- div.style.width = div.style.height = "100px";
6944
- div.style.opacity = "0";
6945
- div.style.overflow = "scroll";
6946
- div.style.msOverflowStyle = "scrollbar";
6947
- div.style.position = "absolute";
6948
- body.appendChild(div);
6949
- let width = div.offsetWidth - div.clientWidth;
6950
- if (width === 0 && div.clientWidth === 0) {
6951
- width = null;
6952
- }
6953
- if (div.parentNode) {
6954
- div.parentNode.removeChild(div);
6955
- }
6956
- if (width != null) {
6957
- browserScrollbarWidth = width;
6958
- invisibleScrollbar = width === 0;
6959
- }
6960
- }
6961
- function _isInvisibleScrollbar() {
6962
- if (invisibleScrollbar == null) {
6963
- initScrollbarWidthAndVisibility();
6964
- }
6965
- return invisibleScrollbar;
6966
- }
6967
-
6968
6836
  // community-modules/core/src/utils/dom.ts
6969
- var rtlNegativeScroll;
6970
6837
  function _radioCssClass(element, elementClass, otherElementClass) {
6971
6838
  const parent = element.parentElement;
6972
6839
  let sibling = parent && parent.firstChild;
@@ -7096,46 +6963,16 @@ function _getElementRectWithOffset(el) {
7096
6963
  bottom: offsetElementRect.bottom + (borderBottomWidth || 0)
7097
6964
  };
7098
6965
  }
7099
- function _isRtlNegativeScroll() {
7100
- if (typeof rtlNegativeScroll === "boolean") {
7101
- return rtlNegativeScroll;
7102
- }
7103
- const template = document.createElement("div");
7104
- template.style.direction = "rtl";
7105
- template.style.width = "1px";
7106
- template.style.height = "1px";
7107
- template.style.position = "fixed";
7108
- template.style.top = "0px";
7109
- template.style.overflow = "hidden";
7110
- template.dir = "rtl";
7111
- template.innerHTML = /* html */
7112
- `<div style="width: 2px">
7113
- <span style="display: inline-block; width: 1px"></span>
7114
- <span style="display: inline-block; width: 1px"></span>
7115
- </div>`;
7116
- document.body.appendChild(template);
7117
- template.scrollLeft = 1;
7118
- rtlNegativeScroll = Math.floor(template.scrollLeft) === 0;
7119
- document.body.removeChild(template);
7120
- return rtlNegativeScroll;
7121
- }
7122
6966
  function _getScrollLeft(element, rtl) {
7123
6967
  let scrollLeft = element.scrollLeft;
7124
6968
  if (rtl) {
7125
6969
  scrollLeft = Math.abs(scrollLeft);
7126
- if (_isBrowserChrome() && !_isRtlNegativeScroll()) {
7127
- scrollLeft = element.scrollWidth - element.getBoundingClientRect().width - scrollLeft;
7128
- }
7129
6970
  }
7130
6971
  return scrollLeft;
7131
6972
  }
7132
6973
  function _setScrollLeft(element, value, rtl) {
7133
6974
  if (rtl) {
7134
- if (_isRtlNegativeScroll()) {
7135
- value *= -1;
7136
- } else if (_isBrowserSafari() || _isBrowserChrome()) {
7137
- value = element.scrollWidth - element.getBoundingClientRect().width - value;
7138
- }
6975
+ value *= -1;
7139
6976
  }
7140
6977
  element.scrollLeft = value;
7141
6978
  }
@@ -7306,6 +7143,138 @@ var NumberSequence = class {
7306
7143
  }
7307
7144
  };
7308
7145
 
7146
+ // community-modules/core/src/utils/browser.ts
7147
+ var isSafari;
7148
+ var safariVersion;
7149
+ var isChrome;
7150
+ var isFirefox;
7151
+ var isMacOs;
7152
+ var isIOS;
7153
+ var invisibleScrollbar;
7154
+ var browserScrollbarWidth;
7155
+ var maxDivHeight;
7156
+ function _isBrowserSafari() {
7157
+ if (isSafari === void 0) {
7158
+ isSafari = /^((?!chrome|android).)*safari/i.test(navigator.userAgent);
7159
+ }
7160
+ return isSafari;
7161
+ }
7162
+ function _getSafariVersion() {
7163
+ if (safariVersion === void 0) {
7164
+ if (_isBrowserSafari()) {
7165
+ const versionMatch = navigator.userAgent.match(/version\/(\d+)/i);
7166
+ if (versionMatch) {
7167
+ safariVersion = versionMatch[1] != null ? parseFloat(versionMatch[1]) : 0;
7168
+ }
7169
+ } else {
7170
+ safariVersion = 0;
7171
+ }
7172
+ }
7173
+ return safariVersion;
7174
+ }
7175
+ function _isBrowserChrome() {
7176
+ if (isChrome === void 0) {
7177
+ const win = window;
7178
+ isChrome = !!win.chrome && (!!win.chrome.webstore || !!win.chrome.runtime) || /Chrome/.test(navigator.userAgent) && /Google Inc/.test(navigator.vendor);
7179
+ }
7180
+ return isChrome;
7181
+ }
7182
+ function _isBrowserFirefox() {
7183
+ if (isFirefox === void 0) {
7184
+ isFirefox = /(firefox)/i.test(navigator.userAgent);
7185
+ }
7186
+ return isFirefox;
7187
+ }
7188
+ function _isMacOsUserAgent() {
7189
+ if (isMacOs === void 0) {
7190
+ isMacOs = /(Mac|iPhone|iPod|iPad)/i.test(navigator.platform);
7191
+ }
7192
+ return isMacOs;
7193
+ }
7194
+ function _isIOSUserAgent() {
7195
+ if (isIOS === void 0) {
7196
+ isIOS = /iPad|iPhone|iPod/.test(navigator.platform) || navigator.platform === "MacIntel" && navigator.maxTouchPoints > 1;
7197
+ }
7198
+ return isIOS;
7199
+ }
7200
+ function _browserSupportsPreventScroll() {
7201
+ return !_isBrowserSafari() || _getSafariVersion() >= 15;
7202
+ }
7203
+ function _getTabIndex(el) {
7204
+ if (!el) {
7205
+ return null;
7206
+ }
7207
+ const numberTabIndex = el.tabIndex;
7208
+ const tabIndex = el.getAttribute("tabIndex");
7209
+ if (numberTabIndex === -1 && (tabIndex === null || tabIndex === "" && !_isBrowserFirefox())) {
7210
+ return null;
7211
+ }
7212
+ return numberTabIndex.toString();
7213
+ }
7214
+ function _getMaxDivHeight() {
7215
+ if (maxDivHeight !== void 0) {
7216
+ return maxDivHeight;
7217
+ }
7218
+ if (!document.body) {
7219
+ return -1;
7220
+ }
7221
+ let res = 1e6;
7222
+ const testUpTo = _isBrowserFirefox() ? 6e6 : 1e9;
7223
+ const div = document.createElement("div");
7224
+ document.body.appendChild(div);
7225
+ while (true) {
7226
+ const test = res * 2;
7227
+ div.style.height = test + "px";
7228
+ if (test > testUpTo || div.clientHeight !== test) {
7229
+ break;
7230
+ } else {
7231
+ res = test;
7232
+ }
7233
+ }
7234
+ document.body.removeChild(div);
7235
+ maxDivHeight = res;
7236
+ return res;
7237
+ }
7238
+ function _getBodyWidth() {
7239
+ return document.body?.clientWidth ?? (window.innerHeight || document.documentElement?.clientWidth || -1);
7240
+ }
7241
+ function _getBodyHeight() {
7242
+ return document.body?.clientHeight ?? (window.innerHeight || document.documentElement?.clientHeight || -1);
7243
+ }
7244
+ function _getScrollbarWidth() {
7245
+ if (browserScrollbarWidth == null) {
7246
+ initScrollbarWidthAndVisibility();
7247
+ }
7248
+ return browserScrollbarWidth;
7249
+ }
7250
+ function initScrollbarWidthAndVisibility() {
7251
+ const body = document.body;
7252
+ const div = document.createElement("div");
7253
+ div.style.width = div.style.height = "100px";
7254
+ div.style.opacity = "0";
7255
+ div.style.overflow = "scroll";
7256
+ div.style.msOverflowStyle = "scrollbar";
7257
+ div.style.position = "absolute";
7258
+ body.appendChild(div);
7259
+ let width = div.offsetWidth - div.clientWidth;
7260
+ if (width === 0 && div.clientWidth === 0) {
7261
+ width = null;
7262
+ }
7263
+ if (div.parentNode) {
7264
+ div.parentNode.removeChild(div);
7265
+ }
7266
+ if (width != null) {
7267
+ browserScrollbarWidth = width;
7268
+ invisibleScrollbar = width === 0;
7269
+ }
7270
+ }
7271
+ function _isInvisibleScrollbar() {
7272
+ if (invisibleScrollbar == null) {
7273
+ initScrollbarWidthAndVisibility();
7274
+ }
7275
+ return invisibleScrollbar;
7276
+ }
7277
+
7309
7278
  // community-modules/core/src/widgets/tooltipStateManager.ts
7310
7279
  var SHOW_QUICK_TOOLTIP_DIFF = 1e3;
7311
7280
  var FADE_OUT_TOOLTIP_TIMEOUT = 1e3;
@@ -17546,7 +17515,7 @@ function _defineModule(definition) {
17546
17515
  }
17547
17516
 
17548
17517
  // community-modules/core/src/version.ts
17549
- var VERSION = "32.3.4";
17518
+ var VERSION = "32.3.6";
17550
17519
 
17551
17520
  // community-modules/core/src/filter/columnFilterApi.ts
17552
17521
  function isColumnFilterPresent(beans) {
@@ -23743,7 +23712,7 @@ var GridBodyScrollFeature = class extends BeanStub {
23743
23712
  shouldBlockHorizontalScroll(scrollTo) {
23744
23713
  const clientWidth = this.centerRowsCtrl.getCenterWidth();
23745
23714
  const { scrollWidth } = this.centerRowsCtrl.getViewportElement();
23746
- if (this.enableRtl && _isRtlNegativeScroll()) {
23715
+ if (this.enableRtl) {
23747
23716
  if (scrollTo > 0) {
23748
23717
  return true;
23749
23718
  }
@@ -23782,7 +23751,7 @@ var GridBodyScrollFeature = class extends BeanStub {
23782
23751
  const minScrollLeft = 0;
23783
23752
  const maxScrollLeft = this.centerRowsCtrl.getViewportElement().scrollWidth - this.centerRowsCtrl.getCenterWidth();
23784
23753
  if (!fromAlignedGridsService && this.shouldBlockScrollUpdate(1 /* Horizontal */, hScrollPosition)) {
23785
- if (this.enableRtl && _isRtlNegativeScroll()) {
23754
+ if (this.enableRtl) {
23786
23755
  hScrollPosition = hScrollPosition > 0 ? 0 : maxScrollLeft;
23787
23756
  } else {
23788
23757
  hScrollPosition = Math.min(Math.max(hScrollPosition, minScrollLeft), maxScrollLeft);
@@ -46860,7 +46829,7 @@ var SortStage = class extends BeanStub {
46860
46829
  };
46861
46830
 
46862
46831
  // community-modules/client-side-row-model/src/version.ts
46863
- var VERSION2 = "32.3.4";
46832
+ var VERSION2 = "32.3.6";
46864
46833
 
46865
46834
  // community-modules/client-side-row-model/src/clientSideRowModelModule.ts
46866
46835
  var ClientSideRowModelCoreModule = _defineModule({
@@ -47553,7 +47522,7 @@ var GridSerializer = class extends BeanStub {
47553
47522
  });
47554
47523
  }
47555
47524
  };
47556
- var VERSION3 = "32.3.4";
47525
+ var VERSION3 = "32.3.6";
47557
47526
  var CsvExportCoreModule = _defineModule({
47558
47527
  version: VERSION3,
47559
47528
  moduleName: `${"@ag-grid-community/csv-export" /* CsvExportModule */}-core`,
@@ -48744,7 +48713,7 @@ function purgeInfiniteCache(beans) {
48744
48713
  function getInfiniteRowCount(beans) {
48745
48714
  return beans.rowModelHelperService?.getInfiniteRowModel()?.getRowCount();
48746
48715
  }
48747
- var VERSION4 = "32.3.4";
48716
+ var VERSION4 = "32.3.6";
48748
48717
  var InfiniteRowModelCoreModule = _defineModule({
48749
48718
  version: VERSION4,
48750
48719
  moduleName: `${"@ag-grid-community/infinite-row-model" /* InfiniteRowModelModule */}-core`,
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ag-grid-community",
3
- "version": "32.3.4",
3
+ "version": "32.3.6",
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",
@@ -88,19 +88,19 @@
88
88
  ],
89
89
  "homepage": "https://www.ag-grid.com/",
90
90
  "dependencies": {
91
- "ag-charts-types": "10.3.4"
91
+ "ag-charts-types": "10.3.6"
92
92
  },
93
93
  "devDependencies": {
94
94
  "source-map-loader": "^5.0.0",
95
95
  "gulp": "^4.0.0",
96
96
  "gulp-replace": "^1.0.0",
97
97
  "gulp-rename": "^2.0.0",
98
- "@ag-grid-community/client-side-row-model": "32.3.4",
99
- "@ag-grid-community/core": "32.3.4",
100
- "@ag-grid-community/csv-export": "32.3.4",
101
- "@ag-grid-community/infinite-row-model": "32.3.4",
102
- "@ag-grid-community/styles": "32.3.4",
103
- "@ag-grid-community/theming": "32.3.4",
98
+ "@ag-grid-community/client-side-row-model": "32.3.6",
99
+ "@ag-grid-community/core": "32.3.6",
100
+ "@ag-grid-community/csv-export": "32.3.6",
101
+ "@ag-grid-community/infinite-row-model": "32.3.6",
102
+ "@ag-grid-community/styles": "32.3.6",
103
+ "@ag-grid-community/theming": "32.3.6",
104
104
  "ts-loader": "^9.5.1",
105
105
  "style-loader": "^3.3.4",
106
106
  "css-loader": "^6.10.0",
@@ -1 +1 @@
1
- export declare const VERSION = "32.3.4";
1
+ export declare const VERSION = "32.3.6";
@@ -48,7 +48,6 @@ export declare function _getElementRectWithOffset(el: HTMLElement): {
48
48
  right: number;
49
49
  bottom: number;
50
50
  };
51
- export declare function _isRtlNegativeScroll(): boolean;
52
51
  export declare function _getScrollLeft(element: HTMLElement, rtl: boolean): number;
53
52
  export declare function _setScrollLeft(element: HTMLElement, value: number, rtl: boolean): void;
54
53
  export declare function _clearElement(el: HTMLElement): void;
@@ -1 +1 @@
1
- export declare const VERSION = "32.3.4";
1
+ export declare const VERSION = "32.3.6";
@@ -1 +1 @@
1
- export declare const VERSION = "32.3.4";
1
+ export declare const VERSION = "32.3.6";
@@ -1 +1 @@
1
- export declare const VERSION = "32.3.4";
1
+ export declare const VERSION = "32.3.6";
@@ -1 +1 @@
1
- export declare const VERSION = "32.3.4";
1
+ export declare const VERSION = "32.3.6";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ag-grid-community",
3
- "version": "32.3.4",
3
+ "version": "32.3.6",
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",
@@ -88,19 +88,19 @@
88
88
  ],
89
89
  "homepage": "https://www.ag-grid.com/",
90
90
  "dependencies": {
91
- "ag-charts-types": "10.3.4"
91
+ "ag-charts-types": "10.3.6"
92
92
  },
93
93
  "devDependencies": {
94
94
  "source-map-loader": "^5.0.0",
95
95
  "gulp": "^4.0.0",
96
96
  "gulp-replace": "^1.0.0",
97
97
  "gulp-rename": "^2.0.0",
98
- "@ag-grid-community/client-side-row-model": "32.3.4",
99
- "@ag-grid-community/core": "32.3.4",
100
- "@ag-grid-community/csv-export": "32.3.4",
101
- "@ag-grid-community/infinite-row-model": "32.3.4",
102
- "@ag-grid-community/styles": "32.3.4",
103
- "@ag-grid-community/theming": "32.3.4",
98
+ "@ag-grid-community/client-side-row-model": "32.3.6",
99
+ "@ag-grid-community/core": "32.3.6",
100
+ "@ag-grid-community/csv-export": "32.3.6",
101
+ "@ag-grid-community/infinite-row-model": "32.3.6",
102
+ "@ag-grid-community/styles": "32.3.6",
103
+ "@ag-grid-community/theming": "32.3.6",
104
104
  "ts-loader": "^9.5.1",
105
105
  "style-loader": "^3.3.4",
106
106
  "css-loader": "^6.10.0",