@alfresco/aca-content 5.1.1 → 6.0.0-11114941325

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 (329) hide show
  1. package/esm2022/about/about.component.mjs +70 -0
  2. package/esm2022/about/aca-about.module.mjs +47 -0
  3. package/esm2022/folder-rules/folder-rules.module.mjs +116 -0
  4. package/esm2022/folder-rules/manage-rules/manage-rules.smart-component.mjs +280 -0
  5. package/esm2022/folder-rules/rule-details/actions/rule-action-list.ui-component.mjs +117 -0
  6. package/esm2022/folder-rules/rule-details/actions/rule-action.ui-component.mjs +359 -0
  7. package/esm2022/folder-rules/rule-details/conditions/rule-composite-condition.ui-component.mjs +171 -0
  8. package/esm2022/folder-rules/rule-details/conditions/rule-simple-condition.ui-component.mjs +237 -0
  9. package/esm2022/folder-rules/rule-details/edit-rule-dialog.ui-component.mjs +80 -0
  10. package/esm2022/folder-rules/rule-details/options/rule-options.ui-component.mjs +129 -0
  11. package/esm2022/folder-rules/rule-details/rule-details.ui-component.mjs +192 -0
  12. package/esm2022/folder-rules/rule-details/triggers/rule-triggers.ui-component.mjs +87 -0
  13. package/esm2022/folder-rules/rule-list/rule-list/rule-list.ui-component.mjs +166 -0
  14. package/esm2022/folder-rules/rule-list/rule-list-grouping/rule-list-grouping.ui-component.mjs +80 -0
  15. package/esm2022/folder-rules/rule-list/rule-list-item/rule-list-item.ui-component.mjs +59 -0
  16. package/esm2022/folder-rules/rule-set-picker/rule-set-picker.smart-component.mjs +125 -0
  17. package/esm2022/folder-rules/services/actions.service.mjs +117 -0
  18. package/esm2022/folder-rules/services/folder-rule-sets.service.mjs +229 -0
  19. package/esm2022/folder-rules/services/folder-rules.service.mjs +195 -0
  20. package/esm2022/lib/aca-content.module.mjs +301 -0
  21. package/esm2022/lib/components/bulk-actions-dropdown/bulk-actions-dropdown.component.mjs +82 -0
  22. package/{esm2020 → esm2022}/lib/components/common/language-picker/language-picker.component.mjs +7 -6
  23. package/esm2022/lib/components/common/location-link/location-link.component.mjs +182 -0
  24. package/{esm2020 → esm2022}/lib/components/common/logout/logout.component.mjs +8 -6
  25. package/esm2022/lib/components/common/toggle-shared/toggle-shared.component.mjs +81 -0
  26. package/esm2022/lib/components/common/user-info/user-info.component.mjs +46 -0
  27. package/esm2022/lib/components/context-menu/context-menu-item.component.mjs +65 -0
  28. package/esm2022/lib/components/context-menu/context-menu-outside-event.directive.mjs +62 -0
  29. package/esm2022/lib/components/context-menu/context-menu-overlay.mjs +33 -0
  30. package/esm2022/lib/components/context-menu/context-menu.component.mjs +119 -0
  31. package/esm2022/lib/components/context-menu/context-menu.service.mjs +104 -0
  32. package/esm2022/lib/components/details/details.component.mjs +154 -0
  33. package/esm2022/lib/components/dl-custom-components/datatable-cell-badges/datatable-cell-badges.component.mjs +75 -0
  34. package/esm2022/lib/components/dl-custom-components/name-column/name-column.component.mjs +107 -0
  35. package/esm2022/lib/components/dl-custom-components/tags-column/tags-column.component.mjs +52 -0
  36. package/esm2022/lib/components/dl-custom-components/thumbnail-column/thumbnail-column.component.mjs +77 -0
  37. package/esm2022/lib/components/favorite-libraries/favorite-libraries.component.mjs +126 -0
  38. package/esm2022/lib/components/favorites/favorites.component.mjs +105 -0
  39. package/esm2022/lib/components/files/files.component.mjs +336 -0
  40. package/esm2022/lib/components/home/home.component.mjs +46 -0
  41. package/esm2022/lib/components/info-drawer/comments-tab/comments-tab.component.mjs +62 -0
  42. package/esm2022/lib/components/info-drawer/info.drawer.module.mjs +74 -0
  43. package/esm2022/lib/components/info-drawer/library-metadata-tab/library-metadata-form.component.mjs +213 -0
  44. package/esm2022/lib/components/info-drawer/library-metadata-tab/library-metadata-tab.component.mjs +47 -0
  45. package/esm2022/lib/components/info-drawer/metadata-tab/metadata-tab.component.mjs +147 -0
  46. package/esm2022/lib/components/info-drawer/versions-tab/versions-tab.component.mjs +95 -0
  47. package/esm2022/lib/components/knowledge-retrieval/search-ai/agents-button/agents-button.component.mjs +139 -0
  48. package/esm2022/lib/components/knowledge-retrieval/search-ai/search-ai-input/search-ai-input.component.mjs +183 -0
  49. package/esm2022/lib/components/knowledge-retrieval/search-ai/search-ai-input-container/search-ai-input-container.component.mjs +88 -0
  50. package/esm2022/lib/components/knowledge-retrieval/search-ai/search-ai-results/search-ai-results.component.mjs +212 -0
  51. package/esm2022/lib/components/libraries/libraries.component.mjs +81 -0
  52. package/esm2022/lib/components/recent-files/recent-files.component.mjs +80 -0
  53. package/esm2022/lib/components/search/search-action-menu/search-action-menu.component.mjs +66 -0
  54. package/esm2022/lib/components/search/search-input/search-input.component.mjs +299 -0
  55. package/esm2022/lib/components/search/search-input-control/search-input-control.component.mjs +94 -0
  56. package/esm2022/lib/components/search/search-libraries-results/search-libraries-query-builder.service.mjs +93 -0
  57. package/esm2022/lib/components/search/search-libraries-results/search-libraries-results.component.mjs +160 -0
  58. package/esm2022/lib/components/search/search-navigation.service.mjs +62 -0
  59. package/esm2022/lib/components/search/search-results/search-results.component.mjs +262 -0
  60. package/esm2022/lib/components/search/search-results-row/search-results-row.component.mjs +149 -0
  61. package/esm2022/lib/components/shared-files/shared-files.component.mjs +85 -0
  62. package/esm2022/lib/components/shared-link-view/shared-link-view.component.mjs +89 -0
  63. package/esm2022/lib/components/sidenav/components/button-menu.component.mjs +66 -0
  64. package/esm2022/lib/components/sidenav/components/expand-menu.component.mjs +70 -0
  65. package/esm2022/lib/components/sidenav/components/sidenav-header.component.mjs +65 -0
  66. package/esm2022/lib/components/sidenav/directives/action.directive.mjs +79 -0
  67. package/esm2022/lib/components/sidenav/directives/active-link.directive.mjs +100 -0
  68. package/esm2022/lib/components/sidenav/directives/expansion-panel.directive.mjs +107 -0
  69. package/esm2022/lib/components/sidenav/directives/menu-panel.directive.mjs +103 -0
  70. package/esm2022/lib/components/sidenav/sidenav.component.mjs +93 -0
  71. package/esm2022/lib/components/sidenav/user-menu/user-menu.component.mjs +57 -0
  72. package/esm2022/lib/components/toolbar/toggle-edit-offline/toggle-edit-offline.component.mjs +143 -0
  73. package/esm2022/lib/components/toolbar/toggle-favorite/toggle-favorite.component.mjs +91 -0
  74. package/esm2022/lib/components/toolbar/toggle-favorite-library/toggle-favorite-library.component.mjs +112 -0
  75. package/esm2022/lib/components/toolbar/toggle-info-drawer/toggle-info-drawer.component.mjs +77 -0
  76. package/esm2022/lib/components/toolbar/toggle-join-library/toggle-join-library-button.component.mjs +107 -0
  77. package/{esm2020 → esm2022}/lib/components/toolbar/toggle-join-library/toggle-join-library-menu.component.mjs +7 -6
  78. package/esm2022/lib/components/toolbar/view-node/view-node.component.mjs +128 -0
  79. package/esm2022/lib/components/trashcan/trashcan.component.mjs +66 -0
  80. package/esm2022/lib/components/upload-files-dialog/upload-files-dialog.component.mjs +55 -0
  81. package/esm2022/lib/components/view-profile/view-profile.component.mjs +200 -0
  82. package/esm2022/lib/dialogs/node-template/create-from-template.dialog.mjs +127 -0
  83. package/esm2022/lib/directives/document-list.directive.mjs +207 -0
  84. package/esm2022/lib/extensions/core.extensions.module.mjs +56 -0
  85. package/esm2022/lib/services/content-management.service.mjs +887 -0
  86. package/esm2022/lib/services/content-url.service.mjs +74 -0
  87. package/esm2022/lib/services/modal-ai.service.mjs +65 -0
  88. package/esm2022/lib/services/node-actions.service.mjs +609 -0
  89. package/esm2022/lib/services/node-template.service.mjs +145 -0
  90. package/esm2022/lib/services/search-ai-navigation.service.mjs +54 -0
  91. package/esm2022/lib/store/app-store.module.mjs +103 -0
  92. package/esm2022/lib/store/effects/app.effects.mjs +46 -0
  93. package/esm2022/lib/store/effects/contextmenu.effects.mjs +52 -0
  94. package/esm2022/lib/store/effects/download.effects.mjs +153 -0
  95. package/esm2022/lib/store/effects/favorite.effects.mjs +72 -0
  96. package/esm2022/lib/store/effects/library.effects.mjs +108 -0
  97. package/esm2022/lib/store/effects/node.effects.mjs +318 -0
  98. package/esm2022/lib/store/effects/search-ai.effects.mjs +53 -0
  99. package/esm2022/lib/store/effects/search.effects.mjs +56 -0
  100. package/esm2022/lib/store/effects/template.effects.mjs +116 -0
  101. package/esm2022/lib/store/effects/upload.effects.mjs +166 -0
  102. package/esm2022/lib/store/effects/viewer.effects.mjs +169 -0
  103. package/esm2022/ms-office/actions/aos.actions.mjs +32 -0
  104. package/esm2022/ms-office/aos-extension.module.mjs +53 -0
  105. package/esm2022/ms-office/aos-extension.service.mjs +136 -0
  106. package/esm2022/ms-office/effects/aos.effects.mjs +45 -0
  107. package/esm2022/viewer/lib/components/preview/preview.component.mjs +246 -0
  108. package/esm2022/viewer/lib/components/viewer/viewer.component.mjs +261 -0
  109. package/esm2022/viewer/lib/services/viewer.service.mjs +229 -0
  110. package/esm2022/viewer/lib/viewer.module.mjs +53 -0
  111. package/{fesm2015 → fesm2022}/alfresco-aca-content-about.mjs +16 -18
  112. package/{fesm2015 → fesm2022}/alfresco-aca-content-about.mjs.map +1 -1
  113. package/{fesm2020 → fesm2022}/alfresco-aca-content-folder-rules.mjs +353 -312
  114. package/fesm2022/alfresco-aca-content-folder-rules.mjs.map +1 -0
  115. package/{fesm2020 → fesm2022}/alfresco-aca-content-ms-office.mjs +28 -26
  116. package/fesm2022/alfresco-aca-content-ms-office.mjs.map +1 -0
  117. package/{fesm2020 → fesm2022}/alfresco-aca-content-viewer.mjs +93 -62
  118. package/{fesm2020 → fesm2022}/alfresco-aca-content-viewer.mjs.map +1 -1
  119. package/{fesm2020 → fesm2022}/alfresco-aca-content.mjs +1497 -1302
  120. package/fesm2022/alfresco-aca-content.mjs.map +1 -0
  121. package/folder-rules/rule-details/actions/rule-action-list.ui-component.d.ts +1 -1
  122. package/folder-rules/rule-details/actions/rule-action.ui-component.d.ts +1 -1
  123. package/folder-rules/rule-details/conditions/rule-composite-condition.ui-component.d.ts +1 -1
  124. package/folder-rules/rule-details/conditions/rule-simple-condition.ui-component.d.ts +1 -1
  125. package/folder-rules/rule-details/options/rule-options.ui-component.d.ts +1 -1
  126. package/folder-rules/rule-details/rule-details.ui-component.d.ts +1 -1
  127. package/folder-rules/rule-list/rule-list/rule-list.ui-component.d.ts +1 -1
  128. package/folder-rules/rule-list/rule-list-grouping/rule-list-grouping.ui-component.d.ts +1 -1
  129. package/folder-rules/rule-list/rule-list-item/rule-list-item.ui-component.d.ts +1 -1
  130. package/lib/components/bulk-actions-dropdown/bulk-actions-dropdown.component.d.ts +5 -10
  131. package/lib/components/common/location-link/location-link.component.d.ts +1 -1
  132. package/lib/components/common/toggle-shared/toggle-shared.component.d.ts +1 -1
  133. package/lib/components/context-menu/context-menu-item.component.d.ts +1 -1
  134. package/lib/components/context-menu/context-menu-outside-event.directive.d.ts +1 -1
  135. package/lib/components/details/details.component.d.ts +1 -1
  136. package/lib/components/dl-custom-components/datatable-cell-badges/datatable-cell-badges.component.d.ts +1 -1
  137. package/lib/components/dl-custom-components/tags-column/tags-column.component.d.ts +1 -1
  138. package/lib/components/dl-custom-components/thumbnail-column/thumbnail-column.component.d.ts +1 -1
  139. package/lib/components/info-drawer/comments-tab/comments-tab.component.d.ts +1 -1
  140. package/lib/components/info-drawer/library-metadata-tab/library-metadata-form.component.d.ts +1 -1
  141. package/lib/components/info-drawer/library-metadata-tab/library-metadata-tab.component.d.ts +1 -1
  142. package/lib/components/info-drawer/metadata-tab/metadata-tab.component.d.ts +1 -1
  143. package/lib/components/info-drawer/versions-tab/versions-tab.component.d.ts +1 -1
  144. package/lib/components/knowledge-retrieval/search-ai/agents-button/agents-button.component.d.ts +1 -1
  145. package/lib/components/knowledge-retrieval/search-ai/search-ai-input/search-ai-input.component.d.ts +1 -1
  146. package/lib/components/knowledge-retrieval/search-ai/search-ai-input-container/search-ai-input-container.component.d.ts +1 -1
  147. package/lib/components/search/search-input/search-input.component.d.ts +10 -39
  148. package/lib/components/search/search-input-control/search-input-control.component.d.ts +1 -1
  149. package/lib/components/search/search-results-row/search-results-row.component.d.ts +1 -1
  150. package/lib/components/sidenav/components/button-menu.component.d.ts +1 -1
  151. package/lib/components/sidenav/components/expand-menu.component.d.ts +1 -1
  152. package/lib/components/sidenav/directives/action.directive.d.ts +1 -1
  153. package/lib/components/sidenav/directives/active-link.directive.d.ts +1 -1
  154. package/lib/components/sidenav/directives/expansion-panel.directive.d.ts +1 -1
  155. package/lib/components/sidenav/directives/menu-panel.directive.d.ts +1 -1
  156. package/lib/components/sidenav/sidenav.component.d.ts +1 -1
  157. package/lib/components/sidenav/user-menu/user-menu.component.d.ts +1 -1
  158. package/lib/components/toolbar/toggle-favorite/toggle-favorite.component.d.ts +1 -1
  159. package/lib/components/toolbar/view-node/view-node.component.d.ts +1 -1
  160. package/lib/store/effects/app.effects.d.ts +2 -3
  161. package/lib/store/effects/contextmenu.effects.d.ts +2 -3
  162. package/lib/store/effects/download.effects.d.ts +0 -30
  163. package/lib/store/effects/favorite.effects.d.ts +0 -28
  164. package/lib/store/effects/library.effects.d.ts +2 -7
  165. package/lib/store/effects/node.effects.d.ts +7 -38
  166. package/lib/store/effects/search-ai.effects.d.ts +0 -4
  167. package/lib/store/effects/search.effects.d.ts +0 -27
  168. package/lib/store/effects/template.effects.d.ts +5 -7
  169. package/lib/store/effects/upload.effects.d.ts +8 -32
  170. package/lib/store/effects/viewer.effects.d.ts +0 -29
  171. package/ms-office/effects/aos.effects.d.ts +0 -3
  172. package/package.json +21 -35
  173. package/ui/theme.scss +9 -4
  174. package/esm2020/about/about.component.mjs +0 -71
  175. package/esm2020/about/aca-about.module.mjs +0 -46
  176. package/esm2020/folder-rules/folder-rules.module.mjs +0 -115
  177. package/esm2020/folder-rules/manage-rules/manage-rules.smart-component.mjs +0 -261
  178. package/esm2020/folder-rules/rule-details/actions/rule-action-list.ui-component.mjs +0 -117
  179. package/esm2020/folder-rules/rule-details/actions/rule-action.ui-component.mjs +0 -351
  180. package/esm2020/folder-rules/rule-details/conditions/rule-composite-condition.ui-component.mjs +0 -172
  181. package/esm2020/folder-rules/rule-details/conditions/rule-simple-condition.ui-component.mjs +0 -234
  182. package/esm2020/folder-rules/rule-details/edit-rule-dialog.ui-component.mjs +0 -74
  183. package/esm2020/folder-rules/rule-details/options/rule-options.ui-component.mjs +0 -129
  184. package/esm2020/folder-rules/rule-details/rule-details.ui-component.mjs +0 -185
  185. package/esm2020/folder-rules/rule-details/triggers/rule-triggers.ui-component.mjs +0 -88
  186. package/esm2020/folder-rules/rule-list/rule-list/rule-list.ui-component.mjs +0 -164
  187. package/esm2020/folder-rules/rule-list/rule-list-grouping/rule-list-grouping.ui-component.mjs +0 -81
  188. package/esm2020/folder-rules/rule-list/rule-list-item/rule-list-item.ui-component.mjs +0 -58
  189. package/esm2020/folder-rules/rule-set-picker/rule-set-picker.smart-component.mjs +0 -120
  190. package/esm2020/folder-rules/services/actions.service.mjs +0 -114
  191. package/esm2020/folder-rules/services/folder-rule-sets.service.mjs +0 -225
  192. package/esm2020/folder-rules/services/folder-rules.service.mjs +0 -193
  193. package/esm2020/lib/aca-content.module.mjs +0 -299
  194. package/esm2020/lib/components/bulk-actions-dropdown/bulk-actions-dropdown.component.mjs +0 -83
  195. package/esm2020/lib/components/common/location-link/location-link.component.mjs +0 -180
  196. package/esm2020/lib/components/common/toggle-shared/toggle-shared.component.mjs +0 -76
  197. package/esm2020/lib/components/common/user-info/user-info.component.mjs +0 -47
  198. package/esm2020/lib/components/context-menu/context-menu-item.component.mjs +0 -62
  199. package/esm2020/lib/components/context-menu/context-menu-outside-event.directive.mjs +0 -63
  200. package/esm2020/lib/components/context-menu/context-menu-overlay.mjs +0 -32
  201. package/esm2020/lib/components/context-menu/context-menu.component.mjs +0 -114
  202. package/esm2020/lib/components/context-menu/context-menu.service.mjs +0 -99
  203. package/esm2020/lib/components/details/details.component.mjs +0 -147
  204. package/esm2020/lib/components/dl-custom-components/datatable-cell-badges/datatable-cell-badges.component.mjs +0 -71
  205. package/esm2020/lib/components/dl-custom-components/name-column/name-column.component.mjs +0 -101
  206. package/esm2020/lib/components/dl-custom-components/tags-column/tags-column.component.mjs +0 -48
  207. package/esm2020/lib/components/dl-custom-components/thumbnail-column/thumbnail-column.component.mjs +0 -75
  208. package/esm2020/lib/components/favorite-libraries/favorite-libraries.component.mjs +0 -120
  209. package/esm2020/lib/components/favorites/favorites.component.mjs +0 -103
  210. package/esm2020/lib/components/files/files.component.mjs +0 -330
  211. package/esm2020/lib/components/home/home.component.mjs +0 -47
  212. package/esm2020/lib/components/info-drawer/comments-tab/comments-tab.component.mjs +0 -59
  213. package/esm2020/lib/components/info-drawer/info.drawer.module.mjs +0 -73
  214. package/esm2020/lib/components/info-drawer/library-metadata-tab/library-metadata-form.component.mjs +0 -206
  215. package/esm2020/lib/components/info-drawer/library-metadata-tab/library-metadata-tab.component.mjs +0 -45
  216. package/esm2020/lib/components/info-drawer/metadata-tab/metadata-tab.component.mjs +0 -134
  217. package/esm2020/lib/components/info-drawer/versions-tab/versions-tab.component.mjs +0 -95
  218. package/esm2020/lib/components/knowledge-retrieval/search-ai/agents-button/agents-button.component.mjs +0 -129
  219. package/esm2020/lib/components/knowledge-retrieval/search-ai/search-ai-input/search-ai-input.component.mjs +0 -171
  220. package/esm2020/lib/components/knowledge-retrieval/search-ai/search-ai-input-container/search-ai-input-container.component.mjs +0 -82
  221. package/esm2020/lib/components/knowledge-retrieval/search-ai/search-ai-results/search-ai-results.component.mjs +0 -199
  222. package/esm2020/lib/components/libraries/libraries.component.mjs +0 -79
  223. package/esm2020/lib/components/recent-files/recent-files.component.mjs +0 -82
  224. package/esm2020/lib/components/search/search-action-menu/search-action-menu.component.mjs +0 -64
  225. package/esm2020/lib/components/search/search-input/search-input.component.mjs +0 -301
  226. package/esm2020/lib/components/search/search-input-control/search-input-control.component.mjs +0 -94
  227. package/esm2020/lib/components/search/search-libraries-results/search-libraries-query-builder.service.mjs +0 -90
  228. package/esm2020/lib/components/search/search-libraries-results/search-libraries-results.component.mjs +0 -153
  229. package/esm2020/lib/components/search/search-navigation.service.mjs +0 -60
  230. package/esm2020/lib/components/search/search-results/search-results.component.mjs +0 -255
  231. package/esm2020/lib/components/search/search-results-row/search-results-row.component.mjs +0 -142
  232. package/esm2020/lib/components/shared-files/shared-files.component.mjs +0 -83
  233. package/esm2020/lib/components/shared-link-view/shared-link-view.component.mjs +0 -82
  234. package/esm2020/lib/components/sidenav/components/button-menu.component.mjs +0 -62
  235. package/esm2020/lib/components/sidenav/components/expand-menu.component.mjs +0 -67
  236. package/esm2020/lib/components/sidenav/components/sidenav-header.component.mjs +0 -66
  237. package/esm2020/lib/components/sidenav/directives/action.directive.mjs +0 -75
  238. package/esm2020/lib/components/sidenav/directives/active-link.directive.mjs +0 -93
  239. package/esm2020/lib/components/sidenav/directives/expansion-panel.directive.mjs +0 -102
  240. package/esm2020/lib/components/sidenav/directives/menu-panel.directive.mjs +0 -99
  241. package/esm2020/lib/components/sidenav/sidenav.component.mjs +0 -89
  242. package/esm2020/lib/components/sidenav/user-menu/user-menu.component.mjs +0 -56
  243. package/esm2020/lib/components/toolbar/toggle-edit-offline/toggle-edit-offline.component.mjs +0 -137
  244. package/esm2020/lib/components/toolbar/toggle-favorite/toggle-favorite.component.mjs +0 -86
  245. package/esm2020/lib/components/toolbar/toggle-favorite-library/toggle-favorite-library.component.mjs +0 -107
  246. package/esm2020/lib/components/toolbar/toggle-info-drawer/toggle-info-drawer.component.mjs +0 -74
  247. package/esm2020/lib/components/toolbar/toggle-join-library/toggle-join-library-button.component.mjs +0 -105
  248. package/esm2020/lib/components/toolbar/view-node/view-node.component.mjs +0 -122
  249. package/esm2020/lib/components/trashcan/trashcan.component.mjs +0 -68
  250. package/esm2020/lib/components/upload-files-dialog/upload-files-dialog.component.mjs +0 -52
  251. package/esm2020/lib/components/view-profile/view-profile.component.mjs +0 -193
  252. package/esm2020/lib/dialogs/node-template/create-from-template.dialog.mjs +0 -120
  253. package/esm2020/lib/directives/document-list.directive.mjs +0 -199
  254. package/esm2020/lib/extensions/core.extensions.module.mjs +0 -55
  255. package/esm2020/lib/services/content-management.service.mjs +0 -873
  256. package/esm2020/lib/services/content-url.service.mjs +0 -71
  257. package/esm2020/lib/services/modal-ai.service.mjs +0 -66
  258. package/esm2020/lib/services/node-actions.service.mjs +0 -600
  259. package/esm2020/lib/services/node-template.service.mjs +0 -144
  260. package/esm2020/lib/services/search-ai-navigation.service.mjs +0 -52
  261. package/esm2020/lib/store/app-store.module.mjs +0 -102
  262. package/esm2020/lib/store/effects/app.effects.mjs +0 -49
  263. package/esm2020/lib/store/effects/contextmenu.effects.mjs +0 -55
  264. package/esm2020/lib/store/effects/download.effects.mjs +0 -159
  265. package/esm2020/lib/store/effects/favorite.effects.mjs +0 -76
  266. package/esm2020/lib/store/effects/library.effects.mjs +0 -113
  267. package/esm2020/lib/store/effects/node.effects.mjs +0 -325
  268. package/esm2020/lib/store/effects/search-ai.effects.mjs +0 -57
  269. package/esm2020/lib/store/effects/search.effects.mjs +0 -60
  270. package/esm2020/lib/store/effects/template.effects.mjs +0 -121
  271. package/esm2020/lib/store/effects/upload.effects.mjs +0 -166
  272. package/esm2020/lib/store/effects/viewer.effects.mjs +0 -175
  273. package/esm2020/ms-office/actions/aos.actions.mjs +0 -31
  274. package/esm2020/ms-office/aos-extension.module.mjs +0 -52
  275. package/esm2020/ms-office/aos-extension.service.mjs +0 -132
  276. package/esm2020/ms-office/effects/aos.effects.mjs +0 -48
  277. package/esm2020/viewer/lib/components/preview/preview.component.mjs +0 -236
  278. package/esm2020/viewer/lib/components/viewer/viewer.component.mjs +0 -240
  279. package/esm2020/viewer/lib/services/viewer.service.mjs +0 -226
  280. package/esm2020/viewer/lib/viewer.module.mjs +0 -52
  281. package/fesm2015/alfresco-aca-content-folder-rules.mjs +0 -2662
  282. package/fesm2015/alfresco-aca-content-folder-rules.mjs.map +0 -1
  283. package/fesm2015/alfresco-aca-content-ms-office.mjs +0 -256
  284. package/fesm2015/alfresco-aca-content-ms-office.mjs.map +0 -1
  285. package/fesm2015/alfresco-aca-content-viewer.mjs +0 -700
  286. package/fesm2015/alfresco-aca-content-viewer.mjs.map +0 -1
  287. package/fesm2015/alfresco-aca-content.mjs +0 -9835
  288. package/fesm2015/alfresco-aca-content.mjs.map +0 -1
  289. package/fesm2020/alfresco-aca-content-about.mjs +0 -193
  290. package/fesm2020/alfresco-aca-content-about.mjs.map +0 -1
  291. package/fesm2020/alfresco-aca-content-folder-rules.mjs.map +0 -1
  292. package/fesm2020/alfresco-aca-content-ms-office.mjs.map +0 -1
  293. package/fesm2020/alfresco-aca-content.mjs.map +0 -1
  294. /package/{esm2020 → esm2022}/about/alfresco-aca-content-about.mjs +0 -0
  295. /package/{esm2020 → esm2022}/about/dev-mode.tokens.mjs +0 -0
  296. /package/{esm2020 → esm2022}/about/package-json.token.mjs +0 -0
  297. /package/{esm2020 → esm2022}/about/public-api.mjs +0 -0
  298. /package/{esm2020 → esm2022}/alfresco-aca-content.mjs +0 -0
  299. /package/{esm2020 → esm2022}/folder-rules/alfresco-aca-content-folder-rules.mjs +0 -0
  300. /package/{esm2020 → esm2022}/folder-rules/folder-rules.rules.mjs +0 -0
  301. /package/{esm2020 → esm2022}/folder-rules/model/action-parameter-constraint.model.mjs +0 -0
  302. /package/{esm2020 → esm2022}/folder-rules/model/rule-action.model.mjs +0 -0
  303. /package/{esm2020 → esm2022}/folder-rules/model/rule-composite-condition.model.mjs +0 -0
  304. /package/{esm2020 → esm2022}/folder-rules/model/rule-grouping-item.model.mjs +0 -0
  305. /package/{esm2020 → esm2022}/folder-rules/model/rule-set.model.mjs +0 -0
  306. /package/{esm2020 → esm2022}/folder-rules/model/rule-simple-condition.model.mjs +0 -0
  307. /package/{esm2020 → esm2022}/folder-rules/model/rule.model.mjs +0 -0
  308. /package/{esm2020 → esm2022}/folder-rules/public-api.mjs +0 -0
  309. /package/{esm2020 → esm2022}/folder-rules/rule-details/conditions/rule-condition-comparators.mjs +0 -0
  310. /package/{esm2020 → esm2022}/folder-rules/rule-details/conditions/rule-condition-fields.mjs +0 -0
  311. /package/{esm2020 → esm2022}/folder-rules/rule-details/validators/rule-actions.validator.mjs +0 -0
  312. /package/{esm2020 → esm2022}/folder-rules/rule-details/validators/rule-composite-condition.validator.mjs +0 -0
  313. /package/{esm2020 → esm2022}/lib/aca-content.routes.mjs +0 -0
  314. /package/{esm2020 → esm2022}/lib/components/common/index.mjs +0 -0
  315. /package/{esm2020 → esm2022}/lib/components/context-menu/direction.token.mjs +0 -0
  316. /package/{esm2020 → esm2022}/lib/components/context-menu/interfaces.mjs +0 -0
  317. /package/{esm2020 → esm2022}/lib/components/knowledge-retrieval/search-ai/search-ai-utils.mjs +0 -0
  318. /package/{esm2020 → esm2022}/lib/components/search/index.mjs +0 -0
  319. /package/{esm2020 → esm2022}/lib/components/sidenav/index.mjs +0 -0
  320. /package/{esm2020 → esm2022}/lib/components/toolbar/index.mjs +0 -0
  321. /package/{esm2020 → esm2022}/lib/components/view-profile/view-profile.guard.mjs +0 -0
  322. /package/{esm2020 → esm2022}/lib/store/effects.mjs +0 -0
  323. /package/{esm2020 → esm2022}/lib/store/initial-state.mjs +0 -0
  324. /package/{esm2020 → esm2022}/lib/store/reducers/app.reducer.mjs +0 -0
  325. /package/{esm2020 → esm2022}/ms-office/alfresco-aca-content-ms-office.mjs +0 -0
  326. /package/{esm2020 → esm2022}/ms-office/public-api.mjs +0 -0
  327. /package/{esm2020 → esm2022}/public-api.mjs +0 -0
  328. /package/{esm2020 → esm2022}/viewer/alfresco-aca-content-viewer.mjs +0 -0
  329. /package/{esm2020 → esm2022}/viewer/public-api.mjs +0 -0
