@sdcorejs/angular 22.2.8 → 22.2.9

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 (34) hide show
  1. package/README.md +4 -2
  2. package/fesm2022/sdcorejs-angular-components-form-generic.mjs +4 -4
  3. package/fesm2022/sdcorejs-angular-components-form-generic.mjs.map +1 -1
  4. package/fesm2022/sdcorejs-angular-components-modal.mjs +2 -2
  5. package/fesm2022/sdcorejs-angular-components-modal.mjs.map +1 -1
  6. package/fesm2022/sdcorejs-angular-components-query-builder.mjs +35 -2
  7. package/fesm2022/sdcorejs-angular-components-query-builder.mjs.map +1 -1
  8. package/fesm2022/sdcorejs-angular-components-side-drawer.mjs +2 -2
  9. package/fesm2022/sdcorejs-angular-components-side-drawer.mjs.map +1 -1
  10. package/fesm2022/sdcorejs-angular-components-tab.mjs +2 -2
  11. package/fesm2022/sdcorejs-angular-components-tab.mjs.map +1 -1
  12. package/fesm2022/sdcorejs-angular-components-table.mjs +215 -75
  13. package/fesm2022/sdcorejs-angular-components-table.mjs.map +1 -1
  14. package/fesm2022/sdcorejs-angular-components.mjs +0 -1
  15. package/fesm2022/sdcorejs-angular-components.mjs.map +1 -1
  16. package/fesm2022/sdcorejs-angular-directives.mjs +49 -11
  17. package/fesm2022/sdcorejs-angular-directives.mjs.map +1 -1
  18. package/fesm2022/sdcorejs-angular-forms-switch.mjs +6 -3
  19. package/fesm2022/sdcorejs-angular-forms-switch.mjs.map +1 -1
  20. package/fesm2022/sdcorejs-angular-i18n.mjs +5 -0
  21. package/fesm2022/sdcorejs-angular-i18n.mjs.map +1 -1
  22. package/fesm2022/sdcorejs-angular-modules-layout.mjs +44 -10
  23. package/fesm2022/sdcorejs-angular-modules-layout.mjs.map +1 -1
  24. package/package.json +1 -7
  25. package/types/sdcorejs-angular-components-form-generic.d.ts +1 -0
  26. package/types/sdcorejs-angular-components-query-builder.d.ts +3 -0
  27. package/types/sdcorejs-angular-components-table.d.ts +1 -1
  28. package/types/sdcorejs-angular-components.d.ts +0 -1
  29. package/types/sdcorejs-angular-forms-switch.d.ts +3 -2
  30. package/types/sdcorejs-angular-i18n.d.ts +1 -0
  31. package/types/sdcorejs-angular-modules-layout.d.ts +7 -1
  32. package/fesm2022/sdcorejs-angular-components-chart.mjs +0 -310
  33. package/fesm2022/sdcorejs-angular-components-chart.mjs.map +0 -1
  34. package/types/sdcorejs-angular-components-chart.d.ts +0 -65
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sdcorejs/angular",
3
- "version": "22.2.8",
3
+ "version": "22.2.9",
4
4
  "description": "Angular component library: data table, query bar/builder, 20+ signal-based form controls, layout, auth and workflow services. Standalone, OnPush, signals-first. Published in parallel lines for Angular 19, 20, 21 and 22.",
5
5
  "keywords": [
6
6
  "angular",
@@ -45,7 +45,6 @@
45
45
  "@lucide/angular": "^1.22.0",
46
46
  "@ckeditor/ckeditor5-angular": "11.1.2",
47
47
  "ckeditor5": "48.0.0",
48
- "chart.js": "^4.5.1",
49
48
  "date-fns": "^3.6.0",
50
49
  "exceljs": "^4.4.0",
51
50
  "keycloak-js": "^26.0.0",
@@ -56,7 +55,6 @@
56
55
  "sideEffects": [
57
56
  "**/*.css",
58
57
  "**/*.scss",
59
- "./fesm2022/sdcorejs-angular-components-chart.mjs",
60
58
  "./fesm2022/sdcorejs-angular-components-code-editor.mjs",
61
59
  "./fesm2022/sdcorejs-angular-components-ckeditor-styles.mjs"
62
60
  ],
@@ -110,10 +108,6 @@
110
108
  "types": "./types/sdcorejs-angular-components-card.d.ts",
111
109
  "default": "./fesm2022/sdcorejs-angular-components-card.mjs"
112
110
  },
