@ng-atomic/components 16.2.0 → 16.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (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 +16 -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 +176 -20
  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,31 +1,39 @@
1
1
  import * as i0 from '@angular/core';
2
- import { EventEmitter, Component, ViewEncapsulation, ChangeDetectionStrategy, Input, Output } from '@angular/core';
3
- import * as i1 from '@angular/common';
2
+ import { input, Directive, inject, EventEmitter, Component, ViewEncapsulation, ChangeDetectionStrategy, Output } from '@angular/core';
4
3
  import { CommonModule } from '@angular/common';
5
- import * as i6 from '@angular/material/table';
4
+ import * as i5 from '@angular/material/table';
6
5
  import { MatTextColumn, MatTableModule } from '@angular/material/table';
7
- import * as i2 from '@angular/cdk/clipboard';
6
+ import * as i1 from '@angular/cdk/clipboard';
8
7
  import { ClipboardModule } from '@angular/cdk/clipboard';
9
- import * as i3 from '@ng-atomic/common/pipes/smart-exp';
8
+ import * as i2 from '@ng-atomic/common/pipes/smart-exp';
10
9
  import { SmartExpModule } from '@ng-atomic/common/pipes/smart-exp';
11
10
  import { DataAccessorPipe } from '@ng-atomic/common/pipes/data-accessor';
12
- import * as i4 from '@angular/material/button';
11
+ import * as i3 from '@angular/material/button';
13
12
  import { MatButtonModule } from '@angular/material/button';
14
- import * as i5 from '@angular/material/icon';
13
+ import * as i4 from '@angular/material/icon';
15
14
  import { MatIconModule } from '@angular/material/icon';
16
- import * as i7 from '@angular/material/tooltip';
15
+ import * as i6 from '@angular/material/tooltip';
17
16
  import { MatTooltipModule } from '@angular/material/tooltip';
18
17
  import { FlatTreeControl } from '@angular/cdk/tree';
19
18
 
19
+ class TreeColumnMoleculeStore {
20
+ constructor() {
21
+ this.sort = input('none');
22
+ this.treeControl = input(new FlatTreeControl((node) => node.level, (node) => node.isExpandable));
23
+ }
24
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.2.2", ngImport: i0, type: TreeColumnMoleculeStore, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
25
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "17.2.2", type: TreeColumnMoleculeStore, isStandalone: true, selector: "molecules-tree-column", inputs: { sort: { classPropertyName: "sort", publicName: "sort", isSignal: true, isRequired: false, transformFunction: null }, treeControl: { classPropertyName: "treeControl", publicName: "treeControl", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0 }); }
26
+ }
27
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.2.2", ngImport: i0, type: TreeColumnMoleculeStore, decorators: [{
28
+ type: Directive,
29
+ args: [{ standalone: true, selector: 'molecules-tree-column' }]
30
+ }] });
20
31
  class TreeColumnMolecule extends MatTextColumn {
21
32
  constructor() {
22
33
  super(...arguments);
23
- this.sort = 'none';
34
+ this.store = inject(TreeColumnMoleculeStore);
24
35
  this.headerClick = new EventEmitter();
25
- // @Input()
26
- // override dataAccessor = (data, name) => data[name.replace(/^__tree_/, '')] ?? '';
27
36
  this.text = 'copy';
28
- this.treeControl = new FlatTreeControl((node) => node.level, (node) => node.isExpandable);
29
37
  }
30
38
  get key() {
31
39
  return this.name.slice('__tree_'.length);
@@ -34,8 +42,8 @@ class TreeColumnMolecule extends MatTextColumn {
34
42
  this.text = 'copied!';
35
43
  setTimeout(() => this.text = 'copy', 1000);
36
44
  }
37
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TreeColumnMolecule, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
38
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: TreeColumnMolecule, isStandalone: true, selector: "molecules-tree-column", inputs: { sort: "sort", treeControl: "treeControl" }, outputs: { headerClick: "headerClick" }, usesInheritance: true, ngImport: i0, template: `
45
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.2.2", ngImport: i0, type: TreeColumnMolecule, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
46
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.2.2", type: TreeColumnMolecule, isStandalone: true, selector: "molecules-tree-column", outputs: { headerClick: "headerClick" }, usesInheritance: true, hostDirectives: [{ directive: TreeColumnMoleculeStore, inputs: ["sort", "sort", "treeControl", "treeControl"] }], ngImport: i0, template: `
39
47
  <ng-container matColumnDef>
40
48
  <th
41
49
  mat-header-cell
@@ -45,10 +53,14 @@ class TreeColumnMolecule extends MatTextColumn {
45
53
  >
46
54
  <p class="nowrap" style="display: flex; align-items: center; margin-left: 48px">
47
55
  <span>{{ key }}</span>
48
- <ng-container [ngSwitch]="sort">
49
- <mat-icon class="order" *ngSwitchCase="'asc'">south</mat-icon>
50
- <mat-icon class="order" *ngSwitchCase="'desc'">north</mat-icon>
51
- </ng-container>
56
+ @switch(store.sort()) {
57
+ @case ('asc') {
58
+ <mat-icon class="order">south</mat-icon>
59
+ }
60
+ @case ('desc') {
61
+ <mat-icon class="order">north</mat-icon>
62
+ }
63
+ }
52
64
  </p>
53
65
  </th>
54
66
  <td mat-cell *matCellDef="let data">
@@ -61,18 +73,18 @@ class TreeColumnMolecule extends MatTextColumn {
61
73
  mat-icon-button
62
74
  [style.visibility]="!data.isExpandable ? 'hidden' : ''"
63
75
  [style.marginLeft.px]="data.level * 32"
64
- (click)="treeControl.toggle(data)"
76
+ (click)="store.treeControl().toggle(data)"
65
77
  >
66
78
  <mat-icon>
67
- {{ treeControl.isExpanded(data) ? 'expand_more' : 'chevron_right' }}
79
+ {{ store.treeControl().isExpanded(data) ? 'expand_more' : 'chevron_right' }}
68
80
  </mat-icon>
69
81
  </button>
70
82
  <span> {{ data | dataAccessor: key }} </span>
71
83
  </p>
72
84
  </td>
73
- </ng-container> `, 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.nowrap,td[mat-cell] p.nowrap{margin-block-start:0em;margin-block-end:0em;display:flex;align-items:center;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: "component", type: i4.MatIconButton, selector: "button[mat-icon-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i5.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: MatTableModule }, { kind: "directive", type: i6.MatHeaderCellDef, selector: "[matHeaderCellDef]" }, { kind: "directive", type: i6.MatColumnDef, selector: "[matColumnDef]", inputs: ["sticky", "matColumnDef"] }, { kind: "directive", type: i6.MatCellDef, selector: "[matCellDef]" }, { kind: "directive", type: i6.MatHeaderCell, selector: "mat-header-cell, th[mat-header-cell]" }, { kind: "directive", type: i6.MatCell, selector: "mat-cell, td[mat-cell]" }, { kind: "ngmodule", type: MatTooltipModule }, { kind: "directive", type: i7.MatTooltip, selector: "[matTooltip]", exportAs: ["matTooltip"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
85
+ </ng-container> `, 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.nowrap,td[mat-cell] p.nowrap{margin-block-start:0em;margin-block-end:0em;display:flex;align-items:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { 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: "component", type: i3.MatIconButton, selector: "button[mat-icon-button]", exportAs: ["matButton"] }, { 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]", inputs: ["matTooltipPosition", "matTooltipPositionAtOrigin", "matTooltipDisabled", "matTooltipShowDelay", "matTooltipHideDelay", "matTooltipTouchGestures", "matTooltip", "matTooltipClass"], exportAs: ["matTooltip"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
74
86
  }
75
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TreeColumnMolecule, decorators: [{
87
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.2.2", ngImport: i0, type: TreeColumnMolecule, decorators: [{
76
88
  type: Component,
77
89
  args: [{ selector: 'molecules-tree-column', standalone: true, imports: [
78
90
  CommonModule,
@@ -93,10 +105,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
93
105
  >
94
106
  <p class="nowrap" style="display: flex; align-items: center; margin-left: 48px">
95
107
  <span>{{ key }}</span>
96
- <ng-container [ngSwitch]="sort">
97
- <mat-icon class="order" *ngSwitchCase="'asc'">south</mat-icon>
98
- <mat-icon class="order" *ngSwitchCase="'desc'">north</mat-icon>
99
- </ng-container>
108
+ @switch(store.sort()) {
109
+ @case ('asc') {
110
+ <mat-icon class="order">south</mat-icon>
111
+ }
112
+ @case ('desc') {
113
+ <mat-icon class="order">north</mat-icon>
114
+ }
115
+ }
100
116
  </p>
101
117
  </th>
102
118
  <td mat-cell *matCellDef="let data">
@@ -109,27 +125,28 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
109
125
  mat-icon-button
110
126
  [style.visibility]="!data.isExpandable ? 'hidden' : ''"
111
127
  [style.marginLeft.px]="data.level * 32"
112
- (click)="treeControl.toggle(data)"
128
+ (click)="store.treeControl().toggle(data)"
113
129
  >
114
130
  <mat-icon>
115
- {{ treeControl.isExpanded(data) ? 'expand_more' : 'chevron_right' }}
131
+ {{ store.treeControl().isExpanded(data) ? 'expand_more' : 'chevron_right' }}
116
132
  </mat-icon>
117
133
  </button>
118
134
  <span> {{ data | dataAccessor: key }} </span>
119
135
  </p>
120
136
  </td>
121
- </ng-container> `, encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, 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.nowrap,td[mat-cell] p.nowrap{margin-block-start:0em;margin-block-end:0em;display:flex;align-items:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}\n"] }]
122
- }], propDecorators: { sort: [{
123
- type: Input
124
- }], headerClick: [{
137
+ </ng-container> `, encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, hostDirectives: [
138
+ {
139
+ directive: TreeColumnMoleculeStore,
140
+ inputs: ['sort', 'treeControl'],
141
+ }
142
+ ], 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.nowrap,td[mat-cell] p.nowrap{margin-block-start:0em;margin-block-end:0em;display:flex;align-items:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}\n"] }]
143
+ }], propDecorators: { headerClick: [{
125
144
  type: Output
126
- }], treeControl: [{
127
- type: Input
128
145
  }] } });
129
146
 
130
147
  /**
131
148
  * Generated bundle index. Do not edit.
132
149
  */
133
150
 
134
- export { TreeColumnMolecule };
151
+ export { TreeColumnMolecule, TreeColumnMoleculeStore };
135
152
  //# sourceMappingURL=ng-atomic-components-molecules-tree-column.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"ng-atomic-components-molecules-tree-column.mjs","sources":["../../../../../packages/@ng-atomic/components/src/lib/molecules/tree-column/tree-column.molecule.ts","../../../../../packages/@ng-atomic/components/src/lib/molecules/tree-column/ng-atomic-components-molecules-tree-column.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, EventEmitter, Input, Output, ViewEncapsulation } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { MatTableModule, MatTextColumn } from '@angular/material/table';\nimport { ClipboardModule } from '@angular/cdk/clipboard';\nimport { SmartExpModule } from '@ng-atomic/common/pipes/smart-exp';\nimport { DataAccessorPipe } from '@ng-atomic/common/pipes/data-accessor';\nimport { MatButtonModule } from '@angular/material/button';\nimport { MatIconModule } from '@angular/material/icon';\nimport { MatTooltipModule } from '@angular/material/tooltip';\nimport { FlatTreeControl } from '@angular/cdk/tree';\n\n@Component({\n selector: 'molecules-tree-column',\n standalone: true,\n imports: [\n CommonModule,\n ClipboardModule,\n SmartExpModule,\n DataAccessorPipe,\n MatButtonModule,\n MatIconModule,\n MatTableModule,\n MatTooltipModule,\n ],\n template: `\n <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; margin-left: 48px\">\n <span>{{ key }}</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\"> \n <p class=\"nowrap\"\n [cdkCopyToClipboard]=\"data | dataAccessor: key | smartExp: key\"\n (click)=\"copied(); tooltip.show()\"\n #tooltip=\"matTooltip\" [matTooltip]=\"text\" matTooltipPosition=\"below\"\n >\n <button \n mat-icon-button \n [style.visibility]=\"!data.isExpandable ? 'hidden' : ''\"\n [style.marginLeft.px]=\"data.level * 32\"\n (click)=\"treeControl.toggle(data)\"\n >\n <mat-icon>\n {{ treeControl.isExpanded(data) ? 'expand_more' : 'chevron_right' }}\n </mat-icon>\n </button>\n <span> {{ data | dataAccessor: key }} </span>\n </p>\n </td>\n </ng-container> `,\n styleUrls: ['./tree-column.molecule.scss'],\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class TreeColumnMolecule<T> extends MatTextColumn<T> {\n\n @Input()\n sort: 'asc' | 'desc' | 'none' = 'none';\n\n @Output()\n headerClick = new EventEmitter<void>();\n\n // @Input()\n // override dataAccessor = (data, name) => data[name.replace(/^__tree_/, '')] ?? '';\n\n text = 'copy';\n\n get key() {\n return this.name.slice('__tree_'.length);\n }\n\n copied() {\n this.text = 'copied!';\n setTimeout(() => this.text = 'copy', 1000);\n }\n\n @Input()\n treeControl = new FlatTreeControl<any>(\n (node) => node.level,\n (node) => node.isExpandable\n );\n\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;AAgEM,MAAO,kBAAsB,SAAQ,aAAgB,CAAA;AArD3D,IAAA,WAAA,GAAA;;QAwDE,IAAI,CAAA,IAAA,GAA4B,MAAM,CAAC;AAGvC,QAAA,IAAA,CAAA,WAAW,GAAG,IAAI,YAAY,EAAQ,CAAC;;;QAKvC,IAAI,CAAA,IAAA,GAAG,MAAM,CAAC;QAYd,IAAW,CAAA,WAAA,GAAG,IAAI,eAAe,CAC/B,CAAC,IAAI,KAAK,IAAI,CAAC,KAAK,EACpB,CAAC,IAAI,KAAK,IAAI,CAAC,YAAY,CAC5B,CAAC;AAEH,KAAA;AAfC,IAAA,IAAI,GAAG,GAAA;QACL,OAAO,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC;KAC1C;IAED,MAAM,GAAA;AACJ,QAAA,IAAI,CAAC,IAAI,GAAG,SAAS,CAAC;AACtB,QAAA,UAAU,CAAC,MAAM,IAAI,CAAC,IAAI,GAAG,MAAM,EAAE,IAAI,CAAC,CAAC;KAC5C;+GApBU,kBAAkB,EAAA,IAAA,EAAA,IAAA,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,EAxCnB,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,uBAAA,EAAA,MAAA,EAAA,EAAA,IAAA,EAAA,MAAA,EAAA,WAAA,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AM;gBAkBP,WAAW,EAAA,CAAA;sBADV,KAAK;;;ACtFR;;AAEG;;;;"}
1
+ {"version":3,"file":"ng-atomic-components-molecules-tree-column.mjs","sources":["../../../../../packages/@ng-atomic/components/src/lib/molecules/tree-column/tree-column.molecule.ts","../../../../../packages/@ng-atomic/components/src/lib/molecules/tree-column/ng-atomic-components-molecules-tree-column.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, Directive, EventEmitter, Input, Output, ViewEncapsulation, inject, input } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { MatTableModule, MatTextColumn } from '@angular/material/table';\nimport { ClipboardModule } from '@angular/cdk/clipboard';\nimport { SmartExpModule } from '@ng-atomic/common/pipes/smart-exp';\nimport { DataAccessorPipe } from '@ng-atomic/common/pipes/data-accessor';\nimport { MatButtonModule } from '@angular/material/button';\nimport { MatIconModule } from '@angular/material/icon';\nimport { MatTooltipModule } from '@angular/material/tooltip';\nimport { FlatTreeControl } from '@angular/cdk/tree';\n\n@Directive({standalone: true, selector: 'molecules-tree-column'})\nexport class TreeColumnMoleculeStore {\n readonly sort = input<'asc' | 'desc' | 'none'>('none');\n readonly treeControl = input(new FlatTreeControl<any>(\n (node) => node.level,\n (node) => node.isExpandable\n ));\n\n}\n\n@Component({\n selector: 'molecules-tree-column',\n standalone: true,\n imports: [\n CommonModule,\n ClipboardModule,\n SmartExpModule,\n DataAccessorPipe,\n MatButtonModule,\n MatIconModule,\n MatTableModule,\n MatTooltipModule,\n ],\n template: `\n <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; margin-left: 48px\">\n <span>{{ key }}</span>\n @switch(store.sort()) {\n @case ('asc') {\n <mat-icon class=\"order\">south</mat-icon>\n }\n @case ('desc') { \n <mat-icon class=\"order\">north</mat-icon>\n }\n }\n </p>\n </th>\n <td mat-cell *matCellDef=\"let data\"> \n <p class=\"nowrap\"\n [cdkCopyToClipboard]=\"data | dataAccessor: key | smartExp: key\"\n (click)=\"copied(); tooltip.show()\"\n #tooltip=\"matTooltip\" [matTooltip]=\"text\" matTooltipPosition=\"below\"\n >\n <button \n mat-icon-button \n [style.visibility]=\"!data.isExpandable ? 'hidden' : ''\"\n [style.marginLeft.px]=\"data.level * 32\"\n (click)=\"store.treeControl().toggle(data)\"\n >\n <mat-icon>\n {{ store.treeControl().isExpanded(data) ? 'expand_more' : 'chevron_right' }}\n </mat-icon>\n </button>\n <span> {{ data | dataAccessor: key }} </span>\n </p>\n </td>\n </ng-container> `,\n styleUrls: ['./tree-column.molecule.scss'],\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n hostDirectives: [\n {\n directive: TreeColumnMoleculeStore,\n inputs: ['sort', 'treeControl'],\n }\n ],\n})\nexport class TreeColumnMolecule<T> extends MatTextColumn<T> {\n protected store = inject(TreeColumnMoleculeStore);\n\n @Output()\n headerClick = new EventEmitter<void>();\n\n text = 'copy';\n\n get key() {\n return this.name.slice('__tree_'.length);\n }\n\n copied() {\n this.text = 'copied!';\n setTimeout(() => this.text = 'copy', 1000);\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;MAYa,uBAAuB,CAAA;AADpC,IAAA,WAAA,GAAA;AAEW,QAAA,IAAA,CAAA,IAAI,GAAG,KAAK,CAA0B,MAAM,CAAC,CAAC;QAC9C,IAAW,CAAA,WAAA,GAAG,KAAK,CAAC,IAAI,eAAe,CAC9C,CAAC,IAAI,KAAK,IAAI,CAAC,KAAK,EACpB,CAAC,IAAI,KAAK,IAAI,CAAC,YAAY,CAC5B,CAAC,CAAC;AAEJ,KAAA;8GAPY,uBAAuB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA,EAAA;kGAAvB,uB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A,EAAA,CAAA,kVAAA,CAAA,EAAA,CAAA;8BAMD,WAAW,EAAA,CAAA;sBADV,MAAM;;;ACvFT;;AAEG;;;;"}
@@ -2,24 +2,42 @@ import * as i0 from '@angular/core';
2
2
  import { NgModule } from '@angular/core';
3
3
  import { provideComponent } from '@ng-atomic/core';
4
4
  import { NavigationListItemMoleculeStore } from '@ng-atomic/components/molecules/navigation-list-item';
5
+ import { ChipsInputFieldMoleculeStore } from '@ng-atomic/components/molecules/chips-input-field';
6
+ import { HeaderMoleculeStore } from '@ng-atomic/components/molecules/header';
7
+ import { MatChipsModule } from '@angular/material/chips';
8
+ import { TextInputFieldMoleculeStore } from '@ng-atomic/components/molecules/text-input-field';
9
+ import { LoadingBoxMoleculeStore } from '@ng-atomic/components/molecules/loading-box';
5
10
 
6
11
  class NgAtomicMoleculesModule {
7
12
  static forRoot() {
8
13
  return {
9
14
  ngModule: NgAtomicMoleculesModule,
10
15
  providers: [
16
+ provideComponent(ChipsInputFieldMoleculeStore, () => import('@ng-atomic/components/molecules/chips-input-field').then(m => m.ChipsInputFieldMolecule)),
17
+ ChipsInputFieldMoleculeStore.Config.provide(),
18
+ provideComponent(HeaderMoleculeStore, () => import('@ng-atomic/components/molecules/header').then(m => m.HeaderMolecule)),
19
+ LoadingBoxMoleculeStore.Config.provide(),
20
+ provideComponent(LoadingBoxMoleculeStore, () => {
21
+ return import('@ng-atomic/components/molecules/loading-box').then(m => m.LoadingBoxMolecule);
22
+ }),
23
+ provideComponent(NavigationListItemMoleculeStore, () => import('@ng-atomic/components/molecules/navigation-list-item').then(m => m.NavigationListItemMolecule)),
11
24
  provideComponent(NavigationListItemMoleculeStore, () => import('@ng-atomic/components/molecules/navigation-list-item')
12
25
  .then(m => m.NavigationListItemMolecule)),
26
+ provideComponent(TextInputFieldMoleculeStore, () => import('@ng-atomic/components/molecules/text-input-field').then(m => m.TextInputFieldMolecule)),
13
27
  ],
14
28
  };
15
29
  }
16
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: NgAtomicMoleculesModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
17
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: NgAtomicMoleculesModule }); }
18
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: NgAtomicMoleculesModule }); }
30
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.2.2", ngImport: i0, type: NgAtomicMoleculesModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
31
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.2.2", ngImport: i0, type: NgAtomicMoleculesModule, imports: [MatChipsModule] }); }
32
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.2.2", ngImport: i0, type: NgAtomicMoleculesModule, imports: [MatChipsModule] }); }
19
33
  }
