@molecule/app-ui-angular 1.0.6 → 1.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (312) hide show
  1. package/README.md +11710 -1117
  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 +97 -29
  31. package/dist/components/checkbox.component.d.ts.map +1 -1
  32. package/dist/components/checkbox.component.js +222 -117
  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/controlled-checked.directive.d.ts +45 -0
  43. package/dist/components/controlled-checked.directive.d.ts.map +1 -0
  44. package/dist/components/controlled-checked.directive.js +74 -0
  45. package/dist/components/controlled-checked.directive.js.map +1 -0
  46. package/dist/components/dropdown.component.d.ts +313 -0
  47. package/dist/components/dropdown.component.d.ts.map +1 -0
  48. package/dist/components/dropdown.component.js +919 -0
  49. package/dist/components/dropdown.component.js.map +1 -0
  50. package/dist/components/empty-state.component.d.ts +73 -0
  51. package/dist/components/empty-state.component.d.ts.map +1 -0
  52. package/dist/components/empty-state.component.js +180 -0
  53. package/dist/components/empty-state.component.js.map +1 -0
  54. package/dist/components/floating-input.component.d.ts +86 -0
  55. package/dist/components/floating-input.component.d.ts.map +1 -0
  56. package/dist/components/floating-input.component.js +167 -0
  57. package/dist/components/floating-input.component.js.map +1 -0
  58. package/dist/components/form-field.component.d.ts +111 -0
  59. package/dist/components/form-field.component.d.ts.map +1 -0
  60. package/dist/components/form-field.component.js +300 -0
  61. package/dist/components/form-field.component.js.map +1 -0
  62. package/dist/components/form.component.d.ts +77 -0
  63. package/dist/components/form.component.d.ts.map +1 -0
  64. package/dist/components/form.component.js +222 -0
  65. package/dist/components/form.component.js.map +1 -0
  66. package/dist/components/icon.component.d.ts +85 -0
  67. package/dist/components/icon.component.d.ts.map +1 -0
  68. package/dist/components/icon.component.js +187 -0
  69. package/dist/components/icon.component.js.map +1 -0
  70. package/dist/components/index.d.ts +49 -0
  71. package/dist/components/index.d.ts.map +1 -1
  72. package/dist/components/index.js +49 -0
  73. package/dist/components/index.js.map +1 -1
  74. package/dist/components/input.component.d.ts +157 -54
  75. package/dist/components/input.component.d.ts.map +1 -1
  76. package/dist/components/input.component.js +437 -222
  77. package/dist/components/input.component.js.map +1 -1
  78. package/dist/components/label.component.d.ts +29 -0
  79. package/dist/components/label.component.d.ts.map +1 -0
  80. package/dist/components/label.component.js +60 -0
  81. package/dist/components/label.component.js.map +1 -0
  82. package/dist/components/language-picker.component.d.ts +124 -0
  83. package/dist/components/language-picker.component.d.ts.map +1 -0
  84. package/dist/components/language-picker.component.js +305 -0
  85. package/dist/components/language-picker.component.js.map +1 -0
  86. package/dist/components/layout.component.d.ts +167 -0
  87. package/dist/components/layout.component.d.ts.map +1 -0
  88. package/dist/components/layout.component.js +364 -0
  89. package/dist/components/layout.component.js.map +1 -0
  90. package/dist/components/load-error-banner.component.d.ts +103 -0
  91. package/dist/components/load-error-banner.component.d.ts.map +1 -0
  92. package/dist/components/load-error-banner.component.js +263 -0
  93. package/dist/components/load-error-banner.component.js.map +1 -0
  94. package/dist/components/modal.component.d.ts +125 -95
  95. package/dist/components/modal.component.d.ts.map +1 -1
  96. package/dist/components/modal.component.js +458 -271
  97. package/dist/components/modal.component.js.map +1 -1
  98. package/dist/components/molecule/alert.component.d.ts +77 -0
  99. package/dist/components/molecule/alert.component.d.ts.map +1 -0
  100. package/dist/components/molecule/alert.component.js +229 -0
  101. package/dist/components/molecule/alert.component.js.map +1 -0
  102. package/dist/components/molecule/badge.component.d.ts +27 -0
  103. package/dist/components/molecule/badge.component.d.ts.map +1 -0
  104. package/dist/components/molecule/badge.component.js +79 -0
  105. package/dist/components/molecule/badge.component.js.map +1 -0
  106. package/dist/components/molecule/button.component.d.ts +38 -0
  107. package/dist/components/molecule/button.component.d.ts.map +1 -0
  108. package/dist/components/molecule/button.component.js +137 -0
  109. package/dist/components/molecule/button.component.js.map +1 -0
  110. package/dist/components/molecule/checkbox.component.d.ts +53 -0
  111. package/dist/components/molecule/checkbox.component.d.ts.map +1 -0
  112. package/dist/components/molecule/checkbox.component.js +166 -0
  113. package/dist/components/molecule/checkbox.component.js.map +1 -0
  114. package/dist/components/molecule/index.d.ts +18 -0
  115. package/dist/components/molecule/index.d.ts.map +1 -0
  116. package/dist/components/molecule/index.js +18 -0
  117. package/dist/components/molecule/index.js.map +1 -0
  118. package/dist/components/molecule/input.component.d.ts +93 -0
  119. package/dist/components/molecule/input.component.d.ts.map +1 -0
  120. package/dist/components/molecule/input.component.js +314 -0
  121. package/dist/components/molecule/input.component.js.map +1 -0
  122. package/dist/components/molecule/modal.component.d.ts +148 -0
  123. package/dist/components/molecule/modal.component.d.ts.map +1 -0
  124. package/dist/components/molecule/modal.component.js +382 -0
  125. package/dist/components/molecule/modal.component.js.map +1 -0
  126. package/dist/components/molecule/radio-group.component.d.ts +63 -0
  127. package/dist/components/molecule/radio-group.component.d.ts.map +1 -0
  128. package/dist/components/molecule/radio-group.component.js +208 -0
  129. package/dist/components/molecule/radio-group.component.js.map +1 -0
  130. package/dist/components/molecule/select.component.d.ts +72 -0
  131. package/dist/components/molecule/select.component.d.ts.map +1 -0
  132. package/dist/components/molecule/select.component.js +274 -0
  133. package/dist/components/molecule/select.component.js.map +1 -0
  134. package/dist/components/molecule/spinner.component.d.ts +42 -0
  135. package/dist/components/molecule/spinner.component.d.ts.map +1 -0
  136. package/dist/components/molecule/spinner.component.js +122 -0
  137. package/dist/components/molecule/spinner.component.js.map +1 -0
  138. package/dist/components/molecule/switch.component.d.ts +54 -0
  139. package/dist/components/molecule/switch.component.d.ts.map +1 -0
  140. package/dist/components/molecule/switch.component.js +148 -0
  141. package/dist/components/molecule/switch.component.js.map +1 -0
  142. package/dist/components/molecule/toast.component.d.ts +98 -0
  143. package/dist/components/molecule/toast.component.d.ts.map +1 -0
  144. package/dist/components/molecule/toast.component.js +305 -0
  145. package/dist/components/molecule/toast.component.js.map +1 -0
  146. package/dist/components/molecule/tooltip.component.d.ts +77 -0
  147. package/dist/components/molecule/tooltip.component.d.ts.map +1 -0
  148. package/dist/components/molecule/tooltip.component.js +316 -0
  149. package/dist/components/molecule/tooltip.component.js.map +1 -0
  150. package/dist/components/optimistic-toggle-button.component.d.ts +125 -0
  151. package/dist/components/optimistic-toggle-button.component.d.ts.map +1 -0
  152. package/dist/components/optimistic-toggle-button.component.js +296 -0
  153. package/dist/components/optimistic-toggle-button.component.js.map +1 -0
  154. package/dist/components/page-header.component.d.ts +77 -0
  155. package/dist/components/page-header.component.d.ts.map +1 -0
  156. package/dist/components/page-header.component.js +225 -0
  157. package/dist/components/page-header.component.js.map +1 -0
  158. package/dist/components/page-shell.component.d.ts +101 -0
  159. package/dist/components/page-shell.component.d.ts.map +1 -0
  160. package/dist/components/page-shell.component.js +221 -0
  161. package/dist/components/page-shell.component.js.map +1 -0
  162. package/dist/components/pagination.component.d.ts +137 -0
  163. package/dist/components/pagination.component.d.ts.map +1 -0
  164. package/dist/components/pagination.component.js +419 -0
  165. package/dist/components/pagination.component.js.map +1 -0
  166. package/dist/components/panel-close.component.d.ts +43 -0
  167. package/dist/components/panel-close.component.d.ts.map +1 -0
  168. package/dist/components/panel-close.component.js +75 -0
  169. package/dist/components/panel-close.component.js.map +1 -0
  170. package/dist/components/progress.component.d.ts +84 -0
  171. package/dist/components/progress.component.d.ts.map +1 -0
  172. package/dist/components/progress.component.js +219 -0
  173. package/dist/components/progress.component.js.map +1 -0
  174. package/dist/components/prompt-dialog.component.d.ts +121 -0
  175. package/dist/components/prompt-dialog.component.d.ts.map +1 -0
  176. package/dist/components/prompt-dialog.component.js +332 -0
  177. package/dist/components/prompt-dialog.component.js.map +1 -0
  178. package/dist/components/radio-group.component.d.ts +66 -34
  179. package/dist/components/radio-group.component.d.ts.map +1 -1
  180. package/dist/components/radio-group.component.js +157 -134
  181. package/dist/components/radio-group.component.js.map +1 -1
  182. package/dist/components/responsive-app-shell.component.d.ts +408 -0
  183. package/dist/components/responsive-app-shell.component.d.ts.map +1 -0
  184. package/dist/components/responsive-app-shell.component.js +1144 -0
  185. package/dist/components/responsive-app-shell.component.js.map +1 -0
  186. package/dist/components/select.component.d.ts +135 -38
  187. package/dist/components/select.component.d.ts.map +1 -1
  188. package/dist/components/select.component.js +373 -181
  189. package/dist/components/select.component.js.map +1 -1
  190. package/dist/components/separator.component.d.ts +39 -0
  191. package/dist/components/separator.component.d.ts.map +1 -0
  192. package/dist/components/separator.component.js +73 -0
  193. package/dist/components/separator.component.js.map +1 -0
  194. package/dist/components/sidebar-user-card.component.d.ts +106 -0
  195. package/dist/components/sidebar-user-card.component.d.ts.map +1 -0
  196. package/dist/components/sidebar-user-card.component.js +277 -0
  197. package/dist/components/sidebar-user-card.component.js.map +1 -0
  198. package/dist/components/skeleton.component.d.ts +100 -0
  199. package/dist/components/skeleton.component.d.ts.map +1 -0
  200. package/dist/components/skeleton.component.js +214 -0
  201. package/dist/components/skeleton.component.js.map +1 -0
  202. package/dist/components/spinner.component.d.ts +36 -19
  203. package/dist/components/spinner.component.d.ts.map +1 -1
  204. package/dist/components/spinner.component.js +69 -71
  205. package/dist/components/spinner.component.js.map +1 -1
  206. package/dist/components/switch.component.d.ts +72 -29
  207. package/dist/components/switch.component.d.ts.map +1 -1
  208. package/dist/components/switch.component.js +168 -95
  209. package/dist/components/switch.component.js.map +1 -1
  210. package/dist/components/table.component.d.ts +193 -0
  211. package/dist/components/table.component.d.ts.map +1 -0
  212. package/dist/components/table.component.js +550 -0
  213. package/dist/components/table.component.js.map +1 -0
  214. package/dist/components/tabs.component.d.ts +140 -0
  215. package/dist/components/tabs.component.d.ts.map +1 -0
  216. package/dist/components/tabs.component.js +390 -0
  217. package/dist/components/tabs.component.js.map +1 -0
  218. package/dist/components/template-outlet.directive.d.ts +50 -0
  219. package/dist/components/template-outlet.directive.d.ts.map +1 -0
  220. package/dist/components/template-outlet.directive.js +81 -0
  221. package/dist/components/template-outlet.directive.js.map +1 -0
  222. package/dist/components/textarea.component.d.ts +151 -0
  223. package/dist/components/textarea.component.d.ts.map +1 -0
  224. package/dist/components/textarea.component.js +340 -0
  225. package/dist/components/textarea.component.js.map +1 -0
  226. package/dist/components/theme-toggle.component.d.ts +58 -0
  227. package/dist/components/theme-toggle.component.d.ts.map +1 -0
  228. package/dist/components/theme-toggle.component.js +124 -0
  229. package/dist/components/theme-toggle.component.js.map +1 -0
  230. package/dist/components/toast.component.d.ts +237 -49
  231. package/dist/components/toast.component.d.ts.map +1 -1
  232. package/dist/components/toast.component.js +636 -201
  233. package/dist/components/toast.component.js.map +1 -1
  234. package/dist/components/tooltip.component.d.ts +95 -45
  235. package/dist/components/tooltip.component.d.ts.map +1 -1
  236. package/dist/components/tooltip.component.js +372 -221
  237. package/dist/components/tooltip.component.js.map +1 -1
  238. package/dist/components/user-menu-popover.component.d.ts +283 -0
  239. package/dist/components/user-menu-popover.component.d.ts.map +1 -0
  240. package/dist/components/user-menu-popover.component.js +646 -0
  241. package/dist/components/user-menu-popover.component.js.map +1 -0
  242. package/dist/components/user-menu.component.d.ts +95 -0
  243. package/dist/components/user-menu.component.d.ts.map +1 -0
  244. package/dist/components/user-menu.component.js +218 -0
  245. package/dist/components/user-menu.component.js.map +1 -0
  246. package/dist/hooks/index.d.ts +7 -0
  247. package/dist/hooks/index.d.ts.map +1 -0
  248. package/dist/hooks/index.js +7 -0
  249. package/dist/hooks/index.js.map +1 -0
  250. package/dist/hooks/use-is-desktop.d.ts +22 -0
  251. package/dist/hooks/use-is-desktop.d.ts.map +1 -0
  252. package/dist/hooks/use-is-desktop.js +37 -0
  253. package/dist/hooks/use-is-desktop.js.map +1 -0
  254. package/dist/index.d.ts +32 -17
  255. package/dist/index.d.ts.map +1 -1
  256. package/dist/index.js +32 -17
  257. package/dist/index.js.map +1 -1
  258. package/dist/types.d.ts +1 -1
  259. package/dist/types.d.ts.map +1 -1
  260. package/dist/utilities/dom-context.d.ts +42 -0
  261. package/dist/utilities/dom-context.d.ts.map +1 -0
  262. package/dist/utilities/dom-context.js +66 -0
  263. package/dist/utilities/dom-context.js.map +1 -0
  264. package/dist/utilities/focus.d.ts +32 -0
  265. package/dist/utilities/focus.d.ts.map +1 -0
  266. package/dist/utilities/focus.js +47 -0
  267. package/dist/utilities/focus.js.map +1 -0
  268. package/dist/utilities/form-field-context.d.ts +34 -0
  269. package/dist/utilities/form-field-context.d.ts.map +1 -0
  270. package/dist/utilities/form-field-context.js +28 -0
  271. package/dist/utilities/form-field-context.js.map +1 -0
  272. package/dist/utilities/form-submit-error.d.ts +17 -0
  273. package/dist/utilities/form-submit-error.d.ts.map +1 -0
  274. package/dist/utilities/form-submit-error.js +42 -0
  275. package/dist/utilities/form-submit-error.js.map +1 -0
  276. package/dist/utilities/icon-markup.d.ts +17 -0
  277. package/dist/utilities/icon-markup.d.ts.map +1 -0
  278. package/dist/utilities/icon-markup.js +46 -0
  279. package/dist/utilities/icon-markup.js.map +1 -0
  280. package/dist/utilities/ids.d.ts +15 -0
  281. package/dist/utilities/ids.d.ts.map +1 -0
  282. package/dist/utilities/ids.js +19 -0
  283. package/dist/utilities/ids.js.map +1 -0
  284. package/dist/utilities/index.d.ts +11 -0
  285. package/dist/utilities/index.d.ts.map +1 -1
  286. package/dist/utilities/index.js +11 -0
  287. package/dist/utilities/index.js.map +1 -1
  288. package/dist/utilities/initials.d.ts +13 -0
  289. package/dist/utilities/initials.d.ts.map +1 -0
  290. package/dist/utilities/initials.js +23 -0
  291. package/dist/utilities/initials.js.map +1 -0
  292. package/dist/utilities/node-value.d.ts +31 -0
  293. package/dist/utilities/node-value.d.ts.map +1 -0
  294. package/dist/utilities/node-value.js +37 -0
  295. package/dist/utilities/node-value.js.map +1 -0
  296. package/dist/utilities/optimistic-value.d.ts +81 -0
  297. package/dist/utilities/optimistic-value.d.ts.map +1 -0
  298. package/dist/utilities/optimistic-value.js +154 -0
  299. package/dist/utilities/optimistic-value.js.map +1 -0
  300. package/dist/utilities/render-icon.d.ts +77 -7
  301. package/dist/utilities/render-icon.d.ts.map +1 -1
  302. package/dist/utilities/render-icon.js +123 -33
  303. package/dist/utilities/render-icon.js.map +1 -1
  304. package/dist/utilities/rest-attrs.d.ts +21 -0
  305. package/dist/utilities/rest-attrs.d.ts.map +1 -0
  306. package/dist/utilities/rest-attrs.js +37 -0
  307. package/dist/utilities/rest-attrs.js.map +1 -0
  308. package/dist/utilities/style.d.ts +23 -0
  309. package/dist/utilities/style.d.ts.map +1 -0
  310. package/dist/utilities/style.js +86 -0
  311. package/dist/utilities/style.js.map +1 -0
  312. package/package.json +6 -4
