@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
|
@@ -0,0 +1,1406 @@
|
|
|
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';
|
|
5
|
+
import { map } from 'rxjs/operators';
|
|
6
|
+
import * as i2$1 from '@angular/material/dialog';
|
|
7
|
+
import * as i3 from '@angular/router';
|
|
8
|
+
import * as i1 from '@ngrx/store';
|
|
9
|
+
import { createSelector } from '@ngrx/store';
|
|
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';
|
|
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
|
+
var AppActionTypes;
|
|
40
|
+
(function (AppActionTypes) {
|
|
41
|
+
AppActionTypes["SetSettingsParameter"] = "SET_SETTINGS_PARAMETER";
|
|
42
|
+
AppActionTypes["SetInitialState"] = "SET_INITIAL_STATE";
|
|
43
|
+
AppActionTypes["SetHeaderColor"] = "SET_HEADER_COLOR";
|
|
44
|
+
AppActionTypes["SetCurrentFolder"] = "SET_CURRENT_FOLDER";
|
|
45
|
+
AppActionTypes["SetCurrentVersion"] = "SET_CURRENT_VERSION";
|
|
46
|
+
AppActionTypes["SetCurrentUrl"] = "SET_CURRENT_URL";
|
|
47
|
+
AppActionTypes["SetUserProfile"] = "SET_USER_PROFILE";
|
|
48
|
+
AppActionTypes["SetRepositoryInfo"] = "SET_REPOSITORY_INFO";
|
|
49
|
+
AppActionTypes["ToggleInfoDrawer"] = "TOGGLE_INFO_DRAWER";
|
|
50
|
+
AppActionTypes["ToggleDocumentDisplayMode"] = "TOGGLE_DOCUMENT_DISPLAY_MODE";
|
|
51
|
+
AppActionTypes["Logout"] = "LOGOUT";
|
|
52
|
+
AppActionTypes["ReloadDocumentList"] = "RELOAD_DOCUMENT_LIST";
|
|
53
|
+
AppActionTypes["ResetSelection"] = "RESET_SELECTION";
|
|
54
|
+
AppActionTypes["SetInfoDrawerState"] = "SET_INFO_DRAWER_STATE";
|
|
55
|
+
AppActionTypes["SetInfoDrawerMetadataAspect"] = "SET_INFO_DRAWER_METADATA_ASPECT";
|
|
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";
|
|
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
|
+
*/
|
|
181
|
+
class SetSettingsParameterAction {
|
|
182
|
+
constructor(payload) {
|
|
183
|
+
this.payload = payload;
|
|
184
|
+
this.type = AppActionTypes.SetSettingsParameter;
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
class SetInitialStateAction {
|
|
188
|
+
constructor(payload) {
|
|
189
|
+
this.payload = payload;
|
|
190
|
+
this.type = AppActionTypes.SetInitialState;
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
class SetHeaderColorAction {
|
|
194
|
+
constructor(color) {
|
|
195
|
+
this.color = color;
|
|
196
|
+
this.type = AppActionTypes.SetHeaderColor;
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
class SetCurrentFolderAction {
|
|
200
|
+
constructor(payload) {
|
|
201
|
+
this.payload = payload;
|
|
202
|
+
this.type = AppActionTypes.SetCurrentFolder;
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
class SetCurrentNodeVersionAction {
|
|
206
|
+
constructor(payload) {
|
|
207
|
+
this.payload = payload;
|
|
208
|
+
this.type = AppActionTypes.SetCurrentVersion;
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
class SetCurrentUrlAction {
|
|
212
|
+
constructor(payload) {
|
|
213
|
+
this.payload = payload;
|
|
214
|
+
this.type = AppActionTypes.SetCurrentUrl;
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
class SetUserProfileAction {
|
|
218
|
+
constructor(payload) {
|
|
219
|
+
this.payload = payload;
|
|
220
|
+
this.type = AppActionTypes.SetUserProfile;
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
class ToggleInfoDrawerAction {
|
|
224
|
+
constructor() {
|
|
225
|
+
this.type = AppActionTypes.ToggleInfoDrawer;
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
class ToggleDocumentDisplayMode {
|
|
229
|
+
constructor() {
|
|
230
|
+
this.type = AppActionTypes.ToggleDocumentDisplayMode;
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
class LogoutAction {
|
|
234
|
+
constructor() {
|
|
235
|
+
this.type = AppActionTypes.Logout;
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
class ReloadDocumentListAction {
|
|
239
|
+
constructor(payload) {
|
|
240
|
+
this.payload = payload;
|
|
241
|
+
this.type = AppActionTypes.ReloadDocumentList;
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
class ResetSelectionAction {
|
|
245
|
+
constructor(payload) {
|
|
246
|
+
this.payload = payload;
|
|
247
|
+
this.type = AppActionTypes.ResetSelection;
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
class SetInfoDrawerStateAction {
|
|
251
|
+
constructor(payload) {
|
|
252
|
+
this.payload = payload;
|
|
253
|
+
this.type = AppActionTypes.SetInfoDrawerState;
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
class CloseModalDialogsAction {
|
|
257
|
+
constructor() {
|
|
258
|
+
this.type = AppActionTypes.CloseModalDialogs;
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
class SetRepositoryInfoAction {
|
|
262
|
+
constructor(payload) {
|
|
263
|
+
this.payload = payload;
|
|
264
|
+
this.type = AppActionTypes.SetRepositoryInfo;
|
|
265
|
+
}
|
|
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
|
+
}
|
|
290
|
+
|
|
291
|
+
/*!
|
|
292
|
+
* @license
|
|
293
|
+
* Alfresco Example Content Application
|
|
294
|
+
*
|
|
295
|
+
* Copyright (C) 2005 - 2020 Alfresco Software Limited
|
|
296
|
+
*
|
|
297
|
+
* This file is part of the Alfresco Example Content Application.
|
|
298
|
+
* If the software was purchased under a paid Alfresco license, the terms of
|
|
299
|
+
* the paid license agreement will prevail. Otherwise, the software is
|
|
300
|
+
* provided under the following open source license terms:
|
|
301
|
+
*
|
|
302
|
+
* The Alfresco Example Content Application is free software: you can redistribute it and/or modify
|
|
303
|
+
* it under the terms of the GNU Lesser General Public License as published by
|
|
304
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
305
|
+
* (at your option) any later version.
|
|
306
|
+
*
|
|
307
|
+
* The Alfresco Example Content Application is distributed in the hope that it will be useful,
|
|
308
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
309
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
310
|
+
* GNU Lesser General Public License for more details.
|
|
311
|
+
*
|
|
312
|
+
* You should have received a copy of the GNU Lesser General Public License
|
|
313
|
+
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
|
314
|
+
*/
|
|
315
|
+
var LibraryActionTypes;
|
|
316
|
+
(function (LibraryActionTypes) {
|
|
317
|
+
LibraryActionTypes["Delete"] = "DELETE_LIBRARY";
|
|
318
|
+
LibraryActionTypes["Create"] = "CREATE_LIBRARY";
|
|
319
|
+
LibraryActionTypes["Navigate"] = "NAVIGATE_LIBRARY";
|
|
320
|
+
LibraryActionTypes["Update"] = "UPDATE_LIBRARY";
|
|
321
|
+
LibraryActionTypes["Leave"] = "LEAVE_LIBRARY";
|
|
322
|
+
})(LibraryActionTypes || (LibraryActionTypes = {}));
|
|
323
|
+
class DeleteLibraryAction {
|
|
324
|
+
constructor(payload) {
|
|
325
|
+
this.payload = payload;
|
|
326
|
+
this.type = LibraryActionTypes.Delete;
|
|
327
|
+
}
|
|
328
|
+
}
|
|
329
|
+
class CreateLibraryAction {
|
|
330
|
+
constructor() {
|
|
331
|
+
this.type = LibraryActionTypes.Create;
|
|
332
|
+
}
|
|
333
|
+
}
|
|
334
|
+
class NavigateLibraryAction {
|
|
335
|
+
constructor(payload, route) {
|
|
336
|
+
this.payload = payload;
|
|
337
|
+
this.route = route;
|
|
338
|
+
this.type = LibraryActionTypes.Navigate;
|
|
339
|
+
}
|
|
340
|
+
}
|
|
341
|
+
class UpdateLibraryAction {
|
|
342
|
+
constructor(payload) {
|
|
343
|
+
this.payload = payload;
|
|
344
|
+
this.type = LibraryActionTypes.Update;
|
|
345
|
+
}
|
|
346
|
+
}
|
|
347
|
+
class LeaveLibraryAction {
|
|
348
|
+
constructor(payload, configuration) {
|
|
349
|
+
this.payload = payload;
|
|
350
|
+
this.configuration = configuration;
|
|
351
|
+
this.type = LibraryActionTypes.Leave;
|
|
352
|
+
}
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
/*!
|
|
356
|
+
* @license
|
|
357
|
+
* Alfresco Example Content Application
|
|
358
|
+
*
|
|
359
|
+
* Copyright (C) 2005 - 2020 Alfresco Software Limited
|
|
360
|
+
*
|
|
361
|
+
* This file is part of the Alfresco Example Content Application.
|
|
362
|
+
* If the software was purchased under a paid Alfresco license, the terms of
|
|
363
|
+
* the paid license agreement will prevail. Otherwise, the software is
|
|
364
|
+
* provided under the following open source license terms:
|
|
365
|
+
*
|
|
366
|
+
* The Alfresco Example Content Application is free software: you can redistribute it and/or modify
|
|
367
|
+
* it under the terms of the GNU Lesser General Public License as published by
|
|
368
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
369
|
+
* (at your option) any later version.
|
|
370
|
+
*
|
|
371
|
+
* The Alfresco Example Content Application is distributed in the hope that it will be useful,
|
|
372
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
373
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
374
|
+
* GNU Lesser General Public License for more details.
|
|
375
|
+
*
|
|
376
|
+
* You should have received a copy of the GNU Lesser General Public License
|
|
377
|
+
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
|
378
|
+
*/
|
|
379
|
+
var NodeActionTypes;
|
|
380
|
+
(function (NodeActionTypes) {
|
|
381
|
+
NodeActionTypes["SetSelection"] = "SET_SELECTED_NODES";
|
|
382
|
+
NodeActionTypes["Delete"] = "DELETE_NODES";
|
|
383
|
+
NodeActionTypes["UndoDelete"] = "UNDO_DELETE_NODES";
|
|
384
|
+
NodeActionTypes["RestoreDeleted"] = "RESTORE_DELETED_NODES";
|
|
385
|
+
NodeActionTypes["PurgeDeleted"] = "PURGE_DELETED_NODES";
|
|
386
|
+
NodeActionTypes["Download"] = "DOWNLOAD_NODES";
|
|
387
|
+
NodeActionTypes["CreateFolder"] = "CREATE_FOLDER";
|
|
388
|
+
NodeActionTypes["EditFolder"] = "EDIT_FOLDER";
|
|
389
|
+
NodeActionTypes["Share"] = "SHARE_NODE";
|
|
390
|
+
NodeActionTypes["Unshare"] = "UNSHARE_NODES";
|
|
391
|
+
NodeActionTypes["Copy"] = "COPY_NODES";
|
|
392
|
+
NodeActionTypes["Move"] = "MOVE_NODES";
|
|
393
|
+
NodeActionTypes["ManagePermissions"] = "MANAGE_PERMISSIONS";
|
|
394
|
+
NodeActionTypes["PrintFile"] = "PRINT_FILE";
|
|
395
|
+
NodeActionTypes["ManageVersions"] = "MANAGE_VERSIONS";
|
|
396
|
+
NodeActionTypes["EditOffline"] = "EDIT_OFFLINE";
|
|
397
|
+
NodeActionTypes["UnlockForWriting"] = "UNLOCK_WRITE_LOCK";
|
|
398
|
+
NodeActionTypes["AddFavorite"] = "ADD_FAVORITE";
|
|
399
|
+
NodeActionTypes["RemoveFavorite"] = "REMOVE_FAVORITE";
|
|
400
|
+
NodeActionTypes["ChangeAspects"] = "ASPECT_LIST";
|
|
401
|
+
NodeActionTypes["ExpandInfoDrawer"] = "EXPAND_INFO_DRAWER";
|
|
402
|
+
NodeActionTypes["ManageRules"] = "MANAGE_RULES";
|
|
403
|
+
})(NodeActionTypes || (NodeActionTypes = {}));
|
|
404
|
+
class SetSelectedNodesAction {
|
|
405
|
+
constructor(payload = []) {
|
|
406
|
+
this.payload = payload;
|
|
407
|
+
this.type = NodeActionTypes.SetSelection;
|
|
408
|
+
}
|
|
409
|
+
}
|
|
410
|
+
class DeleteNodesAction {
|
|
411
|
+
constructor(payload = []) {
|
|
412
|
+
this.payload = payload;
|
|
413
|
+
this.type = NodeActionTypes.Delete;
|
|
414
|
+
}
|
|
415
|
+
}
|
|
416
|
+
class UndoDeleteNodesAction {
|
|
417
|
+
constructor(payload = []) {
|
|
418
|
+
this.payload = payload;
|
|
419
|
+
this.type = NodeActionTypes.UndoDelete;
|
|
420
|
+
}
|
|
421
|
+
}
|
|
422
|
+
class RestoreDeletedNodesAction {
|
|
423
|
+
constructor(payload) {
|
|
424
|
+
this.payload = payload;
|
|
425
|
+
this.type = NodeActionTypes.RestoreDeleted;
|
|
426
|
+
}
|
|
427
|
+
}
|
|
428
|
+
class PurgeDeletedNodesAction {
|
|
429
|
+
constructor(payload) {
|
|
430
|
+
this.payload = payload;
|
|
431
|
+
this.type = NodeActionTypes.PurgeDeleted;
|
|
432
|
+
}
|
|
433
|
+
}
|
|
434
|
+
class DownloadNodesAction {
|
|
435
|
+
constructor(payload = [], configuration) {
|
|
436
|
+
this.payload = payload;
|
|
437
|
+
this.configuration = configuration;
|
|
438
|
+
this.type = NodeActionTypes.Download;
|
|
439
|
+
}
|
|
440
|
+
}
|
|
441
|
+
class CreateFolderAction {
|
|
442
|
+
constructor(payload) {
|
|
443
|
+
this.payload = payload;
|
|
444
|
+
this.type = NodeActionTypes.CreateFolder;
|
|
445
|
+
}
|
|
446
|
+
}
|
|
447
|
+
class EditFolderAction {
|
|
448
|
+
constructor(payload, configuration) {
|
|
449
|
+
this.payload = payload;
|
|
450
|
+
this.configuration = configuration;
|
|
451
|
+
this.type = NodeActionTypes.EditFolder;
|
|
452
|
+
}
|
|
453
|
+
}
|
|
454
|
+
class ShareNodeAction {
|
|
455
|
+
constructor(payload, configuration) {
|
|
456
|
+
this.payload = payload;
|
|
457
|
+
this.configuration = configuration;
|
|
458
|
+
this.type = NodeActionTypes.Share;
|
|
459
|
+
}
|
|
460
|
+
}
|
|
461
|
+
class UnshareNodesAction {
|
|
462
|
+
constructor(payload) {
|
|
463
|
+
this.payload = payload;
|
|
464
|
+
this.type = NodeActionTypes.Unshare;
|
|
465
|
+
}
|
|
466
|
+
}
|
|
467
|
+
class CopyNodesAction {
|
|
468
|
+
constructor(payload, configuration) {
|
|
469
|
+
this.payload = payload;
|
|
470
|
+
this.configuration = configuration;
|
|
471
|
+
this.type = NodeActionTypes.Copy;
|
|
472
|
+
}
|
|
473
|
+
}
|
|
474
|
+
class MoveNodesAction {
|
|
475
|
+
constructor(payload, configuration) {
|
|
476
|
+
this.payload = payload;
|
|
477
|
+
this.configuration = configuration;
|
|
478
|
+
this.type = NodeActionTypes.Move;
|
|
479
|
+
}
|
|
480
|
+
}
|
|
481
|
+
class ManagePermissionsAction {
|
|
482
|
+
constructor(payload) {
|
|
483
|
+
this.payload = payload;
|
|
484
|
+
this.type = NodeActionTypes.ManagePermissions;
|
|
485
|
+
}
|
|
486
|
+
}
|
|
487
|
+
class ExpandInfoDrawerAction {
|
|
488
|
+
constructor(payload) {
|
|
489
|
+
this.payload = payload;
|
|
490
|
+
this.type = NodeActionTypes.ExpandInfoDrawer;
|
|
491
|
+
}
|
|
492
|
+
}
|
|
493
|
+
class PrintFileAction {
|
|
494
|
+
constructor(payload) {
|
|
495
|
+
this.payload = payload;
|
|
496
|
+
this.type = NodeActionTypes.PrintFile;
|
|
497
|
+
}
|
|
498
|
+
}
|
|
499
|
+
class ManageVersionsAction {
|
|
500
|
+
constructor(payload, configuration) {
|
|
501
|
+
this.payload = payload;
|
|
502
|
+
this.configuration = configuration;
|
|
503
|
+
this.type = NodeActionTypes.ManageVersions;
|
|
504
|
+
}
|
|
505
|
+
}
|
|
506
|
+
class EditOfflineAction {
|
|
507
|
+
constructor(payload) {
|
|
508
|
+
this.payload = payload;
|
|
509
|
+
this.type = NodeActionTypes.EditOffline;
|
|
510
|
+
}
|
|
511
|
+
}
|
|
512
|
+
class UnlockWriteAction {
|
|
513
|
+
constructor(payload) {
|
|
514
|
+
this.payload = payload;
|
|
515
|
+
this.type = NodeActionTypes.UnlockForWriting;
|
|
516
|
+
}
|
|
517
|
+
}
|
|
518
|
+
class AddFavoriteAction {
|
|
519
|
+
constructor(payload) {
|
|
520
|
+
this.payload = payload;
|
|
521
|
+
this.type = NodeActionTypes.AddFavorite;
|
|
522
|
+
}
|
|
523
|
+
}
|
|
524
|
+
class RemoveFavoriteAction {
|
|
525
|
+
constructor(payload) {
|
|
526
|
+
this.payload = payload;
|
|
527
|
+
this.type = NodeActionTypes.RemoveFavorite;
|
|
528
|
+
}
|
|
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
|
+
}
|
|
543
|
+
|
|
544
|
+
/*!
|
|
545
|
+
* @license
|
|
546
|
+
* Alfresco Example Content Application
|
|
547
|
+
*
|
|
548
|
+
* Copyright (C) 2005 - 2020 Alfresco Software Limited
|
|
549
|
+
*
|
|
550
|
+
* This file is part of the Alfresco Example Content Application.
|
|
551
|
+
* If the software was purchased under a paid Alfresco license, the terms of
|
|
552
|
+
* the paid license agreement will prevail. Otherwise, the software is
|
|
553
|
+
* provided under the following open source license terms:
|
|
554
|
+
*
|
|
555
|
+
* The Alfresco Example Content Application is free software: you can redistribute it and/or modify
|
|
556
|
+
* it under the terms of the GNU Lesser General Public License as published by
|
|
557
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
558
|
+
* (at your option) any later version.
|
|
559
|
+
*
|
|
560
|
+
* The Alfresco Example Content Application is distributed in the hope that it will be useful,
|
|
561
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
562
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
563
|
+
* GNU Lesser General Public License for more details.
|
|
564
|
+
*
|
|
565
|
+
* You should have received a copy of the GNU Lesser General Public License
|
|
566
|
+
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
|
567
|
+
*/
|
|
568
|
+
class NavigateUrlAction {
|
|
569
|
+
constructor(payload) {
|
|
570
|
+
this.payload = payload;
|
|
571
|
+
this.type = RouterActionTypes.NavigateUrl;
|
|
572
|
+
}
|
|
573
|
+
}
|
|
574
|
+
class NavigateRouteAction {
|
|
575
|
+
constructor(payload) {
|
|
576
|
+
this.payload = payload;
|
|
577
|
+
this.type = RouterActionTypes.NavigateRoute;
|
|
578
|
+
}
|
|
579
|
+
}
|
|
580
|
+
class NavigateToFolder {
|
|
581
|
+
constructor(payload) {
|
|
582
|
+
this.payload = payload;
|
|
583
|
+
this.type = RouterActionTypes.NavigateFolder;
|
|
584
|
+
}
|
|
585
|
+
}
|
|
586
|
+
class NavigateToParentFolder {
|
|
587
|
+
constructor(payload) {
|
|
588
|
+
this.payload = payload;
|
|
589
|
+
this.type = RouterActionTypes.NavigateParentFolder;
|
|
590
|
+
}
|
|
591
|
+
}
|
|
592
|
+
class NavigateToPreviousPage {
|
|
593
|
+
constructor() {
|
|
594
|
+
this.type = RouterActionTypes.NavigateToPreviousPage;
|
|
595
|
+
}
|
|
596
|
+
}
|
|
597
|
+
|
|
598
|
+
/*!
|
|
599
|
+
* @license
|
|
600
|
+
* Alfresco Example Content Application
|
|
601
|
+
*
|
|
602
|
+
* Copyright (C) 2005 - 2020 Alfresco Software Limited
|
|
603
|
+
*
|
|
604
|
+
* This file is part of the Alfresco Example Content Application.
|
|
605
|
+
* If the software was purchased under a paid Alfresco license, the terms of
|
|
606
|
+
* the paid license agreement will prevail. Otherwise, the software is
|
|
607
|
+
* provided under the following open source license terms:
|
|
608
|
+
*
|
|
609
|
+
* The Alfresco Example Content Application is free software: you can redistribute it and/or modify
|
|
610
|
+
* it under the terms of the GNU Lesser General Public License as published by
|
|
611
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
612
|
+
* (at your option) any later version.
|
|
613
|
+
*
|
|
614
|
+
* The Alfresco Example Content Application is distributed in the hope that it will be useful,
|
|
615
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
616
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
617
|
+
* GNU Lesser General Public License for more details.
|
|
618
|
+
*
|
|
619
|
+
* You should have received a copy of the GNU Lesser General Public License
|
|
620
|
+
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
|
621
|
+
*/
|
|
622
|
+
var SearchActionTypes;
|
|
623
|
+
(function (SearchActionTypes) {
|
|
624
|
+
SearchActionTypes["SearchByTerm"] = "SEARCH_BY_TERM";
|
|
625
|
+
})(SearchActionTypes || (SearchActionTypes = {}));
|
|
626
|
+
class SearchByTermAction {
|
|
627
|
+
constructor(payload, searchOptions) {
|
|
628
|
+
this.payload = payload;
|
|
629
|
+
this.searchOptions = searchOptions;
|
|
630
|
+
this.type = SearchActionTypes.SearchByTerm;
|
|
631
|
+
}
|
|
632
|
+
}
|
|
633
|
+
|
|
634
|
+
/*!
|
|
635
|
+
* @license
|
|
636
|
+
* Alfresco Example Content Application
|
|
637
|
+
*
|
|
638
|
+
* Copyright (C) 2005 - 2020 Alfresco Software Limited
|
|
639
|
+
*
|
|
640
|
+
* This file is part of the Alfresco Example Content Application.
|
|
641
|
+
* If the software was purchased under a paid Alfresco license, the terms of
|
|
642
|
+
* the paid license agreement will prevail. Otherwise, the software is
|
|
643
|
+
* provided under the following open source license terms:
|
|
644
|
+
*
|
|
645
|
+
* The Alfresco Example Content Application is free software: you can redistribute it and/or modify
|
|
646
|
+
* it under the terms of the GNU Lesser General Public License as published by
|
|
647
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
648
|
+
* (at your option) any later version.
|
|
649
|
+
*
|
|
650
|
+
* The Alfresco Example Content Application is distributed in the hope that it will be useful,
|
|
651
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
652
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
653
|
+
* GNU Lesser General Public License for more details.
|
|
654
|
+
*
|
|
655
|
+
* You should have received a copy of the GNU Lesser General Public License
|
|
656
|
+
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
|
657
|
+
*/
|
|
658
|
+
var SnackbarActionTypes;
|
|
659
|
+
(function (SnackbarActionTypes) {
|
|
660
|
+
SnackbarActionTypes["Info"] = "SNACKBAR_INFO";
|
|
661
|
+
SnackbarActionTypes["Warning"] = "SNACKBAR_WARNING";
|
|
662
|
+
SnackbarActionTypes["Error"] = "SNACKBAR_ERROR";
|
|
663
|
+
})(SnackbarActionTypes || (SnackbarActionTypes = {}));
|
|
664
|
+
class SnackbarUserAction {
|
|
665
|
+
constructor(title, action) {
|
|
666
|
+
this.title = title;
|
|
667
|
+
this.action = action;
|
|
668
|
+
}
|
|
669
|
+
}
|
|
670
|
+
class SnackbarInfoAction {
|
|
671
|
+
constructor(payload, params) {
|
|
672
|
+
this.payload = payload;
|
|
673
|
+
this.params = params;
|
|
674
|
+
this.type = SnackbarActionTypes.Info;
|
|
675
|
+
}
|
|
676
|
+
}
|
|
677
|
+
class SnackbarWarningAction {
|
|
678
|
+
constructor(payload, params) {
|
|
679
|
+
this.payload = payload;
|
|
680
|
+
this.params = params;
|
|
681
|
+
this.type = SnackbarActionTypes.Warning;
|
|
682
|
+
}
|
|
683
|
+
}
|
|
684
|
+
class SnackbarErrorAction {
|
|
685
|
+
constructor(payload, params) {
|
|
686
|
+
this.payload = payload;
|
|
687
|
+
this.params = params;
|
|
688
|
+
this.type = SnackbarActionTypes.Error;
|
|
689
|
+
}
|
|
690
|
+
}
|
|
691
|
+
|
|
692
|
+
/*!
|
|
693
|
+
* @license
|
|
694
|
+
* Alfresco Example Content Application
|
|
695
|
+
*
|
|
696
|
+
* Copyright (C) 2005 - 2020 Alfresco Software Limited
|
|
697
|
+
*
|
|
698
|
+
* This file is part of the Alfresco Example Content Application.
|
|
699
|
+
* If the software was purchased under a paid Alfresco license, the terms of
|
|
700
|
+
* the paid license agreement will prevail. Otherwise, the software is
|
|
701
|
+
* provided under the following open source license terms:
|
|
702
|
+
*
|
|
703
|
+
* The Alfresco Example Content Application is free software: you can redistribute it and/or modify
|
|
704
|
+
* it under the terms of the GNU Lesser General Public License as published by
|
|
705
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
706
|
+
* (at your option) any later version.
|
|
707
|
+
*
|
|
708
|
+
* The Alfresco Example Content Application is distributed in the hope that it will be useful,
|
|
709
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
710
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
711
|
+
* GNU Lesser General Public License for more details.
|
|
712
|
+
*
|
|
713
|
+
* You should have received a copy of the GNU Lesser General Public License
|
|
714
|
+
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
|
715
|
+
*/
|
|
716
|
+
var UploadActionTypes;
|
|
717
|
+
(function (UploadActionTypes) {
|
|
718
|
+
UploadActionTypes["UploadFiles"] = "UPLOAD_FILES";
|
|
719
|
+
UploadActionTypes["UploadFolder"] = "UPLOAD_FOLDER";
|
|
720
|
+
UploadActionTypes["UploadFileVersion"] = "UPLOAD_FILE_VERSION";
|
|
721
|
+
})(UploadActionTypes || (UploadActionTypes = {}));
|
|
722
|
+
class UploadFilesAction {
|
|
723
|
+
constructor(payload) {
|
|
724
|
+
this.payload = payload;
|
|
725
|
+
this.type = UploadActionTypes.UploadFiles;
|
|
726
|
+
}
|
|
727
|
+
}
|
|
728
|
+
class UploadFolderAction {
|
|
729
|
+
constructor(payload) {
|
|
730
|
+
this.payload = payload;
|
|
731
|
+
this.type = UploadActionTypes.UploadFolder;
|
|
732
|
+
}
|
|
733
|
+
}
|
|
734
|
+
class UploadFileVersionAction {
|
|
735
|
+
constructor(payload, configuration) {
|
|
736
|
+
this.payload = payload;
|
|
737
|
+
this.configuration = configuration;
|
|
738
|
+
this.type = UploadActionTypes.UploadFileVersion;
|
|
739
|
+
}
|
|
740
|
+
}
|
|
741
|
+
|
|
742
|
+
/*!
|
|
743
|
+
* @license
|
|
744
|
+
* Alfresco Example Content Application
|
|
745
|
+
*
|
|
746
|
+
* Copyright (C) 2005 - 2020 Alfresco Software Limited
|
|
747
|
+
*
|
|
748
|
+
* This file is part of the Alfresco Example Content Application.
|
|
749
|
+
* If the software was purchased under a paid Alfresco license, the terms of
|
|
750
|
+
* the paid license agreement will prevail. Otherwise, the software is
|
|
751
|
+
* provided under the following open source license terms:
|
|
752
|
+
*
|
|
753
|
+
* The Alfresco Example Content Application is free software: you can redistribute it and/or modify
|
|
754
|
+
* it under the terms of the GNU Lesser General Public License as published by
|
|
755
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
756
|
+
* (at your option) any later version.
|
|
757
|
+
*
|
|
758
|
+
* The Alfresco Example Content Application is distributed in the hope that it will be useful,
|
|
759
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
760
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
761
|
+
* GNU Lesser General Public License for more details.
|
|
762
|
+
*
|
|
763
|
+
* You should have received a copy of the GNU Lesser General Public License
|
|
764
|
+
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
|
765
|
+
*/
|
|
766
|
+
var ViewerActionTypes;
|
|
767
|
+
(function (ViewerActionTypes) {
|
|
768
|
+
ViewerActionTypes["ViewFile"] = "VIEW_FILE";
|
|
769
|
+
ViewerActionTypes["ViewNode"] = "VIEW_NODE";
|
|
770
|
+
ViewerActionTypes["ViewNodeVersion"] = "VIEW_NODE_VERSION";
|
|
771
|
+
ViewerActionTypes["FullScreen"] = "FULLSCREEN_VIEWER";
|
|
772
|
+
ViewerActionTypes["ClosePreview"] = "CLOSE_PREVIEW";
|
|
773
|
+
ViewerActionTypes["RefreshPreview"] = "REFRESH_PREVIEW";
|
|
774
|
+
ViewerActionTypes["PluginPreview"] = "PLUGIN_PREVIEW";
|
|
775
|
+
})(ViewerActionTypes || (ViewerActionTypes = {}));
|
|
776
|
+
class ViewFileAction {
|
|
777
|
+
constructor(payload, parentId) {
|
|
778
|
+
this.payload = payload;
|
|
779
|
+
this.parentId = parentId;
|
|
780
|
+
this.type = ViewerActionTypes.ViewFile;
|
|
781
|
+
}
|
|
782
|
+
}
|
|
783
|
+
class ViewNodeAction {
|
|
784
|
+
constructor(nodeId, viewNodeExtras) {
|
|
785
|
+
this.nodeId = nodeId;
|
|
786
|
+
this.viewNodeExtras = viewNodeExtras;
|
|
787
|
+
this.type = ViewerActionTypes.ViewNode;
|
|
788
|
+
}
|
|
789
|
+
}
|
|
790
|
+
class ViewNodeVersionAction {
|
|
791
|
+
constructor(nodeId, versionId, viewNodeExtras) {
|
|
792
|
+
this.nodeId = nodeId;
|
|
793
|
+
this.versionId = versionId;
|
|
794
|
+
this.viewNodeExtras = viewNodeExtras;
|
|
795
|
+
this.type = ViewerActionTypes.ViewNodeVersion;
|
|
796
|
+
}
|
|
797
|
+
}
|
|
798
|
+
class FullscreenViewerAction {
|
|
799
|
+
constructor(payload) {
|
|
800
|
+
this.payload = payload;
|
|
801
|
+
this.type = ViewerActionTypes.FullScreen;
|
|
802
|
+
}
|
|
803
|
+
}
|
|
804
|
+
class ClosePreviewAction {
|
|
805
|
+
constructor(payload) {
|
|
806
|
+
this.payload = payload;
|
|
807
|
+
this.type = ViewerActionTypes.ClosePreview;
|
|
808
|
+
}
|
|
809
|
+
}
|
|
810
|
+
class RefreshPreviewAction {
|
|
811
|
+
constructor(payload) {
|
|
812
|
+
this.payload = payload;
|
|
813
|
+
this.type = ViewerActionTypes.RefreshPreview;
|
|
814
|
+
}
|
|
815
|
+
}
|
|
816
|
+
class PluginPreviewAction {
|
|
817
|
+
constructor(pluginRoute, nodeId) {
|
|
818
|
+
this.pluginRoute = pluginRoute;
|
|
819
|
+
this.nodeId = nodeId;
|
|
820
|
+
this.type = ViewerActionTypes.PluginPreview;
|
|
821
|
+
}
|
|
822
|
+
}
|
|
823
|
+
|
|
824
|
+
/*!
|
|
825
|
+
* @license
|
|
826
|
+
* Alfresco Example Content Application
|
|
827
|
+
*
|
|
828
|
+
* Copyright (C) 2005 - 2020 Alfresco Software Limited
|
|
829
|
+
*
|
|
830
|
+
* This file is part of the Alfresco Example Content Application.
|
|
831
|
+
* If the software was purchased under a paid Alfresco license, the terms of
|
|
832
|
+
* the paid license agreement will prevail. Otherwise, the software is
|
|
833
|
+
* provided under the following open source license terms:
|
|
834
|
+
*
|
|
835
|
+
* The Alfresco Example Content Application is free software: you can redistribute it and/or modify
|
|
836
|
+
* it under the terms of the GNU Lesser General Public License as published by
|
|
837
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
838
|
+
* (at your option) any later version.
|
|
839
|
+
*
|
|
840
|
+
* The Alfresco Example Content Application is distributed in the hope that it will be useful,
|
|
841
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
842
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
843
|
+
* GNU Lesser General Public License for more details.
|
|
844
|
+
*
|
|
845
|
+
* You should have received a copy of the GNU Lesser General Public License
|
|
846
|
+
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
|
847
|
+
*/
|
|
848
|
+
const SET_INFO_DRAWER_METADATA_ASPECT = 'SET_INFO_DRAWER_METADATA_ASPECT';
|
|
849
|
+
class SetInfoDrawerMetadataAspectAction {
|
|
850
|
+
constructor(payload) {
|
|
851
|
+
this.payload = payload;
|
|
852
|
+
this.type = SET_INFO_DRAWER_METADATA_ASPECT;
|
|
853
|
+
}
|
|
854
|
+
}
|
|
855
|
+
|
|
856
|
+
/*!
|
|
857
|
+
* @license
|
|
858
|
+
* Alfresco Example Content Application
|
|
859
|
+
*
|
|
860
|
+
* Copyright (C) 2005 - 2020 Alfresco Software Limited
|
|
861
|
+
*
|
|
862
|
+
* This file is part of the Alfresco Example Content Application.
|
|
863
|
+
* If the software was purchased under a paid Alfresco license, the terms of
|
|
864
|
+
* the paid license agreement will prevail. Otherwise, the software is
|
|
865
|
+
* provided under the following open source license terms:
|
|
866
|
+
*
|
|
867
|
+
* The Alfresco Example Content Application is free software: you can redistribute it and/or modify
|
|
868
|
+
* it under the terms of the GNU Lesser General Public License as published by
|
|
869
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
870
|
+
* (at your option) any later version.
|
|
871
|
+
*
|
|
872
|
+
* The Alfresco Example Content Application is distributed in the hope that it will be useful,
|
|
873
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
874
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
875
|
+
* GNU Lesser General Public License for more details.
|
|
876
|
+
*
|
|
877
|
+
* You should have received a copy of the GNU Lesser General Public License
|
|
878
|
+
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
|
879
|
+
*/
|
|
880
|
+
class FileFromTemplate {
|
|
881
|
+
constructor() {
|
|
882
|
+
this.type = TemplateActionTypes.FileFromTemplate;
|
|
883
|
+
}
|
|
884
|
+
}
|
|
885
|
+
class FolderFromTemplate {
|
|
886
|
+
constructor() {
|
|
887
|
+
this.type = TemplateActionTypes.FolderFromTemplate;
|
|
888
|
+
}
|
|
889
|
+
}
|
|
890
|
+
class CreateFromTemplate {
|
|
891
|
+
constructor(payload) {
|
|
892
|
+
this.payload = payload;
|
|
893
|
+
this.type = TemplateActionTypes.CreateFromTemplate;
|
|
894
|
+
}
|
|
895
|
+
}
|
|
896
|
+
class CreateFromTemplateSuccess {
|
|
897
|
+
constructor(node) {
|
|
898
|
+
this.node = node;
|
|
899
|
+
this.type = TemplateActionTypes.CreateFromTemplateSuccess;
|
|
900
|
+
}
|
|
901
|
+
}
|
|
902
|
+
|
|
903
|
+
/*!
|
|
904
|
+
* @license
|
|
905
|
+
* Alfresco Example Content Application
|
|
906
|
+
*
|
|
907
|
+
* Copyright (C) 2005 - 2020 Alfresco Software Limited
|
|
908
|
+
*
|
|
909
|
+
* This file is part of the Alfresco Example Content Application.
|
|
910
|
+
* If the software was purchased under a paid Alfresco license, the terms of
|
|
911
|
+
* the paid license agreement will prevail. Otherwise, the software is
|
|
912
|
+
* provided under the following open source license terms:
|
|
913
|
+
*
|
|
914
|
+
* The Alfresco Example Content Application is free software: you can redistribute it and/or modify
|
|
915
|
+
* it under the terms of the GNU Lesser General Public License as published by
|
|
916
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
917
|
+
* (at your option) any later version.
|
|
918
|
+
*
|
|
919
|
+
* The Alfresco Example Content Application is distributed in the hope that it will be useful,
|
|
920
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
921
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
922
|
+
* GNU Lesser General Public License for more details.
|
|
923
|
+
*
|
|
924
|
+
* You should have received a copy of the GNU Lesser General Public License
|
|
925
|
+
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
|
926
|
+
*/
|
|
927
|
+
class ContextMenu {
|
|
928
|
+
constructor(event) {
|
|
929
|
+
this.event = event;
|
|
930
|
+
this.type = ContextMenuActionTypes.ContextMenu;
|
|
931
|
+
}
|
|
932
|
+
}
|
|
933
|
+
|
|
934
|
+
/*!
|
|
935
|
+
* @license
|
|
936
|
+
* Alfresco Example Content Application
|
|
937
|
+
*
|
|
938
|
+
* Copyright (C) 2005 - 2020 Alfresco Software Limited
|
|
939
|
+
*
|
|
940
|
+
* This file is part of the Alfresco Example Content Application.
|
|
941
|
+
* If the software was purchased under a paid Alfresco license, the terms of
|
|
942
|
+
* the paid license agreement will prevail. Otherwise, the software is
|
|
943
|
+
* provided under the following open source license terms:
|
|
944
|
+
*
|
|
945
|
+
* The Alfresco Example Content Application is free software: you can redistribute it and/or modify
|
|
946
|
+
* it under the terms of the GNU Lesser General Public License as published by
|
|
947
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
948
|
+
* (at your option) any later version.
|
|
949
|
+
*
|
|
950
|
+
* The Alfresco Example Content Application is distributed in the hope that it will be useful,
|
|
951
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
952
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
953
|
+
* GNU Lesser General Public License for more details.
|
|
954
|
+
*
|
|
955
|
+
* You should have received a copy of the GNU Lesser General Public License
|
|
956
|
+
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
|
957
|
+
*/
|
|
958
|
+
class DialogEffects {
|
|
959
|
+
constructor(actions$, matDialog) {
|
|
960
|
+
this.actions$ = actions$;
|
|
961
|
+
this.matDialog = matDialog;
|
|
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 }]; } });
|
|
970
|
+
|
|
971
|
+
/*!
|
|
972
|
+
* @license
|
|
973
|
+
* Alfresco Example Content Application
|
|
974
|
+
*
|
|
975
|
+
* Copyright (C) 2005 - 2020 Alfresco Software Limited
|
|
976
|
+
*
|
|
977
|
+
* This file is part of the Alfresco Example Content Application.
|
|
978
|
+
* If the software was purchased under a paid Alfresco license, the terms of
|
|
979
|
+
* the paid license agreement will prevail. Otherwise, the software is
|
|
980
|
+
* provided under the following open source license terms:
|
|
981
|
+
*
|
|
982
|
+
* The Alfresco Example Content Application is free software: you can redistribute it and/or modify
|
|
983
|
+
* it under the terms of the GNU Lesser General Public License as published by
|
|
984
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
985
|
+
* (at your option) any later version.
|
|
986
|
+
*
|
|
987
|
+
* The Alfresco Example Content Application is distributed in the hope that it will be useful,
|
|
988
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
989
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
990
|
+
* GNU Lesser General Public License for more details.
|
|
991
|
+
*
|
|
992
|
+
* You should have received a copy of the GNU Lesser General Public License
|
|
993
|
+
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
|
994
|
+
*/
|
|
995
|
+
class RouterEffects {
|
|
996
|
+
constructor(store, actions$, router, location) {
|
|
997
|
+
this.store = store;
|
|
998
|
+
this.actions$ = actions$;
|
|
999
|
+
this.router = router;
|
|
1000
|
+
this.location = location;
|
|
1001
|
+
this.navigateUrl$ = createEffect(() => this.actions$.pipe(ofType(RouterActionTypes.NavigateUrl), map((action) => {
|
|
1002
|
+
if (action.payload) {
|
|
1003
|
+
this.router.navigateByUrl(action.payload);
|
|
1004
|
+
}
|
|
1005
|
+
})), { dispatch: false });
|
|
1006
|
+
this.navigateRoute$ = createEffect(() => this.actions$.pipe(ofType(RouterActionTypes.NavigateRoute), map((action) => {
|
|
1007
|
+
this.router.navigate(action.payload);
|
|
1008
|
+
})), { dispatch: false });
|
|
1009
|
+
this.navigateToFolder$ = createEffect(() => this.actions$.pipe(ofType(RouterActionTypes.NavigateFolder), map((action) => {
|
|
1010
|
+
if (action.payload && action.payload.entry) {
|
|
1011
|
+
this.navigateToFolder(action.payload.entry);
|
|
1012
|
+
}
|
|
1013
|
+
})), { dispatch: false });
|
|
1014
|
+
this.navigateToParentFolder$ = createEffect(() => this.actions$.pipe(ofType(RouterActionTypes.NavigateParentFolder), map((action) => {
|
|
1015
|
+
if (action.payload && action.payload.entry) {
|
|
1016
|
+
this.navigateToParentFolder(action.payload.entry);
|
|
1017
|
+
}
|
|
1018
|
+
})), { dispatch: false });
|
|
1019
|
+
this.navigateToPreviousPage$ = createEffect(() => this.actions$.pipe(ofType(RouterActionTypes.NavigateToPreviousPage), map(() => this.location.back())), { dispatch: false });
|
|
1020
|
+
}
|
|
1021
|
+
navigateToFolder(node) {
|
|
1022
|
+
let link = null;
|
|
1023
|
+
const { path, id } = node;
|
|
1024
|
+
if (path && path.name && path.elements) {
|
|
1025
|
+
const isLibraryPath = this.isLibraryContent(path);
|
|
1026
|
+
const parent = path.elements[path.elements.length - 1];
|
|
1027
|
+
const area = isLibraryPath ? '/libraries' : '/personal-files';
|
|
1028
|
+
if (!isLibraryPath) {
|
|
1029
|
+
link = [area, id];
|
|
1030
|
+
}
|
|
1031
|
+
else {
|
|
1032
|
+
// parent.id could be 'Site' folder or child as 'documentLibrary'
|
|
1033
|
+
link = [area, parent.name === 'Sites' ? {} : id];
|
|
1034
|
+
}
|
|
1035
|
+
setTimeout(() => {
|
|
1036
|
+
this.router.navigate(link);
|
|
1037
|
+
}, 10);
|
|
1038
|
+
}
|
|
1039
|
+
else {
|
|
1040
|
+
this.router.navigate(['/personal-files', node.id]);
|
|
1041
|
+
}
|
|
1042
|
+
}
|
|
1043
|
+
navigateToParentFolder(node) {
|
|
1044
|
+
let link = null;
|
|
1045
|
+
const { path } = node;
|
|
1046
|
+
if (path && path.name && path.elements) {
|
|
1047
|
+
const isLibraryPath = this.isLibraryContent(path);
|
|
1048
|
+
const parent = path.elements[path.elements.length - 1];
|
|
1049
|
+
const area = isLibraryPath ? '/libraries' : '/personal-files';
|
|
1050
|
+
if (!isLibraryPath) {
|
|
1051
|
+
link = [area, parent.id];
|
|
1052
|
+
}
|
|
1053
|
+
else {
|
|
1054
|
+
// parent.id could be 'Site' folder or child as 'documentLibrary'
|
|
1055
|
+
link = [area, parent.name === 'Sites' ? {} : parent.id];
|
|
1056
|
+
}
|
|
1057
|
+
setTimeout(() => {
|
|
1058
|
+
this.router.navigate(link);
|
|
1059
|
+
}, 10);
|
|
1060
|
+
}
|
|
1061
|
+
else {
|
|
1062
|
+
this.store.dispatch(new SnackbarErrorAction('APP.MESSAGES.ERRORS.CANNOT_NAVIGATE_LOCATION'));
|
|
1063
|
+
}
|
|
1064
|
+
}
|
|
1065
|
+
isLibraryContent(path) {
|
|
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 }]; } });
|
|
1074
|
+
|
|
1075
|
+
/*!
|
|
1076
|
+
* @license
|
|
1077
|
+
* Alfresco Example Content Application
|
|
1078
|
+
*
|
|
1079
|
+
* Copyright (C) 2005 - 2020 Alfresco Software Limited
|
|
1080
|
+
*
|
|
1081
|
+
* This file is part of the Alfresco Example Content Application.
|
|
1082
|
+
* If the software was purchased under a paid Alfresco license, the terms of
|
|
1083
|
+
* the paid license agreement will prevail. Otherwise, the software is
|
|
1084
|
+
* provided under the following open source license terms:
|
|
1085
|
+
*
|
|
1086
|
+
* The Alfresco Example Content Application is free software: you can redistribute it and/or modify
|
|
1087
|
+
* it under the terms of the GNU Lesser General Public License as published by
|
|
1088
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
1089
|
+
* (at your option) any later version.
|
|
1090
|
+
*
|
|
1091
|
+
* The Alfresco Example Content Application is distributed in the hope that it will be useful,
|
|
1092
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
1093
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
1094
|
+
* GNU Lesser General Public License for more details.
|
|
1095
|
+
*
|
|
1096
|
+
* You should have received a copy of the GNU Lesser General Public License
|
|
1097
|
+
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
|
1098
|
+
*/
|
|
1099
|
+
class SnackbarEffects {
|
|
1100
|
+
constructor(store, actions$, snackBar, translationService) {
|
|
1101
|
+
this.store = store;
|
|
1102
|
+
this.actions$ = actions$;
|
|
1103
|
+
this.snackBar = snackBar;
|
|
1104
|
+
this.translationService = translationService;
|
|
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 });
|
|
1114
|
+
}
|
|
1115
|
+
showSnackBar(action, panelClass) {
|
|
1116
|
+
const message = this.translate(action.payload, action.params);
|
|
1117
|
+
let actionName = null;
|
|
1118
|
+
if (action.userAction) {
|
|
1119
|
+
actionName = this.translate(action.userAction.title);
|
|
1120
|
+
}
|
|
1121
|
+
const snackBarRef = this.snackBar.openFromComponent(SnackbarContentComponent, {
|
|
1122
|
+
...(action.duration !== undefined && action.duration !== null && { duration: action.duration }),
|
|
1123
|
+
panelClass,
|
|
1124
|
+
data: {
|
|
1125
|
+
message,
|
|
1126
|
+
actionLabel: actionName,
|
|
1127
|
+
actionIcon: 'close',
|
|
1128
|
+
actionIconAriaLabel: 'CLOSE',
|
|
1129
|
+
showAction: true,
|
|
1130
|
+
callActionOnIconClick: false
|
|
1131
|
+
}
|
|
1132
|
+
});
|
|
1133
|
+
if (action.userAction) {
|
|
1134
|
+
snackBarRef.onAction().subscribe(() => {
|
|
1135
|
+
this.store.dispatch(action.userAction.action);
|
|
1136
|
+
});
|
|
1137
|
+
}
|
|
1138
|
+
}
|
|
1139
|
+
translate(message, params) {
|
|
1140
|
+
return this.translationService.instant(message, params);
|
|
1141
|
+
}
|
|
1142
|
+
}
|
|
1143
|
+
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 });
|
|
1144
|
+
SnackbarEffects.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: SnackbarEffects });
|
|
1145
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: SnackbarEffects, decorators: [{
|
|
1146
|
+
type: Injectable
|
|
1147
|
+
}], ctorParameters: function () { return [{ type: i1.Store }, { type: i2.Actions }, { type: i3$1.MatSnackBar }, { type: i4$1.TranslationService }]; } });
|
|
1148
|
+
|
|
1149
|
+
/*!
|
|
1150
|
+
* @license
|
|
1151
|
+
* Alfresco Example Content Application
|
|
1152
|
+
*
|
|
1153
|
+
* Copyright (C) 2005 - 2020 Alfresco Software Limited
|
|
1154
|
+
*
|
|
1155
|
+
* This file is part of the Alfresco Example Content Application.
|
|
1156
|
+
* If the software was purchased under a paid Alfresco license, the terms of
|
|
1157
|
+
* the paid license agreement will prevail. Otherwise, the software is
|
|
1158
|
+
* provided under the following open source license terms:
|
|
1159
|
+
*
|
|
1160
|
+
* The Alfresco Example Content Application is free software: you can redistribute it and/or modify
|
|
1161
|
+
* it under the terms of the GNU Lesser General Public License as published by
|
|
1162
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
1163
|
+
* (at your option) any later version.
|
|
1164
|
+
*
|
|
1165
|
+
* The Alfresco Example Content Application is distributed in the hope that it will be useful,
|
|
1166
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
1167
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
1168
|
+
* GNU Lesser General Public License for more details.
|
|
1169
|
+
*
|
|
1170
|
+
* You should have received a copy of the GNU Lesser General Public License
|
|
1171
|
+
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
|
1172
|
+
*/
|
|
1173
|
+
|
|
1174
|
+
/*!
|
|
1175
|
+
* @license
|
|
1176
|
+
* Alfresco Example Content Application
|
|
1177
|
+
*
|
|
1178
|
+
* Copyright (C) 2005 - 2020 Alfresco Software Limited
|
|
1179
|
+
*
|
|
1180
|
+
* This file is part of the Alfresco Example Content Application.
|
|
1181
|
+
* If the software was purchased under a paid Alfresco license, the terms of
|
|
1182
|
+
* the paid license agreement will prevail. Otherwise, the software is
|
|
1183
|
+
* provided under the following open source license terms:
|
|
1184
|
+
*
|
|
1185
|
+
* The Alfresco Example Content Application is free software: you can redistribute it and/or modify
|
|
1186
|
+
* it under the terms of the GNU Lesser General Public License as published by
|
|
1187
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
1188
|
+
* (at your option) any later version.
|
|
1189
|
+
*
|
|
1190
|
+
* The Alfresco Example Content Application is distributed in the hope that it will be useful,
|
|
1191
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
1192
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
1193
|
+
* GNU Lesser General Public License for more details.
|
|
1194
|
+
*
|
|
1195
|
+
* You should have received a copy of the GNU Lesser General Public License
|
|
1196
|
+
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
|
1197
|
+
*/
|
|
1198
|
+
|
|
1199
|
+
/*!
|
|
1200
|
+
* @license
|
|
1201
|
+
* Alfresco Example Content Application
|
|
1202
|
+
*
|
|
1203
|
+
* Copyright (C) 2005 - 2020 Alfresco Software Limited
|
|
1204
|
+
*
|
|
1205
|
+
* This file is part of the Alfresco Example Content Application.
|
|
1206
|
+
* If the software was purchased under a paid Alfresco license, the terms of
|
|
1207
|
+
* the paid license agreement will prevail. Otherwise, the software is
|
|
1208
|
+
* provided under the following open source license terms:
|
|
1209
|
+
*
|
|
1210
|
+
* The Alfresco Example Content Application is free software: you can redistribute it and/or modify
|
|
1211
|
+
* it under the terms of the GNU Lesser General Public License as published by
|
|
1212
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
1213
|
+
* (at your option) any later version.
|
|
1214
|
+
*
|
|
1215
|
+
* The Alfresco Example Content Application is distributed in the hope that it will be useful,
|
|
1216
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
1217
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
1218
|
+
* GNU Lesser General Public License for more details.
|
|
1219
|
+
*
|
|
1220
|
+
* You should have received a copy of the GNU Lesser General Public License
|
|
1221
|
+
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
|
1222
|
+
*/
|
|
1223
|
+
|
|
1224
|
+
/*!
|
|
1225
|
+
* @license
|
|
1226
|
+
* Alfresco Example Content Application
|
|
1227
|
+
*
|
|
1228
|
+
* Copyright (C) 2005 - 2020 Alfresco Software Limited
|
|
1229
|
+
*
|
|
1230
|
+
* This file is part of the Alfresco Example Content Application.
|
|
1231
|
+
* If the software was purchased under a paid Alfresco license, the terms of
|
|
1232
|
+
* the paid license agreement will prevail. Otherwise, the software is
|
|
1233
|
+
* provided under the following open source license terms:
|
|
1234
|
+
*
|
|
1235
|
+
* The Alfresco Example Content Application is free software: you can redistribute it and/or modify
|
|
1236
|
+
* it under the terms of the GNU Lesser General Public License as published by
|
|
1237
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
1238
|
+
* (at your option) any later version.
|
|
1239
|
+
*
|
|
1240
|
+
* The Alfresco Example Content Application is distributed in the hope that it will be useful,
|
|
1241
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
1242
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
1243
|
+
* GNU Lesser General Public License for more details.
|
|
1244
|
+
*
|
|
1245
|
+
* You should have received a copy of the GNU Lesser General Public License
|
|
1246
|
+
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
|
1247
|
+
*/
|
|
1248
|
+
var SearchOptionIds;
|
|
1249
|
+
(function (SearchOptionIds) {
|
|
1250
|
+
SearchOptionIds["Files"] = "content";
|
|
1251
|
+
SearchOptionIds["Folders"] = "folder";
|
|
1252
|
+
SearchOptionIds["Libraries"] = "libraries";
|
|
1253
|
+
})(SearchOptionIds || (SearchOptionIds = {}));
|
|
1254
|
+
|
|
1255
|
+
/*!
|
|
1256
|
+
* @license
|
|
1257
|
+
* Alfresco Example Content Application
|
|
1258
|
+
*
|
|
1259
|
+
* Copyright (C) 2005 - 2020 Alfresco Software Limited
|
|
1260
|
+
*
|
|
1261
|
+
* This file is part of the Alfresco Example Content Application.
|
|
1262
|
+
* If the software was purchased under a paid Alfresco license, the terms of
|
|
1263
|
+
* the paid license agreement will prevail. Otherwise, the software is
|
|
1264
|
+
* provided under the following open source license terms:
|
|
1265
|
+
*
|
|
1266
|
+
* The Alfresco Example Content Application is free software: you can redistribute it and/or modify
|
|
1267
|
+
* it under the terms of the GNU Lesser General Public License as published by
|
|
1268
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
1269
|
+
* (at your option) any later version.
|
|
1270
|
+
*
|
|
1271
|
+
* The Alfresco Example Content Application is distributed in the hope that it will be useful,
|
|
1272
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
1273
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
1274
|
+
* GNU Lesser General Public License for more details.
|
|
1275
|
+
*
|
|
1276
|
+
* You should have received a copy of the GNU Lesser General Public License
|
|
1277
|
+
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
|
1278
|
+
*/
|
|
1279
|
+
const selectApp = (state) => state.app;
|
|
1280
|
+
const getHeaderColor = createSelector(selectApp, (state) => state.headerColor);
|
|
1281
|
+
const getHeaderTextColor = createSelector(selectApp, (state) => state.headerTextColor);
|
|
1282
|
+
const getAppName = createSelector(selectApp, (state) => state.appName);
|
|
1283
|
+
const getLogoPath = createSelector(selectApp, (state) => state.logoPath);
|
|
1284
|
+
const getCustomCssPath = createSelector(selectApp, (state) => state.customCssPath);
|
|
1285
|
+
const getCustomWebFontPath = createSelector(selectApp, (state) => state.webFontPath);
|
|
1286
|
+
const getHeaderImagePath = createSelector(selectApp, (state) => state.headerImagePath);
|
|
1287
|
+
const getUserProfile = createSelector(selectApp, (state) => state.user);
|
|
1288
|
+
const getCurrentFolder = createSelector(selectApp, (state) => state.navigation.currentFolder);
|
|
1289
|
+
const getCurrentVersion = createSelector(selectApp, (state) => state.currentNodeVersion);
|
|
1290
|
+
const getAppSelection = createSelector(selectApp, (state) => state.selection);
|
|
1291
|
+
const getSharedUrl = createSelector(selectApp, (state) => state.sharedUrl);
|
|
1292
|
+
const getNavigationState = createSelector(selectApp, (state) => state.navigation);
|
|
1293
|
+
const isInfoDrawerOpened = createSelector(selectApp, (state) => state.infoDrawerOpened);
|
|
1294
|
+
const infoDrawerPreview = createSelector(selectApp, (state) => state.infoDrawerPreview);
|
|
1295
|
+
const showFacetFilter = createSelector(selectApp, (state) => state.showFacetFilter);
|
|
1296
|
+
const getDocumentDisplayMode = createSelector(selectApp, (state) => state.documentDisplayMode);
|
|
1297
|
+
const getRepositoryStatus = createSelector(selectApp, (state) => state.repository);
|
|
1298
|
+
const isQuickShareEnabled = createSelector(getRepositoryStatus, (info) => info.status.isQuickShareEnabled);
|
|
1299
|
+
const isAdmin = createSelector(selectApp, (state) => state.user.isAdmin);
|
|
1300
|
+
const getFileUploadingDialog = createSelector(selectApp, (state) => state.fileUploadingDialog);
|
|
1301
|
+
const showLoaderSelector = createSelector(selectApp, (state) => state.showLoader);
|
|
1302
|
+
const getSideNavState = createSelector(getAppSelection, getNavigationState, (selection, navigation) => ({
|
|
1303
|
+
selection,
|
|
1304
|
+
navigation
|
|
1305
|
+
}));
|
|
1306
|
+
const getRuleContext = createSelector(getAppSelection, getNavigationState, getUserProfile, getRepositoryStatus, (selection, navigation, profile, repository) => ({
|
|
1307
|
+
selection,
|
|
1308
|
+
navigation,
|
|
1309
|
+
profile,
|
|
1310
|
+
repository
|
|
1311
|
+
}));
|
|
1312
|
+
const infoDrawerMetadataAspect = createSelector(selectApp, (state) => state.infoDrawerMetadataAspect);
|
|
1313
|
+
|
|
1314
|
+
/*!
|
|
1315
|
+
* @license
|
|
1316
|
+
* Alfresco Example Content Application
|
|
1317
|
+
*
|
|
1318
|
+
* Copyright (C) 2005 - 2020 Alfresco Software Limited
|
|
1319
|
+
*
|
|
1320
|
+
* This file is part of the Alfresco Example Content Application.
|
|
1321
|
+
* If the software was purchased under a paid Alfresco license, the terms of
|
|
1322
|
+
* the paid license agreement will prevail. Otherwise, the software is
|
|
1323
|
+
* provided under the following open source license terms:
|
|
1324
|
+
*
|
|
1325
|
+
* The Alfresco Example Content Application is free software: you can redistribute it and/or modify
|
|
1326
|
+
* it under the terms of the GNU Lesser General Public License as published by
|
|
1327
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
1328
|
+
* (at your option) any later version.
|
|
1329
|
+
*
|
|
1330
|
+
* The Alfresco Example Content Application is distributed in the hope that it will be useful,
|
|
1331
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
1332
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
1333
|
+
* GNU Lesser General Public License for more details.
|
|
1334
|
+
*
|
|
1335
|
+
* You should have received a copy of the GNU Lesser General Public License
|
|
1336
|
+
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
|
1337
|
+
*/
|
|
1338
|
+
const STORE_INITIAL_APP_DATA = new InjectionToken('STORE_INITIAL_APP_DATA');
|
|
1339
|
+
|
|
1340
|
+
/*!
|
|
1341
|
+
* @license
|
|
1342
|
+
* Alfresco Example Content Application
|
|
1343
|
+
*
|
|
1344
|
+
* Copyright (C) 2005 - 2020 Alfresco Software Limited
|
|
1345
|
+
*
|
|
1346
|
+
* This file is part of the Alfresco Example Content Application.
|
|
1347
|
+
* If the software was purchased under a paid Alfresco license, the terms of
|
|
1348
|
+
* the paid license agreement will prevail. Otherwise, the software is
|
|
1349
|
+
* provided under the following open source license terms:
|
|
1350
|
+
*
|
|
1351
|
+
* The Alfresco Example Content Application is free software: you can redistribute it and/or modify
|
|
1352
|
+
* it under the terms of the GNU Lesser General Public License as published by
|
|
1353
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
1354
|
+
* (at your option) any later version.
|
|
1355
|
+
*
|
|
1356
|
+
* The Alfresco Example Content Application is distributed in the hope that it will be useful,
|
|
1357
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
1358
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
1359
|
+
* GNU Lesser General Public License for more details.
|
|
1360
|
+
*
|
|
1361
|
+
* You should have received a copy of the GNU Lesser General Public License
|
|
1362
|
+
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
|
1363
|
+
*/
|
|
1364
|
+
class SharedStoreModule {
|
|
1365
|
+
}
|
|
1366
|
+
SharedStoreModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: SharedStoreModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1367
|
+
SharedStoreModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.1.2", ngImport: i0, type: SharedStoreModule, imports: [i2.EffectsFeatureModule] });
|
|
1368
|
+
SharedStoreModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: SharedStoreModule, imports: [EffectsModule.forFeature([SnackbarEffects, DialogEffects, RouterEffects])] });
|
|
1369
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: SharedStoreModule, decorators: [{
|
|
1370
|
+
type: NgModule,
|
|
1371
|
+
args: [{
|
|
1372
|
+
imports: [EffectsModule.forFeature([SnackbarEffects, DialogEffects, RouterEffects])]
|
|
1373
|
+
}]
|
|
1374
|
+
}] });
|
|
1375
|
+
|
|
1376
|
+
/*!
|
|
1377
|
+
* @license
|
|
1378
|
+
* Alfresco Example Content Application
|
|
1379
|
+
*
|
|
1380
|
+
* Copyright (C) 2005 - 2020 Alfresco Software Limited
|
|
1381
|
+
*
|
|
1382
|
+
* This file is part of the Alfresco Example Content Application.
|
|
1383
|
+
* If the software was purchased under a paid Alfresco license, the terms of
|
|
1384
|
+
* the paid license agreement will prevail. Otherwise, the software is
|
|
1385
|
+
* provided under the following open source license terms:
|
|
1386
|
+
*
|
|
1387
|
+
* The Alfresco Example Content Application is free software: you can redistribute it and/or modify
|
|
1388
|
+
* it under the terms of the GNU Lesser General Public License as published by
|
|
1389
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
1390
|
+
* (at your option) any later version.
|
|
1391
|
+
*
|
|
1392
|
+
* The Alfresco Example Content Application is distributed in the hope that it will be useful,
|
|
1393
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
1394
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
1395
|
+
* GNU Lesser General Public License for more details.
|
|
1396
|
+
*
|
|
1397
|
+
* You should have received a copy of the GNU Lesser General Public License
|
|
1398
|
+
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
|
1399
|
+
*/
|
|
1400
|
+
|
|
1401
|
+
/**
|
|
1402
|
+
* Generated bundle index. Do not edit.
|
|
1403
|
+
*/
|
|
1404
|
+
|
|
1405
|
+
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 };
|
|
1406
|
+
//# sourceMappingURL=alfresco-aca-shared-store.mjs.map
|