@alfresco/aca-content 4.4.1 → 4.5.0-10004013253

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 (288) hide show
  1. package/about/about.component.d.ts +2 -2
  2. package/about/dev-mode.tokens.d.ts +1 -1
  3. package/about/package-json.token.d.ts +1 -1
  4. package/about/public-api.d.ts +1 -1
  5. package/assets/app.extensions.json +13 -19
  6. package/assets/i18n/ar.json +1 -1
  7. package/assets/i18n/cs.json +1 -1
  8. package/assets/i18n/da.json +1 -1
  9. package/assets/i18n/de.json +1 -1
  10. package/assets/i18n/en.json +1 -1
  11. package/assets/i18n/es.json +1 -1
  12. package/assets/i18n/fi.json +1 -1
  13. package/assets/i18n/fr.json +1 -1
  14. package/assets/i18n/it.json +1 -1
  15. package/assets/i18n/ja.json +1 -1
  16. package/assets/i18n/nb.json +1 -1
  17. package/assets/i18n/nl.json +1 -1
  18. package/assets/i18n/pl.json +1 -1
  19. package/assets/i18n/pt-BR.json +1 -1
  20. package/assets/i18n/ru.json +1 -1
  21. package/assets/i18n/sv.json +1 -1
  22. package/assets/i18n/zh-CN.json +1 -1
  23. package/esm2020/about/about.component.mjs +7 -7
  24. package/esm2020/about/aca-about.module.mjs +2 -2
  25. package/esm2020/about/dev-mode.tokens.mjs +2 -2
  26. package/esm2020/about/package-json.token.mjs +2 -2
  27. package/esm2020/about/public-api.mjs +2 -2
  28. package/esm2020/folder-rules/folder-rules.module.mjs +8 -3
  29. package/esm2020/folder-rules/folder-rules.rules.mjs +2 -2
  30. package/esm2020/folder-rules/manage-rules/manage-rules.smart-component.mjs +6 -5
  31. package/esm2020/folder-rules/model/action-parameter-constraint.model.mjs +2 -2
  32. package/esm2020/folder-rules/model/rule-action.model.mjs +2 -2
  33. package/esm2020/folder-rules/model/rule-composite-condition.model.mjs +2 -2
  34. package/esm2020/folder-rules/model/rule-grouping-item.model.mjs +2 -2
  35. package/esm2020/folder-rules/model/rule-set.model.mjs +2 -2
  36. package/esm2020/folder-rules/model/rule-simple-condition.model.mjs +2 -2
  37. package/esm2020/folder-rules/model/rule.model.mjs +2 -2
  38. package/esm2020/folder-rules/public-api.mjs +2 -2
  39. package/esm2020/folder-rules/rule-details/actions/rule-action-list.ui-component.mjs +2 -2
  40. package/esm2020/folder-rules/rule-details/actions/rule-action.ui-component.mjs +77 -10
  41. package/esm2020/folder-rules/rule-details/conditions/rule-composite-condition.ui-component.mjs +2 -2
  42. package/esm2020/folder-rules/rule-details/conditions/rule-condition-comparators.mjs +2 -2
  43. package/esm2020/folder-rules/rule-details/conditions/rule-condition-fields.mjs +2 -2
  44. package/esm2020/folder-rules/rule-details/conditions/rule-simple-condition.ui-component.mjs +21 -22
  45. package/esm2020/folder-rules/rule-details/edit-rule-dialog.ui-component.mjs +2 -2
  46. package/esm2020/folder-rules/rule-details/options/rule-options.ui-component.mjs +2 -2
  47. package/esm2020/folder-rules/rule-details/rule-details.ui-component.mjs +2 -2
  48. package/esm2020/folder-rules/rule-details/triggers/rule-triggers.ui-component.mjs +2 -2
  49. package/esm2020/folder-rules/rule-details/validators/rule-actions.validator.mjs +2 -2
  50. package/esm2020/folder-rules/rule-details/validators/rule-composite-condition.validator.mjs +2 -2
  51. package/esm2020/folder-rules/rule-list/rule-list/rule-list.ui-component.mjs +25 -19
  52. package/esm2020/folder-rules/rule-list/rule-list-grouping/rule-list-grouping.ui-component.mjs +2 -2
  53. package/esm2020/folder-rules/rule-list/rule-list-item/rule-list-item.ui-component.mjs +2 -2
  54. package/esm2020/folder-rules/rule-set-picker/rule-set-picker.smart-component.mjs +2 -2
  55. package/esm2020/folder-rules/services/actions.service.mjs +2 -2
  56. package/esm2020/folder-rules/services/folder-rule-sets.service.mjs +7 -3
  57. package/esm2020/folder-rules/services/folder-rules.service.mjs +2 -2
  58. package/esm2020/lib/aca-content.module.mjs +39 -87
  59. package/esm2020/lib/aca-content.routes.mjs +2 -2
  60. package/esm2020/lib/components/common/index.mjs +2 -2
  61. package/esm2020/lib/components/common/language-picker/language-picker.component.mjs +2 -2
  62. package/esm2020/lib/components/common/location-link/location-link.component.mjs +2 -2
  63. package/esm2020/lib/components/common/logout/logout.component.mjs +5 -6
  64. package/esm2020/lib/components/common/toggle-shared/toggle-shared.component.mjs +2 -2
  65. package/esm2020/lib/components/common/user-info/user-info.component.mjs +2 -2
  66. package/esm2020/lib/components/context-menu/context-menu-item.component.mjs +7 -9
  67. package/esm2020/lib/components/context-menu/context-menu-outside-event.directive.mjs +2 -2
  68. package/esm2020/lib/components/context-menu/context-menu-overlay.mjs +2 -2
  69. package/esm2020/lib/components/context-menu/context-menu.component.mjs +8 -10
  70. package/esm2020/lib/components/context-menu/context-menu.service.mjs +2 -2
  71. package/esm2020/lib/components/context-menu/direction.token.mjs +2 -2
  72. package/esm2020/lib/components/context-menu/interfaces.mjs +2 -2
  73. package/esm2020/lib/components/details/details.component.mjs +2 -2
  74. package/esm2020/lib/components/dl-custom-components/name-column/name-column.component.mjs +7 -9
  75. package/esm2020/lib/components/dl-custom-components/tags-column/tags-column.component.mjs +2 -2
  76. package/esm2020/lib/components/dl-custom-components/thumbnail-column/thumbnail-column.component.mjs +2 -2
  77. package/esm2020/lib/components/favorite-libraries/favorite-libraries.component.mjs +11 -12
  78. package/esm2020/lib/components/favorites/favorites.component.mjs +11 -12
  79. package/esm2020/lib/components/files/files.component.mjs +29 -27
  80. package/esm2020/lib/components/home/home.component.mjs +10 -14
  81. package/esm2020/lib/components/info-drawer/comments-tab/comments-tab.component.mjs +2 -2
  82. package/esm2020/lib/components/info-drawer/info.drawer.module.mjs +2 -2
  83. package/esm2020/lib/components/info-drawer/library-metadata-tab/library-metadata-form.component.mjs +2 -2
  84. package/esm2020/lib/components/info-drawer/library-metadata-tab/library-metadata-tab.component.mjs +2 -2
  85. package/esm2020/lib/components/info-drawer/metadata-tab/metadata-tab.component.mjs +2 -2
  86. package/esm2020/lib/components/info-drawer/versions-tab/versions-tab.component.mjs +7 -8
  87. package/esm2020/lib/components/libraries/libraries.component.mjs +11 -12
  88. package/esm2020/lib/components/recent-files/recent-files.component.mjs +11 -12
  89. package/esm2020/lib/components/search/index.mjs +2 -2
  90. package/esm2020/lib/components/search/search-action-menu/search-action-menu.component.mjs +2 -2
  91. package/esm2020/lib/components/search/search-input/search-input.component.mjs +2 -2
  92. package/esm2020/lib/components/search/search-input-control/search-input-control.component.mjs +2 -2
  93. package/esm2020/lib/components/search/search-libraries-results/search-libraries-query-builder.service.mjs +2 -2
  94. package/esm2020/lib/components/search/search-libraries-results/search-libraries-results.component.mjs +9 -10
  95. package/esm2020/lib/components/search/search-navigation.service.mjs +2 -2
  96. package/esm2020/lib/components/search/search-results/search-results.component.mjs +17 -22
  97. package/esm2020/lib/components/search/search-results-row/search-results-row.component.mjs +2 -2
  98. package/esm2020/lib/components/shared-files/shared-files.component.mjs +11 -12
  99. package/esm2020/lib/components/shared-link-view/shared-link-view.component.mjs +2 -2
  100. package/esm2020/lib/components/sidenav/components/button-menu.component.mjs +2 -2
  101. package/esm2020/lib/components/sidenav/components/expand-menu.component.mjs +2 -2
  102. package/esm2020/lib/components/sidenav/components/sidenav-header.component.mjs +11 -16
  103. package/esm2020/lib/components/sidenav/directives/action.directive.mjs +2 -2
  104. package/esm2020/lib/components/sidenav/directives/active-link.directive.mjs +2 -2
  105. package/esm2020/lib/components/sidenav/directives/expansion-panel.directive.mjs +2 -2
  106. package/esm2020/lib/components/sidenav/directives/menu-panel.directive.mjs +2 -2
  107. package/esm2020/lib/components/sidenav/index.mjs +2 -2
  108. package/esm2020/lib/components/sidenav/sidenav.component.mjs +5 -6
  109. package/esm2020/lib/components/sidenav/user-menu/user-menu.component.mjs +2 -2
  110. package/esm2020/lib/components/toolbar/index.mjs +2 -2
  111. package/esm2020/lib/components/toolbar/toggle-edit-offline/toggle-edit-offline.component.mjs +2 -2
  112. package/esm2020/lib/components/toolbar/toggle-favorite/toggle-favorite.component.mjs +7 -8
  113. package/esm2020/lib/components/toolbar/toggle-favorite-library/toggle-favorite-library.component.mjs +7 -8
  114. package/esm2020/lib/components/toolbar/toggle-info-drawer/toggle-info-drawer.component.mjs +2 -2
  115. package/esm2020/lib/components/toolbar/toggle-join-library/toggle-join-library-button.component.mjs +6 -7
  116. package/esm2020/lib/components/toolbar/toggle-join-library/toggle-join-library-menu.component.mjs +7 -8
  117. package/esm2020/lib/components/toolbar/view-node/view-node.component.mjs +2 -2
  118. package/esm2020/lib/components/trashcan/trashcan.component.mjs +10 -11
  119. package/esm2020/lib/components/upload-files-dialog/upload-files-dialog.component.mjs +2 -2
  120. package/esm2020/lib/components/view-profile/view-profile.component.mjs +2 -2
  121. package/esm2020/lib/components/view-profile/view-profile.guard.mjs +2 -2
  122. package/esm2020/lib/dialogs/node-template/create-from-template.dialog.mjs +2 -2
  123. package/esm2020/lib/directives/document-list.directive.mjs +44 -16
  124. package/esm2020/lib/extensions/core.extensions.module.mjs +2 -7
  125. package/esm2020/lib/services/content-management.service.mjs +26 -28
  126. package/esm2020/lib/services/content-url.service.mjs +2 -2
  127. package/esm2020/lib/services/node-actions.service.mjs +2 -2
  128. package/esm2020/lib/services/node-template.service.mjs +2 -2
  129. package/esm2020/lib/store/app-store.module.mjs +2 -2
  130. package/esm2020/lib/store/effects/app.effects.mjs +2 -2
  131. package/esm2020/lib/store/effects/contextmenu.effects.mjs +2 -2
  132. package/esm2020/lib/store/effects/download.effects.mjs +2 -2
  133. package/esm2020/lib/store/effects/favorite.effects.mjs +2 -2
  134. package/esm2020/lib/store/effects/library.effects.mjs +2 -2
  135. package/esm2020/lib/store/effects/node.effects.mjs +2 -2
  136. package/esm2020/lib/store/effects/search.effects.mjs +3 -3
  137. package/esm2020/lib/store/effects/template.effects.mjs +2 -2
  138. package/esm2020/lib/store/effects/upload.effects.mjs +2 -2
  139. package/esm2020/lib/store/effects/viewer.effects.mjs +2 -2
  140. package/esm2020/lib/store/effects.mjs +2 -2
  141. package/esm2020/lib/store/initial-state.mjs +3 -39
  142. package/esm2020/lib/store/reducers/app.reducer.mjs +3 -7
  143. package/esm2020/ms-office/actions/aos.actions.mjs +2 -2
  144. package/esm2020/ms-office/aos-extension.module.mjs +2 -2
  145. package/esm2020/ms-office/aos-extension.service.mjs +10 -12
  146. package/esm2020/ms-office/effects/aos.effects.mjs +2 -2
  147. package/esm2020/ms-office/public-api.mjs +2 -2
  148. package/esm2020/public-api.mjs +2 -2
  149. package/esm2020/viewer/lib/components/preview/preview.component.mjs +236 -0
  150. package/esm2020/viewer/lib/components/viewer/viewer.component.mjs +42 -203
  151. package/esm2020/viewer/lib/services/viewer.service.mjs +215 -0
  152. package/esm2020/viewer/lib/viewer.module.mjs +7 -6
  153. package/esm2020/viewer/public-api.mjs +3 -2
  154. package/fesm2015/alfresco-aca-content-about.mjs +10 -10
  155. package/fesm2015/alfresco-aca-content-about.mjs.map +1 -1
  156. package/fesm2015/alfresco-aca-content-folder-rules.mjs +167 -93
  157. package/fesm2015/alfresco-aca-content-folder-rules.mjs.map +1 -1
  158. package/fesm2015/alfresco-aca-content-ms-office.mjs +10 -13
  159. package/fesm2015/alfresco-aca-content-ms-office.mjs.map +1 -1
  160. package/fesm2015/alfresco-aca-content-viewer.mjs +414 -195
  161. package/fesm2015/alfresco-aca-content-viewer.mjs.map +1 -1
  162. package/fesm2015/alfresco-aca-content.mjs +5995 -6053
  163. package/fesm2015/alfresco-aca-content.mjs.map +1 -1
  164. package/fesm2020/alfresco-aca-content-about.mjs +10 -10
  165. package/fesm2020/alfresco-aca-content-about.mjs.map +1 -1
  166. package/fesm2020/alfresco-aca-content-folder-rules.mjs +178 -96
  167. package/fesm2020/alfresco-aca-content-folder-rules.mjs.map +1 -1
  168. package/fesm2020/alfresco-aca-content-ms-office.mjs +11 -14
  169. package/fesm2020/alfresco-aca-content-ms-office.mjs.map +1 -1
  170. package/fesm2020/alfresco-aca-content-viewer.mjs +449 -186
  171. package/fesm2020/alfresco-aca-content-viewer.mjs.map +1 -1
  172. package/fesm2020/alfresco-aca-content.mjs +4935 -4993
  173. package/fesm2020/alfresco-aca-content.mjs.map +1 -1
  174. package/folder-rules/folder-rules.module.d.ts +1 -1
  175. package/folder-rules/folder-rules.rules.d.ts +1 -1
  176. package/folder-rules/manage-rules/manage-rules.smart-component.d.ts +1 -1
  177. package/folder-rules/model/action-parameter-constraint.model.d.ts +1 -1
  178. package/folder-rules/model/rule-action.model.d.ts +1 -1
  179. package/folder-rules/model/rule-composite-condition.model.d.ts +1 -1
  180. package/folder-rules/model/rule-grouping-item.model.d.ts +1 -1
  181. package/folder-rules/model/rule-set.model.d.ts +1 -1
  182. package/folder-rules/model/rule-simple-condition.model.d.ts +1 -1
  183. package/folder-rules/model/rule.model.d.ts +1 -1
  184. package/folder-rules/public-api.d.ts +1 -1
  185. package/folder-rules/rule-details/actions/rule-action-list.ui-component.d.ts +1 -1
  186. package/folder-rules/rule-details/actions/rule-action.ui-component.d.ts +10 -5
  187. package/folder-rules/rule-details/conditions/rule-composite-condition.ui-component.d.ts +1 -1
  188. package/folder-rules/rule-details/conditions/rule-condition-comparators.d.ts +1 -1
  189. package/folder-rules/rule-details/conditions/rule-condition-fields.d.ts +1 -1
  190. package/folder-rules/rule-details/conditions/rule-simple-condition.ui-component.d.ts +5 -6
  191. package/folder-rules/rule-details/edit-rule-dialog.ui-component.d.ts +1 -1
  192. package/folder-rules/rule-details/options/rule-options.ui-component.d.ts +1 -1
  193. package/folder-rules/rule-details/rule-details.ui-component.d.ts +1 -1
  194. package/folder-rules/rule-details/triggers/rule-triggers.ui-component.d.ts +1 -1
  195. package/folder-rules/rule-details/validators/rule-actions.validator.d.ts +1 -1
  196. package/folder-rules/rule-details/validators/rule-composite-condition.validator.d.ts +1 -1
  197. package/folder-rules/rule-list/rule-list/rule-list.ui-component.d.ts +14 -9
  198. package/folder-rules/rule-list/rule-list-grouping/rule-list-grouping.ui-component.d.ts +1 -1
  199. package/folder-rules/rule-list/rule-list-item/rule-list-item.ui-component.d.ts +1 -1
  200. package/folder-rules/rule-set-picker/rule-set-picker.smart-component.d.ts +1 -1
  201. package/lib/aca-content.module.d.ts +5 -16
  202. package/lib/aca-content.routes.d.ts +1 -1
  203. package/lib/components/common/index.d.ts +1 -1
  204. package/lib/components/common/location-link/location-link.component.d.ts +1 -1
  205. package/lib/components/common/toggle-shared/toggle-shared.component.d.ts +1 -1
  206. package/lib/components/context-menu/context-menu-outside-event.directive.d.ts +1 -1
  207. package/lib/components/context-menu/context-menu-overlay.d.ts +1 -1
  208. package/lib/components/context-menu/context-menu.component.d.ts +1 -1
  209. package/lib/components/context-menu/context-menu.service.d.ts +1 -1
  210. package/lib/components/context-menu/direction.token.d.ts +1 -1
  211. package/lib/components/context-menu/interfaces.d.ts +1 -1
  212. package/lib/components/details/details.component.d.ts +1 -1
  213. package/lib/components/dl-custom-components/name-column/name-column.component.d.ts +1 -1
  214. package/lib/components/dl-custom-components/thumbnail-column/thumbnail-column.component.d.ts +1 -1
  215. package/lib/components/favorite-libraries/favorite-libraries.component.d.ts +1 -1
  216. package/lib/components/favorites/favorites.component.d.ts +1 -1
  217. package/lib/components/files/files.component.d.ts +3 -3
  218. package/lib/components/home/home.component.d.ts +2 -6
  219. package/lib/components/info-drawer/comments-tab/comments-tab.component.d.ts +1 -1
  220. package/lib/components/info-drawer/library-metadata-tab/library-metadata-form.component.d.ts +1 -1
  221. package/lib/components/info-drawer/metadata-tab/metadata-tab.component.d.ts +1 -1
  222. package/lib/components/info-drawer/versions-tab/versions-tab.component.d.ts +1 -1
  223. package/lib/components/recent-files/recent-files.component.d.ts +1 -1
  224. package/lib/components/search/index.d.ts +1 -1
  225. package/lib/components/search/search-action-menu/search-action-menu.component.d.ts +1 -1
  226. package/lib/components/search/search-input/search-input.component.d.ts +1 -1
  227. package/lib/components/search/search-input-control/search-input-control.component.d.ts +1 -1
  228. package/lib/components/search/search-libraries-results/search-libraries-query-builder.service.d.ts +1 -1
  229. package/lib/components/search/search-results/search-results.component.d.ts +1 -2
  230. package/lib/components/search/search-results-row/search-results-row.component.d.ts +1 -1
  231. package/lib/components/shared-files/shared-files.component.d.ts +1 -1
  232. package/lib/components/shared-link-view/shared-link-view.component.d.ts +1 -1
  233. package/lib/components/sidenav/components/button-menu.component.d.ts +1 -1
  234. package/lib/components/sidenav/components/expand-menu.component.d.ts +1 -1
  235. package/lib/components/sidenav/components/sidenav-header.component.d.ts +4 -5
  236. package/lib/components/sidenav/directives/active-link.directive.d.ts +1 -1
  237. package/lib/components/sidenav/directives/expansion-panel.directive.d.ts +1 -1
  238. package/lib/components/sidenav/directives/menu-panel.directive.d.ts +1 -1
  239. package/lib/components/sidenav/index.d.ts +1 -1
  240. package/lib/components/sidenav/sidenav.component.d.ts +1 -1
  241. package/lib/components/sidenav/user-menu/user-menu.component.d.ts +1 -1
  242. package/lib/components/toolbar/index.d.ts +1 -1
  243. package/lib/components/toolbar/toggle-edit-offline/toggle-edit-offline.component.d.ts +1 -1
  244. package/lib/components/toolbar/toggle-favorite/toggle-favorite.component.d.ts +1 -1
  245. package/lib/components/toolbar/toggle-favorite-library/toggle-favorite-library.component.d.ts +1 -1
  246. package/lib/components/toolbar/toggle-join-library/toggle-join-library-button.component.d.ts +1 -1
  247. package/lib/components/upload-files-dialog/upload-files-dialog.component.d.ts +1 -1
  248. package/lib/components/view-profile/view-profile.component.d.ts +1 -1
  249. package/lib/dialogs/node-template/create-from-template.dialog.d.ts +1 -1
  250. package/lib/directives/document-list.directive.d.ts +4 -1
  251. package/lib/extensions/core.extensions.module.d.ts +1 -2
  252. package/lib/services/content-management.service.d.ts +4 -3
  253. package/lib/store/effects/app.effects.d.ts +1 -1
  254. package/lib/store/effects/download.effects.d.ts +1 -1
  255. package/lib/store/effects/favorite.effects.d.ts +1 -1
  256. package/lib/store/effects/library.effects.d.ts +1 -1
  257. package/lib/store/effects/node.effects.d.ts +1 -1
  258. package/lib/store/effects/search.effects.d.ts +1 -1
  259. package/lib/store/effects/template.effects.d.ts +1 -1
  260. package/lib/store/effects/upload.effects.d.ts +1 -1
  261. package/lib/store/effects/viewer.effects.d.ts +1 -1
  262. package/lib/store/effects.d.ts +1 -1
  263. package/lib/store/initial-state.d.ts +2 -4
  264. package/lib/store/reducers/app.reducer.d.ts +1 -1
  265. package/ms-office/actions/aos.actions.d.ts +1 -1
  266. package/ms-office/aos-extension.module.d.ts +1 -1
  267. package/ms-office/aos-extension.service.d.ts +5 -5
  268. package/ms-office/public-api.d.ts +1 -1
  269. package/package.json +5 -13
  270. package/public-api.d.ts +1 -1
  271. package/{preview/lib/components → viewer/lib/components/preview}/preview.component.d.ts +16 -43
  272. package/viewer/lib/components/viewer/viewer.component.d.ts +20 -46
  273. package/viewer/lib/services/viewer.service.d.ts +65 -0
  274. package/viewer/lib/viewer.module.d.ts +2 -1
  275. package/viewer/public-api.d.ts +2 -1
  276. package/esm2020/folder-rules/rule-details/conditions/rule-mime-types.mjs +0 -25
  277. package/esm2020/preview/alfresco-aca-content-preview.mjs +0 -5
  278. package/esm2020/preview/lib/components/preview.component.mjs +0 -394
  279. package/esm2020/preview/lib/preview.module.mjs +0 -39
  280. package/esm2020/preview/public-api.mjs +0 -29
  281. package/fesm2015/alfresco-aca-content-preview.mjs +0 -447
  282. package/fesm2015/alfresco-aca-content-preview.mjs.map +0 -1
  283. package/fesm2020/alfresco-aca-content-preview.mjs +0 -461
  284. package/fesm2020/alfresco-aca-content-preview.mjs.map +0 -1
  285. package/folder-rules/rule-details/conditions/rule-mime-types.d.ts +0 -27
  286. package/preview/index.d.ts +0 -5
  287. package/preview/lib/preview.module.d.ts +0 -7
  288. package/preview/public-api.d.ts +0 -25
