@highcharts/grid-pro 2.0.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 (442) hide show
  1. package/README.md +35 -0
  2. package/css/grid-pro.css +1756 -0
  3. package/es-modules/Accessibility/A11yI18n.d.ts +95 -0
  4. package/es-modules/Accessibility/A11yI18n.js +290 -0
  5. package/es-modules/Accessibility/Accessibility.d.ts +116 -0
  6. package/es-modules/Accessibility/Accessibility.js +402 -0
  7. package/es-modules/Accessibility/AccessibilityComponent.d.ts +97 -0
  8. package/es-modules/Accessibility/AccessibilityComponent.js +147 -0
  9. package/es-modules/Accessibility/Components/AnnotationsA11y.d.ts +43 -0
  10. package/es-modules/Accessibility/Components/AnnotationsA11y.js +160 -0
  11. package/es-modules/Accessibility/Components/ContainerComponent.d.ts +48 -0
  12. package/es-modules/Accessibility/Components/ContainerComponent.js +142 -0
  13. package/es-modules/Accessibility/Components/InfoRegionsComponent.d.ts +144 -0
  14. package/es-modules/Accessibility/Components/InfoRegionsComponent.js +555 -0
  15. package/es-modules/Accessibility/Components/LegendComponent.d.ts +124 -0
  16. package/es-modules/Accessibility/Components/LegendComponent.js +474 -0
  17. package/es-modules/Accessibility/Components/MenuComponent.d.ts +93 -0
  18. package/es-modules/Accessibility/Components/MenuComponent.js +430 -0
  19. package/es-modules/Accessibility/Components/NavigatorComponent.d.ts +57 -0
  20. package/es-modules/Accessibility/Components/NavigatorComponent.js +235 -0
  21. package/es-modules/Accessibility/Components/RangeSelectorComponent.d.ts +126 -0
  22. package/es-modules/Accessibility/Components/RangeSelectorComponent.js +473 -0
  23. package/es-modules/Accessibility/Components/SeriesComponent/ForcedMarkers.d.ts +18 -0
  24. package/es-modules/Accessibility/Components/SeriesComponent/ForcedMarkers.js +234 -0
  25. package/es-modules/Accessibility/Components/SeriesComponent/NewDataAnnouncer.d.ts +87 -0
  26. package/es-modules/Accessibility/Components/SeriesComponent/NewDataAnnouncer.js +309 -0
  27. package/es-modules/Accessibility/Components/SeriesComponent/SeriesComponent.d.ts +53 -0
  28. package/es-modules/Accessibility/Components/SeriesComponent/SeriesComponent.js +130 -0
  29. package/es-modules/Accessibility/Components/SeriesComponent/SeriesDescriber.d.ts +28 -0
  30. package/es-modules/Accessibility/Components/SeriesComponent/SeriesDescriber.js +415 -0
  31. package/es-modules/Accessibility/Components/SeriesComponent/SeriesKeyboardNavigation.d.ts +114 -0
  32. package/es-modules/Accessibility/Components/SeriesComponent/SeriesKeyboardNavigation.js +721 -0
  33. package/es-modules/Accessibility/Components/ZoomComponent.d.ts +96 -0
  34. package/es-modules/Accessibility/Components/ZoomComponent.js +314 -0
  35. package/es-modules/Accessibility/FocusBorder.d.ts +40 -0
  36. package/es-modules/Accessibility/FocusBorder.js +301 -0
  37. package/es-modules/Accessibility/HighContrastMode.d.ts +35 -0
  38. package/es-modules/Accessibility/HighContrastMode.js +100 -0
  39. package/es-modules/Accessibility/HighContrastTheme.d.ts +11 -0
  40. package/es-modules/Accessibility/HighContrastTheme.js +212 -0
  41. package/es-modules/Accessibility/KeyboardNavigation.d.ts +133 -0
  42. package/es-modules/Accessibility/KeyboardNavigation.js +450 -0
  43. package/es-modules/Accessibility/KeyboardNavigationHandler.d.ts +48 -0
  44. package/es-modules/Accessibility/KeyboardNavigationHandler.js +126 -0
  45. package/es-modules/Accessibility/Options/A11yDefaults.d.ts +68 -0
  46. package/es-modules/Accessibility/Options/A11yDefaults.js +971 -0
  47. package/es-modules/Accessibility/Options/DeprecatedOptions.d.ts +22 -0
  48. package/es-modules/Accessibility/Options/DeprecatedOptions.js +265 -0
  49. package/es-modules/Accessibility/Options/LangDefaults.d.ts +4 -0
  50. package/es-modules/Accessibility/Options/LangDefaults.js +440 -0
  51. package/es-modules/Accessibility/ProxyElement.d.ts +78 -0
  52. package/es-modules/Accessibility/ProxyElement.js +223 -0
  53. package/es-modules/Accessibility/ProxyProvider.d.ts +90 -0
  54. package/es-modules/Accessibility/ProxyProvider.js +315 -0
  55. package/es-modules/Accessibility/Utils/Announcer.d.ts +26 -0
  56. package/es-modules/Accessibility/Utils/Announcer.js +90 -0
  57. package/es-modules/Accessibility/Utils/ChartUtilities.d.ts +90 -0
  58. package/es-modules/Accessibility/Utils/ChartUtilities.js +298 -0
  59. package/es-modules/Accessibility/Utils/DOMElementProvider.d.ts +20 -0
  60. package/es-modules/Accessibility/Utils/DOMElementProvider.js +69 -0
  61. package/es-modules/Accessibility/Utils/EventProvider.d.ts +26 -0
  62. package/es-modules/Accessibility/Utils/EventProvider.js +65 -0
  63. package/es-modules/Accessibility/Utils/HTMLUtilities.d.ts +108 -0
  64. package/es-modules/Accessibility/Utils/HTMLUtilities.js +319 -0
  65. package/es-modules/Core/Animation/AnimationUtilities.d.ts +107 -0
  66. package/es-modules/Core/Animation/AnimationUtilities.js +200 -0
  67. package/es-modules/Core/Animation/Fx.d.ts +130 -0
  68. package/es-modules/Core/Animation/Fx.js +388 -0
  69. package/es-modules/Core/Chart/Chart.d.ts +1009 -0
  70. package/es-modules/Core/Chart/Chart.js +3008 -0
  71. package/es-modules/Core/Chart/Chart3D.d.ts +276 -0
  72. package/es-modules/Core/Chart/Chart3D.js +1686 -0
  73. package/es-modules/Core/Chart/ChartDefaults.d.ts +8 -0
  74. package/es-modules/Core/Chart/ChartDefaults.js +1304 -0
  75. package/es-modules/Core/Chart/ChartNavigationComposition.d.ts +55 -0
  76. package/es-modules/Core/Chart/ChartNavigationComposition.js +90 -0
  77. package/es-modules/Core/Chart/GanttChart.d.ts +74 -0
  78. package/es-modules/Core/Chart/GanttChart.js +189 -0
  79. package/es-modules/Core/Chart/MapChart.d.ts +132 -0
  80. package/es-modules/Core/Chart/MapChart.js +232 -0
  81. package/es-modules/Core/Chart/StockChart.d.ts +117 -0
  82. package/es-modules/Core/Chart/StockChart.js +641 -0
  83. package/es-modules/Core/Color/Color.d.ts +112 -0
  84. package/es-modules/Core/Color/Color.js +418 -0
  85. package/es-modules/Core/Color/Palettes.d.ts +84 -0
  86. package/es-modules/Core/Color/Palettes.js +23 -0
  87. package/es-modules/Core/Defaults.d.ts +42 -0
  88. package/es-modules/Core/Defaults.js +2977 -0
  89. package/es-modules/Core/Foundation.d.ts +19 -0
  90. package/es-modules/Core/Foundation.js +63 -0
  91. package/es-modules/Core/Geometry/CircleUtilities.d.ts +189 -0
  92. package/es-modules/Core/Geometry/CircleUtilities.js +388 -0
  93. package/es-modules/Core/Geometry/GeometryUtilities.d.ts +48 -0
  94. package/es-modules/Core/Geometry/GeometryUtilities.js +105 -0
  95. package/es-modules/Core/Geometry/PolygonClip.d.ts +19 -0
  96. package/es-modules/Core/Geometry/PolygonClip.js +96 -0
  97. package/es-modules/Core/Globals.d.ts +110 -0
  98. package/es-modules/Core/Globals.js +127 -0
  99. package/es-modules/Core/HttpUtilities.d.ts +61 -0
  100. package/es-modules/Core/HttpUtilities.js +214 -0
  101. package/es-modules/Core/MSPointer.d.ts +74 -0
  102. package/es-modules/Core/MSPointer.js +218 -0
  103. package/es-modules/Core/Math3D.d.ts +117 -0
  104. package/es-modules/Core/Math3D.js +250 -0
  105. package/es-modules/Core/Pointer.d.ts +590 -0
  106. package/es-modules/Core/Pointer.js +1631 -0
  107. package/es-modules/Core/Renderer/HTML/AST.d.ts +163 -0
  108. package/es-modules/Core/Renderer/HTML/AST.js +562 -0
  109. package/es-modules/Core/Renderer/HTML/HTMLElement.d.ts +76 -0
  110. package/es-modules/Core/Renderer/HTML/HTMLElement.js +471 -0
  111. package/es-modules/Core/Renderer/RendererRegistry.d.ts +29 -0
  112. package/es-modules/Core/Renderer/RendererRegistry.js +76 -0
  113. package/es-modules/Core/Renderer/RendererUtilities.d.ts +26 -0
  114. package/es-modules/Core/Renderer/RendererUtilities.js +172 -0
  115. package/es-modules/Core/Responsive.d.ts +55 -0
  116. package/es-modules/Core/Responsive.js +260 -0
  117. package/es-modules/Core/Templating.d.ts +125 -0
  118. package/es-modules/Core/Templating.js +428 -0
  119. package/es-modules/Core/Time.d.ts +69 -0
  120. package/es-modules/Core/Time.js +172 -0
  121. package/es-modules/Core/Tooltip.d.ts +297 -0
  122. package/es-modules/Core/Tooltip.js +1377 -0
  123. package/es-modules/Core/Utilities.d.ts +770 -0
  124. package/es-modules/Core/Utilities.js +1989 -0
  125. package/es-modules/Data/ColumnUtils.d.ts +87 -0
  126. package/es-modules/Data/ColumnUtils.js +140 -0
  127. package/es-modules/Data/Connectors/CSVConnector.d.ts +63 -0
  128. package/es-modules/Data/Connectors/CSVConnector.js +149 -0
  129. package/es-modules/Data/Connectors/CSVConnectorOptions.d.ts +149 -0
  130. package/es-modules/Data/Connectors/DataConnector.d.ts +204 -0
  131. package/es-modules/Data/Connectors/DataConnector.js +345 -0
  132. package/es-modules/Data/Connectors/DataConnectorOptions.d.ts +87 -0
  133. package/es-modules/Data/Connectors/DataConnectorType.d.ts +45 -0
  134. package/es-modules/Data/Connectors/GoogleSheetsConnector.d.ts +65 -0
  135. package/es-modules/Data/Connectors/GoogleSheetsConnector.js +226 -0
  136. package/es-modules/Data/Connectors/GoogleSheetsConnectorOptions.d.ts +167 -0
  137. package/es-modules/Data/Connectors/HTMLTableConnector.d.ts +77 -0
  138. package/es-modules/Data/Connectors/HTMLTableConnector.js +119 -0
  139. package/es-modules/Data/Connectors/HTMLTableConnectorOptions.d.ts +49 -0
  140. package/es-modules/Data/Connectors/JSONConnector.d.ts +64 -0
  141. package/es-modules/Data/Connectors/JSONConnector.js +156 -0
  142. package/es-modules/Data/Connectors/JSONConnectorOptions.d.ts +185 -0
  143. package/es-modules/Data/Converters/CSVConverter.d.ts +64 -0
  144. package/es-modules/Data/Converters/CSVConverter.js +374 -0
  145. package/es-modules/Data/Converters/CSVConverterOptions.d.ts +53 -0
  146. package/es-modules/Data/Converters/DataConverter.d.ts +168 -0
  147. package/es-modules/Data/Converters/DataConverter.js +387 -0
  148. package/es-modules/Data/Converters/DataConverterType.d.ts +40 -0
  149. package/es-modules/Data/Converters/DataConverterUtils.d.ts +82 -0
  150. package/es-modules/Data/Converters/DataConverterUtils.js +216 -0
  151. package/es-modules/Data/Converters/GoogleSheetsConverter.d.ts +46 -0
  152. package/es-modules/Data/Converters/GoogleSheetsConverter.js +135 -0
  153. package/es-modules/Data/Converters/GoogleSheetsConverterOptions.d.ts +52 -0
  154. package/es-modules/Data/Converters/HTMLTableConverter.d.ts +72 -0
  155. package/es-modules/Data/Converters/HTMLTableConverter.js +362 -0
  156. package/es-modules/Data/Converters/HTMLTableConverterOptions.d.ts +51 -0
  157. package/es-modules/Data/Converters/JSONConverter.d.ts +99 -0
  158. package/es-modules/Data/Converters/JSONConverter.js +239 -0
  159. package/es-modules/Data/Converters/JSONConverterOptions.d.ts +52 -0
  160. package/es-modules/Data/DataCursor.d.ts +176 -0
  161. package/es-modules/Data/DataCursor.js +379 -0
  162. package/es-modules/Data/DataEvent.d.ts +81 -0
  163. package/es-modules/Data/DataEvent.js +14 -0
  164. package/es-modules/Data/DataPool.d.ts +130 -0
  165. package/es-modules/Data/DataPool.js +257 -0
  166. package/es-modules/Data/DataPoolOptions.d.ts +66 -0
  167. package/es-modules/Data/DataTable.d.ts +563 -0
  168. package/es-modules/Data/DataTable.js +930 -0
  169. package/es-modules/Data/DataTableCore.d.ts +165 -0
  170. package/es-modules/Data/DataTableCore.js +316 -0
  171. package/es-modules/Data/DataTableOptions.d.ts +25 -0
  172. package/es-modules/Data/DataTableOptions.js +15 -0
  173. package/es-modules/Data/Formula/Formula.d.ts +21 -0
  174. package/es-modules/Data/Formula/Formula.js +54 -0
  175. package/es-modules/Data/Formula/FormulaParser.d.ts +31 -0
  176. package/es-modules/Data/Formula/FormulaParser.js +488 -0
  177. package/es-modules/Data/Formula/FormulaProcessor.d.ts +155 -0
  178. package/es-modules/Data/Formula/FormulaProcessor.js +529 -0
  179. package/es-modules/Data/Formula/FormulaTypes.d.ts +138 -0
  180. package/es-modules/Data/Formula/FormulaTypes.js +135 -0
  181. package/es-modules/Data/Formula/Functions/ABS.d.ts +19 -0
  182. package/es-modules/Data/Formula/Functions/ABS.js +67 -0
  183. package/es-modules/Data/Formula/Functions/AND.d.ts +20 -0
  184. package/es-modules/Data/Formula/Functions/AND.js +59 -0
  185. package/es-modules/Data/Formula/Functions/AVERAGE.d.ts +20 -0
  186. package/es-modules/Data/Formula/Functions/AVERAGE.js +74 -0
  187. package/es-modules/Data/Formula/Functions/AVERAGEA.d.ts +20 -0
  188. package/es-modules/Data/Formula/Functions/AVERAGEA.js +90 -0
  189. package/es-modules/Data/Formula/Functions/COUNT.d.ts +20 -0
  190. package/es-modules/Data/Formula/Functions/COUNT.js +65 -0
  191. package/es-modules/Data/Formula/Functions/COUNTA.d.ts +20 -0
  192. package/es-modules/Data/Formula/Functions/COUNTA.js +71 -0
  193. package/es-modules/Data/Formula/Functions/IF.d.ts +21 -0
  194. package/es-modules/Data/Formula/Functions/IF.js +54 -0
  195. package/es-modules/Data/Formula/Functions/ISNA.d.ts +20 -0
  196. package/es-modules/Data/Formula/Functions/ISNA.js +52 -0
  197. package/es-modules/Data/Formula/Functions/MAX.d.ts +20 -0
  198. package/es-modules/Data/Formula/Functions/MAX.js +69 -0
  199. package/es-modules/Data/Formula/Functions/MEDIAN.d.ts +20 -0
  200. package/es-modules/Data/Formula/Functions/MEDIAN.js +78 -0
  201. package/es-modules/Data/Formula/Functions/MIN.d.ts +20 -0
  202. package/es-modules/Data/Formula/Functions/MIN.js +69 -0
  203. package/es-modules/Data/Formula/Functions/MOD.d.ts +20 -0
  204. package/es-modules/Data/Formula/Functions/MOD.js +63 -0
  205. package/es-modules/Data/Formula/Functions/MODE.d.ts +41 -0
  206. package/es-modules/Data/Formula/Functions/MODE.js +149 -0
  207. package/es-modules/Data/Formula/Functions/NOT.d.ts +20 -0
  208. package/es-modules/Data/Formula/Functions/NOT.js +60 -0
  209. package/es-modules/Data/Formula/Functions/OR.d.ts +20 -0
  210. package/es-modules/Data/Formula/Functions/OR.js +62 -0
  211. package/es-modules/Data/Formula/Functions/PRODUCT.d.ts +20 -0
  212. package/es-modules/Data/Formula/Functions/PRODUCT.js +68 -0
  213. package/es-modules/Data/Formula/Functions/SUM.d.ts +20 -0
  214. package/es-modules/Data/Formula/Functions/SUM.js +65 -0
  215. package/es-modules/Data/Formula/Functions/XOR.d.ts +20 -0
  216. package/es-modules/Data/Formula/Functions/XOR.js +81 -0
  217. package/es-modules/Data/Modifiers/ChainModifier.d.ts +128 -0
  218. package/es-modules/Data/Modifiers/ChainModifier.js +231 -0
  219. package/es-modules/Data/Modifiers/ChainModifierOptions.d.ts +20 -0
  220. package/es-modules/Data/Modifiers/ChainModifierOptions.js +14 -0
  221. package/es-modules/Data/Modifiers/DataModifier.d.ts +117 -0
  222. package/es-modules/Data/Modifiers/DataModifier.js +202 -0
  223. package/es-modules/Data/Modifiers/DataModifierEvent.d.ts +28 -0
  224. package/es-modules/Data/Modifiers/DataModifierEvent.js +15 -0
  225. package/es-modules/Data/Modifiers/DataModifierOptions.d.ts +11 -0
  226. package/es-modules/Data/Modifiers/DataModifierOptions.js +15 -0
  227. package/es-modules/Data/Modifiers/DataModifierType.d.ts +44 -0
  228. package/es-modules/Data/Modifiers/FilterModifier.d.ts +53 -0
  229. package/es-modules/Data/Modifiers/FilterModifier.js +172 -0
  230. package/es-modules/Data/Modifiers/FilterModifierOptions.d.ts +110 -0
  231. package/es-modules/Data/Modifiers/FilterModifierOptions.js +14 -0
  232. package/es-modules/Data/Modifiers/InvertModifier.d.ts +48 -0
  233. package/es-modules/Data/Modifiers/InvertModifier.js +116 -0
  234. package/es-modules/Data/Modifiers/InvertModifierOptions.d.ts +11 -0
  235. package/es-modules/Data/Modifiers/InvertModifierOptions.js +15 -0
  236. package/es-modules/Data/Modifiers/MathModifier.d.ts +68 -0
  237. package/es-modules/Data/Modifiers/MathModifier.js +165 -0
  238. package/es-modules/Data/Modifiers/MathModifierOptions.d.ts +50 -0
  239. package/es-modules/Data/Modifiers/MathModifierOptions.js +14 -0
  240. package/es-modules/Data/Modifiers/RangeModifier.d.ts +46 -0
  241. package/es-modules/Data/Modifiers/RangeModifier.js +96 -0
  242. package/es-modules/Data/Modifiers/RangeModifierOptions.d.ts +22 -0
  243. package/es-modules/Data/Modifiers/RangeModifierOptions.js +15 -0
  244. package/es-modules/Data/Modifiers/SortModifier.d.ts +54 -0
  245. package/es-modules/Data/Modifiers/SortModifier.js +144 -0
  246. package/es-modules/Data/Modifiers/SortModifierOptions.d.ts +44 -0
  247. package/es-modules/Data/Modifiers/SortModifierOptions.js +14 -0
  248. package/es-modules/Grid/Core/Accessibility/A11yOptions.d.ts +148 -0
  249. package/es-modules/Grid/Core/Accessibility/A11yOptions.js +17 -0
  250. package/es-modules/Grid/Core/Accessibility/Accessibility.d.ts +115 -0
  251. package/es-modules/Grid/Core/Accessibility/Accessibility.js +231 -0
  252. package/es-modules/Grid/Core/Credits.d.ts +57 -0
  253. package/es-modules/Grid/Core/Credits.js +125 -0
  254. package/es-modules/Grid/Core/Defaults.d.ts +20 -0
  255. package/es-modules/Grid/Core/Defaults.js +148 -0
  256. package/es-modules/Grid/Core/Globals.d.ts +103 -0
  257. package/es-modules/Grid/Core/Globals.js +134 -0
  258. package/es-modules/Grid/Core/Grid.d.ts +295 -0
  259. package/es-modules/Grid/Core/Grid.js +730 -0
  260. package/es-modules/Grid/Core/GridUtils.d.ts +110 -0
  261. package/es-modules/Grid/Core/GridUtils.js +191 -0
  262. package/es-modules/Grid/Core/Options.d.ts +599 -0
  263. package/es-modules/Grid/Core/Options.js +16 -0
  264. package/es-modules/Grid/Core/Pagination/Icons.d.ts +7 -0
  265. package/es-modules/Grid/Core/Pagination/Icons.js +7 -0
  266. package/es-modules/Grid/Core/Pagination/Pagination.d.ts +278 -0
  267. package/es-modules/Grid/Core/Pagination/Pagination.js +842 -0
  268. package/es-modules/Grid/Core/Pagination/PaginationOptions.d.ts +228 -0
  269. package/es-modules/Grid/Core/Querying/FilteringController.d.ts +66 -0
  270. package/es-modules/Grid/Core/Querying/FilteringController.js +256 -0
  271. package/es-modules/Grid/Core/Querying/PaginationController.d.ts +50 -0
  272. package/es-modules/Grid/Core/Querying/PaginationController.js +101 -0
  273. package/es-modules/Grid/Core/Querying/QueryingController.d.ts +58 -0
  274. package/es-modules/Grid/Core/Querying/QueryingController.js +127 -0
  275. package/es-modules/Grid/Core/Querying/SortingController.d.ts +67 -0
  276. package/es-modules/Grid/Core/Querying/SortingController.js +136 -0
  277. package/es-modules/Grid/Core/Table/Actions/ColumnFiltering/ColumnFiltering.d.ts +114 -0
  278. package/es-modules/Grid/Core/Table/Actions/ColumnFiltering/ColumnFiltering.js +351 -0
  279. package/es-modules/Grid/Core/Table/Actions/ColumnFiltering/FilterCell.d.ts +14 -0
  280. package/es-modules/Grid/Core/Table/Actions/ColumnFiltering/FilterCell.js +86 -0
  281. package/es-modules/Grid/Core/Table/Actions/ColumnFiltering/FilterRow.d.ts +19 -0
  282. package/es-modules/Grid/Core/Table/Actions/ColumnFiltering/FilterRow.js +80 -0
  283. package/es-modules/Grid/Core/Table/Actions/ColumnFiltering/FilteringTypes.d.ts +52 -0
  284. package/es-modules/Grid/Core/Table/Actions/ColumnFiltering/FilteringTypes.js +81 -0
  285. package/es-modules/Grid/Core/Table/Actions/ColumnSorting.d.ts +56 -0
  286. package/es-modules/Grid/Core/Table/Actions/ColumnSorting.js +170 -0
  287. package/es-modules/Grid/Core/Table/Actions/ColumnsResizer.d.ts +55 -0
  288. package/es-modules/Grid/Core/Table/Actions/ColumnsResizer.js +182 -0
  289. package/es-modules/Grid/Core/Table/Actions/RowsVirtualizer.d.ts +87 -0
  290. package/es-modules/Grid/Core/Table/Actions/RowsVirtualizer.js +346 -0
  291. package/es-modules/Grid/Core/Table/Body/TableCell.d.ts +88 -0
  292. package/es-modules/Grid/Core/Table/Body/TableCell.js +231 -0
  293. package/es-modules/Grid/Core/Table/Body/TableRow.d.ts +79 -0
  294. package/es-modules/Grid/Core/Table/Body/TableRow.js +177 -0
  295. package/es-modules/Grid/Core/Table/Cell.d.ts +92 -0
  296. package/es-modules/Grid/Core/Table/Cell.js +223 -0
  297. package/es-modules/Grid/Core/Table/CellContent/CellContent.d.ts +30 -0
  298. package/es-modules/Grid/Core/Table/CellContent/CellContent.js +40 -0
  299. package/es-modules/Grid/Core/Table/CellContent/TextContent.d.ts +19 -0
  300. package/es-modules/Grid/Core/Table/CellContent/TextContent.js +98 -0
  301. package/es-modules/Grid/Core/Table/Column.d.ts +136 -0
  302. package/es-modules/Grid/Core/Table/Column.js +230 -0
  303. package/es-modules/Grid/Core/Table/ColumnResizing/AdjacentResizingMode.d.ts +7 -0
  304. package/es-modules/Grid/Core/Table/ColumnResizing/AdjacentResizingMode.js +62 -0
  305. package/es-modules/Grid/Core/Table/ColumnResizing/ColumnResizing.d.ts +32 -0
  306. package/es-modules/Grid/Core/Table/ColumnResizing/ColumnResizing.js +68 -0
  307. package/es-modules/Grid/Core/Table/ColumnResizing/DistributedResizingMode.d.ts +7 -0
  308. package/es-modules/Grid/Core/Table/ColumnResizing/DistributedResizingMode.js +53 -0
  309. package/es-modules/Grid/Core/Table/ColumnResizing/IndependentResizingMode.d.ts +7 -0
  310. package/es-modules/Grid/Core/Table/ColumnResizing/IndependentResizingMode.js +63 -0
  311. package/es-modules/Grid/Core/Table/ColumnResizing/ResizingMode.d.ts +92 -0
  312. package/es-modules/Grid/Core/Table/ColumnResizing/ResizingMode.js +194 -0
  313. package/es-modules/Grid/Core/Table/Header/ColumnToolbar/ColumnToolbar.d.ts +68 -0
  314. package/es-modules/Grid/Core/Table/Header/ColumnToolbar/ColumnToolbar.js +187 -0
  315. package/es-modules/Grid/Core/Table/Header/ColumnToolbar/FilterPopup.d.ts +29 -0
  316. package/es-modules/Grid/Core/Table/Header/ColumnToolbar/FilterPopup.js +77 -0
  317. package/es-modules/Grid/Core/Table/Header/ColumnToolbar/MenuButtons/FilterMenuButton.d.ts +13 -0
  318. package/es-modules/Grid/Core/Table/Header/ColumnToolbar/MenuButtons/FilterMenuButton.js +79 -0
  319. package/es-modules/Grid/Core/Table/Header/ColumnToolbar/MenuButtons/SortMenuButton.d.ts +12 -0
  320. package/es-modules/Grid/Core/Table/Header/ColumnToolbar/MenuButtons/SortMenuButton.js +71 -0
  321. package/es-modules/Grid/Core/Table/Header/ColumnToolbar/MenuPopup.d.ts +12 -0
  322. package/es-modules/Grid/Core/Table/Header/ColumnToolbar/MenuPopup.js +66 -0
  323. package/es-modules/Grid/Core/Table/Header/ColumnToolbar/StateHelpers.d.ts +25 -0
  324. package/es-modules/Grid/Core/Table/Header/ColumnToolbar/StateHelpers.js +65 -0
  325. package/es-modules/Grid/Core/Table/Header/ColumnToolbar/ToolbarButtons/FilterToolbarButton.d.ts +12 -0
  326. package/es-modules/Grid/Core/Table/Header/ColumnToolbar/ToolbarButtons/FilterToolbarButton.js +81 -0
  327. package/es-modules/Grid/Core/Table/Header/ColumnToolbar/ToolbarButtons/MenuToolbarButton.d.ts +12 -0
  328. package/es-modules/Grid/Core/Table/Header/ColumnToolbar/ToolbarButtons/MenuToolbarButton.js +80 -0
  329. package/es-modules/Grid/Core/Table/Header/ColumnToolbar/ToolbarButtons/SortToolbarButton.d.ts +11 -0
  330. package/es-modules/Grid/Core/Table/Header/ColumnToolbar/ToolbarButtons/SortToolbarButton.js +81 -0
  331. package/es-modules/Grid/Core/Table/Header/HeaderCell.d.ts +70 -0
  332. package/es-modules/Grid/Core/Table/Header/HeaderCell.js +225 -0
  333. package/es-modules/Grid/Core/Table/Header/HeaderRow.d.ts +53 -0
  334. package/es-modules/Grid/Core/Table/Header/HeaderRow.js +182 -0
  335. package/es-modules/Grid/Core/Table/Header/TableHeader.d.ts +65 -0
  336. package/es-modules/Grid/Core/Table/Header/TableHeader.js +159 -0
  337. package/es-modules/Grid/Core/Table/Row.d.ts +76 -0
  338. package/es-modules/Grid/Core/Table/Row.js +131 -0
  339. package/es-modules/Grid/Core/Table/Table.d.ts +181 -0
  340. package/es-modules/Grid/Core/Table/Table.js +399 -0
  341. package/es-modules/Grid/Core/UI/Button.d.ts +31 -0
  342. package/es-modules/Grid/Core/UI/Button.js +16 -0
  343. package/es-modules/Grid/Core/UI/ContextMenu.d.ts +38 -0
  344. package/es-modules/Grid/Core/UI/ContextMenu.js +132 -0
  345. package/es-modules/Grid/Core/UI/ContextMenuButton.d.ts +126 -0
  346. package/es-modules/Grid/Core/UI/ContextMenuButton.js +183 -0
  347. package/es-modules/Grid/Core/UI/Popup.d.ts +149 -0
  348. package/es-modules/Grid/Core/UI/Popup.js +271 -0
  349. package/es-modules/Grid/Core/UI/SvgIcons.d.ts +53 -0
  350. package/es-modules/Grid/Core/UI/SvgIcons.js +158 -0
  351. package/es-modules/Grid/Core/UI/Toolbar.d.ts +16 -0
  352. package/es-modules/Grid/Core/UI/Toolbar.js +16 -0
  353. package/es-modules/Grid/Core/UI/ToolbarButton.d.ts +135 -0
  354. package/es-modules/Grid/Core/UI/ToolbarButton.js +191 -0
  355. package/es-modules/Grid/Pro/CellEditing/CellEditMode.d.ts +112 -0
  356. package/es-modules/Grid/Pro/CellEditing/CellEditing.d.ts +80 -0
  357. package/es-modules/Grid/Pro/CellEditing/CellEditing.js +211 -0
  358. package/es-modules/Grid/Pro/CellEditing/CellEditingComposition.d.ts +123 -0
  359. package/es-modules/Grid/Pro/CellEditing/CellEditingComposition.js +198 -0
  360. package/es-modules/Grid/Pro/CellRendering/CellContentPro.d.ts +23 -0
  361. package/es-modules/Grid/Pro/CellRendering/CellContentPro.js +45 -0
  362. package/es-modules/Grid/Pro/CellRendering/CellRenderer.d.ts +50 -0
  363. package/es-modules/Grid/Pro/CellRendering/CellRenderer.js +41 -0
  364. package/es-modules/Grid/Pro/CellRendering/CellRendererRegistry.d.ts +18 -0
  365. package/es-modules/Grid/Pro/CellRendering/CellRendererRegistry.js +58 -0
  366. package/es-modules/Grid/Pro/CellRendering/CellRendererType.d.ts +48 -0
  367. package/es-modules/Grid/Pro/CellRendering/CellRenderersComposition.d.ts +18 -0
  368. package/es-modules/Grid/Pro/CellRendering/CellRenderersComposition.js +79 -0
  369. package/es-modules/Grid/Pro/CellRendering/ContentTypes/CheckboxContent.d.ts +30 -0
  370. package/es-modules/Grid/Pro/CellRendering/ContentTypes/CheckboxContent.js +122 -0
  371. package/es-modules/Grid/Pro/CellRendering/ContentTypes/DateInputContent.d.ts +12 -0
  372. package/es-modules/Grid/Pro/CellRendering/ContentTypes/DateInputContent.js +39 -0
  373. package/es-modules/Grid/Pro/CellRendering/ContentTypes/DateInputContentBase.d.ts +66 -0
  374. package/es-modules/Grid/Pro/CellRendering/ContentTypes/DateInputContentBase.js +145 -0
  375. package/es-modules/Grid/Pro/CellRendering/ContentTypes/DateTimeInputContent.d.ts +12 -0
  376. package/es-modules/Grid/Pro/CellRendering/ContentTypes/DateTimeInputContent.js +38 -0
  377. package/es-modules/Grid/Pro/CellRendering/ContentTypes/NumberInputContent.d.ts +58 -0
  378. package/es-modules/Grid/Pro/CellRendering/ContentTypes/NumberInputContent.js +158 -0
  379. package/es-modules/Grid/Pro/CellRendering/ContentTypes/SelectContent.d.ts +58 -0
  380. package/es-modules/Grid/Pro/CellRendering/ContentTypes/SelectContent.js +173 -0
  381. package/es-modules/Grid/Pro/CellRendering/ContentTypes/SparklineContent.d.ts +28 -0
  382. package/es-modules/Grid/Pro/CellRendering/ContentTypes/SparklineContent.js +157 -0
  383. package/es-modules/Grid/Pro/CellRendering/ContentTypes/TextInputContent.d.ts +58 -0
  384. package/es-modules/Grid/Pro/CellRendering/ContentTypes/TextInputContent.js +168 -0
  385. package/es-modules/Grid/Pro/CellRendering/ContentTypes/TimeInputContent.d.ts +13 -0
  386. package/es-modules/Grid/Pro/CellRendering/ContentTypes/TimeInputContent.js +41 -0
  387. package/es-modules/Grid/Pro/CellRendering/Renderers/CheckboxRenderer.d.ts +50 -0
  388. package/es-modules/Grid/Pro/CellRendering/Renderers/CheckboxRenderer.js +65 -0
  389. package/es-modules/Grid/Pro/CellRendering/Renderers/DateInputRenderer.d.ts +37 -0
  390. package/es-modules/Grid/Pro/CellRendering/Renderers/DateInputRenderer.js +65 -0
  391. package/es-modules/Grid/Pro/CellRendering/Renderers/DateInputRendererBase.d.ts +26 -0
  392. package/es-modules/Grid/Pro/CellRendering/Renderers/DateInputRendererBase.js +16 -0
  393. package/es-modules/Grid/Pro/CellRendering/Renderers/DateTimeInputRenderer.d.ts +37 -0
  394. package/es-modules/Grid/Pro/CellRendering/Renderers/DateTimeInputRenderer.js +64 -0
  395. package/es-modules/Grid/Pro/CellRendering/Renderers/NumberInputRenderer.d.ts +52 -0
  396. package/es-modules/Grid/Pro/CellRendering/Renderers/NumberInputRenderer.js +64 -0
  397. package/es-modules/Grid/Pro/CellRendering/Renderers/SelectRenderer.d.ts +74 -0
  398. package/es-modules/Grid/Pro/CellRendering/Renderers/SelectRenderer.js +66 -0
  399. package/es-modules/Grid/Pro/CellRendering/Renderers/SparklineRenderer.d.ts +45 -0
  400. package/es-modules/Grid/Pro/CellRendering/Renderers/SparklineRenderer.js +89 -0
  401. package/es-modules/Grid/Pro/CellRendering/Renderers/TextInputRenderer.d.ts +54 -0
  402. package/es-modules/Grid/Pro/CellRendering/Renderers/TextInputRenderer.js +65 -0
  403. package/es-modules/Grid/Pro/CellRendering/Renderers/TextRenderer.d.ts +43 -0
  404. package/es-modules/Grid/Pro/CellRendering/Renderers/TextRenderer.js +74 -0
  405. package/es-modules/Grid/Pro/CellRendering/Renderers/TimeInputRenderer.d.ts +37 -0
  406. package/es-modules/Grid/Pro/CellRendering/Renderers/TimeInputRenderer.js +64 -0
  407. package/es-modules/Grid/Pro/ColumnTypes/ColumnDataType.d.ts +29 -0
  408. package/es-modules/Grid/Pro/ColumnTypes/Validator.d.ts +118 -0
  409. package/es-modules/Grid/Pro/ColumnTypes/Validator.js +270 -0
  410. package/es-modules/Grid/Pro/ColumnTypes/ValidatorComposition.d.ts +32 -0
  411. package/es-modules/Grid/Pro/ColumnTypes/ValidatorComposition.js +63 -0
  412. package/es-modules/Grid/Pro/Credits/CreditsPro.d.ts +35 -0
  413. package/es-modules/Grid/Pro/Credits/CreditsPro.js +112 -0
  414. package/es-modules/Grid/Pro/Credits/CreditsProComposition.d.ts +28 -0
  415. package/es-modules/Grid/Pro/Credits/CreditsProComposition.js +61 -0
  416. package/es-modules/Grid/Pro/Export/Exporting.d.ts +68 -0
  417. package/es-modules/Grid/Pro/Export/Exporting.js +202 -0
  418. package/es-modules/Grid/Pro/Export/ExportingComposition.d.ts +68 -0
  419. package/es-modules/Grid/Pro/Export/ExportingComposition.js +55 -0
  420. package/es-modules/Grid/Pro/GridEvents.d.ts +119 -0
  421. package/es-modules/Grid/Pro/GridEvents.js +107 -0
  422. package/es-modules/Grid/Pro/Pagination/PaginationComposition.d.ts +75 -0
  423. package/es-modules/Grid/Pro/Pagination/PaginationComposition.js +76 -0
  424. package/es-modules/Grid/Pro/highcharts.d.ts +7 -0
  425. package/es-modules/Grid/index.d.ts +5 -0
  426. package/es-modules/Grid/index.js +19 -0
  427. package/es-modules/Shared/BaseForm.d.ts +49 -0
  428. package/es-modules/Shared/BaseForm.js +126 -0
  429. package/es-modules/Shared/DownloadURL.d.ts +85 -0
  430. package/es-modules/Shared/DownloadURL.js +198 -0
  431. package/es-modules/Shared/LangOptionsCore.d.ts +27 -0
  432. package/es-modules/Shared/TimeBase.d.ts +353 -0
  433. package/es-modules/Shared/TimeBase.js +830 -0
  434. package/es-modules/Shared/Types.d.ts +48 -0
  435. package/es-modules/masters/grid-pro.src.d.ts +99 -0
  436. package/es-modules/masters/grid-pro.src.js +129 -0
  437. package/grid-pro.d.ts +50 -0
  438. package/grid-pro.js +12 -0
  439. package/grid-pro.js.map +1 -0
  440. package/grid-pro.src.d.ts +50 -0
  441. package/grid-pro.src.js +26623 -0
  442. package/package.json +21 -0
