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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -8,14 +8,13 @@ import { L10N_PREFIX, LocalizationService } from '@progress/kendo-angular-l10n';
8
8
  import { validatePackage } from '@progress/kendo-licensing';
9
9
  import { Subscription } from 'rxjs';
10
10
  import { packageMetadata } from './package-metadata';
11
- import { ActionTypes, createState, mergeStates, updateState } from './chart-wizard-state';
11
+ import { ActionTypes, createState, updateState, mergeStates } from './chart-wizard-state';
12
12
  import { exportIcon, fileIcon, fileImageIcon, filePdfIcon } from '@progress/kendo-svg-icons';
13
13
  import { StateService } from './state.service';
14
14
  import { ChartComponent } from '@progress/kendo-angular-charts';
15
15
  import { saveAs } from '@progress/kendo-file-saver';
16
16
  import { exportPDF } from '@progress/kendo-drawing';
17
- import { ChartWizardPropertyPaneDataTabComponent } from './property-pane/format-tab.component';
18
- import { ChartWizardPropertyPaneFormatTabComponent } from './property-pane/data-tab.component';
17
+ import { ChartWizardPropertyPaneDataTabComponent } from './property-pane/data-tab.component';
19
18
  import { ChartWizardPropertyPaneChartTabComponent } from './property-pane/chart-tab.component';
20
19
  import { LegendComponent } from '@progress/kendo-angular-charts';
21
20
  import { YAxisItemComponent } from '@progress/kendo-angular-charts';
@@ -36,6 +35,8 @@ import { WindowComponent } from '@progress/kendo-angular-dialog';
36
35
  import { SplitterComponent, SplitterPaneComponent, TabContentDirective, TabStripComponent, TabStripTabComponent } from '@progress/kendo-angular-layout';
37
36
  import { DropDownButtonComponent } from '@progress/kendo-angular-buttons';
38
37
  import { ExportEvent } from './events';
38
+ import { defaultAllSeriesItem } from './common/models';
39
+ import { ChartWizardPropertyPaneFormatTabComponent } from './property-pane/format-tab.component';
39
40
  import * as i0 from "@angular/core";
40
41
  import * as i1 from "@progress/kendo-angular-l10n";
41
42
  import * as i2 from "./state.service";
@@ -96,21 +97,22 @@ export class ChartWizardComponent {
96
97
  this.subscription.add(this.localization.changes.subscribe(({ rtl }) => {
97
98
  this.stateService.direction = rtl ? 'rtl' : 'ltr';
98
99
  }));
100
+ this.stateService.dataTab = this.dataTab;
99
101
  }
