@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.
Files changed (54) hide show
  1. package/LICENSE.md +11 -0
  2. package/NOTICE.txt +200 -0
  3. package/README.md +32 -0
  4. package/chart-wizard-state.d.ts +149 -0
  5. package/chart-wizard.component.d.ts +80 -0
  6. package/chart-wizard.module.d.ts +19 -0
  7. package/common/get-wizard-data-from-data-rows.d.ts +41 -0
  8. package/common/index.d.ts +5 -0
  9. package/common/models.d.ts +19 -0
  10. package/directives.d.ts +10 -0
  11. package/esm2020/chart-wizard-state.mjs +502 -0
  12. package/esm2020/chart-wizard.component.mjs +552 -0
  13. package/esm2020/chart-wizard.module.mjs +53 -0
  14. package/esm2020/common/get-wizard-data-from-data-rows.mjs +27 -0
  15. package/esm2020/common/index.mjs +5 -0
  16. package/esm2020/common/models.mjs +5 -0
  17. package/esm2020/directives.mjs +13 -0
  18. package/esm2020/events/export-event.mjs +18 -0
  19. package/esm2020/events/index.mjs +5 -0
  20. package/esm2020/events/preventable-event.mjs +30 -0
  21. package/esm2020/grid-integration/get-grid-selected-rows.mjs +48 -0
  22. package/esm2020/grid-integration/get-wizard-data-from-grid-selection.mjs +13 -0
  23. package/esm2020/grid-integration/grid-chart-wizard.directive.mjs +74 -0
  24. package/esm2020/grid-integration/index.mjs +7 -0
  25. package/esm2020/index.mjs +11 -0
  26. package/esm2020/package-metadata.mjs +15 -0
  27. package/esm2020/progress-kendo-angular-chart-wizard.mjs +8 -0
  28. package/esm2020/property-pane/chart-tab.component.mjs +257 -0
  29. package/esm2020/property-pane/data-tab.component.mjs +229 -0
  30. package/esm2020/property-pane/form-field.component.mjs +245 -0
  31. package/esm2020/property-pane/format-tab.component.mjs +945 -0
  32. package/esm2020/series-type-button.component.mjs +67 -0
  33. package/esm2020/state.service.mjs +32 -0
  34. package/events/export-event.d.ts +24 -0
  35. package/events/index.d.ts +5 -0
  36. package/events/preventable-event.d.ts +24 -0
  37. package/fesm2015/progress-kendo-angular-chart-wizard.mjs +2999 -0
  38. package/fesm2020/progress-kendo-angular-chart-wizard.mjs +2993 -0
  39. package/grid-integration/get-grid-selected-rows.d.ts +20 -0
  40. package/grid-integration/get-wizard-data-from-grid-selection.d.ts +19 -0
  41. package/grid-integration/grid-chart-wizard.directive.d.ts +42 -0
  42. package/grid-integration/index.d.ts +7 -0
  43. package/index.d.ts +12 -0
  44. package/package-metadata.d.ts +9 -0
  45. package/package.json +65 -0
  46. package/property-pane/chart-tab.component.d.ts +35 -0
  47. package/property-pane/data-tab.component.d.ts +33 -0
  48. package/property-pane/form-field.component.d.ts +45 -0
  49. package/property-pane/format-tab.component.d.ts +102 -0
  50. package/schematics/collection.json +12 -0
  51. package/schematics/ngAdd/index.js +8 -0
  52. package/schematics/ngAdd/schema.json +24 -0
  53. package/series-type-button.component.d.ts +24 -0
  54. package/state.service.d.ts +23 -0
