@ng-atomic/components 16.2.0 → 17.0.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 (546) hide show
  1. package/atoms/atoms.module.d.ts +4 -1
  2. package/atoms/badge/badge.atom.d.ts +6 -0
  3. package/atoms/badge/index.d.ts +1 -0
  4. package/atoms/icon/icon.atom.d.ts +7 -8
  5. package/atoms/smart-menu-button/smart-menu-button.atom.d.ts +17 -7
  6. package/components.module.d.ts +4 -2
  7. package/esm2022/atoms/atoms.module.mjs +11 -7
  8. package/esm2022/atoms/badge/badge.atom.mjs +16 -0
  9. package/esm2022/atoms/badge/index.mjs +2 -0
  10. package/esm2022/atoms/badge/ng-atomic-components-atoms-badge.mjs +5 -0
  11. package/esm2022/atoms/chips-input/chips-input.atom.mjs +6 -6
  12. package/esm2022/atoms/icon/icon.atom.mjs +28 -37
  13. package/esm2022/atoms/smart-menu-button/smart-menu-button.atom.mjs +125 -58
  14. package/esm2022/components.module.mjs +17 -6
  15. package/esm2022/extras/editor/editor.component.mjs +67 -34
  16. package/esm2022/extras/extras.module.mjs +5 -5
  17. package/esm2022/frames/app/app.frame.mjs +176 -0
  18. package/esm2022/frames/app/index.mjs +2 -0
  19. package/esm2022/frames/app/ng-atomic-components-frames-app.mjs +5 -0
  20. package/esm2022/frames/auto-layout/auto-layout.frame.mjs +5 -5
  21. package/esm2022/frames/card/card.frame.mjs +5 -5
  22. package/esm2022/frames/columns/columns.frame.mjs +163 -0
  23. package/esm2022/frames/columns/index.mjs +2 -0
  24. package/esm2022/frames/columns/ng-atomic-components-frames-columns.mjs +5 -0
  25. package/esm2022/frames/divider/divider.frame.mjs +23 -20
  26. package/esm2022/frames/drawer/drawer.frame.mjs +45 -39
  27. package/esm2022/frames/entrance/entrance.frame.mjs +67 -0
  28. package/esm2022/frames/entrance/index.mjs +2 -0
  29. package/esm2022/frames/entrance/ng-atomic-components-frames-entrance.mjs +5 -0
  30. package/esm2022/frames/fab/fab.frame.mjs +45 -22
  31. package/esm2022/frames/fab/fab.service.mjs +4 -4
  32. package/esm2022/frames/frames.module.mjs +27 -7
  33. package/esm2022/frames/line-up/index.mjs +2 -1
  34. package/esm2022/frames/line-up/line-up.animations.mjs +5 -1
  35. package/esm2022/frames/line-up/line-up.frame.mjs +69 -93
  36. package/esm2022/frames/line-up/line-up.service.mjs +55 -0
  37. package/esm2022/frames/loading/loading.frame.mjs +37 -20
  38. package/esm2022/frames/overlay/overlay.animations.mjs +6 -6
  39. package/esm2022/frames/overlay/overlay.frame.mjs +33 -18
  40. package/esm2022/frames/router-outlet/router-outlet.frame.mjs +100 -62
  41. package/esm2022/frames/scroll/scroll.frame.mjs +6 -6
  42. package/esm2022/frames/scroll-v2/scroll.frame.mjs +24 -12
  43. package/esm2022/frames/side-nav/side-nav.frame.mjs +139 -85
  44. package/esm2022/frames/smart-menu/smart-menu.frame.mjs +5 -5
  45. package/esm2022/frames/tabs/index.mjs +2 -0
  46. package/esm2022/frames/tabs/ng-atomic-components-frames-tabs.mjs +5 -0
  47. package/esm2022/frames/tabs/tabs.frame.mjs +41 -0
  48. package/esm2022/frames/toggle/index.mjs +2 -0
  49. package/esm2022/frames/toggle/ng-atomic-components-frames-toggle.mjs +5 -0
  50. package/esm2022/frames/toggle/toggle.frame.mjs +48 -0
  51. package/esm2022/frames/vertical-hide/vertical-hide.frame.mjs +6 -6
  52. package/esm2022/molecules/action-input-field/action-input-field.molecule.mjs +5 -5
  53. package/esm2022/molecules/actions-column/actions-column.molecule.mjs +54 -64
  54. package/esm2022/molecules/checkbox-column/checkbox-column.molecule.mjs +45 -60
  55. package/esm2022/molecules/chips-input-field/chips-input-field.molecule.mjs +96 -80
  56. package/esm2022/molecules/date-input-field/date-input-field.molecule.mjs +57 -47
  57. package/esm2022/molecules/date-range-input-field/date-range-input-field.molecule.mjs +75 -0
  58. package/esm2022/molecules/date-range-input-field/index.mjs +2 -0
  59. package/esm2022/molecules/date-range-input-field/ng-atomic-components-molecules-date-range-input-field.mjs +5 -0
  60. package/esm2022/molecules/file-input-field/file-input-field.molecule.mjs +99 -80
  61. package/esm2022/molecules/grid-item/grid-item.molecule.mjs +68 -0
  62. package/esm2022/molecules/grid-item/index.mjs +2 -0
  63. package/esm2022/molecules/grid-item/ng-atomic-components-molecules-grid-item.mjs +5 -0
  64. package/esm2022/molecules/header/header.molecule.mjs +40 -16
  65. package/esm2022/{organisms/smart-table → molecules/loading-box}/index.mjs +2 -2
  66. package/esm2022/molecules/loading-box/loading-box.molecule.mjs +56 -0
  67. package/esm2022/{templates/smart-index/ng-atomic-components-templates-smart-index.mjs → molecules/loading-box/ng-atomic-components-molecules-loading-box.mjs} +1 -1
  68. package/esm2022/molecules/molecules.module.mjs +24 -6
  69. package/esm2022/molecules/navigation-list-item/navigation-list-item.molecule.mjs +45 -32
  70. package/esm2022/molecules/nested-menu/nested-menu.molecule.mjs +5 -5
  71. package/esm2022/molecules/select-input-field/select-input-field.molecule.mjs +55 -36
  72. package/esm2022/molecules/smart-column/smart-column.molecule.mjs +134 -24
  73. package/esm2022/molecules/text-input-field/text-input-field.molecule.mjs +77 -67
  74. package/esm2022/molecules/textarea-field/textarea-field.molecule.mjs +59 -45
  75. package/esm2022/molecules/tree-column/tree-column.molecule.mjs +52 -35
  76. package/esm2022/organisms/action-buttons-section/action-buttons-section.organism.mjs +129 -19
  77. package/esm2022/organisms/action-input-section/action-input-section.organism.mjs +46 -30
  78. package/esm2022/organisms/agreement-input-section/agreement-input-section.organism.mjs +66 -0
  79. package/esm2022/organisms/agreement-input-section/index.mjs +2 -0
  80. package/esm2022/organisms/agreement-input-section/ng-atomic-components-organisms-agreement-input-section.mjs +5 -0
  81. package/esm2022/organisms/card-input-section/card-input-section.organism.mjs +5 -5
  82. package/esm2022/organisms/chips-input-section/chips-input-section.organism.mjs +52 -0
  83. package/esm2022/organisms/chips-input-section/index.mjs +2 -0
  84. package/esm2022/organisms/chips-input-section/ng-atomic-components-organisms-chips-input-section.mjs +5 -0
  85. package/esm2022/organisms/cvc-and-exp-input-section/cvc-and-exp-input-section.organism.mjs +5 -5
  86. package/esm2022/organisms/date-input-section/date-input-section.organism.mjs +62 -28
  87. package/esm2022/organisms/date-range-input-section/date-range-input-section.organism.mjs +71 -0
  88. package/esm2022/organisms/date-range-input-section/index.mjs +2 -0
  89. package/esm2022/organisms/date-range-input-section/ng-atomic-components-organisms-date-range-input-section.mjs +5 -0
  90. package/esm2022/organisms/definition-list/definition-list.organism.mjs +57 -0
  91. package/esm2022/organisms/definition-list/index.mjs +2 -0
  92. package/esm2022/organisms/definition-list/ng-atomic-components-organisms-definition-list.mjs +5 -0
  93. package/esm2022/organisms/file-input-section/file-input-section.organism.mjs +51 -36
  94. package/esm2022/organisms/filters-section/filters-section.organism.mjs +8 -6
  95. package/esm2022/organisms/graphql-editor/graphql-editor.organism.mjs +4 -4
  96. package/esm2022/organisms/grid-cards-section/grid-cards-section.organism.mjs +40 -0
  97. package/esm2022/organisms/grid-cards-section/index.mjs +2 -0
  98. package/esm2022/organisms/grid-cards-section/ng-atomic-components-organisms-grid-cards-section.mjs +5 -0
  99. package/esm2022/organisms/grid-toolbar/grid-toolbar.organism.mjs +87 -81
  100. package/esm2022/organisms/heading/heading.organism.mjs +49 -5
  101. package/esm2022/organisms/image-preview-section/image-preview-section.organism.mjs +16 -0
  102. package/esm2022/organisms/image-preview-section/index.mjs +2 -0
  103. package/esm2022/organisms/image-preview-section/ng-atomic-components-organisms-image-preview-section.mjs +5 -0
  104. package/esm2022/organisms/markdown-preview-section/index.mjs +2 -0
  105. package/esm2022/organisms/markdown-preview-section/markdown-preview-section.organism.mjs +39 -0
  106. package/esm2022/organisms/markdown-preview-section/ng-atomic-components-organisms-markdown-preview-section.mjs +5 -0
  107. package/esm2022/organisms/menu-footer/menu-footer.organism.mjs +31 -19
  108. package/esm2022/organisms/menu-header/menu-header.organism.mjs +86 -22
  109. package/esm2022/organisms/mermaid-section/mermaid-section.organism.mjs +5 -5
  110. package/esm2022/organisms/message-input-section/message-input-section.organism.mjs +4 -4
  111. package/esm2022/organisms/messages-section/messages-section.organism.mjs +56 -6
  112. package/esm2022/organisms/navigation-list/navigation-list.organism.mjs +32 -36
  113. package/esm2022/organisms/navigator/navigator.organism.mjs +84 -40
  114. package/esm2022/organisms/number-input-section/index.mjs +2 -0
  115. package/esm2022/organisms/number-input-section/ng-atomic-components-organisms-number-input-section.mjs +5 -0
  116. package/esm2022/organisms/number-input-section/number-input-section.organism.mjs +82 -0
  117. package/esm2022/organisms/organisms.module.mjs +82 -9
  118. package/esm2022/organisms/paginator/paginator.organism.mjs +50 -34
  119. package/esm2022/organisms/password-input-section/index.mjs +2 -0
  120. package/esm2022/organisms/password-input-section/ng-atomic-components-organisms-password-input-section.mjs +5 -0
  121. package/esm2022/organisms/password-input-section/password-input-section.organism.mjs +80 -0
  122. package/esm2022/organisms/select-input-section/select-input-section.organism.mjs +69 -19
  123. package/esm2022/organisms/selection-list/selection-list.organism.mjs +5 -5
  124. package/esm2022/organisms/smart-list/smart-list.organism.mjs +149 -104
  125. package/esm2022/organisms/social-login-section/social-login-section.organism.mjs +5 -5
  126. package/esm2022/organisms/stripe-input-section/index.mjs +2 -0
  127. package/esm2022/organisms/stripe-input-section/ng-atomic-components-organisms-stripe-input-section.mjs +5 -0
  128. package/esm2022/organisms/stripe-input-section/stripe-input-section.organism.mjs +223 -0
  129. package/esm2022/organisms/table/index.helpers.mjs +110 -0
  130. package/esm2022/organisms/table/index.mjs +3 -0
  131. package/esm2022/organisms/table/ng-atomic-components-organisms-table.mjs +5 -0
  132. package/esm2022/organisms/table/table.organism.mjs +315 -0
  133. package/esm2022/organisms/terminal/terminal.organism.mjs +4 -4
  134. package/esm2022/organisms/text-input-section/text-input-section.organism.mjs +72 -44
  135. package/esm2022/organisms/text-preview-section/index.mjs +2 -0
  136. package/esm2022/organisms/text-preview-section/ng-atomic-components-organisms-text-preview-section.mjs +5 -0
  137. package/esm2022/organisms/text-preview-section/text-preview-section.organism.mjs +79 -0
  138. package/esm2022/organisms/textarea-section/textarea-section.organism.mjs +73 -38
  139. package/esm2022/organisms/thread-messages-section/index.mjs +2 -0
  140. package/esm2022/organisms/thread-messages-section/ng-atomic-components-organisms-thread-messages-section.mjs +5 -0
  141. package/esm2022/organisms/thread-messages-section/thread-messages-section.organism.mjs +119 -0
  142. package/esm2022/organisms/time-range-input-section/index.mjs +2 -0
  143. package/esm2022/organisms/time-range-input-section/ng-atomic-components-organisms-time-range-input-section.mjs +5 -0
  144. package/esm2022/organisms/time-range-input-section/time-range-input-section.organism.mjs +43 -0
  145. package/esm2022/organisms/toolbar/toolbar.organism.mjs +6 -6
  146. package/esm2022/organisms/tree-section/tree-section.organism.mjs +5 -5
  147. package/esm2022/organisms/vertical-divider/vertical-divider.organism.mjs +4 -4
  148. package/esm2022/organisms/video-section/index.mjs +2 -0
  149. package/esm2022/organisms/video-section/ng-atomic-components-organisms-video-section.mjs +5 -0
  150. package/esm2022/organisms/video-section/video-section.organism.mjs +132 -0
  151. package/esm2022/pages/_index/index.mjs +1 -2
  152. package/esm2022/pages/_index/index.page.mjs +155 -8
  153. package/esm2022/pages/blank/blank.page.mjs +4 -4
  154. package/esm2022/pages/blank/blank.route.mjs +8 -2
  155. package/esm2022/pages/blank/blank.routes.mjs +5 -3
  156. package/esm2022/pages/blank/index.mjs +2 -1
  157. package/esm2022/pages/form/form.page.mjs +173 -0
  158. package/esm2022/pages/form/index.mjs +2 -0
  159. package/esm2022/pages/form/ng-atomic-components-pages-form.mjs +5 -0
  160. package/esm2022/pages/pages.module.mjs +13 -6
  161. package/esm2022/pages/terms/index.mjs +2 -0
  162. package/esm2022/pages/terms/terms.page.mjs +84 -0
  163. package/esm2022/sheets/actions/actions.sheet.mjs +4 -4
  164. package/esm2022/sheets/sheets.module.mjs +5 -5
  165. package/esm2022/sheets/sheets.service.mjs +5 -5
  166. package/esm2022/templates/_index/index.mjs +2 -0
  167. package/esm2022/templates/_index/index.template.mjs +381 -0
  168. package/esm2022/templates/_index/ng-atomic-components-templates-_index.mjs +5 -0
  169. package/esm2022/templates/background/background.template.mjs +30 -0
  170. package/esm2022/templates/{smart-crud → background}/index.mjs +2 -2
  171. package/esm2022/templates/{smart-crud/ng-atomic-components-templates-smart-crud.mjs → background/ng-atomic-components-templates-background.mjs} +1 -1
  172. package/esm2022/templates/code-editor/code-editor.template.mjs +37 -76
  173. package/esm2022/templates/entrance/entrance.template.mjs +99 -72
  174. package/esm2022/templates/file-tree/file-tree.template.mjs +6 -6
  175. package/esm2022/templates/form/form.template.mjs +466 -0
  176. package/esm2022/templates/form/index.mjs +2 -0
  177. package/esm2022/templates/form/ng-atomic-components-templates-form.mjs +5 -0
  178. package/esm2022/templates/icon-button-menu/icon-button-menu.template.mjs +32 -38
  179. package/esm2022/templates/loading/loading.template.mjs +4 -4
  180. package/esm2022/templates/menu/menu.template.mjs +31 -32
  181. package/esm2022/templates/messages/messages.template.mjs +66 -35
  182. package/esm2022/templates/selection/selection.template.mjs +56 -65
  183. package/esm2022/templates/settings/index.mjs +2 -0
  184. package/esm2022/templates/settings/ng-atomic-components-templates-settings.mjs +5 -0
  185. package/esm2022/templates/settings/settings.template.mjs +118 -0
  186. package/esm2022/templates/tab-editor/tab-editor.template.mjs +6 -6
  187. package/esm2022/templates/templates.module.mjs +29 -7
  188. package/esm2022/templates/term/term.template.mjs +41 -30
  189. package/extras/editor/editor.component.d.ts +20 -9
  190. package/fesm2022/ng-atomic-components-atoms-badge.mjs +23 -0
  191. package/fesm2022/ng-atomic-components-atoms-badge.mjs.map +1 -0
  192. package/fesm2022/ng-atomic-components-atoms-chips-input.mjs +5 -5
  193. package/fesm2022/ng-atomic-components-atoms-chips-input.mjs.map +1 -1
  194. package/fesm2022/ng-atomic-components-atoms-icon.mjs +28 -37
  195. package/fesm2022/ng-atomic-components-atoms-icon.mjs.map +1 -1
  196. package/fesm2022/ng-atomic-components-atoms-smart-menu-button.mjs +124 -58
  197. package/fesm2022/ng-atomic-components-atoms-smart-menu-button.mjs.map +1 -1
  198. package/fesm2022/ng-atomic-components-atoms.mjs +9 -5
  199. package/fesm2022/ng-atomic-components-atoms.mjs.map +1 -1
  200. package/fesm2022/ng-atomic-components-extras-editor.mjs +68 -35
  201. package/fesm2022/ng-atomic-components-extras-editor.mjs.map +1 -1
  202. package/fesm2022/ng-atomic-components-extras.mjs +4 -4
  203. package/fesm2022/ng-atomic-components-extras.mjs.map +1 -1
  204. package/fesm2022/ng-atomic-components-frames-app.mjs +182 -0
  205. package/fesm2022/ng-atomic-components-frames-app.mjs.map +1 -0
  206. package/fesm2022/ng-atomic-components-frames-auto-layout.mjs +4 -4
  207. package/fesm2022/ng-atomic-components-frames-auto-layout.mjs.map +1 -1
  208. package/fesm2022/ng-atomic-components-frames-card.mjs +4 -4
  209. package/fesm2022/ng-atomic-components-frames-card.mjs.map +1 -1
  210. package/fesm2022/ng-atomic-components-frames-columns.mjs +169 -0
  211. package/fesm2022/ng-atomic-components-frames-columns.mjs.map +1 -0
  212. package/fesm2022/ng-atomic-components-frames-divider.mjs +22 -19
  213. package/fesm2022/ng-atomic-components-frames-divider.mjs.map +1 -1
  214. package/fesm2022/ng-atomic-components-frames-drawer.mjs +44 -39
  215. package/fesm2022/ng-atomic-components-frames-drawer.mjs.map +1 -1
  216. package/fesm2022/ng-atomic-components-frames-entrance.mjs +74 -0
  217. package/fesm2022/ng-atomic-components-frames-entrance.mjs.map +1 -0
  218. package/fesm2022/ng-atomic-components-frames-fab.mjs +48 -26
  219. package/fesm2022/ng-atomic-components-frames-fab.mjs.map +1 -1
  220. package/fesm2022/ng-atomic-components-frames-line-up.mjs +133 -91
  221. package/fesm2022/ng-atomic-components-frames-line-up.mjs.map +1 -1
  222. package/fesm2022/ng-atomic-components-frames-loading.mjs +37 -20
  223. package/fesm2022/ng-atomic-components-frames-loading.mjs.map +1 -1
  224. package/fesm2022/ng-atomic-components-frames-overlay.mjs +38 -23
  225. package/fesm2022/ng-atomic-components-frames-overlay.mjs.map +1 -1
  226. package/fesm2022/ng-atomic-components-frames-router-outlet.mjs +100 -62
  227. package/fesm2022/ng-atomic-components-frames-router-outlet.mjs.map +1 -1
  228. package/fesm2022/ng-atomic-components-frames-scroll-v2.mjs +23 -11
  229. package/fesm2022/ng-atomic-components-frames-scroll-v2.mjs.map +1 -1
  230. package/fesm2022/ng-atomic-components-frames-scroll.mjs +5 -5
  231. package/fesm2022/ng-atomic-components-frames-scroll.mjs.map +1 -1
  232. package/fesm2022/ng-atomic-components-frames-side-nav.mjs +138 -85
  233. package/fesm2022/ng-atomic-components-frames-side-nav.mjs.map +1 -1
  234. package/fesm2022/ng-atomic-components-frames-smart-menu.mjs +4 -4
  235. package/fesm2022/ng-atomic-components-frames-smart-menu.mjs.map +1 -1
  236. package/fesm2022/ng-atomic-components-frames-tabs.mjs +48 -0
  237. package/fesm2022/ng-atomic-components-frames-tabs.mjs.map +1 -0
  238. package/fesm2022/ng-atomic-components-frames-toggle.mjs +55 -0
  239. package/fesm2022/ng-atomic-components-frames-toggle.mjs.map +1 -0
  240. package/fesm2022/ng-atomic-components-frames-vertical-hide.mjs +5 -5
  241. package/fesm2022/ng-atomic-components-frames-vertical-hide.mjs.map +1 -1
  242. package/fesm2022/ng-atomic-components-frames.mjs +25 -5
  243. package/fesm2022/ng-atomic-components-frames.mjs.map +1 -1
  244. package/fesm2022/ng-atomic-components-molecules-action-input-field.mjs +4 -4
  245. package/fesm2022/ng-atomic-components-molecules-action-input-field.mjs.map +1 -1
  246. package/fesm2022/ng-atomic-components-molecules-actions-column.mjs +54 -64
  247. package/fesm2022/ng-atomic-components-molecules-actions-column.mjs.map +1 -1
  248. package/fesm2022/ng-atomic-components-molecules-checkbox-column.mjs +45 -60
  249. package/fesm2022/ng-atomic-components-molecules-checkbox-column.mjs.map +1 -1
  250. package/fesm2022/ng-atomic-components-molecules-chips-input-field.mjs +95 -80
  251. package/fesm2022/ng-atomic-components-molecules-chips-input-field.mjs.map +1 -1
  252. package/fesm2022/ng-atomic-components-molecules-date-input-field.mjs +57 -47
  253. package/fesm2022/ng-atomic-components-molecules-date-input-field.mjs.map +1 -1
  254. package/fesm2022/ng-atomic-components-molecules-date-range-input-field.mjs +82 -0
  255. package/fesm2022/ng-atomic-components-molecules-date-range-input-field.mjs.map +1 -0
  256. package/fesm2022/ng-atomic-components-molecules-file-input-field.mjs +99 -80
  257. package/fesm2022/ng-atomic-components-molecules-file-input-field.mjs.map +1 -1
  258. package/fesm2022/ng-atomic-components-molecules-grid-item.mjs +75 -0
  259. package/fesm2022/ng-atomic-components-molecules-grid-item.mjs.map +1 -0
  260. package/fesm2022/ng-atomic-components-molecules-header.mjs +39 -16
  261. package/fesm2022/ng-atomic-components-molecules-header.mjs.map +1 -1
  262. package/fesm2022/ng-atomic-components-molecules-loading-box.mjs +62 -0
  263. package/fesm2022/ng-atomic-components-molecules-loading-box.mjs.map +1 -0
  264. package/fesm2022/ng-atomic-components-molecules-navigation-list-item.mjs +43 -31
  265. package/fesm2022/ng-atomic-components-molecules-navigation-list-item.mjs.map +1 -1
  266. package/fesm2022/ng-atomic-components-molecules-nested-menu.mjs +4 -4
  267. package/fesm2022/ng-atomic-components-molecules-nested-menu.mjs.map +1 -1
  268. package/fesm2022/ng-atomic-components-molecules-select-input-field.mjs +55 -36
  269. package/fesm2022/ng-atomic-components-molecules-select-input-field.mjs.map +1 -1
  270. package/fesm2022/ng-atomic-components-molecules-smart-column.mjs +134 -24
  271. package/fesm2022/ng-atomic-components-molecules-smart-column.mjs.map +1 -1
  272. package/fesm2022/ng-atomic-components-molecules-text-input-field.mjs +75 -66
  273. package/fesm2022/ng-atomic-components-molecules-text-input-field.mjs.map +1 -1
  274. package/fesm2022/ng-atomic-components-molecules-textarea-field.mjs +59 -45
  275. package/fesm2022/ng-atomic-components-molecules-textarea-field.mjs.map +1 -1
  276. package/fesm2022/ng-atomic-components-molecules-tree-column.mjs +52 -35
  277. package/fesm2022/ng-atomic-components-molecules-tree-column.mjs.map +1 -1
  278. package/fesm2022/ng-atomic-components-molecules.mjs +23 -5
  279. package/fesm2022/ng-atomic-components-molecules.mjs.map +1 -1
  280. package/fesm2022/ng-atomic-components-organisms-action-buttons-section.mjs +128 -19
  281. package/fesm2022/ng-atomic-components-organisms-action-buttons-section.mjs.map +1 -1
  282. package/fesm2022/ng-atomic-components-organisms-action-input-section.mjs +45 -31
  283. package/fesm2022/ng-atomic-components-organisms-action-input-section.mjs.map +1 -1
  284. package/fesm2022/ng-atomic-components-organisms-agreement-input-section.mjs +73 -0
  285. package/fesm2022/ng-atomic-components-organisms-agreement-input-section.mjs.map +1 -0
  286. package/fesm2022/ng-atomic-components-organisms-card-input-section.mjs +4 -4
  287. package/fesm2022/ng-atomic-components-organisms-card-input-section.mjs.map +1 -1
  288. package/fesm2022/ng-atomic-components-organisms-chips-input-section.mjs +59 -0
  289. package/fesm2022/ng-atomic-components-organisms-chips-input-section.mjs.map +1 -0
  290. package/fesm2022/ng-atomic-components-organisms-cvc-and-exp-input-section.mjs +4 -4
  291. package/fesm2022/ng-atomic-components-organisms-cvc-and-exp-input-section.mjs.map +1 -1
  292. package/fesm2022/ng-atomic-components-organisms-date-input-section.mjs +61 -28
  293. package/fesm2022/ng-atomic-components-organisms-date-input-section.mjs.map +1 -1
  294. package/fesm2022/ng-atomic-components-organisms-date-range-input-section.mjs +78 -0
  295. package/fesm2022/ng-atomic-components-organisms-date-range-input-section.mjs.map +1 -0
  296. package/fesm2022/ng-atomic-components-organisms-definition-list.mjs +64 -0
  297. package/fesm2022/ng-atomic-components-organisms-definition-list.mjs.map +1 -0
  298. package/fesm2022/ng-atomic-components-organisms-file-input-section.mjs +50 -36
  299. package/fesm2022/ng-atomic-components-organisms-file-input-section.mjs.map +1 -1
  300. package/fesm2022/ng-atomic-components-organisms-filters-section.mjs +7 -5
  301. package/fesm2022/ng-atomic-components-organisms-filters-section.mjs.map +1 -1
  302. package/fesm2022/ng-atomic-components-organisms-graphql-editor.mjs +3 -3
  303. package/fesm2022/ng-atomic-components-organisms-graphql-editor.mjs.map +1 -1
  304. package/fesm2022/ng-atomic-components-organisms-grid-cards-section.mjs +47 -0
  305. package/fesm2022/ng-atomic-components-organisms-grid-cards-section.mjs.map +1 -0
  306. package/fesm2022/ng-atomic-components-organisms-grid-toolbar.mjs +86 -81
  307. package/fesm2022/ng-atomic-components-organisms-grid-toolbar.mjs.map +1 -1
  308. package/fesm2022/ng-atomic-components-organisms-heading.mjs +48 -4
  309. package/fesm2022/ng-atomic-components-organisms-heading.mjs.map +1 -1
  310. package/fesm2022/ng-atomic-components-organisms-image-preview-section.mjs +23 -0
  311. package/fesm2022/ng-atomic-components-organisms-image-preview-section.mjs.map +1 -0
  312. package/fesm2022/ng-atomic-components-organisms-markdown-preview-section.mjs +46 -0
  313. package/fesm2022/ng-atomic-components-organisms-markdown-preview-section.mjs.map +1 -0
  314. package/fesm2022/ng-atomic-components-organisms-menu-footer.mjs +30 -19
  315. package/fesm2022/ng-atomic-components-organisms-menu-footer.mjs.map +1 -1
  316. package/fesm2022/ng-atomic-components-organisms-menu-header.mjs +84 -21
  317. package/fesm2022/ng-atomic-components-organisms-menu-header.mjs.map +1 -1
  318. package/fesm2022/ng-atomic-components-organisms-mermaid-section.mjs +4 -4
  319. package/fesm2022/ng-atomic-components-organisms-mermaid-section.mjs.map +1 -1
  320. package/fesm2022/ng-atomic-components-organisms-message-input-section.mjs +3 -3
  321. package/fesm2022/ng-atomic-components-organisms-message-input-section.mjs.map +1 -1
  322. package/fesm2022/ng-atomic-components-organisms-messages-section.mjs +55 -5
  323. package/fesm2022/ng-atomic-components-organisms-messages-section.mjs.map +1 -1
  324. package/fesm2022/ng-atomic-components-organisms-navigation-list.mjs +30 -35
  325. package/fesm2022/ng-atomic-components-organisms-navigation-list.mjs.map +1 -1
  326. package/fesm2022/ng-atomic-components-organisms-navigator.mjs +83 -41
  327. package/fesm2022/ng-atomic-components-organisms-navigator.mjs.map +1 -1
  328. package/fesm2022/ng-atomic-components-organisms-number-input-section.mjs +88 -0
  329. package/fesm2022/ng-atomic-components-organisms-number-input-section.mjs.map +1 -0
  330. package/fesm2022/ng-atomic-components-organisms-paginator.mjs +49 -34
  331. package/fesm2022/ng-atomic-components-organisms-paginator.mjs.map +1 -1
  332. package/fesm2022/ng-atomic-components-organisms-password-input-section.mjs +86 -0
  333. package/fesm2022/ng-atomic-components-organisms-password-input-section.mjs.map +1 -0
  334. package/fesm2022/ng-atomic-components-organisms-select-input-section.mjs +68 -19
  335. package/fesm2022/ng-atomic-components-organisms-select-input-section.mjs.map +1 -1
  336. package/fesm2022/ng-atomic-components-organisms-selection-list.mjs +4 -4
  337. package/fesm2022/ng-atomic-components-organisms-selection-list.mjs.map +1 -1
  338. package/fesm2022/ng-atomic-components-organisms-smart-list.mjs +147 -103
  339. package/fesm2022/ng-atomic-components-organisms-smart-list.mjs.map +1 -1
  340. package/fesm2022/ng-atomic-components-organisms-social-login-section.mjs +4 -4
  341. package/fesm2022/ng-atomic-components-organisms-social-login-section.mjs.map +1 -1
  342. package/fesm2022/ng-atomic-components-organisms-stripe-input-section.mjs +229 -0
  343. package/fesm2022/ng-atomic-components-organisms-stripe-input-section.mjs.map +1 -0
  344. package/fesm2022/ng-atomic-components-organisms-table.mjs +425 -0
  345. package/fesm2022/ng-atomic-components-organisms-table.mjs.map +1 -0
  346. package/fesm2022/ng-atomic-components-organisms-terminal.mjs +3 -3
  347. package/fesm2022/ng-atomic-components-organisms-terminal.mjs.map +1 -1
  348. package/fesm2022/ng-atomic-components-organisms-text-input-section.mjs +71 -44
  349. package/fesm2022/ng-atomic-components-organisms-text-input-section.mjs.map +1 -1
  350. package/fesm2022/ng-atomic-components-organisms-text-preview-section.mjs +85 -0
  351. package/fesm2022/ng-atomic-components-organisms-text-preview-section.mjs.map +1 -0
  352. package/fesm2022/ng-atomic-components-organisms-textarea-section.mjs +72 -38
  353. package/fesm2022/ng-atomic-components-organisms-textarea-section.mjs.map +1 -1
  354. package/fesm2022/ng-atomic-components-organisms-thread-messages-section.mjs +126 -0
  355. package/fesm2022/ng-atomic-components-organisms-thread-messages-section.mjs.map +1 -0
  356. package/fesm2022/ng-atomic-components-organisms-time-range-input-section.mjs +50 -0
  357. package/fesm2022/ng-atomic-components-organisms-time-range-input-section.mjs.map +1 -0
  358. package/fesm2022/ng-atomic-components-organisms-toolbar.mjs +5 -5
  359. package/fesm2022/ng-atomic-components-organisms-toolbar.mjs.map +1 -1
  360. package/fesm2022/ng-atomic-components-organisms-tree-section.mjs +4 -4
  361. package/fesm2022/ng-atomic-components-organisms-tree-section.mjs.map +1 -1
  362. package/fesm2022/ng-atomic-components-organisms-vertical-divider.mjs +3 -3
  363. package/fesm2022/ng-atomic-components-organisms-vertical-divider.mjs.map +1 -1
  364. package/fesm2022/ng-atomic-components-organisms-video-section.mjs +139 -0
  365. package/fesm2022/ng-atomic-components-organisms-video-section.mjs.map +1 -0
  366. package/fesm2022/ng-atomic-components-organisms.mjs +81 -8
  367. package/fesm2022/ng-atomic-components-organisms.mjs.map +1 -1
  368. package/fesm2022/ng-atomic-components-pages-_index.mjs +153 -34
  369. package/fesm2022/ng-atomic-components-pages-_index.mjs.map +1 -1
  370. package/fesm2022/ng-atomic-components-pages-blank.mjs +14 -5
  371. package/fesm2022/ng-atomic-components-pages-blank.mjs.map +1 -1
  372. package/fesm2022/ng-atomic-components-pages-form.mjs +180 -0
  373. package/fesm2022/ng-atomic-components-pages-form.mjs.map +1 -0
  374. package/fesm2022/ng-atomic-components-pages.mjs +94 -6
  375. package/fesm2022/ng-atomic-components-pages.mjs.map +1 -1
  376. package/fesm2022/ng-atomic-components-sheets-actions.mjs +3 -3
  377. package/fesm2022/ng-atomic-components-sheets-actions.mjs.map +1 -1
  378. package/fesm2022/ng-atomic-components-sheets.mjs +8 -8
  379. package/fesm2022/ng-atomic-components-sheets.mjs.map +1 -1
  380. package/fesm2022/ng-atomic-components-templates-_index.mjs +386 -0
  381. package/fesm2022/ng-atomic-components-templates-_index.mjs.map +1 -0
  382. package/fesm2022/ng-atomic-components-templates-background.mjs +36 -0
  383. package/fesm2022/ng-atomic-components-templates-background.mjs.map +1 -0
  384. package/fesm2022/ng-atomic-components-templates-code-editor.mjs +37 -73
  385. package/fesm2022/ng-atomic-components-templates-code-editor.mjs.map +1 -1
  386. package/fesm2022/ng-atomic-components-templates-entrance.mjs +98 -72
  387. package/fesm2022/ng-atomic-components-templates-entrance.mjs.map +1 -1
  388. package/fesm2022/ng-atomic-components-templates-file-tree.mjs +5 -5
  389. package/fesm2022/ng-atomic-components-templates-file-tree.mjs.map +1 -1
  390. package/fesm2022/ng-atomic-components-templates-form.mjs +472 -0
  391. package/fesm2022/ng-atomic-components-templates-form.mjs.map +1 -0
  392. package/fesm2022/ng-atomic-components-templates-icon-button-menu.mjs +30 -38
  393. package/fesm2022/ng-atomic-components-templates-icon-button-menu.mjs.map +1 -1
  394. package/fesm2022/ng-atomic-components-templates-loading.mjs +3 -3
  395. package/fesm2022/ng-atomic-components-templates-loading.mjs.map +1 -1
  396. package/fesm2022/ng-atomic-components-templates-menu.mjs +29 -32
  397. package/fesm2022/ng-atomic-components-templates-menu.mjs.map +1 -1
  398. package/fesm2022/ng-atomic-components-templates-messages.mjs +65 -34
  399. package/fesm2022/ng-atomic-components-templates-messages.mjs.map +1 -1
  400. package/fesm2022/ng-atomic-components-templates-selection.mjs +56 -66
  401. package/fesm2022/ng-atomic-components-templates-selection.mjs.map +1 -1
  402. package/fesm2022/ng-atomic-components-templates-settings.mjs +125 -0
  403. package/fesm2022/ng-atomic-components-templates-settings.mjs.map +1 -0
  404. package/fesm2022/ng-atomic-components-templates-tab-editor.mjs +5 -5
  405. package/fesm2022/ng-atomic-components-templates-tab-editor.mjs.map +1 -1
  406. package/fesm2022/ng-atomic-components-templates-term.mjs +40 -29
  407. package/fesm2022/ng-atomic-components-templates-term.mjs.map +1 -1
  408. package/fesm2022/ng-atomic-components-templates.mjs +28 -6
  409. package/fesm2022/ng-atomic-components-templates.mjs.map +1 -1
  410. package/fesm2022/ng-atomic-components.mjs +16 -5
  411. package/fesm2022/ng-atomic-components.mjs.map +1 -1
  412. package/frames/app/app.frame.d.ts +107 -0
  413. package/frames/app/index.d.ts +1 -0
  414. package/frames/columns/columns.frame.d.ts +54 -0
  415. package/frames/columns/index.d.ts +1 -0
  416. package/frames/divider/divider.frame.d.ts +6 -6
  417. package/frames/drawer/drawer.frame.d.ts +12 -9
  418. package/frames/entrance/entrance.frame.d.ts +19 -0
  419. package/frames/entrance/index.d.ts +1 -0
  420. package/frames/fab/fab.frame.d.ts +22 -2
  421. package/frames/frames.module.d.ts +20 -1
  422. package/frames/line-up/index.d.ts +1 -0
  423. package/frames/line-up/line-up.frame.d.ts +15 -26
  424. package/frames/line-up/line-up.service.d.ts +22 -0
  425. package/frames/loading/loading.frame.d.ts +9 -3
  426. package/frames/overlay/overlay.frame.d.ts +7 -2
  427. package/frames/router-outlet/router-outlet.frame.d.ts +30 -9
  428. package/frames/scroll-v2/scroll.frame.d.ts +5 -1
  429. package/frames/side-nav/side-nav.frame.d.ts +33 -12
  430. package/frames/tabs/index.d.ts +1 -0
  431. package/frames/tabs/tabs.frame.d.ts +9 -0
  432. package/frames/toggle/index.d.ts +1 -0
  433. package/frames/toggle/toggle.frame.d.ts +9 -0
  434. package/molecules/actions-column/actions-column.molecule.d.ts +17 -17
  435. package/molecules/checkbox-column/checkbox-column.molecule.d.ts +17 -15
  436. package/molecules/chips-input-field/chips-input-field.molecule.d.ts +54 -12
  437. package/molecules/date-input-field/date-input-field.molecule.d.ts +13 -7
  438. package/molecules/date-range-input-field/date-range-input-field.molecule.d.ts +14 -0
  439. package/molecules/date-range-input-field/index.d.ts +1 -0
  440. package/molecules/file-input-field/file-input-field.molecule.d.ts +23 -15
  441. package/molecules/grid-item/grid-item.molecule.d.ts +13 -0
  442. package/molecules/grid-item/index.d.ts +1 -0
  443. package/molecules/header/header.molecule.d.ts +10 -4
  444. package/molecules/loading-box/index.d.ts +1 -0
  445. package/molecules/loading-box/loading-box.molecule.d.ts +23 -0
  446. package/molecules/molecules.module.d.ts +16 -3
  447. package/molecules/navigation-list-item/navigation-list-item.molecule.d.ts +5 -7
  448. package/molecules/select-input-field/select-input-field.molecule.d.ts +13 -6
  449. package/molecules/smart-column/smart-column.molecule.d.ts +21 -6
  450. package/molecules/text-input-field/text-input-field.molecule.d.ts +14 -13
  451. package/molecules/textarea-field/textarea-field.molecule.d.ts +16 -10
  452. package/molecules/tree-column/tree-column.molecule.d.ts +8 -3
  453. package/organisms/action-buttons-section/action-buttons-section.organism.d.ts +10 -7
  454. package/organisms/action-input-section/action-input-section.organism.d.ts +12 -6
  455. package/organisms/agreement-input-section/agreement-input-section.organism.d.ts +17 -0
  456. package/organisms/agreement-input-section/index.d.ts +1 -0
  457. package/organisms/chips-input-section/chips-input-section.organism.d.ts +13 -0
  458. package/organisms/chips-input-section/index.d.ts +1 -0
  459. package/organisms/date-input-section/date-input-section.organism.d.ts +13 -5
  460. package/organisms/date-range-input-section/date-range-input-section.organism.d.ts +21 -0
  461. package/organisms/date-range-input-section/index.d.ts +1 -0
  462. package/organisms/definition-list/definition-list.organism.d.ts +12 -0
  463. package/organisms/definition-list/index.d.ts +1 -0
  464. package/organisms/file-input-section/file-input-section.organism.d.ts +13 -7
  465. package/organisms/filters-section/filters-section.organism.d.ts +2 -1
  466. package/organisms/grid-cards-section/grid-cards-section.organism.d.ts +15 -0
  467. package/organisms/grid-cards-section/index.d.ts +1 -0
  468. package/organisms/grid-toolbar/grid-toolbar.organism.d.ts +10 -7
  469. package/organisms/image-preview-section/image-preview-section.organism.d.ts +7 -0
  470. package/organisms/image-preview-section/index.d.ts +1 -0
  471. package/organisms/markdown-preview-section/index.d.ts +1 -0
  472. package/organisms/markdown-preview-section/markdown-preview-section.organism.d.ts +11 -0
  473. package/organisms/menu-footer/menu-footer.organism.d.ts +7 -1
  474. package/organisms/menu-header/menu-header.organism.d.ts +9 -4
  475. package/organisms/messages-section/messages-section.organism.d.ts +3 -1
  476. package/organisms/navigation-list/navigation-list.organism.d.ts +2 -3
  477. package/organisms/navigator/navigator.organism.d.ts +27 -4
  478. package/organisms/number-input-section/index.d.ts +1 -0
  479. package/organisms/number-input-section/number-input-section.organism.d.ts +19 -0
  480. package/organisms/organisms.module.d.ts +52 -3
  481. package/organisms/paginator/paginator.organism.d.ts +17 -7
  482. package/organisms/password-input-section/index.d.ts +1 -0
  483. package/organisms/password-input-section/password-input-section.organism.d.ts +19 -0
  484. package/organisms/select-input-section/select-input-section.organism.d.ts +16 -6
  485. package/organisms/smart-list/smart-list.organism.d.ts +35 -11
  486. package/organisms/stripe-input-section/index.d.ts +1 -0
  487. package/organisms/stripe-input-section/stripe-input-section.organism.d.ts +188 -0
  488. package/organisms/table/index.d.ts +2 -0
  489. package/organisms/table/index.helpers.d.ts +71 -0
  490. package/organisms/table/table.organism.d.ts +106 -0
  491. package/organisms/text-input-section/text-input-section.organism.d.ts +15 -8
  492. package/organisms/text-preview-section/index.d.ts +1 -0
  493. package/organisms/text-preview-section/text-preview-section.organism.d.ts +15 -0
  494. package/organisms/textarea-section/textarea-section.organism.d.ts +16 -10
  495. package/organisms/thread-messages-section/index.d.ts +1 -0
  496. package/organisms/thread-messages-section/thread-messages-section.organism.d.ts +14 -0
  497. package/organisms/time-range-input-section/index.d.ts +1 -0
  498. package/organisms/time-range-input-section/time-range-input-section.organism.d.ts +9 -0
  499. package/organisms/video-section/index.d.ts +1 -0
  500. package/organisms/video-section/video-section.organism.d.ts +41 -0
  501. package/package.json +184 -28
  502. package/pages/_index/index.d.ts +0 -1
  503. package/pages/_index/index.page.d.ts +46 -2
  504. package/pages/blank/index.d.ts +1 -0
  505. package/pages/form/form.page.d.ts +112 -0
  506. package/pages/form/index.d.ts +1 -0
  507. package/pages/pages.module.d.ts +1 -1
  508. package/pages/terms/index.d.ts +1 -0
  509. package/pages/terms/terms.page.d.ts +60 -0
  510. package/templates/_index/index.d.ts +1 -0
  511. package/templates/_index/index.template.d.ts +219 -0
  512. package/templates/background/background.template.d.ts +11 -0
  513. package/templates/background/index.d.ts +1 -0
  514. package/templates/code-editor/code-editor.template.d.ts +11 -14
  515. package/templates/entrance/entrance.template.d.ts +18 -11
  516. package/templates/form/form.template.d.ts +78 -0
  517. package/templates/form/index.d.ts +1 -0
  518. package/templates/icon-button-menu/icon-button-menu.template.d.ts +2 -4
  519. package/templates/menu/menu.template.d.ts +4 -5
  520. package/templates/messages/messages.template.d.ts +10 -2
  521. package/templates/selection/selection.template.d.ts +14 -9
  522. package/templates/settings/index.d.ts +1 -0
  523. package/templates/settings/settings.template.d.ts +16 -0
  524. package/templates/templates.module.d.ts +13 -1
  525. package/templates/term/term.template.d.ts +10 -9
  526. package/esm2022/organisms/smart-table/ng-atomic-components-organisms-smart-table.mjs +0 -5
  527. package/esm2022/organisms/smart-table/smart-table.organism.mjs +0 -210
  528. package/esm2022/pages/_index/index.module.mjs +0 -31
  529. package/esm2022/templates/smart-crud/smart-crud.template.mjs +0 -256
  530. package/esm2022/templates/smart-index/index.mjs +0 -2
  531. package/esm2022/templates/smart-index/smart-index.template.mjs +0 -358
  532. package/fesm2022/ng-atomic-components-organisms-smart-table.mjs +0 -217
  533. package/fesm2022/ng-atomic-components-organisms-smart-table.mjs.map +0 -1
  534. package/fesm2022/ng-atomic-components-pages-blank-blank.routes-09f8841a.mjs +0 -7
  535. package/fesm2022/ng-atomic-components-pages-blank-blank.routes-09f8841a.mjs.map +0 -1
  536. package/fesm2022/ng-atomic-components-templates-smart-crud.mjs +0 -262
  537. package/fesm2022/ng-atomic-components-templates-smart-crud.mjs.map +0 -1
  538. package/fesm2022/ng-atomic-components-templates-smart-index.mjs +0 -365
  539. package/fesm2022/ng-atomic-components-templates-smart-index.mjs.map +0 -1
  540. package/organisms/smart-table/index.d.ts +0 -1
  541. package/organisms/smart-table/smart-table.organism.d.ts +0 -44
  542. package/pages/_index/index.module.d.ts +0 -9
  543. package/templates/smart-crud/index.d.ts +0 -1
  544. package/templates/smart-crud/smart-crud.template.d.ts +0 -28
  545. package/templates/smart-index/index.d.ts +0 -1
  546. package/templates/smart-index/smart-index.template.d.ts +0 -101
