@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.
Files changed (308) hide show
  1. package/README.md +11740 -1143
  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 +6 -4
@@ -0,0 +1,222 @@
1
+ /**
2
+ * Form component (React parity).
3
+ *
4
+ * @module
5
+ */
6
+ import { Component, signal } from '@angular/core';
7
+ import { useTranslation } from '@molecule/app-angular';
8
+ import { getClassMap } from '@molecule/app-ui';
9
+ import { formSubmitErrorMessages } from '../utilities/form-submit-error.js';
10
+ import { styleText } from '../utilities/style.js';
11
+ import * as i0 from "@angular/core";
12
+ const _c0 = ["*"];
13
+ function Form_Conditional_0_For_2_Template(rf, ctx) { if (rf & 1) {
14
+ i0.ɵɵdomElementStart(0, "li");
15
+ i0.ɵɵtext(1);
16
+ i0.ɵɵdomElementEnd();
17
+ } if (rf & 2) {
18
+ const message_r1 = ctx.$implicit;
19
+ i0.ɵɵadvance();
20
+ i0.ɵɵtextInterpolate(message_r1);
21
+ } }
22
+ function Form_Conditional_0_Template(rf, ctx) { if (rf & 1) {
23
+ i0.ɵɵdomElementStart(0, "ul", 1);
24
+ i0.ɵɵrepeaterCreate(1, Form_Conditional_0_For_2_Template, 2, 1, "li", null, i0.ɵɵrepeaterTrackByIndex);
25
+ i0.ɵɵdomElementEnd();
26
+ } if (rf & 2) {
27
+ const ctx_r1 = i0.ɵɵnextContext();
28
+ i0.ɵɵclassMap(ctx_r1.cm().formError);
29
+ i0.ɵɵadvance();
30
+ i0.ɵɵrepeater(ctx_r1.messages());
31
+ } }
32
+ /**
33
+ * Form component.
34
+ *
35
+ * The host is the `<form>` itself (`form[mol-form]`), exactly React's root.
36
+ * A rejected async handler renders an accessible server-error list by
37
+ * default; a new submit clears the previous failure. Native action/method
38
+ * forms keep native submission.
39
+ */
40
+ export class Form {
41
+ /** Collects the form's data on submit (React's `onFormSubmit`). */
42
+ onFormSubmit;
43
+ /** Receives the submit event (React's `onSubmit`). */
44
+ onSubmit;
45
+ /** Receives the reset event (React's `onReset`). */
46
+ onReset;
47
+ /** Whether the form is submitting (disables the fieldset). */
48
+ submitting;
49
+ /** A failure managed by an external form controller. */
50
+ submitError;
51
+ /** Native form action. */
52
+ action;
53
+ /** Native form method. */
54
+ method;
55
+ /** Whether native validation is disabled. */
56
+ noValidate;
57
+ /** Extra classes for the form. */
58
+ className;
59
+ /** Inline style object (React camelCase). */
60
+ style;
61
+ /** `data-testid`. */
62
+ testId;
63
+ /** Whether a submit is in flight. */
64
+ pending = signal(false, /* @ts-ignore */
65
+ ...(ngDevMode ? [{ debugName: "pending" }] : /* istanbul ignore next */ []));
66
+ /** The failure the last submit produced. */
67
+ failure = signal(null, /* @ts-ignore */
68
+ ...(ngDevMode ? [{ debugName: "failure" }] : /* istanbul ignore next */ []));
69
+ /** A submit counter: a later submit supersedes an earlier settling one. */
70
+ attempt = 0;
71
+ /**
72
+ * Reactive translation, read in the injection context. Its `t` reads the
73
+ * locale, so the view re-renders the text on a locale switch (the static `t`
74
+ * does not).
75
+ */
76
+ i18n = useTranslation();
77
+ /**
78
+ * The current class map.
79
+ * @returns The UIClassMap.
80
+ */
81
+ cm() {
82
+ return getClassMap();
83
+ }
84
+ /**
85
+ * Serializes the form's inline style.
86
+ * @returns The style attribute text.
87
+ */
88
+ hostStyle() {
89
+ return styleText(this.style);
90
+ }
91
+ /**
92
+ * The error messages to announce (React's `submitError`/`failure` branch).
93
+ * @returns The messages.
94
+ */
95
+ messages() {
96
+ // Angular has no "prop was passed" signal; an explicitly-present
97
+ // `submitError` is the external-controller form, absent means the
98
+ // component owns the failure (React's `Object.hasOwn(props, …)`).
99
+ const error = this.submitError !== undefined ? { error: this.submitError } : this.failure();
100
+ if (!error)
101
+ return [];
102
+ return formSubmitErrorMessages(error.error, this.i18n.t('ui.form.submitError', undefined, {
103
+ defaultValue: 'Unable to submit. Please try again.',
104
+ }));
105
+ }
106
+ /**
107
+ * Handles a submit event: collects `FormData` for `onFormSubmit`, calls
108
+ * both handlers, and tracks failure/pending (React's `handleSubmit`).
109
+ *
110
+ * @param event - The submit event.
111
+ */
112
+ async handleSubmit(event) {
113
+ if (!this.onFormSubmit && !this.onSubmit)
114
+ return;
115
+ const current = ++this.attempt;
116
+ this.failure.set(null);
117
+ this.pending.set(true);
118
+ try {
119
+ const submissions = [];
120
+ const call = (handler) => {
121
+ try {
122
+ submissions.push(Promise.resolve(handler()));
123
+ }
124
+ catch (error) {
125
+ submissions.push(Promise.reject(error));
126
+ }
127
+ };
128
+ const form = event.currentTarget;
129
+ if (this.onFormSubmit) {
130
+ event.preventDefault();
131
+ const formData = new FormData(form ?? undefined);
132
+ const data = {};
133
+ formData.forEach((value, key) => {
134
+ data[key] = value;
135
+ });
136
+ call(() => this.onFormSubmit?.(data));
137
+ }
138
+ call(() => this.onSubmit?.(event));
139
+ await Promise.all(submissions);
140
+ }
141
+ catch (error) {
142
+ if (this.attempt === current)
143
+ this.failure.set({ error });
144
+ }
145
+ finally {
146
+ if (this.attempt === current)
147
+ this.pending.set(false);
148
+ }
149
+ }
150
+ /**
151
+ * Calls the reset handler (React's `onReset` through the rest spread).
152
+ *
153
+ * @param event - The reset event.
154
+ */
155
+ handleReset(event) {
156
+ this.onReset?.(event);
157
+ }
158
+ static ɵfac = function Form_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || Form)(); };
159
+ static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: Form, selectors: [["form", "mol-form", ""]], hostVars: 8, hostBindings: function Form_HostBindings(rf, ctx) { if (rf & 1) {
160
+ i0.ɵɵlistener("submit", function Form_submit_HostBindingHandler($event) { return ctx.handleSubmit($event); })("reset", function Form_reset_HostBindingHandler($event) { return ctx.handleReset($event); });
161
+ } if (rf & 2) {
162
+ i0.ɵɵattribute("data-testid", ctx.testId)("action", ctx.action ?? null, i0.ɵɵsanitizeUrlOrResourceUrl)("method", ctx.method ?? null)("novalidate", ctx.noValidate ? "" : null);
163
+ i0.ɵɵstyleMap(ctx.hostStyle());
164
+ i0.ɵɵclassMap(ctx.className);
165
+ } }, inputs: { onFormSubmit: "onFormSubmit", onSubmit: "onSubmit", onReset: "onReset", submitting: "submitting", submitError: "submitError", action: "action", method: "method", noValidate: "noValidate", className: "className", style: "style", testId: "testId" }, ngContentSelectors: _c0, decls: 3, vars: 4, consts: [["role", "alert", 3, "class"], ["role", "alert"]], template: function Form_Template(rf, ctx) { if (rf & 1) {
166
+ i0.ɵɵprojectionDef();
167
+ i0.ɵɵconditionalCreate(0, Form_Conditional_0_Template, 3, 2, "ul", 0);
168
+ i0.ɵɵdomElementStart(1, "fieldset");
169
+ i0.ɵɵprojection(2);
170
+ i0.ɵɵdomElementEnd();
171
+ } if (rf & 2) {
172
+ i0.ɵɵconditional(ctx.messages().length > 0 ? 0 : -1);
173
+ i0.ɵɵadvance();
174
+ i0.ɵɵclassMap(ctx.cm().formFieldsetContents);
175
+ i0.ɵɵattribute("disabled", ctx.submitting || ctx.pending() ? "" : null);
176
+ } }, encapsulation: 2 });
177
+ }
178
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(Form, [{
179
+ type: Component,
180
+ args: [{
181
+ selector: 'form[mol-form]',
182
+ standalone: true,
183
+ inputs: [
184
+ 'onFormSubmit',
185
+ 'onSubmit',
186
+ 'onReset',
187
+ 'submitting',
188
+ 'submitError',
189
+ 'action',
190
+ 'method',
191
+ 'noValidate',
192
+ 'className',
193
+ 'style',
194
+ 'testId',
195
+ ],
196
+ host: {
197
+ '[class]': 'className',
198
+ '[style]': 'hostStyle()',
199
+ '[attr.data-testid]': 'testId',
200
+ '[attr.action]': 'action ?? null',
201
+ '[attr.method]': 'method ?? null',
202
+ '[attr.novalidate]': 'noValidate ? "" : null',
203
+ '(submit)': 'handleSubmit($event)',
204
+ '(reset)': 'handleReset($event)',
205
+ },
206
+ template: `@if (messages().length > 0) {
207
+ <ul role="alert" [class]="cm().formError">
208
+ @for (message of messages(); track $index) {
209
+ <li>{{ message }}</li>
210
+ }
211
+ </ul>
212
+ }
213
+ <fieldset
214
+ [class]="cm().formFieldsetContents"
215
+ [attr.disabled]="submitting || pending() ? '' : null"
216
+ >
217
+ <ng-content></ng-content>
218
+ </fieldset>`,
219
+ }]
220
+ }], null, null); })();
221
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(Form, { className: "Form", filePath: "components/form.component.ts", lineNumber: 64 }); })();
222
+ //# sourceMappingURL=form.component.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"form.component.js","sourceRoot":"","sources":["../../src/components/form.component.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,eAAe,CAAA;AAEjD,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAA;AAEtD,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAE9C,OAAO,EAAE,uBAAuB,EAAE,MAAM,mCAAmC,CAAA;AAC3E,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAA;;;;IAuCvC,6BAAI;IAAA,YAAa;IAAA,oBAAK;;;IAAlB,cAAa;IAAb,gCAAa;;;IAFrB,gCAA0C;IACxC,sGAEC;IACH,oBAAK;;;IAJY,oCAAwB;IACvC,cAEC;IAFD,cAAA,iBAAU,CAET;;AAtCT;;;;;;;GAOG;AAyCH,MAAM,OAAO,IAAI;IACf,mEAAmE;IACnE,YAAY,CAA0D;IACtE,sDAAsD;IACtD,QAAQ,CAAyC;IACjD,oDAAoD;IACpD,OAAO,CAAyB;IAChC,8DAA8D;IAC9D,UAAU,CAAU;IACpB,wDAAwD;IACxD,WAAW,CAAU;IACrB,0BAA0B;IAC1B,MAAM,CAAS;IACf,0BAA0B;IAC1B,MAAM,CAAS;IACf,6CAA6C;IAC7C,UAAU,CAAU;IACpB,kCAAkC;IAClC,SAAS,CAAS;IAClB,6CAA6C;IAC7C,KAAK,CAA0B;IAC/B,qBAAqB;IACrB,MAAM,CAAS;IAEf,qCAAqC;IAC5B,OAAO,GAAG,MAAM,CAAC,KAAK;gFAAC,CAAA;IAChC,4CAA4C;IAC3B,OAA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AtHU,IAAI;6DAAJ,IAAI;YAAJ,iFAAA,wBACA,IADI,kEAAJ,uBACD,IADK;;8EACd,IAAI,yDAAJ,IAAI,iCAAD,EAAE,GAAG,IAAI;YADF,cAAA,eACT,CADa;YAAJ,4BAAI;;;YAdJ,qEAA6B;YAOtC,mCAGC;YACC,kBAAyB;YAC3B,oBAAW;;YAZF,oDAMR;YAEC,cAAmC;YAAnC,4CAAmC;;;;iFAM5B,IAAI;cAxChB,SAAS;eAAC;gBACT,QAAQ,EAAE,gBAAgB;gBAC1B,UAAU,EAAE,IAAI;gBAChB,MAAM,EAAE;oBACN,cAAc;oBACd,UAAU;oBACV,SAAS;oBACT,YAAY;oBACZ,aAAa;oBACb,QAAQ;oBACR,QAAQ;oBACR,YAAY;oBACZ,WAAW;oBACX,OAAO;oBACP,QAAQ;iBACT;gBACD,IAAI,EAAE;oBACJ,SAAS,EAAE,WAAW;oBACtB,SAAS,EAAE,aAAa;oBACxB,oBAAoB,EAAE,QAAQ;oBAC9B,eAAe,EAAE,gBAAgB;oBACjC,eAAe,EAAE,gBAAgB;oBACjC,mBAAmB,EAAE,wBAAwB;oBAC7C,UAAU,EAAE,sBAAsB;oBAClC,SAAS,EAAE,qBAAqB;iBACjC;gBACD,QAAQ,EAAE;;;;;;;;;;;;gBAYI;aACf;;kFACY,IAAI"}
@@ -0,0 +1,85 @@
1
+ /**
2
+ * Icon component (React parity).
3
+ *
4
+ * @module
5
+ */
6
+ import { ElementRef, type OnChanges } from '@angular/core';
7
+ import { type IconData, type IconName } from '@molecule/app-icons';
8
+ import * as i0 from "@angular/core";
9
+ /**
10
+ * Icon component.
11
+ *
12
+ * Renders an SVG glyph looked up by `name` from the bonded icon set. The host
13
+ * IS the `<svg>` (`svg[mol-icon-root]`). Extra attributes (`data-mol-id`,
14
+ * `aria-label`, `role`, …) land on the host — React's spread target — and
15
+ * switch the glyph out of decorative mode (no `aria-hidden`).
16
+ */
17
+ export declare class Icon implements OnChanges {
18
+ /** The glyph name from the bonded icon set. */
19
+ name: IconName;
20
+ /** Width and height in pixels (default 20). */
21
+ size: number;
22
+ /** Class name forwarded to the `<svg>`. */
23
+ className?: string;
24
+ /**
25
+ * Explicit `aria-hidden` (React stringifies `false` to `"false"` rather
26
+ * than dropping the attribute).
27
+ */
28
+ ariaHidden?: boolean | string;
29
+ /** Whether the name is missing from the bonded set (placeholder renders). */
30
+ failed: boolean;
31
+ /**
32
+ * The rendered size (the default applies when a later-bound input writes
33
+ * `undefined` over the field default, matching React's absent-prop default).
34
+ * @returns The pixel size.
35
+ */
36
+ attrSize(): number;
37
+ /**
38
+ * Resolves the icon, warning once per render pass like React does.
39
+ */
40
+ ngOnChanges(): void;
41
+ private resolved?;
42
+ /**
43
+ * The resolved icon data (throws nothing; placeholder branch covers gaps).
44
+ * @returns The icon data.
45
+ */
46
+ icon(): IconData;
47
+ /**
48
+ * The fill attribute value (`none` for `icon.svg`-backed glyphs without an
49
+ * explicit fill, matching React's two branches).
50
+ * @returns The fill.
51
+ */
52
+ fill(): string;
53
+ /**
54
+ * Stroke attribute values (null when the icon is not stroked).
55
+ * @returns The stroke attribute bag.
56
+ */
57
+ strokeAttrs(): {
58
+ stroke: string | null;
59
+ strokeWidth: number | null;
60
+ strokeLinecap: string | null;
61
+ strokeLinejoin: string | null;
62
+ };
63
+ /**
64
+ * The glyph paths (empty for `icon.svg`-backed glyphs).
65
+ * @returns The path list.
66
+ */
67
+ paths(): IconData['paths'];
68
+ /**
69
+ * Whether the glyph renders in decorative mode (no caller accessibility
70
+ * props on the host).
71
+ * @returns True when `aria-hidden` applies.
72
+ */
73
+ decorative(): boolean;
74
+ /**
75
+ * The `aria-hidden` attribute value: an explicit value wins (React keeps
76
+ * `aria-hidden={false}` as `"false"`), otherwise decorative mode applies.
77
+ * @returns The attribute text or null.
78
+ */
79
+ ariaHiddenAttr(): string | null;
80
+ /** The svg host element. */
81
+ readonly host: ElementRef<SVGSVGElement>;
82
+ static ɵfac: i0.ɵɵFactoryDeclaration<Icon, never>;
83
+ static ɵcmp: i0.ɵɵComponentDeclaration<Icon, "svg[mol-icon-root]", never, { "name": { "alias": "name"; "required": false; }; "size": { "alias": "size"; "required": false; }; "className": { "alias": "className"; "required": false; }; "ariaHidden": { "alias": "aria-hidden"; "required": false; }; }, {}, never, never, true, never>;
84
+ }
85
+ //# sourceMappingURL=icon.component.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"icon.component.d.ts","sourceRoot":"","sources":["../../src/components/icon.component.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAa,UAAU,EAAU,KAAK,SAAS,EAAE,MAAM,eAAe,CAAA;AAE7E,OAAO,EAAW,KAAK,QAAQ,EAAE,KAAK,QAAQ,EAAE,MAAM,qBAAqB,CAAA;;AAE3E;;;;;;;GAOG;AACH,qBA+Ba,IAAK,YAAW,SAAS;IACpC,+CAA+C;IAC/C,IAAI,EAAG,QAAQ,CAAA;IACf,+CAA+C;IAC/C,IAAI,SAAK;IACT,2CAA2C;IAC3C,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB;;;OAGG;IACH,UAAU,CAAC,EAAE,OAAO,GAAG,MAAM,CAAA;IAE7B,6EAA6E;IAC7E,MAAM,UAAQ;IAEd;;;;OAIG;IACH,QAAQ,IAAI,MAAM;IAIlB;;OAEG;IACH,WAAW,IAAI,IAAI;IAgBnB,OAAO,CAAC,QAAQ,CAAC,CAAU;IAE3B;;;OAGG;IACH,IAAI,IAAI,QAAQ;IAIhB;;;;OAIG;IACH,IAAI,IAAI,MAAM;IAMd;;;OAGG;IACH,WAAW,IAAI;QACb,MAAM,EAAE,MAAM,GAAG,IAAI,CAAA;QACrB,WAAW,EAAE,MAAM,GAAG,IAAI,CAAA;QAC1B,aAAa,EAAE,MAAM,GAAG,IAAI,CAAA;QAC5B,cAAc,EAAE,MAAM,GAAG,IAAI,CAAA;KAC9B;IAaD;;;OAGG;IACH,KAAK,IAAI,QAAQ,CAAC,OAAO,CAAC;IAI1B;;;;OAIG;IACH,UAAU,IAAI,OAAO;IASrB;;;;OAIG;IACH,cAAc,IAAI,MAAM,GAAG,IAAI;IAU/B,4BAA4B;IAC5B,QAAQ,CAAC,IAAI,EAAE,UAAU,CAAC,aAAa,CAAC,CAAqB;yCA7HlD,IAAI;2CAAJ,IAAI;CA8HhB"}
@@ -0,0 +1,187 @@
1
+ /**
2
+ * Icon component (React parity).
3
+ *
4
+ * @module
5
+ */
6
+ import { Component, ElementRef, inject } from '@angular/core';
7
+ import { getIcon } from '@molecule/app-icons';
8
+ import * as i0 from "@angular/core";
9
+ function Icon_Conditional_0_Template(rf, ctx) { if (rf & 1) {
10
+ i0.ɵɵnamespaceSVG();
11
+ i0.ɵɵdomElement(0, "circle", 0);
12
+ } }
13
+ function Icon_Conditional_1_For_1_Template(rf, ctx) { if (rf & 1) {
14
+ i0.ɵɵnamespaceSVG();
15
+ i0.ɵɵdomElement(0, "path");
16
+ } if (rf & 2) {
17
+ const p_r1 = ctx.$implicit;
18
+ i0.ɵɵattribute("d", p_r1.d)("fill", p_r1.fill)("fill-rule", p_r1.fillRule)("clip-rule", p_r1.clipRule)("opacity", p_r1.opacity);
19
+ } }
20
+ function Icon_Conditional_1_Template(rf, ctx) { if (rf & 1) {
21
+ i0.ɵɵrepeaterCreate(0, Icon_Conditional_1_For_1_Template, 1, 5, "path", null, i0.ɵɵrepeaterTrackByIndex);
22
+ } if (rf & 2) {
23
+ const ctx_r1 = i0.ɵɵnextContext();
24
+ i0.ɵɵrepeater(ctx_r1.paths());
25
+ } }
26
+ /**
27
+ * Icon component.
28
+ *
29
+ * Renders an SVG glyph looked up by `name` from the bonded icon set. The host
30
+ * IS the `<svg>` (`svg[mol-icon-root]`). Extra attributes (`data-mol-id`,
31
+ * `aria-label`, `role`, …) land on the host — React's spread target — and
32
+ * switch the glyph out of decorative mode (no `aria-hidden`).
33
+ */
34
+ export class Icon {
35
+ /** The glyph name from the bonded icon set. */
36
+ name;
37
+ /** Width and height in pixels (default 20). */
38
+ size = 20;
39
+ /** Class name forwarded to the `<svg>`. */
40
+ className;
41
+ /**
42
+ * Explicit `aria-hidden` (React stringifies `false` to `"false"` rather
43
+ * than dropping the attribute).
44
+ */
45
+ ariaHidden;
46
+ /** Whether the name is missing from the bonded set (placeholder renders). */
47
+ failed = false;
48
+ /**
49
+ * The rendered size (the default applies when a later-bound input writes
50
+ * `undefined` over the field default, matching React's absent-prop default).
51
+ * @returns The pixel size.
52
+ */
53
+ attrSize() {
54
+ return this.size ?? 20;
55
+ }
56
+ /**
57
+ * Resolves the icon, warning once per render pass like React does.
58
+ */
59
+ ngOnChanges() {
60
+ this.failed = false;
61
+ this.resolved = undefined;
62
+ try {
63
+ this.resolved = getIcon(this.name);
64
+ }
65
+ catch (error) {
66
+ console.warn(`Icon: no bonded glyph for "${String(this.name)}" — rendering a placeholder.`, error);
67
+ this.failed = true;
68
+ }
69
+ const svg = this.resolved?.svg;
70
+ if (svg)
71
+ this.host.nativeElement.innerHTML = svg;
72
+ }
73
+ resolved;
74
+ /**
75
+ * The resolved icon data (throws nothing; placeholder branch covers gaps).
76
+ * @returns The icon data.
77
+ */
78
+ icon() {
79
+ return this.resolved ?? { paths: [] };
80
+ }
81
+ /**
82
+ * The fill attribute value (`none` for `icon.svg`-backed glyphs without an
83
+ * explicit fill, matching React's two branches).
84
+ * @returns The fill.
85
+ */
86
+ fill() {
87
+ const icon = this.icon();
88
+ if (icon.svg)
89
+ return icon.fill || 'none';
90
+ return icon.stroke ? 'none' : icon.fill || 'currentColor';
91
+ }
92
+ /**
93
+ * Stroke attribute values (null when the icon is not stroked).
94
+ * @returns The stroke attribute bag.
95
+ */
96
+ strokeAttrs() {
97
+ const icon = this.icon();
98
+ if (!icon.stroke) {
99
+ return { stroke: null, strokeWidth: null, strokeLinecap: null, strokeLinejoin: null };
100
+ }
101
+ return {
102
+ stroke: icon.stroke ?? null,
103
+ strokeWidth: icon.strokeWidth ?? null,
104
+ strokeLinecap: icon.strokeLinecap ?? null,
105
+ strokeLinejoin: icon.strokeLinejoin ?? null,
106
+ };
107
+ }
108
+ /**
109
+ * The glyph paths (empty for `icon.svg`-backed glyphs).
110
+ * @returns The path list.
111
+ */
112
+ paths() {
113
+ return this.icon().svg ? [] : this.icon().paths;
114
+ }
115
+ /**
116
+ * Whether the glyph renders in decorative mode (no caller accessibility
117
+ * props on the host).
118
+ * @returns True when `aria-hidden` applies.
119
+ */
120
+ decorative() {
121
+ const el = this.host.nativeElement;
122
+ return (!el.hasAttribute('aria-label') &&
123
+ !el.hasAttribute('aria-labelledby') &&
124
+ !el.hasAttribute('role'));
125
+ }
126
+ /**
127
+ * The `aria-hidden` attribute value: an explicit value wins (React keeps
128
+ * `aria-hidden={false}` as `"false"`), otherwise decorative mode applies.
129
+ * @returns The attribute text or null.
130
+ */
131
+ ariaHiddenAttr() {
132
+ if (this.ariaHidden !== undefined)
133
+ return this.ariaHidden === true
134
+ ? 'true'
135
+ : this.ariaHidden === false
136
+ ? 'false'
137
+ : String(this.ariaHidden);
138
+ return this.decorative() ? 'true' : null;
139
+ }
140
+ /** The svg host element. */
141
+ host = inject(ElementRef);
142
+ static ɵfac = function Icon_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || Icon)(); };
143
+ static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: Icon, selectors: [["svg", "mol-icon-root", ""]], hostVars: 12, hostBindings: function Icon_HostBindings(rf, ctx) { if (rf & 2) {
144
+ i0.ɵɵattribute("width", ctx.attrSize())("height", ctx.attrSize())("viewBox", ctx.failed ? "0 0 20 20" : ctx.icon().viewBox || "0 0 20 20")("fill", ctx.failed ? "none" : ctx.fill())("stroke", ctx.strokeAttrs().stroke)("stroke-width", ctx.strokeAttrs().strokeWidth)("stroke-linecap", ctx.strokeAttrs().strokeLinecap)("stroke-linejoin", ctx.strokeAttrs().strokeLinejoin)("aria-hidden", ctx.ariaHiddenAttr())("focusable", ctx.decorative() ? "false" : null);
145
+ i0.ɵɵclassMap(ctx.className);
146
+ } }, inputs: { name: "name", size: "size", className: "className", ariaHidden: [0, "aria-hidden", "ariaHidden"] }, features: [i0.ɵɵNgOnChangesFeature], decls: 2, vars: 1, consts: [["cx", "10", "cy", "10", "r", "8", "fill", "currentColor", "opacity", "0.15"]], template: function Icon_Template(rf, ctx) { if (rf & 1) {
147
+ i0.ɵɵconditionalCreate(0, Icon_Conditional_0_Template, 1, 0, "circle", 0)(1, Icon_Conditional_1_Template, 2, 0);
148
+ } if (rf & 2) {
149
+ i0.ɵɵconditional(ctx.failed ? 0 : 1);
150
+ } }, encapsulation: 2 });
151
+ }
152
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(Icon, [{
153
+ type: Component,
154
+ args: [{
155
+ selector: 'svg[mol-icon-root]',
156
+ standalone: true,
157
+ inputs: ['name', 'size', 'className', 'ariaHidden: aria-hidden'],
158
+ host: {
159
+ '[attr.width]': 'attrSize()',
160
+ '[attr.height]': 'attrSize()',
161
+ '[attr.viewBox]': 'failed ? "0 0 20 20" : icon().viewBox || "0 0 20 20"',
162
+ '[attr.fill]': 'failed ? "none" : fill()',
163
+ '[attr.stroke]': 'strokeAttrs().stroke',
164
+ '[attr.stroke-width]': 'strokeAttrs().strokeWidth',
165
+ '[attr.stroke-linecap]': 'strokeAttrs().strokeLinecap',
166
+ '[attr.stroke-linejoin]': 'strokeAttrs().strokeLinejoin',
167
+ '[class]': 'className',
168
+ '[attr.aria-hidden]': 'ariaHiddenAttr()',
169
+ '[attr.focusable]': 'decorative() ? "false" : null',
170
+ },
171
+ template: `@if (failed) {
172
+ <svg:circle cx="10" cy="10" r="8" fill="currentColor" opacity="0.15" />
173
+ } @else {
174
+ @for (p of paths(); track $index) {
175
+ <svg:path
176
+ [attr.d]="p.d"
177
+ [attr.fill]="p.fill"
178
+ [attr.fill-rule]="p.fillRule"
179
+ [attr.clip-rule]="p.clipRule"
180
+ [attr.opacity]="p.opacity"
181
+ />
182
+ }
183
+ }`,
184
+ }]
185
+ }], null, null); })();
186
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(Icon, { className: "Icon", filePath: "components/icon.component.ts", lineNumber: 50 }); })();
187
+ //# sourceMappingURL=icon.component.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"icon.component.js","sourceRoot":"","sources":["../../src/components/icon.component.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,EAAkB,MAAM,eAAe,CAAA;AAE7E,OAAO,EAAE,OAAO,EAAgC,MAAM,qBAAqB,CAAA;;;;IA4BrE,+BAAuE;;;;IAGrE,0BAME;;;;;;IAPJ,wGAQC;;;IARD,cAAA,cAAO,CAQN;;AApCP;;;;;;;GAOG;AAgCH,MAAM,OAAO,IAAI;IACf,+CAA+C;IAC/C,IAAI,CAAW;IACf,+CAA+C;IAC/C,IAAI,GAAG,EAAE,CAAA;IACT,2CAA2C;IAC3C,SAAS,CAAS;IAClB;;;OAGG;IACH,UAAU,CAAmB;IAE7B,6EAA6E;IAC7E,MAAM,GAAG,KAAK,CAAA;IAEd;;;;OAIG;IACH,QAAQ;QACN,OAAO,IAAI,CAAC,IAAI,IAAI,EAAE,CAAA;IACxB,CAAC;IAED;;OAEG;IACH,WAAW;QACT,IAAI,CAAC,MAAM,GAAG,KAAK,CAAA;QACnB,IAAI,CAAC,QAAQ,GAAG,SAAS,CAAA;QACzB,IAAI,CAAC;YACH,IAAI,CAAC,QAAQ,GAAG,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;QACpC,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,OAAO,CAAC,IAAI,CACV,8BAA8B,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,8BAA8B,EAC7E,KAAK,CACN,CAAA;YACD,IAAI,CAAC,MAAM,GAAG,IAAI,CAAA;QACpB,CAAC;QACD,MAAM,GAAG,GAAG,IAAI,CAAC,QAAQ,EAAE,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eAAe,EAAE,sBAAsB;oBACvC,qBAAqB,EAAE,2BAA2B;oBAClD,uBAAuB,EAAE,6BAA6B;oBACtD,wBAAwB,EAAE,8BAA8B;oBACxD,SAAS,EAAE,WAAW;oBACtB,oBAAoB,EAAE,kBAAkB;oBACxC,kBAAkB,EAAE,+BAA+B;iBACpD;gBACD,QAAQ,EAAE;;;;;;;;;;;;MAYN;aACL;;kFACY,IAAI"}
@@ -1,18 +1,67 @@
1
1
  /**
2
2
  * Component exports.
3
3
  *
4
+ * React-parity components are exported under their React names (`Button`,
5
+ * `CardHeader`, …); the original spike components keep their `Molecule*`
6
+ * names under `./molecule/` (deprecated).
7
+ *
4
8
  * @module
5
9
  */
