@highcharts/grid-pro 2.0.0 → 2.0.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/grid-pro.src.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Highcharts Grid Pro v2.0.0 (2025-10-28)
2
+ * @license Highcharts Grid Pro v2.0.1 (2025-11-03)
3
3
  * @module grid/grid-pro
4
4
  *
5
5
  * (c) 2009-2025 Highsoft AS
@@ -74,7 +74,7 @@ var Globals;
74
74
  * Constants
75
75
  *
76
76
  * */
77
- Globals.SVG_NS = 'http://www.w3.org/2000/svg', Globals.product = 'Highcharts', Globals.version = '2.0.0', Globals.win = (typeof window !== 'undefined' ?
77
+ Globals.SVG_NS = 'http://www.w3.org/2000/svg', Globals.product = 'Highcharts', Globals.version = '2.0.1', Globals.win = (typeof window !== 'undefined' ?
78
78
  window :
79
79
  {}), // eslint-disable-line node/no-unsupported-features/es-builtins
80
80
  Globals.doc = Globals.win.document, Globals.svg = !!Globals.doc?.createElementNS?.(Globals.SVG_NS, 'svg')?.createSVGRect, Globals.pageLang = Globals.doc?.documentElement?.closest('[lang]')?.lang, Globals.userAgent = Globals.win.navigator?.userAgent || '', Globals.isChrome = Globals.win.chrome, Globals.isFirefox = Globals.userAgent.indexOf('Firefox') !== -1, Globals.isMS = /(edge|msie|trident)/i.test(Globals.userAgent) && !Globals.win.opera, Globals.isSafari = !Globals.isChrome && Globals.userAgent.indexOf('Safari') !== -1, Globals.isTouchDevice = /(Mobile|Android|Windows Phone)/.test(Globals.userAgent), Globals.isWebKit = Globals.userAgent.indexOf('AppleWebKit') !== -1, Globals.deg2rad = Math.PI * 2 / 360, Globals.marginNames = [
@@ -15912,11 +15912,10 @@ class HeaderCell extends Table_Cell {
15912
15912
  // Add sorting
15913
15913
  this.initColumnSorting();
15914
15914
  }
15915
+ // Set alignment in column cells based on column data type
15916
+ this.htmlElement.classList[column?.dataType === 'number' ? 'add' : 'remove'](Grid_Core_Globals.getClassName('rightAlign'));
15917
+ // Add custom class name from column options
15915
15918
  this.setCustomClassName(options.header?.className);
15916
- // Add alignment to number column
15917
- if (column?.dataType === 'number') {
15918
- this.setCustomClassName(Grid_Core_Globals.getClassName('rightAlign'));
15919
- }
15920
15919
  HeaderCell_fireEvent(this, 'afterRender', { column });
15921
15920
  }
15922
15921
  reflow() {
@@ -16589,11 +16588,10 @@ class TableCell extends Table_Cell {
16589
16588
  this.content = this.column.createCellContent(this);
16590
16589
  }
16591
16590
  this.htmlElement.setAttribute('data-value', this.value + '');
16591
+ // Set alignment in column cells based on column data type
16592
+ this.htmlElement.classList[this.column.dataType === 'number' ? 'add' : 'remove'](Grid_Core_Globals.getClassName('rightAlign'));
16593
+ // Add custom class name from column options
16592
16594
  this.setCustomClassName(this.column.options.cells?.className);
16593
- // Add alignment to number column
16594
- if (this.column.dataType === 'number') {
16595
- this.setCustomClassName(Grid_Core_Globals.getClassName('rightAlign'));
16596
- }
16597
16595
  TableCell_fireEvent(this, 'afterRender', { target: this });
16598
16596
  }
16599
16597
  /**
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@highcharts/grid-pro",
3
3
  "description": "Highcharts Grid Pro framework",
4
- "homepage": "http://www.highcharts.com/grid",
5
- "version": "2.0.0",
4
+ "homepage": "https://www.highcharts.com/blog/products/grid/",
5
+ "version": "2.0.1",
6
6
  "author": "Highsoft AS <support@highcharts.com> (http://www.highcharts.com/about)",
7
7
  "main": "grid-pro.js",
8
8
  "repository": {