@progress/kendo-angular-charts 13.0.0-develop.4 → 13.0.0-develop.6

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.
Files changed (37) hide show
  1. package/chart/series-drilldown-template.directive.d.ts +25 -0
  2. package/chart/series-item.component.d.ts +4 -1
  3. package/chart/series.component.d.ts +3 -2
  4. package/chart-breadcrumb.component.d.ts +43 -0
  5. package/chart.component.d.ts +25 -1
  6. package/chart.directives.d.ts +2 -1
  7. package/chart.module.d.ts +69 -66
  8. package/common/collection-item.component.d.ts +1 -0
  9. package/common/collection.service.d.ts +1 -0
  10. package/common/events.d.ts +1 -0
  11. package/esm2020/chart/series-drilldown-template.directive.mjs +34 -0
  12. package/esm2020/chart/series-item.component.mjs +7 -1
  13. package/esm2020/chart/series.component.mjs +7 -6
  14. package/esm2020/chart-breadcrumb.component.mjs +82 -0
  15. package/esm2020/chart.component.mjs +68 -2
  16. package/esm2020/chart.directives.mjs +5 -1
  17. package/esm2020/chart.module.mjs +68 -65
  18. package/esm2020/common/collection-item.component.mjs +1 -0
  19. package/esm2020/common/collection.component.mjs +2 -2
  20. package/esm2020/common/events.mjs +1 -0
  21. package/esm2020/events/drilldown-event.mjs +21 -0
  22. package/esm2020/index.mjs +1 -0
  23. package/esm2020/package-metadata.mjs +2 -2
  24. package/esm2020/sparkline.component.mjs +22 -2
  25. package/esm2020/stock-chart/navigator/series-item.component.mjs +5 -3
  26. package/esm2020/stock-chart/navigator/series.component.mjs +6 -5
  27. package/esm2020/stock-chart.component.mjs +21 -1
  28. package/events/drilldown-event.d.ts +31 -0
  29. package/fesm2015/progress-kendo-angular-charts.mjs +353 -113
  30. package/fesm2020/progress-kendo-angular-charts.mjs +351 -113
  31. package/index.d.ts +1 -0
  32. package/option-types/series-item.interface.d.ts +4 -0
  33. package/package.json +9 -7
  34. package/sparkline.component.d.ts +15 -2
  35. package/stock-chart/navigator/series-item.component.d.ts +5 -1
  36. package/stock-chart/navigator/series.component.d.ts +3 -2
  37. package/stock-chart.component.d.ts +14 -1
@@ -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, QueryList, ContentChildren } from '@angular/core';
5
+ import { Component, ChangeDetectionStrategy, QueryList, ContentChildren, ViewContainerRef } from '@angular/core';
6
6
  import { ConfigurationService } from "../../common/configuration.service";
7
7
  import { CollectionService } from "../../common/collection.service";
8
8
  import { TooltipTemplateService } from "../../common/tooltip-template.service";
