@highcharts/grid-pro 2.0.0 → 2.1.0
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 +93 -90
- package/es-modules/Accessibility/Components/SeriesComponent/ForcedMarkers.js +2 -0
- package/es-modules/Accessibility/Options/LangDefaults.js +6 -1
- package/es-modules/Accessibility/Utils/ChartUtilities.js +3 -3
- package/es-modules/Core/Chart/Chart.js +1 -1
- package/es-modules/Core/Color/ColorString.d.ts +25 -0
- package/es-modules/Core/Color/ColorType.d.ts +43 -0
- package/es-modules/Core/Color/GradientColor.d.ts +57 -0
- package/es-modules/Core/Globals.js +1 -1
- package/es-modules/Core/Renderer/AlignObject.d.ts +37 -0
- package/es-modules/Core/Renderer/BBoxObject.d.ts +40 -0
- package/es-modules/Core/Renderer/CSSObject.d.ts +130 -0
- package/es-modules/Core/Renderer/DOMElementType.d.ts +36 -0
- package/es-modules/Core/Renderer/DashStyleValue.d.ts +28 -0
- package/es-modules/Core/Renderer/FontMetricsObject.d.ts +38 -0
- package/es-modules/Core/Renderer/HTML/HTMLAttributes.d.ts +57 -0
- package/es-modules/Core/Renderer/PolygonBoxObject.d.ts +19 -0
- package/es-modules/Core/Renderer/Position3DObject.d.ts +35 -0
- package/es-modules/Core/Renderer/PositionObject.d.ts +28 -0
- package/es-modules/Core/Renderer/RectangleObject.d.ts +35 -0
- package/es-modules/Core/Renderer/RendererType.d.ts +53 -0
- package/es-modules/Core/Renderer/SVG/ButtonThemeObject.d.ts +43 -0
- package/es-modules/Core/Renderer/SVG/SVGArc3D.d.ts +44 -0
- package/es-modules/Core/Renderer/SVG/SVGAttributes.d.ts +147 -0
- package/es-modules/Core/Renderer/SVG/SVGAttributes3D.d.ts +42 -0
- package/es-modules/Core/Renderer/SVG/SVGCuboid.d.ts +42 -0
- package/es-modules/Core/Renderer/SVG/SVGElementBase.d.ts +31 -0
- package/es-modules/Core/Renderer/SVG/SVGPath.d.ts +97 -0
- package/es-modules/Core/Renderer/SVG/SVGPath3D.d.ts +40 -0
- package/es-modules/Core/Renderer/SVG/SVGRendererBase.d.ts +31 -0
- package/es-modules/Core/Renderer/SVG/SymbolOptions.d.ts +41 -0
- package/es-modules/Core/Renderer/SVG/SymbolType.d.ts +50 -0
- package/es-modules/Core/Renderer/ShadowOptionsObject.d.ts +40 -0
- package/es-modules/Core/Renderer/SizeObject.d.ts +28 -0
- package/es-modules/Core/Templating.js +6 -7
- package/es-modules/Data/Connectors/DataConnector.js +3 -2
- package/es-modules/Data/Connectors/DataConnectorOptions.d.ts +1 -1
- package/es-modules/Data/DataTable.d.ts +1 -1
- package/es-modules/Data/DataTable.js +3 -2
- package/es-modules/Data/DataTableCore.js +15 -6
- package/es-modules/Grid/Core/Accessibility/Accessibility.d.ts +13 -15
- package/es-modules/Grid/Core/Credits.d.ts +0 -2
- package/es-modules/Grid/Core/Defaults.d.ts +20 -17
- package/es-modules/Grid/Core/Defaults.js +116 -114
- package/es-modules/Grid/Core/Globals.d.ts +108 -32
- package/es-modules/Grid/Core/Globals.js +98 -111
- package/es-modules/Grid/Core/Grid.d.ts +51 -17
- package/es-modules/Grid/Core/Grid.js +369 -79
- package/es-modules/Grid/Core/GridUtils.d.ts +96 -89
- package/es-modules/Grid/Core/GridUtils.js +143 -155
- package/es-modules/Grid/Core/Options.d.ts +3 -7
- package/es-modules/Grid/Core/Pagination/Icons.d.ts +4 -4
- package/es-modules/Grid/Core/Pagination/Pagination.d.ts +32 -57
- package/es-modules/Grid/Core/Pagination/Pagination.js +206 -214
- package/es-modules/Grid/Core/Pagination/PaginationOptions.d.ts +22 -15
- package/es-modules/Grid/Core/Querying/PaginationController.d.ts +32 -9
- package/es-modules/Grid/Core/Querying/PaginationController.js +58 -18
- package/es-modules/Grid/Core/Querying/SortingController.d.ts +7 -15
- package/es-modules/Grid/Core/Querying/SortingController.js +2 -3
- package/es-modules/Grid/Core/Table/Actions/ColumnFiltering/ColumnFiltering.d.ts +1 -1
- package/es-modules/Grid/Core/Table/Actions/ColumnFiltering/ColumnFiltering.js +32 -4
- package/es-modules/Grid/Core/Table/Actions/ColumnFiltering/FilteringTypes.d.ts +3 -3
- package/es-modules/Grid/Core/Table/Actions/ColumnSorting.d.ts +3 -5
- package/es-modules/Grid/Core/Table/Actions/ColumnSorting.js +1 -5
- package/es-modules/Grid/Core/Table/Body/TableCell.d.ts +14 -10
- package/es-modules/Grid/Core/Table/Body/TableCell.js +22 -25
- package/es-modules/Grid/Core/Table/Body/TableRow.d.ts +0 -2
- package/es-modules/Grid/Core/Table/Cell.js +30 -0
- package/es-modules/Grid/Core/Table/CellContent/TextContent.d.ts +2 -7
- package/es-modules/Grid/Core/Table/CellContent/TextContent.js +25 -14
- package/es-modules/Grid/Core/Table/Column.d.ts +7 -9
- package/es-modules/Grid/Core/Table/Column.js +23 -1
- package/es-modules/Grid/Core/Table/ColumnResizing/AdjacentResizingMode.js +2 -2
- package/es-modules/Grid/Core/Table/ColumnResizing/ColumnResizing.d.ts +30 -23
- package/es-modules/Grid/Core/Table/ColumnResizing/ColumnResizing.js +39 -39
- package/es-modules/Grid/Core/Table/ColumnResizing/DistributedResizingMode.js +1 -1
- package/es-modules/Grid/Core/Table/ColumnResizing/IndependentResizingMode.js +2 -2
- package/es-modules/Grid/Core/Table/ColumnResizing/ResizingMode.d.ts +6 -1
- package/es-modules/Grid/Core/Table/Header/ColumnToolbar/ColumnToolbar.js +10 -0
- package/es-modules/Grid/Core/Table/Header/ColumnToolbar/FilterPopup.d.ts +2 -2
- package/es-modules/Grid/Core/Table/Header/ColumnToolbar/StateHelpers.d.ts +26 -24
- package/es-modules/Grid/Core/Table/Header/ColumnToolbar/StateHelpers.js +37 -39
- package/es-modules/Grid/Core/Table/Header/ColumnToolbar/ToolbarButtons/FilterToolbarButton.d.ts +1 -1
- package/es-modules/Grid/Core/Table/Header/ColumnToolbar/ToolbarButtons/MenuToolbarButton.d.ts +1 -1
- package/es-modules/Grid/Core/Table/Header/ColumnToolbar/ToolbarButtons/SortToolbarButton.d.ts +1 -1
- package/es-modules/Grid/Core/Table/Header/HeaderCell.js +3 -4
- package/es-modules/Grid/Core/Table/Header/HeaderRow.d.ts +0 -2
- package/es-modules/Grid/Core/Table/Header/TableHeader.d.ts +0 -2
- package/es-modules/Grid/Core/Table/Table.d.ts +11 -13
- package/es-modules/Grid/Core/Table/Table.js +9 -5
- package/es-modules/Grid/Core/UI/Button.d.ts +1 -1
- package/es-modules/Grid/Core/UI/ContextMenu.d.ts +1 -1
- package/es-modules/Grid/Core/UI/ContextMenu.js +1 -1
- package/es-modules/Grid/Core/UI/ContextMenuButton.d.ts +39 -44
- package/es-modules/Grid/Core/UI/ContextMenuButton.js +4 -4
- package/es-modules/Grid/Core/UI/Popup.d.ts +17 -19
- package/es-modules/Grid/Core/UI/Popup.js +2 -1
- package/es-modules/Grid/Core/UI/SvgIcons.d.ts +49 -50
- package/es-modules/Grid/Core/UI/SvgIcons.js +114 -123
- package/es-modules/Grid/Core/UI/ToolbarButton.d.ts +46 -52
- package/es-modules/Grid/Core/UI/ToolbarButton.js +4 -3
- package/es-modules/Grid/Pro/CellEditing/CellEditing.d.ts +6 -8
- package/es-modules/Grid/Pro/CellEditing/CellEditing.js +8 -11
- package/es-modules/Grid/Pro/CellEditing/CellEditingComposition.d.ts +27 -1
- package/es-modules/Grid/Pro/CellEditing/CellEditingComposition.js +149 -149
- package/es-modules/Grid/Pro/CellRendering/CellRenderer.d.ts +18 -20
- package/es-modules/Grid/Pro/CellRendering/CellRenderer.js +1 -1
- package/es-modules/Grid/Pro/CellRendering/CellRendererRegistry.d.ts +19 -17
- package/es-modules/Grid/Pro/CellRendering/CellRendererRegistry.js +28 -34
- package/es-modules/Grid/Pro/CellRendering/CellRenderersComposition.d.ts +12 -1
- package/es-modules/Grid/Pro/CellRendering/CellRenderersComposition.js +41 -46
- package/es-modules/Grid/Pro/CellRendering/ContentTypes/CheckboxContent.js +2 -2
- package/es-modules/Grid/Pro/CellRendering/ContentTypes/DateInputContent.d.ts +2 -2
- package/es-modules/Grid/Pro/CellRendering/ContentTypes/DateInputContentBase.d.ts +2 -2
- package/es-modules/Grid/Pro/CellRendering/ContentTypes/DateInputContentBase.js +4 -2
- package/es-modules/Grid/Pro/CellRendering/ContentTypes/DateTimeInputContent.d.ts +2 -2
- package/es-modules/Grid/Pro/CellRendering/ContentTypes/NumberInputContent.js +3 -1
- package/es-modules/Grid/Pro/CellRendering/ContentTypes/SelectContent.js +3 -1
- package/es-modules/Grid/Pro/CellRendering/ContentTypes/SparklineContent.d.ts +19 -8
- package/es-modules/Grid/Pro/CellRendering/ContentTypes/SparklineContent.js +17 -13
- package/es-modules/Grid/Pro/CellRendering/ContentTypes/TextInputContent.js +3 -1
- package/es-modules/Grid/Pro/CellRendering/ContentTypes/TimeInputContent.d.ts +2 -2
- package/es-modules/Grid/Pro/CellRendering/Renderers/CheckboxRenderer.d.ts +18 -20
- package/es-modules/Grid/Pro/CellRendering/Renderers/CheckboxRenderer.js +3 -3
- package/es-modules/Grid/Pro/CellRendering/Renderers/DateInputRenderer.d.ts +10 -12
- package/es-modules/Grid/Pro/CellRendering/Renderers/DateInputRenderer.js +3 -3
- package/es-modules/Grid/Pro/CellRendering/Renderers/DateInputRendererBase.d.ts +17 -20
- package/es-modules/Grid/Pro/CellRendering/Renderers/DateTimeInputRenderer.d.ts +10 -12
- package/es-modules/Grid/Pro/CellRendering/Renderers/DateTimeInputRenderer.js +3 -3
- package/es-modules/Grid/Pro/CellRendering/Renderers/NumberInputRenderer.d.ts +20 -22
- package/es-modules/Grid/Pro/CellRendering/Renderers/NumberInputRenderer.js +3 -3
- package/es-modules/Grid/Pro/CellRendering/Renderers/SelectRenderer.d.ts +40 -42
- package/es-modules/Grid/Pro/CellRendering/Renderers/SelectRenderer.js +3 -3
- package/es-modules/Grid/Pro/CellRendering/Renderers/SparklineRenderer.d.ts +16 -18
- package/es-modules/Grid/Pro/CellRendering/Renderers/SparklineRenderer.js +14 -22
- package/es-modules/Grid/Pro/CellRendering/Renderers/TextInputRenderer.d.ts +22 -24
- package/es-modules/Grid/Pro/CellRendering/Renderers/TextInputRenderer.js +3 -3
- package/es-modules/Grid/Pro/CellRendering/Renderers/TextRenderer.d.ts +10 -12
- package/es-modules/Grid/Pro/CellRendering/Renderers/TextRenderer.js +3 -3
- package/es-modules/Grid/Pro/CellRendering/Renderers/TimeInputRenderer.d.ts +10 -12
- package/es-modules/Grid/Pro/CellRendering/Renderers/TimeInputRenderer.js +3 -3
- package/es-modules/Grid/Pro/ColumnTypes/Validator.d.ts +46 -51
- package/es-modules/Grid/Pro/ColumnTypes/Validator.js +62 -77
- package/es-modules/Grid/Pro/ColumnTypes/ValidatorComposition.d.ts +16 -3
- package/es-modules/Grid/Pro/ColumnTypes/ValidatorComposition.js +26 -31
- package/es-modules/Grid/Pro/Credits/CreditsPro.d.ts +0 -2
- package/es-modules/Grid/Pro/Credits/CreditsProComposition.d.ts +12 -11
- package/es-modules/Grid/Pro/Credits/CreditsProComposition.js +29 -31
- package/es-modules/Grid/Pro/Export/Exporting.d.ts +3 -3
- package/es-modules/Grid/Pro/Export/Exporting.js +35 -29
- package/es-modules/Grid/Pro/Export/ExportingComposition.d.ts +12 -11
- package/es-modules/Grid/Pro/Export/ExportingComposition.js +24 -26
- package/es-modules/Grid/Pro/GridEvents.d.ts +19 -1
- package/es-modules/Grid/Pro/GridEvents.js +6 -2
- package/es-modules/Grid/Pro/Pagination/PaginationComposition.d.ts +4 -11
- package/es-modules/Grid/Pro/Pagination/PaginationComposition.js +44 -45
- package/es-modules/Grid/index.d.ts +1 -0
- package/es-modules/masters/grid-pro.src.d.ts +62 -37
- package/es-modules/masters/grid-pro.src.js +37 -39
- package/grid-pro.d.ts +122 -48
- package/grid-pro.js +3 -6
- package/grid-pro.js.map +1 -1
- package/grid-pro.src.d.ts +122 -48
- package/grid-pro.src.js +6650 -6277
- package/package.json +13 -4
- package/es-modules/Grid/Pro/ColumnTypes/ColumnDataType.d.ts +0 -29
package/css/grid-pro.css
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Highcharts Grid Pro v2.
|
|
2
|
+
* @license Highcharts Grid Pro v2.1.0
|
|
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);
|
|
@@ -151,6 +152,13 @@
|
|
|
151
152
|
--ig-description-font: var(--ig-description-font-weight) var(--ig-description-font-size) var(--ig-description-font-family);
|
|
152
153
|
--ig-description-text-align: var(--hcg-description-text-align, var(--ig-text-align));
|
|
153
154
|
|
|
155
|
+
/* Pagination fonts */
|
|
156
|
+
--ig-pagination-font-weight: var(--hcg-pagination-font-weight, var(--ig-font-weight));
|
|
157
|
+
--ig-pagination-font-size: var(--hcg-pagination-font-size, var(--ig-font-size));
|
|
158
|
+
--ig-pagination-font-family: var(--hcg-pagination-font-family, var(--ig-font-family));
|
|
159
|
+
--ig-pagination-color: var(--hcg-pagination-color, var(--ig-color));
|
|
160
|
+
--ig-pagination-font: var(--ig-pagination-font-weight) var(--ig-pagination-font-size) var(--ig-pagination-font-family);
|
|
161
|
+
|
|
154
162
|
/* Default borders */
|
|
155
163
|
--ig-border-radius: var(--hcg-border-radius, 0);
|
|
156
164
|
--ig-border-width: var(--hcg-border-width, 0);
|
|
@@ -354,10 +362,10 @@
|
|
|
354
362
|
--ig-button-hover-background: var(--hcg-button-hover-background, var(--ig-default-color));
|
|
355
363
|
--ig-button-hover-border-color: var(--hcg-button-hover-border-color, var(--ig-button-border-color));
|
|
356
364
|
|
|
357
|
-
/*
|
|
358
|
-
--ig-button-
|
|
359
|
-
--ig-button-
|
|
360
|
-
--ig-button-
|
|
365
|
+
/* Selected buttons for future compability only */
|
|
366
|
+
--ig-button-selected-color: var(--ig-button-hover-color);
|
|
367
|
+
--ig-button-selected-background: var(--ig-button-hover-background);
|
|
368
|
+
--ig-button-selected-border-color: var(--ig-button-hover-border-color);
|
|
361
369
|
|
|
362
370
|
/* Icon styles */
|
|
363
371
|
--ig-icon-color: var(--hcg-icon-color, var(--ig-button-color, var(--ig-default-color)));
|
|
@@ -376,9 +384,9 @@
|
|
|
376
384
|
--ig-pagination-button-hover-background: var(--hcg-pagination-button-hover-background, var(--ig-button-hover-background));
|
|
377
385
|
--ig-pagination-button-hover-color: var(--hcg-pagination-button-hover-color, var(--ig-button-hover-color));
|
|
378
386
|
--ig-pagination-button-hover-border-color: var(--hcg-pagination-button-hover-border-color, var(--ig-button-hover-border-color));
|
|
379
|
-
--ig-pagination-button-
|
|
380
|
-
--ig-pagination-button-
|
|
381
|
-
--ig-pagination-button-
|
|
387
|
+
--ig-pagination-button-selected-color: var(--hcg-pagination-button-selected-color, var(--hcg-pagination-button-hover-color, var(--ig-button-selected-color)));
|
|
388
|
+
--ig-pagination-button-selected-background: var(--hcg-pagination-button-selected-background, var(--hcg-pagination-button-hover-background, var(--ig-button-selected-background)));
|
|
389
|
+
--ig-pagination-button-selected-border-color: var(--hcg-pagination-button-selected-border-color, var(--hcg-pagination-button-hover-border-color, var(--ig-button-selected-border-color)));
|
|
382
390
|
--ig-pagination-icon-color: var(--hcg-pagination-icon-color, var(--ig-pagination-icon-default-color));
|
|
383
391
|
|
|
384
392
|
/* Accessibility */
|
|
@@ -412,6 +420,8 @@
|
|
|
412
420
|
|
|
413
421
|
/* Grid container */
|
|
414
422
|
.hcg-container {
|
|
423
|
+
container-type: inline-size;
|
|
424
|
+
container-name: hcg;
|
|
415
425
|
position: relative;
|
|
416
426
|
display: flex;
|
|
417
427
|
flex-direction: column;
|
|
@@ -607,6 +617,7 @@
|
|
|
607
617
|
/* Header cell icons container - generic for all icon types */
|
|
608
618
|
.hcg-header-cell-icons {
|
|
609
619
|
display: flex;
|
|
620
|
+
overflow: hidden;
|
|
610
621
|
align-items: center;
|
|
611
622
|
gap: 2px;
|
|
612
623
|
max-width: 0;
|
|
@@ -782,14 +793,10 @@ th.hcg-column-sortable > .hcg-column-sortable-icon {
|
|
|
782
793
|
text-overflow: ellipsis;
|
|
783
794
|
}
|
|
784
795
|
|
|
785
|
-
.hcg-table tbody td.hcg-edited-cell {
|
|
786
|
-
padding: 0;
|
|
787
|
-
}
|
|
788
|
-
|
|
789
796
|
.hcg-table tbody td:focus,
|
|
790
797
|
.hcg-table thead th:focus-visible {
|
|
791
798
|
outline: none;
|
|
792
|
-
box-shadow: inset
|
|
799
|
+
box-shadow: inset var(--ig-focus-ring);
|
|
793
800
|
}
|
|
794
801
|
|
|
795
802
|
/* Header hovered background and color */
|
|
@@ -1083,8 +1090,7 @@ th.hcg-column-sortable > .hcg-column-sortable-icon {
|
|
|
1083
1090
|
|
|
1084
1091
|
/* Input elements */
|
|
1085
1092
|
|
|
1086
|
-
.hcg-container input
|
|
1087
|
-
.hcg-container select {
|
|
1093
|
+
.hcg-container .hcg-input {
|
|
1088
1094
|
font: var(--ig-input-font);
|
|
1089
1095
|
text-align: var(--ig-input-text-align);
|
|
1090
1096
|
background: var(--ig-input-background);
|
|
@@ -1093,10 +1099,9 @@ th.hcg-column-sortable > .hcg-column-sortable-icon {
|
|
|
1093
1099
|
border-radius: var(--ig-input-border-radius);
|
|
1094
1100
|
padding: 7px;
|
|
1095
1101
|
width: 100%;
|
|
1096
|
-
line-height: 1em;
|
|
1097
1102
|
}
|
|
1098
1103
|
|
|
1099
|
-
.hcg-container input[type="checkbox"] {
|
|
1104
|
+
.hcg-container .hcg-input[type="checkbox"] {
|
|
1100
1105
|
appearance: none;
|
|
1101
1106
|
width: 20px;
|
|
1102
1107
|
height: 20px;
|
|
@@ -1104,51 +1109,48 @@ th.hcg-column-sortable > .hcg-column-sortable-icon {
|
|
|
1104
1109
|
position: relative;
|
|
1105
1110
|
}
|
|
1106
1111
|
|
|
1107
|
-
.hcg-container input[type="checkbox"]:checked::before {
|
|
1112
|
+
.hcg-container .hcg-input[type="checkbox"]:checked::before {
|
|
1108
1113
|
content: "";
|
|
1109
1114
|
position: absolute;
|
|
1110
1115
|
inset: 0;
|
|
1111
1116
|
margin: 0.05rem;
|
|
1112
1117
|
mask: center/contain no-repeat;
|
|
1113
|
-
mask-image: url("data:image/svg+xml,%3Csvg
|
|
1118
|
+
mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E");
|
|
1114
1119
|
background-color: var(--ig-input-color);
|
|
1115
1120
|
}
|
|
1116
1121
|
|
|
1117
|
-
.hcg-container input:hover
|
|
1118
|
-
.hcg-container select:hover {
|
|
1122
|
+
.hcg-container .hcg-input:hover {
|
|
1119
1123
|
border-color: var(--ig-input-hover-border-color);
|
|
1120
1124
|
}
|
|
1121
1125
|
|
|
1122
|
-
.hcg-container input:disabled,
|
|
1123
|
-
.hcg-container
|
|
1124
|
-
.hcg-container button:disabled {
|
|
1126
|
+
.hcg-container .hcg-input:disabled,
|
|
1127
|
+
.hcg-container .hcg-button:disabled {
|
|
1125
1128
|
opacity: 0.4;
|
|
1126
1129
|
cursor: not-allowed;
|
|
1127
1130
|
}
|
|
1128
1131
|
|
|
1129
|
-
.hcg-container input::placeholder {
|
|
1132
|
+
.hcg-container .hcg-input::placeholder {
|
|
1130
1133
|
color: #767676;
|
|
1131
1134
|
}
|
|
1132
1135
|
|
|
1133
|
-
.hcg-container input:focus-visible
|
|
1134
|
-
.hcg-container select:focus-visible {
|
|
1136
|
+
.hcg-container .hcg-input:focus-visible {
|
|
1135
1137
|
outline: none;
|
|
1136
1138
|
border-color: transparent;
|
|
1137
1139
|
box-shadow: var(--ig-focus-ring);
|
|
1138
1140
|
}
|
|
1139
1141
|
|
|
1140
|
-
.hcg-container input.hcg-icon {
|
|
1142
|
+
.hcg-container .hcg-input.hcg-icon {
|
|
1141
1143
|
padding-left: 25px;
|
|
1142
1144
|
appearance: none;
|
|
1143
1145
|
background-repeat: no-repeat;
|
|
1144
1146
|
background-position: left 10px center;
|
|
1145
1147
|
}
|
|
1146
1148
|
|
|
1147
|
-
.hcg-container input.hcg-icon-search {
|
|
1149
|
+
.hcg-container .hcg-input.hcg-icon-search {
|
|
1148
1150
|
background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3e%3cpath d='M10.5 10.5L7.50005 7.5M8.5 5C8.5 6.933 6.933 8.5 5 8.5C3.067 8.5 1.5 6.933 1.5 5C1.5 3.067 3.067 1.5 5 1.5C6.933 1.5 8.5 3.067 8.5 5Z' stroke='%23767676' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e");
|
|
1149
1151
|
}
|
|
1150
1152
|
|
|
1151
|
-
.hcg-container select {
|
|
1153
|
+
.hcg-container select.hcg-input {
|
|
1152
1154
|
appearance: none;
|
|
1153
1155
|
background-image: url("data:image/svg+xml,%3csvg width='12' height='12' viewBox='0 0 12 12' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M3.5 7.5L6 10L8.5 7.5M3.5 4.5L6 2L8.5 4.5' stroke='%23767676' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e");
|
|
1154
1156
|
background-repeat: no-repeat;
|
|
@@ -1209,6 +1211,8 @@ th.hcg-column-sortable > .hcg-column-sortable-icon {
|
|
|
1209
1211
|
.hcg-pagination-wrapper {
|
|
1210
1212
|
background: var(--ig-pagination-background);
|
|
1211
1213
|
padding: var(--ig-pagination-padding);
|
|
1214
|
+
color: var(--ig-pagination-color);
|
|
1215
|
+
font: var(--ig-pagination-font);
|
|
1212
1216
|
display: grid;
|
|
1213
1217
|
grid-template-columns: 1fr auto 1fr;
|
|
1214
1218
|
align-items: center;
|
|
@@ -1216,9 +1220,12 @@ th.hcg-column-sortable > .hcg-column-sortable-icon {
|
|
|
1216
1220
|
width: 100%;
|
|
1217
1221
|
}
|
|
1218
1222
|
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1223
|
+
.hcg-pagination-wrapper select {
|
|
1224
|
+
min-height: 30px;
|
|
1225
|
+
}
|
|
1226
|
+
|
|
1227
|
+
.hcg-pagination-controls-container .hcg-button,
|
|
1228
|
+
.hcg-pagination-controls-container span {
|
|
1222
1229
|
color: var(--ig-pagination-button-color);
|
|
1223
1230
|
background: var(--ig-pagination-button-background);
|
|
1224
1231
|
border: var(--ig-pagination-button-border);
|
|
@@ -1234,26 +1241,26 @@ th.hcg-column-sortable > .hcg-column-sortable-icon {
|
|
|
1234
1241
|
cursor: pointer;
|
|
1235
1242
|
}
|
|
1236
1243
|
|
|
1237
|
-
.hcg-pagination-
|
|
1244
|
+
.hcg-pagination-controls-container span {
|
|
1238
1245
|
cursor: default;
|
|
1239
1246
|
border-color: transparent;
|
|
1240
1247
|
}
|
|
1241
1248
|
|
|
1242
1249
|
/* SVG icon styling for pagination buttons */
|
|
1243
|
-
.hcg-pagination-
|
|
1250
|
+
.hcg-pagination-controls-container .hcg-button svg {
|
|
1244
1251
|
color: var(--ig-pagination-icon-color);
|
|
1245
1252
|
width: var(--ig-input-font-size);
|
|
1246
1253
|
height: var(--ig-input-font-size);
|
|
1247
1254
|
display: block;
|
|
1248
1255
|
}
|
|
1249
1256
|
|
|
1250
|
-
.hcg-pagination-
|
|
1257
|
+
.hcg-pagination-controls-container .hcg-button svg path {
|
|
1251
1258
|
stroke: currentcolor;
|
|
1252
1259
|
}
|
|
1253
1260
|
|
|
1254
1261
|
/* Fix horizontal layout for pagination pages */
|
|
1255
1262
|
|
|
1256
|
-
.hcg-pagination-
|
|
1263
|
+
.hcg-pagination-controls-container div.hcg-pagination-nav-buttons-container {
|
|
1257
1264
|
margin-right: 12px;
|
|
1258
1265
|
margin-left: 12px;
|
|
1259
1266
|
display: inline-flex;
|
|
@@ -1270,7 +1277,7 @@ th.hcg-column-sortable > .hcg-column-sortable-icon {
|
|
|
1270
1277
|
}
|
|
1271
1278
|
|
|
1272
1279
|
/* Pagination controls - horizontal layout */
|
|
1273
|
-
.hcg-pagination-wrapper .hcg-pagination-controls {
|
|
1280
|
+
.hcg-pagination-wrapper .hcg-pagination-controls-container {
|
|
1274
1281
|
display: flex;
|
|
1275
1282
|
align-items: center;
|
|
1276
1283
|
gap: 2px;
|
|
@@ -1278,14 +1285,14 @@ th.hcg-column-sortable > .hcg-column-sortable-icon {
|
|
|
1278
1285
|
}
|
|
1279
1286
|
|
|
1280
1287
|
/* Hover state - only border change */
|
|
1281
|
-
.hcg-pagination-wrapper button:hover:not(:is(:disabled, .hcg-
|
|
1288
|
+
.hcg-pagination-wrapper .hcg-button:hover:not(:is(:disabled, .hcg-button-selected)) {
|
|
1282
1289
|
color: var(--ig-pagination-button-hover-color);
|
|
1283
1290
|
background: var(--ig-pagination-button-hover-background);
|
|
1284
1291
|
border-color: var(--ig-pagination-button-hover-border-color);
|
|
1285
1292
|
outline: none;
|
|
1286
1293
|
}
|
|
1287
1294
|
|
|
1288
|
-
.hcg-pagination-wrapper button:focus-visible:not(:disabled) {
|
|
1295
|
+
.hcg-pagination-wrapper .hcg-button:focus-visible:not(:disabled) {
|
|
1289
1296
|
outline: none;
|
|
1290
1297
|
border-color: transparent;
|
|
1291
1298
|
box-shadow: var(--ig-focus-ring);
|
|
@@ -1293,61 +1300,41 @@ th.hcg-column-sortable > .hcg-column-sortable-icon {
|
|
|
1293
1300
|
|
|
1294
1301
|
/* Disabled state */
|
|
1295
1302
|
|
|
1296
|
-
.hcg-pagination-wrapper .hcg-
|
|
1297
|
-
color: var(--ig-pagination-button-
|
|
1298
|
-
background: var(--ig-pagination-button-
|
|
1299
|
-
border-color: var(--ig-pagination-button-
|
|
1303
|
+
.hcg-pagination-wrapper .hcg-button-selected {
|
|
1304
|
+
color: var(--ig-pagination-button-selected-color);
|
|
1305
|
+
background: var(--ig-pagination-button-selected-background);
|
|
1306
|
+
border-color: var(--ig-pagination-button-selected-border-color);
|
|
1300
1307
|
}
|
|
1301
1308
|
|
|
1302
1309
|
/* Page size selector */
|
|
1303
|
-
.hcg-pagination-wrapper .hcg-pagination-page-size
|
|
1310
|
+
.hcg-pagination-wrapper .hcg-pagination-page-size {
|
|
1304
1311
|
text-align: right;
|
|
1305
1312
|
}
|
|
1306
1313
|
|
|
1307
|
-
.hcg-pagination-wrapper select {
|
|
1308
|
-
min-height: 30px;
|
|
1309
|
-
}
|
|
1310
|
-
|
|
1311
|
-
.hcg-pagination-wrapper .hcg-pagination-page-size-select {
|
|
1314
|
+
.hcg-pagination-wrapper .hcg-pagination-page-size select.hcg-input {
|
|
1312
1315
|
width: 60px;
|
|
1313
1316
|
margin-left: 8px;
|
|
1314
1317
|
}
|
|
1315
1318
|
|
|
1316
1319
|
/* Mobile page selector - hidden by default */
|
|
1317
|
-
.hcg-pagination-wrapper .hcg-pagination-
|
|
1320
|
+
.hcg-pagination-wrapper .hcg-pagination-nav-dropdown {
|
|
1318
1321
|
display: none;
|
|
1319
1322
|
margin-left: 0;
|
|
1320
1323
|
min-width: 200px;
|
|
1321
1324
|
text-align: center;
|
|
1322
1325
|
}
|
|
1323
1326
|
|
|
1324
|
-
|
|
1325
|
-
.hcg-pagination-wrapper .hcg-pagination-mobile-page-size-selector {
|
|
1326
|
-
width: 150px;
|
|
1327
|
-
display: none;
|
|
1328
|
-
}
|
|
1329
|
-
|
|
1330
|
-
@media (max-width: 1024px) {
|
|
1327
|
+
@container hcg (max-width: 1024px) {
|
|
1331
1328
|
.hcg-pagination-wrapper {
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
gap: 20px;
|
|
1335
|
-
align-items: center;
|
|
1336
|
-
width: 100%;
|
|
1337
|
-
margin-bottom: 20px;
|
|
1329
|
+
grid-template-columns: 1fr;
|
|
1330
|
+
justify-items: center;
|
|
1338
1331
|
}
|
|
1339
1332
|
|
|
1340
|
-
|
|
1341
|
-
.hcg-pagination-wrapper .hcg-pagination-mobile-selector,
|
|
1342
|
-
.hcg-pagination-wrapper .hcg-pagination-mobile-page-size-selector {
|
|
1333
|
+
.hcg-pagination-wrapper .hcg-pagination-nav-dropdown {
|
|
1343
1334
|
display: block;
|
|
1344
1335
|
}
|
|
1345
1336
|
|
|
1346
|
-
.hcg-pagination-wrapper div.hcg-pagination-
|
|
1347
|
-
.hcg-pagination-wrapper .hcg-pagination-first,
|
|
1348
|
-
.hcg-pagination-wrapper .hcg-pagination-last,
|
|
1349
|
-
.hcg-pagination-wrapper .hcg-pagination-page-size-container span,
|
|
1350
|
-
.hcg-pagination-wrapper .hcg-pagination-page-size-container .hcg-pagination-page-size-select {
|
|
1337
|
+
.hcg-pagination-wrapper div.hcg-pagination-nav-buttons-container {
|
|
1351
1338
|
display: none;
|
|
1352
1339
|
}
|
|
1353
1340
|
}
|
|
@@ -1378,6 +1365,7 @@ th.hcg-column-sortable > .hcg-column-sortable-icon {
|
|
|
1378
1365
|
z-index: 1000;
|
|
1379
1366
|
background-color: var(--hcg-popup-background);
|
|
1380
1367
|
border: var(--hcg-popup-border);
|
|
1368
|
+
color: var(--ig-color);
|
|
1381
1369
|
border-radius: 6px;
|
|
1382
1370
|
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
1371
|
min-width: 200px;
|
|
@@ -1395,7 +1383,6 @@ th.hcg-column-sortable > .hcg-column-sortable-icon {
|
|
|
1395
1383
|
}
|
|
1396
1384
|
|
|
1397
1385
|
.hcg-menu-header-category {
|
|
1398
|
-
color: var(--ig-color-secondary);
|
|
1399
1386
|
opacity: 0.5;
|
|
1400
1387
|
user-select: none;
|
|
1401
1388
|
}
|
|
@@ -1502,8 +1489,8 @@ th.hcg-column-sortable > .hcg-column-sortable-icon {
|
|
|
1502
1489
|
--hcg-button-color: #141414;
|
|
1503
1490
|
--hcg-button-hover-color: #141414;
|
|
1504
1491
|
--hcg-pagination-vertical-padding: 10px;
|
|
1505
|
-
--hcg-pagination-button-
|
|
1506
|
-
--hcg-pagination-button-
|
|
1492
|
+
--hcg-pagination-button-selected-background: #000000;
|
|
1493
|
+
--hcg-pagination-button-selected-color: #ffffff;
|
|
1507
1494
|
--hcg-icon-color: #626262;
|
|
1508
1495
|
--hcg-icon-hover-color: #141414;
|
|
1509
1496
|
}
|
|
@@ -1517,8 +1504,8 @@ th.hcg-column-sortable > .hcg-column-sortable-icon {
|
|
|
1517
1504
|
--hcg-button-hover-background: #3b3b3b;
|
|
1518
1505
|
--hcg-button-color: #ffffff;
|
|
1519
1506
|
--hcg-button-hover-color: #ffffff;
|
|
1520
|
-
--hcg-pagination-button-
|
|
1521
|
-
--hcg-pagination-button-
|
|
1507
|
+
--hcg-pagination-button-selected-background: #ffffff;
|
|
1508
|
+
--hcg-pagination-button-selected-color: #000000;
|
|
1522
1509
|
--hcg-icon-hover-color: #ffffff;
|
|
1523
1510
|
}
|
|
1524
1511
|
}
|
|
@@ -1531,8 +1518,8 @@ th.hcg-column-sortable > .hcg-column-sortable-icon {
|
|
|
1531
1518
|
--hcg-button-hover-background: #3b3b3b;
|
|
1532
1519
|
--hcg-button-color: #ffffff;
|
|
1533
1520
|
--hcg-button-hover-color: #ffffff;
|
|
1534
|
-
--hcg-pagination-button-
|
|
1535
|
-
--hcg-pagination-button-
|
|
1521
|
+
--hcg-pagination-button-selected-background: #ffffff;
|
|
1522
|
+
--hcg-pagination-button-selected-color: #000000;
|
|
1536
1523
|
--hcg-icon-hover-color: #ffffff;
|
|
1537
1524
|
}
|
|
1538
1525
|
|
|
@@ -1547,7 +1534,8 @@ th.hcg-column-sortable > .hcg-column-sortable-icon {
|
|
|
1547
1534
|
|
|
1548
1535
|
/* Grid Pro specific styles */
|
|
1549
1536
|
|
|
1550
|
-
.hcg-container
|
|
1537
|
+
.hcg-container,
|
|
1538
|
+
.highcharts-light .hcg-container {
|
|
1551
1539
|
/* Credits fonts */
|
|
1552
1540
|
--ig-credits-font-weight: var(--hcg-credits-font-weight, var(--ig-font-weight));
|
|
1553
1541
|
--ig-credits-font-size: var(--hcg-credits-font-size, 0.9em);
|
|
@@ -1621,6 +1609,19 @@ th.hcg-column-sortable > .hcg-column-sortable-icon {
|
|
|
1621
1609
|
var(
|
|
1622
1610
|
--ig-notification-border-width
|
|
1623
1611
|
) var(--ig-notification-border-style) var(--ig-notification-border-color);
|
|
1612
|
+
|
|
1613
|
+
/* Editable cell */
|
|
1614
|
+
--ig-cell-editable-background: #dbeaff;
|
|
1615
|
+
}
|
|
1616
|
+
|
|
1617
|
+
@media (prefers-color-scheme: dark) {
|
|
1618
|
+
.hcg-container {
|
|
1619
|
+
--ig-cell-editable-background: #2d415e;
|
|
1620
|
+
}
|
|
1621
|
+
}
|
|
1622
|
+
|
|
1623
|
+
.highcharts-dark .hcg-container {
|
|
1624
|
+
--ig-cell-editable-background: #2d415e;
|
|
1624
1625
|
}
|
|
1625
1626
|
|
|
1626
1627
|
.hcg-no-padding {
|
|
@@ -1639,20 +1640,19 @@ th.hcg-column-sortable > .hcg-column-sortable-icon {
|
|
|
1639
1640
|
left: 0;
|
|
1640
1641
|
padding: inherit;
|
|
1641
1642
|
z-index: 1;
|
|
1642
|
-
background:
|
|
1643
|
-
color:
|
|
1643
|
+
background: var(--ig-cell-editable-background);
|
|
1644
|
+
color: var(--ig-color);
|
|
1644
1645
|
box-shadow: inset var(--ig-focus-ring);
|
|
1645
1646
|
display: flex;
|
|
1646
1647
|
align-items: center;
|
|
1647
1648
|
justify-content: center;
|
|
1648
1649
|
}
|
|
1649
1650
|
|
|
1650
|
-
.hcg-cell-editing-container:has(input[type="checkbox"]) {
|
|
1651
|
+
.hcg-cell-editing-container:has(.hcg-input[type="checkbox"]) {
|
|
1651
1652
|
padding: var(--ig-padding);
|
|
1652
1653
|
}
|
|
1653
1654
|
|
|
1654
|
-
.hcg-table tbody td.hcg-edited-cell input:not([type="checkbox"])
|
|
1655
|
-
.hcg-table tbody td.hcg-edited-cell select {
|
|
1655
|
+
.hcg-table tbody td.hcg-edited-cell .hcg-input:not([type="checkbox"]) {
|
|
1656
1656
|
border-width: 0;
|
|
1657
1657
|
position: absolute;
|
|
1658
1658
|
top: 0;
|
|
@@ -1662,17 +1662,20 @@ th.hcg-column-sortable > .hcg-column-sortable-icon {
|
|
|
1662
1662
|
outline: none;
|
|
1663
1663
|
float: left;
|
|
1664
1664
|
font: var(--ig-font);
|
|
1665
|
-
background: transparent;
|
|
1665
|
+
background-color: transparent;
|
|
1666
1666
|
color: unset;
|
|
1667
1667
|
padding: var(--ig-padding);
|
|
1668
1668
|
max-height: unset;
|
|
1669
1669
|
height: unset;
|
|
1670
1670
|
border-radius: unset;
|
|
1671
|
-
line-height:
|
|
1671
|
+
line-height: 1.2em;
|
|
1672
|
+
}
|
|
1673
|
+
|
|
1674
|
+
.hcg-table tbody td.hcg-edited-cell select {
|
|
1675
|
+
appearance: none;
|
|
1672
1676
|
}
|
|
1673
1677
|
|
|
1674
|
-
.hcg-table tbody td.hcg-edited-cell-error input
|
|
1675
|
-
.hcg-table tbody td.hcg-edited-cell-error select {
|
|
1678
|
+
.hcg-table tbody td.hcg-edited-cell-error .hcg-input {
|
|
1676
1679
|
color: var(--ig-color);
|
|
1677
1680
|
box-shadow: inset 0 0 0 var(--ig-focus-ring-width) var(--ig-negative-border-color) !important;
|
|
1678
1681
|
background-color: var(--ig-negative-background) !important;
|
|
@@ -158,6 +158,8 @@ var ForcedMarkersComposition;
|
|
|
158
158
|
}
|
|
159
159
|
else if (series.a11yMarkersForced) {
|
|
160
160
|
delete series.a11yMarkersForced;
|
|
161
|
+
// Mark series dirty to ensure marker graphics are cleaned up
|
|
162
|
+
series.isDirty = true;
|
|
161
163
|
unforceSeriesMarkerOptions(series);
|
|
162
164
|
if (options.marker && options.marker.enabled === false) { // #23329
|
|
163
165
|
delete series.resetA11yMarkerOptions; // #16624
|
|
@@ -326,7 +326,12 @@ const langOptions = {
|
|
|
326
326
|
timeRangeMinutes: 'Data range: {range} minutes.',
|
|
327
327
|
timeRangeSeconds: 'Data range: {range} seconds.',
|
|
328
328
|
rangeFromTo: 'Data ranges from {rangeFrom} to {rangeTo}.',
|
|
329
|
-
rangeCategories: 'Data range: {numCategories} categories.'
|
|
329
|
+
rangeCategories: 'Data range: {numCategories} categories.',
|
|
330
|
+
defaultAxisNames: {
|
|
331
|
+
categories: 'categories',
|
|
332
|
+
time: 'Time',
|
|
333
|
+
values: 'values'
|
|
334
|
+
}
|
|
330
335
|
}, /* eslint-enable max-len */
|
|
331
336
|
/**
|
|
332
337
|
* Exporting menu format strings for accessibility module.
|
|
@@ -61,9 +61,9 @@ function getAxisDescription(axis) {
|
|
|
61
61
|
return axis && (axis.options.accessibility?.description ||
|
|
62
62
|
axis.axisTitle?.textStr ||
|
|
63
63
|
axis.options.id ||
|
|
64
|
-
axis.categories && 'categories' ||
|
|
65
|
-
axis.dateTime && '
|
|
66
|
-
'values');
|
|
64
|
+
axis.categories && axis.chart.langFormat('accessibility.axis.defaultAxisNames.categories', {}) ||
|
|
65
|
+
axis.dateTime && axis.chart.langFormat('accessibility.axis.defaultAxisNames.time', {}) ||
|
|
66
|
+
axis.chart.langFormat('accessibility.axis.defaultAxisNames.values', {}));
|
|
67
67
|
}
|
|
68
68
|
/**
|
|
69
69
|
* Return string with text description of the axis range.
|
|
@@ -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
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/* *
|
|
2
|
+
*
|
|
3
|
+
* (c) 2010-2025 Torstein Honsi
|
|
4
|
+
*
|
|
5
|
+
* License: www.highcharts.com/license
|
|
6
|
+
*
|
|
7
|
+
* !!!!!!! SOURCE GETS TRANSPILED BY TYPESCRIPT. EDIT TS FILE ONLY. !!!!!!!
|
|
8
|
+
*
|
|
9
|
+
* */
|
|
10
|
+
|
|
11
|
+
/* *
|
|
12
|
+
*
|
|
13
|
+
* Declarations
|
|
14
|
+
*
|
|
15
|
+
* */
|
|
16
|
+
|
|
17
|
+
export type ColorString = string;
|
|
18
|
+
|
|
19
|
+
/* *
|
|
20
|
+
*
|
|
21
|
+
* Export
|
|
22
|
+
*
|
|
23
|
+
* */
|
|
24
|
+
|
|
25
|
+
export default ColorString;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/* *
|
|
2
|
+
*
|
|
3
|
+
* (c) 2010-2025 Torstein Honsi
|
|
4
|
+
*
|
|
5
|
+
* License: www.highcharts.com/license
|
|
6
|
+
*
|
|
7
|
+
* !!!!!!! SOURCE GETS TRANSPILED BY TYPESCRIPT. EDIT TS FILE ONLY. !!!!!!!
|
|
8
|
+
*
|
|
9
|
+
* */
|
|
10
|
+
|
|
11
|
+
/* *
|
|
12
|
+
*
|
|
13
|
+
* Imports
|
|
14
|
+
*
|
|
15
|
+
* */
|
|
16
|
+
|
|
17
|
+
import type ColorString from './ColorString';
|
|
18
|
+
import type GradientColor from './GradientColor';
|
|
19
|
+
|
|
20
|
+
/* *
|
|
21
|
+
*
|
|
22
|
+
* Declarations
|
|
23
|
+
*
|
|
24
|
+
* */
|
|
25
|
+
|
|
26
|
+
export interface ColorBase {
|
|
27
|
+
// Nothing here yet
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export type ColorType = ColorTypeRegistry[keyof ColorTypeRegistry];
|
|
31
|
+
|
|
32
|
+
export interface ColorTypeRegistry {
|
|
33
|
+
ColorString: ColorString;
|
|
34
|
+
GradientColor: GradientColor;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/* *
|
|
38
|
+
*
|
|
39
|
+
* Export
|
|
40
|
+
*
|
|
41
|
+
* */
|
|
42
|
+
|
|
43
|
+
export default ColorType;
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
/* *
|
|
2
|
+
*
|
|
3
|
+
* (c) 2010-2025 Torstein Honsi
|
|
4
|
+
*
|
|
5
|
+
* License: www.highcharts.com/license
|
|
6
|
+
*
|
|
7
|
+
* !!!!!!! SOURCE GETS TRANSPILED BY TYPESCRIPT. EDIT TS FILE ONLY. !!!!!!!
|
|
8
|
+
*
|
|
9
|
+
* */
|
|
10
|
+
|
|
11
|
+
/* *
|
|
12
|
+
*
|
|
13
|
+
* Imports
|
|
14
|
+
*
|
|
15
|
+
* */
|
|
16
|
+
|
|
17
|
+
import type Color from './Color';
|
|
18
|
+
import type ColorType from './ColorType';
|
|
19
|
+
|
|
20
|
+
/* *
|
|
21
|
+
*
|
|
22
|
+
* Declarations
|
|
23
|
+
*
|
|
24
|
+
* */
|
|
25
|
+
|
|
26
|
+
export interface GradientColor {
|
|
27
|
+
linearGradient?: LinearGradientColor;
|
|
28
|
+
radialGradient?: RadialGradientColor;
|
|
29
|
+
stops: Array<GradientColorStop>;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export interface GradientColorStop {
|
|
33
|
+
0: number;
|
|
34
|
+
1: ColorType;
|
|
35
|
+
color?: Color;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export interface LinearGradientColor {
|
|
39
|
+
x1: number;
|
|
40
|
+
x2: number;
|
|
41
|
+
y1: number;
|
|
42
|
+
y2: number;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export interface RadialGradientColor {
|
|
46
|
+
cx: number;
|
|
47
|
+
cy: number;
|
|
48
|
+
r: number;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/* *
|
|
52
|
+
*
|
|
53
|
+
* Export
|
|
54
|
+
*
|
|
55
|
+
* */
|
|
56
|
+
|
|
57
|
+
export default GradientColor;
|
|
@@ -24,7 +24,7 @@ var Globals;
|
|
|
24
24
|
* Constants
|
|
25
25
|
*
|
|
26
26
|
* */
|
|
27
|
-
Globals.SVG_NS = 'http://www.w3.org/2000/svg', Globals.product = 'Highcharts', Globals.version = '
|
|
27
|
+
Globals.SVG_NS = 'http://www.w3.org/2000/svg', Globals.product = 'Highcharts', Globals.version = '2.1.0', Globals.win = (typeof window !== 'undefined' ?
|
|
28
28
|
window :
|
|
29
29
|
{}), // eslint-disable-line node/no-unsupported-features/es-builtins
|
|
30
30
|
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 = [
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/* *
|
|
2
|
+
*
|
|
3
|
+
* (c) 2010-2025 Torstein Honsi
|
|
4
|
+
*
|
|
5
|
+
* License: www.highcharts.com/license
|
|
6
|
+
*
|
|
7
|
+
* !!!!!!! SOURCE GETS TRANSPILED BY TYPESCRIPT. EDIT TS FILE ONLY. !!!!!!!
|
|
8
|
+
*
|
|
9
|
+
* */
|
|
10
|
+
|
|
11
|
+
/* *
|
|
12
|
+
*
|
|
13
|
+
* Declarations
|
|
14
|
+
*
|
|
15
|
+
* */
|
|
16
|
+
|
|
17
|
+
export type AlignValue = ('center'|'left'|'right');
|
|
18
|
+
|
|
19
|
+
export type VerticalAlignValue = ('bottom'|'middle'|'top');
|
|
20
|
+
|
|
21
|
+
export interface AlignObject {
|
|
22
|
+
align?: AlignValue;
|
|
23
|
+
alignByTranslate?: boolean;
|
|
24
|
+
verticalAlign?: VerticalAlignValue;
|
|
25
|
+
x?: number;
|
|
26
|
+
y?: number;
|
|
27
|
+
width?: number;
|
|
28
|
+
height?: number;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
/* *
|
|
32
|
+
*
|
|
33
|
+
* Default Export
|
|
34
|
+
*
|
|
35
|
+
* */
|
|
36
|
+
|
|
37
|
+
export default AlignObject;
|