aril 0.0.46 → 0.0.48

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 (618) hide show
  1. package/boot/config/api/{index.ts → index.d.ts} +1 -1
  2. package/boot/config/api/src/api.service.d.ts +14 -0
  3. package/boot/config/api/src/interfaces.d.ts +9 -0
  4. package/boot/config/apps/{index.ts → index.d.ts} +2 -2
  5. package/boot/config/apps/src/apps.service.d.ts +16 -0
  6. package/boot/config/apps/src/interfaces.d.ts +23 -0
  7. package/boot/config/apps/src/showdowDOMWrapper.d.ts +10 -0
  8. package/boot/config/plugins/{index.ts → index.d.ts} +2 -2
  9. package/boot/config/plugins/src/getNgZone.d.ts +5 -0
  10. package/boot/config/plugins/src/interfaces.d.ts +18 -0
  11. package/boot/config/plugins/src/plugins.service.d.ts +9 -0
  12. package/boot/host/{index.ts → index.d.ts} +1 -1
  13. package/boot/host/src/app.component.d.ts +8 -0
  14. package/boot/host/src/bootstrap.d.ts +2 -0
  15. package/boot/index.d.ts +1 -0
  16. package/boot/mfe/{index.ts → index.d.ts} +1 -1
  17. package/boot/mfe/src/app.component.d.ts +12 -0
  18. package/boot/mfe/src/appComponentLoader.d.ts +1 -0
  19. package/boot/mfe/src/bootstrap.d.ts +6 -0
  20. package/boot/mfe/src/loadStyles.d.ts +3 -0
  21. package/esm2022/aril.mjs +5 -0
  22. package/esm2022/boot/aril-boot.mjs +5 -0
  23. package/esm2022/boot/config/api/aril-boot-config-api.mjs +5 -0
  24. package/esm2022/boot/config/api/index.mjs +2 -0
  25. package/esm2022/boot/config/api/src/api.service.mjs +42 -0
  26. package/esm2022/boot/config/api/src/interfaces.mjs +11 -0
  27. package/esm2022/boot/config/apps/aril-boot-config-apps.mjs +5 -0
  28. package/esm2022/boot/config/apps/index.mjs +3 -0
  29. package/esm2022/boot/config/apps/src/apps.service.mjs +51 -0
  30. package/esm2022/boot/config/apps/src/interfaces.mjs +17 -0
  31. package/esm2022/boot/config/apps/src/showdowDOMWrapper.mjs +35 -0
  32. package/esm2022/boot/config/plugins/aril-boot-config-plugins.mjs +5 -0
  33. package/esm2022/boot/config/plugins/index.mjs +3 -0
  34. package/esm2022/boot/config/plugins/src/getNgZone.mjs +12 -0
  35. package/esm2022/boot/config/plugins/src/interfaces.mjs +3 -0
  36. package/esm2022/boot/config/plugins/src/plugins.service.mjs +65 -0
  37. package/esm2022/boot/host/aril-boot-host.mjs +5 -0
  38. package/esm2022/boot/host/index.mjs +2 -0
  39. package/esm2022/boot/host/src/app.component.mjs +32 -0
  40. package/esm2022/boot/host/src/bootstrap.mjs +50 -0
  41. package/esm2022/boot/index.mjs +2 -0
  42. package/esm2022/boot/mfe/aril-boot-mfe.mjs +5 -0
  43. package/esm2022/boot/mfe/index.mjs +2 -0
  44. package/esm2022/boot/mfe/src/app.component.mjs +60 -0
  45. package/esm2022/boot/mfe/src/appComponentLoader.mjs +5 -0
  46. package/esm2022/boot/mfe/src/bootstrap.mjs +64 -0
  47. package/esm2022/boot/mfe/src/loadStyles.mjs +16 -0
  48. package/esm2022/http/aril-http.mjs +5 -0
  49. package/esm2022/http/index.mjs +12 -0
  50. package/esm2022/http/lib/enums.mjs +16 -0
  51. package/esm2022/http/lib/interfaces.mjs +15 -0
  52. package/esm2022/http/src/httpBackend.mjs +17 -0
  53. package/esm2022/http/src/httpClient.mjs +14 -0
  54. package/esm2022/http/src/interceptor/state-machine.interceptor.mjs +8 -0
  55. package/esm2022/http/src/serviceBase.mjs +60 -0
  56. package/esm2022/http/src/serviceMockBase.mjs +5 -0
  57. package/esm2022/http/src/serviceRequest.mjs +21 -0
  58. package/esm2022/http/src/serviceStateMethods.mjs +118 -0
  59. package/esm2022/i18n/aril-i18n.mjs +5 -0
  60. package/esm2022/i18n/index.mjs +6 -0
  61. package/esm2022/i18n/src/folder-name-token.mjs +3 -0
  62. package/esm2022/i18n/src/i18n.module.mjs +17 -0
  63. package/esm2022/i18n/src/loader.mjs +20 -0
  64. package/esm2022/i18n/src/provideI18n.mjs +16 -0
  65. package/esm2022/i18n/src/provideScope.mjs +18 -0
  66. package/esm2022/keycloak/aril-keycloak.mjs +5 -0
  67. package/esm2022/keycloak/index.mjs +4 -0
  68. package/esm2022/keycloak/src/auth.guard.mjs +39 -0
  69. package/esm2022/keycloak/src/auth.interceptor.mjs +10 -0
  70. package/esm2022/keycloak/src/keycloak.manager.mjs +76 -0
  71. package/esm2022/public-api.mjs +3 -0
  72. package/esm2022/theme/aril-theme.mjs +5 -0
  73. package/esm2022/theme/index.mjs +2 -0
  74. package/esm2022/theme/layout/app/breadcrumb/app.breadcrumb.component.mjs +41 -0
  75. package/esm2022/theme/layout/app/config/app.config.component.mjs +132 -0
  76. package/esm2022/theme/layout/app/layout/app.layout.component.mjs +147 -0
  77. package/esm2022/theme/layout/app/layout/mfe.layout.component.mjs +67 -0
  78. package/esm2022/theme/layout/app/menu/app.menu.component.mjs +398 -0
  79. package/esm2022/theme/layout/app/profileSidebar/app.profilesidebar.component.mjs +28 -0
  80. package/esm2022/theme/layout/app/sidebar/app.sidebar.component.mjs +41 -0
  81. package/esm2022/theme/layout/app/topbar/app.topbar.component.mjs +34 -0
  82. package/esm2022/theme/layout/aril-theme-layout.mjs +5 -0
  83. package/esm2022/theme/layout/index.mjs +4 -0
  84. package/esm2022/theme/layout/service/app.layout.service.mjs +127 -0
  85. package/esm2022/theme/layout/service/app.menu.service.mjs +53 -0
  86. package/esm2022/theme/layout/service/menuchangeevent.mjs +2 -0
  87. package/esm2022/ui/aril-ui.mjs +5 -0
  88. package/esm2022/ui/autoComplete/aril-ui-autoComplete.mjs +5 -0
  89. package/esm2022/ui/autoComplete/index.mjs +2 -0
  90. package/esm2022/ui/autoComplete/src/auto-complete.component.mjs +81 -0
  91. package/esm2022/ui/autoComplete/src/interfaces.mjs +2 -0
  92. package/esm2022/ui/badge/aril-ui-badge.mjs +5 -0
  93. package/esm2022/ui/badge/index.mjs +2 -0
  94. package/esm2022/ui/badge/src/badge.component.mjs +19 -0
  95. package/esm2022/ui/button/aril-ui-button.mjs +5 -0
  96. package/esm2022/ui/button/index.mjs +3 -0
  97. package/esm2022/ui/button/src/button.component.mjs +37 -0
  98. package/esm2022/ui/button/src/split-button.component.mjs +18 -0
  99. package/esm2022/ui/calendar/aril-ui-calendar.mjs +5 -0
  100. package/esm2022/ui/calendar/index.mjs +2 -0
  101. package/esm2022/ui/calendar/src/calendar.component.mjs +119 -0
  102. package/esm2022/ui/checkbox/aril-ui-checkbox.mjs +5 -0
  103. package/esm2022/ui/checkbox/index.mjs +3 -0
  104. package/esm2022/ui/checkbox/src/check-box.component.mjs +24 -0
  105. package/esm2022/ui/checkbox/src/tri-state-checkbox.component.mjs +24 -0
  106. package/esm2022/ui/dxField/aril-ui-dxField.mjs +5 -0
  107. package/esm2022/ui/dxField/index.mjs +2 -0
  108. package/esm2022/ui/dxField/src/dx-field.component.mjs +18 -0
  109. package/esm2022/ui/field/aril-ui-field.mjs +5 -0
  110. package/esm2022/ui/field/index.mjs +2 -0
  111. package/esm2022/ui/field/src/field.component.mjs +39 -0
  112. package/esm2022/ui/fileUpload/aril-ui-fileUpload.mjs +5 -0
  113. package/esm2022/ui/fileUpload/index.mjs +2 -0
  114. package/esm2022/ui/fileUpload/src/file-upload.component.mjs +61 -0
  115. package/esm2022/ui/form/aril-ui-form.mjs +5 -0
  116. package/esm2022/ui/form/index.mjs +22 -0
  117. package/esm2022/ui/form/src/form-submit-button.component.mjs +40 -0
  118. package/esm2022/ui/form/src/form.component.mjs +27 -0
  119. package/esm2022/ui/index.mjs +2 -0
  120. package/esm2022/ui/lib/aril-ui-lib.mjs +5 -0
  121. package/esm2022/ui/lib/index.mjs +15 -0
  122. package/esm2022/ui/lib/src/form/form-error-message.component.mjs +33 -0
  123. package/esm2022/ui/lib/src/form/form-error-message.directive.mjs +34 -0
  124. package/esm2022/ui/lib/src/form/form-field-builder.mjs +23 -0
  125. package/esm2022/ui/lib/src/form/form-validation.mjs +14 -0
  126. package/esm2022/ui/lib/src/grid/flex-grid.directive.mjs +21 -0
  127. package/esm2022/ui/lib/src/input/baseInput.mjs +24 -0
  128. package/esm2022/ui/lib/src/input/common-input-validators.service.mjs +49 -0
  129. package/esm2022/ui/lib/src/input/dx-input-error-message.pipe.mjs +22 -0
  130. package/esm2022/ui/lib/src/input/input-disabled.directive.mjs +25 -0
  131. package/esm2022/ui/lib/src/input/input-error-message.pipe.mjs +42 -0
  132. package/esm2022/ui/lib/src/input/input-transforms.mjs +8 -0
  133. package/esm2022/ui/lib/src/input/value-accessor.directive.mjs +38 -0
  134. package/esm2022/ui/mask/aril-ui-mask.mjs +5 -0
  135. package/esm2022/ui/mask/index.mjs +2 -0
  136. package/esm2022/ui/mask/src/mask.component.mjs +35 -0
  137. package/esm2022/ui/number/aril-ui-number.mjs +5 -0
  138. package/esm2022/ui/number/index.mjs +2 -0
  139. package/esm2022/ui/number/src/number.component.mjs +36 -0
  140. package/esm2022/ui/overlayPanel/aril-ui-overlayPanel.mjs +5 -0
  141. package/esm2022/ui/overlayPanel/index.mjs +2 -0
  142. package/esm2022/ui/overlayPanel/src/overlay-panel.component.mjs +20 -0
  143. package/esm2022/ui/panel/aril-ui-panel.mjs +5 -0
  144. package/esm2022/ui/panel/index.mjs +2 -0
  145. package/esm2022/ui/panel/src/panel.component.mjs +24 -0
  146. package/esm2022/ui/password/aril-ui-password.mjs +5 -0
  147. package/esm2022/ui/password/index.mjs +2 -0
  148. package/esm2022/ui/password/src/password.component.mjs +29 -0
  149. package/esm2022/ui/radioButton/aril-ui-radioButton.mjs +5 -0
  150. package/esm2022/ui/radioButton/index.mjs +2 -0
  151. package/esm2022/ui/radioButton/src/radio-button.component.mjs +30 -0
  152. package/esm2022/ui/selectBox/aril-ui-selectBox.mjs +5 -0
  153. package/esm2022/ui/selectBox/index.mjs +2 -0
  154. package/esm2022/ui/selectBox/src/interfaces.mjs +2 -0
  155. package/esm2022/ui/selectBox/src/select-box.component.mjs +54 -0
  156. package/esm2022/ui/switch/aril-ui-switch.mjs +5 -0
  157. package/esm2022/ui/switch/index.mjs +2 -0
  158. package/esm2022/ui/switch/src/switch.component.mjs +23 -0
  159. package/esm2022/ui/table/aril-ui-table.mjs +5 -0
  160. package/esm2022/ui/table/index.mjs +49 -0
  161. package/esm2022/ui/table/src/i18n.mjs +56 -0
  162. package/esm2022/ui/table/src/table-column.component.mjs +23 -0
  163. package/esm2022/ui/table/src/table.component.mjs +94 -0
  164. package/esm2022/ui/tagBox/aril-ui-tagBox.mjs +5 -0
  165. package/esm2022/ui/tagBox/index.mjs +2 -0
  166. package/esm2022/ui/tagBox/src/tag-box.component.mjs +50 -0
  167. package/esm2022/ui/text/aril-ui-text.mjs +5 -0
  168. package/esm2022/ui/text/index.mjs +2 -0
  169. package/esm2022/ui/text/src/text.component.mjs +40 -0
  170. package/esm2022/ui/textArea/aril-ui-textArea.mjs +5 -0
  171. package/esm2022/ui/textArea/index.mjs +2 -0
  172. package/esm2022/ui/textArea/src/text-area.component.mjs +26 -0
  173. package/esm2022/ui/toggle-button/aril-ui-toggle-button.mjs +5 -0
  174. package/esm2022/ui/toggle-button/index.mjs +2 -0
  175. package/esm2022/ui/toggle-button/src/toggle-button.component.mjs +25 -0
  176. package/esm2022/ui/tree/aril-ui-tree.mjs +5 -0
  177. package/esm2022/ui/tree/index.mjs +2 -0
  178. package/esm2022/ui/tree/src/tree.component.mjs +34 -0
  179. package/esm2022/ui/treeTable/aril-ui-treeTable.mjs +5 -0
  180. package/esm2022/ui/treeTable/index.mjs +2 -0
  181. package/esm2022/ui/treeTable/src/tree-table.component.mjs +55 -0
  182. package/esm2022/ui/value/aril-ui-value.mjs +5 -0
  183. package/esm2022/ui/value/index.mjs +2 -0
  184. package/esm2022/ui/value/src/value.component.mjs +35 -0
  185. package/esm2022/util/aril-util.mjs +5 -0
  186. package/esm2022/util/block/aril-util-block.mjs +5 -0
  187. package/esm2022/util/block/index.mjs +2 -0
  188. package/esm2022/util/block/src/block.mjs +64 -0
  189. package/esm2022/util/custom_pages/aril-util-custom_pages.mjs +5 -0
  190. package/esm2022/util/custom_pages/index.mjs +2 -0
  191. package/esm2022/util/custom_pages/src/notFound.component.mjs +65 -0
  192. package/esm2022/util/index.mjs +2 -0
  193. package/esm2022/util/init-event/aril-util-init-event.mjs +5 -0
  194. package/esm2022/util/init-event/index.mjs +2 -0
  195. package/esm2022/util/init-event/src/init-event.directive.mjs +22 -0
  196. package/esm2022/util/lib/aril-util-lib.mjs +5 -0
  197. package/esm2022/util/lib/index.mjs +4 -0
  198. package/esm2022/util/lib/src/interfaces.mjs +4 -0
  199. package/esm2022/util/lib/src/module-router.mjs +17 -0
  200. package/esm2022/util/lib/src/types.mjs +3 -0
  201. package/esm2022/util/loaders/aril-util-loaders.mjs +5 -0
  202. package/esm2022/util/loaders/index.mjs +3 -0
  203. package/esm2022/util/loaders/script/script.loader.service.mjs +61 -0
  204. package/esm2022/util/loaders/style/style.loader.service.mjs +61 -0
  205. package/esm2022/util/primitive-extensions/aril-util-primitive-extensions.mjs +5 -0
  206. package/esm2022/util/primitive-extensions/index.mjs +5 -0
  207. package/esm2022/util/primitive-extensions/src/boolean.extensions.mjs +2 -0
  208. package/esm2022/util/primitive-extensions/src/date.extensions.mjs +116 -0
  209. package/esm2022/util/primitive-extensions/src/number.extensions.mjs +39 -0
  210. package/esm2022/util/primitive-extensions/src/string.extensions.mjs +23 -0
  211. package/esm2022/util/pub-sub/aril-util-pub-sub.mjs +5 -0
  212. package/esm2022/util/pub-sub/index.mjs +2 -0
  213. package/esm2022/util/pub-sub/src/pub-sub.service.mjs +29 -0
  214. package/fesm2022/aril-app.component-c363Er6g.mjs +76 -0
  215. package/fesm2022/aril-app.component-c363Er6g.mjs.map +1 -0
  216. package/fesm2022/aril-boot-config-api.mjs +59 -0
  217. package/fesm2022/aril-boot-config-api.mjs.map +1 -0
  218. package/fesm2022/aril-boot-config-apps.mjs +106 -0
  219. package/fesm2022/aril-boot-config-apps.mjs.map +1 -0
  220. package/fesm2022/aril-boot-config-plugins.mjs +84 -0
  221. package/fesm2022/aril-boot-config-plugins.mjs.map +1 -0
  222. package/fesm2022/aril-boot-host.mjs +86 -0
  223. package/fesm2022/aril-boot-host.mjs.map +1 -0
  224. package/fesm2022/aril-boot-mfe-app.component-WWRmTfs5.mjs +75 -0
  225. package/fesm2022/aril-boot-mfe-app.component-WWRmTfs5.mjs.map +1 -0
  226. package/fesm2022/aril-boot-mfe-aril-boot-mfe-PwAGdNZE.mjs +90 -0
  227. package/fesm2022/aril-boot-mfe-aril-boot-mfe-PwAGdNZE.mjs.map +1 -0
  228. package/fesm2022/aril-boot-mfe.mjs +16 -0
  229. package/fesm2022/aril-boot-mfe.mjs.map +1 -0
  230. package/fesm2022/aril-boot.mjs +8 -0
  231. package/fesm2022/aril-boot.mjs.map +1 -0
  232. package/fesm2022/aril-http.mjs +273 -0
  233. package/fesm2022/aril-http.mjs.map +1 -0
  234. package/fesm2022/aril-i18n.mjs +72 -0
  235. package/fesm2022/aril-i18n.mjs.map +1 -0
  236. package/fesm2022/aril-keycloak.mjs +129 -0
  237. package/fesm2022/aril-keycloak.mjs.map +1 -0
  238. package/fesm2022/aril-theme-layout.mjs +1010 -0
  239. package/fesm2022/aril-theme-layout.mjs.map +1 -0
  240. package/fesm2022/aril-theme.mjs +8 -0
  241. package/fesm2022/aril-theme.mjs.map +1 -0
  242. package/fesm2022/aril-ui-autoComplete.mjs +88 -0
  243. package/fesm2022/aril-ui-autoComplete.mjs.map +1 -0
  244. package/fesm2022/aril-ui-badge.mjs +26 -0
  245. package/fesm2022/aril-ui-badge.mjs.map +1 -0
  246. package/fesm2022/aril-ui-button.mjs +59 -0
  247. package/fesm2022/aril-ui-button.mjs.map +1 -0
  248. package/fesm2022/aril-ui-calendar.mjs +125 -0
  249. package/fesm2022/aril-ui-calendar.mjs.map +1 -0
  250. package/fesm2022/aril-ui-checkbox.mjs +47 -0
  251. package/fesm2022/aril-ui-checkbox.mjs.map +1 -0
  252. package/fesm2022/aril-ui-dxField.mjs +25 -0
  253. package/fesm2022/aril-ui-dxField.mjs.map +1 -0
  254. package/fesm2022/aril-ui-field.mjs +46 -0
  255. package/fesm2022/aril-ui-field.mjs.map +1 -0
  256. package/fesm2022/aril-ui-fileUpload.mjs +68 -0
  257. package/fesm2022/aril-ui-fileUpload.mjs.map +1 -0
  258. package/fesm2022/aril-ui-form.mjs +86 -0
  259. package/fesm2022/aril-ui-form.mjs.map +1 -0
  260. package/fesm2022/aril-ui-lib.mjs +322 -0
  261. package/fesm2022/aril-ui-lib.mjs.map +1 -0
  262. package/fesm2022/aril-ui-mask.mjs +42 -0
  263. package/fesm2022/aril-ui-mask.mjs.map +1 -0
  264. package/fesm2022/aril-ui-number.mjs +43 -0
  265. package/fesm2022/aril-ui-number.mjs.map +1 -0
  266. package/fesm2022/aril-ui-overlayPanel.mjs +27 -0
  267. package/fesm2022/aril-ui-overlayPanel.mjs.map +1 -0
  268. package/fesm2022/aril-ui-panel.mjs +31 -0
  269. package/fesm2022/aril-ui-panel.mjs.map +1 -0
  270. package/fesm2022/aril-ui-password.mjs +36 -0
  271. package/fesm2022/aril-ui-password.mjs.map +1 -0
  272. package/fesm2022/aril-ui-radioButton.mjs +37 -0
  273. package/fesm2022/aril-ui-radioButton.mjs.map +1 -0
  274. package/fesm2022/aril-ui-selectBox.mjs +61 -0
  275. package/fesm2022/aril-ui-selectBox.mjs.map +1 -0
  276. package/fesm2022/aril-ui-switch.mjs +30 -0
  277. package/fesm2022/aril-ui-switch.mjs.map +1 -0
  278. package/fesm2022/aril-ui-table.mjs +219 -0
  279. package/fesm2022/aril-ui-table.mjs.map +1 -0
  280. package/fesm2022/aril-ui-tagBox.mjs +57 -0
  281. package/fesm2022/aril-ui-tagBox.mjs.map +1 -0
  282. package/fesm2022/aril-ui-text.mjs +47 -0
  283. package/fesm2022/aril-ui-text.mjs.map +1 -0
  284. package/fesm2022/aril-ui-textArea.mjs +33 -0
  285. package/fesm2022/aril-ui-textArea.mjs.map +1 -0
  286. package/fesm2022/aril-ui-toggle-button.mjs +32 -0
  287. package/fesm2022/aril-ui-toggle-button.mjs.map +1 -0
  288. package/fesm2022/aril-ui-tree.mjs +41 -0
  289. package/fesm2022/aril-ui-tree.mjs.map +1 -0
  290. package/fesm2022/aril-ui-treeTable.mjs +62 -0
  291. package/fesm2022/aril-ui-treeTable.mjs.map +1 -0
  292. package/fesm2022/aril-ui-value.mjs +42 -0
  293. package/fesm2022/aril-ui-value.mjs.map +1 -0
  294. package/fesm2022/aril-ui.mjs +8 -0
  295. package/fesm2022/aril-ui.mjs.map +1 -0
  296. package/fesm2022/aril-util-block.mjs +71 -0
  297. package/fesm2022/aril-util-block.mjs.map +1 -0
  298. package/fesm2022/aril-util-custom_pages.mjs +72 -0
  299. package/fesm2022/aril-util-custom_pages.mjs.map +1 -0
  300. package/fesm2022/aril-util-init-event.mjs +29 -0
  301. package/fesm2022/aril-util-init-event.mjs.map +1 -0
  302. package/fesm2022/aril-util-lib.mjs +29 -0
  303. package/fesm2022/aril-util-lib.mjs.map +1 -0
  304. package/fesm2022/aril-util-loaders.mjs +126 -0
  305. package/fesm2022/aril-util-loaders.mjs.map +1 -0
  306. package/fesm2022/aril-util-primitive-extensions.mjs +179 -0
  307. package/fesm2022/aril-util-primitive-extensions.mjs.map +1 -0
  308. package/fesm2022/aril-util-pub-sub.mjs +36 -0
  309. package/fesm2022/aril-util-pub-sub.mjs.map +1 -0
  310. package/fesm2022/aril-util.mjs +8 -0
  311. package/fesm2022/aril-util.mjs.map +1 -0
  312. package/fesm2022/aril.mjs +157 -0
  313. package/fesm2022/aril.mjs.map +1 -0
  314. package/http/{index.ts → index.d.ts} +8 -13
  315. package/http/lib/enums.d.ts +13 -0
  316. package/http/lib/interfaces.d.ts +21 -0
  317. package/http/src/httpBackend.d.ts +8 -0
  318. package/http/src/httpClient.d.ts +8 -0
  319. package/http/src/interceptor/state-machine.interceptor.d.ts +2 -0
  320. package/http/src/serviceBase.d.ts +5 -0
  321. package/http/src/serviceMockBase.d.ts +6 -0
  322. package/http/src/serviceRequest.d.ts +4 -0
  323. package/http/src/serviceStateMethods.d.ts +14 -0
  324. package/i18n/{index.ts → index.d.ts} +5 -5
  325. package/i18n/src/folder-name-token.d.ts +2 -0
  326. package/i18n/src/i18n.module.d.ts +7 -0
  327. package/i18n/src/loader.d.ts +9 -0
  328. package/i18n/src/provideI18n.d.ts +2 -0
  329. package/i18n/src/provideScope.d.ts +5 -0
  330. package/index.d.ts +5 -0
  331. package/keycloak/{index.ts → index.d.ts} +3 -3
  332. package/keycloak/src/auth.guard.d.ts +11 -0
  333. package/keycloak/src/auth.interceptor.d.ts +2 -0
  334. package/keycloak/src/keycloak.manager.d.ts +25 -0
  335. package/package.json +314 -31
  336. package/{public-api.ts → public-api.d.ts} +2 -2
  337. package/theme/index.d.ts +1 -0
  338. package/theme/layout/app/breadcrumb/app.breadcrumb.component.d.ts +16 -0
  339. package/theme/layout/app/config/app.config.component.d.ts +36 -0
  340. package/theme/layout/app/layout/app.layout.component.d.ts +48 -0
  341. package/theme/layout/app/layout/mfe.layout.component.d.ts +8 -0
  342. package/theme/layout/app/menu/app.menu.component.d.ts +50 -0
  343. package/theme/layout/app/profileSidebar/app.profilesidebar.component.d.ts +13 -0
  344. package/theme/layout/app/sidebar/app.sidebar.component.d.ts +15 -0
  345. package/theme/layout/app/topbar/app.topbar.component.d.ts +16 -0
  346. package/theme/layout/index.d.ts +3 -0
  347. package/theme/layout/service/app.layout.service.d.ts +51 -0
  348. package/theme/layout/service/app.menu.service.d.ts +23 -0
  349. package/theme/layout/service/menuchangeevent.d.ts +4 -0
  350. package/ui/autoComplete/{index.ts → index.d.ts} +1 -1
  351. package/ui/autoComplete/src/auto-complete.component.d.ts +24 -0
  352. package/ui/autoComplete/src/interfaces.d.ts +24 -0
  353. package/ui/badge/{index.ts → index.d.ts} +1 -1
  354. package/ui/badge/src/badge.component.d.ts +11 -0
  355. package/ui/button/{index.ts → index.d.ts} +2 -2
  356. package/ui/button/src/button.component.d.ts +24 -0
  357. package/ui/button/src/split-button.component.d.ts +8 -0
  358. package/ui/calendar/{index.ts → index.d.ts} +1 -1
  359. package/ui/calendar/src/calendar.component.d.ts +38 -0
  360. package/ui/checkbox/{index.ts → index.d.ts} +2 -2
  361. package/ui/checkbox/src/check-box.component.d.ts +9 -0
  362. package/ui/checkbox/src/tri-state-checkbox.component.d.ts +9 -0
  363. package/ui/dxField/{index.ts → index.d.ts} +1 -1
  364. package/ui/dxField/src/dx-field.component.d.ts +9 -0
  365. package/ui/field/{index.ts → index.d.ts} +1 -1
  366. package/ui/field/src/field.component.d.ts +25 -0
  367. package/ui/fileUpload/{index.ts → index.d.ts} +1 -1
  368. package/ui/fileUpload/src/file-upload.component.d.ts +47 -0
  369. package/ui/form/index.d.ts +11 -0
  370. package/ui/form/src/form-submit-button.component.d.ts +14 -0
  371. package/ui/form/src/form.component.d.ts +8 -0
  372. package/ui/index.d.ts +1 -0
  373. package/ui/lib/{index.ts → index.d.ts} +11 -16
  374. package/ui/lib/src/form/form-error-message.component.d.ts +9 -0
  375. package/ui/lib/src/form/form-error-message.directive.d.ts +14 -0
  376. package/ui/lib/src/form/form-field-builder.d.ts +8 -0
  377. package/ui/lib/src/form/form-validation.d.ts +2 -0
  378. package/ui/lib/src/grid/flex-grid.directive.d.ts +6 -0
  379. package/ui/lib/src/input/baseInput.d.ts +7 -0
  380. package/ui/lib/src/input/common-input-validators.service.d.ts +20 -0
  381. package/ui/lib/src/input/dx-input-error-message.pipe.d.ts +11 -0
  382. package/ui/lib/src/input/input-disabled.directive.d.ts +9 -0
  383. package/ui/lib/src/input/input-error-message.pipe.d.ts +7 -0
  384. package/ui/lib/src/input/input-transforms.d.ts +5 -0
  385. package/ui/lib/src/input/value-accessor.directive.d.ts +9 -0
  386. package/ui/mask/{index.ts → index.d.ts} +1 -1
  387. package/ui/mask/src/mask.component.d.ts +21 -0
  388. package/ui/number/{index.ts → index.d.ts} +1 -1
  389. package/ui/number/src/number.component.d.ts +27 -0
  390. package/ui/overlayPanel/{index.ts → index.d.ts} +1 -1
  391. package/ui/overlayPanel/src/overlay-panel.component.d.ts +8 -0
  392. package/ui/panel/{index.ts → index.d.ts} +1 -1
  393. package/ui/panel/src/panel.component.d.ts +10 -0
  394. package/ui/password/{index.ts → index.d.ts} +1 -1
  395. package/ui/password/src/password.component.d.ts +11 -0
  396. package/ui/radioButton/{index.ts → index.d.ts} +1 -1
  397. package/ui/radioButton/src/radio-button.component.d.ts +20 -0
  398. package/ui/selectBox/{index.ts → index.d.ts} +1 -1
  399. package/ui/selectBox/src/interfaces.d.ts +32 -0
  400. package/ui/selectBox/src/select-box.component.d.ts +25 -0
  401. package/ui/switch/{index.ts → index.d.ts} +1 -1
  402. package/ui/switch/src/switch.component.d.ts +8 -0
  403. package/ui/table/index.d.ts +16 -0
  404. package/ui/table/src/i18n.d.ts +42 -0
  405. package/ui/table/src/table-column.component.d.ts +24 -0
  406. package/ui/table/src/table.component.d.ts +41 -0
  407. package/ui/tagBox/{index.ts → index.d.ts} +1 -1
  408. package/ui/tagBox/src/tag-box.component.d.ts +15 -0
  409. package/ui/text/{index.ts → index.d.ts} +1 -1
  410. package/ui/text/src/text.component.d.ts +17 -0
  411. package/ui/textArea/{index.ts → index.d.ts} +1 -1
  412. package/ui/textArea/src/text-area.component.d.ts +11 -0
  413. package/ui/toggle-button/index.d.ts +1 -0
  414. package/ui/toggle-button/src/toggle-button.component.d.ts +10 -0
  415. package/ui/tree/{index.ts → index.d.ts} +1 -1
  416. package/ui/tree/src/tree.component.d.ts +19 -0
  417. package/ui/treeTable/{index.ts → index.d.ts} +1 -1
  418. package/ui/treeTable/src/tree-table.component.d.ts +21 -0
  419. package/ui/value/{index.ts → index.d.ts} +1 -1
  420. package/ui/value/src/value.component.d.ts +13 -0
  421. package/util/block/{index.ts → index.d.ts} +1 -1
  422. package/util/block/src/block.d.ts +28 -0
  423. package/util/custom_pages/{index.ts → index.d.ts} +1 -1
  424. package/util/custom_pages/src/notFound.component.d.ts +5 -0
  425. package/util/index.d.ts +1 -0
  426. package/util/init-event/{index.ts → index.d.ts} +1 -1
  427. package/util/init-event/src/init-event.directive.d.ts +8 -0
  428. package/util/lib/{index.ts → index.d.ts} +3 -3
  429. package/util/lib/src/interfaces.d.ts +41 -0
  430. package/util/lib/src/module-router.d.ts +5 -0
  431. package/util/lib/src/types.d.ts +29 -0
  432. package/util/loaders/{index.ts → index.d.ts} +2 -2
  433. package/util/loaders/script/script.loader.service.d.ts +13 -0
  434. package/util/loaders/style/style.loader.service.d.ts +13 -0
  435. package/util/primitive-extensions/{index.ts → index.d.ts} +4 -4
  436. package/util/primitive-extensions/src/{boolean.extensions.ts → boolean.extensions.d.ts} +1 -1
  437. package/util/primitive-extensions/src/date.extensions.d.ts +8 -0
  438. package/util/primitive-extensions/src/number.extensions.d.ts +12 -0
  439. package/util/primitive-extensions/src/string.extensions.d.ts +11 -0
  440. package/util/pub-sub/{index.ts → index.d.ts} +1 -1
  441. package/util/pub-sub/src/pub-sub.service.d.ts +20 -0
  442. package/.eslintrc.json +0 -41
  443. package/boot/config/api/ng-package.json +0 -6
  444. package/boot/config/api/src/api.service.ts +0 -57
  445. package/boot/config/api/src/interfaces.ts +0 -13
  446. package/boot/config/apps/ng-package.json +0 -6
  447. package/boot/config/apps/src/apps.service.ts +0 -64
  448. package/boot/config/apps/src/interfaces.ts +0 -27
  449. package/boot/config/apps/src/showdowDOMWrapper.ts +0 -28
  450. package/boot/config/plugins/ng-package.json +0 -6
  451. package/boot/config/plugins/src/getNgZone.ts +0 -9
  452. package/boot/config/plugins/src/interfaces.ts +0 -11
  453. package/boot/config/plugins/src/plugins.service.ts +0 -82
  454. package/boot/host/ng-package.json +0 -6
  455. package/boot/host/src/app.component.ts +0 -27
  456. package/boot/host/src/bootstrap.ts +0 -61
  457. package/boot/index.ts +0 -1
  458. package/boot/mfe/ng-package.json +0 -6
  459. package/boot/mfe/src/app.component.ts +0 -57
  460. package/boot/mfe/src/appComponentLoader.ts +0 -4
  461. package/boot/mfe/src/bootstrap.ts +0 -78
  462. package/boot/mfe/src/loadStyles.ts +0 -19
  463. package/boot/ng-package.json +0 -6
  464. package/http/lib/enums.ts +0 -13
  465. package/http/lib/interfaces.ts +0 -38
  466. package/http/ng-package.json +0 -6
  467. package/http/src/httpBackend.ts +0 -12
  468. package/http/src/httpClient.ts +0 -20
  469. package/http/src/interceptor/state-machine.interceptor.ts +0 -9
  470. package/http/src/serviceBase.ts +0 -91
  471. package/http/src/serviceMockBase.ts +0 -12
  472. package/http/src/serviceRequest.ts +0 -26
  473. package/http/src/serviceStateMethods.ts +0 -155
  474. package/i18n/ng-package.json +0 -6
  475. package/i18n/src/folder-name-token.ts +0 -3
  476. package/i18n/src/i18n.module.ts +0 -11
  477. package/i18n/src/loader.ts +0 -16
  478. package/i18n/src/provideI18n.ts +0 -18
  479. package/i18n/src/provideScope.ts +0 -20
  480. package/keycloak/ng-package.json +0 -6
  481. package/keycloak/src/auth.guard.ts +0 -37
  482. package/keycloak/src/auth.interceptor.ts +0 -13
  483. package/keycloak/src/keycloak.manager.ts +0 -89
  484. package/ng-package.json +0 -14
  485. package/project.json +0 -39
  486. package/tsconfig.lib.json +0 -12
  487. package/tsconfig.lib.prod.json +0 -10
  488. package/tsconfig.spec.json +0 -9
  489. package/ui/autoComplete/ng-package.json +0 -6
  490. package/ui/autoComplete/src/auto-complete.component.html +0 -11
  491. package/ui/autoComplete/src/auto-complete.component.ts +0 -92
  492. package/ui/autoComplete/src/interfaces.ts +0 -30
  493. package/ui/badge/ng-package.json +0 -6
  494. package/ui/badge/src/badge.component.html +0 -3
  495. package/ui/badge/src/badge.component.ts +0 -19
  496. package/ui/button/ng-package.json +0 -6
  497. package/ui/button/src/button.component.html +0 -10
  498. package/ui/button/src/button.component.ts +0 -43
  499. package/ui/button/src/split-button.component.html +0 -2
  500. package/ui/button/src/split-button.component.ts +0 -17
  501. package/ui/calendar/ng-package.json +0 -6
  502. package/ui/calendar/src/calendar.component.html +0 -31
  503. package/ui/calendar/src/calendar.component.ts +0 -136
  504. package/ui/checkbox/ng-package.json +0 -6
  505. package/ui/checkbox/src/check-box.component.html +0 -9
  506. package/ui/checkbox/src/check-box.component.ts +0 -19
  507. package/ui/checkbox/src/tri-state-checkbox.component.html +0 -7
  508. package/ui/checkbox/src/tri-state-checkbox.component.ts +0 -20
  509. package/ui/dxField/ng-package.json +0 -6
  510. package/ui/dxField/src/dx-field.component.html +0 -8
  511. package/ui/dxField/src/dx-field.component.ts +0 -16
  512. package/ui/field/ng-package.json +0 -6
  513. package/ui/field/src/field.component.html +0 -22
  514. package/ui/field/src/field.component.ts +0 -46
  515. package/ui/fileUpload/ng-package.json +0 -6
  516. package/ui/fileUpload/src/file-upload.component.html +0 -38
  517. package/ui/fileUpload/src/file-upload.component.ts +0 -72
  518. package/ui/form/index.ts +0 -18
  519. package/ui/form/ng-package.json +0 -6
  520. package/ui/form/src/form-submit-button.component.html +0 -12
  521. package/ui/form/src/form-submit-button.component.ts +0 -36
  522. package/ui/form/src/form.component.ts +0 -20
  523. package/ui/index.ts +0 -1
  524. package/ui/lib/ng-package.json +0 -6
  525. package/ui/lib/src/form/form-error-message.component.ts +0 -25
  526. package/ui/lib/src/form/form-error-message.directive.ts +0 -32
  527. package/ui/lib/src/form/form-field-builder.ts +0 -31
  528. package/ui/lib/src/form/form-validation.ts +0 -14
  529. package/ui/lib/src/grid/flex-grid.directive.ts +0 -10
  530. package/ui/lib/src/input/baseInput.ts +0 -30
  531. package/ui/lib/src/input/common-input-validators.service.ts +0 -57
  532. package/ui/lib/src/input/dx-input-error-message.pipe.ts +0 -16
  533. package/ui/lib/src/input/input-disabled.directive.ts +0 -15
  534. package/ui/lib/src/input/input-error-message.pipe.ts +0 -39
  535. package/ui/lib/src/input/input-transforms.ts +0 -11
  536. package/ui/lib/src/input/value-accessor.directive.ts +0 -27
  537. package/ui/mask/ng-package.json +0 -6
  538. package/ui/mask/src/mask.component.css +0 -23
  539. package/ui/mask/src/mask.component.html +0 -17
  540. package/ui/mask/src/mask.component.ts +0 -34
  541. package/ui/ng-package.json +0 -6
  542. package/ui/number/ng-package.json +0 -6
  543. package/ui/number/src/number.component.html +0 -25
  544. package/ui/number/src/number.component.ts +0 -34
  545. package/ui/overlayPanel/ng-package.json +0 -6
  546. package/ui/overlayPanel/src/overlay-panel.component.html +0 -5
  547. package/ui/overlayPanel/src/overlay-panel.component.ts +0 -16
  548. package/ui/panel/ng-package.json +0 -6
  549. package/ui/panel/src/panel.component.css +0 -25
  550. package/ui/panel/src/panel.component.html +0 -38
  551. package/ui/panel/src/panel.component.ts +0 -24
  552. package/ui/password/ng-package.json +0 -6
  553. package/ui/password/src/password.component.html +0 -24
  554. package/ui/password/src/password.component.ts +0 -22
  555. package/ui/radioButton/ng-package.json +0 -6
  556. package/ui/radioButton/src/radio-button.component.html +0 -17
  557. package/ui/radioButton/src/radio-button.component.ts +0 -36
  558. package/ui/selectBox/ng-package.json +0 -6
  559. package/ui/selectBox/src/interfaces.ts +0 -41
  560. package/ui/selectBox/src/select-box.component.html +0 -17
  561. package/ui/selectBox/src/select-box.component.ts +0 -69
  562. package/ui/switch/ng-package.json +0 -6
  563. package/ui/switch/src/switch.component.html +0 -7
  564. package/ui/switch/src/switch.component.ts +0 -18
  565. package/ui/table/index.ts +0 -34
  566. package/ui/table/ng-package.json +0 -6
  567. package/ui/table/src/i18n.ts +0 -55
  568. package/ui/table/src/table-column.component.ts +0 -28
  569. package/ui/table/src/table.component.html +0 -136
  570. package/ui/table/src/table.component.ts +0 -99
  571. package/ui/tagBox/ng-package.json +0 -6
  572. package/ui/tagBox/src/tag-box.component.html +0 -21
  573. package/ui/tagBox/src/tag-box.component.ts +0 -53
  574. package/ui/text/ng-package.json +0 -6
  575. package/ui/text/src/text.component.html +0 -21
  576. package/ui/text/src/text.component.ts +0 -47
  577. package/ui/textArea/ng-package.json +0 -6
  578. package/ui/textArea/src/text-area.component.html +0 -11
  579. package/ui/textArea/src/text-area.component.ts +0 -21
  580. package/ui/toggle-button/index.ts +0 -1
  581. package/ui/toggle-button/ng-package.json +0 -6
  582. package/ui/toggle-button/src/toggle-button.component.html +0 -13
  583. package/ui/toggle-button/src/toggle-button.component.scss +0 -19
  584. package/ui/toggle-button/src/toggle-button.component.ts +0 -22
  585. package/ui/tree/ng-package.json +0 -6
  586. package/ui/tree/src/tree.component.html +0 -16
  587. package/ui/tree/src/tree.component.ts +0 -52
  588. package/ui/treeTable/ng-package.json +0 -6
  589. package/ui/treeTable/src/tree-table.component.html +0 -88
  590. package/ui/treeTable/src/tree-table.component.ts +0 -57
  591. package/ui/value/ng-package.json +0 -6
  592. package/ui/value/src/value.component.html +0 -19
  593. package/ui/value/src/value.component.ts +0 -39
  594. package/util/block/ng-package.json +0 -6
  595. package/util/block/src/block.ts +0 -65
  596. package/util/custom_pages/ng-package.json +0 -6
  597. package/util/custom_pages/src/notFound.component.ts +0 -34
  598. package/util/index.ts +0 -1
  599. package/util/init-event/ng-package.json +0 -6
  600. package/util/init-event/src/init-event.directive.ts +0 -13
  601. package/util/lib/ng-package.json +0 -6
  602. package/util/lib/src/interfaces.ts +0 -44
  603. package/util/lib/src/module-router.ts +0 -10
  604. package/util/lib/src/types.ts +0 -49
  605. package/util/loaders/ng-package.json +0 -6
  606. package/util/loaders/script/script.loader.service.ts +0 -69
  607. package/util/loaders/style/style.loader.service.ts +0 -69
  608. package/util/ng-package.json +0 -6
  609. package/util/primitive-extensions/ng-package.json +0 -6
  610. package/util/primitive-extensions/src/date.extensions.ts +0 -135
  611. package/util/primitive-extensions/src/number.extensions.ts +0 -57
  612. package/util/primitive-extensions/src/string.extensions.ts +0 -39
  613. package/util/pub-sub/ng-package.json +0 -6
  614. package/util/pub-sub/src/pub-sub.service.ts +0 -34
  615. /package/boot/config/{api/src/api.sample.json → api.sample.json} +0 -0
  616. /package/{util/block/src → scripts/util}/blockui.min.js +0 -0
  617. /package/{ui/styles → styles/ui}/ui.common.scss +0 -0
  618. /package/{util/block/src → styles/util}/blockui.css +0 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"aril-boot-config-plugins.mjs","sources":["../../projects/aril/boot/config/plugins/src/getNgZone.ts","../../projects/aril/boot/config/plugins/src/interfaces.ts","../../projects/aril/boot/config/plugins/src/plugins.service.ts","../../projects/aril/boot/config/plugins/aril-boot-config-plugins.ts"],"sourcesContent":["import { NgZone } from '@angular/core';\r\n\r\nexport const getNgZone = () => {\r\n\tif ((<any>globalThis).hostZone) {\r\n\t\treturn { provide: NgZone, useValue: (<any>globalThis).hostZone };\r\n\t} else if ((<any>globalThis).mfeZone) {\r\n\t\treturn { provide: NgZone, useValue: (<any>globalThis).mfeZone };\r\n\t} else return [];\r\n};\r\n","import { LoadRemoteModuleScriptOptions } from '@angular-architects/module-federation';\r\n\r\ninterface PluginItem {\r\n\toptions: LoadRemoteModuleScriptOptions & { elementName: string };\r\n\tprops: { [key in string]: any };\r\n\tevents: { [key in string]: Function };\r\n}\r\n\r\nexport type PluginConfigs = { [key in string]: PluginItem };\r\n\r\nexport class FactoryClass {}\r\n","import { HttpClient, provideHttpClient, withInterceptors } from '@angular/common/http';\r\nimport { APP_INITIALIZER, ApplicationConfig, Type, importProvidersFrom, isDevMode } from '@angular/core';\r\nimport { createCustomElement } from '@angular/elements';\r\nimport { createApplication } from '@angular/platform-browser';\r\nimport { provideAnimations } from '@angular/platform-browser/animations';\r\n\r\nimport { ConfirmationService, MessageService } from 'primeng/api';\r\nimport { ConfirmDialogModule } from 'primeng/confirmdialog';\r\nimport { ConfirmPopupModule } from 'primeng/confirmpopup';\r\nimport { DialogModule } from 'primeng/dialog';\r\nimport { MessagesModule } from 'primeng/messages';\r\nimport { ToastModule } from 'primeng/toast';\r\n\r\nimport { KeycloakAngularModule } from 'keycloak-angular';\r\nimport { Observable, catchError, of, tap } from 'rxjs';\r\n\r\nimport { API_CONFIGS } from 'aril/boot/config/api';\r\nimport { i18nFolderName, i18nModule } from 'aril/i18n';\r\nimport { authInterceptor } from 'aril/keycloak';\r\n\r\nimport { getNgZone } from './getNgZone';\r\nimport { FactoryClass, PluginConfigs } from './interfaces';\r\n\r\nexport const PLUGINS = new FactoryClass() as FactoryClass & PluginConfigs;\r\n\r\nexport function loadPlugins(httpBackend: { httpClient: HttpClient }): () => Observable<any> {\r\n\treturn () => {\r\n\t\treturn httpBackend.httpClient\r\n\t\t\t.get<PluginConfigs>(isDevMode() ? './assets/local-configs/plugin.local.json' : './assets/plugin.json')\r\n\t\t\t.pipe(\r\n\t\t\t\ttap((configs) => {\r\n\t\t\t\t\tObject.assign(PLUGINS, { ...configs });\r\n\t\t\t\t}),\r\n\t\t\t\tcatchError((err) => {\r\n\t\t\t\t\tconsole.log('Error Plugins Loading', err);\r\n\t\t\t\t\treturn of();\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t};\r\n}\r\n\r\nexport async function bootPlugin(selector: string, component: Type<any>) {\r\n\tif (customElements.get(selector)) return;\r\n\r\n\tconst config: ApplicationConfig = {\r\n\t\tproviders: [\r\n\t\t\tprovideAnimations(),\r\n\t\t\tprovideHttpClient(withInterceptors([authInterceptor])),\r\n\t\t\timportProvidersFrom(\r\n\t\t\t\ti18nModule,\r\n\t\t\t\tKeycloakAngularModule,\r\n\t\t\t\tConfirmDialogModule,\r\n\t\t\t\tConfirmPopupModule,\r\n\t\t\t\tDialogModule,\r\n\t\t\t\tMessagesModule,\r\n\t\t\t\tToastModule\r\n\t\t\t),\r\n\t\t\tgetNgZone(),\r\n\t\t\tMessageService,\r\n\t\t\tConfirmationService,\r\n\t\t\t{\r\n\t\t\t\tprovide: APP_INITIALIZER,\r\n\t\t\t\tuseFactory: () => {\r\n\t\t\t\t\treturn () => {\r\n\t\t\t\t\t\tif (isDevMode()) API_CONFIGS.api = (<any>globalThis).hostAPI;\r\n\t\t\t\t\t\telse API_CONFIGS.api = window.location.origin;\r\n\t\t\t\t\t};\r\n\t\t\t\t},\r\n\t\t\t\tmulti: true\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tprovide: i18nFolderName,\r\n\t\t\t\tuseValue: 'host'\r\n\t\t\t}\r\n\t\t]\r\n\t};\r\n\r\n\tconst appRef = await createApplication(config);\r\n\tconst plugin = createCustomElement(component, { injector: appRef.injector });\r\n\r\n\tcustomElements.define(selector, plugin);\r\n}\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAEO,MAAM,SAAS,GAAG,MAAK;AAC7B,IAAA,IAAU,UAAW,CAAC,QAAQ,EAAE;QAC/B,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAQ,UAAW,CAAC,QAAQ,EAAE,CAAC;KACjE;AAAM,SAAA,IAAU,UAAW,CAAC,OAAO,EAAE;QACrC,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAQ,UAAW,CAAC,OAAO,EAAE,CAAC;KAChE;;AAAM,QAAA,OAAO,EAAE,CAAC;AAClB;;MCEa,YAAY,CAAA;AAAG;;ACaf,MAAA,OAAO,GAAG,IAAI,YAAY,GAAmC;AAEpE,SAAU,WAAW,CAAC,WAAuC,EAAA;AAClE,IAAA,OAAO,MAAK;QACX,OAAO,WAAW,CAAC,UAAU;aAC3B,GAAG,CAAgB,SAAS,EAAE,GAAG,0CAA0C,GAAG,sBAAsB,CAAC;AACrG,aAAA,IAAI,CACJ,GAAG,CAAC,CAAC,OAAO,KAAI;YACf,MAAM,CAAC,MAAM,CAAC,OAAO,EAAE,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;AACxC,SAAC,CAAC,EACF,UAAU,CAAC,CAAC,GAAG,KAAI;AAClB,YAAA,OAAO,CAAC,GAAG,CAAC,uBAAuB,EAAE,GAAG,CAAC,CAAC;YAC1C,OAAO,EAAE,EAAE,CAAC;SACZ,CAAC,CACF,CAAC;AACJ,KAAC,CAAC;AACH,CAAC;AAEM,eAAe,UAAU,CAAC,QAAgB,EAAE,SAAoB,EAAA;AACtE,IAAA,IAAI,cAAc,CAAC,GAAG,CAAC,QAAQ,CAAC;QAAE,OAAO;AAEzC,IAAA,MAAM,MAAM,GAAsB;AACjC,QAAA,SAAS,EAAE;AACV,YAAA,iBAAiB,EAAE;AACnB,YAAA,iBAAiB,CAAC,gBAAgB,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC;AACtD,YAAA,mBAAmB,CAClB,UAAU,EACV,qBAAqB,EACrB,mBAAmB,EACnB,kBAAkB,EAClB,YAAY,EACZ,cAAc,EACd,WAAW,CACX;AACD,YAAA,SAAS,EAAE;YACX,cAAc;YACd,mBAAmB;AACnB,YAAA;AACC,gBAAA,OAAO,EAAE,eAAe;gBACxB,UAAU,EAAE,MAAK;AAChB,oBAAA,OAAO,MAAK;AACX,wBAAA,IAAI,SAAS,EAAE;AAAE,4BAAA,WAAW,CAAC,GAAG,GAAS,UAAW,CAAC,OAAO,CAAC;;4BACxD,WAAW,CAAC,GAAG,GAAG,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC;AAC/C,qBAAC,CAAC;iBACF;AACD,gBAAA,KAAK,EAAE,IAAI;AACX,aAAA;AACD,YAAA;AACC,gBAAA,OAAO,EAAE,cAAc;AACvB,gBAAA,QAAQ,EAAE,MAAM;AAChB,aAAA;AACD,SAAA;KACD,CAAC;AAEF,IAAA,MAAM,MAAM,GAAG,MAAM,iBAAiB,CAAC,MAAM,CAAC,CAAC;AAC/C,IAAA,MAAM,MAAM,GAAG,mBAAmB,CAAC,SAAS,EAAE,EAAE,QAAQ,EAAE,MAAM,CAAC,QAAQ,EAAE,CAAC,CAAC;AAE7E,IAAA,cAAc,CAAC,MAAM,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC;AACzC;;ACjFA;;AAEG;;;;"}
