@progress/kendo-angular-chart-wizard 16.9.0-develop.8 → 16.9.0

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.
@@ -3,27 +3,28 @@
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  import * as i0 from '@angular/core';
6
- import { Injectable, EventEmitter, Component, ChangeDetectionStrategy, Input, Output, HostBinding, ViewChild, Directive, HostListener, NgModule } from '@angular/core';
6
+ import { Injectable, Component, ChangeDetectionStrategy, ViewEncapsulation, ViewChild, Input, EventEmitter, Output, HostBinding, Directive, HostListener, NgModule } from '@angular/core';
7
7
  import { shouldShowValidationUI, WatermarkOverlayComponent, isPresent, ResizeBatchService } from '@progress/kendo-angular-common';
8
- import * as i2 from '@progress/kendo-angular-l10n';
8
+ import * as i2$1 from '@progress/kendo-angular-l10n';
9
9
  import { LocalizationService, L10N_PREFIX } from '@progress/kendo-angular-l10n';
10
10
  import { validatePackage } from '@progress/kendo-licensing';
11
11
  import { Subscription } from 'rxjs';
12
+ import { ChartWizardCommon } from '@progress/kendo-charts';
12
13
  import { trashIcon, plusIcon, exportIcon, chartBarClusteredIcon, chartBarStackedIcon, chartBarStacked100Icon, chartPieIcon, chartColumnClusteredIcon, chartColumnStackedIcon, chartColumnStacked100Icon, chartLineIcon, chartLineStackedIcon, chartLineStacked100Icon, chartScatterIcon, filePdfIcon, fileIcon, fileImageIcon } from '@progress/kendo-svg-icons';
13
- import { ChartComponent, TitleComponent, SubtitleComponent, ChartAreaComponent, CategoryAxisComponent, CategoryAxisItemComponent, ValueAxisComponent, ValueAxisItemComponent, SeriesComponent, SeriesItemComponent, XAxisComponent, XAxisItemComponent, YAxisComponent, YAxisItemComponent, LegendComponent, ThemeService } from '@progress/kendo-angular-charts';
14
+ import { ChartComponent, TitleComponent, SubtitleComponent, ChartAreaComponent, CategoryAxisComponent, CategoryAxisItemComponent, ValueAxisComponent, ValueAxisItemComponent, SeriesComponent, SeriesItemComponent, LegendComponent, XAxisComponent, XAxisItemComponent, YAxisComponent, YAxisItemComponent, ThemeService } from '@progress/kendo-angular-charts';
14
15
  import { saveAs } from '@progress/kendo-file-saver';
15
16
  import { exportPDF } from '@progress/kendo-drawing';
16
- import { DropDownListComponent, ComboBoxComponent, ValueTemplateDirective } from '@progress/kendo-angular-dropdowns';
17
- import { NumericTextBoxComponent, ColorPickerComponent, TextBoxComponent, CheckBoxComponent, SwitchComponent } from '@progress/kendo-angular-inputs';
18
- import { LabelComponent } from '@progress/kendo-angular-label';
19
- import { NgIf, NgFor } from '@angular/common';
20
- import { ExpansionPanelComponent, SplitterComponent, SplitterPaneComponent, TabStripComponent, TabStripTabComponent, TabContentDirective } from '@progress/kendo-angular-layout';
21
17
  import * as i1 from '@progress/kendo-angular-grid';
22
18
  import { GridComponent, ReactiveEditingDirective, DataBindingDirective, ToolbarTemplateDirective, RowReorderColumnComponent, ColumnComponent, CommandColumnComponent, CellTemplateDirective, GridToolbarFocusableDirective, RemoveCommandDirective } from '@progress/kendo-angular-grid';
19
+ import { NgIf, NgFor } from '@angular/common';
20
+ import { ExpansionPanelComponent, SplitterComponent, SplitterPaneComponent, TabStripComponent, TabStripTabComponent, TabContentDirective } from '@progress/kendo-angular-layout';
21
+ import { DropDownListComponent, ValueTemplateDirective, ComboBoxComponent } from '@progress/kendo-angular-dropdowns';
23
22
  import { ButtonComponent, FocusableDirective, DropDownButtonComponent } from '@progress/kendo-angular-buttons';
24
- import * as i2$1 from '@angular/forms';
23
+ import * as i2 from '@angular/forms';
25
24
  import { SVGIconComponent, IconsService } from '@progress/kendo-angular-icons';
26
25
  import { WindowComponent, DialogContainerService, DialogService, WindowService, WindowContainerService } from '@progress/kendo-angular-dialog';
26
+ import { NumericTextBoxComponent, ColorPickerComponent, TextBoxComponent, CheckBoxComponent, SwitchComponent } from '@progress/kendo-angular-inputs';
27
+ import { LabelComponent } from '@progress/kendo-angular-label';
27
28
  import { PopupService } from '@progress/kendo-angular-popup';
28
29
  import { getter } from '@progress/kendo-common';
29
30
 
@@ -34,519 +35,63 @@ const packageMetadata = {
34
35
  name: '@progress/kendo-angular-chart-wizard',
35
36
  productName: 'Kendo UI for Angular',
36
37
  productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
37
- publishDate: 1724848963,
38
- version: '16.9.0-develop.8',
38
+ publishDate: 1725979259,
39
+ version: '16.9.0',
39
40
  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',
40
41
  };
41
42
 
42
43
  /**
43
44
  * @hidden
44
45
  */
45
- const fontSizes = [
46
- { text: '16', value: '16px' },
47
- { text: '20', value: '20px' },
48
- { text: '24', value: '24px' },
49
- { text: '48', value: '48px' },
50
- { text: '60', value: '60px' },
51
- { text: '96', value: '96px' },
52
- ];
53
- /**
54
- * @hidden
55
- */
56
- const fontNames = [
57
- { text: 'Arial', value: 'Arial, Helvetica, sans-serif',
58
- style: { fontFamily: 'Arial, Helvetica, sans-serif' } },
59
- { text: 'Courier New', value: '\'Courier New\', Courier, monospace',
60
- style: { fontFamily: '\'Courier New\', Courier, monospace' } },
61
- { text: 'Georgia', value: 'Georgia, serif',
62
- style: { fontFamily: 'Georgia, serif' } },
63
- { text: 'Impact', value: 'Impact, Charcoal, sans-serif',
64
- style: { fontFamily: 'Impact, Charcoal, sans-serif' } },
65
- { text: 'Lucida Console', value: '\'Lucida Console\', Monaco, monospace',
66
- style: { fontFamily: '\'Lucida Console\', Monaco, monospace' } },
67
- { text: 'Tahoma', value: 'Tahoma, Geneva, sans-serif',
68
- style: { fontFamily: 'Tahoma, Geneva, sans-serif' } },
69
- { text: 'Times New Roman', value: '\'Times New Roman\', Times,serif',
70
- style: { fontFamily: '\'Times New Roman\', Times,serif' } },
71
- { text: 'Trebuchet MS', value: '\'Trebuchet MS\', Helvetica, sans-serif',
72
- style: { fontFamily: '\'Trebuchet MS\', Helvetica, sans-serif' } },
73
- { text: 'Verdana', value: 'Verdana, Geneva, sans-serif',
74
- style: { fontFamily: 'Verdana, Geneva, sans-serif' } }
75
- ];
46
+ const fontSizes = ChartWizardCommon.fontSizes;
76
47
  /**
77
48
  * @hidden
78
49
  */
79
- const rotations = [
80
- { text: 'Auto', value: 'auto' },
81
- { text: '0°', value: 0 },
82
- { text: '45°', value: 45 },
83
- { text: '90°', value: 90 },
84
- { text: '135°', value: 135 },
85
- { text: '180°', value: 180 }
86
- ];
50
+ const fontNames = ChartWizardCommon.fontNames;
87
51
  /**
88
52
  * @hidden
89
53
  */
90
- const positions = [
91
- { text: 'Top', value: 'top' },
92
- { text: 'Bottom', value: 'bottom' },
93
- { text: 'Left', value: 'left' },
94
- { text: 'Right', value: 'right' }
95
- ];
96
- const columnType = 'column';
97
- const barType = 'bar';
98
- const lineType = 'line';
99
- const pieType = 'pie';
100
- const scatterType = 'scatter';
101
- const categoricalTypes = [columnType, barType, lineType, scatterType];
102
- const scatterSeries = {
103
- type: lineType,
104
- width: 0
105
- };
54
+ const createState = ChartWizardCommon.createState;
106
55
  /**
107
56
  * @hidden
108
57
  */
109
- const isCategorical = (type) => type && categoricalTypes.includes(type);
110
- const categoryTypes = ['string', 'date', 'number'];
111
- const valueTypes = ['number'];
112
- const axesDefinitions = {
113
- bar: [
114
- { axisType: 'category', types: categoryTypes },
115
- { axisType: 'value', types: valueTypes },
116
- ],
117
- column: [
118
- { axisType: 'category', types: categoryTypes },
119
- { axisType: 'value', types: valueTypes },
120
- ],
121
- line: [
122
- { axisType: 'category', types: categoryTypes },
123
- { axisType: 'value', types: valueTypes },
124
- ],
125
- pie: [
126
- { axisType: 'category', types: categoryTypes },
127
- { axisType: 'value', types: valueTypes, count: 1 },
128
- ],
129
- scatter: [
130
- { axisType: 'category', types: categoryTypes },
131
- { axisType: 'value', types: valueTypes }
132
- ]
133
- };
134
- const getFont = (font, size) => `${size || ''} ${font || ''}`.trim();
58
+ const updateState = ChartWizardCommon.updateState;
135
59
  /**
136
60
  * @hidden
137
61
  */
138
- const parseFont = (font) => {
139
- const spaceIndex = (font || '').indexOf(' ');
140
- const size = font === null || font === void 0 ? void 0 : font.substring(0, spaceIndex);
141
- const name = font === null || font === void 0 ? void 0 : font.substring(spaceIndex + 1);
142
- return { size, name };
143
- };
144
- const updateFontName = (fontName, defaultSize, currentFont) => {
145
- const { size } = parseFont(currentFont);
146
- return fontName ? getFont(fontName, size || defaultSize) : '';
147
- };
148
- const updateFontSize = (fontSize, defaultFontName, currentFont) => {
149
- const { name } = parseFont(currentFont);
150
- return fontSize ? getFont(name || defaultFontName, fontSize) : '';
151
- };
152
- const getCategoryColumnIndex = (data, categoryDef) => {
153
- const candidates = [];
154
- const firstRecord = data[0].slice();
155
- categoryDef.types.forEach((type) => {
156
- firstRecord.forEach((item, i) => {
157
- if (typeof item.value === type) {
158
- candidates.push(i);
159
- }
160
- });
161
- });
162
- const result = candidates.findIndex((index) => {
163
- const values = data.map((record) => record[index].value);
164
- return new Set(values).size === values.length;
165
- });
166
- return Math.max(result, 0);
167
- };
168
- const getValueColumnIndexes = (data, valuesDef) => {
169
- const candidates = [];
170
- const firstRecord = data[0].slice();
171
- valuesDef.forEach((def) => {
172
- def.types.forEach((type) => {
173
- firstRecord.forEach((item, i) => {
174
- if (typeof item.value === type) {
175
- candidates.push(i);
176
- }
177
- });
178
- });
179
- });
180
- return candidates;
181
- };
182
- const emptyState = () => structuredClone({
183
- columns: [],
184
- data: [],
185
- series: [],
186
- initialSeries: [],
187
- categoryAxis: [],
188
- valueAxis: [{ labels: { visible: true, rotation: 'auto' } }],
189
- area: {
190
- margin: { left: undefined, right: undefined, top: undefined, bottom: undefined }
191
- },
192
- stack: false
193
- });
194
- const categoryValueChartState = (data, seriesType, options) => {
195
- const state = emptyState();
196
- state.seriesType = seriesType;
197
- state.data = data;
198
- const chartDef = axesDefinitions[seriesType];
199
- if (!chartDef) {
200
- return state;
201
- }
202
- const firstRecord = data[0].slice();
203
- state.columns = data[0].map(i => String(i.field));
204
- const categoryDef = chartDef.find(def => def.axisType === 'category');
205
- let catIndex = -1;
206
- if (categoryDef) {
207
- catIndex = (options === null || options === void 0 ? void 0 : options.categoryAxis) ? state.columns.indexOf(options === null || options === void 0 ? void 0 : options.categoryAxis) : getCategoryColumnIndex(data, categoryDef);
208
- }
209
- const valuesDef = chartDef.filter(def => def.axisType === 'value');
210
- let valuesIndexes = getValueColumnIndexes(data, valuesDef);
211
- if (valuesIndexes.includes(catIndex)) {
212
- valuesIndexes = valuesIndexes.filter(index => index !== catIndex);
213
- }
214
- const series = [];
215
- valuesIndexes.forEach(index => {
216
- const valuesColumn = firstRecord[index];
217
- const valuesResult = [];
218
- data.forEach(record => {
219
- valuesResult.push(record[index].value);
220
- });
221
- series.push(Object.assign({ name: valuesColumn.field, type: seriesType, data: valuesResult, stack: false, labels: { visible: false } }, (seriesType === scatterType ? scatterSeries : {})));
222
- });
223
- const categories = catIndex > -1 ? data.map(item => String(item[catIndex].value)) : [];
224
- if (series.length) {
225
- state.series = series.map((s, i) => (Object.assign(Object.assign({}, s), { id: i })));
226
- state.initialSeries = structuredClone(state.series);
227
- }
228
- if (categories.length) {
229
- state.categoryAxis = [{ categories, labels: { visible: true, rotation: 'auto' } }];
230
- state.categoryField = state.columns[catIndex];
231
- }
232
- state.legend = { visible: true, position: 'bottom' };
233
- state.title = { text: null };
234
- state.subtitle = { text: null };
235
- return state;
236
- };
237
- const pieChartState = (data, seriesType, options) => {
238
- const state = emptyState();
239
- state.seriesType = seriesType;
240
- state.data = data;
241
- const chartDef = axesDefinitions[seriesType];
242
- if (!chartDef) {
243
- return state;
244
- }
245
- const categoriesAxis = data[0].map(i => i.field);
246
- const categoryDef = chartDef.find(def => def.axisType === 'category');
247
- let catIndex = -1;
248
- if (categoryDef) {
249
- catIndex = (options === null || options === void 0 ? void 0 : options.categoryAxis) ? categoriesAxis.indexOf(options === null || options === void 0 ? void 0 : options.categoryAxis) : getCategoryColumnIndex(data, categoryDef);
250
- }
251
- const valuesDef = chartDef.filter(def => def.axisType === 'value');
252
- let valuesIndexes = [];
253
- if (options === null || options === void 0 ? void 0 : options.valueAxis) {
254
- valuesIndexes = [categoriesAxis.indexOf(options.valueAxis)];
255
- }
256
- else {
257
- valuesIndexes = getValueColumnIndexes(data, valuesDef);
258
- }
259
- if (valuesIndexes.includes(catIndex) && valuesIndexes.length > 1) {
260
- valuesIndexes = valuesIndexes.filter(index => index !== catIndex);
261
- }
262
- if (typeof valuesDef[0].count === 'number') {
263
- valuesIndexes = valuesIndexes.slice(0, valuesDef[0].count);
264
- }
265
- const categories = catIndex > -1 ? data.map(item => String(item[catIndex].value)) : [];
266
- const flatData = [];
267
- data.forEach(item => {
268
- const record = {};
269
- valuesIndexes.forEach((index) => {
270
- const col = item[index];
271
- record[col.field] = col.value;
272
- record[item[catIndex].field] = item[catIndex].value;
273
- });
274
- flatData.push(record);
275
- });
276
- state.columns = categoriesAxis;
277
- state.categoryAxis = [{ categories, title: { text: '' } }];
278
- state.series = [{
279
- id: 0,
280
- data: flatData,
281
- type: seriesType,
282
- name: categoriesAxis[catIndex],
283
- labels: { visible: true },
284
- categoryField: categoriesAxis[catIndex],
285
- field: categoriesAxis[valuesIndexes[0]]
286
- }];
287
- state.categoryField = categoriesAxis[catIndex];
288
- state.valueField = categoriesAxis[valuesIndexes[0]];
289
- state.initialSeries = structuredClone(state.series);
290
- return state;
291
- };
292
- const hasValue = (value) => value !== undefined && value !== null;
62
+ const mergeStates = ChartWizardCommon.mergeStates;
293
63
  /**
294
64
  * @hidden
295
65
  */
296
- const createInitialState = (data, seriesType, defaultState) => {
297
- const state = createState(data, (defaultState === null || defaultState === void 0 ? void 0 : defaultState.seriesType) || seriesType);
298
- return typeof (defaultState === null || defaultState === void 0 ? void 0 : defaultState.stack) !== 'undefined' ?
299
- updateState(state, ActionTypes.stacked, defaultState.stack) : state;
300
- };
66
+ const isCategorical = ChartWizardCommon.isCategorical;
301
67
  /**
302
68
  * @hidden
303
69
  */
304
- const createState = (data, seriesType) => {
305
- return (isCategorical(seriesType) ? categoryValueChartState : pieChartState)(data, seriesType);
306
- };
70
+ const parseFont = ChartWizardCommon.parseFont;
307
71
  /**
308
72
  * @hidden
309
73
  */
310
- var ActionTypes;
311
- (function (ActionTypes) {
312
- ActionTypes[ActionTypes["seriesType"] = 0] = "seriesType";
313
- ActionTypes[ActionTypes["stacked"] = 1] = "stacked";
314
- ActionTypes[ActionTypes["categoryAxisX"] = 2] = "categoryAxisX";
315
- ActionTypes[ActionTypes["valueAxisY"] = 3] = "valueAxisY";
316
- ActionTypes[ActionTypes["seriesChange"] = 4] = "seriesChange";
317
- ActionTypes[ActionTypes["areaMarginLeft"] = 5] = "areaMarginLeft";
318
- ActionTypes[ActionTypes["areaMarginRight"] = 6] = "areaMarginRight";
319
- ActionTypes[ActionTypes["areaMarginTop"] = 7] = "areaMarginTop";
320
- ActionTypes[ActionTypes["areaMarginBottom"] = 8] = "areaMarginBottom";
321
- ActionTypes[ActionTypes["areaBackground"] = 9] = "areaBackground";
322
- ActionTypes[ActionTypes["titleText"] = 10] = "titleText";
323
- ActionTypes[ActionTypes["titleFontName"] = 11] = "titleFontName";
324
- ActionTypes[ActionTypes["titleFontSize"] = 12] = "titleFontSize";
325
- ActionTypes[ActionTypes["titleColor"] = 13] = "titleColor";
326
- ActionTypes[ActionTypes["subtitleText"] = 14] = "subtitleText";
327
- ActionTypes[ActionTypes["subtitleFontName"] = 15] = "subtitleFontName";
328
- ActionTypes[ActionTypes["subtitleFontSize"] = 16] = "subtitleFontSize";
329
- ActionTypes[ActionTypes["subtitleColor"] = 17] = "subtitleColor";
330
- ActionTypes[ActionTypes["seriesColor"] = 18] = "seriesColor";
331
- ActionTypes[ActionTypes["seriesLabel"] = 19] = "seriesLabel";
332
- ActionTypes[ActionTypes["legendVisible"] = 20] = "legendVisible";
333
- ActionTypes[ActionTypes["legendFontName"] = 21] = "legendFontName";
334
- ActionTypes[ActionTypes["legendFontSize"] = 22] = "legendFontSize";
335
- ActionTypes[ActionTypes["legendColor"] = 23] = "legendColor";
336
- ActionTypes[ActionTypes["legendPosition"] = 24] = "legendPosition";
337
- ActionTypes[ActionTypes["categoryAxisTitleText"] = 25] = "categoryAxisTitleText";
338
- ActionTypes[ActionTypes["categoryAxisTitleFontName"] = 26] = "categoryAxisTitleFontName";
339
- ActionTypes[ActionTypes["categoryAxisTitleFontSize"] = 27] = "categoryAxisTitleFontSize";
340
- ActionTypes[ActionTypes["categoryAxisTitleColor"] = 28] = "categoryAxisTitleColor";
341
- ActionTypes[ActionTypes["categoryAxisLabelsFontName"] = 29] = "categoryAxisLabelsFontName";
342
- ActionTypes[ActionTypes["categoryAxisLabelsFontSize"] = 30] = "categoryAxisLabelsFontSize";
343
- ActionTypes[ActionTypes["categoryAxisLabelsColor"] = 31] = "categoryAxisLabelsColor";
344
- ActionTypes[ActionTypes["categoryAxisLabelsRotation"] = 32] = "categoryAxisLabelsRotation";
345
- ActionTypes[ActionTypes["categoryAxisReverseOrder"] = 33] = "categoryAxisReverseOrder";
346
- ActionTypes[ActionTypes["valueAxisTitleText"] = 34] = "valueAxisTitleText";
347
- ActionTypes[ActionTypes["valueAxisTitleFontName"] = 35] = "valueAxisTitleFontName";
348
- ActionTypes[ActionTypes["valueAxisTitleFontSize"] = 36] = "valueAxisTitleFontSize";
349
- ActionTypes[ActionTypes["valueAxisTitleColor"] = 37] = "valueAxisTitleColor";
350
- ActionTypes[ActionTypes["valueAxisLabelsFormat"] = 38] = "valueAxisLabelsFormat";
351
- ActionTypes[ActionTypes["valueAxisLabelsFontName"] = 39] = "valueAxisLabelsFontName";
352
- ActionTypes[ActionTypes["valueAxisLabelsFontSize"] = 40] = "valueAxisLabelsFontSize";
353
- ActionTypes[ActionTypes["valueAxisLabelsColor"] = 41] = "valueAxisLabelsColor";
354
- ActionTypes[ActionTypes["valueAxisLabelsRotation"] = 42] = "valueAxisLabelsRotation";
355
- })(ActionTypes || (ActionTypes = {}));
74
+ const ActionTypes = ChartWizardCommon.ActionTypes;
356
75
  /**
357
76
  * @hidden
358
77
  */
359
- const mergeStates = (state, newState) => {
360
- newState.legend = state.legend;
361
- newState.area = state.area;
362
- newState.title = state.title;
363
- newState.subtitle = state.subtitle;
364
- if (newState.series.length === state.series.length) {
365
- for (let i = 0; i < newState.series.length; i++) {
366
- newState.series[i].color = state.series[i].color;
367
- newState.series[i].labels = state.series[i].labels;
368
- }
369
- }
370
- if (state.series.every(s => { var _a; return (_a = s.labels) === null || _a === void 0 ? void 0 : _a.visible; }) && isCategorical(newState.seriesType) && isCategorical(state.seriesType)) {
371
- newState.series.forEach(s => {
372
- s.labels = s.labels || {};
373
- s.labels.visible = true;
374
- });
375
- }
376
- return newState;
377
- };
78
+ const rotations = [
79
+ { text: 'Auto', value: 'auto' },
80
+ { text: '0°', value: 0 },
81
+ { text: '45°', value: 45 },
82
+ { text: '90°', value: 90 },
83
+ { text: '135°', value: 135 },
84
+ { text: '180°', value: 180 }
85
+ ];
378
86
  /**
379
87
  * @hidden
380
88
  */
