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

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, 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: 1725288184,
38
- version: '16.9.0-develop.11',
38
+ publishDate: 1725536262,
39
+ version: '16.9.0-develop.12',
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,1803 @@ 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 });
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
+ template: `
286
+ <kendo-expansionpanel title="Configuration" [expanded]="true">
287
+ <form class="k-form k-form-md">
288
+ <fieldset class="k-form-fieldset">
289
+ <legend class="k-form-legend">
290
+ {{ stateService.state.seriesType === 'scatter' ? 'X Axis' : 'Category Axis' }}
291
+ </legend>
292
+ <kendo-dropdownlist
293
+ [data]="stateService.state.columns"
294
+ [value]="stateService.state.categoryField"
295
+ (valueChange)="updateState(categoryAxisX, $event)"
296
+ fillMode="outline"
297
+ rounded="medium"
298
+ size="medium"
299
+ >
300
+ </kendo-dropdownlist>
301
+ </fieldset>
302
+ <fieldset class="k-form-fieldset" *ngIf="isCategorical(stateService.state.seriesType)">
303
+ <legend class="k-form-legend">Series</legend>
304
+ <kendo-grid
305
+ #grid
306
+ [kendoGridReactiveEditing]="createFormGroup"
307
+ [kendoGridBinding]="stateService.state.series"
308
+ [rowReorderable]="true"
309
+ (rowReorder)="onRowReorder(grid)"
310
+ (remove)="removeData($event)"
311
+ >
312
+ <ng-template kendoGridToolbarTemplate>
313
+ <button
314
+ kendoButton
315
+ type="button"
316
+ [svgIcon]="plusIcon"
317
+ fillMode="flat"
318
+ rounded="medium"
319
+ [disabled]="isDisabled(grid)"
320
+ (click)="addData()"
321
+ >
322
+ ADD
323
+ </button>
324
+ </ng-template>
325
+ <kendo-grid-rowreorder-column [width]="40"></kendo-grid-rowreorder-column>
326
+ <kendo-grid-column field="name" title="">
327
+ </kendo-grid-column>
328
+ <kendo-grid-command-column [width]="40">
329
+ <ng-template kendoGridCellTemplate>
330
+ <button
331
+ [svgIcon]="trashIcon"
332
+ kendoGridRemoveCommand
333
+ fillMode="flat"
334
+ rounded="medium"
335
+ [disabled]="stateService.state.series.length < 2"
336
+ ></button>
337
+ </ng-template>
338
+ </kendo-grid-command-column>
339
+ </kendo-grid>
340
+ </fieldset>
341
+ <fieldset
342
+ class="k-form-fieldset"
343
+ *ngIf="stateService.state.seriesType === 'pie'"
344
+ >
345
+ <legend class="k-form-legend">
346
+ {{ 'Value Axis' }}
347
+ </legend>
348
+ <kendo-dropdownlist
349
+ [data]="stateService.state.columns"
350
+ [value]="stateService.state.valueField"
351
+ (valueChange)="updateState(valueAxisY, $event)"
352
+ fillMode="outline"
353
+ rounded="medium"
354
+ size="medium"
355
+ >
356
+ </kendo-dropdownlist>
357
+ </fieldset>
358
+ </form>
359
+ </kendo-expansionpanel>
773
360
  `,
774
361
  standalone: true,
775
362
  imports: [
776
- NgIf,
777
- LabelComponent,
778
- NumericTextBoxComponent,
779
- ColorPickerComponent,
363
+ ExpansionPanelComponent,
780
364
  DropDownListComponent,
781
- ComboBoxComponent,
782
- TextBoxComponent,
783
- CheckBoxComponent
365
+ ValueTemplateDirective,
366
+ NgIf,
367
+ GridComponent,
368
+ ReactiveEditingDirective,
369
+ DataBindingDirective,
370
+ ToolbarTemplateDirective,
371
+ ButtonComponent,
372
+ RowReorderColumnComponent,
373
+ ColumnComponent,
374
+ CommandColumnComponent,
375
+ CellTemplateDirective,
376
+ GridToolbarFocusableDirective,
377
+ FocusableDirective,
378
+ RemoveCommandDirective
784
379
  ]
785
380
  }]
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: [{
834
- type: ViewChild,
835
- args: [ComboBoxComponent]
836
- }], checkBox: [{
381
+ }], ctorParameters: function () { return [{ type: StateService }, { type: i2.FormBuilder }, { type: i0.ChangeDetectorRef }, { type: i0.Renderer2 }]; }, propDecorators: { grid: [{
837
382
  type: ViewChild,
838
- args: [CheckBoxComponent]
383
+ args: [GridComponent]
839
384
  }] } });
840
385
 
841
386
  /**
842
387
  * @hidden
843
388
  */
844
- class ChartWizardPropertyPaneDataTabComponent {
845
- constructor(stateService, localization, cdr) {
389
+ class ChartWizardSeriesTypeButtonComponent {
390
+ constructor(stateService) {
846
391
  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;
392
+ this.stack = false;
934
393
  }
935
- get seriesData() {
936
- return [defaultAllSeriesItem, ...this.stateService.state.series];
394
+ onSelect() {
395
+ this.stateService.seriesType = this.seriesType;
396
+ if (this.stateService.data.length > 0) {
397
+ this.stateService.state = mergeStates(this.stateService.state, createState(this.stateService.data, this.stateService.seriesType));
398
+ this.stateService.currentSeries = {};
399
+ if (this.stack) {
400
+ this.stateService.state = updateState(this.stateService.state, ActionTypes.stacked, this.stack);
401
+ }
402
+ }
403
+ this.stateService.dataTab.detectChanges();
937
404
  }
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; });
405
+ isSelected() {
406
+ var _a, _b, _c, _d, _e;
407
+ if (((_a = this.stack) === null || _a === void 0 ? void 0 : _a.type) === '100%') {
408
+ 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);
409
+ }
410
+ return (this.stateService.state.seriesType === this.seriesType &&
411
+ ((_e = this.stateService.state.series[0]) === null || _e === void 0 ? void 0 : _e.stack) === this.stack);
941
412
  }
942
- get labelFormatValue() {
943
- 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;
413
+ }
414
+ ChartWizardSeriesTypeButtonComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ChartWizardSeriesTypeButtonComponent, deps: [{ token: StateService }], target: i0.ɵɵFactoryTarget.Component });
415
+ 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: `
416
+ <div class="k-icon-text-wrapper" [class.k-selected]="isSelected()" (click)="onSelect()">
417
+ <div class="k-icon-background-area">
418
+ <kendo-svgicon [icon]="chartTypeIcon" size="xlarge" themeColor="primary"> </kendo-svgicon>
419
+ </div>
420
+ {{ title }}
421
+ </div>
422
+ `, isInline: true, dependencies: [{ kind: "component", type: SVGIconComponent, selector: "kendo-svg-icon, kendo-svgicon", inputs: ["icon"], exportAs: ["kendoSVGIcon"] }] });
423
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ChartWizardSeriesTypeButtonComponent, decorators: [{
424
+ type: Component,
425
+ args: [{
426
+ selector: 'kendo-chartwizard-series-type-button',
427
+ template: `
428
+ <div class="k-icon-text-wrapper" [class.k-selected]="isSelected()" (click)="onSelect()">
429
+ <div class="k-icon-background-area">
430
+ <kendo-svgicon [icon]="chartTypeIcon" size="xlarge" themeColor="primary"> </kendo-svgicon>
431
+ </div>
432
+ {{ title }}
433
+ </div>
434
+ `,
435
+ standalone: true,
436
+ imports: [SVGIconComponent]
437
+ }]
438
+ }], ctorParameters: function () { return [{ type: StateService }]; }, propDecorators: { title: [{
439
+ type: Input
440
+ }], chartTypeIcon: [{
441
+ type: Input
442
+ }], stack: [{
443
+ type: Input
444
+ }], seriesType: [{
445
+ type: Input
446
+ }] } });
447
+
448
+ /**
449
+ * @hidden
450
+ */
451
+ class ChartWizardPropertyPaneChartTabComponent {
452
+ constructor(stateService, cdr, localization) {
453
+ this.stateService = stateService;
454
+ this.cdr = cdr;
455
+ this.localization = localization;
456
+ this.exportIcon = exportIcon;
457
+ this.chartBarClusteredIcon = chartBarClusteredIcon;
458
+ this.chartBarStackedIcon = chartBarStackedIcon;
459
+ this.chartBarStacked100Icon = chartBarStacked100Icon;
460
+ this.chartPieIcon = chartPieIcon;
461
+ this.chartColumnClusteredIcon = chartColumnClusteredIcon;
462
+ this.chartColumnStackedIcon = chartColumnStackedIcon;
463
+ this.chartColumnStacked100Icon = chartColumnStacked100Icon;
464
+ this.chartLineIcon = chartLineIcon;
465
+ this.chartLineStackedIcon = chartLineStackedIcon;
466
+ this.chartLineStacked100Icon = chartLineStacked100Icon;
467
+ this.chartScatterIcon = chartScatterIcon;
945
468
  }
946
469
  ngAfterViewChecked() {
947
470
  this.localization.changes.subscribe(() => {
948
- this.cdr.detectChanges();
471
+ this.detectChanges();
949
472
  });
950
473
  }
951
474
  ngOnDestroy() {
952
475
  this.localization.changes.unsubscribe();
953
476
  }
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);
477
+ detectChanges() {
478
+ this.cdr.detectChanges();
981
479
  }
