@design-factory/angular 21.1.0-next.1 → 22.0.0-next.0

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 (331) hide show
  1. package/.ai/docs/components/accordion/accessibility.md +45 -0
  2. package/.ai/docs/components/accordion/api.md +279 -0
  3. package/.ai/docs/components/accordion/developer.md +43 -0
  4. package/.ai/docs/components/accordion/guidelines.md +99 -0
  5. package/.ai/docs/components/accordion/overview.md +17 -0
  6. package/.ai/docs/components/alert/accessibility.md +24 -0
  7. package/.ai/docs/components/alert/api.md +65 -0
  8. package/.ai/docs/components/alert/developer.md +63 -0
  9. package/.ai/docs/components/alert/guidelines.md +62 -0
  10. package/.ai/docs/components/alert/overview.md +12 -0
  11. package/.ai/docs/components/button/accessibility.md +25 -0
  12. package/.ai/docs/components/button/api.md +71 -0
  13. package/.ai/docs/components/button/developer.md +52 -0
  14. package/.ai/docs/components/button/guidelines.md +75 -0
  15. package/.ai/docs/components/button/overview.md +15 -0
  16. package/.ai/docs/components/buttongroup/api.md +16 -0
  17. package/.ai/docs/components/buttongroup/developer.md +32 -0
  18. package/.ai/docs/components/drawer/accessibility.md +15 -0
  19. package/.ai/docs/components/drawer/api.md +56 -0
  20. package/.ai/docs/components/drawer/developer.md +36 -0
  21. package/.ai/docs/components/drawer/examples.md +9 -0
  22. package/.ai/docs/components/drawer/guidelines.md +58 -0
  23. package/.ai/docs/components/drawer/overview.md +19 -0
  24. package/.ai/docs/components/dropdown/accessibility.md +27 -0
  25. package/.ai/docs/components/dropdown/api.md +85 -0
  26. package/.ai/docs/components/dropdown/developer.md +59 -0
  27. package/.ai/docs/components/dropdown/guidelines.md +80 -0
  28. package/.ai/docs/components/dropdown/overview.md +16 -0
  29. package/.ai/docs/components/sidenav/accessibility.md +48 -0
  30. package/.ai/docs/components/sidenav/api.md +110 -0
  31. package/.ai/docs/components/sidenav/developer.md +14 -0
  32. package/.ai/docs/components/sidenav/guidelines.md +83 -0
  33. package/.ai/docs/components/sidenav/overview.md +16 -0
  34. package/.ai/docs/components/tooltip/accessibility.md +11 -0
  35. package/.ai/docs/components/tooltip/api.md +39 -0
  36. package/.ai/docs/components/tooltip/developer.md +16 -0
  37. package/.ai/docs/components/tooltip/guidelines.md +84 -0
  38. package/.ai/docs/components/tooltip/overview.md +23 -0
  39. package/.ai/docs/components/topnav/accessibility.md +51 -0
  40. package/.ai/docs/components/topnav/api.md +190 -0
  41. package/.ai/docs/components/topnav/developer.md +43 -0
  42. package/.ai/docs/components/topnav/guidelines.md +121 -0
  43. package/.ai/docs/components/topnav/overview.md +17 -0
  44. package/.ai/docs/demos/accordion/addons-subtitle/accordion-addons-subtitle.html +75 -0
  45. package/.ai/docs/demos/accordion/addons-subtitle/accordion-addons-subtitle.ts +27 -0
  46. package/.ai/docs/demos/accordion/basic/accordion-basic.html +16 -0
  47. package/.ai/docs/demos/accordion/basic/accordion-basic.ts +14 -0
  48. package/.ai/docs/demos/accordion/close-others/accordion-close-others.html +16 -0
  49. package/.ai/docs/demos/accordion/close-others/accordion-close-others.ts +14 -0
  50. package/.ai/docs/demos/accordion/interactive/accordion-interactive.html +84 -0
  51. package/.ai/docs/demos/accordion/interactive/accordion-interactive.ts +30 -0
  52. package/.ai/docs/demos/accordion/interactive-addons-subtitle/accordion-interactive-addons-subtitle.html +126 -0
  53. package/.ai/docs/demos/accordion/interactive-addons-subtitle/accordion-interactive-addons-subtitle.ts +33 -0
  54. package/.ai/docs/demos/accordion/programmatic-control/accordion-programmatic-control.html +36 -0
  55. package/.ai/docs/demos/accordion/programmatic-control/accordion-programmatic-control.ts +15 -0
  56. package/.ai/docs/demos/accordion/selectable/accordion-selectable.html +16 -0
  57. package/.ai/docs/demos/accordion/selectable/accordion-selectable.ts +14 -0
  58. package/.ai/docs/demos/accordion/selectable-extended/accordion-selectable-extended.html +28 -0
  59. package/.ai/docs/demos/accordion/selectable-extended/accordion-selectable-extended.ts +80 -0
  60. package/.ai/docs/demos/accordion/separator/accordion-separator.html +16 -0
  61. package/.ai/docs/demos/accordion/separator/accordion-separator.ts +14 -0
  62. package/.ai/docs/demos/alert/banner/alert-banner.html +15 -0
  63. package/.ai/docs/demos/alert/banner/alert-banner.ts +16 -0
  64. package/.ai/docs/demos/alert/basic/alert-basic.html +6 -0
  65. package/.ai/docs/demos/alert/basic/alert-basic.ts +9 -0
  66. package/.ai/docs/demos/alert/card/alert-card.html +15 -0
  67. package/.ai/docs/demos/alert/card/alert-card.ts +9 -0
  68. package/.ai/docs/demos/alert/dismissal/alert-dismissal.html +5 -0
  69. package/.ai/docs/demos/alert/dismissal/alert-dismissal.ts +27 -0
  70. package/.ai/docs/demos/alert/expandable/alert-expandable.html +9 -0
  71. package/.ai/docs/demos/alert/expandable/alert-expandable.ts +11 -0
  72. package/.ai/docs/demos/button/basic/button-basic.html +4 -0
  73. package/.ai/docs/demos/button/basic/button-basic.ts +9 -0
  74. package/.ai/docs/demos/button/disabled/button-disabled.html +18 -0
  75. package/.ai/docs/demos/button/disabled/button-disabled.ts +12 -0
  76. package/.ai/docs/demos/button/icons/button-icons.html +17 -0
  77. package/.ai/docs/demos/button/icons/button-icons.ts +10 -0
  78. package/.ai/docs/demos/button/surfaces/button-surfaces.html +13 -0
  79. package/.ai/docs/demos/button/surfaces/button-surfaces.ts +9 -0
  80. package/.ai/docs/demos/button/variants/button-variants.html +49 -0
  81. package/.ai/docs/demos/button/variants/button-variants.ts +9 -0
  82. package/.ai/docs/demos/buttongroup/basic/buttongroup-basic.html +6 -0
  83. package/.ai/docs/demos/buttongroup/basic/buttongroup-basic.ts +10 -0
  84. package/.ai/docs/demos/buttongroup/disabled/buttongroup-disabled.html +6 -0
  85. package/.ai/docs/demos/buttongroup/disabled/buttongroup-disabled.ts +10 -0
  86. package/.ai/docs/demos/buttongroup/mirror/buttongroup-mirror.html +8 -0
  87. package/.ai/docs/demos/buttongroup/mirror/buttongroup-mirror.ts +10 -0
  88. package/.ai/docs/demos/buttongroup/orientation/buttongroup-orientation.html +19 -0
  89. package/.ai/docs/demos/buttongroup/orientation/buttongroup-orientation.ts +10 -0
  90. package/.ai/docs/demos/buttongroup/sizing/buttongroup-sizing.html +19 -0
  91. package/.ai/docs/demos/buttongroup/sizing/buttongroup-sizing.ts +10 -0
  92. package/.ai/docs/demos/drawer/inline/drawer-inline-basic.html +46 -0
  93. package/.ai/docs/demos/drawer/inline/drawer-inline-basic.ts +33 -0
  94. package/.ai/docs/demos/drawer/overlay/drawer-overlay-basic.html +30 -0
  95. package/.ai/docs/demos/drawer/overlay/drawer-overlay-basic.ts +25 -0
  96. package/.ai/docs/demos/dropdown/basic/dropdown-basic.html +8 -0
  97. package/.ai/docs/demos/dropdown/basic/dropdown-basic.ts +15 -0
  98. package/.ai/docs/demos/dropdown/sizes/dropdown-sizes.html +9 -0
  99. package/.ai/docs/demos/dropdown/sizes/dropdown-sizes.ts +21 -0
  100. package/.ai/docs/demos/dropdown/split/dropdown-split.html +9 -0
  101. package/.ai/docs/demos/dropdown/split/dropdown-split.ts +11 -0
  102. package/.ai/docs/demos/dropdown/toggle/dropdown-toggle.html +22 -0
  103. package/.ai/docs/demos/dropdown/toggle/dropdown-toggle.ts +10 -0
  104. package/.ai/docs/demos/sidenav/sidenav-basic-no-icon/routes.ts +95 -0
  105. package/.ai/docs/demos/sidenav/sidenav-basic-no-icon/sidenav-basic-no-icon.html +42 -0
  106. package/.ai/docs/demos/sidenav/sidenav-basic-no-icon/sidenav-basic-no-icon.ts +12 -0
  107. package/.ai/docs/demos/sidenav/sidenav-basic-with-icon/routes.ts +41 -0
  108. package/.ai/docs/demos/sidenav/sidenav-basic-with-icon/sidenav-basic-with-icon.html +34 -0
  109. package/.ai/docs/demos/sidenav/sidenav-basic-with-icon/sidenav-basic-with-icon.ts +12 -0
  110. package/.ai/docs/demos/tooltip/basic/tooltip-basic.html +1 -0
  111. package/.ai/docs/demos/tooltip/basic/tooltip-basic.ts +10 -0
  112. package/.ai/docs/demos/tooltip/placements/tooltip-placements.html +35 -0
  113. package/.ai/docs/demos/tooltip/placements/tooltip-placements.ts +12 -0
  114. package/.ai/docs/demos/tooltip/sizes/tooltip-sizes.html +5 -0
  115. package/.ai/docs/demos/tooltip/sizes/tooltip-sizes.ts +10 -0
  116. package/.ai/docs/demos/topnav/brand/topnav-brand.ts +64 -0
  117. package/.ai/docs/demos/topnav/environment-banner/topnav-environment-banner.ts +20 -0
  118. package/.ai/docs/demos/topnav/navigation/routes.ts +35 -0
  119. package/.ai/docs/demos/topnav/navigation/topnav-navigation-flat.ts +67 -0
  120. package/.ai/docs/demos/topnav/navigation/topnav-navigation-tree.ts +82 -0
  121. package/.ai/docs/demos/topnav/quick-actions/notifications.ts +75 -0
  122. package/.ai/docs/demos/topnav/quick-actions/topnav-quick-actions.ts +108 -0
  123. package/.ai/docs/demos/topnav/quick-actions/user-account.ts +23 -0
  124. package/.ai/index.md +26 -0
  125. package/fesm2022/design-factory-angular-accordion.mjs +1153 -0
  126. package/fesm2022/design-factory-angular-accordion.mjs.map +1 -0
  127. package/fesm2022/design-factory-angular-alert.mjs +312 -0
  128. package/fesm2022/design-factory-angular-alert.mjs.map +1 -0
  129. package/fesm2022/design-factory-angular-breakpoints.mjs +53 -0
  130. package/fesm2022/design-factory-angular-breakpoints.mjs.map +1 -0
  131. package/fesm2022/design-factory-angular-button.mjs +240 -0
  132. package/fesm2022/design-factory-angular-button.mjs.map +1 -0
  133. package/fesm2022/design-factory-angular-buttongroup.mjs +75 -0
  134. package/fesm2022/design-factory-angular-buttongroup.mjs.map +1 -0
  135. package/fesm2022/design-factory-angular-drawer.mjs +76 -81
  136. package/fesm2022/design-factory-angular-drawer.mjs.map +1 -1
  137. package/fesm2022/design-factory-angular-dropdown.mjs +323 -0
  138. package/fesm2022/design-factory-angular-dropdown.mjs.map +1 -0
  139. package/fesm2022/design-factory-angular-form-field.mjs +287 -0
  140. package/fesm2022/design-factory-angular-form-field.mjs.map +1 -0
  141. package/fesm2022/design-factory-angular-icon.mjs +24 -0
  142. package/fesm2022/design-factory-angular-icon.mjs.map +1 -0
  143. package/fesm2022/design-factory-angular-input.mjs +34 -0
  144. package/fesm2022/design-factory-angular-input.mjs.map +1 -0
  145. package/fesm2022/design-factory-angular-internals.mjs +119 -39
  146. package/fesm2022/design-factory-angular-internals.mjs.map +1 -1
  147. package/fesm2022/design-factory-angular-separator.mjs +43 -0
  148. package/fesm2022/design-factory-angular-separator.mjs.map +1 -0
  149. package/fesm2022/design-factory-angular-sidenav.mjs +766 -438
  150. package/fesm2022/design-factory-angular-sidenav.mjs.map +1 -1
  151. package/fesm2022/design-factory-angular-slider.mjs +451 -0
  152. package/fesm2022/design-factory-angular-slider.mjs.map +1 -0
  153. package/fesm2022/design-factory-angular-theme.mjs +30 -20
  154. package/fesm2022/design-factory-angular-theme.mjs.map +1 -1
  155. package/fesm2022/design-factory-angular-toggle.mjs +172 -0
  156. package/fesm2022/design-factory-angular-toggle.mjs.map +1 -0
  157. package/fesm2022/design-factory-angular-tooltip.mjs +138 -0
  158. package/fesm2022/design-factory-angular-tooltip.mjs.map +1 -0
  159. package/fesm2022/design-factory-angular-topnav.mjs +635 -558
  160. package/fesm2022/design-factory-angular-topnav.mjs.map +1 -1
  161. package/package.json +61 -8
  162. package/schematics/collection.json +35 -0
  163. package/schematics/component-migration/accordion/constants.d.ts +10 -0
  164. package/schematics/component-migration/accordion/constants.js +46 -0
  165. package/schematics/component-migration/accordion/guide.md +257 -0
  166. package/schematics/component-migration/accordion/index.d.ts +2 -0
  167. package/schematics/component-migration/accordion/index.js +5 -0
  168. package/schematics/component-migration/accordion/migration.d.ts +2 -0
  169. package/schematics/component-migration/accordion/migration.js +13 -0
  170. package/schematics/component-migration/accordion/schema.json +25 -0
  171. package/schematics/component-migration/accordion/steps/accordion-imports.d.ts +3 -0
  172. package/schematics/component-migration/accordion/steps/accordion-imports.js +41 -0
  173. package/schematics/component-migration/accordion/steps/template-migration.d.ts +3 -0
  174. package/schematics/component-migration/accordion/steps/template-migration.js +554 -0
  175. package/schematics/component-migration/accordion/steps/title-content.d.ts +9 -0
  176. package/schematics/component-migration/accordion/steps/title-content.js +75 -0
  177. package/schematics/component-migration/ai/prompt.md +83 -0
  178. package/schematics/component-migration/alert/guide.md +246 -0
  179. package/schematics/component-migration/alert/index.d.ts +2 -0
  180. package/schematics/component-migration/alert/index.js +5 -0
  181. package/schematics/component-migration/alert/migration.d.ts +2 -0
  182. package/schematics/component-migration/alert/migration.js +50 -0
  183. package/schematics/component-migration/alert/schema.json +25 -0
  184. package/schematics/component-migration/alert/steps/alert-imports.d.ts +4 -0
  185. package/schematics/component-migration/alert/steps/alert-imports.js +97 -0
  186. package/schematics/component-migration/alert/steps/animation-input.d.ts +3 -0
  187. package/schematics/component-migration/alert/steps/animation-input.js +17 -0
  188. package/schematics/component-migration/alert/steps/close-output.d.ts +3 -0
  189. package/schematics/component-migration/alert/steps/close-output.js +17 -0
  190. package/schematics/component-migration/alert/steps/icon-directive-imports.d.ts +3 -0
  191. package/schematics/component-migration/alert/steps/icon-directive-imports.js +84 -0
  192. package/schematics/component-migration/alert/steps/icon-directive.d.ts +3 -0
  193. package/schematics/component-migration/alert/steps/icon-directive.js +10 -0
  194. package/schematics/component-migration/alert/steps/legacy-module-imports.d.ts +3 -0
  195. package/schematics/component-migration/alert/steps/legacy-module-imports.js +57 -0
  196. package/schematics/component-migration/alert/steps/programmatic-close.d.ts +3 -0
  197. package/schematics/component-migration/alert/steps/programmatic-close.js +44 -0
  198. package/schematics/component-migration/alert/steps/selector.d.ts +3 -0
  199. package/schematics/component-migration/alert/steps/selector.js +18 -0
  200. package/schematics/component-migration/alert/steps/static-classes.d.ts +3 -0
  201. package/schematics/component-migration/alert/steps/static-classes.js +97 -0
  202. package/schematics/component-migration/alert/steps/static-type.d.ts +3 -0
  203. package/schematics/component-migration/alert/steps/static-type.js +28 -0
  204. package/schematics/component-migration/alert/steps/template-reference.d.ts +3 -0
  205. package/schematics/component-migration/alert/steps/template-reference.js +15 -0
  206. package/schematics/component-migration/alert/steps/template-todos.d.ts +3 -0
  207. package/schematics/component-migration/alert/steps/template-todos.js +78 -0
  208. package/schematics/component-migration/button/guide.md +278 -0
  209. package/schematics/component-migration/button/index.d.ts +2 -0
  210. package/schematics/component-migration/button/index.js +5 -0
  211. package/schematics/component-migration/button/migration.d.ts +2 -0
  212. package/schematics/component-migration/button/migration.js +180 -0
  213. package/schematics/component-migration/button/schema.json +25 -0
  214. package/schematics/component-migration/button/steps/static-classes.d.ts +10 -0
  215. package/schematics/component-migration/button/steps/static-classes.js +128 -0
  216. package/schematics/component-migration/button/steps/template-todos.d.ts +19 -0
  217. package/schematics/component-migration/button/steps/template-todos.js +120 -0
  218. package/schematics/component-migration/button/types.d.ts +7 -0
  219. package/schematics/component-migration/button/types.js +2 -0
  220. package/schematics/component-migration/dropdown/guide.md +252 -0
  221. package/schematics/component-migration/dropdown/index.d.ts +2 -0
  222. package/schematics/component-migration/dropdown/index.js +5 -0
  223. package/schematics/component-migration/dropdown/migration.d.ts +2 -0
  224. package/schematics/component-migration/dropdown/migration.js +41 -0
  225. package/schematics/component-migration/dropdown/schema.json +25 -0
  226. package/schematics/component-migration/dropdown/steps/dropdown-imports.d.ts +3 -0
  227. package/schematics/component-migration/dropdown/steps/dropdown-imports.js +308 -0
  228. package/schematics/component-migration/dropdown/steps/template-attributes.d.ts +10 -0
  229. package/schematics/component-migration/dropdown/steps/template-attributes.js +57 -0
  230. package/schematics/component-migration/dropdown/steps/template-helpers.d.ts +20 -0
  231. package/schematics/component-migration/dropdown/steps/template-helpers.js +125 -0
  232. package/schematics/component-migration/dropdown/steps/template-imports.d.ts +22 -0
  233. package/schematics/component-migration/dropdown/steps/template-imports.js +12 -0
  234. package/schematics/component-migration/dropdown/steps/template-items.d.ts +7 -0
  235. package/schematics/component-migration/dropdown/steps/template-items.js +58 -0
  236. package/schematics/component-migration/dropdown/steps/template-menu.d.ts +14 -0
  237. package/schematics/component-migration/dropdown/steps/template-menu.js +107 -0
  238. package/schematics/component-migration/dropdown/steps/template-todos.d.ts +19 -0
  239. package/schematics/component-migration/dropdown/steps/template-todos.js +118 -0
  240. package/schematics/component-migration/dropdown/steps/template-toggle.d.ts +9 -0
  241. package/schematics/component-migration/dropdown/steps/template-toggle.js +70 -0
  242. package/schematics/component-migration/dropdown/steps/template-wrapper.d.ts +12 -0
  243. package/schematics/component-migration/dropdown/steps/template-wrapper.js +105 -0
  244. package/schematics/component-migration/index.d.ts +3 -0
  245. package/schematics/component-migration/index.js +26 -0
  246. package/schematics/component-migration/next-steps/index.d.ts +13 -0
  247. package/schematics/component-migration/next-steps/index.js +34 -0
  248. package/schematics/component-migration/registry.d.ts +1 -0
  249. package/schematics/component-migration/registry.js +15 -0
  250. package/schematics/component-migration/schema.json +20 -0
  251. package/schematics/component-migration/shared/ai-handoff.d.ts +2 -0
  252. package/schematics/component-migration/shared/ai-handoff.js +28 -0
  253. package/schematics/component-migration/shared/angular-component.d.ts +10 -0
  254. package/schematics/component-migration/shared/angular-component.js +125 -0
  255. package/schematics/component-migration/shared/button-visual-classes.d.ts +24 -0
  256. package/schematics/component-migration/shared/button-visual-classes.js +111 -0
  257. package/schematics/component-migration/shared/component-context.d.ts +7 -0
  258. package/schematics/component-migration/shared/component-context.js +24 -0
  259. package/schematics/component-migration/shared/component-imports.d.ts +45 -0
  260. package/schematics/component-migration/shared/component-imports.js +380 -0
  261. package/schematics/component-migration/shared/create-component-schematic.d.ts +3 -0
  262. package/schematics/component-migration/shared/create-component-schematic.js +55 -0
  263. package/schematics/component-migration/shared/import-edits.d.ts +11 -0
  264. package/schematics/component-migration/shared/import-edits.js +157 -0
  265. package/schematics/component-migration/shared/legacy-config-todos.d.ts +3 -0
  266. package/schematics/component-migration/shared/legacy-config-todos.js +90 -0
  267. package/schematics/component-migration/shared/migrate-project.d.ts +12 -0
  268. package/schematics/component-migration/shared/migrate-project.js +151 -0
  269. package/schematics/component-migration/shared/project-templates.d.ts +15 -0
  270. package/schematics/component-migration/shared/project-templates.js +43 -0
  271. package/schematics/component-migration/shared/scan-project.d.ts +3 -0
  272. package/schematics/component-migration/shared/scan-project.js +24 -0
  273. package/schematics/component-migration/shared/static-placement.d.ts +1 -0
  274. package/schematics/component-migration/shared/static-placement.js +45 -0
  275. package/schematics/component-migration/shared/template-edits.d.ts +28 -0
  276. package/schematics/component-migration/shared/template-edits.js +153 -0
  277. package/schematics/component-migration/shared/template-result.d.ts +3 -0
  278. package/schematics/component-migration/shared/template-result.js +11 -0
  279. package/schematics/component-migration/shared/testing.d.ts +13 -0
  280. package/schematics/component-migration/shared/testing.js +59 -0
  281. package/schematics/component-migration/shared/todo-comments.d.ts +10 -0
  282. package/schematics/component-migration/shared/todo-comments.js +81 -0
  283. package/schematics/component-migration/shared/types.d.ts +41 -0
  284. package/schematics/component-migration/shared/types.js +2 -0
  285. package/schematics/component-migration/tooltip/guide.md +196 -0
  286. package/schematics/component-migration/tooltip/index.d.ts +2 -0
  287. package/schematics/component-migration/tooltip/index.js +5 -0
  288. package/schematics/component-migration/tooltip/migration.d.ts +2 -0
  289. package/schematics/component-migration/tooltip/migration.js +50 -0
  290. package/schematics/component-migration/tooltip/schema.json +25 -0
  291. package/schematics/component-migration/tooltip/steps/template-attributes.d.ts +13 -0
  292. package/schematics/component-migration/tooltip/steps/template-attributes.js +266 -0
  293. package/schematics/component-migration/tooltip/steps/template-todos.d.ts +24 -0
  294. package/schematics/component-migration/tooltip/steps/template-todos.js +115 -0
  295. package/schematics/component-migration/tooltip/steps/tooltip-imports.d.ts +3 -0
  296. package/schematics/component-migration/tooltip/steps/tooltip-imports.js +79 -0
  297. package/schematics/component-migration/utils/component-resource-collector.d.ts +34 -0
  298. package/schematics/component-migration/utils/component-resource-collector.js +107 -0
  299. package/schematics/component-migration/utils/project_tsconfig_paths.d.ts +18 -0
  300. package/schematics/component-migration/utils/project_tsconfig_paths.js +105 -0
  301. package/schematics/component-migration/utils/typescript/compiler_host.d.ts +44 -0
  302. package/schematics/component-migration/utils/typescript/compiler_host.js +87 -0
  303. package/schematics/component-migration/utils/typescript/decorators.d.ts +22 -0
  304. package/schematics/component-migration/utils/typescript/decorators.js +41 -0
  305. package/schematics/component-migration/utils/typescript/functions.d.ts +14 -0
  306. package/schematics/component-migration/utils/typescript/functions.js +20 -0
  307. package/schematics/component-migration/utils/typescript/imports.d.ts +17 -0
  308. package/schematics/component-migration/utils/typescript/imports.js +110 -0
  309. package/schematics/component-migration/utils/typescript/parse_tsconfig.d.ts +9 -0
  310. package/schematics/component-migration/utils/typescript/parse_tsconfig.js +29 -0
  311. package/schematics/component-migration/utils/typescript/property-name.d.ts +13 -0
  312. package/schematics/component-migration/utils/typescript/property-name.js +22 -0
  313. package/schematics/package.json +3 -0
  314. package/types/design-factory-angular-accordion.d.ts +553 -0
  315. package/types/design-factory-angular-alert.d.ts +166 -0
  316. package/types/design-factory-angular-breakpoints.d.ts +13 -0
  317. package/types/design-factory-angular-button.d.ts +166 -0
  318. package/types/design-factory-angular-buttongroup.d.ts +45 -0
  319. package/types/design-factory-angular-drawer.d.ts +19 -26
  320. package/types/design-factory-angular-dropdown.d.ts +148 -0
  321. package/types/design-factory-angular-form-field.d.ts +122 -0
  322. package/types/design-factory-angular-icon.d.ts +11 -0
  323. package/types/design-factory-angular-input.d.ts +16 -0
  324. package/types/design-factory-angular-internals.d.ts +78 -19
  325. package/types/design-factory-angular-separator.d.ts +29 -0
  326. package/types/design-factory-angular-sidenav.d.ts +114 -17
  327. package/types/design-factory-angular-slider.d.ts +239 -0
  328. package/types/design-factory-angular-toggle.d.ts +93 -0
  329. package/types/design-factory-angular-tooltip.d.ts +113 -0
  330. package/types/design-factory-angular-topnav.d.ts +47 -52
  331. package/drawer/README.md +0 -54
