@highcharts/grid-pro 2.1.1 → 2.3.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 (455) hide show
  1. package/LICENSE.txt +6 -0
  2. package/README.md +15 -9
  3. package/css/grid-pro.css +1289 -1153
  4. package/css/modules/grid-base-variables.css +131 -0
  5. package/css/modules/grid-button-variables.css +140 -0
  6. package/css/modules/grid-caption-variables.css +11 -0
  7. package/css/modules/grid-description-variables.css +11 -0
  8. package/css/modules/grid-input-variables.css +114 -0
  9. package/css/modules/grid-link-variables.css +18 -0
  10. package/css/modules/grid-menu-variables.css +50 -0
  11. package/css/modules/grid-pagination-variables.css +12 -0
  12. package/css/modules/grid-popup-variables.css +24 -0
  13. package/css/modules/grid-pro.css +234 -0
  14. package/css/modules/grid-table-variables.css +385 -0
  15. package/css/modules/grid-theme-default.css +55 -0
  16. package/es-modules/Accessibility/A11yI18n.js +4 -5
  17. package/es-modules/Accessibility/Accessibility.js +5 -5
  18. package/es-modules/Accessibility/AccessibilityComponent.d.ts +3 -3
  19. package/es-modules/Accessibility/AccessibilityComponent.js +4 -3
  20. package/es-modules/Accessibility/Components/AnnotationsA11y.js +4 -3
  21. package/es-modules/Accessibility/Components/ContainerComponent.js +4 -3
  22. package/es-modules/Accessibility/Components/InfoRegionsComponent.js +9 -9
  23. package/es-modules/Accessibility/Components/LegendComponent.js +5 -5
  24. package/es-modules/Accessibility/Components/MenuComponent.js +5 -5
  25. package/es-modules/Accessibility/Components/NavigatorComponent.js +6 -7
  26. package/es-modules/Accessibility/Components/RangeSelectorComponent.js +5 -5
  27. package/es-modules/Accessibility/Components/SeriesComponent/ForcedMarkers.js +15 -5
  28. package/es-modules/Accessibility/Components/SeriesComponent/NewDataAnnouncer.js +7 -7
  29. package/es-modules/Accessibility/Components/SeriesComponent/SeriesComponent.js +4 -3
  30. package/es-modules/Accessibility/Components/SeriesComponent/SeriesDescriber.js +7 -7
  31. package/es-modules/Accessibility/Components/SeriesComponent/SeriesKeyboardNavigation.js +5 -5
  32. package/es-modules/Accessibility/Components/ZoomComponent.js +5 -5
  33. package/es-modules/Accessibility/FocusBorder.js +5 -5
  34. package/es-modules/Accessibility/HighContrastMode.js +4 -3
  35. package/es-modules/Accessibility/HighContrastTheme.js +4 -3
  36. package/es-modules/Accessibility/KeyboardNavigation.js +5 -5
  37. package/es-modules/Accessibility/KeyboardNavigationHandler.js +5 -5
  38. package/es-modules/Accessibility/Options/A11yDefaults.d.ts +11 -0
  39. package/es-modules/Accessibility/Options/A11yDefaults.js +15 -3
  40. package/es-modules/Accessibility/Options/DeprecatedOptions.d.ts +58 -0
  41. package/es-modules/Accessibility/Options/DeprecatedOptions.js +11 -5
  42. package/es-modules/Accessibility/Options/LangDefaults.js +13 -3
  43. package/es-modules/Accessibility/ProxyElement.js +6 -8
  44. package/es-modules/Accessibility/ProxyProvider.js +5 -5
  45. package/es-modules/Accessibility/Utils/Announcer.js +6 -6
  46. package/es-modules/Accessibility/Utils/ChartUtilities.js +5 -5
  47. package/es-modules/Accessibility/Utils/DOMElementProvider.js +4 -3
  48. package/es-modules/Accessibility/Utils/EventProvider.d.ts +3 -3
  49. package/es-modules/Accessibility/Utils/EventProvider.js +10 -5
  50. package/es-modules/Accessibility/Utils/HTMLUtilities.js +5 -5
  51. package/es-modules/Core/Animation/AnimationOptions.d.ts +42 -0
  52. package/es-modules/Core/Animation/AnimationOptions.js +10 -0
  53. package/es-modules/Core/Animation/AnimationUtilities.js +40 -5
  54. package/es-modules/Core/Animation/Fx.d.ts +1 -130
  55. package/es-modules/Core/Animation/Fx.js +14 -8
  56. package/es-modules/Core/Animation/FxBase.d.ts +1 -0
  57. package/es-modules/Core/Animation/FxBase.js +11 -0
  58. package/es-modules/Core/Callback.d.ts +56 -0
  59. package/es-modules/Core/Callback.js +10 -0
  60. package/es-modules/Core/Chart/Chart.d.ts +659 -400
  61. package/es-modules/Core/Chart/Chart.js +112 -95
  62. package/es-modules/Core/Chart/Chart3D.d.ts +123 -233
  63. package/es-modules/Core/Chart/Chart3D.js +23 -37
  64. package/es-modules/Core/Chart/ChartBase.d.ts +3 -0
  65. package/es-modules/Core/Chart/ChartBase.js +11 -0
  66. package/es-modules/Core/Chart/ChartDefaults.js +18 -12
  67. package/es-modules/Core/Chart/ChartNavigationComposition.d.ts +1 -55
  68. package/es-modules/Core/Chart/ChartNavigationComposition.js +13 -13
  69. package/es-modules/Core/Chart/ChartOptions.d.ts +1225 -0
  70. package/es-modules/Core/Chart/ChartOptions.js +10 -0
  71. package/es-modules/Core/Chart/GanttChart.d.ts +0 -38
  72. package/es-modules/Core/Chart/GanttChart.js +5 -5
  73. package/es-modules/Core/Chart/MapChart.d.ts +9 -4
  74. package/es-modules/Core/Chart/MapChart.js +14 -5
  75. package/es-modules/Core/Chart/StockChart.d.ts +0 -85
  76. package/es-modules/Core/Chart/StockChart.js +35 -18
  77. package/es-modules/Core/Color/Color.d.ts +16 -24
  78. package/es-modules/Core/Color/Color.js +27 -10
  79. package/es-modules/Core/Color/ColorString.d.ts +0 -23
  80. package/es-modules/Core/Color/ColorString.js +11 -0
  81. package/es-modules/Core/Color/ColorType.d.ts +0 -33
  82. package/es-modules/Core/Color/ColorType.js +11 -0
  83. package/es-modules/Core/Color/GradientColor.d.ts +0 -33
  84. package/es-modules/Core/Color/GradientColor.js +11 -0
  85. package/es-modules/Core/Color/Palettes.d.ts +1 -84
  86. package/es-modules/Core/Color/Palettes.js +2 -1
  87. package/es-modules/Core/Defaults.d.ts +6 -0
  88. package/es-modules/Core/Defaults.js +66 -75
  89. package/es-modules/Core/Delaunay.d.ts +52 -0
  90. package/es-modules/Core/Delaunay.js +310 -0
  91. package/es-modules/Core/Foundation.d.ts +1 -19
  92. package/es-modules/Core/Foundation.js +8 -6
  93. package/es-modules/Core/Geometry/CircleObject.d.ts +5 -0
  94. package/es-modules/Core/Geometry/CircleObject.js +10 -0
  95. package/es-modules/Core/Geometry/CircleUtilities.d.ts +1 -189
  96. package/es-modules/Core/Geometry/CircleUtilities.js +18 -17
  97. package/es-modules/Core/Geometry/GeometryObject.d.ts +7 -0
  98. package/es-modules/Core/Geometry/GeometryObject.js +10 -0
  99. package/es-modules/Core/Geometry/GeometryUtilities.d.ts +1 -48
  100. package/es-modules/Core/Geometry/GeometryUtilities.js +9 -7
  101. package/es-modules/Core/Geometry/IntersectionObject.d.ts +7 -0
  102. package/es-modules/Core/Geometry/IntersectionObject.js +10 -0
  103. package/es-modules/Core/Geometry/PolygonClip.d.ts +1 -19
  104. package/es-modules/Core/Geometry/PolygonClip.js +9 -7
  105. package/es-modules/Core/Globals.d.ts +9 -31
  106. package/es-modules/Core/Globals.js +9 -10
  107. package/es-modules/Core/GlobalsBase.d.ts +35 -0
  108. package/es-modules/Core/GlobalsBase.js +11 -0
  109. package/es-modules/Core/HttpUtilities.d.ts +54 -17
  110. package/es-modules/Core/HttpUtilities.js +16 -16
  111. package/es-modules/Core/JSON.d.ts +29 -0
  112. package/es-modules/Core/JSON.js +13 -0
  113. package/es-modules/Core/KeyboardEvent.d.ts +1 -0
  114. package/es-modules/Core/KeyboardEvent.js +11 -0
  115. package/es-modules/Core/MSPointer.d.ts +1 -74
  116. package/es-modules/Core/MSPointer.js +24 -15
  117. package/es-modules/Core/Math3D.d.ts +1 -117
  118. package/es-modules/Core/Math3D.js +14 -12
  119. package/es-modules/Core/Options.d.ts +338 -0
  120. package/es-modules/Core/Options.js +10 -0
  121. package/es-modules/Core/Pointer.d.ts +71 -445
  122. package/es-modules/Core/Pointer.js +74 -69
  123. package/es-modules/Core/PointerEvent.d.ts +20 -0
  124. package/es-modules/Core/PointerEvent.js +11 -0
  125. package/es-modules/Core/Renderer/AlignObject.d.ts +25 -27
  126. package/es-modules/Core/Renderer/AlignObject.js +11 -0
  127. package/es-modules/Core/Renderer/BBoxObject.d.ts +20 -31
  128. package/es-modules/Core/Renderer/BBoxObject.js +11 -0
  129. package/es-modules/Core/Renderer/CSSObject.d.ts +268 -59
  130. package/es-modules/Core/Renderer/CSSObject.js +10 -0
  131. package/es-modules/Core/Renderer/DOMElementType.d.ts +1 -33
  132. package/es-modules/Core/Renderer/DOMElementType.js +11 -0
  133. package/es-modules/Core/Renderer/DashStyleValue.d.ts +1 -27
  134. package/es-modules/Core/Renderer/DashStyleValue.js +11 -0
  135. package/es-modules/Core/Renderer/FontMetricsObject.d.ts +6 -26
  136. package/es-modules/Core/Renderer/FontMetricsObject.js +11 -0
  137. package/es-modules/Core/Renderer/HTML/AST.d.ts +3 -15
  138. package/es-modules/Core/Renderer/HTML/AST.js +24 -15
  139. package/es-modules/Core/Renderer/HTML/HTMLAttributes.d.ts +1 -25
  140. package/es-modules/Core/Renderer/HTML/HTMLAttributes.js +11 -0
  141. package/es-modules/Core/Renderer/HTML/HTMLElement.d.ts +0 -54
  142. package/es-modules/Core/Renderer/HTML/HTMLElement.js +28 -24
  143. package/es-modules/Core/Renderer/PolygonBoxObject.d.ts +15 -12
  144. package/es-modules/Core/Renderer/PolygonBoxObject.js +11 -0
  145. package/es-modules/Core/Renderer/Position3DObject.d.ts +6 -30
  146. package/es-modules/Core/Renderer/Position3DObject.js +11 -0
  147. package/es-modules/Core/Renderer/PositionObject.d.ts +9 -23
  148. package/es-modules/Core/Renderer/PositionObject.js +11 -0
  149. package/es-modules/Core/Renderer/RectangleObject.d.ts +6 -30
  150. package/es-modules/Core/Renderer/RectangleObject.js +11 -0
  151. package/es-modules/Core/Renderer/RendererRegistry.d.ts +1 -29
  152. package/es-modules/Core/Renderer/RendererRegistry.js +6 -3
  153. package/es-modules/Core/Renderer/RendererType.d.ts +1 -53
  154. package/es-modules/Core/Renderer/RendererType.js +11 -0
  155. package/es-modules/Core/Renderer/RendererUtilities.d.ts +1 -26
  156. package/es-modules/Core/Renderer/RendererUtilities.js +41 -23
  157. package/es-modules/Core/Renderer/SVG/ButtonThemeObject.d.ts +26 -31
  158. package/es-modules/Core/Renderer/SVG/SVGArc3D.d.ts +1 -44
  159. package/es-modules/Core/Renderer/SVG/SVGAttributes.d.ts +15 -51
  160. package/es-modules/Core/Renderer/SVG/SVGAttributes3D.d.ts +1 -42
  161. package/es-modules/Core/Renderer/SVG/SVGCuboid.d.ts +1 -42
  162. package/es-modules/Core/Renderer/SVG/SVGElement.d.ts +459 -0
  163. package/es-modules/Core/Renderer/SVG/SVGElement3D.d.ts +1 -0
  164. package/es-modules/Core/Renderer/SVG/SVGElementBase.d.ts +0 -23
  165. package/es-modules/Core/Renderer/SVG/SVGLabel.d.ts +14 -0
  166. package/es-modules/Core/Renderer/SVG/SVGPath.d.ts +18 -56
  167. package/es-modules/Core/Renderer/SVG/SVGPath3D.d.ts +0 -30
  168. package/es-modules/Core/Renderer/SVG/SVGRenderer.d.ts +652 -0
  169. package/es-modules/Core/Renderer/SVG/SVGRenderer3D.d.ts +1 -0
  170. package/es-modules/Core/Renderer/SVG/SVGRendererBase.d.ts +0 -24
  171. package/es-modules/Core/Renderer/SVG/SymbolOptions.d.ts +3 -26
  172. package/es-modules/Core/Renderer/SVG/SymbolType.d.ts +1 -41
  173. package/es-modules/Core/Renderer/SVG/Symbols.d.ts +146 -0
  174. package/es-modules/Core/Renderer/SVG/TextBuilder.d.ts +1 -0
  175. package/es-modules/Core/Renderer/ShadowOptionsObject.d.ts +21 -30
  176. package/es-modules/Core/Renderer/ShadowOptionsObject.js +11 -0
  177. package/es-modules/Core/Renderer/SizeObject.d.ts +0 -23
  178. package/es-modules/Core/Renderer/SizeObject.js +11 -0
  179. package/es-modules/Core/Responsive.d.ts +94 -29
  180. package/es-modules/Core/Responsive.js +17 -12
  181. package/es-modules/Core/Templating.d.ts +17 -1
  182. package/es-modules/Core/Templating.js +12 -8
  183. package/es-modules/Core/Time.d.ts +18 -1
  184. package/es-modules/Core/Time.js +6 -5
  185. package/es-modules/Core/Tooltip.d.ts +67 -123
  186. package/es-modules/Core/Tooltip.js +161 -108
  187. package/es-modules/Core/TooltipOptions.d.ts +724 -0
  188. package/es-modules/Core/TooltipOptions.js +10 -0
  189. package/es-modules/Core/Utilities.d.ts +32 -703
  190. package/es-modules/Core/Utilities.js +28 -1443
  191. package/es-modules/Data/ColumnUtils.d.ts +83 -80
  192. package/es-modules/Data/ColumnUtils.js +106 -116
  193. package/es-modules/Data/Connectors/CSVConnector.d.ts +9 -14
  194. package/es-modules/Data/Connectors/CSVConnector.js +6 -7
  195. package/es-modules/Data/Connectors/CSVConnectorOptions.d.ts +3 -3
  196. package/es-modules/Data/Connectors/DataConnector.d.ts +63 -54
  197. package/es-modules/Data/Connectors/DataConnector.js +67 -56
  198. package/es-modules/Data/Connectors/DataConnectorOptions.d.ts +3 -3
  199. package/es-modules/Data/Connectors/DataConnectorType.d.ts +3 -3
  200. package/es-modules/Data/Connectors/GoogleSheetsConnector.d.ts +40 -42
  201. package/es-modules/Data/Connectors/GoogleSheetsConnector.js +76 -91
  202. package/es-modules/Data/Connectors/GoogleSheetsConnectorOptions.d.ts +7 -5
  203. package/es-modules/Data/Connectors/HTMLTableConnector.d.ts +23 -28
  204. package/es-modules/Data/Connectors/HTMLTableConnector.js +6 -7
  205. package/es-modules/Data/Connectors/HTMLTableConnectorOptions.d.ts +3 -3
  206. package/es-modules/Data/Connectors/JSONConnector.d.ts +9 -14
  207. package/es-modules/Data/Connectors/JSONConnector.js +6 -7
  208. package/es-modules/Data/Connectors/JSONConnectorOptions.d.ts +3 -3
  209. package/es-modules/Data/Converters/CSVConverter.d.ts +5 -5
  210. package/es-modules/Data/Converters/CSVConverter.js +6 -7
  211. package/es-modules/Data/Converters/CSVConverterOptions.d.ts +5 -5
  212. package/es-modules/Data/Converters/DataConverter.d.ts +76 -78
  213. package/es-modules/Data/Converters/DataConverter.js +29 -56
  214. package/es-modules/Data/Converters/DataConverterType.d.ts +3 -3
  215. package/es-modules/Data/Converters/DataConverterUtils.d.ts +88 -81
  216. package/es-modules/Data/Converters/DataConverterUtils.js +172 -184
  217. package/es-modules/Data/Converters/GoogleSheetsConverter.d.ts +4 -4
  218. package/es-modules/Data/Converters/GoogleSheetsConverter.js +6 -6
  219. package/es-modules/Data/Converters/GoogleSheetsConverterOptions.d.ts +5 -5
  220. package/es-modules/Data/Converters/HTMLTableConverter.d.ts +4 -4
  221. package/es-modules/Data/Converters/HTMLTableConverter.js +5 -6
  222. package/es-modules/Data/Converters/HTMLTableConverterOptions.d.ts +5 -5
  223. package/es-modules/Data/Converters/JSONConverter.d.ts +7 -7
  224. package/es-modules/Data/Converters/JSONConverter.js +9 -9
  225. package/es-modules/Data/Converters/JSONConverterOptions.d.ts +5 -5
  226. package/es-modules/Data/DataCursor.d.ts +65 -70
  227. package/es-modules/Data/DataCursor.js +122 -142
  228. package/es-modules/Data/DataEvent.d.ts +55 -57
  229. package/es-modules/Data/DataEvent.js +3 -3
  230. package/es-modules/Data/DataPool.d.ts +10 -17
  231. package/es-modules/Data/DataPool.js +23 -12
  232. package/es-modules/Data/DataPoolOptions.d.ts +3 -3
  233. package/es-modules/Data/DataTable.d.ts +115 -117
  234. package/es-modules/Data/DataTable.js +67 -33
  235. package/es-modules/Data/DataTableCore.d.ts +11 -11
  236. package/es-modules/Data/DataTableCore.js +7 -7
  237. package/es-modules/Data/DataTableOptions.js +3 -3
  238. package/es-modules/Data/Formula/Formula.js +3 -3
  239. package/es-modules/Data/Formula/FormulaParser.js +4 -5
  240. package/es-modules/Data/Formula/FormulaProcessor.js +4 -5
  241. package/es-modules/Data/Formula/FormulaTypes.js +3 -3
  242. package/es-modules/Data/Formula/Functions/ABS.js +3 -3
  243. package/es-modules/Data/Formula/Functions/AND.js +3 -3
  244. package/es-modules/Data/Formula/Functions/AVERAGE.js +3 -3
  245. package/es-modules/Data/Formula/Functions/AVERAGEA.js +3 -3
  246. package/es-modules/Data/Formula/Functions/COUNT.js +3 -3
  247. package/es-modules/Data/Formula/Functions/COUNTA.js +3 -3
  248. package/es-modules/Data/Formula/Functions/IF.js +3 -3
  249. package/es-modules/Data/Formula/Functions/ISNA.js +3 -3
  250. package/es-modules/Data/Formula/Functions/MAX.js +3 -3
  251. package/es-modules/Data/Formula/Functions/MEDIAN.js +3 -3
  252. package/es-modules/Data/Formula/Functions/MIN.js +3 -3
  253. package/es-modules/Data/Formula/Functions/MOD.js +3 -3
  254. package/es-modules/Data/Formula/Functions/MODE.js +3 -3
  255. package/es-modules/Data/Formula/Functions/NOT.js +3 -3
  256. package/es-modules/Data/Formula/Functions/OR.js +3 -3
  257. package/es-modules/Data/Formula/Functions/PRODUCT.js +3 -3
  258. package/es-modules/Data/Formula/Functions/SUM.js +3 -3
  259. package/es-modules/Data/Formula/Functions/XOR.js +3 -3
  260. package/es-modules/Data/Modifiers/ChainModifier.d.ts +29 -34
  261. package/es-modules/Data/Modifiers/ChainModifier.js +10 -11
  262. package/es-modules/Data/Modifiers/ChainModifierOptions.js +3 -3
  263. package/es-modules/Data/Modifiers/DataModifier.d.ts +36 -41
  264. package/es-modules/Data/Modifiers/DataModifier.js +34 -56
  265. package/es-modules/Data/Modifiers/DataModifierEvent.js +3 -3
  266. package/es-modules/Data/Modifiers/DataModifierOptions.js +3 -3
  267. package/es-modules/Data/Modifiers/DataModifierType.d.ts +3 -3
  268. package/es-modules/Data/Modifiers/FilterModifier.d.ts +4 -4
  269. package/es-modules/Data/Modifiers/FilterModifier.js +6 -7
  270. package/es-modules/Data/Modifiers/FilterModifierOptions.d.ts +3 -2
  271. package/es-modules/Data/Modifiers/FilterModifierOptions.js +3 -3
  272. package/es-modules/Data/Modifiers/InvertModifier.d.ts +4 -4
  273. package/es-modules/Data/Modifiers/InvertModifier.js +6 -7
  274. package/es-modules/Data/Modifiers/InvertModifierOptions.js +3 -3
  275. package/es-modules/Data/Modifiers/MathModifier.d.ts +5 -4
  276. package/es-modules/Data/Modifiers/MathModifier.js +3 -3
  277. package/es-modules/Data/Modifiers/MathModifierOptions.js +3 -3
  278. package/es-modules/Data/Modifiers/RangeModifier.d.ts +4 -4
  279. package/es-modules/Data/Modifiers/RangeModifier.js +6 -7
  280. package/es-modules/Data/Modifiers/RangeModifierOptions.js +3 -3
  281. package/es-modules/Data/Modifiers/SortModifier.d.ts +6 -11
  282. package/es-modules/Data/Modifiers/SortModifier.js +35 -10
  283. package/es-modules/Data/Modifiers/SortModifierOptions.d.ts +43 -6
  284. package/es-modules/Data/Modifiers/SortModifierOptions.js +3 -3
  285. package/es-modules/Grid/Core/Accessibility/A11yOptions.d.ts +77 -0
  286. package/es-modules/Grid/Core/Accessibility/A11yOptions.js +4 -3
  287. package/es-modules/Grid/Core/Accessibility/Accessibility.d.ts +68 -1
  288. package/es-modules/Grid/Core/Accessibility/Accessibility.js +179 -7
  289. package/es-modules/Grid/Core/Credits.js +3 -3
  290. package/es-modules/Grid/Core/Data/DataProvider.d.ts +97 -0
  291. package/es-modules/Grid/Core/Data/DataProvider.js +89 -0
  292. package/es-modules/Grid/Core/Data/DataProviderRegistry.d.ts +20 -0
  293. package/es-modules/Grid/Core/Data/DataProviderRegistry.js +52 -0
  294. package/es-modules/Grid/Core/Data/DataProviderType.d.ts +19 -0
  295. package/es-modules/Grid/Core/Data/DataProviderType.js +15 -0
  296. package/es-modules/Grid/Core/Data/LocalDataProvider.d.ts +165 -0
  297. package/es-modules/Grid/Core/Data/LocalDataProvider.js +341 -0
  298. package/es-modules/Grid/Core/Defaults.js +21 -7
  299. package/es-modules/Grid/Core/Globals.d.ts +20 -16
  300. package/es-modules/Grid/Core/Globals.js +13 -11
  301. package/es-modules/Grid/Core/Grid.d.ts +43 -23
  302. package/es-modules/Grid/Core/Grid.js +316 -136
  303. package/es-modules/Grid/Core/GridUtils.d.ts +33 -0
  304. package/es-modules/Grid/Core/GridUtils.js +53 -6
  305. package/es-modules/Grid/Core/Options.d.ts +162 -5
  306. package/es-modules/Grid/Core/Options.js +3 -3
  307. package/es-modules/Grid/Core/Pagination/Pagination.d.ts +3 -0
  308. package/es-modules/Grid/Core/Pagination/Pagination.js +66 -26
  309. package/es-modules/Grid/Core/Pagination/PaginationOptions.d.ts +4 -40
  310. package/es-modules/Grid/Core/Pagination/PaginationOptions.js +11 -0
  311. package/es-modules/Grid/Core/Querying/FilteringController.js +4 -5
  312. package/es-modules/Grid/Core/Querying/PaginationController.d.ts +2 -2
  313. package/es-modules/Grid/Core/Querying/PaginationController.js +6 -6
  314. package/es-modules/Grid/Core/Querying/QueryingController.d.ts +1 -1
  315. package/es-modules/Grid/Core/Querying/QueryingController.js +5 -29
  316. package/es-modules/Grid/Core/Querying/SortingController.d.ts +15 -0
  317. package/es-modules/Grid/Core/Querying/SortingController.js +89 -51
  318. package/es-modules/Grid/Core/Responsive/ResponsiveComposition.d.ts +53 -0
  319. package/es-modules/Grid/Core/Responsive/ResponsiveComposition.js +229 -0
  320. package/es-modules/Grid/Core/Responsive/ResponsiveOptions.d.ts +58 -0
  321. package/es-modules/Grid/Core/Responsive/ResponsiveOptions.js +15 -0
  322. package/es-modules/Grid/Core/Table/Actions/ColumnFiltering/ColumnFiltering.js +5 -6
  323. package/es-modules/Grid/Core/Table/Actions/ColumnFiltering/FilterCell.d.ts +3 -3
  324. package/es-modules/Grid/Core/Table/Actions/ColumnFiltering/FilterCell.js +6 -7
  325. package/es-modules/Grid/Core/Table/Actions/ColumnFiltering/FilterRow.d.ts +1 -1
  326. package/es-modules/Grid/Core/Table/Actions/ColumnFiltering/FilterRow.js +5 -5
  327. package/es-modules/Grid/Core/Table/Actions/ColumnFiltering/FilteringTypes.js +3 -3
  328. package/es-modules/Grid/Core/Table/Actions/ColumnSorting.d.ts +29 -3
  329. package/es-modules/Grid/Core/Table/Actions/ColumnSorting.js +136 -26
  330. package/es-modules/Grid/Core/Table/Actions/ColumnsResizer.js +4 -6
  331. package/es-modules/Grid/Core/Table/Actions/RowsVirtualizer.d.ts +94 -3
  332. package/es-modules/Grid/Core/Table/Actions/RowsVirtualizer.js +481 -91
  333. package/es-modules/Grid/Core/Table/Body/CellContextMenu.d.ts +11 -0
  334. package/es-modules/Grid/Core/Table/Body/CellContextMenu.js +84 -0
  335. package/es-modules/Grid/Core/Table/Body/TableCell.d.ts +36 -15
  336. package/es-modules/Grid/Core/Table/Body/TableCell.js +89 -33
  337. package/es-modules/Grid/Core/Table/Body/TableRow.d.ts +15 -5
  338. package/es-modules/Grid/Core/Table/Body/TableRow.js +70 -19
  339. package/es-modules/Grid/Core/Table/Cell.d.ts +16 -10
  340. package/es-modules/Grid/Core/Table/Cell.js +41 -6
  341. package/es-modules/Grid/Core/Table/CellContent/CellContent.js +3 -3
  342. package/es-modules/Grid/Core/Table/CellContent/TextContent.js +7 -12
  343. package/es-modules/Grid/Core/Table/Column.d.ts +11 -5
  344. package/es-modules/Grid/Core/Table/Column.js +26 -37
  345. package/es-modules/Grid/Core/Table/ColumnResizing/AdjacentResizingMode.js +3 -3
  346. package/es-modules/Grid/Core/Table/ColumnResizing/ColumnResizing.js +3 -3
  347. package/es-modules/Grid/Core/Table/ColumnResizing/DistributedResizingMode.js +3 -3
  348. package/es-modules/Grid/Core/Table/ColumnResizing/IndependentResizingMode.js +12 -11
  349. package/es-modules/Grid/Core/Table/ColumnResizing/ResizingMode.js +7 -6
  350. package/es-modules/Grid/Core/Table/Header/ColumnToolbar/ColumnToolbar.d.ts +5 -0
  351. package/es-modules/Grid/Core/Table/Header/ColumnToolbar/ColumnToolbar.js +21 -7
  352. package/es-modules/Grid/Core/Table/Header/ColumnToolbar/FilterPopup.js +4 -5
  353. package/es-modules/Grid/Core/Table/Header/ColumnToolbar/MenuButtons/FilterMenuButton.js +4 -5
  354. package/es-modules/Grid/Core/Table/Header/ColumnToolbar/MenuButtons/SortMenuButton.d.ts +9 -0
  355. package/es-modules/Grid/Core/Table/Header/ColumnToolbar/MenuButtons/SortMenuButton.js +37 -9
  356. package/es-modules/Grid/Core/Table/Header/ColumnToolbar/MenuPopup.js +5 -4
  357. package/es-modules/Grid/Core/Table/Header/ColumnToolbar/StateHelpers.js +11 -7
  358. package/es-modules/Grid/Core/Table/Header/ColumnToolbar/ToolbarButtons/FilterToolbarButton.js +4 -5
  359. package/es-modules/Grid/Core/Table/Header/ColumnToolbar/ToolbarButtons/MenuToolbarButton.js +4 -5
  360. package/es-modules/Grid/Core/Table/Header/ColumnToolbar/ToolbarButtons/SortToolbarButton.d.ts +4 -1
  361. package/es-modules/Grid/Core/Table/Header/ColumnToolbar/ToolbarButtons/SortToolbarButton.js +88 -15
  362. package/es-modules/Grid/Core/Table/Header/HeaderCell.d.ts +8 -3
  363. package/es-modules/Grid/Core/Table/Header/HeaderCell.js +36 -15
  364. package/es-modules/Grid/Core/Table/Header/HeaderRow.js +7 -8
  365. package/es-modules/Grid/Core/Table/Header/TableHeader.d.ts +1 -1
  366. package/es-modules/Grid/Core/Table/Header/TableHeader.js +6 -6
  367. package/es-modules/Grid/Core/Table/Row.d.ts +1 -1
  368. package/es-modules/Grid/Core/Table/Row.js +5 -5
  369. package/es-modules/Grid/Core/Table/Table.d.ts +68 -12
  370. package/es-modules/Grid/Core/Table/Table.js +296 -92
  371. package/es-modules/Grid/Core/UI/Button.js +3 -3
  372. package/es-modules/Grid/Core/UI/ContextMenu.js +3 -3
  373. package/es-modules/Grid/Core/UI/ContextMenuButton.d.ts +6 -7
  374. package/es-modules/Grid/Core/UI/ContextMenuButton.js +8 -6
  375. package/es-modules/Grid/Core/UI/Popup.js +10 -12
  376. package/es-modules/Grid/Core/UI/SvgIcons.d.ts +42 -7
  377. package/es-modules/Grid/Core/UI/SvgIcons.js +209 -36
  378. package/es-modules/Grid/Core/UI/Toolbar.d.ts +5 -0
  379. package/es-modules/Grid/Core/UI/Toolbar.js +3 -3
  380. package/es-modules/Grid/Core/UI/ToolbarButton.d.ts +4 -12
  381. package/es-modules/Grid/Core/UI/ToolbarButton.js +11 -29
  382. package/es-modules/Grid/Pro/CellEditing/CellEditMode.d.ts +4 -45
  383. package/es-modules/Grid/Pro/CellEditing/CellEditMode.js +16 -0
  384. package/es-modules/Grid/Pro/CellEditing/CellEditing.js +13 -13
  385. package/es-modules/Grid/Pro/CellEditing/CellEditingComposition.js +4 -5
  386. package/es-modules/Grid/Pro/CellRendering/CellContentPro.js +3 -3
  387. package/es-modules/Grid/Pro/CellRendering/CellRenderer.js +3 -3
  388. package/es-modules/Grid/Pro/CellRendering/CellRendererRegistry.js +3 -3
  389. package/es-modules/Grid/Pro/CellRendering/CellRendererType.d.ts +1 -34
  390. package/es-modules/Grid/Pro/CellRendering/CellRendererType.js +15 -0
  391. package/es-modules/Grid/Pro/CellRendering/CellRenderersComposition.d.ts +1 -1
  392. package/es-modules/Grid/Pro/CellRendering/CellRenderersComposition.js +7 -5
  393. package/es-modules/Grid/Pro/CellRendering/ContentTypes/CheckboxContent.d.ts +2 -2
  394. package/es-modules/Grid/Pro/CellRendering/ContentTypes/CheckboxContent.js +3 -3
  395. package/es-modules/Grid/Pro/CellRendering/ContentTypes/DateInputContent.js +3 -3
  396. package/es-modules/Grid/Pro/CellRendering/ContentTypes/DateInputContentBase.js +3 -3
  397. package/es-modules/Grid/Pro/CellRendering/ContentTypes/DateTimeInputContent.js +3 -3
  398. package/es-modules/Grid/Pro/CellRendering/ContentTypes/NumberInputContent.js +4 -5
  399. package/es-modules/Grid/Pro/CellRendering/ContentTypes/SelectContent.d.ts +2 -2
  400. package/es-modules/Grid/Pro/CellRendering/ContentTypes/SelectContent.js +3 -3
  401. package/es-modules/Grid/Pro/CellRendering/ContentTypes/SparklineContent.d.ts +7 -5
  402. package/es-modules/Grid/Pro/CellRendering/ContentTypes/SparklineContent.js +4 -5
  403. package/es-modules/Grid/Pro/CellRendering/ContentTypes/TextInputContent.d.ts +2 -2
  404. package/es-modules/Grid/Pro/CellRendering/ContentTypes/TextInputContent.js +4 -5
  405. package/es-modules/Grid/Pro/CellRendering/ContentTypes/TimeInputContent.js +3 -3
  406. package/es-modules/Grid/Pro/CellRendering/Renderers/CheckboxRenderer.js +4 -5
  407. package/es-modules/Grid/Pro/CellRendering/Renderers/DateInputRenderer.js +4 -5
  408. package/es-modules/Grid/Pro/CellRendering/Renderers/DateInputRendererBase.js +3 -3
  409. package/es-modules/Grid/Pro/CellRendering/Renderers/DateTimeInputRenderer.js +4 -5
  410. package/es-modules/Grid/Pro/CellRendering/Renderers/NumberInputRenderer.js +4 -5
  411. package/es-modules/Grid/Pro/CellRendering/Renderers/SelectRenderer.js +4 -5
  412. package/es-modules/Grid/Pro/CellRendering/Renderers/SparklineRenderer.d.ts +4 -4
  413. package/es-modules/Grid/Pro/CellRendering/Renderers/SparklineRenderer.js +4 -5
  414. package/es-modules/Grid/Pro/CellRendering/Renderers/TextInputRenderer.js +4 -5
  415. package/es-modules/Grid/Pro/CellRendering/Renderers/TextRenderer.js +4 -5
  416. package/es-modules/Grid/Pro/CellRendering/Renderers/TimeInputRenderer.js +4 -5
  417. package/es-modules/Grid/Pro/ColumnTypes/Validator.d.ts +10 -1
  418. package/es-modules/Grid/Pro/ColumnTypes/Validator.js +56 -12
  419. package/es-modules/Grid/Pro/ColumnTypes/ValidatorComposition.d.ts +1 -1
  420. package/es-modules/Grid/Pro/ColumnTypes/ValidatorComposition.js +6 -7
  421. package/es-modules/Grid/Pro/Credits/CreditsPro.js +3 -3
  422. package/es-modules/Grid/Pro/Credits/CreditsProComposition.js +4 -6
  423. package/es-modules/Grid/Pro/Data/DataSourceHelper.d.ts +74 -0
  424. package/es-modules/Grid/Pro/Data/DataSourceHelper.js +246 -0
  425. package/es-modules/Grid/Pro/Data/QuerySerializer.d.ts +46 -0
  426. package/es-modules/Grid/Pro/Data/QuerySerializer.js +169 -0
  427. package/es-modules/Grid/Pro/Data/RemoteDataProvider.d.ts +187 -0
  428. package/es-modules/Grid/Pro/Data/RemoteDataProvider.js +500 -0
  429. package/es-modules/Grid/Pro/Export/Exporting.js +5 -7
  430. package/es-modules/Grid/Pro/Export/ExportingComposition.js +4 -5
  431. package/es-modules/Grid/Pro/GridEvents.d.ts +1 -0
  432. package/es-modules/Grid/Pro/GridEvents.js +4 -5
  433. package/es-modules/Grid/Pro/Pagination/PaginationComposition.d.ts +0 -1
  434. package/es-modules/Grid/Pro/Pagination/PaginationComposition.js +4 -5
  435. package/es-modules/Grid/index.js +3 -3
  436. package/es-modules/Shared/BaseForm.js +4 -5
  437. package/es-modules/Shared/DownloadURL.d.ts +1 -85
  438. package/es-modules/Shared/DownloadURL.js +15 -13
  439. package/es-modules/Shared/LangOptionsCore.d.ts +4 -3
  440. package/es-modules/Shared/TimeBase.d.ts +1 -46
  441. package/es-modules/Shared/TimeBase.js +11 -10
  442. package/es-modules/Shared/Types.d.ts +11 -3
  443. package/es-modules/Shared/Utilities.d.ts +576 -0
  444. package/es-modules/Shared/Utilities.js +1368 -0
  445. package/es-modules/masters/grid-pro.src.d.ts +18 -19
  446. package/es-modules/masters/grid-pro.src.js +24 -9
  447. package/grid-pro.d.ts +18 -19
  448. package/grid-pro.js +6 -5
  449. package/grid-pro.js.map +1 -1
  450. package/grid-pro.src.d.ts +18 -19
  451. package/grid-pro.src.js +8132 -4531
  452. package/package.json +1 -1
  453. package/es-modules/Grid/Core/Pagination/Icons.d.ts +0 -7
  454. package/es-modules/Grid/Core/Pagination/Icons.js +0 -7
  455. package/es-modules/Grid/Pro/highcharts.d.ts +0 -7
