@alfresco/aca-shared 2.0.1 → 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 (220) hide show
  1. package/README.md +2 -1
  2. package/{esm2015/alfresco-aca-shared.js → esm2020/alfresco-aca-shared.mjs} +0 -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/esm2020/lib/components/page-layout/page-layout-error.component.mjs +41 -0
  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/info-drawer/shared-info-drawer.module.js → esm2020/lib/directives/contextmenu/contextmenu.module.mjs} +17 -15
  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/{esm2015/lib/models/types.js → esm2020/lib/models/types.mjs} +1 -0
  28. package/{esm2015/lib/models/viewer.rules.js → esm2020/lib/models/viewer.rules.mjs} +2 -1
  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/{esm2015/lib/services/node-permission.service.js → esm2020/lib/services/node-permission.service.mjs} +9 -7
  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/{esm2015/store/actions/contextmenu.actions.js → esm2020/lib/testing/translation.service.mjs} +19 -9
  40. package/{esm2015/lib/utils/node.utils.js → esm2020/lib/utils/node.utils.mjs} +0 -0
  41. package/esm2020/public-api.mjs +63 -0
  42. package/{esm2015/rules/alfresco-aca-shared-rules.js → esm2020/rules/alfresco-aca-shared-rules.mjs} +0 -0
  43. package/esm2020/rules/app.rules.mjs +503 -0
  44. package/esm2020/rules/navigation.rules.mjs +152 -0
  45. package/{esm2015/rules/public-api.js → esm2020/rules/public-api.mjs} +0 -0
  46. package/{esm2015/store/states/app.state.js → esm2020/rules/repository.rules.mjs} +10 -1
  47. package/esm2020/rules/user.rules.mjs +30 -0
  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/{esm2015/store/actions/metadata-aspect.actions.js → esm2020/store/actions/metadata-aspect.actions.mjs} +0 -0
  54. package/esm2020/store/actions/node.actions.mjs +189 -0
  55. package/{esm2015/lib/components/generic-error/generic-error.module.js → esm2020/store/actions/router-action-types.mjs} +9 -15
  56. package/esm2020/store/actions/router.actions.mjs +55 -0
  57. package/esm2020/store/actions/search.actions.mjs +36 -0
  58. package/esm2020/store/actions/snackbar.actions.mjs +58 -0
  59. package/esm2020/store/actions/template-action-types.mjs +32 -0
  60. package/{esm2015/lib/components/generic-error/generic-error.component.js → esm2020/store/actions/template.actions.mjs} +21 -17
  61. package/esm2020/store/actions/upload.actions.mjs +50 -0
  62. package/esm2020/store/actions/viewer.actions.mjs +82 -0
  63. package/{esm2015/store/alfresco-aca-shared-store.js → esm2020/store/alfresco-aca-shared-store.mjs} +0 -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/{esm2015/store/models/delete-status.model.js → esm2020/store/models/delete-status.model.mjs} +1 -0
  68. package/{esm2015/store/models/deleted-node-info.model.js → esm2020/store/models/deleted-node-info.model.mjs} +1 -0
  69. package/esm2020/store/models/modal-configuration.mjs +2 -0
  70. package/{esm2015/store/models/node-info.model.js → esm2020/store/models/node-info.model.mjs} +1 -0
  71. package/{esm2015/store/models/search-option.model.js → esm2020/store/models/search-option.model.mjs} +0 -0
  72. package/esm2020/store/public-api.mjs +50 -0
  73. package/esm2020/store/selectors/app.selectors.mjs +60 -0
  74. package/esm2020/store/states/app.state.mjs +27 -0
  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.js → alfresco-aca-shared-store.mjs} +302 -276
  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} +220 -150
  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/{alfresco-aca-shared.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 +13 -7
  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 +30 -45
  118. package/lib/services/app.service.d.ts +42 -6
  119. package/lib/services/content-api.service.d.ts +34 -25
  120. package/lib/services/node-permission.service.d.ts +3 -24
  121. package/lib/services/router.extension.service.d.ts +3 -24
  122. package/lib/shared.module.d.ts +5 -0
  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 +57 -18
  126. package/public-api.d.ts +7 -1
  127. package/rules/app.rules.d.ts +104 -30
  128. package/rules/{alfresco-aca-shared-rules.d.ts → 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 +19 -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 +6 -0
  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/{alfresco-aca-shared-store.d.ts → index.d.ts} +1 -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 +6 -1
  153. package/store/states/app.state.d.ts +8 -1
  154. package/store/store.module.d.ts +5 -24
  155. package/alfresco-aca-shared.metadata.json +0 -1
  156. package/bundles/alfresco-aca-shared-rules.umd.js +0 -745
  157. package/bundles/alfresco-aca-shared-rules.umd.js.map +0 -1
  158. package/bundles/alfresco-aca-shared-rules.umd.min.js +0 -125
  159. package/bundles/alfresco-aca-shared-rules.umd.min.js.map +0 -1
  160. package/bundles/alfresco-aca-shared-store.umd.js +0 -1784
  161. package/bundles/alfresco-aca-shared-store.umd.js.map +0 -1
  162. package/bundles/alfresco-aca-shared-store.umd.min.js +0 -462
  163. package/bundles/alfresco-aca-shared-store.umd.min.js.map +0 -1
  164. package/bundles/alfresco-aca-shared.umd.js +0 -2523
  165. package/bundles/alfresco-aca-shared.umd.js.map +0 -1
  166. package/bundles/alfresco-aca-shared.umd.min.js +0 -740
  167. package/bundles/alfresco-aca-shared.umd.min.js.map +0 -1
  168. package/esm2015/lib/adf-extensions/extensions-data-loader.guard.js +0 -74
  169. package/esm2015/lib/components/info-drawer/info-drawer.component.js +0 -105
  170. package/esm2015/lib/components/locked-by/locked-by.component.js +0 -54
  171. package/esm2015/lib/components/locked-by/locked-by.module.js +0 -38
  172. package/esm2015/lib/components/page-layout/page-layout-content.component.js +0 -43
  173. package/esm2015/lib/components/page-layout/page-layout-error.component.js +0 -37
  174. package/esm2015/lib/components/page-layout/page-layout-header.component.js +0 -37
  175. package/esm2015/lib/components/page-layout/page-layout.component.js +0 -44
  176. package/esm2015/lib/components/page-layout/page-layout.module.js +0 -40
  177. package/esm2015/lib/components/tool-bar/shared-toolbar.module.js +0 -42
  178. package/esm2015/lib/components/tool-bar/toolbar-action/toolbar-action.component.js +0 -57
  179. package/esm2015/lib/components/tool-bar/toolbar-button/toolbar-button.component.js +0 -66
  180. package/esm2015/lib/components/tool-bar/toolbar-menu/toolbar-menu.component.js +0 -55
  181. package/esm2015/lib/components/tool-bar/toolbar-menu-item/toolbar-menu-item.component.js +0 -65
  182. package/esm2015/lib/directives/contextmenu/contextmenu.directive.js +0 -97
  183. package/esm2015/lib/directives/contextmenu/contextmenu.module.js +0 -38
  184. package/esm2015/lib/directives/pagination.directive.js +0 -55
  185. package/esm2015/lib/directives/shared.directives.module.js +0 -37
  186. package/esm2015/lib/routing/app.routes.strategy.js +0 -105
  187. package/esm2015/lib/routing/shared.guard.js +0 -50
  188. package/esm2015/lib/services/app.extension.service.js +0 -398
  189. package/esm2015/lib/services/app.service.js +0 -69
  190. package/esm2015/lib/services/content-api.service.js +0 -205
  191. package/esm2015/lib/services/router.extension.service.js +0 -110
  192. package/esm2015/lib/shared.module.js +0 -44
  193. package/esm2015/public-api.js +0 -57
  194. package/esm2015/rules/app.rules.js +0 -420
  195. package/esm2015/rules/navigation.rules.js +0 -164
  196. package/esm2015/rules/repository.rules.js +0 -32
  197. package/esm2015/rules/user.rules.js +0 -32
  198. package/esm2015/store/actions/app.actions.js +0 -130
  199. package/esm2015/store/actions/library.actions.js +0 -63
  200. package/esm2015/store/actions/node.actions.js +0 -161
  201. package/esm2015/store/actions/router.actions.js +0 -56
  202. package/esm2015/store/actions/search.actions.js +0 -54
  203. package/esm2015/store/actions/snackbar.actions.js +0 -61
  204. package/esm2015/store/actions/template.actions.js +0 -54
  205. package/esm2015/store/actions/upload.actions.js +0 -49
  206. package/esm2015/store/actions/viewer.actions.js +0 -75
  207. package/esm2015/store/effects/dialog.effects.js +0 -49
  208. package/esm2015/store/effects/router.effects.js +0 -132
  209. package/esm2015/store/effects/snackbar.effects.js +0 -90
  210. package/esm2015/store/public-api.js +0 -46
  211. package/esm2015/store/selectors/app.selectors.js +0 -80
  212. package/esm2015/store/store.module.js +0 -37
  213. package/fesm2015/alfresco-aca-shared-rules.js.map +0 -1
  214. package/fesm2015/alfresco-aca-shared-store.js.map +0 -1
  215. package/fesm2015/alfresco-aca-shared.js +0 -2167
  216. package/fesm2015/alfresco-aca-shared.js.map +0 -1
  217. package/rules/alfresco-aca-shared-rules.metadata.json +0 -1
  218. package/rules/package.json +0 -11
  219. package/store/alfresco-aca-shared-store.metadata.json +0 -1
  220. package/store/package.json +0 -11
@@ -1 +0,0 @@
1
- {"version":3,"file":"alfresco-aca-shared.umd.js","sources":["../../../../node_modules/tslib/tslib.es6.js","../../../../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.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.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/toolbar-menu.component.ts","../../../../projects/aca-shared/src/lib/components/tool-bar/toolbar-action/toolbar-action.component.ts","../../../../projects/aca-shared/src/lib/components/tool-bar/toolbar-button/toolbar-button.component.ts","../../../../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/shared-info-drawer.module.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/models/types.ts","../../../../projects/aca-shared/src/lib/models/viewer.rules.ts","../../../../projects/aca-shared/src/lib/routing/app.routes.strategy.ts","../../../../projects/aca-shared/src/lib/routing/shared.guard.ts","../../../../projects/aca-shared/src/lib/services/app.service.ts","../../../../projects/aca-shared/src/lib/services/router.extension.service.ts","../../../../projects/aca-shared/src/lib/utils/node.utils.ts","../../../../projects/aca-shared/src/lib/shared.module.ts","../../../../projects/aca-shared/src/public-api.ts","../../../../projects/aca-shared/src/alfresco-aca-shared.ts"],"sourcesContent":["/*! *****************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\r\n/* global Reflect, Promise */\r\n\r\nvar extendStatics = function(d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n};\r\n\r\nexport function __extends(d, b) {\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n}\r\n\r\nexport var __assign = function() {\r\n __assign = Object.assign || function __assign(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n }\r\n return t;\r\n }\r\n return __assign.apply(this, arguments);\r\n}\r\n\r\nexport function __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n}\r\n\r\nexport function __decorate(decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n}\r\n\r\nexport function __param(paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n}\r\n\r\nexport function __metadata(metadataKey, metadataValue) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\r\n}\r\n\r\nexport function __awaiter(thisArg, _arguments, P, generator) {\r\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n}\r\n\r\nexport function __generator(thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (_) try {\r\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n}\r\n\r\nexport var __createBinding = Object.create ? (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });\r\n}) : (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n o[k2] = m[k];\r\n});\r\n\r\nexport function __exportStar(m, o) {\r\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);\r\n}\r\n\r\nexport function __values(o) {\r\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\r\n if (m) return m.call(o);\r\n if (o && typeof o.length === \"number\") return {\r\n next: function () {\r\n if (o && i >= o.length) o = void 0;\r\n return { value: o && o[i++], done: !o };\r\n }\r\n };\r\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\r\n}\r\n\r\nexport function __read(o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n}\r\n\r\nexport function __spread() {\r\n for (var ar = [], i = 0; i < arguments.length; i++)\r\n ar = ar.concat(__read(arguments[i]));\r\n return ar;\r\n}\r\n\r\nexport function __spreadArrays() {\r\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n r[k] = a[j];\r\n return r;\r\n};\r\n\r\nexport function __await(v) {\r\n return this instanceof __await ? (this.v = v, this) : new __await(v);\r\n}\r\n\r\nexport function __asyncGenerator(thisArg, _arguments, generator) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\r\n return i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i;\r\n function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\r\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\r\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\r\n function fulfill(value) { resume(\"next\", value); }\r\n function reject(value) { resume(\"throw\", value); }\r\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\r\n}\r\n\r\nexport function __asyncDelegator(o) {\r\n var i, p;\r\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\r\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === \"return\" } : f ? f(v) : v; } : f; }\r\n}\r\n\r\nexport function __asyncValues(o) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var m = o[Symbol.asyncIterator], i;\r\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\r\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\r\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\r\n}\r\n\r\nexport function __makeTemplateObject(cooked, raw) {\r\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\r\n return cooked;\r\n};\r\n\r\nvar __setModuleDefault = Object.create ? (function(o, v) {\r\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\r\n}) : function(o, v) {\r\n o[\"default\"] = v;\r\n};\r\n\r\nexport function __importStar(mod) {\r\n if (mod && mod.__esModule) return mod;\r\n var result = {};\r\n if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\r\n __setModuleDefault(result, mod);\r\n return result;\r\n}\r\n\r\nexport function __importDefault(mod) {\r\n return (mod && mod.__esModule) ? mod : { default: mod };\r\n}\r\n\r\nexport function __classPrivateFieldGet(receiver, privateMap) {\r\n if (!privateMap.has(receiver)) {\r\n throw new TypeError(\"attempted to get private field on non-instance\");\r\n }\r\n return privateMap.get(receiver);\r\n}\r\n\r\nexport function __classPrivateFieldSet(receiver, privateMap, value) {\r\n if (!privateMap.has(receiver)) {\r\n throw new TypeError(\"attempted to set private field on non-instance\");\r\n }\r\n privateMap.set(receiver, value);\r\n return value;\r\n}\r\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, InjectionToken, Inject } from '@angular/core';\nimport { CanActivate, ActivatedRouteSnapshot } from '@angular/router';\nimport { Observable, forkJoin, of } from 'rxjs';\nimport { map, catchError } from 'rxjs/operators';\n\nexport type ExtensionLoaderCallback = (route: ActivatedRouteSnapshot) => Observable<boolean>;\n\nexport function DefaultExtensionLoaderFactory() {\n return [];\n}\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 this.invoked = true;\n\n if (!this.extensionDataLoaders.length) {\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 catchError((e) => {\n // tslint:disable-next-line\n console.error('Some of the extension data loader guards has been errored.');\n // tslint:disable-next-line\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","/*!\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, OnInit, ChangeDetectionStrategy, ViewEncapsulation } from '@angular/core';\n\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--name\">{{ writeLockedBy() }}</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 implements OnInit {\n @Input()\n context: any;\n\n node: NodeEntry;\n\n constructor() {}\n\n ngOnInit() {\n this.node = this.context.row.node;\n }\n\n writeLockedBy() {\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';\n\n@NgModule({\n imports: [CommonModule, MatIconModule],\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","/*!\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, getLanguagePickerState } 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} 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';\n\n@Injectable({\n providedIn: 'root'\n})\nexport class AppExtensionService implements RuleContext {\n private _references = new BehaviorSubject<ExtensionRef[]>([]);\n\n headerActions: Array<ContentActionRef> = [];\n toolbarActions: Array<ContentActionRef> = [];\n viewerToolbarActions: Array<ContentActionRef> = [];\n sharedLinkViewerToolbarActions: Array<ContentActionRef> = [];\n contextMenuActions: Array<ContentActionRef> = [];\n openWithActions: Array<ContentActionRef> = [];\n createActions: Array<ContentActionRef> = [];\n navbar: Array<NavBarGroupRef> = [];\n sidebarTabs: Array<SidebarTabRef> = [];\n sidebarActions: Array<ContentActionRef> = [];\n contentMetadata: any;\n viewerRules: ViewerRules = {};\n userActions: Array<ContentActionRef> = [];\n settingGroups: Array<SettingsGroupRef> = [];\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 languagePicker: boolean;\n\n references$: Observable<ExtensionRef[]>;\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 protected 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\n this.store.select(getLanguagePickerState).subscribe((result) => {\n this.languagePicker = result;\n });\n }\n\n async load() {\n const config = await this.extensions.load();\n this.setup(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 = this.loader.getContentActions(config, 'features.header');\n this.sidebarActions = this.loader.getContentActions(config, 'features.sidebar.toolbar');\n this.toolbarActions = this.loader.getContentActions(config, 'features.toolbar');\n this.viewerToolbarActions = this.loader.getContentActions(config, 'features.viewer.toolbarActions');\n this.sharedLinkViewerToolbarActions = this.loader.getContentActions(config, 'features.viewer.shared.toolbarActions');\n\n this.contextMenuActions = this.loader.getContentActions(config, 'features.contextMenu');\n this.openWithActions = this.loader.getContentActions(config, 'features.viewer.openWith');\n this.createActions = this.loader.getElements<ContentActionRef>(config, 'features.create');\n this.navbar = this.loadNavBar(config);\n this.sidebarTabs = this.loader.getElements<SidebarTabRef>(config, 'features.sidebar.tabs');\n this.userActions = this.loader.getContentActions(config, 'features.userActions');\n this.contentMetadata = this.loadContentMetadata(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) {\n return this.loader.getElements<DocumentListPresetRef>(config, `features.documentList.${key}`).filter((entry) => !entry.disabled);\n }\n\n getApplicationNavigation(elements): Array<NavBarGroupRef> {\n return elements\n .filter((group) => this.filterVisible(group))\n .map((group) => {\n return {\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\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 };\n } catch (error) {\n this.logger.error(error, '- could not change content-metadata from app.config -');\n }\n\n return { presets };\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 getCreateActions(): Array<ContentActionRef> {\n return this.createActions\n .filter((action) => this.filterVisible(action))\n .map((action) => this.copyAction(action))\n .map((action) => this.buildMenu(action))\n .map((action) => {\n let disabled = false;\n\n if (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\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) => {\n let disabled = false;\n\n if (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 .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 .reduce(reduceEmptyMenus, [])\n .reduce(reduceSeparators, []);\n }\n\n getAllowedSidebarActions(): Array<ContentActionRef> {\n return this.getAllowedActions(this.sidebarActions);\n }\n\n getAllowedToolbarActions(): Array<ContentActionRef> {\n return this.getAllowedActions(this.toolbarActions);\n }\n\n getViewerToolbarActions(): Array<ContentActionRef> {\n return this.getAllowedActions(this.viewerToolbarActions);\n }\n\n getSharedLinkViewerToolbarActions(): Array<ContentActionRef> {\n return this.getAllowedActions(this.sharedLinkViewerToolbarActions);\n }\n\n getHeaderActions(): Array<ContentActionRef> {\n return this.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 .sort(sortByOrder)\n .reduce(reduceEmptyMenus, [])\n .reduce(reduceSeparators, []);\n }\n\n getAllowedContextMenuActions(): Array<ContentActionRef> {\n return this.getAllowedActions(this.contextMenuActions);\n }\n\n getUserActions(): Array<ContentActionRef> {\n return this.userActions.filter((action) => this.filterVisible(action)).sort(sortByOrder);\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): 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) {\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({ type, payload: expression });\n } else {\n this.store.dispatch({ type: id });\n }\n }\n\n // todo: move to ADF/RuleService\n isRuleDefined(ruleId: string): boolean {\n return ruleId && this.getEvaluator(ruleId) ? true : false;\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","/*!\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';\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\n constructor(private extensions: AppExtensionService) {}\n\n runAction() {\n if (this.hasClickAction(this.actionRef)) {\n this.extensions.runActionById(this.actionRef.actions.click);\n }\n }\n\n private hasClickAction(actionRef: ContentActionRef): boolean {\n if (actionRef && actionRef.actions && actionRef.actions.click) {\n return true;\n }\n return false;\n }\n\n trackById(_: number, obj: { id: string }) {\n return obj.id;\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, ViewEncapsulation, HostListener, ViewChild } from '@angular/core';\nimport { ContentActionRef } from '@alfresco/adf-extensions';\nimport { MatMenuTrigger } from '@angular/material/menu';\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 {\n @Input()\n actionRef: ContentActionRef;\n\n @Input()\n color = '';\n\n @ViewChild('matTrigger') matTrigger: MatMenuTrigger;\n\n @HostListener('document:keydown.Escape')\n handleKeydownEscape() {\n this.matTrigger.closeMenu();\n }\n\n get hasChildren(): boolean {\n return this.actionRef && this.actionRef.children && this.actionRef.children.length > 0;\n }\n\n trackById(_: number, obj: { id: string }) {\n return obj.id;\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, DoCheck, ChangeDetectorRef } from '@angular/core';\nimport { ContentActionRef } from '@alfresco/adf-extensions';\n\n@Component({\n selector: 'aca-toolbar-action',\n templateUrl: './toolbar-action.component.html',\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: { class: 'aca-toolbar-action' }\n})\nexport class ToolbarActionComponent implements DoCheck {\n @Input()\n type = 'icon-button';\n\n @Input()\n color = '';\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","/*!\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';\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 = '';\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 }\n }\n\n private hasClickAction(actionRef: ContentActionRef): boolean {\n if (actionRef && actionRef.actions && actionRef.actions.click) {\n return true;\n }\n return false;\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 { 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} from '@alfresco/js-api';\nimport { map } from 'rxjs/operators';\n\n@Injectable({\n providedIn: 'root'\n})\nexport class ContentApiService {\n constructor(private api: AlfrescoApiService, private preferences: UserPreferencesService) {}\n\n /**\n * Moves a node to the trashcan.\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.api.nodesApi.deleteNode(nodeId, options));\n }\n\n /**\n * Gets the stored information about a node.\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.api.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 return from(this.api.nodesApi.getNodeInfo(nodeId, queryOptions));\n }\n\n /**\n * Gets the items contained in a folder node.\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.api.nodesApi.getNodeChildren(nodeId, queryOptions));\n }\n\n deleteSharedLink(linkId: string): Observable<any> {\n return from(this.api.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.api.nodesApi.getDeletedNodes(queryOptions));\n }\n\n restoreNode(nodeId: string): Observable<MinimalNodeEntity> {\n return from(this.api.nodesApi.restoreNode(nodeId));\n }\n\n purgeDeletedNode(nodeId: string): Observable<any> {\n return from(this.api.nodesApi.purgeDeletedNode(nodeId));\n }\n\n /**\n * Gets information about a user identified by their username.\n * @param personId ID of the target user\n * @returns User information\n */\n getPerson(personId: string, options?: { fields?: Array<string> }): Observable<PersonEntry> {\n return from(this.api.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 */\n copyNode(nodeId: string, targetParentId: string, name?: string, opts?: { include?: Array<string>; fields?: Array<string> }): Observable<NodeEntry> {\n return from(this.api.nodesApi.copyNode(nodeId, { targetParentId, name }, opts));\n }\n\n /**\n * Gets product information for Content Services.\n * @returns ProductVersionModel containing product details\n */\n getRepositoryInformation(): Observable<DiscoveryEntry> {\n return from(this.api.getInstance().discovery.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.api.favoritesApi.getFavorites(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 return {\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\n findSharedLinks(opts?: any): Observable<SharedLinkPaging> {\n return from(this.api.sharedLinksApi.findSharedLinks(opts));\n }\n\n getSharedLinkContent(sharedId: string, attachment?: boolean): string {\n return this.api.contentApi.getSharedLinkContentUrl(sharedId, attachment);\n }\n\n search(request: SearchRequest): Observable<ResultSetPaging> {\n return from(this.api.searchApi.search(request));\n }\n\n getContentUrl(nodeId: string, attachment?: boolean): string {\n return this.api.contentApi.getContentUrl(nodeId, attachment);\n }\n\n getVersionContentUrl(nodeId: string, versionId: string, attachment?: boolean): string {\n return this.api.contentApi.getVersionContentUrl(nodeId, versionId, attachment);\n }\n\n deleteSite(siteId?: string, opts?: { permanent?: boolean }): Observable<any> {\n return from(this.api.sitesApi.deleteSite(siteId, opts));\n }\n\n leaveSite(siteId?: string): Observable<any> {\n return from(this.api.sitesApi.removeSiteMember(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.api.sitesApi.createSite(siteBody, opts));\n }\n\n getSite(siteId?: string, opts?: { relations?: Array<string>; fields?: Array<string> }): Observable<SiteEntry> {\n return from(this.api.sitesApi.getSite(siteId, opts));\n }\n\n updateLibrary(siteId: string, siteBody: SiteBody): Observable<SiteEntry> {\n return from(this.api.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.api.favoritesApi.addFavorite('-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.api.favoritesApi.removeFavoriteSite('-me-', id);\n })\n )\n );\n }\n\n unlockNode(nodeId: string, opts?: any) {\n return this.api.nodesApi.unlockNode(nodeId, opts);\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 { getAppSelection, SetInfoDrawerStateAction, ToggleInfoDrawerAction } 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';\n\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 @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\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.store\n .select(getAppSelection)\n .pipe(takeUntil(this.onDestroy$))\n .subscribe(() => {\n this.actions = this.extensions.getAllowedSidebarActions();\n });\n }\n\n ngOnDestroy() {\n this.onDestroy$.next(true);\n this.onDestroy$.complete();\n this.store.dispatch(new SetInfoDrawerStateAction(false));\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 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","/*!\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';\n\n@NgModule({\n imports: [CommonModule, InfoDrawerModule, MatProgressBarModule, ExtensionsModule, ToolbarModule, SharedToolbarModule],\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 { 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 // tslint:disable-next-line:no-input-rename\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 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 findAncestor(el: Element, className: string): Element {\n if (el.classList.contains(className)) {\n return el;\n }\n // tslint: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 { Route } from '@angular/router';\n\nexport interface SettingsGroupRef {\n id: string;\n name: string;\n parameters: Array<SettingsParameterRef>;\n rules?: {\n visible?: string;\n [key: string]: string;\n };\n}\n\nexport interface SettingsParameterRef {\n id?: string;\n name: string;\n key: string;\n type: 'string' | 'boolean';\n value?: any;\n}\n\nexport interface ExtensionRoute extends Route {\n parentRoute?: string;\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 interface ViewerRules {\n /**\n * Checks if user can preview the node.\n */\n canPreview?: string;\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 { RouteReuseStrategy, DetachedRouteHandle, ActivatedRouteSnapshot } from '@angular/router';\nimport { ComponentRef, Injectable } from '@angular/core';\n\ninterface RouteData {\n reuse: boolean;\n}\n\ninterface RouteInfo {\n handle: DetachedRouteHandle;\n data: RouteData;\n}\n\n@Injectable()\nexport class AppRouteReuseStrategy implements RouteReuseStrategy {\n private routeCache = new Map<string, RouteInfo>();\n\n resetCache() {\n this.routeCache.forEach((value) => {\n this.deactivateComponent(value.handle);\n });\n this.routeCache.clear();\n }\n\n private deactivateComponent(handle: DetachedRouteHandle): void {\n if (!handle) {\n return;\n }\n const componentRef: ComponentRef<any> = handle['componentRef'];\n if (componentRef) {\n componentRef.destroy();\n }\n }\n\n shouldReuseRoute(future: ActivatedRouteSnapshot, curr: ActivatedRouteSnapshot): boolean {\n const ret = future.routeConfig === curr.routeConfig;\n if (ret) {\n this.addRedirectsRecursively(future); // update redirects\n }\n return ret;\n }\n\n shouldDetach(route: ActivatedRouteSnapshot): boolean {\n const data = this.getRouteData(route);\n return data && data.reuse;\n }\n\n store(route: ActivatedRouteSnapshot, handle: DetachedRouteHandle): void {\n const url = this.getFullRouteUrl(route);\n const data = this.getRouteData(route);\n this.routeCache.set(url, { handle, data });\n this.addRedirectsRecursively(route);\n }\n\n shouldAttach(route: ActivatedRouteSnapshot): boolean {\n const url = this.getFullRouteUrl(route);\n return this.routeCache.has(url);\n }\n\n retrieve(route: ActivatedRouteSnapshot): DetachedRouteHandle {\n const url = this.getFullRouteUrl(route);\n const data = this.getRouteData(route);\n return data && data.reuse && this.routeCache.has(url) ? this.routeCache.get(url).handle : null;\n }\n\n private addRedirectsRecursively(route: ActivatedRouteSnapshot): void {\n const config = route.routeConfig;\n if (config) {\n if (!config.loadChildren) {\n const routeFirstChild = route.firstChild;\n const routeFirstChildUrl = routeFirstChild ? this.getRouteUrlPaths(routeFirstChild).join('/') : '';\n const childConfigs = config.children;\n if (childConfigs) {\n const childConfigWithRedirect = childConfigs.find((c) => c.path === '' && !!c.redirectTo);\n if (childConfigWithRedirect) {\n childConfigWithRedirect.redirectTo = routeFirstChildUrl;\n }\n }\n }\n route.children.forEach((childRoute) => this.addRedirectsRecursively(childRoute));\n }\n }\n\n private getFullRouteUrl(route: ActivatedRouteSnapshot): string {\n return this.getFullRouteUrlPaths(route).filter(Boolean).join('/');\n }\n\n private getFullRouteUrlPaths(route: ActivatedRouteSnapshot): string[] {\n const paths = this.getRouteUrlPaths(route);\n return route.parent ? [...this.getFullRouteUrlPaths(route.parent), ...paths] : paths;\n }\n\n private getRouteUrlPaths(route: ActivatedRouteSnapshot): string[] {\n return route.url.map((urlSegment) => urlSegment.path);\n }\n\n private getRouteData(route: ActivatedRouteSnapshot): RouteData {\n return route.routeConfig && (route.routeConfig.data as RouteData);\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 { 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, Inject } from '@angular/core';\nimport { AuthenticationService, AppConfigService } from '@alfresco/adf-core';\nimport { Observable, BehaviorSubject } from 'rxjs';\nimport { RouteReuseStrategy } from '@angular/router';\nimport { AppRouteReuseStrategy } from '../routing/app.routes.strategy';\nimport { SearchQueryBuilderService } from '@alfresco/adf-content-services';\n\n@Injectable({\n providedIn: 'root'\n})\nexport class AppService {\n private ready: BehaviorSubject<boolean>;\n ready$: Observable<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 auth: AuthenticationService,\n private config: AppConfigService,\n searchQueryBuilderService: SearchQueryBuilderService,\n @Inject(RouteReuseStrategy) routeStrategy: AppRouteReuseStrategy\n ) {\n this.ready = new BehaviorSubject(auth.isLoggedIn() || this.withCredentials);\n this.ready$ = this.ready.asObservable();\n\n auth.onLogin.subscribe(() => {\n routeStrategy.resetCache();\n this.ready.next(true);\n });\n\n auth.onLogout.subscribe(() => {\n searchQueryBuilderService.resetToDefaults();\n routeStrategy.resetCache();\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, 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 return {\n path,\n outlet,\n data,\n component: this.getComponentById(component)\n };\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<{}> {\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 { 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 * @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\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';\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';\n\nexport * from './lib/routing/app.routes.strategy';\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';\n\nexport * from './lib/utils/node.utils';\nexport * from './lib/shared.module';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["InjectionToken","of","forkJoin","map","catchError","Injectable","Inject","Component","ViewEncapsulation","ChangeDetectionStrategy","Input","HostBinding","NgModule","CommonModule","MatIconModule","TranslateModule","store","BehaviorSubject","getRuleContext","getLanguagePickerState","sortByOrder","reduceEmptyMenus","mergeObjects","ContentActionType","reduceSeparators","AuthenticationService","Store","ExtensionLoaderService","ExtensionService","AppConfigService","MatIconRegistry","DomSanitizer","LogService","ViewChild","HostListener","ChangeDetectorRef","ToolbarButtonType","CoreModule","ExtensionsModule","from","AlfrescoApiService","UserPreferencesService","Subject","getAppSelection","takeUntil","SetInfoDrawerStateAction","ToggleInfoDrawerAction","InfoDrawerModule","MatProgressBarModule","ToolbarModule","debounceTime","ContextMenu","Directive","PaginationComponent","isQuickShareEnabled","SearchQueryBuilderService","RouteReuseStrategy","Router"],"mappings":";;;;;;IAAA;;;;;;;;;;;;;;IAcA;IAEA,IAAI,aAAa,GAAG,UAAS,CAAC,EAAE,CAAC;QAC7B,aAAa,GAAG,MAAM,CAAC,cAAc;aAChC,EAAE,SAAS,EAAE,EAAE,EAAE,YAAY,KAAK,IAAI,UAAU,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC,SAAS,GAAG,CAAC,CAAC,EAAE,CAAC;YAC5E,UAAU,CAAC,EAAE,CAAC,IAAI,KAAK,IAAI,CAAC,IAAI,CAAC;gBAAE,IAAI,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC;oBAAE,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;QACtG,OAAO,aAAa,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;IAC/B,CAAC,CAAC;aAEc,SAAS,CAAC,CAAC,EAAE,CAAC;QAC1B,aAAa,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;QACpB,SAAS,EAAE,KAAK,IAAI,CAAC,WAAW,GAAG,CAAC,CAAC,EAAE;QACvC,CAAC,CAAC,SAAS,GAAG,CAAC,KAAK,IAAI,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,SAAS,GAAG,CAAC,CAAC,SAAS,EAAE,IAAI,EAAE,EAAE,CAAC,CAAC;IACzF,CAAC;IAEM,IAAI,QAAQ,GAAG;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