113
- "./components/chart": {
114
- "types": "./types/sdcorejs-angular-components-chart.d.ts",
115
- "default": "./fesm2022/sdcorejs-angular-components-chart.mjs"
116
- },
117
111
  "./components/ckeditor-styles": {
118
112
  "types": "./types/sdcorejs-angular-components-ckeditor-styles.d.ts",
119
113
  "default": "./fesm2022/sdcorejs-angular-components-ckeditor-styles.mjs"
@@ -316,6 +316,7 @@ interface SdFormGenericGroup {
316
316
  properties: {
317
317
  icon: string;
318
318
  color: Color;
319
+ collapsible?: boolean;
319
320
  hidden?: boolean;
320
321
  hiddenWhenExpression?: SdFormGenericExpression;
321
322
  visibleWhenExpression?: SdFormGenericExpression;
@@ -1,4 +1,5 @@
1
1
  import * as _angular_core from '@angular/core';
2
+ import { ConnectedPosition } from '@angular/cdk/overlay';
2
3
  import { Operator, DateRelative, Filter } from '@sdcorejs/utils/models';
3
4
 
4
5
  /** Field kinds the builder understands. Drives the operator set + value editor. */
@@ -183,6 +184,7 @@ declare const SD_QB_EMPTY_OPTIONS: SdQueryBuilderFieldOption[];
183
184
  */
184
185
  declare class SdQueryBuilder {
185
186
  #private;
187
+ protected readonly addMenuPositions: ConnectedPosition[];
186
188
  /** Main option object. Prefer this API for new usage; individual inputs stay as a migration bridge. */
187
189
  readonly option: _angular_core.InputSignal<SdQueryBuilderOption | undefined>;
188
190
  /** Filterable fields — each declares a `type` that drives the operator set + value editor. */
@@ -253,6 +255,7 @@ declare class SdQueryBuilder {
253
255
  /** Open this group's "+" menu (closing any other open one). UI-only — does not emit. */
254
256
  toggleDropdown(group: SdQbGroup, event: Event): void;
255
257
  closeAllDropdowns(): void;
258
+ protected onAddMenuKeydown(event: KeyboardEvent): void;
256
259
  /** Append a blank rule to `group`. */
257
260
  addRule(group: SdQbGroup): void;
258
261
  /** Append a nested sub-group (seeded with one blank rule) to `group`. */
@@ -1430,7 +1430,7 @@ declare class SdTable<T = unknown> implements AfterViewInit, OnDestroy {
1430
1430
  ngAfterViewInit(): void;
1431
1431
  ngOnDestroy(): void;
1432
1432
  getFilterRequest: () => SdTableFilterRequest;
1433
- /** Retry only the still-valid failed server request, without resetting filters or paging. */
1433
+ /** Retry current hydration or the still-valid failed server request, without resetting filters or paging. */
1434
1434
  retryRead: () => Promise<void>;
1435
1435
  reload: (force?: boolean, scrollTop?: boolean) => Promise<void>;
1436
1436
  exportExcel: (columns?: SdExcelColumn[]) => void;
@@ -22,7 +22,6 @@ export * from '@sdcorejs/angular/components/import-excel';
22
22
  export * from '@sdcorejs/angular/components/mini-editor';
23
23
  export * from '@sdcorejs/angular/components/view';
24
24
  export * from '@sdcorejs/angular/components/code-editor';
25
- export * from '@sdcorejs/angular/components/chart';
26
25
  export * from '@sdcorejs/angular/components/editor';
27
26
  export * from '@sdcorejs/angular/components/splitter';
28
27
  export * from '@sdcorejs/angular/components/preview';
@@ -2,7 +2,7 @@ import * as _sdcorejs_angular_forms_models from '@sdcorejs/angular/forms/models'
2
2
  import { SdFormControl, ɵSdFormControlParent as _SdFormControlParent, SdViewed, SdViewedInput } from '@sdcorejs/angular/forms/models';
3
3
  import * as _angular_core from '@angular/core';
4
4
  import { OnInit, OnDestroy } from '@angular/core';
5
- import { Color } from '@sdcorejs/utils/models';
5
+ import { Size, Color } from '@sdcorejs/utils/models';
6
6
 
7
7
  declare class SdSwitch implements OnInit, OnDestroy {
8
8
  #private;
@@ -12,6 +12,7 @@ declare class SdSwitch implements OnInit, OnDestroy {
12
12
  readonly name: _angular_core.InputSignalWithTransform<string | undefined, string | null | undefined>;
13
13
  readonly form: _angular_core.InputSignal<_SdFormControlParent>;
14
14
  readonly label: _angular_core.InputSignalWithTransform<string | undefined, string | null | undefined>;
15
+ readonly size: _angular_core.InputSignal<Size>;
15
16
  readonly color: _angular_core.InputSignalWithTransform<Color, Color | null | undefined>;
16
17
  readonly disabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
17
18
  /** Display mode: `false` edit · `true` static view · `'inline'` interactive (disabled `'inline'` → static). */
@@ -35,7 +36,7 @@ declare class SdSwitch implements OnInit, OnDestroy {
35
36
  ngOnInit(): void;
36
37
  ngOnDestroy(): void;
37
38
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<SdSwitch, never>;
38
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<SdSwitch, "sd-switch", never, { "autoIdInput": { "alias": "autoId"; "required": false; "isSignal": true; }; "name": { "alias": "name"; "required": false; "isSignal": true; }; "form": { "alias": "form"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "color": { "alias": "color"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "viewed": { "alias": "viewed"; "required": false; "isSignal": true; }; "hideInlineError": { "alias": "hideInlineError"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "model": { "alias": "model"; "required": false; "isSignal": true; }; }, { "model": "modelChange"; "sdChange": "sdChange"; }, never, never, true, never>;
39
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<SdSwitch, "sd-switch", never, { "autoIdInput": { "alias": "autoId"; "required": false; "isSignal": true; }; "name": { "alias": "name"; "required": false; "isSignal": true; }; "form": { "alias": "form"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "color": { "alias": "color"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "viewed": { "alias": "viewed"; "required": false; "isSignal": true; }; "hideInlineError": { "alias": "hideInlineError"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "model": { "alias": "model"; "required": false; "isSignal": true; }; }, { "model": "modelChange"; "sdChange": "sdChange"; }, never, never, true, never>;
39
40
  }
40
41
 
41
42
  export { SdSwitch };
@@ -367,6 +367,7 @@ declare const EN_MESSAGES: {
367
367
  readonly 'core.component.form-builder.group-children': "Children";
368
368
  readonly 'core.component.form-builder.group-icon': "Icon";
369
369
  readonly 'core.component.form-builder.group-accent-color': "Accent color";
370
+ readonly 'core.component.form-builder.collapsible': "Allow expand/collapse";
370
371
  readonly 'core.component.form-builder.group-no-children': "No fields yet. Add or drag fields into this group.";
371
372
  readonly 'core.component.form-builder.break': "Break";
372
373
  readonly 'core.component.code-editor.copied': "Copied!";
@@ -411,6 +411,8 @@ interface SdLayoutMenuTreeNode {
411
411
  showIcon: boolean;
412
412
  isRoot: boolean;
413
413
  isGroup: boolean;
414
+ isCollapsible: boolean;
415
+ isExpanded: boolean;
414
416
  isActive: boolean;
415
417
  isPinned: boolean;
416
418
  isPinVisible: boolean;
@@ -427,6 +429,8 @@ declare class SdLayoutMenuTreeComponent {
427
429
  pinVisibility: _angular_core.InputSignal<"hover" | "always">;
428
430
  /** V3 hierarchy and flat shortcuts are opt-in; V2/mobile retain the default presentation. */
429
431
  presentation: _angular_core.InputSignal<"default" | "hierarchy" | "shortcuts">;
432
+ collapsible: _angular_core.InputSignal<boolean>;
433
+ collapsedGroupKeys: _angular_core.ModelSignal<string[]>;
430
434
  structured: _angular_core.Signal<boolean>;
431
435
  iconFontSet: _angular_core.Signal<"material-icons-outlined" | undefined>;
432
436
  navigate: _angular_core.OutputEmitterRef<SdLayoutRootMenu>;
@@ -434,11 +438,12 @@ declare class SdLayoutMenuTreeComponent {
434
438
  nodes: _angular_core.Signal<SdLayoutMenuTreeNode[]>;
435
439
  constructor();
436
440
  onNavigate(menu: SdLayoutMenu): void;
441
+ onToggleGroup(key: string): void;
437
442
  onTogglePinned(event: MouseEvent, menu: SdLayoutMenu): void;
438
443
  onPinHoverStart(key: string): void;
439
444
  onPinHoverEnd(key: string): void;
440
445
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<SdLayoutMenuTreeComponent, never>;
441
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<SdLayoutMenuTreeComponent, "sd-layout-menu-tree", never, { "menus": { "alias": "menus"; "required": false; "isSignal": true; }; "query": { "alias": "query"; "required": false; "isSignal": true; }; "activePath": { "alias": "activePath"; "required": false; "isSignal": true; }; "pinnedKeys": { "alias": "pinnedKeys"; "required": false; "isSignal": true; }; "showPin": { "alias": "showPin"; "required": false; "isSignal": true; }; "pinVisibility": { "alias": "pinVisibility"; "required": false; "isSignal": true; }; "presentation": { "alias": "presentation"; "required": false; "isSignal": true; }; }, { "navigate": "navigate"; "togglePinned": "togglePinned"; }, never, never, true, never>;
446
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<SdLayoutMenuTreeComponent, "sd-layout-menu-tree", never, { "menus": { "alias": "menus"; "required": false; "isSignal": true; }; "query": { "alias": "query"; "required": false; "isSignal": true; }; "activePath": { "alias": "activePath"; "required": false; "isSignal": true; }; "pinnedKeys": { "alias": "pinnedKeys"; "required": false; "isSignal": true; }; "showPin": { "alias": "showPin"; "required": false; "isSignal": true; }; "pinVisibility": { "alias": "pinVisibility"; "required": false; "isSignal": true; }; "presentation": { "alias": "presentation"; "required": false; "isSignal": true; }; "collapsible": { "alias": "collapsible"; "required": false; "isSignal": true; }; "collapsedGroupKeys": { "alias": "collapsedGroupKeys"; "required": false; "isSignal": true; }; }, { "collapsedGroupKeys": "collapsedGroupKeysChange"; "navigate": "navigate"; "togglePinned": "togglePinned"; }, never, never, true, never>;
442
447
  }
443
448
 
444
449
  declare class SdLayoutUserMenuComponent {
@@ -549,6 +554,7 @@ declare class SdSidebarV3 {
549
554
  userInfo: _angular_core.InputSignal<SdLayoutUserInfo>;
550
555
  sidebar: _angular_core.InputSignal<SidebarConfigurationV3>;
551
556
  isCollapsed: _angular_core.WritableSignal<boolean>;
557
+ protected readonly collapsedGroupKeys: _angular_core.WritableSignal<string[]>;
552
558
  searchText: _angular_core.WritableSignal<string>;
553
559
  activePath: _angular_core.WritableSignal<string>;
554
560
  searchResults: _angular_core.Signal<SdLayoutRootMenu[]>;
@@ -1,310 +0,0 @@
1
- import * as i0 from '@angular/core';
2
- import { viewChild, input, computed, effect, ChangeDetectionStrategy, Component } from '@angular/core';
3
- import { Chart, registerables } from 'chart.js';
4
-
5
- Chart.register(...registerables);
6
- class SdBarChartComponent {
7
- canvas = viewChild.required('canvas', /* @ts-ignore */
8
- ...(ngDevMode ? [{ debugName: "canvas" }] : /* istanbul ignore next */ []));
9
- data = input.required(/* @ts-ignore */
10
- ...(ngDevMode ? [{ debugName: "data" }] : /* istanbul ignore next */ []));
11
- options = input(/* @ts-ignore */
12
- ...(ngDevMode ? [undefined, { debugName: "options" }] : /* istanbul ignore next */ []));
13
- plugins = input([], /* @ts-ignore */
14
- ...(ngDevMode ? [{ debugName: "plugins" }] : /* istanbul ignore next */ []));
15
- isScrollable = computed(() => {
16
- const labelsLength = this.data()?.labels?.length || 0;
17
- return labelsLength > 15;
18
- }, /* @ts-ignore */
19
- ...(ngDevMode ? [{ debugName: "isScrollable" }] : /* istanbul ignore next */ []));
20
- computedMinWidth = computed(() => {
21
- if (!this.isScrollable())
22
- return null;
23
- const labelsLength = this.data()?.labels?.length || 0;
24
- return labelsLength * 50;
25
- }, /* @ts-ignore */
26
- ...(ngDevMode ? [{ debugName: "computedMinWidth" }] : /* istanbul ignore next */ []));
27
- chart;
28
- constructor() {
29
- effect(() => {
30
- const currentData = this.data();
31
- const currentOptions = this.options();
32
- if (this.chart) {
33
- this.chart.data = currentData;
34
- if (currentOptions) {
35
- this.chart.options = currentOptions;
36
- }
37
- this.chart.update();
38
- }
39
- });
40
- }
41
- ngOnInit() {
42
- this.#initChart();
43
- }
44
- ngOnDestroy() {
45
- if (this.chart) {
46
- this.chart.destroy();
47
- }
48
- }
49
- #initChart() {
50
- if (this.chart) {
51
- this.chart.destroy();
52
- }
53
- const ctx = this.canvas().nativeElement.getContext('2d');
54
- if (ctx) {
55
- this.chart = new Chart(ctx, {
56
- type: 'bar',
57
- data: this.data(),
58
- options: this.options() || {},
59
- plugins: this.plugins(),
60
- });
61
- }
62
- }
63
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: SdBarChartComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
64
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.1.5", type: SdBarChartComponent, isStandalone: true, selector: "sd-bar-chart", inputs: { data: { classPropertyName: "data", publicName: "data", isSignal: true, isRequired: true, transformFunction: null }, options: { classPropertyName: "options", publicName: "options", isSignal: true, isRequired: false, transformFunction: null }, plugins: { classPropertyName: "plugins", publicName: "plugins", isSignal: true, isRequired: false, transformFunction: null } }, viewQueries: [{ propertyName: "canvas", first: true, predicate: ["canvas"], descendants: true, isSignal: true }], ngImport: i0, template: `
65
- <div [style.overflow-x]="isScrollable() ? 'auto' : 'visible'" style="width: 100%; height: 100%;">
66
- <div [style.height]="'100%'" [style.min-width.px]="computedMinWidth()" style="position: relative;">
67
- <canvas #canvas></canvas>
68
- </div>
69
- </div>
70
- `, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
71
- }
72
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: SdBarChartComponent, decorators: [{
73
- type: Component,
74
- args: [{
75
- selector: 'sd-bar-chart',
76
- template: `
77
- <div [style.overflow-x]="isScrollable() ? 'auto' : 'visible'" style="width: 100%; height: 100%;">
78
- <div [style.height]="'100%'" [style.min-width.px]="computedMinWidth()" style="position: relative;">
79
- <canvas #canvas></canvas>
80
- </div>
81
- </div>
82
- `,
83
- changeDetection: ChangeDetectionStrategy.OnPush,
84
- standalone: true,
85
- }]
86
- }], ctorParameters: () => [], propDecorators: { canvas: [{ type: i0.ViewChild, args: ['canvas', { isSignal: true }] }], data: [{ type: i0.Input, args: [{ isSignal: true, alias: "data", required: true }] }], options: [{ type: i0.Input, args: [{ isSignal: true, alias: "options", required: false }] }], plugins: [{ type: i0.Input, args: [{ isSignal: true, alias: "plugins", required: false }] }] } });
87
-
88
- Chart.register(...registerables);
89
- class SdLineChartComponent {
90
- canvas = viewChild.required('canvas', /* @ts-ignore */
91
- ...(ngDevMode ? [{ debugName: "canvas" }] : /* istanbul ignore next */ []));
92
- data = input.required(/* @ts-ignore */
93
- ...(ngDevMode ? [{ debugName: "data" }] : /* istanbul ignore next */ []));
94
- options = input(/* @ts-ignore */
95
- ...(ngDevMode ? [undefined, { debugName: "options" }] : /* istanbul ignore next */ []));
96
- plugins = input([], /* @ts-ignore */
97
- ...(ngDevMode ? [{ debugName: "plugins" }] : /* istanbul ignore next */ []));
98
- isScrollable = computed(() => {
99
- const labelsLength = this.data()?.labels?.length || 0;
100
- return labelsLength > 15;
101
- }, /* @ts-ignore */
102
- ...(ngDevMode ? [{ debugName: "isScrollable" }] : /* istanbul ignore next */ []));
103
- computedMinWidth = computed(() => {
104
- if (!this.isScrollable())
105
- return null;
106
- const labelsLength = this.data()?.labels?.length || 0;
107
- return labelsLength * 50;
108
- }, /* @ts-ignore */
109
- ...(ngDevMode ? [{ debugName: "computedMinWidth" }] : /* istanbul ignore next */ []));
110
- chart;
111
- constructor() {
112
- effect(() => {
113
- const currentData = this.data();
114
- const currentOptions = this.options();
115
- if (this.chart) {
116
- this.chart.data = currentData;
117
- if (currentOptions) {
118
- this.chart.options = currentOptions;
119
- }
120
- this.chart.update();
121
- }
122
- });
123
- }
124
- ngOnInit() {
125
- this.#initChart();
126
- }
127
- ngOnDestroy() {
128
- if (this.chart) {
129
- this.chart.destroy();
130
- }
131
- }
132
- #initChart() {
133
- if (this.chart) {
134
- this.chart.destroy();
135
- }
136
- const ctx = this.canvas().nativeElement.getContext('2d');
137
- if (ctx) {
138
- this.chart = new Chart(ctx, {
139
- type: 'line',
140
- data: this.data(),
141
- options: this.options() || {},
142
- plugins: this.plugins(),
143
- });
144
- }
145
- }
146
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: SdLineChartComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
147
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.1.5", type: SdLineChartComponent, isStandalone: true, selector: "sd-line-chart", inputs: { data: { classPropertyName: "data", publicName: "data", isSignal: true, isRequired: true, transformFunction: null }, options: { classPropertyName: "options", publicName: "options", isSignal: true, isRequired: false, transformFunction: null }, plugins: { classPropertyName: "plugins", publicName: "plugins", isSignal: true, isRequired: false, transformFunction: null } }, viewQueries: [{ propertyName: "canvas", first: true, predicate: ["canvas"], descendants: true, isSignal: true }], ngImport: i0, template: `
148
- <div [style.overflow-x]="isScrollable() ? 'auto' : 'visible'" style="width: 100%; height: 100%;">
149
- <div [style.height]="'100%'" [style.min-width.px]="computedMinWidth()" style="position: relative;">
150
- <canvas #canvas></canvas>
151
- </div>
152
- </div>
153
- `, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
154
- }
155
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: SdLineChartComponent, decorators: [{
156
- type: Component,
157
- args: [{
158
- selector: 'sd-line-chart',
159
- template: `
160
- <div [style.overflow-x]="isScrollable() ? 'auto' : 'visible'" style="width: 100%; height: 100%;">
161
- <div [style.height]="'100%'" [style.min-width.px]="computedMinWidth()" style="position: relative;">
162
- <canvas #canvas></canvas>
163
- </div>
164
- </div>
165
- `,
166
- changeDetection: ChangeDetectionStrategy.OnPush,
167
- standalone: true,
168
- }]
169
- }], ctorParameters: () => [], propDecorators: { canvas: [{ type: i0.ViewChild, args: ['canvas', { isSignal: true }] }], data: [{ type: i0.Input, args: [{ isSignal: true, alias: "data", required: true }] }], options: [{ type: i0.Input, args: [{ isSignal: true, alias: "options", required: false }] }], plugins: [{ type: i0.Input, args: [{ isSignal: true, alias: "plugins", required: false }] }] } });
170
-
171
- Chart.register(...registerables);
172
- class SdPieChartComponent {
173
- canvas = viewChild.required('canvas', /* @ts-ignore */
174
- ...(ngDevMode ? [{ debugName: "canvas" }] : /* istanbul ignore next */ []));
175
- data = input.required(/* @ts-ignore */
176
- ...(ngDevMode ? [{ debugName: "data" }] : /* istanbul ignore next */ []));
177
- options = input(/* @ts-ignore */
178
- ...(ngDevMode ? [undefined, { debugName: "options" }] : /* istanbul ignore next */ []));
179
- plugins = input([], /* @ts-ignore */
180
- ...(ngDevMode ? [{ debugName: "plugins" }] : /* istanbul ignore next */ []));
181
- chart;
182
- constructor() {
183
- effect(() => {
184
- const currentData = this.data();
185
- const currentOptions = this.options();
186
- if (this.chart) {
187
- this.chart.data = currentData;
188
- if (currentOptions) {
189
- this.chart.options = currentOptions;
190
- }
191
- this.chart.update();
192
- }
193
- });
194
- }
195
- ngOnInit() {
196
- this.#initChart();
197
- }
198
- ngOnDestroy() {
199
- if (this.chart) {
200
- this.chart.destroy();
201
- }
202
- }
203
- #initChart() {
204
- if (this.chart) {
205
- this.chart.destroy();
206
- }
207
- const ctx = this.canvas().nativeElement.getContext('2d');
208
- if (ctx) {
209
- this.chart = new Chart(ctx, {
210
- type: 'pie',
211
- data: this.data(),
212
- options: this.options() || {},
213
- plugins: this.plugins(),
214
- });
215
- }
216
- }
217
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: SdPieChartComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
218
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.1.5", type: SdPieChartComponent, isStandalone: true, selector: "sd-pie-chart", inputs: { data: { classPropertyName: "data", publicName: "data", isSignal: true, isRequired: true, transformFunction: null }, options: { classPropertyName: "options", publicName: "options", isSignal: true, isRequired: false, transformFunction: null }, plugins: { classPropertyName: "plugins", publicName: "plugins", isSignal: true, isRequired: false, transformFunction: null } }, viewQueries: [{ propertyName: "canvas", first: true, predicate: ["canvas"], descendants: true, isSignal: true }], ngImport: i0, template: `
219
- <div style="position: relative; height: 100%; width: 100%;">
220
- <canvas #canvas></canvas>
221
- </div>
222
- `, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
223
- }
224
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: SdPieChartComponent, decorators: [{
225
- type: Component,
226
- args: [{
227
- selector: 'sd-pie-chart',
228
- template: `
229
- <div style="position: relative; height: 100%; width: 100%;">
230
- <canvas #canvas></canvas>
231
- </div>
232
- `,
233
- changeDetection: ChangeDetectionStrategy.OnPush,
234
- standalone: true,
235
- }]
236
- }], ctorParameters: () => [], propDecorators: { canvas: [{ type: i0.ViewChild, args: ['canvas', { isSignal: true }] }], data: [{ type: i0.Input, args: [{ isSignal: true, alias: "data", required: true }] }], options: [{ type: i0.Input, args: [{ isSignal: true, alias: "options", required: false }] }], plugins: [{ type: i0.Input, args: [{ isSignal: true, alias: "plugins", required: false }] }] } });
237
-
238
- Chart.register(...registerables);
239
- class SdDoughnutChartComponent {
240
- canvas = viewChild.required('canvas', /* @ts-ignore */
241
- ...(ngDevMode ? [{ debugName: "canvas" }] : /* istanbul ignore next */ []));
242
- data = input.required(/* @ts-ignore */
243
- ...(ngDevMode ? [{ debugName: "data" }] : /* istanbul ignore next */ []));
244
- options = input(/* @ts-ignore */
245
- ...(ngDevMode ? [undefined, { debugName: "options" }] : /* istanbul ignore next */ []));
246
- plugins = input([], /* @ts-ignore */
247
- ...(ngDevMode ? [{ debugName: "plugins" }] : /* istanbul ignore next */ []));
248
- chart;
249
- constructor() {
250
- effect(() => {
251
- const currentData = this.data();
252
- const currentOptions = this.options();
253
- if (this.chart) {
254
- this.chart.data = currentData;
255
- if (currentOptions) {
256
- this.chart.options = currentOptions;
257
- }
258
- this.chart.update();
259
- }
260
- });
261
- }
262
- ngOnInit() {
263
- this.#initChart();
264
- }
265
- ngOnDestroy() {
266
- if (this.chart) {
267
- this.chart.destroy();
268
- }
269
- }
270
- #initChart() {
271
- if (this.chart) {
272
- this.chart.destroy();
273
- }
274
- const ctx = this.canvas().nativeElement.getContext('2d');
275
- if (ctx) {
276
- this.chart = new Chart(ctx, {
277
- type: 'doughnut',
278
- data: this.data(),
279
- options: this.options() || {},
280
- plugins: this.plugins(),
281
- });
282
- }
283
- }
284
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: SdDoughnutChartComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
285
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.1.5", type: SdDoughnutChartComponent, isStandalone: true, selector: "sd-doughnut-chart", inputs: { data: { classPropertyName: "data", publicName: "data", isSignal: true, isRequired: true, transformFunction: null }, options: { classPropertyName: "options", publicName: "options", isSignal: true, isRequired: false, transformFunction: null }, plugins: { classPropertyName: "plugins", publicName: "plugins", isSignal: true, isRequired: false, transformFunction: null } }, viewQueries: [{ propertyName: "canvas", first: true, predicate: ["canvas"], descendants: true, isSignal: true }], ngImport: i0, template: `
286
- <div style="position: relative; height: 100%; width: 100%;">
287
- <canvas #canvas></canvas>
288
- </div>
289
- `, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
290
- }
291
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: SdDoughnutChartComponent, decorators: [{
292
- type: Component,
293
- args: [{
294
- selector: 'sd-doughnut-chart',
295
- template: `
296
- <div style="position: relative; height: 100%; width: 100%;">
297
- <canvas #canvas></canvas>
298
- </div>
299
- `,
300
- changeDetection: ChangeDetectionStrategy.OnPush,
301
- standalone: true,
302
- }]
303
- }], ctorParameters: () => [], propDecorators: { canvas: [{ type: i0.ViewChild, args: ['canvas', { isSignal: true }] }], data: [{ type: i0.Input, args: [{ isSignal: true, alias: "data", required: true }] }], options: [{ type: i0.Input, args: [{ isSignal: true, alias: "options", required: false }] }], plugins: [{ type: i0.Input, args: [{ isSignal: true, alias: "plugins", required: false }] }] } });
304
-
305
- /**
306
- * Generated bundle index. Do not edit.
307
- */
308
-
309
- export { SdBarChartComponent, SdDoughnutChartComponent, SdLineChartComponent, SdPieChartComponent };
310
- //# sourceMappingURL=sdcorejs-angular-components-chart.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"sdcorejs-angular-components-chart.mjs","sources":["../../../projects/sdcorejs-angular/components/chart/src/bar-chart.component.ts","../../../projects/sdcorejs-angular/components/chart/src/line-chart.component.ts","../../../projects/sdcorejs-angular/components/chart/src/pie-chart.component.ts","../../../projects/sdcorejs-angular/components/chart/src/doughnut-chart.component.ts","../../../projects/sdcorejs-angular/components/chart/sdcorejs-angular-components-chart.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n Component,\n ElementRef,\n InputSignal,\n OnDestroy,\n OnInit,\n effect,\n input,\n computed,\n viewChild,\n} from '@angular/core';\nimport { Chart, ChartData, ChartOptions, Plugin, registerables } from 'chart.js';\n\nChart.register(...registerables);\n\n@Component({\n selector: 'sd-bar-chart',\n template: `\n <div [style.overflow-x]=\"isScrollable() ? 'auto' : 'visible'\" style=\"width: 100%; height: 100%;\">\n <div [style.height]=\"'100%'\" [style.min-width.px]=\"computedMinWidth()\" style=\"position: relative;\">\n <canvas #canvas></canvas>\n </div>\n </div>\n `,\n changeDetection: ChangeDetectionStrategy.OnPush,\n standalone: true,\n})\nexport class SdBarChartComponent implements OnInit, OnDestroy {\n canvas = viewChild.required<ElementRef<HTMLCanvasElement>>('canvas');\n\n data: InputSignal<ChartData<'bar'>> = input.required<ChartData<'bar'>>();\n options: InputSignal<ChartOptions<'bar'> | undefined> = input<ChartOptions<'bar'>>();\n plugins: InputSignal<Plugin<'bar'>[]> = input<Plugin<'bar'>[]>([]);\n\n isScrollable = computed(() => {\n const labelsLength = this.data()?.labels?.length || 0;\n return labelsLength > 15;\n });\n\n computedMinWidth = computed(() => {\n if (!this.isScrollable()) return null;\n const labelsLength = this.data()?.labels?.length || 0;\n return labelsLength * 50;\n });\n\n chart: Chart<'bar'> | undefined;\n\n constructor() {\n effect(() => {\n const currentData = this.data();\n const currentOptions = this.options();\n\n if (this.chart) {\n this.chart.data = currentData as any;\n if (currentOptions) {\n this.chart.options = currentOptions;\n }\n this.chart.update();\n }\n });\n }\n\n ngOnInit() {\n this.#initChart();\n }\n\n ngOnDestroy() {\n if (this.chart) {\n this.chart.destroy();\n }\n }\n\n #initChart() {\n if (this.chart) {\n this.chart.destroy();\n }\n const ctx = this.canvas().nativeElement.getContext('2d');\n if (ctx) {\n this.chart = new Chart(ctx, {\n type: 'bar',\n data: this.data() as any,\n options: this.options() || {},\n plugins: this.plugins(),\n });\n }\n }\n}\n","import {\n ChangeDetectionStrategy,\n Component,\n ElementRef,\n InputSignal,\n OnDestroy,\n OnInit,\n effect,\n input,\n computed,\n viewChild,\n} from '@angular/core';\nimport { Chart, ChartData, ChartOptions, Plugin, registerables } from 'chart.js';\n\nChart.register(...registerables);\n\n@Component({\n selector: 'sd-line-chart',\n template: `\n <div [style.overflow-x]=\"isScrollable() ? 'auto' : 'visible'\" style=\"width: 100%; height: 100%;\">\n <div [style.height]=\"'100%'\" [style.min-width.px]=\"computedMinWidth()\" style=\"position: relative;\">\n <canvas #canvas></canvas>\n </div>\n </div>\n `,\n changeDetection: ChangeDetectionStrategy.OnPush,\n standalone: true,\n})\nexport class SdLineChartComponent implements OnInit, OnDestroy {\n canvas = viewChild.required<ElementRef<HTMLCanvasElement>>('canvas');\n\n data: InputSignal<ChartData<'line'>> = input.required<ChartData<'line'>>();\n options: InputSignal<ChartOptions<'line'> | undefined> = input<ChartOptions<'line'>>();\n plugins: InputSignal<Plugin<'line'>[]> = input<Plugin<'line'>[]>([]);\n\n isScrollable = computed(() => {\n const labelsLength = this.data()?.labels?.length || 0;\n return labelsLength > 15;\n });\n\n computedMinWidth = computed(() => {\n if (!this.isScrollable()) return null;\n const labelsLength = this.data()?.labels?.length || 0;\n return labelsLength * 50;\n });\n\n chart: Chart<'line'> | undefined;\n\n constructor() {\n effect(() => {\n const currentData = this.data();\n const currentOptions = this.options();\n\n if (this.chart) {\n this.chart.data = currentData;\n if (currentOptions) {\n this.chart.options = currentOptions;\n }\n this.chart.update();\n }\n });\n }\n\n ngOnInit() {\n this.#initChart();\n }\n\n ngOnDestroy() {\n if (this.chart) {\n this.chart.destroy();\n }\n }\n\n #initChart() {\n if (this.chart) {\n this.chart.destroy();\n }\n const ctx = this.canvas().nativeElement.getContext('2d');\n if (ctx) {\n this.chart = new Chart(ctx, {\n type: 'line',\n data: this.data(),\n options: this.options() || {},\n plugins: this.plugins(),\n });\n }\n }\n}\n","import { ChangeDetectionStrategy, Component, ElementRef, InputSignal, OnDestroy, OnInit, effect, input, viewChild } from '@angular/core';\nimport { Chart, ChartData, ChartOptions, Plugin, registerables } from 'chart.js';\n\nChart.register(...registerables);\n\n@Component({\n selector: 'sd-pie-chart',\n template: `\n <div style=\"position: relative; height: 100%; width: 100%;\">\n <canvas #canvas></canvas>\n </div>\n `,\n changeDetection: ChangeDetectionStrategy.OnPush,\n standalone: true,\n})\nexport class SdPieChartComponent implements OnInit, OnDestroy {\n canvas = viewChild.required<ElementRef<HTMLCanvasElement>>('canvas');\n\n data: InputSignal<ChartData<'pie'>> = input.required<ChartData<'pie'>>();\n options: InputSignal<ChartOptions<'pie'> | undefined> = input<ChartOptions<'pie'>>();\n plugins: InputSignal<Plugin<'pie'>[]> = input<Plugin<'pie'>[]>([]);\n\n chart: Chart<'pie'> | undefined;\n\n constructor() {\n effect(() => {\n const currentData = this.data();\n const currentOptions = this.options();\n\n if (this.chart) {\n this.chart.data = currentData;\n if (currentOptions) {\n this.chart.options = currentOptions;\n }\n this.chart.update();\n }\n });\n }\n\n ngOnInit() {\n this.#initChart();\n }\n\n ngOnDestroy() {\n if (this.chart) {\n this.chart.destroy();\n }\n }\n\n #initChart() {\n if (this.chart) {\n this.chart.destroy();\n }\n const ctx = this.canvas().nativeElement.getContext('2d');\n if (ctx) {\n this.chart = new Chart(ctx, {\n type: 'pie',\n data: this.data(),\n options: this.options() || {},\n plugins: this.plugins(),\n });\n }\n }\n}\n","import { ChangeDetectionStrategy, Component, ElementRef, InputSignal, OnDestroy, OnInit, effect, input, viewChild } from '@angular/core';\nimport { Chart, ChartData, ChartOptions, Plugin, registerables } from 'chart.js';\n\nChart.register(...registerables);\n\n@Component({\n selector: 'sd-doughnut-chart',\n template: `\n <div style=\"position: relative; height: 100%; width: 100%;\">\n <canvas #canvas></canvas>\n </div>\n `,\n changeDetection: ChangeDetectionStrategy.OnPush,\n standalone: true,\n})\nexport class SdDoughnutChartComponent implements OnInit, OnDestroy {\n canvas = viewChild.required<ElementRef<HTMLCanvasElement>>('canvas');\n\n data: InputSignal<ChartData<'doughnut'>> = input.required<ChartData<'doughnut'>>();\n options: InputSignal<ChartOptions<'doughnut'> | undefined> = input<ChartOptions<'doughnut'>>();\n plugins: InputSignal<Plugin<'doughnut'>[]> = input<Plugin<'doughnut'>[]>([]);\n\n chart: Chart<'doughnut'> | undefined;\n\n constructor() {\n effect(() => {\n const currentData = this.data();\n const currentOptions = this.options();\n\n if (this.chart) {\n this.chart.data = currentData;\n if (currentOptions) {\n this.chart.options = currentOptions;\n }\n this.chart.update();\n }\n });\n }\n\n ngOnInit() {\n this.#initChart();\n }\n\n ngOnDestroy() {\n if (this.chart) {\n this.chart.destroy();\n }\n }\n\n #initChart() {\n if (this.chart) {\n this.chart.destroy();\n }\n const ctx = this.canvas().nativeElement.getContext('2d');\n if (ctx) {\n this.chart = new Chart(ctx, {\n type: 'doughnut',\n data: this.data(),\n options: this.options() || {},\n plugins: this.plugins(),\n });\n }\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;AAcA,KAAK,CAAC,QAAQ,CAAC,GAAG,aAAa,CAAC;MAcnB,mBAAmB,CAAA;AAC9B,IAAA,MAAM,GAAG,SAAS,CAAC,QAAQ,CAAgC,QAAQ;+EAAC;IAEpE,IAAI,GAAkC,KAAK,CAAC,QAAQ;6EAAoB;AACxE,IAAA,OAAO,GAAiD,KAAK;2FAAuB;IACpF,OAAO,GAAiC,KAAK,CAAkB,EAAE;gFAAC;AAElE,IAAA,YAAY,GAAG,QAAQ,CAAC,MAAK;AAC3B,QAAA,MAAM,YAAY,GAAG,IAAI,CAAC,IAAI,EAAE,EAAE,MAAM,EAAE,MAAM,IAAI,CAAC;QACrD,OAAO,YAAY,GAAG,EAAE;IAC1B,CAAC;qFAAC;AAEF,IAAA,gBAAgB,GAAG,QAAQ,CAAC,MAAK;AAC/B,QAAA,IAAI,CAAC,IAAI,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A,EAAA,OAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,KAAA,EAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,KAAA,EAAA,SAAA,EAAA,QAAA,EAAA,KAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;AChBrE;;AAEG;;"}
@@ -1,65 +0,0 @@
1
- import * as _angular_core from '@angular/core';
2
- import { OnInit, OnDestroy, ElementRef, InputSignal } from '@angular/core';
3
- import { ChartData, ChartOptions, Plugin, Chart } from 'chart.js';
4
-
5
- declare class SdBarChartComponent implements OnInit, OnDestroy {
6
- #private;
7
- canvas: _angular_core.Signal<ElementRef<HTMLCanvasElement>>;
8
- data: InputSignal<ChartData<'bar'>>;
9
- options: InputSignal<ChartOptions<'bar'> | undefined>;
10
- plugins: InputSignal<Plugin<'bar'>[]>;
11
- isScrollable: _angular_core.Signal<boolean>;
12
- computedMinWidth: _angular_core.Signal<number | null>;
13
- chart: Chart<'bar'> | undefined;
14
- constructor();
15
- ngOnInit(): void;
16
- ngOnDestroy(): void;
17
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<SdBarChartComponent, never>;
18
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<SdBarChartComponent, "sd-bar-chart", never, { "data": { "alias": "data"; "required": true; "isSignal": true; }; "options": { "alias": "options"; "required": false; "isSignal": true; }; "plugins": { "alias": "plugins"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
19
- }
20
-
21
- declare class SdLineChartComponent implements OnInit, OnDestroy {
22
- #private;
23
- canvas: _angular_core.Signal<ElementRef<HTMLCanvasElement>>;
24
- data: InputSignal<ChartData<'line'>>;
25
- options: InputSignal<ChartOptions<'line'> | undefined>;
26
- plugins: InputSignal<Plugin<'line'>[]>;
27
- isScrollable: _angular_core.Signal<boolean>;
28
- computedMinWidth: _angular_core.Signal<number | null>;
29
- chart: Chart<'line'> | undefined;
30
- constructor();
31
- ngOnInit(): void;
32
- ngOnDestroy(): void;
33
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<SdLineChartComponent, never>;
34
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<SdLineChartComponent, "sd-line-chart", never, { "data": { "alias": "data"; "required": true; "isSignal": true; }; "options": { "alias": "options"; "required": false; "isSignal": true; }; "plugins": { "alias": "plugins"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
35
- }
36
-
37
- declare class SdPieChartComponent implements OnInit, OnDestroy {
38
- #private;
39
- canvas: _angular_core.Signal<ElementRef<HTMLCanvasElement>>;
40
- data: InputSignal<ChartData<'pie'>>;
41
- options: InputSignal<ChartOptions<'pie'> | undefined>;
42
- plugins: InputSignal<Plugin<'pie'>[]>;
43
- chart: Chart<'pie'> | undefined;
44
- constructor();
45
- ngOnInit(): void;
46
- ngOnDestroy(): void;
47
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<SdPieChartComponent, never>;
48
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<SdPieChartComponent, "sd-pie-chart", never, { "data": { "alias": "data"; "required": true; "isSignal": true; }; "options": { "alias": "options"; "required": false; "isSignal": true; }; "plugins": { "alias": "plugins"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
49
- }
50
-
51
- declare class SdDoughnutChartComponent implements OnInit, OnDestroy {
52
- #private;
53
- canvas: _angular_core.Signal<ElementRef<HTMLCanvasElement>>;
54
- data: InputSignal<ChartData<'doughnut'>>;
55
- options: InputSignal<ChartOptions<'doughnut'> | undefined>;
56
- plugins: InputSignal<Plugin<'doughnut'>[]>;
57
- chart: Chart<'doughnut'> | undefined;
58
- constructor();
59
- ngOnInit(): void;
60
- ngOnDestroy(): void;
61
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<SdDoughnutChartComponent, never>;
62
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<SdDoughnutChartComponent, "sd-doughnut-chart", never, { "data": { "alias": "data"; "required": true; "isSignal": true; }; "options": { "alias": "options"; "required": false; "isSignal": true; }; "plugins": { "alias": "plugins"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
63
- }
64
-
65
- export { SdBarChartComponent, SdDoughnutChartComponent, SdLineChartComponent, SdPieChartComponent };