@alfresco/aca-content 5.1.1 → 5.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (396) hide show
  1. package/assets/app.extensions.json +9 -0
  2. package/assets/i18n/ar.json +600 -599
  3. package/assets/i18n/cs.json +600 -599
  4. package/assets/i18n/da.json +600 -599
  5. package/assets/i18n/de.json +600 -599
  6. package/assets/i18n/en.json +40 -1
  7. package/assets/i18n/es.json +600 -599
  8. package/assets/i18n/fi.json +600 -599
  9. package/assets/i18n/fr.json +600 -599
  10. package/assets/i18n/it.json +600 -599
  11. package/assets/i18n/ja.json +600 -599
  12. package/assets/i18n/nb.json +600 -599
  13. package/assets/i18n/nl.json +600 -599
  14. package/assets/i18n/pl.json +600 -599
  15. package/assets/i18n/pt-BR.json +600 -599
  16. package/assets/i18n/ru.json +600 -599
  17. package/assets/i18n/sv.json +600 -599
  18. package/assets/i18n/zh-CN.json +600 -599
  19. package/esm2022/about/about.component.mjs +70 -0
  20. package/esm2022/about/aca-about.module.mjs +47 -0
  21. package/esm2022/folder-rules/folder-rules.module.mjs +116 -0
  22. package/esm2022/folder-rules/manage-rules/manage-rules.smart-component.mjs +280 -0
  23. package/esm2022/folder-rules/rule-details/actions/rule-action-list.ui-component.mjs +117 -0
  24. package/esm2022/folder-rules/rule-details/actions/rule-action.ui-component.mjs +359 -0
  25. package/esm2022/folder-rules/rule-details/conditions/rule-composite-condition.ui-component.mjs +171 -0
  26. package/esm2022/folder-rules/rule-details/conditions/rule-simple-condition.ui-component.mjs +237 -0
  27. package/esm2022/folder-rules/rule-details/edit-rule-dialog.ui-component.mjs +80 -0
  28. package/esm2022/folder-rules/rule-details/options/rule-options.ui-component.mjs +129 -0
  29. package/esm2022/folder-rules/rule-details/rule-details.ui-component.mjs +192 -0
  30. package/esm2022/folder-rules/rule-details/triggers/rule-triggers.ui-component.mjs +87 -0
  31. package/esm2022/folder-rules/rule-details/validators/rule-actions.validator.mjs +36 -0
  32. package/esm2022/folder-rules/rule-list/rule-list/rule-list.ui-component.mjs +166 -0
  33. package/esm2022/folder-rules/rule-list/rule-list-grouping/rule-list-grouping.ui-component.mjs +80 -0
  34. package/esm2022/folder-rules/rule-list/rule-list-item/rule-list-item.ui-component.mjs +59 -0
  35. package/esm2022/folder-rules/rule-set-picker/rule-set-picker.smart-component.mjs +125 -0
  36. package/esm2022/folder-rules/services/actions.service.mjs +117 -0
  37. package/esm2022/folder-rules/services/folder-rule-sets.service.mjs +230 -0
  38. package/esm2022/folder-rules/services/folder-rules.service.mjs +195 -0
  39. package/esm2022/lib/aca-content.module.mjs +303 -0
  40. package/esm2022/lib/aca-content.routes.mjs +369 -0
  41. package/esm2022/lib/components/bulk-actions-dropdown/bulk-actions-dropdown.component.mjs +82 -0
  42. package/{esm2020 → esm2022}/lib/components/common/language-picker/language-picker.component.mjs +9 -8
  43. package/esm2022/lib/components/common/location-link/location-link.component.mjs +182 -0
  44. package/{esm2020 → esm2022}/lib/components/common/logout/logout.component.mjs +8 -6
  45. package/esm2022/lib/components/common/toggle-shared/toggle-shared.component.mjs +81 -0
  46. package/esm2022/lib/components/common/user-info/user-info.component.mjs +46 -0
  47. package/esm2022/lib/components/context-menu/base-context-menu.directive.mjs +77 -0
  48. package/esm2022/lib/components/context-menu/context-menu-item.component.mjs +65 -0
  49. package/esm2022/lib/components/context-menu/context-menu-outside-event.directive.mjs +62 -0
  50. package/esm2022/lib/components/context-menu/context-menu-overlay.mjs +33 -0
  51. package/esm2022/lib/components/context-menu/context-menu.component.mjs +84 -0
  52. package/esm2022/lib/components/context-menu/context-menu.service.mjs +127 -0
  53. package/esm2022/lib/components/context-menu/custom-context-menu-actions.token.mjs +26 -0
  54. package/esm2022/lib/components/context-menu/custom-context-menu.component.mjs +79 -0
  55. package/esm2022/lib/components/details/details.component.mjs +154 -0
  56. package/esm2022/lib/components/dl-custom-components/datatable-cell-badges/datatable-cell-badges.component.mjs +75 -0
  57. package/esm2022/lib/components/dl-custom-components/name-column/name-column.component.mjs +106 -0
  58. package/esm2022/lib/components/dl-custom-components/tags-column/tags-column.component.mjs +52 -0
  59. package/esm2022/lib/components/dl-custom-components/thumbnail-column/thumbnail-column.component.mjs +77 -0
  60. package/esm2022/lib/components/favorite-libraries/favorite-libraries.component.mjs +126 -0
  61. package/esm2022/lib/components/favorites/favorites.component.mjs +105 -0
  62. package/esm2022/lib/components/files/files.component.mjs +336 -0
  63. package/esm2022/lib/components/home/home.component.mjs +46 -0
  64. package/esm2022/lib/components/info-drawer/comments-tab/comments-tab.component.mjs +62 -0
  65. package/esm2022/lib/components/info-drawer/info.drawer.module.mjs +74 -0
  66. package/esm2022/lib/components/info-drawer/library-metadata-tab/library-metadata-form.component.mjs +213 -0
  67. package/esm2022/lib/components/info-drawer/library-metadata-tab/library-metadata-tab.component.mjs +47 -0
  68. package/esm2022/lib/components/info-drawer/metadata-tab/metadata-tab.component.mjs +145 -0
  69. package/esm2022/lib/components/info-drawer/versions-tab/versions-tab.component.mjs +107 -0
  70. package/esm2022/lib/components/knowledge-retrieval/search-ai/agents-button/agents-button.component.mjs +135 -0
  71. package/esm2022/lib/components/knowledge-retrieval/search-ai/search-ai-input/search-ai-input.component.mjs +181 -0
  72. package/esm2022/lib/components/knowledge-retrieval/search-ai/search-ai-input-container/search-ai-input-container.component.mjs +77 -0
  73. package/esm2022/lib/components/knowledge-retrieval/search-ai/search-ai-results/search-ai-results.component.mjs +210 -0
  74. package/esm2022/lib/components/libraries/libraries.component.mjs +81 -0
  75. package/esm2022/lib/components/recent-files/recent-files.component.mjs +80 -0
  76. package/esm2022/lib/components/search/search-action-menu/search-action-menu.component.mjs +66 -0
  77. package/esm2022/lib/components/search/search-input/search-input.component.mjs +297 -0
  78. package/esm2022/lib/components/search/search-input-control/search-input-control.component.mjs +94 -0
  79. package/esm2022/lib/components/search/search-libraries-results/search-libraries-query-builder.service.mjs +93 -0
  80. package/esm2022/lib/components/search/search-libraries-results/search-libraries-results.component.mjs +155 -0
  81. package/esm2022/lib/components/search/search-navigation.service.mjs +62 -0
  82. package/esm2022/lib/components/search/search-results/search-results.component.mjs +279 -0
  83. package/esm2022/lib/components/search/search-results-row/search-results-row.component.mjs +149 -0
  84. package/esm2022/lib/components/search/search-save/dialog/delete/saved-search-delete-dialog.component.mjs +82 -0
  85. package/esm2022/lib/components/search/search-save/dialog/edit/saved-search-edit-dialog.component.mjs +116 -0
  86. package/esm2022/lib/components/search/search-save/dialog/save-search-dialog.component.mjs +125 -0
  87. package/esm2022/lib/components/search/search-save/dialog/saved-search-form.interface.mjs +25 -0
  88. package/esm2022/lib/components/search/search-save/dialog/unique-search-name-validator.mjs +45 -0
  89. package/esm2022/lib/components/search/search-save/directive/save-search.directive.mjs +64 -0
  90. package/esm2022/lib/components/search/search-save/list/saved-searches-list-ui.service.mjs +51 -0
  91. package/esm2022/lib/components/search/search-save/list/smart-list/saved-searches-list-schema.mjs +44 -0
  92. package/esm2022/lib/components/search/search-save/list/smart-list/saved-searches-smart-list.component.mjs +50 -0
  93. package/esm2022/lib/components/search/search-save/list/ui-list/saved-searches-list.ui-component.mjs +153 -0
  94. package/esm2022/lib/components/search/search-save/sidenav/save-search-sidenav.component.mjs +94 -0
  95. package/esm2022/lib/components/shared-files/shared-files.component.mjs +85 -0
  96. package/esm2022/lib/components/shared-link-view/shared-link-view.component.mjs +89 -0
  97. package/esm2022/lib/components/sidenav/components/button-menu.component.mjs +66 -0
  98. package/esm2022/lib/components/sidenav/components/expand-menu.component.mjs +73 -0
  99. package/esm2022/lib/components/sidenav/components/sidenav-header.component.mjs +65 -0
  100. package/esm2022/lib/components/sidenav/directives/action.directive.mjs +86 -0
  101. package/esm2022/lib/components/sidenav/directives/active-link.directive.mjs +100 -0
  102. package/esm2022/lib/components/sidenav/directives/expansion-panel.directive.mjs +107 -0
  103. package/esm2022/lib/components/sidenav/directives/menu-panel.directive.mjs +103 -0
  104. package/esm2022/lib/components/sidenav/sidenav.component.mjs +101 -0
  105. package/esm2022/lib/components/sidenav/user-menu/user-menu.component.mjs +57 -0
  106. package/esm2022/lib/components/toolbar/toggle-edit-offline/toggle-edit-offline.component.mjs +143 -0
  107. package/esm2022/lib/components/toolbar/toggle-favorite/toggle-favorite.component.mjs +91 -0
  108. package/esm2022/lib/components/toolbar/toggle-favorite-library/toggle-favorite-library.component.mjs +112 -0
  109. package/esm2022/lib/components/toolbar/toggle-info-drawer/toggle-info-drawer.component.mjs +77 -0
  110. package/esm2022/lib/components/toolbar/toggle-join-library/toggle-join-library-button.component.mjs +107 -0
  111. package/{esm2020 → esm2022}/lib/components/toolbar/toggle-join-library/toggle-join-library-menu.component.mjs +7 -6
  112. package/esm2022/lib/components/toolbar/view-node/view-node.component.mjs +128 -0
  113. package/esm2022/lib/components/trashcan/trashcan.component.mjs +66 -0
  114. package/esm2022/lib/components/upload-files-dialog/upload-files-dialog.component.mjs +55 -0
  115. package/esm2022/lib/components/view-profile/view-profile.component.mjs +200 -0
  116. package/esm2022/lib/dialogs/node-template/create-from-template.dialog.mjs +127 -0
  117. package/esm2022/lib/directives/document-list.directive.mjs +207 -0
  118. package/esm2022/lib/extensions/core.extensions.module.mjs +56 -0
  119. package/esm2022/lib/services/content-management.service.mjs +892 -0
  120. package/esm2022/lib/services/content-url.service.mjs +74 -0
  121. package/esm2022/lib/services/modal-ai.service.mjs +65 -0
  122. package/esm2022/lib/services/node-actions.service.mjs +609 -0
  123. package/esm2022/lib/services/node-template.service.mjs +145 -0
  124. package/esm2022/lib/services/search-ai-navigation.service.mjs +63 -0
  125. package/esm2022/lib/store/app-store.module.mjs +101 -0
  126. package/esm2022/lib/store/effects/app.effects.mjs +46 -0
  127. package/esm2022/lib/store/effects/contextmenu.effects.mjs +65 -0
  128. package/esm2022/lib/store/effects/download.effects.mjs +153 -0
  129. package/esm2022/lib/store/effects/favorite.effects.mjs +72 -0
  130. package/esm2022/lib/store/effects/library.effects.mjs +108 -0
  131. package/esm2022/lib/store/effects/node.effects.mjs +318 -0
  132. package/esm2022/lib/store/effects/search-ai.effects.mjs +54 -0
  133. package/esm2022/lib/store/effects/search.effects.mjs +52 -0
  134. package/esm2022/lib/store/effects/template.effects.mjs +116 -0
  135. package/esm2022/lib/store/effects/upload.effects.mjs +166 -0
  136. package/esm2022/lib/store/effects/viewer.effects.mjs +169 -0
  137. package/esm2022/lib/utils/aca-search-utils.mjs +129 -0
  138. package/esm2022/ms-office/actions/aos.actions.mjs +32 -0
  139. package/esm2022/ms-office/aos-extension.module.mjs +53 -0
  140. package/esm2022/ms-office/aos-extension.service.mjs +136 -0
  141. package/esm2022/ms-office/effects/aos.effects.mjs +45 -0
  142. package/esm2022/public-api.mjs +33 -0
  143. package/esm2022/viewer/lib/components/preview/preview.component.mjs +246 -0
  144. package/esm2022/viewer/lib/components/viewer/viewer.component.mjs +261 -0
  145. package/esm2022/viewer/lib/services/viewer.service.mjs +229 -0
  146. package/esm2022/viewer/lib/viewer.module.mjs +53 -0
  147. package/{fesm2015 → fesm2022}/alfresco-aca-content-about.mjs +17 -19
  148. package/fesm2022/alfresco-aca-content-about.mjs.map +1 -0
  149. package/{fesm2020 → fesm2022}/alfresco-aca-content-folder-rules.mjs +357 -316
  150. package/fesm2022/alfresco-aca-content-folder-rules.mjs.map +1 -0
  151. package/{fesm2020 → fesm2022}/alfresco-aca-content-ms-office.mjs +28 -26
  152. package/fesm2022/alfresco-aca-content-ms-office.mjs.map +1 -0
  153. package/{fesm2020 → fesm2022}/alfresco-aca-content-viewer.mjs +95 -64
  154. package/fesm2022/alfresco-aca-content-viewer.mjs.map +1 -0
  155. package/fesm2022/alfresco-aca-content.mjs +11091 -0
  156. package/fesm2022/alfresco-aca-content.mjs.map +1 -0
  157. package/folder-rules/rule-details/actions/rule-action-list.ui-component.d.ts +1 -1
  158. package/folder-rules/rule-details/actions/rule-action.ui-component.d.ts +1 -1
  159. package/folder-rules/rule-details/conditions/rule-composite-condition.ui-component.d.ts +1 -1
  160. package/folder-rules/rule-details/conditions/rule-simple-condition.ui-component.d.ts +1 -1
  161. package/folder-rules/rule-details/options/rule-options.ui-component.d.ts +1 -1
  162. package/folder-rules/rule-details/rule-details.ui-component.d.ts +1 -1
  163. package/folder-rules/rule-list/rule-list/rule-list.ui-component.d.ts +1 -1
  164. package/folder-rules/rule-list/rule-list-grouping/rule-list-grouping.ui-component.d.ts +1 -1
  165. package/folder-rules/rule-list/rule-list-item/rule-list-item.ui-component.d.ts +1 -1
  166. package/folder-rules/services/folder-rule-sets.service.d.ts +4 -4
  167. package/folder-rules/services/folder-rules.service.d.ts +1 -1
  168. package/lib/components/bulk-actions-dropdown/bulk-actions-dropdown.component.d.ts +5 -10
  169. package/lib/components/common/location-link/location-link.component.d.ts +1 -1
  170. package/lib/components/common/toggle-shared/toggle-shared.component.d.ts +1 -1
  171. package/lib/components/context-menu/base-context-menu.directive.d.ts +20 -0
  172. package/lib/components/context-menu/context-menu-item.component.d.ts +1 -1
  173. package/lib/components/context-menu/context-menu-outside-event.directive.d.ts +1 -1
  174. package/lib/components/context-menu/context-menu.component.d.ts +4 -15
  175. package/lib/components/context-menu/context-menu.service.d.ts +4 -1
  176. package/lib/components/{knowledge-retrieval/search-ai/search-ai-utils.d.ts → context-menu/custom-context-menu-actions.token.d.ts} +2 -2
  177. package/lib/components/context-menu/custom-context-menu.component.d.ts +36 -0
  178. package/lib/components/details/details.component.d.ts +1 -1
  179. package/lib/components/dl-custom-components/datatable-cell-badges/datatable-cell-badges.component.d.ts +1 -1
  180. package/lib/components/dl-custom-components/tags-column/tags-column.component.d.ts +1 -1
  181. package/lib/components/dl-custom-components/thumbnail-column/thumbnail-column.component.d.ts +1 -1
  182. package/lib/components/info-drawer/comments-tab/comments-tab.component.d.ts +1 -1
  183. package/lib/components/info-drawer/library-metadata-tab/library-metadata-form.component.d.ts +1 -1
  184. package/lib/components/info-drawer/library-metadata-tab/library-metadata-tab.component.d.ts +1 -1
  185. package/lib/components/info-drawer/metadata-tab/metadata-tab.component.d.ts +1 -1
  186. package/lib/components/info-drawer/versions-tab/versions-tab.component.d.ts +1 -1
  187. package/lib/components/knowledge-retrieval/search-ai/agents-button/agents-button.component.d.ts +1 -2
  188. package/lib/components/knowledge-retrieval/search-ai/search-ai-input/search-ai-input.component.d.ts +4 -5
  189. package/lib/components/knowledge-retrieval/search-ai/search-ai-input-container/search-ai-input-container.component.d.ts +8 -8
  190. package/lib/components/knowledge-retrieval/search-ai/search-ai-results/search-ai-results.component.d.ts +2 -3
  191. package/lib/components/search/search-input/search-input.component.d.ts +12 -14
  192. package/lib/components/search/search-input-control/search-input-control.component.d.ts +1 -1
  193. package/lib/components/search/search-libraries-results/search-libraries-results.component.d.ts +0 -1
  194. package/lib/components/search/search-results/search-results.component.d.ts +15 -9
  195. package/lib/components/search/search-results-row/search-results-row.component.d.ts +1 -1
  196. package/lib/components/search/search-save/dialog/delete/saved-search-delete-dialog.component.d.ts +16 -0
  197. package/lib/components/search/search-save/dialog/edit/saved-search-edit-dialog.component.d.ts +22 -0
  198. package/lib/components/search/search-save/dialog/save-search-dialog.component.d.ts +23 -0
  199. package/lib/components/search/search-save/dialog/saved-search-form.interface.d.ts +28 -0
  200. package/lib/components/search/search-save/dialog/unique-search-name-validator.d.ts +34 -0
  201. package/lib/components/search/search-save/directive/save-search.directive.d.ts +13 -0
  202. package/lib/components/search/search-save/list/saved-searches-list-ui.service.d.ts +9 -0
  203. package/lib/components/search/search-save/list/smart-list/saved-searches-list-schema.d.ts +33 -0
  204. package/lib/components/search/search-save/list/smart-list/saved-searches-smart-list.component.d.ts +13 -0
  205. package/lib/components/search/search-save/list/ui-list/saved-searches-list.ui-component.d.ts +66 -0
  206. package/lib/components/search/search-save/sidenav/save-search-sidenav.component.d.ts +44 -0
  207. package/lib/components/sidenav/components/button-menu.component.d.ts +1 -1
  208. package/lib/components/sidenav/components/expand-menu.component.d.ts +3 -2
  209. package/lib/components/sidenav/directives/action.directive.d.ts +28 -1
  210. package/lib/components/sidenav/directives/active-link.directive.d.ts +2 -2
  211. package/lib/components/sidenav/directives/expansion-panel.directive.d.ts +1 -1
  212. package/lib/components/sidenav/directives/menu-panel.directive.d.ts +1 -1
  213. package/lib/components/sidenav/sidenav.component.d.ts +4 -3
  214. package/lib/components/sidenav/user-menu/user-menu.component.d.ts +1 -1
  215. package/lib/components/toolbar/toggle-favorite/toggle-favorite.component.d.ts +1 -1
  216. package/lib/components/toolbar/view-node/view-node.component.d.ts +1 -1
  217. package/lib/services/search-ai-navigation.service.d.ts +4 -2
  218. package/lib/store/effects/app.effects.d.ts +2 -3
  219. package/lib/store/effects/contextmenu.effects.d.ts +3 -3
  220. package/lib/store/effects/download.effects.d.ts +0 -30
  221. package/lib/store/effects/favorite.effects.d.ts +0 -28
  222. package/lib/store/effects/library.effects.d.ts +2 -7
  223. package/lib/store/effects/node.effects.d.ts +7 -38
  224. package/lib/store/effects/search-ai.effects.d.ts +0 -4
  225. package/lib/store/effects/search.effects.d.ts +3 -30
  226. package/lib/store/effects/template.effects.d.ts +5 -7
  227. package/lib/store/effects/upload.effects.d.ts +8 -32
  228. package/lib/store/effects/viewer.effects.d.ts +0 -29
  229. package/lib/utils/aca-search-utils.d.ts +67 -0
  230. package/ms-office/effects/aos.effects.d.ts +0 -3
  231. package/package.json +21 -35
  232. package/public-api.d.ts +1 -0
  233. package/ui/overrides/adf-pagination.theme.scss +0 -4
  234. package/ui/theme.scss +9 -4
  235. package/assets/images/agent-avatar-blue.png +0 -0
  236. package/assets/images/agent-avatar-gold.png +0 -0
  237. package/assets/images/agent-avatar-pink.png +0 -0
  238. package/esm2020/about/about.component.mjs +0 -71
  239. package/esm2020/about/aca-about.module.mjs +0 -46
  240. package/esm2020/folder-rules/folder-rules.module.mjs +0 -115
  241. package/esm2020/folder-rules/manage-rules/manage-rules.smart-component.mjs +0 -261
  242. package/esm2020/folder-rules/rule-details/actions/rule-action-list.ui-component.mjs +0 -117
  243. package/esm2020/folder-rules/rule-details/actions/rule-action.ui-component.mjs +0 -351
  244. package/esm2020/folder-rules/rule-details/conditions/rule-composite-condition.ui-component.mjs +0 -172
  245. package/esm2020/folder-rules/rule-details/conditions/rule-simple-condition.ui-component.mjs +0 -234
  246. package/esm2020/folder-rules/rule-details/edit-rule-dialog.ui-component.mjs +0 -74
  247. package/esm2020/folder-rules/rule-details/options/rule-options.ui-component.mjs +0 -129
  248. package/esm2020/folder-rules/rule-details/rule-details.ui-component.mjs +0 -185
  249. package/esm2020/folder-rules/rule-details/triggers/rule-triggers.ui-component.mjs +0 -88
  250. package/esm2020/folder-rules/rule-details/validators/rule-actions.validator.mjs +0 -37
  251. package/esm2020/folder-rules/rule-list/rule-list/rule-list.ui-component.mjs +0 -164
  252. package/esm2020/folder-rules/rule-list/rule-list-grouping/rule-list-grouping.ui-component.mjs +0 -81
  253. package/esm2020/folder-rules/rule-list/rule-list-item/rule-list-item.ui-component.mjs +0 -58
  254. package/esm2020/folder-rules/rule-set-picker/rule-set-picker.smart-component.mjs +0 -120
  255. package/esm2020/folder-rules/services/actions.service.mjs +0 -114
  256. package/esm2020/folder-rules/services/folder-rule-sets.service.mjs +0 -225
  257. package/esm2020/folder-rules/services/folder-rules.service.mjs +0 -193
  258. package/esm2020/lib/aca-content.module.mjs +0 -299
  259. package/esm2020/lib/aca-content.routes.mjs +0 -359
  260. package/esm2020/lib/components/bulk-actions-dropdown/bulk-actions-dropdown.component.mjs +0 -83
  261. package/esm2020/lib/components/common/location-link/location-link.component.mjs +0 -180
  262. package/esm2020/lib/components/common/toggle-shared/toggle-shared.component.mjs +0 -76
  263. package/esm2020/lib/components/common/user-info/user-info.component.mjs +0 -47
  264. package/esm2020/lib/components/context-menu/context-menu-item.component.mjs +0 -62
  265. package/esm2020/lib/components/context-menu/context-menu-outside-event.directive.mjs +0 -63
  266. package/esm2020/lib/components/context-menu/context-menu-overlay.mjs +0 -32
  267. package/esm2020/lib/components/context-menu/context-menu.component.mjs +0 -114
  268. package/esm2020/lib/components/context-menu/context-menu.service.mjs +0 -99
  269. package/esm2020/lib/components/details/details.component.mjs +0 -147
  270. package/esm2020/lib/components/dl-custom-components/datatable-cell-badges/datatable-cell-badges.component.mjs +0 -71
  271. package/esm2020/lib/components/dl-custom-components/name-column/name-column.component.mjs +0 -101
  272. package/esm2020/lib/components/dl-custom-components/tags-column/tags-column.component.mjs +0 -48
  273. package/esm2020/lib/components/dl-custom-components/thumbnail-column/thumbnail-column.component.mjs +0 -75
  274. package/esm2020/lib/components/favorite-libraries/favorite-libraries.component.mjs +0 -120
  275. package/esm2020/lib/components/favorites/favorites.component.mjs +0 -103
  276. package/esm2020/lib/components/files/files.component.mjs +0 -330
  277. package/esm2020/lib/components/home/home.component.mjs +0 -47
  278. package/esm2020/lib/components/info-drawer/comments-tab/comments-tab.component.mjs +0 -59
  279. package/esm2020/lib/components/info-drawer/info.drawer.module.mjs +0 -73
  280. package/esm2020/lib/components/info-drawer/library-metadata-tab/library-metadata-form.component.mjs +0 -206
  281. package/esm2020/lib/components/info-drawer/library-metadata-tab/library-metadata-tab.component.mjs +0 -45
  282. package/esm2020/lib/components/info-drawer/metadata-tab/metadata-tab.component.mjs +0 -134
  283. package/esm2020/lib/components/info-drawer/versions-tab/versions-tab.component.mjs +0 -95
  284. package/esm2020/lib/components/knowledge-retrieval/search-ai/agents-button/agents-button.component.mjs +0 -129
  285. package/esm2020/lib/components/knowledge-retrieval/search-ai/search-ai-input/search-ai-input.component.mjs +0 -171
  286. package/esm2020/lib/components/knowledge-retrieval/search-ai/search-ai-input-container/search-ai-input-container.component.mjs +0 -82
  287. package/esm2020/lib/components/knowledge-retrieval/search-ai/search-ai-results/search-ai-results.component.mjs +0 -199
  288. package/esm2020/lib/components/knowledge-retrieval/search-ai/search-ai-utils.mjs +0 -33
  289. package/esm2020/lib/components/libraries/libraries.component.mjs +0 -79
  290. package/esm2020/lib/components/recent-files/recent-files.component.mjs +0 -82
  291. package/esm2020/lib/components/search/search-action-menu/search-action-menu.component.mjs +0 -64
  292. package/esm2020/lib/components/search/search-input/search-input.component.mjs +0 -301
  293. package/esm2020/lib/components/search/search-input-control/search-input-control.component.mjs +0 -94
  294. package/esm2020/lib/components/search/search-libraries-results/search-libraries-query-builder.service.mjs +0 -90
  295. package/esm2020/lib/components/search/search-libraries-results/search-libraries-results.component.mjs +0 -153
  296. package/esm2020/lib/components/search/search-navigation.service.mjs +0 -60
  297. package/esm2020/lib/components/search/search-results/search-results.component.mjs +0 -255
  298. package/esm2020/lib/components/search/search-results-row/search-results-row.component.mjs +0 -142
  299. package/esm2020/lib/components/shared-files/shared-files.component.mjs +0 -83
  300. package/esm2020/lib/components/shared-link-view/shared-link-view.component.mjs +0 -82
  301. package/esm2020/lib/components/sidenav/components/button-menu.component.mjs +0 -62
  302. package/esm2020/lib/components/sidenav/components/expand-menu.component.mjs +0 -67
  303. package/esm2020/lib/components/sidenav/components/sidenav-header.component.mjs +0 -66
  304. package/esm2020/lib/components/sidenav/directives/action.directive.mjs +0 -75
  305. package/esm2020/lib/components/sidenav/directives/active-link.directive.mjs +0 -93
  306. package/esm2020/lib/components/sidenav/directives/expansion-panel.directive.mjs +0 -102
  307. package/esm2020/lib/components/sidenav/directives/menu-panel.directive.mjs +0 -99
  308. package/esm2020/lib/components/sidenav/sidenav.component.mjs +0 -89
  309. package/esm2020/lib/components/sidenav/user-menu/user-menu.component.mjs +0 -56
  310. package/esm2020/lib/components/toolbar/toggle-edit-offline/toggle-edit-offline.component.mjs +0 -137
  311. package/esm2020/lib/components/toolbar/toggle-favorite/toggle-favorite.component.mjs +0 -86
  312. package/esm2020/lib/components/toolbar/toggle-favorite-library/toggle-favorite-library.component.mjs +0 -107
  313. package/esm2020/lib/components/toolbar/toggle-info-drawer/toggle-info-drawer.component.mjs +0 -74
  314. package/esm2020/lib/components/toolbar/toggle-join-library/toggle-join-library-button.component.mjs +0 -105
  315. package/esm2020/lib/components/toolbar/view-node/view-node.component.mjs +0 -122
  316. package/esm2020/lib/components/trashcan/trashcan.component.mjs +0 -68
  317. package/esm2020/lib/components/upload-files-dialog/upload-files-dialog.component.mjs +0 -52
  318. package/esm2020/lib/components/view-profile/view-profile.component.mjs +0 -193
  319. package/esm2020/lib/dialogs/node-template/create-from-template.dialog.mjs +0 -120
  320. package/esm2020/lib/directives/document-list.directive.mjs +0 -199
  321. package/esm2020/lib/extensions/core.extensions.module.mjs +0 -55
  322. package/esm2020/lib/services/content-management.service.mjs +0 -873
  323. package/esm2020/lib/services/content-url.service.mjs +0 -71
  324. package/esm2020/lib/services/modal-ai.service.mjs +0 -66
  325. package/esm2020/lib/services/node-actions.service.mjs +0 -600
  326. package/esm2020/lib/services/node-template.service.mjs +0 -144
  327. package/esm2020/lib/services/search-ai-navigation.service.mjs +0 -52
  328. package/esm2020/lib/store/app-store.module.mjs +0 -102
  329. package/esm2020/lib/store/effects/app.effects.mjs +0 -49
  330. package/esm2020/lib/store/effects/contextmenu.effects.mjs +0 -55
  331. package/esm2020/lib/store/effects/download.effects.mjs +0 -159
  332. package/esm2020/lib/store/effects/favorite.effects.mjs +0 -76
  333. package/esm2020/lib/store/effects/library.effects.mjs +0 -113
  334. package/esm2020/lib/store/effects/node.effects.mjs +0 -325
  335. package/esm2020/lib/store/effects/search-ai.effects.mjs +0 -57
  336. package/esm2020/lib/store/effects/search.effects.mjs +0 -60
  337. package/esm2020/lib/store/effects/template.effects.mjs +0 -121
  338. package/esm2020/lib/store/effects/upload.effects.mjs +0 -166
  339. package/esm2020/lib/store/effects/viewer.effects.mjs +0 -175
  340. package/esm2020/ms-office/actions/aos.actions.mjs +0 -31
  341. package/esm2020/ms-office/aos-extension.module.mjs +0 -52
  342. package/esm2020/ms-office/aos-extension.service.mjs +0 -132
  343. package/esm2020/ms-office/effects/aos.effects.mjs +0 -48
  344. package/esm2020/public-api.mjs +0 -32
  345. package/esm2020/viewer/lib/components/preview/preview.component.mjs +0 -236
  346. package/esm2020/viewer/lib/components/viewer/viewer.component.mjs +0 -240
  347. package/esm2020/viewer/lib/services/viewer.service.mjs +0 -226
  348. package/esm2020/viewer/lib/viewer.module.mjs +0 -52
  349. package/fesm2015/alfresco-aca-content-about.mjs.map +0 -1
  350. package/fesm2015/alfresco-aca-content-folder-rules.mjs +0 -2662
  351. package/fesm2015/alfresco-aca-content-folder-rules.mjs.map +0 -1
  352. package/fesm2015/alfresco-aca-content-ms-office.mjs +0 -256
  353. package/fesm2015/alfresco-aca-content-ms-office.mjs.map +0 -1
  354. package/fesm2015/alfresco-aca-content-viewer.mjs +0 -700
  355. package/fesm2015/alfresco-aca-content-viewer.mjs.map +0 -1
  356. package/fesm2015/alfresco-aca-content.mjs +0 -9835
  357. package/fesm2015/alfresco-aca-content.mjs.map +0 -1
  358. package/fesm2020/alfresco-aca-content-about.mjs +0 -193
  359. package/fesm2020/alfresco-aca-content-about.mjs.map +0 -1
  360. package/fesm2020/alfresco-aca-content-folder-rules.mjs.map +0 -1
  361. package/fesm2020/alfresco-aca-content-ms-office.mjs.map +0 -1
  362. package/fesm2020/alfresco-aca-content-viewer.mjs.map +0 -1
  363. package/fesm2020/alfresco-aca-content.mjs +0 -9934
  364. package/fesm2020/alfresco-aca-content.mjs.map +0 -1
  365. /package/{esm2020 → esm2022}/about/alfresco-aca-content-about.mjs +0 -0
  366. /package/{esm2020 → esm2022}/about/dev-mode.tokens.mjs +0 -0
  367. /package/{esm2020 → esm2022}/about/package-json.token.mjs +0 -0
  368. /package/{esm2020 → esm2022}/about/public-api.mjs +0 -0
  369. /package/{esm2020 → esm2022}/alfresco-aca-content.mjs +0 -0
  370. /package/{esm2020 → esm2022}/folder-rules/alfresco-aca-content-folder-rules.mjs +0 -0
  371. /package/{esm2020 → esm2022}/folder-rules/folder-rules.rules.mjs +0 -0
  372. /package/{esm2020 → esm2022}/folder-rules/model/action-parameter-constraint.model.mjs +0 -0
  373. /package/{esm2020 → esm2022}/folder-rules/model/rule-action.model.mjs +0 -0
  374. /package/{esm2020 → esm2022}/folder-rules/model/rule-composite-condition.model.mjs +0 -0
  375. /package/{esm2020 → esm2022}/folder-rules/model/rule-grouping-item.model.mjs +0 -0
  376. /package/{esm2020 → esm2022}/folder-rules/model/rule-set.model.mjs +0 -0
  377. /package/{esm2020 → esm2022}/folder-rules/model/rule-simple-condition.model.mjs +0 -0
  378. /package/{esm2020 → esm2022}/folder-rules/model/rule.model.mjs +0 -0
  379. /package/{esm2020 → esm2022}/folder-rules/public-api.mjs +0 -0
  380. /package/{esm2020 → esm2022}/folder-rules/rule-details/conditions/rule-condition-comparators.mjs +0 -0
  381. /package/{esm2020 → esm2022}/folder-rules/rule-details/conditions/rule-condition-fields.mjs +0 -0
  382. /package/{esm2020 → esm2022}/folder-rules/rule-details/validators/rule-composite-condition.validator.mjs +0 -0
  383. /package/{esm2020 → esm2022}/lib/components/common/index.mjs +0 -0
  384. /package/{esm2020 → esm2022}/lib/components/context-menu/direction.token.mjs +0 -0
  385. /package/{esm2020 → esm2022}/lib/components/context-menu/interfaces.mjs +0 -0
  386. /package/{esm2020 → esm2022}/lib/components/search/index.mjs +0 -0
  387. /package/{esm2020 → esm2022}/lib/components/sidenav/index.mjs +0 -0
  388. /package/{esm2020 → esm2022}/lib/components/toolbar/index.mjs +0 -0
  389. /package/{esm2020 → esm2022}/lib/components/view-profile/view-profile.guard.mjs +0 -0
  390. /package/{esm2020 → esm2022}/lib/store/effects.mjs +0 -0
  391. /package/{esm2020 → esm2022}/lib/store/initial-state.mjs +0 -0
  392. /package/{esm2020 → esm2022}/lib/store/reducers/app.reducer.mjs +0 -0
  393. /package/{esm2020 → esm2022}/ms-office/alfresco-aca-content-ms-office.mjs +0 -0
  394. /package/{esm2020 → esm2022}/ms-office/public-api.mjs +0 -0
  395. /package/{esm2020 → esm2022}/viewer/alfresco-aca-content-viewer.mjs +0 -0
  396. /package/{esm2020 → esm2022}/viewer/public-api.mjs +0 -0
