@sdcorejs/angular 19.2.8 → 19.2.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 (41) hide show
  1. package/README.md +4 -2
  2. package/components/form-generic/src/models/form-generic-component.model.d.ts +1 -0
  3. package/components/index.d.ts +0 -1
  4. package/components/query-builder/src/query-builder.component.d.ts +3 -0
  5. package/components/table/src/components/action-menu/action-menu.d.ts +10 -0
  6. package/components/table/src/components/command/desktop-command.component.d.ts +1 -0
  7. package/components/table/src/table.component.d.ts +1 -1
  8. package/fesm2022/sdcorejs-angular-components-form-generic.mjs +4 -4
  9. package/fesm2022/sdcorejs-angular-components-form-generic.mjs.map +1 -1
  10. package/fesm2022/sdcorejs-angular-components-modal.mjs +2 -2
  11. package/fesm2022/sdcorejs-angular-components-modal.mjs.map +1 -1
  12. package/fesm2022/sdcorejs-angular-components-query-builder.mjs +35 -2
  13. package/fesm2022/sdcorejs-angular-components-query-builder.mjs.map +1 -1
  14. package/fesm2022/sdcorejs-angular-components-side-drawer.mjs +2 -2
  15. package/fesm2022/sdcorejs-angular-components-side-drawer.mjs.map +1 -1
  16. package/fesm2022/sdcorejs-angular-components-tab.mjs +2 -2
  17. package/fesm2022/sdcorejs-angular-components-tab.mjs.map +1 -1
  18. package/fesm2022/sdcorejs-angular-components-table.mjs +247 -87
  19. package/fesm2022/sdcorejs-angular-components-table.mjs.map +1 -1
  20. package/fesm2022/sdcorejs-angular-components.mjs +0 -1
  21. package/fesm2022/sdcorejs-angular-components.mjs.map +1 -1
  22. package/fesm2022/sdcorejs-angular-directives.mjs +49 -11
  23. package/fesm2022/sdcorejs-angular-directives.mjs.map +1 -1
  24. package/fesm2022/sdcorejs-angular-forms-switch.mjs +4 -2
  25. package/fesm2022/sdcorejs-angular-forms-switch.mjs.map +1 -1
  26. package/fesm2022/sdcorejs-angular-i18n.mjs +5 -0
  27. package/fesm2022/sdcorejs-angular-i18n.mjs.map +1 -1
  28. package/fesm2022/sdcorejs-angular-modules-layout.mjs +40 -9
  29. package/fesm2022/sdcorejs-angular-modules-layout.mjs.map +1 -1
  30. package/forms/switch/src/switch.component.d.ts +3 -2
  31. package/i18n/src/en.d.ts +1 -0
  32. package/modules/layout/components/shared/menu-tree/menu-tree.component.d.ts +6 -1
  33. package/modules/layout/components/sidebar-v3/main.component.d.ts +1 -0
  34. package/package.json +1 -7
  35. package/components/chart/index.d.ts +0 -4
  36. package/components/chart/src/bar-chart.component.d.ts +0 -18
  37. package/components/chart/src/doughnut-chart.component.d.ts +0 -16
  38. package/components/chart/src/line-chart.component.d.ts +0 -18
  39. package/components/chart/src/pie-chart.component.d.ts +0 -16
  40. package/fesm2022/sdcorejs-angular-components-chart.mjs +0 -290
  41. package/fesm2022/sdcorejs-angular-components-chart.mjs.map +0 -1
@@ -1,6 +1,6 @@
1
1
  import { OnDestroy, OnInit } from '@angular/core';
2
2
  import { SdFormControl, SdViewed, SdViewedInput, ɵSdFormControlParent } from '@sdcorejs/angular/forms/models';
3
- import { Color } from '@sdcorejs/utils/models';
3
+ import { Color, Size } from '@sdcorejs/utils/models';
4
4
  import * as i0 from "@angular/core";