10
+ export * from './accordion.component.js';
6
11
  export * from './alert.component.js';
12
+ export * from './auth-guard.component.js';
13
+ export * from './avatar.component.js';
7
14
  export * from './badge.component.js';
8
15
  export * from './button.component.js';
16
+ export * from './card.component.js';
9
17
  export * from './checkbox.component.js';
18
+ export * from './confirm-button.component.js';
19
+ export * from './confirm-dialog.component.js';
20
+ export * from './dropdown.component.js';
21
+ export * from './empty-state.component.js';
22
+ export * from './floating-input.component.js';
23
+ export * from './form.component.js';
24
+ export * from './form-field.component.js';
25
+ export * from './icon.component.js';
10
26
  export * from './input.component.js';
27
+ export * from './label.component.js';
28
+ export * from './language-picker.component.js';
29
+ export * from './layout.component.js';
30
+ export * from './load-error-banner.component.js';
11
31
  export * from './modal.component.js';
32
+ export * from './optimistic-toggle-button.component.js';
33
+ export * from './page-header.component.js';
34
+ export * from './page-shell.component.js';
35
+ export * from './pagination.component.js';
36
+ export * from './panel-close.component.js';
37
+ export * from './progress.component.js';
38
+ export * from './prompt-dialog.component.js';
12
39
  export * from './radio-group.component.js';