@@ -0,0 +1,724 @@
1
+ import type { AlignValue, VerticalAlignValue } from './Renderer/AlignObject';
2
+ import type AnimationOptions from './Animation/AnimationOptions';
3
+ import type ColorType from './Color/ColorType';
4
+ import type CSSObject from './Renderer/CSSObject';
5
+ import type F from './Templating';
6
+ import type Point from './Series/Point';
7
+ import type ShadowOptionsObject from './Renderer/ShadowOptionsObject';
8
+ import type Time from './Time';
9
+ import type Tooltip from './Tooltip';
10
+ declare module './Options' {
11
+ interface Options {
12
+ tooltip?: TooltipOptions;
13
+ }
14
+ }
15
+ declare module './Series/SeriesOptions' {
16
+ interface SeriesOptions {
17
+ /**
18
+ * A configuration object for the tooltip rendering of each single
19
+ * series. Properties are inherited from [tooltip](#tooltip), but only
20
+ * the following properties can be defined on a series level.
21
+ *
22
+ * @since 2.3
23
+ */
24
+ tooltip?: SeriesTooltipOptions;
25
+ }
26
+ }
27
+ export interface SeriesTooltipOptions extends Partial<TooltipOptions> {
28
+ animation?: undefined;
29
+ backgroundColor?: undefined;
30
+ borderColor?: undefined;
31
+ borderRadius?: undefined;
32
+ borderWidth?: undefined;
33
+ className?: undefined;
34
+ crosshairs?: undefined;
35
+ enabled?: undefined;
36
+ fixed?: undefined;
37
+ formatter?: undefined;
38
+ headerShape?: undefined;
39
+ hideDelay?: undefined;
40
+ outside?: undefined;
41
+ padding?: undefined;
42
+ positioner?: undefined;
43
+ shadow?: undefined;
44
+ shape?: undefined;
45
+ shared?: undefined;
46
+ showDelay?: number;
47
+ snap?: undefined;
48
+ split?: undefined;
49
+ stickOnContact?: undefined;
50
+ style?: undefined;
51
+ useHTML?: undefined;
52
+ }
53
+ /**
54
+ * Options for the tooltip that appears when the user hovers over a
55
+ * series or point.
56
+ */
57
+ export interface TooltipOptions {
58
+ /**
59
+ * Enable or disable animation of the tooltip.
60
+ *
61
+ * @since 2.3.0
62
+ */
63
+ animation: boolean | Partial<AnimationOptions>;
64
+ /**
65
+ * The background color or gradient for the tooltip.
66
+ *
67
+ * In styled mode, the stroke width is set in the
68
+ * `.highcharts-tooltip-box` class.
69
+ *
70
+ * @sample {highcharts} highcharts/tooltip/backgroundcolor-solid/
71
+ * Yellowish background
72
+ * @sample {highcharts} highcharts/tooltip/backgroundcolor-gradient/
73
+ * Gradient
74
+ * @sample {highcharts} highcharts/css/tooltip-border-background/
75
+ * Tooltip in styled mode
76
+ * @sample {highstock} stock/tooltip/general/
77
+ * Custom tooltip
78
+ * @sample {highstock} highcharts/css/tooltip-border-background/
79
+ * Tooltip in styled mode
80
+ * @sample {highmaps} maps/tooltip/background-border/
81
+ * Background and border demo
82
+ * @sample {highmaps} highcharts/css/tooltip-border-background/
83
+ * Tooltip in styled mode
84
+ */
85
+ backgroundColor: ColorType;
86
+ /**
87
+ * The color of the tooltip border. When `undefined`, the border takes
88
+ * the color of the corresponding series or point.
89
+ *
90
+ * Note that the [borderWidth](#tooltip.borderWidth) is usually 0 by
91
+ * default, so the border color may not be visible until a border width
92
+ * is set.
93
+ *
94
+ * @sample {highcharts} highcharts/tooltip/bordercolor-default/ Follow
95
+ * series by default
96
+ * @sample {highcharts} highcharts/tooltip/bordercolor-black/ Black
97
+ * border
98
+ * @sample {highstock} stock/tooltip/general/ Styled tooltip
99
+ * @sample {highmaps} maps/tooltip/background-border/ Background and
100
+ * border demo
101
+ */
102
+ borderColor?: ColorType;
103
+ /**
104
+ * The radius of the rounded border corners.
105
+ *
106
+ * @sample {highcharts} highcharts/tooltip/bordercolor-default/
107
+ * Default border radius
108
+ * @sample {highcharts} highcharts/tooltip/borderradius-0/
109
+ * Square borders
110
+ * @sample {highmaps} maps/tooltip/background-border/
111
+ * Background and border demo
112
+ *
113
+ * @default 3
114
+ */
115
+ borderRadius: number;
116
+ /**
117
+ * The pixel width of the tooltip border. Defaults to 0 for single
118
+ * tooltips and fixed tooltips, otherwise 1 for split tooltips.
119
+ *
120
+ * In styled mode, the stroke width is set in the
121
+ * `.highcharts-tooltip-box` class.
122
+ *
123
+ * @sample {highcharts} highcharts/tooltip/bordercolor-default/
124
+ * 2 pixels
125
+ * @sample {highcharts} highcharts/tooltip/borderwidth/
126
+ * No border (shadow only)
127
+ * @sample {highcharts} highcharts/css/tooltip-border-background/
128
+ * Tooltip in styled mode
129
+ * @sample {highstock} stock/tooltip/general/
130
+ * Custom tooltip
131
+ * @sample {highstock} highcharts/css/tooltip-border-background/
132
+ * Tooltip in styled mode
133
+ * @sample {highmaps} maps/tooltip/background-border/
134
+ * Background and border demo
135
+ * @sample {highmaps} highcharts/css/tooltip-border-background/
136
+ * Tooltip in styled mode
137
+ */
138
+ borderWidth?: number;
139
+ /**
140
+ * A CSS class name to apply to the tooltip's container div,
141
+ * allowing unique CSS styling for each chart.
142
+ */
143
+ className?: string;
144
+ /**
145
+ * How many decimals to show for the `point.change`
146
+ * or the `point.cumulativeSum` value when the `series.compare`
147
+ * or the `series.cumulative` option is set.
148
+ * This is overridable in each series' tooltip options object.
149
+ *
150
+ * @default 2
151
+ * @since 1.0.1
152
+ * @product highstock
153
+ */
154
+ changeDecimals?: number;
155
+ /**
156
+ * Since 4.1, the crosshair definitions are moved to the Axis object
157
+ * in order for a better separation from the tooltip. See
158
+ * [xAxis.crosshair](#xAxis.crosshair).
159
+ *
160
+ * @sample {highcharts} highcharts/tooltip/crosshairs-x/
161
+ * Enable a crosshair for the x value
162
+ *
163
+ * @deprecated
164
+ * @default true
165
+ */
166
+ crosshairs?: any;
167
+ /**
168
+ * For series on datetime axes, the date format in the tooltip's
169
+ * header will by default be guessed based on the closest data points.
170
+ * This member gives the default string representations used for
171
+ * each unit. For an overview of the string or object configuration, see
172
+ * [dateFormat](/class-reference/Highcharts.Time#dateFormat).
173
+ *
174
+ * @see [xAxis.dateTimeLabelFormats](#xAxis.dateTimeLabelFormats)
175
+ *
176
+ * @product highcharts highstock gantt
177
+ */
178
+ dateTimeLabelFormats: Time.DateTimeLabelFormatsOption;
179
+ /**
180
+ * Distance from point to tooltip in pixels.
181
+ *
182
+ * @default 16
183
+ */
184
+ distance?: number;
185
+ /**
186
+ * Enable or disable the tooltip.
187
+ *
188
+ * @sample {highcharts} highcharts/tooltip/enabled/
189
+ * Disabled
190
+ * @sample {highcharts} highcharts/plotoptions/series-point-events-mouseover/
191
+ * Disable tooltip and show values on chart instead
192
+ *
193
+ * @default true
194
+ */
195
+ enabled: boolean;
196
+ /**
197
+ * Whether the tooltip should be fixed to one position in the chart, or
198
+ * located next to the point or mouse. When the tooltip is fixed, the
199
+ * position can be further specified with the
200
+ * [tooltip.position](#tooltip.position) options set.
201
+ *
202
+ * @sample highcharts/tooltip/fixed/
203
+ * Fixed tooltip and position options
204
+ * @sample {highstock} stock/tooltip/fixed/
205
+ * Stock chart with fixed tooltip
206
+ * @sample {highmaps} maps/tooltip/fixed/
207
+ * Map with fixed tooltip
208
+ *
209
+ * @default false
210
+ * @since 12.2.0
211
+ */
212
+ fixed?: boolean;
213
+ /**
214
+ * Whether the tooltip should follow the mouse as it moves across
215
+ * columns, pie slices and other point types with an extent.
216
+ * By default it behaves this way for pie, polygon, map, sankey
217
+ * and wordcloud series by override in the `plotOptions`
218
+ * for those series types.
219
+ *
220
+ * Does not apply if [split](#tooltip.split) is `true`.
221
+ *
222
+ * For touch moves to behave the same way, [followTouchMove](
223
+ * #tooltip.followTouchMove) must be `true` also.
224
+ *
225
+ * @sample highcharts/tooltip/followpointer/
226
+ * Tooltip follow pointer comparison
227
+ *
228
+ * @default {highcharts} false
229
+ * @default {highstock} false
230
+ * @default {highmaps} true
231
+ * @since 3.0
232
+ */
233
+ followPointer?: boolean;
234
+ /**
235
+ * Whether the tooltip should update as the finger moves on a touch
236
+ * device. If this is `true` and [chart.panning](#chart.panning) is
237
+ * set,`followTouchMove` will take over one-finger touches, so the user
238
+ * needs to use two fingers for zooming and panning.
239
+ *
240
+ * Note the difference to [followPointer](#tooltip.followPointer) that
241
+ * only defines the _position_ of the tooltip. If `followPointer` is
242
+ * false in for example a column series, the tooltip will show above or
243
+ * below the column, but as `followTouchMove` is true, the tooltip will
244
+ * jump from column to column as the user swipes across the plot area.
245
+ *
246
+ * @default {highcharts} true
247
+ * @default {highstock} true
248
+ * @default {highmaps} false
249
+ * @since 3.0.1
250
+ */
251
+ followTouchMove?: boolean;
252
+ /**
253
+ * A string to append to the tooltip format.
254
+ *
255
+ * @sample {highcharts} highcharts/tooltip/footerformat/
256
+ * A table for value alignment
257
+ * @sample {highmaps} maps/tooltip/format/
258
+ * Format demo
259
+ *
260
+ * @since 2.2
261
+ */
262
+ footerFormat: string;
263
+ /**
264
+ * A [format string](https://www.highcharts.com/docs/chart-concepts/labels-and-string-formatting)
265
+ * for the whole shared tooltip. When format strings are a requirement,
266
+ * it is usually more convenient to use `headerFormat`, `pointFormat`
267
+ * and `footerFormat`, but the `format` option allows combining them
268
+ * into one setting.
269
+ *
270
+ * The context of the format string is the same as that of the
271
+ * `tooltip.formatter` callback.
272
+ *
273
+ * @sample {highcharts} highcharts/tooltip/format-shared/
274
+ * Format for shared tooltip
275
+ *
276
+ * @since 11.1.0
277
+ */
278
+ format?: string;
279
+ /**
280
+ * Callback function to format the text of the tooltip from scratch. In
281
+ * case of single or [shared](#tooltip.shared) tooltips, a string should
282
+ * be returned. In case of [split](#tooltip.split) tooltips, it should
283
+ * return an array where the first item is the header, and subsequent
284
+ * items are mapped to the points. Return `false` to disable tooltip for
285
+ * a specific point on series.
286
+ *
287
+ * A subset of HTML is supported. Unless `useHTML` is true, the HTML of
288
+ * the tooltip is parsed and converted to SVG, therefore this isn't a
289
+ * complete HTML renderer. The following HTML tags are supported: `b`,
290
+ * `br`, `em`, `i`, `span`, `strong`. Spans can be styled with a `style`
291
+ * attribute, but only text-related CSS, that is shared with SVG, is
292
+ * handled.
293
+ *
294
+ * The context of the formatter (since v12) is the
295
+ * [Point](https://api.highcharts.com/class-reference/Highcharts.Point)
296
+ * instance. If the tooltip is shared or split, an array `this.points`
297
+ * contains all points of the hovered x-value.
298
+ *
299
+ * Common properties from the Point to use in the formatter include:
300
+ *
301
+ * - **Point.percentage**:
302
+ * Stacked series and pies only. The point's percentage of the total.
303
+ *
304
+ * - **Point.points**:
305
+ * In a shared or split tooltip, this is an array containing all the
306
+ * hovered points.
307
+ *
308
+ * - **this.series**:
309
+ * The series object. The series name is available through
310
+ * `this.series.name`.
311
+ *
312
+ * - **this.total**:
313
+ * The total value at this point's x value in a stacked series, or the
314
+ * sum of all slices in a pie series.
315
+ *
316
+ * - **this.x**:
317
+ * The x value.
318
+ *
319
+ * - **this.y**:
320
+ * The y value.
321
+ *
322
+ * @sample {highcharts} highcharts/tooltip/formatter-simple/
323
+ * Simple string formatting
324
+ * @sample {highcharts} highcharts/tooltip/formatter-shared/
325
+ * Formatting with shared tooltip
326
+ * @sample {highcharts|highstock} highcharts/tooltip/formatter-split/
327
+ * Formatting with split tooltip
328
+ * @sample highcharts/tooltip/formatter-conditional-default/
329
+ * Extending default formatter
330
+ * @sample {highstock} stock/tooltip/formatter/
331
+ * Formatting with shared tooltip
332
+ * @sample {highmaps} maps/tooltip/formatter/
333
+ * String formatting
334
+ */
335
+ formatter?: Tooltip.FormatterCallbackFunction;
336
+ /**
337
+ * The HTML of the tooltip header line. The context is the
338
+ * [Point class](https://api.highcharts.com/class-reference/Highcharts.Point).
339
+ * Variables are enclosed in curly brackets. Examples of common
340
+ * variables to include are `x`, `y`, `series.name` and `series.color`
341
+ * and other properties on the same form. The `point.key` variable
342
+ * contains the category name, x value or datetime string depending on
343
+ * the type of axis. For datetime axes, the `point.key` date format can
344
+ * be set using `tooltip.xDateFormat`.
345
+ *
346
+ * @sample {highcharts} highcharts/tooltip/footerformat/
347
+ * An HTML table in the tooltip
348
+ * @sample {highstock} highcharts/tooltip/footerformat/
349
+ * An HTML table in the tooltip
350
+ * @sample {highmaps} maps/tooltip/format/
351
+ * Format demo
352
+ *
353
+ * @default <span style="font-size: 0.8em">{ucfirst point.key}</span><br/>
354
+ */
355
+ headerFormat: string;
356
+ /**
357
+ * The name of a symbol to use for the border around the tooltip
358
+ * header. Applies only when [tooltip.split](#tooltip.split) is
359
+ * enabled.
360
+ *
361
+ * Custom callbacks for symbol path generation can also be added to
362
+ * `Highcharts.SVGRenderer.prototype.symbols` the same way as for
363
+ * [series.marker.symbol](plotOptions.line.marker.symbol).
364
+ *
365
+ * @see [tooltip.shape](#tooltip.shape)
366
+ *
367
+ * @sample {highstock} stock/tooltip/split-positioner/
368
+ * Different shapes for header and split boxes
369
+ *
370
+ * @since 7.0
371
+ */
372
+ headerShape: Tooltip.ShapeValue;
373
+ /**
374
+ * The number of milliseconds to wait until the tooltip is hidden when
375
+ * mouse out from a point or chart.
376
+ *
377
+ * @default 500
378
+ * @since 3.0
379
+ */
380
+ hideDelay: number;
381
+ /**
382
+ * The HTML of the null point's line in the tooltip. Works analogously
383
+ * to [pointFormat](#tooltip.pointFormat).
384
+ *
385
+ * @sample {highcharts} highcharts/series/null-interaction
386
+ * Line chart with null interaction
387
+ * @sample {highcharts} highcharts/plotoptions/series-nullformat
388
+ * Heatmap with null interaction
389
+ */
390
+ nullFormat?: string;
391
+ /**
392
+ * Callback function to format the text of the tooltip for
393
+ * visible null points.
394
+ * Works analogously to [formatter](#tooltip.formatter).
395
+ *
396
+ * @sample highcharts/plotoptions/series-nullformat
397
+ * Format data label and tooltip for null point.
398
+ */
399
+ nullFormatter?: Tooltip.FormatterCallbackFunction;
400
+ /**
401
+ * Whether to allow the tooltip to render outside the chart's SVG
402
+ * element box. By default (`false`), the tooltip is rendered within the
403
+ * chart's SVG element, which results in the tooltip being aligned
404
+ * inside the chart area. For small charts, this may result in clipping
405
+ * or overlapping. When `true`, a separate SVG element is created and
406
+ * overlaid on the page, allowing the tooltip to be aligned inside the
407
+ * page itself. Beware that with this option active, CSS classes on the
408
+ * chart's target container, with classnames matching the pattern
409
+ * 'highcharts-*', will be set on the tooltip as well. This is done to
410
+ * support theming for tooltips with this option.
411
+ *
412
+ * Defaults to `true` if `chart.scrollablePlotArea` is activated,
413
+ * otherwise `false`.
414
+ *
415
+ * @sample highcharts/tooltip/outside
416
+ * Small charts with tooltips outside
417
+ *
418
+ * @since 6.1.1
419
+ */
420
+ outside?: boolean;
421
+ /**
422
+ * Padding inside the tooltip, in pixels.
423
+ *
424
+ * @default 8
425
+ * @since 5.0.0
426
+ */
427
+ padding: number;
428
+ /**
429
+ * The HTML of the point's line in the tooltip. The context is the
430
+ * [Point class](https://api.highcharts.com/class-reference/Highcharts.Point).
431
+ * Variables are enclosed in curly brackets. Examples of common
432
+ * variables to include are `x`, `y`, `series.name` and `series.color`
433
+ * and other properties on the same form. Furthermore, `y` can be
434
+ * extended by the `tooltip.valuePrefix` and `tooltip.valueSuffix`
435
+ * variables. This can also be overridden for each series, which makes
436
+ * it a good hook for displaying units.
437
+ *
438
+ * In styled mode, the dot is colored by a class name rather than the
439
+ * point color.
440
+ *
441
+ * @sample {highcharts} highcharts/tooltip/pointformat/
442
+ * A different point format with value suffix
443
+ * @sample {highcharts|highstock} highcharts/tooltip/pointformat-extra-information/
444
+ * Show extra information about points in the tooltip
445
+ * @sample {highmaps} maps/tooltip/format/
446
+ * Format demo
447
+ *
448
+ * @default <span style="color:{point.color}">\u25CF</span> {series.name}: <b>{point.y}</b><br/>
449
+ * @since 2.2
450
+ */
451
+ pointFormat: string;
452
+ /**
453
+ * A callback function for formatting the HTML output for a single point
454
+ * in the tooltip. Like the `pointFormat` string, but with more
455
+ * flexibility.
456
+ *
457
+ * @since 4.1.0
458
+ */
459
+ pointFormatter?: F.FormatterCallback<Point>;
460
+ /**
461
+ * Positioning options for fixed tooltip, taking effect only when
462
+ * [tooltip.fixed](#tooltip.fixed) is `true`.
463
+ *
464
+ * @sample {highcharts} highcharts/tooltip/fixed/
465
+ * Fixed tooltip and position options
466
+ * @sample {highstock} stock/tooltip/fixed/
467
+ * Stock chart with fixed tooltip
468
+ * @sample {highmaps} maps/tooltip/fixed/
469
+ * Map with fixed tooltip
470
+ *
471
+ * @since 12.2.0
472
+ */
473
+ position: TooltipPositionOptions;
474
+ /**
475
+ * A callback function to place the tooltip in a custom position. The
476
+ * callback receives three parameters: `labelWidth`, `labelHeight` and
477
+ * `point`, where point contains values for `plotX` and `plotY` telling
478
+ * where the reference point is in the plot area. Add `chart.plotLeft`
479
+ * and `chart.plotTop` to get the full coordinates.
480
+ *
481
+ * To find the actual hovered `Point` instance, use
482
+ * `this.chart.hoverPoint`. For shared or split tooltips, all the hover
483
+ * points are available in `this.chart.hoverPoints`.
484
+ *
485
+ * Since v7, when [tooltip.split](#tooltip.split) option is enabled,
486
+ * positioner is called for each of the boxes separately, including
487
+ * xAxis header. xAxis header is not a point, instead `point` argument
488
+ * contains info: `{ plotX: Number, plotY: Number, isHeader: Boolean }`
489
+ *
490
+ * Since v12.2, the [tooltip.fixed](#tooltip.fixed) option combined with
491
+ * [tooltip.position](#tooltip.position) covers most of the use cases
492
+ * for custom tooltip positioning.
493
+ *
494
+ * The return should be an object containing x and y values, for example
495
+ * `{ x: 100, y: 100 }`.
496
+ *
497
+ * @sample {highcharts} highcharts/tooltip/positioner/
498
+ * A fixed tooltip position
499
+ * @sample {highstock} stock/tooltip/positioner/
500
+ * A fixed tooltip position on top of the chart
501
+ * @sample {highmaps} maps/tooltip/positioner/
502
+ * A fixed tooltip position
503
+ * @sample {highstock} stock/tooltip/split-positioner/
504
+ * Split tooltip with fixed positions
505
+ * @sample {highstock} stock/tooltip/positioner-scrollable-plotarea/
506
+ * Scrollable plot area combined with tooltip positioner
507
+ *
508
+ * @see [position](#tooltip.position)
509
+ *
510
+ * @since 2.2.4
511
+ */
512
+ positioner?: Tooltip.PositionerCallbackFunction;
513
+ /**
514
+ * Whether to apply a drop shadow to the tooltip. Defaults to true,
515
+ * unless the tooltip is [fixed](#tooltip.fixed).
516
+ *
517
+ * @sample {highcharts} highcharts/tooltip/bordercolor-default/
518
+ * True by default
519
+ * @sample {highcharts} highcharts/tooltip/shadow/
520
+ * False
521
+ * @sample {highmaps} maps/tooltip/positioner/
522
+ * Fixed tooltip position, border and shadow disabled
523
+ */
524
+ shadow?: (boolean | Partial<ShadowOptionsObject>);
525
+ /**
526
+ * The name of a symbol to use for the border around the tooltip. Can
527
+ * be one of: `"callout"`, `"circle"` or `"rect"`. When
528
+ * [tooltip.split](#tooltip.split)
529
+ * option is enabled, shape is applied to all boxes except header, which
530
+ * is controlled by
531
+ * [tooltip.headerShape](#tooltip.headerShape).
532
+ *
533
+ * Custom callbacks for symbol path generation can also be added to
534
+ * `Highcharts.SVGRenderer.prototype.symbols` the same way as for
535
+ * [series.marker.symbol](plotOptions.line.marker.symbol).
536
+ *
537
+ * Defaults to `callout` for floating tooltip, `rect` for
538
+ * [fixed](#tooltip.fixed) tooltip.
539
+ *
540
+ * @since 4.0
541
+ */
542
+ shape?: Tooltip.ShapeValue;
543
+ /**
544
+ * Shows information in the tooltip for all points with the same X
545
+ * value. When the tooltip is shared, the entire plot area will capture
546
+ * mouse movement or touch events. Tooltip texts for series types with
547
+ * ordered data (not pie, scatter, flags etc) will be shown in a single
548
+ * bubble. This is recommended for single series charts and for
549
+ * tablet/mobile optimized charts.
550
+ *
551
+ * See also [tooltip.split](#tooltip.split), that is better suited for
552
+ * charts with many series, especially line-type series. The
553
+ * `tooltip.split` option takes precedence over `tooltip.shared`.
554
+ *
555
+ * @sample {highcharts} highcharts/tooltip/shared-false/
556
+ * False by default
557
+ * @sample {highcharts} highcharts/tooltip/shared-true/
558
+ * True
559
+ * @sample {highcharts} highcharts/tooltip/shared-x-crosshair/
560
+ * True with x axis crosshair
561
+ * @sample {highcharts} highcharts/tooltip/shared-true-mixed-types/
562
+ * True with mixed series types
563
+ *
564
+ * @since 2.1
565
+ * @product highcharts highstock
566
+ */
567
+ shared: boolean;
568
+ /**
569
+ * The number of milliseconds to wait until the crosshair is shown when
570
+ * mouse over a point. Works on initial hover.
571
+ *
572
+ * @sample {highcharts|highstock} highcharts/tooltip/showdelay/
573
+ *
574
+ * @default 0
575
+ * @since next
576
+ */
577
+ showDelay?: number;
578
+ /**
579
+ * Proximity snap for graphs or single points. It defaults to 10 for
580
+ * mouse-powered devices and 25 for touch devices.
581
+ *
582
+ * Note that in most cases the whole plot area captures the mouse
583
+ * movement, and in these cases `tooltip.snap` doesn't make sense. This
584
+ * applies when [stickyTracking](#plotOptions.series.stickyTracking)
585
+ * is `true` (default) and when the tooltip is [shared](#tooltip.shared)
586
+ * or [split](#tooltip.split).
587
+ *
588
+ * @sample {highcharts} highcharts/tooltip/bordercolor-default/
589
+ * 10 px by default
590
+ * @sample {highcharts} highcharts/tooltip/snap-50/
591
+ * 50 px on graph
592
+ *
593
+ * @default 10
594
+ * Desktop
595
+ * @default 25
596
+ * Mobile
597
+ * @since 1.2.0
598
+ * @product highcharts highstock
599
+ */
600
+ snap: number;
601
+ /**
602
+ * Shows tooltip for all points with the same X value. Splits the
603
+ * tooltip into one label per series, with the header close to the axis.
604
+ * This is recommended over [shared](#tooltip.shared)
605
+ * tooltips for charts with multiple line series, generally making them
606
+ * easier to read. This option takes precedence over `tooltip.shared`.
607
+ *
608
+ * Not supported for [polar](#chart.polar) and [inverted](#chart.inverted) charts.
609
+ *
610
+ * @productdesc {highstock} In Highcharts Stock, tooltips are split
611
+ * by default since v6.0.0. Stock charts typically contain
612
+ * multi-dimension points and multiple panes, making split tooltips
613
+ * the preferred layout over
614
+ * the previous `shared` tooltip.
615
+ *
616
+ * @sample highcharts/tooltip/split/
617
+ * Split tooltip
618
+ * @sample {highcharts|highstock} highcharts/tooltip/formatter-split/
619
+ * Split tooltip and custom formatter callback
620
+ *
621
+ * @default {highcharts} false
622
+ * @default {highstock} true
623
+ * @since 5.0.0
624
+ * @product highcharts highstock
625
+ */
626
+ split?: boolean;
627
+ /**
628
+ * Prevents the tooltip from switching or closing, when touched or
629
+ * pointed.
630
+ *
631
+ * @sample highcharts/tooltip/stickoncontact/
632
+ * Tooltip sticks on pointer contact
633
+ *
634
+ * @since 8.0.1
635
+ */
636
+ stickOnContact: boolean;
637
+ /**
638
+ * CSS styles for the tooltip. The tooltip can also be styled through
639
+ * the CSS class `.highcharts-tooltip`.
640
+ *
641
+ * Note that the default `pointerEvents` style makes the tooltip ignore
642
+ * mouse events, so in order to use clickable tooltips, this value must
643
+ * be set to `auto`.
644
+ *
645
+ * @sample {highcharts} highcharts/tooltip/style/
646
+ * Greater padding, bold text
647
+ */
648
+ style: CSSObject;
649
+ /**
650
+ * Use HTML to render the contents of the tooltip instead of SVG. Using
651
+ * HTML allows advanced formatting like tables and images in the
652
+ * tooltip. It is also recommended for rtl languages as it works around
653
+ * rtl bugs in early Firefox.
654
+ *
655
+ * @sample {highcharts|highstock} highcharts/tooltip/footerformat/
656
+ * A table for value alignment
657
+ * @sample {highcharts|highstock} highcharts/tooltip/fullhtml/
658
+ * Full HTML tooltip
659
+ * @sample {highmaps} maps/tooltip/usehtml/
660
+ * Pure HTML tooltip
661
+ *
662
+ * @default false
663
+ * @since 2.2
664
+ */
665
+ useHTML: boolean;
666
+ /** @deprecated */
667
+ userOptions?: TooltipOptions;
668
+ /**
669
+ * How many decimals to show in each series' y value. This is
670
+ * overridable in each series' tooltip options object. The default is to
671
+ * preserve all decimals.
672
+ *
673
+ * @sample {highcharts|highstock} highcharts/tooltip/valuedecimals/
674
+ * Set decimals, prefix and suffix for the value
675
+ * @sample {highmaps} maps/tooltip/valuedecimals/
676
+ * Set decimals, prefix and suffix for the value
677
+ *
678
+ * @since 2.2
679
+ */
680
+ valueDecimals?: number;
681
+ /**
682
+ * A string to prepend to each series' y value. Overridable in each
683
+ * series' tooltip options object.
684
+ *
685
+ * @sample {highcharts|highstock} highcharts/tooltip/valuedecimals/
686
+ * Set decimals, prefix and suffix for the value
687
+ * @sample {highmaps} maps/tooltip/valuedecimals/
688
+ * Set decimals, prefix and suffix for the value
689
+ *
690
+ * @since 2.2
691
+ */
692
+ valuePrefix?: string;
693
+ /**
694
+ * A string to append to each series' y value. Overridable in each
695
+ * series' tooltip options object.
696
+ *
697
+ * @sample {highcharts|highstock} highcharts/tooltip/valuedecimals/
698
+ * Set decimals, prefix and suffix for the value
699
+ * @sample {highmaps} maps/tooltip/valuedecimals/
700
+ * Set decimals, prefix and suffix for the value
701
+ *
702
+ * @since 2.2
703
+ */
704
+ valueSuffix?: string;
705
+ /**
706
+ * The format for the date in the tooltip header if the X axis is a
707
+ * datetime axis. The default is a best guess based on the smallest
708
+ * distance between points in the chart.
709
+ *
710
+ * @sample {highcharts} highcharts/tooltip/xdateformat/
711
+ * A different format
712
+ *
713
+ * @product highcharts highstock gantt
714
+ */
715
+ xDateFormat?: Time.DateTimeFormat;
716
+ }
717
+ interface TooltipPositionOptions {
718
+ align?: AlignValue;
719
+ relativeTo?: 'chart' | 'pane' | 'plotBox' | 'spacingBox';
720
+ verticalAlign?: VerticalAlignValue;
721
+ x: number;
722
+ y: number;
723
+ }
724
+ export default TooltipOptions;