@molecule/app-ui-angular 1.0.5 → 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.
Files changed (308) hide show
  1. package/README.md +11742 -1145
  2. package/dist/components/accordion.component.d.ts +114 -0
  3. package/dist/components/accordion.component.d.ts.map +1 -0
  4. package/dist/components/accordion.component.js +286 -0
  5. package/dist/components/accordion.component.js.map +1 -0
  6. package/dist/components/alert.component.d.ts +81 -37
  7. package/dist/components/alert.component.d.ts.map +1 -1
  8. package/dist/components/alert.component.js +232 -146
  9. package/dist/components/alert.component.js.map +1 -1
  10. package/dist/components/auth-guard.component.d.ts +94 -0
  11. package/dist/components/auth-guard.component.d.ts.map +1 -0
  12. package/dist/components/auth-guard.component.js +212 -0
  13. package/dist/components/auth-guard.component.js.map +1 -0
  14. package/dist/components/avatar.component.d.ts +97 -0
  15. package/dist/components/avatar.component.d.ts.map +1 -0
  16. package/dist/components/avatar.component.js +216 -0
  17. package/dist/components/avatar.component.js.map +1 -0
  18. package/dist/components/badge.component.d.ts +27 -12
  19. package/dist/components/badge.component.d.ts.map +1 -1
  20. package/dist/components/badge.component.js +47 -47
  21. package/dist/components/badge.component.js.map +1 -1
  22. package/dist/components/button.component.d.ts +96 -14
  23. package/dist/components/button.component.d.ts.map +1 -1
  24. package/dist/components/button.component.js +232 -87
  25. package/dist/components/button.component.js.map +1 -1
  26. package/dist/components/card.component.d.ts +135 -0
  27. package/dist/components/card.component.d.ts.map +1 -0
  28. package/dist/components/card.component.js +291 -0
  29. package/dist/components/card.component.js.map +1 -0
  30. package/dist/components/checkbox.component.d.ts +102 -29
  31. package/dist/components/checkbox.component.d.ts.map +1 -1
  32. package/dist/components/checkbox.component.js +222 -113
  33. package/dist/components/checkbox.component.js.map +1 -1
  34. package/dist/components/confirm-button.component.d.ts +130 -0
  35. package/dist/components/confirm-button.component.d.ts.map +1 -0
  36. package/dist/components/confirm-button.component.js +322 -0
  37. package/dist/components/confirm-button.component.js.map +1 -0
  38. package/dist/components/confirm-dialog.component.d.ts +60 -0
  39. package/dist/components/confirm-dialog.component.d.ts.map +1 -0
  40. package/dist/components/confirm-dialog.component.js +152 -0
  41. package/dist/components/confirm-dialog.component.js.map +1 -0
  42. package/dist/components/dropdown.component.d.ts +313 -0
  43. package/dist/components/dropdown.component.d.ts.map +1 -0
  44. package/dist/components/dropdown.component.js +919 -0
  45. package/dist/components/dropdown.component.js.map +1 -0
  46. package/dist/components/empty-state.component.d.ts +73 -0
  47. package/dist/components/empty-state.component.d.ts.map +1 -0
  48. package/dist/components/empty-state.component.js +180 -0
  49. package/dist/components/empty-state.component.js.map +1 -0
  50. package/dist/components/floating-input.component.d.ts +86 -0
  51. package/dist/components/floating-input.component.d.ts.map +1 -0
  52. package/dist/components/floating-input.component.js +167 -0
  53. package/dist/components/floating-input.component.js.map +1 -0
  54. package/dist/components/form-field.component.d.ts +111 -0
  55. package/dist/components/form-field.component.d.ts.map +1 -0
  56. package/dist/components/form-field.component.js +300 -0
  57. package/dist/components/form-field.component.js.map +1 -0
  58. package/dist/components/form.component.d.ts +77 -0
  59. package/dist/components/form.component.d.ts.map +1 -0
  60. package/dist/components/form.component.js +222 -0
  61. package/dist/components/form.component.js.map +1 -0
  62. package/dist/components/icon.component.d.ts +85 -0
  63. package/dist/components/icon.component.d.ts.map +1 -0
  64. package/dist/components/icon.component.js +187 -0
  65. package/dist/components/icon.component.js.map +1 -0
  66. package/dist/components/index.d.ts +49 -0
  67. package/dist/components/index.d.ts.map +1 -1
  68. package/dist/components/index.js +49 -0
  69. package/dist/components/index.js.map +1 -1
  70. package/dist/components/input.component.d.ts +157 -54
  71. package/dist/components/input.component.d.ts.map +1 -1
  72. package/dist/components/input.component.js +437 -222
  73. package/dist/components/input.component.js.map +1 -1
  74. package/dist/components/label.component.d.ts +29 -0
  75. package/dist/components/label.component.d.ts.map +1 -0
  76. package/dist/components/label.component.js +60 -0
  77. package/dist/components/label.component.js.map +1 -0
  78. package/dist/components/language-picker.component.d.ts +124 -0
  79. package/dist/components/language-picker.component.d.ts.map +1 -0
  80. package/dist/components/language-picker.component.js +305 -0
  81. package/dist/components/language-picker.component.js.map +1 -0
  82. package/dist/components/layout.component.d.ts +167 -0
  83. package/dist/components/layout.component.d.ts.map +1 -0
  84. package/dist/components/layout.component.js +364 -0
  85. package/dist/components/layout.component.js.map +1 -0
  86. package/dist/components/load-error-banner.component.d.ts +103 -0
  87. package/dist/components/load-error-banner.component.d.ts.map +1 -0
  88. package/dist/components/load-error-banner.component.js +263 -0
  89. package/dist/components/load-error-banner.component.js.map +1 -0
  90. package/dist/components/modal.component.d.ts +125 -95
  91. package/dist/components/modal.component.d.ts.map +1 -1
  92. package/dist/components/modal.component.js +458 -271
  93. package/dist/components/modal.component.js.map +1 -1
  94. package/dist/components/molecule/alert.component.d.ts +77 -0
  95. package/dist/components/molecule/alert.component.d.ts.map +1 -0
  96. package/dist/components/molecule/alert.component.js +229 -0
  97. package/dist/components/molecule/alert.component.js.map +1 -0
  98. package/dist/components/molecule/badge.component.d.ts +27 -0
  99. package/dist/components/molecule/badge.component.d.ts.map +1 -0
  100. package/dist/components/molecule/badge.component.js +79 -0
  101. package/dist/components/molecule/badge.component.js.map +1 -0
  102. package/dist/components/molecule/button.component.d.ts +38 -0
  103. package/dist/components/molecule/button.component.d.ts.map +1 -0
  104. package/dist/components/molecule/button.component.js +137 -0
  105. package/dist/components/molecule/button.component.js.map +1 -0
  106. package/dist/components/molecule/checkbox.component.d.ts +53 -0
  107. package/dist/components/molecule/checkbox.component.d.ts.map +1 -0
  108. package/dist/components/molecule/checkbox.component.js +166 -0
  109. package/dist/components/molecule/checkbox.component.js.map +1 -0
  110. package/dist/components/molecule/index.d.ts +18 -0
  111. package/dist/components/molecule/index.d.ts.map +1 -0
  112. package/dist/components/molecule/index.js +18 -0
  113. package/dist/components/molecule/index.js.map +1 -0
  114. package/dist/components/molecule/input.component.d.ts +93 -0
  115. package/dist/components/molecule/input.component.d.ts.map +1 -0
  116. package/dist/components/molecule/input.component.js +314 -0
  117. package/dist/components/molecule/input.component.js.map +1 -0
  118. package/dist/components/molecule/modal.component.d.ts +148 -0
  119. package/dist/components/molecule/modal.component.d.ts.map +1 -0
  120. package/dist/components/molecule/modal.component.js +382 -0
  121. package/dist/components/molecule/modal.component.js.map +1 -0
  122. package/dist/components/molecule/radio-group.component.d.ts +63 -0
  123. package/dist/components/molecule/radio-group.component.d.ts.map +1 -0
  124. package/dist/components/molecule/radio-group.component.js +208 -0
  125. package/dist/components/molecule/radio-group.component.js.map +1 -0
  126. package/dist/components/molecule/select.component.d.ts +72 -0
  127. package/dist/components/molecule/select.component.d.ts.map +1 -0
  128. package/dist/components/molecule/select.component.js +274 -0
  129. package/dist/components/molecule/select.component.js.map +1 -0
  130. package/dist/components/molecule/spinner.component.d.ts +42 -0
  131. package/dist/components/molecule/spinner.component.d.ts.map +1 -0
  132. package/dist/components/molecule/spinner.component.js +122 -0
  133. package/dist/components/molecule/spinner.component.js.map +1 -0
  134. package/dist/components/molecule/switch.component.d.ts +54 -0
  135. package/dist/components/molecule/switch.component.d.ts.map +1 -0
  136. package/dist/components/molecule/switch.component.js +148 -0
  137. package/dist/components/molecule/switch.component.js.map +1 -0
  138. package/dist/components/molecule/toast.component.d.ts +98 -0
  139. package/dist/components/molecule/toast.component.d.ts.map +1 -0
  140. package/dist/components/molecule/toast.component.js +305 -0
  141. package/dist/components/molecule/toast.component.js.map +1 -0
  142. package/dist/components/molecule/tooltip.component.d.ts +77 -0
  143. package/dist/components/molecule/tooltip.component.d.ts.map +1 -0
  144. package/dist/components/molecule/tooltip.component.js +316 -0
  145. package/dist/components/molecule/tooltip.component.js.map +1 -0
  146. package/dist/components/optimistic-toggle-button.component.d.ts +125 -0
  147. package/dist/components/optimistic-toggle-button.component.d.ts.map +1 -0
  148. package/dist/components/optimistic-toggle-button.component.js +296 -0
  149. package/dist/components/optimistic-toggle-button.component.js.map +1 -0
  150. package/dist/components/page-header.component.d.ts +77 -0
  151. package/dist/components/page-header.component.d.ts.map +1 -0
  152. package/dist/components/page-header.component.js +225 -0
  153. package/dist/components/page-header.component.js.map +1 -0
  154. package/dist/components/page-shell.component.d.ts +101 -0
  155. package/dist/components/page-shell.component.d.ts.map +1 -0
  156. package/dist/components/page-shell.component.js +221 -0
  157. package/dist/components/page-shell.component.js.map +1 -0
  158. package/dist/components/pagination.component.d.ts +137 -0
  159. package/dist/components/pagination.component.d.ts.map +1 -0
  160. package/dist/components/pagination.component.js +419 -0
  161. package/dist/components/pagination.component.js.map +1 -0
  162. package/dist/components/panel-close.component.d.ts +43 -0
  163. package/dist/components/panel-close.component.d.ts.map +1 -0
  164. package/dist/components/panel-close.component.js +75 -0
  165. package/dist/components/panel-close.component.js.map +1 -0
  166. package/dist/components/progress.component.d.ts +84 -0
  167. package/dist/components/progress.component.d.ts.map +1 -0
  168. package/dist/components/progress.component.js +219 -0
  169. package/dist/components/progress.component.js.map +1 -0
  170. package/dist/components/prompt-dialog.component.d.ts +121 -0
  171. package/dist/components/prompt-dialog.component.d.ts.map +1 -0
  172. package/dist/components/prompt-dialog.component.js +332 -0
  173. package/dist/components/prompt-dialog.component.js.map +1 -0
  174. package/dist/components/radio-group.component.d.ts +66 -34
  175. package/dist/components/radio-group.component.d.ts.map +1 -1
  176. package/dist/components/radio-group.component.js +146 -125
  177. package/dist/components/radio-group.component.js.map +1 -1
  178. package/dist/components/responsive-app-shell.component.d.ts +408 -0
  179. package/dist/components/responsive-app-shell.component.d.ts.map +1 -0
  180. package/dist/components/responsive-app-shell.component.js +1144 -0
  181. package/dist/components/responsive-app-shell.component.js.map +1 -0
  182. package/dist/components/select.component.d.ts +135 -38
  183. package/dist/components/select.component.d.ts.map +1 -1
  184. package/dist/components/select.component.js +373 -181
  185. package/dist/components/select.component.js.map +1 -1
  186. package/dist/components/separator.component.d.ts +39 -0
  187. package/dist/components/separator.component.d.ts.map +1 -0
  188. package/dist/components/separator.component.js +73 -0
  189. package/dist/components/separator.component.js.map +1 -0
  190. package/dist/components/sidebar-user-card.component.d.ts +106 -0
  191. package/dist/components/sidebar-user-card.component.d.ts.map +1 -0
  192. package/dist/components/sidebar-user-card.component.js +277 -0
  193. package/dist/components/sidebar-user-card.component.js.map +1 -0
  194. package/dist/components/skeleton.component.d.ts +100 -0
  195. package/dist/components/skeleton.component.d.ts.map +1 -0
  196. package/dist/components/skeleton.component.js +214 -0
  197. package/dist/components/skeleton.component.js.map +1 -0
  198. package/dist/components/spinner.component.d.ts +36 -19
  199. package/dist/components/spinner.component.d.ts.map +1 -1
  200. package/dist/components/spinner.component.js +69 -71
  201. package/dist/components/spinner.component.js.map +1 -1
  202. package/dist/components/switch.component.d.ts +72 -29
  203. package/dist/components/switch.component.d.ts.map +1 -1
  204. package/dist/components/switch.component.js +163 -91
  205. package/dist/components/switch.component.js.map +1 -1
  206. package/dist/components/table.component.d.ts +193 -0
  207. package/dist/components/table.component.d.ts.map +1 -0
  208. package/dist/components/table.component.js +550 -0
  209. package/dist/components/table.component.js.map +1 -0
  210. package/dist/components/tabs.component.d.ts +140 -0
  211. package/dist/components/tabs.component.d.ts.map +1 -0
  212. package/dist/components/tabs.component.js +390 -0
  213. package/dist/components/tabs.component.js.map +1 -0
  214. package/dist/components/template-outlet.directive.d.ts +50 -0
  215. package/dist/components/template-outlet.directive.d.ts.map +1 -0
  216. package/dist/components/template-outlet.directive.js +81 -0
  217. package/dist/components/template-outlet.directive.js.map +1 -0
  218. package/dist/components/textarea.component.d.ts +151 -0
  219. package/dist/components/textarea.component.d.ts.map +1 -0
  220. package/dist/components/textarea.component.js +340 -0
  221. package/dist/components/textarea.component.js.map +1 -0
  222. package/dist/components/theme-toggle.component.d.ts +58 -0
  223. package/dist/components/theme-toggle.component.d.ts.map +1 -0
  224. package/dist/components/theme-toggle.component.js +124 -0
  225. package/dist/components/theme-toggle.component.js.map +1 -0
  226. package/dist/components/toast.component.d.ts +237 -49
  227. package/dist/components/toast.component.d.ts.map +1 -1
  228. package/dist/components/toast.component.js +636 -201
  229. package/dist/components/toast.component.js.map +1 -1
  230. package/dist/components/tooltip.component.d.ts +95 -45
  231. package/dist/components/tooltip.component.d.ts.map +1 -1
  232. package/dist/components/tooltip.component.js +372 -221
  233. package/dist/components/tooltip.component.js.map +1 -1
  234. package/dist/components/user-menu-popover.component.d.ts +283 -0
  235. package/dist/components/user-menu-popover.component.d.ts.map +1 -0
  236. package/dist/components/user-menu-popover.component.js +646 -0
  237. package/dist/components/user-menu-popover.component.js.map +1 -0
  238. package/dist/components/user-menu.component.d.ts +95 -0
  239. package/dist/components/user-menu.component.d.ts.map +1 -0
  240. package/dist/components/user-menu.component.js +218 -0
  241. package/dist/components/user-menu.component.js.map +1 -0
  242. package/dist/hooks/index.d.ts +7 -0
  243. package/dist/hooks/index.d.ts.map +1 -0
  244. package/dist/hooks/index.js +7 -0
  245. package/dist/hooks/index.js.map +1 -0
  246. package/dist/hooks/use-is-desktop.d.ts +22 -0
  247. package/dist/hooks/use-is-desktop.d.ts.map +1 -0
  248. package/dist/hooks/use-is-desktop.js +37 -0
  249. package/dist/hooks/use-is-desktop.js.map +1 -0
  250. package/dist/index.d.ts +32 -17
  251. package/dist/index.d.ts.map +1 -1
  252. package/dist/index.js +32 -17
  253. package/dist/index.js.map +1 -1
  254. package/dist/types.d.ts +1 -1
  255. package/dist/types.d.ts.map +1 -1
  256. package/dist/utilities/dom-context.d.ts +42 -0
  257. package/dist/utilities/dom-context.d.ts.map +1 -0
  258. package/dist/utilities/dom-context.js +66 -0
  259. package/dist/utilities/dom-context.js.map +1 -0
  260. package/dist/utilities/focus.d.ts +32 -0
  261. package/dist/utilities/focus.d.ts.map +1 -0
  262. package/dist/utilities/focus.js +47 -0
  263. package/dist/utilities/focus.js.map +1 -0
  264. package/dist/utilities/form-field-context.d.ts +34 -0
  265. package/dist/utilities/form-field-context.d.ts.map +1 -0
  266. package/dist/utilities/form-field-context.js +28 -0
  267. package/dist/utilities/form-field-context.js.map +1 -0
  268. package/dist/utilities/form-submit-error.d.ts +17 -0
  269. package/dist/utilities/form-submit-error.d.ts.map +1 -0
  270. package/dist/utilities/form-submit-error.js +42 -0
  271. package/dist/utilities/form-submit-error.js.map +1 -0
  272. package/dist/utilities/icon-markup.d.ts +17 -0
  273. package/dist/utilities/icon-markup.d.ts.map +1 -0
  274. package/dist/utilities/icon-markup.js +46 -0
  275. package/dist/utilities/icon-markup.js.map +1 -0
  276. package/dist/utilities/ids.d.ts +15 -0
  277. package/dist/utilities/ids.d.ts.map +1 -0
  278. package/dist/utilities/ids.js +19 -0
  279. package/dist/utilities/ids.js.map +1 -0
  280. package/dist/utilities/index.d.ts +11 -0
  281. package/dist/utilities/index.d.ts.map +1 -1
  282. package/dist/utilities/index.js +11 -0
  283. package/dist/utilities/index.js.map +1 -1
  284. package/dist/utilities/initials.d.ts +13 -0
  285. package/dist/utilities/initials.d.ts.map +1 -0
  286. package/dist/utilities/initials.js +23 -0
  287. package/dist/utilities/initials.js.map +1 -0
  288. package/dist/utilities/node-value.d.ts +31 -0
  289. package/dist/utilities/node-value.d.ts.map +1 -0
  290. package/dist/utilities/node-value.js +37 -0
  291. package/dist/utilities/node-value.js.map +1 -0
  292. package/dist/utilities/optimistic-value.d.ts +81 -0
  293. package/dist/utilities/optimistic-value.d.ts.map +1 -0
  294. package/dist/utilities/optimistic-value.js +154 -0
  295. package/dist/utilities/optimistic-value.js.map +1 -0
  296. package/dist/utilities/render-icon.d.ts +77 -7
  297. package/dist/utilities/render-icon.d.ts.map +1 -1
  298. package/dist/utilities/render-icon.js +123 -33
  299. package/dist/utilities/render-icon.js.map +1 -1
  300. package/dist/utilities/rest-attrs.d.ts +21 -0
  301. package/dist/utilities/rest-attrs.d.ts.map +1 -0
  302. package/dist/utilities/rest-attrs.js +37 -0
  303. package/dist/utilities/rest-attrs.js.map +1 -0
  304. package/dist/utilities/style.d.ts +23 -0
  305. package/dist/utilities/style.d.ts.map +1 -0
  306. package/dist/utilities/style.js +86 -0
  307. package/dist/utilities/style.js.map +1 -0
  308. package/package.json +10 -5