@@ -1,70 +1,82 @@
1
- import { CommonModule } from '@angular/common';
1
+ import { __decorate } from 'tslib';
2
2
  import * as i0 from '@angular/core';
3
- import { InjectionToken, Directive, Input, inject, Component, ChangeDetectionStrategy } from '@angular/core';
3
+ import { input, Directive, inject, Component, ChangeDetectionStrategy } from '@angular/core';
4
4
  import { MatIconModule } from '@angular/material/icon';
5
5
  import * as i1 from '@angular/material/list';
6
6
  import { MatListModule } from '@angular/material/list';
7
- import { InjectableComponent } from '@ng-atomic/core';
7
+ import { InjectableComponent, TokenizedType, NgAtomicComponent } from '@ng-atomic/core';
8
8
  import { IconAtom } from '@ng-atomic/components/atoms/icon';
9
+ import { MatBadgeModule } from '@angular/material/badge';
10
+ import { BadgeAtom } from '@ng-atomic/components/atoms/badge';
9
11
 
10
- class NavigationListItemMoleculeStore extends InjectableComponent {
12
+ let NavigationListItemMoleculeStore = class NavigationListItemMoleculeStore extends InjectableComponent {
11
13
  constructor() {
12
14
  super(...arguments);
13
- this.selected = false;
15
+ this.action = input(null, { alias: 'action' });
16
+ this.selected = input(false);
14
17
  }
15
- static { this.TOKEN = new InjectionToken('NavigationListItemMoleculeStore'); }
16
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: NavigationListItemMoleculeStore, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
17
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: NavigationListItemMoleculeStore, isStandalone: true, selector: "molecules-navigation-list-item", inputs: { _action: ["action", "_action"], selected: "selected" }, usesInheritance: true, ngImport: i0 }); }
18
- }
19
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: NavigationListItemMoleculeStore, decorators: [{
18
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.2.2", ngImport: i0, type: NavigationListItemMoleculeStore, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
19
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "17.2.2", type: NavigationListItemMoleculeStore, isStandalone: true, selector: "molecules-navigation-list-item", inputs: { action: { classPropertyName: "action", publicName: "action", isSignal: true, isRequired: false, transformFunction: null }, selected: { classPropertyName: "selected", publicName: "selected", isSignal: true, isRequired: false, transformFunction: null } }, usesInheritance: true, ngImport: i0 }); }
20
+ };
21
+ NavigationListItemMoleculeStore = __decorate([
22
+ TokenizedType()
23
+ ], NavigationListItemMoleculeStore);
24
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.2.2", ngImport: i0, type: NavigationListItemMoleculeStore, decorators: [{
20
25
  type: Directive,
