shirkasoft-ui-components 1.13.18 → 2.0.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.
Files changed (98) hide show
  1. package/README.md +415 -42
  2. package/fesm2022/shirkasoft-ui-components-breadcrumb.mjs +189 -100
  3. package/fesm2022/shirkasoft-ui-components-breadcrumb.mjs.map +1 -1
  4. package/fesm2022/shirkasoft-ui-components-button.mjs +367 -73
  5. package/fesm2022/shirkasoft-ui-components-button.mjs.map +1 -1
  6. package/fesm2022/shirkasoft-ui-components-chart.mjs +206 -142
  7. package/fesm2022/shirkasoft-ui-components-chart.mjs.map +1 -1
  8. package/fesm2022/shirkasoft-ui-components-config.mjs +976 -0
  9. package/fesm2022/shirkasoft-ui-components-config.mjs.map +1 -0
  10. package/fesm2022/shirkasoft-ui-components-confirm-dialog.mjs +307 -142
  11. package/fesm2022/shirkasoft-ui-components-confirm-dialog.mjs.map +1 -1
  12. package/fesm2022/shirkasoft-ui-components-date-picker.mjs +1624 -1400
  13. package/fesm2022/shirkasoft-ui-components-date-picker.mjs.map +1 -1
  14. package/fesm2022/shirkasoft-ui-components-fieldset.mjs +347 -92
  15. package/fesm2022/shirkasoft-ui-components-fieldset.mjs.map +1 -1
  16. package/fesm2022/shirkasoft-ui-components-file-upload.mjs +484 -293
  17. package/fesm2022/shirkasoft-ui-components-file-upload.mjs.map +1 -1
  18. package/fesm2022/shirkasoft-ui-components-icons.mjs +1141 -0
  19. package/fesm2022/shirkasoft-ui-components-icons.mjs.map +1 -0
  20. package/fesm2022/shirkasoft-ui-components-knob.mjs +395 -180
  21. package/fesm2022/shirkasoft-ui-components-knob.mjs.map +1 -1
  22. package/fesm2022/shirkasoft-ui-components-loading.mjs +505 -128
  23. package/fesm2022/shirkasoft-ui-components-loading.mjs.map +1 -1
  24. package/fesm2022/shirkasoft-ui-components-modal.mjs +311 -303
  25. package/fesm2022/shirkasoft-ui-components-modal.mjs.map +1 -1
  26. package/fesm2022/shirkasoft-ui-components-notification.mjs +188 -142
  27. package/fesm2022/shirkasoft-ui-components-notification.mjs.map +1 -1
  28. package/fesm2022/shirkasoft-ui-components-price-input.mjs +517 -277
  29. package/fesm2022/shirkasoft-ui-components-price-input.mjs.map +1 -1
  30. package/fesm2022/shirkasoft-ui-components-rail-sidebar.mjs +669 -289
  31. package/fesm2022/shirkasoft-ui-components-rail-sidebar.mjs.map +1 -1
  32. package/fesm2022/shirkasoft-ui-components-select.mjs +1014 -814
  33. package/fesm2022/shirkasoft-ui-components-select.mjs.map +1 -1
  34. package/fesm2022/shirkasoft-ui-components-sidebar.mjs +508 -184
  35. package/fesm2022/shirkasoft-ui-components-sidebar.mjs.map +1 -1
  36. package/fesm2022/shirkasoft-ui-components-skeleton.mjs +197 -57
  37. package/fesm2022/shirkasoft-ui-components-skeleton.mjs.map +1 -1
  38. package/fesm2022/shirkasoft-ui-components-table.mjs +1918 -1676
  39. package/fesm2022/shirkasoft-ui-components-table.mjs.map +1 -1
  40. package/fesm2022/shirkasoft-ui-components-tabs.mjs +419 -177
  41. package/fesm2022/shirkasoft-ui-components-tabs.mjs.map +1 -1
  42. package/fesm2022/shirkasoft-ui-components-tag.mjs +177 -51
  43. package/fesm2022/shirkasoft-ui-components-tag.mjs.map +1 -1
  44. package/fesm2022/shirkasoft-ui-components-text-field.mjs +687 -369
  45. package/fesm2022/shirkasoft-ui-components-text-field.mjs.map +1 -1
  46. package/fesm2022/shirkasoft-ui-components-theme-picker.mjs +466 -0
  47. package/fesm2022/shirkasoft-ui-components-theme-picker.mjs.map +1 -0
  48. package/fesm2022/shirkasoft-ui-components-theme.mjs +147 -0
  49. package/fesm2022/shirkasoft-ui-components-theme.mjs.map +1 -0
  50. package/fesm2022/shirkasoft-ui-components-timeline.mjs +791 -215
  51. package/fesm2022/shirkasoft-ui-components-timeline.mjs.map +1 -1
  52. package/fesm2022/shirkasoft-ui-components-toggle.mjs +205 -128
  53. package/fesm2022/shirkasoft-ui-components-toggle.mjs.map +1 -1
  54. package/fesm2022/shirkasoft-ui-components-tooltip.mjs +244 -180
  55. package/fesm2022/shirkasoft-ui-components-tooltip.mjs.map +1 -1
  56. package/fesm2022/shirkasoft-ui-components-utils.mjs +97 -125
  57. package/fesm2022/shirkasoft-ui-components-utils.mjs.map +1 -1
  58. package/fesm2022/shirkasoft-ui-components-wizard.mjs +673 -166
  59. package/fesm2022/shirkasoft-ui-components-wizard.mjs.map +1 -1
  60. package/fesm2022/shirkasoft-ui-components.mjs +0 -9
  61. package/package.json +37 -7
  62. package/src/baseline.css +2472 -0
  63. package/src/theme.css +15 -543
  64. package/src/themes/ocean.css +56 -0
  65. package/src/themes/sunset.css +55 -0
  66. package/src/themes/violet.css +25 -0
  67. package/src/tokens.css +612 -0
  68. package/types/shirkasoft-ui-components-breadcrumb.d.ts +59 -44
  69. package/types/shirkasoft-ui-components-button.d.ts +142 -49
  70. package/types/shirkasoft-ui-components-chart.d.ts +59 -44
  71. package/types/shirkasoft-ui-components-config.d.ts +357 -0
  72. package/types/shirkasoft-ui-components-confirm-dialog.d.ts +107 -65
  73. package/types/shirkasoft-ui-components-date-picker.d.ts +527 -373
  74. package/types/shirkasoft-ui-components-fieldset.d.ts +135 -59
  75. package/types/shirkasoft-ui-components-file-upload.d.ts +176 -106
  76. package/types/shirkasoft-ui-components-icons.d.ts +1430 -0
  77. package/types/shirkasoft-ui-components-knob.d.ts +151 -64
  78. package/types/shirkasoft-ui-components-loading.d.ts +155 -64
  79. package/types/shirkasoft-ui-components-modal.d.ts +134 -132
  80. package/types/shirkasoft-ui-components-notification.d.ts +63 -58
  81. package/types/shirkasoft-ui-components-price-input.d.ts +198 -85
  82. package/types/shirkasoft-ui-components-rail-sidebar.d.ts +262 -142
  83. package/types/shirkasoft-ui-components-select.d.ts +301 -192
  84. package/types/shirkasoft-ui-components-sidebar.d.ts +198 -92
  85. package/types/shirkasoft-ui-components-skeleton.d.ts +68 -27
  86. package/types/shirkasoft-ui-components-table.d.ts +849 -649
  87. package/types/shirkasoft-ui-components-tabs.d.ts +102 -61
  88. package/types/shirkasoft-ui-components-tag.d.ts +54 -23
  89. package/types/shirkasoft-ui-components-text-field.d.ts +231 -111
  90. package/types/shirkasoft-ui-components-theme-picker.d.ts +117 -0
  91. package/types/shirkasoft-ui-components-theme.d.ts +80 -0
  92. package/types/shirkasoft-ui-components-timeline.d.ts +326 -150
  93. package/types/shirkasoft-ui-components-toggle.d.ts +76 -45
  94. package/types/shirkasoft-ui-components-tooltip.d.ts +64 -43
  95. package/types/shirkasoft-ui-components-utils.d.ts +26 -17
  96. package/types/shirkasoft-ui-components-wizard.d.ts +236 -86
  97. package/types/shirkasoft-ui-components.d.ts +1 -2
  98. package/fesm2022/shirkasoft-ui-components.mjs.map +0 -1
