@alfresco/aca-content 4.0.0-A.2-9984
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 +24 -0
- package/assets/app.extensions.json +2496 -0
- package/assets/i18n/ar.json +634 -0
- package/assets/i18n/cs.json +634 -0
- package/assets/i18n/da.json +634 -0
- package/assets/i18n/de.json +634 -0
- package/assets/i18n/en.json +634 -0
- package/assets/i18n/es.json +634 -0
- package/assets/i18n/fi.json +634 -0
- package/assets/i18n/fr.json +634 -0
- package/assets/i18n/it.json +634 -0
- package/assets/i18n/ja.json +634 -0
- package/assets/i18n/nb.json +634 -0
- package/assets/i18n/nl.json +634 -0
- package/assets/i18n/pl.json +634 -0
- package/assets/i18n/pt-BR.json +634 -0
- package/assets/i18n/ru.json +634 -0
- package/assets/i18n/sv.json +634 -0
- package/assets/i18n/zh-CN.json +634 -0
- package/assets/images/Wallpaper-BG-generic.svg +39 -0
- package/assets/images/adf-move-file-24px.svg +1 -0
- package/assets/images/baseline-library_books-24px.svg +2 -0
- package/assets/images/baseline-lock-24px.svg +1 -0
- package/assets/images/join-library.svg +32 -0
- package/assets/images/mastHead-bg-shapesPattern.svg +53 -0
- package/esm2020/alfresco-aca-content.mjs +5 -0
- package/esm2020/lib/aca-content.module.mjs +364 -0
- package/esm2020/lib/aca-content.routes.mjs +582 -0
- package/esm2020/lib/components/common/common.module.mjs +49 -0
- package/esm2020/lib/components/common/language-picker/language-picker.component.mjs +58 -0
- package/esm2020/lib/components/common/location-link/location-link.component.mjs +178 -0
- package/esm2020/lib/components/common/logout/logout.component.mjs +61 -0
- package/esm2020/lib/components/common/toggle-shared/toggle-shared.component.mjs +66 -0
- package/esm2020/lib/components/context-menu/context-menu-item.component.mjs +59 -0
- package/esm2020/lib/components/context-menu/context-menu-outside-event.directive.mjs +66 -0
- package/esm2020/lib/components/context-menu/context-menu-overlay.mjs +33 -0
- package/esm2020/lib/components/context-menu/context-menu.component.mjs +103 -0
- package/esm2020/lib/components/context-menu/context-menu.module.mjs +77 -0
- package/esm2020/lib/components/context-menu/context-menu.service.mjs +104 -0
- package/esm2020/lib/components/context-menu/direction.token.mjs +30 -0
- package/esm2020/lib/components/context-menu/interfaces.mjs +26 -0
- package/esm2020/lib/components/create-menu/create-menu.component.mjs +74 -0
- package/esm2020/lib/components/create-menu/create-menu.module.mjs +45 -0
- package/esm2020/lib/components/details/details.component.mjs +100 -0
- package/esm2020/lib/components/dl-custom-components/document-list-custom-components.module.mjs +49 -0
- package/esm2020/lib/components/dl-custom-components/name-column/name-column.component.mjs +93 -0
- package/esm2020/lib/components/dl-custom-components/thumbnail-column/thumbnail-column.component.mjs +52 -0
- package/esm2020/lib/components/favorite-libraries/favorite-libraries.component.mjs +114 -0
- package/esm2020/lib/components/favorites/favorites.component.mjs +99 -0
- package/esm2020/lib/components/files/files.component.mjs +312 -0
- package/esm2020/lib/components/header/header.component.mjs +98 -0
- package/esm2020/lib/components/header/header.module.mjs +46 -0
- package/esm2020/lib/components/home/home.component.mjs +50 -0
- package/esm2020/lib/components/info-drawer/comments-tab/comments-tab.component.mjs +57 -0
- package/esm2020/lib/components/info-drawer/info.drawer.module.mjs +93 -0
- package/esm2020/lib/components/info-drawer/library-metadata-tab/library-metadata-form.component.mjs +144 -0
- package/esm2020/lib/components/info-drawer/library-metadata-tab/library-metadata-tab.component.mjs +43 -0
- package/esm2020/lib/components/info-drawer/metadata-tab/metadata-tab.component.mjs +89 -0
- package/esm2020/lib/components/info-drawer/versions-tab/versions-tab.component.mjs +96 -0
- package/esm2020/lib/components/layout/app-layout/app-layout.component.mjs +147 -0
- package/esm2020/lib/components/layout/layout.module.mjs +75 -0
- package/esm2020/lib/components/libraries/libraries.component.mjs +71 -0
- package/esm2020/lib/components/main-action/main-action.component.mjs +60 -0
- package/esm2020/lib/components/main-action/main-action.module.mjs +46 -0
- package/esm2020/lib/components/node-version/node-version-form.component.mjs +71 -0
- package/esm2020/lib/components/node-version/node-version.module.mjs +79 -0
- package/esm2020/lib/components/recent-files/recent-files.component.mjs +82 -0
- package/esm2020/lib/components/search/search-action-menu/search-action-menu.component.mjs +60 -0
- package/esm2020/lib/components/search/search-input/search-input.component.mjs +263 -0
- package/esm2020/lib/components/search/search-input-control/search-input-control.component.mjs +88 -0
- package/esm2020/lib/components/search/search-input.module.mjs +48 -0
- package/esm2020/lib/components/search/search-libraries-results/search-libraries-query-builder.service.mjs +92 -0
- package/esm2020/lib/components/search/search-libraries-results/search-libraries-results.component.mjs +140 -0
- package/esm2020/lib/components/search/search-results/search-results.component.mjs +218 -0
- package/esm2020/lib/components/search/search-results-row/search-results-row.component.mjs +94 -0
- package/esm2020/lib/components/search/search-results.module.mjs +86 -0
- package/esm2020/lib/components/shared-files/shared-files.component.mjs +79 -0
- package/esm2020/lib/components/shared-link-view/shared-link-view.component.mjs +81 -0
- package/esm2020/lib/components/shared-link-view/shared-link-view.module.mjs +66 -0
- package/esm2020/lib/components/sidenav/components/button-menu.component.mjs +58 -0
- package/esm2020/lib/components/sidenav/components/expand-menu.component.mjs +54 -0
- package/esm2020/lib/components/sidenav/directives/action.directive.mjs +75 -0
- package/esm2020/lib/components/sidenav/directives/active-link.directive.mjs +93 -0
- package/esm2020/lib/components/sidenav/directives/expansion-panel.directive.mjs +102 -0
- package/esm2020/lib/components/sidenav/directives/menu-panel.directive.mjs +99 -0
- package/esm2020/lib/components/sidenav/sidenav-wrapper/sidenav-wrapper.component.mjs +45 -0
- package/esm2020/lib/components/sidenav/sidenav.component.mjs +76 -0
- package/esm2020/lib/components/sidenav/sidenav.module.mjs +104 -0
- package/esm2020/lib/components/toolbar/document-display-mode/document-display-mode.component.mjs +85 -0
- package/esm2020/lib/components/toolbar/toggle-edit-offline/toggle-edit-offline.component.mjs +151 -0
- package/esm2020/lib/components/toolbar/toggle-favorite/toggle-favorite.component.mjs +80 -0
- package/esm2020/lib/components/toolbar/toggle-favorite-library/toggle-favorite-library.component.mjs +102 -0
- package/esm2020/lib/components/toolbar/toggle-info-drawer/toggle-info-drawer.component.mjs +76 -0
- package/esm2020/lib/components/toolbar/toggle-join-library/toggle-join-library-button.component.mjs +99 -0
- package/esm2020/lib/components/toolbar/toggle-join-library/toggle-join-library-menu.component.mjs +81 -0
- package/esm2020/lib/components/toolbar/toolbar.module.mjs +89 -0
- package/esm2020/lib/components/toolbar/view-node/view-node.component.mjs +102 -0
- package/esm2020/lib/components/trashcan/trashcan.component.mjs +64 -0
- package/esm2020/lib/components/trashcan/trashcan.module.mjs +71 -0
- package/esm2020/lib/components/upload-files-dialog/upload-files-dialog.component.mjs +34 -0
- package/esm2020/lib/components/view-profile/view-profile.component.mjs +158 -0
- package/esm2020/lib/components/view-profile/view-profile.guard.mjs +31 -0
- package/esm2020/lib/components/view-profile/view-profile.module.mjs +43 -0
- package/esm2020/lib/dialogs/node-template/create-from-template.dialog.mjs +120 -0
- package/esm2020/lib/directives/directives.module.mjs +43 -0
- package/esm2020/lib/directives/document-list.directive.mjs +142 -0
- package/esm2020/lib/extensions/core.extensions.module.mjs +66 -0
- package/esm2020/lib/material.module.mjs +58 -0
- package/esm2020/lib/services/content-management.service.mjs +871 -0
- package/esm2020/lib/services/content-service-extension.service.mjs +47 -0
- package/esm2020/lib/services/content-url.service.mjs +73 -0
- package/esm2020/lib/services/node-actions.service.mjs +601 -0
- package/esm2020/lib/services/node-template.service.mjs +150 -0
- package/esm2020/lib/store/app-store.module.mjs +96 -0
- package/esm2020/lib/store/effects/app.effects.mjs +62 -0
- package/esm2020/lib/store/effects/contextmenu.effects.mjs +56 -0
- package/esm2020/lib/store/effects/download.effects.mjs +160 -0
- package/esm2020/lib/store/effects/favorite.effects.mjs +77 -0
- package/esm2020/lib/store/effects/library.effects.mjs +112 -0
- package/esm2020/lib/store/effects/node.effects.mjs +310 -0
- package/esm2020/lib/store/effects/search.effects.mjs +55 -0
- package/esm2020/lib/store/effects/template.effects.mjs +122 -0
- package/esm2020/lib/store/effects/upload.effects.mjs +169 -0
- package/esm2020/lib/store/effects/viewer.effects.mjs +176 -0
- package/esm2020/lib/store/effects.mjs +36 -0
- package/esm2020/lib/store/initial-state.mjs +66 -0
- package/esm2020/lib/store/reducers/app.reducer.mjs +218 -0
- package/esm2020/public-api.mjs +9 -0
- package/fesm2015/alfresco-aca-content.mjs +9937 -0
- package/fesm2015/alfresco-aca-content.mjs.map +1 -0
- package/fesm2020/alfresco-aca-content.mjs +10103 -0
- package/fesm2020/alfresco-aca-content.mjs.map +1 -0
- package/index.d.ts +5 -0
- package/lib/aca-content.module.d.ts +49 -0
- package/lib/aca-content.routes.d.ts +28 -0
- package/lib/components/common/common.module.d.ts +14 -0
- package/lib/components/common/language-picker/language-picker.component.d.ts +5 -0
- package/lib/components/common/location-link/location-link.component.d.ts +49 -0
- package/lib/components/common/logout/logout.component.d.ts +10 -0
- package/lib/components/common/toggle-shared/toggle-shared.component.d.ts +44 -0
- package/lib/components/context-menu/context-menu-item.component.d.ts +13 -0
- package/lib/components/context-menu/context-menu-outside-event.directive.d.ts +36 -0
- package/lib/components/context-menu/context-menu-overlay.d.ts +30 -0
- package/lib/components/context-menu/context-menu.component.d.ts +49 -0
- package/lib/components/context-menu/context-menu.module.d.ts +18 -0
- package/lib/components/context-menu/context-menu.service.d.ts +44 -0
- package/lib/components/context-menu/direction.token.d.ts +26 -0
- package/lib/components/context-menu/interfaces.d.ts +31 -0
- package/lib/components/create-menu/create-menu.component.d.ts +43 -0
- package/lib/components/create-menu/create-menu.module.d.ts +10 -0
- package/lib/components/details/details.component.d.ts +47 -0
- package/lib/components/dl-custom-components/document-list-custom-components.module.d.ts +13 -0
- package/lib/components/dl-custom-components/name-column/name-column.component.d.ts +43 -0
- package/lib/components/dl-custom-components/thumbnail-column/thumbnail-column.component.d.ts +17 -0
- package/lib/components/favorite-libraries/favorite-libraries.component.d.ts +55 -0
- package/lib/components/favorites/favorites.component.d.ts +50 -0
- package/lib/components/files/files.component.d.ts +80 -0
- package/lib/components/header/header.component.d.ts +59 -0
- package/lib/components/header/header.module.d.ts +11 -0
- package/lib/components/home/home.component.d.ts +37 -0
- package/lib/components/info-drawer/comments-tab/comments-tab.component.d.ts +11 -0
- package/lib/components/info-drawer/info.drawer.module.d.ts +19 -0
- package/lib/components/info-drawer/library-metadata-tab/library-metadata-form.component.d.ts +65 -0
- package/lib/components/info-drawer/library-metadata-tab/library-metadata-tab.component.d.ts +7 -0
- package/lib/components/info-drawer/metadata-tab/metadata-tab.component.d.ts +50 -0
- package/lib/components/info-drawer/versions-tab/versions-tab.component.d.ts +36 -0
- package/lib/components/layout/app-layout/app-layout.component.d.ts +63 -0
- package/lib/components/layout/layout.module.d.ts +16 -0
- package/lib/components/libraries/libraries.component.d.ts +45 -0
- package/lib/components/main-action/main-action.component.d.ts +42 -0
- package/lib/components/main-action/main-action.module.d.ts +11 -0
- package/lib/components/node-version/node-version-form.component.d.ts +47 -0
- package/lib/components/node-version/node-version.module.d.ts +16 -0
- package/lib/components/recent-files/recent-files.component.d.ts +49 -0
- package/lib/components/search/search-action-menu/search-action-menu.component.d.ts +39 -0
- package/lib/components/search/search-input/search-input.component.d.ts +82 -0
- package/lib/components/search/search-input-control/search-input-control.component.d.ts +51 -0
- package/lib/components/search/search-input.module.d.ts +12 -0
- package/lib/components/search/search-libraries-results/search-libraries-query-builder.service.d.ts +57 -0
- package/lib/components/search/search-libraries-results/search-libraries-results.component.d.ts +58 -0
- package/lib/components/search/search-results/search-results.component.d.ts +70 -0
- package/lib/components/search/search-results-row/search-results-row.component.d.ts +49 -0
- package/lib/components/search/search-results.module.d.ts +21 -0
- package/lib/components/shared-files/shared-files.component.d.ts +48 -0
- package/lib/components/shared-link-view/shared-link-view.component.d.ts +48 -0
- package/lib/components/shared-link-view/shared-link-view.module.d.ts +14 -0
- package/lib/components/sidenav/components/button-menu.component.d.ts +38 -0
- package/lib/components/sidenav/components/expand-menu.component.d.ts +36 -0
- package/lib/components/sidenav/directives/action.directive.d.ts +14 -0
- package/lib/components/sidenav/directives/active-link.directive.d.ts +46 -0
- package/lib/components/sidenav/directives/expansion-panel.directive.d.ts +45 -0
- package/lib/components/sidenav/directives/menu-panel.directive.d.ts +43 -0
- package/lib/components/sidenav/sidenav-wrapper/sidenav-wrapper.component.d.ts +12 -0
- package/lib/components/sidenav/sidenav.component.d.ts +44 -0
- package/lib/components/sidenav/sidenav.module.d.ts +21 -0
- package/lib/components/toolbar/document-display-mode/document-display-mode.component.d.ts +13 -0
- package/lib/components/toolbar/toggle-edit-offline/toggle-edit-offline.component.d.ts +48 -0
- package/lib/components/toolbar/toggle-favorite/toggle-favorite.component.d.ts +43 -0
- package/lib/components/toolbar/toggle-favorite-library/toggle-favorite-library.component.d.ts +43 -0
- package/lib/components/toolbar/toggle-info-drawer/toggle-info-drawer.component.d.ts +11 -0
- package/lib/components/toolbar/toggle-join-library/toggle-join-library-button.component.d.ts +42 -0
- package/lib/components/toolbar/toggle-join-library/toggle-join-library-menu.component.d.ts +10 -0
- package/lib/components/toolbar/toolbar.module.d.ts +20 -0
- package/lib/components/toolbar/view-node/view-node.component.d.ts +17 -0
- package/lib/components/trashcan/trashcan.component.d.ts +43 -0
- package/lib/components/trashcan/trashcan.module.d.ts +15 -0
- package/lib/components/upload-files-dialog/upload-files-dialog.component.d.ts +14 -0
- package/lib/components/view-profile/view-profile.component.d.ts +36 -0
- package/lib/components/view-profile/view-profile.guard.d.ts +12 -0
- package/lib/components/view-profile/view-profile.module.d.ts +9 -0
- package/lib/dialogs/node-template/create-from-template.dialog.d.ts +50 -0
- package/lib/directives/directives.module.d.ts +9 -0
- package/lib/directives/document-list.directive.d.ts +57 -0
- package/lib/extensions/core.extensions.module.d.ts +14 -0
- package/lib/material.module.d.ts +14 -0
- package/lib/services/content-management.service.d.ts +101 -0
- package/lib/services/content-service-extension.service.d.ts +11 -0
- package/lib/services/content-url.service.d.ts +17 -0
- package/lib/services/node-actions.service.d.ts +93 -0
- package/lib/services/node-template.service.d.ts +34 -0
- package/lib/store/app-store.module.d.ts +10 -0
- package/lib/store/effects/app.effects.d.ts +42 -0
- package/lib/store/effects/contextmenu.effects.d.ts +12 -0
- package/lib/store/effects/download.effects.d.ts +50 -0
- package/lib/store/effects/favorite.effects.d.ts +39 -0
- package/lib/store/effects/library.effects.d.ts +44 -0
- package/lib/store/effects/node.effects.d.ts +57 -0
- package/lib/store/effects/search.effects.d.ts +35 -0
- package/lib/store/effects/template.effects.d.ts +55 -0
- package/lib/store/effects/upload.effects.d.ts +53 -0
- package/lib/store/effects/viewer.effects.d.ts +56 -0
- package/lib/store/effects.d.ts +35 -0
- package/lib/store/initial-state.d.ts +27 -0
- package/lib/store/reducers/app.reducer.d.ts +27 -0
- package/package.json +34 -0
- package/public-api.d.ts +5 -0
- package/ui/application.scss +49 -0
- package/ui/colors.scss +98 -0
- package/ui/custom-theme.scss +28 -0
- package/ui/dynamic-theme/custom-background-color.scss +16 -0
- package/ui/dynamic-theme/custom-palette-creator.scss +138 -0
- package/ui/dynamic-theme/custom-text-color.scss +8 -0
- package/ui/dynamic-theme/custom-theme-palettes.scss +29 -0
- package/ui/dynamic-theme/custom-theme.scss.tpl +60 -0
- package/ui/dynamic-theme/index.scss +1 -0
- package/ui/dynamic-theme/theme-configuration.scss.tpl +14 -0
- package/ui/dynamic-theme/typography.scss +63 -0
- package/ui/mixins.scss +26 -0
- package/ui/overrides/adf-about.theme.scss +39 -0
- package/ui/overrides/adf-pagination.theme.scss +47 -0
- package/ui/overrides/adf-style-fixes.theme.scss +18 -0
- package/ui/overrides/ay11.scss +204 -0
- package/ui/theme.scss +57 -0
- package/ui/variables/font-family.scss +1 -0
- package/ui/variables/variables.scss +83 -0
package/esm2020/lib/components/toolbar/toggle-join-library/toggle-join-library-button.component.mjs
ADDED
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* @license
|
|
3
|
+
* Alfresco Example Content Application
|
|
4
|
+
*
|
|
5
|
+
* Copyright (C) 2005 - 2020 Alfresco Software Limited
|
|
6
|
+
*
|
|
7
|
+
* This file is part of the Alfresco Example Content Application.
|
|
8
|
+
* If the software was purchased under a paid Alfresco license, the terms of
|
|
9
|
+
* the paid license agreement will prevail. Otherwise, the software is
|
|
10
|
+
* provided under the following open source license terms:
|
|
11
|
+
*
|
|
12
|
+
* The Alfresco Example Content Application is free software: you can redistribute it and/or modify
|
|
13
|
+
* it under the terms of the GNU Lesser General Public License as published by
|
|
14
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
15
|
+
* (at your option) any later version.
|
|
16
|
+
*
|
|
17
|
+
* The Alfresco Example Content Application is distributed in the hope that it will be useful,
|
|
18
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
19
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
20
|
+
* GNU Lesser General Public License for more details.
|
|
21
|
+
*
|
|
22
|
+
* You should have received a copy of the GNU Lesser General Public License
|
|
23
|
+
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
|
24
|
+
*/
|
|
25
|
+
import { SetSelectedNodesAction, SnackbarErrorAction, SnackbarInfoAction, getAppSelection, getUserProfile } from '@alfresco/aca-shared/store';
|
|
26
|
+
import { AppHookService } from '@alfresco/aca-shared';
|
|
27
|
+
import { Component, ViewEncapsulation } from '@angular/core';
|
|
28
|
+
import { Store } from '@ngrx/store';
|
|
29
|
+
import * as i0 from "@angular/core";
|
|
30
|
+
import * as i1 from "@ngrx/store";
|
|
31
|
+
import * as i2 from "@alfresco/aca-shared";
|
|
32
|
+
import * as i3 from "@angular/common";
|
|
33
|
+
import * as i4 from "@angular/material/button";
|
|
34
|
+
import * as i5 from "@angular/material/icon";
|
|
35
|
+
import * as i6 from "@alfresco/adf-content-services";
|
|
36
|
+
import * as i7 from "@ngx-translate/core";
|
|
37
|
+
export class ToggleJoinLibraryButtonComponent {
|
|
38
|
+
constructor(store, appHookService) {
|
|
39
|
+
this.store = store;
|
|
40
|
+
this.appHookService = appHookService;
|
|
41
|
+
this.selection$ = this.store.select(getAppSelection);
|
|
42
|
+
this.profile$ = this.store.select(getUserProfile);
|
|
43
|
+
}
|
|
44
|
+
onToggleEvent(event) {
|
|
45
|
+
this.store.dispatch(new SnackbarInfoAction(event.i18nKey));
|
|
46
|
+
if (event.shouldReload) {
|
|
47
|
+
this.appHookService.libraryJoined.next();
|
|
48
|
+
}
|
|
49
|
+
else {
|
|
50
|
+
if (event.updatedEntry) {
|
|
51
|
+
this.store.dispatch(new SetSelectedNodesAction([{ entry: event.updatedEntry, isLibrary: true }]));
|
|
52
|
+
}
|
|
53
|
+
this.appHookService.joinLibraryToggle.next();
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
onErrorEvent(event) {
|
|
57
|
+
this.store.dispatch(new SnackbarErrorAction(event.i18nKey));
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
ToggleJoinLibraryButtonComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: ToggleJoinLibraryButtonComponent, deps: [{ token: i1.Store }, { token: i2.AppHookService }], target: i0.ɵɵFactoryTarget.Component });
|
|
61
|
+
ToggleJoinLibraryButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.2", type: ToggleJoinLibraryButtonComponent, selector: "app-toggle-join-library-button", host: { classAttribute: "app-toggle-join-library" }, ngImport: i0, template: `
|
|
62
|
+
<button
|
|
63
|
+
mat-icon-button
|
|
64
|
+
color="primary"
|
|
65
|
+
#membership="libraryMembership"
|
|
66
|
+
(toggle)="onToggleEvent($event)"
|
|
67
|
+
(error)="onErrorEvent($event)"
|
|
68
|
+
[adf-library-membership]="(selection$ | async).library"
|
|
69
|
+
[isAdmin]="(profile$ | async).isAdmin"
|
|
70
|
+
[attr.title]="(membership.isJoinRequested | async) ? ('APP.ACTIONS.CANCEL_JOIN' | translate) : ('APP.ACTIONS.JOIN' | translate)"
|
|
71
|
+
>
|
|
72
|
+
<mat-icon *ngIf="membership.isJoinRequested | async">cancel</mat-icon>
|
|
73
|
+
<mat-icon *ngIf="!(membership.isJoinRequested | async)" svgIcon="adf:join_library"></mat-icon>
|
|
74
|
+
</button>
|
|
75
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i4.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "component", type: i5.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "directive", type: i6.LibraryMembershipDirective, selector: "[adf-library-membership]", inputs: ["adf-library-membership", "isAdmin"], outputs: ["toggle", "error"], exportAs: ["libraryMembership"] }, { kind: "pipe", type: i3.AsyncPipe, name: "async" }, { kind: "pipe", type: i7.TranslatePipe, name: "translate" }], encapsulation: i0.ViewEncapsulation.None });
|
|
76
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: ToggleJoinLibraryButtonComponent, decorators: [{
|
|
77
|
+
type: Component,
|
|
78
|
+
args: [{
|
|
79
|
+
selector: 'app-toggle-join-library-button',
|
|
80
|
+
template: `
|
|
81
|
+
<button
|
|
82
|
+
mat-icon-button
|
|
83
|
+
color="primary"
|
|
84
|
+
#membership="libraryMembership"
|
|
85
|
+
(toggle)="onToggleEvent($event)"
|
|
86
|
+
(error)="onErrorEvent($event)"
|
|
87
|
+
[adf-library-membership]="(selection$ | async).library"
|
|
88
|
+
[isAdmin]="(profile$ | async).isAdmin"
|
|
89
|
+
[attr.title]="(membership.isJoinRequested | async) ? ('APP.ACTIONS.CANCEL_JOIN' | translate) : ('APP.ACTIONS.JOIN' | translate)"
|
|
90
|
+
>
|
|
91
|
+
<mat-icon *ngIf="membership.isJoinRequested | async">cancel</mat-icon>
|
|
92
|
+
<mat-icon *ngIf="!(membership.isJoinRequested | async)" svgIcon="adf:join_library"></mat-icon>
|
|
93
|
+
</button>
|
|
94
|
+
`,
|
|
95
|
+
encapsulation: ViewEncapsulation.None,
|
|
96
|
+
host: { class: 'app-toggle-join-library' }
|
|
97
|
+
}]
|
|
98
|
+
}], ctorParameters: function () { return [{ type: i1.Store }, { type: i2.AppHookService }]; } });
|
|
99
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidG9nZ2xlLWpvaW4tbGlicmFyeS1idXR0b24uY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvYWNhLWNvbnRlbnQvc3JjL2xpYi9jb21wb25lbnRzL3Rvb2xiYXIvdG9nZ2xlLWpvaW4tbGlicmFyeS90b2dnbGUtam9pbi1saWJyYXJ5LWJ1dHRvbi5jb21wb25lbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7O0dBdUJHO0FBRUgsT0FBTyxFQUVMLHNCQUFzQixFQUN0QixtQkFBbUIsRUFDbkIsa0JBQWtCLEVBQ2xCLGVBQWUsRUFDZixjQUFjLEVBQ2YsTUFBTSw0QkFBNEIsQ0FBQztBQUNwQyxPQUFPLEVBQUUsY0FBYyxFQUFFLE1BQU0sc0JBQXNCLENBQUM7QUFFdEQsT0FBTyxFQUFFLFNBQVMsRUFBRSxpQkFBaUIsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUM3RCxPQUFPLEVBQUUsS0FBSyxFQUFFLE1BQU0sYUFBYSxDQUFDOzs7Ozs7Ozs7QUF3QnBDLE1BQU0sT0FBTyxnQ0FBZ0M7SUFJM0MsWUFBb0IsS0FBc0IsRUFBVSxjQUE4QjtRQUE5RCxVQUFLLEdBQUwsS0FBSyx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mVsb2FkKSB7XG4gICAgICB0aGlzLmFwcEhvb2tTZXJ2aWNlLmxpYnJhcnlKb2luZWQubmV4dCgpO1xuICAgIH0gZWxzZSB7XG4gICAgICBpZiAoZXZlbnQudXBkYXRlZEVudHJ5KSB7XG4gICAgICAgIHRoaXMuc3RvcmUuZGlzcGF0Y2gobmV3IFNldFNlbGVjdGVkTm9kZXNBY3Rpb24oW3sgZW50cnk6IGV2ZW50LnVwZGF0ZWRFbnRyeSwgaXNMaWJyYXJ5OiB0cnVlIH0gYXMgYW55XSkpO1xuICAgICAgfVxuICAgICAgdGhpcy5hcHBIb29rU2VydmljZS5qb2luTGlicmFyeVRvZ2dsZS5uZXh0KCk7XG4gICAgfVxuICB9XG5cbiAgb25FcnJvckV2ZW50KGV2ZW50OiBMaWJyYXJ5TWVtYmVyc2hpcEVycm9yRXZlbnQpIHtcbiAgICB0aGlzLnN0b3JlLmRpc3BhdGNoKG5ldyBTbmFja2JhckVycm9yQWN0aW9uKGV2ZW50LmkxOG5LZXkpKTtcbiAgfVxufVxuIl19
|
package/esm2020/lib/components/toolbar/toggle-join-library/toggle-join-library-menu.component.mjs
ADDED
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* @license
|
|
3
|
+
* Alfresco Example Content Application
|
|
4
|
+
*
|
|
5
|
+
* Copyright (C) 2005 - 2020 Alfresco Software Limited
|
|
6
|
+
*
|
|
7
|
+
* This file is part of the Alfresco Example Content Application.
|
|
8
|
+
* If the software was purchased under a paid Alfresco license, the terms of
|
|
9
|
+
* the paid license agreement will prevail. Otherwise, the software is
|
|
10
|
+
* provided under the following open source license terms:
|
|
11
|
+
*
|
|
12
|
+
* The Alfresco Example Content Application is free software: you can redistribute it and/or modify
|
|
13
|
+
* it under the terms of the GNU Lesser General Public License as published by
|
|
14
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
15
|
+
* (at your option) any later version.
|
|
16
|
+
*
|
|
17
|
+
* The Alfresco Example Content Application is distributed in the hope that it will be useful,
|
|
18
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
19
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
20
|
+
* GNU Lesser General Public License for more details.
|
|
21
|
+
*
|
|
22
|
+
* You should have received a copy of the GNU Lesser General Public License
|
|
23
|
+
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
|
24
|
+
*/
|
|
25
|
+
import { Component, ViewEncapsulation } from '@angular/core';
|
|
26
|
+
import { Store } from '@ngrx/store';
|
|
27
|
+
import { AppHookService } from '@alfresco/aca-shared';
|
|
28
|
+
import { ToggleJoinLibraryButtonComponent } from './toggle-join-library-button.component';
|
|
29
|
+
import * as i0 from "@angular/core";
|
|
30
|
+
import * as i1 from "@ngrx/store";
|
|
31
|
+
import * as i2 from "@alfresco/aca-shared";
|
|
32
|
+
import * as i3 from "@angular/common";
|
|
33
|
+
import * as i4 from "@angular/material/icon";
|
|
34
|
+
import * as i5 from "@angular/material/menu";
|
|
35
|
+
import * as i6 from "@alfresco/adf-content-services";
|
|
36
|
+
import * as i7 from "@ngx-translate/core";
|
|
37
|
+
export class ToggleJoinLibraryMenuComponent extends ToggleJoinLibraryButtonComponent {
|
|
38
|
+
constructor(store, appHookService) {
|
|
39
|
+
super(store, appHookService);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
ToggleJoinLibraryMenuComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: ToggleJoinLibraryMenuComponent, deps: [{ token: i1.Store }, { token: i2.AppHookService }], target: i0.ɵɵFactoryTarget.Component });
|
|
43
|
+
ToggleJoinLibraryMenuComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.2", type: ToggleJoinLibraryMenuComponent, selector: "app-toggle-join-library-menu", host: { classAttribute: "app-toggle-join-library" }, usesInheritance: true, ngImport: i0, template: `
|
|
44
|
+
<button
|
|
45
|
+
mat-menu-item
|
|
46
|
+
#membership="libraryMembership"
|
|
47
|
+
(toggle)="onToggleEvent($event)"
|
|
48
|
+
(error)="onErrorEvent($event)"
|
|
49
|
+
[adf-library-membership]="(selection$ | async).library"
|
|
50
|
+
[isAdmin]="(profile$ | async).isAdmin"
|
|
51
|
+
[attr.title]="(membership.isJoinRequested | async) ? ('APP.ACTIONS.CANCEL_JOIN' | translate) : ('APP.ACTIONS.JOIN' | translate)"
|
|
52
|
+
>
|
|
53
|
+
<mat-icon *ngIf="membership.isJoinRequested | async">cancel</mat-icon>
|
|
54
|
+
<mat-icon *ngIf="!(membership.isJoinRequested | async)" svgIcon="adf:join_library"></mat-icon>
|
|
55
|
+
<span>{{ (membership.isJoinRequested | async) ? ('APP.ACTIONS.CANCEL_JOIN' | translate) : ('APP.ACTIONS.JOIN' | translate) }}</span>
|
|
56
|
+
</button>
|
|
57
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i4.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: i5.MatMenuItem, selector: "[mat-menu-item]", inputs: ["disabled", "disableRipple", "role"], exportAs: ["matMenuItem"] }, { kind: "directive", type: i6.LibraryMembershipDirective, selector: "[adf-library-membership]", inputs: ["adf-library-membership", "isAdmin"], outputs: ["toggle", "error"], exportAs: ["libraryMembership"] }, { kind: "pipe", type: i3.AsyncPipe, name: "async" }, { kind: "pipe", type: i7.TranslatePipe, name: "translate" }], encapsulation: i0.ViewEncapsulation.None });
|
|
58
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: ToggleJoinLibraryMenuComponent, decorators: [{
|
|
59
|
+
type: Component,
|
|
60
|
+
args: [{
|
|
61
|
+
selector: 'app-toggle-join-library-menu',
|
|
62
|
+
template: `
|
|
63
|
+
<button
|
|
64
|
+
mat-menu-item
|
|
65
|
+
#membership="libraryMembership"
|
|
66
|
+
(toggle)="onToggleEvent($event)"
|
|
67
|
+
(error)="onErrorEvent($event)"
|
|
68
|
+
[adf-library-membership]="(selection$ | async).library"
|
|
69
|
+
[isAdmin]="(profile$ | async).isAdmin"
|
|
70
|
+
[attr.title]="(membership.isJoinRequested | async) ? ('APP.ACTIONS.CANCEL_JOIN' | translate) : ('APP.ACTIONS.JOIN' | translate)"
|
|
71
|
+
>
|
|
72
|
+
<mat-icon *ngIf="membership.isJoinRequested | async">cancel</mat-icon>
|
|
73
|
+
<mat-icon *ngIf="!(membership.isJoinRequested | async)" svgIcon="adf:join_library"></mat-icon>
|
|
74
|
+
<span>{{ (membership.isJoinRequested | async) ? ('APP.ACTIONS.CANCEL_JOIN' | translate) : ('APP.ACTIONS.JOIN' | translate) }}</span>
|
|
75
|
+
</button>
|
|
76
|
+
`,
|
|
77
|
+
encapsulation: ViewEncapsulation.None,
|
|
78
|
+
host: { class: 'app-toggle-join-library' }
|
|
79
|
+
}]
|
|
80
|
+
}], ctorParameters: function () { return [{ type: i1.Store }, { type: i2.AppHookService }]; } });
|
|
81
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidG9nZ2xlLWpvaW4tbGlicmFyeS1tZW51LmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2FjYS1jb250ZW50L3NyYy9saWIvY29tcG9uZW50cy90b29sYmFyL3RvZ2dsZS1qb2luLWxpYnJhcnkvdG9nZ2xlLWpvaW4tbGlicmFyeS1tZW51LmNvbXBvbmVudC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7R0F1Qkc7QUFFSCxPQUFPLEVBQUUsU0FBUy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
5
|
+
* Copyright (C) 2005 - 2020 Alfresco Software Limited
|
|
6
|
+
*
|
|
7
|
+
* This file is part of the Alfresco Example Content Application.
|
|
8
|
+
* If the software was purchased under a paid Alfresco license, the terms of
|
|
9
|
+
* the paid license agreement will prevail. Otherwise, the software is
|
|
10
|
+
* provided under the following open source license terms:
|
|
11
|
+
*
|
|
12
|
+
* The Alfresco Example Content Application is free software: you can redistribute it and/or modify
|
|
13
|
+
* it under the terms of the GNU Lesser General Public License as published by
|
|
14
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
15
|
+
* (at your option) any later version.
|
|
16
|
+
*
|
|
17
|
+
* The Alfresco Example Content Application is distributed in the hope that it will be useful,
|
|
18
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
19
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
20
|
+
* GNU Lesser General Public License for more details.
|
|
21
|
+
*
|
|
22
|
+
* You should have received a copy of the GNU Lesser General Public License
|
|
23
|
+
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
|
24
|
+
*/
|
|
25
|
+
import { NgModule } from '@angular/core';
|
|
26
|
+
import { DocumentDisplayModeComponent } from './document-display-mode/document-display-mode.component';
|
|
27
|
+
import { ToggleFavoriteComponent } from './toggle-favorite/toggle-favorite.component';
|
|
28
|
+
import { ToggleInfoDrawerComponent } from './toggle-info-drawer/toggle-info-drawer.component';
|
|
29
|
+
import { CommonModule } from '@angular/common';
|
|
30
|
+
import { CoreModule } from '@alfresco/adf-core';
|
|
31
|
+
import { ExtensionsModule } from '@alfresco/adf-extensions';
|
|
32
|
+
import { ToggleJoinLibraryButtonComponent } from './toggle-join-library/toggle-join-library-button.component';
|
|
33
|
+
import { ToggleJoinLibraryMenuComponent } from './toggle-join-library/toggle-join-library-menu.component';
|
|
34
|
+
import { DirectivesModule } from '../../directives/directives.module';
|
|
35
|
+
import { ToggleFavoriteLibraryComponent } from './toggle-favorite-library/toggle-favorite-library.component';
|
|
36
|
+
import { ToggleEditOfflineComponent } from './toggle-edit-offline/toggle-edit-offline.component';
|
|
37
|
+
import { ViewNodeComponent } from './view-node/view-node.component';
|
|
38
|
+
import { AppCommonModule } from '../common/common.module';
|
|
39
|
+
import { SharedToolbarModule } from '@alfresco/aca-shared';
|
|
40
|
+
import * as i0 from "@angular/core";
|
|
41
|
+
import * as i1 from "@alfresco/adf-core";
|
|
42
|
+
export class AppToolbarModule {
|
|
43
|
+
}
|
|
44
|
+
AppToolbarModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: AppToolbarModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
45
|
+
AppToolbarModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.1.2", ngImport: i0, type: AppToolbarModule, declarations: [DocumentDisplayModeComponent,
|
|
46
|
+
ToggleFavoriteComponent,
|
|
47
|
+
ToggleInfoDrawerComponent,
|
|
48
|
+
ToggleJoinLibraryButtonComponent,
|
|
49
|
+
ToggleJoinLibraryMenuComponent,
|
|
50
|
+
ToggleFavoriteLibraryComponent,
|
|
51
|
+
ToggleEditOfflineComponent,
|
|
52
|
+
ViewNodeComponent], imports: [CommonModule, i1.CoreModule, AppCommonModule, ExtensionsModule, SharedToolbarModule, DirectivesModule], exports: [DocumentDisplayModeComponent,
|
|
53
|
+
ToggleFavoriteComponent,
|
|
54
|
+
ToggleInfoDrawerComponent,
|
|
55
|
+
ToggleJoinLibraryButtonComponent,
|
|
56
|
+
ToggleJoinLibraryMenuComponent,
|
|
57
|
+
ToggleFavoriteLibraryComponent,
|
|
58
|
+
ToggleEditOfflineComponent,
|
|
59
|
+
ViewNodeComponent,
|
|
60
|
+
SharedToolbarModule] });
|
|
61
|
+
AppToolbarModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: AppToolbarModule, imports: [CommonModule, CoreModule.forChild(), AppCommonModule, ExtensionsModule, SharedToolbarModule, DirectivesModule, SharedToolbarModule] });
|
|
62
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: AppToolbarModule, decorators: [{
|
|
63
|
+
type: NgModule,
|
|
64
|
+
args: [{
|
|
65
|
+
imports: [CommonModule, CoreModule.forChild(), AppCommonModule, ExtensionsModule, SharedToolbarModule, DirectivesModule],
|
|
66
|
+
declarations: [
|
|
67
|
+
DocumentDisplayModeComponent,
|
|
68
|
+
ToggleFavoriteComponent,
|
|
69
|
+
ToggleInfoDrawerComponent,
|
|
70
|
+
ToggleJoinLibraryButtonComponent,
|
|
71
|
+
ToggleJoinLibraryMenuComponent,
|
|
72
|
+
ToggleFavoriteLibraryComponent,
|
|
73
|
+
ToggleEditOfflineComponent,
|
|
74
|
+
ViewNodeComponent
|
|
75
|
+
],
|
|
76
|
+
exports: [
|
|
77
|
+
DocumentDisplayModeComponent,
|
|
78
|
+
ToggleFavoriteComponent,
|
|
79
|
+
ToggleInfoDrawerComponent,
|
|
80
|
+
ToggleJoinLibraryButtonComponent,
|
|
81
|
+
ToggleJoinLibraryMenuComponent,
|
|
82
|
+
ToggleFavoriteLibraryComponent,
|
|
83
|
+
ToggleEditOfflineComponent,
|
|
84
|
+
ViewNodeComponent,
|
|
85
|
+
SharedToolbarModule
|
|
86
|
+
]
|
|
87
|
+
}]
|
|
88
|
+
}] });
|
|
89
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidG9vbGJhci5tb2R1bGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9hY2EtY29udGVudC9zcmMvbGliL2NvbXBvbmVudHMvdG9vbGJhci90b29sYmFyLm1vZHVsZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7Ozs7Ozs7Ozs7Ozs7Ozs7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|
|
5
|
+
* Copyright (C) 2005 - 2020 Alfresco Software Limited
|
|
6
|
+
*
|
|
7
|
+
* This file is part of the Alfresco Example Content Application.
|
|
8
|
+
* If the software was purchased under a paid Alfresco license, the terms of
|
|
9
|
+
* the paid license agreement will prevail. Otherwise, the software is
|
|
10
|
+
* provided under the following open source license terms:
|
|
11
|
+
*
|
|
12
|
+
* The Alfresco Example Content Application is free software: you can redistribute it and/or modify
|
|
13
|
+
* it under the terms of the GNU Lesser General Public License as published by
|
|
14
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
15
|
+
* (at your option) any later version.
|
|
16
|
+
*
|
|
17
|
+
* The Alfresco Example Content Application is distributed in the hope that it will be useful,
|
|
18
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
19
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
20
|
+
* GNU Lesser General Public License for more details.
|
|
21
|
+
*
|
|
22
|
+
* You should have received a copy of the GNU Lesser General Public License
|
|
23
|
+
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
|
24
|
+
*/
|
|
25
|
+
import { Component, ViewEncapsulation, Input } from '@angular/core';
|
|
26
|
+
import { Store } from '@ngrx/store';
|
|
27
|
+
import { ViewNodeAction, getAppSelection } from '@alfresco/aca-shared/store';
|
|
28
|
+
import { Router } from '@angular/router';
|
|
29
|
+
import { take } from 'rxjs/operators';
|
|
30
|
+
import * as i0 from "@angular/core";
|
|
31
|
+
import * as i1 from "@ngrx/store";
|
|
32
|
+
import * as i2 from "@angular/router";
|
|
33
|
+
import * as i3 from "@angular/common";
|
|
34
|
+
import * as i4 from "@angular/material/button";
|
|
35
|
+
import * as i5 from "@angular/material/icon";
|
|
36
|
+
import * as i6 from "@angular/material/menu";
|
|
37
|
+
import * as i7 from "@ngx-translate/core";
|
|
38
|
+
export class ViewNodeComponent {
|
|
39
|
+
constructor(store, router) {
|
|
40
|
+
this.store = store;
|
|
41
|
+
this.router = router;
|
|
42
|
+
}
|
|
43
|
+
onClick() {
|
|
44
|
+
this.store
|
|
45
|
+
.select(getAppSelection)
|
|
46
|
+
.pipe(take(1))
|
|
47
|
+
.subscribe((selection) => {
|
|
48
|
+
let id;
|
|
49
|
+
if (selection.file.entry.nodeType === 'app:filelink') {
|
|
50
|
+
id = selection.file.entry.properties['cm:destination'];
|
|
51
|
+
}
|
|
52
|
+
else {
|
|
53
|
+
id = selection.file.entry.nodeId || selection.file.entry.guid || selection.file.entry.id;
|
|
54
|
+
}
|
|
55
|
+
this.store.dispatch(new ViewNodeAction(id, { location: this.router.url }));
|
|
56
|
+
});
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
ViewNodeComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: ViewNodeComponent, deps: [{ token: i1.Store }, { token: i2.Router }], target: i0.ɵɵFactoryTarget.Component });
|
|
60
|
+
ViewNodeComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.2", type: ViewNodeComponent, selector: "app-view-node", inputs: { data: "data" }, host: { classAttribute: "app-view-node" }, ngImport: i0, template: `
|
|
61
|
+
<button
|
|
62
|
+
*ngIf="data.iconButton"
|
|
63
|
+
mat-icon-button
|
|
64
|
+
[attr.aria-label]="data.title | translate"
|
|
65
|
+
[attr.title]="data.title | translate"
|
|
66
|
+
(click)="onClick()"
|
|
67
|
+
>
|
|
68
|
+
<mat-icon>visibility</mat-icon>
|
|
69
|
+
</button>
|
|
70
|
+
|
|
71
|
+
<button *ngIf="data.menuButton" mat-menu-item (click)="onClick()">
|
|
72
|
+
<mat-icon>visibility</mat-icon>
|
|
73
|
+
<span>{{ data.title | translate }}</span>
|
|
74
|
+
</button>
|
|
75
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i4.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "component", type: i5.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: i6.MatMenuItem, selector: "[mat-menu-item]", inputs: ["disabled", "disableRipple", "role"], exportAs: ["matMenuItem"] }, { kind: "pipe", type: i7.TranslatePipe, name: "translate" }], encapsulation: i0.ViewEncapsulation.None });
|
|
76
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: ViewNodeComponent, decorators: [{
|
|
77
|
+
type: Component,
|
|
78
|
+
args: [{
|
|
79
|
+
selector: 'app-view-node',
|
|
80
|
+
template: `
|
|
81
|
+
<button
|
|
82
|
+
*ngIf="data.iconButton"
|
|
83
|
+
mat-icon-button
|
|
84
|
+
[attr.aria-label]="data.title | translate"
|
|
85
|
+
[attr.title]="data.title | translate"
|
|
86
|
+
(click)="onClick()"
|
|
87
|
+
>
|
|
88
|
+
<mat-icon>visibility</mat-icon>
|
|
89
|
+
</button>
|
|
90
|
+
|
|
91
|
+
<button *ngIf="data.menuButton" mat-menu-item (click)="onClick()">
|
|
92
|
+
<mat-icon>visibility</mat-icon>
|
|
93
|
+
<span>{{ data.title | translate }}</span>
|
|
94
|
+
</button>
|
|
95
|
+
`,
|
|
96
|
+
encapsulation: ViewEncapsulation.None,
|
|
97
|
+
host: { class: 'app-view-node' }
|
|
98
|
+
}]
|
|
99
|
+
}], ctorParameters: function () { return [{ type: i1.Store }, { type: i2.Router }]; }, propDecorators: { data: [{
|
|
100
|
+
type: Input
|
|
101
|
+
}] } });
|
|
102
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmlldy1ub2RlLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb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TGlua0VudHJ5KS5lbnRyeS5ub2RlSWQgfHwgKHNlbGVjdGlvbi5maWxlIGFzIGFueSkuZW50cnkuZ3VpZCB8fCBzZWxlY3Rpb24uZmlsZS5lbnRyeS5pZDtcbiAgICAgICAgfVxuXG4gICAgICAgIHRoaXMuc3RvcmUuZGlzcGF0Y2gobmV3IFZpZXdOb2RlQWN0aW9uKGlkLCB7IGxvY2F0aW9uOiB0aGlzLnJvdXRlci51cmwgfSkpO1xuICAgICAgfSk7XG4gIH1cbn1cbiJdfQ==
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* @license
|
|
3
|
+
* Alfresco Example Content Application
|
|
4
|
+
*
|
|
5
|
+
* Copyright (C) 2005 - 2020 Alfresco Software Limited
|
|
6
|
+
*
|
|
7
|
+
* This file is part of the Alfresco Example Content Application.
|
|
8
|
+
* If the software was purchased under a paid Alfresco license, the terms of
|
|
9
|
+
* the paid license agreement will prevail. Otherwise, the software is
|
|
10
|
+
* provided under the following open source license terms:
|
|
11
|
+
*
|
|
12
|
+
* The Alfresco Example Content Application is free software: you can redistribute it and/or modify
|
|
13
|
+
* it under the terms of the GNU Lesser General Public License as published by
|
|
14
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
15
|
+
* (at your option) any later version.
|
|
16
|
+
*
|
|
17
|
+
* The Alfresco Example Content Application is distributed in the hope that it will be useful,
|
|
18
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
19
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
20
|
+
* GNU Lesser General Public License for more details.
|
|
21
|
+
*
|
|
22
|
+
* You should have received a copy of the GNU Lesser General Public License
|
|
23
|
+
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
|
24
|
+
*/
|
|
25
|
+
import { getUserProfile } from '@alfresco/aca-shared/store';
|
|
26
|
+
import { BreakpointObserver, Breakpoints } from '@angular/cdk/layout';
|
|
27
|
+
import { Component } from '@angular/core';
|
|
28
|
+
import { Store } from '@ngrx/store';
|
|
29
|
+
import { ContentManagementService } from '../../services/content-management.service';
|
|
30
|
+
import { AppExtensionService, PageComponent } from '@alfresco/aca-shared';
|
|
31
|
+
import * as i0 from "@angular/core";
|
|
32
|
+
import * as i1 from "../../services/content-management.service";
|
|
33
|
+
import * as i2 from "@alfresco/aca-shared";
|
|
34
|
+
import * as i3 from "@ngrx/store";
|
|
35
|
+
import * as i4 from "@angular/cdk/layout";
|
|
36
|
+
import * as i5 from "@angular/common";
|
|
37
|
+
import * as i6 from "@alfresco/adf-core";
|
|
38
|
+
import * as i7 from "@alfresco/adf-content-services";
|
|
39
|
+
import * as i8 from "../../directives/document-list.directive";
|
|
40
|
+
import * as i9 from "@alfresco/adf-extensions";
|
|
41
|
+
import * as i10 from "@ngx-translate/core";
|
|
42
|
+
export class TrashcanComponent extends PageComponent {
|
|
43
|
+
constructor(content, extensions, store, breakpointObserver) {
|
|
44
|
+
super(store, extensions, content);
|
|
45
|
+
this.breakpointObserver = breakpointObserver;
|
|
46
|
+
this.isSmallScreen = false;
|
|
47
|
+
this.columns = [];
|
|
48
|
+
this.user$ = this.store.select(getUserProfile);
|
|
49
|
+
}
|
|
50
|
+
ngOnInit() {
|
|
51
|
+
super.ngOnInit();
|
|
52
|
+
this.subscriptions.push(this.breakpointObserver.observe([Breakpoints.HandsetPortrait, Breakpoints.HandsetLandscape]).subscribe((result) => {
|
|
53
|
+
this.isSmallScreen = result.matches;
|
|
54
|
+
}));
|
|
55
|
+
this.columns = this.extensions.documentListPresets.trashcan || [];
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
TrashcanComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: TrashcanComponent, deps: [{ token: i1.ContentManagementService }, { token: i2.AppExtensionService }, { token: i3.Store }, { token: i4.BreakpointObserver }], target: i0.ɵɵFactoryTarget.Component });
|
|
59
|
+
TrashcanComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.2", type: TrashcanComponent, selector: "ng-component", usesInheritance: true, ngImport: i0, template: "<aca-page-layout>\n <aca-page-layout-header>\n <adf-breadcrumb root=\"APP.BROWSE.TRASHCAN.TITLE\"> </adf-breadcrumb>\n\n <adf-toolbar class=\"adf-toolbar--inline\">\n <ng-container *ngFor=\"let entry of actions; trackBy: trackByActionId\">\n <aca-toolbar-action [actionRef]=\"entry\"></aca-toolbar-action>\n </ng-container>\n </adf-toolbar>\n </aca-page-layout-header>\n\n <aca-page-layout-content>\n <div class=\"main-content\">\n <adf-document-list\n #documentList\n acaDocumentList\n acaContextActions\n [display]=\"documentDisplayMode$ | async\"\n currentFolderId=\"-trashcan-\"\n selectionMode=\"multiple\"\n [navigate]=\"false\"\n sortingMode=\"client\"\n [imageResolver]=\"imageResolver\"\n [sorting]=\"['archivedAt', 'desc']\"\n >\n <adf-custom-empty-content-template>\n <adf-empty-content icon=\"delete\" [title]=\"'APP.BROWSE.TRASHCAN.EMPTY_STATE.TITLE'\">\n <p class=\"adf-empty-content__text\">\n {{ 'APP.BROWSE.TRASHCAN.EMPTY_STATE.FIRST_TEXT' | translate }}\n </p>\n <p class=\"adf-empty-content__text\">\n {{ 'APP.BROWSE.TRASHCAN.EMPTY_STATE.SECOND_TEXT' | translate }}\n </p>\n </adf-empty-content>\n </adf-custom-empty-content-template>\n\n <data-columns>\n <ng-container *ngFor=\"let column of columns; trackBy: trackByColumnId\">\n <ng-container *ngIf=\"column.template && !(column.desktopOnly && isSmallScreen)\">\n <data-column\n [key]=\"column.key\"\n [title]=\"column.title\"\n [type]=\"column.type\"\n [format]=\"column.format\"\n [class]=\"column.class\"\n [sortable]=\"column.sortable\"\n >\n <ng-template let-context>\n <adf-dynamic-column [id]=\"column.template\" [context]=\"context\"> </adf-dynamic-column>\n </ng-template>\n </data-column>\n </ng-container>\n\n <ng-container *ngIf=\"!column.template && !(column.desktopOnly && isSmallScreen)\">\n <data-column\n [key]=\"column.key\"\n [title]=\"column.title\"\n [type]=\"column.type\"\n [format]=\"column.format\"\n [class]=\"column.class\"\n [sortable]=\"column.sortable\"\n >\n </data-column>\n </ng-container>\n </ng-container>\n\n <data-column\n *ngIf=\"!isSmallScreen && (user$ | async)?.isAdmin\"\n class=\"adf-ellipsis-cell\"\n key=\"archivedByUser.displayName\"\n title=\"APP.DOCUMENT_LIST.COLUMNS.DELETED_BY\"\n >\n </data-column>\n </data-columns>\n </adf-document-list>\n\n <adf-pagination acaPagination [target]=\"documentList\"> </adf-pagination>\n </div>\n </aca-page-layout-content>\n</aca-page-layout>\n", dependencies: [{ kind: "directive", type: i5.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i5.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i6.PaginationComponent, selector: "adf-pagination", inputs: ["target", "supportedPageSizes", "pagination"], outputs: ["change", "changePageNumber", "changePageSize", "nextPage", "prevPage"] }, { kind: "component", type: i6.ToolbarComponent, selector: "adf-toolbar", inputs: ["title", "color"] }, { kind: "directive", type: i6.CustomEmptyContentTemplateDirective, selector: "adf-custom-empty-content-template, empty-folder-content" }, { kind: "component", type: i6.DataColumnComponent, selector: "data-column", inputs: ["id", "key", "customData", "type", "format", "sortable", "draggable", "isHidden", "title", "formatTooltip", "sr-title", "class", "copyContent", "editable", "focus", "sortingKey"] }, { kind: "component", type: i6.DataColumnListComponent, selector: "data-columns" }, { kind: "component", type: i6.EmptyContentComponent, selector: "adf-empty-content", inputs: ["icon", "title", "subtitle"] }, { kind: "component", type: i7.DocumentListComponent, selector: "adf-document-list", inputs: ["includeFields", "where", "display", "permissionsStyle", "locationFormat", "navigate", "showHeader", "navigationMode", "thumbnails", "selectionMode", "multiselect", "contentActions", "contentActionsPosition", "contextMenuActions", "emptyFolderImageUrl", "allowDropFiles", "sorting", "additionalSorting", "sortingMode", "rowStyle", "rowStyleClass", "loading", "_rowFilter", "rowFilter", "imageResolver", "stickyHeader", "headerFilters", "filterValue", "currentFolderId", "preselectNodes", "node", "maxItems"], outputs: ["nodeClick", "nodeDblClick", "folderChange", "preview", "ready", "error", "nodeSelected", "filterSelection"] }, { kind: "component", type: i7.BreadcrumbComponent, selector: "adf-breadcrumb", inputs: ["folderNode", "root", "rootId", "target", "transform", "maxItems", "readOnly"], outputs: ["navigate"] }, { kind: "directive", type: i8.DocumentListDirective, selector: "[acaDocumentList]" }, { kind: "directive", type: i2.PaginationDirective, selector: "[acaPagination]" }, { kind: "directive", type: i2.ContextActionsDirective, selector: "[acaContextActions]", inputs: ["acaContextEnable"], exportAs: ["acaContextActions"] }, { kind: "component", type: i9.DynamicColumnComponent, selector: "adf-dynamic-column", inputs: ["id", "context"] }, { kind: "component", type: i2.ToolbarActionComponent, selector: "aca-toolbar-action", inputs: ["type", "color", "actionRef"] }, { kind: "component", type: i2.PageLayoutContentComponent, selector: "aca-page-layout-content", inputs: ["scrollable"] }, { kind: "component", type: i2.PageLayoutHeaderComponent, selector: "aca-page-layout-header" }, { kind: "component", type: i2.PageLayoutComponent, selector: "aca-page-layout", inputs: ["hasError"] }, { kind: "pipe", type: i5.AsyncPipe, name: "async" }, { kind: "pipe", type: i10.TranslatePipe, name: "translate" }] });
|
|
60
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: TrashcanComponent, decorators: [{
|
|
61
|
+
type: Component,
|
|
62
|
+
args: [{ template: "<aca-page-layout>\n <aca-page-layout-header>\n <adf-breadcrumb root=\"APP.BROWSE.TRASHCAN.TITLE\"> </adf-breadcrumb>\n\n <adf-toolbar class=\"adf-toolbar--inline\">\n <ng-container *ngFor=\"let entry of actions; trackBy: trackByActionId\">\n <aca-toolbar-action [actionRef]=\"entry\"></aca-toolbar-action>\n </ng-container>\n </adf-toolbar>\n </aca-page-layout-header>\n\n <aca-page-layout-content>\n <div class=\"main-content\">\n <adf-document-list\n #documentList\n acaDocumentList\n acaContextActions\n [display]=\"documentDisplayMode$ | async\"\n currentFolderId=\"-trashcan-\"\n selectionMode=\"multiple\"\n [navigate]=\"false\"\n sortingMode=\"client\"\n [imageResolver]=\"imageResolver\"\n [sorting]=\"['archivedAt', 'desc']\"\n >\n <adf-custom-empty-content-template>\n <adf-empty-content icon=\"delete\" [title]=\"'APP.BROWSE.TRASHCAN.EMPTY_STATE.TITLE'\">\n <p class=\"adf-empty-content__text\">\n {{ 'APP.BROWSE.TRASHCAN.EMPTY_STATE.FIRST_TEXT' | translate }}\n </p>\n <p class=\"adf-empty-content__text\">\n {{ 'APP.BROWSE.TRASHCAN.EMPTY_STATE.SECOND_TEXT' | translate }}\n </p>\n </adf-empty-content>\n </adf-custom-empty-content-template>\n\n <data-columns>\n <ng-container *ngFor=\"let column of columns; trackBy: trackByColumnId\">\n <ng-container *ngIf=\"column.template && !(column.desktopOnly && isSmallScreen)\">\n <data-column\n [key]=\"column.key\"\n [title]=\"column.title\"\n [type]=\"column.type\"\n [format]=\"column.format\"\n [class]=\"column.class\"\n [sortable]=\"column.sortable\"\n >\n <ng-template let-context>\n <adf-dynamic-column [id]=\"column.template\" [context]=\"context\"> </adf-dynamic-column>\n </ng-template>\n </data-column>\n </ng-container>\n\n <ng-container *ngIf=\"!column.template && !(column.desktopOnly && isSmallScreen)\">\n <data-column\n [key]=\"column.key\"\n [title]=\"column.title\"\n [type]=\"column.type\"\n [format]=\"column.format\"\n [class]=\"column.class\"\n [sortable]=\"column.sortable\"\n >\n </data-column>\n </ng-container>\n </ng-container>\n\n <data-column\n *ngIf=\"!isSmallScreen && (user$ | async)?.isAdmin\"\n class=\"adf-ellipsis-cell\"\n key=\"archivedByUser.displayName\"\n title=\"APP.DOCUMENT_LIST.COLUMNS.DELETED_BY\"\n >\n </data-column>\n </data-columns>\n </adf-document-list>\n\n <adf-pagination acaPagination [target]=\"documentList\"> </adf-pagination>\n </div>\n </aca-page-layout-content>\n</aca-page-layout>\n" }]
|
|
63
|
+
}], ctorParameters: function () { return [{ type: i1.ContentManagementService }, { type: i2.AppExtensionService }, { type: i3.Store }, { type: i4.BreakpointObserver }]; } });
|
|
64
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHJhc2hjYW4uY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvYWNhLWNvbnRlbnQvc3JjL2xpYi9jb21wb25lbnRzL3RyYXNoY2FuL3RyYXNoY2FuLmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2FjYS1jb250ZW50L3NyYy9saWIvY29tcG9uZW50cy90cmFzaGNhbi90cmFzaGNhbi5jb21wb25lbnQuaHRtbCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7R0F1Qkc7QUFFSCxPQUFPLEVBQVksY0FBYyxFQUFFLE1BQU0sNEJBQTRCLENBQUM7QUFFdEUsT0FBTyxFQUFFLGtCQUFrQixFQUFFLFdBQVcsRUFBRSxNQUFNLHFCQUFxQixDQUFDO0FBQ3RFLE9BQU8sRUFBRSxTQUFTLEVBQVUsTUFBTSxlQUFlLENBQUM7QUFDbEQsT0FBTyxFQUFFLEtBQUssRUFBRSxNQUFNLGFBQWEsQ0FBQztBQUVwQyxPQUFPLEVBQUUsd0JBQXdCLEVBQUUsTUFBTSwyQ0FBMkMsQ0FBQztBQUNyRixPQUFPLEVBQUUsbUJBQW1CLEVBQUUsYUFBYSxFQUFFLE1BQU0sc0JBQXNCLENBQUM7Ozs7Ozs7Ozs7OztBQUsxRSxNQUFNLE9BQU8saUJBQWtCLFNBQVEsYUFBYTtJQU1sRCxZQUNFLE9BQWlDLEVBQ2pDLFVBQStCLEVBQy9CLEtBQXNCLE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YXJjaGl2ZWRBdCcsICdkZXNjJ11cIlxuICAgICAgPlxuICAgICAgICA8YWRmLWN1c3RvbS1lbXB0eS1jb250ZW50LXRlbXBsYXRlPlxuICAgICAgICAgIDxhZGYtZW1wdHktY29udGVudCBpY29uPVwiZGVsZXRlXCIgW3RpdGxlXT1cIidBUFAuQlJPV1NFLlRSQVNIQ0FOLkVNUFRZX1NUQVRFLlRJVExFJ1wiPlxuICAgICAgICAgICAgPHAgY2xhc3M9XCJhZGYtZW1wdHktY29udGVudF9fdGV4dFwiPlxuICAgICAgICAgICAgICB7eyAnQVBQLkJST1dTRS5UUkFTSENBTi5FTVBUWV9TVEFURS5GSVJTVF9URVhUJyB8IHRyYW5zbGF0ZSB9fVxuICAgICAgICAgICAgPC9wPlxuICAgICAgICAgICAgPHAgY2xhc3M9XCJhZGYtZW1wdHktY29udGVudF9fdGV4dFwiPlxuICAgICAgICAgICAgICB7eyAnQVBQLkJST1dTRS5UUkFTSENBTi5FTVBUWV9TVEFURS5TRUNPTkRfVEVYVCcgfCB0cmFuc2xhdGUgfX1cbiAgICAgICAgICAgIDwvcD5cbiAgICAgICAgICA8L2FkZi1lbXB0eS1jb250ZW50PlxuICAgICAgICA8L2FkZi1jdXN0b20tZW1wdHktY29udGVudC10ZW1wbGF0ZT5cblxuICAgICAgICA8ZGF0YS1jb2x1bW5zPlxuICAgICAgICAgIDxuZy1jb250YWluZXIgKm5nRm9yPVwibGV0IGNvbHVtbiBvZiBjb2x1bW5zOyB0cmFja0J5OiB0cmFja0J5Q29sdW1uSWRcIj5cbiAgICAgICAgICAgIDxuZy1jb250YWluZXIgKm5nSWY9XCJjb2x1bW4udGVtcGxhdGUgJiYgIShjb2x1bW4uZGVza3RvcE9ubHkgJiYgaXNTbWFsbFNjcmVlbilcIj5cbiAgICAgICAgICAgICAgPGRhdGEtY29sdW1uXG4gICAgICAgICAgICAgICAgW2tleV09XCJjb2x1bW4ua2V5XCJcbiAgICAgICAgICAgICAgICBbdGl0bGVdPVwiY29sdW1uLnRpdGxlXCJcbiAgICAgICAgICAgICAgICBbdHlwZV09XCJjb2x1bW4udHlwZVwiXG4gICAgICAgICAgICAgICAgW2Zvcm1hdF09XCJjb2x1bW4uZm9ybWF0XCJcbiAgICAgICAgICAgICAgICBbY2xhc3NdPVwiY29sdW1uLmNsYXNzXCJcbiAgICAgICAgICAgICAgICBbc29ydGFibGVdPVwiY29sdW1uLnNvcnRhYmxlXCJcbiAgICAgICAgICAgICAgPlxuICAgICAgICAgICAgICAgIDxuZy10ZW1wbGF0ZSBsZXQtY29udGV4dD5cbiAgICAgICAgICAgICAgICAgIDxhZGYtZHluYW1pYy1jb2x1bW4gW2lkXT1cImNvbHVtbi50ZW1wbGF0ZVwiIFtjb250ZXh0XT1cImNvbnRleHRcIj4gPC9hZGYtZHluYW1pYy1jb2x1bW4+XG4gICAgICAgICAgICAgICAgPC9uZy10ZW1wbGF0ZT5cbiAgICAgICAgICAgICAgPC9kYXRhLWNvbHVtbj5cbiAgICAgICAgICAgIDwvbmctY29udGFpbmVyPlxuXG4gICAgICAgICAgICA8bmctY29udGFpbmVyICpuZ0lmPVwiIWNvbHVtbi50ZW1wbGF0ZSAmJiAhKGNvbHVtbi5kZXNrdG9wT25seSAmJiBpc1NtYWxsU2NyZWVuKVwiPlxuICAgICAgICAgICAgICA8ZGF0YS1jb2x1bW5cbiAgICAgICAgICAgICAgICBba2V5XT1cImNvbHVtbi5rZXlcIlxuICAgICAgICAgICAgICAgIFt0aXRsZV09XCJjb2x1bW4udGl0bGVcIlxuICAgICAgICAgICAgICAgIFt0eXBlXT1cImNvbHVtbi50eXBlXCJcbiAgICAgICAgICAgICAgICBbZm9ybWF0XT1cImNvbHVtbi5mb3JtYXRcIlxuICAgICAgICAgICAgICAgIFtjbGFzc109XCJjb2x1bW4uY2xhc3NcIlxuICAgICAgICAgICAgICAgIFtzb3J0YWJsZV09XCJjb2x1bW4uc29ydGFibGVcIlxuICAgICAgICAgICAgICA+XG4gICAgICAgICAgICAgIDwvZGF0YS1jb2x1bW4+XG4gICAgICAgICAgICA8L25nLWNvbnRhaW5lcj5cbiAgICAgICAgICA8L25nLWNvbnRhaW5lcj5cblxuICAgICAgICAgIDxkYXRhLWNvbHVtblxuICAgICAgICAgICAgKm5nSWY9XCIhaXNTbWFsbFNjcmVlbiAmJiAodXNlciQgfCBhc3luYyk/LmlzQWRtaW5cIlxuICAgICAgICAgICAgY2xhc3M9XCJhZGYtZWxsaXBzaXMtY2VsbFwiXG4gICAgICAgICAgICBrZXk9XCJhcmNoaXZlZEJ5VXNlci5kaXNwbGF5TmFtZVwiXG4gICAgICAgICAgICB0aXRsZT1cIkFQUC5ET0NVTUVOVF9MSVNULkNPTFVNTlMuREVMRVRFRF9CWVwiXG4gICAgICAgICAgPlxuICAgICAgICAgIDwvZGF0YS1jb2x1bW4+XG4gICAgICAgIDwvZGF0YS1jb2x1bW5zPlxuICAgICAgPC9hZGYtZG9jdW1lbnQtbGlzdD5cblxuICAgICAgPGFkZi1wYWdpbmF0aW9uIGFjYVBhZ2luYXRpb24gW3RhcmdldF09XCJkb2N1bWVudExpc3RcIj4gPC9hZGYtcGFnaW5hdGlvbj5cbiAgICA8L2Rpdj5cbiAgPC9hY2EtcGFnZS1sYXlvdXQtY29udGVudD5cbjwvYWNhLXBhZ2UtbGF5b3V0PlxuIl19
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* @license
|
|
3
|
+
* Alfresco Example Content Application
|
|
4
|
+
*
|
|
5
|
+
* Copyright (C) 2005 - 2020 Alfresco Software Limited
|
|
6
|
+
*
|
|
7
|
+
* This file is part of the Alfresco Example Content Application.
|
|
8
|
+
* If the software was purchased under a paid Alfresco license, the terms of
|
|
9
|
+
* the paid license agreement will prevail. Otherwise, the software is
|
|
10
|
+
* provided under the following open source license terms:
|
|
11
|
+
*
|
|
12
|
+
* The Alfresco Example Content Application is free software: you can redistribute it and/or modify
|
|
13
|
+
* it under the terms of the GNU Lesser General Public License as published by
|
|
14
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
15
|
+
* (at your option) any later version.
|
|
16
|
+
*
|
|
17
|
+
* The Alfresco Example Content Application is distributed in the hope that it will be useful,
|
|
18
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
19
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
20
|
+
* GNU Lesser General Public License for more details.
|
|
21
|
+
*
|
|
22
|
+
* You should have received a copy of the GNU Lesser General Public License
|
|
23
|
+
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
|
24
|
+
*/
|
|
25
|
+
import { NgModule } from '@angular/core';
|
|
26
|
+
import { CommonModule } from '@angular/common';
|
|
27
|
+
import { CoreModule } from '@alfresco/adf-core';
|
|
28
|
+
import { TrashcanComponent } from './trashcan.component';
|
|
29
|
+
import { ContentModule } from '@alfresco/adf-content-services';
|
|
30
|
+
import { AppCommonModule } from '../common/common.module';
|
|
31
|
+
import { AppToolbarModule } from '../toolbar/toolbar.module';
|
|
32
|
+
import { DirectivesModule } from '../../directives/directives.module';
|
|
33
|
+
import { ContextMenuModule } from '../context-menu/context-menu.module';
|
|
34
|
+
import { AppLayoutModule } from '../layout/layout.module';
|
|
35
|
+
import * as i0 from "@angular/core";
|
|
36
|
+
import * as i1 from "@alfresco/adf-core";
|
|
37
|
+
import * as i2 from "@alfresco/adf-content-services";
|
|
38
|
+
export class AppTrashcanModule {
|
|
39
|
+
}
|
|
40
|
+
AppTrashcanModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: AppTrashcanModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
41
|
+
AppTrashcanModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.1.2", ngImport: i0, type: AppTrashcanModule, declarations: [TrashcanComponent], imports: [CommonModule, i1.CoreModule, i2.ContentModule, DirectivesModule,
|
|
42
|
+
AppCommonModule,
|
|
43
|
+
AppToolbarModule,
|
|
44
|
+
ContextMenuModule,
|
|
45
|
+
AppLayoutModule], exports: [TrashcanComponent] });
|
|
46
|
+
AppTrashcanModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: AppTrashcanModule, imports: [CommonModule,
|
|
47
|
+
CoreModule.forChild(),
|
|
48
|
+
ContentModule.forChild(),
|
|
49
|
+
DirectivesModule,
|
|
50
|
+
AppCommonModule,
|
|
51
|
+
AppToolbarModule,
|
|
52
|
+
ContextMenuModule,
|
|
53
|
+
AppLayoutModule] });
|
|
54
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: AppTrashcanModule, decorators: [{
|
|
55
|
+
type: NgModule,
|
|
56
|
+
args: [{
|
|
57
|
+
imports: [
|
|
58
|
+
CommonModule,
|
|
59
|
+
CoreModule.forChild(),
|
|
60
|
+
ContentModule.forChild(),
|
|
61
|
+
DirectivesModule,
|
|
62
|
+
AppCommonModule,
|
|
63
|
+
AppToolbarModule,
|
|
64
|
+
ContextMenuModule,
|
|
65
|
+
AppLayoutModule
|
|
66
|
+
],
|
|
67
|
+
declarations: [TrashcanComponent],
|
|
68
|
+
exports: [TrashcanComponent]
|
|
69
|
+
}]
|
|
70
|
+
}] });
|
|
71
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHJhc2hjYW4ubW9kdWxlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvYWNhLWNvbnRlbnQvc3JjL2xpYi9jb21wb25lbnRzL3RyYXNoY2FuL3RyYXNoY2FuLm1vZHVsZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7R0F1Qkc7QUFFSCxPQUFPLE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