codexly-ui 0.1.24 → 0.2.0

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.
@@ -0,0 +1,190 @@
1
+ import * as i0 from '@angular/core';
2
+ import { input, inject, Injector, computed, effect, untracked, ViewChild, ChangeDetectionStrategy, ViewEncapsulation, Component } from '@angular/core';
3
+ import { Chart, LineController, BarController, PieController, DoughnutController, RadarController, PolarAreaController, CategoryScale, LinearScale, RadialLinearScale, BarElement, LineElement, PointElement, ArcElement, Filler, Tooltip, Legend } from 'chart.js';
4
+ import { CLX_COLOR_HEX } from 'codexly-ui';
5
+
6
+ const CLX_CHART_DEFAULTS_NO_SCALES = {
7
+ responsive: true,
8
+ maintainAspectRatio: false,
9
+ font: {
10
+ family: 'Roboto, ui-sans-serif, system-ui, -apple-system, sans-serif',
11
+ size: 12,
12
+ },
13
+ plugins: {
14
+ legend: { display: true, position: 'top', align: 'center' },
15
+ tooltip: { enabled: true },
16
+ },
17
+ };
18
+ const CLX_CHART_DEFAULTS = {
19
+ responsive: true,
20
+ maintainAspectRatio: false,
21
+ font: {
22
+ family: 'Roboto, ui-sans-serif, system-ui, -apple-system, sans-serif',
23
+ size: 12,
24
+ },
25
+ plugins: {
26
+ legend: {
27
+ display: true,
28
+ position: 'top',
29
+ align: 'center'
30
+ },
31
+ tooltip: {
32
+ enabled: true
33
+ },
34
+ },
35
+ scales: {
36
+ x: {
37
+ display: true,
38
+ grid: {
39
+ display: false
40
+ },
41
+ border: {
42
+ color: CLX_COLOR_HEX.slate100
43
+ },
44
+ ticks: {
45
+ color: CLX_COLOR_HEX.slate400
46
+ }
47
+ },
48
+ y: {
49
+ display: true,
50
+ beginAtZero: true,
51
+ grid: {
52
+ display: true,
53
+ color: CLX_COLOR_HEX.slate100
54
+ },
55
+ border: {
56
+ color: CLX_COLOR_HEX.slate100
57
+ },
58
+ ticks: {
59
+ color: CLX_COLOR_HEX.slate400
60
+ }
61
+ },
62
+ },
63
+ };
64
+ const CLX_CHART_PALETTE = Object.values(CLX_COLOR_HEX);
65
+ /** Versiones con opacidad 20% para backgrounds de áreas/barras */
66
+ const CLX_CHART_PALETTE_ALPHA = CLX_CHART_PALETTE.map(hex => `${hex}33`);
67
+ const AREA_TYPES = ['line', 'radar'];
68
+ const MULTI_SLICE_TYPES = ['pie', 'doughnut', 'polarArea'];
69
+ function shuffled(arr) {
70
+ const a = [...arr];
71
+ for (let i = a.length - 1; i > 0; i--) {
72
+ const j = Math.floor(Math.random() * (i + 1));
73
+ [a[i], a[j]] = [a[j], a[i]];
74
+ }
75
+ return a;
76
+ }
77
+ function applyChartDefaults(type, data) {
78
+ const palette = shuffled(CLX_CHART_PALETTE);
79
+ const paletteAlpha = palette.map(hex => `${hex}33`);
80
+ const datasets = data.datasets.map((ds, i) => {
81
+ const color = palette[i % palette.length];
82
+ const alpha = paletteAlpha[i % paletteAlpha.length];
83
+ if (MULTI_SLICE_TYPES.includes(type)) {
84
+ const count = ds.data.length;
85
+ return {
86
+ ...ds,
87
+ backgroundColor: ds.backgroundColor ?? Array.from({ length: count }, (_, j) => palette[j % palette.length]),
88
+ borderColor: ds.borderColor ?? '#fff',
89
+ borderWidth: ds.borderWidth ?? 2,
90
+ };
91
+ }
92
+ if (AREA_TYPES.includes(type)) {
93
+ return {
94
+ ...ds,
95
+ borderColor: ds.borderColor ?? color,
96
+ backgroundColor: ds.backgroundColor ?? alpha,
97
+ pointBackgroundColor: ds.pointBackgroundColor ?? color,
98
+ fill: ds.fill ?? (type === 'line' ? false : true),
99
+ tension: ds.tension ?? 0.4,
100
+ };
101
+ }
102
+ return {
103
+ ...ds,
104
+ backgroundColor: ds.backgroundColor ?? color,
105
+ borderColor: ds.borderColor ?? color,
106
+ borderWidth: ds.borderWidth ?? 0,
107
+ barPercentage: ds.barPercentage ?? 0.5,
108
+ categoryPercentage: ds.categoryPercentage ?? 0.6,
109
+ };
110
+ });
111
+ return { ...data, datasets };
112
+ }
113
+
114
+ Chart.register(LineController, BarController, PieController, DoughnutController, RadarController, PolarAreaController, CategoryScale, LinearScale, RadialLinearScale, BarElement, LineElement, PointElement, ArcElement, Filler, Tooltip, Legend);
115
+ const NO_SCALE_TYPES = ['doughnut', 'pie', 'polarArea'];
116
+ class ClxChartComponent {
117
+ canvasRef;
118
+ type = input.required(...(ngDevMode ? [{ debugName: "type" }] : /* istanbul ignore next */ []));
119
+ data = input.required(...(ngDevMode ? [{ debugName: "data" }] : /* istanbul ignore next */ []));
120
+ options = input({}, ...(ngDevMode ? [{ debugName: "options" }] : /* istanbul ignore next */ []));
121
+ height = input(300, ...(ngDevMode ? [{ debugName: "height" }] : /* istanbul ignore next */ []));
122
+ ariaLabel = input(...(ngDevMode ? [undefined, { debugName: "ariaLabel" }] : /* istanbul ignore next */ []));
123
+ // SOLUCIÓN AL ERROR: Añadimos el input loading
124
+ loading = input(false, ...(ngDevMode ? [{ debugName: "loading" }] : /* istanbul ignore next */ []));
125
+ _chart;
126
+ _injector = inject(Injector);
127
+ _hostHeight = computed(() => typeof this.height() === 'number' ? `${this.height()}px` : this.height(), ...(ngDevMode ? [{ debugName: "_hostHeight" }] : /* istanbul ignore next */ []));
128
+ ngAfterViewInit() {
129
+ this._createChart();
130
+ effect(() => {
131
+ const currentType = this.type();
132
+ const currentData = this.data();
133
+ if (this._chart) {
134
+ this._chart.config.type = currentType;
135
+ this._chart.data = applyChartDefaults(currentType, currentData);
136
+ this._chart.update();
137
+ }
138
+ }, { injector: this._injector });
139
+ }
140
+ _createChart() {
141
+ const ctx = this.canvasRef.nativeElement.getContext('2d');
142
+ if (!ctx)
143
+ return;
144
+ const type = untracked(() => this.type());
145
+ this._chart = new Chart(ctx, {
146
+ type,
147
+ data: applyChartDefaults(type, untracked(() => this.data())),
148
+ options: { ...(NO_SCALE_TYPES.includes(type) ? CLX_CHART_DEFAULTS_NO_SCALES : CLX_CHART_DEFAULTS), ...untracked(() => this.options()) },
149
+ });
150
+ }
151
+ ngOnDestroy() {
152
+ this._chart?.destroy();
153
+ }
154
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.15", ngImport: i0, type: ClxChartComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
155
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.15", type: ClxChartComponent, isStandalone: true, selector: "clx-chart", inputs: { type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: true, transformFunction: null }, data: { classPropertyName: "data", publicName: "data", isSignal: true, isRequired: true, transformFunction: null }, options: { classPropertyName: "options", publicName: "options", isSignal: true, isRequired: false, transformFunction: null }, height: { classPropertyName: "height", publicName: "height", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, loading: { classPropertyName: "loading", publicName: "loading", isSignal: true, isRequired: false, transformFunction: null } }, viewQueries: [{ propertyName: "canvasRef", first: true, predicate: ["canvas"], descendants: true }], ngImport: i0, template: `
156
+ <div class="clx-chart-container" [style.height]="_hostHeight()" [class.clx-loading]="loading()">
157
+ <canvas #canvas role="img" [attr.aria-label]="ariaLabel() || 'Chart'"></canvas>
158
+
159
+ @if (loading()) {
160
+ <div class="clx-chart-loader">
161
+ <div class="animate-spin rounded-full h-8 w-8 border-b-2 border-indigo-500"></div>
162
+ </div>
163
+ }
164
+ </div>
165
+ `, isInline: true, styles: [":host{display:block;width:100%}.clx-chart-container{position:relative;width:100%}canvas{display:block;width:100%!important}.clx-chart-loader{position:absolute;inset:0;background:#fff9;display:flex;align-items:center;justify-content:center;z-index:10;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px)}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
166
+ }
167
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.15", ngImport: i0, type: ClxChartComponent, decorators: [{
168
+ type: Component,
169
+ args: [{ selector: 'clx-chart', standalone: true, template: `
170
+ <div class="clx-chart-container" [style.height]="_hostHeight()" [class.clx-loading]="loading()">
171
+ <canvas #canvas role="img" [attr.aria-label]="ariaLabel() || 'Chart'"></canvas>
172
+
173
+ @if (loading()) {
174
+ <div class="clx-chart-loader">
175
+ <div class="animate-spin rounded-full h-8 w-8 border-b-2 border-indigo-500"></div>
176
+ </div>
177
+ }
178
+ </div>
179
+ `, encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, styles: [":host{display:block;width:100%}.clx-chart-container{position:relative;width:100%}canvas{display:block;width:100%!important}.clx-chart-loader{position:absolute;inset:0;background:#fff9;display:flex;align-items:center;justify-content:center;z-index:10;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px)}\n"] }]
180
+ }], propDecorators: { canvasRef: [{
181
+ type: ViewChild,
182
+ args: ['canvas']
183
+ }], type: [{ type: i0.Input, args: [{ isSignal: true, alias: "type", required: true }] }], data: [{ type: i0.Input, args: [{ isSignal: true, alias: "data", required: true }] }], options: [{ type: i0.Input, args: [{ isSignal: true, alias: "options", required: false }] }], height: [{ type: i0.Input, args: [{ isSignal: true, alias: "height", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], loading: [{ type: i0.Input, args: [{ isSignal: true, alias: "loading", required: false }] }] } });
184
+
185
+ /**
186
+ * Generated bundle index. Do not edit.
187
+ */
188
+
189
+ export { ClxChartComponent };
190
+ //# sourceMappingURL=codexly-ui-charts.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"codexly-ui-charts.mjs","sources":["../../../projects/codexly-ui/charts/lib/chart.config.ts","../../../projects/codexly-ui/charts/lib/clx-chart.component.ts","../../../projects/codexly-ui/charts/codexly-ui-charts.ts"],"sourcesContent":["import type { ChartData, ChartOptions, ChartType } from 'chart.js';\nimport { CLX_COLOR_HEX } from 'codexly-ui';\n\nexport const CLX_CHART_DEFAULTS_NO_SCALES: ChartOptions = {\n responsive: true,\n maintainAspectRatio: false,\n font: {\n family: 'Roboto, ui-sans-serif, system-ui, -apple-system, sans-serif',\n size: 12,\n },\n plugins: {\n legend: { display: true, position: 'top', align: 'center' },\n tooltip: { enabled: true },\n },\n} as ChartOptions;\n\nexport const CLX_CHART_DEFAULTS: ChartOptions = {\n responsive: true,\n maintainAspectRatio: false,\n font: {\n family: 'Roboto, ui-sans-serif, system-ui, -apple-system, sans-serif',\n size: 12,\n },\n plugins: {\n legend: {\n display: true,\n position: 'top',\n align: 'center'\n },\n tooltip: {\n enabled: true\n },\n },\n scales: {\n x: { \n display: true,\n grid: {\n display: false\n },\n border: {\n color: CLX_COLOR_HEX.slate100\n },\n ticks: {\n color: CLX_COLOR_HEX.slate400\n }\n },\n y: {\n display: true,\n beginAtZero: true,\n grid: {\n display: true,\n color: CLX_COLOR_HEX.slate100\n },\n border: {\n color: CLX_COLOR_HEX.slate100\n },\n ticks: {\n color: CLX_COLOR_HEX.slate400\n }\n },\n },\n} as ChartOptions;\n\nexport const CLX_CHART_PALETTE: string[] = Object.values(CLX_COLOR_HEX);\n\n/** Versiones con opacidad 20% para backgrounds de áreas/barras */\nexport const CLX_CHART_PALETTE_ALPHA: string[] = CLX_CHART_PALETTE.map(hex => `${hex}33`);\n\nconst AREA_TYPES: ChartType[] = ['line', 'radar'];\nconst MULTI_SLICE_TYPES: ChartType[] = ['pie', 'doughnut', 'polarArea'];\n\nfunction shuffled(arr: string[]): string[] {\n const a = [...arr];\n for (let i = a.length - 1; i > 0; i--) {\n const j = Math.floor(Math.random() * (i + 1));\n [a[i], a[j]] = [a[j], a[i]];\n }\n return a;\n}\n\nexport function applyChartDefaults(type: ChartType, data: ChartData): ChartData {\n const palette = shuffled(CLX_CHART_PALETTE);\n const paletteAlpha = palette.map(hex => `${hex}33`);\n const datasets = data.datasets.map((ds, i) => {\n const color = palette[i % palette.length];\n const alpha = paletteAlpha[i % paletteAlpha.length];\n\n if (MULTI_SLICE_TYPES.includes(type)) {\n const count = (ds.data as number[]).length;\n return {\n ...ds,\n backgroundColor: ds.backgroundColor ?? Array.from({ length: count }, (_, j) =>\n palette[j % palette.length]\n ),\n borderColor: ds.borderColor ?? '#fff',\n borderWidth: (ds as any).borderWidth ?? 2,\n };\n }\n\n if (AREA_TYPES.includes(type)) {\n return {\n ...ds,\n borderColor: ds.borderColor ?? color,\n backgroundColor: ds.backgroundColor ?? alpha,\n pointBackgroundColor: (ds as any).pointBackgroundColor ?? color,\n fill: (ds as any).fill ?? (type === 'line' ? false : true),\n tension: (ds as any).tension ?? 0.4,\n };\n }\n\n return {\n ...ds,\n backgroundColor: ds.backgroundColor ?? color,\n borderColor: ds.borderColor ?? color,\n borderWidth: (ds as any).borderWidth ?? 0,\n barPercentage: (ds as any).barPercentage ?? 0.5,\n categoryPercentage: (ds as any).categoryPercentage ?? 0.6,\n };\n });\n\n return { ...data, datasets } as ChartData;\n}\n","import {\n AfterViewInit,\n ChangeDetectionStrategy,\n Component,\n computed,\n effect,\n ElementRef,\n inject,\n Injector,\n input,\n OnDestroy,\n untracked,\n ViewChild,\n ViewEncapsulation,\n} from '@angular/core';\n\nimport {\n Chart,\n LineController,\n BarController,\n PieController,\n DoughnutController,\n RadarController,\n PolarAreaController,\n CategoryScale,\n LinearScale,\n RadialLinearScale,\n BarElement,\n LineElement,\n PointElement,\n ArcElement,\n Filler,\n Tooltip,\n Legend,\n type ChartData,\n type ChartOptions,\n} from 'chart.js';\n\nimport { applyChartDefaults, CLX_CHART_DEFAULTS, CLX_CHART_DEFAULTS_NO_SCALES } from './chart.config';\nimport type { ClxChartType } from './clx-chart.types';\n\nChart.register(\n LineController, BarController, PieController,\n DoughnutController, RadarController, PolarAreaController,\n CategoryScale, LinearScale, RadialLinearScale,\n BarElement, LineElement, PointElement, ArcElement,\n Filler, Tooltip, Legend,\n);\n\nconst NO_SCALE_TYPES = ['doughnut', 'pie', 'polarArea'];\n\n@Component({\n selector: 'clx-chart',\n standalone: true,\n template: `\n <div class=\"clx-chart-container\" [style.height]=\"_hostHeight()\" [class.clx-loading]=\"loading()\">\n <canvas #canvas role=\"img\" [attr.aria-label]=\"ariaLabel() || 'Chart'\"></canvas>\n \n @if (loading()) {\n <div class=\"clx-chart-loader\">\n <div class=\"animate-spin rounded-full h-8 w-8 border-b-2 border-indigo-500\"></div>\n </div>\n }\n </div>\n `,\n styles: [`\n :host { display: block; width: 100%; }\n .clx-chart-container { position: relative; width: 100%; }\n canvas { display: block; width: 100% !important; }\n \n .clx-chart-loader {\n position: absolute;\n inset: 0;\n background: rgba(255, 255, 255, 0.6);\n display: flex;\n align-items: center;\n justify-content: center;\n z-index: 10;\n backdrop-filter: blur(2px);\n }\n `],\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class ClxChartComponent implements AfterViewInit, OnDestroy {\n @ViewChild('canvas') canvasRef!: ElementRef<HTMLCanvasElement>;\n\n type = input.required<ClxChartType>();\n data = input.required<ChartData>();\n options = input<ChartOptions>({});\n height = input<number | string>(300);\n ariaLabel = input<string>();\n \n // SOLUCIÓN AL ERROR: Añadimos el input loading\n loading = input<boolean>(false);\n\n private _chart?: Chart;\n private _injector = inject(Injector);\n\n _hostHeight = computed(() => \n typeof this.height() === 'number' ? `${this.height()}px` : this.height()\n );\n\n ngAfterViewInit(): void {\n this._createChart();\n\n effect(() => {\n const currentType = this.type();\n const currentData = this.data();\n\n if (this._chart) {\n (this._chart.config as any).type = currentType;\n this._chart.data = applyChartDefaults(currentType, currentData);\n this._chart.update();\n }\n }, { injector: this._injector });\n }\n\n private _createChart(): void {\n const ctx = this.canvasRef.nativeElement.getContext('2d');\n if (!ctx) return;\n\n const type = untracked(() => this.type());\n this._chart = new Chart(ctx, {\n type,\n data: applyChartDefaults(type, untracked(() => this.data())),\n options: { ...(NO_SCALE_TYPES.includes(type) ? CLX_CHART_DEFAULTS_NO_SCALES : CLX_CHART_DEFAULTS), ...untracked(() => this.options()) },\n });\n }\n\n ngOnDestroy(): void {\n this._chart?.destroy();\n }\n}","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;AAGO,MAAM,4BAA4B,GAAiB;AACxD,IAAA,UAAU,EAAE,IAAI;AAChB,IAAA,mBAAmB,EAAE,KAAK;AAC1B,IAAA,IAAI,EAAE;AACJ,QAAA,MAAM,EAAE,6DAA6D;AACrE,QAAA,IAAI,EAAE,EAAE;AACT,KAAA;AACD,IAAA,OAAO,EAAE;AACP,QAAA,MAAM,EAAG,EAAE,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE;AAC5D,QAAA,OAAO,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE;AAC3B,KAAA;CACc;AAEV,MAAM,kBAAkB,GAAiB;AAC9C,IAAA,UAAU,EAAE,IAAI;AAChB,IAAA,mBAAmB,EAAE,KAAK;AAC1B,IAAA,IAAI,EAAE;AACJ,QAAA,MAAM,EAAE,6DAA6D;AACrE,QAAA,IAAI,EAAE,EAAE;AACT,KAAA;AACD,IAAA,OAAO,EAAE;AACP,QAAA,MAAM,EAAE;AACN,YAAA,OAAO,EAAE,IAAI;AACb,YAAA,QAAQ,EAAE,KAAK;AACf,YAAA,KAAK,EAAE;AACR,SAAA;AACD,QAAA,OAAO,EAAE;AACP,YAAA,OAAO,EAAE;AACV,SAAA;AACF,KAAA;AACD,IAAA,MAAM,EAAE;AACN,QAAA,CAAC,EAAE;AACD,YAAA,OAAO,EAAE,IAAI;AACb,YAAA,IAAI,EAAE;AACJ,gBAAA,OAAO,EAAE;AACV,aAAA;AACD,YAAA,MAAM,EAAE;gBACN,KAAK,EAAE,aAAa,CAAC;AACtB,aAAA;AACD,YAAA,KAAK,EAAE;gBACL,KAAK,EAAE,aAAa,CAAC;AACtB;AACF,SAAA;AACD,QAAA,CAAC,EAAE;AACD,YAAA,OAAO,EAAE,IAAI;AACb,YAAA,WAAW,EAAE,IAAI;AACjB,YAAA,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AA,WAAA,EAAA,CAAA,EAAA,YAAA,EAAA,WAAA,EAAA,KAAA,EAAA,IAAA,EAAA,SAAA,EAAA,CAAA,QAAA,CAAA,EAAA,WAAA,EAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EA9BlB;;;;;;;;;;AAUT,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,MAAA,EAAA,CAAA,0TAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,aAAA,EAAA,EAAA,CAAA,iBAAA,CAAA,IAAA,EAAA,CAAA;;4FAoBU,iBAAiB,EAAA,UAAA,EAAA,CAAA;kBAjC7B,SAAS;+BACE,WAAW,EAAA,UAAA,EACT,IAAI,EAAA,QAAA,EACN;;;;;;;;;;AAUT,EAAA,CAAA,EAAA,aAAA,EAiBc,iBAAiB,CAAC,IAAI,EAAA,eAAA,EACpB,uBAAuB,CAAC,MAAM,EAAA,MAAA,EAAA,CAAA,0TAAA,CAAA,EAAA;;sBAG9C,SAAS;uBAAC,QAAQ;;;ACrFrB;;AAEG;;;;"}
@@ -1,5 +1,5 @@
1
1
  import * as i0 from '@angular/core';
