@highcharts/grid-pro 2.0.1 → 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.
Files changed (164) hide show
  1. package/css/grid-pro.css +69 -85
  2. package/es-modules/Accessibility/Components/SeriesComponent/ForcedMarkers.js +2 -0
  3. package/es-modules/Accessibility/Options/LangDefaults.js +6 -1
  4. package/es-modules/Accessibility/Utils/ChartUtilities.js +3 -3
  5. package/es-modules/Core/Color/ColorString.d.ts +25 -0
  6. package/es-modules/Core/Color/ColorType.d.ts +43 -0
  7. package/es-modules/Core/Color/GradientColor.d.ts +57 -0
  8. package/es-modules/Core/Globals.js +1 -1
  9. package/es-modules/Core/Renderer/AlignObject.d.ts +37 -0
  10. package/es-modules/Core/Renderer/BBoxObject.d.ts +40 -0
  11. package/es-modules/Core/Renderer/CSSObject.d.ts +130 -0
  12. package/es-modules/Core/Renderer/DOMElementType.d.ts +36 -0
  13. package/es-modules/Core/Renderer/DashStyleValue.d.ts +28 -0
  14. package/es-modules/Core/Renderer/FontMetricsObject.d.ts +38 -0
  15. package/es-modules/Core/Renderer/HTML/HTMLAttributes.d.ts +57 -0
  16. package/es-modules/Core/Renderer/PolygonBoxObject.d.ts +19 -0
  17. package/es-modules/Core/Renderer/Position3DObject.d.ts +35 -0
  18. package/es-modules/Core/Renderer/PositionObject.d.ts +28 -0
  19. package/es-modules/Core/Renderer/RectangleObject.d.ts +35 -0
  20. package/es-modules/Core/Renderer/RendererType.d.ts +53 -0
  21. package/es-modules/Core/Renderer/SVG/ButtonThemeObject.d.ts +43 -0
  22. package/es-modules/Core/Renderer/SVG/SVGArc3D.d.ts +44 -0
  23. package/es-modules/Core/Renderer/SVG/SVGAttributes.d.ts +147 -0
  24. package/es-modules/Core/Renderer/SVG/SVGAttributes3D.d.ts +42 -0
  25. package/es-modules/Core/Renderer/SVG/SVGCuboid.d.ts +42 -0
  26. package/es-modules/Core/Renderer/SVG/SVGElementBase.d.ts +31 -0
  27. package/es-modules/Core/Renderer/SVG/SVGPath.d.ts +97 -0
  28. package/es-modules/Core/Renderer/SVG/SVGPath3D.d.ts +40 -0
  29. package/es-modules/Core/Renderer/SVG/SVGRendererBase.d.ts +31 -0
  30. package/es-modules/Core/Renderer/SVG/SymbolOptions.d.ts +41 -0
  31. package/es-modules/Core/Renderer/SVG/SymbolType.d.ts +50 -0
  32. package/es-modules/Core/Renderer/ShadowOptionsObject.d.ts +40 -0
  33. package/es-modules/Core/Renderer/SizeObject.d.ts +28 -0
  34. package/es-modules/Core/Templating.js +6 -7
  35. package/es-modules/Data/Connectors/DataConnector.js +3 -2
  36. package/es-modules/Data/Connectors/DataConnectorOptions.d.ts +1 -1
  37. package/es-modules/Data/DataTable.d.ts +1 -1
  38. package/es-modules/Data/DataTable.js +3 -2
  39. package/es-modules/Data/DataTableCore.js +15 -6
  40. package/es-modules/Grid/Core/Accessibility/Accessibility.d.ts +13 -15
  41. package/es-modules/Grid/Core/Credits.d.ts +0 -2
  42. package/es-modules/Grid/Core/Defaults.d.ts +20 -17
  43. package/es-modules/Grid/Core/Defaults.js +116 -114
  44. package/es-modules/Grid/Core/Globals.d.ts +108 -32
  45. package/es-modules/Grid/Core/Globals.js +98 -111
  46. package/es-modules/Grid/Core/Grid.d.ts +51 -17
  47. package/es-modules/Grid/Core/Grid.js +369 -79
  48. package/es-modules/Grid/Core/GridUtils.d.ts +96 -89
  49. package/es-modules/Grid/Core/GridUtils.js +143 -155
  50. package/es-modules/Grid/Core/Options.d.ts +3 -7
  51. package/es-modules/Grid/Core/Pagination/Icons.d.ts +4 -4
  52. package/es-modules/Grid/Core/Pagination/Pagination.d.ts +32 -57
  53. package/es-modules/Grid/Core/Pagination/Pagination.js +206 -214
  54. package/es-modules/Grid/Core/Pagination/PaginationOptions.d.ts +22 -15
  55. package/es-modules/Grid/Core/Querying/PaginationController.d.ts +32 -9
  56. package/es-modules/Grid/Core/Querying/PaginationController.js +58 -18
  57. package/es-modules/Grid/Core/Querying/SortingController.d.ts +7 -15
  58. package/es-modules/Grid/Core/Querying/SortingController.js +2 -3
  59. package/es-modules/Grid/Core/Table/Actions/ColumnFiltering/ColumnFiltering.d.ts +1 -1
  60. package/es-modules/Grid/Core/Table/Actions/ColumnFiltering/ColumnFiltering.js +32 -4
  61. package/es-modules/Grid/Core/Table/Actions/ColumnFiltering/FilteringTypes.d.ts +3 -3
  62. package/es-modules/Grid/Core/Table/Actions/ColumnSorting.d.ts +3 -5
  63. package/es-modules/Grid/Core/Table/Actions/ColumnSorting.js +1 -5
  64. package/es-modules/Grid/Core/Table/Body/TableCell.d.ts +14 -10
  65. package/es-modules/Grid/Core/Table/Body/TableCell.js +19 -21
  66. package/es-modules/Grid/Core/Table/Body/TableRow.d.ts +0 -2
  67. package/es-modules/Grid/Core/Table/Cell.js +30 -0
  68. package/es-modules/Grid/Core/Table/CellContent/TextContent.d.ts +2 -7
  69. package/es-modules/Grid/Core/Table/CellContent/TextContent.js +25 -14
  70. package/es-modules/Grid/Core/Table/Column.d.ts +7 -9
  71. package/es-modules/Grid/Core/Table/Column.js +23 -1
  72. package/es-modules/Grid/Core/Table/ColumnResizing/AdjacentResizingMode.js +2 -2
  73. package/es-modules/Grid/Core/Table/ColumnResizing/ColumnResizing.d.ts +30 -23
  74. package/es-modules/Grid/Core/Table/ColumnResizing/ColumnResizing.js +39 -39
  75. package/es-modules/Grid/Core/Table/ColumnResizing/DistributedResizingMode.js +1 -1
  76. package/es-modules/Grid/Core/Table/ColumnResizing/IndependentResizingMode.js +2 -2
  77. package/es-modules/Grid/Core/Table/ColumnResizing/ResizingMode.d.ts +6 -1
  78. package/es-modules/Grid/Core/Table/Header/ColumnToolbar/ColumnToolbar.js +10 -0
  79. package/es-modules/Grid/Core/Table/Header/ColumnToolbar/FilterPopup.d.ts +2 -2
  80. package/es-modules/Grid/Core/Table/Header/ColumnToolbar/StateHelpers.d.ts +26 -24
  81. package/es-modules/Grid/Core/Table/Header/ColumnToolbar/StateHelpers.js +37 -39
  82. package/es-modules/Grid/Core/Table/Header/ColumnToolbar/ToolbarButtons/FilterToolbarButton.d.ts +1 -1
  83. package/es-modules/Grid/Core/Table/Header/ColumnToolbar/ToolbarButtons/MenuToolbarButton.d.ts +1 -1
  84. package/es-modules/Grid/Core/Table/Header/ColumnToolbar/ToolbarButtons/SortToolbarButton.d.ts +1 -1
  85. package/es-modules/Grid/Core/Table/Header/HeaderRow.d.ts +0 -2
  86. package/es-modules/Grid/Core/Table/Header/TableHeader.d.ts +0 -2
  87. package/es-modules/Grid/Core/Table/Table.d.ts +11 -13
  88. package/es-modules/Grid/Core/Table/Table.js +9 -5
  89. package/es-modules/Grid/Core/UI/Button.d.ts +1 -1
  90. package/es-modules/Grid/Core/UI/ContextMenu.d.ts +1 -1
  91. package/es-modules/Grid/Core/UI/ContextMenu.js +1 -1
  92. package/es-modules/Grid/Core/UI/ContextMenuButton.d.ts +39 -44
  93. package/es-modules/Grid/Core/UI/ContextMenuButton.js +4 -4
  94. package/es-modules/Grid/Core/UI/Popup.d.ts +17 -19
  95. package/es-modules/Grid/Core/UI/Popup.js +2 -1
  96. package/es-modules/Grid/Core/UI/SvgIcons.d.ts +49 -50
  97. package/es-modules/Grid/Core/UI/SvgIcons.js +114 -123
  98. package/es-modules/Grid/Core/UI/ToolbarButton.d.ts +46 -52
  99. package/es-modules/Grid/Core/UI/ToolbarButton.js +4 -3
  100. package/es-modules/Grid/Pro/CellEditing/CellEditing.d.ts +6 -8
  101. package/es-modules/Grid/Pro/CellEditing/CellEditing.js +8 -11
  102. package/es-modules/Grid/Pro/CellEditing/CellEditingComposition.d.ts +27 -1
  103. package/es-modules/Grid/Pro/CellEditing/CellEditingComposition.js +149 -149
  104. package/es-modules/Grid/Pro/CellRendering/CellRenderer.d.ts +18 -20
  105. package/es-modules/Grid/Pro/CellRendering/CellRenderer.js +1 -1
  106. package/es-modules/Grid/Pro/CellRendering/CellRendererRegistry.d.ts +19 -17
  107. package/es-modules/Grid/Pro/CellRendering/CellRendererRegistry.js +28 -34
  108. package/es-modules/Grid/Pro/CellRendering/CellRenderersComposition.d.ts +12 -1
  109. package/es-modules/Grid/Pro/CellRendering/CellRenderersComposition.js +41 -46
  110. package/es-modules/Grid/Pro/CellRendering/ContentTypes/CheckboxContent.js +2 -2
  111. package/es-modules/Grid/Pro/CellRendering/ContentTypes/DateInputContent.d.ts +2 -2
  112. package/es-modules/Grid/Pro/CellRendering/ContentTypes/DateInputContentBase.d.ts +2 -2
  113. package/es-modules/Grid/Pro/CellRendering/ContentTypes/DateInputContentBase.js +4 -2
  114. package/es-modules/Grid/Pro/CellRendering/ContentTypes/DateTimeInputContent.d.ts +2 -2
  115. package/es-modules/Grid/Pro/CellRendering/ContentTypes/NumberInputContent.js +3 -1
  116. package/es-modules/Grid/Pro/CellRendering/ContentTypes/SelectContent.js +3 -1
  117. package/es-modules/Grid/Pro/CellRendering/ContentTypes/SparklineContent.d.ts +19 -8
  118. package/es-modules/Grid/Pro/CellRendering/ContentTypes/SparklineContent.js +17 -13
  119. package/es-modules/Grid/Pro/CellRendering/ContentTypes/TextInputContent.js +3 -1
  120. package/es-modules/Grid/Pro/CellRendering/ContentTypes/TimeInputContent.d.ts +2 -2
  121. package/es-modules/Grid/Pro/CellRendering/Renderers/CheckboxRenderer.d.ts +18 -20
  122. package/es-modules/Grid/Pro/CellRendering/Renderers/CheckboxRenderer.js +3 -3
  123. package/es-modules/Grid/Pro/CellRendering/Renderers/DateInputRenderer.d.ts +10 -12
  124. package/es-modules/Grid/Pro/CellRendering/Renderers/DateInputRenderer.js +3 -3
  125. package/es-modules/Grid/Pro/CellRendering/Renderers/DateInputRendererBase.d.ts +17 -20
  126. package/es-modules/Grid/Pro/CellRendering/Renderers/DateTimeInputRenderer.d.ts +10 -12
  127. package/es-modules/Grid/Pro/CellRendering/Renderers/DateTimeInputRenderer.js +3 -3
  128. package/es-modules/Grid/Pro/CellRendering/Renderers/NumberInputRenderer.d.ts +20 -22
  129. package/es-modules/Grid/Pro/CellRendering/Renderers/NumberInputRenderer.js +3 -3
  130. package/es-modules/Grid/Pro/CellRendering/Renderers/SelectRenderer.d.ts +40 -42
  131. package/es-modules/Grid/Pro/CellRendering/Renderers/SelectRenderer.js +3 -3
  132. package/es-modules/Grid/Pro/CellRendering/Renderers/SparklineRenderer.d.ts +16 -18
  133. package/es-modules/Grid/Pro/CellRendering/Renderers/SparklineRenderer.js +14 -22
  134. package/es-modules/Grid/Pro/CellRendering/Renderers/TextInputRenderer.d.ts +22 -24
  135. package/es-modules/Grid/Pro/CellRendering/Renderers/TextInputRenderer.js +3 -3
  136. package/es-modules/Grid/Pro/CellRendering/Renderers/TextRenderer.d.ts +10 -12
  137. package/es-modules/Grid/Pro/CellRendering/Renderers/TextRenderer.js +3 -3
  138. package/es-modules/Grid/Pro/CellRendering/Renderers/TimeInputRenderer.d.ts +10 -12
  139. package/es-modules/Grid/Pro/CellRendering/Renderers/TimeInputRenderer.js +3 -3
  140. package/es-modules/Grid/Pro/ColumnTypes/Validator.d.ts +46 -51
  141. package/es-modules/Grid/Pro/ColumnTypes/Validator.js +62 -77
  142. package/es-modules/Grid/Pro/ColumnTypes/ValidatorComposition.d.ts +16 -3
  143. package/es-modules/Grid/Pro/ColumnTypes/ValidatorComposition.js +26 -31
  144. package/es-modules/Grid/Pro/Credits/CreditsPro.d.ts +0 -2
  145. package/es-modules/Grid/Pro/Credits/CreditsProComposition.d.ts +12 -11
  146. package/es-modules/Grid/Pro/Credits/CreditsProComposition.js +29 -31
  147. package/es-modules/Grid/Pro/Export/Exporting.d.ts +3 -3
  148. package/es-modules/Grid/Pro/Export/Exporting.js +35 -29
  149. package/es-modules/Grid/Pro/Export/ExportingComposition.d.ts +12 -11
  150. package/es-modules/Grid/Pro/Export/ExportingComposition.js +24 -26
  151. package/es-modules/Grid/Pro/GridEvents.d.ts +19 -1
  152. package/es-modules/Grid/Pro/GridEvents.js +6 -2
  153. package/es-modules/Grid/Pro/Pagination/PaginationComposition.d.ts +4 -11
  154. package/es-modules/Grid/Pro/Pagination/PaginationComposition.js +44 -45
  155. package/es-modules/Grid/index.d.ts +1 -0
  156. package/es-modules/masters/grid-pro.src.d.ts +62 -37
  157. package/es-modules/masters/grid-pro.src.js +37 -39
  158. package/grid-pro.d.ts +122 -48
  159. package/grid-pro.js +3 -6
  160. package/grid-pro.js.map +1 -1
  161. package/grid-pro.src.d.ts +122 -48
  162. package/grid-pro.src.js +6645 -6270
  163. package/package.json +13 -4
  164. package/es-modules/Grid/Pro/ColumnTypes/ColumnDataType.d.ts +0 -29
