@alfresco/aca-content 4.4.1 → 4.5.0-10007555309
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.
- package/about/about.component.d.ts +2 -2
- package/about/dev-mode.tokens.d.ts +1 -1
- package/about/package-json.token.d.ts +1 -1
- package/about/public-api.d.ts +1 -1
- package/assets/app.extensions.json +13 -19
- package/assets/i18n/ar.json +1 -1
- package/assets/i18n/cs.json +1 -1
- package/assets/i18n/da.json +1 -1
- package/assets/i18n/de.json +1 -1
- package/assets/i18n/en.json +1 -1
- package/assets/i18n/es.json +1 -1
- package/assets/i18n/fi.json +1 -1
- package/assets/i18n/fr.json +1 -1
- package/assets/i18n/it.json +1 -1
- package/assets/i18n/ja.json +1 -1
- package/assets/i18n/nb.json +1 -1
- package/assets/i18n/nl.json +1 -1
- package/assets/i18n/pl.json +1 -1
- package/assets/i18n/pt-BR.json +1 -1
- package/assets/i18n/ru.json +1 -1
- package/assets/i18n/sv.json +1 -1
- package/assets/i18n/zh-CN.json +1 -1
- package/esm2020/about/about.component.mjs +7 -7
- package/esm2020/about/aca-about.module.mjs +2 -2
- package/esm2020/about/dev-mode.tokens.mjs +2 -2
- package/esm2020/about/package-json.token.mjs +2 -2
- package/esm2020/about/public-api.mjs +2 -2
- package/esm2020/folder-rules/folder-rules.module.mjs +8 -3
- package/esm2020/folder-rules/folder-rules.rules.mjs +2 -2
- package/esm2020/folder-rules/manage-rules/manage-rules.smart-component.mjs +6 -5
- package/esm2020/folder-rules/model/action-parameter-constraint.model.mjs +2 -2
- package/esm2020/folder-rules/model/rule-action.model.mjs +2 -2
- package/esm2020/folder-rules/model/rule-composite-condition.model.mjs +2 -2
- package/esm2020/folder-rules/model/rule-grouping-item.model.mjs +2 -2
- package/esm2020/folder-rules/model/rule-set.model.mjs +2 -2
- package/esm2020/folder-rules/model/rule-simple-condition.model.mjs +2 -2
- package/esm2020/folder-rules/model/rule.model.mjs +2 -2
- package/esm2020/folder-rules/public-api.mjs +2 -2
- package/esm2020/folder-rules/rule-details/actions/rule-action-list.ui-component.mjs +2 -2
- package/esm2020/folder-rules/rule-details/actions/rule-action.ui-component.mjs +77 -10
- package/esm2020/folder-rules/rule-details/conditions/rule-composite-condition.ui-component.mjs +2 -2
- package/esm2020/folder-rules/rule-details/conditions/rule-condition-comparators.mjs +2 -2
- package/esm2020/folder-rules/rule-details/conditions/rule-condition-fields.mjs +2 -2
- package/esm2020/folder-rules/rule-details/conditions/rule-simple-condition.ui-component.mjs +21 -22
- package/esm2020/folder-rules/rule-details/edit-rule-dialog.ui-component.mjs +2 -2
- package/esm2020/folder-rules/rule-details/options/rule-options.ui-component.mjs +2 -2
- package/esm2020/folder-rules/rule-details/rule-details.ui-component.mjs +2 -2
- package/esm2020/folder-rules/rule-details/triggers/rule-triggers.ui-component.mjs +2 -2
- package/esm2020/folder-rules/rule-details/validators/rule-actions.validator.mjs +2 -2
- package/esm2020/folder-rules/rule-details/validators/rule-composite-condition.validator.mjs +2 -2
- package/esm2020/folder-rules/rule-list/rule-list/rule-list.ui-component.mjs +25 -19
- package/esm2020/folder-rules/rule-list/rule-list-grouping/rule-list-grouping.ui-component.mjs +2 -2
- package/esm2020/folder-rules/rule-list/rule-list-item/rule-list-item.ui-component.mjs +2 -2
- package/esm2020/folder-rules/rule-set-picker/rule-set-picker.smart-component.mjs +2 -2
- package/esm2020/folder-rules/services/actions.service.mjs +2 -2
- package/esm2020/folder-rules/services/folder-rule-sets.service.mjs +7 -3
- package/esm2020/folder-rules/services/folder-rules.service.mjs +2 -2
- package/esm2020/lib/aca-content.module.mjs +39 -87
- package/esm2020/lib/aca-content.routes.mjs +2 -2
- package/esm2020/lib/components/common/index.mjs +2 -2
- package/esm2020/lib/components/common/language-picker/language-picker.component.mjs +2 -2
- package/esm2020/lib/components/common/location-link/location-link.component.mjs +2 -2
- package/esm2020/lib/components/common/logout/logout.component.mjs +5 -6
- package/esm2020/lib/components/common/toggle-shared/toggle-shared.component.mjs +2 -2
- package/esm2020/lib/components/common/user-info/user-info.component.mjs +2 -2
- package/esm2020/lib/components/context-menu/context-menu-item.component.mjs +7 -9
- package/esm2020/lib/components/context-menu/context-menu-outside-event.directive.mjs +2 -2
- package/esm2020/lib/components/context-menu/context-menu-overlay.mjs +2 -2
- package/esm2020/lib/components/context-menu/context-menu.component.mjs +8 -10
- package/esm2020/lib/components/context-menu/context-menu.service.mjs +2 -2
- package/esm2020/lib/components/context-menu/direction.token.mjs +2 -2
- package/esm2020/lib/components/context-menu/interfaces.mjs +2 -2
- package/esm2020/lib/components/details/details.component.mjs +2 -2
- package/esm2020/lib/components/dl-custom-components/name-column/name-column.component.mjs +7 -9
- package/esm2020/lib/components/dl-custom-components/tags-column/tags-column.component.mjs +2 -2
- package/esm2020/lib/components/dl-custom-components/thumbnail-column/thumbnail-column.component.mjs +2 -2
- package/esm2020/lib/components/favorite-libraries/favorite-libraries.component.mjs +11 -12
- package/esm2020/lib/components/favorites/favorites.component.mjs +11 -12
- package/esm2020/lib/components/files/files.component.mjs +29 -27
- package/esm2020/lib/components/home/home.component.mjs +10 -14
- package/esm2020/lib/components/info-drawer/comments-tab/comments-tab.component.mjs +2 -2
- package/esm2020/lib/components/info-drawer/info.drawer.module.mjs +2 -2
- package/esm2020/lib/components/info-drawer/library-metadata-tab/library-metadata-form.component.mjs +2 -2
- package/esm2020/lib/components/info-drawer/library-metadata-tab/library-metadata-tab.component.mjs +2 -2
- package/esm2020/lib/components/info-drawer/metadata-tab/metadata-tab.component.mjs +2 -2
- package/esm2020/lib/components/info-drawer/versions-tab/versions-tab.component.mjs +7 -8
- package/esm2020/lib/components/libraries/libraries.component.mjs +11 -12
- package/esm2020/lib/components/recent-files/recent-files.component.mjs +11 -12
- package/esm2020/lib/components/search/index.mjs +2 -2
- package/esm2020/lib/components/search/search-action-menu/search-action-menu.component.mjs +2 -2
- package/esm2020/lib/components/search/search-input/search-input.component.mjs +2 -2
- package/esm2020/lib/components/search/search-input-control/search-input-control.component.mjs +2 -2
- package/esm2020/lib/components/search/search-libraries-results/search-libraries-query-builder.service.mjs +2 -2
- package/esm2020/lib/components/search/search-libraries-results/search-libraries-results.component.mjs +9 -10
- package/esm2020/lib/components/search/search-navigation.service.mjs +2 -2
- package/esm2020/lib/components/search/search-results/search-results.component.mjs +17 -22
- package/esm2020/lib/components/search/search-results-row/search-results-row.component.mjs +2 -2
- package/esm2020/lib/components/shared-files/shared-files.component.mjs +11 -12
- package/esm2020/lib/components/shared-link-view/shared-link-view.component.mjs +2 -2
- package/esm2020/lib/components/sidenav/components/button-menu.component.mjs +2 -2
- package/esm2020/lib/components/sidenav/components/expand-menu.component.mjs +2 -2
- package/esm2020/lib/components/sidenav/components/sidenav-header.component.mjs +11 -16
- package/esm2020/lib/components/sidenav/directives/action.directive.mjs +2 -2
- package/esm2020/lib/components/sidenav/directives/active-link.directive.mjs +2 -2
- package/esm2020/lib/components/sidenav/directives/expansion-panel.directive.mjs +2 -2
- package/esm2020/lib/components/sidenav/directives/menu-panel.directive.mjs +2 -2
- package/esm2020/lib/components/sidenav/index.mjs +2 -2
- package/esm2020/lib/components/sidenav/sidenav.component.mjs +5 -6
- package/esm2020/lib/components/sidenav/user-menu/user-menu.component.mjs +2 -2
- package/esm2020/lib/components/toolbar/index.mjs +2 -2
- package/esm2020/lib/components/toolbar/toggle-edit-offline/toggle-edit-offline.component.mjs +2 -2
- package/esm2020/lib/components/toolbar/toggle-favorite/toggle-favorite.component.mjs +7 -8
- package/esm2020/lib/components/toolbar/toggle-favorite-library/toggle-favorite-library.component.mjs +7 -8
- package/esm2020/lib/components/toolbar/toggle-info-drawer/toggle-info-drawer.component.mjs +2 -2
- package/esm2020/lib/components/toolbar/toggle-join-library/toggle-join-library-button.component.mjs +6 -7
- package/esm2020/lib/components/toolbar/toggle-join-library/toggle-join-library-menu.component.mjs +7 -8
- package/esm2020/lib/components/toolbar/view-node/view-node.component.mjs +2 -2
- package/esm2020/lib/components/trashcan/trashcan.component.mjs +10 -11
- package/esm2020/lib/components/upload-files-dialog/upload-files-dialog.component.mjs +2 -2
- package/esm2020/lib/components/view-profile/view-profile.component.mjs +2 -2
- package/esm2020/lib/components/view-profile/view-profile.guard.mjs +2 -2
- package/esm2020/lib/dialogs/node-template/create-from-template.dialog.mjs +2 -2
- package/esm2020/lib/directives/document-list.directive.mjs +44 -16
- package/esm2020/lib/extensions/core.extensions.module.mjs +2 -7
- package/esm2020/lib/services/content-management.service.mjs +26 -28
- package/esm2020/lib/services/content-url.service.mjs +2 -2
- package/esm2020/lib/services/node-actions.service.mjs +2 -2
- package/esm2020/lib/services/node-template.service.mjs +2 -2
- package/esm2020/lib/store/app-store.module.mjs +2 -2
- package/esm2020/lib/store/effects/app.effects.mjs +2 -2
- package/esm2020/lib/store/effects/contextmenu.effects.mjs +2 -2
- package/esm2020/lib/store/effects/download.effects.mjs +2 -2
- package/esm2020/lib/store/effects/favorite.effects.mjs +2 -2
- package/esm2020/lib/store/effects/library.effects.mjs +2 -2
- package/esm2020/lib/store/effects/node.effects.mjs +2 -2
- package/esm2020/lib/store/effects/search.effects.mjs +3 -3
- package/esm2020/lib/store/effects/template.effects.mjs +2 -2
- package/esm2020/lib/store/effects/upload.effects.mjs +2 -2
- package/esm2020/lib/store/effects/viewer.effects.mjs +2 -2
- package/esm2020/lib/store/effects.mjs +2 -2
- package/esm2020/lib/store/initial-state.mjs +3 -39
- package/esm2020/lib/store/reducers/app.reducer.mjs +3 -7
- package/esm2020/ms-office/actions/aos.actions.mjs +2 -2
- package/esm2020/ms-office/aos-extension.module.mjs +2 -2
- package/esm2020/ms-office/aos-extension.service.mjs +10 -12
- package/esm2020/ms-office/effects/aos.effects.mjs +2 -2
- package/esm2020/ms-office/public-api.mjs +2 -2
- package/esm2020/public-api.mjs +2 -2
- package/esm2020/viewer/lib/components/preview/preview.component.mjs +236 -0
- package/esm2020/viewer/lib/components/viewer/viewer.component.mjs +42 -203
- package/esm2020/viewer/lib/services/viewer.service.mjs +215 -0
- package/esm2020/viewer/lib/viewer.module.mjs +7 -6
- package/esm2020/viewer/public-api.mjs +3 -2
- package/fesm2015/alfresco-aca-content-about.mjs +10 -10
- package/fesm2015/alfresco-aca-content-about.mjs.map +1 -1
- package/fesm2015/alfresco-aca-content-folder-rules.mjs +167 -93
- package/fesm2015/alfresco-aca-content-folder-rules.mjs.map +1 -1
- package/fesm2015/alfresco-aca-content-ms-office.mjs +10 -13
- package/fesm2015/alfresco-aca-content-ms-office.mjs.map +1 -1
- package/fesm2015/alfresco-aca-content-viewer.mjs +414 -195
- package/fesm2015/alfresco-aca-content-viewer.mjs.map +1 -1
- package/fesm2015/alfresco-aca-content.mjs +5995 -6053
- package/fesm2015/alfresco-aca-content.mjs.map +1 -1
- package/fesm2020/alfresco-aca-content-about.mjs +10 -10
- package/fesm2020/alfresco-aca-content-about.mjs.map +1 -1
- package/fesm2020/alfresco-aca-content-folder-rules.mjs +178 -96
- package/fesm2020/alfresco-aca-content-folder-rules.mjs.map +1 -1
- package/fesm2020/alfresco-aca-content-ms-office.mjs +11 -14
- package/fesm2020/alfresco-aca-content-ms-office.mjs.map +1 -1
- package/fesm2020/alfresco-aca-content-viewer.mjs +449 -186
- package/fesm2020/alfresco-aca-content-viewer.mjs.map +1 -1
- package/fesm2020/alfresco-aca-content.mjs +4935 -4993
- package/fesm2020/alfresco-aca-content.mjs.map +1 -1
- package/folder-rules/folder-rules.module.d.ts +1 -1
- package/folder-rules/folder-rules.rules.d.ts +1 -1
- package/folder-rules/manage-rules/manage-rules.smart-component.d.ts +1 -1
- package/folder-rules/model/action-parameter-constraint.model.d.ts +1 -1
- package/folder-rules/model/rule-action.model.d.ts +1 -1
- package/folder-rules/model/rule-composite-condition.model.d.ts +1 -1
- package/folder-rules/model/rule-grouping-item.model.d.ts +1 -1
- package/folder-rules/model/rule-set.model.d.ts +1 -1
- package/folder-rules/model/rule-simple-condition.model.d.ts +1 -1
- package/folder-rules/model/rule.model.d.ts +1 -1
- package/folder-rules/public-api.d.ts +1 -1
- package/folder-rules/rule-details/actions/rule-action-list.ui-component.d.ts +1 -1
- package/folder-rules/rule-details/actions/rule-action.ui-component.d.ts +10 -5
- package/folder-rules/rule-details/conditions/rule-composite-condition.ui-component.d.ts +1 -1
- package/folder-rules/rule-details/conditions/rule-condition-comparators.d.ts +1 -1
- package/folder-rules/rule-details/conditions/rule-condition-fields.d.ts +1 -1
- package/folder-rules/rule-details/conditions/rule-simple-condition.ui-component.d.ts +5 -6
- package/folder-rules/rule-details/edit-rule-dialog.ui-component.d.ts +1 -1
- package/folder-rules/rule-details/options/rule-options.ui-component.d.ts +1 -1
- package/folder-rules/rule-details/rule-details.ui-component.d.ts +1 -1
- package/folder-rules/rule-details/triggers/rule-triggers.ui-component.d.ts +1 -1
- package/folder-rules/rule-details/validators/rule-actions.validator.d.ts +1 -1
- package/folder-rules/rule-details/validators/rule-composite-condition.validator.d.ts +1 -1
- package/folder-rules/rule-list/rule-list/rule-list.ui-component.d.ts +14 -9
- package/folder-rules/rule-list/rule-list-grouping/rule-list-grouping.ui-component.d.ts +1 -1
- package/folder-rules/rule-list/rule-list-item/rule-list-item.ui-component.d.ts +1 -1
- package/folder-rules/rule-set-picker/rule-set-picker.smart-component.d.ts +1 -1
- package/lib/aca-content.module.d.ts +5 -16
- package/lib/aca-content.routes.d.ts +1 -1
- package/lib/components/common/index.d.ts +1 -1
- package/lib/components/common/location-link/location-link.component.d.ts +1 -1
- package/lib/components/common/toggle-shared/toggle-shared.component.d.ts +1 -1
- package/lib/components/context-menu/context-menu-outside-event.directive.d.ts +1 -1
- package/lib/components/context-menu/context-menu-overlay.d.ts +1 -1
- package/lib/components/context-menu/context-menu.component.d.ts +1 -1
- package/lib/components/context-menu/context-menu.service.d.ts +1 -1
- package/lib/components/context-menu/direction.token.d.ts +1 -1
- package/lib/components/context-menu/interfaces.d.ts +1 -1
- package/lib/components/details/details.component.d.ts +1 -1
- package/lib/components/dl-custom-components/name-column/name-column.component.d.ts +1 -1
- package/lib/components/dl-custom-components/thumbnail-column/thumbnail-column.component.d.ts +1 -1
- package/lib/components/favorite-libraries/favorite-libraries.component.d.ts +1 -1
- package/lib/components/favorites/favorites.component.d.ts +1 -1
- package/lib/components/files/files.component.d.ts +3 -3
- package/lib/components/home/home.component.d.ts +2 -6
- package/lib/components/info-drawer/comments-tab/comments-tab.component.d.ts +1 -1
- package/lib/components/info-drawer/library-metadata-tab/library-metadata-form.component.d.ts +1 -1
- package/lib/components/info-drawer/metadata-tab/metadata-tab.component.d.ts +1 -1
- package/lib/components/info-drawer/versions-tab/versions-tab.component.d.ts +1 -1
- package/lib/components/recent-files/recent-files.component.d.ts +1 -1
- package/lib/components/search/index.d.ts +1 -1
- package/lib/components/search/search-action-menu/search-action-menu.component.d.ts +1 -1
- package/lib/components/search/search-input/search-input.component.d.ts +1 -1
- package/lib/components/search/search-input-control/search-input-control.component.d.ts +1 -1
- package/lib/components/search/search-libraries-results/search-libraries-query-builder.service.d.ts +1 -1
- package/lib/components/search/search-results/search-results.component.d.ts +1 -2
- package/lib/components/search/search-results-row/search-results-row.component.d.ts +1 -1
- package/lib/components/shared-files/shared-files.component.d.ts +1 -1
- package/lib/components/shared-link-view/shared-link-view.component.d.ts +1 -1
- package/lib/components/sidenav/components/button-menu.component.d.ts +1 -1
- package/lib/components/sidenav/components/expand-menu.component.d.ts +1 -1
- package/lib/components/sidenav/components/sidenav-header.component.d.ts +4 -5
- package/lib/components/sidenav/directives/active-link.directive.d.ts +1 -1
- package/lib/components/sidenav/directives/expansion-panel.directive.d.ts +1 -1
- package/lib/components/sidenav/directives/menu-panel.directive.d.ts +1 -1
- package/lib/components/sidenav/index.d.ts +1 -1
- package/lib/components/sidenav/sidenav.component.d.ts +1 -1
- package/lib/components/sidenav/user-menu/user-menu.component.d.ts +1 -1
- package/lib/components/toolbar/index.d.ts +1 -1
- package/lib/components/toolbar/toggle-edit-offline/toggle-edit-offline.component.d.ts +1 -1
- package/lib/components/toolbar/toggle-favorite/toggle-favorite.component.d.ts +1 -1
- package/lib/components/toolbar/toggle-favorite-library/toggle-favorite-library.component.d.ts +1 -1
- package/lib/components/toolbar/toggle-join-library/toggle-join-library-button.component.d.ts +1 -1
- package/lib/components/upload-files-dialog/upload-files-dialog.component.d.ts +1 -1
- package/lib/components/view-profile/view-profile.component.d.ts +1 -1
- package/lib/dialogs/node-template/create-from-template.dialog.d.ts +1 -1
- package/lib/directives/document-list.directive.d.ts +4 -1
- package/lib/extensions/core.extensions.module.d.ts +1 -2
- package/lib/services/content-management.service.d.ts +4 -3
- package/lib/store/effects/app.effects.d.ts +1 -1
- package/lib/store/effects/download.effects.d.ts +1 -1
- package/lib/store/effects/favorite.effects.d.ts +1 -1
- package/lib/store/effects/library.effects.d.ts +1 -1
- package/lib/store/effects/node.effects.d.ts +1 -1
- package/lib/store/effects/search.effects.d.ts +1 -1
- package/lib/store/effects/template.effects.d.ts +1 -1
- package/lib/store/effects/upload.effects.d.ts +1 -1
- package/lib/store/effects/viewer.effects.d.ts +1 -1
- package/lib/store/effects.d.ts +1 -1
- package/lib/store/initial-state.d.ts +2 -4
- package/lib/store/reducers/app.reducer.d.ts +1 -1
- package/ms-office/actions/aos.actions.d.ts +1 -1
- package/ms-office/aos-extension.module.d.ts +1 -1
- package/ms-office/aos-extension.service.d.ts +5 -5
- package/ms-office/public-api.d.ts +1 -1
- package/package.json +5 -13
- package/public-api.d.ts +1 -1
- package/{preview/lib/components → viewer/lib/components/preview}/preview.component.d.ts +16 -43
- package/viewer/lib/components/viewer/viewer.component.d.ts +20 -46
- package/viewer/lib/services/viewer.service.d.ts +65 -0
- package/viewer/lib/viewer.module.d.ts +2 -1
- package/viewer/public-api.d.ts +2 -1
- package/esm2020/folder-rules/rule-details/conditions/rule-mime-types.mjs +0 -25
- package/esm2020/preview/alfresco-aca-content-preview.mjs +0 -5
- package/esm2020/preview/lib/components/preview.component.mjs +0 -394
- package/esm2020/preview/lib/preview.module.mjs +0 -39
- package/esm2020/preview/public-api.mjs +0 -29
- package/fesm2015/alfresco-aca-content-preview.mjs +0 -447
- package/fesm2015/alfresco-aca-content-preview.mjs.map +0 -1
- package/fesm2020/alfresco-aca-content-preview.mjs +0 -461
- package/fesm2020/alfresco-aca-content-preview.mjs.map +0 -1
- package/folder-rules/rule-details/conditions/rule-mime-types.d.ts +0 -27
- package/preview/index.d.ts +0 -5
- package/preview/lib/preview.module.d.ts +0 -7
- package/preview/public-api.d.ts +0 -25
|
@@ -2,6 +2,7 @@ import * as i0 from '@angular/core';
|
|
|
2
2
|
import { Injectable, NgModule } from '@angular/core';
|
|
3
3
|
import { supportedExtensions, getFileExtension, canOpenWithOffice } from '@alfresco/aca-shared/rules';
|
|
4
4
|
import * as i1 from '@alfresco/adf-core';
|
|
5
|
+
import * as i2 from '@alfresco/aca-shared';
|
|
5
6
|
import * as i1$1 from '@ngrx/effects';
|
|
6
7
|
import { createEffect, ofType, EffectsModule } from '@ngrx/effects';
|
|
7
8
|
import { map } from 'rxjs/operators';
|
|
@@ -9,11 +10,10 @@ import * as i1$2 from '@alfresco/adf-extensions';
|
|
|
9
10
|
import { provideExtensionConfig } from '@alfresco/adf-extensions';
|
|
10
11
|
|
|
11
12
|
class AosEditOnlineService {
|
|
12
|
-
constructor(authenticationService,
|
|
13
|
+
constructor(authenticationService, appSettings, notificationService) {
|
|
13
14
|
this.authenticationService = authenticationService;
|
|
14
|
-
this.
|
|
15
|
+
this.appSettings = appSettings;
|
|
15
16
|
this.notificationService = notificationService;
|
|
16
|
-
this.logService = logService;
|
|
17
17
|
}
|
|
18
18
|
onActionEditOnlineAos(node) {
|
|
19
19
|
if (node && this.isFile(node) && node.properties) {
|
|
@@ -46,7 +46,6 @@ class AosEditOnlineService {
|
|
|
46
46
|
return this.getUserAgent().indexOf('mac') !== -1;
|
|
47
47
|
}
|
|
48
48
|
onAlreadyLockedNotification(nodeId, lockOwner) {
|
|
49
|
-
this.logService.error('Document already locked by another user');
|
|
50
49
|
this.notificationService.showError(`AOS.ERRORS.ALREADY_LOCKED`, null, {
|
|
51
50
|
nodeId,
|
|
52
51
|
lockOwner
|
|
@@ -57,7 +56,7 @@ class AosEditOnlineService {
|
|
|
57
56
|
}
|
|
58
57
|
triggerEditOnlineAos(node) {
|
|
59
58
|
var _a;
|
|
60
|
-
const aosHost = this.
|
|
59
|
+
const aosHost = this.appSettings.aosHost;
|
|
61
60
|
let url;
|
|
62
61
|
const pathElements = (((_a = node.path) === null || _a === void 0 ? void 0 : _a.elements) || []).map((segment) => segment.name);
|
|
63
62
|
if (!pathElements.length) {
|
|
@@ -73,12 +72,10 @@ class AosEditOnlineService {
|
|
|
73
72
|
const fileExtension = getFileExtension(node.name);
|
|
74
73
|
const protocolHandler = this.getProtocolForFileExtension(fileExtension);
|
|
75
74
|
if (protocolHandler === undefined) {
|
|
76
|
-
this.logService.error('Protocol handler missing');
|
|
77
75
|
this.notificationService.showError(`AOS.ERRORS.MISSING_PROTOCOL_HANDLER`, null, { nodeName: node.name });
|
|
78
76
|
return;
|
|
79
77
|
}
|
|
80
78
|
if (!this.isWindows() && !this.isMacOs()) {
|
|
81
|
-
this.logService.error('Unsupported platform');
|
|
82
79
|
this.notificationService.showError('AOS.ERRORS.UNSUPPORTED_PLATFORM');
|
|
83
80
|
}
|
|
84
81
|
else {
|
|
@@ -105,17 +102,17 @@ class AosEditOnlineService {
|
|
|
105
102
|
return node.nodeId || node.guid || node.id;
|
|
106
103
|
}
|
|
107
104
|
}
|
|
108
|
-
AosEditOnlineService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: AosEditOnlineService, deps: [{ token: i1.AuthenticationService }, { token:
|
|
105
|
+
AosEditOnlineService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: AosEditOnlineService, deps: [{ token: i1.AuthenticationService }, { token: i2.AppSettingsService }, { token: i1.NotificationService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
109
106
|
AosEditOnlineService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: AosEditOnlineService, providedIn: 'root' });
|
|
110
107
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: AosEditOnlineService, decorators: [{
|
|
111
108
|
type: Injectable,
|
|
112
109
|
args: [{
|
|
113
110
|
providedIn: 'root'
|
|
114
111
|
}]
|
|
115
|
-
}], ctorParameters: function () { return [{ type: i1.AuthenticationService }, { type:
|
|
112
|
+
}], ctorParameters: function () { return [{ type: i1.AuthenticationService }, { type: i2.AppSettingsService }, { type: i1.NotificationService }]; } });
|
|
116
113
|
|
|
117
114
|
/*!
|
|
118
|
-
* Copyright © 2005-
|
|
115
|
+
* Copyright © 2005-2024 Hyland Software, Inc. and its affiliates. All rights reserved.
|
|
119
116
|
*
|
|
120
117
|
* Alfresco Example Content Application
|
|
121
118
|
*
|
|
@@ -146,7 +143,7 @@ class AosAction {
|
|
|
146
143
|
}
|
|
147
144
|
|
|
148
145
|
/*!
|
|
149
|
-
* Copyright © 2005-
|
|
146
|
+
* Copyright © 2005-2024 Hyland Software, Inc. and its affiliates. All rights reserved.
|
|
150
147
|
*
|
|
151
148
|
* Alfresco Example Content Application
|
|
152
149
|
*
|
|
@@ -186,7 +183,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.3", ngImpor
|
|
|
186
183
|
}], ctorParameters: function () { return [{ type: i1$1.Actions }, { type: AosEditOnlineService }]; } });
|
|
187
184
|
|
|
188
185
|
/*!
|
|
189
|
-
* Copyright © 2005-
|
|
186
|
+
* Copyright © 2005-2024 Hyland Software, Inc. and its affiliates. All rights reserved.
|
|
190
187
|
*
|
|
191
188
|
* Alfresco Example Content Application
|
|
192
189
|
*
|
|
@@ -228,7 +225,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.3", ngImpor
|
|
|
228
225
|
}], ctorParameters: function () { return [{ type: i1$2.ExtensionService }, { type: i1.TranslationService }]; } });
|
|
229
226
|
|
|
230
227
|
/*!
|
|
231
|
-
* Copyright © 2005-
|
|
228
|
+
* Copyright © 2005-2024 Hyland Software, Inc. and its affiliates. All rights reserved.
|
|
232
229
|
*
|
|
233
230
|
* Alfresco Example Content Application
|
|
234
231
|
*
|
|
@@ -1 +1 @@
|
|
|
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-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/* cspell:disable */\nimport { AppConfigService, AuthenticationService, LogService, NotificationService } from '@alfresco/adf-core';\nimport { Injectable } from '@angular/core';\nimport { Node } from '@alfresco/js-api';\nimport { getFileExtension, supportedExtensions } from '@alfresco/aca-shared/rules';\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 appConfigService: AppConfigService,\n private notificationService: NotificationService,\n private logService: LogService\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.logService.error('Document already locked by another user');\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.appConfigService.get('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.logService.error('Protocol handler missing');\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.logService.error('Unsupported platform');\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-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 { 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-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 { 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-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 { 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-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\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';\n"],"names":["i1","i2.AosEditOnlineService","i2","i3"],"mappings":";;;;;;;;;;MAqCa,oBAAoB,CAAA;AAC/B,IAAA,WAAA,CACU,qBAA4C,EAC5C,gBAAkC,EAClC,mBAAwC,EACxC,UAAsB,EAAA;AAHtB,QAAA,IAAqB,CAAA,qBAAA,GAArB,qBAAqB,CAAuB;AAC5C,QAAA,IAAgB,CAAA,gBAAA,GAAhB,gBAAgB,CAAkB;AAClC,QAAA,IAAmB,CAAA,mBAAA,GAAnB,mBAAmB,CAAqB;AACxC,QAAA,IAAU,CAAA,UAAA,GAAV,UAAU,CAAY;KAC5B;AAEJ,IAAA,qBAAqB,CAAC,IAAU,EAAA;AAC9B,QAAA,IAAI,IAAI,IAAI,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,IAAI,CAAC,UAAU,EAAE;YAChD,IAAI,IAAI,CAAC,QAAQ,EAAE;;;;AAIjB,gBAAA,MAAM,UAAU,GAAG,IAAI,CAAC,UAAU,CAAC,aAAa,CAAC,KAAK,YAAY,IAAI,IAAI,CAAC,UAAU,CAAC,aAAa,CAAC,KAAK,gBAAgB,CAAC;gBAC1H,MAAM,SAAS,GAAG,IAAI,CAAC,UAAU,CAAC,cAAc,CAAC,CAAC;AAClD,gBAAA,MAAM,kBAAkB,GAAG,SAAS,CAAC,EAAE,KAAK,IAAI,CAAC,qBAAqB,CAAC,cAAc,EAAE,CAAC;gBAExF,IAAI,UAAU,IAAI,kBAAkB,EAAE;oBACpC,IAAI,CAAC,2BAA2B,CAAC,IAAI,CAAC,EAAE,EAAE,SAAS,CAAC,EAAE,CAAC,CAAC;AACzD,iBAAA;AAAM,qBAAA;AACL,oBAAA,IAAI,CAAC,oBAAoB,CAAC,IAAI,CAAC,CAAC;AACjC,iBAAA;AACF,aAAA;AAAM,iBAAA;AACL,gBAAA,IAAI,CAAC,oBAAoB,CAAC,IAAI,CAAC,CAAC;A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BACzD,CAAA;;;AClCD;;;;;;;;;;;;;;;;;;;;;;AAsBG;;ACtBH;;AAEG;;;;"}
|
|
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';\n"],"names":["i1","i2.AosEditOnlineService","i2","i3"],"mappings":";;;;;;;;;;;MAsCa,oBAAoB,CAAA;AAC/B,IAAA,WAAA,CACU,qBAA4C,EAC5C,WAA+B,EAC/B,mBAAwC,EA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