@progress/kendo-angular-charts 12.2.0-develop.7 → 13.0.0-develop.10
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/chart/series-drilldown-template.directive.d.ts +25 -0
- package/chart/series-item.component.d.ts +4 -1
- package/chart/series.component.d.ts +3 -2
- package/chart-breadcrumb.component.d.ts +43 -0
- package/chart.component.d.ts +25 -1
- package/chart.directives.d.ts +2 -1
- package/chart.module.d.ts +69 -66
- package/common/collection-item.component.d.ts +1 -0
- package/common/collection.service.d.ts +1 -0
- package/common/events.d.ts +1 -0
- package/esm2020/chart/series-drilldown-template.directive.mjs +34 -0
- package/esm2020/chart/series-item.component.mjs +7 -1
- package/esm2020/chart/series.component.mjs +7 -6
- package/esm2020/chart-breadcrumb.component.mjs +82 -0
- package/esm2020/chart.component.mjs +68 -2
- package/esm2020/chart.directives.mjs +5 -1
- package/esm2020/chart.module.mjs +68 -65
- package/esm2020/common/collection-item.component.mjs +1 -0
- package/esm2020/common/collection.component.mjs +2 -2
- package/esm2020/common/events.mjs +1 -0
- package/esm2020/events/drilldown-event.mjs +21 -0
- package/esm2020/index.mjs +1 -0
- package/esm2020/package-metadata.mjs +2 -2
- package/esm2020/sparkline.component.mjs +22 -2
- package/esm2020/stock-chart/navigator/series-item.component.mjs +5 -3
- package/esm2020/stock-chart/navigator/series.component.mjs +6 -5
- package/esm2020/stock-chart.component.mjs +21 -1
- package/events/drilldown-event.d.ts +31 -0
- package/fesm2015/progress-kendo-angular-charts.mjs +353 -113
- package/fesm2020/progress-kendo-angular-charts.mjs +351 -113
- package/index.d.ts +1 -0
- package/option-types/series-item.interface.d.ts +4 -0
- package/package.json +9 -7
- package/sparkline.component.d.ts +15 -2
- package/stock-chart/navigator/series-item.component.d.ts +5 -1
- package/stock-chart/navigator/series.component.d.ts +3 -2
- package/stock-chart.component.d.ts +14 -1
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2023 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
import { Component, Input, ViewChild, isDevMode } from '@angular/core';
|
|
6
|
+
import { BreadCrumbComponent } from '@progress/kendo-angular-navigation';
|
|
7
|
+
import { ChartComponent } from './index';
|
|
8
|
+
import { homeIcon } from '@progress/kendo-svg-icons';
|
|
9
|
+
import * as i0 from "@angular/core";
|
|
10
|
+
import * as i1 from "@progress/kendo-angular-navigation";
|
|
11
|
+
/**
|
|
12
|
+
* Navigation Breadcrumb component for Drilldown Charts.
|
|
13
|
+
*
|
|
14
|
+
* Use this component to implement navigation for [Drilldown Charts](slug:drilldown_chart_charts).
|
|
15
|
+
* Use the `chart` input to link the Breadcrumb to the Chart instance.
|
|
16
|
+
*
|
|
17
|
+
*/
|
|
18
|
+
export class ChartBreadcrumbComponent {
|
|
19
|
+
constructor() {
|
|
20
|
+
/**
|
|
21
|
+
* The definition of the breadcrumb root item.
|
|
22
|
+
*
|
|
23
|
+
* The default value is `{ icon: 'home', svgIcon: homeIcon, title: 'Home' }`.
|
|
24
|
+
* (homeIcon is imported from '@progress/kendo-svg-icons')
|
|
25
|
+
*/
|
|
26
|
+
this.rootItem = { icon: 'home', svgIcon: homeIcon, title: 'Home' };
|
|
27
|
+
}
|
|
28
|
+
ngOnInit() {
|
|
29
|
+
this.items = [this.rootItem];
|
|
30
|
+
if (this.chart) {
|
|
31
|
+
this.subscription = this.chart.drilldown.subscribe((e) => {
|
|
32
|
+
this.items = [...this.items, { text: e.point.category.toString() }];
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
else if (isDevMode()) {
|
|
36
|
+
console.warn('Chart Breadcrumb: No Chart instance supplied. Navigation is inactive.');
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
ngOnChanges(changes) {
|
|
40
|
+
const rootItemChange = changes['rootItem'];
|
|
41
|
+
if (rootItemChange && this.items) {
|
|
42
|
+
this.items[0] = rootItemChange.currentValue;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
ngOnDestroy() {
|
|
46
|
+
if (this.subscription) {
|
|
47
|
+
this.subscription.unsubscribe();
|
|
48
|
+
this.subscription = null;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* @hidden
|
|
53
|
+
*/
|
|
54
|
+
onItemClick(target) {
|
|
55
|
+
const level = this.items.findIndex(item => item === target);
|
|
56
|
+
this.chart.drilldownLevel = level;
|
|
57
|
+
this.items = this.items.slice(0, level + 1);
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
ChartBreadcrumbComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: ChartBreadcrumbComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
61
|
+
ChartBreadcrumbComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: ChartBreadcrumbComponent, selector: "kendo-chart-breadcrumb", inputs: { chart: "chart", rootItem: "rootItem" }, viewQueries: [{ propertyName: "breadcrumb", first: true, predicate: ["breadcrumb"], descendants: true, static: true }], exportAs: ["kendoChartBreadcrumb"], usesOnChanges: true, ngImport: i0, template: `
|
|
62
|
+
<kendo-breadcrumb [items]="items" (itemClick)="onItemClick($event)">
|
|
63
|
+
</kendo-breadcrumb>
|
|
64
|
+
`, isInline: true, components: [{ type: i1.BreadCrumbComponent, selector: "kendo-breadcrumb", inputs: ["items", "separatorIcon", "separatorSVGIcon", "collapseMode"], outputs: ["itemClick"], exportAs: ["kendoBreadCrumb"] }] });
|
|
65
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: ChartBreadcrumbComponent, decorators: [{
|
|
66
|
+
type: Component,
|
|
67
|
+
args: [{
|
|
68
|
+
exportAs: 'kendoChartBreadcrumb',
|
|
69
|
+
selector: 'kendo-chart-breadcrumb',
|
|
70
|
+
template: `
|
|
71
|
+
<kendo-breadcrumb [items]="items" (itemClick)="onItemClick($event)">
|
|
72
|
+
</kendo-breadcrumb>
|
|
73
|
+
`
|
|
74
|
+
}]
|
|
75
|
+
}], propDecorators: { chart: [{
|
|
76
|
+
type: Input
|
|
77
|
+
}], rootItem: [{
|
|
78
|
+
type: Input
|
|
79
|
+
}], breadcrumb: [{
|
|
80
|
+
type: ViewChild,
|
|
81
|
+
args: ['breadcrumb', { static: true }]
|
|
82
|
+
}] } });
|
|
@@ -30,6 +30,8 @@ import { InstanceEventService } from './events/instance-event.service';
|
|
|
30
30
|
import { LegendItemClickEvent } from './events/legend-item-click-event';
|
|
31
31
|
import { RenderEvent } from './events/render-event';
|
|
32
32
|
import { packageMetadata } from './package-metadata';
|
|
33
|
+
import { SeriesComponent } from './chart/series.component';
|
|
34
|
+
import { DrilldownEvent } from './events/drilldown-event';
|
|
33
35
|
import * as i0 from "@angular/core";
|
|
34
36
|
import * as i1 from "./common/configuration.service";
|
|
35
37
|
import * as i2 from "./common/theme.service";
|
|
@@ -187,6 +189,10 @@ export class ChartComponent {
|
|
|
187
189
|
* To distinguish between the original events, inspect the `e.originalEvent.type` field.
|
|
188
190
|
*/
|
|
189
191
|
this.seriesClick = new EventEmitter();
|
|
192
|
+
/**
|
|
193
|
+
* Fires when the user when the user wants to drill down on a specific point.
|
|
194
|
+
*/
|
|
195
|
+
this.drilldown = new EventEmitter();
|
|
190
196
|
/**
|
|
191
197
|
* Fires when the user hovers the Chart series ([see example](slug:events_charts)).
|
|
192
198
|
*/
|
|
@@ -216,6 +222,10 @@ export class ChartComponent {
|
|
|
216
222
|
* Can be prevented.
|
|
217
223
|
*/
|
|
218
224
|
this.legendItemClick = new EventEmitter();
|
|
225
|
+
/**
|
|
226
|
+
* Fires when the drill-down level has changed.
|
|
227
|
+
*/
|
|
228
|
+
this.drilldownLevelChange = new EventEmitter();
|
|
219
229
|
/**
|
|
220
230
|
* Limits the automatic resizing of the Chart. Sets the maximum number of times per second
|
|
221
231
|
* that the component redraws its content when the size of its container changes.
|
|
@@ -248,10 +258,33 @@ export class ChartComponent {
|
|
|
248
258
|
this.suppressTransitions = false;
|
|
249
259
|
this.rtl = false;
|
|
250
260
|
this.hostClasses = ['k-chart', 'k-widget'];
|
|
261
|
+
this.drilldownState = [];
|
|
251
262
|
validatePackage(packageMetadata);
|
|
252
263
|
this.themeService.loadTheme();
|
|
253
264
|
this.refreshWait();
|
|
254
265
|
}
|
|
266
|
+
/**
|
|
267
|
+
* Gets or sets the current drill-down level for [Drilldown Charts](slug:drilldown_chart_charts).
|
|
268
|
+
*
|
|
269
|
+
* To return to a previous level, set the value to a number less than the current level.
|
|
270
|
+
* To return to the root chart, set the value to 0.
|
|
271
|
+
*
|
|
272
|
+
* Setting the value to a number greater than the current level will have no effect.
|
|
273
|
+
*/
|
|
274
|
+
get drilldownLevel() {
|
|
275
|
+
return this.drilldownState.length;
|
|
276
|
+
}
|
|
277
|
+
set drilldownLevel(level) {
|
|
278
|
+
const currentLevel = this.drilldownState.length;
|
|
279
|
+
if (currentLevel <= level || !this.seriesComponents) {
|
|
280
|
+
return;
|
|
281
|
+
}
|
|
282
|
+
const removed = this.drilldownState.slice(level);
|
|
283
|
+
removed.forEach(view => view.destroy());
|
|
284
|
+
this.drilldownState = this.drilldownState.slice(0, currentLevel - removed.length);
|
|
285
|
+
this.seriesComponents.toArray().slice(-removed.length - 1).forEach(series => series.hidden = false);
|
|
286
|
+
this.drilldownLevelChange.emit(level);
|
|
287
|
+
}
|
|
255
288
|
ngOnInit() {
|
|
256
289
|
if (this.element) {
|
|
257
290
|
this.hostClasses.forEach(name => {
|
|
@@ -273,6 +306,26 @@ export class ChartComponent {
|
|
|
273
306
|
this.subscriptions = this.intl.changes.subscribe(this.intlChange.bind(this));
|
|
274
307
|
this.subscriptions.add(this.localizationService.changes.subscribe(this.rtlChange.bind(this)));
|
|
275
308
|
}
|
|
309
|
+
onDrilldown(e) {
|
|
310
|
+
const args = new DrilldownEvent(e, this);
|
|
311
|
+
this.run(() => this.drilldown.emit(args));
|
|
312
|
+
if (args.isDefaultPrevented()) {
|
|
313
|
+
return;
|
|
314
|
+
}
|
|
315
|
+
const seriesCollection = this.seriesCollectionComponent.first;
|
|
316
|
+
const seriesComponent = this.seriesComponents.find((sc) => sc.name === e.series.name);
|
|
317
|
+
if (seriesComponent.drilldownTemplate) {
|
|
318
|
+
seriesComponent.hidden = true;
|
|
319
|
+
const view = seriesCollection.viewContainer.createEmbeddedView(seriesComponent.drilldownTemplate.templateRef, {
|
|
320
|
+
drilldownValue: e.value,
|
|
321
|
+
point: e.point,
|
|
322
|
+
series: e.series
|
|
323
|
+
});
|
|
324
|
+
view.markForCheck();
|
|
325
|
+
this.drilldownState.push(view);
|
|
326
|
+
this.drilldownLevelChange.emit(this.drilldownLevel);
|
|
327
|
+
}
|
|
328
|
+
}
|
|
276
329
|
ngAfterViewChecked() {
|
|
277
330
|
if (this.instance && this.autoResize) {
|
|
278
331
|
this.ngZone.runOutsideAngular(() => {
|
|
@@ -522,6 +575,10 @@ export class ChartComponent {
|
|
|
522
575
|
if (name === 'resize') {
|
|
523
576
|
return;
|
|
524
577
|
}
|
|
578
|
+
if (name === 'drilldown') {
|
|
579
|
+
this.onDrilldown(e);
|
|
580
|
+
return;
|
|
581
|
+
}
|
|
525
582
|
const emitter = this.activeEmitter(name);
|
|
526
583
|
if (emitter) {
|
|
527
584
|
const args = this.instanceEventService.create(name, e, this);
|
|
@@ -698,7 +755,7 @@ export class ChartComponent {
|
|
|
698
755
|
}
|
|
699
756
|
}
|
|
700
757
|
ChartComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: ChartComponent, deps: [{ token: i1.ConfigurationService }, { token: i2.ThemeService }, { token: i0.ElementRef }, { token: i3.IntlService }, { token: i4.LocalizationService }, { token: i0.NgZone }, { token: i5.InstanceEventService }, { token: i0.ChangeDetectorRef }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component });
|
|
701
|
-
ChartComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: ChartComponent, selector: "kendo-chart", inputs: { pannable: "pannable", renderAs: "renderAs", seriesColors: "seriesColors", subtitle: "subtitle", title: "title", transitions: "transitions", zoomable: "zoomable", axisDefaults: "axisDefaults", categoryAxis: "categoryAxis", chartArea: "chartArea", legend: "legend", panes: "panes", paneDefaults: "paneDefaults", plotArea: "plotArea", series: "series", seriesDefaults: "seriesDefaults", tooltip: "tooltip", valueAxis: "valueAxis", xAxis: "xAxis", yAxis: "yAxis", resizeRateLimit: "resizeRateLimit", popupSettings: "popupSettings" }, outputs: { axisLabelClick: "axisLabelClick", drag: "drag", dragEnd: "dragEnd", dragStart: "dragStart", legendItemHover: "legendItemHover", legendItemLeave: "legendItemLeave", noteClick: "noteClick", noteHover: "noteHover", noteLeave: "noteLeave", paneRender: "paneRender", plotAreaClick: "plotAreaClick", plotAreaHover: "plotAreaHover", plotAreaLeave: "plotAreaLeave", render: "render", select: "select", selectEnd: "selectEnd", selectStart: "selectStart", seriesClick: "seriesClick", seriesHover: "seriesHover", seriesOver: "seriesOver", seriesLeave: "seriesLeave", zoom: "zoom", zoomEnd: "zoomEnd", zoomStart: "zoomStart", legendItemClick: "legendItemClick" }, providers: [
|
|
758
|
+
ChartComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: ChartComponent, selector: "kendo-chart", inputs: { pannable: "pannable", renderAs: "renderAs", seriesColors: "seriesColors", subtitle: "subtitle", title: "title", transitions: "transitions", zoomable: "zoomable", axisDefaults: "axisDefaults", categoryAxis: "categoryAxis", chartArea: "chartArea", legend: "legend", panes: "panes", paneDefaults: "paneDefaults", plotArea: "plotArea", series: "series", seriesDefaults: "seriesDefaults", tooltip: "tooltip", valueAxis: "valueAxis", xAxis: "xAxis", yAxis: "yAxis", resizeRateLimit: "resizeRateLimit", popupSettings: "popupSettings", drilldownLevel: "drilldownLevel" }, outputs: { axisLabelClick: "axisLabelClick", drag: "drag", dragEnd: "dragEnd", dragStart: "dragStart", legendItemHover: "legendItemHover", legendItemLeave: "legendItemLeave", noteClick: "noteClick", noteHover: "noteHover", noteLeave: "noteLeave", paneRender: "paneRender", plotAreaClick: "plotAreaClick", plotAreaHover: "plotAreaHover", plotAreaLeave: "plotAreaLeave", render: "render", select: "select", selectEnd: "selectEnd", selectStart: "selectStart", seriesClick: "seriesClick", drilldown: "drilldown", seriesHover: "seriesHover", seriesOver: "seriesOver", seriesLeave: "seriesLeave", zoom: "zoom", zoomEnd: "zoomEnd", zoomStart: "zoomStart", legendItemClick: "legendItemClick", drilldownLevelChange: "drilldownLevelChange" }, providers: [
|
|
702
759
|
ConfigurationService,
|
|
703
760
|
TooltipTemplateService,
|
|
704
761
|
InstanceEventService,
|
|
@@ -707,7 +764,7 @@ ChartComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version
|
|
|
707
764
|
provide: L10N_PREFIX,
|
|
708
765
|
useValue: 'kendo.chart'
|
|
709
766
|
}
|
|
710
|
-
], queries: [{ propertyName: "donutCenterTemplate", first: true, predicate: DonutCenterTemplateDirective, descendants: true }, { propertyName: "seriesComponents", predicate: SeriesItemComponent, descendants: true }], viewQueries: [{ propertyName: "tooltipInstance", first: true, predicate: TooltipPopupComponent, descendants: true, static: true }, { propertyName: "crossahirTooltips", first: true, predicate: CrosshairTooltipsContainerComponent, descendants: true, static: true }, { propertyName: "surfaceElement", first: true, predicate: ["surface"], descendants: true, static: true }], exportAs: ["kendoChart"], usesOnChanges: true, ngImport: i0, template: `
|
|
767
|
+
], queries: [{ propertyName: "donutCenterTemplate", first: true, predicate: DonutCenterTemplateDirective, descendants: true }, { propertyName: "seriesCollectionComponent", predicate: SeriesComponent }, { propertyName: "seriesComponents", predicate: SeriesItemComponent, descendants: true }], viewQueries: [{ propertyName: "tooltipInstance", first: true, predicate: TooltipPopupComponent, descendants: true, static: true }, { propertyName: "crossahirTooltips", first: true, predicate: CrosshairTooltipsContainerComponent, descendants: true, static: true }, { propertyName: "surfaceElement", first: true, predicate: ["surface"], descendants: true, static: true }], exportAs: ["kendoChart"], usesOnChanges: true, ngImport: i0, template: `
|
|
711
768
|
<div #surface class="k-chart-surface"></div>
|
|
712
769
|
<kendo-chart-crosshair-tooltips-container [popupSettings]="popupSettings">
|
|
713
770
|
</kendo-chart-crosshair-tooltips-container>
|
|
@@ -822,6 +879,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
822
879
|
type: Output
|
|
823
880
|
}], seriesClick: [{
|
|
824
881
|
type: Output
|
|
882
|
+
}], drilldown: [{
|
|
883
|
+
type: Output
|
|
825
884
|
}], seriesHover: [{
|
|
826
885
|
type: Output
|
|
827
886
|
}], seriesOver: [{
|
|
@@ -836,10 +895,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
836
895
|
type: Output
|
|
837
896
|
}], legendItemClick: [{
|
|
838
897
|
type: Output
|
|
898
|
+
}], drilldownLevelChange: [{
|
|
899
|
+
type: Output
|
|
839
900
|
}], resizeRateLimit: [{
|
|
840
901
|
type: Input
|
|
841
902
|
}], popupSettings: [{
|
|
842
903
|
type: Input
|
|
904
|
+
}], drilldownLevel: [{
|
|
905
|
+
type: Input
|
|
906
|
+
}], seriesCollectionComponent: [{
|
|
907
|
+
type: ContentChildren,
|
|
908
|
+
args: [SeriesComponent]
|
|
843
909
|
}], seriesComponents: [{
|
|
844
910
|
type: ContentChildren,
|
|
845
911
|
args: [SeriesItemComponent, { descendants: true }]
|
|
@@ -88,8 +88,10 @@ import { YAxisNotesIconComponent } from './chart/y-axis-item/notes.icon.componen
|
|
|
88
88
|
import { YAxisNotesLabelComponent } from './chart/y-axis-item/notes.label.component';
|
|
89
89
|
import { YAxisTitleComponent } from './chart/y-axis-item/title.component';
|
|
90
90
|
import { ZoomableComponent } from './chart/zoomable.component';
|
|
91
|
+
import { SeriesDrilldownTemplateDirective } from './chart/series-drilldown-template.directive';
|
|
92
|
+
import { ChartBreadcrumbComponent } from './chart-breadcrumb.component';
|
|
91
93
|
// Re-exports
|
|
92
|
-
export { ChartComponent, AxisDefaultsComponent, AxisDefaultsCrosshairComponent, AxisDefaultsCrosshairTooltipComponent, AxisDefaultsLabelsComponent, AxisDefaultsTitleComponent, CategoryAxisComponent, CategoryAxisCrosshairComponent, CategoryAxisCrosshairTooltipComponent, CategoryAxisItemComponent, CategoryAxisLabelsComponent, CategoryAxisRangeLabelsComponent, CategoryAxisNotesComponent, CategoryAxisNotesIconComponent, CategoryAxisNotesLabelComponent, CategoryAxisSelectComponent, CategoryAxisTitleComponent, ChartAreaComponent, LegendComponent, LegendInactiveItemsComponent, LegendItemComponent, PaneComponent, PaneDefaultsComponent, PaneDefaultsTitleComponent, PanesComponent, PanesTitleComponent, PlotAreaComponent, SeriesComponent, SeriesDefaultsComponent, SeriesDefaultsLabelsComponent, SeriesDefaultsLabelsFromComponent, SeriesDefaultsLabelsToComponent, SeriesDefaultsNotesComponent, SeriesDefaultsNotesIconComponent, SeriesDefaultsNotesLabelComponent, SeriesDefaultsTooltipComponent, SeriesErrorBarsComponent, SeriesExtremesComponent, SeriesHighlightComponent, SeriesItemComponent, SeriesLabelsComponent, SeriesLabelsFromComponent, SeriesLabelsToComponent, SeriesMarkersComponent, SeriesNotesComponent, SeriesNotesIconComponent, SeriesNotesLabelComponent, SeriesOutliersComponent, SeriesTooltipComponent, SubtitleComponent, TitleComponent, TooltipComponent, ValueAxisComponent, ValueAxisCrosshairComponent, ValueAxisCrosshairTooltipComponent, ValueAxisItemComponent, ValueAxisLabelsComponent, ValueAxisNotesComponent, ValueAxisNotesIconComponent, ValueAxisNotesLabelComponent, ValueAxisTitleComponent, XAxisComponent, XAxisCrosshairComponent, XAxisCrosshairTooltipComponent, XAxisItemComponent, XAxisLabelsComponent, XAxisNotesComponent, XAxisNotesIconComponent, XAxisNotesLabelComponent, XAxisTitleComponent, YAxisComponent, YAxisCrosshairComponent, YAxisCrosshairTooltipComponent, YAxisItemComponent, YAxisLabelsComponent, YAxisNotesComponent, YAxisNotesIconComponent, YAxisNotesLabelComponent, YAxisTitleComponent, ZoomableComponent };
|
|
94
|
+
export { ChartComponent, AxisDefaultsComponent, AxisDefaultsCrosshairComponent, AxisDefaultsCrosshairTooltipComponent, AxisDefaultsLabelsComponent, AxisDefaultsTitleComponent, CategoryAxisComponent, CategoryAxisCrosshairComponent, CategoryAxisCrosshairTooltipComponent, CategoryAxisItemComponent, CategoryAxisLabelsComponent, CategoryAxisRangeLabelsComponent, CategoryAxisNotesComponent, CategoryAxisNotesIconComponent, CategoryAxisNotesLabelComponent, CategoryAxisSelectComponent, CategoryAxisTitleComponent, ChartAreaComponent, ChartBreadcrumbComponent, LegendComponent, LegendInactiveItemsComponent, LegendItemComponent, PaneComponent, PaneDefaultsComponent, PaneDefaultsTitleComponent, PanesComponent, PanesTitleComponent, PlotAreaComponent, SeriesComponent, SeriesDefaultsComponent, SeriesDefaultsLabelsComponent, SeriesDefaultsLabelsFromComponent, SeriesDefaultsLabelsToComponent, SeriesDefaultsNotesComponent, SeriesDefaultsNotesIconComponent, SeriesDefaultsNotesLabelComponent, SeriesDefaultsTooltipComponent, SeriesErrorBarsComponent, SeriesExtremesComponent, SeriesHighlightComponent, SeriesItemComponent, SeriesLabelsComponent, SeriesLabelsFromComponent, SeriesLabelsToComponent, SeriesMarkersComponent, SeriesNotesComponent, SeriesNotesIconComponent, SeriesNotesLabelComponent, SeriesOutliersComponent, SeriesTooltipComponent, SubtitleComponent, TitleComponent, TooltipComponent, ValueAxisComponent, ValueAxisCrosshairComponent, ValueAxisCrosshairTooltipComponent, ValueAxisItemComponent, ValueAxisLabelsComponent, ValueAxisNotesComponent, ValueAxisNotesIconComponent, ValueAxisNotesLabelComponent, ValueAxisTitleComponent, XAxisComponent, XAxisCrosshairComponent, XAxisCrosshairTooltipComponent, XAxisItemComponent, XAxisLabelsComponent, XAxisNotesComponent, XAxisNotesIconComponent, XAxisNotesLabelComponent, XAxisTitleComponent, YAxisComponent, YAxisCrosshairComponent, YAxisCrosshairTooltipComponent, YAxisItemComponent, YAxisLabelsComponent, YAxisNotesComponent, YAxisNotesIconComponent, YAxisNotesLabelComponent, YAxisTitleComponent, ZoomableComponent };
|
|
93
95
|
/**
|
|
94
96
|
* @hidden
|
|
95
97
|
*/
|
|
@@ -118,6 +120,7 @@ export const CHART_DIRECTIVES = [
|
|
|
118
120
|
CategoryAxisSelectComponent,
|
|
119
121
|
CategoryAxisTitleComponent,
|
|
120
122
|
ChartAreaComponent,
|
|
123
|
+
ChartBreadcrumbComponent,
|
|
121
124
|
LegendComponent,
|
|
122
125
|
LegendInactiveItemsComponent,
|
|
123
126
|
LegendItemComponent,
|
|
@@ -136,6 +139,7 @@ export const CHART_DIRECTIVES = [
|
|
|
136
139
|
SeriesDefaultsNotesIconComponent,
|
|
137
140
|
SeriesDefaultsNotesLabelComponent,
|
|
138
141
|
SeriesDefaultsTooltipComponent,
|
|
142
|
+
SeriesDrilldownTemplateDirective,
|
|
139
143
|
SeriesErrorBarsComponent,
|
|
140
144
|
SeriesExtremesComponent,
|
|
141
145
|
SeriesHighlightComponent,
|
package/esm2020/chart.module.mjs
CHANGED
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
import { NgModule } from '@angular/core';
|
|
6
6
|
import { CommonModule } from '@angular/common';
|
|
7
|
+
import { BreadCrumbModule } from '@progress/kendo-angular-navigation';
|
|
7
8
|
import { PopupModule } from '@progress/kendo-angular-popup';
|
|
8
9
|
import { ResizeSensorModule } from '@progress/kendo-angular-common';
|
|
9
10
|
import { ThemeService } from './common/theme.service';
|
|
@@ -33,68 +34,70 @@ import * as i21 from "./chart/category-axis-item/notes.label.component";
|
|
|
33
34
|
import * as i22 from "./chart/category-axis-item/select.component";
|
|
34
35
|
import * as i23 from "./chart/category-axis-item/title.component";
|
|
35
36
|
import * as i24 from "./chart/chart-area.component";
|
|
36
|
-
import * as i25 from "./chart
|
|
37
|
-
import * as i26 from "./chart/legend
|
|
38
|
-
import * as i27 from "./chart/legend/
|
|
39
|
-
import * as i28 from "./chart/
|
|
40
|
-
import * as i29 from "./chart/pane
|
|
41
|
-
import * as i30 from "./chart/pane-defaults
|
|
42
|
-
import * as i31 from "./chart/
|
|
43
|
-
import * as i32 from "./chart/
|
|
44
|
-
import * as i33 from "./chart/
|
|
45
|
-
import * as i34 from "./chart/
|
|
46
|
-
import * as i35 from "./chart/series
|
|
47
|
-
import * as i36 from "./chart/series-defaults
|
|
48
|
-
import * as i37 from "./chart/series-defaults/labels.
|
|
49
|
-
import * as i38 from "./chart/series-defaults/labels.
|
|
50
|
-
import * as i39 from "./chart/series-defaults/
|
|
51
|
-
import * as i40 from "./chart/series-defaults/notes.
|
|
52
|
-
import * as i41 from "./chart/series-defaults/notes.
|
|
53
|
-
import * as i42 from "./chart/series-defaults/
|
|
54
|
-
import * as i43 from "./chart/series-
|
|
55
|
-
import * as i44 from "./chart/series-
|
|
56
|
-
import * as i45 from "./chart/series-item/
|
|
57
|
-
import * as i46 from "./chart/series-item.component";
|
|
58
|
-
import * as i47 from "./chart/series-item/
|
|
59
|
-
import * as i48 from "./chart/series-item
|
|
60
|
-
import * as i49 from "./chart/series-item/labels.
|
|
61
|
-
import * as i50 from "./chart/series-item/
|
|
62
|
-
import * as i51 from "./chart/series-item/
|
|
63
|
-
import * as i52 from "./chart/series-item/
|
|
64
|
-
import * as i53 from "./chart/series-item/notes.
|
|
65
|
-
import * as i54 from "./chart/series-item/
|
|
66
|
-
import * as i55 from "./chart/series-item/
|
|
67
|
-
import * as i56 from "./chart/
|
|
68
|
-
import * as i57 from "./chart/
|
|
69
|
-
import * as i58 from "./chart/
|
|
70
|
-
import * as i59 from "./chart/
|
|
71
|
-
import * as i60 from "./chart/
|
|
72
|
-
import * as i61 from "./chart/value-axis
|
|
73
|
-
import * as i62 from "./chart/value-axis-item.component";
|
|
74
|
-
import * as i63 from "./chart/value-axis-item/
|
|
75
|
-
import * as i64 from "./chart/value-axis-item
|
|
76
|
-
import * as i65 from "./chart/value-axis-item/
|
|
77
|
-
import * as i66 from "./chart/value-axis-item/notes.
|
|
78
|
-
import * as i67 from "./chart/value-axis-item/
|
|
79
|
-
import * as i68 from "./chart/
|
|
80
|
-
import * as i69 from "./chart/
|
|
81
|
-
import * as i70 from "./chart/x-axis
|
|
82
|
-
import * as i71 from "./chart/x-axis-item.component";
|
|
83
|
-
import * as i72 from "./chart/x-axis-item/
|
|
84
|
-
import * as i73 from "./chart/x-axis-item
|
|
85
|
-
import * as i74 from "./chart/x-axis-item/
|
|
86
|
-
import * as i75 from "./chart/x-axis-item/notes.
|
|
87
|
-
import * as i76 from "./chart/x-axis-item/
|
|
88
|
-
import * as i77 from "./chart/
|
|
89
|
-
import * as i78 from "./chart/
|
|
90
|
-
import * as i79 from "./chart/y-axis
|
|
91
|
-
import * as i80 from "./chart/y-axis-item.component";
|
|
92
|
-
import * as i81 from "./chart/y-axis-item/
|
|
93
|
-
import * as i82 from "./chart/y-axis-item
|
|
94
|
-
import * as i83 from "./chart/y-axis-item/
|
|
95
|
-
import * as i84 from "./chart/y-axis-item/notes.
|
|
96
|
-
import * as i85 from "./chart/y-axis-item/
|
|
97
|
-
import * as i86 from "./chart/
|
|
37
|
+
import * as i25 from "./chart-breadcrumb.component";
|
|
38
|
+
import * as i26 from "./chart/legend.component";
|
|
39
|
+
import * as i27 from "./chart/legend/inactive-items.component";
|
|
40
|
+
import * as i28 from "./chart/legend/item.component";
|
|
41
|
+
import * as i29 from "./chart/pane.component";
|
|
42
|
+
import * as i30 from "./chart/pane-defaults.component";
|
|
43
|
+
import * as i31 from "./chart/pane-defaults/title.component";
|
|
44
|
+
import * as i32 from "./chart/panes.component";
|
|
45
|
+
import * as i33 from "./chart/pane/title.component";
|
|
46
|
+
import * as i34 from "./chart/plot-area.component";
|
|
47
|
+
import * as i35 from "./chart/series.component";
|
|
48
|
+
import * as i36 from "./chart/series-defaults.component";
|
|
49
|
+
import * as i37 from "./chart/series-defaults/labels.component";
|
|
50
|
+
import * as i38 from "./chart/series-defaults/labels.from.component";
|
|
51
|
+
import * as i39 from "./chart/series-defaults/labels.to.component";
|
|
52
|
+
import * as i40 from "./chart/series-defaults/notes.component";
|
|
53
|
+
import * as i41 from "./chart/series-defaults/notes.icon.component";
|
|
54
|
+
import * as i42 from "./chart/series-defaults/notes.label.component";
|
|
55
|
+
import * as i43 from "./chart/series-defaults/tooltip.component";
|
|
56
|
+
import * as i44 from "./chart/series-drilldown-template.directive";
|
|
57
|
+
import * as i45 from "./chart/series-item/error-bars.component";
|
|
58
|
+
import * as i46 from "./chart/series-item/extremes.component";
|
|
59
|
+
import * as i47 from "./chart/series-item/highlight.component";
|
|
60
|
+
import * as i48 from "./chart/series-item.component";
|
|
61
|
+
import * as i49 from "./chart/series-item/labels.component";
|
|
62
|
+
import * as i50 from "./chart/series-item/labels.from.component";
|
|
63
|
+
import * as i51 from "./chart/series-item/labels.to.component";
|
|
64
|
+
import * as i52 from "./chart/series-item/markers.component";
|
|
65
|
+
import * as i53 from "./chart/series-item/notes.component";
|
|
66
|
+
import * as i54 from "./chart/series-item/notes.icon.component";
|
|
67
|
+
import * as i55 from "./chart/series-item/notes.label.component";
|
|
68
|
+
import * as i56 from "./chart/series-item/outliers.component";
|
|
69
|
+
import * as i57 from "./chart/series-item/tooltip.component";
|
|
70
|
+
import * as i58 from "./chart/subtitle.component";
|
|
71
|
+
import * as i59 from "./chart/title.component";
|
|
72
|
+
import * as i60 from "./chart/tooltip.component";
|
|
73
|
+
import * as i61 from "./chart/value-axis.component";
|
|
74
|
+
import * as i62 from "./chart/value-axis-item/crosshair.component";
|
|
75
|
+
import * as i63 from "./chart/value-axis-item/crosshair.tooltip.component";
|
|
76
|
+
import * as i64 from "./chart/value-axis-item.component";
|
|
77
|
+
import * as i65 from "./chart/value-axis-item/labels.component";
|
|
78
|
+
import * as i66 from "./chart/value-axis-item/notes.component";
|
|
79
|
+
import * as i67 from "./chart/value-axis-item/notes.icon.component";
|
|
80
|
+
import * as i68 from "./chart/value-axis-item/notes.label.component";
|
|
81
|
+
import * as i69 from "./chart/value-axis-item/title.component";
|
|
82
|
+
import * as i70 from "./chart/x-axis.component";
|
|
83
|
+
import * as i71 from "./chart/x-axis-item/crosshair.component";
|
|
84
|
+
import * as i72 from "./chart/x-axis-item/crosshair.tooltip.component";
|
|
85
|
+
import * as i73 from "./chart/x-axis-item.component";
|
|
86
|
+
import * as i74 from "./chart/x-axis-item/labels.component";
|
|
87
|
+
import * as i75 from "./chart/x-axis-item/notes.component";
|
|
88
|
+
import * as i76 from "./chart/x-axis-item/notes.icon.component";
|
|
89
|
+
import * as i77 from "./chart/x-axis-item/notes.label.component";
|
|
90
|
+
import * as i78 from "./chart/x-axis-item/title.component";
|
|
91
|
+
import * as i79 from "./chart/y-axis.component";
|
|
92
|
+
import * as i80 from "./chart/y-axis-item/crosshair.component";
|
|
93
|
+
import * as i81 from "./chart/y-axis-item/crosshair.tooltip.component";
|
|
94
|
+
import * as i82 from "./chart/y-axis-item.component";
|
|
95
|
+
import * as i83 from "./chart/y-axis-item/labels.component";
|
|
96
|
+
import * as i84 from "./chart/y-axis-item/notes.component";
|
|
97
|
+
import * as i85 from "./chart/y-axis-item/notes.icon.component";
|
|
98
|
+
import * as i86 from "./chart/y-axis-item/notes.label.component";
|
|
99
|
+
import * as i87 from "./chart/y-axis-item/title.component";
|
|
100
|
+
import * as i88 from "./chart/zoomable.component";
|
|
98
101
|
/**
|
|
99
102
|
* A [module](link:site.data.urls.angular['ngmoduleapi']) that includes the Chart component and directives.
|
|
100
103
|
*
|
|
@@ -120,16 +123,16 @@ import * as i86 from "./chart/zoomable.component";
|
|
|
120
123
|
export class ChartModule {
|
|
121
124
|
}
|
|
122
125
|
ChartModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: ChartModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
123
|
-
ChartModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: ChartModule, declarations: [i1.ChartComponent, i2.TooltipPopupComponent, i3.SeriesTooltipTemplateDirective, i4.SharedTooltipTemplateDirective, i5.CrosshairTooltipsContainerComponent, i6.CrosshairTooltipComponent, i7.DonutCenterTemplateDirective, i8.AxisDefaultsComponent, i9.AxisDefaultsCrosshairComponent, i10.AxisDefaultsCrosshairTooltipComponent, i11.AxisDefaultsLabelsComponent, i12.AxisDefaultsTitleComponent, i13.CategoryAxisComponent, i14.CategoryAxisCrosshairComponent, i15.CategoryAxisCrosshairTooltipComponent, i16.CategoryAxisItemComponent, i17.CategoryAxisLabelsComponent, i18.CategoryAxisRangeLabelsComponent, i19.CategoryAxisNotesComponent, i20.CategoryAxisNotesIconComponent, i21.CategoryAxisNotesLabelComponent, i22.CategoryAxisSelectComponent, i23.CategoryAxisTitleComponent, i24.ChartAreaComponent, i25.
|
|
126
|
+
ChartModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: ChartModule, declarations: [i1.ChartComponent, i2.TooltipPopupComponent, i3.SeriesTooltipTemplateDirective, i4.SharedTooltipTemplateDirective, i5.CrosshairTooltipsContainerComponent, i6.CrosshairTooltipComponent, i7.DonutCenterTemplateDirective, i8.AxisDefaultsComponent, i9.AxisDefaultsCrosshairComponent, i10.AxisDefaultsCrosshairTooltipComponent, i11.AxisDefaultsLabelsComponent, i12.AxisDefaultsTitleComponent, i13.CategoryAxisComponent, i14.CategoryAxisCrosshairComponent, i15.CategoryAxisCrosshairTooltipComponent, i16.CategoryAxisItemComponent, i17.CategoryAxisLabelsComponent, i18.CategoryAxisRangeLabelsComponent, i19.CategoryAxisNotesComponent, i20.CategoryAxisNotesIconComponent, i21.CategoryAxisNotesLabelComponent, i22.CategoryAxisSelectComponent, i23.CategoryAxisTitleComponent, i24.ChartAreaComponent, i25.ChartBreadcrumbComponent, i26.LegendComponent, i27.LegendInactiveItemsComponent, i28.LegendItemComponent, i29.PaneComponent, i30.PaneDefaultsComponent, i31.PaneDefaultsTitleComponent, i32.PanesComponent, i33.PanesTitleComponent, i34.PlotAreaComponent, i35.SeriesComponent, i36.SeriesDefaultsComponent, i37.SeriesDefaultsLabelsComponent, i38.SeriesDefaultsLabelsFromComponent, i39.SeriesDefaultsLabelsToComponent, i40.SeriesDefaultsNotesComponent, i41.SeriesDefaultsNotesIconComponent, i42.SeriesDefaultsNotesLabelComponent, i43.SeriesDefaultsTooltipComponent, i44.SeriesDrilldownTemplateDirective, i45.SeriesErrorBarsComponent, i46.SeriesExtremesComponent, i47.SeriesHighlightComponent, i48.SeriesItemComponent, i49.SeriesLabelsComponent, i50.SeriesLabelsFromComponent, i51.SeriesLabelsToComponent, i52.SeriesMarkersComponent, i53.SeriesNotesComponent, i54.SeriesNotesIconComponent, i55.SeriesNotesLabelComponent, i56.SeriesOutliersComponent, i57.SeriesTooltipComponent, i58.SubtitleComponent, i59.TitleComponent, i60.TooltipComponent, i61.ValueAxisComponent, i62.ValueAxisCrosshairComponent, i63.ValueAxisCrosshairTooltipComponent, i64.ValueAxisItemComponent, i65.ValueAxisLabelsComponent, i66.ValueAxisNotesComponent, i67.ValueAxisNotesIconComponent, i68.ValueAxisNotesLabelComponent, i69.ValueAxisTitleComponent, i70.XAxisComponent, i71.XAxisCrosshairComponent, i72.XAxisCrosshairTooltipComponent, i73.XAxisItemComponent, i74.XAxisLabelsComponent, i75.XAxisNotesComponent, i76.XAxisNotesIconComponent, i77.XAxisNotesLabelComponent, i78.XAxisTitleComponent, i79.YAxisComponent, i80.YAxisCrosshairComponent, i81.YAxisCrosshairTooltipComponent, i82.YAxisItemComponent, i83.YAxisLabelsComponent, i84.YAxisNotesComponent, i85.YAxisNotesIconComponent, i86.YAxisNotesLabelComponent, i87.YAxisTitleComponent, i88.ZoomableComponent], imports: [CommonModule, BreadCrumbModule, PopupModule, ResizeSensorModule], exports: [i1.ChartComponent, i2.TooltipPopupComponent, i3.SeriesTooltipTemplateDirective, i4.SharedTooltipTemplateDirective, i5.CrosshairTooltipsContainerComponent, i6.CrosshairTooltipComponent, i7.DonutCenterTemplateDirective, i8.AxisDefaultsComponent, i9.AxisDefaultsCrosshairComponent, i10.AxisDefaultsCrosshairTooltipComponent, i11.AxisDefaultsLabelsComponent, i12.AxisDefaultsTitleComponent, i13.CategoryAxisComponent, i14.CategoryAxisCrosshairComponent, i15.CategoryAxisCrosshairTooltipComponent, i16.CategoryAxisItemComponent, i17.CategoryAxisLabelsComponent, i18.CategoryAxisRangeLabelsComponent, i19.CategoryAxisNotesComponent, i20.CategoryAxisNotesIconComponent, i21.CategoryAxisNotesLabelComponent, i22.CategoryAxisSelectComponent, i23.CategoryAxisTitleComponent, i24.ChartAreaComponent, i25.ChartBreadcrumbComponent, i26.LegendComponent, i27.LegendInactiveItemsComponent, i28.LegendItemComponent, i29.PaneComponent, i30.PaneDefaultsComponent, i31.PaneDefaultsTitleComponent, i32.PanesComponent, i33.PanesTitleComponent, i34.PlotAreaComponent, i35.SeriesComponent, i36.SeriesDefaultsComponent, i37.SeriesDefaultsLabelsComponent, i38.SeriesDefaultsLabelsFromComponent, i39.SeriesDefaultsLabelsToComponent, i40.SeriesDefaultsNotesComponent, i41.SeriesDefaultsNotesIconComponent, i42.SeriesDefaultsNotesLabelComponent, i43.SeriesDefaultsTooltipComponent, i44.SeriesDrilldownTemplateDirective, i45.SeriesErrorBarsComponent, i46.SeriesExtremesComponent, i47.SeriesHighlightComponent, i48.SeriesItemComponent, i49.SeriesLabelsComponent, i50.SeriesLabelsFromComponent, i51.SeriesLabelsToComponent, i52.SeriesMarkersComponent, i53.SeriesNotesComponent, i54.SeriesNotesIconComponent, i55.SeriesNotesLabelComponent, i56.SeriesOutliersComponent, i57.SeriesTooltipComponent, i58.SubtitleComponent, i59.TitleComponent, i60.TooltipComponent, i61.ValueAxisComponent, i62.ValueAxisCrosshairComponent, i63.ValueAxisCrosshairTooltipComponent, i64.ValueAxisItemComponent, i65.ValueAxisLabelsComponent, i66.ValueAxisNotesComponent, i67.ValueAxisNotesIconComponent, i68.ValueAxisNotesLabelComponent, i69.ValueAxisTitleComponent, i70.XAxisComponent, i71.XAxisCrosshairComponent, i72.XAxisCrosshairTooltipComponent, i73.XAxisItemComponent, i74.XAxisLabelsComponent, i75.XAxisNotesComponent, i76.XAxisNotesIconComponent, i77.XAxisNotesLabelComponent, i78.XAxisTitleComponent, i79.YAxisComponent, i80.YAxisCrosshairComponent, i81.YAxisCrosshairTooltipComponent, i82.YAxisItemComponent, i83.YAxisLabelsComponent, i84.YAxisNotesComponent, i85.YAxisNotesIconComponent, i86.YAxisNotesLabelComponent, i87.YAxisTitleComponent, i88.ZoomableComponent] });
|
|
124
127
|
ChartModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: ChartModule, providers: [
|
|
125
128
|
ThemeService
|
|
126
|
-
], imports: [[CommonModule, PopupModule, ResizeSensorModule]] });
|
|
129
|
+
], imports: [[CommonModule, BreadCrumbModule, PopupModule, ResizeSensorModule]] });
|
|
127
130
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: ChartModule, decorators: [{
|
|
128
131
|
type: NgModule,
|
|
129
132
|
args: [{
|
|
130
133
|
declarations: [CHART_DIRECTIVES],
|
|
131
134
|
exports: [CHART_DIRECTIVES],
|
|
132
|
-
imports: [CommonModule, PopupModule, ResizeSensorModule],
|
|
135
|
+
imports: [CommonModule, BreadCrumbModule, PopupModule, ResizeSensorModule],
|
|
133
136
|
providers: [
|
|
134
137
|
ThemeService
|
|
135
138
|
]
|
|
@@ -18,6 +18,7 @@ export class CollectionItemComponent {
|
|
|
18
18
|
this.configurationService = configurationService;
|
|
19
19
|
this.collectionService = collectionService;
|
|
20
20
|
this.options = {};
|
|
21
|
+
this.hidden = false;
|
|
21
22
|
this.subscription = configurationService.onFastChange$.subscribe(store => {
|
|
22
23
|
this.options = store;
|
|
23
24
|
this.notify();
|
|
@@ -31,7 +31,7 @@ export class CollectionComponent {
|
|
|
31
31
|
if (!this.children) {
|
|
32
32
|
return;
|
|
33
33
|
}
|
|
34
|
-
const index = this.children.toArray().indexOf(changes.sender);
|
|
34
|
+
const index = this.children.toArray().filter(s => !s.hidden).indexOf(changes.sender);
|
|
35
35
|
if (index < 0) {
|
|
36
36
|
return;
|
|
37
37
|
}
|
|
@@ -39,7 +39,7 @@ export class CollectionComponent {
|
|
|
39
39
|
this.change();
|
|
40
40
|
}
|
|
41
41
|
readItems() {
|
|
42
|
-
this.items = this.children.map(s => s.options);
|
|
42
|
+
this.items = this.children.filter(s => !s.hidden).map(s => s.options);
|
|
43
43
|
this.change();
|
|
44
44
|
}
|
|
45
45
|
change() {
|
|
@@ -7,6 +7,7 @@ export { AxisLabelClickEvent } from '../events/axis-label-click-event';
|
|
|
7
7
|
export { DragEndEvent } from '../events/drag-end-event';
|
|
8
8
|
export { DragEvent } from '../events/drag-event';
|
|
9
9
|
export { DragStartEvent } from '../events/drag-start-event';
|
|
10
|
+
export { DrilldownEvent } from '../events/drilldown-event';
|
|
10
11
|
export { LegendItemClickEvent } from '../events/legend-item-click-event';
|
|
11
12
|
export { LegendItemHoverEvent } from '../events/legend-item-hover-event';
|
|
12
13
|
export { LegendItemLeaveEvent } from '../events/legend-item-leave-event';
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2023 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
import { PreventableEvent } from './preventable-event';
|
|
6
|
+
/**
|
|
7
|
+
* Arguments for the `drilldown` event.
|
|
8
|
+
*
|
|
9
|
+
* See [Drilldown Charts](slug:drilldown_chart_charts).
|
|
10
|
+
*/
|
|
11
|
+
export class DrilldownEvent extends PreventableEvent {
|
|
12
|
+
/**
|
|
13
|
+
* @hidden
|
|
14
|
+
*/
|
|
15
|
+
constructor(e, sender) {
|
|
16
|
+
super(sender);
|
|
17
|
+
this.value = e.value;
|
|
18
|
+
this.point = e.point;
|
|
19
|
+
this.series = e.series;
|
|
20
|
+
}
|
|
21
|
+
}
|
package/esm2020/index.mjs
CHANGED
|
@@ -52,3 +52,4 @@ export { NavigatorSeriesNotesIconComponent } from './stock-chart/navigator/serie
|
|
|
52
52
|
export { NavigatorSeriesNotesLabelComponent } from './stock-chart/navigator/series-item/notes.label.component';
|
|
53
53
|
export { NavigatorSeriesOutliersComponent } from './stock-chart/navigator/series-item/outliers.component';
|
|
54
54
|
export { NavigatorSeriesTooltipComponent } from './stock-chart/navigator/series-item/tooltip.component';
|
|
55
|
+
export { SeriesDrilldownTemplateDirective } from './chart/series-drilldown-template.directive';
|
|
@@ -9,7 +9,7 @@ export const packageMetadata = {
|
|
|
9
9
|
name: '@progress/kendo-angular-charts',
|
|
10
10
|
productName: 'Kendo UI for Angular',
|
|
11
11
|
productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
|
|
12
|
-
publishDate:
|
|
13
|
-
version: '
|
|
12
|
+
publishDate: 1685119611,
|
|
13
|
+
version: '13.0.0-develop.10',
|
|
14
14
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
|
|
15
15
|
};
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Copyright © 2023 Progress Software Corporation. All rights reserved.
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { Input, Component, NgZone, ElementRef, ChangeDetectorRef, ChangeDetectionStrategy, Renderer2 } from '@angular/core';
|
|
5
|
+
import { Input, Component, NgZone, ElementRef, ChangeDetectorRef, ChangeDetectionStrategy, Renderer2, Output, EventEmitter } from '@angular/core';
|
|
6
6
|
import { ConfigurationService } from './common/configuration.service';
|
|
7
7
|
import { TooltipTemplateService } from './common/tooltip-template.service';
|
|
8
8
|
import { InstanceEventService } from './events/instance-event.service';
|
|
@@ -59,6 +59,14 @@ export class SparklineComponent extends ChartComponent {
|
|
|
59
59
|
this.instanceEventService = instanceEventService;
|
|
60
60
|
this.changeDetector = changeDetector;
|
|
61
61
|
this.renderer = renderer;
|
|
62
|
+
/**
|
|
63
|
+
* @hidden
|
|
64
|
+
*/
|
|
65
|
+
this.drilldown = new EventEmitter();
|
|
66
|
+
/**
|
|
67
|
+
* @hidden
|
|
68
|
+
*/
|
|
69
|
+
this.drilldownLevelChange = new EventEmitter();
|
|
62
70
|
/**
|
|
63
71
|
* @hidden
|
|
64
72
|
*/
|
|
@@ -72,6 +80,12 @@ export class SparklineComponent extends ChartComponent {
|
|
|
72
80
|
this.hostClasses = ['k-sparkline', 'k-widget'];
|
|
73
81
|
validatePackage(packageMetadata);
|
|
74
82
|
}
|
|
83
|
+
/**
|
|
84
|
+
* @hidden
|
|
85
|
+
*/
|
|
86
|
+
get drilldownLevel() {
|
|
87
|
+
return this.drilldownState.length;
|
|
88
|
+
}
|
|
75
89
|
createInstance(element, observer) {
|
|
76
90
|
this.instance = new Sparkline(element, Sparkline.normalizeOptions(this.options), this.theme, {
|
|
77
91
|
intlService: this.intl,
|
|
@@ -85,7 +99,7 @@ export class SparklineComponent extends ChartComponent {
|
|
|
85
99
|
}
|
|
86
100
|
}
|
|
87
101
|
SparklineComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: SparklineComponent, deps: [{ token: i1.ConfigurationService }, { token: i2.ThemeService }, { token: i0.ElementRef }, { token: i3.IntlService }, { token: i4.LocalizationService }, { token: i0.NgZone }, { token: i5.InstanceEventService }, { token: i0.ChangeDetectorRef }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component });
|
|
88
|
-
SparklineComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: SparklineComponent, selector: "kendo-sparkline", inputs: { type: "type", data: "data" }, providers: [
|
|
102
|
+
SparklineComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: SparklineComponent, selector: "kendo-sparkline", inputs: { type: "type", data: "data", drilldownLevel: "drilldownLevel" }, outputs: { drilldown: "drilldown", drilldownLevelChange: "drilldownLevelChange" }, providers: [
|
|
89
103
|
ConfigurationService,
|
|
90
104
|
TooltipTemplateService,
|
|
91
105
|
InstanceEventService,
|
|
@@ -133,4 +147,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
133
147
|
type: Input
|
|
134
148
|
}], data: [{
|
|
135
149
|
type: Input
|
|
150
|
+
}], drilldown: [{
|
|
151
|
+
type: Output
|
|
152
|
+
}], drilldownLevelChange: [{
|
|
153
|
+
type: Output
|
|
154
|
+
}], drilldownLevel: [{
|
|
155
|
+
type: Input
|
|
136
156
|
}] } });
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Copyright © 2023 Progress Software Corporation. All rights reserved.
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { Component, ChangeDetectionStrategy } from '@angular/core';
|
|
5
|
+
import { Component, ChangeDetectionStrategy, Input } from '@angular/core';
|
|
6
6
|
import { CollectionService } from '../../common/collection.service';
|
|
7
7
|
import { ConfigurationService } from '../../common/configuration.service';
|
|
8
8
|
import { SeriesItemComponent } from '../../chart/series-item.component';
|
|
@@ -21,7 +21,7 @@ export class NavigatorSeriesItemComponent extends SeriesItemComponent {
|
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
23
|
NavigatorSeriesItemComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: NavigatorSeriesItemComponent, deps: [{ token: i1.ConfigurationService }, { token: i2.CollectionService }], target: i0.ɵɵFactoryTarget.Component });
|
|
24
|
-
NavigatorSeriesItemComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: NavigatorSeriesItemComponent, selector: "kendo-chart-navigator-series-item", providers: [ConfigurationService], usesInheritance: true, ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
24
|
+
NavigatorSeriesItemComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: NavigatorSeriesItemComponent, selector: "kendo-chart-navigator-series-item", inputs: { drilldownField: "drilldownField" }, providers: [ConfigurationService], usesInheritance: true, ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
25
25
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: NavigatorSeriesItemComponent, decorators: [{
|
|
26
26
|
type: Component,
|
|
27
27
|
args: [{
|
|
@@ -30,4 +30,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
30
30
|
selector: 'kendo-chart-navigator-series-item',
|
|
31
31
|
template: ''
|
|
32
32
|
}]
|
|
33
|
-
}], ctorParameters: function () { return [{ type: i1.ConfigurationService }, { type: i2.CollectionService }]; }
|
|
33
|
+
}], ctorParameters: function () { return [{ type: i1.ConfigurationService }, { type: i2.CollectionService }]; }, propDecorators: { drilldownField: [{
|
|
34
|
+
type: Input
|
|
35
|
+
}] } });
|