@@ -1,700 +0,0 @@
1
- import { __awaiter } from 'tslib';
2
- import * as i3 from '@alfresco/aca-shared';
3
- import { AppSettingsService, InfoDrawerComponent, ToolbarMenuItemComponent, ToolbarComponent, PageComponent } from '@alfresco/aca-shared';
4
- import { isInfoDrawerOpened, getAppSelection, SetCurrentNodeVersionAction, ViewerActionTypes, SetSelectedNodesAction, ViewNodeAction } from '@alfresco/aca-shared/store';
5
- import { VersionsApi } from '@alfresco/js-api';
6
- import * as i0 from '@angular/core';
7
- import { Injectable, inject, Component, ViewEncapsulation, HostListener, NgModule } from '@angular/core';
8
- import * as i4 from '@angular/router';
9
- import { PRIMARY_OUTLET, RouterModule } from '@angular/router';
10
- import * as i7 from '@alfresco/adf-core';
11
- import { ObjectUtils, ViewerToolbarActionsComponent, ViewerOpenWithComponent, ViewerSidebarComponent, ViewerModule } from '@alfresco/adf-core';
12
- import { Subject, from } from 'rxjs';
13
- import { takeUntil, debounceTime, map } from 'rxjs/operators';
14
- import * as i1 from '@ngrx/effects';
15
- import { ofType } from '@ngrx/effects';
16
- import * as i2 from '@alfresco/adf-content-services';
17
- import { DocumentListService, AlfrescoViewerComponent, AlfrescoViewerModule } from '@alfresco/adf-content-services';
18
- import * as i3$1 from '@angular/common';
19
- import { CommonModule } from '@angular/common';
20
- import * as i5 from '@ngrx/store';
21
-
22
- class ViewerService {
23
- set customNodesOrder(customNodesOrder) {
24
- this._customNodesOrder = customNodesOrder;
25
- }
26
- constructor(preferences, contentApi) {
27
- this.preferences = preferences;
28
- this.contentApi = contentApi;
29
- this._customNodesOrder = [];
30
- this.recentFileFilters = [
31
- 'TYPE:"content"',
32
- '-PATH:"//cm:wiki/*"',
33
- '-TYPE:"app:filelink"',
34
- '-TYPE:"fm:post"',
35
- '-TYPE:"cm:thumbnail"',
36
- '-TYPE:"cm:failedThumbnail"',
37
- '-TYPE:"cm:rating"',
38
- '-TYPE:"dl:dataList"',
39
- '-TYPE:"dl:todoList"',
40
- '-TYPE:"dl:issue"',
41
- '-TYPE:"dl:contact"',
42
- '-TYPE:"dl:eventAgenda"',
43
- '-TYPE:"dl:event"',
44
- '-TYPE:"dl:task"',
45
- '-TYPE:"dl:simpletask"',
46
- '-TYPE:"dl:meetingAgenda"',
47
- '-TYPE:"dl:location"',
48
- '-TYPE:"fm:topic"',
49
- '-TYPE:"fm:post"',
50
- '-TYPE:"ia:calendarEvent"',
51
- '-TYPE:"lnk:link"'
52
- ];
53
- }
54
- /**
55
- * Retrieves nearest node information for the given node and folder.
56
- *
57
- * @param nodeId Unique identifier of the document node
58
- * @param folderId Unique identifier of the containing folder node.
59
- * @param source Data source name. Returns file ids for personal-files, libraries, favorites, shared and recent-files, otherwise returns empty.
60
- */
61
- getNearestNodes(nodeId, folderId, source) {
62
- return __awaiter(this, void 0, void 0, function* () {
63
- const empty = {
64
- left: null,
65
- right: null
66
- };
67
- if (nodeId && folderId) {
68
- try {
69
- const ids = yield this.getFileIds(source, folderId);
70
- const idx = ids.indexOf(nodeId);
71
- if (idx >= 0) {
72
- return {
73
- left: ids[idx - 1] || null,
74
- right: ids[idx + 1] || null
75
- };
76
- }
77
- }
78
- catch (_a) { }
79
- }
80
- return empty;
81
- });
82
- }
83
- /**
84
- * Retrieves a list of node identifiers for the folder and data source.
85
- *
86
- * @param source Data source name. Returns file ids for personal-files, libraries, favorites, shared and recent-files, otherwise returns empty.
87
- * @param folderId Optional parameter containing folder node identifier for 'personal-files' and 'libraries' sources.
88
- */
89
- getFileIds(source, folderId) {
90
- return __awaiter(this, void 0, void 0, function* () {
91
- if (source === 'libraries') {
92
- source = 'libraries-files';
93
- }
94
- const isClient = this.preferences.get(`${source}.sorting.mode`) === 'client';
95
- const [sortKey, sortDirection, previousSortKey, previousSortDir] = this.getSortKeyDir(source);
96
- let nodes;
97
- if (source === 'personal-files' || source === 'libraries-files') {
98
- if (!folderId) {
99
- return [];
100
- }
101
- const orderBy = isClient ? null : ['isFolder desc', `${sortKey} ${sortDirection}`];
102
- nodes = yield this.contentApi
103
- .getNodeChildren(folderId, {
104
- orderBy: orderBy,
105
- fields: this.getFields(sortKey, previousSortKey),
106
- where: '(isFile=true)'
107
- })
108
- .toPromise();
109
- }
110
- if (source === 'favorites') {
111
- nodes = yield this.contentApi
112
- .getFavorites('-me-', {
113
- where: '(EXISTS(target/file))',
114
- fields: ['target']
115
- })
116
- .toPromise();
117
- }
118
- if (source === 'shared') {
119
- nodes = yield this.contentApi
120
- .findSharedLinks({
121
- fields: ['nodeId', this.getRootField(sortKey)]
122
- })
123
- .toPromise();
124
- }
125
- if (source === 'recent-files') {
126
- const person = yield this.contentApi.getPerson('-me-').toPromise();
127
- const username = person.entry.id;
128
- const query = {
129
- query: {
130
- query: '*',
131
- language: 'afts'
132
- },
133
- filterQueries: [
134
- { query: `cm:modified:[NOW/DAY-30DAYS TO NOW/DAY+1DAY]` },
135
- { query: `cm:modifier:${username} OR cm:creator:${username}` },
136
- {
137
- query: this.recentFileFilters.join(' AND ')
138
- }
139
- ],
140
- fields: this.getFields(sortKey, previousSortKey),
141
- include: ['path', 'properties', 'allowableOperations'],
142
- sort: [
143
- {
144
- type: 'FIELD',
145
- field: 'cm:modified',
146
- ascending: false
147
- }
148
- ]
149
- };
150
- nodes = yield this.contentApi.search(query).toPromise();
151
- }
152
- return this.getCustomNodesOrderIfNoNodes(nodes, isClient, previousSortKey, previousSortDir, sortKey, sortDirection);
153
- });
154
- }
155
- /**
156
- * Get the root field name from the property path.
157
- * Example: 'property1.some.child.property' => 'property1'
158
- *
159
- * @param path Property path
160
- */
161
- getRootField(path) {
162
- if (path) {
163
- return path.split('.')[0];
164
- }
165
- return path;
166
- }
167
- sort(items, key, direction) {
168
- const options = {};
169
- if (key.includes('sizeInBytes') || key === 'name') {
170
- options.numeric = true;
171
- }
172
- items.sort((a, b) => {
173
- var _a, _b;
174
- let left = (_a = ObjectUtils.getValue(a, key)) !== null && _a !== void 0 ? _a : '';
175
- left = left instanceof Date ? left.valueOf().toString() : left.toString();
176
- let right = (_b = ObjectUtils.getValue(b, key)) !== null && _b !== void 0 ? _b : '';
177
- right = right instanceof Date ? right.valueOf().toString() : right.toString();
178
- return direction === 'asc' ? left.localeCompare(right, undefined, options) : right.localeCompare(left, undefined, options);
179
- });
180
- }
181
- getFields(sortKey, previousSortKey) {
182
- return ['id', this.getRootField(sortKey), this.getRootField(previousSortKey)];
183
- }
184
- getSortKeyDir(source) {
185
- const previousSortKey = this.preferences.get(`${source}.sorting.previousKey`);
186
- const previousSortDir = this.preferences.get(`${source}.sorting.previousDirection`);
187
- const sortKey = this.preferences.get(`${source}.sorting.key`) || this.getDefaults(source)[0];
188
- const sortDirection = this.preferences.get(`${source}.sorting.direction`) || this.getDefaults(source)[1];
189
- return [sortKey, sortDirection, previousSortKey, previousSortDir];
190
- }
191
- getDefaults(source) {
192
- if (source === 'personal-files' || source === 'libraries-files') {
193
- return ['name', 'asc'];
194
- }
195
- else {
196
- return ['modifiedAt', 'desc'];
197
- }
198
- }
199
- getCustomNodesOrderIfNoNodes(nodes, isClient, previousSortKey, previousSortDir, sortKey, sortDirection) {
200
- if (nodes) {
201
- const entries = nodes.list.entries.map((obj) => { var _a, _b; return (_b = (_a = obj.entry.target) === null || _a === void 0 ? void 0 : _a.file) !== null && _b !== void 0 ? _b : obj.entry; });
202
- if (isClient) {
203
- if (previousSortKey) {
204
- this.sort(entries, previousSortKey, previousSortDir);
205
- }
206
- this.sort(entries, sortKey, sortDirection);
207
- }
208
- return entries.map((entry) => { var _a; return (_a = entry.id) !== null && _a !== void 0 ? _a : entry.nodeId; });
209
- }
210
- else {
211
- return this._customNodesOrder;
212
- }
213
- }
214
- }
215
- ViewerService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ViewerService, deps: [{ token: i7.UserPreferencesService }, { token: i3.ContentApiService }], target: i0.ɵɵFactoryTarget.Injectable });
216
- ViewerService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ViewerService, providedIn: 'root' });
217
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ViewerService, decorators: [{
218
- type: Injectable,
219
- args: [{
220
- providedIn: 'root'
221
- }]
222
- }], ctorParameters: function () { return [{ type: i7.UserPreferencesService }, { type: i3.ContentApiService }]; } });
223
-
224
- class AcaViewerComponent {
225
- get versionsApi() {
226
- var _a;
227
- this._versionsApi = (_a = this._versionsApi) !== null && _a !== void 0 ? _a : new VersionsApi(this.apiService.getInstance());
228
- return this._versionsApi;
229
- }
230
- constructor(actions$, apiService, appHookService, contentApi, extensions, nodesApiService, route, router, store, uploadService, viewerService) {
231
- this.actions$ = actions$;
232
- this.apiService = apiService;
233
- this.appHookService = appHookService;
234
- this.contentApi = contentApi;
235
- this.extensions = extensions;
236
- this.nodesApiService = nodesApiService;
237
- this.route = route;
238
- this.router = router;
239
- this.store = store;
240
- this.uploadService = uploadService;
241
- this.viewerService = viewerService;
242
- this.settings = inject(AppSettingsService);
243
- this.documentListService = inject(DocumentListService);
244
- this.onDestroy$ = new Subject();
245
- this.folderId = null;
246
- this.navigateMultiple = true;
247
- this.navigateSource = null;
248
- this.navigationSources = ['favorites', 'libraries', 'personal-files', 'recent-files', 'shared'];
249
- this.nodeId = null;
250
- this.openWith = [];
251
- this.showRightSide = false;
252
- this.toolbarActions = [];
253
- this.versionId = null;
254
- this.containersSkipNavigation = ['adf-viewer__sidebar', 'cdk-overlay-container', 'adf-image-viewer'];
255
- }
256
- ngOnInit() {
257
- var _a;
258
- this.infoDrawerOpened$ = this.store.select(isInfoDrawerOpened);
259
- from(this.infoDrawerOpened$)
260
- .pipe(takeUntil(this.onDestroy$))
261
- .subscribe((val) => {
262
- this.showRightSide = val;
263
- });
264
- this.store
265
- .select(getAppSelection)
266
- .pipe(takeUntil(this.onDestroy$))
267
- .subscribe((selection) => {
268
- this.selection = selection;
269
- });
270
- this.extensions
271
- .getViewerToolbarActions()
272
- .pipe(takeUntil(this.onDestroy$))
273
- .subscribe((actions) => {
274
- this.toolbarActions = actions;
275
- });
276
- this.extensions
277
- .getOpenWithActions()
278
- .pipe(takeUntil(this.onDestroy$))
279
- .subscribe((actions) => {
280
- this.openWith = actions;
281
- });
282
- this.route.params.subscribe((params) => {
283
- this.folderId = params.folderId;
284
- const { nodeId } = params;
285
- this.versionId = params.versionId;
286
- if (this.versionId) {
287
- void this.versionsApi.getVersion(nodeId, this.versionId).then((version) => {
288
- if (version) {
289
- this.store.dispatch(new SetCurrentNodeVersionAction(version));
290
- }
291
- });
292
- }
293
- if (nodeId) {
294
- void this.displayNode(nodeId);
295
- }
296
- });
297
- this.route.queryParams.subscribe((params) => {
298
- this.navigationPath = params.path || params.location;
299
- });
300
- if ((_a = this.route.snapshot.data) === null || _a === void 0 ? void 0 : _a.navigateSource) {
301
- const source = this.route.snapshot.data.navigateSource.toLowerCase();
302
- if (this.navigationSources.includes(source)) {
303
- this.navigateSource = this.route.snapshot.data.navigateSource;
304
- }
305
- }
306
- this.actions$.pipe(ofType(ViewerActionTypes.ClosePreview), takeUntil(this.onDestroy$)).subscribe(() => {
307
- this.store.dispatch(new SetCurrentNodeVersionAction(null));
308
- this.navigateToFileLocation();
309
- });
310
- this.actions$
311
- .pipe(ofType(ViewerActionTypes.RefreshPreview), takeUntil(this.onDestroy$))
312
- .subscribe((action) => {
313
- this.nodesApiService.nodeUpdated.next(action.node);
314
- void this.displayNode(action.node.id);
315
- });
316
- this.appHookService.nodesDeleted.pipe(takeUntil(this.onDestroy$)).subscribe(() => this.navigateToFileLocation());
317
- this.uploadService.fileUploadDeleted.pipe(takeUntil(this.onDestroy$)).subscribe(() => this.navigateToFileLocation());
318
- this.uploadService.fileUploadComplete.pipe(debounceTime(300), takeUntil(this.onDestroy$)).subscribe((file) => {
319
- this.nodesApiService.nodeUpdated.next(file.data.entry);
320
- void this.displayNode(file.data.entry.id);
321
- });
322
- this.previewLocation = this.router.url.substring(0, this.router.url.indexOf('/', 1)).replace(/\//g, '');
323
- }
324
- onViewerVisibilityChanged() {
325
- this.documentListService.reload();
326
- this.navigateToFileLocation();
327
- }
328
- ngOnDestroy() {
329
- this.store.dispatch(new SetCurrentNodeVersionAction(null));
330
- this.onDestroy$.next(true);
331
- this.onDestroy$.complete();
332
- }
333
- trackByActionId(_, obj) {
334
- return obj.id;
335
- }
336
- displayNode(nodeId) {
337
- var _a, _b, _c;
338
- return __awaiter(this, void 0, void 0, function* () {
339
- if (nodeId) {
340
- try {
341
- this.node = yield this.contentApi.getNodeInfo(nodeId).toPromise();
342
- this.store.dispatch(new SetSelectedNodesAction([{ entry: this.node }]));
343
- this.navigateMultiple = this.extensions.canShowViewerNavigation({ entry: this.node });
344
- if ((_a = this.node) === null || _a === void 0 ? void 0 : _a.isFile) {
345
- this.nodeId = this.node.id;
346
- this.fileName = this.node.name + ((_c = (_b = this.node) === null || _b === void 0 ? void 0 : _b.properties) === null || _c === void 0 ? void 0 : _c['cm:versionLabel']);
347
- if (this.navigateMultiple) {
348
- const nearest = yield this.viewerService.getNearestNodes(this.node.id, this.node.parentId, this.navigateSource);
349
- this.previousNodeId = nearest.left;
350
- this.nextNodeId = nearest.right;
351
- }
352
- return;
353
- }
354
- this.navigateToFileLocation();
355
- }
356
- catch (error) {
357
- const statusCode = JSON.parse(error.message).error.statusCode;
358
- if (statusCode !== 401) {
359
- yield this.router.navigate([this.previewLocation, { outlets: { viewer: null } }]).then(() => {
360
- void this.router.navigate([this.previewLocation, nodeId]);
361
- });
362
- }
363
- }
364
- }
365
- });
366
- }
367
- onNavigateBefore(event) {
368
- if (event.type !== 'click' && this.shouldNavigate(event.target)) {
369
- return;
370
- }
371
- const location = this.getFileLocation();
372
- this.store.dispatch(new ViewNodeAction(this.previousNodeId, { location }));
373
- }
374
- onNavigateNext(event) {
375
- if (event.type !== 'click' && this.shouldNavigate(event.target)) {
376
- return;
377
- }
378
- const location = this.getFileLocation();
379
- this.store.dispatch(new ViewNodeAction(this.nextNodeId, { location }));
380
- }
381
- handleKeyboardEvent(event) {
382
- const key = event.key;
383
- if (key === 'ArrowRight' || key === 'ArrowLeft') {
384
- event.preventDefault();
385
- event.stopImmediatePropagation();
386
- }
387
- }
388
- navigateToFileLocation() {
389
- const location = this.getFileLocation();
390
- void this.router.navigateByUrl(location);
391
- }
392
- getFileLocation() {
393
- return this.navigationPath || this.router.parseUrl(this.router.url).root.children[PRIMARY_OUTLET].toString();
394
- }
395
- shouldNavigate(element) {
396
- let currentElement = element.parentElement;
397
- while (currentElement && !this.isChild(currentElement.classList)) {
398
- currentElement = currentElement.parentElement;
399
- }
400
- return !!currentElement;
401
- }
402
- isChild(list) {
403
- return Array.from(list).some((className) => this.containersSkipNavigation.includes(className));
404
- }
405
- }
406
- AcaViewerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AcaViewerComponent, deps: [{ token: i1.Actions }, { token: i2.AlfrescoApiService }, { token: i3.AppHookService }, { token: i3.ContentApiService }, { token: i3.AppExtensionService }, { token: i2.NodesApiService }, { token: i4.ActivatedRoute }, { token: i4.Router }, { token: i5.Store }, { token: i2.UploadService }, { token: ViewerService }], target: i0.ɵɵFactoryTarget.Component });
407
- AcaViewerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: AcaViewerComponent, isStandalone: true, selector: "aca-viewer", host: { listeners: { "document:keydown": "handleKeyboardEvent($event)" }, classAttribute: "app-viewer" }, ngImport: i0, template: "<ng-container *ngIf=\"nodeId\">\n <adf-alfresco-viewer\n [ngClass]=\"{\n 'aca-right_side--hide': !showRightSide\n }\"\n [maxRetries]=\"settings.viewerMaxRetries\"\n [nodeId]=\"nodeId\"\n [versionId]=\"versionId\"\n [allowNavigate]=\"navigateMultiple\"\n [allowRightSidebar]=\"true\"\n [allowPrint]=\"false\"\n [showRightSidebar]=\"true\"\n [allowDownload]=\"false\"\n [allowFullScreen]=\"false\"\n [overlayMode]=\"true\"\n [hideInfoButton]=\"true\"\n [closeButtonPosition]=\"settings.viewerCloseButtonPosition\"\n (showViewerChange)=\"onViewerVisibilityChanged()\"\n [canNavigateBefore]=\"!!previousNodeId\"\n [canNavigateNext]=\"!!nextNodeId\"\n (navigateBefore)=\"onNavigateBefore($event)\"\n (navigateNext)=\"onNavigateNext($event)\"\n >\n <adf-viewer-sidebar *ngIf=\"infoDrawerOpened$ | async\">\n <aca-info-drawer [node]=\"selection.file\"></aca-info-drawer>\n </adf-viewer-sidebar>\n\n <adf-viewer-open-with *ngIf=\"openWith.length\">\n <ng-container *ngFor=\"let action of openWith; trackBy: trackByActionId\">\n <app-toolbar-menu-item [actionRef]=\"action\"></app-toolbar-menu-item>\n </ng-container>\n </adf-viewer-open-with>\n\n <adf-viewer-toolbar-actions>\n <aca-toolbar [items]=\"toolbarActions\"></aca-toolbar>\n </adf-viewer-toolbar-actions>\n </adf-alfresco-viewer>\n</ng-container>\n", styles: [".app-viewer{width:100%;height:100%}.app-viewer .adf-viewer-toolbar .adf-toolbar-divider{display:none}.app-viewer .adf-viewer-toolbar-actions{display:flex;flex-direction:row;align-items:center;margin-left:auto}.app-viewer .adf-viewer-toolbar-actions .adf-toolbar-divider{display:inline}.app-viewer .adf-alfresco-viewer.aca-right_side--hide .adf-viewer__sidebar__right{width:0}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i3$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i3$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i3$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "pipe", type: i3$1.AsyncPipe, name: "async" }, { kind: "component", type: InfoDrawerComponent, selector: "aca-info-drawer", inputs: ["nodeId", "node"] }, { kind: "component", type: ToolbarMenuItemComponent, selector: "app-toolbar-menu-item", inputs: ["actionRef", "menuId"] }, { kind: "component", type: ToolbarComponent, selector: "aca-toolbar", inputs: ["items"] }, { kind: "component", type: AlfrescoViewerComponent, selector: "adf-alfresco-viewer", inputs: ["nodeId", "versionId", "sharedLinkId", "showViewer", "maxRetries", "allowGoBack", "showToolbar", "overlayMode", "allowNavigate", "canNavigateBefore", "canNavigateNext", "allowLeftSidebar", "allowRightSidebar", "showRightSidebar", "showLeftSidebar", "allowDownload", "allowPrint", "allowFullScreen", "hideInfoButton", "closeButtonPosition", "sidebarRightTemplate", "sidebarLeftTemplate"], outputs: ["invalidSharedLink", "navigateBefore", "navigateNext", "showViewerChange"] }, { kind: "component", type: ViewerToolbarActionsComponent, selector: "adf-viewer-toolbar-actions" }, { kind: "component", type: ViewerOpenWithComponent, selector: "adf-viewer-open-with" }, { kind: "component", type: ViewerSidebarComponent, selector: "adf-viewer-sidebar" }], encapsulation: i0.ViewEncapsulation.None });
408
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AcaViewerComponent, decorators: [{
409
- type: Component,
410
- args: [{ standalone: true, imports: [
411
- CommonModule,
412
- InfoDrawerComponent,
413
- ToolbarMenuItemComponent,
414
- ToolbarComponent,
415
- AlfrescoViewerComponent,
416
- ViewerToolbarActionsComponent,
417
- ViewerOpenWithComponent,
418
- ViewerSidebarComponent
419
- ], selector: 'aca-viewer', encapsulation: ViewEncapsulation.None, host: { class: 'app-viewer' }, template: "<ng-container *ngIf=\"nodeId\">\n <adf-alfresco-viewer\n [ngClass]=\"{\n 'aca-right_side--hide': !showRightSide\n }\"\n [maxRetries]=\"settings.viewerMaxRetries\"\n [nodeId]=\"nodeId\"\n [versionId]=\"versionId\"\n [allowNavigate]=\"navigateMultiple\"\n [allowRightSidebar]=\"true\"\n [allowPrint]=\"false\"\n [showRightSidebar]=\"true\"\n [allowDownload]=\"false\"\n [allowFullScreen]=\"false\"\n [overlayMode]=\"true\"\n [hideInfoButton]=\"true\"\n [closeButtonPosition]=\"settings.viewerCloseButtonPosition\"\n (showViewerChange)=\"onViewerVisibilityChanged()\"\n [canNavigateBefore]=\"!!previousNodeId\"\n [canNavigateNext]=\"!!nextNodeId\"\n (navigateBefore)=\"onNavigateBefore($event)\"\n (navigateNext)=\"onNavigateNext($event)\"\n >\n <adf-viewer-sidebar *ngIf=\"infoDrawerOpened$ | async\">\n <aca-info-drawer [node]=\"selection.file\"></aca-info-drawer>\n </adf-viewer-sidebar>\n\n <adf-viewer-open-with *ngIf=\"openWith.length\">\n <ng-container *ngFor=\"let action of openWith; trackBy: trackByActionId\">\n <app-toolbar-menu-item [actionRef]=\"action\"></app-toolbar-menu-item>\n </ng-container>\n </adf-viewer-open-with>\n\n <adf-viewer-toolbar-actions>\n <aca-toolbar [items]=\"toolbarActions\"></aca-toolbar>\n </adf-viewer-toolbar-actions>\n </adf-alfresco-viewer>\n</ng-container>\n", styles: [".app-viewer{width:100%;height:100%}.app-viewer .adf-viewer-toolbar .adf-toolbar-divider{display:none}.app-viewer .adf-viewer-toolbar-actions{display:flex;flex-direction:row;align-items:center;margin-left:auto}.app-viewer .adf-viewer-toolbar-actions .adf-toolbar-divider{display:inline}.app-viewer .adf-alfresco-viewer.aca-right_side--hide .adf-viewer__sidebar__right{width:0}\n"] }]
420
- }], ctorParameters: function () { return [{ type: i1.Actions }, { type: i2.AlfrescoApiService }, { type: i3.AppHookService }, { type: i3.ContentApiService }, { type: i3.AppExtensionService }, { type: i2.NodesApiService }, { type: i4.ActivatedRoute }, { type: i4.Router }, { type: i5.Store }, { type: i2.UploadService }, { type: ViewerService }]; }, propDecorators: { handleKeyboardEvent: [{
421
- type: HostListener,
422
- args: ['document:keydown', ['$event']]
423
- }] } });
424
-
425
- class PreviewComponent extends PageComponent {
426
- constructor(actions$, appHookService, contentApi, location, nodesApiService, route, viewerService) {
427
- super();
428
- this.actions$ = actions$;
429
- this.appHookService = appHookService;
430
- this.contentApi = contentApi;
431
- this.location = location;
432
- this.nodesApiService = nodesApiService;
433
- this.route = route;
434
- this.viewerService = viewerService;
435
- this.folderId = null;
436
- this.navigateBackAsClose = false;
437
- this.navigateMultiple = false;
438
- this.navigateSource = null;
439
- this.navigationSources = ['favorites', 'libraries', 'personal-files', 'recent-files', 'shared'];
440
- this.nodeId = null;
441
- this.openWith = [];
442
- this.previewLocation = null;
443
- this.routesSkipNavigation = ['favorites', 'recent-files', 'shared'];
444
- this.showRightSide = false;
445
- this.simplestMode = false;
446
- this.containersSkipNavigation = ['adf-viewer__sidebar', 'cdk-overlay-container', 'adf-image-viewer'];
447
- }
448
- ngOnInit() {
449
- super.ngOnInit();
450
- from(this.infoDrawerOpened$)
451
- .pipe(takeUntil(this.onDestroy$))
452
- .subscribe((val) => {
453
- this.showRightSide = val;
454
- });
455
- this.previewLocation = this.router.url.substr(0, this.router.url.indexOf('/', 1)).replace(/\//g, '');
456
- const routeData = this.route.snapshot.data;
457
- this.navigateBackAsClose = !!routeData.navigateBackAsClose;
458
- this.simplestMode = !!routeData.simplestMode;
459
- if (routeData.navigateMultiple) {
460
- this.navigateMultiple = true;
461
- }
462
- if (routeData.navigateSource) {
463
- const source = routeData.navigateSource.toLowerCase();
464
- if (this.navigationSources.includes(source)) {
465
- this.navigateSource = routeData.navigateSource;
466
- }
467
- }
468
- this.route.params.subscribe((params) => {
469
- this.folderId = params.folderId;
470
- const id = params.nodeId;
471
- if (id) {
472
- void this.displayNode(id);
473
- }
474
- });
475
- this.subscriptions = this.subscriptions.concat([
476
- this.appHookService.nodesDeleted.subscribe(() => this.navigateToFileLocation(true)),
477
- this.uploadService.fileUploadDeleted.subscribe(() => this.navigateToFileLocation(true)),
478
- this.uploadService.fileUploadComplete.pipe(debounceTime(300)).subscribe((file) => this.nodesApiService.nodeUpdated.next(file.data.entry)),
479
- this.actions$
480
- .pipe(ofType(ViewerActionTypes.ClosePreview), map(() => this.navigateToFileLocation(true)))
481
- .subscribe(() => { })
482
- ]);
483
- this.extensions
484
- .getOpenWithActions()
485
- .pipe(takeUntil(this.onDestroy$))
486
- .subscribe((actions) => {
487
- this.openWith = actions;
488
- });
489
- }
490
- ngOnDestroy() {
491
- super.ngOnDestroy();
492
- }
493
- /**
494
- * Loads the particular node into the Viewer
495
- *
496
- * @param id Unique identifier for the Node to display
497
- */
498
- displayNode(id) {
499
- var _a;
500
- return __awaiter(this, void 0, void 0, function* () {
501
- if (id) {
502
- try {
503
- this.node = yield this.contentApi.getNodeInfo(id).toPromise();
504
- this.store.dispatch(new SetSelectedNodesAction([{ entry: this.node }]));
505
- if ((_a = this.node) === null || _a === void 0 ? void 0 : _a.isFile) {
506
- this.nodeId = this.node.id;
507
- if (this.navigateMultiple) {
508
- const nearest = yield this.viewerService.getNearestNodes(this.node.id, this.node.parentId, this.navigateSource);
509
- this.previousNodeId = nearest.left;
510
- this.nextNodeId = nearest.right;
511
- }
512
- return;
513
- }
514
- yield this.router.navigate([this.previewLocation, id]);
515
- }
516
- catch (err) {
517
- if (!err || err.status !== 401) {
518
- yield this.router.navigate([this.previewLocation, id]);
519
- }
520
- }
521
- }
522
- });
523
- }
524
- handleKeyboardEvent(event) {
525
- const key = event.key;
526
- if (key === 'ArrowRight' || key === 'ArrowLeft') {
527
- event.preventDefault();
528
- event.stopImmediatePropagation();
529
- }
530
- }
531
- /**
532
- * Handles the visibility change of the Viewer component.
533
- *
534
- * @param isVisible Indicator whether Viewer is visible or hidden.
535
- */
536
- onVisibilityChanged(isVisible) {
537
- const shouldNavigate = !isVisible;
538
- this.navigateToFileLocation(shouldNavigate);
539
- }
540
- navigateToFileLocation(shouldNavigate) {
541
- if (shouldNavigate) {
542
- if (this.navigateBackAsClose) {
543
- this.location.back();
544
- }
545
- else {
546
- const shouldSkipNavigation = this.routesSkipNavigation.includes(this.previewLocation);
547
- const route = this.getNavigationCommands(this.previewLocation);
548
- if (!shouldSkipNavigation && this.folderId) {
549
- route.push(this.folderId);
550
- }
551
- void this.router.navigate(route);
552
- }
553
- }
554
- }
555
- /** Handles navigation to a previous document */
556
- onNavigateBefore(event) {
557
- if (event.type !== 'click' && this.shouldNavigate(event.target)) {
558
- return;
559
- }
560
- if (this.previousNodeId) {
561
- void this.router.navigate(this.getPreviewPath(this.folderId, this.previousNodeId));
562
- }
563
- }
564
- /** Handles navigation to a next document */
565
- onNavigateNext(event) {
566
- if (event.type !== 'click' && this.shouldNavigate(event.target)) {
567
- return;
568
- }
569
- if (this.nextNodeId) {
570
- void this.router.navigate(this.getPreviewPath(this.folderId, this.nextNodeId));
571
- }
572
- }
573
- /**
574
- * Generates a node preview route based on folder and node IDs.
575
- *
576
- * @param folderId Folder ID
577
- * @param nodeId Node ID
578
- */
579
- getPreviewPath(folderId, nodeId) {
580
- const route = [this.previewLocation];
581
- if (folderId) {
582
- route.push(folderId);
583
- }
584
- if (nodeId) {
585
- route.push('preview', nodeId);
586
- }
587
- return route;
588
- }
589
- getNavigationCommands(url) {
590
- const urlTree = this.router.parseUrl(url);
591
- const urlSegmentGroup = urlTree.root.children[PRIMARY_OUTLET];
592
- if (!urlSegmentGroup) {
593
- return [url];
594
- }
595
- const urlSegments = urlSegmentGroup.segments;
596
- return urlSegments.reduce(function (acc, item) {
597
- acc.push(item.path, item.parameters);
598
- return acc;
599
- }, []);
600
- }
601
- shouldNavigate(element) {
602
- let currentElement = element.parentElement;
603
- while (currentElement && !this.isChild(currentElement.classList)) {
604
- currentElement = currentElement.parentElement;
605
- }
606
- return !!currentElement;
607
- }
608
- isChild(list) {
609
- return Array.from(list).some((className) => this.containersSkipNavigation.includes(className));
610
- }
611
- }
612
- PreviewComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PreviewComponent, deps: [{ token: i1.Actions }, { token: i3.AppHookService }, { token: i3.ContentApiService }, { token: i3$1.Location }, { token: i2.NodesApiService }, { token: i4.ActivatedRoute }, { token: ViewerService }], target: i0.ɵɵFactoryTarget.Component });
613
- PreviewComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: PreviewComponent, isStandalone: true, selector: "app-preview", host: { listeners: { "document:keydown": "handleKeyboardEvent($event)" }, classAttribute: "app-preview" }, usesInheritance: true, ngImport: i0, template: "<ng-container *ngIf=\"nodeId\">\n <adf-alfresco-viewer\n [ngClass]=\"{\n 'aca-right_side--hide': !showRightSide\n }\"\n [nodeId]=\"nodeId\"\n [allowNavigate]=\"navigateMultiple\"\n [allowRightSidebar]=\"true\"\n [allowPrint]=\"false\"\n [showRightSidebar]=\"true\"\n [allowDownload]=\"false\"\n [allowFullScreen]=\"false\"\n [canNavigateBefore]=\"!!previousNodeId\"\n [canNavigateNext]=\"!!nextNodeId\"\n [overlayMode]=\"true\"\n (showViewerChange)=\"onVisibilityChanged($event)\"\n (navigateBefore)=\"onNavigateBefore($event)\"\n (navigateNext)=\"onNavigateNext($event)\"\n >\n <adf-viewer-sidebar *ngIf=\"infoDrawerOpened$ | async\">\n <aca-info-drawer [node]=\"selection.file\"></aca-info-drawer>\n </adf-viewer-sidebar>\n\n <adf-viewer-open-with *ngIf=\"openWith.length\">\n <ng-container *ngFor=\"let action of openWith; trackBy: trackByActionId\">\n <app-toolbar-menu-item [actionRef]=\"action\"></app-toolbar-menu-item>\n </ng-container>\n </adf-viewer-open-with>\n\n <adf-viewer-toolbar-actions *ngIf=\"!simplestMode\">\n <aca-toolbar [items]=\"viewerToolbarActions\"></aca-toolbar>\n </adf-viewer-toolbar-actions>\n </adf-alfresco-viewer>\n</ng-container>\n", styles: [".app-preview{width:100%;height:100%}.adf-viewer-toolbar .adf-toolbar-divider{display:none}.adf-viewer-toolbar-actions{display:flex;flex-direction:row;align-items:center}.adf-viewer-toolbar-actions .adf-toolbar-divider{display:inline}.adf-viewer-toolbar>*>button:last-child{display:none}.adf-alfresco-viewer.aca-right_side--hide .adf-viewer__sidebar__right{width:0}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i3$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i3$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i3$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "pipe", type: i3$1.AsyncPipe, name: "async" }, { kind: "ngmodule", type: ViewerModule }, { kind: "component", type: i7.ViewerSidebarComponent, selector: "adf-viewer-sidebar" }, { kind: "component", type: i7.ViewerOpenWithComponent, selector: "adf-viewer-open-with" }, { kind: "component", type: i7.ViewerToolbarActionsComponent, selector: "adf-viewer-toolbar-actions" }, { kind: "ngmodule", type: AlfrescoViewerModule }, { kind: "component", type: i2.AlfrescoViewerComponent, selector: "adf-alfresco-viewer", inputs: ["nodeId", "versionId", "sharedLinkId", "showViewer", "maxRetries", "allowGoBack", "showToolbar", "overlayMode", "allowNavigate", "canNavigateBefore", "canNavigateNext", "allowLeftSidebar", "allowRightSidebar", "showRightSidebar", "showLeftSidebar", "allowDownload", "allowPrint", "allowFullScreen", "hideInfoButton", "closeButtonPosition", "sidebarRightTemplate", "sidebarLeftTemplate"], outputs: ["invalidSharedLink", "navigateBefore", "navigateNext", "showViewerChange"] }, { kind: "component", type: InfoDrawerComponent, selector: "aca-info-drawer", inputs: ["nodeId", "node"] }, { kind: "component", type: ToolbarMenuItemComponent, selector: "app-toolbar-menu-item", inputs: ["actionRef", "menuId"] }, { kind: "component", type: ToolbarComponent, selector: "aca-toolbar", inputs: ["items"] }], encapsulation: i0.ViewEncapsulation.None });
614
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PreviewComponent, decorators: [{
615
- type: Component,
616
- args: [{ standalone: true, imports: [CommonModule, ViewerModule, AlfrescoViewerModule, InfoDrawerComponent, ToolbarMenuItemComponent, ToolbarComponent], selector: 'app-preview', encapsulation: ViewEncapsulation.None, host: { class: 'app-preview' }, template: "<ng-container *ngIf=\"nodeId\">\n <adf-alfresco-viewer\n [ngClass]=\"{\n 'aca-right_side--hide': !showRightSide\n }\"\n [nodeId]=\"nodeId\"\n [allowNavigate]=\"navigateMultiple\"\n [allowRightSidebar]=\"true\"\n [allowPrint]=\"false\"\n [showRightSidebar]=\"true\"\n [allowDownload]=\"false\"\n [allowFullScreen]=\"false\"\n [canNavigateBefore]=\"!!previousNodeId\"\n [canNavigateNext]=\"!!nextNodeId\"\n [overlayMode]=\"true\"\n (showViewerChange)=\"onVisibilityChanged($event)\"\n (navigateBefore)=\"onNavigateBefore($event)\"\n (navigateNext)=\"onNavigateNext($event)\"\n >\n <adf-viewer-sidebar *ngIf=\"infoDrawerOpened$ | async\">\n <aca-info-drawer [node]=\"selection.file\"></aca-info-drawer>\n </adf-viewer-sidebar>\n\n <adf-viewer-open-with *ngIf=\"openWith.length\">\n <ng-container *ngFor=\"let action of openWith; trackBy: trackByActionId\">\n <app-toolbar-menu-item [actionRef]=\"action\"></app-toolbar-menu-item>\n </ng-container>\n </adf-viewer-open-with>\n\n <adf-viewer-toolbar-actions *ngIf=\"!simplestMode\">\n <aca-toolbar [items]=\"viewerToolbarActions\"></aca-toolbar>\n </adf-viewer-toolbar-actions>\n </adf-alfresco-viewer>\n</ng-container>\n", styles: [".app-preview{width:100%;height:100%}.adf-viewer-toolbar .adf-toolbar-divider{display:none}.adf-viewer-toolbar-actions{display:flex;flex-direction:row;align-items:center}.adf-viewer-toolbar-actions .adf-toolbar-divider{display:inline}.adf-viewer-toolbar>*>button:last-child{display:none}.adf-alfresco-viewer.aca-right_side--hide .adf-viewer__sidebar__right{width:0}\n"] }]
617
- }], ctorParameters: function () { return [{ type: i1.Actions }, { type: i3.AppHookService }, { type: i3.ContentApiService }, { type: i3$1.Location }, { type: i2.NodesApiService }, { type: i4.ActivatedRoute }, { type: ViewerService }]; }, propDecorators: { handleKeyboardEvent: [{
618
- type: HostListener,
619
- args: ['document:keydown', ['$event']]
620
- }] } });
621
-
622
- /*!
623
- * Copyright © 2005-2024 Hyland Software, Inc. and its affiliates. All rights reserved.
624
- *
625
- * Alfresco Example Content Application
626
- *
627
- * This file is part of the Alfresco Example Content Application.
628
- * If the software was purchased under a paid Alfresco license, the terms of
629
- * the paid license agreement will prevail. Otherwise, the software is
630
- * provided under the following open source license terms:
631
- *
632
- * The Alfresco Example Content Application is free software: you can redistribute it and/or modify
633
- * it under the terms of the GNU Lesser General Public License as published by
634
- * the Free Software Foundation, either version 3 of the License, or
635
- * (at your option) any later version.
636
- *
637
- * The Alfresco Example Content Application is distributed in the hope that it will be useful,
638
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
639
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
640
- * GNU Lesser General Public License for more details.
641
- *
642
- * You should have received a copy of the GNU Lesser General Public License
643
- * from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
644
- */
645
- const routes = [
646
- {
647
- path: '',
648
- data: {
649
- title: 'APP.PREVIEW.TITLE',
650
- navigateMultiple: true
651
- },
652
- component: AcaViewerComponent
653
- }
654
- ];
655
- class AcaViewerModule {
656
- }
657
- AcaViewerModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AcaViewerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
658
- AcaViewerModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: AcaViewerModule, imports: [i4.RouterModule, AcaViewerComponent, PreviewComponent], exports: [AcaViewerComponent, PreviewComponent] });
659
- AcaViewerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AcaViewerModule, imports: [RouterModule.forChild(routes), AcaViewerComponent, PreviewComponent] });
660
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AcaViewerModule, decorators: [{
661
- type: NgModule,
662
- args: [{
663
- imports: [RouterModule.forChild(routes), AcaViewerComponent, PreviewComponent],
664
- exports: [AcaViewerComponent, PreviewComponent]
665
- }]
666
- }] });
667
-
668
- /*!
669
- * Copyright © 2005-2024 Hyland Software, Inc. and its affiliates. All rights reserved.
670
- *
671
- * Alfresco Example Content Application
672
- *
673
- * This file is part of the Alfresco Example Content Application.
674
- * If the software was purchased under a paid Alfresco license, the terms of
675
- * the paid license agreement will prevail. Otherwise, the software is
676
- * provided under the following open source license terms:
677
- *
678
- * The Alfresco Example Content Application is free software: you can redistribute it and/or modify
679
- * it under the terms of the GNU Lesser General Public License as published by
680
- * the Free Software Foundation, either version 3 of the License, or
681
- * (at your option) any later version.
682
- *
683
- * The Alfresco Example Content Application is distributed in the hope that it will be useful,
684
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
685
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
686
- * GNU Lesser General Public License for more details.
687
- *
688
- * You should have received a copy of the GNU Lesser General Public License
689
- * from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
690
- */
691
- /*
692
- * Public API Surface of aca-viewer
693
- */
694
-
695
- /**
696
- * Generated bundle index. Do not edit.
697
- */
698
-
699
- export { AcaViewerComponent, AcaViewerModule, PreviewComponent, ViewerService };
700
- //# sourceMappingURL=alfresco-aca-content-viewer.mjs.map