381
- const updateState = (currentState, action, value) => {
382
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8;
383
- const state = Object.assign({}, currentState);
384
- switch (action) {
385
- case ActionTypes.seriesType:
386
- return createState(state.data, value);
387
- case ActionTypes.stacked:
388
- state.series = state.series.map(s => (Object.assign(Object.assign({}, s), { stack: value })));
389
- return state;
390
- case ActionTypes.categoryAxisX: {
391
- if (state.seriesType && isCategorical(state.seriesType)) {
392
- const newState = categoryValueChartState(state.data, state.seriesType, { categoryAxis: value });
393
- return mergeStates(state, newState);
394
- }
395
- else if (state.seriesType === pieType) {
396
- const newState = pieChartState(state.data, state.seriesType, { categoryAxis: value });
397
- return mergeStates(state, newState);
398
- }
399
- return state;
400
- }
401
- case ActionTypes.valueAxisY: {
402
- if (state.seriesType === pieType) {
403
- const newState = pieChartState(state.data, state.seriesType, { categoryAxis: state.categoryField, valueAxis: value });
404
- return mergeStates(state, newState);
405
- }
406
- return state;
407
- }
408
- case ActionTypes.seriesChange:
409
- state.series = value;
410
- return state;
411
- case ActionTypes.areaMarginLeft:
412
- state.area = Object.assign(Object.assign({}, state.area), { margin: Object.assign(Object.assign({}, (((_a = state.area) === null || _a === void 0 ? void 0 : _a.margin) || {})), { left: value }) });
413
- return state;
414
- case ActionTypes.areaMarginRight:
415
- state.area = Object.assign(Object.assign({}, state.area), { margin: Object.assign(Object.assign({}, (((_b = state.area) === null || _b === void 0 ? void 0 : _b.margin) || {})), { right: value }) });
416
- return state;
417
- case ActionTypes.areaMarginTop:
418
- state.area = Object.assign(Object.assign({}, state.area), { margin: Object.assign(Object.assign({}, (((_c = state.area) === null || _c === void 0 ? void 0 : _c.margin) || {})), { top: value }) });
419
- return state;
420
- case ActionTypes.areaMarginBottom:
421
- state.area = Object.assign(Object.assign({}, state.area), { margin: Object.assign(Object.assign({}, (((_d = state.area) === null || _d === void 0 ? void 0 : _d.margin) || {})), { bottom: value }) });
422
- return state;
423
- case ActionTypes.areaBackground:
424
- state.area = Object.assign(Object.assign({}, state.area), { background: value });
425
- return state;
426
- case ActionTypes.titleText:
427
- state.title = Object.assign(Object.assign({}, state.title), { text: value });
428
- return state;
429
- case ActionTypes.titleFontName: {
430
- state.title = Object.assign(Object.assign({}, state.title), { font: updateFontName(value, fontSizes[0].value, (_e = state.title) === null || _e === void 0 ? void 0 : _e.font) });
431
- return state;
432
- }
433
- case ActionTypes.titleFontSize:
434
- state.title = Object.assign(Object.assign({}, state.title), { font: updateFontSize(value, fontNames[0].value, (_f = state.title) === null || _f === void 0 ? void 0 : _f.font) });
435
- return state;
436
- case ActionTypes.titleColor:
437
- state.title = Object.assign(Object.assign({}, state.title), { color: value });
438
- return state;
439
- case ActionTypes.subtitleText:
440
- state.subtitle = Object.assign(Object.assign({}, state.subtitle), { text: value });
441
- return state;
442
- case ActionTypes.subtitleFontName:
443
- state.subtitle = Object.assign(Object.assign({}, state.subtitle), { font: updateFontName(value, fontSizes[0].value, (_g = state.subtitle) === null || _g === void 0 ? void 0 : _g.font) });
444
- return state;
445
- case ActionTypes.subtitleFontSize:
446
- state.subtitle = Object.assign(Object.assign({}, state.subtitle), { font: updateFontSize(value, fontNames[0].value, (_h = state.subtitle) === null || _h === void 0 ? void 0 : _h.font) });
447
- return state;
448
- case ActionTypes.subtitleColor:
449
- state.subtitle = Object.assign(Object.assign({}, state.subtitle), { color: value });
450
- return state;
451
- case ActionTypes.seriesColor:
452
- state.series = state.series.map(s => (Object.assign(Object.assign({}, s), { color: value.seriesName === s.name ? value.color : s.color })));
453
- return state;
454
- case ActionTypes.seriesLabel:
455
- state.series = state.series.map(s => {
456
- if (value.all || value.seriesName === s.name) {
457
- return Object.assign(Object.assign({}, s), { labels: { visible: value.visible } });
458
- }
459
- return s;
460
- });
461
- return state;
462
- case ActionTypes.legendVisible:
463
- state.legend = Object.assign(Object.assign({}, state.legend), { visible: value });
464
- return state;
465
- case ActionTypes.legendFontName: {
466
- state.legend = Object.assign(Object.assign({}, state.legend), { labels: Object.assign(Object.assign({}, (_j = state.legend) === null || _j === void 0 ? void 0 : _j.labels), { font: updateFontName(value, fontSizes[0].value, (_l = (_k = state.legend) === null || _k === void 0 ? void 0 : _k.labels) === null || _l === void 0 ? void 0 : _l.font) }) });
467
- return state;
468
- }
469
- case ActionTypes.legendFontSize:
470
- state.legend = Object.assign(Object.assign({}, state.legend), { labels: Object.assign(Object.assign({}, (_m = state.legend) === null || _m === void 0 ? void 0 : _m.labels), { font: updateFontSize(value, fontNames[0].value, (_p = (_o = state.legend) === null || _o === void 0 ? void 0 : _o.labels) === null || _p === void 0 ? void 0 : _p.font) }) });
471
- return state;
472
- case ActionTypes.legendColor:
473
- state.legend = Object.assign(Object.assign({}, state.legend), { labels: Object.assign(Object.assign({}, (_q = state.legend) === null || _q === void 0 ? void 0 : _q.labels), { color: value }) });
474
- return state;
475
- case ActionTypes.legendPosition:
476
- state.legend = Object.assign(Object.assign({}, state.legend), { position: value });
477
- return state;
478
- case ActionTypes.categoryAxisTitleText:
479
- state.categoryAxis = (_r = state.categoryAxis) === null || _r === void 0 ? void 0 : _r.map(axis => (Object.assign(Object.assign({}, axis), { title: Object.assign(Object.assign({}, axis.title), { text: value }) })));
480
- return state;
481
- case ActionTypes.categoryAxisTitleFontName: {
482
- state.categoryAxis = (_s = state.categoryAxis) === null || _s === void 0 ? void 0 : _s.map(axis => { var _a; return (Object.assign(Object.assign({}, axis), { title: Object.assign(Object.assign({}, axis.title), { font: updateFontName(value, fontSizes[0].value, (_a = axis.title) === null || _a === void 0 ? void 0 : _a.font) }) })); });
483
- return state;
484
- }
485
- case ActionTypes.categoryAxisTitleFontSize:
486
- state.categoryAxis = (_t = state.categoryAxis) === null || _t === void 0 ? void 0 : _t.map(axis => { var _a; return (Object.assign(Object.assign({}, axis), { title: Object.assign(Object.assign({}, axis.title), { font: updateFontSize(value, fontNames[0].value, (_a = axis.title) === null || _a === void 0 ? void 0 : _a.font) }) })); });
487
- return state;
488
- case ActionTypes.categoryAxisTitleColor:
489
- state.categoryAxis = (_u = state.categoryAxis) === null || _u === void 0 ? void 0 : _u.map(axis => (Object.assign(Object.assign({}, axis), { title: Object.assign(Object.assign({}, axis.title), { color: value }) })));
490
- return state;
491
- case ActionTypes.categoryAxisLabelsFontName: {
492
- state.categoryAxis = (_v = state.categoryAxis) === null || _v === void 0 ? void 0 : _v.map(axis => { var _a; return (Object.assign(Object.assign({}, axis), { labels: Object.assign(Object.assign({}, axis.labels), { font: updateFontName(value, fontSizes[0].value, (_a = axis.labels) === null || _a === void 0 ? void 0 : _a.font) }) })); });
493
- return state;
494
- }
495
- case ActionTypes.categoryAxisLabelsFontSize:
496
- state.categoryAxis = (_w = state.categoryAxis) === null || _w === void 0 ? void 0 : _w.map(axis => { var _a; return (Object.assign(Object.assign({}, axis), { labels: Object.assign(Object.assign({}, axis.labels), { font: updateFontSize(value, fontNames[0].value, (_a = axis.labels) === null || _a === void 0 ? void 0 : _a.font) }) })); });
497
- return state;
498
- case ActionTypes.categoryAxisLabelsColor:
499
- state.categoryAxis = (_x = state.categoryAxis) === null || _x === void 0 ? void 0 : _x.map(axis => (Object.assign(Object.assign({}, axis), { labels: Object.assign(Object.assign({}, axis.labels), { color: value }) })));
500
- return state;
501
- case ActionTypes.categoryAxisLabelsRotation: {
502
- const rotation = hasValue(value) ? value : 'auto';
503
- state.categoryAxis = (_y = state.categoryAxis) === null || _y === void 0 ? void 0 : _y.map(axis => (Object.assign(Object.assign({}, axis), { labels: Object.assign(Object.assign({}, axis.labels), { rotation }) })));
504
- return state;
505
- }
506
- case ActionTypes.categoryAxisReverseOrder:
507
- state.categoryAxis = (_z = state.categoryAxis) === null || _z === void 0 ? void 0 : _z.map(axis => (Object.assign(Object.assign({}, axis), { reverse: value })));
508
- return state;
509
- case ActionTypes.valueAxisTitleText: {
510
- if (!state.valueAxis || state.valueAxis.length === 0) {
511
- state.valueAxis = [{ title: { text: value } }];
512
- }
513
- else {
514
- state.valueAxis = (_0 = state.valueAxis) === null || _0 === void 0 ? void 0 : _0.map(axis => (Object.assign(Object.assign({}, axis), { title: Object.assign(Object.assign({}, axis.title), { text: value }) })));
515
- }
516
- return state;
517
- }
518
- case ActionTypes.valueAxisTitleFontName: {
519
- state.valueAxis = (_1 = state.valueAxis) === null || _1 === void 0 ? void 0 : _1.map(axis => { var _a; return (Object.assign(Object.assign({}, axis), { title: Object.assign(Object.assign({}, axis.title), { font: updateFontName(value, fontSizes[0].value, (_a = axis.title) === null || _a === void 0 ? void 0 : _a.font) }) })); });
520
- return state;
521
- }
522
- case ActionTypes.valueAxisTitleFontSize:
523
- state.valueAxis = (_2 = state.valueAxis) === null || _2 === void 0 ? void 0 : _2.map(axis => { var _a; return (Object.assign(Object.assign({}, axis), { title: Object.assign(Object.assign({}, axis.title), { font: updateFontSize(value, fontNames[0].value, (_a = axis.title) === null || _a === void 0 ? void 0 : _a.font) }) })); });
524
- return state;
525
- case ActionTypes.valueAxisTitleColor:
526
- state.valueAxis = (_3 = state.valueAxis) === null || _3 === void 0 ? void 0 : _3.map(axis => (Object.assign(Object.assign({}, axis), { title: Object.assign(Object.assign({}, axis.title), { color: value }) })));
527
- return state;
528
- case ActionTypes.valueAxisLabelsFormat:
529
- state.valueAxis = (_4 = state.valueAxis) === null || _4 === void 0 ? void 0 : _4.map(axis => (Object.assign(Object.assign({}, axis), { labels: Object.assign(Object.assign({}, axis.labels), { format: value }) })));
530
- return state;
531
- case ActionTypes.valueAxisLabelsFontName: {
532
- state.valueAxis = (_5 = state.valueAxis) === null || _5 === void 0 ? void 0 : _5.map(axis => { var _a; return (Object.assign(Object.assign({}, axis), { labels: Object.assign(Object.assign({}, axis.labels), { font: updateFontName(value, fontSizes[0].value, (_a = axis.labels) === null || _a === void 0 ? void 0 : _a.font) }) })); });
533
- return state;
534
- }
535
- case ActionTypes.valueAxisLabelsFontSize:
536
- state.valueAxis = (_6 = state.valueAxis) === null || _6 === void 0 ? void 0 : _6.map(axis => { var _a; return (Object.assign(Object.assign({}, axis), { labels: Object.assign(Object.assign({}, axis.labels), { font: updateFontSize(value, fontNames[0].value, (_a = axis.labels) === null || _a === void 0 ? void 0 : _a.font) }) })); });
537
- return state;
538
- case ActionTypes.valueAxisLabelsColor:
539
- state.valueAxis = (_7 = state.valueAxis) === null || _7 === void 0 ? void 0 : _7.map(axis => (Object.assign(Object.assign({}, axis), { labels: Object.assign(Object.assign({}, axis.labels), { color: value }) })));
540
- return state;
541
- case ActionTypes.valueAxisLabelsRotation: {
542
- const rotation = hasValue(value) ? value : 'auto';
543
- state.valueAxis = (_8 = state.valueAxis) === null || _8 === void 0 ? void 0 : _8.map(axis => (Object.assign(Object.assign({}, axis), { labels: Object.assign(Object.assign({}, axis.labels), { rotation }) })));
544
- return state;
545
- }
546
- default:
547
- return state;
548
- }
549
- };
89
+ const positions = [
90
+ { text: 'Top', value: 'top' },
91
+ { text: 'Bottom', value: 'bottom' },
92
+ { text: 'Left', value: 'left' },
93
+ { text: 'Right', value: 'right' }
94
+ ];
550
95
 
551
96
  /**
552
97
  * @hidden
@@ -580,7 +125,9 @@ class StateService {
580
125
  series: [],
581
126
  initialSeries: [],
582
127
  columns: [],
583
- data: []
128
+ data: [],
129
+ area: { margin: { top: 0, right: 0, bottom: 0, left: 0 } },
130
+ seriesType: 'bar'
584
131
  };
585
132
  this.seriesType = 'bar';
586
133
  this.currentTitle = 'Chart Title';
@@ -601,1777 +148,1801 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
601
148
  /**
602
149
  * @hidden
603
150
  */