@@ -0,0 +1,550 @@
1
+ /**
2
+ * Table component (React parity).
3
+ *
4
+ * @module
5
+ */
6
+ import { Component, ElementRef, inject, Renderer2, signal, TemplateRef, ViewChild, } from '@angular/core';
7
+ import { useTranslation } from '@molecule/app-angular';
8
+ import { getClassMap } from '@molecule/app-ui';
9
+ import { MolIconSvg, resolveIcon } from '../utilities/render-icon.js';
10
+ import { styleText } from '../utilities/style.js';
11
+ import { hasNodes, SlotWrapper } from './button.component.js';
12
+ import { Spinner } from './spinner.component.js';
13
+ import { MolTemplateOutlet } from './template-outlet.directive.js';
14
+ import * as i0 from "@angular/core";
15
+ const _c0 = ["emptySlot"];
16
+ const _c1 = ["emptyCell"];
17
+ const _c2 = [[["", "slot", "emptycontent"]]];
18
+ const _c3 = ["[slot=emptyContent]"];
19
+ const _forTrack0 = ($index, $item) => $item.key;
20
+ function _forTrack1($index, $item) { /* @ts-ignore */
21
+ return this.rowKeyOf($item, $index); }
22
+ function Table_Conditional_3_Template(rf, ctx) { if (rf & 1) {
23
+ i0.ɵɵelementStart(0, "div");
24
+ i0.ɵɵelement(1, "div", 5);
25
+ i0.ɵɵelementEnd();
26
+ } if (rf & 2) {
27
+ const ctx_r0 = i0.ɵɵnextContext();
28
+ i0.ɵɵclassMap(ctx_r0.cm().tableLoadingOverlay);
29
+ i0.ɵɵadvance();
30
+ i0.ɵɵproperty("size", "lg");
31
+ } }
32
+ function Table_For_9_Conditional_2_Template(rf, ctx) { if (rf & 1) {
33
+ i0.ɵɵelementContainer(0, 7);
34
+ } if (rf & 2) {
35
+ i0.ɵɵproperty("molTemplateOutlet", ctx);
36
+ } }
37
+ function Table_For_9_Conditional_3_Template(rf, ctx) { if (rf & 1) {
38
+ i0.ɵɵtext(0);
39
+ } if (rf & 2) {
40
+ const column_r3 = i0.ɵɵnextContext().$implicit;
41
+ const ctx_r0 = i0.ɵɵnextContext();
42
+ i0.ɵɵtextInterpolate1(" ", ctx_r0.nodeText(column_r3.header), " ");
43
+ } }
44
+ function Table_For_9_Conditional_4_Template(rf, ctx) { if (rf & 1) {
45
+ i0.ɵɵelementStart(0, "span");
46
+ i0.ɵɵnamespaceSVG();
47
+ i0.ɵɵelement(1, "svg", 8);
48
+ i0.ɵɵelementEnd();
49
+ } if (rf & 2) {
50
+ const ctx_r0 = i0.ɵɵnextContext(2);
51
+ i0.ɵɵclassMap(ctx_r0.cm().tableSortIcon);
52
+ i0.ɵɵadvance();
53
+ i0.ɵɵproperty("data", ctx_r0.sortIcon());
54
+ } }
55
+ function Table_For_9_Template(rf, ctx) { if (rf & 1) {
56
+ const _r2 = i0.ɵɵgetCurrentView();
57
+ i0.ɵɵelementStart(0, "th", 6);
58
+ i0.ɵɵlistener("click", function Table_For_9_Template_th_click_0_listener() { const column_r3 = i0.ɵɵrestoreView(_r2).$implicit; const ctx_r0 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r0.handleSort(column_r3)); });
59
+ i0.ɵɵelementStart(1, "div");
60
+ i0.ɵɵconditionalCreate(2, Table_For_9_Conditional_2_Template, 1, 1, "ng-container", 7)(3, Table_For_9_Conditional_3_Template, 1, 1);
61
+ i0.ɵɵconditionalCreate(4, Table_For_9_Conditional_4_Template, 2, 3, "span", 3);
62
+ i0.ɵɵelementEnd()();
63
+ } if (rf & 2) {
64
+ let tmp_16_0;
65
+ const column_r3 = ctx.$implicit;
66
+ const ctx_r0 = i0.ɵɵnextContext();
67
+ i0.ɵɵstyleMap(ctx_r0.columnStyle(column_r3));
68
+ i0.ɵɵclassMap(ctx_r0.headClasses(column_r3));
69
+ i0.ɵɵattribute("aria-sort", ctx_r0.ariaSort(column_r3));
70
+ i0.ɵɵadvance();
71
+ i0.ɵɵclassMap(ctx_r0.cm().tableSortWrapper);
72
+ i0.ɵɵadvance();
73
+ i0.ɵɵconditional((tmp_16_0 = ctx_r0.asTemplate(column_r3.header)) ? 2 : 3, tmp_16_0);
74
+ i0.ɵɵadvance(2);
75
+ i0.ɵɵconditional(column_r3.sortable && ctx_r0.sort?.key === column_r3.key ? 4 : -1);
76
+ } }
77
+ function Table_Conditional_11_Conditional_3_Template(rf, ctx) { if (rf & 1) {
78
+ i0.ɵɵtext(0);
79
+ } if (rf & 2) {
80
+ const ctx_r0 = i0.ɵɵnextContext(2);
81
+ i0.ɵɵtextInterpolate1(" ", ctx_r0.emptyText(), " ");
82
+ } }
83
+ function Table_Conditional_11_Template(rf, ctx) { if (rf & 1) {
84
+ i0.ɵɵelementStart(0, "tr")(1, "td", null, 2);
85
+ i0.ɵɵconditionalCreate(3, Table_Conditional_11_Conditional_3_Template, 1, 1);
86
+ i0.ɵɵelementEnd()();
87
+ } if (rf & 2) {
88
+ const ctx_r0 = i0.ɵɵnextContext();
89
+ i0.ɵɵadvance();
90
+ i0.ɵɵclassMap(ctx_r0.cm().tableEmptyCell);
91
+ i0.ɵɵattribute("colspan", ctx_r0.columns.length);
92
+ i0.ɵɵadvance(2);
93
+ i0.ɵɵconditional(!ctx_r0.hasEmpty() ? 3 : -1);
94
+ } }
95
+ function Table_Conditional_12_For_1_For_2_Conditional_1_Conditional_0_Template(rf, ctx) { if (rf & 1) {
96
+ i0.ɵɵelementContainer(0, 9);
97
+ } if (rf & 2) {
98
+ const column_r8 = i0.ɵɵnextContext(2).$implicit;
99
+ const ctx_r8 = i0.ɵɵnextContext();
100
+ const row_r6 = ctx_r8.$implicit;
101
+ const ɵ$index_40_r10 = ctx_r8.$index;
102
+ const ctx_r0 = i0.ɵɵnextContext(2);
103
+ i0.ɵɵproperty("molTemplateOutlet", ctx)("molTemplateOutletContext", ctx_r0.cellContext(row_r6, column_r8, ɵ$index_40_r10));
104
+ } }
105
+ function Table_Conditional_12_For_1_For_2_Conditional_1_Conditional_1_Template(rf, ctx) { if (rf & 1) {
106
+ i0.ɵɵtext(0);
107
+ } if (rf & 2) {
108
+ const ctx_r10 = i0.ɵɵnextContext(2);
109
+ const column_r8 = ctx_r10.$implicit;
110
+ const $index_r12 = ctx_r10.$index;
111
+ const row_r6 = i0.ɵɵnextContext().$implicit;
112
+ const ctx_r0 = i0.ɵɵnextContext(2);
113
+ i0.ɵɵtextInterpolate1(" ", ctx_r0.renderText(row_r6, column_r8, $index_r12), " ");
114
+ } }
115
+ function Table_Conditional_12_For_1_For_2_Conditional_1_Template(rf, ctx) { if (rf & 1) {
116
+ i0.ɵɵconditionalCreate(0, Table_Conditional_12_For_1_For_2_Conditional_1_Conditional_0_Template, 1, 2, "ng-container", 9)(1, Table_Conditional_12_For_1_For_2_Conditional_1_Conditional_1_Template, 1, 1);
117
+ } if (rf & 2) {
118
+ let tmp_25_0;
119
+ const column_r8 = i0.ɵɵnextContext().$implicit;
120
+ const ctx_r0 = i0.ɵɵnextContext(3);
121
+ i0.ɵɵconditional((tmp_25_0 = ctx_r0.asTemplate(column_r8.render)) ? 0 : 1, tmp_25_0);
122
+ } }
123
+ function Table_Conditional_12_For_1_For_2_Conditional_2_Template(rf, ctx) { if (rf & 1) {
124
+ i0.ɵɵtext(0);
125
+ } if (rf & 2) {
126
+ const column_r8 = i0.ɵɵnextContext().$implicit;
127
+ const row_r6 = i0.ɵɵnextContext().$implicit;
128
+ const ctx_r0 = i0.ɵɵnextContext(2);
129
+ i0.ɵɵtextInterpolate1(" ", ctx_r0.cellText(row_r6, column_r8), " ");
130
+ } }
131
+ function Table_Conditional_12_For_1_For_2_Template(rf, ctx) { if (rf & 1) {
132
+ i0.ɵɵelementStart(0, "td");
133
+ i0.ɵɵconditionalCreate(1, Table_Conditional_12_For_1_For_2_Conditional_1_Template, 2, 1)(2, Table_Conditional_12_For_1_For_2_Conditional_2_Template, 1, 1);
134
+ i0.ɵɵelementEnd();
135
+ } if (rf & 2) {
136
+ const column_r8 = ctx.$implicit;
137
+ const ctx_r0 = i0.ɵɵnextContext(3);
138
+ i0.ɵɵclassMap(ctx_r0.cellClasses(column_r8));
139
+ i0.ɵɵadvance();
140
+ i0.ɵɵconditional(column_r8.render ? 1 : 2);
141
+ } }
142
+ function Table_Conditional_12_For_1_Template(rf, ctx) { if (rf & 1) {
143
+ const _r4 = i0.ɵɵgetCurrentView();
144
+ i0.ɵɵelementStart(0, "tr", 6);
145
+ i0.ɵɵlistener("click", function Table_Conditional_12_For_1_Template_tr_click_0_listener() { const ctx_r4 = i0.ɵɵrestoreView(_r4); const row_r6 = ctx_r4.$implicit; const $index_r7 = ctx_r4.$index; const ctx_r0 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r0.handleRowClick(row_r6, $index_r7)); });
146
+ i0.ɵɵrepeaterCreate(1, Table_Conditional_12_For_1_For_2_Template, 3, 3, "td", 3, _forTrack0);
147
+ i0.ɵɵelementEnd();
148
+ } if (rf & 2) {
149
+ const $index_r7 = ctx.$index;
150
+ const ctx_r0 = i0.ɵɵnextContext(2);
151
+ i0.ɵɵclassMap(ctx_r0.rowClasses($index_r7));
152
+ i0.ɵɵadvance();
153
+ i0.ɵɵrepeater(ctx_r0.columns);
154
+ } }
155
+ function Table_Conditional_12_Template(rf, ctx) { if (rf & 1) {
156
+ i0.ɵɵrepeaterCreate(0, Table_Conditional_12_For_1_Template, 3, 2, "tr", 3, _forTrack1, true);
157
+ } if (rf & 2) {
158
+ const ctx_r0 = i0.ɵɵnextContext();
159
+ i0.ɵɵrepeater(ctx_r0.data);
160
+ } }
161
+ /**
162
+ * Table component.
163
+ *
164
+ * The host is the wrapper `<div>` (`div[mol-table]`), exactly React's root;
165
+ * the `<table>` carries the className/style/testId/rest. Column render
166
+ * functions are templates (with `a0`–`a2` = the render function's arguments)
167
+ * or plain functions returning text.
168
+ */
169
+ export class Table {
170
+ /** The rows. */
171
+ data = [];
172
+ /** The columns. */
173
+ columns = [];
174
+ /** Row key: a field name or a function. */
175
+ rowKey;
176
+ /** Renders cell borders. */
177
+ bordered;
178
+ /** Stripes alternate rows. */
179
+ striped;
180
+ /** Highlights rows on hover (default true). */
181
+ hoverable = true;
182
+ /** Accepted for prop parity; the table has no size variants. */
183
+ size;
184
+ /** Content shown when there are no rows (node-valued prop). */
185
+ emptyContent;
186
+ /** Shows the loading overlay. */
187
+ loading;
188
+ /** The current sort. */
189
+ sort;
190
+ /** Called with the column key and the next direction (React's `onSort`). */
191
+ onSort;
192
+ /** Called with the row and index when a row is clicked (React's `onRowClick`). */
193
+ onRowClick;
194
+ /** Extra classes for the table. */
195
+ className;
196
+ /** Inline style object for the table (React camelCase). */
197
+ style;
198
+ /** `data-testid` for the table. */
199
+ testId;
200
+ /** The empty-state slot capture point. */
201
+ emptySlot;
202
+ /** The empty-state cell. */
203
+ emptyCell;
204
+ /** Whether the projected empty content is present (read after view init). */
205
+ hasEmpty = signal(false, /* @ts-ignore */
206
+ ...(ngDevMode ? [{ debugName: "hasEmpty" }] : /* istanbul ignore next */ []));
207
+ host = inject(ElementRef);
208
+ /**
209
+ * Reactive translation, read in the injection context. Its `t` reads the
210
+ * locale, so the view re-renders the text on a locale switch (the static `t`
211
+ * does not).
212
+ */
213
+ i18n = useTranslation();
214
+ renderer = inject(Renderer2);
215
+ sync = new SlotWrapper(this.host, this.renderer);
216
+ emptyParent = null;
217
+ adoptedEmpty = [];
218
+ /**
219
+ * The current class map.
220
+ * @returns The UIClassMap.
221
+ */
222
+ cm() {
223
+ return getClassMap();
224
+ }
225
+ /**
226
+ * The table class list.
227
+ * @returns The class string.
228
+ */
229
+ tableClasses() {
230
+ return this.cm().cn(this.cm().table, this.bordered && this.cm().tableBordered, this.className);
231
+ }
232
+ /**
233
+ * Serializes the table's inline style.
234
+ * @returns The style attribute text.
235
+ */
236
+ tableStyle() {
237
+ return styleText(this.style);
238
+ }
239
+ /**
240
+ * The `<th>` class list.
241
+ * @param column - The column.
242
+ * @returns The class string.
243
+ */
244
+ headClasses(column) {
245
+ return this.cm().cn(this.cm().tableHead, column.align === 'center' && this.cm().textCenter, column.align === 'right' && this.cm().textRight, column.sortable && this.cm().tableHeadSortable);
246
+ }
247
+ /**
248
+ * The `<th>` inline style (the column width).
249
+ * @param column - The column.
250
+ * @returns The style attribute text.
251
+ */
252
+ columnStyle(column) {
253
+ return styleText({ width: column.width });
254
+ }
255
+ /**
256
+ * The `<td>` class list.
257
+ * @param column - The column.
258
+ * @returns The class string.
259
+ */
260
+ cellClasses(column) {
261
+ return this.cm().cn(this.cm().tableCell, column.align === 'center' && this.cm().textCenter, column.align === 'right' && this.cm().textRight);
262
+ }
263
+ /**
264
+ * The row class list.
265
+ * @param index - The row index.
266
+ * @returns The class string.
267
+ */
268
+ rowClasses(index) {
269
+ return this.cm().cn(this.cm().tableRow, this.striped && index % 2 === 1 && this.cm().tableRowStriped, this.hoverable && this.cm().tableRowHoverable, !!this.onRowClick && this.cm().tableRowClickable);
270
+ }
271
+ /**
272
+ * The `aria-sort` value for a column.
273
+ * @param column - The column.
274
+ * @returns The attribute value, or null.
275
+ */
276
+ ariaSort(column) {
277
+ if (!column.sortable)
278
+ return null;
279
+ if (this.sort?.key !== column.key)
280
+ return 'none';
281
+ return this.sort.direction === 'asc' ? 'ascending' : 'descending';
282
+ }
283
+ /**
284
+ * The active sort glyph.
285
+ * @returns The resolved icon.
286
+ */
287
+ sortIcon() {
288
+ return resolveIcon(this.sort?.direction === 'asc' ? 'chevron-up' : 'chevron-down', this.cm().iconSm);
289
+ }
290
+ /**
291
+ * The default empty-state text.
292
+ * @returns The localized text.
293
+ */
294
+ emptyText() {
295
+ return this.i18n.t('ui.table.empty', undefined, { defaultValue: 'No data available' });
296
+ }
297
+ /**
298
+ * A plain-string node value's text.
299
+ * @param value - The prop value.
300
+ * @returns The text, or empty.
301
+ */
302
+ nodeText(value) {
303
+ return typeof value === 'string' ? value : '';
304
+ }
305
+ /**
306
+ * Narrows a node-valued prop to a TemplateRef.
307
+ * @param value - The prop value.
308
+ * @returns The template, or null.
309
+ */
310
+ asTemplate(value) {
311
+ return value instanceof TemplateRef ? value : null;
312
+ }
313
+ /**
314
+ * The stable key for a row (React's `getRowKey`). It reads the row it is given,
315
+ * never `data[index]`: Angular also tracks the rows it already rendered by their
316
+ * old index, and `data` is then the new array.
317
+ * @param row - The row.
318
+ * @param index - The row's index (the key when there is no `rowKey`).
319
+ * @returns The key.
320
+ */
321
+ rowKeyOf(row, index) {
322
+ if (typeof this.rowKey === 'function')
323
+ return this.rowKey(row);
324
+ if (this.rowKey && row[this.rowKey] !== undefined)
325
+ return row[this.rowKey];
326
+ return index;
327
+ }
328
+ /**
329
+ * The context a cell render template receives (the render function's
330
+ * arguments: value, row, index).
331
+ * @param row - The row.
332
+ * @param column - The column.
333
+ * @param index - The row index.
334
+ * @returns The template context.
335
+ */
336
+ cellContext(row, column, index) {
337
+ const value = row[column.key];
338
+ return { $implicit: value, a0: value, a1: row, a2: index };
339
+ }
340
+ /**
341
+ * A cell render function's text result (a `format` render returns a string).
342
+ * @param row - The row.
343
+ * @param column - The column.
344
+ * @param index - The row index.
345
+ * @returns The rendered text.
346
+ */
347
+ renderText(row, column, index) {
348
+ const render = column.render;
349
+ if (typeof render !== 'function')
350
+ return '';
351
+ const value = row[column.key];
352
+ const result = render(value, row, index);
353
+ return typeof result === 'string' ? result : '';
354
+ }
355
+ /**
356
+ * A plain cell's text.
357
+ * @param row - The row.
358
+ * @param column - The column.
359
+ * @returns The cell text.
360
+ */
361
+ cellText(row, column) {
362
+ const value = row[column.key];
363
+ return value === undefined || value === null ? '' : String(value);
364
+ }
365
+ /**
366
+ * Sorts by a column (React's `handleSort`).
367
+ * @param column - The clicked column.
368
+ */
369
+ handleSort(column) {
370
+ if (!column.sortable || !this.onSort)
371
+ return;
372
+ const key = column.key;
373
+ const currentDirection = this.sort?.key === key ? this.sort.direction : undefined;
374
+ this.onSort(key, currentDirection === 'asc' ? 'desc' : 'asc');
375
+ }
376
+ /**
377
+ * Calls the row-click callback (React's `onRowClick`).
378
+ * @param row - The clicked row.
379
+ * @param index - The row index.
380
+ */
381
+ handleRowClick(row, index) {
382
+ this.onRowClick?.(row, index);
383
+ }
384
+ /**
385
+ * Reads the empty-slot presence at view init (view queries resolve only
386
+ * then) and adopts the projected empty content into the empty cell.
387
+ */
388
+ ngAfterViewInit() {
389
+ const slot = this.emptySlot?.nativeElement;
390
+ this.emptyParent = slot?.parentElement ?? null;
391
+ const present = hasNodes(slot);
392
+ this.hasEmpty.set(present);
393
+ const cell = this.emptyCell?.nativeElement;
394
+ if (slot && cell && present) {
395
+ this.adoptedEmpty = Array.from(slot.childNodes);
396
+ for (const node of this.adoptedEmpty)
397
+ cell.appendChild(node);
398
+ }
399
+ this.sync.sync(slot, false, this.emptyParent ?? undefined);
400
+ }
401
+ /**
402
+ * Re-reconciles the empty content (the empty cell is re-created when the
403
+ * data length changes).
404
+ */
405
+ ngDoCheck() {
406
+ const cell = this.emptyCell?.nativeElement;
407
+ if (!cell || !this.hasEmpty())
408
+ return;
409
+ if (this.adoptedEmpty.some((node) => node.parentNode !== cell)) {
410
+ for (const node of this.adoptedEmpty)
411
+ cell.appendChild(node);
412
+ }
413
+ }
414
+ static ɵfac = function Table_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || Table)(); };
415
+ static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: Table, selectors: [["div", "mol-table", ""]], viewQuery: function Table_Query(rf, ctx) { if (rf & 1) {
416
+ i0.ɵɵviewQuery(_c0, 5)(_c1, 5);
417
+ } if (rf & 2) {
418
+ let _t;
419
+ i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.emptySlot = _t.first);
420
+ i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.emptyCell = _t.first);
421
+ } }, hostVars: 2, hostBindings: function Table_HostBindings(rf, ctx) { if (rf & 2) {
422
+ i0.ɵɵclassMap(ctx.cm().tableWrapper);
423
+ } }, inputs: { data: "data", columns: "columns", rowKey: "rowKey", bordered: "bordered", striped: "striped", hoverable: "hoverable", size: "size", emptyContent: "emptyContent", loading: "loading", sort: "sort", onSort: "onSort", onRowClick: "onRowClick", className: "className", style: "style", testId: "testId" }, ngContentSelectors: _c3, decls: 13, vars: 13, consts: [["emptySlot", ""], ["tableEl", ""], ["emptyCell", ""], [3, "class"], [3, "class", "style"], ["mol-spinner", "", 3, "size"], [3, "click"], [3, "molTemplateOutlet"], ["mol-icon", "", 3, "data"], [3, "molTemplateOutlet", "molTemplateOutletContext"]], template: function Table_Template(rf, ctx) { if (rf & 1) {
424
+ i0.ɵɵprojectionDef(_c2);
425
+ i0.ɵɵelementStart(0, "span", null, 0);
426
+ i0.ɵɵprojection(2);
427
+ i0.ɵɵelementEnd();
428
+ i0.ɵɵconditionalCreate(3, Table_Conditional_3_Template, 2, 3, "div", 3);
429
+ i0.ɵɵelementStart(4, "table", null, 1)(6, "thead")(7, "tr");
430
+ i0.ɵɵrepeaterCreate(8, Table_For_9_Template, 5, 9, "th", 4, _forTrack0);
431
+ i0.ɵɵelementEnd()();
432
+ i0.ɵɵelementStart(10, "tbody");
433
+ i0.ɵɵconditionalCreate(11, Table_Conditional_11_Template, 4, 4, "tr")(12, Table_Conditional_12_Template, 2, 0);
434
+ i0.ɵɵelementEnd()();
435
+ } if (rf & 2) {
436
+ i0.ɵɵadvance(3);
437
+ i0.ɵɵconditional(ctx.loading ? 3 : -1);
438
+ i0.ɵɵadvance();
439
+ i0.ɵɵstyleMap(ctx.tableStyle());
440
+ i0.ɵɵclassMap(ctx.tableClasses());
441
+ i0.ɵɵattribute("data-testid", ctx.testId);
442
+ i0.ɵɵadvance(2);
443
+ i0.ɵɵclassMap(ctx.cm().tableHeader);
444
+ i0.ɵɵadvance();
445
+ i0.ɵɵclassMap(ctx.cm().tableRow);
446
+ i0.ɵɵadvance();
447
+ i0.ɵɵrepeater(ctx.columns);
448
+ i0.ɵɵadvance(2);
449
+ i0.ɵɵclassMap(ctx.cm().tableBody);
450
+ i0.ɵɵadvance();
451
+ i0.ɵɵconditional(ctx.data.length === 0 ? 11 : 12);
452
+ } }, dependencies: [MolIconSvg, MolTemplateOutlet, Spinner], encapsulation: 2 });
453
+ }
454
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(Table, [{
455
+ type: Component,
456
+ args: [{
457
+ selector: 'div[mol-table]',
458
+ standalone: true,
459
+ imports: [MolIconSvg, MolTemplateOutlet, Spinner],
460
+ inputs: [
461
+ 'data',
462
+ 'columns',
463
+ 'rowKey',
464
+ 'bordered',
465
+ 'striped',
466
+ 'hoverable',
467
+ 'size',
468
+ 'emptyContent',
469
+ 'loading',
470
+ 'sort',
471
+ 'onSort',
472
+ 'onRowClick',
473
+ 'className',
474
+ 'style',
475
+ 'testId',
476
+ ],
477
+ host: {
478
+ '[class]': 'cm().tableWrapper',
479
+ },
480
+ template: `<span #emptySlot><ng-content select="[slot=emptyContent]"></ng-content></span>
481
+ @if (loading) {
482
+ <div [class]="cm().tableLoadingOverlay"><div mol-spinner [size]="'lg'"></div></div>
483
+ }
484
+ <table #tableEl [class]="tableClasses()" [style]="tableStyle()" [attr.data-testid]="testId">
485
+ <thead [class]="cm().tableHeader">
486
+ <tr [class]="cm().tableRow">
487
+ @for (column of columns; track column.key) {
488
+ <th
489
+ [class]="headClasses(column)"
490
+ [style]="columnStyle(column)"
491
+ (click)="handleSort(column)"
492
+ [attr.aria-sort]="ariaSort(column)"
493
+ >
494
+ <div [class]="cm().tableSortWrapper">
495
+ @if (asTemplate(column.header); as headerTpl) {
496
+ <ng-container [molTemplateOutlet]="headerTpl"></ng-container>
497
+ } @else {
498
+ {{ nodeText(column.header) }}
499
+ }
500
+ @if (column.sortable && sort?.key === column.key) {
501
+ <span [class]="cm().tableSortIcon"><svg mol-icon [data]="sortIcon()" /></span>
502
+ }
503
+ </div>
504
+ </th>
505
+ }
506
+ </tr>
507
+ </thead>
508
+ <tbody [class]="cm().tableBody">
509
+ @if (data.length === 0) {
510
+ <tr>
511
+ <td [attr.colspan]="columns.length" [class]="cm().tableEmptyCell" #emptyCell>
512
+ @if (!hasEmpty()) {
513
+ {{ emptyText() }}
514
+ }
515
+ </td>
516
+ </tr>
517
+ } @else {
518
+ @for (row of data; track rowKeyOf(row, $index); let rowIdx = $index) {
519
+ <tr [class]="rowClasses($index)" (click)="handleRowClick(row, $index)">
520
+ @for (column of columns; track column.key) {
521
+ <td [class]="cellClasses(column)">
522
+ @if (column.render) {
523
+ @if (asTemplate(column.render); as cellTpl) {
524
+ <ng-container
525
+ [molTemplateOutlet]="cellTpl"
526
+ [molTemplateOutletContext]="cellContext(row, column, rowIdx)"
527
+ ></ng-container>
528
+ } @else {
529
+ {{ renderText(row, column, $index) }}
530
+ }
531
+ } @else {
532
+ {{ cellText(row, column) }}
533
+ }
534
+ </td>
535
+ }
536
+ </tr>
537
+ }
538
+ }
539
+ </tbody>
540
+ </table>`,
541
+ }]
542
+ }], null, { emptySlot: [{
543
+ type: ViewChild,
544
+ args: ['emptySlot']
545
+ }], emptyCell: [{
546
+ type: ViewChild,
547
+ args: ['emptyCell']
548
+ }] }); })();
549
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(Table, { className: "Table", filePath: "components/table.component.ts", lineNumber: 124 }); })();
550
+ //# sourceMappingURL=table.component.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"table.component.js","sourceRoot":"","sources":["../../src/components/table.component.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAEL,SAAS,EAET,UAAU,EACV,MAAM,EACN,SAAS,EACT,MAAM,EACN,WAAW,EACX,SAAS,GACV,MAAM,eAAe,CAAA;AAEtB,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAA;AAEtD,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAG9C,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAA;AACrE,OAAO,EAAE,SAAS,EAAE,MAAM,uBAA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