aril 1.1.96 → 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (270) hide show
  1. package/boot/base/index.d.ts +1 -0
  2. package/boot/base/src/create-base-app-config.d.ts +12 -0
  3. package/boot/bridge/index.d.ts +2 -0
  4. package/boot/bridge/src/mfe-bridge.d.ts +33 -0
  5. package/boot/bridge/src/provide-mfe-bridge.d.ts +1 -0
  6. package/boot/config/api/index.d.ts +1 -0
  7. package/boot/config/api/src/api.service.d.ts +2 -2
  8. package/boot/config/api/src/interfaces.d.ts +1 -19
  9. package/boot/config/apps/src/apps.service.d.ts +7 -4
  10. package/boot/config/plugins/src/getNgZone.d.ts +1 -1
  11. package/boot/config/plugins/src/interfaces.d.ts +0 -37
  12. package/boot/host/src/app.component.d.ts +5 -3
  13. package/boot/mfe/src/app.component.d.ts +4 -2
  14. package/esm2022/boot/base/aril-boot-base.mjs +5 -0
  15. package/esm2022/boot/base/index.mjs +2 -0
  16. package/esm2022/boot/base/src/create-base-app-config.mjs +30 -0
  17. package/esm2022/boot/bridge/aril-boot-bridge.mjs +5 -0
  18. package/esm2022/boot/bridge/index.mjs +3 -0
  19. package/esm2022/boot/bridge/src/mfe-bridge.mjs +59 -0
  20. package/esm2022/boot/bridge/src/provide-mfe-bridge.mjs +6 -0
  21. package/esm2022/boot/config/api/index.mjs +1 -1
  22. package/esm2022/boot/config/api/src/api.service.mjs +14 -9
  23. package/esm2022/boot/config/api/src/interfaces.mjs +2 -21
  24. package/esm2022/boot/config/apps/src/apps.service.mjs +13 -16
  25. package/esm2022/boot/config/plugins/src/getNgZone.mjs +4 -3
  26. package/esm2022/boot/config/plugins/src/interfaces.mjs +1 -60
  27. package/esm2022/boot/config/plugins/src/plugins.service.mjs +9 -21
  28. package/esm2022/boot/host/src/app.component.mjs +11 -10
  29. package/esm2022/boot/host/src/bootstrap.mjs +9 -22
  30. package/esm2022/boot/mfe/src/app.component.mjs +20 -17
  31. package/esm2022/boot/mfe/src/bootstrap.mjs +13 -31
  32. package/esm2022/boot/pages/aril-boot-pages.mjs +5 -0
  33. package/esm2022/boot/pages/index.mjs +3 -0
  34. package/esm2022/{util/custom_pages → boot/pages}/src/forbidden.component.mjs +1 -1
  35. package/esm2022/{util/custom_pages → boot/pages}/src/notFound.component.mjs +1 -1
  36. package/esm2022/keycloak/src/auth.interceptor.mjs +15 -78
  37. package/esm2022/provider/src/prodiveHost.mjs +5 -8
  38. package/esm2022/provider/src/prodiveHostRouter.mjs +4 -3
  39. package/esm2022/provider/src/provideHostKeycloak.mjs +10 -2
  40. package/esm2022/theme/layout/app/breadcrumb/app.breadcrumb.component.mjs +4 -3
  41. package/esm2022/theme/layout/app/expandableMenu/expandable-menu.component.mjs +3 -4
  42. package/esm2022/theme/layout/app/general-search/general-search.component.mjs +3 -2
  43. package/esm2022/theme/layout/app/history/history.service.mjs +3 -2
  44. package/esm2022/theme/layout/app/layout/app.layout.component.mjs +1 -2
  45. package/esm2022/theme/layout/app/site-map/site-map-sidebar.component.mjs +5 -4
  46. package/esm2022/theme/layout/app/static-sidebar/static-sidebar.component.mjs +3 -4
  47. package/esm2022/theme/layout/app/topbar/app.topbar.component.mjs +7 -4
  48. package/esm2022/ui/form/src/form.component.mjs +22 -4
  49. package/esm2022/ui-business/assetPicker/src/asset-picker.component.mjs +14 -2
  50. package/esm2022/util/directives/src/detail-page-customization/detail-page-customization.directive.mjs +4 -3
  51. package/esm2022/util/pipes/src/translate-json/translate-json.pipe.mjs +3 -4
  52. package/esm2022/util/sync-active-tab-route/src/sync-active-tab-route.directive.mjs +1 -1
  53. package/fesm2022/{aril-app.component-hxaLgwmC.mjs → aril-app.component-wxP3y8dg.mjs} +22 -22
  54. package/fesm2022/aril-app.component-wxP3y8dg.mjs.map +1 -0
  55. package/fesm2022/aril-boot-base.mjs +37 -0
  56. package/fesm2022/aril-boot-base.mjs.map +1 -0
  57. package/fesm2022/aril-boot-bridge.mjs +70 -0
  58. package/fesm2022/aril-boot-bridge.mjs.map +1 -0
  59. package/fesm2022/aril-boot-config-api.mjs +12 -27
  60. package/fesm2022/aril-boot-config-api.mjs.map +1 -1
  61. package/fesm2022/aril-boot-config-apps.mjs +12 -15
  62. package/fesm2022/aril-boot-config-apps.mjs.map +1 -1
  63. package/fesm2022/aril-boot-config-plugins.mjs +10 -81
  64. package/fesm2022/aril-boot-config-plugins.mjs.map +1 -1
  65. package/fesm2022/aril-boot-host.mjs +17 -29
  66. package/fesm2022/aril-boot-host.mjs.map +1 -1
  67. package/fesm2022/{aril-boot-mfe-app.component-s1a-tkOD.mjs → aril-boot-mfe-app.component-7IjAmjz0.mjs} +22 -22
  68. package/fesm2022/aril-boot-mfe-app.component-7IjAmjz0.mjs.map +1 -0
  69. package/fesm2022/{aril-boot-mfe-aril-boot-mfe-wLTqwDtz.mjs → aril-boot-mfe-aril-boot-mfe-KXDpUyv7.mjs} +15 -69
  70. package/fesm2022/aril-boot-mfe-aril-boot-mfe-KXDpUyv7.mjs.map +1 -0
  71. package/fesm2022/aril-boot-mfe.mjs +3 -6
  72. package/fesm2022/aril-boot-mfe.mjs.map +1 -1
  73. package/fesm2022/{aril-util-custom_pages.mjs → aril-boot-pages.mjs} +1 -1
  74. package/fesm2022/aril-boot-pages.mjs.map +1 -0
  75. package/fesm2022/aril-keycloak.mjs +14 -77
  76. package/fesm2022/aril-keycloak.mjs.map +1 -1
  77. package/fesm2022/aril-provider.mjs +15 -10
  78. package/fesm2022/aril-provider.mjs.map +1 -1
  79. package/fesm2022/aril-theme-layout.mjs +15 -17
  80. package/fesm2022/aril-theme-layout.mjs.map +1 -1
  81. package/fesm2022/aril-ui-business-assetPicker.mjs +13 -1
  82. package/fesm2022/aril-ui-business-assetPicker.mjs.map +1 -1
  83. package/fesm2022/aril-ui-form.mjs +20 -3
  84. package/fesm2022/aril-ui-form.mjs.map +1 -1
  85. package/fesm2022/aril-util-directives.mjs +3 -2
  86. package/fesm2022/aril-util-directives.mjs.map +1 -1
  87. package/fesm2022/aril-util-pipes.mjs +2 -3
  88. package/fesm2022/aril-util-pipes.mjs.map +1 -1
  89. package/fesm2022/aril-util-sync-active-tab-route.mjs.map +1 -1
  90. package/fesm2022/aril.mjs +24 -87
  91. package/fesm2022/aril.mjs.map +1 -1
  92. package/package.json +111 -105
  93. package/provider/src/prodiveHost.d.ts +2 -2
  94. package/theme/layout/app/breadcrumb/app.breadcrumb.component.ts +3 -2
  95. package/theme/layout/app/expandableMenu/expandable-menu.component.d.ts +0 -2
  96. package/theme/layout/app/expandableMenu/expandable-menu.component.ts +373 -374
  97. package/theme/layout/app/general-search/general-search.component.ts +2 -1
  98. package/theme/layout/app/history/history.service.ts +2 -1
  99. package/theme/layout/app/layout/app.layout.component.d.ts +0 -1
  100. package/theme/layout/app/layout/app.layout.component.ts +0 -1
  101. package/theme/layout/app/site-map/site-map-sidebar.component.html +121 -121
  102. package/theme/layout/app/site-map/site-map-sidebar.component.ts +3 -2
  103. package/theme/layout/app/static-sidebar/static-sidebar.component.ts +336 -337
  104. package/theme/layout/app/topbar/app.topbar.component.ts +6 -3
  105. package/theme/styles/layout/_fonts.scss +1 -13
  106. package/ui/form/src/form.component.d.ts +4 -1
  107. package/boot/mfe/src/loadStyles.d.ts +0 -3
  108. package/esm2022/boot/mfe/src/loadStyles.mjs +0 -37
  109. package/esm2022/util/custom_pages/aril-util-custom_pages.mjs +0 -5
  110. package/esm2022/util/custom_pages/index.mjs +0 -3
  111. package/esm2022/util/loaders/aril-util-loaders.mjs +0 -5
  112. package/esm2022/util/loaders/index.mjs +0 -2
  113. package/esm2022/util/loaders/style/style.loader.service.mjs +0 -61
  114. package/fesm2022/aril-app.component-hxaLgwmC.mjs.map +0 -1
  115. package/fesm2022/aril-boot-mfe-app.component-s1a-tkOD.mjs.map +0 -1
  116. package/fesm2022/aril-boot-mfe-aril-boot-mfe-wLTqwDtz.mjs.map +0 -1
  117. package/fesm2022/aril-util-custom_pages.mjs.map +0 -1
  118. package/fesm2022/aril-util-loaders.mjs +0 -68
  119. package/fesm2022/aril-util-loaders.mjs.map +0 -1
  120. package/theme/fonts/Inter/Inter_18pt-Black.ttf +0 -0
  121. package/theme/fonts/Inter/Inter_18pt-BlackItalic.ttf +0 -0
  122. package/theme/fonts/Inter/Inter_18pt-Bold.ttf +0 -0
  123. package/theme/fonts/Inter/Inter_18pt-BoldItalic.ttf +0 -0
  124. package/theme/fonts/Inter/Inter_18pt-ExtraBold.ttf +0 -0
  125. package/theme/fonts/Inter/Inter_18pt-ExtraBoldItalic.ttf +0 -0
  126. package/theme/fonts/Inter/Inter_18pt-ExtraLight.ttf +0 -0
  127. package/theme/fonts/Inter/Inter_18pt-ExtraLightItalic.ttf +0 -0
  128. package/theme/fonts/Inter/Inter_18pt-Italic.ttf +0 -0
  129. package/theme/fonts/Inter/Inter_18pt-Light.ttf +0 -0
  130. package/theme/fonts/Inter/Inter_18pt-LightItalic.ttf +0 -0
  131. package/theme/fonts/Inter/Inter_18pt-Medium.ttf +0 -0
  132. package/theme/fonts/Inter/Inter_18pt-MediumItalic.ttf +0 -0
  133. package/theme/fonts/Inter/Inter_18pt-Regular.ttf +0 -0
  134. package/theme/fonts/Inter/Inter_18pt-SemiBold.ttf +0 -0
  135. package/theme/fonts/Inter/Inter_18pt-SemiBoldItalic.ttf +0 -0
  136. package/theme/fonts/Inter/Inter_18pt-Thin.ttf +0 -0
  137. package/theme/fonts/Inter/Inter_18pt-ThinItalic.ttf +0 -0
  138. package/theme/fonts/Inter/Inter_24pt-Black.ttf +0 -0
  139. package/theme/fonts/Inter/Inter_24pt-BlackItalic.ttf +0 -0
  140. package/theme/fonts/Inter/Inter_24pt-Bold.ttf +0 -0
  141. package/theme/fonts/Inter/Inter_24pt-BoldItalic.ttf +0 -0
  142. package/theme/fonts/Inter/Inter_24pt-ExtraBold.ttf +0 -0
  143. package/theme/fonts/Inter/Inter_24pt-ExtraBoldItalic.ttf +0 -0
  144. package/theme/fonts/Inter/Inter_24pt-ExtraLight.ttf +0 -0
  145. package/theme/fonts/Inter/Inter_24pt-ExtraLightItalic.ttf +0 -0
  146. package/theme/fonts/Inter/Inter_24pt-Italic.ttf +0 -0
  147. package/theme/fonts/Inter/Inter_24pt-Light.ttf +0 -0
  148. package/theme/fonts/Inter/Inter_24pt-LightItalic.ttf +0 -0
  149. package/theme/fonts/Inter/Inter_24pt-Medium.ttf +0 -0
  150. package/theme/fonts/Inter/Inter_24pt-MediumItalic.ttf +0 -0
  151. package/theme/fonts/Inter/Inter_24pt-Regular.ttf +0 -0
  152. package/theme/fonts/Inter/Inter_24pt-SemiBold.ttf +0 -0
  153. package/theme/fonts/Inter/Inter_24pt-SemiBoldItalic.ttf +0 -0
  154. package/theme/fonts/Inter/Inter_24pt-Thin.ttf +0 -0
  155. package/theme/fonts/Inter/Inter_24pt-ThinItalic.ttf +0 -0
  156. package/theme/fonts/Inter/Inter_28pt-Black.ttf +0 -0
  157. package/theme/fonts/Inter/Inter_28pt-BlackItalic.ttf +0 -0
  158. package/theme/fonts/Inter/Inter_28pt-Bold.ttf +0 -0
  159. package/theme/fonts/Inter/Inter_28pt-BoldItalic.ttf +0 -0
  160. package/theme/fonts/Inter/Inter_28pt-ExtraBold.ttf +0 -0
  161. package/theme/fonts/Inter/Inter_28pt-ExtraBoldItalic.ttf +0 -0
  162. package/theme/fonts/Inter/Inter_28pt-ExtraLight.ttf +0 -0
  163. package/theme/fonts/Inter/Inter_28pt-ExtraLightItalic.ttf +0 -0
  164. package/theme/fonts/Inter/Inter_28pt-Italic.ttf +0 -0
  165. package/theme/fonts/Inter/Inter_28pt-Light.ttf +0 -0
  166. package/theme/fonts/Inter/Inter_28pt-LightItalic.ttf +0 -0
  167. package/theme/fonts/Inter/Inter_28pt-Medium.ttf +0 -0
  168. package/theme/fonts/Inter/Inter_28pt-MediumItalic.ttf +0 -0
  169. package/theme/fonts/Inter/Inter_28pt-Regular.ttf +0 -0
  170. package/theme/fonts/Inter/Inter_28pt-SemiBold.ttf +0 -0
  171. package/theme/fonts/Inter/Inter_28pt-SemiBoldItalic.ttf +0 -0
  172. package/theme/fonts/Inter/Inter_28pt-Thin.ttf +0 -0
  173. package/theme/fonts/Inter/Inter_28pt-ThinItalic.ttf +0 -0
  174. package/theme/fonts/Inter/woff/Inter18pt-Black.woff +0 -0
  175. package/theme/fonts/Inter/woff/Inter18pt-Black.woff2 +0 -0
  176. package/theme/fonts/Inter/woff/Inter18pt-BlackItalic.woff +0 -0
  177. package/theme/fonts/Inter/woff/Inter18pt-BlackItalic.woff2 +0 -0
  178. package/theme/fonts/Inter/woff/Inter18pt-BoldItalic.woff +0 -0
  179. package/theme/fonts/Inter/woff/Inter18pt-BoldItalic.woff2 +0 -0
  180. package/theme/fonts/Inter/woff/Inter18pt-ExtraBold.woff +0 -0
  181. package/theme/fonts/Inter/woff/Inter18pt-ExtraBold.woff2 +0 -0
  182. package/theme/fonts/Inter/woff/Inter18pt-ExtraBoldItalic.woff +0 -0
  183. package/theme/fonts/Inter/woff/Inter18pt-ExtraBoldItalic.woff2 +0 -0
  184. package/theme/fonts/Inter/woff/Inter18pt-ExtraLight.woff +0 -0
  185. package/theme/fonts/Inter/woff/Inter18pt-ExtraLight.woff2 +0 -0
  186. package/theme/fonts/Inter/woff/Inter18pt-ExtraLightItalic.woff +0 -0
  187. package/theme/fonts/Inter/woff/Inter18pt-ExtraLightItalic.woff2 +0 -0
  188. package/theme/fonts/Inter/woff/Inter18pt-Italic.woff +0 -0
  189. package/theme/fonts/Inter/woff/Inter18pt-Italic.woff2 +0 -0
  190. package/theme/fonts/Inter/woff/Inter18pt-Light.woff +0 -0
  191. package/theme/fonts/Inter/woff/Inter18pt-Light.woff2 +0 -0
  192. package/theme/fonts/Inter/woff/Inter18pt-LightItalic.woff +0 -0
  193. package/theme/fonts/Inter/woff/Inter18pt-LightItalic.woff2 +0 -0
  194. package/theme/fonts/Inter/woff/Inter18pt-MediumItalic.woff +0 -0
  195. package/theme/fonts/Inter/woff/Inter18pt-MediumItalic.woff2 +0 -0
  196. package/theme/fonts/Inter/woff/Inter18pt-SemiBoldItalic.woff +0 -0
  197. package/theme/fonts/Inter/woff/Inter18pt-SemiBoldItalic.woff2 +0 -0
  198. package/theme/fonts/Inter/woff/Inter18pt-Thin.woff +0 -0
  199. package/theme/fonts/Inter/woff/Inter18pt-Thin.woff2 +0 -0
  200. package/theme/fonts/Inter/woff/Inter18pt-ThinItalic.woff +0 -0
  201. package/theme/fonts/Inter/woff/Inter18pt-ThinItalic.woff2 +0 -0
  202. package/theme/fonts/Inter/woff/Inter24pt-Black.woff +0 -0
  203. package/theme/fonts/Inter/woff/Inter24pt-Black.woff2 +0 -0
  204. package/theme/fonts/Inter/woff/Inter24pt-BlackItalic.woff +0 -0
  205. package/theme/fonts/Inter/woff/Inter24pt-BlackItalic.woff2 +0 -0
  206. package/theme/fonts/Inter/woff/Inter24pt-Bold.woff +0 -0
  207. package/theme/fonts/Inter/woff/Inter24pt-Bold.woff2 +0 -0
  208. package/theme/fonts/Inter/woff/Inter24pt-BoldItalic.woff +0 -0
  209. package/theme/fonts/Inter/woff/Inter24pt-BoldItalic.woff2 +0 -0
  210. package/theme/fonts/Inter/woff/Inter24pt-ExtraBold.woff +0 -0
  211. package/theme/fonts/Inter/woff/Inter24pt-ExtraBold.woff2 +0 -0
  212. package/theme/fonts/Inter/woff/Inter24pt-ExtraBoldItalic.woff +0 -0
  213. package/theme/fonts/Inter/woff/Inter24pt-ExtraBoldItalic.woff2 +0 -0
  214. package/theme/fonts/Inter/woff/Inter24pt-ExtraLight.woff +0 -0
  215. package/theme/fonts/Inter/woff/Inter24pt-ExtraLight.woff2 +0 -0
  216. package/theme/fonts/Inter/woff/Inter24pt-ExtraLightItalic.woff +0 -0
  217. package/theme/fonts/Inter/woff/Inter24pt-ExtraLightItalic.woff2 +0 -0
  218. package/theme/fonts/Inter/woff/Inter24pt-Italic.woff +0 -0
  219. package/theme/fonts/Inter/woff/Inter24pt-Italic.woff2 +0 -0
  220. package/theme/fonts/Inter/woff/Inter24pt-LightItalic.woff +0 -0
  221. package/theme/fonts/Inter/woff/Inter24pt-LightItalic.woff2 +0 -0
  222. package/theme/fonts/Inter/woff/Inter24pt-Medium.woff +0 -0
  223. package/theme/fonts/Inter/woff/Inter24pt-Medium.woff2 +0 -0
  224. package/theme/fonts/Inter/woff/Inter24pt-MediumItalic.woff +0 -0
  225. package/theme/fonts/Inter/woff/Inter24pt-MediumItalic.woff2 +0 -0
  226. package/theme/fonts/Inter/woff/Inter24pt-Regular.woff +0 -0
  227. package/theme/fonts/Inter/woff/Inter24pt-Regular.woff2 +0 -0
  228. package/theme/fonts/Inter/woff/Inter24pt-SemiBold.woff +0 -0
  229. package/theme/fonts/Inter/woff/Inter24pt-SemiBold.woff2 +0 -0
  230. package/theme/fonts/Inter/woff/Inter24pt-SemiBoldItalic.woff +0 -0
  231. package/theme/fonts/Inter/woff/Inter24pt-SemiBoldItalic.woff2 +0 -0
  232. package/theme/fonts/Inter/woff/Inter24pt-Thin.woff +0 -0
  233. package/theme/fonts/Inter/woff/Inter24pt-Thin.woff2 +0 -0
  234. package/theme/fonts/Inter/woff/Inter24pt-ThinItalic.woff +0 -0
  235. package/theme/fonts/Inter/woff/Inter24pt-ThinItalic.woff2 +0 -0
  236. package/theme/fonts/Inter/woff/Inter28pt-Black.woff +0 -0
  237. package/theme/fonts/Inter/woff/Inter28pt-Black.woff2 +0 -0
  238. package/theme/fonts/Inter/woff/Inter28pt-BlackItalic.woff +0 -0
  239. package/theme/fonts/Inter/woff/Inter28pt-BlackItalic.woff2 +0 -0
  240. package/theme/fonts/Inter/woff/Inter28pt-Bold.woff +0 -0
  241. package/theme/fonts/Inter/woff/Inter28pt-Bold.woff2 +0 -0
  242. package/theme/fonts/Inter/woff/Inter28pt-BoldItalic.woff +0 -0
  243. package/theme/fonts/Inter/woff/Inter28pt-BoldItalic.woff2 +0 -0
  244. package/theme/fonts/Inter/woff/Inter28pt-ExtraBoldItalic.woff +0 -0
  245. package/theme/fonts/Inter/woff/Inter28pt-ExtraBoldItalic.woff2 +0 -0
  246. package/theme/fonts/Inter/woff/Inter28pt-ExtraLightItalic.woff +0 -0
  247. package/theme/fonts/Inter/woff/Inter28pt-ExtraLightItalic.woff2 +0 -0
  248. package/theme/fonts/Inter/woff/Inter28pt-Italic.woff +0 -0
  249. package/theme/fonts/Inter/woff/Inter28pt-Italic.woff2 +0 -0
  250. package/theme/fonts/Inter/woff/Inter28pt-Light.woff +0 -0
  251. package/theme/fonts/Inter/woff/Inter28pt-Light.woff2 +0 -0
  252. package/theme/fonts/Inter/woff/Inter28pt-LightItalic.woff +0 -0
  253. package/theme/fonts/Inter/woff/Inter28pt-LightItalic.woff2 +0 -0
  254. package/theme/fonts/Inter/woff/Inter28pt-Medium.woff +0 -0
  255. package/theme/fonts/Inter/woff/Inter28pt-Medium.woff2 +0 -0
  256. package/theme/fonts/Inter/woff/Inter28pt-MediumItalic.woff +0 -0
  257. package/theme/fonts/Inter/woff/Inter28pt-MediumItalic.woff2 +0 -0
  258. package/theme/fonts/Inter/woff/Inter28pt-Regular.woff +0 -0
  259. package/theme/fonts/Inter/woff/Inter28pt-Regular.woff2 +0 -0
  260. package/theme/fonts/Inter/woff/Inter28pt-SemiBold.woff +0 -0
  261. package/theme/fonts/Inter/woff/Inter28pt-SemiBold.woff2 +0 -0
  262. package/theme/fonts/Inter/woff/Inter28pt-Thin.woff +0 -0
  263. package/theme/fonts/Inter/woff/Inter28pt-Thin.woff2 +0 -0
  264. package/theme/fonts/Inter/woff/Inter28pt-ThinItalic.woff +0 -0
  265. package/theme/fonts/Inter/woff/Inter28pt-ThinItalic.woff2 +0 -0
  266. package/util/loaders/index.d.ts +0 -1
  267. package/util/loaders/style/style.loader.service.d.ts +0 -13
  268. /package/{util/custom_pages → boot/pages}/index.d.ts +0 -0
  269. /package/{util/custom_pages → boot/pages}/src/forbidden.component.d.ts +0 -0
  270. /package/{util/custom_pages → boot/pages}/src/notFound.component.d.ts +0 -0