21
26
  args: [{ standalone: true, selector: 'molecules-navigation-list-item' }]
22
- }], propDecorators: { _action: [{
23
- type: Input,
24
- args: ['action']
25
- }], selected: [{
26
- type: Input
27
- }] } });
28
- class NavigationListItemMolecule {
27
+ }] });
28
+ class NavigationListItemMolecule extends NgAtomicComponent {
29
29
  constructor() {
30
+ super(...arguments);
30
31
  this.store = inject(NavigationListItemMoleculeStore);
31
32
  }
32
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: NavigationListItemMolecule, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
33
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: NavigationListItemMolecule, isStandalone: true, selector: "molecules-navigation-list-item", hostDirectives: [{ directive: NavigationListItemMoleculeStore, inputs: ["action", "action", "selected", "selected"] }], ngImport: i0, template: `
33
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.2.2", ngImport: i0, type: NavigationListItemMolecule, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
34
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.2.2", type: NavigationListItemMolecule, isStandalone: true, selector: "molecules-navigation-list-item", usesInheritance: true, hostDirectives: [{ directive: NavigationListItemMoleculeStore, inputs: ["action", "action", "selected", "selected"] }], ngImport: i0, template: `
34
35
  <mat-list-item>
35
36
  <atoms-icon
36
37
  matListItemIcon
37
- [name]="store._action?.icon"
38
- [color]="store._action?.color"
39
38
  matListItemMeta
40
- ></atoms-icon>
41
- <div matListItemTitle>{{ store._action.name }}</div>
39
+ [name]="store.action()?.icon"
40
+ [color]="store.action()?.color"
41
+ />
42
+ <div matListItemTitle>
43
+ <span>{{ store.action()?.name }}</span>
44
+ @if (store.action()?.meta?.badge) {
45
+ <atoms-badge [value]="store.action()?.meta?.badge"/>
46
+ }
47
+ </div>
42
48
  </mat-list-item>
43
- `, isInline: true, styles: [":host{display:block}:host{--mdc-list-list-item-hover-label-text-color: white;--mdc-list-list-item-label-text-color: white;--mdc-list-list-item-supporting-text-color: white}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: MatIconModule }, { kind: "ngmodule", type: MatListModule }, { kind: "component", type: i1.MatListItem, selector: "mat-list-item, a[mat-list-item], button[mat-list-item]", inputs: ["activated"], exportAs: ["matListItem"] }, { kind: "directive", type: i1.MatListItemIcon, selector: "[matListItemIcon]" }, { kind: "directive", type: i1.MatListItemTitle, selector: "[matListItemTitle]" }, { kind: "directive", type: i1.MatListItemMeta, selector: "[matListItemMeta]" }, { kind: "component", type: IconAtom, selector: "atoms-icon", inputs: ["name", "color"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
49
+ `, isInline: true, styles: [":host{display:block;--primary-color: #404040;--primary-color-SCOPED-IN-navigation-list-item-aWgg: var(--primary-color);--surface-color: #f0f0f0;--surface-color-SCOPED-IN-navigation-list-item-aWgg: var(--surface-color);--background-color: #f0f0f0;--background-color-SCOPED-IN-navigation-list-item-aWgg: var(--background-color);--on-primary-color: #f0f0f0;--on-primary-color-SCOPED-IN-navigation-list-item-aWgg: var(--on-primary-color);--on-background-color: #404040;--on-background-color-SCOPED-IN-navigation-list-item-aWgg: var(--on-background-color);--on-surface-color: #404040;--on-surface-color-SCOPED-IN-navigation-list-item-aWgg: var(--on-surface-color);--mat-badge-background-color-SCOPED-IN-navigation-list-item-aWgg: var(--mat-badge-background-color)}:host{--mdc-list-list-item-hover-label-text-color: var(--on-background-color);--mdc-list-list-item-label-text-color: var(--on-background-color);--mdc-list-list-item-supporting-text-color: var(--on-background-color);--mat-list-list-item-leading-icon-end-space: 16px}:host [matListItemTitle]{display:flex;align-items:center;gap:4px}:host ::ng-deep .mat-list-item .mat-list-item-content{display:flex;align-items:center;grid-gap:8px;padding-top:8px;padding-bottom:8px;cursor:pointer;color:var(--on-background-color-SCOPED-IN-navigation-list-item-aWgg);font-size:12px}:host ::ng-deep .mat-list-item .mat-list-text{padding-left:8px!important}:host *{--background-color: var(--background-color-SCOPED-IN-navigation-list-item-aWgg);--on-background-color: var(--on-background-color-SCOPED-IN-navigation-list-item-aWgg);--surface-color: var(--surface-color-SCOPED-IN-navigation-list-item-aWgg);--on-surface-color: var(--on-surface-color-SCOPED-IN-navigation-list-item-aWgg);--primary-color: var(--on-primary-color-SCOPED-IN-navigation-list-item-aWgg);--on-primary-color: var(--primary-color-SCOPED-IN-navigation-list-item-aWgg)}\n"], dependencies: [{ kind: "ngmodule", type: MatIconModule }, { kind: "ngmodule", type: MatListModule }, { kind: "component", type: i1.MatListItem, selector: "mat-list-item, a[mat-list-item], button[mat-list-item]", inputs: ["activated"], exportAs: ["matListItem"] }, { kind: "directive", type: i1.MatListItemIcon, selector: "[matListItemIcon]" }, { kind: "directive", type: i1.MatListItemTitle, selector: "[matListItemTitle]" }, { kind: "directive", type: i1.MatListItemMeta, selector: "[matListItemMeta]" }, { kind: "ngmodule", type: MatBadgeModule }, { kind: "component", type: IconAtom, selector: "atoms-icon", inputs: ["name", "color"] }, { kind: "component", type: BadgeAtom, selector: "atoms-badge", inputs: ["value"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
44
50
  }
45
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: NavigationListItemMolecule, decorators: [{
51
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.2.2", ngImport: i0, type: NavigationListItemMolecule, decorators: [{
46
52
  type: Component,
47
53
  args: [{ selector: 'molecules-navigation-list-item', standalone: true, imports: [
48
- CommonModule,
49
54
  MatIconModule,
50
55
  MatListModule,
56
+ MatBadgeModule,
51
57
  IconAtom,
58
+ BadgeAtom,
52
59
  ], template: `
53
60
  <mat-list-item>
54
61
  <atoms-icon
55
62
  matListItemIcon
56
- [name]="store._action?.icon"
57
- [color]="store._action?.color"
58
63
  matListItemMeta
59
- ></atoms-icon>
60
- <div matListItemTitle>{{ store._action.name }}</div>
64
+ [name]="store.action()?.icon"
65
+ [color]="store.action()?.color"
66
+ />
67
+ <div matListItemTitle>
68
+ <span>{{ store.action()?.name }}</span>
69
+ @if (store.action()?.meta?.badge) {
70
+ <atoms-badge [value]="store.action()?.meta?.badge"/>
71
+ }
72
+ </div>
61
73
  </mat-list-item>
62
74
  `, changeDetection: ChangeDetectionStrategy.OnPush, hostDirectives: [
63
75
  {
64
76
  directive: NavigationListItemMoleculeStore,
65
77
  inputs: ['action', 'selected'],
66
78
  },
67
- ], styles: [":host{display:block}:host{--mdc-list-list-item-hover-label-text-color: white;--mdc-list-list-item-label-text-color: white;--mdc-list-list-item-supporting-text-color: white}\n"] }]
79
+ ], styles: [":host{display:block;--primary-color: #404040;--primary-color-SCOPED-IN-navigation-list-item-aWgg: var(--primary-color);--surface-color: #f0f0f0;--surface-color-SCOPED-IN-navigation-list-item-aWgg: var(--surface-color);--background-color: #f0f0f0;--background-color-SCOPED-IN-navigation-list-item-aWgg: var(--background-color);--on-primary-color: #f0f0f0;--on-primary-color-SCOPED-IN-navigation-list-item-aWgg: var(--on-primary-color);--on-background-color: #404040;--on-background-color-SCOPED-IN-navigation-list-item-aWgg: var(--on-background-color);--on-surface-color: #404040;--on-surface-color-SCOPED-IN-navigation-list-item-aWgg: var(--on-surface-color);--mat-badge-background-color-SCOPED-IN-navigation-list-item-aWgg: var(--mat-badge-background-color)}:host{--mdc-list-list-item-hover-label-text-color: var(--on-background-color);--mdc-list-list-item-label-text-color: var(--on-background-color);--mdc-list-list-item-supporting-text-color: var(--on-background-color);--mat-list-list-item-leading-icon-end-space: 16px}:host [matListItemTitle]{display:flex;align-items:center;gap:4px}:host ::ng-deep .mat-list-item .mat-list-item-content{display:flex;align-items:center;grid-gap:8px;padding-top:8px;padding-bottom:8px;cursor:pointer;color:var(--on-background-color-SCOPED-IN-navigation-list-item-aWgg);font-size:12px}:host ::ng-deep .mat-list-item .mat-list-text{padding-left:8px!important}:host *{--background-color: var(--background-color-SCOPED-IN-navigation-list-item-aWgg);--on-background-color: var(--on-background-color-SCOPED-IN-navigation-list-item-aWgg);--surface-color: var(--surface-color-SCOPED-IN-navigation-list-item-aWgg);--on-surface-color: var(--on-surface-color-SCOPED-IN-navigation-list-item-aWgg);--primary-color: var(--on-primary-color-SCOPED-IN-navigation-list-item-aWgg);--on-primary-color: var(--primary-color-SCOPED-IN-navigation-list-item-aWgg)}\n"] }]
68
80
  }] });
