@progress/kendo-angular-charts 15.5.0 → 16.0.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.
Files changed (68) hide show
  1. package/charts.module.d.ts +2 -1
  2. package/common/has-observers.d.ts +9 -0
  3. package/esm2020/chart.component.mjs +1 -3
  4. package/esm2020/charts.module.mjs +4 -3
  5. package/esm2020/common/has-observers.mjs +10 -0
  6. package/esm2020/common/theme.service.mjs +6 -0
  7. package/esm2020/index.mjs +4 -0
  8. package/esm2020/package-metadata.mjs +2 -2
  9. package/esm2020/sankey/api-types/index.mjs +5 -0
  10. package/esm2020/sankey/data-binding/create-sankey-data.mjs +45 -0
  11. package/esm2020/sankey/data-binding/flat-binding.directive.mjs +65 -0
  12. package/esm2020/sankey/data-binding/flat-binding.event.mjs +15 -0
  13. package/esm2020/sankey/events/index.mjs +8 -0
  14. package/esm2020/sankey/events/instance-event.service.mjs +22 -0
  15. package/esm2020/sankey/events/sankey-base-event.mjs +18 -0
  16. package/esm2020/sankey/events/sankey-link-event.mjs +17 -0
  17. package/esm2020/sankey/events/sankey-node-event.mjs +17 -0
  18. package/esm2020/sankey/labels.component.mjs +49 -0
  19. package/esm2020/sankey/legend.component.mjs +64 -0
  20. package/esm2020/sankey/links.component.mjs +37 -0
  21. package/esm2020/sankey/localization/custom-messages.component.mjs +42 -0
  22. package/esm2020/sankey/localization/localized-messages.directive.mjs +37 -0
  23. package/esm2020/sankey/localization/messages.mjs +23 -0
  24. package/esm2020/sankey/nodes.component.mjs +43 -0
  25. package/esm2020/sankey/title.component.mjs +59 -0
  26. package/esm2020/sankey/tooltip/link-tooltip-template-context.mjs +18 -0
  27. package/esm2020/sankey/tooltip/link-tooltip-template.directive.mjs +87 -0
  28. package/esm2020/sankey/tooltip/node-tooltip-template-context.mjs +18 -0
  29. package/esm2020/sankey/tooltip/node-tooltip-template.directive.mjs +64 -0
  30. package/esm2020/sankey/tooltip/square-symbol.directive.mjs +43 -0
  31. package/esm2020/sankey/tooltip/tooltip-popup.component.mjs +203 -0
  32. package/esm2020/sankey/tooltip/tooltip-template.service.mjs +16 -0
  33. package/esm2020/sankey/tooltip.component.mjs +52 -0
  34. package/esm2020/sankey.component.mjs +378 -0
  35. package/esm2020/sankey.directives.mjs +46 -0
  36. package/esm2020/sankey.module.mjs +63 -0
  37. package/fesm2015/progress-kendo-angular-charts.mjs +1353 -30
  38. package/fesm2020/progress-kendo-angular-charts.mjs +1347 -27
  39. package/index.d.ts +4 -0
  40. package/package.json +9 -8
  41. package/sankey/api-types/index.d.ts +21 -0
  42. package/sankey/data-binding/create-sankey-data.d.ts +9 -0
  43. package/sankey/data-binding/flat-binding.directive.d.ts +38 -0
  44. package/sankey/data-binding/flat-binding.event.d.ts +24 -0
  45. package/sankey/events/index.d.ts +8 -0
  46. package/sankey/events/instance-event.service.d.ts +14 -0
  47. package/sankey/events/sankey-base-event.d.ts +24 -0
  48. package/sankey/events/sankey-link-event.d.ts +20 -0
  49. package/sankey/events/sankey-node-event.d.ts +20 -0
  50. package/sankey/labels.component.d.ts +36 -0
  51. package/sankey/legend.component.d.ts +82 -0
  52. package/sankey/links.component.d.ts +22 -0
  53. package/sankey/localization/custom-messages.component.d.ts +18 -0
  54. package/sankey/localization/localized-messages.directive.d.ts +16 -0
  55. package/sankey/localization/messages.d.ts +17 -0
  56. package/sankey/nodes.component.d.ts +34 -0
  57. package/sankey/title.component.d.ts +70 -0
  58. package/sankey/tooltip/link-tooltip-template-context.d.ts +26 -0
  59. package/sankey/tooltip/link-tooltip-template.directive.d.ts +78 -0
  60. package/sankey/tooltip/node-tooltip-template-context.d.ts +26 -0
  61. package/sankey/tooltip/node-tooltip-template.directive.d.ts +55 -0
  62. package/sankey/tooltip/square-symbol.directive.d.ts +16 -0
  63. package/sankey/tooltip/tooltip-popup.component.d.ts +60 -0
  64. package/sankey/tooltip/tooltip-template.service.d.ts +15 -0
  65. package/sankey/tooltip.component.d.ts +49 -0
  66. package/sankey.component.d.ts +200 -0
  67. package/sankey.directives.d.ts +27 -0
  68. package/sankey.module.d.ts +51 -0
