@gravity-ui/chartkit 8.11.0 → 9.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 (970) hide show
  1. package/LICENSE +1 -0
  2. package/README.md +47 -11
  3. package/build/cjs/components/ChartKit.css +31 -0
  4. package/build/cjs/components/ChartKit.d.ts +11 -0
  5. package/build/cjs/components/ChartKit.js +43 -0
  6. package/build/cjs/components/ChartKit.js.map +1 -0
  7. package/build/cjs/components/ErrorBoundary/ErrorBoundary.d.ts +23 -0
  8. package/build/cjs/components/ErrorBoundary/ErrorBoundary.js +53 -0
  9. package/build/cjs/components/ErrorBoundary/ErrorBoundary.js.map +1 -0
  10. package/build/cjs/components/Loader/Loader.d.ts +9 -0
  11. package/build/cjs/components/Loader/Loader.js +20 -0
  12. package/build/cjs/components/Loader/Loader.js.map +1 -0
  13. package/build/cjs/components/SplitPane/Pane.d.ts +14 -0
  14. package/build/cjs/components/SplitPane/Pane.js +32 -0
  15. package/build/cjs/components/SplitPane/Pane.js.map +1 -0
  16. package/build/cjs/components/SplitPane/Resizer.d.ts +18 -0
  17. package/build/cjs/components/SplitPane/Resizer.js +32 -0
  18. package/build/cjs/components/SplitPane/Resizer.js.map +1 -0
  19. package/build/cjs/components/SplitPane/SplitPane.d.ts +60 -0
  20. package/build/cjs/components/SplitPane/SplitPane.js +259 -0
  21. package/build/cjs/components/SplitPane/SplitPane.js.map +1 -0
  22. package/build/cjs/components/SplitPane/StyledSplitPane.css +45 -0
  23. package/build/cjs/components/SplitPane/StyledSplitPane.d.ts +9 -0
  24. package/build/cjs/components/SplitPane/StyledSplitPane.js +35 -0
  25. package/build/cjs/components/SplitPane/StyledSplitPane.js.map +1 -0
  26. package/build/cjs/components/SplitPane/constants.js +8 -0
  27. package/build/cjs/components/SplitPane/constants.js.map +1 -0
  28. package/build/cjs/components/SplitPane/index.d.ts +8 -0
  29. package/build/cjs/components/SplitPane/index.js +25 -0
  30. package/build/cjs/components/SplitPane/index.js.map +1 -0
  31. package/build/cjs/components/SplitPane/types.d.ts +2 -0
  32. package/build/cjs/components/SplitPane/types.js +3 -0
  33. package/build/cjs/components/SplitPane/types.js.map +1 -0
  34. package/build/cjs/components/SplitTooltip/SplitTooltip.d.ts +63 -0
  35. package/build/cjs/components/SplitTooltip/SplitTooltip.js +141 -0
  36. package/build/cjs/components/SplitTooltip/SplitTooltip.js.map +1 -0
  37. package/build/cjs/components/SplitTooltip/index.d.ts +2 -0
  38. package/build/cjs/components/SplitTooltip/index.js +7 -0
  39. package/build/cjs/components/SplitTooltip/index.js.map +1 -0
  40. package/build/cjs/constants/common.js +6 -0
  41. package/build/cjs/constants/common.js.map +1 -0
  42. package/build/cjs/constants/index.d.ts +3 -0
  43. package/build/cjs/constants/index.js +9 -0
  44. package/build/cjs/constants/index.js.map +1 -0
  45. package/build/cjs/constants/misc.js +23 -0
  46. package/build/cjs/constants/misc.js.map +1 -0
  47. package/build/cjs/constants/widget-data.js +51 -0
  48. package/build/cjs/constants/widget-data.js.map +1 -0
  49. package/build/cjs/hooks/index.d.ts +1 -0
  50. package/build/cjs/hooks/index.js +5 -0
  51. package/build/cjs/hooks/index.js.map +1 -0
  52. package/build/cjs/hooks/misc.js +13 -0
  53. package/build/cjs/hooks/misc.js.map +1 -0
  54. package/build/cjs/i18n/index.d.ts +79 -0
  55. package/build/cjs/i18n/index.js +22 -0
  56. package/build/cjs/i18n/index.js.map +1 -0
  57. package/build/cjs/index.d.ts +8 -0
  58. package/build/cjs/index.js +13 -0
  59. package/build/cjs/index.js.map +1 -0
  60. package/build/cjs/libs/chartkit-error/chartkit-error.js +28 -0
  61. package/build/cjs/libs/chartkit-error/chartkit-error.js.map +1 -0
  62. package/build/cjs/libs/index.d.ts +3 -0
  63. package/build/cjs/libs/index.js +10 -0
  64. package/build/cjs/libs/index.js.map +1 -0
  65. package/build/cjs/libs/settings/eventEmitter.js +28 -0
  66. package/build/cjs/libs/settings/eventEmitter.js.map +1 -0
  67. package/build/cjs/libs/settings/mergeSettingStrategy.js +35 -0
  68. package/build/cjs/libs/settings/mergeSettingStrategy.js.map +1 -0
  69. package/build/cjs/libs/settings/settings.d.ts +22 -0
  70. package/build/cjs/libs/settings/settings.js +46 -0
  71. package/build/cjs/libs/settings/settings.js.map +1 -0
  72. package/build/cjs/package.json +1 -0
  73. package/build/cjs/plugins/gravity-charts/index.d.ts +5 -0
  74. package/build/cjs/plugins/gravity-charts/index.js +19 -0
  75. package/build/cjs/plugins/gravity-charts/index.js.map +1 -0
  76. package/build/cjs/plugins/gravity-charts/renderer/GravityChartsWidget.d.ts +21 -0
  77. package/build/cjs/plugins/gravity-charts/renderer/GravityChartsWidget.js +72 -0
  78. package/build/cjs/plugins/gravity-charts/renderer/GravityChartsWidget.js.map +1 -0
  79. package/build/cjs/plugins/gravity-charts/renderer/utils.d.ts +2 -0
  80. package/build/cjs/plugins/gravity-charts/renderer/utils.js +20 -0
  81. package/build/cjs/plugins/gravity-charts/renderer/utils.js.map +1 -0
  82. package/build/cjs/plugins/gravity-charts/renderer/withSplitPane/TooltipContent.js +17 -0
  83. package/build/cjs/plugins/gravity-charts/renderer/withSplitPane/TooltipContent.js.map +1 -0
  84. package/build/cjs/plugins/gravity-charts/renderer/withSplitPane/useViewportSplitTooltipLayout.d.ts +3 -0
  85. package/build/cjs/plugins/gravity-charts/renderer/withSplitPane/useViewportSplitTooltipLayout.js +35 -0
  86. package/build/cjs/plugins/gravity-charts/renderer/withSplitPane/useViewportSplitTooltipLayout.js.map +1 -0
  87. package/build/cjs/plugins/gravity-charts/renderer/withSplitPane/withSplitPane.d.ts +8 -0
  88. package/build/cjs/plugins/gravity-charts/renderer/withSplitPane/withSplitPane.js +75 -0
  89. package/build/cjs/plugins/gravity-charts/renderer/withSplitPane/withSplitPane.js.map +1 -0
  90. package/build/cjs/plugins/gravity-charts/types.d.ts +6 -0
  91. package/build/cjs/plugins/gravity-charts/types.js +3 -0
  92. package/build/cjs/plugins/gravity-charts/types.js.map +1 -0
  93. package/build/cjs/plugins/highcharts/index.d.ts +4 -0
  94. package/build/cjs/plugins/highcharts/index.js +15 -0
  95. package/build/cjs/plugins/highcharts/index.js.map +1 -0
  96. package/build/cjs/plugins/highcharts/renderer/HighchartsWidget.d.ts +31 -0
  97. package/build/cjs/plugins/highcharts/renderer/HighchartsWidget.js +10 -0
  98. package/build/cjs/plugins/highcharts/renderer/HighchartsWidget.js.map +1 -0
  99. package/build/cjs/plugins/highcharts/renderer/components/HighchartsComponent.d.ts +579 -0
  100. package/build/cjs/plugins/highcharts/renderer/components/HighchartsComponent.js +157 -0
  101. package/build/cjs/plugins/highcharts/renderer/components/HighchartsComponent.js.map +1 -0
  102. package/build/cjs/plugins/highcharts/renderer/components/HighchartsReact.d.ts +20 -0
  103. package/build/cjs/plugins/highcharts/renderer/components/HighchartsReact.js +78 -0
  104. package/build/cjs/plugins/highcharts/renderer/components/HighchartsReact.js.map +1 -0
  105. package/build/cjs/plugins/highcharts/renderer/components/useElementSize.js +55 -0
  106. package/build/cjs/plugins/highcharts/renderer/components/useElementSize.js.map +1 -0
  107. package/build/cjs/plugins/highcharts/renderer/components/withSplitPane/withSplitPane.d.ts +18 -0
  108. package/build/cjs/plugins/highcharts/renderer/components/withSplitPane/withSplitPane.js +221 -0
  109. package/build/cjs/plugins/highcharts/renderer/components/withSplitPane/withSplitPane.js.map +1 -0
  110. package/build/cjs/plugins/highcharts/renderer/helpers/add-holidays.d.ts +3 -0
  111. package/build/cjs/plugins/highcharts/renderer/helpers/add-holidays.js +47 -0
  112. package/build/cjs/plugins/highcharts/renderer/helpers/add-holidays.js.map +1 -0
  113. package/build/cjs/plugins/highcharts/renderer/helpers/comments/drawing.js +577 -0
  114. package/build/cjs/plugins/highcharts/renderer/helpers/comments/drawing.js.map +1 -0
  115. package/build/cjs/plugins/highcharts/renderer/helpers/config/config.js +1579 -0
  116. package/build/cjs/plugins/highcharts/renderer/helpers/config/config.js.map +1 -0
  117. package/build/cjs/plugins/highcharts/renderer/helpers/config/handleLegendItemClick.js +81 -0
  118. package/build/cjs/plugins/highcharts/renderer/helpers/config/handleLegendItemClick.js.map +1 -0
  119. package/build/cjs/plugins/highcharts/renderer/helpers/config/options.js +351 -0
  120. package/build/cjs/plugins/highcharts/renderer/helpers/config/options.js.map +1 -0
  121. package/build/cjs/plugins/highcharts/renderer/helpers/config/types.js +3 -0
  122. package/build/cjs/plugins/highcharts/renderer/helpers/config/types.js.map +1 -0
  123. package/build/cjs/plugins/highcharts/renderer/helpers/config/utils/addShowInNavigatorToSeries.d.ts +10 -0
  124. package/build/cjs/plugins/highcharts/renderer/helpers/config/utils/addShowInNavigatorToSeries.js +47 -0
  125. package/build/cjs/plugins/highcharts/renderer/helpers/config/utils/addShowInNavigatorToSeries.js.map +1 -0
  126. package/build/cjs/plugins/highcharts/renderer/helpers/config/utils/buildNavigatorFallback.js +22 -0
  127. package/build/cjs/plugins/highcharts/renderer/helpers/config/utils/buildNavigatorFallback.js.map +1 -0
  128. package/build/cjs/plugins/highcharts/renderer/helpers/config/utils/calculatePrecision.js +26 -0
  129. package/build/cjs/plugins/highcharts/renderer/helpers/config/utils/calculatePrecision.js.map +1 -0
  130. package/build/cjs/plugins/highcharts/renderer/helpers/config/utils/concatStrings.js +6 -0
  131. package/build/cjs/plugins/highcharts/renderer/helpers/config/utils/concatStrings.js.map +1 -0
  132. package/build/cjs/plugins/highcharts/renderer/helpers/config/utils/getChartKitFormattedValue.d.ts +2 -0
  133. package/build/cjs/plugins/highcharts/renderer/helpers/config/utils/getChartKitFormattedValue.js +20 -0
  134. package/build/cjs/plugins/highcharts/renderer/helpers/config/utils/getChartKitFormattedValue.js.map +1 -0
  135. package/build/cjs/plugins/highcharts/renderer/helpers/config/utils/getFormatOptionsFromLine.d.ts +3 -0
  136. package/build/cjs/plugins/highcharts/renderer/helpers/config/utils/getFormatOptionsFromLine.js +20 -0
  137. package/build/cjs/plugins/highcharts/renderer/helpers/config/utils/getFormatOptionsFromLine.js.map +1 -0
  138. package/build/cjs/plugins/highcharts/renderer/helpers/config/utils/getXAxisThresholdValue.js +25 -0
  139. package/build/cjs/plugins/highcharts/renderer/helpers/config/utils/getXAxisThresholdValue.js.map +1 -0
  140. package/build/cjs/plugins/highcharts/renderer/helpers/config/utils/index.d.ts +78 -0
  141. package/build/cjs/plugins/highcharts/renderer/helpers/config/utils/index.js +39 -0
  142. package/build/cjs/plugins/highcharts/renderer/helpers/config/utils/index.js.map +1 -0
  143. package/build/cjs/plugins/highcharts/renderer/helpers/config/utils/isNavigatorSeries.d.ts +2 -0
  144. package/build/cjs/plugins/highcharts/renderer/helpers/config/utils/isNavigatorSeries.js +8 -0
  145. package/build/cjs/plugins/highcharts/renderer/helpers/config/utils/isNavigatorSeries.js.map +1 -0
  146. package/build/cjs/plugins/highcharts/renderer/helpers/config/utils/isSafari.js +16 -0
  147. package/build/cjs/plugins/highcharts/renderer/helpers/config/utils/isSafari.js.map +1 -0
  148. package/build/cjs/plugins/highcharts/renderer/helpers/config/utils/localStorage.js +26 -0
  149. package/build/cjs/plugins/highcharts/renderer/helpers/config/utils/localStorage.js.map +1 -0
  150. package/build/cjs/plugins/highcharts/renderer/helpers/config/utils/mergeArrayWithObject.js +15 -0
  151. package/build/cjs/plugins/highcharts/renderer/helpers/config/utils/mergeArrayWithObject.js.map +1 -0
  152. package/build/cjs/plugins/highcharts/renderer/helpers/config/utils/numberFormat.d.ts +2 -0
  153. package/build/cjs/plugins/highcharts/renderer/helpers/config/utils/numberFormat.js +33 -0
  154. package/build/cjs/plugins/highcharts/renderer/helpers/config/utils/numberFormat.js.map +1 -0
  155. package/build/cjs/plugins/highcharts/renderer/helpers/config/utils/setNavigatorDefaultPeriod.d.ts +13 -0
  156. package/build/cjs/plugins/highcharts/renderer/helpers/config/utils/setNavigatorDefaultPeriod.js +33 -0
  157. package/build/cjs/plugins/highcharts/renderer/helpers/config/utils/setNavigatorDefaultPeriod.js.map +1 -0
  158. package/build/cjs/plugins/highcharts/renderer/helpers/config/utils/tooltip.d.ts +7 -0
  159. package/build/cjs/plugins/highcharts/renderer/helpers/config/utils/tooltip.js +30 -0
  160. package/build/cjs/plugins/highcharts/renderer/helpers/config/utils/tooltip.js.map +1 -0
  161. package/build/cjs/plugins/highcharts/renderer/helpers/constants.js +35 -0
  162. package/build/cjs/plugins/highcharts/renderer/helpers/constants.js.map +1 -0
  163. package/build/cjs/plugins/highcharts/renderer/helpers/graph.css +82 -0
  164. package/build/cjs/plugins/highcharts/renderer/helpers/graph.d.ts +553 -0
  165. package/build/cjs/plugins/highcharts/renderer/helpers/graph.js +94 -0
  166. package/build/cjs/plugins/highcharts/renderer/helpers/graph.js.map +1 -0
  167. package/build/cjs/plugins/highcharts/renderer/helpers/highcharts/colors.js +20 -0
  168. package/build/cjs/plugins/highcharts/renderer/helpers/highcharts/colors.js.map +1 -0
  169. package/build/cjs/plugins/highcharts/renderer/helpers/highcharts/highcharts.js +376 -0
  170. package/build/cjs/plugins/highcharts/renderer/helpers/highcharts/highcharts.js.map +1 -0
  171. package/build/cjs/plugins/highcharts/renderer/helpers/highcharts/utils/calcucalteClosestPointManually.js +23 -0
  172. package/build/cjs/plugins/highcharts/renderer/helpers/highcharts/utils/calcucalteClosestPointManually.js.map +1 -0
  173. package/build/cjs/plugins/highcharts/renderer/helpers/highcharts/utils/index.d.ts +1 -0
  174. package/build/cjs/plugins/highcharts/renderer/helpers/highcharts/utils/index.js +6 -0
  175. package/build/cjs/plugins/highcharts/renderer/helpers/highcharts/utils/index.js.map +1 -0
  176. package/build/cjs/plugins/highcharts/renderer/helpers/prepare-data.js +186 -0
  177. package/build/cjs/plugins/highcharts/renderer/helpers/prepare-data.js.map +1 -0
  178. package/build/cjs/plugins/highcharts/renderer/helpers/tooltip/constants.js +18 -0
  179. package/build/cjs/plugins/highcharts/renderer/helpers/tooltip/constants.js.map +1 -0
  180. package/build/cjs/plugins/highcharts/renderer/helpers/tooltip/helpers.js +10 -0
  181. package/build/cjs/plugins/highcharts/renderer/helpers/tooltip/helpers.js.map +1 -0
  182. package/build/cjs/plugins/highcharts/renderer/helpers/tooltip/index.d.ts +13 -0
  183. package/build/cjs/plugins/highcharts/renderer/helpers/tooltip/index.js +274 -0
  184. package/build/cjs/plugins/highcharts/renderer/helpers/tooltip/index.js.map +1 -0
  185. package/build/cjs/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/index.d.ts +6 -0
  186. package/build/cjs/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/index.js +27 -0
  187. package/build/cjs/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/index.js.map +1 -0
  188. package/build/cjs/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/template-icons/DashDotLineIcon.d.ts +2 -0
  189. package/build/cjs/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/template-icons/DashDotLineIcon.js +25 -0
  190. package/build/cjs/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/template-icons/DashDotLineIcon.js.map +1 -0
  191. package/build/cjs/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/template-icons/DashLineIcon.d.ts +2 -0
  192. package/build/cjs/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/template-icons/DashLineIcon.js +30 -0
  193. package/build/cjs/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/template-icons/DashLineIcon.js.map +1 -0
  194. package/build/cjs/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/template-icons/DotLineIcon.d.ts +2 -0
  195. package/build/cjs/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/template-icons/DotLineIcon.js +25 -0
  196. package/build/cjs/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/template-icons/DotLineIcon.js.map +1 -0
  197. package/build/cjs/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/template-icons/LongDashDotDotLineIcon.d.ts +2 -0
  198. package/build/cjs/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/template-icons/LongDashDotDotLineIcon.js +23 -0
  199. package/build/cjs/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/template-icons/LongDashDotDotLineIcon.js.map +1 -0
  200. package/build/cjs/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/template-icons/LongDashDotLineIcon.d.ts +2 -0
  201. package/build/cjs/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/template-icons/LongDashDotLineIcon.js +23 -0
  202. package/build/cjs/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/template-icons/LongDashDotLineIcon.js.map +1 -0
  203. package/build/cjs/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/template-icons/LongDashLineIcon.d.ts +2 -0
  204. package/build/cjs/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/template-icons/LongDashLineIcon.js +20 -0
  205. package/build/cjs/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/template-icons/LongDashLineIcon.js.map +1 -0
  206. package/build/cjs/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/template-icons/ShortDashDotDotLineIcon.d.ts +2 -0
  207. package/build/cjs/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/template-icons/ShortDashDotDotLineIcon.js +23 -0
  208. package/build/cjs/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/template-icons/ShortDashDotDotLineIcon.js.map +1 -0
  209. package/build/cjs/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/template-icons/ShortDashDotLineIcon.d.ts +2 -0
  210. package/build/cjs/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/template-icons/ShortDashDotLineIcon.js +23 -0
  211. package/build/cjs/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/template-icons/ShortDashDotLineIcon.js.map +1 -0
  212. package/build/cjs/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/template-icons/ShortDashLineIcon.d.ts +2 -0
  213. package/build/cjs/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/template-icons/ShortDashLineIcon.js +23 -0
  214. package/build/cjs/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/template-icons/ShortDashLineIcon.js.map +1 -0
  215. package/build/cjs/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/template-icons/ShortDotLineIcon.d.ts +2 -0
  216. package/build/cjs/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/template-icons/ShortDotLineIcon.js +25 -0
  217. package/build/cjs/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/template-icons/ShortDotLineIcon.js.map +1 -0
  218. package/build/cjs/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/template-icons/SolidLineIcon.d.ts +2 -0
  219. package/build/cjs/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/template-icons/SolidLineIcon.js +18 -0
  220. package/build/cjs/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/template-icons/SolidLineIcon.js.map +1 -0
  221. package/build/cjs/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/template-icons/index.d.ts +11 -0
  222. package/build/cjs/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/template-icons/index.js +26 -0
  223. package/build/cjs/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/template-icons/index.js.map +1 -0
  224. package/build/cjs/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/types.js +3 -0
  225. package/build/cjs/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/types.js.map +1 -0
  226. package/build/cjs/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/utils.js +10 -0
  227. package/build/cjs/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/utils.js.map +1 -0
  228. package/build/cjs/plugins/highcharts/renderer/helpers/tooltip/tooltip.css +313 -0
  229. package/build/cjs/plugins/highcharts/renderer/helpers/tooltip/types.d.ts +88 -0
  230. package/build/cjs/plugins/highcharts/renderer/helpers/tooltip/types.js +3 -0
  231. package/build/cjs/plugins/highcharts/renderer/helpers/tooltip/types.js.map +1 -0
  232. package/build/cjs/plugins/highcharts/renderer/helpers/types.d.ts +22 -0
  233. package/build/cjs/plugins/highcharts/renderer/helpers/types.js +3 -0
  234. package/build/cjs/plugins/highcharts/renderer/helpers/types.js.map +1 -0
  235. package/build/cjs/plugins/highcharts/types/comments.js +3 -0
  236. package/build/cjs/plugins/highcharts/types/comments.js.map +1 -0
  237. package/build/cjs/plugins/highcharts/types/index.d.ts +4 -0
  238. package/build/cjs/plugins/highcharts/types/index.js +3 -0
  239. package/build/cjs/plugins/highcharts/types/index.js.map +1 -0
  240. package/build/cjs/plugins/highcharts/types/lib.js +6 -0
  241. package/build/cjs/plugins/highcharts/types/lib.js.map +1 -0
  242. package/build/cjs/plugins/highcharts/types/misc.d.ts +22 -0
  243. package/build/cjs/plugins/highcharts/types/misc.js +3 -0
  244. package/build/cjs/plugins/highcharts/types/misc.js.map +1 -0
  245. package/build/cjs/plugins/highcharts/types/widget.d.ts +117 -0
  246. package/build/cjs/plugins/highcharts/types/widget.js +3 -0
  247. package/build/cjs/plugins/highcharts/types/widget.js.map +1 -0
  248. package/build/cjs/plugins/indicator/index.d.ts +3 -0
  249. package/build/cjs/plugins/indicator/index.js +13 -0
  250. package/build/cjs/plugins/indicator/index.js.map +1 -0
  251. package/build/cjs/plugins/indicator/renderer/IndicatorItem.d.ts +7 -0
  252. package/build/cjs/plugins/indicator/renderer/IndicatorItem.js +21 -0
  253. package/build/cjs/plugins/indicator/renderer/IndicatorItem.js.map +1 -0
  254. package/build/cjs/plugins/indicator/renderer/IndicatorWidget.css +51 -0
  255. package/build/cjs/plugins/indicator/renderer/IndicatorWidget.d.ts +20 -0
  256. package/build/cjs/plugins/indicator/renderer/IndicatorWidget.js +38 -0
  257. package/build/cjs/plugins/indicator/renderer/IndicatorWidget.js.map +1 -0
  258. package/build/cjs/plugins/indicator/types.js +3 -0
  259. package/build/cjs/plugins/indicator/types.js.map +1 -0
  260. package/build/cjs/plugins/shared/format-number/format-number.d.ts +5 -0
  261. package/build/cjs/plugins/shared/format-number/format-number.js +97 -0
  262. package/build/cjs/plugins/shared/format-number/format-number.js.map +1 -0
  263. package/build/cjs/plugins/shared/format-number/i18n/i18n.js +13 -0
  264. package/build/cjs/plugins/shared/format-number/i18n/i18n.js.map +1 -0
  265. package/build/cjs/plugins/shared/format-number/types.js +3 -0
  266. package/build/cjs/plugins/shared/format-number/types.js.map +1 -0
  267. package/build/cjs/plugins/shared/index.d.ts +2 -0
  268. package/build/cjs/plugins/shared/index.js +6 -0
  269. package/build/cjs/plugins/shared/index.js.map +1 -0
  270. package/build/cjs/plugins/yagr/index.d.ts +3 -0
  271. package/build/cjs/plugins/yagr/index.js +11 -0
  272. package/build/cjs/plugins/yagr/index.js.map +1 -0
  273. package/build/cjs/plugins/yagr/renderer/YagrWidget.d.ts +24 -0
  274. package/build/cjs/plugins/yagr/renderer/YagrWidget.js +82 -0
  275. package/build/cjs/plugins/yagr/renderer/YagrWidget.js.map +1 -0
  276. package/build/cjs/plugins/yagr/renderer/polyfills.js +17 -0
  277. package/build/cjs/plugins/yagr/renderer/polyfills.js.map +1 -0
  278. package/build/cjs/plugins/yagr/renderer/tooltip/helpers/escapeHTML.js +9 -0
  279. package/build/cjs/plugins/yagr/renderer/tooltip/helpers/escapeHTML.js.map +1 -0
  280. package/build/cjs/plugins/yagr/renderer/tooltip/index.d.ts +1 -0
  281. package/build/cjs/plugins/yagr/renderer/tooltip/index.js +6 -0
  282. package/build/cjs/plugins/yagr/renderer/tooltip/index.js.map +1 -0
  283. package/build/cjs/plugins/yagr/renderer/tooltip/renderTooltip.d.ts +2 -0
  284. package/build/cjs/plugins/yagr/renderer/tooltip/renderTooltip.js +72 -0
  285. package/build/cjs/plugins/yagr/renderer/tooltip/renderTooltip.js.map +1 -0
  286. package/build/cjs/plugins/yagr/renderer/tooltip/tooltip.css +306 -0
  287. package/build/cjs/plugins/yagr/renderer/tooltip/tooltip.d.ts +3 -0
  288. package/build/cjs/plugins/yagr/renderer/tooltip/tooltip.js +241 -0
  289. package/build/cjs/plugins/yagr/renderer/tooltip/tooltip.js.map +1 -0
  290. package/build/cjs/plugins/yagr/renderer/tooltip/types.js +3 -0
  291. package/build/cjs/plugins/yagr/renderer/tooltip/types.js.map +1 -0
  292. package/build/cjs/plugins/yagr/renderer/useWidgetData.d.ts +6 -0
  293. package/build/cjs/plugins/yagr/renderer/useWidgetData.js +31 -0
  294. package/build/cjs/plugins/yagr/renderer/useWidgetData.js.map +1 -0
  295. package/build/cjs/plugins/yagr/renderer/utils.d.ts +29 -0
  296. package/build/cjs/plugins/yagr/renderer/utils.js +154 -0
  297. package/build/cjs/plugins/yagr/renderer/utils.js.map +1 -0
  298. package/build/cjs/plugins/yagr/types.d.ts +32 -0
  299. package/build/cjs/plugins/yagr/types.js +3 -0
  300. package/build/cjs/plugins/yagr/types.js.map +1 -0
  301. package/build/cjs/types/index.d.ts +75 -0
  302. package/build/cjs/types/index.js +3 -0
  303. package/build/cjs/types/index.js.map +1 -0
  304. package/build/cjs/types/misc.js +3 -0
  305. package/build/cjs/types/misc.js.map +1 -0
  306. package/build/cjs/types/widget.d.ts +41 -0
  307. package/build/cjs/types/widget.js +3 -0
  308. package/build/cjs/types/widget.js.map +1 -0
  309. package/build/cjs/utils/cn.js +8 -0
  310. package/build/cjs/utils/cn.js.map +1 -0
  311. package/build/cjs/utils/common.js +14 -0
  312. package/build/cjs/utils/common.js.map +1 -0
  313. package/build/cjs/utils/getErrorMessage.d.ts +2 -0
  314. package/build/cjs/utils/getErrorMessage.js +9 -0
  315. package/build/cjs/utils/getErrorMessage.js.map +1 -0
  316. package/build/cjs/utils/index.d.ts +4 -0
  317. package/build/cjs/utils/index.js +12 -0
  318. package/build/cjs/utils/index.js.map +1 -0
  319. package/build/cjs/utils/merge.d.ts +19 -0
  320. package/build/cjs/utils/merge.js +154 -0
  321. package/build/cjs/utils/merge.js.map +1 -0
  322. package/build/cjs/utils/misc.d.ts +2 -0
  323. package/build/cjs/utils/misc.js +11 -0
  324. package/build/cjs/utils/misc.js.map +1 -0
  325. package/build/cjs/utils/performance.js +27 -0
  326. package/build/cjs/utils/performance.js.map +1 -0
  327. package/build/cjs/utils/react.js +9 -0
  328. package/build/cjs/utils/react.js.map +1 -0
  329. package/build/cjs/utils/throttle.d.ts +13 -0
  330. package/build/cjs/utils/throttle.js +47 -0
  331. package/build/cjs/utils/throttle.js.map +1 -0
  332. package/build/docs/INDEX.md +35 -9
  333. package/build/docs/guides/migration-to-v9.md +52 -0
  334. package/build/docs/guides/testing.md +12 -11
  335. package/build/esm/components/ChartKit.css +31 -0
  336. package/build/esm/components/ChartKit.d.ts +11 -0
  337. package/build/esm/components/ChartKit.js +39 -0
  338. package/build/esm/components/ChartKit.js.map +1 -0
  339. package/build/esm/components/ErrorBoundary/ErrorBoundary.d.ts +23 -0
  340. package/build/esm/components/ErrorBoundary/ErrorBoundary.js +48 -0
  341. package/build/esm/components/ErrorBoundary/ErrorBoundary.js.map +1 -0
  342. package/build/esm/components/Loader/Loader.css +7 -0
  343. package/build/esm/components/Loader/Loader.d.ts +9 -0
  344. package/build/esm/components/Loader/Loader.js +15 -0
  345. package/build/esm/components/Loader/Loader.js.map +1 -0
  346. package/build/esm/components/SplitPane/Pane.d.ts +14 -0
  347. package/build/esm/components/SplitPane/Pane.js +27 -0
  348. package/build/esm/components/SplitPane/Pane.js.map +1 -0
  349. package/build/esm/components/SplitPane/Resizer.d.ts +18 -0
  350. package/build/esm/components/SplitPane/Resizer.js +27 -0
  351. package/build/esm/components/SplitPane/Resizer.js.map +1 -0
  352. package/build/esm/components/SplitPane/SplitPane.d.ts +60 -0
  353. package/build/esm/components/SplitPane/SplitPane.js +254 -0
  354. package/build/esm/components/SplitPane/SplitPane.js.map +1 -0
  355. package/build/esm/components/SplitPane/StyledSplitPane.css +45 -0
  356. package/build/esm/components/SplitPane/StyledSplitPane.d.ts +9 -0
  357. package/build/esm/components/SplitPane/StyledSplitPane.js +30 -0
  358. package/build/esm/components/SplitPane/StyledSplitPane.js.map +1 -0
  359. package/build/esm/components/SplitPane/constants.d.ts +4 -0
  360. package/build/esm/components/SplitPane/constants.js +5 -0
  361. package/build/esm/components/SplitPane/constants.js.map +1 -0
  362. package/build/esm/components/SplitPane/index.d.ts +8 -0
  363. package/build/esm/components/SplitPane/index.js +19 -0
  364. package/build/esm/components/SplitPane/index.js.map +1 -0
  365. package/build/esm/components/SplitPane/types.d.ts +2 -0
  366. package/build/esm/components/SplitPane/types.js +2 -0
  367. package/build/esm/components/SplitPane/types.js.map +1 -0
  368. package/build/esm/components/SplitTooltip/SplitTooltip.d.ts +63 -0
  369. package/build/esm/components/SplitTooltip/SplitTooltip.js +133 -0
  370. package/build/esm/components/SplitTooltip/SplitTooltip.js.map +1 -0
  371. package/build/esm/components/SplitTooltip/index.d.ts +2 -0
  372. package/build/esm/components/SplitTooltip/index.js +2 -0
  373. package/build/esm/components/SplitTooltip/index.js.map +1 -0
  374. package/build/esm/constants/common.d.ts +1 -0
  375. package/build/esm/constants/common.js +3 -0
  376. package/build/esm/constants/common.js.map +1 -0
  377. package/build/esm/constants/index.d.ts +3 -0
  378. package/build/esm/constants/index.js +4 -0
  379. package/build/esm/constants/index.js.map +1 -0
  380. package/build/esm/constants/misc.d.ts +10 -0
  381. package/build/esm/constants/misc.js +20 -0
  382. package/build/esm/constants/misc.js.map +1 -0
  383. package/build/esm/constants/widget-data.d.ts +43 -0
  384. package/build/esm/constants/widget-data.js +48 -0
  385. package/build/esm/constants/widget-data.js.map +1 -0
  386. package/build/esm/hooks/index.d.ts +1 -0
  387. package/build/esm/hooks/index.js +2 -0
  388. package/build/esm/hooks/index.js.map +1 -0
  389. package/build/esm/hooks/misc.d.ts +1 -0
  390. package/build/esm/hooks/misc.js +9 -0
  391. package/build/esm/hooks/misc.js.map +1 -0
  392. package/build/esm/i18n/index.d.ts +79 -0
  393. package/build/esm/i18n/index.js +17 -0
  394. package/build/esm/i18n/index.js.map +1 -0
  395. package/build/esm/i18n/keysets/en.json +80 -0
  396. package/build/esm/i18n/keysets/ru.json +79 -0
  397. package/build/esm/index.d.ts +8 -0
  398. package/build/esm/index.js +7 -0
  399. package/build/esm/index.js.map +1 -0
  400. package/build/esm/libs/chartkit-error/chartkit-error.d.ts +18 -0
  401. package/build/esm/libs/chartkit-error/chartkit-error.js +23 -0
  402. package/build/esm/libs/chartkit-error/chartkit-error.js.map +1 -0
  403. package/build/esm/libs/index.d.ts +3 -0
  404. package/build/esm/libs/index.js +3 -0
  405. package/build/esm/libs/index.js.map +1 -0
  406. package/build/esm/libs/settings/eventEmitter.d.ts +11 -0
  407. package/build/esm/libs/settings/eventEmitter.js +24 -0
  408. package/build/esm/libs/settings/eventEmitter.js.map +1 -0
  409. package/build/esm/libs/settings/mergeSettingStrategy.d.ts +1 -0
  410. package/build/esm/libs/settings/mergeSettingStrategy.js +31 -0
  411. package/build/esm/libs/settings/mergeSettingStrategy.js.map +1 -0
  412. package/build/esm/libs/settings/settings.d.ts +22 -0
  413. package/build/esm/libs/settings/settings.js +42 -0
  414. package/build/esm/libs/settings/settings.js.map +1 -0
  415. package/build/esm/package.json +1 -0
  416. package/build/esm/plugins/gravity-charts/index.d.ts +5 -0
  417. package/build/esm/plugins/gravity-charts/index.js +11 -0
  418. package/build/esm/plugins/gravity-charts/index.js.map +1 -0
  419. package/build/esm/plugins/gravity-charts/renderer/GravityChartsWidget.d.ts +21 -0
  420. package/build/esm/plugins/gravity-charts/renderer/GravityChartsWidget.js +68 -0
  421. package/build/esm/plugins/gravity-charts/renderer/GravityChartsWidget.js.map +1 -0
  422. package/build/esm/plugins/gravity-charts/renderer/utils.d.ts +2 -0
  423. package/build/esm/plugins/gravity-charts/renderer/utils.js +17 -0
  424. package/build/esm/plugins/gravity-charts/renderer/utils.js.map +1 -0
  425. package/build/esm/plugins/gravity-charts/renderer/withSplitPane/TooltipContent.d.ts +8 -0
  426. package/build/esm/plugins/gravity-charts/renderer/withSplitPane/TooltipContent.js +13 -0
  427. package/build/esm/plugins/gravity-charts/renderer/withSplitPane/TooltipContent.js.map +1 -0
  428. package/build/esm/plugins/gravity-charts/renderer/withSplitPane/useViewportSplitTooltipLayout.d.ts +3 -0
  429. package/build/esm/plugins/gravity-charts/renderer/withSplitPane/useViewportSplitTooltipLayout.js +30 -0
  430. package/build/esm/plugins/gravity-charts/renderer/withSplitPane/useViewportSplitTooltipLayout.js.map +1 -0
  431. package/build/esm/plugins/gravity-charts/renderer/withSplitPane/withSplitPane.d.ts +8 -0
  432. package/build/esm/plugins/gravity-charts/renderer/withSplitPane/withSplitPane.js +71 -0
  433. package/build/esm/plugins/gravity-charts/renderer/withSplitPane/withSplitPane.js.map +1 -0
  434. package/build/esm/plugins/gravity-charts/types.d.ts +6 -0
  435. package/build/esm/plugins/gravity-charts/types.js +2 -0
  436. package/build/esm/plugins/gravity-charts/types.js.map +1 -0
  437. package/build/esm/plugins/highcharts/index.d.ts +4 -0
  438. package/build/esm/plugins/highcharts/index.js +10 -0
  439. package/build/esm/plugins/highcharts/index.js.map +1 -0
  440. package/build/esm/plugins/highcharts/renderer/HighchartsWidget.d.ts +31 -0
  441. package/build/esm/plugins/highcharts/renderer/HighchartsWidget.js +6 -0
  442. package/build/esm/plugins/highcharts/renderer/HighchartsWidget.js.map +1 -0
  443. package/build/esm/plugins/highcharts/renderer/components/HighchartsComponent.css +4 -0
  444. package/build/esm/plugins/highcharts/renderer/components/HighchartsComponent.d.ts +579 -0
  445. package/build/esm/plugins/highcharts/renderer/components/HighchartsComponent.js +152 -0
  446. package/build/esm/plugins/highcharts/renderer/components/HighchartsComponent.js.map +1 -0
  447. package/build/esm/plugins/highcharts/renderer/components/HighchartsReact.d.ts +20 -0
  448. package/build/esm/plugins/highcharts/renderer/components/HighchartsReact.js +74 -0
  449. package/build/esm/plugins/highcharts/renderer/components/HighchartsReact.js.map +1 -0
  450. package/build/esm/plugins/highcharts/renderer/components/useElementSize.d.ts +6 -0
  451. package/build/esm/plugins/highcharts/renderer/components/useElementSize.js +51 -0
  452. package/build/esm/plugins/highcharts/renderer/components/useElementSize.js.map +1 -0
  453. package/build/esm/plugins/highcharts/renderer/components/withSplitPane/WithSplitPane.css +4 -0
  454. package/build/esm/plugins/highcharts/renderer/components/withSplitPane/withSplitPane.d.ts +18 -0
  455. package/build/esm/plugins/highcharts/renderer/components/withSplitPane/withSplitPane.js +216 -0
  456. package/build/esm/plugins/highcharts/renderer/components/withSplitPane/withSplitPane.js.map +1 -0
  457. package/build/esm/plugins/highcharts/renderer/helpers/add-holidays.d.ts +3 -0
  458. package/build/esm/plugins/highcharts/renderer/helpers/add-holidays.js +44 -0
  459. package/build/esm/plugins/highcharts/renderer/helpers/add-holidays.js.map +1 -0
  460. package/build/esm/plugins/highcharts/renderer/helpers/comments/drawing.d.ts +11 -0
  461. package/build/esm/plugins/highcharts/renderer/helpers/comments/drawing.js +570 -0
  462. package/build/esm/plugins/highcharts/renderer/helpers/comments/drawing.js.map +1 -0
  463. package/build/esm/plugins/highcharts/renderer/helpers/config/config.d.ts +582 -0
  464. package/build/esm/plugins/highcharts/renderer/helpers/config/config.js +1565 -0
  465. package/build/esm/plugins/highcharts/renderer/helpers/config/config.js.map +1 -0
  466. package/build/esm/plugins/highcharts/renderer/helpers/config/handleLegendItemClick.d.ts +2 -0
  467. package/build/esm/plugins/highcharts/renderer/helpers/config/handleLegendItemClick.js +76 -0
  468. package/build/esm/plugins/highcharts/renderer/helpers/config/handleLegendItemClick.js.map +1 -0
  469. package/build/esm/plugins/highcharts/renderer/helpers/config/options.d.ts +468 -0
  470. package/build/esm/plugins/highcharts/renderer/helpers/config/options.js +348 -0
  471. package/build/esm/plugins/highcharts/renderer/helpers/config/options.js.map +1 -0
  472. package/build/esm/plugins/highcharts/renderer/helpers/config/types.d.ts +6 -0
  473. package/build/esm/plugins/highcharts/renderer/helpers/config/types.js +2 -0
  474. package/build/esm/plugins/highcharts/renderer/helpers/config/types.js.map +1 -0
  475. package/build/esm/plugins/highcharts/renderer/helpers/config/utils/addShowInNavigatorToSeries.d.ts +10 -0
  476. package/build/esm/plugins/highcharts/renderer/helpers/config/utils/addShowInNavigatorToSeries.js +43 -0
  477. package/build/esm/plugins/highcharts/renderer/helpers/config/utils/addShowInNavigatorToSeries.js.map +1 -0
  478. package/build/esm/plugins/highcharts/renderer/helpers/config/utils/buildNavigatorFallback.d.ts +1 -0
  479. package/build/esm/plugins/highcharts/renderer/helpers/config/utils/buildNavigatorFallback.js +18 -0
  480. package/build/esm/plugins/highcharts/renderer/helpers/config/utils/buildNavigatorFallback.js.map +1 -0
  481. package/build/esm/plugins/highcharts/renderer/helpers/config/utils/calculatePrecision.d.ts +5 -0
  482. package/build/esm/plugins/highcharts/renderer/helpers/config/utils/calculatePrecision.js +21 -0
  483. package/build/esm/plugins/highcharts/renderer/helpers/config/utils/calculatePrecision.js.map +1 -0
  484. package/build/esm/plugins/highcharts/renderer/helpers/config/utils/concatStrings.d.ts +1 -0
  485. package/build/esm/plugins/highcharts/renderer/helpers/config/utils/concatStrings.js +2 -0
  486. package/build/esm/plugins/highcharts/renderer/helpers/config/utils/concatStrings.js.map +1 -0
  487. package/build/esm/plugins/highcharts/renderer/helpers/config/utils/getChartKitFormattedValue.d.ts +2 -0
  488. package/build/esm/plugins/highcharts/renderer/helpers/config/utils/getChartKitFormattedValue.js +16 -0
  489. package/build/esm/plugins/highcharts/renderer/helpers/config/utils/getChartKitFormattedValue.js.map +1 -0
  490. package/build/esm/plugins/highcharts/renderer/helpers/config/utils/getFormatOptionsFromLine.d.ts +3 -0
  491. package/build/esm/plugins/highcharts/renderer/helpers/config/utils/getFormatOptionsFromLine.js +16 -0
  492. package/build/esm/plugins/highcharts/renderer/helpers/config/utils/getFormatOptionsFromLine.js.map +1 -0
  493. package/build/esm/plugins/highcharts/renderer/helpers/config/utils/getXAxisThresholdValue.d.ts +1 -0
  494. package/build/esm/plugins/highcharts/renderer/helpers/config/utils/getXAxisThresholdValue.js +21 -0
  495. package/build/esm/plugins/highcharts/renderer/helpers/config/utils/getXAxisThresholdValue.js.map +1 -0
  496. package/build/esm/plugins/highcharts/renderer/helpers/config/utils/index.d.ts +78 -0
  497. package/build/esm/plugins/highcharts/renderer/helpers/config/utils/index.js +22 -0
  498. package/build/esm/plugins/highcharts/renderer/helpers/config/utils/index.js.map +1 -0
  499. package/build/esm/plugins/highcharts/renderer/helpers/config/utils/isNavigatorSeries.d.ts +2 -0
  500. package/build/esm/plugins/highcharts/renderer/helpers/config/utils/isNavigatorSeries.js +4 -0
  501. package/build/esm/plugins/highcharts/renderer/helpers/config/utils/isNavigatorSeries.js.map +1 -0
  502. package/build/esm/plugins/highcharts/renderer/helpers/config/utils/isSafari.d.ts +1 -0
  503. package/build/esm/plugins/highcharts/renderer/helpers/config/utils/isSafari.js +13 -0
  504. package/build/esm/plugins/highcharts/renderer/helpers/config/utils/isSafari.js.map +1 -0
  505. package/build/esm/plugins/highcharts/renderer/helpers/config/utils/localStorage.d.ts +5 -0
  506. package/build/esm/plugins/highcharts/renderer/helpers/config/utils/localStorage.js +24 -0
  507. package/build/esm/plugins/highcharts/renderer/helpers/config/utils/localStorage.js.map +1 -0
  508. package/build/esm/plugins/highcharts/renderer/helpers/config/utils/mergeArrayWithObject.d.ts +1 -0
  509. package/build/esm/plugins/highcharts/renderer/helpers/config/utils/mergeArrayWithObject.js +11 -0
  510. package/build/esm/plugins/highcharts/renderer/helpers/config/utils/mergeArrayWithObject.js.map +1 -0
  511. package/build/esm/plugins/highcharts/renderer/helpers/config/utils/numberFormat.d.ts +2 -0
  512. package/build/esm/plugins/highcharts/renderer/helpers/config/utils/numberFormat.js +29 -0
  513. package/build/esm/plugins/highcharts/renderer/helpers/config/utils/numberFormat.js.map +1 -0
  514. package/build/esm/plugins/highcharts/renderer/helpers/config/utils/setNavigatorDefaultPeriod.d.ts +13 -0
  515. package/build/esm/plugins/highcharts/renderer/helpers/config/utils/setNavigatorDefaultPeriod.js +28 -0
  516. package/build/esm/plugins/highcharts/renderer/helpers/config/utils/setNavigatorDefaultPeriod.js.map +1 -0
  517. package/build/esm/plugins/highcharts/renderer/helpers/config/utils/tooltip.d.ts +7 -0
  518. package/build/esm/plugins/highcharts/renderer/helpers/config/utils/tooltip.js +25 -0
  519. package/build/esm/plugins/highcharts/renderer/helpers/config/utils/tooltip.js.map +1 -0
  520. package/build/esm/plugins/highcharts/renderer/helpers/constants.d.ts +29 -0
  521. package/build/esm/plugins/highcharts/renderer/helpers/constants.js +32 -0
  522. package/build/esm/plugins/highcharts/renderer/helpers/constants.js.map +1 -0
  523. package/build/esm/plugins/highcharts/renderer/helpers/graph.css +82 -0
  524. package/build/esm/plugins/highcharts/renderer/helpers/graph.d.ts +553 -0
  525. package/build/esm/plugins/highcharts/renderer/helpers/graph.js +92 -0
  526. package/build/esm/plugins/highcharts/renderer/helpers/graph.js.map +1 -0
  527. package/build/esm/plugins/highcharts/renderer/helpers/highcharts/colors.d.ts +2 -0
  528. package/build/esm/plugins/highcharts/renderer/helpers/highcharts/colors.js +18 -0
  529. package/build/esm/plugins/highcharts/renderer/helpers/highcharts/colors.js.map +1 -0
  530. package/build/esm/plugins/highcharts/renderer/helpers/highcharts/highcharts.d.ts +5 -0
  531. package/build/esm/plugins/highcharts/renderer/helpers/highcharts/highcharts.js +371 -0
  532. package/build/esm/plugins/highcharts/renderer/helpers/highcharts/highcharts.js.map +1 -0
  533. package/build/esm/plugins/highcharts/renderer/helpers/highcharts/utils/calcucalteClosestPointManually.d.ts +1 -0
  534. package/build/esm/plugins/highcharts/renderer/helpers/highcharts/utils/calcucalteClosestPointManually.js +20 -0
  535. package/build/esm/plugins/highcharts/renderer/helpers/highcharts/utils/calcucalteClosestPointManually.js.map +1 -0
  536. package/build/esm/plugins/highcharts/renderer/helpers/highcharts/utils/index.d.ts +1 -0
  537. package/build/esm/plugins/highcharts/renderer/helpers/highcharts/utils/index.js +2 -0
  538. package/build/esm/plugins/highcharts/renderer/helpers/highcharts/utils/index.js.map +1 -0
  539. package/build/esm/plugins/highcharts/renderer/helpers/prepare-data.d.ts +1 -0
  540. package/build/esm/plugins/highcharts/renderer/helpers/prepare-data.js +182 -0
  541. package/build/esm/plugins/highcharts/renderer/helpers/prepare-data.js.map +1 -0
  542. package/build/esm/plugins/highcharts/renderer/helpers/tooltip/constants.d.ts +13 -0
  543. package/build/esm/plugins/highcharts/renderer/helpers/tooltip/constants.js +15 -0
  544. package/build/esm/plugins/highcharts/renderer/helpers/tooltip/constants.js.map +1 -0
  545. package/build/esm/plugins/highcharts/renderer/helpers/tooltip/helpers.d.ts +1 -0
  546. package/build/esm/plugins/highcharts/renderer/helpers/tooltip/helpers.js +6 -0
  547. package/build/esm/plugins/highcharts/renderer/helpers/tooltip/helpers.js.map +1 -0
  548. package/build/esm/plugins/highcharts/renderer/helpers/tooltip/index.d.ts +13 -0
  549. package/build/esm/plugins/highcharts/renderer/helpers/tooltip/index.js +269 -0
  550. package/build/esm/plugins/highcharts/renderer/helpers/tooltip/index.js.map +1 -0
  551. package/build/esm/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/index.d.ts +6 -0
  552. package/build/esm/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/index.js +23 -0
  553. package/build/esm/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/index.js.map +1 -0
  554. package/build/esm/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/template-icons/DashDotLineIcon.d.ts +2 -0
  555. package/build/esm/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/template-icons/DashDotLineIcon.js +21 -0
  556. package/build/esm/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/template-icons/DashDotLineIcon.js.map +1 -0
  557. package/build/esm/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/template-icons/DashLineIcon.d.ts +2 -0
  558. package/build/esm/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/template-icons/DashLineIcon.js +26 -0
  559. package/build/esm/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/template-icons/DashLineIcon.js.map +1 -0
  560. package/build/esm/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/template-icons/DotLineIcon.d.ts +2 -0
  561. package/build/esm/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/template-icons/DotLineIcon.js +21 -0
  562. package/build/esm/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/template-icons/DotLineIcon.js.map +1 -0
  563. package/build/esm/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/template-icons/LongDashDotDotLineIcon.d.ts +2 -0
  564. package/build/esm/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/template-icons/LongDashDotDotLineIcon.js +19 -0
  565. package/build/esm/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/template-icons/LongDashDotDotLineIcon.js.map +1 -0
  566. package/build/esm/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/template-icons/LongDashDotLineIcon.d.ts +2 -0
  567. package/build/esm/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/template-icons/LongDashDotLineIcon.js +19 -0
  568. package/build/esm/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/template-icons/LongDashDotLineIcon.js.map +1 -0
  569. package/build/esm/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/template-icons/LongDashLineIcon.d.ts +2 -0
  570. package/build/esm/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/template-icons/LongDashLineIcon.js +16 -0
  571. package/build/esm/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/template-icons/LongDashLineIcon.js.map +1 -0
  572. package/build/esm/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/template-icons/ShortDashDotDotLineIcon.d.ts +2 -0
  573. package/build/esm/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/template-icons/ShortDashDotDotLineIcon.js +19 -0
  574. package/build/esm/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/template-icons/ShortDashDotDotLineIcon.js.map +1 -0
  575. package/build/esm/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/template-icons/ShortDashDotLineIcon.d.ts +2 -0
  576. package/build/esm/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/template-icons/ShortDashDotLineIcon.js +19 -0
  577. package/build/esm/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/template-icons/ShortDashDotLineIcon.js.map +1 -0
  578. package/build/esm/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/template-icons/ShortDashLineIcon.d.ts +2 -0
  579. package/build/esm/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/template-icons/ShortDashLineIcon.js +19 -0
  580. package/build/esm/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/template-icons/ShortDashLineIcon.js.map +1 -0
  581. package/build/esm/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/template-icons/ShortDotLineIcon.d.ts +2 -0
  582. package/build/esm/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/template-icons/ShortDotLineIcon.js +21 -0
  583. package/build/esm/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/template-icons/ShortDotLineIcon.js.map +1 -0
  584. package/build/esm/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/template-icons/SolidLineIcon.d.ts +2 -0
  585. package/build/esm/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/template-icons/SolidLineIcon.js +14 -0
  586. package/build/esm/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/template-icons/SolidLineIcon.js.map +1 -0
  587. package/build/esm/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/template-icons/index.d.ts +11 -0
  588. package/build/esm/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/template-icons/index.js +12 -0
  589. package/build/esm/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/template-icons/index.js.map +1 -0
  590. package/build/esm/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/types.d.ts +4 -0
  591. package/build/esm/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/types.js +2 -0
  592. package/build/esm/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/types.js.map +1 -0
  593. package/build/esm/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/utils.d.ts +7 -0
  594. package/build/esm/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/utils.js +6 -0
  595. package/build/esm/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/utils.js.map +1 -0
  596. package/build/esm/plugins/highcharts/renderer/helpers/tooltip/tooltip.css +313 -0
  597. package/build/esm/plugins/highcharts/renderer/helpers/tooltip/types.d.ts +88 -0
  598. package/build/esm/plugins/highcharts/renderer/helpers/tooltip/types.js +2 -0
  599. package/build/esm/plugins/highcharts/renderer/helpers/tooltip/types.js.map +1 -0
  600. package/build/esm/plugins/highcharts/renderer/helpers/types.d.ts +22 -0
  601. package/build/esm/plugins/highcharts/renderer/helpers/types.js +2 -0
  602. package/build/esm/plugins/highcharts/renderer/helpers/types.js.map +1 -0
  603. package/build/esm/plugins/highcharts/types/comments.d.ts +51 -0
  604. package/build/esm/plugins/highcharts/types/comments.js +2 -0
  605. package/build/esm/plugins/highcharts/types/comments.js.map +1 -0
  606. package/build/esm/plugins/highcharts/types/highcharts-extends.d.ts +53 -0
  607. package/build/esm/plugins/highcharts/types/index.d.ts +4 -0
  608. package/build/esm/plugins/highcharts/types/index.js +2 -0
  609. package/build/esm/plugins/highcharts/types/index.js.map +1 -0
  610. package/build/esm/plugins/highcharts/types/lib.js +2 -0
  611. package/build/esm/plugins/highcharts/types/lib.js.map +1 -0
  612. package/build/esm/plugins/highcharts/types/misc.d.ts +22 -0
  613. package/build/esm/plugins/highcharts/types/misc.js +2 -0
  614. package/build/esm/plugins/highcharts/types/misc.js.map +1 -0
  615. package/build/esm/plugins/highcharts/types/widget.d.ts +117 -0
  616. package/build/esm/plugins/highcharts/types/widget.js +2 -0
  617. package/build/esm/plugins/highcharts/types/widget.js.map +1 -0
  618. package/build/esm/plugins/indicator/index.d.ts +3 -0
  619. package/build/esm/plugins/indicator/index.js +9 -0
  620. package/build/esm/plugins/indicator/index.js.map +1 -0
  621. package/build/esm/plugins/indicator/renderer/IndicatorItem.d.ts +7 -0
  622. package/build/esm/plugins/indicator/renderer/IndicatorItem.js +16 -0
  623. package/build/esm/plugins/indicator/renderer/IndicatorItem.js.map +1 -0
  624. package/build/esm/plugins/indicator/renderer/IndicatorWidget.css +51 -0
  625. package/build/esm/plugins/indicator/renderer/IndicatorWidget.d.ts +20 -0
  626. package/build/esm/plugins/indicator/renderer/IndicatorWidget.js +34 -0
  627. package/build/esm/plugins/indicator/renderer/IndicatorWidget.js.map +1 -0
  628. package/build/esm/plugins/indicator/types.d.ts +15 -0
  629. package/build/esm/plugins/indicator/types.js +2 -0
  630. package/build/esm/plugins/indicator/types.js.map +1 -0
  631. package/build/esm/plugins/shared/format-number/format-number.d.ts +5 -0
  632. package/build/esm/plugins/shared/format-number/format-number.js +91 -0
  633. package/build/esm/plugins/shared/format-number/format-number.js.map +1 -0
  634. package/build/esm/plugins/shared/format-number/i18n/en.json +17 -0
  635. package/build/esm/plugins/shared/format-number/i18n/i18n.d.ts +5 -0
  636. package/build/esm/plugins/shared/format-number/i18n/i18n.js +9 -0
  637. package/build/esm/plugins/shared/format-number/i18n/i18n.js.map +1 -0
  638. package/build/esm/plugins/shared/format-number/i18n/ru.json +17 -0
  639. package/build/esm/plugins/shared/format-number/types.d.ts +14 -0
  640. package/build/esm/plugins/shared/format-number/types.js +2 -0
  641. package/build/esm/plugins/shared/format-number/types.js.map +1 -0
  642. package/build/esm/plugins/shared/index.d.ts +2 -0
  643. package/build/esm/plugins/shared/index.js +2 -0
  644. package/build/esm/plugins/shared/index.js.map +1 -0
  645. package/build/esm/plugins/yagr/index.d.ts +3 -0
  646. package/build/esm/plugins/yagr/index.js +7 -0
  647. package/build/esm/plugins/yagr/index.js.map +1 -0
  648. package/build/esm/plugins/yagr/renderer/YagrWidget.css +4 -0
  649. package/build/esm/plugins/yagr/renderer/YagrWidget.d.ts +24 -0
  650. package/build/esm/plugins/yagr/renderer/YagrWidget.js +78 -0
  651. package/build/esm/plugins/yagr/renderer/YagrWidget.js.map +1 -0
  652. package/build/esm/plugins/yagr/renderer/polyfills.js +16 -0
  653. package/build/esm/plugins/yagr/renderer/polyfills.js.map +1 -0
  654. package/build/esm/plugins/yagr/renderer/tooltip/helpers/escapeHTML.d.ts +1 -0
  655. package/build/esm/plugins/yagr/renderer/tooltip/helpers/escapeHTML.js +6 -0
  656. package/build/esm/plugins/yagr/renderer/tooltip/helpers/escapeHTML.js.map +1 -0
  657. package/build/esm/plugins/yagr/renderer/tooltip/index.d.ts +1 -0
  658. package/build/esm/plugins/yagr/renderer/tooltip/index.js +2 -0
  659. package/build/esm/plugins/yagr/renderer/tooltip/index.js.map +1 -0
  660. package/build/esm/plugins/yagr/renderer/tooltip/renderTooltip.d.ts +2 -0
  661. package/build/esm/plugins/yagr/renderer/tooltip/renderTooltip.js +68 -0
  662. package/build/esm/plugins/yagr/renderer/tooltip/renderTooltip.js.map +1 -0
  663. package/build/esm/plugins/yagr/renderer/tooltip/tooltip.css +306 -0
  664. package/build/esm/plugins/yagr/renderer/tooltip/tooltip.d.ts +3 -0
  665. package/build/esm/plugins/yagr/renderer/tooltip/tooltip.js +237 -0
  666. package/build/esm/plugins/yagr/renderer/tooltip/tooltip.js.map +1 -0
  667. package/build/esm/plugins/yagr/renderer/tooltip/types.d.ts +74 -0
  668. package/build/esm/plugins/yagr/renderer/tooltip/types.js +2 -0
  669. package/build/esm/plugins/yagr/renderer/tooltip/types.js.map +1 -0
  670. package/build/esm/plugins/yagr/renderer/useWidgetData.d.ts +6 -0
  671. package/build/esm/plugins/yagr/renderer/useWidgetData.js +26 -0
  672. package/build/esm/plugins/yagr/renderer/useWidgetData.js.map +1 -0
  673. package/build/esm/plugins/yagr/renderer/utils.d.ts +29 -0
  674. package/build/esm/plugins/yagr/renderer/utils.js +146 -0
  675. package/build/esm/plugins/yagr/renderer/utils.js.map +1 -0
  676. package/build/esm/plugins/yagr/types.d.ts +32 -0
  677. package/build/esm/plugins/yagr/types.js +2 -0
  678. package/build/esm/plugins/yagr/types.js.map +1 -0
  679. package/build/esm/types/index.d.ts +75 -0
  680. package/build/esm/types/index.js +2 -0
  681. package/build/esm/types/index.js.map +1 -0
  682. package/build/esm/types/misc.d.ts +4 -0
  683. package/build/esm/types/misc.js +2 -0
  684. package/build/esm/types/misc.js.map +1 -0
  685. package/build/esm/types/widget.d.ts +41 -0
  686. package/build/esm/types/widget.js +2 -0
  687. package/build/esm/types/widget.js.map +1 -0
  688. package/build/esm/utils/cn.d.ts +3 -0
  689. package/build/esm/utils/cn.js +5 -0
  690. package/build/esm/utils/cn.js.map +1 -0
  691. package/build/esm/utils/common.d.ts +2 -0
  692. package/build/esm/utils/common.js +9 -0
  693. package/build/esm/utils/common.js.map +1 -0
  694. package/build/esm/utils/getErrorMessage.d.ts +2 -0
  695. package/build/esm/utils/getErrorMessage.js +6 -0
  696. package/build/esm/utils/getErrorMessage.js.map +1 -0
  697. package/build/esm/utils/index.d.ts +4 -0
  698. package/build/esm/utils/index.js +5 -0
  699. package/build/esm/utils/index.js.map +1 -0
  700. package/build/esm/utils/merge.d.ts +19 -0
  701. package/build/esm/utils/merge.js +149 -0
  702. package/build/esm/utils/merge.js.map +1 -0
  703. package/build/esm/utils/misc.d.ts +2 -0
  704. package/build/esm/utils/misc.js +8 -0
  705. package/build/esm/utils/misc.js.map +1 -0
  706. package/build/esm/utils/performance.d.ts +5 -0
  707. package/build/esm/utils/performance.js +21 -0
  708. package/build/esm/utils/performance.js.map +1 -0
  709. package/build/esm/utils/react.d.ts +1 -0
  710. package/build/esm/utils/react.js +5 -0
  711. package/build/esm/utils/react.js.map +1 -0
  712. package/build/esm/utils/throttle.d.ts +13 -0
  713. package/build/esm/utils/throttle.js +44 -0
  714. package/build/esm/utils/throttle.js.map +1 -0
  715. package/package.json +85 -25
  716. package/build/components/ChartKit.css +0 -32
  717. package/build/components/ChartKit.d.ts +0 -11
  718. package/build/components/ChartKit.js +0 -42
  719. package/build/components/ErrorBoundary/ErrorBoundary.d.ts +0 -23
  720. package/build/components/ErrorBoundary/ErrorBoundary.js +0 -51
  721. package/build/components/Loader/Loader.d.ts +0 -9
  722. package/build/components/Loader/Loader.js +0 -16
  723. package/build/components/SplitPane/Pane.d.ts +0 -14
  724. package/build/components/SplitPane/Pane.js +0 -26
  725. package/build/components/SplitPane/Resizer.d.ts +0 -18
  726. package/build/components/SplitPane/Resizer.js +0 -26
  727. package/build/components/SplitPane/SplitPane.d.ts +0 -59
  728. package/build/components/SplitPane/SplitPane.js +0 -235
  729. package/build/components/SplitPane/StyledSplitPane.css +0 -52
  730. package/build/components/SplitPane/StyledSplitPane.d.ts +0 -9
  731. package/build/components/SplitPane/StyledSplitPane.js +0 -32
  732. package/build/components/SplitPane/constants.js +0 -4
  733. package/build/components/SplitPane/index.d.ts +0 -8
  734. package/build/components/SplitPane/index.js +0 -18
  735. package/build/components/SplitPane/types.d.ts +0 -2
  736. package/build/components/SplitTooltip/SplitTooltip.d.ts +0 -49
  737. package/build/components/SplitTooltip/SplitTooltip.js +0 -122
  738. package/build/components/SplitTooltip/index.d.ts +0 -2
  739. package/build/components/SplitTooltip/index.js +0 -1
  740. package/build/constants/common.js +0 -2
  741. package/build/constants/index.d.ts +0 -3
  742. package/build/constants/index.js +0 -3
  743. package/build/constants/misc.js +0 -19
  744. package/build/constants/widget-data.js +0 -47
  745. package/build/hooks/index.d.ts +0 -1
  746. package/build/hooks/index.js +0 -1
  747. package/build/hooks/misc.js +0 -8
  748. package/build/i18n/index.d.ts +0 -7
  749. package/build/i18n/index.js +0 -10
  750. package/build/index.d.ts +0 -8
  751. package/build/index.js +0 -6
  752. package/build/libs/chartkit-error/chartkit-error.js +0 -21
  753. package/build/libs/index.d.ts +0 -3
  754. package/build/libs/index.js +0 -2
  755. package/build/libs/settings/eventEmitter.js +0 -25
  756. package/build/libs/settings/mergeSettingStrategy.js +0 -31
  757. package/build/libs/settings/settings.d.ts +0 -22
  758. package/build/libs/settings/settings.js +0 -41
  759. package/build/plugins/gravity-charts/index.d.ts +0 -4
  760. package/build/plugins/gravity-charts/index.js +0 -7
  761. package/build/plugins/gravity-charts/renderer/GravityChartsWidget.d.ts +0 -22
  762. package/build/plugins/gravity-charts/renderer/GravityChartsWidget.js +0 -45
  763. package/build/plugins/gravity-charts/renderer/utils.d.ts +0 -2
  764. package/build/plugins/gravity-charts/renderer/utils.js +0 -18
  765. package/build/plugins/gravity-charts/renderer/withSplitPane/TooltipContent.js +0 -13
  766. package/build/plugins/gravity-charts/renderer/withSplitPane/useViewportSplitTooltipLayout.d.ts +0 -3
  767. package/build/plugins/gravity-charts/renderer/withSplitPane/useViewportSplitTooltipLayout.js +0 -29
  768. package/build/plugins/gravity-charts/renderer/withSplitPane/withSplitPane.d.ts +0 -4
  769. package/build/plugins/gravity-charts/renderer/withSplitPane/withSplitPane.js +0 -48
  770. package/build/plugins/gravity-charts/types.d.ts +0 -5
  771. package/build/plugins/gravity-charts/types.js +0 -1
  772. package/build/plugins/highcharts/index.d.ts +0 -4
  773. package/build/plugins/highcharts/index.js +0 -7
  774. package/build/plugins/highcharts/renderer/HighchartsWidget.d.ts +0 -32
  775. package/build/plugins/highcharts/renderer/HighchartsWidget.js +0 -6
  776. package/build/plugins/highcharts/renderer/components/HighchartsComponent.d.ts +0 -579
  777. package/build/plugins/highcharts/renderer/components/HighchartsComponent.js +0 -155
  778. package/build/plugins/highcharts/renderer/components/HighchartsReact.d.ts +0 -20
  779. package/build/plugins/highcharts/renderer/components/HighchartsReact.js +0 -74
  780. package/build/plugins/highcharts/renderer/components/useElementSize.js +0 -50
  781. package/build/plugins/highcharts/renderer/components/withSplitPane/withSplitPane.d.ts +0 -18
  782. package/build/plugins/highcharts/renderer/components/withSplitPane/withSplitPane.js +0 -217
  783. package/build/plugins/highcharts/renderer/helpers/add-holidays.d.ts +0 -3
  784. package/build/plugins/highcharts/renderer/helpers/add-holidays.js +0 -43
  785. package/build/plugins/highcharts/renderer/helpers/comments/drawing.js +0 -571
  786. package/build/plugins/highcharts/renderer/helpers/config/config.js +0 -1515
  787. package/build/plugins/highcharts/renderer/helpers/config/handleLegendItemClick.js +0 -75
  788. package/build/plugins/highcharts/renderer/helpers/config/options.js +0 -350
  789. package/build/plugins/highcharts/renderer/helpers/config/types.js +0 -1
  790. package/build/plugins/highcharts/renderer/helpers/config/utils/addShowInNavigatorToSeries.d.ts +0 -10
  791. package/build/plugins/highcharts/renderer/helpers/config/utils/addShowInNavigatorToSeries.js +0 -42
  792. package/build/plugins/highcharts/renderer/helpers/config/utils/buildNavigatorFallback.js +0 -17
  793. package/build/plugins/highcharts/renderer/helpers/config/utils/calculatePrecision.js +0 -20
  794. package/build/plugins/highcharts/renderer/helpers/config/utils/concatStrings.js +0 -1
  795. package/build/plugins/highcharts/renderer/helpers/config/utils/getChartKitFormattedValue.d.ts +0 -2
  796. package/build/plugins/highcharts/renderer/helpers/config/utils/getChartKitFormattedValue.js +0 -15
  797. package/build/plugins/highcharts/renderer/helpers/config/utils/getFormatOptionsFromLine.d.ts +0 -3
  798. package/build/plugins/highcharts/renderer/helpers/config/utils/getFormatOptionsFromLine.js +0 -15
  799. package/build/plugins/highcharts/renderer/helpers/config/utils/getXAxisThresholdValue.js +0 -20
  800. package/build/plugins/highcharts/renderer/helpers/config/utils/index.d.ts +0 -78
  801. package/build/plugins/highcharts/renderer/helpers/config/utils/index.js +0 -21
  802. package/build/plugins/highcharts/renderer/helpers/config/utils/isNavigatorSeries.d.ts +0 -2
  803. package/build/plugins/highcharts/renderer/helpers/config/utils/isNavigatorSeries.js +0 -3
  804. package/build/plugins/highcharts/renderer/helpers/config/utils/isSafari.js +0 -12
  805. package/build/plugins/highcharts/renderer/helpers/config/utils/localStorage.js +0 -23
  806. package/build/plugins/highcharts/renderer/helpers/config/utils/mergeArrayWithObject.js +0 -10
  807. package/build/plugins/highcharts/renderer/helpers/config/utils/numberFormat.d.ts +0 -2
  808. package/build/plugins/highcharts/renderer/helpers/config/utils/numberFormat.js +0 -19
  809. package/build/plugins/highcharts/renderer/helpers/config/utils/setNavigatorDefaultPeriod.d.ts +0 -13
  810. package/build/plugins/highcharts/renderer/helpers/config/utils/setNavigatorDefaultPeriod.js +0 -27
  811. package/build/plugins/highcharts/renderer/helpers/config/utils/tooltip.d.ts +0 -7
  812. package/build/plugins/highcharts/renderer/helpers/config/utils/tooltip.js +0 -25
  813. package/build/plugins/highcharts/renderer/helpers/constants.js +0 -31
  814. package/build/plugins/highcharts/renderer/helpers/graph.css +0 -98
  815. package/build/plugins/highcharts/renderer/helpers/graph.d.ts +0 -553
  816. package/build/plugins/highcharts/renderer/helpers/graph.js +0 -88
  817. package/build/plugins/highcharts/renderer/helpers/highcharts/colors.js +0 -17
  818. package/build/plugins/highcharts/renderer/helpers/highcharts/highcharts.js +0 -370
  819. package/build/plugins/highcharts/renderer/helpers/highcharts/utils/calcucalteClosestPointManually.js +0 -19
  820. package/build/plugins/highcharts/renderer/helpers/highcharts/utils/index.d.ts +0 -1
  821. package/build/plugins/highcharts/renderer/helpers/highcharts/utils/index.js +0 -1
  822. package/build/plugins/highcharts/renderer/helpers/prepare-data.js +0 -181
  823. package/build/plugins/highcharts/renderer/helpers/tooltip/constants.js +0 -14
  824. package/build/plugins/highcharts/renderer/helpers/tooltip/helpers.js +0 -5
  825. package/build/plugins/highcharts/renderer/helpers/tooltip/index.d.ts +0 -13
  826. package/build/plugins/highcharts/renderer/helpers/tooltip/index.js +0 -263
  827. package/build/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/index.d.ts +0 -6
  828. package/build/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/index.js +0 -22
  829. package/build/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/template-icons/DashDotLineIcon.d.ts +0 -2
  830. package/build/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/template-icons/DashDotLineIcon.js +0 -20
  831. package/build/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/template-icons/DashLineIcon.d.ts +0 -2
  832. package/build/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/template-icons/DashLineIcon.js +0 -25
  833. package/build/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/template-icons/DotLineIcon.d.ts +0 -2
  834. package/build/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/template-icons/DotLineIcon.js +0 -20
  835. package/build/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/template-icons/LongDashDotDotLineIcon.d.ts +0 -2
  836. package/build/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/template-icons/LongDashDotDotLineIcon.js +0 -18
  837. package/build/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/template-icons/LongDashDotLineIcon.d.ts +0 -2
  838. package/build/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/template-icons/LongDashDotLineIcon.js +0 -18
  839. package/build/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/template-icons/LongDashLineIcon.d.ts +0 -2
  840. package/build/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/template-icons/LongDashLineIcon.js +0 -15
  841. package/build/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/template-icons/ShortDashDotDotLineIcon.d.ts +0 -2
  842. package/build/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/template-icons/ShortDashDotDotLineIcon.js +0 -18
  843. package/build/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/template-icons/ShortDashDotLineIcon.d.ts +0 -2
  844. package/build/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/template-icons/ShortDashDotLineIcon.js +0 -18
  845. package/build/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/template-icons/ShortDashLineIcon.d.ts +0 -2
  846. package/build/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/template-icons/ShortDashLineIcon.js +0 -18
  847. package/build/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/template-icons/ShortDotLineIcon.d.ts +0 -2
  848. package/build/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/template-icons/ShortDotLineIcon.js +0 -20
  849. package/build/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/template-icons/SolidLineIcon.d.ts +0 -2
  850. package/build/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/template-icons/SolidLineIcon.js +0 -13
  851. package/build/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/template-icons/index.d.ts +0 -11
  852. package/build/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/template-icons/index.js +0 -11
  853. package/build/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/types.js +0 -1
  854. package/build/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/utils.js +0 -5
  855. package/build/plugins/highcharts/renderer/helpers/tooltip/tooltip.css +0 -370
  856. package/build/plugins/highcharts/renderer/helpers/tooltip/types.d.ts +0 -88
  857. package/build/plugins/highcharts/renderer/helpers/tooltip/types.js +0 -1
  858. package/build/plugins/highcharts/renderer/helpers/types.d.ts +0 -22
  859. package/build/plugins/highcharts/renderer/helpers/types.js +0 -1
  860. package/build/plugins/highcharts/types/comments.js +0 -1
  861. package/build/plugins/highcharts/types/index.d.ts +0 -4
  862. package/build/plugins/highcharts/types/index.js +0 -1
  863. package/build/plugins/highcharts/types/misc.d.ts +0 -22
  864. package/build/plugins/highcharts/types/misc.js +0 -1
  865. package/build/plugins/highcharts/types/widget.d.ts +0 -117
  866. package/build/plugins/highcharts/types/widget.js +0 -1
  867. package/build/plugins/indicator/index.d.ts +0 -3
  868. package/build/plugins/indicator/index.js +0 -6
  869. package/build/plugins/indicator/renderer/IndicatorItem.d.ts +0 -7
  870. package/build/plugins/indicator/renderer/IndicatorItem.js +0 -15
  871. package/build/plugins/indicator/renderer/IndicatorWidget.css +0 -62
  872. package/build/plugins/indicator/renderer/IndicatorWidget.d.ts +0 -21
  873. package/build/plugins/indicator/renderer/IndicatorWidget.js +0 -34
  874. package/build/plugins/indicator/types.js +0 -1
  875. package/build/plugins/shared/format-number/format-number.d.ts +0 -5
  876. package/build/plugins/shared/format-number/format-number.js +0 -87
  877. package/build/plugins/shared/format-number/i18n/i18n.js +0 -8
  878. package/build/plugins/shared/format-number/types.js +0 -1
  879. package/build/plugins/shared/index.d.ts +0 -2
  880. package/build/plugins/shared/index.js +0 -1
  881. package/build/plugins/yagr/index.d.ts +0 -3
  882. package/build/plugins/yagr/index.js +0 -6
  883. package/build/plugins/yagr/renderer/YagrWidget.d.ts +0 -25
  884. package/build/plugins/yagr/renderer/YagrWidget.js +0 -79
  885. package/build/plugins/yagr/renderer/polyfills.js +0 -15
  886. package/build/plugins/yagr/renderer/tooltip/helpers/escapeHTML.js +0 -5
  887. package/build/plugins/yagr/renderer/tooltip/index.d.ts +0 -1
  888. package/build/plugins/yagr/renderer/tooltip/index.js +0 -1
  889. package/build/plugins/yagr/renderer/tooltip/renderTooltip.d.ts +0 -2
  890. package/build/plugins/yagr/renderer/tooltip/renderTooltip.js +0 -60
  891. package/build/plugins/yagr/renderer/tooltip/tooltip.css +0 -371
  892. package/build/plugins/yagr/renderer/tooltip/tooltip.d.ts +0 -3
  893. package/build/plugins/yagr/renderer/tooltip/tooltip.js +0 -230
  894. package/build/plugins/yagr/renderer/tooltip/types.js +0 -1
  895. package/build/plugins/yagr/renderer/useWidgetData.d.ts +0 -6
  896. package/build/plugins/yagr/renderer/useWidgetData.js +0 -26
  897. package/build/plugins/yagr/renderer/utils.d.ts +0 -29
  898. package/build/plugins/yagr/renderer/utils.js +0 -141
  899. package/build/plugins/yagr/types.d.ts +0 -32
  900. package/build/plugins/yagr/types.js +0 -1
  901. package/build/types/index.d.ts +0 -67
  902. package/build/types/index.js +0 -1
  903. package/build/types/misc.js +0 -1
  904. package/build/types/widget.d.ts +0 -41
  905. package/build/types/widget.js +0 -1
  906. package/build/utils/cn.js +0 -4
  907. package/build/utils/common.js +0 -8
  908. package/build/utils/getErrorMessage.d.ts +0 -2
  909. package/build/utils/getErrorMessage.js +0 -5
  910. package/build/utils/index.d.ts +0 -4
  911. package/build/utils/index.js +0 -4
  912. package/build/utils/misc.d.ts +0 -2
  913. package/build/utils/misc.js +0 -7
  914. package/build/utils/performance.js +0 -20
  915. package/build/utils/react.js +0 -4
  916. /package/build/{components → cjs/components}/Loader/Loader.css +0 -0
  917. /package/build/{components → cjs/components}/SplitPane/constants.d.ts +0 -0
  918. /package/build/{constants → cjs/constants}/common.d.ts +0 -0
  919. /package/build/{constants → cjs/constants}/misc.d.ts +0 -0
  920. /package/build/{constants → cjs/constants}/widget-data.d.ts +0 -0
  921. /package/build/{hooks → cjs/hooks}/misc.d.ts +0 -0
  922. /package/build/{i18n → cjs/i18n}/keysets/en.json +0 -0
  923. /package/build/{i18n → cjs/i18n}/keysets/ru.json +0 -0
  924. /package/build/{libs → cjs/libs}/chartkit-error/chartkit-error.d.ts +0 -0
  925. /package/build/{libs → cjs/libs}/settings/eventEmitter.d.ts +0 -0
  926. /package/build/{libs → cjs/libs}/settings/mergeSettingStrategy.d.ts +0 -0
  927. /package/build/{plugins → cjs/plugins}/gravity-charts/renderer/withSplitPane/TooltipContent.d.ts +0 -0
  928. /package/build/{plugins → cjs/plugins}/highcharts/renderer/components/HighchartsComponent.css +0 -0
  929. /package/build/{plugins → cjs/plugins}/highcharts/renderer/components/useElementSize.d.ts +0 -0
  930. /package/build/{plugins → cjs/plugins}/highcharts/renderer/components/withSplitPane/WithSplitPane.css +0 -0
  931. /package/build/{plugins → cjs/plugins}/highcharts/renderer/helpers/comments/drawing.d.ts +0 -0
  932. /package/build/{plugins → cjs/plugins}/highcharts/renderer/helpers/config/config.d.ts +0 -0
  933. /package/build/{plugins → cjs/plugins}/highcharts/renderer/helpers/config/handleLegendItemClick.d.ts +0 -0
  934. /package/build/{plugins → cjs/plugins}/highcharts/renderer/helpers/config/options.d.ts +0 -0
  935. /package/build/{plugins → cjs/plugins}/highcharts/renderer/helpers/config/types.d.ts +0 -0
  936. /package/build/{plugins → cjs/plugins}/highcharts/renderer/helpers/config/utils/buildNavigatorFallback.d.ts +0 -0
  937. /package/build/{plugins → cjs/plugins}/highcharts/renderer/helpers/config/utils/calculatePrecision.d.ts +0 -0
  938. /package/build/{plugins → cjs/plugins}/highcharts/renderer/helpers/config/utils/concatStrings.d.ts +0 -0
  939. /package/build/{plugins → cjs/plugins}/highcharts/renderer/helpers/config/utils/getXAxisThresholdValue.d.ts +0 -0
  940. /package/build/{plugins → cjs/plugins}/highcharts/renderer/helpers/config/utils/isSafari.d.ts +0 -0
  941. /package/build/{plugins → cjs/plugins}/highcharts/renderer/helpers/config/utils/localStorage.d.ts +0 -0
  942. /package/build/{plugins → cjs/plugins}/highcharts/renderer/helpers/config/utils/mergeArrayWithObject.d.ts +0 -0
  943. /package/build/{plugins → cjs/plugins}/highcharts/renderer/helpers/constants.d.ts +0 -0
  944. /package/build/{plugins → cjs/plugins}/highcharts/renderer/helpers/highcharts/colors.d.ts +0 -0
  945. /package/build/{plugins → cjs/plugins}/highcharts/renderer/helpers/highcharts/highcharts.d.ts +0 -0
  946. /package/build/{plugins → cjs/plugins}/highcharts/renderer/helpers/highcharts/utils/calcucalteClosestPointManually.d.ts +0 -0
  947. /package/build/{plugins → cjs/plugins}/highcharts/renderer/helpers/prepare-data.d.ts +0 -0
  948. /package/build/{plugins → cjs/plugins}/highcharts/renderer/helpers/tooltip/constants.d.ts +0 -0
  949. /package/build/{plugins → cjs/plugins}/highcharts/renderer/helpers/tooltip/helpers.d.ts +0 -0
  950. /package/build/{plugins → cjs/plugins}/highcharts/renderer/helpers/tooltip/render-shape-icon/types.d.ts +0 -0
  951. /package/build/{plugins → cjs/plugins}/highcharts/renderer/helpers/tooltip/render-shape-icon/utils.d.ts +0 -0
  952. /package/build/{plugins → cjs/plugins}/highcharts/types/comments.d.ts +0 -0
  953. /package/build/{plugins → cjs/plugins}/highcharts/types/highcharts-extends.d.ts +0 -0
  954. /package/build/{plugins → cjs/plugins}/highcharts/types/lib.d.ts +0 -0
  955. /package/build/{plugins → cjs/plugins}/indicator/types.d.ts +0 -0
  956. /package/build/{plugins → cjs/plugins}/shared/format-number/i18n/en.json +0 -0
  957. /package/build/{plugins → cjs/plugins}/shared/format-number/i18n/i18n.d.ts +0 -0
  958. /package/build/{plugins → cjs/plugins}/shared/format-number/i18n/ru.json +0 -0
  959. /package/build/{plugins → cjs/plugins}/shared/format-number/types.d.ts +0 -0
  960. /package/build/{plugins → cjs/plugins}/yagr/renderer/YagrWidget.css +0 -0
  961. /package/build/{components/SplitPane/types.js → cjs/plugins/yagr/renderer/polyfills.d.ts} +0 -0
  962. /package/build/{plugins → cjs/plugins}/yagr/renderer/tooltip/helpers/escapeHTML.d.ts +0 -0
  963. /package/build/{plugins → cjs/plugins}/yagr/renderer/tooltip/types.d.ts +0 -0
  964. /package/build/{types → cjs/types}/misc.d.ts +0 -0
  965. /package/build/{utils → cjs/utils}/cn.d.ts +0 -0
  966. /package/build/{utils → cjs/utils}/common.d.ts +0 -0
  967. /package/build/{utils → cjs/utils}/performance.d.ts +0 -0
  968. /package/build/{utils → cjs/utils}/react.d.ts +0 -0
  969. /package/build/{plugins/highcharts/types/lib.js → esm/plugins/highcharts/types/lib.d.ts} +0 -0
  970. /package/build/{plugins → esm/plugins}/yagr/renderer/polyfills.d.ts +0 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"prepare-data.js","sourceRoot":"../../../../../../src","sources":["plugins/highcharts/renderer/helpers/prepare-data.js"],"names":[],"mappings":";;AAqGA,kCA8HC;;AAnOD,uDAAgD;AAChD,wEAA6C;AAE7C,oDAAsC;AACtC,oDAAoE;AAEpE,8CAAgD;AAEhD,SAAS,YAAY,CAAC,KAAK,EAAE,UAAU,EAAE,OAAO;IAC5C,IAAI,KAAK,KAAK,IAAI,EAAE,CAAC;QACjB,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,IAAI,OAAO,CAAC,YAAY,EAAE,CAAC;QACvB,OAAO,KAAK,GAAG,CAAC,UAAU,IAAI,CAAC,CAAC,CAAC;IACrC,CAAC;IACD,IAAI,OAAO,CAAC,YAAY,EAAE,CAAC;QACvB,OAAO,KAAK,GAAG,UAAU,CAAC;IAC9B,CAAC;IACD,OAAO,KAAK,CAAC;AACjB,CAAC;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,CAAC,CAAC;QAC5C,CAAC;QAED,OAAO,CAAC,GAAG,GAAG,GAAG,CAAC;QAClB,OAAO,CAAC,GAAG,GAAG,GAAG,CAAC;IACtB,CAAC;AACL,CAAC","sourcesContent":["import {dateTime} from '@gravity-ui/date-utils';\nimport arrayMin from 'es-toolkit/compat/min';\n\nimport {i18n} from '../../../../i18n';\nimport {CHARTKIT_ERROR_CODE, ChartKitError} from '../../../../libs';\n\nimport {DEFAULT_LINES_LIMIT} from './constants';\n\nfunction prepareValue(value, firstValue, options) {\n if (value === null) {\n return null;\n }\n if (options.normalizeDiv) {\n return value / (firstValue || 1);\n }\n if (options.normalizeSub) {\n return value - firstValue;\n }\n return value;\n}\n\nfunction sortByLastValue(a, b) {\n if (a._lastValue < b._lastValue) {\n return -1;\n }\n if (a._lastValue > b._lastValue) {\n return 1;\n }\n return 0;\n}\n\nfunction sortByAlphabet(a, b) {\n if (a.name < b.name) {\n return -1;\n }\n if (a.name > b.name) {\n return 1;\n }\n return 0;\n}\n\nconst HIGHCHARTS_SCALE = {\n s: 'second',\n h: 'hour',\n d: 'day',\n w: 'week',\n m: 'month',\n q: 'quarter',\n y: 'year',\n};\n\nfunction computeXTickScale(range) {\n const timeUnits = {\n s: 1000,\n i: 60000,\n h: 3600000,\n d: 86400000,\n w: 604800000,\n m: 2419200000,\n q: 7344000000,\n y: 31449600000,\n };\n let previous = 's';\n\n // eslint-disable-next-line guard-for-in\n for (const current in timeUnits) {\n if (timeUnits[current] > range) {\n return previous;\n }\n previous = current;\n }\n\n return previous;\n}\n\nfunction removeHolidays(data, options, holidays) {\n const timeline = [];\n const graphsData = [];\n\n data.graphs.forEach((graph, i) => {\n graphsData[i] = [];\n });\n\n data.categories_ms.forEach((ts, i) => {\n const key = dateTime({input: ts}).format('YYYYMMDD');\n const region = (options.region && options.region.toLowerCase()) || 'tot';\n const holiday = holidays.holiday[region][key] || holidays.weekend[region][key];\n\n if (!holiday) {\n timeline.push(ts);\n data.graphs.forEach((graph, j) => graphsData[j].push(graph.data[i]));\n }\n });\n\n data.categories_ms = timeline;\n data.graphs.forEach((graph, i) => {\n graph.data = graphsData[i];\n });\n}\n\n// eslint-disable-next-line complexity\nexport function prepareData(data, options, holidays) {\n const limit = options.linesLimit || DEFAULT_LINES_LIMIT;\n\n if (\n !data ||\n (typeof data === 'object' && !Object.keys(data).length) ||\n (data.graphs &&\n !(\n data.graphs.length && data.graphs.some((graph) => graph.data && graph.data.length)\n )) ||\n (Array.isArray(data) && !data.length)\n ) {\n throw new ChartKitError({\n code: CHARTKIT_ERROR_CODE.NO_DATA,\n message: i18n('error', 'label_no-data'),\n });\n }\n\n if (data.graphs) {\n if (data.graphs.length > limit && !options.withoutLineLimit) {\n throw new ChartKitError({code: CHARTKIT_ERROR_CODE.TOO_MANY_LINES});\n }\n\n data.graphs.forEach((graph) => {\n graph.name = graph.name || graph.title;\n });\n\n let min = false;\n let max = false;\n\n if (data.categories_ms) {\n options.highchartsScale = HIGHCHARTS_SCALE[options.scale];\n\n const closestPointRange = arrayMin(\n data.categories_ms.map(\n (timestamp, index) => timestamp - data.categories_ms[index - 1],\n ),\n );\n options.scale = options.scale || computeXTickScale(closestPointRange);\n\n if (options.scale && options.scale.length > 1) {\n const match = options.scale.match(/^[sihyqmwd]/g);\n options.scale = match ? match[0] : null;\n }\n\n data.graphs\n .filter(({data}) => Boolean(data))\n .forEach((graph, index) => {\n let result = [];\n const aloneOrHasNull =\n graph.data.length === 1 || graph.data.indexOf(null) !== -1;\n\n const firstValue = graph.data[0];\n\n if (aloneOrHasNull) {\n result = graph.data.map((val, pos) => {\n if (val !== null && typeof val === 'object') {\n return val;\n }\n\n const preparedVal = prepareValue(val, firstValue, options);\n\n const currentPoint = {\n x: data.categories_ms[pos],\n y: preparedVal,\n };\n\n if (preparedVal !== null) {\n min = Math.min(min, preparedVal);\n max = Math.max(max, preparedVal);\n }\n\n return currentPoint;\n });\n } else {\n result = graph.data.map((val, pos) => {\n if (val !== null && typeof val === 'object') {\n return val;\n }\n const preparedVal = prepareValue(val, firstValue, options);\n min = Math.min(min, preparedVal);\n max = Math.max(max, preparedVal);\n return [data.categories_ms[pos], preparedVal];\n });\n }\n\n data.graphs[index].data = result;\n });\n\n delete data.categories;\n }\n\n if (data.categories) {\n delete data.categories_ms;\n }\n\n if (options.orderType === 'byLastValue') {\n data.graphs.forEach((graphItem) => {\n graphItem._lastValue =\n (graphItem.data &&\n graphItem.data[graphItem.data.length - 1] &&\n (graphItem.data[graphItem.data.length - 1][1] ||\n graphItem.data[graphItem.data.length - 1].y)) ||\n 0;\n });\n data.graphs.sort(sortByLastValue);\n }\n\n if (options.orderType === 'alphabet') {\n data.graphs.sort(sortByAlphabet);\n }\n\n if (\n (options.orderType === 'byLastValue' || options.orderType === 'alphabet') &&\n options.orderSort === 'fromBottom'\n ) {\n data.graphs.reverse();\n }\n\n if (holidays && options.hideHolidays) {\n removeHolidays(data, options, holidays);\n }\n\n options.max = max;\n options.min = min;\n }\n}\n"]}
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.LineShapeType = void 0;
4
+ var LineShapeType;
5
+ (function (LineShapeType) {
6
+ LineShapeType["Solid"] = "Solid";
7
+ LineShapeType["ShortDash"] = "ShortDash";
8
+ LineShapeType["ShortDot"] = "ShortDot";
9
+ LineShapeType["ShortDashDot"] = "ShortDashDot";
10
+ LineShapeType["ShortDashDotDot"] = "ShortDashDotDot";
11
+ LineShapeType["Dot"] = "Dot";
12
+ LineShapeType["Dash"] = "Dash";
13
+ LineShapeType["LongDash"] = "LongDash";
14
+ LineShapeType["DashDot"] = "DashDot";
15
+ LineShapeType["LongDashDot"] = "LongDashDot";
16
+ LineShapeType["LongDashDotDot"] = "LongDashDotDot";
17
+ })(LineShapeType || (exports.LineShapeType = LineShapeType = {}));
18
+ //# sourceMappingURL=constants.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.js","sourceRoot":"../../../../../../../src","sources":["plugins/highcharts/renderer/helpers/tooltip/constants.ts"],"names":[],"mappings":";;;AAAA,IAAY,aAYX;AAZD,WAAY,aAAa;IACrB,gCAAe,CAAA;IACf,wCAAuB,CAAA;IACvB,sCAAqB,CAAA;IACrB,8CAA6B,CAAA;IAC7B,oDAAmC,CAAA;IACnC,4BAAW,CAAA;IACX,8BAAa,CAAA;IACb,sCAAqB,CAAA;IACrB,oCAAmB,CAAA;IACnB,4CAA2B,CAAA;IAC3B,kDAAiC,CAAA;AACrC,CAAC,EAZW,aAAa,6BAAb,aAAa,QAYxB","sourcesContent":["export enum LineShapeType {\n Solid = 'Solid',\n ShortDash = 'ShortDash',\n ShortDot = 'ShortDot',\n ShortDashDot = 'ShortDashDot',\n ShortDashDotDot = 'ShortDashDotDot',\n Dot = 'Dot',\n Dash = 'Dash',\n LongDash = 'LongDash',\n DashDot = 'DashDot',\n LongDashDot = 'LongDashDot',\n LongDashDotDot = 'LongDashDotDot',\n}\n"]}
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.escapeHTML = void 0;
4
+ const escapeHTML = (html = '') => {
5
+ const elem = document.createElement('span');
6
+ elem.innerText = html;
7
+ return elem.innerHTML;
8
+ };
9
+ exports.escapeHTML = escapeHTML;
10
+ //# sourceMappingURL=helpers.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"helpers.js","sourceRoot":"../../../../../../../src","sources":["plugins/highcharts/renderer/helpers/tooltip/helpers.ts"],"names":[],"mappings":";;;AAAO,MAAM,UAAU,GAAG,CAAC,IAAI,GAAG,EAAE,EAAE,EAAE;IACpC,MAAM,IAAI,GAAG,QAAQ,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC;IAC5C,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC;IAEtB,OAAO,IAAI,CAAC,SAAS,CAAC;AAC1B,CAAC,CAAC;AALW,QAAA,UAAU,cAKrB","sourcesContent":["export const escapeHTML = (html = '') => {\n const elem = document.createElement('span');\n elem.innerText = html;\n\n return elem.innerHTML;\n};\n"]}
@@ -0,0 +1,13 @@
1
+ import type { Highcharts } from "../../../types/index.js";
2
+ import type { TooltipData } from "./types.js";
3
+ import "./tooltip.css";
4
+ export declare const SERIES_NAME_DATA_ATTRIBUTE = "data-series-name";
5
+ export declare const SERIES_IDX_DATA_ATTRIBUTE = "data-series-idx";
6
+ export declare const TOOLTIP_CONTAINER_CLASS_NAME = "_tooltip";
7
+ export declare const TOOLTIP_ROW_NAME_CLASS_NAME = "_tooltip-rows__name-td";
8
+ export declare const TOOLTIP_ROW_CLASS_NAME = "_tooltip-row";
9
+ export declare const TOOLTIP_HEADER_CLASS_NAME = "_tooltip-header";
10
+ export declare const TOOLTIP_LIST_CLASS_NAME = "_tooltip-list";
11
+ export declare const TOOLTIP_FOOTER_CLASS_NAME = "_tooltip-footer";
12
+ export declare const formatTooltip: (data: TooltipData, tooltip: Highcharts.Tooltip, isMobile?: boolean) => string;
13
+ export default formatTooltip;
@@ -0,0 +1,274 @@
1
+ "use strict";
2
+ /* eslint-disable complexity */
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.formatTooltip = exports.TOOLTIP_FOOTER_CLASS_NAME = exports.TOOLTIP_LIST_CLASS_NAME = exports.TOOLTIP_HEADER_CLASS_NAME = exports.TOOLTIP_ROW_CLASS_NAME = exports.TOOLTIP_ROW_NAME_CLASS_NAME = exports.TOOLTIP_CONTAINER_CLASS_NAME = exports.SERIES_IDX_DATA_ATTRIBUTE = exports.SERIES_NAME_DATA_ATTRIBUTE = void 0;
5
+ const tslib_1 = require("tslib");
6
+ const escape_1 = tslib_1.__importDefault(require("es-toolkit/compat/escape"));
7
+ const i18n_1 = require("../../../../../i18n/index.js");
8
+ const helpers_1 = require("./helpers.js");
9
+ const render_shape_icon_1 = require("./render-shape-icon/index.js");
10
+ require("./tooltip.css");
11
+ exports.SERIES_NAME_DATA_ATTRIBUTE = 'data-series-name';
12
+ exports.SERIES_IDX_DATA_ATTRIBUTE = 'data-series-idx';
13
+ exports.TOOLTIP_CONTAINER_CLASS_NAME = '_tooltip';
14
+ exports.TOOLTIP_ROW_NAME_CLASS_NAME = '_tooltip-rows__name-td';
15
+ exports.TOOLTIP_ROW_CLASS_NAME = '_tooltip-row';
16
+ exports.TOOLTIP_HEADER_CLASS_NAME = '_tooltip-header';
17
+ exports.TOOLTIP_LIST_CLASS_NAME = '_tooltip-list';
18
+ exports.TOOLTIP_FOOTER_CLASS_NAME = '_tooltip-footer';
19
+ const renderEmptyCell = () => '<td />';
20
+ const renderColorCell = (line) => `<td class="_tooltip-rows__bubble-td">
21
+ <div class="_tooltip-rows__bubble-div" style="background-color:${line.seriesColor};"></div>
22
+ </td>`;
23
+ const renderLineShapeCell = (line) => `<td class="_tooltip-rows__shape-td">
24
+ <div class="_tooltip-rows__shape-div"
25
+ style="color:${line.seriesColor};">
26
+ ${(0, render_shape_icon_1.renderShapeIcon)({ type: line.seriesShape })}
27
+ </div>
28
+ </td>`;
29
+ const renderNameCell = (line, options) => {
30
+ let value = '';
31
+ if (!line.hideSeriesName) {
32
+ value = line.seriesName;
33
+ if (!options?.unsafe) {
34
+ value = (0, helpers_1.escapeHTML)(value);
35
+ }
36
+ }
37
+ return `<td class="${exports.TOOLTIP_ROW_NAME_CLASS_NAME}">
38
+ ${value}
39
+ </td>`;
40
+ };
41
+ const renderPercentCell = (line) => `<td class="_tooltip-rows__percent-td">
42
+ ${line.percentValue ? line.percentValue + '%' : ''}
43
+ </td>`;
44
+ const renderValueCell = (line) => `<td class="_tooltip-rows__value-td">
45
+ ${line.value}
46
+ </td>`;
47
+ const renderDiffCell = (line) => `<td class="_tooltip-rows__diff-td">
48
+ ${line.diff ? ` (${line.diff})` : ''}
49
+ </td>`;
50
+ const renderAdditionalSection = (data, splitTooltip = false, colspanNumber = 1) => {
51
+ return `<td class="_tooltip-right__td ${splitTooltip ? '_tooltip-right__td_with-split-tooltip' : ''}" colspan="${colspanNumber || 1}">
52
+ ${data.holiday
53
+ ? `<div class="_tooltip-right__holiday-div">
54
+ <div class="_tooltip-right__holiday-emoji">🎈</div>
55
+ <div>
56
+ ${data.holidayText}
57
+ ${data.region
58
+ ? `<span class="_tooltip-right__holiday-region">[${data.region}]</span>`
59
+ : ''}
60
+ </div>
61
+ </div>`
62
+ : ''}
63
+
64
+ ${data.commentDateText
65
+ ? `<div class="${data.xComments ? '_tooltip-right__margin-bot' : ''}">${data.commentDateText}</div>`
66
+ : ''}
67
+
68
+ ${data.xComments
69
+ ? data.xComments
70
+ .map((comment) => `<div class="_tooltip-right__traf-div ${splitTooltip
71
+ ? '_tooltip-right__traf-div_for-split-tooltip'
72
+ : ''}" style="border-color: ${comment.color};">${comment.text}</div>`)
73
+ .join('')
74
+ : ''}
75
+ </td>`;
76
+ };
77
+ const renderRow = (line, { isSelectedLine, cellsRenderers, isSingleLine, allowComment, withDarkBackground, rowIndex, unsafe, }) => {
78
+ const hasComment = line.commentText || line.xyCommentText;
79
+ const needRenderComment = allowComment && hasComment;
80
+ const fullCellsRenderers = cellsRenderers.slice();
81
+ const rowKey = `${String(rowIndex) || ''}-${String((0, helpers_1.escapeHTML)(line.seriesName))
82
+ .slice(0, 20)
83
+ .replace(/(\r\n|\n|\r)/gm, '')}`;
84
+ if (line.insertCellAt) {
85
+ (Object.keys(line.insertCellAt) || []).forEach((index) => {
86
+ fullCellsRenderers.splice(Number(index), 0, renderEmptyCell);
87
+ });
88
+ }
89
+ if (line.customRender) {
90
+ return `<tr class="${exports.TOOLTIP_ROW_CLASS_NAME}${isSelectedLine ? ' _tooltip-selected-row' : ''}${isSingleLine ? ' _tooltip-uniq-row' : ''}${withDarkBackground ? ' _tooltip-row-dark-bg' : ''}" ${exports.SERIES_NAME_DATA_ATTRIBUTE}="${rowKey}" ${line.seriesIdx ? `${exports.SERIES_IDX_DATA_ATTRIBUTE}="${line.seriesIdx}"` : ''}>
91
+ ${line.customRender.trim().indexOf('<td') === 0
92
+ ? line.customRender
93
+ : `<td colspan="${cellsRenderers.length}">${line.customRender}</td>`}
94
+ </tr>
95
+ ${needRenderComment
96
+ ? `<tr class="_tooltip-comment-row${isSelectedLine ? ' _tooltip-selected-row' : ''}${withDarkBackground ? ' _tooltip-row-dark-bg' : ''}">
97
+ <td>
98
+ ${line.commentText
99
+ ? `<div class="_tooltip-rows__comment-div">${line.commentText}</div>`
100
+ : ''}
101
+ ${line.xyCommentText
102
+ ? `<div class="_tooltip-rows__comment-div">${line.xyCommentText}</div>`
103
+ : ''}
104
+ </td>
105
+ </tr>`
106
+ : ''}`;
107
+ }
108
+ return `<tr class="${exports.TOOLTIP_ROW_CLASS_NAME}${isSelectedLine ? ' _tooltip-selected-row' : ''}${isSingleLine ? ' _tooltip-uniq-row' : ''}${withDarkBackground ? ' _tooltip-row-dark-bg' : ''}" ${exports.SERIES_NAME_DATA_ATTRIBUTE}="${rowKey}" ${line.seriesIdx ? `${exports.SERIES_IDX_DATA_ATTRIBUTE}="${line.seriesIdx}"` : ''}>
109
+ ${fullCellsRenderers
110
+ .map((render, index) => {
111
+ if (line.replaceCellAt && line.replaceCellAt[index]) {
112
+ return typeof line.replaceCellAt[index] === 'string'
113
+ ? line.replaceCellAt[index]
114
+ : line.replaceCellAt[index](line);
115
+ }
116
+ else if (line.insertCellAt && line.insertCellAt[index]) {
117
+ return typeof line.insertCellAt[index] === 'string'
118
+ ? line.insertCellAt[index]
119
+ : line.insertCellAt[index](line);
120
+ }
121
+ else {
122
+ return render(line, { unsafe });
123
+ }
124
+ })
125
+ .join('')}
126
+ </tr>
127
+
128
+ ${needRenderComment
129
+ ? `<tr class="_tooltip-comment-row${isSelectedLine ? ' _tooltip-selected-row' : ''}${withDarkBackground ? ' _tooltip-row-dark-bg' : ''}">
130
+ <td colspan="4">
131
+ ${line.commentText
132
+ ? `<div class="_tooltip-rows__comment-div">${line.commentText}</div>`
133
+ : ''}
134
+ ${line.xyCommentText
135
+ ? `<div class="_tooltip-rows__comment-div">${line.xyCommentText}</div>`
136
+ : ''}
137
+ </td>
138
+ </tr>`
139
+ : ''}`;
140
+ };
141
+ const formatTooltip = (data, tooltip, isMobile) => {
142
+ const { splitTooltip, activeRowAlwaysFirstInTooltip } = data;
143
+ const lines = data.lines.slice(0, (tooltip.lastVisibleRowIndex || data.lines.length) + 1);
144
+ const selectedLineIndex = lines.findIndex(({ selectedSeries }) => selectedSeries);
145
+ const selectedLine = lines[selectedLineIndex];
146
+ const withShapes = lines.every((line) => line.seriesShape);
147
+ const unsafe = data.unsafe;
148
+ const tooltipHeaderRaw = data.tooltipHeader?.trim();
149
+ const tooltipHeaderEscaped = (0, helpers_1.escapeHTML)(tooltipHeaderRaw);
150
+ const cellsRenderers = [];
151
+ if (withShapes) {
152
+ cellsRenderers.push(renderLineShapeCell);
153
+ }
154
+ else {
155
+ cellsRenderers.push(renderColorCell);
156
+ }
157
+ if (data.shared) {
158
+ cellsRenderers.push(renderNameCell);
159
+ }
160
+ if (data.withPercent) {
161
+ cellsRenderers.push(renderPercentCell);
162
+ }
163
+ cellsRenderers.push(renderValueCell);
164
+ if (data.useCompareFrom) {
165
+ cellsRenderers.push(renderDiffCell);
166
+ }
167
+ const rowRenderingConfig = {
168
+ isSingleLine: lines.length === 1,
169
+ cellsRenderers,
170
+ unsafe,
171
+ };
172
+ const rowRenderingConfigForSelectedLine = {
173
+ cellsRenderers,
174
+ useCompareFrom: data.useCompareFrom,
175
+ isSelectedLine: true,
176
+ allowComment: typeof tooltip.lastVisibleRowIndex === 'number' &&
177
+ selectedLineIndex > tooltip.lastVisibleRowIndex,
178
+ };
179
+ // @ts-ignore
180
+ const windowHeight = document.body.clientHeight / ((window.visualViewport && window.visualViewport.scale) || 1);
181
+ const tooltipMaxHeight = isMobile && window.innerHeight > window.innerWidth
182
+ ? windowHeight - tooltip.chart?.plotSizeY ||
183
+ tooltip.yagrChart?.height ||
184
+ windowHeight / 2
185
+ : windowHeight - (tooltip.options.padding || 0) * 4;
186
+ function getRowRenderConfig(index) {
187
+ return {
188
+ ...rowRenderingConfig,
189
+ rowIndex: index,
190
+ isSelectedLine: lines.length > 1 && index === selectedLineIndex,
191
+ withDarkBackground: lines.length > 2 && Boolean(index % 2),
192
+ allowComment: index !== selectedLineIndex || !rowRenderingConfigForSelectedLine.allowComment,
193
+ };
194
+ }
195
+ let tooltipContainerClassNames = exports.TOOLTIP_CONTAINER_CLASS_NAME;
196
+ if (splitTooltip) {
197
+ tooltipContainerClassNames += ` ${exports.TOOLTIP_CONTAINER_CLASS_NAME}_split-tooltip`;
198
+ }
199
+ return `
200
+ <div class="${tooltipContainerClassNames}" style="${tooltip.preFixationHeight ? `height: ${tooltip.preFixationHeight}px; ` : ''}max-height: ${splitTooltip ? 'auto' : `${tooltipMaxHeight}px`}">
201
+ ${tooltipHeaderRaw
202
+ ? `<div title="${unsafe ? '' : (0, escape_1.default)(tooltipHeaderEscaped)}" class="_tooltip-date">
203
+ ${unsafe ? tooltipHeaderRaw : tooltipHeaderEscaped}
204
+ </div>`
205
+ : ''}
206
+ ${splitTooltip &&
207
+ (data.holiday || data.commentDateText || (data.xComments && data.xComments.length))
208
+ ? `<table border="0" cellpadding="0" cellspacing="0">
209
+ <tbody>
210
+ <tr>
211
+ ${renderAdditionalSection(data, true, cellsRenderers.length)}
212
+ </tr>
213
+ </tbody>
214
+ </table>`
215
+ : ''}
216
+ <table border="0" cellpadding="0" cellspacing="0">
217
+ <tr>
218
+ <td class="_tooltip-left__td">
219
+ <table class="_tooltip-rows__table">
220
+ ${splitTooltip
221
+ ? ''
222
+ : `<thead class=${exports.TOOLTIP_HEADER_CLASS_NAME}>
223
+ ${selectedLine &&
224
+ (activeRowAlwaysFirstInTooltip ||
225
+ (tooltip.lastVisibleRowIndex &&
226
+ selectedLineIndex > tooltip.lastVisibleRowIndex))
227
+ ? renderRow(selectedLine, rowRenderingConfigForSelectedLine)
228
+ : ''}
229
+ <tr class="_tooltip-fake-row">${Array(cellsRenderers.length)
230
+ .fill('<td></td>')
231
+ .join('')}</tr>
232
+ </thead>`}
233
+ <tbody class="${exports.TOOLTIP_LIST_CLASS_NAME}">
234
+ ${lines
235
+ .map((line, index) => renderRow(line, getRowRenderConfig(index)))
236
+ .join('')}
237
+ </tbody>
238
+ ${splitTooltip
239
+ ? ''
240
+ : `<tbody class="${exports.TOOLTIP_FOOTER_CLASS_NAME}">
241
+ ${tooltip.lastVisibleRowIndex && data.hiddenRowsNumber > 0
242
+ ? `<tr class="${exports.TOOLTIP_ROW_CLASS_NAME} _hidden-rows-sum${lines.length % 2 ? ' _hidden-rows-sum-dark-bg' : ''}">
243
+ <td colspan="${cellsRenderers.length - 1}" class="_hidden-rows-number">
244
+ ${(0, i18n_1.i18n)('chartkit', 'tooltip-rest')} ${data.hiddenRowsNumber}
245
+ </td>
246
+ <td class="_hidden-rows-value">${data.hiddenRowsSum}</td>
247
+ </tr>`
248
+ : ''}
249
+ <tr class="_tooltip-fake-row">${Array(cellsRenderers.length)
250
+ .fill('<td></td>')
251
+ .join('')}</tr>
252
+ ${data.sum
253
+ ? `<tr class="_tooltip-rows__summ-tr">
254
+ <td class="_tooltip-rows__summ-td" colspan="${cellsRenderers.length - 1}">${(0, i18n_1.i18n)('chartkit', 'tooltip-sum')}</td>
255
+ <td class="_tooltip-rows__summ-td _tooltip-rows__summ-td-value">
256
+ ${data.sum}
257
+ </td>
258
+ </tr>`
259
+ : ''}
260
+ </tbody>`}
261
+ </table>
262
+ </td>
263
+
264
+ ${!splitTooltip &&
265
+ (data.holiday || data.commentDateText || (data.xComments && data.xComments.length))
266
+ ? renderAdditionalSection(data)
267
+ : ''}
268
+ </tr>
269
+ </table>
270
+ </div>`;
271
+ };
272
+ exports.formatTooltip = formatTooltip;
273
+ exports.default = exports.formatTooltip;
274
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"../../../../../../../src","sources":["plugins/highcharts/renderer/helpers/tooltip/index.ts"],"names":[],"mappings":";AAAA,+BAA+B;;;;AAE/B,8EAA+C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oBAChC,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,2BAA2B,CAAC,CAAC,CAAC,EACrD;2DAEM,cAAc,CAAC,MAAM,GAAG,CAC5B;kDACM,IAAA,WAAI,EAAC,UAAU,EAAE,cAAc,CAAC,IAC9B,IAAI,CAAC,gBACT;;6EAGA,IAAI,CAAC,aACT;8CACE;YACN,CAAC,CAAC,EACV;gEACgC,KAAK,CAAC,cAAc,CAAC,MAAM,CAAC;aACvD,IAAI,CAAC,WAAW,CAAC;aACjB,IAAI,CAAC,EAAE,CAAC;kCAET,IAAI,CAAC,GAAG;YACJ,CAAC,CAAC;0FAEM,cAAc,CAAC,MAAM,GAAG,CAC5B,KAAK,IAAA,WAAI,EAAC,UAAU,EAAE,aAAa,CAAC;;kDAE9B,IAAI,CAAC,GAAG;;8CAEZ;YACN,CAAC,CAAC,EACV;qCAEZ;;;;cAKJ,CAAC,YAAY;QACb,CAAC,IAAI,CAAC,OAAO,IAAI,IAAI,CAAC,eAAe,IAAI,CAAC,IAAI,CAAC,SAAS,IAAI,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC;QAC/E,CAAC,CAAC,uBAAuB,CAAC,IAAI,CAAC;QAC/B,CAAC,CAAC,EACV;;;OAGL,CAAC;AACR,CAAC,CAAC;AAlLW,QAAA,aAAa,iBAkLxB;AAEF,kBAAe,qBAAa,CAAC","sourcesContent":["/* eslint-disable complexity */\n\nimport _escape from 'es-toolkit/compat/escape';\n\nimport {i18n} from '../../../../../i18n';\nimport type {Highcharts} from '../../../types';\n\nimport {escapeHTML} from './helpers';\nimport {renderShapeIcon} from './render-shape-icon';\nimport type {RowRenderingConfig, TooltipData, TooltipLine} from './types';\n\nimport './tooltip.scss';\n\nexport const SERIES_NAME_DATA_ATTRIBUTE = 'data-series-name';\nexport const SERIES_IDX_DATA_ATTRIBUTE = 'data-series-idx';\nexport const TOOLTIP_CONTAINER_CLASS_NAME = '_tooltip';\nexport const TOOLTIP_ROW_NAME_CLASS_NAME = '_tooltip-rows__name-td';\nexport const TOOLTIP_ROW_CLASS_NAME = '_tooltip-row';\nexport const TOOLTIP_HEADER_CLASS_NAME = '_tooltip-header';\nexport const TOOLTIP_LIST_CLASS_NAME = '_tooltip-list';\nexport const TOOLTIP_FOOTER_CLASS_NAME = '_tooltip-footer';\n\nconst renderEmptyCell = () => '<td />';\n\nconst renderColorCell = (line: TooltipLine) =>\n `<td class=\"_tooltip-rows__bubble-td\">\n <div class=\"_tooltip-rows__bubble-div\" style=\"background-color:${line.seriesColor};\"></div>\n </td>`;\n\nconst renderLineShapeCell = (line: TooltipLine) =>\n `<td class=\"_tooltip-rows__shape-td\">\n <div class=\"_tooltip-rows__shape-div\"\n style=\"color:${line.seriesColor};\">\n ${renderShapeIcon({type: line.seriesShape})}\n </div>\n </td>`;\n\nconst renderNameCell = (line: TooltipLine, options?: {unsafe?: boolean}) => {\n let value = '';\n if (!line.hideSeriesName) {\n value = line.seriesName;\n\n if (!options?.unsafe) {\n value = escapeHTML(value);\n }\n }\n return `<td class=\"${TOOLTIP_ROW_NAME_CLASS_NAME}\">\n ${value}\n </td>`;\n};\n\nconst renderPercentCell = (line: TooltipLine) =>\n `<td class=\"_tooltip-rows__percent-td\">\n ${line.percentValue ? line.percentValue + '%' : ''}\n </td>`;\n\nconst renderValueCell = (line: TooltipLine) =>\n `<td class=\"_tooltip-rows__value-td\">\n ${line.value}\n </td>`;\n\nconst renderDiffCell = (line: TooltipLine) =>\n `<td class=\"_tooltip-rows__diff-td\">\n ${line.diff ? ` (${line.diff})` : ''}\n </td>`;\n\nconst renderAdditionalSection = (data: TooltipData, splitTooltip = false, colspanNumber = 1) => {\n return `<td class=\"_tooltip-right__td ${\n splitTooltip ? '_tooltip-right__td_with-split-tooltip' : ''\n }\" colspan=\"${colspanNumber || 1}\">\n ${\n data.holiday\n ? `<div class=\"_tooltip-right__holiday-div\">\n <div class=\"_tooltip-right__holiday-emoji\">🎈</div>\n <div>\n ${data.holidayText}\n ${\n data.region\n ? `<span class=\"_tooltip-right__holiday-region\">[${data.region}]</span>`\n : ''\n }\n </div>\n </div>`\n : ''\n }\n\n ${\n data.commentDateText\n ? `<div class=\"${data.xComments ? '_tooltip-right__margin-bot' : ''}\">${\n data.commentDateText\n }</div>`\n : ''\n }\n\n ${\n data.xComments\n ? data.xComments\n .map(\n (comment) =>\n `<div class=\"_tooltip-right__traf-div ${\n splitTooltip\n ? '_tooltip-right__traf-div_for-split-tooltip'\n : ''\n }\" style=\"border-color: ${comment.color};\">${comment.text}</div>`,\n )\n .join('')\n : ''\n }\n </td>`;\n};\n\nconst renderRow = (\n line: TooltipLine,\n {\n isSelectedLine,\n cellsRenderers,\n isSingleLine,\n allowComment,\n withDarkBackground,\n rowIndex,\n unsafe,\n }: RowRenderingConfig,\n) => {\n const hasComment = line.commentText || line.xyCommentText;\n const needRenderComment = allowComment && hasComment;\n const fullCellsRenderers = cellsRenderers.slice();\n\n const rowKey = `${String(rowIndex) || ''}-${String(escapeHTML(line.seriesName))\n .slice(0, 20)\n .replace(/(\\r\\n|\\n|\\r)/gm, '')}`;\n\n if (line.insertCellAt) {\n (Object.keys(line.insertCellAt) || []).forEach((index) => {\n fullCellsRenderers.splice(Number(index), 0, renderEmptyCell);\n });\n }\n\n if (line.customRender) {\n return `<tr class=\"${TOOLTIP_ROW_CLASS_NAME}${\n isSelectedLine ? ' _tooltip-selected-row' : ''\n }${isSingleLine ? ' _tooltip-uniq-row' : ''}${\n withDarkBackground ? ' _tooltip-row-dark-bg' : ''\n }\" ${SERIES_NAME_DATA_ATTRIBUTE}=\"${rowKey}\" ${\n line.seriesIdx ? `${SERIES_IDX_DATA_ATTRIBUTE}=\"${line.seriesIdx}\"` : ''\n }>\n ${\n line.customRender.trim().indexOf('<td') === 0\n ? line.customRender\n : `<td colspan=\"${cellsRenderers.length}\">${line.customRender}</td>`\n }\n </tr>\n ${\n needRenderComment\n ? `<tr class=\"_tooltip-comment-row${\n isSelectedLine ? ' _tooltip-selected-row' : ''\n }${withDarkBackground ? ' _tooltip-row-dark-bg' : ''}\">\n <td>\n ${\n line.commentText\n ? `<div class=\"_tooltip-rows__comment-div\">${line.commentText}</div>`\n : ''\n }\n ${\n line.xyCommentText\n ? `<div class=\"_tooltip-rows__comment-div\">${line.xyCommentText}</div>`\n : ''\n }\n </td>\n </tr>`\n : ''\n }`;\n }\n\n return `<tr class=\"${TOOLTIP_ROW_CLASS_NAME}${isSelectedLine ? ' _tooltip-selected-row' : ''}${\n isSingleLine ? ' _tooltip-uniq-row' : ''\n }${\n withDarkBackground ? ' _tooltip-row-dark-bg' : ''\n }\" ${SERIES_NAME_DATA_ATTRIBUTE}=\"${rowKey}\" ${\n line.seriesIdx ? `${SERIES_IDX_DATA_ATTRIBUTE}=\"${line.seriesIdx}\"` : ''\n }>\n ${fullCellsRenderers\n .map((render, index) => {\n if (line.replaceCellAt && line.replaceCellAt[index]) {\n return typeof line.replaceCellAt[index] === 'string'\n ? line.replaceCellAt[index]\n : line.replaceCellAt[index](line);\n } else if (line.insertCellAt && line.insertCellAt[index]) {\n return typeof line.insertCellAt[index] === 'string'\n ? line.insertCellAt[index]\n : line.insertCellAt[index](line);\n } else {\n return render(line, {unsafe});\n }\n })\n .join('')}\n </tr>\n\n ${\n needRenderComment\n ? `<tr class=\"_tooltip-comment-row${\n isSelectedLine ? ' _tooltip-selected-row' : ''\n }${withDarkBackground ? ' _tooltip-row-dark-bg' : ''}\">\n <td colspan=\"4\">\n ${\n line.commentText\n ? `<div class=\"_tooltip-rows__comment-div\">${line.commentText}</div>`\n : ''\n }\n ${\n line.xyCommentText\n ? `<div class=\"_tooltip-rows__comment-div\">${line.xyCommentText}</div>`\n : ''\n }\n </td>\n </tr>`\n : ''\n }`;\n};\n\nexport const formatTooltip = (\n data: TooltipData,\n tooltip: Highcharts.Tooltip,\n isMobile?: boolean,\n) => {\n const {splitTooltip, activeRowAlwaysFirstInTooltip} = data;\n const lines = data.lines.slice(0, (tooltip.lastVisibleRowIndex || data.lines.length) + 1);\n const selectedLineIndex = lines.findIndex(({selectedSeries}) => selectedSeries);\n const selectedLine = lines[selectedLineIndex];\n const withShapes = lines.every((line) => line.seriesShape);\n const unsafe = data.unsafe;\n const tooltipHeaderRaw = data.tooltipHeader?.trim();\n const tooltipHeaderEscaped = escapeHTML(tooltipHeaderRaw);\n const cellsRenderers = [];\n\n if (withShapes) {\n cellsRenderers.push(renderLineShapeCell);\n } else {\n cellsRenderers.push(renderColorCell);\n }\n\n if (data.shared) {\n cellsRenderers.push(renderNameCell);\n }\n\n if (data.withPercent) {\n cellsRenderers.push(renderPercentCell);\n }\n\n cellsRenderers.push(renderValueCell);\n\n if (data.useCompareFrom) {\n cellsRenderers.push(renderDiffCell);\n }\n\n const rowRenderingConfig = {\n isSingleLine: lines.length === 1,\n cellsRenderers,\n unsafe,\n };\n\n const rowRenderingConfigForSelectedLine = {\n cellsRenderers,\n useCompareFrom: data.useCompareFrom,\n isSelectedLine: true,\n allowComment:\n typeof tooltip.lastVisibleRowIndex === 'number' &&\n selectedLineIndex > tooltip.lastVisibleRowIndex,\n };\n\n // @ts-ignore\n const windowHeight =\n document.body.clientHeight / ((window.visualViewport && window.visualViewport.scale) || 1);\n\n const tooltipMaxHeight =\n isMobile && window.innerHeight > window.innerWidth\n ? windowHeight - tooltip.chart?.plotSizeY ||\n tooltip.yagrChart?.height ||\n windowHeight / 2\n : windowHeight - (tooltip.options.padding || 0) * 4;\n\n function getRowRenderConfig(index: number) {\n return {\n ...rowRenderingConfig,\n rowIndex: index,\n isSelectedLine: lines.length > 1 && index === selectedLineIndex,\n withDarkBackground: lines.length > 2 && Boolean(index % 2),\n allowComment:\n index !== selectedLineIndex || !rowRenderingConfigForSelectedLine.allowComment,\n };\n }\n\n let tooltipContainerClassNames = TOOLTIP_CONTAINER_CLASS_NAME;\n\n if (splitTooltip) {\n tooltipContainerClassNames += ` ${TOOLTIP_CONTAINER_CLASS_NAME}_split-tooltip`;\n }\n\n return `\n<div class=\"${tooltipContainerClassNames}\" style=\"${\n tooltip.preFixationHeight ? `height: ${tooltip.preFixationHeight}px; ` : ''\n }max-height: ${splitTooltip ? 'auto' : `${tooltipMaxHeight}px`}\">\n ${\n tooltipHeaderRaw\n ? `<div title=\"${unsafe ? '' : _escape(tooltipHeaderEscaped)}\" class=\"_tooltip-date\">\n ${unsafe ? tooltipHeaderRaw : tooltipHeaderEscaped}\n </div>`\n : ''\n }\n ${\n splitTooltip &&\n (data.holiday || data.commentDateText || (data.xComments && data.xComments.length))\n ? `<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\n <tbody>\n <tr>\n ${renderAdditionalSection(data, true, cellsRenderers.length)}\n </tr>\n </tbody>\n </table>`\n : ''\n }\n <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\n <tr>\n <td class=\"_tooltip-left__td\">\n <table class=\"_tooltip-rows__table\">\n ${\n splitTooltip\n ? ''\n : `<thead class=${TOOLTIP_HEADER_CLASS_NAME}>\n ${\n selectedLine &&\n (activeRowAlwaysFirstInTooltip ||\n (tooltip.lastVisibleRowIndex &&\n selectedLineIndex > tooltip.lastVisibleRowIndex))\n ? renderRow(selectedLine, rowRenderingConfigForSelectedLine)\n : ''\n }\n <tr class=\"_tooltip-fake-row\">${Array(cellsRenderers.length)\n .fill('<td></td>')\n .join('')}</tr>\n </thead>`\n }\n <tbody class=\"${TOOLTIP_LIST_CLASS_NAME}\">\n ${lines\n .map((line, index) => renderRow(line, getRowRenderConfig(index)))\n .join('')}\n </tbody>\n ${\n splitTooltip\n ? ''\n : `<tbody class=\"${TOOLTIP_FOOTER_CLASS_NAME}\">\n ${\n tooltip.lastVisibleRowIndex && data.hiddenRowsNumber > 0\n ? `<tr class=\"${TOOLTIP_ROW_CLASS_NAME} _hidden-rows-sum${\n lines.length % 2 ? ' _hidden-rows-sum-dark-bg' : ''\n }\">\n <td colspan=\"${\n cellsRenderers.length - 1\n }\" class=\"_hidden-rows-number\">\n ${i18n('chartkit', 'tooltip-rest')} ${\n data.hiddenRowsNumber\n }\n </td>\n <td class=\"_hidden-rows-value\">${\n data.hiddenRowsSum\n }</td>\n </tr>`\n : ''\n }\n <tr class=\"_tooltip-fake-row\">${Array(cellsRenderers.length)\n .fill('<td></td>')\n .join('')}</tr>\n ${\n data.sum\n ? `<tr class=\"_tooltip-rows__summ-tr\">\n <td class=\"_tooltip-rows__summ-td\" colspan=\"${\n cellsRenderers.length - 1\n }\">${i18n('chartkit', 'tooltip-sum')}</td>\n <td class=\"_tooltip-rows__summ-td _tooltip-rows__summ-td-value\">\n ${data.sum}\n </td>\n </tr>`\n : ''\n }\n </tbody>`\n }\n </table>\n </td>\n\n ${\n !splitTooltip &&\n (data.holiday || data.commentDateText || (data.xComments && data.xComments.length))\n ? renderAdditionalSection(data)\n : ''\n }\n </tr>\n </table>\n</div>`;\n};\n\nexport default formatTooltip;\n"]}
@@ -0,0 +1,6 @@
1
+ import { LineShapeType } from "../constants.js";
2
+ export declare const renderShapeIcon: (args: {
3
+ type?: LineShapeType;
4
+ width?: string;
5
+ height?: string;
6
+ }) => string;
@@ -0,0 +1,27 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.renderShapeIcon = void 0;
4
+ const constants_1 = require("../constants.js");
5
+ const template_icons_1 = require("./template-icons/index.js");
6
+ const DEFAULT_ICON_WIDTH = '38px';
7
+ const DEFAULT_ICON_HEIGHT = '2px';
8
+ const TEMPLATE_ICONS = {
9
+ [constants_1.LineShapeType.DashDot]: template_icons_1.DashDotLineIcon,
10
+ [constants_1.LineShapeType.Dash]: template_icons_1.DashLineIcon,
11
+ [constants_1.LineShapeType.Dot]: template_icons_1.DotLineIcon,
12
+ [constants_1.LineShapeType.LongDashDotDot]: template_icons_1.LongDashDotDotLineIcon,
13
+ [constants_1.LineShapeType.LongDashDot]: template_icons_1.LongDashDotLineIcon,
14
+ [constants_1.LineShapeType.LongDash]: template_icons_1.LongDashLineIcon,
15
+ [constants_1.LineShapeType.ShortDashDotDot]: template_icons_1.ShortDashDotDotLineIcon,
16
+ [constants_1.LineShapeType.ShortDashDot]: template_icons_1.ShortDashDotLineIcon,
17
+ [constants_1.LineShapeType.ShortDash]: template_icons_1.ShortDashLineIcon,
18
+ [constants_1.LineShapeType.ShortDot]: template_icons_1.ShortDotLineIcon,
19
+ [constants_1.LineShapeType.Solid]: template_icons_1.SolidLineIcon,
20
+ };
21
+ const renderShapeIcon = (args) => {
22
+ const { type, width = DEFAULT_ICON_WIDTH, height = DEFAULT_ICON_HEIGHT } = args;
23
+ const templateIcon = type && TEMPLATE_ICONS[type];
24
+ return templateIcon ? templateIcon({ width, height }) : '';
25
+ };
26
+ exports.renderShapeIcon = renderShapeIcon;
27
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"../../../../../../../../src","sources":["plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/index.ts"],"names":[],"mappings":";;;AAAA,+CAA2C;AAE3C,8DAY0B;AAE1B,MAAM,kBAAkB,GAAG,MAAM,CAAC;AAClC,MAAM,mBAAmB,GAAG,KAAK,CAAC;AAClC,MAAM,cAAc,GAAG;IACnB,CAAC,yBAAa,CAAC,OAAO,CAAC,EAAE,gCAAe;IACxC,CAAC,yBAAa,CAAC,IAAI,CAAC,EAAE,6BAAY;IAClC,CAAC,yBAAa,CAAC,GAAG,CAAC,EAAE,4BAAW;IAChC,CAAC,yBAAa,CAAC,cAAc,CAAC,EAAE,uCAAsB;IACtD,CAAC,yBAAa,CAAC,WAAW,CAAC,EAAE,oCAAmB;IAChD,CAAC,yBAAa,CAAC,QAAQ,CAAC,EAAE,iCAAgB;IAC1C,CAAC,yBAAa,CAAC,eAAe,CAAC,EAAE,wCAAuB;IACxD,CAAC,yBAAa,CAAC,YAAY,CAAC,EAAE,qCAAoB;IAClD,CAAC,yBAAa,CAAC,SAAS,CAAC,EAAE,kCAAiB;IAC5C,CAAC,yBAAa,CAAC,QAAQ,CAAC,EAAE,iCAAgB;IAC1C,CAAC,yBAAa,CAAC,KAAK,CAAC,EAAE,8BAAa;CACvC,CAAC;AAEK,MAAM,eAAe,GAAG,CAAC,IAA6D,EAAE,EAAE;IAC7F,MAAM,EAAC,IAAI,EAAE,KAAK,GAAG,kBAAkB,EAAE,MAAM,GAAG,mBAAmB,EAAC,GAAG,IAAI,CAAC;IAC9E,MAAM,YAAY,GAAG,IAAI,IAAI,cAAc,CAAC,IAAI,CAAC,CAAC;IAElD,OAAO,YAAY,CAAC,CAAC,CAAC,YAAY,CAAC,EAAC,KAAK,EAAE,MAAM,EAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;AAC7D,CAAC,CAAC;AALW,QAAA,eAAe,mBAK1B","sourcesContent":["import {LineShapeType} from '../constants';\n\nimport {\n DashDotLineIcon,\n DashLineIcon,\n DotLineIcon,\n LongDashDotDotLineIcon,\n LongDashDotLineIcon,\n LongDashLineIcon,\n ShortDashDotDotLineIcon,\n ShortDashDotLineIcon,\n ShortDashLineIcon,\n ShortDotLineIcon,\n SolidLineIcon,\n} from './template-icons';\n\nconst DEFAULT_ICON_WIDTH = '38px';\nconst DEFAULT_ICON_HEIGHT = '2px';\nconst TEMPLATE_ICONS = {\n [LineShapeType.DashDot]: DashDotLineIcon,\n [LineShapeType.Dash]: DashLineIcon,\n [LineShapeType.Dot]: DotLineIcon,\n [LineShapeType.LongDashDotDot]: LongDashDotDotLineIcon,\n [LineShapeType.LongDashDot]: LongDashDotLineIcon,\n [LineShapeType.LongDash]: LongDashLineIcon,\n [LineShapeType.ShortDashDotDot]: ShortDashDotDotLineIcon,\n [LineShapeType.ShortDashDot]: ShortDashDotLineIcon,\n [LineShapeType.ShortDash]: ShortDashLineIcon,\n [LineShapeType.ShortDot]: ShortDotLineIcon,\n [LineShapeType.Solid]: SolidLineIcon,\n};\n\nexport const renderShapeIcon = (args: {type?: LineShapeType; width?: string; height?: string}) => {\n const {type, width = DEFAULT_ICON_WIDTH, height = DEFAULT_ICON_HEIGHT} = args;\n const templateIcon = type && TEMPLATE_ICONS[type];\n\n return templateIcon ? templateIcon({width, height}) : '';\n};\n"]}
@@ -0,0 +1,2 @@
1
+ import type { CommonIconProps } from "../types.js";
2
+ export declare const DashDotLineIcon: ({ height, width }: CommonIconProps) => string;
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DashDotLineIcon = void 0;
4
+ const utils_1 = require("../utils.js");
5
+ const DashDotLineIcon = ({ height, width }) => {
6
+ const { parsedWidth, parsedHeight } = (0, utils_1.getParsedRect)({ width, height });
7
+ return `
8
+ <svg
9
+ width="${width}"
10
+ height="${height}"
11
+ fill="none"
12
+ viewBox="0 0 ${parsedWidth} ${parsedHeight}"
13
+ xmlns="http://www.w3.org/2000/svg"
14
+ >
15
+ <path
16
+ fillRule="evenodd"
17
+ clipRule="evenodd"
18
+ d="M30 2h8V0h-8v2zM8 2h8V0H8v2zM22 2h2V0h-2v2zM0 2h2V0H0v2z"
19
+ fill="currentColor"
20
+ />
21
+ </svg>
22
+ `;
23
+ };
24
+ exports.DashDotLineIcon = DashDotLineIcon;
25
+ //# sourceMappingURL=DashDotLineIcon.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DashDotLineIcon.js","sourceRoot":"../../../../../../../../../src","sources":["plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/template-icons/DashDotLineIcon.ts"],"names":[],"mappings":";;;AACA,uCAAuC;AAEhC,MAAM,eAAe,GAAG,CAAC,EAAC,MAAM,EAAE,KAAK,EAAkB,EAAE,EAAE;IAChE,MAAM,EAAC,WAAW,EAAE,YAAY,EAAC,GAAG,IAAA,qBAAa,EAAC,EAAC,KAAK,EAAE,MAAM,EAAC,CAAC,CAAC;IAEnE,OAAO;;iBAEM,KAAK;kBACJ,MAAM;;uBAED,WAAW,IAAI,YAAY;;;;;;;;;;CAUjD,CAAC;AACF,CAAC,CAAC;AAnBW,QAAA,eAAe,mBAmB1B","sourcesContent":["import type {CommonIconProps} from '../types';\nimport {getParsedRect} from '../utils';\n\nexport const DashDotLineIcon = ({height, width}: CommonIconProps) => {\n const {parsedWidth, parsedHeight} = getParsedRect({width, height});\n\n return `\n <svg\n width=\"${width}\"\n height=\"${height}\"\n fill=\"none\"\n viewBox=\"0 0 ${parsedWidth} ${parsedHeight}\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M30 2h8V0h-8v2zM8 2h8V0H8v2zM22 2h2V0h-2v2zM0 2h2V0H0v2z\"\n fill=\"currentColor\"\n />\n </svg>\n`;\n};\n"]}
@@ -0,0 +1,2 @@
1
+ import type { CommonIconProps } from "../types.js";
2
+ export declare const DashLineIcon: ({ height, width }: CommonIconProps) => string;
@@ -0,0 +1,30 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DashLineIcon = void 0;
4
+ const utils_1 = require("../utils.js");
5
+ const DashLineIcon = ({ height, width }) => {
6
+ const { parsedWidth, parsedHeight } = (0, utils_1.getParsedRect)({ width, height });
7
+ return `<svg
8
+ width="${width}"
9
+ height="${height}"
10
+ fill="none"
11
+ viewBox="0 0 ${parsedWidth} ${parsedHeight}"
12
+ xmlns="http://www.w3.org/2000/svg"
13
+ >
14
+ <g clipPath="url(#a)">
15
+ <path
16
+ fillRule="evenodd"
17
+ clipRule="evenodd"
18
+ d="M-5 2h-4V0h4v2zM9 2H1V0h8v2zm14 0h-8V0h8v2zm14 0h-8V0h8v2zm14 0h-8V0h8v2zm14 0h-8V0h8v2zm14 0h-8V0h8v2zm14 0h-8V0h8v2zm14 0h-8V0h8v2zm14 0h-8V0h8v2zm14 0h-8V0h8v2zm14 0h-8V0h8v2zm14 0h-8V0h8v2zm14 0h-8V0h8v2zm14 0h-8V0h8v2zm14 0h-8V0h8v2zm14 0h-8V0h8v2zm14 0h-8V0h8v2zm14 0h-8V0h8v2zm14 0h-8V0h8v2zm10 0h-4V0h4v2z"
19
+ fill="currentColor"
20
+ />
21
+ </g>
22
+ <defs>
23
+ <clipPath id="a">
24
+ <path fill="#fff" d="M0 0h260v2H0z" />
25
+ </clipPath>
26
+ </defs>
27
+ </svg>`;
28
+ };
29
+ exports.DashLineIcon = DashLineIcon;
30
+ //# sourceMappingURL=DashLineIcon.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DashLineIcon.js","sourceRoot":"../../../../../../../../../src","sources":["plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/template-icons/DashLineIcon.ts"],"names":[],"mappings":";;;AACA,uCAAuC;AAEhC,MAAM,YAAY,GAAG,CAAC,EAAC,MAAM,EAAE,KAAK,EAAkB,EAAE,EAAE;IAC7D,MAAM,EAAC,WAAW,EAAE,YAAY,EAAC,GAAG,IAAA,qBAAa,EAAC,EAAC,KAAK,EAAE,MAAM,EAAC,CAAC,CAAC;IAEnE,OAAO;iBACM,KAAK;kBACJ,MAAM;;uBAED,WAAW,IAAI,YAAY;;;;;;;;;;;;;;;;WAgBvC,CAAC;AACZ,CAAC,CAAC;AAxBW,QAAA,YAAY,gBAwBvB","sourcesContent":["import type {CommonIconProps} from '../types';\nimport {getParsedRect} from '../utils';\n\nexport const DashLineIcon = ({height, width}: CommonIconProps) => {\n const {parsedWidth, parsedHeight} = getParsedRect({width, height});\n\n return `<svg\n width=\"${width}\"\n height=\"${height}\"\n fill=\"none\"\n viewBox=\"0 0 ${parsedWidth} ${parsedHeight}\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <g clipPath=\"url(#a)\">\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M-5 2h-4V0h4v2zM9 2H1V0h8v2zm14 0h-8V0h8v2zm14 0h-8V0h8v2zm14 0h-8V0h8v2zm14 0h-8V0h8v2zm14 0h-8V0h8v2zm14 0h-8V0h8v2zm14 0h-8V0h8v2zm14 0h-8V0h8v2zm14 0h-8V0h8v2zm14 0h-8V0h8v2zm14 0h-8V0h8v2zm14 0h-8V0h8v2zm14 0h-8V0h8v2zm14 0h-8V0h8v2zm14 0h-8V0h8v2zm14 0h-8V0h8v2zm14 0h-8V0h8v2zm14 0h-8V0h8v2zm10 0h-4V0h4v2z\"\n fill=\"currentColor\"\n />\n </g>\n <defs>\n <clipPath id=\"a\">\n <path fill=\"#fff\" d=\"M0 0h260v2H0z\" />\n </clipPath>\n </defs>\n </svg>`;\n};\n"]}
@@ -0,0 +1,2 @@
1
+ import type { CommonIconProps } from "../types.js";
2
+ export declare const DotLineIcon: ({ height, width }: CommonIconProps) => string;
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DotLineIcon = void 0;
4
+ const utils_1 = require("../utils.js");
5
+ const DotLineIcon = ({ height, width }) => {
6
+ const { parsedWidth, parsedHeight } = (0, utils_1.getParsedRect)({ width, height });
7
+ return `<svg
8
+ width="${width}"
9
+ height="${height}"
10
+ fill="none"
11
+ viewBox="0 0 ${parsedWidth} ${parsedHeight}"
12
+ xmlns="http://www.w3.org/2000/svg"
13
+ >
14
+ <g clipPath="url(#a)" fill="currentColor">
15
+ <path d="M0 0h2v2H0zM8 0h2v2H8zM16 0h2v2h-2zM24 0h2v2h-2zM32 0h2v2h-2z" />
16
+ </g>
17
+ <defs>
18
+ <clipPath id="a">
19
+ <path fill="#fff" d="M0 0h259v2H0z" />
20
+ </clipPath>
21
+ </defs>
22
+ </svg>`;
23
+ };
24
+ exports.DotLineIcon = DotLineIcon;
25
+ //# sourceMappingURL=DotLineIcon.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DotLineIcon.js","sourceRoot":"../../../../../../../../../src","sources":["plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/template-icons/DotLineIcon.ts"],"names":[],"mappings":";;;AACA,uCAAuC;AAEhC,MAAM,WAAW,GAAG,CAAC,EAAC,MAAM,EAAE,KAAK,EAAkB,EAAE,EAAE;IAC5D,MAAM,EAAC,WAAW,EAAE,YAAY,EAAC,GAAG,IAAA,qBAAa,EAAC,EAAC,KAAK,EAAE,MAAM,EAAC,CAAC,CAAC;IAEnE,OAAO;iBACM,KAAK;kBACJ,MAAM;;uBAED,WAAW,IAAI,YAAY;;;;;;;;;;;WAWvC,CAAC;AACZ,CAAC,CAAC;AAnBW,QAAA,WAAW,eAmBtB","sourcesContent":["import type {CommonIconProps} from '../types';\nimport {getParsedRect} from '../utils';\n\nexport const DotLineIcon = ({height, width}: CommonIconProps) => {\n const {parsedWidth, parsedHeight} = getParsedRect({width, height});\n\n return `<svg\n width=\"${width}\"\n height=\"${height}\"\n fill=\"none\"\n viewBox=\"0 0 ${parsedWidth} ${parsedHeight}\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <g clipPath=\"url(#a)\" fill=\"currentColor\">\n <path d=\"M0 0h2v2H0zM8 0h2v2H8zM16 0h2v2h-2zM24 0h2v2h-2zM32 0h2v2h-2z\" />\n </g>\n <defs>\n <clipPath id=\"a\">\n <path fill=\"#fff\" d=\"M0 0h259v2H0z\" />\n </clipPath>\n </defs>\n </svg>`;\n};\n"]}
@@ -0,0 +1,2 @@
1
+ import type { CommonIconProps } from "../types.js";
2
+ export declare const LongDashDotDotLineIcon: ({ width, height }: CommonIconProps) => string;
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.LongDashDotDotLineIcon = void 0;
4
+ const utils_1 = require("../utils.js");
5
+ const LongDashDotDotLineIcon = ({ width, height }) => {
6
+ const { parsedWidth, parsedHeight } = (0, utils_1.getParsedRect)({ width, height });
7
+ return `<svg
8
+ width="${width}"
9
+ height="${height}"
10
+ fill="none"
11
+ viewBox="0 0 ${parsedWidth} ${parsedHeight}"
12
+ xmlns="http://www.w3.org/2000/svg"
13
+ >
14
+ <path
15
+ fillRule="evenodd"
16
+ clipRule="evenodd"
17
+ d="M30 2h16V0H30v2zM-8 2H8V0H-8v2zM22 2h2V0h-2v2zM14 2h2V0h-2v2z"
18
+ fill="currentColor"
19
+ />
20
+ </svg>`;
21
+ };
22
+ exports.LongDashDotDotLineIcon = LongDashDotDotLineIcon;
23
+ //# sourceMappingURL=LongDashDotDotLineIcon.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LongDashDotDotLineIcon.js","sourceRoot":"../../../../../../../../../src","sources":["plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/template-icons/LongDashDotDotLineIcon.ts"],"names":[],"mappings":";;;AACA,uCAAuC;AAEhC,MAAM,sBAAsB,GAAG,CAAC,EAAC,KAAK,EAAE,MAAM,EAAkB,EAAE,EAAE;IACvE,MAAM,EAAC,WAAW,EAAE,YAAY,EAAC,GAAG,IAAA,qBAAa,EAAC,EAAC,KAAK,EAAE,MAAM,EAAC,CAAC,CAAC;IAEnE,OAAO;iBACM,KAAK;kBACJ,MAAM;;uBAED,WAAW,IAAI,YAAY;;;;;;;;;WASvC,CAAC;AACZ,CAAC,CAAC;AAjBW,QAAA,sBAAsB,0BAiBjC","sourcesContent":["import type {CommonIconProps} from '../types';\nimport {getParsedRect} from '../utils';\n\nexport const LongDashDotDotLineIcon = ({width, height}: CommonIconProps) => {\n const {parsedWidth, parsedHeight} = getParsedRect({width, height});\n\n return `<svg\n width=\"${width}\"\n height=\"${height}\"\n fill=\"none\"\n viewBox=\"0 0 ${parsedWidth} ${parsedHeight}\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M30 2h16V0H30v2zM-8 2H8V0H-8v2zM22 2h2V0h-2v2zM14 2h2V0h-2v2z\"\n fill=\"currentColor\"\n />\n </svg>`;\n};\n"]}
@@ -0,0 +1,2 @@
1
+ import type { CommonIconProps } from "../types.js";
2
+ export declare const LongDashDotLineIcon: ({ height, width }: CommonIconProps) => string;