@alfresco/aca-shared 2.0.1 → 4.0.0-A.2-9920
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/{esm2015/alfresco-aca-shared.js → esm2020/alfresco-aca-shared.mjs} +0 -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/esm2020/lib/components/page-layout/page-layout-error.component.mjs +41 -0
- 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/info-drawer/shared-info-drawer.module.js → esm2020/lib/directives/contextmenu/contextmenu.module.mjs} +17 -15
- 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/{esm2015/lib/models/types.js → esm2020/lib/models/types.mjs} +1 -0
- package/{esm2015/lib/models/viewer.rules.js → esm2020/lib/models/viewer.rules.mjs} +2 -1
- 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/{esm2015/lib/services/node-permission.service.js → esm2020/lib/services/node-permission.service.mjs} +9 -7
- 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/{esm2015/store/actions/contextmenu.actions.js → esm2020/lib/testing/translation.service.mjs} +19 -9
- package/{esm2015/lib/utils/node.utils.js → esm2020/lib/utils/node.utils.mjs} +0 -0
- package/esm2020/public-api.mjs +63 -0
- package/{esm2015/rules/alfresco-aca-shared-rules.js → esm2020/rules/alfresco-aca-shared-rules.mjs} +0 -0
- package/esm2020/rules/app.rules.mjs +503 -0
- package/esm2020/rules/navigation.rules.mjs +152 -0
- package/{esm2015/rules/public-api.js → esm2020/rules/public-api.mjs} +0 -0
- package/{esm2015/store/states/app.state.js → esm2020/rules/repository.rules.mjs} +10 -1
- package/esm2020/rules/user.rules.mjs +30 -0
- 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/{esm2015/store/actions/metadata-aspect.actions.js → esm2020/store/actions/metadata-aspect.actions.mjs} +0 -0
- package/esm2020/store/actions/node.actions.mjs +189 -0
- package/{esm2015/lib/components/generic-error/generic-error.module.js → esm2020/store/actions/router-action-types.mjs} +9 -15
- package/esm2020/store/actions/router.actions.mjs +55 -0
- package/esm2020/store/actions/search.actions.mjs +36 -0
- package/esm2020/store/actions/snackbar.actions.mjs +58 -0
- package/esm2020/store/actions/template-action-types.mjs +32 -0
- package/{esm2015/lib/components/generic-error/generic-error.component.js → esm2020/store/actions/template.actions.mjs} +21 -17
- package/esm2020/store/actions/upload.actions.mjs +50 -0
- package/esm2020/store/actions/viewer.actions.mjs +82 -0
- package/{esm2015/store/alfresco-aca-shared-store.js → esm2020/store/alfresco-aca-shared-store.mjs} +0 -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/{esm2015/store/models/delete-status.model.js → esm2020/store/models/delete-status.model.mjs} +1 -0
- package/{esm2015/store/models/deleted-node-info.model.js → esm2020/store/models/deleted-node-info.model.mjs} +1 -0
- package/esm2020/store/models/modal-configuration.mjs +2 -0
- package/{esm2015/store/models/node-info.model.js → esm2020/store/models/node-info.model.mjs} +1 -0
- package/{esm2015/store/models/search-option.model.js → esm2020/store/models/search-option.model.mjs} +0 -0
- package/esm2020/store/public-api.mjs +50 -0
- package/esm2020/store/selectors/app.selectors.mjs +60 -0
- package/esm2020/store/states/app.state.mjs +27 -0
- 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.js → alfresco-aca-shared-store.mjs} +302 -276
- 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} +220 -150
- 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/{alfresco-aca-shared.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 +13 -7
- 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 +30 -45
- package/lib/services/app.service.d.ts +42 -6
- package/lib/services/content-api.service.d.ts +34 -25
- package/lib/services/node-permission.service.d.ts +3 -24
- package/lib/services/router.extension.service.d.ts +3 -24
- package/lib/shared.module.d.ts +5 -0
- package/lib/testing/lib-testing-module.d.ts +43 -0
- package/lib/testing/translation.service.d.ts +10 -0
- package/package.json +57 -18
- package/public-api.d.ts +7 -1
- package/rules/app.rules.d.ts +104 -30
- package/rules/{alfresco-aca-shared-rules.d.ts → 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 +19 -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 +6 -0
- 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/{alfresco-aca-shared-store.d.ts → index.d.ts} +1 -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 +6 -1
- package/store/states/app.state.d.ts +8 -1
- package/store/store.module.d.ts +5 -24
- package/alfresco-aca-shared.metadata.json +0 -1
- package/bundles/alfresco-aca-shared-rules.umd.js +0 -745
- package/bundles/alfresco-aca-shared-rules.umd.js.map +0 -1
- package/bundles/alfresco-aca-shared-rules.umd.min.js +0 -125
- package/bundles/alfresco-aca-shared-rules.umd.min.js.map +0 -1
- package/bundles/alfresco-aca-shared-store.umd.js +0 -1784
- package/bundles/alfresco-aca-shared-store.umd.js.map +0 -1
- package/bundles/alfresco-aca-shared-store.umd.min.js +0 -462
- package/bundles/alfresco-aca-shared-store.umd.min.js.map +0 -1
- package/bundles/alfresco-aca-shared.umd.js +0 -2523
- package/bundles/alfresco-aca-shared.umd.js.map +0 -1
- package/bundles/alfresco-aca-shared.umd.min.js +0 -740
- package/bundles/alfresco-aca-shared.umd.min.js.map +0 -1
- package/esm2015/lib/adf-extensions/extensions-data-loader.guard.js +0 -74
- package/esm2015/lib/components/info-drawer/info-drawer.component.js +0 -105
- package/esm2015/lib/components/locked-by/locked-by.component.js +0 -54
- package/esm2015/lib/components/locked-by/locked-by.module.js +0 -38
- package/esm2015/lib/components/page-layout/page-layout-content.component.js +0 -43
- package/esm2015/lib/components/page-layout/page-layout-error.component.js +0 -37
- package/esm2015/lib/components/page-layout/page-layout-header.component.js +0 -37
- package/esm2015/lib/components/page-layout/page-layout.component.js +0 -44
- package/esm2015/lib/components/page-layout/page-layout.module.js +0 -40
- package/esm2015/lib/components/tool-bar/shared-toolbar.module.js +0 -42
- package/esm2015/lib/components/tool-bar/toolbar-action/toolbar-action.component.js +0 -57
- package/esm2015/lib/components/tool-bar/toolbar-button/toolbar-button.component.js +0 -66
- package/esm2015/lib/components/tool-bar/toolbar-menu/toolbar-menu.component.js +0 -55
- package/esm2015/lib/components/tool-bar/toolbar-menu-item/toolbar-menu-item.component.js +0 -65
- package/esm2015/lib/directives/contextmenu/contextmenu.directive.js +0 -97
- package/esm2015/lib/directives/contextmenu/contextmenu.module.js +0 -38
- package/esm2015/lib/directives/pagination.directive.js +0 -55
- package/esm2015/lib/directives/shared.directives.module.js +0 -37
- package/esm2015/lib/routing/app.routes.strategy.js +0 -105
- package/esm2015/lib/routing/shared.guard.js +0 -50
- package/esm2015/lib/services/app.extension.service.js +0 -398
- package/esm2015/lib/services/app.service.js +0 -69
- package/esm2015/lib/services/content-api.service.js +0 -205
- package/esm2015/lib/services/router.extension.service.js +0 -110
- package/esm2015/lib/shared.module.js +0 -44
- package/esm2015/public-api.js +0 -57
- package/esm2015/rules/app.rules.js +0 -420
- package/esm2015/rules/navigation.rules.js +0 -164
- package/esm2015/rules/repository.rules.js +0 -32
- package/esm2015/rules/user.rules.js +0 -32
- package/esm2015/store/actions/app.actions.js +0 -130
- package/esm2015/store/actions/library.actions.js +0 -63
- package/esm2015/store/actions/node.actions.js +0 -161
- package/esm2015/store/actions/router.actions.js +0 -56
- package/esm2015/store/actions/search.actions.js +0 -54
- package/esm2015/store/actions/snackbar.actions.js +0 -61
- package/esm2015/store/actions/template.actions.js +0 -54
- package/esm2015/store/actions/upload.actions.js +0 -49
- package/esm2015/store/actions/viewer.actions.js +0 -75
- package/esm2015/store/effects/dialog.effects.js +0 -49
- package/esm2015/store/effects/router.effects.js +0 -132
- package/esm2015/store/effects/snackbar.effects.js +0 -90
- package/esm2015/store/public-api.js +0 -46
- package/esm2015/store/selectors/app.selectors.js +0 -80
- package/esm2015/store/store.module.js +0 -37
- package/fesm2015/alfresco-aca-shared-rules.js.map +0 -1
- package/fesm2015/alfresco-aca-shared-store.js.map +0 -1
- package/fesm2015/alfresco-aca-shared.js +0 -2167
- package/fesm2015/alfresco-aca-shared.js.map +0 -1
- package/rules/alfresco-aca-shared-rules.metadata.json +0 -1
- package/rules/package.json +0 -11
- package/store/alfresco-aca-shared-store.metadata.json +0 -1
- package/store/package.json +0 -11
|
@@ -1,12 +1,16 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
1
|
+
import * as i2 from '@ngrx/effects';
|
|
2
|
+
import { createEffect, ofType, EffectsModule } from '@ngrx/effects';
|
|
3
|
+
import * as i0 from '@angular/core';
|
|
4
|
+
import { Injectable, InjectionToken, NgModule } from '@angular/core';
|
|
4
5
|
import { map } from 'rxjs/operators';
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import {
|
|
8
|
-
import
|
|
9
|
-
import
|
|
6
|
+
import * as i2$1 from '@angular/material/dialog';
|
|
7
|
+
import * as i1 from '@ngrx/store';
|
|
8
|
+
import { createSelector } from '@ngrx/store';
|
|
9
|
+
import * as i3 from '@angular/router';
|
|
10
|
+
import * as i4 from '@angular/common';
|
|
11
|
+
import * as i4$1 from '@alfresco/adf-core';
|
|
12
|
+
import { SnackbarContentComponent } from '@alfresco/adf-core';
|
|
13
|
+
import * as i3$1 from '@angular/material/snack-bar';
|
|
10
14
|
|
|
11
15
|
/*!
|
|
12
16
|
* @license
|
|
@@ -50,7 +54,130 @@ var AppActionTypes;
|
|
|
50
54
|
AppActionTypes["SetInfoDrawerState"] = "SET_INFO_DRAWER_STATE";
|
|
51
55
|
AppActionTypes["SetInfoDrawerMetadataAspect"] = "SET_INFO_DRAWER_METADATA_ASPECT";
|
|
52
56
|
AppActionTypes["CloseModalDialogs"] = "CLOSE_MODAL_DIALOGS";
|
|
57
|
+
AppActionTypes["SetFileUploadingDialog"] = "SET_FILE_UPLOADING_DIALOG";
|
|
58
|
+
AppActionTypes["ShowInfoDrawerPreview"] = "SHOW_INFO_DRAWER_PREVIEW";
|
|
59
|
+
AppActionTypes["SetInfoDrawerPreviewState"] = "SET_INFO_DRAWER_PREVIEW_STATE";
|
|
60
|
+
AppActionTypes["ShowLoaderAction"] = "SHOW_LOADER";
|
|
53
61
|
})(AppActionTypes || (AppActionTypes = {}));
|
|
62
|
+
|
|
63
|
+
/*!
|
|
64
|
+
* @license
|
|
65
|
+
* Alfresco Example Content Application
|
|
66
|
+
*
|
|
67
|
+
* Copyright (C) 2005 - 2020 Alfresco Software Limited
|
|
68
|
+
*
|
|
69
|
+
* This file is part of the Alfresco Example Content Application.
|
|
70
|
+
* If the software was purchased under a paid Alfresco license, the terms of
|
|
71
|
+
* the paid license agreement will prevail. Otherwise, the software is
|
|
72
|
+
* provided under the following open source license terms:
|
|
73
|
+
*
|
|
74
|
+
* The Alfresco Example Content Application is free software: you can redistribute it and/or modify
|
|
75
|
+
* it under the terms of the GNU Lesser General Public License as published by
|
|
76
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
77
|
+
* (at your option) any later version.
|
|
78
|
+
*
|
|
79
|
+
* The Alfresco Example Content Application is distributed in the hope that it will be useful,
|
|
80
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
81
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
82
|
+
* GNU Lesser General Public License for more details.
|
|
83
|
+
*
|
|
84
|
+
* You should have received a copy of the GNU Lesser General Public License
|
|
85
|
+
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
|
86
|
+
*/
|
|
87
|
+
var ContextMenuActionTypes;
|
|
88
|
+
(function (ContextMenuActionTypes) {
|
|
89
|
+
ContextMenuActionTypes["ContextMenu"] = "CONTEXT_MENU";
|
|
90
|
+
})(ContextMenuActionTypes || (ContextMenuActionTypes = {}));
|
|
91
|
+
|
|
92
|
+
/*!
|
|
93
|
+
* @license
|
|
94
|
+
* Alfresco Example Content Application
|
|
95
|
+
*
|
|
96
|
+
* Copyright (C) 2005 - 2020 Alfresco Software Limited
|
|
97
|
+
*
|
|
98
|
+
* This file is part of the Alfresco Example Content Application.
|
|
99
|
+
* If the software was purchased under a paid Alfresco license, the terms of
|
|
100
|
+
* the paid license agreement will prevail. Otherwise, the software is
|
|
101
|
+
* provided under the following open source license terms:
|
|
102
|
+
*
|
|
103
|
+
* The Alfresco Example Content Application is free software: you can redistribute it and/or modify
|
|
104
|
+
* it under the terms of the GNU Lesser General Public License as published by
|
|
105
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
106
|
+
* (at your option) any later version.
|
|
107
|
+
*
|
|
108
|
+
* The Alfresco Example Content Application is distributed in the hope that it will be useful,
|
|
109
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
110
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
111
|
+
* GNU Lesser General Public License for more details.
|
|
112
|
+
*
|
|
113
|
+
* You should have received a copy of the GNU Lesser General Public License
|
|
114
|
+
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
|
115
|
+
*/
|
|
116
|
+
var RouterActionTypes;
|
|
117
|
+
(function (RouterActionTypes) {
|
|
118
|
+
RouterActionTypes["NavigateUrl"] = "NAVIGATE_URL";
|
|
119
|
+
RouterActionTypes["NavigateRoute"] = "NAVIGATE_ROUTE";
|
|
120
|
+
RouterActionTypes["NavigateFolder"] = "NAVIGATE_FOLDER";
|
|
121
|
+
RouterActionTypes["NavigateParentFolder"] = "NAVIGATE_PARENT_FOLDER";
|
|
122
|
+
RouterActionTypes["NavigateToPreviousPage"] = "NAVIGATE_TO_PREVIOUS_PAGE";
|
|
123
|
+
})(RouterActionTypes || (RouterActionTypes = {}));
|
|
124
|
+
|
|
125
|
+
/*!
|
|
126
|
+
* @license
|
|
127
|
+
* Alfresco Example Content Application
|
|
128
|
+
*
|
|
129
|
+
* Copyright (C) 2005 - 2020 Alfresco Software Limited
|
|
130
|
+
*
|
|
131
|
+
* This file is part of the Alfresco Example Content Application.
|
|
132
|
+
* If the software was purchased under a paid Alfresco license, the terms of
|
|
133
|
+
* the paid license agreement will prevail. Otherwise, the software is
|
|
134
|
+
* provided under the following open source license terms:
|
|
135
|
+
*
|
|
136
|
+
* The Alfresco Example Content Application is free software: you can redistribute it and/or modify
|
|
137
|
+
* it under the terms of the GNU Lesser General Public License as published by
|
|
138
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
139
|
+
* (at your option) any later version.
|
|
140
|
+
*
|
|
141
|
+
* The Alfresco Example Content Application is distributed in the hope that it will be useful,
|
|
142
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
143
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
144
|
+
* GNU Lesser General Public License for more details.
|
|
145
|
+
*
|
|
146
|
+
* You should have received a copy of the GNU Lesser General Public License
|
|
147
|
+
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
|
148
|
+
*/
|
|
149
|
+
var TemplateActionTypes;
|
|
150
|
+
(function (TemplateActionTypes) {
|
|
151
|
+
TemplateActionTypes["FileFromTemplate"] = "FILE_FROM_TEMPLATE";
|
|
152
|
+
TemplateActionTypes["FolderFromTemplate"] = "FOLDER_FROM_TEMPLATE";
|
|
153
|
+
TemplateActionTypes["CreateFromTemplate"] = "CREATE_FROM_TEMPLATE";
|
|
154
|
+
TemplateActionTypes["CreateFromTemplateSuccess"] = "CREATE_FROM_TEMPLATE_SUCCESS";
|
|
155
|
+
})(TemplateActionTypes || (TemplateActionTypes = {}));
|
|
156
|
+
|
|
157
|
+
/*!
|
|
158
|
+
* @license
|
|
159
|
+
* Alfresco Example Content Application
|
|
160
|
+
*
|
|
161
|
+
* Copyright (C) 2005 - 2020 Alfresco Software Limited
|
|
162
|
+
*
|
|
163
|
+
* This file is part of the Alfresco Example Content Application.
|
|
164
|
+
* If the software was purchased under a paid Alfresco license, the terms of
|
|
165
|
+
* the paid license agreement will prevail. Otherwise, the software is
|
|
166
|
+
* provided under the following open source license terms:
|
|
167
|
+
*
|
|
168
|
+
* The Alfresco Example Content Application is free software: you can redistribute it and/or modify
|
|
169
|
+
* it under the terms of the GNU Lesser General Public License as published by
|
|
170
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
171
|
+
* (at your option) any later version.
|
|
172
|
+
*
|
|
173
|
+
* The Alfresco Example Content Application is distributed in the hope that it will be useful,
|
|
174
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
175
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
176
|
+
* GNU Lesser General Public License for more details.
|
|
177
|
+
*
|
|
178
|
+
* You should have received a copy of the GNU Lesser General Public License
|
|
179
|
+
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
|
180
|
+
*/
|
|
54
181
|
class SetSettingsParameterAction {
|
|
55
182
|
constructor(payload) {
|
|
56
183
|
this.payload = payload;
|
|
@@ -137,6 +264,29 @@ class SetRepositoryInfoAction {
|
|
|
137
264
|
this.type = AppActionTypes.SetRepositoryInfo;
|
|
138
265
|
}
|
|
139
266
|
}
|
|
267
|
+
class SetFileUploadingDialogAction {
|
|
268
|
+
constructor(payload) {
|
|
269
|
+
this.payload = payload;
|
|
270
|
+
this.type = AppActionTypes.SetFileUploadingDialog;
|
|
271
|
+
}
|
|
272
|
+
}
|
|
273
|
+
class ShowInfoDrawerPreviewAction {
|
|
274
|
+
constructor() {
|
|
275
|
+
this.type = AppActionTypes.ShowInfoDrawerPreview;
|
|
276
|
+
}
|
|
277
|
+
}
|
|
278
|
+
class SetInfoDrawerPreviewStateAction {
|
|
279
|
+
constructor(payload) {
|
|
280
|
+
this.payload = payload;
|
|
281
|
+
this.type = AppActionTypes.SetInfoDrawerPreviewState;
|
|
282
|
+
}
|
|
283
|
+
}
|
|
284
|
+
class ShowLoaderAction {
|
|
285
|
+
constructor(payload) {
|
|
286
|
+
this.payload = payload;
|
|
287
|
+
this.type = AppActionTypes.ShowLoaderAction;
|
|
288
|
+
}
|
|
289
|
+
}
|
|
140
290
|
|
|
141
291
|
/*!
|
|
142
292
|
* @license
|
|
@@ -195,8 +345,9 @@ class UpdateLibraryAction {
|
|
|
195
345
|
}
|
|
196
346
|
}
|
|
197
347
|
class LeaveLibraryAction {
|
|
198
|
-
constructor(payload) {
|
|
348
|
+
constructor(payload, configuration) {
|
|
199
349
|
this.payload = payload;
|
|
350
|
+
this.configuration = configuration;
|
|
200
351
|
this.type = LibraryActionTypes.Leave;
|
|
201
352
|
}
|
|
202
353
|
}
|
|
@@ -246,6 +397,9 @@ var NodeActionTypes;
|
|
|
246
397
|
NodeActionTypes["UnlockForWriting"] = "UNLOCK_WRITE_LOCK";
|
|
247
398
|
NodeActionTypes["AddFavorite"] = "ADD_FAVORITE";
|
|
248
399
|
NodeActionTypes["RemoveFavorite"] = "REMOVE_FAVORITE";
|
|
400
|
+
NodeActionTypes["ChangeAspects"] = "ASPECT_LIST";
|
|
401
|
+
NodeActionTypes["ExpandInfoDrawer"] = "EXPAND_INFO_DRAWER";
|
|
402
|
+
NodeActionTypes["ManageRules"] = "MANAGE_RULES";
|
|
249
403
|
})(NodeActionTypes || (NodeActionTypes = {}));
|
|
250
404
|
class SetSelectedNodesAction {
|
|
251
405
|
constructor(payload = []) {
|
|
@@ -278,8 +432,9 @@ class PurgeDeletedNodesAction {
|
|
|
278
432
|
}
|
|
279
433
|
}
|
|
280
434
|
class DownloadNodesAction {
|
|
281
|
-
constructor(payload = []) {
|
|
435
|
+
constructor(payload = [], configuration) {
|
|
282
436
|
this.payload = payload;
|
|
437
|
+
this.configuration = configuration;
|
|
283
438
|
this.type = NodeActionTypes.Download;
|
|
284
439
|
}
|
|
285
440
|
}
|
|
@@ -290,14 +445,16 @@ class CreateFolderAction {
|
|
|
290
445
|
}
|
|
291
446
|
}
|
|
292
447
|
class EditFolderAction {
|
|
293
|
-
constructor(payload) {
|
|
448
|
+
constructor(payload, configuration) {
|
|
294
449
|
this.payload = payload;
|
|
450
|
+
this.configuration = configuration;
|
|
295
451
|
this.type = NodeActionTypes.EditFolder;
|
|
296
452
|
}
|
|
297
453
|
}
|
|
298
454
|
class ShareNodeAction {
|
|
299
|
-
constructor(payload) {
|
|
455
|
+
constructor(payload, configuration) {
|
|
300
456
|
this.payload = payload;
|
|
457
|
+
this.configuration = configuration;
|
|
301
458
|
this.type = NodeActionTypes.Share;
|
|
302
459
|
}
|
|
303
460
|
}
|
|
@@ -308,14 +465,16 @@ class UnshareNodesAction {
|
|
|
308
465
|
}
|
|
309
466
|
}
|
|
310
467
|
class CopyNodesAction {
|
|
311
|
-
constructor(payload) {
|
|
468
|
+
constructor(payload, configuration) {
|
|
312
469
|
this.payload = payload;
|
|
470
|
+
this.configuration = configuration;
|
|
313
471
|
this.type = NodeActionTypes.Copy;
|
|
314
472
|
}
|
|
315
473
|
}
|
|
316
474
|
class MoveNodesAction {
|
|
317
|
-
constructor(payload) {
|
|
475
|
+
constructor(payload, configuration) {
|
|
318
476
|
this.payload = payload;
|
|
477
|
+
this.configuration = configuration;
|
|
319
478
|
this.type = NodeActionTypes.Move;
|
|
320
479
|
}
|
|
321
480
|
}
|
|
@@ -325,6 +484,12 @@ class ManagePermissionsAction {
|
|
|
325
484
|
this.type = NodeActionTypes.ManagePermissions;
|
|
326
485
|
}
|
|
327
486
|
}
|
|
487
|
+
class ExpandInfoDrawerAction {
|
|
488
|
+
constructor(payload) {
|
|
489
|
+
this.payload = payload;
|
|
490
|
+
this.type = NodeActionTypes.ExpandInfoDrawer;
|
|
491
|
+
}
|
|
492
|
+
}
|
|
328
493
|
class PrintFileAction {
|
|
329
494
|
constructor(payload) {
|
|
330
495
|
this.payload = payload;
|
|
@@ -332,8 +497,9 @@ class PrintFileAction {
|
|
|
332
497
|
}
|
|
333
498
|
}
|
|
334
499
|
class ManageVersionsAction {
|
|
335
|
-
constructor(payload) {
|
|
500
|
+
constructor(payload, configuration) {
|
|
336
501
|
this.payload = payload;
|
|
502
|
+
this.configuration = configuration;
|
|
337
503
|
this.type = NodeActionTypes.ManageVersions;
|
|
338
504
|
}
|
|
339
505
|
}
|
|
@@ -361,6 +527,19 @@ class RemoveFavoriteAction {
|
|
|
361
527
|
this.type = NodeActionTypes.RemoveFavorite;
|
|
362
528
|
}
|
|
363
529
|
}
|
|
530
|
+
class ManageAspectsAction {
|
|
531
|
+
constructor(payload, configuration) {
|
|
532
|
+
this.payload = payload;
|
|
533
|
+
this.configuration = configuration;
|
|
534
|
+
this.type = NodeActionTypes.ChangeAspects;
|
|
535
|
+
}
|
|
536
|
+
}
|
|
537
|
+
class ManageRulesAction {
|
|
538
|
+
constructor(payload) {
|
|
539
|
+
this.payload = payload;
|
|
540
|
+
this.type = NodeActionTypes.ManageRules;
|
|
541
|
+
}
|
|
542
|
+
}
|
|
364
543
|
|
|
365
544
|
/*!
|
|
366
545
|
* @license
|
|
@@ -386,13 +565,6 @@ class RemoveFavoriteAction {
|
|
|
386
565
|
* You should have received a copy of the GNU Lesser General Public License
|
|
387
566
|
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
|
388
567
|
*/
|
|
389
|
-
var RouterActionTypes;
|
|
390
|
-
(function (RouterActionTypes) {
|
|
391
|
-
RouterActionTypes["NavigateUrl"] = "NAVIGATE_URL";
|
|
392
|
-
RouterActionTypes["NavigateRoute"] = "NAVIGATE_ROUTE";
|
|
393
|
-
RouterActionTypes["NavigateFolder"] = "NAVIGATE_FOLDER";
|
|
394
|
-
RouterActionTypes["NavigateParentFolder"] = "NAVIGATE_PARENT_FOLDER";
|
|
395
|
-
})(RouterActionTypes || (RouterActionTypes = {}));
|
|
396
568
|
class NavigateUrlAction {
|
|
397
569
|
constructor(payload) {
|
|
398
570
|
this.payload = payload;
|
|
@@ -417,6 +589,11 @@ class NavigateToParentFolder {
|
|
|
417
589
|
this.type = RouterActionTypes.NavigateParentFolder;
|
|
418
590
|
}
|
|
419
591
|
}
|
|
592
|
+
class NavigateToPreviousPage {
|
|
593
|
+
constructor() {
|
|
594
|
+
this.type = RouterActionTypes.NavigateToPreviousPage;
|
|
595
|
+
}
|
|
596
|
+
}
|
|
420
597
|
|
|
421
598
|
/*!
|
|
422
599
|
* @license
|
|
@@ -445,9 +622,6 @@ class NavigateToParentFolder {
|
|
|
445
622
|
var SearchActionTypes;
|
|
446
623
|
(function (SearchActionTypes) {
|
|
447
624
|
SearchActionTypes["SearchByTerm"] = "SEARCH_BY_TERM";
|
|
448
|
-
SearchActionTypes["ToggleFilter"] = "TOGGLE_SEARCH_FILTER";
|
|
449
|
-
SearchActionTypes["ShowFilter"] = "SHOW_SEARCH_FILTER";
|
|
450
|
-
SearchActionTypes["HideFilter"] = "HIDE_SEARCH_FILTER";
|
|
451
625
|
})(SearchActionTypes || (SearchActionTypes = {}));
|
|
452
626
|
class SearchByTermAction {
|
|
453
627
|
constructor(payload, searchOptions) {
|
|
@@ -456,21 +630,6 @@ class SearchByTermAction {
|
|
|
456
630
|
this.type = SearchActionTypes.SearchByTerm;
|
|
457
631
|
}
|
|
458
632
|
}
|
|
459
|
-
class ToggleSearchFilterAction {
|
|
460
|
-
constructor() {
|
|
461
|
-
this.type = SearchActionTypes.ToggleFilter;
|
|
462
|
-
}
|
|
463
|
-
}
|
|
464
|
-
class ShowSearchFilterAction {
|
|
465
|
-
constructor() {
|
|
466
|
-
this.type = SearchActionTypes.ShowFilter;
|
|
467
|
-
}
|
|
468
|
-
}
|
|
469
|
-
class HideSearchFilterAction {
|
|
470
|
-
constructor() {
|
|
471
|
-
this.type = SearchActionTypes.HideFilter;
|
|
472
|
-
}
|
|
473
|
-
}
|
|
474
633
|
|
|
475
634
|
/*!
|
|
476
635
|
* @license
|
|
@@ -513,7 +672,6 @@ class SnackbarInfoAction {
|
|
|
513
672
|
this.payload = payload;
|
|
514
673
|
this.params = params;
|
|
515
674
|
this.type = SnackbarActionTypes.Info;
|
|
516
|
-
this.duration = 4000;
|
|
517
675
|
}
|
|
518
676
|
}
|
|
519
677
|
class SnackbarWarningAction {
|
|
@@ -521,7 +679,6 @@ class SnackbarWarningAction {
|
|
|
521
679
|
this.payload = payload;
|
|
522
680
|
this.params = params;
|
|
523
681
|
this.type = SnackbarActionTypes.Warning;
|
|
524
|
-
this.duration = 4000;
|
|
525
682
|
}
|
|
526
683
|
}
|
|
527
684
|
class SnackbarErrorAction {
|
|
@@ -529,7 +686,6 @@ class SnackbarErrorAction {
|
|
|
529
686
|
this.payload = payload;
|
|
530
687
|
this.params = params;
|
|
531
688
|
this.type = SnackbarActionTypes.Error;
|
|
532
|
-
this.duration = 4000;
|
|
533
689
|
}
|
|
534
690
|
}
|
|
535
691
|
|
|
@@ -576,8 +732,9 @@ class UploadFolderAction {
|
|
|
576
732
|
}
|
|
577
733
|
}
|
|
578
734
|
class UploadFileVersionAction {
|
|
579
|
-
constructor(payload) {
|
|
735
|
+
constructor(payload, configuration) {
|
|
580
736
|
this.payload = payload;
|
|
737
|
+
this.configuration = configuration;
|
|
581
738
|
this.type = UploadActionTypes.UploadFileVersion;
|
|
582
739
|
}
|
|
583
740
|
}
|
|
@@ -613,6 +770,7 @@ var ViewerActionTypes;
|
|
|
613
770
|
ViewerActionTypes["ViewNodeVersion"] = "VIEW_NODE_VERSION";
|
|
614
771
|
ViewerActionTypes["FullScreen"] = "FULLSCREEN_VIEWER";
|
|
615
772
|
ViewerActionTypes["ClosePreview"] = "CLOSE_PREVIEW";
|
|
773
|
+
ViewerActionTypes["RefreshPreview"] = "REFRESH_PREVIEW";
|
|
616
774
|
ViewerActionTypes["PluginPreview"] = "PLUGIN_PREVIEW";
|
|
617
775
|
})(ViewerActionTypes || (ViewerActionTypes = {}));
|
|
618
776
|
class ViewFileAction {
|
|
@@ -649,6 +807,12 @@ class ClosePreviewAction {
|
|
|
649
807
|
this.type = ViewerActionTypes.ClosePreview;
|
|
650
808
|
}
|
|
651
809
|
}
|
|
810
|
+
class RefreshPreviewAction {
|
|
811
|
+
constructor(payload) {
|
|
812
|
+
this.payload = payload;
|
|
813
|
+
this.type = ViewerActionTypes.RefreshPreview;
|
|
814
|
+
}
|
|
815
|
+
}
|
|
652
816
|
class PluginPreviewAction {
|
|
653
817
|
constructor(pluginRoute, nodeId) {
|
|
654
818
|
this.pluginRoute = pluginRoute;
|
|
@@ -713,13 +877,6 @@ class SetInfoDrawerMetadataAspectAction {
|
|
|
713
877
|
* You should have received a copy of the GNU Lesser General Public License
|
|
714
878
|
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
|
715
879
|
*/
|
|
716
|
-
var TemplateActionTypes;
|
|
717
|
-
(function (TemplateActionTypes) {
|
|
718
|
-
TemplateActionTypes["FileFromTemplate"] = "FILE_FROM_TEMPLATE";
|
|
719
|
-
TemplateActionTypes["FolderFromTemplate"] = "FOLDER_FROM_TEMPLATE";
|
|
720
|
-
TemplateActionTypes["CreateFromTemplate"] = "CREATE_FROM_TEMPLATE";
|
|
721
|
-
TemplateActionTypes["CreateFromTemplateSuccess"] = "CREATE_FROM_TEMPLATE_SUCCESS";
|
|
722
|
-
})(TemplateActionTypes || (TemplateActionTypes = {}));
|
|
723
880
|
class FileFromTemplate {
|
|
724
881
|
constructor() {
|
|
725
882
|
this.type = TemplateActionTypes.FileFromTemplate;
|
|
@@ -767,10 +924,6 @@ class CreateFromTemplateSuccess {
|
|
|
767
924
|
* You should have received a copy of the GNU Lesser General Public License
|
|
768
925
|
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
|
769
926
|
*/
|
|
770
|
-
var ContextMenuActionTypes;
|
|
771
|
-
(function (ContextMenuActionTypes) {
|
|
772
|
-
ContextMenuActionTypes["ContextMenu"] = "CONTEXT_MENU";
|
|
773
|
-
})(ContextMenuActionTypes || (ContextMenuActionTypes = {}));
|
|
774
927
|
class ContextMenu {
|
|
775
928
|
constructor(event) {
|
|
776
929
|
this.event = event;
|
|
@@ -806,20 +959,14 @@ class DialogEffects {
|
|
|
806
959
|
constructor(actions$, matDialog) {
|
|
807
960
|
this.actions$ = actions$;
|
|
808
961
|
this.matDialog = matDialog;
|
|
809
|
-
this.closeAll$ = this.actions$.pipe(ofType(AppActionTypes.CloseModalDialogs), map(() => this.matDialog.closeAll()));
|
|
810
|
-
}
|
|
811
|
-
}
|
|
812
|
-
DialogEffects
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
{ type: MatDialog }
|
|
818
|
-
];
|
|
819
|
-
__decorate([
|
|
820
|
-
Effect({ dispatch: false }),
|
|
821
|
-
__metadata("design:type", Object)
|
|
822
|
-
], DialogEffects.prototype, "closeAll$", void 0);
|
|
962
|
+
this.closeAll$ = createEffect(() => this.actions$.pipe(ofType(AppActionTypes.CloseModalDialogs), map(() => this.matDialog.closeAll())), { dispatch: false });
|
|
963
|
+
}
|
|
964
|
+
}
|
|
965
|
+
DialogEffects.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: DialogEffects, deps: [{ token: i2.Actions }, { token: i2$1.MatDialog }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
966
|
+
DialogEffects.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: DialogEffects });
|
|
967
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: DialogEffects, decorators: [{
|
|
968
|
+
type: Injectable
|
|
969
|
+
}], ctorParameters: function () { return [{ type: i2.Actions }, { type: i2$1.MatDialog }]; } });
|
|
823
970
|
|
|
824
971
|
/*!
|
|
825
972
|
* @license
|
|
@@ -846,28 +993,30 @@ __decorate([
|
|
|
846
993
|
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
|
847
994
|
*/
|
|
848
995
|
class RouterEffects {
|
|
849
|
-
constructor(store, actions$, router) {
|
|
996
|
+
constructor(store, actions$, router, location) {
|
|
850
997
|
this.store = store;
|
|
851
998
|
this.actions$ = actions$;
|
|
852
999
|
this.router = router;
|
|
853
|
-
this.
|
|
1000
|
+
this.location = location;
|
|
1001
|
+
this.navigateUrl$ = createEffect(() => this.actions$.pipe(ofType(RouterActionTypes.NavigateUrl), map((action) => {
|
|
854
1002
|
if (action.payload) {
|
|
855
1003
|
this.router.navigateByUrl(action.payload);
|
|
856
1004
|
}
|
|
857
|
-
}));
|
|
858
|
-
this.navigateRoute$ = this.actions$.pipe(ofType(RouterActionTypes.NavigateRoute), map((action) => {
|
|
1005
|
+
})), { dispatch: false });
|
|
1006
|
+
this.navigateRoute$ = createEffect(() => this.actions$.pipe(ofType(RouterActionTypes.NavigateRoute), map((action) => {
|
|
859
1007
|
this.router.navigate(action.payload);
|
|
860
|
-
}));
|
|
861
|
-
this.navigateToFolder$ = this.actions$.pipe(ofType(RouterActionTypes.NavigateFolder), map((action) => {
|
|
1008
|
+
})), { dispatch: false });
|
|
1009
|
+
this.navigateToFolder$ = createEffect(() => this.actions$.pipe(ofType(RouterActionTypes.NavigateFolder), map((action) => {
|
|
862
1010
|
if (action.payload && action.payload.entry) {
|
|
863
1011
|
this.navigateToFolder(action.payload.entry);
|
|
864
1012
|
}
|
|
865
|
-
}));
|
|
866
|
-
this.navigateToParentFolder$ = this.actions$.pipe(ofType(RouterActionTypes.NavigateParentFolder), map((action) => {
|
|
1013
|
+
})), { dispatch: false });
|
|
1014
|
+
this.navigateToParentFolder$ = createEffect(() => this.actions$.pipe(ofType(RouterActionTypes.NavigateParentFolder), map((action) => {
|
|
867
1015
|
if (action.payload && action.payload.entry) {
|
|
868
1016
|
this.navigateToParentFolder(action.payload.entry);
|
|
869
1017
|
}
|
|
870
|
-
}));
|
|
1018
|
+
})), { dispatch: false });
|
|
1019
|
+
this.navigateToPreviousPage$ = createEffect(() => this.actions$.pipe(ofType(RouterActionTypes.NavigateToPreviousPage), map(() => this.location.back())), { dispatch: false });
|
|
871
1020
|
}
|
|
872
1021
|
navigateToFolder(node) {
|
|
873
1022
|
let link = null;
|
|
@@ -914,36 +1063,14 @@ class RouterEffects {
|
|
|
914
1063
|
}
|
|
915
1064
|
}
|
|
916
1065
|
isLibraryContent(path) {
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
];
|
|
926
|
-
RouterEffects.ctorParameters = () => [
|
|
927
|
-
{ type: Store },
|
|
928
|
-
{ type: Actions },
|
|
929
|
-
{ type: Router }
|
|
930
|
-
];
|
|
931
|
-
__decorate([
|
|
932
|
-
Effect({ dispatch: false }),
|
|
933
|
-
__metadata("design:type", Object)
|
|
934
|
-
], RouterEffects.prototype, "navigateUrl$", void 0);
|
|
935
|
-
__decorate([
|
|
936
|
-
Effect({ dispatch: false }),
|
|
937
|
-
__metadata("design:type", Object)
|
|
938
|
-
], RouterEffects.prototype, "navigateRoute$", void 0);
|
|
939
|
-
__decorate([
|
|
940
|
-
Effect({ dispatch: false }),
|
|
941
|
-
__metadata("design:type", Object)
|
|
942
|
-
], RouterEffects.prototype, "navigateToFolder$", void 0);
|
|
943
|
-
__decorate([
|
|
944
|
-
Effect({ dispatch: false }),
|
|
945
|
-
__metadata("design:type", Object)
|
|
946
|
-
], RouterEffects.prototype, "navigateToParentFolder$", void 0);
|
|
1066
|
+
return path && path.elements.length >= 2 && path.elements[1].name === 'Sites';
|
|
1067
|
+
}
|
|
1068
|
+
}
|
|
1069
|
+
RouterEffects.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: RouterEffects, deps: [{ token: i1.Store }, { token: i2.Actions }, { token: i3.Router }, { token: i4.Location }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1070
|
+
RouterEffects.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: RouterEffects });
|
|
1071
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: RouterEffects, decorators: [{
|
|
1072
|
+
type: Injectable
|
|
1073
|
+
}], ctorParameters: function () { return [{ type: i1.Store }, { type: i2.Actions }, { type: i3.Router }, { type: i4.Location }]; } });
|
|
947
1074
|
|
|
948
1075
|
/*!
|
|
949
1076
|
* @license
|
|
@@ -975,15 +1102,15 @@ class SnackbarEffects {
|
|
|
975
1102
|
this.actions$ = actions$;
|
|
976
1103
|
this.snackBar = snackBar;
|
|
977
1104
|
this.translationService = translationService;
|
|
978
|
-
this.infoEffect = this.actions$.pipe(ofType(SnackbarActionTypes.Info), map((action) => {
|
|
979
|
-
this.showSnackBar(action, 'info-snackbar');
|
|
980
|
-
}));
|
|
981
|
-
this.warningEffect = this.actions$.pipe(ofType(SnackbarActionTypes.Warning), map((action) => {
|
|
982
|
-
this.showSnackBar(action, 'warning-snackbar');
|
|
983
|
-
}));
|
|
984
|
-
this.errorEffect = this.actions$.pipe(ofType(SnackbarActionTypes.Error), map((action) => {
|
|
985
|
-
this.showSnackBar(action, 'error-snackbar');
|
|
986
|
-
}));
|
|
1105
|
+
this.infoEffect = createEffect(() => this.actions$.pipe(ofType(SnackbarActionTypes.Info), map((action) => {
|
|
1106
|
+
this.showSnackBar(action, 'adf-info-snackbar');
|
|
1107
|
+
})), { dispatch: false });
|
|
1108
|
+
this.warningEffect = createEffect(() => this.actions$.pipe(ofType(SnackbarActionTypes.Warning), map((action) => {
|
|
1109
|
+
this.showSnackBar(action, 'adf-warning-snackbar');
|
|
1110
|
+
})), { dispatch: false });
|
|
1111
|
+
this.errorEffect = createEffect(() => this.actions$.pipe(ofType(SnackbarActionTypes.Error), map((action) => {
|
|
1112
|
+
this.showSnackBar(action, 'adf-error-snackbar');
|
|
1113
|
+
})), { dispatch: false });
|
|
987
1114
|
}
|
|
988
1115
|
showSnackBar(action, panelClass) {
|
|
989
1116
|
const message = this.translate(action.payload, action.params);
|
|
@@ -991,10 +1118,14 @@ class SnackbarEffects {
|
|
|
991
1118
|
if (action.userAction) {
|
|
992
1119
|
actionName = this.translate(action.userAction.title);
|
|
993
1120
|
}
|
|
994
|
-
const snackBarRef = this.snackBar.
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
1121
|
+
const snackBarRef = this.snackBar.openFromComponent(SnackbarContentComponent, Object.assign(Object.assign({}, (action.duration !== undefined && action.duration !== null && { duration: action.duration })), { panelClass, data: {
|
|
1122
|
+
message,
|
|
1123
|
+
actionLabel: actionName,
|
|
1124
|
+
actionIcon: 'close',
|
|
1125
|
+
actionIconAriaLabel: 'CLOSE',
|
|
1126
|
+
showAction: true,
|
|
1127
|
+
callActionOnIconClick: false
|
|
1128
|
+
} }));
|
|
998
1129
|
if (action.userAction) {
|
|
999
1130
|
snackBarRef.onAction().subscribe(() => {
|
|
1000
1131
|
this.store.dispatch(action.userAction.action);
|
|
@@ -1005,102 +1136,11 @@ class SnackbarEffects {
|
|
|
1005
1136
|
return this.translationService.instant(message, params);
|
|
1006
1137
|
}
|
|
1007
1138
|
}
|
|
1008
|
-
SnackbarEffects
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
{ type: Actions },
|
|
1014
|
-
{ type: MatSnackBar },
|
|
1015
|
-
{ type: TranslationService }
|
|
1016
|
-
];
|
|
1017
|
-
__decorate([
|
|
1018
|
-
Effect({ dispatch: false }),
|
|
1019
|
-
__metadata("design:type", Object)
|
|
1020
|
-
], SnackbarEffects.prototype, "infoEffect", void 0);
|
|
1021
|
-
__decorate([
|
|
1022
|
-
Effect({ dispatch: false }),
|
|
1023
|
-
__metadata("design:type", Object)
|
|
1024
|
-
], SnackbarEffects.prototype, "warningEffect", void 0);
|
|
1025
|
-
__decorate([
|
|
1026
|
-
Effect({ dispatch: false }),
|
|
1027
|
-
__metadata("design:type", Object)
|
|
1028
|
-
], SnackbarEffects.prototype, "errorEffect", void 0);
|
|
1029
|
-
|
|
1030
|
-
/*!
|
|
1031
|
-
* @license
|
|
1032
|
-
* Alfresco Example Content Application
|
|
1033
|
-
*
|
|
1034
|
-
* Copyright (C) 2005 - 2020 Alfresco Software Limited
|
|
1035
|
-
*
|
|
1036
|
-
* This file is part of the Alfresco Example Content Application.
|
|
1037
|
-
* If the software was purchased under a paid Alfresco license, the terms of
|
|
1038
|
-
* the paid license agreement will prevail. Otherwise, the software is
|
|
1039
|
-
* provided under the following open source license terms:
|
|
1040
|
-
*
|
|
1041
|
-
* The Alfresco Example Content Application is free software: you can redistribute it and/or modify
|
|
1042
|
-
* it under the terms of the GNU Lesser General Public License as published by
|
|
1043
|
-
* the Free Software Foundation, either version 3 of the License, or
|
|
1044
|
-
* (at your option) any later version.
|
|
1045
|
-
*
|
|
1046
|
-
* The Alfresco Example Content Application is distributed in the hope that it will be useful,
|
|
1047
|
-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
1048
|
-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
1049
|
-
* GNU Lesser General Public License for more details.
|
|
1050
|
-
*
|
|
1051
|
-
* You should have received a copy of the GNU Lesser General Public License
|
|
1052
|
-
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
|
1053
|
-
*/
|
|
1054
|
-
|
|
1055
|
-
/*!
|
|
1056
|
-
* @license
|
|
1057
|
-
* Alfresco Example Content Application
|
|
1058
|
-
*
|
|
1059
|
-
* Copyright (C) 2005 - 2020 Alfresco Software Limited
|
|
1060
|
-
*
|
|
1061
|
-
* This file is part of the Alfresco Example Content Application.
|
|
1062
|
-
* If the software was purchased under a paid Alfresco license, the terms of
|
|
1063
|
-
* the paid license agreement will prevail. Otherwise, the software is
|
|
1064
|
-
* provided under the following open source license terms:
|
|
1065
|
-
*
|
|
1066
|
-
* The Alfresco Example Content Application is free software: you can redistribute it and/or modify
|
|
1067
|
-
* it under the terms of the GNU Lesser General Public License as published by
|
|
1068
|
-
* the Free Software Foundation, either version 3 of the License, or
|
|
1069
|
-
* (at your option) any later version.
|
|
1070
|
-
*
|
|
1071
|
-
* The Alfresco Example Content Application is distributed in the hope that it will be useful,
|
|
1072
|
-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
1073
|
-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
1074
|
-
* GNU Lesser General Public License for more details.
|
|
1075
|
-
*
|
|
1076
|
-
* You should have received a copy of the GNU Lesser General Public License
|
|
1077
|
-
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
|
1078
|
-
*/
|
|
1079
|
-
|
|
1080
|
-
/*!
|
|
1081
|
-
* @license
|
|
1082
|
-
* Alfresco Example Content Application
|
|
1083
|
-
*
|
|
1084
|
-
* Copyright (C) 2005 - 2020 Alfresco Software Limited
|
|
1085
|
-
*
|
|
1086
|
-
* This file is part of the Alfresco Example Content Application.
|
|
1087
|
-
* If the software was purchased under a paid Alfresco license, the terms of
|
|
1088
|
-
* the paid license agreement will prevail. Otherwise, the software is
|
|
1089
|
-
* provided under the following open source license terms:
|
|
1090
|
-
*
|
|
1091
|
-
* The Alfresco Example Content Application is free software: you can redistribute it and/or modify
|
|
1092
|
-
* it under the terms of the GNU Lesser General Public License as published by
|
|
1093
|
-
* the Free Software Foundation, either version 3 of the License, or
|
|
1094
|
-
* (at your option) any later version.
|
|
1095
|
-
*
|
|
1096
|
-
* The Alfresco Example Content Application is distributed in the hope that it will be useful,
|
|
1097
|
-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
1098
|
-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
1099
|
-
* GNU Lesser General Public License for more details.
|
|
1100
|
-
*
|
|
1101
|
-
* You should have received a copy of the GNU Lesser General Public License
|
|
1102
|
-
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
|
1103
|
-
*/
|
|
1139
|
+
SnackbarEffects.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: SnackbarEffects, deps: [{ token: i1.Store }, { token: i2.Actions }, { token: i3$1.MatSnackBar }, { token: i4$1.TranslationService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1140
|
+
SnackbarEffects.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: SnackbarEffects });
|
|
1141
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: SnackbarEffects, decorators: [{
|
|
1142
|
+
type: Injectable
|
|
1143
|
+
}], ctorParameters: function () { return [{ type: i1.Store }, { type: i2.Actions }, { type: i3$1.MatSnackBar }, { type: i4$1.TranslationService }]; } });
|
|
1104
1144
|
|
|
1105
1145
|
/*!
|
|
1106
1146
|
* @license
|
|
@@ -1158,58 +1198,39 @@ var SearchOptionIds;
|
|
|
1158
1198
|
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
|
1159
1199
|
*/
|
|
1160
1200
|
const selectApp = (state) => state.app;
|
|
1161
|
-
const
|
|
1162
|
-
const
|
|
1163
|
-
const
|
|
1164
|
-
const
|
|
1165
|
-
const
|
|
1166
|
-
const
|
|
1167
|
-
const
|
|
1168
|
-
const
|
|
1169
|
-
const
|
|
1170
|
-
const
|
|
1171
|
-
const
|
|
1172
|
-
const
|
|
1173
|
-
const
|
|
1174
|
-
const
|
|
1175
|
-
const
|
|
1176
|
-
const
|
|
1177
|
-
const
|
|
1178
|
-
const
|
|
1179
|
-
const
|
|
1180
|
-
const
|
|
1181
|
-
const
|
|
1182
|
-
const
|
|
1183
|
-
const
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
const
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
const
|
|
1194
|
-
const isAdmin = createSelector(selectApp, ɵ16);
|
|
1195
|
-
const ɵ17 = (selection, navigation) => {
|
|
1196
|
-
return {
|
|
1197
|
-
selection,
|
|
1198
|
-
navigation
|
|
1199
|
-
};
|
|
1200
|
-
};
|
|
1201
|
-
const getSideNavState = createSelector(getAppSelection, getNavigationState, ɵ17);
|
|
1202
|
-
const ɵ18 = (selection, navigation, profile, repository) => {
|
|
1203
|
-
return {
|
|
1204
|
-
selection,
|
|
1205
|
-
navigation,
|
|
1206
|
-
profile,
|
|
1207
|
-
repository
|
|
1208
|
-
};
|
|
1209
|
-
};
|
|
1210
|
-
const getRuleContext = createSelector(getAppSelection, getNavigationState, getUserProfile, getRepositoryStatus, ɵ18);
|
|
1211
|
-
const ɵ19 = (state) => state.infoDrawerMetadataAspect;
|
|
1212
|
-
const infoDrawerMetadataAspect = createSelector(selectApp, ɵ19);
|
|
1201
|
+
const getHeaderColor = createSelector(selectApp, (state) => state.headerColor);
|
|
1202
|
+
const getHeaderTextColor = createSelector(selectApp, (state) => state.headerTextColor);
|
|
1203
|
+
const getAppName = createSelector(selectApp, (state) => state.appName);
|
|
1204
|
+
const getLogoPath = createSelector(selectApp, (state) => state.logoPath);
|
|
1205
|
+
const getCustomCssPath = createSelector(selectApp, (state) => state.customCssPath);
|
|
1206
|
+
const getCustomWebFontPath = createSelector(selectApp, (state) => state.webFontPath);
|
|
1207
|
+
const getHeaderImagePath = createSelector(selectApp, (state) => state.headerImagePath);
|
|
1208
|
+
const getUserProfile = createSelector(selectApp, (state) => state.user);
|
|
1209
|
+
const getCurrentFolder = createSelector(selectApp, (state) => state.navigation.currentFolder);
|
|
1210
|
+
const getCurrentVersion = createSelector(selectApp, (state) => state.currentNodeVersion);
|
|
1211
|
+
const getAppSelection = createSelector(selectApp, (state) => state.selection);
|
|
1212
|
+
const getSharedUrl = createSelector(selectApp, (state) => state.sharedUrl);
|
|
1213
|
+
const getNavigationState = createSelector(selectApp, (state) => state.navigation);
|
|
1214
|
+
const isInfoDrawerOpened = createSelector(selectApp, (state) => state.infoDrawerOpened);
|
|
1215
|
+
const infoDrawerPreview = createSelector(selectApp, (state) => state.infoDrawerPreview);
|
|
1216
|
+
const showFacetFilter = createSelector(selectApp, (state) => state.showFacetFilter);
|
|
1217
|
+
const getDocumentDisplayMode = createSelector(selectApp, (state) => state.documentDisplayMode);
|
|
1218
|
+
const getRepositoryStatus = createSelector(selectApp, (state) => state.repository);
|
|
1219
|
+
const isQuickShareEnabled = createSelector(getRepositoryStatus, (info) => info.status.isQuickShareEnabled);
|
|
1220
|
+
const isAdmin = createSelector(selectApp, (state) => state.user.isAdmin);
|
|
1221
|
+
const getFileUploadingDialog = createSelector(selectApp, (state) => state.fileUploadingDialog);
|
|
1222
|
+
const showLoaderSelector = createSelector(selectApp, (state) => state.showLoader);
|
|
1223
|
+
const getSideNavState = createSelector(getAppSelection, getNavigationState, (selection, navigation) => ({
|
|
1224
|
+
selection,
|
|
1225
|
+
navigation
|
|
1226
|
+
}));
|
|
1227
|
+
const getRuleContext = createSelector(getAppSelection, getNavigationState, getUserProfile, getRepositoryStatus, (selection, navigation, profile, repository) => ({
|
|
1228
|
+
selection,
|
|
1229
|
+
navigation,
|
|
1230
|
+
profile,
|
|
1231
|
+
repository
|
|
1232
|
+
}));
|
|
1233
|
+
const infoDrawerMetadataAspect = createSelector(selectApp, (state) => state.infoDrawerMetadataAspect);
|
|
1213
1234
|
|
|
1214
1235
|
/*!
|
|
1215
1236
|
* @license
|
|
@@ -1235,6 +1256,7 @@ const infoDrawerMetadataAspect = createSelector(selectApp, ɵ19);
|
|
|
1235
1256
|
* You should have received a copy of the GNU Lesser General Public License
|
|
1236
1257
|
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
|
1237
1258
|
*/
|
|
1259
|
+
const STORE_INITIAL_APP_DATA = new InjectionToken('STORE_INITIAL_APP_DATA');
|
|
1238
1260
|
|
|
1239
1261
|
/*!
|
|
1240
1262
|
* @license
|
|
@@ -1262,11 +1284,15 @@ const infoDrawerMetadataAspect = createSelector(selectApp, ɵ19);
|
|
|
1262
1284
|
*/
|
|
1263
1285
|
class SharedStoreModule {
|
|
1264
1286
|
}
|
|
1265
|
-
SharedStoreModule
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1287
|
+
SharedStoreModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: SharedStoreModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1288
|
+
SharedStoreModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.1.2", ngImport: i0, type: SharedStoreModule, imports: [i2.EffectsFeatureModule] });
|
|
1289
|
+
SharedStoreModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: SharedStoreModule, imports: [EffectsModule.forFeature([SnackbarEffects, DialogEffects, RouterEffects])] });
|
|
1290
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: SharedStoreModule, decorators: [{
|
|
1291
|
+
type: NgModule,
|
|
1292
|
+
args: [{
|
|
1293
|
+
imports: [EffectsModule.forFeature([SnackbarEffects, DialogEffects, RouterEffects])]
|
|
1294
|
+
}]
|
|
1295
|
+
}] });
|
|
1270
1296
|
|
|
1271
1297
|
/*!
|
|
1272
1298
|
* @license
|
|
@@ -1297,5 +1323,5 @@ SharedStoreModule.decorators = [
|
|
|
1297
1323
|
* Generated bundle index. Do not edit.
|
|
1298
1324
|
*/
|
|
1299
1325
|
|
|
1300
|
-
export { AddFavoriteAction, AppActionTypes, CloseModalDialogsAction, ClosePreviewAction, ContextMenu, ContextMenuActionTypes, CopyNodesAction, CreateFolderAction, CreateFromTemplate, CreateFromTemplateSuccess, CreateLibraryAction, DeleteLibraryAction, DeleteNodesAction, DialogEffects, DownloadNodesAction, EditFolderAction, EditOfflineAction, FileFromTemplate, FolderFromTemplate, FullscreenViewerAction,
|
|
1301
|
-
//# sourceMappingURL=alfresco-aca-shared-store.
|
|
1326
|
+
export { AddFavoriteAction, AppActionTypes, CloseModalDialogsAction, ClosePreviewAction, ContextMenu, ContextMenuActionTypes, CopyNodesAction, CreateFolderAction, CreateFromTemplate, CreateFromTemplateSuccess, CreateLibraryAction, DeleteLibraryAction, DeleteNodesAction, DialogEffects, DownloadNodesAction, EditFolderAction, EditOfflineAction, ExpandInfoDrawerAction, FileFromTemplate, FolderFromTemplate, FullscreenViewerAction, LeaveLibraryAction, LibraryActionTypes, LogoutAction, ManageAspectsAction, ManagePermissionsAction, ManageRulesAction, ManageVersionsAction, MoveNodesAction, NavigateLibraryAction, NavigateRouteAction, NavigateToFolder, NavigateToParentFolder, NavigateToPreviousPage, NavigateUrlAction, NodeActionTypes, PluginPreviewAction, PrintFileAction, PurgeDeletedNodesAction, RefreshPreviewAction, ReloadDocumentListAction, RemoveFavoriteAction, ResetSelectionAction, RestoreDeletedNodesAction, RouterActionTypes, RouterEffects, SET_INFO_DRAWER_METADATA_ASPECT, STORE_INITIAL_APP_DATA, SearchActionTypes, SearchByTermAction, SearchOptionIds, SetCurrentFolderAction, SetCurrentNodeVersionAction, SetCurrentUrlAction, SetFileUploadingDialogAction, SetHeaderColorAction, SetInfoDrawerMetadataAspectAction, SetInfoDrawerPreviewStateAction, SetInfoDrawerStateAction, SetInitialStateAction, SetRepositoryInfoAction, SetSelectedNodesAction, SetSettingsParameterAction, SetUserProfileAction, ShareNodeAction, SharedStoreModule, ShowInfoDrawerPreviewAction, ShowLoaderAction, SnackbarActionTypes, SnackbarEffects, SnackbarErrorAction, SnackbarInfoAction, SnackbarUserAction, SnackbarWarningAction, TemplateActionTypes, ToggleDocumentDisplayMode, ToggleInfoDrawerAction, UndoDeleteNodesAction, UnlockWriteAction, UnshareNodesAction, UpdateLibraryAction, UploadActionTypes, UploadFileVersionAction, UploadFilesAction, UploadFolderAction, ViewFileAction, ViewNodeAction, ViewNodeVersionAction, ViewerActionTypes, getAppName, getAppSelection, getCurrentFolder, getCurrentVersion, getCustomCssPath, getCustomWebFontPath, getDocumentDisplayMode, getFileUploadingDialog, getHeaderColor, getHeaderImagePath, getHeaderTextColor, getLogoPath, getNavigationState, getRepositoryStatus, getRuleContext, getSharedUrl, getSideNavState, getUserProfile, infoDrawerMetadataAspect, infoDrawerPreview, isAdmin, isInfoDrawerOpened, isQuickShareEnabled, selectApp, showFacetFilter, showLoaderSelector };
|
|
1327
|
+
//# sourceMappingURL=alfresco-aca-shared-store.mjs.map
|