@@ -0,0 +1,770 @@
1
+ import type AxisType from './Axis/AxisType';
2
+ import type Chart from './Chart/Chart';
3
+ import type CSSObject from './Renderer/CSSObject';
4
+ import type { DeepPartial } from '../Shared/Types';
5
+ import type { DOMElementType, HTMLDOMElement } from './Renderer/DOMElementType';
6
+ import type EventCallback from './EventCallback';
7
+ import type HTMLAttributes from './Renderer/HTML/HTMLAttributes';
8
+ import type Series from './Series/Series';
9
+ import type SVGAttributes from './Renderer/SVG/SVGAttributes';
10
+ import type Time from './Time';
11
+ import type Types from '../Shared/Types';
12
+ type NonArray<T> = T extends Array<unknown> ? never : T;
13
+ type NonFunction<T> = T extends Function ? never : T;
14
+ type NullType = (null | undefined);
15
+ /**
16
+ * Provide error messages for debugging, with links to online explanation. This
17
+ * function can be overridden to provide custom error handling.
18
+ *
19
+ * @sample highcharts/chart/highcharts-error/
20
+ * Custom error handler
21
+ *
22
+ * @function Highcharts.error
23
+ *
24
+ * @param {number|string} code
25
+ * The error code. See
26
+ * [errors.xml](https://github.com/highcharts/highcharts/blob/master/errors/errors.xml)
27
+ * for available codes. If it is a string, the error message is printed
28
+ * directly in the console.
29
+ *
30
+ * @param {boolean} [stop=false]
31
+ * Whether to throw an error or just log a warning in the console.
32
+ *
33
+ * @param {Highcharts.Chart} [chart]
34
+ * Reference to the chart that causes the error. Used in 'debugger'
35
+ * module to display errors directly on the chart.
36
+ * Important note: This argument is undefined for errors that lack
37
+ * access to the Chart instance. In such case, the error will be
38
+ * displayed on the last created chart.
39
+ *
40
+ * @param {Highcharts.Dictionary<string>} [params]
41
+ * Additional parameters for the generated message.
42
+ *
43
+ * @return {void}
44
+ */
45
+ declare function error(code: (number | string), stop?: boolean, chart?: Chart, params?: Record<string, string>): void;
46
+ declare namespace error {
47
+ const messages: Array<string>;
48
+ }
49
+ declare function merge<T = object>(extend: true, a?: T, ...n: Array<DeepPartial<T> | undefined>): (T);
50
+ declare function merge<T1 extends object = object, T2 = unknown, T3 = unknown, T4 = unknown, T5 = unknown, T6 = unknown, T7 = unknown, T8 = unknown, T9 = unknown>(a?: T1, b?: T2, c?: T3, d?: T4, e?: T5, f?: T6, g?: T7, h?: T8, i?: T9): (T1 & T2 & T3 & T4 & T5 & T6 & T7 & T8 & T9);
51
+ /**
52
+ * Constrain a value to within a lower and upper threshold.
53
+ *
54
+ * @private
55
+ * @param {number} value The initial value
56
+ * @param {number} min The lower threshold
57
+ * @param {number} max The upper threshold
58
+ * @return {number} Returns a number value within min and max.
59
+ */
60
+ declare function clamp(value: number, min: number, max: number): number;
61
+ /**
62
+ * Utility for crisping a line position to the nearest full pixel depening on
63
+ * the line width
64
+ * @param {number} value The raw pixel position
65
+ * @param {number} lineWidth The line width
66
+ * @param {boolean} [inverted] Whether the containing group is inverted.
67
+ * Crisping round numbers on the y-scale need to go
68
+ * to the other side because the coordinate system
69
+ * is flipped (scaleY is -1)
70
+ * @return {number} The pixel position to use for a crisp display
71
+ */
72
+ declare function crisp(value: number, lineWidth?: number, inverted?: boolean): number;
73
+ /**
74
+ * Return the deep difference between two objects. It can either return the new
75
+ * properties, or optionally return the old values of new properties.
76
+ * @private
77
+ */
78
+ declare function diffObjects(newer: AnyRecord, older: AnyRecord, keepOlder?: boolean, collectionsWithUpdate?: string[]): AnyRecord;
79
+ /**
80
+ * Shortcut for parseInt
81
+ *
82
+ * @private
83
+ * @function Highcharts.pInt
84
+ *
85
+ * @param {*} s
86
+ * any
87
+ *
88
+ * @param {number} [mag]
89
+ * Magnitude
90
+ *
91
+ * @return {number}
92
+ * number
93
+ */
94
+ declare function pInt(s: any, mag?: number): number;
95
+ /**
96
+ * Utility function to check for string type.
97
+ *
98
+ * @function Highcharts.isString
99
+ *
100
+ * @param {*} s
101
+ * The item to check.
102
+ *
103
+ * @return {boolean}
104
+ * True if the argument is a string.
105
+ */
106
+ declare function isString(s: unknown): s is string;
107
+ /**
108
+ * Utility function to check if an item is an array.
109
+ *
110
+ * @function Highcharts.isArray
111
+ *
112
+ * @param {*} obj
113
+ * The item to check.
114
+ *
115
+ * @return {boolean}
116
+ * True if the argument is an array.
117
+ */
118
+ declare function isArray(obj: unknown): obj is Array<unknown>;
119
+ declare function isObject<T>(obj: T, strict: true): obj is object & NonArray<NonFunction<NonNullable<T>>>;
120
+ declare function isObject<T>(obj: T, strict?: false): obj is object & NonFunction<NonNullable<T>>;
121
+ /**
122
+ * Utility function to check if an Object is a HTML Element.
123
+ *
124
+ * @function Highcharts.isDOMElement
125
+ *
126
+ * @param {*} obj
127
+ * The item to check.
128
+ *
129
+ * @return {boolean}
130
+ * True if the argument is a HTML Element.
131
+ */
132
+ declare function isDOMElement(obj: unknown): obj is HTMLDOMElement;
133
+ /**
134
+ * Utility function to check if an Object is a class.
135
+ *
136
+ * @function Highcharts.isClass
137
+ *
138
+ * @param {object|undefined} obj
139
+ * The item to check.
140
+ *
141
+ * @return {boolean}
142
+ * True if the argument is a class.
143
+ */
144
+ declare function isClass<T>(obj: (object | undefined)): obj is Class<T>;
145
+ /**
146
+ * Utility function to check if an item is a number and it is finite (not NaN,
147
+ * Infinity or -Infinity).
148
+ *
149
+ * @function Highcharts.isNumber
150
+ *
151
+ * @param {*} n
152
+ * The item to check.
153
+ *
154
+ * @return {boolean}
155
+ * True if the item is a finite number
156
+ */
157
+ declare function isNumber(n: unknown): n is number;
158
+ /**
159
+ * Remove the last occurence of an item from an array.
160
+ *
161
+ * @function Highcharts.erase
162
+ *
163
+ * @param {Array<*>} arr
164
+ * The array.
165
+ *
166
+ * @param {*} item
167
+ * The item to remove.
168
+ *
169
+ * @return {void}
170
+ */
171
+ declare function erase(arr: Array<unknown>, item: unknown): void;
172
+ /**
173
+ * Insert a series or an axis in a collection with other items, either the
174
+ * chart series or yAxis series or axis collections, in the correct order
175
+ * according to the index option and whether it is internal. Used internally
176
+ * when adding series and axes.
177
+ *
178
+ * @private
179
+ * @function Highcharts.Chart#insertItem
180
+ * @param {Highcharts.Series|Highcharts.Axis} item
181
+ * The item to insert
182
+ * @param {Array<Highcharts.Series>|Array<Highcharts.Axis>} collection
183
+ * A collection of items, like `chart.series` or `xAxis.series`.
184
+ * @return {number} The index of the series in the collection.
185
+ */
186
+ declare function insertItem(item: Series | AxisType, collection: Array<Series | AxisType>): number;
187
+ /**
188
+ * Adds an item to an array, if it is not present in the array.
189
+ *
190
+ * @function Highcharts.pushUnique
191
+ *
192
+ * @param {Array<unknown>} array
193
+ * The array to add the item to.
194
+ *
195
+ * @param {unknown} item
196
+ * The item to add.
197
+ *
198
+ * @return {boolean}
199
+ * Returns true, if the item was not present and has been added.
200
+ */
201
+ declare function pushUnique(array: Array<unknown>, item: unknown): boolean;
202
+ /**
203
+ * Check if an object is null or undefined.
204
+ *
205
+ * @function Highcharts.defined
206
+ *
207
+ * @param {*} obj
208
+ * The object to check.
209
+ *
210
+ * @return {boolean}
211
+ * False if the object is null or undefined, otherwise true.
212
+ */
213
+ declare function defined<T>(obj: T): obj is NonNullable<T>;
214
+ declare function attr(elem: DOMElementType, prop: (HTMLAttributes | SVGAttributes)): undefined;
215
+ declare function attr(elem: DOMElementType, prop: string, value?: undefined): (string | null);
216
+ declare function attr(elem: DOMElementType, prop: string, value: (number | string)): undefined;
217
+ /**
218
+ * Check if an element is an array, and if not, make it into an array.
219
+ *
220
+ * @function Highcharts.splat
221
+ *
222
+ * @param {*} obj
223
+ * The object to splat.
224
+ *
225
+ * @return {Array}
226
+ * The produced or original array.
227
+ */
228
+ declare function splat<T>(obj: T | Array<T>): Array<T>;
229
+ /**
230
+ * Set a timeout if the delay is given, otherwise perform the function
231
+ * synchronously.
232
+ *
233
+ * @function Highcharts.syncTimeout
234
+ *
235
+ * @param {Function} fn
236
+ * The function callback.
237
+ *
238
+ * @param {number} delay
239
+ * Delay in milliseconds.
240
+ *
241
+ * @param {*} [context]
242
+ * An optional context to send to the function callback.
243
+ *
244
+ * @return {number}
245
+ * An identifier for the timeout that can later be cleared with
246
+ * Highcharts.clearTimeout. Returns -1 if there is no timeout.
247
+ */
248
+ declare function syncTimeout(fn: Function, delay: number, context?: unknown): number;
249
+ /**
250
+ * Internal clear timeout. The function checks that the `id` was not removed
251
+ * (e.g. by `chart.destroy()`). For the details see
252
+ * [issue #7901](https://github.com/highcharts/highcharts/issues/7901).
253
+ *
254
+ * @function Highcharts.clearTimeout
255
+ *
256
+ * @param {number|undefined} id
257
+ * Id of a timeout.
258
+ */
259
+ declare function internalClearTimeout(id: (number | undefined)): void;
260
+ /**
261
+ * Utility function to extend an object with the members of another.
262
+ *
263
+ * @function Highcharts.extend<T>
264
+ *
265
+ * @param {T|undefined} a
266
+ * The object to be extended.
267
+ *
268
+ * @param {Partial<T>} b
269
+ * The object to add to the first one.
270
+ *
271
+ * @return {T}
272
+ * Object a, the original object.
273
+ */
274
+ declare function extend<T extends object>(a: (T | undefined), b: Partial<T>): T;
275
+ declare function pick<T1, T2, T3, T4, T5>(...args: [T1, T2, T3, T4, T5]): T1 extends NullType ? T2 extends NullType ? T3 extends NullType ? T4 extends NullType ? T5 extends NullType ? undefined : T5 : T4 : T3 : T2 : T1;
276
+ declare function pick<T1, T2, T3, T4>(...args: [T1, T2, T3, T4]): T1 extends NullType ? T2 extends NullType ? T3 extends NullType ? T4 extends NullType ? undefined : T4 : T3 : T2 : T1;
277
+ declare function pick<T1, T2, T3>(...args: [T1, T2, T3]): T1 extends NullType ? T2 extends NullType ? T3 extends NullType ? undefined : T3 : T2 : T1;
278
+ declare function pick<T1, T2>(...args: [T1, T2]): T1 extends NullType ? T2 extends NullType ? undefined : T2 : T1;
279
+ declare function pick<T1>(...args: [T1]): T1 extends NullType ? undefined : T1;
280
+ declare function pick<T>(...args: Array<T | null | undefined>): T | undefined;
281
+ /**
282
+ * Set CSS on a given element.
283
+ *
284
+ * @function Highcharts.css
285
+ *
286
+ * @param {Highcharts.HTMLDOMElement|Highcharts.SVGDOMElement} el
287
+ * An HTML DOM element.
288
+ *
289
+ * @param {Highcharts.CSSObject} styles
290
+ * Style object with camel case property names.
291
+ *
292
+ * @return {void}
293
+ */
294
+ declare function css(el: DOMElementType, styles: CSSObject): void;
295
+ /**
296
+ * Utility function to create an HTML element with attributes and styles.
297
+ *
298
+ * @function Highcharts.createElement
299
+ *
300
+ * @param {string} tag
301
+ * The HTML tag.
302
+ *
303
+ * @param {Highcharts.HTMLAttributes} [attribs]
304
+ * Attributes as an object of key-value pairs.
305
+ *
306
+ * @param {Highcharts.CSSObject} [styles]
307
+ * Styles as an object of key-value pairs.
308
+ *
309
+ * @param {Highcharts.HTMLDOMElement} [parent]
310
+ * The parent HTML object.
311
+ *
312
+ * @param {boolean} [nopad=false]
313
+ * If true, remove all padding, border and margin.
314
+ *
315
+ * @return {Highcharts.HTMLDOMElement}
316
+ * The created DOM element.
317
+ */
318
+ declare function createElement(tag: string, attribs?: HTMLAttributes, styles?: CSSObject, parent?: HTMLDOMElement, nopad?: boolean): HTMLDOMElement;
319
+ /**
320
+ * Extend a prototyped class by new members.
321
+ *
322
+ * @deprecated
323
+ * @function Highcharts.extendClass<T>
324
+ *
325
+ * @param {Highcharts.Class<T>} parent
326
+ * The parent prototype to inherit.
327
+ *
328
+ * @param {Highcharts.Dictionary<*>} members
329
+ * A collection of prototype members to add or override compared to the
330
+ * parent prototype.
331
+ *
332
+ * @return {Highcharts.Class<T>}
333
+ * A new prototype.
334
+ */
335
+ declare function extendClass<T, TReturn = T>(parent: Class<T>, members: any): Class<TReturn>;
336
+ /**
337
+ * Left-pad a string to a given length by adding a character repetitively.
338
+ *
339
+ * @function Highcharts.pad
340
+ *
341
+ * @param {number} number
342
+ * The input string or number.
343
+ *
344
+ * @param {number} [length]
345
+ * The desired string length.
346
+ *
347
+ * @param {string} [padder=0]
348
+ * The character to pad with.
349
+ *
350
+ * @return {string}
351
+ * The padded string.
352
+ */
353
+ declare function pad(number: number, length?: number, padder?: string): string;
354
+ /**
355
+ * Return a length based on either the integer value, or a percentage of a base.
356
+ *
357
+ * @function Highcharts.relativeLength
358
+ *
359
+ * @param {Highcharts.RelativeSize} value
360
+ * A percentage string or a number.
361
+ *
362
+ * @param {number} base
363
+ * The full length that represents 100%.
364
+ *
365
+ * @param {number} [offset=0]
366
+ * A pixel offset to apply for percentage values. Used internally in
367
+ * axis positioning.
368
+ *
369
+ * @return {number}
370
+ * The computed length.
371
+ */
372
+ declare function relativeLength(value: Utilities.RelativeSize, base: number, offset?: number): number;
373
+ /**
374
+ * Replaces text in a string with a given replacement in a loop to catch nested
375
+ * matches after previous replacements.
376
+ *
377
+ * @function Highcharts.replaceNested
378
+ *
379
+ * @param {string} text
380
+ * Text to search and modify.
381
+ *
382
+ * @param {...Array<(RegExp|string)>} replacements
383
+ * One or multiple tuples with search pattern (`[0]: (string|RegExp)`) and
384
+ * replacement (`[1]: string`) for matching text.
385
+ *
386
+ * @return {string}
387
+ * Text with replacements.
388
+ */
389
+ declare function replaceNested(text: string, ...replacements: Array<[pattern: (string | RegExp), replacement: string]>): string;
390
+ /**
391
+ * Wrap a method with extended functionality, preserving the original function.
392
+ *
393
+ * @function Highcharts.wrap
394
+ *
395
+ * @param {*} obj
396
+ * The context object that the method belongs to. In real cases, this is
397
+ * often a prototype.
398
+ *
399
+ * @param {string} method
400
+ * The name of the method to extend.
401
+ *
402
+ * @param {Highcharts.WrapProceedFunction} func
403
+ * A wrapper function callback. This function is called with the same
404
+ * arguments as the original function, except that the original function
405
+ * is unshifted and passed as the first argument.
406
+ */
407
+ declare function wrap<T, K extends FunctionNamesOf<T>>(obj: T, method: K, func: Utilities.WrapProceedFunction<T[K] & ArrowFunction>): void;
408
+ /**
409
+ * Get the magnitude of a number.
410
+ *
411
+ * @function Highcharts.getMagnitude
412
+ *
413
+ * @param {number} num
414
+ * The number.
415
+ *
416
+ * @return {number}
417
+ * The magnitude, where 1-9 are magnitude 1, 10-99 magnitude 2 etc.
418
+ */
419
+ declare function getMagnitude(num: number): number;
420
+ /**
421
+ * Take an interval and normalize it to multiples of round numbers.
422
+ *
423
+ * @deprecated
424
+ * @function Highcharts.normalizeTickInterval
425
+ *
426
+ * @param {number} interval
427
+ * The raw, un-rounded interval.
428
+ *
429
+ * @param {Array<*>} [multiples]
430
+ * Allowed multiples.
431
+ *
432
+ * @param {number} [magnitude]
433
+ * The magnitude of the number.
434
+ *
435
+ * @param {boolean} [allowDecimals]
436
+ * Whether to allow decimals.
437
+ *
438
+ * @param {boolean} [hasTickAmount]
439
+ * If it has tickAmount, avoid landing on tick intervals lower than
440
+ * original.
441
+ *
442
+ * @return {number}
443
+ * The normalized interval.
444
+ *
445
+ * @todo
446
+ * Move this function to the Axis prototype. It is here only for historical
447
+ * reasons.
448
+ */
449
+ declare function normalizeTickInterval(interval: number, multiples?: Array<number>, magnitude?: number, allowDecimals?: boolean, hasTickAmount?: boolean): number;
450
+ /**
451
+ * Sort an object array and keep the order of equal items. The ECMAScript
452
+ * standard does not specify the behaviour when items are equal.
453
+ *
454
+ * @function Highcharts.stableSort
455
+ *
456
+ * @param {Array<*>} arr
457
+ * The array to sort.
458
+ *
459
+ * @param {Function} sortFunction
460
+ * The function to sort it with, like with regular Array.prototype.sort.
461
+ */
462
+ declare function stableSort<T>(arr: Array<T>, sortFunction: (a: T, b: T) => number): void;
463
+ /**
464
+ * Non-recursive method to find the lowest member of an array. `Math.min` raises
465
+ * a maximum call stack size exceeded error in Chrome when trying to apply more
466
+ * than 150.000 points. This method is slightly slower, but safe.
467
+ *
468
+ * @function Highcharts.arrayMin
469
+ *
470
+ * @param {Array<*>} data
471
+ * An array of numbers.
472
+ *
473
+ * @return {number}
474
+ * The lowest number.
475
+ */
476
+ declare function arrayMin(data: Array<any> | Types.TypedArray): number;
477
+ /**
478
+ * Non-recursive method to find the lowest member of an array. `Math.max` raises
479
+ * a maximum call stack size exceeded error in Chrome when trying to apply more
480
+ * than 150.000 points. This method is slightly slower, but safe.
481
+ *
482
+ * @function Highcharts.arrayMax
483
+ *
484
+ * @param {Array<*>} data
485
+ * An array of numbers.
486
+ *
487
+ * @return {number}
488
+ * The highest number.
489
+ */
490
+ declare function arrayMax(data: Array<any> | Types.TypedArray): number;
491
+ /**
492
+ * Utility method that destroys any SVGElement instances that are properties on
493
+ * the given object. It loops all properties and invokes destroy if there is a
494
+ * destroy method. The property is then delete.
495
+ *
496
+ * @function Highcharts.destroyObjectProperties
497
+ *
498
+ * @param {*} obj
499
+ * The object to destroy properties on.
500
+ *
501
+ * @param {*} [except]
502
+ * Exception, do not destroy this property, only delete it.
503
+ */
504
+ declare function destroyObjectProperties(obj: any, except?: any, destructablesOnly?: boolean): void;
505
+ /**
506
+ * Discard a HTML element
507
+ *
508
+ * @function Highcharts.discardElement
509
+ *
510
+ * @param {Highcharts.HTMLDOMElement} element
511
+ * The HTML node to discard.
512
+ */
513
+ declare function discardElement(element?: HTMLDOMElement): void;
514
+ /**
515
+ * Fix JS round off float errors.
516
+ *
517
+ * @function Highcharts.correctFloat
518
+ *
519
+ * @param {number} num
520
+ * A float number to fix.
521
+ *
522
+ * @param {number} [prec=14]
523
+ * The precision.
524
+ *
525
+ * @return {number}
526
+ * The corrected float number.
527
+ */
528
+ declare function correctFloat(num: number, prec?: number): number;
529
+ /**
530
+ * Find the closest distance between two values of a two-dimensional array
531
+ * @private
532
+ * @function Highcharts.getClosestDistance
533
+ *
534
+ * @param {Array<Array<number>>} arrays
535
+ * An array of arrays of numbers
536
+ *
537
+ * @return {number | undefined}
538
+ * The closest distance between values
539
+ */
540
+ declare function getClosestDistance(arrays: (number[] | Types.TypedArray)[], onError?: Function): (number | undefined);
541
+ /**
542
+ * Returns the value of a property path on a given object.
543
+ *
544
+ * @private
545
+ * @function getNestedProperty
546
+ *
547
+ * @param {string} path
548
+ * Path to the property, for example `custom.myValue`.
549
+ *
550
+ * @param {unknown} obj
551
+ * Instance containing the property on the specific path.
552
+ *
553
+ * @return {unknown}
554
+ * The unknown property value.
555
+ */
556
+ declare function getNestedProperty(path: string, parent: unknown): unknown;
557
+ declare function getStyle(el: HTMLDOMElement, prop: string, toInt: true): (number | undefined);
558
+ declare function getStyle(el: HTMLDOMElement, prop: string, toInt?: false): (number | string | undefined);
559
+ /**
560
+ * Get the element's offset position, corrected for `overflow: auto`.
561
+ *
562
+ * @function Highcharts.offset
563
+ *
564
+ * @param {global.Element} el
565
+ * The DOM element.
566
+ *
567
+ * @return {Highcharts.OffsetObject}
568
+ * An object containing `left` and `top` properties for the position in
569
+ * the page.
570
+ */
571
+ declare function offset(el: Element): Utilities.OffsetObject;
572
+ /**
573
+ * Iterate over object key pairs in an object.
574
+ *
575
+ * @function Highcharts.objectEach<T>
576
+ *
577
+ * @param {*} obj
578
+ * The object to iterate over.
579
+ *
580
+ * @param {Highcharts.ObjectEachCallbackFunction<T>} fn
581
+ * The iterator callback. It passes three arguments:
582
+ * * value - The property value.
583
+ * * key - The property key.
584
+ * * obj - The object that objectEach is being applied to.
585
+ *
586
+ * @param {T} [ctx]
587
+ * The context.
588
+ */
589
+ declare function objectEach<TObject, TContext>(obj: TObject, fn: Utilities.ObjectEachCallback<TObject, TContext>, ctx?: TContext): void;
590
+ /**
591
+ * Add an event listener.
592
+ *
593
+ * @function Highcharts.addEvent<T>
594
+ *
595
+ * @param {Highcharts.Class<T>|T} el
596
+ * The element or object to add a listener to. It can be a
597
+ * {@link HTMLDOMElement}, an {@link SVGElement} or any other object.
598
+ *
599
+ * @param {string} type
600
+ * The event type.
601
+ *
602
+ * @param {Highcharts.EventCallbackFunction<T>|Function} fn
603
+ * The function callback to execute when the event is fired.
604
+ *
605
+ * @param {Highcharts.EventOptionsObject} [options]
606
+ * Options for adding the event.
607
+ *
608
+ * @sample highcharts/members/addevent
609
+ * Use a general `render` event to draw shapes on a chart
610
+ *
611
+ * @return {Function}
612
+ * A callback function to remove the added event.
613
+ */
614
+ declare function addEvent<T>(el: (Class<T> | T), type: string, fn: (EventCallback<T> | Function), options?: Utilities.EventOptions): Function;
615
+ /**
616
+ * Remove an event that was added with {@link Highcharts#addEvent}.
617
+ *
618
+ * @function Highcharts.removeEvent<T>
619
+ *
620
+ * @param {Highcharts.Class<T>|T} el
621
+ * The element to remove events on.
622
+ *
623
+ * @param {string} [type]
624
+ * The type of events to remove. If undefined, all events are removed
625
+ * from the element.
626
+ *
627
+ * @param {Highcharts.EventCallbackFunction<T>} [fn]
628
+ * The specific callback to remove. If undefined, all events that match
629
+ * the element and optionally the type are removed.
630
+ *
631
+ * @return {void}
632
+ */
633
+ declare function removeEvent<T>(el: (Class<T> | T), type?: string, fn?: (EventCallback<T> | Function)): void;
634
+ /**
635
+ * Fire an event that was registered with {@link Highcharts#addEvent}.
636
+ *
637
+ * @function Highcharts.fireEvent<T>
638
+ *
639
+ * @param {T} el
640
+ * The object to fire the event on. It can be a {@link HTMLDOMElement},
641
+ * an {@link SVGElement} or any other object.
642
+ *
643
+ * @param {string} type
644
+ * The type of event.
645
+ *
646
+ * @param {Highcharts.Dictionary<*>|Event} [eventArguments]
647
+ * Custom event arguments that are passed on as an argument to the event
648
+ * handler.
649
+ *
650
+ * @param {Highcharts.EventCallbackFunction<T>|Function} [defaultFunction]
651
+ * The default function to execute if the other listeners haven't
652
+ * returned false.
653
+ *
654
+ * @return {void}
655
+ */
656
+ declare function fireEvent<T>(el: T, type: string, eventArguments?: (AnyRecord | Event), defaultFunction?: (EventCallback<T> | Function)): void;
657
+ /**
658
+ * Activates a serial mode for element IDs provided by
659
+ * {@link Highcharts.uniqueKey}. This mode can be used in automated tests, where
660
+ * a simple comparison of two rendered SVG graphics is needed.
661
+ *
662
+ * **Note:** This is only for testing purposes and will break functionality in
663
+ * webpages with multiple charts.
664
+ *
665
+ * @example
666
+ * if (
667
+ * process &&
668
+ * process.env.NODE_ENV === 'development'
669
+ * ) {
670
+ * Highcharts.useSerialIds(true);
671
+ * }
672
+ *
673
+ * @function Highcharts.useSerialIds
674
+ *
675
+ * @param {boolean} [mode]
676
+ * Changes the state of serial mode.
677
+ *
678
+ * @return {boolean|undefined}
679
+ * State of the serial mode.
680
+ */
681
+ declare function useSerialIds(mode?: boolean): (boolean | undefined);
682
+ declare function isFunction(obj: unknown): obj is Function;
683
+ declare function ucfirst(s: unknown): string;
684
+ declare namespace Utilities {
685
+ type RelativeSize = (number | string);
686
+ interface ErrorMessageEventObject {
687
+ chart?: Chart;
688
+ code: number;
689
+ message?: string;
690
+ params?: Record<string, string>;
691
+ }
692
+ interface EventOptions {
693
+ order?: number;
694
+ passive?: boolean;
695
+ }
696
+ interface EventWrapperObject<T> {
697
+ fn: EventCallback<T>;
698
+ order: number;
699
+ }
700
+ interface FindCallback<T> {
701
+ (value: T, index: number): unknown;
702
+ }
703
+ interface ObjectEachCallback<TObject, TContext> {
704
+ (this: TContext, value: TObject[keyof TObject], key: Extract<keyof TObject, string>, obj: TObject): void;
705
+ }
706
+ interface OffsetObject {
707
+ height: number;
708
+ left: number;
709
+ top: number;
710
+ width: number;
711
+ }
712
+ interface WrapProceedFunction<T extends ArrowFunction> {
713
+ (proceed: (T & ArrowFunction), ...args: Array<any>): ReturnType<T>;
714
+ }
715
+ }
716
+ declare const Utilities: {
717
+ addEvent: typeof addEvent;
718
+ arrayMax: typeof arrayMax;
719
+ arrayMin: typeof arrayMin;
720
+ attr: typeof attr;
721
+ clamp: typeof clamp;
722
+ clearTimeout: typeof internalClearTimeout;
723
+ correctFloat: typeof correctFloat;
724
+ createElement: typeof createElement;
725
+ crisp: typeof crisp;
726
+ css: typeof css;
727
+ defined: typeof defined;
728
+ destroyObjectProperties: typeof destroyObjectProperties;
729
+ diffObjects: typeof diffObjects;
730
+ discardElement: typeof discardElement;
731
+ erase: typeof erase;
732
+ error: typeof error;
733
+ extend: typeof extend;
734
+ extendClass: typeof extendClass;
735
+ find: <T>(arr: Array<T>, callback: Utilities.FindCallback<T>) => (T | undefined);
736
+ fireEvent: typeof fireEvent;
737
+ getAlignFactor: (align?: string) => number;
738
+ getClosestDistance: typeof getClosestDistance;
739
+ getMagnitude: typeof getMagnitude;
740
+ getNestedProperty: typeof getNestedProperty;
741
+ getStyle: typeof getStyle;
742
+ insertItem: typeof insertItem;
743
+ isArray: typeof isArray;
744
+ isClass: typeof isClass;
745
+ isDOMElement: typeof isDOMElement;
746
+ isFunction: typeof isFunction;
747
+ isNumber: typeof isNumber;
748
+ isObject: typeof isObject;
749
+ isString: typeof isString;
750
+ merge: typeof merge;
751
+ normalizeTickInterval: typeof normalizeTickInterval;
752
+ objectEach: typeof objectEach;
753
+ offset: typeof offset;
754
+ pad: typeof pad;
755
+ pick: typeof pick;
756
+ pInt: typeof pInt;
757
+ pushUnique: typeof pushUnique;
758
+ relativeLength: typeof relativeLength;
759
+ removeEvent: typeof removeEvent;
760
+ replaceNested: typeof replaceNested;
761
+ splat: typeof splat;
762
+ stableSort: typeof stableSort;
763
+ syncTimeout: typeof syncTimeout;
764
+ timeUnits: Record<Time.TimeUnit, number>;
765
+ ucfirst: typeof ucfirst;
766
+ uniqueKey: () => string;
767
+ useSerialIds: typeof useSerialIds;
768
+ wrap: typeof wrap;
769
+ };
770
+ export default Utilities;