@molecule/app-ui-angular 1.0.6 → 1.1.1
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.
- package/README.md +11740 -1143
- package/dist/components/accordion.component.d.ts +114 -0
- package/dist/components/accordion.component.d.ts.map +1 -0
- package/dist/components/accordion.component.js +286 -0
- package/dist/components/accordion.component.js.map +1 -0
- package/dist/components/alert.component.d.ts +81 -37
- package/dist/components/alert.component.d.ts.map +1 -1
- package/dist/components/alert.component.js +232 -146
- package/dist/components/alert.component.js.map +1 -1
- package/dist/components/auth-guard.component.d.ts +94 -0
- package/dist/components/auth-guard.component.d.ts.map +1 -0
- package/dist/components/auth-guard.component.js +212 -0
- package/dist/components/auth-guard.component.js.map +1 -0
- package/dist/components/avatar.component.d.ts +97 -0
- package/dist/components/avatar.component.d.ts.map +1 -0
- package/dist/components/avatar.component.js +216 -0
- package/dist/components/avatar.component.js.map +1 -0
- package/dist/components/badge.component.d.ts +27 -12
- package/dist/components/badge.component.d.ts.map +1 -1
- package/dist/components/badge.component.js +47 -47
- package/dist/components/badge.component.js.map +1 -1
- package/dist/components/button.component.d.ts +96 -14
- package/dist/components/button.component.d.ts.map +1 -1
- package/dist/components/button.component.js +232 -87
- package/dist/components/button.component.js.map +1 -1
- package/dist/components/card.component.d.ts +135 -0
- package/dist/components/card.component.d.ts.map +1 -0
- package/dist/components/card.component.js +291 -0
- package/dist/components/card.component.js.map +1 -0
- package/dist/components/checkbox.component.d.ts +102 -29
- package/dist/components/checkbox.component.d.ts.map +1 -1
- package/dist/components/checkbox.component.js +222 -113
- package/dist/components/checkbox.component.js.map +1 -1
- package/dist/components/confirm-button.component.d.ts +130 -0
- package/dist/components/confirm-button.component.d.ts.map +1 -0
- package/dist/components/confirm-button.component.js +322 -0
- package/dist/components/confirm-button.component.js.map +1 -0
- package/dist/components/confirm-dialog.component.d.ts +60 -0
- package/dist/components/confirm-dialog.component.d.ts.map +1 -0
- package/dist/components/confirm-dialog.component.js +152 -0
- package/dist/components/confirm-dialog.component.js.map +1 -0
- package/dist/components/dropdown.component.d.ts +313 -0
- package/dist/components/dropdown.component.d.ts.map +1 -0
- package/dist/components/dropdown.component.js +919 -0
- package/dist/components/dropdown.component.js.map +1 -0
- package/dist/components/empty-state.component.d.ts +73 -0
- package/dist/components/empty-state.component.d.ts.map +1 -0
- package/dist/components/empty-state.component.js +180 -0
- package/dist/components/empty-state.component.js.map +1 -0
- package/dist/components/floating-input.component.d.ts +86 -0
- package/dist/components/floating-input.component.d.ts.map +1 -0
- package/dist/components/floating-input.component.js +167 -0
- package/dist/components/floating-input.component.js.map +1 -0
- package/dist/components/form-field.component.d.ts +111 -0
- package/dist/components/form-field.component.d.ts.map +1 -0
- package/dist/components/form-field.component.js +300 -0
- package/dist/components/form-field.component.js.map +1 -0
- package/dist/components/form.component.d.ts +77 -0
- package/dist/components/form.component.d.ts.map +1 -0
- package/dist/components/form.component.js +222 -0
- package/dist/components/form.component.js.map +1 -0
- package/dist/components/icon.component.d.ts +85 -0
- package/dist/components/icon.component.d.ts.map +1 -0
- package/dist/components/icon.component.js +187 -0
- package/dist/components/icon.component.js.map +1 -0
- package/dist/components/index.d.ts +49 -0
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.js +49 -0
- package/dist/components/index.js.map +1 -1
- package/dist/components/input.component.d.ts +157 -54
- package/dist/components/input.component.d.ts.map +1 -1
- package/dist/components/input.component.js +437 -222
- package/dist/components/input.component.js.map +1 -1
- package/dist/components/label.component.d.ts +29 -0
- package/dist/components/label.component.d.ts.map +1 -0
- package/dist/components/label.component.js +60 -0
- package/dist/components/label.component.js.map +1 -0
- package/dist/components/language-picker.component.d.ts +124 -0
- package/dist/components/language-picker.component.d.ts.map +1 -0
- package/dist/components/language-picker.component.js +305 -0
- package/dist/components/language-picker.component.js.map +1 -0
- package/dist/components/layout.component.d.ts +167 -0
- package/dist/components/layout.component.d.ts.map +1 -0
- package/dist/components/layout.component.js +364 -0
- package/dist/components/layout.component.js.map +1 -0
- package/dist/components/load-error-banner.component.d.ts +103 -0
- package/dist/components/load-error-banner.component.d.ts.map +1 -0
- package/dist/components/load-error-banner.component.js +263 -0
- package/dist/components/load-error-banner.component.js.map +1 -0
- package/dist/components/modal.component.d.ts +125 -95
- package/dist/components/modal.component.d.ts.map +1 -1
- package/dist/components/modal.component.js +458 -271
- package/dist/components/modal.component.js.map +1 -1
- package/dist/components/molecule/alert.component.d.ts +77 -0
- package/dist/components/molecule/alert.component.d.ts.map +1 -0
- package/dist/components/molecule/alert.component.js +229 -0
- package/dist/components/molecule/alert.component.js.map +1 -0
- package/dist/components/molecule/badge.component.d.ts +27 -0
- package/dist/components/molecule/badge.component.d.ts.map +1 -0
- package/dist/components/molecule/badge.component.js +79 -0
- package/dist/components/molecule/badge.component.js.map +1 -0
- package/dist/components/molecule/button.component.d.ts +38 -0
- package/dist/components/molecule/button.component.d.ts.map +1 -0
- package/dist/components/molecule/button.component.js +137 -0
- package/dist/components/molecule/button.component.js.map +1 -0
- package/dist/components/molecule/checkbox.component.d.ts +53 -0
- package/dist/components/molecule/checkbox.component.d.ts.map +1 -0
- package/dist/components/molecule/checkbox.component.js +166 -0
- package/dist/components/molecule/checkbox.component.js.map +1 -0
- package/dist/components/molecule/index.d.ts +18 -0
- package/dist/components/molecule/index.d.ts.map +1 -0
- package/dist/components/molecule/index.js +18 -0
- package/dist/components/molecule/index.js.map +1 -0
- package/dist/components/molecule/input.component.d.ts +93 -0
- package/dist/components/molecule/input.component.d.ts.map +1 -0
- package/dist/components/molecule/input.component.js +314 -0
- package/dist/components/molecule/input.component.js.map +1 -0
- package/dist/components/molecule/modal.component.d.ts +148 -0
- package/dist/components/molecule/modal.component.d.ts.map +1 -0
- package/dist/components/molecule/modal.component.js +382 -0
- package/dist/components/molecule/modal.component.js.map +1 -0
- package/dist/components/molecule/radio-group.component.d.ts +63 -0
- package/dist/components/molecule/radio-group.component.d.ts.map +1 -0
- package/dist/components/molecule/radio-group.component.js +208 -0
- package/dist/components/molecule/radio-group.component.js.map +1 -0
- package/dist/components/molecule/select.component.d.ts +72 -0
- package/dist/components/molecule/select.component.d.ts.map +1 -0
- package/dist/components/molecule/select.component.js +274 -0
- package/dist/components/molecule/select.component.js.map +1 -0
- package/dist/components/molecule/spinner.component.d.ts +42 -0
- package/dist/components/molecule/spinner.component.d.ts.map +1 -0
- package/dist/components/molecule/spinner.component.js +122 -0
- package/dist/components/molecule/spinner.component.js.map +1 -0
- package/dist/components/molecule/switch.component.d.ts +54 -0
- package/dist/components/molecule/switch.component.d.ts.map +1 -0
- package/dist/components/molecule/switch.component.js +148 -0
- package/dist/components/molecule/switch.component.js.map +1 -0
- package/dist/components/molecule/toast.component.d.ts +98 -0
- package/dist/components/molecule/toast.component.d.ts.map +1 -0
- package/dist/components/molecule/toast.component.js +305 -0
- package/dist/components/molecule/toast.component.js.map +1 -0
- package/dist/components/molecule/tooltip.component.d.ts +77 -0
- package/dist/components/molecule/tooltip.component.d.ts.map +1 -0
- package/dist/components/molecule/tooltip.component.js +316 -0
- package/dist/components/molecule/tooltip.component.js.map +1 -0
- package/dist/components/optimistic-toggle-button.component.d.ts +125 -0
- package/dist/components/optimistic-toggle-button.component.d.ts.map +1 -0
- package/dist/components/optimistic-toggle-button.component.js +296 -0
- package/dist/components/optimistic-toggle-button.component.js.map +1 -0
- package/dist/components/page-header.component.d.ts +77 -0
- package/dist/components/page-header.component.d.ts.map +1 -0
- package/dist/components/page-header.component.js +225 -0
- package/dist/components/page-header.component.js.map +1 -0
- package/dist/components/page-shell.component.d.ts +101 -0
- package/dist/components/page-shell.component.d.ts.map +1 -0
- package/dist/components/page-shell.component.js +221 -0
- package/dist/components/page-shell.component.js.map +1 -0
- package/dist/components/pagination.component.d.ts +137 -0
- package/dist/components/pagination.component.d.ts.map +1 -0
- package/dist/components/pagination.component.js +419 -0
- package/dist/components/pagination.component.js.map +1 -0
- package/dist/components/panel-close.component.d.ts +43 -0
- package/dist/components/panel-close.component.d.ts.map +1 -0
- package/dist/components/panel-close.component.js +75 -0
- package/dist/components/panel-close.component.js.map +1 -0
- package/dist/components/progress.component.d.ts +84 -0
- package/dist/components/progress.component.d.ts.map +1 -0
- package/dist/components/progress.component.js +219 -0
- package/dist/components/progress.component.js.map +1 -0
- package/dist/components/prompt-dialog.component.d.ts +121 -0
- package/dist/components/prompt-dialog.component.d.ts.map +1 -0
- package/dist/components/prompt-dialog.component.js +332 -0
- package/dist/components/prompt-dialog.component.js.map +1 -0
- package/dist/components/radio-group.component.d.ts +66 -34
- package/dist/components/radio-group.component.d.ts.map +1 -1
- package/dist/components/radio-group.component.js +146 -125
- package/dist/components/radio-group.component.js.map +1 -1
- package/dist/components/responsive-app-shell.component.d.ts +408 -0
- package/dist/components/responsive-app-shell.component.d.ts.map +1 -0
- package/dist/components/responsive-app-shell.component.js +1144 -0
- package/dist/components/responsive-app-shell.component.js.map +1 -0
- package/dist/components/select.component.d.ts +135 -38
- package/dist/components/select.component.d.ts.map +1 -1
- package/dist/components/select.component.js +373 -181
- package/dist/components/select.component.js.map +1 -1
- package/dist/components/separator.component.d.ts +39 -0
- package/dist/components/separator.component.d.ts.map +1 -0
- package/dist/components/separator.component.js +73 -0
- package/dist/components/separator.component.js.map +1 -0
- package/dist/components/sidebar-user-card.component.d.ts +106 -0
- package/dist/components/sidebar-user-card.component.d.ts.map +1 -0
- package/dist/components/sidebar-user-card.component.js +277 -0
- package/dist/components/sidebar-user-card.component.js.map +1 -0
- package/dist/components/skeleton.component.d.ts +100 -0
- package/dist/components/skeleton.component.d.ts.map +1 -0
- package/dist/components/skeleton.component.js +214 -0
- package/dist/components/skeleton.component.js.map +1 -0
- package/dist/components/spinner.component.d.ts +36 -19
- package/dist/components/spinner.component.d.ts.map +1 -1
- package/dist/components/spinner.component.js +69 -71
- package/dist/components/spinner.component.js.map +1 -1
- package/dist/components/switch.component.d.ts +72 -29
- package/dist/components/switch.component.d.ts.map +1 -1
- package/dist/components/switch.component.js +163 -91
- package/dist/components/switch.component.js.map +1 -1
- package/dist/components/table.component.d.ts +193 -0
- package/dist/components/table.component.d.ts.map +1 -0
- package/dist/components/table.component.js +550 -0
- package/dist/components/table.component.js.map +1 -0
- package/dist/components/tabs.component.d.ts +140 -0
- package/dist/components/tabs.component.d.ts.map +1 -0
- package/dist/components/tabs.component.js +390 -0
- package/dist/components/tabs.component.js.map +1 -0
- package/dist/components/template-outlet.directive.d.ts +50 -0
- package/dist/components/template-outlet.directive.d.ts.map +1 -0
- package/dist/components/template-outlet.directive.js +81 -0
- package/dist/components/template-outlet.directive.js.map +1 -0
- package/dist/components/textarea.component.d.ts +151 -0
- package/dist/components/textarea.component.d.ts.map +1 -0
- package/dist/components/textarea.component.js +340 -0
- package/dist/components/textarea.component.js.map +1 -0
- package/dist/components/theme-toggle.component.d.ts +58 -0
- package/dist/components/theme-toggle.component.d.ts.map +1 -0
- package/dist/components/theme-toggle.component.js +124 -0
- package/dist/components/theme-toggle.component.js.map +1 -0
- package/dist/components/toast.component.d.ts +237 -49
- package/dist/components/toast.component.d.ts.map +1 -1
- package/dist/components/toast.component.js +636 -201
- package/dist/components/toast.component.js.map +1 -1
- package/dist/components/tooltip.component.d.ts +95 -45
- package/dist/components/tooltip.component.d.ts.map +1 -1
- package/dist/components/tooltip.component.js +372 -221
- package/dist/components/tooltip.component.js.map +1 -1
- package/dist/components/user-menu-popover.component.d.ts +283 -0
- package/dist/components/user-menu-popover.component.d.ts.map +1 -0
- package/dist/components/user-menu-popover.component.js +646 -0
- package/dist/components/user-menu-popover.component.js.map +1 -0
- package/dist/components/user-menu.component.d.ts +95 -0
- package/dist/components/user-menu.component.d.ts.map +1 -0
- package/dist/components/user-menu.component.js +218 -0
- package/dist/components/user-menu.component.js.map +1 -0
- package/dist/hooks/index.d.ts +7 -0
- package/dist/hooks/index.d.ts.map +1 -0
- package/dist/hooks/index.js +7 -0
- package/dist/hooks/index.js.map +1 -0
- package/dist/hooks/use-is-desktop.d.ts +22 -0
- package/dist/hooks/use-is-desktop.d.ts.map +1 -0
- package/dist/hooks/use-is-desktop.js +37 -0
- package/dist/hooks/use-is-desktop.js.map +1 -0
- package/dist/index.d.ts +32 -17
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +32 -17
- package/dist/index.js.map +1 -1
- package/dist/types.d.ts +1 -1
- package/dist/types.d.ts.map +1 -1
- package/dist/utilities/dom-context.d.ts +42 -0
- package/dist/utilities/dom-context.d.ts.map +1 -0
- package/dist/utilities/dom-context.js +66 -0
- package/dist/utilities/dom-context.js.map +1 -0
- package/dist/utilities/focus.d.ts +32 -0
- package/dist/utilities/focus.d.ts.map +1 -0
- package/dist/utilities/focus.js +47 -0
- package/dist/utilities/focus.js.map +1 -0
- package/dist/utilities/form-field-context.d.ts +34 -0
- package/dist/utilities/form-field-context.d.ts.map +1 -0
- package/dist/utilities/form-field-context.js +28 -0
- package/dist/utilities/form-field-context.js.map +1 -0
- package/dist/utilities/form-submit-error.d.ts +17 -0
- package/dist/utilities/form-submit-error.d.ts.map +1 -0
- package/dist/utilities/form-submit-error.js +42 -0
- package/dist/utilities/form-submit-error.js.map +1 -0
- package/dist/utilities/icon-markup.d.ts +17 -0
- package/dist/utilities/icon-markup.d.ts.map +1 -0
- package/dist/utilities/icon-markup.js +46 -0
- package/dist/utilities/icon-markup.js.map +1 -0
- package/dist/utilities/ids.d.ts +15 -0
- package/dist/utilities/ids.d.ts.map +1 -0
- package/dist/utilities/ids.js +19 -0
- package/dist/utilities/ids.js.map +1 -0
- package/dist/utilities/index.d.ts +11 -0
- package/dist/utilities/index.d.ts.map +1 -1
- package/dist/utilities/index.js +11 -0
- package/dist/utilities/index.js.map +1 -1
- package/dist/utilities/initials.d.ts +13 -0
- package/dist/utilities/initials.d.ts.map +1 -0
- package/dist/utilities/initials.js +23 -0
- package/dist/utilities/initials.js.map +1 -0
- package/dist/utilities/node-value.d.ts +31 -0
- package/dist/utilities/node-value.d.ts.map +1 -0
- package/dist/utilities/node-value.js +37 -0
- package/dist/utilities/node-value.js.map +1 -0
- package/dist/utilities/optimistic-value.d.ts +81 -0
- package/dist/utilities/optimistic-value.d.ts.map +1 -0
- package/dist/utilities/optimistic-value.js +154 -0
- package/dist/utilities/optimistic-value.js.map +1 -0
- package/dist/utilities/render-icon.d.ts +77 -7
- package/dist/utilities/render-icon.d.ts.map +1 -1
- package/dist/utilities/render-icon.js +123 -33
- package/dist/utilities/render-icon.js.map +1 -1
- package/dist/utilities/rest-attrs.d.ts +21 -0
- package/dist/utilities/rest-attrs.d.ts.map +1 -0
- package/dist/utilities/rest-attrs.js +37 -0
- package/dist/utilities/rest-attrs.js.map +1 -0
- package/dist/utilities/style.d.ts +23 -0
- package/dist/utilities/style.d.ts.map +1 -0
- package/dist/utilities/style.js +86 -0
- package/dist/utilities/style.js.map +1 -0
- package/package.json +6 -4
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Angular Switch 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
|
+
function MoleculeSwitch_Conditional_3_Template(rf, ctx) { if (rf & 1) {
|
|
10
|
+
i0.ɵɵdomElementStart(0, "span");
|
|
11
|
+
i0.ɵɵtext(1);
|
|
12
|
+
i0.ɵɵdomElementEnd();
|
|
13
|
+
} if (rf & 2) {
|
|
14
|
+
const ctx_r0 = i0.ɵɵnextContext();
|
|
15
|
+
i0.ɵɵclassMap(ctx_r0.cm.controlText);
|
|
16
|
+
i0.ɵɵadvance();
|
|
17
|
+
i0.ɵɵtextInterpolate(ctx_r0.label);
|
|
18
|
+
} }
|
|
19
|
+
/**
|
|
20
|
+
* Angular Switch UI component with UIClassMap-driven styling.
|
|
21
|
+
*/
|
|
22
|
+
/**
|
|
23
|
+
* Molecule Switch class.
|
|
24
|
+
* @deprecated Use the React-named component `Switch` instead.
|
|
25
|
+
*/
|
|
26
|
+
export class MoleculeSwitch {
|
|
27
|
+
label;
|
|
28
|
+
checked = false;
|
|
29
|
+
size = 'md';
|
|
30
|
+
color;
|
|
31
|
+
className;
|
|
32
|
+
style;
|
|
33
|
+
testId;
|
|
34
|
+
disabled = false;
|
|
35
|
+
checkedChange = new EventEmitter();
|
|
36
|
+
/**
|
|
37
|
+
* Retrieves the current UI class map.
|
|
38
|
+
* @returns The UIClassMap instance for styling.
|
|
39
|
+
*/
|
|
40
|
+
get cm() {
|
|
41
|
+
return getClassMap();
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Computes the current checked/unchecked state string.
|
|
45
|
+
* @returns The state string, either "checked" or "unchecked".
|
|
46
|
+
*/
|
|
47
|
+
get state() {
|
|
48
|
+
return this.checked ? 'checked' : 'unchecked';
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Computes the CSS classes for the switch wrapper label.
|
|
52
|
+
* @returns The wrapper class name string.
|
|
53
|
+
*/
|
|
54
|
+
get wrapperClasses() {
|
|
55
|
+
return this.cm.cn(this.cm.controlLabel, this.disabled && this.cm.controlDisabled);
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Computes the combined CSS classes for the switch button.
|
|
59
|
+
* @returns The switch class name string.
|
|
60
|
+
*/
|
|
61
|
+
get switchClasses() {
|
|
62
|
+
return this.cm.cn(this.cm.switchBase({ size: this.size }), this.className);
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* Computes the CSS classes for the switch thumb indicator.
|
|
66
|
+
* @returns The thumb class name string.
|
|
67
|
+
*/
|
|
68
|
+
get thumbClasses() {
|
|
69
|
+
return this.cm.switchThumb({ size: this.size });
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* Handles the switch toggle action.
|
|
73
|
+
*/
|
|
74
|
+
onToggle() {
|
|
75
|
+
if (!this.disabled) {
|
|
76
|
+
this.checkedChange.emit(!this.checked);
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
static ɵfac = function MoleculeSwitch_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || MoleculeSwitch)(); };
|
|
80
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: MoleculeSwitch, selectors: [["mol-switch"]], inputs: { label: "label", checked: "checked", size: "size", color: "color", className: "className", style: "style", testId: "testId", disabled: "disabled" }, outputs: { checkedChange: "checkedChange" }, decls: 4, vars: 14, consts: [["type", "button", "role", "switch", 3, "click", "disabled"], [3, "class"]], template: function MoleculeSwitch_Template(rf, ctx) { if (rf & 1) {
|
|
81
|
+
i0.ɵɵdomElementStart(0, "label")(1, "button", 0);
|
|
82
|
+
i0.ɵɵdomListener("click", function MoleculeSwitch_Template_button_click_1_listener() { return ctx.onToggle(); });
|
|
83
|
+
i0.ɵɵdomElement(2, "span");
|
|
84
|
+
i0.ɵɵdomElementEnd();
|
|
85
|
+
i0.ɵɵconditionalCreate(3, MoleculeSwitch_Conditional_3_Template, 2, 3, "span", 1);
|
|
86
|
+
i0.ɵɵdomElementEnd();
|
|
87
|
+
} if (rf & 2) {
|
|
88
|
+
i0.ɵɵclassMap(ctx.wrapperClasses);
|
|
89
|
+
i0.ɵɵadvance();
|
|
90
|
+
i0.ɵɵstyleMap(ctx.style);
|
|
91
|
+
i0.ɵɵclassMap(ctx.switchClasses);
|
|
92
|
+
i0.ɵɵdomProperty("disabled", ctx.disabled);
|
|
93
|
+
i0.ɵɵattribute("aria-checked", ctx.checked)("data-state", ctx.state)("data-testid", ctx.testId);
|
|
94
|
+
i0.ɵɵadvance();
|
|
95
|
+
i0.ɵɵclassMap(ctx.thumbClasses);
|
|
96
|
+
i0.ɵɵattribute("data-state", ctx.state);
|
|
97
|
+
i0.ɵɵadvance();
|
|
98
|
+
i0.ɵɵconditional(ctx.label ? 3 : -1);
|
|
99
|
+
} }, encapsulation: 2 });
|
|
100
|
+
}
|
|
101
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MoleculeSwitch, [{
|
|
102
|
+
type: Component,
|
|
103
|
+
args: [{
|
|
104
|
+
selector: 'mol-switch',
|
|
105
|
+
standalone: true,
|
|
106
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
107
|
+
template: `
|
|
108
|
+
<label [class]="wrapperClasses">
|
|
109
|
+
<button
|
|
110
|
+
type="button"
|
|
111
|
+
role="switch"
|
|
112
|
+
[attr.aria-checked]="checked"
|
|
113
|
+
[disabled]="disabled"
|
|
114
|
+
[attr.data-state]="state"
|
|
115
|
+
[class]="switchClasses"
|
|
116
|
+
[style]="style"
|
|
117
|
+
[attr.data-testid]="testId"
|
|
118
|
+
(click)="onToggle()"
|
|
119
|
+
>
|
|
120
|
+
<span [attr.data-state]="state" [class]="thumbClasses"></span>
|
|
121
|
+
</button>
|
|
122
|
+
@if (label) {
|
|
123
|
+
<span [class]="cm.controlText">{{ label }}</span>
|
|
124
|
+
}
|
|
125
|
+
</label>
|
|
126
|
+
`,
|
|
127
|
+
}]
|
|
128
|
+
}], null, { label: [{
|
|
129
|
+
type: Input
|
|
130
|
+
}], checked: [{
|
|
131
|
+
type: Input
|
|
132
|
+
}], size: [{
|
|
133
|
+
type: Input
|
|
134
|
+
}], color: [{
|
|
135
|
+
type: Input
|
|
136
|
+
}], className: [{
|
|
137
|
+
type: Input
|
|
138
|
+
}], style: [{
|
|
139
|
+
type: Input
|
|
140
|
+
}], testId: [{
|
|
141
|
+
type: Input
|
|
142
|
+
}], disabled: [{
|
|
143
|
+
type: Input
|
|
144
|
+
}], checkedChange: [{
|
|
145
|
+
type: Output
|
|
146
|
+
}] }); })();
|
|
147
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(MoleculeSwitch, { className: "MoleculeSwitch", filePath: "components/molecule/switch.component.ts", lineNumber: 44 }); })();
|
|
148
|
+
//# sourceMappingURL=switch.component.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"switch.component.js","sourceRoot":"","sources":["../../../src/components/molecule/switch.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;;;IAyBtC,+BAA+B;IAAA,YAAW;IAAA,oBAAO;;;IAA3C,oCAAwB;IAAC,cAAW;IAAX,kCAAW;;AAvBlD;;GAEG;AA0BH;;;GAGG;AACH,MAAM,OAAO,cAAc;IAChB,KAAK,CAAS;IACd,OAAO,GAAG,KAAK,CAAA;IACf,IAAI,GAAS,IAAI,CAAA;IACjB,KAAK,CAAe;IACpB,SAAS,CAAS;IAClB,KAAK,CAAyB;IAC9B,MAAM,CAAS;IACf,QAAQ,GAAG,KAAK,CAAA;IAEf,aAAa,GAAG,IAAI,YAAY,EAAW,CAAA;IAErD;;;OAGG;IACH,IAAI,EAAE;QACJ,OAAO,WAAW,EAAE,CAAA;IACtB,CAAC;IAED;;;OAGG;IACH,IAAI,KAAK;QACP,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,WAAW,CAAA;IAC/C,CAAC;IAED;;;OAGG;IACH,IAAI,cAAc;QAChB,OAAO,IAAI,CAAC,EAAE,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,CAAC,YAAY,EAAE,IAAI,CAAC,QAAQ,IAAI,IAAI,CAAC,EAAE,CAAC,eAAe,CAAC,CAAA;IACnF,CAAC;IAED;;;OAGG;IACH,IAAI,aAAa;QACf,OAAO,IAAI,CAAC,EAAE,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,CAAC,UAAU,CAAC,EAAE,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,CAAC,EAAE,IAAI,CAAC,SAAS,CAAC,CAAA;IAC5E,CAAC;IAED;;;OAGG;IACH,IAAI,YAAY;QACd,OAAO,IAAI,CAAC,EAAE,CAAC,WAAW,CAAC,EAAE,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,CAAC,CAAA;IACjD,CAAC;IAED;;OAEG;IACH,QAAQ;QACN,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE,CAAC;YACnB,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAA;QACxC,CAAC;IACH,CAAC;wGA3DU,cAAc;6DAAd,cAAc;YAvBrB,AADF,gCAAgC,gBAW7B;YADC,8FAAS,cAAU,IAAC;YAEpB,0BAA8D;YAChE,oBAAS;YACT,iFAAa;YAGf,oBAAQ;;YAjBD,iCAAwB;YAQ3B,cAAe;YAAf,wBAAe;YADf,gCAAuB;YAFvB,0CAAqB;;YAOW,cAAsB;YAAtB,+BAAsB;;YAExD,cAEC;YAFD,oCAEC;;;iFAQM,cAAc;cA7B1B,SAAS;eAAC;gBACT,QAAQ,EAAE,YAAY;gBACtB,UAAU,EAAE,IAAI;gBAChB,eAAe,EAAE,uBAAuB,CAAC,MAAM;gBAC/C,QAAQ,EAAE;;;;;;;;;;;;;;;;;;;GAmBT;aACF;;kBAME,KAAK;;kBACL,KAAK;;kBACL,KAAK;;kBACL,KAAK;;kBACL,KAAK;;kBACL,KAAK;;kBACL,KAAK;;kBACL,KAAK;;kBAEL,MAAM;;kFAVI,cAAc"}
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Angular Toast UI component with UIClassMap-driven styling.
|
|
3
|
+
*
|
|
4
|
+
* @module
|
|
5
|
+
*/
|
|
6
|
+
import { EventEmitter, type OnDestroy, type OnInit } from '@angular/core';
|
|
7
|
+
import type { ColorVariant, UIClassMap } from '@molecule/app-ui';
|
|
8
|
+
import * as i0 from "@angular/core";
|
|
9
|
+
/**
|
|
10
|
+
* Angular Toast UI component with UIClassMap-driven styling.
|
|
11
|
+
*/
|
|
12
|
+
export declare class MoleculeToast implements OnInit, OnDestroy {
|
|
13
|
+
title?: string;
|
|
14
|
+
description?: string;
|
|
15
|
+
status: ColorVariant;
|
|
16
|
+
duration: number;
|
|
17
|
+
dismissible: boolean;
|
|
18
|
+
closeLabel?: string;
|
|
19
|
+
position: 'top' | 'top-right' | 'top-left' | 'bottom' | 'bottom-right' | 'bottom-left';
|
|
20
|
+
className?: string;
|
|
21
|
+
style?: Record<string, string>;
|
|
22
|
+
testId?: string;
|
|
23
|
+
dismiss: EventEmitter<void>;
|
|
24
|
+
isVisible: boolean;
|
|
25
|
+
private timer?;
|
|
26
|
+
/**
|
|
27
|
+
* Reactive translation, read in the injection context. Its `t` reads the
|
|
28
|
+
* locale, so the view re-renders the text on a locale switch (the static `t`
|
|
29
|
+
* does not).
|
|
30
|
+
*/
|
|
31
|
+
private readonly i18n;
|
|
32
|
+
/**
|
|
33
|
+
* Retrieves the current UI class map.
|
|
34
|
+
* @returns The UIClassMap instance for styling.
|
|
35
|
+
*/
|
|
36
|
+
get cm(): UIClassMap;
|
|
37
|
+
/**
|
|
38
|
+
* Computes the accessible close button label.
|
|
39
|
+
* @returns The localized aria-label for the close button.
|
|
40
|
+
*/
|
|
41
|
+
get closeAriaLabel(): string;
|
|
42
|
+
/**
|
|
43
|
+
* Retrieves the CSS class for the toast title.
|
|
44
|
+
* @returns The title class name string.
|
|
45
|
+
*/
|
|
46
|
+
get titleClass(): string;
|
|
47
|
+
/**
|
|
48
|
+
* Retrieves the CSS class for the toast description.
|
|
49
|
+
* @returns The description class name string.
|
|
50
|
+
*/
|
|
51
|
+
get descriptionClass(): string;
|
|
52
|
+
/**
|
|
53
|
+
* Retrieves the CSS class for the close button.
|
|
54
|
+
* @returns The close button class name string.
|
|
55
|
+
*/
|
|
56
|
+
get closeButtonClass(): string;
|
|
57
|
+
/**
|
|
58
|
+
* Determines the icon type based on the toast status.
|
|
59
|
+
* @returns The mapped icon type string.
|
|
60
|
+
*/
|
|
61
|
+
get iconType(): string;
|
|
62
|
+
/**
|
|
63
|
+
* Determines whether the status icon should be shown.
|
|
64
|
+
* @returns True if the icon type is not default.
|
|
65
|
+
*/
|
|
66
|
+
get showIcon(): boolean;
|
|
67
|
+
private statusIconMap;
|
|
68
|
+
/**
|
|
69
|
+
* Generates the SVG markup for the status icon.
|
|
70
|
+
* @returns The SVG string for the current status icon.
|
|
71
|
+
*/
|
|
72
|
+
get statusIconSvg(): string;
|
|
73
|
+
/**
|
|
74
|
+
* Generates the SVG markup for the dismiss icon.
|
|
75
|
+
* @returns The SVG string for the dismiss button icon.
|
|
76
|
+
*/
|
|
77
|
+
get dismissIconSvg(): string;
|
|
78
|
+
/**
|
|
79
|
+
* Computes the combined CSS classes for the toast container.
|
|
80
|
+
* @returns The toast class name string.
|
|
81
|
+
*/
|
|
82
|
+
get toastClasses(): string;
|
|
83
|
+
/**
|
|
84
|
+
* Starts the auto-dismiss timer on component creation.
|
|
85
|
+
*/
|
|
86
|
+
ngOnInit(): void;
|
|
87
|
+
/**
|
|
88
|
+
* Clears the auto-dismiss timer on component destruction.
|
|
89
|
+
*/
|
|
90
|
+
ngOnDestroy(): void;
|
|
91
|
+
/**
|
|
92
|
+
* Handles the dismiss action by hiding the toast.
|
|
93
|
+
*/
|
|
94
|
+
onDismiss(): void;
|
|
95
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MoleculeToast, never>;
|
|
96
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MoleculeToast, "mol-toast", never, { "title": { "alias": "title"; "required": false; }; "description": { "alias": "description"; "required": false; }; "status": { "alias": "status"; "required": false; }; "duration": { "alias": "duration"; "required": false; }; "dismissible": { "alias": "dismissible"; "required": false; }; "closeLabel": { "alias": "closeLabel"; "required": false; }; "position": { "alias": "position"; "required": false; }; "className": { "alias": "className"; "required": false; }; "style": { "alias": "style"; "required": false; }; "testId": { "alias": "testId"; "required": false; }; }, { "dismiss": "dismiss"; }, never, ["*"], true, never>;
|
|
97
|
+
}
|
|
98
|
+
//# sourceMappingURL=toast.component.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"toast.component.d.ts","sourceRoot":"","sources":["../../../src/components/molecule/toast.component.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAGL,YAAY,EAEZ,KAAK,SAAS,EACd,KAAK,MAAM,EAEZ,MAAM,eAAe,CAAA;AAItB,OAAO,KAAK,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;;AAehE;;GAEG;AACH,qBAgDa,aAAc,YAAW,MAAM,EAAE,SAAS;IAC5C,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,MAAM,EAAE,YAAY,CAAS;IAC7B,QAAQ,SAAO;IACf,WAAW,UAAO;IAClB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,QAAQ,EAAE,KAAK,GAAG,WAAW,GAAG,UAAU,GAAG,QAAQ,GAAG,cAAc,GAAG,aAAa,CAC/E;IACP,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,SAAS,UAAO;IAChB,OAAO,CAAC,KAAK,CAAC,CAA+B;IAE7C;;;;OAIG;IACH,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAmB;IAExC;;;OAGG;IACH,IAAI,EAAE,IAAI,UAAU,CAEnB;IAED;;;OAGG;IACH,IAAI,cAAc,IAAI,MAAM,CAE3B;IAED;;;OAGG;IACH,IAAI,UAAU,IAAI,MAAM,CAEvB;IAED;;;OAGG;IACH,IAAI,gBAAgB,IAAI,MAAM,CAE7B;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;IAED;;OAEG;IACH,QAAQ,IAAI,IAAI;IAShB;;OAEG;IACH,WAAW,IAAI,IAAI;IAMnB;;OAEG;IACH,SAAS,IAAI,IAAI;yCA1IN,aAAa;2CAAb,aAAa;CA8IzB"}
|
|
@@ -0,0 +1,305 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Angular Toast UI component with UIClassMap-driven styling.
|
|
3
|
+
*
|
|
4
|
+
* @module
|
|
5
|
+
*/
|
|
6
|
+
import { ChangeDetectionStrategy, Component, EventEmitter, Input, Output, } from '@angular/core';
|
|
7
|
+
import { useTranslation } from '@molecule/app-angular';
|
|
8
|
+
import { getClassMap } from '@molecule/app-ui';
|
|
9
|
+
import { getIconSvg } from '../../utilities/icon-markup.js';
|
|
10
|
+
import * as i0 from "@angular/core";
|
|
11
|
+
const _c0 = ["*"];
|
|
12
|
+
function MoleculeToast_Conditional_0_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
|
13
|
+
i0.ɵɵdomElementStart(0, "span");
|
|
14
|
+
i0.ɵɵdomElement(1, "span", 4);
|
|
15
|
+
i0.ɵɵdomElementEnd();
|
|
16
|
+
} if (rf & 2) {
|
|
17
|
+
const ctx_r0 = i0.ɵɵnextContext(2);
|
|
18
|
+
i0.ɵɵclassMap(ctx_r0.cm.toastIconWrapper);
|
|
19
|
+
i0.ɵɵadvance();
|
|
20
|
+
i0.ɵɵdomProperty("innerHTML", ctx_r0.statusIconSvg, i0.ɵɵsanitizeHtml);
|
|
21
|
+
} }
|
|
22
|
+
function MoleculeToast_Conditional_0_Conditional_3_Template(rf, ctx) { if (rf & 1) {
|
|
23
|
+
i0.ɵɵdomElementStart(0, "div");
|
|
24
|
+
i0.ɵɵtext(1);
|
|
25
|
+
i0.ɵɵdomElementEnd();
|
|
26
|
+
} if (rf & 2) {
|
|
27
|
+
const ctx_r0 = i0.ɵɵnextContext(2);
|
|
28
|
+
i0.ɵɵclassMap(ctx_r0.titleClass);
|
|
29
|
+
i0.ɵɵadvance();
|
|
30
|
+
i0.ɵɵtextInterpolate(ctx_r0.title);
|
|
31
|
+
} }
|
|
32
|
+
function MoleculeToast_Conditional_0_Conditional_4_Template(rf, ctx) { if (rf & 1) {
|
|
33
|
+
i0.ɵɵdomElementStart(0, "div");
|
|
34
|
+
i0.ɵɵtext(1);
|
|
35
|
+
i0.ɵɵdomElementEnd();
|
|
36
|
+
} if (rf & 2) {
|
|
37
|
+
const ctx_r0 = i0.ɵɵnextContext(2);
|
|
38
|
+
i0.ɵɵclassMap(ctx_r0.descriptionClass);
|
|
39
|
+
i0.ɵɵadvance();
|
|
40
|
+
i0.ɵɵtextInterpolate(ctx_r0.description);
|
|
41
|
+
} }
|
|
42
|
+
function MoleculeToast_Conditional_0_Conditional_5_Template(rf, ctx) { if (rf & 1) {
|
|
43
|
+
i0.ɵɵdomElementStart(0, "div");
|
|
44
|
+
i0.ɵɵprojection(1);
|
|
45
|
+
i0.ɵɵdomElementEnd();
|
|
46
|
+
} if (rf & 2) {
|
|
47
|
+
const ctx_r0 = i0.ɵɵnextContext(2);
|
|
48
|
+
i0.ɵɵclassMap(ctx_r0.descriptionClass);
|
|
49
|
+
} }
|
|
50
|
+
function MoleculeToast_Conditional_0_Conditional_6_Template(rf, ctx) { if (rf & 1) {
|
|
51
|
+
const _r2 = i0.ɵɵgetCurrentView();
|
|
52
|
+
i0.ɵɵdomElementStart(0, "button", 5);
|
|
53
|
+
i0.ɵɵdomListener("click", function MoleculeToast_Conditional_0_Conditional_6_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r2); const ctx_r0 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r0.onDismiss()); });
|
|
54
|
+
i0.ɵɵdomElement(1, "span", 4);
|
|
55
|
+
i0.ɵɵdomElementEnd();
|
|
56
|
+
} if (rf & 2) {
|
|
57
|
+
const ctx_r0 = i0.ɵɵnextContext(2);
|
|
58
|
+
i0.ɵɵclassMap(ctx_r0.closeButtonClass);
|
|
59
|
+
i0.ɵɵattribute("aria-label", ctx_r0.closeAriaLabel);
|
|
60
|
+
i0.ɵɵadvance();
|
|
61
|
+
i0.ɵɵdomProperty("innerHTML", ctx_r0.dismissIconSvg, i0.ɵɵsanitizeHtml);
|
|
62
|
+
} }
|
|
63
|
+
function MoleculeToast_Conditional_0_Template(rf, ctx) { if (rf & 1) {
|
|
64
|
+
i0.ɵɵdomElementStart(0, "div", 1);
|
|
65
|
+
i0.ɵɵconditionalCreate(1, MoleculeToast_Conditional_0_Conditional_1_Template, 2, 3, "span", 2);
|
|
66
|
+
i0.ɵɵdomElementStart(2, "div");
|
|
67
|
+
i0.ɵɵconditionalCreate(3, MoleculeToast_Conditional_0_Conditional_3_Template, 2, 3, "div", 2);
|
|
68
|
+
i0.ɵɵconditionalCreate(4, MoleculeToast_Conditional_0_Conditional_4_Template, 2, 3, "div", 2)(5, MoleculeToast_Conditional_0_Conditional_5_Template, 2, 2, "div", 2);
|
|
69
|
+
i0.ɵɵdomElementEnd();
|
|
70
|
+
i0.ɵɵconditionalCreate(6, MoleculeToast_Conditional_0_Conditional_6_Template, 2, 4, "button", 3);
|
|
71
|
+
i0.ɵɵdomElementEnd();
|
|
72
|
+
} if (rf & 2) {
|
|
73
|
+
const ctx_r0 = i0.ɵɵnextContext();
|
|
74
|
+
i0.ɵɵstyleMap(ctx_r0.style);
|
|
75
|
+
i0.ɵɵclassMap(ctx_r0.toastClasses);
|
|
76
|
+
i0.ɵɵattribute("data-testid", ctx_r0.testId);
|
|
77
|
+
i0.ɵɵadvance();
|
|
78
|
+
i0.ɵɵconditional(ctx_r0.showIcon ? 1 : -1);
|
|
79
|
+
i0.ɵɵadvance();
|
|
80
|
+
i0.ɵɵclassMap(ctx_r0.cm.toastContentWrapper);
|
|
81
|
+
i0.ɵɵadvance();
|
|
82
|
+
i0.ɵɵconditional(ctx_r0.title ? 3 : -1);
|
|
83
|
+
i0.ɵɵadvance();
|
|
84
|
+
i0.ɵɵconditional(ctx_r0.description ? 4 : 5);
|
|
85
|
+
i0.ɵɵadvance(2);
|
|
86
|
+
i0.ɵɵconditional(ctx_r0.dismissible ? 6 : -1);
|
|
87
|
+
} }
|
|
88
|
+
const statusVariantMap = {
|
|
89
|
+
primary: 'default',
|
|
90
|
+
secondary: 'default',
|
|
91
|
+
success: 'success',
|
|
92
|
+
warning: 'warning',
|
|
93
|
+
error: 'error',
|
|
94
|
+
info: 'info',
|
|
95
|
+
};
|
|
96
|
+
/**
|
|
97
|
+
* Angular Toast UI component with UIClassMap-driven styling.
|
|
98
|
+
*/
|
|
99
|
+
/**
|
|
100
|
+
* Molecule Toast class.
|
|
101
|
+
* @deprecated Use the React-named component `Toast` instead.
|
|
102
|
+
*/
|
|
103
|
+
export class MoleculeToast {
|
|
104
|
+
title;
|
|
105
|
+
description;
|
|
106
|
+
status = 'info';
|
|
107
|
+
duration = 5000;
|
|
108
|
+
dismissible = true;
|
|
109
|
+
closeLabel;
|
|
110
|
+
position = 'bottom-right';
|
|
111
|
+
className;
|
|
112
|
+
style;
|
|
113
|
+
testId;
|
|
114
|
+
dismiss = new EventEmitter();
|
|
115
|
+
isVisible = true;
|
|
116
|
+
timer;
|
|
117
|
+
/**
|
|
118
|
+
* Reactive translation, read in the injection context. Its `t` reads the
|
|
119
|
+
* locale, so the view re-renders the text on a locale switch (the static `t`
|
|
120
|
+
* does not).
|
|
121
|
+
*/
|
|
122
|
+
i18n = useTranslation();
|
|
123
|
+
/**
|
|
124
|
+
* Retrieves the current UI class map.
|
|
125
|
+
* @returns The UIClassMap instance for styling.
|
|
126
|
+
*/
|
|
127
|
+
get cm() {
|
|
128
|
+
return getClassMap();
|
|
129
|
+
}
|
|
130
|
+
/**
|
|
131
|
+
* Computes the accessible close button label.
|
|
132
|
+
* @returns The localized aria-label for the close button.
|
|
133
|
+
*/
|
|
134
|
+
get closeAriaLabel() {
|
|
135
|
+
return this.closeLabel || this.i18n.t('ui.toast.close', undefined, { defaultValue: 'Close' });
|
|
136
|
+
}
|
|
137
|
+
/**
|
|
138
|
+
* Retrieves the CSS class for the toast title.
|
|
139
|
+
* @returns The title class name string.
|
|
140
|
+
*/
|
|
141
|
+
get titleClass() {
|
|
142
|
+
return this.cm.toastTitle;
|
|
143
|
+
}
|
|
144
|
+
/**
|
|
145
|
+
* Retrieves the CSS class for the toast description.
|
|
146
|
+
* @returns The description class name string.
|
|
147
|
+
*/
|
|
148
|
+
get descriptionClass() {
|
|
149
|
+
return this.cm.toastDescription;
|
|
150
|
+
}
|
|
151
|
+
/**
|
|
152
|
+
* Retrieves the CSS class for the close button.
|
|
153
|
+
* @returns The close button class name string.
|
|
154
|
+
*/
|
|
155
|
+
get closeButtonClass() {
|
|
156
|
+
return this.cm.toastClose;
|
|
157
|
+
}
|
|
158
|
+
/**
|
|
159
|
+
* Determines the icon type based on the toast status.
|
|
160
|
+
* @returns The mapped icon type string.
|
|
161
|
+
*/
|
|
162
|
+
get iconType() {
|
|
163
|
+
return statusVariantMap[this.status] || 'default';
|
|
164
|
+
}
|
|
165
|
+
/**
|
|
166
|
+
* Determines whether the status icon should be shown.
|
|
167
|
+
* @returns True if the icon type is not default.
|
|
168
|
+
*/
|
|
169
|
+
get showIcon() {
|
|
170
|
+
return this.iconType !== 'default';
|
|
171
|
+
}
|
|
172
|
+
statusIconMap = {
|
|
173
|
+
info: 'info-circle',
|
|
174
|
+
success: 'check-circle',
|
|
175
|
+
warning: 'exclamation-triangle',
|
|
176
|
+
error: 'x-circle',
|
|
177
|
+
};
|
|
178
|
+
/**
|
|
179
|
+
* Generates the SVG markup for the status icon.
|
|
180
|
+
* @returns The SVG string for the current status icon.
|
|
181
|
+
*/
|
|
182
|
+
get statusIconSvg() {
|
|
183
|
+
const name = this.statusIconMap[this.iconType];
|
|
184
|
+
return name ? getIconSvg(name, this.cm.iconMd) : '';
|
|
185
|
+
}
|
|
186
|
+
/**
|
|
187
|
+
* Generates the SVG markup for the dismiss icon.
|
|
188
|
+
* @returns The SVG string for the dismiss button icon.
|
|
189
|
+
*/
|
|
190
|
+
get dismissIconSvg() {
|
|
191
|
+
return getIconSvg('x-mark', this.cm.iconSm);
|
|
192
|
+
}
|
|
193
|
+
/**
|
|
194
|
+
* Computes the combined CSS classes for the toast container.
|
|
195
|
+
* @returns The toast class name string.
|
|
196
|
+
*/
|
|
197
|
+
get toastClasses() {
|
|
198
|
+
const variant = statusVariantMap[this.status] || 'default';
|
|
199
|
+
return this.cm.cn(this.cm.toast({ variant }), this.className);
|
|
200
|
+
}
|
|
201
|
+
/**
|
|
202
|
+
* Starts the auto-dismiss timer on component creation.
|
|
203
|
+
*/
|
|
204
|
+
ngOnInit() {
|
|
205
|
+
if (this.duration > 0) {
|
|
206
|
+
this.timer = setTimeout(() => {
|
|
207
|
+
this.isVisible = false;
|
|
208
|
+
this.dismiss.emit();
|
|
209
|
+
}, this.duration);
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
/**
|
|
213
|
+
* Clears the auto-dismiss timer on component destruction.
|
|
214
|
+
*/
|
|
215
|
+
ngOnDestroy() {
|
|
216
|
+
if (this.timer) {
|
|
217
|
+
clearTimeout(this.timer);
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
/**
|
|
221
|
+
* Handles the dismiss action by hiding the toast.
|
|
222
|
+
*/
|
|
223
|
+
onDismiss() {
|
|
224
|
+
this.isVisible = false;
|
|
225
|
+
this.dismiss.emit();
|
|
226
|
+
}
|
|
227
|
+
static ɵfac = function MoleculeToast_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || MoleculeToast)(); };
|
|
228
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: MoleculeToast, selectors: [["mol-toast"]], inputs: { title: "title", description: "description", status: "status", duration: "duration", dismissible: "dismissible", closeLabel: "closeLabel", position: "position", className: "className", style: "style", testId: "testId" }, outputs: { dismiss: "dismiss" }, ngContentSelectors: _c0, decls: 1, vars: 1, consts: [["role", "alert", "data-state", "open", 3, "class", "style"], ["role", "alert", "data-state", "open"], [3, "class"], ["type", "button", 3, "class"], [3, "innerHTML"], ["type", "button", 3, "click"]], template: function MoleculeToast_Template(rf, ctx) { if (rf & 1) {
|
|
229
|
+
i0.ɵɵprojectionDef();
|
|
230
|
+
i0.ɵɵconditionalCreate(0, MoleculeToast_Conditional_0_Template, 7, 11, "div", 0);
|
|
231
|
+
} if (rf & 2) {
|
|
232
|
+
i0.ɵɵconditional(ctx.isVisible ? 0 : -1);
|
|
233
|
+
} }, encapsulation: 2 });
|
|
234
|
+
}
|
|
235
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MoleculeToast, [{
|
|
236
|
+
type: Component,
|
|
237
|
+
args: [{
|
|
238
|
+
selector: 'mol-toast',
|
|
239
|
+
standalone: true,
|
|
240
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
241
|
+
template: `
|
|
242
|
+
@if (isVisible) {
|
|
243
|
+
<div
|
|
244
|
+
role="alert"
|
|
245
|
+
data-state="open"
|
|
246
|
+
[class]="toastClasses"
|
|
247
|
+
[style]="style"
|
|
248
|
+
[attr.data-testid]="testId"
|
|
249
|
+
>
|
|
250
|
+
@if (showIcon) {
|
|
251
|
+
<span [class]="cm.toastIconWrapper">
|
|
252
|
+
<span [innerHTML]="statusIconSvg"></span>
|
|
253
|
+
</span>
|
|
254
|
+
}
|
|
255
|
+
<div [class]="cm.toastContentWrapper">
|
|
256
|
+
@if (title) {
|
|
257
|
+
<div [class]="titleClass">{{ title }}</div>
|
|
258
|
+
}
|
|
259
|
+
@if (description) {
|
|
260
|
+
<div [class]="descriptionClass">{{ description }}</div>
|
|
261
|
+
} @else {
|
|
262
|
+
<div [class]="descriptionClass">
|
|
263
|
+
<ng-content></ng-content>
|
|
264
|
+
</div>
|
|
265
|
+
}
|
|
266
|
+
</div>
|
|
267
|
+
@if (dismissible) {
|
|
268
|
+
<button
|
|
269
|
+
type="button"
|
|
270
|
+
(click)="onDismiss()"
|
|
271
|
+
[class]="closeButtonClass"
|
|
272
|
+
[attr.aria-label]="closeAriaLabel"
|
|
273
|
+
>
|
|
274
|
+
<span [innerHTML]="dismissIconSvg"></span>
|
|
275
|
+
</button>
|
|
276
|
+
}
|
|
277
|
+
</div>
|
|
278
|
+
}
|
|
279
|
+
`,
|
|
280
|
+
}]
|
|
281
|
+
}], null, { title: [{
|
|
282
|
+
type: Input
|
|
283
|
+
}], description: [{
|
|
284
|
+
type: Input
|
|
285
|
+
}], status: [{
|
|
286
|
+
type: Input
|
|
287
|
+
}], duration: [{
|
|
288
|
+
type: Input
|
|
289
|
+
}], dismissible: [{
|
|
290
|
+
type: Input
|
|
291
|
+
}], closeLabel: [{
|
|
292
|
+
type: Input
|
|
293
|
+
}], position: [{
|
|
294
|
+
type: Input
|
|
295
|
+
}], className: [{
|
|
296
|
+
type: Input
|
|
297
|
+
}], style: [{
|
|
298
|
+
type: Input
|
|
299
|
+
}], testId: [{
|
|
300
|
+
type: Input
|
|
301
|
+
}], dismiss: [{
|
|
302
|
+
type: Output
|
|
303
|
+
}] }); })();
|
|
304
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(MoleculeToast, { className: "MoleculeToast", filePath: "components/molecule/toast.component.ts", lineNumber: 85 }); })();
|
|
305
|
+
//# sourceMappingURL=toast.component.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"toast.component.js","sourceRoot":"","sources":["../../../src/components/molecule/toast.component.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EACL,uBAAuB,EACvB,SAAS,EACT,YAAY,EACZ,KAAK,EAGL,MAAM,GACP,MAAM,eA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,EAAE,WAAW;gBACrB,UAAU,EAAE,IAAI;gBAChB,eAAe,EAAE,uBAAuB,CAAC,MAAM;gBAC/C,QAAQ,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsCT;aACF;;kBAME,KAAK;;kBACL,KAAK;;kBACL,KAAK;;kBACL,KAAK;;kBACL,KAAK;;kBACL,KAAK;;kBACL,KAAK;;kBAEL,KAAK;;kBACL,KAAK;;kBACL,KAAK;;kBAEL,MAAM;;kFAbI,aAAa"}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Angular Tooltip UI component with UIClassMap-driven styling.
|
|
3
|
+
*
|
|
4
|
+
* @module
|
|
5
|
+
*/
|
|
6
|
+
import { type ElementRef, type OnDestroy } from '@angular/core';
|
|
7
|
+
import type { TooltipPlacement, UIClassMap } from '@molecule/app-ui';
|
|
8
|
+
import * as i0 from "@angular/core";
|
|
9
|
+
/**
|
|
10
|
+
* Returns the arrow's inline position style for a given placement. The arrow
|
|
11
|
+
* has no dedicated ClassMap resolver (`tooltip()` takes no options), so its
|
|
12
|
+
* shape/position is expressed via a small inline style — the sanctioned
|
|
13
|
+
* exception for values ClassMap cannot express. Its color is NOT hardcoded:
|
|
14
|
+
* `var(--color-surface)` / `var(--color-border)` are the same CSS custom
|
|
15
|
+
* properties the `bg-surface`/`border` classes in `tooltipContent` resolve
|
|
16
|
+
* to, so the arrow always matches the tooltip body in both themes.
|
|
17
|
+
*
|
|
18
|
+
* A standalone function (rather than a class member) so it's unit-testable
|
|
19
|
+
* in isolation, matching `getModalWrapperStyle()` in `modal.component.ts`.
|
|
20
|
+
* @param placement - The tooltip's resolved placement.
|
|
21
|
+
* @returns Inline style positioning the rotated-square arrow for that placement.
|
|
22
|
+
*/
|
|
23
|
+
export declare function getTooltipArrowStyle(placement: TooltipPlacement): Record<string, string>;
|
|
24
|
+
/**
|
|
25
|
+
* Angular Tooltip UI component with UIClassMap-driven styling.
|
|
26
|
+
*
|
|
27
|
+
* Wraps child content and shows a tooltip on hover/focus. `hasArrow` renders
|
|
28
|
+
* a small themed pointer at the resolved `placement` edge.
|
|
29
|
+
*/
|
|
30
|
+
export declare class MoleculeTooltip implements OnDestroy {
|
|
31
|
+
content: string;
|
|
32
|
+
placement: TooltipPlacement;
|
|
33
|
+
delay: number;
|
|
34
|
+
hasArrow: boolean;
|
|
35
|
+
className?: string;
|
|
36
|
+
style?: Record<string, string>;
|
|
37
|
+
testId?: string;
|
|
38
|
+
triggerRef?: ElementRef<HTMLDivElement>;
|
|
39
|
+
tooltipRef?: ElementRef<HTMLDivElement>;
|
|
40
|
+
isVisible: boolean;
|
|
41
|
+
positionStyle: Record<string, string>;
|
|
42
|
+
private timeoutId?;
|
|
43
|
+
/**
|
|
44
|
+
* Retrieves the current UI class map.
|
|
45
|
+
* @returns The UIClassMap instance for styling.
|
|
46
|
+
*/
|
|
47
|
+
get cm(): UIClassMap;
|
|
48
|
+
/**
|
|
49
|
+
* Computes the combined CSS classes for the tooltip content.
|
|
50
|
+
* @returns The tooltip class name string.
|
|
51
|
+
*/
|
|
52
|
+
get tooltipClasses(): string;
|
|
53
|
+
/**
|
|
54
|
+
* Retrieves the inline style for the tooltip's arrow element.
|
|
55
|
+
* @returns Inline style positioning the rotated-square arrow.
|
|
56
|
+
*/
|
|
57
|
+
get arrowStyle(): Record<string, string>;
|
|
58
|
+
/**
|
|
59
|
+
* Shows the tooltip with optional delay.
|
|
60
|
+
*/
|
|
61
|
+
show(): void;
|
|
62
|
+
/**
|
|
63
|
+
* Hides the tooltip and cancels any pending delay.
|
|
64
|
+
*/
|
|
65
|
+
hide(): void;
|
|
66
|
+
/**
|
|
67
|
+
* Clears pending timeouts on component destruction.
|
|
68
|
+
*/
|
|
69
|
+
ngOnDestroy(): void;
|
|
70
|
+
/**
|
|
71
|
+
* Calculates and applies the tooltip position relative to the trigger.
|
|
72
|
+
*/
|
|
73
|
+
private updatePosition;
|
|
74
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MoleculeTooltip, never>;
|
|
75
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MoleculeTooltip, "mol-tooltip", never, { "content": { "alias": "content"; "required": false; }; "placement": { "alias": "placement"; "required": false; }; "delay": { "alias": "delay"; "required": false; }; "hasArrow": { "alias": "hasArrow"; "required": false; }; "className": { "alias": "className"; "required": false; }; "style": { "alias": "style"; "required": false; }; "testId": { "alias": "testId"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
76
|
+
}
|
|
77
|
+
//# sourceMappingURL=tooltip.component.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tooltip.component.d.ts","sourceRoot":"","sources":["../../../src/components/molecule/tooltip.component.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAGL,KAAK,UAAU,EAEf,KAAK,SAAS,EAEf,MAAM,eAAe,CAAA;AAEtB,OAAO,KAAK,EAAE,gBAAgB,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;;AAMpE;;;;;;;;;;;;;GAaG;AACH,wBAAgB,oBAAoB,CAAC,SAAS,EAAE,gBAAgB,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAiDxF;AAED;;;;;GAKG;AACH,qBA4Ca,eAAgB,YAAW,SAAS;IACtC,OAAO,SAAK;IACZ,SAAS,EAAE,gBAAgB,CAAQ;IACnC,KAAK,SAAI;IACT,QAAQ,UAAQ;IAChB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IAC9B,MAAM,CAAC,EAAE,MAAM,CAAA;IAEF,UAAU,CAAC,EAAE,UAAU,CAAC,cAAc,CAAC,CAAA;IACrC,UAAU,CAAC,EAAE,UAAU,CAAC,cAAc,CAAC,CAAA;IAE/D,SAAS,UAAQ;IACjB,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAK;IA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