@alfresco/aca-shared 1.12.0 → 4.0.0-A.2-9919

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 (297) hide show
  1. package/README.md +2 -1
  2. package/esm2020/alfresco-aca-shared.mjs +5 -0
  3. package/esm2020/lib/adf-extensions/extensions-data-loader.guard.mjs +74 -0
  4. package/esm2020/lib/components/document-base-page/document-base-page.component.mjs +160 -0
  5. package/esm2020/lib/components/document-base-page/document-base-page.service.mjs +10 -0
  6. package/esm2020/lib/components/generic-error/generic-error.component.mjs +42 -0
  7. package/esm2020/lib/components/generic-error/generic-error.module.mjs +45 -0
  8. package/esm2020/lib/components/info-drawer/info-drawer.component.mjs +124 -0
  9. package/esm2020/lib/components/info-drawer/shared-info-drawer.module.mjs +47 -0
  10. package/esm2020/lib/components/locked-by/locked-by.component.mjs +53 -0
  11. package/esm2020/lib/components/locked-by/locked-by.module.mjs +45 -0
  12. package/esm2020/lib/components/page-layout/page-layout-content.component.mjs +49 -0
  13. package/{esm2015/lib/models/types.js → esm2020/lib/components/page-layout/page-layout-error.component.mjs} +16 -42
  14. package/esm2020/lib/components/page-layout/page-layout-header.component.mjs +41 -0
  15. package/esm2020/lib/components/page-layout/page-layout.component.mjs +41 -0
  16. package/esm2020/lib/components/page-layout/page-layout.module.mjs +45 -0
  17. package/esm2020/lib/components/tool-bar/shared-toolbar.module.mjs +47 -0
  18. package/esm2020/lib/components/tool-bar/toolbar-action/toolbar-action.component.mjs +58 -0
  19. package/esm2020/lib/components/tool-bar/toolbar-button/toolbar-button.component.mjs +67 -0
  20. package/esm2020/lib/components/tool-bar/toolbar-menu/toolbar-menu.component.mjs +78 -0
  21. package/esm2020/lib/components/tool-bar/toolbar-menu-item/toolbar-menu-item.component.mjs +69 -0
  22. package/esm2020/lib/directives/contextmenu/contextmenu.directive.mjs +107 -0
  23. package/{esm2015/lib/components/locked-by/locked-by.module.js → esm2020/lib/directives/contextmenu/contextmenu.module.mjs} +17 -16
  24. package/esm2020/lib/directives/pagination.directive.mjs +55 -0
  25. package/esm2020/lib/directives/shared.directives.module.mjs +42 -0
  26. package/esm2020/lib/models/modal-configuration.mjs +2 -0
  27. package/esm2020/lib/models/types.mjs +26 -0
  28. package/esm2020/lib/models/viewer.rules.mjs +26 -0
  29. package/esm2020/lib/routing/shared.guard.mjs +49 -0
  30. package/esm2020/lib/services/alfresco-office-extension.service.mjs +64 -0
  31. package/esm2020/lib/services/app-hook.service.mjs +88 -0
  32. package/esm2020/lib/services/app.extension.service.mjs +453 -0
  33. package/esm2020/lib/services/app.service.mjs +213 -0
  34. package/esm2020/lib/services/content-api.service.mjs +268 -0
  35. package/esm2020/lib/services/node-permission.service.mjs +90 -0
  36. package/esm2020/lib/services/router.extension.service.mjs +106 -0
  37. package/esm2020/lib/shared.module.mjs +49 -0
  38. package/esm2020/lib/testing/lib-testing-module.mjs +118 -0
  39. package/esm2020/lib/testing/translation.service.mjs +45 -0
  40. package/esm2020/lib/utils/node.utils.mjs +34 -0
  41. package/esm2020/public-api.mjs +63 -0
  42. package/esm2020/rules/alfresco-aca-shared-rules.mjs +5 -0
  43. package/esm2020/rules/app.rules.mjs +503 -0
  44. package/esm2020/rules/navigation.rules.mjs +152 -0
  45. package/{esm5/store/store.module.js → esm2020/rules/public-api.mjs} +5 -23
  46. package/{esm5/store/actions/metadata-aspect.actions.js → esm2020/rules/repository.rules.mjs} +9 -20
  47. package/{esm2015/rules/repository.rules.js → esm2020/rules/user.rules.mjs} +4 -12
  48. package/esm2020/store/actions/app-action-types.mjs +48 -0
  49. package/esm2020/store/actions/app.actions.mjs +135 -0
  50. package/esm2020/store/actions/context-menu-action-types.mjs +29 -0
  51. package/esm2020/store/actions/contextmenu.actions.mjs +32 -0
  52. package/esm2020/store/actions/library.actions.mjs +64 -0
  53. package/{esm5/lib/components/locked-by/locked-by.module.js → esm2020/store/actions/metadata-aspect.actions.mjs} +7 -21
  54. package/esm2020/store/actions/node.actions.mjs +189 -0
  55. package/esm2020/store/actions/router-action-types.mjs +33 -0
  56. package/esm2020/store/actions/router.actions.mjs +55 -0
  57. package/{esm2015/lib/components/page-layout/page-layout-content.component.js → esm2020/store/actions/search.actions.mjs} +10 -27
  58. package/esm2020/store/actions/snackbar.actions.mjs +58 -0
  59. package/esm2020/store/actions/template-action-types.mjs +32 -0
  60. package/esm2020/store/actions/template.actions.mjs +48 -0
  61. package/esm2020/store/actions/upload.actions.mjs +50 -0
  62. package/esm2020/store/actions/viewer.actions.mjs +82 -0
  63. package/esm2020/store/alfresco-aca-shared-store.mjs +5 -0
  64. package/esm2020/store/effects/dialog.effects.mjs +45 -0
  65. package/esm2020/store/effects/router.effects.mjs +117 -0
  66. package/esm2020/store/effects/snackbar.effects.mjs +86 -0
  67. package/esm2020/store/models/delete-status.model.mjs +26 -0
  68. package/esm2020/store/models/deleted-node-info.model.mjs +26 -0
  69. package/esm2020/store/models/modal-configuration.mjs +2 -0
  70. package/{esm2015/lib/components/page-layout/page-layout-error.component.js → esm2020/store/models/node-info.model.mjs} +2 -19
  71. package/{esm5/lib/components/page-layout/page-layout-error.component.js → esm2020/store/models/search-option.model.mjs} +7 -21
  72. package/esm2020/store/public-api.mjs +50 -0
  73. package/esm2020/store/selectors/app.selectors.mjs +60 -0
  74. package/{esm5/lib/directives/shared.directives.module.js → esm2020/store/states/app.state.mjs} +3 -21
  75. package/esm2020/store/store.module.mjs +43 -0
  76. package/fesm2015/alfresco-aca-shared-rules.mjs +751 -0
  77. package/fesm2015/alfresco-aca-shared-rules.mjs.map +1 -0
  78. package/fesm2015/alfresco-aca-shared-store.mjs +1327 -0
  79. package/fesm2015/alfresco-aca-shared-store.mjs.map +1 -0
  80. package/fesm2015/alfresco-aca-shared.mjs +2726 -0
  81. package/fesm2015/alfresco-aca-shared.mjs.map +1 -0
  82. package/{fesm2015/alfresco-aca-shared-rules.js → fesm2020/alfresco-aca-shared-rules.mjs} +273 -353
  83. package/fesm2020/alfresco-aca-shared-rules.mjs.map +1 -0
  84. package/fesm2020/alfresco-aca-shared-store.mjs +1406 -0
  85. package/fesm2020/alfresco-aca-shared-store.mjs.map +1 -0
  86. package/fesm2020/alfresco-aca-shared.mjs +2841 -0
  87. package/fesm2020/alfresco-aca-shared.mjs.map +1 -0
  88. package/{rules/alfresco-aca-shared-rules.d.ts → index.d.ts} +1 -0
  89. package/lib/adf-extensions/extensions-data-loader.guard.d.ts +4 -1
  90. package/lib/components/document-base-page/document-base-page.component.d.ts +74 -0
  91. package/lib/components/document-base-page/document-base-page.service.d.ts +5 -0
  92. package/lib/components/generic-error/generic-error.component.d.ts +3 -24
  93. package/lib/components/generic-error/generic-error.module.d.ts +8 -24
  94. package/lib/components/info-drawer/info-drawer.component.d.ts +6 -0
  95. package/lib/components/info-drawer/shared-info-drawer.module.d.ts +11 -24
  96. package/lib/components/locked-by/locked-by.component.d.ts +5 -30
  97. package/lib/components/locked-by/locked-by.module.d.ts +8 -24
  98. package/lib/components/page-layout/page-layout-content.component.d.ts +3 -24
  99. package/lib/components/page-layout/page-layout-error.component.d.ts +3 -24
  100. package/lib/components/page-layout/page-layout-header.component.d.ts +3 -24
  101. package/lib/components/page-layout/page-layout.component.d.ts +3 -24
  102. package/lib/components/page-layout/page-layout.module.d.ts +9 -24
  103. package/lib/components/tool-bar/shared-toolbar.module.d.ts +11 -24
  104. package/lib/components/tool-bar/toolbar-action/toolbar-action.component.d.ts +7 -2
  105. package/lib/components/tool-bar/toolbar-button/toolbar-button.component.d.ts +5 -25
  106. package/lib/components/tool-bar/toolbar-menu/toolbar-menu.component.d.ts +15 -6
  107. package/lib/components/tool-bar/toolbar-menu-item/toolbar-menu-item.component.d.ts +7 -27
  108. package/lib/directives/contextmenu/contextmenu.directive.d.ts +5 -1
  109. package/lib/directives/contextmenu/contextmenu.module.d.ts +5 -24
  110. package/lib/directives/pagination.directive.d.ts +3 -0
  111. package/lib/directives/shared.directives.module.d.ts +6 -24
  112. package/lib/models/modal-configuration.d.ts +3 -0
  113. package/lib/models/viewer.rules.d.ts +4 -0
  114. package/lib/routing/shared.guard.d.ts +3 -24
  115. package/lib/services/alfresco-office-extension.service.d.ts +11 -0
  116. package/lib/services/app-hook.service.d.ts +55 -0
  117. package/lib/services/app.extension.service.d.ts +31 -53
  118. package/lib/services/app.service.d.ts +43 -7
  119. package/lib/services/content-api.service.d.ts +35 -25
  120. package/lib/services/node-permission.service.d.ts +3 -24
  121. package/lib/services/router.extension.service.d.ts +21 -0
  122. package/lib/shared.module.d.ts +6 -1
  123. package/lib/testing/lib-testing-module.d.ts +43 -0
  124. package/lib/testing/translation.service.d.ts +10 -0
  125. package/package.json +58 -21
  126. package/public-api.d.ts +19 -5
  127. package/rules/app.rules.d.ts +104 -30
  128. package/{store/alfresco-aca-shared-store.d.ts → rules/index.d.ts} +1 -0
  129. package/rules/navigation.rules.d.ts +6 -6
  130. package/rules/repository.rules.d.ts +2 -1
  131. package/rules/user.rules.d.ts +1 -1
  132. package/store/actions/app-action-types.d.ts +46 -0
  133. package/store/actions/app.actions.d.ts +25 -18
  134. package/{lib/routing/app.routes.strategy.d.ts → store/actions/context-menu-action-types.d.ts} +2 -15
  135. package/store/actions/contextmenu.actions.d.ts +1 -3
  136. package/store/actions/library.actions.d.ts +3 -1
  137. package/store/actions/node.actions.d.ts +33 -7
  138. package/store/actions/router-action-types.d.ts +31 -0
  139. package/store/actions/router.actions.d.ts +5 -6
  140. package/store/actions/search.actions.d.ts +1 -13
  141. package/store/actions/snackbar.actions.d.ts +8 -11
  142. package/store/actions/template-action-types.d.ts +30 -0
  143. package/store/actions/template.actions.d.ts +1 -6
  144. package/store/actions/upload.actions.d.ts +3 -1
  145. package/store/actions/viewer.actions.d.ts +22 -1
  146. package/store/effects/dialog.effects.d.ts +4 -1
  147. package/store/effects/router.effects.d.ts +11 -29
  148. package/store/effects/snackbar.effects.d.ts +6 -3
  149. package/store/index.d.ts +5 -0
  150. package/store/models/modal-configuration.d.ts +3 -0
  151. package/store/public-api.d.ts +4 -0
  152. package/store/selectors/app.selectors.d.ts +33 -19
  153. package/store/states/app.state.d.ts +10 -2
  154. package/store/store.module.d.ts +5 -24
  155. package/alfresco-aca-shared.d.ts +0 -11
  156. package/alfresco-aca-shared.metadata.json +0 -1
  157. package/bundles/alfresco-aca-shared-rules.umd.js +0 -895
  158. package/bundles/alfresco-aca-shared-rules.umd.js.map +0 -1
  159. package/bundles/alfresco-aca-shared-rules.umd.min.js +0 -75
  160. package/bundles/alfresco-aca-shared-rules.umd.min.js.map +0 -1
  161. package/bundles/alfresco-aca-shared-store.umd.js +0 -1399
  162. package/bundles/alfresco-aca-shared-store.umd.js.map +0 -1
  163. package/bundles/alfresco-aca-shared-store.umd.min.js +0 -26
  164. package/bundles/alfresco-aca-shared-store.umd.min.js.map +0 -1
  165. package/bundles/alfresco-aca-shared.umd.js +0 -2845
  166. package/bundles/alfresco-aca-shared.umd.js.map +0 -1
  167. package/bundles/alfresco-aca-shared.umd.min.js +0 -27
  168. package/bundles/alfresco-aca-shared.umd.min.js.map +0 -1
  169. package/esm2015/alfresco-aca-shared.js +0 -16
  170. package/esm2015/lib/adf-extensions/extensions-data-loader.guard.js +0 -106
  171. package/esm2015/lib/components/generic-error/generic-error.component.js +0 -52
  172. package/esm2015/lib/components/generic-error/generic-error.module.js +0 -43
  173. package/esm2015/lib/components/info-drawer/info-drawer.component.js +0 -179
  174. package/esm2015/lib/components/info-drawer/shared-info-drawer.module.js +0 -52
  175. package/esm2015/lib/components/locked-by/locked-by.component.js +0 -74
  176. package/esm2015/lib/components/page-layout/page-layout-header.component.js +0 -41
  177. package/esm2015/lib/components/page-layout/page-layout.component.js +0 -52
  178. package/esm2015/lib/components/page-layout/page-layout.module.js +0 -54
  179. package/esm2015/lib/components/tool-bar/shared-toolbar.module.js +0 -56
  180. package/esm2015/lib/components/tool-bar/toolbar-action/toolbar-action.component.js +0 -81
  181. package/esm2015/lib/components/tool-bar/toolbar-button/toolbar-button.component.js +0 -96
  182. package/esm2015/lib/components/tool-bar/toolbar-menu/toolbar-menu.component.js +0 -69
  183. package/esm2015/lib/components/tool-bar/toolbar-menu-item/toolbar-menu-item.component.js +0 -95
  184. package/esm2015/lib/directives/contextmenu/contextmenu.directive.js +0 -156
  185. package/esm2015/lib/directives/contextmenu/contextmenu.module.js +0 -42
  186. package/esm2015/lib/directives/pagination.directive.js +0 -93
  187. package/esm2015/lib/directives/shared.directives.module.js +0 -41
  188. package/esm2015/lib/models/viewer.rules.js +0 -40
  189. package/esm2015/lib/routing/app.routes.strategy.js +0 -207
  190. package/esm2015/lib/routing/shared.guard.js +0 -70
  191. package/esm2015/lib/services/app.extension.service.js +0 -686
  192. package/esm2015/lib/services/app.service.js +0 -95
  193. package/esm2015/lib/services/content-api.service.js +0 -331
  194. package/esm2015/lib/services/node-permission.service.js +0 -133
  195. package/esm2015/lib/shared.module.js +0 -51
  196. package/esm2015/lib/utils/node.utils.js +0 -53
  197. package/esm2015/public-api.js +0 -53
  198. package/esm2015/rules/alfresco-aca-shared-rules.js +0 -9
  199. package/esm2015/rules/app.rules.js +0 -563
  200. package/esm2015/rules/navigation.rules.js +0 -211
  201. package/esm2015/rules/public-api.js +0 -33
  202. package/esm2015/rules/user.rules.js +0 -38
  203. package/esm2015/store/actions/app.actions.js +0 -234
  204. package/esm2015/store/actions/contextmenu.actions.js +0 -49
  205. package/esm2015/store/actions/library.actions.js +0 -111
  206. package/esm2015/store/actions/metadata-aspect.actions.js +0 -46
  207. package/esm2015/store/actions/node.actions.js +0 -337
  208. package/esm2015/store/actions/router.actions.js +0 -97
  209. package/esm2015/store/actions/search.actions.js +0 -83
  210. package/esm2015/store/actions/snackbar.actions.js +0 -138
  211. package/esm2015/store/actions/template.actions.js +0 -85
  212. package/esm2015/store/actions/upload.actions.js +0 -81
  213. package/esm2015/store/actions/viewer.actions.js +0 -115
  214. package/esm2015/store/alfresco-aca-shared-store.js +0 -9
  215. package/esm2015/store/effects/dialog.effects.js +0 -72
  216. package/esm2015/store/effects/router.effects.js +0 -192
  217. package/esm2015/store/effects/snackbar.effects.js +0 -144
  218. package/esm2015/store/models/delete-status.model.js +0 -55
  219. package/esm2015/store/models/deleted-node-info.model.js +0 -41
  220. package/esm2015/store/models/node-info.model.js +0 -45
  221. package/esm2015/store/models/search-option.model.js +0 -52
  222. package/esm2015/store/public-api.js +0 -50
  223. package/esm2015/store/selectors/app.selectors.js +0 -82
  224. package/esm2015/store/states/app.state.js +0 -71
  225. package/esm2015/store/store.module.js +0 -43
  226. package/esm5/alfresco-aca-shared.js +0 -16
  227. package/esm5/lib/adf-extensions/extensions-data-loader.guard.js +0 -115
  228. package/esm5/lib/components/generic-error/generic-error.component.js +0 -54
  229. package/esm5/lib/components/generic-error/generic-error.module.js +0 -47
  230. package/esm5/lib/components/info-drawer/info-drawer.component.js +0 -209
  231. package/esm5/lib/components/info-drawer/shared-info-drawer.module.js +0 -56
  232. package/esm5/lib/components/locked-by/locked-by.component.js +0 -80
  233. package/esm5/lib/components/page-layout/page-layout-content.component.js +0 -53
  234. package/esm5/lib/components/page-layout/page-layout-header.component.js +0 -45
  235. package/esm5/lib/components/page-layout/page-layout.component.js +0 -54
  236. package/esm5/lib/components/page-layout/page-layout.module.js +0 -58
  237. package/esm5/lib/components/tool-bar/shared-toolbar.module.js +0 -60
  238. package/esm5/lib/components/tool-bar/toolbar-action/toolbar-action.component.js +0 -88
  239. package/esm5/lib/components/tool-bar/toolbar-button/toolbar-button.component.js +0 -103
  240. package/esm5/lib/components/tool-bar/toolbar-menu/toolbar-menu.component.js +0 -80
  241. package/esm5/lib/components/tool-bar/toolbar-menu-item/toolbar-menu-item.component.js +0 -103
  242. package/esm5/lib/directives/contextmenu/contextmenu.directive.js +0 -187
  243. package/esm5/lib/directives/contextmenu/contextmenu.module.js +0 -46
  244. package/esm5/lib/directives/pagination.directive.js +0 -97
  245. package/esm5/lib/models/types.js +0 -67
  246. package/esm5/lib/models/viewer.rules.js +0 -40
  247. package/esm5/lib/routing/app.routes.strategy.js +0 -268
  248. package/esm5/lib/routing/shared.guard.js +0 -77
  249. package/esm5/lib/services/app.extension.service.js +0 -835
  250. package/esm5/lib/services/app.service.js +0 -100
  251. package/esm5/lib/services/content-api.service.js +0 -495
  252. package/esm5/lib/services/node-permission.service.js +0 -161
  253. package/esm5/lib/shared.module.js +0 -58
  254. package/esm5/lib/utils/node.utils.js +0 -53
  255. package/esm5/public-api.js +0 -53
  256. package/esm5/rules/alfresco-aca-shared-rules.js +0 -9
  257. package/esm5/rules/app.rules.js +0 -563
  258. package/esm5/rules/navigation.rules.js +0 -211
  259. package/esm5/rules/public-api.js +0 -33
  260. package/esm5/rules/repository.rules.js +0 -38
  261. package/esm5/rules/user.rules.js +0 -38
  262. package/esm5/store/actions/app.actions.js +0 -232
  263. package/esm5/store/actions/contextmenu.actions.js +0 -48
  264. package/esm5/store/actions/library.actions.js +0 -108
  265. package/esm5/store/actions/node.actions.js +0 -322
  266. package/esm5/store/actions/router.actions.js +0 -93
  267. package/esm5/store/actions/search.actions.js +0 -87
  268. package/esm5/store/actions/snackbar.actions.js +0 -130
  269. package/esm5/store/actions/template.actions.js +0 -87
  270. package/esm5/store/actions/upload.actions.js +0 -78
  271. package/esm5/store/actions/viewer.actions.js +0 -109
  272. package/esm5/store/alfresco-aca-shared-store.js +0 -9
  273. package/esm5/store/effects/dialog.effects.js +0 -71
  274. package/esm5/store/effects/router.effects.js +0 -207
  275. package/esm5/store/effects/snackbar.effects.js +0 -154
  276. package/esm5/store/models/delete-status.model.js +0 -55
  277. package/esm5/store/models/deleted-node-info.model.js +0 -41
  278. package/esm5/store/models/node-info.model.js +0 -45
  279. package/esm5/store/models/search-option.model.js +0 -52
  280. package/esm5/store/public-api.js +0 -50
  281. package/esm5/store/selectors/app.selectors.js +0 -82
  282. package/esm5/store/states/app.state.js +0 -71
  283. package/fesm2015/alfresco-aca-shared-rules.js.map +0 -1
  284. package/fesm2015/alfresco-aca-shared-store.js +0 -1354
  285. package/fesm2015/alfresco-aca-shared-store.js.map +0 -1
  286. package/fesm2015/alfresco-aca-shared.js +0 -2096
  287. package/fesm2015/alfresco-aca-shared.js.map +0 -1
  288. package/fesm5/alfresco-aca-shared-rules.js +0 -827
  289. package/fesm5/alfresco-aca-shared-rules.js.map +0 -1
  290. package/fesm5/alfresco-aca-shared-store.js +0 -1278
  291. package/fesm5/alfresco-aca-shared-store.js.map +0 -1
  292. package/fesm5/alfresco-aca-shared.js +0 -2637
  293. package/fesm5/alfresco-aca-shared.js.map +0 -1
  294. package/rules/alfresco-aca-shared-rules.metadata.json +0 -1
  295. package/rules/package.json +0 -13
  296. package/store/alfresco-aca-shared-store.metadata.json +0 -1
  297. package/store/package.json +0 -13
