@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-rules.js.map","sources":["ng://@alfresco/aca-shared/rules/navigation.rules.ts","ng://@alfresco/aca-shared/rules/repository.rules.ts","ng://@alfresco/aca-shared/rules/app.rules.ts","ng://@alfresco/aca-shared/rules/user.rules.ts"],"sourcesContent":["/*!\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 { RuleContext } from '@alfresco/adf-extensions';\n\n/**\n * Checks if a Preview route is activated.\n * JSON ref: `app.navigation.isPreview`\n */\nexport function isPreview(context: RuleContext): boolean {\n const { url } = context.navigation;\n return (\n url &&\n (url.includes('/preview/') ||\n url.includes('viewer:view') ||\n url.includes('/view/'))\n );\n}\n\n/**\n * Checks if a **Favorites** route is activated.\n * JSON ref: `app.navigation.isFavorites`\n */\nexport function isFavorites(context: RuleContext): boolean {\n const { url } = context.navigation;\n return url && url.startsWith('/favorites') && !isPreview(context);\n}\n\n/**\n * Checks if the activated route is not **Favorites**.\n * JSON ref: `app.navigation.isNotFavorites`\n */\nexport function isNotFavorites(context: RuleContext): boolean {\n return !isFavorites(context);\n}\n\n/**\n * Checks if a **Shared Files** route is activated.\n * JSON ref: `app.navigation.isSharedFiles`\n */\nexport function isSharedFiles(context: RuleContext): boolean {\n const { url } = context.navigation;\n return url && url.startsWith('/shared') && !isPreview(context);\n}\n\n/**\n * Checks if the activated route is not **Shared Files**.\n * JSON ref: `app.navigation.isNotSharedFiles`\n */\nexport function isNotSharedFiles(context: RuleContext): boolean {\n return !isSharedFiles(context);\n}\n\n/**\n * Checks if a **Trashcan** route is activated.\n * JSON ref: `app.navigation.isTrashcan`\n */\nexport function isTrashcan(context: RuleContext): boolean {\n const { url } = context.navigation;\n return url && url.startsWith('/trashcan');\n}\n\n/**\n * Checks if the activated route is not **Trashcan**.\n * JSON ref: `app.navigation.isNotTrashcan`\n */\nexport function isNotTrashcan(context: RuleContext): boolean {\n return !isTrashcan(context);\n}\n\n/**\n * Checks if a **Personal Files** route is activated.\n * JSON ref: `app.navigation.isPersonalFiles`\n */\nexport function isPersonalFiles(context: RuleContext): boolean {\n const { url } = context.navigation;\n return url && url.startsWith('/personal-files');\n}\n\n/**\n * Checks if a **Library Files** route is activated.\n * JSON ref: `app.navigation.isLibraryFiles`\n */\nexport function isLibraryFiles(context: RuleContext): boolean {\n const { url } = context.navigation;\n return url && url.startsWith('/libraries');\n}\n\n/**\n * Checks if a **Library Files** or **Library Search Result** route is activated.\n * JSON ref: `app.navigation.isLibraryFiles`\n */\nexport function isLibraries(context: RuleContext): boolean {\n const { url } = context.navigation;\n return (\n url && (url.endsWith('/libraries') || url.startsWith('/search-libraries'))\n );\n}\n\n/**\n * Checks if the activated route is neither **Libraries** nor **Library Search Results**.\n * JSON ref: `app.navigation.isNotLibraries`\n */\nexport function isNotLibraries(context: RuleContext): boolean {\n return !isLibraries(context);\n}\n\n/**\n * Checks if a **Recent Files** route is activated.\n * JSON ref: `app.navigation.isRecentFiles`\n */\nexport function isRecentFiles(context: RuleContext): boolean {\n const { url } = context.navigation;\n return url && url.startsWith('/recent-files');\n}\n\n/**\n * Checks if the activated route is not **Recent Files**.\n * JSON ref: `app.navigation.isNotRecentFiles`\n */\nexport function isNotRecentFiles(context: RuleContext): boolean {\n return !isRecentFiles(context);\n}\n\n/**\n * Checks if a **Search Results** route is activated.\n * JSON ref: `app.navigation.isSearchResults`\n */\nexport function isSearchResults(\n context: RuleContext /*,\n ...args: RuleParameter[]*/\n): boolean {\n const { url } = context.navigation;\n return url && url.startsWith('/search');\n}\n\n/**\n * Checks if the activated route is not **Search Results**.\n * JSON ref: `app.navigation.isNotSearchResults`\n */\nexport function isNotSearchResults(context: RuleContext): boolean {\n return !isSearchResults(context);\n}\n\n/**\n * Checks if a **Shared Preview** route is activated.\n * JSON ref: `app.navigation.isSharedPreview`\n */\nexport function isSharedPreview(context: RuleContext): boolean {\n const { url } = context.navigation;\n return (\n url &&\n (url.startsWith('/shared/preview/') ||\n (url.startsWith('/shared') && url.includes('viewer:view')))\n );\n}\n\n/**\n * Checks if a **Favorites Preview** route is activated.\n * JSON ref: `app.navigation.isFavoritesPreview`\n */\nexport function isFavoritesPreview(context: RuleContext): boolean {\n const { url } = context.navigation;\n return (\n url &&\n (url.startsWith('/favorites/preview/') ||\n (url.startsWith('/favorites') && url.includes('viewer:view')))\n );\n}\n\n/**\n * Checks if a **Shared File Preview** route is activated.\n * JSON ref: `app.navigation.isFavoritesPreview`\n */\nexport function isSharedFileViewer(context: RuleContext): boolean {\n const { url } = context.navigation;\n return url && url.startsWith('/preview/s/');\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 { RuleContext } from '@alfresco/adf-extensions';\n\n/**\n * Checks if the quick share repository option is enabled or not.\n * JSON ref: `repository.isQuickShareEnabled`\n */\nexport function hasQuickShareEnabled(context: RuleContext): boolean {\n return context.repository.status.isQuickShareEnabled;\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 { RuleContext } from '@alfresco/adf-extensions';\nimport * as navigation from './navigation.rules';\nimport * as repository from './repository.rules';\n\nexport interface AcaRuleContext extends RuleContext {\n languagePicker: boolean;\n withCredentials: boolean;\n}\n\n/**\n * Checks if user can copy selected node.\n * JSON ref: `app.canCopyNode`\n * @param context Rule execution context\n */\nexport function canCopyNode(context: RuleContext): boolean {\n return [\n hasSelection(context),\n navigation.isNotTrashcan(context),\n navigation.isNotLibraries(context)\n ].every(Boolean);\n}\n\n/**\n * Checks if user can mark selected nodes as **Favorite**.\n * JSON ref: `app.selection.canAddFavorite`\n */\nexport function canAddFavorite(context: RuleContext): boolean {\n if (!context.selection.isEmpty) {\n if (\n navigation.isFavorites(context) ||\n navigation.isLibraries(context) ||\n navigation.isTrashcan(context)\n ) {\n return false;\n }\n return context.selection.nodes.some(node => !node.entry.isFavorite);\n }\n return false;\n}\n\n/**\n * Checks if user can un-mark selected nodes as **Favorite**.\n * JSON ref: `app.selection.canRemoveFavorite`\n */\nexport function canRemoveFavorite(context: RuleContext): boolean {\n if (!context.selection.isEmpty && !navigation.isTrashcan(context)) {\n if (navigation.isFavorites(context)) {\n return true;\n }\n return context.selection.nodes.every(node => node.entry.isFavorite);\n }\n return false;\n}\n\n/**\n * Checks if user can share selected file.\n * JSON ref: `app.selection.file.canShare`\n */\nexport function canShareFile(context: RuleContext): boolean {\n return [\n context.selection.file,\n navigation.isNotTrashcan(context),\n repository.hasQuickShareEnabled(context),\n !isShared(context)\n ].every(Boolean);\n}\n\n/**\n * Checks if user can perform \"Join\" or \"Cancel Join Request\" on a library.\n * JSON ref: `canToggleJoinLibrary`\n */\nexport function canToggleJoinLibrary(context: RuleContext): boolean {\n return [\n hasLibrarySelected(context),\n !isPrivateLibrary(context),\n hasNoLibraryRole(context)\n ].every(Boolean);\n}\n\n/**\n * Checks if user can edit the selected folder.\n * JSON ref: `canEditFolder`\n * @param context Rule execution context\n */\nexport function canEditFolder(context: RuleContext): boolean {\n return [\n canUpdateSelectedFolder(context),\n navigation.isNotTrashcan(context)\n ].every(Boolean);\n}\n\n/**\n * Checks if the selected file is already shared.\n * JSON ref: `app.selection.file.isShared`\n */\nexport function isShared(context: RuleContext): boolean {\n if (navigation.isSharedFiles(context) && context.selection.file) {\n return true;\n }\n\n if (\n (navigation.isNotTrashcan(context),\n !context.selection.isEmpty && context.selection.file)\n ) {\n return !!(\n context.selection.file.entry &&\n context.selection.file.entry.properties &&\n context.selection.file.entry.properties['qshare:sharedId']\n );\n }\n\n return false;\n}\n\n/**\n * Checks if user can delete selected nodes.\n * JSON ref: `app.selection.canDelete`\n */\nexport function canDeleteSelection(context: RuleContext): boolean {\n if (\n navigation.isNotTrashcan(context) &&\n navigation.isNotLibraries(context) &&\n navigation.isNotSearchResults(context) &&\n !context.selection.isEmpty\n ) {\n if (hasLockedFiles(context)) {\n return false;\n }\n\n // temp workaround for Favorites api\n if (navigation.isFavorites(context)) {\n return true;\n }\n\n if (navigation.isPreview(context)) {\n return context.permissions.check(context.selection.nodes, ['delete']);\n }\n\n // workaround for Shared Files\n if (navigation.isSharedFiles(context)) {\n return context.permissions.check(context.selection.nodes, ['delete'], {\n target: 'allowableOperationsOnTarget'\n });\n }\n\n return context.permissions.check(context.selection.nodes, ['delete']);\n }\n return false;\n}\n\n/**\n * Checks if user can un-share selected nodes.\n * JSON ref: `app.selection.canUnshare`\n */\nexport function canUnshareNodes(context: RuleContext): boolean {\n if (!context.selection.isEmpty) {\n return context.permissions.check(context.selection.nodes, ['delete'], {\n target: 'allowableOperationsOnTarget'\n });\n }\n return false;\n}\n\n/**\n * Checks if user selected anything.\n * JSON ref: `app.selection.notEmpty`\n */\nexport function hasSelection(context: RuleContext): boolean {\n return !context.selection.isEmpty;\n}\n\n/**\n * Checks if user can create a new folder with current path.\n * JSON ref: `app.navigation.folder.canCreate`\n */\nexport function canCreateFolder(context: RuleContext): boolean {\n const { currentFolder } = context.navigation;\n if (currentFolder) {\n return context.permissions.check(currentFolder, ['create']);\n }\n return false;\n}\n\n/**\n * Checks if user can upload content to current folder.\n * JSON ref: `app.navigation.folder.canUpload`\n */\nexport function canUpload(context: RuleContext): boolean {\n const { currentFolder } = context.navigation;\n if (currentFolder) {\n return context.permissions.check(currentFolder, ['create']);\n }\n return false;\n}\n\n/**\n * Checks if user can download selected nodes (either files or folders).\n * JSON ref: `app.selection.canDownload`\n */\nexport function canDownloadSelection(context: RuleContext): boolean {\n if (!context.selection.isEmpty && navigation.isNotTrashcan(context)) {\n return context.selection.nodes.every((node: any) => {\n return (\n node.entry &&\n (node.entry.isFile || node.entry.isFolder || !!node.entry.nodeId)\n );\n });\n }\n return false;\n}\n\n/**\n * Checks if user has selected a folder.\n * JSON ref: `app.selection.folder`\n */\nexport function hasFolderSelected(context: RuleContext): boolean {\n const folder = context.selection.folder;\n return folder ? true : false;\n}\n\n/**\n * Checks if user has selected a library (site).\n * JSON ref: `app.selection.library`\n */\nexport function hasLibrarySelected(context: RuleContext): boolean {\n const library = context.selection.library;\n return library ? true : false;\n}\n\n/**\n * Checks if user has selected a **private** library (site)\n * JSON ref: `app.selection.isPrivateLibrary`\n */\nexport function isPrivateLibrary(context: RuleContext): boolean {\n const library = context.selection.library;\n return library\n ? !!(\n library.entry &&\n library.entry.visibility &&\n library.entry.visibility === 'PRIVATE'\n )\n : false;\n}\n\n/**\n * Checks if the selected library has a **role** property defined.\n * JSON ref: `app.selection.hasLibraryRole`\n */\nexport function hasLibraryRole(context: RuleContext): boolean {\n const library = context.selection.library;\n return library ? !!(library.entry && library.entry.role) : false;\n}\n\n/**\n * Checks if the selected library has no **role** property defined.\n * JSON ref: `app.selection.hasNoLibraryRole`\n */\nexport function hasNoLibraryRole(context: RuleContext): boolean {\n return !hasLibraryRole(context);\n}\n\n/**\n * Checks if user has selected a file.\n * JSON ref: `app.selection.file`\n */\nexport function hasFileSelected(context: RuleContext): boolean {\n if (context && context.selection && context.selection.file) {\n return true;\n }\n return false;\n}\n\n/**\n * Checks if user can update the first selected node.\n * JSON ref: `app.selection.first.canUpdate`\n */\nexport function canUpdateSelectedNode(context: RuleContext): boolean {\n if (context.selection && !context.selection.isEmpty) {\n const node = context.selection.first;\n\n if (node.entry.isFile && hasLockedFiles(context)) {\n return false;\n }\n\n return context.permissions.check(node, ['update']);\n }\n return false;\n}\n\n/**\n * Checks if user can update the first selected folder.\n * JSON ref: `app.selection.folder.canUpdate`\n */\nexport function canUpdateSelectedFolder(context: RuleContext): boolean {\n const { folder } = context.selection;\n if (folder) {\n return (\n // workaround for Favorites Api\n navigation.isFavorites(context) ||\n context.permissions.check(folder.entry, ['update'])\n );\n }\n return false;\n}\n\n/**\n * Checks if user has selected a **locked** file node.\n * JSON ref: `app.selection.file.isLocked`\n */\nexport function hasLockedFiles(context: RuleContext): boolean {\n if (context && context.selection && context.selection.nodes) {\n return context.selection.nodes.some(node => {\n if (!node.entry.isFile) {\n return false;\n }\n\n return (\n node.entry.isLocked ||\n (node.entry.properties &&\n node.entry.properties['cm:lockType'] === 'READ_ONLY_LOCK')\n );\n });\n }\n\n return false;\n}\n\n/**\n * Checks if the selected file has **write** or **read-only** locks specified.\n * JSON ref: `app.selection.file.isLocked`\n */\nexport function isWriteLocked(context: RuleContext): boolean {\n return !!(\n context &&\n context.selection &&\n context.selection.file &&\n context.selection.file.entry &&\n context.selection.file.entry.properties &&\n (context.selection.file.entry.properties['cm:lockType'] === 'WRITE_LOCK' ||\n context.selection.file.entry.properties['cm:lockType'] ===\n 'READ_ONLY_LOCK')\n );\n}\n\n/**\n * Checks if the selected file has **write** or **read-only** locks specified,\n * and that current user is the owner of the lock.\n * JSON ref: `app.selection.file.isLockOwner`\n */\nexport function isUserWriteLockOwner(context: RuleContext): boolean {\n return (\n isWriteLocked(context) &&\n (context.selection.file.entry.properties['cm:lockOwner'] &&\n context.selection.file.entry.properties['cm:lockOwner'].id ===\n context.profile.id)\n );\n}\n\n/**\n * Checks if user can lock selected file.\n * JSON ref: `app.selection.file.canLock`\n */\nexport function canLockFile(context: RuleContext): boolean {\n return !isWriteLocked(context) && canUpdateSelectedNode(context);\n}\n\n/**\n * Checks if user can unlock selected file.\n * JSON ref: `app.selection.file.canUnlock`\n */\nexport function canUnlockFile(context: RuleContext): boolean {\n const { file } = context.selection;\n return (\n isWriteLocked(context) &&\n (context.permissions.check(file.entry, ['delete']) ||\n isUserWriteLockOwner(context))\n );\n}\n\n/**\n * Checks if user can upload a new version of the file.\n * JSON ref: `app.selection.file.canUploadVersion`\n */\nexport function canUploadVersion(context: RuleContext): boolean {\n if (navigation.isFavorites(context) || navigation.isSharedFiles(context)) {\n return hasFileSelected(context);\n }\n\n return [\n hasFileSelected(context),\n navigation.isNotTrashcan(context),\n isWriteLocked(context)\n ? isUserWriteLockOwner(context)\n : canUpdateSelectedNode(context)\n ].every(Boolean);\n}\n\n/**\n * Checks if user has trashcan item selected.\n * JSON ref: `isTrashcanItemSelected`\n * @param context Rule execution context\n */\nexport function isTrashcanItemSelected(context: RuleContext): boolean {\n return [navigation.isTrashcan(context), hasSelection(context)].every(Boolean);\n}\n\n/**\n * Checks if user can view the file.\n * JSON ref: `canViewFile`\n * @param context Rule execution context\n */\nexport function canViewFile(context: RuleContext): boolean {\n return [hasFileSelected(context), navigation.isNotTrashcan(context)].every(\n Boolean\n );\n}\n\n/**\n * Checks if user can **Leave** selected library.\n * JSON ref: `canLeaveLibrary`\n * @param context Rule execution context\n */\nexport function canLeaveLibrary(context: RuleContext): boolean {\n return [hasLibrarySelected(context), hasLibraryRole(context)].every(Boolean);\n}\n\n/**\n * Checks if user can toggle shared link mode.\n * JSON ref: `canToggleSharedLink`\n * @param context Rule execution context\n */\nexport function canToggleSharedLink(context: RuleContext): boolean {\n return [\n hasFileSelected(context),\n [canShareFile(context), isShared(context)].some(Boolean)\n ].every(Boolean);\n}\n\n/**\n * Checks if user can show **Info Drawer** for the selected node.\n * JSON ref: `canShowInfoDrawer`\n * @param context Rule execution context\n */\nexport function canShowInfoDrawer(context: RuleContext): boolean {\n return [\n hasSelection(context),\n navigation.isNotLibraries(context),\n navigation.isNotTrashcan(context)\n ].every(Boolean);\n}\n\n/**\n * Checks if user can manage file versions for the selected node.\n * JSON ref: `canManageFileVersions`\n * @param context Rule execution context\n */\nexport function canManageFileVersions(context: RuleContext): boolean {\n return [\n hasFileSelected(context),\n navigation.isNotTrashcan(context),\n !hasLockedFiles(context)\n ].every(Boolean);\n}\n\n/**\n * Checks if user can manage permissions for the selected node.\n * JSON ref: `canManagePermissions`\n * @param context Rule execution context\n */\nexport function canManagePermissions(context: RuleContext): boolean {\n return [\n canUpdateSelectedNode(context),\n navigation.isNotTrashcan(context)\n ].every(Boolean);\n}\n\n/**\n * Checks if user can toggle **Edit Offline** mode for selected node.\n * JSON ref: `canToggleEditOffline`\n * @param context Rule execution context\n */\nexport function canToggleEditOffline(context: RuleContext): boolean {\n return [\n hasFileSelected(context),\n navigation.isNotTrashcan(context),\n canLockFile(context) || canUnlockFile(context)\n ].every(Boolean);\n}\n\n/**\n * @deprecated Uses workarounds for for recent files and search api issues.\n * Checks if user can toggle **Favorite** state for a node.\n * @param context Rule execution context\n */\nexport function canToggleFavorite(context: RuleContext): boolean {\n return [\n [canAddFavorite(context), canRemoveFavorite(context)].some(Boolean),\n [\n navigation.isRecentFiles(context),\n navigation.isSharedFiles(context),\n navigation.isSearchResults(context),\n navigation.isFavorites(context)\n ].some(Boolean)\n ].every(Boolean);\n}\n\n/**\n * Checks if application should render language picker menu.\n * JSON ref: `canShowLanguagePicker`\n * @param context Rule execution context\n */\nexport function canShowLanguagePicker(context: AcaRuleContext): boolean {\n return context.languagePicker;\n}\n\n/**\n * Checks if application should render logout option.\n * JSON ref: `canShowLogout`\n * @param context Rule execution context\n */\nexport function canShowLogout(context: AcaRuleContext): boolean {\n return !context.withCredentials;\n}\n\n/**\n * Checks if user is library manager\n * JSON ref: `isLibraryManager`\n * @param context Rule execution context\n */\nexport function isLibraryManager(context: RuleContext): boolean {\n return (\n hasLibrarySelected(context) &&\n context.selection.library.entry &&\n context.selection.library.entry.role === 'SiteManager'\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 { RuleContext } from '@alfresco/adf-extensions';\n\n/**\n * Checks if user is admin.\n * JSON ref: `user.isAdmin`\n */\nexport function isAdmin(context: RuleContext): boolean {\n return context.profile.isAdmin;\n}\n"],"names":["navigation.isNotTrashcan","navigation.isNotLibraries","navigation.isFavorites","navigation.isLibraries","navigation.isTrashcan","repository.hasQuickShareEnabled","navigation.isSharedFiles","navigation.isNotSearchResults","navigation.isPreview","navig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