@@ -1,12 +1,11 @@
1
1
  import { computed, asWritable } from '@amadeus-it-group/tansu';
2
2
  import * as i0 from '@angular/core';
3
- import { signal, inject, DestroyRef, Injector, runInInjectionContext, Directive, InjectionToken, SkipSelf, Optional, ElementRef, PLATFORM_ID, afterNextRender, input } from '@angular/core';
3
+ import { signal, inject, DestroyRef, Injector, runInInjectionContext, Directive, InjectionToken, SkipSelf, Optional, ElementRef, PLATFORM_ID, afterNextRender, input, effect, untracked, booleanAttribute, numberAttribute } from '@angular/core';
4
4
  import { createWidgetsConfig } from '@design-factory/core/config';
5
5
  import { FACTORY_WIDGET_NAME } from '@design-factory/core/types';
6
6
  import { toReadableStore } from '@design-factory/core/utils/stores';
7
7
  import { multiDirective } from '@design-factory/core/utils/directive';
8
8
  import { isPlatformServer } from '@angular/common';
9
- import { createMatchMedia } from '@design-factory/core/services/matchMedia';
10
9
 
11
10
  /**
12
11
  * Converts a Tansu `ReadableSignal` to an Angular `Signal`.
@@ -23,7 +22,7 @@ import { createMatchMedia } from '@design-factory/core/services/matchMedia';
23
22
  const toAngularSignal = (tansuSignal) => {
24
23
  // The equality of objects from 2 sequential emissions is already checked in tansu signal.
25
24
  // Here we'll always emit the value received from tansu signal, therefor the equality function
26
- const res = signal(undefined, { ...(ngDevMode ? { debugName: "res" } : {}), equal: () => false });
25
+ const res = signal(undefined, { ...(ngDevMode ? { debugName: "res" } : /* istanbul ignore next */ {}), equal: () => false });
27
26
  const subscription = tansuSignal.subscribe((value) => {
28
27
  res.set(value);
29
28
  });