20
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: NgAtomicMoleculesModule, decorators: [{
34
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.2.2", ngImport: i0, type: NgAtomicMoleculesModule, decorators: [{
21
35
  type: NgModule,
22
- args: [{}]
36
+ args: [{
37
+ imports: [
38
+ MatChipsModule,
39
+ ]
40
+ }]
23
41
  }] });
24
42
 
25
43
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"ng-atomic-components-molecules.mjs","sources":["../../../../../packages/@ng-atomic/components/src/lib/molecules/molecules.module.ts","../../../../../packages/@ng-atomic/components/src/lib/molecules/ng-atomic-components-molecules.ts"],"sourcesContent":["import { NgModule } from \"@angular/core\";\nimport { provideComponent } from \"@ng-atomic/core\";\nimport { NavigationListItemMoleculeStore } from \"@ng-atomic/components/molecules/navigation-list-item\";\n\n@NgModule({})\nexport class NgAtomicMoleculesModule {\n static forRoot() {\n return {\n ngModule: NgAtomicMoleculesModule,\n providers: [\n provideComponent(\n NavigationListItemMoleculeStore,\n () => import('@ng-atomic/components/molecules/navigation-list-item')\n .then(m => m.NavigationListItemMolecule)\n ),\n ],\n };\n }\n}","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;MAKa,uBAAuB,CAAA;AAClC,IAAA,OAAO,OAAO,GAAA;QACZ,OAAO;AACL,YAAA,QAAQ,EAAE,uBAAuB;AACjC,YAAA,SAAS,EAAE;gBACT,gBAAgB,CACd,+BAA+B,EAC/B,MAAM,OAAO,sDAAsD,CAAC;qBACjE,IAAI,CAAC,CAAC,IAAI,CAAC,CAAC,0BAA0B,CAAC,CAC3C;AACF,aAAA;SACF,CAAC;KACH;+GAZU,uBAAuB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA,EAAA;gHAAvB,uBAAuB,EAAA,CAAA,CAAA,EAAA;gHAAvB,uBAAuB,EAAA,CAAA,CAAA,EAAA;;4FAAvB,uBAAuB,EAAA,UAAA,EAAA,CAAA;kBADnC,QAAQ;mBAAC,EAAE,CAAA;;;ACJZ;;AAEG;;;;"}
1
+ {"version":3,"file":"ng-atomic-components-molecules.mjs","sources":["../../../../../packages/@ng-atomic/components/src/lib/molecules/molecules.module.ts","../../../../../packages/@ng-atomic/components/src/lib/molecules/ng-atomic-components-molecules.ts"],"sourcesContent":["import { NgModule } from \"@angular/core\";\nimport { provideComponent } from \"@ng-atomic/core\";\nimport { NavigationListItemMoleculeStore } from \"@ng-atomic/components/molecules/navigation-list-item\";\nimport { ChipsInputFieldMoleculeStore } from \"@ng-atomic/components/molecules/chips-input-field\";\nimport { HeaderMoleculeStore } from \"@ng-atomic/components/molecules/header\";\nimport { MatChipsModule } from \"@angular/material/chips\";\nimport { TextInputFieldMoleculeStore } from \"@ng-atomic/components/molecules/text-input-field\";\nimport { LoadingBoxMoleculeStore } from \"@ng-atomic/components/molecules/loading-box\";\n\n@NgModule({\n imports: [\n MatChipsModule,\n ]\n})\nexport class NgAtomicMoleculesModule {\n static forRoot() {\n return {\n ngModule: NgAtomicMoleculesModule,\n providers: [\n provideComponent(ChipsInputFieldMoleculeStore, () => import('@ng-atomic/components/molecules/chips-input-field').then(m => m.ChipsInputFieldMolecule)),\n ChipsInputFieldMoleculeStore.Config.provide(),\n provideComponent(HeaderMoleculeStore, () => import('@ng-atomic/components/molecules/header').then(m => m.HeaderMolecule)),\n LoadingBoxMoleculeStore.Config.provide(),\n provideComponent(LoadingBoxMoleculeStore, () => {\n return import('@ng-atomic/components/molecules/loading-box').then(m => m.LoadingBoxMolecule);\n }),\n provideComponent(NavigationListItemMoleculeStore, () => import('@ng-atomic/components/molecules/navigation-list-item').then(m => m.NavigationListItemMolecule)),\n provideComponent(\n NavigationListItemMoleculeStore,\n () => import('@ng-atomic/components/molecules/navigation-list-item')\n .then(m => m.NavigationListItemMolecule)\n ),\n provideComponent(TextInputFieldMoleculeStore, () => import('@ng-atomic/components/molecules/text-input-field').then(m => m.TextInputFieldMolecule)),\n ],\n };\n }\n}","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;MAca,uBAAuB,CAAA;AAClC,IAAA,OAAO,OAAO,GAAA;QACZ,OAAO;AACL,YAAA,QAAQ,EAAE,uBAAuB;AACjC,YAAA,SAAS,EAAE;gBACT,gBAAgB,CAAC,4BAA4B,EAAE,MAAM,OAAO,mDAAmD,CAAC,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,CAAC,uBAAuB,CAAC,CAAC;AACtJ,gBAAA,4BAA4B,CAAC,MAAM,CAAC,OAAO,EAAE;gBAC7C,gBAAgB,CAAC,mBAAmB,EAAE,MAAM,OAAO,wCAAwC,CAAC,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,CAAC,cAAc,CAAC,C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,IAAA,EAAA,CAAA;AACR,oBAAA,OAAO,EAAE;wBACP,cAAc;AACf,qBAAA;AACF,iBAAA,CAAA;;;ACbD;;AAEG;;;;"}
@@ -1,34 +1,143 @@
1
- import * as i1 from '@angular/common';
2
- import { CommonModule } from '@angular/common';
1
+ import { __decorate } from 'tslib';
3
2
  import * as i0 from '@angular/core';
4
- import { EventEmitter, Component, ChangeDetectionStrategy, Input, Output } from '@angular/core';
5
- import * as i2 from '@angular/material/button';
3
+ import { input, Directive, inject, Component, ChangeDetectionStrategy } from '@angular/core';
4
+ import * as i1 from '@angular/material/button';
6
5
  import { MatButtonModule } from '@angular/material/button';
6
+ import { InjectableComponent, TokenizedType, NgAtomicComponent } from '@ng-atomic/core';
7
7
 
8
- class ActionButtonsSectionOrganism {
8
+ let ActionButtonsSectionOrganismStore = class ActionButtonsSectionOrganismStore extends InjectableComponent {
9
9
  constructor() {
10
- this.actions = [];
11
- this.action = new EventEmitter();
12
- this.trackById = (item) => item.id;
10
+ super(...arguments);
11
+ this.actions = input([]);
12
+ this.type = input('raised');
13
13
  }
14
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ActionButtonsSectionOrganism, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
15
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: ActionButtonsSectionOrganism, isStandalone: true, selector: "organisms-action-buttons-section", inputs: { actions: "actions" }, outputs: { action: "action" }, host: { classAttribute: "organism section" }, ngImport: i0, template: "<ng-container *ngFor=\"let _action of actions; trackBy: trackById\">\n <button mat-raised-button color=\"primary\" [disabled]=\"_action?.disabled\" (click)=\"action.emit(_action)\">{{ _action?.name }}</button>\n</ng-container>", styles: [":host{--horizontal-padding: 16px;--horizontal-padding-SCOPED-IN-action-buttons-section-WhSg: var(--horizontal-padding)}:host{display:flex;flex-direction:row;gap:8px;width:100%;padding:0 var(--horizontal-padding-SCOPED-IN-action-buttons-section-WhSg);box-sizing:border-box}:host button{width:100%;height:48px}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i2.MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
14
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.2.2", ngImport: i0, type: ActionButtonsSectionOrganismStore, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
15
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "17.2.2", type: ActionButtonsSectionOrganismStore, isStandalone: true, selector: "organisms-action-buttons-section", inputs: { actions: { classPropertyName: "actions", publicName: "actions", isSignal: true, isRequired: false, transformFunction: null }, type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: false, transformFunction: null } }, host: { classAttribute: "organism section" }, usesInheritance: true, ngImport: i0 }); }
16
+ };
17
+ ActionButtonsSectionOrganismStore = __decorate([
18
+ TokenizedType()
19
+ ], ActionButtonsSectionOrganismStore);
20
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.2.2", ngImport: i0, type: ActionButtonsSectionOrganismStore, decorators: [{
21
+ type: Directive,
22
+ args: [{
23
+ standalone: true,
24
+ selector: 'organisms-action-buttons-section',
25
+ host: { class: 'organism section' },
26
+ }]
27
+ }] });
28
+ class ActionButtonsSectionOrganism extends NgAtomicComponent {
29
+ constructor() {
30
+ super(...arguments);
31
+ this.store = inject(ActionButtonsSectionOrganismStore);
32
+ }
33
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.2.2", ngImport: i0, type: ActionButtonsSectionOrganism, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
34
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.2.2", type: ActionButtonsSectionOrganism, isStandalone: true, selector: "organisms-action-buttons-section", host: { classAttribute: "organism section" }, usesInheritance: true, hostDirectives: [{ directive: ActionButtonsSectionOrganismStore, inputs: ["actions", "actions", "type", "type"] }], ngImport: i0, template: `
35
+ @for (action of store.actions(); track action.id) {
36
+ @switch (store.type()) {
37
+ @case ('basic') {
38
+ <button
39
+ mat-button
40
+ [color]="action.color"
41
+ [disabled]="action?.disabled"
42
+ (click)="dispatch(action)"
43
+ >{{ action?.name }}</button>
44
+ }
45
+ @case ('raised') {
46
+ <button
47
+ mat-raised-button
48
+ [color]="action.color"
49
+ [disabled]="action?.disabled"
50
+ (click)="dispatch(action)"
51
+ >{{ action?.name }}</button>
52
+ }
53
+ @case ('stroked') {
54
+ <button
55
+ mat-stroked-button
56
+ [color]="action.color"
57
+ [disabled]="action?.disabled"
58
+ (click)="dispatch(action)"
59
+ >{{ action?.name }}</button>
60
+ }
61
+ @case ('flat') {
62
+ <button
63
+ mat-flat-button
64
+ [color]="action.color"
65
+ [disabled]="action?.disabled"
66
+ (click)="dispatch(action)"
67
+ >{{ action?.name }}</button>
68
+ }
69
+ @case ('icon') {
70
+ <button
71
+ mat-icon-button
72
+ [color]="action.color"
73
+ [disabled]="action?.disabled"
74
+ (click)="dispatch(action)"
75
+ >{{ action?.name }}</button>
76
+ }
77
+ }
78
+ }
79
+ `, isInline: true, styles: [":host{--horizontal-padding: 16px;--horizontal-padding-SCOPED-IN-action-buttons-section-mGxI: var(--horizontal-padding)}:host{display:flex;flex-direction:row;gap:8px;width:100%;padding:0 var(--horizontal-padding-SCOPED-IN-action-buttons-section-mGxI);box-sizing:border-box}:host button{width:100%;height:48px;text-wrap:nowrap}\n"], dependencies: [{ kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i1.MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", exportAs: ["matButton"] }, { kind: "component", type: i1.MatIconButton, selector: "button[mat-icon-button]", exportAs: ["matButton"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
16
80
  }
17
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ActionButtonsSectionOrganism, decorators: [{
81
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.2.2", ngImport: i0, type: ActionButtonsSectionOrganism, decorators: [{
18
82
  type: Component,
19
83
  args: [{ selector: 'organisms-action-buttons-section', standalone: true, imports: [
20
- CommonModule,
21
84
  MatButtonModule,
22
- ], changeDetection: ChangeDetectionStrategy.OnPush, host: { class: 'organism section' }, template: "<ng-container *ngFor=\"let _action of actions; trackBy: trackById\">\n <button mat-raised-button color=\"primary\" [disabled]=\"_action?.disabled\" (click)=\"action.emit(_action)\">{{ _action?.name }}</button>\n</ng-container>", styles: [":host{--horizontal-padding: 16px;--horizontal-padding-SCOPED-IN-action-buttons-section-WhSg: var(--horizontal-padding)}:host{display:flex;flex-direction:row;gap:8px;width:100%;padding:0 var(--horizontal-padding-SCOPED-IN-action-buttons-section-WhSg);box-sizing:border-box}:host button{width:100%;height:48px}\n"] }]
23
- }], propDecorators: { actions: [{
24
- type: Input
25
- }], action: [{
26
- type: Output
27
- }] } });
85
+ ], template: `
86
+ @for (action of store.actions(); track action.id) {
87
+ @switch (store.type()) {
88
+ @case ('basic') {
89
+ <button
90
+ mat-button
91
+ [color]="action.color"
92
+ [disabled]="action?.disabled"
93
+ (click)="dispatch(action)"
94
+ >{{ action?.name }}</button>
95
+ }
96
+ @case ('raised') {
97
+ <button
98
+ mat-raised-button
99
+ [color]="action.color"
100
+ [disabled]="action?.disabled"
101
+ (click)="dispatch(action)"
102
+ >{{ action?.name }}</button>
103
+ }
104
+ @case ('stroked') {
105
+ <button
106
+ mat-stroked-button
107
+ [color]="action.color"
108
+ [disabled]="action?.disabled"
109
+ (click)="dispatch(action)"
110
+ >{{ action?.name }}</button>
111
+ }
112
+ @case ('flat') {
113
+ <button
114
+ mat-flat-button
115
+ [color]="action.color"
116
+ [disabled]="action?.disabled"
117
+ (click)="dispatch(action)"
118
+ >{{ action?.name }}</button>
119
+ }
120
+ @case ('icon') {
121
+ <button
122
+ mat-icon-button
123
+ [color]="action.color"
124
+ [disabled]="action?.disabled"
125
+ (click)="dispatch(action)"
126
+ >{{ action?.name }}</button>
127
+ }
128
+ }
129
+ }
130
+ `, changeDetection: ChangeDetectionStrategy.OnPush, host: { class: 'organism section' }, hostDirectives: [
131
+ {
132
+ directive: ActionButtonsSectionOrganismStore,
133
+ inputs: ['actions', 'type'],
134
+ }
135
+ ], styles: [":host{--horizontal-padding: 16px;--horizontal-padding-SCOPED-IN-action-buttons-section-mGxI: var(--horizontal-padding)}:host{display:flex;flex-direction:row;gap:8px;width:100%;padding:0 var(--horizontal-padding-SCOPED-IN-action-buttons-section-mGxI);box-sizing:border-box}:host button{width:100%;height:48px;text-wrap:nowrap}\n"] }]
136
+ }] });
28
137
 
29
138
  /**
30
139
  * Generated bundle index. Do not edit.
31
140
  */
32
141
 
33
- export { ActionButtonsSectionOrganism };
142
+ export { ActionButtonsSectionOrganism, ActionButtonsSectionOrganismStore };
34
143
  //# sourceMappingURL=ng-atomic-components-organisms-action-buttons-section.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"ng-atomic-components-organisms-action-buttons-section.mjs","sources":["../../../../../packages/@ng-atomic/components/src/lib/organisms/action-buttons-section/action-buttons-section.organism.ts","../../../../../packages/@ng-atomic/components/src/lib/organisms/action-buttons-section/action-buttons-section.organism.html","../../../../../packages/@ng-atomic/components/src/lib/organisms/action-buttons-section/ng-atomic-components-organisms-action-buttons-section.ts"],"sourcesContent":["import { CommonModule } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, EventEmitter, Input, Output } from '@angular/core';\nimport { MatButtonModule } from '@angular/material/button';\nimport { Action } from '@ng-atomic/core';\n\n@Component({\n selector: 'organisms-action-buttons-section',\n standalone: true,\n imports: [\n CommonModule,\n MatButtonModule,\n ],\n templateUrl: './action-buttons-section.organism.html',\n styleUrls: ['./action-buttons-section.organism.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {class: 'organism section'},\n})\nexport class ActionButtonsSectionOrganism {\n @Input()\n actions: Action[] = [];\n\n @Output()\n action = new EventEmitter<Action>();\n\n trackById = (item: Action) => item.id;\n}\n","<ng-container *ngFor=\"let _action of actions; trackBy: trackById\">\n <button mat-raised-button color=\"primary\" [disabled]=\"_action?.disabled\" (click)=\"action.emit(_action)\">{{ _action?.name }}</button>\n</ng-container>","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;MAiBa,4BAA4B,CAAA;AAZzC,IAAA,WAAA,GAAA;QAcE,IAAO,CAAA,OAAA,GAAa,EAAE,CAAC;AAGvB,QAAA,IAAA,CAAA,MAAM,GAAG,IAAI,YAAY,EAAU,CAAC;QAEpC,IAAS,CAAA,SAAA,GAAG,CAAC,IAAY,KAAK,IAAI,CAAC,EAAE,CAAC;AACvC,KAAA;+GARY,4BAA4B,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA,EAAA;AAA5B,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,4BAA4B,ECjBzC,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,kCAAA,EAAA,MAAA,EAAA,EAAA,OAAA,EAAA,SAAA,EAAA,EAAA,OAAA,EAAA,EAAA,MAAA,EAAA,QAAA,EAAA,EAAA,IAAA,EAAA,EAAA,cAAA,EAAA,kBAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EAAA,qOAEe,EDOX,MAAA,EAAA,CAAA,wTAAA,CAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EAAA,YAAY,2JACZ,eAAe,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,SAAA,EAAA,QAAA,EAAA,6GAAA,EAAA,MAAA,EAAA,CAAA,UAAA,EAAA,eAAA,EAAA,OAAA,CAAA,EAAA,QAAA,EAAA,CAAA,WAAA,CAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA,EAAA;;4FAON,4BAA4B,EAAA,UAAA,EAAA,CAAA;kBAZxC,SAAS;+BACE,kCAAkC,EAAA,UAAA,EAChC,IAAI,EACP,OAAA,EAAA;wBACP,YAAY;wBACZ,eAAe;qBAChB,EAGgB,eAAA,EAAA,uBAAuB,CAAC,MAAM,EAAA,IAAA,EACzC,EAAC,KAAK,EAAE,kBAAkB,EAAC,EAAA,QAAA,EAAA,qOAAA,EAAA,MAAA,EAAA,CAAA,wTAAA,CAAA,EAAA,CAAA;8BAIjC,OAAO,EAAA,CAAA;sBADN,KAAK;gBAIN,MAAM,EAAA,CAAA;sBADL,MAAM;;;AErBT;;AAEG;;;;"}
1
+ {"version":3,"file":"ng-atomic-components-organisms-action-buttons-section.mjs","sources":["../../../../../packages/@ng-atomic/components/src/lib/organisms/action-buttons-section/action-buttons-section.organism.ts","../../../../../packages/@ng-atomic/components/src/lib/organisms/action-buttons-section/ng-atomic-components-organisms-action-buttons-section.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, Directive, inject, input } from '@angular/core';\nimport { MatButtonModule } from '@angular/material/button';\nimport { Action, InjectableComponent, NgAtomicComponent, TokenizedType } from '@ng-atomic/core';\n\n@TokenizedType()\n@Directive({\n standalone: true,\n selector: 'organisms-action-buttons-section',\n host: {class: 'organism section'},\n})\nexport class ActionButtonsSectionOrganismStore extends InjectableComponent {\n readonly actions = input<Action[]>([]);\n readonly type = input<'basic' | 'raised' | 'stroked' | 'flat' | 'icon' | 'fab' | 'mini-fab'>('raised');\n}\n\n@Component({\n selector: 'organisms-action-buttons-section',\n standalone: true,\n imports: [\n MatButtonModule,\n ],\n template: `\n @for (action of store.actions(); track action.id) {\n @switch (store.type()) {\n @case ('basic') {\n <button\n mat-button\n [color]=\"action.color\"\n [disabled]=\"action?.disabled\"\n (click)=\"dispatch(action)\"\n >{{ action?.name }}</button>\n }\n @case ('raised') {\n <button\n mat-raised-button\n [color]=\"action.color\"\n [disabled]=\"action?.disabled\"\n (click)=\"dispatch(action)\"\n >{{ action?.name }}</button>\n }\n @case ('stroked') {\n <button\n mat-stroked-button\n [color]=\"action.color\"\n [disabled]=\"action?.disabled\"\n (click)=\"dispatch(action)\"\n >{{ action?.name }}</button>\n }\n @case ('flat') {\n <button\n mat-flat-button\n [color]=\"action.color\"\n [disabled]=\"action?.disabled\"\n (click)=\"dispatch(action)\"\n >{{ action?.name }}</button>\n }\n @case ('icon') {\n <button\n mat-icon-button\n [color]=\"action.color\"\n [disabled]=\"action?.disabled\"\n (click)=\"dispatch(action)\"\n >{{ action?.name }}</button>\n }\n }\n }\n `,\n styleUrls: ['./action-buttons-section.organism.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {class: 'organism section'},\n hostDirectives: [\n {\n directive: ActionButtonsSectionOrganismStore,\n inputs: ['actions', 'type'],\n }\n ]\n})\nexport class ActionButtonsSectionOrganism extends NgAtomicComponent {\n protected store = inject(ActionButtonsSectionOrganismStore);\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;AAUO,IAAM,iCAAiC,GAAvC,MAAM,iCAAkC,SAAQ,mBAAmB,CAAA;AAAnE,IAAA,WAAA,GAAA;;AACI,QAAA,IAAA,CAAA,OAAO,GAAG,KAAK,CAAW,EAAE,CAAC,CAAC;AAC9B,QAAA,IAAA,CAAA,IA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AAA,EAAA;AACd,wBAAA;AACE,4BAAA,SAAS,EAAE,iCAAiC;AAC5C,4BAAA,MAAM,EAAE,CAAC,SAAS,EAAE,MAAM,CAAC;AAC5B,yBAAA;AACF,qBAAA,EAAA,MAAA,EAAA,CAAA,yUAAA,CAAA,EAAA,CAAA;;;AC3EH;;AAEG;;;;"}
@@ -1,56 +1,70 @@
1
+ import { __decorate } from 'tslib';
1
2
  import * as i0 from '@angular/core';
2
- import { Component, ChangeDetectionStrategy, Input } from '@angular/core';
3
- import { CommonModule } from '@angular/common';
3
+ import { input, Directive, inject, Component, ChangeDetectionStrategy } from '@angular/core';
4
4
  import { ActionInputFieldMolecule } from '@ng-atomic/components/molecules/action-input-field';
5
5
  import { FormControl } from '@angular/forms';
6
- import { NgAtomicComponent } from '@ng-atomic/core';
6
+ import { InjectableComponent, TokenizedType, NgAtomicComponent } from '@ng-atomic/core';
7
7
 
8
+ let ActionInputSectionOrganismStore = class ActionInputSectionOrganismStore extends InjectableComponent {
9
+ constructor() {
10
+ super(...arguments);
11
+ this.control = input(new FormControl(''));
12
+ this.label = input('label');
13
+ this.placeholder = input('placeholder');
14
+ this.actions = input([]);
15
+ this.hint = input(null);
16
+ }
17
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.2.2", ngImport: i0, type: ActionInputSectionOrganismStore, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
18
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "17.2.2", type: ActionInputSectionOrganismStore, isStandalone: true, selector: "organisms-action-input-section", inputs: { control: { classPropertyName: "control", publicName: "control", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, actions: { classPropertyName: "actions", publicName: "actions", isSignal: true, isRequired: false, transformFunction: null }, hint: { classPropertyName: "hint", publicName: "hint", isSignal: true, isRequired: false, transformFunction: null } }, usesInheritance: true, ngImport: i0 }); }
19
+ };
20
+ ActionInputSectionOrganismStore = __decorate([
21
+ TokenizedType()
22
+ ], ActionInputSectionOrganismStore);
23
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.2.2", ngImport: i0, type: ActionInputSectionOrganismStore, decorators: [{
24
+ type: Directive,
25
+ args: [{ standalone: true, selector: 'organisms-action-input-section' }]
26
+ }] });
8
27
  class ActionInputSectionOrganism extends NgAtomicComponent {
9
28
  constructor() {
10
29
  super(...arguments);
11
- this.control = new FormControl('');
12
- this.label = 'label';
13
- this.placeholder = 'placeholder';
14
- this.actions = [];
30
+ this.store = inject(ActionInputSectionOrganismStore);
15
31
  }
16
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ActionInputSectionOrganism, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
17
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: ActionInputSectionOrganism, isStandalone: true, selector: "organisms-action-input-section", inputs: { control: "control", label: "label", placeholder: "placeholder", actions: "actions" }, usesInheritance: true, ngImport: i0, template: `
32
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.2.2", ngImport: i0, type: ActionInputSectionOrganism, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
33
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.2.2", type: ActionInputSectionOrganism, isStandalone: true, selector: "organisms-action-input-section", usesInheritance: true, hostDirectives: [{ directive: ActionInputSectionOrganismStore, inputs: ["control", "control", "label", "label", "placeholder", "placeholder", "actions", "actions", "hint", "hint"] }], ngImport: i0, template: `
18
34
  <molecules-action-input-field
19
- [actions]="actions"
20
- [control]="control"
21
- [label]="label"
22
- [placeholder]="placeholder"
35
+ [actions]="store.actions()"
36
+ [control]="store.control()"
37
+ [label]="store.label()"
38
+ [placeholder]="store.placeholder()"
39
+ [hint]="store.hint()"
23
40
  (action)="dispatch($event)"
24
41
  ></molecules-action-input-field>
25
- `, isInline: true, styles: [":host{--horizontal-padding: 16px;--horizontal-padding-SCOPED-IN-action-input-section-q45D: var(--horizontal-padding)}:host{display:block;width:100%;padding:0 var(--horizontal-padding-SCOPED-IN-action-input-section-q45D);box-sizing:border-box}:host .molecule.input-field,:host mat-form-field{width:100%}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "component", type: ActionInputFieldMolecule, selector: "molecules-action-input-field", inputs: ["appearance", "type", "name", "label", "control", "placeholder", "hint", "actions"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
42
+ `, isInline: true, styles: [":host{--horizontal-padding: 16px;--horizontal-padding-SCOPED-IN-action-input-section-m66m: var(--horizontal-padding)}:host{display:block;width:100%;padding:0 var(--horizontal-padding-SCOPED-IN-action-input-section-m66m);box-sizing:border-box}:host .molecule.input-field,:host mat-form-field{width:100%}\n"], dependencies: [{ kind: "component", type: ActionInputFieldMolecule, selector: "molecules-action-input-field", inputs: ["appearance", "type", "name", "label", "control", "placeholder", "hint", "actions"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
26
43
  }
27
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ActionInputSectionOrganism, decorators: [{
44
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.2.2", ngImport: i0, type: ActionInputSectionOrganism, decorators: [{
28
45
  type: Component,
29
46
  args: [{ selector: 'organisms-action-input-section', standalone: true, imports: [
30
- CommonModule,
31
47
  ActionInputFieldMolecule,
32
48
  ], template: `
33
49
  <molecules-action-input-field
34
- [actions]="actions"
35
- [control]="control"
36
- [label]="label"
37
- [placeholder]="placeholder"
50
+ [actions]="store.actions()"
51
+ [control]="store.control()"
52
+ [label]="store.label()"
53
+ [placeholder]="store.placeholder()"
54
+ [hint]="store.hint()"
38
55
  (action)="dispatch($event)"
39
56
  ></molecules-action-input-field>
40
- `, changeDetection: ChangeDetectionStrategy.OnPush, styles: [":host{--horizontal-padding: 16px;--horizontal-padding-SCOPED-IN-action-input-section-q45D: var(--horizontal-padding)}:host{display:block;width:100%;padding:0 var(--horizontal-padding-SCOPED-IN-action-input-section-q45D);box-sizing:border-box}:host .molecule.input-field,:host mat-form-field{width:100%}\n"] }]
41
- }], propDecorators: { control: [{
42
- type: Input
43
- }], label: [{
44
- type: Input
45
- }], placeholder: [{
46
- type: Input
47
- }], actions: [{
48
- type: Input
49
- }] } });
57
+ `, changeDetection: ChangeDetectionStrategy.OnPush, hostDirectives: [
58
+ {
59
+ directive: ActionInputSectionOrganismStore,
60
+ inputs: ['control', 'label', 'placeholder', 'actions', 'hint'],
61
+ }
62
+ ], styles: [":host{--horizontal-padding: 16px;--horizontal-padding-SCOPED-IN-action-input-section-m66m: var(--horizontal-padding)}:host{display:block;width:100%;padding:0 var(--horizontal-padding-SCOPED-IN-action-input-section-m66m);box-sizing:border-box}:host .molecule.input-field,:host mat-form-field{width:100%}\n"] }]
63
+ }] });
50
64
 
51
65
  /**
52
66
  * Generated bundle index. Do not edit.
53
67
  */
54
68
 
55
- export { ActionInputSectionOrganism };
69
+ export { ActionInputSectionOrganism, ActionInputSectionOrganismStore };
56
70
  //# sourceMappingURL=ng-atomic-components-organisms-action-input-section.mjs.map