@gravity-ui/chartkit 8.12.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.
- package/LICENSE +1 -0
- package/README.md +47 -11
- package/build/cjs/components/ChartKit.css +31 -0
- package/build/cjs/components/ChartKit.d.ts +11 -0
- package/build/cjs/components/ChartKit.js +43 -0
- package/build/cjs/components/ChartKit.js.map +1 -0
- package/build/cjs/components/ErrorBoundary/ErrorBoundary.d.ts +23 -0
- package/build/cjs/components/ErrorBoundary/ErrorBoundary.js +53 -0
- package/build/cjs/components/ErrorBoundary/ErrorBoundary.js.map +1 -0
- package/build/cjs/components/Loader/Loader.d.ts +9 -0
- package/build/cjs/components/Loader/Loader.js +20 -0
- package/build/cjs/components/Loader/Loader.js.map +1 -0
- package/build/cjs/components/SplitPane/Pane.d.ts +14 -0
- package/build/cjs/components/SplitPane/Pane.js +32 -0
- package/build/cjs/components/SplitPane/Pane.js.map +1 -0
- package/build/cjs/components/SplitPane/Resizer.d.ts +18 -0
- package/build/cjs/components/SplitPane/Resizer.js +32 -0
- package/build/cjs/components/SplitPane/Resizer.js.map +1 -0
- package/build/cjs/components/SplitPane/SplitPane.d.ts +60 -0
- package/build/cjs/components/SplitPane/SplitPane.js +259 -0
- package/build/cjs/components/SplitPane/SplitPane.js.map +1 -0
- package/build/cjs/components/SplitPane/StyledSplitPane.css +45 -0
- package/build/cjs/components/SplitPane/StyledSplitPane.d.ts +9 -0
- package/build/cjs/components/SplitPane/StyledSplitPane.js +35 -0
- package/build/cjs/components/SplitPane/StyledSplitPane.js.map +1 -0
- package/build/cjs/components/SplitPane/constants.js +8 -0
- package/build/cjs/components/SplitPane/constants.js.map +1 -0
- package/build/cjs/components/SplitPane/index.d.ts +8 -0
- package/build/cjs/components/SplitPane/index.js +25 -0
- package/build/cjs/components/SplitPane/index.js.map +1 -0
- package/build/cjs/components/SplitPane/types.d.ts +2 -0
- package/build/cjs/components/SplitPane/types.js +3 -0
- package/build/cjs/components/SplitPane/types.js.map +1 -0
- package/build/cjs/components/SplitTooltip/SplitTooltip.d.ts +63 -0
- package/build/cjs/components/SplitTooltip/SplitTooltip.js +141 -0
- package/build/cjs/components/SplitTooltip/SplitTooltip.js.map +1 -0
- package/build/cjs/components/SplitTooltip/index.d.ts +2 -0
- package/build/cjs/components/SplitTooltip/index.js +7 -0
- package/build/cjs/components/SplitTooltip/index.js.map +1 -0
- package/build/cjs/constants/common.js +6 -0
- package/build/cjs/constants/common.js.map +1 -0
- package/build/cjs/constants/index.d.ts +3 -0
- package/build/cjs/constants/index.js +9 -0
- package/build/cjs/constants/index.js.map +1 -0
- package/build/cjs/constants/misc.js +23 -0
- package/build/cjs/constants/misc.js.map +1 -0
- package/build/cjs/constants/widget-data.js +51 -0
- package/build/cjs/constants/widget-data.js.map +1 -0
- package/build/cjs/hooks/index.d.ts +1 -0
- package/build/cjs/hooks/index.js +5 -0
- package/build/cjs/hooks/index.js.map +1 -0
- package/build/cjs/hooks/misc.js +13 -0
- package/build/cjs/hooks/misc.js.map +1 -0
- package/build/cjs/i18n/index.d.ts +79 -0
- package/build/cjs/i18n/index.js +22 -0
- package/build/cjs/i18n/index.js.map +1 -0
- package/build/cjs/index.d.ts +8 -0
- package/build/cjs/index.js +13 -0
- package/build/cjs/index.js.map +1 -0
- package/build/cjs/libs/chartkit-error/chartkit-error.js +28 -0
- package/build/cjs/libs/chartkit-error/chartkit-error.js.map +1 -0
- package/build/cjs/libs/index.d.ts +3 -0
- package/build/cjs/libs/index.js +10 -0
- package/build/cjs/libs/index.js.map +1 -0
- package/build/cjs/libs/settings/eventEmitter.js +28 -0
- package/build/cjs/libs/settings/eventEmitter.js.map +1 -0
- package/build/cjs/libs/settings/mergeSettingStrategy.js +35 -0
- package/build/cjs/libs/settings/mergeSettingStrategy.js.map +1 -0
- package/build/cjs/libs/settings/settings.d.ts +22 -0
- package/build/cjs/libs/settings/settings.js +46 -0
- package/build/cjs/libs/settings/settings.js.map +1 -0
- package/build/cjs/package.json +1 -0
- package/build/cjs/plugins/gravity-charts/index.d.ts +5 -0
- package/build/cjs/plugins/gravity-charts/index.js +19 -0
- package/build/cjs/plugins/gravity-charts/index.js.map +1 -0
- package/build/cjs/plugins/gravity-charts/renderer/GravityChartsWidget.d.ts +21 -0
- package/build/cjs/plugins/gravity-charts/renderer/GravityChartsWidget.js +72 -0
- package/build/cjs/plugins/gravity-charts/renderer/GravityChartsWidget.js.map +1 -0
- package/build/cjs/plugins/gravity-charts/renderer/utils.d.ts +2 -0
- package/build/cjs/plugins/gravity-charts/renderer/utils.js +20 -0
- package/build/cjs/plugins/gravity-charts/renderer/utils.js.map +1 -0
- package/build/cjs/plugins/gravity-charts/renderer/withSplitPane/TooltipContent.js +17 -0
- package/build/cjs/plugins/gravity-charts/renderer/withSplitPane/TooltipContent.js.map +1 -0
- package/build/cjs/plugins/gravity-charts/renderer/withSplitPane/useViewportSplitTooltipLayout.d.ts +3 -0
- package/build/cjs/plugins/gravity-charts/renderer/withSplitPane/useViewportSplitTooltipLayout.js +35 -0
- package/build/cjs/plugins/gravity-charts/renderer/withSplitPane/useViewportSplitTooltipLayout.js.map +1 -0
- package/build/cjs/plugins/gravity-charts/renderer/withSplitPane/withSplitPane.js +75 -0
- package/build/cjs/plugins/gravity-charts/renderer/withSplitPane/withSplitPane.js.map +1 -0
- package/build/cjs/plugins/gravity-charts/types.d.ts +6 -0
- package/build/cjs/plugins/gravity-charts/types.js +3 -0
- package/build/cjs/plugins/gravity-charts/types.js.map +1 -0
- package/build/cjs/plugins/highcharts/index.d.ts +4 -0
- package/build/cjs/plugins/highcharts/index.js +15 -0
- package/build/cjs/plugins/highcharts/index.js.map +1 -0
- package/build/cjs/plugins/highcharts/renderer/HighchartsWidget.d.ts +31 -0
- package/build/cjs/plugins/highcharts/renderer/HighchartsWidget.js +10 -0
- package/build/cjs/plugins/highcharts/renderer/HighchartsWidget.js.map +1 -0
- package/build/cjs/plugins/highcharts/renderer/components/HighchartsComponent.d.ts +579 -0
- package/build/cjs/plugins/highcharts/renderer/components/HighchartsComponent.js +157 -0
- package/build/cjs/plugins/highcharts/renderer/components/HighchartsComponent.js.map +1 -0
- package/build/cjs/plugins/highcharts/renderer/components/HighchartsReact.d.ts +20 -0
- package/build/cjs/plugins/highcharts/renderer/components/HighchartsReact.js +78 -0
- package/build/cjs/plugins/highcharts/renderer/components/HighchartsReact.js.map +1 -0
- package/build/cjs/plugins/highcharts/renderer/components/useElementSize.js +55 -0
- package/build/cjs/plugins/highcharts/renderer/components/useElementSize.js.map +1 -0
- package/build/cjs/plugins/highcharts/renderer/components/withSplitPane/withSplitPane.d.ts +18 -0
- package/build/cjs/plugins/highcharts/renderer/components/withSplitPane/withSplitPane.js +221 -0
- package/build/cjs/plugins/highcharts/renderer/components/withSplitPane/withSplitPane.js.map +1 -0
- package/build/cjs/plugins/highcharts/renderer/helpers/add-holidays.d.ts +3 -0
- package/build/cjs/plugins/highcharts/renderer/helpers/add-holidays.js +47 -0
- package/build/cjs/plugins/highcharts/renderer/helpers/add-holidays.js.map +1 -0
- package/build/cjs/plugins/highcharts/renderer/helpers/comments/drawing.js +577 -0
- package/build/cjs/plugins/highcharts/renderer/helpers/comments/drawing.js.map +1 -0
- package/build/cjs/plugins/highcharts/renderer/helpers/config/config.js +1579 -0
- package/build/cjs/plugins/highcharts/renderer/helpers/config/config.js.map +1 -0
- package/build/cjs/plugins/highcharts/renderer/helpers/config/handleLegendItemClick.js +81 -0
- package/build/cjs/plugins/highcharts/renderer/helpers/config/handleLegendItemClick.js.map +1 -0
- package/build/cjs/plugins/highcharts/renderer/helpers/config/options.js +351 -0
- package/build/cjs/plugins/highcharts/renderer/helpers/config/options.js.map +1 -0
- package/build/cjs/plugins/highcharts/renderer/helpers/config/types.js +3 -0
- package/build/cjs/plugins/highcharts/renderer/helpers/config/types.js.map +1 -0
- package/build/cjs/plugins/highcharts/renderer/helpers/config/utils/addShowInNavigatorToSeries.d.ts +10 -0
- package/build/cjs/plugins/highcharts/renderer/helpers/config/utils/addShowInNavigatorToSeries.js +47 -0
- package/build/cjs/plugins/highcharts/renderer/helpers/config/utils/addShowInNavigatorToSeries.js.map +1 -0
- package/build/cjs/plugins/highcharts/renderer/helpers/config/utils/buildNavigatorFallback.js +22 -0
- package/build/cjs/plugins/highcharts/renderer/helpers/config/utils/buildNavigatorFallback.js.map +1 -0
- package/build/cjs/plugins/highcharts/renderer/helpers/config/utils/calculatePrecision.js +26 -0
- package/build/cjs/plugins/highcharts/renderer/helpers/config/utils/calculatePrecision.js.map +1 -0
- package/build/cjs/plugins/highcharts/renderer/helpers/config/utils/concatStrings.js +6 -0
- package/build/cjs/plugins/highcharts/renderer/helpers/config/utils/concatStrings.js.map +1 -0
- package/build/cjs/plugins/highcharts/renderer/helpers/config/utils/getChartKitFormattedValue.d.ts +2 -0
- package/build/cjs/plugins/highcharts/renderer/helpers/config/utils/getChartKitFormattedValue.js +20 -0
- package/build/cjs/plugins/highcharts/renderer/helpers/config/utils/getChartKitFormattedValue.js.map +1 -0
- package/build/cjs/plugins/highcharts/renderer/helpers/config/utils/getFormatOptionsFromLine.d.ts +3 -0
- package/build/cjs/plugins/highcharts/renderer/helpers/config/utils/getFormatOptionsFromLine.js +20 -0
- package/build/cjs/plugins/highcharts/renderer/helpers/config/utils/getFormatOptionsFromLine.js.map +1 -0
- package/build/cjs/plugins/highcharts/renderer/helpers/config/utils/getXAxisThresholdValue.js +25 -0
- package/build/cjs/plugins/highcharts/renderer/helpers/config/utils/getXAxisThresholdValue.js.map +1 -0
- package/build/cjs/plugins/highcharts/renderer/helpers/config/utils/index.d.ts +78 -0
- package/build/cjs/plugins/highcharts/renderer/helpers/config/utils/index.js +39 -0
- package/build/cjs/plugins/highcharts/renderer/helpers/config/utils/index.js.map +1 -0
- package/build/cjs/plugins/highcharts/renderer/helpers/config/utils/isNavigatorSeries.d.ts +2 -0
- package/build/cjs/plugins/highcharts/renderer/helpers/config/utils/isNavigatorSeries.js +8 -0
- package/build/cjs/plugins/highcharts/renderer/helpers/config/utils/isNavigatorSeries.js.map +1 -0
- package/build/cjs/plugins/highcharts/renderer/helpers/config/utils/isSafari.js +16 -0
- package/build/cjs/plugins/highcharts/renderer/helpers/config/utils/isSafari.js.map +1 -0
- package/build/cjs/plugins/highcharts/renderer/helpers/config/utils/localStorage.js +26 -0
- package/build/cjs/plugins/highcharts/renderer/helpers/config/utils/localStorage.js.map +1 -0
- package/build/cjs/plugins/highcharts/renderer/helpers/config/utils/mergeArrayWithObject.js +15 -0
- package/build/cjs/plugins/highcharts/renderer/helpers/config/utils/mergeArrayWithObject.js.map +1 -0
- package/build/cjs/plugins/highcharts/renderer/helpers/config/utils/numberFormat.d.ts +2 -0
- package/build/cjs/plugins/highcharts/renderer/helpers/config/utils/numberFormat.js +33 -0
- package/build/cjs/plugins/highcharts/renderer/helpers/config/utils/numberFormat.js.map +1 -0
- package/build/cjs/plugins/highcharts/renderer/helpers/config/utils/setNavigatorDefaultPeriod.d.ts +13 -0
- package/build/cjs/plugins/highcharts/renderer/helpers/config/utils/setNavigatorDefaultPeriod.js +33 -0
- package/build/cjs/plugins/highcharts/renderer/helpers/config/utils/setNavigatorDefaultPeriod.js.map +1 -0
- package/build/cjs/plugins/highcharts/renderer/helpers/config/utils/tooltip.d.ts +7 -0
- package/build/cjs/plugins/highcharts/renderer/helpers/config/utils/tooltip.js +30 -0
- package/build/cjs/plugins/highcharts/renderer/helpers/config/utils/tooltip.js.map +1 -0
- package/build/cjs/plugins/highcharts/renderer/helpers/constants.js +35 -0
- package/build/cjs/plugins/highcharts/renderer/helpers/constants.js.map +1 -0
- package/build/cjs/plugins/highcharts/renderer/helpers/graph.css +82 -0
- package/build/cjs/plugins/highcharts/renderer/helpers/graph.d.ts +553 -0
- package/build/cjs/plugins/highcharts/renderer/helpers/graph.js +94 -0
- package/build/cjs/plugins/highcharts/renderer/helpers/graph.js.map +1 -0
- package/build/cjs/plugins/highcharts/renderer/helpers/highcharts/colors.js +20 -0
- package/build/cjs/plugins/highcharts/renderer/helpers/highcharts/colors.js.map +1 -0
- package/build/cjs/plugins/highcharts/renderer/helpers/highcharts/highcharts.js +376 -0
- package/build/cjs/plugins/highcharts/renderer/helpers/highcharts/highcharts.js.map +1 -0
- package/build/cjs/plugins/highcharts/renderer/helpers/highcharts/utils/calcucalteClosestPointManually.js +23 -0
- package/build/cjs/plugins/highcharts/renderer/helpers/highcharts/utils/calcucalteClosestPointManually.js.map +1 -0
- package/build/cjs/plugins/highcharts/renderer/helpers/highcharts/utils/index.d.ts +1 -0
- package/build/cjs/plugins/highcharts/renderer/helpers/highcharts/utils/index.js +6 -0
- package/build/cjs/plugins/highcharts/renderer/helpers/highcharts/utils/index.js.map +1 -0
- package/build/cjs/plugins/highcharts/renderer/helpers/prepare-data.js +186 -0
- package/build/cjs/plugins/highcharts/renderer/helpers/prepare-data.js.map +1 -0
- package/build/cjs/plugins/highcharts/renderer/helpers/tooltip/constants.js +18 -0
- package/build/cjs/plugins/highcharts/renderer/helpers/tooltip/constants.js.map +1 -0
- package/build/cjs/plugins/highcharts/renderer/helpers/tooltip/helpers.js +10 -0
- package/build/cjs/plugins/highcharts/renderer/helpers/tooltip/helpers.js.map +1 -0
- package/build/cjs/plugins/highcharts/renderer/helpers/tooltip/index.d.ts +13 -0
- package/build/cjs/plugins/highcharts/renderer/helpers/tooltip/index.js +274 -0
- package/build/cjs/plugins/highcharts/renderer/helpers/tooltip/index.js.map +1 -0
- package/build/cjs/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/index.d.ts +6 -0
- package/build/cjs/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/index.js +27 -0
- package/build/cjs/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/index.js.map +1 -0
- package/build/cjs/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/template-icons/DashDotLineIcon.d.ts +2 -0
- package/build/cjs/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/template-icons/DashDotLineIcon.js +25 -0
- package/build/cjs/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/template-icons/DashDotLineIcon.js.map +1 -0
- package/build/cjs/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/template-icons/DashLineIcon.d.ts +2 -0
- package/build/cjs/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/template-icons/DashLineIcon.js +30 -0
- package/build/cjs/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/template-icons/DashLineIcon.js.map +1 -0
- package/build/cjs/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/template-icons/DotLineIcon.d.ts +2 -0
- package/build/cjs/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/template-icons/DotLineIcon.js +25 -0
- package/build/cjs/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/template-icons/DotLineIcon.js.map +1 -0
- package/build/cjs/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/template-icons/LongDashDotDotLineIcon.d.ts +2 -0
- package/build/cjs/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/template-icons/LongDashDotDotLineIcon.js +23 -0
- package/build/cjs/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/template-icons/LongDashDotDotLineIcon.js.map +1 -0
- package/build/cjs/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/template-icons/LongDashDotLineIcon.d.ts +2 -0
- package/build/cjs/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/template-icons/LongDashDotLineIcon.js +23 -0
- package/build/cjs/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/template-icons/LongDashDotLineIcon.js.map +1 -0
- package/build/cjs/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/template-icons/LongDashLineIcon.d.ts +2 -0
- package/build/cjs/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/template-icons/LongDashLineIcon.js +20 -0
- package/build/cjs/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/template-icons/LongDashLineIcon.js.map +1 -0
- package/build/cjs/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/template-icons/ShortDashDotDotLineIcon.d.ts +2 -0
- package/build/cjs/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/template-icons/ShortDashDotDotLineIcon.js +23 -0
- package/build/cjs/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/template-icons/ShortDashDotDotLineIcon.js.map +1 -0
- package/build/cjs/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/template-icons/ShortDashDotLineIcon.d.ts +2 -0
- package/build/cjs/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/template-icons/ShortDashDotLineIcon.js +23 -0
- package/build/cjs/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/template-icons/ShortDashDotLineIcon.js.map +1 -0
- package/build/cjs/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/template-icons/ShortDashLineIcon.d.ts +2 -0
- package/build/cjs/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/template-icons/ShortDashLineIcon.js +23 -0
- package/build/cjs/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/template-icons/ShortDashLineIcon.js.map +1 -0
- package/build/cjs/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/template-icons/ShortDotLineIcon.d.ts +2 -0
- package/build/cjs/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/template-icons/ShortDotLineIcon.js +25 -0
- package/build/cjs/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/template-icons/ShortDotLineIcon.js.map +1 -0
- package/build/cjs/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/template-icons/SolidLineIcon.d.ts +2 -0
- package/build/cjs/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/template-icons/SolidLineIcon.js +18 -0
- package/build/cjs/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/template-icons/SolidLineIcon.js.map +1 -0
- package/build/cjs/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/template-icons/index.d.ts +11 -0
- package/build/cjs/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/template-icons/index.js +26 -0
- package/build/cjs/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/template-icons/index.js.map +1 -0
- package/build/cjs/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/types.js +3 -0
- package/build/cjs/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/types.js.map +1 -0
- package/build/cjs/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/utils.js +10 -0
- package/build/cjs/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/utils.js.map +1 -0
- package/build/cjs/plugins/highcharts/renderer/helpers/tooltip/tooltip.css +313 -0
- package/build/cjs/plugins/highcharts/renderer/helpers/tooltip/types.d.ts +88 -0
- package/build/cjs/plugins/highcharts/renderer/helpers/tooltip/types.js +3 -0
- package/build/cjs/plugins/highcharts/renderer/helpers/tooltip/types.js.map +1 -0
- package/build/cjs/plugins/highcharts/renderer/helpers/types.d.ts +22 -0
- package/build/cjs/plugins/highcharts/renderer/helpers/types.js +3 -0
- package/build/cjs/plugins/highcharts/renderer/helpers/types.js.map +1 -0
- package/build/cjs/plugins/highcharts/types/comments.js +3 -0
- package/build/cjs/plugins/highcharts/types/comments.js.map +1 -0
- package/build/cjs/plugins/highcharts/types/index.d.ts +4 -0
- package/build/cjs/plugins/highcharts/types/index.js +3 -0
- package/build/cjs/plugins/highcharts/types/index.js.map +1 -0
- package/build/cjs/plugins/highcharts/types/lib.js +6 -0
- package/build/cjs/plugins/highcharts/types/lib.js.map +1 -0
- package/build/cjs/plugins/highcharts/types/misc.d.ts +22 -0
- package/build/cjs/plugins/highcharts/types/misc.js +3 -0
- package/build/cjs/plugins/highcharts/types/misc.js.map +1 -0
- package/build/cjs/plugins/highcharts/types/widget.d.ts +117 -0
- package/build/cjs/plugins/highcharts/types/widget.js +3 -0
- package/build/cjs/plugins/highcharts/types/widget.js.map +1 -0
- package/build/cjs/plugins/indicator/index.d.ts +3 -0
- package/build/cjs/plugins/indicator/index.js +13 -0
- package/build/cjs/plugins/indicator/index.js.map +1 -0
- package/build/cjs/plugins/indicator/renderer/IndicatorItem.d.ts +7 -0
- package/build/cjs/plugins/indicator/renderer/IndicatorItem.js +21 -0
- package/build/cjs/plugins/indicator/renderer/IndicatorItem.js.map +1 -0
- package/build/cjs/plugins/indicator/renderer/IndicatorWidget.css +51 -0
- package/build/cjs/plugins/indicator/renderer/IndicatorWidget.d.ts +20 -0
- package/build/cjs/plugins/indicator/renderer/IndicatorWidget.js +38 -0
- package/build/cjs/plugins/indicator/renderer/IndicatorWidget.js.map +1 -0
- package/build/cjs/plugins/indicator/types.js +3 -0
- package/build/cjs/plugins/indicator/types.js.map +1 -0
- package/build/cjs/plugins/shared/format-number/format-number.d.ts +5 -0
- package/build/cjs/plugins/shared/format-number/format-number.js +97 -0
- package/build/cjs/plugins/shared/format-number/format-number.js.map +1 -0
- package/build/cjs/plugins/shared/format-number/i18n/i18n.js +13 -0
- package/build/cjs/plugins/shared/format-number/i18n/i18n.js.map +1 -0
- package/build/cjs/plugins/shared/format-number/types.js +3 -0
- package/build/cjs/plugins/shared/format-number/types.js.map +1 -0
- package/build/cjs/plugins/shared/index.d.ts +2 -0
- package/build/cjs/plugins/shared/index.js +6 -0
- package/build/cjs/plugins/shared/index.js.map +1 -0
- package/build/cjs/plugins/yagr/index.d.ts +3 -0
- package/build/cjs/plugins/yagr/index.js +11 -0
- package/build/cjs/plugins/yagr/index.js.map +1 -0
- package/build/cjs/plugins/yagr/renderer/YagrWidget.d.ts +24 -0
- package/build/cjs/plugins/yagr/renderer/YagrWidget.js +82 -0
- package/build/cjs/plugins/yagr/renderer/YagrWidget.js.map +1 -0
- package/build/cjs/plugins/yagr/renderer/polyfills.js +17 -0
- package/build/cjs/plugins/yagr/renderer/polyfills.js.map +1 -0
- package/build/cjs/plugins/yagr/renderer/tooltip/helpers/escapeHTML.js +9 -0
- package/build/cjs/plugins/yagr/renderer/tooltip/helpers/escapeHTML.js.map +1 -0
- package/build/cjs/plugins/yagr/renderer/tooltip/index.d.ts +1 -0
- package/build/cjs/plugins/yagr/renderer/tooltip/index.js +6 -0
- package/build/cjs/plugins/yagr/renderer/tooltip/index.js.map +1 -0
- package/build/cjs/plugins/yagr/renderer/tooltip/renderTooltip.d.ts +2 -0
- package/build/cjs/plugins/yagr/renderer/tooltip/renderTooltip.js +72 -0
- package/build/cjs/plugins/yagr/renderer/tooltip/renderTooltip.js.map +1 -0
- package/build/cjs/plugins/yagr/renderer/tooltip/tooltip.css +306 -0
- package/build/cjs/plugins/yagr/renderer/tooltip/tooltip.d.ts +3 -0
- package/build/cjs/plugins/yagr/renderer/tooltip/tooltip.js +241 -0
- package/build/cjs/plugins/yagr/renderer/tooltip/tooltip.js.map +1 -0
- package/build/cjs/plugins/yagr/renderer/tooltip/types.js +3 -0
- package/build/cjs/plugins/yagr/renderer/tooltip/types.js.map +1 -0
- package/build/cjs/plugins/yagr/renderer/useWidgetData.d.ts +6 -0
- package/build/cjs/plugins/yagr/renderer/useWidgetData.js +31 -0
- package/build/cjs/plugins/yagr/renderer/useWidgetData.js.map +1 -0
- package/build/cjs/plugins/yagr/renderer/utils.d.ts +29 -0
- package/build/cjs/plugins/yagr/renderer/utils.js +154 -0
- package/build/cjs/plugins/yagr/renderer/utils.js.map +1 -0
- package/build/cjs/plugins/yagr/types.d.ts +32 -0
- package/build/cjs/plugins/yagr/types.js +3 -0
- package/build/cjs/plugins/yagr/types.js.map +1 -0
- package/build/cjs/types/index.d.ts +75 -0
- package/build/cjs/types/index.js +3 -0
- package/build/cjs/types/index.js.map +1 -0
- package/build/cjs/types/misc.js +3 -0
- package/build/cjs/types/misc.js.map +1 -0
- package/build/cjs/types/widget.d.ts +41 -0
- package/build/cjs/types/widget.js +3 -0
- package/build/cjs/types/widget.js.map +1 -0
- package/build/cjs/utils/cn.js +8 -0
- package/build/cjs/utils/cn.js.map +1 -0
- package/build/cjs/utils/common.js +14 -0
- package/build/cjs/utils/common.js.map +1 -0
- package/build/cjs/utils/getErrorMessage.d.ts +2 -0
- package/build/cjs/utils/getErrorMessage.js +9 -0
- package/build/cjs/utils/getErrorMessage.js.map +1 -0
- package/build/cjs/utils/index.d.ts +4 -0
- package/build/cjs/utils/index.js +12 -0
- package/build/cjs/utils/index.js.map +1 -0
- package/build/cjs/utils/merge.d.ts +19 -0
- package/build/cjs/utils/merge.js +154 -0
- package/build/cjs/utils/merge.js.map +1 -0
- package/build/cjs/utils/misc.d.ts +2 -0
- package/build/cjs/utils/misc.js +11 -0
- package/build/cjs/utils/misc.js.map +1 -0
- package/build/cjs/utils/performance.js +27 -0
- package/build/cjs/utils/performance.js.map +1 -0
- package/build/cjs/utils/react.js +9 -0
- package/build/cjs/utils/react.js.map +1 -0
- package/build/cjs/utils/throttle.d.ts +13 -0
- package/build/cjs/utils/throttle.js +47 -0
- package/build/cjs/utils/throttle.js.map +1 -0
- package/build/docs/INDEX.md +35 -9
- package/build/docs/guides/migration-to-v9.md +52 -0
- package/build/docs/guides/testing.md +12 -11
- package/build/esm/components/ChartKit.css +31 -0
- package/build/esm/components/ChartKit.d.ts +11 -0
- package/build/esm/components/ChartKit.js +39 -0
- package/build/esm/components/ChartKit.js.map +1 -0
- package/build/esm/components/ErrorBoundary/ErrorBoundary.d.ts +23 -0
- package/build/esm/components/ErrorBoundary/ErrorBoundary.js +48 -0
- package/build/esm/components/ErrorBoundary/ErrorBoundary.js.map +1 -0
- package/build/esm/components/Loader/Loader.css +7 -0
- package/build/esm/components/Loader/Loader.d.ts +9 -0
- package/build/esm/components/Loader/Loader.js +15 -0
- package/build/esm/components/Loader/Loader.js.map +1 -0
- package/build/esm/components/SplitPane/Pane.d.ts +14 -0
- package/build/esm/components/SplitPane/Pane.js +27 -0
- package/build/esm/components/SplitPane/Pane.js.map +1 -0
- package/build/esm/components/SplitPane/Resizer.d.ts +18 -0
- package/build/esm/components/SplitPane/Resizer.js +27 -0
- package/build/esm/components/SplitPane/Resizer.js.map +1 -0
- package/build/esm/components/SplitPane/SplitPane.d.ts +60 -0
- package/build/esm/components/SplitPane/SplitPane.js +254 -0
- package/build/esm/components/SplitPane/SplitPane.js.map +1 -0
- package/build/esm/components/SplitPane/StyledSplitPane.css +45 -0
- package/build/esm/components/SplitPane/StyledSplitPane.d.ts +9 -0
- package/build/esm/components/SplitPane/StyledSplitPane.js +30 -0
- package/build/esm/components/SplitPane/StyledSplitPane.js.map +1 -0
- package/build/esm/components/SplitPane/constants.d.ts +4 -0
- package/build/esm/components/SplitPane/constants.js +5 -0
- package/build/esm/components/SplitPane/constants.js.map +1 -0
- package/build/esm/components/SplitPane/index.d.ts +8 -0
- package/build/esm/components/SplitPane/index.js +19 -0
- package/build/esm/components/SplitPane/index.js.map +1 -0
- package/build/esm/components/SplitPane/types.d.ts +2 -0
- package/build/esm/components/SplitPane/types.js +2 -0
- package/build/esm/components/SplitPane/types.js.map +1 -0
- package/build/esm/components/SplitTooltip/SplitTooltip.d.ts +63 -0
- package/build/esm/components/SplitTooltip/SplitTooltip.js +133 -0
- package/build/esm/components/SplitTooltip/SplitTooltip.js.map +1 -0
- package/build/esm/components/SplitTooltip/index.d.ts +2 -0
- package/build/esm/components/SplitTooltip/index.js +2 -0
- package/build/esm/components/SplitTooltip/index.js.map +1 -0
- package/build/esm/constants/common.d.ts +1 -0
- package/build/esm/constants/common.js +3 -0
- package/build/esm/constants/common.js.map +1 -0
- package/build/esm/constants/index.d.ts +3 -0
- package/build/esm/constants/index.js +4 -0
- package/build/esm/constants/index.js.map +1 -0
- package/build/esm/constants/misc.d.ts +10 -0
- package/build/esm/constants/misc.js +20 -0
- package/build/esm/constants/misc.js.map +1 -0
- package/build/esm/constants/widget-data.d.ts +43 -0
- package/build/esm/constants/widget-data.js +48 -0
- package/build/esm/constants/widget-data.js.map +1 -0
- package/build/esm/hooks/index.d.ts +1 -0
- package/build/esm/hooks/index.js +2 -0
- package/build/esm/hooks/index.js.map +1 -0
- package/build/esm/hooks/misc.d.ts +1 -0
- package/build/esm/hooks/misc.js +9 -0
- package/build/esm/hooks/misc.js.map +1 -0
- package/build/esm/i18n/index.d.ts +79 -0
- package/build/esm/i18n/index.js +17 -0
- package/build/esm/i18n/index.js.map +1 -0
- package/build/esm/i18n/keysets/en.json +80 -0
- package/build/esm/i18n/keysets/ru.json +79 -0
- package/build/esm/index.d.ts +8 -0
- package/build/esm/index.js +7 -0
- package/build/esm/index.js.map +1 -0
- package/build/esm/libs/chartkit-error/chartkit-error.d.ts +18 -0
- package/build/esm/libs/chartkit-error/chartkit-error.js +23 -0
- package/build/esm/libs/chartkit-error/chartkit-error.js.map +1 -0
- package/build/esm/libs/index.d.ts +3 -0
- package/build/esm/libs/index.js +3 -0
- package/build/esm/libs/index.js.map +1 -0
- package/build/esm/libs/settings/eventEmitter.d.ts +11 -0
- package/build/esm/libs/settings/eventEmitter.js +24 -0
- package/build/esm/libs/settings/eventEmitter.js.map +1 -0
- package/build/esm/libs/settings/mergeSettingStrategy.d.ts +1 -0
- package/build/esm/libs/settings/mergeSettingStrategy.js +31 -0
- package/build/esm/libs/settings/mergeSettingStrategy.js.map +1 -0
- package/build/esm/libs/settings/settings.d.ts +22 -0
- package/build/esm/libs/settings/settings.js +42 -0
- package/build/esm/libs/settings/settings.js.map +1 -0
- package/build/esm/package.json +1 -0
- package/build/esm/plugins/gravity-charts/index.d.ts +5 -0
- package/build/esm/plugins/gravity-charts/index.js +11 -0
- package/build/esm/plugins/gravity-charts/index.js.map +1 -0
- package/build/esm/plugins/gravity-charts/renderer/GravityChartsWidget.d.ts +21 -0
- package/build/esm/plugins/gravity-charts/renderer/GravityChartsWidget.js +68 -0
- package/build/esm/plugins/gravity-charts/renderer/GravityChartsWidget.js.map +1 -0
- package/build/esm/plugins/gravity-charts/renderer/utils.d.ts +2 -0
- package/build/esm/plugins/gravity-charts/renderer/utils.js +17 -0
- package/build/esm/plugins/gravity-charts/renderer/utils.js.map +1 -0
- package/build/esm/plugins/gravity-charts/renderer/withSplitPane/TooltipContent.d.ts +8 -0
- package/build/esm/plugins/gravity-charts/renderer/withSplitPane/TooltipContent.js +13 -0
- package/build/esm/plugins/gravity-charts/renderer/withSplitPane/TooltipContent.js.map +1 -0
- package/build/esm/plugins/gravity-charts/renderer/withSplitPane/useViewportSplitTooltipLayout.d.ts +3 -0
- package/build/esm/plugins/gravity-charts/renderer/withSplitPane/useViewportSplitTooltipLayout.js +30 -0
- package/build/esm/plugins/gravity-charts/renderer/withSplitPane/useViewportSplitTooltipLayout.js.map +1 -0
- package/build/esm/plugins/gravity-charts/renderer/withSplitPane/withSplitPane.d.ts +8 -0
- package/build/esm/plugins/gravity-charts/renderer/withSplitPane/withSplitPane.js +71 -0
- package/build/esm/plugins/gravity-charts/renderer/withSplitPane/withSplitPane.js.map +1 -0
- package/build/esm/plugins/gravity-charts/types.d.ts +6 -0
- package/build/esm/plugins/gravity-charts/types.js +2 -0
- package/build/esm/plugins/gravity-charts/types.js.map +1 -0
- package/build/esm/plugins/highcharts/index.d.ts +4 -0
- package/build/esm/plugins/highcharts/index.js +10 -0
- package/build/esm/plugins/highcharts/index.js.map +1 -0
- package/build/esm/plugins/highcharts/renderer/HighchartsWidget.d.ts +31 -0
- package/build/esm/plugins/highcharts/renderer/HighchartsWidget.js +6 -0
- package/build/esm/plugins/highcharts/renderer/HighchartsWidget.js.map +1 -0
- package/build/esm/plugins/highcharts/renderer/components/HighchartsComponent.css +4 -0
- package/build/esm/plugins/highcharts/renderer/components/HighchartsComponent.d.ts +579 -0
- package/build/esm/plugins/highcharts/renderer/components/HighchartsComponent.js +152 -0
- package/build/esm/plugins/highcharts/renderer/components/HighchartsComponent.js.map +1 -0
- package/build/esm/plugins/highcharts/renderer/components/HighchartsReact.d.ts +20 -0
- package/build/esm/plugins/highcharts/renderer/components/HighchartsReact.js +74 -0
- package/build/esm/plugins/highcharts/renderer/components/HighchartsReact.js.map +1 -0
- package/build/esm/plugins/highcharts/renderer/components/useElementSize.d.ts +6 -0
- package/build/esm/plugins/highcharts/renderer/components/useElementSize.js +51 -0
- package/build/esm/plugins/highcharts/renderer/components/useElementSize.js.map +1 -0
- package/build/esm/plugins/highcharts/renderer/components/withSplitPane/WithSplitPane.css +4 -0
- package/build/esm/plugins/highcharts/renderer/components/withSplitPane/withSplitPane.d.ts +18 -0
- package/build/esm/plugins/highcharts/renderer/components/withSplitPane/withSplitPane.js +216 -0
- package/build/esm/plugins/highcharts/renderer/components/withSplitPane/withSplitPane.js.map +1 -0
- package/build/esm/plugins/highcharts/renderer/helpers/add-holidays.d.ts +3 -0
- package/build/esm/plugins/highcharts/renderer/helpers/add-holidays.js +44 -0
- package/build/esm/plugins/highcharts/renderer/helpers/add-holidays.js.map +1 -0
- package/build/esm/plugins/highcharts/renderer/helpers/comments/drawing.d.ts +11 -0
- package/build/esm/plugins/highcharts/renderer/helpers/comments/drawing.js +570 -0
- package/build/esm/plugins/highcharts/renderer/helpers/comments/drawing.js.map +1 -0
- package/build/esm/plugins/highcharts/renderer/helpers/config/config.d.ts +582 -0
- package/build/esm/plugins/highcharts/renderer/helpers/config/config.js +1565 -0
- package/build/esm/plugins/highcharts/renderer/helpers/config/config.js.map +1 -0
- package/build/esm/plugins/highcharts/renderer/helpers/config/handleLegendItemClick.d.ts +2 -0
- package/build/esm/plugins/highcharts/renderer/helpers/config/handleLegendItemClick.js +76 -0
- package/build/esm/plugins/highcharts/renderer/helpers/config/handleLegendItemClick.js.map +1 -0
- package/build/esm/plugins/highcharts/renderer/helpers/config/options.d.ts +468 -0
- package/build/esm/plugins/highcharts/renderer/helpers/config/options.js +348 -0
- package/build/esm/plugins/highcharts/renderer/helpers/config/options.js.map +1 -0
- package/build/esm/plugins/highcharts/renderer/helpers/config/types.d.ts +6 -0
- package/build/esm/plugins/highcharts/renderer/helpers/config/types.js +2 -0
- package/build/esm/plugins/highcharts/renderer/helpers/config/types.js.map +1 -0
- package/build/esm/plugins/highcharts/renderer/helpers/config/utils/addShowInNavigatorToSeries.d.ts +10 -0
- package/build/esm/plugins/highcharts/renderer/helpers/config/utils/addShowInNavigatorToSeries.js +43 -0
- package/build/esm/plugins/highcharts/renderer/helpers/config/utils/addShowInNavigatorToSeries.js.map +1 -0
- package/build/esm/plugins/highcharts/renderer/helpers/config/utils/buildNavigatorFallback.d.ts +1 -0
- package/build/esm/plugins/highcharts/renderer/helpers/config/utils/buildNavigatorFallback.js +18 -0
- package/build/esm/plugins/highcharts/renderer/helpers/config/utils/buildNavigatorFallback.js.map +1 -0
- package/build/esm/plugins/highcharts/renderer/helpers/config/utils/calculatePrecision.d.ts +5 -0
- package/build/esm/plugins/highcharts/renderer/helpers/config/utils/calculatePrecision.js +21 -0
- package/build/esm/plugins/highcharts/renderer/helpers/config/utils/calculatePrecision.js.map +1 -0
- package/build/esm/plugins/highcharts/renderer/helpers/config/utils/concatStrings.d.ts +1 -0
- package/build/esm/plugins/highcharts/renderer/helpers/config/utils/concatStrings.js +2 -0
- package/build/esm/plugins/highcharts/renderer/helpers/config/utils/concatStrings.js.map +1 -0
- package/build/esm/plugins/highcharts/renderer/helpers/config/utils/getChartKitFormattedValue.d.ts +2 -0
- package/build/esm/plugins/highcharts/renderer/helpers/config/utils/getChartKitFormattedValue.js +16 -0
- package/build/esm/plugins/highcharts/renderer/helpers/config/utils/getChartKitFormattedValue.js.map +1 -0
- package/build/esm/plugins/highcharts/renderer/helpers/config/utils/getFormatOptionsFromLine.d.ts +3 -0
- package/build/esm/plugins/highcharts/renderer/helpers/config/utils/getFormatOptionsFromLine.js +16 -0
- package/build/esm/plugins/highcharts/renderer/helpers/config/utils/getFormatOptionsFromLine.js.map +1 -0
- package/build/esm/plugins/highcharts/renderer/helpers/config/utils/getXAxisThresholdValue.d.ts +1 -0
- package/build/esm/plugins/highcharts/renderer/helpers/config/utils/getXAxisThresholdValue.js +21 -0
- package/build/esm/plugins/highcharts/renderer/helpers/config/utils/getXAxisThresholdValue.js.map +1 -0
- package/build/esm/plugins/highcharts/renderer/helpers/config/utils/index.d.ts +78 -0
- package/build/esm/plugins/highcharts/renderer/helpers/config/utils/index.js +22 -0
- package/build/esm/plugins/highcharts/renderer/helpers/config/utils/index.js.map +1 -0
- package/build/esm/plugins/highcharts/renderer/helpers/config/utils/isNavigatorSeries.d.ts +2 -0
- package/build/esm/plugins/highcharts/renderer/helpers/config/utils/isNavigatorSeries.js +4 -0
- package/build/esm/plugins/highcharts/renderer/helpers/config/utils/isNavigatorSeries.js.map +1 -0
- package/build/esm/plugins/highcharts/renderer/helpers/config/utils/isSafari.d.ts +1 -0
- package/build/esm/plugins/highcharts/renderer/helpers/config/utils/isSafari.js +13 -0
- package/build/esm/plugins/highcharts/renderer/helpers/config/utils/isSafari.js.map +1 -0
- package/build/esm/plugins/highcharts/renderer/helpers/config/utils/localStorage.d.ts +5 -0
- package/build/esm/plugins/highcharts/renderer/helpers/config/utils/localStorage.js +24 -0
- package/build/esm/plugins/highcharts/renderer/helpers/config/utils/localStorage.js.map +1 -0
- package/build/esm/plugins/highcharts/renderer/helpers/config/utils/mergeArrayWithObject.d.ts +1 -0
- package/build/esm/plugins/highcharts/renderer/helpers/config/utils/mergeArrayWithObject.js +11 -0
- package/build/esm/plugins/highcharts/renderer/helpers/config/utils/mergeArrayWithObject.js.map +1 -0
- package/build/esm/plugins/highcharts/renderer/helpers/config/utils/numberFormat.d.ts +2 -0
- package/build/esm/plugins/highcharts/renderer/helpers/config/utils/numberFormat.js +29 -0
- package/build/esm/plugins/highcharts/renderer/helpers/config/utils/numberFormat.js.map +1 -0
- package/build/esm/plugins/highcharts/renderer/helpers/config/utils/setNavigatorDefaultPeriod.d.ts +13 -0
- package/build/esm/plugins/highcharts/renderer/helpers/config/utils/setNavigatorDefaultPeriod.js +28 -0
- package/build/esm/plugins/highcharts/renderer/helpers/config/utils/setNavigatorDefaultPeriod.js.map +1 -0
- package/build/esm/plugins/highcharts/renderer/helpers/config/utils/tooltip.d.ts +7 -0
- package/build/esm/plugins/highcharts/renderer/helpers/config/utils/tooltip.js +25 -0
- package/build/esm/plugins/highcharts/renderer/helpers/config/utils/tooltip.js.map +1 -0
- package/build/esm/plugins/highcharts/renderer/helpers/constants.d.ts +29 -0
- package/build/esm/plugins/highcharts/renderer/helpers/constants.js +32 -0
- package/build/esm/plugins/highcharts/renderer/helpers/constants.js.map +1 -0
- package/build/esm/plugins/highcharts/renderer/helpers/graph.css +82 -0
- package/build/esm/plugins/highcharts/renderer/helpers/graph.d.ts +553 -0
- package/build/esm/plugins/highcharts/renderer/helpers/graph.js +92 -0
- package/build/esm/plugins/highcharts/renderer/helpers/graph.js.map +1 -0
- package/build/esm/plugins/highcharts/renderer/helpers/highcharts/colors.d.ts +2 -0
- package/build/esm/plugins/highcharts/renderer/helpers/highcharts/colors.js +18 -0
- package/build/esm/plugins/highcharts/renderer/helpers/highcharts/colors.js.map +1 -0
- package/build/esm/plugins/highcharts/renderer/helpers/highcharts/highcharts.d.ts +5 -0
- package/build/esm/plugins/highcharts/renderer/helpers/highcharts/highcharts.js +371 -0
- package/build/esm/plugins/highcharts/renderer/helpers/highcharts/highcharts.js.map +1 -0
- package/build/esm/plugins/highcharts/renderer/helpers/highcharts/utils/calcucalteClosestPointManually.d.ts +1 -0
- package/build/esm/plugins/highcharts/renderer/helpers/highcharts/utils/calcucalteClosestPointManually.js +20 -0
- package/build/esm/plugins/highcharts/renderer/helpers/highcharts/utils/calcucalteClosestPointManually.js.map +1 -0
- package/build/esm/plugins/highcharts/renderer/helpers/highcharts/utils/index.d.ts +1 -0
- package/build/esm/plugins/highcharts/renderer/helpers/highcharts/utils/index.js +2 -0
- package/build/esm/plugins/highcharts/renderer/helpers/highcharts/utils/index.js.map +1 -0
- package/build/esm/plugins/highcharts/renderer/helpers/prepare-data.d.ts +1 -0
- package/build/esm/plugins/highcharts/renderer/helpers/prepare-data.js +182 -0
- package/build/esm/plugins/highcharts/renderer/helpers/prepare-data.js.map +1 -0
- package/build/esm/plugins/highcharts/renderer/helpers/tooltip/constants.d.ts +13 -0
- package/build/esm/plugins/highcharts/renderer/helpers/tooltip/constants.js +15 -0
- package/build/esm/plugins/highcharts/renderer/helpers/tooltip/constants.js.map +1 -0
- package/build/esm/plugins/highcharts/renderer/helpers/tooltip/helpers.d.ts +1 -0
- package/build/esm/plugins/highcharts/renderer/helpers/tooltip/helpers.js +6 -0
- package/build/esm/plugins/highcharts/renderer/helpers/tooltip/helpers.js.map +1 -0
- package/build/esm/plugins/highcharts/renderer/helpers/tooltip/index.d.ts +13 -0
- package/build/esm/plugins/highcharts/renderer/helpers/tooltip/index.js +269 -0
- package/build/esm/plugins/highcharts/renderer/helpers/tooltip/index.js.map +1 -0
- package/build/esm/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/index.d.ts +6 -0
- package/build/esm/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/index.js +23 -0
- package/build/esm/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/index.js.map +1 -0
- package/build/esm/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/template-icons/DashDotLineIcon.d.ts +2 -0
- package/build/esm/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/template-icons/DashDotLineIcon.js +21 -0
- package/build/esm/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/template-icons/DashDotLineIcon.js.map +1 -0
- package/build/esm/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/template-icons/DashLineIcon.d.ts +2 -0
- package/build/esm/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/template-icons/DashLineIcon.js +26 -0
- package/build/esm/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/template-icons/DashLineIcon.js.map +1 -0
- package/build/esm/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/template-icons/DotLineIcon.d.ts +2 -0
- package/build/esm/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/template-icons/DotLineIcon.js +21 -0
- package/build/esm/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/template-icons/DotLineIcon.js.map +1 -0
- package/build/esm/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/template-icons/LongDashDotDotLineIcon.d.ts +2 -0
- package/build/esm/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/template-icons/LongDashDotDotLineIcon.js +19 -0
- package/build/esm/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/template-icons/LongDashDotDotLineIcon.js.map +1 -0
- package/build/esm/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/template-icons/LongDashDotLineIcon.d.ts +2 -0
- package/build/esm/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/template-icons/LongDashDotLineIcon.js +19 -0
- package/build/esm/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/template-icons/LongDashDotLineIcon.js.map +1 -0
- package/build/esm/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/template-icons/LongDashLineIcon.d.ts +2 -0
- package/build/esm/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/template-icons/LongDashLineIcon.js +16 -0
- package/build/esm/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/template-icons/LongDashLineIcon.js.map +1 -0
- package/build/esm/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/template-icons/ShortDashDotDotLineIcon.d.ts +2 -0
- package/build/esm/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/template-icons/ShortDashDotDotLineIcon.js +19 -0
- package/build/esm/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/template-icons/ShortDashDotDotLineIcon.js.map +1 -0
- package/build/esm/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/template-icons/ShortDashDotLineIcon.d.ts +2 -0
- package/build/esm/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/template-icons/ShortDashDotLineIcon.js +19 -0
- package/build/esm/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/template-icons/ShortDashDotLineIcon.js.map +1 -0
- package/build/esm/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/template-icons/ShortDashLineIcon.d.ts +2 -0
- package/build/esm/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/template-icons/ShortDashLineIcon.js +19 -0
- package/build/esm/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/template-icons/ShortDashLineIcon.js.map +1 -0
- package/build/esm/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/template-icons/ShortDotLineIcon.d.ts +2 -0
- package/build/esm/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/template-icons/ShortDotLineIcon.js +21 -0
- package/build/esm/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/template-icons/ShortDotLineIcon.js.map +1 -0
- package/build/esm/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/template-icons/SolidLineIcon.d.ts +2 -0
- package/build/esm/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/template-icons/SolidLineIcon.js +14 -0
- package/build/esm/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/template-icons/SolidLineIcon.js.map +1 -0
- package/build/esm/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/template-icons/index.d.ts +11 -0
- package/build/esm/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/template-icons/index.js +12 -0
- package/build/esm/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/template-icons/index.js.map +1 -0
- package/build/esm/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/types.d.ts +4 -0
- package/build/esm/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/types.js +2 -0
- package/build/esm/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/types.js.map +1 -0
- package/build/esm/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/utils.d.ts +7 -0
- package/build/esm/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/utils.js +6 -0
- package/build/esm/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/utils.js.map +1 -0
- package/build/esm/plugins/highcharts/renderer/helpers/tooltip/tooltip.css +313 -0
- package/build/esm/plugins/highcharts/renderer/helpers/tooltip/types.d.ts +88 -0
- package/build/esm/plugins/highcharts/renderer/helpers/tooltip/types.js +2 -0
- package/build/esm/plugins/highcharts/renderer/helpers/tooltip/types.js.map +1 -0
- package/build/esm/plugins/highcharts/renderer/helpers/types.d.ts +22 -0
- package/build/esm/plugins/highcharts/renderer/helpers/types.js +2 -0
- package/build/esm/plugins/highcharts/renderer/helpers/types.js.map +1 -0
- package/build/esm/plugins/highcharts/types/comments.d.ts +51 -0
- package/build/esm/plugins/highcharts/types/comments.js +2 -0
- package/build/esm/plugins/highcharts/types/comments.js.map +1 -0
- package/build/esm/plugins/highcharts/types/highcharts-extends.d.ts +53 -0
- package/build/esm/plugins/highcharts/types/index.d.ts +4 -0
- package/build/esm/plugins/highcharts/types/index.js +2 -0
- package/build/esm/plugins/highcharts/types/index.js.map +1 -0
- package/build/esm/plugins/highcharts/types/lib.js +2 -0
- package/build/esm/plugins/highcharts/types/lib.js.map +1 -0
- package/build/esm/plugins/highcharts/types/misc.d.ts +22 -0
- package/build/esm/plugins/highcharts/types/misc.js +2 -0
- package/build/esm/plugins/highcharts/types/misc.js.map +1 -0
- package/build/esm/plugins/highcharts/types/widget.d.ts +117 -0
- package/build/esm/plugins/highcharts/types/widget.js +2 -0
- package/build/esm/plugins/highcharts/types/widget.js.map +1 -0
- package/build/esm/plugins/indicator/index.d.ts +3 -0
- package/build/esm/plugins/indicator/index.js +9 -0
- package/build/esm/plugins/indicator/index.js.map +1 -0
- package/build/esm/plugins/indicator/renderer/IndicatorItem.d.ts +7 -0
- package/build/esm/plugins/indicator/renderer/IndicatorItem.js +16 -0
- package/build/esm/plugins/indicator/renderer/IndicatorItem.js.map +1 -0
- package/build/esm/plugins/indicator/renderer/IndicatorWidget.css +51 -0
- package/build/esm/plugins/indicator/renderer/IndicatorWidget.d.ts +20 -0
- package/build/esm/plugins/indicator/renderer/IndicatorWidget.js +34 -0
- package/build/esm/plugins/indicator/renderer/IndicatorWidget.js.map +1 -0
- package/build/esm/plugins/indicator/types.d.ts +15 -0
- package/build/esm/plugins/indicator/types.js +2 -0
- package/build/esm/plugins/indicator/types.js.map +1 -0
- package/build/esm/plugins/shared/format-number/format-number.d.ts +5 -0
- package/build/esm/plugins/shared/format-number/format-number.js +91 -0
- package/build/esm/plugins/shared/format-number/format-number.js.map +1 -0
- package/build/esm/plugins/shared/format-number/i18n/en.json +17 -0
- package/build/esm/plugins/shared/format-number/i18n/i18n.d.ts +5 -0
- package/build/esm/plugins/shared/format-number/i18n/i18n.js +9 -0
- package/build/esm/plugins/shared/format-number/i18n/i18n.js.map +1 -0
- package/build/esm/plugins/shared/format-number/i18n/ru.json +17 -0
- package/build/esm/plugins/shared/format-number/types.d.ts +14 -0
- package/build/esm/plugins/shared/format-number/types.js +2 -0
- package/build/esm/plugins/shared/format-number/types.js.map +1 -0
- package/build/esm/plugins/shared/index.d.ts +2 -0
- package/build/esm/plugins/shared/index.js +2 -0
- package/build/esm/plugins/shared/index.js.map +1 -0
- package/build/esm/plugins/yagr/index.d.ts +3 -0
- package/build/esm/plugins/yagr/index.js +7 -0
- package/build/esm/plugins/yagr/index.js.map +1 -0
- package/build/esm/plugins/yagr/renderer/YagrWidget.css +4 -0
- package/build/esm/plugins/yagr/renderer/YagrWidget.d.ts +24 -0
- package/build/esm/plugins/yagr/renderer/YagrWidget.js +78 -0
- package/build/esm/plugins/yagr/renderer/YagrWidget.js.map +1 -0
- package/build/esm/plugins/yagr/renderer/polyfills.js +16 -0
- package/build/esm/plugins/yagr/renderer/polyfills.js.map +1 -0
- package/build/esm/plugins/yagr/renderer/tooltip/helpers/escapeHTML.d.ts +1 -0
- package/build/esm/plugins/yagr/renderer/tooltip/helpers/escapeHTML.js +6 -0
- package/build/esm/plugins/yagr/renderer/tooltip/helpers/escapeHTML.js.map +1 -0
- package/build/esm/plugins/yagr/renderer/tooltip/index.d.ts +1 -0
- package/build/esm/plugins/yagr/renderer/tooltip/index.js +2 -0
- package/build/esm/plugins/yagr/renderer/tooltip/index.js.map +1 -0
- package/build/esm/plugins/yagr/renderer/tooltip/renderTooltip.d.ts +2 -0
- package/build/esm/plugins/yagr/renderer/tooltip/renderTooltip.js +68 -0
- package/build/esm/plugins/yagr/renderer/tooltip/renderTooltip.js.map +1 -0
- package/build/esm/plugins/yagr/renderer/tooltip/tooltip.css +306 -0
- package/build/esm/plugins/yagr/renderer/tooltip/tooltip.d.ts +3 -0
- package/build/esm/plugins/yagr/renderer/tooltip/tooltip.js +237 -0
- package/build/esm/plugins/yagr/renderer/tooltip/tooltip.js.map +1 -0
- package/build/esm/plugins/yagr/renderer/tooltip/types.d.ts +74 -0
- package/build/esm/plugins/yagr/renderer/tooltip/types.js +2 -0
- package/build/esm/plugins/yagr/renderer/tooltip/types.js.map +1 -0
- package/build/esm/plugins/yagr/renderer/useWidgetData.d.ts +6 -0
- package/build/esm/plugins/yagr/renderer/useWidgetData.js +26 -0
- package/build/esm/plugins/yagr/renderer/useWidgetData.js.map +1 -0
- package/build/esm/plugins/yagr/renderer/utils.d.ts +29 -0
- package/build/esm/plugins/yagr/renderer/utils.js +146 -0
- package/build/esm/plugins/yagr/renderer/utils.js.map +1 -0
- package/build/esm/plugins/yagr/types.d.ts +32 -0
- package/build/esm/plugins/yagr/types.js +2 -0
- package/build/esm/plugins/yagr/types.js.map +1 -0
- package/build/esm/types/index.d.ts +75 -0
- package/build/esm/types/index.js +2 -0
- package/build/esm/types/index.js.map +1 -0
- package/build/esm/types/misc.d.ts +4 -0
- package/build/esm/types/misc.js +2 -0
- package/build/esm/types/misc.js.map +1 -0
- package/build/esm/types/widget.d.ts +41 -0
- package/build/esm/types/widget.js +2 -0
- package/build/esm/types/widget.js.map +1 -0
- package/build/esm/utils/cn.d.ts +3 -0
- package/build/esm/utils/cn.js +5 -0
- package/build/esm/utils/cn.js.map +1 -0
- package/build/esm/utils/common.d.ts +2 -0
- package/build/esm/utils/common.js +9 -0
- package/build/esm/utils/common.js.map +1 -0
- package/build/esm/utils/getErrorMessage.d.ts +2 -0
- package/build/esm/utils/getErrorMessage.js +6 -0
- package/build/esm/utils/getErrorMessage.js.map +1 -0
- package/build/esm/utils/index.d.ts +4 -0
- package/build/esm/utils/index.js +5 -0
- package/build/esm/utils/index.js.map +1 -0
- package/build/esm/utils/merge.d.ts +19 -0
- package/build/esm/utils/merge.js +149 -0
- package/build/esm/utils/merge.js.map +1 -0
- package/build/esm/utils/misc.d.ts +2 -0
- package/build/esm/utils/misc.js +8 -0
- package/build/esm/utils/misc.js.map +1 -0
- package/build/esm/utils/performance.d.ts +5 -0
- package/build/esm/utils/performance.js +21 -0
- package/build/esm/utils/performance.js.map +1 -0
- package/build/esm/utils/react.d.ts +1 -0
- package/build/esm/utils/react.js +5 -0
- package/build/esm/utils/react.js.map +1 -0
- package/build/esm/utils/throttle.d.ts +13 -0
- package/build/esm/utils/throttle.js +44 -0
- package/build/esm/utils/throttle.js.map +1 -0
- package/package.json +85 -25
- package/build/components/ChartKit.css +0 -32
- package/build/components/ChartKit.d.ts +0 -11
- package/build/components/ChartKit.js +0 -40
- package/build/components/ErrorBoundary/ErrorBoundary.d.ts +0 -23
- package/build/components/ErrorBoundary/ErrorBoundary.js +0 -51
- package/build/components/Loader/Loader.d.ts +0 -9
- package/build/components/Loader/Loader.js +0 -16
- package/build/components/SplitPane/Pane.d.ts +0 -14
- package/build/components/SplitPane/Pane.js +0 -26
- package/build/components/SplitPane/Resizer.d.ts +0 -18
- package/build/components/SplitPane/Resizer.js +0 -26
- package/build/components/SplitPane/SplitPane.d.ts +0 -60
- package/build/components/SplitPane/SplitPane.js +0 -243
- package/build/components/SplitPane/StyledSplitPane.css +0 -52
- package/build/components/SplitPane/StyledSplitPane.d.ts +0 -9
- package/build/components/SplitPane/StyledSplitPane.js +0 -32
- package/build/components/SplitPane/constants.js +0 -4
- package/build/components/SplitPane/index.d.ts +0 -8
- package/build/components/SplitPane/index.js +0 -18
- package/build/components/SplitPane/types.d.ts +0 -2
- package/build/components/SplitTooltip/SplitTooltip.d.ts +0 -63
- package/build/components/SplitTooltip/SplitTooltip.js +0 -129
- package/build/components/SplitTooltip/index.d.ts +0 -2
- package/build/components/SplitTooltip/index.js +0 -1
- package/build/constants/common.js +0 -2
- package/build/constants/index.d.ts +0 -3
- package/build/constants/index.js +0 -3
- package/build/constants/misc.js +0 -19
- package/build/constants/widget-data.js +0 -47
- package/build/hooks/index.d.ts +0 -1
- package/build/hooks/index.js +0 -1
- package/build/hooks/misc.js +0 -8
- package/build/i18n/index.d.ts +0 -7
- package/build/i18n/index.js +0 -10
- package/build/index.d.ts +0 -8
- package/build/index.js +0 -6
- package/build/libs/chartkit-error/chartkit-error.js +0 -21
- package/build/libs/index.d.ts +0 -3
- package/build/libs/index.js +0 -2
- package/build/libs/settings/eventEmitter.js +0 -25
- package/build/libs/settings/mergeSettingStrategy.js +0 -31
- package/build/libs/settings/settings.d.ts +0 -22
- package/build/libs/settings/settings.js +0 -41
- package/build/plugins/gravity-charts/index.d.ts +0 -4
- package/build/plugins/gravity-charts/index.js +0 -7
- package/build/plugins/gravity-charts/renderer/GravityChartsWidget.d.ts +0 -22
- package/build/plugins/gravity-charts/renderer/GravityChartsWidget.js +0 -70
- package/build/plugins/gravity-charts/renderer/utils.d.ts +0 -2
- package/build/plugins/gravity-charts/renderer/utils.js +0 -18
- package/build/plugins/gravity-charts/renderer/withSplitPane/TooltipContent.js +0 -13
- package/build/plugins/gravity-charts/renderer/withSplitPane/useViewportSplitTooltipLayout.d.ts +0 -3
- package/build/plugins/gravity-charts/renderer/withSplitPane/useViewportSplitTooltipLayout.js +0 -29
- package/build/plugins/gravity-charts/renderer/withSplitPane/withSplitPane.js +0 -61
- package/build/plugins/gravity-charts/types.d.ts +0 -5
- package/build/plugins/gravity-charts/types.js +0 -1
- package/build/plugins/highcharts/index.d.ts +0 -4
- package/build/plugins/highcharts/index.js +0 -7
- package/build/plugins/highcharts/renderer/HighchartsWidget.d.ts +0 -32
- package/build/plugins/highcharts/renderer/HighchartsWidget.js +0 -6
- package/build/plugins/highcharts/renderer/components/HighchartsComponent.d.ts +0 -579
- package/build/plugins/highcharts/renderer/components/HighchartsComponent.js +0 -155
- package/build/plugins/highcharts/renderer/components/HighchartsReact.d.ts +0 -20
- package/build/plugins/highcharts/renderer/components/HighchartsReact.js +0 -74
- package/build/plugins/highcharts/renderer/components/useElementSize.js +0 -50
- package/build/plugins/highcharts/renderer/components/withSplitPane/withSplitPane.d.ts +0 -18
- package/build/plugins/highcharts/renderer/components/withSplitPane/withSplitPane.js +0 -217
- package/build/plugins/highcharts/renderer/helpers/add-holidays.d.ts +0 -3
- package/build/plugins/highcharts/renderer/helpers/add-holidays.js +0 -43
- package/build/plugins/highcharts/renderer/helpers/comments/drawing.js +0 -571
- package/build/plugins/highcharts/renderer/helpers/config/config.js +0 -1515
- package/build/plugins/highcharts/renderer/helpers/config/handleLegendItemClick.js +0 -75
- package/build/plugins/highcharts/renderer/helpers/config/options.js +0 -350
- package/build/plugins/highcharts/renderer/helpers/config/types.js +0 -1
- package/build/plugins/highcharts/renderer/helpers/config/utils/addShowInNavigatorToSeries.d.ts +0 -10
- package/build/plugins/highcharts/renderer/helpers/config/utils/addShowInNavigatorToSeries.js +0 -42
- package/build/plugins/highcharts/renderer/helpers/config/utils/buildNavigatorFallback.js +0 -17
- package/build/plugins/highcharts/renderer/helpers/config/utils/calculatePrecision.js +0 -20
- package/build/plugins/highcharts/renderer/helpers/config/utils/concatStrings.js +0 -1
- package/build/plugins/highcharts/renderer/helpers/config/utils/getChartKitFormattedValue.d.ts +0 -2
- package/build/plugins/highcharts/renderer/helpers/config/utils/getChartKitFormattedValue.js +0 -15
- package/build/plugins/highcharts/renderer/helpers/config/utils/getFormatOptionsFromLine.d.ts +0 -3
- package/build/plugins/highcharts/renderer/helpers/config/utils/getFormatOptionsFromLine.js +0 -15
- package/build/plugins/highcharts/renderer/helpers/config/utils/getXAxisThresholdValue.js +0 -20
- package/build/plugins/highcharts/renderer/helpers/config/utils/index.d.ts +0 -78
- package/build/plugins/highcharts/renderer/helpers/config/utils/index.js +0 -21
- package/build/plugins/highcharts/renderer/helpers/config/utils/isNavigatorSeries.d.ts +0 -2
- package/build/plugins/highcharts/renderer/helpers/config/utils/isNavigatorSeries.js +0 -3
- package/build/plugins/highcharts/renderer/helpers/config/utils/isSafari.js +0 -12
- package/build/plugins/highcharts/renderer/helpers/config/utils/localStorage.js +0 -23
- package/build/plugins/highcharts/renderer/helpers/config/utils/mergeArrayWithObject.js +0 -10
- package/build/plugins/highcharts/renderer/helpers/config/utils/numberFormat.d.ts +0 -2
- package/build/plugins/highcharts/renderer/helpers/config/utils/numberFormat.js +0 -19
- package/build/plugins/highcharts/renderer/helpers/config/utils/setNavigatorDefaultPeriod.d.ts +0 -13
- package/build/plugins/highcharts/renderer/helpers/config/utils/setNavigatorDefaultPeriod.js +0 -27
- package/build/plugins/highcharts/renderer/helpers/config/utils/tooltip.d.ts +0 -7
- package/build/plugins/highcharts/renderer/helpers/config/utils/tooltip.js +0 -25
- package/build/plugins/highcharts/renderer/helpers/constants.js +0 -31
- package/build/plugins/highcharts/renderer/helpers/graph.css +0 -98
- package/build/plugins/highcharts/renderer/helpers/graph.d.ts +0 -553
- package/build/plugins/highcharts/renderer/helpers/graph.js +0 -88
- package/build/plugins/highcharts/renderer/helpers/highcharts/colors.js +0 -17
- package/build/plugins/highcharts/renderer/helpers/highcharts/highcharts.js +0 -370
- package/build/plugins/highcharts/renderer/helpers/highcharts/utils/calcucalteClosestPointManually.js +0 -19
- package/build/plugins/highcharts/renderer/helpers/highcharts/utils/index.d.ts +0 -1
- package/build/plugins/highcharts/renderer/helpers/highcharts/utils/index.js +0 -1
- package/build/plugins/highcharts/renderer/helpers/prepare-data.js +0 -181
- package/build/plugins/highcharts/renderer/helpers/tooltip/constants.js +0 -14
- package/build/plugins/highcharts/renderer/helpers/tooltip/helpers.js +0 -5
- package/build/plugins/highcharts/renderer/helpers/tooltip/index.d.ts +0 -13
- package/build/plugins/highcharts/renderer/helpers/tooltip/index.js +0 -263
- package/build/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/index.d.ts +0 -6
- package/build/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/index.js +0 -22
- package/build/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/template-icons/DashDotLineIcon.d.ts +0 -2
- package/build/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/template-icons/DashDotLineIcon.js +0 -20
- package/build/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/template-icons/DashLineIcon.d.ts +0 -2
- package/build/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/template-icons/DashLineIcon.js +0 -25
- package/build/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/template-icons/DotLineIcon.d.ts +0 -2
- package/build/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/template-icons/DotLineIcon.js +0 -20
- package/build/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/template-icons/LongDashDotDotLineIcon.d.ts +0 -2
- package/build/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/template-icons/LongDashDotDotLineIcon.js +0 -18
- package/build/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/template-icons/LongDashDotLineIcon.d.ts +0 -2
- package/build/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/template-icons/LongDashDotLineIcon.js +0 -18
- package/build/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/template-icons/LongDashLineIcon.d.ts +0 -2
- package/build/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/template-icons/LongDashLineIcon.js +0 -15
- package/build/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/template-icons/ShortDashDotDotLineIcon.d.ts +0 -2
- package/build/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/template-icons/ShortDashDotDotLineIcon.js +0 -18
- package/build/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/template-icons/ShortDashDotLineIcon.d.ts +0 -2
- package/build/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/template-icons/ShortDashDotLineIcon.js +0 -18
- package/build/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/template-icons/ShortDashLineIcon.d.ts +0 -2
- package/build/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/template-icons/ShortDashLineIcon.js +0 -18
- package/build/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/template-icons/ShortDotLineIcon.d.ts +0 -2
- package/build/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/template-icons/ShortDotLineIcon.js +0 -20
- package/build/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/template-icons/SolidLineIcon.d.ts +0 -2
- package/build/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/template-icons/SolidLineIcon.js +0 -13
- package/build/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/template-icons/index.d.ts +0 -11
- package/build/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/template-icons/index.js +0 -11
- package/build/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/types.js +0 -1
- package/build/plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/utils.js +0 -5
- package/build/plugins/highcharts/renderer/helpers/tooltip/tooltip.css +0 -370
- package/build/plugins/highcharts/renderer/helpers/tooltip/types.d.ts +0 -88
- package/build/plugins/highcharts/renderer/helpers/tooltip/types.js +0 -1
- package/build/plugins/highcharts/renderer/helpers/types.d.ts +0 -22
- package/build/plugins/highcharts/renderer/helpers/types.js +0 -1
- package/build/plugins/highcharts/types/comments.js +0 -1
- package/build/plugins/highcharts/types/index.d.ts +0 -4
- package/build/plugins/highcharts/types/index.js +0 -1
- package/build/plugins/highcharts/types/misc.d.ts +0 -22
- package/build/plugins/highcharts/types/misc.js +0 -1
- package/build/plugins/highcharts/types/widget.d.ts +0 -117
- package/build/plugins/highcharts/types/widget.js +0 -1
- package/build/plugins/indicator/index.d.ts +0 -3
- package/build/plugins/indicator/index.js +0 -6
- package/build/plugins/indicator/renderer/IndicatorItem.d.ts +0 -7
- package/build/plugins/indicator/renderer/IndicatorItem.js +0 -15
- package/build/plugins/indicator/renderer/IndicatorWidget.css +0 -62
- package/build/plugins/indicator/renderer/IndicatorWidget.d.ts +0 -21
- package/build/plugins/indicator/renderer/IndicatorWidget.js +0 -34
- package/build/plugins/indicator/types.js +0 -1
- package/build/plugins/shared/format-number/format-number.d.ts +0 -5
- package/build/plugins/shared/format-number/format-number.js +0 -87
- package/build/plugins/shared/format-number/i18n/i18n.js +0 -8
- package/build/plugins/shared/format-number/types.js +0 -1
- package/build/plugins/shared/index.d.ts +0 -2
- package/build/plugins/shared/index.js +0 -1
- package/build/plugins/yagr/index.d.ts +0 -3
- package/build/plugins/yagr/index.js +0 -6
- package/build/plugins/yagr/renderer/YagrWidget.d.ts +0 -25
- package/build/plugins/yagr/renderer/YagrWidget.js +0 -79
- package/build/plugins/yagr/renderer/polyfills.js +0 -15
- package/build/plugins/yagr/renderer/tooltip/helpers/escapeHTML.js +0 -5
- package/build/plugins/yagr/renderer/tooltip/index.d.ts +0 -1
- package/build/plugins/yagr/renderer/tooltip/index.js +0 -1
- package/build/plugins/yagr/renderer/tooltip/renderTooltip.d.ts +0 -2
- package/build/plugins/yagr/renderer/tooltip/renderTooltip.js +0 -60
- package/build/plugins/yagr/renderer/tooltip/tooltip.css +0 -371
- package/build/plugins/yagr/renderer/tooltip/tooltip.d.ts +0 -3
- package/build/plugins/yagr/renderer/tooltip/tooltip.js +0 -230
- package/build/plugins/yagr/renderer/tooltip/types.js +0 -1
- package/build/plugins/yagr/renderer/useWidgetData.d.ts +0 -6
- package/build/plugins/yagr/renderer/useWidgetData.js +0 -26
- package/build/plugins/yagr/renderer/utils.d.ts +0 -29
- package/build/plugins/yagr/renderer/utils.js +0 -141
- package/build/plugins/yagr/types.d.ts +0 -32
- package/build/plugins/yagr/types.js +0 -1
- package/build/types/index.d.ts +0 -75
- package/build/types/index.js +0 -1
- package/build/types/misc.js +0 -1
- package/build/types/widget.d.ts +0 -41
- package/build/types/widget.js +0 -1
- package/build/utils/cn.js +0 -4
- package/build/utils/common.js +0 -8
- package/build/utils/getErrorMessage.d.ts +0 -2
- package/build/utils/getErrorMessage.js +0 -5
- package/build/utils/index.d.ts +0 -4
- package/build/utils/index.js +0 -4
- package/build/utils/misc.d.ts +0 -2
- package/build/utils/misc.js +0 -7
- package/build/utils/performance.js +0 -20
- package/build/utils/react.js +0 -4
- /package/build/{components → cjs/components}/Loader/Loader.css +0 -0
- /package/build/{components → cjs/components}/SplitPane/constants.d.ts +0 -0
- /package/build/{constants → cjs/constants}/common.d.ts +0 -0
- /package/build/{constants → cjs/constants}/misc.d.ts +0 -0
- /package/build/{constants → cjs/constants}/widget-data.d.ts +0 -0
- /package/build/{hooks → cjs/hooks}/misc.d.ts +0 -0
- /package/build/{i18n → cjs/i18n}/keysets/en.json +0 -0
- /package/build/{i18n → cjs/i18n}/keysets/ru.json +0 -0
- /package/build/{libs → cjs/libs}/chartkit-error/chartkit-error.d.ts +0 -0
- /package/build/{libs → cjs/libs}/settings/eventEmitter.d.ts +0 -0
- /package/build/{libs → cjs/libs}/settings/mergeSettingStrategy.d.ts +0 -0
- /package/build/{plugins → cjs/plugins}/gravity-charts/renderer/withSplitPane/TooltipContent.d.ts +0 -0
- /package/build/{plugins → cjs/plugins}/gravity-charts/renderer/withSplitPane/withSplitPane.d.ts +0 -0
- /package/build/{plugins → cjs/plugins}/highcharts/renderer/components/HighchartsComponent.css +0 -0
- /package/build/{plugins → cjs/plugins}/highcharts/renderer/components/useElementSize.d.ts +0 -0
- /package/build/{plugins → cjs/plugins}/highcharts/renderer/components/withSplitPane/WithSplitPane.css +0 -0
- /package/build/{plugins → cjs/plugins}/highcharts/renderer/helpers/comments/drawing.d.ts +0 -0
- /package/build/{plugins → cjs/plugins}/highcharts/renderer/helpers/config/config.d.ts +0 -0
- /package/build/{plugins → cjs/plugins}/highcharts/renderer/helpers/config/handleLegendItemClick.d.ts +0 -0
- /package/build/{plugins → cjs/plugins}/highcharts/renderer/helpers/config/options.d.ts +0 -0
- /package/build/{plugins → cjs/plugins}/highcharts/renderer/helpers/config/types.d.ts +0 -0
- /package/build/{plugins → cjs/plugins}/highcharts/renderer/helpers/config/utils/buildNavigatorFallback.d.ts +0 -0
- /package/build/{plugins → cjs/plugins}/highcharts/renderer/helpers/config/utils/calculatePrecision.d.ts +0 -0
- /package/build/{plugins → cjs/plugins}/highcharts/renderer/helpers/config/utils/concatStrings.d.ts +0 -0
- /package/build/{plugins → cjs/plugins}/highcharts/renderer/helpers/config/utils/getXAxisThresholdValue.d.ts +0 -0
- /package/build/{plugins → cjs/plugins}/highcharts/renderer/helpers/config/utils/isSafari.d.ts +0 -0
- /package/build/{plugins → cjs/plugins}/highcharts/renderer/helpers/config/utils/localStorage.d.ts +0 -0
- /package/build/{plugins → cjs/plugins}/highcharts/renderer/helpers/config/utils/mergeArrayWithObject.d.ts +0 -0
- /package/build/{plugins → cjs/plugins}/highcharts/renderer/helpers/constants.d.ts +0 -0
- /package/build/{plugins → cjs/plugins}/highcharts/renderer/helpers/highcharts/colors.d.ts +0 -0
- /package/build/{plugins → cjs/plugins}/highcharts/renderer/helpers/highcharts/highcharts.d.ts +0 -0
- /package/build/{plugins → cjs/plugins}/highcharts/renderer/helpers/highcharts/utils/calcucalteClosestPointManually.d.ts +0 -0
- /package/build/{plugins → cjs/plugins}/highcharts/renderer/helpers/prepare-data.d.ts +0 -0
- /package/build/{plugins → cjs/plugins}/highcharts/renderer/helpers/tooltip/constants.d.ts +0 -0
- /package/build/{plugins → cjs/plugins}/highcharts/renderer/helpers/tooltip/helpers.d.ts +0 -0
- /package/build/{plugins → cjs/plugins}/highcharts/renderer/helpers/tooltip/render-shape-icon/types.d.ts +0 -0
- /package/build/{plugins → cjs/plugins}/highcharts/renderer/helpers/tooltip/render-shape-icon/utils.d.ts +0 -0
- /package/build/{plugins → cjs/plugins}/highcharts/types/comments.d.ts +0 -0
- /package/build/{plugins → cjs/plugins}/highcharts/types/highcharts-extends.d.ts +0 -0
- /package/build/{plugins → cjs/plugins}/highcharts/types/lib.d.ts +0 -0
- /package/build/{plugins → cjs/plugins}/indicator/types.d.ts +0 -0
- /package/build/{plugins → cjs/plugins}/shared/format-number/i18n/en.json +0 -0
- /package/build/{plugins → cjs/plugins}/shared/format-number/i18n/i18n.d.ts +0 -0
- /package/build/{plugins → cjs/plugins}/shared/format-number/i18n/ru.json +0 -0
- /package/build/{plugins → cjs/plugins}/shared/format-number/types.d.ts +0 -0
- /package/build/{plugins → cjs/plugins}/yagr/renderer/YagrWidget.css +0 -0
- /package/build/{components/SplitPane/types.js → cjs/plugins/yagr/renderer/polyfills.d.ts} +0 -0
- /package/build/{plugins → cjs/plugins}/yagr/renderer/tooltip/helpers/escapeHTML.d.ts +0 -0
- /package/build/{plugins → cjs/plugins}/yagr/renderer/tooltip/types.d.ts +0 -0
- /package/build/{types → cjs/types}/misc.d.ts +0 -0
- /package/build/{utils → cjs/utils}/cn.d.ts +0 -0
- /package/build/{utils → cjs/utils}/common.d.ts +0 -0
- /package/build/{utils → cjs/utils}/performance.d.ts +0 -0
- /package/build/{utils → cjs/utils}/react.d.ts +0 -0
- /package/build/{plugins/highcharts/types/lib.js → esm/plugins/highcharts/types/lib.d.ts} +0 -0
- /package/build/{plugins → esm/plugins}/yagr/renderer/polyfills.d.ts +0 -0
|
@@ -0,0 +1,376 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* eslint-disable complexity */
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.initHighcharts = initHighcharts;
|
|
5
|
+
exports.initHighchartsMap = initHighchartsMap;
|
|
6
|
+
exports.initHighchartsLangOptions = initHighchartsLangOptions;
|
|
7
|
+
const tslib_1 = require("tslib");
|
|
8
|
+
const get_1 = tslib_1.__importDefault(require("es-toolkit/compat/get"));
|
|
9
|
+
const highcharts_1 = tslib_1.__importDefault(require("highcharts"));
|
|
10
|
+
const i18n_1 = require("../../../../../i18n/index.js");
|
|
11
|
+
const config_1 = require("../config/config.js");
|
|
12
|
+
const tooltip_1 = require("../tooltip/index.js");
|
|
13
|
+
const colors_1 = tslib_1.__importDefault(require("./colors.js"));
|
|
14
|
+
const utils_1 = require("./utils/index.js");
|
|
15
|
+
function formatQ(timestamp) {
|
|
16
|
+
const date = new Date(timestamp);
|
|
17
|
+
const month = date.getUTCMonth() + 1;
|
|
18
|
+
return 'Q' + Math.ceil(month / 3);
|
|
19
|
+
}
|
|
20
|
+
const REST_SECTION_HEIGHT = 25;
|
|
21
|
+
highcharts_1.default.dateFormats = {
|
|
22
|
+
Q: formatQ,
|
|
23
|
+
q: formatQ,
|
|
24
|
+
quarter: formatQ,
|
|
25
|
+
};
|
|
26
|
+
Math.easeInQuint = function (pos) {
|
|
27
|
+
return Math.pow(pos, 5);
|
|
28
|
+
};
|
|
29
|
+
highcharts_1.default.setOptions({
|
|
30
|
+
colors: colors_1.default,
|
|
31
|
+
credits: {
|
|
32
|
+
enabled: false,
|
|
33
|
+
},
|
|
34
|
+
chart: {
|
|
35
|
+
animation: false,
|
|
36
|
+
displayErrors: false,
|
|
37
|
+
resetZoomButton: {
|
|
38
|
+
relativeTo: 'chart',
|
|
39
|
+
theme: {
|
|
40
|
+
r: 6,
|
|
41
|
+
width: 12,
|
|
42
|
+
height: 12,
|
|
43
|
+
'text-align': 'center',
|
|
44
|
+
opacity: '0.8',
|
|
45
|
+
cursor: 'pointer',
|
|
46
|
+
style: {
|
|
47
|
+
fontSize: '20px',
|
|
48
|
+
},
|
|
49
|
+
},
|
|
50
|
+
position: {
|
|
51
|
+
y: 30,
|
|
52
|
+
},
|
|
53
|
+
},
|
|
54
|
+
},
|
|
55
|
+
title: {
|
|
56
|
+
text: '',
|
|
57
|
+
style: {
|
|
58
|
+
fontSize: '15px',
|
|
59
|
+
fontWeight: 'bold',
|
|
60
|
+
},
|
|
61
|
+
},
|
|
62
|
+
legend: {
|
|
63
|
+
enabled: true,
|
|
64
|
+
itemStyle: {
|
|
65
|
+
fontWeight: 'normal',
|
|
66
|
+
},
|
|
67
|
+
navigation: {
|
|
68
|
+
animation: false,
|
|
69
|
+
},
|
|
70
|
+
},
|
|
71
|
+
tooltip: {
|
|
72
|
+
borderRadius: '0px',
|
|
73
|
+
borderWidth: 0,
|
|
74
|
+
useHTML: true,
|
|
75
|
+
// Non-zero delay fixes tooltip hiding (set top: -9999px)
|
|
76
|
+
hideDelay: 1,
|
|
77
|
+
animation: false,
|
|
78
|
+
shadow: false,
|
|
79
|
+
},
|
|
80
|
+
xAxis: {
|
|
81
|
+
gridLineColor: '#dbdbdb',
|
|
82
|
+
gridLineWidth: 1,
|
|
83
|
+
lineColor: '#dbdbdb',
|
|
84
|
+
},
|
|
85
|
+
yAxis: {
|
|
86
|
+
title: {
|
|
87
|
+
text: null,
|
|
88
|
+
},
|
|
89
|
+
},
|
|
90
|
+
plotOptions: {
|
|
91
|
+
series: {
|
|
92
|
+
animation: false,
|
|
93
|
+
shadow: false,
|
|
94
|
+
connectNulls: false,
|
|
95
|
+
dataGrouping: {
|
|
96
|
+
enabled: false,
|
|
97
|
+
},
|
|
98
|
+
states: {
|
|
99
|
+
normal: {
|
|
100
|
+
animation: false,
|
|
101
|
+
},
|
|
102
|
+
hover: {
|
|
103
|
+
animation: false,
|
|
104
|
+
},
|
|
105
|
+
inactive: {
|
|
106
|
+
animation: false,
|
|
107
|
+
opacity: 0.7,
|
|
108
|
+
},
|
|
109
|
+
},
|
|
110
|
+
marker: {
|
|
111
|
+
states: {
|
|
112
|
+
hover: {
|
|
113
|
+
animation: false,
|
|
114
|
+
},
|
|
115
|
+
normal: {
|
|
116
|
+
animation: false,
|
|
117
|
+
},
|
|
118
|
+
},
|
|
119
|
+
},
|
|
120
|
+
},
|
|
121
|
+
},
|
|
122
|
+
});
|
|
123
|
+
function initHighchartsLangOptions() {
|
|
124
|
+
highcharts_1.default.setOptions({
|
|
125
|
+
lang: {
|
|
126
|
+
resetZoom: '⟲',
|
|
127
|
+
resetZoomTitle: (0, i18n_1.i18n)('highcharts', 'reset-zoom-title'),
|
|
128
|
+
months: [
|
|
129
|
+
(0, i18n_1.i18n)('highcharts', 'January'),
|
|
130
|
+
(0, i18n_1.i18n)('highcharts', 'February'),
|
|
131
|
+
(0, i18n_1.i18n)('highcharts', 'March'),
|
|
132
|
+
(0, i18n_1.i18n)('highcharts', 'April'),
|
|
133
|
+
(0, i18n_1.i18n)('highcharts', 'May'),
|
|
134
|
+
(0, i18n_1.i18n)('highcharts', 'June'),
|
|
135
|
+
(0, i18n_1.i18n)('highcharts', 'July'),
|
|
136
|
+
(0, i18n_1.i18n)('highcharts', 'August'),
|
|
137
|
+
(0, i18n_1.i18n)('highcharts', 'September'),
|
|
138
|
+
(0, i18n_1.i18n)('highcharts', 'October'),
|
|
139
|
+
(0, i18n_1.i18n)('highcharts', 'November'),
|
|
140
|
+
(0, i18n_1.i18n)('highcharts', 'December'),
|
|
141
|
+
],
|
|
142
|
+
shortMonths: [
|
|
143
|
+
(0, i18n_1.i18n)('highcharts', 'Jan'),
|
|
144
|
+
(0, i18n_1.i18n)('highcharts', 'Feb'),
|
|
145
|
+
(0, i18n_1.i18n)('highcharts', 'Mar'),
|
|
146
|
+
(0, i18n_1.i18n)('highcharts', 'Apr'),
|
|
147
|
+
(0, i18n_1.i18n)('highcharts', 'May'),
|
|
148
|
+
(0, i18n_1.i18n)('highcharts', 'Jun'),
|
|
149
|
+
(0, i18n_1.i18n)('highcharts', 'Jul'),
|
|
150
|
+
(0, i18n_1.i18n)('highcharts', 'Aug'),
|
|
151
|
+
(0, i18n_1.i18n)('highcharts', 'Sep'),
|
|
152
|
+
(0, i18n_1.i18n)('highcharts', 'Oct'),
|
|
153
|
+
(0, i18n_1.i18n)('highcharts', 'Nov'),
|
|
154
|
+
(0, i18n_1.i18n)('highcharts', 'Dec'),
|
|
155
|
+
],
|
|
156
|
+
weekdays: [
|
|
157
|
+
(0, i18n_1.i18n)('highcharts', 'Sun'),
|
|
158
|
+
(0, i18n_1.i18n)('highcharts', 'Mon'),
|
|
159
|
+
(0, i18n_1.i18n)('highcharts', 'Tue'),
|
|
160
|
+
(0, i18n_1.i18n)('highcharts', 'Wed'),
|
|
161
|
+
(0, i18n_1.i18n)('highcharts', 'Thu'),
|
|
162
|
+
(0, i18n_1.i18n)('highcharts', 'Fri'),
|
|
163
|
+
(0, i18n_1.i18n)('highcharts', 'Sat'),
|
|
164
|
+
],
|
|
165
|
+
decimalPoint: (0, i18n_1.i18n)('highcharts', 'decimal-point'),
|
|
166
|
+
thousandsSep: (0, i18n_1.i18n)('highcharts', 'thousands-sep'),
|
|
167
|
+
numericSymbols: ['K', 'M', 'B', 'T', 'P', 'E'],
|
|
168
|
+
},
|
|
169
|
+
});
|
|
170
|
+
}
|
|
171
|
+
// Backport of the Highcharts 9 fix (we are pinned to v8): when any ancestor scrolls, refresh
|
|
172
|
+
// the cached `pointer.chartPosition`, otherwise the tooltip drifts by the scroll offset.
|
|
173
|
+
// Recalculated, not deleted: `onDocumentMouseMove` relies on its presence.
|
|
174
|
+
// `mouseover` is handled because the browser may fire it before `scroll`.
|
|
175
|
+
function updateChartPositions() {
|
|
176
|
+
highcharts_1.default.charts.forEach((chart) => {
|
|
177
|
+
const pointer = chart && chart.pointer;
|
|
178
|
+
if (pointer && pointer.chartPosition) {
|
|
179
|
+
pointer.chartPosition = undefined;
|
|
180
|
+
pointer.getChartPosition();
|
|
181
|
+
}
|
|
182
|
+
});
|
|
183
|
+
}
|
|
184
|
+
function initHighcharts({ isMobile }) {
|
|
185
|
+
initHighchartsLangOptions();
|
|
186
|
+
// https://github.com/highcharts/highcharts/issues/11494
|
|
187
|
+
(function (H) {
|
|
188
|
+
H.wrap(H.Tooltip.prototype, 'getLabel', function (proceed, ...rest) {
|
|
189
|
+
const t = proceed.apply(this, rest);
|
|
190
|
+
if (this.container) {
|
|
191
|
+
H.css(this.container, {
|
|
192
|
+
zIndex: 100001,
|
|
193
|
+
});
|
|
194
|
+
}
|
|
195
|
+
return t;
|
|
196
|
+
});
|
|
197
|
+
})(highcharts_1.default);
|
|
198
|
+
window.document.addEventListener('scroll', updateChartPositions, true);
|
|
199
|
+
window.document.addEventListener('mouseover', updateChartPositions, true);
|
|
200
|
+
highcharts_1.default.wrap(highcharts_1.default.Chart.prototype, 'redraw', function (proceed, ...rest) {
|
|
201
|
+
if (this.tooltip.fixed) {
|
|
202
|
+
(0, config_1.hideFixedTooltip)(this.tooltip, isMobile);
|
|
203
|
+
}
|
|
204
|
+
proceed.apply(this, rest);
|
|
205
|
+
if (this.afterRedrawCallback) {
|
|
206
|
+
this.afterRedrawCallback();
|
|
207
|
+
delete this.afterRedrawCallback;
|
|
208
|
+
}
|
|
209
|
+
});
|
|
210
|
+
highcharts_1.default.wrap(highcharts_1.default.Chart.prototype, 'destroy', function (proceed, ...rest) {
|
|
211
|
+
if (this.tooltip.clickOutsideHandler) {
|
|
212
|
+
window.document.removeEventListener('click', this.tooltip.clickOutsideHandler);
|
|
213
|
+
}
|
|
214
|
+
if (this.tooltip.fixed) {
|
|
215
|
+
(0, config_1.hideFixedTooltip)(this.tooltip, isMobile);
|
|
216
|
+
}
|
|
217
|
+
proceed.apply(this, ...rest);
|
|
218
|
+
});
|
|
219
|
+
highcharts_1.default.wrap(highcharts_1.default.Point.prototype, 'setState', function (proceed, ...rest) {
|
|
220
|
+
if (!this.series.chart.tooltip.fixed) {
|
|
221
|
+
proceed.apply(this, rest);
|
|
222
|
+
}
|
|
223
|
+
});
|
|
224
|
+
highcharts_1.default.wrap(highcharts_1.default.Tooltip.prototype, 'init', function (proceed, ...rest) {
|
|
225
|
+
this.orientationChangeHandler = () => {
|
|
226
|
+
if (isMobile) {
|
|
227
|
+
const resizeHandler = () => {
|
|
228
|
+
this.update({
|
|
229
|
+
positioner: (0, config_1.getTooltipPositioner)(isMobile),
|
|
230
|
+
});
|
|
231
|
+
if (this.chart.hoverPoints) {
|
|
232
|
+
this.chart.hoverPoints.forEach((point) => {
|
|
233
|
+
point.setState('');
|
|
234
|
+
});
|
|
235
|
+
delete this.chart.hoverPoints;
|
|
236
|
+
}
|
|
237
|
+
if (this.chart.hoverPoint) {
|
|
238
|
+
this.chart.hoverPoint.setState('');
|
|
239
|
+
delete this.chart.hoverPoint;
|
|
240
|
+
}
|
|
241
|
+
window.removeEventListener('resize', resizeHandler);
|
|
242
|
+
};
|
|
243
|
+
window.addEventListener('resize', resizeHandler);
|
|
244
|
+
}
|
|
245
|
+
};
|
|
246
|
+
window.addEventListener('orientationchange', this.orientationChangeHandler);
|
|
247
|
+
proceed.apply(this, rest);
|
|
248
|
+
});
|
|
249
|
+
highcharts_1.default.wrap(highcharts_1.default.Tooltip.prototype, 'destroy', function (proceed, ...rest) {
|
|
250
|
+
window.removeEventListener('orientationchange', this.orientationChangeHandler);
|
|
251
|
+
window.removeEventListener('scroll', this.scrollHandler);
|
|
252
|
+
proceed.apply(this, rest);
|
|
253
|
+
});
|
|
254
|
+
highcharts_1.default.wrap(highcharts_1.default.Tooltip.prototype, 'hide', function (proceed, ...rest) {
|
|
255
|
+
if (this.lastVisibleRowIndex) {
|
|
256
|
+
this.lastVisibleRowIndex = undefined;
|
|
257
|
+
}
|
|
258
|
+
if (this.scrollHandler && !this.fixed) {
|
|
259
|
+
window.removeEventListener('scroll', this.scrollHandler);
|
|
260
|
+
this.scrollHandler = null;
|
|
261
|
+
this.chart.topPosition = null;
|
|
262
|
+
}
|
|
263
|
+
if (!this.fixed) {
|
|
264
|
+
proceed.apply(this, rest);
|
|
265
|
+
}
|
|
266
|
+
});
|
|
267
|
+
highcharts_1.default.wrap(highcharts_1.default.Tooltip.prototype, 'hideFixedTooltip', function () {
|
|
268
|
+
if (this.fixed) {
|
|
269
|
+
(0, config_1.hideFixedTooltip)(this, isMobile);
|
|
270
|
+
}
|
|
271
|
+
});
|
|
272
|
+
highcharts_1.default.wrap(highcharts_1.default.Tooltip.prototype, 'refresh', function (proceed, points, ...rest) {
|
|
273
|
+
const isNonBodyScroll = (0, get_1.default)(this.chart, 'userOptions._config.nonBodyScroll');
|
|
274
|
+
const maxTooltipLines = (0, get_1.default)(this.chart, 'userOptions._config.maxTooltipLines');
|
|
275
|
+
const chartType = this.chart.options.chart.type;
|
|
276
|
+
if (isNonBodyScroll && !this.scrollHandler) {
|
|
277
|
+
this.scrollHandler = config_1.handleScroll.bind(this);
|
|
278
|
+
this.chart.topPosition = this.chart.container.getBoundingClientRect().top;
|
|
279
|
+
window.addEventListener('scroll', this.scrollHandler, true);
|
|
280
|
+
}
|
|
281
|
+
if (this.chart.pointsForInitialRefresh) {
|
|
282
|
+
delete this.chart.pointsForInitialRefresh;
|
|
283
|
+
}
|
|
284
|
+
if (chartType === 'map' && !this.fixed) {
|
|
285
|
+
proceed.apply(this, [points, ...rest]);
|
|
286
|
+
}
|
|
287
|
+
const isFixation = rest[1];
|
|
288
|
+
if ((!this.fixed || isFixation) && points) {
|
|
289
|
+
if (isFixation) {
|
|
290
|
+
this.lastVisibleRowIndex = undefined;
|
|
291
|
+
}
|
|
292
|
+
proceed.apply(this, [points, ...rest]);
|
|
293
|
+
if (chartType === 'timeline') {
|
|
294
|
+
return false;
|
|
295
|
+
}
|
|
296
|
+
if (this.container) {
|
|
297
|
+
(0, config_1.synchronizeTooltipTablesCellsWidth)(this.container, isMobile);
|
|
298
|
+
}
|
|
299
|
+
if (isFixation) {
|
|
300
|
+
const rowNames = this.container.querySelectorAll(`.${tooltip_1.TOOLTIP_ROW_NAME_CLASS_NAME}`);
|
|
301
|
+
for (let i = 0; i < rowNames.length; i++) {
|
|
302
|
+
const rowNameNode = rowNames[i];
|
|
303
|
+
if (rowNameNode.scrollWidth > rowNameNode.clientWidth) {
|
|
304
|
+
const rowNameNodeText = rowNameNode.innerText;
|
|
305
|
+
rowNameNode.setAttribute('title', rowNameNodeText);
|
|
306
|
+
}
|
|
307
|
+
}
|
|
308
|
+
return false;
|
|
309
|
+
}
|
|
310
|
+
}
|
|
311
|
+
if (this.container && !this.fixed && !this.lastVisibleRowIndex) {
|
|
312
|
+
const tooltipNode = this.container.querySelector(`.${tooltip_1.TOOLTIP_CONTAINER_CLASS_NAME}`);
|
|
313
|
+
if (!tooltipNode) {
|
|
314
|
+
return false;
|
|
315
|
+
}
|
|
316
|
+
const hasScroll = tooltipNode.scrollHeight > tooltipNode.clientHeight;
|
|
317
|
+
const moreThanMaxLines = maxTooltipLines && points.length > maxTooltipLines;
|
|
318
|
+
if (hasScroll || moreThanMaxLines) {
|
|
319
|
+
const footerNode = tooltipNode.querySelector(`.${tooltip_1.TOOLTIP_FOOTER_CLASS_NAME}`);
|
|
320
|
+
const { top, height } = tooltipNode.getBoundingClientRect();
|
|
321
|
+
const footerNodeHeight = footerNode ? footerNode.clientHeight : 0;
|
|
322
|
+
const bottomPadding = parseFloat(window.getComputedStyle(tooltipNode, null).getPropertyValue('padding-bottom'), 10);
|
|
323
|
+
const containerBottomEdge = top + height;
|
|
324
|
+
const rows = tooltipNode.querySelectorAll(`.${tooltip_1.TOOLTIP_LIST_CLASS_NAME} .${tooltip_1.TOOLTIP_ROW_CLASS_NAME}`);
|
|
325
|
+
let lastVisibleRowIndex;
|
|
326
|
+
const selectedSeriesIndex = this.chart.hoverPoints.indexOf(this.chart.hoverPoint);
|
|
327
|
+
const rowForSelectedSeriesHeight = selectedSeriesIndex >= 0
|
|
328
|
+
? rows[selectedSeriesIndex].getBoundingClientRect().height
|
|
329
|
+
: 0;
|
|
330
|
+
if (maxTooltipLines && rows.length > maxTooltipLines) {
|
|
331
|
+
lastVisibleRowIndex = maxTooltipLines - 1;
|
|
332
|
+
}
|
|
333
|
+
else {
|
|
334
|
+
for (let i = rows.length - 1; i > 0; i--) {
|
|
335
|
+
const row = rows[i];
|
|
336
|
+
const { top: rowTop, height: rowHeight } = row.getBoundingClientRect();
|
|
337
|
+
const rowBottomEdge = rowTop + rowHeight;
|
|
338
|
+
const containerBottomEdgeWithPadding = containerBottomEdge - bottomPadding;
|
|
339
|
+
const margin = REST_SECTION_HEIGHT + footerNodeHeight + rowForSelectedSeriesHeight;
|
|
340
|
+
const rowBottomEdgeWithMargin = rowBottomEdge + margin;
|
|
341
|
+
if (rowBottomEdgeWithMargin <= containerBottomEdgeWithPadding) {
|
|
342
|
+
lastVisibleRowIndex = i;
|
|
343
|
+
break;
|
|
344
|
+
}
|
|
345
|
+
}
|
|
346
|
+
}
|
|
347
|
+
if (lastVisibleRowIndex) {
|
|
348
|
+
this.lastVisibleRowIndex = lastVisibleRowIndex;
|
|
349
|
+
this.refresh(points, ...rest);
|
|
350
|
+
}
|
|
351
|
+
}
|
|
352
|
+
}
|
|
353
|
+
});
|
|
354
|
+
highcharts_1.default.wrap(highcharts_1.default.Axis.prototype, 'getClosest', function (proceed, ...rest) {
|
|
355
|
+
const userOptions = this.userOptions || {};
|
|
356
|
+
if (userOptions.calcClosestPointManually) {
|
|
357
|
+
return utils_1.calculateClosestPointManually.apply(this);
|
|
358
|
+
}
|
|
359
|
+
else {
|
|
360
|
+
return proceed.apply(this, rest);
|
|
361
|
+
}
|
|
362
|
+
});
|
|
363
|
+
}
|
|
364
|
+
function initHighchartsMap() {
|
|
365
|
+
highcharts_1.default.wrap(highcharts_1.default.ColorAxis.prototype, 'drawCrosshair', function (proceed, ...rest) {
|
|
366
|
+
if (!this.chart.tooltip.fixed) {
|
|
367
|
+
proceed.apply(this, rest);
|
|
368
|
+
}
|
|
369
|
+
});
|
|
370
|
+
highcharts_1.default.wrap(highcharts_1.default.ColorAxis.prototype, 'hideCrosshair', function (proceed, ...rest) {
|
|
371
|
+
if (!this.chart.tooltip.fixed) {
|
|
372
|
+
proceed.apply(this, rest);
|
|
373
|
+
}
|
|
374
|
+
});
|
|
375
|
+
}
|
|
376
|
+
//# sourceMappingURL=highcharts.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"highcharts.js","sourceRoot":"../../../../../../../src","sources":["plugins/highcharts/renderer/helpers/highcharts/highcharts.js"],"names":[],"mappings":";AAAA,+BAA+B;;AAycvB,wCAAc;AAAE,8CAAiB;AAAE,8DAAyB;;AAvcpE,wEAAwC;AACxC,oEAAoC;AAEpC,uDAAyC;AACzC,gDAK0B;AAC1B,iDAMoB;A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AAI,CAAC,CAAC;QACrD,CAAC;aAAM,CAAC;YACJ,OAAO,OAAO,CAAC,KAAK,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;QACrC,CAAC;IACL,CAAC,CAAC,CAAC;AACP,CAAC;AAED,SAAS,iBAAiB;IACtB,oBAAU,CAAC,IAAI,CAAC,oBAAU,CAAC,SAAS,CAAC,SAAS,EAAE,eAAe,EAAE,UAAU,OAAO,EAAE,GAAG,IAAI;QACvF,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,EAAE,CAAC;YAC5B,OAAO,CAAC,KAAK,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;QAC9B,CAAC;IACL,CAAC,CAAC,CAAC;IAEH,oBAAU,CAAC,IAAI,CAAC,oBAAU,CAAC,SAAS,CAAC,SAAS,EAAE,eAAe,EAAE,UAAU,OAAO,EAAE,GAAG,IAAI;QACvF,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,EAAE,CAAC;YAC5B,OAAO,CAAC,KAAK,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;QAC9B,CAAC;IACL,CAAC,CAAC,CAAC;AACP,CAAC","sourcesContent":["/* eslint-disable complexity */\n\nimport get from 'es-toolkit/compat/get';\nimport Highcharts from 'highcharts';\n\nimport {i18n} from '../../../../../i18n';\nimport {\n getTooltipPositioner,\n handleScroll,\n hideFixedTooltip,\n synchronizeTooltipTablesCellsWidth,\n} from '../config/config';\nimport {\n TOOLTIP_CONTAINER_CLASS_NAME,\n TOOLTIP_FOOTER_CLASS_NAME,\n TOOLTIP_LIST_CLASS_NAME,\n TOOLTIP_ROW_CLASS_NAME,\n TOOLTIP_ROW_NAME_CLASS_NAME,\n} from '../tooltip';\n\nimport colors from './colors';\nimport {calculateClosestPointManually} from './utils';\n\nfunction formatQ(timestamp) {\n const date = new Date(timestamp);\n const month = date.getUTCMonth() + 1;\n return 'Q' + Math.ceil(month / 3);\n}\n\nconst REST_SECTION_HEIGHT = 25;\n\nHighcharts.dateFormats = {\n Q: formatQ,\n q: formatQ,\n quarter: formatQ,\n};\n\nMath.easeInQuint = function (pos) {\n return Math.pow(pos, 5);\n};\n\nHighcharts.setOptions({\n colors: colors,\n credits: {\n enabled: false,\n },\n chart: {\n animation: false,\n displayErrors: false,\n resetZoomButton: {\n relativeTo: 'chart',\n theme: {\n r: 6,\n width: 12,\n height: 12,\n 'text-align': 'center',\n opacity: '0.8',\n cursor: 'pointer',\n style: {\n fontSize: '20px',\n },\n },\n position: {\n y: 30,\n },\n },\n },\n title: {\n text: '',\n style: {\n fontSize: '15px',\n fontWeight: 'bold',\n },\n },\n legend: {\n enabled: true,\n itemStyle: {\n fontWeight: 'normal',\n },\n navigation: {\n animation: false,\n },\n },\n tooltip: {\n borderRadius: '0px',\n borderWidth: 0,\n useHTML: true,\n // Non-zero delay fixes tooltip hiding (set top: -9999px)\n hideDelay: 1,\n animation: false,\n shadow: false,\n },\n xAxis: {\n gridLineColor: '#dbdbdb',\n gridLineWidth: 1,\n lineColor: '#dbdbdb',\n },\n yAxis: {\n title: {\n text: null,\n },\n },\n plotOptions: {\n series: {\n animation: false,\n shadow: false,\n connectNulls: false,\n dataGrouping: {\n enabled: false,\n },\n states: {\n normal: {\n animation: false,\n },\n hover: {\n animation: false,\n },\n inactive: {\n animation: false,\n opacity: 0.7,\n },\n },\n marker: {\n states: {\n hover: {\n animation: false,\n },\n normal: {\n animation: false,\n },\n },\n },\n },\n },\n});\n\nfunction initHighchartsLangOptions() {\n Highcharts.setOptions({\n lang: {\n resetZoom: '⟲',\n resetZoomTitle: i18n('highcharts', 'reset-zoom-title'),\n months: [\n i18n('highcharts', 'January'),\n i18n('highcharts', 'February'),\n i18n('highcharts', 'March'),\n i18n('highcharts', 'April'),\n i18n('highcharts', 'May'),\n i18n('highcharts', 'June'),\n i18n('highcharts', 'July'),\n i18n('highcharts', 'August'),\n i18n('highcharts', 'September'),\n i18n('highcharts', 'October'),\n i18n('highcharts', 'November'),\n i18n('highcharts', 'December'),\n ],\n shortMonths: [\n i18n('highcharts', 'Jan'),\n i18n('highcharts', 'Feb'),\n i18n('highcharts', 'Mar'),\n i18n('highcharts', 'Apr'),\n i18n('highcharts', 'May'),\n i18n('highcharts', 'Jun'),\n i18n('highcharts', 'Jul'),\n i18n('highcharts', 'Aug'),\n i18n('highcharts', 'Sep'),\n i18n('highcharts', 'Oct'),\n i18n('highcharts', 'Nov'),\n i18n('highcharts', 'Dec'),\n ],\n weekdays: [\n i18n('highcharts', 'Sun'),\n i18n('highcharts', 'Mon'),\n i18n('highcharts', 'Tue'),\n i18n('highcharts', 'Wed'),\n i18n('highcharts', 'Thu'),\n i18n('highcharts', 'Fri'),\n i18n('highcharts', 'Sat'),\n ],\n\n decimalPoint: i18n('highcharts', 'decimal-point'),\n thousandsSep: i18n('highcharts', 'thousands-sep'),\n\n numericSymbols: ['K', 'M', 'B', 'T', 'P', 'E'],\n },\n });\n}\n\n// Backport of the Highcharts 9 fix (we are pinned to v8): when any ancestor scrolls, refresh\n// the cached `pointer.chartPosition`, otherwise the tooltip drifts by the scroll offset.\n// Recalculated, not deleted: `onDocumentMouseMove` relies on its presence.\n// `mouseover` is handled because the browser may fire it before `scroll`.\nfunction updateChartPositions() {\n Highcharts.charts.forEach((chart) => {\n const pointer = chart && chart.pointer;\n\n if (pointer && pointer.chartPosition) {\n pointer.chartPosition = undefined;\n pointer.getChartPosition();\n }\n });\n}\n\nfunction initHighcharts({isMobile}) {\n initHighchartsLangOptions();\n\n // https://github.com/highcharts/highcharts/issues/11494\n (function (H) {\n H.wrap(H.Tooltip.prototype, 'getLabel', function (proceed, ...rest) {\n const t = proceed.apply(this, rest);\n\n if (this.container) {\n H.css(this.container, {\n zIndex: 100001,\n });\n }\n\n return t;\n });\n })(Highcharts);\n\n window.document.addEventListener('scroll', updateChartPositions, true);\n window.document.addEventListener('mouseover', updateChartPositions, true);\n\n Highcharts.wrap(Highcharts.Chart.prototype, 'redraw', function (proceed, ...rest) {\n if (this.tooltip.fixed) {\n hideFixedTooltip(this.tooltip, isMobile);\n }\n\n proceed.apply(this, rest);\n\n if (this.afterRedrawCallback) {\n this.afterRedrawCallback();\n delete this.afterRedrawCallback;\n }\n });\n\n Highcharts.wrap(Highcharts.Chart.prototype, 'destroy', function (proceed, ...rest) {\n if (this.tooltip.clickOutsideHandler) {\n window.document.removeEventListener('click', this.tooltip.clickOutsideHandler);\n }\n\n if (this.tooltip.fixed) {\n hideFixedTooltip(this.tooltip, isMobile);\n }\n\n proceed.apply(this, ...rest);\n });\n\n Highcharts.wrap(Highcharts.Point.prototype, 'setState', function (proceed, ...rest) {\n if (!this.series.chart.tooltip.fixed) {\n proceed.apply(this, rest);\n }\n });\n\n Highcharts.wrap(Highcharts.Tooltip.prototype, 'init', function (proceed, ...rest) {\n this.orientationChangeHandler = () => {\n if (isMobile) {\n const resizeHandler = () => {\n this.update({\n positioner: getTooltipPositioner(isMobile),\n });\n\n if (this.chart.hoverPoints) {\n this.chart.hoverPoints.forEach((point) => {\n point.setState('');\n });\n\n delete this.chart.hoverPoints;\n }\n\n if (this.chart.hoverPoint) {\n this.chart.hoverPoint.setState('');\n delete this.chart.hoverPoint;\n }\n\n window.removeEventListener('resize', resizeHandler);\n };\n\n window.addEventListener('resize', resizeHandler);\n }\n };\n\n window.addEventListener('orientationchange', this.orientationChangeHandler);\n\n proceed.apply(this, rest);\n });\n\n Highcharts.wrap(Highcharts.Tooltip.prototype, 'destroy', function (proceed, ...rest) {\n window.removeEventListener('orientationchange', this.orientationChangeHandler);\n window.removeEventListener('scroll', this.scrollHandler);\n\n proceed.apply(this, rest);\n });\n\n Highcharts.wrap(Highcharts.Tooltip.prototype, 'hide', function (proceed, ...rest) {\n if (this.lastVisibleRowIndex) {\n this.lastVisibleRowIndex = undefined;\n }\n\n if (this.scrollHandler && !this.fixed) {\n window.removeEventListener('scroll', this.scrollHandler);\n this.scrollHandler = null;\n this.chart.topPosition = null;\n }\n\n if (!this.fixed) {\n proceed.apply(this, rest);\n }\n });\n\n Highcharts.wrap(Highcharts.Tooltip.prototype, 'hideFixedTooltip', function () {\n if (this.fixed) {\n hideFixedTooltip(this, isMobile);\n }\n });\n\n Highcharts.wrap(Highcharts.Tooltip.prototype, 'refresh', function (proceed, points, ...rest) {\n const isNonBodyScroll = get(this.chart, 'userOptions._config.nonBodyScroll');\n const maxTooltipLines = get(this.chart, 'userOptions._config.maxTooltipLines');\n const chartType = this.chart.options.chart.type;\n\n if (isNonBodyScroll && !this.scrollHandler) {\n this.scrollHandler = handleScroll.bind(this);\n\n this.chart.topPosition = this.chart.container.getBoundingClientRect().top;\n window.addEventListener('scroll', this.scrollHandler, true);\n }\n\n if (this.chart.pointsForInitialRefresh) {\n delete this.chart.pointsForInitialRefresh;\n }\n\n if (chartType === 'map' && !this.fixed) {\n proceed.apply(this, [points, ...rest]);\n }\n\n const isFixation = rest[1];\n\n if ((!this.fixed || isFixation) && points) {\n if (isFixation) {\n this.lastVisibleRowIndex = undefined;\n }\n\n proceed.apply(this, [points, ...rest]);\n\n if (chartType === 'timeline') {\n return false;\n }\n\n if (this.container) {\n synchronizeTooltipTablesCellsWidth(this.container, isMobile);\n }\n\n if (isFixation) {\n const rowNames = this.container.querySelectorAll(`.${TOOLTIP_ROW_NAME_CLASS_NAME}`);\n\n for (let i = 0; i < rowNames.length; i++) {\n const rowNameNode = rowNames[i];\n\n if (rowNameNode.scrollWidth > rowNameNode.clientWidth) {\n const rowNameNodeText = rowNameNode.innerText;\n rowNameNode.setAttribute('title', rowNameNodeText);\n }\n }\n\n return false;\n }\n }\n\n if (this.container && !this.fixed && !this.lastVisibleRowIndex) {\n const tooltipNode = this.container.querySelector(`.${TOOLTIP_CONTAINER_CLASS_NAME}`);\n\n if (!tooltipNode) {\n return false;\n }\n\n const hasScroll = tooltipNode.scrollHeight > tooltipNode.clientHeight;\n const moreThanMaxLines = maxTooltipLines && points.length > maxTooltipLines;\n\n if (hasScroll || moreThanMaxLines) {\n const footerNode = tooltipNode.querySelector(`.${TOOLTIP_FOOTER_CLASS_NAME}`);\n const {top, height} = tooltipNode.getBoundingClientRect();\n\n const footerNodeHeight = footerNode ? footerNode.clientHeight : 0;\n\n const bottomPadding = parseFloat(\n window.getComputedStyle(tooltipNode, null).getPropertyValue('padding-bottom'),\n 10,\n );\n\n const containerBottomEdge = top + height;\n const rows = tooltipNode.querySelectorAll(\n `.${TOOLTIP_LIST_CLASS_NAME} .${TOOLTIP_ROW_CLASS_NAME}`,\n );\n\n let lastVisibleRowIndex;\n\n const selectedSeriesIndex = this.chart.hoverPoints.indexOf(this.chart.hoverPoint);\n\n const rowForSelectedSeriesHeight =\n selectedSeriesIndex >= 0\n ? rows[selectedSeriesIndex].getBoundingClientRect().height\n : 0;\n\n if (maxTooltipLines && rows.length > maxTooltipLines) {\n lastVisibleRowIndex = maxTooltipLines - 1;\n } else {\n for (let i = rows.length - 1; i > 0; i--) {\n const row = rows[i];\n const {top: rowTop, height: rowHeight} = row.getBoundingClientRect();\n const rowBottomEdge = rowTop + rowHeight;\n const containerBottomEdgeWithPadding = containerBottomEdge - bottomPadding;\n const margin =\n REST_SECTION_HEIGHT + footerNodeHeight + rowForSelectedSeriesHeight;\n const rowBottomEdgeWithMargin = rowBottomEdge + margin;\n\n if (rowBottomEdgeWithMargin <= containerBottomEdgeWithPadding) {\n lastVisibleRowIndex = i;\n\n break;\n }\n }\n }\n\n if (lastVisibleRowIndex) {\n this.lastVisibleRowIndex = lastVisibleRowIndex;\n\n this.refresh(points, ...rest);\n }\n }\n }\n });\n\n Highcharts.wrap(Highcharts.Axis.prototype, 'getClosest', function (proceed, ...rest) {\n const userOptions = this.userOptions || {};\n if (userOptions.calcClosestPointManually) {\n return calculateClosestPointManually.apply(this);\n } else {\n return proceed.apply(this, rest);\n }\n });\n}\n\nfunction initHighchartsMap() {\n Highcharts.wrap(Highcharts.ColorAxis.prototype, 'drawCrosshair', function (proceed, ...rest) {\n if (!this.chart.tooltip.fixed) {\n proceed.apply(this, rest);\n }\n });\n\n Highcharts.wrap(Highcharts.ColorAxis.prototype, 'hideCrosshair', function (proceed, ...rest) {\n if (!this.chart.tooltip.fixed) {\n proceed.apply(this, rest);\n }\n });\n}\n\nexport {initHighcharts, initHighchartsMap, initHighchartsLangOptions};\n"]}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.calculateClosestPointManually = calculateClosestPointManually;
|
|
4
|
+
function calculateClosestPointManually() {
|
|
5
|
+
const series = this.series;
|
|
6
|
+
const xValues = series.reduce((values, currSeries) => {
|
|
7
|
+
return values.concat(currSeries.processedXData);
|
|
8
|
+
}, []);
|
|
9
|
+
xValues.sort((a, b) => b - a);
|
|
10
|
+
let closestPointRange;
|
|
11
|
+
xValues.forEach((xValue, index) => {
|
|
12
|
+
const nextXValue = xValues[index + 1];
|
|
13
|
+
if (nextXValue) {
|
|
14
|
+
const distance = xValue - nextXValue;
|
|
15
|
+
if (distance > 0 &&
|
|
16
|
+
(typeof closestPointRange === 'undefined' || distance < closestPointRange)) {
|
|
17
|
+
closestPointRange = distance;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
});
|
|
21
|
+
return closestPointRange;
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=calcucalteClosestPointManually.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"calcucalteClosestPointManually.js","sourceRoot":"../../../../../../../../src","sources":["plugins/highcharts/renderer/helpers/highcharts/utils/calcucalteClosestPointManually.ts"],"names":[],"mappings":";;AAAA,sEA2BC;AA3BD,SAAgB,6BAA6B;IACzC,MAAM,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC;IAE3B,MAAM,OAAO,GAAa,MAAM,CAAC,MAAM,CAAC,CAAC,MAAgB,EAAE,UAAe,EAAE,EAAE;QAC1E,OAAO,MAAM,CAAC,MAAM,CAAC,UAAU,CAAC,cAAc,CAAC,CAAC;IACpD,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;IAE9B,IAAI,iBAAqC,CAAC;IAE1C,OAAO,CAAC,OAAO,CAAC,CAAC,MAAc,EAAE,KAAa,EAAE,EAAE;QAC9C,MAAM,UAAU,GAAG,OAAO,CAAC,KAAK,GAAG,CAAC,CAAC,CAAC;QAEtC,IAAI,UAAU,EAAE,CAAC;YACb,MAAM,QAAQ,GAAG,MAAM,GAAG,UAAU,CAAC;YAErC,IACI,QAAQ,GAAG,CAAC;gBACZ,CAAC,OAAO,iBAAiB,KAAK,WAAW,IAAI,QAAQ,GAAG,iBAAiB,CAAC,EAC5E,CAAC;gBACC,iBAAiB,GAAG,QAAQ,CAAC;YACjC,CAAC;QACL,CAAC;IACL,CAAC,CAAC,CAAC;IAEH,OAAO,iBAAiB,CAAC;AAC7B,CAAC","sourcesContent":["export function calculateClosestPointManually(this: any): number | undefined {\n const series = this.series;\n\n const xValues: number[] = series.reduce((values: number[], currSeries: any) => {\n return values.concat(currSeries.processedXData);\n }, []);\n\n xValues.sort((a, b) => b - a);\n\n let closestPointRange: number | undefined;\n\n xValues.forEach((xValue: number, index: number) => {\n const nextXValue = xValues[index + 1];\n\n if (nextXValue) {\n const distance = xValue - nextXValue;\n\n if (\n distance > 0 &&\n (typeof closestPointRange === 'undefined' || distance < closestPointRange)\n ) {\n closestPointRange = distance;\n }\n }\n });\n\n return closestPointRange;\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { calculateClosestPointManually } from "./calcucalteClosestPointManually.js";
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.calculateClosestPointManually = void 0;
|
|
4
|
+
var calcucalteClosestPointManually_1 = require("./calcucalteClosestPointManually.js");
|
|
5
|
+
Object.defineProperty(exports, "calculateClosestPointManually", { enumerable: true, get: function () { return calcucalteClosestPointManually_1.calculateClosestPointManually; } });
|
|
6
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"../../../../../../../../src","sources":["plugins/highcharts/renderer/helpers/highcharts/utils/index.ts"],"names":[],"mappings":";;;AAAA,sFAA+E;AAAvE,+IAAA,6BAA6B,OAAA","sourcesContent":["export {calculateClosestPointManually} from './calcucalteClosestPointManually';\n"]}
|
|
@@ -0,0 +1,186 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.prepareData = prepareData;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const date_utils_1 = require("@gravity-ui/date-utils");
|
|
6
|
+
const min_1 = tslib_1.__importDefault(require("es-toolkit/compat/min"));
|
|
7
|
+
const i18n_1 = require("../../../../i18n/index.js");
|
|
8
|
+
const libs_1 = require("../../../../libs/index.js");
|
|
9
|
+
const constants_1 = require("./constants.js");
|
|
10
|
+
function prepareValue(value, firstValue, options) {
|
|
11
|
+
if (value === null) {
|
|
12
|
+
return null;
|
|
13
|
+
}
|
|
14
|
+
if (options.normalizeDiv) {
|
|
15
|
+
return value / (firstValue || 1);
|
|
16
|
+
}
|
|
17
|
+
if (options.normalizeSub) {
|
|
18
|
+
return value - firstValue;
|
|
19
|
+
}
|
|
20
|
+
return value;
|
|
21
|
+
}
|
|
22
|
+
function sortByLastValue(a, b) {
|
|
23
|
+
if (a._lastValue < b._lastValue) {
|
|
24
|
+
return -1;
|
|
25
|
+
}
|
|
26
|
+
if (a._lastValue > b._lastValue) {
|
|
27
|
+
return 1;
|
|
28
|
+
}
|
|
29
|
+
return 0;
|
|
30
|
+
}
|
|
31
|
+
function sortByAlphabet(a, b) {
|
|
32
|
+
if (a.name < b.name) {
|
|
33
|
+
return -1;
|
|
34
|
+
}
|
|
35
|
+
if (a.name > b.name) {
|
|
36
|
+
return 1;
|
|
37
|
+
}
|
|
38
|
+
return 0;
|
|
39
|
+
}
|
|
40
|
+
const HIGHCHARTS_SCALE = {
|
|
41
|
+
s: 'second',
|
|
42
|
+
h: 'hour',
|
|
43
|
+
d: 'day',
|
|
44
|
+
w: 'week',
|
|
45
|
+
m: 'month',
|
|
46
|
+
q: 'quarter',
|
|
47
|
+
y: 'year',
|
|
48
|
+
};
|
|
49
|
+
function computeXTickScale(range) {
|
|
50
|
+
const timeUnits = {
|
|
51
|
+
s: 1000,
|
|
52
|
+
i: 60000,
|
|
53
|
+
h: 3600000,
|
|
54
|
+
d: 86400000,
|
|
55
|
+
w: 604800000,
|
|
56
|
+
m: 2419200000,
|
|
57
|
+
q: 7344000000,
|
|
58
|
+
y: 31449600000,
|
|
59
|
+
};
|
|
60
|
+
let previous = 's';
|
|
61
|
+
// eslint-disable-next-line guard-for-in
|
|
62
|
+
for (const current in timeUnits) {
|
|
63
|
+
if (timeUnits[current] > range) {
|
|
64
|
+
return previous;
|
|
65
|
+
}
|
|
66
|
+
previous = current;
|
|
67
|
+
}
|
|
68
|
+
return previous;
|
|
69
|
+
}
|
|
70
|
+
function removeHolidays(data, options, holidays) {
|
|
71
|
+
const timeline = [];
|
|
72
|
+
const graphsData = [];
|
|
73
|
+
data.graphs.forEach((graph, i) => {
|
|
74
|
+
graphsData[i] = [];
|
|
75
|
+
});
|
|
76
|
+
data.categories_ms.forEach((ts, i) => {
|
|
77
|
+
const key = (0, date_utils_1.dateTime)({ input: ts }).format('YYYYMMDD');
|
|
78
|
+
const region = (options.region && options.region.toLowerCase()) || 'tot';
|
|
79
|
+
const holiday = holidays.holiday[region][key] || holidays.weekend[region][key];
|
|
80
|
+
if (!holiday) {
|
|
81
|
+
timeline.push(ts);
|
|
82
|
+
data.graphs.forEach((graph, j) => graphsData[j].push(graph.data[i]));
|
|
83
|
+
}
|
|
84
|
+
});
|
|
85
|
+
data.categories_ms = timeline;
|
|
86
|
+
data.graphs.forEach((graph, i) => {
|
|
87
|
+
graph.data = graphsData[i];
|
|
88
|
+
});
|
|
89
|
+
}
|
|
90
|
+
// eslint-disable-next-line complexity
|
|
91
|
+
function prepareData(data, options, holidays) {
|
|
92
|
+
const limit = options.linesLimit || constants_1.DEFAULT_LINES_LIMIT;
|
|
93
|
+
if (!data ||
|
|
94
|
+
(typeof data === 'object' && !Object.keys(data).length) ||
|
|
95
|
+
(data.graphs &&
|
|
96
|
+
!(data.graphs.length && data.graphs.some((graph) => graph.data && graph.data.length))) ||
|
|
97
|
+
(Array.isArray(data) && !data.length)) {
|
|
98
|
+
throw new libs_1.ChartKitError({
|
|
99
|
+
code: libs_1.CHARTKIT_ERROR_CODE.NO_DATA,
|
|
100
|
+
message: (0, i18n_1.i18n)('error', 'label_no-data'),
|
|
101
|
+
});
|
|
102
|
+
}
|
|
103
|
+
if (data.graphs) {
|
|
104
|
+
if (data.graphs.length > limit && !options.withoutLineLimit) {
|
|
105
|
+
throw new libs_1.ChartKitError({ code: libs_1.CHARTKIT_ERROR_CODE.TOO_MANY_LINES });
|
|
106
|
+
}
|
|
107
|
+
data.graphs.forEach((graph) => {
|
|
108
|
+
graph.name = graph.name || graph.title;
|
|
109
|
+
});
|
|
110
|
+
let min = false;
|
|
111
|
+
let max = false;
|
|
112
|
+
if (data.categories_ms) {
|
|
113
|
+
options.highchartsScale = HIGHCHARTS_SCALE[options.scale];
|
|
114
|
+
const closestPointRange = (0, min_1.default)(data.categories_ms.map((timestamp, index) => timestamp - data.categories_ms[index - 1]));
|
|
115
|
+
options.scale = options.scale || computeXTickScale(closestPointRange);
|
|
116
|
+
if (options.scale && options.scale.length > 1) {
|
|
117
|
+
const match = options.scale.match(/^[sihyqmwd]/g);
|
|
118
|
+
options.scale = match ? match[0] : null;
|
|
119
|
+
}
|
|
120
|
+
data.graphs
|
|
121
|
+
.filter(({ data }) => Boolean(data))
|
|
122
|
+
.forEach((graph, index) => {
|
|
123
|
+
let result = [];
|
|
124
|
+
const aloneOrHasNull = graph.data.length === 1 || graph.data.indexOf(null) !== -1;
|
|
125
|
+
const firstValue = graph.data[0];
|
|
126
|
+
if (aloneOrHasNull) {
|
|
127
|
+
result = graph.data.map((val, pos) => {
|
|
128
|
+
if (val !== null && typeof val === 'object') {
|
|
129
|
+
return val;
|
|
130
|
+
}
|
|
131
|
+
const preparedVal = prepareValue(val, firstValue, options);
|
|
132
|
+
const currentPoint = {
|
|
133
|
+
x: data.categories_ms[pos],
|
|
134
|
+
y: preparedVal,
|
|
135
|
+
};
|
|
136
|
+
if (preparedVal !== null) {
|
|
137
|
+
min = Math.min(min, preparedVal);
|
|
138
|
+
max = Math.max(max, preparedVal);
|
|
139
|
+
}
|
|
140
|
+
return currentPoint;
|
|
141
|
+
});
|
|
142
|
+
}
|
|
143
|
+
else {
|
|
144
|
+
result = graph.data.map((val, pos) => {
|
|
145
|
+
if (val !== null && typeof val === 'object') {
|
|
146
|
+
return val;
|
|
147
|
+
}
|
|
148
|
+
const preparedVal = prepareValue(val, firstValue, options);
|
|
149
|
+
min = Math.min(min, preparedVal);
|
|
150
|
+
max = Math.max(max, preparedVal);
|
|
151
|
+
return [data.categories_ms[pos], preparedVal];
|
|
152
|
+
});
|
|
153
|
+
}
|
|
154
|
+
data.graphs[index].data = result;
|
|
155
|
+
});
|
|
156
|
+
delete data.categories;
|
|
157
|
+
}
|
|
158
|
+
if (data.categories) {
|
|
159
|
+
delete data.categories_ms;
|
|
160
|
+
}
|
|
161
|
+
if (options.orderType === 'byLastValue') {
|
|
162
|
+
data.graphs.forEach((graphItem) => {
|
|
163
|
+
graphItem._lastValue =
|
|
164
|
+
(graphItem.data &&
|
|
165
|
+
graphItem.data[graphItem.data.length - 1] &&
|
|
166
|
+
(graphItem.data[graphItem.data.length - 1][1] ||
|
|
167
|
+
graphItem.data[graphItem.data.length - 1].y)) ||
|
|
168
|
+
0;
|
|
169
|
+
});
|
|
170
|
+
data.graphs.sort(sortByLastValue);
|
|
171
|
+
}
|
|
172
|
+
if (options.orderType === 'alphabet') {
|
|
173
|
+
data.graphs.sort(sortByAlphabet);
|
|
174
|
+
}
|
|
175
|
+
if ((options.orderType === 'byLastValue' || options.orderType === 'alphabet') &&
|
|
176
|
+
options.orderSort === 'fromBottom') {
|
|
177
|
+
data.graphs.reverse();
|
|
178
|
+
}
|
|
179
|
+
if (holidays && options.hideHolidays) {
|
|
180
|
+
removeHolidays(data, options, holidays);
|
|
181
|
+
}
|
|
182
|
+
options.max = max;
|
|
183
|
+
options.min = min;
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
//# sourceMappingURL=prepare-data.js.map
|