@@ -6,6 +6,7 @@ import * as i0 from "@angular/core";
6
6
  import * as i1 from "./chart.module";
7
7
  import * as i2 from "./sparkline.module";
8
8
  import * as i3 from "./stock-chart.module";
9
+ import * as i4 from "./sankey.module";
9
10
  /**
10
11
  * A [module](link:site.data.urls.angular['ngmoduleapi']) that includes all Chart components and directives.
11
12
  *
@@ -31,6 +32,6 @@ import * as i3 from "./stock-chart.module";
31
32
  */
32
33
  export declare class ChartsModule {
33
34
  static ɵfac: i0.ɵɵFactoryDeclaration<ChartsModule, never>;
34
- static ɵmod: i0.ɵɵNgModuleDeclaration<ChartsModule, never, never, [typeof i1.ChartModule, typeof i2.SparklineModule, typeof i3.StockChartModule]>;
35
+ static ɵmod: i0.ɵɵNgModuleDeclaration<ChartsModule, never, never, [typeof i1.ChartModule, typeof i2.SparklineModule, typeof i3.StockChartModule, typeof i4.SankeyModule]>;
35
36
  static ɵinj: i0.ɵɵInjectorDeclaration<ChartsModule>;
36
37
  }
@@ -0,0 +1,9 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the project root for more information
4
+ *-------------------------------------------------------------------------------------------*/
5
+ import { EventEmitter } from "@angular/core";
6
+ /**
7
+ * @hidden
8
+ */
9
+ export declare function hasObservers(emitter: EventEmitter<any>): boolean;
@@ -29,6 +29,7 @@ import { RenderEvent } from './events/render-event';
29
29
  import { packageMetadata } from './package-metadata';
30
30
  import { SeriesComponent } from './chart/series.component';
31
31
  import { DrilldownEvent } from './events/drilldown-event';
32
+ import { hasObservers } from './common/has-observers';
32
33
  import * as i0 from "@angular/core";
33
34
  import * as i1 from "./common/configuration.service";
34
35
  import * as i2 from "./common/theme.service";
@@ -39,9 +40,6 @@ import * as i6 from "./chart/tooltip/crosshair-tooltips-container.component";
39
40
  import * as i7 from "./chart/tooltip/tooltip-popup.component";
40
41
  import * as i8 from "@progress/kendo-angular-common";
41
42
  import * as i9 from "@angular/common";