@@ -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;;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A7DU,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
- * Angular Toast UI component with UIClassMap-driven styling.
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, type OnInit } from '@angular/core';
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
- * Angular Toast UI component with UIClassMap-driven styling.
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 MoleculeToast implements OnInit, OnDestroy {
39
+ export declare class Toast implements AfterViewInit, DoCheck, OnDestroy {
40
+ /** The toast title. */
13
41
  title?: string;
14
- description?: string;
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
- position: 'top' | 'top-right' | 'top-left' | 'bottom' | 'bottom-right' | 'bottom-left';
52
+ /** Extra classes. */
20
53
  className?: string;
21
- style?: Record<string, string>;
54
+ /** Inline style object (React camelCase). */
55
+ style?: Record<string, unknown>;
56
+ /** `data-testid`. */
22
57
  testId?: string;
23
- dismiss: EventEmitter<void>;
24
- isVisible: boolean;
25
- private timer?;
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
- * Retrieves the current UI class map.
28
- * @returns The UIClassMap instance for styling.
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
- get cm(): UIClassMap;
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
- * Computes the accessible close button label.
33
- * @returns The localized aria-label for the close button.
91
+ * The current class map.
92
+ * @returns The UIClassMap.
34
93
  */
35
- get closeAriaLabel(): string;
94
+ cm(): UIClassMap;
36
95
  /**
37
- * Retrieves the CSS class for the toast title.
38
- * @returns The title class name string.
96
+ * The mapped class-map variant.
97
+ * @returns The variant.
39
98
  */
40
- get titleClass(): string;
99
+ variant(): 'default' | 'success' | 'warning' | 'error' | 'info';
41
100
  /**
42
- * Retrieves the CSS class for the toast description.
43
- * @returns The description class name string.
101
+ * The toast class list.
102
+ * @returns The class string.
44
103
  */
45
- get descriptionClass(): string;
104
+ classes(): string;
46
105
  /**
47
- * Retrieves the CSS class for the close button.
48
- * @returns The close button class name string.
106
+ * Serializes the inline style.
107
+ * @returns The style attribute text.
49
108
  */
50
- get closeButtonClass(): string;
109
+ hostStyle(): string | null;
51
110
  /**
52
- * Determines the icon type based on the toast status.
53
- * @returns The mapped icon type string.
111
+ * The announced role: assertive for warnings/errors, polite otherwise.
112
+ * @returns The role attribute value.
54
113
  */
55
- get iconType(): string;
114
+ role(): 'alert' | 'status';
56
115
  /**
57
- * Determines whether the status icon should be shown.
58
- * @returns True if the icon type is not default.
116
+ * The status glyph, when the variant has one.
117
+ * @returns The resolved icon, or null.
59
118
  */
60
- get showIcon(): boolean;
61
- private statusIconMap;
119
+ statusIcon(): ResolvedIcon | null;
62
120
  /**
63
- * Generates the SVG markup for the status icon.
64
- * @returns The SVG string for the current status icon.
121
+ * The close button's X glyph.
122
+ * @returns The resolved icon.
65
123
  */
66
- get statusIconSvg(): string;
124
+ closeIcon(): ResolvedIcon;
67
125
  /**
68
- * Generates the SVG markup for the dismiss icon.
69
- * @returns The SVG string for the dismiss button icon.
126
+ * The string description, when the description is a string.
127
+ * @returns The text, or null.
70
128
  */
71
- get dismissIconSvg(): string;
129
+ descriptionText(): string | null;
72
130
  /**
73
- * Computes the combined CSS classes for the toast container.
74
- * @returns The toast class name string.
131
+ * The description as a template, when it is a node value.
132
+ * @returns The template, or null.
75
133
  */
76
- get toastClasses(): string;
134
+ descriptionTemplate(): TemplateRef<unknown> | null;
77
135
  /**
78
- * Starts the auto-dismiss timer on component creation.
136
+ * The close button's accessible label.
137
+ * @returns The label text.
79
138
  */
80
- ngOnInit(): void;
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
- * Clears the auto-dismiss timer on component destruction.
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
- * Handles the dismiss action by hiding the toast.
162
+ * Starts the countdown (React's `startTimer`).
163
+ * @param ms - Milliseconds until dismissal.
87
164
  */
88
- onDismiss(): void;
89
- static ɵfac: i0.ɵɵFactoryDeclaration<MoleculeToast, never>;
90
- 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>;
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;;;;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,qBA+Ca,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;;;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;yCAnIN,aAAa;2CAAb,aAAa;CAuIzB"}
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,OAA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