69
81
 
70
82
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"ng-atomic-components-molecules-navigation-list-item.mjs","sources":["../../../../../packages/@ng-atomic/components/src/lib/molecules/navigation-list-item/navigation-list-item.molecule.ts","../../../../../packages/@ng-atomic/components/src/lib/molecules/navigation-list-item/ng-atomic-components-molecules-navigation-list-item.ts"],"sourcesContent":["import { CommonModule } from '@angular/common';\nimport { Component, ChangeDetectionStrategy, Input, Directive, inject, InjectionToken } from '@angular/core';\nimport { MatIconModule } from '@angular/material/icon';\nimport { MatListModule } from '@angular/material/list';\nimport { InjectableComponent } from '@ng-atomic/core';\nimport { Action } from '@ng-atomic/core';\nimport { IconAtom } from '@ng-atomic/components/atoms/icon';\n\n@Directive({ standalone: true, selector: 'molecules-navigation-list-item' })\nexport class NavigationListItemMoleculeStore extends InjectableComponent {\n static TOKEN = new InjectionToken('NavigationListItemMoleculeStore');\n @Input('action') _action: Action;\n @Input() selected = false;\n}\n\n@Component({\n selector: 'molecules-navigation-list-item',\n standalone: true,\n imports: [\n CommonModule,\n MatIconModule,\n MatListModule,\n IconAtom,\n ],\n template: `\n <mat-list-item>\n <atoms-icon\n matListItemIcon\n [name]=\"store._action?.icon\"\n [color]=\"store._action?.color\"\n matListItemMeta\n ></atoms-icon>\n <div matListItemTitle>{{ store._action.name }}</div>\n </mat-list-item>\n `,\n styleUrls: ['./navigation-list-item.molecule.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n hostDirectives: [\n {\n directive: NavigationListItemMoleculeStore,\n inputs: ['action', 'selected'],\n },\n ]\n})\nexport class NavigationListItemMolecule {\n protected store = inject(NavigationListItemMoleculeStore);\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;AASM,MAAO,+BAAgC,SAAQ,mBAAmB,CAAA;AADxE,IAAA,WAAA,GAAA;;QAIW,IAAQ,CAAA,QAAA,GAAG,KAAK,CAAC;AAC3B,KAAA;AAHQ,IAAA,SAAA,IAAA,CAAA,KAAK,GAAG,IAAI,cAAc,CAAC,iCAAiC,CAAC,CAAC,EAAA;+GAD1D,+BAA+B,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA,EAAA;mGAA/B,+BAA+B,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,gCAAA,EAAA,MAAA,EAAA,EAAA,OAAA,EAAA,CAAA,QAAA,EAAA,SAAA,CAAA,EAAA,QAAA,EAAA,UAAA,EAAA,EAAA,eAAA,EAAA,IAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA,EAAA;;4FAA/B,+BAA+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C,SAAS;+BACE,gCAAgC,EAAA,UAAA,EAC9B,IAAI,EACP,OAAA,EAAA;wBACP,YAAY;wBACZ,aAAa;wBACb,aAAa;wBACb,QAAQ;qBACT,EACS,QAAA,EAAA,CAAA;;;;;;;;;;GAUT,EAEgB,eAAA,EAAA,uBAAuB,CAAC,MAAM,EAC/B,cAAA,EAAA;AACd,wBAAA;AACE,4BAAA,SAAS,EAAE,+BAA+B;AAC1C,4BAAA,MAAM,EAAE,CAAC,QAAQ,EAAE,UAAU,CAAC;AAC/B,yBAAA;AACF,qBAAA,EAAA,MAAA,EAAA,CAAA,gLAAA,CAAA,EAAA,CAAA;;;AC1CH;;AAEG;;;;"}
1
+ {"version":3,"file":"ng-atomic-components-molecules-navigation-list-item.mjs","sources":["../../../../../packages/@ng-atomic/components/src/lib/molecules/navigation-list-item/navigation-list-item.molecule.ts","../../../../../packages/@ng-atomic/components/src/lib/molecules/navigation-list-item/ng-atomic-components-molecules-navigation-list-item.ts"],"sourcesContent":["import { Component, ChangeDetectionStrategy, Directive, inject, input, effect } from '@angular/core';\nimport { MatIconModule } from '@angular/material/icon';\nimport { MatListModule } from '@angular/material/list';\nimport { InjectableComponent, NgAtomicComponent, TokenizedType } from '@ng-atomic/core';\nimport { Action } from '@ng-atomic/core';\nimport { IconAtom } from '@ng-atomic/components/atoms/icon';\nimport { MatBadgeModule } from '@angular/material/badge';\nimport { BadgeAtom } from '@ng-atomic/components/atoms/badge';\n\n@TokenizedType()\n@Directive({ standalone: true, selector: 'molecules-navigation-list-item' })\nexport class NavigationListItemMoleculeStore extends InjectableComponent {\n readonly action = input<Action>(null, {alias: 'action'});\n readonly selected = input(false);\n}\n\n@Component({\n selector: 'molecules-navigation-list-item',\n standalone: true,\n imports: [\n MatIconModule,\n MatListModule,\n MatBadgeModule,\n IconAtom,\n BadgeAtom,\n ],\n template: `\n <mat-list-item>\n <atoms-icon\n matListItemIcon\n matListItemMeta\n [name]=\"store.action()?.icon\"\n [color]=\"store.action()?.color\"\n />\n <div matListItemTitle>\n <span>{{ store.action()?.name }}</span>\n @if (store.action()?.meta?.badge) {\n <atoms-badge [value]=\"store.action()?.meta?.badge\"/>\n }\n </div>\n </mat-list-item>\n `,\n styleUrls: ['./navigation-list-item.molecule.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n hostDirectives: [\n {\n directive: NavigationListItemMoleculeStore,\n inputs: ['action', 'selected'],\n },\n ]\n})\nexport class NavigationListItemMolecule extends NgAtomicComponent {\n protected store = inject(NavigationListItemMoleculeStore);\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;AAWO,IAAM,+BAA+B,GAArC,MAAM,+BAAgC,SAAQ,mBAAmB,CAAA;AAAjE,IAAA,WAAA,GAAA;;QACI,IAAM,CAAA,MAAA,GAAG,KAAK,CAAS,IAAI,EAAE,EAAC,KAAK,EAAE,QAAQ,EAAC,CAAC,CAAC;AAChD,QAAA,IAAA,CAAA,QAAQ,GAAG,KAAK,CAAC,KAAK,CAAC,CAAC;AAClC,KAAA;8GAHY,+BAA+B,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA,EAAA;kGAA/B,+BAA+B,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,gCAAA,EAAA,MAAA,EAAA,EAAA,MAAA,EAAA,EAAA,iBAAA,EAAA,QAAA,EAAA,UAAA,EAAA,QAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,QAAA,EAAA,EAAA,iBAAA,EAAA,UAAA,EAAA,UAAA,EAAA,UAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,EAAA,eAAA,EAAA,IAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA,EA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EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,gBAAA,EAAA,QAAA,EAAA,oBAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,eAAA,EAAA,QAAA,EAAA,mBAAA,EAAA,EAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EACb,cAAc,EACd,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,QAAQ,kFACR,SAAS,EAAA,QAAA,EAAA,aAAA,EAAA,MAAA,EAAA,CAAA,OAAA,CAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA,EAAA;;2FA2BA,0BAA0B,EAAA,UAAA,EAAA,CAAA;kBAnCtC,SAAS;+BACE,gCAAgC,EAAA,UAAA,EAC9B,IAAI,EACP,OAAA,EAAA;wBACP,aAAa;wBACb,aAAa;wBACb,cAAc;wBACd,QAAQ;wBACR,SAAS;qBACV,EACS,QAAA,EAAA,CAAA;;;;;;;;;;;;;;;GAeT,EAEgB,eAAA,EAAA,uBAAuB,CAAC,MAAM,EAC/B,cAAA,EAAA;AACd,wBAAA;AACE,4BAAA,SAAS,EAAE,+BAA+B;AAC1C,4BAAA,MAAM,EAAE,CAAC,QAAQ,EAAE,UAAU,CAAC;AAC/B,yBAAA;AACF,qBAAA,EAAA,MAAA,EAAA,CAAA,y1DAAA,CAAA,EAAA,CAAA;;;ACjDH;;AAEG;;;;"}
@@ -9,8 +9,8 @@ class NestedMenuMolecule {
9
9
  constructor() {
10
10
  this.action = new EventEmitter();
11
11
  }
12
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: NestedMenuMolecule, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
13
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: NestedMenuMolecule, isStandalone: true, selector: "molecules-nested-menu", inputs: { actions: "actions" }, outputs: { action: "action" }, viewQueries: [{ propertyName: "childMenu", first: true, predicate: ["childMenu"], descendants: true }], ngImport: i0, template: `
12
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.2.2", ngImport: i0, type: NestedMenuMolecule, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
13
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.2.2", type: NestedMenuMolecule, isStandalone: true, selector: "molecules-nested-menu", inputs: { actions: "actions" }, outputs: { action: "action" }, viewQueries: [{ propertyName: "childMenu", first: true, predicate: ["childMenu"], descendants: true }], ngImport: i0, template: `
14
14
  <mat-menu #childMenu="matMenu" [overlapTrigger]="false">
15
15
  <span *ngFor="let _action of actions">
16
16
  <span *ngIf="_action?.children">
@@ -33,9 +33,9 @@ class NestedMenuMolecule {
33
33
  </span>
34
34
  </span>
35
35
  </mat-menu>
36
- `, isInline: true, dependencies: [{ kind: "component", type: NestedMenuMolecule, selector: "molecules-nested-menu", inputs: ["actions"], outputs: ["action"] }, { kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: MatMenuModule }, { kind: "component", type: i2.MatMenu, selector: "mat-menu", exportAs: ["matMenu"] }, { kind: "component", type: i2.MatMenuItem, selector: "[mat-menu-item]", inputs: ["disabled", "disableRipple", "role"], exportAs: ["matMenuItem"] }, { kind: "directive", type: i2.MatMenuTrigger, selector: "[mat-menu-trigger-for], [matMenuTriggerFor]", exportAs: ["matMenuTrigger"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
36
+ `, isInline: true, dependencies: [{ kind: "component", type: NestedMenuMolecule, selector: "molecules-nested-menu", inputs: ["actions"], outputs: ["action"] }, { kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: MatMenuModule }, { kind: "component", type: i2.MatMenu, selector: "mat-menu", inputs: ["backdropClass", "aria-label", "aria-labelledby", "aria-describedby", "xPosition", "yPosition", "overlapTrigger", "hasBackdrop", "class", "classList"], outputs: ["closed", "close"], exportAs: ["matMenu"] }, { kind: "component", type: i2.MatMenuItem, selector: "[mat-menu-item]", inputs: ["role", "disabled", "disableRipple"], exportAs: ["matMenuItem"] }, { kind: "directive", type: i2.MatMenuTrigger, selector: "[mat-menu-trigger-for], [matMenuTriggerFor]", inputs: ["mat-menu-trigger-for", "matMenuTriggerFor", "matMenuTriggerData", "matMenuTriggerRestoreFocus"], outputs: ["menuOpened", "onMenuOpen", "menuClosed", "onMenuClose"], exportAs: ["matMenuTrigger"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
37
37
  }
38
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: NestedMenuMolecule, decorators: [{
38
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.2.2", ngImport: i0, type: NestedMenuMolecule, decorators: [{
39
39
  type: Component,
40
40
  args: [{
41
41
  selector: 'molecules-nested-menu',
@@ -1 +1 @@
1
- {"version":3,"file":"ng-atomic-components-molecules-nested-menu.mjs","sources":["../../../../../packages/@ng-atomic/components/src/lib/molecules/nested-menu/nested-menu.molecule.ts","../../../../../packages/@ng-atomic/components/src/lib/molecules/nested-menu/ng-atomic-components-molecules-nested-menu.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, EventEmitter, Input, Output, ViewChild } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { Action } from '@ng-atomic/core';\nimport { MatMenuModule } from '@angular/material/menu';\n\n@Component({\n selector: 'molecules-nested-menu',\n standalone: true,\n imports: [\n CommonModule,\n MatMenuModule,\n ],\n template: `\n <mat-menu #childMenu=\"matMenu\" [overlapTrigger]=\"false\">\n <span *ngFor=\"let _action of actions\">\n <span *ngIf=\"_action?.children\">\n <button mat-menu-item [matMenuTriggerFor]=\"menu.childMenu\">\n <mat-icon>{{_action.icon}}</mat-icon>\n <span>{{ _action.name }}</span>\n </button>\n <molecules-nested-menu\n #menu\n [actions]=\"_action.children\"\n (action)=\"action.emit($event)\"\n ></molecules-nested-menu>\n </span>\n \n <span *ngIf=\"!_action?.children\">\n <button mat-menu-item (click)=\"action.emit(_action)\">\n <mat-icon>{{ _action.icon }}</mat-icon>\n <span>{{ _action.name }}</span>\n </button>\n </span>\n </span>\n </mat-menu>\n `,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class NestedMenuMolecule {\n @Input()\n actions: Action[];\n\n @ViewChild('childMenu')\n childMenu;\n\n @Output()\n action = new EventEmitter<Action>();\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;MAsCa,kBAAkB,CAAA;AAjC/B,IAAA,WAAA,GAAA;AAyCE,QAAA,IAAA,CAAA,MAAM,GAAG,IAAI,YAAY,EAAU,CAAC;AACrC,KAAA;+GATY,kBAAkB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA,EAAA;AAAlB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,kBAAkB,EA1BnB,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,uBAAA,EAAA,MAAA,EAAA,EAAA,OAAA,EAAA,SAAA,EAAA,EAAA,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,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,cAAA,EAAA,QAAA,EAAA,6CAAA,EAAA,QAAA,EAAA,CAAA,gBAAA,CAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA,EAAA;;4FA4BJ,kBAAkB,EAAA,UAAA,EAAA,CAAA;kBAjC9B,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,uBAAuB;AACjC,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ,aAAa;AACd,qBAAA;AACD,oBAAA,QAAQ,EAAE,CAAA;;;;;;;;;;;;;;;;;;;;;;;AAuBT,EAAA,CAAA;oBACD,eAAe,EAAE,uBAAuB,CAAC,MAAM;AAChD,iBAAA,CAAA;8BAGC,OAAO,EAAA,CAAA;sBADN,KAAK;gBAIN,SAAS,EAAA,CAAA;sBADR,SAAS;uBAAC,WAAW,CAAA;gBAItB,MAAM,EAAA,CAAA;sBADL,MAAM;;;AC7CT;;AAEG;;;;"}
1
+ {"version":3,"file":"ng-atomic-components-molecules-nested-menu.mjs","sources":["../../../../../packages/@ng-atomic/components/src/lib/molecules/nested-menu/nested-menu.molecule.ts","../../../../../packages/@ng-atomic/components/src/lib/molecules/nested-menu/ng-atomic-components-molecules-nested-menu.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, EventEmitter, Input, Output, ViewChild } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { Action } from '@ng-atomic/core';\nimport { MatMenuModule } from '@angular/material/menu';\n\n@Component({\n selector: 'molecules-nested-menu',\n standalone: true,\n imports: [\n CommonModule,\n MatMenuModule,\n ],\n template: `\n <mat-menu #childMenu=\"matMenu\" [overlapTrigger]=\"false\">\n <span *ngFor=\"let _action of actions\">\n <span *ngIf=\"_action?.children\">\n <button mat-menu-item [matMenuTriggerFor]=\"menu.childMenu\">\n <mat-icon>{{_action.icon}}</mat-icon>\n <span>{{ _action.name }}</span>\n </button>\n <molecules-nested-menu\n #menu\n [actions]=\"_action.children\"\n (action)=\"action.emit($event)\"\n ></molecules-nested-menu>\n </span>\n \n <span *ngIf=\"!_action?.children\">\n <button mat-menu-item (click)=\"action.emit(_action)\">\n <mat-icon>{{ _action.icon }}</mat-icon>\n <span>{{ _action.name }}</span>\n </button>\n </span>\n </span>\n </mat-menu>\n `,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class NestedMenuMolecule {\n @Input()\n actions: Action[];\n\n @ViewChild('childMenu')\n childMenu;\n\n @Output()\n action = new EventEmitter<Action>();\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;MAsCa,kBAAkB,CAAA;AAjC/B,IAAA,WAAA,GAAA;AAyCE,QAAA,IAAA,CAAA,MAAM,GAAG,IAAI,YAAY,EAAU,CAAC;AACrC,KAAA;8GATY,kBAAkB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA,EAAA;AAAlB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,kBAAkB,EA1BnB,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,uBAAA,EAAA,MAAA,EAAA,EAAA,OAAA,EAAA,SAAA,EAAA,EAAA,OAAA,EAAA,EAAA,MAAA,EAAA,QAAA,EAAA,EAAA,WAAA,EAAA,CAAA,EAAA,YAAA,EAAA,WAAA,EAAA,KAAA,EAAA,IAAA,EAAA,SAAA,EAAA,CAAA,WAAA,CAAA,EAAA,WAAA,EAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EAAA,CAAA;;;;;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EAAA,IAAA,EAAA,EAAA,CAAA,cAAA,EAAA,QAAA,EAAA,6CAAA,EAAA,MAAA,EAAA,CAAA,sBAAA,EAAA,mBAAA,EAAA,oBAAA,EAAA,4BAAA,CAAA,EAAA,OAAA,EAAA,CAAA,YAAA,EAAA,YAAA,EAAA,YAAA,EAAA,aAAA,CAAA,EAAA,QAAA,EAAA,CAAA,gBAAA,CAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA,EAAA;;2FA4BJ,kBAAkB,EAAA,UAAA,EAAA,CAAA;kBAjC9B,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,uBAAuB;AACjC,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ,aAAa;AACd,qBAAA;AACD,oBAAA,QAAQ,EAAE,CAAA;;;;;;;;;;;;;;;;;;;;;;;AAuBT,EAAA,CAAA;oBACD,eAAe,EAAE,uBAAuB,CAAC,MAAM;AAChD,iBAAA,CAAA;8BAGC,OAAO,EAAA,CAAA;sBADN,KAAK;gBAIN,SAAS,EAAA,CAAA;sBADR,SAAS;uBAAC,WAAW,CAAA;gBAItB,MAAM,EAAA,CAAA;sBADL,MAAM;;;AC7CT;;AAEG;;;;"}
@@ -1,37 +1,54 @@
1
- import * as i1 from '@angular/common';
2
1
  import { CommonModule } from '@angular/common';
3
2
  import * as i0 from '@angular/core';
4
- import { Component, ChangeDetectionStrategy, Input } from '@angular/core';
5
- import * as i2 from '@angular/forms';
3
+ import { input, Directive, inject, Component, ChangeDetectionStrategy } from '@angular/core';
4
+ import * as i1 from '@angular/forms';
6
5
  import { FormControl, ReactiveFormsModule } from '@angular/forms';
7
- import * as i4 from '@angular/material/select';
6
+ import * as i3 from '@angular/material/select';
8
7
  import { MatSelectModule } from '@angular/material/select';
9
8
  import { ErrorPipe } from '@ng-atomic/common/pipes/error';
10
- import * as i3 from '@angular/material/form-field';
11
- import * as i5 from '@angular/material/core';
9
+ import * as i2 from '@angular/material/form-field';
10
+ import * as i4 from '@angular/material/core';
12
11
 
12
+ class SelectInputFieldMoleculeStore {
13
+ constructor() {
14
+ this.control = input(new FormControl({}));
15
+ this.label = input('');
16
+ this.appearance = input('outline');
17
+ this.options = input([]);
18
+ this.hint = input(null);
19
+ this.placeholder = input(null);
20
+ this.multiple = input(false);
21
+ }
22
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.2.2", ngImport: i0, type: SelectInputFieldMoleculeStore, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
23
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "17.2.2", type: SelectInputFieldMoleculeStore, isStandalone: true, inputs: { control: { classPropertyName: "control", publicName: "control", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, appearance: { classPropertyName: "appearance", publicName: "appearance", isSignal: true, isRequired: false, transformFunction: null }, options: { classPropertyName: "options", publicName: "options", isSignal: true, isRequired: false, transformFunction: null }, hint: { classPropertyName: "hint", publicName: "hint", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, multiple: { classPropertyName: "multiple", publicName: "multiple", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0 }); }
24
+ }
25
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.2.2", ngImport: i0, type: SelectInputFieldMoleculeStore, decorators: [{
26
+ type: Directive,
27
+ args: [{ standalone: true }]
28
+ }] });
13
29
  class SelectInputFieldMolecule {
14
30
  constructor() {
15
- this.label = '';
16
- this.appearance = 'outline';
17
- this.control = new FormControl({});
18
- this.options = [];
19
- this.value = (item) => item?.value;
31
+ this.store = inject(SelectInputFieldMoleculeStore);
20
32
  }
21
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SelectInputFieldMolecule, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
22
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: SelectInputFieldMolecule, isStandalone: true, selector: "molecules-select-input-field", inputs: { label: "label", appearance: "appearance", control: "control", options: "options" }, host: { classAttribute: "molecule input-field field" }, ngImport: i0, template: `
23
- <mat-form-field [appearance]="appearance">
24
- <mat-label>{{ label }}</mat-label>
25
- <mat-select [formControl]="control">
26
- <mat-option *ngFor="let option of options; trackBy value;" [value]="option.value">
33
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.2.2", ngImport: i0, type: SelectInputFieldMolecule, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
34
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.2.2", type: SelectInputFieldMolecule, isStandalone: true, selector: "molecules-select-input-field", host: { classAttribute: "molecule input-field field" }, hostDirectives: [{ directive: SelectInputFieldMoleculeStore, inputs: ["control", "control", "label", "label", "appearance", "appearance", "options", "options", "hint", "hint", "placeholder", "placeholder", "multiple", "multiple"] }], ngImport: i0, template: `
35
+ <mat-form-field [appearance]="store.appearance()">
36
+ <mat-label>{{ store.label() }}</mat-label>
37
+ <mat-select [formControl]="store.control()" [multiple]="store.multiple()">
38
+ @for (option of store.options(); track option?.value) {
39
+ <mat-option [value]="option.value">
27
40
  {{ option.name }}
28
41
  </mat-option>
42
+ }
29
43
  </mat-select>
30
- <mat-error>{{ control.errors | error }}</mat-error>
44
+ @if (store.hint()) {
45
+ <mat-hint>{{ store.hint() }}</mat-hint>
46
+ }
47
+ <mat-error>{{ store.control().errors | error }}</mat-error>
31
48
  </mat-form-field>
32
- `, isInline: true, styles: [":host{--horizontal-padding: 16px;--horizontal-padding-SCOPED-IN-select-input-field-X26S: var(--horizontal-padding)}:host{display:block;width:100%}:host mat-form-field{width:100%}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "ngmodule", type: MatSelectModule }, { kind: "component", type: i3.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i3.MatLabel, selector: "mat-label" }, { kind: "directive", type: i3.MatError, selector: "mat-error, [matError]", inputs: ["id"] }, { kind: "component", type: i4.MatSelect, selector: "mat-select", inputs: ["disabled", "disableRipple", "tabIndex", "panelWidth", "hideSingleSelectionIndicator"], exportAs: ["matSelect"] }, { kind: "component", type: i5.MatOption, selector: "mat-option", exportAs: ["matOption"] }, { kind: "pipe", type: ErrorPipe, name: "error" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
49
+ `, isInline: true, styles: [":host{--horizontal-padding: 16px;--horizontal-padding-SCOPED-IN-select-input-field-Lwr5: var(--horizontal-padding)}:host{display:block;width:100%}:host mat-form-field{width:100%}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "ngmodule", type: MatSelectModule }, { kind: "component", type: i2.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i2.MatLabel, selector: "mat-label" }, { kind: "directive", type: i2.MatHint, selector: "mat-hint", inputs: ["align", "id"] }, { kind: "directive", type: i2.MatError, selector: "mat-error, [matError]", inputs: ["id"] }, { kind: "component", type: i3.MatSelect, selector: "mat-select", inputs: ["aria-describedby", "panelClass", "disabled", "disableRipple", "tabIndex", "hideSingleSelectionIndicator", "placeholder", "required", "multiple", "disableOptionCentering", "compareWith", "value", "aria-label", "aria-labelledby", "errorStateMatcher", "typeaheadDebounceInterval", "sortComparator", "id", "panelWidth"], outputs: ["openedChange", "opened", "closed", "selectionChange", "valueChange"], exportAs: ["matSelect"] }, { kind: "component", type: i4.MatOption, selector: "mat-option", inputs: ["value", "id", "disabled"], outputs: ["onSelectionChange"], exportAs: ["matOption"] }, { kind: "pipe", type: ErrorPipe, name: "error" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
33
50
  }
34
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SelectInputFieldMolecule, decorators: [{
51
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.2.2", ngImport: i0, type: SelectInputFieldMolecule, decorators: [{
35
52
  type: Component,
36
53
  args: [{ selector: 'molecules-select-input-field', standalone: true, imports: [
37
54
  CommonModule,
@@ -39,29 +56,31 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
39
56
  MatSelectModule,
40
57
  ErrorPipe,
41
58
  ], template: `
42
- <mat-form-field [appearance]="appearance">
43
- <mat-label>{{ label }}</mat-label>
44
- <mat-select [formControl]="control">
45
- <mat-option *ngFor="let option of options; trackBy value;" [value]="option.value">
59
+ <mat-form-field [appearance]="store.appearance()">
60
+ <mat-label>{{ store.label() }}</mat-label>
61
+ <mat-select [formControl]="store.control()" [multiple]="store.multiple()">
62
+ @for (option of store.options(); track option?.value) {
63
+ <mat-option [value]="option.value">
46
64
  {{ option.name }}
47
65
  </mat-option>
66
+ }
48
67
  </mat-select>
49
- <mat-error>{{ control.errors | error }}</mat-error>
68
+ @if (store.hint()) {
69
+ <mat-hint>{{ store.hint() }}</mat-hint>
70
+ }
71
+ <mat-error>{{ store.control().errors | error }}</mat-error>
50
72
  </mat-form-field>
51
- `, changeDetection: ChangeDetectionStrategy.OnPush, host: { class: 'molecule input-field field' }, styles: [":host{--horizontal-padding: 16px;--horizontal-padding-SCOPED-IN-select-input-field-X26S: var(--horizontal-padding)}:host{display:block;width:100%}:host mat-form-field{width:100%}\n"] }]
52
- }], propDecorators: { label: [{
53
- type: Input
54
- }], appearance: [{
55
- type: Input
56
- }], control: [{
57
- type: Input
58
- }], options: [{
59
- type: Input
60
- }] } });
73
+ `, changeDetection: ChangeDetectionStrategy.OnPush, host: { class: 'molecule input-field field' }, hostDirectives: [
74
+ {
75
+ directive: SelectInputFieldMoleculeStore,
76
+ inputs: ['control', 'label', 'appearance', 'options', 'hint', 'placeholder', 'multiple'],
77
+ },
78
+ ], styles: [":host{--horizontal-padding: 16px;--horizontal-padding-SCOPED-IN-select-input-field-Lwr5: var(--horizontal-padding)}:host{display:block;width:100%}:host mat-form-field{width:100%}\n"] }]
79
+ }] });
61
80
 
62
81
  /**
63
82
  * Generated bundle index. Do not edit.
64
83
  */
65
84
 
66
- export { SelectInputFieldMolecule };
85
+ export { SelectInputFieldMolecule, SelectInputFieldMoleculeStore };
67
86
  //# sourceMappingURL=ng-atomic-components-molecules-select-input-field.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"ng-atomic-components-molecules-select-input-field.mjs","sources":["../../../../../packages/@ng-atomic/components/src/lib/molecules/select-input-field/select-input-field.molecule.ts","../../../../../packages/@ng-atomic/components/src/lib/molecules/select-input-field/ng-atomic-components-molecules-select-input-field.ts"],"sourcesContent":["import { CommonModule } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, Input } from '@angular/core';\nimport { FormControl, ReactiveFormsModule } from '@angular/forms';\nimport { MatSelectModule } from '@angular/material/select';\nimport { ErrorPipe } from '@ng-atomic/common/pipes/error';\n\nexport interface Option<T> {\n name: string;\n value: T;\n}\n\n@Component({\n selector: 'molecules-select-input-field',\n standalone: true,\n imports: [\n CommonModule,\n ReactiveFormsModule,\n MatSelectModule,\n ErrorPipe,\n ],\n template: `\n <mat-form-field [appearance]=\"appearance\">\n <mat-label>{{ label }}</mat-label>\n <mat-select [formControl]=\"control\">\n <mat-option *ngFor=\"let option of options; trackBy value;\" [value]=\"option.value\">\n {{ option.name }}\n </mat-option>\n </mat-select>\n <mat-error>{{ control.errors | error }}</mat-error>\n </mat-form-field>\n `,\n styleUrls: ['./select-input-field.molecule.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {class: 'molecule input-field field'},\n})\nexport class SelectInputFieldMolecule<T> {\n\n @Input()\n label: string = '';\n\n @Input()\n appearance: 'outline' | 'fill' = 'outline';\n\n @Input()\n control = new FormControl<T>({} as T);\n\n @Input()\n options: Option<T>[] = [];\n\n value = (item: Option<T>) => item?.value; \n\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;MAmCa,wBAAwB,CAAA;AAxBrC,IAAA,WAAA,GAAA;QA2BE,IAAK,CAAA,KAAA,GAAW,EAAE,CAAC;QAGnB,IAAU,CAAA,UAAA,GAAuB,SAAS,CAAC;AAG3C,QAAA,IAAA,CAAA,OAAO,GAAG,IAAI,WAAW,CAAI,EAAO,CAAC,CAAC;QAGtC,IAAO,CAAA,OAAA,GAAgB,EAAE,CAAC;QAE1B,IAAK,CAAA,KAAA,GAAG,CAAC,IAAe,KAAK,IAAI,EAAE,KAAK,CAAC;AAE1C,KAAA;+GAhBY,wBAAwB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA,EAAA;AAAxB,IAAA,SAAA,IAAA,CAAA,IAAA,G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AA,MAAA,EAAA,CAAA,CAAA,EAAA;;4FAiBA,wBAAwB,EAAA,UAAA,EAAA,CAAA;kBAxBpC,SAAS;+BACE,8BAA8B,EAAA,UAAA,EAC5B,IAAI,EACP,OAAA,EAAA;wBACP,YAAY;wBACZ,mBAAmB;wBACnB,eAAe;wBACf,SAAS;qBACV,EACS,QAAA,EAAA,CAAA;;;;;;;;;;GAUT,EAEgB,eAAA,EAAA,uBAAuB,CAAC,MAAM,EAAA,IAAA,EACzC,EAAC,KAAK,EAAE,4BAA4B,EAAC,EAAA,MAAA,EAAA,CAAA,sLAAA,CAAA,EAAA,CAAA;8BAK3C,KAAK,EAAA,CAAA;sBADJ,KAAK;gBAIN,UAAU,EAAA,CAAA;sBADT,KAAK;gBAIN,OAAO,EAAA,CAAA;sBADN,KAAK;gBAIN,OAAO,EAAA,CAAA;sBADN,KAAK;;;AC9CR;;AAEG;;;;"}
1
+ {"version":3,"file":"ng-atomic-components-molecules-select-input-field.mjs","sources":["../../../../../packages/@ng-atomic/components/src/lib/molecules/select-input-field/select-input-field.molecule.ts","../../../../../packages/@ng-atomic/components/src/lib/molecules/select-input-field/ng-atomic-components-molecules-select-input-field.ts"],"sourcesContent":["import { CommonModule } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, Directive, Input, inject, input } from '@angular/core';\nimport { FormControl, ReactiveFormsModule } from '@angular/forms';\nimport { MatSelectModule } from '@angular/material/select';\nimport { ErrorPipe } from '@ng-atomic/common/pipes/error';\n\nexport interface Option<T> {\n name: string;\n value: T;\n}\n\n@Directive({standalone: true})\nexport class SelectInputFieldMoleculeStore<T> {\n readonly control = input(new FormControl<T>({} as T));\n readonly label = input('');\n readonly appearance = input<'outline' | 'fill'>('outline');\n readonly options = input<Option<T>[]>([]);\n readonly hint = input(null); \n readonly placeholder = input(null);\n readonly multiple = input(false);\n}\n\n@Component({\n selector: 'molecules-select-input-field',\n standalone: true,\n imports: [\n CommonModule,\n ReactiveFormsModule,\n MatSelectModule,\n ErrorPipe,\n ],\n template: `\n <mat-form-field [appearance]=\"store.appearance()\">\n <mat-label>{{ store.label() }}</mat-label>\n <mat-select [formControl]=\"store.control()\" [multiple]=\"store.multiple()\">\n @for (option of store.options(); track option?.value) {\n <mat-option [value]=\"option.value\">\n {{ option.name }}\n </mat-option>\n }\n </mat-select>\n @if (store.hint()) {\n <mat-hint>{{ store.hint() }}</mat-hint>\n }\n <mat-error>{{ store.control().errors | error }}</mat-error>\n </mat-form-field>\n `,\n styleUrls: ['./select-input-field.molecule.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {class: 'molecule input-field field'},\n hostDirectives: [\n {\n directive: SelectInputFieldMoleculeStore,\n inputs: ['control', 'label', 'appearance', 'options', 'hint', 'placeholder', 'multiple'],\n },\n ],\n})\nexport class SelectInputFieldMolecule<T> {\n protected readonly store = inject(SelectInputFieldMoleculeStore);\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;MAYa,6BAA6B,CAAA;AAD1C,IAAA,WAAA,GAAA;QAEW,IAAO,CAAA,OAAA,GAAG,KAAK,CAAC,IAAI,WAAW,CAAI,EAAO,CAAC,CAAC,CAAC;AAC7C,QAAA,IAAA,CAAA,KAAK,GAAG,KAAK,CAAC,EAAE,CAAC,CAAC;AAClB,QAAA,IAAA,CAAA,UAAU,GAAG,KAAK,CAAqB,SAAS,CAAC,CAAC;AAClD,QAAA,IAAA,CAAA,OAAO,GAAG,KAAK,CAAc,EAAE,CAAC,CAAC;AACjC,QAAA,IAAA,CAAA,IAAI,GAAG,KAAK,CAAC,IAAI,CAAC,CAAC;AACnB,QAAA,IAAA,CAAA,WAAW,GAAG,KAAK,CAAC,IAAI,CAAC,CAAC;AAC1B,QAAA,IAAA,CAAA,QAAQ,GAAG,KAAK,CAAC,KAAK,CAAC,CAAC;AAClC,KAAA;8GARY,6BAA6B,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,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A,CAAA,EAAA,QAAA,EAAA,CAAA,QAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EAAA,eAAe,gnCACf,SAAS,EAAA,IAAA,EAAA,OAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA,EAAA;;2FA4BA,wBAAwB,EAAA,UAAA,EAAA,CAAA;kBAnCpC,SAAS;+BACE,8BAA8B,EAAA,UAAA,EAC5B,IAAI,EACP,OAAA,EAAA;wBACP,YAAY;wBACZ,mBAAmB;wBACnB,eAAe;wBACf,SAAS;qBACV,EACS,QAAA,EAAA,CAAA;;;;;;;;;;;;;;;GAeT,EAEgB,eAAA,EAAA,uBAAuB,CAAC,MAAM,EAAA,IAAA,EACzC,EAAC,KAAK,EAAE,4BAA4B,EAAC,EAC3B,cAAA,EAAA;AACd,wBAAA;AACE,4BAAA,SAAS,EAAE,6BAA6B;AACxC,4BAAA,MAAM,EAAE,CAAC,SAAS,EAAE,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,EAAE,aAAa,EAAE,UAAU,CAAC;AACzF,yBAAA;AACF,qBAAA,EAAA,MAAA,EAAA,CAAA,sLAAA,CAAA,EAAA,CAAA;;;ACvDH;;AAEG;;;;"}
@@ -1,38 +1,108 @@
1
- import * as i2 from '@angular/cdk/clipboard';
1
+ import * as i1 from '@angular/cdk/clipboard';
2
2
  import { ClipboardModule } from '@angular/cdk/clipboard';
3
- import * as i1 from '@angular/common';
4
- import { CommonModule } from '@angular/common';
3
+ import { CdkTable, CdkColumnDef, CdkCellDef, CdkHeaderCellDef } from '@angular/cdk/table';
5
4
  import * as i0 from '@angular/core';
6
- import { EventEmitter, Component, ViewEncapsulation, ChangeDetectionStrategy, Input, Output } from '@angular/core';
5
+ import { input, signal, Directive, inject, viewChild, EventEmitter, effect, Component, ViewEncapsulation, ChangeDetectionStrategy, Output } from '@angular/core';
7
6
  import { MatButtonModule } from '@angular/material/button';
8
- import * as i4 from '@angular/material/icon';
7
+ import * as i3 from '@angular/material/icon';
9
8
  import { MatIconModule } from '@angular/material/icon';
10
- import * as i5 from '@angular/material/table';
11
- import { MatTextColumn, MatTableModule } from '@angular/material/table';
12
- import * as i6 from '@angular/material/tooltip';
9
+ import * as i4 from '@angular/material/table';
10
+ import { MatTableModule } from '@angular/material/table';
11
+ import * as i5 from '@angular/material/tooltip';
13
12
  import { MatTooltipModule } from '@angular/material/tooltip';
14
13
  import { DataAccessorPipe } from '@ng-atomic/common/pipes/data-accessor';
15
- import * as i3 from '@ng-atomic/common/pipes/smart-exp';
14
+ import * as i2 from '@ng-atomic/common/pipes/smart-exp';
16
15
  import { SmartExpModule } from '@ng-atomic/common/pipes/smart-exp';
16
+ import { NgAtomicComponent } from '@ng-atomic/core';
17
17
 
18
- class SmartColumnMolecule extends MatTextColumn {
18
+ class SmartColumnTemplateStore {
19
19
  constructor() {
20
- super(...arguments);
21
- this.sort = 'none';
20
+ this.sort = input('none');
21
+ this.tooltipText = signal('copy');
22
+ }
23
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.2.2", ngImport: i0, type: SmartColumnTemplateStore, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
24
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "17.2.2", type: SmartColumnTemplateStore, isStandalone: true, inputs: { sort: { classPropertyName: "sort", publicName: "sort", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0 }); }
25
+ }
26
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.2.2", ngImport: i0, type: SmartColumnTemplateStore, decorators: [{
27
+ type: Directive,
28
+ args: [{ standalone: true }]
29
+ }] });
30
+ class SmartColumnMolecule extends NgAtomicComponent {
31
+ constructor() {
32
+ super();
33
+ this.store = inject(SmartColumnTemplateStore);
34
+ this._table = inject(CdkTable, { optional: true });
35
+ this.headerText = input('');
36
+ this.name = input.required();
37
+ this.columnDef = viewChild.required(CdkColumnDef);
38
+ this.cell = viewChild.required(CdkCellDef);
39
+ this.headerCell = viewChild.required(CdkHeaderCellDef);
22
40
  this.headerClick = new EventEmitter();
23
- this.text = 'copy';
41
+ effect(() => {
42
+ if (this.columnDef())
43
+ this.columnDef().name = this.name();
44
+ });
45
+ }
46
+ ngOnInit() {
47
+ if (this._table) {
48
+ this.columnDef().name = this.name();
49
+ this.columnDef().cell = this.cell();
50
+ this.columnDef().headerCell = this.headerCell();
51
+ this._table.addColumnDef(this.columnDef());
52
+ }
53
+ }
54
+ ngOnDestroy() {
55
+ if (this._table) {
56
+ this._table.removeColumnDef(this.columnDef());
57
+ }
24
58
  }
25
59
  copied() {
26
- this.text = 'copied!';
27
- setTimeout(() => this.text = 'copy', 1000);
60
+ this.store.tooltipText.set('copied!');
61
+ setTimeout(() => this.store.tooltipText.set('copy'), 1000);
28
62
  }
29
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SmartColumnMolecule, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
30
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: SmartColumnMolecule, isStandalone: true, selector: "molecules-smart-column", inputs: { sort: "sort" }, outputs: { headerClick: "headerClick" }, usesInheritance: true, ngImport: i0, template: "<ng-container matColumnDef>\n <th\n mat-header-cell\n *matHeaderCellDef\n [style.text-align]=\"justify\"\n (click)=\"headerClick.emit()\"\n >\n <p class=\"nowrap\" style=\"display: flex; align-items: center;\">\n <span>{{headerText}}</span>\n <ng-container [ngSwitch]=\"sort\">\n <mat-icon class=\"order\" *ngSwitchCase=\"'asc'\">south</mat-icon>\n <mat-icon class=\"order\" *ngSwitchCase=\"'desc'\">north</mat-icon>\n </ng-container>\n </p>\n </th>\n <td mat-cell *matCellDef=\"let data\" [style.text-align]=\"justify\">\n <p class=\"nowrap\"\n [cdkCopyToClipboard]=\"data | dataAccessor: name | smartExp: name\"\n (click)=\"copied(); tooltip.show()\"\n #tooltip=\"matTooltip\" [matTooltip]=\"text\" matTooltipPosition=\"below\"\n >\n {{ data | dataAccessor: name | smartExp: name }}\n </p>\n </td>\n</ng-container>", styles: ["th[mat-header-cell],td[mat-cell]{cursor:pointer}th[mat-header-cell] mat-icon.order,td[mat-cell] mat-icon.order{width:12px;height:12px;font-size:12px}th[mat-header-cell] .nowrap,td[mat-cell] .nowrap{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i1.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "ngmodule", type: ClipboardModule }, { kind: "directive", type: i2.CdkCopyToClipboard, selector: "[cdkCopyToClipboard]", inputs: ["cdkCopyToClipboard", "cdkCopyToClipboardAttempts"], outputs: ["cdkCopyToClipboardCopied"] }, { kind: "ngmodule", type: SmartExpModule }, { kind: "pipe", type: i3.SmartExpPipe, name: "smartExp" }, { kind: "pipe", type: DataAccessorPipe, name: "dataAccessor" }, { kind: "ngmodule", type: MatButtonModule }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i4.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: MatTableModule }, { kind: "directive", type: i5.MatHeaderCellDef, selector: "[matHeaderCellDef]" }, { kind: "directive", type: i5.MatColumnDef, selector: "[matColumnDef]", inputs: ["sticky", "matColumnDef"] }, { kind: "directive", type: i5.MatCellDef, selector: "[matCellDef]" }, { kind: "directive", type: i5.MatHeaderCell, selector: "mat-header-cell, th[mat-header-cell]" }, { kind: "directive", type: i5.MatCell, selector: "mat-cell, td[mat-cell]" }, { kind: "ngmodule", type: MatTooltipModule }, { kind: "directive", type: i6.MatTooltip, selector: "[matTooltip]", exportAs: ["matTooltip"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
63
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.2.2", ngImport: i0, type: SmartColumnMolecule, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
64
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.2.2", type: SmartColumnMolecule, isStandalone: true, selector: "molecules-smart-column", inputs: { headerText: { classPropertyName: "headerText", publicName: "headerText", isSignal: true, isRequired: false, transformFunction: null }, name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: true, transformFunction: null } }, outputs: { headerClick: "headerClick" }, viewQueries: [{ propertyName: "columnDef", first: true, predicate: CdkColumnDef, descendants: true, isSignal: true }, { propertyName: "cell", first: true, predicate: CdkCellDef, descendants: true, isSignal: true }, { propertyName: "headerCell", first: true, predicate: CdkHeaderCellDef, descendants: true, isSignal: true }], usesInheritance: true, hostDirectives: [{ directive: SmartColumnTemplateStore, inputs: ["sort", "sort"] }], ngImport: i0, template: `
65
+ <ng-container matColumnDef>
66
+ <th
67
+ mat-header-cell
68
+ *matHeaderCellDef
69
+ [style.text-align]="justify"
70
+ (click)="headerClick.emit()"
71
+ >
72
+ <p
73
+ class="nowrap"
74
+ style="display: flex; align-items: center;"
75
+ >
76
+ <span>{{ headerText() }}</span>
77
+ @switch(store.sort()) {
78
+ @case('asc') {
79
+ <mat-icon class="order">south</mat-icon>
80
+ }
81
+ @case('desc') {
82
+ <mat-icon class="order">north</mat-icon>
83
+ }
84
+ }
85
+ </p>
86
+ </th>
87
+ <td
88
+ mat-cell
89
+ *matCellDef="let item"
90
+ [style.text-align]="justify"
91
+ >
92
+ <p class="nowrap"
93
+ [cdkCopyToClipboard]="item | dataAccessor: name() | smartExp: name()"
94
+ (click)="copied(); tooltip.show()"
95
+ #tooltip="matTooltip" [matTooltip]="store.tooltipText()" matTooltipPosition="below"
96
+ >
97
+ {{ item | dataAccessor: name() | smartExp: name() }}
98
+ </p>
99
+ </td>
100
+ </ng-container>
101
+ `, isInline: true, styles: ["th[mat-header-cell],td[mat-cell]{cursor:pointer}th[mat-header-cell] mat-icon.order,td[mat-cell] mat-icon.order{width:12px;height:12px;font-size:12px}th[mat-header-cell] p,td[mat-cell] p{width:100%;max-width:200px}th[mat-header-cell] .nowrap,td[mat-cell] .nowrap{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}\n"], dependencies: [{ kind: "ngmodule", type: ClipboardModule }, { kind: "directive", type: i1.CdkCopyToClipboard, selector: "[cdkCopyToClipboard]", inputs: ["cdkCopyToClipboard", "cdkCopyToClipboardAttempts"], outputs: ["cdkCopyToClipboardCopied"] }, { kind: "ngmodule", type: SmartExpModule }, { kind: "pipe", type: i2.SmartExpPipe, name: "smartExp" }, { kind: "pipe", type: DataAccessorPipe, name: "dataAccessor" }, { kind: "ngmodule", type: MatButtonModule }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i3.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: MatTableModule }, { kind: "directive", type: i4.MatHeaderCellDef, selector: "[matHeaderCellDef]" }, { kind: "directive", type: i4.MatColumnDef, selector: "[matColumnDef]", inputs: ["sticky", "matColumnDef"] }, { kind: "directive", type: i4.MatCellDef, selector: "[matCellDef]" }, { kind: "directive", type: i4.MatHeaderCell, selector: "mat-header-cell, th[mat-header-cell]" }, { kind: "directive", type: i4.MatCell, selector: "mat-cell, td[mat-cell]" }, { kind: "ngmodule", type: MatTooltipModule }, { kind: "directive", type: i5.MatTooltip, selector: "[matTooltip]", inputs: ["matTooltipPosition", "matTooltipPositionAtOrigin", "matTooltipDisabled", "matTooltipShowDelay", "matTooltipHideDelay", "matTooltipTouchGestures", "matTooltip", "matTooltipClass"], exportAs: ["matTooltip"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
31
102
  }
32
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SmartColumnMolecule, decorators: [{
103
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.2.2", ngImport: i0, type: SmartColumnMolecule, decorators: [{
33
104
  type: Component,
34
105
  args: [{ selector: 'molecules-smart-column', standalone: true, imports: [
35
- CommonModule,
36
106
  ClipboardModule,
37
107
  SmartExpModule,
38
108
  DataAccessorPipe,
@@ -40,10 +110,50 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
40
110
  MatIconModule,
41
111
  MatTableModule,
42
112
  MatTooltipModule,
43
- ], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-container matColumnDef>\n <th\n mat-header-cell\n *matHeaderCellDef\n [style.text-align]=\"justify\"\n (click)=\"headerClick.emit()\"\n >\n <p class=\"nowrap\" style=\"display: flex; align-items: center;\">\n <span>{{headerText}}</span>\n <ng-container [ngSwitch]=\"sort\">\n <mat-icon class=\"order\" *ngSwitchCase=\"'asc'\">south</mat-icon>\n <mat-icon class=\"order\" *ngSwitchCase=\"'desc'\">north</mat-icon>\n </ng-container>\n </p>\n </th>\n <td mat-cell *matCellDef=\"let data\" [style.text-align]=\"justify\">\n <p class=\"nowrap\"\n [cdkCopyToClipboard]=\"data | dataAccessor: name | smartExp: name\"\n (click)=\"copied(); tooltip.show()\"\n #tooltip=\"matTooltip\" [matTooltip]=\"text\" matTooltipPosition=\"below\"\n >\n {{ data | dataAccessor: name | smartExp: name }}\n </p>\n </td>\n</ng-container>", styles: ["th[mat-header-cell],td[mat-cell]{cursor:pointer}th[mat-header-cell] mat-icon.order,td[mat-cell] mat-icon.order{width:12px;height:12px;font-size:12px}th[mat-header-cell] .nowrap,td[mat-cell] .nowrap{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}\n"] }]
44
- }], propDecorators: { sort: [{
45
- type: Input
46
- }], headerClick: [{
113
+ ], template: `
114
+ <ng-container matColumnDef>
115
+ <th
116
+ mat-header-cell
117
+ *matHeaderCellDef
118
+ [style.text-align]="justify"
119
+ (click)="headerClick.emit()"
120
+ >
121
+ <p
122
+ class="nowrap"
123
+ style="display: flex; align-items: center;"
124
+ >
125
+ <span>{{ headerText() }}</span>
126
+ @switch(store.sort()) {
127
+ @case('asc') {
128
+ <mat-icon class="order">south</mat-icon>
129
+ }
130
+ @case('desc') {
131
+ <mat-icon class="order">north</mat-icon>
132
+ }
133
+ }
134
+ </p>
135
+ </th>
136
+ <td
137
+ mat-cell
138
+ *matCellDef="let item"
139
+ [style.text-align]="justify"
140
+ >
141
+ <p class="nowrap"
142
+ [cdkCopyToClipboard]="item | dataAccessor: name() | smartExp: name()"
143
+ (click)="copied(); tooltip.show()"
144
+ #tooltip="matTooltip" [matTooltip]="store.tooltipText()" matTooltipPosition="below"
145
+ >
146
+ {{ item | dataAccessor: name() | smartExp: name() }}
147
+ </p>
148
+ </td>
149
+ </ng-container>
150
+ `, encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, hostDirectives: [
151
+ {
152
+ directive: SmartColumnTemplateStore,
153
+ inputs: ['sort'],
154
+ },
155
+ ], styles: ["th[mat-header-cell],td[mat-cell]{cursor:pointer}th[mat-header-cell] mat-icon.order,td[mat-cell] mat-icon.order{width:12px;height:12px;font-size:12px}th[mat-header-cell] p,td[mat-cell] p{width:100%;max-width:200px}th[mat-header-cell] .nowrap,td[mat-cell] .nowrap{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}\n"] }]
156
+ }], ctorParameters: () => [], propDecorators: { headerClick: [{
47
157
  type: Output
48
158
  }] } });
49
159
 
@@ -51,5 +161,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
51
161
  * Generated bundle index. Do not edit.
52
162
  */
53
163
 
54
- export { SmartColumnMolecule };
164
+ export { SmartColumnMolecule, SmartColumnTemplateStore };
55
165
  //# sourceMappingURL=ng-atomic-components-molecules-smart-column.mjs.map