42
- function hasObservers(emitter) {
43
- return emitter.observers.length > 0;
44
- }
45
43
  /**
46
44
  * The root Chart component.
47
45
  *
@@ -6,6 +6,7 @@ import { NgModule } from '@angular/core';
6
6
  import { ChartModule } from './chart.module';
7
7
  import { StockChartModule } from './stock-chart.module';
8
8
  import { SparklineModule } from './sparkline.module';
9
+ import { SankeyModule } from './sankey.module';
9
10
  import * as i0 from "@angular/core";
10
11
  /**
11
12
  * A [module](link:site.data.urls.angular['ngmoduleapi']) that includes all Chart components and directives.
@@ -33,11 +34,11 @@ import * as i0 from "@angular/core";
33
34
  export class ChartsModule {
34
35
  }
35
36
  ChartsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: ChartsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
36
- ChartsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: ChartsModule, exports: [ChartModule, SparklineModule, StockChartModule] });
37
- ChartsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: ChartsModule, imports: [ChartModule, SparklineModule, StockChartModule] });
37
+ ChartsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: ChartsModule, exports: [ChartModule, SparklineModule, StockChartModule, SankeyModule] });
38
+ ChartsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: ChartsModule, imports: [ChartModule, SparklineModule, StockChartModule, SankeyModule] });
38
39
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: ChartsModule, decorators: [{
39
40
  type: NgModule,
40
41
  args: [{
41
- exports: [ChartModule, SparklineModule, StockChartModule]
42
+ exports: [ChartModule, SparklineModule, StockChartModule, SankeyModule]
42
43
  }]
43
44
  }] });
@@ -0,0 +1,10 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the project root for more information
4
+ *-------------------------------------------------------------------------------------------*/
5
+ /**
6
+ * @hidden
7
+ */
8
+ export function hasObservers(emitter) {
9
+ return emitter.observers.length > 0;
10
+ }
@@ -168,6 +168,10 @@ export class ThemeService extends ConfigurationService {
168
168
  this.mapColor('seriesDefaults.waterfall.line.color', 'chart-major-lines');
169
169
  this.mapColor('title.color', 'normal-text-color');
170
170
  this.mapColor('subtitle.color', 'normal-text-color');
171
+ // Sankey diagram
172
+ this.mapColor('labels.color', 'normal-text-color');
173
+ this.mapColor('labels.stroke.color', 'background');
174
+ this.mapColor('links.color', 'chart-major-lines');
171
175
  const opacity = parseFloat(this.queryStyle('chart-area-opacity').opacity);
172
176
  if (!isNaN(opacity)) {
173
177
  this.setStyle('seriesDefaults.area.opacity', opacity);
@@ -198,6 +202,8 @@ export class ThemeService extends ConfigurationService {
198
202
  this.setStyle('title.font', titleFont);
199
203
  this.setStyle('subtitle.font', paneTitleFont);
200
204
  this.setStyle('paneDefaults.title.font', paneTitleFont);
205
+ // Sankey diagram
206
+ this.setStyle('labels.font', defaultFont);
201
207
  }
202
208
  setSeriesColors() {
203
209
  const element = this.element;
package/esm2020/index.mjs CHANGED
@@ -17,6 +17,10 @@ export { ChartsModule } from './charts.module';
17
17
  export { ConfigurationService } from './common/configuration.service';
18
18
  export { TooltipTemplateService } from './common/tooltip-template.service';
19
19
  export { CollectionService } from './common/collection.service';
20
+ export * from './sankey.directives';
21
+ export * from './sankey/api-types';
22
+ export * from './sankey/events';
23
+ export { SankeyModule } from './sankey.module';
20
24
  // The following exports are required by ngc for AoT compilation
21
25
  export { CrosshairTooltipComponent } from './chart/tooltip/crosshair-tooltip.component';
22
26
  export { CrosshairTooltipsContainerComponent } from './chart/tooltip/crosshair-tooltips-container.component';
@@ -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: 1713437408,
13
- version: '15.5.0',
12
+ publishDate: 1714060786,
13
+ version: '16.0.0-develop.1',
14
14
  licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
15
15
  };
@@ -0,0 +1,5 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the project root for more information
4
+ *-------------------------------------------------------------------------------------------*/
5
+ export {};
@@ -0,0 +1,45 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the project root for more information
4
+ *-------------------------------------------------------------------------------------------*/
5
+ /**
6
+ * @hidden
7
+ */
8
+ export function createSankeyData(data, dimensions, measure) {
9
+ const nodes = new Set();
10
+ const links = new Map();
11
+ const linksMap = new Map();
12
+ data.forEach((row) => {
13
+ dimensions.forEach((dimension) => {
14
+ nodes.add(dimension(row));
15
+ });
16
+ for (let i = 0; i < dimensions.length - 1; i++) {
17
+ const source = dimensions[i](row);
18
+ const target = dimensions[i + 1](row);
19
+ const key = `${source}_${target}`;
20
+ const value = measure(row);
21
+ if (links.has(key)) {
22
+ links.set(key, links.get(key) + value);
23
+ }
24
+ else {
25
+ links.set(key, value);
26
+ linksMap.set(key, { source, target });
27
+ }
28
+ }
29
+ });
30
+ const nodesId = new Map();
31
+ const nodesArray = Array.from(nodes).map((node, index) => {
32
+ nodesId.set(node, index);
33
+ return { id: index, label: { text: String(node) } };
34
+ });
35
+ const linksArray = Array.from(links).map(([key, value]) => {
36
+ const { source, target } = linksMap.get(key);
37
+ return {
38
+ sourceId: nodesId.get(source),
39
+ targetId: nodesId.get(target),
40
+ value
41
+ };
42
+ });
43
+ return { nodes: nodesArray, links: linksArray };
44
+ }
45
+ ;
@@ -0,0 +1,65 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the project root for more information
4
+ *-------------------------------------------------------------------------------------------*/
5
+ import { Directive, EventEmitter, Input, Output } from "@angular/core";
6
+ import { isChanged } from "@progress/kendo-angular-common";
7
+ import { getter } from "@progress/kendo-common";
8
+ import { SankeyComponent } from "../../sankey.component";
9
+ import { createSankeyData } from "./create-sankey-data";
10
+ import { SankeyFlatBindingDataBoundEvent } from "./flat-binding.event";
11
+ import * as i0 from "@angular/core";
12
+ import * as i1 from "../../sankey.component";
13
+ /**
14
+ * A directive which encapsulates the retrieval of the nodes and links when flat data is provided.
15
+ *
16
+ * See [Data Binding - Binding to Flat Data]({% slug data_binding_sankey %}#toc-binding-to-flat-data).
17
+ */
18
+ export class SankeyFlatBindingDirective {
19
+ constructor(sankey) {
20
+ this.sankey = sankey;
21
+ /**
22
+ * Represents the fields which identify the nodes.
23
+ */
24
+ this.dimensionFields = [];
25
+ /**
26
+ * Fires when the flat data has been converted to `SankeyData`.
27
+ *
28
+ * To customize the created nodes and links, modify the data.
29
+ */
30
+ this.dataBound = new EventEmitter();
31
+ }
32
+ ngOnChanges(changes) {
33
+ if (!isChanged('data', changes, false)) {
34
+ return;
35
+ }
36
+ if (this.dimensionFields?.length === 0) {
37
+ throw new Error('kendoSankeyFlatBinding: dimensionFields is required');
38
+ }
39
+ if (!this.valueField) {
40
+ throw new Error('kendoSankeyFlatBinding: valueField is required');
41
+ }
42
+ const dimensions = this.dimensionFields.map(field => getter(field));
43
+ const measure = getter(this.valueField);
44
+ const data = createSankeyData(this.data, dimensions, measure);
45
+ this.dataBound.emit(new SankeyFlatBindingDataBoundEvent(data));
46
+ this.sankey.notifyChanges({ data });
47
+ }
48
+ }
49
+ SankeyFlatBindingDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: SankeyFlatBindingDirective, deps: [{ token: i1.SankeyComponent }], target: i0.ɵɵFactoryTarget.Directive });
50
+ SankeyFlatBindingDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.12", type: SankeyFlatBindingDirective, selector: "[kendoSankeyFlatBinding]", inputs: { data: ["kendoSankeyFlatBinding", "data"], dimensionFields: "dimensionFields", valueField: "valueField" }, outputs: { dataBound: "dataBound" }, usesOnChanges: true, ngImport: i0 });
51
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: SankeyFlatBindingDirective, decorators: [{
52
+ type: Directive,
53
+ args: [{
54
+ selector: '[kendoSankeyFlatBinding]'
55
+ }]
56
+ }], ctorParameters: function () { return [{ type: i1.SankeyComponent }]; }, propDecorators: { data: [{
57
+ type: Input,
58
+ args: ['kendoSankeyFlatBinding']
59
+ }], dimensionFields: [{
60
+ type: Input
61
+ }], valueField: [{
62
+ type: Input
63
+ }], dataBound: [{
64
+ type: Output
65
+ }] } });
@@ -0,0 +1,15 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the project root for more information
4
+ *-------------------------------------------------------------------------------------------*/
5
+ /**
6
+ * Arguments for the `dataBound` event of the [`[kendoSankeyFlatBinding]`]({% slug api_charts_sankeyflatbindingdirective %}) directive.
7
+ */
8
+ export class SankeyFlatBindingDataBoundEvent {
9
+ /**
10
+ * @hidden
11
+ */
12
+ constructor(data) {
13
+ this.data = data;
14
+ }
15
+ }
@@ -0,0 +1,8 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the project root for more information
4
+ *-------------------------------------------------------------------------------------------*/
5
+ export { SankeyBaseEvent } from './sankey-base-event';
6
+ export { SankeyNodeEvent } from './sankey-node-event';
7
+ export { SankeyLinkEvent } from './sankey-link-event';
8
+ export { InstanceEventService } from './instance-event.service';
@@ -0,0 +1,22 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the project root for more information
4
+ *-------------------------------------------------------------------------------------------*/
5
+ import { SankeyNodeEvent } from './sankey-node-event';
6
+ import { SankeyLinkEvent } from './sankey-link-event';
7
+ const EVENT_MAP = {
8
+ nodeEnter: SankeyNodeEvent,
9
+ nodeLeave: SankeyNodeEvent,
10
+ linkEnter: SankeyLinkEvent,
11
+ linkLeave: SankeyLinkEvent,
12
+ nodeClick: SankeyNodeEvent,
13
+ linkClick: SankeyLinkEvent
14
+ };
15
+ /**
16
+ * @hidden
17
+ */
18
+ export class InstanceEventService {
19
+ create(name, args, sender) {
20
+ return new EVENT_MAP[name](args, sender);
21
+ }
22
+ }
@@ -0,0 +1,18 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2024 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 '@progress/kendo-angular-common';
6
+ /**
7
+ * @hidden
8
+ */
9
+ export class SankeyBaseEvent extends PreventableEvent {
10
+ /**
11
+ * @hidden
12
+ */
13
+ constructor(e, sender) {
14
+ super();
15
+ this.sender = sender;
16
+ this.originalEvent = e.originalEvent;
17
+ }
18
+ }
@@ -0,0 +1,17 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the project root for more information
4
+ *-------------------------------------------------------------------------------------------*/
5
+ import { SankeyBaseEvent } from './sankey-base-event';
6
+ /**
7
+ * Arguments for the link-related events of the [`SankeyComponent`]({% slug api_charts_sankeycomponent %}).
8
+ */
9
+ export class SankeyLinkEvent extends SankeyBaseEvent {
10
+ /**
11
+ * @hidden
12
+ */
13
+ constructor(e, sender) {
14
+ super(e, sender);
15
+ this.dataItem = e.dataItem;
16
+ }
17
+ }
@@ -0,0 +1,17 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the project root for more information
4
+ *-------------------------------------------------------------------------------------------*/
5
+ import { SankeyBaseEvent } from './sankey-base-event';
6
+ /**
7
+ * Arguments for the node-related events of the [`SankeyComponent`]({% slug api_charts_sankeycomponent %}).
8
+ */
9
+ export class SankeyNodeEvent extends SankeyBaseEvent {
10
+ /**
11
+ * @hidden
12
+ */
13
+ constructor(e, sender) {
14
+ super(e, sender);
15
+ this.dataItem = e.dataItem;
16
+ }
17
+ }
@@ -0,0 +1,49 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the project root for more information
4
+ *-------------------------------------------------------------------------------------------*/
5
+ import { ChangeDetectionStrategy, Component, Input } from '@angular/core';
6
+ import { ConfigurationService } from '../common/configuration.service';
7
+ import { SettingsComponent } from '../common/settings.component';
8
+ import * as i0 from "@angular/core";
9
+ import * as i1 from "../common/configuration.service";
10
+ /**
11
+ * The configuration options of the Sankey legend
12
+ * ([see example]({% slug legend_sankey %})).
13
+ */
14
+ export class SankeyLabelsComponent extends SettingsComponent {
15
+ constructor(configurationService) {
16
+ super('labels', configurationService);
17
+ this.configurationService = configurationService;
18
+ }
19
+ }
20
+ SankeyLabelsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: SankeyLabelsComponent, deps: [{ token: i1.ConfigurationService }], target: i0.ɵɵFactoryTarget.Component });
21
+ SankeyLabelsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: SankeyLabelsComponent, selector: "kendo-sankey-labels", inputs: { visible: "visible", font: "font", color: "color", align: "align", position: "position", padding: "padding", margin: "margin", border: "border", offset: "offset", stroke: "stroke" }, usesInheritance: true, ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
22
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: SankeyLabelsComponent, decorators: [{
23
+ type: Component,
24
+ args: [{
25
+ changeDetection: ChangeDetectionStrategy.OnPush,
26
+ selector: 'kendo-sankey-labels',
27
+ template: '',
28
+ }]
29
+ }], ctorParameters: function () { return [{ type: i1.ConfigurationService }]; }, propDecorators: { visible: [{
30
+ type: Input
31
+ }], font: [{
32
+ type: Input
33
+ }], color: [{
34
+ type: Input
35
+ }], align: [{
36
+ type: Input
37
+ }], position: [{
38
+ type: Input
39
+ }], padding: [{
40
+ type: Input
41
+ }], margin: [{
42
+ type: Input
43
+ }], border: [{
44
+ type: Input
45
+ }], offset: [{
46
+ type: Input
47
+ }], stroke: [{
48
+ type: Input
49
+ }] } });
@@ -0,0 +1,64 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the project root for more information
4
+ *-------------------------------------------------------------------------------------------*/
5
+ import { ChangeDetectionStrategy, Component, Input } from '@angular/core';
6
+ import { ConfigurationService } from '../common/configuration.service';
7
+ import { SettingsComponent } from '../common/settings.component';
8
+ import * as i0 from "@angular/core";
9
+ import * as i1 from "../common/configuration.service";
10
+ /**
11
+ * The configuration options of the Sankey legend
12
+ * ([see example]({% slug legend_sankey %})).
13
+ */
14
+ export class SankeyLegendComponent extends SettingsComponent {
15
+ constructor(configurationService) {
16
+ super('legend', configurationService);
17
+ this.configurationService = configurationService;
18
+ this.markAsVisible();
19
+ }
20
+ }
21
+ SankeyLegendComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: SankeyLegendComponent, deps: [{ token: i1.ConfigurationService }], target: i0.ɵɵFactoryTarget.Component });
22
+ SankeyLegendComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: SankeyLegendComponent, selector: "kendo-sankey-legend", inputs: { align: "align", background: "background", border: "border", height: "height", labels: "labels", margin: "margin", offsetX: "offsetX", offsetY: "offsetY", orientation: "orientation", padding: "padding", position: "position", reverse: "reverse", visible: "visible", width: "width", markers: "markers", spacing: "spacing", title: "title" }, usesInheritance: true, ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
23
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: SankeyLegendComponent, decorators: [{
24
+ type: Component,
25
+ args: [{
26
+ changeDetection: ChangeDetectionStrategy.OnPush,
27
+ selector: 'kendo-sankey-legend',
28
+ template: ''
29
+ }]
30
+ }], ctorParameters: function () { return [{ type: i1.ConfigurationService }]; }, propDecorators: { align: [{
31
+ type: Input
32
+ }], background: [{
33
+ type: Input
34
+ }], border: [{
35
+ type: Input
36
+ }], height: [{
37
+ type: Input
38
+ }], labels: [{
39
+ type: Input
40
+ }], margin: [{
41
+ type: Input
42
+ }], offsetX: [{
43
+ type: Input
44
+ }], offsetY: [{
45
+ type: Input
46
+ }], orientation: [{
47
+ type: Input
48
+ }], padding: [{
49
+ type: Input
50
+ }], position: [{
51
+ type: Input
52
+ }], reverse: [{
53
+ type: Input
54
+ }], visible: [{
55
+ type: Input
56
+ }], width: [{
57
+ type: Input
58
+ }], markers: [{
59
+ type: Input
60
+ }], spacing: [{
61
+ type: Input
62
+ }], title: [{
63
+ type: Input
64
+ }] } });
@@ -0,0 +1,37 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the project root for more information
4
+ *-------------------------------------------------------------------------------------------*/
5
+ import { ChangeDetectionStrategy, Component, Input } from '@angular/core';
6
+ import { ConfigurationService } from '../common/configuration.service';
7
+ import { SettingsComponent } from '../common/settings.component';
8
+ import * as i0 from "@angular/core";
9
+ import * as i1 from "../common/configuration.service";
10
+ /**
11
+ * The configuration options of the Sankey legend
12
+ * ([see example]({% slug legend_sankey %})).
13
+ */
14
+ export class SankeyLinksComponent extends SettingsComponent {
15
+ constructor(configurationService) {
16
+ super('links', configurationService);
17
+ this.configurationService = configurationService;
18
+ }
19
+ }
20
+ SankeyLinksComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: SankeyLinksComponent, deps: [{ token: i1.ConfigurationService }], target: i0.ɵɵFactoryTarget.Component });
21
+ SankeyLinksComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: SankeyLinksComponent, selector: "kendo-sankey-links", inputs: { colorType: "colorType", color: "color", opacity: "opacity", highlight: "highlight" }, usesInheritance: true, ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
22
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: SankeyLinksComponent, decorators: [{
23
+ type: Component,
24
+ args: [{
25
+ changeDetection: ChangeDetectionStrategy.OnPush,
26
+ selector: 'kendo-sankey-links',
27
+ template: '',
28
+ }]
29
+ }], ctorParameters: function () { return [{ type: i1.ConfigurationService }]; }, propDecorators: { colorType: [{
30
+ type: Input
31
+ }], color: [{
32
+ type: Input
33
+ }], opacity: [{
34
+ type: Input
35
+ }], highlight: [{
36
+ type: Input
37
+ }] } });
@@ -0,0 +1,42 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2024 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, forwardRef } from '@angular/core';
6
+ import { LocalizationService } from '@progress/kendo-angular-l10n';
7
+ import { Messages } from './messages';
8
+ import * as i0 from "@angular/core";
9
+ import * as i1 from "@progress/kendo-angular-l10n";
10
+ /**
11
+ * Custom component messages override default component messages
12
+ * ([see example]({% slug globalization_filter %}#toc-localization)).
13
+ */
14
+ export class SankeyCustomMessagesComponent extends Messages {
15
+ constructor(service) {
16
+ super();
17
+ this.service = service;
18
+ }
19
+ get override() {
20
+ return true;
21
+ }
22
+ }
23
+ SankeyCustomMessagesComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: SankeyCustomMessagesComponent, deps: [{ token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Component });
24
+ SankeyCustomMessagesComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: SankeyCustomMessagesComponent, selector: "kendo-sankey-messages", providers: [
25
+ {
26
+ provide: Messages,
27
+ useExisting: forwardRef(() => SankeyCustomMessagesComponent)
28
+ }
29
+ ], usesInheritance: true, ngImport: i0, template: ``, isInline: true });
30
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: SankeyCustomMessagesComponent, decorators: [{
31
+ type: Component,
32
+ args: [{
33
+ providers: [
34
+ {
35
+ provide: Messages,
36
+ useExisting: forwardRef(() => SankeyCustomMessagesComponent)
37
+ }
38
+ ],
39
+ selector: 'kendo-sankey-messages',
40
+ template: ``
41
+ }]
42
+ }], ctorParameters: function () { return [{ type: i1.LocalizationService }]; } });
@@ -0,0 +1,37 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the project root for more information
4
+ *-------------------------------------------------------------------------------------------*/
5
+ import { Directive, forwardRef } from '@angular/core';
6
+ import { LocalizationService } from '@progress/kendo-angular-l10n';
7
+ import { Messages } from './messages';
8
+ import * as i0 from "@angular/core";
9
+ import * as i1 from "@progress/kendo-angular-l10n";
10
+ /**
11
+ * @hidden
12
+ */
13
+ export class LocalizedMessagesDirective extends Messages {
14
+ constructor(service) {
15
+ super();
16
+ this.service = service;
17
+ }
18
+ }
19
+ LocalizedMessagesDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: LocalizedMessagesDirective, deps: [{ token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Directive });
20
+ LocalizedMessagesDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.12", type: LocalizedMessagesDirective, selector: "[kendoSankeyLocalizedMessages]", providers: [
21
+ {
22
+ provide: Messages,
23
+ useExisting: forwardRef(() => LocalizedMessagesDirective)
24
+ }
25
+ ], usesInheritance: true, ngImport: i0 });
26
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: LocalizedMessagesDirective, decorators: [{
27
+ type: Directive,
28
+ args: [{
29
+ providers: [
30
+ {
31
+ provide: Messages,
32
+ useExisting: forwardRef(() => LocalizedMessagesDirective)
33
+ }
34
+ ],
35
+ selector: '[kendoSankeyLocalizedMessages]'
36
+ }]
37
+ }], ctorParameters: function () { return [{ type: i1.LocalizationService }]; } });
@@ -0,0 +1,23 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the project root for more information
4
+ *-------------------------------------------------------------------------------------------*/
5
+ import { Directive } from '@angular/core';
6
+ import { Input } from '@angular/core';
7
+ import { ComponentMessages } from '@progress/kendo-angular-l10n';
8
+ import * as i0 from "@angular/core";
9
+ /**
10
+ * @hidden
11
+ */
12
+ export class Messages extends ComponentMessages {
13
+ }
14
+ Messages.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: Messages, deps: null, target: i0.ɵɵFactoryTarget.Directive });
15
+ Messages.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.12", type: Messages, selector: "[kendoSankeyMessages]", inputs: { tooltipUnitFormat: "tooltipUnitFormat" }, usesInheritance: true, ngImport: i0 });
16
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: Messages, decorators: [{
17
+ type: Directive,
18
+ args: [{
19
+ selector: '[kendoSankeyMessages]'
20
+ }]
21
+ }], propDecorators: { tooltipUnitFormat: [{
22
+ type: Input
23
+ }] } });