@alfresco/aca-shared 1.12.0 → 4.0.0-A.2-9919
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 +2 -1
- package/esm2020/alfresco-aca-shared.mjs +5 -0
- package/esm2020/lib/adf-extensions/extensions-data-loader.guard.mjs +74 -0
- package/esm2020/lib/components/document-base-page/document-base-page.component.mjs +160 -0
- package/esm2020/lib/components/document-base-page/document-base-page.service.mjs +10 -0
- package/esm2020/lib/components/generic-error/generic-error.component.mjs +42 -0
- package/esm2020/lib/components/generic-error/generic-error.module.mjs +45 -0
- package/esm2020/lib/components/info-drawer/info-drawer.component.mjs +124 -0
- package/esm2020/lib/components/info-drawer/shared-info-drawer.module.mjs +47 -0
- package/esm2020/lib/components/locked-by/locked-by.component.mjs +53 -0
- package/esm2020/lib/components/locked-by/locked-by.module.mjs +45 -0
- package/esm2020/lib/components/page-layout/page-layout-content.component.mjs +49 -0
- package/{esm2015/lib/models/types.js → esm2020/lib/components/page-layout/page-layout-error.component.mjs} +16 -42
- package/esm2020/lib/components/page-layout/page-layout-header.component.mjs +41 -0
- package/esm2020/lib/components/page-layout/page-layout.component.mjs +41 -0
- package/esm2020/lib/components/page-layout/page-layout.module.mjs +45 -0
- package/esm2020/lib/components/tool-bar/shared-toolbar.module.mjs +47 -0
- package/esm2020/lib/components/tool-bar/toolbar-action/toolbar-action.component.mjs +58 -0
- package/esm2020/lib/components/tool-bar/toolbar-button/toolbar-button.component.mjs +67 -0
- package/esm2020/lib/components/tool-bar/toolbar-menu/toolbar-menu.component.mjs +78 -0
- package/esm2020/lib/components/tool-bar/toolbar-menu-item/toolbar-menu-item.component.mjs +69 -0
- package/esm2020/lib/directives/contextmenu/contextmenu.directive.mjs +107 -0
- package/{esm2015/lib/components/locked-by/locked-by.module.js → esm2020/lib/directives/contextmenu/contextmenu.module.mjs} +17 -16
- package/esm2020/lib/directives/pagination.directive.mjs +55 -0
- package/esm2020/lib/directives/shared.directives.module.mjs +42 -0
- package/esm2020/lib/models/modal-configuration.mjs +2 -0
- package/esm2020/lib/models/types.mjs +26 -0
- package/esm2020/lib/models/viewer.rules.mjs +26 -0
- package/esm2020/lib/routing/shared.guard.mjs +49 -0
- package/esm2020/lib/services/alfresco-office-extension.service.mjs +64 -0
- package/esm2020/lib/services/app-hook.service.mjs +88 -0
- package/esm2020/lib/services/app.extension.service.mjs +453 -0
- package/esm2020/lib/services/app.service.mjs +213 -0
- package/esm2020/lib/services/content-api.service.mjs +268 -0
- package/esm2020/lib/services/node-permission.service.mjs +90 -0
- package/esm2020/lib/services/router.extension.service.mjs +106 -0
- package/esm2020/lib/shared.module.mjs +49 -0
- package/esm2020/lib/testing/lib-testing-module.mjs +118 -0
- package/esm2020/lib/testing/translation.service.mjs +45 -0
- package/esm2020/lib/utils/node.utils.mjs +34 -0
- package/esm2020/public-api.mjs +63 -0
- package/esm2020/rules/alfresco-aca-shared-rules.mjs +5 -0
- package/esm2020/rules/app.rules.mjs +503 -0
- package/esm2020/rules/navigation.rules.mjs +152 -0
- package/{esm5/store/store.module.js → esm2020/rules/public-api.mjs} +5 -23
- package/{esm5/store/actions/metadata-aspect.actions.js → esm2020/rules/repository.rules.mjs} +9 -20
- package/{esm2015/rules/repository.rules.js → esm2020/rules/user.rules.mjs} +4 -12
- package/esm2020/store/actions/app-action-types.mjs +48 -0
- package/esm2020/store/actions/app.actions.mjs +135 -0
- package/esm2020/store/actions/context-menu-action-types.mjs +29 -0
- package/esm2020/store/actions/contextmenu.actions.mjs +32 -0
- package/esm2020/store/actions/library.actions.mjs +64 -0
- package/{esm5/lib/components/locked-by/locked-by.module.js → esm2020/store/actions/metadata-aspect.actions.mjs} +7 -21
- package/esm2020/store/actions/node.actions.mjs +189 -0
- package/esm2020/store/actions/router-action-types.mjs +33 -0
- package/esm2020/store/actions/router.actions.mjs +55 -0
- package/{esm2015/lib/components/page-layout/page-layout-content.component.js → esm2020/store/actions/search.actions.mjs} +10 -27
- package/esm2020/store/actions/snackbar.actions.mjs +58 -0
- package/esm2020/store/actions/template-action-types.mjs +32 -0
- package/esm2020/store/actions/template.actions.mjs +48 -0
- package/esm2020/store/actions/upload.actions.mjs +50 -0
- package/esm2020/store/actions/viewer.actions.mjs +82 -0
- package/esm2020/store/alfresco-aca-shared-store.mjs +5 -0
- package/esm2020/store/effects/dialog.effects.mjs +45 -0
- package/esm2020/store/effects/router.effects.mjs +117 -0
- package/esm2020/store/effects/snackbar.effects.mjs +86 -0
- package/esm2020/store/models/delete-status.model.mjs +26 -0
- package/esm2020/store/models/deleted-node-info.model.mjs +26 -0
- package/esm2020/store/models/modal-configuration.mjs +2 -0
- package/{esm2015/lib/components/page-layout/page-layout-error.component.js → esm2020/store/models/node-info.model.mjs} +2 -19
- package/{esm5/lib/components/page-layout/page-layout-error.component.js → esm2020/store/models/search-option.model.mjs} +7 -21
- package/esm2020/store/public-api.mjs +50 -0
- package/esm2020/store/selectors/app.selectors.mjs +60 -0
- package/{esm5/lib/directives/shared.directives.module.js → esm2020/store/states/app.state.mjs} +3 -21
- package/esm2020/store/store.module.mjs +43 -0
- package/fesm2015/alfresco-aca-shared-rules.mjs +751 -0
- package/fesm2015/alfresco-aca-shared-rules.mjs.map +1 -0
- package/fesm2015/alfresco-aca-shared-store.mjs +1327 -0
- package/fesm2015/alfresco-aca-shared-store.mjs.map +1 -0
- package/fesm2015/alfresco-aca-shared.mjs +2726 -0
- package/fesm2015/alfresco-aca-shared.mjs.map +1 -0
- package/{fesm2015/alfresco-aca-shared-rules.js → fesm2020/alfresco-aca-shared-rules.mjs} +273 -353
- package/fesm2020/alfresco-aca-shared-rules.mjs.map +1 -0
- package/fesm2020/alfresco-aca-shared-store.mjs +1406 -0
- package/fesm2020/alfresco-aca-shared-store.mjs.map +1 -0
- package/fesm2020/alfresco-aca-shared.mjs +2841 -0
- package/fesm2020/alfresco-aca-shared.mjs.map +1 -0
- package/{rules/alfresco-aca-shared-rules.d.ts → index.d.ts} +1 -0
- package/lib/adf-extensions/extensions-data-loader.guard.d.ts +4 -1
- package/lib/components/document-base-page/document-base-page.component.d.ts +74 -0
- package/lib/components/document-base-page/document-base-page.service.d.ts +5 -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 +6 -0
- 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/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 +3 -24
- package/lib/components/page-layout/page-layout.module.d.ts +9 -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 +7 -2
- package/lib/components/tool-bar/toolbar-button/toolbar-button.component.d.ts +5 -25
- package/lib/components/tool-bar/toolbar-menu/toolbar-menu.component.d.ts +15 -6
- package/lib/components/tool-bar/toolbar-menu-item/toolbar-menu-item.component.d.ts +7 -27
- package/lib/directives/contextmenu/contextmenu.directive.d.ts +5 -1
- package/lib/directives/contextmenu/contextmenu.module.d.ts +5 -24
- package/lib/directives/pagination.directive.d.ts +3 -0
- package/lib/directives/shared.directives.module.d.ts +6 -24
- package/lib/models/modal-configuration.d.ts +3 -0
- package/lib/models/viewer.rules.d.ts +4 -0
- package/lib/routing/shared.guard.d.ts +3 -24
- 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 +31 -53
- package/lib/services/app.service.d.ts +43 -7
- package/lib/services/content-api.service.d.ts +35 -25
- package/lib/services/node-permission.service.d.ts +3 -24
- package/lib/services/router.extension.service.d.ts +21 -0
- package/lib/shared.module.d.ts +6 -1
- package/lib/testing/lib-testing-module.d.ts +43 -0
- package/lib/testing/translation.service.d.ts +10 -0
- package/package.json +58 -21
- package/public-api.d.ts +19 -5
- package/rules/app.rules.d.ts +104 -30
- package/{store/alfresco-aca-shared-store.d.ts → rules/index.d.ts} +1 -0
- package/rules/navigation.rules.d.ts +6 -6
- package/rules/repository.rules.d.ts +2 -1
- package/rules/user.rules.d.ts +1 -1
- package/store/actions/app-action-types.d.ts +46 -0
- package/store/actions/app.actions.d.ts +25 -18
- package/{lib/routing/app.routes.strategy.d.ts → store/actions/context-menu-action-types.d.ts} +2 -15
- package/store/actions/contextmenu.actions.d.ts +1 -3
- package/store/actions/library.actions.d.ts +3 -1
- package/store/actions/node.actions.d.ts +33 -7
- package/store/actions/router-action-types.d.ts +31 -0
- package/store/actions/router.actions.d.ts +5 -6
- package/store/actions/search.actions.d.ts +1 -13
- package/store/actions/snackbar.actions.d.ts +8 -11
- package/store/actions/template-action-types.d.ts +30 -0
- package/store/actions/template.actions.d.ts +1 -6
- package/store/actions/upload.actions.d.ts +3 -1
- package/store/actions/viewer.actions.d.ts +22 -1
- package/store/effects/dialog.effects.d.ts +4 -1
- package/store/effects/router.effects.d.ts +11 -29
- package/store/effects/snackbar.effects.d.ts +6 -3
- package/store/index.d.ts +5 -0
- package/store/models/modal-configuration.d.ts +3 -0
- package/store/public-api.d.ts +4 -0
- package/store/selectors/app.selectors.d.ts +33 -19
- package/store/states/app.state.d.ts +10 -2
- package/store/store.module.d.ts +5 -24
- package/alfresco-aca-shared.d.ts +0 -11
- package/alfresco-aca-shared.metadata.json +0 -1
- package/bundles/alfresco-aca-shared-rules.umd.js +0 -895
- package/bundles/alfresco-aca-shared-rules.umd.js.map +0 -1
- package/bundles/alfresco-aca-shared-rules.umd.min.js +0 -75
- package/bundles/alfresco-aca-shared-rules.umd.min.js.map +0 -1
- package/bundles/alfresco-aca-shared-store.umd.js +0 -1399
- package/bundles/alfresco-aca-shared-store.umd.js.map +0 -1
- package/bundles/alfresco-aca-shared-store.umd.min.js +0 -26
- package/bundles/alfresco-aca-shared-store.umd.min.js.map +0 -1
- package/bundles/alfresco-aca-shared.umd.js +0 -2845
- package/bundles/alfresco-aca-shared.umd.js.map +0 -1
- package/bundles/alfresco-aca-shared.umd.min.js +0 -27
- package/bundles/alfresco-aca-shared.umd.min.js.map +0 -1
- package/esm2015/alfresco-aca-shared.js +0 -16
- package/esm2015/lib/adf-extensions/extensions-data-loader.guard.js +0 -106
- package/esm2015/lib/components/generic-error/generic-error.component.js +0 -52
- package/esm2015/lib/components/generic-error/generic-error.module.js +0 -43
- package/esm2015/lib/components/info-drawer/info-drawer.component.js +0 -179
- package/esm2015/lib/components/info-drawer/shared-info-drawer.module.js +0 -52
- package/esm2015/lib/components/locked-by/locked-by.component.js +0 -74
- package/esm2015/lib/components/page-layout/page-layout-header.component.js +0 -41
- package/esm2015/lib/components/page-layout/page-layout.component.js +0 -52
- package/esm2015/lib/components/page-layout/page-layout.module.js +0 -54
- package/esm2015/lib/components/tool-bar/shared-toolbar.module.js +0 -56
- package/esm2015/lib/components/tool-bar/toolbar-action/toolbar-action.component.js +0 -81
- package/esm2015/lib/components/tool-bar/toolbar-button/toolbar-button.component.js +0 -96
- package/esm2015/lib/components/tool-bar/toolbar-menu/toolbar-menu.component.js +0 -69
- package/esm2015/lib/components/tool-bar/toolbar-menu-item/toolbar-menu-item.component.js +0 -95
- package/esm2015/lib/directives/contextmenu/contextmenu.directive.js +0 -156
- package/esm2015/lib/directives/contextmenu/contextmenu.module.js +0 -42
- package/esm2015/lib/directives/pagination.directive.js +0 -93
- package/esm2015/lib/directives/shared.directives.module.js +0 -41
- package/esm2015/lib/models/viewer.rules.js +0 -40
- package/esm2015/lib/routing/app.routes.strategy.js +0 -207
- package/esm2015/lib/routing/shared.guard.js +0 -70
- package/esm2015/lib/services/app.extension.service.js +0 -686
- package/esm2015/lib/services/app.service.js +0 -95
- package/esm2015/lib/services/content-api.service.js +0 -331
- package/esm2015/lib/services/node-permission.service.js +0 -133
- package/esm2015/lib/shared.module.js +0 -51
- package/esm2015/lib/utils/node.utils.js +0 -53
- package/esm2015/public-api.js +0 -53
- package/esm2015/rules/alfresco-aca-shared-rules.js +0 -9
- package/esm2015/rules/app.rules.js +0 -563
- package/esm2015/rules/navigation.rules.js +0 -211
- package/esm2015/rules/public-api.js +0 -33
- package/esm2015/rules/user.rules.js +0 -38
- package/esm2015/store/actions/app.actions.js +0 -234
- package/esm2015/store/actions/contextmenu.actions.js +0 -49
- package/esm2015/store/actions/library.actions.js +0 -111
- package/esm2015/store/actions/metadata-aspect.actions.js +0 -46
- package/esm2015/store/actions/node.actions.js +0 -337
- package/esm2015/store/actions/router.actions.js +0 -97
- package/esm2015/store/actions/search.actions.js +0 -83
- package/esm2015/store/actions/snackbar.actions.js +0 -138
- package/esm2015/store/actions/template.actions.js +0 -85
- package/esm2015/store/actions/upload.actions.js +0 -81
- package/esm2015/store/actions/viewer.actions.js +0 -115
- package/esm2015/store/alfresco-aca-shared-store.js +0 -9
- package/esm2015/store/effects/dialog.effects.js +0 -72
- package/esm2015/store/effects/router.effects.js +0 -192
- package/esm2015/store/effects/snackbar.effects.js +0 -144
- package/esm2015/store/models/delete-status.model.js +0 -55
- package/esm2015/store/models/deleted-node-info.model.js +0 -41
- package/esm2015/store/models/node-info.model.js +0 -45
- package/esm2015/store/models/search-option.model.js +0 -52
- package/esm2015/store/public-api.js +0 -50
- package/esm2015/store/selectors/app.selectors.js +0 -82
- package/esm2015/store/states/app.state.js +0 -71
- package/esm2015/store/store.module.js +0 -43
- package/esm5/alfresco-aca-shared.js +0 -16
- package/esm5/lib/adf-extensions/extensions-data-loader.guard.js +0 -115
- package/esm5/lib/components/generic-error/generic-error.component.js +0 -54
- package/esm5/lib/components/generic-error/generic-error.module.js +0 -47
- package/esm5/lib/components/info-drawer/info-drawer.component.js +0 -209
- package/esm5/lib/components/info-drawer/shared-info-drawer.module.js +0 -56
- package/esm5/lib/components/locked-by/locked-by.component.js +0 -80
- package/esm5/lib/components/page-layout/page-layout-content.component.js +0 -53
- package/esm5/lib/components/page-layout/page-layout-header.component.js +0 -45
- package/esm5/lib/components/page-layout/page-layout.component.js +0 -54
- package/esm5/lib/components/page-layout/page-layout.module.js +0 -58
- package/esm5/lib/components/tool-bar/shared-toolbar.module.js +0 -60
- package/esm5/lib/components/tool-bar/toolbar-action/toolbar-action.component.js +0 -88
- package/esm5/lib/components/tool-bar/toolbar-button/toolbar-button.component.js +0 -103
- package/esm5/lib/components/tool-bar/toolbar-menu/toolbar-menu.component.js +0 -80
- package/esm5/lib/components/tool-bar/toolbar-menu-item/toolbar-menu-item.component.js +0 -103
- package/esm5/lib/directives/contextmenu/contextmenu.directive.js +0 -187
- package/esm5/lib/directives/contextmenu/contextmenu.module.js +0 -46
- package/esm5/lib/directives/pagination.directive.js +0 -97
- package/esm5/lib/models/types.js +0 -67
- package/esm5/lib/models/viewer.rules.js +0 -40
- package/esm5/lib/routing/app.routes.strategy.js +0 -268
- package/esm5/lib/routing/shared.guard.js +0 -77
- package/esm5/lib/services/app.extension.service.js +0 -835
- package/esm5/lib/services/app.service.js +0 -100
- package/esm5/lib/services/content-api.service.js +0 -495
- package/esm5/lib/services/node-permission.service.js +0 -161
- package/esm5/lib/shared.module.js +0 -58
- package/esm5/lib/utils/node.utils.js +0 -53
- package/esm5/public-api.js +0 -53
- package/esm5/rules/alfresco-aca-shared-rules.js +0 -9
- package/esm5/rules/app.rules.js +0 -563
- package/esm5/rules/navigation.rules.js +0 -211
- package/esm5/rules/public-api.js +0 -33
- package/esm5/rules/repository.rules.js +0 -38
- package/esm5/rules/user.rules.js +0 -38
- package/esm5/store/actions/app.actions.js +0 -232
- package/esm5/store/actions/contextmenu.actions.js +0 -48
- package/esm5/store/actions/library.actions.js +0 -108
- package/esm5/store/actions/node.actions.js +0 -322
- package/esm5/store/actions/router.actions.js +0 -93
- package/esm5/store/actions/search.actions.js +0 -87
- package/esm5/store/actions/snackbar.actions.js +0 -130
- package/esm5/store/actions/template.actions.js +0 -87
- package/esm5/store/actions/upload.actions.js +0 -78
- package/esm5/store/actions/viewer.actions.js +0 -109
- package/esm5/store/alfresco-aca-shared-store.js +0 -9
- package/esm5/store/effects/dialog.effects.js +0 -71
- package/esm5/store/effects/router.effects.js +0 -207
- package/esm5/store/effects/snackbar.effects.js +0 -154
- package/esm5/store/models/delete-status.model.js +0 -55
- package/esm5/store/models/deleted-node-info.model.js +0 -41
- package/esm5/store/models/node-info.model.js +0 -45
- package/esm5/store/models/search-option.model.js +0 -52
- package/esm5/store/public-api.js +0 -50
- package/esm5/store/selectors/app.selectors.js +0 -82
- package/esm5/store/states/app.state.js +0 -71
- package/fesm2015/alfresco-aca-shared-rules.js.map +0 -1
- package/fesm2015/alfresco-aca-shared-store.js +0 -1354
- package/fesm2015/alfresco-aca-shared-store.js.map +0 -1
- package/fesm2015/alfresco-aca-shared.js +0 -2096
- package/fesm2015/alfresco-aca-shared.js.map +0 -1
- package/fesm5/alfresco-aca-shared-rules.js +0 -827
- package/fesm5/alfresco-aca-shared-rules.js.map +0 -1
- package/fesm5/alfresco-aca-shared-store.js +0 -1278
- package/fesm5/alfresco-aca-shared-store.js.map +0 -1
- package/fesm5/alfresco-aca-shared.js +0 -2637
- package/fesm5/alfresco-aca-shared.js.map +0 -1
- package/rules/alfresco-aca-shared-rules.metadata.json +0 -1
- package/rules/package.json +0 -13
- package/store/alfresco-aca-shared-store.metadata.json +0 -1
- package/store/package.json +0 -13
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"alfresco-aca-shared.umd.js.map","sources":["node_modules/tslib/tslib.es6.js","ng://@alfresco/aca-shared/lib/adf-extensions/extensions-data-loader.guard.ts","ng://@alfresco/aca-shared/lib/components/page-layout/page-layout-content.component.ts","ng://@alfresco/aca-shared/lib/components/page-layout/page-layout-error.component.ts","ng://@alfresco/aca-shared/lib/components/page-layout/page-layout-header.component.ts","ng://@alfresco/aca-shared/lib/components/page-layout/page-layout.component.ts","ng://@alfresco/aca-shared/lib/components/page-layout/page-layout.module.ts","ng://@alfresco/aca-shared/lib/components/locked-by/locked-by.component.ts","ng://@alfresco/aca-shared/lib/components/locked-by/locked-by.module.ts","ng://@alfresco/aca-shared/lib/services/node-permission.service.ts","ng://@alfresco/aca-shared/lib/services/app.extension.service.ts","ng://@alfresco/aca-shared/lib/components/tool-bar/toolbar-menu-item/toolbar-menu-item.component.ts","ng://@alfresco/aca-shared/lib/components/tool-bar/toolbar-menu/toolbar-menu.component.ts","ng://@alfresco/aca-shared/lib/components/tool-bar/toolbar-action/toolbar-action.component.ts","ng://@alfresco/aca-shared/lib/components/tool-bar/toolbar-button/toolbar-button.component.ts","ng://@alfresco/aca-shared/lib/components/tool-bar/shared-toolbar.module.ts","ng://@alfresco/aca-shared/lib/services/content-api.service.ts","ng://@alfresco/aca-shared/lib/components/info-drawer/info-drawer.component.ts","ng://@alfresco/aca-shared/lib/components/info-drawer/shared-info-drawer.module.ts","ng://@alfresco/aca-shared/lib/routing/app.routes.strategy.ts","ng://@alfresco/aca-shared/lib/routing/shared.guard.ts","ng://@alfresco/aca-shared/lib/services/app.service.ts","ng://@alfresco/aca-shared/lib/components/generic-error/generic-error.component.ts","ng://@alfresco/aca-shared/lib/components/generic-error/generic-error.module.ts","ng://@alfresco/aca-shared/lib/directives/contextmenu/contextmenu.directive.ts","ng://@alfresco/aca-shared/lib/directives/contextmenu/contextmenu.module.ts","ng://@alfresco/aca-shared/lib/directives/pagination.directive.ts","ng://@alfresco/aca-shared/lib/directives/shared.directives.module.ts","ng://@alfresco/aca-shared/lib/utils/node.utils.ts","ng://@alfresco/aca-shared/lib/shared.module.ts"],"sourcesContent":["/*! *****************************************************************************\r\nCopyright (c) Microsoft Corporation. All rights reserved.\r\nLicensed under the Apache License, Version 2.0 (the \"License\"); you may not use\r\nthis file except in compliance with the License. You may obtain a copy of the\r\nLicense at http://www.apache.org/licenses/LICENSE-2.0\r\n\r\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\r\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\r\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\r\nMERCHANTABLITY OR NON-INFRINGEMENT.\r\n\r\nSee the Apache Version 2.0 License for specific language governing permissions\r\nand limitations under the License.\r\n***************************************************************************** */\r\n/* global Reflect, Promise */\r\n\r\nvar extendStatics = function(d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n};\r\n\r\nexport function __extends(d, b) {\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n}\r\n\r\nexport var __assign = function() {\r\n __assign = Object.assign || function __assign(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n }\r\n return t;\r\n }\r\n return __assign.apply(this, arguments);\r\n}\r\n\r\nexport function __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n}\r\n\r\nexport function __decorate(decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n}\r\n\r\nexport function __param(paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n}\r\n\r\nexport function __metadata(metadataKey, metadataValue) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\r\n}\r\n\r\nexport function __awaiter(thisArg, _arguments, P, generator) {\r\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n}\r\n\r\nexport function __generator(thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (_) try {\r\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n}\r\n\r\nexport function __exportStar(m, exports) {\r\n for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];\r\n}\r\n\r\nexport function __values(o) {\r\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\r\n if (m) return m.call(o);\r\n if (o && typeof o.length === \"number\") return {\r\n next: function () {\r\n if (o && i >= o.length) o = void 0;\r\n return { value: o && o[i++], done: !o };\r\n }\r\n };\r\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\r\n}\r\n\r\nexport function __read(o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n}\r\n\r\nexport function __spread() {\r\n for (var ar = [], i = 0; i < arguments.length; i++)\r\n ar = ar.concat(__read(arguments[i]));\r\n return ar;\r\n}\r\n\r\nexport function __spreadArrays() {\r\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n r[k] = a[j];\r\n return r;\r\n};\r\n\r\nexport function __await(v) {\r\n return this instanceof __await ? (this.v = v, this) : new __await(v);\r\n}\r\n\r\nexport function __asyncGenerator(thisArg, _arguments, generator) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\r\n return i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i;\r\n function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\r\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\r\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\r\n function fulfill(value) { resume(\"next\", value); }\r\n function reject(value) { resume(\"throw\", value); }\r\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\r\n}\r\n\r\nexport function __asyncDelegator(o) {\r\n var i, p;\r\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\r\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === \"return\" } : f ? f(v) : v; } : f; }\r\n}\r\n\r\nexport function __asyncValues(o) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var m = o[Symbol.asyncIterator], i;\r\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\r\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\r\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\r\n}\r\n\r\nexport function __makeTemplateObject(cooked, raw) {\r\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\r\n return cooked;\r\n};\r\n\r\nexport function __importStar(mod) {\r\n if (mod && mod.__esModule) return mod;\r\n var result = {};\r\n if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];\r\n result.default = mod;\r\n return result;\r\n}\r\n\r\nexport function __importDefault(mod) {\r\n return (mod && mod.__esModule) ? mod : { default: mod };\r\n}\r\n\r\nexport function __classPrivateFieldGet(receiver, privateMap) {\r\n if (!privateMap.has(receiver)) {\r\n throw new TypeError(\"attempted to get private field on non-instance\");\r\n }\r\n return privateMap.get(receiver);\r\n}\r\n\r\nexport function __classPrivateFieldSet(receiver, privateMap, value) {\r\n if (!privateMap.has(receiver)) {\r\n throw new TypeError(\"attempted to set private field on non-instance\");\r\n }\r\n privateMap.set(receiver, value);\r\n return value;\r\n}\r\n","/*!\n * @license\n * Alfresco Example Content Application\n *\n * Copyright (C) 2005 - 2020 Alfresco Software Limited\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 * along with Alfresco. 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 { map, catchError } from 'rxjs/operators';\n\nexport type ExtensionLoaderCallback = (\n route: ActivatedRouteSnapshot\n) => Observable<boolean>;\n\nexport function DefaultExtensionLoaderFactory() {\n return [];\n}\n\nexport const EXTENSION_DATA_LOADERS = new InjectionToken<\n ExtensionLoaderCallback[]\n>('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 this.invoked = true;\n\n if (!this.extensionDataLoaders.length) {\n return of(true);\n }\n\n const dataLoaderCallbacks = this.extensionDataLoaders.map(callback =>\n callback(route)\n );\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 catchError(e => {\n // tslint:disable-next-line\n console.error(\n 'Some of the extension data loader guards has been errored.'\n );\n // tslint:disable-next-line\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 * @license\n * Alfresco Example Content Application\n *\n * Copyright (C) 2005 - 2020 Alfresco Software Limited\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 * along with Alfresco. If not, see <http://www.gnu.org/licenses/>.\n */\n\nimport {\n Component,\n ViewEncapsulation,\n ChangeDetectionStrategy,\n Input,\n HostBinding\n} from '@angular/core';\n\n@Component({\n selector: 'aca-page-layout-content',\n template: `\n <ng-content></ng-content>\n `,\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 * @license\n * Alfresco Example Content Application\n *\n * Copyright (C) 2005 - 2020 Alfresco Software Limited\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 * along with Alfresco. If not, see <http://www.gnu.org/licenses/>.\n */\n\nimport {\n Component,\n ViewEncapsulation,\n ChangeDetectionStrategy\n} from '@angular/core';\n\n@Component({\n selector: 'aca-page-layout-error',\n template: `\n <ng-content></ng-content>\n `,\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: { class: 'aca-page-layout-error' }\n})\nexport class PageLayoutErrorComponent {}\n","/*!\n * @license\n * Alfresco Example Content Application\n *\n * Copyright (C) 2005 - 2020 Alfresco Software Limited\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 * along with Alfresco. If not, see <http://www.gnu.org/licenses/>.\n */\n\nimport {\n Component,\n ViewEncapsulation,\n ChangeDetectionStrategy\n} 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 * @license\n * Alfresco Example Content Application\n *\n * Copyright (C) 2005 - 2020 Alfresco Software Limited\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 * along with Alfresco. If not, see <http://www.gnu.org/licenses/>.\n */\n\nimport {\n Component,\n ViewEncapsulation,\n ChangeDetectionStrategy,\n Input\n} from '@angular/core';\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 changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class PageLayoutComponent {\n @Input()\n hasError = false;\n}\n","/*!\n * @license\n * Alfresco Example Content Application\n *\n * Copyright (C) 2005 - 2020 Alfresco Software Limited\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 * along with Alfresco. 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';\n\n@NgModule({\n imports: [CommonModule],\n declarations: [\n PageLayoutContentComponent,\n PageLayoutErrorComponent,\n PageLayoutHeaderComponent,\n PageLayoutComponent\n ],\n exports: [\n PageLayoutContentComponent,\n PageLayoutErrorComponent,\n PageLayoutHeaderComponent,\n PageLayoutComponent\n ]\n})\nexport class PageLayoutModule {}\n","/*!\n * @license\n * Alfresco Example Content Application\n *\n * Copyright (C) 2005 - 2020 Alfresco Software Limited\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 * along with Alfresco. If not, see <http://www.gnu.org/licenses/>.\n */\n\nimport {\n Component,\n Input,\n OnInit,\n ChangeDetectionStrategy,\n ViewEncapsulation\n} from '@angular/core';\n\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--name\">{{ writeLockedBy() }}</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 implements OnInit {\n @Input()\n context: any;\n\n node: NodeEntry;\n\n constructor() {}\n\n ngOnInit() {\n this.node = this.context.row.node;\n }\n\n writeLockedBy() {\n return (\n this.node &&\n this.node.entry.properties &&\n this.node.entry.properties['cm:lockOwner'] &&\n this.node.entry.properties['cm:lockOwner'].displayName\n );\n }\n}\n","/*!\n * @license\n * Alfresco Example Content Application\n *\n * Copyright (C) 2005 - 2020 Alfresco Software Limited\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 * along with Alfresco. 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';\n\n@NgModule({\n imports: [CommonModule, MatIconModule],\n declarations: [LockedByComponent],\n exports: [LockedByComponent]\n})\nexport class LockedByModule {}\n","/*!\n * @license\n * Alfresco Example Content Application\n *\n * Copyright (C) 2005 - 2020 Alfresco Software Limited\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 * along with Alfresco. 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(\n source: PermissionSource | PermissionSource[],\n permissions: string[],\n options?: PermissionOptions\n ): 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 =>\n this.isOperationAllowed(node, permissions, opts)\n );\n }\n return false;\n } else {\n return this.isOperationAllowed(source, permissions, opts);\n }\n }\n\n private isOperationAllowed(\n node: PermissionSource,\n permissions: string[],\n options: PermissionOptions\n ): boolean {\n const allowableOperations = this.getAllowableOperations(\n node,\n options.target\n );\n\n if (allowableOperations.length) {\n if (options.operation === NodePermissionService.DEFAULT_OPERATION) {\n return permissions.some(permission =>\n allowableOperations.includes(permission)\n );\n } else {\n return permissions.every(permission =>\n allowableOperations.includes(permission)\n );\n }\n }\n\n return false;\n }\n\n private getAllowableOperations(\n node: PermissionSource,\n property?: string\n ): 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 * @license\n * Alfresco Example Content Application\n *\n * Copyright (C) 2005 - 2020 Alfresco Software Limited\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 * along with Alfresco. If not, see <http://www.gnu.org/licenses/>.\n */\n\nimport { Injectable, Type } from '@angular/core';\nimport { Store } from '@ngrx/store';\nimport { MatIconRegistry } from '@angular/material/icon';\nimport { DomSanitizer } from '@angular/platform-browser';\nimport {\n AppStore,\n getRuleContext,\n getLanguagePickerState\n} 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} from '@alfresco/adf-extensions';\nimport {\n AppConfigService,\n AuthenticationService,\n LogService\n} from '@alfresco/adf-core';\nimport { BehaviorSubject, Observable } from 'rxjs';\nimport { RepositoryInfo, NodeEntry } from '@alfresco/js-api';\nimport { ViewerRules } from '../models/viewer.rules';\nimport { SettingsGroupRef, ExtensionRoute } from '../models/types';\nimport { NodePermissionService } from '../services/node-permission.service';\n\n@Injectable({\n providedIn: 'root'\n})\nexport class AppExtensionService implements RuleContext {\n private _references = new BehaviorSubject<ExtensionRef[]>([]);\n\n defaults = {\n layout: 'app.layout.main',\n auth: ['app.auth']\n };\n\n headerActions: Array<ContentActionRef> = [];\n toolbarActions: Array<ContentActionRef> = [];\n viewerToolbarActions: Array<ContentActionRef> = [];\n sharedLinkViewerToolbarActions: Array<ContentActionRef> = [];\n contextMenuActions: Array<ContentActionRef> = [];\n openWithActions: Array<ContentActionRef> = [];\n createActions: Array<ContentActionRef> = [];\n navbar: Array<NavBarGroupRef> = [];\n sidebarTabs: Array<SidebarTabRef> = [];\n sidebarActions: Array<ContentActionRef> = [];\n contentMetadata: any;\n viewerRules: ViewerRules = {};\n userActions: Array<ContentActionRef> = [];\n settingGroups: Array<SettingsGroupRef> = [];\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 languagePicker: boolean;\n\n references$: Observable<ExtensionRef[]>;\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 protected 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\n this.store.select(getLanguagePickerState).subscribe(result => {\n this.languagePicker = result;\n });\n }\n\n async load() {\n const config = await this.extensions.load();\n this.setup(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>(\n config,\n 'settings'\n );\n\n this.headerActions = this.loader.getContentActions(\n config,\n 'features.header'\n );\n this.sidebarActions = this.loader.getContentActions(\n config,\n 'features.sidebar.toolbar'\n );\n this.toolbarActions = this.loader.getContentActions(\n config,\n 'features.toolbar'\n );\n this.viewerToolbarActions = this.loader.getContentActions(\n config,\n 'features.viewer.toolbarActions'\n );\n this.sharedLinkViewerToolbarActions = this.loader.getContentActions(\n config,\n 'features.viewer.shared.toolbarActions'\n );\n\n this.contextMenuActions = this.loader.getContentActions(\n config,\n 'features.contextMenu'\n );\n this.openWithActions = this.loader.getContentActions(\n config,\n 'features.viewer.openWith'\n );\n this.createActions = this.loader.getElements<ContentActionRef>(\n config,\n 'features.create'\n );\n this.navbar = this.loadNavBar(config);\n this.sidebarTabs = this.loader.getElements<SidebarTabRef>(\n config,\n 'features.sidebar.tabs'\n );\n this.userActions = this.loader.getContentActions(\n config,\n 'features.userActions'\n );\n this.contentMetadata = this.loadContentMetadata(config);\n\n this.documentListPresets = {\n files: this.getDocumentListPreset(config, 'files'),\n libraries: this.getDocumentListPreset(config, 'libraries'),\n favoriteLibraries: this.getDocumentListPreset(\n config,\n 'favoriteLibraries'\n ),\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>(\n 'auth.withCredentials',\n false\n );\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 || [])\n .filter(entry => typeof entry === 'object')\n .map(entry => entry as ExtensionRef);\n this._references.next(references);\n }\n\n protected registerIcons(config: ExtensionConfig) {\n const icons: Array<IconRef> = this.loader\n .getElements<IconRef>(config, 'features.icons')\n .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 console.warn(`Missing icon value for \"${icon.id}\".`);\n } else if (!ns || !id) {\n console.warn(`Incorrect icon id format: \"${icon.id}\".`);\n } else {\n this.matIconRegistry.addSvgIconInNamespace(\n ns,\n id,\n this.sanitizer.bypassSecurityTrustResourceUrl(value)\n );\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) {\n return this.loader\n .getElements<DocumentListPresetRef>(\n config,\n `features.documentList.${key}`\n )\n .filter(entry => !entry.disabled);\n }\n\n getApplicationNavigation(elements): Array<NavBarGroupRef> {\n return elements\n .filter(group => this.filterVisible(group))\n .map(group => {\n return {\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(\n child.route\n );\n const childUrl = `/${\n childRouteRef ? childRouteRef.path : child.route\n }`;\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\n loadContentMetadata(config: ExtensionConfig): any {\n const elements = this.loader.getElements<any>(\n config,\n 'features.content-metadata-presets'\n );\n if (!elements.length) {\n return null;\n }\n\n let presets = {};\n presets = this.filterDisabled(mergeObjects(presets, ...elements));\n\n try {\n this.appConfig.config['content-metadata'] = { presets };\n } catch (error) {\n this.logger.error(\n error,\n '- could not change content-metadata from app.config -'\n );\n }\n\n return { presets };\n }\n\n filterDisabled(object: Array<{ disabled: boolean }> | { disabled: boolean }) {\n if (Array.isArray(object)) {\n return object\n .filter(item => !item.disabled)\n .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 getComponentById(id: string): Type<{}> {\n return this.extensions.getComponentById(id);\n }\n\n getApplicationRoutes(): Array<ExtensionRoute> {\n return this.extensions.routes.map(route => {\n const guards = this.extensions.getAuthGuards(\n route.auth && route.auth.length > 0 ? route.auth : this.defaults.auth\n );\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 {\n path: '',\n component: this.getComponentById(route.component),\n data: route.data\n }\n ]\n };\n });\n }\n\n getCreateActions(): Array<ContentActionRef> {\n return this.createActions\n .filter(action => this.filterVisible(action))\n .map(action => this.copyAction(action))\n .map(action => this.buildMenu(action))\n .map(action => {\n let disabled = false;\n\n if (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\n private buildMenu(actionRef: ContentActionRef): ContentActionRef {\n if (\n actionRef.type === ContentActionType.menu &&\n actionRef.children &&\n actionRef.children.length > 0\n ) {\n const children = actionRef.children\n .filter(action => this.filterVisible(action))\n .map(action => this.buildMenu(action));\n\n actionRef.children = children\n .map(action => {\n let disabled = false;\n\n if (action.rules && action.rules.enabled) {\n disabled = !this.extensions.evaluateRule(\n action.rules.enabled,\n this\n );\n }\n\n return {\n ...action,\n disabled\n };\n })\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 .reduce(reduceEmptyMenus, [])\n .reduce(reduceSeparators, []);\n }\n\n getAllowedSidebarActions(): Array<ContentActionRef> {\n return this.getAllowedActions(this.sidebarActions);\n }\n\n getAllowedToolbarActions(): Array<ContentActionRef> {\n return this.getAllowedActions(this.toolbarActions);\n }\n\n getViewerToolbarActions(): Array<ContentActionRef> {\n return this.getAllowedActions(this.viewerToolbarActions);\n }\n\n getSharedLinkViewerToolbarActions(): Array<ContentActionRef> {\n return this.getAllowedActions(this.sharedLinkViewerToolbarActions);\n }\n\n getHeaderActions(): Array<ContentActionRef> {\n return this.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 .sort(sortByOrder)\n .reduce(reduceEmptyMenus, [])\n .reduce(reduceSeparators, []);\n }\n\n getAllowedContextMenuActions(): Array<ContentActionRef> {\n return this.getAllowedActions(this.contextMenuActions);\n }\n\n getUserActions(): Array<ContentActionRef> {\n return this.userActions\n .filter(action => this.filterVisible(action))\n .sort(sortByOrder);\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(\n action: ContentActionRef | SettingsGroupRef | SidebarTabRef\n ): 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) {\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({ type, payload: expression });\n } else {\n this.store.dispatch({ type: id });\n }\n }\n\n // todo: move to ADF/RuleService\n isRuleDefined(ruleId: string): boolean {\n return ruleId && this.getEvaluator(ruleId) ? true : false;\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","/*!\n * @license\n * Alfresco Example Content Application\n *\n * Copyright (C) 2005 - 2020 Alfresco Software Limited\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 * along with Alfresco. 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';\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\n constructor(private extensions: AppExtensionService) {}\n\n runAction() {\n if (this.hasClickAction(this.actionRef)) {\n this.extensions.runActionById(this.actionRef.actions.click);\n }\n }\n\n private hasClickAction(actionRef: ContentActionRef): boolean {\n if (actionRef && actionRef.actions && actionRef.actions.click) {\n return true;\n }\n return false;\n }\n\n trackById(_: number, obj: { id: string }) {\n return obj.id;\n }\n}\n","/*!\n * @license\n * Alfresco Example Content Application\n *\n * Copyright (C) 2005 - 2020 Alfresco Software Limited\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 * along with Alfresco. If not, see <http://www.gnu.org/licenses/>.\n */\n\nimport { Component, Input, ViewEncapsulation } from '@angular/core';\nimport { ContentActionRef } from '@alfresco/adf-extensions';\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 {\n @Input()\n actionRef: ContentActionRef;\n\n @Input()\n color = '';\n\n get hasChildren(): boolean {\n return (\n this.actionRef &&\n this.actionRef.children &&\n this.actionRef.children.length > 0\n );\n }\n\n trackById(_: number, obj: { id: string }) {\n return obj.id;\n }\n}\n","/*!\n * @license\n * Alfresco Example Content Application\n *\n * Copyright (C) 2005 - 2020 Alfresco Software Limited\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 * along with Alfresco. If not, see <http://www.gnu.org/licenses/>.\n */\n\nimport {\n Component,\n ViewEncapsulation,\n ChangeDetectionStrategy,\n Input,\n DoCheck,\n ChangeDetectorRef\n} from '@angular/core';\nimport { ContentActionRef } from '@alfresco/adf-extensions';\n\n@Component({\n selector: 'aca-toolbar-action',\n templateUrl: './toolbar-action.component.html',\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: { class: 'aca-toolbar-action' }\n})\nexport class ToolbarActionComponent implements DoCheck {\n @Input()\n type = 'icon-button';\n\n @Input()\n color = '';\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","/*!\n * @license\n * Alfresco Example Content Application\n *\n * Copyright (C) 2005 - 2020 Alfresco Software Limited\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 * along with Alfresco. 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';\n\nexport enum ToolbarButtonType {\n ICON_BUTTON = 'icon-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 type: ToolbarButtonType = ToolbarButtonType.ICON_BUTTON;\n\n @Input()\n color = '';\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 }\n }\n\n private hasClickAction(actionRef: ContentActionRef): boolean {\n if (actionRef && actionRef.actions && actionRef.actions.click) {\n return true;\n }\n return false;\n }\n}\n","/*!\n * @license\n * Alfresco Example Content Application\n *\n * Copyright (C) 2005 - 2020 Alfresco Software Limited\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 * along with Alfresco. 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: [\n ToolbarButtonComponent,\n ToolbarActionComponent,\n ToolbarMenuItemComponent,\n ToolbarMenuComponent\n ],\n exports: [\n ToolbarButtonComponent,\n ToolbarActionComponent,\n ToolbarMenuItemComponent,\n ToolbarMenuComponent\n ]\n})\nexport class SharedToolbarModule {}\n","/*!\n * @license\n * Alfresco Example Content Application\n *\n * Copyright (C) 2005 - 2020 Alfresco Software Limited\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 * along with Alfresco. 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} from '@alfresco/js-api';\nimport { map } from 'rxjs/operators';\n\n@Injectable({\n providedIn: 'root'\n})\nexport class ContentApiService {\n constructor(\n private api: AlfrescoApiService,\n private preferences: UserPreferencesService\n ) {}\n\n /**\n * Moves a node to the trashcan.\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(\n nodeId: string,\n options: { permanent?: boolean } = {}\n ): Observable<void> {\n return from(this.api.nodesApi.deleteNode(nodeId, options));\n }\n\n /**\n * Gets the stored information about a node.\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']\n };\n const queryOptions = Object.assign(defaults, options);\n\n return from(this.api.nodesApi.getNode(nodeId, queryOptions));\n }\n\n getNodeInfo(nodeId: string, options?: any): Observable<Node> {\n const defaults = {\n include: ['isFavorite', 'allowableOperations', 'path']\n };\n const queryOptions = Object.assign(defaults, options || {});\n\n return from(this.api.nodesApi.getNodeInfo(nodeId, queryOptions));\n }\n\n /**\n * Gets the items contained in a folder node.\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: [\n 'isLocked',\n 'path',\n 'properties',\n 'allowableOperations',\n 'permissions'\n ]\n };\n const queryOptions = Object.assign(defaults, options);\n\n return from(this.api.nodesApi.getNodeChildren(nodeId, queryOptions));\n }\n\n deleteSharedLink(linkId: string): Observable<any> {\n return from(this.api.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.api.nodesApi.getDeletedNodes(queryOptions));\n }\n\n restoreNode(nodeId: string): Observable<MinimalNodeEntity> {\n return from(this.api.nodesApi.restoreNode(nodeId));\n }\n\n purgeDeletedNode(nodeId: string): Observable<any> {\n return from(this.api.nodesApi.purgeDeletedNode(nodeId));\n }\n\n /**\n * Gets information about a user identified by their username.\n * @param personId ID of the target user\n * @returns User information\n */\n getPerson(\n personId: string,\n options?: { fields?: Array<string> }\n ): Observable<PersonEntry> {\n return from(this.api.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 */\n copyNode(\n nodeId: string,\n targetParentId: string,\n name?: string,\n opts?: { include?: Array<string>; fields?: Array<string> }\n ): Observable<NodeEntry> {\n return from(\n this.api.nodesApi.copyNode(nodeId, { targetParentId, name }, opts)\n );\n }\n\n /**\n * Gets product information for Content Services.\n * @returns ProductVersionModel containing product details\n */\n getRepositoryInformation(): Observable<DiscoveryEntry> {\n return from(\n this.api.getInstance().discovery.discoveryApi.getRepositoryInformation()\n );\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.api.favoritesApi.getFavorites(personId, opts));\n }\n\n getFavoriteLibraries(\n personId: string = '-me-',\n opts?: any\n ): Observable<FavoritePaging> {\n return this.getFavorites(personId, {\n ...opts,\n where: '(EXISTS(target/site))'\n }).pipe(\n map((response: FavoritePaging) => {\n return {\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\n findSharedLinks(opts?: any): Observable<SharedLinkPaging> {\n return from(this.api.sharedLinksApi.findSharedLinks(opts));\n }\n\n getSharedLinkContent(sharedId: string, attachment?: boolean): string {\n return this.api.contentApi.getSharedLinkContentUrl(sharedId, attachment);\n }\n\n search(request: SearchRequest): Observable<ResultSetPaging> {\n return from(this.api.searchApi.search(request));\n }\n\n getContentUrl(nodeId: string, attachment?: boolean): string {\n return this.api.contentApi.getContentUrl(nodeId, attachment);\n }\n\n deleteSite(siteId?: string, opts?: { permanent?: boolean }): Observable<any> {\n return from(this.api.sitesApi.deleteSite(siteId, opts));\n }\n\n leaveSite(siteId?: string): Observable<any> {\n return from(this.api.sitesApi.removeSiteMember(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.api.sitesApi.createSite(siteBody, opts));\n }\n\n getSite(\n siteId?: string,\n opts?: { relations?: Array<string>; fields?: Array<string> }\n ): Observable<SiteEntry> {\n return from(this.api.sitesApi.getSite(siteId, opts));\n }\n\n updateLibrary(siteId: string, siteBody: SiteBody): Observable<SiteEntry> {\n return from(this.api.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.api.favoritesApi.addFavorite('-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.api.favoritesApi.removeFavoriteSite('-me-', id);\n })\n )\n );\n }\n\n unlockNode(nodeId: string, opts?: any) {\n return this.api.nodesApi.unlockNode(nodeId, opts);\n }\n}\n","/*!\n * @license\n * Alfresco Example Content Application\n *\n * Copyright (C) 2005 - 2020 Alfresco Software Limited\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 * along with Alfresco. If not, see <http://www.gnu.org/licenses/>.\n */\n\nimport {\n Component,\n HostListener,\n Input,\n OnChanges,\n OnDestroy,\n OnInit\n} from '@angular/core';\nimport {\n MinimalNodeEntity,\n MinimalNodeEntryEntity,\n SiteEntry\n} from '@alfresco/js-api';\nimport { ContentActionRef, SidebarTabRef } from '@alfresco/adf-extensions';\nimport { Store } from '@ngrx/store';\nimport {\n getAppSelection,\n SetInfoDrawerStateAction,\n ToggleInfoDrawerAction\n} 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';\n\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 @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\n @HostListener('keydown.escape')\n onEscapeKeyboardEvent(): void {\n this.close();\n }\n\n constructor(\n private store: Store<any>,\n private contentApi: ContentApiService,\n private extensions: AppExtensionService\n ) {}\n\n ngOnInit() {\n this.tabs = this.extensions.getSidebarTabs();\n this.store\n .select(getAppSelection)\n .pipe(takeUntil(this.onDestroy$))\n .subscribe(() => {\n this.actions = this.extensions.getAllowedSidebarActions();\n });\n }\n\n ngOnDestroy() {\n this.onDestroy$.next(true);\n this.onDestroy$.complete();\n this.store.dispatch(new SetInfoDrawerStateAction(false));\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 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","/*!\n * @license\n * Alfresco Example Content Application\n *\n * Copyright (C) 2005 - 2020 Alfresco Software Limited\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 * along with Alfresco. 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';\nimport { SharedToolbarModule } from '../tool-bar/shared-toolbar.module';\n\n@NgModule({\n imports: [\n CommonModule,\n InfoDrawerModule,\n MatProgressBarModule,\n ExtensionsModule,\n ToolbarModule,\n SharedToolbarModule\n ],\n declarations: [InfoDrawerComponent],\n exports: [InfoDrawerComponent]\n})\nexport class SharedInfoDrawerModule {}\n","/*!\n * @license\n * Alfresco Example Content Application\n *\n * Copyright (C) 2005 - 2020 Alfresco Software Limited\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 * along with Alfresco. If not, see <http://www.gnu.org/licenses/>.\n */\n\nimport {\n RouteReuseStrategy,\n DetachedRouteHandle,\n ActivatedRouteSnapshot\n} from '@angular/router';\nimport { ComponentRef } from '@angular/core';\n\ninterface RouteData {\n reuse: boolean;\n}\n\ninterface RouteInfo {\n handle: DetachedRouteHandle;\n data: RouteData;\n}\n\nexport class AppRouteReuseStrategy implements RouteReuseStrategy {\n private routeCache = new Map<string, RouteInfo>();\n\n resetCache() {\n this.routeCache.forEach(value => {\n this.deactivateComponent(value.handle);\n });\n this.routeCache.clear();\n }\n\n private deactivateComponent(handle: DetachedRouteHandle): void {\n if (!handle) {\n return;\n }\n const componentRef: ComponentRef<any> = handle['componentRef'];\n if (componentRef) {\n componentRef.destroy();\n }\n }\n\n shouldReuseRoute(\n future: ActivatedRouteSnapshot,\n curr: ActivatedRouteSnapshot\n ): boolean {\n const ret = future.routeConfig === curr.routeConfig;\n if (ret) {\n this.addRedirectsRecursively(future); // update redirects\n }\n return ret;\n }\n\n shouldDetach(route: ActivatedRouteSnapshot): boolean {\n const data = this.getRouteData(route);\n return data && data.reuse;\n }\n\n store(route: ActivatedRouteSnapshot, handle: DetachedRouteHandle): void {\n const url = this.getFullRouteUrl(route);\n const data = this.getRouteData(route);\n this.routeCache.set(url, { handle, data });\n this.addRedirectsRecursively(route);\n }\n\n shouldAttach(route: ActivatedRouteSnapshot): boolean {\n const url = this.getFullRouteUrl(route);\n return this.routeCache.has(url);\n }\n\n retrieve(route: ActivatedRouteSnapshot): DetachedRouteHandle {\n const url = this.getFullRouteUrl(route);\n const data = this.getRouteData(route);\n return data && data.reuse && this.routeCache.has(url)\n ? this.routeCache.get(url).handle\n : null;\n }\n\n private addRedirectsRecursively(route: ActivatedRouteSnapshot): void {\n const config = route.routeConfig;\n if (config) {\n if (!config.loadChildren) {\n const routeFirstChild = route.firstChild;\n const routeFirstChildUrl = routeFirstChild\n ? this.getRouteUrlPaths(routeFirstChild).join('/')\n : '';\n const childConfigs = config.children;\n if (childConfigs) {\n const childConfigWithRedirect = childConfigs.find(\n c => c.path === '' && !!c.redirectTo\n );\n if (childConfigWithRedirect) {\n childConfigWithRedirect.redirectTo = routeFirstChildUrl;\n }\n }\n }\n route.children.forEach(childRoute =>\n this.addRedirectsRecursively(childRoute)\n );\n }\n }\n\n private getFullRouteUrl(route: ActivatedRouteSnapshot): string {\n return this.getFullRouteUrlPaths(route)\n .filter(Boolean)\n .join('/');\n }\n\n private getFullRouteUrlPaths(route: ActivatedRouteSnapshot): string[] {\n const paths = this.getRouteUrlPaths(route);\n return route.parent\n ? [...this.getFullRouteUrlPaths(route.parent), ...paths]\n : paths;\n }\n\n private getRouteUrlPaths(route: ActivatedRouteSnapshot): string[] {\n return route.url.map(urlSegment => urlSegment.path);\n }\n\n private getRouteData(route: ActivatedRouteSnapshot): RouteData {\n return route.routeConfig && (route.routeConfig.data as RouteData);\n }\n}\n","/*!\n * @license\n * Alfresco Example Content Application\n *\n * Copyright (C) 2005 - 2020 Alfresco Software Limited\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 * along with Alfresco. 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(\n _: ActivatedRouteSnapshot\n ): Observable<boolean> | Promise<boolean> | boolean {\n return this.isQuickShareEnabled$;\n }\n\n canActivateChild(\n route: ActivatedRouteSnapshot\n ): Observable<boolean> | Promise<boolean> | boolean {\n return this.canActivate(route);\n }\n}\n","/*!\n * @license\n * Alfresco Example Content Application\n *\n * Copyright (C) 2005 - 2020 Alfresco Software Limited\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 * along with Alfresco. If not, see <http://www.gnu.org/licenses/>.\n */\n\nimport { Injectable, Inject } from '@angular/core';\nimport { AuthenticationService, AppConfigService } from '@alfresco/adf-core';\nimport { Observable, BehaviorSubject } from 'rxjs';\nimport { RouteReuseStrategy } from '@angular/router';\nimport { AppRouteReuseStrategy } from '../routing/app.routes.strategy';\nimport { SearchQueryBuilderService } from '@alfresco/adf-content-services';\n\n@Injectable({\n providedIn: 'root'\n})\nexport class AppService {\n private ready: BehaviorSubject<boolean>;\n ready$: Observable<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 auth: AuthenticationService,\n private config: AppConfigService,\n searchQueryBuilderService: SearchQueryBuilderService,\n @Inject(RouteReuseStrategy) routeStrategy: AppRouteReuseStrategy\n ) {\n this.ready = new BehaviorSubject(auth.isLoggedIn() || this.withCredentials);\n this.ready$ = this.ready.asObservable();\n\n auth.onLogin.subscribe(() => {\n routeStrategy.resetCache();\n this.ready.next(true);\n });\n\n auth.onLogout.subscribe(() => {\n searchQueryBuilderService.resetToDefaults();\n routeStrategy.resetCache();\n });\n }\n}\n","/*!\n * @license\n * Alfresco Example Content Application\n *\n * Copyright (C) 2005 - 2020 Alfresco Software Limited\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 * along with Alfresco. If not, see <http://www.gnu.org/licenses/>.\n */\n\nimport {\n Component,\n ViewEncapsulation,\n ChangeDetectionStrategy,\n Input\n} 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","/*!\n * @license\n * Alfresco Example Content Application\n *\n * Copyright (C) 2005 - 2020 Alfresco Software Limited\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 * along with Alfresco. 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 * @license\n * Alfresco Example Content Application\n *\n * Copyright (C) 2005 - 2020 Alfresco Software Limited\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 * along with Alfresco. If not, see <http://www.gnu.org/licenses/>.\n */\n\nimport {\n Directive,\n HostListener,\n Input,\n OnInit,\n OnDestroy\n} 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 // tslint:disable-next-line:no-input-rename\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$\n .pipe(\n debounceTime(300),\n takeUntil(this.onDestroy$)\n )\n .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 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(\n 'adf-is-selected'\n );\n }\n\n private findAncestor(el: Element, className: string): Element {\n if (el.classList.contains(className)) {\n return el;\n }\n // tslint:disable-next-line:curly\n while ((el = el.parentElement) && !el.classList.contains(className));\n return el;\n }\n}\n","/*!\n * @license\n * Alfresco Example Content Application\n *\n * Copyright (C) 2005 - 2020 Alfresco Software Limited\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 * along with Alfresco. 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 * @license\n * Alfresco Example Content Application\n *\n * Copyright (C) 2005 - 2020 Alfresco Software Limited\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 * along with Alfresco. If not, see <http://www.gnu.org/licenses/>.\n */\n\nimport { Directive, OnInit, OnDestroy } from '@angular/core';\nimport {\n PaginationComponent,\n UserPreferencesService,\n PaginationModel,\n AppConfigService\n} 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(\n private pagination: PaginationComponent,\n private preferences: UserPreferencesService,\n private config: AppConfigService\n ) {}\n\n ngOnInit() {\n this.pagination.supportedPageSizes = this.config.get(\n 'pagination.supportedPageSizes'\n );\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 * @license\n * Alfresco Example Content Application\n *\n * Copyright (C) 2005 - 2020 Alfresco Software Limited\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 * along with Alfresco. 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 * @license\n * Alfresco Example Content Application\n *\n * Copyright (C) 2005 - 2020 Alfresco Software Limited\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 * along with Alfresco. 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 const { entry } = node;\n\n return (\n (entry && entry.isLocked) ||\n (entry.properties &&\n (entry.properties['cm:lockType'] === 'READ_ONLY_LOCK' ||\n entry.properties['cm:lockType'] === 'WRITE_LOCK'))\n );\n}\n\nexport function isLibrary(node: { entry: Node | any }): boolean {\n const { entry } = node;\n\n return (\n (entry.guid &&\n entry.id &&\n entry.preset &&\n entry.title &&\n entry.visibility) ||\n entry.nodeType === 'st:site'\n );\n}\n","/*!\n * @license\n * Alfresco Example Content Application\n *\n * Copyright (C) 2005 - 2020 Alfresco Software Limited\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 * along with Alfresco. 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';\n\n@NgModule({\n imports: [ContextActionsModule],\n exports: [ContextActionsModule]\n})\nexport class SharedModule {\n static forRoot(): ModuleWithProviders {\n return {\n ngModule: SharedModule,\n providers: [ContentApiService, NodePermissionService, AppService]\n };\n }\n}\n"],"names":["InjectionToken","of","forkJoin","map","catchError","Injectable","Inject","Component","ViewEncapsulation","ChangeDetectionStrategy","Input","HostBinding","NgModule","CommonModule","MatIconModule","store","BehaviorSubject","getRuleContext","getLanguagePickerState","tslib_1.__values","sortByOrder","reduceEmptyMenus","mergeObjects","ContentActionType","reduceSeparators","AuthenticationService","Store","ExtensionLoaderService","ExtensionService","AppConfigService","MatIconRegistry","DomSanitizer","LogService","ChangeDetectorRef","CoreModule","ExtensionsModule","from","AlfrescoApiService","UserPreferencesService","Subject","getAppSelection","takeUntil","SetInfoDrawerStateAction","ToggleInfoDrawerAction","HostListener","InfoDrawerModule","MatProgressBarModule","ToolbarModule","isQuickShareEnabled","SearchQueryBuilderService","RouteReuseStrategy","TranslateModule","debounceTime","ContextMenu","Directive","PaginationComponent"],"mappings":";;;;;;IAAA;;;;;;;;;;;;;;AAcA,IAeO,IAAI,QAAQ,GAAG;QAClB,QAAQ,GAAG,MAAM,CAAC,MAAM,IAAI,SAAS,QAAQ,CAAC,CAAC;YAC3C,KAAK,IAAI,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,SAAS,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE;gBACjD,CAAC,GAAG,SAAS,CAAC,CAAC,CAAC,CAAC;gBACjB,KAAK,IAAI,CAAC,IAAI,CAAC;oBAAE,IAAI,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC;wBAAE,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;aAChF;YACD,OAAO,CAAC,CAAC;SACZ,CAAA;QACD,OAAO,QAAQ,CAAC,KAAK,CAAC,IAAI,EAAE,SAAS,CAAC,CAAC;IAC3C,CAAC,CAAA;AAED,aA2BgB,SAAS,CAAC,OAAO,EAAE,UAAU,EAAE,CAAC,EAAE,SAAS;QACvD,SAAS,KAAK,CAAC,KAAK,IAAI,OAAO,KAAK,YAAY,CAAC,GAAG,KAAK,GAAG,IAAI,CAAC,CAAC,UAAU,OAAO,IAAI,OAAO,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE;QAC5G,OA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ACE,CAAC,KAAK,IAAI,KAAK,CAAC,QAAQ;aACvB,KAAK,CAAC,UAAU;iBACd,KAAK,CAAC,UAAU,CAAC,aAAa,CAAC,KAAK,gBAAgB;oBACnD,KAAK,CAAC,UAAU,CAAC,aAAa,CAAC,KAAK,YAAY,CAAC,CAAC,EACtD;IACJ,CAAC;;;;;AAED,aAAgB,SAAS,CAAC,IAA2B;QAC3C,IAAA,kBAAK;QAEb,QACE,CAAC,KAAK,CAAC,IAAI;YACT,KAAK,CAAC,EAAE;YACR,KAAK,CAAC,MAAM;YACZ,KAAK,CAAC,KAAK;YACX,KAAK,CAAC,UAAU;YAClB,KAAK,CAAC,QAAQ,KAAK,SAAS,EAC5B;IACJ,CAAC;;;;;;;QClBD;SAWC;;;;QANQ,oBAAO;;;YAAd;gBACE,OAAO;oBACL,QAAQ,EAAE,YAAY;oBACtB,SAAS,EAAE,CAAC,iBAAiB,EAAE,qBAAqB,EAAE,UAAU,CAAC;iBAClE,CAAC;aACH;;oBAVFA,WAAQ,SAAC;wBACR,OAAO,EAAE,CAAC,oBAAoB,CAAC;wBAC/B,OAAO,EAAE,CAAC,oBAAoB,CAAC;qBAChC;;QAQD,mBAAC;KAXD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/platform-browser"),require("@alfresco/adf-extensions"),require("@angular/material"),require("@angular/router"),require("@alfresco/adf-content-services"),require("@angular/material/icon"),require("@angular/common"),require("@ngx-translate/core"),require("rxjs/operators"),require("rxjs"),require("@ngrx/store"),require("@alfresco/aca-shared/store"),require("@alfresco/adf-core"),require("@angular/core")):"function"==typeof define&&define.amd?define("@alfresco/aca-shared",["exports","@angular/platform-browser","@alfresco/adf-extensions","@angular/material","@angular/router","@alfresco/adf-content-services","@angular/material/icon","@angular/common","@ngx-translate/core","rxjs/operators","rxjs","@ngrx/store","@alfresco/aca-shared/store","@alfresco/adf-core","@angular/core"],t):t((e.alfresco=e.alfresco||{},e.alfresco["aca-shared"]={}),e.ng.platformBrowser,e["@alfresco/adf-extensions"],e["@angular/material"],e.ng.router,e.i2,e.ng.material.icon,e.ng.common,e["@ngx-translate/core"],e.rxjs.operators,e.rxjs,e["@ngrx/store"],e.alfresco["aca-shared"].store,e["@alfresco/adf-core"],e.ng.core)}(this,function(e,t,r,n,o,i,a,s,c,u,l,p,d,f,h){"use strict";var g=function(){return(g=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)};function y(e,a,s,c){return new(s||(s=Promise))(function(t,n){function o(e){try{i(c.next(e))}catch(t){n(t)}}function r(e){try{i(c["throw"](e))}catch(t){n(t)}}function i(e){e.done?t(e.value):function n(t){return t instanceof s?t:new s(function(e){e(t)})}(e.value).then(o,r)}i((c=c.apply(e,a||[])).next())})}function m(o,r){var i,a,s,e,c={label:0,sent:function(){if(1&s[0])throw s[1];return s[1]},trys:[],ops:[]};return e={next:t(0),"throw":t(1),"return":t(2)},"function"==typeof Symbol&&(e[Symbol.iterator]=function(){return this}),e;function t(t){return function(e){return function n(e){if(i)throw new TypeError("Generator is already executing.");for(;c;)try{if(i=1,a&&(s=2&e[0]?a["return"]:e[0]?a["throw"]||((s=a["return"])&&s.call(a),0):a.next)&&!(s=s.call(a,e[1])).done)return s;switch(a=0,s&&(e=[2&e[0],s.value]),e[0]){case 0:case 1:s=e;break;case 4:return c.label++,{value:e[1],done:!1};case 5:c.label++,a=e[1],e=[0];continue;case 7:e=c.ops.pop(),c.trys.pop();continue;default:if(!(s=0<(s=c.trys).length&&s[s.length-1])&&(6===e[0]||2===e[0])){c=0;continue}if(3===e[0]&&(!s||e[1]>s[0]&&e[1]<s[3])){c.label=e[1];break}if(6===e[0]&&c.label<s[1]){c.label=s[1],s=e;break}if(s&&c.label<s[2]){c.label=s[2],c.ops.push(e);break}s[2]&&c.ops.pop(),c.trys.pop();continue}e=r.call(o,c)}catch(t){e=[6,t],a=0}finally{i=s=0}if(5&e[0])throw e[1];return{value:e[0]?e[1]:void 0,done:!0}}([t,e])}}}function b(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var o,r,i=n.call(e),a=[];try{for(;(void 0===t||0<t--)&&!(o=i.next()).done;)a.push(o.value)}catch(s){r={error:s}}finally{try{o&&!o.done&&(n=i["return"])&&n.call(i)}finally{if(r)throw r.error}}return a}function v(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(b(arguments[t]));return e}function A(){return[]}var w=new h.InjectionToken("EXTENSION_DATA_LOADERS",{providedIn:"root",factory:A}),x=function(){function e(e){this.extensionDataLoaders=e,this.invoked=!1}return e.prototype.canActivate=function(t){if(this.invoked)return l.of(!0);if(this.invoked=!0,!this.extensionDataLoaders.length)return l.of(!0);var e=this.extensionDataLoaders.map(function(e){return e(t)});return l.forkJoin.apply(void 0,v(e)).pipe(u.map(function(){return!0}),u.catchError(function(e){return console.error("Some of the extension data loader guards has been errored."),console.error(e),l.of(!0)}))},e.prototype.canActivateChild=function(){return l.of(!0)},e.decorators=[{type:h.Injectable,args:[{providedIn:"root"}]}],e.ctorParameters=function(){return[{type:Array,decorators:[{type:h.Inject,args:[w]}]}]},e.ngInjectableDef=h.defineInjectable({factory:function(){return new e(h.inject(w))},token:e,providedIn:"root"}),e}(),S=function(){function e(){this.scrollable=!1}return e.decorators=[{type:h.Component,args:[{selector:"aca-page-layout-content",template:"\n <ng-content></ng-content>\n ",encapsulation:h.ViewEncapsulation.None,changeDetection:h.ChangeDetectionStrategy.OnPush,host:{"class":"aca-page-layout-content"}}]}],e.propDecorators={scrollable:[{type:h.Input},{type:h.HostBinding,args:["class.scrollable"]}]},e}(),C=function(){function e(){}return e.decorators=[{type:h.Component,args:[{selector:"aca-page-layout-error",template:"\n <ng-content></ng-content>\n ",encapsulation:h.ViewEncapsulation.None,changeDetection:h.ChangeDetectionStrategy.OnPush,host:{"class":"aca-page-layout-error"}}]}],e}(),R=function(){function e(){}return e.decorators=[{type:h.Component,args:[{selector:"aca-page-layout-header",template:"<ng-content></ng-content>",encapsulation:h.ViewEncapsulation.None,changeDetection:h.ChangeDetectionStrategy.OnPush,host:{"class":"aca-page-layout-header"}}]}],e}(),I=function(){function e(){this.hasError=!1}return e.decorators=[{type:h.Component,args:[{selector:"aca-page-layout",template:'<ng-content select="aca-page-layout-header"></ng-content>\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',encapsulation:h.ViewEncapsulation.None,host:{"class":"aca-page-layout"},changeDetection:h.ChangeDetectionStrategy.OnPush,styles:[".aca-page-layout{display:flex;flex-direction:column;flex:1;height:100%;overflow:hidden;min-height:0}.aca-page-layout .aca-page-layout-header{display:flex;align-items:center;flex:0 0 65px;flex-basis:48px;background:#fafafa;border-bottom:1px solid var(--theme-border-color,rgba(0,0,0,.07));padding:0 24px}.aca-page-layout .aca-page-layout-content,.aca-page-layout .aca-page-layout-error{display:flex;flex-direction:row;flex:1;height:100%;overflow:hidden}.aca-page-layout .main-content{display:flex;flex-direction:column;flex:1;height:100%;overflow:hidden;min-height:0}.aca-page-layout .scrollable,.aca-page-layout .scrollable .main-content{overflow:auto!important}.aca-page-layout .sidebar{display:block;height:100%;overflow-y:scroll;max-width:350px;width:350px}[dir=rtl] .aca-page-layout .main-content{border-left:1px solid var(--theme-border-color,rgba(0,0,0,.07))}[dir=ltr] .aca-page-layout .main-content{border-right:1px solid var(--theme-border-color,rgba(0,0,0,.07))}"]}]}],e.propDecorators={hasError:[{type:h.Input}]},e}(),D=function(){function e(){}return e.decorators=[{type:h.NgModule,args:[{imports:[s.CommonModule],declarations:[S,C,R,I],exports:[S,C,R,I]}]}],e}(),k=function(){function e(){}return e.prototype.ngOnInit=function(){this.node=this.context.row.node},e.prototype.writeLockedBy=function(){return this.node&&this.node.entry.properties&&this.node.entry.properties["cm:lockOwner"]&&this.node.entry.properties["cm:lockOwner"].displayName},e.decorators=[{type:h.Component,args:[{selector:"aca-locked-by",template:'\n <mat-icon class="locked_by--icon">lock</mat-icon>\n <span class="locked_by--name">{{ writeLockedBy() }}</span>\n ',changeDetection:h.ChangeDetectionStrategy.OnPush,encapsulation:h.ViewEncapsulation.None,host:{"class":"aca-locked-by"},styles:[".aca-locked-by{display:flex;align-items:center;padding:0 10px;color:var(--theme-text-color,rgba(0,0,0,.54))}.aca-locked-by .locked_by--icon{font-size:14px;width:14px;height:14px}.aca-locked-by .locked_by--name{font-size:12px;padding:0 2px}"]}]}],e.ctorParameters=function(){return[]},e.propDecorators={context:[{type:h.Input}]},e}(),E=function(){function e(){}return e.decorators=[{type:h.NgModule,args:[{imports:[s.CommonModule,a.MatIconModule],declarations:[k],exports:[k]}]}],e}(),L=function(){function r(){this.defaultOptions={operation:r.DEFAULT_OPERATION,target:null}}return r.prototype.check=function(e,t,n){var o=this,r=Object.assign({},this.defaultOptions,n||{});return!!e&&(Array.isArray(e)?0<(e=e.filter(function(e){return e})).length&&e.every(function(e){return o.isOperationAllowed(e,t,r)}):this.isOperationAllowed(e,t,r))},r.prototype.isOperationAllowed=function(e,t,n){var o=this.getAllowableOperations(e,n.target);return!!o.length&&(n.operation===r.DEFAULT_OPERATION?t.some(function(e){return o.includes(e)}):t.every(function(e){return o.includes(e)}))},r.prototype.getAllowableOperations=function(e,t){var n;return n="entry"in e?e.entry:e,t?n[t]||[]:"allowableOperationsOnTarget"in n?n.allowableOperationsOnTarget||[]:n.allowableOperations||[]},r.DEFAULT_OPERATION="OR",r.decorators=[{type:h.Injectable,args:[{providedIn:"root"}]}],r.ngInjectableDef=h.defineInjectable({factory:function(){return new r},token:r,providedIn:"root"}),r}(),O=function(){function e(e,t,n,o,r,i,a,s,c){var u=this;this.auth=e,this.store=t,this.loader=n,this.extensions=o,this.permissions=r,this.appConfig=i,this.matIconRegistry=a,this.sanitizer=s,this.logger=c,this._references=new l.BehaviorSubject([]),this.defaults={layout:"app.layout.main",auth:["app.auth"]},this.headerActions=[],this.toolbarActions=[],this.viewerToolbarActions=[],this.sharedLinkViewerToolbarActions=[],this.contextMenuActions=[],this.openWithActions=[],this.createActions=[],this.navbar=[],this.sidebarTabs=[],this.sidebarActions=[],this.viewerRules={},this.userActions=[],this.settingGroups=[],this.documentListPresets={files:[],libraries:[],favoriteLibraries:[],shared:[],recent:[],favorites:[],trashcan:[],searchLibraries:[]},this.references$=this._references.asObservable(),this.store.select(d.getRuleContext).subscribe(function(e){u.selection=e.selection,u.navigation=e.navigation,u.profile=e.profile,u.repository=e.repository}),this.store.select(d.getLanguagePickerState).subscribe(function(e){u.languagePicker=e})}return e.prototype.load=function(){return y(this,void 0,void 0,function(){var t;return m(this,function(e){switch(e.label){case 0:return[4,this.extensions.load()];case 1:return t=e.sent(),this.setup(t),[2]}})})},e.prototype.setup=function(e){if(e){this.settingGroups=this.loader.getElements(e,"settings"),this.headerActions=this.loader.getContentActions(e,"features.header"),this.sidebarActions=this.loader.getContentActions(e,"features.sidebar.toolbar"),this.toolbarActions=this.loader.getContentActions(e,"features.toolbar"),this.viewerToolbarActions=this.loader.getContentActions(e,"features.viewer.toolbarActions"),this.sharedLinkViewerToolbarActions=this.loader.getContentActions(e,"features.viewer.shared.toolbarActions"),this.contextMenuActions=this.loader.getContentActions(e,"features.contextMenu"),this.openWithActions=this.loader.getContentActions(e,"features.viewer.openWith"),this.createActions=this.loader.getElements(e,"features.create"),this.navbar=this.loadNavBar(e),this.sidebarTabs=this.loader.getElements(e,"features.sidebar.tabs"),this.userActions=this.loader.getContentActions(e,"features.userActions"),this.contentMetadata=this.loadContentMetadata(e),this.documentListPresets={files:this.getDocumentListPreset(e,"files"),libraries:this.getDocumentListPreset(e,"libraries"),favoriteLibraries:this.getDocumentListPreset(e,"favoriteLibraries"),shared:this.getDocumentListPreset(e,"shared"),recent:this.getDocumentListPreset(e,"recent"),favorites:this.getDocumentListPreset(e,"favorites"),trashcan:this.getDocumentListPreset(e,"trashcan"),searchLibraries:this.getDocumentListPreset(e,"search-libraries")},this.withCredentials=this.appConfig.get("auth.withCredentials",!1),e.features&&e.features.viewer&&(this.viewerRules=e.features.viewer.rules||{}),this.registerIcons(e);var t=(e.$references||[]).filter(function(e){return"object"==typeof e}).map(function(e){return e});this._references.next(t)}else this.logger.error("Extension configuration not found")},e.prototype.registerIcons=function(e){var t,n,o=this.loader.getElements(e,"features.icons").filter(function(e){return!e.disabled});try{for(var r=function p(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],o=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&o>=e.length&&(e=void 0),{value:e&&e[o++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(o),i=r.next();!i.done;i=r.next()){var a=i.value,s=b(a.id.split(":"),2),c=s[0],u=s[1],l=a.value;l?c&&u?this.matIconRegistry.addSvgIconInNamespace(c,u,this.sanitizer.bypassSecurityTrustResourceUrl(l)):console.warn('Incorrect icon id format: "'+a.id+'".'):console.warn('Missing icon value for "'+a.id+'".')}}catch(d){t={error:d}}finally{try{i&&!i.done&&(n=r["return"])&&n.call(r)}finally{if(t)throw t.error}}},e.prototype.loadNavBar=function(e){return this.loader.getElements(e,"features.navbar")},e.prototype.getDocumentListPreset=function(e,t){return this.loader.getElements(e,"features.documentList."+t).filter(function(e){return!e.disabled})},e.prototype.getApplicationNavigation=function(e){var o=this;return e.filter(function(e){return o.filterVisible(e)}).map(function(e){return g({},e,{items:(e.items||[]).filter(function(e){return!e.disabled}).filter(function(e){return o.filterVisible(e)}).sort(r.sortByOrder).map(function(e){if(e.children&&0<e.children.length)return e.children=e.children.filter(function(e){return!e.disabled}).filter(function(e){return o.filterVisible(e)}).sort(r.sortByOrder).map(function(e){if(e.component)return g({},e);if(e.click)return g({},e,{action:e.click});var t=o.extensions.getRouteById(e.route),n="/"+(t?t.path:e.route);return g({},e,{url:n})}),g({},e);if(e.component)return g({},e);if(e.click)return g({},e,{action:e.click});var t=o.extensions.getRouteById(e.route),n="/"+(t?t.path:e.route);return g({},e,{url:n})}).reduce(r.reduceEmptyMenus,[])})})},e.prototype.loadContentMetadata=function(e){var t=this.loader.getElements(e,"features.content-metadata-presets");if(!t.length)return null;var n={};n=this.filterDisabled(r.mergeObjects.apply(void 0,v([n],t)));try{this.appConfig.config["content-metadata"]={presets:n}}catch(o){this.logger.error(o,"- could not change content-metadata from app.config -")}return{presets:n}},e.prototype.filterDisabled=function(t){var n=this;return Array.isArray(t)?t.filter(function(e){return!e.disabled}).map(function(e){return n.filterDisabled(e)}):"object"!=typeof t?t:t.disabled?void 0:(Object.keys(t).forEach(function(e){t[e]=n.filterDisabled(t[e])}),t)},e.prototype.getNavigationGroups=function(){return this.navbar},e.prototype.getSidebarTabs=function(){var t=this;return this.sidebarTabs.filter(function(e){return t.filterVisible(e)})},e.prototype.getComponentById=function(e){return this.extensions.getComponentById(e)},e.prototype.getApplicationRoutes=function(){var n=this;return this.extensions.routes.map(function(e){var t=n.extensions.getAuthGuards(e.auth&&0<e.auth.length?e.auth:n.defaults.auth);return{path:e.path,component:n.getComponentById(e.layout||n.defaults.layout),canActivateChild:t,canActivate:t,parentRoute:e.parentRoute,children:[{path:"",component:n.getComponentById(e.component),data:e.data}]}})},e.prototype.getCreateActions=function(){var n=this;return this.createActions.filter(function(e){return n.filterVisible(e)}).map(function(e){return n.copyAction(e)}).map(function(e){return n.buildMenu(e)}).map(function(e){var t=!1;return e.rules&&e.rules.enabled&&(t=!n.extensions.evaluateRule(e.rules.enabled,n)),g({},e,{disabled:t})})},e.prototype.buildMenu=function(e){var n=this;if(e.type===r.ContentActionType.menu&&e.children&&0<e.children.length){var t=e.children.filter(function(e){return n.filterVisible(e)}).map(function(e){return n.buildMenu(e)});e.children=t.map(function(e){var t=!1;return e.rules&&e.rules.enabled&&(t=!n.extensions.evaluateRule(e.rules.enabled,n)),g({},e,{disabled:t})}).sort(r.sortByOrder).reduce(r.reduceEmptyMenus,[]).reduce(r.reduceSeparators,[])}return e},e.prototype.getAllowedActions=function(e){var n=this;return(e||[]).filter(function(e){return n.filterVisible(e)}).map(function(e){if(e.type!==r.ContentActionType.menu)return e;var t=n.copyAction(e);return t.children&&0<t.children.length&&(t.children=t.children.filter(function(e){return!e.disabled}).filter(function(e){return n.filterVisible(e)}).sort(r.sortByOrder).reduce(r.reduceSeparators,[])),t}).reduce(r.reduceEmptyMenus,[]).reduce(r.reduceSeparators,[])},e.prototype.getAllowedSidebarActions=function(){return this.getAllowedActions(this.sidebarActions)},e.prototype.getAllowedToolbarActions=function(){return this.getAllowedActions(this.toolbarActions)},e.prototype.getViewerToolbarActions=function(){return this.getAllowedActions(this.viewerToolbarActions)},e.prototype.getSharedLinkViewerToolbarActions=function(){return this.getAllowedActions(this.sharedLinkViewerToolbarActions)},e.prototype.getHeaderActions=function(){var n=this;return this.headerActions.filter(function(e){return n.filterVisible(e)}).map(function(e){if(e.type!==r.ContentActionType.menu)return e;var t=n.copyAction(e);return t.children&&0<t.children.length&&(t.children=t.children.filter(function(e){return n.filterVisible(e)}).sort(r.sortByOrder).reduce(r.reduceEmptyMenus,[]).reduce(r.reduceSeparators,[])),t}).sort(r.sortByOrder).reduce(r.reduceEmptyMenus,[]).reduce(r.reduceSeparators,[])},e.prototype.getAllowedContextMenuActions=function(){return this.getAllowedActions(this.contextMenuActions)},e.prototype.getUserActions=function(){var t=this;return this.userActions.filter(function(e){return t.filterVisible(e)}).sort(r.sortByOrder)},e.prototype.getSettingsGroups=function(){var t=this;return this.settingGroups.filter(function(e){return t.filterVisible(e)})},e.prototype.copyAction=function(e){var t=this;return g({},e,{children:(e.children||[]).map(function(e){return t.copyAction(e)})})},e.prototype.filterVisible=function(e){return!(e&&e.rules&&e.rules.visible)||this.extensions.evaluateRule(e.rules.visible,this)},e.prototype.isViewerExtensionDisabled=function(e){if(e){if(e.disabled)return!0;if(e.rules&&e.rules.disabled)return this.extensions.evaluateRule(e.rules.disabled,this)}return!1},e.prototype.runActionById=function(e){var t=this.extensions.getActionById(e);if(t){var n=t.type,o=t.payload,r={selection:this.selection},i=this.extensions.runExpression(o,r);this.store.dispatch({type:n,payload:i})}else this.store.dispatch({type:e})},e.prototype.isRuleDefined=function(e){return!(!e||!this.getEvaluator(e))},e.prototype.evaluateRule=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var o=this.getEvaluator(e);return!!o&&o.apply(void 0,v([this],t))},e.prototype.getEvaluator=function(e){return this.extensions.getEvaluator(e)},e.prototype.canPreviewNode=function(e){var t=this.viewerRules;if(this.isRuleDefined(t.canPreview)&&!this.evaluateRule(t.canPreview,e))return!1;return!0},e.decorators=[{type:h.Injectable,args:[{providedIn:"root"}]}],e.ctorParameters=function(){return[{type:f.AuthenticationService},{type:p.Store},{type:r.ExtensionLoaderService},{type:r.ExtensionService},{type:L},{type:f.AppConfigService},{type:a.MatIconRegistry},{type:t.DomSanitizer},{type:f.LogService}]},e.ngInjectableDef=h.defineInjectable({factory:function(){return new e(h.inject(f.AuthenticationService),h.inject(p.Store),h.inject(r.ExtensionLoaderService),h.inject(r.ExtensionService),h.inject(L),h.inject(f.AppConfigService),h.inject(a.MatIconRegistry),h.inject(t.DomSanitizer),h.inject(f.LogService))},token:e,providedIn:"root"}),e}(),P=function(){function e(e){this.extensions=e}return e.prototype.runAction=function(){this.hasClickAction(this.actionRef)&&this.extensions.runActionById(this.actionRef.actions.click)},e.prototype.hasClickAction=function(e){return!!(e&&e.actions&&e.actions.click)},e.prototype.trackById=function(e,t){return t.id},e.decorators=[{type:h.Component,args:[{selector:"app-toolbar-menu-item",template:'<ng-container [ngSwitch]="actionRef.type">\n <ng-container *ngSwitchCase="\'menu\'">\n <button\n mat-menu-item\n role="menuitem"\n [disabled]="actionRef.disabled"\n [matMenuTriggerFor]="childMenu"\n >\n <adf-icon [value]="actionRef.icon"></adf-icon>\n <span>{{ actionRef.title | translate }}</span>\n </button>\n\n <mat-menu #childMenu="matMenu" class="app-create-menu__sub-menu">\n <ng-container\n *ngFor="let child of actionRef.children; trackBy: trackById"\n >\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 color="primary"\n [disabled]="actionRef.disabled"\n [attr.title]="\n (actionRef.disabled\n ? actionRef[\'description-disabled\']\n : actionRef.description || actionRef.title) | translate\n "\n (click)="runAction()"\n >\n <adf-icon [value]="actionRef.icon"></adf-icon>\n <span>{{ actionRef.title | translate }}</span>\n </button>\n </ng-container>\n</ng-container>\n',encapsulation:h.ViewEncapsulation.None,host:{"class":"app-toolbar-menu-item"},styles:["\n .app-toolbar-menu-item:last-child > .mat-divider-horizontal {\n display: none;\n }\n "]}]}],e.ctorParameters=function(){return[{type:O}]},e.propDecorators={actionRef:[{type:h.Input}]},e}(),j=function(){function e(){this.color=""}return Object.defineProperty(e.prototype,"hasChildren",{get:function(){return this.actionRef&&this.actionRef.children&&0<this.actionRef.children.length},enumerable:!0,configurable:!0}),e.prototype.trackById=function(e,t){return t.id},e.decorators=[{type:h.Component,args:[{selector:"app-toolbar-menu",template:'<button\n [id]="actionRef.id"\n [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>\n <adf-icon [value]="actionRef.icon"></adf-icon>\n</button>\n\n<mat-menu #menu="matMenu" [overlapTrigger]="false">\n <ng-container *ngFor="let child of actionRef.children; trackBy: trackById">\n <ng-container [ngSwitch]="child.type">\n <ng-container *ngSwitchCase="\'custom\'">\n <adf-dynamic-component\n [id]="child.component"\n [data]="child.data"\n ></adf-dynamic-component>\n </ng-container>\n <ng-container *ngSwitchDefault>\n <app-toolbar-menu-item [actionRef]="child"></app-toolbar-menu-item>\n </ng-container>\n </ng-container>\n </ng-container>\n</mat-menu>\n',encapsulation:h.ViewEncapsulation.None,host:{"class":"app-toolbar-menu"}}]}],e.propDecorators={actionRef:[{type:h.Input}],color:[{type:h.Input}]},e}(),M=function(){function e(e){this.cd=e,this.type="icon-button",this.color=""}return e.prototype.ngDoCheck=function(){this.actionRef.id.includes("app.viewer")&&this.cd.markForCheck()},e.decorators=[{type:h.Component,args:[{selector:"aca-toolbar-action",template:'<ng-container [ngSwitch]="actionRef.type">\n <ng-container *ngSwitchCase="\'default\'">\n <app-toolbar-button [type]="type" [actionRef]="actionRef" [color]="color">\n </app-toolbar-button>\n </ng-container>\n\n <ng-container *ngSwitchCase="\'button\'">\n <app-toolbar-button [type]="type" [actionRef]="actionRef" [color]="color">\n </app-toolbar-button>\n </ng-container>\n\n <adf-toolbar-divider\n *ngSwitchCase="\'separator\'"\n [id]="actionRef.id"\n ></adf-toolbar-divider>\n\n <ng-container *ngSwitchCase="\'menu\'">\n <app-toolbar-menu [actionRef]="actionRef" [color]="color">\n </app-toolbar-menu>\n </ng-container>\n\n <ng-container *ngSwitchCase="\'custom\'">\n <adf-dynamic-component\n [data]="actionRef.data"\n [id]="actionRef.component"\n ></adf-dynamic-component>\n </ng-container>\n</ng-container>\n',encapsulation:h.ViewEncapsulation.None,changeDetection:h.ChangeDetectionStrategy.OnPush,host:{"class":"aca-toolbar-action"}}]}],e.ctorParameters=function(){return[{type:h.ChangeDetectorRef}]},e.propDecorators={type:[{type:h.Input}],color:[{type:h.Input}],actionRef:[{type:h.Input}]},e}(),N="icon-button",T=function(){function e(e){this.extensions=e,this.type=N,this.color=""}return e.prototype.runAction=function(){this.hasClickAction(this.actionRef)&&this.extensions.runActionById(this.actionRef.actions.click)},e.prototype.hasClickAction=function(e){return!!(e&&e.actions&&e.actions.click)},e.decorators=[{type:h.Component,args:[{selector:"app-toolbar-button",template:'<ng-container [ngSwitch]="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 (click)="runAction()"\n >\n <adf-icon [value]="actionRef.icon"></adf-icon>\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',encapsulation:h.ViewEncapsulation.None,host:{"class":"app-toolbar-button"}}]}],e.ctorParameters=function(){return[{type:O}]},e.propDecorators={type:[{type:h.Input}],color:[{type:h.Input}],actionRef:[{type:h.Input}]},e}(),B=function(){function e(){}return e.decorators=[{type:h.NgModule,args:[{imports:[s.CommonModule,f.CoreModule,r.ExtensionsModule],declarations:[T,M,P,j],exports:[T,M,P,j]}]}],e}(),F=function(){function e(e,t){this.api=e,this.preferences=t}return e.prototype.deleteNode=function(e,t){return void 0===t&&(t={}),l.from(this.api.nodesApi.deleteNode(e,t))},e.prototype.getNode=function(e,t){void 0===t&&(t={});var n=Object.assign({include:["path","properties","allowableOperations","permissions"]},t);return l.from(this.api.nodesApi.getNode(e,n))},e.prototype.getNodeInfo=function(e,t){var n=Object.assign({include:["isFavorite","allowableOperations","path"]},t||{});return l.from(this.api.nodesApi.getNodeInfo(e,n))},e.prototype.getNodeChildren=function(e,t){void 0===t&&(t={});var n={maxItems:this.preferences.paginationSize,skipCount:0,include:["isLocked","path","properties","allowableOperations","permissions"]},o=Object.assign(n,t);return l.from(this.api.nodesApi.getNodeChildren(e,o))},e.prototype.deleteSharedLink=function(e){return l.from(this.api.sharedLinksApi.deleteSharedLink(e))},e.prototype.getDeletedNodes=function(e){void 0===e&&(e={});var t=Object.assign({include:["path"]},e);return l.from(this.api.nodesApi.getDeletedNodes(t))},e.prototype.restoreNode=function(e){return l.from(this.api.nodesApi.restoreNode(e))},e.prototype.purgeDeletedNode=function(e){return l.from(this.api.nodesApi.purgeDeletedNode(e))},e.prototype.getPerson=function(e,t){return l.from(this.api.peopleApi.getPerson(e,t))},e.prototype.copyNode=function(e,t,n,o){return l.from(this.api.nodesApi.copyNode(e,{targetParentId:t,name:n},o))},e.prototype.getRepositoryInformation=function(){return l.from(this.api.getInstance().discovery.discoveryApi.getRepositoryInformation())},e.prototype.getFavorites=function(e,t){return l.from(this.api.favoritesApi.getFavorites(e,t))},e.prototype.getFavoriteLibraries=function(e,t){return void 0===e&&(e="-me-"),this.getFavorites(e,g({},t,{where:"(EXISTS(target/site))"})).pipe(u.map(function(e){return{list:{entries:e.list.entries.map(function(e){var t=e.entry;return t.target.site.createdAt=t.createdAt,{entry:t.target.site}}),pagination:e.list.pagination}}}))},e.prototype.findSharedLinks=function(e){return l.from(this.api.sharedLinksApi.findSharedLinks(e))},e.prototype.getSharedLinkContent=function(e,t){return this.api.contentApi.getSharedLinkContentUrl(e,t)},e.prototype.search=function(e){return l.from(this.api.searchApi.search(e))},e.prototype.getContentUrl=function(e,t){return this.api.contentApi.getContentUrl(e,t)},e.prototype.deleteSite=function(e,t){return l.from(this.api.sitesApi.deleteSite(e,t))},e.prototype.leaveSite=function(e){return l.from(this.api.sitesApi.removeSiteMember(e,"-me-"))},e.prototype.createSite=function(e,t){return l.from(this.api.sitesApi.createSite(e,t))},e.prototype.getSite=function(e,t){return l.from(this.api.sitesApi.getSite(e,t))},e.prototype.updateLibrary=function(e,t){return l.from(this.api.sitesApi.updateSite(e,t))},e.prototype.addFavorite=function(e){var t=e.map(function(e){var t,n=e.entry,o=n.isFolder,r=n.nodeId,i=n.id,a=e.entry.guid,s=a||r||i;return{target:(t={},t[a?"site":o?"folder":"file"]={guid:s},t)}});return l.from(this.api.favoritesApi.addFavorite("-me-",t))},e.prototype.removeFavorite=function(e){var n=this;return l.from(Promise.all(e.map(function(e){var t=e.entry.nodeId||e.entry.id;return n.api.favoritesApi.removeFavoriteSite("-me-",t)})))},e.prototype.unlockNode=function(e,t){return this.api.nodesApi.unlockNode(e,t)},e.decorators=[{type:h.Injectable,args:[{providedIn:"root"}]}],e.ctorParameters=function(){return[{type:f.AlfrescoApiService},{type:f.UserPreferencesService}]},e.ngInjectableDef=h.defineInjectable({factory:function(){return new e(h.inject(f.AlfrescoApiService),h.inject(f.UserPreferencesService))},token:e,providedIn:"root"}),e}(),V=function(){function e(e,t,n){this.store=e,this.contentApi=t,this.extensions=n,this.isLoading=!1,this.tabs=[],this.actions=[],this.onDestroy$=new l.Subject}return e.prototype.onEscapeKeyboardEvent=function(){this.close()},e.prototype.ngOnInit=function(){var e=this;this.tabs=this.extensions.getSidebarTabs(),this.store.select(d.getAppSelection).pipe(u.takeUntil(this.onDestroy$)).subscribe(function(){e.actions=e.extensions.getAllowedSidebarActions()})},e.prototype.ngOnDestroy=function(){this.onDestroy$.next(!0),this.onDestroy$.complete(),this.store.dispatch(new d.SetInfoDrawerStateAction(!1))},e.prototype.ngOnChanges=function(){if(this.node){if(this.node.isLibrary)return this.setDisplayNode(this.node);var e=this.node.entry,t=e.nodeId||e.id;return this.loadNodeInfo(t)}},e.prototype.trackByActionId=function(e,t){return t.id},e.prototype.close=function(){this.store.dispatch(new d.ToggleInfoDrawerAction)},e.prototype.loadNodeInfo=function(e){var t=this;e&&(this.isLoading=!0,this.contentApi.getNodeInfo(e).subscribe(function(e){t.setDisplayNode(e),t.isLoading=!1},function(){return t.isLoading=!1}))},e.prototype.setDisplayNode=function(e){this.displayNode=e},e.decorators=[{type:h.Component,args:[{selector:"aca-info-drawer",template:'<div *ngIf="isLoading">\n <mat-progress-bar mode="indeterminate"></mat-progress-bar>\n</div>\n<ng-container *ngIf="!isLoading && !!displayNode">\n <adf-info-drawer\n [title]="\'APP.INFO_DRAWER.TITLE\'"\n cdkTrapFocus\n cdkTrapFocusAutoCapture\n >\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"></aca-toolbar-action>\n </ng-container>\n </adf-toolbar>\n\n <adf-info-drawer-tab\n *ngFor="let tab of tabs"\n [icon]="tab.icon"\n [label]="tab.title"\n >\n <adf-dynamic-tab\n [node]="displayNode"\n [id]="tab.component"\n [attr.data-automation-id]="tab.component"\n >\n </adf-dynamic-tab>\n </adf-info-drawer-tab>\n </adf-info-drawer>\n</ng-container>\n'}]}],e.ctorParameters=function(){return[{type:p.Store},{type:F},{type:O}]},e.propDecorators={nodeId:[{type:h.Input}],node:[{type:h.Input}],onEscapeKeyboardEvent:[{type:h.HostListener,args:["keydown.escape"]}]},e}(),_=function(){function e(){}return e.decorators=[{type:h.NgModule,args:[{imports:[s.CommonModule,f.InfoDrawerModule,n.MatProgressBarModule,r.ExtensionsModule,f.ToolbarModule,B],declarations:[V],exports:[V]}]}],e}(),U=function(){function e(){this.routeCache=new Map}return e.prototype.resetCache=function(){var t=this;this.routeCache.forEach(function(e){t.deactivateComponent(e.handle)}),this.routeCache.clear()},e.prototype.deactivateComponent=function(e){if(e){var t=e.componentRef;t&&t.destroy()}},e.prototype.shouldReuseRoute=function(e,t){var n=e.routeConfig===t.routeConfig;return n&&this.addRedirectsRecursively(e),n},e.prototype.shouldDetach=function(e){var t=this.getRouteData(e);return t&&t.reuse},e.prototype.store=function(e,t){var n=this.getFullRouteUrl(e),o=this.getRouteData(e);this.routeCache.set(n,{handle:t,data:o}),this.addRedirectsRecursively(e)},e.prototype.shouldAttach=function(e){var t=this.getFullRouteUrl(e);return this.routeCache.has(t)},e.prototype.retrieve=function(e){var t=this.getFullRouteUrl(e),n=this.getRouteData(e);return n&&n.reuse&&this.routeCache.has(t)?this.routeCache.get(t).handle:null},e.prototype.addRedirectsRecursively=function(e){var t=this,n=e.routeConfig;if(n){if(!n.loadChildren){var o=e.firstChild,r=o?this.getRouteUrlPaths(o).join("/"):"",i=n.children;if(i){var a=i.find(function(e){return""===e.path&&!!e.redirectTo});a&&(a.redirectTo=r)}}e.children.forEach(function(e){return t.addRedirectsRecursively(e)})}},e.prototype.getFullRouteUrl=function(e){return this.getFullRouteUrlPaths(e).filter(Boolean).join("/")},e.prototype.getFullRouteUrlPaths=function(e){var t=this.getRouteUrlPaths(e);return e.parent?v(this.getFullRouteUrlPaths(e.parent),t):t},e.prototype.getRouteUrlPaths=function(e){return e.url.map(function(e){return e.path})},e.prototype.getRouteData=function(e){return e.routeConfig&&e.routeConfig.data},e}(),$=function(){function e(e){this.isQuickShareEnabled$=e.select(d.isQuickShareEnabled)}return e.prototype.canActivate=function(e){return this.isQuickShareEnabled$},e.prototype.canActivateChild=function(e){return this.canActivate(e)},e.decorators=[{type:h.Injectable,args:[{providedIn:"root"}]}],e.ctorParameters=function(){return[{type:p.Store}]},e.ngInjectableDef=h.defineInjectable({factory:function(){return new e(h.inject(p.Store))},token:e,providedIn:"root"}),e}(),q=function(){function e(e,t,n,o){var r=this;this.config=t,this.ready=new l.BehaviorSubject(e.isLoggedIn()||this.withCredentials),this.ready$=this.ready.asObservable(),e.onLogin.subscribe(function(){o.resetCache(),r.ready.next(!0)}),e.onLogout.subscribe(function(){n.resetToDefaults(),o.resetCache()})}return Object.defineProperty(e.prototype,"withCredentials",{get:function(){return this.config.get("auth.withCredentials",!1)},enumerable:!0,configurable:!0}),e.decorators=[{type:h.Injectable,args:[{providedIn:"root"}]}],e.ctorParameters=function(){return[{type:f.AuthenticationService},{type:f.AppConfigService},{type:i.SearchQueryBuilderService},{type:U,decorators:[{type:h.Inject,args:[o.RouteReuseStrategy]}]}]},e.ngInjectableDef=h.defineInjectable({factory:function(){return new e(h.inject(f.AuthenticationService),h.inject(f.AppConfigService),h.inject(i.SearchQueryBuilderService),h.inject(o.RouteReuseStrategy))},token:e,providedIn:"root"}),e}(),z=function(){function e(){this.text="APP.MESSAGES.ERRORS.MISSING_CONTENT"}return e.decorators=[{type:h.Component,args:[{selector:"aca-generic-error",template:'<mat-icon>error</mat-icon>\n<p class="generic-error__title">\n {{ text | translate }}\n</p>\n',encapsulation:h.ViewEncapsulation.None,changeDetection:h.ChangeDetectionStrategy.OnPush,host:{"class":"aca-generic-error"},styles:[".aca-generic-error{color:var(--theme-text-color,rgba(0,0,0,.54));display:flex;align-items:center;justify-content:center;flex-direction:column;width:100%;height:100%}.aca-generic-error__title{font-size:16px}.aca-generic-error mat-icon{color:var(--theme-warn-color,#f44336);font-size:52px;height:52px;width:52px}"]}]}],e.propDecorators={text:[{type:h.Input}]},e}(),G=function(){function e(){}return e.decorators=[{type:h.NgModule,args:[{imports:[s.CommonModule,a.MatIconModule,c.TranslateModule.forChild()],declarations:[z],exports:[z]}]}],e}(),H=function(){function e(e){this.store=e,this.execute$=new l.Subject,this.onDestroy$=new l.Subject,this.enabled=!0}return e.prototype.onContextMenuEvent=function(e){if(e&&(e.preventDefault(),this.enabled)){var t=this.getTarget(e);t&&this.execute(e,t)}},e.prototype.ngOnInit=function(){var t=this;this.execute$.pipe(u.debounceTime(300),u.takeUntil(this.onDestroy$)).subscribe(function(e){t.store.dispatch(new d.ContextMenu(e))})},e.prototype.ngOnDestroy=function(){this.onDestroy$.next(!0),this.onDestroy$.complete()},e.prototype.execute=function(e,t){this.isSelected(t)||t.dispatchEvent(new MouseEvent("click")),this.execute$.next(e)},e.prototype.getTarget=function(e){var t=e.target;return this.findAncestor(t,"adf-datatable-cell")},e.prototype.isSelected=function(e){return!!e&&this.findAncestor(e,"adf-datatable-row").classList.contains("adf-is-selected")},e.prototype.findAncestor=function(e,t){if(e.classList.contains(t))return e;for(;(e=e.parentElement)&&!e.classList.contains(t););return e},e.decorators=[{type:h.Directive,args:[{selector:"[acaContextActions]",exportAs:"acaContextActions"}]}],e.ctorParameters=function(){return[{type:p.Store}]},e.propDecorators={enabled:[{type:h.Input,args:["acaContextEnable"]}],onContextMenuEvent:[{type:h.HostListener,args:["contextmenu",["$event"]]}]},e}(),Q=function(){function e(){}return e.decorators=[{type:h.NgModule,args:[{declarations:[H],exports:[H]}]}],e}(),W=function(){function e(e,t,n){this.pagination=e,this.preferences=t,this.config=n,this.subscriptions=[]}return e.prototype.ngOnInit=function(){var t=this;this.pagination.supportedPageSizes=this.config.get("pagination.supportedPageSizes"),this.subscriptions.push(this.pagination.changePageSize.subscribe(function(e){t.preferences.paginationSize=e.maxItems}))},e.prototype.ngOnDestroy=function(){this.subscriptions.forEach(function(e){return e.unsubscribe()}),this.subscriptions=[]},e.decorators=[{type:h.Directive,args:[{selector:"[acaPagination]"}]}],e.ctorParameters=function(){return[{type:f.PaginationComponent},{type:f.UserPreferencesService},{type:f.AppConfigService}]},e}(),K=function(){function e(){}return e.decorators=[{type:h.NgModule,args:[{imports:[Q],declarations:[W],exports:[W,Q]}]}],e}();var X=function(){function e(){}return e.forRoot=function(){return{ngModule:e,providers:[F,L,q]}},e.decorators=[{type:h.NgModule,args:[{imports:[Q],exports:[Q]}]}],e}();e.DefaultExtensionLoaderFactory=A,e.EXTENSION_DATA_LOADERS=w,e.ExtensionsDataLoaderGuard=x,e.PageLayoutContentComponent=S,e.PageLayoutErrorComponent=C,e.PageLayoutHeaderComponent=R,e.PageLayoutComponent=I,e.PageLayoutModule=D,e.LockedByComponent=k,e.LockedByModule=E,e.SharedToolbarModule=B,e.SharedInfoDrawerModule=_,e.AppRouteReuseStrategy=U,e.AppSharedRuleGuard=$,e.AppService=q,e.ContentApiService=F,e.NodePermissionService=L,e.AppExtensionService=O,e.GenericErrorComponent=z,e.GenericErrorModule=G,e.ContextActionsModule=Q,e.SharedDirectivesModule=K,e.isLocked=
|
|
2
|
-
/*!
|
|
3
|
-
* @license
|
|
4
|
-
* Alfresco Example Content Application
|
|
5
|
-
*
|
|
6
|
-
* Copyright (C) 2005 - 2020 Alfresco Software Limited
|
|
7
|
-
*
|
|
8
|
-
* This file is part of the Alfresco Example Content Application.
|
|
9
|
-
* If the software was purchased under a paid Alfresco license, the terms of
|
|
10
|
-
* the paid license agreement will prevail. Otherwise, the software is
|
|
11
|
-
* provided under the following open source license terms:
|
|
12
|
-
*
|
|
13
|
-
* The Alfresco Example Content Application is free software: you can redistribute it and/or modify
|
|
14
|
-
* it under the terms of the GNU Lesser General Public License as published by
|
|
15
|
-
* the Free Software Foundation, either version 3 of the License, or
|
|
16
|
-
* (at your option) any later version.
|
|
17
|
-
*
|
|
18
|
-
* The Alfresco Example Content Application is distributed in the hope that it will be useful,
|
|
19
|
-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
20
|
-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
21
|
-
* GNU Lesser General Public License for more details.
|
|
22
|
-
*
|
|
23
|
-
* You should have received a copy of the GNU Lesser General Public License
|
|
24
|
-
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
|
25
|
-
*/
|
|
26
|
-
function J(e){var t=e.entry;return t&&t.isLocked||t.properties&&("READ_ONLY_LOCK"===t.properties["cm:lockType"]||"WRITE_LOCK"===t.properties["cm:lockType"])},e.isLibrary=function Y(e){var t=e.entry;return t.guid&&t.id&&t.preset&&t.title&&t.visibility||"st:site"===t.nodeType},e.SharedModule=X,e.ɵe=V,e.ɵb=M,e.ɵa=T,e.ɵc=P,e.ɵd=j,e.ɵf=H,e.ɵg=W,Object.defineProperty(e,"__esModule",{value:!0})});
|
|
27
|
-
//# sourceMappingURL=alfresco-aca-shared.umd.min.js.map
|