@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,9 @@
1
+ import React from 'react';
2
+ import type { SplitPaneProps } from "./SplitPane.js";
3
+ import "./StyledSplitPane.css";
4
+ type Props = SplitPaneProps & {
5
+ paneOneRender: () => React.ReactNode;
6
+ paneTwoRender: () => React.ReactNode;
7
+ };
8
+ export declare const StyledSplitPane: ({ paneOneRender, paneTwoRender, ...splitPaneProps }: Props) => React.JSX.Element;
9
+ export {};
@@ -0,0 +1,30 @@
1
+ import React from 'react';
2
+ import { cn } from "../../utils/cn.js";
3
+ import { Pane } from "./Pane.js";
4
+ import { SplitPane } from "./SplitPane.js";
5
+ import "./StyledSplitPane.css";
6
+ const b = cn('styled-split-pane');
7
+ const resizerClassName = b('pane-resizer');
8
+ export const StyledSplitPane = ({ paneOneRender, paneTwoRender, ...splitPaneProps }) => {
9
+ const splitPaneRef = React.useRef(null);
10
+ React.useEffect(() => {
11
+ const resizer = splitPaneRef.current?.splitPane?.getElementsByClassName(resizerClassName)[0];
12
+ const hoveredClassName = `${resizerClassName}_hovered`;
13
+ const onTouchStart = () => {
14
+ resizer?.classList.add(hoveredClassName);
15
+ };
16
+ const onTouchEnd = () => {
17
+ resizer?.classList.remove(hoveredClassName);
18
+ };
19
+ resizer?.addEventListener('touchstart', onTouchStart);
20
+ resizer?.addEventListener('touchend', onTouchEnd);
21
+ return function cleanup() {
22
+ resizer?.removeEventListener('touchstart', onTouchStart);
23
+ resizer?.removeEventListener('touchend', onTouchEnd);
24
+ };
25
+ }, []);
26
+ return (React.createElement(SplitPane, { ...splitPaneProps, ref: splitPaneRef, className: b(), resizerClassName: resizerClassName },
27
+ React.createElement(Pane, null, paneOneRender()),
28
+ React.createElement(Pane, null, paneTwoRender())));
29
+ };
30
+ //# sourceMappingURL=StyledSplitPane.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"StyledSplitPane.js","sourceRoot":"../../../../src","sources":["components/SplitPane/StyledSplitPane.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAC,EAAE,EAAC,0BAAuB;AAElC,OAAO,EAAC,IAAI,EAAC,kBAAe;AAC5B,OAAO,EAAC,SAAS,EAAC,uBAAoB;AAGtC,+BAAgC;AAEhC,MAAM,CAAC,GAAG,EAAE,CAAC,mBAAmB,CAAC,CAAC;AAClC,MAAM,gBAAgB,GAAG,CAAC,CAAC,cAAc,CAAC,CAAC;AAO3C,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,EAAC,aAAa,EAAE,aAAa,EAAE,GAAG,cAAc,EAAQ,EAAE,EAAE;IACxF,MAAM,YAAY,GAAG,KAAK,CAAC,MAAM,CAAkD,IAAI,CAAC,CAAC;IAEzF,KAAK,CAAC,SAAS,CAAC,GAAG,EAAE;QACjB,MAAM,OAAO,GACT,YAAY,CAAC,OAAO,EAAE,SAAS,EAAE,sBAAsB,CAAC,gBAAgB,CAAC,CAAC,CAAC,CAAC,CAAC;QACjF,MAAM,gBAAgB,GAAG,GAAG,gBAAgB,UAAU,CAAC;QAEvD,MAAM,YAAY,GAAG,GAAG,EAAE;YACtB,OAAO,EAAE,SAAS,CAAC,GAAG,CAAC,gBAAgB,CAAC,CAAC;QAC7C,CAAC,CAAC;QAEF,MAAM,UAAU,GAAG,GAAG,EAAE;YACpB,OAAO,EAAE,SAAS,CAAC,MAAM,CAAC,gBAAgB,CAAC,CAAC;QAChD,CAAC,CAAC;QAEF,OAAO,EAAE,gBAAgB,CAAC,YAAY,EAAE,YAAY,CAAC,CAAC;QACtD,OAAO,EAAE,gBAAgB,CAAC,UAAU,EAAE,UAAU,CAAC,CAAC;QAElD,OAAO,SAAS,OAAO;YACnB,OAAO,EAAE,mBAAmB,CAAC,YAAY,EAAE,YAAY,CAAC,CAAC;YACzD,OAAO,EAAE,mBAAmB,CAAC,UAAU,EAAE,UAAU,CAAC,CAAC;QACzD,CAAC,CAAC;IACN,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,OAAO,CACH,oBAAC,SAAS,OACF,cAAc,EAClB,GAAG,EAAE,YAAY,EACjB,SAAS,EAAE,CAAC,EAAE,EACd,gBAAgB,EAAE,gBAAgB;QAElC,oBAAC,IAAI,QAAE,aAAa,EAAE,CAAQ;QAC9B,oBAAC,IAAI,QAAE,aAAa,EAAE,CAAQ,CACtB,CACf,CAAC;AACN,CAAC,CAAC","sourcesContent":["import React from 'react';\n\nimport {cn} from '../../utils/cn';\n\nimport {Pane} from './Pane';\nimport {SplitPane} from './SplitPane';\nimport type {SplitPaneProps} from './SplitPane';\n\nimport './StyledSplitPane.scss';\n\nconst b = cn('styled-split-pane');\nconst resizerClassName = b('pane-resizer');\n\ntype Props = SplitPaneProps & {\n paneOneRender: () => React.ReactNode;\n paneTwoRender: () => React.ReactNode;\n};\n\nexport const StyledSplitPane = ({paneOneRender, paneTwoRender, ...splitPaneProps}: Props) => {\n const splitPaneRef = React.useRef<SplitPane & {splitPane?: HTMLDivElement | null}>(null);\n\n React.useEffect(() => {\n const resizer =\n splitPaneRef.current?.splitPane?.getElementsByClassName(resizerClassName)[0];\n const hoveredClassName = `${resizerClassName}_hovered`;\n\n const onTouchStart = () => {\n resizer?.classList.add(hoveredClassName);\n };\n\n const onTouchEnd = () => {\n resizer?.classList.remove(hoveredClassName);\n };\n\n resizer?.addEventListener('touchstart', onTouchStart);\n resizer?.addEventListener('touchend', onTouchEnd);\n\n return function cleanup() {\n resizer?.removeEventListener('touchstart', onTouchStart);\n resizer?.removeEventListener('touchend', onTouchEnd);\n };\n }, []);\n\n return (\n <SplitPane\n {...splitPaneProps}\n ref={splitPaneRef}\n className={b()}\n resizerClassName={resizerClassName}\n >\n <Pane>{paneOneRender()}</Pane>\n <Pane>{paneTwoRender()}</Pane>\n </SplitPane>\n );\n};\n"]}
@@ -0,0 +1,4 @@
1
+ export declare const SplitLayout: {
2
+ readonly HORIZONTAL: "horizontal";
3
+ readonly VERTICAL: "vertical";
4
+ };
@@ -0,0 +1,5 @@
1
+ export const SplitLayout = {
2
+ HORIZONTAL: 'horizontal',
3
+ VERTICAL: 'vertical',
4
+ };
5
+ //# sourceMappingURL=constants.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.js","sourceRoot":"../../../../src","sources":["components/SplitPane/constants.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,WAAW,GAAG;IACvB,UAAU,EAAE,YAAY;IACxB,QAAQ,EAAE,UAAU;CACd,CAAC","sourcesContent":["export const SplitLayout = {\n HORIZONTAL: 'horizontal',\n VERTICAL: 'vertical',\n} as const;\n"]}
@@ -0,0 +1,8 @@
1
+ import { ScreenOrientationType } from "../../constants/index.js";
2
+ import { SplitLayoutType } from "./types.js";
3
+ export { SplitLayout } from "./constants.js";
4
+ export * from "./Pane.js";
5
+ export * from "./SplitPane.js";
6
+ export * from "./StyledSplitPane.js";
7
+ export * from "./types.js";
8
+ export declare function mapScreenOrientationTypeToSplitLayout(type: ScreenOrientationType): SplitLayoutType;
@@ -0,0 +1,19 @@
1
+ export { SplitLayout } from "./constants.js";
2
+ export * from "./Pane.js";
3
+ export * from "./SplitPane.js";
4
+ export * from "./StyledSplitPane.js";
5
+ export * from "./types.js";
6
+ export function mapScreenOrientationTypeToSplitLayout(type) {
7
+ switch (type) {
8
+ case 'landscape-primary':
9
+ case 'landscape-secondary': {
10
+ return 'vertical';
11
+ }
12
+ case 'portrait-primary':
13
+ case 'portrait-secondary':
14
+ default: {
15
+ return 'horizontal';
16
+ }
17
+ }
18
+ }
19
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"../../../../src","sources":["components/SplitPane/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAC,WAAW,EAAC,uBAAoB;AACxC,0BAAuB;AACvB,+BAA4B;AAC5B,qCAAkC;AAClC,2BAAwB;AAExB,MAAM,UAAU,qCAAqC,CACjD,IAA2B;IAE3B,QAAQ,IAAI,EAAE,CAAC;QACX,KAAK,mBAAmB,CAAC;QACzB,KAAK,qBAAqB,CAAC,CAAC,CAAC;YACzB,OAAO,UAAU,CAAC;QACtB,CAAC;QACD,KAAK,kBAAkB,CAAC;QACxB,KAAK,oBAAoB,CAAC;QAC1B,OAAO,CAAC,CAAC,CAAC;YACN,OAAO,YAAY,CAAC;QACxB,CAAC;IACL,CAAC;AACL,CAAC","sourcesContent":["import {ScreenOrientationType} from '../../constants';\n\nimport {SplitLayoutType} from './types';\n\nexport {SplitLayout} from './constants';\nexport * from './Pane';\nexport * from './SplitPane';\nexport * from './StyledSplitPane';\nexport * from './types';\n\nexport function mapScreenOrientationTypeToSplitLayout(\n type: ScreenOrientationType,\n): SplitLayoutType {\n switch (type) {\n case 'landscape-primary':\n case 'landscape-secondary': {\n return 'vertical';\n }\n case 'portrait-primary':\n case 'portrait-secondary':\n default: {\n return 'horizontal';\n }\n }\n}\n"]}
@@ -0,0 +1,2 @@
1
+ import type { SplitLayout } from "./constants.js";
2
+ export type SplitLayoutType = (typeof SplitLayout)[keyof typeof SplitLayout];
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"../../../../src","sources":["components/SplitPane/types.ts"],"names":[],"mappings":"","sourcesContent":["import type {SplitLayout} from './constants';\n\nexport type SplitLayoutType = (typeof SplitLayout)[keyof typeof SplitLayout];\n"]}
@@ -0,0 +1,63 @@
1
+ import React from 'react';
2
+ import { SplitLayout } from "../SplitPane/index.js";
3
+ import type { SplitLayoutType } from "../SplitPane/index.js";
4
+ export declare const SPLIT_TOOLTIP_RESIZER_SIZE = 24;
5
+ export declare const SPLIT_TOOLTIP_MAIN_PANE_RATIO = 0.6;
6
+ export { SplitLayout as SplitTooltipLayout };
7
+ export type SplitTooltipLayout = SplitLayoutType;
8
+ export interface SplitTooltipRenderProps {
9
+ /** The active pane layout. */
10
+ layout: SplitTooltipLayout;
11
+ /** The current size of the main pane in pixels. */
12
+ size: number;
13
+ }
14
+ export interface SplitTooltipProps {
15
+ /** Whether to show the tooltip pane. Defaults to `true`. Disabling preserves the mounted main pane. */
16
+ enabled?: boolean;
17
+ /**
18
+ * The controlled pane layout. When omitted, the layout is derived from the container size:
19
+ * vertical when width is greater than height, horizontal otherwise.
20
+ */
21
+ layout?: SplitTooltipLayout;
22
+ /** The share of the container width occupied by the main pane in vertical layout. Defaults to `0.6`. */
23
+ mainPaneRatio?: number;
24
+ /**
25
+ * Minimum main pane height in pixels in horizontal layout. Does not apply in vertical layout.
26
+ * Capped at half the height available after the resizer. When omitted, automatic sizing has no minimum.
27
+ */
28
+ minMainPaneSize?: number;
29
+ /** Additional styles for the main pane. */
30
+ mainPaneStyle?: React.CSSProperties;
31
+ /** Called after initialization and whenever the main pane size or layout changes. */
32
+ onMainPaneSizeChange?: (size: number, layout: SplitTooltipLayout) => void;
33
+ /**
34
+ * Preserves the manually selected horizontal main pane size across content, container and layout
35
+ * changes, allowing the tooltip to shrink and scroll. Defaults to `false`.
36
+ * Before the first drag, sizing follows the tooltip content in either mode.
37
+ */
38
+ preserveManualSize?: boolean;
39
+ /** Renders the main pane with its current layout and size. */
40
+ renderMainPane: (props: SplitTooltipRenderProps) => React.ReactNode;
41
+ /** Renders the tooltip pane with the current main pane layout and size. */
42
+ renderTooltip: (props: SplitTooltipRenderProps) => React.ReactNode;
43
+ /** Controls the resizer visibility without hiding the tooltip pane. Defaults to `false`. */
44
+ resizerVisible?: boolean;
45
+ /** Additional styles for the split pane container. */
46
+ style?: React.CSSProperties;
47
+ /** Additional styles for the tooltip pane. */
48
+ tooltipPaneStyle?: React.CSSProperties;
49
+ }
50
+ export declare function getSplitTooltipLayout(width: number, height: number, layout?: SplitTooltipLayout): SplitTooltipLayout;
51
+ export declare function getSplitTooltipMainPaneSize({ containerHeight, containerWidth, layout, mainPaneRatio, minMainPaneSize, tooltipHeight, }: {
52
+ containerHeight: number;
53
+ containerWidth: number;
54
+ layout: SplitTooltipLayout;
55
+ mainPaneRatio?: number;
56
+ minMainPaneSize?: number;
57
+ tooltipHeight: number;
58
+ }): number;
59
+ export declare function getSplitTooltipSizeLimits(containerHeight: number, tooltipHeight: number, minMainPaneSize?: number, preserveManualSize?: boolean): {
60
+ minSize: number;
61
+ maxSize: number;
62
+ };
63
+ export declare function SplitTooltip(props: SplitTooltipProps): React.JSX.Element;
@@ -0,0 +1,133 @@
1
+ import React from 'react';
2
+ import { useResizeObserver } from '@gravity-ui/uikit';
3
+ import { SplitLayout, StyledSplitPane } from "../SplitPane/index.js";
4
+ export const SPLIT_TOOLTIP_RESIZER_SIZE = 24;
5
+ export const SPLIT_TOOLTIP_MAIN_PANE_RATIO = 0.6;
6
+ export { SplitLayout as SplitTooltipLayout };
7
+ const hiddenResizerStyle = { display: 'none' };
8
+ const defaultTooltipPaneStyle = { overflow: 'auto' };
9
+ export function getSplitTooltipLayout(width, height, layout) {
10
+ return layout ?? (width > height ? SplitLayout.VERTICAL : SplitLayout.HORIZONTAL);
11
+ }
12
+ export function getSplitTooltipMainPaneSize({ containerHeight, containerWidth, layout, mainPaneRatio = SPLIT_TOOLTIP_MAIN_PANE_RATIO, minMainPaneSize, tooltipHeight, }) {
13
+ if (layout === SplitLayout.VERTICAL) {
14
+ return containerWidth * mainPaneRatio;
15
+ }
16
+ const { minSize } = getSplitTooltipSizeLimits(containerHeight, tooltipHeight, minMainPaneSize);
17
+ return Math.max(minMainPaneSize === undefined ? 0 : minSize, containerHeight - SPLIT_TOOLTIP_RESIZER_SIZE - tooltipHeight);
18
+ }
19
+ export function getSplitTooltipSizeLimits(containerHeight, tooltipHeight, minMainPaneSize, preserveManualSize = false) {
20
+ const availableSize = Math.max(0, containerHeight - SPLIT_TOOLTIP_RESIZER_SIZE);
21
+ const contentSize = Math.max(0, availableSize - tooltipHeight);
22
+ const defaultMinSize = preserveManualSize ? 0 : Math.min(containerHeight / 3, contentSize);
23
+ const minSize = minMainPaneSize === undefined
24
+ ? defaultMinSize
25
+ : Math.min(Math.max(0, minMainPaneSize), availableSize / 2);
26
+ const maxSize = preserveManualSize ? availableSize : Math.max(minSize, contentSize);
27
+ return { minSize, maxSize };
28
+ }
29
+ function SplitTooltipContent(props) {
30
+ const { containerHeight, containerWidth, enabled = true, renderMainPane, renderTooltip, layout: layoutProp, mainPaneRatio = SPLIT_TOOLTIP_MAIN_PANE_RATIO, minMainPaneSize, preserveManualSize = false, resizerVisible, onMainPaneSizeChange, style, mainPaneStyle, tooltipPaneStyle, } = props;
31
+ const tooltipRef = React.useRef(null);
32
+ const layout = getSplitTooltipLayout(containerWidth, containerHeight, layoutProp);
33
+ const [tooltipHeight, setTooltipHeight] = React.useState(0);
34
+ const [userSize, setUserSize] = React.useState();
35
+ const lastNotificationRef = React.useRef(null);
36
+ const onMainPaneSizeChangeRef = React.useRef(onMainPaneSizeChange);
37
+ onMainPaneSizeChangeRef.current = onMainPaneSizeChange;
38
+ const handleTooltipResize = React.useCallback(() => {
39
+ if (enabled) {
40
+ const nextTooltipHeight = tooltipRef.current?.getBoundingClientRect().height ?? 0;
41
+ setTooltipHeight(nextTooltipHeight);
42
+ }
43
+ }, [enabled]);
44
+ useResizeObserver({
45
+ ref: tooltipRef,
46
+ onResize: handleTooltipResize,
47
+ });
48
+ React.useLayoutEffect(handleTooltipResize, [handleTooltipResize, layout, containerWidth]);
49
+ const { minSize, maxSize } = getSplitTooltipSizeLimits(containerHeight, tooltipHeight, minMainPaneSize, preserveManualSize);
50
+ const automaticSize = getSplitTooltipMainPaneSize({
51
+ containerHeight,
52
+ containerWidth,
53
+ layout,
54
+ mainPaneRatio,
55
+ minMainPaneSize,
56
+ tooltipHeight,
57
+ });
58
+ const [size, setSize] = React.useState(automaticSize);
59
+ const previousSizingRef = React.useRef({ layout, maxSize });
60
+ let effectiveSize = automaticSize;
61
+ if (!enabled) {
62
+ effectiveSize = layout === SplitLayout.HORIZONTAL ? containerHeight : containerWidth;
63
+ }
64
+ else if (layout === SplitLayout.HORIZONTAL) {
65
+ if (preserveManualSize) {
66
+ if (userSize !== undefined) {
67
+ effectiveSize = Math.max(minSize, Math.min(maxSize, userSize));
68
+ }
69
+ }
70
+ else if (previousSizingRef.current.layout === layout) {
71
+ effectiveSize =
72
+ size === previousSizingRef.current.maxSize
73
+ ? maxSize
74
+ : Math.max(minSize, Math.min(maxSize, size));
75
+ }
76
+ }
77
+ React.useLayoutEffect(() => {
78
+ if (enabled) {
79
+ previousSizingRef.current = { layout, maxSize };
80
+ if (effectiveSize !== size) {
81
+ setSize(effectiveSize);
82
+ }
83
+ }
84
+ }, [effectiveSize, enabled, layout, maxSize, size]);
85
+ React.useLayoutEffect(() => {
86
+ const previousNotification = lastNotificationRef.current;
87
+ if (previousNotification?.size === effectiveSize &&
88
+ previousNotification.layout === layout) {
89
+ return undefined;
90
+ }
91
+ const callback = onMainPaneSizeChangeRef.current;
92
+ if (!callback) {
93
+ return undefined;
94
+ }
95
+ lastNotificationRef.current = { layout, size: effectiveSize };
96
+ callback(effectiveSize, layout);
97
+ return undefined;
98
+ });
99
+ // SplitPane treats maxSize=0 as an offset from the container size, so disable dragging
100
+ // when no space remains after the resizer.
101
+ const allowResize = enabled && layout === SplitLayout.HORIZONTAL && containerWidth > 0 && maxSize > 0;
102
+ const renderProps = { layout, size: effectiveSize };
103
+ return (React.createElement(StyledSplitPane, { allowResize: allowResize, maxSize: maxSize, minSize: minSize, size: effectiveSize, split: layout, style: style, onChange: preserveManualSize ? setUserSize : setSize, resizerStyle: enabled && resizerVisible ? undefined : hiddenResizerStyle, paneOneRender: () => renderMainPane(renderProps), paneTwoRender: () => React.createElement("div", { ref: tooltipRef }, renderTooltip(renderProps)), pane1Style: mainPaneStyle, pane2Style: {
104
+ ...defaultTooltipPaneStyle,
105
+ ...((preserveManualSize || minMainPaneSize !== undefined) && {
106
+ minHeight: 0,
107
+ minWidth: 0,
108
+ }),
109
+ ...tooltipPaneStyle,
110
+ ...(!enabled && { display: 'none' }),
111
+ } }));
112
+ }
113
+ export function SplitTooltip(props) {
114
+ const containerRef = React.useRef(null);
115
+ const [dimensions, setDimensions] = React.useState({ height: 0, width: 0, initialized: false });
116
+ const updateDimensions = React.useCallback(() => {
117
+ const rect = containerRef.current?.getBoundingClientRect();
118
+ const height = rect?.height ?? 0;
119
+ const width = rect?.width ?? 0;
120
+ setDimensions((previous) => ({
121
+ height,
122
+ width,
123
+ initialized: previous.initialized || (height > 0 && width > 0),
124
+ }));
125
+ }, []);
126
+ useResizeObserver({
127
+ ref: containerRef,
128
+ onResize: updateDimensions,
129
+ });
130
+ React.useLayoutEffect(updateDimensions, [updateDimensions]);
131
+ return (React.createElement("div", { ref: containerRef, style: { position: 'relative', height: '100%' } }, dimensions.initialized ? (React.createElement(SplitTooltipContent, { ...props, containerHeight: dimensions.height, containerWidth: dimensions.width })) : null));
132
+ }
133
+ //# sourceMappingURL=SplitTooltip.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SplitTooltip.js","sourceRoot":"../../../../src","sources":["components/SplitTooltip/SplitTooltip.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAC,iBAAiB,EAAC,MAAM,mBAAmB,CAAC;AAEpD,OAAO,EAAC,WAAW,EAAE,eAAe,EAAC,8BAAqB;AAG1D,MAAM,CAAC,MAAM,0BAA0B,GAAG,EAAE,CAAC;AAC7C,MAAM,CAAC,MAAM,6BAA6B,GAAG,GAAG,CAAC;AAEjD,OAAO,EAAC,WAAW,IAAI,kBAAkB,EAAC,CAAC;AAoD3C,MAAM,kBAAkB,GAAG,EAAC,OAAO,EAAE,MAAM,EAAC,CAAC;AAC7C,MAAM,uBAAuB,GAAG,EAAC,QAAQ,EAAE,MAAM,EAAC,CAAC;AAEnD,MAAM,UAAU,qBAAqB,CACjC,KAAa,EACb,MAAc,EACd,MAA2B;IAE3B,OAAO,MAAM,IAAI,CAAC,KAAK,GAAG,MAAM,CAAC,CAAC,CAAC,WAAW,CAAC,QAAQ,CAAC,CAAC,CAAC,WAAW,CAAC,UAAU,CAAC,CAAC;AACtF,CAAC;AAED,MAAM,UAAU,2BAA2B,CAAC,EACxC,eAAe,EACf,cAAc,EACd,MAAM,EACN,aAAa,GAAG,6BAA6B,EAC7C,eAAe,EACf,aAAa,GAQhB;IACG,IAAI,MAAM,KAAK,WAAW,CAAC,QAAQ,EAAE,CAAC;QAClC,OAAO,cAAc,GAAG,aAAa,CAAC;IAC1C,CAAC;IAED,MAAM,EAAC,OAAO,EAAC,GAAG,yBAAyB,CAAC,eAAe,EAAE,aAAa,EAAE,eAAe,CAAC,CAAC;IAC7F,OAAO,IAAI,CAAC,GAAG,CACX,eAAe,KAAK,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,EAC3C,eAAe,GAAG,0BAA0B,GAAG,aAAa,CAC/D,CAAC;AACN,CAAC;AAED,MAAM,UAAU,yBAAyB,CACrC,eAAuB,EACvB,aAAqB,EACrB,eAAwB,EACxB,kBAAkB,GAAG,KAAK;IAE1B,MAAM,aAAa,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,eAAe,GAAG,0BAA0B,CAAC,CAAC;IAChF,MAAM,WAAW,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,aAAa,GAAG,aAAa,CAAC,CAAC;IAC/D,MAAM,cAAc,GAAG,kBAAkB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,eAAe,GAAG,CAAC,EAAE,WAAW,CAAC,CAAC;IAC3F,MAAM,OAAO,GACT,eAAe,KAAK,SAAS;QACzB,CAAC,CAAC,cAAc;QAChB,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,eAAe,CAAC,EAAE,aAAa,GAAG,CAAC,CAAC,CAAC;IACpE,MAAM,OAAO,GAAG,kBAAkB,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,OAAO,EAAE,WAAW,CAAC,CAAC;IAEpF,OAAO,EAAC,OAAO,EAAE,OAAO,EAAC,CAAC;AAC9B,CAAC;AAED,SAAS,mBAAmB,CAAC,KAA+B;IACxD,MAAM,EACF,eAAe,EACf,cAAc,EACd,OAAO,GAAG,IAAI,EACd,cAAc,EACd,aAAa,EACb,MAAM,EAAE,UAAU,EAClB,aAAa,GAAG,6BAA6B,EAC7C,eAAe,EACf,kBAAkB,GAAG,KAAK,EAC1B,cAAc,EACd,oBAAoB,EACpB,KAAK,EACL,aAAa,EACb,gBAAgB,GACnB,GAAG,KAAK,CAAC;IACV,MAAM,UAAU,GAAG,KAAK,CAAC,MAAM,CAAwB,IAAI,CAAC,CAAC;IAC7D,MAAM,MAAM,GAAG,qBAAqB,CAAC,cAAc,EAAE,eAAe,EAAE,UAAU,CAAC,CAAC;IAClF,MAAM,CAAC,aAAa,EAAE,gBAAgB,CAAC,GAAG,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;IAC5D,MAAM,CAAC,QAAQ,EAAE,WAAW,CAAC,GAAG,KAAK,CAAC,QAAQ,EAAU,CAAC;IACzD,MAAM,mBAAmB,GAAG,KAAK,CAAC,MAAM,CACpC,IAAI,CACP,CAAC;IACF,MAAM,uBAAuB,GAAG,KAAK,CAAC,MAAM,CAAC,oBAAoB,CAAC,CAAC;IACnE,uBAAuB,CAAC,OAAO,GAAG,oBAAoB,CAAC;IAEvD,MAAM,mBAAmB,GAAG,KAAK,CAAC,WAAW,CAAC,GAAG,EAAE;QAC/C,IAAI,OAAO,EAAE,CAAC;YACV,MAAM,iBAAiB,GAAG,UAAU,CAAC,OAAO,EAAE,qBAAqB,EAAE,CAAC,MAAM,IAAI,CAAC,CAAC;YAClF,gBAAgB,CAAC,iBAAiB,CAAC,CAAC;QACxC,CAAC;IACL,CAAC,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC;IAEd,iBAAiB,CAAC;QACd,GAAG,EAAE,UAAU;QACf,QAAQ,EAAE,mBAAmB;KAChC,CAAC,CAAC;IAEH,KAAK,CAAC,eAAe,CAAC,mBAAmB,EAAE,CAAC,mBAAmB,EAAE,MAAM,EAAE,cAAc,CAAC,CAAC,CAAC;IAE1F,MAAM,EAAC,OAAO,EAAE,OAAO,EAAC,GAAG,yBAAyB,CAChD,eAAe,EACf,aAAa,EACb,eAAe,EACf,kBAAkB,CACrB,CAAC;IACF,MAAM,aAAa,GAAG,2BAA2B,CAAC;QAC9C,eAAe;QACf,cAAc;QACd,MAAM;QACN,aAAa;QACb,eAAe;QACf,aAAa;KAChB,CAAC,CAAC;IACH,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,GAAG,KAAK,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC;IACtD,MAAM,iBAAiB,GAAG,KAAK,CAAC,MAAM,CAAC,EAAC,MAAM,EAAE,OAAO,EAAC,CAAC,CAAC;IAC1D,IAAI,aAAa,GAAG,aAAa,CAAC;IAClC,IAAI,CAAC,OAAO,EAAE,CAAC;QACX,aAAa,GAAG,MAAM,KAAK,WAAW,CAAC,UAAU,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,cAAc,CAAC;IACzF,CAAC;SAAM,IAAI,MAAM,KAAK,WAAW,CAAC,UAAU,EAAE,CAAC;QAC3C,IAAI,kBAAkB,EAAE,CAAC;YACrB,IAAI,QAAQ,KAAK,SAAS,EAAE,CAAC;gBACzB,aAAa,GAAG,IAAI,CAAC,GAAG,CAAC,OAAO,EAAE,IAAI,CAAC,GAAG,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC,CAAC;YACnE,CAAC;QACL,CAAC;aAAM,IAAI,iBAAiB,CAAC,OAAO,CAAC,MAAM,KAAK,MAAM,EAAE,CAAC;YACrD,aAAa;gBACT,IAAI,KAAK,iBAAiB,CAAC,OAAO,CAAC,OAAO;oBACtC,CAAC,CAAC,OAAO;oBACT,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,OAAO,EAAE,IAAI,CAAC,GAAG,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC,CAAC;QACzD,CAAC;IACL,CAAC;IAED,KAAK,CAAC,eAAe,CAAC,GAAG,EAAE;QACvB,IAAI,OAAO,EAAE,CAAC;YACV,iBAAiB,CAAC,OAAO,GAAG,EAAC,MAAM,EAAE,OAAO,EAAC,CAAC;YAC9C,IAAI,aAAa,KAAK,IAAI,EAAE,CAAC;gBACzB,OAAO,CAAC,aAAa,CAAC,CAAC;YAC3B,CAAC;QACL,CAAC;IACL,CAAC,EAAE,CAAC,aAAa,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,CAAC,CAAC,CAAC;IAEpD,KAAK,CAAC,eAAe,CAAC,GAAG,EAAE;QACvB,MAAM,oBAAoB,GAAG,mBAAmB,CAAC,OAAO,CAAC;QAEzD,IACI,oBAAoB,EAAE,IAAI,KAAK,aAAa;YAC5C,oBAAoB,CAAC,MAAM,KAAK,MAAM,EACxC,CAAC;YACC,OAAO,SAAS,CAAC;QACrB,CAAC;QAED,MAAM,QAAQ,GAAG,uBAAuB,CAAC,OAAO,CAAC;QACjD,IAAI,CAAC,QAAQ,EAAE,CAAC;YACZ,OAAO,SAAS,CAAC;QACrB,CAAC;QAED,mBAAmB,CAAC,OAAO,GAAG,EAAC,MAAM,EAAE,IAAI,EAAE,aAAa,EAAC,CAAC;QAC5D,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAC,CAAC;QAChC,OAAO,SAAS,CAAC;IACrB,CAAC,CAAC,CAAC;IAEH,uFAAuF;IACvF,2CAA2C;IAC3C,MAAM,WAAW,GACb,OAAO,IAAI,MAAM,KAAK,WAAW,CAAC,UAAU,IAAI,cAAc,GAAG,CAAC,IAAI,OAAO,GAAG,CAAC,CAAC;IACtF,MAAM,WAAW,GAAG,EAAC,MAAM,EAAE,IAAI,EAAE,aAAa,EAAC,CAAC;IAElD,OAAO,CACH,oBAAC,eAAe,IACZ,WAAW,EAAE,WAAW,EACxB,OAAO,EAAE,OAAO,EAChB,OAAO,EAAE,OAAO,EAChB,IAAI,EAAE,aAAa,EACnB,KAAK,EAAE,MAAM,EACb,KAAK,EAAE,KAAK,EACZ,QAAQ,EAAE,kBAAkB,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,OAAO,EACpD,YAAY,EAAE,OAAO,IAAI,cAAc,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,kBAAkB,EACxE,aAAa,EAAE,GAAG,EAAE,CAAC,cAAc,CAAC,WAAW,CAAC,EAChD,aAAa,EAAE,GAAG,EAAE,CAAC,6BAAK,GAAG,EAAE,UAAU,IAAG,aAAa,CAAC,WAAW,CAAC,CAAO,EAC7E,UAAU,EAAE,aAAa,EACzB,UAAU,EAAE;YACR,GAAG,uBAAuB;YAC1B,GAAG,CAAC,CAAC,kBAAkB,IAAI,eAAe,KAAK,SAAS,CAAC,IAAI;gBACzD,SAAS,EAAE,CAAC;gBACZ,QAAQ,EAAE,CAAC;aACd,CAAC;YACF,GAAG,gBAAgB;YACnB,GAAG,CAAC,CAAC,OAAO,IAAI,EAAC,OAAO,EAAE,MAAM,EAAC,CAAC;SACrC,GACH,CACL,CAAC;AACN,CAAC;AAED,MAAM,UAAU,YAAY,CAAC,KAAwB;IACjD,MAAM,YAAY,GAAG,KAAK,CAAC,MAAM,CAAwB,IAAI,CAAC,CAAC;IAC/D,MAAM,CAAC,UAAU,EAAE,aAAa,CAAC,GAAG,KAAK,CAAC,QAAQ,CAAC,EAAC,MAAM,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,WAAW,EAAE,KAAK,EAAC,CAAC,CAAC;IAE9F,MAAM,gBAAgB,GAAG,KAAK,CAAC,WAAW,CAAC,GAAG,EAAE;QAC5C,MAAM,IAAI,GAAG,YAAY,CAAC,OAAO,EAAE,qBAAqB,EAAE,CAAC;QAC3D,MAAM,MAAM,GAAG,IAAI,EAAE,MAAM,IAAI,CAAC,CAAC;QACjC,MAAM,KAAK,GAAG,IAAI,EAAE,KAAK,IAAI,CAAC,CAAC;QAC/B,aAAa,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC;YACzB,MAAM;YACN,KAAK;YACL,WAAW,EAAE,QAAQ,CAAC,WAAW,IAAI,CAAC,MAAM,GAAG,CAAC,IAAI,KAAK,GAAG,CAAC,CAAC;SACjE,CAAC,CAAC,CAAC;IACR,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,iBAAiB,CAAC;QACd,GAAG,EAAE,YAAY;QACjB,QAAQ,EAAE,gBAAgB;KAC7B,CAAC,CAAC;IAEH,KAAK,CAAC,eAAe,CAAC,gBAAgB,EAAE,CAAC,gBAAgB,CAAC,CAAC,CAAC;IAE5D,OAAO,CACH,6BAAK,GAAG,EAAE,YAAY,EAAE,KAAK,EAAE,EAAC,QAAQ,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,EAAC,IAChE,UAAU,CAAC,WAAW,CAAC,CAAC,CAAC,CACtB,oBAAC,mBAAmB,OACZ,KAAK,EACT,eAAe,EAAE,UAAU,CAAC,MAAM,EAClC,cAAc,EAAE,UAAU,CAAC,KAAK,GAClC,CACL,CAAC,CAAC,CAAC,IAAI,CACN,CACT,CAAC;AACN,CAAC","sourcesContent":["import React from 'react';\n\nimport {useResizeObserver} from '@gravity-ui/uikit';\n\nimport {SplitLayout, StyledSplitPane} from '../SplitPane';\nimport type {SplitLayoutType} from '../SplitPane';\n\nexport const SPLIT_TOOLTIP_RESIZER_SIZE = 24;\nexport const SPLIT_TOOLTIP_MAIN_PANE_RATIO = 0.6;\n\nexport {SplitLayout as SplitTooltipLayout};\nexport type SplitTooltipLayout = SplitLayoutType;\n\nexport interface SplitTooltipRenderProps {\n /** The active pane layout. */\n layout: SplitTooltipLayout;\n /** The current size of the main pane in pixels. */\n size: number;\n}\n\nexport interface SplitTooltipProps {\n /** Whether to show the tooltip pane. Defaults to `true`. Disabling preserves the mounted main pane. */\n enabled?: boolean;\n /**\n * The controlled pane layout. When omitted, the layout is derived from the container size:\n * vertical when width is greater than height, horizontal otherwise.\n */\n layout?: SplitTooltipLayout;\n /** The share of the container width occupied by the main pane in vertical layout. Defaults to `0.6`. */\n mainPaneRatio?: number;\n /**\n * Minimum main pane height in pixels in horizontal layout. Does not apply in vertical layout.\n * Capped at half the height available after the resizer. When omitted, automatic sizing has no minimum.\n */\n minMainPaneSize?: number;\n /** Additional styles for the main pane. */\n mainPaneStyle?: React.CSSProperties;\n /** Called after initialization and whenever the main pane size or layout changes. */\n onMainPaneSizeChange?: (size: number, layout: SplitTooltipLayout) => void;\n /**\n * Preserves the manually selected horizontal main pane size across content, container and layout\n * changes, allowing the tooltip to shrink and scroll. Defaults to `false`.\n * Before the first drag, sizing follows the tooltip content in either mode.\n */\n preserveManualSize?: boolean;\n /** Renders the main pane with its current layout and size. */\n renderMainPane: (props: SplitTooltipRenderProps) => React.ReactNode;\n /** Renders the tooltip pane with the current main pane layout and size. */\n renderTooltip: (props: SplitTooltipRenderProps) => React.ReactNode;\n /** Controls the resizer visibility without hiding the tooltip pane. Defaults to `false`. */\n resizerVisible?: boolean;\n /** Additional styles for the split pane container. */\n style?: React.CSSProperties;\n /** Additional styles for the tooltip pane. */\n tooltipPaneStyle?: React.CSSProperties;\n}\n\ntype SplitTooltipContentProps = SplitTooltipProps & {\n containerHeight: number;\n containerWidth: number;\n};\n\nconst hiddenResizerStyle = {display: 'none'};\nconst defaultTooltipPaneStyle = {overflow: 'auto'};\n\nexport function getSplitTooltipLayout(\n width: number,\n height: number,\n layout?: SplitTooltipLayout,\n): SplitTooltipLayout {\n return layout ?? (width > height ? SplitLayout.VERTICAL : SplitLayout.HORIZONTAL);\n}\n\nexport function getSplitTooltipMainPaneSize({\n containerHeight,\n containerWidth,\n layout,\n mainPaneRatio = SPLIT_TOOLTIP_MAIN_PANE_RATIO,\n minMainPaneSize,\n tooltipHeight,\n}: {\n containerHeight: number;\n containerWidth: number;\n layout: SplitTooltipLayout;\n mainPaneRatio?: number;\n minMainPaneSize?: number;\n tooltipHeight: number;\n}) {\n if (layout === SplitLayout.VERTICAL) {\n return containerWidth * mainPaneRatio;\n }\n\n const {minSize} = getSplitTooltipSizeLimits(containerHeight, tooltipHeight, minMainPaneSize);\n return Math.max(\n minMainPaneSize === undefined ? 0 : minSize,\n containerHeight - SPLIT_TOOLTIP_RESIZER_SIZE - tooltipHeight,\n );\n}\n\nexport function getSplitTooltipSizeLimits(\n containerHeight: number,\n tooltipHeight: number,\n minMainPaneSize?: number,\n preserveManualSize = false,\n) {\n const availableSize = Math.max(0, containerHeight - SPLIT_TOOLTIP_RESIZER_SIZE);\n const contentSize = Math.max(0, availableSize - tooltipHeight);\n const defaultMinSize = preserveManualSize ? 0 : Math.min(containerHeight / 3, contentSize);\n const minSize =\n minMainPaneSize === undefined\n ? defaultMinSize\n : Math.min(Math.max(0, minMainPaneSize), availableSize / 2);\n const maxSize = preserveManualSize ? availableSize : Math.max(minSize, contentSize);\n\n return {minSize, maxSize};\n}\n\nfunction SplitTooltipContent(props: SplitTooltipContentProps) {\n const {\n containerHeight,\n containerWidth,\n enabled = true,\n renderMainPane,\n renderTooltip,\n layout: layoutProp,\n mainPaneRatio = SPLIT_TOOLTIP_MAIN_PANE_RATIO,\n minMainPaneSize,\n preserveManualSize = false,\n resizerVisible,\n onMainPaneSizeChange,\n style,\n mainPaneStyle,\n tooltipPaneStyle,\n } = props;\n const tooltipRef = React.useRef<HTMLDivElement | null>(null);\n const layout = getSplitTooltipLayout(containerWidth, containerHeight, layoutProp);\n const [tooltipHeight, setTooltipHeight] = React.useState(0);\n const [userSize, setUserSize] = React.useState<number>();\n const lastNotificationRef = React.useRef<{layout: SplitTooltipLayout; size: number} | null>(\n null,\n );\n const onMainPaneSizeChangeRef = React.useRef(onMainPaneSizeChange);\n onMainPaneSizeChangeRef.current = onMainPaneSizeChange;\n\n const handleTooltipResize = React.useCallback(() => {\n if (enabled) {\n const nextTooltipHeight = tooltipRef.current?.getBoundingClientRect().height ?? 0;\n setTooltipHeight(nextTooltipHeight);\n }\n }, [enabled]);\n\n useResizeObserver({\n ref: tooltipRef,\n onResize: handleTooltipResize,\n });\n\n React.useLayoutEffect(handleTooltipResize, [handleTooltipResize, layout, containerWidth]);\n\n const {minSize, maxSize} = getSplitTooltipSizeLimits(\n containerHeight,\n tooltipHeight,\n minMainPaneSize,\n preserveManualSize,\n );\n const automaticSize = getSplitTooltipMainPaneSize({\n containerHeight,\n containerWidth,\n layout,\n mainPaneRatio,\n minMainPaneSize,\n tooltipHeight,\n });\n const [size, setSize] = React.useState(automaticSize);\n const previousSizingRef = React.useRef({layout, maxSize});\n let effectiveSize = automaticSize;\n if (!enabled) {\n effectiveSize = layout === SplitLayout.HORIZONTAL ? containerHeight : containerWidth;\n } else if (layout === SplitLayout.HORIZONTAL) {\n if (preserveManualSize) {\n if (userSize !== undefined) {\n effectiveSize = Math.max(minSize, Math.min(maxSize, userSize));\n }\n } else if (previousSizingRef.current.layout === layout) {\n effectiveSize =\n size === previousSizingRef.current.maxSize\n ? maxSize\n : Math.max(minSize, Math.min(maxSize, size));\n }\n }\n\n React.useLayoutEffect(() => {\n if (enabled) {\n previousSizingRef.current = {layout, maxSize};\n if (effectiveSize !== size) {\n setSize(effectiveSize);\n }\n }\n }, [effectiveSize, enabled, layout, maxSize, size]);\n\n React.useLayoutEffect(() => {\n const previousNotification = lastNotificationRef.current;\n\n if (\n previousNotification?.size === effectiveSize &&\n previousNotification.layout === layout\n ) {\n return undefined;\n }\n\n const callback = onMainPaneSizeChangeRef.current;\n if (!callback) {\n return undefined;\n }\n\n lastNotificationRef.current = {layout, size: effectiveSize};\n callback(effectiveSize, layout);\n return undefined;\n });\n\n // SplitPane treats maxSize=0 as an offset from the container size, so disable dragging\n // when no space remains after the resizer.\n const allowResize =\n enabled && layout === SplitLayout.HORIZONTAL && containerWidth > 0 && maxSize > 0;\n const renderProps = {layout, size: effectiveSize};\n\n return (\n <StyledSplitPane\n allowResize={allowResize}\n maxSize={maxSize}\n minSize={minSize}\n size={effectiveSize}\n split={layout}\n style={style}\n onChange={preserveManualSize ? setUserSize : setSize}\n resizerStyle={enabled && resizerVisible ? undefined : hiddenResizerStyle}\n paneOneRender={() => renderMainPane(renderProps)}\n paneTwoRender={() => <div ref={tooltipRef}>{renderTooltip(renderProps)}</div>}\n pane1Style={mainPaneStyle}\n pane2Style={{\n ...defaultTooltipPaneStyle,\n ...((preserveManualSize || minMainPaneSize !== undefined) && {\n minHeight: 0,\n minWidth: 0,\n }),\n ...tooltipPaneStyle,\n ...(!enabled && {display: 'none'}),\n }}\n />\n );\n}\n\nexport function SplitTooltip(props: SplitTooltipProps) {\n const containerRef = React.useRef<HTMLDivElement | null>(null);\n const [dimensions, setDimensions] = React.useState({height: 0, width: 0, initialized: false});\n\n const updateDimensions = React.useCallback(() => {\n const rect = containerRef.current?.getBoundingClientRect();\n const height = rect?.height ?? 0;\n const width = rect?.width ?? 0;\n setDimensions((previous) => ({\n height,\n width,\n initialized: previous.initialized || (height > 0 && width > 0),\n }));\n }, []);\n\n useResizeObserver({\n ref: containerRef,\n onResize: updateDimensions,\n });\n\n React.useLayoutEffect(updateDimensions, [updateDimensions]);\n\n return (\n <div ref={containerRef} style={{position: 'relative', height: '100%'}}>\n {dimensions.initialized ? (\n <SplitTooltipContent\n {...props}\n containerHeight={dimensions.height}\n containerWidth={dimensions.width}\n />\n ) : null}\n </div>\n );\n}\n"]}
@@ -0,0 +1,2 @@
1
+ export { SplitTooltip, SplitTooltipLayout } from "./SplitTooltip.js";
2
+ export type { SplitTooltipProps, SplitTooltipRenderProps } from "./SplitTooltip.js";
@@ -0,0 +1,2 @@
1
+ export { SplitTooltip, SplitTooltipLayout } from "./SplitTooltip.js";
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"../../../../src","sources":["components/SplitTooltip/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,YAAY,EAAE,kBAAkB,EAAC,0BAAuB","sourcesContent":["export {SplitTooltip, SplitTooltipLayout} from './SplitTooltip';\nexport type {SplitTooltipProps, SplitTooltipRenderProps} from './SplitTooltip';\n"]}
@@ -0,0 +1 @@
1
+ export declare const CHARTKIT_SCROLLABLE_NODE_CLASSNAME = "chartkit-scrollable-node";
@@ -0,0 +1,3 @@
1
+ // This css class should be added for DOM element for correct calculation of scrollHeight
2
+ export const CHARTKIT_SCROLLABLE_NODE_CLASSNAME = 'chartkit-scrollable-node';
3
+ //# sourceMappingURL=common.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"common.js","sourceRoot":"../../../src","sources":["constants/common.ts"],"names":[],"mappings":"AAAA,yFAAyF;AACzF,MAAM,CAAC,MAAM,kCAAkC,GAAG,0BAA0B,CAAC","sourcesContent":["// This css class should be added for DOM element for correct calculation of scrollHeight\nexport const CHARTKIT_SCROLLABLE_NODE_CLASSNAME = 'chartkit-scrollable-node';\n"]}
@@ -0,0 +1,3 @@
1
+ export { CHARTKIT_SCROLLABLE_NODE_CLASSNAME } from "./common.js";
2
+ export * from "./widget-data.js";
3
+ export * from "./misc.js";
@@ -0,0 +1,4 @@
1
+ export { CHARTKIT_SCROLLABLE_NODE_CLASSNAME } from "./common.js";
2
+ export * from "./widget-data.js";
3
+ export * from "./misc.js";
4
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"../../../src","sources":["constants/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,kCAAkC,EAAC,oBAAiB;AAE5D,iCAA8B;AAC9B,0BAAuB","sourcesContent":["export {CHARTKIT_SCROLLABLE_NODE_CLASSNAME} from './common';\n\nexport * from './widget-data';\nexport * from './misc';\n"]}
@@ -0,0 +1,10 @@
1
+ export declare const IS_WINDOW_AVAILABLE: boolean;
2
+ export declare const IS_SCREEN_ORIENTATION_AVAILABLE: boolean;
3
+ export declare const ScreenOrientation: {
4
+ readonly PORTRAIT_PRIMARY: "portrait-primary";
5
+ readonly PORTRAIT_SECONDARY: "portrait-secondary";
6
+ readonly LANDSCAPE_PRIMARY: "landscape-primary";
7
+ readonly LANDSCAPE_SECONDARY: "landscape-secondary";
8
+ };
9
+ export type ScreenOrientationType = (typeof ScreenOrientation)[keyof typeof ScreenOrientation];
10
+ export declare const AVAILABLE_SCREEN_ORIENTATIONS: ("landscape-primary" | "landscape-secondary" | "portrait-primary" | "portrait-secondary")[];
@@ -0,0 +1,20 @@
1
+ function checkWindowAvailability() {
2
+ return typeof window === 'object';
3
+ }
4
+ export const IS_WINDOW_AVAILABLE = checkWindowAvailability();
5
+ function checkScreenOrientationAvailability() {
6
+ // W3C spec implementation
7
+ return (IS_WINDOW_AVAILABLE &&
8
+ typeof window.ScreenOrientation === 'function' &&
9
+ typeof screen.orientation.addEventListener === 'function' &&
10
+ typeof screen.orientation.type === 'string');
11
+ }
12
+ export const IS_SCREEN_ORIENTATION_AVAILABLE = checkScreenOrientationAvailability();
13
+ export const ScreenOrientation = {
14
+ PORTRAIT_PRIMARY: 'portrait-primary',
15
+ PORTRAIT_SECONDARY: 'portrait-secondary',
16
+ LANDSCAPE_PRIMARY: 'landscape-primary',
17
+ LANDSCAPE_SECONDARY: 'landscape-secondary',
18
+ };
19
+ export const AVAILABLE_SCREEN_ORIENTATIONS = Object.values(ScreenOrientation);
20
+ //# sourceMappingURL=misc.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"misc.js","sourceRoot":"../../../src","sources":["constants/misc.ts"],"names":[],"mappings":"AAAA,SAAS,uBAAuB;IAC5B,OAAO,OAAO,MAAM,KAAK,QAAQ,CAAC;AACtC,CAAC;AAED,MAAM,CAAC,MAAM,mBAAmB,GAAG,uBAAuB,EAAE,CAAC;AAE7D,SAAS,kCAAkC;IACvC,0BAA0B;IAC1B,OAAO,CACH,mBAAmB;QACnB,OAAO,MAAM,CAAC,iBAAiB,KAAK,UAAU;QAC9C,OAAO,MAAM,CAAC,WAAW,CAAC,gBAAgB,KAAK,UAAU;QACzD,OAAO,MAAM,CAAC,WAAW,CAAC,IAAI,KAAK,QAAQ,CAC9C,CAAC;AACN,CAAC;AAED,MAAM,CAAC,MAAM,+BAA+B,GAAG,kCAAkC,EAAE,CAAC;AAEpF,MAAM,CAAC,MAAM,iBAAiB,GAAG;IAC7B,gBAAgB,EAAE,kBAAkB;IACpC,kBAAkB,EAAE,oBAAoB;IACxC,iBAAiB,EAAE,mBAAmB;IACtC,mBAAmB,EAAE,qBAAqB;CACpC,CAAC;AAIX,MAAM,CAAC,MAAM,6BAA6B,GAAG,MAAM,CAAC,MAAM,CAAC,iBAAiB,CAAC,CAAC","sourcesContent":["function checkWindowAvailability() {\n return typeof window === 'object';\n}\n\nexport const IS_WINDOW_AVAILABLE = checkWindowAvailability();\n\nfunction checkScreenOrientationAvailability() {\n // W3C spec implementation\n return (\n IS_WINDOW_AVAILABLE &&\n typeof window.ScreenOrientation === 'function' &&\n typeof screen.orientation.addEventListener === 'function' &&\n typeof screen.orientation.type === 'string'\n );\n}\n\nexport const IS_SCREEN_ORIENTATION_AVAILABLE = checkScreenOrientationAvailability();\n\nexport const ScreenOrientation = {\n PORTRAIT_PRIMARY: 'portrait-primary',\n PORTRAIT_SECONDARY: 'portrait-secondary',\n LANDSCAPE_PRIMARY: 'landscape-primary',\n LANDSCAPE_SECONDARY: 'landscape-secondary',\n} as const;\n\nexport type ScreenOrientationType = (typeof ScreenOrientation)[keyof typeof ScreenOrientation];\n\nexport const AVAILABLE_SCREEN_ORIENTATIONS = Object.values(ScreenOrientation);\n"]}
@@ -0,0 +1,43 @@
1
+ export declare const SeriesType: {
2
+ readonly Area: "area";
3
+ readonly BarX: "bar-x";
4
+ readonly BarY: "bar-y";
5
+ readonly Line: "line";
6
+ readonly Pie: "pie";
7
+ readonly Scatter: "scatter";
8
+ readonly Treemap: "treemap";
9
+ readonly Waterfall: "waterfall";
10
+ };
11
+ export declare enum DashStyle {
12
+ Dash = "Dash",
13
+ DashDot = "DashDot",
14
+ Dot = "Dot",
15
+ LongDash = "LongDash",
16
+ LongDashDot = "LongDashDot",
17
+ LongDashDotDot = "LongDashDotDot",
18
+ ShortDash = "ShortDash",
19
+ ShortDashDot = "ShortDashDot",
20
+ ShortDashDotDot = "ShortDashDotDot",
21
+ ShortDot = "ShortDot",
22
+ Solid = "Solid"
23
+ }
24
+ export declare enum SymbolType {
25
+ Circle = "circle",
26
+ Diamond = "diamond",
27
+ Square = "square",
28
+ Triangle = "triangle",
29
+ TriangleDown = "triangle-down"
30
+ }
31
+ export declare enum LineCap {
32
+ Butt = "butt",
33
+ Round = "round",
34
+ Square = "square",
35
+ None = "none"
36
+ }
37
+ export declare enum LayoutAlgorithm {
38
+ Binary = "binary",
39
+ Dice = "dice",
40
+ Slice = "slice",
41
+ SliceDice = "slice-dice",
42
+ Squarify = "squarify"
43
+ }
@@ -0,0 +1,48 @@
1
+ export const SeriesType = {
2
+ Area: 'area',
3
+ BarX: 'bar-x',
4
+ BarY: 'bar-y',
5
+ Line: 'line',
6
+ Pie: 'pie',
7
+ Scatter: 'scatter',
8
+ Treemap: 'treemap',
9
+ Waterfall: 'waterfall',
10
+ };
11
+ export var DashStyle;
12
+ (function (DashStyle) {
13
+ DashStyle["Dash"] = "Dash";
14
+ DashStyle["DashDot"] = "DashDot";
15
+ DashStyle["Dot"] = "Dot";
16
+ DashStyle["LongDash"] = "LongDash";
17
+ DashStyle["LongDashDot"] = "LongDashDot";
18
+ DashStyle["LongDashDotDot"] = "LongDashDotDot";
19
+ DashStyle["ShortDash"] = "ShortDash";
20
+ DashStyle["ShortDashDot"] = "ShortDashDot";
21
+ DashStyle["ShortDashDotDot"] = "ShortDashDotDot";
22
+ DashStyle["ShortDot"] = "ShortDot";
23
+ DashStyle["Solid"] = "Solid";
24
+ })(DashStyle || (DashStyle = {}));
25
+ export var SymbolType;
26
+ (function (SymbolType) {
27
+ SymbolType["Circle"] = "circle";
28
+ SymbolType["Diamond"] = "diamond";
29
+ SymbolType["Square"] = "square";
30
+ SymbolType["Triangle"] = "triangle";
31
+ SymbolType["TriangleDown"] = "triangle-down";
32
+ })(SymbolType || (SymbolType = {}));
33
+ export var LineCap;
34
+ (function (LineCap) {
35
+ LineCap["Butt"] = "butt";
36
+ LineCap["Round"] = "round";
37
+ LineCap["Square"] = "square";
38
+ LineCap["None"] = "none";
39
+ })(LineCap || (LineCap = {}));
40
+ export var LayoutAlgorithm;
41
+ (function (LayoutAlgorithm) {
42
+ LayoutAlgorithm["Binary"] = "binary";
43
+ LayoutAlgorithm["Dice"] = "dice";
44
+ LayoutAlgorithm["Slice"] = "slice";
45
+ LayoutAlgorithm["SliceDice"] = "slice-dice";
46
+ LayoutAlgorithm["Squarify"] = "squarify";
47
+ })(LayoutAlgorithm || (LayoutAlgorithm = {}));
48
+ //# sourceMappingURL=widget-data.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"widget-data.js","sourceRoot":"../../../src","sources":["constants/widget-data.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,UAAU,GAAG;IACtB,IAAI,EAAE,MAAM;IACZ,IAAI,EAAE,OAAO;IACb,IAAI,EAAE,OAAO;IACb,IAAI,EAAE,MAAM;IACZ,GAAG,EAAE,KAAK;IACV,OAAO,EAAE,SAAS;IAClB,OAAO,EAAE,SAAS;IAClB,SAAS,EAAE,WAAW;CAChB,CAAC;AAEX,MAAM,CAAN,IAAY,SAYX;AAZD,WAAY,SAAS;IACjB,0BAAa,CAAA;IACb,gCAAmB,CAAA;IACnB,wBAAW,CAAA;IACX,kCAAqB,CAAA;IACrB,wCAA2B,CAAA;IAC3B,8CAAiC,CAAA;IACjC,oCAAuB,CAAA;IACvB,0CAA6B,CAAA;IAC7B,gDAAmC,CAAA;IACnC,kCAAqB,CAAA;IACrB,4BAAe,CAAA;AACnB,CAAC,EAZW,SAAS,KAAT,SAAS,QAYpB;AAED,MAAM,CAAN,IAAY,UAMX;AAND,WAAY,UAAU;IAClB,+BAAiB,CAAA;IACjB,iCAAmB,CAAA;IACnB,+BAAiB,CAAA;IACjB,mCAAqB,CAAA;IACrB,4CAA8B,CAAA;AAClC,CAAC,EANW,UAAU,KAAV,UAAU,QAMrB;AAED,MAAM,CAAN,IAAY,OAKX;AALD,WAAY,OAAO;IACf,wBAAa,CAAA;IACb,0BAAe,CAAA;IACf,4BAAiB,CAAA;IACjB,wBAAa,CAAA;AACjB,CAAC,EALW,OAAO,KAAP,OAAO,QAKlB;AAED,MAAM,CAAN,IAAY,eAMX;AAND,WAAY,eAAe;IACvB,oCAAiB,CAAA;IACjB,gCAAa,CAAA;IACb,kCAAe,CAAA;IACf,2CAAwB,CAAA;IACxB,wCAAqB,CAAA;AACzB,CAAC,EANW,eAAe,KAAf,eAAe,QAM1B","sourcesContent":["export const SeriesType = {\n Area: 'area',\n BarX: 'bar-x',\n BarY: 'bar-y',\n Line: 'line',\n Pie: 'pie',\n Scatter: 'scatter',\n Treemap: 'treemap',\n Waterfall: 'waterfall',\n} as const;\n\nexport enum DashStyle {\n Dash = 'Dash',\n DashDot = 'DashDot',\n Dot = 'Dot',\n LongDash = 'LongDash',\n LongDashDot = 'LongDashDot',\n LongDashDotDot = 'LongDashDotDot',\n ShortDash = 'ShortDash',\n ShortDashDot = 'ShortDashDot',\n ShortDashDotDot = 'ShortDashDotDot',\n ShortDot = 'ShortDot',\n Solid = 'Solid',\n}\n\nexport enum SymbolType {\n Circle = 'circle',\n Diamond = 'diamond',\n Square = 'square',\n Triangle = 'triangle',\n TriangleDown = 'triangle-down',\n}\n\nexport enum LineCap {\n Butt = 'butt',\n Round = 'round',\n Square = 'square',\n None = 'none',\n}\n\nexport enum LayoutAlgorithm {\n Binary = 'binary',\n Dice = 'dice',\n Slice = 'slice',\n SliceDice = 'slice-dice',\n Squarify = 'squarify',\n}\n"]}
@@ -0,0 +1 @@
1
+ export * from "./misc.js";
@@ -0,0 +1,2 @@
1
+ export * from "./misc.js";
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"../../../src","sources":["hooks/index.ts"],"names":[],"mappings":"AAAA,0BAAuB","sourcesContent":["export * from './misc';\n"]}
@@ -0,0 +1 @@
1
+ export declare function usePrevious<T>(value: T): T | undefined;
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ export function usePrevious(value) {
3
+ const ref = React.useRef(undefined);
4
+ React.useEffect(() => {
5
+ ref.current = value;
6
+ }, [value]);
7
+ return ref.current;
8
+ }
9
+ //# sourceMappingURL=misc.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"misc.js","sourceRoot":"../../../src","sources":["hooks/misc.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,MAAM,UAAU,WAAW,CAAI,KAAQ;IACnC,MAAM,GAAG,GAAG,KAAK,CAAC,MAAM,CAAgB,SAAS,CAAC,CAAC;IAEnD,KAAK,CAAC,SAAS,CAAC,GAAG,EAAE;QACjB,GAAG,CAAC,OAAO,GAAG,KAAK,CAAC;IACxB,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC;IAEZ,OAAO,GAAG,CAAC,OAAO,CAAC;AACvB,CAAC","sourcesContent":["import React from 'react';\n\nexport function usePrevious<T>(value: T) {\n const ref = React.useRef<T | undefined>(undefined);\n\n React.useEffect(() => {\n ref.current = value;\n }, [value]);\n\n return ref.current;\n}\n"]}