982
480
  }
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>
481
+ 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 });
482
+ 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: `
483
+ <kendo-expansionpanel title="Bar Chart" [expanded]="true">
484
+ <div class="k-chart-types-wrapper">
485
+ <kendo-chartwizard-series-type-button
486
+ title="Bar"
487
+ [chartTypeIcon]="chartBarClusteredIcon"
488
+ seriesType="bar"
489
+ [stack]="false"
490
+ >
491
+ </kendo-chartwizard-series-type-button>
492
+ <kendo-chartwizard-series-type-button
493
+ title="Stacked Bar"
494
+ [chartTypeIcon]="chartBarStackedIcon"
495
+ seriesType="bar"
496
+ [stack]="true"
497
+ >
498
+ </kendo-chartwizard-series-type-button>
499
+ <kendo-chartwizard-series-type-button
500
+ title="100% Stacked Bar"
501
+ [chartTypeIcon]="chartBarStacked100Icon"
502
+ seriesType="bar"
503
+ [stack]="{ type: '100%' }"
504
+ >
505
+ </kendo-chartwizard-series-type-button>
506
+ </div>
507
+ </kendo-expansionpanel>
508
+ <kendo-expansionpanel title="Pie Chart" [expanded]="true">
509
+ <div class="k-chart-types-wrapper">
510
+ <kendo-chartwizard-series-type-button
511
+ title="Pie"
512
+ [chartTypeIcon]="chartPieIcon"
513
+ seriesType="pie"
514
+ [stack]="undefined"
515
+ >
516
+ </kendo-chartwizard-series-type-button>
517
+ </div>
518
+ </kendo-expansionpanel>
519
+ <kendo-expansionpanel title="Column Chart" [expanded]="true">
520
+ <div class="k-chart-types-wrapper">
521
+ <kendo-chartwizard-series-type-button
522
+ title="Column"
523
+ [chartTypeIcon]="chartColumnClusteredIcon"
524
+ seriesType="column"
525
+ [stack]="false"
526
+ >
527
+ </kendo-chartwizard-series-type-button>
528
+ <kendo-chartwizard-series-type-button
529
+ title="Stacked Column"
530
+ [chartTypeIcon]="chartColumnStackedIcon"
531
+ seriesType="column"
532
+ [stack]="true"
533
+ >
534
+ </kendo-chartwizard-series-type-button>
535
+ <kendo-chartwizard-series-type-button
536
+ title="100% Stacked Column"
537
+ [chartTypeIcon]="chartColumnStacked100Icon"
538
+ seriesType="column"
539
+ [stack]="{ type: '100%' }"
540
+ >
541
+ </kendo-chartwizard-series-type-button>
542
+ </div>
543
+ </kendo-expansionpanel>
544
+ <kendo-expansionpanel title="Line Chart" [expanded]="true">
545
+ <div class="k-chart-types-wrapper">
546
+ <kendo-chartwizard-series-type-button
547
+ title="Line"
548
+ [chartTypeIcon]="chartLineIcon"
549
+ seriesType="line"
550
+ [stack]="false"
551
+ >
552
+ </kendo-chartwizard-series-type-button>
553
+ <kendo-chartwizard-series-type-button
554
+ title="Stacked Line"
555
+ [chartTypeIcon]="chartLineStackedIcon"
556
+ seriesType="line"
557
+ [stack]="true"
558
+ >
559
+ </kendo-chartwizard-series-type-button>
560
+ <kendo-chartwizard-series-type-button
561
+ title="100% Line Column"
562
+ [chartTypeIcon]="chartLineStacked100Icon"
563
+ seriesType="line"
564
+ [stack]="{ type: '100%' }"
565
+ >
566
+ </kendo-chartwizard-series-type-button>
567
+ </div>
568
+ </kendo-expansionpanel>
569
+ <kendo-expansionpanel title="Scatter Chart" [expanded]="true">
570
+ <div class="k-chart-types-wrapper">
571
+ <kendo-chartwizard-series-type-button
572
+ title="Scatter"
573
+ [chartTypeIcon]="chartScatterIcon"
574
+ seriesType="scatter"
575
+ [stack]="false"
576
+ >
577
+ </kendo-chartwizard-series-type-button>
578
+ </div>
579
+ </kendo-expansionpanel>
580
+ `, 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 });
581
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ChartWizardPropertyPaneChartTabComponent, decorators: [{
582
+ type: Component,
583
+ args: [{
584
+ selector: 'kendo-chartwizard-property-pane-chart-tab',
585
+ changeDetection: ChangeDetectionStrategy.OnPush,
586
+ template: `
587
+ <kendo-expansionpanel title="Bar Chart" [expanded]="true">
588
+ <div class="k-chart-types-wrapper">
589
+ <kendo-chartwizard-series-type-button
590
+ title="Bar"
591
+ [chartTypeIcon]="chartBarClusteredIcon"
592
+ seriesType="bar"
593
+ [stack]="false"
594
+ >
595
+ </kendo-chartwizard-series-type-button>
596
+ <kendo-chartwizard-series-type-button
597
+ title="Stacked Bar"
598
+ [chartTypeIcon]="chartBarStackedIcon"
599
+ seriesType="bar"
600
+ [stack]="true"
601
+ >
602
+ </kendo-chartwizard-series-type-button>
603
+ <kendo-chartwizard-series-type-button
604
+ title="100% Stacked Bar"
605
+ [chartTypeIcon]="chartBarStacked100Icon"
606
+ seriesType="bar"
607
+ [stack]="{ type: '100%' }"
608
+ >
609
+ </kendo-chartwizard-series-type-button>
610
+ </div>
611
+ </kendo-expansionpanel>
612
+ <kendo-expansionpanel title="Pie Chart" [expanded]="true">
613
+ <div class="k-chart-types-wrapper">
614
+ <kendo-chartwizard-series-type-button
615
+ title="Pie"
616
+ [chartTypeIcon]="chartPieIcon"
617
+ seriesType="pie"
618
+ [stack]="undefined"
619
+ >
620
+ </kendo-chartwizard-series-type-button>
621
+ </div>
622
+ </kendo-expansionpanel>
623
+ <kendo-expansionpanel title="Column Chart" [expanded]="true">
624
+ <div class="k-chart-types-wrapper">
625
+ <kendo-chartwizard-series-type-button
626
+ title="Column"
627
+ [chartTypeIcon]="chartColumnClusteredIcon"
628
+ seriesType="column"
629
+ [stack]="false"
630
+ >
631
+ </kendo-chartwizard-series-type-button>
632
+ <kendo-chartwizard-series-type-button
633
+ title="Stacked Column"
634
+ [chartTypeIcon]="chartColumnStackedIcon"
635
+ seriesType="column"
636
+ [stack]="true"
637
+ >
638
+ </kendo-chartwizard-series-type-button>
639
+ <kendo-chartwizard-series-type-button
640
+ title="100% Stacked Column"
641
+ [chartTypeIcon]="chartColumnStacked100Icon"
642
+ seriesType="column"
643
+ [stack]="{ type: '100%' }"
644
+ >
645
+ </kendo-chartwizard-series-type-button>
646
+ </div>
647
+ </kendo-expansionpanel>
648
+ <kendo-expansionpanel title="Line Chart" [expanded]="true">
649
+ <div class="k-chart-types-wrapper">
650
+ <kendo-chartwizard-series-type-button
651
+ title="Line"
652
+ [chartTypeIcon]="chartLineIcon"
653
+ seriesType="line"
654
+ [stack]="false"
655
+ >
656
+ </kendo-chartwizard-series-type-button>
657
+ <kendo-chartwizard-series-type-button
658
+ title="Stacked Line"
659
+ [chartTypeIcon]="chartLineStackedIcon"
660
+ seriesType="line"
661
+ [stack]="true"
662
+ >
663
+ </kendo-chartwizard-series-type-button>
664
+ <kendo-chartwizard-series-type-button
665
+ title="100% Line Column"
666
+ [chartTypeIcon]="chartLineStacked100Icon"
667
+ seriesType="line"
668
+ [stack]="{ type: '100%' }"
669
+ >
670
+ </kendo-chartwizard-series-type-button>
671
+ </div>
672
+ </kendo-expansionpanel>
673
+ <kendo-expansionpanel title="Scatter Chart" [expanded]="true">
674
+ <div class="k-chart-types-wrapper">
675
+ <kendo-chartwizard-series-type-button
676
+ title="Scatter"
677
+ [chartTypeIcon]="chartScatterIcon"
678
+ seriesType="scatter"
679
+ [stack]="false"
680
+ >
681
+ </kendo-chartwizard-series-type-button>
682
+ </div>
683
+ </kendo-expansionpanel>
1800
684
  `,
1801
685
  standalone: true,
1802
- imports: [
1803
- ExpansionPanelComponent,
1804
- ChartWizardPropertyPaneFormFieldComponent,
1805
- LabelComponent,
1806
- SwitchComponent,
1807
- DropDownListComponent,
1808
- NgIf
1809
- ]
686
+ imports: [ExpansionPanelComponent, ChartWizardSeriesTypeButtonComponent]
1810
687
  }]
1811
- }], ctorParameters: function () { return [{ type: StateService }, { type: i2.LocalizationService }, { type: i0.ChangeDetectorRef }]; } });
688
+ }], ctorParameters: function () { return [{ type: StateService }, { type: i0.ChangeDetectorRef }, { type: i2$1.LocalizationService }]; } });
1812
689
 
