@progress/kendo-angular-chart-wizard 17.0.0-develop.21 → 17.0.0-develop.22
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/chart-wizard.component.d.ts +1 -1
- package/common/models.d.ts +1 -1
- package/{esm2020 → esm2022}/chart-wizard.component.mjs +84 -58
- package/{esm2020 → esm2022}/chart-wizard.module.mjs +13 -13
- package/{esm2020 → esm2022}/events/export-event.mjs +8 -0
- package/{esm2020 → esm2022}/events/preventable-event.mjs +1 -3
- package/{esm2020 → esm2022}/grid-integration/grid-chart-wizard.directive.mjs +26 -13
- package/{esm2020 → esm2022}/localization/chartwizard-localization.service.mjs +3 -3
- package/{esm2020 → esm2022}/localization/custom-messages.component.mjs +9 -8
- package/{esm2020 → esm2022}/localization/localized-messages.directive.mjs +9 -8
- package/esm2022/localization/messages.mjs +657 -0
- package/{esm2020 → esm2022}/package-metadata.mjs +2 -2
- package/{esm2020 → esm2022}/property-pane/chart-tab.component.mjs +19 -16
- package/{esm2020 → esm2022}/property-pane/data-tab.component.mjs +18 -12
- package/{esm2020 → esm2022}/property-pane/form-field.component.mjs +30 -13
- package/{esm2020 → esm2022}/property-pane/format-tab.component.mjs +76 -73
- package/{esm2020 → esm2022}/series-type-button.component.mjs +9 -5
- package/esm2022/state.service.mjs +36 -0
- package/{fesm2020 → fesm2022}/progress-kendo-angular-chart-wizard.mjs +756 -253
- package/grid-integration/grid-chart-wizard.directive.d.ts +1 -1
- package/localization/messages.d.ts +1 -1
- package/package.json +24 -30
- package/property-pane/form-field.component.d.ts +1 -1
- package/series-type-button.component.d.ts +1 -1
- package/esm2020/localization/messages.mjs +0 -233
- package/esm2020/state.service.mjs +0 -37
- package/fesm2015/progress-kendo-angular-chart-wizard.mjs +0 -3643
- /package/{esm2020 → esm2022}/chart-wizard-state.mjs +0 -0
- /package/{esm2020 → esm2022}/common/get-wizard-data-from-data-rows.mjs +0 -0
- /package/{esm2020 → esm2022}/common/index.mjs +0 -0
- /package/{esm2020 → esm2022}/common/models.mjs +0 -0
- /package/{esm2020 → esm2022}/common/window-settings.mjs +0 -0
- /package/{esm2020 → esm2022}/directives.mjs +0 -0
- /package/{esm2020 → esm2022}/events/index.mjs +0 -0
- /package/{esm2020 → esm2022}/grid-integration/get-grid-selected-rows.mjs +0 -0
- /package/{esm2020 → esm2022}/grid-integration/get-wizard-data-from-grid-selection.mjs +0 -0
- /package/{esm2020 → esm2022}/grid-integration/index.mjs +0 -0
- /package/{esm2020 → esm2022}/index.mjs +0 -0
- /package/{esm2020 → esm2022}/progress-kendo-angular-chart-wizard.mjs +0 -0
@@ -15,22 +15,25 @@ import * as i2 from "../localization/chartwizard-localization.service";
|
|
15
15
|
* @hidden
|
16
16
|
*/
|
17
17
|
export class ChartWizardPropertyPaneChartTabComponent {
|
18
|
+
stateService;
|
19
|
+
cdr;
|
20
|
+
localization;
|
21
|
+
exportIcon = exportIcon;
|
22
|
+
chartBarClusteredIcon = chartBarClusteredIcon;
|
23
|
+
chartBarStackedIcon = chartBarStackedIcon;
|
24
|
+
chartBarStacked100Icon = chartBarStacked100Icon;
|
25
|
+
chartPieIcon = chartPieIcon;
|
26
|
+
chartColumnClusteredIcon = chartColumnClusteredIcon;
|
27
|
+
chartColumnStackedIcon = chartColumnStackedIcon;
|
28
|
+
chartColumnStacked100Icon = chartColumnStacked100Icon;
|
29
|
+
chartLineIcon = chartLineIcon;
|
30
|
+
chartLineStackedIcon = chartLineStackedIcon;
|
31
|
+
chartLineStacked100Icon = chartLineStacked100Icon;
|
32
|
+
chartScatterIcon = chartScatterIcon;
|
18
33
|
constructor(stateService, cdr, localization) {
|
19
34
|
this.stateService = stateService;
|
20
35
|
this.cdr = cdr;
|
21
36
|
this.localization = localization;
|
22
|
-
this.exportIcon = exportIcon;
|
23
|
-
this.chartBarClusteredIcon = chartBarClusteredIcon;
|
24
|
-
this.chartBarStackedIcon = chartBarStackedIcon;
|
25
|
-
this.chartBarStacked100Icon = chartBarStacked100Icon;
|
26
|
-
this.chartPieIcon = chartPieIcon;
|
27
|
-
this.chartColumnClusteredIcon = chartColumnClusteredIcon;
|
28
|
-
this.chartColumnStackedIcon = chartColumnStackedIcon;
|
29
|
-
this.chartColumnStacked100Icon = chartColumnStacked100Icon;
|
30
|
-
this.chartLineIcon = chartLineIcon;
|
31
|
-
this.chartLineStackedIcon = chartLineStackedIcon;
|
32
|
-
this.chartLineStacked100Icon = chartLineStacked100Icon;
|
33
|
-
this.chartScatterIcon = chartScatterIcon;
|
34
37
|
}
|
35
38
|
ngAfterViewChecked() {
|
36
39
|
this.localization.changes.subscribe(() => {
|
@@ -46,9 +49,8 @@ export class ChartWizardPropertyPaneChartTabComponent {
|
|
46
49
|
messageFor(key) {
|
47
50
|
return this.localization.get(key);
|
48
51
|
}
|
49
|
-
}
|
50
|
-
|
51
|
-
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: `
|
52
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ChartWizardPropertyPaneChartTabComponent, deps: [{ token: i1.StateService }, { token: i0.ChangeDetectorRef }, { token: i2.ChartWizardLocalizationService }], target: i0.ɵɵFactoryTarget.Component });
|
53
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: ChartWizardPropertyPaneChartTabComponent, isStandalone: true, selector: "kendo-chartwizard-property-pane-chart-tab", ngImport: i0, template: `
|
52
54
|
<kendo-expansionpanel [title]="messageFor('barChart')" [expanded]="true">
|
53
55
|
<div class="k-chart-types-wrapper">
|
54
56
|
<kendo-chartwizard-series-type-button
|
@@ -147,7 +149,8 @@ ChartWizardPropertyPaneChartTabComponent.ɵcmp = i0.ɵɵngDeclareComponent({ min
|
|
147
149
|
</div>
|
148
150
|
</kendo-expansionpanel>
|
149
151
|
`, isInline: true, dependencies: [{ kind: "component", type: ExpansionPanelComponent, selector: "kendo-expansionpanel", inputs: ["title", "subtitle", "disabled", "expanded", "svgExpandIcon", "svgCollapseIcon", "expandIcon", "collapseIcon", "animation"], outputs: ["expandedChange", "action", "expand", "collapse"], exportAs: ["kendoExpansionPanel"] }, { kind: "component", type: ChartWizardSeriesTypeButtonComponent, selector: "kendo-chartwizard-series-type-button", inputs: ["title", "chartTypeIcon", "stack", "seriesType"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
150
|
-
|
152
|
+
}
|
153
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ChartWizardPropertyPaneChartTabComponent, decorators: [{
|
151
154
|
type: Component,
|
152
155
|
args: [{
|
153
156
|
selector: 'kendo-chartwizard-property-pane-chart-tab',
|
@@ -21,20 +21,23 @@ import * as i3 from "../localization/chartwizard-localization.service";
|
|
21
21
|
* @hidden
|
22
22
|
*/
|
23
23
|
export class ChartWizardPropertyPaneDataTabComponent {
|
24
|
+
stateService;
|
25
|
+
formBuilder;
|
26
|
+
cdr;
|
27
|
+
renderer;
|
28
|
+
localization;
|
29
|
+
categoryAxisX = ActionTypes.categoryAxisX;
|
30
|
+
valueAxisY = ActionTypes.valueAxisY;
|
31
|
+
trashIcon = trashIcon;
|
32
|
+
plusIcon = plusIcon;
|
33
|
+
isCategorical = isCategorical;
|
34
|
+
grid;
|
24
35
|
constructor(stateService, formBuilder, cdr, renderer, localization) {
|
25
36
|
this.stateService = stateService;
|
26
37
|
this.formBuilder = formBuilder;
|
27
38
|
this.cdr = cdr;
|
28
39
|
this.renderer = renderer;
|
29
40
|
this.localization = localization;
|
30
|
-
this.categoryAxisX = ActionTypes.categoryAxisX;
|
31
|
-
this.valueAxisY = ActionTypes.valueAxisY;
|
32
|
-
this.trashIcon = trashIcon;
|
33
|
-
this.plusIcon = plusIcon;
|
34
|
-
this.isCategorical = isCategorical;
|
35
|
-
this.formGroup = this.formBuilder.group({
|
36
|
-
name: null,
|
37
|
-
});
|
38
41
|
}
|
39
42
|
ngAfterViewInit() {
|
40
43
|
if (this.grid) {
|
@@ -47,6 +50,9 @@ export class ChartWizardPropertyPaneDataTabComponent {
|
|
47
50
|
updateState(action, value) {
|
48
51
|
this.stateService.state = updateState(this.stateService.state, action, value);
|
49
52
|
}
|
53
|
+
formGroup = this.formBuilder.group({
|
54
|
+
name: null,
|
55
|
+
});
|
50
56
|
createFormGroup(args) {
|
51
57
|
const item = args.isNew ? {} : args.dataItem;
|
52
58
|
this.formGroup = this.formBuilder.group({
|
@@ -75,9 +81,8 @@ export class ChartWizardPropertyPaneDataTabComponent {
|
|
75
81
|
messageFor(key) {
|
76
82
|
return this.localization.get(key);
|
77
83
|
}
|
78
|
-
}
|
79
|
-
|
80
|
-
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: `
|
84
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ChartWizardPropertyPaneDataTabComponent, deps: [{ token: i1.StateService }, { token: i2.FormBuilder }, { token: i0.ChangeDetectorRef }, { token: i0.Renderer2 }, { token: i3.ChartWizardLocalizationService }], target: i0.ɵɵFactoryTarget.Component });
|
85
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: ChartWizardPropertyPaneDataTabComponent, isStandalone: true, selector: "kendo-chartwizard-property-pane-data-tab", viewQueries: [{ propertyName: "grid", first: true, predicate: GridComponent, descendants: true }], ngImport: i0, template: `
|
81
86
|
<kendo-expansionpanel [title]="messageFor('configuration')" [expanded]="true">
|
82
87
|
<form class="k-form k-form-md">
|
83
88
|
<fieldset class="k-form-fieldset">
|
@@ -153,7 +158,8 @@ ChartWizardPropertyPaneDataTabComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minV
|
|
153
158
|
</form>
|
154
159
|
</kendo-expansionpanel>
|
155
160
|
`, 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", "isRowSelectable", "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]", inputs: ["arrowIcon", "toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon", "primary", "look"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }, { kind: "component", type: RowReorderColumnComponent, selector: "kendo-grid-rowreorder-column", inputs: ["dragHandleIcon", "dragHandleSVGIcon"] }, { kind: "component", type: ColumnComponent, selector: "kendo-grid-column", inputs: ["field", "format", "sortable", "groupable", "editor", "filter", "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 });
|
156
|
-
|
161
|
+
}
|
162
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ChartWizardPropertyPaneDataTabComponent, decorators: [{
|
157
163
|
type: Component,
|
158
164
|
args: [{
|
159
165
|
selector: 'kendo-chartwizard-property-pane-data-tab',
|
@@ -14,18 +14,35 @@ import * as i1 from "@progress/kendo-angular-l10n";
|
|
14
14
|
* @hidden
|
15
15
|
*/
|
16
16
|
export class ChartWizardPropertyPaneFormFieldComponent {
|
17
|
+
localization;
|
18
|
+
cdr;
|
19
|
+
currentState;
|
20
|
+
action;
|
21
|
+
class;
|
22
|
+
inputType;
|
23
|
+
text;
|
24
|
+
data;
|
25
|
+
placeholder;
|
26
|
+
colSpan = 1;
|
27
|
+
hasLabel = true;
|
28
|
+
isLabelInsideFormFieldWrap = false;
|
29
|
+
value;
|
30
|
+
disabled = false;
|
31
|
+
valueChange = new EventEmitter();
|
32
|
+
formField = true;
|
33
|
+
get isColSpan2() {
|
34
|
+
return this.colSpan === 2;
|
35
|
+
}
|
36
|
+
label;
|
37
|
+
numericTextBox;
|
38
|
+
colorPicker;
|
39
|
+
dropDownList;
|
40
|
+
textBox;
|
41
|
+
comboBox;
|
42
|
+
checkBox;
|
17
43
|
constructor(localization, cdr) {
|
18
44
|
this.localization = localization;
|
19
45
|
this.cdr = cdr;
|
20
|
-
this.colSpan = 1;
|
21
|
-
this.hasLabel = true;
|
22
|
-
this.isLabelInsideFormFieldWrap = false;
|
23
|
-
this.disabled = false;
|
24
|
-
this.valueChange = new EventEmitter();
|
25
|
-
this.formField = true;
|
26
|
-
}
|
27
|
-
get isColSpan2() {
|
28
|
-
return this.colSpan === 2;
|
29
46
|
}
|
30
47
|
ngAfterViewChecked() {
|
31
48
|
this.localization.changes.subscribe(() => {
|
@@ -46,9 +63,8 @@ export class ChartWizardPropertyPaneFormFieldComponent {
|
|
46
63
|
this.checkBox;
|
47
64
|
}
|
48
65
|
}
|
49
|
-
}
|
50
|
-
|
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: `
|
66
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ChartWizardPropertyPaneFormFieldComponent, deps: [{ token: i1.LocalizationService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
67
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", 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: `
|
52
68
|
<kendo-label *ngIf="hasLabel && !isLabelInsideFormFieldWrap && inputType !== 'checkbox'" class="k-form-label" [text]="text"></kendo-label>
|
53
69
|
<div class="k-form-field-wrap">
|
54
70
|
<kendo-label
|
@@ -118,7 +134,8 @@ ChartWizardPropertyPaneFormFieldComponent.ɵcmp = i0.ɵɵngDeclareComponent({ mi
|
|
118
134
|
></kendo-label>
|
119
135
|
</div>
|
120
136
|
`, 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 });
|
121
|
-
|
137
|
+
}
|
138
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ChartWizardPropertyPaneFormFieldComponent, decorators: [{
|
122
139
|
type: Component,
|
123
140
|
args: [{
|
124
141
|
selector: 'kendo-chartwizard-property-pane-form-field',
|
@@ -20,75 +20,73 @@ import * as i2 from "../localization/chartwizard-localization.service";
|
|
20
20
|
* @hidden
|
21
21
|
*/
|
22
22
|
export class ChartWizardPropertyPaneFormatTabComponent {
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
this.
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
this.
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
this.
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
this.
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
this.
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
];
|
91
|
-
}
|
23
|
+
stateService;
|
24
|
+
localization;
|
25
|
+
cdr;
|
26
|
+
chartTitles = [
|
27
|
+
{ text: this.messageFor('formatTitleChartTitle'), value: 'Chart Title' },
|
28
|
+
{ text: this.messageFor('formatTitleChartSubtitle'), value: 'Chart Subtitle' },
|
29
|
+
];
|
30
|
+
areaMarginLeft = ActionTypes.areaMarginLeft;
|
31
|
+
areaMarginRight = ActionTypes.areaMarginRight;
|
32
|
+
areaMarginTop = ActionTypes.areaMarginTop;
|
33
|
+
areaMarginBottom = ActionTypes.areaMarginBottom;
|
34
|
+
areaBackground = ActionTypes.areaBackground;
|
35
|
+
legendVisible = ActionTypes.legendVisible;
|
36
|
+
legendFontName = ActionTypes.legendFontName;
|
37
|
+
legendFontSize = ActionTypes.legendFontSize;
|
38
|
+
legendColor = ActionTypes.legendColor;
|
39
|
+
legendPosition = ActionTypes.legendPosition;
|
40
|
+
categoryAxisTitleText = ActionTypes.categoryAxisTitleText;
|
41
|
+
categoryAxisTitleFontName = ActionTypes.categoryAxisTitleFontName;
|
42
|
+
categoryAxisTitleFontSize = ActionTypes.categoryAxisTitleFontSize;
|
43
|
+
categoryAxisTitleColor = ActionTypes.categoryAxisTitleColor;
|
44
|
+
categoryAxisLabelsFontName = ActionTypes.categoryAxisLabelsFontName;
|
45
|
+
categoryAxisLabelsFontSize = ActionTypes.categoryAxisLabelsFontSize;
|
46
|
+
categoryAxisLabelsColor = ActionTypes.categoryAxisLabelsColor;
|
47
|
+
categoryAxisLabelsRotation = ActionTypes.categoryAxisLabelsRotation;
|
48
|
+
categoryAxisReverseOrder = ActionTypes.categoryAxisReverseOrder;
|
49
|
+
valueAxisTitleText = ActionTypes.valueAxisTitleText;
|
50
|
+
valueAxisTitleFontName = ActionTypes.valueAxisTitleFontName;
|
51
|
+
valueAxisTitleFontSize = ActionTypes.valueAxisTitleFontSize;
|
52
|
+
valueAxisTitleColor = ActionTypes.valueAxisTitleColor;
|
53
|
+
valueAxisLabelsFontName = ActionTypes.valueAxisLabelsFontName;
|
54
|
+
valueAxisLabelsFormat = ActionTypes.valueAxisLabelsFormat;
|
55
|
+
valueAxisLabelsFontSize = ActionTypes.valueAxisLabelsFontSize;
|
56
|
+
valueAxisLabelsColor = ActionTypes.valueAxisLabelsColor;
|
57
|
+
valueAxisLabelsRotation = ActionTypes.valueAxisLabelsRotation;
|
58
|
+
parseFont = parseFont;
|
59
|
+
defaultAllSeriesItem = defaultAllSeriesItem;
|
60
|
+
fontNames = fontNames;
|
61
|
+
fontSizes = fontSizes;
|
62
|
+
labelFormats = [
|
63
|
+
{ value: '', text: this.messageFor('formatValueAxisLabelsFormatText') },
|
64
|
+
{ value: 'n0', text: this.messageFor('formatValueAxisLabelsFormatNumber') },
|
65
|
+
{ value: 'c0', text: this.messageFor('formatValueAxisLabelsFormatCurrency') },
|
66
|
+
{ value: 'p0', text: this.messageFor('formatValueAxisLabelsFormatPercent') }
|
67
|
+
];
|
68
|
+
legendPositions = [
|
69
|
+
{ text: this.messageFor('formatLegendPositionTop'), value: 'top' },
|
70
|
+
{ text: this.messageFor('formatLegendPositionBottom'), value: 'bottom' },
|
71
|
+
{ text: this.messageFor('formatLegendPositionLeft'), value: 'left' },
|
72
|
+
{ text: this.messageFor('formatLegendPositionRight'), value: 'right' }
|
73
|
+
];
|
74
|
+
labelsCategoryAxisRotation = [
|
75
|
+
{ text: this.messageFor('formatCategoryAxisLabelsRotationAuto'), value: 'auto' },
|
76
|
+
{ text: '0°', value: 0 },
|
77
|
+
{ text: '45°', value: 45 },
|
78
|
+
{ text: '90°', value: 90 },
|
79
|
+
{ text: '135°', value: 135 },
|
80
|
+
{ text: '180°', value: 180 }
|
81
|
+
];
|
82
|
+
labelsValueAxisRotation = [
|
83
|
+
{ text: this.messageFor('formatValueAxisLabelsRotationAuto'), value: 'auto' },
|
84
|
+
{ text: '0°', value: 0 },
|
85
|
+
{ text: '45°', value: 45 },
|
86
|
+
{ text: '90°', value: 90 },
|
87
|
+
{ text: '135°', value: 135 },
|
88
|
+
{ text: '180°', value: 180 }
|
89
|
+
];
|
92
90
|
get chartTitleTypeText() {
|
93
91
|
return this.stateService.currentTitle === 'Chart Title'
|
94
92
|
? this.stateService.state.title?.text
|
@@ -133,6 +131,11 @@ export class ChartWizardPropertyPaneFormatTabComponent {
|
|
133
131
|
get labelFormatValue() {
|
134
132
|
return labelFormats.find(f => f.value === this.stateService.state.valueAxis[0]?.labels?.format)?.value || defaultFormat.value;
|
135
133
|
}
|
134
|
+
constructor(stateService, localization, cdr) {
|
135
|
+
this.stateService = stateService;
|
136
|
+
this.localization = localization;
|
137
|
+
this.cdr = cdr;
|
138
|
+
}
|
136
139
|
ngAfterViewChecked() {
|
137
140
|
this.localization.changes.subscribe(() => {
|
138
141
|
this.cdr.detectChanges();
|
@@ -172,9 +175,8 @@ export class ChartWizardPropertyPaneFormatTabComponent {
|
|
172
175
|
messageFor(key) {
|
173
176
|
return this.localization.get(key);
|
174
177
|
}
|
175
|
-
}
|
176
|
-
|
177
|
-
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: `
|
178
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ChartWizardPropertyPaneFormatTabComponent, deps: [{ token: i1.StateService }, { token: i2.ChartWizardLocalizationService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
179
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: ChartWizardPropertyPaneFormatTabComponent, isStandalone: true, selector: "kendo-chartwizard-property-pane-format-tab", ngImport: i0, template: `
|
178
180
|
<section>
|
179
181
|
<kendo-expansionpanel
|
180
182
|
[style.max-width.px]="576"
|
@@ -587,7 +589,8 @@ ChartWizardPropertyPaneFormatTabComponent.ɵcmp = i0.ɵɵngDeclareComponent({ mi
|
|
587
589
|
</kendo-expansionpanel>
|
588
590
|
</section>
|
589
591
|
`, 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 });
|
590
|
-
|
592
|
+
}
|
593
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ChartWizardPropertyPaneFormatTabComponent, decorators: [{
|
591
594
|
type: Component,
|
592
595
|
args: [{
|
593
596
|
selector: 'kendo-chartwizard-property-pane-format-tab',
|
@@ -12,9 +12,13 @@ import * as i1 from "./state.service";
|
|
12
12
|
* @hidden
|
13
13
|
*/
|
14
14
|
export class ChartWizardSeriesTypeButtonComponent {
|
15
|
+
stateService;
|
16
|
+
title;
|
17
|
+
chartTypeIcon;
|
18
|
+
stack = false;
|
19
|
+
seriesType;
|
15
20
|
constructor(stateService) {
|
16
21
|
this.stateService = stateService;
|
17
|
-
this.stack = false;
|
18
22
|
}
|
19
23
|
onSelect() {
|
20
24
|
this.stateService.seriesType = this.seriesType;
|
@@ -31,9 +35,8 @@ export class ChartWizardSeriesTypeButtonComponent {
|
|
31
35
|
return (this.stateService.state.seriesType === this.seriesType &&
|
32
36
|
this.stateService.state.series[0]?.stack === this.stack);
|
33
37
|
}
|
34
|
-
}
|
35
|
-
|
36
|
-
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: `
|
38
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ChartWizardSeriesTypeButtonComponent, deps: [{ token: i1.StateService }], target: i0.ɵɵFactoryTarget.Component });
|
39
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: ChartWizardSeriesTypeButtonComponent, isStandalone: true, selector: "kendo-chartwizard-series-type-button", inputs: { title: "title", chartTypeIcon: "chartTypeIcon", stack: "stack", seriesType: "seriesType" }, ngImport: i0, template: `
|
37
40
|
<div class="k-icon-text-wrapper" [class.k-selected]="isSelected()" (click)="onSelect()">
|
38
41
|
<div class="k-icon-background-area">
|
39
42
|
<kendo-svgicon [icon]="chartTypeIcon" size="xlarge" themeColor="primary"> </kendo-svgicon>
|
@@ -41,7 +44,8 @@ ChartWizardSeriesTypeButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVers
|
|
41
44
|
{{ title }}
|
42
45
|
</div>
|
43
46
|
`, isInline: true, dependencies: [{ kind: "component", type: SVGIconComponent, selector: "kendo-svg-icon, kendo-svgicon", inputs: ["icon"], exportAs: ["kendoSVGIcon"] }] });
|
44
|
-
|
47
|
+
}
|
48
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ChartWizardSeriesTypeButtonComponent, decorators: [{
|
45
49
|
type: Component,
|
46
50
|
args: [{
|
47
51
|
selector: 'kendo-chartwizard-series-type-button',
|
@@ -0,0 +1,36 @@
|
|
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 { Injectable } from "@angular/core";
|
6
|
+
import { defaultAllSeriesItem } from "./common/models";
|
7
|
+
import * as i0 from "@angular/core";
|
8
|
+
/**
|
9
|
+
* @hidden
|
10
|
+
*/
|
11
|
+
export class StateService {
|
12
|
+
state = {
|
13
|
+
categoryAxis: [],
|
14
|
+
valueAxis: [],
|
15
|
+
series: [],
|
16
|
+
initialSeries: [],
|
17
|
+
columns: [],
|
18
|
+
data: [],
|
19
|
+
area: { margin: { top: 0, right: 0, bottom: 0, left: 0 } },
|
20
|
+
seriesType: 'bar'
|
21
|
+
};
|
22
|
+
seriesType = 'bar';
|
23
|
+
currentTitle = 'Chart Title';
|
24
|
+
currentSeries = defaultAllSeriesItem;
|
25
|
+
data = [];
|
26
|
+
deletedSeries = [];
|
27
|
+
direction = 'ltr';
|
28
|
+
windowSize = { width: 700, height: 550 };
|
29
|
+
splitterPaneSize = '300px';
|
30
|
+
dataTab;
|
31
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: StateService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
32
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: StateService });
|
33
|
+
}
|
34
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: StateService, decorators: [{
|
35
|
+
type: Injectable
|
36
|
+
}] });
|