@@ -1,256 +0,0 @@
1
- import * as i0 from '@angular/core';
2
- import { Injectable, NgModule } from '@angular/core';
3
- import { supportedExtensions, getFileExtension, canOpenWithOffice } from '@alfresco/aca-shared/rules';
4
- import * as i1 from '@alfresco/adf-core';
5
- import * as i2 from '@alfresco/aca-shared';
6
- import * as i1$1 from '@ngrx/effects';
7
- import { createEffect, ofType, EffectsModule } from '@ngrx/effects';
8
- import { map } from 'rxjs/operators';
9
- import * as i1$2 from '@alfresco/adf-extensions';
10
- import { provideExtensionConfig } from '@alfresco/adf-extensions';
11
-
12
- class AosEditOnlineService {
13
- constructor(authenticationService, appSettings, notificationService) {
14
- this.authenticationService = authenticationService;
15
- this.appSettings = appSettings;
16
- this.notificationService = notificationService;
17
- }
18
- onActionEditOnlineAos(node) {
19
- if (node && this.isFile(node) && node.properties) {
20
- if (node.isLocked) {
21
- // const checkedOut = node.aspectNames.find(
22
- // (aspect: string) => aspect === 'cm:checkedOut'
23
- // );
24
- const checkedOut = node.properties['cm:lockType'] === 'WRITE_LOCK' || node.properties['cm:lockType'] === 'READ_ONLY_LOCK';
25
- const lockOwner = node.properties['cm:lockOwner'];
26
- const differentLockOwner = lockOwner.id !== this.authenticationService.getEcmUsername();
27
- if (checkedOut && differentLockOwner) {
28
- this.onAlreadyLockedNotification(node.id, lockOwner.id);
29
- }
30
- else {
31
- this.triggerEditOnlineAos(node);
32
- }
33
- }
34
- else {
35
- this.triggerEditOnlineAos(node);
36
- }
37
- }
38
- }
39
- getUserAgent() {
40
- return navigator.userAgent.toLowerCase();
41
- }
42
- isWindows() {
43
- return this.getUserAgent().indexOf('win') !== -1;
44
- }
45
- isMacOs() {
46
- return this.getUserAgent().indexOf('mac') !== -1;
47
- }
48
- onAlreadyLockedNotification(nodeId, lockOwner) {
49
- this.notificationService.showError(`AOS.ERRORS.ALREADY_LOCKED`, null, {
50
- nodeId,
51
- lockOwner
52
- });
53
- }
54
- getProtocolForFileExtension(fileExtension) {
55
- return fileExtension && supportedExtensions[fileExtension];
56
- }
57
- triggerEditOnlineAos(node) {
58
- var _a;
59
- const aosHost = this.appSettings.aosHost;
60
- let url;
61
- const pathElements = (((_a = node.path) === null || _a === void 0 ? void 0 : _a.elements) || []).map((segment) => segment.name);
62
- if (!pathElements.length) {
63
- url = `${aosHost}/Company Home/_aos_nodeid/${this.getNodeId(node)}/${encodeURIComponent(node.name)}`;
64
- }
65
- if (pathElements.length === 1) {
66
- url = `${aosHost}/${encodeURIComponent(node.name)}`;
67
- }
68
- if (pathElements.length > 1) {
69
- const root = pathElements[1];
70
- url = `${aosHost}/${root}/_aos_nodeid/${this.getNodeId(node)}/${encodeURIComponent(node.name)}`;
71
- }
72
- const fileExtension = getFileExtension(node.name);
73
- const protocolHandler = this.getProtocolForFileExtension(fileExtension);
74
- if (protocolHandler === undefined) {
75
- this.notificationService.showError(`AOS.ERRORS.MISSING_PROTOCOL_HANDLER`, null, { nodeName: node.name });
76
- return;
77
- }
78
- if (!this.isWindows() && !this.isMacOs()) {
79
- this.notificationService.showError('AOS.ERRORS.UNSUPPORTED_PLATFORM');
80
- }
81
- else {
82
- this.openByUrl(protocolHandler, url);
83
- }
84
- }
85
- openByUrl(protocolHandler, url) {
86
- const finalUrl = protocolHandler + ':ofe%7Cu%7C' + url;
87
- const iframe = document.createElement('iframe');
88
- iframe.style.display = 'none';
89
- iframe.src = finalUrl;
90
- document.body.appendChild(iframe);
91
- setTimeout(() => {
92
- if (iframe) {
93
- document.body.removeChild(iframe);
94
- }
95
- }, 500);
96
- }
97
- isFile(node) {
98
- const implicitFile = node.nodeId || node.guid;
99
- return !!implicitFile || node.isFile;
100
- }
101
- getNodeId(node) {
102
- return node.nodeId || node.guid || node.id;
103
- }
104
- }
105
- AosEditOnlineService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AosEditOnlineService, deps: [{ token: i1.AuthenticationService }, { token: i2.AppSettingsService }, { token: i1.NotificationService }], target: i0.ɵɵFactoryTarget.Injectable });
106
- AosEditOnlineService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AosEditOnlineService, providedIn: 'root' });
107
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AosEditOnlineService, decorators: [{
108
- type: Injectable,
109
- args: [{
110
- providedIn: 'root'
111
- }]
112
- }], ctorParameters: function () { return [{ type: i1.AuthenticationService }, { type: i2.AppSettingsService }, { type: i1.NotificationService }]; } });
113
-
114
- /*!
115
- * Copyright © 2005-2024 Hyland Software, Inc. and its affiliates. All rights reserved.
116
- *
117
- * Alfresco Example Content Application
118
- *
119
- * This file is part of the Alfresco Example Content Application.
120
- * If the software was purchased under a paid Alfresco license, the terms of
121
- * the paid license agreement will prevail. Otherwise, the software is
122
- * provided under the following open source license terms:
123
- *
124
- * The Alfresco Example Content Application is free software: you can redistribute it and/or modify
125
- * it under the terms of the GNU Lesser General Public License as published by
126
- * the Free Software Foundation, either version 3 of the License, or
127
- * (at your option) any later version.
128
- *
129
- * The Alfresco Example Content Application is distributed in the hope that it will be useful,
130
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
131
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
132
- * GNU Lesser General Public License for more details.
133
- *
134
- * You should have received a copy of the GNU Lesser General Public License
135
- * from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
136
- */
137
- const AOS_ACTION = 'AOS_ACTION';
138
- class AosAction {
139
- constructor(payload) {
140
- this.payload = payload;
141
- this.type = AOS_ACTION;
142
- }
143
- }
144
-
145
- /*!
146
- * Copyright © 2005-2024 Hyland Software, Inc. and its affiliates. All rights reserved.
147
- *
148
- * Alfresco Example Content Application
149
- *
150
- * This file is part of the Alfresco Example Content Application.
151
- * If the software was purchased under a paid Alfresco license, the terms of
152
- * the paid license agreement will prevail. Otherwise, the software is
153
- * provided under the following open source license terms:
154
- *
155
- * The Alfresco Example Content Application is free software: you can redistribute it and/or modify
156
- * it under the terms of the GNU Lesser General Public License as published by
157
- * the Free Software Foundation, either version 3 of the License, or
158
- * (at your option) any later version.
159
- *
160
- * The Alfresco Example Content Application is distributed in the hope that it will be useful,
161
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
162
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
163
- * GNU Lesser General Public License for more details.
164
- *
165
- * You should have received a copy of the GNU Lesser General Public License
166
- * from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
167
- */
168
- class AosEffects {
169
- constructor(actions$, aosEditOnlineService) {
170
- this.actions$ = actions$;
171
- this.aosEditOnlineService = aosEditOnlineService;
172
- this.openOffice$ = createEffect(() => this.actions$.pipe(ofType(AOS_ACTION), map((action) => {
173
- if (action.payload) {
174
- this.aosEditOnlineService.onActionEditOnlineAos(action.payload);
175
- }
176
- })), { dispatch: false });
177
- }
178
- }
179
- AosEffects.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AosEffects, deps: [{ token: i1$1.Actions }, { token: AosEditOnlineService }], target: i0.ɵɵFactoryTarget.Injectable });
180
- AosEffects.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AosEffects });
181
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AosEffects, decorators: [{
182
- type: Injectable
183
- }], ctorParameters: function () { return [{ type: i1$1.Actions }, { type: AosEditOnlineService }]; } });
184
-
185
- /*!
186
- * Copyright © 2005-2024 Hyland Software, Inc. and its affiliates. All rights reserved.
187
- *
188
- * Alfresco Example Content Application
189
- *
190
- * This file is part of the Alfresco Example Content Application.
191
- * If the software was purchased under a paid Alfresco license, the terms of
192
- * the paid license agreement will prevail. Otherwise, the software is
193
- * provided under the following open source license terms:
194
- *
195
- * The Alfresco Example Content Application is free software: you can redistribute it and/or modify
196
- * it under the terms of the GNU Lesser General Public License as published by
197
- * the Free Software Foundation, either version 3 of the License, or
198
- * (at your option) any later version.
199
- *
200
- * The Alfresco Example Content Application is distributed in the hope that it will be useful,
201
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
202
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
203
- * GNU Lesser General Public License for more details.
204
- *
205
- * You should have received a copy of the GNU Lesser General Public License
206
- * from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
207
- */
208
- class AosExtensionModule {
209
- constructor(extensions, translation) {
210
- translation.addTranslationFolder('ms-office', 'assets/ms-office');
211
- extensions.setEvaluators({
212
- 'aos.canOpenWithOffice': canOpenWithOffice
213
- });
214
- }
215
- }
216
- AosExtensionModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AosExtensionModule, deps: [{ token: i1$2.ExtensionService }, { token: i1.TranslationService }], target: i0.ɵɵFactoryTarget.NgModule });
217
- AosExtensionModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: AosExtensionModule, imports: [i1$1.EffectsFeatureModule] });
218
- AosExtensionModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AosExtensionModule, providers: [provideExtensionConfig(['aos.plugin.json'])], imports: [EffectsModule.forFeature([AosEffects])] });
219
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AosExtensionModule, decorators: [{
220
- type: NgModule,
221
- args: [{
222
- imports: [EffectsModule.forFeature([AosEffects])],
223
- providers: [provideExtensionConfig(['aos.plugin.json'])]
224
- }]
225
- }], ctorParameters: function () { return [{ type: i1$2.ExtensionService }, { type: i1.TranslationService }]; } });
226
-
227
- /*!
228
- * Copyright © 2005-2024 Hyland Software, Inc. and its affiliates. All rights reserved.
229
- *
230
- * Alfresco Example Content Application
231
- *
232
- * This file is part of the Alfresco Example Content Application.
233
- * If the software was purchased under a paid Alfresco license, the terms of
234
- * the paid license agreement will prevail. Otherwise, the software is
235
- * provided under the following open source license terms:
236
- *
237
- * The Alfresco Example Content Application is free software: you can redistribute it and/or modify
238
- * it under the terms of the GNU Lesser General Public License as published by
239
- * the Free Software Foundation, either version 3 of the License, or
240
- * (at your option) any later version.
241
- *
242
- * The Alfresco Example Content Application is distributed in the hope that it will be useful,
243
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
244
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
245
- * GNU Lesser General Public License for more details.
246
- *
247
- * You should have received a copy of the GNU Lesser General Public License
248
- * from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
249
- */
250
-
251
- /**
252
- * Generated bundle index. Do not edit.
253
- */
254
-
255
- export { AOS_ACTION, AosAction, AosEditOnlineService, AosEffects, AosExtensionModule };
256
- //# sourceMappingURL=alfresco-aca-content-ms-office.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"alfresco-aca-content-ms-office.mjs","sources":["../../../../projects/aca-content/ms-office/src/aos-extension.service.ts","../../../../projects/aca-content/ms-office/src/actions/aos.actions.ts","../../../../projects/aca-content/ms-office/src/effects/aos.effects.ts","../../../../projects/aca-content/ms-office/src/aos-extension.module.ts","../../../../projects/aca-content/ms-office/src/public-api.ts","../../../../projects/aca-content/ms-office/src/alfresco-aca-content-ms-office.ts"],"sourcesContent":["/*!\n * Copyright © 2005-2024 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/* cspell:disable */\nimport { AuthenticationService, NotificationService } from '@alfresco/adf-core';\nimport { Injectable } from '@angular/core';\nimport { Node } from '@alfresco/js-api';\nimport { getFileExtension, supportedExtensions } from '@alfresco/aca-shared/rules';\nimport { AppSettingsService } from '@alfresco/aca-shared';\n\nexport interface IAosEditOnlineService {\n onActionEditOnlineAos(node: Node): void;\n}\n\n@Injectable({\n providedIn: 'root'\n})\nexport class AosEditOnlineService implements IAosEditOnlineService {\n constructor(\n private authenticationService: AuthenticationService,\n private appSettings: AppSettingsService,\n private notificationService: NotificationService\n ) {}\n\n onActionEditOnlineAos(node: Node): void {\n if (node && this.isFile(node) && node.properties) {\n if (node.isLocked) {\n // const checkedOut = node.aspectNames.find(\n // (aspect: string) => aspect === 'cm:checkedOut'\n // );\n const checkedOut = node.properties['cm:lockType'] === 'WRITE_LOCK' || node.properties['cm:lockType'] === 'READ_ONLY_LOCK';\n const lockOwner = node.properties['cm:lockOwner'];\n const differentLockOwner = lockOwner.id !== this.authenticationService.getEcmUsername();\n\n if (checkedOut && differentLockOwner) {\n this.onAlreadyLockedNotification(node.id, lockOwner.id);\n } else {\n this.triggerEditOnlineAos(node);\n }\n } else {\n this.triggerEditOnlineAos(node);\n }\n }\n }\n\n private getUserAgent(): string {\n return navigator.userAgent.toLowerCase();\n }\n\n private isWindows(): boolean {\n return this.getUserAgent().indexOf('win') !== -1;\n }\n\n private isMacOs(): boolean {\n return this.getUserAgent().indexOf('mac') !== -1;\n }\n\n private onAlreadyLockedNotification(nodeId: string, lockOwner: string) {\n this.notificationService.showError(`AOS.ERRORS.ALREADY_LOCKED`, null, {\n nodeId,\n lockOwner\n });\n }\n\n private getProtocolForFileExtension(fileExtension: string) {\n return fileExtension && supportedExtensions[fileExtension];\n }\n\n private triggerEditOnlineAos(node: Node): void {\n const aosHost = this.appSettings.aosHost;\n let url: string;\n const pathElements = (node.path?.elements || []).map((segment) => segment.name);\n\n if (!pathElements.length) {\n url = `${aosHost}/Company Home/_aos_nodeid/${this.getNodeId(node)}/${encodeURIComponent(node.name)}`;\n }\n\n if (pathElements.length === 1) {\n url = `${aosHost}/${encodeURIComponent(node.name)}`;\n }\n\n if (pathElements.length > 1) {\n const root = pathElements[1];\n url = `${aosHost}/${root}/_aos_nodeid/${this.getNodeId(node)}/${encodeURIComponent(node.name)}`;\n }\n\n const fileExtension = getFileExtension(node.name);\n const protocolHandler = this.getProtocolForFileExtension(fileExtension);\n\n if (protocolHandler === undefined) {\n this.notificationService.showError(`AOS.ERRORS.MISSING_PROTOCOL_HANDLER`, null, { nodeName: node.name });\n return;\n }\n\n if (!this.isWindows() && !this.isMacOs()) {\n this.notificationService.showError('AOS.ERRORS.UNSUPPORTED_PLATFORM');\n } else {\n this.openByUrl(protocolHandler, url);\n }\n }\n\n openByUrl(protocolHandler: string, url: string) {\n const finalUrl = protocolHandler + ':ofe%7Cu%7C' + url;\n\n const iframe = document.createElement('iframe');\n iframe.style.display = 'none';\n iframe.src = finalUrl;\n\n document.body.appendChild(iframe);\n\n setTimeout(() => {\n if (iframe) {\n document.body.removeChild(iframe);\n }\n }, 500);\n }\n\n private isFile(node: Node): boolean {\n const implicitFile = (node as any).nodeId || (node as any).guid;\n\n return !!implicitFile || node.isFile;\n }\n\n private getNodeId(node: Node): string {\n return (node as any).nodeId || (node as any).guid || node.id;\n }\n}\n","/*!\n * Copyright © 2005-2024 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 { Action } from '@ngrx/store';\nimport { Node } from '@alfresco/js-api';\n\nexport const AOS_ACTION = 'AOS_ACTION';\n\nexport class AosAction implements Action {\n readonly type = AOS_ACTION;\n constructor(public payload: Node) {}\n}\n","/*!\n * Copyright © 2005-2024 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 { Injectable } from '@angular/core';\nimport { Actions, ofType, createEffect } from '@ngrx/effects';\nimport { map } from 'rxjs/operators';\n\nimport { AOS_ACTION, AosAction } from '../actions/aos.actions';\nimport { AosEditOnlineService } from '../aos-extension.service';\n\n@Injectable()\nexport class AosEffects {\n constructor(private actions$: Actions, private aosEditOnlineService: AosEditOnlineService) {}\n\n openOffice$ = createEffect(\n () =>\n this.actions$.pipe(\n ofType<AosAction>(AOS_ACTION),\n map((action) => {\n if (action.payload) {\n this.aosEditOnlineService.onActionEditOnlineAos(action.payload);\n }\n })\n ),\n { dispatch: false }\n );\n}\n","/*!\n * Copyright © 2005-2024 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 { ExtensionService, provideExtensionConfig } from '@alfresco/adf-extensions';\nimport { NgModule } from '@angular/core';\nimport { EffectsModule } from '@ngrx/effects';\nimport { AosEffects } from './effects/aos.effects';\nimport { TranslationService } from '@alfresco/adf-core';\nimport { canOpenWithOffice } from '@alfresco/aca-shared/rules';\n\n@NgModule({\n imports: [EffectsModule.forFeature([AosEffects])],\n providers: [provideExtensionConfig(['aos.plugin.json'])]\n})\nexport class AosExtensionModule {\n constructor(extensions: ExtensionService, translation: TranslationService) {\n translation.addTranslationFolder('ms-office', 'assets/ms-office');\n extensions.setEvaluators({\n 'aos.canOpenWithOffice': canOpenWithOffice\n });\n }\n}\n","/*!\n * Copyright © 2005-2024 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\nexport * from './aos-extension.service';\nexport * from './actions/aos.actions';\nexport * from './effects/aos.effects';\n\nexport * from './aos-extension.module';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\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