@@ -0,0 +1 @@
1
+ {"version":3,"file":"alfresco-aca-shared.mjs","sources":["../../../../projects/aca-shared/src/lib/adf-extensions/extensions-data-loader.guard.ts","../../../../projects/aca-shared/src/lib/components/page-layout/page-layout-content.component.ts","../../../../projects/aca-shared/src/lib/components/page-layout/page-layout-error.component.ts","../../../../projects/aca-shared/src/lib/components/page-layout/page-layout-header.component.ts","../../../../projects/aca-shared/src/lib/components/page-layout/page-layout.component.ts","../../../../projects/aca-shared/src/lib/components/page-layout/page-layout.component.html","../../../../projects/aca-shared/src/lib/components/page-layout/page-layout.module.ts","../../../../projects/aca-shared/src/lib/components/locked-by/locked-by.component.ts","../../../../projects/aca-shared/src/lib/components/locked-by/locked-by.module.ts","../../../../projects/aca-shared/src/lib/components/generic-error/generic-error.component.ts","../../../../projects/aca-shared/src/lib/components/generic-error/generic-error.component.html","../../../../projects/aca-shared/src/lib/components/generic-error/generic-error.module.ts","../../../../projects/aca-shared/src/lib/services/node-permission.service.ts","../../../../projects/aca-shared/src/lib/services/app.extension.service.ts","../../../../projects/aca-shared/src/lib/components/tool-bar/toolbar-menu-item/toolbar-menu-item.component.ts","../../../../projects/aca-shared/src/lib/components/tool-bar/toolbar-menu-item/toolbar-menu-item.component.html","../../../../projects/aca-shared/src/lib/components/tool-bar/toolbar-menu/toolbar-menu.component.ts","../../../../projects/aca-shared/src/lib/components/tool-bar/toolbar-menu/toolbar-menu.component.html","../../../../projects/aca-shared/src/lib/components/tool-bar/toolbar-button/toolbar-button.component.ts","../../../../projects/aca-shared/src/lib/components/tool-bar/toolbar-button/toolbar-button.component.html","../../../../projects/aca-shared/src/lib/components/tool-bar/toolbar-action/toolbar-action.component.ts","../../../../projects/aca-shared/src/lib/components/tool-bar/toolbar-action/toolbar-action.component.html","../../../../projects/aca-shared/src/lib/components/tool-bar/shared-toolbar.module.ts","../../../../projects/aca-shared/src/lib/services/content-api.service.ts","../../../../projects/aca-shared/src/lib/components/info-drawer/info-drawer.component.ts","../../../../projects/aca-shared/src/lib/components/info-drawer/info-drawer.component.html","../../../../projects/aca-shared/src/lib/components/info-drawer/shared-info-drawer.module.ts","../../../../projects/aca-shared/src/lib/utils/node.utils.ts","../../../../projects/aca-shared/src/lib/components/document-base-page/document-base-page.service.ts","../../../../projects/aca-shared/src/lib/components/document-base-page/document-base-page.component.ts","../../../../projects/aca-shared/src/lib/directives/contextmenu/contextmenu.directive.ts","../../../../projects/aca-shared/src/lib/directives/contextmenu/contextmenu.module.ts","../../../../projects/aca-shared/src/lib/directives/pagination.directive.ts","../../../../projects/aca-shared/src/lib/directives/shared.directives.module.ts","../../../../projects/aca-shared/src/lib/routing/shared.guard.ts","../../../../projects/aca-shared/src/lib/services/router.extension.service.ts","../../../../projects/aca-shared/src/lib/services/app.service.ts","../../../../projects/aca-shared/src/lib/services/app-hook.service.ts","../../../../projects/aca-shared/src/lib/services/alfresco-office-extension.service.ts","../../../../projects/aca-shared/src/lib/shared.module.ts","../../../../projects/aca-shared/src/lib/testing/lib-testing-module.ts","../../../../projects/aca-shared/src/lib/testing/translation.service.ts","../../../../projects/aca-shared/src/public-api.ts","../../../../projects/aca-shared/src/alfresco-aca-shared.ts"],"sourcesContent":["/*!\n * @license\n * Alfresco Example Content Application\n *\n * Copyright (C) 2005 - 2020 Alfresco Software Limited\n *\n * This file is part of the Alfresco Example Content Application.\n * If the software was purchased under a paid Alfresco license, the terms of\n * the paid license agreement will prevail. Otherwise, the software is\n * provided under the following open source license terms:\n *\n * The Alfresco Example Content Application is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * The Alfresco Example Content Application is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * along with Alfresco. If not, see <http://www.gnu.org/licenses/>.\n */\n\nimport { Injectable, InjectionToken, Inject } from '@angular/core';\nimport { CanActivate, ActivatedRouteSnapshot } from '@angular/router';\nimport { Observable, forkJoin, of } from 'rxjs';\nimport { tap, map, catchError } from 'rxjs/operators';\n\nexport type ExtensionLoaderCallback = (route: ActivatedRouteSnapshot) => Observable<boolean>;\n\nexport const DefaultExtensionLoaderFactory = () => [];\n\nexport const EXTENSION_DATA_LOADERS = new InjectionToken<ExtensionLoaderCallback[]>('EXTENSION_DATA_LOADERS', {\n providedIn: 'root',\n factory: DefaultExtensionLoaderFactory\n});\n\n@Injectable({ providedIn: 'root' })\nexport class ExtensionsDataLoaderGuard implements CanActivate {\n private invoked = false;\n\n constructor(\n @Inject(EXTENSION_DATA_LOADERS)\n private extensionDataLoaders: ExtensionLoaderCallback[]\n ) {}\n\n canActivate(route: ActivatedRouteSnapshot): Observable<boolean> {\n if (!this.invoked) {\n if (!this.extensionDataLoaders.length) {\n this.invoked = true;\n return of(true);\n }\n\n const dataLoaderCallbacks = this.extensionDataLoaders.map((callback) => callback(route));\n\n // Undocumented forkJoin behaviour/bug:\n // https://github.com/ReactiveX/rxjs/issues/3246\n // So all callbacks need to emit before completion, otherwise forkJoin will short circuit\n return forkJoin(...dataLoaderCallbacks).pipe(\n map(() => true),\n tap(() => (this.invoked = true)),\n catchError((e) => {\n // eslint-disable-next-line no-console\n console.error('Some of the extension data loader guards has been errored.');\n // eslint-disable-next-line no-console\n console.error(e);\n return of(true);\n })\n );\n } else {\n return of(true);\n }\n }\n\n canActivateChild(): Observable<boolean> {\n return of(true);\n }\n}\n","/*!\n * @license\n * Alfresco Example Content Application\n *\n * Copyright (C) 2005 - 2020 Alfresco Software Limited\n *\n * This file is part of the Alfresco Example Content Application.\n * If the software was purchased under a paid Alfresco license, the terms of\n * the paid license agreement will prevail. Otherwise, the software is\n * provided under the following open source license terms:\n *\n * The Alfresco Example Content Application is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * The Alfresco Example Content Application is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * along with Alfresco. If not, see <http://www.gnu.org/licenses/>.\n */\n\nimport { Component, ViewEncapsulation, ChangeDetectionStrategy, Input, HostBinding } from '@angular/core';\n\n@Component({\n selector: 'aca-page-layout-content',\n template: `<ng-content></ng-content>`,\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: { class: 'aca-page-layout-content' }\n})\nexport class PageLayoutContentComponent {\n @Input()\n @HostBinding('class.scrollable')\n scrollable = false;\n}\n","/*!\n * @license\n * Alfresco Example Content Application\n *\n * Copyright (C) 2005 - 2020 Alfresco Software Limited\n *\n * This file is part of the Alfresco Example Content Application.\n * If the software was purchased under a paid Alfresco license, the terms of\n * the paid license agreement will prevail. Otherwise, the software is\n * provided under the following open source license terms:\n *\n * The Alfresco Example Content Application is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * The Alfresco Example Content Application is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * along with Alfresco. If not, see <http://www.gnu.org/licenses/>.\n */\n\nimport { Component, ViewEncapsulation, ChangeDetectionStrategy } from '@angular/core';\n\n@Component({\n selector: 'aca-page-layout-error',\n template: `<ng-content></ng-content>`,\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: { class: 'aca-page-layout-error' }\n})\nexport class PageLayoutErrorComponent {}\n","/*!\n * @license\n * Alfresco Example Content Application\n *\n * Copyright (C) 2005 - 2020 Alfresco Software Limited\n *\n * This file is part of the Alfresco Example Content Application.\n * If the software was purchased under a paid Alfresco license, the terms of\n * the paid license agreement will prevail. Otherwise, the software is\n * provided under the following open source license terms:\n *\n * The Alfresco Example Content Application is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * The Alfresco Example Content Application is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * along with Alfresco. If not, see <http://www.gnu.org/licenses/>.\n */\n\nimport { Component, ViewEncapsulation, ChangeDetectionStrategy } from '@angular/core';\n\n@Component({\n selector: 'aca-page-layout-header',\n template: '<ng-content></ng-content>',\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: { class: 'aca-page-layout-header' }\n})\nexport class PageLayoutHeaderComponent {}\n","/*!\n * @license\n * Alfresco Example Content Application\n *\n * Copyright (C) 2005 - 2020 Alfresco Software Limited\n *\n * This file is part of the Alfresco Example Content Application.\n * If the software was purchased under a paid Alfresco license, the terms of\n * the paid license agreement will prevail. Otherwise, the software is\n * provided under the following open source license terms:\n *\n * The Alfresco Example Content Application is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * The Alfresco Example Content Application is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * along with Alfresco. If not, see <http://www.gnu.org/licenses/>.\n */\n\nimport { Component, ViewEncapsulation, ChangeDetectionStrategy, Input } from '@angular/core';\n\n@Component({\n selector: 'aca-page-layout',\n templateUrl: './page-layout.component.html',\n styleUrls: ['./page-layout.component.scss'],\n encapsulation: ViewEncapsulation.None,\n host: { class: 'aca-page-layout' },\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class PageLayoutComponent {\n @Input()\n hasError = false;\n}\n","<ng-content select=\"aca-page-layout-header\"></ng-content>\n<ng-content select=\"aca-page-layout-error\" *ngIf=\"hasError\"></ng-content>\n<ng-content select=\"aca-page-layout-content\" *ngIf=\"!hasError\"></ng-content>\n","/*!\n * @license\n * Alfresco Example Content Application\n *\n * Copyright (C) 2005 - 2020 Alfresco Software Limited\n *\n * This file is part of the Alfresco Example Content Application.\n * If the software was purchased under a paid Alfresco license, the terms of\n * the paid license agreement will prevail. Otherwise, the software is\n * provided under the following open source license terms:\n *\n * The Alfresco Example Content Application is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * The Alfresco Example Content Application is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * along with Alfresco. If not, see <http://www.gnu.org/licenses/>.\n */\n\nimport { NgModule } from '@angular/core';\nimport { PageLayoutContentComponent } from './page-layout-content.component';\nimport { PageLayoutErrorComponent } from './page-layout-error.component';\nimport { PageLayoutHeaderComponent } from './page-layout-header.component';\nimport { PageLayoutComponent } from './page-layout.component';\nimport { CommonModule } from '@angular/common';\n\n@NgModule({\n imports: [CommonModule],\n declarations: [PageLayoutContentComponent, PageLayoutErrorComponent, PageLayoutHeaderComponent, PageLayoutComponent],\n exports: [PageLayoutContentComponent, PageLayoutErrorComponent, PageLayoutHeaderComponent, PageLayoutComponent]\n})\nexport class PageLayoutModule {}\n","/*!\n * @license\n * Alfresco Example Content Application\n *\n * Copyright (C) 2005 - 2020 Alfresco Software Limited\n *\n * This file is part of the Alfresco Example Content Application.\n * If the software was purchased under a paid Alfresco license, the terms of\n * the paid license agreement will prevail. Otherwise, the software is\n * provided under the following open source license terms:\n *\n * The Alfresco Example Content Application is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * The Alfresco Example Content Application is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * along with Alfresco. If not, see <http://www.gnu.org/licenses/>.\n */\n\nimport { Component, Input, ChangeDetectionStrategy, ViewEncapsulation } from '@angular/core';\nimport { NodeEntry } from '@alfresco/js-api';\n\n@Component({\n selector: 'aca-locked-by',\n template: `\n <mat-icon class=\"locked_by--icon\">lock</mat-icon>\n <span class=\"locked_by--label\">{{ 'APP.LOCKED_BY' | translate }}</span>\n <span class=\"locked_by--name\">{{ text }}</span>\n `,\n styleUrls: ['./locked-by.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n host: {\n class: 'aca-locked-by'\n }\n})\nexport class LockedByComponent {\n @Input()\n node: NodeEntry;\n\n get text(): string {\n return (\n this.node && this.node.entry.properties && this.node.entry.properties['cm:lockOwner'] && this.node.entry.properties['cm:lockOwner'].displayName\n );\n }\n}\n","/*!\n * @license\n * Alfresco Example Content Application\n *\n * Copyright (C) 2005 - 2020 Alfresco Software Limited\n *\n * This file is part of the Alfresco Example Content Application.\n * If the software was purchased under a paid Alfresco license, the terms of\n * the paid license agreement will prevail. Otherwise, the software is\n * provided under the following open source license terms:\n *\n * The Alfresco Example Content Application is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * The Alfresco Example Content Application is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * along with Alfresco. If not, see <http://www.gnu.org/licenses/>.\n */\n\nimport { NgModule } from '@angular/core';\nimport { LockedByComponent } from './locked-by.component';\nimport { MatIconModule } from '@angular/material/icon';\nimport { CommonModule } from '@angular/common';\nimport { TranslateModule } from '@ngx-translate/core';\n\n@NgModule({\n imports: [CommonModule, MatIconModule, TranslateModule.forChild()],\n declarations: [LockedByComponent],\n exports: [LockedByComponent]\n})\nexport class LockedByModule {}\n","/*!\n * @license\n * Alfresco Example Content Application\n *\n * Copyright (C) 2005 - 2020 Alfresco Software Limited\n *\n * This file is part of the Alfresco Example Content Application.\n * If the software was purchased under a paid Alfresco license, the terms of\n * the paid license agreement will prevail. Otherwise, the software is\n * provided under the following open source license terms:\n *\n * The Alfresco Example Content Application is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * The Alfresco Example Content Application is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * along with Alfresco. If not, see <http://www.gnu.org/licenses/>.\n */\n\nimport { Component, ViewEncapsulation, ChangeDetectionStrategy, Input } from '@angular/core';\n\n@Component({\n selector: 'aca-generic-error',\n templateUrl: './generic-error.component.html',\n styleUrls: ['./generic-error.component.scss'],\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: { class: 'aca-generic-error' }\n})\nexport class GenericErrorComponent {\n @Input()\n text = 'APP.MESSAGES.ERRORS.MISSING_CONTENT';\n}\n","<mat-icon>error</mat-icon>\n<p class=\"generic-error__title\">\n {{ text | translate }}\n</p>\n","/*!\n * @license\n * Alfresco Example Content Application\n *\n * Copyright (C) 2005 - 2020 Alfresco Software Limited\n *\n * This file is part of the Alfresco Example Content Application.\n * If the software was purchased under a paid Alfresco license, the terms of\n * the paid license agreement will prevail. Otherwise, the software is\n * provided under the following open source license terms:\n *\n * The Alfresco Example Content Application is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * The Alfresco Example Content Application is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * along with Alfresco. If not, see <http://www.gnu.org/licenses/>.\n */\n\nimport { NgModule } from '@angular/core';\nimport { GenericErrorComponent } from './generic-error.component';\nimport { MatIconModule } from '@angular/material/icon';\nimport { CommonModule } from '@angular/common';\nimport { TranslateModule } from '@ngx-translate/core';\n\n@NgModule({\n imports: [CommonModule, MatIconModule, TranslateModule.forChild()],\n declarations: [GenericErrorComponent],\n exports: [GenericErrorComponent]\n})\nexport class GenericErrorModule {}\n","/*!\n * @license\n * Alfresco Example Content Application\n *\n * Copyright (C) 2005 - 2020 Alfresco Software Limited\n *\n * This file is part of the Alfresco Example Content Application.\n * If the software was purchased under a paid Alfresco license, the terms of\n * the paid license agreement will prevail. Otherwise, the software is\n * provided under the following open source license terms:\n *\n * The Alfresco Example Content Application is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * The Alfresco Example Content Application is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * along with Alfresco. If not, see <http://www.gnu.org/licenses/>.\n */\n\nimport { Injectable } from '@angular/core';\nimport { NodePermissions } from '@alfresco/adf-extensions';\nimport { Node, SharedLink, SharedLinkEntry, NodeEntry } from '@alfresco/js-api';\n\nexport type PermissionSource = NodeEntry | SharedLinkEntry | Node;\n\nexport interface PermissionOptions {\n target?: string;\n operation?: string;\n}\n\n@Injectable({\n providedIn: 'root'\n})\nexport class NodePermissionService implements NodePermissions {\n static DEFAULT_OPERATION = 'OR';\n\n private defaultOptions: PermissionOptions = {\n operation: NodePermissionService.DEFAULT_OPERATION,\n target: null\n };\n\n check(source: PermissionSource | PermissionSource[], permissions: string[], options?: PermissionOptions): boolean {\n const opts = Object.assign({}, this.defaultOptions, options || {});\n\n if (!source) {\n return false;\n }\n\n if (Array.isArray(source)) {\n source = source.filter((item) => item);\n\n if (source.length > 0) {\n return source.every((node) => this.isOperationAllowed(node, permissions, opts));\n }\n return false;\n } else {\n return this.isOperationAllowed(source, permissions, opts);\n }\n }\n\n private isOperationAllowed(node: PermissionSource, permissions: string[], options: PermissionOptions): boolean {\n const allowableOperations = this.getAllowableOperations(node, options.target);\n\n if (allowableOperations.length) {\n if (options.operation === NodePermissionService.DEFAULT_OPERATION) {\n return permissions.some((permission) => allowableOperations.includes(permission));\n } else {\n return permissions.every((permission) => allowableOperations.includes(permission));\n }\n }\n\n return false;\n }\n\n private getAllowableOperations(node: PermissionSource, property?: string): string[] {\n let entry: Node | SharedLink;\n\n if ('entry' in node) {\n entry = node.entry;\n } else {\n entry = node;\n }\n\n if (property) {\n return entry[property] || [];\n }\n\n if ('allowableOperationsOnTarget' in entry) {\n return entry.allowableOperationsOnTarget || [];\n } else {\n return entry.allowableOperations || [];\n }\n }\n}\n","/*!\n * @license\n * Alfresco Example Content Application\n *\n * Copyright (C) 2005 - 2020 Alfresco Software Limited\n *\n * This file is part of the Alfresco Example Content Application.\n * If the software was purchased under a paid Alfresco license, the terms of\n * the paid license agreement will prevail. Otherwise, the software is\n * provided under the following open source license terms:\n *\n * The Alfresco Example Content Application is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * The Alfresco Example Content Application is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * along with Alfresco. If not, see <http://www.gnu.org/licenses/>.\n */\n\nimport { Injectable } from '@angular/core';\nimport { Store } from '@ngrx/store';\nimport { MatIconRegistry } from '@angular/material/icon';\nimport { DomSanitizer } from '@angular/platform-browser';\nimport { AppStore, getRuleContext } from '@alfresco/aca-shared/store';\nimport {\n SelectionState,\n NavigationState,\n ExtensionConfig,\n RuleEvaluator,\n ContentActionRef,\n ContentActionType,\n ExtensionLoaderService,\n SidebarTabRef,\n NavBarGroupRef,\n sortByOrder,\n reduceSeparators,\n reduceEmptyMenus,\n ExtensionService,\n ProfileState,\n mergeObjects,\n ExtensionRef,\n RuleContext,\n DocumentListPresetRef,\n IconRef,\n mergeArrays\n} from '@alfresco/adf-extensions';\nimport { AppConfigService, AuthenticationService, LogService } from '@alfresco/adf-core';\nimport { BehaviorSubject, Observable } from 'rxjs';\nimport { RepositoryInfo, NodeEntry } from '@alfresco/js-api';\nimport { ViewerRules } from '../models/viewer.rules';\nimport { SettingsGroupRef } from '../models/types';\nimport { NodePermissionService } from '../services/node-permission.service';\nimport { filter, map } from 'rxjs/operators';\nimport { ModalConfiguration } from '../models/modal-configuration';\n\n@Injectable({\n providedIn: 'root'\n})\nexport class AppExtensionService implements RuleContext {\n private _references = new BehaviorSubject<ExtensionRef[]>([]);\n\n navbar: Array<NavBarGroupRef> = [];\n sidebarTabs: Array<SidebarTabRef> = [];\n contentMetadata: any;\n search: any;\n viewerRules: ViewerRules = {};\n settingGroups: Array<SettingsGroupRef> = [];\n\n private _headerActions = new BehaviorSubject<Array<ContentActionRef>>([]);\n private _toolbarActions = new BehaviorSubject<Array<ContentActionRef>>([]);\n private _viewerToolbarActions = new BehaviorSubject<Array<ContentActionRef>>([]);\n private _sharedLinkViewerToolbarActions = new BehaviorSubject<Array<ContentActionRef>>([]);\n private _contextMenuActions = new BehaviorSubject<Array<ContentActionRef>>([]);\n private _openWithActions = new BehaviorSubject<Array<ContentActionRef>>([]);\n private _createActions = new BehaviorSubject<Array<ContentActionRef>>([]);\n private _mainActions = new BehaviorSubject<ContentActionRef>(null);\n private _sidebarActions = new BehaviorSubject<Array<ContentActionRef>>([]);\n\n documentListPresets: {\n files: Array<DocumentListPresetRef>;\n libraries: Array<DocumentListPresetRef>;\n favoriteLibraries: Array<DocumentListPresetRef>;\n shared: Array<DocumentListPresetRef>;\n recent: Array<DocumentListPresetRef>;\n favorites: Array<DocumentListPresetRef>;\n trashcan: Array<DocumentListPresetRef>;\n searchLibraries: Array<DocumentListPresetRef>;\n } = {\n files: [],\n libraries: [],\n favoriteLibraries: [],\n shared: [],\n recent: [],\n favorites: [],\n trashcan: [],\n searchLibraries: []\n };\n\n selection: SelectionState;\n navigation: NavigationState;\n profile: ProfileState;\n repository: RepositoryInfo;\n withCredentials: boolean;\n\n references$: Observable<ExtensionRef[]>;\n\n config: ExtensionConfig;\n\n constructor(\n public auth: AuthenticationService,\n protected store: Store<AppStore>,\n protected loader: ExtensionLoaderService,\n protected extensions: ExtensionService,\n public permissions: NodePermissionService,\n public appConfig: AppConfigService,\n protected matIconRegistry: MatIconRegistry,\n protected sanitizer: DomSanitizer,\n protected logger: LogService\n ) {\n this.references$ = this._references.asObservable();\n\n this.store.select(getRuleContext).subscribe((result) => {\n this.selection = result.selection;\n this.navigation = result.navigation;\n this.profile = result.profile;\n this.repository = result.repository;\n\n if (this.config) {\n this.setup(this.config);\n }\n });\n }\n\n async load() {\n this.config = await this.extensions.load();\n this.setup(this.config);\n }\n\n setup(config: ExtensionConfig) {\n if (!config) {\n this.logger.error('Extension configuration not found');\n return;\n }\n\n this.settingGroups = this.loader.getElements<SettingsGroupRef>(config, 'settings');\n\n this._headerActions.next(this.loader.getContentActions(config, 'features.header'));\n this._sidebarActions.next(this.loader.getContentActions(config, 'features.sidebar.toolbar'));\n this._toolbarActions.next(this.loader.getContentActions(config, 'features.toolbar'));\n this._viewerToolbarActions.next(this.loader.getContentActions(config, 'features.viewer.toolbarActions'));\n this._sharedLinkViewerToolbarActions.next(this.loader.getContentActions(config, 'features.viewer.shared.toolbarActions'));\n this._contextMenuActions.next(this.loader.getContentActions(config, 'features.contextMenu'));\n this._openWithActions.next(this.loader.getContentActions(config, 'features.viewer.openWith'));\n this._createActions.next(this.loader.getElements<ContentActionRef>(config, 'features.create'));\n this._mainActions.next(this.loader.getFeatures(config).mainAction);\n\n this.navbar = this.loadNavBar(config);\n this.sidebarTabs = this.loader.getElements<SidebarTabRef>(config, 'features.sidebar.tabs');\n this.contentMetadata = this.loadContentMetadata(config);\n this.search = this.loadSearchForms(config);\n\n this.documentListPresets = {\n files: this.getDocumentListPreset(config, 'files'),\n libraries: this.getDocumentListPreset(config, 'libraries'),\n favoriteLibraries: this.getDocumentListPreset(config, 'favoriteLibraries'),\n shared: this.getDocumentListPreset(config, 'shared'),\n recent: this.getDocumentListPreset(config, 'recent'),\n favorites: this.getDocumentListPreset(config, 'favorites'),\n trashcan: this.getDocumentListPreset(config, 'trashcan'),\n searchLibraries: this.getDocumentListPreset(config, 'search-libraries')\n };\n\n this.withCredentials = this.appConfig.get<boolean>('auth.withCredentials', false);\n\n if (config.features && config.features.viewer) {\n this.viewerRules = (config.features.viewer['rules'] as ViewerRules) || {};\n }\n\n this.registerIcons(config);\n\n const references = (config.$references || []).filter((entry) => typeof entry === 'object').map((entry) => entry as ExtensionRef);\n this._references.next(references);\n }\n\n protected registerIcons(config: ExtensionConfig) {\n const icons: Array<IconRef> = this.loader.getElements<IconRef>(config, 'features.icons').filter((entry) => !entry.disabled);\n\n for (const icon of icons) {\n const [ns, id] = icon.id.split(':');\n const value = icon.value;\n\n if (!value) {\n console.warn(`Missing icon value for \"${icon.id}\".`);\n } else if (!ns || !id) {\n console.warn(`Incorrect icon id format: \"${icon.id}\".`);\n } else {\n this.matIconRegistry.addSvgIconInNamespace(ns, id, this.sanitizer.bypassSecurityTrustResourceUrl(value));\n }\n }\n }\n\n protected loadNavBar(config: ExtensionConfig): Array<NavBarGroupRef> {\n return this.loader.getElements<NavBarGroupRef>(config, 'features.navbar');\n }\n\n protected getDocumentListPreset(config: ExtensionConfig, key: string): DocumentListPresetRef[] {\n return this.loader\n .getElements<DocumentListPresetRef>(config, `features.documentList.${key}`)\n .filter((group) => this.filterVisible(group))\n .filter((entry) => !entry.disabled)\n .sort(sortByOrder);\n }\n\n getApplicationNavigation(elements): Array<NavBarGroupRef> {\n return elements\n .filter((group) => this.filterVisible(group))\n .map((group) => ({\n ...group,\n items: (group.items || [])\n .filter((entry) => !entry.disabled)\n .filter((item) => this.filterVisible(item))\n .sort(sortByOrder)\n .map((item) => {\n if (item.children && item.children.length > 0) {\n item.children = item.children\n .filter((entry) => !entry.disabled)\n .filter((child) => this.filterVisible(child))\n .sort(sortByOrder)\n .map((child) => {\n if (child.component) {\n return {\n ...child\n };\n }\n\n if (!child.click) {\n const childRouteRef = this.extensions.getRouteById(child.route);\n const childUrl = `/${childRouteRef ? childRouteRef.path : child.route}`;\n return {\n ...child,\n url: childUrl\n };\n }\n\n return {\n ...child,\n action: child.click\n };\n });\n\n return {\n ...item\n };\n }\n\n if (item.component) {\n return { ...item };\n }\n\n if (!item.click) {\n const routeRef = this.extensions.getRouteById(item.route);\n const url = `/${routeRef ? routeRef.path : item.route}`;\n return {\n ...item,\n url\n };\n }\n\n return {\n ...item,\n action: item.click\n };\n })\n .reduce(reduceEmptyMenus, [])\n }));\n }\n\n loadContentMetadata(config: ExtensionConfig): any {\n const elements = this.loader.getElements<any>(config, 'features.content-metadata-presets');\n if (!elements.length) {\n return null;\n }\n\n let presets = {};\n presets = this.filterDisabled(mergeObjects(presets, ...elements));\n\n try {\n this.appConfig.config['content-metadata'].presets = presets;\n } catch (error) {\n this.logger.error(error, '- could not change content-metadata presets from app.config -');\n }\n\n return { presets };\n }\n\n loadSearchForms(config: ExtensionConfig): any {\n const elements = this.loader.getElements<any>(config, 'features.search');\n if (!elements.length) {\n return null;\n }\n\n const search = mergeArrays([], elements)\n .filter((entry) => !entry.disabled)\n .filter((entry) => this.filterVisible(entry))\n .sort(sortByOrder);\n\n try {\n this.appConfig.config['search'] = search;\n } catch (error) {\n this.logger.error(error, '- could not change search from app.config -');\n }\n return search;\n }\n\n filterDisabled(object: Array<{ disabled: boolean }> | { disabled: boolean }) {\n if (Array.isArray(object)) {\n return object.filter((item) => !item.disabled).map((item) => this.filterDisabled(item));\n } else if (typeof object === 'object') {\n if (!object.disabled) {\n Object.keys(object).forEach((prop) => {\n object[prop] = this.filterDisabled(object[prop]);\n });\n return object;\n }\n } else {\n return object;\n }\n }\n\n getNavigationGroups(): Array<NavBarGroupRef> {\n return this.navbar;\n }\n\n getSidebarTabs(): Array<SidebarTabRef> {\n return this.sidebarTabs.filter((action) => this.filterVisible(action));\n }\n\n private setActionDisabledFromRule(action: ContentActionRef) {\n let disabled = false;\n\n if (action && action.rules && action.rules.enabled) {\n disabled = !this.extensions.evaluateRule(action.rules.enabled, this);\n }\n\n return {\n ...action,\n disabled\n };\n }\n\n getCreateActions(): Observable<Array<ContentActionRef>> {\n return this._createActions.pipe(\n map((createActions) =>\n createActions\n .filter((action) => this.filterVisible(action))\n .map((action) => this.copyAction(action))\n .map((action) => this.buildMenu(action))\n .map((action) => this.setActionDisabledFromRule(action))\n )\n );\n }\n\n getMainAction(): Observable<ContentActionRef> {\n return this._mainActions.pipe(\n filter((mainAction) => mainAction && this.filterVisible(mainAction)),\n map((mainAction) => {\n let actionCopy = this.copyAction(mainAction);\n actionCopy = this.setActionDisabledFromRule(actionCopy);\n return actionCopy;\n })\n );\n }\n\n private buildMenu(actionRef: ContentActionRef): ContentActionRef {\n if (actionRef.type === ContentActionType.menu && actionRef.children && actionRef.children.length > 0) {\n const children = actionRef.children.filter((action) => this.filterVisible(action)).map((action) => this.buildMenu(action));\n\n actionRef.children = children\n .map((action) => this.setActionDisabledFromRule(action))\n .sort(sortByOrder)\n .reduce(reduceEmptyMenus, [])\n .reduce(reduceSeparators, []);\n }\n\n return actionRef;\n }\n\n private getAllowedActions(actions: ContentActionRef[]): ContentActionRef[] {\n return (actions || [])\n .filter((action) => this.filterVisible(action))\n .map((action) => {\n if (action.type === ContentActionType.menu) {\n const copy = this.copyAction(action);\n if (copy.children && copy.children.length > 0) {\n copy.children = copy.children\n .filter((entry) => !entry.disabled)\n .filter((childAction) => this.filterVisible(childAction))\n .sort(sortByOrder)\n .reduce(reduceSeparators, []);\n }\n return copy;\n }\n return action;\n })\n .map((action) => this.setActionDisabledFromRule(action))\n .reduce(reduceEmptyMenus, [])\n .reduce(reduceSeparators, []);\n }\n\n getAllowedSidebarActions(): Observable<Array<ContentActionRef>> {\n return this._sidebarActions.pipe(map((sidebarActions) => this.getAllowedActions(sidebarActions)));\n }\n\n getAllowedToolbarActions(): Observable<Array<ContentActionRef>> {\n return this._toolbarActions.pipe(map((toolbarActions) => this.getAllowedActions(toolbarActions)));\n }\n\n getViewerToolbarActions(): Observable<Array<ContentActionRef>> {\n return this._viewerToolbarActions.pipe(map((viewerToolbarActions) => this.getAllowedActions(viewerToolbarActions)));\n }\n\n getOpenWithActions(): Observable<Array<ContentActionRef>> {\n return this._openWithActions.pipe(map((openWithActions) => this.getAllowedActions(openWithActions)));\n }\n\n getSharedLinkViewerToolbarActions(): Observable<Array<ContentActionRef>> {\n return this._sharedLinkViewerToolbarActions.pipe(\n map((sharedLinkViewerToolbarActions) => (!this.selection.isEmpty ? this.getAllowedActions(sharedLinkViewerToolbarActions) : []))\n );\n }\n\n getHeaderActions(): Observable<Array<ContentActionRef>> {\n return this._headerActions.pipe(\n map((headerActions) =>\n headerActions\n .filter((action) => this.filterVisible(action))\n .map((action) => {\n if (action.type === ContentActionType.menu) {\n const copy = this.copyAction(action);\n if (copy.children && copy.children.length > 0) {\n copy.children = copy.children\n .filter((childAction) => this.filterVisible(childAction))\n .sort(sortByOrder)\n .reduce(reduceEmptyMenus, [])\n .reduce(reduceSeparators, []);\n }\n return copy;\n }\n\n return action;\n })\n .map((action) => this.setActionDisabledFromRule(action))\n .sort(sortByOrder)\n .reduce(reduceEmptyMenus, [])\n .reduce(reduceSeparators, [])\n )\n );\n }\n\n getAllowedContextMenuActions(): Observable<Array<ContentActionRef>> {\n return this._contextMenuActions.pipe(map((contextMenuActions) => (!this.selection.isEmpty ? this.getAllowedActions(contextMenuActions) : [])));\n }\n\n getSettingsGroups(): Array<SettingsGroupRef> {\n return this.settingGroups.filter((group) => this.filterVisible(group));\n }\n\n copyAction(action: ContentActionRef): ContentActionRef {\n return {\n ...action,\n children: (action.children || []).map((child) => this.copyAction(child))\n };\n }\n\n filterVisible(action: ContentActionRef | SettingsGroupRef | SidebarTabRef | DocumentListPresetRef): boolean {\n if (action && action.rules && action.rules.visible) {\n return this.extensions.evaluateRule(action.rules.visible, this);\n }\n return true;\n }\n\n isViewerExtensionDisabled(extension: any): boolean {\n if (extension) {\n if (extension.disabled) {\n return true;\n }\n\n if (extension.rules && extension.rules.disabled) {\n return this.extensions.evaluateRule(extension.rules.disabled, this);\n }\n }\n\n return false;\n }\n\n runActionById(id: string, additionalPayload?: ModalConfiguration) {\n const action = this.extensions.getActionById(id);\n if (action) {\n const { type, payload } = action;\n const context = {\n selection: this.selection\n };\n const expression = this.extensions.runExpression(payload, context);\n\n this.store.dispatch({\n type,\n payload: expression,\n configuration: additionalPayload\n });\n } else {\n this.store.dispatch({\n type: id,\n configuration: additionalPayload\n });\n }\n }\n\n // todo: move to ADF/RuleService\n isRuleDefined(ruleId: string): boolean {\n return !!(ruleId && this.getEvaluator(ruleId));\n }\n\n // todo: move to ADF/RuleService\n evaluateRule(ruleId: string, ...args: any[]): boolean {\n const evaluator = this.getEvaluator(ruleId);\n\n if (evaluator) {\n return evaluator(this, ...args);\n }\n\n return false;\n }\n\n getEvaluator(key: string): RuleEvaluator {\n return this.extensions.getEvaluator(key);\n }\n\n canPreviewNode(node: NodeEntry) {\n const rules = this.viewerRules;\n\n if (this.isRuleDefined(rules.canPreview)) {\n const canPreview = this.evaluateRule(rules.canPreview, node);\n\n if (!canPreview) {\n return false;\n }\n }\n\n return true;\n }\n\n canShowViewerNavigation(node: NodeEntry) {\n const rules = this.viewerRules;\n\n if (this.isRuleDefined(rules.showNavigation)) {\n const showNavigation = this.evaluateRule(rules.showNavigation, node);\n if (!showNavigation) {\n return false;\n }\n }\n\n return true;\n }\n}\n","/*!\n * @license\n * Alfresco Example Content Application\n *\n * Copyright (C) 2005 - 2020 Alfresco Software Limited\n *\n * This file is part of the Alfresco Example Content Application.\n * If the software was purchased under a paid Alfresco license, the terms of\n * the paid license agreement will prevail. Otherwise, the software is\n * provided under the following open source license terms:\n *\n * The Alfresco Example Content Application is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * The Alfresco Example Content Application is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * along with Alfresco. If not, see <http://www.gnu.org/licenses/>.\n */\n\nimport { Component, Input, ViewChild, ViewEncapsulation } from '@angular/core';\nimport { ContentActionRef } from '@alfresco/adf-extensions';\nimport { AppExtensionService } from '../../../services/app.extension.service';\nimport { MatMenuItem } from '@angular/material/menu';\n\n@Component({\n selector: 'app-toolbar-menu-item',\n templateUrl: './toolbar-menu-item.component.html',\n styles: [\n `\n .app-toolbar-menu-item:last-child > .mat-divider-horizontal {\n display: none;\n }\n `\n ],\n encapsulation: ViewEncapsulation.None,\n host: { class: 'app-toolbar-menu-item' }\n})\nexport class ToolbarMenuItemComponent {\n @Input()\n actionRef: ContentActionRef;\n @Input()\n menuId?: string;\n\n @ViewChild(MatMenuItem)\n menuItem: MatMenuItem;\n\n constructor(private extensions: AppExtensionService) {}\n\n runAction() {\n if (this.hasClickAction(this.actionRef)) {\n this.extensions.runActionById(\n this.actionRef.actions.click,\n this.menuId\n ? {\n focusedElementOnCloseSelector: `#${this.menuId.replace(/\\./g, '\\\\.')}`\n }\n : undefined\n );\n }\n }\n\n private hasClickAction(actionRef: ContentActionRef): boolean {\n return !!(actionRef && actionRef.actions && actionRef.actions.click);\n }\n\n trackByActionId(_: number, obj: ContentActionRef): string {\n return obj.id;\n }\n}\n","<ng-container [ngSwitch]=\"actionRef.type\">\n <ng-container *ngSwitchCase=\"'menu'\">\n <button [id]=\"actionRef.id\" mat-menu-item role=\"menuitem\" tabindex=\"0\" [disabled]=\"actionRef.disabled\" [matMenuTriggerFor]=\"childMenu\">\n <adf-icon [value]=\"actionRef.icon\"></adf-icon>\n <span data-automation-id=\"menu-item-title\">{{ actionRef.title | translate }}</span>\n </button>\n\n <mat-menu #childMenu=\"matMenu\" class=\"app-create-menu__sub-menu\">\n <ng-container *ngFor=\"let child of actionRef.children; trackBy: trackByActionId\">\n <app-toolbar-menu-item [actionRef]=\"child\"></app-toolbar-menu-item>\n </ng-container>\n </mat-menu>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"'separator'\">\n <mat-divider></mat-divider>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"'custom'\">\n <adf-dynamic-component [id]=\"actionRef.component\"></adf-dynamic-component>\n </ng-container>\n\n <ng-container *ngSwitchDefault>\n <button\n [id]=\"actionRef.id\"\n role=\"menuitem\"\n mat-menu-item\n [role]=\"'menuitem'\"\n tabindex=\"0\"\n [disabled]=\"actionRef.disabled\"\n [attr.title]=\"(actionRef.disabled ? actionRef['description-disabled'] : actionRef.description || actionRef.title) | translate\"\n (click)=\"runAction()\"\n >\n <adf-icon [value]=\"actionRef.icon\"></adf-icon>\n <span data-automation-id=\"menu-item-title\">{{ actionRef.title | translate }}</span>\n </button>\n </ng-container>\n</ng-container>\n","/*!\n * @license\n * Alfresco Example Content Application\n *\n * Copyright (C) 2005 - 2020 Alfresco Software Limited\n *\n * This file is part of the Alfresco Example Content Application.\n * If the software was purchased under a paid Alfresco license, the terms of\n * the paid license agreement will prevail. Otherwise, the software is\n * provided under the following open source license terms:\n *\n * The Alfresco Example Content Application is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * The Alfresco Example Content Application is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * along with Alfresco. If not, see <http://www.gnu.org/licenses/>.\n */\n\nimport { Component, Input, ViewEncapsulation, HostListener, ViewChild, ViewChildren, QueryList, AfterViewInit } from '@angular/core';\nimport { ContentActionRef } from '@alfresco/adf-extensions';\nimport { MatMenu, MatMenuItem, MatMenuTrigger } from '@angular/material/menu';\nimport { ThemePalette } from '@angular/material/core';\nimport { ToolbarMenuItemComponent } from '../toolbar-menu-item/toolbar-menu-item.component';\n\n@Component({\n selector: 'app-toolbar-menu',\n templateUrl: './toolbar-menu.component.html',\n encapsulation: ViewEncapsulation.None,\n host: { class: 'app-toolbar-menu' }\n})\nexport class ToolbarMenuComponent implements AfterViewInit {\n @Input()\n actionRef: ContentActionRef;\n\n @Input()\n color: ThemePalette;\n\n @ViewChild('matTrigger')\n matTrigger: MatMenuTrigger;\n\n @ViewChild(MatMenu)\n menu: MatMenu;\n\n @ViewChildren(ToolbarMenuItemComponent)\n toolbarMenuItems: QueryList<ToolbarMenuItemComponent>;\n\n @HostListener('document:keydown.Escape')\n handleKeydownEscape() {\n this.matTrigger.closeMenu();\n }\n\n ngAfterViewInit(): void {\n const menuItems: MatMenuItem[] = [];\n this.toolbarMenuItems.forEach((toolbarMenuItem: ToolbarMenuItemComponent) => {\n if (toolbarMenuItem.menuItem !== undefined) {\n menuItems.push(toolbarMenuItem.menuItem);\n }\n });\n const menuItemsQueryList: QueryList<MatMenuItem> = new QueryList<MatMenuItem>();\n menuItemsQueryList.reset(menuItems);\n this.menu._allItems = menuItemsQueryList;\n this.menu.ngAfterContentInit();\n }\n\n trackByActionId(_: number, obj: ContentActionRef): string {\n return obj.id;\n }\n}\n","<button\n [id]=\"actionRef.id\"\n [color]=\"color\"\n mat-icon-button\n [attr.aria-label]=\"actionRef.description || actionRef.title | translate\"\n [attr.title]=\"actionRef.description || actionRef.title | translate\"\n [matMenuTriggerFor]=\"menu\"\n [disabled]=\"actionRef.disabled\"\n #matTrigger=\"matMenuTrigger\"\n>\n <adf-icon [value]=\"actionRef.icon\"></adf-icon>\n</button>\n\n<mat-menu #menu=\"matMenu\" [overlapTrigger]=\"false\">\n <ng-container *ngFor=\"let child of actionRef.children; trackBy: trackByActionId\">\n <ng-container [ngSwitch]=\"child.type\">\n <ng-container *ngSwitchCase=\"'custom'\">\n <adf-dynamic-component [id]=\"child.component\" [data]=\"child.data\"></adf-dynamic-component>\n </ng-container>\n <ng-container *ngSwitchDefault>\n <app-toolbar-menu-item [actionRef]=\"child\" [menuId]=\"actionRef.id\"></app-toolbar-menu-item>\n </ng-container>\n </ng-container>\n </ng-container>\n</mat-menu>\n","/*!\n * @license\n * Alfresco Example Content Application\n *\n * Copyright (C) 2005 - 2020 Alfresco Software Limited\n *\n * This file is part of the Alfresco Example Content Application.\n * If the software was purchased under a paid Alfresco license, the terms of\n * the paid license agreement will prevail. Otherwise, the software is\n * provided under the following open source license terms:\n *\n * The Alfresco Example Content Application is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * The Alfresco Example Content Application is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * along with Alfresco. If not, see <http://www.gnu.org/licenses/>.\n */\n\nimport { Component, Input, ViewEncapsulation } from '@angular/core';\nimport { ContentActionRef } from '@alfresco/adf-extensions';\nimport { AppExtensionService } from '../../../services/app.extension.service';\nimport { ThemePalette } from '@angular/material/core';\n\nexport enum ToolbarButtonType {\n ICON_BUTTON = 'icon-button',\n MENU_ITEM = 'menu-item'\n}\n\n@Component({\n selector: 'app-toolbar-button',\n templateUrl: './toolbar-button.component.html',\n encapsulation: ViewEncapsulation.None,\n host: { class: 'app-toolbar-button' }\n})\nexport class ToolbarButtonComponent {\n @Input()\n type: ToolbarButtonType = ToolbarButtonType.ICON_BUTTON;\n\n @Input()\n color: ThemePalette;\n\n @Input()\n actionRef: ContentActionRef;\n\n constructor(private extensions: AppExtensionService) {}\n\n runAction() {\n if (this.hasClickAction(this.actionRef)) {\n this.extensions.runActionById(this.actionRef.actions.click, {\n focusedElementOnCloseSelector: `#${this.actionRef.id.replace(/\\./g, '\\\\.')}`\n });\n }\n }\n\n private hasClickAction(actionRef: ContentActionRef): boolean {\n return !!(actionRef && actionRef.actions && actionRef.actions.click);\n }\n}\n","<ng-container [ngSwitch]=\"type\">\n <ng-container *ngSwitchCase=\"'icon-button'\">\n <button\n [id]=\"actionRef.id\"\n mat-icon-button\n [color]=\"color\"\n [attr.aria-label]=\"actionRef.description || actionRef.title | translate\"\n [attr.title]=\"actionRef.description || actionRef.title | translate\"\n [disabled]=\"actionRef.disabled\"\n (click)=\"runAction()\"\n >\n <adf-icon [value]=\"actionRef.icon\"></adf-icon>\n </button>\n </ng-container>\n <ng-container *ngSwitchCase=\"'menu-item'\">\n <app-toolbar-menu-item [actionRef]=\"actionRef\"></app-toolbar-menu-item>\n </ng-container>\n</ng-container>\n","/*!\n * @license\n * Alfresco Example Content Application\n *\n * Copyright (C) 2005 - 2020 Alfresco Software Limited\n *\n * This file is part of the Alfresco Example Content Application.\n * If the software was purchased under a paid Alfresco license, the terms of\n * the paid license agreement will prevail. Otherwise, the software is\n * provided under the following open source license terms:\n *\n * The Alfresco Example Content Application is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * The Alfresco Example Content Application is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * along with Alfresco. If not, see <http://www.gnu.org/licenses/>.\n */\n\nimport { Component, ViewEncapsulation, ChangeDetectionStrategy, Input, DoCheck, ChangeDetectorRef } from '@angular/core';\nimport { ContentActionRef } from '@alfresco/adf-extensions';\nimport { ToolbarButtonType } from '../toolbar-button/toolbar-button.component';\nimport { ThemePalette } from '@angular/material/core';\n\n@Component({\n selector: 'aca-toolbar-action',\n templateUrl: './toolbar-action.component.html',\n styleUrls: ['./toolbar-action.component.scss'],\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: { class: 'aca-toolbar-action' }\n})\nexport class ToolbarActionComponent implements DoCheck {\n @Input()\n type: ToolbarButtonType = ToolbarButtonType.ICON_BUTTON;\n\n @Input()\n color: ThemePalette;\n\n @Input()\n actionRef: ContentActionRef;\n\n constructor(private cd: ChangeDetectorRef) {}\n\n // todo: review after ADF 2.6\n // preview component : change detection workaround for children without input\n ngDoCheck() {\n if (this.actionRef.id.includes('app.viewer')) {\n this.cd.markForCheck();\n }\n }\n}\n","<ng-container [ngSwitch]=\"actionRef.type\">\n <ng-container *ngSwitchCase=\"'default'\">\n <app-toolbar-button [type]=\"type\" [actionRef]=\"actionRef\" [color]=\"color\"> </app-toolbar-button>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"'button'\">\n <app-toolbar-button [type]=\"type\" [actionRef]=\"actionRef\" [color]=\"color\"> </app-toolbar-button>\n </ng-container>\n\n <adf-toolbar-divider *ngSwitchCase=\"'separator'\" [id]=\"actionRef.id\"></adf-toolbar-divider>\n\n <ng-container *ngSwitchCase=\"'menu'\">\n <app-toolbar-menu [actionRef]=\"actionRef\" [color]=\"color\"> </app-toolbar-menu>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"'custom'\">\n <adf-dynamic-component [data]=\"actionRef.data\" [id]=\"actionRef.component\"></adf-dynamic-component>\n </ng-container>\n</ng-container>\n","/*!\n * @license\n * Alfresco Example Content Application\n *\n * Copyright (C) 2005 - 2020 Alfresco Software Limited\n *\n * This file is part of the Alfresco Example Content Application.\n * If the software was purchased under a paid Alfresco license, the terms of\n * the paid license agreement will prevail. Otherwise, the software is\n * provided under the following open source license terms:\n *\n * The Alfresco Example Content Application is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * The Alfresco Example Content Application is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * along with Alfresco. If not, see <http://www.gnu.org/licenses/>.\n */\n\nimport { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { ToolbarMenuItemComponent } from './toolbar-menu-item/toolbar-menu-item.component';\nimport { ToolbarMenuComponent } from './toolbar-menu/toolbar-menu.component';\nimport { ToolbarActionComponent } from './toolbar-action/toolbar-action.component';\nimport { ToolbarButtonComponent } from './toolbar-button/toolbar-button.component';\nimport { CoreModule } from '@alfresco/adf-core';\nimport { ExtensionsModule } from '@alfresco/adf-extensions';\n\n@NgModule({\n imports: [CommonModule, CoreModule, ExtensionsModule],\n declarations: [ToolbarButtonComponent, ToolbarActionComponent, ToolbarMenuItemComponent, ToolbarMenuComponent],\n exports: [ToolbarButtonComponent, ToolbarActionComponent, ToolbarMenuItemComponent, ToolbarMenuComponent]\n})\nexport class SharedToolbarModule {}\n","/*!\n * @license\n * Alfresco Example Content Application\n *\n * Copyright (C) 2005 - 2020 Alfresco Software Limited\n *\n * This file is part of the Alfresco Example Content Application.\n * If the software was purchased under a paid Alfresco license, the terms of\n * the paid license agreement will prevail. Otherwise, the software is\n * provided under the following open source license terms:\n *\n * The Alfresco Example Content Application is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * The Alfresco Example Content Application is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * along with Alfresco. If not, see <http://www.gnu.org/licenses/>.\n */\n\nimport { Injectable } from '@angular/core';\nimport { AlfrescoApiService, UserPreferencesService } from '@alfresco/adf-core';\nimport { Observable, from } from 'rxjs';\nimport {\n MinimalNodeEntity,\n NodePaging,\n Node,\n DeletedNodesPaging,\n PersonEntry,\n NodeEntry,\n DiscoveryEntry,\n FavoritePaging,\n SharedLinkPaging,\n SearchRequest,\n ResultSetPaging,\n SiteBody,\n SiteEntry,\n FavoriteBody,\n FavoriteEntry,\n NodesApi,\n TrashcanApi,\n SharedlinksApi,\n DiscoveryApi,\n FavoritesApi,\n ContentApi,\n SitesApi,\n SearchApi,\n PeopleApi,\n VersionsApi,\n DirectAccessUrlEntry,\n VersionPaging\n} from '@alfresco/js-api';\nimport { map } from 'rxjs/operators';\n\n@Injectable({\n providedIn: 'root'\n})\nexport class ContentApiService {\n _nodesApi: NodesApi;\n get nodesApi(): NodesApi {\n this._nodesApi = this._nodesApi ?? new NodesApi(this.api.getInstance());\n return this._nodesApi;\n }\n\n _trashcanApi: TrashcanApi;\n get trashcanApi(): TrashcanApi {\n this._trashcanApi = this._trashcanApi ?? new TrashcanApi(this.api.getInstance());\n return this._trashcanApi;\n }\n\n _sharedLinksApi: SharedlinksApi;\n get sharedLinksApi(): SharedlinksApi {\n this._sharedLinksApi = this._sharedLinksApi ?? new SharedlinksApi(this.api.getInstance());\n return this._sharedLinksApi;\n }\n\n _discoveryApi: DiscoveryApi;\n get discoveryApi(): DiscoveryApi {\n this._discoveryApi = this._discoveryApi ?? new DiscoveryApi(this.api.getInstance());\n return this._discoveryApi;\n }\n\n _favoritesApi: FavoritesApi;\n get favoritesApi(): FavoritesApi {\n this._favoritesApi = this._favoritesApi ?? new FavoritesApi(this.api.getInstance());\n return this._favoritesApi;\n }\n\n _contentApi: ContentApi;\n get contentApi(): ContentApi {\n this._contentApi = this._contentApi ?? new ContentApi(this.api.getInstance());\n return this._contentApi;\n }\n\n _sitesApi: SitesApi;\n get sitesApi(): SitesApi {\n this._sitesApi = this._sitesApi ?? new SitesApi(this.api.getInstance());\n return this._sitesApi;\n }\n\n _searchApi: SearchApi;\n get searchApi(): SearchApi {\n this._searchApi = this._searchApi ?? new SearchApi(this.api.getInstance());\n return this._searchApi;\n }\n\n _peopleApi: PeopleApi;\n get peopleApi(): PeopleApi {\n this._peopleApi = this._peopleApi ?? new PeopleApi(this.api.getInstance());\n return this._peopleApi;\n }\n\n _versionsApi: VersionsApi;\n get versionsApi(): VersionsApi {\n this._versionsApi = this._versionsApi ?? new VersionsApi(this.api.getInstance());\n return this._versionsApi;\n }\n constructor(private api: AlfrescoApiService, private preferences: UserPreferencesService) {}\n\n /**\n * Moves a node to the trashcan.\n *\n * @param nodeId ID of the target node\n * @param options Optional parameters supported by JS-API\n * @returns Empty result that notifies when the deletion is complete\n */\n deleteNode(nodeId: string, options: { permanent?: boolean } = {}): Observable<void> {\n return from(this.nodesApi.deleteNode(nodeId, options));\n }\n\n /**\n * Gets the stored information about a node.\n *\n * @param nodeId ID of the target node\n * @param options Optional parameters supported by JS-API\n * @returns Node information\n */\n getNode(nodeId: string, options: any = {}): Observable<MinimalNodeEntity> {\n const defaults = {\n include: ['path', 'properties', 'allowableOperations', 'permissions', 'definition']\n };\n const queryOptions = Object.assign(defaults, options);\n\n return from(this.nodesApi.getNode(nodeId, queryOptions));\n }\n\n getNodeInfo(nodeId: string, options?: any): Observable<Node> {\n const defaults = {\n include: ['isFavorite', 'allowableOperations', 'path', 'definition']\n };\n const queryOptions = Object.assign(defaults, options || {});\n\n // @ts-ignore\n return from(\n new Promise((resolve, reject) => {\n this.nodesApi.getNode(nodeId, queryOptions).then(\n (nodeEntry: NodeEntry) => {\n resolve(nodeEntry.entry);\n },\n (error) => {\n reject(error);\n }\n );\n })\n );\n }\n\n /**\n * Gets the items contained in a folder node.\n *\n * @param nodeId ID of the target node\n * @param options Optional parameters supported by JS-API\n * @returns List of child items from the folder\n */\n getNodeChildren(nodeId: string, options: any = {}): Observable<NodePaging> {\n const defaults = {\n maxItems: this.preferences.paginationSize,\n skipCount: 0,\n include: ['isLocked', 'path', 'properties', 'allowableOperations', 'permissions']\n };\n const queryOptions = Object.assign(defaults, options);\n\n return from(this.nodesApi.listNodeChildren(nodeId, queryOptions));\n }\n\n deleteSharedLink(linkId: string): Observable<any> {\n return from(this.sharedLinksApi.deleteSharedLink(linkId));\n }\n\n getDeletedNodes(options: any = {}): Observable<DeletedNodesPaging> {\n const defaults = {\n include: ['path']\n };\n const queryOptions = Object.assign(defaults, options);\n\n return from(this.trashcanApi.listDeletedNodes(queryOptions));\n }\n\n restoreNode(nodeId: string): Observable<MinimalNodeEntity> {\n return from(this.trashcanApi.restoreDeletedNode(nodeId));\n }\n\n purgeDeletedNode(nodeId: string): Observable<any> {\n return from(this.trashcanApi.deleteDeletedNode(nodeId));\n }\n\n /**\n * Gets information about a user identified by their username.\n *\n * @param personId ID of the target user\n * @param options Api options\n * @returns User information\n */\n getPerson(personId: string, options?: { fields?: Array<string> }): Observable<PersonEntry> {\n return from(this.peopleApi.getPerson(personId, options));\n }\n\n /**\n * Copy a node to destination node\n *\n * @param nodeId The id of the node to be copied\n * @param targetParentId The id of the folder-node where the node have to be copied to\n * @param name The new name for the copy that would be added on the destination folder\n * @param opts Api options\n */\n copyNode(nodeId: string, targetParentId: string, name?: string, opts?: { include?: Array<string>; fields?: Array<string> }): Observable<NodeEntry> {\n return from(this.nodesApi.copyNode(nodeId, { targetParentId, name }, opts));\n }\n\n /**\n * Gets product information for Content Services.\n *\n * @returns ProductVersionModel containing product details\n */\n getRepositoryInformation(): Observable<DiscoveryEntry> {\n return from(this.discoveryApi.getRepositoryInformation());\n }\n\n getFavorites(\n personId: string,\n opts?: {\n skipCount?: number;\n maxItems?: number;\n where?: string;\n fields?: Array<string>;\n }\n ): Observable<FavoritePaging> {\n return from(this.favoritesApi.listFavorites(personId, opts));\n }\n\n getFavoriteLibraries(personId: string = '-me-', opts?: any): Observable<FavoritePaging> {\n return this.getFavorites(personId, {\n ...opts,\n where: '(EXISTS(target/site))'\n }).pipe(\n map((response: FavoritePaging) => ({\n list: {\n entries: response.list.entries.map(({ entry }: any) => {\n entry.target.site.createdAt = entry.createdAt;\n return {\n entry: entry.target.site\n };\n }),\n pagination: response.list.pagination\n }\n }))\n );\n }\n\n findSharedLinks(opts?: any): Observable<SharedLinkPaging> {\n return from(this.sharedLinksApi.listSharedLinks(opts));\n }\n\n getSharedLinkContent(sharedId: string, attachment?: boolean): string {\n return this.contentApi.getSharedLinkContentUrl(sharedId, attachment);\n }\n\n search(request: SearchRequest): Observable<ResultSetPaging> {\n return from(this.searchApi.search(request));\n }\n\n getContentUrl(nodeId: string, attachment?: boolean): string {\n return this.contentApi.getContentUrl(nodeId, attachment);\n }\n\n getVersionContentUrl(nodeId: string, versionId: string, attachment?: boolean): string {\n return this.contentApi.getVersionContentUrl(nodeId, versionId, attachment);\n }\n\n deleteSite(siteId?: string, opts?: { permanent?: boolean }): Observable<any> {\n return from(this.sitesApi.deleteSite(siteId, opts));\n }\n\n leaveSite(siteId?: string): Observable<any> {\n return from(this.sitesApi.deleteSiteMembership(siteId, '-me-'));\n }\n\n createSite(\n siteBody: SiteBody,\n opts?: {\n fields?: Array<string>;\n skipConfiguration?: boolean;\n skipAddToFavorites?: boolean;\n }\n ): Observable<SiteEntry> {\n return from(this.sitesApi.createSite(siteBody, opts));\n }\n\n getSite(siteId?: string, opts?: { relations?: Array<string>; fields?: Array<string> }): Observable<SiteEntry> {\n return from(this.sitesApi.getSite(siteId, opts));\n }\n\n updateLibrary(siteId: string, siteBody: SiteBody): Observable<SiteEntry> {\n return from(this.sitesApi.updateSite(siteId, siteBody));\n }\n\n addFavorite(nodes: Array<MinimalNodeEntity>): Observable<FavoriteEntry> {\n const payload: FavoriteBody[] = nodes.map((node) => {\n const { isFolder, nodeId, id } = node.entry as any;\n const siteId = node.entry['guid'];\n const type = siteId ? 'site' : isFolder ? 'folder' : 'file';\n const guid = siteId || nodeId || id;\n\n return {\n target: {\n [type]: {\n guid\n }\n }\n };\n });\n\n return from(this.favoritesApi.createFavorite('-me-', payload as any));\n }\n\n removeFavorite(nodes: Array<MinimalNodeEntity>): Observable<any> {\n return from(\n Promise.all(\n nodes.map((node: any) => {\n const id = node.entry.nodeId || node.entry.id;\n return this.favoritesApi.deleteFavorite('-me-', id);\n })\n )\n );\n }\n\n unlockNode(nodeId: string, opts?: any): Promise<MinimalNodeEntity> {\n return this.nodesApi.unlockNode(nodeId, opts);\n }\n\n getNodeVersions(nodeId: string, opts?: any): Observable<VersionPaging> {\n return from(this.versionsApi.listVersionHistory(nodeId, opts));\n }\n\n requestNodeDirectAccessUrl(nodeId: string): Observable<DirectAccessUrlEntry> {\n return from(this.nodesApi.requestDirectAccessUrl(nodeId));\n }\n\n requestVersionDirectAccessUrl(nodeId: string, versionId: string): Observable<DirectAccessUrlEntry> {\n return from(this.versionsApi.requestDirectAccessUrl(nodeId, versionId));\n }\n}\n","/*!\n * @license\n * Alfresco Example Content Application\n *\n * Copyright (C) 2005 - 2020 Alfresco Software Limited\n *\n * This file is part of the Alfresco Example Content Application.\n * If the software was purchased under a paid Alfresco license, the terms of\n * the paid license agreement will prevail. Otherwise, the software is\n * provided under the following open source license terms:\n *\n * The Alfresco Example Content Application is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * The Alfresco Example Content Application is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * along with Alfresco. If not, see <http://www.gnu.org/licenses/>.\n */\n\nimport { Component, HostListener, Input, OnChanges, OnDestroy, OnInit } from '@angular/core';\nimport { MinimalNodeEntity, MinimalNodeEntryEntity, SiteEntry } from '@alfresco/js-api';\nimport { ContentActionRef, SidebarTabRef } from '@alfresco/adf-extensions';\nimport { Store } from '@ngrx/store';\nimport { SetInfoDrawerStateAction, ToggleInfoDrawerAction, infoDrawerPreview } from '@alfresco/aca-shared/store';\nimport { AppExtensionService } from '../../services/app.extension.service';\nimport { ContentApiService } from '../../services/content-api.service';\nimport { takeUntil } from 'rxjs/operators';\nimport { Subject } from 'rxjs';\nimport { ThemePalette } from '@angular/material/core';\n@Component({\n selector: 'aca-info-drawer',\n templateUrl: './info-drawer.component.html'\n})\nexport class InfoDrawerComponent implements OnChanges, OnInit, OnDestroy {\n @Input()\n nodeId: string;\n\n @Input()\n node: MinimalNodeEntity;\n\n isLoading = false;\n displayNode: MinimalNodeEntryEntity | SiteEntry;\n tabs: Array<SidebarTabRef> = [];\n actions: Array<ContentActionRef> = [];\n onDestroy$ = new Subject<boolean>();\n preventFromClosing = false;\n\n @HostListener('keydown.escape')\n onEscapeKeyboardEvent(): void {\n this.close();\n }\n\n constructor(private store: Store<any>, private contentApi: ContentApiService, private extensions: AppExtensionService) {}\n\n ngOnInit() {\n this.tabs = this.extensions.getSidebarTabs();\n this.extensions\n .getAllowedSidebarActions()\n .pipe(takeUntil(this.onDestroy$))\n .subscribe((actions) => {\n this.actions = actions;\n });\n\n this.store\n .select(infoDrawerPreview)\n .pipe(takeUntil(this.onDestroy$))\n .subscribe((isInfoDrawerPreviewOpened) => {\n this.preventFromClosing = isInfoDrawerPreviewOpened;\n });\n }\n\n ngOnDestroy() {\n this.onDestroy$.next(true);\n this.onDestroy$.complete();\n if (!this.preventFromClosing) {\n this.store.dispatch(new SetInfoDrawerStateAction(false));\n }\n }\n\n ngOnChanges() {\n if (this.node) {\n if (this.node['isLibrary']) {\n return this.setDisplayNode(this.node);\n }\n\n const entry: any = this.node.entry;\n\n const id = entry.nodeId || entry.id;\n return this.loadNodeInfo(id);\n }\n }\n\n trackByActionId(_: number, action: ContentActionRef) {\n return action.id;\n }\n\n getEntryColor(entry: any): ThemePalette {\n return entry?.color;\n }\n\n private close() {\n this.store.dispatch(new ToggleInfoDrawerAction());\n }\n\n private loadNodeInfo(nodeId: string) {\n if (nodeId) {\n this.isLoading = true;\n\n this.contentApi.getNodeInfo(nodeId).subscribe(\n (entity) => {\n this.setDisplayNode(entity);\n this.isLoading = false;\n },\n () => (this.isLoading = false)\n );\n }\n }\n\n private setDisplayNode(node: any) {\n this.displayNode = node;\n }\n}\n","<div *ngIf=\"isLoading\">\n <mat-progress-bar mode=\"indeterminate\" [attr.aria-label]=\"'APP.INFO_DRAWER.DATA_LOADING' | translate\"></mat-progress-bar>\n</div>\n<ng-container *ngIf=\"!isLoading && !!displayNode\">\n <adf-info-drawer [title]=\"'APP.INFO_DRAWER.TITLE'\" cdkTrapFocus cdkTrapFocusAutoCapture>\n <adf-toolbar class=\"adf-toolbar--inline\" info-drawer-buttons>\n <ng-container *ngFor=\"let entry of actions; trackBy: trackByActionId\">\n <aca-toolbar-action [actionRef]=\"entry\" [color]=\"getEntryColor(entry)\"></aca-toolbar-action>\n </ng-container>\n </adf-toolbar>\n\n <adf-info-drawer-tab *ngFor=\"let tab of tabs\" [icon]=\"tab.icon\" [label]=\"tab.title\">\n <adf-dynamic-tab [node]=\"$any(displayNode)\" [id]=\"tab.component\" [attr.data-automation-id]=\"tab.component\"> </adf-dynamic-tab>\n </adf-info-drawer-tab>\n </adf-info-drawer>\n</ng-container>\n","/*!\n * @license\n * Alfresco Example Content Application\n *\n * Copyright (C) 2005 - 2020 Alfresco Software Limited\n *\n * This file is part of the Alfresco Example Content Application.\n * If the software was purchased under a paid Alfresco license, the terms of\n * the paid license agreement will prevail. Otherwise, the software is\n * provided under the following open source license terms:\n *\n * The Alfresco Example Content Application is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * The Alfresco Example Content Application is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * along with Alfresco. If not, see <http://www.gnu.org/licenses/>.\n */\n\nimport { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { InfoDrawerComponent } from './info-drawer.component';\nimport { InfoDrawerModule, ToolbarModule } from '@alfresco/adf-core';\nimport { ExtensionsModule } from '@alfresco/adf-extensions';\nimport { MatProgressBarModule } from '@angular/material/progress-bar';\nimport { SharedToolbarModule } from '../tool-bar/shared-toolbar.module';\nimport { TranslateModule } from '@ngx-translate/core';\n\n@NgModule({\n imports: [CommonModule, InfoDrawerModule, MatProgressBarModule, ExtensionsModule, ToolbarModule, SharedToolbarModule, TranslateModule],\n declarations: [InfoDrawerComponent],\n exports: [InfoDrawerComponent]\n})\nexport class SharedInfoDrawerModule {}\n","/*!\n * @license\n * Alfresco Example Content Application\n *\n * Copyright (C) 2005 - 2020 Alfresco Software Limited\n *\n * This file is part of the Alfresco Example Content Application.\n * If the software was purchased under a paid Alfresco license, the terms of\n * the paid license agreement will prevail. Otherwise, the software is\n * provided under the following open source license terms:\n *\n * The Alfresco Example Content Application is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * The Alfresco Example Content Application is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * along with Alfresco. If not, see <http://www.gnu.org/licenses/>.\n */\n\nimport { Node } from '@alfresco/js-api';\n\nexport function isLocked(node: { entry: Node }): boolean {\n const { entry } = node;\n\n return (\n (entry && entry.isLocked) ||\n (entry.properties && (entry.properties['cm:lockType'] === 'READ_ONLY_LOCK' || entry.properties['cm:lockType'] === 'WRITE_LOCK'))\n );\n}\n\nexport function isLibrary(node: { entry: Node | any }): boolean {\n const { entry } = node;\n\n return (entry.guid && entry.id && entry.preset && entry.title && entry.visibility) || entry.nodeType === 'st:site';\n}\n","/*\n * Copyright © 2005 - 2021 Alfresco Software, Ltd. All rights reserved.\n *\n * License rights for this program may be obtained from Alfresco Software, Ltd.\n * pursuant to a written agreement and any use of this program without such an\n * agreement is prohibited.\n */\n\nimport { MinimalNodeEntity, MinimalNodeEntryEntity } from '@alfresco/js-api';\n\nexport abstract class DocumentBasePageService {\n abstract canUpdateNode(node: MinimalNodeEntity): boolean;\n abstract canUploadContent(node: MinimalNodeEntryEntity): boolean;\n}\n","/*!\n * @license\n * Alfresco Example Content Application\n *\n * Copyright (C) 2005 - 2020 Alfresco Software Limited\n *\n * This file is part of the Alfresco Example Content Application.\n * If the software was purchased under a paid Alfresco license, the terms of\n * the paid license agreement will prevail. Otherwise, the software is\n * provided under the following open source license terms:\n *\n * The Alfresco Example Content Application is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * The Alfresco Example Content Application is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * along with Alfresco. If not, see <http://www.gnu.org/licenses/>.\n */\n\nimport { DocumentListComponent, ShareDataRow } from '@alfresco/adf-content-services';\nimport { ShowHeaderMode } from '@alfresco/adf-core';\nimport { ContentActionRef, DocumentListPresetRef, SelectionState } from '@alfresco/adf-extensions';\nimport { OnDestroy, OnInit, OnChanges, ViewChild, SimpleChanges, Directive } from '@angular/core';\nimport { Store } from '@ngrx/store';\nimport { MinimalNodeEntity, MinimalNodeEntryEntity, NodePaging } from '@alfresco/js-api';\nimport { Observable, Subject, Subscription } from 'rxjs';\nimport { takeUntil, map } from 'rxjs/operators';\nimport { DocumentBasePageService } from './document-base-page.service';\nimport {\n AppStore,\n ReloadDocumentListAction,\n getCurrentFolder,\n getAppSelection,\n getDocumentDisplayMode,\n isInfoDrawerOpened,\n getSharedUrl,\n ViewNodeAction,\n ViewNodeExtras,\n SetSelectedNodesAction\n} from '@alfresco/aca-shared/store';\nimport { AppExtensionService } from '../../services/app.extension.service';\nimport { isLibrary, isLocked } from '../../utils/node.utils';\n\n/* eslint-disable @angular-eslint/directive-class-suffix */\n@Directive()\nexport abstract class PageComponent implements OnInit, OnDestroy, OnChanges {\n onDestroy$: Subject<boolean> = new Subject<boolean>();\n\n @ViewChild(DocumentListComponent)\n documentList: DocumentListComponent;\n\n title = 'Page';\n infoDrawerOpened$: Observable<boolean>;\n node: MinimalNodeEntryEntity;\n selection: SelectionState;\n documentDisplayMode$: Observable<string>;\n sharedPreviewUrl$: Observable<string>;\n actions: Array<ContentActionRef> = [];\n viewerToolbarActions: Array<ContentActionRef> = [];\n canUpdateNode = false;\n canUpload = false;\n nodeResult: NodePaging;\n showHeader = ShowHeaderMode.Data;\n filterSorting = 'name-asc';\n\n protected subscriptions: Subscription[] = [];\n\n protected constructor(protected store: Store<AppStore>, protected extensions: AppExtensionService, protected content: DocumentBasePageService) {}\n\n ngOnInit() {\n this.sharedPreviewUrl$ = this.store.select(getSharedUrl);\n this.infoDrawerOpened$ = this.store.select(isInfoDrawerOpened).pipe(map((infoDrawerState) => !this.isOutletPreviewUrl() && infoDrawerState));\n\n this.documentDisplayMode$ = this.store.select(getDocumentDisplayMode);\n\n this.store\n .select(getAppSelection)\n .pipe(takeUntil(this.onDestroy$))\n .subscribe((selection) => {\n this.selection = selection;\n this.canUpdateNode = this.selection.count === 1 && this.content.canUpdateNode(selection.first);\n });\n\n this.extensions\n .getAllowedToolbarActions()\n .pipe(takeUntil(this.onDestroy$))\n .subscribe((actions) => {\n this.actions = actions;\n });\n\n this.extensions\n .getViewerToolbarActions()\n .pipe(takeUntil(this.onDestroy$))\n .subscribe((actions) => {\n this.viewerToolbarActions = actions;\n });\n\n this.store\n .select(getCurrentFolder)\n .pipe(takeUntil(this.onDestroy$))\n .subscribe((node) => {\n this.canUpload = node && this.content.canUploadContent(node);\n });\n }\n\n ngOnChanges(changes: SimpleChanges) {\n if (changes.nodeResult && changes.nodeResult.currentValue) {\n this.nodeResult = changes.nodeResult.currentValue;\n }\n }\n\n ngOnDestroy() {\n this.subscriptions.forEach((subscription) => subscription.unsubscribe());\n this.subscriptions = [];\n\n this.onDestroy$.next(true);\n this.onDestroy$.complete();\n this.store.dispatch(new SetSelectedNodesAction([]));\n }\n\n showPreview(node: MinimalNodeEntity, extras?: ViewNodeExtras) {\n if (node && node.entry) {\n let id: string;\n\n if (node.entry.nodeType === 'app:filelink') {\n id = node.entry.properties['cm:destination'];\n } else {\n id = (node as any).entry.nodeId || (node as any).entry.guid || node.entry.id;\n }\n\n this.store.dispatch(new ViewNodeAction(id, extras));\n }\n }\n\n getParentNodeId(): string {\n return this.node ? this.node.id : null;\n }\n\n imageResolver(row: ShareDataRow): string | null {\n if (isLocked(row.node)) {\n return 'assets/images/baseline-lock-24px.svg';\n }\n\n if (isLibrary(row.node)) {\n return 'assets/images/baseline-library_books-24px.svg';\n }\n\n return null;\n }\n\n reload(selectedNode?: MinimalNodeEntity): void {\n if (this.isOutletPreviewUrl()) {\n return;\n }\n\n this.store.dispatch(new ReloadDocumentListAction());\n if (selectedNode) {\n this.store.dispatch(new SetSelectedNodesAction([selectedNode]));\n }\n }\n\n trackByActionId(_: number, action: ContentActionRef) {\n return action.id;\n }\n\n trackById(_: number, obj: { id: string }) {\n return obj.id;\n }\n\n trackByColumnId(_: number, obj: DocumentListPresetRef): string {\n return obj.id;\n }\n\n private isOutletPreviewUrl(): boolean {\n return location.href.includes('viewer:view');\n }\n\n onSortingChanged(event) {\n this.filterSorting = event.detail.key + '-' + event.detail.direction;\n }\n\n onAllFilterCleared() {\n if (!this.isOutletPreviewUrl()) {\n this.documentList.node = null;\n this.store.dispatch(new ReloadDocumentListAction());\n }\n }\n}\n","/*!\n * @license\n * Alfresco Example Content Application\n *\n * Copyright (C) 2005 - 2020 Alfresco Software Limited\n *\n * This file is part of the Alfresco Example Content Application.\n * If the software was purchased under a paid Alfresco license, the terms of\n * the paid license agreement will prevail. Otherwise, the software is\n * provided under the following open source license terms:\n *\n * The Alfresco Example Content Application is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * The Alfresco Example Content Application is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * along with Alfresco. If not, see <http://www.gnu.org/licenses/>.\n */\n\nimport { Directive, HostListener, Input, OnInit, OnDestroy } from '@angular/core';\nimport { debounceTime, takeUntil } from 'rxjs/operators';\nimport { Subject } from 'rxjs';\nimport { Store } from '@ngrx/store';\nimport { AppStore, ContextMenu } from '@alfresco/aca-shared/store';\n\n@Directive({\n selector: '[acaContextActions]',\n exportAs: 'acaContextActions'\n})\nexport class ContextActionsDirective implements OnInit, OnDestroy {\n private execute$: Subject<any> = new Subject();\n onDestroy$: Subject<boolean> = new Subject<boolean>();\n\n // eslint-disable-next-line\n @Input('acaContextEnable')\n enabled = true;\n\n @HostListener('contextmenu', ['$event'])\n onContextMenuEvent(event: MouseEvent) {\n if (event) {\n event.preventDefault();\n\n if (this.enabled) {\n const target = this.getTarget(event);\n if (target) {\n this.execute(event, target);\n }\n }\n }\n }\n\n constructor(private store: Store<AppStore>) {}\n\n ngOnInit() {\n this.execute$.pipe(debounceTime(300), takeUntil(this.onDestroy$)).subscribe((event: MouseEvent) => {\n this.store.dispatch(new ContextMenu(event));\n });\n }\n\n ngOnDestroy() {\n this.onDestroy$.next(true);\n this.onDestroy$.complete();\n }\n\n execute(event: MouseEvent, target: Element) {\n if (!this.isSelected(target)) {\n target.dispatchEvent(new MouseEvent('click'));\n }\n\n if (this.isEmptyTable(target)) {\n return null;\n }\n\n this.execute$.next(event);\n }\n\n private getTarget(event: MouseEvent): Element {\n const target = event.target as Element;\n return this.findAncestor(target, 'adf-datatable-cell');\n }\n\n private isSelected(target: Element): boolean {\n if (!target) {\n return false;\n }\n\n return this.findAncestor(target, 'adf-datatable-row').classList.contains('adf-is-selected');\n }\n\n private isEmptyTable(target: Element): boolean {\n return this.findAncestor(target, 'adf-datatable-cell').classList.contains('adf-no-content-container');\n }\n\n private findAncestor(el: Element, className: string): Element {\n if (el.classList.contains(className)) {\n return el;\n }\n // eslint-disable-next-line curly\n while ((el = el.parentElement) && !el.classList.contains(className));\n return el;\n }\n}\n","/*!\n * @license\n * Alfresco Example Content Application\n *\n * Copyright (C) 2005 - 2020 Alfresco Software Limited\n *\n * This file is part of the Alfresco Example Content Application.\n * If the software was purchased under a paid Alfresco license, the terms of\n * the paid license agreement will prevail. Otherwise, the software is\n * provided under the following open source license terms:\n *\n * The Alfresco Example Content Application is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * The Alfresco Example Content Application is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * along with Alfresco. If not, see <http://www.gnu.org/licenses/>.\n */\n\nimport { NgModule } from '@angular/core';\nimport { ContextActionsDirective } from './contextmenu.directive';\n\n/**\n * @deprecated in 1.11.0, use SharedDirectivesModule instead.\n */\n@NgModule({\n declarations: [ContextActionsDirective],\n exports: [ContextActionsDirective]\n})\nexport class ContextActionsModule {}\n","/*!\n * @license\n * Alfresco Example Content Application\n *\n * Copyright (C) 2005 - 2020 Alfresco Software Limited\n *\n * This file is part of the Alfresco Example Content Application.\n * If the software was purchased under a paid Alfresco license, the terms of\n * the paid license agreement will prevail. Otherwise, the software is\n * provided under the following open source license terms:\n *\n * The Alfresco Example Content Application is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * The Alfresco Example Content Application is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * along with Alfresco. If not, see <http://www.gnu.org/licenses/>.\n */\n\nimport { Directive, OnInit, OnDestroy } from '@angular/core';\nimport { PaginationComponent, UserPreferencesService, PaginationModel, AppConfigService } from '@alfresco/adf-core';\nimport { Subscription } from 'rxjs';\n\n@Directive({\n selector: '[acaPagination]'\n})\nexport class PaginationDirective implements OnInit, OnDestroy {\n private subscriptions: Subscription[] = [];\n\n constructor(private pagination: PaginationComponent, private preferences: UserPreferencesService, private config: AppConfigService) {}\n\n ngOnInit() {\n this.pagination.supportedPageSizes = this.config.get('pagination.supportedPageSizes');\n\n this.subscriptions.push(\n this.pagination.changePageSize.subscribe((event: PaginationModel) => {\n this.preferences.paginationSize = event.maxItems;\n })\n );\n }\n\n ngOnDestroy() {\n this.subscriptions.forEach((subscription) => subscription.unsubscribe());\n this.subscriptions = [];\n }\n}\n","/*!\n * @license\n * Alfresco Example Content Application\n *\n * Copyright (C) 2005 - 2020 Alfresco Software Limited\n *\n * This file is part of the Alfresco Example Content Application.\n * If the software was purchased under a paid Alfresco license, the terms of\n * the paid license agreement will prevail. Otherwise, the software is\n * provided under the following open source license terms:\n *\n * The Alfresco Example Content Application is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * The Alfresco Example Content Application is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * along with Alfresco. If not, see <http://www.gnu.org/licenses/>.\n */\n\nimport { NgModule } from '@angular/core';\nimport { PaginationDirective } from './pagination.directive';\nimport { ContextActionsModule } from './contextmenu/contextmenu.module';\n\n@NgModule({\n imports: [ContextActionsModule],\n declarations: [PaginationDirective],\n exports: [PaginationDirective, ContextActionsModule]\n})\nexport class SharedDirectivesModule {}\n","/*!\n * @license\n * Alfresco Example Content Application\n *\n * Copyright (C) 2005 - 2020 Alfresco Software Limited\n *\n * This file is part of the Alfresco Example Content Application.\n * If the software was purchased under a paid Alfresco license, the terms of\n * the paid license agreement will prevail. Otherwise, the software is\n * provided under the following open source license terms:\n *\n * The Alfresco Example Content Application is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * The Alfresco Example Content Application is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * along with Alfresco. If not, see <http://www.gnu.org/licenses/>.\n */\n\nimport { Injectable } from '@angular/core';\nimport { CanActivate, ActivatedRouteSnapshot } from '@angular/router';\nimport { Observable } from 'rxjs';\nimport { Store } from '@ngrx/store';\nimport { AppStore, isQuickShareEnabled } from '@alfresco/aca-shared/store';\n\n@Injectable({\n providedIn: 'root'\n})\nexport class AppSharedRuleGuard implements CanActivate {\n isQuickShareEnabled$: Observable<boolean>;\n\n constructor(store: Store<AppStore>) {\n this.isQuickShareEnabled$ = store.select(isQuickShareEnabled);\n }\n\n canActivate(_: ActivatedRouteSnapshot): Observable<boolean> | Promise<boolean> | boolean {\n return this.isQuickShareEnabled$;\n }\n\n canActivateChild(route: ActivatedRouteSnapshot): Observable<boolean> | Promise<boolean> | boolean {\n return this.canActivate(route);\n }\n}\n","/*!\n * @license\n * Alfresco Example Content Application\n *\n * Copyright (C) 2005 - 2020 Alfresco Software Limited\n *\n * This file is part of the Alfresco Example Content Application.\n * If the software was purchased under a paid Alfresco license, the terms of\n * the paid license agreement will prevail. Otherwise, the software is\n * provided under the following open source license terms:\n *\n * The Alfresco Example Content Application is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * The Alfresco Example Content Application is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * along with Alfresco. If not, see <http://www.gnu.org/licenses/>.\n */\n\nimport { Injectable, Type } from '@angular/core';\nimport { ExtensionService } from '@alfresco/adf-extensions';\nimport { ExtensionRoute } from '../models/types';\nimport { Router } from '@angular/router';\n\n@Injectable({\n providedIn: 'root'\n})\nexport class RouterExtensionService {\n defaults = {\n layout: 'app.layout.main',\n auth: ['app.auth']\n };\n\n constructor(private router: Router, protected extensions: ExtensionService) {}\n\n mapExtensionRoutes() {\n const routesWithoutParent = [];\n this.getApplicationRoutes().forEach((extensionRoute: ExtensionRoute) => {\n if (this.extensionRouteHasChild(extensionRoute)) {\n const parentRoute = this.findRoute(extensionRoute.parentRoute);\n if (parentRoute) {\n this.convertExtensionRouteToRoute(extensionRoute);\n parentRoute.children.unshift(extensionRoute);\n }\n } else {\n routesWithoutParent.push(extensionRoute);\n }\n });\n\n this.router.config.unshift(...routesWithoutParent);\n }\n\n public getApplicationRoutes(): Array<ExtensionRoute> {\n return this.extensions.routes.map((route) => {\n const guards = this.extensions.getAuthGuards(route.auth && route.auth.length > 0 ? route.auth : this.defaults.auth);\n\n return {\n path: route.path,\n component: this.getComponentById(route.layout ?? this.defaults.layout),\n canActivateChild: guards,\n canActivate: guards,\n parentRoute: route.parentRoute,\n children: [\n ...(route['children']\n ? route['children'].map(({ path, component, outlet, data }) => ({\n path,\n outlet,\n data,\n component: this.getComponentById(component)\n }))\n : []),\n {\n path: '',\n component: this.getComponentById(route.component),\n data: route.data\n }\n ]\n };\n });\n }\n\n private getComponentById(id: string): Type<unknown> {\n return this.extensions.getComponentById(id);\n }\n\n private extensionRouteHasChild(route: ExtensionRoute): boolean {\n return route.parentRoute !== undefined;\n }\n\n private convertExtensionRouteToRoute(extensionRoute: ExtensionRoute) {\n delete extensionRoute.parentRoute;\n delete extensionRoute.component;\n }\n\n private findRoute(parentRoute) {\n const routeIndex = this.router.config.findIndex((route) => route.path === parentRoute);\n\n return this.router.config[routeIndex];\n }\n}\n","/*!\n * @license\n * Alfresco Example Content Application\n *\n * Copyright (C) 2005 - 2020 Alfresco Software Limited\n *\n * This file is part of the Alfresco Example Content Application.\n * If the software was purchased under a paid Alfresco license, the terms of\n * the paid license agreement will prevail. Otherwise, the software is\n * provided under the following open source license terms:\n *\n * The Alfresco Example Content Application is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * The Alfresco Example Content Application is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * along with Alfresco. If not, see <http://www.gnu.org/licenses/>.\n */\n\nimport { Inject, Injectable, OnDestroy } from '@angular/core';\nimport {\n AuthenticationService,\n AppConfigService,\n AlfrescoApiService,\n UploadService,\n FileUploadErrorEvent,\n PageTitleService,\n UserPreferencesService\n} from '@alfresco/adf-core';\nimport { Observable, BehaviorSubject, Subject } from 'rxjs';\nimport { GroupService, SearchQueryBuilderService, SharedLinksApiService } from '@alfresco/adf-content-services';\nimport { OverlayContainer } from '@angular/cdk/overlay';\nimport { ActivatedRoute, ActivationEnd, NavigationStart, Router } from '@angular/router';\nimport { filter, map, takeUntil, tap } from 'rxjs/operators';\nimport {\n AppState,\n AppStore,\n CloseModalDialogsAction,\n getCustomCssPath,\n getCustomWebFontPath,\n STORE_INITIAL_APP_DATA,\n SetCurrentUrlAction,\n SetInitialStateAction,\n SetRepositoryInfoAction,\n SetUserProfileAction,\n SnackbarErrorAction,\n ResetSelectionAction\n} from '@alfresco/aca-shared/store';\nimport { ContentApiService } from './content-api.service';\nimport { RouterExtensionService } from './router.extension.service';\nimport { Store } from '@ngrx/store';\nimport { DiscoveryEntry, GroupEntry, Group } from '@alfresco/js-api';\n\n@Injectable({\n providedIn: 'root'\n})\n// After moving shell to ADF to core, AppService will implement ShellAppService\nexport class AppService implements OnDestroy {\n private ready: BehaviorSubject<boolean>;\n ready$: Observable<boolean>;\n\n pageHeading$: Observable<string>;\n\n hideSidenavConditions = ['/preview/'];\n minimizeSidenavConditions = ['search'];\n\n onDestroy$ = new Subject<boolean>();\n\n /**\n * Whether `withCredentials` mode is enabled.\n * Usually means that `Kerberos` mode is used.\n */\n get withCredentials(): boolean {\n return this.config.get<boolean>('auth.withCredentials', false);\n }\n\n constructor(\n public preferencesService: UserPreferencesService,\n private authenticationService: AuthenticationService,\n private store: Store<AppStore>,\n private router: Router,\n private activatedRoute: ActivatedRoute,\n private config: AppConfigService,\n private pageTitle: PageTitleService,\n private alfrescoApiService: AlfrescoApiService,\n private uploadService: UploadService,\n private routerExtensionService: RouterExtensionService,\n private contentApi: ContentApiService,\n private sharedLinksApiService: SharedLinksApiService,\n private groupService: GroupService,\n private overlayContainer: OverlayContainer,\n @Inject(STORE_INITIAL_APP_DATA) private initialAppState: AppState,\n searchQueryBuilderService: SearchQueryBuilderService\n ) {\n this.ready = new BehaviorSubject(this.authenticationService.isLoggedIn() || this.withCredentials);\n this.ready$ = this.ready.asObservable();\n\n this.authenticationService.onLogin.subscribe(() => {\n this.ready.next(true);\n });\n\n this.authenticationService.onLogout.subscribe(() => {\n searchQueryBuilderService.resetToDefaults();\n });\n\n this.pageHeading$ = this.router.events.pipe(\n filter((event) => event instanceof ActivationEnd && event.snapshot.children.length === 0),\n map((event: ActivationEnd) => event.snapshot?.data?.title ?? ''),\n tap((title) => this.pageTitle.setTitle(title))\n );\n }\n\n ngOnDestroy(): void {\n this.onDestroy$.next(true);\n this.onDestroy$.complete();\n }\n\n init(): void {\n this.alfrescoApiService.getInstance().on('error', (error: { status: number; response: any }) => {\n if (error.status === 401 && !this.alfrescoApiService.isExcludedErrorListener(error?.response?.req?.url)) {\n if (!this.authenticationService.isLoggedIn()) {\n this.store.dispatch(new CloseModalDialogsAction());\n\n let redirectUrl = this.activatedRoute.snapshot.queryParams['redirectUrl'];\n if (!redirectUrl) {\n redirectUrl = this.router.url;\n }\n\n this.router.navigate(['/login'], {\n queryParams: { redirectUrl }\n });\n }\n }\n });\n\n this.loadAppSettings();\n\n this.loadCustomCss();\n this.loadCustomWebFont();\n\n const { router } = this;\n\n this.router.events\n .pipe(filter((event) => event instanceof ActivationEnd && event.snapshot.children.length === 0))\n .subscribe((_event: ActivationEnd) => {\n this.store.dispatch(new SetCurrentUrlAction(router.url));\n });\n\n this.router.events\n .pipe(\n filter((event) => event instanceof NavigationStart),\n takeUntil(this.onDestroy$)\n )\n .subscribe(() => {\n this.store.dispatch(new ResetSelectionAction());\n });\n\n this.routerExtensionService.mapExtensionRoutes();\n\n this.uploadService.fileUploadError.subscribe((error) => this.onFileUploadedError(error));\n\n this.sharedLinksApiService.error.pipe(takeUntil(this.onDestroy$)).subscribe((err: { message: string }) => {\n this.store.dispatch(new SnackbarErrorAction(err.message));\n });\n\n this.ready$.pipe(takeUntil(this.onDestroy$)).subscribe((isReady) => {\n if (isReady) {\n this.loadRepositoryStatus();\n this.loadUserProfile();\n }\n });\n\n this.overlayContainer.getContainerElement().setAttribute('role', 'region');\n }\n\n private loadRepositoryStatus() {\n this.contentApi.getRepositoryInformation().subscribe((response: DiscoveryEntry) => {\n this.store.dispatch(new SetRepositoryInfoAction(response.entry.repository));\n });\n }\n\n private async loadUserProfile() {\n const groupsEntries: GroupEntry[] = await this.groupService.listAllGroupMembershipsForPerson('-me-', { maxItems: 250 });\n\n const groups: Group[] = [];\n\n if (groupsEntries) {\n groups.push(...groupsEntries.map((obj) => obj.entry));\n }\n\n this.contentApi.getPerson('-me-').subscribe((person) => {\n this.store.dispatch(new SetUserProfileAction({ person: person.entry, groups }));\n });\n }\n\n loadAppSettings() {\n let baseShareUrl = this.config.get<string>('baseShareUrl');\n if (!baseShareUrl.endsWith('/')) {\n baseShareUrl += '/';\n }\n\n const state: AppState = {\n ...this.initialAppState,\n appName: this.config.get<string>('application.name'),\n headerColor: this.config.get<string>('headerColor'),\n headerTextColor: this.config.get<string>('headerTextColor', '#000000'),\n logoPath: this.config.get<string>('application.logo'),\n headerImagePath: this.config.get<string>('application.headerImagePath'),\n customCssPath: this.config.get<string>('customCssPath'),\n webFontPath: this.config.get<string>('webFontPath'),\n sharedUrl: baseShareUrl\n };\n\n this.store.dispatch(new SetInitialStateAction(state));\n }\n\n onFileUploadedError(error: FileUploadErrorEvent) {\n let message = 'APP.MESSAGES.UPLOAD.ERROR.GENERIC';\n\n if (error.error.status === 403) {\n message = 'APP.MESSAGES.UPLOAD.ERROR.403';\n }\n\n if (error.error.status === 404) {\n message = 'APP.MESSAGES.UPLOAD.ERROR.404';\n }\n\n if (error.error.status === 409) {\n message = 'APP.MESSAGES.UPLOAD.ERROR.CONFLICT';\n }\n\n if (error.error.status === 500) {\n message = 'APP.MESSAGES.UPLOAD.ERROR.500';\n }\n\n if (error.error.status === 504) {\n message = 'APP.MESSAGES.UPLOAD.ERROR.504';\n }\n\n this.store.dispatch(new SnackbarErrorAction(message));\n }\n\n private loadCustomCss(): void {\n this.store.select(getCustomCssPath).subscribe((cssPath) => {\n if (cssPath) {\n this.createLink(cssPath);\n }\n });\n }\n\n private loadCustomWebFont(): void {\n this.store.select(getCustomWebFontPath).subscribe((fontUrl) => {\n if (fontUrl) {\n this.createLink(fontUrl);\n }\n });\n }\n\n private createLink(url: string): void {\n const cssLinkElement = document.createElement('link');\n cssLinkElement.setAttribute('rel', 'stylesheet');\n cssLinkElement.setAttribute('type', 'text/css');\n cssLinkElement.setAttribute('href', url);\n document.head.appendChild(cssLinkElement);\n }\n}\n","/*!\n * @license\n * Alfresco Example Content Application\n *\n * Copyright (C) 2005 - 2020 Alfresco Software Limited\n *\n * This file is part of the Alfresco Example Content Application.\n * If the software was purchased under a paid Alfresco license, the terms of\n * the paid license agreement will prevail. Otherwise, the software is\n * provided under the following open source license terms:\n *\n * The Alfresco Example Content Application is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * The Alfresco Example Content Application is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * along with Alfresco. If not, see <http://www.gnu.org/licenses/>.\n */\n\nimport { Injectable } from '@angular/core';\nimport { Subject } from 'rxjs';\nimport { SiteEntry } from '@alfresco/js-api';\n\n@Injectable({\n providedIn: 'root'\n})\nexport class AppHookService {\n /**\n * Gets emitted when reloads event fired\n */\n reload = new Subject<any>();\n\n /**\n * Gets emitted when user reset the node\n */\n reset = new Subject<any>();\n\n /**\n * Gets emitted when user delete the node\n */\n nodesDeleted = new Subject<any>();\n\n /**\n * Gets emitted when user delete the library\n */\n libraryDeleted = new Subject<string>();\n\n /**\n * Gets emitted when user create the library\n */\n libraryCreated = new Subject<SiteEntry>();\n\n /**\n * Gets emitted when user update the library\n */\n libraryUpdated = new Subject<SiteEntry>();\n\n /**\n * Gets emitted when user join the library\n */\n libraryJoined = new Subject<string>();\n\n /**\n * Gets emitted when user left the library\n */\n libraryLeft = new Subject<string>();\n\n /**\n * Gets emitted when library throws 400 error code\n */\n library400Error = new Subject<any>();\n\n /**\n * Gets emitted when user join the library\n */\n joinLibraryToggle = new Subject<string>();\n\n /**\n * Gets emitted when user unlink the node\n */\n linksUnshared = new Subject<any>();\n\n /**\n * Gets emitted when user mark the the favorite library\n */\n favoriteLibraryToggle = new Subject<any>();\n}\n","/*!\n * @license\n * Alfresco Example Content Application\n *\n * Copyright (C) 2005 - 2020 Alfresco Software Limited\n *\n * This file is part of the Alfresco Example Content Application.\n * If the software was purchased under a paid Alfresco license, the terms of\n * the paid license agreement will prevail. Otherwise, the software is\n * provided under the following open source license terms:\n *\n * The Alfresco Example Content Application is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * The Alfresco Example Content Application is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * along with Alfresco. If not, see <http://www.gnu.org/licenses/>.\n */\n\nimport { Injectable } from '@angular/core';\nimport { AppConfigService } from '@alfresco/adf-core';\nimport { map, take } from 'rxjs/operators';\n\n@Injectable({\n providedIn: 'root'\n})\nexport class AlfrescoOfficeExtensionService {\n constructor(private appConfigService: AppConfigService) {\n this.appConfigService.onLoad\n .pipe(\n take(1),\n map((appConfig) => appConfig.plugins && appConfig.plugins.aosPlugin)\n )\n .subscribe((aosPlugin) => {\n if (aosPlugin) {\n this.enablePlugin();\n } else {\n this.disablePlugin();\n }\n });\n }\n\n enablePlugin() {\n if (localStorage && localStorage.getItem('aosPlugin') === null) {\n localStorage.setItem('aosPlugin', 'true');\n }\n }\n\n disablePlugin() {\n localStorage.removeItem('aosPlugin');\n }\n\n isAosPluginEnabled() {\n return localStorage && localStorage.getItem('aosPlugin') === 'true';\n }\n}\n","/*!\n * @license\n * Alfresco Example Content Application\n *\n * Copyright (C) 2005 - 2020 Alfresco Software Limited\n *\n * This file is part of the Alfresco Example Content Application.\n * If the software was purchased under a paid Alfresco license, the terms of\n * the paid license agreement will prevail. Otherwise, the software is\n * provided under the following open source license terms:\n *\n * The Alfresco Example Content Application is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * The Alfresco Example Content Application is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * along with Alfresco. If not, see <http://www.gnu.org/licenses/>.\n */\n\nimport { ModuleWithProviders, NgModule } from '@angular/core';\nimport { ContentApiService } from './services/content-api.service';\nimport { NodePermissionService } from './services/node-permission.service';\nimport { AppService } from './services/app.service';\nimport { ContextActionsModule } from './directives/contextmenu/contextmenu.module';\n\n@NgModule({\n imports: [ContextActionsModule],\n exports: [ContextActionsModule]\n})\nexport class SharedModule {\n static forRoot(): ModuleWithProviders<SharedModule> {\n return {\n ngModule: SharedModule,\n providers: [ContentApiService, NodePermissionService, AppService]\n };\n }\n}\n","/*!\n * @license\n * Alfresco Example Content Application\n *\n * Copyright (C) 2005 - 2020 Alfresco Software Limited\n *\n * This file is part of the Alfresco Example Content Application.\n * If the software was purchased under a paid Alfresco license, the terms of\n * the paid license agreement will prevail. Otherwise, the software is\n * provided under the following open source license terms:\n *\n * The Alfresco Example Content Application is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * The Alfresco Example Content Application is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * along with Alfresco. If not, see <http://www.gnu.org/licenses/>.\n */\n\nimport { NgModule } from '@angular/core';\nimport { TranslateLoader, TranslateModule } from '@ngx-translate/core';\nimport { NoopAnimationsModule } from '@angular/platform-browser/animations';\nimport {\n AlfrescoApiService,\n AlfrescoApiServiceMock,\n PipeModule,\n TranslateLoaderService,\n TranslationMock,\n TranslationService\n} from '@alfresco/adf-core';\nimport { HttpClientModule } from '@angular/common/http';\nimport { RouterTestingModule } from '@angular/router/testing';\nimport { EffectsModule } from '@ngrx/effects';\nimport { StoreModule } from '@ngrx/store';\nimport { CommonModule } from '@angular/common';\n\nexport const initialState = {\n app: {\n appName: 'Alfresco Content Application',\n headerColor: '#ffffff',\n logoPath: 'assets/images/alfresco-logo-white.svg',\n headerImagePath: 'assets/images/mastHead-bg-shapesPattern.svg',\n sharedUrl: '',\n user: {\n isAdmin: null,\n id: null,\n firstName: '',\n lastName: ''\n },\n selection: {\n nodes: [],\n libraries: [],\n isEmpty: true,\n count: 0\n },\n navigation: {\n currentFolder: null\n },\n infoDrawerOpened: false,\n infoDrawerMetadataAspect: '',\n showFacetFilter: true,\n documentDisplayMode: 'list',\n repository: {\n status: {\n isQuickShareEnabled: true\n }\n } as any\n }\n};\n\n@NgModule({\n imports: [\n NoopAnimationsModule,\n CommonModule,\n HttpClientModule,\n RouterTestingModule,\n StoreModule,\n EffectsModule.forRoot([]),\n TranslateModule.forRoot({\n loader: {\n provide: TranslateLoader,\n useClass: TranslateLoaderService\n }\n }),\n PipeModule\n ],\n providers: [\n { provide: AlfrescoApiService, useClass: AlfrescoApiServiceMock },\n { provide: TranslationService, useClass: TranslationMock }\n ]\n})\nexport class LibTestingModule {}\n","/*!\n * @license\n * Alfresco Example Content Application\n *\n * Copyright (C) 2005 - 2020 Alfresco Software Limited\n *\n * This file is part of the Alfresco Example Content Application.\n * If the software was purchased under a paid Alfresco license, the terms of\n * the paid license agreement will prevail. Otherwise, the software is\n * provided under the following open source license terms:\n *\n * The Alfresco Example Content Application is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * The Alfresco Example Content Application is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * along with Alfresco. If not, see <http://www.gnu.org/licenses/>.\n */\n\nimport { Injectable } from '@angular/core';\nimport { TranslateService } from '@ngx-translate/core';\nimport { Observable, of } from 'rxjs';\n\n@Injectable()\nexport class TranslateServiceMock extends TranslateService {\n constructor() {\n super(null, null, null, null, null, null, true, null, null);\n }\n\n get(key: string | Array<string>): Observable<string | any> {\n return of(key);\n }\n\n instant(key: string | Array<string>): string | any {\n return key;\n }\n}\n","/*!\n * @license\n * Alfresco Example Content Application\n *\n * Copyright (C) 2005 - 2020 Alfresco Software Limited\n *\n * This file is part of the Alfresco Example Content Application.\n * If the software was purchased under a paid Alfresco license, the terms of\n * the paid license agreement will prevail. Otherwise, the software is\n * provided under the following open source license terms:\n *\n * The Alfresco Example Content Application is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * The Alfresco Example Content Application is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * along with Alfresco. If not, see <http://www.gnu.org/licenses/>.\n */\n\nexport * from './lib/adf-extensions/extensions-data-loader.guard';\nexport * from './lib/components/page-layout/page-layout-content.component';\nexport * from './lib/components/page-layout/page-layout-error.component';\nexport * from './lib/components/page-layout/page-layout-header.component';\nexport * from './lib/components/page-layout/page-layout.component';\nexport * from './lib/components/page-layout/page-layout.module';\nexport * from './lib/components/locked-by/locked-by.component';\nexport * from './lib/components/locked-by/locked-by.module';\nexport * from './lib/components/generic-error/generic-error.component';\nexport * from './lib/components/generic-error/generic-error.module';\nexport * from './lib/components/tool-bar/shared-toolbar.module';\nexport * from './lib/components/tool-bar/toolbar-action/toolbar-action.component';\nexport * from './lib/components/tool-bar/toolbar-button/toolbar-button.component';\nexport * from './lib/components/tool-bar/toolbar-menu/toolbar-menu.component';\nexport * from './lib/components/tool-bar/toolbar-menu-item/toolbar-menu-item.component';\nexport * from './lib/components/info-drawer/info-drawer.component';\nexport * from './lib/components/info-drawer/shared-info-drawer.module';\nexport * from './lib/components/document-base-page/document-base-page.component';\nexport * from './lib/components/document-base-page/document-base-page.service';\n\nexport * from './lib/directives/contextmenu/contextmenu.directive';\nexport * from './lib/directives/contextmenu/contextmenu.module';\nexport * from './lib/directives/pagination.directive';\nexport * from './lib/directives/shared.directives.module';\n\nexport * from './lib/models/types';\nexport * from './lib/models/viewer.rules';\nexport * from './lib/models/modal-configuration';\n\nexport * from './lib/routing/shared.guard';\n\nexport * from './lib/services/app.service';\nexport * from './lib/services/content-api.service';\nexport * from './lib/services/node-permission.service';\nexport * from './lib/services/app.extension.service';\nexport * from './lib/services/router.extension.service';\nexport * from './lib/services/app-hook.service';\nexport * from './lib/services/alfresco-office-extension.service';\n\nexport * from './lib/utils/node.utils';\nexport * from './lib/shared.module';\nexport * from './lib/testing/lib-testing-module';\nexport * from './lib/testing/translation.service';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["i1","i2","i4.NodePermissionService","i5","i1.AppExtensionService","i7","i3","i4","i6.ToolbarMenuItemComponent","i5.ToolbarMenuItemComponent","i6","i4.ToolbarButtonComponent","i5.ToolbarMenuComponent","i2.ContentApiService","i3.AppExtensionService","i8.ToolbarActionComponent","i9","i2.AppExtensionService","i3.DocumentBasePageService"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;;;;;;;;;;;;;;AAuBG;MASU,6BAA6B,GAAG,MAAM,GAAG;MAEzC,sBAAsB,GAAG,IAAI,c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