@progress/kendo-angular-chart-wizard 16.6.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/LICENSE.md +11 -0
- package/NOTICE.txt +200 -0
- package/README.md +32 -0
- package/chart-wizard-state.d.ts +149 -0
- package/chart-wizard.component.d.ts +80 -0
- package/chart-wizard.module.d.ts +19 -0
- package/common/get-wizard-data-from-data-rows.d.ts +41 -0
- package/common/index.d.ts +5 -0
- package/common/models.d.ts +19 -0
- package/directives.d.ts +10 -0
- package/esm2020/chart-wizard-state.mjs +502 -0
- package/esm2020/chart-wizard.component.mjs +552 -0
- package/esm2020/chart-wizard.module.mjs +53 -0
- package/esm2020/common/get-wizard-data-from-data-rows.mjs +27 -0
- package/esm2020/common/index.mjs +5 -0
- package/esm2020/common/models.mjs +5 -0
- package/esm2020/directives.mjs +13 -0
- package/esm2020/events/export-event.mjs +18 -0
- package/esm2020/events/index.mjs +5 -0
- package/esm2020/events/preventable-event.mjs +30 -0
- package/esm2020/grid-integration/get-grid-selected-rows.mjs +48 -0
- package/esm2020/grid-integration/get-wizard-data-from-grid-selection.mjs +13 -0
- package/esm2020/grid-integration/grid-chart-wizard.directive.mjs +74 -0
- package/esm2020/grid-integration/index.mjs +7 -0
- package/esm2020/index.mjs +11 -0
- package/esm2020/package-metadata.mjs +15 -0
- package/esm2020/progress-kendo-angular-chart-wizard.mjs +8 -0
- package/esm2020/property-pane/chart-tab.component.mjs +257 -0
- package/esm2020/property-pane/data-tab.component.mjs +229 -0
- package/esm2020/property-pane/form-field.component.mjs +245 -0
- package/esm2020/property-pane/format-tab.component.mjs +945 -0
- package/esm2020/series-type-button.component.mjs +67 -0
- package/esm2020/state.service.mjs +32 -0
- package/events/export-event.d.ts +24 -0
- package/events/index.d.ts +5 -0
- package/events/preventable-event.d.ts +24 -0
- package/fesm2015/progress-kendo-angular-chart-wizard.mjs +2999 -0
- package/fesm2020/progress-kendo-angular-chart-wizard.mjs +2993 -0
- package/grid-integration/get-grid-selected-rows.d.ts +20 -0
- package/grid-integration/get-wizard-data-from-grid-selection.d.ts +19 -0
- package/grid-integration/grid-chart-wizard.directive.d.ts +42 -0
- package/grid-integration/index.d.ts +7 -0
- package/index.d.ts +12 -0
- package/package-metadata.d.ts +9 -0
- package/package.json +65 -0
- package/property-pane/chart-tab.component.d.ts +35 -0
- package/property-pane/data-tab.component.d.ts +33 -0
- package/property-pane/form-field.component.d.ts +45 -0
- package/property-pane/format-tab.component.d.ts +102 -0
- package/schematics/collection.json +12 -0
- package/schematics/ngAdd/index.js +8 -0
- package/schematics/ngAdd/schema.json +24 -0
- package/series-type-button.component.d.ts +24 -0
- package/state.service.d.ts +23 -0
@@ -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,13 @@
|
|
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 { ChartWizardComponent } from "./chart-wizard.component";
|
6
|
+
import { ChartWizardGridBindingDirective } from "./grid-integration/grid-chart-wizard.directive";
|
7
|
+
/**
|
8
|
+
* Utility array that contains all `@progress/kendo-angular-chart-wizard` related components and directives.
|
9
|
+
*/
|
10
|
+
export const KENDO_CHARTWIZARD = [
|
11
|
+
ChartWizardComponent,
|
12
|
+
ChartWizardGridBindingDirective
|
13
|
+
];
|
@@ -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 './preventable-event';
|
6
|
+
/**
|
7
|
+
* Arguments for the `export` event on the Chart Wizard.
|
8
|
+
*/
|
9
|
+
export class ExportEvent extends PreventableEvent {
|
10
|
+
/**
|
11
|
+
* @hidden
|
12
|
+
*/
|
13
|
+
constructor(chart, exportOptions) {
|
14
|
+
super();
|
15
|
+
this.chart = chart;
|
16
|
+
this.exportOptions = exportOptions;
|
17
|
+
}
|
18
|
+
}
|
@@ -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 { ExportEvent } from './export-event';
|
@@ -0,0 +1,30 @@
|
|
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 class PreventableEvent {
|
9
|
+
constructor() {
|
10
|
+
this.prevented = false;
|
11
|
+
}
|
12
|
+
/**
|
13
|
+
* Prevents the default action for a specified event.
|
14
|
+
* In this way, the source component suppresses
|
15
|
+
* the built-in behavior that follows the event.
|
16
|
+
*/
|
17
|
+
preventDefault() {
|
18
|
+
this.prevented = true;
|
19
|
+
}
|
20
|
+
/**
|
21
|
+
* Returns `true` if the event was prevented
|
22
|
+
* by any of its subscribers.
|
23
|
+
*
|
24
|
+
* @returns `true` if the default action was prevented.
|
25
|
+
* Otherwise, returns `false`.
|
26
|
+
*/
|
27
|
+
isDefaultPrevented() {
|
28
|
+
return this.prevented;
|
29
|
+
}
|
30
|
+
}
|
@@ -0,0 +1,48 @@
|
|
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 { getter } from "@progress/kendo-common";
|
6
|
+
import { isPresent } from "@progress/kendo-angular-common";
|
7
|
+
/**
|
8
|
+
* Maps the Grid selectedKeys to a more general DataRows type to be displayed in the Chart Wizard.
|
9
|
+
*
|
10
|
+
* The selectedKeys can be either row keys or cell keys.
|
11
|
+
*
|
12
|
+
* @returns DataRow array that can be passed to getWizardDataFromDataRows in order to bind the Chart Wizard.
|
13
|
+
*/
|
14
|
+
export function getGridSelectedRows(args) {
|
15
|
+
const { grid, data, selectedKeys, selectionKey, columnKey } = args;
|
16
|
+
const columns = [...grid.leafColumns];
|
17
|
+
const allColumns = columns.map((column) => ({ field: column.field, title: column.title }));
|
18
|
+
const selectedColumns = new Map();
|
19
|
+
let getItemByKey;
|
20
|
+
if (selectionKey) {
|
21
|
+
const idGetter = getter(selectionKey);
|
22
|
+
const dataMap = new Map(data.map((item) => [idGetter(item), item]));
|
23
|
+
getItemByKey = itemKey => dataMap.get(itemKey);
|
24
|
+
}
|
25
|
+
else {
|
26
|
+
getItemByKey = itemIndex => data[itemIndex];
|
27
|
+
}
|
28
|
+
let getColumnByColumnKey = key => columns[key];
|
29
|
+
if (typeof columnKey === "function") {
|
30
|
+
const columnMap = new Map(columns.map((col, colIndex) => [columnKey(col, colIndex), col]));
|
31
|
+
getColumnByColumnKey = key => columnMap.get(key);
|
32
|
+
}
|
33
|
+
selectedKeys.forEach(item => {
|
34
|
+
if (isPresent(item.columnKey)) {
|
35
|
+
const itemColumns = selectedColumns.get(item.itemKey) || [];
|
36
|
+
const column = getColumnByColumnKey(item.columnKey);
|
37
|
+
itemColumns.push({ field: column.field, title: column.title });
|
38
|
+
selectedColumns.set(item.itemKey, itemColumns);
|
39
|
+
}
|
40
|
+
else {
|
41
|
+
selectedColumns.set(item, allColumns);
|
42
|
+
}
|
43
|
+
});
|
44
|
+
return [...selectedColumns.entries()].map(([itemKey, dataColumns]) => ({
|
45
|
+
dataItem: getItemByKey(itemKey),
|
46
|
+
dataColumns
|
47
|
+
}));
|
48
|
+
}
|
@@ -0,0 +1,13 @@
|
|
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 { getWizardDataFromDataRows } from "../common";
|
6
|
+
import { getGridSelectedRows } from "./get-grid-selected-rows";
|
7
|
+
/**
|
8
|
+
* Maps the Grid selectedKeys to data to be displayed in the Chart Wizard.
|
9
|
+
*
|
10
|
+
* Supports both row and cell selection.
|
11
|
+
* @returns collection that can be used as Chart Wizard.
|
12
|
+
*/
|
13
|
+
export const getWizardDataFromGridSelection = (args) => getWizardDataFromDataRows(getGridSelectedRows(args));
|
@@ -0,0 +1,74 @@
|
|
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, HostListener, Inject, Input, Output } from "@angular/core";
|
6
|
+
import { GridComponent } from "@progress/kendo-angular-grid";
|
7
|
+
import { getWizardDataFromGridSelection } from "./get-wizard-data-from-grid-selection";
|
8
|
+
import * as i0 from "@angular/core";
|
9
|
+
import * as i1 from "@progress/kendo-angular-grid";
|
10
|
+
/**
|
11
|
+
* A directive which binds the Chart Wizard from the selection state of the Grid
|
12
|
+
* ([see example](slug:integration_with_chart).
|
13
|
+
*/
|
14
|
+
export class ChartWizardGridBindingDirective {
|
15
|
+
constructor(grid) {
|
16
|
+
this.grid = grid;
|
17
|
+
/**
|
18
|
+
* Defines the collection that will store the Chart Wizard data.
|
19
|
+
*
|
20
|
+
* @default []
|
21
|
+
*/
|
22
|
+
this.chartWizardData = [];
|
23
|
+
/**
|
24
|
+
* Fires when the `chartWizardData` collection has been updated.
|
25
|
+
*/
|
26
|
+
this.chartWizardDataChange = new EventEmitter();
|
27
|
+
}
|
28
|
+
ngOnInit() {
|
29
|
+
if (!this.selectionKey || !this.data) {
|
30
|
+
throw new Error('The [kendoChartWizardGridBinding] directive requires that [kendoGridBinding] and [kendoGridSelectBy] are set. ' +
|
31
|
+
'See the Grid documentation for an example on how to use the Chart Wizard without the directive.');
|
32
|
+
}
|
33
|
+
if (typeof this.selectionKey === 'function') {
|
34
|
+
throw new Error('The [kendoChartWizardGridBinding] directive supports only strings as [kendoGridSelectBy] selection key.');
|
35
|
+
}
|
36
|
+
}
|
37
|
+
onSelectionChange(selectedKeys) {
|
38
|
+
this.chartWizardData = getWizardDataFromGridSelection({
|
39
|
+
grid: this.grid,
|
40
|
+
data: this.data,
|
41
|
+
selectedKeys,
|
42
|
+
selectionKey: this.selectionKey
|
43
|
+
});
|
44
|
+
this.chartWizardDataChange.emit(this.chartWizardData);
|
45
|
+
}
|
46
|
+
}
|
47
|
+
ChartWizardGridBindingDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ChartWizardGridBindingDirective, deps: [{ token: GridComponent }], target: i0.ɵɵFactoryTarget.Directive });
|
48
|
+
ChartWizardGridBindingDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: ChartWizardGridBindingDirective, isStandalone: true, selector: "[kendoChartWizardGridBinding]", inputs: { chartWizardData: "chartWizardData", data: ["kendoGridBinding", "data"], selectionKey: ["kendoGridSelectBy", "selectionKey"], columnKey: "columnKey" }, outputs: { chartWizardDataChange: "chartWizardDataChange" }, host: { listeners: { "selectedKeysChange": "onSelectionChange($event)" } }, exportAs: ["kendoChartWizardGridBinding"], ngImport: i0 });
|
49
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ChartWizardGridBindingDirective, decorators: [{
|
50
|
+
type: Directive,
|
51
|
+
args: [{
|
52
|
+
selector: '[kendoChartWizardGridBinding]',
|
53
|
+
exportAs: 'kendoChartWizardGridBinding',
|
54
|
+
standalone: true
|
55
|
+
}]
|
56
|
+
}], ctorParameters: function () { return [{ type: i1.GridComponent, decorators: [{
|
57
|
+
type: Inject,
|
58
|
+
args: [GridComponent]
|
59
|
+
}] }]; }, propDecorators: { chartWizardData: [{
|
60
|
+
type: Input
|
61
|
+
}], chartWizardDataChange: [{
|
62
|
+
type: Output
|
63
|
+
}], data: [{
|
64
|
+
type: Input,
|
65
|
+
args: ['kendoGridBinding']
|
66
|
+
}], selectionKey: [{
|
67
|
+
type: Input,
|
68
|
+
args: ['kendoGridSelectBy']
|
69
|
+
}], columnKey: [{
|
70
|
+
type: Input
|
71
|
+
}], onSelectionChange: [{
|
72
|
+
type: HostListener,
|
73
|
+
args: ['selectedKeysChange', ['$event']]
|
74
|
+
}] } });
|
@@ -0,0 +1,7 @@
|
|
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 { getGridSelectedRows } from './get-grid-selected-rows';
|
6
|
+
export { getWizardDataFromGridSelection } from './get-wizard-data-from-grid-selection';
|
7
|
+
export { ChartWizardGridBindingDirective } from './grid-chart-wizard.directive';
|
@@ -0,0 +1,11 @@
|
|
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 * from './chart-wizard.component';
|
6
|
+
export * from './chart-wizard.module';
|
7
|
+
export * from './grid-integration';
|
8
|
+
export * from './common';
|
9
|
+
export * from './events';
|
10
|
+
export { ChartWizardModule } from './chart-wizard.module';
|
11
|
+
export { KENDO_CHARTWIZARD } from './directives';
|
@@ -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
|
+
* @hidden
|
7
|
+
*/
|
8
|
+
export const packageMetadata = {
|
9
|
+
name: '@progress/kendo-angular-chart-wizard',
|
10
|
+
productName: 'Kendo UI for Angular',
|
11
|
+
productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
|
12
|
+
publishDate: 1722607228,
|
13
|
+
version: '16.6.0-develop.10',
|
14
|
+
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning',
|
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
|
+
/**
|
6
|
+
* Generated bundle index. Do not edit.
|
7
|
+
*/
|
8
|
+
export * from './index';
|
@@ -0,0 +1,257 @@
|
|
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, ChangeDetectorRef, Component } from '@angular/core';
|
6
|
+
import { chartBarClusteredIcon, chartBarStacked100Icon, chartBarStackedIcon, chartColumnClusteredIcon, chartColumnStacked100Icon, chartColumnStackedIcon, chartLineIcon, chartLineStacked100Icon, chartLineStackedIcon, chartPieIcon, chartScatterIcon, exportIcon } from '@progress/kendo-svg-icons';
|
7
|
+
import { StateService } from '../state.service';
|
8
|
+
import { ExpansionPanelComponent } from '@progress/kendo-angular-layout';
|
9
|
+
import { ChartWizardSeriesTypeButtonComponent } from '../series-type-button.component';
|
10
|
+
import { LocalizationService } from '@progress/kendo-angular-l10n';
|
11
|
+
import * as i0 from "@angular/core";
|
12
|
+
import * as i1 from "../state.service";
|
13
|
+
import * as i2 from "@progress/kendo-angular-l10n";
|
14
|
+
/**
|
15
|
+
* @hidden
|
16
|
+
*/
|
17
|
+
export class ChartWizardPropertyPaneChartTabComponent {
|
18
|
+
constructor(stateService, cdr, localization) {
|
19
|
+
this.stateService = stateService;
|
20
|
+
this.cdr = cdr;
|
21
|
+
this.localization = localization;
|
22
|
+
this.exportIcon = exportIcon;
|
23
|
+
this.chartBarClusteredIcon = chartBarClusteredIcon;
|
24
|
+
this.chartBarStackedIcon = chartBarStackedIcon;
|
25
|
+
this.chartBarStacked100Icon = chartBarStacked100Icon;
|
26
|
+
this.chartPieIcon = chartPieIcon;
|
27
|
+
this.chartColumnClusteredIcon = chartColumnClusteredIcon;
|
28
|
+
this.chartColumnStackedIcon = chartColumnStackedIcon;
|
29
|
+
this.chartColumnStacked100Icon = chartColumnStacked100Icon;
|
30
|
+
this.chartLineIcon = chartLineIcon;
|
31
|
+
this.chartLineStackedIcon = chartLineStackedIcon;
|
32
|
+
this.chartLineStacked100Icon = chartLineStacked100Icon;
|
33
|
+
this.chartScatterIcon = chartScatterIcon;
|
34
|
+
}
|
35
|
+
isExpanded(type) {
|
36
|
+
return this.stateService.state.seriesType === type;
|
37
|
+
}
|
38
|
+
ngAfterViewChecked() {
|
39
|
+
this.localization.changes.subscribe(() => {
|
40
|
+
this.detectChanges();
|
41
|
+
});
|
42
|
+
}
|
43
|
+
ngOnDestroy() {
|
44
|
+
this.localization.changes.unsubscribe();
|
45
|
+
}
|
46
|
+
detectChanges() {
|
47
|
+
this.cdr.detectChanges();
|
48
|
+
}
|
49
|
+
}
|
50
|
+
ChartWizardPropertyPaneChartTabComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ChartWizardPropertyPaneChartTabComponent, deps: [{ token: i1.StateService }, { token: i0.ChangeDetectorRef }, { token: i2.LocalizationService }], target: i0.ɵɵFactoryTarget.Component });
|
51
|
+
ChartWizardPropertyPaneChartTabComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: ChartWizardPropertyPaneChartTabComponent, isStandalone: true, selector: "kendo-chart-wizard-property-pane-chart-tab", ngImport: i0, template: `
|
52
|
+
<kendo-expansionpanel title="Bar Chart" [expanded]="isExpanded('bar')">
|
53
|
+
<div class="k-chart-types-wrapper">
|
54
|
+
<kendo-chart-wizard-series-type-button
|
55
|
+
title="Bar"
|
56
|
+
[chartTypeIcon]="chartBarClusteredIcon"
|
57
|
+
seriesType="bar"
|
58
|
+
[stack]="false"
|
59
|
+
>
|
60
|
+
</kendo-chart-wizard-series-type-button>
|
61
|
+
<kendo-chart-wizard-series-type-button
|
62
|
+
title="Stacked Bar"
|
63
|
+
[chartTypeIcon]="chartBarStackedIcon"
|
64
|
+
seriesType="bar"
|
65
|
+
[stack]="true"
|
66
|
+
>
|
67
|
+
</kendo-chart-wizard-series-type-button>
|
68
|
+
<kendo-chart-wizard-series-type-button
|
69
|
+
title="100% Stacked Bar"
|
70
|
+
[chartTypeIcon]="chartBarStacked100Icon"
|
71
|
+
seriesType="bar"
|
72
|
+
[stack]="{ type: '100%' }"
|
73
|
+
>
|
74
|
+
</kendo-chart-wizard-series-type-button>
|
75
|
+
</div>
|
76
|
+
</kendo-expansionpanel>
|
77
|
+
<kendo-expansionpanel title="Pie Chart" [expanded]="isExpanded('pie')">
|
78
|
+
<div class="k-chart-types-wrapper">
|
79
|
+
<kendo-chart-wizard-series-type-button
|
80
|
+
title="Pie"
|
81
|
+
[chartTypeIcon]="chartPieIcon"
|
82
|
+
seriesType="pie"
|
83
|
+
[stack]="undefined"
|
84
|
+
>
|
85
|
+
</kendo-chart-wizard-series-type-button>
|
86
|
+
</div>
|
87
|
+
</kendo-expansionpanel>
|
88
|
+
<kendo-expansionpanel title="Column Chart" [expanded]="isExpanded('column')">
|
89
|
+
<div class="k-chart-types-wrapper">
|
90
|
+
<kendo-chart-wizard-series-type-button
|
91
|
+
title="Column"
|
92
|
+
[chartTypeIcon]="chartColumnClusteredIcon"
|
93
|
+
seriesType="column"
|
94
|
+
[stack]="false"
|
95
|
+
>
|
96
|
+
</kendo-chart-wizard-series-type-button>
|
97
|
+
<kendo-chart-wizard-series-type-button
|
98
|
+
title="Stacked Column"
|
99
|
+
[chartTypeIcon]="chartColumnStackedIcon"
|
100
|
+
seriesType="column"
|
101
|
+
[stack]="true"
|
102
|
+
>
|
103
|
+
</kendo-chart-wizard-series-type-button>
|
104
|
+
<kendo-chart-wizard-series-type-button
|
105
|
+
title="100% Stacked Column"
|
106
|
+
[chartTypeIcon]="chartColumnStacked100Icon"
|
107
|
+
seriesType="column"
|
108
|
+
[stack]="{ type: '100%' }"
|
109
|
+
>
|
110
|
+
</kendo-chart-wizard-series-type-button>
|
111
|
+
</div>
|
112
|
+
</kendo-expansionpanel>
|
113
|
+
<kendo-expansionpanel title="Line Chart" [expanded]="isExpanded('line')">
|
114
|
+
<div class="k-chart-types-wrapper">
|
115
|
+
<kendo-chart-wizard-series-type-button
|
116
|
+
title="Line"
|
117
|
+
[chartTypeIcon]="chartLineIcon"
|
118
|
+
seriesType="line"
|
119
|
+
[stack]="false"
|
120
|
+
>
|
121
|
+
</kendo-chart-wizard-series-type-button>
|
122
|
+
<kendo-chart-wizard-series-type-button
|
123
|
+
title="Stacked Line"
|
124
|
+
[chartTypeIcon]="chartLineStackedIcon"
|
125
|
+
seriesType="line"
|
126
|
+
[stack]="true"
|
127
|
+
>
|
128
|
+
</kendo-chart-wizard-series-type-button>
|
129
|
+
<kendo-chart-wizard-series-type-button
|
130
|
+
title="100% Line Column"
|
131
|
+
[chartTypeIcon]="chartLineStacked100Icon"
|
132
|
+
seriesType="line"
|
133
|
+
[stack]="{ type: '100%' }"
|
134
|
+
>
|
135
|
+
</kendo-chart-wizard-series-type-button>
|
136
|
+
</div>
|
137
|
+
</kendo-expansionpanel>
|
138
|
+
<kendo-expansionpanel title="Scatter Chart" [expanded]="isExpanded('scatter')">
|
139
|
+
<div class="k-chart-types-wrapper">
|
140
|
+
<kendo-chart-wizard-series-type-button
|
141
|
+
title="Scatter"
|
142
|
+
[chartTypeIcon]="chartScatterIcon"
|
143
|
+
seriesType="scatter"
|
144
|
+
[stack]="false"
|
145
|
+
>
|
146
|
+
</kendo-chart-wizard-series-type-button>
|
147
|
+
</div>
|
148
|
+
</kendo-expansionpanel>
|
149
|
+
`, isInline: true, dependencies: [{ kind: "component", type: ExpansionPanelComponent, selector: "kendo-expansionpanel", inputs: ["title", "subtitle", "disabled", "expanded", "svgExpandIcon", "svgCollapseIcon", "expandIcon", "collapseIcon", "animation"], outputs: ["expandedChange", "action", "expand", "collapse"], exportAs: ["kendoExpansionPanel"] }, { kind: "component", type: ChartWizardSeriesTypeButtonComponent, selector: "kendo-chart-wizard-series-type-button", inputs: ["title", "chartTypeIcon", "stack", "seriesType"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
150
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ChartWizardPropertyPaneChartTabComponent, decorators: [{
|
151
|
+
type: Component,
|
152
|
+
args: [{
|
153
|
+
selector: 'kendo-chart-wizard-property-pane-chart-tab',
|
154
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
155
|
+
template: `
|
156
|
+
<kendo-expansionpanel title="Bar Chart" [expanded]="isExpanded('bar')">
|
157
|
+
<div class="k-chart-types-wrapper">
|
158
|
+
<kendo-chart-wizard-series-type-button
|
159
|
+
title="Bar"
|
160
|
+
[chartTypeIcon]="chartBarClusteredIcon"
|
161
|
+
seriesType="bar"
|
162
|
+
[stack]="false"
|
163
|
+
>
|
164
|
+
</kendo-chart-wizard-series-type-button>
|
165
|
+
<kendo-chart-wizard-series-type-button
|
166
|
+
title="Stacked Bar"
|
167
|
+
[chartTypeIcon]="chartBarStackedIcon"
|
168
|
+
seriesType="bar"
|
169
|
+
[stack]="true"
|
170
|
+
>
|
171
|
+
</kendo-chart-wizard-series-type-button>
|
172
|
+
<kendo-chart-wizard-series-type-button
|
173
|
+
title="100% Stacked Bar"
|
174
|
+
[chartTypeIcon]="chartBarStacked100Icon"
|
175
|
+
seriesType="bar"
|
176
|
+
[stack]="{ type: '100%' }"
|
177
|
+
>
|
178
|
+
</kendo-chart-wizard-series-type-button>
|
179
|
+
</div>
|
180
|
+
</kendo-expansionpanel>
|
181
|
+
<kendo-expansionpanel title="Pie Chart" [expanded]="isExpanded('pie')">
|
182
|
+
<div class="k-chart-types-wrapper">
|
183
|
+
<kendo-chart-wizard-series-type-button
|
184
|
+
title="Pie"
|
185
|
+
[chartTypeIcon]="chartPieIcon"
|
186
|
+
seriesType="pie"
|
187
|
+
[stack]="undefined"
|
188
|
+
>
|
189
|
+
</kendo-chart-wizard-series-type-button>
|
190
|
+
</div>
|
191
|
+
</kendo-expansionpanel>
|
192
|
+
<kendo-expansionpanel title="Column Chart" [expanded]="isExpanded('column')">
|
193
|
+
<div class="k-chart-types-wrapper">
|
194
|
+
<kendo-chart-wizard-series-type-button
|
195
|
+
title="Column"
|
196
|
+
[chartTypeIcon]="chartColumnClusteredIcon"
|
197
|
+
seriesType="column"
|
198
|
+
[stack]="false"
|
199
|
+
>
|
200
|
+
</kendo-chart-wizard-series-type-button>
|
201
|
+
<kendo-chart-wizard-series-type-button
|
202
|
+
title="Stacked Column"
|
203
|
+
[chartTypeIcon]="chartColumnStackedIcon"
|
204
|
+
seriesType="column"
|
205
|
+
[stack]="true"
|
206
|
+
>
|
207
|
+
</kendo-chart-wizard-series-type-button>
|
208
|
+
<kendo-chart-wizard-series-type-button
|
209
|
+
title="100% Stacked Column"
|
210
|
+
[chartTypeIcon]="chartColumnStacked100Icon"
|
211
|
+
seriesType="column"
|
212
|
+
[stack]="{ type: '100%' }"
|
213
|
+
>
|
214
|
+
</kendo-chart-wizard-series-type-button>
|
215
|
+
</div>
|
216
|
+
</kendo-expansionpanel>
|
217
|
+
<kendo-expansionpanel title="Line Chart" [expanded]="isExpanded('line')">
|
218
|
+
<div class="k-chart-types-wrapper">
|
219
|
+
<kendo-chart-wizard-series-type-button
|
220
|
+
title="Line"
|
221
|
+
[chartTypeIcon]="chartLineIcon"
|
222
|
+
seriesType="line"
|
223
|
+
[stack]="false"
|
224
|
+
>
|
225
|
+
</kendo-chart-wizard-series-type-button>
|
226
|
+
<kendo-chart-wizard-series-type-button
|
227
|
+
title="Stacked Line"
|
228
|
+
[chartTypeIcon]="chartLineStackedIcon"
|
229
|
+
seriesType="line"
|
230
|
+
[stack]="true"
|
231
|
+
>
|
232
|
+
</kendo-chart-wizard-series-type-button>
|
233
|
+
<kendo-chart-wizard-series-type-button
|
234
|
+
title="100% Line Column"
|
235
|
+
[chartTypeIcon]="chartLineStacked100Icon"
|
236
|
+
seriesType="line"
|
237
|
+
[stack]="{ type: '100%' }"
|
238
|
+
>
|
239
|
+
</kendo-chart-wizard-series-type-button>
|
240
|
+
</div>
|
241
|
+
</kendo-expansionpanel>
|
242
|
+
<kendo-expansionpanel title="Scatter Chart" [expanded]="isExpanded('scatter')">
|
243
|
+
<div class="k-chart-types-wrapper">
|
244
|
+
<kendo-chart-wizard-series-type-button
|
245
|
+
title="Scatter"
|
246
|
+
[chartTypeIcon]="chartScatterIcon"
|
247
|
+
seriesType="scatter"
|
248
|
+
[stack]="false"
|
249
|
+
>
|
250
|
+
</kendo-chart-wizard-series-type-button>
|
251
|
+
</div>
|
252
|
+
</kendo-expansionpanel>
|
253
|
+
`,
|
254
|
+
standalone: true,
|
255
|
+
imports: [ExpansionPanelComponent, ChartWizardSeriesTypeButtonComponent]
|
256
|
+
}]
|
257
|
+
}], ctorParameters: function () { return [{ type: i1.StateService }, { type: i0.ChangeDetectorRef }, { type: i2.LocalizationService }]; } });
|