@progress/kendo-react-charts 7.2.4-develop.2 → 7.2.4-develop.4
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/BaseChart.js +8 -0
- package/BaseChart.mjs +248 -0
- package/Chart.js +8 -0
- package/Chart.mjs +58 -0
- package/ChartBreadcrumb.js +8 -0
- package/ChartBreadcrumb.mjs +77 -0
- package/ChartContext.js +8 -0
- package/ChartContext.mjs +14 -0
- package/Container.js +8 -0
- package/Container.mjs +13 -0
- package/DonutCenter.js +8 -0
- package/DonutCenter.mjs +48 -0
- package/Sparkline.js +8 -0
- package/Sparkline.mjs +60 -0
- package/StockChart.js +8 -0
- package/StockChart.mjs +68 -0
- package/components/AxisDefaults.js +8 -0
- package/components/AxisDefaults.mjs +14 -0
- package/components/CategoryAxis.js +8 -0
- package/components/CategoryAxis.mjs +21 -0
- package/components/CategoryAxisItem.js +8 -0
- package/components/CategoryAxisItem.mjs +15 -0
- package/components/ChartArea.js +8 -0
- package/components/ChartArea.mjs +14 -0
- package/components/Legend.js +8 -0
- package/components/Legend.mjs +14 -0
- package/components/Navigator.js +8 -0
- package/components/Navigator.mjs +14 -0
- package/components/Pane.js +8 -0
- package/components/Pane.mjs +15 -0
- package/components/PaneDefaults.js +8 -0
- package/components/PaneDefaults.mjs +15 -0
- package/components/Panes.js +8 -0
- package/components/Panes.mjs +21 -0
- package/components/PlotArea.js +8 -0
- package/components/PlotArea.mjs +14 -0
- package/components/Series.js +8 -0
- package/components/Series.mjs +21 -0
- package/components/SeriesDefaults.js +8 -0
- package/components/SeriesDefaults.mjs +14 -0
- package/components/SeriesItem.js +8 -0
- package/components/SeriesItem.mjs +30 -0
- package/components/Subtitle.js +8 -0
- package/components/Subtitle.mjs +14 -0
- package/components/Title.js +8 -0
- package/components/Title.mjs +14 -0
- package/components/Tooltip.js +8 -0
- package/components/Tooltip.mjs +14 -0
- package/components/ValueAxis.js +8 -0
- package/components/ValueAxis.mjs +21 -0
- package/components/ValueAxisItem.js +8 -0
- package/components/ValueAxisItem.mjs +15 -0
- package/components/XAxis.js +8 -0
- package/components/XAxis.mjs +21 -0
- package/components/XAxisItem.js +8 -0
- package/components/XAxisItem.mjs +15 -0
- package/components/YAxis.js +8 -0
- package/components/YAxis.mjs +21 -0
- package/components/YAxisItem.js +8 -0
- package/components/YAxisItem.mjs +15 -0
- package/components/Zoomable.js +8 -0
- package/components/Zoomable.mjs +14 -0
- package/components/axis-defaults/Crosshair.js +8 -0
- package/components/axis-defaults/Crosshair.mjs +15 -0
- package/components/axis-defaults/CrosshairTooltip.js +8 -0
- package/components/axis-defaults/CrosshairTooltip.mjs +15 -0
- package/components/axis-defaults/Labels.js +8 -0
- package/components/axis-defaults/Labels.mjs +15 -0
- package/components/axis-defaults/Title.js +8 -0
- package/components/axis-defaults/Title.mjs +15 -0
- package/components/base/CollectionConfigurationComponent.js +8 -0
- package/components/base/CollectionConfigurationComponent.mjs +35 -0
- package/components/base/ConfigurationComponent.js +8 -0
- package/components/base/ConfigurationComponent.mjs +47 -0
- package/components/category-axis-item/Crosshair.js +8 -0
- package/components/category-axis-item/Crosshair.mjs +14 -0
- package/components/category-axis-item/CrosshairTooltip.js +8 -0
- package/components/category-axis-item/CrosshairTooltip.mjs +14 -0
- package/components/category-axis-item/Labels.js +8 -0
- package/components/category-axis-item/Labels.mjs +14 -0
- package/components/category-axis-item/Notes.js +8 -0
- package/components/category-axis-item/Notes.mjs +14 -0
- package/components/category-axis-item/NotesIcon.js +8 -0
- package/components/category-axis-item/NotesIcon.mjs +14 -0
- package/components/category-axis-item/NotesLabel.js +8 -0
- package/components/category-axis-item/NotesLabel.mjs +14 -0
- package/components/category-axis-item/RangeLabels.js +8 -0
- package/components/category-axis-item/RangeLabels.mjs +14 -0
- package/components/category-axis-item/Title.js +8 -0
- package/components/category-axis-item/Title.mjs +15 -0
- package/components/legend/InactiveItems.js +8 -0
- package/components/legend/InactiveItems.mjs +15 -0
- package/components/legend/Item.js +8 -0
- package/components/legend/Item.mjs +15 -0
- package/components/legend/Title.js +8 -0
- package/components/legend/Title.mjs +15 -0
- package/components/navigator/CategoryAxis.js +8 -0
- package/components/navigator/CategoryAxis.mjs +15 -0
- package/components/navigator/Hint.js +8 -0
- package/components/navigator/Hint.mjs +14 -0
- package/components/navigator/Pane.js +8 -0
- package/components/navigator/Pane.mjs +15 -0
- package/components/navigator/Select.js +8 -0
- package/components/navigator/Select.mjs +14 -0
- package/components/navigator/Series.js +8 -0
- package/components/navigator/Series.mjs +21 -0
- package/components/navigator/SeriesItem.js +8 -0
- package/components/navigator/SeriesItem.mjs +15 -0
- package/components/pane-defaults/Title.js +8 -0
- package/components/pane-defaults/Title.mjs +15 -0
- package/components/series-item/ErrorBars.js +8 -0
- package/components/series-item/ErrorBars.mjs +14 -0
- package/components/series-item/Extremes.js +8 -0
- package/components/series-item/Extremes.mjs +14 -0
- package/components/series-item/Highlight.js +8 -0
- package/components/series-item/Highlight.mjs +14 -0
- package/components/series-item/Labels.js +8 -0
- package/components/series-item/Labels.mjs +14 -0
- package/components/series-item/LabelsFrom.js +8 -0
- package/components/series-item/LabelsFrom.mjs +14 -0
- package/components/series-item/LabelsTo.js +8 -0
- package/components/series-item/LabelsTo.mjs +14 -0
- package/components/series-item/Markers.js +8 -0
- package/components/series-item/Markers.mjs +14 -0
- package/components/series-item/Notes.js +8 -0
- package/components/series-item/Notes.mjs +14 -0
- package/components/series-item/NotesIcon.js +8 -0
- package/components/series-item/NotesIcon.mjs +14 -0
- package/components/series-item/NotesLabel.js +8 -0
- package/components/series-item/NotesLabel.mjs +14 -0
- package/components/series-item/Outliers.js +8 -0
- package/components/series-item/Outliers.mjs +14 -0
- package/components/series-item/Tooltip.js +8 -0
- package/components/series-item/Tooltip.mjs +14 -0
- package/components/value-axis-item/Crosshair.js +8 -0
- package/components/value-axis-item/Crosshair.mjs +14 -0
- package/components/value-axis-item/CrosshairTooltip.js +8 -0
- package/components/value-axis-item/CrosshairTooltip.mjs +14 -0
- package/components/value-axis-item/Labels.js +8 -0
- package/components/value-axis-item/Labels.mjs +14 -0
- package/components/value-axis-item/Notes.js +8 -0
- package/components/value-axis-item/Notes.mjs +14 -0
- package/components/value-axis-item/NotesIcon.js +8 -0
- package/components/value-axis-item/NotesIcon.mjs +14 -0
- package/components/value-axis-item/NotesLabel.js +8 -0
- package/components/value-axis-item/NotesLabel.mjs +14 -0
- package/components/value-axis-item/Title.js +8 -0
- package/components/value-axis-item/Title.mjs +15 -0
- package/components/x-axis-item/Crosshair.js +8 -0
- package/components/x-axis-item/Crosshair.mjs +14 -0
- package/components/x-axis-item/CrosshairTooltip.js +8 -0
- package/components/x-axis-item/CrosshairTooltip.mjs +14 -0
- package/components/x-axis-item/Labels.js +8 -0
- package/components/x-axis-item/Labels.mjs +14 -0
- package/components/x-axis-item/Notes.js +8 -0
- package/components/x-axis-item/Notes.mjs +14 -0
- package/components/x-axis-item/NotesIcon.js +8 -0
- package/components/x-axis-item/NotesIcon.mjs +14 -0
- package/components/x-axis-item/NotesLabel.js +8 -0
- package/components/x-axis-item/NotesLabel.mjs +14 -0
- package/components/x-axis-item/Title.js +8 -0
- package/components/x-axis-item/Title.mjs +15 -0
- package/components/y-axis-item/Crosshair.js +8 -0
- package/components/y-axis-item/Crosshair.mjs +14 -0
- package/components/y-axis-item/CrosshairTooltip.js +8 -0
- package/components/y-axis-item/CrosshairTooltip.mjs +14 -0
- package/components/y-axis-item/Labels.js +8 -0
- package/components/y-axis-item/Labels.mjs +14 -0
- package/components/y-axis-item/Notes.js +8 -0
- package/components/y-axis-item/Notes.mjs +14 -0
- package/components/y-axis-item/NotesIcon.js +8 -0
- package/components/y-axis-item/NotesIcon.mjs +14 -0
- package/components/y-axis-item/NotesLabel.js +8 -0
- package/components/y-axis-item/NotesLabel.mjs +14 -0
- package/components/y-axis-item/Title.js +8 -0
- package/components/y-axis-item/Title.mjs +15 -0
- package/dist/cdn/js/kendo-react-charts.js +8 -65
- package/events/axis-label-click-event.js +8 -0
- package/events/axis-label-click-event.mjs +20 -0
- package/events/base-event.js +8 -0
- package/events/base-event.mjs +19 -0
- package/events/chart-event-builder.js +8 -0
- package/events/chart-event-builder.mjs +61 -0
- package/events/dom-event.js +8 -0
- package/events/dom-event.mjs +23 -0
- package/events/dom-events-builder.js +8 -0
- package/events/dom-events-builder.mjs +33 -0
- package/events/dom-events.js +8 -0
- package/events/dom-events.mjs +128 -0
- package/events/drag-end-event.js +8 -0
- package/events/drag-end-event.mjs +20 -0
- package/events/drag-event.js +8 -0
- package/events/drag-event.mjs +20 -0
- package/events/drag-start-event.js +8 -0
- package/events/drag-start-event.mjs +20 -0
- package/events/drilldown-event.js +8 -0
- package/events/drilldown-event.mjs +20 -0
- package/events/drilldown-state-change-event.js +8 -0
- package/events/drilldown-state-change-event.mjs +19 -0
- package/events/legend-item-click-event.js +8 -0
- package/events/legend-item-click-event.mjs +26 -0
- package/events/legend-item-hover-event.js +8 -0
- package/events/legend-item-hover-event.mjs +26 -0
- package/events/legend-item-leave-event.js +8 -0
- package/events/legend-item-leave-event.mjs +26 -0
- package/events/navigator-filter-event.js +8 -0
- package/events/navigator-filter-event.mjs +20 -0
- package/events/note-click-event.js +8 -0
- package/events/note-click-event.mjs +20 -0
- package/events/note-hover-event.js +8 -0
- package/events/note-hover-event.mjs +20 -0
- package/events/plot-area-click-event.js +8 -0
- package/events/plot-area-click-event.mjs +20 -0
- package/events/plot-area-hover-event.js +8 -0
- package/events/plot-area-hover-event.mjs +20 -0
- package/events/preventable-event.js +8 -0
- package/events/preventable-event.mjs +33 -0
- package/events/render-event.js +8 -0
- package/events/render-event.mjs +20 -0
- package/events/select-end-event.js +8 -0
- package/events/select-end-event.mjs +20 -0
- package/events/select-event.js +8 -0
- package/events/select-event.mjs +20 -0
- package/events/select-start-event.js +8 -0
- package/events/select-start-event.mjs +20 -0
- package/events/series-click-event.js +8 -0
- package/events/series-click-event.mjs +21 -0
- package/events/series-hover-event.js +8 -0
- package/events/series-hover-event.mjs +20 -0
- package/events/zoom-end-event.js +8 -0
- package/events/zoom-end-event.mjs +21 -0
- package/events/zoom-event.js +8 -0
- package/events/zoom-event.mjs +21 -0
- package/events/zoom-start-event.js +8 -0
- package/events/zoom-start-event.mjs +21 -0
- package/index.d.mts +8704 -5
- package/index.d.ts +8704 -34
- package/index.js +8 -65
- package/index.mjs +240 -1820
- package/methods/index.js +8 -0
- package/methods/index.mjs +27 -0
- package/package-metadata.js +8 -0
- package/package-metadata.mjs +19 -0
- package/package.json +5 -5
- package/sankey/Sankey.js +8 -0
- package/sankey/Sankey.mjs +65 -0
- package/sankey/propTypes.js +8 -0
- package/sankey/propTypes.mjs +82 -0
- package/sankey/theme-service.js +25 -0
- package/sankey/theme-service.mjs +98 -0
- package/store/reducer.js +8 -0
- package/store/reducer.mjs +59 -0
- package/store/store.js +8 -0
- package/store/store.mjs +20 -0
- package/theming/theme-service.js +51 -0
- package/theming/theme-service.mjs +122 -0
- package/tooltip/Crosshair.js +8 -0
- package/tooltip/Crosshair.mjs +70 -0
- package/tooltip/CrosshairContainer.js +8 -0
- package/tooltip/CrosshairContainer.mjs +65 -0
- package/tooltip/Point.js +8 -0
- package/tooltip/Point.mjs +22 -0
- package/tooltip/Popup.js +8 -0
- package/tooltip/Popup.mjs +69 -0
- package/tooltip/Series.js +8 -0
- package/tooltip/Series.mjs +112 -0
- package/tooltip/SharedTooltipContent.js +8 -0
- package/tooltip/SharedTooltipContent.mjs +22 -0
- package/utils/index.js +8 -0
- package/utils/index.mjs +31 -0
- package/BaseChart.d.ts +0 -125
- package/BaseChartProps.d.ts +0 -199
- package/Chart.d.ts +0 -82
- package/ChartBreadcrumb.d.ts +0 -46
- package/ChartContext.d.ts +0 -21
- package/ChartProps.d.ts +0 -14
- package/Container.d.ts +0 -12
- package/DonutCenter.d.ts +0 -41
- package/Sparkline.d.ts +0 -91
- package/SparklineProps.d.ts +0 -18
- package/StockChart.d.ts +0 -45
- package/StockChartProps.d.ts +0 -19
- package/api-types/axis-range.interface.d.ts +0 -17
- package/api-types/chart-axis.interface.d.ts +0 -40
- package/api-types/chart-drilldown-state.interface.d.ts +0 -28
- package/api-types/chart-pane.interface.d.ts +0 -18
- package/api-types/chart-plotarea.interface.d.ts +0 -18
- package/api-types/event-axis-options.interface.d.ts +0 -13
- package/api-types/event-series-options.interface.d.ts +0 -21
- package/api-types/series-point.interface.d.ts +0 -42
- package/argument-types/axis-label-visual-args.interface.d.ts +0 -47
- package/argument-types/axis-note-visual-args.interface.d.ts +0 -31
- package/argument-types/drilldown-series-factory-props.interface.d.ts +0 -21
- package/argument-types/error-bars-visual-args.interface.d.ts +0 -35
- package/argument-types/highlight-toggle-args.interface.d.ts +0 -38
- package/argument-types/highlight-visual-args.interface.d.ts +0 -55
- package/argument-types/legend-item-visual-args.interface.d.ts +0 -31
- package/argument-types/legend-labels-content-args.interface.d.ts +0 -25
- package/argument-types/markers-visual-args.interface.d.ts +0 -43
- package/argument-types/plot-band-label-visual-args.interface.d.ts +0 -31
- package/argument-types/series-labels-visual-args.interface.d.ts +0 -31
- package/argument-types/series-note-visual-args.interface.d.ts +0 -47
- package/argument-types/series-visual-args.interface.d.ts +0 -80
- package/argument-types/title-visual-args.interface.d.ts +0 -31
- package/common/api-types.d.ts +0 -12
- package/common/charts.d.ts +0 -9
- package/common/events.d.ts +0 -26
- package/common/property-types.d.ts +0 -136
- package/components/AxisDefaults.d.ts +0 -13
- package/components/CategoryAxis.d.ts +0 -13
- package/components/CategoryAxisItem.d.ts +0 -17
- package/components/ChartArea.d.ts +0 -13
- package/components/Legend.d.ts +0 -17
- package/components/Navigator.d.ts +0 -17
- package/components/Pane.d.ts +0 -13
- package/components/PaneDefaults.d.ts +0 -17
- package/components/Panes.d.ts +0 -13
- package/components/PlotArea.d.ts +0 -13
- package/components/Series.d.ts +0 -13
- package/components/SeriesDefaults.d.ts +0 -13
- package/components/SeriesItem.d.ts +0 -25
- package/components/Subtitle.d.ts +0 -13
- package/components/Title.d.ts +0 -13
- package/components/Tooltip.d.ts +0 -15
- package/components/ValueAxis.d.ts +0 -13
- package/components/ValueAxisItem.d.ts +0 -17
- package/components/XAxis.d.ts +0 -13
- package/components/XAxisItem.d.ts +0 -17
- package/components/YAxis.d.ts +0 -13
- package/components/YAxisItem.d.ts +0 -17
- package/components/Zoomable.d.ts +0 -13
- package/components/axis-defaults/Crosshair.d.ts +0 -13
- package/components/axis-defaults/CrosshairTooltip.d.ts +0 -13
- package/components/axis-defaults/Labels.d.ts +0 -13
- package/components/axis-defaults/Title.d.ts +0 -13
- package/components/axis-defaults/index.d.ts +0 -9
- package/components/base/CollectionConfigurationComponent.d.ts +0 -23
- package/components/base/ConfigurationComponent.d.ts +0 -28
- package/components/category-axis-item/Crosshair.d.ts +0 -17
- package/components/category-axis-item/CrosshairTooltip.d.ts +0 -13
- package/components/category-axis-item/Labels.d.ts +0 -13
- package/components/category-axis-item/Notes.d.ts +0 -13
- package/components/category-axis-item/NotesIcon.d.ts +0 -13
- package/components/category-axis-item/NotesLabel.d.ts +0 -13
- package/components/category-axis-item/RangeLabels.d.ts +0 -13
- package/components/category-axis-item/Select.d.ts +0 -11
- package/components/category-axis-item/Title.d.ts +0 -13
- package/components/category-axis-item/index.d.ts +0 -14
- package/components/index.d.ts +0 -39
- package/components/legend/InactiveItems.d.ts +0 -13
- package/components/legend/Item.d.ts +0 -13
- package/components/legend/Title.d.ts +0 -17
- package/components/legend/index.d.ts +0 -8
- package/components/navigator/CategoryAxis.d.ts +0 -13
- package/components/navigator/Hint.d.ts +0 -13
- package/components/navigator/Pane.d.ts +0 -13
- package/components/navigator/Select.d.ts +0 -13
- package/components/navigator/Series.d.ts +0 -13
- package/components/navigator/SeriesItem.d.ts +0 -13
- package/components/navigator/category-axis/Crosshair.d.ts +0 -13
- package/components/navigator/category-axis/CrosshairTooltip.d.ts +0 -13
- package/components/navigator/category-axis/Labels.d.ts +0 -13
- package/components/navigator/category-axis/Notes.d.ts +0 -13
- package/components/navigator/category-axis/NotesIcon.d.ts +0 -13
- package/components/navigator/category-axis/NotesLabel.d.ts +0 -13
- package/components/navigator/category-axis/Select.d.ts +0 -11
- package/components/navigator/category-axis/Title.d.ts +0 -13
- package/components/navigator/category-axis/index.d.ts +0 -13
- package/components/navigator/index.d.ts +0 -14
- package/components/navigator/pane/Title.d.ts +0 -13
- package/components/navigator/pane/index.d.ts +0 -6
- package/components/navigator/series-item/ErrorBars.d.ts +0 -13
- package/components/navigator/series-item/Extremes.d.ts +0 -13
- package/components/navigator/series-item/Highlight.d.ts +0 -13
- package/components/navigator/series-item/Labels.d.ts +0 -13
- package/components/navigator/series-item/LabelsFrom.d.ts +0 -13
- package/components/navigator/series-item/LabelsTo.d.ts +0 -13
- package/components/navigator/series-item/Markers.d.ts +0 -13
- package/components/navigator/series-item/Notes.d.ts +0 -13
- package/components/navigator/series-item/NotesIcon.d.ts +0 -13
- package/components/navigator/series-item/NotesLabel.d.ts +0 -13
- package/components/navigator/series-item/Outliers.d.ts +0 -13
- package/components/navigator/series-item/Tooltip.d.ts +0 -15
- package/components/navigator/series-item/index.d.ts +0 -17
- package/components/pane/Title.d.ts +0 -13
- package/components/pane/index.d.ts +0 -6
- package/components/pane-defaults/Title.d.ts +0 -13
- package/components/pane-defaults/index.d.ts +0 -6
- package/components/series-defaults/Labels.d.ts +0 -13
- package/components/series-defaults/LabelsFrom.d.ts +0 -13
- package/components/series-defaults/LabelsTo.d.ts +0 -13
- package/components/series-defaults/Notes.d.ts +0 -13
- package/components/series-defaults/NotesIcon.d.ts +0 -13
- package/components/series-defaults/NotesLabel.d.ts +0 -13
- package/components/series-defaults/Tooltip.d.ts +0 -15
- package/components/series-defaults/index.d.ts +0 -12
- package/components/series-item/ErrorBars.d.ts +0 -13
- package/components/series-item/Extremes.d.ts +0 -13
- package/components/series-item/Highlight.d.ts +0 -13
- package/components/series-item/Labels.d.ts +0 -17
- package/components/series-item/LabelsFrom.d.ts +0 -13
- package/components/series-item/LabelsTo.d.ts +0 -13
- package/components/series-item/Markers.d.ts +0 -13
- package/components/series-item/Notes.d.ts +0 -13
- package/components/series-item/NotesIcon.d.ts +0 -13
- package/components/series-item/NotesLabel.d.ts +0 -13
- package/components/series-item/Outliers.d.ts +0 -13
- package/components/series-item/Tooltip.d.ts +0 -15
- package/components/series-item/index.d.ts +0 -17
- package/components/value-axis-item/Crosshair.d.ts +0 -17
- package/components/value-axis-item/CrosshairTooltip.d.ts +0 -13
- package/components/value-axis-item/Labels.d.ts +0 -13
- package/components/value-axis-item/Notes.d.ts +0 -13
- package/components/value-axis-item/NotesIcon.d.ts +0 -13
- package/components/value-axis-item/NotesLabel.d.ts +0 -13
- package/components/value-axis-item/Title.d.ts +0 -13
- package/components/value-axis-item/index.d.ts +0 -12
- package/components/x-axis-item/Crosshair.d.ts +0 -17
- package/components/x-axis-item/CrosshairTooltip.d.ts +0 -13
- package/components/x-axis-item/Labels.d.ts +0 -13
- package/components/x-axis-item/Notes.d.ts +0 -13
- package/components/x-axis-item/NotesIcon.d.ts +0 -13
- package/components/x-axis-item/NotesLabel.d.ts +0 -13
- package/components/x-axis-item/Title.d.ts +0 -13
- package/components/x-axis-item/index.d.ts +0 -12
- package/components/y-axis-item/Crosshair.d.ts +0 -17
- package/components/y-axis-item/CrosshairTooltip.d.ts +0 -13
- package/components/y-axis-item/Labels.d.ts +0 -13
- package/components/y-axis-item/Notes.d.ts +0 -13
- package/components/y-axis-item/NotesIcon.d.ts +0 -13
- package/components/y-axis-item/NotesLabel.d.ts +0 -13
- package/components/y-axis-item/Title.d.ts +0 -13
- package/components/y-axis-item/index.d.ts +0 -12
- package/events/axis-label-click-event.d.ts +0 -36
- package/events/base-event.d.ts +0 -18
- package/events/chart-event-builder.d.ts +0 -10
- package/events/dom-event.d.ts +0 -23
- package/events/dom-events-builder.d.ts +0 -11
- package/events/dom-events.d.ts +0 -28
- package/events/drag-end-event.d.ts +0 -26
- package/events/drag-event.d.ts +0 -26
- package/events/drag-start-event.d.ts +0 -26
- package/events/drilldown-event.d.ts +0 -42
- package/events/drilldown-state-change-event.d.ts +0 -26
- package/events/legend-item-click-event.d.ts +0 -36
- package/events/legend-item-hover-event.d.ts +0 -36
- package/events/legend-item-leave-event.d.ts +0 -36
- package/events/navigator-filter-event.d.ts +0 -23
- package/events/note-click-event.d.ts +0 -36
- package/events/note-hover-event.d.ts +0 -36
- package/events/plot-area-click-event.d.ts +0 -35
- package/events/plot-area-hover-event.d.ts +0 -35
- package/events/preventable-event.d.ts +0 -22
- package/events/render-event.d.ts +0 -15
- package/events/select-end-event.d.ts +0 -28
- package/events/select-event.d.ts +0 -28
- package/events/select-start-event.d.ts +0 -28
- package/events/series-click-event.d.ts +0 -49
- package/events/series-hover-event.d.ts +0 -53
- package/events/zoom-end-event.d.ts +0 -28
- package/events/zoom-event.d.ts +0 -32
- package/events/zoom-start-event.d.ts +0 -26
- package/field-types/auto-base-unit-steps.interface.d.ts +0 -43
- package/field-types/axis-labels-position.d.ts +0 -26
- package/field-types/axis-line.interface.d.ts +0 -26
- package/field-types/axis-ticks.interface.d.ts +0 -33
- package/field-types/axis-title-position.d.ts +0 -26
- package/field-types/base-unit.d.ts +0 -38
- package/field-types/border.interface.d.ts +0 -22
- package/field-types/bullet-target-line.interface.d.ts +0 -13
- package/field-types/bullet-target.interface.d.ts +0 -23
- package/field-types/category-base-unit.d.ts +0 -39
- package/field-types/dash-type.d.ts +0 -32
- package/field-types/date-formats.interface.d.ts +0 -43
- package/field-types/drag-action.interface.d.ts +0 -19
- package/field-types/error-bar-line.interface.d.ts +0 -18
- package/field-types/grid-lines.interface.d.ts +0 -34
- package/field-types/highlight-line.interface.d.ts +0 -26
- package/field-types/label-connectors.interface.d.ts +0 -21
- package/field-types/label-rotation.interface.d.ts +0 -23
- package/field-types/legend-labels.interface.d.ts +0 -32
- package/field-types/line-style.d.ts +0 -32
- package/field-types/lock-axis.d.ts +0 -8
- package/field-types/margin.interface.d.ts +0 -25
- package/field-types/marker-type.d.ts +0 -35
- package/field-types/modifier-key.d.ts +0 -8
- package/field-types/mousewheel-select.interface.d.ts +0 -22
- package/field-types/mousewheel-zoom.interface.d.ts +0 -22
- package/field-types/negative-bubble-values.interface.d.ts +0 -17
- package/field-types/note-label-position.d.ts +0 -33
- package/field-types/note-line.interface.d.ts +0 -26
- package/field-types/note-position.d.ts +0 -33
- package/field-types/overlay.interface.d.ts +0 -19
- package/field-types/padding.interface.d.ts +0 -10
- package/field-types/plot-band-label.interface.d.ts +0 -91
- package/field-types/plot-band.interface.d.ts +0 -34
- package/field-types/series-labels-position.d.ts +0 -20
- package/field-types/series-line.interface.d.ts +0 -32
- package/field-types/series-stack.interface.d.ts +0 -21
- package/field-types/series-type.d.ts +0 -73
- package/field-types/trendline-forecast.interface.d.ts +0 -17
- package/field-types/week-start-day.enum.d.ts +0 -37
- package/methods/index.d.ts +0 -40
- package/option-types/axis-defaults/crosshair.interface.d.ts +0 -45
- package/option-types/axis-defaults/crosshair.tooltip.interface.d.ts +0 -38
- package/option-types/axis-defaults/labels.interface.d.ts +0 -73
- package/option-types/axis-defaults/title.interface.d.ts +0 -71
- package/option-types/axis-defaults.interface.d.ts +0 -77
- package/option-types/category-axis-item/crosshair.interface.d.ts +0 -44
- package/option-types/category-axis-item/crosshair.tooltip.interface.d.ts +0 -38
- package/option-types/category-axis-item/labels.interface.d.ts +0 -108
- package/option-types/category-axis-item/notes.icon.interface.d.ts +0 -36
- package/option-types/category-axis-item/notes.interface.d.ts +0 -49
- package/option-types/category-axis-item/notes.label.interface.d.ts +0 -50
- package/option-types/category-axis-item/range-labels.interface.d.ts +0 -28
- package/option-types/category-axis-item/select.interface.d.ts +0 -30
- package/option-types/category-axis-item/title.interface.d.ts +0 -69
- package/option-types/category-axis-item.interface.d.ts +0 -163
- package/option-types/chart-area.interface.d.ts +0 -34
- package/option-types/legend/inactive-items.interface.d.ts +0 -14
- package/option-types/legend/item.interface.d.ts +0 -121
- package/option-types/legend/legend-title.interface.d.ts +0 -65
- package/option-types/legend.interface.d.ts +0 -98
- package/option-types/navigator/hint.interface.d.ts +0 -25
- package/option-types/navigator/select.interface.d.ts +0 -22
- package/option-types/navigator.interface.d.ts +0 -41
- package/option-types/pane/title.interface.d.ts +0 -60
- package/option-types/pane-defaults/title.interface.d.ts +0 -56
- package/option-types/pane-defaults.interface.d.ts +0 -43
- package/option-types/pane.interface.d.ts +0 -43
- package/option-types/plot-area.interface.d.ts +0 -30
- package/option-types/series-defaults/labels.from.interface.d.ts +0 -55
- package/option-types/series-defaults/labels.interface.d.ts +0 -77
- package/option-types/series-defaults/labels.to.interface.d.ts +0 -55
- package/option-types/series-defaults/notes.icon.interface.d.ts +0 -36
- package/option-types/series-defaults/notes.interface.d.ts +0 -40
- package/option-types/series-defaults/notes.label.interface.d.ts +0 -50
- package/option-types/series-defaults/tooltip.interface.d.ts +0 -45
- package/option-types/series-defaults.interface.d.ts +0 -95
- package/option-types/series-item/error-bars.interface.d.ts +0 -59
- package/option-types/series-item/extremes.interface.d.ts +0 -36
- package/option-types/series-item/highlight.interface.d.ts +0 -67
- package/option-types/series-item/labels.from.interface.d.ts +0 -71
- package/option-types/series-item/labels.interface.d.ts +0 -101
- package/option-types/series-item/labels.to.interface.d.ts +0 -69
- package/option-types/series-item/markers.interface.d.ts +0 -69
- package/option-types/series-item/notes.icon.interface.d.ts +0 -36
- package/option-types/series-item/notes.interface.d.ts +0 -50
- package/option-types/series-item/notes.label.interface.d.ts +0 -50
- package/option-types/series-item/outliers.interface.d.ts +0 -36
- package/option-types/series-item/tooltip.interface.d.ts +0 -46
- package/option-types/series-item/trendline.interface.d.ts +0 -34
- package/option-types/series-item.interface.d.ts +0 -474
- package/option-types/subtitle.interface.d.ts +0 -65
- package/option-types/title.interface.d.ts +0 -59
- package/option-types/tooltip.interface.d.ts +0 -52
- package/option-types/value-axis-item/crosshair.interface.d.ts +0 -30
- package/option-types/value-axis-item/crosshair.tooltip.interface.d.ts +0 -38
- package/option-types/value-axis-item/labels.interface.d.ts +0 -86
- package/option-types/value-axis-item/notes.icon.interface.d.ts +0 -36
- package/option-types/value-axis-item/notes.interface.d.ts +0 -49
- package/option-types/value-axis-item/notes.label.interface.d.ts +0 -50
- package/option-types/value-axis-item/title.interface.d.ts +0 -70
- package/option-types/value-axis-item.interface.d.ts +0 -118
- package/option-types/x-axis-item/crosshair.interface.d.ts +0 -30
- package/option-types/x-axis-item/crosshair.tooltip.interface.d.ts +0 -38
- package/option-types/x-axis-item/labels.interface.d.ts +0 -93
- package/option-types/x-axis-item/notes.icon.interface.d.ts +0 -36
- package/option-types/x-axis-item/notes.interface.d.ts +0 -50
- package/option-types/x-axis-item/notes.label.interface.d.ts +0 -50
- package/option-types/x-axis-item/title.interface.d.ts +0 -69
- package/option-types/x-axis-item.interface.d.ts +0 -139
- package/option-types/y-axis-item/crosshair.interface.d.ts +0 -30
- package/option-types/y-axis-item/crosshair.tooltip.interface.d.ts +0 -38
- package/option-types/y-axis-item/labels.interface.d.ts +0 -93
- package/option-types/y-axis-item/notes.icon.interface.d.ts +0 -36
- package/option-types/y-axis-item/notes.interface.d.ts +0 -49
- package/option-types/y-axis-item/notes.label.interface.d.ts +0 -50
- package/option-types/y-axis-item/title.interface.d.ts +0 -70
- package/option-types/y-axis-item.interface.d.ts +0 -135
- package/option-types/zoomable.interface.d.ts +0 -18
- package/package-metadata.d.ts +0 -9
- package/sankey/Sankey.d.ts +0 -10
- package/sankey/index.d.ts +0 -7
- package/sankey/propTypes.d.ts +0 -117
- package/sankey/theme-service.d.ts +0 -9
- package/sankey/types.d.ts +0 -124
- package/store/reducer.d.ts +0 -18
- package/store/store.d.ts +0 -30
- package/theming/theme-service.d.ts +0 -10
- package/tooltip/Context.d.ts +0 -15
- package/tooltip/Crosshair.d.ts +0 -40
- package/tooltip/CrosshairContainer.d.ts +0 -32
- package/tooltip/Point.d.ts +0 -72
- package/tooltip/Popup.d.ts +0 -35
- package/tooltip/Series.d.ts +0 -39
- package/tooltip/SharedTooltipContent.d.ts +0 -15
- package/tooltip/index.d.ts +0 -7
- package/utils/index.d.ts +0 -17
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
"use client";
|
|
9
|
+
import { chartBaseTheme as n } from "@progress/kendo-charts";
|
|
10
|
+
const r = (t) => `${t.fontWeight} ${t.fontSize} ${t.fontFamily}`, d = (t) => window.getComputedStyle(t).backgroundColor, v = (t) => t.toLowerCase().charCodeAt(0) - 97, u = (t) => {
|
|
11
|
+
const e = t.match(/series-([a-z])$/);
|
|
12
|
+
if (e !== null)
|
|
13
|
+
return v(e[1]);
|
|
14
|
+
const s = t.split("--series-")[1];
|
|
15
|
+
return parseInt(s, 10) - 1;
|
|
16
|
+
}, m = 30, p = () => {
|
|
17
|
+
let t = `
|
|
18
|
+
<div class="k-var--series-a"></div>
|
|
19
|
+
<div class="k-var--series-b"></div>
|
|
20
|
+
<div class="k-var--series-c"></div>
|
|
21
|
+
<div class="k-var--series-d"></div>
|
|
22
|
+
<div class="k-var--series-e"></div>
|
|
23
|
+
<div class="k-var--series-f"></div>
|
|
24
|
+
`;
|
|
25
|
+
for (let e = 0; e < m; e++)
|
|
26
|
+
t += `
|
|
27
|
+
<div class="k-var--series-${e + 1}"></div>`;
|
|
28
|
+
return t;
|
|
29
|
+
}, f = `
|
|
30
|
+
<div class="k-var--primary"></div>
|
|
31
|
+
<div class="k-var--base"></div>
|
|
32
|
+
<div class="k-var--background"></div>
|
|
33
|
+
|
|
34
|
+
<div class="k-var--normal-background"></div>
|
|
35
|
+
<div class="k-var--normal-text-color"></div>
|
|
36
|
+
<div class="k-var--hover-background"></div>
|
|
37
|
+
<div class="k-var--hover-text-color"></div>
|
|
38
|
+
<div class="k-var--selected-background"></div>
|
|
39
|
+
<div class="k-var--selected-text-color"></div>
|
|
40
|
+
<div class="k-var--chart-error-bars-background"></div>
|
|
41
|
+
<div class="k-var--chart-notes-background"></div>
|
|
42
|
+
<div class="k-var--chart-notes-border"></div>
|
|
43
|
+
<div class="k-var--chart-notes-lines"></div>
|
|
44
|
+
<div class="k-var--chart-crosshair-background"></div>
|
|
45
|
+
|
|
46
|
+
<div class="k-var--chart-inactive"></div>
|
|
47
|
+
<div class="k-var--chart-major-lines"></div>
|
|
48
|
+
<div class="k-var--chart-minor-lines"></div>
|
|
49
|
+
<div class="k-var--chart-area-opacity"></div>
|
|
50
|
+
<div class="k-var--chart-area-inactive-opacity"></div>
|
|
51
|
+
<div class="k-var--chart-line-inactive-opacity"></div>
|
|
52
|
+
|
|
53
|
+
<div class="k-widget k-chart">
|
|
54
|
+
<div class="k-var--chart-font"></div>
|
|
55
|
+
<div class="k-var--chart-title-font"></div>
|
|
56
|
+
<div class="k-var--chart-pane-title-font"></div>
|
|
57
|
+
<div class="k-var--chart-label-font"></div>
|
|
58
|
+
</div>
|
|
59
|
+
|
|
60
|
+
<div class="k-var--series-unset"></div>
|
|
61
|
+
<div class="k-var--series">
|
|
62
|
+
${p()}
|
|
63
|
+
</div>
|
|
64
|
+
`;
|
|
65
|
+
class y {
|
|
66
|
+
constructor(e) {
|
|
67
|
+
this.store = e;
|
|
68
|
+
}
|
|
69
|
+
setStyle(e, s) {
|
|
70
|
+
this.store.dispatch({ type: "set", payload: { field: e, value: s } });
|
|
71
|
+
}
|
|
72
|
+
setColors() {
|
|
73
|
+
this.mapColor("axisDefaults.crosshair.color", "chart-crosshair-background"), this.mapColor("axisDefaults.labels.color", "normal-text-color"), this.mapColor("axisDefaults.line.color", "chart-major-lines"), this.mapColor("axisDefaults.majorGridLines.color", "chart-major-lines"), this.mapColor("axisDefaults.minorGridLines.color", "chart-minor-lines"), this.mapColor("axisDefaults.notes.icon.background", "chart-notes-background"), this.mapColor("axisDefaults.notes.icon.border.color", "chart-notes-border"), this.mapColor("axisDefaults.notes.line.color", "chart-notes-lines"), this.mapColor("axisDefaults.title.color", "normal-text-color"), this.mapColor("chartArea.background", "background"), this.mapColor("legend.inactiveItems.labels.color", "chart-inactive"), this.mapColor("legend.inactiveItems.markers.color", "chart-inactive"), this.mapColor("legend.labels.color", "normal-text-color"), this.mapColor("seriesDefaults.boxPlot.downColor", "chart-major-lines"), this.mapColor("seriesDefaults.boxPlot.mean.color", "base"), this.mapColor("seriesDefaults.boxPlot.median.color", "base"), this.mapColor("seriesDefaults.boxPlot.whiskers.color", "primary"), this.mapColor("seriesDefaults.bullet.target.color", "normal-text-color"), this.mapColor("seriesDefaults.candlestick.downColor", "normal-text-color"), this.mapColor("seriesDefaults.candlestick.line.color", "normal-text-color"), this.mapColor("seriesDefaults.errorBars.color", "chart-error-bars-background"), this.mapColor("seriesDefaults.horizontalWaterfall.line.color", "chart-major-lines"), this.mapColor("seriesDefaults.icon.border.color", "chart-major-lines"), this.mapColor("seriesDefaults.labels.background", "background"), this.mapColor("seriesDefaults.labels.color", "normal-text-color"), this.mapColor("seriesDefaults.notes.icon.background", "chart-notes-background"), this.mapColor("seriesDefaults.notes.icon.border.color", "chart-notes-border"), this.mapColor("seriesDefaults.notes.line.color", "chart-notes-lines"), this.mapColor("seriesDefaults.verticalBoxPlot.downColor", "chart-major-lines"), this.mapColor("seriesDefaults.verticalBoxPlot.mean.color", "base"), this.mapColor("seriesDefaults.verticalBoxPlot.median.color", "base"), this.mapColor("seriesDefaults.verticalBoxPlot.whiskers.color", "primary"), this.mapColor("seriesDefaults.verticalBullet.target.color", "normal-text-color"), this.mapColor("seriesDefaults.waterfall.line.color", "chart-major-lines"), this.mapColor("title.color", "normal-text-color"), this.mapColor("subtitle.color", "normal-text-color");
|
|
74
|
+
const e = parseFloat(this.queryStyle("chart-area-opacity").opacity);
|
|
75
|
+
isNaN(e) || (this.setStyle("seriesDefaults.area.opacity", e), this.setStyle("seriesDefaults.radarArea.opacity", e), this.setStyle("seriesDefaults.verticalArea.opacity", e), this.setStyle("seriesDefaults.labels.opacity", e)), this.setInactiveOpacity(["area", "verticalArea"], "chart-area-inactive-opacity"), this.setInactiveOpacity(["line", "verticalLine"], "chart-line-inactive-opacity");
|
|
76
|
+
}
|
|
77
|
+
setFonts() {
|
|
78
|
+
const e = r(this.queryStyle("chart-font")), s = r(this.queryStyle("chart-title-font")), a = r(this.queryStyle("chart-pane-title-font")), o = r(this.queryStyle("chart-label-font"));
|
|
79
|
+
this.setStyle("axisDefaults.labels.font", o), this.setStyle("axisDefaults.notes.label.font", e), this.setStyle("axisDefaults.title.font", e), this.setStyle("legend.labels.font", e), this.setStyle("seriesDefaults.labels.font", o), this.setStyle("seriesDefaults.notes.label.font", e), this.setStyle("title.font", s), this.setStyle("subtitle.font", a), this.setStyle("paneDefaults.title.font", a);
|
|
80
|
+
}
|
|
81
|
+
setSeriesColors() {
|
|
82
|
+
const e = this.element, s = [].slice.call(e.querySelectorAll(".k-var--series div")), a = d(e.querySelector(".k-var--series-unset")), o = s.reduce(
|
|
83
|
+
(l, i) => {
|
|
84
|
+
const h = u(i.className), c = d(i);
|
|
85
|
+
return c !== a && (l[h] = c), l;
|
|
86
|
+
},
|
|
87
|
+
[]
|
|
88
|
+
// Will populate the series colors in this array
|
|
89
|
+
);
|
|
90
|
+
this.setStyle("seriesColors", o);
|
|
91
|
+
}
|
|
92
|
+
mapColor(e, s) {
|
|
93
|
+
this.setStyle(e, this.queryStyle(s).backgroundColor);
|
|
94
|
+
}
|
|
95
|
+
queryStyle(e) {
|
|
96
|
+
const s = this.element;
|
|
97
|
+
return window.getComputedStyle(s.querySelector(`.k-var--${e}`));
|
|
98
|
+
}
|
|
99
|
+
setInactiveOpacity(e, s) {
|
|
100
|
+
const a = parseFloat(this.queryStyle(s).opacity);
|
|
101
|
+
!isNaN(a) && a < 1 && e.forEach(
|
|
102
|
+
(o) => this.setStyle(`seriesDefaults.${o}.highlight.inactiveOpacity`, a)
|
|
103
|
+
);
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
const C = (t, e, s) => {
|
|
107
|
+
const a = new y(t);
|
|
108
|
+
if (typeof s == "undefined") {
|
|
109
|
+
t.dispatch({ type: "push", payload: n() });
|
|
110
|
+
return;
|
|
111
|
+
}
|
|
112
|
+
const o = a.element = s.createElement("div");
|
|
113
|
+
o.style.display = "none", o.innerHTML = f, s.body.appendChild(o);
|
|
114
|
+
try {
|
|
115
|
+
t.dispatch({ type: "push", payload: n() }), a.setColors(), a.setFonts(), a.setSeriesColors();
|
|
116
|
+
} finally {
|
|
117
|
+
s.body.removeChild(a.element), delete a.element, e();
|
|
118
|
+
}
|
|
119
|
+
};
|
|
120
|
+
export {
|
|
121
|
+
C as loadTheme
|
|
122
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const S=require("react"),m=require("@progress/kendo-react-common"),f=require("@progress/kendo-charts"),O=require("./Popup.js"),C=require("../ChartContext.js");function b(s){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(s){for(const e in s)if(e!=="default"){const o=Object.getOwnPropertyDescriptor(s,e);Object.defineProperty(t,e,o.get?o:{enumerable:!0,get:()=>s[e]})}}return t.default=s,Object.freeze(t)}const i=b(S),y="k-chart-crosshair-tooltip",T="k-chart-tooltip-inverse",a=class a extends i.Component{constructor(t,e){super(t,e),this.context=null,this.state={popupShown:!1},this.chartObserver=new f.InstanceObserver(this,{showTooltip:"onShowTooltip",hideTooltip:"onHideTooltip"}),e.observersStore.dispatch({type:"add",payload:this.chartObserver})}render(){const{popupContend:t,className:e,...o}=this.state,n=this.state.popupShown?()=>t:Function.prototype,p=m.classNames({[y]:!0,[T]:!!e});return i.createElement(O.TooltipPopup,{...o,popupContent:n,className:p})}componentWillUnmount(){var t;(t=this.context)==null||t.observersStore.dispatch({type:"remove",payload:this.chartObserver})}onShowTooltip(t){const{anchor:e,style:o,className:n,crosshair:p,axisName:c,axisIndex:l,value:u}=t,{name:h,index:d}=this.props;p&&c===h&&l===d&&this.setState({popupShown:!0,popupAlign:e.align,popupOffset:e.point,popupContend:u,popupStyles:o,className:n})}onHideTooltip(){this.setState({popupShown:!1,popupStyles:{},className:void 0})}};a.contextType=C.ChartContext;let r=a;exports.CrosshairTooltip=r;
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
"use client";
|
|
9
|
+
import * as r from "react";
|
|
10
|
+
import { classNames as m } from "@progress/kendo-react-common";
|
|
11
|
+
import { InstanceObserver as S } from "@progress/kendo-charts";
|
|
12
|
+
import { TooltipPopup as d } from "./Popup.mjs";
|
|
13
|
+
import { ChartContext as f } from "../ChartContext.mjs";
|
|
14
|
+
const v = "k-chart-crosshair-tooltip", C = "k-chart-tooltip-inverse", n = class n extends r.Component {
|
|
15
|
+
constructor(t, o) {
|
|
16
|
+
super(t, o), this.context = null, this.state = {
|
|
17
|
+
popupShown: !1
|
|
18
|
+
}, this.chartObserver = new S(this, {
|
|
19
|
+
showTooltip: "onShowTooltip",
|
|
20
|
+
hideTooltip: "onHideTooltip"
|
|
21
|
+
}), o.observersStore.dispatch({
|
|
22
|
+
type: "add",
|
|
23
|
+
payload: this.chartObserver
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
render() {
|
|
27
|
+
const { popupContend: t, className: o, ...e } = this.state, p = this.state.popupShown ? () => t : Function.prototype, s = m({
|
|
28
|
+
[v]: !0,
|
|
29
|
+
[C]: !!o
|
|
30
|
+
});
|
|
31
|
+
return /* @__PURE__ */ r.createElement(
|
|
32
|
+
d,
|
|
33
|
+
{
|
|
34
|
+
...e,
|
|
35
|
+
popupContent: p,
|
|
36
|
+
className: s
|
|
37
|
+
}
|
|
38
|
+
);
|
|
39
|
+
}
|
|
40
|
+
componentWillUnmount() {
|
|
41
|
+
var t;
|
|
42
|
+
(t = this.context) == null || t.observersStore.dispatch({
|
|
43
|
+
type: "remove",
|
|
44
|
+
payload: this.chartObserver
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
onShowTooltip(t) {
|
|
48
|
+
const { anchor: o, style: e, className: p, crosshair: s, axisName: a, axisIndex: c, value: l } = t, { name: h, index: u } = this.props;
|
|
49
|
+
s && a === h && c === u && this.setState({
|
|
50
|
+
popupShown: !0,
|
|
51
|
+
popupAlign: o.align,
|
|
52
|
+
popupOffset: o.point,
|
|
53
|
+
popupContend: l,
|
|
54
|
+
popupStyles: e,
|
|
55
|
+
className: p
|
|
56
|
+
});
|
|
57
|
+
}
|
|
58
|
+
onHideTooltip() {
|
|
59
|
+
this.setState({
|
|
60
|
+
popupShown: !1,
|
|
61
|
+
popupStyles: {},
|
|
62
|
+
className: void 0
|
|
63
|
+
});
|
|
64
|
+
}
|
|
65
|
+
};
|
|
66
|
+
n.contextType = f;
|
|
67
|
+
let i = n;
|
|
68
|
+
export {
|
|
69
|
+
i as CrosshairTooltip
|
|
70
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react"),p=require("../Container.js"),b=require("./Crosshair.js"),h=require("../ChartContext.js");function x(s){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(s){for(const e in s)if(e!=="default"){const o=Object.getOwnPropertyDescriptor(s,e);Object.defineProperty(t,e,o.get?o:{enumerable:!0,get:()=>s[e]})}}return t.default=s,Object.freeze(t)}const i=x(a),u=["categoryAxis","valueAxis","xAxis","yAxis"];function f(s){const t={};for(let e=0;e<u.length;e++){const o=d(s,u[e]);for(let n=0;n<o.length;n++){const r=o[n];t[r.name+r.index]=r}}return t}function d(s,t){const e=[];if(s[t]){const o=[].concat(s[t]);for(let n=0;n<o.length;n++){const r=(o[n].crosshair||{}).tooltip;r&&r.visible&&e.push({index:n,name:t})}}return e}const l=class l extends i.Component{constructor(){super(...arguments),this.context=null,this.state={tooltips:{}},this.storeUnsubscriber=Function.prototype,this.subscriber=()=>{var t;this.setState({tooltips:f((t=this.context)==null?void 0:t.optionsStore.getState())})}}componentDidMount(){this.storeUnsubscriber=this.context.optionsStore.subscribe(this.subscriber)}render(){const{tooltips:t}=this.state,e=Object.keys(t).map(o=>i.createElement(b.CrosshairTooltip,{...t[o],key:o}));return i.createElement(p.Container,null,e)}componentWillUnmount(){this.storeUnsubscriber()}};l.contextType=h.ChartContext;let c=l;exports.CrosshairTooltipContainer=c;
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
"use client";
|
|
9
|
+
import * as r from "react";
|
|
10
|
+
import { Container as u } from "../Container.mjs";
|
|
11
|
+
import { CrosshairTooltip as a } from "./Crosshair.mjs";
|
|
12
|
+
import { ChartContext as h } from "../ChartContext.mjs";
|
|
13
|
+
const l = ["categoryAxis", "valueAxis", "xAxis", "yAxis"];
|
|
14
|
+
function x(n) {
|
|
15
|
+
const t = {};
|
|
16
|
+
for (let o = 0; o < l.length; o++) {
|
|
17
|
+
const s = m(n, l[o]);
|
|
18
|
+
for (let e = 0; e < s.length; e++) {
|
|
19
|
+
const i = s[e];
|
|
20
|
+
t[i.name + i.index] = i;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
return t;
|
|
24
|
+
}
|
|
25
|
+
function m(n, t) {
|
|
26
|
+
const o = [];
|
|
27
|
+
if (n[t]) {
|
|
28
|
+
const s = [].concat(n[t]);
|
|
29
|
+
for (let e = 0; e < s.length; e++) {
|
|
30
|
+
const i = (s[e].crosshair || {}).tooltip;
|
|
31
|
+
i && i.visible && o.push({
|
|
32
|
+
index: e,
|
|
33
|
+
name: t
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
return o;
|
|
38
|
+
}
|
|
39
|
+
const c = class c extends r.Component {
|
|
40
|
+
constructor() {
|
|
41
|
+
super(...arguments), this.context = null, this.state = {
|
|
42
|
+
tooltips: {}
|
|
43
|
+
}, this.storeUnsubscriber = Function.prototype, this.subscriber = () => {
|
|
44
|
+
var t;
|
|
45
|
+
this.setState({
|
|
46
|
+
tooltips: x((t = this.context) == null ? void 0 : t.optionsStore.getState())
|
|
47
|
+
});
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
componentDidMount() {
|
|
51
|
+
this.storeUnsubscriber = this.context.optionsStore.subscribe(this.subscriber);
|
|
52
|
+
}
|
|
53
|
+
render() {
|
|
54
|
+
const { tooltips: t } = this.state, o = Object.keys(t).map((s) => /* @__PURE__ */ r.createElement(a, { ...t[s], key: s }));
|
|
55
|
+
return /* @__PURE__ */ r.createElement(u, null, o);
|
|
56
|
+
}
|
|
57
|
+
componentWillUnmount() {
|
|
58
|
+
this.storeUnsubscriber();
|
|
59
|
+
}
|
|
60
|
+
};
|
|
61
|
+
c.contextType = h;
|
|
62
|
+
let p = c;
|
|
63
|
+
export {
|
|
64
|
+
p as CrosshairTooltipContainer
|
|
65
|
+
};
|
package/tooltip/Point.js
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});class s{constructor(t,e){this.value=t.value,this.category=t.category,this.categoryIndex=t.categoryIx,this.series=t.series,this.dataItem=t.dataItem,this.percentage=t.percentage,this.runningTotal=t.runningTotal,this.total=t.total,this.low=t.low,this.high=t.high,this.xLow=t.xLow,this.xHigh=t.xHigh,this.yLow=t.yLow,this.yHigh=t.yHigh,this.point=t,this.format=((t.options||{}).tooltip||{}).format||e}get formattedValue(){return this.format?this.point.formatValue(this.format):String(this.value)}}exports.TooltipPoint=s;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
"use client";
|
|
9
|
+
class h {
|
|
10
|
+
/**
|
|
11
|
+
* @hidden
|
|
12
|
+
*/
|
|
13
|
+
constructor(t, s) {
|
|
14
|
+
this.value = t.value, this.category = t.category, this.categoryIndex = t.categoryIx, this.series = t.series, this.dataItem = t.dataItem, this.percentage = t.percentage, this.runningTotal = t.runningTotal, this.total = t.total, this.low = t.low, this.high = t.high, this.xLow = t.xLow, this.xHigh = t.xHigh, this.yLow = t.yLow, this.yHigh = t.yHigh, this.point = t, this.format = ((t.options || {}).tooltip || {}).format || s;
|
|
15
|
+
}
|
|
16
|
+
get formattedValue() {
|
|
17
|
+
return this.format ? this.point.formatValue(this.format) : String(this.value);
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
export {
|
|
21
|
+
h as TooltipPoint
|
|
22
|
+
};
|
package/tooltip/Popup.js
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("react"),h=require("@progress/kendo-charts"),f=require("../events/dom-event.js"),v=require("../utils/index.js"),d=require("@progress/kendo-react-popup"),m=require("../ChartContext.js");function O(s){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(s){for(const t in s)if(t!=="default"){const e=Object.getOwnPropertyDescriptor(s,t);Object.defineProperty(o,t,e.get?e:{enumerable:!0,get:()=>s[t]})}}return o.default=s,Object.freeze(o)}const r=O(l),b={horizontal:"fit",vertical:"fit"},C="k-chart-tooltip",y="k-chart-tooltip-wrapper",i=class i extends r.Component{constructor(o,t){super(o,t),this.context=null,this.element=null,this.onChartMouseLeave=e=>{const{syntheticEvent:n}=e;return!!v.hasParent(n.relatedTarget,this.element)},this.onMouseLeave=e=>{const n=f.toDomEvent(this,e);this.context.childrenObserver.trigger("onMouseLeave",n)&&e.preventDefault()},this.popupRef=e=>{this.element=e;const n=e&&e.closest(".k-animation-container");n&&(n.style.transition="initial")},this.chartObserver=new h.InstanceObserver(this,{onMouseLeave:"onChartMouseLeave"}),t.observersStore.dispatch({type:"add",payload:this.chartObserver})}render(){const{popupShown:o,popupAlign:t,popupOffset:e,popupStyles:n,popupContent:c,className:p}=this.props,u=[C,p].join(" ").trim();return r.createElement(d.Popup,{animate:!1,popupAlign:t,offset:e,show:o,collision:b,className:y},r.createElement("div",{className:u,style:n,onMouseLeave:this.onMouseLeave,ref:this.popupRef},c()))}componentWillUnmount(){this.context.observersStore.dispatch({type:"remove",payload:this.chartObserver})}};i.contextType=m.ChartContext;let a=i;exports.TooltipPopup=a;
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
"use client";
|
|
9
|
+
import * as n from "react";
|
|
10
|
+
import { InstanceObserver as h } from "@progress/kendo-charts";
|
|
11
|
+
import { toDomEvent as l } from "../events/dom-event.mjs";
|
|
12
|
+
import { hasParent as m } from "../utils/index.mjs";
|
|
13
|
+
import { Popup as u } from "@progress/kendo-react-popup";
|
|
14
|
+
import { ChartContext as f } from "../ChartContext.mjs";
|
|
15
|
+
const v = { horizontal: "fit", vertical: "fit" }, d = "k-chart-tooltip", C = "k-chart-tooltip-wrapper", r = class r extends n.Component {
|
|
16
|
+
constructor(s, o) {
|
|
17
|
+
super(s, o), this.context = null, this.element = null, this.onChartMouseLeave = (e) => {
|
|
18
|
+
const { syntheticEvent: t } = e;
|
|
19
|
+
return !!m(t.relatedTarget, this.element);
|
|
20
|
+
}, this.onMouseLeave = (e) => {
|
|
21
|
+
const t = l(this, e);
|
|
22
|
+
this.context.childrenObserver.trigger("onMouseLeave", t) && e.preventDefault();
|
|
23
|
+
}, this.popupRef = (e) => {
|
|
24
|
+
this.element = e;
|
|
25
|
+
const t = e && e.closest(".k-animation-container");
|
|
26
|
+
t && (t.style.transition = "initial");
|
|
27
|
+
}, this.chartObserver = new h(this, {
|
|
28
|
+
onMouseLeave: "onChartMouseLeave"
|
|
29
|
+
}), o.observersStore.dispatch({
|
|
30
|
+
type: "add",
|
|
31
|
+
payload: this.chartObserver
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
render() {
|
|
35
|
+
const { popupShown: s, popupAlign: o, popupOffset: e, popupStyles: t, popupContent: a, className: p } = this.props, c = [d, p].join(" ").trim();
|
|
36
|
+
return /* @__PURE__ */ n.createElement(
|
|
37
|
+
u,
|
|
38
|
+
{
|
|
39
|
+
animate: !1,
|
|
40
|
+
popupAlign: o,
|
|
41
|
+
offset: e,
|
|
42
|
+
show: s,
|
|
43
|
+
collision: v,
|
|
44
|
+
className: C
|
|
45
|
+
},
|
|
46
|
+
/* @__PURE__ */ n.createElement(
|
|
47
|
+
"div",
|
|
48
|
+
{
|
|
49
|
+
className: c,
|
|
50
|
+
style: t,
|
|
51
|
+
onMouseLeave: this.onMouseLeave,
|
|
52
|
+
ref: this.popupRef
|
|
53
|
+
},
|
|
54
|
+
a()
|
|
55
|
+
)
|
|
56
|
+
);
|
|
57
|
+
}
|
|
58
|
+
componentWillUnmount() {
|
|
59
|
+
this.context.observersStore.dispatch({
|
|
60
|
+
type: "remove",
|
|
61
|
+
payload: this.chartObserver
|
|
62
|
+
});
|
|
63
|
+
}
|
|
64
|
+
};
|
|
65
|
+
r.contextType = f;
|
|
66
|
+
let i = r;
|
|
67
|
+
export {
|
|
68
|
+
i as TooltipPopup
|
|
69
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f=require("react"),m=require("@progress/kendo-react-common"),S=require("@progress/kendo-charts"),h=require("./Point.js"),y=require("./SharedTooltipContent.js"),T=require("./Popup.js"),C=require("../ChartContext.js");function O(p){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(p){for(const e in p)if(e!=="default"){const n=Object.getOwnPropertyDescriptor(p,e);Object.defineProperty(t,e,n.get?n:{enumerable:!0,get:()=>p[e]})}}return t.default=p,Object.freeze(t)}const a=O(f),x="k-chart-shared-tooltip",g="k-chart-tooltip-inverse",c=class c extends a.Component{constructor(){super(...arguments),this.context=null,this.state={popupShown:!1},this.chartObserver=null}componentDidMount(){this.chartObserver=new S.InstanceObserver(this,{showTooltip:"onShowTooltip",hideTooltip:"onHideTooltip"}),this.context.observersStore.dispatch({type:"add",payload:this.chartObserver})}render(){const{popupContext:t,shared:e,className:n,...r}=this.state,i=this.state.popupShown?()=>{const o=this.findRenderFunction();if(e)return o!==null?o(t):a.createElement(y.SharedTooltipContent,{...t});{const d=t.point,u=this.findRenderFunctionByIndex(d.series.index);return u!==null?u(t):o!==null?o(t):a.createElement("span",{dangerouslySetInnerHTML:{__html:t.point.formattedValue}})}}:Function.prototype,s=m.classNames({[x]:e,[g]:!!n});return a.createElement(T.TooltipPopup,{...r,popupContent:i,className:s})}componentWillUnmount(){this.context.observersStore.dispatch({type:"remove",payload:this.chartObserver})}onShowTooltip(t){const{anchor:e,style:n,shared:r,className:i,crosshair:s}=t;let o;s||(r?o=this.createSharedTooltipContext(t):o=this.createTooltipContext(t),this.setState({popupShown:!0,popupAlign:e.align,popupOffset:e.point,popupContext:o,popupStyles:n,className:i,shared:r}))}onHideTooltip(){this.setState({popupShown:!1,popupStyles:{},className:void 0})}createSharedTooltipContext(t){const{points:e,categoryText:n}=t,r=e.filter(o=>typeof o.series.name!="undefined").length>0,i=t.series.length>1;let s=1;return r&&s++,i&&s++,{categoryText:n,colorMarker:i,colspan:s,nameColumn:r,points:t.points.map(o=>new h.TooltipPoint(o,t.format))}}createTooltipContext(t){const{point:e,format:n}=t;return{point:new h.TooltipPoint(e,n)}}findRenderFunctionByIndex(t){const e=this.context.optionsStore.getState().series;return e!==void 0&&Array.isArray(e)&&e[t]!==void 0&&e[t].hasOwnProperty("tooltip")&&e[t].tooltip.hasOwnProperty("render")?e[t].tooltip.render:null}findRenderFunction(){const t=this.context.optionsStore.getState().tooltip;return t!==void 0&&t.hasOwnProperty("render")?t.render:null}};c.contextType=C.ChartContext;let l=c;exports.SeriesTooltip=l;
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
"use client";
|
|
9
|
+
import * as p from "react";
|
|
10
|
+
import { classNames as d } from "@progress/kendo-react-common";
|
|
11
|
+
import { InstanceObserver as m } from "@progress/kendo-charts";
|
|
12
|
+
import { TooltipPoint as c } from "./Point.mjs";
|
|
13
|
+
import { SharedTooltipContent as f } from "./SharedTooltipContent.mjs";
|
|
14
|
+
import { TooltipPopup as S } from "./Popup.mjs";
|
|
15
|
+
import { ChartContext as y } from "../ChartContext.mjs";
|
|
16
|
+
const T = "k-chart-shared-tooltip", x = "k-chart-tooltip-inverse", a = class a extends p.Component {
|
|
17
|
+
constructor() {
|
|
18
|
+
super(...arguments), this.context = null, this.state = {
|
|
19
|
+
popupShown: !1
|
|
20
|
+
}, this.chartObserver = null;
|
|
21
|
+
}
|
|
22
|
+
componentDidMount() {
|
|
23
|
+
this.chartObserver = new m(this, {
|
|
24
|
+
showTooltip: "onShowTooltip",
|
|
25
|
+
hideTooltip: "onHideTooltip"
|
|
26
|
+
}), this.context.observersStore.dispatch({
|
|
27
|
+
type: "add",
|
|
28
|
+
payload: this.chartObserver
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
render() {
|
|
32
|
+
const { popupContext: t, shared: e, className: n, ...r } = this.state, i = this.state.popupShown ? () => {
|
|
33
|
+
const o = this.findRenderFunction();
|
|
34
|
+
if (e)
|
|
35
|
+
return o !== null ? o(t) : /* @__PURE__ */ p.createElement(f, { ...t });
|
|
36
|
+
{
|
|
37
|
+
const u = t.point, l = this.findRenderFunctionByIndex(u.series.index);
|
|
38
|
+
return l !== null ? l(t) : o !== null ? o(t) : /* @__PURE__ */ p.createElement(
|
|
39
|
+
"span",
|
|
40
|
+
{
|
|
41
|
+
dangerouslySetInnerHTML: { __html: t.point.formattedValue }
|
|
42
|
+
}
|
|
43
|
+
);
|
|
44
|
+
}
|
|
45
|
+
} : Function.prototype, s = d({
|
|
46
|
+
[T]: e,
|
|
47
|
+
[x]: !!n
|
|
48
|
+
});
|
|
49
|
+
return /* @__PURE__ */ p.createElement(
|
|
50
|
+
S,
|
|
51
|
+
{
|
|
52
|
+
...r,
|
|
53
|
+
popupContent: i,
|
|
54
|
+
className: s
|
|
55
|
+
}
|
|
56
|
+
);
|
|
57
|
+
}
|
|
58
|
+
componentWillUnmount() {
|
|
59
|
+
this.context.observersStore.dispatch({
|
|
60
|
+
type: "remove",
|
|
61
|
+
payload: this.chartObserver
|
|
62
|
+
});
|
|
63
|
+
}
|
|
64
|
+
onShowTooltip(t) {
|
|
65
|
+
const { anchor: e, style: n, shared: r, className: i, crosshair: s } = t;
|
|
66
|
+
let o;
|
|
67
|
+
s || (r ? o = this.createSharedTooltipContext(t) : o = this.createTooltipContext(t), this.setState({
|
|
68
|
+
popupShown: !0,
|
|
69
|
+
popupAlign: e.align,
|
|
70
|
+
popupOffset: e.point,
|
|
71
|
+
popupContext: o,
|
|
72
|
+
popupStyles: n,
|
|
73
|
+
className: i,
|
|
74
|
+
shared: r
|
|
75
|
+
}));
|
|
76
|
+
}
|
|
77
|
+
onHideTooltip() {
|
|
78
|
+
this.setState({
|
|
79
|
+
popupShown: !1,
|
|
80
|
+
popupStyles: {},
|
|
81
|
+
className: void 0
|
|
82
|
+
});
|
|
83
|
+
}
|
|
84
|
+
createSharedTooltipContext(t) {
|
|
85
|
+
const { points: e, categoryText: n } = t, r = e.filter((o) => typeof o.series.name != "undefined").length > 0, i = t.series.length > 1;
|
|
86
|
+
let s = 1;
|
|
87
|
+
return r && s++, i && s++, {
|
|
88
|
+
categoryText: n,
|
|
89
|
+
colorMarker: i,
|
|
90
|
+
colspan: s,
|
|
91
|
+
nameColumn: r,
|
|
92
|
+
points: t.points.map((o) => new c(o, t.format))
|
|
93
|
+
};
|
|
94
|
+
}
|
|
95
|
+
createTooltipContext(t) {
|
|
96
|
+
const { point: e, format: n } = t;
|
|
97
|
+
return { point: new c(e, n) };
|
|
98
|
+
}
|
|
99
|
+
findRenderFunctionByIndex(t) {
|
|
100
|
+
const e = this.context.optionsStore.getState().series;
|
|
101
|
+
return e !== void 0 && Array.isArray(e) && e[t] !== void 0 && e[t].hasOwnProperty("tooltip") && e[t].tooltip.hasOwnProperty("render") ? e[t].tooltip.render : null;
|
|
102
|
+
}
|
|
103
|
+
findRenderFunction() {
|
|
104
|
+
const t = this.context.optionsStore.getState().tooltip;
|
|
105
|
+
return t !== void 0 && t.hasOwnProperty("render") ? t.render : null;
|
|
106
|
+
}
|
|
107
|
+
};
|
|
108
|
+
a.contextType = y;
|
|
109
|
+
let h = a;
|
|
110
|
+
export {
|
|
111
|
+
h as SeriesTooltip
|
|
112
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const m=require("react");function d(t){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const l=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(r,n,l.get?l:{enumerable:!0,get:()=>t[n]})}}return r.default=t,Object.freeze(r)}const e=d(m),i="k-chart-shared-tooltip-marker",p=t=>{const{categoryText:r,colorMarker:n,colspan:l,nameColumn:o,points:c}=t,s=(a,u)=>e.createElement("tr",{key:u},n&&e.createElement("td",null,e.createElement("span",{className:i,style:{backgroundColor:a.series.color}})),o&&e.createElement("td",null,a.series.name),e.createElement("td",{dangerouslySetInnerHTML:{__html:a.formattedValue}}));return e.createElement("table",null,e.createElement("thead",null,e.createElement("tr",null,e.createElement("th",{colSpan:l},r))),e.createElement("tbody",null,c.map(s)))};exports.SharedTooltipContent=p;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
"use client";
|
|
9
|
+
import * as e from "react";
|
|
10
|
+
const u = "k-chart-shared-tooltip-marker", E = (l) => {
|
|
11
|
+
const { categoryText: r, colorMarker: n, colspan: a, nameColumn: o, points: c } = l, m = (t, s) => /* @__PURE__ */ e.createElement("tr", { key: s }, n && /* @__PURE__ */ e.createElement("td", null, /* @__PURE__ */ e.createElement(
|
|
12
|
+
"span",
|
|
13
|
+
{
|
|
14
|
+
className: u,
|
|
15
|
+
style: { backgroundColor: t.series.color }
|
|
16
|
+
}
|
|
17
|
+
)), o && /* @__PURE__ */ e.createElement("td", null, t.series.name), /* @__PURE__ */ e.createElement("td", { dangerouslySetInnerHTML: { __html: t.formattedValue } }));
|
|
18
|
+
return /* @__PURE__ */ e.createElement("table", null, /* @__PURE__ */ e.createElement("thead", null, /* @__PURE__ */ e.createElement("tr", null, /* @__PURE__ */ e.createElement("th", { colSpan: a }, r))), /* @__PURE__ */ e.createElement("tbody", null, c.map(m)));
|
|
19
|
+
};
|
|
20
|
+
export {
|
|
21
|
+
E as SharedTooltipContent
|
|
22
|
+
};
|
package/utils/index.js
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function o(r,t){let e=r;for(;e&&e!==t;)e=e.parentNode;return!!e}function i(r,t,e,l){const n=r[t];if(n&&Array.isArray(n)){for(let a of n)if(!a.type||a.type!==l)return new Error(`${e} children should be Array of type ${l.displayName}.`)}return null}const u=r=>r===void 0?!1:!r;exports.hasParent=o;exports.toggle=u;exports.validateChildren=i;
|
package/utils/index.mjs
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
"use client";
|
|
9
|
+
function a(r, t) {
|
|
10
|
+
let e = r;
|
|
11
|
+
for (; e && e !== t; )
|
|
12
|
+
e = e.parentNode;
|
|
13
|
+
return !!e;
|
|
14
|
+
}
|
|
15
|
+
function i(r, t, e, o) {
|
|
16
|
+
const n = r[t];
|
|
17
|
+
if (n && Array.isArray(n)) {
|
|
18
|
+
for (let l of n)
|
|
19
|
+
if (!l.type || l.type !== o)
|
|
20
|
+
return new Error(
|
|
21
|
+
`${e} children should be Array of type ${o.displayName}.`
|
|
22
|
+
);
|
|
23
|
+
}
|
|
24
|
+
return null;
|
|
25
|
+
}
|
|
26
|
+
const u = (r) => r === void 0 ? !1 : !r;
|
|
27
|
+
export {
|
|
28
|
+
a as hasParent,
|
|
29
|
+
u as toggle,
|
|
30
|
+
i as validateChildren
|
|
31
|
+
};
|