5
5
  export declare class SdSwitch implements OnInit, OnDestroy {
6
6
  #private;
@@ -10,6 +10,7 @@ export declare class SdSwitch implements OnInit, OnDestroy {
10
10
  readonly name: import("@angular/core").InputSignalWithTransform<string | undefined, string | null | undefined>;
11
11
  readonly form: import("@angular/core").InputSignal<ɵSdFormControlParent>;
12
12
  readonly label: import("@angular/core").InputSignalWithTransform<string | undefined, string | null | undefined>;
13
+ readonly size: import("@angular/core").InputSignal<Size>;
13
14
  readonly color: import("@angular/core").InputSignalWithTransform<Color, Color | null | undefined>;
14
15
  readonly disabled: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
15
16
  /** Display mode: `false` edit · `true` static view · `'inline'` interactive (disabled `'inline'` → static). */
@@ -33,5 +34,5 @@ export declare class SdSwitch implements OnInit, OnDestroy {
33
34
  ngOnInit(): void;
34
35
  ngOnDestroy(): void;
35
36
  static ɵfac: i0.ɵɵFactoryDeclaration<SdSwitch, never>;
36
- static ɵcmp: i0.ɵɵ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>;
37
+ static ɵcmp: i0.ɵɵ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>;
37
38
  }
package/i18n/src/en.d.ts CHANGED
@@ -361,6 +361,7 @@ export declare const EN_MESSAGES: {
361
361
  readonly 'core.component.form-builder.group-children': "Children";
362
362
  readonly 'core.component.form-builder.group-icon': "Icon";
363
363
  readonly 'core.component.form-builder.group-accent-color': "Accent color";
364
+ readonly 'core.component.form-builder.collapsible': "Allow expand/collapse";
364
365
  readonly 'core.component.form-builder.group-no-children': "No fields yet. Add or drag fields into this group.";
365
366
  readonly 'core.component.form-builder.break': "Break";
366
367
  readonly 'core.component.code-editor.copied': "Copied!";
@@ -11,6 +11,8 @@ interface SdLayoutMenuTreeNode {
11
11
  showIcon: boolean;
12
12
  isRoot: boolean;
13
13
  isGroup: boolean;
14
+ isCollapsible: boolean;
15
+ isExpanded: boolean;
14
16
  isActive: boolean;
15
17
  isPinned: boolean;
16
18
  isPinVisible: boolean;
@@ -27,6 +29,8 @@ export declare class SdLayoutMenuTreeComponent {
27
29
  pinVisibility: import("@angular/core").InputSignal<"hover" | "always">;
28
30
  /** V3 hierarchy and flat shortcuts are opt-in; V2/mobile retain the default presentation. */
29
31
  presentation: import("@angular/core").InputSignal<"default" | "hierarchy" | "shortcuts">;
32
+ collapsible: import("@angular/core").InputSignal<boolean>;
33
+ collapsedGroupKeys: import("@angular/core").ModelSignal<string[]>;
30
34
  structured: import("@angular/core").Signal<boolean>;
31
35
  iconFontSet: import("@angular/core").Signal<"material-icons-outlined" | undefined>;
32
36
  navigate: import("@angular/core").OutputEmitterRef<SdLayoutRootMenu>;
@@ -34,10 +38,11 @@ export declare class SdLayoutMenuTreeComponent {
34
38
  nodes: import("@angular/core").Signal<SdLayoutMenuTreeNode[]>;
35
39
  constructor();
36
40
  onNavigate(menu: SdLayoutMenu): void;
41
+ onToggleGroup(key: string): void;
37
42
  onTogglePinned(event: MouseEvent, menu: SdLayoutMenu): void;
38
43
  onPinHoverStart(key: string): void;
39
44
  onPinHoverEnd(key: string): void;
40
45
  static ɵfac: i0.ɵɵFactoryDeclaration<SdLayoutMenuTreeComponent, never>;
41
- static ɵcmp: i0.ɵɵ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>;
46
+ static ɵcmp: i0.ɵɵ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>;
42
47
  }
43
48
  export {};
@@ -7,6 +7,7 @@ export declare class SdSidebarV3 {
7
7
  userInfo: import("@angular/core").InputSignal<SdLayoutUserInfo>;
8
8
  sidebar: import("@angular/core").InputSignal<SidebarConfigurationV3>;
9
9
  isCollapsed: import("@angular/core").WritableSignal<boolean>;
10
+ protected readonly collapsedGroupKeys: import("@angular/core").WritableSignal<string[]>;
10
11
  searchText: import("@angular/core").WritableSignal<string>;
11
12
  activePath: import("@angular/core").WritableSignal<string>;
12
13
  searchResults: import("@angular/core").Signal<SdLayoutRootMenu[]>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sdcorejs/angular",
3
- "version": "19.2.8",
3
+ "version": "19.2.10",
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
  ],
@@ -150,10 +148,6 @@
150
148
  "types": "./components/card/index.d.ts",
151
149
  "default": "./fesm2022/sdcorejs-angular-components-card.mjs"
152
150
  },
153
- "./components/chart": {
154
- "types": "./components/chart/index.d.ts",
155
- "default": "./fesm2022/sdcorejs-angular-components-chart.mjs"
156
- },
157
151
  "./components/ckeditor-styles": {
158
152
  "types": "./components/ckeditor-styles/index.d.ts",
159
153
  "default": "./fesm2022/sdcorejs-angular-components-ckeditor-styles.mjs"
@@ -1,4 +0,0 @@
1
- export * from './src/bar-chart.component';
2
- export * from './src/line-chart.component';
3
- export * from './src/pie-chart.component';
4
- export * from './src/doughnut-chart.component';
@@ -1,18 +0,0 @@
1
- import { ElementRef, InputSignal, OnDestroy, OnInit } from '@angular/core';
2
- import { Chart, ChartData, ChartOptions, Plugin } from 'chart.js';
3
- import * as i0 from "@angular/core";
4
- export declare class SdBarChartComponent implements OnInit, OnDestroy {
5
- #private;
6
- canvas: import("@angular/core").Signal<ElementRef<HTMLCanvasElement>>;
7
- data: InputSignal<ChartData<'bar'>>;
8
- options: InputSignal<ChartOptions<'bar'> | undefined>;
9
- plugins: InputSignal<Plugin<'bar'>[]>;
10
- isScrollable: import("@angular/core").Signal<boolean>;
11
- computedMinWidth: import("@angular/core").Signal<number | null>;
12
- chart: Chart<'bar'> | undefined;
13
- constructor();
14
- ngOnInit(): void;
15
- ngOnDestroy(): void;
16
- static ɵfac: i0.ɵɵFactoryDeclaration<SdBarChartComponent, never>;
17
- static ɵcmp: i0.ɵɵ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>;
18
- }
@@ -1,16 +0,0 @@
1
- import { ElementRef, InputSignal, OnDestroy, OnInit } from '@angular/core';
2
- import { Chart, ChartData, ChartOptions, Plugin } from 'chart.js';
3
- import * as i0 from "@angular/core";
4
- export declare class SdDoughnutChartComponent implements OnInit, OnDestroy {
5
- #private;
6
- canvas: import("@angular/core").Signal<ElementRef<HTMLCanvasElement>>;
7
- data: InputSignal<ChartData<'doughnut'>>;
8
- options: InputSignal<ChartOptions<'doughnut'> | undefined>;
9
- plugins: InputSignal<Plugin<'doughnut'>[]>;
10
- chart: Chart<'doughnut'> | undefined;
11
- constructor();
12
- ngOnInit(): void;
13
- ngOnDestroy(): void;
14
- static ɵfac: i0.ɵɵFactoryDeclaration<SdDoughnutChartComponent, never>;
15
- static ɵcmp: i0.ɵɵ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>;
16
- }
@@ -1,18 +0,0 @@
1
- import { ElementRef, InputSignal, OnDestroy, OnInit } from '@angular/core';
2
- import { Chart, ChartData, ChartOptions, Plugin } from 'chart.js';
3
- import * as i0 from "@angular/core";
4
- export declare class SdLineChartComponent implements OnInit, OnDestroy {
5
- #private;
6
- canvas: import("@angular/core").Signal<ElementRef<HTMLCanvasElement>>;
7
- data: InputSignal<ChartData<'line'>>;
8
- options: InputSignal<ChartOptions<'line'> | undefined>;
9
- plugins: InputSignal<Plugin<'line'>[]>;
10
- isScrollable: import("@angular/core").Signal<boolean>;
11
- computedMinWidth: import("@angular/core").Signal<number | null>;
12
- chart: Chart<'line'> | undefined;
13
- constructor();
14
- ngOnInit(): void;
15
- ngOnDestroy(): void;
16
- static ɵfac: i0.ɵɵFactoryDeclaration<SdLineChartComponent, never>;
17
- static ɵcmp: i0.ɵɵ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>;
18
- }
@@ -1,16 +0,0 @@
1
- import { ElementRef, InputSignal, OnDestroy, OnInit } from '@angular/core';
2
- import { Chart, ChartData, ChartOptions, Plugin } from 'chart.js';
3
- import * as i0 from "@angular/core";
4
- export declare class SdPieChartComponent implements OnInit, OnDestroy {
5
- #private;
6
- canvas: import("@angular/core").Signal<ElementRef<HTMLCanvasElement>>;
7
- data: InputSignal<ChartData<'pie'>>;
8
- options: InputSignal<ChartOptions<'pie'> | undefined>;
9
- plugins: InputSignal<Plugin<'pie'>[]>;
10
- chart: Chart<'pie'> | undefined;
11
- constructor();
12
- ngOnInit(): void;
13
- ngOnDestroy(): void;
14
- static ɵfac: i0.ɵɵFactoryDeclaration<SdPieChartComponent, never>;
15
- static ɵcmp: i0.ɵɵ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>;
16
- }
@@ -1,290 +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');
8
- data = input.required();
9
- options = input();
10
- plugins = input([]);
11
- isScrollable = computed(() => {
12
- const labelsLength = this.data()?.labels?.length || 0;
13
- return labelsLength > 15;
14
- });
15
- computedMinWidth = computed(() => {
16
- if (!this.isScrollable())
17
- return null;
18
- const labelsLength = this.data()?.labels?.length || 0;
19
- return labelsLength * 50;
20
- });
21
- chart;
22
- constructor() {
23
- effect(() => {
24
- const currentData = this.data();
25
- const currentOptions = this.options();
26
- if (this.chart) {
27
- this.chart.data = currentData;
28
- if (currentOptions) {
29
- this.chart.options = currentOptions;
30
- }
31
- this.chart.update();
32
- }
33
- });
34
- }
35
- ngOnInit() {
36
- this.#initChart();
37
- }
38
- ngOnDestroy() {
39
- if (this.chart) {
40
- this.chart.destroy();
41
- }
42
- }
43
- #initChart() {
44
- if (this.chart) {
45
- this.chart.destroy();
46
- }
47
- const ctx = this.canvas().nativeElement.getContext('2d');
48
- if (ctx) {
49
- this.chart = new Chart(ctx, {
50
- type: 'bar',
51
- data: this.data(),
52
- options: this.options() || {},
53
- plugins: this.plugins(),
54
- });
55
- }
56
- }
57
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.21", ngImport: i0, type: SdBarChartComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
58
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "19.2.21", 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: `
59
- <div [style.overflow-x]="isScrollable() ? 'auto' : 'visible'" style="width: 100%; height: 100%;">
60
- <div [style.height]="'100%'" [style.min-width.px]="computedMinWidth()" style="position: relative;">
61
- <canvas #canvas></canvas>
62
- </div>
63
- </div>
64
- `, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
65
- }
66
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.21", ngImport: i0, type: SdBarChartComponent, decorators: [{
67
- type: Component,
68
- args: [{
69
- selector: 'sd-bar-chart',
70
- template: `
71
- <div [style.overflow-x]="isScrollable() ? 'auto' : 'visible'" style="width: 100%; height: 100%;">
72
- <div [style.height]="'100%'" [style.min-width.px]="computedMinWidth()" style="position: relative;">
73
- <canvas #canvas></canvas>
74
- </div>
75
- </div>
76
- `,
77
- changeDetection: ChangeDetectionStrategy.OnPush,
78
- standalone: true,
79
- }]
80
- }], ctorParameters: () => [] });
81
-
82
- Chart.register(...registerables);
83
- class SdLineChartComponent {
84
- canvas = viewChild.required('canvas');
85
- data = input.required();
86
- options = input();
87
- plugins = input([]);
88
- isScrollable = computed(() => {
89
- const labelsLength = this.data()?.labels?.length || 0;
90
- return labelsLength > 15;
91
- });
92
- computedMinWidth = computed(() => {
93
- if (!this.isScrollable())
94
- return null;
95
- const labelsLength = this.data()?.labels?.length || 0;
96
- return labelsLength * 50;
97
- });
98
- chart;
99
- constructor() {
100
- effect(() => {
101
- const currentData = this.data();
102
- const currentOptions = this.options();
103
- if (this.chart) {
104
- this.chart.data = currentData;
105
- if (currentOptions) {
106
- this.chart.options = currentOptions;
107
- }
108
- this.chart.update();
109
- }
110
- });
111
- }
112
- ngOnInit() {
113
- this.#initChart();
114
- }
115
- ngOnDestroy() {
116
- if (this.chart) {
117
- this.chart.destroy();
118
- }
119
- }
120
- #initChart() {
121
- if (this.chart) {
122
- this.chart.destroy();
123
- }
124
- const ctx = this.canvas().nativeElement.getContext('2d');
125
- if (ctx) {
126
- this.chart = new Chart(ctx, {
127
- type: 'line',
128
- data: this.data(),
129
- options: this.options() || {},
130
- plugins: this.plugins(),
131
- });
132
- }
133
- }
134
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.21", ngImport: i0, type: SdLineChartComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
135
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "19.2.21", 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: `
136
- <div [style.overflow-x]="isScrollable() ? 'auto' : 'visible'" style="width: 100%; height: 100%;">
137
- <div [style.height]="'100%'" [style.min-width.px]="computedMinWidth()" style="position: relative;">
138
- <canvas #canvas></canvas>
139
- </div>
140
- </div>
141
- `, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
142
- }
143
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.21", ngImport: i0, type: SdLineChartComponent, decorators: [{
144
- type: Component,
145
- args: [{
146
- selector: 'sd-line-chart',
147
- 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
- `,
154
- changeDetection: ChangeDetectionStrategy.OnPush,
155
- standalone: true,
156
- }]
157
- }], ctorParameters: () => [] });
158
-
159
- Chart.register(...registerables);
160
- class SdPieChartComponent {
161
- canvas = viewChild.required('canvas');
162
- data = input.required();
163
- options = input();
164
- plugins = input([]);
165
- chart;
166
- constructor() {
167
- effect(() => {
168
- const currentData = this.data();
169
- const currentOptions = this.options();
170
- if (this.chart) {
171
- this.chart.data = currentData;
172
- if (currentOptions) {
173
- this.chart.options = currentOptions;
174
- }
175
- this.chart.update();
176
- }
177
- });
178
- }
179
- ngOnInit() {
180
- this.#initChart();
181
- }
182
- ngOnDestroy() {
183
- if (this.chart) {
184
- this.chart.destroy();
185
- }
186
- }
187
- #initChart() {
188
- if (this.chart) {
189
- this.chart.destroy();
190
- }
191
- const ctx = this.canvas().nativeElement.getContext('2d');
192
- if (ctx) {
193
- this.chart = new Chart(ctx, {
194
- type: 'pie',
195
- data: this.data(),
196
- options: this.options() || {},
197
- plugins: this.plugins(),
198
- });
199
- }
200
- }
201
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.21", ngImport: i0, type: SdPieChartComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
202
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "19.2.21", 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: `
203
- <div style="position: relative; height: 100%; width: 100%;">
204
- <canvas #canvas></canvas>
205
- </div>
206
- `, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
207
- }
208
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.21", ngImport: i0, type: SdPieChartComponent, decorators: [{
209
- type: Component,
210
- args: [{
211
- selector: 'sd-pie-chart',
212
- template: `
213
- <div style="position: relative; height: 100%; width: 100%;">
214
- <canvas #canvas></canvas>
215
- </div>
216
- `,
217
- changeDetection: ChangeDetectionStrategy.OnPush,
218
- standalone: true,
219
- }]
220
- }], ctorParameters: () => [] });
221
-
222
- Chart.register(...registerables);
223
- class SdDoughnutChartComponent {
224
- canvas = viewChild.required('canvas');
225
- data = input.required();
226
- options = input();
227
- plugins = input([]);
228
- chart;
229
- constructor() {
230
- effect(() => {
231
- const currentData = this.data();
232
- const currentOptions = this.options();
233
- if (this.chart) {
234
- this.chart.data = currentData;
235
- if (currentOptions) {
236
- this.chart.options = currentOptions;
237
- }
238
- this.chart.update();
239
- }
240
- });
241
- }
242
- ngOnInit() {
243
- this.#initChart();
244
- }
245
- ngOnDestroy() {
246
- if (this.chart) {
247
- this.chart.destroy();
248
- }
249
- }
250
- #initChart() {
251
- if (this.chart) {
252
- this.chart.destroy();
253
- }
254
- const ctx = this.canvas().nativeElement.getContext('2d');
255
- if (ctx) {
256
- this.chart = new Chart(ctx, {
257
- type: 'doughnut',
258
- data: this.data(),
259
- options: this.options() || {},
260
- plugins: this.plugins(),
261
- });
262
- }
263
- }
264
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.21", ngImport: i0, type: SdDoughnutChartComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
265
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "19.2.21", 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: `
266
- <div style="position: relative; height: 100%; width: 100%;">
267
- <canvas #canvas></canvas>
268
- </div>
269
- `, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
270
- }
271
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.21", ngImport: i0, type: SdDoughnutChartComponent, decorators: [{
272
- type: Component,
273
- args: [{
274
- selector: 'sd-doughnut-chart',
275
- template: `
276
- <div style="position: relative; height: 100%; width: 100%;">
277
- <canvas #canvas></canvas>
278
- </div>
279
- `,
280
- changeDetection: ChangeDetectionStrategy.OnPush,
281
- standalone: true,
282
- }]
283
- }], ctorParameters: () => [] });
284
-
285
- /**
286
- * Generated bundle index. Do not edit.
287
- */
288
-
289
- export { SdBarChartComponent, SdDoughnutChartComponent, SdLineChartComponent, SdPieChartComponent };
290
- //# 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":[],"mapp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