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