604
- class ChartWizardPropertyPaneFormFieldComponent {
605
- constructor(localization, cdr) {
606
- this.localization = localization;
151
+ class ChartWizardPropertyPaneDataTabComponent {
152
+ constructor(stateService, formBuilder, cdr, renderer) {
153
+ this.stateService = stateService;
154
+ this.formBuilder = formBuilder;
607
155
  this.cdr = cdr;
608
- this.colSpan = 1;
609
- this.hasLabel = true;
610
- this.isLabelInsideFormFieldWrap = false;
611
- this.disabled = false;
612
- this.valueChange = new EventEmitter();
613
- this.formField = true;
156
+ this.renderer = renderer;
157
+ this.categoryAxisX = ActionTypes.categoryAxisX;
158
+ this.valueAxisY = ActionTypes.valueAxisY;
159
+ this.trashIcon = trashIcon;
160
+ this.plusIcon = plusIcon;
161
+ this.isCategorical = isCategorical;
162
+ this.formGroup = this.formBuilder.group({
163
+ name: null,
164
+ });
614
165
  }
615
- get isColSpan2() {
616
- return this.colSpan === 2;
166
+ ngAfterViewInit() {
167
+ if (this.grid) {
168
+ const gridHeader = this.grid.wrapper.nativeElement.querySelector('.k-grid .k-grid-header');
169
+ const gridContent = this.grid.wrapper.nativeElement.querySelector('.k-grid .k-grid-content');
170
+ this.renderer.setStyle(gridHeader, 'display', 'none');
171
+ this.renderer.setStyle(gridContent, 'overflow', 'auto');
172
+ }
617
173
  }
618
- ngAfterViewChecked() {
619
- this.localization.changes.subscribe(() => {
620
- this.cdr.detectChanges();
174
+ updateState(action, value) {
175
+ this.stateService.state = updateState(this.stateService.state, action, value);
176
+ }
177
+ createFormGroup(args) {
178
+ const item = args.isNew ? {} : args.dataItem;
179
+ this.formGroup = this.formBuilder.group({
180
+ name: item.name,
621
181
  });
182
+ return this.formGroup;
622
183
  }
623
- ngOnDestroy() {
624
- this.localization.changes.unsubscribe();
184
+ addData() {
185
+ this.stateService.state.series.push(this.stateService.deletedSeries[0]);
186
+ this.stateService.deletedSeries.shift();
187
+ this.updateState(ActionTypes.seriesChange, this.stateService.state.series);
625
188
  }
626
- ngAfterViewInit() {
627
- if (this.hasLabel) {
628
- this.label.for =
629
- this.numericTextBox ||
630
- this.colorPicker ||
631
- this.dropDownList ||
632
- this.textBox ||
633
- this.comboBox ||
634
- this.checkBox;
635
- }
189
+ removeData(event) {
190
+ this.stateService.deletedSeries.push(event.dataItem);
191
+ this.updateState(ActionTypes.seriesChange, event.sender.data.data);
192
+ }
193
+ onRowReorder(grid) {
194
+ this.updateState(ActionTypes.seriesChange, grid.data.data);
195
+ }
196
+ isDisabled(grid) {
197
+ return grid.data.data.length === this.stateService.state.initialSeries.length;
198
+ }
199
+ detectChanges() {
200
+ this.cdr.detectChanges();
636
201
  }
637
202
  }
638
- ChartWizardPropertyPaneFormFieldComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ChartWizardPropertyPaneFormFieldComponent, deps: [{ token: i2.LocalizationService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
639
- ChartWizardPropertyPaneFormFieldComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: ChartWizardPropertyPaneFormFieldComponent, isStandalone: true, selector: "kendo-chartwizard-property-pane-form-field", inputs: { currentState: "currentState", action: "action", class: "class", inputType: "inputType", text: "text", data: "data", placeholder: "placeholder", colSpan: "colSpan", hasLabel: "hasLabel", isLabelInsideFormFieldWrap: "isLabelInsideFormFieldWrap", value: "value", disabled: "disabled" }, outputs: { valueChange: "valueChange" }, host: { properties: { "class.k-form-field": "this.formField", "class.k-col-span-2": "this.isColSpan2" } }, viewQueries: [{ propertyName: "label", first: true, predicate: LabelComponent, descendants: true }, { propertyName: "numericTextBox", first: true, predicate: NumericTextBoxComponent, descendants: true }, { propertyName: "colorPicker", first: true, predicate: ColorPickerComponent, descendants: true }, { propertyName: "dropDownList", first: true, predicate: DropDownListComponent, descendants: true }, { propertyName: "textBox", first: true, predicate: TextBoxComponent, descendants: true }, { propertyName: "comboBox", first: true, predicate: ComboBoxComponent, descendants: true }, { propertyName: "checkBox", first: true, predicate: CheckBoxComponent, descendants: true }], ngImport: i0, template: `
640
- <kendo-label *ngIf="hasLabel && !isLabelInsideFormFieldWrap" class="k-form-label" [text]="text"></kendo-label>
641
- <div class="k-form-field-wrap">
642
- <kendo-label
643
- *ngIf="hasLabel && isLabelInsideFormFieldWrap"
644
- class="k-form-label"
645
- [text]="text"
646
- ></kendo-label>
647
- <kendo-numerictextbox
648
- *ngIf="inputType === 'numeric'"
649
- fillMode="outline"
650
- rounded="medium"
651
- [value]="value"
652
- (valueChange)="valueChange.emit($event)"
653
- placeholder="Auto"
654
- ></kendo-numerictextbox>
655
- <kendo-colorpicker
656
- *ngIf="inputType === 'colorPicker'"
657
- fillMode="outline"
658
- rounded="medium"
659
- [value]="value"
660
- [disabled]="disabled"
661
- (valueChange)="valueChange.emit($event)"
662
- ></kendo-colorpicker>
663
- <kendo-dropdownlist
664
- *ngIf="inputType === 'dropDownList'"
665
- [data]="data"
666
- textField="text"
667
- valueField="value"
668
- [valuePrimitive]="true"
669
- fillMode="outline"
670
- rounded="medium"
671
- size="medium"
672
- [value]="value"
673
- (valueChange)="valueChange.emit($event)"
674
- ></kendo-dropdownlist>
675
- <kendo-combobox
676
- *ngIf="inputType === 'comboBox'"
677
- [data]="data"
678
- [value]="value"
679
- textField="text"
680
- valueField="value"
681
- [valuePrimitive]="true"
682
- fillMode="outline"
683
- rounded="medium"
684
- size="medium"
685
- [placeholder]="placeholder"
686
- (valueChange)="valueChange.emit($event)"
687
- ></kendo-combobox>
688
- <kendo-textbox
689
- *ngIf="inputType === 'text'"
690
- fillMode="outline"
691
- rounded="medium"
692
- [placeholder]="placeholder"
693
- [value]="value"
694
- (valueChange)="valueChange.emit($event)"
695
- ></kendo-textbox>
696
- <kendo-checkbox
697
- *ngIf="inputType === 'checkbox'"
698
- class="k-checkbox-md k-rounded-md"
699
- [checkedState]="value"
700
- (checkedStateChange)="valueChange.emit($event)"
701
- ></kendo-checkbox>
702
- </div>
703
- `, isInline: true, dependencies: [{ kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: LabelComponent, selector: "kendo-label", inputs: ["text", "for", "optional", "labelCssStyle", "labelCssClass"], exportAs: ["kendoLabel"] }, { kind: "component", type: NumericTextBoxComponent, selector: "kendo-numerictextbox", inputs: ["focusableId", "disabled", "readonly", "title", "autoCorrect", "format", "max", "min", "decimals", "placeholder", "step", "spinners", "rangeValidation", "tabindex", "tabIndex", "changeValueOnScroll", "selectOnFocus", "value", "maxlength", "size", "rounded", "fillMode", "inputAttributes"], outputs: ["valueChange", "focus", "blur", "inputFocus", "inputBlur"], exportAs: ["kendoNumericTextBox"] }, { kind: "component", type: ColorPickerComponent, selector: "kendo-colorpicker", inputs: ["views", "view", "activeView", "readonly", "disabled", "format", "value", "popupSettings", "paletteSettings", "gradientSettings", "icon", "iconClass", "svgIcon", "clearButton", "tabindex", "preview", "actionsLayout", "size", "rounded", "fillMode"], outputs: ["valueChange", "open", "close", "focus", "blur", "cancel", "activeColorClick", "clearButtonClick", "activeViewChange"], exportAs: ["kendoColorPicker"] }, { kind: "component", type: DropDownListComponent, selector: "kendo-dropdownlist", inputs: ["customIconClass", "showStickyHeader", "icon", "svgIcon", "loading", "data", "value", "textField", "valueField", "adaptiveMode", "title", "subtitle", "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: ComboBoxComponent, selector: "kendo-combobox", inputs: ["icon", "svgIcon", "inputAttributes", "showStickyHeader", "focusableId", "allowCustom", "data", "value", "textField", "valueField", "valuePrimitive", "valueNormalizer", "placeholder", "adaptiveMode", "title", "subtitle", "popupSettings", "listHeight", "loading", "suggest", "clearButton", "disabled", "itemDisabled", "readonly", "tabindex", "tabIndex", "filterable", "virtual", "size", "rounded", "fillMode"], outputs: ["valueChange", "selectionChange", "filterChange", "open", "opened", "close", "closed", "focus", "blur", "inputFocus", "inputBlur", "escape"], exportAs: ["kendoComboBox"] }, { kind: "component", type: TextBoxComponent, selector: "kendo-textbox", inputs: ["focusableId", "title", "type", "disabled", "readonly", "tabindex", "value", "selectOnFocus", "showSuccessIcon", "showErrorIcon", "clearButton", "successIcon", "successSvgIcon", "errorIcon", "errorSvgIcon", "clearButtonIcon", "clearButtonSvgIcon", "size", "rounded", "fillMode", "tabIndex", "placeholder", "maxlength", "inputAttributes"], outputs: ["valueChange", "inputFocus", "inputBlur", "focus", "blur"], exportAs: ["kendoTextBox"] }, { kind: "component", type: CheckBoxComponent, selector: "kendo-checkbox", inputs: ["checkedState", "rounded"], outputs: ["checkedStateChange"], exportAs: ["kendoCheckBox"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
704
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ChartWizardPropertyPaneFormFieldComponent, decorators: [{
705
- type: Component,
706
- args: [{
707
- selector: 'kendo-chartwizard-property-pane-form-field',
708
- changeDetection: ChangeDetectionStrategy.OnPush,
709
- template: `
710
- <kendo-label *ngIf="hasLabel && !isLabelInsideFormFieldWrap" class="k-form-label" [text]="text"></kendo-label>
711
- <div class="k-form-field-wrap">
712
- <kendo-label
713
- *ngIf="hasLabel && isLabelInsideFormFieldWrap"
714
- class="k-form-label"
715
- [text]="text"
716
- ></kendo-label>
717
- <kendo-numerictextbox
718
- *ngIf="inputType === 'numeric'"
719
- fillMode="outline"
720
- rounded="medium"
721
- [value]="value"
722
- (valueChange)="valueChange.emit($event)"
723
- placeholder="Auto"
724
- ></kendo-numerictextbox>
725
- <kendo-colorpicker
726
- *ngIf="inputType === 'colorPicker'"
727
- fillMode="outline"
728
- rounded="medium"
729
- [value]="value"
730
- [disabled]="disabled"
731
- (valueChange)="valueChange.emit($event)"
732
- ></kendo-colorpicker>
733
- <kendo-dropdownlist
734
- *ngIf="inputType === 'dropDownList'"
735
- [data]="data"
736
- textField="text"
737
- valueField="value"
738
- [valuePrimitive]="true"
739
- fillMode="outline"
740
- rounded="medium"
741
- size="medium"
742
- [value]="value"
743
- (valueChange)="valueChange.emit($event)"
744
- ></kendo-dropdownlist>
745
- <kendo-combobox
746
- *ngIf="inputType === 'comboBox'"
747
- [data]="data"
748
- [value]="value"
749
- textField="text"
750
- valueField="value"
751
- [valuePrimitive]="true"
752
- fillMode="outline"
753
- rounded="medium"
754
- size="medium"
755
- [placeholder]="placeholder"
756
- (valueChange)="valueChange.emit($event)"
757
- ></kendo-combobox>
758
- <kendo-textbox
759
- *ngIf="inputType === 'text'"
760
- fillMode="outline"
761
- rounded="medium"
762
- [placeholder]="placeholder"
763
- [value]="value"
764
- (valueChange)="valueChange.emit($event)"
765
- ></kendo-textbox>
766
- <kendo-checkbox
767
- *ngIf="inputType === 'checkbox'"
768
- class="k-checkbox-md k-rounded-md"
769
- [checkedState]="value"
770
- (checkedStateChange)="valueChange.emit($event)"
771
- ></kendo-checkbox>
772
- </div>
203
+ ChartWizardPropertyPaneDataTabComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ChartWizardPropertyPaneDataTabComponent, deps: [{ token: StateService }, { token: i2.FormBuilder }, { token: i0.ChangeDetectorRef }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component });
204
+ ChartWizardPropertyPaneDataTabComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: ChartWizardPropertyPaneDataTabComponent, isStandalone: true, selector: "kendo-chartwizard-property-pane-data-tab", viewQueries: [{ propertyName: "grid", first: true, predicate: GridComponent, descendants: true }], ngImport: i0, template: `
205
+ <kendo-expansionpanel title="Configuration" [expanded]="true">
206
+ <form class="k-form k-form-md">
207
+ <fieldset class="k-form-fieldset">
208
+ <legend class="k-form-legend">
209
+ {{ stateService.state.seriesType === 'scatter' ? 'X Axis' : 'Category Axis' }}
210
+ </legend>
211
+ <kendo-dropdownlist
212
+ [data]="stateService.state.columns"
213
+ [value]="stateService.state.categoryField"
214
+ (valueChange)="updateState(categoryAxisX, $event)"
215
+ fillMode="outline"
216
+ rounded="medium"
217
+ size="medium"
218
+ >
219
+ </kendo-dropdownlist>
220
+ </fieldset>
221
+ <fieldset class="k-form-fieldset" *ngIf="isCategorical(stateService.state.seriesType)">
222
+ <legend class="k-form-legend">Series</legend>
223
+ <kendo-grid
224
+ #grid
225
+ [kendoGridReactiveEditing]="createFormGroup"
226
+ [kendoGridBinding]="stateService.state.series"
227
+ [rowReorderable]="true"
228
+ (rowReorder)="onRowReorder(grid)"
229
+ (remove)="removeData($event)"
230
+ >
231
+ <ng-template kendoGridToolbarTemplate>
232
+ <button
233
+ kendoButton
234
+ type="button"
235
+ [svgIcon]="plusIcon"
236
+ fillMode="flat"
237
+ rounded="medium"
238
+ [disabled]="isDisabled(grid)"
239
+ (click)="addData()"
240
+ >
241
+ ADD
242
+ </button>
243
+ </ng-template>
244
+ <kendo-grid-rowreorder-column [width]="40"></kendo-grid-rowreorder-column>
245
+ <kendo-grid-column field="name" title="">
246
+ </kendo-grid-column>
247
+ <kendo-grid-command-column [width]="40">
248
+ <ng-template kendoGridCellTemplate>
249
+ <button
250
+ [svgIcon]="trashIcon"
251
+ kendoGridRemoveCommand
252
+ fillMode="flat"
253
+ rounded="medium"
254
+ [disabled]="stateService.state.series.length < 2"
255
+ ></button>
256
+ </ng-template>
257
+ </kendo-grid-command-column>
258
+ </kendo-grid>
259
+ </fieldset>
260
+ <fieldset
261
+ class="k-form-fieldset"
262
+ *ngIf="stateService.state.seriesType === 'pie'"
263
+ >
264
+ <legend class="k-form-legend">
265
+ {{ 'Value Axis' }}
266
+ </legend>
267
+ <kendo-dropdownlist
268
+ [data]="stateService.state.columns"
269
+ [value]="stateService.state.valueField"
270
+ (valueChange)="updateState(valueAxisY, $event)"
271
+ fillMode="outline"
272
+ rounded="medium"
273
+ size="medium"
274
+ >
275
+ </kendo-dropdownlist>
276
+ </fieldset>
277
+ </form>
278
+ </kendo-expansionpanel>
279
+ `, 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", "title", "subtitle", "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: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: GridComponent, selector: "kendo-grid", inputs: ["data", "pageSize", "height", "rowHeight", "detailRowHeight", "skip", "scrollable", "selectable", "sort", "size", "trackBy", "filter", "group", "virtualColumns", "filterable", "sortable", "pageable", "groupable", "rowReorderable", "navigable", "navigatable", "autoSize", "rowClass", "rowSticky", "rowSelected", "cellSelected", "resizable", "reorderable", "loading", "columnMenu", "hideHeader", "isDetailExpanded", "isGroupExpanded"], outputs: ["filterChange", "pageChange", "groupChange", "sortChange", "selectionChange", "rowReorder", "dataStateChange", "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], span[kendoButton], kendo-button", inputs: ["arrowIcon", "toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon", "role", "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", "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 });
280
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ChartWizardPropertyPaneDataTabComponent, decorators: [{
281
+ type: Component,
282
+ args: [{
283
+ selector: 'kendo-chartwizard-property-pane-data-tab',
284
+ changeDetection: ChangeDetectionStrategy.OnPush,
285
+ encapsulation: ViewEncapsulation.None,
286
+ template: `
287
+ <kendo-expansionpanel title="Configuration" [expanded]="true">
288
+ <form class="k-form k-form-md">
289
+ <fieldset class="k-form-fieldset">
290
+ <legend class="k-form-legend">
291
+ {{ stateService.state.seriesType === 'scatter' ? 'X Axis' : 'Category Axis' }}
292
+ </legend>
293
+ <kendo-dropdownlist
294
+ [data]="stateService.state.columns"
295
+ [value]="stateService.state.categoryField"
296
+ (valueChange)="updateState(categoryAxisX, $event)"
297
+ fillMode="outline"
298
+ rounded="medium"
299
+ size="medium"
300
+ >
301
+ </kendo-dropdownlist>
302
+ </fieldset>
303
+ <fieldset class="k-form-fieldset" *ngIf="isCategorical(stateService.state.seriesType)">
304
+ <legend class="k-form-legend">Series</legend>
305
+ <kendo-grid
306
+ #grid
307
+ [kendoGridReactiveEditing]="createFormGroup"
308
+ [kendoGridBinding]="stateService.state.series"
309
+ [rowReorderable]="true"
310
+ (rowReorder)="onRowReorder(grid)"
311
+ (remove)="removeData($event)"
312
+ >
313
+ <ng-template kendoGridToolbarTemplate>
314
+ <button
315
+ kendoButton
316
+ type="button"
317
+ [svgIcon]="plusIcon"
318
+ fillMode="flat"
319
+ rounded="medium"
320
+ [disabled]="isDisabled(grid)"
321
+ (click)="addData()"
322
+ >
323
+ ADD
324
+ </button>
325
+ </ng-template>
326
+ <kendo-grid-rowreorder-column [width]="40"></kendo-grid-rowreorder-column>
327
+ <kendo-grid-column field="name" title="">
328
+ </kendo-grid-column>
329
+ <kendo-grid-command-column [width]="40">
330
+ <ng-template kendoGridCellTemplate>
331
+ <button
332
+ [svgIcon]="trashIcon"
333
+ kendoGridRemoveCommand
334
+ fillMode="flat"
335
+ rounded="medium"
336
+ [disabled]="stateService.state.series.length < 2"
337
+ ></button>
338
+ </ng-template>
339
+ </kendo-grid-command-column>
340
+ </kendo-grid>
341
+ </fieldset>
342
+ <fieldset
343
+ class="k-form-fieldset"
344
+ *ngIf="stateService.state.seriesType === 'pie'"
345
+ >
346
+ <legend class="k-form-legend">
347
+ {{ 'Value Axis' }}
348
+ </legend>
349
+ <kendo-dropdownlist
350
+ [data]="stateService.state.columns"
351
+ [value]="stateService.state.valueField"
352
+ (valueChange)="updateState(valueAxisY, $event)"
353
+ fillMode="outline"
354
+ rounded="medium"
355
+ size="medium"
356
+ >
357
+ </kendo-dropdownlist>
358
+ </fieldset>
359
+ </form>
360
+ </kendo-expansionpanel>
773
361
  `,
774
362
  standalone: true,
775
363
  imports: [
776
- NgIf,
777
- LabelComponent,
778
- NumericTextBoxComponent,
779
- ColorPickerComponent,
364
+ ExpansionPanelComponent,
780
365
  DropDownListComponent,
781
- ComboBoxComponent,
782
- TextBoxComponent,
783
- CheckBoxComponent
366
+ ValueTemplateDirective,
367
+ NgIf,
368
+ GridComponent,
369
+ ReactiveEditingDirective,
370
+ DataBindingDirective,
371
+ ToolbarTemplateDirective,
372
+ ButtonComponent,
373
+ RowReorderColumnComponent,
374
+ ColumnComponent,
375
+ CommandColumnComponent,
376
+ CellTemplateDirective,
377
+ GridToolbarFocusableDirective,
378
+ FocusableDirective,
379
+ RemoveCommandDirective
784
380
  ]
785
381
  }]
786
- }], ctorParameters: function () { return [{ type: i2.LocalizationService }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { currentState: [{
787
- type: Input
788
- }], action: [{
789
- type: Input
790
- }], class: [{
791
- type: Input
792
- }], inputType: [{
793
- type: Input
794
- }], text: [{
795
- type: Input
796
- }], data: [{
797
- type: Input
798
- }], placeholder: [{
799
- type: Input
800
- }], colSpan: [{
801
- type: Input
802
- }], hasLabel: [{
803
- type: Input
804
- }], isLabelInsideFormFieldWrap: [{
805
- type: Input
806
- }], value: [{
807
- type: Input
808
- }], disabled: [{
809
- type: Input
810
- }], valueChange: [{
811
- type: Output
812
- }], formField: [{
813
- type: HostBinding,
814
- args: ['class.k-form-field']
815
- }], isColSpan2: [{
816
- type: HostBinding,
817
- args: ['class.k-col-span-2']
818
- }], label: [{
819
- type: ViewChild,
820
- args: [LabelComponent]
821
- }], numericTextBox: [{
822
- type: ViewChild,
823
- args: [NumericTextBoxComponent]
824
- }], colorPicker: [{
825
- type: ViewChild,
826
- args: [ColorPickerComponent]
827
- }], dropDownList: [{
828
- type: ViewChild,
829
- args: [DropDownListComponent]
830
- }], textBox: [{
831
- type: ViewChild,
832
- args: [TextBoxComponent]
833
- }], comboBox: [{
382
+ }], ctorParameters: function () { return [{ type: StateService }, { type: i2.FormBuilder }, { type: i0.ChangeDetectorRef }, { type: i0.Renderer2 }]; }, propDecorators: { grid: [{
834
383
  type: ViewChild,
835
- args: [ComboBoxComponent]
836
- }], checkBox: [{
837
- type: ViewChild,
838
- args: [CheckBoxComponent]
384
+ args: [GridComponent]
839
385
  }] } });
840
386
 
841
387
  /**
842
388
  * @hidden
843
389
  */
844
- class ChartWizardPropertyPaneDataTabComponent {
845
- constructor(stateService, localization, cdr) {
390
+ class ChartWizardSeriesTypeButtonComponent {
391
+ constructor(stateService) {
846
392
  this.stateService = stateService;
847
- this.localization = localization;
848
- this.cdr = cdr;
849
- this.chartTitles = [
850
- { text: 'Chart Title', value: 'Chart Title' },
851
- { text: 'Chart Subtitle', value: 'Chart Subtitle' },
852
- ];
853
- this.titleText = ActionTypes.titleText;
854
- this.titleFontName = ActionTypes.titleFontName;
855
- this.titleFontSize = ActionTypes.titleFontSize;
856
- this.titleColor = ActionTypes.titleColor;
857
- this.subtitleText = ActionTypes.subtitleText;
858
- this.subtitleFontName = ActionTypes.subtitleFontName;
859
- this.subtitleFontSize = ActionTypes.subtitleFontSize;
860
- this.subtitleColor = ActionTypes.subtitleColor;
861
- this.areaMarginLeft = ActionTypes.areaMarginLeft;
862
- this.areaMarginRight = ActionTypes.areaMarginRight;
863
- this.areaMarginTop = ActionTypes.areaMarginTop;
864
- this.areaMarginBottom = ActionTypes.areaMarginBottom;
865
- this.areaBackground = ActionTypes.areaBackground;
866
- this.legendVisible = ActionTypes.legendVisible;
867
- this.legendFontName = ActionTypes.legendFontName;
868
- this.legendFontSize = ActionTypes.legendFontSize;
869
- this.legendColor = ActionTypes.legendColor;
870
- this.legendPosition = ActionTypes.legendPosition;
871
- this.seriesColor = ActionTypes.seriesColor;
872
- this.seriesLabel = ActionTypes.seriesLabel;
873
- this.categoryAxisTitleText = ActionTypes.categoryAxisTitleText;
874
- this.categoryAxisTitleFontName = ActionTypes.categoryAxisTitleFontName;
875
- this.categoryAxisTitleFontSize = ActionTypes.categoryAxisTitleFontSize;
876
- this.categoryAxisTitleColor = ActionTypes.categoryAxisTitleColor;
877
- this.categoryAxisLabelsFontName = ActionTypes.categoryAxisLabelsFontName;
878
- this.categoryAxisLabelsFontSize = ActionTypes.categoryAxisLabelsFontSize;
879
- this.categoryAxisLabelsColor = ActionTypes.categoryAxisLabelsColor;
880
- this.categoryAxisLabelsRotation = ActionTypes.categoryAxisLabelsRotation;
881
- this.categoryAxisReverseOrder = ActionTypes.categoryAxisReverseOrder;
882
- this.valueAxisTitleText = ActionTypes.valueAxisTitleText;
883
- this.valueAxisTitleFontName = ActionTypes.valueAxisTitleFontName;
884
- this.valueAxisTitleFontSize = ActionTypes.valueAxisTitleFontSize;
885
- this.valueAxisTitleColor = ActionTypes.valueAxisTitleColor;
886
- this.valueAxisLabelsFontName = ActionTypes.valueAxisLabelsFontName;
887
- this.valueAxisLabelsFormat = ActionTypes.valueAxisLabelsFormat;
888
- this.valueAxisLabelsFontSize = ActionTypes.valueAxisLabelsFontSize;
889
- this.valueAxisLabelsColor = ActionTypes.valueAxisLabelsColor;
890
- this.valueAxisLabelsRotation = ActionTypes.valueAxisLabelsRotation;
891
- this.parseFont = parseFont;
892
- this.labelFormats = labelFormats;
893
- this.defaultAllSeriesItem = defaultAllSeriesItem;
894
- this.fontNames = fontNames;
895
- this.fontSizes = fontSizes;
896
- this.legendPositions = positions;
897
- this.labelsRotation = rotations;
898
- }
899
- get chartTitleTypeText() {
900
- var _a, _b;
901
- return this.stateService.currentTitle === 'Chart Title'
902
- ? (_a = this.stateService.state.title) === null || _a === void 0 ? void 0 : _a.text
903
- : (_b = this.stateService.state.subtitle) === null || _b === void 0 ? void 0 : _b.text;
904
- }
905
- get chartTitleTypeFont() {
906
- var _a, _b;
907
- return this.stateService.currentTitle === 'Chart Title'
908
- ? parseFont((_a = this.stateService.state.title) === null || _a === void 0 ? void 0 : _a.font).name
909
- : parseFont((_b = this.stateService.state.subtitle) === null || _b === void 0 ? void 0 : _b.font).name;
910
- }
911
- get chartTitleTypeFontSize() {
912
- var _a, _b;
913
- return this.stateService.currentTitle === 'Chart Title'
914
- ? parseFont((_a = this.stateService.state.title) === null || _a === void 0 ? void 0 : _a.font).size
915
- : parseFont((_b = this.stateService.state.subtitle) === null || _b === void 0 ? void 0 : _b.font).size;
916
- }
917
- get chartTitleTypeColor() {
918
- var _a, _b;
919
- return this.stateService.currentTitle === 'Chart Title'
920
- ? (_a = this.stateService.state.title) === null || _a === void 0 ? void 0 : _a.color
921
- : (_b = this.stateService.state.subtitle) === null || _b === void 0 ? void 0 : _b.color;
922
- }
923
- get chartTitleTypeAction() {
924
- return this.stateService.currentTitle === 'Chart Title' ? this.titleText : this.subtitleText;
925
- }
926
- get chartTitleTypeFontAction() {
927
- return this.stateService.currentTitle === 'Chart Title' ? this.titleFontName : this.subtitleFontName;
928
- }
929
- get chartTitleTypeColorAction() {
930
- return this.stateService.currentTitle === 'Chart Title' ? this.titleColor : this.subtitleColor;
931
- }
932
- get chartTitleTypeFontSizeAction() {
933
- return this.stateService.currentTitle === 'Chart Title' ? this.titleFontSize : this.subtitleFontSize;
934
- }
935
- get seriesData() {
936
- return [defaultAllSeriesItem, ...this.stateService.state.series];
393
+ this.stack = false;
937
394
  }
938
- get showLabels() {
939
- var _a, _b;
940
- return this.stateService.currentSeries.name !== defaultAllSeriesItem.name ? (_b = (_a = this.stateService.state.series.find(s => s.name === this.stateService.currentSeries.name)) === null || _a === void 0 ? void 0 : _a.labels) === null || _b === void 0 ? void 0 : _b.visible : this.stateService.state.series.every(s => { var _a; return (_a = s.labels) === null || _a === void 0 ? void 0 : _a.visible; });
395
+ onSelect() {
396
+ this.stateService.seriesType = this.seriesType;
397
+ if (this.stateService.data.length > 0) {
398
+ this.stateService.state = mergeStates(this.stateService.state, createState(this.stateService.data, this.stateService.seriesType));
399
+ this.stateService.currentSeries = {};
400
+ if (this.stack) {
401
+ this.stateService.state = updateState(this.stateService.state, ActionTypes.stacked, this.stack);
402
+ }
403
+ }
404
+ this.stateService.dataTab.detectChanges();
941
405
  }
942
- get labelFormatValue() {
406
+ isSelected() {
943
407
  var _a;
944
- return ((_a = labelFormats.find(f => { var _a, _b; return f.value === ((_b = (_a = this.stateService.state.valueAxis[0]) === null || _a === void 0 ? void 0 : _a.labels) === null || _b === void 0 ? void 0 : _b.format); })) === null || _a === void 0 ? void 0 : _a.value) || defaultFormat.value;
408
+ return (this.stateService.state.seriesType === this.seriesType &&
409
+ ((_a = this.stateService.state.series[0]) === null || _a === void 0 ? void 0 : _a.stack) === this.stack);
410
+ }
411
+ }
412
+ ChartWizardSeriesTypeButtonComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ChartWizardSeriesTypeButtonComponent, deps: [{ token: StateService }], target: i0.ɵɵFactoryTarget.Component });
413
+ ChartWizardSeriesTypeButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: ChartWizardSeriesTypeButtonComponent, isStandalone: true, selector: "kendo-chartwizard-series-type-button", inputs: { title: "title", chartTypeIcon: "chartTypeIcon", stack: "stack", seriesType: "seriesType" }, ngImport: i0, template: `
414
+ <div class="k-icon-text-wrapper" [class.k-selected]="isSelected()" (click)="onSelect()">
415
+ <div class="k-icon-background-area">
416
+ <kendo-svgicon [icon]="chartTypeIcon" size="xlarge" themeColor="primary"> </kendo-svgicon>
417
+ </div>
418
+ {{ title }}
419
+ </div>
420
+ `, isInline: true, dependencies: [{ kind: "component", type: SVGIconComponent, selector: "kendo-svg-icon, kendo-svgicon", inputs: ["icon"], exportAs: ["kendoSVGIcon"] }] });
421
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ChartWizardSeriesTypeButtonComponent, decorators: [{
422
+ type: Component,
423
+ args: [{
424
+ selector: 'kendo-chartwizard-series-type-button',
425
+ template: `
426
+ <div class="k-icon-text-wrapper" [class.k-selected]="isSelected()" (click)="onSelect()">
427
+ <div class="k-icon-background-area">
428
+ <kendo-svgicon [icon]="chartTypeIcon" size="xlarge" themeColor="primary"> </kendo-svgicon>
429
+ </div>
430
+ {{ title }}
431
+ </div>
432
+ `,
433
+ standalone: true,
434
+ imports: [SVGIconComponent]
435
+ }]
436
+ }], ctorParameters: function () { return [{ type: StateService }]; }, propDecorators: { title: [{
437
+ type: Input
438
+ }], chartTypeIcon: [{
439
+ type: Input
440
+ }], stack: [{
441
+ type: Input
442
+ }], seriesType: [{
443
+ type: Input
444
+ }] } });
445
+
446
+ /**
447
+ * @hidden
448
+ */
449
+ class ChartWizardPropertyPaneChartTabComponent {
450
+ constructor(stateService, cdr, localization) {
451
+ this.stateService = stateService;
452
+ this.cdr = cdr;
453
+ this.localization = localization;
454
+ this.exportIcon = exportIcon;
455
+ this.chartBarClusteredIcon = chartBarClusteredIcon;
456
+ this.chartBarStackedIcon = chartBarStackedIcon;
457
+ this.chartBarStacked100Icon = chartBarStacked100Icon;
458
+ this.chartPieIcon = chartPieIcon;
459
+ this.chartColumnClusteredIcon = chartColumnClusteredIcon;
460
+ this.chartColumnStackedIcon = chartColumnStackedIcon;
461
+ this.chartColumnStacked100Icon = chartColumnStacked100Icon;
462
+ this.chartLineIcon = chartLineIcon;
463
+ this.chartLineStackedIcon = chartLineStackedIcon;
464
+ this.chartLineStacked100Icon = chartLineStacked100Icon;
465
+ this.chartScatterIcon = chartScatterIcon;
945
466
  }
946
467
  ngAfterViewChecked() {
947
468
  this.localization.changes.subscribe(() => {
948
- this.cdr.detectChanges();
469
+ this.detectChanges();
949
470
  });
950
471
  }
951
472
  ngOnDestroy() {
952
473
  this.localization.changes.unsubscribe();
953
474
  }
954
- updateState(action, value) {
955
- if (action === this.seriesLabel && this.stateService.currentSeries.name === defaultAllSeriesItem.name) {
956
- this.stateService.state = updateState(this.stateService.state, action, { name: '', all: true, visible: value.labels.visible });
957
- return;
958
- }
959
- this.stateService.state = updateState(this.stateService.state, action, value);
960
- }
961
- changeCurrentTitle(value) {
962
- this.stateService.currentTitle = value;
963
- }
964
- toggleSeriesLabels(value) {
965
- this.updateCurrentSeries(this.stateService.currentSeries);
966
- this.stateService.currentSeries.labels = { visible: value };
967
- this.updateState(this.seriesLabel, this.stateService.currentSeries);
968
- }
969
- updateCurrentSeries(value) {
970
- if (value.name === defaultAllSeriesItem.name) {
971
- this.stateService.currentSeries = defaultAllSeriesItem;
972
- }
973
- else {
974
- this.stateService.currentSeries = this.stateService.state.series.find((series) => series.name === value.name);
975
- }
976
- }
977
- updateSeriesColor(value) {
978
- this.updateCurrentSeries(this.stateService.currentSeries);
979
- this.stateService.currentSeries.color = value;
980
- this.updateState(this.seriesColor, this.stateService.currentSeries);
475
+ detectChanges() {
476
+ this.cdr.detectChanges();
981
477
  }
982
478
  }
983
- ChartWizardPropertyPaneDataTabComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ChartWizardPropertyPaneDataTabComponent, deps: [{ token: StateService }, { token: i2.LocalizationService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
984
- ChartWizardPropertyPaneDataTabComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: ChartWizardPropertyPaneDataTabComponent, isStandalone: true, selector: "kendo-chartwizard-property-pane-format-tab", ngImport: i0, template: `
985
- <section>
986
- <kendo-expansionpanel
987
- [style.max-width.px]="576"
988
- title="Chart Area"
989
- [expanded]="true"
990
- [attr.dir]="stateService.direction"
991
- >
992
- <form class="k-form k-form-md">
993
- <fieldset class="k-form-fieldset">
994
- <legend class="k-form-legend">Margins</legend>
995
- <div class="k-form-layout k-d-grid k-grid-cols-2 k-gap-x-4">
996
- <kendo-chartwizard-property-pane-form-field
997
- text="Left"
998
- inputType="numeric"
999
- [value]="$any(stateService.state.area?.margin).left"
1000
- (valueChange)="updateState(areaMarginLeft, $event)"
1001
- >
1002
- </kendo-chartwizard-property-pane-form-field>
1003
- <kendo-chartwizard-property-pane-form-field
1004
- text="Right"
1005
- inputType="numeric"
1006
- [value]="$any(stateService.state.area?.margin).right"
1007
- (valueChange)="updateState(areaMarginRight, $event)"
1008
- >
1009
- </kendo-chartwizard-property-pane-form-field>
1010
- <kendo-chartwizard-property-pane-form-field
1011
- text="Top"
1012
- inputType="numeric"
1013
- [value]="$any(stateService.state.area?.margin).top"
1014
- (valueChange)="updateState(areaMarginTop, $event)"
1015
- >
1016
- </kendo-chartwizard-property-pane-form-field>
1017
- <kendo-chartwizard-property-pane-form-field
1018
- text="Bottom"
1019
- inputType="numeric"
1020
- [value]="$any(stateService.state.area?.margin).bottom"
1021
- (valueChange)="updateState(areaMarginBottom, $event)"
1022
- >
1023
- </kendo-chartwizard-property-pane-form-field>
1024
- </div>
1025
- </fieldset>
1026
- <fieldset class="k-form-fieldset">
1027
- <legend class="k-form-legend">Background</legend>
1028
- <kendo-chartwizard-property-pane-form-field
1029
- text="Color"
1030
- inputType="colorPicker"
1031
- [value]="stateService.state.area?.background"
1032
- (valueChange)="updateState(areaBackground, $event)"
1033
- >
1034
- </kendo-chartwizard-property-pane-form-field>
1035
- </fieldset>
1036
- </form>
1037
- </kendo-expansionpanel>
1038
- </section>
1039
- <section>
1040
- <kendo-expansionpanel
1041
- [style.max-width.px]="576"
1042
- title="Title"
1043
- [expanded]="true"
1044
- >
1045
- <form class="k-form k-form-md">
1046
- <div class="k-form-layout k-d-grid k-grid-cols-2 k-gap-x-4">
1047
- <kendo-chartwizard-property-pane-form-field
1048
- text="Apply to"
1049
- inputType="dropDownList"
1050
- [data]="chartTitles"
1051
- [colSpan]="2"
1052
- [value]="stateService.currentTitle"
1053
- (valueChange)="changeCurrentTitle($event)"
1054
- >
1055
- </kendo-chartwizard-property-pane-form-field>
1056
- <kendo-chartwizard-property-pane-form-field
1057
- text="Title"
1058
- inputType="text"
1059
- [colSpan]="2"
1060
- [value]="chartTitleTypeText"
1061
- (valueChange)="updateState(chartTitleTypeAction, $event)"
1062
- >
1063
- </kendo-chartwizard-property-pane-form-field>
1064
- <kendo-chartwizard-property-pane-form-field
1065
- text="Font"
1066
- inputType="comboBox"
1067
- [data]="fontNames"
1068
- [colSpan]="2"
1069
- [value]="chartTitleTypeFont"
1070
- placeholder="(Inherited font)"
1071
- (valueChange)="updateState(chartTitleTypeFontAction, $event)"
1072
- >
1073
- </kendo-chartwizard-property-pane-form-field>
1074
- <kendo-chartwizard-property-pane-form-field
1075
- text="Size"
1076
- inputType="comboBox"
1077
- placeholder="px"
1078
- [data]="fontSizes"
1079
- [value]="chartTitleTypeFontSize"
1080
- (valueChange)="updateState(chartTitleTypeFontSizeAction, $event)"
1081
- >
1082
- </kendo-chartwizard-property-pane-form-field>
1083
- <kendo-chartwizard-property-pane-form-field
1084
- text="Color"
1085
- inputType="colorPicker"
1086
- [value]="chartTitleTypeColor"
1087
- (valueChange)="updateState(chartTitleTypeColorAction, $event)"
1088
- >
1089
- </kendo-chartwizard-property-pane-form-field>
1090
- </div>
1091
- </form>
1092
- </kendo-expansionpanel>
1093
- </section>
1094
- <section>
1095
- <kendo-expansionpanel
1096
- [style.max-width.px]="576"
1097
- title="Legend"
1098
- [expanded]="true"
1099
- >
1100
- <form class="k-form k-form-md">
1101
- <div class="k-form-layout k-d-grid k-grid-cols-2 k-gap-x-4">
1102
- <kendo-label [for]="toggleLegend" text="Show Legend"></kendo-label>
1103
- <kendo-switch
1104
- #toggleLegend
1105
- onLabel="On"
1106
- offLabel="Off"
1107
- thumbRounded="full"
1108
- size="medium"
1109
- [checked]="stateService.state.legend?.visible"
1110
- (valueChange)="updateState(legendVisible, $event)"
1111
- ></kendo-switch>
1112
- <kendo-chartwizard-property-pane-form-field
1113
- text="Font"
1114
- inputType="comboBox"
1115
- [data]="fontNames"
1116
- [colSpan]="2"
1117
- placeholder="(Inherited font)"
1118
- [value]="parseFont(stateService.state.legend?.labels?.font).name"
1119
- (valueChange)="updateState(legendFontName, $event)"
1120
- >
1121
- </kendo-chartwizard-property-pane-form-field>
1122
- <kendo-chartwizard-property-pane-form-field
1123
- text="Size"
1124
- inputType="comboBox"
1125
- [data]="fontSizes"
1126
- placeholder="px"
1127
- [value]="parseFont(stateService.state.legend?.labels?.font).size"
1128
- (valueChange)="updateState(legendFontSize, $event)"
1129
- >
1130
- </kendo-chartwizard-property-pane-form-field>
1131
- <kendo-chartwizard-property-pane-form-field
1132
- text="Color"
1133
- inputType="colorPicker"
1134
- [value]="stateService.state.legend?.labels?.color"
1135
- (valueChange)="updateState(legendColor, $event)"
1136
- >
1137
- </kendo-chartwizard-property-pane-form-field>
1138
- <kendo-chartwizard-property-pane-form-field
1139
- text="Position"
1140
- inputType="dropDownList"
1141
- [colSpan]="2"
1142
- [data]="legendPositions"
1143
- [value]="stateService.state.legend?.position"
1144
- (valueChange)="updateState(legendPosition, $event)"
1145
- >
1146
- </kendo-chartwizard-property-pane-form-field>
1147
- </div>
1148
- </form>
1149
- </kendo-expansionpanel>
1150
- </section>
1151
- <section>
1152
- <kendo-expansionpanel
1153
- [style.max-width.px]="576"
1154
- title="Series"
1155
- [expanded]="true"
1156
- >
1157
- <form class="k-form k-form-md">
1158
- <div class="k-form-field">
1159
- <kendo-label [for]="seriesDropDown" class="k-form-label" text="Apply to"></kendo-label>
1160
- <div class="k-form-field-wrap">
1161
- <kendo-dropdownlist
1162
- #seriesDropDown
1163
- [data]="seriesData"
1164
- textField="name"
1165
- valueField="name"
1166
- fillMode="outline"
1167
- rounded="medium"
1168
- size="medium"
1169
- [value]="stateService.currentSeries"
1170
- (valueChange)="updateCurrentSeries($event)"
1171
- ></kendo-dropdownlist>
1172
- </div>
1173
- </div>
1174
-
1175
- <kendo-chartwizard-property-pane-form-field
1176
- text="Color"
1177
- [value]="stateService.currentSeries?.color"
1178
- inputType="colorPicker"
1179
- [disabled]="stateService.currentSeries.name === defaultAllSeriesItem.name"
1180
- (valueChange)="updateSeriesColor($event)"
1181
- >
1182
- </kendo-chartwizard-property-pane-form-field>
1183
- <kendo-chartwizard-property-pane-form-field
1184
- text="Show Labels"
1185
- [value]="showLabels"
1186
- [isLabelInsideFormFieldWrap]="true"
1187
- inputType="checkbox"
1188
- (valueChange)="toggleSeriesLabels($event)"
1189
- >
1190
- </kendo-chartwizard-property-pane-form-field>
1191
- </form>
1192
- </kendo-expansionpanel>
1193
- </section>
1194
- <section *ngIf="stateService.seriesType !== 'pie'" class="k-row-start-1 k-row-end-3 k-col-start-3">
1195
- <kendo-expansionpanel
1196
- [style.max-width.px]="576"
1197
- [title]="stateService.seriesType === 'scatter' ? 'X Axis' : 'Category axis'"
1198
- [expanded]="true"
1199
- >
1200
- <form class="k-form k-form-md">
1201
- <fieldset class="k-form-fieldset">
1202
- <legend class="k-form-legend">Title</legend>
1203
- <div class="k-form-layout k-d-grid k-grid-cols-2 k-gap-x-4">
1204
- <kendo-chartwizard-property-pane-form-field
1205
- inputType="text"
1206
- [hasLabel]="false"
1207
- [colSpan]="2"
1208
- placeholder="Axis Title"
1209
- [value]="stateService.state.categoryAxis[0]?.title?.text || null"
1210
- (valueChange)="updateState(categoryAxisTitleText, $event)"
1211
- >
1212
- </kendo-chartwizard-property-pane-form-field>
1213
- <kendo-chartwizard-property-pane-form-field
1214
- text="Font"
1215
- inputType="comboBox"
1216
- [data]="fontNames"
1217
- [colSpan]="2"
1218
- placeholder="(Inherited font)"
1219
- [value]="parseFont(stateService.state.categoryAxis[0]?.title?.font).name"
1220
- (valueChange)="updateState(categoryAxisTitleFontName, $event)"
1221
- >
1222
- </kendo-chartwizard-property-pane-form-field>
1223
- <kendo-chartwizard-property-pane-form-field
1224
- text="Size"
1225
- inputType="comboBox"
1226
- placeholder="px"
1227
- [data]="fontSizes"
1228
- [value]="parseFont(stateService.state.categoryAxis[0]?.title?.font).size"
1229
- (valueChange)="updateState(categoryAxisTitleFontSize, $event)"
1230
- >
1231
- </kendo-chartwizard-property-pane-form-field>
1232
- <kendo-chartwizard-property-pane-form-field
1233
- text="Color"
1234
- inputType="colorPicker"
1235
- [value]="stateService.state.categoryAxis[0]?.title?.color"
1236
- (valueChange)="updateState(categoryAxisTitleColor, $event)"
1237
- >
1238
- </kendo-chartwizard-property-pane-form-field>
1239
- </div>
1240
- </fieldset>
1241
- <fieldset class="k-form-fieldset">
1242
- <legend class="k-form-legend">Labels</legend>
1243
- <div class="k-form-layout k-d-grid k-grid-cols-2 k-gap-x-4">
1244
- <kendo-chartwizard-property-pane-form-field
1245
- text="Font"
1246
- inputType="comboBox"
1247
- [data]="fontNames"
1248
- placeholder="(Inherited font)"
1249
- [value]="parseFont(stateService.state.categoryAxis[0]?.labels?.font).name"
1250
- (valueChange)="updateState(categoryAxisLabelsFontName, $event)"
1251
- >
1252
- </kendo-chartwizard-property-pane-form-field>
1253
- <kendo-chartwizard-property-pane-form-field
1254
- text="Size"
1255
- inputType="comboBox"
1256
- [data]="fontSizes"
1257
- placeholder="px"
1258
- [value]="parseFont(stateService.state.categoryAxis[0]?.labels?.font).size"
1259
- (valueChange)="updateState(categoryAxisLabelsFontSize, $event)"
1260
- >
1261
- </kendo-chartwizard-property-pane-form-field>
1262
- <kendo-chartwizard-property-pane-form-field
1263
- text="Color"
1264
- inputType="colorPicker"
1265
- [value]="stateService.state.categoryAxis[0]?.labels?.color || ''"
1266
- (valueChange)="updateState(categoryAxisLabelsColor, $event)"
1267
- >
1268
- </kendo-chartwizard-property-pane-form-field>
1269
- <kendo-chartwizard-property-pane-form-field
1270
- text="Rotation"
1271
- inputType="dropDownList"
1272
- [data]="labelsRotation"
1273
- [value]="stateService.state.categoryAxis[0]?.labels?.rotation"
1274
- (valueChange)="updateState(categoryAxisLabelsRotation, $event)"
1275
- >
1276
- </kendo-chartwizard-property-pane-form-field>
1277
- <span></span>
1278
- <kendo-chartwizard-property-pane-form-field
1279
- text="Reverse Order"
1280
- [isLabelInsideFormFieldWrap]="true"
1281
- inputType="checkbox"
1282
- [colSpan]="2"
1283
- [value]="stateService.state.categoryAxis[0]?.reverse"
1284
- (valueChange)="updateState(categoryAxisReverseOrder, $event)"
1285
- >
1286
- </kendo-chartwizard-property-pane-form-field>
1287
- </div>
1288
- </fieldset>
1289
- </form>
1290
- </kendo-expansionpanel>
1291
- </section>
1292
- <section *ngIf="stateService.seriesType !== 'pie'" class="k-row-start-1 k-row-end-3 k-col-start-4">
1293
- <kendo-expansionpanel
1294
- [style.max-width.px]="576"
1295
- [title]="stateService.seriesType === 'scatter' ? 'Y Axis' : 'Value axis'"
1296
- [expanded]="true"
1297
- >
1298
- <form class="k-form k-form-md">
1299
- <fieldset class="k-form-fieldset">
1300
- <legend class="k-form-legend">Title</legend>
1301
- <div class="k-form-layout k-d-grid k-grid-cols-2 k-gap-x-4">
1302
- <kendo-chartwizard-property-pane-form-field
1303
- inputType="text"
1304
- [hasLabel]="false"
1305
- [colSpan]="2"
1306
- placeholder="Axis Title"
1307
- [value]="stateService.state.valueAxis[0]?.title?.text || null"
1308
- (valueChange)="updateState(valueAxisTitleText, $event)"
1309
- >
1310
- </kendo-chartwizard-property-pane-form-field>
1311
- <kendo-chartwizard-property-pane-form-field
1312
- text="Font"
1313
- inputType="comboBox"
1314
- [colSpan]="2"
1315
- [data]="fontNames"
1316
- placeholder="(Inherited font)"
1317
- [value]="parseFont(stateService.state.valueAxis[0]?.title?.font).name"
1318
- (valueChange)="updateState(valueAxisTitleFontName, $event)"
1319
- >
1320
- </kendo-chartwizard-property-pane-form-field>
1321
- <kendo-chartwizard-property-pane-form-field
1322
- text="Size"
1323
- inputType="comboBox"
1324
- placeholder="px"
1325
- [data]="fontSizes"
1326
- [value]="parseFont(stateService.state.valueAxis[0]?.title?.font).size"
1327
- (valueChange)="updateState(valueAxisTitleFontSize, $event)"
1328
- >
1329
- </kendo-chartwizard-property-pane-form-field>
1330
- <kendo-chartwizard-property-pane-form-field
1331
- text="Color"
1332
- inputType="colorPicker"
1333
- [value]="stateService.state.valueAxis[0]?.title?.color"
1334
- (valueChange)="updateState(valueAxisTitleColor, $event)"
1335
- >
1336
- </kendo-chartwizard-property-pane-form-field>
1337
- </div>
1338
- </fieldset>
1339
- <fieldset class="k-form-fieldset">
1340
- <legend class="k-form-legend">Labels</legend>
1341
- <div class="k-form-layout k-d-grid k-grid-cols-2 k-gap-x-4">
1342
- <kendo-chartwizard-property-pane-form-field
1343
- text="Label Format"
1344
- [colSpan]="2"
1345
- inputType="dropDownList"
1346
- [data]="labelFormats"
1347
- [value]="labelFormatValue"
1348
- (valueChange)="updateState(valueAxisLabelsFormat, $event)"
1349
- >
1350
- </kendo-chartwizard-property-pane-form-field>
1351
- <kendo-chartwizard-property-pane-form-field
1352
- text="Font"
1353
- inputType="comboBox"
1354
- [data]="fontNames"
1355
- placeholder="(Inherited font)"
1356
- [value]="parseFont(stateService.state.valueAxis[0]?.labels?.font).name"
1357
- (valueChange)="updateState(valueAxisLabelsFontName, $event)"
1358
- >
1359
- </kendo-chartwizard-property-pane-form-field>
1360
- <kendo-chartwizard-property-pane-form-field
1361
- text="Size"
1362
- inputType="comboBox"
1363
- [data]="fontSizes"
1364
- placeholder="px"
1365
- [value]="parseFont(stateService.state.valueAxis[0]?.labels?.font).size"
1366
- (valueChange)="updateState(valueAxisLabelsFontSize, $event)"
1367
- >
1368
- </kendo-chartwizard-property-pane-form-field>
1369
- <kendo-chartwizard-property-pane-form-field
1370
- text="Color"
1371
- inputType="colorPicker"
1372
- [value]="stateService.state.valueAxis[0]?.labels?.color || ''"
1373
- (valueChange)="updateState(valueAxisLabelsColor, $event)"
1374
- >
1375
- </kendo-chartwizard-property-pane-form-field>
1376
- <kendo-chartwizard-property-pane-form-field
1377
- text="Rotation"
1378
- inputType="dropDownList"
1379
- [data]="labelsRotation"
1380
- [value]="stateService.state.valueAxis[0]?.labels?.rotation"
1381
- (valueChange)="updateState(valueAxisLabelsRotation, $event)"
1382
- >
1383
- </kendo-chartwizard-property-pane-form-field>
1384
- </div>
1385
- </fieldset>
1386
- </form>
1387
- </kendo-expansionpanel>
1388
- </section>
1389
- `, 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: ChartWizardPropertyPaneFormFieldComponent, selector: "kendo-chartwizard-property-pane-form-field", inputs: ["currentState", "action", "class", "inputType", "text", "data", "placeholder", "colSpan", "hasLabel", "isLabelInsideFormFieldWrap", "value", "disabled"], outputs: ["valueChange"] }, { kind: "component", type: LabelComponent, selector: "kendo-label", inputs: ["text", "for", "optional", "labelCssStyle", "labelCssClass"], exportAs: ["kendoLabel"] }, { kind: "component", type: SwitchComponent, selector: "kendo-switch", inputs: ["focusableId", "onLabel", "offLabel", "checked", "disabled", "readonly", "tabindex", "size", "thumbRounded", "trackRounded", "tabIndex"], outputs: ["focus", "blur", "valueChange"], exportAs: ["kendoSwitch"] }, { kind: "component", type: DropDownListComponent, selector: "kendo-dropdownlist", inputs: ["customIconClass", "showStickyHeader", "icon", "svgIcon", "loading", "data", "value", "textField", "valueField", "adaptiveMode", "title", "subtitle", "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: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
1390
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ChartWizardPropertyPaneDataTabComponent, decorators: [{
1391
- type: Component,
1392
- args: [{
1393
- selector: 'kendo-chartwizard-property-pane-format-tab',
1394
- changeDetection: ChangeDetectionStrategy.OnPush,
1395
- template: `
1396
- <section>
1397
- <kendo-expansionpanel
1398
- [style.max-width.px]="576"
1399
- title="Chart Area"
1400
- [expanded]="true"
1401
- [attr.dir]="stateService.direction"
1402
- >
1403
- <form class="k-form k-form-md">
1404
- <fieldset class="k-form-fieldset">
1405
- <legend class="k-form-legend">Margins</legend>
1406
- <div class="k-form-layout k-d-grid k-grid-cols-2 k-gap-x-4">
1407
- <kendo-chartwizard-property-pane-form-field
1408
- text="Left"
1409
- inputType="numeric"
1410
- [value]="$any(stateService.state.area?.margin).left"
1411
- (valueChange)="updateState(areaMarginLeft, $event)"
1412
- >
1413
- </kendo-chartwizard-property-pane-form-field>
1414
- <kendo-chartwizard-property-pane-form-field
1415
- text="Right"
1416
- inputType="numeric"
1417
- [value]="$any(stateService.state.area?.margin).right"
1418
- (valueChange)="updateState(areaMarginRight, $event)"
1419
- >
1420
- </kendo-chartwizard-property-pane-form-field>
1421
- <kendo-chartwizard-property-pane-form-field
1422
- text="Top"
1423
- inputType="numeric"
1424
- [value]="$any(stateService.state.area?.margin).top"
1425
- (valueChange)="updateState(areaMarginTop, $event)"
1426
- >
1427
- </kendo-chartwizard-property-pane-form-field>
1428
- <kendo-chartwizard-property-pane-form-field
1429
- text="Bottom"
1430
- inputType="numeric"
1431
- [value]="$any(stateService.state.area?.margin).bottom"
1432
- (valueChange)="updateState(areaMarginBottom, $event)"
1433
- >
1434
- </kendo-chartwizard-property-pane-form-field>
1435
- </div>
1436
- </fieldset>
1437
- <fieldset class="k-form-fieldset">
1438
- <legend class="k-form-legend">Background</legend>
1439
- <kendo-chartwizard-property-pane-form-field
1440
- text="Color"
1441
- inputType="colorPicker"
1442
- [value]="stateService.state.area?.background"
1443
- (valueChange)="updateState(areaBackground, $event)"
1444
- >
1445
- </kendo-chartwizard-property-pane-form-field>
1446
- </fieldset>
1447
- </form>
1448
- </kendo-expansionpanel>
1449
- </section>
1450
- <section>
1451
- <kendo-expansionpanel
1452
- [style.max-width.px]="576"
1453
- title="Title"
1454
- [expanded]="true"
1455
- >
1456
- <form class="k-form k-form-md">
1457
- <div class="k-form-layout k-d-grid k-grid-cols-2 k-gap-x-4">
1458
- <kendo-chartwizard-property-pane-form-field
1459
- text="Apply to"
1460
- inputType="dropDownList"
1461
- [data]="chartTitles"
1462
- [colSpan]="2"
1463
- [value]="stateService.currentTitle"
1464
- (valueChange)="changeCurrentTitle($event)"
1465
- >
1466
- </kendo-chartwizard-property-pane-form-field>
1467
- <kendo-chartwizard-property-pane-form-field
1468
- text="Title"
1469
- inputType="text"
1470
- [colSpan]="2"
1471
- [value]="chartTitleTypeText"
1472
- (valueChange)="updateState(chartTitleTypeAction, $event)"
1473
- >
1474
- </kendo-chartwizard-property-pane-form-field>
1475
- <kendo-chartwizard-property-pane-form-field
1476
- text="Font"
1477
- inputType="comboBox"
1478
- [data]="fontNames"
1479
- [colSpan]="2"
1480
- [value]="chartTitleTypeFont"
1481
- placeholder="(Inherited font)"
1482
- (valueChange)="updateState(chartTitleTypeFontAction, $event)"
1483
- >
1484
- </kendo-chartwizard-property-pane-form-field>
1485
- <kendo-chartwizard-property-pane-form-field
1486
- text="Size"
1487
- inputType="comboBox"
1488
- placeholder="px"
1489
- [data]="fontSizes"
1490
- [value]="chartTitleTypeFontSize"
1491
- (valueChange)="updateState(chartTitleTypeFontSizeAction, $event)"
1492
- >
1493
- </kendo-chartwizard-property-pane-form-field>
1494
- <kendo-chartwizard-property-pane-form-field
1495
- text="Color"
1496
- inputType="colorPicker"
1497
- [value]="chartTitleTypeColor"
1498
- (valueChange)="updateState(chartTitleTypeColorAction, $event)"
1499
- >
1500
- </kendo-chartwizard-property-pane-form-field>
1501
- </div>
1502
- </form>
1503
- </kendo-expansionpanel>
1504
- </section>
1505
- <section>
1506
- <kendo-expansionpanel
1507
- [style.max-width.px]="576"
1508
- title="Legend"
1509
- [expanded]="true"
1510
- >
1511
- <form class="k-form k-form-md">
1512
- <div class="k-form-layout k-d-grid k-grid-cols-2 k-gap-x-4">
1513
- <kendo-label [for]="toggleLegend" text="Show Legend"></kendo-label>
1514
- <kendo-switch
1515
- #toggleLegend
1516
- onLabel="On"
1517
- offLabel="Off"
1518
- thumbRounded="full"
1519
- size="medium"
1520
- [checked]="stateService.state.legend?.visible"
1521
- (valueChange)="updateState(legendVisible, $event)"
1522
- ></kendo-switch>
1523
- <kendo-chartwizard-property-pane-form-field
1524
- text="Font"
1525
- inputType="comboBox"
1526
- [data]="fontNames"
1527
- [colSpan]="2"
1528
- placeholder="(Inherited font)"
1529
- [value]="parseFont(stateService.state.legend?.labels?.font).name"
1530
- (valueChange)="updateState(legendFontName, $event)"
1531
- >
1532
- </kendo-chartwizard-property-pane-form-field>
1533
- <kendo-chartwizard-property-pane-form-field
1534
- text="Size"
1535
- inputType="comboBox"
1536
- [data]="fontSizes"
1537
- placeholder="px"
1538
- [value]="parseFont(stateService.state.legend?.labels?.font).size"
1539
- (valueChange)="updateState(legendFontSize, $event)"
1540
- >
1541
- </kendo-chartwizard-property-pane-form-field>
1542
- <kendo-chartwizard-property-pane-form-field
1543
- text="Color"
1544
- inputType="colorPicker"
1545
- [value]="stateService.state.legend?.labels?.color"
1546
- (valueChange)="updateState(legendColor, $event)"
1547
- >
1548
- </kendo-chartwizard-property-pane-form-field>
1549
- <kendo-chartwizard-property-pane-form-field
1550
- text="Position"
1551
- inputType="dropDownList"
1552
- [colSpan]="2"
1553
- [data]="legendPositions"
1554
- [value]="stateService.state.legend?.position"
1555
- (valueChange)="updateState(legendPosition, $event)"
1556
- >
1557
- </kendo-chartwizard-property-pane-form-field>
1558
- </div>
1559
- </form>
1560
- </kendo-expansionpanel>
1561
- </section>
1562
- <section>
1563
- <kendo-expansionpanel
1564
- [style.max-width.px]="576"
1565
- title="Series"
1566
- [expanded]="true"
1567
- >
1568
- <form class="k-form k-form-md">
1569
- <div class="k-form-field">
1570
- <kendo-label [for]="seriesDropDown" class="k-form-label" text="Apply to"></kendo-label>
1571
- <div class="k-form-field-wrap">
1572
- <kendo-dropdownlist
1573
- #seriesDropDown
1574
- [data]="seriesData"
1575
- textField="name"
1576
- valueField="name"
1577
- fillMode="outline"
1578
- rounded="medium"
1579
- size="medium"
1580
- [value]="stateService.currentSeries"
1581
- (valueChange)="updateCurrentSeries($event)"
1582
- ></kendo-dropdownlist>
1583
- </div>
1584
- </div>
1585
-
1586
- <kendo-chartwizard-property-pane-form-field
1587
- text="Color"
1588
- [value]="stateService.currentSeries?.color"
1589
- inputType="colorPicker"
1590
- [disabled]="stateService.currentSeries.name === defaultAllSeriesItem.name"
1591
- (valueChange)="updateSeriesColor($event)"
1592
- >
1593
- </kendo-chartwizard-property-pane-form-field>
1594
- <kendo-chartwizard-property-pane-form-field
1595
- text="Show Labels"
1596
- [value]="showLabels"
1597
- [isLabelInsideFormFieldWrap]="true"
1598
- inputType="checkbox"
1599
- (valueChange)="toggleSeriesLabels($event)"
1600
- >
1601
- </kendo-chartwizard-property-pane-form-field>
1602
- </form>
1603
- </kendo-expansionpanel>
1604
- </section>
1605
- <section *ngIf="stateService.seriesType !== 'pie'" class="k-row-start-1 k-row-end-3 k-col-start-3">
1606
- <kendo-expansionpanel
1607
- [style.max-width.px]="576"
1608
- [title]="stateService.seriesType === 'scatter' ? 'X Axis' : 'Category axis'"
1609
- [expanded]="true"
1610
- >
1611
- <form class="k-form k-form-md">
1612
- <fieldset class="k-form-fieldset">
1613
- <legend class="k-form-legend">Title</legend>
1614
- <div class="k-form-layout k-d-grid k-grid-cols-2 k-gap-x-4">
1615
- <kendo-chartwizard-property-pane-form-field
1616
- inputType="text"
1617
- [hasLabel]="false"
1618
- [colSpan]="2"
1619
- placeholder="Axis Title"
1620
- [value]="stateService.state.categoryAxis[0]?.title?.text || null"
1621
- (valueChange)="updateState(categoryAxisTitleText, $event)"
1622
- >
1623
- </kendo-chartwizard-property-pane-form-field>
1624
- <kendo-chartwizard-property-pane-form-field
1625
- text="Font"
1626
- inputType="comboBox"
1627
- [data]="fontNames"
1628
- [colSpan]="2"
1629
- placeholder="(Inherited font)"
1630
- [value]="parseFont(stateService.state.categoryAxis[0]?.title?.font).name"
1631
- (valueChange)="updateState(categoryAxisTitleFontName, $event)"
1632
- >
1633
- </kendo-chartwizard-property-pane-form-field>
1634
- <kendo-chartwizard-property-pane-form-field
1635
- text="Size"
1636
- inputType="comboBox"
1637
- placeholder="px"
1638
- [data]="fontSizes"
1639
- [value]="parseFont(stateService.state.categoryAxis[0]?.title?.font).size"
1640
- (valueChange)="updateState(categoryAxisTitleFontSize, $event)"
1641
- >
1642
- </kendo-chartwizard-property-pane-form-field>
1643
- <kendo-chartwizard-property-pane-form-field
1644
- text="Color"
1645
- inputType="colorPicker"
1646
- [value]="stateService.state.categoryAxis[0]?.title?.color"
1647
- (valueChange)="updateState(categoryAxisTitleColor, $event)"
1648
- >
1649
- </kendo-chartwizard-property-pane-form-field>
1650
- </div>
1651
- </fieldset>
1652
- <fieldset class="k-form-fieldset">
1653
- <legend class="k-form-legend">Labels</legend>
1654
- <div class="k-form-layout k-d-grid k-grid-cols-2 k-gap-x-4">
1655
- <kendo-chartwizard-property-pane-form-field
1656
- text="Font"
1657
- inputType="comboBox"
1658
- [data]="fontNames"
1659
- placeholder="(Inherited font)"
1660
- [value]="parseFont(stateService.state.categoryAxis[0]?.labels?.font).name"
1661
- (valueChange)="updateState(categoryAxisLabelsFontName, $event)"
1662
- >
1663
- </kendo-chartwizard-property-pane-form-field>
1664
- <kendo-chartwizard-property-pane-form-field
1665
- text="Size"
1666
- inputType="comboBox"
1667
- [data]="fontSizes"
1668
- placeholder="px"
1669
- [value]="parseFont(stateService.state.categoryAxis[0]?.labels?.font).size"
1670
- (valueChange)="updateState(categoryAxisLabelsFontSize, $event)"
1671
- >
1672
- </kendo-chartwizard-property-pane-form-field>
1673
- <kendo-chartwizard-property-pane-form-field
1674
- text="Color"
1675
- inputType="colorPicker"
1676
- [value]="stateService.state.categoryAxis[0]?.labels?.color || ''"
1677
- (valueChange)="updateState(categoryAxisLabelsColor, $event)"
1678
- >
1679
- </kendo-chartwizard-property-pane-form-field>
1680
- <kendo-chartwizard-property-pane-form-field
1681
- text="Rotation"
1682
- inputType="dropDownList"
1683
- [data]="labelsRotation"
1684
- [value]="stateService.state.categoryAxis[0]?.labels?.rotation"
1685
- (valueChange)="updateState(categoryAxisLabelsRotation, $event)"
1686
- >
1687
- </kendo-chartwizard-property-pane-form-field>
1688
- <span></span>
1689
- <kendo-chartwizard-property-pane-form-field
1690
- text="Reverse Order"
1691
- [isLabelInsideFormFieldWrap]="true"
1692
- inputType="checkbox"
1693
- [colSpan]="2"
1694
- [value]="stateService.state.categoryAxis[0]?.reverse"
1695
- (valueChange)="updateState(categoryAxisReverseOrder, $event)"
1696
- >
1697
- </kendo-chartwizard-property-pane-form-field>
1698
- </div>
1699
- </fieldset>
1700
- </form>
1701
- </kendo-expansionpanel>
1702
- </section>
1703
- <section *ngIf="stateService.seriesType !== 'pie'" class="k-row-start-1 k-row-end-3 k-col-start-4">
1704
- <kendo-expansionpanel
1705
- [style.max-width.px]="576"
1706
- [title]="stateService.seriesType === 'scatter' ? 'Y Axis' : 'Value axis'"
1707
- [expanded]="true"
1708
- >
1709
- <form class="k-form k-form-md">
1710
- <fieldset class="k-form-fieldset">
1711
- <legend class="k-form-legend">Title</legend>
1712
- <div class="k-form-layout k-d-grid k-grid-cols-2 k-gap-x-4">
1713
- <kendo-chartwizard-property-pane-form-field
1714
- inputType="text"
1715
- [hasLabel]="false"
1716
- [colSpan]="2"
1717
- placeholder="Axis Title"
1718
- [value]="stateService.state.valueAxis[0]?.title?.text || null"
1719
- (valueChange)="updateState(valueAxisTitleText, $event)"
1720
- >
1721
- </kendo-chartwizard-property-pane-form-field>
1722
- <kendo-chartwizard-property-pane-form-field
1723
- text="Font"
1724
- inputType="comboBox"
1725
- [colSpan]="2"
1726
- [data]="fontNames"
1727
- placeholder="(Inherited font)"
1728
- [value]="parseFont(stateService.state.valueAxis[0]?.title?.font).name"
1729
- (valueChange)="updateState(valueAxisTitleFontName, $event)"
1730
- >
1731
- </kendo-chartwizard-property-pane-form-field>
1732
- <kendo-chartwizard-property-pane-form-field
1733
- text="Size"
1734
- inputType="comboBox"
1735
- placeholder="px"
1736
- [data]="fontSizes"
1737
- [value]="parseFont(stateService.state.valueAxis[0]?.title?.font).size"
1738
- (valueChange)="updateState(valueAxisTitleFontSize, $event)"
1739
- >
1740
- </kendo-chartwizard-property-pane-form-field>
1741
- <kendo-chartwizard-property-pane-form-field
1742
- text="Color"
1743
- inputType="colorPicker"
1744
- [value]="stateService.state.valueAxis[0]?.title?.color"
1745
- (valueChange)="updateState(valueAxisTitleColor, $event)"
1746
- >
1747
- </kendo-chartwizard-property-pane-form-field>
1748
- </div>
1749
- </fieldset>
1750
- <fieldset class="k-form-fieldset">
1751
- <legend class="k-form-legend">Labels</legend>
1752
- <div class="k-form-layout k-d-grid k-grid-cols-2 k-gap-x-4">
1753
- <kendo-chartwizard-property-pane-form-field
1754
- text="Label Format"
1755
- [colSpan]="2"
1756
- inputType="dropDownList"
1757
- [data]="labelFormats"
1758
- [value]="labelFormatValue"
1759
- (valueChange)="updateState(valueAxisLabelsFormat, $event)"
1760
- >
1761
- </kendo-chartwizard-property-pane-form-field>
1762
- <kendo-chartwizard-property-pane-form-field
1763
- text="Font"
1764
- inputType="comboBox"
1765
- [data]="fontNames"
1766
- placeholder="(Inherited font)"
1767
- [value]="parseFont(stateService.state.valueAxis[0]?.labels?.font).name"
1768
- (valueChange)="updateState(valueAxisLabelsFontName, $event)"
1769
- >
1770
- </kendo-chartwizard-property-pane-form-field>
1771
- <kendo-chartwizard-property-pane-form-field
1772
- text="Size"
1773
- inputType="comboBox"
1774
- [data]="fontSizes"
1775
- placeholder="px"
1776
- [value]="parseFont(stateService.state.valueAxis[0]?.labels?.font).size"
1777
- (valueChange)="updateState(valueAxisLabelsFontSize, $event)"
1778
- >
1779
- </kendo-chartwizard-property-pane-form-field>
1780
- <kendo-chartwizard-property-pane-form-field
1781
- text="Color"
1782
- inputType="colorPicker"
1783
- [value]="stateService.state.valueAxis[0]?.labels?.color || ''"
1784
- (valueChange)="updateState(valueAxisLabelsColor, $event)"
1785
- >
1786
- </kendo-chartwizard-property-pane-form-field>
1787
- <kendo-chartwizard-property-pane-form-field
1788
- text="Rotation"
1789
- inputType="dropDownList"
1790
- [data]="labelsRotation"
1791
- [value]="stateService.state.valueAxis[0]?.labels?.rotation"
1792
- (valueChange)="updateState(valueAxisLabelsRotation, $event)"
1793
- >
1794
- </kendo-chartwizard-property-pane-form-field>
1795
- </div>
1796
- </fieldset>
1797
- </form>
1798
- </kendo-expansionpanel>
1799
- </section>
479
+ ChartWizardPropertyPaneChartTabComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ChartWizardPropertyPaneChartTabComponent, deps: [{ token: StateService }, { token: i0.ChangeDetectorRef }, { token: i2$1.LocalizationService }], target: i0.ɵɵFactoryTarget.Component });
480
+ ChartWizardPropertyPaneChartTabComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: ChartWizardPropertyPaneChartTabComponent, isStandalone: true, selector: "kendo-chartwizard-property-pane-chart-tab", ngImport: i0, template: `
481
+ <kendo-expansionpanel title="Bar Chart" [expanded]="true">
482
+ <div class="k-chart-types-wrapper">
483
+ <kendo-chartwizard-series-type-button
484
+ title="Bar"
485
+ [chartTypeIcon]="chartBarClusteredIcon"
486
+ seriesType="bar"
487
+ [stack]="false"
488
+ >
489
+ </kendo-chartwizard-series-type-button>
490
+ <kendo-chartwizard-series-type-button
491
+ title="Stacked Bar"
492
+ [chartTypeIcon]="chartBarStackedIcon"
493
+ seriesType="bar"
494
+ [stack]="true"
495
+ >
496
+ </kendo-chartwizard-series-type-button>
497
+ <kendo-chartwizard-series-type-button
498
+ title="100% Stacked Bar"
499
+ [chartTypeIcon]="chartBarStacked100Icon"
500
+ seriesType="bar"
501
+ [stack]="{ type: '100%' }"
502
+ >
503
+ </kendo-chartwizard-series-type-button>
504
+ </div>
505
+ </kendo-expansionpanel>
506
+ <kendo-expansionpanel title="Pie Chart" [expanded]="true">
507
+ <div class="k-chart-types-wrapper">
508
+ <kendo-chartwizard-series-type-button
509
+ title="Pie"
510
+ [chartTypeIcon]="chartPieIcon"
511
+ seriesType="pie"
512
+ [stack]="undefined"
513
+ >
514
+ </kendo-chartwizard-series-type-button>
515
+ </div>
516
+ </kendo-expansionpanel>
517
+ <kendo-expansionpanel title="Column Chart" [expanded]="true">
518
+ <div class="k-chart-types-wrapper">
519
+ <kendo-chartwizard-series-type-button
520
+ title="Column"
521
+ [chartTypeIcon]="chartColumnClusteredIcon"
522
+ seriesType="column"
523
+ [stack]="false"
524
+ >
525
+ </kendo-chartwizard-series-type-button>
526
+ <kendo-chartwizard-series-type-button
527
+ title="Stacked Column"
528
+ [chartTypeIcon]="chartColumnStackedIcon"
529
+ seriesType="column"
530
+ [stack]="true"
531
+ >
532
+ </kendo-chartwizard-series-type-button>
533
+ <kendo-chartwizard-series-type-button
534
+ title="100% Stacked Column"
535
+ [chartTypeIcon]="chartColumnStacked100Icon"
536
+ seriesType="column"
537
+ [stack]="{ type: '100%' }"
538
+ >
539
+ </kendo-chartwizard-series-type-button>
540
+ </div>
541
+ </kendo-expansionpanel>
542
+ <kendo-expansionpanel title="Line Chart" [expanded]="true">
543
+ <div class="k-chart-types-wrapper">
544
+ <kendo-chartwizard-series-type-button
545
+ title="Line"
546
+ [chartTypeIcon]="chartLineIcon"
547
+ seriesType="line"
548
+ [stack]="false"
549
+ >
550
+ </kendo-chartwizard-series-type-button>
551
+ <kendo-chartwizard-series-type-button
552
+ title="Stacked Line"
553
+ [chartTypeIcon]="chartLineStackedIcon"
554
+ seriesType="line"
555
+ [stack]="true"
556
+ >
557
+ </kendo-chartwizard-series-type-button>
558
+ <kendo-chartwizard-series-type-button
559
+ title="100% Line Column"
560
+ [chartTypeIcon]="chartLineStacked100Icon"
561
+ seriesType="line"
562
+ [stack]="{ type: '100%' }"
563
+ >
564
+ </kendo-chartwizard-series-type-button>
565
+ </div>
566
+ </kendo-expansionpanel>
567
+ <kendo-expansionpanel title="Scatter Chart" [expanded]="true">
568
+ <div class="k-chart-types-wrapper">
569
+ <kendo-chartwizard-series-type-button
570
+ title="Scatter"
571
+ [chartTypeIcon]="chartScatterIcon"
572
+ seriesType="scatter"
573
+ [stack]="false"
574
+ >
575
+ </kendo-chartwizard-series-type-button>
576
+ </div>
577
+ </kendo-expansionpanel>
578
+ `, 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 });
579
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ChartWizardPropertyPaneChartTabComponent, decorators: [{
580
+ type: Component,
581
+ args: [{
582
+ selector: 'kendo-chartwizard-property-pane-chart-tab',
583
+ changeDetection: ChangeDetectionStrategy.OnPush,
584
+ template: `
585
+ <kendo-expansionpanel title="Bar Chart" [expanded]="true">
586
+ <div class="k-chart-types-wrapper">
587
+ <kendo-chartwizard-series-type-button
588
+ title="Bar"
589
+ [chartTypeIcon]="chartBarClusteredIcon"
590
+ seriesType="bar"
591
+ [stack]="false"
592
+ >
593
+ </kendo-chartwizard-series-type-button>
594
+ <kendo-chartwizard-series-type-button
595
+ title="Stacked Bar"
596
+ [chartTypeIcon]="chartBarStackedIcon"
597
+ seriesType="bar"
598
+ [stack]="true"
599
+ >
600
+ </kendo-chartwizard-series-type-button>
601
+ <kendo-chartwizard-series-type-button
602
+ title="100% Stacked Bar"
603
+ [chartTypeIcon]="chartBarStacked100Icon"
604
+ seriesType="bar"
605
+ [stack]="{ type: '100%' }"
606
+ >
607
+ </kendo-chartwizard-series-type-button>
608
+ </div>
609
+ </kendo-expansionpanel>
610
+ <kendo-expansionpanel title="Pie Chart" [expanded]="true">
611
+ <div class="k-chart-types-wrapper">
612
+ <kendo-chartwizard-series-type-button
613
+ title="Pie"
614
+ [chartTypeIcon]="chartPieIcon"
615
+ seriesType="pie"
616
+ [stack]="undefined"
617
+ >
618
+ </kendo-chartwizard-series-type-button>
619
+ </div>
620
+ </kendo-expansionpanel>
621
+ <kendo-expansionpanel title="Column Chart" [expanded]="true">
622
+ <div class="k-chart-types-wrapper">
623
+ <kendo-chartwizard-series-type-button
624
+ title="Column"
625
+ [chartTypeIcon]="chartColumnClusteredIcon"
626
+ seriesType="column"
627
+ [stack]="false"
628
+ >
629
+ </kendo-chartwizard-series-type-button>
630
+ <kendo-chartwizard-series-type-button
631
+ title="Stacked Column"
632
+ [chartTypeIcon]="chartColumnStackedIcon"
633
+ seriesType="column"
634
+ [stack]="true"
635
+ >
636
+ </kendo-chartwizard-series-type-button>
637
+ <kendo-chartwizard-series-type-button
638
+ title="100% Stacked Column"
639
+ [chartTypeIcon]="chartColumnStacked100Icon"
640
+ seriesType="column"
641
+ [stack]="{ type: '100%' }"
642
+ >
643
+ </kendo-chartwizard-series-type-button>
644
+ </div>
645
+ </kendo-expansionpanel>
646
+ <kendo-expansionpanel title="Line Chart" [expanded]="true">
647
+ <div class="k-chart-types-wrapper">
648
+ <kendo-chartwizard-series-type-button
649
+ title="Line"
650
+ [chartTypeIcon]="chartLineIcon"
651
+ seriesType="line"
652
+ [stack]="false"
653
+ >
654
+ </kendo-chartwizard-series-type-button>
655
+ <kendo-chartwizard-series-type-button
656
+ title="Stacked Line"
657
+ [chartTypeIcon]="chartLineStackedIcon"
658
+ seriesType="line"
659
+ [stack]="true"
660
+ >
661
+ </kendo-chartwizard-series-type-button>
662
+ <kendo-chartwizard-series-type-button
663
+ title="100% Line Column"
664
+ [chartTypeIcon]="chartLineStacked100Icon"
665
+ seriesType="line"
666
+ [stack]="{ type: '100%' }"
667
+ >
668
+ </kendo-chartwizard-series-type-button>
669
+ </div>
670
+ </kendo-expansionpanel>
671
+ <kendo-expansionpanel title="Scatter Chart" [expanded]="true">
672
+ <div class="k-chart-types-wrapper">
673
+ <kendo-chartwizard-series-type-button
674
+ title="Scatter"
675
+ [chartTypeIcon]="chartScatterIcon"
676
+ seriesType="scatter"
677
+ [stack]="false"
678
+ >
679
+ </kendo-chartwizard-series-type-button>
680
+ </div>
681
+ </kendo-expansionpanel>
1800
682
  `,
1801
683
  standalone: true,
1802
- imports: [
1803
- ExpansionPanelComponent,
1804
- ChartWizardPropertyPaneFormFieldComponent,
1805
- LabelComponent,
1806
- SwitchComponent,
1807
- DropDownListComponent,
1808
- NgIf
1809
- ]
684
+ imports: [ExpansionPanelComponent, ChartWizardSeriesTypeButtonComponent]
1810
685
  }]
1811
- }], ctorParameters: function () { return [{ type: StateService }, { type: i2.LocalizationService }, { type: i0.ChangeDetectorRef }]; } });
686
+ }], ctorParameters: function () { return [{ type: StateService }, { type: i0.ChangeDetectorRef }, { type: i2$1.LocalizationService }]; } });
1812
687
 
1813
688
  /**
1814
689
  * @hidden
1815
690
  */
1816
- class ChartWizardPropertyPaneFormatTabComponent {
1817
- constructor(stateService, formBuilder) {
1818
- this.stateService = stateService;
1819
- this.formBuilder = formBuilder;
1820
- this.categoryAxisX = ActionTypes.categoryAxisX;
1821
- this.valueAxisY = ActionTypes.valueAxisY;
1822
- this.seriesChange = ActionTypes.seriesChange;
1823
- this.trashIcon = trashIcon;
1824
- this.plusIcon = plusIcon;
1825
- this.isCategorical = isCategorical;
1826
- this.formGroup = this.formBuilder.group({
1827
- name: null,
1828
- });
691
+ class PreventableEvent {
692
+ constructor() {
693
+ this.prevented = false;
1829
694
  }
1830
- updateState(action, value) {
1831
- this.stateService.state = updateState(this.stateService.state, action, value);
695
+ /**
696
+ * Prevents the default action for a specified event.
697
+ * In this way, the source component suppresses
698
+ * the built-in behavior that follows the event.
699
+ */
700
+ preventDefault() {
701
+ this.prevented = true;
1832
702
  }
1833
- createFormGroup(args) {
1834
- const item = args.isNew ? {} : args.dataItem;
1835
- this.formGroup = this.formBuilder.group({
1836
- name: item.name,
1837
- });
1838
- return this.formGroup;
703
+ /**
704
+ * Returns `true` if the event was prevented
705
+ * by any of its subscribers.
706
+ *
707
+ * @returns `true` if the default action was prevented.
708
+ * Otherwise, returns `false`.
709
+ */
710
+ isDefaultPrevented() {
711
+ return this.prevented;
1839
712
  }
1840
- addData() {
1841
- this.stateService.state.series.push(this.stateService.deletedSeries[0]);
1842
- this.stateService.deletedSeries.shift();
1843
- this.updateState(this.seriesChange, this.stateService.state.series);
713
+ }
714
+
715
+ /**
716
+ * Arguments for the `export` event on the Chart Wizard.
717
+ */
718
+ class ExportEvent extends PreventableEvent {
719
+ /**
720
+ * @hidden
721
+ */
722
+ constructor(chart, exportOptions) {
723
+ super();
724
+ this.chart = chart;
725
+ this.exportOptions = exportOptions;
1844
726
  }
1845
- removeData(event) {
1846
- this.stateService.deletedSeries.push(event.dataItem);
1847
- this.updateState(this.seriesChange, event.sender.data.data);
727
+ }
728
+
729
+ /**
730
+ * @hidden
731
+ */
732
+ class ChartWizardPropertyPaneFormFieldComponent {
733
+ constructor(localization, cdr) {
734
+ this.localization = localization;
735
+ this.cdr = cdr;
736
+ this.colSpan = 1;
737
+ this.hasLabel = true;
738
+ this.isLabelInsideFormFieldWrap = false;
739
+ this.disabled = false;
740
+ this.valueChange = new EventEmitter();
741
+ this.formField = true;
1848
742
  }
1849
- onRowReorder(grid) {
1850
- this.updateState(this.seriesChange, grid.data.data);
743
+ get isColSpan2() {
744
+ return this.colSpan === 2;
1851
745
  }
1852
- isDisabled(grid) {
1853
- return grid.data.data.length === this.stateService.state.initialSeries.length;
746
+ ngAfterViewChecked() {
747
+ this.localization.changes.subscribe(() => {
748
+ this.cdr.detectChanges();
749
+ });
750
+ }
751
+ ngOnDestroy() {
752
+ this.localization.changes.unsubscribe();
753
+ }
754
+ ngAfterViewInit() {
755
+ if (this.hasLabel) {
756
+ this.label.for =
757
+ this.numericTextBox ||
758
+ this.colorPicker ||
759
+ this.dropDownList ||
760
+ this.textBox ||
761
+ this.comboBox ||
762
+ this.checkBox;
763
+ }
1854
764
  }
1855
765
  }
1856
- ChartWizardPropertyPaneFormatTabComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ChartWizardPropertyPaneFormatTabComponent, deps: [{ token: StateService }, { token: i2$1.FormBuilder }], target: i0.ɵɵFactoryTarget.Component });
1857
- ChartWizardPropertyPaneFormatTabComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: ChartWizardPropertyPaneFormatTabComponent, isStandalone: true, selector: "kendo-chartwizard-property-pane-data-tab", ngImport: i0, template: `
1858
- <kendo-expansionpanel title="Configuration" [expanded]="true">
1859
- <form class="k-form k-form-md">
1860
- <fieldset class="k-form-fieldset">
1861
- <legend class="k-form-legend">
1862
- {{ stateService.seriesType === 'scatter' ? 'X Axis' : 'Category Axis' }}
1863
- </legend>
1864
- <kendo-dropdownlist
1865
- [data]="stateService.state.columns"
1866
- [value]="stateService.state.categoryField"
1867
- (valueChange)="updateState(categoryAxisX, $event)"
1868
- fillMode="outline"
1869
- rounded="medium"
1870
- size="medium"
1871
- >
1872
- </kendo-dropdownlist>
1873
- </fieldset>
1874
- <fieldset class="k-form-fieldset" *ngIf="isCategorical(stateService.seriesType)">
1875
- <legend class="k-form-legend">Series</legend>
1876
- <kendo-grid
1877
- #grid
1878
- [kendoGridReactiveEditing]="createFormGroup"
1879
- [kendoGridBinding]="stateService.state.series"
1880
- [rowReorderable]="true"
1881
- (rowReorder)="onRowReorder(grid)"
1882
- (remove)="removeData($event)"
1883
- >
1884
- <ng-template kendoGridToolbarTemplate>
1885
- <button
1886
- kendoButton
1887
- type="button"
1888
- [svgIcon]="plusIcon"
1889
- fillMode="flat"
1890
- rounded="medium"
1891
- [disabled]="isDisabled(grid)"
1892
- (click)="addData()"
1893
- >
1894
- ADD
1895
- </button>
1896
- </ng-template>
1897
- <kendo-grid-rowreorder-column [width]="40"></kendo-grid-rowreorder-column>
1898
- <kendo-grid-column field="name" title="Name"></kendo-grid-column>
1899
- <kendo-grid-command-column [width]="40">
1900
- <ng-template kendoGridCellTemplate>
1901
- <button
1902
- [svgIcon]="trashIcon"
1903
- kendoGridRemoveCommand
1904
- fillMode="flat"
1905
- rounded="medium"
1906
- [disabled]="stateService.state.series.length < 2"
1907
- ></button>
1908
- </ng-template>
1909
- </kendo-grid-command-column>
1910
- </kendo-grid>
1911
- </fieldset>
1912
- <fieldset
1913
- class="k-form-fieldset"
1914
- *ngIf="stateService.seriesType === 'pie' || stateService.seriesType === 'scatter'"
1915
- >
1916
- <legend class="k-form-legend">
1917
- {{ stateService.seriesType === 'scatter' ? 'Y Axis' : 'Value Axis' }}
1918
- </legend>
1919
- <kendo-dropdownlist
1920
- [data]="stateService.state.columns"
1921
- [value]="stateService.state.yField"
1922
- (valueChange)="updateState(valueAxisY, $event)"
1923
- fillMode="outline"
1924
- rounded="medium"
1925
- size="medium"
1926
- >
1927
- </kendo-dropdownlist>
1928
- </fieldset>
1929
- </form>
1930
- </kendo-expansionpanel>
1931
- `, 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", "title", "subtitle", "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: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: GridComponent, selector: "kendo-grid", inputs: ["data", "pageSize", "height", "rowHeight", "detailRowHeight", "skip", "scrollable", "selectable", "sort", "size", "trackBy", "filter", "group", "virtualColumns", "filterable", "sortable", "pageable", "groupable", "rowReorderable", "navigable", "navigatable", "autoSize", "rowClass", "rowSticky", "rowSelected", "cellSelected", "resizable", "reorderable", "loading", "columnMenu", "hideHeader", "isDetailExpanded", "isGroupExpanded"], outputs: ["filterChange", "pageChange", "groupChange", "sortChange", "selectionChange", "rowReorder", "dataStateChange", "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], span[kendoButton], kendo-button", inputs: ["arrowIcon", "toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon", "role", "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", "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 });
1932
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ChartWizardPropertyPaneFormatTabComponent, decorators: [{
766
+ ChartWizardPropertyPaneFormFieldComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ChartWizardPropertyPaneFormFieldComponent, deps: [{ token: i2$1.LocalizationService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
767
+ ChartWizardPropertyPaneFormFieldComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: ChartWizardPropertyPaneFormFieldComponent, isStandalone: true, selector: "kendo-chartwizard-property-pane-form-field", inputs: { currentState: "currentState", action: "action", class: "class", inputType: "inputType", text: "text", data: "data", placeholder: "placeholder", colSpan: "colSpan", hasLabel: "hasLabel", isLabelInsideFormFieldWrap: "isLabelInsideFormFieldWrap", value: "value", disabled: "disabled" }, outputs: { valueChange: "valueChange" }, host: { properties: { "class.k-form-field": "this.formField", "class.k-col-span-2": "this.isColSpan2" } }, viewQueries: [{ propertyName: "label", first: true, predicate: LabelComponent, descendants: true }, { propertyName: "numericTextBox", first: true, predicate: NumericTextBoxComponent, descendants: true }, { propertyName: "colorPicker", first: true, predicate: ColorPickerComponent, descendants: true }, { propertyName: "dropDownList", first: true, predicate: DropDownListComponent, descendants: true }, { propertyName: "textBox", first: true, predicate: TextBoxComponent, descendants: true }, { propertyName: "comboBox", first: true, predicate: ComboBoxComponent, descendants: true }, { propertyName: "checkBox", first: true, predicate: CheckBoxComponent, descendants: true }], ngImport: i0, template: `
768
+ <kendo-label *ngIf="hasLabel && !isLabelInsideFormFieldWrap && inputType !== 'checkbox'" class="k-form-label" [text]="text"></kendo-label>
769
+ <div class="k-form-field-wrap">
770
+ <kendo-label
771
+ *ngIf="hasLabel && isLabelInsideFormFieldWrap && inputType !== 'checkbox'"
772
+ class="k-form-label"
773
+ [text]="text"
774
+ ></kendo-label>
775
+ <kendo-numerictextbox
776
+ *ngIf="inputType === 'numeric'"
777
+ fillMode="outline"
778
+ rounded="medium"
779
+ [value]="value"
780
+ (valueChange)="valueChange.emit($event)"
781
+ placeholder="Auto"
782
+ ></kendo-numerictextbox>
783
+ <kendo-colorpicker
784
+ *ngIf="inputType === 'colorPicker'"
785
+ fillMode="outline"
786
+ rounded="medium"
787
+ [value]="value"
788
+ [disabled]="disabled"
789
+ (valueChange)="valueChange.emit($event)"
790
+ ></kendo-colorpicker>
791
+ <kendo-dropdownlist
792
+ *ngIf="inputType === 'dropDownList'"
793
+ [data]="data"
794
+ textField="text"
795
+ valueField="value"
796
+ [valuePrimitive]="true"
797
+ fillMode="outline"
798
+ rounded="medium"
799
+ size="medium"
800
+ [value]="value"
801
+ (valueChange)="valueChange.emit($event)"
802
+ ></kendo-dropdownlist>
803
+ <kendo-combobox
804
+ *ngIf="inputType === 'comboBox'"
805
+ [data]="data"
806
+ [value]="value"
807
+ textField="text"
808
+ valueField="value"
809
+ [valuePrimitive]="true"
810
+ fillMode="outline"
811
+ rounded="medium"
812
+ size="medium"
813
+ [placeholder]="placeholder"
814
+ (valueChange)="valueChange.emit($event)"
815
+ ></kendo-combobox>
816
+ <kendo-textbox
817
+ *ngIf="inputType === 'text'"
818
+ fillMode="outline"
819
+ rounded="medium"
820
+ [placeholder]="placeholder"
821
+ [value]="value"
822
+ (valueChange)="valueChange.emit($event)"
823
+ ></kendo-textbox>
824
+ <kendo-checkbox
825
+ *ngIf="inputType === 'checkbox'"
826
+ class="k-checkbox-md k-rounded-md"
827
+ [checkedState]="value"
828
+ (checkedStateChange)="valueChange.emit($event)"
829
+ ></kendo-checkbox>
830
+ <kendo-label
831
+ *ngIf="hasLabel && isLabelInsideFormFieldWrap && inputType === 'checkbox'"
832
+ class="k-checkbox-label"
833
+ [text]="text"
834
+ ></kendo-label>
835
+ </div>
836
+ `, isInline: true, dependencies: [{ kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: LabelComponent, selector: "kendo-label", inputs: ["text", "for", "optional", "labelCssStyle", "labelCssClass"], exportAs: ["kendoLabel"] }, { kind: "component", type: NumericTextBoxComponent, selector: "kendo-numerictextbox", inputs: ["focusableId", "disabled", "readonly", "title", "autoCorrect", "format", "max", "min", "decimals", "placeholder", "step", "spinners", "rangeValidation", "tabindex", "tabIndex", "changeValueOnScroll", "selectOnFocus", "value", "maxlength", "size", "rounded", "fillMode", "inputAttributes"], outputs: ["valueChange", "focus", "blur", "inputFocus", "inputBlur"], exportAs: ["kendoNumericTextBox"] }, { kind: "component", type: ColorPickerComponent, selector: "kendo-colorpicker", inputs: ["views", "view", "activeView", "readonly", "disabled", "format", "value", "popupSettings", "paletteSettings", "gradientSettings", "icon", "iconClass", "svgIcon", "clearButton", "tabindex", "preview", "actionsLayout", "size", "rounded", "fillMode"], outputs: ["valueChange", "open", "close", "focus", "blur", "cancel", "activeColorClick", "clearButtonClick", "activeViewChange"], exportAs: ["kendoColorPicker"] }, { kind: "component", type: DropDownListComponent, selector: "kendo-dropdownlist", inputs: ["customIconClass", "showStickyHeader", "icon", "svgIcon", "loading", "data", "value", "textField", "valueField", "adaptiveMode", "title", "subtitle", "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: ComboBoxComponent, selector: "kendo-combobox", inputs: ["icon", "svgIcon", "inputAttributes", "showStickyHeader", "focusableId", "allowCustom", "data", "value", "textField", "valueField", "valuePrimitive", "valueNormalizer", "placeholder", "adaptiveMode", "title", "subtitle", "popupSettings", "listHeight", "loading", "suggest", "clearButton", "disabled", "itemDisabled", "readonly", "tabindex", "tabIndex", "filterable", "virtual", "size", "rounded", "fillMode"], outputs: ["valueChange", "selectionChange", "filterChange", "open", "opened", "close", "closed", "focus", "blur", "inputFocus", "inputBlur", "escape"], exportAs: ["kendoComboBox"] }, { kind: "component", type: TextBoxComponent, selector: "kendo-textbox", inputs: ["focusableId", "title", "type", "disabled", "readonly", "tabindex", "value", "selectOnFocus", "showSuccessIcon", "showErrorIcon", "clearButton", "successIcon", "successSvgIcon", "errorIcon", "errorSvgIcon", "clearButtonIcon", "clearButtonSvgIcon", "size", "rounded", "fillMode", "tabIndex", "placeholder", "maxlength", "inputAttributes"], outputs: ["valueChange", "inputFocus", "inputBlur", "focus", "blur"], exportAs: ["kendoTextBox"] }, { kind: "component", type: CheckBoxComponent, selector: "kendo-checkbox", inputs: ["checkedState", "rounded"], outputs: ["checkedStateChange"], exportAs: ["kendoCheckBox"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
837
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ChartWizardPropertyPaneFormFieldComponent, decorators: [{
1933
838
  type: Component,
1934
839
  args: [{
1935
- selector: 'kendo-chartwizard-property-pane-data-tab',
840
+ selector: 'kendo-chartwizard-property-pane-form-field',
1936
841
  changeDetection: ChangeDetectionStrategy.OnPush,
1937
842
  template: `
1938
- <kendo-expansionpanel title="Configuration" [expanded]="true">
1939
- <form class="k-form k-form-md">
1940
- <fieldset class="k-form-fieldset">
1941
- <legend class="k-form-legend">
1942
- {{ stateService.seriesType === 'scatter' ? 'X Axis' : 'Category Axis' }}
1943
- </legend>
1944
- <kendo-dropdownlist
1945
- [data]="stateService.state.columns"
1946
- [value]="stateService.state.categoryField"
1947
- (valueChange)="updateState(categoryAxisX, $event)"
1948
- fillMode="outline"
1949
- rounded="medium"
1950
- size="medium"
1951
- >
1952
- </kendo-dropdownlist>
1953
- </fieldset>
1954
- <fieldset class="k-form-fieldset" *ngIf="isCategorical(stateService.seriesType)">
1955
- <legend class="k-form-legend">Series</legend>
1956
- <kendo-grid
1957
- #grid
1958
- [kendoGridReactiveEditing]="createFormGroup"
1959
- [kendoGridBinding]="stateService.state.series"
1960
- [rowReorderable]="true"
1961
- (rowReorder)="onRowReorder(grid)"
1962
- (remove)="removeData($event)"
1963
- >
1964
- <ng-template kendoGridToolbarTemplate>
1965
- <button
1966
- kendoButton
1967
- type="button"
1968
- [svgIcon]="plusIcon"
1969
- fillMode="flat"
1970
- rounded="medium"
1971
- [disabled]="isDisabled(grid)"
1972
- (click)="addData()"
1973
- >
1974
- ADD
1975
- </button>
1976
- </ng-template>
1977
- <kendo-grid-rowreorder-column [width]="40"></kendo-grid-rowreorder-column>
1978
- <kendo-grid-column field="name" title="Name"></kendo-grid-column>
1979
- <kendo-grid-command-column [width]="40">
1980
- <ng-template kendoGridCellTemplate>
1981
- <button
1982
- [svgIcon]="trashIcon"
1983
- kendoGridRemoveCommand
1984
- fillMode="flat"
1985
- rounded="medium"
1986
- [disabled]="stateService.state.series.length < 2"
1987
- ></button>
1988
- </ng-template>
1989
- </kendo-grid-command-column>
1990
- </kendo-grid>
1991
- </fieldset>
1992
- <fieldset
1993
- class="k-form-fieldset"
1994
- *ngIf="stateService.seriesType === 'pie' || stateService.seriesType === 'scatter'"
1995
- >
1996
- <legend class="k-form-legend">
1997
- {{ stateService.seriesType === 'scatter' ? 'Y Axis' : 'Value Axis' }}
1998
- </legend>
1999
- <kendo-dropdownlist
2000
- [data]="stateService.state.columns"
2001
- [value]="stateService.state.yField"
2002
- (valueChange)="updateState(valueAxisY, $event)"
2003
- fillMode="outline"
2004
- rounded="medium"
2005
- size="medium"
2006
- >
2007
- </kendo-dropdownlist>
2008
- </fieldset>
2009
- </form>
2010
- </kendo-expansionpanel>
843
+ <kendo-label *ngIf="hasLabel && !isLabelInsideFormFieldWrap && inputType !== 'checkbox'" class="k-form-label" [text]="text"></kendo-label>
844
+ <div class="k-form-field-wrap">
845
+ <kendo-label
846
+ *ngIf="hasLabel && isLabelInsideFormFieldWrap && inputType !== 'checkbox'"
847
+ class="k-form-label"
848
+ [text]="text"
849
+ ></kendo-label>
850
+ <kendo-numerictextbox
851
+ *ngIf="inputType === 'numeric'"
852
+ fillMode="outline"
853
+ rounded="medium"
854
+ [value]="value"
855
+ (valueChange)="valueChange.emit($event)"
856
+ placeholder="Auto"
857
+ ></kendo-numerictextbox>
858
+ <kendo-colorpicker
859
+ *ngIf="inputType === 'colorPicker'"
860
+ fillMode="outline"
861
+ rounded="medium"
862
+ [value]="value"
863
+ [disabled]="disabled"
864
+ (valueChange)="valueChange.emit($event)"
865
+ ></kendo-colorpicker>
866
+ <kendo-dropdownlist
867
+ *ngIf="inputType === 'dropDownList'"
868
+ [data]="data"
869
+ textField="text"
870
+ valueField="value"
871
+ [valuePrimitive]="true"
872
+ fillMode="outline"
873
+ rounded="medium"
874
+ size="medium"
875
+ [value]="value"
876
+ (valueChange)="valueChange.emit($event)"
877
+ ></kendo-dropdownlist>
878
+ <kendo-combobox
879
+ *ngIf="inputType === 'comboBox'"
880
+ [data]="data"
881
+ [value]="value"
882
+ textField="text"
883
+ valueField="value"
884
+ [valuePrimitive]="true"
885
+ fillMode="outline"
886
+ rounded="medium"
887
+ size="medium"
888
+ [placeholder]="placeholder"
889
+ (valueChange)="valueChange.emit($event)"
890
+ ></kendo-combobox>
891
+ <kendo-textbox
892
+ *ngIf="inputType === 'text'"
893
+ fillMode="outline"
894
+ rounded="medium"
895
+ [placeholder]="placeholder"
896
+ [value]="value"
897
+ (valueChange)="valueChange.emit($event)"
898
+ ></kendo-textbox>
899
+ <kendo-checkbox
900
+ *ngIf="inputType === 'checkbox'"
901
+ class="k-checkbox-md k-rounded-md"
902
+ [checkedState]="value"
903
+ (checkedStateChange)="valueChange.emit($event)"
904
+ ></kendo-checkbox>
905
+ <kendo-label
906
+ *ngIf="hasLabel && isLabelInsideFormFieldWrap && inputType === 'checkbox'"
907
+ class="k-checkbox-label"
908
+ [text]="text"
909
+ ></kendo-label>
910
+ </div>
2011
911
  `,
2012
912
  standalone: true,
2013
913
  imports: [
2014
- ExpansionPanelComponent,
2015
- DropDownListComponent,
2016
- ValueTemplateDirective,
2017
914
  NgIf,
2018
- GridComponent,
2019
- ReactiveEditingDirective,
2020
- DataBindingDirective,
2021
- ToolbarTemplateDirective,
2022
- ButtonComponent,
2023
- RowReorderColumnComponent,
2024
- ColumnComponent,
2025
- CommandColumnComponent,
2026
- CellTemplateDirective,
2027
- GridToolbarFocusableDirective,
2028
- FocusableDirective,
2029
- RemoveCommandDirective
915
+ LabelComponent,
916
+ NumericTextBoxComponent,
917
+ ColorPickerComponent,
918
+ DropDownListComponent,
919
+ ComboBoxComponent,
920
+ TextBoxComponent,
921
+ CheckBoxComponent
2030
922
  ]
2031
923
  }]
2032
- }], ctorParameters: function () { return [{ type: StateService }, { type: i2$1.FormBuilder }]; } });
924
+ }], ctorParameters: function () { return [{ type: i2$1.LocalizationService }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { currentState: [{
925
+ type: Input
926
+ }], action: [{
927
+ type: Input
928
+ }], class: [{
929
+ type: Input
930
+ }], inputType: [{
931
+ type: Input
932
+ }], text: [{
933
+ type: Input
934
+ }], data: [{
935
+ type: Input
936
+ }], placeholder: [{
937
+ type: Input
938
+ }], colSpan: [{
939
+ type: Input
940
+ }], hasLabel: [{
941
+ type: Input
942
+ }], isLabelInsideFormFieldWrap: [{
943
+ type: Input
944
+ }], value: [{
945
+ type: Input
946
+ }], disabled: [{
947
+ type: Input
948
+ }], valueChange: [{
949
+ type: Output
950
+ }], formField: [{
951
+ type: HostBinding,
952
+ args: ['class.k-form-field']
953
+ }], isColSpan2: [{
954
+ type: HostBinding,
955
+ args: ['class.k-col-span-2']
956
+ }], label: [{
957
+ type: ViewChild,
958
+ args: [LabelComponent]
959
+ }], numericTextBox: [{
960
+ type: ViewChild,
961
+ args: [NumericTextBoxComponent]
962
+ }], colorPicker: [{
963
+ type: ViewChild,
964
+ args: [ColorPickerComponent]
965
+ }], dropDownList: [{
966
+ type: ViewChild,
967
+ args: [DropDownListComponent]
968
+ }], textBox: [{
969
+ type: ViewChild,
970
+ args: [TextBoxComponent]
971
+ }], comboBox: [{
972
+ type: ViewChild,
973
+ args: [ComboBoxComponent]
974
+ }], checkBox: [{
975
+ type: ViewChild,
976
+ args: [CheckBoxComponent]
977
+ }] } });
2033
978
 
2034
979
  /**
2035
980
  * @hidden
2036
981
  */
2037
- class ChartWizardSeriesTypeButtonComponent {
2038
- constructor(stateService) {
982
+ class ChartWizardPropertyPaneFormatTabComponent {
983
+ constructor(stateService, localization, cdr) {
2039
984
  this.stateService = stateService;
2040
- this.stack = false;
985
+ this.localization = localization;
986
+ this.cdr = cdr;
987
+ this.chartTitles = [
988
+ { text: 'Chart Title', value: 'Chart Title' },
989
+ { text: 'Chart Subtitle', value: 'Chart Subtitle' },
990
+ ];
991
+ this.areaMarginLeft = ActionTypes.areaMarginLeft;
992
+ this.areaMarginRight = ActionTypes.areaMarginRight;
993
+ this.areaMarginTop = ActionTypes.areaMarginTop;
994
+ this.areaMarginBottom = ActionTypes.areaMarginBottom;
995
+ this.areaBackground = ActionTypes.areaBackground;
996
+ this.legendVisible = ActionTypes.legendVisible;
997
+ this.legendFontName = ActionTypes.legendFontName;
998
+ this.legendFontSize = ActionTypes.legendFontSize;
999
+ this.legendColor = ActionTypes.legendColor;
1000
+ this.legendPosition = ActionTypes.legendPosition;
1001
+ this.categoryAxisTitleText = ActionTypes.categoryAxisTitleText;
1002
+ this.categoryAxisTitleFontName = ActionTypes.categoryAxisTitleFontName;
1003
+ this.categoryAxisTitleFontSize = ActionTypes.categoryAxisTitleFontSize;
1004
+ this.categoryAxisTitleColor = ActionTypes.categoryAxisTitleColor;
1005
+ this.categoryAxisLabelsFontName = ActionTypes.categoryAxisLabelsFontName;
1006
+ this.categoryAxisLabelsFontSize = ActionTypes.categoryAxisLabelsFontSize;
1007
+ this.categoryAxisLabelsColor = ActionTypes.categoryAxisLabelsColor;
1008
+ this.categoryAxisLabelsRotation = ActionTypes.categoryAxisLabelsRotation;
1009
+ this.categoryAxisReverseOrder = ActionTypes.categoryAxisReverseOrder;
1010
+ this.valueAxisTitleText = ActionTypes.valueAxisTitleText;
1011
+ this.valueAxisTitleFontName = ActionTypes.valueAxisTitleFontName;
1012
+ this.valueAxisTitleFontSize = ActionTypes.valueAxisTitleFontSize;
1013
+ this.valueAxisTitleColor = ActionTypes.valueAxisTitleColor;
1014
+ this.valueAxisLabelsFontName = ActionTypes.valueAxisLabelsFontName;
1015
+ this.valueAxisLabelsFormat = ActionTypes.valueAxisLabelsFormat;
1016
+ this.valueAxisLabelsFontSize = ActionTypes.valueAxisLabelsFontSize;
1017
+ this.valueAxisLabelsColor = ActionTypes.valueAxisLabelsColor;
1018
+ this.valueAxisLabelsRotation = ActionTypes.valueAxisLabelsRotation;
1019
+ this.parseFont = parseFont;
1020
+ this.labelFormats = labelFormats;
1021
+ this.defaultAllSeriesItem = defaultAllSeriesItem;
1022
+ this.fontNames = fontNames;
1023
+ this.fontSizes = fontSizes;
1024
+ this.legendPositions = positions;
1025
+ this.labelsRotation = rotations;
2041
1026
  }
2042
- onSelect() {
2043
- this.stateService.seriesType = this.seriesType;
2044
- this.stateService.state = mergeStates(this.stateService.state, createState(this.stateService.data, this.stateService.seriesType));
2045
- this.stateService.currentSeries = {};
2046
- if (this.stack) {
2047
- this.stateService.state = updateState(this.stateService.state, ActionTypes.stacked, this.stack);
1027
+ get chartTitleTypeText() {
1028
+ var _a, _b;
1029
+ return this.stateService.currentTitle === 'Chart Title'
1030
+ ? (_a = this.stateService.state.title) === null || _a === void 0 ? void 0 : _a.text
1031
+ : (_b = this.stateService.state.subtitle) === null || _b === void 0 ? void 0 : _b.text;
1032
+ }
1033
+ get chartTitleTypeFont() {
1034
+ var _a, _b;
1035
+ return this.stateService.currentTitle === 'Chart Title'
1036
+ ? parseFont((_a = this.stateService.state.title) === null || _a === void 0 ? void 0 : _a.font).name
1037
+ : parseFont((_b = this.stateService.state.subtitle) === null || _b === void 0 ? void 0 : _b.font).name;
1038
+ }
1039
+ get chartTitleTypeFontSize() {
1040
+ var _a, _b;
1041
+ return this.stateService.currentTitle === 'Chart Title'
1042
+ ? parseFont((_a = this.stateService.state.title) === null || _a === void 0 ? void 0 : _a.font).size
1043
+ : parseFont((_b = this.stateService.state.subtitle) === null || _b === void 0 ? void 0 : _b.font).size;
1044
+ }
1045
+ get chartTitleTypeColor() {
1046
+ var _a, _b;
1047
+ return this.stateService.currentTitle === 'Chart Title'
1048
+ ? (_a = this.stateService.state.title) === null || _a === void 0 ? void 0 : _a.color
1049
+ : (_b = this.stateService.state.subtitle) === null || _b === void 0 ? void 0 : _b.color;
1050
+ }
1051
+ get chartTitleTypeAction() {
1052
+ return this.stateService.currentTitle === 'Chart Title' ? ActionTypes.titleText : ActionTypes.subtitleText;
1053
+ }
1054
+ get chartTitleTypeFontAction() {
1055
+ return this.stateService.currentTitle === 'Chart Title' ? ActionTypes.titleFontName : ActionTypes.subtitleFontName;
1056
+ }
1057
+ get chartTitleTypeColorAction() {
1058
+ return this.stateService.currentTitle === 'Chart Title' ? ActionTypes.titleColor : ActionTypes.subtitleColor;
1059
+ }
1060
+ get chartTitleTypeFontSizeAction() {
1061
+ return this.stateService.currentTitle === 'Chart Title' ? ActionTypes.titleFontSize : ActionTypes.subtitleFontSize;
1062
+ }
1063
+ get seriesData() {
1064
+ return [defaultAllSeriesItem, ...this.stateService.state.series];
1065
+ }
1066
+ get showLabels() {
1067
+ var _a, _b;
1068
+ return this.stateService.currentSeries.name !== defaultAllSeriesItem.name ? (_b = (_a = this.stateService.state.series.find(s => s.name === this.stateService.currentSeries.name)) === null || _a === void 0 ? void 0 : _a.labels) === null || _b === void 0 ? void 0 : _b.visible : this.stateService.state.series.every(s => { var _a; return (_a = s.labels) === null || _a === void 0 ? void 0 : _a.visible; });
1069
+ }
1070
+ get labelFormatValue() {
1071
+ var _a;
1072
+ return ((_a = labelFormats.find(f => { var _a, _b; return f.value === ((_b = (_a = this.stateService.state.valueAxis[0]) === null || _a === void 0 ? void 0 : _a.labels) === null || _b === void 0 ? void 0 : _b.format); })) === null || _a === void 0 ? void 0 : _a.value) || defaultFormat.value;
1073
+ }
1074
+ ngAfterViewChecked() {
1075
+ this.localization.changes.subscribe(() => {
1076
+ this.cdr.detectChanges();
1077
+ });
1078
+ }
1079
+ ngOnDestroy() {
1080
+ this.localization.changes.unsubscribe();
1081
+ }
1082
+ updateState(action, value) {
1083
+ if (action === ActionTypes.seriesLabel && this.stateService.currentSeries.name === defaultAllSeriesItem.name) {
1084
+ this.stateService.state = updateState(this.stateService.state, action, { name: '', all: true, visible: value.labels.visible });
1085
+ return;
2048
1086
  }
1087
+ this.stateService.state = updateState(this.stateService.state, action, value);
2049
1088
  }
2050
- isSelected() {
2051
- var _a, _b, _c, _d, _e;
2052
- if (((_a = this.stack) === null || _a === void 0 ? void 0 : _a.type) === '100%') {
2053
- return ((_b = this.stack) === null || _b === void 0 ? void 0 : _b.type) === ((_d = (_c = this.stateService.state.series[0]) === null || _c === void 0 ? void 0 : _c.stack) === null || _d === void 0 ? void 0 : _d.type);
1089
+ changeCurrentTitle(value) {
1090
+ this.stateService.currentTitle = value;
1091
+ }
1092
+ toggleSeriesLabels(value) {
1093
+ this.updateCurrentSeries(this.stateService.currentSeries);
1094
+ this.stateService.currentSeries.labels = { visible: value };
1095
+ this.updateState(ActionTypes.seriesLabel, this.stateService.currentSeries);
1096
+ }
1097
+ updateCurrentSeries(value) {
1098
+ if (value.name === defaultAllSeriesItem.name) {
1099
+ this.stateService.currentSeries = defaultAllSeriesItem;
2054
1100
  }
2055
- return (this.stateService.state.seriesType === this.seriesType &&
2056
- ((_e = this.stateService.state.series[0]) === null || _e === void 0 ? void 0 : _e.stack) === this.stack);
1101
+ else {
1102
+ this.stateService.currentSeries = this.stateService.state.series.find((series) => series.name === value.name);
1103
+ }
1104
+ }
1105
+ updateSeriesColor(value) {
1106
+ this.updateCurrentSeries(this.stateService.currentSeries);
1107
+ this.stateService.currentSeries.color = value;
1108
+ this.updateState(ActionTypes.seriesColor, this.stateService.currentSeries);
2057
1109
  }
2058
1110
  }
2059
- ChartWizardSeriesTypeButtonComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ChartWizardSeriesTypeButtonComponent, deps: [{ token: StateService }], target: i0.ɵɵFactoryTarget.Component });
2060
- ChartWizardSeriesTypeButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: ChartWizardSeriesTypeButtonComponent, isStandalone: true, selector: "kendo-chartwizard-series-type-button", inputs: { title: "title", chartTypeIcon: "chartTypeIcon", stack: "stack", seriesType: "seriesType" }, ngImport: i0, template: `
2061
- <div class="k-icon-text-wrapper" [class.k-selected]="isSelected()" (click)="onSelect()">
2062
- <div class="k-icon-background-area">
2063
- <kendo-svgicon [icon]="chartTypeIcon" size="xlarge" themeColor="primary"> </kendo-svgicon>
2064
- </div>
2065
- {{ title }}
2066
- </div>
2067
- `, isInline: true, dependencies: [{ kind: "component", type: SVGIconComponent, selector: "kendo-svg-icon, kendo-svgicon", inputs: ["icon"], exportAs: ["kendoSVGIcon"] }] });
2068
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ChartWizardSeriesTypeButtonComponent, decorators: [{
2069
- type: Component,
2070
- args: [{
2071
- selector: 'kendo-chartwizard-series-type-button',
2072
- template: `
2073
- <div class="k-icon-text-wrapper" [class.k-selected]="isSelected()" (click)="onSelect()">
2074
- <div class="k-icon-background-area">
2075
- <kendo-svgicon [icon]="chartTypeIcon" size="xlarge" themeColor="primary"> </kendo-svgicon>
2076
- </div>
2077
- {{ title }}
2078
- </div>
2079
- `,
2080
- standalone: true,
2081
- imports: [SVGIconComponent]
2082
- }]
2083
- }], ctorParameters: function () { return [{ type: StateService }]; }, propDecorators: { title: [{
2084
- type: Input
2085
- }], chartTypeIcon: [{
2086
- type: Input
2087
- }], stack: [{
2088
- type: Input
2089
- }], seriesType: [{
2090
- type: Input
2091
- }] } });
1111
+ ChartWizardPropertyPaneFormatTabComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ChartWizardPropertyPaneFormatTabComponent, deps: [{ token: StateService }, { token: i2$1.LocalizationService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
1112
+ ChartWizardPropertyPaneFormatTabComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: ChartWizardPropertyPaneFormatTabComponent, isStandalone: true, selector: "kendo-chartwizard-property-pane-format-tab", ngImport: i0, template: `
1113
+ <section>
1114
+ <kendo-expansionpanel
1115
+ [style.max-width.px]="576"
1116
+ title="Chart Area"
1117
+ [expanded]="true"
1118
+ [attr.dir]="stateService.direction"
1119
+ >
1120
+ <form class="k-form k-form-md">
1121
+ <fieldset class="k-form-fieldset">
1122
+ <legend class="k-form-legend">Margins</legend>
1123
+ <div class="k-form-layout k-d-grid k-grid-cols-2 k-gap-x-4">
1124
+ <kendo-chartwizard-property-pane-form-field
1125
+ text="Left"
1126
+ inputType="numeric"
1127
+ [value]="$any(stateService.state.area.margin).left"
1128
+ (valueChange)="updateState(areaMarginLeft, $event)"
1129
+ >
1130
+ </kendo-chartwizard-property-pane-form-field>
1131
+ <kendo-chartwizard-property-pane-form-field
1132
+ text="Right"
1133
+ inputType="numeric"
1134
+ [value]="$any(stateService.state.area.margin).right"
1135
+ (valueChange)="updateState(areaMarginRight, $event)"
1136
+ >
1137
+ </kendo-chartwizard-property-pane-form-field>
1138
+ <kendo-chartwizard-property-pane-form-field
1139
+ text="Top"
1140
+ inputType="numeric"
1141
+ [value]="$any(stateService.state.area.margin).top"
1142
+ (valueChange)="updateState(areaMarginTop, $event)"
1143
+ >
1144
+ </kendo-chartwizard-property-pane-form-field>
1145
+ <kendo-chartwizard-property-pane-form-field
1146
+ text="Bottom"
1147
+ inputType="numeric"
1148
+ [value]="$any(stateService.state.area.margin).bottom"
1149
+ (valueChange)="updateState(areaMarginBottom, $event)"
1150
+ >
1151
+ </kendo-chartwizard-property-pane-form-field>
1152
+ </div>
1153
+ </fieldset>
1154
+ <fieldset class="k-form-fieldset">
1155
+ <legend class="k-form-legend">Background</legend>
1156
+ <kendo-chartwizard-property-pane-form-field
1157
+ text="Color"
1158
+ inputType="colorPicker"
1159
+ [value]="stateService.state.area?.background"
1160
+ (valueChange)="updateState(areaBackground, $event)"
1161
+ >
1162
+ </kendo-chartwizard-property-pane-form-field>
1163
+ </fieldset>
1164
+ </form>
1165
+ </kendo-expansionpanel>
1166
+ </section>
1167
+ <section>
1168
+ <kendo-expansionpanel
1169
+ [style.max-width.px]="576"
1170
+ title="Title"
1171
+ [expanded]="true"
1172
+ >
1173
+ <form class="k-form k-form-md">
1174
+ <div class="k-form-layout k-d-grid k-grid-cols-2 k-gap-x-4">
1175
+ <kendo-chartwizard-property-pane-form-field
1176
+ text="Apply to"
1177
+ inputType="dropDownList"
1178
+ [data]="chartTitles"
1179
+ [colSpan]="2"
1180
+ [value]="stateService.currentTitle"
1181
+ (valueChange)="changeCurrentTitle($event)"
1182
+ >
1183
+ </kendo-chartwizard-property-pane-form-field>
1184
+ <kendo-chartwizard-property-pane-form-field
1185
+ text="Title"
1186
+ inputType="text"
1187
+ [colSpan]="2"
1188
+ [value]="chartTitleTypeText"
1189
+ (valueChange)="updateState(chartTitleTypeAction, $event)"
1190
+ >
1191
+ </kendo-chartwizard-property-pane-form-field>
1192
+ <kendo-chartwizard-property-pane-form-field
1193
+ text="Font"
1194
+ inputType="comboBox"
1195
+ [data]="fontNames"
1196
+ [colSpan]="2"
1197
+ [value]="chartTitleTypeFont"
1198
+ placeholder="(Inherited font)"
1199
+ (valueChange)="updateState(chartTitleTypeFontAction, $event)"
1200
+ >
1201
+ </kendo-chartwizard-property-pane-form-field>
1202
+ <kendo-chartwizard-property-pane-form-field
1203
+ text="Size"
1204
+ inputType="comboBox"
1205
+ placeholder="px"
1206
+ [data]="fontSizes"
1207
+ [value]="chartTitleTypeFontSize"
1208
+ (valueChange)="updateState(chartTitleTypeFontSizeAction, $event)"
1209
+ >
1210
+ </kendo-chartwizard-property-pane-form-field>
1211
+ <kendo-chartwizard-property-pane-form-field
1212
+ text="Color"
1213
+ inputType="colorPicker"
1214
+ [value]="chartTitleTypeColor"
1215
+ (valueChange)="updateState(chartTitleTypeColorAction, $event)"
1216
+ >
1217
+ </kendo-chartwizard-property-pane-form-field>
1218
+ </div>
1219
+ </form>
1220
+ </kendo-expansionpanel>
1221
+ </section>
1222
+ <section>
1223
+ <kendo-expansionpanel
1224
+ [style.max-width.px]="576"
1225
+ title="Legend"
1226
+ [expanded]="true"
1227
+ >
1228
+ <form class="k-form k-form-md">
1229
+ <div class="k-form-layout k-d-grid k-grid-cols-2 k-gap-x-4">
1230
+ <kendo-label [for]="toggleLegend" text="Show Legend"></kendo-label>
1231
+ <kendo-switch
1232
+ #toggleLegend
1233
+ onLabel="On"
1234
+ offLabel="Off"
1235
+ thumbRounded="full"
1236
+ size="medium"
1237
+ [checked]="stateService.state.legend?.visible"
1238
+ (valueChange)="updateState(legendVisible, $event)"
1239
+ ></kendo-switch>
1240
+ <kendo-chartwizard-property-pane-form-field
1241
+ text="Font"
1242
+ inputType="comboBox"
1243
+ [data]="fontNames"
1244
+ [colSpan]="2"
1245
+ placeholder="(Inherited font)"
1246
+ [value]="parseFont(stateService.state.legend?.labels?.font).name"
1247
+ (valueChange)="updateState(legendFontName, $event)"
1248
+ >
1249
+ </kendo-chartwizard-property-pane-form-field>
1250
+ <kendo-chartwizard-property-pane-form-field
1251
+ text="Size"
1252
+ inputType="comboBox"
1253
+ [data]="fontSizes"
1254
+ placeholder="px"
1255
+ [value]="parseFont(stateService.state.legend?.labels?.font).size"
1256
+ (valueChange)="updateState(legendFontSize, $event)"
1257
+ >
1258
+ </kendo-chartwizard-property-pane-form-field>
1259
+ <kendo-chartwizard-property-pane-form-field
1260
+ text="Color"
1261
+ inputType="colorPicker"
1262
+ [value]="stateService.state.legend?.labels?.color"
1263
+ (valueChange)="updateState(legendColor, $event)"
1264
+ >
1265
+ </kendo-chartwizard-property-pane-form-field>
1266
+ <kendo-chartwizard-property-pane-form-field
1267
+ text="Position"
1268
+ inputType="dropDownList"
1269
+ [colSpan]="2"
1270
+ [data]="legendPositions"
1271
+ [value]="stateService.state.legend?.position"
1272
+ (valueChange)="updateState(legendPosition, $event)"
1273
+ >
1274
+ </kendo-chartwizard-property-pane-form-field>
1275
+ </div>
1276
+ </form>
1277
+ </kendo-expansionpanel>
1278
+ </section>
1279
+ <section>
1280
+ <kendo-expansionpanel
1281
+ [style.max-width.px]="576"
1282
+ title="Series"
1283
+ [expanded]="true"
1284
+ >
1285
+ <form class="k-form k-form-md">
1286
+ <div class="k-form-field">
1287
+ <kendo-label [for]="seriesDropDown" class="k-form-label" text="Apply to"></kendo-label>
1288
+ <div class="k-form-field-wrap">
1289
+ <kendo-dropdownlist
1290
+ #seriesDropDown
1291
+ [data]="seriesData"
1292
+ textField="name"
1293
+ valueField="name"
1294
+ fillMode="outline"
1295
+ rounded="medium"
1296
+ size="medium"
1297
+ [value]="stateService.currentSeries"
1298
+ (valueChange)="updateCurrentSeries($event)"
1299
+ ></kendo-dropdownlist>
1300
+ </div>
1301
+ </div>
2092
1302
 
2093
- /**
2094
- * @hidden
2095
- */
2096
- class ChartWizardPropertyPaneChartTabComponent {
2097
- constructor(stateService, cdr, localization) {
2098
- this.stateService = stateService;
2099
- this.cdr = cdr;
2100
- this.localization = localization;
2101
- this.exportIcon = exportIcon;
2102
- this.chartBarClusteredIcon = chartBarClusteredIcon;
2103
- this.chartBarStackedIcon = chartBarStackedIcon;
2104
- this.chartBarStacked100Icon = chartBarStacked100Icon;
2105
- this.chartPieIcon = chartPieIcon;
2106
- this.chartColumnClusteredIcon = chartColumnClusteredIcon;
2107
- this.chartColumnStackedIcon = chartColumnStackedIcon;
2108
- this.chartColumnStacked100Icon = chartColumnStacked100Icon;
2109
- this.chartLineIcon = chartLineIcon;
2110
- this.chartLineStackedIcon = chartLineStackedIcon;
2111
- this.chartLineStacked100Icon = chartLineStacked100Icon;
2112
- this.chartScatterIcon = chartScatterIcon;
2113
- }
2114
- ngAfterViewChecked() {
2115
- this.localization.changes.subscribe(() => {
2116
- this.detectChanges();
2117
- });
2118
- }
2119
- ngOnDestroy() {
2120
- this.localization.changes.unsubscribe();
2121
- }
2122
- detectChanges() {
2123
- this.cdr.detectChanges();
2124
- }
2125
- }
2126
- ChartWizardPropertyPaneChartTabComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ChartWizardPropertyPaneChartTabComponent, deps: [{ token: StateService }, { token: i0.ChangeDetectorRef }, { token: i2.LocalizationService }], target: i0.ɵɵFactoryTarget.Component });
2127
- ChartWizardPropertyPaneChartTabComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: ChartWizardPropertyPaneChartTabComponent, isStandalone: true, selector: "kendo-chartwizard-property-pane-chart-tab", ngImport: i0, template: `
2128
- <kendo-expansionpanel title="Bar Chart" [expanded]="true">
2129
- <div class="k-chart-types-wrapper">
2130
- <kendo-chartwizard-series-type-button
2131
- title="Bar"
2132
- [chartTypeIcon]="chartBarClusteredIcon"
2133
- seriesType="bar"
2134
- [stack]="false"
2135
- >
2136
- </kendo-chartwizard-series-type-button>
2137
- <kendo-chartwizard-series-type-button
2138
- title="Stacked Bar"
2139
- [chartTypeIcon]="chartBarStackedIcon"
2140
- seriesType="bar"
2141
- [stack]="true"
2142
- >
2143
- </kendo-chartwizard-series-type-button>
2144
- <kendo-chartwizard-series-type-button
2145
- title="100% Stacked Bar"
2146
- [chartTypeIcon]="chartBarStacked100Icon"
2147
- seriesType="bar"
2148
- [stack]="{ type: '100%' }"
2149
- >
2150
- </kendo-chartwizard-series-type-button>
2151
- </div>
2152
- </kendo-expansionpanel>
2153
- <kendo-expansionpanel title="Pie Chart" [expanded]="true">
2154
- <div class="k-chart-types-wrapper">
2155
- <kendo-chartwizard-series-type-button
2156
- title="Pie"
2157
- [chartTypeIcon]="chartPieIcon"
2158
- seriesType="pie"
2159
- [stack]="undefined"
2160
- >
2161
- </kendo-chartwizard-series-type-button>
2162
- </div>
2163
- </kendo-expansionpanel>
2164
- <kendo-expansionpanel title="Column Chart" [expanded]="true">
2165
- <div class="k-chart-types-wrapper">
2166
- <kendo-chartwizard-series-type-button
2167
- title="Column"
2168
- [chartTypeIcon]="chartColumnClusteredIcon"
2169
- seriesType="column"
2170
- [stack]="false"
2171
- >
2172
- </kendo-chartwizard-series-type-button>
2173
- <kendo-chartwizard-series-type-button
2174
- title="Stacked Column"
2175
- [chartTypeIcon]="chartColumnStackedIcon"
2176
- seriesType="column"
2177
- [stack]="true"
2178
- >
2179
- </kendo-chartwizard-series-type-button>
2180
- <kendo-chartwizard-series-type-button
2181
- title="100% Stacked Column"
2182
- [chartTypeIcon]="chartColumnStacked100Icon"
2183
- seriesType="column"
2184
- [stack]="{ type: '100%' }"
2185
- >
2186
- </kendo-chartwizard-series-type-button>
2187
- </div>
2188
- </kendo-expansionpanel>
2189
- <kendo-expansionpanel title="Line Chart" [expanded]="true">
2190
- <div class="k-chart-types-wrapper">
2191
- <kendo-chartwizard-series-type-button
2192
- title="Line"
2193
- [chartTypeIcon]="chartLineIcon"
2194
- seriesType="line"
2195
- [stack]="false"
2196
- >
2197
- </kendo-chartwizard-series-type-button>
2198
- <kendo-chartwizard-series-type-button
2199
- title="Stacked Line"
2200
- [chartTypeIcon]="chartLineStackedIcon"
2201
- seriesType="line"
2202
- [stack]="true"
2203
- >
2204
- </kendo-chartwizard-series-type-button>
2205
- <kendo-chartwizard-series-type-button
2206
- title="100% Line Column"
2207
- [chartTypeIcon]="chartLineStacked100Icon"
2208
- seriesType="line"
2209
- [stack]="{ type: '100%' }"
2210
- >
2211
- </kendo-chartwizard-series-type-button>
2212
- </div>
2213
- </kendo-expansionpanel>
2214
- <kendo-expansionpanel title="Scatter Chart" [expanded]="true">
2215
- <div class="k-chart-types-wrapper">
2216
- <kendo-chartwizard-series-type-button
2217
- title="Scatter"
2218
- [chartTypeIcon]="chartScatterIcon"
2219
- seriesType="scatter"
2220
- [stack]="false"
2221
- >
2222
- </kendo-chartwizard-series-type-button>
2223
- </div>
2224
- </kendo-expansionpanel>
2225
- `, 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 });
2226
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ChartWizardPropertyPaneChartTabComponent, decorators: [{
1303
+ <kendo-chartwizard-property-pane-form-field
1304
+ text="Color"
1305
+ [value]="stateService.currentSeries?.color"
1306
+ inputType="colorPicker"
1307
+ [disabled]="stateService.currentSeries.name === defaultAllSeriesItem.name"
1308
+ (valueChange)="updateSeriesColor($event)"
1309
+ >
1310
+ </kendo-chartwizard-property-pane-form-field>
1311
+ <kendo-chartwizard-property-pane-form-field
1312
+ text="Show Labels"
1313
+ [value]="showLabels"
1314
+ [isLabelInsideFormFieldWrap]="true"
1315
+ [colSpan]="2"
1316
+ inputType="checkbox"
1317
+ (valueChange)="toggleSeriesLabels($event)"
1318
+ >
1319
+ </kendo-chartwizard-property-pane-form-field>
1320
+ </form>
1321
+ </kendo-expansionpanel>
1322
+ </section>
1323
+ <section *ngIf="stateService.state.seriesType !== 'pie'" class="k-row-start-1 k-row-end-3 k-col-start-3">
1324
+ <kendo-expansionpanel
1325
+ [style.max-width.px]="576"
1326
+ [title]="stateService.state.seriesType === 'scatter' ? 'X Axis' : 'Category axis'"
1327
+ [expanded]="true"
1328
+ >
1329
+ <form class="k-form k-form-md">
1330
+ <fieldset class="k-form-fieldset">
1331
+ <legend class="k-form-legend">Title</legend>
1332
+ <div class="k-form-layout k-d-grid k-grid-cols-2 k-gap-x-4">
1333
+ <kendo-chartwizard-property-pane-form-field
1334
+ inputType="text"
1335
+ [hasLabel]="false"
1336
+ [colSpan]="2"
1337
+ placeholder="Axis Title"
1338
+ [value]="stateService.state.categoryAxis[0]?.title?.text || null"
1339
+ (valueChange)="updateState(categoryAxisTitleText, $event)"
1340
+ >
1341
+ </kendo-chartwizard-property-pane-form-field>
1342
+ <kendo-chartwizard-property-pane-form-field
1343
+ text="Font"
1344
+ inputType="comboBox"
1345
+ [data]="fontNames"
1346
+ [colSpan]="2"
1347
+ placeholder="(Inherited font)"
1348
+ [value]="parseFont(stateService.state.categoryAxis[0]?.title?.font).name"
1349
+ (valueChange)="updateState(categoryAxisTitleFontName, $event)"
1350
+ >
1351
+ </kendo-chartwizard-property-pane-form-field>
1352
+ <kendo-chartwizard-property-pane-form-field
1353
+ text="Size"
1354
+ inputType="comboBox"
1355
+ placeholder="px"
1356
+ [data]="fontSizes"
1357
+ [value]="parseFont(stateService.state.categoryAxis[0]?.title?.font).size"
1358
+ (valueChange)="updateState(categoryAxisTitleFontSize, $event)"
1359
+ >
1360
+ </kendo-chartwizard-property-pane-form-field>
1361
+ <kendo-chartwizard-property-pane-form-field
1362
+ text="Color"
1363
+ inputType="colorPicker"
1364
+ [value]="stateService.state.categoryAxis[0]?.title?.color"
1365
+ (valueChange)="updateState(categoryAxisTitleColor, $event)"
1366
+ >
1367
+ </kendo-chartwizard-property-pane-form-field>
1368
+ </div>
1369
+ </fieldset>
1370
+ <fieldset class="k-form-fieldset">
1371
+ <legend class="k-form-legend">Labels</legend>
1372
+ <div class="k-form-layout k-d-grid k-grid-cols-2 k-gap-x-4">
1373
+ <kendo-chartwizard-property-pane-form-field
1374
+ text="Font"
1375
+ inputType="comboBox"
1376
+ [data]="fontNames"
1377
+ [colSpan]="2"
1378
+ placeholder="(Inherited font)"
1379
+ [value]="parseFont(stateService.state.categoryAxis[0]?.labels?.font).name"
1380
+ (valueChange)="updateState(categoryAxisLabelsFontName, $event)"
1381
+ >
1382
+ </kendo-chartwizard-property-pane-form-field>
1383
+ <kendo-chartwizard-property-pane-form-field
1384
+ text="Size"
1385
+ inputType="comboBox"
1386
+ [data]="fontSizes"
1387
+ placeholder="px"
1388
+ [value]="parseFont(stateService.state.categoryAxis[0]?.labels?.font).size"
1389
+ (valueChange)="updateState(categoryAxisLabelsFontSize, $event)"
1390
+ >
1391
+ </kendo-chartwizard-property-pane-form-field>
1392
+ <kendo-chartwizard-property-pane-form-field
1393
+ text="Color"
1394
+ inputType="colorPicker"
1395
+ [value]="stateService.state.categoryAxis[0]?.labels?.color"
1396
+ (valueChange)="updateState(categoryAxisLabelsColor, $event)"
1397
+ >
1398
+ </kendo-chartwizard-property-pane-form-field>
1399
+ <kendo-chartwizard-property-pane-form-field
1400
+ text="Rotation"
1401
+ inputType="dropDownList"
1402
+ [data]="labelsRotation"
1403
+ [value]="stateService.state.categoryAxis[0]?.labels?.rotation"
1404
+ (valueChange)="updateState(categoryAxisLabelsRotation, $event)"
1405
+ >
1406
+ </kendo-chartwizard-property-pane-form-field>
1407
+ <span></span>
1408
+ <kendo-chartwizard-property-pane-form-field
1409
+ text="Reverse Order"
1410
+ [isLabelInsideFormFieldWrap]="true"
1411
+ inputType="checkbox"
1412
+ [colSpan]="2"
1413
+ [value]="stateService.state.categoryAxis[0]?.reverse"
1414
+ (valueChange)="updateState(categoryAxisReverseOrder, $event)"
1415
+ >
1416
+ </kendo-chartwizard-property-pane-form-field>
1417
+ </div>
1418
+ </fieldset>
1419
+ </form>
1420
+ </kendo-expansionpanel>
1421
+ </section>
1422
+ <section *ngIf="stateService.state.seriesType !== 'pie'" class="k-row-start-1 k-row-end-3 k-col-start-4">
1423
+ <kendo-expansionpanel
1424
+ [style.max-width.px]="576"
1425
+ [title]="stateService.state.seriesType === 'scatter' ? 'Y Axis' : 'Value axis'"
1426
+ [expanded]="true"
1427
+ >
1428
+ <form class="k-form k-form-md">
1429
+ <fieldset class="k-form-fieldset">
1430
+ <legend class="k-form-legend">Title</legend>
1431
+ <div class="k-form-layout k-d-grid k-grid-cols-2 k-gap-x-4">
1432
+ <kendo-chartwizard-property-pane-form-field
1433
+ inputType="text"
1434
+ [hasLabel]="false"
1435
+ [colSpan]="2"
1436
+ placeholder="Axis Title"
1437
+ [value]="stateService.state.valueAxis[0]?.title?.text || null"
1438
+ (valueChange)="updateState(valueAxisTitleText, $event)"
1439
+ >
1440
+ </kendo-chartwizard-property-pane-form-field>
1441
+ <kendo-chartwizard-property-pane-form-field
1442
+ text="Font"
1443
+ inputType="comboBox"
1444
+ [colSpan]="2"
1445
+ [data]="fontNames"
1446
+ placeholder="(Inherited font)"
1447
+ [value]="parseFont(stateService.state.valueAxis[0]?.title?.font).name"
1448
+ (valueChange)="updateState(valueAxisTitleFontName, $event)"
1449
+ >
1450
+ </kendo-chartwizard-property-pane-form-field>
1451
+ <kendo-chartwizard-property-pane-form-field
1452
+ text="Size"
1453
+ inputType="comboBox"
1454
+ placeholder="px"
1455
+ [data]="fontSizes"
1456
+ [value]="parseFont(stateService.state.valueAxis[0]?.title?.font).size"
1457
+ (valueChange)="updateState(valueAxisTitleFontSize, $event)"
1458
+ >
1459
+ </kendo-chartwizard-property-pane-form-field>
1460
+ <kendo-chartwizard-property-pane-form-field
1461
+ text="Color"
1462
+ inputType="colorPicker"
1463
+ [value]="stateService.state.valueAxis[0]?.title?.color"
1464
+ (valueChange)="updateState(valueAxisTitleColor, $event)"
1465
+ >
1466
+ </kendo-chartwizard-property-pane-form-field>
1467
+ </div>
1468
+ </fieldset>
1469
+ <fieldset class="k-form-fieldset">
1470
+ <legend class="k-form-legend">Labels</legend>
1471
+ <div class="k-form-layout k-d-grid k-grid-cols-2 k-gap-x-4">
1472
+ <kendo-chartwizard-property-pane-form-field
1473
+ text="Label Format"
1474
+ [colSpan]="2"
1475
+ inputType="dropDownList"
1476
+ [data]="labelFormats"
1477
+ [value]="labelFormatValue"
1478
+ (valueChange)="updateState(valueAxisLabelsFormat, $event)"
1479
+ >
1480
+ </kendo-chartwizard-property-pane-form-field>
1481
+ <kendo-chartwizard-property-pane-form-field
1482
+ text="Font"
1483
+ inputType="comboBox"
1484
+ [data]="fontNames"
1485
+ [colSpan]="2"
1486
+ placeholder="(Inherited font)"
1487
+ [value]="parseFont(stateService.state.valueAxis[0]?.labels?.font).name"
1488
+ (valueChange)="updateState(valueAxisLabelsFontName, $event)"
1489
+ >
1490
+ </kendo-chartwizard-property-pane-form-field>
1491
+ <kendo-chartwizard-property-pane-form-field
1492
+ text="Size"
1493
+ inputType="comboBox"
1494
+ [data]="fontSizes"
1495
+ placeholder="px"
1496
+ [value]="parseFont(stateService.state.valueAxis[0]?.labels?.font).size"
1497
+ (valueChange)="updateState(valueAxisLabelsFontSize, $event)"
1498
+ >
1499
+ </kendo-chartwizard-property-pane-form-field>
1500
+ <kendo-chartwizard-property-pane-form-field
1501
+ text="Color"
1502
+ inputType="colorPicker"
1503
+ [value]="stateService.state.valueAxis[0]?.labels?.color"
1504
+ (valueChange)="updateState(valueAxisLabelsColor, $event)"
1505
+ >
1506
+ </kendo-chartwizard-property-pane-form-field>
1507
+ <kendo-chartwizard-property-pane-form-field
1508
+ text="Rotation"
1509
+ inputType="dropDownList"
1510
+ [data]="labelsRotation"
1511
+ [value]="stateService.state.valueAxis[0]?.labels?.rotation"
1512
+ (valueChange)="updateState(valueAxisLabelsRotation, $event)"
1513
+ >
1514
+ </kendo-chartwizard-property-pane-form-field>
1515
+ </div>
1516
+ </fieldset>
1517
+ </form>
1518
+ </kendo-expansionpanel>
1519
+ </section>
1520
+ `, 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: ChartWizardPropertyPaneFormFieldComponent, selector: "kendo-chartwizard-property-pane-form-field", inputs: ["currentState", "action", "class", "inputType", "text", "data", "placeholder", "colSpan", "hasLabel", "isLabelInsideFormFieldWrap", "value", "disabled"], outputs: ["valueChange"] }, { kind: "component", type: LabelComponent, selector: "kendo-label", inputs: ["text", "for", "optional", "labelCssStyle", "labelCssClass"], exportAs: ["kendoLabel"] }, { kind: "component", type: SwitchComponent, selector: "kendo-switch", inputs: ["focusableId", "onLabel", "offLabel", "checked", "disabled", "readonly", "tabindex", "size", "thumbRounded", "trackRounded", "tabIndex"], outputs: ["focus", "blur", "valueChange"], exportAs: ["kendoSwitch"] }, { kind: "component", type: DropDownListComponent, selector: "kendo-dropdownlist", inputs: ["customIconClass", "showStickyHeader", "icon", "svgIcon", "loading", "data", "value", "textField", "valueField", "adaptiveMode", "title", "subtitle", "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: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
1521
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ChartWizardPropertyPaneFormatTabComponent, decorators: [{
2227
1522
  type: Component,
2228
- args: [{
2229
- selector: 'kendo-chartwizard-property-pane-chart-tab',
2230
- changeDetection: ChangeDetectionStrategy.OnPush,
2231
- template: `
2232
- <kendo-expansionpanel title="Bar Chart" [expanded]="true">
2233
- <div class="k-chart-types-wrapper">
2234
- <kendo-chartwizard-series-type-button
2235
- title="Bar"
2236
- [chartTypeIcon]="chartBarClusteredIcon"
2237
- seriesType="bar"
2238
- [stack]="false"
2239
- >
2240
- </kendo-chartwizard-series-type-button>
2241
- <kendo-chartwizard-series-type-button
2242
- title="Stacked Bar"
2243
- [chartTypeIcon]="chartBarStackedIcon"
2244
- seriesType="bar"
2245
- [stack]="true"
2246
- >
2247
- </kendo-chartwizard-series-type-button>
2248
- <kendo-chartwizard-series-type-button
2249
- title="100% Stacked Bar"
2250
- [chartTypeIcon]="chartBarStacked100Icon"
2251
- seriesType="bar"
2252
- [stack]="{ type: '100%' }"
2253
- >
2254
- </kendo-chartwizard-series-type-button>
2255
- </div>
2256
- </kendo-expansionpanel>
2257
- <kendo-expansionpanel title="Pie Chart" [expanded]="true">
2258
- <div class="k-chart-types-wrapper">
2259
- <kendo-chartwizard-series-type-button
2260
- title="Pie"
2261
- [chartTypeIcon]="chartPieIcon"
2262
- seriesType="pie"
2263
- [stack]="undefined"
2264
- >
2265
- </kendo-chartwizard-series-type-button>
2266
- </div>
2267
- </kendo-expansionpanel>
2268
- <kendo-expansionpanel title="Column Chart" [expanded]="true">
2269
- <div class="k-chart-types-wrapper">
2270
- <kendo-chartwizard-series-type-button
2271
- title="Column"
2272
- [chartTypeIcon]="chartColumnClusteredIcon"
2273
- seriesType="column"
2274
- [stack]="false"
2275
- >
2276
- </kendo-chartwizard-series-type-button>
2277
- <kendo-chartwizard-series-type-button
2278
- title="Stacked Column"
2279
- [chartTypeIcon]="chartColumnStackedIcon"
2280
- seriesType="column"
2281
- [stack]="true"
2282
- >
2283
- </kendo-chartwizard-series-type-button>
2284
- <kendo-chartwizard-series-type-button
2285
- title="100% Stacked Column"
2286
- [chartTypeIcon]="chartColumnStacked100Icon"
2287
- seriesType="column"
2288
- [stack]="{ type: '100%' }"
2289
- >
2290
- </kendo-chartwizard-series-type-button>
2291
- </div>
2292
- </kendo-expansionpanel>
2293
- <kendo-expansionpanel title="Line Chart" [expanded]="true">
2294
- <div class="k-chart-types-wrapper">
2295
- <kendo-chartwizard-series-type-button
2296
- title="Line"
2297
- [chartTypeIcon]="chartLineIcon"
2298
- seriesType="line"
2299
- [stack]="false"
2300
- >
2301
- </kendo-chartwizard-series-type-button>
2302
- <kendo-chartwizard-series-type-button
2303
- title="Stacked Line"
2304
- [chartTypeIcon]="chartLineStackedIcon"
2305
- seriesType="line"
2306
- [stack]="true"
2307
- >
2308
- </kendo-chartwizard-series-type-button>
2309
- <kendo-chartwizard-series-type-button
2310
- title="100% Line Column"
2311
- [chartTypeIcon]="chartLineStacked100Icon"
2312
- seriesType="line"
2313
- [stack]="{ type: '100%' }"
2314
- >
2315
- </kendo-chartwizard-series-type-button>
2316
- </div>
2317
- </kendo-expansionpanel>
2318
- <kendo-expansionpanel title="Scatter Chart" [expanded]="true">
2319
- <div class="k-chart-types-wrapper">
2320
- <kendo-chartwizard-series-type-button
2321
- title="Scatter"
2322
- [chartTypeIcon]="chartScatterIcon"
2323
- seriesType="scatter"
2324
- [stack]="false"
2325
- >
2326
- </kendo-chartwizard-series-type-button>
2327
- </div>
2328
- </kendo-expansionpanel>
1523
+ args: [{
1524
+ selector: 'kendo-chartwizard-property-pane-format-tab',
1525
+ changeDetection: ChangeDetectionStrategy.OnPush,
1526
+ template: `
1527
+ <section>
1528
+ <kendo-expansionpanel
1529
+ [style.max-width.px]="576"
1530
+ title="Chart Area"
1531
+ [expanded]="true"
1532
+ [attr.dir]="stateService.direction"
1533
+ >
1534
+ <form class="k-form k-form-md">
1535
+ <fieldset class="k-form-fieldset">
1536
+ <legend class="k-form-legend">Margins</legend>
1537
+ <div class="k-form-layout k-d-grid k-grid-cols-2 k-gap-x-4">
1538
+ <kendo-chartwizard-property-pane-form-field
1539
+ text="Left"
1540
+ inputType="numeric"
1541
+ [value]="$any(stateService.state.area.margin).left"
1542
+ (valueChange)="updateState(areaMarginLeft, $event)"
1543
+ >
1544
+ </kendo-chartwizard-property-pane-form-field>
1545
+ <kendo-chartwizard-property-pane-form-field
1546
+ text="Right"
1547
+ inputType="numeric"
1548
+ [value]="$any(stateService.state.area.margin).right"
1549
+ (valueChange)="updateState(areaMarginRight, $event)"
1550
+ >
1551
+ </kendo-chartwizard-property-pane-form-field>
1552
+ <kendo-chartwizard-property-pane-form-field
1553
+ text="Top"
1554
+ inputType="numeric"
1555
+ [value]="$any(stateService.state.area.margin).top"
1556
+ (valueChange)="updateState(areaMarginTop, $event)"
1557
+ >
1558
+ </kendo-chartwizard-property-pane-form-field>
1559
+ <kendo-chartwizard-property-pane-form-field
1560
+ text="Bottom"
1561
+ inputType="numeric"
1562
+ [value]="$any(stateService.state.area.margin).bottom"
1563
+ (valueChange)="updateState(areaMarginBottom, $event)"
1564
+ >
1565
+ </kendo-chartwizard-property-pane-form-field>
1566
+ </div>
1567
+ </fieldset>
1568
+ <fieldset class="k-form-fieldset">
1569
+ <legend class="k-form-legend">Background</legend>
1570
+ <kendo-chartwizard-property-pane-form-field
1571
+ text="Color"
1572
+ inputType="colorPicker"
1573
+ [value]="stateService.state.area?.background"
1574
+ (valueChange)="updateState(areaBackground, $event)"
1575
+ >
1576
+ </kendo-chartwizard-property-pane-form-field>
1577
+ </fieldset>
1578
+ </form>
1579
+ </kendo-expansionpanel>
1580
+ </section>
1581
+ <section>
1582
+ <kendo-expansionpanel
1583
+ [style.max-width.px]="576"
1584
+ title="Title"
1585
+ [expanded]="true"
1586
+ >
1587
+ <form class="k-form k-form-md">
1588
+ <div class="k-form-layout k-d-grid k-grid-cols-2 k-gap-x-4">
1589
+ <kendo-chartwizard-property-pane-form-field
1590
+ text="Apply to"
1591
+ inputType="dropDownList"
1592
+ [data]="chartTitles"
1593
+ [colSpan]="2"
1594
+ [value]="stateService.currentTitle"
1595
+ (valueChange)="changeCurrentTitle($event)"
1596
+ >
1597
+ </kendo-chartwizard-property-pane-form-field>
1598
+ <kendo-chartwizard-property-pane-form-field
1599
+ text="Title"
1600
+ inputType="text"
1601
+ [colSpan]="2"
1602
+ [value]="chartTitleTypeText"
1603
+ (valueChange)="updateState(chartTitleTypeAction, $event)"
1604
+ >
1605
+ </kendo-chartwizard-property-pane-form-field>
1606
+ <kendo-chartwizard-property-pane-form-field
1607
+ text="Font"
1608
+ inputType="comboBox"
1609
+ [data]="fontNames"
1610
+ [colSpan]="2"
1611
+ [value]="chartTitleTypeFont"
1612
+ placeholder="(Inherited font)"
1613
+ (valueChange)="updateState(chartTitleTypeFontAction, $event)"
1614
+ >
1615
+ </kendo-chartwizard-property-pane-form-field>
1616
+ <kendo-chartwizard-property-pane-form-field
1617
+ text="Size"
1618
+ inputType="comboBox"
1619
+ placeholder="px"
1620
+ [data]="fontSizes"
1621
+ [value]="chartTitleTypeFontSize"
1622
+ (valueChange)="updateState(chartTitleTypeFontSizeAction, $event)"
1623
+ >
1624
+ </kendo-chartwizard-property-pane-form-field>
1625
+ <kendo-chartwizard-property-pane-form-field
1626
+ text="Color"
1627
+ inputType="colorPicker"
1628
+ [value]="chartTitleTypeColor"
1629
+ (valueChange)="updateState(chartTitleTypeColorAction, $event)"
1630
+ >
1631
+ </kendo-chartwizard-property-pane-form-field>
1632
+ </div>
1633
+ </form>
1634
+ </kendo-expansionpanel>
1635
+ </section>
1636
+ <section>
1637
+ <kendo-expansionpanel
1638
+ [style.max-width.px]="576"
1639
+ title="Legend"
1640
+ [expanded]="true"
1641
+ >
1642
+ <form class="k-form k-form-md">
1643
+ <div class="k-form-layout k-d-grid k-grid-cols-2 k-gap-x-4">
1644
+ <kendo-label [for]="toggleLegend" text="Show Legend"></kendo-label>
1645
+ <kendo-switch
1646
+ #toggleLegend
1647
+ onLabel="On"
1648
+ offLabel="Off"
1649
+ thumbRounded="full"
1650
+ size="medium"
1651
+ [checked]="stateService.state.legend?.visible"
1652
+ (valueChange)="updateState(legendVisible, $event)"
1653
+ ></kendo-switch>
1654
+ <kendo-chartwizard-property-pane-form-field
1655
+ text="Font"
1656
+ inputType="comboBox"
1657
+ [data]="fontNames"
1658
+ [colSpan]="2"
1659
+ placeholder="(Inherited font)"
1660
+ [value]="parseFont(stateService.state.legend?.labels?.font).name"
1661
+ (valueChange)="updateState(legendFontName, $event)"
1662
+ >
1663
+ </kendo-chartwizard-property-pane-form-field>
1664
+ <kendo-chartwizard-property-pane-form-field
1665
+ text="Size"
1666
+ inputType="comboBox"
1667
+ [data]="fontSizes"
1668
+ placeholder="px"
1669
+ [value]="parseFont(stateService.state.legend?.labels?.font).size"
1670
+ (valueChange)="updateState(legendFontSize, $event)"
1671
+ >
1672
+ </kendo-chartwizard-property-pane-form-field>
1673
+ <kendo-chartwizard-property-pane-form-field
1674
+ text="Color"
1675
+ inputType="colorPicker"
1676
+ [value]="stateService.state.legend?.labels?.color"
1677
+ (valueChange)="updateState(legendColor, $event)"
1678
+ >
1679
+ </kendo-chartwizard-property-pane-form-field>
1680
+ <kendo-chartwizard-property-pane-form-field
1681
+ text="Position"
1682
+ inputType="dropDownList"
1683
+ [colSpan]="2"
1684
+ [data]="legendPositions"
1685
+ [value]="stateService.state.legend?.position"
1686
+ (valueChange)="updateState(legendPosition, $event)"
1687
+ >
1688
+ </kendo-chartwizard-property-pane-form-field>
1689
+ </div>
1690
+ </form>
1691
+ </kendo-expansionpanel>
1692
+ </section>
1693
+ <section>
1694
+ <kendo-expansionpanel
1695
+ [style.max-width.px]="576"
1696
+ title="Series"
1697
+ [expanded]="true"
1698
+ >
1699
+ <form class="k-form k-form-md">
1700
+ <div class="k-form-field">
1701
+ <kendo-label [for]="seriesDropDown" class="k-form-label" text="Apply to"></kendo-label>
1702
+ <div class="k-form-field-wrap">
1703
+ <kendo-dropdownlist
1704
+ #seriesDropDown
1705
+ [data]="seriesData"
1706
+ textField="name"
1707
+ valueField="name"
1708
+ fillMode="outline"
1709
+ rounded="medium"
1710
+ size="medium"
1711
+ [value]="stateService.currentSeries"
1712
+ (valueChange)="updateCurrentSeries($event)"
1713
+ ></kendo-dropdownlist>
1714
+ </div>
1715
+ </div>
1716
+
1717
+ <kendo-chartwizard-property-pane-form-field
1718
+ text="Color"
1719
+ [value]="stateService.currentSeries?.color"
1720
+ inputType="colorPicker"
1721
+ [disabled]="stateService.currentSeries.name === defaultAllSeriesItem.name"
1722
+ (valueChange)="updateSeriesColor($event)"
1723
+ >
1724
+ </kendo-chartwizard-property-pane-form-field>
1725
+ <kendo-chartwizard-property-pane-form-field
1726
+ text="Show Labels"
1727
+ [value]="showLabels"
1728
+ [isLabelInsideFormFieldWrap]="true"
1729
+ [colSpan]="2"
1730
+ inputType="checkbox"
1731
+ (valueChange)="toggleSeriesLabels($event)"
1732
+ >
1733
+ </kendo-chartwizard-property-pane-form-field>
1734
+ </form>
1735
+ </kendo-expansionpanel>
1736
+ </section>
1737
+ <section *ngIf="stateService.state.seriesType !== 'pie'" class="k-row-start-1 k-row-end-3 k-col-start-3">
1738
+ <kendo-expansionpanel
1739
+ [style.max-width.px]="576"
1740
+ [title]="stateService.state.seriesType === 'scatter' ? 'X Axis' : 'Category axis'"
1741
+ [expanded]="true"
1742
+ >
1743
+ <form class="k-form k-form-md">
1744
+ <fieldset class="k-form-fieldset">
1745
+ <legend class="k-form-legend">Title</legend>
1746
+ <div class="k-form-layout k-d-grid k-grid-cols-2 k-gap-x-4">
1747
+ <kendo-chartwizard-property-pane-form-field
1748
+ inputType="text"
1749
+ [hasLabel]="false"
1750
+ [colSpan]="2"
1751
+ placeholder="Axis Title"
1752
+ [value]="stateService.state.categoryAxis[0]?.title?.text || null"
1753
+ (valueChange)="updateState(categoryAxisTitleText, $event)"
1754
+ >
1755
+ </kendo-chartwizard-property-pane-form-field>
1756
+ <kendo-chartwizard-property-pane-form-field
1757
+ text="Font"
1758
+ inputType="comboBox"
1759
+ [data]="fontNames"
1760
+ [colSpan]="2"
1761
+ placeholder="(Inherited font)"
1762
+ [value]="parseFont(stateService.state.categoryAxis[0]?.title?.font).name"
1763
+ (valueChange)="updateState(categoryAxisTitleFontName, $event)"
1764
+ >
1765
+ </kendo-chartwizard-property-pane-form-field>
1766
+ <kendo-chartwizard-property-pane-form-field
1767
+ text="Size"
1768
+ inputType="comboBox"
1769
+ placeholder="px"
1770
+ [data]="fontSizes"
1771
+ [value]="parseFont(stateService.state.categoryAxis[0]?.title?.font).size"
1772
+ (valueChange)="updateState(categoryAxisTitleFontSize, $event)"
1773
+ >
1774
+ </kendo-chartwizard-property-pane-form-field>
1775
+ <kendo-chartwizard-property-pane-form-field
1776
+ text="Color"
1777
+ inputType="colorPicker"
1778
+ [value]="stateService.state.categoryAxis[0]?.title?.color"
1779
+ (valueChange)="updateState(categoryAxisTitleColor, $event)"
1780
+ >
1781
+ </kendo-chartwizard-property-pane-form-field>
1782
+ </div>
1783
+ </fieldset>
1784
+ <fieldset class="k-form-fieldset">
1785
+ <legend class="k-form-legend">Labels</legend>
1786
+ <div class="k-form-layout k-d-grid k-grid-cols-2 k-gap-x-4">
1787
+ <kendo-chartwizard-property-pane-form-field
1788
+ text="Font"
1789
+ inputType="comboBox"
1790
+ [data]="fontNames"
1791
+ [colSpan]="2"
1792
+ placeholder="(Inherited font)"
1793
+ [value]="parseFont(stateService.state.categoryAxis[0]?.labels?.font).name"
1794
+ (valueChange)="updateState(categoryAxisLabelsFontName, $event)"
1795
+ >
1796
+ </kendo-chartwizard-property-pane-form-field>
1797
+ <kendo-chartwizard-property-pane-form-field
1798
+ text="Size"
1799
+ inputType="comboBox"
1800
+ [data]="fontSizes"
1801
+ placeholder="px"
1802
+ [value]="parseFont(stateService.state.categoryAxis[0]?.labels?.font).size"
1803
+ (valueChange)="updateState(categoryAxisLabelsFontSize, $event)"
1804
+ >
1805
+ </kendo-chartwizard-property-pane-form-field>
1806
+ <kendo-chartwizard-property-pane-form-field
1807
+ text="Color"
1808
+ inputType="colorPicker"
1809
+ [value]="stateService.state.categoryAxis[0]?.labels?.color"
1810
+ (valueChange)="updateState(categoryAxisLabelsColor, $event)"
1811
+ >
1812
+ </kendo-chartwizard-property-pane-form-field>
1813
+ <kendo-chartwizard-property-pane-form-field
1814
+ text="Rotation"
1815
+ inputType="dropDownList"
1816
+ [data]="labelsRotation"
1817
+ [value]="stateService.state.categoryAxis[0]?.labels?.rotation"
1818
+ (valueChange)="updateState(categoryAxisLabelsRotation, $event)"
1819
+ >
1820
+ </kendo-chartwizard-property-pane-form-field>
1821
+ <span></span>
1822
+ <kendo-chartwizard-property-pane-form-field
1823
+ text="Reverse Order"
1824
+ [isLabelInsideFormFieldWrap]="true"
1825
+ inputType="checkbox"
1826
+ [colSpan]="2"
1827
+ [value]="stateService.state.categoryAxis[0]?.reverse"
1828
+ (valueChange)="updateState(categoryAxisReverseOrder, $event)"
1829
+ >
1830
+ </kendo-chartwizard-property-pane-form-field>
1831
+ </div>
1832
+ </fieldset>
1833
+ </form>
1834
+ </kendo-expansionpanel>
1835
+ </section>
1836
+ <section *ngIf="stateService.state.seriesType !== 'pie'" class="k-row-start-1 k-row-end-3 k-col-start-4">
1837
+ <kendo-expansionpanel
1838
+ [style.max-width.px]="576"
1839
+ [title]="stateService.state.seriesType === 'scatter' ? 'Y Axis' : 'Value axis'"
1840
+ [expanded]="true"
1841
+ >
1842
+ <form class="k-form k-form-md">
1843
+ <fieldset class="k-form-fieldset">
1844
+ <legend class="k-form-legend">Title</legend>
1845
+ <div class="k-form-layout k-d-grid k-grid-cols-2 k-gap-x-4">
1846
+ <kendo-chartwizard-property-pane-form-field
1847
+ inputType="text"
1848
+ [hasLabel]="false"
1849
+ [colSpan]="2"
1850
+ placeholder="Axis Title"
1851
+ [value]="stateService.state.valueAxis[0]?.title?.text || null"
1852
+ (valueChange)="updateState(valueAxisTitleText, $event)"
1853
+ >
1854
+ </kendo-chartwizard-property-pane-form-field>
1855
+ <kendo-chartwizard-property-pane-form-field
1856
+ text="Font"
1857
+ inputType="comboBox"
1858
+ [colSpan]="2"
1859
+ [data]="fontNames"
1860
+ placeholder="(Inherited font)"
1861
+ [value]="parseFont(stateService.state.valueAxis[0]?.title?.font).name"
1862
+ (valueChange)="updateState(valueAxisTitleFontName, $event)"
1863
+ >
1864
+ </kendo-chartwizard-property-pane-form-field>
1865
+ <kendo-chartwizard-property-pane-form-field
1866
+ text="Size"
1867
+ inputType="comboBox"
1868
+ placeholder="px"
1869
+ [data]="fontSizes"
1870
+ [value]="parseFont(stateService.state.valueAxis[0]?.title?.font).size"
1871
+ (valueChange)="updateState(valueAxisTitleFontSize, $event)"
1872
+ >
1873
+ </kendo-chartwizard-property-pane-form-field>
1874
+ <kendo-chartwizard-property-pane-form-field
1875
+ text="Color"
1876
+ inputType="colorPicker"
1877
+ [value]="stateService.state.valueAxis[0]?.title?.color"
1878
+ (valueChange)="updateState(valueAxisTitleColor, $event)"
1879
+ >
1880
+ </kendo-chartwizard-property-pane-form-field>
1881
+ </div>
1882
+ </fieldset>
1883
+ <fieldset class="k-form-fieldset">
1884
+ <legend class="k-form-legend">Labels</legend>
1885
+ <div class="k-form-layout k-d-grid k-grid-cols-2 k-gap-x-4">
1886
+ <kendo-chartwizard-property-pane-form-field
1887
+ text="Label Format"
1888
+ [colSpan]="2"
1889
+ inputType="dropDownList"
1890
+ [data]="labelFormats"
1891
+ [value]="labelFormatValue"
1892
+ (valueChange)="updateState(valueAxisLabelsFormat, $event)"
1893
+ >
1894
+ </kendo-chartwizard-property-pane-form-field>
1895
+ <kendo-chartwizard-property-pane-form-field
1896
+ text="Font"
1897
+ inputType="comboBox"
1898
+ [data]="fontNames"
1899
+ [colSpan]="2"
1900
+ placeholder="(Inherited font)"
1901
+ [value]="parseFont(stateService.state.valueAxis[0]?.labels?.font).name"
1902
+ (valueChange)="updateState(valueAxisLabelsFontName, $event)"
1903
+ >
1904
+ </kendo-chartwizard-property-pane-form-field>
1905
+ <kendo-chartwizard-property-pane-form-field
1906
+ text="Size"
1907
+ inputType="comboBox"
1908
+ [data]="fontSizes"
1909
+ placeholder="px"
1910
+ [value]="parseFont(stateService.state.valueAxis[0]?.labels?.font).size"
1911
+ (valueChange)="updateState(valueAxisLabelsFontSize, $event)"
1912
+ >
1913
+ </kendo-chartwizard-property-pane-form-field>
1914
+ <kendo-chartwizard-property-pane-form-field
1915
+ text="Color"
1916
+ inputType="colorPicker"
1917
+ [value]="stateService.state.valueAxis[0]?.labels?.color"
1918
+ (valueChange)="updateState(valueAxisLabelsColor, $event)"
1919
+ >
1920
+ </kendo-chartwizard-property-pane-form-field>
1921
+ <kendo-chartwizard-property-pane-form-field
1922
+ text="Rotation"
1923
+ inputType="dropDownList"
1924
+ [data]="labelsRotation"
1925
+ [value]="stateService.state.valueAxis[0]?.labels?.rotation"
1926
+ (valueChange)="updateState(valueAxisLabelsRotation, $event)"
1927
+ >
1928
+ </kendo-chartwizard-property-pane-form-field>
1929
+ </div>
1930
+ </fieldset>
1931
+ </form>
1932
+ </kendo-expansionpanel>
1933
+ </section>
2329
1934
  `,
2330
1935
  standalone: true,
2331
- imports: [ExpansionPanelComponent, ChartWizardSeriesTypeButtonComponent]
1936
+ imports: [
1937
+ ExpansionPanelComponent,
1938
+ ChartWizardPropertyPaneFormFieldComponent,
1939
+ LabelComponent,
1940
+ SwitchComponent,
1941
+ DropDownListComponent,
1942
+ NgIf
1943
+ ]
2332
1944
  }]
2333
- }], ctorParameters: function () { return [{ type: StateService }, { type: i0.ChangeDetectorRef }, { type: i2.LocalizationService }]; } });
2334
-
2335
- /**
2336
- * @hidden
2337
- */
2338
- class PreventableEvent {
2339
- constructor() {
2340
- this.prevented = false;
2341
- }
2342
- /**
2343
- * Prevents the default action for a specified event.
2344
- * In this way, the source component suppresses
2345
- * the built-in behavior that follows the event.
2346
- */
2347
- preventDefault() {
2348
- this.prevented = true;
2349
- }
2350
- /**
2351
- * Returns `true` if the event was prevented
2352
- * by any of its subscribers.
2353
- *
2354
- * @returns `true` if the default action was prevented.
2355
- * Otherwise, returns `false`.
2356
- */
2357
- isDefaultPrevented() {
2358
- return this.prevented;
2359
- }
2360
- }
2361
-
2362
- /**
2363
- * Arguments for the `export` event on the Chart Wizard.
2364
- */
2365
- class ExportEvent extends PreventableEvent {
2366
- /**
2367
- * @hidden
2368
- */
2369
- constructor(chart, exportOptions) {
2370
- super();
2371
- this.chart = chart;
2372
- this.exportOptions = exportOptions;
2373
- }
2374
- }
1945
+ }], ctorParameters: function () { return [{ type: StateService }, { type: i2$1.LocalizationService }, { type: i0.ChangeDetectorRef }]; } });
2375
1946
 
2376
1947
  /**
2377
1948
  * Represents the Kendo UI for Angular Chart Wizard component.
@@ -2430,26 +2001,27 @@ class ChartWizardComponent {
2430
2001
  this.subscription.add(this.localization.changes.subscribe(({ rtl }) => {
2431
2002
  this.stateService.direction = rtl ? 'rtl' : 'ltr';
2432
2003
  }));
2004
+ this.stateService.dataTab = this.dataTab;
2433
2005
  }
2434
2006
  ngOnChanges(changes) {
2435
- var _a;
2436
- if (changes['data']) {
2007
+ var _a, _b, _c;
2008
+ if (changes['data'] && ((_a = changes['data'].currentValue) === null || _a === void 0 ? void 0 : _a.length) > 0) {
2437
2009
  const data = changes['data'].currentValue;
2438
2010
  const clonedData = structuredClone(data);
2439
2011
  this.stateService.data = clonedData;
2440
- this.stateService.state = createState(clonedData, this.stateService.seriesType);
2012
+ this.stateService.state = createState(clonedData, this.stateService.state.seriesType);
2441
2013
  }
2442
- if (changes['defaultState']) {
2014
+ if (changes['defaultState'] && ((_b = this.data) === null || _b === void 0 ? void 0 : _b.length) > 0) {
2443
2015
  const defaultState = changes['defaultState'].currentValue;
2444
2016
  if (defaultState.seriesType) {
2445
- this.stateService.seriesType = defaultState.seriesType;
2446
- this.stateService.state = mergeStates(this.stateService.state, createState(this.stateService.data, this.stateService.seriesType));
2017
+ this.stateService.state.seriesType = defaultState.seriesType;
2018
+ this.stateService.state = mergeStates(this.stateService.state, createState(this.stateService.data, this.stateService.state.seriesType));
2447
2019
  }
2448
- this.stateService.currentSeries = {};
2020
+ this.stateService.currentSeries = defaultAllSeriesItem;
2449
2021
  if (typeof defaultState.stack !== 'undefined') {
2450
2022
  this.stateService.state = updateState(this.stateService.state, ActionTypes.stacked, defaultState.stack);
2451
2023
  }
2452
- (_a = this.propertyPane) === null || _a === void 0 ? void 0 : _a.detectChanges();
2024
+ (_c = this.propertyPane) === null || _c === void 0 ? void 0 : _c.detectChanges();
2453
2025
  }
2454
2026
  }
2455
2027
  ngOnDestroy() {
@@ -2495,7 +2067,7 @@ class ChartWizardComponent {
2495
2067
  }
2496
2068
  }
2497
2069
  }
2498
- ChartWizardComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ChartWizardComponent, deps: [{ token: i2.LocalizationService }, { token: StateService }], target: i0.ɵɵFactoryTarget.Component });
2070
+ ChartWizardComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ChartWizardComponent, deps: [{ token: i2$1.LocalizationService }, { token: StateService }], target: i0.ɵɵFactoryTarget.Component });
2499
2071
  ChartWizardComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: ChartWizardComponent, isStandalone: true, selector: "kendo-chartwizard", inputs: { data: "data", defaultState: "defaultState", exportOptions: "exportOptions" }, outputs: { close: "close", export: "export" }, host: { properties: { "attr.dir": "this.dir" } }, providers: [
2500
2072
  LocalizationService,
2501
2073
  {
@@ -2503,7 +2075,7 @@ ChartWizardComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", v
2503
2075
  useValue: 'kendo.chartwizard',
2504
2076
  },
2505
2077
  StateService
2506
- ], viewQueries: [{ propertyName: "chart", first: true, predicate: ChartComponent, descendants: true }, { propertyName: "propertyPane", first: true, predicate: ChartWizardPropertyPaneChartTabComponent, descendants: true }], exportAs: ["kendoChartWizard"], usesOnChanges: true, ngImport: i0, template: `
2078
+ ], viewQueries: [{ propertyName: "chart", first: true, predicate: ChartComponent, descendants: true }, { propertyName: "propertyPane", first: true, predicate: ChartWizardPropertyPaneChartTabComponent, descendants: true }, { propertyName: "dataTab", first: true, predicate: ChartWizardPropertyPaneDataTabComponent, descendants: true }], exportAs: ["kendoChartWizard"], usesOnChanges: true, ngImport: i0, template: `
2507
2079
  <ng-container
2508
2080
  kendoChartWizardLocalizedMessages
2509
2081
  i18n-sampleMessage="kendo.chartwizard.sampleMessage|Sample description"
@@ -2530,8 +2102,8 @@ ChartWizardComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", v
2530
2102
  Export
2531
2103
  </kendo-dropdownbutton>
2532
2104
  </div>
2533
- <div class="k-preview-pane-content">
2534
- <kendo-chart [transitions]="false">
2105
+ <div class="k-preview-pane-content" [style.height]="'calc(100% - 50px)'">
2106
+ <kendo-chart [transitions]="false" [style.width.%]="100" [style.height.%]="100">
2535
2107
  <kendo-chart-title
2536
2108
  [text]="stateService.state.title?.text"
2537
2109
  [font]="stateService.state.title?.font"
@@ -2597,40 +2169,6 @@ ChartWizardComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", v
2597
2169
  >
2598
2170
  </kendo-chart-series-item>
2599
2171
  </kendo-chart-series>
2600
- <kendo-chart-x-axis>
2601
- <kendo-chart-x-axis-item
2602
- *ngFor="let axis of stateService.state.categoryAxis"
2603
- [categories]="axis.categories"
2604
- [title]="{
2605
- text: axis.title?.text,
2606
- font: axis.title?.font,
2607
- color: axis.title?.color
2608
- }"
2609
- [labels]="{
2610
- rotation: axis.labels?.rotation,
2611
- font: axis.labels?.font,
2612
- color: axis.labels?.color
2613
- }"
2614
- [reverse]="axis.reverse"
2615
- >
2616
- </kendo-chart-x-axis-item>
2617
- </kendo-chart-x-axis>
2618
- <kendo-chart-y-axis>
2619
- <kendo-chart-y-axis-item
2620
- *ngFor="let axis of stateService.state.valueAxis"
2621
- [title]="{
2622
- text: axis.title?.text,
2623
- font: axis.title?.font,
2624
- color: axis.title?.color
2625
- }"
2626
- [labels]="{
2627
- rotation: axis.labels?.rotation,
2628
- font: axis.labels?.font,
2629
- color: axis.labels?.color
2630
- }"
2631
- >
2632
- </kendo-chart-y-axis-item>
2633
- </kendo-chart-y-axis>
2634
2172
  <kendo-chart-legend
2635
2173
  [visible]="stateService.state.legend?.visible"
2636
2174
  [position]="stateService.state.legend?.position"
@@ -2664,7 +2202,7 @@ ChartWizardComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", v
2664
2202
  </kendo-splitter>
2665
2203
  <div kendoWatermarkOverlay *ngIf="showLicenseWatermark"></div>
2666
2204
  </kendo-window>
2667
- `, isInline: true, dependencies: [{ kind: "component", type: WindowComponent, selector: "kendo-window", inputs: ["autoFocusedElement", "title", "draggable", "resizable", "themeColor", "keepContent", "state", "minWidth", "minHeight", "width", "height", "top", "left"], outputs: ["dragStart", "dragEnd", "resizeStart", "resizeEnd", "close", "widthChange", "heightChange", "topChange", "leftChange", "stateChange"], exportAs: ["kendoWindow"] }, { kind: "component", type: SplitterComponent, selector: "kendo-splitter", inputs: ["orientation", "splitbarWidth", "resizeStep"], outputs: ["layoutChange"], exportAs: ["kendoSplitter"] }, { kind: "component", type: SplitterPaneComponent, selector: "kendo-splitter-pane", inputs: ["order", "size", "separatorLabel", "min", "max", "resizable", "collapsible", "scrollable", "collapsed", "orientation", "containsSplitter", "overlayContent"], outputs: ["sizeChange", "collapsedChange"], exportAs: ["kendoSplitterPane"] }, { kind: "component", type: DropDownButtonComponent, selector: "kendo-dropdownbutton", inputs: ["arrowIcon", "icon", "svgIcon", "iconClass", "imageUrl", "textField", "data", "size", "rounded", "fillMode", "themeColor", "buttonAttributes"], outputs: ["itemClick", "focus", "blur"], exportAs: ["kendoDropDownButton"] }, { kind: "component", type: ChartComponent, selector: "kendo-chart", inputs: ["pannable", "renderAs", "seriesColors", "subtitle", "title", "transitions", "zoomable", "axisDefaults", "categoryAxis", "chartArea", "legend", "panes", "paneDefaults", "plotArea", "series", "seriesDefaults", "tooltip", "valueAxis", "xAxis", "yAxis", "resizeRateLimit", "popupSettings", "drilldownLevel"], outputs: ["axisLabelClick", "drag", "dragEnd", "dragStart", "legendItemHover", "legendItemLeave", "noteClick", "noteHover", "noteLeave", "paneRender", "plotAreaClick", "plotAreaHover", "plotAreaLeave", "render", "select", "selectEnd", "selectStart", "seriesClick", "drilldown", "seriesHover", "seriesOver", "seriesLeave", "zoom", "zoomEnd", "zoomStart", "legendItemClick", "drilldownLevelChange"], exportAs: ["kendoChart"] }, { kind: "component", type: TitleComponent, selector: "kendo-chart-title", inputs: ["align", "background", "border", "color", "font", "margin", "padding", "position", "text", "description", "visible"] }, { kind: "component", type: SubtitleComponent, selector: "kendo-chart-subtitle", inputs: ["align", "background", "border", "color", "font", "margin", "padding", "position", "text", "visible"] }, { kind: "component", type: ChartAreaComponent, selector: "kendo-chart-area", inputs: ["background", "border", "height", "margin", "opacity", "width"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: CategoryAxisComponent, selector: "kendo-chart-category-axis" }, { kind: "directive", type: NgFor, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "component", type: CategoryAxisItemComponent, selector: "kendo-chart-category-axis-item", inputs: ["autoBaseUnitSteps", "axisCrossingValue", "background", "baseUnit", "baseUnitStep", "categories", "color", "justified", "line", "majorGridLines", "majorTicks", "max", "maxDateGroups", "maxDivisions", "min", "minorGridLines", "minorTicks", "name", "pane", "plotBands", "reverse", "roundToBaseUnit", "startAngle", "type", "visible", "weekStartDay", "crosshair", "labels", "notes", "select", "title", "rangeLabels"] }, { kind: "component", type: ValueAxisComponent, selector: "kendo-chart-value-axis" }, { kind: "component", type: ValueAxisItemComponent, selector: "kendo-chart-value-axis-item", inputs: ["axisCrossingValue", "background", "color", "line", "majorGridLines", "majorTicks", "majorUnit", "max", "min", "minorGridLines", "minorTicks", "minorUnit", "name", "narrowRange", "pane", "plotBands", "reverse", "type", "visible", "crosshair", "labels", "notes", "title"] }, { kind: "component", type: SeriesComponent, selector: "kendo-chart-series" }, { kind: "component", type: SeriesItemComponent, selector: "kendo-chart-series-item", inputs: ["aggregate", "autoFit", "axis", "border", "categoryAxis", "categoryField", "closeField", "color", "colorField", "connectors", "currentField", "dashType", "data", "downColor", "downColorField", "drilldownField", "dynamicHeight", "dynamicSlope", "errorHighField", "errorLowField", "explodeField", "field", "fromField", "gap", "highField", "holeSize", "line", "lowField", "lowerField", "margin", "maxSize", "mean", "meanField", "median", "medianField", "minSize", "missingValues", "name", "neckRatio", "negativeColor", "negativeValues", "noteTextField", "opacity", "openField", "outliersField", "overlay", "padding", "q1Field", "q3Field", "segmentSpacing", "size", "sizeField", "spacing", "stack", "startAngle", "style", "summaryField", "target", "toField", "type", "upperField", "visible", "visibleInLegend", "visibleInLegendField", "visual", "width", "whiskers", "xAxis", "xErrorHighField", "xErrorLowField", "xField", "yAxis", "yErrorHighField", "yErrorLowField", "yField", "zIndex", "trendline", "for", "legendItem", "errorBars", "extremes", "highlight", "labels", "markers", "notes", "outliers", "tooltip"] }, { kind: "component", type: XAxisComponent, selector: "kendo-chart-x-axis" }, { kind: "component", type: XAxisItemComponent, selector: "kendo-chart-x-axis-item", inputs: ["axisCrossingValue", "background", "baseUnit", "categories", "color", "line", "majorGridLines", "majorTicks", "majorUnit", "max", "min", "minorGridLines", "minorTicks", "minorUnit", "name", "narrowRange", "pane", "plotBands", "reverse", "startAngle", "type", "visible", "weekStartDay", "crosshair", "labels", "notes", "title"] }, { kind: "component", type: YAxisComponent, selector: "kendo-chart-y-axis" }, { kind: "component", type: YAxisItemComponent, selector: "kendo-chart-y-axis-item", inputs: ["axisCrossingValue", "background", "baseUnit", "categories", "color", "line", "majorGridLines", "majorTicks", "majorUnit", "max", "min", "minorGridLines", "minorTicks", "minorUnit", "name", "narrowRange", "pane", "plotBands", "reverse", "type", "visible", "crosshair", "labels", "notes", "title"] }, { kind: "component", type: LegendComponent, selector: "kendo-chart-legend", inputs: ["align", "background", "border", "height", "labels", "margin", "offsetX", "offsetY", "orientation", "padding", "position", "reverse", "visible", "width", "markers", "spacing", "inactiveItems", "item", "title"] }, { kind: "component", type: TabStripComponent, selector: "kendo-tabstrip", inputs: ["height", "animate", "tabAlignment", "tabPosition", "keepTabContent", "closable", "scrollable", "closeIcon", "closeIconClass", "closeSVGIcon", "showContentArea"], outputs: ["tabSelect", "tabClose", "tabScroll"], exportAs: ["kendoTabStrip"] }, { kind: "component", type: TabStripTabComponent, selector: "kendo-tabstrip-tab", inputs: ["title", "disabled", "cssClass", "cssStyle", "selected", "closable", "closeIcon", "closeIconClass", "closeSVGIcon"], exportAs: ["kendoTabStripTab"] }, { kind: "directive", type: TabContentDirective, selector: "[kendoTabContent]" }, { kind: "component", type: ChartWizardPropertyPaneChartTabComponent, selector: "kendo-chartwizard-property-pane-chart-tab" }, { kind: "component", type: ChartWizardPropertyPaneFormatTabComponent, selector: "kendo-chartwizard-property-pane-data-tab" }, { kind: "component", type: ChartWizardPropertyPaneDataTabComponent, selector: "kendo-chartwizard-property-pane-format-tab" }, { kind: "component", type: WatermarkOverlayComponent, selector: "div[kendoWatermarkOverlay]" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
2205
+ `, isInline: true, dependencies: [{ kind: "component", type: WindowComponent, selector: "kendo-window", inputs: ["autoFocusedElement", "title", "draggable", "resizable", "themeColor", "keepContent", "state", "minWidth", "minHeight", "width", "height", "top", "left"], outputs: ["dragStart", "dragEnd", "resizeStart", "resizeEnd", "close", "widthChange", "heightChange", "topChange", "leftChange", "stateChange"], exportAs: ["kendoWindow"] }, { kind: "component", type: SplitterComponent, selector: "kendo-splitter", inputs: ["orientation", "splitbarWidth", "resizeStep"], outputs: ["layoutChange"], exportAs: ["kendoSplitter"] }, { kind: "component", type: SplitterPaneComponent, selector: "kendo-splitter-pane", inputs: ["order", "size", "separatorLabel", "min", "max", "resizable", "collapsible", "scrollable", "collapsed", "orientation", "containsSplitter", "overlayContent"], outputs: ["sizeChange", "collapsedChange"], exportAs: ["kendoSplitterPane"] }, { kind: "component", type: DropDownButtonComponent, selector: "kendo-dropdownbutton", inputs: ["arrowIcon", "icon", "svgIcon", "iconClass", "imageUrl", "textField", "data", "size", "rounded", "fillMode", "themeColor", "buttonAttributes"], outputs: ["itemClick", "focus", "blur"], exportAs: ["kendoDropDownButton"] }, { kind: "component", type: ChartComponent, selector: "kendo-chart", inputs: ["pannable", "renderAs", "seriesColors", "subtitle", "title", "transitions", "zoomable", "axisDefaults", "categoryAxis", "chartArea", "legend", "panes", "paneDefaults", "plotArea", "series", "seriesDefaults", "tooltip", "valueAxis", "xAxis", "yAxis", "resizeRateLimit", "popupSettings", "drilldownLevel"], outputs: ["axisLabelClick", "drag", "dragEnd", "dragStart", "legendItemHover", "legendItemLeave", "noteClick", "noteHover", "noteLeave", "paneRender", "plotAreaClick", "plotAreaHover", "plotAreaLeave", "render", "select", "selectEnd", "selectStart", "seriesClick", "drilldown", "seriesHover", "seriesOver", "seriesLeave", "zoom", "zoomEnd", "zoomStart", "legendItemClick", "drilldownLevelChange"], exportAs: ["kendoChart"] }, { kind: "component", type: TitleComponent, selector: "kendo-chart-title", inputs: ["align", "background", "border", "color", "font", "margin", "padding", "position", "text", "description", "visible"] }, { kind: "component", type: SubtitleComponent, selector: "kendo-chart-subtitle", inputs: ["align", "background", "border", "color", "font", "margin", "padding", "position", "text", "visible"] }, { kind: "component", type: ChartAreaComponent, selector: "kendo-chart-area", inputs: ["background", "border", "height", "margin", "opacity", "width"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: CategoryAxisComponent, selector: "kendo-chart-category-axis" }, { kind: "directive", type: NgFor, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "component", type: CategoryAxisItemComponent, selector: "kendo-chart-category-axis-item", inputs: ["autoBaseUnitSteps", "axisCrossingValue", "background", "baseUnit", "baseUnitStep", "categories", "color", "justified", "line", "majorGridLines", "majorTicks", "max", "maxDateGroups", "maxDivisions", "min", "minorGridLines", "minorTicks", "name", "pane", "plotBands", "reverse", "roundToBaseUnit", "startAngle", "type", "visible", "weekStartDay", "crosshair", "labels", "notes", "select", "title", "rangeLabels"] }, { kind: "component", type: ValueAxisComponent, selector: "kendo-chart-value-axis" }, { kind: "component", type: ValueAxisItemComponent, selector: "kendo-chart-value-axis-item", inputs: ["axisCrossingValue", "background", "color", "line", "majorGridLines", "majorTicks", "majorUnit", "max", "min", "minorGridLines", "minorTicks", "minorUnit", "name", "narrowRange", "pane", "plotBands", "reverse", "type", "visible", "crosshair", "labels", "notes", "title"] }, { kind: "component", type: SeriesComponent, selector: "kendo-chart-series" }, { kind: "component", type: SeriesItemComponent, selector: "kendo-chart-series-item", inputs: ["aggregate", "autoFit", "axis", "border", "categoryAxis", "categoryField", "closeField", "color", "colorField", "connectors", "currentField", "dashType", "data", "downColor", "downColorField", "drilldownField", "dynamicHeight", "dynamicSlope", "errorHighField", "errorLowField", "explodeField", "field", "fromField", "gap", "highField", "holeSize", "line", "lowField", "lowerField", "margin", "maxSize", "mean", "meanField", "median", "medianField", "minSize", "missingValues", "name", "neckRatio", "negativeColor", "negativeValues", "noteTextField", "opacity", "openField", "outliersField", "overlay", "padding", "q1Field", "q3Field", "segmentSpacing", "size", "sizeField", "spacing", "stack", "startAngle", "style", "summaryField", "target", "toField", "type", "upperField", "visible", "visibleInLegend", "visibleInLegendField", "visual", "width", "whiskers", "xAxis", "xErrorHighField", "xErrorLowField", "xField", "yAxis", "yErrorHighField", "yErrorLowField", "yField", "zIndex", "trendline", "for", "legendItem", "errorBars", "extremes", "highlight", "labels", "markers", "notes", "outliers", "tooltip"] }, { kind: "component", type: LegendComponent, selector: "kendo-chart-legend", inputs: ["align", "background", "border", "height", "labels", "margin", "offsetX", "offsetY", "orientation", "padding", "position", "reverse", "visible", "width", "markers", "spacing", "inactiveItems", "item", "title"] }, { kind: "component", type: TabStripComponent, selector: "kendo-tabstrip", inputs: ["height", "animate", "tabAlignment", "tabPosition", "keepTabContent", "closable", "scrollable", "closeIcon", "closeIconClass", "closeSVGIcon", "showContentArea"], outputs: ["tabSelect", "tabClose", "tabScroll"], exportAs: ["kendoTabStrip"] }, { kind: "component", type: TabStripTabComponent, selector: "kendo-tabstrip-tab", inputs: ["title", "disabled", "cssClass", "cssStyle", "selected", "closable", "closeIcon", "closeIconClass", "closeSVGIcon"], exportAs: ["kendoTabStripTab"] }, { kind: "directive", type: TabContentDirective, selector: "[kendoTabContent]" }, { kind: "component", type: ChartWizardPropertyPaneChartTabComponent, selector: "kendo-chartwizard-property-pane-chart-tab" }, { kind: "component", type: ChartWizardPropertyPaneFormatTabComponent, selector: "kendo-chartwizard-property-pane-format-tab" }, { kind: "component", type: ChartWizardPropertyPaneDataTabComponent, selector: "kendo-chartwizard-property-pane-data-tab" }, { kind: "component", type: WatermarkOverlayComponent, selector: "div[kendoWatermarkOverlay]" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
2668
2206
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ChartWizardComponent, decorators: [{
2669
2207
  type: Component,
2670
2208
  args: [{
@@ -2706,8 +2244,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
2706
2244
  Export
2707
2245
  </kendo-dropdownbutton>
2708
2246
  </div>
2709
- <div class="k-preview-pane-content">
2710
- <kendo-chart [transitions]="false">
2247
+ <div class="k-preview-pane-content" [style.height]="'calc(100% - 50px)'">
2248
+ <kendo-chart [transitions]="false" [style.width.%]="100" [style.height.%]="100">
2711
2249
  <kendo-chart-title
2712
2250
  [text]="stateService.state.title?.text"
2713
2251
  [font]="stateService.state.title?.font"
@@ -2773,40 +2311,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
2773
2311
  >
2774
2312
  </kendo-chart-series-item>
2775
2313
  </kendo-chart-series>
2776
- <kendo-chart-x-axis>
2777
- <kendo-chart-x-axis-item
2778
- *ngFor="let axis of stateService.state.categoryAxis"
2779
- [categories]="axis.categories"
2780
- [title]="{
2781
- text: axis.title?.text,
2782
- font: axis.title?.font,
2783
- color: axis.title?.color
2784
- }"
2785
- [labels]="{
2786
- rotation: axis.labels?.rotation,
2787
- font: axis.labels?.font,
2788
- color: axis.labels?.color
2789
- }"
2790
- [reverse]="axis.reverse"
2791
- >
2792
- </kendo-chart-x-axis-item>
2793
- </kendo-chart-x-axis>
2794
- <kendo-chart-y-axis>
2795
- <kendo-chart-y-axis-item
2796
- *ngFor="let axis of stateService.state.valueAxis"
2797
- [title]="{
2798
- text: axis.title?.text,
2799
- font: axis.title?.font,
2800
- color: axis.title?.color
2801
- }"
2802
- [labels]="{
2803
- rotation: axis.labels?.rotation,
2804
- font: axis.labels?.font,
2805
- color: axis.labels?.color
2806
- }"
2807
- >
2808
- </kendo-chart-y-axis-item>
2809
- </kendo-chart-y-axis>
2810
2314
  <kendo-chart-legend
2811
2315
  [visible]="stateService.state.legend?.visible"
2812
2316
  [position]="stateService.state.legend?.position"
@@ -2873,7 +2377,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
2873
2377
  WatermarkOverlayComponent
2874
2378
  ]
2875
2379
  }]
2876
- }], ctorParameters: function () { return [{ type: i2.LocalizationService }, { type: StateService }]; }, propDecorators: { data: [{
2380
+ }], ctorParameters: function () { return [{ type: i2$1.LocalizationService }, { type: StateService }]; }, propDecorators: { data: [{
2877
2381
  type: Input
2878
2382
  }], defaultState: [{
2879
2383
  type: Input
@@ -2892,30 +2396,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
2892
2396
  }], propertyPane: [{
2893
2397
  type: ViewChild,
2894
2398
  args: [ChartWizardPropertyPaneChartTabComponent]
2399
+ }], dataTab: [{
2400
+ type: ViewChild,
2401
+ args: [ChartWizardPropertyPaneDataTabComponent]
2895
2402
  }] } });
2896
2403
 
2897
- // TODO: Extract to kendo-charts
2898
- /**
2899
- * Maps data rows to the Chart Wizard data format.
2900
- *
2901
- * @returns collection that can be used as Chart Wizard.
2902
- */
2903
- function getWizardDataFromDataRows(dataRows) {
2904
- const result = [];
2905
- dataRows.forEach(item => {
2906
- const { dataItem, dataColumns } = item;
2907
- const row = [];
2908
- dataColumns.forEach(column => {
2909
- row.push({
2910
- field: column.title || column.field,
2911
- value: getter(column.field)(dataItem)
2912
- });
2913
- });
2914
- result.push(row);
2915
- });
2916
- return result;
2917
- }
2918
- // End: Extract to kendo-charts
2404
+ const getWizardDataFromDataRows = ChartWizardCommon.getWizardDataFromDataRows;
2919
2405
 
2920
2406
  /**
2921
2407
  * Maps the Grid selectedKeys to a more general DataRows type to be displayed in the Chart Wizard.