2
- import { InjectionToken, inject, PLATFORM_ID, signal, computed, effect, Injectable, input, ChangeDetectionStrategy, ViewEncapsulation, Component, ElementRef, Renderer2, ApplicationRef, EnvironmentInjector, DestroyRef, createComponent, Directive, output, contentChildren, NgZone, model, untracked, forwardRef, viewChild, HostListener, ViewChildren, contentChild, Injector, ViewChild, ChangeDetectorRef, ContentChildren, Input, numberAttribute, booleanAttribute } from '@angular/core';
2
+ import { InjectionToken, inject, PLATFORM_ID, signal, computed, effect, Injectable, input, ChangeDetectionStrategy, ViewEncapsulation, Component, ElementRef, Renderer2, ApplicationRef, EnvironmentInjector, DestroyRef, createComponent, Directive, output, contentChildren, NgZone, model, untracked, forwardRef, viewChild, HostListener, ViewChildren, contentChild, ViewChild, Injector, ChangeDetectorRef, ContentChildren, Input, numberAttribute, booleanAttribute } from '@angular/core';
3
3
  import { isPlatformBrowser, CurrencyPipe, NgTemplateOutlet, DecimalPipe, NgStyle, DOCUMENT } from '@angular/common';
4
4
  import * as i1 from '@angular/forms';
