@loomui-ng/ui 0.0.0-stage → 0.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 (270) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +46 -2
  3. package/accordion/README.md +38 -0
  4. package/alert/README.md +32 -0
  5. package/alert-dialog/README.md +37 -0
  6. package/aspect-ratio/README.md +24 -0
  7. package/attachment/README.md +40 -0
  8. package/avatar/README.md +34 -0
  9. package/badge/README.md +29 -0
  10. package/breadcrumb/README.md +33 -0
  11. package/bubble/README.md +32 -0
  12. package/button/README.md +31 -0
  13. package/button-group/README.md +30 -0
  14. package/calendar/README.md +35 -0
  15. package/card/README.md +41 -0
  16. package/carousel/README.md +41 -0
  17. package/chart/README.md +25 -0
  18. package/checkbox/README.md +31 -0
  19. package/collapsible/README.md +31 -0
  20. package/combobox/README.md +47 -0
  21. package/command/README.md +44 -0
  22. package/context-menu/README.md +36 -0
  23. package/data-table/README.md +39 -0
  24. package/date-picker/README.md +23 -0
  25. package/dialog/README.md +52 -0
  26. package/direction/README.md +19 -0
  27. package/drawer/README.md +37 -0
  28. package/dropdown-menu/README.md +46 -0
  29. package/empty/README.md +38 -0
  30. package/fesm2022/loomui-ng-ui-accordion.mjs +555 -0
  31. package/fesm2022/loomui-ng-ui-accordion.mjs.map +1 -0
  32. package/fesm2022/loomui-ng-ui-alert-dialog.mjs +652 -0
  33. package/fesm2022/loomui-ng-ui-alert-dialog.mjs.map +1 -0
  34. package/fesm2022/loomui-ng-ui-alert.mjs +286 -0
  35. package/fesm2022/loomui-ng-ui-alert.mjs.map +1 -0
  36. package/fesm2022/loomui-ng-ui-aspect-ratio.mjs +97 -0
  37. package/fesm2022/loomui-ng-ui-aspect-ratio.mjs.map +1 -0
  38. package/fesm2022/loomui-ng-ui-attachment.mjs +713 -0
  39. package/fesm2022/loomui-ng-ui-attachment.mjs.map +1 -0
  40. package/fesm2022/loomui-ng-ui-avatar.mjs +561 -0
  41. package/fesm2022/loomui-ng-ui-avatar.mjs.map +1 -0
  42. package/fesm2022/loomui-ng-ui-badge.mjs +102 -0
  43. package/fesm2022/loomui-ng-ui-badge.mjs.map +1 -0
  44. package/fesm2022/loomui-ng-ui-breadcrumb.mjs +520 -0
  45. package/fesm2022/loomui-ng-ui-breadcrumb.mjs.map +1 -0
  46. package/fesm2022/loomui-ng-ui-bubble.mjs +386 -0
  47. package/fesm2022/loomui-ng-ui-bubble.mjs.map +1 -0
  48. package/fesm2022/loomui-ng-ui-button-group.mjs +193 -0
  49. package/fesm2022/loomui-ng-ui-button-group.mjs.map +1 -0
  50. package/fesm2022/loomui-ng-ui-button.mjs +162 -0
  51. package/fesm2022/loomui-ng-ui-button.mjs.map +1 -0
  52. package/fesm2022/loomui-ng-ui-calendar.mjs +681 -0
  53. package/fesm2022/loomui-ng-ui-calendar.mjs.map +1 -0
  54. package/fesm2022/loomui-ng-ui-card.mjs +461 -0
  55. package/fesm2022/loomui-ng-ui-card.mjs.map +1 -0
  56. package/fesm2022/loomui-ng-ui-carousel.mjs +532 -0
  57. package/fesm2022/loomui-ng-ui-carousel.mjs.map +1 -0
  58. package/fesm2022/loomui-ng-ui-chart.mjs +373 -0
  59. package/fesm2022/loomui-ng-ui-chart.mjs.map +1 -0
  60. package/fesm2022/loomui-ng-ui-checkbox.mjs +265 -0
  61. package/fesm2022/loomui-ng-ui-checkbox.mjs.map +1 -0
  62. package/fesm2022/loomui-ng-ui-collapsible.mjs +274 -0
  63. package/fesm2022/loomui-ng-ui-collapsible.mjs.map +1 -0
  64. package/fesm2022/loomui-ng-ui-combobox.mjs +971 -0
  65. package/fesm2022/loomui-ng-ui-combobox.mjs.map +1 -0
  66. package/fesm2022/loomui-ng-ui-command.mjs +982 -0
  67. package/fesm2022/loomui-ng-ui-command.mjs.map +1 -0
  68. package/fesm2022/loomui-ng-ui-context-menu.mjs +1359 -0
  69. package/fesm2022/loomui-ng-ui-context-menu.mjs.map +1 -0
  70. package/fesm2022/loomui-ng-ui-data-table.mjs +535 -0
  71. package/fesm2022/loomui-ng-ui-data-table.mjs.map +1 -0
  72. package/fesm2022/loomui-ng-ui-date-picker.mjs +312 -0
  73. package/fesm2022/loomui-ng-ui-date-picker.mjs.map +1 -0
  74. package/fesm2022/loomui-ng-ui-dialog.mjs +508 -0
  75. package/fesm2022/loomui-ng-ui-dialog.mjs.map +1 -0
  76. package/fesm2022/loomui-ng-ui-direction.mjs +112 -0
  77. package/fesm2022/loomui-ng-ui-direction.mjs.map +1 -0
  78. package/fesm2022/loomui-ng-ui-drawer.mjs +590 -0
  79. package/fesm2022/loomui-ng-ui-drawer.mjs.map +1 -0
  80. package/fesm2022/loomui-ng-ui-dropdown-menu.mjs +1322 -0
  81. package/fesm2022/loomui-ng-ui-dropdown-menu.mjs.map +1 -0
  82. package/fesm2022/loomui-ng-ui-empty.mjs +408 -0
  83. package/fesm2022/loomui-ng-ui-empty.mjs.map +1 -0
  84. package/fesm2022/loomui-ng-ui-field.mjs +630 -0
  85. package/fesm2022/loomui-ng-ui-field.mjs.map +1 -0
  86. package/fesm2022/loomui-ng-ui-hover-card.mjs +230 -0
  87. package/fesm2022/loomui-ng-ui-hover-card.mjs.map +1 -0
  88. package/fesm2022/loomui-ng-ui-icon.mjs +498 -0
  89. package/fesm2022/loomui-ng-ui-icon.mjs.map +1 -0
  90. package/fesm2022/loomui-ng-ui-input-group.mjs +463 -0
  91. package/fesm2022/loomui-ng-ui-input-group.mjs.map +1 -0
  92. package/fesm2022/loomui-ng-ui-input-otp.mjs +586 -0
  93. package/fesm2022/loomui-ng-ui-input-otp.mjs.map +1 -0
  94. package/fesm2022/loomui-ng-ui-input.mjs +289 -0
  95. package/fesm2022/loomui-ng-ui-input.mjs.map +1 -0
  96. package/fesm2022/loomui-ng-ui-item.mjs +598 -0
  97. package/fesm2022/loomui-ng-ui-item.mjs.map +1 -0
  98. package/fesm2022/loomui-ng-ui-kbd.mjs +129 -0
  99. package/fesm2022/loomui-ng-ui-kbd.mjs.map +1 -0
  100. package/fesm2022/loomui-ng-ui-label.mjs +68 -0
  101. package/fesm2022/loomui-ng-ui-label.mjs.map +1 -0
  102. package/fesm2022/loomui-ng-ui-marker.mjs +234 -0
  103. package/fesm2022/loomui-ng-ui-marker.mjs.map +1 -0
  104. package/fesm2022/loomui-ng-ui-menubar.mjs +1523 -0
  105. package/fesm2022/loomui-ng-ui-menubar.mjs.map +1 -0
  106. package/fesm2022/loomui-ng-ui-message-scroller.mjs +519 -0
  107. package/fesm2022/loomui-ng-ui-message-scroller.mjs.map +1 -0
  108. package/fesm2022/loomui-ng-ui-message.mjs +408 -0
  109. package/fesm2022/loomui-ng-ui-message.mjs.map +1 -0
  110. package/fesm2022/loomui-ng-ui-native-select.mjs +389 -0
  111. package/fesm2022/loomui-ng-ui-native-select.mjs.map +1 -0
  112. package/fesm2022/loomui-ng-ui-navigation-menu.mjs +609 -0
  113. package/fesm2022/loomui-ng-ui-navigation-menu.mjs.map +1 -0
  114. package/fesm2022/loomui-ng-ui-pagination.mjs +611 -0
  115. package/fesm2022/loomui-ng-ui-pagination.mjs.map +1 -0
  116. package/fesm2022/loomui-ng-ui-popover.mjs +358 -0
  117. package/fesm2022/loomui-ng-ui-popover.mjs.map +1 -0
  118. package/fesm2022/loomui-ng-ui-progress.mjs +159 -0
  119. package/fesm2022/loomui-ng-ui-progress.mjs.map +1 -0
  120. package/fesm2022/loomui-ng-ui-questionnaire.mjs +1012 -0
  121. package/fesm2022/loomui-ng-ui-questionnaire.mjs.map +1 -0
  122. package/fesm2022/loomui-ng-ui-radio-group.mjs +399 -0
  123. package/fesm2022/loomui-ng-ui-radio-group.mjs.map +1 -0
  124. package/fesm2022/loomui-ng-ui-resizable.mjs +518 -0
  125. package/fesm2022/loomui-ng-ui-resizable.mjs.map +1 -0
  126. package/fesm2022/loomui-ng-ui-scroll-area.mjs +135 -0
  127. package/fesm2022/loomui-ng-ui-scroll-area.mjs.map +1 -0
  128. package/fesm2022/loomui-ng-ui-select.mjs +863 -0
  129. package/fesm2022/loomui-ng-ui-select.mjs.map +1 -0
  130. package/fesm2022/loomui-ng-ui-separator.mjs +114 -0
  131. package/fesm2022/loomui-ng-ui-separator.mjs.map +1 -0
  132. package/fesm2022/loomui-ng-ui-sheet.mjs +530 -0
  133. package/fesm2022/loomui-ng-ui-sheet.mjs.map +1 -0
  134. package/fesm2022/loomui-ng-ui-sidebar.mjs +1918 -0
  135. package/fesm2022/loomui-ng-ui-sidebar.mjs.map +1 -0
  136. package/fesm2022/loomui-ng-ui-skeleton.mjs +69 -0
  137. package/fesm2022/loomui-ng-ui-skeleton.mjs.map +1 -0
  138. package/fesm2022/loomui-ng-ui-slider.mjs +390 -0
  139. package/fesm2022/loomui-ng-ui-slider.mjs.map +1 -0
  140. package/fesm2022/loomui-ng-ui-spinner.mjs +85 -0
  141. package/fesm2022/loomui-ng-ui-spinner.mjs.map +1 -0
  142. package/fesm2022/loomui-ng-ui-switch.mjs +212 -0
  143. package/fesm2022/loomui-ng-ui-switch.mjs.map +1 -0
  144. package/fesm2022/loomui-ng-ui-table.mjs +559 -0
  145. package/fesm2022/loomui-ng-ui-table.mjs.map +1 -0
  146. package/fesm2022/loomui-ng-ui-tabs.mjs +544 -0
  147. package/fesm2022/loomui-ng-ui-tabs.mjs.map +1 -0
  148. package/fesm2022/loomui-ng-ui-textarea.mjs +206 -0
  149. package/fesm2022/loomui-ng-ui-textarea.mjs.map +1 -0
  150. package/fesm2022/loomui-ng-ui-toast.mjs +432 -0
  151. package/fesm2022/loomui-ng-ui-toast.mjs.map +1 -0
  152. package/fesm2022/loomui-ng-ui-toggle-group.mjs +477 -0
  153. package/fesm2022/loomui-ng-ui-toggle-group.mjs.map +1 -0
  154. package/fesm2022/loomui-ng-ui-toggle.mjs +219 -0
  155. package/fesm2022/loomui-ng-ui-toggle.mjs.map +1 -0
  156. package/fesm2022/loomui-ng-ui-tooltip.mjs +240 -0
  157. package/fesm2022/loomui-ng-ui-tooltip.mjs.map +1 -0
  158. package/fesm2022/loomui-ng-ui-typography.mjs +129 -0
  159. package/fesm2022/loomui-ng-ui-typography.mjs.map +1 -0
  160. package/fesm2022/loomui-ng-ui-utils.mjs +1533 -0
  161. package/fesm2022/loomui-ng-ui-utils.mjs.map +1 -0
  162. package/fesm2022/loomui-ng-ui.mjs +4 -0
  163. package/fesm2022/loomui-ng-ui.mjs.map +1 -0
  164. package/field/README.md +43 -0
  165. package/hover-card/README.md +31 -0
  166. package/icon/README.md +42 -0
  167. package/input/README.md +26 -0
  168. package/input-group/README.md +40 -0
  169. package/input-otp/README.md +35 -0
  170. package/item/README.md +33 -0
  171. package/kbd/README.md +21 -0
  172. package/label/README.md +24 -0
  173. package/marker/README.md +24 -0
  174. package/menubar/README.md +40 -0
  175. package/message/README.md +32 -0
  176. package/message-scroller/README.md +40 -0
  177. package/native-select/README.md +26 -0
  178. package/navigation-menu/README.md +39 -0
  179. package/package.json +325 -3
  180. package/pagination/README.md +37 -0
  181. package/popover/README.md +37 -0
  182. package/progress/README.md +25 -0
  183. package/questionnaire/README.md +52 -0
  184. package/radio-group/README.md +33 -0
  185. package/resizable/README.md +37 -0
  186. package/scroll-area/README.md +25 -0
  187. package/select/README.md +45 -0
  188. package/separator/README.md +28 -0
  189. package/sheet/README.md +38 -0
  190. package/sidebar/README.md +60 -0
  191. package/skeleton/README.md +21 -0
  192. package/slider/README.md +29 -0
  193. package/spinner/README.md +15 -0
  194. package/styles/loomui.css +330 -0
  195. package/switch/README.md +29 -0
  196. package/table/README.md +31 -0
  197. package/tabs/README.md +42 -0
  198. package/textarea/README.md +28 -0
  199. package/toast/README.md +27 -0
  200. package/toggle/README.md +27 -0
  201. package/toggle-group/README.md +37 -0
  202. package/tooltip/README.md +31 -0
  203. package/types/loomui-ng-ui-accordion.d.ts +141 -0
  204. package/types/loomui-ng-ui-alert-dialog.d.ts +175 -0
  205. package/types/loomui-ng-ui-alert.d.ts +77 -0
  206. package/types/loomui-ng-ui-aspect-ratio.d.ts +31 -0
  207. package/types/loomui-ng-ui-attachment.d.ts +192 -0
  208. package/types/loomui-ng-ui-avatar.d.ts +147 -0
  209. package/types/loomui-ng-ui-badge.d.ts +32 -0
  210. package/types/loomui-ng-ui-breadcrumb.d.ts +118 -0
  211. package/types/loomui-ng-ui-bubble.d.ts +100 -0
  212. package/types/loomui-ng-ui-button-group.d.ts +51 -0
  213. package/types/loomui-ng-ui-button.d.ts +57 -0
  214. package/types/loomui-ng-ui-calendar.d.ts +171 -0
  215. package/types/loomui-ng-ui-card.d.ts +123 -0
  216. package/types/loomui-ng-ui-carousel.d.ts +140 -0
  217. package/types/loomui-ng-ui-chart.d.ts +95 -0
  218. package/types/loomui-ng-ui-checkbox.d.ts +62 -0
  219. package/types/loomui-ng-ui-collapsible.d.ts +74 -0
  220. package/types/loomui-ng-ui-combobox.d.ts +229 -0
  221. package/types/loomui-ng-ui-command.d.ts +231 -0
  222. package/types/loomui-ng-ui-context-menu.d.ts +288 -0
  223. package/types/loomui-ng-ui-data-table.d.ts +111 -0
  224. package/types/loomui-ng-ui-date-picker.d.ts +63 -0
  225. package/types/loomui-ng-ui-dialog.d.ts +127 -0
  226. package/types/loomui-ng-ui-direction.d.ts +42 -0
  227. package/types/loomui-ng-ui-drawer.d.ts +149 -0
  228. package/types/loomui-ng-ui-dropdown-menu.d.ts +258 -0
  229. package/types/loomui-ng-ui-empty.d.ts +109 -0
  230. package/types/loomui-ng-ui-field.d.ts +169 -0
  231. package/types/loomui-ng-ui-hover-card.d.ts +62 -0
  232. package/types/loomui-ng-ui-icon.d.ts +156 -0
  233. package/types/loomui-ng-ui-input-group.d.ts +130 -0
  234. package/types/loomui-ng-ui-input-otp.d.ts +149 -0
  235. package/types/loomui-ng-ui-input.d.ts +89 -0
  236. package/types/loomui-ng-ui-item.d.ts +157 -0
  237. package/types/loomui-ng-ui-kbd.d.ts +36 -0
  238. package/types/loomui-ng-ui-label.d.ts +19 -0
  239. package/types/loomui-ng-ui-marker.d.ts +61 -0
  240. package/types/loomui-ng-ui-menubar.d.ts +321 -0
  241. package/types/loomui-ng-ui-message-scroller.d.ts +138 -0
  242. package/types/loomui-ng-ui-message.d.ts +109 -0
  243. package/types/loomui-ng-ui-native-select.d.ts +84 -0
  244. package/types/loomui-ng-ui-navigation-menu.d.ts +160 -0
  245. package/types/loomui-ng-ui-pagination.d.ts +130 -0
  246. package/types/loomui-ng-ui-popover.d.ts +90 -0
  247. package/types/loomui-ng-ui-progress.d.ts +39 -0
  248. package/types/loomui-ng-ui-questionnaire.d.ts +274 -0
  249. package/types/loomui-ng-ui-radio-group.d.ts +109 -0
  250. package/types/loomui-ng-ui-resizable.d.ts +121 -0
  251. package/types/loomui-ng-ui-scroll-area.d.ts +44 -0
  252. package/types/loomui-ng-ui-select.d.ts +204 -0
  253. package/types/loomui-ng-ui-separator.d.ts +35 -0
  254. package/types/loomui-ng-ui-sheet.d.ts +124 -0
  255. package/types/loomui-ng-ui-sidebar.d.ts +485 -0
  256. package/types/loomui-ng-ui-skeleton.d.ts +20 -0
  257. package/types/loomui-ng-ui-slider.d.ts +103 -0
  258. package/types/loomui-ng-ui-spinner.d.ts +19 -0
  259. package/types/loomui-ng-ui-switch.d.ts +56 -0
  260. package/types/loomui-ng-ui-table.d.ts +148 -0
  261. package/types/loomui-ng-ui-tabs.d.ts +148 -0
  262. package/types/loomui-ng-ui-textarea.d.ts +52 -0
  263. package/types/loomui-ng-ui-toast.d.ts +97 -0
  264. package/types/loomui-ng-ui-toggle-group.d.ts +138 -0
  265. package/types/loomui-ng-ui-toggle.d.ts +63 -0
  266. package/types/loomui-ng-ui-tooltip.d.ts +63 -0
  267. package/types/loomui-ng-ui-typography.d.ts +42 -0
  268. package/types/loomui-ng-ui-utils.d.ts +392 -0
  269. package/types/loomui-ng-ui.d.ts +5 -0
  270. package/typography/README.md +29 -0