@@ -43,7 +42,7 @@ const toAngularSignal = (tansuSignal) => {
43
42
  * @returns - The resulting Angular signal.
44
43
  */
45
44
  const toAngularWritableSignal = (tansuSignal) => {
46
- const res = signal(undefined, { ...(ngDevMode ? { debugName: "res" } : {}), equal: () => false });
45
+ const res = signal(undefined, { ...(ngDevMode ? { debugName: "res" } : /* istanbul ignore next */ {}), equal: () => false });
47
46
  const set = res.set.bind(res);
48
47
  const subscription = tansuSignal.subscribe((value) => {
49
48
  set(value);
@@ -173,10 +172,10 @@ class BaseWidgetDirective {
173
172
  ngOnInit() {
174
173
  this._widget.ngInit();
175
174
  }
176
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: BaseWidgetDirective, deps: "invalid", target: i0.ɵɵFactoryTarget.Directive }); }
177
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.0", type: BaseWidgetDirective, isStandalone: true, usesOnChanges: true, ngImport: i0 }); }
175
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.4", ngImport: i0, type: BaseWidgetDirective, deps: "invalid", target: i0.ɵɵFactoryTarget.Directive }); }
176
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.4", type: BaseWidgetDirective, isStandalone: true, usesOnChanges: true, ngImport: i0 }); }
178
177
  }
179
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: BaseWidgetDirective, decorators: [{
178
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.4", ngImport: i0, type: BaseWidgetDirective, decorators: [{
180
179
  type: Directive
181
180
  }], ctorParameters: () => [{ type: undefined }, { type: undefined }] });
182
181
 