100
102
  ngOnChanges(changes) {
101
- if (changes['data']) {
103
+ if (changes['data'] && changes['data'].currentValue?.length > 0) {
102
104
  const data = changes['data'].currentValue;
103
105
  const clonedData = structuredClone(data);
104
106
  this.stateService.data = clonedData;
105
- this.stateService.state = createState(clonedData, this.stateService.seriesType);
107
+ this.stateService.state = createState(clonedData, this.stateService.state.seriesType);
106
108
  }
107
- if (changes['defaultState']) {
109
+ if (changes['defaultState'] && this.data?.length > 0) {
108
110
  const defaultState = changes['defaultState'].currentValue;
109
111
  if (defaultState.seriesType) {
110
- this.stateService.seriesType = defaultState.seriesType;
111
- this.stateService.state = mergeStates(this.stateService.state, createState(this.stateService.data, this.stateService.seriesType));
112
+ this.stateService.state.seriesType = defaultState.seriesType;
113
+ this.stateService.state = mergeStates(this.stateService.state, createState(this.stateService.data, this.stateService.state.seriesType));
112
114
  }
113
- this.stateService.currentSeries = {};
115
+ this.stateService.currentSeries = defaultAllSeriesItem;
114
116
  if (typeof defaultState.stack !== 'undefined') {
115
117
  this.stateService.state = updateState(this.stateService.state, ActionTypes.stacked, defaultState.stack);
116
118
  }
@@ -164,7 +166,7 @@ ChartWizardComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", v
164
166
  useValue: 'kendo.chartwizard',
165
167
  },
166
168
  StateService
167
- ], viewQueries: [{ propertyName: "chart", first: true, predicate: ChartComponent, descendants: true }, { propertyName: "propertyPane", first: true, predicate: ChartWizardPropertyPaneChartTabComponent, descendants: true }], exportAs: ["kendoChartWizard"], usesOnChanges: true, ngImport: i0, template: `
169
+ ], 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: `
168
170
  <ng-container
169
171
  kendoChartWizardLocalizedMessages
170
172
  i18n-sampleMessage="kendo.chartwizard.sampleMessage|Sample description"
@@ -191,8 +193,8 @@ ChartWizardComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", v
191
193
  Export
192
194
  </kendo-dropdownbutton>
193
195
  </div>
194
- <div class="k-preview-pane-content">
195
- <kendo-chart [transitions]="false">
196
+ <div class="k-preview-pane-content" [style.height]="'calc(100% - 50px)'">
197
+ <kendo-chart [transitions]="false" [style.width.%]="100" [style.height.%]="100">
196
198
  <kendo-chart-title
197
199
  [text]="stateService.state.title?.text"
198
200
  [font]="stateService.state.title?.font"
@@ -258,40 +260,6 @@ ChartWizardComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", v
258
260
  >
259
261
  </kendo-chart-series-item>
260
262
  </kendo-chart-series>
261
- <kendo-chart-x-axis>
262
- <kendo-chart-x-axis-item
263
- *ngFor="let axis of stateService.state.categoryAxis"
264
- [categories]="axis.categories"
265
- [title]="{
266
- text: axis.title?.text,
267
- font: axis.title?.font,
268
- color: axis.title?.color
269
- }"
270
- [labels]="{
271
- rotation: axis.labels?.rotation,
272
- font: axis.labels?.font,
273
- color: axis.labels?.color
274
- }"
275
- [reverse]="axis.reverse"
276
- >
277
- </kendo-chart-x-axis-item>
278
- </kendo-chart-x-axis>
279
- <kendo-chart-y-axis>
280
- <kendo-chart-y-axis-item
281
- *ngFor="let axis of stateService.state.valueAxis"
282
- [title]="{
283
- text: axis.title?.text,
284
- font: axis.title?.font,
285
- color: axis.title?.color
286
- }"
287
- [labels]="{
288
- rotation: axis.labels?.rotation,
289
- font: axis.labels?.font,
290
- color: axis.labels?.color
291
- }"
292
- >
293
- </kendo-chart-y-axis-item>
294
- </kendo-chart-y-axis>
295
263
  <kendo-chart-legend
296
264
  [visible]="stateService.state.legend?.visible"
297
265
  [position]="stateService.state.legend?.position"
@@ -325,7 +293,7 @@ ChartWizardComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", v
325
293
  </kendo-splitter>
326
294
  <div kendoWatermarkOverlay *ngIf="showLicenseWatermark"></div>
327
295
  </kendo-window>
328
- `, 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 });
296
+ `, 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 });
329
297
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ChartWizardComponent, decorators: [{
330
298
  type: Component,
331
299
  args: [{
@@ -367,8 +335,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
367
335
  Export
368
336
  </kendo-dropdownbutton>
369
337
  </div>
370
- <div class="k-preview-pane-content">
371
- <kendo-chart [transitions]="false">
338
+ <div class="k-preview-pane-content" [style.height]="'calc(100% - 50px)'">
339
+ <kendo-chart [transitions]="false" [style.width.%]="100" [style.height.%]="100">
372
340
  <kendo-chart-title
373
341
  [text]="stateService.state.title?.text"
374
342
  [font]="stateService.state.title?.font"
@@ -434,40 +402,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
434
402
  >
435
403
  </kendo-chart-series-item>
436
404
  </kendo-chart-series>
437
- <kendo-chart-x-axis>
438
- <kendo-chart-x-axis-item
439
- *ngFor="let axis of stateService.state.categoryAxis"
440
- [categories]="axis.categories"
441
- [title]="{
442
- text: axis.title?.text,
443
- font: axis.title?.font,
444
- color: axis.title?.color
445
- }"
446
- [labels]="{
447
- rotation: axis.labels?.rotation,
448
- font: axis.labels?.font,
449
- color: axis.labels?.color
450
- }"
451
- [reverse]="axis.reverse"
452
- >
453
- </kendo-chart-x-axis-item>
454
- </kendo-chart-x-axis>
455
- <kendo-chart-y-axis>
456
- <kendo-chart-y-axis-item
457
- *ngFor="let axis of stateService.state.valueAxis"
458
- [title]="{
459
- text: axis.title?.text,
460
- font: axis.title?.font,
461
- color: axis.title?.color
462
- }"
463
- [labels]="{
464
- rotation: axis.labels?.rotation,
465
- font: axis.labels?.font,
466
- color: axis.labels?.color
467
- }"
468
- >
469
- </kendo-chart-y-axis-item>
470
- </kendo-chart-y-axis>
471
405
  <kendo-chart-legend