@@ -0,0 +1,498 @@
1
+ import * as i0 from "@angular/core";
2
+ import { ChangeDetectionStrategy, Component, Directive, booleanAttribute, computed, inject, input, numberAttribute, signal } from "@angular/core";
3
+ import { DomSanitizer } from "@angular/platform-browser";
4
+ import { ArrowDown, ArrowLeft, ArrowRight, ArrowUp, ArrowUpDown, Calendar, Check, ChevronDown, ChevronLeft, ChevronRight, ChevronUp, ChevronsUpDown, Circle, CircleAlert, CircleCheck, Ellipsis, GripVertical, Info, LoaderCircle, Minus, OctagonX, PanelLeft, Search, SlidersHorizontal, TriangleAlert, X } from "lucide";
5
+ import { cn } from "@loomui-ng/ui/utils";
6
+ function toKebab(name) {
7
+ return name.replace(/([a-z0-9])([A-Z])/g, "$1-$2").replace(/([A-Z])([A-Z][a-z])/g, "$1-$2").replace(/([a-zA-Z])([0-9])/g, "$1-$2").toLowerCase();
8
+ }
9
+ function toPascal(name) {
10
+ return name.split("-").map((s) => s ? s[0].toUpperCase() + s.slice(1) : s).join("");
11
+ }
12
+ const registry = signal({}, ...ngDevMode ? [{ debugName: "registry" }] : /* istanbul ignore next */ []);
13
+ function registerIcons(icons) {
14
+ const next = { ...registry() };
15
+ for (const [k, v] of Object.entries(icons)) next[toKebab(k)] = v;
16
+ registry.set(next);
17
+ }
18
+ const LIB_ICONS = {
19
+ ArrowDown,
20
+ ArrowLeft,
21
+ ArrowRight,
22
+ ArrowUp,
23
+ ArrowUpDown,
24
+ Calendar,
25
+ Check,
26
+ ChevronDown,
27
+ ChevronLeft,
28
+ ChevronRight,
29
+ ChevronUp,
30
+ ChevronsUpDown,
31
+ Circle,
32
+ CircleAlert,
33
+ CircleCheck,
34
+ Ellipsis,
35
+ GripVertical,
36
+ Info,
37
+ LoaderCircle,
38
+ Minus,
39
+ OctagonX,
40
+ PanelLeft,
41
+ Search,
42
+ SlidersHorizontal,
43
+ TriangleAlert,
44
+ X
45
+ };
46
+ registerIcons(LIB_ICONS);
47
+ const esc = (v) => v.replace(/&/g, "&amp;").replace(/"/g, "&quot;").replace(/</g, "&lt;");
48
+ function iconChildren(node) {
49
+ return node.map(([tag, attrs]) => `<${tag}${Object.entries(attrs).filter(([k, v]) => k !== "key" && v !== void 0).map(([k, v]) => ` ${k}="${esc(String(v))}"`).join("")}/>`).join("");
50
+ }
51
+ function iconToSvg(node, opts = {}) {
52
+ const { size = 24, strokeWidth = 2, color = "currentColor" } = opts;
53
+ return `<svg xmlns="http://www.w3.org/2000/svg" width="${size}" height="${size}" viewBox="0 0 24 24" fill="none" stroke="${color}" stroke-width="${strokeWidth}" stroke-linecap="round" stroke-linejoin="round">${iconChildren(node)}</svg>`;
54
+ }
55
+ var UiIcon = class UiIcon {
56
+ sanitizer = inject(DomSanitizer);
57
+ icon = input(null, ...ngDevMode ? [{ debugName: "icon" }] : /* istanbul ignore next */ []);
58
+ name = input("", ...ngDevMode ? [{ debugName: "name" }] : /* istanbul ignore next */ []);
59
+ size = input(void 0, {
60
+ ...ngDevMode ? { debugName: "size" } : /* istanbul ignore next */ {},
61
+ transform: (v) => v === void 0 || v === null || v === "" ? void 0 : numberAttribute(v)
62
+ });
63
+ strokeWidth = input(2, {
64
+ ...ngDevMode ? { debugName: "strokeWidth" } : /* istanbul ignore next */ {},
65
+ transform: numberAttribute
66
+ });
67
+ absoluteStrokeWidth = input(false, {
68
+ ...ngDevMode ? { debugName: "absoluteStrokeWidth" } : /* istanbul ignore next */ {},
69
+ transform: booleanAttribute
70
+ });
71
+ color = input("currentColor", ...ngDevMode ? [{ debugName: "color" }] : /* istanbul ignore next */ []);
72
+ label = input("", ...ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []);
73
+ userClass = input("", {
74
+ ...ngDevMode ? { debugName: "userClass" } : /* istanbul ignore next */ {},
75
+ alias: "class"
76
+ });
77
+ node = computed(() => this.icon() ?? registry()[toKebab(this.name())] ?? null, ...ngDevMode ? [{ debugName: "node" }] : /* istanbul ignore next */ []);
78
+ sw = computed(() => this.absoluteStrokeWidth() ? this.strokeWidth() * 24 / (this.size() ?? 16) : this.strokeWidth(), ...ngDevMode ? [{ debugName: "sw" }] : /* istanbul ignore next */ []);
79
+ html = computed(() => this.sanitizer.bypassSecurityTrustHtml(this.node() ? iconChildren(this.node()) : ""), ...ngDevMode ? [{ debugName: "html" }] : /* istanbul ignore next */ []);
80
+ classes = computed(() => cn("inline-flex shrink-0 items-center justify-center", this.size() === void 0 && "size-4", this.userClass()), ...ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []);
81
+ static ɵfac = i0.ɵɵngDeclareFactory({
82
+ minVersion: "12.0.0",
83
+ version: "22.2.2",
84
+ ngImport: i0,
85
+ type: UiIcon,
86
+ deps: [],
87
+ target: i0.ɵɵFactoryTarget.Component
88
+ });
89
+ static ɵcmp = i0.ɵɵngDeclareComponent({
90
+ minVersion: "17.1.0",
91
+ version: "22.2.2",
92
+ type: UiIcon,
93
+ isStandalone: true,
94
+ selector: "ui-icon",
95
+ inputs: {
96
+ icon: {
97
+ classPropertyName: "icon",
98
+ publicName: "icon",
99
+ isSignal: true,
100
+ isRequired: false,
101
+ transformFunction: null
102
+ },
103
+ name: {
104
+ classPropertyName: "name",
105
+ publicName: "name",
106
+ isSignal: true,
107
+ isRequired: false,
108
+ transformFunction: null
109
+ },
110
+ size: {
111
+ classPropertyName: "size",
112
+ publicName: "size",
113
+ isSignal: true,
114
+ isRequired: false,
115
+ transformFunction: null
116
+ },
117
+ strokeWidth: {
118
+ classPropertyName: "strokeWidth",
119
+ publicName: "strokeWidth",
120
+ isSignal: true,
121
+ isRequired: false,
122
+ transformFunction: null
123
+ },
124
+ absoluteStrokeWidth: {
125
+ classPropertyName: "absoluteStrokeWidth",
126
+ publicName: "absoluteStrokeWidth",
127
+ isSignal: true,
128
+ isRequired: false,
129
+ transformFunction: null
130
+ },
131
+ color: {
132
+ classPropertyName: "color",
133
+ publicName: "color",
134
+ isSignal: true,
135
+ isRequired: false,
136
+ transformFunction: null
137
+ },
138
+ label: {
139
+ classPropertyName: "label",
140
+ publicName: "label",
141
+ isSignal: true,
142
+ isRequired: false,
143
+ transformFunction: null
144
+ },
145
+ userClass: {
146
+ classPropertyName: "userClass",
147
+ publicName: "class",
148
+ isSignal: true,
149
+ isRequired: false,
150
+ transformFunction: null
151
+ }
152
+ },
153
+ host: {
154
+ attributes: { "data-slot": "icon" },
155
+ properties: {
156
+ "attr.aria-hidden": "label() ? null : \"true\"",
157
+ "attr.role": "label() ? \"img\" : null",
158
+ "attr.aria-label": "label() || null",
159
+ "style.width.px": "size()",
160
+ "style.height.px": "size()",
161
+ "attr.class": "classes()"
162
+ }
163
+ },
164
+ ngImport: i0,
165
+ template: `<svg
166
+ class="size-full"
167
+ viewBox="0 0 24 24"
168
+ fill="none"
169
+ stroke-linecap="round"
170
+ stroke-linejoin="round"
171
+ [attr.stroke]="color()"
172
+ [attr.stroke-width]="sw()"
173
+ [innerHTML]="html()"
174
+ ></svg>`,
175
+ isInline: true,
176
+ changeDetection: i0.ChangeDetectionStrategy.OnPush
177
+ });
178
+ };
179
+ i0.ɵɵngDeclareClassMetadata({
180
+ minVersion: "12.0.0",
181
+ version: "22.2.2",
182
+ ngImport: i0,
183
+ type: UiIcon,
184
+ decorators: [{
185
+ type: Component,
186
+ args: [{
187
+ selector: "ui-icon",
188
+ changeDetection: ChangeDetectionStrategy.OnPush,
189
+ host: {
190
+ "data-slot": "icon",
191
+ "[attr.aria-hidden]": "label() ? null : \"true\"",
192
+ "[attr.role]": "label() ? \"img\" : null",
193
+ "[attr.aria-label]": "label() || null",
194
+ "[style.width.px]": "size()",
195
+ "[style.height.px]": "size()",
196
+ "[attr.class]": "classes()"
197
+ },
198
+ template: `<svg
199
+ class="size-full"
200
+ viewBox="0 0 24 24"
201
+ fill="none"
202
+ stroke-linecap="round"
203
+ stroke-linejoin="round"
204
+ [attr.stroke]="color()"
205
+ [attr.stroke-width]="sw()"
206
+ [innerHTML]="html()"
207
+ ></svg>`
208
+ }]
209
+ }],
210
+ propDecorators: {
211
+ icon: [{
212
+ type: i0.Input,
213
+ args: [{
214
+ isSignal: true,
215
+ alias: "icon",
216
+ required: false
217
+ }]
218
+ }],
219
+ name: [{
220
+ type: i0.Input,
221
+ args: [{
222
+ isSignal: true,
223
+ alias: "name",
224
+ required: false
225
+ }]
226
+ }],
227
+ size: [{
228
+ type: i0.Input,
229
+ args: [{
230
+ isSignal: true,
231
+ alias: "size",
232
+ required: false
233
+ }]
234
+ }],
235
+ strokeWidth: [{
236
+ type: i0.Input,
237
+ args: [{
238
+ isSignal: true,
239
+ alias: "strokeWidth",
240
+ required: false
241
+ }]
242
+ }],
243
+ absoluteStrokeWidth: [{
244
+ type: i0.Input,
245
+ args: [{
246
+ isSignal: true,
247
+ alias: "absoluteStrokeWidth",
248
+ required: false
249
+ }]
250
+ }],
251
+ color: [{
252
+ type: i0.Input,
253
+ args: [{
254
+ isSignal: true,
255
+ alias: "color",
256
+ required: false
257
+ }]
258
+ }],
259
+ label: [{
260
+ type: i0.Input,
261
+ args: [{
262
+ isSignal: true,
263
+ alias: "label",
264
+ required: false
265
+ }]
266
+ }],
267
+ userClass: [{
268
+ type: i0.Input,
269
+ args: [{
270
+ isSignal: true,
271
+ alias: "class",
272
+ required: false
273
+ }]
274
+ }]
275
+ }
276
+ });
277
+ var UiIconSvg = class UiIconSvg {
278
+ sanitizer = inject(DomSanitizer);
279
+ name = input("", {
280
+ ...ngDevMode ? { debugName: "name" } : /* istanbul ignore next */ {},
281
+ alias: "uiIcon"
282
+ });
283
+ icon = input(null, ...ngDevMode ? [{ debugName: "icon" }] : /* istanbul ignore next */ []);
284
+ size = input(void 0, {
285
+ ...ngDevMode ? { debugName: "size" } : /* istanbul ignore next */ {},
286
+ transform: (v) => v === void 0 || v === null || v === "" ? void 0 : numberAttribute(v)
287
+ });
288
+ strokeWidth = input(2, {
289
+ ...ngDevMode ? { debugName: "strokeWidth" } : /* istanbul ignore next */ {},
290
+ transform: numberAttribute
291
+ });
292
+ absoluteStrokeWidth = input(false, {
293
+ ...ngDevMode ? { debugName: "absoluteStrokeWidth" } : /* istanbul ignore next */ {},
294
+ transform: booleanAttribute
295
+ });
296
+ color = input("currentColor", ...ngDevMode ? [{ debugName: "color" }] : /* istanbul ignore next */ []);
297
+ label = input("", ...ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []);
298
+ userClass = input("", {
299
+ ...ngDevMode ? { debugName: "userClass" } : /* istanbul ignore next */ {},
300
+ alias: "class"
301
+ });
302
+ node = computed(() => this.icon() ?? registry()[toKebab(this.name())] ?? null, ...ngDevMode ? [{ debugName: "node" }] : /* istanbul ignore next */ []);
303
+ sw = computed(() => this.absoluteStrokeWidth() ? this.strokeWidth() * 24 / (this.size() ?? 16) : this.strokeWidth(), ...ngDevMode ? [{ debugName: "sw" }] : /* istanbul ignore next */ []);
304
+ html = computed(() => this.sanitizer.bypassSecurityTrustHtml(this.node() ? iconChildren(this.node()) : ""), ...ngDevMode ? [{ debugName: "html" }] : /* istanbul ignore next */ []);
305
+ classes = computed(() => cn(this.size() === void 0 && "size-4", this.userClass()) || null, ...ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []);
306
+ static ɵfac = i0.ɵɵngDeclareFactory({
307
+ minVersion: "12.0.0",
308
+ version: "22.2.2",
309
+ ngImport: i0,
310
+ type: UiIconSvg,
311
+ deps: [],
312
+ target: i0.ɵɵFactoryTarget.Directive
313
+ });
314
+ static ɵdir = i0.ɵɵngDeclareDirective({
315
+ minVersion: "17.1.0",
316
+ version: "22.2.2",
317
+ type: UiIconSvg,
318
+ isStandalone: true,
319
+ selector: "svg[uiIcon]",
320
+ inputs: {
321
+ name: {
322
+ classPropertyName: "name",
323
+ publicName: "uiIcon",
324
+ isSignal: true,
325
+ isRequired: false,
326
+ transformFunction: null
327
+ },
328
+ icon: {
329
+ classPropertyName: "icon",
330
+ publicName: "icon",
331
+ isSignal: true,
332
+ isRequired: false,
333
+ transformFunction: null
334
+ },
335
+ size: {
336
+ classPropertyName: "size",
337
+ publicName: "size",
338
+ isSignal: true,
339
+ isRequired: false,
340
+ transformFunction: null
341
+ },
342
+ strokeWidth: {
343
+ classPropertyName: "strokeWidth",
344
+ publicName: "strokeWidth",
345
+ isSignal: true,
346
+ isRequired: false,
347
+ transformFunction: null
348
+ },
349
+ absoluteStrokeWidth: {
350
+ classPropertyName: "absoluteStrokeWidth",
351
+ publicName: "absoluteStrokeWidth",
352
+ isSignal: true,
353
+ isRequired: false,
354
+ transformFunction: null
355
+ },
356
+ color: {
357
+ classPropertyName: "color",
358
+ publicName: "color",
359
+ isSignal: true,
360
+ isRequired: false,
361
+ transformFunction: null
362
+ },
363
+ label: {
364
+ classPropertyName: "label",
365
+ publicName: "label",
366
+ isSignal: true,
367
+ isRequired: false,
368
+ transformFunction: null
369
+ },
370
+ userClass: {
371
+ classPropertyName: "userClass",
372
+ publicName: "class",
373
+ isSignal: true,
374
+ isRequired: false,
375
+ transformFunction: null
376
+ }
377
+ },
378
+ host: {
379
+ attributes: {
380
+ "data-slot": "icon",
381
+ "viewBox": "0 0 24 24",
382
+ "fill": "none",
383
+ "stroke-linecap": "round",
384
+ "stroke-linejoin": "round"
385
+ },
386
+ properties: {
387
+ "attr.stroke": "color()",
388
+ "attr.stroke-width": "sw()",
389
+ "attr.width": "size()",
390
+ "attr.height": "size()",
391
+ "attr.aria-hidden": "label() ? null : \"true\"",
392
+ "attr.role": "label() ? \"img\" : null",
393
+ "attr.aria-label": "label() || null",
394
+ "innerHTML": "html()",
395
+ "attr.class": "classes()"
396
+ }
397
+ },
398
+ ngImport: i0
399
+ });
400
+ };
401
+ i0.ɵɵngDeclareClassMetadata({
402
+ minVersion: "12.0.0",
403
+ version: "22.2.2",
404
+ ngImport: i0,
405
+ type: UiIconSvg,
406
+ decorators: [{
407
+ type: Directive,
408
+ args: [{
409
+ selector: "svg[uiIcon]",
410
+ host: {
411
+ "data-slot": "icon",
412
+ viewBox: "0 0 24 24",
413
+ fill: "none",
414
+ "stroke-linecap": "round",
415
+ "stroke-linejoin": "round",
416
+ "[attr.stroke]": "color()",
417
+ "[attr.stroke-width]": "sw()",
418
+ "[attr.width]": "size()",
419
+ "[attr.height]": "size()",
420
+ "[attr.aria-hidden]": "label() ? null : \"true\"",
421
+ "[attr.role]": "label() ? \"img\" : null",
422
+ "[attr.aria-label]": "label() || null",
423
+ "[innerHTML]": "html()",
424
+ "[attr.class]": "classes()"
425
+ }
426
+ }]
427
+ }],
428
+ propDecorators: {
429
+ name: [{
430
+ type: i0.Input,
431
+ args: [{
432
+ isSignal: true,
433
+ alias: "uiIcon",
434
+ required: false
435
+ }]
436
+ }],
437
+ icon: [{
438
+ type: i0.Input,
439
+ args: [{
440
+ isSignal: true,
441
+ alias: "icon",
442
+ required: false
443
+ }]
444
+ }],
445
+ size: [{
446
+ type: i0.Input,
447
+ args: [{
448
+ isSignal: true,
449
+ alias: "size",
450
+ required: false
451
+ }]
452
+ }],
453
+ strokeWidth: [{
454
+ type: i0.Input,
455
+ args: [{
456
+ isSignal: true,
457
+ alias: "strokeWidth",
458
+ required: false
459
+ }]
460
+ }],
461
+ absoluteStrokeWidth: [{
462
+ type: i0.Input,
463
+ args: [{
464
+ isSignal: true,
465
+ alias: "absoluteStrokeWidth",
466
+ required: false
467
+ }]
468
+ }],
469
+ color: [{
470
+ type: i0.Input,
471
+ args: [{
472
+ isSignal: true,
473
+ alias: "color",
474
+ required: false
475
+ }]
476
+ }],
477
+ label: [{
478
+ type: i0.Input,
479
+ args: [{
480
+ isSignal: true,
481
+ alias: "label",
482
+ required: false
483
+ }]
484
+ }],
485
+ userClass: [{
486
+ type: i0.Input,
487
+ args: [{
488
+ isSignal: true,
489
+ alias: "class",
490
+ required: false
491
+ }]
492
+ }]
493
+ }
494
+ });
495
+ const UI_ICON = [UiIcon, UiIconSvg];
496
+ export { LIB_ICONS, UI_ICON, UiIcon, UiIconSvg, iconChildren, iconToSvg, registerIcons, toKebab, toPascal };
497
+
498
+ //# sourceMappingURL=loomui-ng-ui-icon.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"loomui-ng-ui-icon.mjs","names":[],"sources":["../../../libs/ui/icon/icon.ts"],"sourcesContent":["import { booleanAttribute, ChangeDetectionStrategy, Component, computed, Directive, inject, input, numberAttribute, signal } from '@angular/core';\nimport { DomSanitizer, type SafeHtml } from '@angular/platform-browser';\nimport {\n ArrowDown,\n ArrowLeft,\n ArrowRight,\n ArrowUp,\n ArrowUpDown,\n Calendar,\n Check,\n ChevronDown,\n ChevronLeft,\n ChevronRight,\n ChevronUp,\n ChevronsUpDown,\n Circle,\n CircleAlert,\n CircleCheck,\n Ellipsis,\n GripVertical,\n Info,\n LoaderCircle,\n Minus,\n OctagonX,\n PanelLeft,\n Search,\n SlidersHorizontal,\n TriangleAlert,\n X,\n} from 'lucide';\nimport { cn } from '@loomui-ng/ui/utils';\n\n/** Lucide's icon node format: a list of [tag, attributes] pairs describing the SVG children. */\nexport type IconNode = [tag: string, attrs: Record<string, string | number | undefined>][];\n\n/** `ChevronDown` / `chevron-down` → `chevron-down` (Lucide's canonical name). */\nexport function toKebab(name: string): string {\n return name\n .replace(/([a-z0-9])([A-Z])/g, '$1-$2')\n .replace(/([A-Z])([A-Z][a-z])/g, '$1-$2')\n .replace(/([a-zA-Z])([0-9])/g, '$1-$2')\n .toLowerCase();\n}\n\n/** `chevron-down` → `ChevronDown` (the export name in the `lucide` package). */\nexport function toPascal(name: string): string {\n return name\n .split('-')\n .map((s) => (s ? s[0].toUpperCase() + s.slice(1) : s))\n .join('');\n}\n\nconst registry = signal<Record<string, IconNode>>({});\n\n/**\n * Registers icons so they can be used by name: `registerIcons({ Search, Moon })` then `<ui-icon name=\"search\" />`.\n * Keys may be PascalCase export names or kebab-case names. Importing only the icons you use keeps bundles small.\n */\nexport function registerIcons(icons: Record<string, IconNode>): void {\n const next = { ...registry() };\n for (const [k, v] of Object.entries(icons)) next[toKebab(k)] = v;\n registry.set(next);\n}\n\n/** Icons the Loom UI components render themselves (chevrons, check, x, …). Registered on first import. */\nexport const LIB_ICONS: Record<string, IconNode> = {\n ArrowDown,\n ArrowLeft,\n ArrowRight,\n ArrowUp,\n ArrowUpDown,\n Calendar,\n Check,\n ChevronDown,\n ChevronLeft,\n ChevronRight,\n ChevronUp,\n ChevronsUpDown,\n Circle,\n CircleAlert,\n CircleCheck,\n Ellipsis,\n GripVertical,\n Info,\n LoaderCircle,\n Minus,\n OctagonX,\n PanelLeft,\n Search,\n SlidersHorizontal,\n TriangleAlert,\n X,\n};\nregisterIcons(LIB_ICONS);\n\nconst esc = (v: string) => v.replace(/&/g, '&amp;').replace(/\"/g, '&quot;').replace(/</g, '&lt;');\n\n/** Serialises an icon node to the SVG children markup (all values escaped). */\nexport function iconChildren(node: IconNode): string {\n return node\n .map(([tag, attrs]) => `<${tag}${Object.entries(attrs).filter(([k, v]) => k !== 'key' && v !== undefined).map(([k, v]) => ` ${k}=\"${esc(String(v))}\"`).join('')}/>`)\n .join('');\n}\n\n/** A complete standalone `<svg>` string (what Lucide's own `lucide-static` files look like). */\nexport function iconToSvg(node: IconNode, opts: { size?: number; strokeWidth?: number; color?: string } = {}): string {\n const { size = 24, strokeWidth = 2, color = 'currentColor' } = opts;\n return `<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"${size}\" height=\"${size}\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"${color}\" stroke-width=\"${strokeWidth}\" stroke-linecap=\"round\" stroke-linejoin=\"round\">${iconChildren(node)}</svg>`;\n}\n\n/**\n * Lucide icon.\n * <ui-icon name=\"search\" /> — by name (see registerIcons)\n * <ui-icon [icon]=\"Search\" size=\"20\" /> — by node (`import { Search } from 'lucide'`, tree-shakeable)\n * Defaults to 16px (`size-4`, the shadcn convention); set `size`, or a size class such as class=\"size-6\".\n * Decorative by default (aria-hidden); pass `label` to expose it as an image.\n */\n@Component({\n selector: 'ui-icon',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n 'data-slot': 'icon',\n '[attr.aria-hidden]': 'label() ? null : \"true\"',\n '[attr.role]': 'label() ? \"img\" : null',\n '[attr.aria-label]': 'label() || null',\n '[style.width.px]': 'size()',\n '[style.height.px]': 'size()',\n '[attr.class]': 'classes()',\n },\n template: `<svg\n class=\"size-full\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n [attr.stroke]=\"color()\"\n [attr.stroke-width]=\"sw()\"\n [innerHTML]=\"html()\"\n ></svg>`,\n})\nexport class UiIcon {\n private readonly sanitizer = inject(DomSanitizer);\n /** An icon node (preferred; tree-shakeable). */\n readonly icon = input<IconNode | null | undefined>(null);\n /** A registered icon name (kebab or Pascal case). */\n readonly name = input<string>('');\n /** Pixel size; when omitted the icon is `size-4` (override with a class). */\n readonly size = input<number | undefined, unknown>(undefined, { transform: (v: unknown) => (v === undefined || v === null || v === '' ? undefined : numberAttribute(v)) });\n readonly strokeWidth = input(2, { transform: numberAttribute });\n /** Keeps the stroke the same pixel width regardless of size (Lucide's absoluteStrokeWidth). */\n readonly absoluteStrokeWidth = input(false, { transform: booleanAttribute });\n readonly color = input('currentColor');\n readonly label = input('');\n readonly userClass = input<string>('', { alias: 'class' });\n\n protected readonly node = computed<IconNode | null>(() => this.icon() ?? registry()[toKebab(this.name())] ?? null);\n protected readonly sw = computed(() => (this.absoluteStrokeWidth() ? (this.strokeWidth() * 24) / (this.size() ?? 16) : this.strokeWidth()));\n protected readonly html = computed<SafeHtml>(() => this.sanitizer.bypassSecurityTrustHtml(this.node() ? iconChildren(this.node()!) : ''));\n protected readonly classes = computed(() => cn('inline-flex shrink-0 items-center justify-center', this.size() === undefined && 'size-4', this.userClass()));\n}\n\n/**\n * Same icons rendered onto a real <svg> element, so parent selectors such as `[&>svg]:size-4` and `has-[>svg]` keep working:\n * <svg uiIcon=\"chevron-down\" class=\"size-4\"></svg> <svg uiIcon [icon]=\"Search\"></svg>\n * This is what the Loom UI components use internally.\n */\n@Directive({\n selector: 'svg[uiIcon]',\n host: {\n 'data-slot': 'icon',\n viewBox: '0 0 24 24',\n fill: 'none',\n 'stroke-linecap': 'round',\n 'stroke-linejoin': 'round',\n '[attr.stroke]': 'color()',\n '[attr.stroke-width]': 'sw()',\n '[attr.width]': 'size()',\n '[attr.height]': 'size()',\n '[attr.aria-hidden]': 'label() ? null : \"true\"',\n '[attr.role]': 'label() ? \"img\" : null',\n '[attr.aria-label]': 'label() || null',\n '[innerHTML]': 'html()',\n '[attr.class]': 'classes()',\n },\n})\nexport class UiIconSvg {\n private readonly sanitizer = inject(DomSanitizer);\n readonly name = input<string>('', { alias: 'uiIcon' });\n readonly icon = input<IconNode | null | undefined>(null);\n readonly size = input<number | undefined, unknown>(undefined, { transform: (v: unknown) => (v === undefined || v === null || v === '' ? undefined : numberAttribute(v)) });\n readonly strokeWidth = input(2, { transform: numberAttribute });\n readonly absoluteStrokeWidth = input(false, { transform: booleanAttribute });\n readonly color = input('currentColor');\n readonly label = input('');\n readonly userClass = input<string>('', { alias: 'class' });\n\n protected readonly node = computed<IconNode | null>(() => this.icon() ?? registry()[toKebab(this.name())] ?? null);\n protected readonly sw = computed(() => (this.absoluteStrokeWidth() ? (this.strokeWidth() * 24) / (this.size() ?? 16) : this.strokeWidth()));\n protected readonly html = computed<SafeHtml>(() => this.sanitizer.bypassSecurityTrustHtml(this.node() ? iconChildren(this.node()!) : ''));\n protected readonly classes = computed(() => cn(this.size() === undefined && 'size-4', this.userClass()) || null);\n}\n\nexport const UI_ICON = [UiIcon, UiIconSvg] as const;\n"],"mappings":";;;;;AAoCA,SAAgB,QAAQ,MAAY;CAClC,OAAO,KACJ,QAAQ,sBAAsB,OAAO,CAAC,CACtC,QAAQ,wBAAwB,OAAO,CAAC,CACxC,QAAQ,sBAAsB,OAAO,CAAC,CACtC,YAAW;AAChB;AAGA,SAAgB,SAAS,MAAY;CACnC,OAAO,KACJ,MAAM,GAAG,CAAC,CACV,KAAK,MAAO,IAAI,EAAE,EAAE,CAAC,YAAW,IAAK,EAAE,MAAM,CAAC,IAAI,CAAE,CAAC,CACrD,KAAK,EAAE;AACZ;AAEA,MAAM,WAAW,OAAiC,CAAA,GAAG,GAAA,YAAA,CAAA,EAAA,WAAA,WAAA,C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