@@ -349,13 +348,14 @@ const injectDfComponentConfig = (componentKey) => () => {
349
348
  *
350
349
  * @param [directive] - The directive to be applied to the host element.
351
350
  * @param [params] - The parameters to be passed to the directive.
351
+ * @param [injector] - The Angular injector to be used for managing the directive's lifecycle.
352
+ * If not provided, the default injector (from the current injection context) will be used.
352
353
  *
353
354
  * @returns An object containing an `update` function to update the directive and its parameters.
354
355
  */
355
- const useDirectiveForHost = (directive, params) => {
356
- const injector = inject(Injector);
357
- const ref = inject(ElementRef);
358
- const platform = inject(PLATFORM_ID);
356
+ const useDirectiveForHost = (directive, params, injector = inject(Injector)) => {
357
+ const ref = injector.get(ElementRef);
358
+ const platform = injector.get(PLATFORM_ID);
359
359
  let instance;
360
360
  let plannedCallDirective = false;
361
361
  const callDirective = isPlatformServer(platform)
@@ -380,7 +380,7 @@ const useDirectiveForHost = (directive, params) => {
380
380
  directive = undefined;
381
381
  oldInstance?.destroy?.();
382
382
  }
383
- inject(DestroyRef).onDestroy(destroyDirectiveInstance);
383
+ injector.get(DestroyRef).onDestroy(destroyDirectiveInstance);
384
384
  function update(newDirective, newParams) {
385
385
  if (newDirective !== directive) {
386
386
  void destroyDirectiveInstance();
@@ -406,7 +406,7 @@ const useDirectiveForHost = (directive, params) => {
406
406
  */
407
407
  class UseDirective {
408
408
  constructor() {
409
- this.use = input.required({ ...(ngDevMode ? { debugName: "use" } : {}), alias: 'dfUse' });
409
+ this.use = input.required({ ...(ngDevMode ? { debugName: "use" } : /* istanbul ignore next */ {}), alias: 'dfUse' });
410
410
  this.#useDirective = useDirectiveForHost();
411
411
  }
412
412
  #useDirective;
@@ -416,10 +416,10 @@ class UseDirective {
416
416
  const [directive, param] = Array.isArray(use) ? use : [use];
417
417
  this.#useDirective.update(directive, param);
418
418
  }
419
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: UseDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
420
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.0", type: UseDirective, isStandalone: true, selector: "[dfUse]", inputs: { use: { classPropertyName: "use", publicName: "dfUse", isSignal: true, isRequired: true, transformFunction: null } }, usesOnChanges: true, ngImport: i0 }); }
419
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.4", ngImport: i0, type: UseDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
420
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.0.4", type: UseDirective, isStandalone: true, selector: "[dfUse]", inputs: { use: { classPropertyName: "use", publicName: "dfUse", isSignal: true, isRequired: true, transformFunction: null } }, usesOnChanges: true, ngImport: i0 }); }
421
421
  }
422
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: UseDirective, decorators: [{
422
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.4", ngImport: i0, type: UseDirective, decorators: [{
423
423
  type: Directive,
424
424
  args: [{
425
425
  selector: '[dfUse]'
@@ -435,7 +435,7 @@ class UseMultiDirective {
435
435
  /**
436
436
  * An input property that takes a tuple of directives and their optional parameters.
437
437
  */
438
- this.useMulti = input.required({ ...(ngDevMode ? { debugName: "useMulti" } : {}), alias: 'dfUseMulti' });
438
+ this.useMulti = input.required({ ...(ngDevMode ? { debugName: "useMulti" } : /* istanbul ignore next */ {}), alias: 'dfUseMulti' });
439
439
  this.#useDirective = useDirectiveForHost();
440
440
  }
441
441
  #useDirective;
@@ -443,15 +443,71 @@ class UseMultiDirective {
443
443
  ngOnChanges() {
444
444
  this.#useDirective.update(multiDirective, this.useMulti());
445
445
  }
446
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: UseMultiDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
447
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.0", type: UseMultiDirective, isStandalone: true, selector: "[dfUseMulti]", inputs: { useMulti: { classPropertyName: "useMulti", publicName: "dfUseMulti", isSignal: true, isRequired: true, transformFunction: null } }, usesOnChanges: true, ngImport: i0 }); }
446
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.4", ngImport: i0, type: UseMultiDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
447
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.0.4", type: UseMultiDirective, isStandalone: true, selector: "[dfUseMulti]", inputs: { useMulti: { classPropertyName: "useMulti", publicName: "dfUseMulti", isSignal: true, isRequired: true, transformFunction: null } }, usesOnChanges: true, ngImport: i0 }); }
448
448
  }
449
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: UseMultiDirective, decorators: [{
449
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.4", ngImport: i0, type: UseMultiDirective, decorators: [{
450
450
  type: Directive,
451
451
  args: [{
452
452
  selector: '[dfUseMulti]'
453
453
  }]
454
454
  }], propDecorators: { useMulti: [{ type: i0.Input, args: [{ isSignal: true, alias: "dfUseMulti", required: true }] }] } });
455
+ /**
456
+ * Applies an AgnosUI directive to an arbitrary DOM element (not necessarily the host element)
457
+ * and manages its lifecycle via an Angular {@link effect}.
458
+ *
459
+ * Unlike {@link useDirectiveForHost}, which targets the component's own host element,
460
+ * this function lets you bind a directive to any element referenced by a signal, an
461
+ * {@link ElementRef}, or a plain `HTMLElement`. The directive instance is automatically
462
+ * created when the element becomes available and destroyed when the element changes or
463
+ * the effect is cleaned up.
464
+ *
465
+ * @param element - The target element or a reactive accessor returning it.
466
+ * @param directive - The AgnosUI directive to apply.
467
+ * @param injector - The Angular {@link Injector} used to create the effect. Defaults to the
468
+ * current injection context.
469
+ */
470
+ const useDirectiveForElement = (element, directive, injector = inject(Injector)) => {
471
+ effect((onCleanup) => {
472
+ const domRef = typeof element === 'function' ? element() : element;
473
+ const domElement = domRef instanceof ElementRef ? domRef.nativeElement : domRef;
474
+ if (domElement) {
475
+ untracked(() => {
476
+ const instance = directive(domElement);
477
+ onCleanup(() => {
478
+ instance?.destroy?.();
479
+ });
480
+ });
481
+ }
482
+ }, { injector });
483
+ };
484
+ /**
485
+ * Uses multiple AgnosUI directives from an object (typically a widget instance) on their
486
+ * corresponding DOM elements in a single call.
487
+ *
488
+ * This is a convenience wrapper around {@link useDirectiveForElement} designed for use with
489
+ * widget objects that expose a `directives` map. It iterates over the provided `links` and
490
+ * binds each directive to its target element.
491
+ *
492
+ * The `object` can either directly contain directive properties or expose them under a
493
+ * `directives` key (the standard shape of AgnosUI widgets).
494
+ *
495
+ * @template U - The full type of the object (returned as-is for chaining).
496
+ * @template T - A record mapping directive names to AgnosUI directives.
497
+ *
498
+ * @param object - The widget or directive map to read directives from.
499
+ * @param links - A partial map of directive names to their target elements or element accessors.
500
+ * @param injector - The Angular {@link Injector} used to create effects. Defaults to the
501
+ * current injection context.
502
+ * @returns The original `object`, unchanged, for convenient chaining.
503
+ */
504
+ const useDirectivesForElements = (object, links, injector = inject(Injector)) => {
505
+ const directives = 'directives' in object ? object.directives : object;
506
+ for (const [key, signalElement] of Object.entries(links)) {
507
+ useDirectiveForElement(signalElement, directives[key], injector);
508
+ }
509
+ return object;
510
+ };
455
511
 
456
512
  /**
457
513
  * An abstract base class for widget directives, providing common functionality
@@ -496,38 +552,62 @@ class AgnosWidgetDirective {
496
552
  get directives() {
497
553
  return this._agnosWidget.directives;
498
554
  }
499
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: AgnosWidgetDirective, deps: "invalid", target: i0.ɵɵFactoryTarget.Directive }); }
500
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.0", type: AgnosWidgetDirective, isStandalone: true, usesOnChanges: true, ngImport: i0 }); }
555
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.4", ngImport: i0, type: AgnosWidgetDirective, deps: "invalid", target: i0.ɵɵFactoryTarget.Directive }); }
556
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.4", type: AgnosWidgetDirective, isStandalone: true, usesOnChanges: true, ngImport: i0 }); }
501
557
  }
502
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: AgnosWidgetDirective, decorators: [{
558
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.4", ngImport: i0, type: AgnosWidgetDirective, decorators: [{
503
559
  type: Directive
504
560
  }], ctorParameters: () => [{ type: undefined }] });
505
561
 
506
- // Breakpoints based on Bootstrap 5
507
- /**
508
- * sm breakpoint,
509
- * tansu signal that returns true when the viewport is at least 576px wide
510
- */
511
- const sm$ = createMatchMedia('(min-width: 576px)');
512
562
  /**
513
- * md breakpoint,
514
- * tansu signal that returns true when the viewport is at least 768px wide
563
+ * Transforms a value (typically a string) to a boolean.
564
+ * Intended to be used as a transform function of an input.
565
+ *
566
+ * @example
567
+ * ```readonly status = input({ transform: auBooleanAttribute });```
568
+ * @param value - Value to be transformed.
569
+ * @returns the value transformed
515
570
  */
516
- const md$ = createMatchMedia('(min-width: 768px)');
571
+ function auBooleanAttribute(value) {
572
+ if (value === undefined) {
573
+ return undefined;
574
+ }
575
+ return booleanAttribute(value);
576
+ }
517
577
  /**
518
- * lg breakpoint,
519
- * tansu signal that returns true when the viewport is at least 992px wide
578
+ * Transforms a value (typically a string) to a number.
579
+ * Intended to be used as a transform function of an input.
580
+ * @param value - Value to be transformed.
581
+ *
582
+ * @example
583
+ * ```readonly id = input({ transform: auNumberAttribute });```
584
+ * @returns the value transformed
520
585
  */
521
- const lg$ = createMatchMedia('(min-width: 992px)');
586
+ function auNumberAttribute(value) {
587
+ if (value === undefined) {
588
+ return undefined;
589
+ }
590
+ return numberAttribute(value);
591
+ }
522
592
  /**
523
- * xl breakpoint,
524
- * tansu signal that returns true when the viewport is at least 1200px wide
593
+ * Transforms a value (typically a string) to a number.
594
+ * Intended to be used as a transform function of an input.
595
+ * @param value - Value to be transformed. `null` or `undefined`, returns the value unchanged.
596
+ *
597
+ * @example
598
+ * ```readonly id = input({ transform: auNumberOrNullAttribute });```
599
+ * @returns the value transformed
525
600
  */
526
- const xl$ = createMatchMedia('(min-width: 1200px)');
601
+ function auNumberOrNullAttribute(value) {
602
+ if (value == null) {
603
+ return value;
604
+ }
605
+ return numberAttribute(value);
606
+ }
527
607
 
528
608
  /**
529
609
  * Generated bundle index. Do not edit.
530
610
  */
531
611
 
532
- export { AgnosWidgetDirective, BaseWidgetDirective, UseDirective, UseMultiDirective, callWidgetFactory, callWidgetFactoryWithConfig, injectDfComponentConfig, injectWidgetConfig, lg$, md$, provideDfComponentConfig, sm$, toAngularSignal, toAngularWritableSignal, useDirectiveForHost, xl$ };
612
+ export { AgnosWidgetDirective, BaseWidgetDirective, UseDirective, UseMultiDirective, auBooleanAttribute, auNumberAttribute, auNumberOrNullAttribute, callWidgetFactory, callWidgetFactoryWithConfig, injectDfComponentConfig, injectWidgetConfig, provideDfComponentConfig, toAngularSignal, toAngularWritableSignal, useDirectiveForElement, useDirectiveForHost, useDirectivesForElements };
533
613
  //# sourceMappingURL=design-factory-angular-internals.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"design-factory-angular-internals.mjs","sources":["../../internals/utils/stores.ts","../../internals/utils/widget.ts","../../internals/config.ts","../../internals/utils/directive.ts","../../internals/widget.directive.ts","../../internals/breakpoints.ts","../../internals/design-factory-angular-internals.ts"],"sourcesContent":["import type { ReadableSignal, WritableSignal as TansuWritableSignal } from '@amadeus-it-group/tansu';\nimport type { Signal, WritableSignal } from '@angular/core';\nimport { DestroyRef, inject, signal } from '@angular/core';\n\n/**\n * Converts a Tansu `ReadableSignal` to an Angular `Signal`.\n *\n * This function wraps the provided Tansu signal in an Angular signal. It subscribes to the\n * Tansu signal and updates the Angular signal with the received values. The equality function\n * for the Angular signal is set to always return false, ensuring that every new value from the\n * Tansu signal triggers an update.\n *\n * @template T - The type of the value emitted by the signals.\n * @param tansuSignal - The Tansu signal to convert.\n * @returns - The resulting Angular signal.\n */\nexport const toAngularSignal = <T>(tansuSignal: ReadableSignal<T>): Signal<T> => {\n // The equality of objects from 2 sequential emissions is already checked in tansu signal.\n // Here we'll always emit the value received from tansu signal, therefor the equality function\n const res = signal(undefined as any as T, { equal: () => false });\n const subscription = tansuSignal.subscribe((value) => {\n res.set(value);\n });\n inject(DestroyRef).onDestroy(subscription);\n\n return res.asReadonly();\n};\n\n/**\n * Converts a Tansu `WritableSignal` to an Angular `WritableSignal`.\n *\n * This function wraps the provided Tansu signal in an Angular signal. It subscribes to the\n * Tansu signal and updates the Angular signal with the received values. The equality function\n * for the Angular signal is set to always return false, ensuring that every new value from the\n * Tansu signal triggers an update.\n *\n * @template T - The type of the value emitted by the signals.\n * @param tansuSignal - The Tansu signal to convert.\n * @returns - The resulting Angular signal.\n */\nexport const toAngularWritableSignal = <T>(tansuSignal: TansuWritableSignal<T>): WritableSignal<T> => {\n const res = signal(undefined as any as T, { equal: () => false });\n const set = res.set.bind(res);\n const subscription = tansuSignal.subscribe((value) => {\n set(value);\n });\n inject(DestroyRef).onDestroy(subscription);\n res.set = tansuSignal.set;\n res.update = tansuSignal.update;\n return res;\n};\n","import { computed, type ReadableSignal } from '@amadeus-it-group/tansu';\nimport type { OnChanges, OnInit, SimpleChanges } from '@angular/core';\nimport { Directive, Injector, inject, runInInjectionContext } from '@angular/core';\nimport type { AngularState, AngularWidget } from '../types';\nimport type { Widget, WidgetFactory, WidgetProps } from '@design-factory/core/types';\nimport { toAngularSignal } from './stores';\nimport { toReadableStore } from '@design-factory/core/utils/stores';\n\n/**\n * Call a widget factory using provided configs.\n *\n * The resulting widget can be easily hooked into the lifecycle of an Angular component through {@link BaseWidgetDirective}.\n *\n * @param factory - the widget factory to call\n * @param options - the options\n * @param options.defaultConfig - the default config of the widget\n * @param options.widgetConfig - the config of the widget, overriding the defaultConfig\n * @param options.events - the events of the widget\n * @param options.afterInit - a callback to call after successful setup of the widget\n * @returns the widget\n */\nexport const callWidgetFactoryWithConfig = <W extends Widget>(\n factory: WidgetFactory<W>,\n options?: {\n defaultConfig?: Partial<WidgetProps<W>> | ReadableSignal<Partial<WidgetProps<W>> | undefined>;\n widgetConfig?: null | undefined | ReadableSignal<Partial<WidgetProps<W>> | undefined>;\n events?: Partial<Pick<WidgetProps<W>, keyof WidgetProps<W> & `on${string}`>>;\n afterInit?: (widget: AngularWidget<W>) => void;\n }\n): AngularWidget<W> => {\n const { defaultConfig, widgetConfig, events: eventsProp, afterInit } = options ?? {};\n const injector = inject(Injector);\n const props = {};\n let initDone: () => void;\n\n const res = {\n initialized: new Promise<void>((resolve) => {\n initDone = resolve;\n }),\n patch(newProps: Partial<WidgetProps<W>>) {\n // temporary function replaced in ngInit\n Object.assign(props, newProps);\n },\n ngInit() {\n runInInjectionContext(injector, () => {\n const defaultConfig$ = toReadableStore(defaultConfig);\n const widget = factory({\n config: computed(() => ({\n ...defaultConfig$(),\n ...widgetConfig?.(),\n ...(eventsProp as Partial<WidgetProps<W>>)\n })),\n props\n });\n Object.assign(res, {\n patch: widget.patch,\n directives: widget.directives,\n api: widget.api,\n state: Object.fromEntries(\n Object.entries<ReadableSignal<unknown>>(widget.stores as any).map(([key, val]) => [\n key.slice(0, -1),\n toAngularSignal(val)\n ])\n )\n });\n afterInit?.(res as AngularWidget<W>);\n initDone();\n });\n }\n };\n\n return res as AngularWidget<W>;\n};\n\nfunction patchSimpleChanges(patchFn: (obj: any) => void, changes: SimpleChanges) {\n const obj: any = {};\n for (const [key, simpleChange] of Object.entries(changes)) {\n if (simpleChange !== undefined) {\n obj[key] = simpleChange.currentValue;\n }\n }\n patchFn(obj);\n}\n\n/**\n * An abstract base class for widget directives, providing common functionality\n * for Angular components that interact with widgets.\n *\n * @template W - The type of the widget.\n */\n@Directive()\nexport abstract class BaseWidgetDirective<W extends Widget> implements OnChanges, OnInit {\n constructor(\n // eslint-disable-next-line @angular-eslint/prefer-inject\n private readonly _widget: AngularWidget<W>,\n // eslint-disable-next-line @angular-eslint/prefer-inject\n private readonly propRenames?: Record<string, string>\n ) {}\n\n /**\n * Retrieves the widget api\n * @returns the widget api\n */\n get api(): W['api'] {\n return this._widget.api;\n }\n\n /**\n * Retrieves the widget state. Each property of the state is exposed through an Angular {@link https://angular.dev/api/core/Signal | Signal}\n * @returns the widget state\n */\n get state(): AngularState<W> {\n return this._widget.state;\n }\n\n /**\n * Retrieves the widget directives\n * @returns the widget directives\n */\n get directives(): W['directives'] {\n return this._widget.directives;\n }\n\n /**\n * @inheritdoc\n * @internal\n */\n ngOnChanges(changes: SimpleChanges): void {\n const renamedChanges: SimpleChanges = {};\n if (this.propRenames) {\n for (const [key, simpleChange] of Object.entries(changes)) {\n const renamedKey = this.propRenames[key] ?? key;\n renamedChanges[renamedKey] = simpleChange;\n }\n } else {\n Object.assign(renamedChanges, changes);\n }\n patchSimpleChanges(this._widget.patch, renamedChanges);\n }\n\n /** @internal */\n ngOnInit(): void {\n this._widget.ngInit();\n }\n}\n","import { asWritable, computed, type ReadableSignal } from '@amadeus-it-group/tansu';\nimport type { FactoryProvider } from '@angular/core';\nimport { InjectionToken, Injector, Optional, SkipSelf, inject, runInInjectionContext } from '@angular/core';\nimport type { Partial2Levels, WidgetsConfigStore } from '@design-factory/core/config';\nimport { createWidgetsConfig } from '@design-factory/core/config';\nimport type { Widget, WidgetFactory, WidgetProps } from '@design-factory/core/types';\nimport { FACTORY_WIDGET_NAME } from '@design-factory/core/types';\nimport type { AngularWidget } from './types';\nimport { toAngularWritableSignal } from './utils/stores';\nimport { callWidgetFactoryWithConfig } from './utils/widget';\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nimport type { BaseWidgetDirective } from './utils/widget';\n\ntype AdaptParentConfig<Config> = (config: Partial2Levels<Config>) => Partial2Levels<Config>;\ntype InjectWidgetsConfig<Config> = (config?: Partial2Levels<Config>) => WidgetsConfigStore<Config>;\ntype GenericConfig = Record<string, Record<string, unknown>>;\n\nconst WIDGETS_CONFIG_INJECTION_TOKEN = new InjectionToken<WidgetsConfigStore<GenericConfig>>('widgetsConfig', {\n providedIn: 'root',\n factory: () => createWidgetsConfig()\n});\n\n/**\n * Creates a provider of widgets default configuration that inherits from any widgets default configuration already defined at an upper level\n * in the Angular dependency injection system. It contains its own set of widgets configuration properties that override the same properties form\n * the parent configuration.\n *\n * @remarks\n * The configuration is computed from the parent configuration in two steps:\n * - first step: the parent configuration is transformed by the adaptParentConfig function (if specified).\n * If adaptParentConfig is not specified, this step is skipped.\n * - second step: the configuration from step 1 is merged (2-levels deep) with the own$ store. The own$ store initially contains\n * an empty object (i.e. no property from the parent is overridden). It can be changed by calling set on the store returned by\n * {@link injectWidgetsConfig}.\n *\n * @param adaptParentConfig - optional function that receives a 2-levels copy of the widgets default configuration\n * defined at an upper level in the Angular dependency injection system (or an empty object if there is none) and returns the widgets\n * default configuration to be used.\n * It is called only if the configuration is needed, and was not yet computed for the current value of the parent configuration.\n * It is called in a tansu reactive context, so it can use any tansu store and will be called again if those stores change.\n * It is also called in an Angular injection context, so it can call the Angular inject function to get and use dependencies from the\n * Angular dependency injection system.\n *\n * @returns DI provider to be included a list of `providers` (for example at a component level or\n * any other level of the Angular dependency injection system)\n *\n * @example\n * ```typescript\n * @Component({\n * // ...\n * providers: [\n * provideWidgetsConfig((parentConfig) => {\n * // first step configuration: transforms the parent configuration\n * parentConfig.rating = parentConfig.rating ?? {};\n * parentConfig.rating.className = `${parentConfig.rating.className ?? ''} my-rating-extra-class`\n * return parentConfig;\n * })\n * ]\n * })\n * class MyComponent {\n * widgetsConfig = injectWidgetsConfig();\n * constructor() {\n * this.widgetsConfig.set({\n * // second step configuration: overrides the parent configuration\n * rating: {\n * slotStar: MyCustomSlotStar\n * }\n * });\n * }\n * // ...\n * }\n * ```\n */\nconst provideWidgetsConfig = (adaptParentConfig?: AdaptParentConfig<GenericConfig>): FactoryProvider => ({\n provide: WIDGETS_CONFIG_INJECTION_TOKEN,\n useFactory: (parent: WidgetsConfigStore<GenericConfig> | null) => {\n if (adaptParentConfig) {\n const injector = inject(Injector);\n const originalAdaptParentConfig = adaptParentConfig;\n adaptParentConfig = (value) => runInInjectionContext(injector, () => originalAdaptParentConfig(value));\n }\n return createWidgetsConfig(parent ?? undefined, adaptParentConfig);\n },\n deps: [[new SkipSelf(), new Optional(), WIDGETS_CONFIG_INJECTION_TOKEN]]\n});\n\n/**\n * Returns the widgets default configuration store that was provided in the current injection context.\n * Throws if the no widgets default configuration store was provided.\n *\n * @param defaultConfig - values to set as soon as the config is injected\n * @remarks\n * This function must be called from an injection context, such as a constructor, a factory function, a field initializer or\n * a function used with {@link https://angular.io/api/core/runInInjectionContext | runInInjectionContext}.\n *\n * @returns the widgets default configuration store.\n */\nconst injectWidgetsConfig: InjectWidgetsConfig<GenericConfig> = (defaultConfig?: Partial2Levels<GenericConfig>) => {\n const widgetsConfig = inject(WIDGETS_CONFIG_INJECTION_TOKEN);\n if (defaultConfig) {\n widgetsConfig.set(defaultConfig);\n }\n return widgetsConfig;\n};\n\n/**\n * Injects the configuration for a specific widget.\n *\n * @template T - The type of the widget configuration to be injected.\n * @param widgetName - The name of the widget whose configuration is to be injected.\n * @returns A `ReadableSignal` that provides a partial configuration of the specified widget or `undefined` if the configuration is not available.\n */\nexport const injectWidgetConfig = <T>(widgetName: string): ReadableSignal<Partial<T> | undefined> => {\n const widgetsConfig = inject(WIDGETS_CONFIG_INJECTION_TOKEN, { optional: true });\n return computed(() => widgetsConfig?.()[widgetName] as Partial<T> | undefined);\n};\n\n/**\n * Creates and initializes a widget using the provided factory and configuration options.\n *\n * The resulting widget can be easily hooked into the lifecycle of an Angular component through {@link BaseWidgetDirective}.\n *\n * @template W - The type of the widget.\n * @param factory - The factory function to create the widget.\n * @param options - The options for creating the widget.\n * @param options.defaultConfig - The default configuration for the widget.\n * @param options.events - The event handlers for the widget.\n * @param options.afterInit - A callback function to be called after the widget is initialized.\n * @returns The initialized widget.\n */\nexport const callWidgetFactory = <W extends Widget>(\n factory: WidgetFactory<W>,\n options?: {\n defaultConfig?: Partial<WidgetProps<W>> | ReadableSignal<Partial<WidgetProps<W>> | undefined>;\n events?: Partial<Pick<WidgetProps<W>, keyof WidgetProps<W> & `on${string}`>>;\n afterInit?: (widget: AngularWidget<W>) => void;\n }\n): AngularWidget<W> =>\n callWidgetFactoryWithConfig(factory, {\n widgetConfig: factory[FACTORY_WIDGET_NAME] ? (injectWidgetConfig(factory[FACTORY_WIDGET_NAME]) as any) : undefined,\n defaultConfig: options?.defaultConfig,\n events: options?.events,\n afterInit: options?.afterInit\n });\n\n/**\n * Utility to provide configuration for a specific DF component.\n *\n * @example\n * ```typescript\n * export const provideDfCollapseConfig = provideDfComponentConfig<DfCollapseConfig>(COLLAPSE_CONFIG_KEY);\n * ```\n *\n * @param componentKey the key of the component in the global configuration\n * @returns the component config provider\n */\nexport const provideDfComponentConfig = <T>(componentKey: string) => {\n return (config?: Partial<T> | ((prevConfig: Partial<T>) => Partial<T>)) => {\n const typedProvideWidgetsConfig = provideWidgetsConfig as (\n adaptParentConfig?: (parentConfig: { [componentKey]?: Partial<T> }) => { [componentKey]?: Partial<T> }\n ) => FactoryProvider;\n return typedProvideWidgetsConfig((prevConfig) => ({\n ...prevConfig,\n [componentKey]: {\n ...(prevConfig?.[componentKey] ?? {}),\n ...(typeof config === 'function' ? config(prevConfig?.[componentKey] ?? {}) : (config ?? {}))\n }\n }));\n };\n};\n\n/**\n * Utility to inject writable configuration for a specific DF component.\n *\n * @example\n * ```typescript\n * export const injectDfCollapseConfig = injectDfComponentConfig<DfCollapseConfig>(COLLAPSE_CONFIG_KEY);\n * ```\n *\n * @param componentKey the key of the component in the global configuration\n * @returns the inject function that returns the writable component configuration\n */\nexport const injectDfComponentConfig =\n <T>(componentKey: string) =>\n () => {\n const widgetsConfigStore = injectWidgetsConfig() as WidgetsConfigStore<{ [componentKey]?: Partial<T> }>;\n const componentConfigStore = asWritable(\n computed(() => widgetsConfigStore.own$()[componentKey] ?? {}) as ReadableSignal<Partial<T>>,\n (newConfig: Partial<T>) => {\n widgetsConfigStore.own$.update((currentConfig) => ({ ...currentConfig, [componentKey]: newConfig }));\n }\n );\n return toAngularWritableSignal(componentConfigStore);\n };\n","import type {\n Directive as AgnosUIDirective,\n DirectiveAndParam,\n DirectivesAndOptParam\n} from '@design-factory/core/types';\nimport { multiDirective } from '@design-factory/core/utils/directive';\nimport { isPlatformServer } from '@angular/common';\nimport type { OnChanges } from '@angular/core';\nimport {\n DestroyRef,\n Directive,\n ElementRef,\n Injector,\n PLATFORM_ID,\n afterNextRender,\n inject,\n runInInjectionContext,\n input\n} from '@angular/core';\n\n/**\n * A utility function to manage the lifecycle of a directive for a host element.\n *\n * This function handles the creation, updating, and destruction of a directive instance\n * associated with a host element. It ensures that the directive is called appropriately\n * based on the platform (server or client) and manages the directive's lifecycle within\n * the Angular injection context.\n *\n * @template T - The type of parameters that the directive accepts.\n *\n * @param [directive] - The directive to be applied to the host element.\n * @param [params] - The parameters to be passed to the directive.\n *\n * @returns An object containing an `update` function to update the directive and its parameters.\n */\nexport const useDirectiveForHost = <T>(directive?: AgnosUIDirective<T>, params?: T) => {\n const injector = inject(Injector);\n const ref = inject(ElementRef);\n const platform = inject(PLATFORM_ID);\n\n let instance: undefined | ReturnType<AgnosUIDirective<T>>;\n let plannedCallDirective = false;\n\n const callDirective = isPlatformServer(platform)\n ? () => {\n instance = directive?.(ref.nativeElement, params as T);\n }\n : () => {\n if (plannedCallDirective || !directive) {\n return;\n }\n plannedCallDirective = true;\n runInInjectionContext(injector, () => {\n afterNextRender(() => {\n plannedCallDirective = false;\n instance = directive?.(ref.nativeElement, params as T);\n });\n });\n };\n\n function destroyDirectiveInstance() {\n const oldInstance = instance;\n instance = undefined;\n directive = undefined;\n oldInstance?.destroy?.();\n }\n\n inject(DestroyRef).onDestroy(destroyDirectiveInstance);\n\n function update(newDirective?: AgnosUIDirective<T>, newParams?: T) {\n if (newDirective !== directive) {\n void destroyDirectiveInstance();\n directive = newDirective;\n params = newParams;\n callDirective();\n } else if (newParams != params) {\n params = newParams;\n instance?.update?.(params as T);\n }\n }\n\n callDirective();\n return { update };\n};\n\n/**\n * A directive that allows the use of another directive with optional parameters.\n *\n * @template T - The type of the parameter that can be passed to the directive.\n *\n * @remarks\n * This directive uses a private instance of {@link useDirectiveForHost} to manage the directive and its parameter.\n */\n@Directive({\n selector: '[dfUse]'\n})\nexport class UseDirective<T> implements OnChanges {\n readonly use = input.required<AgnosUIDirective | DirectiveAndParam<T>>({ alias: 'dfUse' });\n readonly #useDirective = useDirectiveForHost<T>();\n\n /** @internal */\n ngOnChanges() {\n const use = this.use();\n const [directive, param] = Array.isArray(use) ? use : [use as any];\n this.#useDirective.update(directive, param);\n }\n}\n\n/**\n * A directive that allows the use of multiple directives on a host element.\n *\n * @template T - A tuple type representing the directives and their optional parameters.\n */\n@Directive({\n selector: '[dfUseMulti]'\n})\nexport class UseMultiDirective<T extends any[]> implements OnChanges {\n /**\n * An input property that takes a tuple of directives and their optional parameters.\n */\n readonly useMulti = input.required<DirectivesAndOptParam<T>>({ alias: 'dfUseMulti' });\n\n readonly #useDirective = useDirectiveForHost<DirectivesAndOptParam<T>>();\n\n /** @internal */\n ngOnChanges() {\n this.#useDirective.update(multiDirective, this.useMulti());\n }\n}\n","import type { Widget } from '@design-factory/core/types';\nimport type { AngularWidget } from './types';\nimport { Directive, OnChanges, OnInit, SimpleChanges } from '@angular/core';\n\n/**\n * An abstract base class for widget directives, providing common functionality\n * for Angular components that interact with widgets.\n *\n * @template W - The type of the widget.\n */\n@Directive()\nexport abstract class AgnosWidgetDirective<W extends Widget> implements OnChanges, OnInit {\n // eslint-disable-next-line @angular-eslint/prefer-inject\n constructor(protected readonly _agnosWidget: AngularWidget<W>) {}\n\n /** @internal */\n ngOnChanges(changes: SimpleChanges): void {\n const patchData: any = {};\n for (const [key, simpleChange] of Object.entries(changes)) {\n if (simpleChange !== undefined) {\n patchData[key] = simpleChange.currentValue;\n }\n }\n this._agnosWidget.patch(patchData);\n }\n\n /** @internal */\n ngOnInit(): void {\n this._agnosWidget.ngInit();\n }\n\n /**\n * Access to the widget state.\n */\n protected get state(): AngularWidget<W>['state'] {\n return this._agnosWidget.state;\n }\n\n /**\n * Access to the widget API.\n */\n protected get api(): AngularWidget<W>['api'] {\n return this._agnosWidget.api;\n }\n\n /**\n * Access to the widget directives.\n */\n protected get directives(): AngularWidget<W>['directives'] {\n return this._agnosWidget.directives;\n }\n}\n","import { createMatchMedia } from '@design-factory/core/services/matchMedia';\n\n// Breakpoints based on Bootstrap 5\n\n/**\n * sm breakpoint,\n * tansu signal that returns true when the viewport is at least 576px wide\n */\nexport const sm$ = createMatchMedia('(min-width: 576px)');\n/**\n * md breakpoint,\n * tansu signal that returns true when the viewport is at least 768px wide\n */\nexport const md$ = createMatchMedia('(min-width: 768px)');\n/**\n * lg breakpoint,\n * tansu signal that returns true when the viewport is at least 992px wide\n */\nexport const lg$ = createMatchMedia('(min-width: 992px)');\n/**\n * xl breakpoint,\n * tansu signal that returns true when the viewport is at least 1200px wide\n */\nexport const xl$ = createMatchMedia('(min-width: 1200px)');\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;AAIA;;;;;;;;;;;AAWG;AACI,MAAM,eAAe,GAAG,CAAI,WAA8B,KAAe;;;AAG9E,IAAA,MAAM,GAAG,GAAG,MAAM,CAAC,SAAqB,EAAA,EAAA,IAAA,SAAA,GAAA,EAAA,SAAA,EAAA,KAAA,EAAA,GAAA,EAAA,CAAA,EAAI,KAAK,EAAE,MAAM,KAAK,GAAG;IACjE,MAAM,YAAY,GAAG,WAAW,CAAC,SAAS,CAAC,CAAC,KAAK,KAAI;AACnD,QAAA,GAAG,CAAC,GAAG,CAAC,KAAK,CAAC;AAChB,IAAA,CAAC,CAAC;IACF,MAAM,CAAC,UAAU,CAAC,CAAC,SAAS,CAAC,YAAY,CAAC;AAE1C,IAAA,OAAO,GAAG,CAAC,UAAU,EAAE;AACzB;AAEA;;;;;;;;;;;AAWG;AACI,MAAM,uBAAuB,GAAG,CAAI,WAAmC,KAAuB;AACnG,IAAA,MAAM,GAAG,GAAG,MAAM,CAAC,SAAqB,EAAA,EAAA,IAAA,SAAA,GAAA,EAAA,SAAA,EAAA,KAAA,EAAA,GAAA,EAAA,CAAA,EAAI,KAAK,EAAE,MAAM,KAAK,GAAG;IACjE,MAAM,GAAG,GAAG,GAAG,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,CAAC;IAC7B,MAAM,YAAY,GAAG,WAAW,CAAC,SAAS,CAAC,CAAC,KAAK,KAAI;QACnD,GAAG,CAAC,KAAK,CAAC;AACZ,IAAA,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C,GAAG;IAC9B;AAEA;;AAEG;AACH,IAAA,IAAc,UAAU,GAAA;AACtB,QAAA,OAAO,IAAI,CAAC,YAAY,CAAC,UAAU;IACrC;8GAvCoB,oBAAoB,EAAA,IAAA,EAAA,SAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;kGAApB,oBAAoB,EAAA,YAAA,EAAA,IAAA,EAAA,aAAA,EAAA,IAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;;2FAApB,oBAAoB,EAAA,UAAA,EAAA,CAAA;kBADzC;;;ACRD;AAEA;;;AAGG;MACU,GAAG,GAAG,gBAAgB,CAAC,oBAAoB;AACxD;;;AAGG;MACU,GAAG,GAAG,gBAAgB,CAAC,oBAAoB;AACxD;;;AAGG;MACU,GAAG,GAAG,gBAAgB,CAAC,oBAAoB;AACxD;;;AAGG;MACU,GAAG,GAAG,gBAAgB,CAAC,qBAAqB;;ACvBzD;;AAEG;;;;"}
1
+ {"version":3,"file":"design-factory-angular-internals.mjs","sources":["../../internals/utils/stores.ts","../../internals/utils/widget.ts","../../internals/config.ts","../../internals/utils/directive.ts","../../internals/widget.directive.ts","../../internals/utils/coercion.ts","../../internals/design-factory-angular-internals.ts"],"sourcesContent":["import type { ReadableSignal, WritableSignal as TansuWritableSignal } from '@amadeus-it-group/tansu';\nimport type { Signal, WritableSignal } from '@angular/core';\nimport { DestroyRef, inject, signal } from '@angular/core';\n\n/**\n * Converts a Tansu `ReadableSignal` to an Angular `Signal`.\n *\n * This function wraps the provided Tansu signal in an Angular signal. It subscribes to the\n * Tansu signal and updates the Angular signal with the received values. The equality function\n * for the Angular signal is set to always return false, ensuring that every new value from the\n * Tansu signal triggers an update.\n *\n * @template T - The type of the value emitted by the signals.\n * @param tansuSignal - The Tansu signal to convert.\n * @returns - The resulting Angular signal.\n */\nexport const toAngularSignal = <T>(tansuSignal: ReadableSignal<T>): Signal<T> => {\n // The equality of objects from 2 sequential emissions is already checked in tansu signal.\n // Here we'll always emit the value received from tansu signal, therefor the equality function\n const res = signal(undefined as any as T, { equal: () => false });\n const subscription = tansuSignal.subscribe((value) => {\n res.set(value);\n });\n inject(DestroyRef).onDestroy(subscription);\n\n return res.asReadonly();\n};\n\n/**\n * Converts a Tansu `WritableSignal` to an Angular `WritableSignal`.\n *\n * This function wraps the provided Tansu signal in an Angular signal. It subscribes to the\n * Tansu signal and updates the Angular signal with the received values. The equality function\n * for the Angular signal is set to always return false, ensuring that every new value from the\n * Tansu signal triggers an update.\n *\n * @template T - The type of the value emitted by the signals.\n * @param tansuSignal - The Tansu signal to convert.\n * @returns - The resulting Angular signal.\n */\nexport const toAngularWritableSignal = <T>(tansuSignal: TansuWritableSignal<T>): WritableSignal<T> => {\n const res = signal(undefined as any as T, { equal: () => false });\n const set = res.set.bind(res);\n const subscription = tansuSignal.subscribe((value) => {\n set(value);\n });\n inject(DestroyRef).onDestroy(subscription);\n res.set = tansuSignal.set;\n res.update = tansuSignal.update;\n return res;\n};\n","import { computed, type ReadableSignal } from '@amadeus-it-group/tansu';\nimport type { OnChanges, OnInit, SimpleChanges } from '@angular/core';\nimport { Directive, Injector, inject, runInInjectionContext } from '@angular/core';\nimport type { AngularState, AngularWidget } from '../types';\nimport type { Widget, WidgetFactory, WidgetProps } from '@design-factory/core/types';\nimport { toAngularSignal } from './stores';\nimport { toReadableStore } from '@design-factory/core/utils/stores';\n\n/**\n * Call a widget factory using provided configs.\n *\n * The resulting widget can be easily hooked into the lifecycle of an Angular component through {@link BaseWidgetDirective}.\n *\n * @param factory - the widget factory to call\n * @param options - the options\n * @param options.defaultConfig - the default config of the widget\n * @param options.widgetConfig - the config of the widget, overriding the defaultConfig\n * @param options.events - the events of the widget\n * @param options.afterInit - a callback to call after successful setup of the widget\n * @returns the widget\n */\nexport const callWidgetFactoryWithConfig = <W extends Widget>(\n factory: WidgetFactory<W>,\n options?: {\n defaultConfig?: Partial<WidgetProps<W>> | ReadableSignal<Partial<WidgetProps<W>> | undefined>;\n widgetConfig?: null | undefined | ReadableSignal<Partial<WidgetProps<W>> | undefined>;\n events?: Partial<Pick<WidgetProps<W>, keyof WidgetProps<W> & `on${string}`>>;\n afterInit?: (widget: AngularWidget<W>) => void;\n }\n): AngularWidget<W> => {\n const { defaultConfig, widgetConfig, events: eventsProp, afterInit } = options ?? {};\n const injector = inject(Injector);\n const props = {};\n let initDone: () => void;\n\n const res = {\n initialized: new Promise<void>((resolve) => {\n initDone = resolve;\n }),\n patch(newProps: Partial<WidgetProps<W>>) {\n // temporary function replaced in ngInit\n Object.assign(props, newProps);\n },\n ngInit() {\n runInInjectionContext(injector, () => {\n const defaultConfig$ = toReadableStore(defaultConfig);\n const widget = factory({\n config: computed(() => ({\n ...defaultConfig$(),\n ...widgetConfig?.(),\n ...(eventsProp as Partial<WidgetProps<W>>)\n })),\n props\n });\n Object.assign(res, {\n patch: widget.patch,\n directives: widget.directives,\n api: widget.api,\n state: Object.fromEntries(\n Object.entries<ReadableSignal<unknown>>(widget.stores as any).map(([key, val]) => [\n key.slice(0, -1),\n toAngularSignal(val)\n ])\n )\n });\n afterInit?.(res as AngularWidget<W>);\n initDone();\n });\n }\n };\n\n return res as AngularWidget<W>;\n};\n\nfunction patchSimpleChanges(patchFn: (obj: any) => void, changes: SimpleChanges) {\n const obj: any = {};\n for (const [key, simpleChange] of Object.entries(changes)) {\n if (simpleChange !== undefined) {\n obj[key] = simpleChange.currentValue;\n }\n }\n patchFn(obj);\n}\n\n/**\n * An abstract base class for widget directives, providing common functionality\n * for Angular components that interact with widgets.\n *\n * @template W - The type of the widget.\n */\n@Directive()\nexport abstract class BaseWidgetDirective<W extends Widget> implements OnChanges, OnInit {\n constructor(\n // eslint-disable-next-line @angular-eslint/prefer-inject\n private readonly _widget: AngularWidget<W>,\n // eslint-disable-next-line @angular-eslint/prefer-inject\n private readonly propRenames?: Record<string, string>\n ) {}\n\n /**\n * Retrieves the widget api\n * @returns the widget api\n */\n get api(): W['api'] {\n return this._widget.api;\n }\n\n /**\n * Retrieves the widget state. Each property of the state is exposed through an Angular {@link https://angular.dev/api/core/Signal | Signal}\n * @returns the widget state\n */\n get state(): AngularState<W> {\n return this._widget.state;\n }\n\n /**\n * Retrieves the widget directives\n * @returns the widget directives\n */\n get directives(): W['directives'] {\n return this._widget.directives;\n }\n\n /**\n * @inheritdoc\n * @internal\n */\n ngOnChanges(changes: SimpleChanges): void {\n const renamedChanges: SimpleChanges = {};\n if (this.propRenames) {\n for (const [key, simpleChange] of Object.entries(changes)) {\n const renamedKey = this.propRenames[key] ?? key;\n renamedChanges[renamedKey] = simpleChange;\n }\n } else {\n Object.assign(renamedChanges, changes);\n }\n patchSimpleChanges(this._widget.patch, renamedChanges);\n }\n\n /** @internal */\n ngOnInit(): void {\n this._widget.ngInit();\n }\n}\n","import { asWritable, computed, type ReadableSignal } from '@amadeus-it-group/tansu';\nimport type { FactoryProvider } from '@angular/core';\nimport { InjectionToken, Injector, Optional, SkipSelf, inject, runInInjectionContext } from '@angular/core';\nimport type { Partial2Levels, WidgetsConfigStore } from '@design-factory/core/config';\nimport { createWidgetsConfig } from '@design-factory/core/config';\nimport type { Widget, WidgetFactory, WidgetProps } from '@design-factory/core/types';\nimport { FACTORY_WIDGET_NAME } from '@design-factory/core/types';\nimport type { AngularWidget } from './types';\nimport { toAngularWritableSignal } from './utils/stores';\nimport { callWidgetFactoryWithConfig } from './utils/widget';\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nimport type { BaseWidgetDirective } from './utils/widget';\n\ntype AdaptParentConfig<Config> = (config: Partial2Levels<Config>) => Partial2Levels<Config>;\ntype InjectWidgetsConfig<Config> = (config?: Partial2Levels<Config>) => WidgetsConfigStore<Config>;\ntype GenericConfig = Record<string, Record<string, unknown>>;\n\nconst WIDGETS_CONFIG_INJECTION_TOKEN = new InjectionToken<WidgetsConfigStore<GenericConfig>>('widgetsConfig', {\n providedIn: 'root',\n factory: () => createWidgetsConfig()\n});\n\n/**\n * Creates a provider of widgets default configuration that inherits from any widgets default configuration already defined at an upper level\n * in the Angular dependency injection system. It contains its own set of widgets configuration properties that override the same properties form\n * the parent configuration.\n *\n * @remarks\n * The configuration is computed from the parent configuration in two steps:\n * - first step: the parent configuration is transformed by the adaptParentConfig function (if specified).\n * If adaptParentConfig is not specified, this step is skipped.\n * - second step: the configuration from step 1 is merged (2-levels deep) with the own$ store. The own$ store initially contains\n * an empty object (i.e. no property from the parent is overridden). It can be changed by calling set on the store returned by\n * {@link injectWidgetsConfig}.\n *\n * @param adaptParentConfig - optional function that receives a 2-levels copy of the widgets default configuration\n * defined at an upper level in the Angular dependency injection system (or an empty object if there is none) and returns the widgets\n * default configuration to be used.\n * It is called only if the configuration is needed, and was not yet computed for the current value of the parent configuration.\n * It is called in a tansu reactive context, so it can use any tansu store and will be called again if those stores change.\n * It is also called in an Angular injection context, so it can call the Angular inject function to get and use dependencies from the\n * Angular dependency injection system.\n *\n * @returns DI provider to be included a list of `providers` (for example at a component level or\n * any other level of the Angular dependency injection system)\n *\n * @example\n * ```typescript\n * @Component({\n * // ...\n * providers: [\n * provideWidgetsConfig((parentConfig) => {\n * // first step configuration: transforms the parent configuration\n * parentConfig.rating = parentConfig.rating ?? {};\n * parentConfig.rating.className = `${parentConfig.rating.className ?? ''} my-rating-extra-class`\n * return parentConfig;\n * })\n * ]\n * })\n * class MyComponent {\n * widgetsConfig = injectWidgetsConfig();\n * constructor() {\n * this.widgetsConfig.set({\n * // second step configuration: overrides the parent configuration\n * rating: {\n * slotStar: MyCustomSlotStar\n * }\n * });\n * }\n * // ...\n * }\n * ```\n */\nconst provideWidgetsConfig = (adaptParentConfig?: AdaptParentConfig<GenericConfig>): FactoryProvider => ({\n provide: WIDGETS_CONFIG_INJECTION_TOKEN,\n useFactory: (parent: WidgetsConfigStore<GenericConfig> | null) => {\n if (adaptParentConfig) {\n const injector = inject(Injector);\n const originalAdaptParentConfig = adaptParentConfig;\n adaptParentConfig = (value) => runInInjectionContext(injector, () => originalAdaptParentConfig(value));\n }\n return createWidgetsConfig(parent ?? undefined, adaptParentConfig);\n },\n deps: [[new SkipSelf(), new Optional(), WIDGETS_CONFIG_INJECTION_TOKEN]]\n});\n\n/**\n * Returns the widgets default configuration store that was provided in the current injection context.\n * Throws if the no widgets default configuration store was provided.\n *\n * @param defaultConfig - values to set as soon as the config is injected\n * @remarks\n * This function must be called from an injection context, such as a constructor, a factory function, a field initializer or\n * a function used with {@link https://angular.io/api/core/runInInjectionContext | runInInjectionContext}.\n *\n * @returns the widgets default configuration store.\n */\nconst injectWidgetsConfig: InjectWidgetsConfig<GenericConfig> = (defaultConfig?: Partial2Levels<GenericConfig>) => {\n const widgetsConfig = inject(WIDGETS_CONFIG_INJECTION_TOKEN);\n if (defaultConfig) {\n widgetsConfig.set(defaultConfig);\n }\n return widgetsConfig;\n};\n\n/**\n * Injects the configuration for a specific widget.\n *\n * @template T - The type of the widget configuration to be injected.\n * @param widgetName - The name of the widget whose configuration is to be injected.\n * @returns A `ReadableSignal` that provides a partial configuration of the specified widget or `undefined` if the configuration is not available.\n */\nexport const injectWidgetConfig = <T>(widgetName: string): ReadableSignal<Partial<T> | undefined> => {\n const widgetsConfig = inject(WIDGETS_CONFIG_INJECTION_TOKEN, { optional: true });\n return computed(() => widgetsConfig?.()[widgetName] as Partial<T> | undefined);\n};\n\n/**\n * Creates and initializes a widget using the provided factory and configuration options.\n *\n * The resulting widget can be easily hooked into the lifecycle of an Angular component through {@link BaseWidgetDirective}.\n *\n * @template W - The type of the widget.\n * @param factory - The factory function to create the widget.\n * @param options - The options for creating the widget.\n * @param options.defaultConfig - The default configuration for the widget.\n * @param options.events - The event handlers for the widget.\n * @param options.afterInit - A callback function to be called after the widget is initialized.\n * @returns The initialized widget.\n */\nexport const callWidgetFactory = <W extends Widget>(\n factory: WidgetFactory<W>,\n options?: {\n defaultConfig?: Partial<WidgetProps<W>> | ReadableSignal<Partial<WidgetProps<W>> | undefined>;\n events?: Partial<Pick<WidgetProps<W>, keyof WidgetProps<W> & `on${string}`>>;\n afterInit?: (widget: AngularWidget<W>) => void;\n }\n): AngularWidget<W> =>\n callWidgetFactoryWithConfig(factory, {\n widgetConfig: factory[FACTORY_WIDGET_NAME] ? (injectWidgetConfig(factory[FACTORY_WIDGET_NAME]) as any) : undefined,\n defaultConfig: options?.defaultConfig,\n events: options?.events,\n afterInit: options?.afterInit\n });\n\n/**\n * Utility to provide configuration for a specific DF component.\n *\n * @example\n * ```typescript\n * export const provideDfCollapseConfig = provideDfComponentConfig<DfCollapseConfig>(COLLAPSE_CONFIG_KEY);\n * ```\n *\n * @param componentKey the key of the component in the global configuration\n * @returns the component config provider\n */\nexport const provideDfComponentConfig = <T>(componentKey: string) => {\n return (config?: Partial<T> | ((prevConfig: Partial<T>) => Partial<T>)) => {\n const typedProvideWidgetsConfig = provideWidgetsConfig as (\n adaptParentConfig?: (parentConfig: { [componentKey]?: Partial<T> }) => { [componentKey]?: Partial<T> }\n ) => FactoryProvider;\n return typedProvideWidgetsConfig((prevConfig) => ({\n ...prevConfig,\n [componentKey]: {\n ...(prevConfig?.[componentKey] ?? {}),\n ...(typeof config === 'function' ? config(prevConfig?.[componentKey] ?? {}) : (config ?? {}))\n }\n }));\n };\n};\n\n/**\n * Utility to inject writable configuration for a specific DF component.\n *\n * @example\n * ```typescript\n * export const injectDfCollapseConfig = injectDfComponentConfig<DfCollapseConfig>(COLLAPSE_CONFIG_KEY);\n * ```\n *\n * @param componentKey the key of the component in the global configuration\n * @returns the inject function that returns the writable component configuration\n */\nexport const injectDfComponentConfig =\n <T>(componentKey: string) =>\n () => {\n const widgetsConfigStore = injectWidgetsConfig() as WidgetsConfigStore<{ [componentKey]?: Partial<T> }>;\n const componentConfigStore = asWritable(\n computed(() => widgetsConfigStore.own$()[componentKey] ?? {}) as ReadableSignal<Partial<T>>,\n (newConfig: Partial<T>) => {\n widgetsConfigStore.own$.update((currentConfig) => ({ ...currentConfig, [componentKey]: newConfig }));\n }\n );\n return toAngularWritableSignal(componentConfigStore);\n };\n","import type {\n Directive as AgnosUIDirective,\n DirectiveAndParam,\n DirectivesAndOptParam\n} from '@design-factory/core/types';\nimport { multiDirective } from '@design-factory/core/utils/directive';\nimport { isPlatformServer } from '@angular/common';\nimport type { OnChanges } from '@angular/core';\nimport {\n DestroyRef,\n Directive,\n ElementRef,\n Injector,\n PLATFORM_ID,\n afterNextRender,\n inject,\n runInInjectionContext,\n input,\n effect,\n untracked\n} from '@angular/core';\n\n/**\n * A utility function to manage the lifecycle of a directive for a host element.\n *\n * This function handles the creation, updating, and destruction of a directive instance\n * associated with a host element. It ensures that the directive is called appropriately\n * based on the platform (server or client) and manages the directive's lifecycle within\n * the Angular injection context.\n *\n * @template T - The type of parameters that the directive accepts.\n *\n * @param [directive] - The directive to be applied to the host element.\n * @param [params] - The parameters to be passed to the directive.\n * @param [injector] - The Angular injector to be used for managing the directive's lifecycle.\n * If not provided, the default injector (from the current injection context) will be used.\n *\n * @returns An object containing an `update` function to update the directive and its parameters.\n */\nexport const useDirectiveForHost = <T>(\n directive?: AgnosUIDirective<T>,\n params?: T,\n injector: Injector = inject(Injector)\n) => {\n const ref = injector.get(ElementRef);\n const platform = injector.get(PLATFORM_ID);\n\n let instance: undefined | ReturnType<AgnosUIDirective<T>>;\n let plannedCallDirective = false;\n\n const callDirective = isPlatformServer(platform)\n ? () => {\n instance = directive?.(ref.nativeElement, params as T);\n }\n : () => {\n if (plannedCallDirective || !directive) {\n return;\n }\n plannedCallDirective = true;\n runInInjectionContext(injector, () => {\n afterNextRender(() => {\n plannedCallDirective = false;\n instance = directive?.(ref.nativeElement, params as T);\n });\n });\n };\n\n function destroyDirectiveInstance() {\n const oldInstance = instance;\n instance = undefined;\n directive = undefined;\n oldInstance?.destroy?.();\n }\n\n injector.get(DestroyRef).onDestroy(destroyDirectiveInstance);\n\n function update(newDirective?: AgnosUIDirective<T>, newParams?: T) {\n if (newDirective !== directive) {\n void destroyDirectiveInstance();\n directive = newDirective;\n params = newParams;\n callDirective();\n } else if (newParams != params) {\n params = newParams;\n instance?.update?.(params as T);\n }\n }\n\n callDirective();\n return { update };\n};\n\n/**\n * A directive that allows the use of another directive with optional parameters.\n *\n * @template T - The type of the parameter that can be passed to the directive.\n *\n * @remarks\n * This directive uses a private instance of {@link useDirectiveForHost} to manage the directive and its parameter.\n */\n@Directive({\n selector: '[dfUse]'\n})\nexport class UseDirective<T> implements OnChanges {\n readonly use = input.required<AgnosUIDirective | DirectiveAndParam<T>>({ alias: 'dfUse' });\n readonly #useDirective = useDirectiveForHost<T>();\n\n /** @internal */\n ngOnChanges() {\n const use = this.use();\n const [directive, param] = Array.isArray(use) ? use : [use as any];\n this.#useDirective.update(directive, param);\n }\n}\n\n/**\n * A directive that allows the use of multiple directives on a host element.\n *\n * @template T - A tuple type representing the directives and their optional parameters.\n */\n@Directive({\n selector: '[dfUseMulti]'\n})\nexport class UseMultiDirective<T extends any[]> implements OnChanges {\n /**\n * An input property that takes a tuple of directives and their optional parameters.\n */\n readonly useMulti = input.required<DirectivesAndOptParam<T>>({ alias: 'dfUseMulti' });\n\n readonly #useDirective = useDirectiveForHost<DirectivesAndOptParam<T>>();\n\n /** @internal */\n ngOnChanges() {\n this.#useDirective.update(multiDirective, this.useMulti());\n }\n}\n\n/**\n * A flexible type representing either a direct DOM element, an Angular {@link ElementRef},\n * or a reactive accessor (signal/function) returning one of these.\n *\n * Accepts `null` or `undefined` to represent the absence of an element.\n * When a function is provided, it is called inside an Angular {@link effect} so that\n * changes to the underlying signal automatically re-apply the directive.\n */\nexport type HTMLElementOrRef =\n HTMLElement | ElementRef | null | undefined | (() => HTMLElement | ElementRef | null | undefined);\n\n/**\n * Applies an AgnosUI directive to an arbitrary DOM element (not necessarily the host element)\n * and manages its lifecycle via an Angular {@link effect}.\n *\n * Unlike {@link useDirectiveForHost}, which targets the component's own host element,\n * this function lets you bind a directive to any element referenced by a signal, an\n * {@link ElementRef}, or a plain `HTMLElement`. The directive instance is automatically\n * created when the element becomes available and destroyed when the element changes or\n * the effect is cleaned up.\n *\n * @param element - The target element or a reactive accessor returning it.\n * @param directive - The AgnosUI directive to apply.\n * @param injector - The Angular {@link Injector} used to create the effect. Defaults to the\n * current injection context.\n */\nexport const useDirectiveForElement = (\n element: HTMLElementOrRef,\n directive: AgnosUIDirective,\n injector: Injector = inject(Injector)\n) => {\n effect(\n (onCleanup) => {\n const domRef = typeof element === 'function' ? element() : element;\n const domElement = domRef instanceof ElementRef ? domRef.nativeElement : domRef;\n if (domElement) {\n untracked(() => {\n const instance = directive(domElement);\n onCleanup(() => {\n instance?.destroy?.();\n });\n });\n }\n },\n { injector }\n );\n};\n\n/**\n * Uses multiple AgnosUI directives from an object (typically a widget instance) on their\n * corresponding DOM elements in a single call.\n *\n * This is a convenience wrapper around {@link useDirectiveForElement} designed for use with\n * widget objects that expose a `directives` map. It iterates over the provided `links` and\n * binds each directive to its target element.\n *\n * The `object` can either directly contain directive properties or expose them under a\n * `directives` key (the standard shape of AgnosUI widgets).\n *\n * @template U - The full type of the object (returned as-is for chaining).\n * @template T - A record mapping directive names to AgnosUI directives.\n *\n * @param object - The widget or directive map to read directives from.\n * @param links - A partial map of directive names to their target elements or element accessors.\n * @param injector - The Angular {@link Injector} used to create effects. Defaults to the\n * current injection context.\n * @returns The original `object`, unchanged, for convenient chaining.\n */\nexport const useDirectivesForElements = <U, T extends { [K in keyof T]: AgnosUIDirective }>(\n object: U & (T | { directives: T }),\n links: {\n [K in keyof T]?: HTMLElementOrRef;\n },\n injector: Injector = inject(Injector)\n): U => {\n const directives = 'directives' in object ? object.directives : object;\n for (const [key, signalElement] of Object.entries(links)) {\n useDirectiveForElement(signalElement as HTMLElementOrRef, directives[key as keyof T], injector);\n }\n return object;\n};\n","import type { Widget } from '@design-factory/core/types';\nimport type { AngularWidget } from './types';\nimport { Directive, OnChanges, OnInit, SimpleChanges } from '@angular/core';\n\n/**\n * An abstract base class for widget directives, providing common functionality\n * for Angular components that interact with widgets.\n *\n * @template W - The type of the widget.\n */\n@Directive()\nexport abstract class AgnosWidgetDirective<W extends Widget> implements OnChanges, OnInit {\n // eslint-disable-next-line @angular-eslint/prefer-inject\n constructor(protected readonly _agnosWidget: AngularWidget<W>) {}\n\n /** @internal */\n ngOnChanges(changes: SimpleChanges): void {\n const patchData: any = {};\n for (const [key, simpleChange] of Object.entries(changes)) {\n if (simpleChange !== undefined) {\n patchData[key] = simpleChange.currentValue;\n }\n }\n this._agnosWidget.patch(patchData);\n }\n\n /** @internal */\n ngOnInit(): void {\n this._agnosWidget.ngInit();\n }\n\n /**\n * Access to the widget state.\n */\n protected get state(): AngularWidget<W>['state'] {\n return this._agnosWidget.state;\n }\n\n /**\n * Access to the widget API.\n */\n protected get api(): AngularWidget<W>['api'] {\n return this._agnosWidget.api;\n }\n\n /**\n * Access to the widget directives.\n */\n protected get directives(): AngularWidget<W>['directives'] {\n return this._agnosWidget.directives;\n }\n}\n","import { booleanAttribute, numberAttribute } from '@angular/core';\n\n/**\n * Transforms a value (typically a string) to a boolean.\n * Intended to be used as a transform function of an input.\n *\n * @example\n * ```readonly status = input({ transform: auBooleanAttribute });```\n * @param value - Value to be transformed.\n * @returns the value transformed\n */\nexport function auBooleanAttribute(value: unknown): boolean | undefined {\n if (value === undefined) {\n return undefined;\n }\n return booleanAttribute(value);\n}\n\n/**\n * Transforms a value (typically a string) to a number.\n * Intended to be used as a transform function of an input.\n * @param value - Value to be transformed.\n *\n * @example\n * ```readonly id = input({ transform: auNumberAttribute });```\n * @returns the value transformed\n */\nexport function auNumberAttribute(value: unknown): number | undefined {\n if (value === undefined) {\n return undefined;\n }\n return numberAttribute(value);\n}\n\n/**\n * Transforms a value (typically a string) to a number.\n * Intended to be used as a transform function of an input.\n * @param value - Value to be transformed. `null` or `undefined`, returns the value unchanged.\n *\n * @example\n * ```readonly id = input({ transform: auNumberOrNullAttribute });```\n * @returns the value transformed\n */\nexport function auNumberOrNullAttribute(value: unknown): number | null | undefined {\n if (value == null) {\n return value;\n }\n return numberAttribute(value);\n}\n","/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I,KAAK,KAAK,SAAS,EAAE;AACvB,QAAA,OAAO,SAAS;IAClB;AACA,IAAA,OAAO,gBAAgB,CAAC,KAAK,CAAC;AAChC;AAEA;;;;;;;;AAQG;AACG,SAAU,iBAAiB,CAAC,KAAc,EAAA;AAC9C,IAAA,IAAI,KAAK,KAAK,SAAS,EAAE;AACvB,QAAA,OAAO,SAAS;IAClB;AACA,IAAA,OAAO,eAAe,CAAC,KAAK,CAAC;AAC/B;AAEA;;;;;;;;AAQG;AACG,SAAU,uBAAuB,CAAC,KAAc,EAAA;AACpD,IAAA,IAAI,KAAK,IAAI,IAAI,EAAE;AACjB,QAAA,OAAO,KAAK;IACd;AACA,IAAA,OAAO,eAAe,CAAC,KAAK,CAAC;AAC/B;;AChDA;;AAEG;;;;"}
@@ -0,0 +1,43 @@
1
+ import * as i0 from '@angular/core';
2
+ import { input, ViewEncapsulation, Component } from '@angular/core';
3
+
4
+ /**
5
+ * Visual separator between two regions of content.
6
+ *
7
+ * Replaces the legacy `<hr>` and `.vertical-separator` usages. Spacing is the consumer's
8
+ * responsibility — apply margins on the host or wrapping element.
9
+ *
10
+ * @experimental 22.0.0
11
+ */
12
+ class DfSeparator {
13
+ constructor() {
14
+ /**
15
+ * Separator orientation.
16
+ *
17
+ * Supported orientations: `'horizontal'`, `'vertical'`.
18
+ *
19
+ * @defaultValue `'horizontal'`
20
+ */
21
+ this.orientation = input('horizontal', /* @ts-ignore */
22
+ ...(ngDevMode ? [{ debugName: "orientation" }] : /* istanbul ignore next */ []));
23
+ }
24
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.4", ngImport: i0, type: DfSeparator, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
25
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.4", type: DfSeparator, isStandalone: true, selector: "df-separator", inputs: { orientation: { classPropertyName: "orientation", publicName: "orientation", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "role": "separator" }, properties: { "attr.aria-orientation": "orientation()", "class.df-separator-horizontal": "orientation() === 'horizontal'", "class.df-separator-vertical": "orientation() === 'vertical'" }, classAttribute: "df-separator" }, ngImport: i0, template: '', isInline: true, styles: [".df-separator{display:block;background-color:var(--df-color-inert-neutral-main-border);border:0;margin:0}.df-separator-horizontal{width:100%;height:1px}.df-separator-vertical{display:inline-block;width:1px;height:100%}\n"], encapsulation: i0.ViewEncapsulation.None }); }
26
+ }
27
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.4", ngImport: i0, type: DfSeparator, decorators: [{
28
+ type: Component,
29
+ args: [{ selector: 'df-separator', template: '', host: {
30
+ role: 'separator',
31
+ class: 'df-separator',
32
+ '[attr.aria-orientation]': 'orientation()',
33
+ '[class.df-separator-horizontal]': "orientation() === 'horizontal'",
34
+ '[class.df-separator-vertical]': "orientation() === 'vertical'"
35
+ }, encapsulation: ViewEncapsulation.None, styles: [".df-separator{display:block;background-color:var(--df-color-inert-neutral-main-border);border:0;margin:0}.df-separator-horizontal{width:100%;height:1px}.df-separator-vertical{display:inline-block;width:1px;height:100%}\n"] }]
36
+ }], propDecorators: { orientation: [{ type: i0.Input, args: [{ isSignal: true, alias: "orientation", required: false }] }] } });
37
+
38
+ /**
39
+ * Generated bundle index. Do not edit.
40
+ */
41
+
42
+ export { DfSeparator };
43
+ //# sourceMappingURL=design-factory-angular-separator.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"design-factory-angular-separator.mjs","sources":["../../separator/separator.ts","../../separator/design-factory-angular-separator.ts"],"sourcesContent":["import { Component, ViewEncapsulation, input } from '@angular/core';\n\n/**\n * Orientation of a `<df-separator>`.\n */\nexport type DfSeparatorOrientation = 'horizontal' | 'vertical';\n\n/**\n * Visual separator between two regions of content.\n *\n * Replaces the legacy `<hr>` and `.vertical-separator` usages. Spacing is the consumer's\n * responsibility — apply margins on the host or wrapping element.\n *\n * @experimental 22.0.0\n */\n@Component({\n selector: 'df-separator',\n template: '',\n host: {\n role: 'separator',\n class: 'df-separator',\n '[attr.aria-orientation]': 'orientation()',\n '[class.df-separator-horizontal]': \"orientation() === 'horizontal'\",\n '[class.df-separator-vertical]': \"orientation() === 'vertical'\"\n },\n encapsulation: ViewEncapsulation.None,\n styles: \"@use '@design-factory/components-styles/separator';\"\n})\nexport class DfSeparator {\n /**\n * Separator orientation.\n *\n * Supported orientations: `'horizontal'`, `'vertical'`.\n *\n * @defaultValue `'horizontal'`\n */\n readonly orientation = input<DfSeparatorOrientation>('horizontal');\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;AAOA;;;;;;;AAOG;MAcU,WAAW,CAAA;AAbxB,IAAA,WAAA,GAAA;AAcE;;;;;;AAMG;QACM,IAAA,CAAA,WAAW,GAAG,KAAK,CAAyB,YAAY;wFAAC;AACnE,IAAA;8GATY,WAAW,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAAX,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,WAAW,yeAXZ,EAAE,EAAA,QAAA,EAAA,IAAA,EAAA,MAAA,EAAA,CAAA,8NAAA,CAAA,EAAA,aAAA,EAAA,EAAA,CAAA,iBAAA,CAAA,IAAA,EAAA,CAAA,CAAA;;2FAWD,WAAW,EAAA,UAAA,EAAA,CAAA;kBAbvB,SAAS;+BACE,cAAc,EAAA,QAAA,EACd,EAAE,EAAA,IAAA,EACN;AACJ,wBAAA,IAAI,EAAE,WAAW;AACjB,wBAAA,KAAK,EAAE,cAAc;AACrB,wBAAA,yBAAyB,EAAE,eAAe;AAC1C,wBAAA,iCAAiC,EAAE,gCAAgC;AACnE,wBAAA,+BAA+B,EAAE;qBAClC,EAAA,aAAA,EACc,iBAAiB,CAAC,IAAI,EAAA,MAAA,EAAA,CAAA,8NAAA,CAAA,EAAA;;;ACzBvC;;AAEG;;;;"}