40
+ export * from './responsive-app-shell.component.js';
13
41
  export * from './select.component.js';
42
+ export * from './separator.component.js';
43
+ export * from './sidebar-user-card.component.js';
44
+ export * from './skeleton.component.js';
14
45
  export * from './spinner.component.js';
15
46
  export * from './switch.component.js';
47
+ export * from './table.component.js';
48
+ export * from './tabs.component.js';
49
+ export * from './textarea.component.js';
50
+ export * from './theme-toggle.component.js';
16
51
  export * from './toast.component.js';
17
52
  export * from './tooltip.component.js';
53
+ export * from './user-menu.component.js';
54
+ export * from './user-menu-popover.component.js';
55
+ /**
56
+ * Deprecated spike components from the first Angular UI pass.
57
+ *
58
+ * @deprecated Use the React-named exports above instead: `MoleculeButton` →
59
+ * `Button`, `MoleculeBadge` → `Badge`, `MoleculeAlert` → `Alert`,
60
+ * `MoleculeInput` → `Input`, `MoleculeSelect` → `Select`,
61
+ * `MoleculeCheckbox` → `Checkbox`, `MoleculeRadioGroup` → `RadioGroup`,
62
+ * `MoleculeSwitch` → `Switch`, `MoleculeSpinner` → `Spinner`,
63
+ * `MoleculeToast` → `Toast`, `MoleculeModal` → `Modal`,
64
+ * `MoleculeTooltip` → `Tooltip`.
65
+ */
66
+ export * from './molecule/index.js';
18
67
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,cAAc,sBAAsB,CAAA;AACpC,cAAc,sBAAsB,CAAA;AACpC,cAAc,uBAAuB,CAAA;AACrC,cAAc,yBAAyB,CAAA;AACvC,cAAc,sBAAsB,CAAA;AACpC,cAAc,sBAAsB,CAAA;AACpC,cAAc,4BAA4B,CAAA;AAC1C,cAAc,uBAAuB,CAAA;AACrC,cAAc,wBAAwB,CAAA;AACtC,cAAc,uBAAuB,CAAA;AACrC,cAAc,sBAAsB,CAAA;AACpC,cAAc,wBAAwB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,cAAc,0BAA0B,CAAA;AACxC,cAAc,sBAAsB,CAAA;AACpC,cAAc,2BAA2B,CAAA;AACzC,cAAc,uBAAuB,CAAA;AACrC,cAAc,sBAAsB,CAAA;AACpC,cAAc,uBAAuB,CAAA;AACrC,cAAc,qBAAqB,CAAA;AACnC,cAAc,yBAAyB,CAAA;AACvC,cAAc,+BAA+B,CAAA;AAC7C,cAAc,+BAA+B,CAAA;AAC7C,cAAc,yBAAyB,CAAA;AACvC,cAAc,4BAA4B,CAAA;AAC1C,cAAc,+BAA+B,CAAA;AAC7C,cAAc,qBAAqB,CAAA;AACnC,cAAc,2BAA2B,CAAA;AACzC,cAAc,qBAAqB,CAAA;AACnC,cAAc,sBAAsB,CAAA;AACpC,cAAc,sBAAsB,CAAA;AACpC,cAAc,gCAAgC,CAAA;AAC9C,cAAc,uBAAuB,CAAA;AACrC,cAAc,kCAAkC,CAAA;AAChD,cAAc,sBAAsB,CAAA;AACpC,cAAc,yCAAyC,CAAA;AACvD,cAAc,4BAA4B,CAAA;AAC1C,cAAc,2BAA2B,CAAA;AACzC,cAAc,2BAA2B,CAAA;AACzC,cAAc,4BAA4B,CAAA;AAC1C,cAAc,yBAAyB,CAAA;AACvC,cAAc,8BAA8B,CAAA;AAC5C,cAAc,4BAA4B,CAAA;AAC1C,cAAc,qCAAqC,CAAA;AACnD,cAAc,uBAAuB,CAAA;AACrC,cAAc,0BAA0B,CAAA;AACxC,cAAc,kCAAkC,CAAA;AAChD,cAAc,yBAAyB,CAAA;AACvC,cAAc,wBAAwB,CAAA;AACtC,cAAc,uBAAuB,CAAA;AACrC,cAAc,sBAAsB,CAAA;AACpC,cAAc,qBAAqB,CAAA;AACnC,cAAc,yBAAyB,CAAA;AACvC,cAAc,6BAA6B,CAAA;AAC3C,cAAc,sBAAsB,CAAA;AACpC,cAAc,wBAAwB,CAAA;AACtC,cAAc,0BAA0B,CAAA;AACxC,cAAc,kCAAkC,CAAA;AAEhD;;;;;;;;;;GAUG;AACH,cAAc,qBAAqB,CAAA"}
@@ -1,18 +1,67 @@
1
1
  /**
2
2
  * Component exports.
3
3
  *
4
+ * React-parity components are exported under their React names (`Button`,
5
+ * `CardHeader`, …); the original spike components keep their `Molecule*`
6
+ * names under `./molecule/` (deprecated).
7
+ *
4
8
  * @module
5
9
  */
