@molecule/app-ui-angular 1.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 (75) hide show
  1. package/LICENSE +115 -0
  2. package/README.md +1591 -0
  3. package/dist/components/alert.component.d.ts +71 -0
  4. package/dist/components/alert.component.d.ts.map +1 -0
  5. package/dist/components/alert.component.js +222 -0
  6. package/dist/components/alert.component.js.map +1 -0
  7. package/dist/components/badge.component.d.ts +27 -0
  8. package/dist/components/badge.component.d.ts.map +1 -0
  9. package/dist/components/badge.component.js +78 -0
  10. package/dist/components/badge.component.js.map +1 -0
  11. package/dist/components/button.component.d.ts +38 -0
  12. package/dist/components/button.component.d.ts.map +1 -0
  13. package/dist/components/button.component.js +136 -0
  14. package/dist/components/button.component.js.map +1 -0
  15. package/dist/components/checkbox.component.d.ts +53 -0
  16. package/dist/components/checkbox.component.d.ts.map +1 -0
  17. package/dist/components/checkbox.component.js +165 -0
  18. package/dist/components/checkbox.component.js.map +1 -0
  19. package/dist/components/index.d.ts +18 -0
  20. package/dist/components/index.d.ts.map +1 -0
  21. package/dist/components/index.js +18 -0
  22. package/dist/components/index.js.map +1 -0
  23. package/dist/components/input.component.d.ts +87 -0
  24. package/dist/components/input.component.d.ts.map +1 -0
  25. package/dist/components/input.component.js +307 -0
  26. package/dist/components/input.component.js.map +1 -0
  27. package/dist/components/modal.component.d.ts +142 -0
  28. package/dist/components/modal.component.d.ts.map +1 -0
  29. package/dist/components/modal.component.js +375 -0
  30. package/dist/components/modal.component.js.map +1 -0
  31. package/dist/components/radio-group.component.d.ts +63 -0
  32. package/dist/components/radio-group.component.d.ts.map +1 -0
  33. package/dist/components/radio-group.component.js +207 -0
  34. package/dist/components/radio-group.component.js.map +1 -0
  35. package/dist/components/select.component.d.ts +72 -0
  36. package/dist/components/select.component.d.ts.map +1 -0
  37. package/dist/components/select.component.js +273 -0
  38. package/dist/components/select.component.js.map +1 -0
  39. package/dist/components/spinner.component.d.ts +36 -0
  40. package/dist/components/spinner.component.d.ts.map +1 -0
  41. package/dist/components/spinner.component.js +115 -0
  42. package/dist/components/spinner.component.js.map +1 -0
  43. package/dist/components/switch.component.d.ts +54 -0
  44. package/dist/components/switch.component.d.ts.map +1 -0
  45. package/dist/components/switch.component.js +147 -0
  46. package/dist/components/switch.component.js.map +1 -0
  47. package/dist/components/toast.component.d.ts +92 -0
  48. package/dist/components/toast.component.d.ts.map +1 -0
  49. package/dist/components/toast.component.js +298 -0
  50. package/dist/components/toast.component.js.map +1 -0
  51. package/dist/components/tooltip.component.d.ts +77 -0
  52. package/dist/components/tooltip.component.d.ts.map +1 -0
  53. package/dist/components/tooltip.component.js +315 -0
  54. package/dist/components/tooltip.component.js.map +1 -0
  55. package/dist/index.d.ts +59 -0
  56. package/dist/index.d.ts.map +1 -0
  57. package/dist/index.js +59 -0
  58. package/dist/index.js.map +1 -0
  59. package/dist/types.d.ts +7 -0
  60. package/dist/types.d.ts.map +1 -0
  61. package/dist/types.js +7 -0
  62. package/dist/types.js.map +1 -0
  63. package/dist/utilities/index.d.ts +8 -0
  64. package/dist/utilities/index.d.ts.map +1 -0
  65. package/dist/utilities/index.js +8 -0
  66. package/dist/utilities/index.js.map +1 -0
  67. package/dist/utilities/render-icon.d.ts +15 -0
  68. package/dist/utilities/render-icon.d.ts.map +1 -0
  69. package/dist/utilities/render-icon.js +44 -0
  70. package/dist/utilities/render-icon.js.map +1 -0
  71. package/dist/utilities/utilities.d.ts +12 -0
  72. package/dist/utilities/utilities.d.ts.map +1 -0
  73. package/dist/utilities/utilities.js +14 -0
  74. package/dist/utilities/utilities.js.map +1 -0
  75. package/package.json +54 -0
