@progress/kendo-angular-chart-wizard 16.6.0-develop.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.md +11 -0
- package/NOTICE.txt +200 -0
- package/README.md +32 -0
- package/chart-wizard-state.d.ts +149 -0
- package/chart-wizard.component.d.ts +80 -0
- package/chart-wizard.module.d.ts +19 -0
- package/common/get-wizard-data-from-data-rows.d.ts +41 -0
- package/common/index.d.ts +5 -0
- package/common/models.d.ts +19 -0
- package/directives.d.ts +10 -0
- package/esm2020/chart-wizard-state.mjs +502 -0
- package/esm2020/chart-wizard.component.mjs +552 -0
- package/esm2020/chart-wizard.module.mjs +53 -0
- package/esm2020/common/get-wizard-data-from-data-rows.mjs +27 -0
- package/esm2020/common/index.mjs +5 -0
- package/esm2020/common/models.mjs +5 -0
- package/esm2020/directives.mjs +13 -0
- package/esm2020/events/export-event.mjs +18 -0
- package/esm2020/events/index.mjs +5 -0
- package/esm2020/events/preventable-event.mjs +30 -0
- package/esm2020/grid-integration/get-grid-selected-rows.mjs +48 -0
- package/esm2020/grid-integration/get-wizard-data-from-grid-selection.mjs +13 -0
- package/esm2020/grid-integration/grid-chart-wizard.directive.mjs +74 -0
- package/esm2020/grid-integration/index.mjs +7 -0
- package/esm2020/index.mjs +11 -0
- package/esm2020/package-metadata.mjs +15 -0
- package/esm2020/progress-kendo-angular-chart-wizard.mjs +8 -0
- package/esm2020/property-pane/chart-tab.component.mjs +257 -0
- package/esm2020/property-pane/data-tab.component.mjs +229 -0
- package/esm2020/property-pane/form-field.component.mjs +245 -0
- package/esm2020/property-pane/format-tab.component.mjs +945 -0
- package/esm2020/series-type-button.component.mjs +67 -0
- package/esm2020/state.service.mjs +32 -0
- package/events/export-event.d.ts +24 -0
- package/events/index.d.ts +5 -0
- package/events/preventable-event.d.ts +24 -0
- package/fesm2015/progress-kendo-angular-chart-wizard.mjs +2999 -0
- package/fesm2020/progress-kendo-angular-chart-wizard.mjs +2993 -0
- package/grid-integration/get-grid-selected-rows.d.ts +20 -0
- package/grid-integration/get-wizard-data-from-grid-selection.d.ts +19 -0
- package/grid-integration/grid-chart-wizard.directive.d.ts +42 -0
- package/grid-integration/index.d.ts +7 -0
- package/index.d.ts +12 -0
- package/package-metadata.d.ts +9 -0
- package/package.json +65 -0
- package/property-pane/chart-tab.component.d.ts +35 -0
- package/property-pane/data-tab.component.d.ts +33 -0
- package/property-pane/form-field.component.d.ts +45 -0
- package/property-pane/format-tab.component.d.ts +102 -0
- package/schematics/collection.json +12 -0
- package/schematics/ngAdd/index.js +8 -0
- package/schematics/ngAdd/schema.json +24 -0
- package/series-type-button.component.d.ts +24 -0
- package/state.service.d.ts +23 -0
@@ -0,0 +1,229 @@
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
2
|
+
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
5
|
+
import { ChangeDetectionStrategy, Component } from '@angular/core';
|
6
|
+
import { StateService } from '../state.service';
|
7
|
+
import { ActionTypes, isCategorical, updateState } from '../chart-wizard-state';
|
8
|
+
import { FormBuilder } from '@angular/forms';
|
9
|
+
import { CellTemplateDirective, ColumnComponent, CommandColumnComponent, DataBindingDirective, GridComponent, GridToolbarFocusableDirective, ReactiveEditingDirective, RemoveCommandDirective, RowReorderColumnComponent, ToolbarTemplateDirective } from '@progress/kendo-angular-grid';
|
10
|
+
import { plusIcon, trashIcon } from '@progress/kendo-svg-icons';
|
11
|
+
import { NgIf } from '@angular/common';
|
12
|
+
import { ExpansionPanelComponent } from '@progress/kendo-angular-layout';
|
13
|
+
import { DropDownListComponent, ValueTemplateDirective } from '@progress/kendo-angular-dropdowns';
|
14
|
+
import { ButtonComponent, FocusableDirective } from '@progress/kendo-angular-buttons';
|
15
|
+
import * as i0 from "@angular/core";
|
16
|
+
import * as i1 from "../state.service";
|
17
|
+
import * as i2 from "@angular/forms";
|
18
|
+
/**
|
19
|
+
* @hidden
|
20
|
+
*/
|
21
|
+
export class ChartWizardPropertyPaneFormatTabComponent {
|
22
|
+
constructor(stateService, formBuilder) {
|
23
|
+
this.stateService = stateService;
|
24
|
+
this.formBuilder = formBuilder;
|
25
|
+
this.categoryAxisX = ActionTypes.categoryAxisX;
|
26
|
+
this.valueAxisY = ActionTypes.valueAxisY;
|
27
|
+
this.seriesChange = ActionTypes.seriesChange;
|
28
|
+
this.trashIcon = trashIcon;
|
29
|
+
this.plusIcon = plusIcon;
|
30
|
+
this.isCategorical = isCategorical;
|
31
|
+
this.formGroup = this.formBuilder.group({
|
32
|
+
name: null,
|
33
|
+
});
|
34
|
+
}
|
35
|
+
updateState(action, value) {
|
36
|
+
this.stateService.state = updateState(this.stateService.state, action, value);
|
37
|
+
}
|
38
|
+
createFormGroup(args) {
|
39
|
+
const item = args.isNew ? {} : args.dataItem;
|
40
|
+
this.formGroup = this.formBuilder.group({
|
41
|
+
name: item.name,
|
42
|
+
});
|
43
|
+
return this.formGroup;
|
44
|
+
}
|
45
|
+
addData() {
|
46
|
+
this.stateService.state.series.push(this.stateService.deletedSeries[0]);
|
47
|
+
this.stateService.deletedSeries.shift();
|
48
|
+
this.updateState(this.seriesChange, this.stateService.state.series);
|
49
|
+
}
|
50
|
+
removeData(event) {
|
51
|
+
this.stateService.deletedSeries.push(event.dataItem);
|
52
|
+
this.updateState(this.seriesChange, event.sender.data.data);
|
53
|
+
}
|
54
|
+
onRowReorder(grid) {
|
55
|
+
this.updateState(this.seriesChange, grid.data.data);
|
56
|
+
}
|
57
|
+
isDisabled(grid) {
|
58
|
+
return grid.data.data.length === this.stateService.state.initialSeries.length;
|
59
|
+
}
|
60
|
+
}
|
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-chart-wizard-property-pane-data-tab", ngImport: i0, template: `
|
63
|
+
<kendo-expansionpanel title="Configuration" [expanded]="true">
|
64
|
+
<form class="k-form k-form-md">
|
65
|
+
<fieldset class="k-form-fieldset">
|
66
|
+
<legend class="k-form-legend">
|
67
|
+
{{ stateService.seriesType === 'scatter' ? 'X Axis' : 'Category Axis' }}
|
68
|
+
</legend>
|
69
|
+
<kendo-dropdownlist
|
70
|
+
[data]="stateService.state.columns"
|
71
|
+
[value]="stateService.state.categoryField"
|
72
|
+
(valueChange)="updateState(categoryAxisX, $event)"
|
73
|
+
>
|
74
|
+
<ng-template kendoDropDownListValueTemplate> Current Item </ng-template>
|
75
|
+
</kendo-dropdownlist>
|
76
|
+
</fieldset>
|
77
|
+
<fieldset class="k-form-fieldset" *ngIf="isCategorical(stateService.seriesType)">
|
78
|
+
<legend class="k-form-legend">Series</legend>
|
79
|
+
<kendo-grid
|
80
|
+
#grid
|
81
|
+
[kendoGridReactiveEditing]="createFormGroup"
|
82
|
+
[kendoGridBinding]="stateService.state.series"
|
83
|
+
[rowReorderable]="true"
|
84
|
+
(rowReorder)="onRowReorder(grid)"
|
85
|
+
(remove)="removeData($event)"
|
86
|
+
>
|
87
|
+
<ng-template kendoGridToolbarTemplate>
|
88
|
+
<button
|
89
|
+
kendoButton
|
90
|
+
type="button"
|
91
|
+
[svgIcon]="plusIcon"
|
92
|
+
fillMode="flat"
|
93
|
+
rounded="medium"
|
94
|
+
[disabled]="isDisabled(grid)"
|
95
|
+
(click)="addData()"
|
96
|
+
>
|
97
|
+
ADD
|
98
|
+
</button>
|
99
|
+
</ng-template>
|
100
|
+
<kendo-grid-rowreorder-column [width]="40"></kendo-grid-rowreorder-column>
|
101
|
+
<kendo-grid-column field="name" title="Name"></kendo-grid-column>
|
102
|
+
<kendo-grid-command-column [width]="40">
|
103
|
+
<ng-template kendoGridCellTemplate>
|
104
|
+
<button
|
105
|
+
[svgIcon]="trashIcon"
|
106
|
+
kendoGridRemoveCommand
|
107
|
+
fillMode="flat"
|
108
|
+
rounded="medium"
|
109
|
+
[disabled]="stateService.state.series.length < 2"
|
110
|
+
></button>
|
111
|
+
</ng-template>
|
112
|
+
</kendo-grid-command-column>
|
113
|
+
</kendo-grid>
|
114
|
+
</fieldset>
|
115
|
+
<fieldset
|
116
|
+
class="k-form-fieldset"
|
117
|
+
*ngIf="stateService.seriesType === 'pie' || stateService.seriesType === 'scatter'"
|
118
|
+
>
|
119
|
+
<legend class="k-form-legend">
|
120
|
+
{{ stateService.seriesType === 'scatter' ? 'Y Axis' : 'Value Axis' }}
|
121
|
+
</legend>
|
122
|
+
<kendo-dropdownlist
|
123
|
+
[data]="stateService.state.columns"
|
124
|
+
[value]="stateService.state.yField"
|
125
|
+
(valueChange)="updateState(valueAxisY, $event)"
|
126
|
+
>
|
127
|
+
<ng-template kendoDropDownListValueTemplate> Current Item </ng-template>
|
128
|
+
</kendo-dropdownlist>
|
129
|
+
</fieldset>
|
130
|
+
</form>
|
131
|
+
</kendo-expansionpanel>
|
132
|
+
`, 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: ValueTemplateDirective, selector: "[kendoDropDownListValueTemplate],[kendoDropDownTreeValueTemplate]" }, { 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 });
|
133
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ChartWizardPropertyPaneFormatTabComponent, decorators: [{
|
134
|
+
type: Component,
|
135
|
+
args: [{
|
136
|
+
selector: 'kendo-chart-wizard-property-pane-data-tab',
|
137
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
138
|
+
template: `
|
139
|
+
<kendo-expansionpanel title="Configuration" [expanded]="true">
|
140
|
+
<form class="k-form k-form-md">
|
141
|
+
<fieldset class="k-form-fieldset">
|
142
|
+
<legend class="k-form-legend">
|
143
|
+
{{ stateService.seriesType === 'scatter' ? 'X Axis' : 'Category Axis' }}
|
144
|
+
</legend>
|
145
|
+
<kendo-dropdownlist
|
146
|
+
[data]="stateService.state.columns"
|
147
|
+
[value]="stateService.state.categoryField"
|
148
|
+
(valueChange)="updateState(categoryAxisX, $event)"
|
149
|
+
>
|
150
|
+
<ng-template kendoDropDownListValueTemplate> Current Item </ng-template>
|
151
|
+
</kendo-dropdownlist>
|
152
|
+
</fieldset>
|
153
|
+
<fieldset class="k-form-fieldset" *ngIf="isCategorical(stateService.seriesType)">
|
154
|
+
<legend class="k-form-legend">Series</legend>
|
155
|
+
<kendo-grid
|
156
|
+
#grid
|
157
|
+
[kendoGridReactiveEditing]="createFormGroup"
|
158
|
+
[kendoGridBinding]="stateService.state.series"
|
159
|
+
[rowReorderable]="true"
|
160
|
+
(rowReorder)="onRowReorder(grid)"
|
161
|
+
(remove)="removeData($event)"
|
162
|
+
>
|
163
|
+
<ng-template kendoGridToolbarTemplate>
|
164
|
+
<button
|
165
|
+
kendoButton
|
166
|
+
type="button"
|
167
|
+
[svgIcon]="plusIcon"
|
168
|
+
fillMode="flat"
|
169
|
+
rounded="medium"
|
170
|
+
[disabled]="isDisabled(grid)"
|
171
|
+
(click)="addData()"
|
172
|
+
>
|
173
|
+
ADD
|
174
|
+
</button>
|
175
|
+
</ng-template>
|
176
|
+
<kendo-grid-rowreorder-column [width]="40"></kendo-grid-rowreorder-column>
|
177
|
+
<kendo-grid-column field="name" title="Name"></kendo-grid-column>
|
178
|
+
<kendo-grid-command-column [width]="40">
|
179
|
+
<ng-template kendoGridCellTemplate>
|
180
|
+
<button
|
181
|
+
[svgIcon]="trashIcon"
|
182
|
+
kendoGridRemoveCommand
|
183
|
+
fillMode="flat"
|
184
|
+
rounded="medium"
|
185
|
+
[disabled]="stateService.state.series.length < 2"
|
186
|
+
></button>
|
187
|
+
</ng-template>
|
188
|
+
</kendo-grid-command-column>
|
189
|
+
</kendo-grid>
|
190
|
+
</fieldset>
|
191
|
+
<fieldset
|
192
|
+
class="k-form-fieldset"
|
193
|
+
*ngIf="stateService.seriesType === 'pie' || stateService.seriesType === 'scatter'"
|
194
|
+
>
|
195
|
+
<legend class="k-form-legend">
|
196
|
+
{{ stateService.seriesType === 'scatter' ? 'Y Axis' : 'Value Axis' }}
|
197
|
+
</legend>
|
198
|
+
<kendo-dropdownlist
|
199
|
+
[data]="stateService.state.columns"
|
200
|
+
[value]="stateService.state.yField"
|
201
|
+
(valueChange)="updateState(valueAxisY, $event)"
|
202
|
+
>
|
203
|
+
<ng-template kendoDropDownListValueTemplate> Current Item </ng-template>
|
204
|
+
</kendo-dropdownlist>
|
205
|
+
</fieldset>
|
206
|
+
</form>
|
207
|
+
</kendo-expansionpanel>
|
208
|
+
`,
|
209
|
+
standalone: true,
|
210
|
+
imports: [
|
211
|
+
ExpansionPanelComponent,
|
212
|
+
DropDownListComponent,
|
213
|
+
ValueTemplateDirective,
|
214
|
+
NgIf,
|
215
|
+
GridComponent,
|
216
|
+
ReactiveEditingDirective,
|
217
|
+
DataBindingDirective,
|
218
|
+
ToolbarTemplateDirective,
|
219
|
+
ButtonComponent,
|
220
|
+
RowReorderColumnComponent,
|
221
|
+
ColumnComponent,
|
222
|
+
CommandColumnComponent,
|
223
|
+
CellTemplateDirective,
|
224
|
+
GridToolbarFocusableDirective,
|
225
|
+
FocusableDirective,
|
226
|
+
RemoveCommandDirective
|
227
|
+
]
|
228
|
+
}]
|
229
|
+
}], ctorParameters: function () { return [{ type: i1.StateService }, { type: i2.FormBuilder }]; } });
|
@@ -0,0 +1,245 @@
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
2
|
+
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
5
|
+
import { Component, HostBinding, Input, Output, ViewChild, EventEmitter, ChangeDetectionStrategy, ChangeDetectorRef } from '@angular/core';
|
6
|
+
import { ComboBoxComponent, DropDownListComponent } from '@progress/kendo-angular-dropdowns';
|
7
|
+
import { CheckBoxComponent, ColorPickerComponent, NumericTextBoxComponent, TextBoxComponent } from '@progress/kendo-angular-inputs';
|
8
|
+
import { LabelComponent } from '@progress/kendo-angular-label';
|
9
|
+
import { ActionTypes } from '../chart-wizard-state';
|
10
|
+
import { NgIf } from '@angular/common';
|
11
|
+
import { LocalizationService } from '@progress/kendo-angular-l10n';
|
12
|
+
import * as i0 from "@angular/core";
|
13
|
+
import * as i1 from "@progress/kendo-angular-l10n";
|
14
|
+
/**
|
15
|
+
* @hidden
|
16
|
+
*/
|
17
|
+
export class ChartWizardPropertyPaneFormFieldComponent {
|
18
|
+
constructor(localization, cdr) {
|
19
|
+
this.localization = localization;
|
20
|
+
this.cdr = cdr;
|
21
|
+
this.colSpan = 1;
|
22
|
+
this.hasLabel = true;
|
23
|
+
this.isLabelInsideFormFieldWrap = false;
|
24
|
+
this.valueChange = new EventEmitter();
|
25
|
+
this.formField = true;
|
26
|
+
}
|
27
|
+
get isColSpan2() {
|
28
|
+
return this.colSpan === 2;
|
29
|
+
}
|
30
|
+
ngAfterViewChecked() {
|
31
|
+
this.localization.changes.subscribe(() => {
|
32
|
+
this.cdr.detectChanges();
|
33
|
+
});
|
34
|
+
}
|
35
|
+
ngOnDestroy() {
|
36
|
+
this.localization.changes.unsubscribe();
|
37
|
+
}
|
38
|
+
ngAfterViewInit() {
|
39
|
+
if (this.hasLabel) {
|
40
|
+
this.label.for =
|
41
|
+
this.numericTextBox ||
|
42
|
+
this.colorPicker ||
|
43
|
+
this.dropDownList ||
|
44
|
+
this.textBox ||
|
45
|
+
this.comboBox ||
|
46
|
+
this.checkBox;
|
47
|
+
}
|
48
|
+
}
|
49
|
+
}
|
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 });
|
51
|
+
ChartWizardPropertyPaneFormFieldComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: ChartWizardPropertyPaneFormFieldComponent, isStandalone: true, selector: "kendo-chart-wizard-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" }, 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: `
|
52
|
+
<kendo-label *ngIf="hasLabel && !isLabelInsideFormFieldWrap" class="k-form-label" [text]="text"></kendo-label>
|
53
|
+
<div class="k-form-field-wrap">
|
54
|
+
<kendo-label
|
55
|
+
*ngIf="hasLabel && isLabelInsideFormFieldWrap"
|
56
|
+
class="k-form-label"
|
57
|
+
[text]="text"
|
58
|
+
></kendo-label>
|
59
|
+
<kendo-numerictextbox
|
60
|
+
*ngIf="inputType === 'numeric'"
|
61
|
+
fillMode="outline"
|
62
|
+
rounded="medium"
|
63
|
+
[value]="value"
|
64
|
+
(valueChange)="valueChange.emit($event)"
|
65
|
+
></kendo-numerictextbox>
|
66
|
+
<kendo-colorpicker
|
67
|
+
*ngIf="inputType === 'colorPicker'"
|
68
|
+
fillMode="outline"
|
69
|
+
rounded="medium"
|
70
|
+
[value]="value"
|
71
|
+
(valueChange)="valueChange.emit($event)"
|
72
|
+
></kendo-colorpicker>
|
73
|
+
<kendo-dropdownlist
|
74
|
+
*ngIf="inputType === 'dropDownList'"
|
75
|
+
[data]="data"
|
76
|
+
textField="text"
|
77
|
+
valueField="value"
|
78
|
+
[valuePrimitive]="true"
|
79
|
+
fillMode="outline"
|
80
|
+
rounded="medium"
|
81
|
+
size="medium"
|
82
|
+
[value]="value"
|
83
|
+
(valueChange)="valueChange.emit($event)"
|
84
|
+
></kendo-dropdownlist>
|
85
|
+
<kendo-combobox
|
86
|
+
*ngIf="inputType === 'comboBox'"
|
87
|
+
[data]="data"
|
88
|
+
[value]="value"
|
89
|
+
textField="text"
|
90
|
+
valueField="value"
|
91
|
+
[valuePrimitive]="true"
|
92
|
+
fillMode="outline"
|
93
|
+
rounded="medium"
|
94
|
+
size="medium"
|
95
|
+
[placeholder]="placeholder"
|
96
|
+
(valueChange)="valueChange.emit($event)"
|
97
|
+
></kendo-combobox>
|
98
|
+
<kendo-textbox
|
99
|
+
*ngIf="inputType === 'text'"
|
100
|
+
fillMode="outline"
|
101
|
+
rounded="medium"
|
102
|
+
[placeholder]="placeholder"
|
103
|
+
[value]="value"
|
104
|
+
(valueChange)="valueChange.emit($event)"
|
105
|
+
></kendo-textbox>
|
106
|
+
<kendo-checkbox
|
107
|
+
*ngIf="inputType === 'checkbox'"
|
108
|
+
class="k-checkbox-md k-rounded-md"
|
109
|
+
[checkedState]="value"
|
110
|
+
(checkedStateChange)="valueChange.emit($event)"
|
111
|
+
></kendo-checkbox>
|
112
|
+
</div>
|
113
|
+
`, 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 });
|
114
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ChartWizardPropertyPaneFormFieldComponent, decorators: [{
|
115
|
+
type: Component,
|
116
|
+
args: [{
|
117
|
+
selector: 'kendo-chart-wizard-property-pane-form-field',
|
118
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
119
|
+
template: `
|
120
|
+
<kendo-label *ngIf="hasLabel && !isLabelInsideFormFieldWrap" class="k-form-label" [text]="text"></kendo-label>
|
121
|
+
<div class="k-form-field-wrap">
|
122
|
+
<kendo-label
|
123
|
+
*ngIf="hasLabel && isLabelInsideFormFieldWrap"
|
124
|
+
class="k-form-label"
|
125
|
+
[text]="text"
|
126
|
+
></kendo-label>
|
127
|
+
<kendo-numerictextbox
|
128
|
+
*ngIf="inputType === 'numeric'"
|
129
|
+
fillMode="outline"
|
130
|
+
rounded="medium"
|
131
|
+
[value]="value"
|
132
|
+
(valueChange)="valueChange.emit($event)"
|
133
|
+
></kendo-numerictextbox>
|
134
|
+
<kendo-colorpicker
|
135
|
+
*ngIf="inputType === 'colorPicker'"
|
136
|
+
fillMode="outline"
|
137
|
+
rounded="medium"
|
138
|
+
[value]="value"
|
139
|
+
(valueChange)="valueChange.emit($event)"
|
140
|
+
></kendo-colorpicker>
|
141
|
+
<kendo-dropdownlist
|
142
|
+
*ngIf="inputType === 'dropDownList'"
|
143
|
+
[data]="data"
|
144
|
+
textField="text"
|
145
|
+
valueField="value"
|
146
|
+
[valuePrimitive]="true"
|
147
|
+
fillMode="outline"
|
148
|
+
rounded="medium"
|
149
|
+
size="medium"
|
150
|
+
[value]="value"
|
151
|
+
(valueChange)="valueChange.emit($event)"
|
152
|
+
></kendo-dropdownlist>
|
153
|
+
<kendo-combobox
|
154
|
+
*ngIf="inputType === 'comboBox'"
|
155
|
+
[data]="data"
|
156
|
+
[value]="value"
|
157
|
+
textField="text"
|
158
|
+
valueField="value"
|
159
|
+
[valuePrimitive]="true"
|
160
|
+
fillMode="outline"
|
161
|
+
rounded="medium"
|
162
|
+
size="medium"
|
163
|
+
[placeholder]="placeholder"
|
164
|
+
(valueChange)="valueChange.emit($event)"
|
165
|
+
></kendo-combobox>
|
166
|
+
<kendo-textbox
|
167
|
+
*ngIf="inputType === 'text'"
|
168
|
+
fillMode="outline"
|
169
|
+
rounded="medium"
|
170
|
+
[placeholder]="placeholder"
|
171
|
+
[value]="value"
|
172
|
+
(valueChange)="valueChange.emit($event)"
|
173
|
+
></kendo-textbox>
|
174
|
+
<kendo-checkbox
|
175
|
+
*ngIf="inputType === 'checkbox'"
|
176
|
+
class="k-checkbox-md k-rounded-md"
|
177
|
+
[checkedState]="value"
|
178
|
+
(checkedStateChange)="valueChange.emit($event)"
|
179
|
+
></kendo-checkbox>
|
180
|
+
</div>
|
181
|
+
`,
|
182
|
+
standalone: true,
|
183
|
+
imports: [
|
184
|
+
NgIf,
|
185
|
+
LabelComponent,
|
186
|
+
NumericTextBoxComponent,
|
187
|
+
ColorPickerComponent,
|
188
|
+
DropDownListComponent,
|
189
|
+
ComboBoxComponent,
|
190
|
+
TextBoxComponent,
|
191
|
+
CheckBoxComponent
|
192
|
+
]
|
193
|
+
}]
|
194
|
+
}], ctorParameters: function () { return [{ type: i1.LocalizationService }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { currentState: [{
|
195
|
+
type: Input
|
196
|
+
}], action: [{
|
197
|
+
type: Input
|
198
|
+
}], class: [{
|
199
|
+
type: Input
|
200
|
+
}], inputType: [{
|
201
|
+
type: Input
|
202
|
+
}], text: [{
|
203
|
+
type: Input
|
204
|
+
}], data: [{
|
205
|
+
type: Input
|
206
|
+
}], placeholder: [{
|
207
|
+
type: Input
|
208
|
+
}], colSpan: [{
|
209
|
+
type: Input
|
210
|
+
}], hasLabel: [{
|
211
|
+
type: Input
|
212
|
+
}], isLabelInsideFormFieldWrap: [{
|
213
|
+
type: Input
|
214
|
+
}], value: [{
|
215
|
+
type: Input
|
216
|
+
}], valueChange: [{
|
217
|
+
type: Output
|
218
|
+
}], formField: [{
|
219
|
+
type: HostBinding,
|
220
|
+
args: ['class.k-form-field']
|
221
|
+
}], isColSpan2: [{
|
222
|
+
type: HostBinding,
|
223
|
+
args: ['class.k-col-span-2']
|
224
|
+
}], label: [{
|
225
|
+
type: ViewChild,
|
226
|
+
args: [LabelComponent]
|
227
|
+
}], numericTextBox: [{
|
228
|
+
type: ViewChild,
|
229
|
+
args: [NumericTextBoxComponent]
|
230
|
+
}], colorPicker: [{
|
231
|
+
type: ViewChild,
|
232
|
+
args: [ColorPickerComponent]
|
233
|
+
}], dropDownList: [{
|
234
|
+
type: ViewChild,
|
235
|
+
args: [DropDownListComponent]
|
236
|
+
}], textBox: [{
|
237
|
+
type: ViewChild,
|
238
|
+
args: [TextBoxComponent]
|
239
|
+
}], comboBox: [{
|
240
|
+
type: ViewChild,
|
241
|
+
args: [ComboBoxComponent]
|
242
|
+
}], checkBox: [{
|
243
|
+
type: ViewChild,
|
244
|
+
args: [CheckBoxComponent]
|
245
|
+
}] } });
|