@@ -0,0 +1,67 @@
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, Input } from "@angular/core";
6
+ import { StateService } from "./state.service";
7
+ import { ActionTypes, createState, mergeStates, updateState } from "./chart-wizard-state";
8
+ import { SVGIconComponent } from "@progress/kendo-angular-icons";
9
+ import * as i0 from "@angular/core";
10
+ import * as i1 from "./state.service";
11
+ /**
12
+ * @hidden
13
+ */
14
+ export class ChartWizardSeriesTypeButtonComponent {
15
+ constructor(stateService) {
16
+ this.stateService = stateService;
17
+ this.stack = false;
18
+ }
19
+ onSelect() {
20
+ this.stateService.seriesType = this.seriesType;
21
+ this.stateService.state = mergeStates(this.stateService.state, createState(this.stateService.data, this.stateService.seriesType));
22
+ this.stateService.currentSeries = {};
23
+ if (this.stack) {
24
+ this.stateService.state = updateState(this.stateService.state, ActionTypes.stacked, this.stack);
25
+ }
26
+ }
27
+ isSelected() {
28
+ if (this.stack?.type === '100%') {
29
+ return this.stack?.type === this.stateService.state.series[0].stack?.type;
30
+ }
31
+ return (this.stateService.state.seriesType === this.seriesType &&
32
+ this.stateService.state.series[0].stack === this.stack);
33
+ }
34
+ }
35
+ ChartWizardSeriesTypeButtonComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ChartWizardSeriesTypeButtonComponent, deps: [{ token: i1.StateService }], target: i0.ɵɵFactoryTarget.Component });
36
+ ChartWizardSeriesTypeButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: ChartWizardSeriesTypeButtonComponent, isStandalone: true, selector: "kendo-chart-wizard-series-type-button", inputs: { title: "title", chartTypeIcon: "chartTypeIcon", stack: "stack", seriesType: "seriesType" }, ngImport: i0, template: `
37
+ <div class="k-icon-text-wrapper" [class.k-selected]="isSelected()" (click)="onSelect()">
38
+ <div class="k-icon-background-area">
39
+ <kendo-svgicon [icon]="chartTypeIcon" size="xlarge" themeColor="secondary"> </kendo-svgicon>
40
+ </div>
41
+ {{ title }}
42
+ </div>
43
+ `, isInline: true, dependencies: [{ kind: "component", type: SVGIconComponent, selector: "kendo-svg-icon, kendo-svgicon", inputs: ["icon"], exportAs: ["kendoSVGIcon"] }] });
44
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ChartWizardSeriesTypeButtonComponent, decorators: [{
45
+ type: Component,
46
+ args: [{
47
+ selector: 'kendo-chart-wizard-series-type-button',
48
+ template: `
49
+ <div class="k-icon-text-wrapper" [class.k-selected]="isSelected()" (click)="onSelect()">
50
+ <div class="k-icon-background-area">
51
+ <kendo-svgicon [icon]="chartTypeIcon" size="xlarge" themeColor="secondary"> </kendo-svgicon>
52
+ </div>
53
+ {{ title }}
54
+ </div>
55
+ `,
56
+ standalone: true,
57
+ imports: [SVGIconComponent]
58
+ }]
59
+ }], ctorParameters: function () { return [{ type: i1.StateService }]; }, propDecorators: { title: [{
60
+ type: Input
61
+ }], chartTypeIcon: [{
62
+ type: Input
63
+ }], stack: [{
64
+ type: Input
65
+ }], seriesType: [{
66
+ type: Input
67
+ }] } });
@@ -0,0 +1,32 @@
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 * as i0 from "@angular/core";
7
+ /**
8
+ * @hidden
9
+ */
10
+ export class StateService {
11
+ constructor() {
12
+ this.state = {
13
+ categoryAxis: [],
14
+ valueAxis: [],
15
+ series: [],
16
+ initialSeries: [],
17
+ columns: [],
18
+ data: []
19
+ };
20
+ this.seriesType = 'bar';
21
+ this.currentTitle = 'Chart Title';
22
+ this.currentSeries = {};
23
+ this.data = [];
24
+ this.deletedSeries = [];
25
+ this.direction = 'ltr';
26
+ }
27
+ }
28
+ StateService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: StateService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
29
+ StateService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: StateService });
30
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: StateService, decorators: [{
31
+ type: Injectable
32
+ }] });
@@ -0,0 +1,24 @@
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 { ChartComponent } from '@progress/kendo-angular-charts';
6
+ import { PreventableEvent } from './preventable-event';
7
+ import { ExportOptions } from '../common/models';
8
+ /**
9
+ * Arguments for the `export` event on the Chart Wizard.
10
+ */
11
+ export declare class ExportEvent extends PreventableEvent {
12
+ /**
13
+ * The export options on the Chart Wizard.
14
+ */
15
+ exportOptions: ExportOptions;
16
+ /**
17
+ * The current Chart chart instance to be exported.
18
+ */
19
+ chart: ChartComponent;
20
+ /**
21
+ * @hidden
22
+ */
23
+ constructor(chart: ChartComponent, exportOptions: ExportOptions);
24
+ }
@@ -0,0 +1,5 @@
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
+ export { ExportEvent } from './export-event';
@@ -0,0 +1,24 @@
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
+ /**
6
+ * @hidden
7
+ */
8
+ export declare abstract class PreventableEvent {
9
+ private prevented;
10
+ /**
11
+ * Prevents the default action for a specified event.
12
+ * In this way, the source component suppresses
13
+ * the built-in behavior that follows the event.
14
+ */
15
+ preventDefault(): void;
16
+ /**
17
+ * Returns `true` if the event was prevented
18
+ * by any of its subscribers.
19
+ *
20
+ * @returns `true` if the default action was prevented.
21
+ * Otherwise, returns `false`.
22
+ */
23
+ isDefaultPrevented(): boolean;
24
+ }