472
406
  [visible]="stateService.state.legend?.visible"
473
407
  [position]="stateService.state.legend?.position"
@@ -553,4 +487,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
553
487
  }], propertyPane: [{
554
488
  type: ViewChild,
555
489
  args: [ChartWizardPropertyPaneChartTabComponent]
490
+ }], dataTab: [{
491
+ type: ViewChild,
492
+ args: [ChartWizardPropertyPaneDataTabComponent]
556
493
  }] } });
@@ -2,26 +2,5 @@
2
2
  * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
- // TODO: Extract to kendo-charts
6
- import { getter } from "@progress/kendo-common";
7
- /**
8
- * Maps data rows to the Chart Wizard data format.
9
- *
10
- * @returns collection that can be used as Chart Wizard.
11
- */
12
- export function getWizardDataFromDataRows(dataRows) {
13
- const result = [];
14
- dataRows.forEach(item => {
15
- const { dataItem, dataColumns } = item;
16
- const row = [];
17
- dataColumns.forEach(column => {
18
- row.push({
19
- field: column.title || column.field,
20
- value: getter(column.field)(dataItem)
21
- });
22
- });
23
- result.push(row);
24
- });
25
- return result;
26
- }
27
- // End: Extract to kendo-charts
5
+ import { ChartWizardCommon } from '@progress/kendo-charts';
6
+ export const getWizardDataFromDataRows = ChartWizardCommon.getWizardDataFromDataRows;
@@ -9,7 +9,7 @@ export const packageMetadata = {
9
9
  name: '@progress/kendo-angular-chart-wizard',
10
10
  productName: 'Kendo UI for Angular',
11
11
  productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
12
- publishDate: 1724848963,
13
- version: '16.9.0-develop.8',
12
+ publishDate: 1725979259,
13
+ version: '16.9.0',
14
14
  licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning',
15
15
  };
@@ -2,7 +2,7 @@
2
2
  * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
- import { ChangeDetectionStrategy, Component } from '@angular/core';
5
+ import { ChangeDetectionStrategy, ChangeDetectorRef, Component, Renderer2, ViewChild, ViewEncapsulation } from '@angular/core';
6
6
  import { StateService } from '../state.service';
7
7
  import { ActionTypes, isCategorical, updateState } from '../chart-wizard-state';
8
8
  import { FormBuilder } from '@angular/forms';
@@ -18,13 +18,14 @@ import * as i2 from "@angular/forms";
18
18
  /**
19
19
  * @hidden
20
20
  */