@@ -1,7 +1,9 @@
1
- import * as _angular_core from '@angular/core';
2
- import { OnInit, OnDestroy } from '@angular/core';
3
- import { Observable } from 'rxjs';
4
-
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ import * as i0 from "@angular/core";
5
+ import { OnDestroy, OnInit } from "@angular/core";
6
+ import { Observable } from "rxjs";
5
7
  /**
6
8
  * Shirkasoft UI Components.
7
9
  * Authors: Roberto Valladares Martin (Ansem13), Julio César García García (Sanjuli14).
@@ -9,28 +11,27 @@ import { Observable } from 'rxjs';
9
11
  */
10
12
  /** A single breadcrumb entry with an optional navigation route. */
11
13
  interface BreadcrumbItem {
12
- label: string;
13
- route?: string;
14
+ label: string;
15
+ route?: string;
14
16
  }
15
17
  /**
16
18
  * Global breadcrumb state. Components and pages write the current trail via
17
19
  * `set()` and observatories read it through `breadcrumbs$`.
18
20
  */
19
- declare class BreadcrumbService {
20
- /** Internal buffer holding the current breadcrumb trail. */
21
- private breadcrumbsSubject;
22
- /** Observable emitted with the latest breadcrumb trail. */
23
- breadcrumbs$: Observable<BreadcrumbItem[]>;
24
- /** Replaces the whole breadcrumb trail. */
25
- set(items: BreadcrumbItem[]): void;
26
- /** Empties the breadcrumb trail. */
27
- clear(): void;
28
- /** Returns the breadcrumb trail currently held (snapshot). */
29
- getCurrent(): BreadcrumbItem[];
30
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<BreadcrumbService, never>;
31
- static ɵprov: _angular_core.ɵɵInjectableDeclaration<BreadcrumbService>;
21
+ export declare class BreadcrumbService {
22
+ /** Internal buffer holding the current breadcrumb trail. */
23
+ private breadcrumbsSubject;
24
+ /** Observable emitted with the latest breadcrumb trail. */
25
+ breadcrumbs$: Observable<BreadcrumbItem[]>;
26
+ /** Replaces the whole breadcrumb trail. */
27
+ set(items: BreadcrumbItem[]): void;
28
+ /** Empties the breadcrumb trail. */
29
+ clear(): void;
30
+ /** Returns the breadcrumb trail currently held (snapshot). */
31
+ getCurrent(): BreadcrumbItem[];
32
+ static ɵfac: i0.ɵɵFactoryDeclaration<BreadcrumbService, never>;
33
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
32
34
  }
33
-
34
35
  type BreadcrumbSeparator = 'chevron' | 'slash' | 'arrow';
35
36
  /**
36
37
  * Shirkasoft UI Components.
@@ -41,28 +42,42 @@ type BreadcrumbSeparator = 'chevron' | 'slash' | 'arrow';
41
42
  * Navigation breadcrumb showing the current page hierarchy. Can be fed with
42
43
  * static items or driven by the shared BreadcrumbService.
43
44
  */
44
- declare class BreadcrumbComponent implements OnInit, OnDestroy {
45
- private readonly breadcrumbService;
46
- /** Static list of breadcrumb items. Takes precedence over the service items. */
47
- items: _angular_core.InputSignal<BreadcrumbItem[]>;
48
- /** Visual separator between items: 'chevron', 'slash' or 'arrow'. */
49
- separator: _angular_core.InputSignal<BreadcrumbSeparator>;
50
- /** When true, subscribes to the BreadcrumbService to resolve items. */
51
- useService: _angular_core.InputSignal<boolean>;
52
- /** Items received from the BreadcrumbService. */
53
- protected serviceItems: _angular_core.WritableSignal<BreadcrumbItem[]>;
54
- /** Final items: static `items` if provided, otherwise the service items. */
55
- protected resolvedItems: _angular_core.Signal<BreadcrumbItem[]>;
56
- /** Active subscription to the breadcrumb stream. */
57
- private serviceSub;
58
- constructor();
59
- /** Subscribes to the BreadcrumbService when `useService` is enabled. */
60
- ngOnInit(): void;
61
- /** Unsubscribes from the breadcrumb stream to avoid leaks. */
62
- ngOnDestroy(): void;
63
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<BreadcrumbComponent, never>;
64
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<BreadcrumbComponent, "shk-breadcrumb", never, { "items": { "alias": "items"; "required": false; "isSignal": true; }; "separator": { "alias": "separator"; "required": false; "isSignal": true; }; "useService": { "alias": "useService"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
45
+ export declare class BreadcrumbComponent implements OnInit, OnDestroy {
46
+ private readonly breadcrumbService;
47
+ /** Static list of breadcrumb items. Takes precedence over the service items. */
48
+ items: import("@angular/core").InputSignal<BreadcrumbItem[]>;
49
+ /** Visual separator between items: 'chevron', 'slash' or 'arrow'. */
50
+ separator: import("@angular/core").InputSignal<BreadcrumbSeparator>;
51
+ /** When true, subscribes to the BreadcrumbService to resolve items. */
52
+ useService: import("@angular/core").InputSignal<boolean>;
53
+ /** Items received from the BreadcrumbService. */
54
+ protected serviceItems: import("@angular/core").WritableSignal<BreadcrumbItem[]>;
55
+ /** Final items: static `items` if provided, otherwise the service items. */
56
+ protected resolvedItems: import("@angular/core").Signal<BreadcrumbItem[]>;
57
+ /** Active subscription to the breadcrumb stream. */
58
+ private serviceSub;
59
+ constructor();
60
+ /** Subscribes to the BreadcrumbService when `useService` is enabled. */
61
+ ngOnInit(): void;
62
+ /** Unsubscribes from the breadcrumb stream to avoid leaks. */
63
+ ngOnDestroy(): void;
64
+ static ɵfac: i0.ɵɵFactoryDeclaration<BreadcrumbComponent, never>;
65
+ static ɵcmp: i0.ɵɵComponentDeclaration<BreadcrumbComponent, "shk-breadcrumb", never, {
66
+ "items": {
67
+ "alias": "items";
68
+ "required": false;
69
+ "isSignal": true;
70
+ };
71
+ "separator": {
72
+ "alias": "separator";
73
+ "required": false;
74
+ "isSignal": true;
75
+ };
76
+ "useService": {
77
+ "alias": "useService";
78
+ "required": false;
79
+ "isSignal": true;
80
+ };
81
+ }, {}, never, never, true, never>;
65
82
  }
66
-
67
- export { BreadcrumbComponent, BreadcrumbService };
68
- export type { BreadcrumbItem, BreadcrumbSeparator };
83
+ export type { BreadcrumbItem, BreadcrumbSeparator };
@@ -1,6 +1,8 @@
1
- import * as _angular_core from '@angular/core';
2
- import { getIcon } from 'shirkasoft-ui-components/utils';
3
-
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ import { getIcon } from "shirkasoft-ui-components/utils";
5
+ import * as i0 from "@angular/core";
4
6
  type ButtonSeverity = 'primary' | 'secondary' | 'success' | 'info' | 'warning' | 'danger' | 'help' | 'contrast';
5
7
  type ButtonSize = 'small' | 'large';
6
8
  type ButtonIconPosition = 'left' | 'right' | 'top' | 'bottom';
@@ -10,50 +12,141 @@ type ButtonIconPosition = 'left' | 'right' | 'top' | 'bottom';
10
12
  * Belongs to Shirkasoft.
11
13
  */
12
14
  /** Generic button with icon, severity variants, loading state and sizes. */
13
- declare class ButtonComponent {
14
- /** Text shown inside the button. */
15
- label: _angular_core.InputSignal<string>;
16
- /** Optional leading lucide icon name or component. */
17
- icon: _angular_core.InputSignal<any>;
18
- /** Position of the icon relative to the label. */
19
- iconPos: _angular_core.InputSignal<ButtonIconPosition>;
20
- /** Color variant. Defaults to 'primary'. */
21
- severity: _angular_core.InputSignal<ButtonSeverity>;
22
- /** Transparent background with a colored border. */
23
- outlined: _angular_core.InputSignal<boolean>;
24
- /** Borderless button with a colored label. */
25
- text: _angular_core.InputSignal<boolean>;
26
- /** Adds a soft shadow. */
27
- raised: _angular_core.InputSignal<boolean>;
28
- /** Fully rounded corners (pill). */
29
- rounded: _angular_core.InputSignal<boolean>;
30
- /** Size variant. */
31
- size: _angular_core.InputSignal<ButtonSize | undefined>;
32
- /** Disables the button. */
33
- disabled: _angular_core.InputSignal<boolean>;
34
- /** Shows a spinner and disables the button. */
35
- loading: _angular_core.InputSignal<boolean>;
36
- /** Icon shown while loading. Defaults to 'refresh'. */
37
- loadingIcon: _angular_core.InputSignal<string>;
38
- /** Optional text shown instead of the label while loading. */
39
- loadingText: _angular_core.InputSignal<string>;
40
- /** Native button type. */
41
- type: _angular_core.InputSignal<"button" | "submit" | "reset">;
42
- /** Accessible label when the button is icon-only. */
43
- ariaLabel: _angular_core.InputSignal<string>;
44
- /** Native title tooltip. */
45
- title: _angular_core.InputSignal<string>;
46
- /** Inline styles applied to the button. */
47
- style: _angular_core.InputSignal<Record<string, string | number>>;
48
- /** Extra CSS classes. */
49
- styleClass: _angular_core.InputSignal<string>;
50
- /** Emitted on click with the original MouseEvent. */
51
- onClick: _angular_core.OutputEmitterRef<MouseEvent>;
52
- protected getIcon: typeof getIcon;
53
- protected iconOnly: _angular_core.Signal<boolean>;
54
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<ButtonComponent, never>;
55
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<ButtonComponent, "shk-button", never, { "label": { "alias": "label"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "iconPos": { "alias": "iconPos"; "required": false; "isSignal": true; }; "severity": { "alias": "severity"; "required": false; "isSignal": true; }; "outlined": { "alias": "outlined"; "required": false; "isSignal": true; }; "text": { "alias": "text"; "required": false; "isSignal": true; }; "raised": { "alias": "raised"; "required": false; "isSignal": true; }; "rounded": { "alias": "rounded"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "loading": { "alias": "loading"; "required": false; "isSignal": true; }; "loadingIcon": { "alias": "loadingIcon"; "required": false; "isSignal": true; }; "loadingText": { "alias": "loadingText"; "required": false; "isSignal": true; }; "type": { "alias": "type"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; "title": { "alias": "title"; "required": false; "isSignal": true; }; "style": { "alias": "style"; "required": false; "isSignal": true; }; "styleClass": { "alias": "styleClass"; "required": false; "isSignal": true; }; }, { "onClick": "onClick"; }, never, ["*"], true, never>;
15
+ export declare class ButtonComponent {
16
+ /** Text shown inside the button. */
17
+ label: import("@angular/core").InputSignal<string>;
18
+ /** Optional leading icon: registered name (e.g. `'plus'`) or `IconNode` data. */
19
+ icon: import("@angular/core").InputSignal<any>;
20
+ /** Position of the icon relative to the label. */
21
+ iconPos: import("@angular/core").InputSignal<ButtonIconPosition>;
22
+ /** Color variant. Defaults to 'primary'. */
23
+ severity: import("@angular/core").InputSignal<ButtonSeverity>;
24
+ /** Transparent background with a colored border. */
25
+ outlined: import("@angular/core").InputSignal<boolean>;
26
+ /** Borderless button with a colored label. */
27
+ text: import("@angular/core").InputSignal<boolean>;
28
+ /** Adds a soft shadow. */
29
+ raised: import("@angular/core").InputSignal<boolean>;
30
+ /** Fully rounded corners (pill). */
31
+ rounded: import("@angular/core").InputSignal<boolean>;
32
+ /** Size variant. */
33
+ size: import("@angular/core").InputSignal<ButtonSize | undefined>;
34
+ /** Disables the button. */
35
+ disabled: import("@angular/core").InputSignal<boolean>;
36
+ /** Shows a spinner and disables the button. */
37
+ loading: import("@angular/core").InputSignal<boolean>;
38
+ /** Icon shown while loading. Defaults to 'refresh'. */
39
+ loadingIcon: import("@angular/core").InputSignal<string>;
40
+ /** Optional text shown instead of the label while loading. */
41
+ loadingText: import("@angular/core").InputSignal<string>;
42
+ /** Native button type. */
43
+ type: import("@angular/core").InputSignal<"button" | "submit" | "reset">;
44
+ /** Accessible label when the button is icon-only. */
45
+ ariaLabel: import("@angular/core").InputSignal<string>;
46
+ /** Native title tooltip. */
47
+ title: import("@angular/core").InputSignal<string>;
48
+ /** Inline styles applied to the button. */
49
+ style: import("@angular/core").InputSignal<Record<string, string | number>>;
50
+ /** Extra CSS classes. */
51
+ styleClass: import("@angular/core").InputSignal<string>;
52
+ /** Emitted on click with the original MouseEvent. */
53
+ onClick: import("@angular/core").OutputEmitterRef<MouseEvent>;
54
+ protected getIcon: typeof getIcon;
55
+ protected iconOnly: import("@angular/core").Signal<boolean>;
56
+ static ɵfac: i0.ɵɵFactoryDeclaration<ButtonComponent, never>;
57
+ static ɵcmp: i0.ɵɵComponentDeclaration<ButtonComponent, "shk-button", never, {
58
+ "label": {
59
+ "alias": "label";
60
+ "required": false;
61
+ "isSignal": true;
62
+ };
63
+ "icon": {
64
+ "alias": "icon";
65
+ "required": false;
66
+ "isSignal": true;
67
+ };
68
+ "iconPos": {
69
+ "alias": "iconPos";
70
+ "required": false;
71
+ "isSignal": true;
72
+ };
73
+ "severity": {
74
+ "alias": "severity";
75
+ "required": false;
76
+ "isSignal": true;
77
+ };
78
+ "outlined": {
79
+ "alias": "outlined";
80
+ "required": false;
81
+ "isSignal": true;
82
+ };
83
+ "text": {
84
+ "alias": "text";
85
+ "required": false;
86
+ "isSignal": true;
87
+ };
88
+ "raised": {
89
+ "alias": "raised";
90
+ "required": false;
91
+ "isSignal": true;
92
+ };
93
+ "rounded": {
94
+ "alias": "rounded";
95
+ "required": false;
96
+ "isSignal": true;
97
+ };
98
+ "size": {
99
+ "alias": "size";
100
+ "required": false;
101
+ "isSignal": true;
102
+ };
103
+ "disabled": {
104
+ "alias": "disabled";
105
+ "required": false;
106
+ "isSignal": true;
107
+ };
108
+ "loading": {
109
+ "alias": "loading";
110
+ "required": false;
111
+ "isSignal": true;
112
+ };
113
+ "loadingIcon": {
114
+ "alias": "loadingIcon";
115
+ "required": false;
116
+ "isSignal": true;
117
+ };
118
+ "loadingText": {
119
+ "alias": "loadingText";
120
+ "required": false;
121
+ "isSignal": true;
122
+ };
123
+ "type": {
124
+ "alias": "type";
125
+ "required": false;
126
+ "isSignal": true;
127
+ };
128
+ "ariaLabel": {
129
+ "alias": "ariaLabel";
130
+ "required": false;
131
+ "isSignal": true;
132
+ };
133
+ "title": {
134
+ "alias": "title";
135
+ "required": false;
136
+ "isSignal": true;
137
+ };
138
+ "style": {
139
+ "alias": "style";
140
+ "required": false;
141
+ "isSignal": true;
142
+ };
143
+ "styleClass": {
144
+ "alias": "styleClass";
145
+ "required": false;
146
+ "isSignal": true;
147
+ };
148
+ }, {
149
+ "onClick": "onClick";
150
+ }, never, ["*"], true, never>;
56
151
  }
57
-
58
- export { ButtonComponent };
59
- export type { ButtonIconPosition, ButtonSeverity, ButtonSize };
152
+ export type { ButtonIconPosition, ButtonSeverity, ButtonSize };
@@ -1,6 +1,8 @@
1
- import * as _angular_core from '@angular/core';
2
- import { AfterViewInit, OnDestroy } from '@angular/core';
3
-
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ import * as i0 from "@angular/core";
5
+ import { AfterViewInit, OnDestroy } from "@angular/core";
4
6
  /**
5
7
  * Shirkasoft UI Components.
6
8
  * Authors: Roberto Valladares Martin (Ansem13), Julio César García García (Sanjuli14).
@@ -10,56 +12,69 @@ import { AfterViewInit, OnDestroy } from '@angular/core';
10
12
  * Chart.js wrapper that renders line, bar, pie, doughnut or polarArea charts
11
13
  * and updates them reactively as the inputs change.
12
14
  */
13
- declare class ChartComponent implements AfterViewInit, OnDestroy {
14
- /** Guarantees Chart.js plugins are only registered once. */
15
- private static registered;
16
- /** Type of chart to render. */
17
- type: _angular_core.InputSignal<"line" | "bar" | "pie" | "doughnut" | "polarArea">;
18
- /** Chart.js datasets payload. */
19
- data: _angular_core.InputSignal<any>;
20
- /** Chart.js options object. */
21
- options: _angular_core.InputSignal<any>;
22
- /** Reference to the inner canvas element. */
23
- private canvasRef;
24
- /** Live Chart.js instance. */
25
- private chartInstance;
26
- /** Whether the view has been initialized yet. */
27
- private initialized;
28
- constructor();
29
- /** Creates the initial chart once the canvas is available. */
30
- ngAfterViewInit(): void;
31
- /** Destroys the Chart.js instance. */
32
- ngOnDestroy(): void;
33
- /** Clears the canvas by reassigning its width. */
34
- private resetCanvas;
35
- /** Creates a new Chart.js instance on the canvas. */
36
- private initChart;
37
- /** Deep clones a value to detach it from Angular's reactive objects. */
38
- private deepClone;
39
- /** Applies the new data/options, rebuilding the chart when the type changes. */
40
- private updateChart;
41
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<ChartComponent, never>;
42
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<ChartComponent, "shk-chart", never, { "type": { "alias": "type"; "required": false; "isSignal": true; }; "data": { "alias": "data"; "required": false; "isSignal": true; }; "options": { "alias": "options"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
15
+ export declare class ChartComponent implements AfterViewInit, OnDestroy {
16
+ /** Guarantees Chart.js plugins are only registered once. */
17
+ private static registered;
18
+ /** Type of chart to render. */
19
+ type: import("@angular/core").InputSignal<"line" | "bar" | "pie" | "doughnut" | "polarArea">;
20
+ /** Chart.js datasets payload. */
21
+ data: import("@angular/core").InputSignal<any>;
22
+ /** Chart.js options object. */
23
+ options: import("@angular/core").InputSignal<any>;
24
+ /** Reference to the inner canvas element. */
25
+ private canvasRef;
26
+ /** Live Chart.js instance. */
27
+ private chartInstance;
28
+ /** Whether the view has been initialized yet. */
29
+ private initialized;
30
+ constructor();
31
+ /** Creates the initial chart once the canvas is available. */
32
+ ngAfterViewInit(): void;
33
+ /** Destroys the Chart.js instance. */
34
+ ngOnDestroy(): void;
35
+ /** Clears the canvas by reassigning its width. */
36
+ private resetCanvas;
37
+ /** Creates a new Chart.js instance on the canvas. */
38
+ private initChart;
39
+ /** Deep clones a value to detach it from Angular's reactive objects. */
40
+ private deepClone;
41
+ /** Applies the new data/options, rebuilding the chart when the type changes. */
42
+ private updateChart;
43
+ static ɵfac: i0.ɵɵFactoryDeclaration<ChartComponent, never>;
44
+ static ɵcmp: i0.ɵɵComponentDeclaration<ChartComponent, "shk-chart", never, {
45
+ "type": {
46
+ "alias": "type";
47
+ "required": false;
48
+ "isSignal": true;
49
+ };
50
+ "data": {
51
+ "alias": "data";
52
+ "required": false;
53
+ "isSignal": true;
54
+ };
55
+ "options": {
56
+ "alias": "options";
57
+ "required": false;
58
+ "isSignal": true;
59
+ };
60
+ }, {}, never, never, true, never>;
43
61
  }
44
-
45
62
  /**
46
63
  * Shirkasoft UI Components.
47
64
  * Authors: Roberto Valladares Martin (Ansem13), Julio César García García (Sanjuli14).
48
65
  * Belongs to Shirkasoft.
49
66
  */
50
67
  /** Default dataset colors used by the ChartComponent when no palette is provided. */
51
- declare const COLOR_PALETTE: {
52
- bg: string;
53
- border: string;
68
+ export declare const COLOR_PALETTE: {
69
+ bg: string;
70
+ border: string;
54
71
  }[];
55
72
  /**
56
73
  * Reads the current `--shk-*` CSS variables from the document and returns
57
74
  * the text, muted and border colors used by charts to follow the active theme.
58
75
  */
59
- declare function readThemeColors(): {
60
- text: string;
61
- muted: string;
62
- border: string;
63
- };
64
-
65
- export { COLOR_PALETTE, ChartComponent, readThemeColors };
76
+ export declare function readThemeColors(): {
77
+ text: string;
78
+ muted: string;
79
+ border: string;
80
+ };