@gravity-ui/chartkit 8.11.0 → 9.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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.d.ts +8 -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 -42
- 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 -59
- package/build/components/SplitPane/SplitPane.js +0 -235
- 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 -49
- package/build/components/SplitTooltip/SplitTooltip.js +0 -122
- 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 -45
- 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.d.ts +0 -4
- package/build/plugins/gravity-charts/renderer/withSplitPane/withSplitPane.js +0 -48
- 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 -67
- 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}/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 @@
|
|
|
1
|
+
{"version":3,"file":"prepare-data.js","sourceRoot":"../../../../../../src","sources":["plugins/highcharts/renderer/helpers/prepare-data.js"],"names":[],"mappings":"AAAA,OAAO,EAAC,QAAQ,EAAC,MAAM,wBAAwB,CAAC;AAChD,OAAO,QAAQ,MAAM,uBAAuB,CAAC;AAE7C,OAAO,EAAC,IAAI,EAAC,kCAAyB;AACtC,OAAO,EAAC,mBAAmB,EAAE,aAAa,EAAC,kCAAyB;AAEpE,OAAO,EAAC,mBAAmB,EAAC,uBAAoB;AAEhD,SAAS,YAAY,CAAC,KAAK,EAAE,UAAU,EAAE,OAAO;IAC5C,IAAI,KAAK,KAAK,IAAI,EAAE,CAAC;QACjB,OAAO,I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AAO,CAAC,SAAS,KAAK,UAAU,CAAC;YACzE,OAAO,CAAC,SAAS,KAAK,YAAY,EACpC,CAAC;YACC,IAAI,CAAC,MAAM,CAAC,OAAO,EAAE,CAAC;QAC1B,CAAC;QAED,IAAI,QAAQ,IAAI,OAAO,CAAC,YAAY,EAAE,CAAC;YACnC,cAAc,CAAC,IAAI,EAAE,OAAO,EAAE,QAAQ,CAAC,CAAC;QAC5C,CAAC;QAED,OAAO,CAAC,GAAG,GAAG,GAAG,CAAC;QAClB,OAAO,CAAC,GAAG,GAAG,GAAG,CAAC;IACtB,CAAC;AACL,CAAC","sourcesContent":["import {dateTime} from '@gravity-ui/date-utils';\nimport arrayMin from 'es-toolkit/compat/min';\n\nimport {i18n} from '../../../../i18n';\nimport {CHARTKIT_ERROR_CODE, ChartKitError} from '../../../../libs';\n\nimport {DEFAULT_LINES_LIMIT} from './constants';\n\nfunction prepareValue(value, firstValue, options) {\n if (value === null) {\n return null;\n }\n if (options.normalizeDiv) {\n return value / (firstValue || 1);\n }\n if (options.normalizeSub) {\n return value - firstValue;\n }\n return value;\n}\n\nfunction sortByLastValue(a, b) {\n if (a._lastValue < b._lastValue) {\n return -1;\n }\n if (a._lastValue > b._lastValue) {\n return 1;\n }\n return 0;\n}\n\nfunction sortByAlphabet(a, b) {\n if (a.name < b.name) {\n return -1;\n }\n if (a.name > b.name) {\n return 1;\n }\n return 0;\n}\n\nconst HIGHCHARTS_SCALE = {\n s: 'second',\n h: 'hour',\n d: 'day',\n w: 'week',\n m: 'month',\n q: 'quarter',\n y: 'year',\n};\n\nfunction computeXTickScale(range) {\n const timeUnits = {\n s: 1000,\n i: 60000,\n h: 3600000,\n d: 86400000,\n w: 604800000,\n m: 2419200000,\n q: 7344000000,\n y: 31449600000,\n };\n let previous = 's';\n\n // eslint-disable-next-line guard-for-in\n for (const current in timeUnits) {\n if (timeUnits[current] > range) {\n return previous;\n }\n previous = current;\n }\n\n return previous;\n}\n\nfunction removeHolidays(data, options, holidays) {\n const timeline = [];\n const graphsData = [];\n\n data.graphs.forEach((graph, i) => {\n graphsData[i] = [];\n });\n\n data.categories_ms.forEach((ts, i) => {\n const key = dateTime({input: ts}).format('YYYYMMDD');\n const region = (options.region && options.region.toLowerCase()) || 'tot';\n const holiday = holidays.holiday[region][key] || holidays.weekend[region][key];\n\n if (!holiday) {\n timeline.push(ts);\n data.graphs.forEach((graph, j) => graphsData[j].push(graph.data[i]));\n }\n });\n\n data.categories_ms = timeline;\n data.graphs.forEach((graph, i) => {\n graph.data = graphsData[i];\n });\n}\n\n// eslint-disable-next-line complexity\nexport function prepareData(data, options, holidays) {\n const limit = options.linesLimit || DEFAULT_LINES_LIMIT;\n\n if (\n !data ||\n (typeof data === 'object' && !Object.keys(data).length) ||\n (data.graphs &&\n !(\n data.graphs.length && data.graphs.some((graph) => graph.data && graph.data.length)\n )) ||\n (Array.isArray(data) && !data.length)\n ) {\n throw new ChartKitError({\n code: CHARTKIT_ERROR_CODE.NO_DATA,\n message: i18n('error', 'label_no-data'),\n });\n }\n\n if (data.graphs) {\n if (data.graphs.length > limit && !options.withoutLineLimit) {\n throw new ChartKitError({code: CHARTKIT_ERROR_CODE.TOO_MANY_LINES});\n }\n\n data.graphs.forEach((graph) => {\n graph.name = graph.name || graph.title;\n });\n\n let min = false;\n let max = false;\n\n if (data.categories_ms) {\n options.highchartsScale = HIGHCHARTS_SCALE[options.scale];\n\n const closestPointRange = arrayMin(\n data.categories_ms.map(\n (timestamp, index) => timestamp - data.categories_ms[index - 1],\n ),\n );\n options.scale = options.scale || computeXTickScale(closestPointRange);\n\n if (options.scale && options.scale.length > 1) {\n const match = options.scale.match(/^[sihyqmwd]/g);\n options.scale = match ? match[0] : null;\n }\n\n data.graphs\n .filter(({data}) => Boolean(data))\n .forEach((graph, index) => {\n let result = [];\n const aloneOrHasNull =\n graph.data.length === 1 || graph.data.indexOf(null) !== -1;\n\n const firstValue = graph.data[0];\n\n if (aloneOrHasNull) {\n result = graph.data.map((val, pos) => {\n if (val !== null && typeof val === 'object') {\n return val;\n }\n\n const preparedVal = prepareValue(val, firstValue, options);\n\n const currentPoint = {\n x: data.categories_ms[pos],\n y: preparedVal,\n };\n\n if (preparedVal !== null) {\n min = Math.min(min, preparedVal);\n max = Math.max(max, preparedVal);\n }\n\n return currentPoint;\n });\n } else {\n result = graph.data.map((val, pos) => {\n if (val !== null && typeof val === 'object') {\n return val;\n }\n const preparedVal = prepareValue(val, firstValue, options);\n min = Math.min(min, preparedVal);\n max = Math.max(max, preparedVal);\n return [data.categories_ms[pos], preparedVal];\n });\n }\n\n data.graphs[index].data = result;\n });\n\n delete data.categories;\n }\n\n if (data.categories) {\n delete data.categories_ms;\n }\n\n if (options.orderType === 'byLastValue') {\n data.graphs.forEach((graphItem) => {\n graphItem._lastValue =\n (graphItem.data &&\n graphItem.data[graphItem.data.length - 1] &&\n (graphItem.data[graphItem.data.length - 1][1] ||\n graphItem.data[graphItem.data.length - 1].y)) ||\n 0;\n });\n data.graphs.sort(sortByLastValue);\n }\n\n if (options.orderType === 'alphabet') {\n data.graphs.sort(sortByAlphabet);\n }\n\n if (\n (options.orderType === 'byLastValue' || options.orderType === 'alphabet') &&\n options.orderSort === 'fromBottom'\n ) {\n data.graphs.reverse();\n }\n\n if (holidays && options.hideHolidays) {\n removeHolidays(data, options, holidays);\n }\n\n options.max = max;\n options.min = min;\n }\n}\n"]}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export declare enum LineShapeType {
|
|
2
|
+
Solid = "Solid",
|
|
3
|
+
ShortDash = "ShortDash",
|
|
4
|
+
ShortDot = "ShortDot",
|
|
5
|
+
ShortDashDot = "ShortDashDot",
|
|
6
|
+
ShortDashDotDot = "ShortDashDotDot",
|
|
7
|
+
Dot = "Dot",
|
|
8
|
+
Dash = "Dash",
|
|
9
|
+
LongDash = "LongDash",
|
|
10
|
+
DashDot = "DashDot",
|
|
11
|
+
LongDashDot = "LongDashDot",
|
|
12
|
+
LongDashDotDot = "LongDashDotDot"
|
|
13
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export var LineShapeType;
|
|
2
|
+
(function (LineShapeType) {
|
|
3
|
+
LineShapeType["Solid"] = "Solid";
|
|
4
|
+
LineShapeType["ShortDash"] = "ShortDash";
|
|
5
|
+
LineShapeType["ShortDot"] = "ShortDot";
|
|
6
|
+
LineShapeType["ShortDashDot"] = "ShortDashDot";
|
|
7
|
+
LineShapeType["ShortDashDotDot"] = "ShortDashDotDot";
|
|
8
|
+
LineShapeType["Dot"] = "Dot";
|
|
9
|
+
LineShapeType["Dash"] = "Dash";
|
|
10
|
+
LineShapeType["LongDash"] = "LongDash";
|
|
11
|
+
LineShapeType["DashDot"] = "DashDot";
|
|
12
|
+
LineShapeType["LongDashDot"] = "LongDashDot";
|
|
13
|
+
LineShapeType["LongDashDotDot"] = "LongDashDotDot";
|
|
14
|
+
})(LineShapeType || (LineShapeType = {}));
|
|
15
|
+
//# sourceMappingURL=constants.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"../../../../../../../src","sources":["plugins/highcharts/renderer/helpers/tooltip/constants.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,aAYX;AAZD,WAAY,aAAa;IACrB,gCAAe,CAAA;IACf,wCAAuB,CAAA;IACvB,sCAAqB,CAAA;IACrB,8CAA6B,CAAA;IAC7B,oDAAmC,CAAA;IACnC,4BAAW,CAAA;IACX,8BAAa,CAAA;IACb,sCAAqB,CAAA;IACrB,oCAAmB,CAAA;IACnB,4CAA2B,CAAA;IAC3B,kDAAiC,CAAA;AACrC,CAAC,EAZW,aAAa,KAAb,aAAa,QAYxB","sourcesContent":["export enum LineShapeType {\n Solid = 'Solid',\n ShortDash = 'ShortDash',\n ShortDot = 'ShortDot',\n ShortDashDot = 'ShortDashDot',\n ShortDashDotDot = 'ShortDashDotDot',\n Dot = 'Dot',\n Dash = 'Dash',\n LongDash = 'LongDash',\n DashDot = 'DashDot',\n LongDashDot = 'LongDashDot',\n LongDashDotDot = 'LongDashDotDot',\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const escapeHTML: (html?: string) => string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"helpers.js","sourceRoot":"../../../../../../../src","sources":["plugins/highcharts/renderer/helpers/tooltip/helpers.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,IAAI,GAAG,EAAE,EAAE,EAAE;IACpC,MAAM,IAAI,GAAG,QAAQ,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC;IAC5C,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC;IAEtB,OAAO,IAAI,CAAC,SAAS,CAAC;AAC1B,CAAC,CAAC","sourcesContent":["export const escapeHTML = (html = '') => {\n const elem = document.createElement('span');\n elem.innerText = html;\n\n return elem.innerHTML;\n};\n"]}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { Highcharts } from "../../../types/index.js";
|
|
2
|
+
import type { TooltipData } from "./types.js";
|
|
3
|
+
import "./tooltip.css";
|
|
4
|
+
export declare const SERIES_NAME_DATA_ATTRIBUTE = "data-series-name";
|
|
5
|
+
export declare const SERIES_IDX_DATA_ATTRIBUTE = "data-series-idx";
|
|
6
|
+
export declare const TOOLTIP_CONTAINER_CLASS_NAME = "_tooltip";
|
|
7
|
+
export declare const TOOLTIP_ROW_NAME_CLASS_NAME = "_tooltip-rows__name-td";
|
|
8
|
+
export declare const TOOLTIP_ROW_CLASS_NAME = "_tooltip-row";
|
|
9
|
+
export declare const TOOLTIP_HEADER_CLASS_NAME = "_tooltip-header";
|
|
10
|
+
export declare const TOOLTIP_LIST_CLASS_NAME = "_tooltip-list";
|
|
11
|
+
export declare const TOOLTIP_FOOTER_CLASS_NAME = "_tooltip-footer";
|
|
12
|
+
export declare const formatTooltip: (data: TooltipData, tooltip: Highcharts.Tooltip, isMobile?: boolean) => string;
|
|
13
|
+
export default formatTooltip;
|
|
@@ -0,0 +1,269 @@
|
|
|
1
|
+
/* eslint-disable complexity */
|
|
2
|
+
import _escape from 'es-toolkit/compat/escape';
|
|
3
|
+
import { i18n } from "../../../../../i18n/index.js";
|
|
4
|
+
import { escapeHTML } from "./helpers.js";
|
|
5
|
+
import { renderShapeIcon } from "./render-shape-icon/index.js";
|
|
6
|
+
import "./tooltip.css";
|
|
7
|
+
export const SERIES_NAME_DATA_ATTRIBUTE = 'data-series-name';
|
|
8
|
+
export const SERIES_IDX_DATA_ATTRIBUTE = 'data-series-idx';
|
|
9
|
+
export const TOOLTIP_CONTAINER_CLASS_NAME = '_tooltip';
|
|
10
|
+
export const TOOLTIP_ROW_NAME_CLASS_NAME = '_tooltip-rows__name-td';
|
|
11
|
+
export const TOOLTIP_ROW_CLASS_NAME = '_tooltip-row';
|
|
12
|
+
export const TOOLTIP_HEADER_CLASS_NAME = '_tooltip-header';
|
|
13
|
+
export const TOOLTIP_LIST_CLASS_NAME = '_tooltip-list';
|
|
14
|
+
export const TOOLTIP_FOOTER_CLASS_NAME = '_tooltip-footer';
|
|
15
|
+
const renderEmptyCell = () => '<td />';
|
|
16
|
+
const renderColorCell = (line) => `<td class="_tooltip-rows__bubble-td">
|
|
17
|
+
<div class="_tooltip-rows__bubble-div" style="background-color:${line.seriesColor};"></div>
|
|
18
|
+
</td>`;
|
|
19
|
+
const renderLineShapeCell = (line) => `<td class="_tooltip-rows__shape-td">
|
|
20
|
+
<div class="_tooltip-rows__shape-div"
|
|
21
|
+
style="color:${line.seriesColor};">
|
|
22
|
+
${renderShapeIcon({ type: line.seriesShape })}
|
|
23
|
+
</div>
|
|
24
|
+
</td>`;
|
|
25
|
+
const renderNameCell = (line, options) => {
|
|
26
|
+
let value = '';
|
|
27
|
+
if (!line.hideSeriesName) {
|
|
28
|
+
value = line.seriesName;
|
|
29
|
+
if (!options?.unsafe) {
|
|
30
|
+
value = escapeHTML(value);
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
return `<td class="${TOOLTIP_ROW_NAME_CLASS_NAME}">
|
|
34
|
+
${value}
|
|
35
|
+
</td>`;
|
|
36
|
+
};
|
|
37
|
+
const renderPercentCell = (line) => `<td class="_tooltip-rows__percent-td">
|
|
38
|
+
${line.percentValue ? line.percentValue + '%' : ''}
|
|
39
|
+
</td>`;
|
|
40
|
+
const renderValueCell = (line) => `<td class="_tooltip-rows__value-td">
|
|
41
|
+
${line.value}
|
|
42
|
+
</td>`;
|
|
43
|
+
const renderDiffCell = (line) => `<td class="_tooltip-rows__diff-td">
|
|
44
|
+
${line.diff ? ` (${line.diff})` : ''}
|
|
45
|
+
</td>`;
|
|
46
|
+
const renderAdditionalSection = (data, splitTooltip = false, colspanNumber = 1) => {
|
|
47
|
+
return `<td class="_tooltip-right__td ${splitTooltip ? '_tooltip-right__td_with-split-tooltip' : ''}" colspan="${colspanNumber || 1}">
|
|
48
|
+
${data.holiday
|
|
49
|
+
? `<div class="_tooltip-right__holiday-div">
|
|
50
|
+
<div class="_tooltip-right__holiday-emoji">🎈</div>
|
|
51
|
+
<div>
|
|
52
|
+
${data.holidayText}
|
|
53
|
+
${data.region
|
|
54
|
+
? `<span class="_tooltip-right__holiday-region">[${data.region}]</span>`
|
|
55
|
+
: ''}
|
|
56
|
+
</div>
|
|
57
|
+
</div>`
|
|
58
|
+
: ''}
|
|
59
|
+
|
|
60
|
+
${data.commentDateText
|
|
61
|
+
? `<div class="${data.xComments ? '_tooltip-right__margin-bot' : ''}">${data.commentDateText}</div>`
|
|
62
|
+
: ''}
|
|
63
|
+
|
|
64
|
+
${data.xComments
|
|
65
|
+
? data.xComments
|
|
66
|
+
.map((comment) => `<div class="_tooltip-right__traf-div ${splitTooltip
|
|
67
|
+
? '_tooltip-right__traf-div_for-split-tooltip'
|
|
68
|
+
: ''}" style="border-color: ${comment.color};">${comment.text}</div>`)
|
|
69
|
+
.join('')
|
|
70
|
+
: ''}
|
|
71
|
+
</td>`;
|
|
72
|
+
};
|
|
73
|
+
const renderRow = (line, { isSelectedLine, cellsRenderers, isSingleLine, allowComment, withDarkBackground, rowIndex, unsafe, }) => {
|
|
74
|
+
const hasComment = line.commentText || line.xyCommentText;
|
|
75
|
+
const needRenderComment = allowComment && hasComment;
|
|
76
|
+
const fullCellsRenderers = cellsRenderers.slice();
|
|
77
|
+
const rowKey = `${String(rowIndex) || ''}-${String(escapeHTML(line.seriesName))
|
|
78
|
+
.slice(0, 20)
|
|
79
|
+
.replace(/(\r\n|\n|\r)/gm, '')}`;
|
|
80
|
+
if (line.insertCellAt) {
|
|
81
|
+
(Object.keys(line.insertCellAt) || []).forEach((index) => {
|
|
82
|
+
fullCellsRenderers.splice(Number(index), 0, renderEmptyCell);
|
|
83
|
+
});
|
|
84
|
+
}
|
|
85
|
+
if (line.customRender) {
|
|
86
|
+
return `<tr class="${TOOLTIP_ROW_CLASS_NAME}${isSelectedLine ? ' _tooltip-selected-row' : ''}${isSingleLine ? ' _tooltip-uniq-row' : ''}${withDarkBackground ? ' _tooltip-row-dark-bg' : ''}" ${SERIES_NAME_DATA_ATTRIBUTE}="${rowKey}" ${line.seriesIdx ? `${SERIES_IDX_DATA_ATTRIBUTE}="${line.seriesIdx}"` : ''}>
|
|
87
|
+
${line.customRender.trim().indexOf('<td') === 0
|
|
88
|
+
? line.customRender
|
|
89
|
+
: `<td colspan="${cellsRenderers.length}">${line.customRender}</td>`}
|
|
90
|
+
</tr>
|
|
91
|
+
${needRenderComment
|
|
92
|
+
? `<tr class="_tooltip-comment-row${isSelectedLine ? ' _tooltip-selected-row' : ''}${withDarkBackground ? ' _tooltip-row-dark-bg' : ''}">
|
|
93
|
+
<td>
|
|
94
|
+
${line.commentText
|
|
95
|
+
? `<div class="_tooltip-rows__comment-div">${line.commentText}</div>`
|
|
96
|
+
: ''}
|
|
97
|
+
${line.xyCommentText
|
|
98
|
+
? `<div class="_tooltip-rows__comment-div">${line.xyCommentText}</div>`
|
|
99
|
+
: ''}
|
|
100
|
+
</td>
|
|
101
|
+
</tr>`
|
|
102
|
+
: ''}`;
|
|
103
|
+
}
|
|
104
|
+
return `<tr class="${TOOLTIP_ROW_CLASS_NAME}${isSelectedLine ? ' _tooltip-selected-row' : ''}${isSingleLine ? ' _tooltip-uniq-row' : ''}${withDarkBackground ? ' _tooltip-row-dark-bg' : ''}" ${SERIES_NAME_DATA_ATTRIBUTE}="${rowKey}" ${line.seriesIdx ? `${SERIES_IDX_DATA_ATTRIBUTE}="${line.seriesIdx}"` : ''}>
|
|
105
|
+
${fullCellsRenderers
|
|
106
|
+
.map((render, index) => {
|
|
107
|
+
if (line.replaceCellAt && line.replaceCellAt[index]) {
|
|
108
|
+
return typeof line.replaceCellAt[index] === 'string'
|
|
109
|
+
? line.replaceCellAt[index]
|
|
110
|
+
: line.replaceCellAt[index](line);
|
|
111
|
+
}
|
|
112
|
+
else if (line.insertCellAt && line.insertCellAt[index]) {
|
|
113
|
+
return typeof line.insertCellAt[index] === 'string'
|
|
114
|
+
? line.insertCellAt[index]
|
|
115
|
+
: line.insertCellAt[index](line);
|
|
116
|
+
}
|
|
117
|
+
else {
|
|
118
|
+
return render(line, { unsafe });
|
|
119
|
+
}
|
|
120
|
+
})
|
|
121
|
+
.join('')}
|
|
122
|
+
</tr>
|
|
123
|
+
|
|
124
|
+
${needRenderComment
|
|
125
|
+
? `<tr class="_tooltip-comment-row${isSelectedLine ? ' _tooltip-selected-row' : ''}${withDarkBackground ? ' _tooltip-row-dark-bg' : ''}">
|
|
126
|
+
<td colspan="4">
|
|
127
|
+
${line.commentText
|
|
128
|
+
? `<div class="_tooltip-rows__comment-div">${line.commentText}</div>`
|
|
129
|
+
: ''}
|
|
130
|
+
${line.xyCommentText
|
|
131
|
+
? `<div class="_tooltip-rows__comment-div">${line.xyCommentText}</div>`
|
|
132
|
+
: ''}
|
|
133
|
+
</td>
|
|
134
|
+
</tr>`
|
|
135
|
+
: ''}`;
|
|
136
|
+
};
|
|
137
|
+
export const formatTooltip = (data, tooltip, isMobile) => {
|
|
138
|
+
const { splitTooltip, activeRowAlwaysFirstInTooltip } = data;
|
|
139
|
+
const lines = data.lines.slice(0, (tooltip.lastVisibleRowIndex || data.lines.length) + 1);
|
|
140
|
+
const selectedLineIndex = lines.findIndex(({ selectedSeries }) => selectedSeries);
|
|
141
|
+
const selectedLine = lines[selectedLineIndex];
|
|
142
|
+
const withShapes = lines.every((line) => line.seriesShape);
|
|
143
|
+
const unsafe = data.unsafe;
|
|
144
|
+
const tooltipHeaderRaw = data.tooltipHeader?.trim();
|
|
145
|
+
const tooltipHeaderEscaped = escapeHTML(tooltipHeaderRaw);
|
|
146
|
+
const cellsRenderers = [];
|
|
147
|
+
if (withShapes) {
|
|
148
|
+
cellsRenderers.push(renderLineShapeCell);
|
|
149
|
+
}
|
|
150
|
+
else {
|
|
151
|
+
cellsRenderers.push(renderColorCell);
|
|
152
|
+
}
|
|
153
|
+
if (data.shared) {
|
|
154
|
+
cellsRenderers.push(renderNameCell);
|
|
155
|
+
}
|
|
156
|
+
if (data.withPercent) {
|
|
157
|
+
cellsRenderers.push(renderPercentCell);
|
|
158
|
+
}
|
|
159
|
+
cellsRenderers.push(renderValueCell);
|
|
160
|
+
if (data.useCompareFrom) {
|
|
161
|
+
cellsRenderers.push(renderDiffCell);
|
|
162
|
+
}
|
|
163
|
+
const rowRenderingConfig = {
|
|
164
|
+
isSingleLine: lines.length === 1,
|
|
165
|
+
cellsRenderers,
|
|
166
|
+
unsafe,
|
|
167
|
+
};
|
|
168
|
+
const rowRenderingConfigForSelectedLine = {
|
|
169
|
+
cellsRenderers,
|
|
170
|
+
useCompareFrom: data.useCompareFrom,
|
|
171
|
+
isSelectedLine: true,
|
|
172
|
+
allowComment: typeof tooltip.lastVisibleRowIndex === 'number' &&
|
|
173
|
+
selectedLineIndex > tooltip.lastVisibleRowIndex,
|
|
174
|
+
};
|
|
175
|
+
// @ts-ignore
|
|
176
|
+
const windowHeight = document.body.clientHeight / ((window.visualViewport && window.visualViewport.scale) || 1);
|
|
177
|
+
const tooltipMaxHeight = isMobile && window.innerHeight > window.innerWidth
|
|
178
|
+
? windowHeight - tooltip.chart?.plotSizeY ||
|
|
179
|
+
tooltip.yagrChart?.height ||
|
|
180
|
+
windowHeight / 2
|
|
181
|
+
: windowHeight - (tooltip.options.padding || 0) * 4;
|
|
182
|
+
function getRowRenderConfig(index) {
|
|
183
|
+
return {
|
|
184
|
+
...rowRenderingConfig,
|
|
185
|
+
rowIndex: index,
|
|
186
|
+
isSelectedLine: lines.length > 1 && index === selectedLineIndex,
|
|
187
|
+
withDarkBackground: lines.length > 2 && Boolean(index % 2),
|
|
188
|
+
allowComment: index !== selectedLineIndex || !rowRenderingConfigForSelectedLine.allowComment,
|
|
189
|
+
};
|
|
190
|
+
}
|
|
191
|
+
let tooltipContainerClassNames = TOOLTIP_CONTAINER_CLASS_NAME;
|
|
192
|
+
if (splitTooltip) {
|
|
193
|
+
tooltipContainerClassNames += ` ${TOOLTIP_CONTAINER_CLASS_NAME}_split-tooltip`;
|
|
194
|
+
}
|
|
195
|
+
return `
|
|
196
|
+
<div class="${tooltipContainerClassNames}" style="${tooltip.preFixationHeight ? `height: ${tooltip.preFixationHeight}px; ` : ''}max-height: ${splitTooltip ? 'auto' : `${tooltipMaxHeight}px`}">
|
|
197
|
+
${tooltipHeaderRaw
|
|
198
|
+
? `<div title="${unsafe ? '' : _escape(tooltipHeaderEscaped)}" class="_tooltip-date">
|
|
199
|
+
${unsafe ? tooltipHeaderRaw : tooltipHeaderEscaped}
|
|
200
|
+
</div>`
|
|
201
|
+
: ''}
|
|
202
|
+
${splitTooltip &&
|
|
203
|
+
(data.holiday || data.commentDateText || (data.xComments && data.xComments.length))
|
|
204
|
+
? `<table border="0" cellpadding="0" cellspacing="0">
|
|
205
|
+
<tbody>
|
|
206
|
+
<tr>
|
|
207
|
+
${renderAdditionalSection(data, true, cellsRenderers.length)}
|
|
208
|
+
</tr>
|
|
209
|
+
</tbody>
|
|
210
|
+
</table>`
|
|
211
|
+
: ''}
|
|
212
|
+
<table border="0" cellpadding="0" cellspacing="0">
|
|
213
|
+
<tr>
|
|
214
|
+
<td class="_tooltip-left__td">
|
|
215
|
+
<table class="_tooltip-rows__table">
|
|
216
|
+
${splitTooltip
|
|
217
|
+
? ''
|
|
218
|
+
: `<thead class=${TOOLTIP_HEADER_CLASS_NAME}>
|
|
219
|
+
${selectedLine &&
|
|
220
|
+
(activeRowAlwaysFirstInTooltip ||
|
|
221
|
+
(tooltip.lastVisibleRowIndex &&
|
|
222
|
+
selectedLineIndex > tooltip.lastVisibleRowIndex))
|
|
223
|
+
? renderRow(selectedLine, rowRenderingConfigForSelectedLine)
|
|
224
|
+
: ''}
|
|
225
|
+
<tr class="_tooltip-fake-row">${Array(cellsRenderers.length)
|
|
226
|
+
.fill('<td></td>')
|
|
227
|
+
.join('')}</tr>
|
|
228
|
+
</thead>`}
|
|
229
|
+
<tbody class="${TOOLTIP_LIST_CLASS_NAME}">
|
|
230
|
+
${lines
|
|
231
|
+
.map((line, index) => renderRow(line, getRowRenderConfig(index)))
|
|
232
|
+
.join('')}
|
|
233
|
+
</tbody>
|
|
234
|
+
${splitTooltip
|
|
235
|
+
? ''
|
|
236
|
+
: `<tbody class="${TOOLTIP_FOOTER_CLASS_NAME}">
|
|
237
|
+
${tooltip.lastVisibleRowIndex && data.hiddenRowsNumber > 0
|
|
238
|
+
? `<tr class="${TOOLTIP_ROW_CLASS_NAME} _hidden-rows-sum${lines.length % 2 ? ' _hidden-rows-sum-dark-bg' : ''}">
|
|
239
|
+
<td colspan="${cellsRenderers.length - 1}" class="_hidden-rows-number">
|
|
240
|
+
${i18n('chartkit', 'tooltip-rest')} ${data.hiddenRowsNumber}
|
|
241
|
+
</td>
|
|
242
|
+
<td class="_hidden-rows-value">${data.hiddenRowsSum}</td>
|
|
243
|
+
</tr>`
|
|
244
|
+
: ''}
|
|
245
|
+
<tr class="_tooltip-fake-row">${Array(cellsRenderers.length)
|
|
246
|
+
.fill('<td></td>')
|
|
247
|
+
.join('')}</tr>
|
|
248
|
+
${data.sum
|
|
249
|
+
? `<tr class="_tooltip-rows__summ-tr">
|
|
250
|
+
<td class="_tooltip-rows__summ-td" colspan="${cellsRenderers.length - 1}">${i18n('chartkit', 'tooltip-sum')}</td>
|
|
251
|
+
<td class="_tooltip-rows__summ-td _tooltip-rows__summ-td-value">
|
|
252
|
+
${data.sum}
|
|
253
|
+
</td>
|
|
254
|
+
</tr>`
|
|
255
|
+
: ''}
|
|
256
|
+
</tbody>`}
|
|
257
|
+
</table>
|
|
258
|
+
</td>
|
|
259
|
+
|
|
260
|
+
${!splitTooltip &&
|
|
261
|
+
(data.holiday || data.commentDateText || (data.xComments && data.xComments.length))
|
|
262
|
+
? renderAdditionalSection(data)
|
|
263
|
+
: ''}
|
|
264
|
+
</tr>
|
|
265
|
+
</table>
|
|
266
|
+
</div>`;
|
|
267
|
+
};
|
|
268
|
+
export default formatTooltip;
|
|
269
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"../../../../../../../src","sources":["plugins/highcharts/renderer/helpers/tooltip/index.ts"],"names":[],"mappings":"AAAA,+BAA+B;AAE/B,OAAO,OAAO,MAAM,0BAA0B,CAAC;AAE/C,OAAO,EAAC,IAAI,EAAC,qCAA4B;AAGzC,OAAO,EAAC,UAAU,EAAC,qBAAkB;AACrC,OAAO,EAAC,eAAe,EAAC,qCAA4B;AAGpD,uBAAwB;AAExB,MAAM,CAAC,MAAM,0BAA0B,GAAG,kBAAkB,CAAC;AAC7D,MAAM,CAAC,MAAM,yBAAyB,GAAG,iBAAiB,CAAC;AAC3D,MAAM,CAAC,MAAM,4BAA4B,GAAG,UAAU,CAAC;AACvD,MAAM,CAAC,MAAM,2BAA2B,GAAG,wBAAwB,CAAC;AACpE,MAAM,CAAC,MAAM,sBAAsB,GAAG,cAAc,CAAC;AACrD,MAAM,CAAC,MAAM,yBAAyB,GAAG,iBAAiB,CAAC;A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WAAW,CAAC;aACjB,IAAI,CAAC,EAAE,CAAC;kCAET,IAAI,CAAC,GAAG;YACJ,CAAC,CAAC;0FAEM,cAAc,CAAC,MAAM,GAAG,CAC5B,KAAK,IAAI,CAAC,UAAU,EAAE,aAAa,CAAC;;kDAE9B,IAAI,CAAC,GAAG;;8CAEZ;YACN,CAAC,CAAC,EACV;qCAEZ;;;;cAKJ,CAAC,YAAY;QACb,CAAC,IAAI,CAAC,OAAO,IAAI,IAAI,CAAC,eAAe,IAAI,CAAC,IAAI,CAAC,SAAS,IAAI,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC;QAC/E,CAAC,CAAC,uBAAuB,CAAC,IAAI,CAAC;QAC/B,CAAC,CAAC,EACV;;;OAGL,CAAC;AACR,CAAC,CAAC;AAEF,eAAe,aAAa,CAAC","sourcesContent":["/* eslint-disable complexity */\n\nimport _escape from 'es-toolkit/compat/escape';\n\nimport {i18n} from '../../../../../i18n';\nimport type {Highcharts} from '../../../types';\n\nimport {escapeHTML} from './helpers';\nimport {renderShapeIcon} from './render-shape-icon';\nimport type {RowRenderingConfig, TooltipData, TooltipLine} from './types';\n\nimport './tooltip.scss';\n\nexport const SERIES_NAME_DATA_ATTRIBUTE = 'data-series-name';\nexport const SERIES_IDX_DATA_ATTRIBUTE = 'data-series-idx';\nexport const TOOLTIP_CONTAINER_CLASS_NAME = '_tooltip';\nexport const TOOLTIP_ROW_NAME_CLASS_NAME = '_tooltip-rows__name-td';\nexport const TOOLTIP_ROW_CLASS_NAME = '_tooltip-row';\nexport const TOOLTIP_HEADER_CLASS_NAME = '_tooltip-header';\nexport const TOOLTIP_LIST_CLASS_NAME = '_tooltip-list';\nexport const TOOLTIP_FOOTER_CLASS_NAME = '_tooltip-footer';\n\nconst renderEmptyCell = () => '<td />';\n\nconst renderColorCell = (line: TooltipLine) =>\n `<td class=\"_tooltip-rows__bubble-td\">\n <div class=\"_tooltip-rows__bubble-div\" style=\"background-color:${line.seriesColor};\"></div>\n </td>`;\n\nconst renderLineShapeCell = (line: TooltipLine) =>\n `<td class=\"_tooltip-rows__shape-td\">\n <div class=\"_tooltip-rows__shape-div\"\n style=\"color:${line.seriesColor};\">\n ${renderShapeIcon({type: line.seriesShape})}\n </div>\n </td>`;\n\nconst renderNameCell = (line: TooltipLine, options?: {unsafe?: boolean}) => {\n let value = '';\n if (!line.hideSeriesName) {\n value = line.seriesName;\n\n if (!options?.unsafe) {\n value = escapeHTML(value);\n }\n }\n return `<td class=\"${TOOLTIP_ROW_NAME_CLASS_NAME}\">\n ${value}\n </td>`;\n};\n\nconst renderPercentCell = (line: TooltipLine) =>\n `<td class=\"_tooltip-rows__percent-td\">\n ${line.percentValue ? line.percentValue + '%' : ''}\n </td>`;\n\nconst renderValueCell = (line: TooltipLine) =>\n `<td class=\"_tooltip-rows__value-td\">\n ${line.value}\n </td>`;\n\nconst renderDiffCell = (line: TooltipLine) =>\n `<td class=\"_tooltip-rows__diff-td\">\n ${line.diff ? ` (${line.diff})` : ''}\n </td>`;\n\nconst renderAdditionalSection = (data: TooltipData, splitTooltip = false, colspanNumber = 1) => {\n return `<td class=\"_tooltip-right__td ${\n splitTooltip ? '_tooltip-right__td_with-split-tooltip' : ''\n }\" colspan=\"${colspanNumber || 1}\">\n ${\n data.holiday\n ? `<div class=\"_tooltip-right__holiday-div\">\n <div class=\"_tooltip-right__holiday-emoji\">🎈</div>\n <div>\n ${data.holidayText}\n ${\n data.region\n ? `<span class=\"_tooltip-right__holiday-region\">[${data.region}]</span>`\n : ''\n }\n </div>\n </div>`\n : ''\n }\n\n ${\n data.commentDateText\n ? `<div class=\"${data.xComments ? '_tooltip-right__margin-bot' : ''}\">${\n data.commentDateText\n }</div>`\n : ''\n }\n\n ${\n data.xComments\n ? data.xComments\n .map(\n (comment) =>\n `<div class=\"_tooltip-right__traf-div ${\n splitTooltip\n ? '_tooltip-right__traf-div_for-split-tooltip'\n : ''\n }\" style=\"border-color: ${comment.color};\">${comment.text}</div>`,\n )\n .join('')\n : ''\n }\n </td>`;\n};\n\nconst renderRow = (\n line: TooltipLine,\n {\n isSelectedLine,\n cellsRenderers,\n isSingleLine,\n allowComment,\n withDarkBackground,\n rowIndex,\n unsafe,\n }: RowRenderingConfig,\n) => {\n const hasComment = line.commentText || line.xyCommentText;\n const needRenderComment = allowComment && hasComment;\n const fullCellsRenderers = cellsRenderers.slice();\n\n const rowKey = `${String(rowIndex) || ''}-${String(escapeHTML(line.seriesName))\n .slice(0, 20)\n .replace(/(\\r\\n|\\n|\\r)/gm, '')}`;\n\n if (line.insertCellAt) {\n (Object.keys(line.insertCellAt) || []).forEach((index) => {\n fullCellsRenderers.splice(Number(index), 0, renderEmptyCell);\n });\n }\n\n if (line.customRender) {\n return `<tr class=\"${TOOLTIP_ROW_CLASS_NAME}${\n isSelectedLine ? ' _tooltip-selected-row' : ''\n }${isSingleLine ? ' _tooltip-uniq-row' : ''}${\n withDarkBackground ? ' _tooltip-row-dark-bg' : ''\n }\" ${SERIES_NAME_DATA_ATTRIBUTE}=\"${rowKey}\" ${\n line.seriesIdx ? `${SERIES_IDX_DATA_ATTRIBUTE}=\"${line.seriesIdx}\"` : ''\n }>\n ${\n line.customRender.trim().indexOf('<td') === 0\n ? line.customRender\n : `<td colspan=\"${cellsRenderers.length}\">${line.customRender}</td>`\n }\n </tr>\n ${\n needRenderComment\n ? `<tr class=\"_tooltip-comment-row${\n isSelectedLine ? ' _tooltip-selected-row' : ''\n }${withDarkBackground ? ' _tooltip-row-dark-bg' : ''}\">\n <td>\n ${\n line.commentText\n ? `<div class=\"_tooltip-rows__comment-div\">${line.commentText}</div>`\n : ''\n }\n ${\n line.xyCommentText\n ? `<div class=\"_tooltip-rows__comment-div\">${line.xyCommentText}</div>`\n : ''\n }\n </td>\n </tr>`\n : ''\n }`;\n }\n\n return `<tr class=\"${TOOLTIP_ROW_CLASS_NAME}${isSelectedLine ? ' _tooltip-selected-row' : ''}${\n isSingleLine ? ' _tooltip-uniq-row' : ''\n }${\n withDarkBackground ? ' _tooltip-row-dark-bg' : ''\n }\" ${SERIES_NAME_DATA_ATTRIBUTE}=\"${rowKey}\" ${\n line.seriesIdx ? `${SERIES_IDX_DATA_ATTRIBUTE}=\"${line.seriesIdx}\"` : ''\n }>\n ${fullCellsRenderers\n .map((render, index) => {\n if (line.replaceCellAt && line.replaceCellAt[index]) {\n return typeof line.replaceCellAt[index] === 'string'\n ? line.replaceCellAt[index]\n : line.replaceCellAt[index](line);\n } else if (line.insertCellAt && line.insertCellAt[index]) {\n return typeof line.insertCellAt[index] === 'string'\n ? line.insertCellAt[index]\n : line.insertCellAt[index](line);\n } else {\n return render(line, {unsafe});\n }\n })\n .join('')}\n </tr>\n\n ${\n needRenderComment\n ? `<tr class=\"_tooltip-comment-row${\n isSelectedLine ? ' _tooltip-selected-row' : ''\n }${withDarkBackground ? ' _tooltip-row-dark-bg' : ''}\">\n <td colspan=\"4\">\n ${\n line.commentText\n ? `<div class=\"_tooltip-rows__comment-div\">${line.commentText}</div>`\n : ''\n }\n ${\n line.xyCommentText\n ? `<div class=\"_tooltip-rows__comment-div\">${line.xyCommentText}</div>`\n : ''\n }\n </td>\n </tr>`\n : ''\n }`;\n};\n\nexport const formatTooltip = (\n data: TooltipData,\n tooltip: Highcharts.Tooltip,\n isMobile?: boolean,\n) => {\n const {splitTooltip, activeRowAlwaysFirstInTooltip} = data;\n const lines = data.lines.slice(0, (tooltip.lastVisibleRowIndex || data.lines.length) + 1);\n const selectedLineIndex = lines.findIndex(({selectedSeries}) => selectedSeries);\n const selectedLine = lines[selectedLineIndex];\n const withShapes = lines.every((line) => line.seriesShape);\n const unsafe = data.unsafe;\n const tooltipHeaderRaw = data.tooltipHeader?.trim();\n const tooltipHeaderEscaped = escapeHTML(tooltipHeaderRaw);\n const cellsRenderers = [];\n\n if (withShapes) {\n cellsRenderers.push(renderLineShapeCell);\n } else {\n cellsRenderers.push(renderColorCell);\n }\n\n if (data.shared) {\n cellsRenderers.push(renderNameCell);\n }\n\n if (data.withPercent) {\n cellsRenderers.push(renderPercentCell);\n }\n\n cellsRenderers.push(renderValueCell);\n\n if (data.useCompareFrom) {\n cellsRenderers.push(renderDiffCell);\n }\n\n const rowRenderingConfig = {\n isSingleLine: lines.length === 1,\n cellsRenderers,\n unsafe,\n };\n\n const rowRenderingConfigForSelectedLine = {\n cellsRenderers,\n useCompareFrom: data.useCompareFrom,\n isSelectedLine: true,\n allowComment:\n typeof tooltip.lastVisibleRowIndex === 'number' &&\n selectedLineIndex > tooltip.lastVisibleRowIndex,\n };\n\n // @ts-ignore\n const windowHeight =\n document.body.clientHeight / ((window.visualViewport && window.visualViewport.scale) || 1);\n\n const tooltipMaxHeight =\n isMobile && window.innerHeight > window.innerWidth\n ? windowHeight - tooltip.chart?.plotSizeY ||\n tooltip.yagrChart?.height ||\n windowHeight / 2\n : windowHeight - (tooltip.options.padding || 0) * 4;\n\n function getRowRenderConfig(index: number) {\n return {\n ...rowRenderingConfig,\n rowIndex: index,\n isSelectedLine: lines.length > 1 && index === selectedLineIndex,\n withDarkBackground: lines.length > 2 && Boolean(index % 2),\n allowComment:\n index !== selectedLineIndex || !rowRenderingConfigForSelectedLine.allowComment,\n };\n }\n\n let tooltipContainerClassNames = TOOLTIP_CONTAINER_CLASS_NAME;\n\n if (splitTooltip) {\n tooltipContainerClassNames += ` ${TOOLTIP_CONTAINER_CLASS_NAME}_split-tooltip`;\n }\n\n return `\n<div class=\"${tooltipContainerClassNames}\" style=\"${\n tooltip.preFixationHeight ? `height: ${tooltip.preFixationHeight}px; ` : ''\n }max-height: ${splitTooltip ? 'auto' : `${tooltipMaxHeight}px`}\">\n ${\n tooltipHeaderRaw\n ? `<div title=\"${unsafe ? '' : _escape(tooltipHeaderEscaped)}\" class=\"_tooltip-date\">\n ${unsafe ? tooltipHeaderRaw : tooltipHeaderEscaped}\n </div>`\n : ''\n }\n ${\n splitTooltip &&\n (data.holiday || data.commentDateText || (data.xComments && data.xComments.length))\n ? `<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\n <tbody>\n <tr>\n ${renderAdditionalSection(data, true, cellsRenderers.length)}\n </tr>\n </tbody>\n </table>`\n : ''\n }\n <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\n <tr>\n <td class=\"_tooltip-left__td\">\n <table class=\"_tooltip-rows__table\">\n ${\n splitTooltip\n ? ''\n : `<thead class=${TOOLTIP_HEADER_CLASS_NAME}>\n ${\n selectedLine &&\n (activeRowAlwaysFirstInTooltip ||\n (tooltip.lastVisibleRowIndex &&\n selectedLineIndex > tooltip.lastVisibleRowIndex))\n ? renderRow(selectedLine, rowRenderingConfigForSelectedLine)\n : ''\n }\n <tr class=\"_tooltip-fake-row\">${Array(cellsRenderers.length)\n .fill('<td></td>')\n .join('')}</tr>\n </thead>`\n }\n <tbody class=\"${TOOLTIP_LIST_CLASS_NAME}\">\n ${lines\n .map((line, index) => renderRow(line, getRowRenderConfig(index)))\n .join('')}\n </tbody>\n ${\n splitTooltip\n ? ''\n : `<tbody class=\"${TOOLTIP_FOOTER_CLASS_NAME}\">\n ${\n tooltip.lastVisibleRowIndex && data.hiddenRowsNumber > 0\n ? `<tr class=\"${TOOLTIP_ROW_CLASS_NAME} _hidden-rows-sum${\n lines.length % 2 ? ' _hidden-rows-sum-dark-bg' : ''\n }\">\n <td colspan=\"${\n cellsRenderers.length - 1\n }\" class=\"_hidden-rows-number\">\n ${i18n('chartkit', 'tooltip-rest')} ${\n data.hiddenRowsNumber\n }\n </td>\n <td class=\"_hidden-rows-value\">${\n data.hiddenRowsSum\n }</td>\n </tr>`\n : ''\n }\n <tr class=\"_tooltip-fake-row\">${Array(cellsRenderers.length)\n .fill('<td></td>')\n .join('')}</tr>\n ${\n data.sum\n ? `<tr class=\"_tooltip-rows__summ-tr\">\n <td class=\"_tooltip-rows__summ-td\" colspan=\"${\n cellsRenderers.length - 1\n }\">${i18n('chartkit', 'tooltip-sum')}</td>\n <td class=\"_tooltip-rows__summ-td _tooltip-rows__summ-td-value\">\n ${data.sum}\n </td>\n </tr>`\n : ''\n }\n </tbody>`\n }\n </table>\n </td>\n\n ${\n !splitTooltip &&\n (data.holiday || data.commentDateText || (data.xComments && data.xComments.length))\n ? renderAdditionalSection(data)\n : ''\n }\n </tr>\n </table>\n</div>`;\n};\n\nexport default formatTooltip;\n"]}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { LineShapeType } from "../constants.js";
|
|
2
|
+
import { DashDotLineIcon, DashLineIcon, DotLineIcon, LongDashDotDotLineIcon, LongDashDotLineIcon, LongDashLineIcon, ShortDashDotDotLineIcon, ShortDashDotLineIcon, ShortDashLineIcon, ShortDotLineIcon, SolidLineIcon, } from "./template-icons/index.js";
|
|
3
|
+
const DEFAULT_ICON_WIDTH = '38px';
|
|
4
|
+
const DEFAULT_ICON_HEIGHT = '2px';
|
|
5
|
+
const TEMPLATE_ICONS = {
|
|
6
|
+
[LineShapeType.DashDot]: DashDotLineIcon,
|
|
7
|
+
[LineShapeType.Dash]: DashLineIcon,
|
|
8
|
+
[LineShapeType.Dot]: DotLineIcon,
|
|
9
|
+
[LineShapeType.LongDashDotDot]: LongDashDotDotLineIcon,
|
|
10
|
+
[LineShapeType.LongDashDot]: LongDashDotLineIcon,
|
|
11
|
+
[LineShapeType.LongDash]: LongDashLineIcon,
|
|
12
|
+
[LineShapeType.ShortDashDotDot]: ShortDashDotDotLineIcon,
|
|
13
|
+
[LineShapeType.ShortDashDot]: ShortDashDotLineIcon,
|
|
14
|
+
[LineShapeType.ShortDash]: ShortDashLineIcon,
|
|
15
|
+
[LineShapeType.ShortDot]: ShortDotLineIcon,
|
|
16
|
+
[LineShapeType.Solid]: SolidLineIcon,
|
|
17
|
+
};
|
|
18
|
+
export const renderShapeIcon = (args) => {
|
|
19
|
+
const { type, width = DEFAULT_ICON_WIDTH, height = DEFAULT_ICON_HEIGHT } = args;
|
|
20
|
+
const templateIcon = type && TEMPLATE_ICONS[type];
|
|
21
|
+
return templateIcon ? templateIcon({ width, height }) : '';
|
|
22
|
+
};
|
|
23
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"../../../../../../../../src","sources":["plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,aAAa,EAAC,wBAAqB;AAE3C,OAAO,EACH,eAAe,EACf,YAAY,EACZ,WAAW,EACX,sBAAsB,EACtB,mBAAmB,EACnB,gBAAgB,EAChB,uBAAuB,EACvB,oBAAoB,EACpB,iBAAiB,EACjB,gBAAgB,EAChB,aAAa,GAChB,kCAAyB;AAE1B,MAAM,kBAAkB,GAAG,MAAM,CAAC;AAClC,MAAM,mBAAmB,GAAG,KAAK,CAAC;AAClC,MAAM,cAAc,GAAG;IACnB,CAAC,aAAa,CAAC,OAAO,CAAC,EAAE,eAAe;IACxC,CAAC,aAAa,CAAC,IAAI,CAAC,EAAE,YAAY;IAClC,CAAC,aAAa,CAAC,GAAG,CAAC,EAAE,WAAW;IAChC,CAAC,aAAa,CAAC,cAAc,CAAC,EAAE,sBAAsB;IACtD,CAAC,aAAa,CAAC,WAAW,CAAC,EAAE,mBAAmB;IAChD,CAAC,aAAa,CAAC,QAAQ,CAAC,EAAE,gBAAgB;IAC1C,CAAC,aAAa,CAAC,eAAe,CAAC,EAAE,uBAAuB;IACxD,CAAC,aAAa,CAAC,YAAY,CAAC,EAAE,oBAAoB;IAClD,CAAC,aAAa,CAAC,SAAS,CAAC,EAAE,iBAAiB;IAC5C,CAAC,aAAa,CAAC,QAAQ,CAAC,EAAE,gBAAgB;IAC1C,CAAC,aAAa,CAAC,KAAK,CAAC,EAAE,aAAa;CACvC,CAAC;AAEF,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,IAA6D,EAAE,EAAE;IAC7F,MAAM,EAAC,IAAI,EAAE,KAAK,GAAG,kBAAkB,EAAE,MAAM,GAAG,mBAAmB,EAAC,GAAG,IAAI,CAAC;IAC9E,MAAM,YAAY,GAAG,IAAI,IAAI,cAAc,CAAC,IAAI,CAAC,CAAC;IAElD,OAAO,YAAY,CAAC,CAAC,CAAC,YAAY,CAAC,EAAC,KAAK,EAAE,MAAM,EAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;AAC7D,CAAC,CAAC","sourcesContent":["import {LineShapeType} from '../constants';\n\nimport {\n DashDotLineIcon,\n DashLineIcon,\n DotLineIcon,\n LongDashDotDotLineIcon,\n LongDashDotLineIcon,\n LongDashLineIcon,\n ShortDashDotDotLineIcon,\n ShortDashDotLineIcon,\n ShortDashLineIcon,\n ShortDotLineIcon,\n SolidLineIcon,\n} from './template-icons';\n\nconst DEFAULT_ICON_WIDTH = '38px';\nconst DEFAULT_ICON_HEIGHT = '2px';\nconst TEMPLATE_ICONS = {\n [LineShapeType.DashDot]: DashDotLineIcon,\n [LineShapeType.Dash]: DashLineIcon,\n [LineShapeType.Dot]: DotLineIcon,\n [LineShapeType.LongDashDotDot]: LongDashDotDotLineIcon,\n [LineShapeType.LongDashDot]: LongDashDotLineIcon,\n [LineShapeType.LongDash]: LongDashLineIcon,\n [LineShapeType.ShortDashDotDot]: ShortDashDotDotLineIcon,\n [LineShapeType.ShortDashDot]: ShortDashDotLineIcon,\n [LineShapeType.ShortDash]: ShortDashLineIcon,\n [LineShapeType.ShortDot]: ShortDotLineIcon,\n [LineShapeType.Solid]: SolidLineIcon,\n};\n\nexport const renderShapeIcon = (args: {type?: LineShapeType; width?: string; height?: string}) => {\n const {type, width = DEFAULT_ICON_WIDTH, height = DEFAULT_ICON_HEIGHT} = args;\n const templateIcon = type && TEMPLATE_ICONS[type];\n\n return templateIcon ? templateIcon({width, height}) : '';\n};\n"]}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { getParsedRect } from "../utils.js";
|
|
2
|
+
export const DashDotLineIcon = ({ height, width }) => {
|
|
3
|
+
const { parsedWidth, parsedHeight } = getParsedRect({ width, height });
|
|
4
|
+
return `
|
|
5
|
+
<svg
|
|
6
|
+
width="${width}"
|
|
7
|
+
height="${height}"
|
|
8
|
+
fill="none"
|
|
9
|
+
viewBox="0 0 ${parsedWidth} ${parsedHeight}"
|
|
10
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
11
|
+
>
|
|
12
|
+
<path
|
|
13
|
+
fillRule="evenodd"
|
|
14
|
+
clipRule="evenodd"
|
|
15
|
+
d="M30 2h8V0h-8v2zM8 2h8V0H8v2zM22 2h2V0h-2v2zM0 2h2V0H0v2z"
|
|
16
|
+
fill="currentColor"
|
|
17
|
+
/>
|
|
18
|
+
</svg>
|
|
19
|
+
`;
|
|
20
|
+
};
|
|
21
|
+
//# sourceMappingURL=DashDotLineIcon.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DashDotLineIcon.js","sourceRoot":"../../../../../../../../../src","sources":["plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/template-icons/DashDotLineIcon.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,aAAa,EAAC,oBAAiB;AAEvC,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,EAAC,MAAM,EAAE,KAAK,EAAkB,EAAE,EAAE;IAChE,MAAM,EAAC,WAAW,EAAE,YAAY,EAAC,GAAG,aAAa,CAAC,EAAC,KAAK,EAAE,MAAM,EAAC,CAAC,CAAC;IAEnE,OAAO;;iBAEM,KAAK;kBACJ,MAAM;;uBAED,WAAW,IAAI,YAAY;;;;;;;;;;CAUjD,CAAC;AACF,CAAC,CAAC","sourcesContent":["import type {CommonIconProps} from '../types';\nimport {getParsedRect} from '../utils';\n\nexport const DashDotLineIcon = ({height, width}: CommonIconProps) => {\n const {parsedWidth, parsedHeight} = getParsedRect({width, height});\n\n return `\n <svg\n width=\"${width}\"\n height=\"${height}\"\n fill=\"none\"\n viewBox=\"0 0 ${parsedWidth} ${parsedHeight}\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M30 2h8V0h-8v2zM8 2h8V0H8v2zM22 2h2V0h-2v2zM0 2h2V0H0v2z\"\n fill=\"currentColor\"\n />\n </svg>\n`;\n};\n"]}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { getParsedRect } from "../utils.js";
|
|
2
|
+
export const DashLineIcon = ({ height, width }) => {
|
|
3
|
+
const { parsedWidth, parsedHeight } = getParsedRect({ width, height });
|
|
4
|
+
return `<svg
|
|
5
|
+
width="${width}"
|
|
6
|
+
height="${height}"
|
|
7
|
+
fill="none"
|
|
8
|
+
viewBox="0 0 ${parsedWidth} ${parsedHeight}"
|
|
9
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
10
|
+
>
|
|
11
|
+
<g clipPath="url(#a)">
|
|
12
|
+
<path
|
|
13
|
+
fillRule="evenodd"
|
|
14
|
+
clipRule="evenodd"
|
|
15
|
+
d="M-5 2h-4V0h4v2zM9 2H1V0h8v2zm14 0h-8V0h8v2zm14 0h-8V0h8v2zm14 0h-8V0h8v2zm14 0h-8V0h8v2zm14 0h-8V0h8v2zm14 0h-8V0h8v2zm14 0h-8V0h8v2zm14 0h-8V0h8v2zm14 0h-8V0h8v2zm14 0h-8V0h8v2zm14 0h-8V0h8v2zm14 0h-8V0h8v2zm14 0h-8V0h8v2zm14 0h-8V0h8v2zm14 0h-8V0h8v2zm14 0h-8V0h8v2zm14 0h-8V0h8v2zm14 0h-8V0h8v2zm10 0h-4V0h4v2z"
|
|
16
|
+
fill="currentColor"
|
|
17
|
+
/>
|
|
18
|
+
</g>
|
|
19
|
+
<defs>
|
|
20
|
+
<clipPath id="a">
|
|
21
|
+
<path fill="#fff" d="M0 0h260v2H0z" />
|
|
22
|
+
</clipPath>
|
|
23
|
+
</defs>
|
|
24
|
+
</svg>`;
|
|
25
|
+
};
|
|
26
|
+
//# sourceMappingURL=DashLineIcon.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DashLineIcon.js","sourceRoot":"../../../../../../../../../src","sources":["plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/template-icons/DashLineIcon.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,aAAa,EAAC,oBAAiB;AAEvC,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,EAAC,MAAM,EAAE,KAAK,EAAkB,EAAE,EAAE;IAC7D,MAAM,EAAC,WAAW,EAAE,YAAY,EAAC,GAAG,aAAa,CAAC,EAAC,KAAK,EAAE,MAAM,EAAC,CAAC,CAAC;IAEnE,OAAO;iBACM,KAAK;kBACJ,MAAM;;uBAED,WAAW,IAAI,YAAY;;;;;;;;;;;;;;;;WAgBvC,CAAC;AACZ,CAAC,CAAC","sourcesContent":["import type {CommonIconProps} from '../types';\nimport {getParsedRect} from '../utils';\n\nexport const DashLineIcon = ({height, width}: CommonIconProps) => {\n const {parsedWidth, parsedHeight} = getParsedRect({width, height});\n\n return `<svg\n width=\"${width}\"\n height=\"${height}\"\n fill=\"none\"\n viewBox=\"0 0 ${parsedWidth} ${parsedHeight}\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <g clipPath=\"url(#a)\">\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M-5 2h-4V0h4v2zM9 2H1V0h8v2zm14 0h-8V0h8v2zm14 0h-8V0h8v2zm14 0h-8V0h8v2zm14 0h-8V0h8v2zm14 0h-8V0h8v2zm14 0h-8V0h8v2zm14 0h-8V0h8v2zm14 0h-8V0h8v2zm14 0h-8V0h8v2zm14 0h-8V0h8v2zm14 0h-8V0h8v2zm14 0h-8V0h8v2zm14 0h-8V0h8v2zm14 0h-8V0h8v2zm14 0h-8V0h8v2zm14 0h-8V0h8v2zm14 0h-8V0h8v2zm14 0h-8V0h8v2zm10 0h-4V0h4v2z\"\n fill=\"currentColor\"\n />\n </g>\n <defs>\n <clipPath id=\"a\">\n <path fill=\"#fff\" d=\"M0 0h260v2H0z\" />\n </clipPath>\n </defs>\n </svg>`;\n};\n"]}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { getParsedRect } from "../utils.js";
|
|
2
|
+
export const DotLineIcon = ({ height, width }) => {
|
|
3
|
+
const { parsedWidth, parsedHeight } = getParsedRect({ width, height });
|
|
4
|
+
return `<svg
|
|
5
|
+
width="${width}"
|
|
6
|
+
height="${height}"
|
|
7
|
+
fill="none"
|
|
8
|
+
viewBox="0 0 ${parsedWidth} ${parsedHeight}"
|
|
9
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
10
|
+
>
|
|
11
|
+
<g clipPath="url(#a)" fill="currentColor">
|
|
12
|
+
<path d="M0 0h2v2H0zM8 0h2v2H8zM16 0h2v2h-2zM24 0h2v2h-2zM32 0h2v2h-2z" />
|
|
13
|
+
</g>
|
|
14
|
+
<defs>
|
|
15
|
+
<clipPath id="a">
|
|
16
|
+
<path fill="#fff" d="M0 0h259v2H0z" />
|
|
17
|
+
</clipPath>
|
|
18
|
+
</defs>
|
|
19
|
+
</svg>`;
|
|
20
|
+
};
|
|
21
|
+
//# sourceMappingURL=DotLineIcon.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DotLineIcon.js","sourceRoot":"../../../../../../../../../src","sources":["plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/template-icons/DotLineIcon.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,aAAa,EAAC,oBAAiB;AAEvC,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,EAAC,MAAM,EAAE,KAAK,EAAkB,EAAE,EAAE;IAC5D,MAAM,EAAC,WAAW,EAAE,YAAY,EAAC,GAAG,aAAa,CAAC,EAAC,KAAK,EAAE,MAAM,EAAC,CAAC,CAAC;IAEnE,OAAO;iBACM,KAAK;kBACJ,MAAM;;uBAED,WAAW,IAAI,YAAY;;;;;;;;;;;WAWvC,CAAC;AACZ,CAAC,CAAC","sourcesContent":["import type {CommonIconProps} from '../types';\nimport {getParsedRect} from '../utils';\n\nexport const DotLineIcon = ({height, width}: CommonIconProps) => {\n const {parsedWidth, parsedHeight} = getParsedRect({width, height});\n\n return `<svg\n width=\"${width}\"\n height=\"${height}\"\n fill=\"none\"\n viewBox=\"0 0 ${parsedWidth} ${parsedHeight}\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <g clipPath=\"url(#a)\" fill=\"currentColor\">\n <path d=\"M0 0h2v2H0zM8 0h2v2H8zM16 0h2v2h-2zM24 0h2v2h-2zM32 0h2v2h-2z\" />\n </g>\n <defs>\n <clipPath id=\"a\">\n <path fill=\"#fff\" d=\"M0 0h259v2H0z\" />\n </clipPath>\n </defs>\n </svg>`;\n};\n"]}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { getParsedRect } from "../utils.js";
|
|
2
|
+
export const LongDashDotDotLineIcon = ({ width, height }) => {
|
|
3
|
+
const { parsedWidth, parsedHeight } = getParsedRect({ width, height });
|
|
4
|
+
return `<svg
|
|
5
|
+
width="${width}"
|
|
6
|
+
height="${height}"
|
|
7
|
+
fill="none"
|
|
8
|
+
viewBox="0 0 ${parsedWidth} ${parsedHeight}"
|
|
9
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
10
|
+
>
|
|
11
|
+
<path
|
|
12
|
+
fillRule="evenodd"
|
|
13
|
+
clipRule="evenodd"
|
|
14
|
+
d="M30 2h16V0H30v2zM-8 2H8V0H-8v2zM22 2h2V0h-2v2zM14 2h2V0h-2v2z"
|
|
15
|
+
fill="currentColor"
|
|
16
|
+
/>
|
|
17
|
+
</svg>`;
|
|
18
|
+
};
|
|
19
|
+
//# sourceMappingURL=LongDashDotDotLineIcon.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LongDashDotDotLineIcon.js","sourceRoot":"../../../../../../../../../src","sources":["plugins/highcharts/renderer/helpers/tooltip/render-shape-icon/template-icons/LongDashDotDotLineIcon.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,aAAa,EAAC,oBAAiB;AAEvC,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,EAAC,KAAK,EAAE,MAAM,EAAkB,EAAE,EAAE;IACvE,MAAM,EAAC,WAAW,EAAE,YAAY,EAAC,GAAG,aAAa,CAAC,EAAC,KAAK,EAAE,MAAM,EAAC,CAAC,CAAC;IAEnE,OAAO;iBACM,KAAK;kBACJ,MAAM;;uBAED,WAAW,IAAI,YAAY;;;;;;;;;WASvC,CAAC;AACZ,CAAC,CAAC","sourcesContent":["import type {CommonIconProps} from '../types';\nimport {getParsedRect} from '../utils';\n\nexport const LongDashDotDotLineIcon = ({width, height}: CommonIconProps) => {\n const {parsedWidth, parsedHeight} = getParsedRect({width, height});\n\n return `<svg\n width=\"${width}\"\n height=\"${height}\"\n fill=\"none\"\n viewBox=\"0 0 ${parsedWidth} ${parsedHeight}\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M30 2h16V0H30v2zM-8 2H8V0H-8v2zM22 2h2V0h-2v2zM14 2h2V0h-2v2z\"\n fill=\"currentColor\"\n />\n </svg>`;\n};\n"]}
|