21
- export class ChartWizardPropertyPaneFormatTabComponent {
22
- constructor(stateService, formBuilder) {
21
+ export class ChartWizardPropertyPaneDataTabComponent {
22
+ constructor(stateService, formBuilder, cdr, renderer) {
23
23
  this.stateService = stateService;
24
24
  this.formBuilder = formBuilder;
25
+ this.cdr = cdr;
26
+ this.renderer = renderer;
25
27
  this.categoryAxisX = ActionTypes.categoryAxisX;
26
28
  this.valueAxisY = ActionTypes.valueAxisY;
27
- this.seriesChange = ActionTypes.seriesChange;
28
29
  this.trashIcon = trashIcon;
29
30
  this.plusIcon = plusIcon;
30
31
  this.isCategorical = isCategorical;
@@ -32,6 +33,14 @@ export class ChartWizardPropertyPaneFormatTabComponent {
32
33
  name: null,
33
34
  });
34
35
  }
36
+ ngAfterViewInit() {
37
+ if (this.grid) {
38
+ const gridHeader = this.grid.wrapper.nativeElement.querySelector('.k-grid .k-grid-header');
39
+ const gridContent = this.grid.wrapper.nativeElement.querySelector('.k-grid .k-grid-content');
40
+ this.renderer.setStyle(gridHeader, 'display', 'none');
41
+ this.renderer.setStyle(gridContent, 'overflow', 'auto');
42
+ }
43
+ }
35
44
  updateState(action, value) {
36
45
  this.stateService.state = updateState(this.stateService.state, action, value);
37
46
  }
@@ -45,26 +54,29 @@ export class ChartWizardPropertyPaneFormatTabComponent {
45
54
  addData() {
46
55
  this.stateService.state.series.push(this.stateService.deletedSeries[0]);
47
56
  this.stateService.deletedSeries.shift();
48
- this.updateState(this.seriesChange, this.stateService.state.series);
57
+ this.updateState(ActionTypes.seriesChange, this.stateService.state.series);
49
58
  }
50
59
  removeData(event) {
51
60
  this.stateService.deletedSeries.push(event.dataItem);
52
- this.updateState(this.seriesChange, event.sender.data.data);
61
+ this.updateState(ActionTypes.seriesChange, event.sender.data.data);
53
62
  }
54
63
  onRowReorder(grid) {
55
- this.updateState(this.seriesChange, grid.data.data);
64
+ this.updateState(ActionTypes.seriesChange, grid.data.data);
56
65
  }
57
66
  isDisabled(grid) {
58
67
  return grid.data.data.length === this.stateService.state.initialSeries.length;
59
68
  }
69
+ detectChanges() {
70
+ this.cdr.detectChanges();
71
+ }
60
72
  }
61
- ChartWizardPropertyPaneFormatTabComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ChartWizardPropertyPaneFormatTabComponent, deps: [{ token: i1.StateService }, { token: i2.FormBuilder }], target: i0.ɵɵFactoryTarget.Component });
62
- 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: `
73
+ ChartWizardPropertyPaneDataTabComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ChartWizardPropertyPaneDataTabComponent, deps: [{ token: i1.StateService }, { token: i2.FormBuilder }, { token: i0.ChangeDetectorRef }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component });
74
+ 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: `
63
75
  <kendo-expansionpanel title="Configuration" [expanded]="true">
64
76
  <form class="k-form k-form-md">
65
77
  <fieldset class="k-form-fieldset">
66
78
  <legend class="k-form-legend">
67
- {{ stateService.seriesType === 'scatter' ? 'X Axis' : 'Category Axis' }}
79
+ {{ stateService.state.seriesType === 'scatter' ? 'X Axis' : 'Category Axis' }}
68
80
  </legend>
69
81
  <kendo-dropdownlist
70
82
  [data]="stateService.state.columns"