10
+ export * from './accordion.component.js';
6
11
  export * from './alert.component.js';
12
+ export * from './auth-guard.component.js';
13
+ export * from './avatar.component.js';
7
14
  export * from './badge.component.js';
8
15
  export * from './button.component.js';
16
+ export * from './card.component.js';
9
17
  export * from './checkbox.component.js';
18
+ export * from './confirm-button.component.js';
19
+ export * from './confirm-dialog.component.js';
20
+ export * from './dropdown.component.js';
21
+ export * from './empty-state.component.js';
22
+ export * from './floating-input.component.js';
23
+ export * from './form.component.js';
24
+ export * from './form-field.component.js';
25
+ export * from './icon.component.js';
10
26
  export * from './input.component.js';
27
+ export * from './label.component.js';
28
+ export * from './language-picker.component.js';
29
+ export * from './layout.component.js';
30
+ export * from './load-error-banner.component.js';
11
31
  export * from './modal.component.js';
32
+ export * from './optimistic-toggle-button.component.js';
33
+ export * from './page-header.component.js';
34
+ export * from './page-shell.component.js';
35
+ export * from './pagination.component.js';
36
+ export * from './panel-close.component.js';
37
+ export * from './progress.component.js';
38
+ export * from './prompt-dialog.component.js';
12
39
  export * from './radio-group.component.js';