1813
690
  /**
1814
691
  * @hidden
1815
692
  */
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
- });
693
+ class PreventableEvent {
694
+ constructor() {
695
+ this.prevented = false;
1829
696
  }
1830
- updateState(action, value) {
1831
- this.stateService.state = updateState(this.stateService.state, action, value);
697
+ /**
698
+ * Prevents the default action for a specified event.
699
+ * In this way, the source component suppresses
700
+ * the built-in behavior that follows the event.
701
+ */
702
+ preventDefault() {
703
+ this.prevented = true;
1832
704
  }
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;
705
+ /**
706
+ * Returns `true` if the event was prevented
707
+ * by any of its subscribers.
708
+ *
709
+ * @returns `true` if the default action was prevented.
710
+ * Otherwise, returns `false`.
711
+ */
712
+ isDefaultPrevented() {
713
+ return this.prevented;
1839
714
  }
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);
715
+ }
716
+
717
+ /**
718
+ * Arguments for the `export` event on the Chart Wizard.
719
+ */
720
+ class ExportEvent extends PreventableEvent {
721
+ /**
722
+ * @hidden
723
+ */
724
+ constructor(chart, exportOptions) {
725
+ super();
726
+ this.chart = chart;
727
+ this.exportOptions = exportOptions;
1844
728
  }
1845
- removeData(event) {
1846
- this.stateService.deletedSeries.push(event.dataItem);
1847
- this.updateState(this.seriesChange, event.sender.data.data);
729
+ }
730
+
731
+ /**
732
+ * @hidden
733
+ */
734
+ class ChartWizardPropertyPaneFormFieldComponent {
735
+ constructor(localization, cdr) {
736
+ this.localization = localization;
737
+ this.cdr = cdr;
738
+ this.colSpan = 1;
739
+ this.hasLabel = true;
740
+ this.isLabelInsideFormFieldWrap = false;
741
+ this.disabled = false;
742
+ this.valueChange = new EventEmitter();
743
+ this.formField = true;
1848
744
  }
1849
- onRowReorder(grid) {
1850
- this.updateState(this.seriesChange, grid.data.data);
745
+ get isColSpan2() {
746
+ return this.colSpan === 2;
1851
747
  }
1852
- isDisabled(grid) {
1853
- return grid.data.data.length === this.stateService.state.initialSeries.length;
748
+ ngAfterViewChecked() {
749
+ this.localization.changes.subscribe(() => {
750
+ this.cdr.detectChanges();
751
+ });
752
+ }
753
+ ngOnDestroy() {
754
+ this.localization.changes.unsubscribe();
755
+ }
756
+ ngAfterViewInit() {
757
+ if (this.hasLabel) {
758
+ this.label.for =
759
+ this.numericTextBox ||
760
+ this.colorPicker ||
761
+ this.dropDownList ||
762
+ this.textBox ||
763
+ this.comboBox ||
764
+ this.checkBox;
765
+ }
1854
766
  }
1855
767
  }
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: [{
768
+ 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 });
769
+ 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: `
770
+ <kendo-label *ngIf="hasLabel && !isLabelInsideFormFieldWrap && inputType !== 'checkbox'" class="k-form-label" [text]="text"></kendo-label>
771
+ <div class="k-form-field-wrap">
772
+ <kendo-label
773
+ *ngIf="hasLabel && isLabelInsideFormFieldWrap && inputType !== 'checkbox'"
774
+ class="k-form-label"
775
+ [text]="text"
776
+ ></kendo-label>
777
+ <kendo-numerictextbox
778
+ *ngIf="inputType === 'numeric'"
779
+ fillMode="outline"
780
+ rounded="medium"
781
+ [value]="value"
782
+ (valueChange)="valueChange.emit($event)"
783
+ placeholder="Auto"
784
+ ></kendo-numerictextbox>
785
+ <kendo-colorpicker
786
+ *ngIf="inputType === 'colorPicker'"
787
+ fillMode="outline"
788
+ rounded="medium"
789
+ [value]="value"
790
+ [disabled]="disabled"
791
+ (valueChange)="valueChange.emit($event)"
792
+ ></kendo-colorpicker>
793
+ <kendo-dropdownlist
794
+ *ngIf="inputType === 'dropDownList'"
795
+ [data]="data"
796
+ textField="text"
797
+ valueField="value"
798
+ [valuePrimitive]="true"
799
+ fillMode="outline"
800
+ rounded="medium"
801
+ size="medium"
802
+ [value]="value"
803
+ (valueChange)="valueChange.emit($event)"
804
+ ></kendo-dropdownlist>
805
+ <kendo-combobox
806
+ *ngIf="inputType === 'comboBox'"
807
+ [data]="data"
808
+ [value]="value"
809
+ textField="text"
810
+ valueField="value"
811
+ [valuePrimitive]="true"
812
+ fillMode="outline"
813
+ rounded="medium"
814
+ size="medium"
815
+ [placeholder]="placeholder"
816
+ (valueChange)="valueChange.emit($event)"
817
+ ></kendo-combobox>
818
+ <kendo-textbox
819
+ *ngIf="inputType === 'text'"
820
+ fillMode="outline"
821
+ rounded="medium"
822
+ [placeholder]="placeholder"
823
+ [value]="value"
824
+ (valueChange)="valueChange.emit($event)"
825
+ ></kendo-textbox>
826
+ <kendo-checkbox
827
+ *ngIf="inputType === 'checkbox'"
828
+ class="k-checkbox-md k-rounded-md"
829
+ [checkedState]="value"
830
+ (checkedStateChange)="valueChange.emit($event)"
831
+ ></kendo-checkbox>
832
+ <kendo-label
833
+ *ngIf="hasLabel && isLabelInsideFormFieldWrap && inputType === 'checkbox'"
834
+ class="k-checkbox-label"
835
+ [text]="text"
836
+ ></kendo-label>
837
+ </div>
838
+ `, 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 });
839
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ChartWizardPropertyPaneFormFieldComponent, decorators: [{
1933
840
  type: Component,
1934
841
  args: [{
1935
- selector: 'kendo-chartwizard-property-pane-data-tab',
842
+ selector: 'kendo-chartwizard-property-pane-form-field',
1936
843
  changeDetection: ChangeDetectionStrategy.OnPush,
1937
844
  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>
845
+ <kendo-label *ngIf="hasLabel && !isLabelInsideFormFieldWrap && inputType !== 'checkbox'" class="k-form-label" [text]="text"></kendo-label>
846
+ <div class="k-form-field-wrap">
847
+ <kendo-label
848
+ *ngIf="hasLabel && isLabelInsideFormFieldWrap && inputType !== 'checkbox'"
849
+ class="k-form-label"
850
+ [text]="text"
851
+ ></kendo-label>
852
+ <kendo-numerictextbox
853
+ *ngIf="inputType === 'numeric'"
854
+ fillMode="outline"
855
+ rounded="medium"
856
+ [value]="value"
857
+ (valueChange)="valueChange.emit($event)"
858
+ placeholder="Auto"
859
+ ></kendo-numerictextbox>
860
+ <kendo-colorpicker
861
+ *ngIf="inputType === 'colorPicker'"
862
+ fillMode="outline"
863
+ rounded="medium"
864
+ [value]="value"
865
+ [disabled]="disabled"
866
+ (valueChange)="valueChange.emit($event)"
867
+ ></kendo-colorpicker>
868
+ <kendo-dropdownlist
869
+ *ngIf="inputType === 'dropDownList'"
870
+ [data]="data"
871
+ textField="text"
872
+ valueField="value"
873
+ [valuePrimitive]="true"
874
+ fillMode="outline"
875
+ rounded="medium"
876
+ size="medium"
877
+ [value]="value"
878
+ (valueChange)="valueChange.emit($event)"
879
+ ></kendo-dropdownlist>
880
+ <kendo-combobox
881
+ *ngIf="inputType === 'comboBox'"
882
+ [data]="data"
883
+ [value]="value"
884
+ textField="text"
885
+ valueField="value"
886
+ [valuePrimitive]="true"
887
+ fillMode="outline"
888
+ rounded="medium"
889
+ size="medium"
890
+ [placeholder]="placeholder"
891
+ (valueChange)="valueChange.emit($event)"
892
+ ></kendo-combobox>
893
+ <kendo-textbox
894
+ *ngIf="inputType === 'text'"
895
+ fillMode="outline"
896
+ rounded="medium"
897
+ [placeholder]="placeholder"
898
+ [value]="value"
899
+ (valueChange)="valueChange.emit($event)"
900
+ ></kendo-textbox>
901
+ <kendo-checkbox
902
+ *ngIf="inputType === 'checkbox'"
903
+ class="k-checkbox-md k-rounded-md"
904
+ [checkedState]="value"
905
+ (checkedStateChange)="valueChange.emit($event)"
906
+ ></kendo-checkbox>
907
+ <kendo-label
908
+ *ngIf="hasLabel && isLabelInsideFormFieldWrap && inputType === 'checkbox'"
909
+ class="k-checkbox-label"
910
+ [text]="text"
911
+ ></kendo-label>
912
+ </div>
2011
913
  `,
2012
914
  standalone: true,
2013
915
  imports: [
2014
- ExpansionPanelComponent,
2015
- DropDownListComponent,
2016
- ValueTemplateDirective,
2017
916
  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
917
+ LabelComponent,
918
+ NumericTextBoxComponent,
919
+ ColorPickerComponent,
920
+ DropDownListComponent,
921
+ ComboBoxComponent,
922
+ TextBoxComponent,
923
+ CheckBoxComponent
2030
924
  ]
2031
925
  }]
2032
- }], ctorParameters: function () { return [{ type: StateService }, { type: i2$1.FormBuilder }]; } });
926
+ }], ctorParameters: function () { return [{ type: i2$1.LocalizationService }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { currentState: [{
927
+ type: Input
928
+ }], action: [{
929
+ type: Input
930
+ }], class: [{
931
+ type: Input
932
+ }], inputType: [{
933
+ type: Input
934
+ }], text: [{
935
+ type: Input
936
+ }], data: [{
937
+ type: Input
938
+ }], placeholder: [{
939
+ type: Input
940
+ }], colSpan: [{
941
+ type: Input
942
+ }], hasLabel: [{
943
+ type: Input
944
+ }], isLabelInsideFormFieldWrap: [{
945
+ type: Input
946
+ }], value: [{
947
+ type: Input
948
+ }], disabled: [{
949
+ type: Input
950
+ }], valueChange: [{
951
+ type: Output
952
+ }], formField: [{
953
+ type: HostBinding,
954
+ args: ['class.k-form-field']
955
+ }], isColSpan2: [{
956
+ type: HostBinding,
957
+ args: ['class.k-col-span-2']
958
+ }], label: [{
959
+ type: ViewChild,
960
+ args: [LabelComponent]
961
+ }], numericTextBox: [{
962
+ type: ViewChild,
963
+ args: [NumericTextBoxComponent]
964
+ }], colorPicker: [{
965
+ type: ViewChild,
966
+ args: [ColorPickerComponent]
967
+ }], dropDownList: [{
968
+ type: ViewChild,
969
+ args: [DropDownListComponent]
970
+ }], textBox: [{
971
+ type: ViewChild,
972
+ args: [TextBoxComponent]
973
+ }], comboBox: [{
974
+ type: ViewChild,
975
+ args: [ComboBoxComponent]
976
+ }], checkBox: [{
977
+ type: ViewChild,
978
+ args: [CheckBoxComponent]
979
+ }] } });
2033
980
 
2034
981
  /**
2035
982
  * @hidden
2036
983
  */
2037
- class ChartWizardSeriesTypeButtonComponent {
2038
- constructor(stateService) {
984
+ class ChartWizardPropertyPaneFormatTabComponent {
985
+ constructor(stateService, localization, cdr) {
2039
986
  this.stateService = stateService;
2040
- this.stack = false;
987
+ this.localization = localization;
988
+ this.cdr = cdr;
989
+ this.chartTitles = [
990
+ { text: 'Chart Title', value: 'Chart Title' },
991
+ { text: 'Chart Subtitle', value: 'Chart Subtitle' },
992
+ ];
993
+ this.areaMarginLeft = ActionTypes.areaMarginLeft;
994
+ this.areaMarginRight = ActionTypes.areaMarginRight;
995
+ this.areaMarginTop = ActionTypes.areaMarginTop;
996
+ this.areaMarginBottom = ActionTypes.areaMarginBottom;
997
+ this.areaBackground = ActionTypes.areaBackground;
998
+ this.legendVisible = ActionTypes.legendVisible;
999
+ this.legendFontName = ActionTypes.legendFontName;
1000
+ this.legendFontSize = ActionTypes.legendFontSize;
1001
+ this.legendColor = ActionTypes.legendColor;
1002
+ this.legendPosition = ActionTypes.legendPosition;
1003
+ this.categoryAxisTitleText = ActionTypes.categoryAxisTitleText;
1004
+ this.categoryAxisTitleFontName = ActionTypes.categoryAxisTitleFontName;
1005
+ this.categoryAxisTitleFontSize = ActionTypes.categoryAxisTitleFontSize;
1006
+ this.categoryAxisTitleColor = ActionTypes.categoryAxisTitleColor;
1007
+ this.categoryAxisLabelsFontName = ActionTypes.categoryAxisLabelsFontName;
1008
+ this.categoryAxisLabelsFontSize = ActionTypes.categoryAxisLabelsFontSize;
1009
+ this.categoryAxisLabelsColor = ActionTypes.categoryAxisLabelsColor;
1010
+ this.categoryAxisLabelsRotation = ActionTypes.categoryAxisLabelsRotation;
1011
+ this.categoryAxisReverseOrder = ActionTypes.categoryAxisReverseOrder;
1012
+ this.valueAxisTitleText = ActionTypes.valueAxisTitleText;
1013
+ this.valueAxisTitleFontName = ActionTypes.valueAxisTitleFontName;
1014
+ this.valueAxisTitleFontSize = ActionTypes.valueAxisTitleFontSize;
1015
+ this.valueAxisTitleColor = ActionTypes.valueAxisTitleColor;
1016
+ this.valueAxisLabelsFontName = ActionTypes.valueAxisLabelsFontName;
1017
+ this.valueAxisLabelsFormat = ActionTypes.valueAxisLabelsFormat;
1018
+ this.valueAxisLabelsFontSize = ActionTypes.valueAxisLabelsFontSize;
1019
+ this.valueAxisLabelsColor = ActionTypes.valueAxisLabelsColor;
1020
+ this.valueAxisLabelsRotation = ActionTypes.valueAxisLabelsRotation;
1021
+ this.parseFont = parseFont;
1022
+ this.labelFormats = labelFormats;
1023
+ this.defaultAllSeriesItem = defaultAllSeriesItem;
1024
+ this.fontNames = fontNames;
1025
+ this.fontSizes = fontSizes;
1026
+ this.legendPositions = positions;
1027
+ this.labelsRotation = rotations;
2041
1028
  }
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);
1029
+ get chartTitleTypeText() {
1030
+ var _a, _b;
1031
+ return this.stateService.currentTitle === 'Chart Title'
1032
+ ? (_a = this.stateService.state.title) === null || _a === void 0 ? void 0 : _a.text
1033
+ : (_b = this.stateService.state.subtitle) === null || _b === void 0 ? void 0 : _b.text;
1034
+ }
1035
+ get chartTitleTypeFont() {
1036
+ var _a, _b;
1037
+ return this.stateService.currentTitle === 'Chart Title'
1038
+ ? parseFont((_a = this.stateService.state.title) === null || _a === void 0 ? void 0 : _a.font).name
1039
+ : parseFont((_b = this.stateService.state.subtitle) === null || _b === void 0 ? void 0 : _b.font).name;
1040
+ }
1041
+ get chartTitleTypeFontSize() {
1042
+ var _a, _b;
1043
+ return this.stateService.currentTitle === 'Chart Title'
1044
+ ? parseFont((_a = this.stateService.state.title) === null || _a === void 0 ? void 0 : _a.font).size
1045
+ : parseFont((_b = this.stateService.state.subtitle) === null || _b === void 0 ? void 0 : _b.font).size;
1046
+ }
1047
+ get chartTitleTypeColor() {
1048
+ var _a, _b;
1049
+ return this.stateService.currentTitle === 'Chart Title'
1050
+ ? (_a = this.stateService.state.title) === null || _a === void 0 ? void 0 : _a.color
1051
+ : (_b = this.stateService.state.subtitle) === null || _b === void 0 ? void 0 : _b.color;
1052
+ }
1053
+ get chartTitleTypeAction() {
1054
+ return this.stateService.currentTitle === 'Chart Title' ? ActionTypes.titleText : ActionTypes.subtitleText;
1055
+ }
1056
+ get chartTitleTypeFontAction() {
1057
+ return this.stateService.currentTitle === 'Chart Title' ? ActionTypes.titleFontName : ActionTypes.subtitleFontName;
1058
+ }
1059
+ get chartTitleTypeColorAction() {
1060
+ return this.stateService.currentTitle === 'Chart Title' ? ActionTypes.titleColor : ActionTypes.subtitleColor;
1061
+ }
1062
+ get chartTitleTypeFontSizeAction() {
1063
+ return this.stateService.currentTitle === 'Chart Title' ? ActionTypes.titleFontSize : ActionTypes.subtitleFontSize;
1064
+ }
1065
+ get seriesData() {
1066
+ return [defaultAllSeriesItem, ...this.stateService.state.series];
1067
+ }
1068
+ get showLabels() {
1069
+ var _a, _b;
1070
+ 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; });
1071
+ }
1072
+ get labelFormatValue() {
1073
+ var _a;
1074
+ 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;
1075
+ }
1076
+ ngAfterViewChecked() {
1077
+ this.localization.changes.subscribe(() => {
1078
+ this.cdr.detectChanges();
1079
+ });
1080
+ }
1081
+ ngOnDestroy() {
1082
+ this.localization.changes.unsubscribe();
1083
+ }
1084
+ updateState(action, value) {
1085
+ if (action === ActionTypes.seriesLabel && this.stateService.currentSeries.name === defaultAllSeriesItem.name) {
1086
+ this.stateService.state = updateState(this.stateService.state, action, { name: '', all: true, visible: value.labels.visible });
1087
+ return;
2048
1088
  }
1089
+ this.stateService.state = updateState(this.stateService.state, action, value);
2049
1090
  }
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);
1091
+ changeCurrentTitle(value) {
1092
+ this.stateService.currentTitle = value;
1093
+ }
1094
+ toggleSeriesLabels(value) {
1095
+ this.updateCurrentSeries(this.stateService.currentSeries);
1096
+ this.stateService.currentSeries.labels = { visible: value };
1097
+ this.updateState(ActionTypes.seriesLabel, this.stateService.currentSeries);
1098
+ }
1099
+ updateCurrentSeries(value) {
1100
+ if (value.name === defaultAllSeriesItem.name) {
1101
+ this.stateService.currentSeries = defaultAllSeriesItem;
2054
1102
  }
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);
1103
+ else {
1104
+ this.stateService.currentSeries = this.stateService.state.series.find((series) => series.name === value.name);
1105
+ }
1106
+ }
1107
+ updateSeriesColor(value) {
1108
+ this.updateCurrentSeries(this.stateService.currentSeries);
1109
+ this.stateService.currentSeries.color = value;
1110
+ this.updateState(ActionTypes.seriesColor, this.stateService.currentSeries);
2057
1111
  }
2058
1112
  }
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
- }] } });
1113
+ 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 });
1114
+ 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: `
1115
+ <section>
1116
+ <kendo-expansionpanel
1117
+ [style.max-width.px]="576"
1118
+ title="Chart Area"
1119
+ [expanded]="true"
1120
+ [attr.dir]="stateService.direction"
1121
+ >
1122
+ <form class="k-form k-form-md">
1123
+ <fieldset class="k-form-fieldset">
1124
+ <legend class="k-form-legend">Margins</legend>
1125
+ <div class="k-form-layout k-d-grid k-grid-cols-2 k-gap-x-4">
1126
+ <kendo-chartwizard-property-pane-form-field
1127
+ text="Left"
1128
+ inputType="numeric"
1129
+ [value]="$any(stateService.state.area.margin).left"
1130
+ (valueChange)="updateState(areaMarginLeft, $event)"
1131
+ >
1132
+ </kendo-chartwizard-property-pane-form-field>
1133
+ <kendo-chartwizard-property-pane-form-field
1134
+ text="Right"
1135
+ inputType="numeric"
1136
+ [value]="$any(stateService.state.area.margin).right"
1137
+ (valueChange)="updateState(areaMarginRight, $event)"
1138
+ >
1139
+ </kendo-chartwizard-property-pane-form-field>
1140
+ <kendo-chartwizard-property-pane-form-field
1141
+ text="Top"
1142
+ inputType="numeric"
1143
+ [value]="$any(stateService.state.area.margin).top"
1144
+ (valueChange)="updateState(areaMarginTop, $event)"
1145
+ >
1146
+ </kendo-chartwizard-property-pane-form-field>
1147
+ <kendo-chartwizard-property-pane-form-field
1148
+ text="Bottom"
1149
+ inputType="numeric"
1150
+ [value]="$any(stateService.state.area.margin).bottom"
1151
+ (valueChange)="updateState(areaMarginBottom, $event)"
1152
+ >
1153
+ </kendo-chartwizard-property-pane-form-field>
1154
+ </div>
1155
+ </fieldset>
1156
+ <fieldset class="k-form-fieldset">
1157
+ <legend class="k-form-legend">Background</legend>
1158
+ <kendo-chartwizard-property-pane-form-field
1159
+ text="Color"
1160
+ inputType="colorPicker"
1161
+ [value]="stateService.state.area?.background"
1162
+ (valueChange)="updateState(areaBackground, $event)"
1163
+ >
1164
+ </kendo-chartwizard-property-pane-form-field>
1165
+ </fieldset>
1166
+ </form>
1167
+ </kendo-expansionpanel>
1168
+ </section>
1169
+ <section>
1170
+ <kendo-expansionpanel
1171
+ [style.max-width.px]="576"
1172
+ title="Title"
1173
+ [expanded]="true"
1174
+ >
1175
+ <form class="k-form k-form-md">
1176
+ <div class="k-form-layout k-d-grid k-grid-cols-2 k-gap-x-4">
1177
+ <kendo-chartwizard-property-pane-form-field
1178
+ text="Apply to"
1179
+ inputType="dropDownList"
1180
+ [data]="chartTitles"
1181
+ [colSpan]="2"
1182
+ [value]="stateService.currentTitle"
1183
+ (valueChange)="changeCurrentTitle($event)"
1184
+ >
1185
+ </kendo-chartwizard-property-pane-form-field>
1186
+ <kendo-chartwizard-property-pane-form-field
1187
+ text="Title"
1188
+ inputType="text"
1189
+ [colSpan]="2"
1190
+ [value]="chartTitleTypeText"
1191
+ (valueChange)="updateState(chartTitleTypeAction, $event)"
1192
+ >
1193
+ </kendo-chartwizard-property-pane-form-field>
1194
+ <kendo-chartwizard-property-pane-form-field
1195
+ text="Font"
1196
+ inputType="comboBox"
1197
+ [data]="fontNames"
1198
+ [colSpan]="2"
1199
+ [value]="chartTitleTypeFont"
1200
+ placeholder="(Inherited font)"
1201
+ (valueChange)="updateState(chartTitleTypeFontAction, $event)"
1202
+ >
1203
+ </kendo-chartwizard-property-pane-form-field>
1204
+ <kendo-chartwizard-property-pane-form-field
1205
+ text="Size"
1206
+ inputType="comboBox"
1207
+ placeholder="px"
1208
+ [data]="fontSizes"
1209
+ [value]="chartTitleTypeFontSize"
1210
+ (valueChange)="updateState(chartTitleTypeFontSizeAction, $event)"
1211
+ >
1212
+ </kendo-chartwizard-property-pane-form-field>
1213
+ <kendo-chartwizard-property-pane-form-field
1214
+ text="Color"
1215
+ inputType="colorPicker"
1216
+ [value]="chartTitleTypeColor"
1217
+ (valueChange)="updateState(chartTitleTypeColorAction, $event)"
1218
+ >
1219
+ </kendo-chartwizard-property-pane-form-field>
1220
+ </div>
1221
+ </form>
1222
+ </kendo-expansionpanel>
1223
+ </section>
1224
+ <section>
1225
+ <kendo-expansionpanel
1226
+ [style.max-width.px]="576"
1227
+ title="Legend"
1228
+ [expanded]="true"
1229
+ >
1230
+ <form class="k-form k-form-md">
1231
+ <div class="k-form-layout k-d-grid k-grid-cols-2 k-gap-x-4">
1232
+ <kendo-label [for]="toggleLegend" text="Show Legend"></kendo-label>
1233
+ <kendo-switch
1234
+ #toggleLegend
1235
+ onLabel="On"
1236
+ offLabel="Off"
1237
+ thumbRounded="full"
1238
+ size="medium"
1239
+ [checked]="stateService.state.legend?.visible"
1240
+ (valueChange)="updateState(legendVisible, $event)"
1241
+ ></kendo-switch>
1242
+ <kendo-chartwizard-property-pane-form-field
1243
+ text="Font"
1244
+ inputType="comboBox"
1245
+ [data]="fontNames"
1246
+ [colSpan]="2"
1247
+ placeholder="(Inherited font)"
1248
+ [value]="parseFont(stateService.state.legend?.labels?.font).name"
1249
+ (valueChange)="updateState(legendFontName, $event)"
1250
+ >
1251
+ </kendo-chartwizard-property-pane-form-field>
1252
+ <kendo-chartwizard-property-pane-form-field
1253
+ text="Size"
1254
+ inputType="comboBox"
1255
+ [data]="fontSizes"
1256
+ placeholder="px"
1257
+ [value]="parseFont(stateService.state.legend?.labels?.font).size"
1258
+ (valueChange)="updateState(legendFontSize, $event)"
1259
+ >
1260
+ </kendo-chartwizard-property-pane-form-field>
1261
+ <kendo-chartwizard-property-pane-form-field
1262
+ text="Color"
1263
+ inputType="colorPicker"
1264
+ [value]="stateService.state.legend?.labels?.color"
1265
+ (valueChange)="updateState(legendColor, $event)"
1266
+ >
1267
+ </kendo-chartwizard-property-pane-form-field>
1268
+ <kendo-chartwizard-property-pane-form-field
1269
+ text="Position"
1270
+ inputType="dropDownList"
1271
+ [colSpan]="2"
1272
+ [data]="legendPositions"
1273
+ [value]="stateService.state.legend?.position"
1274
+ (valueChange)="updateState(legendPosition, $event)"
1275
+ >
1276
+ </kendo-chartwizard-property-pane-form-field>
1277
+ </div>
1278
+ </form>
1279
+ </kendo-expansionpanel>
1280
+ </section>
1281
+ <section>
1282
+ <kendo-expansionpanel
1283
+ [style.max-width.px]="576"
1284
+ title="Series"
1285
+ [expanded]="true"
1286
+ >
1287
+ <form class="k-form k-form-md">
1288
+ <div class="k-form-field">
1289
+ <kendo-label [for]="seriesDropDown" class="k-form-label" text="Apply to"></kendo-label>
1290
+ <div class="k-form-field-wrap">
1291
+ <kendo-dropdownlist
1292
+ #seriesDropDown
1293
+ [data]="seriesData"
1294
+ textField="name"
1295
+ valueField="name"
1296
+ fillMode="outline"
1297
+ rounded="medium"
1298
+ size="medium"
1299
+ [value]="stateService.currentSeries"
1300
+ (valueChange)="updateCurrentSeries($event)"
1301
+ ></kendo-dropdownlist>
1302
+ </div>
1303
+ </div>
2092
1304
 
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: [{
1305
+ <kendo-chartwizard-property-pane-form-field
1306
+ text="Color"
1307
+ [value]="stateService.currentSeries?.color"
1308
+ inputType="colorPicker"
1309
+ [disabled]="stateService.currentSeries.name === defaultAllSeriesItem.name"
1310
+ (valueChange)="updateSeriesColor($event)"
1311
+ >
1312
+ </kendo-chartwizard-property-pane-form-field>
1313
+ <kendo-chartwizard-property-pane-form-field
1314
+ text="Show Labels"
1315
+ [value]="showLabels"
1316
+ [isLabelInsideFormFieldWrap]="true"
1317
+ [colSpan]="2"
1318
+ inputType="checkbox"
1319
+ (valueChange)="toggleSeriesLabels($event)"
1320
+ >
1321
+ </kendo-chartwizard-property-pane-form-field>
1322
+ </form>
1323
+ </kendo-expansionpanel>
1324
+ </section>
1325
+ <section *ngIf="stateService.state.seriesType !== 'pie'" class="k-row-start-1 k-row-end-3 k-col-start-3">
1326
+ <kendo-expansionpanel
1327
+ [style.max-width.px]="576"
1328
+ [title]="stateService.state.seriesType === 'scatter' ? 'X Axis' : 'Category axis'"
1329
+ [expanded]="true"
1330
+ >
1331
+ <form class="k-form k-form-md">
1332
+ <fieldset class="k-form-fieldset">
1333
+ <legend class="k-form-legend">Title</legend>
1334
+ <div class="k-form-layout k-d-grid k-grid-cols-2 k-gap-x-4">
1335
+ <kendo-chartwizard-property-pane-form-field
1336
+ inputType="text"
1337
+ [hasLabel]="false"
1338
+ [colSpan]="2"
1339
+ placeholder="Axis Title"
1340
+ [value]="stateService.state.categoryAxis[0]?.title?.text || null"
1341
+ (valueChange)="updateState(categoryAxisTitleText, $event)"
1342
+ >
1343
+ </kendo-chartwizard-property-pane-form-field>
1344
+ <kendo-chartwizard-property-pane-form-field
1345
+ text="Font"
1346
+ inputType="comboBox"
1347
+ [data]="fontNames"
1348
+ [colSpan]="2"
1349
+ placeholder="(Inherited font)"
1350
+ [value]="parseFont(stateService.state.categoryAxis[0]?.title?.font).name"
1351
+ (valueChange)="updateState(categoryAxisTitleFontName, $event)"
1352
+ >
1353
+ </kendo-chartwizard-property-pane-form-field>
1354
+ <kendo-chartwizard-property-pane-form-field
1355
+ text="Size"
1356
+ inputType="comboBox"
1357
+ placeholder="px"
1358
+ [data]="fontSizes"
1359
+ [value]="parseFont(stateService.state.categoryAxis[0]?.title?.font).size"
1360
+ (valueChange)="updateState(categoryAxisTitleFontSize, $event)"
1361
+ >
1362
+ </kendo-chartwizard-property-pane-form-field>
1363
+ <kendo-chartwizard-property-pane-form-field
1364
+ text="Color"
1365
+ inputType="colorPicker"
1366
+ [value]="stateService.state.categoryAxis[0]?.title?.color"
1367
+ (valueChange)="updateState(categoryAxisTitleColor, $event)"
1368
+ >
1369
+ </kendo-chartwizard-property-pane-form-field>
1370
+ </div>
1371
+ </fieldset>
1372
+ <fieldset class="k-form-fieldset">
1373
+ <legend class="k-form-legend">Labels</legend>
1374
+ <div class="k-form-layout k-d-grid k-grid-cols-2 k-gap-x-4">
1375
+ <kendo-chartwizard-property-pane-form-field
1376
+ text="Font"
1377
+ inputType="comboBox"
1378
+ [data]="fontNames"
1379
+ [colSpan]="2"
1380
+ placeholder="(Inherited font)"
1381
+ [value]="parseFont(stateService.state.categoryAxis[0]?.labels?.font).name"
1382
+ (valueChange)="updateState(categoryAxisLabelsFontName, $event)"
1383
+ >
1384
+ </kendo-chartwizard-property-pane-form-field>
1385
+ <kendo-chartwizard-property-pane-form-field
1386
+ text="Size"
1387
+ inputType="comboBox"
1388
+ [data]="fontSizes"
1389
+ placeholder="px"
1390
+ [value]="parseFont(stateService.state.categoryAxis[0]?.labels?.font).size"
1391
+ (valueChange)="updateState(categoryAxisLabelsFontSize, $event)"
1392
+ >
1393
+ </kendo-chartwizard-property-pane-form-field>
1394
+ <kendo-chartwizard-property-pane-form-field
1395
+ text="Color"
1396
+ inputType="colorPicker"
1397
+ [value]="stateService.state.categoryAxis[0]?.labels?.color"
1398
+ (valueChange)="updateState(categoryAxisLabelsColor, $event)"
1399
+ >
1400
+ </kendo-chartwizard-property-pane-form-field>
1401
+ <kendo-chartwizard-property-pane-form-field
1402
+ text="Rotation"
1403
+ inputType="dropDownList"
1404
+ [data]="labelsRotation"
1405
+ [value]="stateService.state.categoryAxis[0]?.labels?.rotation"
1406
+ (valueChange)="updateState(categoryAxisLabelsRotation, $event)"
1407
+ >
1408
+ </kendo-chartwizard-property-pane-form-field>
1409
+ <span></span>
1410
+ <kendo-chartwizard-property-pane-form-field
1411
+ text="Reverse Order"
1412
+ [isLabelInsideFormFieldWrap]="true"
1413
+ inputType="checkbox"
1414
+ [colSpan]="2"
1415
+ [value]="stateService.state.categoryAxis[0]?.reverse"
1416
+ (valueChange)="updateState(categoryAxisReverseOrder, $event)"
1417
+ >
1418
+ </kendo-chartwizard-property-pane-form-field>
1419
+ </div>
1420
+ </fieldset>
1421
+ </form>
1422
+ </kendo-expansionpanel>
1423
+ </section>
1424
+ <section *ngIf="stateService.state.seriesType !== 'pie'" class="k-row-start-1 k-row-end-3 k-col-start-4">
1425
+ <kendo-expansionpanel
1426
+ [style.max-width.px]="576"
1427
+ [title]="stateService.state.seriesType === 'scatter' ? 'Y Axis' : 'Value axis'"
1428
+ [expanded]="true"
1429
+ >
1430
+ <form class="k-form k-form-md">
1431
+ <fieldset class="k-form-fieldset">
1432
+ <legend class="k-form-legend">Title</legend>
1433
+ <div class="k-form-layout k-d-grid k-grid-cols-2 k-gap-x-4">
1434
+ <kendo-chartwizard-property-pane-form-field
1435
+ inputType="text"
1436
+ [hasLabel]="false"
1437
+ [colSpan]="2"
1438
+ placeholder="Axis Title"
1439
+ [value]="stateService.state.valueAxis[0]?.title?.text || null"
1440
+ (valueChange)="updateState(valueAxisTitleText, $event)"
1441
+ >
1442
+ </kendo-chartwizard-property-pane-form-field>
1443
+ <kendo-chartwizard-property-pane-form-field
1444
+ text="Font"
1445
+ inputType="comboBox"
1446
+ [colSpan]="2"
1447
+ [data]="fontNames"
1448
+ placeholder="(Inherited font)"
1449
+ [value]="parseFont(stateService.state.valueAxis[0]?.title?.font).name"
1450
+ (valueChange)="updateState(valueAxisTitleFontName, $event)"
1451
+ >
1452
+ </kendo-chartwizard-property-pane-form-field>
1453
+ <kendo-chartwizard-property-pane-form-field
1454
+ text="Size"
1455
+ inputType="comboBox"
1456
+ placeholder="px"
1457
+ [data]="fontSizes"
1458
+ [value]="parseFont(stateService.state.valueAxis[0]?.title?.font).size"
1459
+ (valueChange)="updateState(valueAxisTitleFontSize, $event)"
1460
+ >
1461
+ </kendo-chartwizard-property-pane-form-field>
1462
+ <kendo-chartwizard-property-pane-form-field
1463
+ text="Color"
1464
+ inputType="colorPicker"
1465
+ [value]="stateService.state.valueAxis[0]?.title?.color"
1466
+ (valueChange)="updateState(valueAxisTitleColor, $event)"
1467
+ >
1468
+ </kendo-chartwizard-property-pane-form-field>
1469
+ </div>
1470
+ </fieldset>
1471
+ <fieldset class="k-form-fieldset">
1472
+ <legend class="k-form-legend">Labels</legend>
1473
+ <div class="k-form-layout k-d-grid k-grid-cols-2 k-gap-x-4">
1474
+ <kendo-chartwizard-property-pane-form-field
1475
+ text="Label Format"
1476
+ [colSpan]="2"
1477
+ inputType="dropDownList"
1478
+ [data]="labelFormats"
1479
+ [value]="labelFormatValue"
1480
+ (valueChange)="updateState(valueAxisLabelsFormat, $event)"
1481
+ >
1482
+ </kendo-chartwizard-property-pane-form-field>
1483
+ <kendo-chartwizard-property-pane-form-field
1484
+ text="Font"
1485
+ inputType="comboBox"
1486
+ [data]="fontNames"
1487
+ [colSpan]="2"
1488
+ placeholder="(Inherited font)"
1489
+ [value]="parseFont(stateService.state.valueAxis[0]?.labels?.font).name"
1490
+ (valueChange)="updateState(valueAxisLabelsFontName, $event)"
1491
+ >
1492
+ </kendo-chartwizard-property-pane-form-field>
1493
+ <kendo-chartwizard-property-pane-form-field
1494
+ text="Size"
1495
+ inputType="comboBox"
1496
+ [data]="fontSizes"
1497
+ placeholder="px"
1498
+ [value]="parseFont(stateService.state.valueAxis[0]?.labels?.font).size"
1499
+ (valueChange)="updateState(valueAxisLabelsFontSize, $event)"
1500
+ >
1501
+ </kendo-chartwizard-property-pane-form-field>
1502
+ <kendo-chartwizard-property-pane-form-field
1503
+ text="Color"
1504
+ inputType="colorPicker"
1505
+ [value]="stateService.state.valueAxis[0]?.labels?.color"
1506
+ (valueChange)="updateState(valueAxisLabelsColor, $event)"
1507
+ >
1508
+ </kendo-chartwizard-property-pane-form-field>
1509
+ <kendo-chartwizard-property-pane-form-field
1510
+ text="Rotation"
1511
+ inputType="dropDownList"
1512
+ [data]="labelsRotation"
1513
+ [value]="stateService.state.valueAxis[0]?.labels?.rotation"
1514
+ (valueChange)="updateState(valueAxisLabelsRotation, $event)"
1515
+ >
1516
+ </kendo-chartwizard-property-pane-form-field>
1517
+ </div>
1518
+ </fieldset>
1519
+ </form>
1520
+ </kendo-expansionpanel>
1521
+ </section>
1522
+ `, 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 });
1523
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ChartWizardPropertyPaneFormatTabComponent, decorators: [{
2227
1524
  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>
1525
+ args: [{
1526
+ selector: 'kendo-chartwizard-property-pane-format-tab',
1527
+ changeDetection: ChangeDetectionStrategy.OnPush,
1528
+ template: `
1529
+ <section>
1530
+ <kendo-expansionpanel
1531
+ [style.max-width.px]="576"
1532
+ title="Chart Area"
1533
+ [expanded]="true"
1534
+ [attr.dir]="stateService.direction"
1535
+ >
1536
+ <form class="k-form k-form-md">
1537
+ <fieldset class="k-form-fieldset">
1538
+ <legend class="k-form-legend">Margins</legend>
1539
+ <div class="k-form-layout k-d-grid k-grid-cols-2 k-gap-x-4">
1540
+ <kendo-chartwizard-property-pane-form-field
1541
+ text="Left"
1542
+ inputType="numeric"
1543
+ [value]="$any(stateService.state.area.margin).left"
1544
+ (valueChange)="updateState(areaMarginLeft, $event)"
1545
+ >
1546
+ </kendo-chartwizard-property-pane-form-field>
1547
+ <kendo-chartwizard-property-pane-form-field
1548
+ text="Right"
1549
+ inputType="numeric"
1550
+ [value]="$any(stateService.state.area.margin).right"
1551
+ (valueChange)="updateState(areaMarginRight, $event)"
1552
+ >
1553
+ </kendo-chartwizard-property-pane-form-field>
1554
+ <kendo-chartwizard-property-pane-form-field
1555
+ text="Top"
1556
+ inputType="numeric"
1557
+ [value]="$any(stateService.state.area.margin).top"
1558
+ (valueChange)="updateState(areaMarginTop, $event)"
1559
+ >
1560
+ </kendo-chartwizard-property-pane-form-field>
1561
+ <kendo-chartwizard-property-pane-form-field
1562
+ text="Bottom"
1563
+ inputType="numeric"
1564
+ [value]="$any(stateService.state.area.margin).bottom"
1565
+ (valueChange)="updateState(areaMarginBottom, $event)"
1566
+ >
1567
+ </kendo-chartwizard-property-pane-form-field>
1568
+ </div>
1569
+ </fieldset>
1570
+ <fieldset class="k-form-fieldset">
1571
+ <legend class="k-form-legend">Background</legend>
1572
+ <kendo-chartwizard-property-pane-form-field
1573
+ text="Color"
1574
+ inputType="colorPicker"
1575
+ [value]="stateService.state.area?.background"
1576
+ (valueChange)="updateState(areaBackground, $event)"
1577
+ >
1578
+ </kendo-chartwizard-property-pane-form-field>
1579
+ </fieldset>
1580
+ </form>
1581
+ </kendo-expansionpanel>
1582
+ </section>
1583
+ <section>
1584
+ <kendo-expansionpanel
1585
+ [style.max-width.px]="576"
1586
+ title="Title"
1587
+ [expanded]="true"
1588
+ >
1589
+ <form class="k-form k-form-md">
1590
+ <div class="k-form-layout k-d-grid k-grid-cols-2 k-gap-x-4">
1591
+ <kendo-chartwizard-property-pane-form-field
1592
+ text="Apply to"
1593
+ inputType="dropDownList"
1594
+ [data]="chartTitles"
1595
+ [colSpan]="2"
1596
+ [value]="stateService.currentTitle"
1597
+ (valueChange)="changeCurrentTitle($event)"
1598
+ >
1599
+ </kendo-chartwizard-property-pane-form-field>
1600
+ <kendo-chartwizard-property-pane-form-field
1601
+ text="Title"
1602
+ inputType="text"
1603
+ [colSpan]="2"
1604
+ [value]="chartTitleTypeText"
1605
+ (valueChange)="updateState(chartTitleTypeAction, $event)"
1606
+ >
1607
+ </kendo-chartwizard-property-pane-form-field>
1608
+ <kendo-chartwizard-property-pane-form-field
1609
+ text="Font"
1610
+ inputType="comboBox"
1611
+ [data]="fontNames"
1612
+ [colSpan]="2"
1613
+ [value]="chartTitleTypeFont"
1614
+ placeholder="(Inherited font)"
1615
+ (valueChange)="updateState(chartTitleTypeFontAction, $event)"
1616
+ >
1617
+ </kendo-chartwizard-property-pane-form-field>
1618
+ <kendo-chartwizard-property-pane-form-field
1619
+ text="Size"
1620
+ inputType="comboBox"
1621
+ placeholder="px"
1622
+ [data]="fontSizes"
1623
+ [value]="chartTitleTypeFontSize"
1624
+ (valueChange)="updateState(chartTitleTypeFontSizeAction, $event)"
1625
+ >
1626
+ </kendo-chartwizard-property-pane-form-field>
1627
+ <kendo-chartwizard-property-pane-form-field
1628
+ text="Color"
1629
+ inputType="colorPicker"
1630
+ [value]="chartTitleTypeColor"
1631
+ (valueChange)="updateState(chartTitleTypeColorAction, $event)"
1632
+ >
1633
+ </kendo-chartwizard-property-pane-form-field>
1634
+ </div>
1635
+ </form>
1636
+ </kendo-expansionpanel>
1637
+ </section>
1638
+ <section>
1639
+ <kendo-expansionpanel
1640
+ [style.max-width.px]="576"
1641
+ title="Legend"
1642
+ [expanded]="true"
1643
+ >
1644
+ <form class="k-form k-form-md">
1645
+ <div class="k-form-layout k-d-grid k-grid-cols-2 k-gap-x-4">
1646
+ <kendo-label [for]="toggleLegend" text="Show Legend"></kendo-label>
1647
+ <kendo-switch
1648
+ #toggleLegend
1649
+ onLabel="On"
1650
+ offLabel="Off"
1651
+ thumbRounded="full"
1652
+ size="medium"
1653
+ [checked]="stateService.state.legend?.visible"
1654
+ (valueChange)="updateState(legendVisible, $event)"
1655
+ ></kendo-switch>
1656
+ <kendo-chartwizard-property-pane-form-field
1657
+ text="Font"
1658
+ inputType="comboBox"
1659
+ [data]="fontNames"
1660
+ [colSpan]="2"
1661
+ placeholder="(Inherited font)"
1662
+ [value]="parseFont(stateService.state.legend?.labels?.font).name"
1663
+ (valueChange)="updateState(legendFontName, $event)"
1664
+ >
1665
+ </kendo-chartwizard-property-pane-form-field>
1666
+ <kendo-chartwizard-property-pane-form-field
1667
+ text="Size"
1668
+ inputType="comboBox"
1669
+ [data]="fontSizes"
1670
+ placeholder="px"
1671
+ [value]="parseFont(stateService.state.legend?.labels?.font).size"
1672
+ (valueChange)="updateState(legendFontSize, $event)"
1673
+ >
1674
+ </kendo-chartwizard-property-pane-form-field>
1675
+ <kendo-chartwizard-property-pane-form-field
1676
+ text="Color"
1677
+ inputType="colorPicker"
1678
+ [value]="stateService.state.legend?.labels?.color"
1679
+ (valueChange)="updateState(legendColor, $event)"
1680
+ >
1681
+ </kendo-chartwizard-property-pane-form-field>
1682
+ <kendo-chartwizard-property-pane-form-field
1683
+ text="Position"
1684
+ inputType="dropDownList"
1685
+ [colSpan]="2"
1686
+ [data]="legendPositions"
1687
+ [value]="stateService.state.legend?.position"
1688
+ (valueChange)="updateState(legendPosition, $event)"
1689
+ >
1690
+ </kendo-chartwizard-property-pane-form-field>
1691
+ </div>
1692
+ </form>
1693
+ </kendo-expansionpanel>
1694
+ </section>
1695
+ <section>
1696
+ <kendo-expansionpanel
1697
+ [style.max-width.px]="576"
1698
+ title="Series"
1699
+ [expanded]="true"
1700
+ >
1701
+ <form class="k-form k-form-md">
1702
+ <div class="k-form-field">
1703
+ <kendo-label [for]="seriesDropDown" class="k-form-label" text="Apply to"></kendo-label>
1704
+ <div class="k-form-field-wrap">
1705
+ <kendo-dropdownlist
1706
+ #seriesDropDown
1707
+ [data]="seriesData"
1708
+ textField="name"
1709
+ valueField="name"
1710
+ fillMode="outline"
1711
+ rounded="medium"
1712
+ size="medium"
1713
+ [value]="stateService.currentSeries"
1714
+ (valueChange)="updateCurrentSeries($event)"
1715
+ ></kendo-dropdownlist>
1716
+ </div>
1717
+ </div>
1718
+
1719
+ <kendo-chartwizard-property-pane-form-field
1720
+ text="Color"
1721
+ [value]="stateService.currentSeries?.color"
1722
+ inputType="colorPicker"
1723
+ [disabled]="stateService.currentSeries.name === defaultAllSeriesItem.name"
1724
+ (valueChange)="updateSeriesColor($event)"
1725
+ >
1726
+ </kendo-chartwizard-property-pane-form-field>
1727
+ <kendo-chartwizard-property-pane-form-field
1728
+ text="Show Labels"
1729
+ [value]="showLabels"
1730
+ [isLabelInsideFormFieldWrap]="true"
1731
+ [colSpan]="2"
1732
+ inputType="checkbox"
1733
+ (valueChange)="toggleSeriesLabels($event)"
1734
+ >
1735
+ </kendo-chartwizard-property-pane-form-field>
1736
+ </form>
1737
+ </kendo-expansionpanel>
1738
+ </section>
1739
+ <section *ngIf="stateService.state.seriesType !== 'pie'" class="k-row-start-1 k-row-end-3 k-col-start-3">
1740
+ <kendo-expansionpanel
1741
+ [style.max-width.px]="576"
1742
+ [title]="stateService.state.seriesType === 'scatter' ? 'X Axis' : 'Category axis'"
1743
+ [expanded]="true"
1744
+ >
1745
+ <form class="k-form k-form-md">
1746
+ <fieldset class="k-form-fieldset">
1747
+ <legend class="k-form-legend">Title</legend>
1748
+ <div class="k-form-layout k-d-grid k-grid-cols-2 k-gap-x-4">
1749
+ <kendo-chartwizard-property-pane-form-field
1750
+ inputType="text"
1751
+ [hasLabel]="false"
1752
+ [colSpan]="2"
1753
+ placeholder="Axis Title"
1754
+ [value]="stateService.state.categoryAxis[0]?.title?.text || null"
1755
+ (valueChange)="updateState(categoryAxisTitleText, $event)"
1756
+ >
1757
+ </kendo-chartwizard-property-pane-form-field>
1758
+ <kendo-chartwizard-property-pane-form-field
1759
+ text="Font"
1760
+ inputType="comboBox"
1761
+ [data]="fontNames"
1762
+ [colSpan]="2"
1763
+ placeholder="(Inherited font)"
1764
+ [value]="parseFont(stateService.state.categoryAxis[0]?.title?.font).name"
1765
+ (valueChange)="updateState(categoryAxisTitleFontName, $event)"
1766
+ >
1767
+ </kendo-chartwizard-property-pane-form-field>
1768
+ <kendo-chartwizard-property-pane-form-field
1769
+ text="Size"
1770
+ inputType="comboBox"
1771
+ placeholder="px"
1772
+ [data]="fontSizes"
1773
+ [value]="parseFont(stateService.state.categoryAxis[0]?.title?.font).size"
1774
+ (valueChange)="updateState(categoryAxisTitleFontSize, $event)"
1775
+ >
1776
+ </kendo-chartwizard-property-pane-form-field>
1777
+ <kendo-chartwizard-property-pane-form-field
1778
+ text="Color"
1779
+ inputType="colorPicker"
1780
+ [value]="stateService.state.categoryAxis[0]?.title?.color"
1781
+ (valueChange)="updateState(categoryAxisTitleColor, $event)"
1782
+ >
1783
+ </kendo-chartwizard-property-pane-form-field>
1784
+ </div>
1785
+ </fieldset>
1786
+ <fieldset class="k-form-fieldset">
1787
+ <legend class="k-form-legend">Labels</legend>
1788
+ <div class="k-form-layout k-d-grid k-grid-cols-2 k-gap-x-4">
1789
+ <kendo-chartwizard-property-pane-form-field
1790
+ text="Font"
1791
+ inputType="comboBox"
1792
+ [data]="fontNames"
1793
+ [colSpan]="2"
1794
+ placeholder="(Inherited font)"
1795
+ [value]="parseFont(stateService.state.categoryAxis[0]?.labels?.font).name"
1796
+ (valueChange)="updateState(categoryAxisLabelsFontName, $event)"
1797
+ >
1798
+ </kendo-chartwizard-property-pane-form-field>
1799
+ <kendo-chartwizard-property-pane-form-field
1800
+ text="Size"
1801
+ inputType="comboBox"
1802
+ [data]="fontSizes"
1803
+ placeholder="px"
1804
+ [value]="parseFont(stateService.state.categoryAxis[0]?.labels?.font).size"
1805
+ (valueChange)="updateState(categoryAxisLabelsFontSize, $event)"
1806
+ >
1807
+ </kendo-chartwizard-property-pane-form-field>
1808
+ <kendo-chartwizard-property-pane-form-field
1809
+ text="Color"
1810
+ inputType="colorPicker"
1811
+ [value]="stateService.state.categoryAxis[0]?.labels?.color"
1812
+ (valueChange)="updateState(categoryAxisLabelsColor, $event)"
1813
+ >
1814
+ </kendo-chartwizard-property-pane-form-field>
1815
+ <kendo-chartwizard-property-pane-form-field
1816
+ text="Rotation"
1817
+ inputType="dropDownList"
1818
+ [data]="labelsRotation"
1819
+ [value]="stateService.state.categoryAxis[0]?.labels?.rotation"
1820
+ (valueChange)="updateState(categoryAxisLabelsRotation, $event)"
1821
+ >
1822
+ </kendo-chartwizard-property-pane-form-field>
1823
+ <span></span>
1824
+ <kendo-chartwizard-property-pane-form-field
1825
+ text="Reverse Order"
1826
+ [isLabelInsideFormFieldWrap]="true"
1827
+ inputType="checkbox"
1828
+ [colSpan]="2"
1829
+ [value]="stateService.state.categoryAxis[0]?.reverse"
1830
+ (valueChange)="updateState(categoryAxisReverseOrder, $event)"
1831
+ >
1832
+ </kendo-chartwizard-property-pane-form-field>
1833
+ </div>
1834
+ </fieldset>
1835
+ </form>
1836
+ </kendo-expansionpanel>
1837
+ </section>
1838
+ <section *ngIf="stateService.state.seriesType !== 'pie'" class="k-row-start-1 k-row-end-3 k-col-start-4">
1839
+ <kendo-expansionpanel
1840
+ [style.max-width.px]="576"
1841
+ [title]="stateService.state.seriesType === 'scatter' ? 'Y Axis' : 'Value axis'"
1842
+ [expanded]="true"
1843
+ >
1844
+ <form class="k-form k-form-md">
1845
+ <fieldset class="k-form-fieldset">
1846
+ <legend class="k-form-legend">Title</legend>
1847
+ <div class="k-form-layout k-d-grid k-grid-cols-2 k-gap-x-4">
1848
+ <kendo-chartwizard-property-pane-form-field
1849
+ inputType="text"
1850
+ [hasLabel]="false"
1851
+ [colSpan]="2"
1852
+ placeholder="Axis Title"
1853
+ [value]="stateService.state.valueAxis[0]?.title?.text || null"
1854
+ (valueChange)="updateState(valueAxisTitleText, $event)"
1855
+ >
1856
+ </kendo-chartwizard-property-pane-form-field>
1857
+ <kendo-chartwizard-property-pane-form-field
1858
+ text="Font"
1859
+ inputType="comboBox"
1860
+ [colSpan]="2"
1861
+ [data]="fontNames"
1862
+ placeholder="(Inherited font)"
1863
+ [value]="parseFont(stateService.state.valueAxis[0]?.title?.font).name"
1864
+ (valueChange)="updateState(valueAxisTitleFontName, $event)"
1865
+ >
1866
+ </kendo-chartwizard-property-pane-form-field>
1867
+ <kendo-chartwizard-property-pane-form-field
1868
+ text="Size"
1869
+ inputType="comboBox"
1870
+ placeholder="px"
1871
+ [data]="fontSizes"
1872
+ [value]="parseFont(stateService.state.valueAxis[0]?.title?.font).size"
1873
+ (valueChange)="updateState(valueAxisTitleFontSize, $event)"
1874
+ >
1875
+ </kendo-chartwizard-property-pane-form-field>
1876
+ <kendo-chartwizard-property-pane-form-field
1877
+ text="Color"
1878
+ inputType="colorPicker"
1879
+ [value]="stateService.state.valueAxis[0]?.title?.color"
1880
+ (valueChange)="updateState(valueAxisTitleColor, $event)"
1881
+ >
1882
+ </kendo-chartwizard-property-pane-form-field>
1883
+ </div>
1884
+ </fieldset>
1885
+ <fieldset class="k-form-fieldset">
1886
+ <legend class="k-form-legend">Labels</legend>
1887
+ <div class="k-form-layout k-d-grid k-grid-cols-2 k-gap-x-4">
1888
+ <kendo-chartwizard-property-pane-form-field
1889
+ text="Label Format"
1890
+ [colSpan]="2"
1891
+ inputType="dropDownList"
1892
+ [data]="labelFormats"
1893
+ [value]="labelFormatValue"
1894
+ (valueChange)="updateState(valueAxisLabelsFormat, $event)"
1895
+ >
1896
+ </kendo-chartwizard-property-pane-form-field>
1897
+ <kendo-chartwizard-property-pane-form-field
1898
+ text="Font"
1899
+ inputType="comboBox"
1900
+ [data]="fontNames"
1901
+ [colSpan]="2"
1902
+ placeholder="(Inherited font)"
1903
+ [value]="parseFont(stateService.state.valueAxis[0]?.labels?.font).name"
1904
+ (valueChange)="updateState(valueAxisLabelsFontName, $event)"
1905
+ >
1906
+ </kendo-chartwizard-property-pane-form-field>
1907
+ <kendo-chartwizard-property-pane-form-field
1908
+ text="Size"
1909
+ inputType="comboBox"
1910
+ [data]="fontSizes"
1911
+ placeholder="px"
1912
+ [value]="parseFont(stateService.state.valueAxis[0]?.labels?.font).size"
1913
+ (valueChange)="updateState(valueAxisLabelsFontSize, $event)"
1914
+ >
1915
+ </kendo-chartwizard-property-pane-form-field>
1916
+ <kendo-chartwizard-property-pane-form-field
1917
+ text="Color"
1918
+ inputType="colorPicker"
1919
+ [value]="stateService.state.valueAxis[0]?.labels?.color"
1920
+ (valueChange)="updateState(valueAxisLabelsColor, $event)"
1921
+ >
1922
+ </kendo-chartwizard-property-pane-form-field>
1923
+ <kendo-chartwizard-property-pane-form-field
1924
+ text="Rotation"
1925
+ inputType="dropDownList"
1926
+ [data]="labelsRotation"
1927
+ [value]="stateService.state.valueAxis[0]?.labels?.rotation"
1928
+ (valueChange)="updateState(valueAxisLabelsRotation, $event)"
1929
+ >
1930
+ </kendo-chartwizard-property-pane-form-field>
1931
+ </div>
1932
+ </fieldset>
1933
+ </form>
1934
+ </kendo-expansionpanel>
1935
+ </section>
2329
1936
  `,
2330
1937
  standalone: true,
2331
- imports: [ExpansionPanelComponent, ChartWizardSeriesTypeButtonComponent]
1938
+ imports: [
1939
+ ExpansionPanelComponent,
1940
+ ChartWizardPropertyPaneFormFieldComponent,
1941
+ LabelComponent,
1942
+ SwitchComponent,
1943
+ DropDownListComponent,
1944
+ NgIf
1945
+ ]
2332
1946
  }]
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
- }
1947
+ }], ctorParameters: function () { return [{ type: StateService }, { type: i2$1.LocalizationService }, { type: i0.ChangeDetectorRef }]; } });
2375
1948
 
2376
1949
  /**
2377
1950
  * Represents the Kendo UI for Angular Chart Wizard component.
@@ -2430,26 +2003,27 @@ class ChartWizardComponent {
2430
2003
  this.subscription.add(this.localization.changes.subscribe(({ rtl }) => {
2431
2004
  this.stateService.direction = rtl ? 'rtl' : 'ltr';
2432
2005
  }));
2006
+ this.stateService.dataTab = this.dataTab;
2433
2007
  }
2434
2008
  ngOnChanges(changes) {
2435
- var _a;
2436
- if (changes['data']) {
2009
+ var _a, _b, _c;
2010
+ if (changes['data'] && ((_a = changes['data'].currentValue) === null || _a === void 0 ? void 0 : _a.length) > 0) {
2437
2011
  const data = changes['data'].currentValue;
2438
2012
  const clonedData = structuredClone(data);
2439
2013
  this.stateService.data = clonedData;
2440
- this.stateService.state = createState(clonedData, this.stateService.seriesType);
2014
+ this.stateService.state = createState(clonedData, this.stateService.state.seriesType);
2441
2015
  }
2442
- if (changes['defaultState']) {
2016
+ if (changes['defaultState'] && ((_b = this.data) === null || _b === void 0 ? void 0 : _b.length) > 0) {
2443
2017
  const defaultState = changes['defaultState'].currentValue;
2444
2018
  if (defaultState.seriesType) {
2445
- this.stateService.seriesType = defaultState.seriesType;
2446
- this.stateService.state = mergeStates(this.stateService.state, createState(this.stateService.data, this.stateService.seriesType));
2019
+ this.stateService.state.seriesType = defaultState.seriesType;
2020
+ this.stateService.state = mergeStates(this.stateService.state, createState(this.stateService.data, this.stateService.state.seriesType));
2447
2021
  }
2448
- this.stateService.currentSeries = {};
2022
+ this.stateService.currentSeries = defaultAllSeriesItem;
2449
2023
  if (typeof defaultState.stack !== 'undefined') {
2450
2024
  this.stateService.state = updateState(this.stateService.state, ActionTypes.stacked, defaultState.stack);
2451
2025
  }
2452
- (_a = this.propertyPane) === null || _a === void 0 ? void 0 : _a.detectChanges();
2026
+ (_c = this.propertyPane) === null || _c === void 0 ? void 0 : _c.detectChanges();
2453
2027
  }
2454
2028
  }
2455
2029
  ngOnDestroy() {
@@ -2495,7 +2069,7 @@ class ChartWizardComponent {
2495
2069
  }
2496
2070
  }
2497
2071
  }
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 });
2072
+ 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
2073
  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
2074
  LocalizationService,
2501
2075
  {
@@ -2503,7 +2077,7 @@ ChartWizardComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", v
2503
2077
  useValue: 'kendo.chartwizard',
2504
2078
  },
2505
2079
  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: `
2080
+ ], 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
2081
  <ng-container
2508
2082
  kendoChartWizardLocalizedMessages
2509
2083
  i18n-sampleMessage="kendo.chartwizard.sampleMessage|Sample description"
@@ -2530,8 +2104,8 @@ ChartWizardComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", v
2530
2104
  Export
2531
2105
  </kendo-dropdownbutton>
2532
2106
  </div>
2533
- <div class="k-preview-pane-content">
2534
- <kendo-chart [transitions]="false">
2107
+ <div class="k-preview-pane-content" [style.height]="'calc(100% - 50px)'">
2108
+ <kendo-chart [transitions]="false" [style.width.%]="100" [style.height.%]="100">
2535
2109
  <kendo-chart-title
2536
2110
  [text]="stateService.state.title?.text"
2537
2111
  [font]="stateService.state.title?.font"
@@ -2597,40 +2171,6 @@ ChartWizardComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", v
2597
2171
  >
2598
2172
  </kendo-chart-series-item>
2599
2173
  </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
2174
  <kendo-chart-legend
2635
2175
  [visible]="stateService.state.legend?.visible"
2636
2176
  [position]="stateService.state.legend?.position"
@@ -2664,7 +2204,7 @@ ChartWizardComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", v
2664
2204
  </kendo-splitter>
2665
2205
  <div kendoWatermarkOverlay *ngIf="showLicenseWatermark"></div>
2666
2206
  </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 });
2207
+ `, 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
2208
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ChartWizardComponent, decorators: [{
2669
2209
  type: Component,
2670
2210
  args: [{
@@ -2706,8 +2246,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
2706
2246
  Export
2707
2247
  </kendo-dropdownbutton>
2708
2248
  </div>
2709
- <div class="k-preview-pane-content">
2710
- <kendo-chart [transitions]="false">
2249
+ <div class="k-preview-pane-content" [style.height]="'calc(100% - 50px)'">
2250
+ <kendo-chart [transitions]="false" [style.width.%]="100" [style.height.%]="100">
2711
2251
  <kendo-chart-title
2712
2252
  [text]="stateService.state.title?.text"
2713
2253
  [font]="stateService.state.title?.font"
@@ -2773,40 +2313,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
2773
2313
  >
2774
2314
  </kendo-chart-series-item>
2775
2315
  </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
2316
  <kendo-chart-legend
2811
2317
  [visible]="stateService.state.legend?.visible"
2812
2318
  [position]="stateService.state.legend?.position"
@@ -2873,7 +2379,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
2873
2379
  WatermarkOverlayComponent
2874
2380
  ]
2875
2381
  }]
2876
- }], ctorParameters: function () { return [{ type: i2.LocalizationService }, { type: StateService }]; }, propDecorators: { data: [{
2382
+ }], ctorParameters: function () { return [{ type: i2$1.LocalizationService }, { type: StateService }]; }, propDecorators: { data: [{
2877
2383
  type: Input
2878
2384
  }], defaultState: [{
2879
2385
  type: Input
@@ -2892,30 +2398,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
2892
2398
  }], propertyPane: [{
2893
2399
  type: ViewChild,
2894
2400
  args: [ChartWizardPropertyPaneChartTabComponent]
2401
+ }], dataTab: [{
2402
+ type: ViewChild,
2403
+ args: [ChartWizardPropertyPaneDataTabComponent]
2895
2404
  }] } });
2896
2405
 
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
2406
+ const getWizardDataFromDataRows = ChartWizardCommon.getWizardDataFromDataRows;
2919
2407
 
2920
2408
  /**
2921
2409
  * Maps the Grid selectedKeys to a more general DataRows type to be displayed in the Chart Wizard.