@@ -0,0 +1,71 @@
1
+ /**
2
+ * Angular Alert UI component with UIClassMap-driven styling.
3
+ *
4
+ * @module
5
+ */
6
+ import { EventEmitter } from '@angular/core';
7
+ import type { ColorVariant, UIClassMap } from '@molecule/app-ui';
8
+ import * as i0 from "@angular/core";
9
+ /**
10
+ * Angular Alert UI component with UIClassMap-driven styling.
11
+ */
12
+ export declare class MoleculeAlert {
13
+ title?: string;
14
+ status: ColorVariant;
15
+ variant?: 'solid' | 'subtle' | 'outline' | 'left-accent';
16
+ dismissible: boolean;
17
+ dismissLabel?: string;
18
+ className?: string;
19
+ style?: Record<string, string>;
20
+ testId?: string;
21
+ dismiss: EventEmitter<void>;
22
+ /**
23
+ * Retrieves the current UI class map.
24
+ * @returns The UIClassMap instance for styling.
25
+ */
26
+ get cm(): UIClassMap;
27
+ /**
28
+ * Computes the accessible dismiss button label.
29
+ * @returns The localized aria-label for the dismiss button.
30
+ */
31
+ get dismissAriaLabel(): string;
32
+ /**
33
+ * Retrieves the CSS class for the alert title.
34
+ * @returns The title class name string.
35
+ */
36
+ get titleClass(): string;
37
+ /**
38
+ * Retrieves the CSS class for the alert description.
39
+ * @returns The description class name string.
40
+ */
41
+ get descriptionClass(): string;
42
+ /**
43
+ * Determines the icon type based on the alert status.
44
+ * @returns The mapped icon type string.
45
+ */
46
+ get iconType(): string;
47
+ /**
48
+ * Determines whether the status icon should be shown.
49
+ * @returns True if the icon type is not default.
50
+ */
51
+ get showIcon(): boolean;
52
+ private statusIconMap;
53
+ /**
54
+ * Generates the SVG markup for the status icon.
55
+ * @returns The SVG string for the current status icon.
56
+ */
57
+ get statusIconSvg(): string;
58
+ /**
59
+ * Generates the SVG markup for the dismiss icon.
60
+ * @returns The SVG string for the dismiss button icon.
61
+ */
62
+ get dismissIconSvg(): string;
63
+ /**
64
+ * Computes the combined CSS classes for the alert container.
65
+ * @returns The alert container class name string.
66
+ */
67
+ get alertClasses(): string;
68
+ static ɵfac: i0.ɵɵFactoryDeclaration<MoleculeAlert, never>;
69
+ static ɵcmp: i0.ɵɵComponentDeclaration<MoleculeAlert, "mol-alert", never, { "title": { "alias": "title"; "required": false; }; "status": { "alias": "status"; "required": false; }; "variant": { "alias": "variant"; "required": false; }; "dismissible": { "alias": "dismissible"; "required": false; }; "dismissLabel": { "alias": "dismissLabel"; "required": false; }; "className": { "alias": "className"; "required": false; }; "style": { "alias": "style"; "required": false; }; "testId": { "alias": "testId"; "required": false; }; }, { "dismiss": "dismiss"; }, never, ["*"], true, never>;
70
+ }
71
+ //# sourceMappingURL=alert.component.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"alert.component.d.ts","sourceRoot":"","sources":["../../src/components/alert.component.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAsC,YAAY,EAAiB,MAAM,eAAe,CAAA;AAI/F,OAAO,KAAK,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;;AAehE;;GAEG;AACH,qBAmCa,aAAa;IACf,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,MAAM,EAAE,YAAY,CAAS;IAC7B,OAAO,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,SAAS,GAAG,aAAa,CAAA;IACxD,WAAW,UAAQ;IACnB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IAC9B,MAAM,CAAC,EAAE,MAAM,CAAA;IAEd,OAAO,qBAA2B;IAE5C;;;OAGG;IACH,IAAI,EAAE,IAAI,UAAU,CAEnB;IAED;;;OAGG;IACH,IAAI,gBAAgB,IAAI,MAAM,CAE7B;IAED;;;OAGG;IACH,IAAI,UAAU,IAAI,MAAM,CAEvB;IAED;;;OAGG;IACH,IAAI,gBAAgB,IAAI,MAAM,CAE7B;IAED;;;OAGG;IACH,IAAI,QAAQ,IAAI,MAAM,CAErB;IAED;;;OAGG;IACH,IAAI,QAAQ,IAAI,OAAO,CAEtB;IAED,OAAO,CAAC,aAAa,CAKpB;IAED;;;OAGG;IACH,IAAI,aAAa,IAAI,MAAM,CAG1B;IAED;;;OAGG;IACH,IAAI,cAAc,IAAI,MAAM,CAE3B;IAED;;;OAGG;IACH,IAAI,YAAY,IAAI,MAAM,CAGzB;yCA3FU,aAAa;2CAAb,aAAa;CA4FzB"}
@@ -0,0 +1,222 @@
1
+ /**
2
+ * Angular Alert UI component with UIClassMap-driven styling.
3
+ *
4
+ * @module
5
+ */
6
+ import { ChangeDetectionStrategy, Component, EventEmitter, Input, Output } from '@angular/core';
7
+ import { t } from '@molecule/app-i18n';
8
+ import { getClassMap } from '@molecule/app-ui';
9
+ import { getIconSvg } from '../utilities/render-icon.js';
10
+ import * as i0 from "@angular/core";
11
+ const _c0 = ["*"];
12
+ function MoleculeAlert_Conditional_1_Template(rf, ctx) { if (rf & 1) {
13
+ i0.ɵɵdomElementStart(0, "span");
14
+ i0.ɵɵdomElement(1, "span", 3);
15
+ i0.ɵɵdomElementEnd();
16
+ } if (rf & 2) {
17
+ const ctx_r0 = i0.ɵɵnextContext();
18
+ i0.ɵɵclassMap(ctx_r0.cm.alertIconWrapper);
19
+ i0.ɵɵadvance();
20
+ i0.ɵɵdomProperty("innerHTML", ctx_r0.statusIconSvg, i0.ɵɵsanitizeHtml);
21
+ } }
22
+ function MoleculeAlert_Conditional_3_Template(rf, ctx) { if (rf & 1) {
23
+ i0.ɵɵdomElementStart(0, "h5");
24
+ i0.ɵɵtext(1);
25
+ i0.ɵɵdomElementEnd();
26
+ } if (rf & 2) {
27
+ const ctx_r0 = i0.ɵɵnextContext();
28
+ i0.ɵɵclassMap(ctx_r0.titleClass);
29
+ i0.ɵɵadvance();
30
+ i0.ɵɵtextInterpolate(ctx_r0.title);
31
+ } }
32
+ function MoleculeAlert_Conditional_6_Template(rf, ctx) { if (rf & 1) {
33
+ const _r2 = i0.ɵɵgetCurrentView();
34
+ i0.ɵɵdomElementStart(0, "button", 4);
35
+ i0.ɵɵdomListener("click", function MoleculeAlert_Conditional_6_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r2); const ctx_r0 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r0.dismiss.emit()); });
36
+ i0.ɵɵdomElement(1, "span", 3);
37
+ i0.ɵɵdomElementEnd();
38
+ } if (rf & 2) {
39
+ const ctx_r0 = i0.ɵɵnextContext();
40
+ i0.ɵɵclassMap(ctx_r0.cm.alertDismiss);
41
+ i0.ɵɵattribute("aria-label", ctx_r0.dismissAriaLabel);
42
+ i0.ɵɵadvance();
43
+ i0.ɵɵdomProperty("innerHTML", ctx_r0.dismissIconSvg, i0.ɵɵsanitizeHtml);
44
+ } }
45
+ const statusVariantMap = {
46
+ primary: 'default',
47
+ secondary: 'default',
48
+ success: 'success',
49
+ warning: 'warning',
50
+ error: 'error',
51
+ info: 'info',
52
+ };
53
+ /**
54
+ * Angular Alert UI component with UIClassMap-driven styling.
55
+ */
56
+ /**
57
+ * Molecule Alert class.
58
+ */
59
+ export class MoleculeAlert {
60
+ title;
61
+ status = 'info';
62
+ variant;
63
+ dismissible = false;
64
+ dismissLabel;
65
+ className;
66
+ style;
67
+ testId;
68
+ dismiss = new EventEmitter();
69
+ /**
70
+ * Retrieves the current UI class map.
71
+ * @returns The UIClassMap instance for styling.
72
+ */
73
+ get cm() {
74
+ return getClassMap();
75
+ }
76
+ /**
77
+ * Computes the accessible dismiss button label.
78
+ * @returns The localized aria-label for the dismiss button.
79
+ */
80
+ get dismissAriaLabel() {
81
+ return this.dismissLabel || t('ui.alert.dismiss', undefined, { defaultValue: 'Dismiss' });
82
+ }
83
+ /**
84
+ * Retrieves the CSS class for the alert title.
85
+ * @returns The title class name string.
86
+ */
87
+ get titleClass() {
88
+ return this.cm.alertTitle;
89
+ }
90
+ /**
91
+ * Retrieves the CSS class for the alert description.
92
+ * @returns The description class name string.
93
+ */
94
+ get descriptionClass() {
95
+ return this.cm.alertDescription;
96
+ }
97
+ /**
98
+ * Determines the icon type based on the alert status.
99
+ * @returns The mapped icon type string.
100
+ */
101
+ get iconType() {
102
+ return statusVariantMap[this.status] || 'default';
103
+ }
104
+ /**
105
+ * Determines whether the status icon should be shown.
106
+ * @returns True if the icon type is not default.
107
+ */
108
+ get showIcon() {
109
+ return this.iconType !== 'default';
110
+ }
111
+ statusIconMap = {
112
+ info: 'info-circle',
113
+ success: 'check-circle',
114
+ warning: 'exclamation-triangle',
115
+ error: 'x-circle',
116
+ };
117
+ /**
118
+ * Generates the SVG markup for the status icon.
119
+ * @returns The SVG string for the current status icon.
120
+ */
121
+ get statusIconSvg() {
122
+ const name = this.statusIconMap[this.iconType];
123
+ return name ? getIconSvg(name, this.cm.iconMd) : '';
124
+ }
125
+ /**
126
+ * Generates the SVG markup for the dismiss icon.
127
+ * @returns The SVG string for the dismiss button icon.
128
+ */
129
+ get dismissIconSvg() {
130
+ return getIconSvg('x-mark', this.cm.iconSm);
131
+ }
132
+ /**
133
+ * Computes the combined CSS classes for the alert container.
134
+ * @returns The alert container class name string.
135
+ */
136
+ get alertClasses() {
137
+ const cmVariant = statusVariantMap[this.status] || 'default';
138
+ return this.cm.cn(this.cm.alert({ variant: cmVariant }), this.className);
139
+ }
140
+ static ɵfac = function MoleculeAlert_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || MoleculeAlert)(); };
141
+ static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: MoleculeAlert, selectors: [["mol-alert"]], inputs: { title: "title", status: "status", variant: "variant", dismissible: "dismissible", dismissLabel: "dismissLabel", className: "className", style: "style", testId: "testId" }, outputs: { dismiss: "dismiss" }, ngContentSelectors: _c0, decls: 7, vars: 12, consts: [["role", "alert"], [3, "class"], ["type", "button", 3, "class"], [3, "innerHTML"], ["type", "button", 3, "click"]], template: function MoleculeAlert_Template(rf, ctx) { if (rf & 1) {
142
+ i0.ɵɵprojectionDef();
143
+ i0.ɵɵdomElementStart(0, "div", 0);
144
+ i0.ɵɵconditionalCreate(1, MoleculeAlert_Conditional_1_Template, 2, 3, "span", 1);
145
+ i0.ɵɵdomElementStart(2, "div");
146
+ i0.ɵɵconditionalCreate(3, MoleculeAlert_Conditional_3_Template, 2, 3, "h5", 1);
147
+ i0.ɵɵdomElementStart(4, "div");
148
+ i0.ɵɵprojection(5);
149
+ i0.ɵɵdomElementEnd()();
150
+ i0.ɵɵconditionalCreate(6, MoleculeAlert_Conditional_6_Template, 2, 4, "button", 2);
151
+ i0.ɵɵdomElementEnd();
152
+ } if (rf & 2) {
153
+ i0.ɵɵstyleMap(ctx.style);
154
+ i0.ɵɵclassMap(ctx.alertClasses);
155
+ i0.ɵɵattribute("data-testid", ctx.testId);
156
+ i0.ɵɵadvance();
157
+ i0.ɵɵconditional(ctx.showIcon ? 1 : -1);
158
+ i0.ɵɵadvance();
159
+ i0.ɵɵclassMap(ctx.cm.alertContent);
160
+ i0.ɵɵadvance();
161
+ i0.ɵɵconditional(ctx.title ? 3 : -1);
162
+ i0.ɵɵadvance();
163
+ i0.ɵɵclassMap(ctx.descriptionClass);
164
+ i0.ɵɵadvance(2);
165
+ i0.ɵɵconditional(ctx.dismissible ? 6 : -1);
166
+ } }, encapsulation: 2 });
167
+ }
168
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MoleculeAlert, [{
169
+ type: Component,
170
+ args: [{
171
+ selector: 'mol-alert',
172
+ standalone: true,
173
+ changeDetection: ChangeDetectionStrategy.OnPush,
174
+ template: `
175
+ <div role="alert" [class]="alertClasses" [style]="style" [attr.data-testid]="testId">
176
+ @if (showIcon) {
177
+ <span [class]="cm.alertIconWrapper">
178
+ <span [innerHTML]="statusIconSvg"></span>
179
+ </span>
180
+ }
181
+ <div [class]="cm.alertContent">
182
+ @if (title) {
183
+ <h5 [class]="titleClass">{{ title }}</h5>
184
+ }
185
+ <div [class]="descriptionClass">
186
+ <ng-content></ng-content>
187
+ </div>
188
+ </div>
189
+ @if (dismissible) {
190
+ <button
191
+ type="button"
192
+ (click)="dismiss.emit()"
193
+ [class]="cm.alertDismiss"
194
+ [attr.aria-label]="dismissAriaLabel"
195
+ >
196
+ <span [innerHTML]="dismissIconSvg"></span>
197
+ </button>
198
+ }
199
+ </div>
200
+ `,
201
+ }]
202
+ }], null, { title: [{
203
+ type: Input
204
+ }], status: [{
205
+ type: Input
206
+ }], variant: [{
207
+ type: Input
208
+ }], dismissible: [{
209
+ type: Input
210
+ }], dismissLabel: [{
211
+ type: Input
212
+ }], className: [{
213
+ type: Input
214
+ }], style: [{
215
+ type: Input
216
+ }], testId: [{
217
+ type: Input
218
+ }], dismiss: [{
219
+ type: Output
220
+ }] }); })();
221
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(MoleculeAlert, { className: "MoleculeAlert", filePath: "components/alert.component.ts", lineNumber: 64 }); })();
222
+ //# sourceMappingURL=alert.component.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"alert.component.js","sourceRoot":"","sources":["../../src/components/alert.component.ts"],"names":[],"mappings":"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"}
@@ -0,0 +1,27 @@
1
+ import type { ColorVariant, Size } from '@molecule/app-ui';
2
+ import * as i0 from "@angular/core";
3
+ /**
4
+ * Angular Badge UI component with UIClassMap-driven styling.
5
+ */
6
+ export declare class MoleculeBadge {
7
+ color: ColorVariant;
8
+ variant: 'solid' | 'outline' | 'subtle';
9
+ size?: Size;
10
+ rounded: boolean;
11
+ className?: string;
12
+ style?: Record<string, string>;
13
+ testId?: string;
14
+ /**
15
+ * Retrieves the current UI class map.
16
+ * @returns The UIClassMap instance for styling.
17
+ */
18
+ private get cm();
19
+ /**
20
+ * Computes the combined CSS classes for the badge element.
21
+ * @returns The badge class name string.
22
+ */
23
+ get badgeClasses(): string;
24
+ static ɵfac: i0.ɵɵFactoryDeclaration<MoleculeBadge, never>;
25
+ static ɵcmp: i0.ɵɵComponentDeclaration<MoleculeBadge, "mol-badge", never, { "color": { "alias": "color"; "required": false; }; "variant": { "alias": "variant"; "required": false; }; "size": { "alias": "size"; "required": false; }; "rounded": { "alias": "rounded"; "required": false; }; "className": { "alias": "className"; "required": false; }; "style": { "alias": "style"; "required": false; }; "testId": { "alias": "testId"; "required": false; }; }, {}, never, ["*"], true, never>;
26
+ }
27
+ //# sourceMappingURL=badge.component.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"badge.component.d.ts","sourceRoot":"","sources":["../../src/components/badge.component.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,YAAY,EAAE,IAAI,EAAc,MAAM,kBAAkB,CAAA;;AAGtE;;GAEG;AACH,qBAaa,aAAa;IACf,KAAK,EAAE,YAAY,CAAY;IAC/B,OAAO,EAAE,OAAO,GAAG,SAAS,GAAG,QAAQ,CAAU;IACjD,IAAI,CAAC,EAAE,IAAI,CAAA;IACX,OAAO,UAAO;IACd,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IAC9B,MAAM,CAAC,EAAE,MAAM,CAAA;IAExB;;;OAGG;IACH,OAAO,KAAK,EAAE,GAEb;IAED;;;OAGG;IACH,IAAI,YAAY,IAAI,MAAM,CAMzB;yCA3BU,aAAa;2CAAb,aAAa;CA4BzB"}
@@ -0,0 +1,78 @@
1
+ /**
2
+ * Angular Badge UI component with UIClassMap-driven styling.
3
+ *
4
+ * @module
5
+ */
6
+ import { ChangeDetectionStrategy, Component, Input } from '@angular/core';
7
+ import { getClassMap } from '@molecule/app-ui';
8
+ import * as i0 from "@angular/core";
9
+ const _c0 = ["*"];
10
+ /**
11
+ * Angular Badge UI component with UIClassMap-driven styling.
12
+ */
13
+ /**
14
+ * Molecule Badge class.
15
+ */
16
+ export class MoleculeBadge {
17
+ color = 'primary';
18
+ variant = 'solid';
19
+ size;
20
+ rounded = true;
21
+ className;
22
+ style;
23
+ testId;
24
+ /**
25
+ * Retrieves the current UI class map.
26
+ * @returns The UIClassMap instance for styling.
27
+ */
28
+ get cm() {
29
+ return getClassMap();
30
+ }
31
+ /**
32
+ * Computes the combined CSS classes for the badge element.
33
+ * @returns The badge class name string.
34
+ */
35
+ get badgeClasses() {
36
+ return this.cm.cn(this.cm.badge({ variant: this.color, size: this.size }), !this.rounded && this.cm.badgeSquare, this.className);
37
+ }
38
+ static ɵfac = function MoleculeBadge_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || MoleculeBadge)(); };
39
+ static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: MoleculeBadge, selectors: [["mol-badge"]], inputs: { color: "color", variant: "variant", size: "size", rounded: "rounded", className: "className", style: "style", testId: "testId" }, ngContentSelectors: _c0, decls: 2, vars: 5, template: function MoleculeBadge_Template(rf, ctx) { if (rf & 1) {
40
+ i0.ɵɵprojectionDef();
41
+ i0.ɵɵdomElementStart(0, "span");
42
+ i0.ɵɵprojection(1);
43
+ i0.ɵɵdomElementEnd();
44
+ } if (rf & 2) {
45
+ i0.ɵɵstyleMap(ctx.style);
46
+ i0.ɵɵclassMap(ctx.badgeClasses);
47
+ i0.ɵɵattribute("data-testid", ctx.testId);
48
+ } }, encapsulation: 2 });
49
+ }
50
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MoleculeBadge, [{
51
+ type: Component,
52
+ args: [{
53
+ selector: 'mol-badge',
54
+ standalone: true,
55
+ changeDetection: ChangeDetectionStrategy.OnPush,
56
+ template: `
57
+ <span [class]="badgeClasses" [style]="style" [attr.data-testid]="testId">
58
+ <ng-content></ng-content>
59
+ </span>
60
+ `,
61
+ }]
62
+ }], null, { color: [{
63
+ type: Input
64
+ }], variant: [{
65
+ type: Input
66
+ }], size: [{
67
+ type: Input
68
+ }], rounded: [{
69
+ type: Input
70
+ }], className: [{
71
+ type: Input
72
+ }], style: [{
73
+ type: Input
74
+ }], testId: [{
75
+ type: Input
76
+ }] }); })();
77
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(MoleculeBadge, { className: "MoleculeBadge", filePath: "components/badge.component.ts", lineNumber: 28 }); })();
78
+ //# sourceMappingURL=badge.component.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"badge.component.js","sourceRoot":"","sources":["../../src/components/badge.component.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,uBAAuB,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,eAAe,CAAA;AAGzE,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;;;AAE9C;;GAEG;AAWH;;GAEG;AACH,MAAM,OAAO,aAAa;IACf,KAAK,GAAiB,SAAS,CAAA;IAC/B,OAAO,GAAmC,OAAO,CAAA;IACjD,IAAI,CAAO;IACX,OAAO,GAAG,IAAI,CAAA;IACd,SAAS,CAAS;IAClB,KAAK,CAAyB;IAC9B,MAAM,CAAS;IAExB;;;OAGG;IACH,IAAY,EAAE;QACZ,OAAO,WAAW,EAAE,CAAA;IACtB,CAAC;IAED;;;OAGG;IACH,IAAI,YAAY;QACd,OAAO,IAAI,CAAC,EAAE,CAAC,EAAE,CACf,IAAI,CAAC,EAAE,CAAC,KAAK,CAAC,EAAE,OAAO,EAAE,IAAI,CAAC,KAAK,EAAE,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,CAAC,EACvD,CAAC,IAAI,CAAC,OAAO,IAAI,IAAI,CAAC,EAAE,CAAC,WAAW,EACpC,IAAI,CAAC,SAAS,CACf,CAAA;IACH,CAAC;uGA3BU,aAAa;6DAAb,aAAa;;YARtB,+BAAyE;YACvE,kBAAyB;YAC3B,oBAAO;;YAFsB,wBAAe;YAAtC,+BAAsB;;;;iFAQnB,aAAa;cAbzB,SAAS;eAAC;gBACT,QAAQ,EAAE,WAAW;gBACrB,UAAU,EAAE,IAAI;gBAChB,eAAe,EAAE,uBAAuB,CAAC,MAAM;gBAC/C,QAAQ,EAAE;;;;GAIT;aACF;;kBAKE,KAAK;;kBACL,KAAK;;kBACL,KAAK;;kBACL,KAAK;;kBACL,KAAK;;kBACL,KAAK;;kBACL,KAAK;;kFAPK,aAAa"}
@@ -0,0 +1,38 @@
1
+ /**
2
+ * Angular Button UI component with UIClassMap-driven styling.
3
+ *
4
+ * @module
5
+ */
6
+ import { EventEmitter } from '@angular/core';
7
+ import type { ButtonVariant, ColorVariant, Size, UIClassMap } from '@molecule/app-ui';
8
+ import * as i0 from "@angular/core";
9
+ /**
10
+ * Angular Button UI component with UIClassMap-driven styling.
11
+ */
12
+ export declare class MoleculeButton {
13
+ variant: ButtonVariant;
14
+ color: ColorVariant;
15
+ size: Size;
16
+ loading: boolean;
17
+ loadingText?: string;
18
+ fullWidth: boolean;
19
+ className?: string;
20
+ style?: Record<string, string>;
21
+ testId?: string;
22
+ disabled: boolean;
23
+ type: 'button' | 'submit' | 'reset';
24
+ handleClick: EventEmitter<MouseEvent>;
25
+ /**
26
+ * Retrieves the current UI class map.
27
+ * @returns The UIClassMap instance for styling.
28
+ */
29
+ get cm(): UIClassMap;
30
+ /**
31
+ * Computes the combined CSS classes for the button element.
32
+ * @returns The button class name string.
33
+ */
34
+ get classes(): string;
35
+ static ɵfac: i0.ɵɵFactoryDeclaration<MoleculeButton, never>;
36
+ static ɵcmp: i0.ɵɵComponentDeclaration<MoleculeButton, "mol-button", never, { "variant": { "alias": "variant"; "required": false; }; "color": { "alias": "color"; "required": false; }; "size": { "alias": "size"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "loadingText": { "alias": "loadingText"; "required": false; }; "fullWidth": { "alias": "fullWidth"; "required": false; }; "className": { "alias": "className"; "required": false; }; "style": { "alias": "style"; "required": false; }; "testId": { "alias": "testId"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "type": { "alias": "type"; "required": false; }; }, { "handleClick": "handleClick"; }, never, ["*"], true, never>;
37
+ }
38
+ //# sourceMappingURL=button.component.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"button.component.d.ts","sourceRoot":"","sources":["../../src/components/button.component.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAsC,YAAY,EAAiB,MAAM,eAAe,CAAA;AAE/F,OAAO,KAAK,EAAE,aAAa,EAAE,YAAY,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;;AAGrF;;GAEG;AACH,qBA6Ba,cAAc;IAChB,OAAO,EAAE,aAAa,CAAU;IAChC,KAAK,EAAE,YAAY,CAAY;IAC/B,IAAI,EAAE,IAAI,CAAO;IACjB,OAAO,UAAQ;IACf,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,SAAS,UAAQ;IACjB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IAC9B,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,QAAQ,UAAQ;IAChB,IAAI,EAAE,QAAQ,GAAG,QAAQ,GAAG,OAAO,CAAW;IAE7C,WAAW,2BAAiC;IAEtD;;;OAGG;IACH,IAAI,EAAE,IAAI,UAAU,CAEnB;IAED;;;OAGG;IACH,IAAI,OAAO,IAAI,MAAM,CAUpB;yCArCU,cAAc;2CAAd,cAAc;CAsC1B"}
@@ -0,0 +1,136 @@
1
+ /**
2
+ * Angular Button UI component with UIClassMap-driven styling.
3
+ *
4
+ * @module
5
+ */
6
+ import { ChangeDetectionStrategy, Component, EventEmitter, Input, Output } from '@angular/core';
7
+ import { getClassMap } from '@molecule/app-ui';
8
+ import * as i0 from "@angular/core";
9
+ const _c0 = ["*"];
10
+ function MoleculeButton_Conditional_1_Template(rf, ctx) { if (rf & 1) {
11
+ i0.ɵɵdomElement(0, "span");
12
+ } if (rf & 2) {
13
+ const ctx_r0 = i0.ɵɵnextContext();
14
+ i0.ɵɵclassMap(ctx_r0.cm.buttonSpinner);
15
+ } }
16
+ function MoleculeButton_Conditional_2_Template(rf, ctx) { if (rf & 1) {
17
+ i0.ɵɵtext(0);
18
+ } if (rf & 2) {
19
+ const ctx_r0 = i0.ɵɵnextContext();
20
+ i0.ɵɵtextInterpolate1(" ", ctx_r0.loadingText, " ");
21
+ } }
22
+ function MoleculeButton_Conditional_3_Template(rf, ctx) { if (rf & 1) {
23
+ i0.ɵɵprojection(0);
24
+ } }
25
+ /**
26
+ * Angular Button UI component with UIClassMap-driven styling.
27
+ */
28
+ /**
29
+ * Molecule Button class.
30
+ */
31
+ export class MoleculeButton {
32
+ variant = 'solid';
33
+ color = 'primary';
34
+ size = 'md';
35
+ loading = false;
36
+ loadingText;
37
+ fullWidth = false;
38
+ className;
39
+ style;
40
+ testId;
41
+ disabled = false;
42
+ type = 'button';
43
+ handleClick = new EventEmitter();
44
+ /**
45
+ * Retrieves the current UI class map.
46
+ * @returns The UIClassMap instance for styling.
47
+ */
48
+ get cm() {
49
+ return getClassMap();
50
+ }
51
+ /**
52
+ * Computes the combined CSS classes for the button element.
53
+ * @returns The button class name string.
54
+ */
55
+ get classes() {
56
+ return this.cm.cn(this.cm.button({
57
+ variant: this.variant,
58
+ color: this.color,
59
+ size: this.size,
60
+ fullWidth: this.fullWidth,
61
+ }), this.className);
62
+ }
63
+ static ɵfac = function MoleculeButton_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || MoleculeButton)(); };
64
+ static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: MoleculeButton, selectors: [["mol-button"]], hostAttrs: [2, "display", "contents"], inputs: { variant: "variant", color: "color", size: "size", loading: "loading", loadingText: "loadingText", fullWidth: "fullWidth", className: "className", style: "style", testId: "testId", disabled: "disabled", type: "type" }, outputs: { handleClick: "handleClick" }, ngContentSelectors: _c0, decls: 4, vars: 10, consts: [[3, "click", "type", "disabled"], [3, "class"]], template: function MoleculeButton_Template(rf, ctx) { if (rf & 1) {
65
+ i0.ɵɵprojectionDef();
66
+ i0.ɵɵdomElementStart(0, "button", 0);
67
+ i0.ɵɵdomListener("click", function MoleculeButton_Template_button_click_0_listener($event) { return ctx.handleClick.emit($event); });
68
+ i0.ɵɵconditionalCreate(1, MoleculeButton_Conditional_1_Template, 1, 2, "span", 1);
69
+ i0.ɵɵconditionalCreate(2, MoleculeButton_Conditional_2_Template, 1, 1)(3, MoleculeButton_Conditional_3_Template, 1, 0);
70
+ i0.ɵɵdomElementEnd();
71
+ } if (rf & 2) {
72
+ i0.ɵɵstyleMap(ctx.style);
73
+ i0.ɵɵclassMap(ctx.classes);
74
+ i0.ɵɵdomProperty("type", ctx.type)("disabled", ctx.disabled || ctx.loading);
75
+ i0.ɵɵattribute("data-testid", ctx.testId)("aria-busy", ctx.loading);
76
+ i0.ɵɵadvance();
77
+ i0.ɵɵconditional(ctx.loading ? 1 : -1);
78
+ i0.ɵɵadvance();
79
+ i0.ɵɵconditional(ctx.loading && ctx.loadingText ? 2 : 3);
80
+ } }, encapsulation: 2 });
81
+ }
82
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MoleculeButton, [{
83
+ type: Component,
84
+ args: [{
85
+ selector: 'mol-button',
86
+ standalone: true,
87
+ changeDetection: ChangeDetectionStrategy.OnPush,
88
+ host: { style: 'display: contents' },
89
+ template: `
90
+ <button
91
+ [type]="type"
92
+ [class]="classes"
93
+ [style]="style"
94
+ [attr.data-testid]="testId"
95
+ [disabled]="disabled || loading"
96
+ [attr.aria-busy]="loading"
97
+ (click)="handleClick.emit($event)"
98
+ >
99
+ @if (loading) {
100
+ <span [class]="cm.buttonSpinner"></span>
101
+ }
102
+ @if (loading && loadingText) {
103
+ {{ loadingText }}
104
+ } @else {
105
+ <ng-content></ng-content>
106
+ }
107
+ </button>
108
+ `,
109
+ }]
110
+ }], null, { variant: [{
111
+ type: Input
112
+ }], color: [{
113
+ type: Input
114
+ }], size: [{
115
+ type: Input
116
+ }], loading: [{
117
+ type: Input
118
+ }], loadingText: [{
119
+ type: Input
120
+ }], fullWidth: [{
121
+ type: Input
122
+ }], className: [{
123
+ type: Input
124
+ }], style: [{
125
+ type: Input
126
+ }], testId: [{
127
+ type: Input
128
+ }], disabled: [{
129
+ type: Input
130
+ }], type: [{
131
+ type: Input
132
+ }], handleClick: [{
133
+ type: Output
134
+ }] }); })();
135
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(MoleculeButton, { className: "MoleculeButton", filePath: "components/button.component.ts", lineNumber: 44 }); })();
136
+ //# sourceMappingURL=button.component.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"button.component.js","sourceRoot":"","sources":["../../src/components/button.component.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,uBAAuB,EAAE,SAAS,EAAE,YAAY,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAA;AAG/F,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;;;;IAqBtC,0BAAwC;;;IAAlC,sCAA0B;;;IAGhC,YACF;;;IADE,mDACF;;;IACE,kBAAyB;;AAxBjC;;GAEG;AA2BH;;GAEG;AACH,MAAM,OAAO,cAAc;IAChB,OAAO,GAAkB,OAAO,CAAA;IAChC,KAAK,GAAiB,SAAS,CAAA;IAC/B,IAAI,GAAS,IAAI,CAAA;IACjB,OAAO,GAAG,KAAK,CAAA;IACf,WAAW,CAAS;IACpB,SAAS,GAAG,KAAK,CAAA;IACjB,SAAS,CAAS;IAClB,KAAK,CAAyB;IAC9B,MAAM,CAAS;IACf,QAAQ,GAAG,KAAK,CAAA;IAChB,IAAI,GAAkC,QAAQ,CAAA;IAE7C,WAAW,GAAG,IAAI,YAAY,EAAc,CAAA;IAEtD;;;OAGG;IACH,IAAI,EAAE;QACJ,OAAO,WAAW,EAAE,CAAA;IACtB,CAAC;IAED;;;OAGG;IACH,IAAI,OAAO;QACT,OAAO,IAAI,CAAC,EAAE,CAAC,EAAE,CACf,IAAI,CAAC,EAAE,CAAC,MAAM,CAAC;YACb,OAAO,EAAE,IAAI,CAAC,OAAO;YACrB,KAAK,EAAE,IAAI,CAAC,KAAK;YACjB,IAAI,EAAE,IAAI,CAAC,IAAI;YACf,SAAS,EAAE,IAAI,CAAC,SAAS;SAC1B,CAAC,EACF,IAAI,CAAC,SAAS,CACf,CAAA;IACH,CAAC;wGArCU,cAAc;6DAAd,cAAc;;YAvBvB,oCAQC;YADC,oGAAS,4BAAwB,IAAC;YAElC,iFAAe;YAKb,AAFF,sEAA8B,gDAErB;YAGX,oBAAS;;YAdP,wBAAe;YADf,0BAAiB;YAGjB,AAJA,kCAAa,yCAImB;;YAIhC,cAEC;YAFD,sCAEC;YACD,cAIC;YAJD,wDAIC;;;iFAOM,cAAc;cA7B1B,SAAS;eAAC;gBACT,QAAQ,EAAE,YAAY;gBACtB,UAAU,EAAE,IAAI;gBAChB,eAAe,EAAE,uBAAuB,CAAC,MAAM;gBAC/C,IAAI,EAAE,EAAE,KAAK,EAAE,mBAAmB,EAAE;gBACpC,QAAQ,EAAE;;;;;;;;;;;;;;;;;;;GAmBT;aACF;;kBAKE,KAAK;;kBACL,KAAK;;kBACL,KAAK;;kBACL,KAAK;;kBACL,KAAK;;kBACL,KAAK;;kBACL,KAAK;;kBACL,KAAK;;kBACL,KAAK;;kBACL,KAAK;;kBACL,KAAK;;kBAEL,MAAM;;kFAbI,cAAc"}
@@ -0,0 +1,53 @@
1
+ /**
2
+ * Angular Checkbox UI component with UIClassMap-driven styling.
3
+ *
4
+ * @module
5
+ */
6
+ import { EventEmitter } from '@angular/core';
7
+ import type { Size, UIClassMap } from '@molecule/app-ui';
8
+ import * as i0 from "@angular/core";
9
+ /**
10
+ * Angular Checkbox UI component with UIClassMap-driven styling.
11
+ */
12
+ export declare class MoleculeCheckbox {
13
+ label?: string;
14
+ checked: boolean;
15
+ indeterminate: boolean;
16
+ size?: Size;
17
+ error?: string;
18
+ className?: string;
19
+ style?: Record<string, string>;
20
+ testId?: string;
21
+ disabled: boolean;
22
+ name?: string;
23
+ id?: string;
24
+ handleChange: EventEmitter<Event>;
25
+ /**
26
+ * Retrieves the current UI class map.
27
+ * @returns The UIClassMap instance for styling.
28
+ */
29
+ get cm(): UIClassMap;
30
+ /**
31
+ * Resolves the checkbox input element ID.
32
+ * @returns The resolved ID from the id or name input.
33
+ */
34
+ get checkboxId(): string;
35
+ /**
36
+ * Computes the combined CSS classes for the checkbox input.
37
+ * @returns The checkbox class name string.
38
+ */
39
+ get checkboxClasses(): string;
40
+ /**
41
+ * Computes the CSS classes for the checkbox label text.
42
+ * @returns The label class name string.
43
+ */
44
+ get labelClasses(): string;
45
+ /**
46
+ * Computes the CSS classes for the error message.
47
+ * @returns The error class name string.
48
+ */
49
+ get errorClasses(): string;
50
+ static ɵfac: i0.ɵɵFactoryDeclaration<MoleculeCheckbox, never>;
51
+ static ɵcmp: i0.ɵɵComponentDeclaration<MoleculeCheckbox, "mol-checkbox", never, { "label": { "alias": "label"; "required": false; }; "checked": { "alias": "checked"; "required": false; }; "indeterminate": { "alias": "indeterminate"; "required": false; }; "size": { "alias": "size"; "required": false; }; "error": { "alias": "error"; "required": false; }; "className": { "alias": "className"; "required": false; }; "style": { "alias": "style"; "required": false; }; "testId": { "alias": "testId"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "name": { "alias": "name"; "required": false; }; "id": { "alias": "id"; "required": false; }; }, { "handleChange": "handleChange"; }, never, never, true, never>;
52
+ }
53
+ //# sourceMappingURL=checkbox.component.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"checkbox.component.d.ts","sourceRoot":"","sources":["../../src/components/checkbox.component.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAsC,YAAY,EAAiB,MAAM,eAAe,CAAA;AAE/F,OAAO,KAAK,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;;AAGxD;;GAEG;AACH,qBAiCa,gBAAgB;IAClB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,OAAO,UAAQ;IACf,aAAa,UAAQ;IACrB,IAAI,CAAC,EAAE,IAAI,CAAA;IACX,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IAC9B,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,QAAQ,UAAQ;IAChB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,EAAE,CAAC,EAAE,MAAM,CAAA;IAEV,YAAY,sBAA4B;IAElD;;;OAGG;IACH,IAAI,EAAE,IAAI,UAAU,CAEnB;IAED;;;OAGG;IACH,IAAI,UAAU,IAAI,MAAM,CAEvB;IAED;;;OAGG;IACH,IAAI,eAAe,IAAI,MAAM,CAE5B;IAED;;;OAGG;IACH,IAAI,YAAY,IAAI,MAAM,CAEzB;IAED;;;OAGG;IACH,IAAI,YAAY,IAAI,MAAM,CAEzB;yCArDU,gBAAgB;2CAAhB,gBAAgB;CAsD5B"}