@progress/kendo-angular-chart-wizard 21.4.1-develop.1 → 22.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/fesm2022/progress-kendo-angular-chart-wizard.mjs +44 -44
- package/localization/messages.d.ts +1 -1
- package/package.json +21 -29
- package/esm2022/chart-wizard-state.mjs +0 -57
- package/esm2022/chart-wizard.component.mjs +0 -1237
- package/esm2022/chart-wizard.module.mjs +0 -67
- package/esm2022/common/get-wizard-data-from-data-rows.mjs +0 -6
- package/esm2022/common/index.mjs +0 -5
- package/esm2022/common/models.mjs +0 -24
- package/esm2022/common/window-settings.mjs +0 -5
- package/esm2022/directives.mjs +0 -34
- package/esm2022/events/export-event.mjs +0 -37
- package/esm2022/events/index.mjs +0 -5
- package/esm2022/events/preventable-event.mjs +0 -28
- package/esm2022/grid-integration/get-grid-selected-rows.mjs +0 -50
- package/esm2022/grid-integration/get-wizard-data-from-grid-selection.mjs +0 -13
- package/esm2022/grid-integration/grid-chart-wizard.directive.mjs +0 -95
- package/esm2022/grid-integration/index.mjs +0 -7
- package/esm2022/index.mjs +0 -12
- package/esm2022/localization/chartwizard-localization.service.mjs +0 -31
- package/esm2022/localization/custom-messages.component.mjs +0 -52
- package/esm2022/localization/localized-messages.directive.mjs +0 -39
- package/esm2022/localization/messages.mjs +0 -657
- package/esm2022/package-metadata.mjs +0 -16
- package/esm2022/progress-kendo-angular-chart-wizard.mjs +0 -8
- package/esm2022/property-pane/chart-tab.component.mjs +0 -260
- package/esm2022/property-pane/data-tab.component.mjs +0 -270
- package/esm2022/property-pane/form-field.component.mjs +0 -296
- package/esm2022/property-pane/format-tab.component.mjs +0 -1032
- package/esm2022/series-type-button.component.mjs +0 -71
- package/esm2022/state.service.mjs +0 -36
|
@@ -1,260 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2026 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 { ChartWizardLocalizationService } from '../localization/chartwizard-localization.service';
|
|
11
|
-
import * as i0 from "@angular/core";
|
|
12
|
-
import * as i1 from "../state.service";
|
|
13
|
-
import * as i2 from "../localization/chartwizard-localization.service";
|
|
14
|
-
/**
|
|
15
|
-
* @hidden
|
|
16
|
-
*/
|
|
17
|
-
export class ChartWizardPropertyPaneChartTabComponent {
|
|
18
|
-
stateService;
|
|
19
|
-
cdr;
|
|
20
|
-
localization;
|
|
21
|
-
exportIcon = exportIcon;
|
|
22
|
-
chartBarClusteredIcon = chartBarClusteredIcon;
|
|
23
|
-
chartBarStackedIcon = chartBarStackedIcon;
|
|
24
|
-
chartBarStacked100Icon = chartBarStacked100Icon;
|
|
25
|
-
chartPieIcon = chartPieIcon;
|
|
26
|
-
chartColumnClusteredIcon = chartColumnClusteredIcon;
|
|
27
|
-
chartColumnStackedIcon = chartColumnStackedIcon;
|
|
28
|
-
chartColumnStacked100Icon = chartColumnStacked100Icon;
|
|
29
|
-
chartLineIcon = chartLineIcon;
|
|
30
|
-
chartLineStackedIcon = chartLineStackedIcon;
|
|
31
|
-
chartLineStacked100Icon = chartLineStacked100Icon;
|
|
32
|
-
chartScatterIcon = chartScatterIcon;
|
|
33
|
-
constructor(stateService, cdr, localization) {
|
|
34
|
-
this.stateService = stateService;
|
|
35
|
-
this.cdr = cdr;
|
|
36
|
-
this.localization = localization;
|
|
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
|
-
messageFor(key) {
|
|
50
|
-
return this.localization.get(key);
|
|
51
|
-
}
|
|
52
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ChartWizardPropertyPaneChartTabComponent, deps: [{ token: i1.StateService }, { token: i0.ChangeDetectorRef }, { token: i2.ChartWizardLocalizationService }], target: i0.ɵɵFactoryTarget.Component });
|
|
53
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.14", type: ChartWizardPropertyPaneChartTabComponent, isStandalone: true, selector: "kendo-chartwizard-property-pane-chart-tab", ngImport: i0, template: `
|
|
54
|
-
<kendo-expansionpanel [title]="messageFor('barChart')" [expanded]="true">
|
|
55
|
-
<div class="k-chart-types-wrapper">
|
|
56
|
-
<kendo-chartwizard-series-type-button
|
|
57
|
-
[title]="messageFor('barChartBar')"
|
|
58
|
-
[chartTypeIcon]="chartBarClusteredIcon"
|
|
59
|
-
seriesType="bar"
|
|
60
|
-
[stack]="false"
|
|
61
|
-
>
|
|
62
|
-
</kendo-chartwizard-series-type-button>
|
|
63
|
-
<kendo-chartwizard-series-type-button
|
|
64
|
-
[title]="messageFor('barChartStackedBar')"
|
|
65
|
-
[chartTypeIcon]="chartBarStackedIcon"
|
|
66
|
-
seriesType="bar"
|
|
67
|
-
[stack]="true"
|
|
68
|
-
>
|
|
69
|
-
</kendo-chartwizard-series-type-button>
|
|
70
|
-
<kendo-chartwizard-series-type-button
|
|
71
|
-
[title]="messageFor('barChart100StackedBar')"
|
|
72
|
-
[chartTypeIcon]="chartBarStacked100Icon"
|
|
73
|
-
seriesType="bar"
|
|
74
|
-
[stack]="{ type: '100%' }"
|
|
75
|
-
>
|
|
76
|
-
</kendo-chartwizard-series-type-button>
|
|
77
|
-
</div>
|
|
78
|
-
</kendo-expansionpanel>
|
|
79
|
-
<kendo-expansionpanel [title]="messageFor('pieChart')" [expanded]="true">
|
|
80
|
-
<div class="k-chart-types-wrapper">
|
|
81
|
-
<kendo-chartwizard-series-type-button
|
|
82
|
-
[title]="messageFor('pieChartPie')"
|
|
83
|
-
[chartTypeIcon]="chartPieIcon"
|
|
84
|
-
seriesType="pie"
|
|
85
|
-
[stack]="undefined"
|
|
86
|
-
>
|
|
87
|
-
</kendo-chartwizard-series-type-button>
|
|
88
|
-
</div>
|
|
89
|
-
</kendo-expansionpanel>
|
|
90
|
-
<kendo-expansionpanel [title]="messageFor('columnChart')" [expanded]="true">
|
|
91
|
-
<div class="k-chart-types-wrapper">
|
|
92
|
-
<kendo-chartwizard-series-type-button
|
|
93
|
-
[title]="messageFor('columnChartColumn')"
|
|
94
|
-
[chartTypeIcon]="chartColumnClusteredIcon"
|
|
95
|
-
seriesType="column"
|
|
96
|
-
[stack]="false"
|
|
97
|
-
>
|
|
98
|
-
</kendo-chartwizard-series-type-button>
|
|
99
|
-
<kendo-chartwizard-series-type-button
|
|
100
|
-
[title]="messageFor('columnChartStackedColumn')"
|
|
101
|
-
[chartTypeIcon]="chartColumnStackedIcon"
|
|
102
|
-
seriesType="column"
|
|
103
|
-
[stack]="true"
|
|
104
|
-
>
|
|
105
|
-
</kendo-chartwizard-series-type-button>
|
|
106
|
-
<kendo-chartwizard-series-type-button
|
|
107
|
-
[title]="messageFor('columnChart100StackedColumn')"
|
|
108
|
-
[chartTypeIcon]="chartColumnStacked100Icon"
|
|
109
|
-
seriesType="column"
|
|
110
|
-
[stack]="{ type: '100%' }"
|
|
111
|
-
>
|
|
112
|
-
</kendo-chartwizard-series-type-button>
|
|
113
|
-
</div>
|
|
114
|
-
</kendo-expansionpanel>
|
|
115
|
-
<kendo-expansionpanel [title]="messageFor('lineChart')" [expanded]="true">
|
|
116
|
-
<div class="k-chart-types-wrapper">
|
|
117
|
-
<kendo-chartwizard-series-type-button
|
|
118
|
-
[title]="messageFor('lineChartLine')"
|
|
119
|
-
[chartTypeIcon]="chartLineIcon"
|
|
120
|
-
seriesType="line"
|
|
121
|
-
[stack]="false"
|
|
122
|
-
>
|
|
123
|
-
</kendo-chartwizard-series-type-button>
|
|
124
|
-
<kendo-chartwizard-series-type-button
|
|
125
|
-
[title]="messageFor('lineChartStackedLine')"
|
|
126
|
-
[chartTypeIcon]="chartLineStackedIcon"
|
|
127
|
-
seriesType="line"
|
|
128
|
-
[stack]="true"
|
|
129
|
-
>
|
|
130
|
-
</kendo-chartwizard-series-type-button>
|
|
131
|
-
<kendo-chartwizard-series-type-button
|
|
132
|
-
[title]="messageFor('lineChart100StackedLine')"
|
|
133
|
-
[chartTypeIcon]="chartLineStacked100Icon"
|
|
134
|
-
seriesType="line"
|
|
135
|
-
[stack]="{ type: '100%' }"
|
|
136
|
-
>
|
|
137
|
-
</kendo-chartwizard-series-type-button>
|
|
138
|
-
</div>
|
|
139
|
-
</kendo-expansionpanel>
|
|
140
|
-
<kendo-expansionpanel [title]="messageFor('scatterChart')" [expanded]="true">
|
|
141
|
-
<div class="k-chart-types-wrapper">
|
|
142
|
-
<kendo-chartwizard-series-type-button
|
|
143
|
-
[title]="messageFor('scatterChartScatter')"
|
|
144
|
-
[chartTypeIcon]="chartScatterIcon"
|
|
145
|
-
seriesType="scatter"
|
|
146
|
-
[stack]="false"
|
|
147
|
-
>
|
|
148
|
-
</kendo-chartwizard-series-type-button>
|
|
149
|
-
</div>
|
|
150
|
-
</kendo-expansionpanel>
|
|
151
|
-
`, 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-chartwizard-series-type-button", inputs: ["title", "chartTypeIcon", "stack", "seriesType"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
152
|
-
}
|
|
153
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ChartWizardPropertyPaneChartTabComponent, decorators: [{
|
|
154
|
-
type: Component,
|
|
155
|
-
args: [{
|
|
156
|
-
selector: 'kendo-chartwizard-property-pane-chart-tab',
|
|
157
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
158
|
-
template: `
|
|
159
|
-
<kendo-expansionpanel [title]="messageFor('barChart')" [expanded]="true">
|
|
160
|
-
<div class="k-chart-types-wrapper">
|
|
161
|
-
<kendo-chartwizard-series-type-button
|
|
162
|
-
[title]="messageFor('barChartBar')"
|
|
163
|
-
[chartTypeIcon]="chartBarClusteredIcon"
|
|
164
|
-
seriesType="bar"
|
|
165
|
-
[stack]="false"
|
|
166
|
-
>
|
|
167
|
-
</kendo-chartwizard-series-type-button>
|
|
168
|
-
<kendo-chartwizard-series-type-button
|
|
169
|
-
[title]="messageFor('barChartStackedBar')"
|
|
170
|
-
[chartTypeIcon]="chartBarStackedIcon"
|
|
171
|
-
seriesType="bar"
|
|
172
|
-
[stack]="true"
|
|
173
|
-
>
|
|
174
|
-
</kendo-chartwizard-series-type-button>
|
|
175
|
-
<kendo-chartwizard-series-type-button
|
|
176
|
-
[title]="messageFor('barChart100StackedBar')"
|
|
177
|
-
[chartTypeIcon]="chartBarStacked100Icon"
|
|
178
|
-
seriesType="bar"
|
|
179
|
-
[stack]="{ type: '100%' }"
|
|
180
|
-
>
|
|
181
|
-
</kendo-chartwizard-series-type-button>
|
|
182
|
-
</div>
|
|
183
|
-
</kendo-expansionpanel>
|
|
184
|
-
<kendo-expansionpanel [title]="messageFor('pieChart')" [expanded]="true">
|
|
185
|
-
<div class="k-chart-types-wrapper">
|
|
186
|
-
<kendo-chartwizard-series-type-button
|
|
187
|
-
[title]="messageFor('pieChartPie')"
|
|
188
|
-
[chartTypeIcon]="chartPieIcon"
|
|
189
|
-
seriesType="pie"
|
|
190
|
-
[stack]="undefined"
|
|
191
|
-
>
|
|
192
|
-
</kendo-chartwizard-series-type-button>
|
|
193
|
-
</div>
|
|
194
|
-
</kendo-expansionpanel>
|
|
195
|
-
<kendo-expansionpanel [title]="messageFor('columnChart')" [expanded]="true">
|
|
196
|
-
<div class="k-chart-types-wrapper">
|
|
197
|
-
<kendo-chartwizard-series-type-button
|
|
198
|
-
[title]="messageFor('columnChartColumn')"
|
|
199
|
-
[chartTypeIcon]="chartColumnClusteredIcon"
|
|
200
|
-
seriesType="column"
|
|
201
|
-
[stack]="false"
|
|
202
|
-
>
|
|
203
|
-
</kendo-chartwizard-series-type-button>
|
|
204
|
-
<kendo-chartwizard-series-type-button
|
|
205
|
-
[title]="messageFor('columnChartStackedColumn')"
|
|
206
|
-
[chartTypeIcon]="chartColumnStackedIcon"
|
|
207
|
-
seriesType="column"
|
|
208
|
-
[stack]="true"
|
|
209
|
-
>
|
|
210
|
-
</kendo-chartwizard-series-type-button>
|
|
211
|
-
<kendo-chartwizard-series-type-button
|
|
212
|
-
[title]="messageFor('columnChart100StackedColumn')"
|
|
213
|
-
[chartTypeIcon]="chartColumnStacked100Icon"
|
|
214
|
-
seriesType="column"
|
|
215
|
-
[stack]="{ type: '100%' }"
|
|
216
|
-
>
|
|
217
|
-
</kendo-chartwizard-series-type-button>
|
|
218
|
-
</div>
|
|
219
|
-
</kendo-expansionpanel>
|
|
220
|
-
<kendo-expansionpanel [title]="messageFor('lineChart')" [expanded]="true">
|
|
221
|
-
<div class="k-chart-types-wrapper">
|
|
222
|
-
<kendo-chartwizard-series-type-button
|
|
223
|
-
[title]="messageFor('lineChartLine')"
|
|
224
|
-
[chartTypeIcon]="chartLineIcon"
|
|
225
|
-
seriesType="line"
|
|
226
|
-
[stack]="false"
|
|
227
|
-
>
|
|
228
|
-
</kendo-chartwizard-series-type-button>
|
|
229
|
-
<kendo-chartwizard-series-type-button
|
|
230
|
-
[title]="messageFor('lineChartStackedLine')"
|
|
231
|
-
[chartTypeIcon]="chartLineStackedIcon"
|
|
232
|
-
seriesType="line"
|
|
233
|
-
[stack]="true"
|
|
234
|
-
>
|
|
235
|
-
</kendo-chartwizard-series-type-button>
|
|
236
|
-
<kendo-chartwizard-series-type-button
|
|
237
|
-
[title]="messageFor('lineChart100StackedLine')"
|
|
238
|
-
[chartTypeIcon]="chartLineStacked100Icon"
|
|
239
|
-
seriesType="line"
|
|
240
|
-
[stack]="{ type: '100%' }"
|
|
241
|
-
>
|
|
242
|
-
</kendo-chartwizard-series-type-button>
|
|
243
|
-
</div>
|
|
244
|
-
</kendo-expansionpanel>
|
|
245
|
-
<kendo-expansionpanel [title]="messageFor('scatterChart')" [expanded]="true">
|
|
246
|
-
<div class="k-chart-types-wrapper">
|
|
247
|
-
<kendo-chartwizard-series-type-button
|
|
248
|
-
[title]="messageFor('scatterChartScatter')"
|
|
249
|
-
[chartTypeIcon]="chartScatterIcon"
|
|
250
|
-
seriesType="scatter"
|
|
251
|
-
[stack]="false"
|
|
252
|
-
>
|
|
253
|
-
</kendo-chartwizard-series-type-button>
|
|
254
|
-
</div>
|
|
255
|
-
</kendo-expansionpanel>
|
|
256
|
-
`,
|
|
257
|
-
standalone: true,
|
|
258
|
-
imports: [ExpansionPanelComponent, ChartWizardSeriesTypeButtonComponent]
|
|
259
|
-
}]
|
|
260
|
-
}], ctorParameters: () => [{ type: i1.StateService }, { type: i0.ChangeDetectorRef }, { type: i2.ChartWizardLocalizationService }] });
|
|
@@ -1,270 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2026 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, Renderer2, ViewChild, ViewEncapsulation } from '@angular/core';
|
|
6
|
-
import { StateService } from '../state.service';
|
|
7
|
-
import { ActionTypes, isCategorical, updateState } from '../chart-wizard-state';
|
|
8
|
-
import { FormBuilder } from '@angular/forms';
|
|
9
|
-
import { CellTemplateDirective, ColumnComponent, CommandColumnComponent, DataBindingDirective, GridComponent, GridToolbarFocusableDirective, ReactiveEditingDirective, RemoveCommandDirective, RowReorderColumnComponent, ToolbarTemplateDirective } from '@progress/kendo-angular-grid';
|
|
10
|
-
import { plusIcon, trashIcon } from '@progress/kendo-svg-icons';
|
|
11
|
-
import { ExpansionPanelComponent } from '@progress/kendo-angular-layout';
|
|
12
|
-
import { DropDownListComponent } from '@progress/kendo-angular-dropdowns';
|
|
13
|
-
import { ButtonComponent } from '@progress/kendo-angular-buttons';
|
|
14
|
-
import { ChartWizardLocalizationService } from '../localization/chartwizard-localization.service';
|
|
15
|
-
import * as i0 from "@angular/core";
|
|
16
|
-
import * as i1 from "../state.service";
|
|
17
|
-
import * as i2 from "@angular/forms";
|
|
18
|
-
import * as i3 from "../localization/chartwizard-localization.service";
|
|
19
|
-
/**
|
|
20
|
-
* @hidden
|
|
21
|
-
*/
|
|
22
|
-
export class ChartWizardPropertyPaneDataTabComponent {
|
|
23
|
-
stateService;
|
|
24
|
-
formBuilder;
|
|
25
|
-
cdr;
|
|
26
|
-
renderer;
|
|
27
|
-
localization;
|
|
28
|
-
categoryAxisX = ActionTypes.categoryAxisX;
|
|
29
|
-
valueAxisY = ActionTypes.valueAxisY;
|
|
30
|
-
trashIcon = trashIcon;
|
|
31
|
-
plusIcon = plusIcon;
|
|
32
|
-
isCategorical = isCategorical;
|
|
33
|
-
grid;
|
|
34
|
-
constructor(stateService, formBuilder, cdr, renderer, localization) {
|
|
35
|
-
this.stateService = stateService;
|
|
36
|
-
this.formBuilder = formBuilder;
|
|
37
|
-
this.cdr = cdr;
|
|
38
|
-
this.renderer = renderer;
|
|
39
|
-
this.localization = localization;
|
|
40
|
-
this.formGroup = this.formBuilder.group({
|
|
41
|
-
name: null,
|
|
42
|
-
});
|
|
43
|
-
}
|
|
44
|
-
ngAfterViewInit() {
|
|
45
|
-
if (this.grid) {
|
|
46
|
-
const gridHeader = this.grid.wrapper.nativeElement.querySelector('.k-grid .k-grid-header');
|
|
47
|
-
const gridContent = this.grid.wrapper.nativeElement.querySelector('.k-grid .k-grid-content');
|
|
48
|
-
this.renderer.setStyle(gridHeader, 'display', 'none');
|
|
49
|
-
this.renderer.setStyle(gridContent, 'overflow', 'auto');
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
updateState(action, value) {
|
|
53
|
-
this.stateService.state = updateState(this.stateService.state, action, value);
|
|
54
|
-
}
|
|
55
|
-
formGroup;
|
|
56
|
-
createFormGroup(args) {
|
|
57
|
-
const item = args.isNew ? {} : args.dataItem;
|
|
58
|
-
this.formGroup = this.formBuilder.group({
|
|
59
|
-
name: item.name,
|
|
60
|
-
});
|
|
61
|
-
return this.formGroup;
|
|
62
|
-
}
|
|
63
|
-
addData() {
|
|
64
|
-
this.stateService.state.series.push(this.stateService.deletedSeries[0]);
|
|
65
|
-
this.stateService.deletedSeries.shift();
|
|
66
|
-
this.updateState(ActionTypes.seriesChange, this.stateService.state.series);
|
|
67
|
-
}
|
|
68
|
-
removeData(event) {
|
|
69
|
-
this.stateService.deletedSeries.push(event.dataItem);
|
|
70
|
-
this.updateState(ActionTypes.seriesChange, event.sender.data.data);
|
|
71
|
-
}
|
|
72
|
-
onRowReorder(grid) {
|
|
73
|
-
this.updateState(ActionTypes.seriesChange, grid.data.data);
|
|
74
|
-
}
|
|
75
|
-
isDisabled(grid) {
|
|
76
|
-
return grid.data.data.length === this.stateService.state.initialSeries.length;
|
|
77
|
-
}
|
|
78
|
-
detectChanges() {
|
|
79
|
-
this.cdr.detectChanges();
|
|
80
|
-
}
|
|
81
|
-
messageFor(key) {
|
|
82
|
-
return this.localization.get(key);
|
|
83
|
-
}
|
|
84
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ChartWizardPropertyPaneDataTabComponent, deps: [{ token: i1.StateService }, { token: i2.FormBuilder }, { token: i0.ChangeDetectorRef }, { token: i0.Renderer2 }, { token: i3.ChartWizardLocalizationService }], target: i0.ɵɵFactoryTarget.Component });
|
|
85
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.14", type: ChartWizardPropertyPaneDataTabComponent, isStandalone: true, selector: "kendo-chartwizard-property-pane-data-tab", viewQueries: [{ propertyName: "grid", first: true, predicate: GridComponent, descendants: true }], ngImport: i0, template: `
|
|
86
|
-
<kendo-expansionpanel [title]="messageFor('configuration')" [expanded]="true">
|
|
87
|
-
<form class="k-form k-form-md">
|
|
88
|
-
<fieldset class="k-form-fieldset">
|
|
89
|
-
<legend class="k-form-legend">
|
|
90
|
-
{{ stateService.state.seriesType === 'scatter' ? messageFor('configurationXAxis') : messageFor('configurationCategoryAxis') }}
|
|
91
|
-
</legend>
|
|
92
|
-
<kendo-dropdownlist
|
|
93
|
-
[data]="stateService.state.columns"
|
|
94
|
-
[value]="stateService.state.categoryField"
|
|
95
|
-
(valueChange)="updateState(categoryAxisX, $event)"
|
|
96
|
-
fillMode="outline"
|
|
97
|
-
rounded="medium"
|
|
98
|
-
size="medium"
|
|
99
|
-
>
|
|
100
|
-
</kendo-dropdownlist>
|
|
101
|
-
</fieldset>
|
|
102
|
-
@if (isCategorical(stateService.state.seriesType)) {
|
|
103
|
-
<fieldset class="k-form-fieldset">
|
|
104
|
-
<legend class="k-form-legend">{{ messageFor('configurationSeries') }}</legend>
|
|
105
|
-
<kendo-grid
|
|
106
|
-
#grid
|
|
107
|
-
[kendoGridReactiveEditing]="createFormGroup"
|
|
108
|
-
[kendoGridBinding]="stateService.state.series"
|
|
109
|
-
[rowReorderable]="true"
|
|
110
|
-
(rowReorder)="onRowReorder(grid)"
|
|
111
|
-
(remove)="removeData($event)"
|
|
112
|
-
>
|
|
113
|
-
<ng-template kendoGridToolbarTemplate>
|
|
114
|
-
<button
|
|
115
|
-
kendoButton
|
|
116
|
-
type="button"
|
|
117
|
-
[svgIcon]="plusIcon"
|
|
118
|
-
fillMode="flat"
|
|
119
|
-
rounded="medium"
|
|
120
|
-
[disabled]="isDisabled(grid)"
|
|
121
|
-
(click)="addData()"
|
|
122
|
-
>
|
|
123
|
-
{{ messageFor('configurationSeriesAdd') }}
|
|
124
|
-
</button>
|
|
125
|
-
</ng-template>
|
|
126
|
-
<kendo-grid-rowreorder-column [width]="40"></kendo-grid-rowreorder-column>
|
|
127
|
-
<kendo-grid-column field="name" title="">
|
|
128
|
-
</kendo-grid-column>
|
|
129
|
-
<kendo-grid-command-column [width]="40">
|
|
130
|
-
<ng-template kendoGridCellTemplate>
|
|
131
|
-
<button
|
|
132
|
-
[svgIcon]="trashIcon"
|
|
133
|
-
kendoGridRemoveCommand
|
|
134
|
-
fillMode="flat"
|
|
135
|
-
rounded="medium"
|
|
136
|
-
[disabled]="stateService.state.series.length < 2"
|
|
137
|
-
></button>
|
|
138
|
-
</ng-template>
|
|
139
|
-
</kendo-grid-command-column>
|
|
140
|
-
</kendo-grid>
|
|
141
|
-
</fieldset>
|
|
142
|
-
}
|
|
143
|
-
@if (stateService.state.seriesType === 'pie') {
|
|
144
|
-
<fieldset
|
|
145
|
-
class="k-form-fieldset"
|
|
146
|
-
>
|
|
147
|
-
<legend class="k-form-legend">
|
|
148
|
-
{{ messageFor('configurationValueAxis') }}
|
|
149
|
-
</legend>
|
|
150
|
-
<kendo-dropdownlist
|
|
151
|
-
[data]="stateService.state.columns"
|
|
152
|
-
[value]="stateService.state.valueField"
|
|
153
|
-
(valueChange)="updateState(valueAxisY, $event)"
|
|
154
|
-
fillMode="outline"
|
|
155
|
-
rounded="medium"
|
|
156
|
-
size="medium"
|
|
157
|
-
>
|
|
158
|
-
</kendo-dropdownlist>
|
|
159
|
-
</fieldset>
|
|
160
|
-
}
|
|
161
|
-
</form>
|
|
162
|
-
</kendo-expansionpanel>
|
|
163
|
-
`, 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: DropDownListComponent, selector: "kendo-dropdownlist", inputs: ["customIconClass", "showStickyHeader", "icon", "svgIcon", "loading", "data", "value", "textField", "valueField", "adaptiveMode", "adaptiveTitle", "adaptiveSubtitle", "popupSettings", "listHeight", "defaultItem", "disabled", "itemDisabled", "readonly", "filterable", "virtual", "ignoreCase", "delay", "valuePrimitive", "tabindex", "tabIndex", "size", "rounded", "fillMode", "leftRightArrowsNavigation", "id"], outputs: ["valueChange", "filterChange", "selectionChange", "open", "opened", "close", "closed", "focus", "blur"], exportAs: ["kendoDropDownList"] }, { kind: "component", type: GridComponent, selector: "kendo-grid", inputs: ["data", "pageSize", "height", "rowHeight", "adaptiveMode", "detailRowHeight", "skip", "scrollable", "selectable", "sort", "size", "trackBy", "filter", "group", "virtualColumns", "filterable", "sortable", "pageable", "groupable", "gridResizable", "rowReorderable", "navigable", "autoSize", "rowClass", "rowSticky", "rowSelected", "isRowSelectable", "cellSelected", "resizable", "reorderable", "loading", "columnMenu", "hideHeader", "showInactiveTools", "isDetailExpanded", "isGroupExpanded", "dataLayoutMode"], outputs: ["filterChange", "pageChange", "groupChange", "sortChange", "selectionChange", "rowReorder", "dataStateChange", "gridStateChange", "groupExpand", "groupCollapse", "detailExpand", "detailCollapse", "edit", "cancel", "save", "remove", "add", "cellClose", "cellClick", "pdfExport", "excelExport", "columnResize", "columnReorder", "columnVisibilityChange", "columnLockedChange", "columnStickyChange", "scrollBottom", "contentScroll"], exportAs: ["kendoGrid"] }, { kind: "directive", type: ReactiveEditingDirective, selector: "[kendoGridReactiveEditing]", inputs: ["kendoGridReactiveEditing"] }, { kind: "directive", type: DataBindingDirective, selector: "[kendoGridBinding]", inputs: ["skip", "sort", "filter", "pageSize", "group", "kendoGridBinding"], exportAs: ["kendoGridBinding"] }, { kind: "directive", type: ToolbarTemplateDirective, selector: "[kendoGridToolbarTemplate]", inputs: ["position"] }, { kind: "component", type: ButtonComponent, selector: "button[kendoButton]", inputs: ["arrowIcon", "toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon", "primary", "look"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }, { kind: "component", type: RowReorderColumnComponent, selector: "kendo-grid-rowreorder-column", inputs: ["dragHandleIcon", "dragHandleSVGIcon"] }, { kind: "component", type: ColumnComponent, selector: "kendo-grid-column", inputs: ["field", "format", "sortable", "groupable", "editor", "filter", "filterVariant", "filterable", "editable"] }, { kind: "component", type: CommandColumnComponent, selector: "kendo-grid-command-column" }, { kind: "directive", type: CellTemplateDirective, selector: "[kendoGridCellTemplate]" }, { kind: "directive", type: GridToolbarFocusableDirective, selector: " [kendoGridToolbarFocusable], [kendoGridAddCommand], [kendoGridCancelCommand], [kendoGridEditCommand], [kendoGridRemoveCommand], [kendoGridSaveCommand], [kendoGridExcelCommand], [kendoGridPDFCommand] " }, { kind: "component", type: RemoveCommandDirective, selector: "[kendoGridRemoveCommand]" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
164
|
-
}
|
|
165
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ChartWizardPropertyPaneDataTabComponent, decorators: [{
|
|
166
|
-
type: Component,
|
|
167
|
-
args: [{
|
|
168
|
-
selector: 'kendo-chartwizard-property-pane-data-tab',
|
|
169
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
170
|
-
encapsulation: ViewEncapsulation.None,
|
|
171
|
-
template: `
|
|
172
|
-
<kendo-expansionpanel [title]="messageFor('configuration')" [expanded]="true">
|
|
173
|
-
<form class="k-form k-form-md">
|
|
174
|
-
<fieldset class="k-form-fieldset">
|
|
175
|
-
<legend class="k-form-legend">
|
|
176
|
-
{{ stateService.state.seriesType === 'scatter' ? messageFor('configurationXAxis') : messageFor('configurationCategoryAxis') }}
|
|
177
|
-
</legend>
|
|
178
|
-
<kendo-dropdownlist
|
|
179
|
-
[data]="stateService.state.columns"
|
|
180
|
-
[value]="stateService.state.categoryField"
|
|
181
|
-
(valueChange)="updateState(categoryAxisX, $event)"
|
|
182
|
-
fillMode="outline"
|
|
183
|
-
rounded="medium"
|
|
184
|
-
size="medium"
|
|
185
|
-
>
|
|
186
|
-
</kendo-dropdownlist>
|
|
187
|
-
</fieldset>
|
|
188
|
-
@if (isCategorical(stateService.state.seriesType)) {
|
|
189
|
-
<fieldset class="k-form-fieldset">
|
|
190
|
-
<legend class="k-form-legend">{{ messageFor('configurationSeries') }}</legend>
|
|
191
|
-
<kendo-grid
|
|
192
|
-
#grid
|
|
193
|
-
[kendoGridReactiveEditing]="createFormGroup"
|
|
194
|
-
[kendoGridBinding]="stateService.state.series"
|
|
195
|
-
[rowReorderable]="true"
|
|
196
|
-
(rowReorder)="onRowReorder(grid)"
|
|
197
|
-
(remove)="removeData($event)"
|
|
198
|
-
>
|
|
199
|
-
<ng-template kendoGridToolbarTemplate>
|
|
200
|
-
<button
|
|
201
|
-
kendoButton
|
|
202
|
-
type="button"
|
|
203
|
-
[svgIcon]="plusIcon"
|
|
204
|
-
fillMode="flat"
|
|
205
|
-
rounded="medium"
|
|
206
|
-
[disabled]="isDisabled(grid)"
|
|
207
|
-
(click)="addData()"
|
|
208
|
-
>
|
|
209
|
-
{{ messageFor('configurationSeriesAdd') }}
|
|
210
|
-
</button>
|
|
211
|
-
</ng-template>
|
|
212
|
-
<kendo-grid-rowreorder-column [width]="40"></kendo-grid-rowreorder-column>
|
|
213
|
-
<kendo-grid-column field="name" title="">
|
|
214
|
-
</kendo-grid-column>
|
|
215
|
-
<kendo-grid-command-column [width]="40">
|
|
216
|
-
<ng-template kendoGridCellTemplate>
|
|
217
|
-
<button
|
|
218
|
-
[svgIcon]="trashIcon"
|
|
219
|
-
kendoGridRemoveCommand
|
|
220
|
-
fillMode="flat"
|
|
221
|
-
rounded="medium"
|
|
222
|
-
[disabled]="stateService.state.series.length < 2"
|
|
223
|
-
></button>
|
|
224
|
-
</ng-template>
|
|
225
|
-
</kendo-grid-command-column>
|
|
226
|
-
</kendo-grid>
|
|
227
|
-
</fieldset>
|
|
228
|
-
}
|
|
229
|
-
@if (stateService.state.seriesType === 'pie') {
|
|
230
|
-
<fieldset
|
|
231
|
-
class="k-form-fieldset"
|
|
232
|
-
>
|
|
233
|
-
<legend class="k-form-legend">
|
|
234
|
-
{{ messageFor('configurationValueAxis') }}
|
|
235
|
-
</legend>
|
|
236
|
-
<kendo-dropdownlist
|
|
237
|
-
[data]="stateService.state.columns"
|
|
238
|
-
[value]="stateService.state.valueField"
|
|
239
|
-
(valueChange)="updateState(valueAxisY, $event)"
|
|
240
|
-
fillMode="outline"
|
|
241
|
-
rounded="medium"
|
|
242
|
-
size="medium"
|
|
243
|
-
>
|
|
244
|
-
</kendo-dropdownlist>
|
|
245
|
-
</fieldset>
|
|
246
|
-
}
|
|
247
|
-
</form>
|
|
248
|
-
</kendo-expansionpanel>
|
|
249
|
-
`,
|
|
250
|
-
standalone: true,
|
|
251
|
-
imports: [
|
|
252
|
-
ExpansionPanelComponent,
|
|
253
|
-
DropDownListComponent,
|
|
254
|
-
GridComponent,
|
|
255
|
-
ReactiveEditingDirective,
|
|
256
|
-
DataBindingDirective,
|
|
257
|
-
ToolbarTemplateDirective,
|
|
258
|
-
ButtonComponent,
|
|
259
|
-
RowReorderColumnComponent,
|
|
260
|
-
ColumnComponent,
|
|
261
|
-
CommandColumnComponent,
|
|
262
|
-
CellTemplateDirective,
|
|
263
|
-
GridToolbarFocusableDirective,
|
|
264
|
-
RemoveCommandDirective
|
|
265
|
-
]
|
|
266
|
-
}]
|
|
267
|
-
}], ctorParameters: () => [{ type: i1.StateService }, { type: i2.FormBuilder }, { type: i0.ChangeDetectorRef }, { type: i0.Renderer2 }, { type: i3.ChartWizardLocalizationService }], propDecorators: { grid: [{
|
|
268
|
-
type: ViewChild,
|
|
269
|
-
args: [GridComponent]
|
|
270
|
-
}] } });
|