@@ -1,447 +0,0 @@
1
- import { __awaiter } from 'tslib';
2
- import * as i0 from '@angular/core';
3
- import { Component, ViewEncapsulation, HostListener, NgModule } from '@angular/core';
4
- import * as i6 from '@angular/common';
5
- import { CommonModule } from '@angular/common';
6
- import * as i3 from '@angular/router';
7
- import { PRIMARY_OUTLET } from '@angular/router';
8
- import { takeUntil, debounceTime, map } from 'rxjs/operators';
9
- import * as i2 from '@alfresco/adf-core';
10
- import { ObjectUtils, ViewerModule } from '@alfresco/adf-core';
11
- import { ViewerActionTypes, SetSelectedNodesAction } from '@alfresco/aca-shared/store';
12
- import * as i1 from '@alfresco/aca-shared';
13
- import { PageComponent, InfoDrawerComponent, ToolbarMenuItemComponent, ToolbarComponent } from '@alfresco/aca-shared';
14
- import { from } from 'rxjs';
15
- import * as i5 from '@ngrx/effects';
16
- import { ofType } from '@ngrx/effects';
17
- import * as i4 from '@alfresco/adf-content-services';
18
- import { AlfrescoViewerModule } from '@alfresco/adf-content-services';
19
-
20
- class PreviewComponent extends PageComponent {
21
- constructor(contentApi, preferences, route, nodesApiService, actions$, location, appHookService) {
22
- super();
23
- this.contentApi = contentApi;
24
- this.preferences = preferences;
25
- this.route = route;
26
- this.nodesApiService = nodesApiService;
27
- this.actions$ = actions$;
28
- this.location = location;
29
- this.appHookService = appHookService;
30
- this.previewLocation = null;
31
- this.routesSkipNavigation = ['shared', 'recent-files', 'favorites'];
32
- this.navigateSource = null;
33
- this.navigationSources = ['favorites', 'libraries', 'personal-files', 'recent-files', 'shared'];
34
- this.folderId = null;
35
- this.nodeId = null;
36
- this.navigateMultiple = false;
37
- this.openWith = [];
38
- this.contentExtensions = [];
39
- this.showRightSide = false;
40
- this.navigateBackAsClose = false;
41
- this.simplestMode = false;
42
- this.recentFileFilters = [
43
- 'TYPE:"content"',
44
- '-PATH:"//cm:wiki/*"',
45
- '-TYPE:"app:filelink"',
46
- '-TYPE:"fm:post"',
47
- '-TYPE:"cm:thumbnail"',
48
- '-TYPE:"cm:failedThumbnail"',
49
- '-TYPE:"cm:rating"',
50
- '-TYPE:"dl:dataList"',
51
- '-TYPE:"dl:todoList"',
52
- '-TYPE:"dl:issue"',
53
- '-TYPE:"dl:contact"',
54
- '-TYPE:"dl:eventAgenda"',
55
- '-TYPE:"dl:event"',
56
- '-TYPE:"dl:task"',
57
- '-TYPE:"dl:simpletask"',
58
- '-TYPE:"dl:meetingAgenda"',
59
- '-TYPE:"dl:location"',
60
- '-TYPE:"fm:topic"',
61
- '-TYPE:"fm:post"',
62
- '-TYPE:"ia:calendarEvent"',
63
- '-TYPE:"lnk:link"'
64
- ];
65
- this.containersSkipNavigation = ['adf-viewer__sidebar', 'cdk-overlay-container', 'adf-image-viewer'];
66
- }
67
- ngOnInit() {
68
- super.ngOnInit();
69
- from(this.infoDrawerOpened$)
70
- .pipe(takeUntil(this.onDestroy$))
71
- .subscribe((val) => {
72
- this.showRightSide = val;
73
- });
74
- this.previewLocation = this.router.url.substr(0, this.router.url.indexOf('/', 1)).replace(/\//g, '');
75
- const routeData = this.route.snapshot.data;
76
- this.navigateBackAsClose = !!routeData.navigateBackAsClose;
77
- this.simplestMode = !!routeData.simplestMode;
78
- if (routeData.navigateMultiple) {
79
- this.navigateMultiple = true;
80
- }
81
- if (routeData.navigateSource) {
82
- const source = routeData.navigateSource.toLowerCase();
83
- if (this.navigationSources.includes(source)) {
84
- this.navigateSource = routeData.navigateSource;
85
- }
86
- }
87
- this.route.params.subscribe((params) => {
88
- this.folderId = params.folderId;
89
- const id = params.nodeId;
90
- if (id) {
91
- this.displayNode(id);
92
- }
93
- });
94
- this.subscriptions = this.subscriptions.concat([
95
- this.appHookService.nodesDeleted.subscribe(() => this.navigateToFileLocation(true)),
96
- this.uploadService.fileUploadDeleted.subscribe(() => this.navigateToFileLocation(true)),
97
- this.uploadService.fileUploadComplete.pipe(debounceTime(300)).subscribe((file) => this.nodesApiService.nodeUpdated.next(file.data.entry)),
98
- this.actions$
99
- .pipe(ofType(ViewerActionTypes.ClosePreview), map(() => this.navigateToFileLocation(true)))
100
- .subscribe(() => { })
101
- ]);
102
- this.extensions
103
- .getOpenWithActions()
104
- .pipe(takeUntil(this.onDestroy$))
105
- .subscribe((actions) => {
106
- this.openWith = actions;
107
- });
108
- }
109
- ngOnDestroy() {
110
- super.ngOnDestroy();
111
- }
112
- /**
113
- * Loads the particular node into the Viewer
114
- *
115
- * @param id Unique identifier for the Node to display
116
- */
117
- displayNode(id) {
118
- var _a;
119
- return __awaiter(this, void 0, void 0, function* () {
120
- if (id) {
121
- try {
122
- this.node = yield this.contentApi.getNodeInfo(id).toPromise();
123
- this.store.dispatch(new SetSelectedNodesAction([{ entry: this.node }]));
124
- if ((_a = this.node) === null || _a === void 0 ? void 0 : _a.isFile) {
125
- const nearest = yield this.getNearestNodes(this.node.id, this.node.parentId);
126
- this.previousNodeId = nearest.left;
127
- this.nextNodeId = nearest.right;
128
- this.nodeId = this.node.id;
129
- return;
130
- }
131
- yield this.router.navigate([this.previewLocation, id]);
132
- }
133
- catch (err) {
134
- if (!err || err.status !== 401) {
135
- yield this.router.navigate([this.previewLocation, id]);
136
- }
137
- }
138
- }
139
- });
140
- }
141
- handleKeyboardEvent(event) {
142
- const key = event.key;
143
- if (key === 'ArrowRight' || key === 'ArrowLeft') {
144
- event.preventDefault();
145
- event.stopImmediatePropagation();
146
- }
147
- }
148
- /**
149
- * Handles the visibility change of the Viewer component.
150
- *
151
- * @param isVisible Indicator whether Viewer is visible or hidden.
152
- */
153
- onVisibilityChanged(isVisible) {
154
- const shouldNavigate = !isVisible;
155
- this.navigateToFileLocation(shouldNavigate);
156
- }
157
- navigateToFileLocation(shouldNavigate) {
158
- if (shouldNavigate) {
159
- if (this.navigateBackAsClose) {
160
- this.location.back();
161
- }
162
- else {
163
- const shouldSkipNavigation = this.routesSkipNavigation.includes(this.previewLocation);
164
- const route = this.getNavigationCommands(this.previewLocation);
165
- if (!shouldSkipNavigation && this.folderId) {
166
- route.push(this.folderId);
167
- }
168
- this.router.navigate(route);
169
- }
170
- }
171
- }
172
- /** Handles navigation to a previous document */
173
- onNavigateBefore(event) {
174
- if (event.type !== 'click' && this.shouldNavigate(event.target)) {
175
- return;
176
- }
177
- if (this.previousNodeId) {
178
- this.router.navigate(this.getPreviewPath(this.folderId, this.previousNodeId));
179
- }
180
- }
181
- /** Handles navigation to a next document */
182
- onNavigateNext(event) {
183
- if (event.type !== 'click' && this.shouldNavigate(event.target)) {
184
- return;
185
- }
186
- if (this.nextNodeId) {
187
- this.router.navigate(this.getPreviewPath(this.folderId, this.nextNodeId));
188
- }
189
- }
190
- /**
191
- * Generates a node preview route based on folder and node IDs.
192
- *
193
- * @param folderId Folder ID
194
- * @param nodeId Node ID
195
- */
196
- getPreviewPath(folderId, nodeId) {
197
- const route = [this.previewLocation];
198
- if (folderId) {
199
- route.push(folderId);
200
- }
201
- if (nodeId) {
202
- route.push('preview', nodeId);
203
- }
204
- return route;
205
- }
206
- /**
207
- * Retrieves nearest node information for the given node and folder.
208
- *
209
- * @param nodeId Unique identifier of the document node
210
- * @param folderId Unique identifier of the containing folder node.
211
- */
212
- getNearestNodes(nodeId, folderId) {
213
- return __awaiter(this, void 0, void 0, function* () {
214
- const empty = {
215
- left: null,
216
- right: null
217
- };
218
- if (nodeId && folderId) {
219
- try {
220
- const ids = yield this.getFileIds(this.navigateSource, folderId);
221
- const idx = ids.indexOf(nodeId);
222
- if (idx >= 0) {
223
- return {
224
- left: ids[idx - 1] || null,
225
- right: ids[idx + 1] || null
226
- };
227
- }
228
- else {
229
- return empty;
230
- }
231
- }
232
- catch (_a) {
233
- return empty;
234
- }
235
- }
236
- else {
237
- return empty;
238
- }
239
- });
240
- }
241
- /**
242
- * Retrieves a list of node identifiers for the folder and data source.
243
- *
244
- * @param source Data source name. Allowed values are: personal-files, libraries, favorites, shared, recent-files.
245
- * @param folderId Containing folder node identifier for 'personal-files' and 'libraries' sources.
246
- */
247
- getFileIds(source, folderId) {
248
- return __awaiter(this, void 0, void 0, function* () {
249
- if ((source === 'personal-files' || source === 'libraries') && folderId) {
250
- const sortKey = this.preferences.get('personal-files.sorting.key') || 'modifiedAt';
251
- const sortDirection = this.preferences.get('personal-files.sorting.direction') || 'desc';
252
- const nodes = yield this.contentApi
253
- .getNodeChildren(folderId, {
254
- // orderBy: `${sortKey} ${sortDirection}`,
255
- fields: ['id', this.getRootField(sortKey)],
256
- where: '(isFile=true)'
257
- })
258
- .toPromise();
259
- const entries = nodes.list.entries.map((obj) => obj.entry);
260
- this.sort(entries, sortKey, sortDirection);
261
- return entries.map((obj) => obj.id);
262
- }
263
- if (source === 'favorites') {
264
- const nodes = yield this.contentApi
265
- .getFavorites('-me-', {
266
- where: '(EXISTS(target/file))',
267
- fields: ['target']
268
- })
269
- .toPromise();
270
- const sortKey = this.preferences.get('favorites.sorting.key') || 'modifiedAt';
271
- const sortDirection = this.preferences.get('favorites.sorting.direction') || 'desc';
272
- const files = nodes.list.entries.map((obj) => obj.entry.target.file);
273
- this.sort(files, sortKey, sortDirection);
274
- return files.map((f) => f.id);
275
- }
276
- if (source === 'shared') {
277
- const sortingKey = this.preferences.get('shared.sorting.key') || 'modifiedAt';
278
- const sortingDirection = this.preferences.get('shared.sorting.direction') || 'desc';
279
- const nodes = yield this.contentApi
280
- .findSharedLinks({
281
- fields: ['nodeId', this.getRootField(sortingKey)]
282
- })
283
- .toPromise();
284
- const entries = nodes.list.entries.map((obj) => obj.entry);
285
- this.sort(entries, sortingKey, sortingDirection);
286
- return entries.map((obj) => obj.nodeId);
287
- }
288
- if (source === 'recent-files') {
289
- const person = yield this.contentApi.getPerson('-me-').toPromise();
290
- const username = person.entry.id;
291
- const sortingKey = this.preferences.get('recent-files.sorting.key') || 'modifiedAt';
292
- const sortingDirection = this.preferences.get('recent-files.sorting.direction') || 'desc';
293
- const query = {
294
- query: {
295
- query: '*',
296
- language: 'afts'
297
- },
298
- filterQueries: [
299
- { query: `cm:modified:[NOW/DAY-30DAYS TO NOW/DAY+1DAY]` },
300
- { query: `cm:modifier:${username} OR cm:creator:${username}` },
301
- {
302
- query: this.recentFileFilters.join(' AND ')
303
- }
304
- ],
305
- fields: ['id', this.getRootField(sortingKey)],
306
- include: ['path', 'properties', 'allowableOperations'],
307
- sort: [
308
- {
309
- type: 'FIELD',
310
- field: 'cm:modified',
311
- ascending: false
312
- }
313
- ]
314
- };
315
- const nodes = yield this.contentApi.search(query).toPromise();
316
- const entries = nodes.list.entries.map((obj) => obj.entry);
317
- this.sort(entries, sortingKey, sortingDirection);
318
- return entries.map((obj) => obj.id);
319
- }
320
- return [];
321
- });
322
- }
323
- sort(items, key, direction) {
324
- const options = {};
325
- if (key.includes('sizeInBytes') || key === 'name') {
326
- options.numeric = true;
327
- }
328
- items.sort((a, b) => {
329
- var _a, _b;
330
- let left = (_a = ObjectUtils.getValue(a, key)) !== null && _a !== void 0 ? _a : '';
331
- left = left instanceof Date ? left.valueOf().toString() : left.toString();
332
- let right = (_b = ObjectUtils.getValue(b, key)) !== null && _b !== void 0 ? _b : '';
333
- right = right instanceof Date ? right.valueOf().toString() : right.toString();
334
- return direction === 'asc' ? left.localeCompare(right, undefined, options) : right.localeCompare(left, undefined, options);
335
- });
336
- }
337
- /**
338
- * Get the root field name from the property path.
339
- * Example: 'property1.some.child.property' => 'property1'
340
- *
341
- * @param path Property path
342
- */
343
- getRootField(path) {
344
- if (path) {
345
- return path.split('.')[0];
346
- }
347
- return path;
348
- }
349
- getNavigationCommands(url) {
350
- const urlTree = this.router.parseUrl(url);
351
- const urlSegmentGroup = urlTree.root.children[PRIMARY_OUTLET];
352
- if (!urlSegmentGroup) {
353
- return [url];
354
- }
355
- const urlSegments = urlSegmentGroup.segments;
356
- return urlSegments.reduce(function (acc, item) {
357
- acc.push(item.path, item.parameters);
358
- return acc;
359
- }, []);
360
- }
361
- shouldNavigate(element) {
362
- let currentElement = element.parentElement;
363
- while (currentElement && !this.isChild(currentElement.classList)) {
364
- currentElement = currentElement.parentElement;
365
- }
366
- return !!currentElement;
367
- }
368
- isChild(list) {
369
- return Array.from(list).some((className) => this.containersSkipNavigation.includes(className));
370
- }
371
- }
372
- PreviewComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: PreviewComponent, deps: [{ token: i1.ContentApiService }, { token: i2.UserPreferencesService }, { token: i3.ActivatedRoute }, { token: i4.NodesApiService }, { token: i5.Actions }, { token: i6.Location }, { token: i1.AppHookService }], target: i0.ɵɵFactoryTarget.Component });
373
- PreviewComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.3", 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: i6.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i6.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i6.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "pipe", type: i6.AsyncPipe, name: "async" }, { kind: "ngmodule", type: ViewerModule }, { kind: "component", type: i2.ViewerSidebarComponent, selector: "adf-viewer-sidebar" }, { kind: "component", type: i2.ViewerOpenWithComponent, selector: "adf-viewer-open-with" }, { kind: "component", type: i2.ViewerToolbarActionsComponent, selector: "adf-viewer-toolbar-actions" }, { kind: "ngmodule", type: AlfrescoViewerModule }, { kind: "component", type: i4.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 });
374
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: PreviewComponent, decorators: [{
375
- type: Component,
376
- 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"] }]
377
- }], ctorParameters: function () { return [{ type: i1.ContentApiService }, { type: i2.UserPreferencesService }, { type: i3.ActivatedRoute }, { type: i4.NodesApiService }, { type: i5.Actions }, { type: i6.Location }, { type: i1.AppHookService }]; }, propDecorators: { handleKeyboardEvent: [{
378
- type: HostListener,
379
- args: ['document:keydown', ['$event']]
380
- }] } });
381
-
382
- /*!
383
- * Copyright © 2005-2023 Hyland Software, Inc. and its affiliates. All rights reserved.
384
- *
385
- * Alfresco Example Content Application
386
- *
387
- * This file is part of the Alfresco Example Content Application.
388
- * If the software was purchased under a paid Alfresco license, the terms of
389
- * the paid license agreement will prevail. Otherwise, the software is
390
- * provided under the following open source license terms:
391
- *
392
- * The Alfresco Example Content Application is free software: you can redistribute it and/or modify
393
- * it under the terms of the GNU Lesser General Public License as published by
394
- * the Free Software Foundation, either version 3 of the License, or
395
- * (at your option) any later version.
396
- *
397
- * The Alfresco Example Content Application is distributed in the hope that it will be useful,
398
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
399
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
400
- * GNU Lesser General Public License for more details.
401
- *
402
- * You should have received a copy of the GNU Lesser General Public License
403
- * from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
404
- */
405
- class PreviewModule {
406
- }
407
- PreviewModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: PreviewModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
408
- PreviewModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.1.3", ngImport: i0, type: PreviewModule, imports: [PreviewComponent], exports: [PreviewComponent] });
409
- PreviewModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: PreviewModule, imports: [PreviewComponent] });
410
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: PreviewModule, decorators: [{
411
- type: NgModule,
412
- args: [{
413
- imports: [PreviewComponent],
414
- exports: [PreviewComponent]
415
- }]
416
- }] });
417
-
418
- /*!
419
- * Copyright © 2005-2023 Hyland Software, Inc. and its affiliates. All rights reserved.
420
- *
421
- * Alfresco Example Content Application
422
- *
423
- * This file is part of the Alfresco Example Content Application.
424
- * If the software was purchased under a paid Alfresco license, the terms of
425
- * the paid license agreement will prevail. Otherwise, the software is
426
- * provided under the following open source license terms:
427
- *
428
- * The Alfresco Example Content Application is free software: you can redistribute it and/or modify
429
- * it under the terms of the GNU Lesser General Public License as published by
430
- * the Free Software Foundation, either version 3 of the License, or
431
- * (at your option) any later version.
432
- *
433
- * The Alfresco Example Content Application is distributed in the hope that it will be useful,
434
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
435
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
436
- * GNU Lesser General Public License for more details.
437
- *
438
- * You should have received a copy of the GNU Lesser General Public License
439
- * from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
440
- */
441
-
442
- /**
443
- * Generated bundle index. Do not edit.
444
- */
445
-
446
- export { PreviewComponent, PreviewModule };
447
- //# sourceMappingURL=alfresco-aca-content-preview.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"alfresco-aca-content-preview.mjs","sources":["../../../../projects/aca-content/preview/src/lib/components/preview.component.ts","../../../../projects/aca-content/preview/src/lib/components/preview.component.html","../../../../projects/aca-content/preview/src/lib/preview.module.ts","../../../../projects/aca-content/preview/src/public-api.ts","../../../../projects/aca-content/preview/src/alfresco-aca-content-preview.ts"],"sourcesContent":["/*!\n * Copyright © 2005-2023 Hyland Software, Inc. and its affiliates. All rights reserved.\n *\n * Alfresco Example Content Application\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 * from Hyland Software. If not, see <http://www.gnu.org/licenses/>.\n */\n\nimport { Component, OnInit, OnDestroy, ViewEncapsulation, HostListener } from '@angular/core';\nimport { CommonModule, Location } from '@angular/common';\nimport { ActivatedRoute, UrlTree, UrlSegmentGroup, UrlSegment, PRIMARY_OUTLET } from '@angular/router';\nimport { debounceTime, map, takeUntil } from 'rxjs/operators';\nimport { UserPreferencesService, ObjectUtils, ViewerModule } from '@alfresco/adf-core';\nimport { ClosePreviewAction, ViewerActionTypes, SetSelectedNodesAction } from '@alfresco/aca-shared/store';\nimport {\n PageComponent,\n AppHookService,\n ContentApiService,\n InfoDrawerComponent,\n ToolbarMenuItemComponent,\n ToolbarComponent\n} from '@alfresco/aca-shared';\nimport { ContentActionRef, ViewerExtensionRef } from '@alfresco/adf-extensions';\nimport { SearchRequest } from '@alfresco/js-api';\nimport { from } from 'rxjs';\nimport { Actions, ofType } from '@ngrx/effects';\nimport { AlfrescoViewerModule, NodesApiService } from '@alfresco/adf-content-services';\n\n@Component({\n standalone: true,\n imports: [CommonModule, ViewerModule, AlfrescoViewerModule, InfoDrawerComponent, ToolbarMenuItemComponent, ToolbarComponent],\n selector: 'app-preview',\n templateUrl: './preview.component.html',\n styleUrls: ['./preview.component.scss'],\n encapsulation: ViewEncapsulation.None,\n host: { class: 'app-preview' }\n})\nexport class PreviewComponent extends PageComponent implements OnInit, OnDestroy {\n previewLocation: string = null;\n routesSkipNavigation = ['shared', 'recent-files', 'favorites'];\n navigateSource: string = null;\n navigationSources = ['favorites', 'libraries', 'personal-files', 'recent-files', 'shared'];\n folderId: string = null;\n nodeId: string = null;\n previousNodeId: string;\n nextNodeId: string;\n navigateMultiple = false;\n openWith: Array<ContentActionRef> = [];\n contentExtensions: Array<ViewerExtensionRef> = [];\n showRightSide = false;\n navigateBackAsClose = false;\n simplestMode = false;\n\n recentFileFilters = [\n 'TYPE:\"content\"',\n '-PATH:\"//cm:wiki/*\"',\n '-TYPE:\"app:filelink\"',\n '-TYPE:\"fm:post\"',\n '-TYPE:\"cm:thumbnail\"',\n '-TYPE:\"cm:failedThumbnail\"',\n '-TYPE:\"cm:rating\"',\n '-TYPE:\"dl:dataList\"',\n '-TYPE:\"dl:todoList\"',\n '-TYPE:\"dl:issue\"',\n '-TYPE:\"dl:contact\"',\n '-TYPE:\"dl:eventAgenda\"',\n '-TYPE:\"dl:event\"',\n '-TYPE:\"dl:task\"',\n '-TYPE:\"dl:simpletask\"',\n '-TYPE:\"dl:meetingAgenda\"',\n '-TYPE:\"dl:location\"',\n '-TYPE:\"fm:topic\"',\n '-TYPE:\"fm:post\"',\n '-TYPE:\"ia:calendarEvent\"',\n '-TYPE:\"lnk:link\"'\n ];\n\n private containersSkipNavigation = ['adf-viewer__sidebar', 'cdk-overlay-container', 'adf-image-viewer'];\n\n constructor(\n private contentApi: ContentApiService,\n private preferences: UserPreferencesService,\n private route: ActivatedRoute,\n private nodesApiService: NodesApiService,\n private actions$: Actions,\n private location: Location,\n private appHookService: AppHookService\n ) {\n super();\n }\n\n ngOnInit() {\n super.ngOnInit();\n\n from(this.infoDrawerOpened$)\n .pipe(takeUntil(this.onDestroy$))\n .subscribe((val) => {\n this.showRightSide = val;\n });\n\n this.previewLocation = this.router.url.substr(0, this.router.url.indexOf('/', 1)).replace(/\\//g, '');\n\n const routeData = this.route.snapshot.data;\n this.navigateBackAsClose = !!routeData.navigateBackAsClose;\n this.simplestMode = !!routeData.simplestMode;\n\n if (routeData.navigateMultiple) {\n this.navigateMultiple = true;\n }\n\n if (routeData.navigateSource) {\n const source = routeData.navigateSource.toLowerCase();\n if (this.navigationSources.includes(source)) {\n this.navigateSource = routeData.navigateSource;\n }\n }\n\n this.route.params.subscribe((params) => {\n this.folderId = params.folderId;\n const id = params.nodeId;\n if (id) {\n this.displayNode(id);\n }\n });\n\n this.subscriptions = this.subscriptions.concat([\n this.appHookService.nodesDeleted.subscribe(() => this.navigateToFileLocation(true)),\n\n this.uploadService.fileUploadDeleted.subscribe(() => this.navigateToFileLocation(true)),\n\n this.uploadService.fileUploadComplete.pipe(debounceTime(300)).subscribe((file) => this.nodesApiService.nodeUpdated.next(file.data.entry)),\n\n this.actions$\n .pipe(\n ofType<ClosePreviewAction>(ViewerActionTypes.ClosePreview),\n map(() => this.navigateToFileLocation(true))\n )\n .subscribe(() => {})\n ]);\n\n this.extensions\n .getOpenWithActions()\n .pipe(takeUntil(this.onDestroy$))\n .subscribe((actions) => {\n this.openWith = actions;\n });\n }\n\n ngOnDestroy() {\n super.ngOnDestroy();\n }\n\n /**\n * Loads the particular node into the Viewer\n *\n * @param id Unique identifier for the Node to display\n */\n async displayNode(id: string) {\n if (id) {\n try {\n this.node = await this.contentApi.getNodeInfo(id).toPromise();\n this.store.dispatch(new SetSelectedNodesAction([{ entry: this.node }]));\n\n if (this.node?.isFile) {\n const nearest = await this.getNearestNodes(this.node.id, this.node.parentId);\n\n this.previousNodeId = nearest.left;\n this.nextNodeId = nearest.right;\n this.nodeId = this.node.id;\n return;\n }\n await this.router.navigate([this.previewLocation, id]);\n } catch (err) {\n if (!err || err.status !== 401) {\n await this.router.navigate([this.previewLocation, id]);\n }\n }\n }\n }\n\n @HostListener('document:keydown', ['$event'])\n handleKeyboardEvent(event: KeyboardEvent) {\n const key = event.key;\n\n if (key === 'ArrowRight' || key === 'ArrowLeft') {\n event.preventDefault();\n event.stopImmediatePropagation();\n }\n }\n\n /**\n * Handles the visibility change of the Viewer component.\n *\n * @param isVisible Indicator whether Viewer is visible or hidden.\n */\n onVisibilityChanged(isVisible: boolean): void {\n const shouldNavigate = !isVisible;\n this.navigateToFileLocation(shouldNavigate);\n }\n\n navigateToFileLocation(shouldNavigate: boolean) {\n if (shouldNavigate) {\n if (this.navigateBackAsClose) {\n this.location.back();\n } else {\n const shouldSkipNavigation = this.routesSkipNavigation.includes(this.previewLocation);\n const route = this.getNavigationCommands(this.previewLocation);\n\n if (!shouldSkipNavigation && this.folderId) {\n route.push(this.folderId);\n }\n this.router.navigate(route);\n }\n }\n }\n\n /** Handles navigation to a previous document */\n onNavigateBefore(event: MouseEvent | KeyboardEvent): void {\n if (event.type !== 'click' && this.shouldNavigate(event.target as HTMLElement)) {\n return;\n }\n\n if (this.previousNodeId) {\n this.router.navigate(this.getPreviewPath(this.folderId, this.previousNodeId));\n }\n }\n\n /** Handles navigation to a next document */\n onNavigateNext(event: MouseEvent | KeyboardEvent): void {\n if (event.type !== 'click' && this.shouldNavigate(event.target as HTMLElement)) {\n return;\n }\n\n if (this.nextNodeId) {\n this.router.navigate(this.getPreviewPath(this.folderId, this.nextNodeId));\n }\n }\n\n /**\n * Generates a node preview route based on folder and node IDs.\n *\n * @param folderId Folder ID\n * @param nodeId Node ID\n */\n getPreviewPath(folderId: string, nodeId: string): any[] {\n const route = [this.previewLocation];\n\n if (folderId) {\n route.push(folderId);\n }\n\n if (nodeId) {\n route.push('preview', nodeId);\n }\n\n return route;\n }\n\n /**\n * Retrieves nearest node information for the given node and folder.\n *\n * @param nodeId Unique identifier of the document node\n * @param folderId Unique identifier of the containing folder node.\n */\n async getNearestNodes(nodeId: string, folderId: string): Promise<{ left: string; right: string }> {\n const empty = {\n left: null,\n right: null\n };\n\n if (nodeId && folderId) {\n try {\n const ids = await this.getFileIds(this.navigateSource, folderId);\n const idx = ids.indexOf(nodeId);\n\n if (idx >= 0) {\n return {\n left: ids[idx - 1] || null,\n right: ids[idx + 1] || null\n };\n } else {\n return empty;\n }\n } catch {\n return empty;\n }\n } else {\n return empty;\n }\n }\n\n /**\n * Retrieves a list of node identifiers for the folder and data source.\n *\n * @param source Data source name. Allowed values are: personal-files, libraries, favorites, shared, recent-files.\n * @param folderId Containing folder node identifier for 'personal-files' and 'libraries' sources.\n */\n async getFileIds(source: string, folderId?: string): Promise<string[]> {\n if ((source === 'personal-files' || source === 'libraries') && folderId) {\n const sortKey = this.preferences.get('personal-files.sorting.key') || 'modifiedAt';\n const sortDirection = this.preferences.get('personal-files.sorting.direction') || 'desc';\n const nodes = await this.contentApi\n .getNodeChildren(folderId, {\n // orderBy: `${sortKey} ${sortDirection}`,\n fields: ['id', this.getRootField(sortKey)],\n where: '(isFile=true)'\n })\n .toPromise();\n\n const entries = nodes.list.entries.map((obj) => obj.entry);\n this.sort(entries, sortKey, sortDirection);\n\n return entries.map((obj) => obj.id);\n }\n\n if (source === 'favorites') {\n const nodes = await this.contentApi\n .getFavorites('-me-', {\n where: '(EXISTS(target/file))',\n fields: ['target']\n })\n .toPromise();\n\n const sortKey = this.preferences.get('favorites.sorting.key') || 'modifiedAt';\n const sortDirection = this.preferences.get('favorites.sorting.direction') || 'desc';\n const files = nodes.list.entries.map((obj) => obj.entry.target.file);\n this.sort(files, sortKey, sortDirection);\n\n return files.map((f) => f.id);\n }\n\n if (source === 'shared') {\n const sortingKey = this.preferences.get('shared.sorting.key') || 'modifiedAt';\n const sortingDirection = this.preferences.get('shared.sorting.direction') || 'desc';\n\n const nodes = await this.contentApi\n .findSharedLinks({\n fields: ['nodeId', this.getRootField(sortingKey)]\n })\n .toPromise();\n\n const entries = nodes.list.entries.map((obj) => obj.entry);\n this.sort(entries, sortingKey, sortingDirection);\n\n return entries.map((obj) => obj.nodeId);\n }\n\n if (source === 'recent-files') {\n const person = await this.contentApi.getPerson('-me-').toPromise();\n const username = person.entry.id;\n const sortingKey = this.preferences.get('recent-files.sorting.key') || 'modifiedAt';\n const sortingDirection = this.preferences.get('recent-files.sorting.direction') || 'desc';\n\n const query: SearchRequest = {\n query: {\n query: '*',\n language: 'afts'\n },\n filterQueries: [\n { query: `cm:modified:[NOW/DAY-30DAYS TO NOW/DAY+1DAY]` },\n { query: `cm:modifier:${username} OR cm:creator:${username}` },\n {\n query: this.recentFileFilters.join(' AND ')\n }\n ],\n fields: ['id', this.getRootField(sortingKey)],\n include: ['path', 'properties', 'allowableOperations'],\n sort: [\n {\n type: 'FIELD',\n field: 'cm:modified',\n ascending: false\n }\n ]\n };\n const nodes = await this.contentApi.search(query).toPromise();\n\n const entries = nodes.list.entries.map((obj) => obj.entry);\n this.sort(entries, sortingKey, sortingDirection);\n\n return entries.map((obj) => obj.id);\n }\n\n return [];\n }\n\n private sort(items: any[], key: string, direction: string) {\n const options: Intl.CollatorOptions = {};\n\n if (key.includes('sizeInBytes') || key === 'name') {\n options.numeric = true;\n }\n\n items.sort((a: any, b: any) => {\n let left = ObjectUtils.getValue(a, key) ?? '';\n left = left instanceof Date ? left.valueOf().toString() : left.toString();\n\n let right = ObjectUtils.getValue(b, key) ?? '';\n right = right instanceof Date ? right.valueOf().toString() : right.toString();\n\n return direction === 'asc' ? left.localeCompare(right, undefined, options) : right.localeCompare(left, undefined, options);\n });\n }\n\n /**\n * Get the root field name from the property path.\n * Example: 'property1.some.child.property' => 'property1'\n *\n * @param path Property path\n */\n getRootField(path: string) {\n if (path) {\n return path.split('.')[0];\n }\n return path;\n }\n\n private getNavigationCommands(url: string): any[] {\n const urlTree: UrlTree = this.router.parseUrl(url);\n const urlSegmentGroup: UrlSegmentGroup = urlTree.root.children[PRIMARY_OUTLET];\n\n if (!urlSegmentGroup) {\n return [url];\n }\n\n const urlSegments: UrlSegment[] = urlSegmentGroup.segments;\n\n return urlSegments.reduce(function (acc, item) {\n acc.push(item.path, item.parameters);\n return acc;\n }, []);\n }\n\n private shouldNavigate(element: HTMLElement): boolean {\n let currentElement = element.parentElement;\n\n while (currentElement && !this.isChild(currentElement.classList)) {\n currentElement = currentElement.parentElement;\n }\n\n return !!currentElement;\n }\n\n private isChild(list: DOMTokenList): boolean {\n return Array.from(list).some((className: string) => this.containersSkipNavigation.includes(className));\n }\n}\n","<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","/*!\n * Copyright © 2005-2023 Hyland Software, Inc. and its affiliates. All rights reserved.\n *\n * Alfresco Example Content Application\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 * from Hyland Software. If not, see <http://www.gnu.org/licenses/>.\n */\n\nimport { NgModule } from '@angular/core';\nimport { PreviewComponent } from './components/preview.component';\n\n@NgModule({\n imports: [PreviewComponent],\n exports: [PreviewComponent]\n})\nexport class PreviewModule {}\n","/*!\n * Copyright © 2005-2023 Hyland Software, Inc. and its affiliates. All rights reserved.\n *\n * Alfresco Example Content Application\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 * from Hyland Software. If not, see <http://www.gnu.org/licenses/>.\n */\n\n/*\n * Public API Surface of aca-preview\n */\n\nexport * from './lib/components/preview.component';\nexport * from './lib/preview.module';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;AAqDM,MAAO,gBAAiB,SAAQ,aAAa,CAAA;AA0CjD,IAAA,WAAA,CACU,UAA6B,EAC7B,WAAmC,EACnC,KAAqB,EACrB,eAAgC,EAChC,QAAiB,EACjB,QAAkB,EAClB,cAA8B,EAAA;AAEtC,QAAA,KAAK,EAAE,CAAC;AARA,QAAA,IAAU,CAAA,UAAA,GAAV,UAAU,CAAmB;AAC7B,QAAA,IAAW,CAAA,WAAA,GAAX,WAAW,CAAwB;AACnC,QAAA,IAAK,CAAA,KAAA,GAAL,KAAK,CAAgB;AACrB,QAAA,IAAe,CAAA,eAAA,GAAf,eAAe,CAAiB;AAChC,QAAA,IAAQ,CAAA,QAAA,GAAR,QAAQ,CAAS;AACjB,QAAA,IAAQ,CAAA,QAAA,GAAR,QAAQ,CAAU;AAClB,QAAA,IAAc,CAAA,cAAA,GAAd,cAAc,CAAgB;AAhDxC,QAAA,IAAe,CAAA,eAAA,GAAW,IAAI,CAAC;QAC/B,IAAoB,CAAA,oBAAA,GA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