@progress/kendo-angular-charts 15.5.0-develop.9 → 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.
- package/charts.module.d.ts +2 -1
- package/common/has-observers.d.ts +9 -0
- package/esm2020/chart.component.mjs +1 -3
- package/esm2020/charts.module.mjs +4 -3
- package/esm2020/common/has-observers.mjs +10 -0
- package/esm2020/common/theme.service.mjs +6 -0
- package/esm2020/index.mjs +4 -0
- package/esm2020/package-metadata.mjs +2 -2
- package/esm2020/sankey/api-types/index.mjs +5 -0
- package/esm2020/sankey/data-binding/create-sankey-data.mjs +45 -0
- package/esm2020/sankey/data-binding/flat-binding.directive.mjs +65 -0
- package/esm2020/sankey/data-binding/flat-binding.event.mjs +15 -0
- package/esm2020/sankey/events/index.mjs +8 -0
- package/esm2020/sankey/events/instance-event.service.mjs +22 -0
- package/esm2020/sankey/events/sankey-base-event.mjs +18 -0
- package/esm2020/sankey/events/sankey-link-event.mjs +17 -0
- package/esm2020/sankey/events/sankey-node-event.mjs +17 -0
- package/esm2020/sankey/labels.component.mjs +49 -0
- package/esm2020/sankey/legend.component.mjs +64 -0
- package/esm2020/sankey/links.component.mjs +37 -0
- package/esm2020/sankey/localization/custom-messages.component.mjs +42 -0
- package/esm2020/sankey/localization/localized-messages.directive.mjs +37 -0
- package/esm2020/sankey/localization/messages.mjs +23 -0
- package/esm2020/sankey/nodes.component.mjs +43 -0
- package/esm2020/sankey/title.component.mjs +59 -0
- package/esm2020/sankey/tooltip/link-tooltip-template-context.mjs +18 -0
- package/esm2020/sankey/tooltip/link-tooltip-template.directive.mjs +87 -0
- package/esm2020/sankey/tooltip/node-tooltip-template-context.mjs +18 -0
- package/esm2020/sankey/tooltip/node-tooltip-template.directive.mjs +64 -0
- package/esm2020/sankey/tooltip/square-symbol.directive.mjs +43 -0
- package/esm2020/sankey/tooltip/tooltip-popup.component.mjs +203 -0
- package/esm2020/sankey/tooltip/tooltip-template.service.mjs +16 -0
- package/esm2020/sankey/tooltip.component.mjs +52 -0
- package/esm2020/sankey.component.mjs +378 -0
- package/esm2020/sankey.directives.mjs +46 -0
- package/esm2020/sankey.module.mjs +63 -0
- package/fesm2015/progress-kendo-angular-charts.mjs +1353 -30
- package/fesm2020/progress-kendo-angular-charts.mjs +1347 -27
- package/index.d.ts +4 -0
- package/package.json +9 -8
- package/sankey/api-types/index.d.ts +21 -0
- package/sankey/data-binding/create-sankey-data.d.ts +9 -0
- package/sankey/data-binding/flat-binding.directive.d.ts +38 -0
- package/sankey/data-binding/flat-binding.event.d.ts +24 -0
- package/sankey/events/index.d.ts +8 -0
- package/sankey/events/instance-event.service.d.ts +14 -0
- package/sankey/events/sankey-base-event.d.ts +24 -0
- package/sankey/events/sankey-link-event.d.ts +20 -0
- package/sankey/events/sankey-node-event.d.ts +20 -0
- package/sankey/labels.component.d.ts +36 -0
- package/sankey/legend.component.d.ts +82 -0
- package/sankey/links.component.d.ts +22 -0
- package/sankey/localization/custom-messages.component.d.ts +18 -0
- package/sankey/localization/localized-messages.directive.d.ts +16 -0
- package/sankey/localization/messages.d.ts +17 -0
- package/sankey/nodes.component.d.ts +34 -0
- package/sankey/title.component.d.ts +70 -0
- package/sankey/tooltip/link-tooltip-template-context.d.ts +26 -0
- package/sankey/tooltip/link-tooltip-template.directive.d.ts +78 -0
- package/sankey/tooltip/node-tooltip-template-context.d.ts +26 -0
- package/sankey/tooltip/node-tooltip-template.directive.d.ts +55 -0
- package/sankey/tooltip/square-symbol.directive.d.ts +16 -0
- package/sankey/tooltip/tooltip-popup.component.d.ts +60 -0
- package/sankey/tooltip/tooltip-template.service.d.ts +15 -0
- package/sankey/tooltip.component.d.ts +49 -0
- package/sankey.component.d.ts +200 -0
- package/sankey.directives.d.ts +27 -0
- package/sankey.module.d.ts +51 -0
|
@@ -0,0 +1,26 @@
|
|
|
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 { SankeyLabel, SankeyTooltipEvent } from '@progress/kendo-charts';
|
|
6
|
+
/**
|
|
7
|
+
* The context that is passed to the Sankey diagram Node tooltip template.
|
|
8
|
+
*/
|
|
9
|
+
export declare class SankeyNodeTooltipTemplateContext {
|
|
10
|
+
/**
|
|
11
|
+
* The node color.
|
|
12
|
+
*/
|
|
13
|
+
color: string;
|
|
14
|
+
/**
|
|
15
|
+
* The node label data.
|
|
16
|
+
*/
|
|
17
|
+
label: SankeyLabel;
|
|
18
|
+
/**
|
|
19
|
+
* The node value.
|
|
20
|
+
*/
|
|
21
|
+
value: number;
|
|
22
|
+
/**
|
|
23
|
+
* @hidden
|
|
24
|
+
*/
|
|
25
|
+
constructor(e: SankeyTooltipEvent);
|
|
26
|
+
}
|
|
@@ -0,0 +1,55 @@
|
|
|
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 { TemplateRef } from '@angular/core';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
/**
|
|
8
|
+
* A directive that selects a [template](link:site.data.urls.angular['templatesyntax'])
|
|
9
|
+
* within the `<kendo-sankey-tooltip>` component for the
|
|
10
|
+
* [series tooltip](slug:tooltip_sankey#toc-specifying-a-template).
|
|
11
|
+
* The following context fields are frequently utilized:
|
|
12
|
+
* - `let-color="color"`—The node color.
|
|
13
|
+
* - `let-label="label"`—The node label data.
|
|
14
|
+
* - `let-value="value"`—The node value.
|
|
15
|
+
* For the full list of available fields, refer to the [`SankeyNodeTooltipTemplateContext`](slug:api_charts_sankeynodetooltiptemplatecontext).
|
|
16
|
+
*
|
|
17
|
+
* @example
|
|
18
|
+
* ```ts
|
|
19
|
+
* import { Component } from '@angular/core';
|
|
20
|
+
* import { SankeyData } from '@progress/kendo-angular-charts';
|
|
21
|
+
*
|
|
22
|
+
* _@Component({
|
|
23
|
+
* selector: 'my-app',
|
|
24
|
+
* template: `
|
|
25
|
+
* <kendo-sankey [data]="data">
|
|
26
|
+
* <ng-template kendoSankeyNodeTooltipTemplate let-color="color" let-label="label" let-value="value">
|
|
27
|
+
* {{ label.text }}: {{ value }}
|
|
28
|
+
* </ng-template>
|
|
29
|
+
* </kendo-sankey>
|
|
30
|
+
* `,
|
|
31
|
+
* })
|
|
32
|
+
* export class AppComponent {
|
|
33
|
+
* public data: SankeyData = {
|
|
34
|
+
* nodes: [
|
|
35
|
+
* { id: 1, label: { text: 'Linux' } },
|
|
36
|
+
* { id: 0, label: { text: 'iOS'} },
|
|
37
|
+
* { id: 2, label: { text: 'Mobile' } },
|
|
38
|
+
* { id: 3, label: { text: 'Desktop' } },
|
|
39
|
+
* ],
|
|
40
|
+
* links: [
|
|
41
|
+
* { sourceId: 0, targetId: 2, value: 1 },
|
|
42
|
+
* { sourceId: 1, targetId: 2, value: 2 },
|
|
43
|
+
* { sourceId: 1, targetId: 3, value: 3 },
|
|
44
|
+
* ],
|
|
45
|
+
* };
|
|
46
|
+
* }
|
|
47
|
+
*
|
|
48
|
+
* ```
|
|
49
|
+
*/
|
|
50
|
+
export declare class SankeyNodeTooltipTemplateDirective {
|
|
51
|
+
templateRef: TemplateRef<any>;
|
|
52
|
+
constructor(templateRef: TemplateRef<any>);
|
|
53
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SankeyNodeTooltipTemplateDirective, [{ optional: true; }]>;
|
|
54
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<SankeyNodeTooltipTemplateDirective, "[kendoSankeyNodeTooltipTemplate]", never, {}, {}, never>;
|
|
55
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
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 * as i0 from "@angular/core";
|
|
6
|
+
/**
|
|
7
|
+
* @hidden
|
|
8
|
+
*/
|
|
9
|
+
export declare class SquareSymbol {
|
|
10
|
+
color: string;
|
|
11
|
+
size: number;
|
|
12
|
+
display: string;
|
|
13
|
+
marginLeft: number;
|
|
14
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SquareSymbol, never>;
|
|
15
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<SquareSymbol, "[squareSymbol]", never, { "color": "color"; "size": "size"; }, {}, never>;
|
|
16
|
+
}
|
|
@@ -0,0 +1,60 @@
|
|
|
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 { ElementRef, NgZone, TemplateRef } from '@angular/core';
|
|
6
|
+
import { LocalizationService } from '@progress/kendo-angular-l10n';
|
|
7
|
+
import { PopupService } from '@progress/kendo-angular-popup';
|
|
8
|
+
import { SankeyTooltipEvent } from '@progress/kendo-charts';
|
|
9
|
+
import { BaseTooltip } from '../../chart/tooltip/base-tooltip';
|
|
10
|
+
import { PopupSettings } from '../../chart/tooltip/popup-settings.interface';
|
|
11
|
+
import { SankeyLinkTooltipTemplateContext } from './link-tooltip-template-context';
|
|
12
|
+
import { SankeyLinkTooltipTemplateDirective } from './link-tooltip-template.directive';
|
|
13
|
+
import { SankeyNodeTooltipTemplateContext } from './node-tooltip-template-context';
|
|
14
|
+
import { SankeyNodeTooltipTemplateDirective } from './node-tooltip-template.directive';
|
|
15
|
+
import { SankeyTooltipTemplateService } from './tooltip-template.service';
|
|
16
|
+
import { IntlService } from '@progress/kendo-angular-intl';
|
|
17
|
+
import * as i0 from "@angular/core";
|
|
18
|
+
/**
|
|
19
|
+
* @hidden
|
|
20
|
+
*/
|
|
21
|
+
export declare class SankeyTooltipPopupComponent extends BaseTooltip {
|
|
22
|
+
protected element: ElementRef;
|
|
23
|
+
protected popupService: PopupService;
|
|
24
|
+
protected templateService: SankeyTooltipTemplateService;
|
|
25
|
+
protected localizationService: LocalizationService;
|
|
26
|
+
protected intlService: IntlService;
|
|
27
|
+
protected ngZone: NgZone;
|
|
28
|
+
nodeTooltipTemplateRef: TemplateRef<any>;
|
|
29
|
+
linkTooltipTemplateRef: TemplateRef<any>;
|
|
30
|
+
nodeTooltipContext: SankeyNodeTooltipTemplateContext;
|
|
31
|
+
linkTooltipContext: SankeyLinkTooltipTemplateContext;
|
|
32
|
+
defaultNodeTooltipTemplate: SankeyNodeTooltipTemplateDirective;
|
|
33
|
+
defaultLinkTooltipTemplate: SankeyLinkTooltipTemplateDirective;
|
|
34
|
+
templateRef: TemplateRef<any>;
|
|
35
|
+
animate: boolean;
|
|
36
|
+
popupSettings: PopupSettings;
|
|
37
|
+
wrapperClass: string;
|
|
38
|
+
tooltipUnitFormat: string;
|
|
39
|
+
offset: number;
|
|
40
|
+
isNode: boolean;
|
|
41
|
+
isLink: boolean;
|
|
42
|
+
arrowRightIcon: import("@progress/kendo-svg-icons").SVGIcon;
|
|
43
|
+
textStyle: {
|
|
44
|
+
margin: string;
|
|
45
|
+
};
|
|
46
|
+
tooltipStyle: {
|
|
47
|
+
display: string;
|
|
48
|
+
alignItems: string;
|
|
49
|
+
};
|
|
50
|
+
constructor(element: ElementRef, popupService: PopupService, templateService: SankeyTooltipTemplateService, localizationService: LocalizationService, intlService: IntlService, ngZone: NgZone);
|
|
51
|
+
protected onInit(): void;
|
|
52
|
+
show(e: SankeyTooltipEvent): void;
|
|
53
|
+
tooltipAnchor(e: SankeyTooltipEvent): {
|
|
54
|
+
left: number;
|
|
55
|
+
top: number;
|
|
56
|
+
};
|
|
57
|
+
formatUnits(value: number): string;
|
|
58
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SankeyTooltipPopupComponent, never>;
|
|
59
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SankeyTooltipPopupComponent, "kendo-sankey-tooltip-popup", never, { "animate": "animate"; "popupSettings": "popupSettings"; "wrapperClass": "wrapperClass"; "tooltipUnitFormat": "tooltipUnitFormat"; "offset": "offset"; }, {}, never, never>;
|
|
60
|
+
}
|
|
@@ -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
|
+
import { TemplateRef } from '@angular/core';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
/**
|
|
8
|
+
* @hidden
|
|
9
|
+
*/
|
|
10
|
+
export declare class SankeyTooltipTemplateService {
|
|
11
|
+
nodeTemplate: TemplateRef<any>;
|
|
12
|
+
linkTemplate: TemplateRef<any>;
|
|
13
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SankeyTooltipTemplateService, never>;
|
|
14
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<SankeyTooltipTemplateService>;
|
|
15
|
+
}
|
|
@@ -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 { AfterContentChecked } from '@angular/core';
|
|
6
|
+
import { ConfigurationService } from '../common/configuration.service';
|
|
7
|
+
import { SettingsComponent } from '../common/settings.component';
|
|
8
|
+
import { SankeyLinkTooltipTemplateDirective } from './tooltip/link-tooltip-template.directive';
|
|
9
|
+
import { SankeyNodeTooltipTemplateDirective } from './tooltip/node-tooltip-template.directive';
|
|
10
|
+
import { SankeyTooltip } from '@progress/kendo-charts';
|
|
11
|
+
import { SankeyTooltipTemplateService } from './tooltip/tooltip-template.service';
|
|
12
|
+
import * as i0 from "@angular/core";
|
|
13
|
+
/**
|
|
14
|
+
* The configuration options of the Sankey tooltip
|
|
15
|
+
* ([see example]({% slug tooltip_sankey %})).
|
|
16
|
+
*/
|
|
17
|
+
export declare class SankeyTooltipComponent extends SettingsComponent implements SankeyTooltip, AfterContentChecked {
|
|
18
|
+
configurationService: ConfigurationService;
|
|
19
|
+
private templateService;
|
|
20
|
+
/**
|
|
21
|
+
* Indicates whether the tooltip will follow the mouse pointer.
|
|
22
|
+
*
|
|
23
|
+
* @default false
|
|
24
|
+
*/
|
|
25
|
+
followPointer?: boolean;
|
|
26
|
+
/**
|
|
27
|
+
* Represents the delay of the tooltip displaying.
|
|
28
|
+
* The delay is measured in milliseconds.
|
|
29
|
+
*
|
|
30
|
+
* @default 100
|
|
31
|
+
*/
|
|
32
|
+
delay?: number;
|
|
33
|
+
/**
|
|
34
|
+
* The distance between the tooltip and the mouse pointer in pixels.
|
|
35
|
+
* @default 12
|
|
36
|
+
*/
|
|
37
|
+
offset: number;
|
|
38
|
+
/**
|
|
39
|
+
* If set to `true`, the Sankey displays the link and node tooltips.
|
|
40
|
+
* @default false
|
|
41
|
+
*/
|
|
42
|
+
visible: boolean;
|
|
43
|
+
linkTooltipTemplate: SankeyLinkTooltipTemplateDirective;
|
|
44
|
+
nodeTooltipTemplate: SankeyNodeTooltipTemplateDirective;
|
|
45
|
+
constructor(configurationService: ConfigurationService, templateService: SankeyTooltipTemplateService);
|
|
46
|
+
ngAfterContentChecked(): void;
|
|
47
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SankeyTooltipComponent, never>;
|
|
48
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SankeyTooltipComponent, "kendo-sankey-tooltip", never, { "followPointer": "followPointer"; "delay": "delay"; "offset": "offset"; "visible": "visible"; }, {}, ["linkTooltipTemplate", "nodeTooltipTemplate"], never>;
|
|
49
|
+
}
|
|
@@ -0,0 +1,200 @@
|
|
|
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 { ChangeDetectorRef, ElementRef, EventEmitter, NgZone, OnChanges, OnDestroy, Renderer2, SimpleChange } from '@angular/core';
|
|
6
|
+
import { LocalizationService } from '@progress/kendo-angular-l10n';
|
|
7
|
+
import { Group, ImageExportOptions, SVGExportOptions } from '@progress/kendo-drawing';
|
|
8
|
+
import { Subscription } from 'rxjs';
|
|
9
|
+
import { ConfigurationService } from './common/configuration.service';
|
|
10
|
+
import { ThemeService } from './common/theme.service';
|
|
11
|
+
import { InstanceEventService, SankeyLinkEvent, SankeyNodeEvent } from './sankey/events';
|
|
12
|
+
import { Sankey, SankeyEvent, SankeyTooltipEvent } from '@progress/kendo-charts';
|
|
13
|
+
import { SankeyExportVisualOptions, SankeyLabelDefaults, SankeyLinkDefaults, SankeyNodeDefaults, SankeyTooltip } from './sankey/api-types';
|
|
14
|
+
import { PopupSettings } from './chart/tooltip/popup-settings.interface';
|
|
15
|
+
import { SankeyData, SankeyLegend, SankeyTitle } from './sankey/api-types';
|
|
16
|
+
import { SankeyTooltipPopupComponent } from './sankey/tooltip/tooltip-popup.component';
|
|
17
|
+
import * as i0 from "@angular/core";
|
|
18
|
+
/**
|
|
19
|
+
* The Sankey diagram component.
|
|
20
|
+
*
|
|
21
|
+
* @example
|
|
22
|
+
* ```ts
|
|
23
|
+
* import { Component } from '@angular/core';
|
|
24
|
+
*
|
|
25
|
+
* _@Component({
|
|
26
|
+
* selector: 'my-app',
|
|
27
|
+
* template: `
|
|
28
|
+
* <kendo-sankey [data]="data">
|
|
29
|
+
* </kendo-sankey>
|
|
30
|
+
* `,
|
|
31
|
+
* })
|
|
32
|
+
* export class AppComponent {
|
|
33
|
+
* public data: SankeyData = {
|
|
34
|
+
* nodes: [
|
|
35
|
+
* { id: 1, label: { text: 'Linux' } },
|
|
36
|
+
* { id: 0, label: { text: 'iOS'} },
|
|
37
|
+
* { id: 2, label: { text: 'Mobile' } },
|
|
38
|
+
* { id: 3, label: { text: 'Desktop' } },
|
|
39
|
+
* ],
|
|
40
|
+
* links: [
|
|
41
|
+
* { sourceId: 0, targetId: 2, value: 1 },
|
|
42
|
+
* { sourceId: 1, targetId: 2, value: 2 },
|
|
43
|
+
* { sourceId: 1, targetId: 3, value: 3 },
|
|
44
|
+
* ],
|
|
45
|
+
* };
|
|
46
|
+
* }
|
|
47
|
+
* ```
|
|
48
|
+
*/
|
|
49
|
+
export declare class SankeyComponent implements OnChanges, OnDestroy {
|
|
50
|
+
protected element: ElementRef;
|
|
51
|
+
configurationService: ConfigurationService;
|
|
52
|
+
themeService: ThemeService;
|
|
53
|
+
protected localizationService: LocalizationService;
|
|
54
|
+
protected instanceEventService: InstanceEventService;
|
|
55
|
+
protected ngZone: NgZone;
|
|
56
|
+
protected changeDetector: ChangeDetectorRef;
|
|
57
|
+
protected renderer: Renderer2;
|
|
58
|
+
/**
|
|
59
|
+
* The data of the Sankey component containing the `links` and `nodes`.
|
|
60
|
+
*/
|
|
61
|
+
data: SankeyData;
|
|
62
|
+
/**
|
|
63
|
+
* The default configuration for links.
|
|
64
|
+
* These settings will be applied to all links unless overridden by individual data items.
|
|
65
|
+
*/
|
|
66
|
+
links?: SankeyLinkDefaults;
|
|
67
|
+
/**
|
|
68
|
+
* The default configuration for nodes.
|
|
69
|
+
* These settings will be applied to all nodes unless overridden by individual data items.
|
|
70
|
+
*/
|
|
71
|
+
nodes?: SankeyNodeDefaults;
|
|
72
|
+
/**
|
|
73
|
+
* The default configuration for labels.
|
|
74
|
+
* These settings will be applied to all labels unless overridden by individual data items.
|
|
75
|
+
*/
|
|
76
|
+
labels?: SankeyLabelDefaults;
|
|
77
|
+
/**
|
|
78
|
+
* The title configuration of the Sankey component.
|
|
79
|
+
*/
|
|
80
|
+
title?: SankeyTitle;
|
|
81
|
+
/**
|
|
82
|
+
* The legend configuration of the Sankey component.
|
|
83
|
+
*/
|
|
84
|
+
legend?: SankeyLegend;
|
|
85
|
+
/**
|
|
86
|
+
* The configuration of the Sankey tooltip.
|
|
87
|
+
*/
|
|
88
|
+
tooltip?: SankeyTooltip;
|
|
89
|
+
/**
|
|
90
|
+
* If set to `true`, the Sankey component will not perform automatic layout.
|
|
91
|
+
*/
|
|
92
|
+
disableAutoLayout?: boolean;
|
|
93
|
+
/**
|
|
94
|
+
* The settings for the tooltip popup.
|
|
95
|
+
*/
|
|
96
|
+
popupSettings: PopupSettings;
|
|
97
|
+
/**
|
|
98
|
+
* Fires when the mouse pointer enters a node. Similar to the `mouseenter` event.
|
|
99
|
+
*/
|
|
100
|
+
nodeEnter: EventEmitter<SankeyNodeEvent>;
|
|
101
|
+
/**
|
|
102
|
+
* Fires when the mouse pointer leaves a node. Similar to the `mouseleave` event.
|
|
103
|
+
*/
|
|
104
|
+
nodeLeave: EventEmitter<SankeyNodeEvent>;
|
|
105
|
+
/**
|
|
106
|
+
* Fires when a node is clicked.
|
|
107
|
+
*/
|
|
108
|
+
nodeClick: EventEmitter<SankeyNodeEvent>;
|
|
109
|
+
/**
|
|
110
|
+
* Fires when the mouse pointer enters a link. Similar to the `mouseenter` event,
|
|
111
|
+
*/
|
|
112
|
+
linkEnter: EventEmitter<SankeyLinkEvent>;
|
|
113
|
+
/**
|
|
114
|
+
* Fires when the mouse pointer leaves a link. Similar to the `mouseleave` event.
|
|
115
|
+
*/
|
|
116
|
+
linkLeave: EventEmitter<SankeyLinkEvent>;
|
|
117
|
+
/**
|
|
118
|
+
* Fires when a link is clicked.
|
|
119
|
+
*/
|
|
120
|
+
linkClick: EventEmitter<SankeyLinkEvent>;
|
|
121
|
+
tooltipInstance: SankeyTooltipPopupComponent;
|
|
122
|
+
instanceElement: ElementRef;
|
|
123
|
+
/**
|
|
124
|
+
* @hidden
|
|
125
|
+
*/
|
|
126
|
+
showLicenseWatermark: boolean;
|
|
127
|
+
instance: Sankey;
|
|
128
|
+
protected options: any;
|
|
129
|
+
protected theme: any;
|
|
130
|
+
protected optionsChange: Subscription;
|
|
131
|
+
protected redrawTimeout: any;
|
|
132
|
+
protected destroyed: boolean;
|
|
133
|
+
protected subscriptions: Subscription;
|
|
134
|
+
protected rtl: boolean;
|
|
135
|
+
constructor(element: ElementRef, configurationService: ConfigurationService, themeService: ThemeService, localizationService: LocalizationService, instanceEventService: InstanceEventService, ngZone: NgZone, changeDetector: ChangeDetectorRef, renderer: Renderer2);
|
|
136
|
+
ngOnChanges(changes: {
|
|
137
|
+
[propertyName: string]: SimpleChange;
|
|
138
|
+
}): void;
|
|
139
|
+
/**
|
|
140
|
+
* Updates the component fields with the specified values and refreshes the widget.
|
|
141
|
+
*
|
|
142
|
+
* Use this method when the configuration values cannot be set through the template.
|
|
143
|
+
*
|
|
144
|
+
* @example
|
|
145
|
+
* ```ts-no-run
|
|
146
|
+
* sankey.notifyChanges({ title: { text: 'New Title' } });
|
|
147
|
+
* ```
|
|
148
|
+
*
|
|
149
|
+
* @param changes An object containing the updated input fields.
|
|
150
|
+
*/
|
|
151
|
+
notifyChanges(changes: any): void;
|
|
152
|
+
ngOnDestroy(): void;
|
|
153
|
+
/**
|
|
154
|
+
* @hidden
|
|
155
|
+
*/
|
|
156
|
+
messageFor(key: string): string;
|
|
157
|
+
protected createInstance(element: any): void;
|
|
158
|
+
/**
|
|
159
|
+
* Exports the Sankey diagram as an image. The export operation is asynchronous and returns a promise.
|
|
160
|
+
*
|
|
161
|
+
* @param {ImageExportOptions} options - The parameters for the exported image.
|
|
162
|
+
* @returns {Promise<string>} - A promise that will be resolved with a PNG image encoded as a Data URI.
|
|
163
|
+
*/
|
|
164
|
+
exportImage(options?: SankeyExportVisualOptions & ImageExportOptions): Promise<string>;
|
|
165
|
+
/**
|
|
166
|
+
* Exports the Sankey diagram as an SVG document. The export operation is asynchronous and returns a promise.
|
|
167
|
+
*
|
|
168
|
+
* @param options - The parameters for the exported file.
|
|
169
|
+
* @returns - A promise that will be resolved with an SVG document that is encoded as a Data URI.
|
|
170
|
+
*/
|
|
171
|
+
exportSVG(options?: SankeyExportVisualOptions & SVGExportOptions): Promise<string>;
|
|
172
|
+
/**
|
|
173
|
+
* Exports the visual of the Sankey component to a drawing group.
|
|
174
|
+
*
|
|
175
|
+
* @param options - The parameters for the export operation.
|
|
176
|
+
* @returns - The root Group of the scene.
|
|
177
|
+
*/
|
|
178
|
+
exportVisual(options?: SankeyExportVisualOptions): Group;
|
|
179
|
+
protected init(): void;
|
|
180
|
+
/**
|
|
181
|
+
* Reloads the Sankey appearance settings from the current [Kendo UI Theme]({% slug themesandstyles %}).
|
|
182
|
+
*
|
|
183
|
+
* Call this method after loading a different theme stylesheet.
|
|
184
|
+
*/
|
|
185
|
+
reloadTheme(): void;
|
|
186
|
+
protected onShowTooltip(e: SankeyTooltipEvent): void;
|
|
187
|
+
protected onHideTooltip(): void;
|
|
188
|
+
protected trigger(name: string, e: SankeyEvent): boolean;
|
|
189
|
+
protected requiresHandlers(names: string[]): boolean;
|
|
190
|
+
protected refresh(): void;
|
|
191
|
+
protected updateOptions(): void;
|
|
192
|
+
protected get canRender(): boolean;
|
|
193
|
+
protected activeEmitter(name: string): any;
|
|
194
|
+
protected refreshWait(): void;
|
|
195
|
+
protected loadTheme(chartTheme: any): any;
|
|
196
|
+
protected run(callback: any, inZone?: boolean, detectChanges?: boolean): void;
|
|
197
|
+
protected detectChanges(): void;
|
|
198
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SankeyComponent, never>;
|
|
199
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SankeyComponent, "kendo-sankey", ["kendoSankey"], { "data": "data"; "links": "links"; "nodes": "nodes"; "labels": "labels"; "title": "title"; "legend": "legend"; "tooltip": "tooltip"; "disableAutoLayout": "disableAutoLayout"; "popupSettings": "popupSettings"; }, { "nodeEnter": "nodeEnter"; "nodeLeave": "nodeLeave"; "nodeClick": "nodeClick"; "linkEnter": "linkEnter"; "linkLeave": "linkLeave"; "linkClick": "linkClick"; }, never, never>;
|
|
200
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
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 { SankeyComponent } from './sankey.component';
|
|
6
|
+
import { SankeyFlatBindingDirective } from './sankey/data-binding/flat-binding.directive';
|
|
7
|
+
import { SankeyFlatBindingDataBoundEvent } from './sankey/data-binding/flat-binding.event';
|
|
8
|
+
import { SankeyLabelsComponent } from './sankey/labels.component';
|
|
9
|
+
import { SankeyLegendComponent } from './sankey/legend.component';
|
|
10
|
+
import { SankeyLinksComponent } from './sankey/links.component';
|
|
11
|
+
import { SankeyCustomMessagesComponent } from './sankey/localization/custom-messages.component';
|
|
12
|
+
import { LocalizedMessagesDirective } from './sankey/localization/localized-messages.directive';
|
|
13
|
+
import { SankeyNodesComponent } from './sankey/nodes.component';
|
|
14
|
+
import { SankeyTitleComponent } from './sankey/title.component';
|
|
15
|
+
import { SankeyTooltipComponent } from './sankey/tooltip.component';
|
|
16
|
+
import { SankeyLinkTooltipTemplateDirective } from './sankey/tooltip/link-tooltip-template.directive';
|
|
17
|
+
import { SankeyNodeTooltipTemplateDirective } from './sankey/tooltip/node-tooltip-template.directive';
|
|
18
|
+
import { SankeyTooltipPopupComponent } from './sankey/tooltip/tooltip-popup.component';
|
|
19
|
+
export { SankeyComponent, SankeyTooltipPopupComponent, SankeyLinkTooltipTemplateDirective, SankeyNodeTooltipTemplateDirective, SankeyCustomMessagesComponent, LocalizedMessagesDirective, SankeyTitleComponent, SankeyLegendComponent, SankeyTooltipComponent, SankeyLinksComponent, SankeyNodesComponent, SankeyLabelsComponent, SankeyFlatBindingDirective, SankeyFlatBindingDataBoundEvent };
|
|
20
|
+
/**
|
|
21
|
+
* @hidden
|
|
22
|
+
*/
|
|
23
|
+
export declare const SANKEY_EXPORTS: any[];
|
|
24
|
+
/**
|
|
25
|
+
* @hidden
|
|
26
|
+
*/
|
|
27
|
+
export declare const SANKEY_DIRECTIVES: any[];
|
|
@@ -0,0 +1,51 @@
|
|
|
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 * as i0 from "@angular/core";
|
|
6
|
+
import * as i1 from "./sankey.component";
|
|
7
|
+
import * as i2 from "./sankey/tooltip/tooltip-popup.component";
|
|
8
|
+
import * as i3 from "./sankey/tooltip/link-tooltip-template.directive";
|
|
9
|
+
import * as i4 from "./sankey/tooltip/node-tooltip-template.directive";
|
|
10
|
+
import * as i5 from "./sankey/localization/custom-messages.component";
|
|
11
|
+
import * as i6 from "./sankey/localization/localized-messages.directive";
|
|
12
|
+
import * as i7 from "./sankey/title.component";
|
|
13
|
+
import * as i8 from "./sankey/legend.component";
|
|
14
|
+
import * as i9 from "./sankey/tooltip.component";
|
|
15
|
+
import * as i10 from "./sankey/links.component";
|
|
16
|
+
import * as i11 from "./sankey/nodes.component";
|
|
17
|
+
import * as i12 from "./sankey/labels.component";
|
|
18
|
+
import * as i13 from "./sankey/data-binding/flat-binding.directive";
|
|
19
|
+
import * as i14 from "./sankey/tooltip/square-symbol.directive";
|
|
20
|
+
import * as i15 from "@angular/common";
|
|
21
|
+
import * as i16 from "@progress/kendo-angular-icons";
|
|
22
|
+
import * as i17 from "@progress/kendo-angular-popup";
|
|
23
|
+
import * as i18 from "@progress/kendo-angular-common";
|
|
24
|
+
/**
|
|
25
|
+
* A [module](link:site.data.urls.angular['ngmoduleapi']) that includes the Sparkline component and directives.
|
|
26
|
+
*
|
|
27
|
+
* Imports the SparklineModule into your application
|
|
28
|
+
* [root module](link:site.data.urls.angular['ngmodules']#angular-modularity) or any other sub-module
|
|
29
|
+
* that will use the Sparkline component.
|
|
30
|
+
*
|
|
31
|
+
* @example
|
|
32
|
+
* ```ts-no-run
|
|
33
|
+
* import { NgModule } from '@angular/core';
|
|
34
|
+
* import { BrowserModule } from '@angular/platform-browser';
|
|
35
|
+
* import { SparklineModule } from '@progress/kendo-angular-charts';
|
|
36
|
+
* import { AppComponent } from './app.component';
|
|
37
|
+
*
|
|
38
|
+
* _@NgModule({
|
|
39
|
+
* bootstrap: [AppComponent],
|
|
40
|
+
* declarations: [AppComponent],
|
|
41
|
+
* imports: [BrowserModule, SparklineModule]
|
|
42
|
+
* })
|
|
43
|
+
* export class AppModule {
|
|
44
|
+
* }
|
|
45
|
+
* ```
|
|
46
|
+
*/
|
|
47
|
+
export declare class SankeyModule {
|
|
48
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SankeyModule, never>;
|
|
49
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<SankeyModule, [typeof i1.SankeyComponent, typeof i2.SankeyTooltipPopupComponent, typeof i3.SankeyLinkTooltipTemplateDirective, typeof i4.SankeyNodeTooltipTemplateDirective, typeof i5.SankeyCustomMessagesComponent, typeof i6.LocalizedMessagesDirective, typeof i7.SankeyTitleComponent, typeof i8.SankeyLegendComponent, typeof i9.SankeyTooltipComponent, typeof i10.SankeyLinksComponent, typeof i11.SankeyNodesComponent, typeof i12.SankeyLabelsComponent, typeof i13.SankeyFlatBindingDirective, typeof i14.SquareSymbol], [typeof i15.CommonModule, typeof i16.IconsModule, typeof i17.PopupModule, typeof i18.ResizeSensorModule, typeof i18.WatermarkModule], [typeof i1.SankeyComponent, typeof i2.SankeyTooltipPopupComponent, typeof i3.SankeyLinkTooltipTemplateDirective, typeof i4.SankeyNodeTooltipTemplateDirective, typeof i5.SankeyCustomMessagesComponent, typeof i6.LocalizedMessagesDirective, typeof i7.SankeyTitleComponent, typeof i8.SankeyLegendComponent, typeof i9.SankeyTooltipComponent, typeof i10.SankeyLinksComponent, typeof i11.SankeyNodesComponent, typeof i12.SankeyLabelsComponent, typeof i13.SankeyFlatBindingDirective]>;
|
|
50
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<SankeyModule>;
|
|
51
|
+
}
|