@alfresco/aca-content 4.0.0-4895233349
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/about/about.component.d.ts +45 -0
- package/about/aca-about.module.d.ts +39 -0
- package/about/dev-mode.tokens.d.ts +25 -0
- package/about/index.d.ts +5 -0
- package/about/package-json.token.d.ts +25 -0
- package/about/public-api.d.ts +27 -0
- package/assets/app.extensions.json +2626 -0
- package/assets/i18n/ar.json +660 -0
- package/assets/i18n/cs.json +660 -0
- package/assets/i18n/da.json +660 -0
- package/assets/i18n/de.json +660 -0
- package/assets/i18n/en.json +660 -0
- package/assets/i18n/es.json +660 -0
- package/assets/i18n/fi.json +660 -0
- package/assets/i18n/fr.json +660 -0
- package/assets/i18n/it.json +660 -0
- package/assets/i18n/ja.json +660 -0
- package/assets/i18n/nb.json +660 -0
- package/assets/i18n/nl.json +660 -0
- package/assets/i18n/pl.json +660 -0
- package/assets/i18n/pt-BR.json +660 -0
- package/assets/i18n/ru.json +660 -0
- package/assets/i18n/sv.json +660 -0
- package/assets/i18n/zh-CN.json +660 -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/esm2020/about/about.component.mjs +77 -0
- package/esm2020/about/aca-about.module.mjs +67 -0
- package/esm2020/about/alfresco-aca-content-about.mjs +5 -0
- package/esm2020/about/dev-mode.tokens.mjs +26 -0
- package/esm2020/about/package-json.token.mjs +26 -0
- package/esm2020/about/public-api.mjs +28 -0
- package/esm2020/alfresco-aca-content.mjs +5 -0
- package/esm2020/lib/aca-content.module.mjs +365 -0
- package/esm2020/lib/aca-content.routes.mjs +581 -0
- package/esm2020/lib/components/common/common.module.mjs +67 -0
- package/esm2020/lib/components/common/language-picker/language-picker.component.mjs +57 -0
- package/esm2020/lib/components/common/location-link/location-link.component.mjs +177 -0
- package/esm2020/lib/components/common/logout/logout.component.mjs +60 -0
- package/esm2020/lib/components/common/toggle-shared/toggle-shared.component.mjs +65 -0
- package/esm2020/lib/components/common/user-info/user-info.component.mjs +86 -0
- package/esm2020/lib/components/context-menu/context-menu-item.component.mjs +58 -0
- package/esm2020/lib/components/context-menu/context-menu-outside-event.directive.mjs +65 -0
- package/esm2020/lib/components/context-menu/context-menu-overlay.mjs +32 -0
- package/esm2020/lib/components/context-menu/context-menu.component.mjs +102 -0
- package/esm2020/lib/components/context-menu/context-menu.module.mjs +76 -0
- package/esm2020/lib/components/context-menu/context-menu.service.mjs +103 -0
- package/esm2020/lib/components/context-menu/direction.token.mjs +29 -0
- package/esm2020/lib/components/context-menu/interfaces.mjs +25 -0
- package/esm2020/lib/components/create-menu/create-menu.component.mjs +73 -0
- package/esm2020/lib/components/create-menu/create-menu.module.mjs +44 -0
- package/esm2020/lib/components/details/details.component.mjs +99 -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 +90 -0
- package/esm2020/lib/components/dl-custom-components/tags-column/tags-column.component.mjs +31 -0
- package/esm2020/lib/components/dl-custom-components/thumbnail-column/thumbnail-column.component.mjs +51 -0
- package/esm2020/lib/components/favorite-libraries/favorite-libraries.component.mjs +113 -0
- package/esm2020/lib/components/favorites/favorites.component.mjs +98 -0
- package/esm2020/lib/components/files/files.component.mjs +312 -0
- package/esm2020/lib/components/home/home.component.mjs +49 -0
- package/esm2020/lib/components/info-drawer/comments-tab/comments-tab.component.mjs +56 -0
- package/esm2020/lib/components/info-drawer/info.drawer.module.mjs +92 -0
- package/esm2020/lib/components/info-drawer/library-metadata-tab/library-metadata-form.component.mjs +143 -0
- package/esm2020/lib/components/info-drawer/library-metadata-tab/library-metadata-tab.component.mjs +42 -0
- package/esm2020/lib/components/info-drawer/metadata-tab/metadata-tab.component.mjs +88 -0
- package/esm2020/lib/components/info-drawer/versions-tab/versions-tab.component.mjs +95 -0
- package/esm2020/lib/components/libraries/libraries.component.mjs +70 -0
- package/esm2020/lib/components/node-version/node-version-form.component.mjs +70 -0
- package/esm2020/lib/components/node-version/node-version.module.mjs +78 -0
- package/esm2020/lib/components/recent-files/recent-files.component.mjs +81 -0
- package/esm2020/lib/components/search/search-action-menu/search-action-menu.component.mjs +59 -0
- package/esm2020/lib/components/search/search-input/search-input.component.mjs +275 -0
- package/esm2020/lib/components/search/search-input-control/search-input-control.component.mjs +87 -0
- package/esm2020/lib/components/search/search-input.module.mjs +47 -0
- package/esm2020/lib/components/search/search-libraries-results/search-libraries-query-builder.service.mjs +91 -0
- package/esm2020/lib/components/search/search-libraries-results/search-libraries-results.component.mjs +142 -0
- package/esm2020/lib/components/search/search-navigation.service.mjs +60 -0
- package/esm2020/lib/components/search/search-results/search-results.component.mjs +221 -0
- package/esm2020/lib/components/search/search-results-row/search-results-row.component.mjs +101 -0
- package/esm2020/lib/components/search/search-results.module.mjs +88 -0
- package/esm2020/lib/components/shared-files/shared-files.component.mjs +78 -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 +69 -0
- package/esm2020/lib/components/sidenav/components/button-menu.component.mjs +57 -0
- package/esm2020/lib/components/sidenav/components/expand-menu.component.mjs +53 -0
- package/esm2020/lib/components/sidenav/components/sidenav-header.component.mjs +74 -0
- package/esm2020/lib/components/sidenav/directives/action.directive.mjs +74 -0
- package/esm2020/lib/components/sidenav/directives/active-link.directive.mjs +92 -0
- package/esm2020/lib/components/sidenav/directives/expansion-panel.directive.mjs +101 -0
- package/esm2020/lib/components/sidenav/directives/menu-panel.directive.mjs +98 -0
- package/esm2020/lib/components/sidenav/sidenav.component.mjs +83 -0
- package/esm2020/lib/components/sidenav/sidenav.module.mjs +84 -0
- package/esm2020/lib/components/toolbar/document-display-mode/document-display-mode.component.mjs +84 -0
- package/esm2020/lib/components/toolbar/toggle-edit-offline/toggle-edit-offline.component.mjs +150 -0
- package/esm2020/lib/components/toolbar/toggle-favorite/toggle-favorite.component.mjs +79 -0
- package/esm2020/lib/components/toolbar/toggle-favorite-library/toggle-favorite-library.component.mjs +101 -0
- package/esm2020/lib/components/toolbar/toggle-info-drawer/toggle-info-drawer.component.mjs +75 -0
- package/esm2020/lib/components/toolbar/toggle-join-library/toggle-join-library-button.component.mjs +98 -0
- package/esm2020/lib/components/toolbar/toggle-join-library/toggle-join-library-menu.component.mjs +80 -0
- package/esm2020/lib/components/toolbar/toolbar.module.mjs +88 -0
- package/esm2020/lib/components/toolbar/view-node/view-node.component.mjs +109 -0
- package/esm2020/lib/components/trashcan/trashcan.component.mjs +63 -0
- package/esm2020/lib/components/trashcan/trashcan.module.mjs +74 -0
- package/esm2020/lib/components/upload-files-dialog/upload-files-dialog.component.mjs +50 -0
- package/esm2020/lib/components/view-profile/view-profile.component.mjs +174 -0
- package/esm2020/lib/components/view-profile/view-profile.guard.mjs +47 -0
- package/esm2020/lib/components/view-profile/view-profile.module.mjs +42 -0
- package/esm2020/lib/dialogs/node-template/create-from-template.dialog.mjs +119 -0
- package/esm2020/lib/directives/directives.module.mjs +42 -0
- package/esm2020/lib/directives/document-list.directive.mjs +141 -0
- package/esm2020/lib/extensions/core.extensions.module.mjs +64 -0
- package/esm2020/lib/material.module.mjs +57 -0
- package/esm2020/lib/services/content-management.service.mjs +870 -0
- package/esm2020/lib/services/content-service-extension.service.mjs +63 -0
- package/esm2020/lib/services/content-url.service.mjs +72 -0
- package/esm2020/lib/services/node-actions.service.mjs +600 -0
- package/esm2020/lib/services/node-template.service.mjs +149 -0
- package/esm2020/lib/store/app-store.module.mjs +95 -0
- package/esm2020/lib/store/effects/app.effects.mjs +61 -0
- package/esm2020/lib/store/effects/contextmenu.effects.mjs +55 -0
- package/esm2020/lib/store/effects/download.effects.mjs +159 -0
- package/esm2020/lib/store/effects/favorite.effects.mjs +76 -0
- package/esm2020/lib/store/effects/library.effects.mjs +111 -0
- package/esm2020/lib/store/effects/node.effects.mjs +309 -0
- package/esm2020/lib/store/effects/search.effects.mjs +60 -0
- package/esm2020/lib/store/effects/template.effects.mjs +121 -0
- package/esm2020/lib/store/effects/upload.effects.mjs +169 -0
- package/esm2020/lib/store/effects/viewer.effects.mjs +175 -0
- package/esm2020/lib/store/effects.mjs +35 -0
- package/esm2020/lib/store/initial-state.mjs +62 -0
- package/esm2020/lib/store/reducers/app.reducer.mjs +211 -0
- package/esm2020/public-api.mjs +32 -0
- package/fesm2015/alfresco-aca-content-about.mjs +216 -0
- package/fesm2015/alfresco-aca-content-about.mjs.map +1 -0
- package/fesm2015/alfresco-aca-content.mjs +9771 -0
- package/fesm2015/alfresco-aca-content.mjs.map +1 -0
- package/fesm2020/alfresco-aca-content-about.mjs +214 -0
- package/fesm2020/alfresco-aca-content-about.mjs.map +1 -0
- package/fesm2020/alfresco-aca-content.mjs +9915 -0
- package/fesm2020/alfresco-aca-content.mjs.map +1 -0
- package/index.d.ts +5 -0
- package/lib/aca-content.module.d.ts +47 -0
- package/lib/aca-content.routes.d.ts +27 -0
- package/lib/components/common/common.module.d.ts +17 -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 +48 -0
- package/lib/components/common/logout/logout.component.d.ts +10 -0
- package/lib/components/common/toggle-shared/toggle-shared.component.d.ts +43 -0
- package/lib/components/common/user-info/user-info.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 +35 -0
- package/lib/components/context-menu/context-menu-overlay.d.ts +29 -0
- package/lib/components/context-menu/context-menu.component.d.ts +48 -0
- package/lib/components/context-menu/context-menu.module.d.ts +18 -0
- package/lib/components/context-menu/context-menu.service.d.ts +43 -0
- package/lib/components/context-menu/direction.token.d.ts +25 -0
- package/lib/components/context-menu/interfaces.d.ts +30 -0
- package/lib/components/create-menu/create-menu.component.d.ts +42 -0
- package/lib/components/create-menu/create-menu.module.d.ts +10 -0
- package/lib/components/details/details.component.d.ts +46 -0
- package/lib/components/dl-custom-components/document-list-custom-components.module.d.ts +14 -0
- package/lib/components/dl-custom-components/name-column/name-column.component.d.ts +41 -0
- package/lib/components/dl-custom-components/tags-column/tags-column.component.d.ts +35 -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 +54 -0
- package/lib/components/favorites/favorites.component.d.ts +49 -0
- package/lib/components/files/files.component.d.ts +55 -0
- package/lib/components/home/home.component.d.ts +36 -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 +64 -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 +49 -0
- package/lib/components/info-drawer/versions-tab/versions-tab.component.d.ts +35 -0
- package/lib/components/libraries/libraries.component.d.ts +44 -0
- package/lib/components/node-version/node-version-form.component.d.ts +46 -0
- package/lib/components/node-version/node-version.module.d.ts +16 -0
- package/lib/components/recent-files/recent-files.component.d.ts +48 -0
- package/lib/components/search/search-action-menu/search-action-menu.component.d.ts +38 -0
- package/lib/components/search/search-input/search-input.component.d.ts +85 -0
- package/lib/components/search/search-input-control/search-input-control.component.d.ts +50 -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 +56 -0
- package/lib/components/search/search-libraries-results/search-libraries-results.component.d.ts +58 -0
- package/lib/components/search/search-navigation.service.d.ts +13 -0
- package/lib/components/search/search-results/search-results.component.d.ts +69 -0
- package/lib/components/search/search-results-row/search-results-row.component.d.ts +50 -0
- package/lib/components/search/search-results.module.d.ts +21 -0
- package/lib/components/shared-files/shared-files.component.d.ts +47 -0
- package/lib/components/shared-link-view/shared-link-view.component.d.ts +47 -0
- package/lib/components/shared-link-view/shared-link-view.module.d.ts +15 -0
- package/lib/components/sidenav/components/button-menu.component.d.ts +37 -0
- package/lib/components/sidenav/components/expand-menu.component.d.ts +35 -0
- package/lib/components/sidenav/components/sidenav-header.component.d.ts +48 -0
- package/lib/components/sidenav/directives/action.directive.d.ts +14 -0
- package/lib/components/sidenav/directives/active-link.directive.d.ts +45 -0
- package/lib/components/sidenav/directives/expansion-panel.directive.d.ts +44 -0
- package/lib/components/sidenav/directives/menu-panel.directive.d.ts +42 -0
- package/lib/components/sidenav/sidenav.component.d.ts +50 -0
- package/lib/components/sidenav/sidenav.module.d.ts +19 -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 +47 -0
- package/lib/components/toolbar/toggle-favorite/toggle-favorite.component.d.ts +42 -0
- package/lib/components/toolbar/toggle-favorite-library/toggle-favorite-library.component.d.ts +42 -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 +41 -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 +19 -0
- package/lib/components/trashcan/trashcan.component.d.ts +42 -0
- package/lib/components/trashcan/trashcan.module.d.ts +16 -0
- package/lib/components/upload-files-dialog/upload-files-dialog.component.d.ts +37 -0
- package/lib/components/view-profile/view-profile.component.d.ts +59 -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 +49 -0
- package/lib/directives/directives.module.d.ts +9 -0
- package/lib/directives/document-list.directive.d.ts +56 -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 +100 -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 +41 -0
- package/lib/store/effects/contextmenu.effects.d.ts +12 -0
- package/lib/store/effects/download.effects.d.ts +49 -0
- package/lib/store/effects/favorite.effects.d.ts +38 -0
- package/lib/store/effects/library.effects.d.ts +43 -0
- package/lib/store/effects/node.effects.d.ts +56 -0
- package/lib/store/effects/search.effects.d.ts +37 -0
- package/lib/store/effects/template.effects.d.ts +54 -0
- package/lib/store/effects/upload.effects.d.ts +52 -0
- package/lib/store/effects/viewer.effects.d.ts +55 -0
- package/lib/store/effects.d.ts +34 -0
- package/lib/store/initial-state.d.ts +26 -0
- package/lib/store/reducers/app.reducer.d.ts +26 -0
- package/package.json +47 -0
- package/public-api.d.ts +28 -0
- package/ui/application.scss +53 -0
- package/ui/colors.scss +96 -0
- package/ui/custom-theme.scss +34 -0
- package/ui/dynamic-theme/custom-background-color.scss +14 -0
- package/ui/dynamic-theme/custom-palette-creator.scss +132 -0
- package/ui/dynamic-theme/custom-text-color.scss +8 -0
- package/ui/dynamic-theme/custom-theme-palettes.scss +33 -0
- package/ui/dynamic-theme/custom-theme.scss.tpl +72 -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 +94 -0
- package/ui/mixins.scss +26 -0
- package/ui/overrides/adf-about.theme.scss +38 -0
- package/ui/overrides/adf-pagination.theme.scss +46 -0
- package/ui/overrides/adf-style-fixes.theme.scss +18 -0
- package/ui/overrides/ay11.scss +232 -0
- package/ui/theme.scss +55 -0
- package/ui/variables/font-family.scss +1 -0
- package/ui/variables/variables.scss +92 -0
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright © 2005-2023 Hyland Software, Inc. and its affiliates. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
* Alfresco Example Content Application
|
|
5
|
+
*
|
|
6
|
+
* This file is part of the Alfresco Example Content Application.
|
|
7
|
+
* If the software was purchased under a paid Alfresco license, the terms of
|
|
8
|
+
* the paid license agreement will prevail. Otherwise, the software is
|
|
9
|
+
* provided under the following open source license terms:
|
|
10
|
+
*
|
|
11
|
+
* The Alfresco Example Content Application is free software: you can redistribute it and/or modify
|
|
12
|
+
* it under the terms of the GNU Lesser General Public License as published by
|
|
13
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
14
|
+
* (at your option) any later version.
|
|
15
|
+
*
|
|
16
|
+
* The Alfresco Example Content Application is distributed in the hope that it will be useful,
|
|
17
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
18
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
19
|
+
* GNU Lesser General Public License for more details.
|
|
20
|
+
*
|
|
21
|
+
* You should have received a copy of the GNU Lesser General Public License
|
|
22
|
+
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
|
|
23
|
+
*/
|
|
24
|
+
import { NavigateLibraryAction } from '@alfresco/aca-shared/store';
|
|
25
|
+
import { BreakpointObserver, Breakpoints } from '@angular/cdk/layout';
|
|
26
|
+
import { Component } from '@angular/core';
|
|
27
|
+
import { Store } from '@ngrx/store';
|
|
28
|
+
import { ContentManagementService } from '../../services/content-management.service';
|
|
29
|
+
import { AppExtensionService, AppHookService, PageComponent } from '@alfresco/aca-shared';
|
|
30
|
+
import * as i0 from "@angular/core";
|
|
31
|
+
import * as i1 from "../../services/content-management.service";
|
|
32
|
+
import * as i2 from "@ngrx/store";
|
|
33
|
+
import * as i3 from "@alfresco/aca-shared";
|
|
34
|
+
import * as i4 from "@angular/cdk/layout";
|
|
35
|
+
import * as i5 from "@angular/common";
|
|
36
|
+
import * as i6 from "@alfresco/adf-content-services";
|
|
37
|
+
import * as i7 from "@alfresco/adf-core";
|
|
38
|
+
import * as i8 from "@alfresco/adf-extensions";
|
|
39
|
+
import * as i9 from "../../directives/document-list.directive";
|
|
40
|
+
export class LibrariesComponent extends PageComponent {
|
|
41
|
+
constructor(content, store, extensions, appHookService, breakpointObserver) {
|
|
42
|
+
super(store, extensions, content);
|
|
43
|
+
this.appHookService = appHookService;
|
|
44
|
+
this.breakpointObserver = breakpointObserver;
|
|
45
|
+
this.isSmallScreen = false;
|
|
46
|
+
this.columns = [];
|
|
47
|
+
}
|
|
48
|
+
ngOnInit() {
|
|
49
|
+
super.ngOnInit();
|
|
50
|
+
this.subscriptions.push(this.appHookService.libraryDeleted.subscribe(() => this.reload()), this.appHookService.libraryUpdated.subscribe(() => this.reload()), this.appHookService.libraryLeft.subscribe(() => this.reload()), this.breakpointObserver.observe([Breakpoints.HandsetPortrait, Breakpoints.HandsetLandscape]).subscribe((result) => {
|
|
51
|
+
this.isSmallScreen = result.matches;
|
|
52
|
+
}));
|
|
53
|
+
this.columns = this.extensions.documentListPresets.libraries || [];
|
|
54
|
+
}
|
|
55
|
+
navigateTo(node) {
|
|
56
|
+
if (node && node.entry && node.entry.guid) {
|
|
57
|
+
this.store.dispatch(new NavigateLibraryAction(node.entry.guid));
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
handleNodeClick(event) {
|
|
61
|
+
this.navigateTo(event.detail?.node);
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
LibrariesComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: LibrariesComponent, deps: [{ token: i1.ContentManagementService }, { token: i2.Store }, { token: i3.AppExtensionService }, { token: i3.AppHookService }, { token: i4.BreakpointObserver }], target: i0.ɵɵFactoryTarget.Component });
|
|
65
|
+
LibrariesComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.3", type: LibrariesComponent, selector: "ng-component", usesInheritance: true, ngImport: i0, template: "<aca-page-layout>\n <aca-page-layout-header>\n <adf-breadcrumb root=\"APP.BROWSE.LIBRARIES.MENU.MY_LIBRARIES.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=\"-mysites-\"\n selectionMode=\"single\"\n [navigate]=\"false\"\n [sorting]=\"['title', 'asc']\"\n sortingMode=\"client\"\n [imageResolver]=\"imageResolver\"\n (node-dblclick)=\"handleNodeClick($event)\"\n (name-click)=\"handleNodeClick($event)\"\n >\n <adf-custom-empty-content-template>\n <adf-empty-content\n icon=\"library_books\"\n [title]=\"'APP.BROWSE.LIBRARIES.EMPTY_STATE.FILE_LIBRARIES.TITLE'\"\n subtitle=\"APP.BROWSE.LIBRARIES.EMPTY_STATE.FILE_LIBRARIES.TEXT\"\n >\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 </data-columns>\n </adf-document-list>\n\n <adf-pagination acaPagination [target]=\"documentList\"> </adf-pagination>\n </div>\n\n <div class=\"sidebar\" *ngIf=\"infoDrawerOpened$ | async\">\n <aca-info-drawer [node]=\"$any(selection).library\"></aca-info-drawer>\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.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: i6.BreadcrumbComponent, selector: "adf-breadcrumb", inputs: ["folderNode", "root", "rootId", "target", "transform", "maxItems", "readOnly"], outputs: ["navigate"] }, { kind: "component", type: i7.PaginationComponent, selector: "adf-pagination", inputs: ["target", "supportedPageSizes", "pagination"], outputs: ["change", "changePageNumber", "changePageSize", "nextPage", "prevPage"] }, { kind: "component", type: i7.ToolbarComponent, selector: "adf-toolbar", inputs: ["title", "color"] }, { kind: "directive", type: i7.CustomEmptyContentTemplateDirective, selector: "adf-custom-empty-content-template, empty-folder-content" }, { kind: "component", type: i7.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: i7.DataColumnListComponent, selector: "data-columns" }, { kind: "component", type: i7.EmptyContentComponent, selector: "adf-empty-content", inputs: ["icon", "title", "subtitle"] }, { kind: "component", type: i8.DynamicColumnComponent, selector: "adf-dynamic-column", inputs: ["id", "context"] }, { kind: "directive", type: i3.ContextActionsDirective, selector: "[acaContextActions]", inputs: ["acaContextEnable"], exportAs: ["acaContextActions"] }, { kind: "component", type: i3.PageLayoutContentComponent, selector: "aca-page-layout-content", inputs: ["scrollable"] }, { kind: "component", type: i3.PageLayoutHeaderComponent, selector: "aca-page-layout-header" }, { kind: "component", type: i3.PageLayoutComponent, selector: "aca-page-layout", inputs: ["hasError"] }, { kind: "directive", type: i9.DocumentListDirective, selector: "[acaDocumentList]" }, { kind: "directive", type: i3.PaginationDirective, selector: "[acaPagination]" }, { kind: "component", type: i3.InfoDrawerComponent, selector: "aca-info-drawer", inputs: ["nodeId", "node"] }, { kind: "component", type: i3.ToolbarActionComponent, selector: "aca-toolbar-action", inputs: ["data", "type", "color", "actionRef"] }, { kind: "pipe", type: i5.AsyncPipe, name: "async" }] });
|
|
66
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: LibrariesComponent, decorators: [{
|
|
67
|
+
type: Component,
|
|
68
|
+
args: [{ template: "<aca-page-layout>\n <aca-page-layout-header>\n <adf-breadcrumb root=\"APP.BROWSE.LIBRARIES.MENU.MY_LIBRARIES.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=\"-mysites-\"\n selectionMode=\"single\"\n [navigate]=\"false\"\n [sorting]=\"['title', 'asc']\"\n sortingMode=\"client\"\n [imageResolver]=\"imageResolver\"\n (node-dblclick)=\"handleNodeClick($event)\"\n (name-click)=\"handleNodeClick($event)\"\n >\n <adf-custom-empty-content-template>\n <adf-empty-content\n icon=\"library_books\"\n [title]=\"'APP.BROWSE.LIBRARIES.EMPTY_STATE.FILE_LIBRARIES.TITLE'\"\n subtitle=\"APP.BROWSE.LIBRARIES.EMPTY_STATE.FILE_LIBRARIES.TEXT\"\n >\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 </data-columns>\n </adf-document-list>\n\n <adf-pagination acaPagination [target]=\"documentList\"> </adf-pagination>\n </div>\n\n <div class=\"sidebar\" *ngIf=\"infoDrawerOpened$ | async\">\n <aca-info-drawer [node]=\"$any(selection).library\"></aca-info-drawer>\n </div>\n </aca-page-layout-content>\n</aca-page-layout>\n" }]
|
|
69
|
+
}], ctorParameters: function () { return [{ type: i1.ContentManagementService }, { type: i2.Store }, { type: i3.AppExtensionService }, { type: i3.AppHookService }, { type: i4.BreakpointObserver }]; } });
|
|
70
|
+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ZGVza3RvcE9ubHkgJiYgaXNTbWFsbFNjcmVlbilcIj5cbiAgICAgICAgICAgICAgPGRhdGEtY29sdW1uXG4gICAgICAgICAgICAgICAgW2tleV09XCJjb2x1bW4ua2V5XCJcbiAgICAgICAgICAgICAgICBbdGl0bGVdPVwiY29sdW1uLnRpdGxlXCJcbiAgICAgICAgICAgICAgICBbdHlwZV09XCJjb2x1bW4udHlwZVwiXG4gICAgICAgICAgICAgICAgW2Zvcm1hdF09XCJjb2x1bW4uZm9ybWF0XCJcbiAgICAgICAgICAgICAgICBbY2xhc3NdPVwiY29sdW1uLmNsYXNzXCJcbiAgICAgICAgICAgICAgICBbc29ydGFibGVdPVwiY29sdW1uLnNvcnRhYmxlXCJcbiAgICAgICAgICAgICAgPlxuICAgICAgICAgICAgICAgIDxuZy10ZW1wbGF0ZSBsZXQtY29udGV4dD5cbiAgICAgICAgICAgICAgICAgIDxhZGYtZHluYW1pYy1jb2x1bW4gW2lkXT1cImNvbHVtbi50ZW1wbGF0ZVwiIFtjb250ZXh0XT1cImNvbnRleHRcIj4gPC9hZGYtZHluYW1pYy1jb2x1bW4+XG4gICAgICAgICAgICAgICAgPC9uZy10ZW1wbGF0ZT5cbiAgICAgICAgICAgICAgPC9kYXRhLWNvbHVtbj5cbiAgICAgICAgICAgIDwvbmctY29udGFpbmVyPlxuXG4gICAgICAgICAgICA8bmctY29udGFpbmVyICpuZ0lmPVwiIWNvbHVtbi50ZW1wbGF0ZSAmJiAhKGNvbHVtbi5kZXNrdG9wT25seSAmJiBpc1NtYWxsU2NyZWVuKVwiPlxuICAgICAgICAgICAgICA8ZGF0YS1jb2x1bW5cbiAgICAgICAgICAgICAgICBba2V5XT1cImNvbHVtbi5rZXlcIlxuICAgICAgICAgICAgICAgIFt0aXRsZV09XCJjb2x1bW4udGl0bGVcIlxuICAgICAgICAgICAgICAgIFt0eXBlXT1cImNvbHVtbi50eXBlXCJcbiAgICAgICAgICAgICAgICBbZm9ybWF0XT1cImNvbHVtbi5mb3JtYXRcIlxuICAgICAgICAgICAgICAgIFtjbGFzc109XCJjb2x1bW4uY2xhc3NcIlxuICAgICAgICAgICAgICAgIFtzb3J0YWJsZV09XCJjb2x1bW4uc29ydGFibGVcIlxuICAgICAgICAgICAgICA+XG4gICAgICAgICAgICAgIDwvZGF0YS1jb2x1bW4+XG4gICAgICAgICAgICA8L25nLWNvbnRhaW5lcj5cbiAgICAgICAgICA8L25nLWNvbnRhaW5lcj5cbiAgICAgICAgPC9kYXRhLWNvbHVtbnM+XG4gICAgICA8L2FkZi1kb2N1bWVudC1saXN0PlxuXG4gICAgICA8YWRmLXBhZ2luYXRpb24gYWNhUGFnaW5hdGlvbiBbdGFyZ2V0XT1cImRvY3VtZW50TGlzdFwiPiA8L2FkZi1wYWdpbmF0aW9uPlxuICAgIDwvZGl2PlxuXG4gICAgPGRpdiBjbGFzcz1cInNpZGViYXJcIiAqbmdJZj1cImluZm9EcmF3ZXJPcGVuZWQkIHwgYXN5bmNcIj5cbiAgICAgIDxhY2EtaW5mby1kcmF3ZXIgW25vZGVdPVwiJGFueShzZWxlY3Rpb24pLmxpYnJhcnlcIj48L2FjYS1pbmZvLWRyYXdlcj5cbiAgICA8L2Rpdj5cbiAgPC9hY2EtcGFnZS1sYXlvdXQtY29udGVudD5cbjwvYWNhLXBhZ2UtbGF5b3V0PlxuIl19
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright © 2005-2023 Hyland Software, Inc. and its affiliates. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
* Alfresco Example Content Application
|
|
5
|
+
*
|
|
6
|
+
* This file is part of the Alfresco Example Content Application.
|
|
7
|
+
* If the software was purchased under a paid Alfresco license, the terms of
|
|
8
|
+
* the paid license agreement will prevail. Otherwise, the software is
|
|
9
|
+
* provided under the following open source license terms:
|
|
10
|
+
*
|
|
11
|
+
* The Alfresco Example Content Application is free software: you can redistribute it and/or modify
|
|
12
|
+
* it under the terms of the GNU Lesser General Public License as published by
|
|
13
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
14
|
+
* (at your option) any later version.
|
|
15
|
+
*
|
|
16
|
+
* The Alfresco Example Content Application is distributed in the hope that it will be useful,
|
|
17
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
18
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
19
|
+
* GNU Lesser General Public License for more details.
|
|
20
|
+
*
|
|
21
|
+
* You should have received a copy of the GNU Lesser General Public License
|
|
22
|
+
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
|
|
23
|
+
*/
|
|
24
|
+
import { Component, ViewEncapsulation, Output, EventEmitter } from '@angular/core';
|
|
25
|
+
import { UntypedFormBuilder } from '@angular/forms';
|
|
26
|
+
import { Subject } from 'rxjs';
|
|
27
|
+
import { takeUntil } from 'rxjs/operators';
|
|
28
|
+
import * as i0 from "@angular/core";
|
|
29
|
+
import * as i1 from "@angular/forms";
|
|
30
|
+
import * as i2 from "@angular/common";
|
|
31
|
+
import * as i3 from "@angular/material/form-field";
|
|
32
|
+
import * as i4 from "@angular/material/input";
|
|
33
|
+
import * as i5 from "@angular/material/radio";
|
|
34
|
+
import * as i6 from "@ngx-translate/core";
|
|
35
|
+
export class AppNodeVersionFormComponent {
|
|
36
|
+
constructor(formBuilder) {
|
|
37
|
+
this.formBuilder = formBuilder;
|
|
38
|
+
this.update = new EventEmitter();
|
|
39
|
+
this.onDestroy$ = new Subject();
|
|
40
|
+
this.versionOptions = [
|
|
41
|
+
{ label: 'VERSION.FORM.VERSION.MINOR', value: false },
|
|
42
|
+
{ label: 'VERSION.FORM.VERSION.MAJOR', value: true }
|
|
43
|
+
];
|
|
44
|
+
}
|
|
45
|
+
ngOnInit() {
|
|
46
|
+
this.form = this.formBuilder.group({
|
|
47
|
+
comment: [''],
|
|
48
|
+
version: [this.versionOptions[0].value]
|
|
49
|
+
});
|
|
50
|
+
this.form.valueChanges.pipe(takeUntil(this.onDestroy$)).subscribe((values) => {
|
|
51
|
+
this.update.emit(values);
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
get versions() {
|
|
55
|
+
return this.versionOptions;
|
|
56
|
+
}
|
|
57
|
+
ngOnDestroy() {
|
|
58
|
+
this.onDestroy$.next(true);
|
|
59
|
+
this.onDestroy$.complete();
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
AppNodeVersionFormComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: AppNodeVersionFormComponent, deps: [{ token: i1.UntypedFormBuilder }], target: i0.ɵɵFactoryTarget.Component });
|
|
63
|
+
AppNodeVersionFormComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.3", type: AppNodeVersionFormComponent, selector: "app-node-version-form", outputs: { update: "update" }, host: { classAttribute: "app-node-version-form__container" }, exportAs: ["nodeVersionForm"], ngImport: i0, template: "<form novalidate [formGroup]=\"form\" class=\"form\">\n <p class=\"form__subtitle\">\n {{ 'VERSION.FORM.SUBTITLE' | translate }}\n </p>\n\n <mat-radio-group formControlName=\"version\" class=\"form__version\">\n <mat-radio-button\n class=\"form__version--option\"\n color=\"primary\"\n *ngFor=\"let option of versions\"\n [attr.data-automation-id]=\"option.value\"\n [value]=\"option.value\"\n >\n {{ option.label | translate }}\n </mat-radio-button>\n </mat-radio-group>\n\n <mat-form-field class=\"form__comment\">\n <textarea\n matInput\n placeholder=\"{{ 'VERSION.FORM.COMMENT.PLACEHOLDER' | translate }}\"\n rows=\"1\"\n autocomplete=\"off\"\n formControlName=\"comment\"\n ></textarea>\n </mat-form-field>\n</form>\n", styles: [".app-node-version-form__container{display:flex;max-width:400px}.app-node-version-form__container .form__version{display:flex;flex-direction:column;padding:20px 0}.app-node-version-form__container .form__version--option:last-child{padding-top:20px}.app-node-version-form__container .form{width:100%;padding:0 10px;display:flex;flex-direction:column}\n"], dependencies: [{ kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "component", type: i3.MatFormField, selector: "mat-form-field", inputs: ["color", "appearance", "hideRequiredMarker", "hintLabel", "floatLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i4.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly"], exportAs: ["matInput"] }, { kind: "directive", type: i5.MatRadioGroup, selector: "mat-radio-group", exportAs: ["matRadioGroup"] }, { kind: "component", type: i5.MatRadioButton, selector: "mat-radio-button", inputs: ["disableRipple", "tabIndex"], exportAs: ["matRadioButton"] }, { kind: "pipe", type: i6.TranslatePipe, name: "translate" }], encapsulation: i0.ViewEncapsulation.None });
|
|
64
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: AppNodeVersionFormComponent, decorators: [{
|
|
65
|
+
type: Component,
|
|
66
|
+
args: [{ selector: 'app-node-version-form', encapsulation: ViewEncapsulation.None, host: { class: 'app-node-version-form__container' }, exportAs: 'nodeVersionForm', template: "<form novalidate [formGroup]=\"form\" class=\"form\">\n <p class=\"form__subtitle\">\n {{ 'VERSION.FORM.SUBTITLE' | translate }}\n </p>\n\n <mat-radio-group formControlName=\"version\" class=\"form__version\">\n <mat-radio-button\n class=\"form__version--option\"\n color=\"primary\"\n *ngFor=\"let option of versions\"\n [attr.data-automation-id]=\"option.value\"\n [value]=\"option.value\"\n >\n {{ option.label | translate }}\n </mat-radio-button>\n </mat-radio-group>\n\n <mat-form-field class=\"form__comment\">\n <textarea\n matInput\n placeholder=\"{{ 'VERSION.FORM.COMMENT.PLACEHOLDER' | translate }}\"\n rows=\"1\"\n autocomplete=\"off\"\n formControlName=\"comment\"\n ></textarea>\n </mat-form-field>\n</form>\n", styles: [".app-node-version-form__container{display:flex;max-width:400px}.app-node-version-form__container .form__version{display:flex;flex-direction:column;padding:20px 0}.app-node-version-form__container .form__version--option:last-child{padding-top:20px}.app-node-version-form__container .form{width:100%;padding:0 10px;display:flex;flex-direction:column}\n"] }]
|
|
67
|
+
}], ctorParameters: function () { return [{ type: i1.UntypedFormBuilder }]; }, propDecorators: { update: [{
|
|
68
|
+
type: Output
|
|
69
|
+
}] } });
|
|
70
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibm9kZS12ZXJzaW9uLWZvcm0uY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvYWNhLWNvbnRlbnQvc3JjL2xpYi9jb21wb25lbnRzL25vZGUtdmVyc2lvbi9ub2RlLXZlcnNpb24tZm9ybS5jb21wb25lbnQudHMiLCIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9hY2EtY29udGVudC9zcmMvbGliL2NvbXBvbmVudHMvbm9kZS12ZXJzaW9uL25vZGUtdmVyc2lvbi1mb3JtLmNvbXB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YT5cbiAgPC9tYXQtZm9ybS1maWVsZD5cbjwvZm9ybT5cbiJdfQ==
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright © 2005-2023 Hyland Software, Inc. and its affiliates. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
* Alfresco Example Content Application
|
|
5
|
+
*
|
|
6
|
+
* This file is part of the Alfresco Example Content Application.
|
|
7
|
+
* If the software was purchased under a paid Alfresco license, the terms of
|
|
8
|
+
* the paid license agreement will prevail. Otherwise, the software is
|
|
9
|
+
* provided under the following open source license terms:
|
|
10
|
+
*
|
|
11
|
+
* The Alfresco Example Content Application is free software: you can redistribute it and/or modify
|
|
12
|
+
* it under the terms of the GNU Lesser General Public License as published by
|
|
13
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
14
|
+
* (at your option) any later version.
|
|
15
|
+
*
|
|
16
|
+
* The Alfresco Example Content Application is distributed in the hope that it will be useful,
|
|
17
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
18
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
19
|
+
* GNU Lesser General Public License for more details.
|
|
20
|
+
*
|
|
21
|
+
* You should have received a copy of the GNU Lesser General Public License
|
|
22
|
+
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
|
|
23
|
+
*/
|
|
24
|
+
import { AppNodeVersionFormComponent } from './node-version-form.component';
|
|
25
|
+
import { MatDialogModule } from '@angular/material/dialog';
|
|
26
|
+
import { MatButtonModule } from '@angular/material/button';
|
|
27
|
+
import { CoreModule } from '@alfresco/adf-core';
|
|
28
|
+
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
|
|
29
|
+
import { BrowserModule } from '@angular/platform-browser';
|
|
30
|
+
import { CommonModule } from '@angular/common';
|
|
31
|
+
import { MatRadioModule } from '@angular/material/radio';
|
|
32
|
+
import { MatFormFieldModule } from '@angular/material/form-field';
|
|
33
|
+
import { MatInputModule } from '@angular/material/input';
|
|
34
|
+
import { NgModule } from '@angular/core';
|
|
35
|
+
import * as i0 from "@angular/core";
|
|
36
|
+
export class AppNodeVersionModule {
|
|
37
|
+
}
|
|
38
|
+
AppNodeVersionModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: AppNodeVersionModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
39
|
+
AppNodeVersionModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.1.3", ngImport: i0, type: AppNodeVersionModule, declarations: [AppNodeVersionFormComponent], imports: [CoreModule,
|
|
40
|
+
MatButtonModule,
|
|
41
|
+
MatDialogModule,
|
|
42
|
+
FormsModule,
|
|
43
|
+
ReactiveFormsModule,
|
|
44
|
+
BrowserModule,
|
|
45
|
+
CommonModule,
|
|
46
|
+
MatRadioModule,
|
|
47
|
+
MatFormFieldModule,
|
|
48
|
+
MatInputModule], exports: [AppNodeVersionFormComponent] });
|
|
49
|
+
AppNodeVersionModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: AppNodeVersionModule, imports: [CoreModule,
|
|
50
|
+
MatButtonModule,
|
|
51
|
+
MatDialogModule,
|
|
52
|
+
FormsModule,
|
|
53
|
+
ReactiveFormsModule,
|
|
54
|
+
BrowserModule,
|
|
55
|
+
CommonModule,
|
|
56
|
+
MatRadioModule,
|
|
57
|
+
MatFormFieldModule,
|
|
58
|
+
MatInputModule] });
|
|
59
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: AppNodeVersionModule, decorators: [{
|
|
60
|
+
type: NgModule,
|
|
61
|
+
args: [{
|
|
62
|
+
imports: [
|
|
63
|
+
CoreModule,
|
|
64
|
+
MatButtonModule,
|
|
65
|
+
MatDialogModule,
|
|
66
|
+
FormsModule,
|
|
67
|
+
ReactiveFormsModule,
|
|
68
|
+
BrowserModule,
|
|
69
|
+
CommonModule,
|
|
70
|
+
MatRadioModule,
|
|
71
|
+
MatFormFieldModule,
|
|
72
|
+
MatInputModule
|
|
73
|
+
],
|
|
74
|
+
exports: [AppNodeVersionFormComponent],
|
|
75
|
+
declarations: [AppNodeVersionFormComponent]
|
|
76
|
+
}]
|
|
77
|
+
}] });
|
|
78
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibm9kZS12ZXJzaW9uLm1vZHVsZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2FjYS1jb250ZW50L3NyYy9saWIvY29tcG9uZW50cy9ub2RlLXZlcnNpb24vbm9kZS12ZXJzaW9uLm1vZHVsZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7OztHQXNCRztBQUVILE9BQU8sRUFBRSwyQkFBMkIsRUFBRSxNQUFNLCtCQUErQixDQUFDO0FBQzVFLE9BQU8sRUFBRSxlQUFlLEVBQUUsTUFBTSwwQkFBMEIsQ0FBQztBQUMzRCxPQUFPLEVBQUUsZUFBZSxFQUFFLE1BQU0sMEJBQTBCLENBQUM7QUFFM0QsT0FBTyxFQUFFLFVBQVUsRUFBRSxNQUFNLG9CQUFvQixDQUFDO0FBQ2hELE9BQU8sRUFBRSxXQUFXLEVBQUUsbUJBQW1CLEVBQUUsTUFBTSxnQkFBZ0IsQ0FBQztBQUNsRSxPQUFPLEVBQUUsYUFBYSxFQUFFLE1BQU0sMkJBQTJCLENBQUM7QUFDMUQsT0FBTyxFQUFFLFlBQVksRUFBRSxNQUFNLGlCQUFpQixDQUFDO0FBQy9DLE9BQU8sRUFBRSxjQUFjLEVBQUUsTUFBTSx5QkFBeUIsQ0FBQztBQUN6RCxPQUFPLEVBQUUsa0JBQWtCLEVBQUUsTUFBTSw4QkFBOEIs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VyaWFsL2Zvcm0tZmllbGQnO1xuaW1wb3J0IHsgTWF0SW5wdXRNb2R1bGUgfSBmcm9tICdAYW5ndWxhci9tYXRlcmlhbC9pbnB1dCc7XG5cbmltcG9ydCB7IE5nTW9kdWxlIH0gZnJvbSAnQGFuZ3VsYXIvY29yZSc7XG5ATmdNb2R1bGUoe1xuICBpbXBvcnRzOiBbXG4gICAgQ29yZU1vZHVsZSxcbiAgICBNYXRCdXR0b25Nb2R1bGUsXG4gICAgTWF0RGlhbG9nTW9kdWxlLFxuICAgIEZvcm1zTW9kdWxlLFxuICAgIFJlYWN0aXZlRm9ybXNNb2R1bGUsXG4gICAgQnJvd3Nlck1vZHVsZSxcbiAgICBDb21tb25Nb2R1bGUsXG4gICAgTWF0UmFkaW9Nb2R1bGUsXG4gICAgTWF0Rm9ybUZpZWxkTW9kdWxlLFxuICAgIE1hdElucHV0TW9kdWxlXG4gIF0sXG4gIGV4cG9ydHM6IFtBcHBOb2RlVmVyc2lvbkZvcm1Db21wb25lbnRdLFxuICBkZWNsYXJhdGlvbnM6IFtBcHBOb2RlVmVyc2lvbkZvcm1Db21wb25lbnRdXG59KVxuZXhwb3J0IGNsYXNzIEFwcE5vZGVWZXJzaW9uTW9kdWxlIHt9XG4iXX0=
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright © 2005-2023 Hyland Software, Inc. and its affiliates. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
* Alfresco Example Content Application
|
|
5
|
+
*
|
|
6
|
+
* This file is part of the Alfresco Example Content Application.
|
|
7
|
+
* If the software was purchased under a paid Alfresco license, the terms of
|
|
8
|
+
* the paid license agreement will prevail. Otherwise, the software is
|
|
9
|
+
* provided under the following open source license terms:
|
|
10
|
+
*
|
|
11
|
+
* The Alfresco Example Content Application is free software: you can redistribute it and/or modify
|
|
12
|
+
* it under the terms of the GNU Lesser General Public License as published by
|
|
13
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
14
|
+
* (at your option) any later version.
|
|
15
|
+
*
|
|
16
|
+
* The Alfresco Example Content Application is distributed in the hope that it will be useful,
|
|
17
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
18
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
19
|
+
* GNU Lesser General Public License for more details.
|
|
20
|
+
*
|
|
21
|
+
* You should have received a copy of the GNU Lesser General Public License
|
|
22
|
+
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
|
|
23
|
+
*/
|
|
24
|
+
import { Component } from '@angular/core';
|
|
25
|
+
import { BreakpointObserver, Breakpoints } from '@angular/cdk/layout';
|
|
26
|
+
import { ContentManagementService } from '../../services/content-management.service';
|
|
27
|
+
import { Store } from '@ngrx/store';
|
|
28
|
+
import { UploadService } from '@alfresco/adf-content-services';
|
|
29
|
+
import { debounceTime } from 'rxjs/operators';
|
|
30
|
+
import { Router } from '@angular/router';
|
|
31
|
+
import { AcaFileAutoDownloadService, AppExtensionService, PageComponent } from '@alfresco/aca-shared';
|
|
32
|
+
import * as i0 from "@angular/core";
|
|
33
|
+
import * as i1 from "@ngrx/store";
|
|
34
|
+
import * as i2 from "@alfresco/aca-shared";
|
|
35
|
+
import * as i3 from "../../services/content-management.service";
|
|
36
|
+
import * as i4 from "@alfresco/adf-content-services";
|
|
37
|
+
import * as i5 from "@angular/cdk/layout";
|
|
38
|
+
import * as i6 from "@angular/router";
|
|
39
|
+
import * as i7 from "@angular/common";
|
|
40
|
+
import * as i8 from "@alfresco/adf-core";
|
|
41
|
+
import * as i9 from "@alfresco/adf-extensions";
|
|
42
|
+
import * as i10 from "../../directives/document-list.directive";
|
|
43
|
+
export class RecentFilesComponent extends PageComponent {
|
|
44
|
+
constructor(store, extensions, content, uploadService, breakpointObserver, router, fileAutoDownloadService) {
|
|
45
|
+
super(store, extensions, content, fileAutoDownloadService);
|
|
46
|
+
this.uploadService = uploadService;
|
|
47
|
+
this.breakpointObserver = breakpointObserver;
|
|
48
|
+
this.router = router;
|
|
49
|
+
this.isSmallScreen = false;
|
|
50
|
+
this.columns = [];
|
|
51
|
+
}
|
|
52
|
+
ngOnInit() {
|
|
53
|
+
super.ngOnInit();
|
|
54
|
+
this.subscriptions = this.subscriptions.concat([
|
|
55
|
+
this.uploadService.fileUploadComplete.pipe(debounceTime(300)).subscribe(() => this.onFileUploadedEvent()),
|
|
56
|
+
this.uploadService.fileUploadDeleted.pipe(debounceTime(300)).subscribe(() => this.onFileUploadedEvent()),
|
|
57
|
+
this.breakpointObserver.observe([Breakpoints.HandsetPortrait, Breakpoints.HandsetLandscape]).subscribe((result) => {
|
|
58
|
+
this.isSmallScreen = result.matches;
|
|
59
|
+
})
|
|
60
|
+
]);
|
|
61
|
+
this.columns = this.extensions.documentListPresets.recent || [];
|
|
62
|
+
}
|
|
63
|
+
onNodeDoubleClick(node) {
|
|
64
|
+
if (node && node.entry) {
|
|
65
|
+
this.showPreview(node, { location: this.router.url });
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
handleNodeClick(event) {
|
|
69
|
+
this.onNodeDoubleClick(event.detail?.node);
|
|
70
|
+
}
|
|
71
|
+
onFileUploadedEvent() {
|
|
72
|
+
this.reload();
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
RecentFilesComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: RecentFilesComponent, deps: [{ token: i1.Store }, { token: i2.AppExtensionService }, { token: i3.ContentManagementService }, { token: i4.UploadService }, { token: i5.BreakpointObserver }, { token: i6.Router }, { token: i2.AcaFileAutoDownloadService }], target: i0.ɵɵFactoryTarget.Component });
|
|
76
|
+
RecentFilesComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.3", type: RecentFilesComponent, selector: "ng-component", usesInheritance: true, ngImport: i0, template: "<aca-page-layout>\n <aca-page-layout-header>\n <adf-breadcrumb root=\"APP.BROWSE.RECENT.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=\"-recent-\"\n selectionMode=\"multiple\"\n [navigate]=\"false\"\n [sorting]=\"['modifiedAt', 'desc']\"\n sortingMode=\"client\"\n [imageResolver]=\"imageResolver\"\n (node-dblclick)=\"handleNodeClick($event)\"\n (name-click)=\"handleNodeClick($event)\"\n >\n <adf-custom-empty-content-template>\n <adf-empty-content icon=\"access_time\" [title]=\"'APP.BROWSE.RECENT.EMPTY_STATE.TITLE'\" subtitle=\"APP.BROWSE.RECENT.EMPTY_STATE.TEXT\">\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 </data-columns>\n </adf-document-list>\n\n <adf-pagination acaPagination [target]=\"documentList\"> </adf-pagination>\n </div>\n\n <div class=\"sidebar\" *ngIf=\"infoDrawerOpened$ | async\">\n <aca-info-drawer [node]=\"selection.last\"></aca-info-drawer>\n </div>\n </aca-page-layout-content>\n</aca-page-layout>\n", dependencies: [{ kind: "directive", type: i7.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i7.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i4.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: i4.BreadcrumbComponent, selector: "adf-breadcrumb", inputs: ["folderNode", "root", "rootId", "target", "transform", "maxItems", "readOnly"], outputs: ["navigate"] }, { kind: "component", type: i8.PaginationComponent, selector: "adf-pagination", inputs: ["target", "supportedPageSizes", "pagination"], outputs: ["change", "changePageNumber", "changePageSize", "nextPage", "prevPage"] }, { kind: "component", type: i8.ToolbarComponent, selector: "adf-toolbar", inputs: ["title", "color"] }, { kind: "directive", type: i8.CustomEmptyContentTemplateDirective, selector: "adf-custom-empty-content-template, empty-folder-content" }, { kind: "component", type: i8.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: i8.DataColumnListComponent, selector: "data-columns" }, { kind: "component", type: i8.EmptyContentComponent, selector: "adf-empty-content", inputs: ["icon", "title", "subtitle"] }, { kind: "component", type: i9.DynamicColumnComponent, selector: "adf-dynamic-column", inputs: ["id", "context"] }, { kind: "directive", type: i2.ContextActionsDirective, selector: "[acaContextActions]", inputs: ["acaContextEnable"], exportAs: ["acaContextActions"] }, { 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: "directive", type: i10.DocumentListDirective, selector: "[acaDocumentList]" }, { kind: "directive", type: i2.PaginationDirective, selector: "[acaPagination]" }, { kind: "component", type: i2.InfoDrawerComponent, selector: "aca-info-drawer", inputs: ["nodeId", "node"] }, { kind: "component", type: i2.ToolbarActionComponent, selector: "aca-toolbar-action", inputs: ["data", "type", "color", "actionRef"] }, { kind: "pipe", type: i7.AsyncPipe, name: "async" }] });
|
|
77
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: RecentFilesComponent, decorators: [{
|
|
78
|
+
type: Component,
|
|
79
|
+
args: [{ template: "<aca-page-layout>\n <aca-page-layout-header>\n <adf-breadcrumb root=\"APP.BROWSE.RECENT.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=\"-recent-\"\n selectionMode=\"multiple\"\n [navigate]=\"false\"\n [sorting]=\"['modifiedAt', 'desc']\"\n sortingMode=\"client\"\n [imageResolver]=\"imageResolver\"\n (node-dblclick)=\"handleNodeClick($event)\"\n (name-click)=\"handleNodeClick($event)\"\n >\n <adf-custom-empty-content-template>\n <adf-empty-content icon=\"access_time\" [title]=\"'APP.BROWSE.RECENT.EMPTY_STATE.TITLE'\" subtitle=\"APP.BROWSE.RECENT.EMPTY_STATE.TEXT\">\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 </data-columns>\n </adf-document-list>\n\n <adf-pagination acaPagination [target]=\"documentList\"> </adf-pagination>\n </div>\n\n <div class=\"sidebar\" *ngIf=\"infoDrawerOpened$ | async\">\n <aca-info-drawer [node]=\"selection.last\"></aca-info-drawer>\n </div>\n </aca-page-layout-content>\n</aca-page-layout>\n" }]
|
|
80
|
+
}], ctorParameters: function () { return [{ type: i1.Store }, { type: i2.AppExtensionService }, { type: i3.ContentManagementService }, { type: i4.UploadService }, { type: i5.BreakpointObserver }, { type: i6.Router }, { type: i2.AcaFileAutoDownloadService }]; } });
|
|
81
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVjZW50LWZpbGVzLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2FjYS1jb250ZW50L3NyYy9saWIvY29tcG9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RlPlxuICAgICAgICAgICAgICA8L2RhdGEtY29sdW1uPlxuICAgICAgICAgICAgPC9uZy1jb250YWluZXI+XG5cbiAgICAgICAgICAgIDxuZy1jb250YWluZXIgKm5nSWY9XCIhY29sdW1uLnRlbXBsYXRlICYmICEoY29sdW1uLmRlc2t0b3BPbmx5ICYmIGlzU21hbGxTY3JlZW4pXCI+XG4gICAgICAgICAgICAgIDxkYXRhLWNvbHVtblxuICAgICAgICAgICAgICAgIFtrZXldPVwiY29sdW1uLmtleVwiXG4gICAgICAgICAgICAgICAgW3RpdGxlXT1cImNvbHVtbi50aXRsZVwiXG4gICAgICAgICAgICAgICAgW3R5cGVdPVwiY29sdW1uLnR5cGVcIlxuICAgICAgICAgICAgICAgIFtmb3JtYXRdPVwiY29sdW1uLmZvcm1hdFwiXG4gICAgICAgICAgICAgICAgW2NsYXNzXT1cImNvbHVtbi5jbGFzc1wiXG4gICAgICAgICAgICAgICAgW3NvcnRhYmxlXT1cImNvbHVtbi5zb3J0YWJsZVwiXG4gICAgICAgICAgICAgID5cbiAgICAgICAgICAgICAgPC9kYXRhLWNvbHVtbj5cbiAgICAgICAgICAgIDwvbmctY29udGFpbmVyPlxuICAgICAgICAgIDwvbmctY29udGFpbmVyPlxuICAgICAgICA8L2RhdGEtY29sdW1ucz5cbiAgICAgIDwvYWRmLWRvY3VtZW50LWxpc3Q+XG5cbiAgICAgIDxhZGYtcGFnaW5hdGlvbiBhY2FQYWdpbmF0aW9uIFt0YXJnZXRdPVwiZG9jdW1lbnRMaXN0XCI+IDwvYWRmLXBhZ2luYXRpb24+XG4gICAgPC9kaXY+XG5cbiAgICA8ZGl2IGNsYXNzPVwic2lkZWJhclwiICpuZ0lmPVwiaW5mb0RyYXdlck9wZW5lZCQgfCBhc3luY1wiPlxuICAgICAgPGFjYS1pbmZvLWRyYXdlciBbbm9kZV09XCJzZWxlY3Rpb24ubGFzdFwiPjwvYWNhLWluZm8tZHJhd2VyPlxuICAgIDwvZGl2PlxuICA8L2FjYS1wYWdlLWxheW91dC1jb250ZW50PlxuPC9hY2EtcGFnZS1sYXlvdXQ+XG4iXX0=
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright © 2005-2023 Hyland Software, Inc. and its affiliates. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
* Alfresco Example Content Application
|
|
5
|
+
*
|
|
6
|
+
* This file is part of the Alfresco Example Content Application.
|
|
7
|
+
* If the software was purchased under a paid Alfresco license, the terms of
|
|
8
|
+
* the paid license agreement will prevail. Otherwise, the software is
|
|
9
|
+
* provided under the following open source license terms:
|
|
10
|
+
*
|
|
11
|
+
* The Alfresco Example Content Application is free software: you can redistribute it and/or modify
|
|
12
|
+
* it under the terms of the GNU Lesser General Public License as published by
|
|
13
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
14
|
+
* (at your option) any later version.
|
|
15
|
+
*
|
|
16
|
+
* The Alfresco Example Content Application is distributed in the hope that it will be useful,
|
|
17
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
18
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
19
|
+
* GNU Lesser General Public License for more details.
|
|
20
|
+
*
|
|
21
|
+
* You should have received a copy of the GNU Lesser General Public License
|
|
22
|
+
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
|
|
23
|
+
*/
|
|
24
|
+
import { SearchQueryBuilderService } from '@alfresco/adf-content-services';
|
|
25
|
+
import { Component, Output, ViewEncapsulation, EventEmitter } from '@angular/core';
|
|
26
|
+
import * as i0 from "@angular/core";
|
|
27
|
+
import * as i1 from "@alfresco/adf-content-services";
|
|
28
|
+
import * as i2 from "@angular/common";
|
|
29
|
+
import * as i3 from "@angular/material/button";
|
|
30
|
+
import * as i4 from "@angular/material/icon";
|
|
31
|
+
import * as i5 from "@angular/material/menu";
|
|
32
|
+
import * as i6 from "@ngx-translate/core";
|
|
33
|
+
export class SearchActionMenuComponent {
|
|
34
|
+
constructor(queryBuilder) {
|
|
35
|
+
this.queryBuilder = queryBuilder;
|
|
36
|
+
this.sortingSelected = new EventEmitter();
|
|
37
|
+
this.options = [];
|
|
38
|
+
}
|
|
39
|
+
ngOnInit() {
|
|
40
|
+
this.options = this.queryBuilder.getSortingOptions();
|
|
41
|
+
}
|
|
42
|
+
onAscSortingClicked(option) {
|
|
43
|
+
option.ascending = true;
|
|
44
|
+
this.sortingSelected.emit(option);
|
|
45
|
+
}
|
|
46
|
+
onDescSortingClicked(option) {
|
|
47
|
+
option.ascending = false;
|
|
48
|
+
this.sortingSelected.emit(option);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
SearchActionMenuComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: SearchActionMenuComponent, deps: [{ token: i1.SearchQueryBuilderService }], target: i0.ɵɵFactoryTarget.Component });
|
|
52
|
+
SearchActionMenuComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.3", type: SearchActionMenuComponent, selector: "aca-search-action-menu", outputs: { sortingSelected: "sortingSelected" }, ngImport: i0, template: "<button mat-icon-button [matMenuTriggerFor]=\"dataSorting\" id=\"aca-button-action-menu\" aria-label=\"Search action menu\">\n <mat-icon>more_vert</mat-icon>\n</button>\n\n<mat-menu #dataSorting=\"matMenu\">\n <button mat-menu-item [matMenuTriggerFor]=\"sorting\" id=\"aca-button-sorting-menu\">{{ 'SEARCH.SORT.SORTING_OPTION' | translate }}</button>\n</mat-menu>\n\n<mat-menu #sorting=\"matMenu\">\n <ng-template matMenuContent>\n <button\n mat-menu-item\n *ngFor=\"let option of options\"\n [id]=\"option.key + '-sorting-option'\"\n [matMenuTriggerFor]=\"direction\"\n [matMenuTriggerData]=\"{ option: option }\"\n >\n {{ option.label | translate }}\n </button>\n </ng-template>\n</mat-menu>\n\n<mat-menu #direction=\"matMenu\">\n <ng-template matMenuContent let-option=\"option\">\n <button mat-menu-item [id]=\"option.key + '-sorting-option-asc'\" (click)=\"onAscSortingClicked(option)\">\n {{ 'SEARCH.SORT.ASCENDING' | translate }}\n </button>\n <button mat-menu-item [id]=\"option.key + '-sorting-option-desc'\" (click)=\"onDescSortingClicked(option)\">\n {{ 'SEARCH.SORT.DESCENDING' | translate }}\n </button>\n </ng-template>\n</mat-menu>\n", dependencies: [{ kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "component", type: i3.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: i4.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: i5.MatMenu, selector: "mat-menu", exportAs: ["matMenu"] }, { kind: "component", type: i5.MatMenuItem, selector: "[mat-menu-item]", inputs: ["disabled", "disableRipple", "role"], exportAs: ["matMenuItem"] }, { kind: "directive", type: i5.MatMenuTrigger, selector: "[mat-menu-trigger-for], [matMenuTriggerFor]", exportAs: ["matMenuTrigger"] }, { kind: "directive", type: i5.MatMenuContent, selector: "ng-template[matMenuContent]" }, { kind: "pipe", type: i6.TranslatePipe, name: "translate" }], encapsulation: i0.ViewEncapsulation.None });
|
|
53
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: SearchActionMenuComponent, decorators: [{
|
|
54
|
+
type: Component,
|
|
55
|
+
args: [{ selector: 'aca-search-action-menu', encapsulation: ViewEncapsulation.None, template: "<button mat-icon-button [matMenuTriggerFor]=\"dataSorting\" id=\"aca-button-action-menu\" aria-label=\"Search action menu\">\n <mat-icon>more_vert</mat-icon>\n</button>\n\n<mat-menu #dataSorting=\"matMenu\">\n <button mat-menu-item [matMenuTriggerFor]=\"sorting\" id=\"aca-button-sorting-menu\">{{ 'SEARCH.SORT.SORTING_OPTION' | translate }}</button>\n</mat-menu>\n\n<mat-menu #sorting=\"matMenu\">\n <ng-template matMenuContent>\n <button\n mat-menu-item\n *ngFor=\"let option of options\"\n [id]=\"option.key + '-sorting-option'\"\n [matMenuTriggerFor]=\"direction\"\n [matMenuTriggerData]=\"{ option: option }\"\n >\n {{ option.label | translate }}\n </button>\n </ng-template>\n</mat-menu>\n\n<mat-menu #direction=\"matMenu\">\n <ng-template matMenuContent let-option=\"option\">\n <button mat-menu-item [id]=\"option.key + '-sorting-option-asc'\" (click)=\"onAscSortingClicked(option)\">\n {{ 'SEARCH.SORT.ASCENDING' | translate }}\n </button>\n <button mat-menu-item [id]=\"option.key + '-sorting-option-desc'\" (click)=\"onDescSortingClicked(option)\">\n {{ 'SEARCH.SORT.DESCENDING' | translate }}\n </button>\n </ng-template>\n</mat-menu>\n" }]
|
|
56
|
+
}], ctorParameters: function () { return [{ type: i1.SearchQueryBuilderService }]; }, propDecorators: { sortingSelected: [{
|
|
57
|
+
type: Output
|
|
58
|
+
}] } });
|
|
59
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2VhcmNoLWFjdGlvbi1tZW51LmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2FjYS1jb250ZW50L3NyYy9saWIvY29tcG9uZW50cy9zZWFyY2gvc2VhcmNoLWFjdGlvbi1tZW51L3NlYXJjaC1hY3Rpb24tbWVudS5jb21wb25lbnQudHMiLCIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9hY2EtY29udGVudC9zcmMvbGliL2NvbXBvbmVudHMvc2VhcmNoL3NlYXJjaC1hY3Rpb24tbWVudS9zZWFyY2gtYWN0aW9uLW1lbnUuY29tcG9uZW50Lmh0bWw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