@@ -48,16 +48,17 @@ import * as i3 from "../../common/tooltip-template.service";
48
48
  * ```
49
49
  */
50
50
  export class NavigatorSeriesComponent extends SeriesComponent {
51
- constructor(configurationService, collectionService, tooltipTemplateService) {
52
- super(configurationService, collectionService, tooltipTemplateService);
51
+ constructor(configurationService, collectionService, tooltipTemplateService, viewContainer) {
52
+ super(configurationService, collectionService, tooltipTemplateService, viewContainer);
53
53
  this.configurationService = configurationService;
54
54
  this.collectionService = collectionService;
55
55
  this.tooltipTemplateService = tooltipTemplateService;
56
+ this.viewContainer = viewContainer;
56
57
  }
57
58
  readTooltipTemplates() {
58
59
  }
59
60
  }
60
- NavigatorSeriesComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: NavigatorSeriesComponent, deps: [{ token: i1.ConfigurationService }, { token: i2.CollectionService }, { token: i3.TooltipTemplateService }], target: i0.ɵɵFactoryTarget.Component });
61
+ NavigatorSeriesComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: NavigatorSeriesComponent, deps: [{ token: i1.ConfigurationService }, { token: i2.CollectionService }, { token: i3.TooltipTemplateService }, { token: i0.ViewContainerRef }], target: i0.ɵɵFactoryTarget.Component });
61
62
  NavigatorSeriesComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: NavigatorSeriesComponent, selector: "kendo-chart-navigator-series", providers: [CollectionService], queries: [{ propertyName: "children", predicate: NavigatorSeriesItemComponent }], usesInheritance: true, ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
62
63
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: NavigatorSeriesComponent, decorators: [{
63
64
  type: Component,
@@ -67,7 +68,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
67
68
  selector: 'kendo-chart-navigator-series',
68
69
  template: ''
69
70
  }]
70
- }], ctorParameters: function () { return [{ type: i1.ConfigurationService }, { type: i2.CollectionService }, { type: i3.TooltipTemplateService }]; }, propDecorators: { children: [{
71
+ }], ctorParameters: function () { return [{ type: i1.ConfigurationService }, { type: i2.CollectionService }, { type: i3.TooltipTemplateService }, { type: i0.ViewContainerRef }]; }, propDecorators: { children: [{
71
72
  type: ContentChildren,
72
73
  args: [NavigatorSeriesItemComponent]
73
74
  }] } });
@@ -82,6 +82,14 @@ export class StockChartComponent extends ChartComponent {
82
82
  this.instanceEventService = instanceEventService;
83
83
  this.changeDetector = changeDetector;
84
84
  this.renderer = renderer;
85
+ /**
86
+ * @hidden
87
+ */
88
+ this.drilldown = new EventEmitter();
89
+ /**
90
+ * @hidden
91
+ */
92
+ this.drilldownLevelChange = new EventEmitter();
85
93
  /**
86
94
  * Fires when the navigator range is changed.
87
95
  */
@@ -90,6 +98,12 @@ export class StockChartComponent extends ChartComponent {
90
98
  this.hostClasses = ['k-chart', 'k-stockchart'];
91
99
  validatePackage(packageMetadata);
92
100
  }
101
+ /**
102
+ * @hidden
103
+ */
104
+ get drilldownLevel() {
105
+ return this.drilldownState.length;
106
+ }
93
107
  /**
94
108
  * If called, the navigator pane is not redrawn the next time the StockChart options are updated.
95
109
  * The method is useful if you need to update only the main series data for the selected period.
@@ -129,7 +143,7 @@ export class StockChartComponent extends ChartComponent {
129
143
  }
130
144
  }
131
145
  StockChartComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: StockChartComponent, deps: [{ token: i1.ConfigurationService }, { token: i2.ThemeService }, { token: i0.ElementRef }, { token: i3.IntlService }, { token: i4.LocalizationService }, { token: i0.NgZone }, { token: i5.StockInstanceEventService }, { token: i0.ChangeDetectorRef }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component });
132
- StockChartComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: StockChartComponent, selector: "kendo-stockchart", inputs: { navigator: "navigator", pannable: "pannable", zoomable: "zoomable" }, outputs: { navigatorFilter: "navigatorFilter" }, providers: [
146
+ StockChartComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: StockChartComponent, selector: "kendo-stockchart", inputs: { navigator: "navigator", pannable: "pannable", zoomable: "zoomable", drilldownLevel: "drilldownLevel" }, outputs: { drilldown: "drilldown", drilldownLevelChange: "drilldownLevelChange", navigatorFilter: "navigatorFilter" }, providers: [
133
147
  ConfigurationService,
134
148
  TooltipTemplateService,
135
149
  { provide: RootConfigurationService, useExisting: ConfigurationService },
@@ -179,6 +193,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
179
193
  type: Input
180
194
  }], zoomable: [{
181
195
  type: Input
196
+ }], drilldown: [{
197
+ type: Output
198
+ }], drilldownLevelChange: [{
199
+ type: Output
200
+ }], drilldownLevel: [{
201
+ type: Input
182
202
  }], navigatorFilter: [{
183
203
  type: Output
184
204
  }] } });
@@ -0,0 +1,31 @@
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 { ChartComponent } from '../chart.component';
6
+ import { PreventableEvent } from './preventable-event';
7
+ import { EventSeriesOptions } from '../api-types/event-series-options.interface';
8
+ import { SeriesPoint } from '../api-types/series-point.interface';
9
+ /**
10
+ * Arguments for the `drilldown` event.
11
+ *
12
+ * See [Drilldown Charts](slug:drilldown_chart_charts).
13
+ */
14
+ export declare class DrilldownEvent extends PreventableEvent {
15
+ /**
16
+ * The drilldown field value.
17
+ */
18
+ value: any;
19
+ /**
20
+ * The clicked series point.
21
+ */
22
+ point: SeriesPoint;
23
+ /**
24
+ * The clicked point series options.
25
+ */
26
+ series: EventSeriesOptions;
27
+ /**
28
+ * @hidden
29
+ */
30
+ constructor(e: any, sender: ChartComponent);
31
+ }