@@ -1,337 +1,336 @@
1
- import { NgClass, NgTemplateOutlet } from '@angular/common';
2
- import { HttpClient } from '@angular/common/http';
3
- import { Component, OnDestroy, OnInit, Signal, signal } from '@angular/core';
4
- import { toSignal } from '@angular/core/rxjs-interop';
5
- import { FormsModule } from '@angular/forms';
6
- import { NavigationEnd, Router, RouterLink } from '@angular/router';
7
-
8
- import { ScrollPanelModule } from 'primeng/scrollpanel';
9
- import { TooltipModule } from 'primeng/tooltip';
10
-
11
- import { TranslocoModule, TranslocoService } from '@ngneat/transloco';
12
- import { Subscription, filter } from 'rxjs';
13
-
14
- import { MenuItemAction, PluginMenuItem } from 'aril/boot/config/apps';
15
- import { TranslateJsonPipe } from 'aril/util/pipes';
16
-
17
- import { LayoutService } from '../../service/app.layout.service';
18
- import { AppMenuService } from '../../service/app.menu.service';
19
-
20
- interface MenuNode {
21
- key: string;
22
- label: any;
23
- icon?: string;
24
- routerLink?: string;
25
- action?: MenuItemAction;
26
- children?: MenuNode[];
27
- expanded: boolean;
28
- actionLoading?: boolean;
29
- }
30
-
31
- @Component({
32
- standalone: true,
33
- selector: 'app-static-sidebar',
34
- imports: [RouterLink, NgClass, NgTemplateOutlet, ScrollPanelModule, TooltipModule, FormsModule, TranslocoModule],
35
- templateUrl: './static-sidebar.component.html',
36
- styleUrl: './static-sidebar.component.scss',
37
- providers: [TranslateJsonPipe]
38
- })
39
- export class StaticSidebarComponent implements OnInit, OnDestroy {
40
- activeLang: Signal<string>;
41
- menuNodes = signal<MenuNode[]>([]);
42
- filteredNodes = signal<MenuNode[]>([]);
43
- searchTerm = signal<string>('');
44
-
45
- private routerSubscription: Subscription | null = null;
46
- private actionSubscription: Subscription | null = null;
47
-
48
- private readonly MAX_LENGTH = { level0: 25, level1: 20, level2: 16, level3: 13 };
49
-
50
- constructor(
51
- private readonly menuService: AppMenuService,
52
- private readonly router: Router,
53
- private readonly layoutService: LayoutService,
54
- private readonly translateJsonPipe: TranslateJsonPipe,
55
- private readonly translocoService: TranslocoService,
56
- private readonly http: HttpClient
57
- ) {
58
- this.activeLang = toSignal(this.translocoService.langChanges$, { initialValue: 'tr' });
59
- }
60
-
61
- get isCollapsed(): boolean {
62
- return this.layoutService.isStaticSidebarCollapsed();
63
- }
64
-
65
- get topLevelNodes(): MenuNode[] {
66
- return this.menuNodes();
67
- }
68
-
69
- ngOnInit() {
70
- this.buildMenuTree();
71
- this.routerSubscription = this.router.events
72
- .pipe(filter((event) => event instanceof NavigationEnd))
73
- .subscribe(() => this.buildMenuTree());
74
- }
75
-
76
- ngOnDestroy() {
77
- this.routerSubscription?.unsubscribe();
78
- this.actionSubscription?.unsubscribe();
79
- }
80
-
81
- isTextTruncated(label: any, lang: string | null, level = 0): boolean {
82
- if (!label || !lang || !label[lang]) return false;
83
- const text = label[lang];
84
- const len = text.length;
85
- const limits = [this.MAX_LENGTH.level0, this.MAX_LENGTH.level1, this.MAX_LENGTH.level2, this.MAX_LENGTH.level3];
86
- return len > limits[Math.min(level, 3)];
87
- }
88
-
89
- isMobile(): boolean {
90
- return this.layoutService.isMobile();
91
- }
92
-
93
- buildMenuTree() {
94
- const menuItems = this.getMenuItems();
95
- const nodes = this.convertToMenuNodes(menuItems);
96
- this.menuNodes.set(nodes);
97
- this.filteredNodes.set([...nodes]);
98
- this.expandActiveMenu();
99
- }
100
-
101
- private expandActiveMenu() {
102
- const nodes = this.menuNodes();
103
- this.findAndExpandActiveNode(nodes);
104
- this.filteredNodes.set([...this.filteredNodes()]);
105
- }
106
-
107
- private findAndExpandActiveNode(nodes: MenuNode[]): MenuNode | null {
108
- for (const node of nodes) {
109
- if (this.isActiveRouteForNode(node)) {
110
- return node;
111
- }
112
-
113
- if (node.children && node.children.length > 0) {
114
- const activeChild = this.findAndExpandActiveNode(node.children);
115
- if (activeChild) {
116
- // we find active child and then opened its parent nodes
117
- node.expanded = true;
118
- return activeChild;
119
- }
120
- }
121
- }
122
- return null;
123
- }
124
-
125
- convertToMenuNodes(items: PluginMenuItem[], parentKey = ''): MenuNode[] {
126
- return items
127
- .filter((item) => !item.separator)
128
- .map((item, index) => {
129
- const key = parentKey ? `${parentKey}-${index}` : `${index}`;
130
- const node: MenuNode = {
131
- key,
132
- label: item.label,
133
- icon: item.icon,
134
- routerLink: item.action ? undefined : item.routerLink,
135
- action: item.action,
136
- expanded: false
137
- };
138
- if (item.items && item.items.length > 0) {
139
- node.children = this.convertToMenuNodes(item.items, key);
140
- }
141
- return node;
142
- });
143
- }
144
-
145
- getMenuItems(): PluginMenuItem[] {
146
- const isHostMode = (<any>globalThis).isHostMode;
147
- const hostMenuItems = (<any>globalThis).hostMenuItems;
148
- return isHostMode ? hostMenuItems() : this.menuService.menuItems();
149
- }
150
-
151
- getLocalText(text: any): string {
152
- return this.translateJsonPipe.transform(text);
153
- }
154
-
155
- isActiveRouteForNode(node: MenuNode): boolean {
156
- if (!node.routerLink) return false;
157
- const currentUrl = this.router.url;
158
- const hashUrl = currentUrl.indexOf('#') > -1 ? currentUrl.split('#')[1] : currentUrl;
159
- if (hashUrl === node.routerLink || hashUrl === '/' + node.routerLink) return true;
160
- return (
161
- node.routerLink !== '/' &&
162
- (hashUrl.startsWith(node.routerLink + '/') || hashUrl.startsWith('/' + node.routerLink + '/'))
163
- );
164
- }
165
-
166
- // use on collapsed mode
167
- isNodeOrChildActive(node: MenuNode): boolean {
168
- if (this.isActiveRouteForNode(node)) {
169
- return true;
170
- }
171
- if (node.children && node.children.length > 0) {
172
- return node.children.some((child) => this.isNodeOrChildActive(child));
173
- }
174
-
175
- return false;
176
- }
177
-
178
- isTopLevelNodeActive(node: MenuNode): boolean {
179
- return this.isNodeOrChildActive(node);
180
- }
181
-
182
- isChildNodeActive(node: MenuNode): boolean {
183
- return this.isActiveRouteForNode(node);
184
- }
185
-
186
- toggleNode(node: MenuNode, level = 0) {
187
- const wasExpanded = node.expanded;
188
- if (level === 0) {
189
- // Diğer ana menüleri kapat
190
- this.closeOtherTopLevelNodes(node);
191
- }
192
- node.expanded = !wasExpanded;
193
-
194
- this.filteredNodes.set([...this.filteredNodes()]);
195
- }
196
-
197
- private closeOtherTopLevelNodes(exceptNode: MenuNode) {
198
- const nodes = this.menuNodes();
199
- nodes.forEach((node) => {
200
- if (node !== exceptNode) {
201
- node.expanded = false;
202
- this.closeAllChildNodes(node);
203
- }
204
- });
205
- }
206
-
207
- private closeAllChildNodes(node: MenuNode) {
208
- if (node.children) {
209
- node.children.forEach((child) => {
210
- child.expanded = false;
211
- this.closeAllChildNodes(child);
212
- });
213
- }
214
- }
215
-
216
- trackByKey(index: number, node: MenuNode): any {
217
- return node.key;
218
- }
219
-
220
- onMenuItemClick() {
221
- if (this.isMobile()) {
222
- this.layoutService.closeMobileMenu();
223
- }
224
-
225
- this.searchTerm.set('');
226
- this.filteredNodes.set(this.menuNodes() || []);
227
- }
228
-
229
- onActionItemClick(node: MenuNode, event: Event) {
230
- event.preventDefault();
231
- event.stopPropagation();
232
-
233
- if (!node.action || node.actionLoading) return;
234
-
235
- // Cancel any previous action request
236
- this.actionSubscription?.unsubscribe();
237
-
238
- node.actionLoading = true;
239
-
240
- const request$ =
241
- node.action.method === 'GET' ?
242
- this.http.get(node.action.url)
243
- : this.http.post(node.action.url, node.action.body ?? {});
244
-
245
- this.actionSubscription = request$.subscribe({
246
- next: (response: any) => {
247
- node.actionLoading = false;
248
- const route = this.buildSuccessRoute(node.action!, response);
249
- this.router.navigate([route]);
250
- this.onMenuItemClick();
251
- },
252
- error: () => {
253
- node.actionLoading = false;
254
- }
255
- });
256
- }
257
-
258
- private buildSuccessRoute(action: MenuItemAction, response: any): string {
259
- if (!action.successRouteResponseKey) return action.successRoute;
260
-
261
- const value = this.getValueByPath(response, action.successRouteResponseKey);
262
- if (value === undefined || value === null) return action.successRoute;
263
-
264
- return `${action.successRoute}/${value}`;
265
- }
266
-
267
- private getValueByPath(obj: any, path: string): any {
268
- if (!obj || !path) return undefined;
269
-
270
- return path.split('.').reduce((current, key) => {
271
- if (current === undefined || current === null) return undefined;
272
-
273
- // Handle array access like 'result[0]'
274
- const arrayMatch = key.match(/^(.+?)\[(\d+)\]$/);
275
- if (arrayMatch) {
276
- const arrayKey = arrayMatch[1];
277
- const index = parseInt(arrayMatch[2], 10);
278
- return current[arrayKey]?.[index];
279
- }
280
-
281
- return current[key];
282
- }, obj);
283
- }
284
-
285
- onCollapsedItemClick(node: MenuNode) {
286
- if (this.isCollapsed) {
287
- this.layoutService.onMenuToggle();
288
- }
289
- this.closeOtherTopLevelNodes(node);
290
- if (node.children && node.children.length > 0) {
291
- node.expanded = true;
292
- }
293
- this.filteredNodes.set([...this.filteredNodes()]);
294
- if (node.routerLink) {
295
- this.onMenuItemClick();
296
- }
297
- }
298
-
299
- onSearchChange(): void {
300
- const currentSearchTerm = this.searchTerm()?.toLowerCase()?.trim();
301
- if (!currentSearchTerm) {
302
- this.filteredNodes.set(this.menuNodes() || []);
303
- return;
304
- }
305
- this.filteredNodes.set(this.filterNodes(this.menuNodes(), currentSearchTerm));
306
- }
307
-
308
- private filterNodes(nodes: MenuNode[], searchTerm: string): MenuNode[] {
309
- const filtered: MenuNode[] = [];
310
- const currentLang = this.translocoService.getActiveLang();
311
-
312
- for (const node of nodes) {
313
- // Convert label to string for search based on active language
314
- const labelText =
315
- typeof node.label === 'string' ?
316
- node.label
317
- : (node.label as any)?.[currentLang] || (node.label as any)?.tr || (node.label as any)?.en || '';
318
-
319
- const matches = labelText.toLowerCase().includes(searchTerm);
320
- let filteredChildren: MenuNode[] = [];
321
-
322
- if (node.children) {
323
- filteredChildren = this.filterNodes(node.children, searchTerm);
324
- }
325
-
326
- if (matches || filteredChildren.length > 0) {
327
- filtered.push({
328
- ...node,
329
- children: filteredChildren.length > 0 ? filteredChildren : node.children,
330
- expanded: filteredChildren.length > 0
331
- });
332
- }
333
- }
334
-
335
- return filtered;
336
- }
337
- }
1
+ import { NgClass, NgTemplateOutlet } from '@angular/common';
2
+ import { HttpClient } from '@angular/common/http';
3
+ import { Component, OnDestroy, OnInit, Signal, signal } from '@angular/core';
4
+ import { toSignal } from '@angular/core/rxjs-interop';
5
+ import { FormsModule } from '@angular/forms';
6
+ import { NavigationEnd, Router, RouterLink } from '@angular/router';
7
+
8
+ import { ScrollPanelModule } from 'primeng/scrollpanel';
9
+ import { TooltipModule } from 'primeng/tooltip';
10
+
11
+ import { TranslocoModule, TranslocoService } from '@ngneat/transloco';
12
+ import { Subscription, filter } from 'rxjs';
13
+
14
+ import { bridge } from 'aril/boot/bridge';
15
+ import { MenuItemAction, PluginMenuItem } from 'aril/boot/config/apps';
16
+ import { TranslateJsonPipe } from 'aril/util/pipes';
17
+
18
+ import { LayoutService } from '../../service/app.layout.service';
19
+ import { AppMenuService } from '../../service/app.menu.service';
20
+
21
+ interface MenuNode {
22
+ key: string;
23
+ label: any;
24
+ icon?: string;
25
+ routerLink?: string;
26
+ action?: MenuItemAction;
27
+ children?: MenuNode[];
28
+ expanded: boolean;
29
+ actionLoading?: boolean;
30
+ }
31
+
32
+ @Component({
33
+ standalone: true,
34
+ selector: 'app-static-sidebar',
35
+ imports: [RouterLink, NgClass, NgTemplateOutlet, ScrollPanelModule, TooltipModule, FormsModule, TranslocoModule],
36
+ templateUrl: './static-sidebar.component.html',
37
+ styleUrl: './static-sidebar.component.scss',
38
+ providers: [TranslateJsonPipe]
39
+ })
40
+ export class StaticSidebarComponent implements OnInit, OnDestroy {
41
+ activeLang: Signal<string>;
42
+ menuNodes = signal<MenuNode[]>([]);
43
+ filteredNodes = signal<MenuNode[]>([]);
44
+ searchTerm = signal<string>('');
45
+
46
+ private routerSubscription: Subscription | null = null;
47
+ private actionSubscription: Subscription | null = null;
48
+
49
+ private readonly MAX_LENGTH = { level0: 25, level1: 20, level2: 16, level3: 13 };
50
+
51
+ constructor(
52
+ private readonly menuService: AppMenuService,
53
+ private readonly router: Router,
54
+ private readonly layoutService: LayoutService,
55
+ private readonly translateJsonPipe: TranslateJsonPipe,
56
+ private readonly translocoService: TranslocoService,
57
+ private readonly http: HttpClient
58
+ ) {
59
+ this.activeLang = toSignal(this.translocoService.langChanges$, { initialValue: 'tr' });
60
+ }
61
+
62
+ get isCollapsed(): boolean {
63
+ return this.layoutService.isStaticSidebarCollapsed();
64
+ }
65
+
66
+ get topLevelNodes(): MenuNode[] {
67
+ return this.menuNodes();
68
+ }
69
+
70
+ ngOnInit() {
71
+ this.buildMenuTree();
72
+ this.routerSubscription = this.router.events
73
+ .pipe(filter((event) => event instanceof NavigationEnd))
74
+ .subscribe(() => this.buildMenuTree());
75
+ }
76
+
77
+ ngOnDestroy() {
78
+ this.routerSubscription?.unsubscribe();
79
+ this.actionSubscription?.unsubscribe();
80
+ }
81
+
82
+ isTextTruncated(label: any, lang: string | null, level = 0): boolean {
83
+ if (!label || !lang || !label[lang]) return false;
84
+ const text = label[lang];
85
+ const len = text.length;
86
+ const limits = [this.MAX_LENGTH.level0, this.MAX_LENGTH.level1, this.MAX_LENGTH.level2, this.MAX_LENGTH.level3];
87
+ return len > limits[Math.min(level, 3)];
88
+ }
89
+
90
+ isMobile(): boolean {
91
+ return this.layoutService.isMobile();
92
+ }
93
+
94
+ buildMenuTree() {
95
+ const menuItems = this.getMenuItems();
96
+ const nodes = this.convertToMenuNodes(menuItems);
97
+ this.menuNodes.set(nodes);
98
+ this.filteredNodes.set([...nodes]);
99
+ this.expandActiveMenu();
100
+ }
101
+
102
+ private expandActiveMenu() {
103
+ const nodes = this.menuNodes();
104
+ this.findAndExpandActiveNode(nodes);
105
+ this.filteredNodes.set([...this.filteredNodes()]);
106
+ }
107
+
108
+ private findAndExpandActiveNode(nodes: MenuNode[]): MenuNode | null {
109
+ for (const node of nodes) {
110
+ if (this.isActiveRouteForNode(node)) {
111
+ return node;
112
+ }
113
+
114
+ if (node.children && node.children.length > 0) {
115
+ const activeChild = this.findAndExpandActiveNode(node.children);
116
+ if (activeChild) {
117
+ // we find active child and then opened its parent nodes
118
+ node.expanded = true;
119
+ return activeChild;
120
+ }
121
+ }
122
+ }
123
+ return null;
124
+ }
125
+
126
+ convertToMenuNodes(items: PluginMenuItem[], parentKey = ''): MenuNode[] {
127
+ return items
128
+ .filter((item) => !item.separator)
129
+ .map((item, index) => {
130
+ const key = parentKey ? `${parentKey}-${index}` : `${index}`;
131
+ const node: MenuNode = {
132
+ key,
133
+ label: item.label,
134
+ icon: item.icon,
135
+ routerLink: item.action ? undefined : item.routerLink,
136
+ action: item.action,
137
+ expanded: false
138
+ };
139
+ if (item.items && item.items.length > 0) {
140
+ node.children = this.convertToMenuNodes(item.items, key);
141
+ }
142
+ return node;
143
+ });
144
+ }
145
+
146
+ getMenuItems(): PluginMenuItem[] {
147
+ return bridge.isHostMode() ? bridge.hostMenuItems() : this.menuService.menuItems();
148
+ }
149
+
150
+ getLocalText(text: any): string {
151
+ return this.translateJsonPipe.transform(text);
152
+ }
153
+
154
+ isActiveRouteForNode(node: MenuNode): boolean {
155
+ if (!node.routerLink) return false;
156
+ const currentUrl = this.router.url;
157
+ const hashUrl = currentUrl.indexOf('#') > -1 ? currentUrl.split('#')[1] : currentUrl;
158
+ if (hashUrl === node.routerLink || hashUrl === '/' + node.routerLink) return true;
159
+ return (
160
+ node.routerLink !== '/' &&
161
+ (hashUrl.startsWith(node.routerLink + '/') || hashUrl.startsWith('/' + node.routerLink + '/'))
162
+ );
163
+ }
164
+
165
+ // use on collapsed mode
166
+ isNodeOrChildActive(node: MenuNode): boolean {
167
+ if (this.isActiveRouteForNode(node)) {
168
+ return true;
169
+ }
170
+ if (node.children && node.children.length > 0) {
171
+ return node.children.some((child) => this.isNodeOrChildActive(child));
172
+ }
173
+
174
+ return false;
175
+ }
176
+
177
+ isTopLevelNodeActive(node: MenuNode): boolean {
178
+ return this.isNodeOrChildActive(node);
179
+ }
180
+
181
+ isChildNodeActive(node: MenuNode): boolean {
182
+ return this.isActiveRouteForNode(node);
183
+ }
184
+
185
+ toggleNode(node: MenuNode, level = 0) {
186
+ const wasExpanded = node.expanded;
187
+ if (level === 0) {
188
+ // Diğer ana menüleri kapat
189
+ this.closeOtherTopLevelNodes(node);
190
+ }
191
+ node.expanded = !wasExpanded;
192
+
193
+ this.filteredNodes.set([...this.filteredNodes()]);
194
+ }
195
+
196
+ private closeOtherTopLevelNodes(exceptNode: MenuNode) {
197
+ const nodes = this.menuNodes();
198
+ nodes.forEach((node) => {
199
+ if (node !== exceptNode) {
200
+ node.expanded = false;
201
+ this.closeAllChildNodes(node);
202
+ }
203
+ });
204
+ }
205
+
206
+ private closeAllChildNodes(node: MenuNode) {
207
+ if (node.children) {
208
+ node.children.forEach((child) => {
209
+ child.expanded = false;
210
+ this.closeAllChildNodes(child);
211
+ });
212
+ }
213
+ }
214
+
215
+ trackByKey(index: number, node: MenuNode): any {
216
+ return node.key;
217
+ }
218
+
219
+ onMenuItemClick() {
220
+ if (this.isMobile()) {
221
+ this.layoutService.closeMobileMenu();
222
+ }
223
+
224
+ this.searchTerm.set('');
225
+ this.filteredNodes.set(this.menuNodes() || []);
226
+ }
227
+
228
+ onActionItemClick(node: MenuNode, event: Event) {
229
+ event.preventDefault();
230
+ event.stopPropagation();
231
+
232
+ if (!node.action || node.actionLoading) return;
233
+
234
+ // Cancel any previous action request
235
+ this.actionSubscription?.unsubscribe();
236
+
237
+ node.actionLoading = true;
238
+
239
+ const request$ =
240
+ node.action.method === 'GET' ?
241
+ this.http.get(node.action.url)
242
+ : this.http.post(node.action.url, node.action.body ?? {});
243
+
244
+ this.actionSubscription = request$.subscribe({
245
+ next: (response: any) => {
246
+ node.actionLoading = false;
247
+ const route = this.buildSuccessRoute(node.action!, response);
248
+ this.router.navigate([route]);
249
+ this.onMenuItemClick();
250
+ },
251
+ error: () => {
252
+ node.actionLoading = false;
253
+ }
254
+ });
255
+ }
256
+
257
+ private buildSuccessRoute(action: MenuItemAction, response: any): string {
258
+ if (!action.successRouteResponseKey) return action.successRoute;
259
+
260
+ const value = this.getValueByPath(response, action.successRouteResponseKey);
261
+ if (value === undefined || value === null) return action.successRoute;
262
+
263
+ return `${action.successRoute}/${value}`;
264
+ }
265
+
266
+ private getValueByPath(obj: any, path: string): any {
267
+ if (!obj || !path) return undefined;
268
+
269
+ return path.split('.').reduce((current, key) => {
270
+ if (current === undefined || current === null) return undefined;
271
+
272
+ // Handle array access like 'result[0]'
273
+ const arrayMatch = key.match(/^(.+?)\[(\d+)\]$/);
274
+ if (arrayMatch) {
275
+ const arrayKey = arrayMatch[1];
276
+ const index = parseInt(arrayMatch[2], 10);
277
+ return current[arrayKey]?.[index];
278
+ }
279
+
280
+ return current[key];
281
+ }, obj);
282
+ }
283
+
284
+ onCollapsedItemClick(node: MenuNode) {
285
+ if (this.isCollapsed) {
286
+ this.layoutService.onMenuToggle();
287
+ }
288
+ this.closeOtherTopLevelNodes(node);
289
+ if (node.children && node.children.length > 0) {
290
+ node.expanded = true;
291
+ }
292
+ this.filteredNodes.set([...this.filteredNodes()]);
293
+ if (node.routerLink) {
294
+ this.onMenuItemClick();
295
+ }
296
+ }
297
+
298
+ onSearchChange(): void {
299
+ const currentSearchTerm = this.searchTerm()?.toLowerCase()?.trim();
300
+ if (!currentSearchTerm) {
301
+ this.filteredNodes.set(this.menuNodes() || []);
302
+ return;
303
+ }
304
+ this.filteredNodes.set(this.filterNodes(this.menuNodes(), currentSearchTerm));
305
+ }
306
+
307
+ private filterNodes(nodes: MenuNode[], searchTerm: string): MenuNode[] {
308
+ const filtered: MenuNode[] = [];
309
+ const currentLang = this.translocoService.getActiveLang();
310
+
311
+ for (const node of nodes) {
312
+ // Convert label to string for search based on active language
313
+ const labelText =
314
+ typeof node.label === 'string' ?
315
+ node.label
316
+ : (node.label as any)?.[currentLang] || (node.label as any)?.tr || (node.label as any)?.en || '';
317
+
318
+ const matches = labelText.toLowerCase().includes(searchTerm);
319
+ let filteredChildren: MenuNode[] = [];
320
+
321
+ if (node.children) {
322
+ filteredChildren = this.filterNodes(node.children, searchTerm);
323
+ }
324
+
325
+ if (matches || filteredChildren.length > 0) {
326
+ filtered.push({
327
+ ...node,
328
+ children: filteredChildren.length > 0 ? filteredChildren : node.children,
329
+ expanded: filteredChildren.length > 0
330
+ });
331
+ }
332
+ }
333
+
334
+ return filtered;
335
+ }
336
+ }