@@ -0,0 +1,86 @@
1
+ import { provideHttpClient, withInterceptors } from '@angular/common/http';
2
+ import * as i0 from '@angular/core';
3
+ import { inject, NgZone, Component, importProvidersFrom, APP_INITIALIZER } from '@angular/core';
4
+ import { bootstrapApplication } from '@angular/platform-browser';
5
+ import { provideAnimations } from '@angular/platform-browser/animations';
6
+ import * as i1 from '@angular/router';
7
+ import { RouterOutlet, provideRouter, withComponentInputBinding, withHashLocation, withViewTransitions } from '@angular/router';
8
+ import { MessageService, ConfirmationService } from 'primeng/api';
9
+ import { KeycloakAngularModule } from 'keycloak-angular';
10
+ import { loadApiConfigs } from 'aril/boot/config/api';
11
+ import { MicroAppService } from 'aril/boot/config/apps';
12
+ import { loadPlugins } from 'aril/boot/config/plugins';
13
+ import { stateMachineInterceptor, HttpBackendService } from 'aril/http';
14
+ import { i18nModule, i18nFolderName } from 'aril/i18n';
15
+ import { authInterceptor, KeycloakManager } from 'aril/keycloak';
16
+ import { AppLayoutComponent } from 'aril/theme/layout';
17
+ import * as i2 from 'aril/util/pub-sub';
18
+
19
+ /* eslint-disable @typescript-eslint/no-explicit-any */
20
+ class AppComponent {
21
+ constructor(router, pubSubService) {
22
+ globalThis.hostZone = inject(NgZone);
23
+ globalThis.isHostMode = true;
24
+ pubSubService.subscribe('navigateBetweenApps', (data) => {
25
+ router.navigateByUrl(data.path);
26
+ pubSubService.publish({
27
+ name: 'navigateInApps',
28
+ data: data
29
+ });
30
+ });
31
+ }
32
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: AppComponent, deps: [{ token: i1.Router }, { token: i2.PubSubService }], target: i0.ɵɵFactoryTarget.Component }); }
33
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.1.2", type: AppComponent, isStandalone: true, selector: "aril-root", ngImport: i0, template: ` <app-layout></app-layout> `, isInline: true, dependencies: [{ kind: "component", type: AppLayoutComponent, selector: "app-layout" }] }); }
34
+ }
35
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: AppComponent, decorators: [{
36
+ type: Component,
37
+ args: [{
38
+ standalone: true,
39
+ selector: 'aril-root',
40
+ template: ` <app-layout></app-layout> `,
41
+ imports: [RouterOutlet, AppLayoutComponent]
42
+ }]
43
+ }], ctorParameters: () => [{ type: i1.Router }, { type: i2.PubSubService }] });
44
+
45
+ const boot = (routes) => {
46
+ const appConfig = {
47
+ providers: [
48
+ provideAnimations(),
49
+ provideHttpClient(withInterceptors([authInterceptor, stateMachineInterceptor])),
50
+ provideRouter(routes, withComponentInputBinding(), withHashLocation(), withViewTransitions()),
51
+ importProvidersFrom(i18nModule, KeycloakAngularModule),
52
+ MessageService,
53
+ ConfirmationService,
54
+ {
55
+ provide: APP_INITIALIZER,
56
+ useFactory: loadApiConfigs,
57
+ multi: true,
58
+ deps: [HttpBackendService, KeycloakManager, i18nFolderName]
59
+ },
60
+ {
61
+ provide: APP_INITIALIZER,
62
+ useFactory: (mAppService, httpBackend) => mAppService.init(httpBackend),
63
+ multi: true,
64
+ deps: [MicroAppService, HttpBackendService]
65
+ },
66
+ {
67
+ provide: APP_INITIALIZER,
68
+ useFactory: loadPlugins,
69
+ multi: true,
70
+ deps: [HttpBackendService]
71
+ },
72
+ {
73
+ provide: i18nFolderName,
74
+ useValue: 'host'
75
+ }
76
+ ]
77
+ };
78
+ bootstrapApplication(AppComponent, appConfig).catch((err) => console.error(err));
79
+ };
80
+
81
+ /**
82
+ * Generated bundle index. Do not edit.
83
+ */
84
+
85
+ export { boot };
86
+ //# sourceMappingURL=aril-boot-host.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"aril-boot-host.mjs","sources":["../../projects/aril/boot/host/src/app.component.ts","../../projects/aril/boot/host/src/bootstrap.ts","../../projects/aril/boot/host/aril-boot-host.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-explicit-any */\r\nimport { Component, NgZone, inject } from '@angular/core';\r\nimport { Router, RouterOutlet } from '@angular/router';\r\n\r\nimport { AppLayoutComponent } from 'aril/theme/layout';\r\nimport { PubSubService } from 'aril/util/pub-sub';\r\n\r\n@Component({\r\n\tstandalone: true,\r\n\tselector: 'aril-root',\r\n\ttemplate: ` <app-layout></app-layout> `,\r\n\timports: [RouterOutlet, AppLayoutComponent]\r\n})\r\nexport class AppComponent {\r\n\tconstructor(router: Router, pubSubService: PubSubService) {\r\n\t\t(<any>globalThis).hostZone = inject(NgZone);\r\n\t\t(<any>globalThis).isHostMode = true;\r\n\r\n\t\tpubSubService.subscribe('navigateBetweenApps', (data: any) => {\r\n\t\t\trouter.navigateByUrl(data.path);\r\n\t\t\tpubSubService.publish({\r\n\t\t\t\tname: 'navigateInApps',\r\n\t\t\t\tdata: data\r\n\t\t\t});\r\n\t\t});\r\n\t}\r\n}\r\n","import { provideHttpClient, withInterceptors } from '@angular/common/http';\r\nimport { APP_INITIALIZER, ApplicationConfig, importProvidersFrom } from '@angular/core';\r\nimport { bootstrapApplication } from '@angular/platform-browser';\r\nimport { provideAnimations } from '@angular/platform-browser/animations';\r\nimport {\r\n\tRoutes,\r\n\tprovideRouter,\r\n\twithComponentInputBinding,\r\n\twithHashLocation,\r\n\twithViewTransitions\r\n} from '@angular/router';\r\n\r\nimport { ConfirmationService, MessageService } from 'primeng/api';\r\n\r\nimport { KeycloakAngularModule } from 'keycloak-angular';\r\n\r\nimport { loadApiConfigs } from 'aril/boot/config/api';\r\nimport { MicroAppService } from 'aril/boot/config/apps';\r\nimport { loadPlugins } from 'aril/boot/config/plugins';\r\nimport { HttpBackendService, stateMachineInterceptor } from 'aril/http';\r\nimport { i18nFolderName, i18nModule } from 'aril/i18n';\r\nimport { KeycloakManager, authInterceptor } from 'aril/keycloak';\r\n\r\nimport { AppComponent } from './app.component';\r\n\r\nexport const boot = (routes: Routes) => {\r\n\tconst appConfig: ApplicationConfig = {\r\n\t\tproviders: [\r\n\t\t\tprovideAnimations(),\r\n\t\t\tprovideHttpClient(withInterceptors([authInterceptor, stateMachineInterceptor])),\r\n\t\t\tprovideRouter(routes, withComponentInputBinding(), withHashLocation(), withViewTransitions()),\r\n\t\t\timportProvidersFrom(i18nModule, KeycloakAngularModule),\r\n\t\t\tMessageService,\r\n\t\t\tConfirmationService,\r\n\t\t\t{\r\n\t\t\t\tprovide: APP_INITIALIZER,\r\n\t\t\t\tuseFactory: loadApiConfigs,\r\n\t\t\t\tmulti: true,\r\n\t\t\t\tdeps: [HttpBackendService, KeycloakManager, i18nFolderName]\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tprovide: APP_INITIALIZER,\r\n\t\t\t\tuseFactory: (mAppService: MicroAppService, httpBackend: HttpBackendService) => mAppService.init(httpBackend),\r\n\t\t\t\tmulti: true,\r\n\t\t\t\tdeps: [MicroAppService, HttpBackendService]\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tprovide: APP_INITIALIZER,\r\n\t\t\t\tuseFactory: loadPlugins,\r\n\t\t\t\tmulti: true,\r\n\t\t\t\tdeps: [HttpBackendService]\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tprovide: i18nFolderName,\r\n\t\t\t\tuseValue: 'host'\r\n\t\t\t}\r\n\t\t]\r\n\t};\r\n\r\n\tbootstrapApplication(AppComponent, appConfig).catch((err) => console.error(err));\r\n};\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA;MAaa,YAAY,CAAA;IACxB,WAAY,CAAA,MAAc,EAAE,aAA4B,EAAA;AACjD,QAAA,UAAW,CAAC,QAAQ,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC;AACtC,QAAA,UAAW,CAAC,UAAU,GAAG,IAAI,CAAC;QAEpC,aAAa,CAAC,SAAS,CAAC,qBAAqB,EAAE,CAAC,IAAS,KAAI;AAC5D,YAAA,MAAM,CAAC,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;YAChC,aAAa,CAAC,OAAO,CAAC;AACrB,gBAAA,IAAI,EAAE,gBAAgB;AACtB,gBAAA,IAAI,EAAE,IAAI;AACV,aAAA,CAAC,CAAC;AACJ,SAAC,CAAC,CAAC;KACH;8GAZW,YAAY,EAAA,IAAA,EAAA,CAAA,EAAA,KAAA,EAAA,EAAA,CAAA,MAAA,EAAA,EAAA,EAAA,KAAA,EAAA,EAAA,CAAA,aAAA,EAAA,CAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA,EAAA;kGAAZ,YAAY,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,WAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EAHd,CAA6B,2BAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EACf,kBAAkB,EAAA,QAAA,EAAA,YAAA,EAAA,CAAA,EAAA,CAAA,CAAA,EAAA;;2FAE9B,YAAY,EAAA,UAAA,EAAA,CAAA;kBANxB,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACV,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,QAAQ,EAAE,WAAW;AACrB,oBAAA,QAAQ,EAAE,CAA6B,2BAAA,CAAA;AACvC,oBAAA,OAAO,EAAE,CAAC,YAAY,EAAE,kBAAkB,CAAC;AAC3C,iBAAA,CAAA;;;ACaY,MAAA,IAAI,GAAG,CAAC,MAAc,KAAI;AACtC,IAAA,MAAM,SAAS,GAAsB;AACpC,QAAA,SAAS,EAAE;AACV,YAAA,iBAAiB,EAAE;YACnB,iBAAiB,CAAC,gBAAgB,CAAC,CAAC,eAAe,EAAE,uBAAuB,CAAC,CAAC,CAAC;YAC/E,aAAa,CAAC,MAAM,EAAE,yBAAyB,EAAE,EAAE,gBAAgB,EAAE,EAAE,mBAAmB,EAAE,CAAC;AAC7F,YAAA,mBAAmB,CAAC,UAAU,EAAE,qBAAqB,CAAC;YACtD,cAAc;YACd,mBAAmB;AACnB,YAAA;AACC,gBAAA,OAAO,EAAE,eAAe;AACxB,gBAAA,UAAU,EAAE,cAAc;AAC1B,gBAAA,KAAK,EAAE,IAAI;AACX,gBAAA,IAAI,EAAE,CAAC,kBAAkB,EAAE,eAAe,EAAE,cAAc,CAAC;AAC3D,aAAA;AACD,YAAA;AACC,gBAAA,OAAO,EAAE,eAAe;AACxB,gBAAA,UAAU,EAAE,CAAC,WAA4B,EAAE,WAA+B,KAAK,WAAW,CAAC,IAAI,CAAC,WAAW,CAAC;AAC5G,gBAAA,KAAK,EAAE,IAAI;AACX,gBAAA,IAAI,EAAE,CAAC,eAAe,EAAE,kBAAkB,CAAC;AAC3C,aAAA;AACD,YAAA;AACC,gBAAA,OAAO,EAAE,eAAe;AACxB,gBAAA,UAAU,EAAE,WAAW;AACvB,gBAAA,KAAK,EAAE,IAAI;gBACX,IAAI,EAAE,CAAC,kBAAkB,CAAC;AAC1B,aAAA;AACD,YAAA;AACC,gBAAA,OAAO,EAAE,cAAc;AACvB,gBAAA,QAAQ,EAAE,MAAM;AAChB,aAAA;AACD,SAAA;KACD,CAAC;IAEF,oBAAoB,CAAC,YAAY,EAAE,SAAS,CAAC,CAAC,KAAK,CAAC,CAAC,GAAG,KAAK,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC;AAClF;;AC5DA;;AAEG;;;;"}
@@ -0,0 +1,75 @@
1
+ import * as i0 from '@angular/core';
2
+ import { inject, NgZone, Component } from '@angular/core';
3
+ import * as i1 from '@angular/router';
4
+ import { RouterOutlet } from '@angular/router';
5
+ import { ModuleFederationToolsModule } from '@angular-architects/module-federation-tools';
6
+ import * as i3 from 'aril/theme/layout';
7
+ import { AppLayoutComponent, MFELayoutComponent } from 'aril/theme/layout';
8
+ import { a as appName, m as menuItems } from './aril-boot-mfe-aril-boot-mfe-PwAGdNZE.mjs';
9
+ import * as i2 from 'aril/util/pub-sub';
10
+ import '@angular/common/http';
11
+ import '@angular/elements';
12
+ import '@angular/platform-browser';
13
+ import '@angular/platform-browser/animations';
14
+ import 'primeng/api';
15
+ import 'keycloak-angular';
16
+ import 'aril/boot/config/api';
17
+ import 'aril/boot/config/plugins';
18
+ import 'aril/http';
19
+ import 'aril/i18n';
20
+ import 'aril/keycloak';
21
+ import 'aril/util/loaders';
22
+
23
+ /* eslint-disable @typescript-eslint/no-explicit-any */
24
+ class AppComponent {
25
+ constructor(router, pubSubService, appMenuService) {
26
+ this.router = router;
27
+ this.isHostMode = globalThis.isHostMode;
28
+ if (!this.isHostMode && !globalThis.mfeZone) {
29
+ globalThis.mfeZone = inject(NgZone);
30
+ }
31
+ this.connectRouter();
32
+ globalThis.activeMF = appName;
33
+ pubSubService.subscribe('navigateInApps', (data) => {
34
+ if (data.path.startsWith(appName, 1))
35
+ router.navigateByUrl(data.path);
36
+ });
37
+ if (this.isHostMode) {
38
+ appMenuService.subMenuConfig.set({ items: structuredClone(menuItems), prefix: appName });
39
+ }
40
+ else {
41
+ appMenuService.menuConfig.set({ items: structuredClone(menuItems), prefix: appName });
42
+ }
43
+ }
44
+ connectRouter() {
45
+ this.router.initialNavigation();
46
+ window.addEventListener('popstate', () => {
47
+ this.router.initialNavigation();
48
+ });
49
+ }
50
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: AppComponent, deps: [{ token: i1.Router }, { token: i2.PubSubService }, { token: i3.AppMenuService }], target: i0.ɵɵFactoryTarget.Component }); }
51
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.1.2", type: AppComponent, isStandalone: true, selector: "ng-component", ngImport: i0, template: `
52
+ @if (isHostMode) {
53
+ <mfe-layout></mfe-layout>
54
+ } @else {
55
+ <app-layout></app-layout>
56
+ }
57
+ `, isInline: true, dependencies: [{ kind: "ngmodule", type: ModuleFederationToolsModule }, { kind: "component", type: AppLayoutComponent, selector: "app-layout" }, { kind: "component", type: MFELayoutComponent, selector: "mfe-layout" }] }); }
58
+ }
59
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: AppComponent, decorators: [{
60
+ type: Component,
61
+ args: [{
62
+ standalone: true,
63
+ template: `
64
+ @if (isHostMode) {
65
+ <mfe-layout></mfe-layout>
66
+ } @else {
67
+ <app-layout></app-layout>
68
+ }
69
+ `,
70
+ imports: [RouterOutlet, ModuleFederationToolsModule, AppLayoutComponent, MFELayoutComponent]
71
+ }]
72
+ }], ctorParameters: () => [{ type: i1.Router }, { type: i2.PubSubService }, { type: i3.AppMenuService }] });
73
+
74
+ export { AppComponent };
75
+ //# sourceMappingURL=aril-boot-mfe-app.component-WWRmTfs5.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"aril-boot-mfe-app.component-WWRmTfs5.mjs","sources":["../../projects/aril/boot/mfe/src/app.component.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-explicit-any */\r\nimport { Component, NgZone, inject } from '@angular/core';\r\nimport { Router, RouterOutlet } from '@angular/router';\r\n\r\nimport { ModuleFederationToolsModule } from '@angular-architects/module-federation-tools';\r\n\r\nimport { AppLayoutComponent, AppMenuService, MFELayoutComponent } from 'aril/theme/layout';\r\nimport { PubSubService } from 'aril/util/pub-sub';\r\n\r\nimport { appName, menuItems } from './bootstrap';\r\n\r\n@Component({\r\n\tstandalone: true,\r\n\ttemplate: `\r\n\t\t@if (isHostMode) {\r\n\t\t\t<mfe-layout></mfe-layout>\r\n\t\t} @else {\r\n\t\t\t<app-layout></app-layout>\r\n\t\t}\r\n\t`,\r\n\timports: [RouterOutlet, ModuleFederationToolsModule, AppLayoutComponent, MFELayoutComponent]\r\n})\r\nexport class AppComponent {\r\n\tconstructor(\r\n\t\tprivate router: Router,\r\n\t\tpubSubService: PubSubService,\r\n\t\tappMenuService: AppMenuService\r\n\t) {\r\n\t\tif (!this.isHostMode && !(<any>globalThis).mfeZone) {\r\n\t\t\t(<any>globalThis).mfeZone = inject(NgZone);\r\n\t\t}\r\n\r\n\t\tthis.connectRouter();\r\n\r\n\t\t(<any>globalThis).activeMF = appName;\r\n\r\n\t\tpubSubService.subscribe('navigateInApps', (data: any) => {\r\n\t\t\tif (data.path.startsWith(appName, 1)) router.navigateByUrl(data.path);\r\n\t\t});\r\n\r\n\t\tif (this.isHostMode) {\r\n\t\t\tappMenuService.subMenuConfig.set({ items: structuredClone(menuItems), prefix: appName });\r\n\t\t} else {\r\n\t\t\tappMenuService.menuConfig.set({ items: structuredClone(menuItems), prefix: appName });\r\n\t\t}\r\n\t}\r\n\r\n\tisHostMode = (<any>globalThis).isHostMode;\r\n\r\n\tconnectRouter() {\r\n\t\tthis.router.initialNavigation();\r\n\r\n\t\twindow.addEventListener('popstate', () => {\r\n\t\t\tthis.router.initialNavigation();\r\n\t\t});\r\n\t}\r\n}\r\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA;MAsBa,YAAY,CAAA;AACxB,IAAA,WAAA,CACS,MAAc,EACtB,aAA4B,EAC5B,cAA8B,EAAA;QAFtB,IAAM,CAAA,MAAA,GAAN,MAAM,CAAQ;AAuBvB,QAAA,IAAA,CAAA,UAAU,GAAS,UAAW,CAAC,UAAU,CAAC;QAnBzC,IAAI,CAAC,IAAI,CAAC,UAAU,IAAI,CAAO,UAAW,CAAC,OAAO,EAAE;AAC7C,YAAA,UAAW,CAAC,OAAO,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC;SAC3C;QAED,IAAI,CAAC,aAAa,EAAE,CAAC;AAEf,QAAA,UAAW,CAAC,QAAQ,GAAG,OAAO,CAAC;QAErC,aAAa,CAAC,SAAS,CAAC,gBAAgB,EAAE,CAAC,IAAS,KAAI;YACvD,IAAI,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,OAAO,EAAE,CAAC,CAAC;AAAE,gBAAA,MAAM,CAAC,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AACvE,SAAC,CAAC,CAAC;AAEH,QAAA,IAAI,IAAI,CAAC,UAAU,EAAE;AACpB,YAAA,cAAc,CAAC,aAAa,CAAC,GAAG,CAAC,EAAE,KAAK,EAAE,eAAe,CAAC,SAAS,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,CAAC;SACzF;aAAM;AACN,YAAA,cAAc,CAAC,UAAU,CAAC,GAAG,CAAC,EAAE,KAAK,EAAE,eAAe,CAAC,SAAS,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,CAAC;SACtF;KACD;IAID,aAAa,GAAA;AACZ,QAAA,IAAI,CAAC,MAAM,CAAC,iBAAiB,EAAE,CAAC;AAEhC,QAAA,MAAM,CAAC,gBAAgB,CAAC,UAAU,EAAE,MAAK;AACxC,YAAA,IAAI,CAAC,MAAM,CAAC,iBAAiB,EAAE,CAAC;AACjC,SAAC,CAAC,CAAC;KACH;8GAjCW,YAAY,EAAA,IAAA,EAAA,CAAA,EAAA,KAAA,EAAA,EAAA,CAAA,MAAA,EAAA,EAAA,EAAA,KAAA,EAAA,EAAA,CAAA,aAAA,EAAA,EAAA,EAAA,KAAA,EAAA,EAAA,CAAA,cAAA,EAAA,CAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA,EAAA;AAAZ,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,YAAY,EATd,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,cAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EAAA,CAAA;;;;;;AAMT,CAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EACuB,2BAA2B,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAE,kBAAkB,EAAA,QAAA,EAAA,YAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAE,kBAAkB,EAAA,QAAA,EAAA,YAAA,EAAA,CAAA,EAAA,CAAA,CAAA,EAAA;;2FAE/E,YAAY,EAAA,UAAA,EAAA,CAAA;kBAXxB,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACV,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,QAAQ,EAAE,CAAA;;;;;;AAMT,CAAA,CAAA;oBACD,OAAO,EAAE,CAAC,YAAY,EAAE,2BAA2B,EAAE,kBAAkB,EAAE,kBAAkB,CAAC;AAC5F,iBAAA,CAAA;;;;;"}
@@ -0,0 +1,90 @@
1
+ import { provideHttpClient, withInterceptors } from '@angular/common/http';
2
+ import { importProvidersFrom, APP_INITIALIZER } from '@angular/core';
3
+ import { createCustomElement } from '@angular/elements';
4
+ import { createApplication } from '@angular/platform-browser';
5
+ import { provideAnimations } from '@angular/platform-browser/animations';
6
+ import { provideRouter, withComponentInputBinding, withHashLocation, withViewTransitions } from '@angular/router';
7
+ import { MessageService, ConfirmationService } from 'primeng/api';
8
+ import { KeycloakAngularModule } from 'keycloak-angular';
9
+ import { setApiConfigOnMFEMode, loadApiConfigs } from 'aril/boot/config/api';
10
+ import { getNgZone, loadPlugins } from 'aril/boot/config/plugins';
11
+ import { stateMachineInterceptor, HttpBackendService } from 'aril/http';
12
+ import { i18nModule, i18nFolderName } from 'aril/i18n';
13
+ import { authInterceptor, KeycloakManager } from 'aril/keycloak';
14
+ import { StyleLoaderService } from 'aril/util/loaders';
15
+
16
+ const appComponentLoader = async () => {
17
+ const { AppComponent } = await import('./aril-boot-mfe-app.component-WWRmTfs5.mjs');
18
+ return AppComponent;
19
+ };
20
+
21
+ function loadStyles(styleLoaderService, appName) {
22
+ const styles = [
23
+ 'layout.css',
24
+ 'ui.common.css',
25
+ 'preloading.css',
26
+ 'primeng.min.css',
27
+ 'theme.light.indigo.css',
28
+ 'dx.fluent.saas.light.css',
29
+ `assets/${appName}/styles/primeflex/primeflex.min.css`,
30
+ `assets/${appName}/styles/primeicons/primeicons.css`
31
+ ];
32
+ if (globalThis.isHostMode)
33
+ return () => Promise.resolve();
34
+ return () => styleLoaderService.load(styles);
35
+ }
36
+
37
+ var appName;
38
+ var menuItems = [];
39
+ const boot = (_appName, _routes, _menuItems) => {
40
+ if (customElements.get(`app-${_appName}`))
41
+ return;
42
+ appName = _appName;
43
+ menuItems = _menuItems;
44
+ const appBootConfig = {
45
+ providers: [
46
+ provideAnimations(),
47
+ provideHttpClient(withInterceptors([authInterceptor, stateMachineInterceptor])),
48
+ provideRouter(_routes, withComponentInputBinding(), withHashLocation(), withViewTransitions()),
49
+ importProvidersFrom(i18nModule, KeycloakAngularModule),
50
+ getNgZone(),
51
+ MessageService,
52
+ ConfirmationService,
53
+ {
54
+ provide: APP_INITIALIZER,
55
+ useFactory: globalThis.isHostMode ? setApiConfigOnMFEMode : loadApiConfigs,
56
+ multi: true,
57
+ deps: [HttpBackendService, KeycloakManager, i18nFolderName]
58
+ },
59
+ {
60
+ provide: APP_INITIALIZER,
61
+ useFactory: loadPlugins,
62
+ multi: true,
63
+ deps: [HttpBackendService]
64
+ },
65
+ {
66
+ provide: APP_INITIALIZER,
67
+ useFactory: loadStyles,
68
+ multi: true,
69
+ deps: [StyleLoaderService, i18nFolderName]
70
+ },
71
+ {
72
+ provide: i18nFolderName,
73
+ useValue: _appName
74
+ }
75
+ ]
76
+ };
77
+ createApplication(appBootConfig).then((appRef) => {
78
+ appComponentLoader().then((AppComponent) => {
79
+ const app = createCustomElement(AppComponent, { injector: appRef.injector });
80
+ customElements.define(`app-${appName}`, app);
81
+ });
82
+ });
83
+ };
84
+
85
+ /**
86
+ * Generated bundle index. Do not edit.
87
+ */
88
+
89
+ export { appName as a, boot as b, menuItems as m };
90
+ //# sourceMappingURL=aril-boot-mfe-aril-boot-mfe-PwAGdNZE.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"aril-boot-mfe-aril-boot-mfe-PwAGdNZE.mjs","sources":["../../projects/aril/boot/mfe/src/appComponentLoader.ts","../../projects/aril/boot/mfe/src/loadStyles.ts","../../projects/aril/boot/mfe/src/bootstrap.ts","../../projects/aril/boot/mfe/aril-boot-mfe.ts"],"sourcesContent":["export const appComponentLoader = async () => {\r\n\tconst { AppComponent } = await import('./app.component');\r\n\treturn AppComponent;\r\n};","import { Apps } from 'aril/boot/config/apps';\r\nimport { StyleLoaderService } from 'aril/util/loaders';\r\n\r\nexport function loadStyles(styleLoaderService: StyleLoaderService, appName: Apps): () => Promise<any> {\r\n\tconst styles = [\r\n\t\t'layout.css',\r\n\t\t'ui.common.css',\r\n\t\t'preloading.css',\r\n\t\t'primeng.min.css',\r\n\t\t'theme.light.indigo.css',\r\n\t\t'dx.fluent.saas.light.css',\r\n\t\t`assets/${appName}/styles/primeflex/primeflex.min.css`,\r\n\t\t`assets/${appName}/styles/primeicons/primeicons.css`\r\n\t];\r\n\r\n\tif ((<any>globalThis).isHostMode) return () => Promise.resolve();\r\n\r\n\treturn () => styleLoaderService.load(styles);\r\n}\r\n","import { provideHttpClient, withInterceptors } from '@angular/common/http';\r\nimport { APP_INITIALIZER, ApplicationConfig, importProvidersFrom } from '@angular/core';\r\nimport { createCustomElement } from '@angular/elements';\r\nimport { createApplication } from '@angular/platform-browser';\r\nimport { provideAnimations } from '@angular/platform-browser/animations';\r\nimport {\r\n\tRoutes,\r\n\tprovideRouter,\r\n\twithComponentInputBinding,\r\n\twithHashLocation,\r\n\twithViewTransitions\r\n} from '@angular/router';\r\n\r\nimport { ConfirmationService, MenuItem, MessageService } from 'primeng/api';\r\n\r\nimport { KeycloakAngularModule } from 'keycloak-angular';\r\n\r\nimport { loadApiConfigs, setApiConfigOnMFEMode } from 'aril/boot/config/api';\r\nimport { Apps } from 'aril/boot/config/apps';\r\nimport { getNgZone, loadPlugins } from 'aril/boot/config/plugins';\r\nimport { HttpBackendService, stateMachineInterceptor } from 'aril/http';\r\nimport { i18nFolderName, i18nModule } from 'aril/i18n';\r\nimport { KeycloakManager, authInterceptor } from 'aril/keycloak';\r\nimport { StyleLoaderService } from 'aril/util/loaders';\r\n\r\nimport { appComponentLoader } from './appComponentLoader';\r\nimport { loadStyles } from './loadStyles';\r\n\r\nexport var appName: Apps;\r\nexport var menuItems: MenuItem[] = [];\r\n\r\nexport const boot = (_appName: Apps, _routes: Routes, _menuItems: MenuItem[]) => {\r\n\tif (customElements.get(`app-${_appName}`)) return;\r\n\r\n\tappName = _appName;\r\n\tmenuItems = _menuItems;\r\n\r\n\tconst appBootConfig: ApplicationConfig = {\r\n\t\tproviders: [\r\n\t\t\tprovideAnimations(),\r\n\t\t\tprovideHttpClient(withInterceptors([authInterceptor, stateMachineInterceptor])),\r\n\t\t\tprovideRouter(_routes, withComponentInputBinding(), withHashLocation(), withViewTransitions()),\r\n\t\t\timportProvidersFrom(i18nModule, KeycloakAngularModule),\r\n\t\t\tgetNgZone(),\r\n\t\t\tMessageService,\r\n\t\t\tConfirmationService,\r\n\t\t\t{\r\n\t\t\t\tprovide: APP_INITIALIZER,\r\n\t\t\t\tuseFactory: (<any>globalThis).isHostMode ? setApiConfigOnMFEMode : loadApiConfigs,\r\n\t\t\t\tmulti: true,\r\n\t\t\t\tdeps: [HttpBackendService, KeycloakManager, i18nFolderName]\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tprovide: APP_INITIALIZER,\r\n\t\t\t\tuseFactory: loadPlugins,\r\n\t\t\t\tmulti: true,\r\n\t\t\t\tdeps: [HttpBackendService]\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tprovide: APP_INITIALIZER,\r\n\t\t\t\tuseFactory: loadStyles,\r\n\t\t\t\tmulti: true,\r\n\t\t\t\tdeps: [StyleLoaderService, i18nFolderName]\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tprovide: i18nFolderName,\r\n\t\t\t\tuseValue: _appName\r\n\t\t\t}\r\n\t\t]\r\n\t};\r\n\r\n\tcreateApplication(appBootConfig).then((appRef) => {\r\n\t\tappComponentLoader().then((AppComponent) => {\r\n\t\t\tconst app = createCustomElement(AppComponent, { injector: appRef.injector });\r\n\t\t\tcustomElements.define(`app-${appName}`, app);\r\n\t\t});\r\n\t});\r\n};\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAO,MAAM,kBAAkB,GAAG,YAAW;IAC5C,MAAM,EAAE,YAAY,EAAE,GAAG,MAAM,OAAO,4CAAiB,CAAC,CAAC;AACzD,IAAA,OAAO,YAAY,CAAC;AACrB,CAAC;;ACAe,SAAA,UAAU,CAAC,kBAAsC,EAAE,OAAa,EAAA;AAC/E,IAAA,MAAM,MAAM,GAAG;QACd,YAAY;QACZ,eAAe;QACf,gBAAgB;QAChB,iBAAiB;QACjB,wBAAwB;QACxB,0BAA0B;AAC1B,QAAA,CAAA,OAAA,EAAU,OAAO,CAAqC,mCAAA,CAAA;AACtD,QAAA,CAAA,OAAA,EAAU,OAAO,CAAmC,iCAAA,CAAA;KACpD,CAAC;IAEF,IAAU,UAAW,CAAC,UAAU;AAAE,QAAA,OAAO,MAAM,OAAO,CAAC,OAAO,EAAE,CAAC;IAEjE,OAAO,MAAM,kBAAkB,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;AAC9C;;ACUW,IAAA,QAAc;AAClB,IAAI,SAAS,GAAe,GAAG;AAEzB,MAAA,IAAI,GAAG,CAAC,QAAc,EAAE,OAAe,EAAE,UAAsB,KAAI;AAC/E,IAAA,IAAI,cAAc,CAAC,GAAG,CAAC,CAAO,IAAA,EAAA,QAAQ,EAAE,CAAC;QAAE,OAAO;IAElD,OAAO,GAAG,QAAQ,CAAC;IACnB,SAAS,GAAG,UAAU,CAAC;AAEvB,IAAA,MAAM,aAAa,GAAsB;AACxC,QAAA,SAAS,EAAE;AACV,YAAA,iBAAiB,EAAE;YACnB,iBAAiB,CAAC,gBAAgB,CAAC,CAAC,eAAe,EAAE,uBAAuB,CAAC,CAAC,CAAC;YAC/E,aAAa,CAAC,OAAO,EAAE,yBAAyB,EAAE,EAAE,gBAAgB,EAAE,EAAE,mBAAmB,EAAE,CAAC;AAC9F,YAAA,mBAAmB,CAAC,UAAU,EAAE,qBAAqB,CAAC;AACtD,YAAA,SAAS,EAAE;YACX,cAAc;YACd,mBAAmB;AACnB,YAAA;AACC,gBAAA,OAAO,EAAE,eAAe;gBACxB,UAAU,EAAQ,UAAW,CAAC,UAAU,GAAG,qBAAqB,GAAG,cAAc;AACjF,gBAAA,KAAK,EAAE,IAAI;AACX,gBAAA,IAAI,EAAE,CAAC,kBAAkB,EAAE,eAAe,EAAE,cAAc,CAAC;AAC3D,aAAA;AACD,YAAA;AACC,gBAAA,OAAO,EAAE,eAAe;AACxB,gBAAA,UAAU,EAAE,WAAW;AACvB,gBAAA,KAAK,EAAE,IAAI;gBACX,IAAI,EAAE,CAAC,kBAAkB,CAAC;AAC1B,aAAA;AACD,YAAA;AACC,gBAAA,OAAO,EAAE,eAAe;AACxB,gBAAA,UAAU,EAAE,UAAU;AACtB,gBAAA,KAAK,EAAE,IAAI;AACX,gBAAA,IAAI,EAAE,CAAC,kBAAkB,EAAE,cAAc,CAAC;AAC1C,aAAA;AACD,YAAA;AACC,gBAAA,OAAO,EAAE,cAAc;AACvB,gBAAA,QAAQ,EAAE,QAAQ;AAClB,aAAA;AACD,SAAA;KACD,CAAC;IAEF,iBAAiB,CAAC,aAAa,CAAC,CAAC,IAAI,CAAC,CAAC,MAAM,KAAI;AAChD,QAAA,kBAAkB,EAAE,CAAC,IAAI,CAAC,CAAC,YAAY,KAAI;AAC1C,YAAA,MAAM,GAAG,GAAG,mBAAmB,CAAC,YAAY,EAAE,EAAE,QAAQ,EAAE,MAAM,CAAC,QAAQ,EAAE,CAAC,CAAC;YAC7E,cAAc,CAAC,MAAM,CAAC,CAAA,IAAA,EAAO,OAAO,CAAE,CAAA,EAAE,GAAG,CAAC,CAAC;AAC9C,SAAC,CAAC,CAAC;AACJ,KAAC,CAAC,CAAC;AACJ;;AC7EA;;AAEG;;;;"}
@@ -0,0 +1,16 @@
1
+ export { b as boot } from './aril-boot-mfe-aril-boot-mfe-PwAGdNZE.mjs';
2
+ import '@angular/common/http';
3
+ import '@angular/core';
4
+ import '@angular/elements';
5
+ import '@angular/platform-browser';
6
+ import '@angular/platform-browser/animations';
7
+ import '@angular/router';
8
+ import 'primeng/api';
9
+ import 'keycloak-angular';
10
+ import 'aril/boot/config/api';
11
+ import 'aril/boot/config/plugins';
12
+ import 'aril/http';
13
+ import 'aril/i18n';
14
+ import 'aril/keycloak';
15
+ import 'aril/util/loaders';
16
+ //# sourceMappingURL=aril-boot-mfe.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"aril-boot-mfe.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;"}
@@ -0,0 +1,8 @@
1
+ const aril_boot = 'ARiL-BOOT';
2
+
3
+ /**
4
+ * Generated bundle index. Do not edit.
5
+ */
6
+
7
+ export { aril_boot };
8
+ //# sourceMappingURL=aril-boot.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"aril-boot.mjs","sources":["../../projects/aril/boot/index.ts","../../projects/aril/boot/aril-boot.ts"],"sourcesContent":["export const aril_boot = 'ARiL-BOOT';\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":"AAAO,MAAM,SAAS,GAAG;;ACAzB;;AAEG;;;;"}
@@ -0,0 +1,273 @@
1
+ import * as i1 from '@angular/common/http';
2
+ import { HttpClient, HttpParams } from '@angular/common/http';
3
+ import * as i0 from '@angular/core';
4
+ import { Injectable, inject, Injector, runInInjectionContext } from '@angular/core';
5
+ import { MessageService } from 'primeng/api';
6
+ import { TranslocoService } from '@ngneat/transloco';
7
+ import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
8
+ import { Observable, of } from 'rxjs';
9
+ import { map, tap, catchError } from 'rxjs/operators';
10
+ import { API_CONFIGS } from 'aril/boot/config/api';
11
+
12
+ var HTTPMethods;
13
+ (function (HTTPMethods) {
14
+ HTTPMethods["GET"] = "GET";
15
+ HTTPMethods["GETBYPARAMS"] = "GETBYPARAMS";
16
+ HTTPMethods["POST"] = "POST";
17
+ HTTPMethods["PUT"] = "PUT";
18
+ HTTPMethods["DELETE"] = "DELETE";
19
+ HTTPMethods["DELETEBYPARAMS"] = "DELETEBYPARAMS";
20
+ })(HTTPMethods || (HTTPMethods = {}));
21
+ var ProxyTypes;
22
+ (function (ProxyTypes) {
23
+ ProxyTypes[ProxyTypes["Native"] = 0] = "Native";
24
+ ProxyTypes[ProxyTypes["ServerSide"] = 1] = "ServerSide";
25
+ ProxyTypes[ProxyTypes["ClientSide"] = 2] = "ClientSide";
26
+ })(ProxyTypes || (ProxyTypes = {}));
27
+
28
+ /* eslint-disable @typescript-eslint/no-explicit-any */
29
+ class ErrorResponse {
30
+ constructor(err) {
31
+ this.error = err;
32
+ }
33
+ }
34
+ class ServiceResponse extends ErrorResponse {
35
+ constructor(request, response, proxy) {
36
+ super(undefined);
37
+ this.request = request;
38
+ this.response = response;
39
+ this.proxy = proxy;
40
+ }
41
+ }
42
+
43
+ // WithoutInterceptorHttpClient
44
+ class HttpBackendService {
45
+ constructor(handler) {
46
+ this.httpClient = new HttpClient(handler);
47
+ }
48
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: HttpBackendService, deps: [{ token: i1.HttpBackend }], target: i0.ɵɵFactoryTarget.Injectable }); }
49
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: HttpBackendService, providedIn: 'root' }); }
50
+ }
51
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: HttpBackendService, decorators: [{
52
+ type: Injectable,
53
+ args: [{ providedIn: 'root' }]
54
+ }], ctorParameters: () => [{ type: i1.HttpBackend }] });
55
+
56
+ /* eslint-disable @typescript-eslint/no-explicit-any */
57
+ class RestClient {
58
+ constructor() {
59
+ this.httpClient = inject(HttpClient);
60
+ this.injector = inject(Injector);
61
+ this.messageService = inject(MessageService);
62
+ this.translocoService = inject(TranslocoService);
63
+ }
64
+ }
65
+
66
+ function getRequest(httpMethod, args) {
67
+ if (!args.length)
68
+ return undefined;
69
+ switch (httpMethod) {
70
+ case HTTPMethods.PUT:
71
+ return args[1];
72
+ case HTTPMethods.GETBYPARAMS:
73
+ case HTTPMethods.DELETEBYPARAMS:
74
+ const dto = args[0];
75
+ let queryParams = new HttpParams();
76
+ for (const [key, value] of Object.entries(dto)) {
77
+ queryParams = queryParams.append(key, value);
78
+ }
79
+ return queryParams;
80
+ default:
81
+ return args[0];
82
+ }
83
+ }
84
+
85
+ const callState = (states, serviceName) => {
86
+ states[serviceName] = {
87
+ serviceCalled: true,
88
+ waitingForResponse: true,
89
+ responseIsRecieved: false,
90
+ serviceCallFailed: false
91
+ };
92
+ };
93
+ const successState = (states, serviceName, translocoService, messageService, message, response) => {
94
+ states[serviceName] = {
95
+ serviceCalled: true,
96
+ waitingForResponse: false,
97
+ responseIsRecieved: true,
98
+ serviceCallFailed: false
99
+ };
100
+ if (message?.success) {
101
+ messageService.add({
102
+ key: 'toast-root',
103
+ severity: 'success',
104
+ summary: getTranslatedMessage(message.success, translocoService, response)
105
+ });
106
+ }
107
+ };
108
+ const errorState = (states, serviceName, error, translocoService, messageService, message) => {
109
+ states[serviceName] = {
110
+ serviceCalled: true,
111
+ waitingForResponse: false,
112
+ responseIsRecieved: true,
113
+ serviceCallFailed: true
114
+ };
115
+ let httpError;
116
+ switch (error.status) {
117
+ case 400:
118
+ httpError = 'Bad Request';
119
+ break;
120
+ case 401:
121
+ httpError = 'Unauthorized';
122
+ break;
123
+ case 403:
124
+ httpError = 'Forbidden';
125
+ break;
126
+ case 404:
127
+ httpError = 'Not Found';
128
+ break;
129
+ case 405:
130
+ httpError = 'Method Not Allowed';
131
+ break;
132
+ case 406:
133
+ httpError = 'Not Acceptable';
134
+ break;
135
+ case 408:
136
+ httpError = 'Request Timeout';
137
+ break;
138
+ case 409:
139
+ httpError = 'Conflict';
140
+ break;
141
+ case 500:
142
+ httpError = 'Internal Server Error';
143
+ break;
144
+ case 501:
145
+ httpError = 'Not Implemented';
146
+ break;
147
+ case 502:
148
+ httpError = 'Bad Gateway';
149
+ break;
150
+ case 503:
151
+ httpError = 'Service Unavailable';
152
+ break;
153
+ case 504:
154
+ httpError = 'Gateway Timeout';
155
+ break;
156
+ case 505:
157
+ httpError = 'HTTP Version Not Supported';
158
+ break;
159
+ case 511:
160
+ httpError = 'Network Authentication Required';
161
+ break;
162
+ default:
163
+ httpError = error?.error?.message;
164
+ break;
165
+ }
166
+ messageService.add({
167
+ key: 'toast-root',
168
+ severity: 'error',
169
+ summary: httpError,
170
+ detail: error?.error?.display ? error?.error?.display : error?.error?.message
171
+ });
172
+ if (message?.error) {
173
+ messageService.add({
174
+ key: 'toast-root',
175
+ severity: 'error',
176
+ summary: error?.error?.display ? error?.error?.display : getTranslatedMessage(message.error, translocoService)
177
+ });
178
+ }
179
+ };
180
+ const getTranslatedMessage = (messageCode, translocoService, response) => {
181
+ const translateObject = translocoService.getTranslation().get(translocoService.getActiveLang());
182
+ let translatedMessage = translateObject?.[messageCode] ?? messageCode;
183
+ const paramStartSymbol = '{{';
184
+ const paramEndSymbol = '}}';
185
+ if (response && translatedMessage.includes(paramStartSymbol) && translatedMessage.includes(paramEndSymbol)) {
186
+ do {
187
+ let paramStartIndex = translatedMessage.indexOf(paramStartSymbol);
188
+ let paramEndIndex = translatedMessage.indexOf(paramEndSymbol);
189
+ let paramKey = translatedMessage.slice(paramStartIndex + paramStartSymbol.length, paramEndIndex);
190
+ // Splitting the key to get nested object values
191
+ let paramKeyList = paramKey.split('.');
192
+ let paramValue;
193
+ for (let key of paramKeyList) {
194
+ paramValue = paramValue ? paramValue[key] : response[key];
195
+ }
196
+ let replacePattern = `${paramStartSymbol}${paramKey}${paramEndSymbol}`;
197
+ translatedMessage = translatedMessage.replace(replacePattern, paramValue);
198
+ } while (translatedMessage.includes(paramStartSymbol));
199
+ }
200
+ return translatedMessage;
201
+ };
202
+
203
+ function ServiceCall(httpMethod, proxy, serviceURL, message, remoteAPI, isMockAPI = false) {
204
+ return function (serviceClass, serviceName, descriptor) {
205
+ // const originalFunction = descriptor.value;
206
+ descriptor.value = function (...args) {
207
+ return runInInjectionContext(this.injector, () => {
208
+ const httpClient = this.httpClient;
209
+ let api = '';
210
+ if (isMockAPI)
211
+ api = remoteAPI;
212
+ else if (remoteAPI) {
213
+ const url = new URL(API_CONFIGS.api);
214
+ api = url.origin + '/' + remoteAPI;
215
+ }
216
+ else
217
+ api = API_CONFIGS.api;
218
+ const endPoint = api + '/' + serviceURL;
219
+ const request = getRequest(httpMethod, args);
220
+ const states = this.states;
221
+ callState(states, serviceName);
222
+ let observable = new Observable();
223
+ switch (httpMethod) {
224
+ case HTTPMethods.GET:
225
+ let getReq = args.length ? '/' + args[0] : '';
226
+ observable = httpClient.get(endPoint + getReq, { responseType: 'json' });
227
+ break;
228
+ case HTTPMethods.GETBYPARAMS:
229
+ observable = httpClient.get(endPoint, { params: request, responseType: 'json' });
230
+ break;
231
+ case HTTPMethods.POST:
232
+ observable = httpClient.post(endPoint, args[0], { responseType: 'json' });
233
+ break;
234
+ case HTTPMethods.PUT:
235
+ observable = httpClient.put(endPoint + '/' + args[0], request, { responseType: 'json' });
236
+ break;
237
+ case HTTPMethods.DELETE:
238
+ observable = httpClient.delete(endPoint + '/' + args[0], { responseType: 'json' });
239
+ break;
240
+ case HTTPMethods.DELETEBYPARAMS:
241
+ observable = httpClient.delete(endPoint, { params: request, responseType: 'json' });
242
+ break;
243
+ }
244
+ observable = observable.pipe(map((response) => new ServiceResponse(request, response, proxy)), tap((resp) => successState(states, serviceName, this.translocoService, this.messageService, message, resp.response)), catchError((error) => {
245
+ errorState(states, serviceName, error, this.translocoService, this.messageService, message);
246
+ return of(new ErrorResponse(error));
247
+ }), takeUntilDestroyed());
248
+ return observable;
249
+ });
250
+ };
251
+ };
252
+ }
253
+
254
+ function ServiceCallMock(httpMethod, proxy, serviceURL, mockAPI, message) {
255
+ return ServiceCall(httpMethod, proxy, serviceURL, message, mockAPI, true);
256
+ }
257
+
258
+ const stateMachineInterceptor = (req, next) => {
259
+ let clone = req;
260
+ if (req.url.includes('state-machine/v1')) {
261
+ clone = req.clone({ url: req.url.split('/host/v1').join('') });
262
+ }
263
+ return next(clone);
264
+ };
265
+
266
+ /* lib */
267
+
268
+ /**
269
+ * Generated bundle index. Do not edit.
270
+ */
271
+
272
+ export { ErrorResponse, HTTPMethods, HttpBackendService, ProxyTypes, RestClient, ServiceCall, ServiceCallMock, ServiceResponse, callState, errorState, stateMachineInterceptor, successState };
273
+ //# sourceMappingURL=aril-http.mjs.map