@alfresco/aca-shared 2.0.1 → 4.0.0-4895381898
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/README.md +7 -6
- package/esm2020/lib/adf-extensions/extensions-data-loader.guard.mjs +73 -0
- package/esm2020/lib/components/document-base-page/document-base-page.component.mjs +176 -0
- package/esm2020/lib/components/document-base-page/document-base-page.service.mjs +26 -0
- package/esm2020/lib/components/generic-error/generic-error.component.mjs +41 -0
- package/esm2020/lib/components/generic-error/generic-error.module.mjs +44 -0
- package/esm2020/lib/components/info-drawer/info-drawer.component.mjs +123 -0
- package/esm2020/lib/components/info-drawer/shared-info-drawer.module.mjs +46 -0
- package/esm2020/lib/components/locked-by/locked-by.component.mjs +52 -0
- package/esm2020/lib/components/locked-by/locked-by.module.mjs +44 -0
- package/esm2020/lib/components/open-in-app/open-in-app.component.mjs +58 -0
- package/esm2020/lib/components/page-layout/page-layout-content.component.mjs +48 -0
- package/esm2020/lib/components/page-layout/page-layout-error.component.mjs +40 -0
- package/esm2020/lib/components/page-layout/page-layout-header.component.mjs +40 -0
- package/esm2020/lib/components/page-layout/page-layout.component.mjs +57 -0
- package/esm2020/lib/components/page-layout/page-layout.module.mjs +47 -0
- package/esm2020/lib/components/tool-bar/shared-toolbar.module.mjs +46 -0
- package/esm2020/lib/components/tool-bar/toolbar-action/toolbar-action.component.mjs +59 -0
- package/esm2020/lib/components/tool-bar/toolbar-button/toolbar-button.component.mjs +69 -0
- package/esm2020/lib/components/tool-bar/toolbar-menu/toolbar-menu.component.mjs +82 -0
- package/esm2020/lib/components/tool-bar/toolbar-menu-item/toolbar-menu-item.component.mjs +68 -0
- package/esm2020/lib/directives/contextmenu/contextmenu.directive.mjs +106 -0
- package/esm2020/lib/directives/contextmenu/contextmenu.module.mjs +42 -0
- package/esm2020/lib/directives/pagination.directive.mjs +54 -0
- package/esm2020/lib/directives/shared.directives.module.mjs +41 -0
- package/esm2020/lib/models/modal-configuration.mjs +25 -0
- package/esm2020/lib/models/types.mjs +25 -0
- package/esm2020/lib/models/viewer.rules.mjs +25 -0
- package/esm2020/lib/routing/shared.guard.mjs +48 -0
- package/esm2020/lib/services/aca-file-auto-download.service.mjs +55 -0
- package/esm2020/lib/services/aca-mobile-app-switcher.service.mjs +107 -0
- package/esm2020/lib/services/alfresco-office-extension.service.mjs +63 -0
- package/esm2020/lib/services/app-hook.service.mjs +87 -0
- package/esm2020/lib/services/app.extension.service.mjs +444 -0
- package/esm2020/lib/services/app.service.mjs +223 -0
- package/esm2020/lib/services/content-api.service.mjs +266 -0
- package/esm2020/lib/services/node-permission.service.mjs +89 -0
- package/esm2020/lib/services/router.extension.service.mjs +105 -0
- package/esm2020/lib/shared.module.mjs +54 -0
- package/esm2020/lib/testing/lib-testing-module.mjs +115 -0
- package/esm2020/lib/utils/node.utils.mjs +42 -0
- package/esm2020/public-api.mjs +62 -0
- package/esm2020/rules/app.rules.mjs +526 -0
- package/esm2020/rules/navigation.rules.mjs +156 -0
- package/esm2020/rules/public-api.mjs +28 -0
- package/esm2020/rules/repository.rules.mjs +33 -0
- package/esm2020/rules/user.rules.mjs +29 -0
- package/esm2020/store/actions/app-action-types.mjs +46 -0
- package/esm2020/store/actions/app.actions.mjs +128 -0
- package/esm2020/store/actions/context-menu-action-types.mjs +28 -0
- package/esm2020/store/actions/contextmenu.actions.mjs +31 -0
- package/esm2020/store/actions/library.actions.mjs +63 -0
- package/esm2020/store/actions/metadata-aspect.actions.mjs +31 -0
- package/esm2020/store/actions/node.actions.mjs +188 -0
- package/esm2020/store/actions/router-action-types.mjs +32 -0
- package/esm2020/store/actions/router.actions.mjs +54 -0
- package/esm2020/store/actions/search.actions.mjs +41 -0
- package/esm2020/store/actions/snackbar.actions.mjs +57 -0
- package/esm2020/store/actions/template-action-types.mjs +31 -0
- package/esm2020/store/actions/template.actions.mjs +47 -0
- package/esm2020/store/actions/upload.actions.mjs +49 -0
- package/esm2020/store/actions/viewer.actions.mjs +81 -0
- package/esm2020/store/effects/dialog.effects.mjs +44 -0
- package/esm2020/store/effects/router.effects.mjs +116 -0
- package/esm2020/store/effects/snackbar.effects.mjs +85 -0
- package/esm2020/store/models/delete-status.model.mjs +25 -0
- package/esm2020/store/models/deleted-node-info.model.mjs +25 -0
- package/esm2020/store/models/modal-configuration.mjs +25 -0
- package/esm2020/store/models/node-info.model.mjs +25 -0
- package/esm2020/store/models/search-option.model.mjs +30 -0
- package/esm2020/store/public-api.mjs +49 -0
- package/esm2020/store/selectors/app.selectors.mjs +56 -0
- package/esm2020/store/states/app.state.mjs +26 -0
- package/esm2020/store/store.module.mjs +42 -0
- package/fesm2015/alfresco-aca-shared-rules.mjs +775 -0
- package/fesm2015/alfresco-aca-shared-rules.mjs.map +1 -0
- package/fesm2015/{alfresco-aca-shared-store.js → alfresco-aca-shared-store.mjs} +395 -396
- package/fesm2015/alfresco-aca-shared-store.mjs.map +1 -0
- package/fesm2015/alfresco-aca-shared.mjs +2902 -0
- package/fesm2015/alfresco-aca-shared.mjs.map +1 -0
- package/{fesm2015/alfresco-aca-shared-rules.js → fesm2020/alfresco-aca-shared-rules.mjs} +274 -180
- package/fesm2020/alfresco-aca-shared-rules.mjs.map +1 -0
- package/fesm2020/alfresco-aca-shared-store.mjs +1376 -0
- package/fesm2020/alfresco-aca-shared-store.mjs.map +1 -0
- package/fesm2020/alfresco-aca-shared.mjs +3049 -0
- package/fesm2020/alfresco-aca-shared.mjs.map +1 -0
- package/{alfresco-aca-shared.d.ts → index.d.ts} +1 -0
- package/lib/adf-extensions/extensions-data-loader.guard.d.ts +9 -7
- package/lib/components/document-base-page/document-base-page.component.d.ts +76 -0
- package/lib/components/document-base-page/document-base-page.service.d.ts +28 -0
- package/lib/components/generic-error/generic-error.component.d.ts +3 -24
- package/lib/components/generic-error/generic-error.module.d.ts +8 -24
- package/lib/components/info-drawer/info-drawer.component.d.ts +11 -6
- package/lib/components/info-drawer/shared-info-drawer.module.d.ts +11 -24
- package/lib/components/locked-by/locked-by.component.d.ts +5 -30
- package/lib/components/locked-by/locked-by.module.d.ts +8 -24
- package/lib/components/open-in-app/open-in-app.component.d.ts +16 -0
- package/lib/components/page-layout/page-layout-content.component.d.ts +3 -24
- package/lib/components/page-layout/page-layout-error.component.d.ts +3 -24
- package/lib/components/page-layout/page-layout-header.component.d.ts +3 -24
- package/lib/components/page-layout/page-layout.component.d.ts +18 -7
- package/lib/components/page-layout/page-layout.module.d.ts +12 -24
- package/lib/components/tool-bar/shared-toolbar.module.d.ts +11 -24
- package/lib/components/tool-bar/toolbar-action/toolbar-action.component.d.ts +16 -8
- package/lib/components/tool-bar/toolbar-button/toolbar-button.component.d.ts +10 -25
- package/lib/components/tool-bar/toolbar-menu/toolbar-menu.component.d.ts +23 -13
- package/lib/components/tool-bar/toolbar-menu-item/toolbar-menu-item.component.d.ts +7 -27
- package/lib/directives/contextmenu/contextmenu.directive.d.ts +10 -7
- package/lib/directives/contextmenu/contextmenu.module.d.ts +5 -24
- package/lib/directives/pagination.directive.d.ts +8 -6
- package/lib/directives/shared.directives.module.d.ts +6 -24
- package/lib/models/modal-configuration.d.ts +26 -0
- package/lib/models/types.d.ts +5 -6
- package/lib/models/viewer.rules.d.ts +9 -6
- package/lib/routing/shared.guard.d.ts +5 -26
- package/lib/services/aca-file-auto-download.service.d.ts +13 -0
- package/lib/services/aca-mobile-app-switcher.service.d.ts +48 -0
- package/lib/services/alfresco-office-extension.service.d.ts +11 -0
- package/lib/services/app-hook.service.d.ts +55 -0
- package/lib/services/app.extension.service.d.ts +30 -45
- package/lib/services/app.service.d.ts +51 -12
- package/lib/services/content-api.service.d.ts +34 -25
- package/lib/services/node-permission.service.d.ts +3 -24
- package/lib/services/router.extension.service.d.ts +3 -24
- package/lib/shared.module.d.ts +15 -6
- package/lib/testing/lib-testing-module.d.ts +41 -0
- package/lib/utils/node.utils.d.ts +5 -6
- package/package.json +60 -18
- package/public-api.d.ts +12 -7
- package/rules/app.rules.d.ts +128 -36
- package/rules/{alfresco-aca-shared-rules.d.ts → index.d.ts} +1 -0
- package/rules/navigation.rules.d.ts +12 -12
- package/rules/public-api.d.ts +5 -6
- package/rules/repository.rules.d.ts +7 -7
- package/rules/user.rules.d.ts +6 -7
- package/store/actions/app-action-types.d.ts +44 -0
- package/store/actions/app.actions.d.ts +24 -29
- package/store/actions/context-menu-action-types.d.ts +26 -0
- package/store/actions/contextmenu.actions.d.ts +6 -9
- package/store/actions/library.actions.d.ts +8 -7
- package/store/actions/metadata-aspect.actions.d.ts +5 -6
- package/store/actions/node.actions.d.ts +38 -13
- package/store/actions/router-action-types.d.ts +30 -0
- package/store/actions/router.actions.d.ts +10 -12
- package/store/actions/search.actions.d.ts +11 -19
- package/store/actions/snackbar.actions.d.ts +13 -17
- package/store/actions/template-action-types.d.ts +29 -0
- package/store/actions/template.actions.d.ts +6 -12
- package/store/actions/upload.actions.d.ts +8 -7
- package/store/actions/viewer.actions.d.ts +11 -6
- package/store/effects/dialog.effects.d.ts +9 -7
- package/store/effects/router.effects.d.ts +11 -29
- package/store/effects/snackbar.effects.d.ts +11 -9
- package/store/{alfresco-aca-shared-store.d.ts → index.d.ts} +1 -0
- package/store/models/delete-status.model.d.ts +5 -6
- package/store/models/deleted-node-info.model.d.ts +5 -6
- package/store/models/modal-configuration.d.ts +26 -0
- package/store/models/node-info.model.d.ts +5 -6
- package/store/models/search-option.model.d.ts +5 -6
- package/store/public-api.d.ts +9 -6
- package/store/selectors/app.selectors.d.ts +10 -9
- package/store/states/app.state.d.ts +12 -9
- package/store/store.module.d.ts +5 -24
- package/alfresco-aca-shared.metadata.json +0 -1
- package/bundles/alfresco-aca-shared-rules.umd.js +0 -745
- package/bundles/alfresco-aca-shared-rules.umd.js.map +0 -1
- package/bundles/alfresco-aca-shared-rules.umd.min.js +0 -125
- package/bundles/alfresco-aca-shared-rules.umd.min.js.map +0 -1
- package/bundles/alfresco-aca-shared-store.umd.js +0 -1784
- package/bundles/alfresco-aca-shared-store.umd.js.map +0 -1
- package/bundles/alfresco-aca-shared-store.umd.min.js +0 -462
- package/bundles/alfresco-aca-shared-store.umd.min.js.map +0 -1
- package/bundles/alfresco-aca-shared.umd.js +0 -2523
- package/bundles/alfresco-aca-shared.umd.js.map +0 -1
- package/bundles/alfresco-aca-shared.umd.min.js +0 -740
- package/bundles/alfresco-aca-shared.umd.min.js.map +0 -1
- package/esm2015/lib/adf-extensions/extensions-data-loader.guard.js +0 -74
- package/esm2015/lib/components/generic-error/generic-error.component.js +0 -44
- package/esm2015/lib/components/generic-error/generic-error.module.js +0 -39
- package/esm2015/lib/components/info-drawer/info-drawer.component.js +0 -105
- package/esm2015/lib/components/info-drawer/shared-info-drawer.module.js +0 -41
- package/esm2015/lib/components/locked-by/locked-by.component.js +0 -54
- package/esm2015/lib/components/locked-by/locked-by.module.js +0 -38
- package/esm2015/lib/components/page-layout/page-layout-content.component.js +0 -43
- package/esm2015/lib/components/page-layout/page-layout-error.component.js +0 -37
- package/esm2015/lib/components/page-layout/page-layout-header.component.js +0 -37
- package/esm2015/lib/components/page-layout/page-layout.component.js +0 -44
- package/esm2015/lib/components/page-layout/page-layout.module.js +0 -40
- package/esm2015/lib/components/tool-bar/shared-toolbar.module.js +0 -42
- package/esm2015/lib/components/tool-bar/toolbar-action/toolbar-action.component.js +0 -57
- package/esm2015/lib/components/tool-bar/toolbar-button/toolbar-button.component.js +0 -66
- package/esm2015/lib/components/tool-bar/toolbar-menu/toolbar-menu.component.js +0 -55
- package/esm2015/lib/components/tool-bar/toolbar-menu-item/toolbar-menu-item.component.js +0 -65
- package/esm2015/lib/directives/contextmenu/contextmenu.directive.js +0 -97
- package/esm2015/lib/directives/contextmenu/contextmenu.module.js +0 -38
- package/esm2015/lib/directives/pagination.directive.js +0 -55
- package/esm2015/lib/directives/shared.directives.module.js +0 -37
- package/esm2015/lib/models/types.js +0 -25
- package/esm2015/lib/models/viewer.rules.js +0 -25
- package/esm2015/lib/routing/app.routes.strategy.js +0 -105
- package/esm2015/lib/routing/shared.guard.js +0 -50
- package/esm2015/lib/services/app.extension.service.js +0 -398
- package/esm2015/lib/services/app.service.js +0 -69
- package/esm2015/lib/services/content-api.service.js +0 -205
- package/esm2015/lib/services/node-permission.service.js +0 -88
- package/esm2015/lib/services/router.extension.service.js +0 -110
- package/esm2015/lib/shared.module.js +0 -44
- package/esm2015/lib/utils/node.utils.js +0 -34
- package/esm2015/public-api.js +0 -57
- package/esm2015/rules/app.rules.js +0 -420
- package/esm2015/rules/navigation.rules.js +0 -164
- package/esm2015/rules/public-api.js +0 -29
- package/esm2015/rules/repository.rules.js +0 -32
- package/esm2015/rules/user.rules.js +0 -32
- package/esm2015/store/actions/app.actions.js +0 -130
- package/esm2015/store/actions/contextmenu.actions.js +0 -35
- package/esm2015/store/actions/library.actions.js +0 -63
- package/esm2015/store/actions/metadata-aspect.actions.js +0 -32
- package/esm2015/store/actions/node.actions.js +0 -161
- package/esm2015/store/actions/router.actions.js +0 -56
- package/esm2015/store/actions/search.actions.js +0 -54
- package/esm2015/store/actions/snackbar.actions.js +0 -61
- package/esm2015/store/actions/template.actions.js +0 -54
- package/esm2015/store/actions/upload.actions.js +0 -49
- package/esm2015/store/actions/viewer.actions.js +0 -75
- package/esm2015/store/effects/dialog.effects.js +0 -49
- package/esm2015/store/effects/router.effects.js +0 -132
- package/esm2015/store/effects/snackbar.effects.js +0 -90
- package/esm2015/store/models/delete-status.model.js +0 -25
- package/esm2015/store/models/deleted-node-info.model.js +0 -25
- package/esm2015/store/models/node-info.model.js +0 -25
- package/esm2015/store/models/search-option.model.js +0 -31
- package/esm2015/store/public-api.js +0 -46
- package/esm2015/store/selectors/app.selectors.js +0 -80
- package/esm2015/store/states/app.state.js +0 -25
- package/esm2015/store/store.module.js +0 -37
- package/fesm2015/alfresco-aca-shared-rules.js.map +0 -1
- package/fesm2015/alfresco-aca-shared-store.js.map +0 -1
- package/fesm2015/alfresco-aca-shared.js +0 -2167
- package/fesm2015/alfresco-aca-shared.js.map +0 -1
- package/lib/routing/app.routes.strategy.d.ts +0 -40
- package/rules/alfresco-aca-shared-rules.metadata.json +0 -1
- package/rules/package.json +0 -11
- package/store/alfresco-aca-shared-store.metadata.json +0 -1
- package/store/package.json +0 -11
- /package/{esm2015/alfresco-aca-shared.js → esm2020/alfresco-aca-shared.mjs} +0 -0
- /package/{esm2015/rules/alfresco-aca-shared-rules.js → esm2020/rules/alfresco-aca-shared-rules.mjs} +0 -0
- /package/{esm2015/store/alfresco-aca-shared-store.js → esm2020/store/alfresco-aca-shared-store.mjs} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"alfresco-aca-shared.mjs","sources":["../../../../projects/aca-shared/src/lib/adf-extensions/extensions-data-loader.guard.ts","../../../../projects/aca-shared/src/lib/components/page-layout/page-layout-content.component.ts","../../../../projects/aca-shared/src/lib/components/page-layout/page-layout-error.component.ts","../../../../projects/aca-shared/src/lib/components/page-layout/page-layout-header.component.ts","../../../../projects/aca-shared/src/lib/services/content-api.service.ts","../../../../projects/aca-shared/src/lib/services/router.extension.service.ts","../../../../projects/aca-shared/src/lib/components/open-in-app/open-in-app.component.ts","../../../../projects/aca-shared/src/lib/components/open-in-app/open-in-app.component.html","../../../../projects/aca-shared/src/lib/services/aca-mobile-app-switcher.service.ts","../../../../projects/aca-shared/src/lib/services/app.service.ts","../../../../projects/aca-shared/src/lib/components/page-layout/page-layout.component.ts","../../../../projects/aca-shared/src/lib/components/page-layout/page-layout.component.html","../../../../projects/aca-shared/src/lib/components/page-layout/page-layout.module.ts","../../../../projects/aca-shared/src/lib/components/locked-by/locked-by.component.ts","../../../../projects/aca-shared/src/lib/components/locked-by/locked-by.module.ts","../../../../projects/aca-shared/src/lib/components/generic-error/generic-error.component.ts","../../../../projects/aca-shared/src/lib/components/generic-error/generic-error.component.html","../../../../projects/aca-shared/src/lib/components/generic-error/generic-error.module.ts","../../../../projects/aca-shared/src/lib/services/node-permission.service.ts","../../../../projects/aca-shared/src/lib/services/app.extension.service.ts","../../../../projects/aca-shared/src/lib/components/tool-bar/toolbar-menu-item/toolbar-menu-item.component.ts","../../../../projects/aca-shared/src/lib/components/tool-bar/toolbar-menu-item/toolbar-menu-item.component.html","../../../../projects/aca-shared/src/lib/components/tool-bar/toolbar-menu/toolbar-menu.component.ts","../../../../projects/aca-shared/src/lib/components/tool-bar/toolbar-menu/toolbar-menu.component.html","../../../../projects/aca-shared/src/lib/components/tool-bar/toolbar-button/toolbar-button.component.ts","../../../../projects/aca-shared/src/lib/components/tool-bar/toolbar-button/toolbar-button.component.html","../../../../projects/aca-shared/src/lib/components/tool-bar/toolbar-action/toolbar-action.component.ts","../../../../projects/aca-shared/src/lib/components/tool-bar/toolbar-action/toolbar-action.component.html","../../../../projects/aca-shared/src/lib/components/tool-bar/shared-toolbar.module.ts","../../../../projects/aca-shared/src/lib/components/info-drawer/info-drawer.component.ts","../../../../projects/aca-shared/src/lib/components/info-drawer/info-drawer.component.html","../../../../projects/aca-shared/src/lib/components/info-drawer/shared-info-drawer.module.ts","../../../../projects/aca-shared/src/lib/components/document-base-page/document-base-page.service.ts","../../../../projects/aca-shared/src/lib/utils/node.utils.ts","../../../../projects/aca-shared/src/lib/services/aca-file-auto-download.service.ts","../../../../projects/aca-shared/src/lib/components/document-base-page/document-base-page.component.ts","../../../../projects/aca-shared/src/lib/directives/contextmenu/contextmenu.directive.ts","../../../../projects/aca-shared/src/lib/directives/contextmenu/contextmenu.module.ts","../../../../projects/aca-shared/src/lib/directives/pagination.directive.ts","../../../../projects/aca-shared/src/lib/directives/shared.directives.module.ts","../../../../projects/aca-shared/src/lib/models/types.ts","../../../../projects/aca-shared/src/lib/models/viewer.rules.ts","../../../../projects/aca-shared/src/lib/models/modal-configuration.ts","../../../../projects/aca-shared/src/lib/routing/shared.guard.ts","../../../../projects/aca-shared/src/lib/services/app-hook.service.ts","../../../../projects/aca-shared/src/lib/services/alfresco-office-extension.service.ts","../../../../projects/aca-shared/src/lib/shared.module.ts","../../../../projects/aca-shared/src/lib/testing/lib-testing-module.ts","../../../../projects/aca-shared/src/public-api.ts","../../../../projects/aca-shared/src/alfresco-aca-shared.ts"],"sourcesContent":["/*!\n * Copyright © 2005-2023 Hyland Software, Inc. and its affiliates. All rights reserved.\n *\n * Alfresco Example Content Application\n *\n * This file is part of the Alfresco Example Content Application.\n * If the software was purchased under a paid Alfresco license, the terms of\n * the paid license agreement will prevail. Otherwise, the software is\n * provided under the following open source license terms:\n *\n * The Alfresco Example Content Application is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * The Alfresco Example Content Application is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * from Hyland Software. If not, see <http://www.gnu.org/licenses/>.\n */\n\nimport { Injectable, InjectionToken, Inject } from '@angular/core';\nimport { CanActivate, ActivatedRouteSnapshot } from '@angular/router';\nimport { Observable, forkJoin, of } from 'rxjs';\nimport { tap, map, catchError } from 'rxjs/operators';\n\nexport type ExtensionLoaderCallback = (route: ActivatedRouteSnapshot) => Observable<boolean>;\n\nexport const DefaultExtensionLoaderFactory = () => [];\n\nexport const EXTENSION_DATA_LOADERS = new InjectionToken<ExtensionLoaderCallback[]>('EXTENSION_DATA_LOADERS', {\n providedIn: 'root',\n factory: DefaultExtensionLoaderFactory\n});\n\n@Injectable({ providedIn: 'root' })\nexport class ExtensionsDataLoaderGuard implements CanActivate {\n private invoked = false;\n\n constructor(\n @Inject(EXTENSION_DATA_LOADERS)\n private extensionDataLoaders: ExtensionLoaderCallback[]\n ) {}\n\n canActivate(route: ActivatedRouteSnapshot): Observable<boolean> {\n if (!this.invoked) {\n if (!this.extensionDataLoaders.length) {\n this.invoked = true;\n return of(true);\n }\n\n const dataLoaderCallbacks = this.extensionDataLoaders.map((callback) => callback(route));\n\n // Undocumented forkJoin behaviour/bug:\n // https://github.com/ReactiveX/rxjs/issues/3246\n // So all callbacks need to emit before completion, otherwise forkJoin will short circuit\n return forkJoin(...dataLoaderCallbacks).pipe(\n map(() => true),\n tap(() => (this.invoked = true)),\n catchError((e) => {\n // eslint-disable-next-line no-console\n console.error('Some of the extension data loader guards has been errored.');\n // eslint-disable-next-line no-console\n console.error(e);\n return of(true);\n })\n );\n } else {\n return of(true);\n }\n }\n\n canActivateChild(): Observable<boolean> {\n return of(true);\n }\n}\n","/*!\n * Copyright © 2005-2023 Hyland Software, Inc. and its affiliates. All rights reserved.\n *\n * Alfresco Example Content Application\n *\n * This file is part of the Alfresco Example Content Application.\n * If the software was purchased under a paid Alfresco license, the terms of\n * the paid license agreement will prevail. Otherwise, the software is\n * provided under the following open source license terms:\n *\n * The Alfresco Example Content Application is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * The Alfresco Example Content Application is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * from Hyland Software. If not, see <http://www.gnu.org/licenses/>.\n */\n\nimport { Component, ViewEncapsulation, ChangeDetectionStrategy, Input, HostBinding } from '@angular/core';\n\n@Component({\n selector: 'aca-page-layout-content',\n template: `<ng-content></ng-content>`,\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: { class: 'aca-page-layout-content' }\n})\nexport class PageLayoutContentComponent {\n @Input()\n @HostBinding('class.scrollable')\n scrollable = false;\n}\n","/*!\n * Copyright © 2005-2023 Hyland Software, Inc. and its affiliates. All rights reserved.\n *\n * Alfresco Example Content Application\n *\n * This file is part of the Alfresco Example Content Application.\n * If the software was purchased under a paid Alfresco license, the terms of\n * the paid license agreement will prevail. Otherwise, the software is\n * provided under the following open source license terms:\n *\n * The Alfresco Example Content Application is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * The Alfresco Example Content Application is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * from Hyland Software. If not, see <http://www.gnu.org/licenses/>.\n */\n\nimport { Component, ViewEncapsulation, ChangeDetectionStrategy } from '@angular/core';\n\n@Component({\n selector: 'aca-page-layout-error',\n template: `<ng-content></ng-content>`,\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: { class: 'aca-page-layout-error' }\n})\nexport class PageLayoutErrorComponent {}\n","/*!\n * Copyright © 2005-2023 Hyland Software, Inc. and its affiliates. All rights reserved.\n *\n * Alfresco Example Content Application\n *\n * This file is part of the Alfresco Example Content Application.\n * If the software was purchased under a paid Alfresco license, the terms of\n * the paid license agreement will prevail. Otherwise, the software is\n * provided under the following open source license terms:\n *\n * The Alfresco Example Content Application is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * The Alfresco Example Content Application is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * from Hyland Software. If not, see <http://www.gnu.org/licenses/>.\n */\n\nimport { Component, ViewEncapsulation, ChangeDetectionStrategy } from '@angular/core';\n\n@Component({\n selector: 'aca-page-layout-header',\n template: '<ng-content></ng-content>',\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: { class: 'aca-page-layout-header' }\n})\nexport class PageLayoutHeaderComponent {}\n","/*!\n * 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 { AlfrescoApiService, UserPreferencesService } from '@alfresco/adf-core';\nimport { Observable, from } from 'rxjs';\nimport {\n MinimalNodeEntity,\n NodePaging,\n Node,\n DeletedNodesPaging,\n PersonEntry,\n NodeEntry,\n DiscoveryEntry,\n FavoritePaging,\n SharedLinkPaging,\n SearchRequest,\n ResultSetPaging,\n SiteBody,\n SiteEntry,\n FavoriteBody,\n FavoriteEntry,\n NodesApi,\n TrashcanApi,\n SharedlinksApi,\n DiscoveryApi,\n FavoritesApi,\n ContentApi,\n SitesApi,\n SearchApi,\n PeopleApi,\n VersionsApi,\n DirectAccessUrlEntry,\n VersionPaging\n} from '@alfresco/js-api';\nimport { map } from 'rxjs/operators';\n\n@Injectable({\n providedIn: 'root'\n})\nexport class ContentApiService {\n private _nodesApi: NodesApi;\n get nodesApi(): NodesApi {\n this._nodesApi = this._nodesApi ?? new NodesApi(this.api.getInstance());\n return this._nodesApi;\n }\n\n private _trashcanApi: TrashcanApi;\n get trashcanApi(): TrashcanApi {\n this._trashcanApi = this._trashcanApi ?? new TrashcanApi(this.api.getInstance());\n return this._trashcanApi;\n }\n\n private _sharedLinksApi: SharedlinksApi;\n get sharedLinksApi(): SharedlinksApi {\n this._sharedLinksApi = this._sharedLinksApi ?? new SharedlinksApi(this.api.getInstance());\n return this._sharedLinksApi;\n }\n\n private _discoveryApi: DiscoveryApi;\n get discoveryApi(): DiscoveryApi {\n this._discoveryApi = this._discoveryApi ?? new DiscoveryApi(this.api.getInstance());\n return this._discoveryApi;\n }\n\n private _favoritesApi: FavoritesApi;\n get favoritesApi(): FavoritesApi {\n this._favoritesApi = this._favoritesApi ?? new FavoritesApi(this.api.getInstance());\n return this._favoritesApi;\n }\n\n private _contentApi: ContentApi;\n get contentApi(): ContentApi {\n this._contentApi = this._contentApi ?? new ContentApi(this.api.getInstance());\n return this._contentApi;\n }\n\n private _sitesApi: SitesApi;\n get sitesApi(): SitesApi {\n this._sitesApi = this._sitesApi ?? new SitesApi(this.api.getInstance());\n return this._sitesApi;\n }\n\n private _searchApi: SearchApi;\n get searchApi(): SearchApi {\n this._searchApi = this._searchApi ?? new SearchApi(this.api.getInstance());\n return this._searchApi;\n }\n\n private _peopleApi: PeopleApi;\n get peopleApi(): PeopleApi {\n this._peopleApi = this._peopleApi ?? new PeopleApi(this.api.getInstance());\n return this._peopleApi;\n }\n\n private _versionsApi: VersionsApi;\n get versionsApi(): VersionsApi {\n this._versionsApi = this._versionsApi ?? new VersionsApi(this.api.getInstance());\n return this._versionsApi;\n }\n constructor(private api: AlfrescoApiService, private preferences: UserPreferencesService) {}\n\n /**\n * Moves a node to the trashcan.\n *\n * @param nodeId ID of the target node\n * @param options Optional parameters supported by JS-API\n * @returns Empty result that notifies when the deletion is complete\n */\n deleteNode(nodeId: string, options: { permanent?: boolean } = {}): Observable<void> {\n return from(this.nodesApi.deleteNode(nodeId, options));\n }\n\n /**\n * Gets the stored information about a node.\n *\n * @param nodeId ID of the target node\n * @param options Optional parameters supported by JS-API\n * @returns Node information\n */\n getNode(nodeId: string, options: any = {}): Observable<MinimalNodeEntity> {\n const defaults = {\n include: ['path', 'properties', 'allowableOperations', 'permissions', 'definition']\n };\n const queryOptions = Object.assign(defaults, options);\n\n return from(this.nodesApi.getNode(nodeId, queryOptions));\n }\n\n getNodeInfo(nodeId: string, options?: any): Observable<Node> {\n const defaults = {\n include: ['isFavorite', 'allowableOperations', 'path', 'definition']\n };\n const queryOptions = Object.assign(defaults, options || {});\n\n return from(\n new Promise<Node>((resolve, reject) => {\n this.nodesApi.getNode(nodeId, queryOptions).then(\n (nodeEntry: NodeEntry) => {\n resolve(nodeEntry.entry);\n },\n (error) => {\n reject(error);\n }\n );\n })\n );\n }\n\n /**\n * Gets the items contained in a folder node.\n *\n * @param nodeId ID of the target node\n * @param options Optional parameters supported by JS-API\n * @returns List of child items from the folder\n */\n getNodeChildren(nodeId: string, options: any = {}): Observable<NodePaging> {\n const defaults = {\n maxItems: this.preferences.paginationSize,\n skipCount: 0,\n include: ['isLocked', 'path', 'properties', 'allowableOperations', 'permissions']\n };\n const queryOptions = Object.assign(defaults, options);\n\n return from(this.nodesApi.listNodeChildren(nodeId, queryOptions));\n }\n\n deleteSharedLink(linkId: string): Observable<any> {\n return from(this.sharedLinksApi.deleteSharedLink(linkId));\n }\n\n getDeletedNodes(options: any = {}): Observable<DeletedNodesPaging> {\n const defaults = {\n include: ['path']\n };\n const queryOptions = Object.assign(defaults, options);\n\n return from(this.trashcanApi.listDeletedNodes(queryOptions));\n }\n\n restoreNode(nodeId: string): Observable<MinimalNodeEntity> {\n return from(this.trashcanApi.restoreDeletedNode(nodeId));\n }\n\n purgeDeletedNode(nodeId: string): Observable<any> {\n return from(this.trashcanApi.deleteDeletedNode(nodeId));\n }\n\n /**\n * Gets information about a user identified by their username.\n *\n * @param personId ID of the target user\n * @param options Api options\n * @returns User information\n */\n getPerson(personId: string, options?: { fields?: Array<string> }): Observable<PersonEntry> {\n return from(this.peopleApi.getPerson(personId, options));\n }\n\n /**\n * Copy a node to destination node\n *\n * @param nodeId The id of the node to be copied\n * @param targetParentId The id of the folder-node where the node have to be copied to\n * @param name The new name for the copy that would be added on the destination folder\n * @param opts Api options\n */\n copyNode(nodeId: string, targetParentId: string, name?: string, opts?: { include?: Array<string>; fields?: Array<string> }): Observable<NodeEntry> {\n return from(this.nodesApi.copyNode(nodeId, { targetParentId, name }, opts));\n }\n\n /**\n * Gets product information for Content Services.\n *\n * @returns ProductVersionModel containing product details\n */\n getRepositoryInformation(): Observable<DiscoveryEntry> {\n return from(this.discoveryApi.getRepositoryInformation());\n }\n\n getFavorites(\n personId: string,\n opts?: {\n skipCount?: number;\n maxItems?: number;\n where?: string;\n fields?: Array<string>;\n }\n ): Observable<FavoritePaging> {\n return from(this.favoritesApi.listFavorites(personId, opts));\n }\n\n getFavoriteLibraries(personId: string = '-me-', opts?: any): Observable<FavoritePaging> {\n return this.getFavorites(personId, {\n ...opts,\n where: '(EXISTS(target/site))'\n }).pipe(\n map((response: FavoritePaging) => ({\n list: {\n entries: response.list.entries.map(({ entry }: any) => {\n entry.target.site.createdAt = entry.createdAt;\n return {\n entry: entry.target.site\n };\n }),\n pagination: response.list.pagination\n }\n }))\n );\n }\n\n findSharedLinks(opts?: any): Observable<SharedLinkPaging> {\n return from(this.sharedLinksApi.listSharedLinks(opts));\n }\n\n getSharedLinkContent(sharedId: string, attachment?: boolean): string {\n return this.contentApi.getSharedLinkContentUrl(sharedId, attachment);\n }\n\n search(request: SearchRequest): Observable<ResultSetPaging> {\n return from(this.searchApi.search(request));\n }\n\n getContentUrl(nodeId: string, attachment?: boolean): string {\n return this.contentApi.getContentUrl(nodeId, attachment);\n }\n\n getVersionContentUrl(nodeId: string, versionId: string, attachment?: boolean): string {\n return this.contentApi.getVersionContentUrl(nodeId, versionId, attachment);\n }\n\n deleteSite(siteId?: string, opts?: { permanent?: boolean }): Observable<any> {\n return from(this.sitesApi.deleteSite(siteId, opts));\n }\n\n leaveSite(siteId?: string): Observable<any> {\n return from(this.sitesApi.deleteSiteMembership(siteId, '-me-'));\n }\n\n createSite(\n siteBody: SiteBody,\n opts?: {\n fields?: Array<string>;\n skipConfiguration?: boolean;\n skipAddToFavorites?: boolean;\n }\n ): Observable<SiteEntry> {\n return from(this.sitesApi.createSite(siteBody, opts));\n }\n\n getSite(siteId?: string, opts?: { relations?: Array<string>; fields?: Array<string> }): Observable<SiteEntry> {\n return from(this.sitesApi.getSite(siteId, opts));\n }\n\n updateLibrary(siteId: string, siteBody: SiteBody): Observable<SiteEntry> {\n return from(this.sitesApi.updateSite(siteId, siteBody));\n }\n\n addFavorite(nodes: Array<MinimalNodeEntity>): Observable<FavoriteEntry> {\n const payload: FavoriteBody[] = nodes.map((node) => {\n const { isFolder, nodeId, id } = node.entry as any;\n const siteId = node.entry['guid'];\n const type = siteId ? 'site' : isFolder ? 'folder' : 'file';\n const guid = siteId || nodeId || id;\n\n return {\n target: {\n [type]: {\n guid\n }\n }\n };\n });\n\n return from(this.favoritesApi.createFavorite('-me-', payload as any));\n }\n\n removeFavorite(nodes: Array<MinimalNodeEntity>): Observable<any> {\n return from(\n Promise.all(\n nodes.map((node: any) => {\n const id = node.entry.nodeId || node.entry.id;\n return this.favoritesApi.deleteFavorite('-me-', id);\n })\n )\n );\n }\n\n unlockNode(nodeId: string, opts?: any): Promise<MinimalNodeEntity> {\n return this.nodesApi.unlockNode(nodeId, opts);\n }\n\n getNodeVersions(nodeId: string, opts?: any): Observable<VersionPaging> {\n return from(this.versionsApi.listVersionHistory(nodeId, opts));\n }\n\n requestNodeDirectAccessUrl(nodeId: string): Observable<DirectAccessUrlEntry> {\n return from(this.nodesApi.requestDirectAccessUrl(nodeId));\n }\n\n requestVersionDirectAccessUrl(nodeId: string, versionId: string): Observable<DirectAccessUrlEntry> {\n return from(this.versionsApi.requestDirectAccessUrl(nodeId, versionId));\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 { Injectable, Type } from '@angular/core';\nimport { ExtensionService } from '@alfresco/adf-extensions';\nimport { ExtensionRoute } from '../models/types';\nimport { Router } from '@angular/router';\n\n@Injectable({\n providedIn: 'root'\n})\nexport class RouterExtensionService {\n defaults = {\n layout: 'app.layout.main',\n auth: ['app.auth']\n };\n\n constructor(private router: Router, protected extensions: ExtensionService) {}\n\n mapExtensionRoutes() {\n const routesWithoutParent = [];\n this.getApplicationRoutes().forEach((extensionRoute: ExtensionRoute) => {\n if (this.extensionRouteHasChild(extensionRoute)) {\n const parentRoute = this.findRoute(extensionRoute.parentRoute);\n if (parentRoute) {\n this.convertExtensionRouteToRoute(extensionRoute);\n parentRoute.children.unshift(extensionRoute);\n }\n } else {\n routesWithoutParent.push(extensionRoute);\n }\n });\n\n this.router.config.unshift(...routesWithoutParent);\n }\n\n public getApplicationRoutes(): Array<ExtensionRoute> {\n return this.extensions.routes.map((route) => {\n const guards = this.extensions.getAuthGuards(route.auth && route.auth.length > 0 ? route.auth : this.defaults.auth);\n\n return {\n path: route.path,\n component: this.getComponentById(route.layout ?? this.defaults.layout),\n canActivateChild: guards,\n canActivate: guards,\n parentRoute: route.parentRoute,\n children: [\n ...(route['children']\n ? route['children'].map(({ path, component, outlet, data }) => ({\n path,\n outlet,\n data,\n component: this.getComponentById(component)\n }))\n : []),\n {\n path: '',\n component: this.getComponentById(route.component),\n data: route.data\n }\n ]\n };\n });\n }\n\n private getComponentById(id: string): Type<unknown> {\n return this.extensions.getComponentById(id);\n }\n\n private extensionRouteHasChild(route: ExtensionRoute): boolean {\n return route.parentRoute !== undefined;\n }\n\n private convertExtensionRouteToRoute(extensionRoute: ExtensionRoute) {\n delete extensionRoute.parentRoute;\n delete extensionRoute.component;\n }\n\n private findRoute(parentRoute) {\n const routeIndex = this.router.config.findIndex((route) => route.path === parentRoute);\n\n return this.router.config[routeIndex];\n }\n}\n","/*!\n * Copyright © 2005-2023 Hyland Software, Inc. and its affiliates. All rights reserved.\n *\n * Alfresco Example Content Application\n *\n * This file is part of the Alfresco Example Content Application.\n * If the software was purchased under a paid Alfresco license, the terms of\n * the paid license agreement will prevail. Otherwise, the software is\n * provided under the following open source license terms:\n *\n * The Alfresco Example Content Application is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * The Alfresco Example Content Application is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * from Hyland Software. If not, see <http://www.gnu.org/licenses/>.\n */\n\nimport { Component, Inject, ViewEncapsulation } from '@angular/core';\nimport { MatDialogRef, MAT_DIALOG_DATA } from '@angular/material/dialog';\n\nexport interface OpenInAppDialogOptions {\n redirectUrl: string;\n}\n@Component({\n selector: 'aca-open-in-app',\n templateUrl: './open-in-app.component.html',\n styleUrls: ['./open-in-app.component.scss'],\n encapsulation: ViewEncapsulation.None\n})\nexport class OpenInAppComponent {\n private redirectUrl: string;\n public window: Window & typeof globalThis = window;\n\n constructor(\n @Inject(MAT_DIALOG_DATA)\n public data: OpenInAppDialogOptions,\n private dialog: MatDialogRef<OpenInAppComponent>\n ) {\n if (data) {\n this.redirectUrl = data.redirectUrl;\n }\n }\n\n openInApp(): void {\n this.window.location.href = this.redirectUrl;\n }\n\n onCloseDialog(): void {\n const time: number = new Date().getTime();\n sessionStorage.setItem('mobile_notification_expires_in', time.toString());\n this.dialog.close();\n }\n}\n","<div class=\"container\">\n <button mat-button (click)=\"openInApp()\" data-automation-id=\"open-in-app-button\" class=\"open-in-app\">\n <span>{{ 'APP.DIALOGS.MOBILE_APP.MOBILE_APP_BUTTON_LABEL' | translate }}</span>\n </button>\n <button mat-button (click)=\"onCloseDialog()\">\n <mat-icon>close</mat-icon>\n </button>\n</div>\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 { AppConfigService } from '@alfresco/adf-core';\nimport { Injectable } from '@angular/core';\nimport { MatDialog } from '@angular/material/dialog';\nimport { OpenInAppComponent } from '../components/open-in-app/open-in-app.component';\n\nexport interface MobileAppSwitchConfigurationOptions {\n enabled: string;\n iphoneUrl: string;\n androidUrlPart1: string;\n androidUrlPart2: string;\n sessionTimeForOpenAppDialogDisplay: string;\n}\n@Injectable({\n providedIn: 'root'\n})\nexport class AcaMobileAppSwitcherService {\n private mobileAppSwitchConfig: MobileAppSwitchConfigurationOptions;\n public redirectUrl: string;\n\n constructor(private config: AppConfigService, private dialog: MatDialog) {\n this.mobileAppSwitchConfig = this.config.get<MobileAppSwitchConfigurationOptions>('mobileAppSwitch');\n }\n\n resolveExistenceOfDialog(): void {\n const url: string = this.getCurrentUrl();\n const queryParams: string = url.split('?')[1];\n let queryParamsList = [];\n let hideBanner = false;\n if (queryParams !== null && queryParams !== undefined) {\n queryParamsList = queryParams.split('&');\n hideBanner = queryParamsList.some((param) => param.split('=')[0] === 'mobileapps' && param.split('=')[1] === 'true');\n }\n if (!hideBanner) {\n this.verifySessionExistsForDialog();\n }\n }\n\n verifySessionExistsForDialog(): void {\n const sessionTime: string = sessionStorage.getItem('mobile_notification_expires_in');\n if (sessionTime !== null) {\n const currentTime: number = new Date().getTime();\n const sessionConvertedTime: number = parseFloat(sessionTime);\n const timeDifference: number = (currentTime - sessionConvertedTime) / (1000 * 60 * 60);\n const sessionTimeForOpenAppDialogDisplay: number = parseFloat(this.mobileAppSwitchConfig.sessionTimeForOpenAppDialogDisplay);\n\n if (timeDifference > sessionTimeForOpenAppDialogDisplay) {\n this.clearSessionExpireTime();\n this.identifyBrowserAndSetRedirectURL();\n }\n } else {\n this.identifyBrowserAndSetRedirectURL();\n }\n }\n\n identifyBrowserAndSetRedirectURL(): void {\n const ua: string = navigator.userAgent.toLowerCase();\n const isAndroid: boolean = ua.indexOf('android') > -1;\n const isIOS: boolean = ua.indexOf('iphone') > -1 || ua.indexOf('ipad') > -1 || ua.indexOf('ipod') > -1;\n const currentUrl: string = this.getCurrentUrl();\n\n if (isIOS === true) {\n this.redirectUrl = this.mobileAppSwitchConfig.iphoneUrl + currentUrl;\n } else if (isAndroid === true) {\n this.redirectUrl = this.mobileAppSwitchConfig.androidUrlPart1 + currentUrl + this.mobileAppSwitchConfig.androidUrlPart2;\n }\n\n if (this.redirectUrl !== undefined && this.redirectUrl !== null) {\n this.openDialog(this.redirectUrl);\n }\n }\n\n openDialog(redirectUrl: string): void {\n this.dialog.open(OpenInAppComponent, {\n data: {\n redirectUrl\n },\n hasBackdrop: false,\n width: 'auto',\n role: 'dialog',\n position: { bottom: '20px' }\n });\n }\n\n clearSessionExpireTime(): void {\n sessionStorage.removeItem('mobile_notification_expires_in');\n }\n\n getCurrentUrl(): string {\n return window.location.href;\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 { Inject, Injectable, OnDestroy } from '@angular/core';\nimport { AuthenticationService, AppConfigService, AlfrescoApiService, PageTitleService, UserPreferencesService } from '@alfresco/adf-core';\nimport { Observable, BehaviorSubject, Subject } from 'rxjs';\nimport { GroupService, SearchQueryBuilderService, SharedLinksApiService, UploadService, FileUploadErrorEvent } from '@alfresco/adf-content-services';\nimport { OverlayContainer } from '@angular/cdk/overlay';\nimport { ActivatedRoute, ActivationEnd, NavigationStart, Router } from '@angular/router';\nimport { filter, map, tap } from 'rxjs/operators';\nimport {\n AppState,\n AppStore,\n CloseModalDialogsAction,\n getCustomCssPath,\n getCustomWebFontPath,\n STORE_INITIAL_APP_DATA,\n SetCurrentUrlAction,\n SetInitialStateAction,\n SetRepositoryInfoAction,\n SetUserProfileAction,\n SnackbarErrorAction,\n ResetSelectionAction\n} from '@alfresco/aca-shared/store';\nimport { ContentApiService } from './content-api.service';\nimport { RouterExtensionService } from './router.extension.service';\nimport { Store } from '@ngrx/store';\nimport { DiscoveryEntry, GroupEntry, Group } from '@alfresco/js-api';\nimport { AcaMobileAppSwitcherService } from './aca-mobile-app-switcher.service';\n\n@Injectable({\n providedIn: 'root'\n})\n// After moving shell to ADF to core, AppService will implement ShellAppService\nexport class AppService implements OnDestroy {\n private ready: BehaviorSubject<boolean>;\n ready$: Observable<boolean>;\n\n pageHeading$: Observable<string>;\n\n appNavNarMode$: Subject<'collapsed' | 'expanded'> = new BehaviorSubject('expanded');\n toggleAppNavBar$ = new Subject();\n\n hideSidenavConditions = ['/preview/'];\n minimizeSidenavConditions = ['search', 'about', 'profile'];\n\n onDestroy$ = new Subject<boolean>();\n\n /**\n * Whether `withCredentials` mode is enabled.\n * Usually means that `Kerberos` mode is used.\n */\n get withCredentials(): boolean {\n return this.config.get<boolean>('auth.withCredentials', false);\n }\n\n constructor(\n public preferencesService: UserPreferencesService,\n private authenticationService: AuthenticationService,\n private store: Store<AppStore>,\n private router: Router,\n private activatedRoute: ActivatedRoute,\n private config: AppConfigService,\n private pageTitle: PageTitleService,\n private alfrescoApiService: AlfrescoApiService,\n private uploadService: UploadService,\n private routerExtensionService: RouterExtensionService,\n private contentApi: ContentApiService,\n private sharedLinksApiService: SharedLinksApiService,\n private groupService: GroupService,\n private overlayContainer: OverlayContainer,\n @Inject(STORE_INITIAL_APP_DATA) private initialAppState: AppState,\n searchQueryBuilderService: SearchQueryBuilderService,\n private acaMobileAppSwitcherService: AcaMobileAppSwitcherService\n ) {\n this.ready = new BehaviorSubject(this.authenticationService.isLoggedIn() || this.withCredentials);\n this.ready$ = this.ready.asObservable();\n\n this.authenticationService.onLogin.subscribe(() => {\n this.ready.next(true);\n });\n\n this.authenticationService.onLogout.subscribe(() => {\n searchQueryBuilderService.resetToDefaults();\n });\n\n this.pageHeading$ = this.router.events.pipe(\n filter((event) => event instanceof ActivationEnd && event.snapshot.children.length === 0),\n map((event: ActivationEnd) => event.snapshot?.data?.title ?? ''),\n tap((title) => this.pageTitle.setTitle(title))\n );\n }\n\n ngOnDestroy(): void {\n this.onDestroy$.next(true);\n this.onDestroy$.complete();\n }\n\n init(): void {\n this.alfrescoApiService.getInstance().on('error', (error: { status: number; response: any }) => {\n if (error.status === 401 && !this.alfrescoApiService.isExcludedErrorListener(error?.response?.req?.url)) {\n if (!this.authenticationService.isLoggedIn()) {\n this.store.dispatch(new CloseModalDialogsAction());\n\n let redirectUrl = this.activatedRoute.snapshot.queryParams['redirectUrl'];\n if (!redirectUrl) {\n redirectUrl = this.router.url;\n }\n\n this.router.navigate(['/login'], {\n queryParams: { redirectUrl }\n });\n }\n }\n });\n\n this.loadAppSettings();\n\n this.loadCustomCss();\n this.loadCustomWebFont();\n\n const { router } = this;\n\n this.router.events\n .pipe(filter((event) => event instanceof ActivationEnd && event.snapshot.children.length === 0))\n .subscribe((_event: ActivationEnd) => {\n this.store.dispatch(new SetCurrentUrlAction(router.url));\n });\n\n this.router.events.pipe(filter((event) => event instanceof NavigationStart)).subscribe(() => {\n this.store.dispatch(new ResetSelectionAction());\n });\n\n this.routerExtensionService.mapExtensionRoutes();\n\n this.uploadService.fileUploadError.subscribe((error) => this.onFileUploadedError(error));\n\n this.sharedLinksApiService.error.subscribe((err: { message: string }) => {\n if (err?.message) {\n this.store.dispatch(new SnackbarErrorAction(err.message));\n }\n });\n\n this.ready$.subscribe((isReady) => {\n if (isReady) {\n this.loadRepositoryStatus();\n this.loadUserProfile();\n }\n });\n\n this.overlayContainer.getContainerElement().setAttribute('role', 'region');\n\n const isMobileSwitchEnabled: boolean = this.config.get<boolean>('mobileAppSwitch.enabled', false);\n if (isMobileSwitchEnabled) {\n this.acaMobileAppSwitcherService.resolveExistenceOfDialog();\n } else {\n this.acaMobileAppSwitcherService.clearSessionExpireTime();\n }\n }\n\n private loadRepositoryStatus() {\n this.contentApi.getRepositoryInformation().subscribe((response: DiscoveryEntry) => {\n if (response?.entry?.repository) {\n this.store.dispatch(new SetRepositoryInfoAction(response.entry.repository));\n }\n });\n }\n\n private async loadUserProfile() {\n const groupsEntries: GroupEntry[] = await this.groupService.listAllGroupMembershipsForPerson('-me-', { maxItems: 250 });\n\n const groups: Group[] = [];\n\n if (groupsEntries) {\n groups.push(...groupsEntries.map((obj) => obj.entry));\n }\n\n this.contentApi.getPerson('-me-').subscribe((person) => {\n this.store.dispatch(new SetUserProfileAction({ person: person.entry, groups }));\n });\n }\n\n loadAppSettings() {\n let baseShareUrl = this.config.get<string>('baseShareUrl', '');\n if (!baseShareUrl.endsWith('/')) {\n baseShareUrl += '/';\n }\n\n const state: AppState = {\n ...this.initialAppState,\n appName: this.config.get<string>('application.name'),\n logoPath: this.config.get<string>('application.logo'),\n customCssPath: this.config.get<string>('customCssPath'),\n webFontPath: this.config.get<string>('webFontPath'),\n sharedUrl: baseShareUrl\n };\n\n this.store.dispatch(new SetInitialStateAction(state));\n }\n\n onFileUploadedError(error: FileUploadErrorEvent) {\n let message = 'APP.MESSAGES.UPLOAD.ERROR.GENERIC';\n\n if (error?.error?.status === 403) {\n message = 'APP.MESSAGES.UPLOAD.ERROR.403';\n }\n\n if (error?.error?.status === 404) {\n message = 'APP.MESSAGES.UPLOAD.ERROR.404';\n }\n\n if (error?.error?.status === 409) {\n message = 'APP.MESSAGES.UPLOAD.ERROR.CONFLICT';\n }\n\n if (error?.error?.status === 500) {\n message = 'APP.MESSAGES.UPLOAD.ERROR.500';\n }\n\n if (error?.error?.status === 504) {\n message = 'APP.MESSAGES.UPLOAD.ERROR.504';\n }\n\n this.store.dispatch(new SnackbarErrorAction(message));\n }\n\n private loadCustomCss(): void {\n this.store.select(getCustomCssPath).subscribe((cssPath) => {\n if (cssPath) {\n this.createLink(cssPath);\n }\n });\n }\n\n private loadCustomWebFont(): void {\n this.store.select(getCustomWebFontPath).subscribe((fontUrl) => {\n if (fontUrl) {\n this.createLink(fontUrl);\n }\n });\n }\n\n private createLink(url: string): void {\n const cssLinkElement = document.createElement('link');\n cssLinkElement.setAttribute('rel', 'stylesheet');\n cssLinkElement.setAttribute('type', 'text/css');\n cssLinkElement.setAttribute('href', url);\n document.head.appendChild(cssLinkElement);\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 { Component, ViewEncapsulation, Input, OnDestroy } from '@angular/core';\nimport { Observable, Subject } from 'rxjs';\nimport { takeUntil } from 'rxjs/operators';\nimport { AppService } from '../../services/app.service';\n\n@Component({\n selector: 'aca-page-layout',\n templateUrl: './page-layout.component.html',\n styleUrls: ['./page-layout.component.scss'],\n encapsulation: ViewEncapsulation.None,\n host: { class: 'aca-page-layout' }\n})\nexport class PageLayoutComponent implements OnDestroy {\n @Input()\n hasError = false;\n\n private onDestroy$ = new Subject<boolean>();\n appNavNarMode$: Observable<'collapsed' | 'expanded'>;\n\n constructor(private appService: AppService) {\n this.appNavNarMode$ = appService.appNavNarMode$.pipe(takeUntil(this.onDestroy$));\n }\n\n toggleClick() {\n this.appService.toggleAppNavBar$.next();\n }\n\n ngOnDestroy() {\n this.onDestroy$.next(true);\n this.onDestroy$.complete();\n }\n}\n"," <div class=\"aca-content-header\">\n <button *ngIf=\"(appNavNarMode$ | async) === 'collapsed'\"\n mat-icon-button\n (click)=\"toggleClick()\"\n title=\"{{'APP.TOOLTIPS.EXPAND_NAVIGATION' | translate}}\">\n <mat-icon>menu</mat-icon>\n </button>\n <ng-content select=\"aca-page-layout-header\"></ng-content>\n </div>\n <ng-content select=\"aca-page-layout-error\" *ngIf=\"hasError\"></ng-content>\n <ng-content select=\"aca-page-layout-content\" *ngIf=\"!hasError\"></ng-content>\n","/*!\n * Copyright © 2005-2023 Hyland Software, Inc. and its affiliates. All rights reserved.\n *\n * Alfresco Example Content Application\n *\n * This file is part of the Alfresco Example Content Application.\n * If the software was purchased under a paid Alfresco license, the terms of\n * the paid license agreement will prevail. Otherwise, the software is\n * provided under the following open source license terms:\n *\n * The Alfresco Example Content Application is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * The Alfresco Example Content Application is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * from Hyland Software. If not, see <http://www.gnu.org/licenses/>.\n */\n\nimport { NgModule } from '@angular/core';\nimport { PageLayoutContentComponent } from './page-layout-content.component';\nimport { PageLayoutErrorComponent } from './page-layout-error.component';\nimport { PageLayoutHeaderComponent } from './page-layout-header.component';\nimport { PageLayoutComponent } from './page-layout.component';\nimport { CommonModule } from '@angular/common';\nimport { MatIconModule } from '@angular/material/icon';\nimport { TranslateModule } from '@ngx-translate/core';\nimport { MatButtonModule } from '@angular/material/button';\n\n@NgModule({\n imports: [CommonModule, MatIconModule, TranslateModule, MatButtonModule],\n declarations: [PageLayoutContentComponent, PageLayoutErrorComponent, PageLayoutHeaderComponent, PageLayoutComponent],\n exports: [PageLayoutContentComponent, PageLayoutErrorComponent, PageLayoutHeaderComponent, PageLayoutComponent]\n})\nexport class PageLayoutModule {}\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 { Component, Input, ChangeDetectionStrategy, ViewEncapsulation } from '@angular/core';\nimport { NodeEntry } from '@alfresco/js-api';\n\n@Component({\n selector: 'aca-locked-by',\n template: `\n <mat-icon class=\"locked_by--icon\">lock</mat-icon>\n <span class=\"locked_by--label\">{{ 'APP.LOCKED_BY' | translate }}</span>\n <span class=\"locked_by--name\">{{ text }}</span>\n `,\n styleUrls: ['./locked-by.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n host: {\n class: 'aca-locked-by'\n }\n})\nexport class LockedByComponent {\n @Input()\n node: NodeEntry;\n\n get text(): string {\n return this.node?.entry?.properties?.['cm:lockOwner']?.displayName;\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 { NgModule } from '@angular/core';\nimport { LockedByComponent } from './locked-by.component';\nimport { MatIconModule } from '@angular/material/icon';\nimport { CommonModule } from '@angular/common';\nimport { TranslateModule } from '@ngx-translate/core';\n\n@NgModule({\n imports: [CommonModule, MatIconModule, TranslateModule.forChild()],\n declarations: [LockedByComponent],\n exports: [LockedByComponent]\n})\nexport class LockedByModule {}\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 { Component, ViewEncapsulation, ChangeDetectionStrategy, Input } from '@angular/core';\n\n@Component({\n selector: 'aca-generic-error',\n templateUrl: './generic-error.component.html',\n styleUrls: ['./generic-error.component.scss'],\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: { class: 'aca-generic-error' }\n})\nexport class GenericErrorComponent {\n @Input()\n text = 'APP.MESSAGES.ERRORS.MISSING_CONTENT';\n}\n","<mat-icon>error</mat-icon>\n<p class=\"generic-error__title\">\n {{ text | translate }}\n</p>\n","/*!\n * Copyright © 2005-2023 Hyland Software, Inc. and its affiliates. All rights reserved.\n *\n * Alfresco Example Content Application\n *\n * This file is part of the Alfresco Example Content Application.\n * If the software was purchased under a paid Alfresco license, the terms of\n * the paid license agreement will prevail. Otherwise, the software is\n * provided under the following open source license terms:\n *\n * The Alfresco Example Content Application is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * The Alfresco Example Content Application is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * from Hyland Software. If not, see <http://www.gnu.org/licenses/>.\n */\n\nimport { NgModule } from '@angular/core';\nimport { GenericErrorComponent } from './generic-error.component';\nimport { MatIconModule } from '@angular/material/icon';\nimport { CommonModule } from '@angular/common';\nimport { TranslateModule } from '@ngx-translate/core';\n\n@NgModule({\n imports: [CommonModule, MatIconModule, TranslateModule.forChild()],\n declarations: [GenericErrorComponent],\n exports: [GenericErrorComponent]\n})\nexport class GenericErrorModule {}\n","/*!\n * 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 { NodePermissions } from '@alfresco/adf-extensions';\nimport { Node, SharedLink, SharedLinkEntry, NodeEntry } from '@alfresco/js-api';\n\nexport type PermissionSource = NodeEntry | SharedLinkEntry | Node;\n\nexport interface PermissionOptions {\n target?: string;\n operation?: string;\n}\n\n@Injectable({\n providedIn: 'root'\n})\nexport class NodePermissionService implements NodePermissions {\n static DEFAULT_OPERATION = 'OR';\n\n private defaultOptions: PermissionOptions = {\n operation: NodePermissionService.DEFAULT_OPERATION,\n target: null\n };\n\n check(source: PermissionSource | PermissionSource[], permissions: string[], options?: PermissionOptions): boolean {\n const opts = Object.assign({}, this.defaultOptions, options || {});\n\n if (!source) {\n return false;\n }\n\n if (Array.isArray(source)) {\n source = source.filter((item) => item);\n\n if (source.length > 0) {\n return source.every((node) => this.isOperationAllowed(node, permissions, opts));\n }\n return false;\n } else {\n return this.isOperationAllowed(source, permissions, opts);\n }\n }\n\n private isOperationAllowed(node: PermissionSource, permissions: string[], options: PermissionOptions): boolean {\n const allowableOperations = this.getAllowableOperations(node, options.target);\n\n if (allowableOperations.length) {\n if (options.operation === NodePermissionService.DEFAULT_OPERATION) {\n return permissions.some((permission) => allowableOperations.includes(permission));\n } else {\n return permissions.every((permission) => allowableOperations.includes(permission));\n }\n }\n\n return false;\n }\n\n private getAllowableOperations(node: PermissionSource, property?: string): string[] {\n let entry: Node | SharedLink;\n\n if ('entry' in node) {\n entry = node.entry;\n } else {\n entry = node;\n }\n\n if (property) {\n return entry[property] || [];\n }\n\n if ('allowableOperationsOnTarget' in entry) {\n return entry.allowableOperationsOnTarget || [];\n } else {\n return entry.allowableOperations || [];\n }\n }\n}\n","/*!\n * 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 { Store } from '@ngrx/store';\nimport { MatIconRegistry } from '@angular/material/icon';\nimport { DomSanitizer } from '@angular/platform-browser';\nimport { AppStore, getRuleContext } from '@alfresco/aca-shared/store';\nimport {\n SelectionState,\n NavigationState,\n ExtensionConfig,\n RuleEvaluator,\n ContentActionRef,\n ContentActionType,\n ExtensionLoaderService,\n SidebarTabRef,\n NavBarGroupRef,\n sortByOrder,\n reduceSeparators,\n reduceEmptyMenus,\n ExtensionService,\n ProfileState,\n mergeObjects,\n ExtensionRef,\n RuleContext,\n DocumentListPresetRef,\n IconRef,\n mergeArrays\n} from '@alfresco/adf-extensions';\nimport { AppConfigService, AuthenticationService, LogService } from '@alfresco/adf-core';\nimport { BehaviorSubject, Observable } from 'rxjs';\nimport { RepositoryInfo, NodeEntry } from '@alfresco/js-api';\nimport { ViewerRules } from '../models/viewer.rules';\nimport { SettingsGroupRef } from '../models/types';\nimport { NodePermissionService } from '../services/node-permission.service';\nimport { filter, map } from 'rxjs/operators';\nimport { ModalConfiguration } from '../models/modal-configuration';\n\n@Injectable({\n providedIn: 'root'\n})\nexport class AppExtensionService implements RuleContext {\n private _references = new BehaviorSubject<ExtensionRef[]>([]);\n\n navbar: Array<NavBarGroupRef> = [];\n sidebarTabs: Array<SidebarTabRef> = [];\n contentMetadata: any;\n search: any;\n viewerRules: ViewerRules = {};\n settingGroups: Array<SettingsGroupRef> = [];\n\n private _headerActions = new BehaviorSubject<Array<ContentActionRef>>([]);\n private _toolbarActions = new BehaviorSubject<Array<ContentActionRef>>([]);\n private _viewerToolbarActions = new BehaviorSubject<Array<ContentActionRef>>([]);\n private _sharedLinkViewerToolbarActions = new BehaviorSubject<Array<ContentActionRef>>([]);\n private _contextMenuActions = new BehaviorSubject<Array<ContentActionRef>>([]);\n private _openWithActions = new BehaviorSubject<Array<ContentActionRef>>([]);\n private _createActions = new BehaviorSubject<Array<ContentActionRef>>([]);\n private _mainActions = new BehaviorSubject<ContentActionRef>(null);\n private _sidebarActions = new BehaviorSubject<Array<ContentActionRef>>([]);\n\n documentListPresets: {\n files: Array<DocumentListPresetRef>;\n libraries: Array<DocumentListPresetRef>;\n favoriteLibraries: Array<DocumentListPresetRef>;\n shared: Array<DocumentListPresetRef>;\n recent: Array<DocumentListPresetRef>;\n favorites: Array<DocumentListPresetRef>;\n trashcan: Array<DocumentListPresetRef>;\n searchLibraries: Array<DocumentListPresetRef>;\n } = {\n files: [],\n libraries: [],\n favoriteLibraries: [],\n shared: [],\n recent: [],\n favorites: [],\n trashcan: [],\n searchLibraries: []\n };\n\n selection: SelectionState;\n navigation: NavigationState;\n profile: ProfileState;\n repository: RepositoryInfo;\n withCredentials: boolean;\n\n references$: Observable<ExtensionRef[]>;\n\n config: ExtensionConfig;\n\n constructor(\n public auth: AuthenticationService,\n protected store: Store<AppStore>,\n protected loader: ExtensionLoaderService,\n protected extensions: ExtensionService,\n public permissions: NodePermissionService,\n public appConfig: AppConfigService,\n protected matIconRegistry: MatIconRegistry,\n protected sanitizer: DomSanitizer,\n protected logger: LogService\n ) {\n this.references$ = this._references.asObservable();\n\n this.store.select(getRuleContext).subscribe((result) => {\n this.selection = result.selection;\n this.navigation = result.navigation;\n this.profile = result.profile;\n this.repository = result.repository;\n\n if (this.config) {\n this.setup(this.config);\n }\n });\n }\n\n async load() {\n this.config = await this.extensions.load();\n this.setup(this.config);\n }\n\n setup(config: ExtensionConfig) {\n if (!config) {\n this.logger.error('Extension configuration not found');\n return;\n }\n\n this.settingGroups = this.loader.getElements<SettingsGroupRef>(config, 'settings');\n\n this._headerActions.next(this.loader.getContentActions(config, 'features.header'));\n this._sidebarActions.next(this.loader.getContentActions(config, 'features.sidebar.toolbar'));\n this._toolbarActions.next(this.loader.getContentActions(config, 'features.toolbar'));\n this._viewerToolbarActions.next(this.loader.getContentActions(config, 'features.viewer.toolbarActions'));\n this._sharedLinkViewerToolbarActions.next(this.loader.getContentActions(config, 'features.viewer.shared.toolbarActions'));\n this._contextMenuActions.next(this.loader.getContentActions(config, 'features.contextMenu'));\n this._openWithActions.next(this.loader.getContentActions(config, 'features.viewer.openWith'));\n this._createActions.next(this.loader.getElements<ContentActionRef>(config, 'features.create'));\n this._mainActions.next(this.loader.getFeatures(config).mainAction);\n\n this.navbar = this.loadNavBar(config);\n this.sidebarTabs = this.loader.getElements<SidebarTabRef>(config, 'features.sidebar.tabs');\n this.contentMetadata = this.loadContentMetadata(config);\n this.search = this.loadSearchForms(config);\n\n this.documentListPresets = {\n files: this.getDocumentListPreset(config, 'files'),\n libraries: this.getDocumentListPreset(config, 'libraries'),\n favoriteLibraries: this.getDocumentListPreset(config, 'favoriteLibraries'),\n shared: this.getDocumentListPreset(config, 'shared'),\n recent: this.getDocumentListPreset(config, 'recent'),\n favorites: this.getDocumentListPreset(config, 'favorites'),\n trashcan: this.getDocumentListPreset(config, 'trashcan'),\n searchLibraries: this.getDocumentListPreset(config, 'search-libraries')\n };\n\n this.withCredentials = this.appConfig.get<boolean>('auth.withCredentials', false);\n\n if (config.features && config.features.viewer) {\n this.viewerRules = (config.features.viewer['rules'] as ViewerRules) || {};\n }\n\n this.registerIcons(config);\n\n const references = (config.$references || []).filter((entry) => typeof entry === 'object').map((entry) => entry as ExtensionRef);\n this._references.next(references);\n }\n\n protected registerIcons(config: ExtensionConfig) {\n const icons: Array<IconRef> = this.loader.getElements<IconRef>(config, 'features.icons').filter((entry) => !entry.disabled);\n\n for (const icon of icons) {\n const [ns, id] = icon.id.split(':');\n const value = icon.value;\n\n if (!value) {\n this.logger.warn(`Missing icon value for \"${icon.id}\".`);\n } else if (!ns || !id) {\n this.logger.warn(`Incorrect icon id format.`);\n } else {\n this.matIconRegistry.addSvgIconInNamespace(ns, id, this.sanitizer.bypassSecurityTrustResourceUrl(value));\n }\n }\n }\n\n protected loadNavBar(config: ExtensionConfig): Array<NavBarGroupRef> {\n return this.loader.getElements<NavBarGroupRef>(config, 'features.navbar');\n }\n\n protected getDocumentListPreset(config: ExtensionConfig, key: string): DocumentListPresetRef[] {\n return this.loader\n .getElements<DocumentListPresetRef>(config, `features.documentList.${key}`)\n .filter((group) => this.filterVisible(group))\n .filter((entry) => !entry.disabled)\n .sort(sortByOrder);\n }\n\n getApplicationNavigation(elements): Array<NavBarGroupRef> {\n return elements\n .filter((group) => this.filterVisible(group))\n .map((group) => ({\n ...group,\n items: (group.items || [])\n .filter((entry) => !entry.disabled)\n .filter((item) => this.filterVisible(item))\n .sort(sortByOrder)\n .map((item) => {\n if (item.children && item.children.length > 0) {\n item.children = item.children\n .filter((entry) => !entry.disabled)\n .filter((child) => this.filterVisible(child))\n .sort(sortByOrder)\n .map((child) => {\n if (child.component) {\n return {\n ...child\n };\n }\n\n if (!child.click) {\n const childRouteRef = this.extensions.getRouteById(child.route);\n const childUrl = `/${childRouteRef ? childRouteRef.path : child.route}`;\n return {\n ...child,\n url: childUrl\n };\n }\n\n return {\n ...child,\n action: child.click\n };\n });\n\n return {\n ...item\n };\n }\n\n if (item.component) {\n return { ...item };\n }\n\n if (!item.click) {\n const routeRef = this.extensions.getRouteById(item.route);\n const url = `/${routeRef ? routeRef.path : item.route}`;\n return {\n ...item,\n url\n };\n }\n\n return {\n ...item,\n action: item.click\n };\n })\n .reduce(reduceEmptyMenus, [])\n }));\n }\n\n loadContentMetadata(config: ExtensionConfig): any {\n const elements = this.loader.getElements<any>(config, 'features.content-metadata-presets');\n if (!elements.length) {\n return null;\n }\n\n let presets = {};\n presets = this.filterDisabled(mergeObjects(presets, ...elements));\n\n const metadata = this.appConfig.config['content-metadata'] || {};\n metadata.presets = presets;\n\n this.appConfig.config['content-metadata'] = metadata;\n return { presets };\n }\n\n loadSearchForms(config: ExtensionConfig): any {\n const elements = this.loader.getElements<any>(config, 'features.search');\n if (!elements.length) {\n return null;\n }\n\n const search = mergeArrays([], elements)\n .filter((entry) => !entry.disabled)\n .filter((entry) => this.filterVisible(entry))\n .sort(sortByOrder);\n\n this.appConfig.config['search'] = search;\n return search;\n }\n\n filterDisabled(object: Array<{ disabled: boolean }> | { disabled: boolean }) {\n if (Array.isArray(object)) {\n return object.filter((item) => !item.disabled).map((item) => this.filterDisabled(item));\n } else if (typeof object === 'object') {\n if (!object.disabled) {\n Object.keys(object).forEach((prop) => {\n object[prop] = this.filterDisabled(object[prop]);\n });\n return object;\n }\n } else {\n return object;\n }\n }\n\n getNavigationGroups(): Array<NavBarGroupRef> {\n return this.navbar;\n }\n\n getSidebarTabs(): Array<SidebarTabRef> {\n return this.sidebarTabs.filter((action) => this.filterVisible(action));\n }\n\n private setActionDisabledFromRule(action: ContentActionRef) {\n let disabled = false;\n\n if (action && action.rules && action.rules.enabled) {\n disabled = !this.extensions.evaluateRule(action.rules.enabled, this);\n }\n\n return {\n ...action,\n disabled\n };\n }\n\n getCreateActions(): Observable<Array<ContentActionRef>> {\n return this._createActions.pipe(\n map((createActions) =>\n createActions\n .filter((action) => this.filterVisible(action))\n .map((action) => this.copyAction(action))\n .map((action) => this.buildMenu(action))\n .map((action) => this.setActionDisabledFromRule(action))\n )\n );\n }\n\n getMainAction(): Observable<ContentActionRef> {\n return this._mainActions.pipe(\n filter((mainAction) => mainAction && this.filterVisible(mainAction)),\n map((mainAction) => {\n let actionCopy = this.copyAction(mainAction);\n actionCopy = this.setActionDisabledFromRule(actionCopy);\n return actionCopy;\n })\n );\n }\n\n private buildMenu(actionRef: ContentActionRef): ContentActionRef {\n if (actionRef.type === ContentActionType.menu && actionRef.children && actionRef.children.length > 0) {\n const children = actionRef.children.filter((action) => this.filterVisible(action)).map((action) => this.buildMenu(action));\n\n actionRef.children = children\n .map((action) => this.setActionDisabledFromRule(action))\n .sort(sortByOrder)\n .reduce(reduceEmptyMenus, [])\n .reduce(reduceSeparators, []);\n }\n\n return actionRef;\n }\n\n private getAllowedActions(actions: ContentActionRef[]): ContentActionRef[] {\n return (actions || [])\n .filter((action) => this.filterVisible(action))\n .map((action) => {\n if (action.type === ContentActionType.menu) {\n const copy = this.copyAction(action);\n if (copy.children && copy.children.length > 0) {\n copy.children = copy.children\n .filter((entry) => !entry.disabled)\n .filter((childAction) => this.filterVisible(childAction))\n .sort(sortByOrder)\n .reduce(reduceSeparators, []);\n }\n return copy;\n }\n return action;\n })\n .map((action) => this.setActionDisabledFromRule(action))\n .reduce(reduceEmptyMenus, [])\n .reduce(reduceSeparators, []);\n }\n\n getAllowedSidebarActions(): Observable<Array<ContentActionRef>> {\n return this._sidebarActions.pipe(map((sidebarActions) => this.getAllowedActions(sidebarActions)));\n }\n\n getAllowedToolbarActions(): Observable<Array<ContentActionRef>> {\n return this._toolbarActions.pipe(map((toolbarActions) => this.getAllowedActions(toolbarActions)));\n }\n\n getViewerToolbarActions(): Observable<Array<ContentActionRef>> {\n return this._viewerToolbarActions.pipe(map((viewerToolbarActions) => this.getAllowedActions(viewerToolbarActions)));\n }\n\n getOpenWithActions(): Observable<Array<ContentActionRef>> {\n return this._openWithActions.pipe(map((openWithActions) => this.getAllowedActions(openWithActions)));\n }\n\n getSharedLinkViewerToolbarActions(): Observable<Array<ContentActionRef>> {\n return this._sharedLinkViewerToolbarActions.pipe(\n map((sharedLinkViewerToolbarActions) => (!this.selection.isEmpty ? this.getAllowedActions(sharedLinkViewerToolbarActions) : []))\n );\n }\n\n getHeaderActions(): Observable<Array<ContentActionRef>> {\n return this._headerActions.pipe(\n map((headerActions) =>\n headerActions\n .filter((action) => this.filterVisible(action))\n .map((action) => {\n if (action.type === ContentActionType.menu) {\n const copy = this.copyAction(action);\n if (copy.children && copy.children.length > 0) {\n copy.children = copy.children\n .filter((childAction) => this.filterVisible(childAction))\n .sort(sortByOrder)\n .reduce(reduceEmptyMenus, [])\n .reduce(reduceSeparators, []);\n }\n return copy;\n }\n\n return action;\n })\n .map((action) => this.setActionDisabledFromRule(action))\n .sort(sortByOrder)\n .reduce(reduceEmptyMenus, [])\n .reduce(reduceSeparators, [])\n )\n );\n }\n\n getAllowedContextMenuActions(): Observable<Array<ContentActionRef>> {\n return this._contextMenuActions.pipe(map((contextMenuActions) => (!this.selection.isEmpty ? this.getAllowedActions(contextMenuActions) : [])));\n }\n\n getSettingsGroups(): Array<SettingsGroupRef> {\n return this.settingGroups.filter((group) => this.filterVisible(group));\n }\n\n copyAction(action: ContentActionRef): ContentActionRef {\n return {\n ...action,\n children: (action.children || []).map((child) => this.copyAction(child))\n };\n }\n\n filterVisible(action: ContentActionRef | SettingsGroupRef | SidebarTabRef | DocumentListPresetRef): boolean {\n if (action && action.rules && action.rules.visible) {\n return this.extensions.evaluateRule(action.rules.visible, this);\n }\n return true;\n }\n\n isViewerExtensionDisabled(extension: any): boolean {\n if (extension) {\n if (extension.disabled) {\n return true;\n }\n\n if (extension.rules && extension.rules.disabled) {\n return this.extensions.evaluateRule(extension.rules.disabled, this);\n }\n }\n\n return false;\n }\n\n runActionById(id: string, additionalPayload?: ModalConfiguration) {\n const action = this.extensions.getActionById(id);\n if (action) {\n const { type, payload } = action;\n const context = {\n selection: this.selection\n };\n const expression = this.extensions.runExpression(payload, context);\n\n this.store.dispatch({\n type,\n payload: expression,\n configuration: additionalPayload\n });\n } else {\n this.store.dispatch({\n type: id,\n configuration: additionalPayload\n });\n }\n }\n\n // todo: move to ADF/RuleService\n isRuleDefined(ruleId: string): boolean {\n return !!(ruleId && this.getEvaluator(ruleId));\n }\n\n // todo: move to ADF/RuleService\n evaluateRule(ruleId: string, ...args: any[]): boolean {\n const evaluator = this.getEvaluator(ruleId);\n\n if (evaluator) {\n return evaluator(this, ...args);\n }\n\n return false;\n }\n\n getEvaluator(key: string): RuleEvaluator {\n return this.extensions.getEvaluator(key);\n }\n\n canPreviewNode(node: NodeEntry) {\n const rules = this.viewerRules;\n\n if (this.isRuleDefined(rules.canPreview)) {\n const canPreview = this.evaluateRule(rules.canPreview, node);\n\n if (!canPreview) {\n return false;\n }\n }\n\n return true;\n }\n\n canShowViewerNavigation(node: NodeEntry) {\n const rules = this.viewerRules;\n\n if (this.isRuleDefined(rules.showNavigation)) {\n const showNavigation = this.evaluateRule(rules.showNavigation, node);\n if (!showNavigation) {\n return false;\n }\n }\n\n return true;\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 { Component, Input, ViewChild, ViewEncapsulation } from '@angular/core';\nimport { ContentActionRef } from '@alfresco/adf-extensions';\nimport { AppExtensionService } from '../../../services/app.extension.service';\nimport { MatMenuItem } from '@angular/material/menu';\n\n@Component({\n selector: 'app-toolbar-menu-item',\n templateUrl: './toolbar-menu-item.component.html',\n styles: [\n `\n .app-toolbar-menu-item:last-child > .mat-divider-horizontal {\n display: none;\n }\n `\n ],\n encapsulation: ViewEncapsulation.None,\n host: { class: 'app-toolbar-menu-item' }\n})\nexport class ToolbarMenuItemComponent {\n @Input()\n actionRef: ContentActionRef;\n @Input()\n menuId?: string;\n\n @ViewChild(MatMenuItem)\n menuItem: MatMenuItem;\n\n constructor(private extensions: AppExtensionService) {}\n\n runAction() {\n if (this.hasClickAction(this.actionRef)) {\n this.extensions.runActionById(\n this.actionRef.actions.click,\n this.menuId\n ? {\n focusedElementOnCloseSelector: `#${this.menuId.replace(/\\./g, '\\\\.')}`\n }\n : undefined\n );\n }\n }\n\n private hasClickAction(actionRef: ContentActionRef): boolean {\n return !!(actionRef && actionRef.actions && actionRef.actions.click);\n }\n\n trackByActionId(_: number, obj: ContentActionRef): string {\n return obj.id;\n }\n}\n","<ng-container [ngSwitch]=\"actionRef.type\">\n <ng-container *ngSwitchCase=\"'menu'\">\n <button [id]=\"actionRef.id\" mat-menu-item role=\"menuitem\" tabindex=\"0\" [disabled]=\"actionRef.disabled\" [matMenuTriggerFor]=\"childMenu\">\n <adf-icon [value]=\"actionRef.icon\"></adf-icon>\n <span data-automation-id=\"menu-item-title\">{{ actionRef.title | translate }}</span>\n </button>\n\n <mat-menu #childMenu=\"matMenu\" class=\"app-create-menu__sub-menu\">\n <ng-container *ngFor=\"let child of actionRef.children; trackBy: trackByActionId\">\n <app-toolbar-menu-item [actionRef]=\"child\"></app-toolbar-menu-item>\n </ng-container>\n </mat-menu>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"'separator'\">\n <mat-divider></mat-divider>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"'custom'\">\n <adf-dynamic-component [id]=\"actionRef.component\"></adf-dynamic-component>\n </ng-container>\n\n <ng-container *ngSwitchDefault>\n <button\n [id]=\"actionRef.id\"\n role=\"menuitem\"\n mat-menu-item\n [role]=\"'menuitem'\"\n tabindex=\"0\"\n [disabled]=\"actionRef.disabled\"\n [attr.title]=\"(actionRef.disabled ? actionRef['description-disabled'] : actionRef.description || actionRef.title) | translate\"\n (click)=\"runAction()\"\n >\n <adf-icon [value]=\"actionRef.icon\"></adf-icon>\n <span data-automation-id=\"menu-item-title\">{{ actionRef.title | translate }}</span>\n </button>\n </ng-container>\n</ng-container>\n","/*!\n * Copyright © 2005-2023 Hyland Software, Inc. and its affiliates. All rights reserved.\n *\n * Alfresco Example Content Application\n *\n * This file is part of the Alfresco Example Content Application.\n * If the software was purchased under a paid Alfresco license, the terms of\n * the paid license agreement will prevail. Otherwise, the software is\n * provided under the following open source license terms:\n *\n * The Alfresco Example Content Application is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * The Alfresco Example Content Application is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * from Hyland Software. If not, see <http://www.gnu.org/licenses/>.\n */\n\nimport { Component, Input, ViewEncapsulation, HostListener, ViewChild, ViewChildren, QueryList, AfterViewInit } from '@angular/core';\nimport { ContentActionRef } from '@alfresco/adf-extensions';\nimport { MatMenu, MatMenuItem, MatMenuTrigger } from '@angular/material/menu';\nimport { ThemePalette } from '@angular/material/core';\nimport { ToolbarMenuItemComponent } from '../toolbar-menu-item/toolbar-menu-item.component';\n\n@Component({\n selector: 'app-toolbar-menu',\n templateUrl: './toolbar-menu.component.html',\n encapsulation: ViewEncapsulation.None,\n host: { class: 'app-toolbar-menu' }\n})\nexport class ToolbarMenuComponent implements AfterViewInit {\n @Input()\n actionRef: ContentActionRef;\n\n @Input()\n color: ThemePalette;\n\n @ViewChild('matTrigger')\n matTrigger: MatMenuTrigger;\n\n @ViewChild(MatMenu)\n menu: MatMenu;\n\n @ViewChildren(ToolbarMenuItemComponent)\n toolbarMenuItems: QueryList<ToolbarMenuItemComponent>;\n\n @Input()\n data: {\n menuType?: string;\n color?: string;\n };\n\n get type(): string {\n return this.data?.menuType || 'default';\n }\n\n @HostListener('document:keydown.Escape')\n handleKeydownEscape() {\n this.matTrigger.closeMenu();\n }\n\n ngAfterViewInit(): void {\n const menuItems: MatMenuItem[] = [];\n this.toolbarMenuItems.forEach((toolbarMenuItem: ToolbarMenuItemComponent) => {\n if (toolbarMenuItem.menuItem !== undefined) {\n menuItems.push(toolbarMenuItem.menuItem);\n }\n });\n const menuItemsQueryList: QueryList<MatMenuItem> = new QueryList<MatMenuItem>();\n menuItemsQueryList.reset(menuItems);\n this.menu._allItems = menuItemsQueryList;\n this.menu.ngAfterContentInit();\n }\n\n trackByActionId(_: number, obj: ContentActionRef): string {\n return obj.id;\n }\n}\n","<ng-container [ngSwitch]=\"type\">\n <ng-container *ngSwitchCase=\"'button'\">\n <button\n [id]=\"actionRef.id\"\n [color]=\"data?.color || color\"\n mat-button\n [attr.aria-label]=\"actionRef.description || actionRef.title | translate\"\n [attr.title]=\"actionRef.description || actionRef.title | translate\"\n [matMenuTriggerFor]=\"menu\"\n [disabled]=\"actionRef.disabled\"\n #matTrigger=\"matMenuTrigger\"\n >\n <span *ngIf=\"actionRef.title\" data-automation-id=\"menu-item-title\">{{ actionRef.title | translate }}</span>\n </button>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"'flat-button'\">\n <button\n [id]=\"actionRef.id\"\n [color]=\"data?.color || color\"\n mat-flat-button\n [attr.aria-label]=\"actionRef.description || actionRef.title | translate\"\n [attr.title]=\"actionRef.description || actionRef.title | translate\"\n [matMenuTriggerFor]=\"menu\"\n [disabled]=\"actionRef.disabled\"\n #matTrigger=\"matMenuTrigger\"\n >\n <span *ngIf=\"actionRef.title\" data-automation-id=\"menu-item-title\">{{ actionRef.title | translate }}</span>\n </button>\n </ng-container>\n\n <ng-container *ngSwitchDefault>\n <button\n [id]=\"actionRef.id\"\n [color]=\"data?.color || color\"\n mat-icon-button\n [attr.aria-label]=\"actionRef.description || actionRef.title | translate\"\n [attr.title]=\"actionRef.description || actionRef.title | translate\"\n [matMenuTriggerFor]=\"menu\"\n [disabled]=\"actionRef.disabled\"\n #matTrigger=\"matMenuTrigger\"\n >\n <adf-icon *ngIf=\"actionRef.icon\" [value]=\"actionRef.icon\"></adf-icon>\n </button>\n </ng-container>\n</ng-container>\n\n<mat-menu #menu=\"matMenu\" [overlapTrigger]=\"false\">\n <ng-container *ngFor=\"let child of actionRef.children; trackBy: trackByActionId\">\n <ng-container [ngSwitch]=\"child.type\">\n <ng-container *ngSwitchCase=\"'custom'\">\n <adf-dynamic-component [id]=\"child.component\" [data]=\"child.data\"></adf-dynamic-component>\n </ng-container>\n <ng-container *ngSwitchDefault>\n <app-toolbar-menu-item [actionRef]=\"child\" [menuId]=\"actionRef.id\"></app-toolbar-menu-item>\n </ng-container>\n </ng-container>\n </ng-container>\n</mat-menu>\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 { Component, Input, ViewEncapsulation } from '@angular/core';\nimport { ContentActionRef } from '@alfresco/adf-extensions';\nimport { AppExtensionService } from '../../../services/app.extension.service';\nimport { ThemePalette } from '@angular/material/core';\n\nexport enum ToolbarButtonType {\n ICON_BUTTON = 'icon-button',\n FLAT_BUTTON = 'flat-button',\n MENU_ITEM = 'menu-item'\n}\n\n@Component({\n selector: 'app-toolbar-button',\n templateUrl: './toolbar-button.component.html',\n encapsulation: ViewEncapsulation.None,\n host: { class: 'app-toolbar-button' }\n})\nexport class ToolbarButtonComponent {\n @Input()\n data: {\n buttonType?: ToolbarButtonType;\n color?: string;\n };\n\n @Input()\n type: ToolbarButtonType = ToolbarButtonType.ICON_BUTTON;\n\n @Input()\n color: ThemePalette;\n\n @Input()\n actionRef: ContentActionRef;\n\n constructor(private extensions: AppExtensionService) {}\n\n runAction() {\n if (this.hasClickAction(this.actionRef)) {\n this.extensions.runActionById(this.actionRef.actions.click, {\n focusedElementOnCloseSelector: `#${this.actionRef.id.replace(/\\./g, '\\\\.')}`\n });\n }\n }\n\n private hasClickAction(actionRef: ContentActionRef): boolean {\n return !!(actionRef && actionRef.actions && actionRef.actions.click);\n }\n}\n","<ng-container [ngSwitch]=\"data?.buttonType || type\">\n <ng-container *ngSwitchCase=\"'icon-button'\">\n <button\n [id]=\"actionRef.id\"\n mat-icon-button\n [color]=\"color\"\n [attr.aria-label]=\"actionRef.description || actionRef.title | translate\"\n [attr.title]=\"actionRef.description || actionRef.title | translate\"\n [disabled]=\"actionRef.disabled\"\n (click)=\"runAction()\"\n >\n <adf-icon [value]=\"actionRef.icon\"></adf-icon>\n </button>\n </ng-container>\n <ng-container *ngSwitchCase=\"'flat-button'\">\n <button\n [id]=\"actionRef.id\"\n [color]=\"data?.color || color\"\n mat-flat-button\n [attr.aria-label]=\"actionRef.description || actionRef.title | translate\"\n [attr.title]=\"actionRef.description || actionRef.title | translate\"\n [disabled]=\"actionRef.disabled\"\n (click)=\"runAction()\"\n >\n <span *ngIf=\"actionRef.title\" data-automation-id=\"flat-button-title\">{{ actionRef.title | translate }}</span>\n </button>\n </ng-container>\n <ng-container *ngSwitchCase=\"'menu-item'\">\n <app-toolbar-menu-item [actionRef]=\"actionRef\"></app-toolbar-menu-item>\n </ng-container>\n</ng-container>\n","/*!\n * Copyright © 2005-2023 Hyland Software, Inc. and its affiliates. All rights reserved.\n *\n * Alfresco Example Content Application\n *\n * This file is part of the Alfresco Example Content Application.\n * If the software was purchased under a paid Alfresco license, the terms of\n * the paid license agreement will prevail. Otherwise, the software is\n * provided under the following open source license terms:\n *\n * The Alfresco Example Content Application is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * The Alfresco Example Content Application is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * from Hyland Software. If not, see <http://www.gnu.org/licenses/>.\n */\n\nimport { Component, ViewEncapsulation, ChangeDetectionStrategy, Input, DoCheck, ChangeDetectorRef } from '@angular/core';\nimport { ContentActionRef } from '@alfresco/adf-extensions';\nimport { ToolbarButtonType } from '../toolbar-button/toolbar-button.component';\nimport { ThemePalette } from '@angular/material/core';\n\n@Component({\n selector: 'aca-toolbar-action',\n templateUrl: './toolbar-action.component.html',\n styleUrls: ['./toolbar-action.component.scss'],\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: { class: 'aca-toolbar-action' }\n})\nexport class ToolbarActionComponent implements DoCheck {\n @Input()\n data: {\n buttonType?: ToolbarButtonType;\n color?: string;\n };\n\n @Input()\n type: ToolbarButtonType = ToolbarButtonType.ICON_BUTTON;\n\n @Input()\n color: ThemePalette;\n\n @Input()\n actionRef: ContentActionRef;\n\n constructor(private cd: ChangeDetectorRef) {}\n\n // todo: review after ADF 2.6\n // preview component : change detection workaround for children without input\n ngDoCheck() {\n if (this.actionRef.id.includes('app.viewer')) {\n this.cd.markForCheck();\n }\n }\n}\n","<ng-container [ngSwitch]=\"actionRef.type\">\n <ng-container *ngSwitchCase=\"'default'\">\n <app-toolbar-button [type]=\"type\" [actionRef]=\"actionRef\" [color]=\"color\"> </app-toolbar-button>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"'button'\">\n <app-toolbar-button [type]=\"data?.buttonType || type\" [actionRef]=\"actionRef\" [color]=\"color\" [data]=\"actionRef.data\"> </app-toolbar-button>\n </ng-container>\n\n <adf-toolbar-divider *ngSwitchCase=\"'separator'\" [id]=\"actionRef.id\"></adf-toolbar-divider>\n\n <ng-container *ngSwitchCase=\"'menu'\">\n <app-toolbar-menu [actionRef]=\"actionRef\" [color]=\"color\" [data]=\"actionRef.data\"></app-toolbar-menu>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"'custom'\">\n <adf-dynamic-component [data]=\"actionRef.data\" [id]=\"actionRef.component\"></adf-dynamic-component>\n </ng-container>\n</ng-container>\n","/*!\n * Copyright © 2005-2023 Hyland Software, Inc. and its affiliates. All rights reserved.\n *\n * Alfresco Example Content Application\n *\n * This file is part of the Alfresco Example Content Application.\n * If the software was purchased under a paid Alfresco license, the terms of\n * the paid license agreement will prevail. Otherwise, the software is\n * provided under the following open source license terms:\n *\n * The Alfresco Example Content Application is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * The Alfresco Example Content Application is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * from Hyland Software. If not, see <http://www.gnu.org/licenses/>.\n */\n\nimport { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { ToolbarMenuItemComponent } from './toolbar-menu-item/toolbar-menu-item.component';\nimport { ToolbarMenuComponent } from './toolbar-menu/toolbar-menu.component';\nimport { ToolbarActionComponent } from './toolbar-action/toolbar-action.component';\nimport { ToolbarButtonComponent } from './toolbar-button/toolbar-button.component';\nimport { CoreModule } from '@alfresco/adf-core';\nimport { ExtensionsModule } from '@alfresco/adf-extensions';\n\n@NgModule({\n imports: [CommonModule, CoreModule, ExtensionsModule],\n declarations: [ToolbarButtonComponent, ToolbarActionComponent, ToolbarMenuItemComponent, ToolbarMenuComponent],\n exports: [ToolbarButtonComponent, ToolbarActionComponent, ToolbarMenuItemComponent, ToolbarMenuComponent]\n})\nexport class SharedToolbarModule {}\n","/*!\n * Copyright © 2005-2023 Hyland Software, Inc. and its affiliates. All rights reserved.\n *\n * Alfresco Example Content Application\n *\n * This file is part of the Alfresco Example Content Application.\n * If the software was purchased under a paid Alfresco license, the terms of\n * the paid license agreement will prevail. Otherwise, the software is\n * provided under the following open source license terms:\n *\n * The Alfresco Example Content Application is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * The Alfresco Example Content Application is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * from Hyland Software. If not, see <http://www.gnu.org/licenses/>.\n */\n\nimport { Component, HostListener, Input, OnChanges, OnDestroy, OnInit } from '@angular/core';\nimport { MinimalNodeEntity, MinimalNodeEntryEntity, SiteEntry } from '@alfresco/js-api';\nimport { ContentActionRef, SidebarTabRef } from '@alfresco/adf-extensions';\nimport { Store } from '@ngrx/store';\nimport { SetInfoDrawerStateAction, ToggleInfoDrawerAction, infoDrawerPreview } from '@alfresco/aca-shared/store';\nimport { AppExtensionService } from '../../services/app.extension.service';\nimport { ContentApiService } from '../../services/content-api.service';\nimport { takeUntil } from 'rxjs/operators';\nimport { Subject } from 'rxjs';\nimport { ThemePalette } from '@angular/material/core';\n@Component({\n selector: 'aca-info-drawer',\n templateUrl: './info-drawer.component.html'\n})\nexport class InfoDrawerComponent implements OnChanges, OnInit, OnDestroy {\n @Input()\n nodeId: string;\n\n @Input()\n node: MinimalNodeEntity;\n\n isLoading = false;\n displayNode: MinimalNodeEntryEntity | SiteEntry;\n tabs: Array<SidebarTabRef> = [];\n actions: Array<ContentActionRef> = [];\n onDestroy$ = new Subject<boolean>();\n preventFromClosing = false;\n\n @HostListener('keydown.escape')\n onEscapeKeyboardEvent(): void {\n this.close();\n }\n\n constructor(private store: Store<any>, private contentApi: ContentApiService, private extensions: AppExtensionService) {}\n\n ngOnInit() {\n this.tabs = this.extensions.getSidebarTabs();\n this.extensions\n .getAllowedSidebarActions()\n .pipe(takeUntil(this.onDestroy$))\n .subscribe((actions) => {\n this.actions = actions;\n });\n\n this.store\n .select(infoDrawerPreview)\n .pipe(takeUntil(this.onDestroy$))\n .subscribe((isInfoDrawerPreviewOpened) => {\n this.preventFromClosing = isInfoDrawerPreviewOpened;\n });\n }\n\n ngOnDestroy() {\n this.onDestroy$.next(true);\n this.onDestroy$.complete();\n if (!this.preventFromClosing) {\n this.store.dispatch(new SetInfoDrawerStateAction(false));\n }\n }\n\n ngOnChanges() {\n if (this.node) {\n if (this.node['isLibrary']) {\n return this.setDisplayNode(this.node);\n }\n\n const entry: any = this.node.entry;\n\n const id = entry.nodeId || entry.id;\n return this.loadNodeInfo(id);\n }\n }\n\n trackByActionId(_: number, action: ContentActionRef) {\n return action.id;\n }\n\n getEntryColor(entry: any): ThemePalette {\n return entry?.color;\n }\n\n private close() {\n this.store.dispatch(new ToggleInfoDrawerAction());\n }\n\n private loadNodeInfo(nodeId: string) {\n if (nodeId) {\n this.isLoading = true;\n\n this.contentApi.getNodeInfo(nodeId).subscribe(\n (entity) => {\n this.setDisplayNode(entity);\n this.isLoading = false;\n },\n () => (this.isLoading = false)\n );\n }\n }\n\n private setDisplayNode(node: any) {\n this.displayNode = node;\n }\n}\n","<div *ngIf=\"isLoading\">\n <mat-progress-bar mode=\"indeterminate\" [attr.aria-label]=\"'APP.INFO_DRAWER.DATA_LOADING' | translate\"></mat-progress-bar>\n</div>\n<ng-container *ngIf=\"!isLoading && !!displayNode\">\n <adf-info-drawer [title]=\"'APP.INFO_DRAWER.TITLE'\" cdkTrapFocus cdkTrapFocusAutoCapture>\n <adf-toolbar class=\"adf-toolbar--inline\" info-drawer-buttons>\n <ng-container *ngFor=\"let entry of actions; trackBy: trackByActionId\">\n <aca-toolbar-action [actionRef]=\"entry\" [color]=\"getEntryColor(entry)\"></aca-toolbar-action>\n </ng-container>\n </adf-toolbar>\n\n <adf-info-drawer-tab *ngFor=\"let tab of tabs\" [icon]=\"tab.icon\" [label]=\"tab.title\">\n <adf-dynamic-tab [node]=\"$any(displayNode)\" [id]=\"tab.component\" [attr.data-automation-id]=\"tab.component\"> </adf-dynamic-tab>\n </adf-info-drawer-tab>\n </adf-info-drawer>\n</ng-container>\n","/*!\n * Copyright © 2005-2023 Hyland Software, Inc. and its affiliates. All rights reserved.\n *\n * Alfresco Example Content Application\n *\n * This file is part of the Alfresco Example Content Application.\n * If the software was purchased under a paid Alfresco license, the terms of\n * the paid license agreement will prevail. Otherwise, the software is\n * provided under the following open source license terms:\n *\n * The Alfresco Example Content Application is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * The Alfresco Example Content Application is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * from Hyland Software. If not, see <http://www.gnu.org/licenses/>.\n */\n\nimport { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { InfoDrawerComponent } from './info-drawer.component';\nimport { InfoDrawerModule, ToolbarModule } from '@alfresco/adf-core';\nimport { ExtensionsModule } from '@alfresco/adf-extensions';\nimport { MatProgressBarModule } from '@angular/material/progress-bar';\nimport { SharedToolbarModule } from '../tool-bar/shared-toolbar.module';\nimport { TranslateModule } from '@ngx-translate/core';\n\n@NgModule({\n imports: [CommonModule, InfoDrawerModule, MatProgressBarModule, ExtensionsModule, ToolbarModule, SharedToolbarModule, TranslateModule],\n declarations: [InfoDrawerComponent],\n exports: [InfoDrawerComponent]\n})\nexport class SharedInfoDrawerModule {}\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 { MinimalNodeEntity, MinimalNodeEntryEntity } from '@alfresco/js-api';\n\nexport abstract class DocumentBasePageService {\n abstract canUpdateNode(node: MinimalNodeEntity): boolean;\n abstract canUploadContent(node: MinimalNodeEntryEntity): boolean;\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 { Node } from '@alfresco/js-api';\n\nexport function isLocked(node: { entry: Node }): boolean {\n if (node?.entry) {\n const { entry } = node;\n\n return entry.isLocked || entry.properties?.['cm:lockType'] === 'READ_ONLY_LOCK' || entry.properties?.['cm:lockType'] === 'WRITE_LOCK';\n } else {\n return false;\n }\n}\n\nexport function isLibrary(node: { entry: Node | any }): boolean {\n if (node?.entry) {\n const { entry } = node;\n\n return !!(entry.guid && entry.id && entry.preset && entry.title && entry.visibility) || entry.nodeType === 'st:site';\n } else {\n return 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 { Injectable } from '@angular/core';\nimport { MatDialog } from '@angular/material/dialog';\nimport { AppConfigService } from '@alfresco/adf-core';\nimport { NodeEntry } from '@alfresco/js-api';\nimport { FileAutoDownloadComponent } from '@alfresco/adf-content-services';\n\nconst BYTES_TO_MB_CONVERSION_VALUE = 1048576;\n\n@Injectable({\n providedIn: 'root'\n})\nexport class AcaFileAutoDownloadService {\n constructor(private dialog: MatDialog, private appConfig: AppConfigService) {}\n\n public shouldFileAutoDownload(fileSizeInBytes: number): boolean {\n const sizeInMB = fileSizeInBytes / BYTES_TO_MB_CONVERSION_VALUE;\n\n const fileAutoDownloadFlag: boolean = this.appConfig.get('viewer.enableFileAutoDownload', true);\n const sizeThreshold: number = this.appConfig.get('viewer.fileAutoDownloadSizeThresholdInMB', 15);\n\n return fileAutoDownloadFlag && sizeInMB && sizeInMB > sizeThreshold;\n }\n\n public autoDownloadFile(node: NodeEntry) {\n this.dialog.open(FileAutoDownloadComponent, { disableClose: true, data: node });\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 { DocumentListComponent, ShareDataRow } from '@alfresco/adf-content-services';\nimport { ShowHeaderMode } from '@alfresco/adf-core';\nimport { ContentActionRef, DocumentListPresetRef, SelectionState } from '@alfresco/adf-extensions';\nimport { OnDestroy, OnInit, OnChanges, ViewChild, SimpleChanges, Directive } from '@angular/core';\nimport { Store } from '@ngrx/store';\nimport { MinimalNodeEntity, MinimalNodeEntryEntity, NodePaging } from '@alfresco/js-api';\nimport { Observable, Subject, Subscription } from 'rxjs';\nimport { takeUntil, map } from 'rxjs/operators';\nimport { DocumentBasePageService } from './document-base-page.service';\nimport {\n AppStore,\n ReloadDocumentListAction,\n getCurrentFolder,\n getAppSelection,\n getDocumentDisplayMode,\n isInfoDrawerOpened,\n getSharedUrl,\n ViewNodeAction,\n ViewNodeExtras,\n SetSelectedNodesAction\n} from '@alfresco/aca-shared/store';\nimport { AppExtensionService } from '../../services/app.extension.service';\nimport { isLibrary, isLocked } from '../../utils/node.utils';\nimport { AcaFileAutoDownloadService } from '../../services/aca-file-auto-download.service';\n\n/* eslint-disable @angular-eslint/directive-class-suffix */\n@Directive()\nexport abstract class PageComponent implements OnInit, OnDestroy, OnChanges {\n onDestroy$: Subject<boolean> = new Subject<boolean>();\n\n @ViewChild(DocumentListComponent)\n documentList: DocumentListComponent;\n\n title = 'Page';\n infoDrawerOpened$: Observable<boolean>;\n node: MinimalNodeEntryEntity;\n selection: SelectionState;\n documentDisplayMode$: Observable<string>;\n sharedPreviewUrl$: Observable<string>;\n actions: Array<ContentActionRef> = [];\n viewerToolbarActions: Array<ContentActionRef> = [];\n canUpdateNode = false;\n canUpload = false;\n nodeResult: NodePaging;\n showHeader = ShowHeaderMode.Data;\n filterSorting = 'name-asc';\n createActions: Array<ContentActionRef> = [];\n\n protected subscriptions: Subscription[] = [];\n\n protected constructor(\n protected store: Store<AppStore>,\n protected extensions: AppExtensionService,\n protected content: DocumentBasePageService,\n private fileAutoDownloadService: AcaFileAutoDownloadService = null\n ) {}\n\n ngOnInit() {\n this.extensions\n .getCreateActions()\n .pipe(takeUntil(this.onDestroy$))\n .subscribe((actions) => {\n this.createActions = actions;\n });\n\n this.sharedPreviewUrl$ = this.store.select(getSharedUrl);\n this.infoDrawerOpened$ = this.store.select(isInfoDrawerOpened).pipe(map((infoDrawerState) => !this.isOutletPreviewUrl() && infoDrawerState));\n\n this.documentDisplayMode$ = this.store.select(getDocumentDisplayMode);\n\n this.store\n .select(getAppSelection)\n .pipe(takeUntil(this.onDestroy$))\n .subscribe((selection) => {\n this.selection = selection;\n this.canUpdateNode = this.selection.count === 1 && this.content.canUpdateNode(selection.first);\n });\n\n this.extensions\n .getAllowedToolbarActions()\n .pipe(takeUntil(this.onDestroy$))\n .subscribe((actions) => {\n this.actions = actions;\n });\n\n this.extensions\n .getViewerToolbarActions()\n .pipe(takeUntil(this.onDestroy$))\n .subscribe((actions) => {\n this.viewerToolbarActions = actions;\n });\n\n this.store\n .select(getCurrentFolder)\n .pipe(takeUntil(this.onDestroy$))\n .subscribe((node) => {\n this.canUpload = node && this.content.canUploadContent(node);\n });\n }\n\n ngOnChanges(changes: SimpleChanges) {\n if (changes.nodeResult && changes.nodeResult.currentValue) {\n this.nodeResult = changes.nodeResult.currentValue;\n }\n }\n\n ngOnDestroy() {\n this.subscriptions.forEach((subscription) => subscription.unsubscribe());\n this.subscriptions = [];\n\n this.onDestroy$.next(true);\n this.onDestroy$.complete();\n this.store.dispatch(new SetSelectedNodesAction([]));\n }\n\n showPreview(node: MinimalNodeEntity, extras?: ViewNodeExtras) {\n if (node && node.entry) {\n if (this.fileAutoDownloadService?.shouldFileAutoDownload(node.entry?.content?.sizeInBytes)) {\n this.fileAutoDownloadService.autoDownloadFile(node);\n } else {\n let id: string;\n\n if (node.entry.nodeType === 'app:filelink') {\n id = node.entry.properties['cm:destination'];\n } else {\n id = (node as any).entry.nodeId || (node as any).entry.guid || node.entry.id;\n }\n\n this.store.dispatch(new ViewNodeAction(id, extras));\n }\n }\n }\n\n getParentNodeId(): string {\n return this.node ? this.node.id : null;\n }\n\n imageResolver(row: ShareDataRow): string | null {\n if (row) {\n if (isLocked(row.node)) {\n return 'assets/images/baseline-lock-24px.svg';\n }\n\n if (isLibrary(row.node)) {\n return 'assets/images/baseline-library_books-24px.svg';\n }\n }\n\n return null;\n }\n\n reload(selectedNode?: MinimalNodeEntity): void {\n if (this.isOutletPreviewUrl()) {\n return;\n }\n\n this.store.dispatch(new ReloadDocumentListAction());\n if (selectedNode) {\n this.store.dispatch(new SetSelectedNodesAction([selectedNode]));\n }\n }\n\n trackByActionId(_: number, action: ContentActionRef) {\n return action.id;\n }\n\n trackById(_: number, obj: { id: string }) {\n return obj.id;\n }\n\n trackByColumnId(_: number, obj: DocumentListPresetRef): string {\n return obj.id;\n }\n\n private isOutletPreviewUrl(): boolean {\n return location.href.includes('viewer:view');\n }\n\n onSortingChanged(event: any) {\n this.filterSorting = event.detail.key + '-' + event.detail.direction;\n }\n\n onAllFilterCleared() {\n if (!this.isOutletPreviewUrl()) {\n this.documentList.node = null;\n this.store.dispatch(new ReloadDocumentListAction());\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\nimport { Directive, HostListener, Input, OnInit, OnDestroy } from '@angular/core';\nimport { debounceTime, takeUntil } from 'rxjs/operators';\nimport { Subject } from 'rxjs';\nimport { Store } from '@ngrx/store';\nimport { AppStore, ContextMenu } from '@alfresco/aca-shared/store';\n\n@Directive({\n selector: '[acaContextActions]',\n exportAs: 'acaContextActions'\n})\nexport class ContextActionsDirective implements OnInit, OnDestroy {\n private execute$: Subject<any> = new Subject();\n onDestroy$: Subject<boolean> = new Subject<boolean>();\n\n // eslint-disable-next-line\n @Input('acaContextEnable')\n enabled = true;\n\n @HostListener('contextmenu', ['$event'])\n onContextMenuEvent(event: MouseEvent) {\n if (event) {\n event.preventDefault();\n\n if (this.enabled) {\n const target = this.getTarget(event);\n if (target) {\n this.execute(event, target);\n }\n }\n }\n }\n\n constructor(private store: Store<AppStore>) {}\n\n ngOnInit() {\n this.execute$.pipe(debounceTime(300), takeUntil(this.onDestroy$)).subscribe((event: MouseEvent) => {\n this.store.dispatch(new ContextMenu(event));\n });\n }\n\n ngOnDestroy() {\n this.onDestroy$.next(true);\n this.onDestroy$.complete();\n }\n\n execute(event: MouseEvent, target: Element) {\n if (!this.isSelected(target)) {\n target.dispatchEvent(new MouseEvent('click'));\n }\n\n if (this.isEmptyTable(target)) {\n return null;\n }\n\n this.execute$.next(event);\n }\n\n private getTarget(event: MouseEvent): Element {\n const target = event.target as Element;\n return this.findAncestor(target, 'adf-datatable-cell');\n }\n\n private isSelected(target: Element): boolean {\n if (!target) {\n return false;\n }\n\n return this.findAncestor(target, 'adf-datatable-row').classList.contains('adf-is-selected');\n }\n\n private isEmptyTable(target: Element): boolean {\n return this.findAncestor(target, 'adf-datatable-cell').classList.contains('adf-no-content-container');\n }\n\n private findAncestor(el: Element, className: string): Element {\n if (el.classList.contains(className)) {\n return el;\n }\n // eslint-disable-next-line curly\n while ((el = el.parentElement) && !el.classList.contains(className));\n return el;\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 { NgModule } from '@angular/core';\nimport { ContextActionsDirective } from './contextmenu.directive';\n\n/**\n * @deprecated in 1.11.0, use SharedDirectivesModule instead.\n */\n@NgModule({\n declarations: [ContextActionsDirective],\n exports: [ContextActionsDirective]\n})\nexport class ContextActionsModule {}\n","/*!\n * 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 { Directive, OnInit, OnDestroy } from '@angular/core';\nimport { PaginationComponent, UserPreferencesService, PaginationModel, AppConfigService } from '@alfresco/adf-core';\nimport { Subscription } from 'rxjs';\n\n@Directive({\n selector: '[acaPagination]'\n})\nexport class PaginationDirective implements OnInit, OnDestroy {\n private subscriptions: Subscription[] = [];\n\n constructor(private pagination: PaginationComponent, private preferences: UserPreferencesService, private config: AppConfigService) {}\n\n ngOnInit() {\n this.pagination.supportedPageSizes = this.config.get('pagination.supportedPageSizes');\n\n this.subscriptions.push(\n this.pagination.changePageSize.subscribe((event: PaginationModel) => {\n this.preferences.paginationSize = event.maxItems;\n })\n );\n }\n\n ngOnDestroy() {\n this.subscriptions.forEach((subscription) => subscription.unsubscribe());\n this.subscriptions = [];\n }\n}\n","/*!\n * Copyright © 2005-2023 Hyland Software, Inc. and its affiliates. All rights reserved.\n *\n * Alfresco Example Content Application\n *\n * This file is part of the Alfresco Example Content Application.\n * If the software was purchased under a paid Alfresco license, the terms of\n * the paid license agreement will prevail. Otherwise, the software is\n * provided under the following open source license terms:\n *\n * The Alfresco Example Content Application is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * The Alfresco Example Content Application is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * from Hyland Software. If not, see <http://www.gnu.org/licenses/>.\n */\n\nimport { NgModule } from '@angular/core';\nimport { PaginationDirective } from './pagination.directive';\nimport { ContextActionsModule } from './contextmenu/contextmenu.module';\n\n@NgModule({\n imports: [ContextActionsModule],\n declarations: [PaginationDirective],\n exports: [PaginationDirective, ContextActionsModule]\n})\nexport class SharedDirectivesModule {}\n","/*!\n * 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 { Route } from '@angular/router';\n\nexport interface SettingsGroupRef {\n id: string;\n name: string;\n parameters: Array<SettingsParameterRef>;\n rules?: {\n visible?: string;\n [key: string]: string;\n };\n}\n\nexport interface SettingsParameterRef {\n id?: string;\n name: string;\n key: string;\n type: 'string' | 'boolean';\n value?: any;\n}\n\nexport interface ExtensionRoute extends Route {\n parentRoute?: string;\n}\n","/*!\n * 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 interface ViewerRules {\n /**\n * Checks if user can preview the node.\n */\n canPreview?: string;\n\n /**\n * Shows navigation options\n */\n showNavigation?: string;\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 interface ModalConfiguration {\n focusedElementOnCloseSelector?: string;\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 { CanActivate, ActivatedRouteSnapshot } from '@angular/router';\nimport { Observable } from 'rxjs';\nimport { Store } from '@ngrx/store';\nimport { AppStore, isQuickShareEnabled } from '@alfresco/aca-shared/store';\n\n@Injectable({\n providedIn: 'root'\n})\nexport class AppSharedRuleGuard implements CanActivate {\n isQuickShareEnabled$: Observable<boolean>;\n\n constructor(store: Store<AppStore>) {\n this.isQuickShareEnabled$ = store.select(isQuickShareEnabled);\n }\n\n canActivate(_: ActivatedRouteSnapshot): Observable<boolean> {\n return this.isQuickShareEnabled$;\n }\n\n canActivateChild(route: ActivatedRouteSnapshot): Observable<boolean> {\n return this.canActivate(route);\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 { Injectable } from '@angular/core';\nimport { Subject } from 'rxjs';\nimport { SiteEntry } from '@alfresco/js-api';\n\n@Injectable({\n providedIn: 'root'\n})\nexport class AppHookService {\n /**\n * Gets emitted when reloads event fired\n */\n reload = new Subject<any>();\n\n /**\n * Gets emitted when user reset the node\n */\n reset = new Subject<any>();\n\n /**\n * Gets emitted when user delete the node\n */\n nodesDeleted = new Subject<any>();\n\n /**\n * Gets emitted when user delete the library\n */\n libraryDeleted = new Subject<string>();\n\n /**\n * Gets emitted when user create the library\n */\n libraryCreated = new Subject<SiteEntry>();\n\n /**\n * Gets emitted when user update the library\n */\n libraryUpdated = new Subject<SiteEntry>();\n\n /**\n * Gets emitted when user join the library\n */\n libraryJoined = new Subject<string>();\n\n /**\n * Gets emitted when user left the library\n */\n libraryLeft = new Subject<string>();\n\n /**\n * Gets emitted when library throws 400 error code\n */\n library400Error = new Subject<any>();\n\n /**\n * Gets emitted when user join the library\n */\n joinLibraryToggle = new Subject<string>();\n\n /**\n * Gets emitted when user unlink the node\n */\n linksUnshared = new Subject<any>();\n\n /**\n * Gets emitted when user mark the the favorite library\n */\n favoriteLibraryToggle = new Subject<any>();\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 { AppConfigService } from '@alfresco/adf-core';\nimport { map, take } from 'rxjs/operators';\n\n@Injectable({\n providedIn: 'root'\n})\nexport class AlfrescoOfficeExtensionService {\n constructor(private appConfigService: AppConfigService) {\n this.appConfigService.onLoad\n .pipe(\n take(1),\n map((appConfig) => appConfig.plugins && appConfig.plugins.aosPlugin)\n )\n .subscribe((aosPlugin) => {\n if (aosPlugin) {\n this.enablePlugin();\n } else {\n this.disablePlugin();\n }\n });\n }\n\n enablePlugin() {\n if (localStorage && localStorage.getItem('aosPlugin') === null) {\n localStorage.setItem('aosPlugin', 'true');\n }\n }\n\n disablePlugin() {\n localStorage.removeItem('aosPlugin');\n }\n\n isAosPluginEnabled() {\n return localStorage && localStorage.getItem('aosPlugin') === 'true';\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 { ModuleWithProviders, NgModule } from '@angular/core';\nimport { ContentApiService } from './services/content-api.service';\nimport { NodePermissionService } from './services/node-permission.service';\nimport { AppService } from './services/app.service';\nimport { ContextActionsModule } from './directives/contextmenu/contextmenu.module';\nimport { OpenInAppComponent } from './components/open-in-app/open-in-app.component';\nimport { MatButtonModule } from '@angular/material/button';\nimport { MatIconModule } from '@angular/material/icon';\nimport { MatDialogModule } from '@angular/material/dialog';\nimport { TranslateModule } from '@ngx-translate/core';\n\n@NgModule({\n imports: [ContextActionsModule, MatButtonModule, MatIconModule, MatDialogModule, TranslateModule],\n exports: [ContextActionsModule, MatButtonModule, MatIconModule, MatDialogModule, TranslateModule],\n declarations: [OpenInAppComponent]\n})\nexport class SharedModule {\n static forRoot(): ModuleWithProviders<SharedModule> {\n return {\n ngModule: SharedModule,\n providers: [ContentApiService, NodePermissionService, AppService]\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\nimport { NgModule } from '@angular/core';\nimport { TranslateLoader, TranslateModule } from '@ngx-translate/core';\nimport { NoopAnimationsModule } from '@angular/platform-browser/animations';\nimport {\n AlfrescoApiService,\n AlfrescoApiServiceMock,\n PipeModule,\n TranslateLoaderService,\n TranslationMock,\n TranslationService\n} from '@alfresco/adf-core';\nimport { HttpClientModule } from '@angular/common/http';\nimport { RouterTestingModule } from '@angular/router/testing';\nimport { EffectsModule } from '@ngrx/effects';\nimport { StoreModule } from '@ngrx/store';\nimport { CommonModule } from '@angular/common';\n\nexport const initialState = {\n app: {\n appName: 'Alfresco Content Application',\n logoPath: 'assets/images/alfresco-logo-white.svg',\n sharedUrl: '',\n user: {\n isAdmin: null,\n id: null,\n firstName: '',\n lastName: ''\n },\n selection: {\n nodes: [],\n libraries: [],\n isEmpty: true,\n count: 0\n },\n navigation: {\n currentFolder: null\n },\n infoDrawerOpened: false,\n infoDrawerMetadataAspect: '',\n showFacetFilter: true,\n documentDisplayMode: 'list',\n repository: {\n status: {\n isQuickShareEnabled: true\n }\n } as any\n }\n};\n\n@NgModule({\n imports: [\n NoopAnimationsModule,\n CommonModule,\n HttpClientModule,\n RouterTestingModule,\n StoreModule,\n EffectsModule.forRoot([]),\n TranslateModule.forRoot({\n loader: {\n provide: TranslateLoader,\n useClass: TranslateLoaderService\n }\n }),\n PipeModule\n ],\n providers: [\n { provide: AlfrescoApiService, useClass: AlfrescoApiServiceMock },\n { provide: TranslationService, useClass: TranslationMock }\n ]\n})\nexport class LibTestingModule {}\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 './lib/adf-extensions/extensions-data-loader.guard';\nexport * from './lib/components/page-layout/page-layout-content.component';\nexport * from './lib/components/page-layout/page-layout-error.component';\nexport * from './lib/components/page-layout/page-layout-header.component';\nexport * from './lib/components/page-layout/page-layout.component';\nexport * from './lib/components/page-layout/page-layout.module';\nexport * from './lib/components/locked-by/locked-by.component';\nexport * from './lib/components/locked-by/locked-by.module';\nexport * from './lib/components/generic-error/generic-error.component';\nexport * from './lib/components/generic-error/generic-error.module';\nexport * from './lib/components/tool-bar/shared-toolbar.module';\nexport * from './lib/components/tool-bar/toolbar-action/toolbar-action.component';\nexport * from './lib/components/tool-bar/toolbar-button/toolbar-button.component';\nexport * from './lib/components/tool-bar/toolbar-menu/toolbar-menu.component';\nexport * from './lib/components/tool-bar/toolbar-menu-item/toolbar-menu-item.component';\nexport * from './lib/components/info-drawer/info-drawer.component';\nexport * from './lib/components/info-drawer/shared-info-drawer.module';\nexport * from './lib/components/document-base-page/document-base-page.component';\nexport * from './lib/components/document-base-page/document-base-page.service';\n\nexport * from './lib/directives/contextmenu/contextmenu.directive';\nexport * from './lib/directives/contextmenu/contextmenu.module';\nexport * from './lib/directives/pagination.directive';\nexport * from './lib/directives/shared.directives.module';\n\nexport * from './lib/models/types';\nexport * from './lib/models/viewer.rules';\nexport * from './lib/models/modal-configuration';\n\nexport * from './lib/routing/shared.guard';\n\nexport * from './lib/services/app.service';\nexport * from './lib/services/content-api.service';\nexport * from './lib/services/node-permission.service';\nexport * from './lib/services/app.extension.service';\nexport * from './lib/services/router.extension.service';\nexport * from './lib/services/app-hook.service';\nexport * from './lib/services/alfresco-office-extension.service';\nexport * from './lib/services/aca-file-auto-download.service';\n\nexport * from './lib/utils/node.utils';\nexport * from './lib/shared.module';\nexport * from './lib/testing/lib-testing-module';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["i1","i2","i3","i4","i8.AcaMobileAppSwitcherService","i1.AppService","i5","i4.NodePermissionService","i1.AppExtensionService","i7","i6.ToolbarMenuItemComponent","i5.ToolbarMenuItemComponent","i6","i4.ToolbarButtonComponent","i5.ToolbarMenuComponent","i2.ContentApiService","i3.AppExtensionService","i8.ToolbarActionComponent","i9","i2.AppExtensionService","i3.DocumentBasePageService","i4.AcaFileAutoDownloadService"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;;;;;;;;;;;;;AAsBG;MASU,6BAA6B,GAAG,MAAM,GAAG;MAEzC,sBAAsB,GAAG,IAAI,cAAc,CAA4B,wBAAwB,EAAE;AAC5G,IAAA,UAAU,EAAE,MAAM;AAClB,IAAA,OAAO,EAAE,6BAA6B;AACvC,CAAA,EAAE;MAGU,yBAAyB,CAAA;AAGpC,IAAA,WAAA,CAEU,oBAA+C,EAAA;QAA/C,IAAoB,CAAA,oBAAA,GAApB,oBAAoB,CAA2B;QAJjD,IAAO,CAAA,OAAA,GAAG,KAAK,CAAC;KAKpB;AAEJ,IAAA,WAAW,CAAC,KAA6B,EAAA;AACvC,QAAA,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE;AACjB,YAAA,IAAI,CAAC,IAAI,CAAC,oBAAoB,CAAC,MAAM,EAAE;AACrC,gBAAA,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC;AACpB,gBAAA,OAAO,EAAE,CAAC,IAAI,CAAC,CAAC;AACjB,aAAA;AAED,YAAA,MAAM,mBAAmB,GAAG,IAAI,CAAC,oBAAoB,CAAC,GAAG,CAAC,CAAC,QAAQ,KAAK,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC;;;;AAKzF,YAAA,OAAO,QAAQ,CAAC,GAAG,mBAAmB,CAAC,CAAC,IAAI,CAC1C,GAAG,CAAC,MAAM,IAAI,CA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