40
+ export * from './responsive-app-shell.component.js';
13
41
  export * from './select.component.js';
42
+ export * from './separator.component.js';
43
+ export * from './sidebar-user-card.component.js';
44
+ export * from './skeleton.component.js';
14
45
  export * from './spinner.component.js';
15
46
  export * from './switch.component.js';
47
+ export * from './table.component.js';
48
+ export * from './tabs.component.js';
49
+ export * from './textarea.component.js';
50
+ export * from './theme-toggle.component.js';
16
51
  export * from './toast.component.js';
17
52
  export * from './tooltip.component.js';
53
+ export * from './user-menu.component.js';
54
+ export * from './user-menu-popover.component.js';
55
+ /**
56
+ * Deprecated spike components from the first Angular UI pass.
57
+ *
58
+ * @deprecated Use the React-named exports above instead: `MoleculeButton` →
59
+ * `Button`, `MoleculeBadge` → `Badge`, `MoleculeAlert` → `Alert`,
60
+ * `MoleculeInput` → `Input`, `MoleculeSelect` → `Select`,
61
+ * `MoleculeCheckbox` → `Checkbox`, `MoleculeRadioGroup` → `RadioGroup`,
62
+ * `MoleculeSwitch` → `Switch`, `MoleculeSpinner` → `Spinner`,
63
+ * `MoleculeToast` → `Toast`, `MoleculeModal` → `Modal`,
64
+ * `MoleculeTooltip` → `Tooltip`.
65
+ */
66
+ export * from './molecule/index.js';
18
67
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,cAAc,sBAAsB,CAAA;AACpC,cAAc,sBAAsB,CAAA;AACpC,cAAc,uBAAuB,CAAA;AACrC,cAAc,yBAAyB,CAAA;AACvC,cAAc,sBAAsB,CAAA;AACpC,cAAc,sBAAsB,CAAA;AACpC,cAAc,4BAA4B,CAAA;AAC1C,cAAc,uBAAuB,CAAA;AACrC,cAAc,wBAAwB,CAAA;AACtC,cAAc,uBAAuB,CAAA;AACrC,cAAc,sBAAsB,CAAA;AACpC,cAAc,wBAAwB,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,cAAc,0BAA0B,CAAA;AACxC,cAAc,sBAAsB,CAAA;AACpC,cAAc,2BAA2B,CAAA;AACzC,cAAc,uBAAuB,CAAA;AACrC,cAAc,sBAAsB,CAAA;AACpC,cAAc,uBAAuB,CAAA;AACrC,cAAc,qBAAqB,CAAA;AACnC,cAAc,yBAAyB,CAAA;AACvC,cAAc,+BAA+B,CAAA;AAC7C,cAAc,+BAA+B,CAAA;AAC7C,cAAc,yBAAyB,CAAA;AACvC,cAAc,4BAA4B,CAAA;AAC1C,cAAc,+BAA+B,CAAA;AAC7C,cAAc,qBAAqB,CAAA;AACnC,cAAc,2BAA2B,CAAA;AACzC,cAAc,qBAAqB,CAAA;AACnC,cAAc,sBAAsB,CAAA;AACpC,cAAc,sBAAsB,CAAA;AACpC,cAAc,gCAAgC,C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