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