@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,1354 +0,0 @@
|
|
|
1
|
-
import { MatDialog } from '@angular/material/dialog';
|
|
2
|
-
import { Router } from '@angular/router';
|
|
3
|
-
import { __decorate, __metadata } from 'tslib';
|
|
4
|
-
import { TranslationService } from '@alfresco/adf-core';
|
|
5
|
-
import { MatSnackBar } from '@angular/material/snack-bar';
|
|
6
|
-
import { map } from 'rxjs/operators';
|
|
7
|
-
import { Store, createSelector } from '@ngrx/store';
|
|
8
|
-
import { Injectable, NgModule } from '@angular/core';
|
|
9
|
-
import { Effect, Actions, ofType, EffectsModule } from '@ngrx/effects';
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
* @fileoverview added by tsickle
|
|
13
|
-
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
14
|
-
*/
|
|
15
|
-
/*!
|
|
16
|
-
* @license
|
|
17
|
-
* Alfresco Example Content Application
|
|
18
|
-
*
|
|
19
|
-
* Copyright (C) 2005 - 2020 Alfresco Software Limited
|
|
20
|
-
*
|
|
21
|
-
* This file is part of the Alfresco Example Content Application.
|
|
22
|
-
* If the software was purchased under a paid Alfresco license, the terms of
|
|
23
|
-
* the paid license agreement will prevail. Otherwise, the software is
|
|
24
|
-
* provided under the following open source license terms:
|
|
25
|
-
*
|
|
26
|
-
* The Alfresco Example Content Application is free software: you can redistribute it and/or modify
|
|
27
|
-
* it under the terms of the GNU Lesser General Public License as published by
|
|
28
|
-
* the Free Software Foundation, either version 3 of the License, or
|
|
29
|
-
* (at your option) any later version.
|
|
30
|
-
*
|
|
31
|
-
* The Alfresco Example Content Application is distributed in the hope that it will be useful,
|
|
32
|
-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
33
|
-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
34
|
-
* GNU Lesser General Public License for more details.
|
|
35
|
-
*
|
|
36
|
-
* You should have received a copy of the GNU Lesser General Public License
|
|
37
|
-
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
|
38
|
-
*/
|
|
39
|
-
/** @enum {string} */
|
|
40
|
-
const AppActionTypes = {
|
|
41
|
-
SetSettingsParameter: 'SET_SETTINGS_PARAMETER',
|
|
42
|
-
SetInitialState: 'SET_INITIAL_STATE',
|
|
43
|
-
SetHeaderColor: 'SET_HEADER_COLOR',
|
|
44
|
-
SetCurrentFolder: 'SET_CURRENT_FOLDER',
|
|
45
|
-
SetCurrentUrl: 'SET_CURRENT_URL',
|
|
46
|
-
SetUserProfile: 'SET_USER_PROFILE',
|
|
47
|
-
SetRepositoryInfo: 'SET_REPOSITORY_INFO',
|
|
48
|
-
ToggleInfoDrawer: 'TOGGLE_INFO_DRAWER',
|
|
49
|
-
ToggleDocumentDisplayMode: 'TOGGLE_DOCUMENT_DISPLAY_MODE',
|
|
50
|
-
Logout: 'LOGOUT',
|
|
51
|
-
ReloadDocumentList: 'RELOAD_DOCUMENT_LIST',
|
|
52
|
-
ResetSelection: 'RESET_SELECTION',
|
|
53
|
-
SetInfoDrawerState: 'SET_INFO_DRAWER_STATE',
|
|
54
|
-
SetInfoDrawerMetadataAspect: 'SET_INFO_DRAWER_METADATA_ASPECT',
|
|
55
|
-
CloseModalDialogs: 'CLOSE_MODAL_DIALOGS',
|
|
56
|
-
};
|
|
57
|
-
class SetSettingsParameterAction {
|
|
58
|
-
/**
|
|
59
|
-
* @param {?} payload
|
|
60
|
-
*/
|
|
61
|
-
constructor(payload) {
|
|
62
|
-
this.payload = payload;
|
|
63
|
-
this.type = AppActionTypes.SetSettingsParameter;
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
class SetInitialStateAction {
|
|
67
|
-
/**
|
|
68
|
-
* @param {?} payload
|
|
69
|
-
*/
|
|
70
|
-
constructor(payload) {
|
|
71
|
-
this.payload = payload;
|
|
72
|
-
this.type = AppActionTypes.SetInitialState;
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
class SetHeaderColorAction {
|
|
76
|
-
/**
|
|
77
|
-
* @param {?} color
|
|
78
|
-
*/
|
|
79
|
-
constructor(color) {
|
|
80
|
-
this.color = color;
|
|
81
|
-
this.type = AppActionTypes.SetHeaderColor;
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
class SetCurrentFolderAction {
|
|
85
|
-
/**
|
|
86
|
-
* @param {?} payload
|
|
87
|
-
*/
|
|
88
|
-
constructor(payload) {
|
|
89
|
-
this.payload = payload;
|
|
90
|
-
this.type = AppActionTypes.SetCurrentFolder;
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
class SetCurrentUrlAction {
|
|
94
|
-
/**
|
|
95
|
-
* @param {?} payload
|
|
96
|
-
*/
|
|
97
|
-
constructor(payload) {
|
|
98
|
-
this.payload = payload;
|
|
99
|
-
this.type = AppActionTypes.SetCurrentUrl;
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
class SetUserProfileAction {
|
|
103
|
-
/**
|
|
104
|
-
* @param {?} payload
|
|
105
|
-
*/
|
|
106
|
-
constructor(payload) {
|
|
107
|
-
this.payload = payload;
|
|
108
|
-
this.type = AppActionTypes.SetUserProfile;
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
class ToggleInfoDrawerAction {
|
|
112
|
-
constructor() {
|
|
113
|
-
this.type = AppActionTypes.ToggleInfoDrawer;
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
|
-
class ToggleDocumentDisplayMode {
|
|
117
|
-
constructor() {
|
|
118
|
-
this.type = AppActionTypes.ToggleDocumentDisplayMode;
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
class LogoutAction {
|
|
122
|
-
constructor() {
|
|
123
|
-
this.type = AppActionTypes.Logout;
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
|
-
class ReloadDocumentListAction {
|
|
127
|
-
/**
|
|
128
|
-
* @param {?=} payload
|
|
129
|
-
*/
|
|
130
|
-
constructor(payload) {
|
|
131
|
-
this.payload = payload;
|
|
132
|
-
this.type = AppActionTypes.ReloadDocumentList;
|
|
133
|
-
}
|
|
134
|
-
}
|
|
135
|
-
class ResetSelectionAction {
|
|
136
|
-
/**
|
|
137
|
-
* @param {?=} payload
|
|
138
|
-
*/
|
|
139
|
-
constructor(payload) {
|
|
140
|
-
this.payload = payload;
|
|
141
|
-
this.type = AppActionTypes.ResetSelection;
|
|
142
|
-
}
|
|
143
|
-
}
|
|
144
|
-
class SetInfoDrawerStateAction {
|
|
145
|
-
/**
|
|
146
|
-
* @param {?} payload
|
|
147
|
-
*/
|
|
148
|
-
constructor(payload) {
|
|
149
|
-
this.payload = payload;
|
|
150
|
-
this.type = AppActionTypes.SetInfoDrawerState;
|
|
151
|
-
}
|
|
152
|
-
}
|
|
153
|
-
class CloseModalDialogsAction {
|
|
154
|
-
constructor() {
|
|
155
|
-
this.type = AppActionTypes.CloseModalDialogs;
|
|
156
|
-
}
|
|
157
|
-
}
|
|
158
|
-
class SetRepositoryInfoAction {
|
|
159
|
-
/**
|
|
160
|
-
* @param {?} payload
|
|
161
|
-
*/
|
|
162
|
-
constructor(payload) {
|
|
163
|
-
this.payload = payload;
|
|
164
|
-
this.type = AppActionTypes.SetRepositoryInfo;
|
|
165
|
-
}
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
/**
|
|
169
|
-
* @fileoverview added by tsickle
|
|
170
|
-
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
171
|
-
*/
|
|
172
|
-
/*!
|
|
173
|
-
* @license
|
|
174
|
-
* Alfresco Example Content Application
|
|
175
|
-
*
|
|
176
|
-
* Copyright (C) 2005 - 2020 Alfresco Software Limited
|
|
177
|
-
*
|
|
178
|
-
* This file is part of the Alfresco Example Content Application.
|
|
179
|
-
* If the software was purchased under a paid Alfresco license, the terms of
|
|
180
|
-
* the paid license agreement will prevail. Otherwise, the software is
|
|
181
|
-
* provided under the following open source license terms:
|
|
182
|
-
*
|
|
183
|
-
* The Alfresco Example Content Application is free software: you can redistribute it and/or modify
|
|
184
|
-
* it under the terms of the GNU Lesser General Public License as published by
|
|
185
|
-
* the Free Software Foundation, either version 3 of the License, or
|
|
186
|
-
* (at your option) any later version.
|
|
187
|
-
*
|
|
188
|
-
* The Alfresco Example Content Application is distributed in the hope that it will be useful,
|
|
189
|
-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
190
|
-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
191
|
-
* GNU Lesser General Public License for more details.
|
|
192
|
-
*
|
|
193
|
-
* You should have received a copy of the GNU Lesser General Public License
|
|
194
|
-
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
|
195
|
-
*/
|
|
196
|
-
/** @enum {string} */
|
|
197
|
-
const LibraryActionTypes = {
|
|
198
|
-
Delete: 'DELETE_LIBRARY',
|
|
199
|
-
Create: 'CREATE_LIBRARY',
|
|
200
|
-
Navigate: 'NAVIGATE_LIBRARY',
|
|
201
|
-
Update: 'UPDATE_LIBRARY',
|
|
202
|
-
Leave: 'LEAVE_LIBRARY',
|
|
203
|
-
};
|
|
204
|
-
class DeleteLibraryAction {
|
|
205
|
-
/**
|
|
206
|
-
* @param {?=} payload
|
|
207
|
-
*/
|
|
208
|
-
constructor(payload) {
|
|
209
|
-
this.payload = payload;
|
|
210
|
-
this.type = LibraryActionTypes.Delete;
|
|
211
|
-
}
|
|
212
|
-
}
|
|
213
|
-
class CreateLibraryAction {
|
|
214
|
-
constructor() {
|
|
215
|
-
this.type = LibraryActionTypes.Create;
|
|
216
|
-
}
|
|
217
|
-
}
|
|
218
|
-
class NavigateLibraryAction {
|
|
219
|
-
/**
|
|
220
|
-
* @param {?=} payload
|
|
221
|
-
* @param {?=} route
|
|
222
|
-
*/
|
|
223
|
-
constructor(payload, route) {
|
|
224
|
-
this.payload = payload;
|
|
225
|
-
this.route = route;
|
|
226
|
-
this.type = LibraryActionTypes.Navigate;
|
|
227
|
-
}
|
|
228
|
-
}
|
|
229
|
-
class UpdateLibraryAction {
|
|
230
|
-
/**
|
|
231
|
-
* @param {?=} payload
|
|
232
|
-
*/
|
|
233
|
-
constructor(payload) {
|
|
234
|
-
this.payload = payload;
|
|
235
|
-
this.type = LibraryActionTypes.Update;
|
|
236
|
-
}
|
|
237
|
-
}
|
|
238
|
-
class LeaveLibraryAction {
|
|
239
|
-
/**
|
|
240
|
-
* @param {?=} payload
|
|
241
|
-
*/
|
|
242
|
-
constructor(payload) {
|
|
243
|
-
this.payload = payload;
|
|
244
|
-
this.type = LibraryActionTypes.Leave;
|
|
245
|
-
}
|
|
246
|
-
}
|
|
247
|
-
|
|
248
|
-
/**
|
|
249
|
-
* @fileoverview added by tsickle
|
|
250
|
-
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
251
|
-
*/
|
|
252
|
-
/*!
|
|
253
|
-
* @license
|
|
254
|
-
* Alfresco Example Content Application
|
|
255
|
-
*
|
|
256
|
-
* Copyright (C) 2005 - 2020 Alfresco Software Limited
|
|
257
|
-
*
|
|
258
|
-
* This file is part of the Alfresco Example Content Application.
|
|
259
|
-
* If the software was purchased under a paid Alfresco license, the terms of
|
|
260
|
-
* the paid license agreement will prevail. Otherwise, the software is
|
|
261
|
-
* provided under the following open source license terms:
|
|
262
|
-
*
|
|
263
|
-
* The Alfresco Example Content Application is free software: you can redistribute it and/or modify
|
|
264
|
-
* it under the terms of the GNU Lesser General Public License as published by
|
|
265
|
-
* the Free Software Foundation, either version 3 of the License, or
|
|
266
|
-
* (at your option) any later version.
|
|
267
|
-
*
|
|
268
|
-
* The Alfresco Example Content Application is distributed in the hope that it will be useful,
|
|
269
|
-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
270
|
-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
271
|
-
* GNU Lesser General Public License for more details.
|
|
272
|
-
*
|
|
273
|
-
* You should have received a copy of the GNU Lesser General Public License
|
|
274
|
-
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
|
275
|
-
*/
|
|
276
|
-
/** @enum {string} */
|
|
277
|
-
const NodeActionTypes = {
|
|
278
|
-
SetSelection: 'SET_SELECTED_NODES',
|
|
279
|
-
Delete: 'DELETE_NODES',
|
|
280
|
-
UndoDelete: 'UNDO_DELETE_NODES',
|
|
281
|
-
RestoreDeleted: 'RESTORE_DELETED_NODES',
|
|
282
|
-
PurgeDeleted: 'PURGE_DELETED_NODES',
|
|
283
|
-
Download: 'DOWNLOAD_NODES',
|
|
284
|
-
CreateFolder: 'CREATE_FOLDER',
|
|
285
|
-
EditFolder: 'EDIT_FOLDER',
|
|
286
|
-
Share: 'SHARE_NODE',
|
|
287
|
-
Unshare: 'UNSHARE_NODES',
|
|
288
|
-
Copy: 'COPY_NODES',
|
|
289
|
-
Move: 'MOVE_NODES',
|
|
290
|
-
ManagePermissions: 'MANAGE_PERMISSIONS',
|
|
291
|
-
PrintFile: 'PRINT_FILE',
|
|
292
|
-
ManageVersions: 'MANAGE_VERSIONS',
|
|
293
|
-
EditOffline: 'EDIT_OFFLINE',
|
|
294
|
-
UnlockForWriting: 'UNLOCK_WRITE_LOCK',
|
|
295
|
-
AddFavorite: 'ADD_FAVORITE',
|
|
296
|
-
RemoveFavorite: 'REMOVE_FAVORITE',
|
|
297
|
-
};
|
|
298
|
-
class SetSelectedNodesAction {
|
|
299
|
-
/**
|
|
300
|
-
* @param {?=} payload
|
|
301
|
-
*/
|
|
302
|
-
constructor(payload = []) {
|
|
303
|
-
this.payload = payload;
|
|
304
|
-
this.type = NodeActionTypes.SetSelection;
|
|
305
|
-
}
|
|
306
|
-
}
|
|
307
|
-
class DeleteNodesAction {
|
|
308
|
-
/**
|
|
309
|
-
* @param {?=} payload
|
|
310
|
-
*/
|
|
311
|
-
constructor(payload = []) {
|
|
312
|
-
this.payload = payload;
|
|
313
|
-
this.type = NodeActionTypes.Delete;
|
|
314
|
-
}
|
|
315
|
-
}
|
|
316
|
-
class UndoDeleteNodesAction {
|
|
317
|
-
/**
|
|
318
|
-
* @param {?=} payload
|
|
319
|
-
*/
|
|
320
|
-
constructor(payload = []) {
|
|
321
|
-
this.payload = payload;
|
|
322
|
-
this.type = NodeActionTypes.UndoDelete;
|
|
323
|
-
}
|
|
324
|
-
}
|
|
325
|
-
class RestoreDeletedNodesAction {
|
|
326
|
-
/**
|
|
327
|
-
* @param {?} payload
|
|
328
|
-
*/
|
|
329
|
-
constructor(payload) {
|
|
330
|
-
this.payload = payload;
|
|
331
|
-
this.type = NodeActionTypes.RestoreDeleted;
|
|
332
|
-
}
|
|
333
|
-
}
|
|
334
|
-
class PurgeDeletedNodesAction {
|
|
335
|
-
/**
|
|
336
|
-
* @param {?} payload
|
|
337
|
-
*/
|
|
338
|
-
constructor(payload) {
|
|
339
|
-
this.payload = payload;
|
|
340
|
-
this.type = NodeActionTypes.PurgeDeleted;
|
|
341
|
-
}
|
|
342
|
-
}
|
|
343
|
-
class DownloadNodesAction {
|
|
344
|
-
/**
|
|
345
|
-
* @param {?=} payload
|
|
346
|
-
*/
|
|
347
|
-
constructor(payload = []) {
|
|
348
|
-
this.payload = payload;
|
|
349
|
-
this.type = NodeActionTypes.Download;
|
|
350
|
-
}
|
|
351
|
-
}
|
|
352
|
-
class CreateFolderAction {
|
|
353
|
-
/**
|
|
354
|
-
* @param {?} payload
|
|
355
|
-
*/
|
|
356
|
-
constructor(payload) {
|
|
357
|
-
this.payload = payload;
|
|
358
|
-
this.type = NodeActionTypes.CreateFolder;
|
|
359
|
-
}
|
|
360
|
-
}
|
|
361
|
-
class EditFolderAction {
|
|
362
|
-
/**
|
|
363
|
-
* @param {?} payload
|
|
364
|
-
*/
|
|
365
|
-
constructor(payload) {
|
|
366
|
-
this.payload = payload;
|
|
367
|
-
this.type = NodeActionTypes.EditFolder;
|
|
368
|
-
}
|
|
369
|
-
}
|
|
370
|
-
class ShareNodeAction {
|
|
371
|
-
/**
|
|
372
|
-
* @param {?} payload
|
|
373
|
-
*/
|
|
374
|
-
constructor(payload) {
|
|
375
|
-
this.payload = payload;
|
|
376
|
-
this.type = NodeActionTypes.Share;
|
|
377
|
-
}
|
|
378
|
-
}
|
|
379
|
-
class UnshareNodesAction {
|
|
380
|
-
/**
|
|
381
|
-
* @param {?} payload
|
|
382
|
-
*/
|
|
383
|
-
constructor(payload) {
|
|
384
|
-
this.payload = payload;
|
|
385
|
-
this.type = NodeActionTypes.Unshare;
|
|
386
|
-
}
|
|
387
|
-
}
|
|
388
|
-
class CopyNodesAction {
|
|
389
|
-
/**
|
|
390
|
-
* @param {?} payload
|
|
391
|
-
*/
|
|
392
|
-
constructor(payload) {
|
|
393
|
-
this.payload = payload;
|
|
394
|
-
this.type = NodeActionTypes.Copy;
|
|
395
|
-
}
|
|
396
|
-
}
|
|
397
|
-
class MoveNodesAction {
|
|
398
|
-
/**
|
|
399
|
-
* @param {?} payload
|
|
400
|
-
*/
|
|
401
|
-
constructor(payload) {
|
|
402
|
-
this.payload = payload;
|
|
403
|
-
this.type = NodeActionTypes.Move;
|
|
404
|
-
}
|
|
405
|
-
}
|
|
406
|
-
class ManagePermissionsAction {
|
|
407
|
-
/**
|
|
408
|
-
* @param {?} payload
|
|
409
|
-
*/
|
|
410
|
-
constructor(payload) {
|
|
411
|
-
this.payload = payload;
|
|
412
|
-
this.type = NodeActionTypes.ManagePermissions;
|
|
413
|
-
}
|
|
414
|
-
}
|
|
415
|
-
class PrintFileAction {
|
|
416
|
-
/**
|
|
417
|
-
* @param {?} payload
|
|
418
|
-
*/
|
|
419
|
-
constructor(payload) {
|
|
420
|
-
this.payload = payload;
|
|
421
|
-
this.type = NodeActionTypes.PrintFile;
|
|
422
|
-
}
|
|
423
|
-
}
|
|
424
|
-
class ManageVersionsAction {
|
|
425
|
-
/**
|
|
426
|
-
* @param {?} payload
|
|
427
|
-
*/
|
|
428
|
-
constructor(payload) {
|
|
429
|
-
this.payload = payload;
|
|
430
|
-
this.type = NodeActionTypes.ManageVersions;
|
|
431
|
-
}
|
|
432
|
-
}
|
|
433
|
-
class EditOfflineAction {
|
|
434
|
-
/**
|
|
435
|
-
* @param {?} payload
|
|
436
|
-
*/
|
|
437
|
-
constructor(payload) {
|
|
438
|
-
this.payload = payload;
|
|
439
|
-
this.type = NodeActionTypes.EditOffline;
|
|
440
|
-
}
|
|
441
|
-
}
|
|
442
|
-
class UnlockWriteAction {
|
|
443
|
-
/**
|
|
444
|
-
* @param {?} payload
|
|
445
|
-
*/
|
|
446
|
-
constructor(payload) {
|
|
447
|
-
this.payload = payload;
|
|
448
|
-
this.type = NodeActionTypes.UnlockForWriting;
|
|
449
|
-
}
|
|
450
|
-
}
|
|
451
|
-
class AddFavoriteAction {
|
|
452
|
-
/**
|
|
453
|
-
* @param {?} payload
|
|
454
|
-
*/
|
|
455
|
-
constructor(payload) {
|
|
456
|
-
this.payload = payload;
|
|
457
|
-
this.type = NodeActionTypes.AddFavorite;
|
|
458
|
-
}
|
|
459
|
-
}
|
|
460
|
-
class RemoveFavoriteAction {
|
|
461
|
-
/**
|
|
462
|
-
* @param {?} payload
|
|
463
|
-
*/
|
|
464
|
-
constructor(payload) {
|
|
465
|
-
this.payload = payload;
|
|
466
|
-
this.type = NodeActionTypes.RemoveFavorite;
|
|
467
|
-
}
|
|
468
|
-
}
|
|
469
|
-
|
|
470
|
-
/**
|
|
471
|
-
* @fileoverview added by tsickle
|
|
472
|
-
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
473
|
-
*/
|
|
474
|
-
/*!
|
|
475
|
-
* @license
|
|
476
|
-
* Alfresco Example Content Application
|
|
477
|
-
*
|
|
478
|
-
* Copyright (C) 2005 - 2020 Alfresco Software Limited
|
|
479
|
-
*
|
|
480
|
-
* This file is part of the Alfresco Example Content Application.
|
|
481
|
-
* If the software was purchased under a paid Alfresco license, the terms of
|
|
482
|
-
* the paid license agreement will prevail. Otherwise, the software is
|
|
483
|
-
* provided under the following open source license terms:
|
|
484
|
-
*
|
|
485
|
-
* The Alfresco Example Content Application is free software: you can redistribute it and/or modify
|
|
486
|
-
* it under the terms of the GNU Lesser General Public License as published by
|
|
487
|
-
* the Free Software Foundation, either version 3 of the License, or
|
|
488
|
-
* (at your option) any later version.
|
|
489
|
-
*
|
|
490
|
-
* The Alfresco Example Content Application is distributed in the hope that it will be useful,
|
|
491
|
-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
492
|
-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
493
|
-
* GNU Lesser General Public License for more details.
|
|
494
|
-
*
|
|
495
|
-
* You should have received a copy of the GNU Lesser General Public License
|
|
496
|
-
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
|
497
|
-
*/
|
|
498
|
-
/** @enum {string} */
|
|
499
|
-
const RouterActionTypes = {
|
|
500
|
-
NavigateUrl: 'NAVIGATE_URL',
|
|
501
|
-
NavigateRoute: 'NAVIGATE_ROUTE',
|
|
502
|
-
NavigateFolder: 'NAVIGATE_FOLDER',
|
|
503
|
-
NavigateParentFolder: 'NAVIGATE_PARENT_FOLDER',
|
|
504
|
-
};
|
|
505
|
-
class NavigateUrlAction {
|
|
506
|
-
/**
|
|
507
|
-
* @param {?} payload
|
|
508
|
-
*/
|
|
509
|
-
constructor(payload) {
|
|
510
|
-
this.payload = payload;
|
|
511
|
-
this.type = RouterActionTypes.NavigateUrl;
|
|
512
|
-
}
|
|
513
|
-
}
|
|
514
|
-
class NavigateRouteAction {
|
|
515
|
-
/**
|
|
516
|
-
* @param {?} payload
|
|
517
|
-
*/
|
|
518
|
-
constructor(payload) {
|
|
519
|
-
this.payload = payload;
|
|
520
|
-
this.type = RouterActionTypes.NavigateRoute;
|
|
521
|
-
}
|
|
522
|
-
}
|
|
523
|
-
class NavigateToFolder {
|
|
524
|
-
/**
|
|
525
|
-
* @param {?} payload
|
|
526
|
-
*/
|
|
527
|
-
constructor(payload) {
|
|
528
|
-
this.payload = payload;
|
|
529
|
-
this.type = RouterActionTypes.NavigateFolder;
|
|
530
|
-
}
|
|
531
|
-
}
|
|
532
|
-
class NavigateToParentFolder {
|
|
533
|
-
/**
|
|
534
|
-
* @param {?} payload
|
|
535
|
-
*/
|
|
536
|
-
constructor(payload) {
|
|
537
|
-
this.payload = payload;
|
|
538
|
-
this.type = RouterActionTypes.NavigateParentFolder;
|
|
539
|
-
}
|
|
540
|
-
}
|
|
541
|
-
|
|
542
|
-
/**
|
|
543
|
-
* @fileoverview added by tsickle
|
|
544
|
-
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
545
|
-
*/
|
|
546
|
-
/*!
|
|
547
|
-
* @license
|
|
548
|
-
* Alfresco Example Content Application
|
|
549
|
-
*
|
|
550
|
-
* Copyright (C) 2005 - 2020 Alfresco Software Limited
|
|
551
|
-
*
|
|
552
|
-
* This file is part of the Alfresco Example Content Application.
|
|
553
|
-
* If the software was purchased under a paid Alfresco license, the terms of
|
|
554
|
-
* the paid license agreement will prevail. Otherwise, the software is
|
|
555
|
-
* provided under the following open source license terms:
|
|
556
|
-
*
|
|
557
|
-
* The Alfresco Example Content Application is free software: you can redistribute it and/or modify
|
|
558
|
-
* it under the terms of the GNU Lesser General Public License as published by
|
|
559
|
-
* the Free Software Foundation, either version 3 of the License, or
|
|
560
|
-
* (at your option) any later version.
|
|
561
|
-
*
|
|
562
|
-
* The Alfresco Example Content Application is distributed in the hope that it will be useful,
|
|
563
|
-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
564
|
-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
565
|
-
* GNU Lesser General Public License for more details.
|
|
566
|
-
*
|
|
567
|
-
* You should have received a copy of the GNU Lesser General Public License
|
|
568
|
-
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
|
569
|
-
*/
|
|
570
|
-
/** @enum {string} */
|
|
571
|
-
const SearchActionTypes = {
|
|
572
|
-
SearchByTerm: 'SEARCH_BY_TERM',
|
|
573
|
-
ToggleFilter: 'TOGGLE_SEARCH_FILTER',
|
|
574
|
-
ShowFilter: 'SHOW_SEARCH_FILTER',
|
|
575
|
-
HideFilter: 'HIDE_SEARCH_FILTER',
|
|
576
|
-
};
|
|
577
|
-
class SearchByTermAction {
|
|
578
|
-
/**
|
|
579
|
-
* @param {?} payload
|
|
580
|
-
* @param {?=} searchOptions
|
|
581
|
-
*/
|
|
582
|
-
constructor(payload, searchOptions) {
|
|
583
|
-
this.payload = payload;
|
|
584
|
-
this.searchOptions = searchOptions;
|
|
585
|
-
this.type = SearchActionTypes.SearchByTerm;
|
|
586
|
-
}
|
|
587
|
-
}
|
|
588
|
-
class ToggleSearchFilterAction {
|
|
589
|
-
constructor() {
|
|
590
|
-
this.type = SearchActionTypes.ToggleFilter;
|
|
591
|
-
}
|
|
592
|
-
}
|
|
593
|
-
class ShowSearchFilterAction {
|
|
594
|
-
constructor() {
|
|
595
|
-
this.type = SearchActionTypes.ShowFilter;
|
|
596
|
-
}
|
|
597
|
-
}
|
|
598
|
-
class HideSearchFilterAction {
|
|
599
|
-
constructor() {
|
|
600
|
-
this.type = SearchActionTypes.HideFilter;
|
|
601
|
-
}
|
|
602
|
-
}
|
|
603
|
-
|
|
604
|
-
/**
|
|
605
|
-
* @fileoverview added by tsickle
|
|
606
|
-
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
607
|
-
*/
|
|
608
|
-
/*!
|
|
609
|
-
* @license
|
|
610
|
-
* Alfresco Example Content Application
|
|
611
|
-
*
|
|
612
|
-
* Copyright (C) 2005 - 2020 Alfresco Software Limited
|
|
613
|
-
*
|
|
614
|
-
* This file is part of the Alfresco Example Content Application.
|
|
615
|
-
* If the software was purchased under a paid Alfresco license, the terms of
|
|
616
|
-
* the paid license agreement will prevail. Otherwise, the software is
|
|
617
|
-
* provided under the following open source license terms:
|
|
618
|
-
*
|
|
619
|
-
* The Alfresco Example Content Application is free software: you can redistribute it and/or modify
|
|
620
|
-
* it under the terms of the GNU Lesser General Public License as published by
|
|
621
|
-
* the Free Software Foundation, either version 3 of the License, or
|
|
622
|
-
* (at your option) any later version.
|
|
623
|
-
*
|
|
624
|
-
* The Alfresco Example Content Application is distributed in the hope that it will be useful,
|
|
625
|
-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
626
|
-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
627
|
-
* GNU Lesser General Public License for more details.
|
|
628
|
-
*
|
|
629
|
-
* You should have received a copy of the GNU Lesser General Public License
|
|
630
|
-
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
|
631
|
-
*/
|
|
632
|
-
/** @enum {string} */
|
|
633
|
-
const SnackbarActionTypes = {
|
|
634
|
-
Info: 'SNACKBAR_INFO',
|
|
635
|
-
Warning: 'SNACKBAR_WARNING',
|
|
636
|
-
Error: 'SNACKBAR_ERROR',
|
|
637
|
-
};
|
|
638
|
-
class SnackbarUserAction {
|
|
639
|
-
/**
|
|
640
|
-
* @param {?} title
|
|
641
|
-
* @param {?} action
|
|
642
|
-
*/
|
|
643
|
-
constructor(title, action) {
|
|
644
|
-
this.title = title;
|
|
645
|
-
this.action = action;
|
|
646
|
-
}
|
|
647
|
-
}
|
|
648
|
-
class SnackbarInfoAction {
|
|
649
|
-
/**
|
|
650
|
-
* @param {?} payload
|
|
651
|
-
* @param {?=} params
|
|
652
|
-
*/
|
|
653
|
-
constructor(payload, params) {
|
|
654
|
-
this.payload = payload;
|
|
655
|
-
this.params = params;
|
|
656
|
-
this.type = SnackbarActionTypes.Info;
|
|
657
|
-
this.duration = 4000;
|
|
658
|
-
}
|
|
659
|
-
}
|
|
660
|
-
class SnackbarWarningAction {
|
|
661
|
-
/**
|
|
662
|
-
* @param {?} payload
|
|
663
|
-
* @param {?=} params
|
|
664
|
-
*/
|
|
665
|
-
constructor(payload, params) {
|
|
666
|
-
this.payload = payload;
|
|
667
|
-
this.params = params;
|
|
668
|
-
this.type = SnackbarActionTypes.Warning;
|
|
669
|
-
this.duration = 4000;
|
|
670
|
-
}
|
|
671
|
-
}
|
|
672
|
-
class SnackbarErrorAction {
|
|
673
|
-
/**
|
|
674
|
-
* @param {?} payload
|
|
675
|
-
* @param {?=} params
|
|
676
|
-
*/
|
|
677
|
-
constructor(payload, params) {
|
|
678
|
-
this.payload = payload;
|
|
679
|
-
this.params = params;
|
|
680
|
-
this.type = SnackbarActionTypes.Error;
|
|
681
|
-
this.duration = 4000;
|
|
682
|
-
}
|
|
683
|
-
}
|
|
684
|
-
|
|
685
|
-
/**
|
|
686
|
-
* @fileoverview added by tsickle
|
|
687
|
-
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
688
|
-
*/
|
|
689
|
-
/*!
|
|
690
|
-
* @license
|
|
691
|
-
* Alfresco Example Content Application
|
|
692
|
-
*
|
|
693
|
-
* Copyright (C) 2005 - 2020 Alfresco Software Limited
|
|
694
|
-
*
|
|
695
|
-
* This file is part of the Alfresco Example Content Application.
|
|
696
|
-
* If the software was purchased under a paid Alfresco license, the terms of
|
|
697
|
-
* the paid license agreement will prevail. Otherwise, the software is
|
|
698
|
-
* provided under the following open source license terms:
|
|
699
|
-
*
|
|
700
|
-
* The Alfresco Example Content Application is free software: you can redistribute it and/or modify
|
|
701
|
-
* it under the terms of the GNU Lesser General Public License as published by
|
|
702
|
-
* the Free Software Foundation, either version 3 of the License, or
|
|
703
|
-
* (at your option) any later version.
|
|
704
|
-
*
|
|
705
|
-
* The Alfresco Example Content Application is distributed in the hope that it will be useful,
|
|
706
|
-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
707
|
-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
708
|
-
* GNU Lesser General Public License for more details.
|
|
709
|
-
*
|
|
710
|
-
* You should have received a copy of the GNU Lesser General Public License
|
|
711
|
-
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
|
712
|
-
*/
|
|
713
|
-
/** @enum {string} */
|
|
714
|
-
const UploadActionTypes = {
|
|
715
|
-
UploadFiles: 'UPLOAD_FILES',
|
|
716
|
-
UploadFolder: 'UPLOAD_FOLDER',
|
|
717
|
-
UploadFileVersion: 'UPLOAD_FILE_VERSION',
|
|
718
|
-
};
|
|
719
|
-
class UploadFilesAction {
|
|
720
|
-
/**
|
|
721
|
-
* @param {?} payload
|
|
722
|
-
*/
|
|
723
|
-
constructor(payload) {
|
|
724
|
-
this.payload = payload;
|
|
725
|
-
this.type = UploadActionTypes.UploadFiles;
|
|
726
|
-
}
|
|
727
|
-
}
|
|
728
|
-
class UploadFolderAction {
|
|
729
|
-
/**
|
|
730
|
-
* @param {?} payload
|
|
731
|
-
*/
|
|
732
|
-
constructor(payload) {
|
|
733
|
-
this.payload = payload;
|
|
734
|
-
this.type = UploadActionTypes.UploadFolder;
|
|
735
|
-
}
|
|
736
|
-
}
|
|
737
|
-
class UploadFileVersionAction {
|
|
738
|
-
/**
|
|
739
|
-
* @param {?} payload
|
|
740
|
-
*/
|
|
741
|
-
constructor(payload) {
|
|
742
|
-
this.payload = payload;
|
|
743
|
-
this.type = UploadActionTypes.UploadFileVersion;
|
|
744
|
-
}
|
|
745
|
-
}
|
|
746
|
-
|
|
747
|
-
/**
|
|
748
|
-
* @fileoverview added by tsickle
|
|
749
|
-
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
750
|
-
*/
|
|
751
|
-
/*!
|
|
752
|
-
* @license
|
|
753
|
-
* Alfresco Example Content Application
|
|
754
|
-
*
|
|
755
|
-
* Copyright (C) 2005 - 2020 Alfresco Software Limited
|
|
756
|
-
*
|
|
757
|
-
* This file is part of the Alfresco Example Content Application.
|
|
758
|
-
* If the software was purchased under a paid Alfresco license, the terms of
|
|
759
|
-
* the paid license agreement will prevail. Otherwise, the software is
|
|
760
|
-
* provided under the following open source license terms:
|
|
761
|
-
*
|
|
762
|
-
* The Alfresco Example Content Application is free software: you can redistribute it and/or modify
|
|
763
|
-
* it under the terms of the GNU Lesser General Public License as published by
|
|
764
|
-
* the Free Software Foundation, either version 3 of the License, or
|
|
765
|
-
* (at your option) any later version.
|
|
766
|
-
*
|
|
767
|
-
* The Alfresco Example Content Application is distributed in the hope that it will be useful,
|
|
768
|
-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
769
|
-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
770
|
-
* GNU Lesser General Public License for more details.
|
|
771
|
-
*
|
|
772
|
-
* You should have received a copy of the GNU Lesser General Public License
|
|
773
|
-
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
|
774
|
-
*/
|
|
775
|
-
/** @enum {string} */
|
|
776
|
-
const ViewerActionTypes = {
|
|
777
|
-
ViewFile: 'VIEW_FILE',
|
|
778
|
-
ViewNode: 'VIEW_NODE',
|
|
779
|
-
FullScreen: 'FULLSCREEN_VIEWER',
|
|
780
|
-
ClosePreview: 'CLOSE_PREVIEW',
|
|
781
|
-
};
|
|
782
|
-
class ViewFileAction {
|
|
783
|
-
/**
|
|
784
|
-
* @param {?=} payload
|
|
785
|
-
* @param {?=} parentId
|
|
786
|
-
*/
|
|
787
|
-
constructor(payload, parentId) {
|
|
788
|
-
this.payload = payload;
|
|
789
|
-
this.parentId = parentId;
|
|
790
|
-
this.type = ViewerActionTypes.ViewFile;
|
|
791
|
-
}
|
|
792
|
-
}
|
|
793
|
-
class ViewNodeAction {
|
|
794
|
-
/**
|
|
795
|
-
* @param {?} nodeId
|
|
796
|
-
* @param {?=} viewNodeExtras
|
|
797
|
-
*/
|
|
798
|
-
constructor(nodeId, viewNodeExtras) {
|
|
799
|
-
this.nodeId = nodeId;
|
|
800
|
-
this.viewNodeExtras = viewNodeExtras;
|
|
801
|
-
this.type = ViewerActionTypes.ViewNode;
|
|
802
|
-
}
|
|
803
|
-
}
|
|
804
|
-
class FullscreenViewerAction {
|
|
805
|
-
/**
|
|
806
|
-
* @param {?} payload
|
|
807
|
-
*/
|
|
808
|
-
constructor(payload) {
|
|
809
|
-
this.payload = payload;
|
|
810
|
-
this.type = ViewerActionTypes.FullScreen;
|
|
811
|
-
}
|
|
812
|
-
}
|
|
813
|
-
class ClosePreviewAction {
|
|
814
|
-
/**
|
|
815
|
-
* @param {?=} payload
|
|
816
|
-
*/
|
|
817
|
-
constructor(payload) {
|
|
818
|
-
this.payload = payload;
|
|
819
|
-
this.type = ViewerActionTypes.ClosePreview;
|
|
820
|
-
}
|
|
821
|
-
}
|
|
822
|
-
|
|
823
|
-
/**
|
|
824
|
-
* @fileoverview added by tsickle
|
|
825
|
-
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
826
|
-
*/
|
|
827
|
-
/*!
|
|
828
|
-
* @license
|
|
829
|
-
* Alfresco Example Content Application
|
|
830
|
-
*
|
|
831
|
-
* Copyright (C) 2005 - 2020 Alfresco Software Limited
|
|
832
|
-
*
|
|
833
|
-
* This file is part of the Alfresco Example Content Application.
|
|
834
|
-
* If the software was purchased under a paid Alfresco license, the terms of
|
|
835
|
-
* the paid license agreement will prevail. Otherwise, the software is
|
|
836
|
-
* provided under the following open source license terms:
|
|
837
|
-
*
|
|
838
|
-
* The Alfresco Example Content Application is free software: you can redistribute it and/or modify
|
|
839
|
-
* it under the terms of the GNU Lesser General Public License as published by
|
|
840
|
-
* the Free Software Foundation, either version 3 of the License, or
|
|
841
|
-
* (at your option) any later version.
|
|
842
|
-
*
|
|
843
|
-
* The Alfresco Example Content Application is distributed in the hope that it will be useful,
|
|
844
|
-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
845
|
-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
846
|
-
* GNU Lesser General Public License for more details.
|
|
847
|
-
*
|
|
848
|
-
* You should have received a copy of the GNU Lesser General Public License
|
|
849
|
-
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
|
850
|
-
*/
|
|
851
|
-
/** @type {?} */
|
|
852
|
-
const SET_INFO_DRAWER_METADATA_ASPECT = 'SET_INFO_DRAWER_METADATA_ASPECT';
|
|
853
|
-
class SetInfoDrawerMetadataAspectAction {
|
|
854
|
-
/**
|
|
855
|
-
* @param {?} payload
|
|
856
|
-
*/
|
|
857
|
-
constructor(payload) {
|
|
858
|
-
this.payload = payload;
|
|
859
|
-
this.type = SET_INFO_DRAWER_METADATA_ASPECT;
|
|
860
|
-
}
|
|
861
|
-
}
|
|
862
|
-
|
|
863
|
-
/**
|
|
864
|
-
* @fileoverview added by tsickle
|
|
865
|
-
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
866
|
-
*/
|
|
867
|
-
/*!
|
|
868
|
-
* @license
|
|
869
|
-
* Alfresco Example Content Application
|
|
870
|
-
*
|
|
871
|
-
* Copyright (C) 2005 - 2020 Alfresco Software Limited
|
|
872
|
-
*
|
|
873
|
-
* This file is part of the Alfresco Example Content Application.
|
|
874
|
-
* If the software was purchased under a paid Alfresco license, the terms of
|
|
875
|
-
* the paid license agreement will prevail. Otherwise, the software is
|
|
876
|
-
* provided under the following open source license terms:
|
|
877
|
-
*
|
|
878
|
-
* The Alfresco Example Content Application is free software: you can redistribute it and/or modify
|
|
879
|
-
* it under the terms of the GNU Lesser General Public License as published by
|
|
880
|
-
* the Free Software Foundation, either version 3 of the License, or
|
|
881
|
-
* (at your option) any later version.
|
|
882
|
-
*
|
|
883
|
-
* The Alfresco Example Content Application is distributed in the hope that it will be useful,
|
|
884
|
-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
885
|
-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
886
|
-
* GNU Lesser General Public License for more details.
|
|
887
|
-
*
|
|
888
|
-
* You should have received a copy of the GNU Lesser General Public License
|
|
889
|
-
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
|
890
|
-
*/
|
|
891
|
-
/** @enum {string} */
|
|
892
|
-
const TemplateActionTypes = {
|
|
893
|
-
FileFromTemplate: 'FILE_FROM_TEMPLATE',
|
|
894
|
-
FolderFromTemplate: 'FOLDER_FROM_TEMPLATE',
|
|
895
|
-
CreateFromTemplate: 'CREATE_FROM_TEMPLATE',
|
|
896
|
-
CreateFromTemplateSuccess: 'CREATE_FROM_TEMPLATE_SUCCESS',
|
|
897
|
-
};
|
|
898
|
-
class FileFromTemplate {
|
|
899
|
-
constructor() {
|
|
900
|
-
this.type = TemplateActionTypes.FileFromTemplate;
|
|
901
|
-
}
|
|
902
|
-
}
|
|
903
|
-
class FolderFromTemplate {
|
|
904
|
-
constructor() {
|
|
905
|
-
this.type = TemplateActionTypes.FolderFromTemplate;
|
|
906
|
-
}
|
|
907
|
-
}
|
|
908
|
-
class CreateFromTemplate {
|
|
909
|
-
/**
|
|
910
|
-
* @param {?} payload
|
|
911
|
-
*/
|
|
912
|
-
constructor(payload) {
|
|
913
|
-
this.payload = payload;
|
|
914
|
-
this.type = TemplateActionTypes.CreateFromTemplate;
|
|
915
|
-
}
|
|
916
|
-
}
|
|
917
|
-
class CreateFromTemplateSuccess {
|
|
918
|
-
/**
|
|
919
|
-
* @param {?} node
|
|
920
|
-
*/
|
|
921
|
-
constructor(node) {
|
|
922
|
-
this.node = node;
|
|
923
|
-
this.type = TemplateActionTypes.CreateFromTemplateSuccess;
|
|
924
|
-
}
|
|
925
|
-
}
|
|
926
|
-
|
|
927
|
-
/**
|
|
928
|
-
* @fileoverview added by tsickle
|
|
929
|
-
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
930
|
-
*/
|
|
931
|
-
/*!
|
|
932
|
-
* @license
|
|
933
|
-
* Alfresco Example Content Application
|
|
934
|
-
*
|
|
935
|
-
* Copyright (C) 2005 - 2020 Alfresco Software Limited
|
|
936
|
-
*
|
|
937
|
-
* This file is part of the Alfresco Example Content Application.
|
|
938
|
-
* If the software was purchased under a paid Alfresco license, the terms of
|
|
939
|
-
* the paid license agreement will prevail. Otherwise, the software is
|
|
940
|
-
* provided under the following open source license terms:
|
|
941
|
-
*
|
|
942
|
-
* The Alfresco Example Content Application is free software: you can redistribute it and/or modify
|
|
943
|
-
* it under the terms of the GNU Lesser General Public License as published by
|
|
944
|
-
* the Free Software Foundation, either version 3 of the License, or
|
|
945
|
-
* (at your option) any later version.
|
|
946
|
-
*
|
|
947
|
-
* The Alfresco Example Content Application is distributed in the hope that it will be useful,
|
|
948
|
-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
949
|
-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
950
|
-
* GNU Lesser General Public License for more details.
|
|
951
|
-
*
|
|
952
|
-
* You should have received a copy of the GNU Lesser General Public License
|
|
953
|
-
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
|
954
|
-
*/
|
|
955
|
-
/** @enum {string} */
|
|
956
|
-
const ContextMenuActionTypes = {
|
|
957
|
-
ContextMenu: 'CONTEXT_MENU',
|
|
958
|
-
};
|
|
959
|
-
class ContextMenu {
|
|
960
|
-
/**
|
|
961
|
-
* @param {?} event
|
|
962
|
-
*/
|
|
963
|
-
constructor(event) {
|
|
964
|
-
this.event = event;
|
|
965
|
-
this.type = ContextMenuActionTypes.ContextMenu;
|
|
966
|
-
}
|
|
967
|
-
}
|
|
968
|
-
|
|
969
|
-
/**
|
|
970
|
-
* @fileoverview added by tsickle
|
|
971
|
-
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
972
|
-
*/
|
|
973
|
-
class DialogEffects {
|
|
974
|
-
/**
|
|
975
|
-
* @param {?} actions$
|
|
976
|
-
* @param {?} matDialog
|
|
977
|
-
*/
|
|
978
|
-
constructor(actions$, matDialog) {
|
|
979
|
-
this.actions$ = actions$;
|
|
980
|
-
this.matDialog = matDialog;
|
|
981
|
-
this.closeAll$ = this.actions$.pipe(ofType(AppActionTypes.CloseModalDialogs), map(() => this.matDialog.closeAll()));
|
|
982
|
-
}
|
|
983
|
-
}
|
|
984
|
-
DialogEffects.decorators = [
|
|
985
|
-
{ type: Injectable }
|
|
986
|
-
];
|
|
987
|
-
/** @nocollapse */
|
|
988
|
-
DialogEffects.ctorParameters = () => [
|
|
989
|
-
{ type: Actions },
|
|
990
|
-
{ type: MatDialog }
|
|
991
|
-
];
|
|
992
|
-
__decorate([
|
|
993
|
-
Effect({ dispatch: false }),
|
|
994
|
-
__metadata("design:type", Object)
|
|
995
|
-
], DialogEffects.prototype, "closeAll$", void 0);
|
|
996
|
-
|
|
997
|
-
/**
|
|
998
|
-
* @fileoverview added by tsickle
|
|
999
|
-
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
1000
|
-
*/
|
|
1001
|
-
class RouterEffects {
|
|
1002
|
-
/**
|
|
1003
|
-
* @param {?} store
|
|
1004
|
-
* @param {?} actions$
|
|
1005
|
-
* @param {?} router
|
|
1006
|
-
*/
|
|
1007
|
-
constructor(store, actions$, router) {
|
|
1008
|
-
this.store = store;
|
|
1009
|
-
this.actions$ = actions$;
|
|
1010
|
-
this.router = router;
|
|
1011
|
-
this.navigateUrl$ = this.actions$.pipe(ofType(RouterActionTypes.NavigateUrl), map(action => {
|
|
1012
|
-
if (action.payload) {
|
|
1013
|
-
this.router.navigateByUrl(action.payload);
|
|
1014
|
-
}
|
|
1015
|
-
}));
|
|
1016
|
-
this.navigateRoute$ = this.actions$.pipe(ofType(RouterActionTypes.NavigateRoute), map(action => {
|
|
1017
|
-
this.router.navigate(action.payload);
|
|
1018
|
-
}));
|
|
1019
|
-
this.navigateToFolder$ = this.actions$.pipe(ofType(RouterActionTypes.NavigateFolder), map(action => {
|
|
1020
|
-
if (action.payload && action.payload.entry) {
|
|
1021
|
-
this.navigateToFolder(action.payload.entry);
|
|
1022
|
-
}
|
|
1023
|
-
}));
|
|
1024
|
-
this.navigateToParentFolder$ = this.actions$.pipe(ofType(RouterActionTypes.NavigateParentFolder), map(action => {
|
|
1025
|
-
if (action.payload && action.payload.entry) {
|
|
1026
|
-
this.navigateToParentFolder(action.payload.entry);
|
|
1027
|
-
}
|
|
1028
|
-
}));
|
|
1029
|
-
}
|
|
1030
|
-
/**
|
|
1031
|
-
* @private
|
|
1032
|
-
* @param {?} node
|
|
1033
|
-
* @return {?}
|
|
1034
|
-
*/
|
|
1035
|
-
navigateToFolder(node) {
|
|
1036
|
-
/** @type {?} */
|
|
1037
|
-
let link = null;
|
|
1038
|
-
const { path, id } = node;
|
|
1039
|
-
if (path && path.name && path.elements) {
|
|
1040
|
-
/** @type {?} */
|
|
1041
|
-
const isLibraryPath = this.isLibraryContent(path);
|
|
1042
|
-
/** @type {?} */
|
|
1043
|
-
const parent = path.elements[path.elements.length - 1];
|
|
1044
|
-
/** @type {?} */
|
|
1045
|
-
const area = isLibraryPath ? '/libraries' : '/personal-files';
|
|
1046
|
-
if (!isLibraryPath) {
|
|
1047
|
-
link = [area, id];
|
|
1048
|
-
}
|
|
1049
|
-
else {
|
|
1050
|
-
// parent.id could be 'Site' folder or child as 'documentLibrary'
|
|
1051
|
-
link = [area, parent.name === 'Sites' ? {} : id];
|
|
1052
|
-
}
|
|
1053
|
-
setTimeout(() => {
|
|
1054
|
-
this.router.navigate(link);
|
|
1055
|
-
}, 10);
|
|
1056
|
-
}
|
|
1057
|
-
else {
|
|
1058
|
-
this.router.navigate(['/personal-files', node.id]);
|
|
1059
|
-
}
|
|
1060
|
-
}
|
|
1061
|
-
/**
|
|
1062
|
-
* @private
|
|
1063
|
-
* @param {?} node
|
|
1064
|
-
* @return {?}
|
|
1065
|
-
*/
|
|
1066
|
-
navigateToParentFolder(node) {
|
|
1067
|
-
/** @type {?} */
|
|
1068
|
-
let link = null;
|
|
1069
|
-
const { path } = node;
|
|
1070
|
-
if (path && path.name && path.elements) {
|
|
1071
|
-
/** @type {?} */
|
|
1072
|
-
const isLibraryPath = this.isLibraryContent(path);
|
|
1073
|
-
/** @type {?} */
|
|
1074
|
-
const parent = path.elements[path.elements.length - 1];
|
|
1075
|
-
/** @type {?} */
|
|
1076
|
-
const area = isLibraryPath ? '/libraries' : '/personal-files';
|
|
1077
|
-
if (!isLibraryPath) {
|
|
1078
|
-
link = [area, parent.id];
|
|
1079
|
-
}
|
|
1080
|
-
else {
|
|
1081
|
-
// parent.id could be 'Site' folder or child as 'documentLibrary'
|
|
1082
|
-
link = [area, parent.name === 'Sites' ? {} : parent.id];
|
|
1083
|
-
}
|
|
1084
|
-
setTimeout(() => {
|
|
1085
|
-
this.router.navigate(link);
|
|
1086
|
-
}, 10);
|
|
1087
|
-
}
|
|
1088
|
-
else {
|
|
1089
|
-
this.store.dispatch(new SnackbarErrorAction('APP.MESSAGES.ERRORS.CANNOT_NAVIGATE_LOCATION'));
|
|
1090
|
-
}
|
|
1091
|
-
}
|
|
1092
|
-
/**
|
|
1093
|
-
* @private
|
|
1094
|
-
* @param {?} path
|
|
1095
|
-
* @return {?}
|
|
1096
|
-
*/
|
|
1097
|
-
isLibraryContent(path) {
|
|
1098
|
-
if (path &&
|
|
1099
|
-
path.elements.length >= 2 &&
|
|
1100
|
-
path.elements[1].name === 'Sites') {
|
|
1101
|
-
return true;
|
|
1102
|
-
}
|
|
1103
|
-
return false;
|
|
1104
|
-
}
|
|
1105
|
-
}
|
|
1106
|
-
RouterEffects.decorators = [
|
|
1107
|
-
{ type: Injectable }
|
|
1108
|
-
];
|
|
1109
|
-
/** @nocollapse */
|
|
1110
|
-
RouterEffects.ctorParameters = () => [
|
|
1111
|
-
{ type: Store },
|
|
1112
|
-
{ type: Actions },
|
|
1113
|
-
{ type: Router }
|
|
1114
|
-
];
|
|
1115
|
-
__decorate([
|
|
1116
|
-
Effect({ dispatch: false }),
|
|
1117
|
-
__metadata("design:type", Object)
|
|
1118
|
-
], RouterEffects.prototype, "navigateUrl$", void 0);
|
|
1119
|
-
__decorate([
|
|
1120
|
-
Effect({ dispatch: false }),
|
|
1121
|
-
__metadata("design:type", Object)
|
|
1122
|
-
], RouterEffects.prototype, "navigateRoute$", void 0);
|
|
1123
|
-
__decorate([
|
|
1124
|
-
Effect({ dispatch: false }),
|
|
1125
|
-
__metadata("design:type", Object)
|
|
1126
|
-
], RouterEffects.prototype, "navigateToFolder$", void 0);
|
|
1127
|
-
__decorate([
|
|
1128
|
-
Effect({ dispatch: false }),
|
|
1129
|
-
__metadata("design:type", Object)
|
|
1130
|
-
], RouterEffects.prototype, "navigateToParentFolder$", void 0);
|
|
1131
|
-
|
|
1132
|
-
/**
|
|
1133
|
-
* @fileoverview added by tsickle
|
|
1134
|
-
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
1135
|
-
*/
|
|
1136
|
-
class SnackbarEffects {
|
|
1137
|
-
/**
|
|
1138
|
-
* @param {?} store
|
|
1139
|
-
* @param {?} actions$
|
|
1140
|
-
* @param {?} snackBar
|
|
1141
|
-
* @param {?} translationService
|
|
1142
|
-
*/
|
|
1143
|
-
constructor(store, actions$, snackBar, translationService) {
|
|
1144
|
-
this.store = store;
|
|
1145
|
-
this.actions$ = actions$;
|
|
1146
|
-
this.snackBar = snackBar;
|
|
1147
|
-
this.translationService = translationService;
|
|
1148
|
-
this.infoEffect = this.actions$.pipe(ofType(SnackbarActionTypes.Info), map((action) => {
|
|
1149
|
-
this.showSnackBar(action, 'info-snackbar');
|
|
1150
|
-
}));
|
|
1151
|
-
this.warningEffect = this.actions$.pipe(ofType(SnackbarActionTypes.Warning), map((action) => {
|
|
1152
|
-
this.showSnackBar(action, 'warning-snackbar');
|
|
1153
|
-
}));
|
|
1154
|
-
this.errorEffect = this.actions$.pipe(ofType(SnackbarActionTypes.Error), map((action) => {
|
|
1155
|
-
this.showSnackBar(action, 'error-snackbar');
|
|
1156
|
-
}));
|
|
1157
|
-
}
|
|
1158
|
-
/**
|
|
1159
|
-
* @private
|
|
1160
|
-
* @param {?} action
|
|
1161
|
-
* @param {?} panelClass
|
|
1162
|
-
* @return {?}
|
|
1163
|
-
*/
|
|
1164
|
-
showSnackBar(action, panelClass) {
|
|
1165
|
-
/** @type {?} */
|
|
1166
|
-
const message = this.translate(action.payload, action.params);
|
|
1167
|
-
/** @type {?} */
|
|
1168
|
-
let actionName = null;
|
|
1169
|
-
if (action.userAction) {
|
|
1170
|
-
actionName = this.translate(action.userAction.title);
|
|
1171
|
-
}
|
|
1172
|
-
/** @type {?} */
|
|
1173
|
-
const snackBarRef = this.snackBar.open(message, actionName, {
|
|
1174
|
-
duration: action.duration || 4000,
|
|
1175
|
-
panelClass: panelClass
|
|
1176
|
-
});
|
|
1177
|
-
if (action.userAction) {
|
|
1178
|
-
snackBarRef.onAction().subscribe(() => {
|
|
1179
|
-
this.store.dispatch(action.userAction.action);
|
|
1180
|
-
});
|
|
1181
|
-
}
|
|
1182
|
-
}
|
|
1183
|
-
/**
|
|
1184
|
-
* @private
|
|
1185
|
-
* @param {?} message
|
|
1186
|
-
* @param {?=} params
|
|
1187
|
-
* @return {?}
|
|
1188
|
-
*/
|
|
1189
|
-
translate(message, params) {
|
|
1190
|
-
return this.translationService.instant(message, params);
|
|
1191
|
-
}
|
|
1192
|
-
}
|
|
1193
|
-
SnackbarEffects.decorators = [
|
|
1194
|
-
{ type: Injectable }
|
|
1195
|
-
];
|
|
1196
|
-
/** @nocollapse */
|
|
1197
|
-
SnackbarEffects.ctorParameters = () => [
|
|
1198
|
-
{ type: Store },
|
|
1199
|
-
{ type: Actions },
|
|
1200
|
-
{ type: MatSnackBar },
|
|
1201
|
-
{ type: TranslationService }
|
|
1202
|
-
];
|
|
1203
|
-
__decorate([
|
|
1204
|
-
Effect({ dispatch: false }),
|
|
1205
|
-
__metadata("design:type", Object)
|
|
1206
|
-
], SnackbarEffects.prototype, "infoEffect", void 0);
|
|
1207
|
-
__decorate([
|
|
1208
|
-
Effect({ dispatch: false }),
|
|
1209
|
-
__metadata("design:type", Object)
|
|
1210
|
-
], SnackbarEffects.prototype, "warningEffect", void 0);
|
|
1211
|
-
__decorate([
|
|
1212
|
-
Effect({ dispatch: false }),
|
|
1213
|
-
__metadata("design:type", Object)
|
|
1214
|
-
], SnackbarEffects.prototype, "errorEffect", void 0);
|
|
1215
|
-
|
|
1216
|
-
/**
|
|
1217
|
-
* @fileoverview added by tsickle
|
|
1218
|
-
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
1219
|
-
*/
|
|
1220
|
-
|
|
1221
|
-
/**
|
|
1222
|
-
* @fileoverview added by tsickle
|
|
1223
|
-
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
1224
|
-
*/
|
|
1225
|
-
|
|
1226
|
-
/**
|
|
1227
|
-
* @fileoverview added by tsickle
|
|
1228
|
-
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
1229
|
-
*/
|
|
1230
|
-
|
|
1231
|
-
/**
|
|
1232
|
-
* @fileoverview added by tsickle
|
|
1233
|
-
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
1234
|
-
*/
|
|
1235
|
-
/*!
|
|
1236
|
-
* @license
|
|
1237
|
-
* Alfresco Example Content Application
|
|
1238
|
-
*
|
|
1239
|
-
* Copyright (C) 2005 - 2020 Alfresco Software Limited
|
|
1240
|
-
*
|
|
1241
|
-
* This file is part of the Alfresco Example Content Application.
|
|
1242
|
-
* If the software was purchased under a paid Alfresco license, the terms of
|
|
1243
|
-
* the paid license agreement will prevail. Otherwise, the software is
|
|
1244
|
-
* provided under the following open source license terms:
|
|
1245
|
-
*
|
|
1246
|
-
* The Alfresco Example Content Application is free software: you can redistribute it and/or modify
|
|
1247
|
-
* it under the terms of the GNU Lesser General Public License as published by
|
|
1248
|
-
* the Free Software Foundation, either version 3 of the License, or
|
|
1249
|
-
* (at your option) any later version.
|
|
1250
|
-
*
|
|
1251
|
-
* The Alfresco Example Content Application is distributed in the hope that it will be useful,
|
|
1252
|
-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
1253
|
-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
1254
|
-
* GNU Lesser General Public License for more details.
|
|
1255
|
-
*
|
|
1256
|
-
* You should have received a copy of the GNU Lesser General Public License
|
|
1257
|
-
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
|
1258
|
-
*/
|
|
1259
|
-
/** @enum {string} */
|
|
1260
|
-
const SearchOptionIds = {
|
|
1261
|
-
Files: 'content',
|
|
1262
|
-
Folders: 'folder',
|
|
1263
|
-
Libraries: 'libraries',
|
|
1264
|
-
};
|
|
1265
|
-
|
|
1266
|
-
/**
|
|
1267
|
-
* @fileoverview added by tsickle
|
|
1268
|
-
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
1269
|
-
*/
|
|
1270
|
-
/** @type {?} */
|
|
1271
|
-
const selectApp = (state) => state.app;
|
|
1272
|
-
/** @type {?} */
|
|
1273
|
-
const getHeaderColor = createSelector(selectApp, state => state.headerColor);
|
|
1274
|
-
/** @type {?} */
|
|
1275
|
-
const getAppName = createSelector(selectApp, state => state.appName);
|
|
1276
|
-
/** @type {?} */
|
|
1277
|
-
const getLogoPath = createSelector(selectApp, state => state.logoPath);
|
|
1278
|
-
/** @type {?} */
|
|
1279
|
-
const getHeaderImagePath = createSelector(selectApp, state => state.headerImagePath);
|
|
1280
|
-
/** @type {?} */
|
|
1281
|
-
const getLanguagePickerState = createSelector(selectApp, state => state.languagePicker);
|
|
1282
|
-
/** @type {?} */
|
|
1283
|
-
const getUserProfile = createSelector(selectApp, state => state.user);
|
|
1284
|
-
/** @type {?} */
|
|
1285
|
-
const getCurrentFolder = createSelector(selectApp, state => state.navigation.currentFolder);
|
|
1286
|
-
/** @type {?} */
|
|
1287
|
-
const getAppSelection = createSelector(selectApp, state => state.selection);
|
|
1288
|
-
/** @type {?} */
|
|
1289
|
-
const getSharedUrl = createSelector(selectApp, state => state.sharedUrl);
|
|
1290
|
-
/** @type {?} */
|
|
1291
|
-
const getNavigationState = createSelector(selectApp, state => state.navigation);
|
|
1292
|
-
/** @type {?} */
|
|
1293
|
-
const isInfoDrawerOpened = createSelector(selectApp, state => state.infoDrawerOpened);
|
|
1294
|
-
/** @type {?} */
|
|
1295
|
-
const showFacetFilter = createSelector(selectApp, state => state.showFacetFilter);
|
|
1296
|
-
/** @type {?} */
|
|
1297
|
-
const getDocumentDisplayMode = createSelector(selectApp, state => state.documentDisplayMode);
|
|
1298
|
-
/** @type {?} */
|
|
1299
|
-
const getRepositoryStatus = createSelector(selectApp, state => state.repository);
|
|
1300
|
-
/** @type {?} */
|
|
1301
|
-
const isQuickShareEnabled = createSelector(getRepositoryStatus, info => info.status.isQuickShareEnabled);
|
|
1302
|
-
/** @type {?} */
|
|
1303
|
-
const isAdmin = createSelector(selectApp, state => state.user.isAdmin);
|
|
1304
|
-
/** @type {?} */
|
|
1305
|
-
const getSideNavState = createSelector(getAppSelection, getNavigationState, (selection, navigation) => {
|
|
1306
|
-
return {
|
|
1307
|
-
selection,
|
|
1308
|
-
navigation
|
|
1309
|
-
};
|
|
1310
|
-
});
|
|
1311
|
-
/** @type {?} */
|
|
1312
|
-
const getRuleContext = createSelector(getAppSelection, getNavigationState, getUserProfile, getRepositoryStatus, (selection, navigation, profile, repository) => {
|
|
1313
|
-
return {
|
|
1314
|
-
selection,
|
|
1315
|
-
navigation,
|
|
1316
|
-
profile,
|
|
1317
|
-
repository
|
|
1318
|
-
};
|
|
1319
|
-
});
|
|
1320
|
-
/** @type {?} */
|
|
1321
|
-
const infoDrawerMetadataAspect = createSelector(selectApp, state => state.infoDrawerMetadataAspect);
|
|
1322
|
-
|
|
1323
|
-
/**
|
|
1324
|
-
* @fileoverview added by tsickle
|
|
1325
|
-
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
1326
|
-
*/
|
|
1327
|
-
|
|
1328
|
-
/**
|
|
1329
|
-
* @fileoverview added by tsickle
|
|
1330
|
-
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
1331
|
-
*/
|
|
1332
|
-
class SharedStoreModule {
|
|
1333
|
-
}
|
|
1334
|
-
SharedStoreModule.decorators = [
|
|
1335
|
-
{ type: NgModule, args: [{
|
|
1336
|
-
imports: [
|
|
1337
|
-
EffectsModule.forFeature([SnackbarEffects, DialogEffects, RouterEffects])
|
|
1338
|
-
]
|
|
1339
|
-
},] }
|
|
1340
|
-
];
|
|
1341
|
-
|
|
1342
|
-
/**
|
|
1343
|
-
* @fileoverview added by tsickle
|
|
1344
|
-
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
1345
|
-
*/
|
|
1346
|
-
|
|
1347
|
-
/**
|
|
1348
|
-
* @fileoverview added by tsickle
|
|
1349
|
-
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
1350
|
-
*/
|
|
1351
|
-
|
|
1352
|
-
export { AppActionTypes, SetSettingsParameterAction, SetInitialStateAction, SetHeaderColorAction, SetCurrentFolderAction, SetCurrentUrlAction, SetUserProfileAction, ToggleInfoDrawerAction, ToggleDocumentDisplayMode, LogoutAction, ReloadDocumentListAction, ResetSelectionAction, SetInfoDrawerStateAction, CloseModalDialogsAction, SetRepositoryInfoAction, LibraryActionTypes, DeleteLibraryAction, CreateLibraryAction, NavigateLibraryAction, UpdateLibraryAction, LeaveLibraryAction, NodeActionTypes, SetSelectedNodesAction, DeleteNodesAction, UndoDeleteNodesAction, RestoreDeletedNodesAction, PurgeDeletedNodesAction, DownloadNodesAction, CreateFolderAction, EditFolderAction, ShareNodeAction, UnshareNodesAction, CopyNodesAction, MoveNodesAction, ManagePermissionsAction, PrintFileAction, ManageVersionsAction, EditOfflineAction, UnlockWriteAction, AddFavoriteAction, RemoveFavoriteAction, RouterActionTypes, NavigateUrlAction, NavigateRouteAction, NavigateToFolder, NavigateToParentFolder, SearchActionTypes, SearchByTermAction, ToggleSearchFilterAction, ShowSearchFilterAction, HideSearchFilterAction, SnackbarActionTypes, SnackbarUserAction, SnackbarInfoAction, SnackbarWarningAction, SnackbarErrorAction, UploadActionTypes, UploadFilesAction, UploadFolderAction, UploadFileVersionAction, ViewerActionTypes, ViewFileAction, ViewNodeAction, FullscreenViewerAction, ClosePreviewAction, SET_INFO_DRAWER_METADATA_ASPECT, SetInfoDrawerMetadataAspectAction, TemplateActionTypes, FileFromTemplate, FolderFromTemplate, CreateFromTemplate, CreateFromTemplateSuccess, ContextMenuActionTypes, ContextMenu, DialogEffects, RouterEffects, SnackbarEffects, SearchOptionIds, selectApp, getHeaderColor, getAppName, getLogoPath, getHeaderImagePath, getLanguagePickerState, getUserProfile, getCurrentFolder, getAppSelection, getSharedUrl, getNavigationState, isInfoDrawerOpened, showFacetFilter, getDocumentDisplayMode, getRepositoryStatus, isQuickShareEnabled, isAdmin, getSideNavState, getRuleContext, infoDrawerMetadataAspect, SharedStoreModule };
|
|
1353
|
-
|
|
1354
|
-
//# sourceMappingURL=alfresco-aca-shared-store.js.map
|