@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/css/grid-pro.css +26 -7
- package/es-modules/Core/Chart/Chart.js +1 -1
- package/es-modules/Grid/Core/Table/Body/TableCell.js +3 -4
- package/es-modules/Grid/Core/Table/Header/HeaderCell.js +3 -4
- package/grid-pro.js +4 -4
- package/grid-pro.js.map +1 -1
- package/grid-pro.src.js +8 -10
- package/package.json +2 -2
package/css/grid-pro.css
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Highcharts Grid Pro v2.0.
|
|
2
|
+
* @license Highcharts Grid Pro v2.0.1
|
|
3
3
|
*
|
|
4
4
|
* (c) 2009-2025 Highsoft AS
|
|
5
5
|
*
|
|
@@ -113,9 +113,10 @@
|
|
|
113
113
|
/* Fonts */
|
|
114
114
|
|
|
115
115
|
/* Global fonts */
|
|
116
|
+
--ig-default-font-family: -apple-system, "BlinkMacSystemFont", "Segoe UI", "Roboto", "Helvetica", "Arial", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif;
|
|
116
117
|
--ig-font-weight: var(--hcg-font-weight, normal);
|
|
117
118
|
--ig-font-size: var(--hcg-font-size, 1rem);
|
|
118
|
-
--ig-font-family: var(--hcg-font-family, -
|
|
119
|
+
--ig-font-family: var(--hcg-font-family, var(--ig-default-font-family));
|
|
119
120
|
--ig-color: var(--hcg-color, var(--ig-default-color));
|
|
120
121
|
--ig-font: var(--ig-font-weight) var(--ig-font-size) var(--ig-font-family);
|
|
121
122
|
--ig-text-align: var(--hcg-text-align, left);
|
|
@@ -789,7 +790,7 @@ th.hcg-column-sortable > .hcg-column-sortable-icon {
|
|
|
789
790
|
.hcg-table tbody td:focus,
|
|
790
791
|
.hcg-table thead th:focus-visible {
|
|
791
792
|
outline: none;
|
|
792
|
-
box-shadow: inset
|
|
793
|
+
box-shadow: inset var(--ig-focus-ring);
|
|
793
794
|
}
|
|
794
795
|
|
|
795
796
|
/* Header hovered background and color */
|
|
@@ -1378,6 +1379,7 @@ th.hcg-column-sortable > .hcg-column-sortable-icon {
|
|
|
1378
1379
|
z-index: 1000;
|
|
1379
1380
|
background-color: var(--hcg-popup-background);
|
|
1380
1381
|
border: var(--hcg-popup-border);
|
|
1382
|
+
color: var(--ig-color);
|
|
1381
1383
|
border-radius: 6px;
|
|
1382
1384
|
box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.08), 0 7px 7px 0 rgba(0, 0, 0, 0.07), 0 17px 10px 0 rgba(0, 0, 0, 0.04), 0 30px 12px 0 rgba(0, 0, 0, 0.01);
|
|
1383
1385
|
min-width: 200px;
|
|
@@ -1395,7 +1397,6 @@ th.hcg-column-sortable > .hcg-column-sortable-icon {
|
|
|
1395
1397
|
}
|
|
1396
1398
|
|
|
1397
1399
|
.hcg-menu-header-category {
|
|
1398
|
-
color: var(--ig-color-secondary);
|
|
1399
1400
|
opacity: 0.5;
|
|
1400
1401
|
user-select: none;
|
|
1401
1402
|
}
|
|
@@ -1547,7 +1548,8 @@ th.hcg-column-sortable > .hcg-column-sortable-icon {
|
|
|
1547
1548
|
|
|
1548
1549
|
/* Grid Pro specific styles */
|
|
1549
1550
|
|
|
1550
|
-
.hcg-container
|
|
1551
|
+
.hcg-container,
|
|
1552
|
+
.highcharts-light .hcg-container {
|
|
1551
1553
|
/* Credits fonts */
|
|
1552
1554
|
--ig-credits-font-weight: var(--hcg-credits-font-weight, var(--ig-font-weight));
|
|
1553
1555
|
--ig-credits-font-size: var(--hcg-credits-font-size, 0.9em);
|
|
@@ -1621,6 +1623,19 @@ th.hcg-column-sortable > .hcg-column-sortable-icon {
|
|
|
1621
1623
|
var(
|
|
1622
1624
|
--ig-notification-border-width
|
|
1623
1625
|
) var(--ig-notification-border-style) var(--ig-notification-border-color);
|
|
1626
|
+
|
|
1627
|
+
/* Editable cell */
|
|
1628
|
+
--ig-cell-editable-background: #dbeaff;
|
|
1629
|
+
}
|
|
1630
|
+
|
|
1631
|
+
@media (prefers-color-scheme: dark) {
|
|
1632
|
+
.hcg-container {
|
|
1633
|
+
--ig-cell-editable-background: #2d415e;
|
|
1634
|
+
}
|
|
1635
|
+
}
|
|
1636
|
+
|
|
1637
|
+
.highcharts-dark .hcg-container {
|
|
1638
|
+
--ig-cell-editable-background: #2d415e;
|
|
1624
1639
|
}
|
|
1625
1640
|
|
|
1626
1641
|
.hcg-no-padding {
|
|
@@ -1639,8 +1654,8 @@ th.hcg-column-sortable > .hcg-column-sortable-icon {
|
|
|
1639
1654
|
left: 0;
|
|
1640
1655
|
padding: inherit;
|
|
1641
1656
|
z-index: 1;
|
|
1642
|
-
background:
|
|
1643
|
-
color:
|
|
1657
|
+
background: var(--ig-cell-editable-background);
|
|
1658
|
+
color: var(--ig-color);
|
|
1644
1659
|
box-shadow: inset var(--ig-focus-ring);
|
|
1645
1660
|
display: flex;
|
|
1646
1661
|
align-items: center;
|
|
@@ -1671,6 +1686,10 @@ th.hcg-column-sortable > .hcg-column-sortable-icon {
|
|
|
1671
1686
|
line-height: inherit;
|
|
1672
1687
|
}
|
|
1673
1688
|
|
|
1689
|
+
.hcg-table tbody td.hcg-edited-cell select {
|
|
1690
|
+
appearance: base-select;
|
|
1691
|
+
}
|
|
1692
|
+
|
|
1674
1693
|
.hcg-table tbody td.hcg-edited-cell-error input,
|
|
1675
1694
|
.hcg-table tbody td.hcg-edited-cell-error select {
|
|
1676
1695
|
color: var(--ig-color);
|
|
@@ -2692,7 +2692,7 @@ class Chart {
|
|
|
2692
2692
|
!allExtremes) {
|
|
2693
2693
|
for (const series of axis.series) {
|
|
2694
2694
|
const seriesExtremes = series.getExtremes(series.getProcessedData(true).modified
|
|
2695
|
-
.getColumn('y') || [], true);
|
|
2695
|
+
.getColumn(series.pointValKey || 'y') || [], true);
|
|
2696
2696
|
allExtremes ?? (allExtremes = {
|
|
2697
2697
|
dataMin: Number.MAX_VALUE,
|
|
2698
2698
|
dataMax: -Number.MAX_VALUE
|
|
@@ -82,11 +82,10 @@ class TableCell extends Cell {
|
|
|
82
82
|
this.content = this.column.createCellContent(this);
|
|
83
83
|
}
|
|
84
84
|
this.htmlElement.setAttribute('data-value', this.value + '');
|
|
85
|
+
// Set alignment in column cells based on column data type
|
|
86
|
+
this.htmlElement.classList[this.column.dataType === 'number' ? 'add' : 'remove'](Globals.getClassName('rightAlign'));
|
|
87
|
+
// Add custom class name from column options
|
|
85
88
|
this.setCustomClassName(this.column.options.cells?.className);
|
|
86
|
-
// Add alignment to number column
|
|
87
|
-
if (this.column.dataType === 'number') {
|
|
88
|
-
this.setCustomClassName(Globals.getClassName('rightAlign'));
|
|
89
|
-
}
|
|
90
89
|
fireEvent(this, 'afterRender', { target: this });
|
|
91
90
|
}
|
|
92
91
|
/**
|
|
@@ -147,11 +147,10 @@ class HeaderCell extends Cell {
|
|
|
147
147
|
// Add sorting
|
|
148
148
|
this.initColumnSorting();
|
|
149
149
|
}
|
|
150
|
+
// Set alignment in column cells based on column data type
|
|
151
|
+
this.htmlElement.classList[column?.dataType === 'number' ? 'add' : 'remove'](Globals.getClassName('rightAlign'));
|
|
152
|
+
// Add custom class name from column options
|
|
150
153
|
this.setCustomClassName(options.header?.className);
|
|
151
|
-
// Add alignment to number column
|
|
152
|
-
if (column?.dataType === 'number') {
|
|
153
|
-
this.setCustomClassName(Globals.getClassName('rightAlign'));
|
|
154
|
-
}
|
|
155
154
|
fireEvent(this, 'afterRender', { column });
|
|
156
155
|
}
|
|
157
156
|
reflow() {
|