5
5
  import { NG_VALUE_ACCESSOR, FormsModule, NgControl, FormControl, ReactiveFormsModule, FormGroup, Validators } from '@angular/forms';
@@ -8,7 +8,6 @@ import { startWith, map, debounceTime, distinctUntilChanged, switchMap, of, catc
8
8
  import * as i1$1 from '@angular/cdk/overlay';
9
9
  import { ScrollStrategyOptions, OverlayModule } from '@angular/cdk/overlay';
10
10
  import { ScrollingModule, CdkScrollable } from '@angular/cdk/scrolling';
11
- import { Chart, LineController, BarController, PieController, DoughnutController, RadarController, PolarAreaController, CategoryScale, LinearScale, RadialLinearScale, BarElement, LineElement, PointElement, ArcElement, Filler, Tooltip, Legend } from 'chart.js';
12
11
  import { RouterLink, RouterLinkActive } from '@angular/router';
13
12
 
14
13
  // ── Parse 'red' | 'red-500' → { color, shade } ───────────────────────────────
@@ -7391,185 +7390,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.15", ngImpo
7391
7390
  }]
7392
7391
  }], propDecorators: { icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: false }] }], color: [{ type: i0.Input, args: [{ isSignal: true, alias: "color", required: false }] }], title: [{ type: i0.Input, args: [{ isSignal: true, alias: "title", required: true }] }], description: [{ type: i0.Input, args: [{ isSignal: true, alias: "description", required: false }] }], time: [{ type: i0.Input, args: [{ isSignal: true, alias: "time", required: false }] }], last: [{ type: i0.Input, args: [{ isSignal: true, alias: "last", required: false }] }] } });
