@progress/kendo-react-charts 13.3.0-develop.9 → 13.4.0-develop.1
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.d.ts +137 -0
- package/BaseChartProps.d.ts +207 -0
- package/Chart.d.ts +86 -0
- package/ChartBreadcrumb.d.ts +49 -0
- package/ChartBreadcrumb.js +1 -1
- package/ChartBreadcrumb.mjs +1 -2
- package/ChartContext.d.ts +24 -0
- package/ChartNoDataOverlay.d.ts +30 -0
- package/ChartProps.d.ts +17 -0
- package/Container.d.ts +15 -0
- package/DonutCenter.d.ts +45 -0
- package/Sparkline.d.ts +92 -0
- package/SparklineProps.d.ts +21 -0
- package/StockChart.d.ts +47 -0
- package/StockChartProps.d.ts +26 -0
- package/api-types/axis-range.interface.d.ts +20 -0
- package/api-types/chart-axis.interface.d.ts +43 -0
- package/api-types/chart-drilldown-state.interface.d.ts +31 -0
- package/api-types/chart-pane.interface.d.ts +21 -0
- package/api-types/chart-plotarea.interface.d.ts +21 -0
- package/api-types/event-axis-options.interface.d.ts +16 -0
- package/api-types/event-series-options.interface.d.ts +24 -0
- package/api-types/series-point.interface.d.ts +45 -0
- package/argument-types/axis-label-visual-args.interface.d.ts +50 -0
- package/argument-types/axis-note-visual-args.interface.d.ts +34 -0
- package/argument-types/drilldown-series-factory-props.interface.d.ts +24 -0
- package/argument-types/error-bars-visual-args.interface.d.ts +38 -0
- package/argument-types/highlight-toggle-args.interface.d.ts +41 -0
- package/argument-types/highlight-visual-args.interface.d.ts +58 -0
- package/argument-types/legend-item-visual-args.interface.d.ts +34 -0
- package/argument-types/legend-labels-content-args.interface.d.ts +28 -0
- package/argument-types/markers-visual-args.interface.d.ts +46 -0
- package/argument-types/plot-band-label-visual-args.interface.d.ts +34 -0
- package/argument-types/series-labels-visual-args.interface.d.ts +34 -0
- package/argument-types/series-note-visual-args.interface.d.ts +50 -0
- package/argument-types/series-visual-args.interface.d.ts +83 -0
- package/argument-types/title-visual-args.interface.d.ts +34 -0
- package/common/api-types.d.ts +15 -0
- package/common/charts.d.ts +12 -0
- package/common/events.d.ts +29 -0
- package/common/property-types.d.ts +140 -0
- package/components/AxisDefaults.d.ts +26 -0
- package/components/CategoryAxis.d.ts +25 -0
- package/components/CategoryAxisItem.d.ts +27 -0
- package/components/ChartArea.d.ts +22 -0
- package/components/Legend.d.ts +26 -0
- package/components/Navigator.d.ts +26 -0
- package/components/Pane.d.ts +22 -0
- package/components/PaneDefaults.d.ts +26 -0
- package/components/Panes.d.ts +25 -0
- package/components/PlotArea.d.ts +19 -0
- package/components/Series.d.ts +25 -0
- package/components/SeriesDefaults.d.ts +22 -0
- package/components/SeriesItem.d.ts +34 -0
- package/components/Subtitle.d.ts +19 -0
- package/components/Title.d.ts +19 -0
- package/components/Tooltip.d.ts +29 -0
- package/components/ValueAxis.d.ts +25 -0
- package/components/ValueAxisItem.d.ts +26 -0
- package/components/XAxis.d.ts +25 -0
- package/components/XAxisItem.d.ts +26 -0
- package/components/YAxis.d.ts +25 -0
- package/components/YAxisItem.d.ts +20 -0
- package/components/Zoomable.d.ts +19 -0
- package/components/axis-defaults/Crosshair.d.ts +26 -0
- package/components/axis-defaults/CrosshairTooltip.d.ts +19 -0
- package/components/axis-defaults/Labels.d.ts +19 -0
- package/components/axis-defaults/Title.d.ts +19 -0
- package/components/axis-defaults/index.d.ts +12 -0
- package/components/base/CollectionConfigurationComponent.d.ts +27 -0
- package/components/base/ConfigurationComponent.d.ts +33 -0
- package/components/category-axis-item/Crosshair.d.ts +26 -0
- package/components/category-axis-item/CrosshairTooltip.d.ts +19 -0
- package/components/category-axis-item/Labels.d.ts +19 -0
- package/components/category-axis-item/Notes.d.ts +25 -0
- package/components/category-axis-item/NotesIcon.d.ts +19 -0
- package/components/category-axis-item/NotesLabel.d.ts +19 -0
- package/components/category-axis-item/RangeLabels.d.ts +19 -0
- package/components/category-axis-item/Select.d.ts +14 -0
- package/components/category-axis-item/Title.d.ts +19 -0
- package/components/category-axis-item/index.d.ts +17 -0
- package/components/index.d.ts +42 -0
- package/components/legend/InactiveItems.d.ts +19 -0
- package/components/legend/Item.d.ts +19 -0
- package/components/legend/Title.d.ts +20 -0
- package/components/legend/index.d.ts +11 -0
- package/components/navigator/CategoryAxis.d.ts +23 -0
- package/components/navigator/Hint.d.ts +20 -0
- package/components/navigator/Pane.d.ts +22 -0
- package/components/navigator/Select.d.ts +19 -0
- package/components/navigator/Series.d.ts +25 -0
- package/components/navigator/SeriesItem.d.ts +23 -0
- package/components/navigator/category-axis/Crosshair.d.ts +22 -0
- package/components/navigator/category-axis/CrosshairTooltip.d.ts +19 -0
- package/components/navigator/category-axis/Labels.d.ts +19 -0
- package/components/navigator/category-axis/Notes.d.ts +19 -0
- package/components/navigator/category-axis/NotesIcon.d.ts +19 -0
- package/components/navigator/category-axis/NotesLabel.d.ts +19 -0
- package/components/navigator/category-axis/Select.d.ts +14 -0
- package/components/navigator/category-axis/Title.d.ts +19 -0
- package/components/navigator/category-axis/index.d.ts +16 -0
- package/components/navigator/index.d.ts +17 -0
- package/components/navigator/pane/Title.d.ts +19 -0
- package/components/navigator/pane/index.d.ts +9 -0
- package/components/navigator/series-item/ErrorBars.d.ts +19 -0
- package/components/navigator/series-item/Extremes.d.ts +19 -0
- package/components/navigator/series-item/Highlight.d.ts +19 -0
- package/components/navigator/series-item/Labels.d.ts +22 -0
- package/components/navigator/series-item/LabelsFrom.d.ts +19 -0
- package/components/navigator/series-item/LabelsTo.d.ts +19 -0
- package/components/navigator/series-item/Markers.d.ts +19 -0
- package/components/navigator/series-item/Notes.d.ts +22 -0
- package/components/navigator/series-item/NotesIcon.d.ts +19 -0
- package/components/navigator/series-item/NotesLabel.d.ts +19 -0
- package/components/navigator/series-item/Outliers.d.ts +19 -0
- package/components/navigator/series-item/Tooltip.d.ts +27 -0
- package/components/navigator/series-item/index.d.ts +20 -0
- package/components/pane/Title.d.ts +19 -0
- package/components/pane/index.d.ts +9 -0
- package/components/pane-defaults/Title.d.ts +19 -0
- package/components/pane-defaults/index.d.ts +9 -0
- package/components/series-defaults/Labels.d.ts +22 -0
- package/components/series-defaults/LabelsFrom.d.ts +19 -0
- package/components/series-defaults/LabelsTo.d.ts +19 -0
- package/components/series-defaults/Notes.d.ts +22 -0
- package/components/series-defaults/NotesIcon.d.ts +19 -0
- package/components/series-defaults/NotesLabel.d.ts +19 -0
- package/components/series-defaults/Tooltip.d.ts +27 -0
- package/components/series-defaults/index.d.ts +15 -0
- package/components/series-item/ErrorBars.d.ts +19 -0
- package/components/series-item/Extremes.d.ts +19 -0
- package/components/series-item/Highlight.d.ts +19 -0
- package/components/series-item/Labels.d.ts +26 -0
- package/components/series-item/LabelsFrom.d.ts +19 -0
- package/components/series-item/LabelsTo.d.ts +19 -0
- package/components/series-item/Markers.d.ts +19 -0
- package/components/series-item/Notes.d.ts +22 -0
- package/components/series-item/NotesIcon.d.ts +19 -0
- package/components/series-item/NotesLabel.d.ts +19 -0
- package/components/series-item/Outliers.d.ts +19 -0
- package/components/series-item/Tooltip.d.ts +27 -0
- package/components/series-item/index.d.ts +20 -0
- package/components/value-axis-item/Crosshair.d.ts +26 -0
- package/components/value-axis-item/CrosshairTooltip.d.ts +19 -0
- package/components/value-axis-item/Labels.d.ts +19 -0
- package/components/value-axis-item/Notes.d.ts +26 -0
- package/components/value-axis-item/NotesIcon.d.ts +19 -0
- package/components/value-axis-item/NotesLabel.d.ts +19 -0
- package/components/value-axis-item/Title.d.ts +19 -0
- package/components/value-axis-item/index.d.ts +15 -0
- package/components/x-axis-item/Crosshair.d.ts +26 -0
- package/components/x-axis-item/CrosshairTooltip.d.ts +19 -0
- package/components/x-axis-item/Labels.d.ts +19 -0
- package/components/x-axis-item/Notes.d.ts +26 -0
- package/components/x-axis-item/NotesIcon.d.ts +19 -0
- package/components/x-axis-item/NotesLabel.d.ts +19 -0
- package/components/x-axis-item/Title.d.ts +19 -0
- package/components/x-axis-item/index.d.ts +15 -0
- package/components/y-axis-item/Crosshair.d.ts +26 -0
- package/components/y-axis-item/CrosshairTooltip.d.ts +19 -0
- package/components/y-axis-item/Labels.d.ts +19 -0
- package/components/y-axis-item/Notes.d.ts +22 -0
- package/components/y-axis-item/NotesIcon.d.ts +19 -0
- package/components/y-axis-item/NotesLabel.d.ts +19 -0
- package/components/y-axis-item/Title.d.ts +19 -0
- package/components/y-axis-item/index.d.ts +15 -0
- package/defaults.d.ts +8 -0
- package/dist/cdn/js/kendo-react-charts.js +1 -1
- package/events/axis-label-click-event.d.ts +39 -0
- package/events/base-event.d.ts +21 -0
- package/events/chart-event-builder.d.ts +13 -0
- package/events/dom-event.d.ts +26 -0
- package/events/drag-end-event.d.ts +29 -0
- package/events/drag-event.d.ts +29 -0
- package/events/drag-start-event.d.ts +29 -0
- package/events/drilldown-event.d.ts +45 -0
- package/events/drilldown-state-change-event.d.ts +29 -0
- package/events/legend-item-click-event.d.ts +39 -0
- package/events/legend-item-hover-event.d.ts +39 -0
- package/events/legend-item-leave-event.d.ts +39 -0
- package/events/navigator-filter-event.d.ts +26 -0
- package/events/note-click-event.d.ts +39 -0
- package/events/note-hover-event.d.ts +39 -0
- package/events/plot-area-click-event.d.ts +38 -0
- package/events/plot-area-hover-event.d.ts +38 -0
- package/events/preventable-event.d.ts +25 -0
- package/events/render-event.d.ts +18 -0
- package/events/select-end-event.d.ts +31 -0
- package/events/select-event.d.ts +31 -0
- package/events/select-start-event.d.ts +31 -0
- package/events/series-click-event.d.ts +52 -0
- package/events/series-hover-event.d.ts +56 -0
- package/events/zoom-end-event.d.ts +31 -0
- package/events/zoom-event.d.ts +35 -0
- package/events/zoom-start-event.d.ts +29 -0
- package/field-types/auto-base-unit-steps.interface.d.ts +46 -0
- package/field-types/axis-labels-position.d.ts +24 -0
- package/field-types/axis-line.interface.d.ts +29 -0
- package/field-types/axis-ticks.interface.d.ts +36 -0
- package/field-types/axis-title-position.d.ts +24 -0
- package/field-types/base-unit.d.ts +36 -0
- package/field-types/border.interface.d.ts +31 -0
- package/field-types/bullet-target-line.interface.d.ts +16 -0
- package/field-types/bullet-target.interface.d.ts +26 -0
- package/field-types/category-base-unit.d.ts +37 -0
- package/field-types/dash-type.d.ts +30 -0
- package/field-types/date-formats.interface.d.ts +46 -0
- package/field-types/drag-action.interface.d.ts +22 -0
- package/field-types/error-bar-line.interface.d.ts +21 -0
- package/field-types/grid-lines.interface.d.ts +37 -0
- package/field-types/highlight-line.interface.d.ts +29 -0
- package/field-types/label-connectors.interface.d.ts +24 -0
- package/field-types/label-rotation.interface.d.ts +26 -0
- package/field-types/legend-labels.interface.d.ts +35 -0
- package/field-types/line-style.d.ts +30 -0
- package/field-types/lock-axis.d.ts +11 -0
- package/field-types/margin.interface.d.ts +28 -0
- package/field-types/marker-type.d.ts +33 -0
- package/field-types/modifier-key.d.ts +11 -0
- package/field-types/mousewheel-select.interface.d.ts +25 -0
- package/field-types/mousewheel-zoom.interface.d.ts +25 -0
- package/field-types/negative-bubble-values.interface.d.ts +20 -0
- package/field-types/note-label-position.d.ts +31 -0
- package/field-types/note-line.interface.d.ts +29 -0
- package/field-types/note-position.d.ts +31 -0
- package/field-types/overlay.interface.d.ts +22 -0
- package/field-types/padding.interface.d.ts +13 -0
- package/field-types/plot-band-label.interface.d.ts +94 -0
- package/field-types/plot-band.interface.d.ts +37 -0
- package/field-types/series-labels-position.d.ts +23 -0
- package/field-types/series-line.interface.d.ts +35 -0
- package/field-types/series-stack.interface.d.ts +24 -0
- package/field-types/series-type.d.ts +31 -0
- package/field-types/trendline-forecast.interface.d.ts +20 -0
- package/field-types/week-start-day.enum.d.ts +40 -0
- package/index.d.mts +32 -9258
- package/index.d.ts +32 -9258
- package/messages.d.ts +17 -0
- package/methods/index.d.ts +43 -0
- package/option-types/axis-crosshair-tooltip.interface.d.ts +42 -0
- package/option-types/axis-defaults/crosshair.interface.d.ts +48 -0
- package/option-types/axis-defaults/crosshair.tooltip.interface.d.ts +13 -0
- package/option-types/axis-defaults/labels.interface.d.ts +76 -0
- package/option-types/axis-defaults/title.interface.d.ts +74 -0
- package/option-types/axis-defaults.interface.d.ts +80 -0
- package/option-types/category-axis-item/crosshair.interface.d.ts +47 -0
- package/option-types/category-axis-item/crosshair.tooltip.interface.d.ts +13 -0
- package/option-types/category-axis-item/labels.interface.d.ts +110 -0
- package/option-types/category-axis-item/notes.icon.interface.d.ts +39 -0
- package/option-types/category-axis-item/notes.interface.d.ts +52 -0
- package/option-types/category-axis-item/notes.label.interface.d.ts +53 -0
- package/option-types/category-axis-item/range-labels.interface.d.ts +31 -0
- package/option-types/category-axis-item/select.interface.d.ts +33 -0
- package/option-types/category-axis-item/title.interface.d.ts +72 -0
- package/option-types/category-axis-item.interface.d.ts +166 -0
- package/option-types/chart-area.interface.d.ts +37 -0
- package/option-types/legend/inactive-items.interface.d.ts +17 -0
- package/option-types/legend/item.interface.d.ts +124 -0
- package/option-types/legend/legend-title.interface.d.ts +68 -0
- package/option-types/legend.interface.d.ts +106 -0
- package/option-types/navigator/hint.interface.d.ts +25 -0
- package/option-types/navigator/select.interface.d.ts +25 -0
- package/option-types/navigator.interface.d.ts +44 -0
- package/option-types/pane/title.interface.d.ts +65 -0
- package/option-types/pane-defaults/title.interface.d.ts +59 -0
- package/option-types/pane-defaults.interface.d.ts +46 -0
- package/option-types/pane.interface.d.ts +53 -0
- package/option-types/plot-area.interface.d.ts +33 -0
- package/option-types/series-defaults/labels.from.interface.d.ts +58 -0
- package/option-types/series-defaults/labels.interface.d.ts +80 -0
- package/option-types/series-defaults/labels.to.interface.d.ts +58 -0
- package/option-types/series-defaults/notes.icon.interface.d.ts +39 -0
- package/option-types/series-defaults/notes.interface.d.ts +43 -0
- package/option-types/series-defaults/notes.label.interface.d.ts +53 -0
- package/option-types/series-defaults/tooltip.interface.d.ts +48 -0
- package/option-types/series-defaults.interface.d.ts +103 -0
- package/option-types/series-item/error-bars.interface.d.ts +64 -0
- package/option-types/series-item/extremes.interface.d.ts +39 -0
- package/option-types/series-item/highlight.interface.d.ts +74 -0
- package/option-types/series-item/labels.from.interface.d.ts +74 -0
- package/option-types/series-item/labels.interface.d.ts +109 -0
- package/option-types/series-item/labels.to.interface.d.ts +72 -0
- package/option-types/series-item/markers.interface.d.ts +72 -0
- package/option-types/series-item/notes.icon.interface.d.ts +39 -0
- package/option-types/series-item/notes.interface.d.ts +53 -0
- package/option-types/series-item/notes.label.interface.d.ts +53 -0
- package/option-types/series-item/outliers.interface.d.ts +39 -0
- package/option-types/series-item/tooltip.interface.d.ts +49 -0
- package/option-types/series-item/trendline.interface.d.ts +37 -0
- package/option-types/series-item.interface.d.ts +492 -0
- package/option-types/subtitle.interface.d.ts +68 -0
- package/option-types/title.interface.d.ts +66 -0
- package/option-types/tooltip-border.interface.d.ts +22 -0
- package/option-types/tooltip.interface.d.ts +56 -0
- package/option-types/value-axis-item/crosshair.interface.d.ts +33 -0
- package/option-types/value-axis-item/crosshair.tooltip.interface.d.ts +13 -0
- package/option-types/value-axis-item/labels.interface.d.ts +88 -0
- package/option-types/value-axis-item/notes.icon.interface.d.ts +39 -0
- package/option-types/value-axis-item/notes.interface.d.ts +52 -0
- package/option-types/value-axis-item/notes.label.interface.d.ts +53 -0
- package/option-types/value-axis-item/title.interface.d.ts +73 -0
- package/option-types/value-axis-item.interface.d.ts +121 -0
- package/option-types/x-axis-item/crosshair.interface.d.ts +33 -0
- package/option-types/x-axis-item/crosshair.tooltip.interface.d.ts +13 -0
- package/option-types/x-axis-item/labels.interface.d.ts +95 -0
- package/option-types/x-axis-item/notes.icon.interface.d.ts +39 -0
- package/option-types/x-axis-item/notes.interface.d.ts +53 -0
- package/option-types/x-axis-item/notes.label.interface.d.ts +53 -0
- package/option-types/x-axis-item/title.interface.d.ts +72 -0
- package/option-types/x-axis-item.interface.d.ts +142 -0
- package/option-types/y-axis-item/crosshair.interface.d.ts +33 -0
- package/option-types/y-axis-item/crosshair.tooltip.interface.d.ts +13 -0
- package/option-types/y-axis-item/labels.interface.d.ts +95 -0
- package/option-types/y-axis-item/notes.icon.interface.d.ts +39 -0
- package/option-types/y-axis-item/notes.interface.d.ts +52 -0
- package/option-types/y-axis-item/notes.label.interface.d.ts +53 -0
- package/option-types/y-axis-item/title.interface.d.ts +73 -0
- package/option-types/y-axis-item.interface.d.ts +138 -0
- package/option-types/zoomable.interface.d.ts +21 -0
- package/package-metadata.d.ts +12 -0
- package/package-metadata.js +1 -1
- package/package-metadata.mjs +10 -16
- package/package.json +6 -6
- package/sankey/Sankey.d.ts +13 -0
- package/sankey/SankeyTooltip.d.ts +12 -0
- package/sankey/index.d.ts +11 -0
- package/sankey/messages.d.ts +17 -0
- package/sankey/propTypes.d.ts +226 -0
- package/sankey/theme-service.d.ts +12 -0
- package/sankey/types.d.ts +206 -0
- package/sankey/utils.d.ts +12 -0
- package/store/reducer.d.ts +21 -0
- package/store/store.d.ts +32 -0
- package/tooltip/Context.d.ts +36 -0
- package/tooltip/Crosshair.d.ts +44 -0
- package/tooltip/CrosshairContainer.d.ts +35 -0
- package/tooltip/Point.d.ts +78 -0
- package/tooltip/Popup.d.ts +39 -0
- package/tooltip/Series.d.ts +42 -0
- package/tooltip/SharedTooltipContent.d.ts +19 -0
- package/tooltip/index.d.ts +10 -0
- package/utils/index.d.ts +20 -0
package/BaseChart.d.ts
ADDED
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
import { default as PropTypes } from 'prop-types';
|
|
9
|
+
import { Surface } from '@progress/kendo-drawing';
|
|
10
|
+
import { InstanceObserver } from '@progress/kendo-charts';
|
|
11
|
+
import { DomEvent } from './events/dom-event.js';
|
|
12
|
+
import { BaseChartPrivateProps } from './BaseChartProps.js';
|
|
13
|
+
import { ChartContextType } from './ChartContext.js';
|
|
14
|
+
import * as React from 'react';
|
|
15
|
+
/**
|
|
16
|
+
* @hidden
|
|
17
|
+
*/
|
|
18
|
+
export declare class BaseChart extends React.Component<BaseChartPrivateProps, {}> {
|
|
19
|
+
/**
|
|
20
|
+
* @hidden
|
|
21
|
+
*/
|
|
22
|
+
static propTypes: {
|
|
23
|
+
dir: PropTypes.Requireable<string>;
|
|
24
|
+
renderAs: PropTypes.Requireable<string>;
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* @hidden
|
|
28
|
+
*/
|
|
29
|
+
static defaultProps: {
|
|
30
|
+
renderAs: string;
|
|
31
|
+
};
|
|
32
|
+
/**
|
|
33
|
+
* @hidden
|
|
34
|
+
*/
|
|
35
|
+
chartInstance: any | null;
|
|
36
|
+
/**
|
|
37
|
+
* @hidden
|
|
38
|
+
*/
|
|
39
|
+
surface: Surface | null;
|
|
40
|
+
/**
|
|
41
|
+
* @hidden
|
|
42
|
+
*/
|
|
43
|
+
get element(): HTMLDivElement;
|
|
44
|
+
protected _element: HTMLDivElement | null;
|
|
45
|
+
protected optionsStore: any;
|
|
46
|
+
protected optionsUnsubscriber: Function;
|
|
47
|
+
protected themeStore: any;
|
|
48
|
+
protected themeUnsubscriber: Function;
|
|
49
|
+
protected observersStore: any;
|
|
50
|
+
protected chartObserver: InstanceObserver;
|
|
51
|
+
protected childrenObserver: InstanceObserver;
|
|
52
|
+
protected suppressTransitions: boolean;
|
|
53
|
+
private readonly showLicenseWatermark;
|
|
54
|
+
private readonly licenseMessage?;
|
|
55
|
+
readonly state: ChartContextType;
|
|
56
|
+
constructor(props: BaseChartPrivateProps);
|
|
57
|
+
/**
|
|
58
|
+
* @hidden
|
|
59
|
+
*/
|
|
60
|
+
static getDerivedStateFromProps(props: any, state: any): any;
|
|
61
|
+
/**
|
|
62
|
+
* @hidden
|
|
63
|
+
*/
|
|
64
|
+
componentDidMount(): void;
|
|
65
|
+
/**
|
|
66
|
+
* @hidden
|
|
67
|
+
*/
|
|
68
|
+
componentWillUnmount(): void;
|
|
69
|
+
/**
|
|
70
|
+
* @hidden
|
|
71
|
+
*/
|
|
72
|
+
componentDidUpdate(prevProps: BaseChartPrivateProps): void;
|
|
73
|
+
/**
|
|
74
|
+
* @hidden
|
|
75
|
+
*/
|
|
76
|
+
render(): any;
|
|
77
|
+
/**
|
|
78
|
+
* @hidden
|
|
79
|
+
*/
|
|
80
|
+
getDirection(dir?: string): boolean;
|
|
81
|
+
/**
|
|
82
|
+
* @hidden
|
|
83
|
+
*/
|
|
84
|
+
getChartOptions(): any;
|
|
85
|
+
/**
|
|
86
|
+
* @hidden
|
|
87
|
+
*/
|
|
88
|
+
refresh(): void;
|
|
89
|
+
/**
|
|
90
|
+
* @hidden
|
|
91
|
+
*/
|
|
92
|
+
instantiateCoreChart(): void;
|
|
93
|
+
/**
|
|
94
|
+
* @hidden
|
|
95
|
+
*/
|
|
96
|
+
trigger(name: string, e: any): boolean;
|
|
97
|
+
/**
|
|
98
|
+
* @hidden
|
|
99
|
+
*/
|
|
100
|
+
requiresHandlers(names: string[]): boolean;
|
|
101
|
+
/**
|
|
102
|
+
* @hidden
|
|
103
|
+
*/
|
|
104
|
+
triggerDomEvent<T>(name: string, e: DomEvent<T>): boolean;
|
|
105
|
+
/**
|
|
106
|
+
* @hidden
|
|
107
|
+
*/
|
|
108
|
+
onRender: (e: any) => void;
|
|
109
|
+
/**
|
|
110
|
+
* @hidden
|
|
111
|
+
*/
|
|
112
|
+
onDrilldown: (e: any) => boolean;
|
|
113
|
+
/**
|
|
114
|
+
* @hidden
|
|
115
|
+
*/
|
|
116
|
+
onLegendItemClick: (e: any) => void;
|
|
117
|
+
/**
|
|
118
|
+
* @hidden
|
|
119
|
+
*/
|
|
120
|
+
onStyleChanged(): void;
|
|
121
|
+
/**
|
|
122
|
+
* @hidden
|
|
123
|
+
*/
|
|
124
|
+
readTheme(): void;
|
|
125
|
+
/**
|
|
126
|
+
* @hidden
|
|
127
|
+
*/
|
|
128
|
+
onWindowResize: () => void;
|
|
129
|
+
/**
|
|
130
|
+
* @hidden
|
|
131
|
+
*/
|
|
132
|
+
onChartMouseLeave: (e: React.MouseEvent<HTMLDivElement>) => void;
|
|
133
|
+
/**
|
|
134
|
+
* @hidden
|
|
135
|
+
*/
|
|
136
|
+
onChildMouseLeave: (e: DomEvent<React.MouseEvent<HTMLElement>>) => boolean;
|
|
137
|
+
}
|
|
@@ -0,0 +1,207 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
import { AxisLabelClickEvent, DragEvent, DragStartEvent, DragEndEvent, DrilldownEvent, LegendItemClickEvent, LegendItemHoverEvent, NoteClickEvent, NoteHoverEvent, PlotAreaClickEvent, PlotAreaHoverEvent, RenderEvent, SeriesClickEvent, SeriesHoverEvent, ZoomEvent, ZoomStartEvent, ZoomEndEvent, SelectEvent, SelectStartEvent, SelectEndEvent } from './common/events.js';
|
|
9
|
+
import { AxisDefaults, DragAction, Pane, PaneDefaults, SeriesDefaults, Zoomable } from './common/property-types.js';
|
|
10
|
+
import { Charts } from './common/charts.js';
|
|
11
|
+
import { ChartDrilldownState } from './common/api-types.js';
|
|
12
|
+
/**
|
|
13
|
+
* @hidden
|
|
14
|
+
*/
|
|
15
|
+
export interface BaseChartPrivateProps extends BaseChartProps {
|
|
16
|
+
/**
|
|
17
|
+
* @hidden
|
|
18
|
+
*/
|
|
19
|
+
deriveOptionsFromParent?: (options: any) => any;
|
|
20
|
+
/**
|
|
21
|
+
* @hidden
|
|
22
|
+
*/
|
|
23
|
+
chartConstructor: any;
|
|
24
|
+
/**
|
|
25
|
+
* @hidden
|
|
26
|
+
*/
|
|
27
|
+
wrapper: string;
|
|
28
|
+
/**
|
|
29
|
+
* @hidden
|
|
30
|
+
*/
|
|
31
|
+
getTarget: () => Charts;
|
|
32
|
+
/**
|
|
33
|
+
* @hidden
|
|
34
|
+
*/
|
|
35
|
+
data?: any;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* @hidden
|
|
39
|
+
*/
|
|
40
|
+
export interface BaseChartProps {
|
|
41
|
+
/**
|
|
42
|
+
* Represents the `dir` HTML attribute.
|
|
43
|
+
*/
|
|
44
|
+
dir?: string;
|
|
45
|
+
/**
|
|
46
|
+
* The styles that are applied to the component.
|
|
47
|
+
*/
|
|
48
|
+
style?: React.CSSProperties;
|
|
49
|
+
/**
|
|
50
|
+
* Sets additional CSS classes to the component.
|
|
51
|
+
*/
|
|
52
|
+
className?: string;
|
|
53
|
+
/**
|
|
54
|
+
* @hidden
|
|
55
|
+
*/
|
|
56
|
+
children?: any;
|
|
57
|
+
/**
|
|
58
|
+
* Gets or sets the current drill-down state for [Drilldown Charts](https://www.telerik.com/kendo-react-ui/components/charts/drill-down).
|
|
59
|
+
*
|
|
60
|
+
* To return to a previous level, remove the items from the `steps` array following the desired level.
|
|
61
|
+
* To return to the root chart, set the `steps` array to `[]`.
|
|
62
|
+
*/
|
|
63
|
+
drilldownState?: ChartDrilldownState;
|
|
64
|
+
/**
|
|
65
|
+
* Sets the preferred rendering engine ([see example](https://www.telerik.com/kendo-react-ui/components/charts/chart/rendering)). If not supported by the browser, the Chart switches to the first available mode.
|
|
66
|
+
*
|
|
67
|
+
* The supported values are:
|
|
68
|
+
* - `"svg"`—If available, renders the component as an inline `.svg` file.
|
|
69
|
+
* - `"canvas"`—If available, renders the component as a `canvas` element.
|
|
70
|
+
*/
|
|
71
|
+
renderAs?: 'svg' | 'canvas';
|
|
72
|
+
/**
|
|
73
|
+
* Specifies if the Chart can be panned ([see example](https://www.telerik.com/kendo-react-ui/components/charts/chart/pan-zoom)).
|
|
74
|
+
*/
|
|
75
|
+
pannable?: boolean | DragAction;
|
|
76
|
+
/**
|
|
77
|
+
* Specifies if the Chart can be zoomed ([see example](https://www.telerik.com/kendo-react-ui/components/charts/chart/pan-zoom)). Currently is only applicable to linear types, where the range on the X axis can be changed based on the zoom level.
|
|
78
|
+
*/
|
|
79
|
+
zoomable?: boolean | Zoomable;
|
|
80
|
+
/**
|
|
81
|
+
* The default colors for the Chart series. When all colors are used, new colors are pulled from the start again.
|
|
82
|
+
*/
|
|
83
|
+
seriesColors?: string[];
|
|
84
|
+
/**
|
|
85
|
+
* If set to `true`, the Chart plays animations when it displays the series. By default, animations are enabled.
|
|
86
|
+
*/
|
|
87
|
+
transitions?: boolean;
|
|
88
|
+
/**
|
|
89
|
+
* This option allows to override the default pane options.
|
|
90
|
+
*/
|
|
91
|
+
paneDefaults?: PaneDefaults;
|
|
92
|
+
/**
|
|
93
|
+
* The chart panes configuration.
|
|
94
|
+
*/
|
|
95
|
+
panes?: Pane[];
|
|
96
|
+
/**
|
|
97
|
+
* This option allows to override the default series options.
|
|
98
|
+
*/
|
|
99
|
+
seriesDefaults?: SeriesDefaults;
|
|
100
|
+
/**
|
|
101
|
+
* This option allows to override the default axis options.
|
|
102
|
+
*/
|
|
103
|
+
axisDefaults?: AxisDefaults;
|
|
104
|
+
/**
|
|
105
|
+
* @hidden
|
|
106
|
+
* Defines whether the Chart automatically repaints when its styles are modified through CSS variables.
|
|
107
|
+
*/
|
|
108
|
+
observeStyles?: boolean;
|
|
109
|
+
/**
|
|
110
|
+
* Fires when the user clicks an axis label.
|
|
111
|
+
*/
|
|
112
|
+
onAxisLabelClick?: (event: AxisLabelClickEvent) => void;
|
|
113
|
+
/**
|
|
114
|
+
* Fires as long as the user is dragging the Chart with the mouse or through swipe gestures.
|
|
115
|
+
*/
|
|
116
|
+
onDrag?: (event: DragEvent) => void;
|
|
117
|
+
/**
|
|
118
|
+
* Fires when the user stops dragging the Chart.
|
|
119
|
+
*/
|
|
120
|
+
onDragEnd?: (event: DragEndEvent) => void;
|
|
121
|
+
/**
|
|
122
|
+
* Fires when the user starts dragging the Chart.
|
|
123
|
+
*/
|
|
124
|
+
onDragStart?: (event: DragStartEvent) => void;
|
|
125
|
+
/**
|
|
126
|
+
* Fires when the user when the user wants to drill down on a specific point.
|
|
127
|
+
*/
|
|
128
|
+
onDrilldown?: (event: DrilldownEvent) => void;
|
|
129
|
+
/**
|
|
130
|
+
* Fires when the user hovers over a legend item.
|
|
131
|
+
*/
|
|
132
|
+
onLegendItemHover?: (event: LegendItemHoverEvent) => void;
|
|
133
|
+
/**
|
|
134
|
+
* Fires when the user clicks a legend item ([see example](https://www.telerik.com/kendo-react-ui/components/charts/chart/elements/legend#toc-clicking-legend-items)).
|
|
135
|
+
*/
|
|
136
|
+
onLegendItemClick?: (event: LegendItemClickEvent) => void;
|
|
137
|
+
/**
|
|
138
|
+
* Fires when the user clicks a note.
|
|
139
|
+
*/
|
|
140
|
+
onNoteClick?: (event: NoteClickEvent) => void;
|
|
141
|
+
/**
|
|
142
|
+
* Fires when the user hovers over a note.
|
|
143
|
+
*/
|
|
144
|
+
onNoteHover?: (event: NoteHoverEvent) => void;
|
|
145
|
+
/**
|
|
146
|
+
* Fires when the user clicks the plot area. The `click` event is triggered by the `tap` and `contextmenu` events. To distinguish between the original events, inspect the `e.originalEvent.type` field.
|
|
147
|
+
*/
|
|
148
|
+
onPlotAreaClick?: (event: PlotAreaClickEvent) => void;
|
|
149
|
+
/**
|
|
150
|
+
* Fires when the user hovers the plot area ([see example](https://www.telerik.com/kendo-react-ui/components/charts/chart/elements/crosshairs#toc-current-cursor-values)).
|
|
151
|
+
*/
|
|
152
|
+
onPlotAreaHover?: (event: PlotAreaHoverEvent) => void;
|
|
153
|
+
/**
|
|
154
|
+
* Fires when the Chart is ready to render on screen ([see example](https://www.telerik.com/kendo-react-ui/components/charts/chart/elements/plot-bands#toc-custom-plot-bands)). For example, you can use it to remove loading indicators. Any changes made to the options are ignored.
|
|
155
|
+
*/
|
|
156
|
+
onRender?: (event: RenderEvent) => void;
|
|
157
|
+
/**
|
|
158
|
+
* Fires when the Chart is about to refresh. The event can be used to prevent the refresh of the Chart in specific cases ([see example](https://www.telerik.com/kendo-react-ui/components/charts/chart/chart-refresh).
|
|
159
|
+
*/
|
|
160
|
+
onRefresh?: (chartOptions: any, themeOptions: any, chartInstance: any) => void;
|
|
161
|
+
/**
|
|
162
|
+
* Fires when the user modifies the selection.
|
|
163
|
+
*
|
|
164
|
+
* The range units are:
|
|
165
|
+
* - Generic axis—Category index (0-based).
|
|
166
|
+
* - Date axis—Date instance.
|
|
167
|
+
*/
|
|
168
|
+
onSelect?: (event: SelectEvent) => void;
|
|
169
|
+
/**
|
|
170
|
+
* Fires when the user completes the modification of the selection ([see example](https://www.telerik.com/kendo-react-ui/components/charts/chart/elements/selection#toc-using-selection-as-navigator)).
|
|
171
|
+
*
|
|
172
|
+
* The range units are:
|
|
173
|
+
* - Generic axis—Category index (0-based).
|
|
174
|
+
* - Date axis—Date instance.
|
|
175
|
+
*/
|
|
176
|
+
onSelectEnd?: (event: SelectEndEvent) => void;
|
|
177
|
+
/**
|
|
178
|
+
* Fires when the user starts modifying the axis selection.
|
|
179
|
+
*
|
|
180
|
+
* The range units are:
|
|
181
|
+
* - Generic axis—Category index (0-based).
|
|
182
|
+
* - Date axis—Date instance.
|
|
183
|
+
*/
|
|
184
|
+
onSelectStart?: (event: SelectStartEvent) => void;
|
|
185
|
+
/**
|
|
186
|
+
* Fires when the user clicks the Chart series.
|
|
187
|
+
*
|
|
188
|
+
* The `click` event will be triggered by the `tap` and `contextmenu` events. To distinguish between the original events, inspect the `e.originalEvent.type` field.
|
|
189
|
+
*/
|
|
190
|
+
onSeriesClick?: (event: SeriesClickEvent) => void;
|
|
191
|
+
/**
|
|
192
|
+
* Fires when the user hovers over the Chart series.
|
|
193
|
+
*/
|
|
194
|
+
onSeriesHover?: (event: SeriesHoverEvent) => void;
|
|
195
|
+
/**
|
|
196
|
+
* Fires as long as the user is zooming the Chart by using the mousewheel operation.
|
|
197
|
+
*/
|
|
198
|
+
onZoom?: (event: ZoomEvent) => void;
|
|
199
|
+
/**
|
|
200
|
+
* Fires when the user stops zooming the Chart.
|
|
201
|
+
*/
|
|
202
|
+
onZoomEnd?: (event: ZoomEndEvent) => void;
|
|
203
|
+
/**
|
|
204
|
+
* Fires when the user uses the mousewheel to zoom the Chart.
|
|
205
|
+
*/
|
|
206
|
+
onZoomStart?: (event: ZoomStartEvent) => void;
|
|
207
|
+
}
|
package/Chart.d.ts
ADDED
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
import { ChartProps } from './ChartProps.js';
|
|
9
|
+
import { Surface } from '@progress/kendo-drawing';
|
|
10
|
+
import * as React from 'react';
|
|
11
|
+
/**
|
|
12
|
+
* Represents the [KendoReact Chart component](https://www.telerik.com/kendo-react-ui/components/charts/chart).
|
|
13
|
+
*
|
|
14
|
+
* @remarks
|
|
15
|
+
* Supported children components are: {@link ChartAxisDefaults}, {@link ChartCategoryAxis}, {@link ChartArea},
|
|
16
|
+
* {@link ChartLegend}, {@link ChartPane}, {@link ChartPaneDefaults}, {@link ChartPanes}, {@link ChartPlopArea}, {@link ChartPlopArea},
|
|
17
|
+
* {@link ChartSeries}, {@link ChartSeriesDefaults}, {@link ChartSubTitle}, {@link ChartTitle}, {@link ChartTooltip},
|
|
18
|
+
* {@link ChartValueAxis}, {@link ChartXAxis}, {@link ChartYAxis}, {@link ChartZoomable}.
|
|
19
|
+
*
|
|
20
|
+
* @example
|
|
21
|
+
* ```jsx
|
|
22
|
+
* import {
|
|
23
|
+
* Chart,
|
|
24
|
+
* ChartSeries,
|
|
25
|
+
* ChartSeriesItem,
|
|
26
|
+
* ChartCategoryAxis,
|
|
27
|
+
* ChartCategoryAxisItem,
|
|
28
|
+
* ChartTitle,
|
|
29
|
+
* ChartLegend
|
|
30
|
+
* } from '@progress/kendo-react-charts';
|
|
31
|
+
*
|
|
32
|
+
* const categories = [ 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 ];
|
|
33
|
+
* const series = [ {
|
|
34
|
+
* name: 'India',
|
|
35
|
+
* data: [ 3.907, 7.943, 7.848, 9.284, 9.263, 9.801, 3.890, 8.238, 9.552, 6.855 ]
|
|
36
|
+
* }, {
|
|
37
|
+
* name: 'Russian Federation',
|
|
38
|
+
* data: [ 4.743, 7.295, 7.175, 6.376, 8.153, 8.535, 5.247, -7.832, 4.3, 4.3 ]
|
|
39
|
+
* }, {
|
|
40
|
+
* name: 'Germany',
|
|
41
|
+
* data: [ 0.010, -0.375, 1.161, 0.684, 3.7, 3.269, 1.083, -5.127, 3.690, 2.995 ]
|
|
42
|
+
* }, {
|
|
43
|
+
* name: 'World',
|
|
44
|
+
* data: [ 1.988, 2.733, 3.994, 3.464, 4.001, 3.939, 1.333, -2.245, 4.339, 2.727 ]
|
|
45
|
+
* } ];
|
|
46
|
+
*
|
|
47
|
+
* const ChartContainer = () => (
|
|
48
|
+
* <Chart>
|
|
49
|
+
* <ChartTitle text="Gross domestic product growth GDP annual" />
|
|
50
|
+
* <ChartLegend position="top" orientation="horizontal" />
|
|
51
|
+
* <ChartCategoryAxis>
|
|
52
|
+
* <ChartCategoryAxisItem categories={categories} startAngle={45} />
|
|
53
|
+
* </ChartCategoryAxis>
|
|
54
|
+
* <ChartSeries>
|
|
55
|
+
* {series.map((item, idx) => (
|
|
56
|
+
* <ChartSeriesItem
|
|
57
|
+
* key={idx}
|
|
58
|
+
* type="column"
|
|
59
|
+
* data={item.data}
|
|
60
|
+
* name={item.name}
|
|
61
|
+
* />))}
|
|
62
|
+
* </ChartSeries>
|
|
63
|
+
* </Chart>
|
|
64
|
+
* );
|
|
65
|
+
* ```
|
|
66
|
+
*/
|
|
67
|
+
export declare class Chart extends React.Component<ChartProps, {}> {
|
|
68
|
+
private _baseChart;
|
|
69
|
+
/**
|
|
70
|
+
* @hidden
|
|
71
|
+
*/
|
|
72
|
+
get chartInstance(): any;
|
|
73
|
+
/**
|
|
74
|
+
* The Drawing `Surface` of the Chart.
|
|
75
|
+
*/
|
|
76
|
+
get surface(): Surface | null;
|
|
77
|
+
/**
|
|
78
|
+
* The DOM element of the Chart.
|
|
79
|
+
*/
|
|
80
|
+
get element(): HTMLDivElement | null;
|
|
81
|
+
/**
|
|
82
|
+
* @hidden
|
|
83
|
+
*/
|
|
84
|
+
render(): any;
|
|
85
|
+
private getTarget;
|
|
86
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
import { BreadcrumbProps, DataModel } from '@progress/kendo-react-layout';
|
|
9
|
+
import { ChartDrilldownState } from './api-types/chart-drilldown-state.interface.js';
|
|
10
|
+
import { DrilldownStateChangeEvent } from './events/drilldown-state-change-event.js';
|
|
11
|
+
import * as React from 'react';
|
|
12
|
+
/**
|
|
13
|
+
* Represents the properties of [Chart Breadcrumb](https://www.telerik.com/kendo-react-ui/components/charts/api/chartbreadcrumb) component.
|
|
14
|
+
*/
|
|
15
|
+
export interface ChartBreadcrumbProps extends Omit<BreadcrumbProps, 'data'> {
|
|
16
|
+
/**
|
|
17
|
+
* The definition of the breadcrumb root item.
|
|
18
|
+
*
|
|
19
|
+
* The default value is `{ text: 'Home', icon: <SvgIcon icon={homeIcon} /> }`.
|
|
20
|
+
* Where `homeIcon` is imported from `@progress/kendo-svg-icons`.
|
|
21
|
+
*/
|
|
22
|
+
rootItem?: DataModel;
|
|
23
|
+
/**
|
|
24
|
+
* Fires when the user when the user has selected a different drilldown level.
|
|
25
|
+
*/
|
|
26
|
+
onDrilldownStateChange?: (event: DrilldownStateChangeEvent) => void;
|
|
27
|
+
/**
|
|
28
|
+
* The current drilldown state of the Chart.
|
|
29
|
+
*/
|
|
30
|
+
drilldownState?: ChartDrilldownState;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Represents the Object which is passed to the
|
|
34
|
+
* [`ref`](https://react.dev/learn/referencing-values-with-refs#refs-and-the-dom) callback of the ChartBreadcrumb component.
|
|
35
|
+
*/
|
|
36
|
+
export interface ChartBreadcrumbHandle {
|
|
37
|
+
/**
|
|
38
|
+
* The current element or `null` if there is none.
|
|
39
|
+
*/
|
|
40
|
+
element: HTMLDivElement | null;
|
|
41
|
+
/**
|
|
42
|
+
* The props values of the ChartBreadcrumb.
|
|
43
|
+
*/
|
|
44
|
+
props: ChartBreadcrumbProps;
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* Represents the Chart Breadcrumb component.
|
|
48
|
+
*/
|
|
49
|
+
export declare const ChartBreadcrumb: React.ForwardRefExoticComponent<ChartBreadcrumbProps & React.RefAttributes<ChartBreadcrumbHandle | null>>;
|
package/ChartBreadcrumb.js
CHANGED
|
@@ -5,4 +5,4 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const v=require("react"),e=require("prop-types"),F=require("@progress/kendo-react-layout"),I=require("@progress/kendo-react-common"),w=require("@progress/kendo-svg-icons"),C=require("./events/drilldown-state-change-event.js");function h(t){const l=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const r in t)if(r!=="default"){const i=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(l,r,i.get?i:{enumerable:!0,get:()=>t[r]})}}return l.default=t,Object.freeze(l)}const n=h(v),s=n.forwardRef((t,l)=>{const r=n.useRef(null),i=n.useRef(null),u={valueField:c.valueField,textField:c.textField,iconField:c.iconField,iconClassField:c.iconClassField,...t};n.useImperativeHandle(r,()=>({element:i.current,props:u})),n.useImperativeHandle(l,()=>r.current);let o=[{id:"0",...t.rootItem||{text:"Home",icon:n.createElement(I.SvgIcon,{icon:w.homeIcon,style:{marginInlineEnd:"4px"}})}}];t.drilldownState&&(o=[...o,...t.drilldownState.steps.map((d,a)=>({id:(a+1).toString(),text:d.drilldownValue}))]);const b={...u,data:o},g=d=>{var m;const a="onDrilldownStateChange";if(t.hasOwnProperty(a)){const f=o.findIndex(y=>y.id===d.id),p={steps:(((m=t.drilldownState)==null?void 0:m.steps)||[]).slice(0,f)},S=new C.DrilldownStateChangeEvent({currentState:t.drilldownState,nextState:p});t[a].call(void 0,S)}};return n.createElement("div",null,n.createElement(F.Breadcrumb,{...b,onItemSelect:g}))}),x={id:e.string,style:e.object,className:e.string,breadcrumbOrderedList:e.elementType,breadcrumbListItem:e.elementType,breadcrumbDelimiter:e.elementType,breadcrumbLink:e.elementType,dir:e.oneOf(["ltr","rtl"]),disabled:e.bool,valueField:e.string,textField:e.string,iconField:e.string,iconClassField:e.string,onItemSelect:e.func,ariaLabel:e.string,onDrilldownStateChange:e.func,drilldownState:e.shape({steps:e.array}),rootItem:e.object},c={valueField:"id",textField:"text",iconField:"icon",iconClassField:"iconClass"
|
|
8
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const v=require("react"),e=require("prop-types"),F=require("@progress/kendo-react-layout"),I=require("@progress/kendo-react-common"),w=require("@progress/kendo-svg-icons"),C=require("./events/drilldown-state-change-event.js");function h(t){const l=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const r in t)if(r!=="default"){const i=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(l,r,i.get?i:{enumerable:!0,get:()=>t[r]})}}return l.default=t,Object.freeze(l)}const n=h(v),s=n.forwardRef((t,l)=>{const r=n.useRef(null),i=n.useRef(null),u={valueField:c.valueField,textField:c.textField,iconField:c.iconField,iconClassField:c.iconClassField,...t};n.useImperativeHandle(r,()=>({element:i.current,props:u})),n.useImperativeHandle(l,()=>r.current);let o=[{id:"0",...t.rootItem||{text:"Home",icon:n.createElement(I.SvgIcon,{icon:w.homeIcon,style:{marginInlineEnd:"4px"}})}}];t.drilldownState&&(o=[...o,...t.drilldownState.steps.map((d,a)=>({id:(a+1).toString(),text:d.drilldownValue}))]);const b={...u,data:o},g=d=>{var m;const a="onDrilldownStateChange";if(t.hasOwnProperty(a)){const f=o.findIndex(y=>y.id===d.id),p={steps:(((m=t.drilldownState)==null?void 0:m.steps)||[]).slice(0,f)},S=new C.DrilldownStateChangeEvent({currentState:t.drilldownState,nextState:p});t[a].call(void 0,S)}};return n.createElement("div",null,n.createElement(F.Breadcrumb,{...b,onItemSelect:g}))}),x={id:e.string,style:e.object,className:e.string,breadcrumbOrderedList:e.elementType,breadcrumbListItem:e.elementType,breadcrumbDelimiter:e.elementType,breadcrumbLink:e.elementType,dir:e.oneOf(["ltr","rtl"]),disabled:e.bool,valueField:e.string,textField:e.string,iconField:e.string,iconClassField:e.string,onItemSelect:e.func,ariaLabel:e.string,onDrilldownStateChange:e.func,drilldownState:e.shape({steps:e.array}),rootItem:e.object},c={valueField:"id",textField:"text",iconField:"icon",iconClassField:"iconClass"};s.displayName="KendoReactChartBreadcrumb";s.propTypes=x;exports.ChartBreadcrumb=s;
|
package/ChartBreadcrumb.mjs
CHANGED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
import { Store } from './store/store.js';
|
|
9
|
+
import { InstanceObserver } from '@progress/kendo-charts';
|
|
10
|
+
import { ChartDrilldownState } from './api-types/chart-drilldown-state.interface.js';
|
|
11
|
+
import * as React from 'react';
|
|
12
|
+
/**
|
|
13
|
+
* @hidden
|
|
14
|
+
*/
|
|
15
|
+
export interface ChartContextType {
|
|
16
|
+
optionsStore: Store;
|
|
17
|
+
observersStore: Store;
|
|
18
|
+
childrenObserver: InstanceObserver;
|
|
19
|
+
drilldownState: ChartDrilldownState;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* @hidden
|
|
23
|
+
*/
|
|
24
|
+
export declare const ChartContext: React.Context<ChartContextType | null>;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
import * as React from 'react';
|
|
9
|
+
/**
|
|
10
|
+
* The props of the `ChartNoDataOverlay` component.
|
|
11
|
+
*/
|
|
12
|
+
export interface ChartNoDataOverlayProps {
|
|
13
|
+
/**
|
|
14
|
+
* The styles that are applied to the component.
|
|
15
|
+
*/
|
|
16
|
+
style?: React.CSSProperties;
|
|
17
|
+
/**
|
|
18
|
+
* Sets additional CSS classes to the component.
|
|
19
|
+
*/
|
|
20
|
+
className?: string;
|
|
21
|
+
/**
|
|
22
|
+
* The content of the overlay. If not set, the default message will be displayed.
|
|
23
|
+
*/
|
|
24
|
+
children?: React.ReactNode;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* The KendoReact `ChartNoDataOverlay` component. The component is used to display an overlay with a message when the Chart has no data, no series, or all series are empty.
|
|
28
|
+
* The overlay will be automatically cleared if the series receive data.
|
|
29
|
+
*/
|
|
30
|
+
export declare const ChartNoDataOverlay: React.FunctionComponent<any>;
|
package/ChartProps.d.ts
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
import { BaseChartProps } from './BaseChartProps.js';
|
|
9
|
+
/**
|
|
10
|
+
* Represents the props of the KendoReact Chart component.
|
|
11
|
+
*/
|
|
12
|
+
export interface ChartProps extends BaseChartProps {
|
|
13
|
+
/**
|
|
14
|
+
* When set, the prop is used to render the Donut Center template.
|
|
15
|
+
*/
|
|
16
|
+
donutCenterRender?: () => React.ReactElement<any>;
|
|
17
|
+
}
|
package/Container.d.ts
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* @hidden
|
|
10
|
+
*/
|
|
11
|
+
declare const Container: React.FunctionComponent<any>;
|
|
12
|
+
/**
|
|
13
|
+
* To provide support for React versions which do not support `React.Fragment`, the following component acts as its replacement. Returning an array is not an option as it blocks unit testing until [https://github.com/airbnb/enzyme/pull/1498#issuecomment-378413134](https://github.com/airbnb/enzyme/pull/1498#issuecomment-378413134) is released.
|
|
14
|
+
*/
|
|
15
|
+
export { Container };
|
package/DonutCenter.d.ts
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
import { InstanceObserver } from '@progress/kendo-charts';
|
|
9
|
+
import { ChartContext } from './ChartContext.js';
|
|
10
|
+
import * as React from 'react';
|
|
11
|
+
/**
|
|
12
|
+
* @hidden
|
|
13
|
+
*/
|
|
14
|
+
export interface DonutCenterStyle {
|
|
15
|
+
height: number;
|
|
16
|
+
left: number;
|
|
17
|
+
top: number;
|
|
18
|
+
width: number;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* @hidden
|
|
22
|
+
*/
|
|
23
|
+
export interface DonutCenterProps {
|
|
24
|
+
render?: () => React.ReactElement<any, any>;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* @hidden
|
|
28
|
+
*/
|
|
29
|
+
export interface DonutCenterState {
|
|
30
|
+
donutCenterStyles: DonutCenterStyle | null;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* @hidden
|
|
34
|
+
*/
|
|
35
|
+
declare class DonutCenter extends React.Component<DonutCenterProps, DonutCenterState> {
|
|
36
|
+
static contextType: React.Context<import('./ChartContext').ChartContextType | null>;
|
|
37
|
+
context: React.ContextType<typeof ChartContext>;
|
|
38
|
+
readonly state: DonutCenterState;
|
|
39
|
+
chartObserver: InstanceObserver;
|
|
40
|
+
constructor(props: DonutCenterProps);
|
|
41
|
+
componentDidMount(): void;
|
|
42
|
+
render(): any;
|
|
43
|
+
onRender(event: any): void;
|
|
44
|
+
}
|
|
45
|
+
export { DonutCenter };
|