@molecule/app-ui-angular 1.0.6 → 1.1.2
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 +11710 -1117
- 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 +97 -29
- package/dist/components/checkbox.component.d.ts.map +1 -1
- package/dist/components/checkbox.component.js +222 -117
- 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/controlled-checked.directive.d.ts +45 -0
- package/dist/components/controlled-checked.directive.d.ts.map +1 -0
- package/dist/components/controlled-checked.directive.js +74 -0
- package/dist/components/controlled-checked.directive.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 +157 -134
- 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 +168 -95
- 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,124 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ThemeToggle component (React parity).
|
|
3
|
+
*
|
|
4
|
+
* @module
|
|
5
|
+
*/
|
|
6
|
+
import { Component } from '@angular/core';
|
|
7
|
+
import { useTheme, useTranslation } from '@molecule/app-angular';
|
|
8
|
+
import { getClassMap } from '@molecule/app-ui';
|
|
9
|
+
import { Icon } from './icon.component.js';
|
|
10
|
+
import * as i0 from "@angular/core";
|
|
11
|
+
function ThemeToggle_Conditional_0_Template(rf, ctx) { if (rf & 1) {
|
|
12
|
+
i0.ɵɵnamespaceSVG();
|
|
13
|
+
i0.ɵɵelement(0, "svg", 0);
|
|
14
|
+
} if (rf & 2) {
|
|
15
|
+
const ctx_r0 = i0.ɵɵnextContext();
|
|
16
|
+
i0.ɵɵproperty("name", ctx_r0.darkIcon ?? "moon")("size", ctx_r0.iconSizePx());
|
|
17
|
+
} }
|
|
18
|
+
function ThemeToggle_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
|
19
|
+
i0.ɵɵnamespaceSVG();
|
|
20
|
+
i0.ɵɵelement(0, "svg", 0);
|
|
21
|
+
} if (rf & 2) {
|
|
22
|
+
const ctx_r0 = i0.ɵɵnextContext();
|
|
23
|
+
i0.ɵɵproperty("name", ctx_r0.lightIcon ?? "sun")("size", ctx_r0.iconSizePx());
|
|
24
|
+
} }
|
|
25
|
+
/**
|
|
26
|
+
* ThemeToggle component.
|
|
27
|
+
*
|
|
28
|
+
* Button that flips the wired theme bond between light and dark. The host is
|
|
29
|
+
* the `<button>` itself (`button[mol-theme-toggle]`), matching React's root
|
|
30
|
+
* exactly. Ships React's conventions out of the box: `data-mol-id`,
|
|
31
|
+
* `data-mode`, `aria-pressed` and the `theme.toggle` i18n `aria-label`.
|
|
32
|
+
* Extra attributes (`data-*`, `title`, …) land on the host — React's spread
|
|
33
|
+
* target — and unknown props like `disabled` bind the host attribute
|
|
34
|
+
* directly, so the browser suppresses the click exactly as React does.
|
|
35
|
+
*/
|
|
36
|
+
export class ThemeToggle {
|
|
37
|
+
/** i18n key for the `aria-label` (default `theme.toggle`). */
|
|
38
|
+
ariaLabelKey;
|
|
39
|
+
/** Fallback `aria-label` if the i18n key is missing. */
|
|
40
|
+
ariaLabelDefault;
|
|
41
|
+
/** Icon name rendered in dark mode (default `moon`). */
|
|
42
|
+
darkIcon;
|
|
43
|
+
/** Icon name rendered in light mode (default `sun`). */
|
|
44
|
+
lightIcon;
|
|
45
|
+
/** Pixel size for the rendered icon (default 20). */
|
|
46
|
+
iconSize;
|
|
47
|
+
/** Extra classes joined onto the toggle classes. */
|
|
48
|
+
className;
|
|
49
|
+
/** Theme state and actions, read in the component's injection context. */
|
|
50
|
+
theme = useTheme();
|
|
51
|
+
/**
|
|
52
|
+
* Reactive translation, read in the injection context. Its `t` reads the
|
|
53
|
+
* locale, so the view re-renders the text on a locale switch (the static `t`
|
|
54
|
+
* does not).
|
|
55
|
+
*/
|
|
56
|
+
i18n = useTranslation();
|
|
57
|
+
/**
|
|
58
|
+
* The current theme mode.
|
|
59
|
+
* @returns `'light'` or `'dark'`.
|
|
60
|
+
*/
|
|
61
|
+
mode() {
|
|
62
|
+
return this.theme.mode();
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* The localized `aria-label`.
|
|
66
|
+
* @returns The translated label text.
|
|
67
|
+
*/
|
|
68
|
+
labelText() {
|
|
69
|
+
return this.i18n.t(this.ariaLabelKey ?? 'theme.toggle', {}, {
|
|
70
|
+
defaultValue: this.ariaLabelDefault ?? 'Toggle theme',
|
|
71
|
+
});
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* Computes the toggle class list.
|
|
75
|
+
* @returns The class string.
|
|
76
|
+
*/
|
|
77
|
+
classes() {
|
|
78
|
+
const cm = getClassMap();
|
|
79
|
+
return cm.cn(cm.themeToggleButton, this.className);
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* The rendered icon pixel size.
|
|
83
|
+
* @returns The size (default 20 when a later-bound write left it unset).
|
|
84
|
+
*/
|
|
85
|
+
iconSizePx() {
|
|
86
|
+
return this.iconSize ?? 20;
|
|
87
|
+
}
|
|
88
|
+
static ɵfac = function ThemeToggle_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || ThemeToggle)(); };
|
|
89
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ThemeToggle, selectors: [["button", "mol-theme-toggle", ""]], hostAttrs: ["type", "button", "data-mol-id", "theme-toggle"], hostVars: 5, hostBindings: function ThemeToggle_HostBindings(rf, ctx) { if (rf & 1) {
|
|
90
|
+
i0.ɵɵlistener("click", function ThemeToggle_click_HostBindingHandler() { return ctx.theme.toggleTheme(); });
|
|
91
|
+
} if (rf & 2) {
|
|
92
|
+
i0.ɵɵattribute("data-mode", ctx.mode())("aria-pressed", ctx.mode() === "dark" ? "true" : "false")("aria-label", ctx.labelText());
|
|
93
|
+
i0.ɵɵclassMap(ctx.classes());
|
|
94
|
+
} }, inputs: { ariaLabelKey: "ariaLabelKey", ariaLabelDefault: "ariaLabelDefault", darkIcon: "darkIcon", lightIcon: "lightIcon", iconSize: "iconSize", className: "className" }, decls: 2, vars: 1, consts: [["mol-icon-root", "", 3, "name", "size"]], template: function ThemeToggle_Template(rf, ctx) { if (rf & 1) {
|
|
95
|
+
i0.ɵɵconditionalCreate(0, ThemeToggle_Conditional_0_Template, 1, 2, "svg", 0)(1, ThemeToggle_Conditional_1_Template, 1, 2, "svg", 0);
|
|
96
|
+
} if (rf & 2) {
|
|
97
|
+
i0.ɵɵconditional(ctx.mode() === "dark" ? 0 : 1);
|
|
98
|
+
} }, dependencies: [Icon], encapsulation: 2 });
|
|
99
|
+
}
|
|
100
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ThemeToggle, [{
|
|
101
|
+
type: Component,
|
|
102
|
+
args: [{
|
|
103
|
+
selector: 'button[mol-theme-toggle]',
|
|
104
|
+
standalone: true,
|
|
105
|
+
imports: [Icon],
|
|
106
|
+
inputs: ['ariaLabelKey', 'ariaLabelDefault', 'darkIcon', 'lightIcon', 'iconSize', 'className'],
|
|
107
|
+
host: {
|
|
108
|
+
type: 'button',
|
|
109
|
+
'data-mol-id': 'theme-toggle',
|
|
110
|
+
'[attr.data-mode]': 'mode()',
|
|
111
|
+
'[attr.aria-pressed]': 'mode() === "dark" ? "true" : "false"',
|
|
112
|
+
'[attr.aria-label]': 'labelText()',
|
|
113
|
+
'[class]': 'classes()',
|
|
114
|
+
'(click)': 'theme.toggleTheme()',
|
|
115
|
+
},
|
|
116
|
+
template: `@if (mode() === 'dark') {
|
|
117
|
+
<svg mol-icon-root [name]="darkIcon ?? 'moon'" [size]="iconSizePx()"></svg>
|
|
118
|
+
} @else {
|
|
119
|
+
<svg mol-icon-root [name]="lightIcon ?? 'sun'" [size]="iconSizePx()"></svg>
|
|
120
|
+
}`,
|
|
121
|
+
}]
|
|
122
|
+
}], null, null); })();
|
|
123
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ThemeToggle, { className: "ThemeToggle", filePath: "components/theme-toggle.component.ts", lineNumber: 47 }); })();
|
|
124
|
+
//# sourceMappingURL=theme-toggle.component.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"theme-toggle.component.js","sourceRoot":"","sources":["../../src/components/theme-toggle.component.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AAEzC,OAAO,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAA;AAGhE,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAE9C,OAAO,EAAE,IAAI,EAAE,MAAM,qBAAqB,CAAA;;;;IA4BpC,yBAA2E;;;IAA5B,AAA5B,gDAA2B,6BAAsB;;;;IAEpE,yBAA2E;;;IAA5B,AAA5B,gDAA2B,6BAAsB;;AA5B1E;;;;;;;;;;GAUG;AAqBH,MAAM,OAAO,WAAW;IACtB,8DAA8D;IAC9D,YAAY,CAAS;IACrB,wDAAwD;IACxD,gBAAgB,CAAS;IACzB,wDAAwD;IACxD,QAAQ,CAAW;IACnB,wDAAwD;IACxD,SAAS,CAAW;IACpB,qDAAqD;IACrD,QAAQ,CAAS;IACjB,oDAAoD;IACpD,SAAS,CAAS;IAElB,0EAA0E;IACjE,KAAK,GAAG,QAAQ,EAAE,CAAA;IAE3B;;;;OAIG;IACc,IAAI,GAAG,cAAc,EAAE,CAAA;IAExC;;;OAGG;IACH,IAAI;QACF,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,EAAE,CAAA;IAC1B,CAAC;IAED;;;OAGG;IACH,SAAS;QACP,OAAO,IAAI,CAAC,IAAI,CAAC,CAAC,CAChB,IAAI,CAAC,YAAY,IAAI,cAAc,EACnC,EAAE,EACF;YACE,YAAY,EAAE,IAAI,CAAC,gBAAgB,IAAI,cAAc;SACtD,CACF,CAAA;IACH,CAAC;IAED;;;OAGG;IACH,OAAO;QACL,MAAM,EAAE,GAAe,WAAW,EAAE,CAAA;QACpC,OAAO,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,iBAAiB,EAAE,IAAI,CAAC,SAAS,CAAC,CAAA;IACpD,CAAC;IAED;;;OAGG;IACH,UAAU;QACR,OAAO,IAAI,CAAC,QAAQ,IAAI,EAAE,CAAA;IAC5B,CAAC;qGA7DU,WAAW;6DAAX,WAAW;YAAX,gFAAA,uBACR,IADmB;;wCAAX,UAAM,kBAAN,UAAM,KAAK,MACrB,GAAG,MAAM,GAAG,OAAO,gBADT,eAAW;YAAX,cAAA,aAAS,CAAE;;YAJlB,AAFO,6EAAyB,uDAEzB;;YAFA,+CAIR;4BAfO,IAAI;;iFAiBH,WAAW;cApBvB,SAAS;eAAC;gBACT,QAAQ,EAAE,0BAA0B;gBACpC,UAAU,EAAE,IAAI;gBAChB,OAAO,EAAE,CAAC,IAAI,CAAC;gBACf,MAAM,EAAE,CAAC,cAAc,EAAE,kBAAkB,EAAE,UAAU,EAAE,WAAW,EAAE,UAAU,EAAE,WAAW,CAAC;gBAC9F,IAAI,EAAE;oBACJ,IAAI,EAAE,QAAQ;oBACd,aAAa,EAAE,cAAc;oBAC7B,kBAAkB,EAAE,QAAQ;oBAC5B,qBAAqB,EAAE,sCAAsC;oBAC7D,mBAAmB,EAAE,aAAa;oBAClC,SAAS,EAAE,WAAW;oBACtB,SAAS,EAAE,qBAAqB;iBACjC;gBACD,QAAQ,EAAE;;;;MAIN;aACL;;kFACY,WAAW"}
|
|
@@ -1,92 +1,280 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* Toast family (React parity): Toast, ToastContainer, ToastProvider and the
|
|
3
|
+
* `useToast` hook.
|
|
3
4
|
*
|
|
4
5
|
* @module
|
|
5
6
|
*/
|
|
6
|
-
import { EventEmitter, type OnDestroy,
|
|
7
|
-
import type { ColorVariant, UIClassMap } from '@molecule/app-ui';
|
|
7
|
+
import { type AfterViewInit, type DoCheck, ElementRef, EventEmitter, type OnDestroy, TemplateRef } from '@angular/core';
|
|
8
|
+
import type { ColorVariant, ToastProps, UIClassMap } from '@molecule/app-ui';
|
|
9
|
+
import type { ResolvedIcon } from '../utilities/render-icon.js';
|
|
8
10
|
import * as i0 from "@angular/core";
|
|
11
|
+
/** The toast context value (React's `ToastContextValue`). */
|
|
12
|
+
export interface ToastContextValue {
|
|
13
|
+
/** The current toasts, each with its id. */
|
|
14
|
+
toasts: (ToastProps & {
|
|
15
|
+
id: string;
|
|
16
|
+
})[];
|
|
17
|
+
/**
|
|
18
|
+
* Adds a toast.
|
|
19
|
+
* @param toast - The toast to add.
|
|
20
|
+
* @returns Its generated id.
|
|
21
|
+
*/
|
|
22
|
+
addToast: (toast: Omit<ToastProps, 'onDismiss'>) => string;
|
|
23
|
+
/**
|
|
24
|
+
* Removes a toast by id.
|
|
25
|
+
* @param id - The toast's id.
|
|
26
|
+
*/
|
|
27
|
+
removeToast: (id: string) => void;
|
|
28
|
+
}
|
|
29
|
+
/** The toast positions React's `ToastProps` accepts. */
|
|
30
|
+
type ToastPosition = ToastProps['position'];
|
|
9
31
|
/**
|
|
10
|
-
*
|
|
32
|
+
* Toast component.
|
|
33
|
+
*
|
|
34
|
+
* The host is the toast `<div>` (`div[mol-toast]`), exactly React's root. The
|
|
35
|
+
* auto-dismiss countdown pauses on hover AND focus (WCAG 2.2.1) and resumes
|
|
36
|
+
* with the remaining time; the announced role follows `status`
|
|
37
|
+
* (`warning`/`error` assertive, everything else polite).
|
|
11
38
|
*/
|
|
12
|
-
export declare class
|
|
39
|
+
export declare class Toast implements AfterViewInit, DoCheck, OnDestroy {
|
|
40
|
+
/** The toast title. */
|
|
13
41
|
title?: string;
|
|
14
|
-
description
|
|
42
|
+
/** The toast description (a string or a node value rendered as a template). */
|
|
43
|
+
description?: unknown;
|
|
44
|
+
/** The toast status. */
|
|
15
45
|
status: ColorVariant;
|
|
46
|
+
/** Auto-dismiss delay in ms (`0` keeps it until dismissed). */
|
|
16
47
|
duration: number;
|
|
48
|
+
/** Whether the close button renders. */
|
|
17
49
|
dismissible: boolean;
|
|
50
|
+
/** The close button's accessible label. */
|
|
18
51
|
closeLabel?: string;
|
|
19
|
-
|
|
52
|
+
/** Extra classes. */
|
|
20
53
|
className?: string;
|
|
21
|
-
style
|
|
54
|
+
/** Inline style object (React camelCase). */
|
|
55
|
+
style?: Record<string, unknown>;
|
|
56
|
+
/** `data-testid`. */
|
|
22
57
|
testId?: string;
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
58
|
+
/** Accepted for prop parity; positioning is the container's job. */
|
|
59
|
+
position?: ToastPosition;
|
|
60
|
+
/** Fires when the toast dismisses itself or its close button is pressed. */
|
|
61
|
+
readonly dismiss: EventEmitter<void>;
|
|
62
|
+
/** The description wrapper (always in the template; detached when empty). */
|
|
63
|
+
descriptionSlot?: ElementRef<HTMLDivElement>;
|
|
64
|
+
/** The children capture point. */
|
|
65
|
+
childrenSlot?: ElementRef<HTMLSpanElement>;
|
|
66
|
+
/** Whether the toast is still rendered (React's `isVisible`). */
|
|
67
|
+
readonly visible: import("@angular/core").WritableSignal<boolean>;
|
|
68
|
+
private readonly el;
|
|
26
69
|
/**
|
|
27
|
-
*
|
|
28
|
-
*
|
|
70
|
+
* Reactive translation, read in the injection context. Its `t` reads the
|
|
71
|
+
* locale, so the view re-renders the text on a locale switch (the static `t`
|
|
72
|
+
* does not).
|
|
29
73
|
*/
|
|
30
|
-
|
|
74
|
+
private readonly i18n;
|
|
75
|
+
private readonly renderer;
|
|
76
|
+
private readonly host;
|
|
77
|
+
private readonly sync;
|
|
78
|
+
private remaining;
|
|
79
|
+
private startedAt;
|
|
80
|
+
private timer;
|
|
81
|
+
private lastDuration;
|
|
82
|
+
private descriptionParent;
|
|
83
|
+
private childrenParent;
|
|
84
|
+
private hasChildren;
|
|
85
|
+
private adoptedChildren;
|
|
86
|
+
private detachedParent;
|
|
87
|
+
private detachedAnchor;
|
|
88
|
+
/** Prepares the countdown state (the timer starts at view init). */
|
|
89
|
+
constructor();
|
|
31
90
|
/**
|
|
32
|
-
*
|
|
33
|
-
* @returns The
|
|
91
|
+
* The current class map.
|
|
92
|
+
* @returns The UIClassMap.
|
|
34
93
|
*/
|
|
35
|
-
|
|
94
|
+
cm(): UIClassMap;
|
|
36
95
|
/**
|
|
37
|
-
*
|
|
38
|
-
* @returns The
|
|
96
|
+
* The mapped class-map variant.
|
|
97
|
+
* @returns The variant.
|
|
39
98
|
*/
|
|
40
|
-
|
|
99
|
+
variant(): 'default' | 'success' | 'warning' | 'error' | 'info';
|
|
41
100
|
/**
|
|
42
|
-
*
|
|
43
|
-
* @returns The
|
|
101
|
+
* The toast class list.
|
|
102
|
+
* @returns The class string.
|
|
44
103
|
*/
|
|
45
|
-
|
|
104
|
+
classes(): string;
|
|
46
105
|
/**
|
|
47
|
-
*
|
|
48
|
-
* @returns The
|
|
106
|
+
* Serializes the inline style.
|
|
107
|
+
* @returns The style attribute text.
|
|
49
108
|
*/
|
|
50
|
-
|
|
109
|
+
hostStyle(): string | null;
|
|
51
110
|
/**
|
|
52
|
-
*
|
|
53
|
-
* @returns The
|
|
111
|
+
* The announced role: assertive for warnings/errors, polite otherwise.
|
|
112
|
+
* @returns The role attribute value.
|
|
54
113
|
*/
|
|
55
|
-
|
|
114
|
+
role(): 'alert' | 'status';
|
|
56
115
|
/**
|
|
57
|
-
*
|
|
58
|
-
* @returns
|
|
116
|
+
* The status glyph, when the variant has one.
|
|
117
|
+
* @returns The resolved icon, or null.
|
|
59
118
|
*/
|
|
60
|
-
|
|
61
|
-
private statusIconMap;
|
|
119
|
+
statusIcon(): ResolvedIcon | null;
|
|
62
120
|
/**
|
|
63
|
-
*
|
|
64
|
-
* @returns The
|
|
121
|
+
* The close button's X glyph.
|
|
122
|
+
* @returns The resolved icon.
|
|
65
123
|
*/
|
|
66
|
-
|
|
124
|
+
closeIcon(): ResolvedIcon;
|
|
67
125
|
/**
|
|
68
|
-
*
|
|
69
|
-
* @returns The
|
|
126
|
+
* The string description, when the description is a string.
|
|
127
|
+
* @returns The text, or null.
|
|
70
128
|
*/
|
|
71
|
-
|
|
129
|
+
descriptionText(): string | null;
|
|
72
130
|
/**
|
|
73
|
-
*
|
|
74
|
-
* @returns The
|
|
131
|
+
* The description as a template, when it is a node value.
|
|
132
|
+
* @returns The template, or null.
|
|
75
133
|
*/
|
|
76
|
-
|
|
134
|
+
descriptionTemplate(): TemplateRef<unknown> | null;
|
|
77
135
|
/**
|
|
78
|
-
*
|
|
136
|
+
* The close button's accessible label.
|
|
137
|
+
* @returns The label text.
|
|
79
138
|
*/
|
|
80
|
-
|
|
139
|
+
closeText(): string;
|
|
140
|
+
/** Dismisses the toast and calls the callback (React's `handleDismiss`). */
|
|
141
|
+
handleDismiss(): void;
|
|
142
|
+
/** Pauses the countdown, keeping the time left (React's `pauseTimer`). */
|
|
143
|
+
pauseTimer(): void;
|
|
144
|
+
/** Resumes the countdown with the remaining time (React's `resumeTimer`). */
|
|
145
|
+
resumeTimer(): void;
|
|
81
146
|
/**
|
|
82
|
-
*
|
|
147
|
+
* Detects the first view and the `duration` input changes, and starts the
|
|
148
|
+
* countdown (React's mount effect, with `[duration]` deps).
|
|
83
149
|
*/
|
|
150
|
+
ngAfterViewInit(): void;
|
|
151
|
+
/**
|
|
152
|
+
* Re-reconciles children visibility on later passes.
|
|
153
|
+
*/
|
|
154
|
+
ngDoCheck(): void;
|
|
155
|
+
/** Stops the countdown (React's unmount cleanup). */
|
|
84
156
|
ngOnDestroy(): void;
|
|
157
|
+
/** React's effect body: reset the remaining time and start counting. */
|
|
158
|
+
private restart;
|
|
159
|
+
/** Clears the running timer (React's `clearTimer`). */
|
|
160
|
+
private clearTimer;
|
|
85
161
|
/**
|
|
86
|
-
*
|
|
162
|
+
* Starts the countdown (React's `startTimer`).
|
|
163
|
+
* @param ms - Milliseconds until dismissal.
|
|
87
164
|
*/
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
165
|
+
private startTimer;
|
|
166
|
+
/**
|
|
167
|
+
* Moves the projected children into the description wrapper (React renders
|
|
168
|
+
* them there) unless the description prop wins.
|
|
169
|
+
*/
|
|
170
|
+
private adoptChildren;
|
|
171
|
+
/**
|
|
172
|
+
* Removes the host element from the DOM when React renders null (the toast
|
|
173
|
+
* dismissed itself), and restores it before Angular removes it on destroy.
|
|
174
|
+
*/
|
|
175
|
+
private syncHostVisibility;
|
|
176
|
+
/** Applies React's `{!!(description || children) && <div>…</div>}`. */
|
|
177
|
+
private syncDescription;
|
|
178
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<Toast, never>;
|
|
179
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<Toast, "div[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; }; "className": { "alias": "className"; "required": false; }; "style": { "alias": "style"; "required": false; }; "testId": { "alias": "testId"; "required": false; }; "position": { "alias": "position"; "required": false; }; }, { "dismiss": "dismiss"; }, never, ["*"], true, never>;
|
|
91
180
|
}
|
|
181
|
+
/**
|
|
182
|
+
* Toast container: positions toasts on screen via a body portal.
|
|
183
|
+
*
|
|
184
|
+
* React's root is a portal, so the host is unwrapped
|
|
185
|
+
* (`data-parity-unwrap`, `display: contents`) and the container `<div>` is
|
|
186
|
+
* moved into `document.body`.
|
|
187
|
+
*/
|
|
188
|
+
export declare class ToastContainer implements AfterViewInit, OnDestroy {
|
|
189
|
+
/** The container position (default `bottom-right`). */
|
|
190
|
+
position: ToastPosition;
|
|
191
|
+
/** Extra classes. */
|
|
192
|
+
className?: string;
|
|
193
|
+
/** The container element (moved to `document.body`). */
|
|
194
|
+
container?: ElementRef<HTMLDivElement>;
|
|
195
|
+
private readonly host;
|
|
196
|
+
/**
|
|
197
|
+
* The current class map.
|
|
198
|
+
* @returns The UIClassMap.
|
|
199
|
+
*/
|
|
200
|
+
cm(): UIClassMap;
|
|
201
|
+
/**
|
|
202
|
+
* The container class list.
|
|
203
|
+
* @returns The class string.
|
|
204
|
+
*/
|
|
205
|
+
classes(): string;
|
|
206
|
+
/** Moves the container to `document.body` (React's portal). */
|
|
207
|
+
ngAfterViewInit(): void;
|
|
208
|
+
/** Moves the container back under the host so Angular can remove it. */
|
|
209
|
+
ngOnDestroy(): void;
|
|
210
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ToastContainer, never>;
|
|
211
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ToastContainer, "mol-toast-container", never, { "position": { "alias": "position"; "required": false; }; "className": { "alias": "className"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
212
|
+
}
|
|
213
|
+
/**
|
|
214
|
+
* ToastProvider: manages global toast state and renders children plus a
|
|
215
|
+
* positioned toast container (React's context provider + portal).
|
|
216
|
+
*
|
|
217
|
+
* The context value is registered on the host element (React context flows
|
|
218
|
+
* through the rendered tree, which Angular DI cannot reach for projected
|
|
219
|
+
* content); `useToast()` reads it through the DOM ancestors.
|
|
220
|
+
*/
|
|
221
|
+
export declare class ToastProvider implements AfterViewInit, OnDestroy {
|
|
222
|
+
/** The default position for toasts (default `bottom-right`). */
|
|
223
|
+
position: ToastPosition;
|
|
224
|
+
/** The children capture point (removed once children are adopted). */
|
|
225
|
+
childrenCapture?: ElementRef<HTMLSpanElement>;
|
|
226
|
+
/** The toast container (moved to `document.body`). */
|
|
227
|
+
container?: ElementRef<HTMLDivElement>;
|
|
228
|
+
/** The current toasts. */
|
|
229
|
+
readonly toasts: import("@angular/core").WritableSignal<(ToastProps & {
|
|
230
|
+
id: string;
|
|
231
|
+
})[]>;
|
|
232
|
+
private readonly host;
|
|
233
|
+
private readonly renderer;
|
|
234
|
+
private readonly sync;
|
|
235
|
+
private adopted;
|
|
236
|
+
/** Registers the toast context on the host (before any projected child resolves it). */
|
|
237
|
+
constructor();
|
|
238
|
+
/**
|
|
239
|
+
* The current class map.
|
|
240
|
+
* @returns The UIClassMap.
|
|
241
|
+
*/
|
|
242
|
+
cm(): UIClassMap;
|
|
243
|
+
/**
|
|
244
|
+
* The container class list.
|
|
245
|
+
* @returns The class string.
|
|
246
|
+
*/
|
|
247
|
+
containerClasses(): string;
|
|
248
|
+
/**
|
|
249
|
+
* Adds a toast and returns its generated id (React's `addToast`).
|
|
250
|
+
* @param toast - The toast to add.
|
|
251
|
+
* @returns The id.
|
|
252
|
+
*/
|
|
253
|
+
addToast(toast: Omit<ToastProps, 'onDismiss'>): string;
|
|
254
|
+
/**
|
|
255
|
+
* Removes a toast by id (React's `removeToast`).
|
|
256
|
+
* @param id - The toast's id.
|
|
257
|
+
*/
|
|
258
|
+
removeToast(id: string): void;
|
|
259
|
+
/**
|
|
260
|
+
* Adopts the children bare into the host and moves the container to
|
|
261
|
+
* `document.body` (React's portal).
|
|
262
|
+
*/
|
|
263
|
+
ngAfterViewInit(): void;
|
|
264
|
+
/** Removes the context registration and restores the container (unmount). */
|
|
265
|
+
ngOnDestroy(): void;
|
|
266
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ToastProvider, never>;
|
|
267
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ToastProvider, "mol-toast-provider", never, { "position": { "alias": "position"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
268
|
+
}
|
|
269
|
+
/**
|
|
270
|
+
* Accesses the toast context for adding and removing toasts.
|
|
271
|
+
*
|
|
272
|
+
* Must be called in an injection context (a component field initializer or
|
|
273
|
+
* constructor).
|
|
274
|
+
*
|
|
275
|
+
* @returns The toast context value.
|
|
276
|
+
* @throws {Error} When there is no enclosing `ToastProvider` (React throws too).
|
|
277
|
+
*/
|
|
278
|
+
export declare function useToast(): ToastContextValue;
|
|
279
|
+
export {};
|
|
92
280
|
//# sourceMappingURL=toast.component.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toast.component.d.ts","sourceRoot":"","sources":["../../src/components/toast.component.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"toast.component.d.ts","sourceRoot":"","sources":["../../src/components/toast.component.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EACL,KAAK,aAAa,EAElB,KAAK,OAAO,EACZ,UAAU,EACV,YAAY,EAEZ,KAAK,SAAS,EAId,WAAW,EAEZ,MAAM,eAAe,CAAA;AAKtB,OAAO,KAAK,EAAE,YAAY,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAI5E,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAA;;AA2B/D,6DAA6D;AAC7D,MAAM,WAAW,iBAAiB;IAChC,4CAA4C;IAC5C,MAAM,EAAE,CAAC,UAAU,GAAG;QAAE,EAAE,EAAE,MAAM,CAAA;KAAE,CAAC,EAAE,CAAA;IACvC;;;;OAIG;IACH,QAAQ,EAAE,CAAC,KAAK,EAAE,IAAI,CAAC,UAAU,EAAE,WAAW,CAAC,KAAK,MAAM,CAAA;IAC1D;;;OAGG;IACH,WAAW,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAA;CAClC;AAED,wDAAwD;AACxD,KAAK,aAAa,GAAG,UAAU,CAAC,UAAU,CAAC,CAAA;AAE3C;;;;;;;GAOG;AACH,qBAsDa,KAAM,YAAW,aAAa,EAAE,OAAO,EAAE,SAAS;IAC7D,uBAAuB;IACvB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,+EAA+E;IAC/E,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,wBAAwB;IACxB,MAAM,EAAE,YAAY,CAAS;IAC7B,+DAA+D;IAC/D,QAAQ,SAAO;IACf,wCAAwC;IACxC,WAAW,UAAO;IAClB,2CAA2C;IAC3C,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,qBAAqB;IACr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