7393
7392
 
7394
- const CLX_CHART_DEFAULTS_NO_SCALES = {
7395
- responsive: true,
7396
- maintainAspectRatio: false,
7397
- font: {
7398
- family: 'Roboto, ui-sans-serif, system-ui, -apple-system, sans-serif',
7399
- size: 12,
7400
- },
7401
- plugins: {
7402
- legend: { display: true, position: 'top', align: 'center' },
7403
- tooltip: { enabled: true },
7404
- },
7405
- };
7406
- const CLX_CHART_DEFAULTS = {
7407
- responsive: true,
7408
- maintainAspectRatio: false,
7409
- font: {
7410
- family: 'Roboto, ui-sans-serif, system-ui, -apple-system, sans-serif',
7411
- size: 12,
7412
- },
7413
- plugins: {
7414
- legend: {
7415
- display: true,
7416
- position: 'top',
7417
- align: 'center'
7418
- },
7419
- tooltip: {
7420
- enabled: true
7421
- },
7422
- },
7423
- scales: {
7424
- x: {
7425
- display: true,
7426
- grid: {
7427
- display: false
7428
- },
7429
- border: {
7430
- color: CLX_COLOR_HEX.slate100
7431
- },
7432
- ticks: {
7433
- color: CLX_COLOR_HEX.slate400
7434
- }
7435
- },
7436
- y: {
7437
- display: true,
7438
- beginAtZero: true,
7439
- grid: {
7440
- display: true,
7441
- color: CLX_COLOR_HEX.slate100
7442
- },
7443
- border: {
7444
- color: CLX_COLOR_HEX.slate100
7445
- },
7446
- ticks: {
7447
- color: CLX_COLOR_HEX.slate400
7448
- }
7449
- },
7450
- },
7451
- };
7452
- const CLX_CHART_PALETTE = Object.values(CLX_COLOR_HEX);
7453
- /** Versiones con opacidad 20% para backgrounds de áreas/barras */
7454
- const CLX_CHART_PALETTE_ALPHA = CLX_CHART_PALETTE.map(hex => `${hex}33`);
7455
- const AREA_TYPES = ['line', 'radar'];
7456
- const MULTI_SLICE_TYPES = ['pie', 'doughnut', 'polarArea'];
7457
- function shuffled(arr) {
7458
- const a = [...arr];
7459
- for (let i = a.length - 1; i > 0; i--) {
7460
- const j = Math.floor(Math.random() * (i + 1));
7461
- [a[i], a[j]] = [a[j], a[i]];
7462
- }
7463
- return a;
7464
- }
7465
- function applyChartDefaults(type, data) {
7466
- const palette = shuffled(CLX_CHART_PALETTE);
7467
- const paletteAlpha = palette.map(hex => `${hex}33`);
7468
- const datasets = data.datasets.map((ds, i) => {
7469
- const color = palette[i % palette.length];
7470
- const alpha = paletteAlpha[i % paletteAlpha.length];
7471
- if (MULTI_SLICE_TYPES.includes(type)) {
7472
- const count = ds.data.length;
7473
- return {
7474
- ...ds,
7475
- backgroundColor: ds.backgroundColor ?? Array.from({ length: count }, (_, j) => palette[j % palette.length]),
7476
- borderColor: ds.borderColor ?? '#fff',
7477
- borderWidth: ds.borderWidth ?? 2,
7478
- };
7479
- }
7480
- if (AREA_TYPES.includes(type)) {
7481
- return {
7482
- ...ds,
7483
- borderColor: ds.borderColor ?? color,
7484
- backgroundColor: ds.backgroundColor ?? alpha,
7485
- pointBackgroundColor: ds.pointBackgroundColor ?? color,
7486
- fill: ds.fill ?? (type === 'line' ? false : true),
7487
- tension: ds.tension ?? 0.4,
7488
- };
7489
- }
7490
- return {
7491
- ...ds,
7492
- backgroundColor: ds.backgroundColor ?? color,
7493
- borderColor: ds.borderColor ?? color,
7494
- borderWidth: ds.borderWidth ?? 0,
7495
- barPercentage: ds.barPercentage ?? 0.5,
7496
- categoryPercentage: ds.categoryPercentage ?? 0.6,
7497
- };
7498
- });
7499
- return { ...data, datasets };
7500
- }
7501
-
7502
- Chart.register(LineController, BarController, PieController, DoughnutController, RadarController, PolarAreaController, CategoryScale, LinearScale, RadialLinearScale, BarElement, LineElement, PointElement, ArcElement, Filler, Tooltip, Legend);
7503
- const NO_SCALE_TYPES = ['doughnut', 'pie', 'polarArea'];
7504
- class ClxChartComponent {
7505
- canvasRef;
7506
- type = input.required(...(ngDevMode ? [{ debugName: "type" }] : /* istanbul ignore next */ []));
7507
- data = input.required(...(ngDevMode ? [{ debugName: "data" }] : /* istanbul ignore next */ []));
7508
- options = input({}, ...(ngDevMode ? [{ debugName: "options" }] : /* istanbul ignore next */ []));
7509
- height = input(300, ...(ngDevMode ? [{ debugName: "height" }] : /* istanbul ignore next */ []));
7510
- ariaLabel = input(...(ngDevMode ? [undefined, { debugName: "ariaLabel" }] : /* istanbul ignore next */ []));
7511
- // SOLUCIÓN AL ERROR: Añadimos el input loading
7512
- loading = input(false, ...(ngDevMode ? [{ debugName: "loading" }] : /* istanbul ignore next */ []));
7513
- _chart;
7514
- _injector = inject(Injector);
7515
- _hostHeight = computed(() => typeof this.height() === 'number' ? `${this.height()}px` : this.height(), ...(ngDevMode ? [{ debugName: "_hostHeight" }] : /* istanbul ignore next */ []));
7516
- ngAfterViewInit() {
7517
- this._createChart();
7518
- effect(() => {
7519
- const currentType = this.type();
7520
- const currentData = this.data();
7521
- if (this._chart) {
7522
- this._chart.config.type = currentType;
7523
- this._chart.data = applyChartDefaults(currentType, currentData);
7524
- this._chart.update();
7525
- }
7526
- }, { injector: this._injector });
7527
- }
7528
- _createChart() {
7529
- const ctx = this.canvasRef.nativeElement.getContext('2d');
7530
- if (!ctx)
7531
- return;
7532
- const type = untracked(() => this.type());
7533
- this._chart = new Chart(ctx, {
7534
- type,
7535
- data: applyChartDefaults(type, untracked(() => this.data())),
7536
- options: { ...(NO_SCALE_TYPES.includes(type) ? CLX_CHART_DEFAULTS_NO_SCALES : CLX_CHART_DEFAULTS), ...untracked(() => this.options()) },
7537
- });
7538
- }
7539
- ngOnDestroy() {
7540
- this._chart?.destroy();
7541
- }
7542
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.15", ngImport: i0, type: ClxChartComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
7543
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.15", type: ClxChartComponent, isStandalone: true, selector: "clx-chart", inputs: { type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: true, transformFunction: null }, data: { classPropertyName: "data", publicName: "data", isSignal: true, isRequired: true, transformFunction: null }, options: { classPropertyName: "options", publicName: "options", isSignal: true, isRequired: false, transformFunction: null }, height: { classPropertyName: "height", publicName: "height", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, loading: { classPropertyName: "loading", publicName: "loading", isSignal: true, isRequired: false, transformFunction: null } }, viewQueries: [{ propertyName: "canvasRef", first: true, predicate: ["canvas"], descendants: true }], ngImport: i0, template: `
7544
- <div class="clx-chart-container" [style.height]="_hostHeight()" [class.clx-loading]="loading()">
7545
- <canvas #canvas role="img" [attr.aria-label]="ariaLabel() || 'Chart'"></canvas>
7546
-
7547
- @if (loading()) {
7548
- <div class="clx-chart-loader">
7549
- <div class="animate-spin rounded-full h-8 w-8 border-b-2 border-indigo-500"></div>
7550
- </div>
7551
- }
7552
- </div>
7553
- `, isInline: true, styles: [":host{display:block;width:100%}.clx-chart-container{position:relative;width:100%}canvas{display:block;width:100%!important}.clx-chart-loader{position:absolute;inset:0;background:#fff9;display:flex;align-items:center;justify-content:center;z-index:10;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px)}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
7554
- }
7555
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.15", ngImport: i0, type: ClxChartComponent, decorators: [{
7556
- type: Component,
7557
- args: [{ selector: 'clx-chart', standalone: true, template: `
7558
- <div class="clx-chart-container" [style.height]="_hostHeight()" [class.clx-loading]="loading()">
7559
- <canvas #canvas role="img" [attr.aria-label]="ariaLabel() || 'Chart'"></canvas>
7560
-
7561
- @if (loading()) {
7562
- <div class="clx-chart-loader">
7563
- <div class="animate-spin rounded-full h-8 w-8 border-b-2 border-indigo-500"></div>
7564
- </div>
7565
- }
7566
- </div>
7567
- `, encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, styles: [":host{display:block;width:100%}.clx-chart-container{position:relative;width:100%}canvas{display:block;width:100%!important}.clx-chart-loader{position:absolute;inset:0;background:#fff9;display:flex;align-items:center;justify-content:center;z-index:10;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px)}\n"] }]
7568
- }], propDecorators: { canvasRef: [{
7569
- type: ViewChild,
7570
- args: ['canvas']
7571
- }], type: [{ type: i0.Input, args: [{ isSignal: true, alias: "type", required: true }] }], data: [{ type: i0.Input, args: [{ isSignal: true, alias: "data", required: true }] }], options: [{ type: i0.Input, args: [{ isSignal: true, alias: "options", required: false }] }], height: [{ type: i0.Input, args: [{ isSignal: true, alias: "height", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], loading: [{ type: i0.Input, args: [{ isSignal: true, alias: "loading", required: false }] }] } });
7572
-
7573
7393
  const COLOR_PICKER_SIZE_MAP = {
7574
7394
  sm: { minH: 'min-h-8', text: 'text-sm', label: 'text-xs font-medium', hint: 'text-xs', px: 'px-2.5', swatchSz: 'w-4 h-4', btnSize: 'xs' },
7575
7395
  md: { minH: 'min-h-10', text: 'text-sm', label: 'text-sm font-medium', hint: 'text-xs', px: 'px-3', swatchSz: 'w-5 h-5', btnSize: 'sm' },
@@ -15204,5 +15024,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.15", ngImpo
15204
15024
  * Generated bundle index. Do not edit.
15205
15025
  */
15206
15026
 
15207
- export { CLX_ADDON_BORDER, CLX_ADDON_TEXT, CLX_ALERT_OPTIONS, CLX_ALERT_RESOLVE, CLX_BG_ADDON, CLX_BG_DISABLED, CLX_BG_ICON_WRAP, CLX_BG_SECTION, CLX_BG_SURFACE, CLX_BORDER_DEFAULT, CLX_BORDER_DISABLED, CLX_BORDER_MEDIUM, CLX_COLOR_HEX, CLX_COLOR_HEX_100, CLX_COLOR_MAP, CLX_FONT_CATALOG, CLX_MODAL_ANIM_CONFIG, CLX_MODAL_DATA, CLX_MODAL_REF, CLX_OPTION_DISABLED, CLX_PLACEHOLDER, CLX_RADIO_GROUP, CLX_RADIUS_MAP, CLX_TEXT_BODY, CLX_TEXT_DISABLED, CLX_TEXT_HEADING, CLX_TEXT_HINT, CLX_TEXT_IDLE, CLX_TEXT_INPUT, CLX_TEXT_LABEL, CLX_TEXT_OPTION, CLX_TEXT_SUBTITLE, CLX_TEXT_TITLE, CLX_THEME_CONFIG, CLX_THEME_DEFAULTS, CLX_TOAST_DEFAULTS, ClxAlertComponent, ClxAlertService, ClxAnimateDirective, ClxAnimateGroupDirective, ClxAnimateService, ClxAppLayoutComponent, ClxAvatarComponent, ClxBadgeComponent, ClxBrandComponent, ClxButtonComponent, ClxButtonGroupComponent, ClxCardBodyDirective, ClxCardComponent, ClxCardFooterDirective, ClxCardHeaderDirective, ClxCarouselComponent, ClxCarouselDirective, ClxCartComponent, ClxCartSummaryDrawer, ClxCellDirective, ClxChartComponent, ClxCheckboxComponent, ClxColorPickerComponent, ClxColumnDefDirective, ClxDateRangePickerComponent, ClxDatepickerComponent, ClxDrawerComponent, ClxDrawerService, ClxEditorComponent, ClxEditorLinkModalComponent, ClxFilterPanelComponent, ClxHeaderCellDirective, ClxIconComponent, ClxInputComponent, ClxListComponent, ClxListItemComponent, ClxMenuComponent, ClxMenuItemComponent, ClxModalComponent, ClxModalService, ClxNavGroupComponent, ClxNumberComponent, ClxPageEmptyComponent, ClxPageNotFoundComponent, ClxPageServerErrorComponent, ClxPageUnauthorizedComponent, ClxPaginationComponent, ClxProductComponent, ClxProductDetailComponent, ClxProfileComponent, ClxProgressBarComponent, ClxRadioComponent, ClxRadioGroupComponent, ClxRatingComponent, ClxSelectComponent, ClxSkeletonComponent, ClxSliderComponent, ClxSpinnerComponent, ClxStatCardComponent, ClxStepComponent, ClxStepperComponent, ClxSwitchComponent, ClxTabDirective, ClxTableComponent, ClxTabsComponent, ClxTagComponent, ClxTextareaComponent, ClxThemeService, ClxTimelineComponent, ClxTimelineItemComponent, ClxTimepickerComponent, ClxToastComponent, ClxToastContainerComponent, ClxToastService, ClxTooltipComponent, ClxTooltipDirective, ClxTreeComponent, ClxUploadComponent, ClxWishlistComponent, ClxWizardComponent, TIMEPICKER_SIZE_MAP, parseColorInput, provideCodexlyTheme, resolveColor, resolveContainerRadius, resolveRadius };
15027
+ export { CLX_ADDON_BORDER, CLX_ADDON_TEXT, CLX_ALERT_OPTIONS, CLX_ALERT_RESOLVE, CLX_BG_ADDON, CLX_BG_DISABLED, CLX_BG_ICON_WRAP, CLX_BG_SECTION, CLX_BG_SURFACE, CLX_BORDER_DEFAULT, CLX_BORDER_DISABLED, CLX_BORDER_MEDIUM, CLX_COLOR_HEX, CLX_COLOR_HEX_100, CLX_COLOR_MAP, CLX_FONT_CATALOG, CLX_MODAL_ANIM_CONFIG, CLX_MODAL_DATA, CLX_MODAL_REF, CLX_OPTION_DISABLED, CLX_PLACEHOLDER, CLX_RADIO_GROUP, CLX_RADIUS_MAP, CLX_TEXT_BODY, CLX_TEXT_DISABLED, CLX_TEXT_HEADING, CLX_TEXT_HINT, CLX_TEXT_IDLE, CLX_TEXT_INPUT, CLX_TEXT_LABEL, CLX_TEXT_OPTION, CLX_TEXT_SUBTITLE, CLX_TEXT_TITLE, CLX_THEME_CONFIG, CLX_THEME_DEFAULTS, CLX_TOAST_DEFAULTS, ClxAlertComponent, ClxAlertService, ClxAnimateDirective, ClxAnimateGroupDirective, ClxAnimateService, ClxAppLayoutComponent, ClxAvatarComponent, ClxBadgeComponent, ClxBrandComponent, ClxButtonComponent, ClxButtonGroupComponent, ClxCardBodyDirective, ClxCardComponent, ClxCardFooterDirective, ClxCardHeaderDirective, ClxCarouselComponent, ClxCarouselDirective, ClxCartComponent, ClxCartSummaryDrawer, ClxCellDirective, ClxCheckboxComponent, ClxColorPickerComponent, ClxColumnDefDirective, ClxDateRangePickerComponent, ClxDatepickerComponent, ClxDrawerComponent, ClxDrawerService, ClxEditorComponent, ClxEditorLinkModalComponent, ClxFilterPanelComponent, ClxHeaderCellDirective, ClxIconComponent, ClxInputComponent, ClxListComponent, ClxListItemComponent, ClxMenuComponent, ClxMenuItemComponent, ClxModalComponent, ClxModalService, ClxNavGroupComponent, ClxNumberComponent, ClxPageEmptyComponent, ClxPageNotFoundComponent, ClxPageServerErrorComponent, ClxPageUnauthorizedComponent, ClxPaginationComponent, ClxProductComponent, ClxProductDetailComponent, ClxProfileComponent, ClxProgressBarComponent, ClxRadioComponent, ClxRadioGroupComponent, ClxRatingComponent, ClxSelectComponent, ClxSkeletonComponent, ClxSliderComponent, ClxSpinnerComponent, ClxStatCardComponent, ClxStepComponent, ClxStepperComponent, ClxSwitchComponent, ClxTabDirective, ClxTableComponent, ClxTabsComponent, ClxTagComponent, ClxTextareaComponent, ClxThemeService, ClxTimelineComponent, ClxTimelineItemComponent, ClxTimepickerComponent, ClxToastComponent, ClxToastContainerComponent, ClxToastService, ClxTooltipComponent, ClxTooltipDirective, ClxTreeComponent, ClxUploadComponent, ClxWishlistComponent, ClxWizardComponent, TIMEPICKER_SIZE_MAP, parseColorInput, provideCodexlyTheme, resolveColor, resolveContainerRadius, resolveRadius };
15208
15028
  //# sourceMappingURL=codexly-ui.mjs.map