@@ -76,7 +88,7 @@ ChartWizardPropertyPaneFormatTabComponent.ɵcmp = i0.ɵɵngDeclareComponent({ mi
76
88
  >
77
89
  </kendo-dropdownlist>
78
90
  </fieldset>
79
- <fieldset class="k-form-fieldset" *ngIf="isCategorical(stateService.seriesType)">
91
+ <fieldset class="k-form-fieldset" *ngIf="isCategorical(stateService.state.seriesType)">
80
92
  <legend class="k-form-legend">Series</legend>
81
93
  <kendo-grid
82
94
  #grid
@@ -100,7 +112,8 @@ ChartWizardPropertyPaneFormatTabComponent.ɵcmp = i0.ɵɵngDeclareComponent({ mi
100
112
  </button>
101
113
  </ng-template>
102
114
  <kendo-grid-rowreorder-column [width]="40"></kendo-grid-rowreorder-column>
103
- <kendo-grid-column field="name" title="Name"></kendo-grid-column>
115
+ <kendo-grid-column field="name" title="">
116
+ </kendo-grid-column>
104
117
  <kendo-grid-command-column [width]="40">
105
118
  <ng-template kendoGridCellTemplate>
106
119
  <button
@@ -116,14 +129,14 @@ ChartWizardPropertyPaneFormatTabComponent.ɵcmp = i0.ɵɵngDeclareComponent({ mi
116
129
  </fieldset>
117
130
  <fieldset
118
131
  class="k-form-fieldset"
119
- *ngIf="stateService.seriesType === 'pie' || stateService.seriesType === 'scatter'"
132
+ *ngIf="stateService.state.seriesType === 'pie'"
120
133
  >
121
134
  <legend class="k-form-legend">
122
- {{ stateService.seriesType === 'scatter' ? 'Y Axis' : 'Value Axis' }}
135
+ {{ 'Value Axis' }}
123
136
  </legend>
124
137
  <kendo-dropdownlist
125
138
  [data]="stateService.state.columns"
126
- [value]="stateService.state.yField"
139
+ [value]="stateService.state.valueField"
127
140
  (valueChange)="updateState(valueAxisY, $event)"
128
141
  fillMode="outline"
129
142
  rounded="medium"
@@ -133,18 +146,19 @@ ChartWizardPropertyPaneFormatTabComponent.ɵcmp = i0.ɵɵngDeclareComponent({ mi
133
146
  </fieldset>
134
147
  </form>
135
148
  </kendo-expansionpanel>
136
- `, 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 });
137
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ChartWizardPropertyPaneFormatTabComponent, decorators: [{
149
+ `, isInline: true, dependencies: [{ kind: "component", type: ExpansionPanelComponent, selector: "kendo-expansionpanel", inputs: ["title", "subtitle", "disabled", "expanded", "svgExpandIcon", "svgCollapseIcon", "expandIcon", "collapseIcon", "animation"], outputs: ["expandedChange", "action", "expand", "collapse"], exportAs: ["kendoExpansionPanel"] }, { kind: "component", type: DropDownListComponent, selector: "kendo-dropdownlist", inputs: ["customIconClass", "showStickyHeader", "icon", "svgIcon", "loading", "data", "value", "textField", "valueField", "adaptiveMode", "title", "subtitle", "popupSettings", "listHeight", "defaultItem", "disabled", "itemDisabled", "readonly", "filterable", "virtual", "ignoreCase", "delay", "valuePrimitive", "tabindex", "tabIndex", "size", "rounded", "fillMode", "leftRightArrowsNavigation", "id"], outputs: ["valueChange", "filterChange", "selectionChange", "open", "opened", "close", "closed", "focus", "blur"], exportAs: ["kendoDropDownList"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: GridComponent, selector: "kendo-grid", inputs: ["data", "pageSize", "height", "rowHeight", "detailRowHeight", "skip", "scrollable", "selectable", "sort", "size", "trackBy", "filter", "group", "virtualColumns", "filterable", "sortable", "pageable", "groupable", "rowReorderable", "navigable", "navigatable", "autoSize", "rowClass", "rowSticky", "rowSelected", "cellSelected", "resizable", "reorderable", "loading", "columnMenu", "hideHeader", "isDetailExpanded", "isGroupExpanded"], outputs: ["filterChange", "pageChange", "groupChange", "sortChange", "selectionChange", "rowReorder", "dataStateChange", "groupExpand", "groupCollapse", "detailExpand", "detailCollapse", "edit", "cancel", "save", "remove", "add", "cellClose", "cellClick", "pdfExport", "excelExport", "columnResize", "columnReorder", "columnVisibilityChange", "columnLockedChange", "columnStickyChange", "scrollBottom", "contentScroll"], exportAs: ["kendoGrid"] }, { kind: "directive", type: ReactiveEditingDirective, selector: "[kendoGridReactiveEditing]", inputs: ["kendoGridReactiveEditing"] }, { kind: "directive", type: DataBindingDirective, selector: "[kendoGridBinding]", inputs: ["skip", "sort", "filter", "pageSize", "group", "kendoGridBinding"], exportAs: ["kendoGridBinding"] }, { kind: "directive", type: ToolbarTemplateDirective, selector: "[kendoGridToolbarTemplate]", inputs: ["position"] }, { kind: "component", type: ButtonComponent, selector: "button[kendoButton], span[kendoButton], kendo-button", inputs: ["arrowIcon", "toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon", "role", "primary", "look"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }, { kind: "component", type: RowReorderColumnComponent, selector: "kendo-grid-rowreorder-column", inputs: ["dragHandleIcon", "dragHandleSVGIcon"] }, { kind: "component", type: ColumnComponent, selector: "kendo-grid-column", inputs: ["field", "format", "sortable", "groupable", "editor", "filter", "filterable", "editable"] }, { kind: "component", type: CommandColumnComponent, selector: "kendo-grid-command-column" }, { kind: "directive", type: CellTemplateDirective, selector: "[kendoGridCellTemplate]" }, { kind: "directive", type: GridToolbarFocusableDirective, selector: " [kendoGridToolbarFocusable], [kendoGridAddCommand], [kendoGridCancelCommand], [kendoGridEditCommand], [kendoGridRemoveCommand], [kendoGridSaveCommand], [kendoGridExcelCommand], [kendoGridPDFCommand] " }, { kind: "component", type: RemoveCommandDirective, selector: "[kendoGridRemoveCommand]" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
150
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ChartWizardPropertyPaneDataTabComponent, decorators: [{
138
151
  type: Component,
139
152
  args: [{
140
153
  selector: 'kendo-chartwizard-property-pane-data-tab',
141
154
  changeDetection: ChangeDetectionStrategy.OnPush,
155
+ encapsulation: ViewEncapsulation.None,
142
156
  template: `
143
157
  <kendo-expansionpanel title="Configuration" [expanded]="true">
144
158
  <form class="k-form k-form-md">
145
159
  <fieldset class="k-form-fieldset">
146
160
  <legend class="k-form-legend">
147
- {{ stateService.seriesType === 'scatter' ? 'X Axis' : 'Category Axis' }}
161
+ {{ stateService.state.seriesType === 'scatter' ? 'X Axis' : 'Category Axis' }}
148
162
  </legend>
149
163
  <kendo-dropdownlist
150
164
  [data]="stateService.state.columns"
@@ -156,7 +170,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
156
170
  >
157
171
  </kendo-dropdownlist>
158
172
  </fieldset>
159
- <fieldset class="k-form-fieldset" *ngIf="isCategorical(stateService.seriesType)">
173
+ <fieldset class="k-form-fieldset" *ngIf="isCategorical(stateService.state.seriesType)">
160
174
  <legend class="k-form-legend">Series</legend>
161
175
  <kendo-grid
162
176
  #grid
@@ -180,7 +194,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
180
194
  </button>
181
195
  </ng-template>
182
196
  <kendo-grid-rowreorder-column [width]="40"></kendo-grid-rowreorder-column>
183
- <kendo-grid-column field="name" title="Name"></kendo-grid-column>
197
+ <kendo-grid-column field="name" title="">
198
+ </kendo-grid-column>
184
199
  <kendo-grid-command-column [width]="40">
185
200
  <ng-template kendoGridCellTemplate>
186
201
  <button
@@ -196,14 +211,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
196
211
  </fieldset>
197
212
  <fieldset
198
213
  class="k-form-fieldset"
199
- *ngIf="stateService.seriesType === 'pie' || stateService.seriesType === 'scatter'"
214
+ *ngIf="stateService.state.seriesType === 'pie'"
200
215
  >
201
216
  <legend class="k-form-legend">
202
- {{ stateService.seriesType === 'scatter' ? 'Y Axis' : 'Value Axis' }}
217
+ {{ 'Value Axis' }}
203
218
  </legend>
204
219
  <kendo-dropdownlist
205
220
  [data]="stateService.state.columns"
206
- [value]="stateService.state.yField"
221
+ [value]="stateService.state.valueField"
207
222
  (valueChange)="updateState(valueAxisY, $event)"
208
223
  fillMode="outline"
209
224
  rounded="medium"
@@ -234,4 +249,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
234
249
  RemoveCommandDirective
235
250
  ]
236
251
  }]
237
- }], ctorParameters: function () { return [{ type: i1.StateService }, { type: i2.FormBuilder }]; } });
252
+ }], ctorParameters: function () { return [{ type: i1.StateService }, { type: i2.FormBuilder }, { type: i0.ChangeDetectorRef }, { type: i0.Renderer2 }]; }, propDecorators: { grid: [{
253
+ type: ViewChild,
254
+ args: [GridComponent]
255
+ }] } });
@@ -6,7 +6,6 @@ import { Component, HostBinding, Input, Output, ViewChild, EventEmitter, ChangeD
6
6
  import { ComboBoxComponent, DropDownListComponent } from '@progress/kendo-angular-dropdowns';
7
7
  import { CheckBoxComponent, ColorPickerComponent, NumericTextBoxComponent, TextBoxComponent } from '@progress/kendo-angular-inputs';
8
8
  import { LabelComponent } from '@progress/kendo-angular-label';
9
- import { ActionTypes } from '../chart-wizard-state';
10
9
  import { NgIf } from '@angular/common';
11
10
  import { LocalizationService } from '@progress/kendo-angular-l10n';
12
11
  import * as i0 from "@angular/core";
@@ -50,10 +49,10 @@ export class ChartWizardPropertyPaneFormFieldComponent {
50
49
  }
51
50
  ChartWizardPropertyPaneFormFieldComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ChartWizardPropertyPaneFormFieldComponent, deps: [{ token: i1.LocalizationService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
52
51
  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: `
53
- <kendo-label *ngIf="hasLabel && !isLabelInsideFormFieldWrap" class="k-form-label" [text]="text"></kendo-label>
52
+ <kendo-label *ngIf="hasLabel && !isLabelInsideFormFieldWrap && inputType !== 'checkbox'" class="k-form-label" [text]="text"></kendo-label>
54
53
  <div class="k-form-field-wrap">
55
54
  <kendo-label
56
- *ngIf="hasLabel && isLabelInsideFormFieldWrap"
55
+ *ngIf="hasLabel && isLabelInsideFormFieldWrap && inputType !== 'checkbox'"
57
56
  class="k-form-label"
58
57
  [text]="text"
59
58
  ></kendo-label>
@@ -112,6 +111,11 @@ ChartWizardPropertyPaneFormFieldComponent.ɵcmp = i0.ɵɵngDeclareComponent({ mi
112
111
  [checkedState]="value"
113
112
  (checkedStateChange)="valueChange.emit($event)"
114
113
  ></kendo-checkbox>
114
+ <kendo-label
115
+ *ngIf="hasLabel && isLabelInsideFormFieldWrap && inputType === 'checkbox'"
116
+ class="k-checkbox-label"
117
+ [text]="text"
118
+ ></kendo-label>
115
119
  </div>
116
120
  `, 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 });
117
121
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ChartWizardPropertyPaneFormFieldComponent, decorators: [{
@@ -120,10 +124,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
120
124
  selector: 'kendo-chartwizard-property-pane-form-field',
121
125
  changeDetection: ChangeDetectionStrategy.OnPush,
122
126
  template: `
123
- <kendo-label *ngIf="hasLabel && !isLabelInsideFormFieldWrap" class="k-form-label" [text]="text"></kendo-label>
127
+ <kendo-label *ngIf="hasLabel && !isLabelInsideFormFieldWrap && inputType !== 'checkbox'" class="k-form-label" [text]="text"></kendo-label>
124
128
  <div class="k-form-field-wrap">
125
129
  <kendo-label
126
- *ngIf="hasLabel && isLabelInsideFormFieldWrap"
130
+ *ngIf="hasLabel && isLabelInsideFormFieldWrap && inputType !== 'checkbox'"
127
131
  class="k-form-label"
128
132
  [text]="text"
129
133
  ></kendo-label>
@@ -182,6 +186,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
182
186
  [checkedState]="value"
183
187
  (checkedStateChange)="valueChange.emit($event)"
184
188
  ></kendo-checkbox>
189
+ <kendo-label
190
+ *ngIf="hasLabel && isLabelInsideFormFieldWrap && inputType === 'checkbox'"
191
+ class="k-checkbox-label"
192
+ [text]="text"
193
+ ></kendo-label>
185
194
  </div>
186
195
  `,
187
196
  standalone: true,