@@ -0,0 +1,42 @@
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 Position3DObject from '../../Renderer/Position3DObject';
18
+ import type SVGAttributes from './SVGAttributes';
19
+
20
+ /* *
21
+ *
22
+ * Declarations
23
+ *
24
+ * */
25
+
26
+ interface SVGAttributes3D extends SVGAttributes {
27
+ alpha?: number;
28
+ beta?: number;
29
+ center?: number;
30
+ enabled?: (boolean|'auto'|'default');
31
+ faces?: Array<SVGAttributes3D>;
32
+ insidePlotArea?: boolean;
33
+ vertexes?: Array<Position3DObject>;
34
+ }
35
+
36
+ /* *
37
+ *
38
+ * Default Export
39
+ *
40
+ * */
41
+
42
+ export default SVGAttributes3D;
@@ -0,0 +1,42 @@
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 SVGPath from './SVGPath';
18
+ import type SVGPath3D from './SVGPath3D';
19
+
20
+ /* *
21
+ *
22
+ * Declarations
23
+ *
24
+ * */
25
+
26
+ export interface SVGCuboid extends SVGPath3D {
27
+ front: SVGPath;
28
+ isFront: number;
29
+ isTop: number;
30
+ side: SVGPath;
31
+ top: SVGPath;
32
+ zIndexes: Record<string, number>;
33
+ forcedSides?: Array<string>;
34
+ }
35
+
36
+ /* *
37
+ *
38
+ * Default Export
39
+ *
40
+ * */
41
+
42
+ export default SVGCuboid;
@@ -0,0 +1,31 @@
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
+ /**
18
+ * Optional properties for the SVGElement class. Should be defined outside of
19
+ * this file by `declare module` pattern.
20
+ */
21
+ export interface SVGElementBase {
22
+ [key: string]: any;
23
+ }
24
+
25
+ /* *
26
+ *
27
+ * Default Export
28
+ *
29
+ * */
30
+
31
+ export default SVGElementBase;
@@ -0,0 +1,97 @@
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 interface SVGPath extends globalThis.Array<SVGPath.Segment> {
18
+ isFlat?: boolean;
19
+ xBounds?: Array<number>;
20
+ yBounds?: Array<number>;
21
+ xMap?: Array<number|null>;
22
+ }
23
+
24
+ /* *
25
+ *
26
+ * Namespace
27
+ *
28
+ * */
29
+
30
+ export namespace SVGPath {
31
+
32
+ /* *
33
+ *
34
+ * Declarations
35
+ *
36
+ * */
37
+ type ArcParams = {
38
+ cx: number,
39
+ cy: number,
40
+ start: number,
41
+ end: number
42
+ };
43
+ type ArcArray = [
44
+ 'A'|'a',
45
+ number,
46
+ number,
47
+ number,
48
+ number,
49
+ number,
50
+ number,
51
+ number
52
+ ];
53
+ export interface Arc extends ArcArray {
54
+ params?: ArcParams
55
+ }
56
+
57
+ export type Close = ['Z'|'z'];
58
+ export type CurveTo = [
59
+ 'C'|'c',
60
+ number,
61
+ number,
62
+ number,
63
+ number,
64
+ number,
65
+ number
66
+ ];
67
+ export type HorizontalLineTo = ['H'|'h', number];
68
+ export type LineTo = ['L'|'l', number, number];
69
+ export type MoveTo = ['M'|'m', number, number];
70
+ export type QuadTo = ['Q'|'q', number, number, number, number];
71
+ export type CurveSmoothTo = ['S'|'s', number, number, number, number];
72
+ export type QuadSmoothTo = ['T'|'t', number, number];
73
+ export type VerticalLineTo = ['V'|'v', number];
74
+
75
+ export type Segment = SegmentRegistry[keyof SegmentRegistry];
76
+ export interface SegmentRegistry {
77
+ Arc: Arc;
78
+ Close: Close;
79
+ CurveTo: CurveTo;
80
+ CurveSmoothTo: CurveSmoothTo;
81
+ HorizontalLineTo: HorizontalLineTo;
82
+ LineTo: LineTo;
83
+ MoveTo: MoveTo;
84
+ QuadSmoothTo: QuadSmoothTo;
85
+ QuadTo: QuadTo;
86
+ VerticalLineTo: VerticalLineTo;
87
+ }
88
+
89
+ }
90
+
91
+ /* *
92
+ *
93
+ * Default Export
94
+ *
95
+ * */
96
+
97
+ export default SVGPath;
@@ -0,0 +1,40 @@
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 SVGPath from './SVGPath';
18
+
19
+ /* *
20
+ *
21
+ * Declarations
22
+ *
23
+ * */
24
+
25
+ export interface SVGPath3D {
26
+ back?: SVGPath;
27
+ bottom?: SVGPath;
28
+ front?: SVGPath;
29
+ side?: SVGPath;
30
+ top?: SVGPath;
31
+ zIndexes?: Record<string, number>;
32
+ }
33
+
34
+ /* *
35
+ *
36
+ * Default Export
37
+ *
38
+ * */
39
+
40
+ export default SVGPath3D;
@@ -0,0 +1,31 @@
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
+ /**
18
+ * Optional properties for the SVGElement class. Should be defined outside of
19
+ * this file by `declare module` pattern.
20
+ */
21
+ export interface SVGRendererBase {
22
+ // Nothing here yet
23
+ }
24
+
25
+ /* *
26
+ *
27
+ * Default Export
28
+ *
29
+ * */
30
+
31
+ export default SVGRendererBase;
@@ -0,0 +1,41 @@
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 interface SymbolOptions {
18
+ anchorX?: number;
19
+ anchorY?: number;
20
+ backgroundSize?: ('contain'|'cover'|'within');
21
+ context?: 'legend';
22
+ clockwise?: (0|1);
23
+ end?: number;
24
+ height?: number;
25
+ innerR?: number;
26
+ longArc?: (0|1);
27
+ open?: boolean;
28
+ r?: number;
29
+ start?: number;
30
+ width?: number;
31
+ x?: number;
32
+ y?: number;
33
+ }
34
+
35
+ /* *
36
+ *
37
+ * Default Export
38
+ *
39
+ * */
40
+
41
+ export default SymbolOptions;
@@ -0,0 +1,50 @@
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 SVGPath from './SVGPath';
18
+ import type SymbolOptions from './SymbolOptions';
19
+
20
+ /* *
21
+ *
22
+ * Declarations
23
+ *
24
+ * */
25
+
26
+ export interface SymbolFunction {
27
+ (
28
+ x: number,
29
+ y: number,
30
+ width: number,
31
+ height: number,
32
+ options?: SymbolOptions
33
+ ): SVGPath;
34
+ }
35
+
36
+ export type SymbolKey = keyof SymbolTypeRegistry;
37
+
38
+ export type SymbolType = SymbolTypeRegistry[SymbolKey];
39
+
40
+ export interface SymbolTypeRegistry {
41
+ // Add with declare module pattern
42
+ }
43
+
44
+ /* *
45
+ *
46
+ * Default Export
47
+ *
48
+ * */
49
+
50
+ export default SymbolType;
@@ -0,0 +1,40 @@
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 '../Color/ColorString';
18
+
19
+ /* *
20
+ *
21
+ * Declarations
22
+ *
23
+ * */
24
+
25
+ export interface ShadowOptionsObject {
26
+ color: ColorString;
27
+ filterUnits?: string;
28
+ offsetX: number;
29
+ offsetY: number;
30
+ opacity: number;
31
+ width: number;
32
+ }
33
+
34
+ /* *
35
+ *
36
+ * Default Export
37
+ *
38
+ * */
39
+
40
+ export default ShadowOptionsObject;
@@ -0,0 +1,28 @@
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 interface SizeObject {
18
+ height: number;
19
+ width: number;
20
+ }
21
+
22
+ /* *
23
+ *
24
+ * Default Export
25
+ *
26
+ * */
27
+
28
+ export default SizeObject;
@@ -127,12 +127,13 @@ function dateFormat(format, timestamp, upperCaseFirst) {
127
127
  * The formatted string.
128
128
  */
129
129
  function format(str = '', ctx, owner) {
130
- // Notice: using u flag will require a refactor for ES5 (#22450).
131
- const regex = /\{([a-zA-Z\u00C0-\u017F\d:\.,;\-\/<>\[\]%_@+"'’= #\(\)]+)\}/g, // eslint-disable-line max-len
130
+ // eslint-disable-next-line prefer-regex-literals
131
+ const regex = new RegExp('\\{([\\p{L}\\d:\\.,;\\-\\/<>\\[\\]%_@+"\'’= #\\(\\)]+)\\}', 'gu'),
132
132
  // The sub expression regex is the same as the top expression regex,
133
133
  // but except parens and block helpers (#), and surrounded by parens
134
134
  // instead of curly brackets.
135
- subRegex = /\(([a-zA-Z\u00C0-\u017F\d:\.,;\-\/<>\[\]%_@+"'= ]+)\)/g, matches = [], floatRegex = /f$/, decRegex = /\.(\d)/, lang = owner?.options?.lang || defaultOptions.lang, time = owner?.time || defaultTime, numberFormatter = owner?.numberFormatter || numberFormat.bind(owner);
135
+ // eslint-disable-next-line prefer-regex-literals
136
+ subRegex = new RegExp('\\(([\\p{L}\\d:\\.,;\\-\\/<>\\[\\]%_@+"\'= ]+)\\)', 'gu'), matches = [], floatRegex = /f$/, decRegex = /\.(\d)/, lang = owner?.options?.lang || defaultOptions.lang, time = owner?.time || defaultTime, numberFormatter = owner?.numberFormatter || numberFormat.bind(owner);
136
137
  /*
137
138
  * Get a literal or variable value inside a template expression. May be
138
139
  * extended with other types like string or null if needed, but keep it
@@ -267,11 +268,9 @@ function format(str = '', ctx, owner) {
267
268
  [expression] : expression.split(':');
268
269
  replacement = resolveProperty(valueAndFormat.shift() || '');
269
270
  // Format the replacement
270
- const isFloat = replacement % 1 !== 0;
271
- if (typeof replacement === 'number' &&
272
- (valueAndFormat.length || isFloat)) {
271
+ if (valueAndFormat.length && typeof replacement === 'number') {
273
272
  const segment = valueAndFormat.join(':');
274
- if (floatRegex.test(segment) || isFloat) { // Float
273
+ if (floatRegex.test(segment)) { // Float
275
274
  const decimals = parseInt((segment.match(decRegex) || ['', '-1'])[1], 10);
276
275
  if (replacement !== null) {
277
276
  replacement = numberFormatter(replacement, decimals, lang.decimalPoint, segment.indexOf(',') > -1 ? lang.thousandsSep : '');
@@ -62,7 +62,7 @@ class DataConnector {
62
62
  let dataTableIndex = 0;
63
63
  if (options.options) {
64
64
  // eslint-disable-next-line no-console
65
- console.error('The `DataConnectorOptions.options` property was removed in Dashboards v4.0.0. Check how to upgrade your connector to use the new options structure here: https://api.highcharts.com/dashboards/#interfaces/Data_DataTableOptions.DataTableOptions-1');
65
+ console.error('The `DataConnectorOptions.options` property was removed in Dashboards v4.0.0. Check how to upgrade your connector to use the new options structure here: https://api.highcharts.com/dashboards/#interfaces/Data_DataTableOptions.DataTableOptions');
66
66
  }
67
67
  if (dataTables && dataTables?.length > 0) {
68
68
  for (let i = 0, iEnd = dataTables.length; i < iEnd; ++i) {
@@ -74,9 +74,10 @@ class DataConnector {
74
74
  dataTableIndex++;
75
75
  }
76
76
  }
77
- // If user options dataTables is not defined, generate a default table.
78
77
  }
79
78
  else {
79
+ // If user options dataTables is not defined, generate a default
80
+ // table.
80
81
  this.dataTables[0] = new DataTable({
81
82
  id: options.id // Required by DataTableCore
82
83
  });
@@ -45,7 +45,7 @@ export interface DataConnectorOptions {
45
45
  * @deprecated
46
46
  * Removed in Dashboards v4.0.0
47
47
  *
48
- * {@link https://api.highcharts.com/dashboards/#interfaces/Data_Connectors_DataConnectorOptions.DataConnectorOptions-1 | Check how to upgrade your connector to use the new options structure}
48
+ * {@link https://api.highcharts.com/dashboards/#interfaces/Data_Connectors_DataConnectorOptions.DataConnectorOptions | Check how to upgrade your connector to use the new options structure}
49
49
  */
50
50
  options?: never;
51
51
  }
@@ -431,7 +431,7 @@ declare class DataTable extends DataTableCore implements DataEvent.Emitter<DataT
431
431
  * Cell values to set.
432
432
  *
433
433
  * @param {number} [rowIndex]
434
- * Index of the row to set. Leave `undefind` to add as a new row.
434
+ * Index of the row to set. Leave `undefined` to add as a new row.
435
435
  *
436
436
  * @param {boolean} [insert]
437
437
  * Whether to insert the row at the given index, or to overwrite the row.
@@ -84,6 +84,7 @@ class DataTable extends DataTableCore {
84
84
  tableClone.originalRowIndexes = table.originalRowIndexes;
85
85
  tableClone.localRowIndexes = table.localRowIndexes;
86
86
  }
87
+ tableClone.metadata = { ...table.metadata };
87
88
  table.emit({
88
89
  type: 'afterCloneTable',
89
90
  detail: eventDetail,
@@ -833,7 +834,7 @@ class DataTable extends DataTableCore {
833
834
  * Cell values to set.
834
835
  *
835
836
  * @param {number} [rowIndex]
836
- * Index of the row to set. Leave `undefind` to add as a new row.
837
+ * Index of the row to set. Leave `undefined` to add as a new row.
837
838
  *
838
839
  * @param {boolean} [insert]
839
840
  * Whether to insert the row at the given index, or to overwrite the row.
@@ -897,7 +898,7 @@ class DataTable extends DataTableCore {
897
898
  }
898
899
  }
899
900
  else {
900
- super.setRow(row, i2, void 0, { silent: true });
901
+ super.setRow(row, i2, insert, { silent: true });
901
902
  }
902
903
  }
903
904
  const indexRowCount = insert ?
@@ -242,16 +242,25 @@ class DataTableCore {
242
242
  * @emits #afterSetRows
243
243
  */
244
244
  setRow(row, rowIndex = this.rowCount, insert, eventDetail) {
245
- const { columns } = this, indexRowCount = insert ? this.rowCount + 1 : rowIndex + 1;
246
- objectEach(row, (cellValue, columnId) => {
247
- let column = columns[columnId] ||
248
- eventDetail?.addColumns !== false && new Array(indexRowCount);
245
+ const { columns } = this, indexRowCount = insert ? this.rowCount + 1 : rowIndex + 1, rowKeys = Object.keys(row);
246
+ if (eventDetail?.addColumns !== false) {
247
+ for (let i = 0, iEnd = rowKeys.length; i < iEnd; i++) {
248
+ const key = rowKeys[i];
249
+ if (!columns[key]) {
250
+ columns[key] = [];
251
+ }
252
+ }
253
+ }
254
+ objectEach(columns, (column, columnId) => {
255
+ if (!column && eventDetail?.addColumns !== false) {
256
+ column = new Array(indexRowCount);
257
+ }
249
258
  if (column) {
250
259
  if (insert) {
251
- column = splice(column, rowIndex, 0, true, [cellValue]).array;
260
+ column = splice(column, rowIndex, 0, true, [row[columnId] ?? null]).array;
252
261
  }
253
262
  else {
254
- column[rowIndex] = cellValue;
263
+ column[rowIndex] = row[columnId] ?? null;
255
264
  }
256
265
  columns[columnId] = column;
257
266
  }
@@ -64,7 +64,7 @@ declare class Accessibility {
64
64
  * @param state
65
65
  * The sort state to be set for the column header cell.
66
66
  */
67
- setColumnSortState(thElement: HTMLElement, state: Accessibility.AriaSortState): void;
67
+ setColumnSortState(thElement: HTMLElement, state: AriaSortState): void;
68
68
  /**
69
69
  * Announce the message to the screen reader that the user filtered the
70
70
  * column.
@@ -75,7 +75,7 @@ declare class Accessibility {
75
75
  * @param filteringApplied
76
76
  * Whether the filtering was applied or cleared.
77
77
  */
78
- userFilteredColumn(filteredColumnValues: Accessibility.FilteredColumnValues, filteringApplied: boolean): void;
78
+ userFilteredColumn(filteredColumnValues: FilteredColumnValues, filteringApplied: boolean): void;
79
79
  /**
80
80
  * Adds high contrast CSS class, if the browser is in High Contrast mode.
81
81
  */
@@ -99,17 +99,15 @@ declare class Accessibility {
99
99
  */
100
100
  destroy(): void;
101
101
  }
102
- declare namespace Accessibility {
103
- /**
104
- * The possible states of the aria-sort attribute.
105
- */
106
- type AriaSortState = 'ascending' | 'descending' | 'none';
107
- /**
108
- * The values of the filtered column.
109
- */
110
- type FilteredColumnValues = FilteringCondition & {
111
- columnId: string;
112
- rowsCount: number;
113
- };
114
- }
102
+ /**
103
+ * The possible states of the aria-sort attribute.
104
+ */
105
+ export type AriaSortState = 'ascending' | 'descending' | 'none';
106
+ /**
107
+ * The values of the filtered column.
108
+ */
109
+ export type FilteredColumnValues = FilteringCondition & {
110
+ columnId: string;
111
+ rowsCount: number;
112
+ };
115
113
  export default Accessibility;
@@ -52,6 +52,4 @@ declare class Credits {
52
52
  */
53
53
  destroy(): void;
54
54
  }
55
- declare namespace Credits {
56
- }
57
55
  export default Credits;
@@ -1,20 +1,23 @@
1
- import type Options from './Options';
1
+ import type { Options, LangOptions } from './Options';
2
2
  import type { DeepPartial } from '../../Shared/Types';
3
3
  /**
4
- * Namespace for default options.
4
+ * Default language options for the Grid.
5
5
  */
6
- declare namespace Defaults {
7
- /**
8
- * Default options for the Grid.
9
- */
10
- const defaultOptions: DeepPartial<Options>;
11
- /**
12
- * Merge the default options with custom options. Commonly used for defining
13
- * reusable templates.
14
- *
15
- * @param options
16
- * The new custom chart options.
17
- */
18
- function setOptions(options: DeepPartial<Options>): void;
19
- }
20
- export default Defaults;
6
+ export declare const defaultLangOptions: DeepPartial<LangOptions>;
7
+ /**
8
+ * Default options for the Grid.
9
+ */
10
+ export declare const defaultOptions: DeepPartial<Options>;
11
+ /**
12
+ * Merge the default options with custom options. Commonly used for defining
13
+ * reusable templates.
14
+ *
15
+ * @param options
16
+ * The new custom grid options.
17
+ */
18
+ export declare function setOptions(options: DeepPartial<Options>): void;
19
+ declare const _default: {
20
+ readonly defaultOptions: DeepPartial<Options>;
21
+ readonly setOptions: typeof setOptions;
22
+ };
23
+ export default _default;