@alfresco/aca-shared 4.0.0 → 4.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2020/lib/adf-extensions/extensions-data-loader.guard.mjs +3 -3
- package/esm2020/lib/components/document-base-page/document-base-page.component.mjs +24 -16
- package/esm2020/lib/components/generic-error/generic-error.component.mjs +7 -5
- package/esm2020/lib/components/info-drawer/info-drawer.component.mjs +15 -9
- package/esm2020/lib/components/locked-by/locked-by.component.mjs +12 -10
- package/esm2020/lib/components/open-in-app/open-in-app.component.mjs +12 -7
- package/esm2020/lib/components/open-in-app/open-in-app.module.mjs +45 -0
- package/esm2020/lib/components/page-layout/page-layout-content.component.mjs +3 -3
- package/esm2020/lib/components/page-layout/page-layout-error.component.mjs +3 -3
- package/esm2020/lib/components/page-layout/page-layout-header.component.mjs +3 -3
- package/esm2020/lib/components/page-layout/page-layout.component.mjs +5 -5
- package/esm2020/lib/components/page-layout/page-layout.module.mjs +4 -4
- package/esm2020/lib/components/tool-bar/shared-toolbar.module.mjs +4 -4
- package/esm2020/lib/components/tool-bar/toolbar-action/toolbar-action.component.mjs +3 -3
- package/esm2020/lib/components/tool-bar/toolbar-button/toolbar-button.component.mjs +6 -5
- package/esm2020/lib/components/tool-bar/toolbar-menu/toolbar-menu.component.mjs +10 -7
- package/esm2020/lib/components/tool-bar/toolbar-menu-item/toolbar-menu-item.component.mjs +4 -4
- package/esm2020/lib/directives/contextmenu/contextmenu.directive.mjs +3 -3
- package/esm2020/lib/directives/contextmenu/contextmenu.module.mjs +4 -4
- package/esm2020/lib/directives/pagination.directive.mjs +3 -3
- package/esm2020/lib/directives/shared.directives.module.mjs +4 -4
- package/esm2020/lib/routing/shared.guard.mjs +7 -7
- package/esm2020/lib/services/aca-file-auto-download.service.mjs +3 -3
- package/esm2020/lib/services/aca-mobile-app-switcher.service.mjs +27 -16
- package/esm2020/lib/services/alfresco-office-extension.service.mjs +3 -3
- package/esm2020/lib/services/app-hook.service.mjs +3 -3
- package/esm2020/lib/services/app.extension.service.mjs +3 -3
- package/esm2020/lib/services/app.service.mjs +20 -15
- package/esm2020/lib/services/content-api.service.mjs +3 -3
- package/esm2020/lib/services/node-permission.service.mjs +3 -3
- package/esm2020/lib/services/router.extension.service.mjs +3 -3
- package/esm2020/lib/shared.module.mjs +6 -17
- package/esm2020/lib/testing/lib-testing-module.mjs +8 -7
- package/esm2020/public-api.mjs +3 -4
- package/esm2020/store/effects/dialog.effects.mjs +3 -3
- package/esm2020/store/effects/router.effects.mjs +3 -3
- package/esm2020/store/effects/snackbar.effects.mjs +3 -3
- package/esm2020/store/store.module.mjs +4 -4
- package/fesm2015/alfresco-aca-shared-store.mjs +13 -13
- package/fesm2015/alfresco-aca-shared.mjs +241 -285
- package/fesm2015/alfresco-aca-shared.mjs.map +1 -1
- package/fesm2020/alfresco-aca-shared-store.mjs +13 -13
- package/fesm2020/alfresco-aca-shared.mjs +239 -283
- package/fesm2020/alfresco-aca-shared.mjs.map +1 -1
- package/lib/components/document-base-page/document-base-page.component.d.ts +11 -7
- package/lib/components/generic-error/generic-error.component.d.ts +1 -1
- package/lib/components/info-drawer/info-drawer.component.d.ts +1 -1
- package/lib/components/locked-by/locked-by.component.d.ts +28 -3
- package/lib/components/open-in-app/open-in-app.component.d.ts +3 -0
- package/lib/components/open-in-app/open-in-app.module.d.ts +12 -0
- package/lib/components/tool-bar/toolbar-button/toolbar-button.component.d.ts +1 -0
- package/lib/components/tool-bar/toolbar-menu/toolbar-menu.component.d.ts +4 -3
- package/lib/routing/shared.guard.d.ts +3 -3
- package/lib/services/aca-mobile-app-switcher.service.d.ts +5 -1
- package/lib/services/app.service.d.ts +1 -0
- package/lib/shared.module.d.ts +6 -32
- package/lib/testing/lib-testing-module.d.ts +1 -1
- package/package.json +11 -12
- package/public-api.d.ts +2 -3
- package/esm2020/lib/components/generic-error/generic-error.module.mjs +0 -44
- package/esm2020/lib/components/info-drawer/shared-info-drawer.module.mjs +0 -46
- package/esm2020/lib/components/locked-by/locked-by.module.mjs +0 -44
- package/lib/components/generic-error/generic-error.module.d.ts +0 -10
- package/lib/components/info-drawer/shared-info-drawer.module.d.ts +0 -13
- package/lib/components/locked-by/locked-by.module.d.ts +0 -10
|
@@ -1,36 +1,38 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { InjectionToken, Injectable, Inject, Component, ViewEncapsulation, ChangeDetectionStrategy, Input, HostBinding, NgModule, ViewChild, QueryList, ViewChildren, HostListener, Directive } from '@angular/core';
|
|
2
|
+
import { InjectionToken, Injectable, Inject, Component, ViewEncapsulation, ChangeDetectionStrategy, Input, HostBinding, NgModule, ViewChild, QueryList, ViewChildren, HostListener, inject, Directive } from '@angular/core';
|
|
3
3
|
import { of, forkJoin, from, BehaviorSubject, Subject } from 'rxjs';
|
|
4
4
|
import { map, tap, catchError, filter, takeUntil, debounceTime, take } from 'rxjs/operators';
|
|
5
5
|
import * as i1 from '@alfresco/adf-core';
|
|
6
6
|
import { CoreModule, InfoDrawerModule, ToolbarModule, ShowHeaderMode, PipeModule, AlfrescoApiService, AlfrescoApiServiceMock, TranslationService, TranslationMock, TranslateLoaderService } from '@alfresco/adf-core';
|
|
7
|
-
import * as i4 from '@alfresco/adf-content-services';
|
|
8
|
-
import { FileAutoDownloadComponent, DocumentListComponent } from '@alfresco/adf-content-services';
|
|
7
|
+
import * as i4$1 from '@alfresco/adf-content-services';
|
|
8
|
+
import { FileAutoDownloadComponent, UploadService, DocumentListComponent } from '@alfresco/adf-content-services';
|
|
9
9
|
import * as i7 from '@angular/cdk/overlay';
|
|
10
10
|
import * as i3 from '@angular/router';
|
|
11
|
-
import { ActivationEnd, NavigationStart } from '@angular/router';
|
|
11
|
+
import { ActivationEnd, NavigationStart, Router } from '@angular/router';
|
|
12
12
|
import { CloseModalDialogsAction, SetCurrentUrlAction, ResetSelectionAction, SnackbarErrorAction, SetRepositoryInfoAction, SetUserProfileAction, SetInitialStateAction, getCustomCssPath, getCustomWebFontPath, STORE_INITIAL_APP_DATA, getRuleContext, infoDrawerPreview, SetInfoDrawerStateAction, ToggleInfoDrawerAction, getSharedUrl, isInfoDrawerOpened, getDocumentDisplayMode, getAppSelection, getCurrentFolder, SetSelectedNodesAction, ViewNodeAction, ReloadDocumentListAction, ContextMenu, isQuickShareEnabled } from '@alfresco/aca-shared/store';
|
|
13
13
|
import { NodesApi, TrashcanApi, SharedlinksApi, DiscoveryApi, FavoritesApi, ContentApi, SitesApi, SearchApi, PeopleApi, VersionsApi } from '@alfresco/js-api';
|
|
14
14
|
import * as i3$1 from '@alfresco/adf-extensions';
|
|
15
15
|
import { sortByOrder, reduceEmptyMenus, mergeObjects, mergeArrays, ContentActionType, reduceSeparators, ExtensionsModule } from '@alfresco/adf-extensions';
|
|
16
16
|
import * as i1$2 from '@ngrx/store';
|
|
17
|
-
import { StoreModule } from '@ngrx/store';
|
|
17
|
+
import { Store, StoreModule } from '@ngrx/store';
|
|
18
18
|
import * as i1$1 from '@angular/material/dialog';
|
|
19
19
|
import { MAT_DIALOG_DATA, MatDialogModule } from '@angular/material/dialog';
|
|
20
|
-
import * as i2 from '@angular/
|
|
21
|
-
import {
|
|
20
|
+
import * as i2 from '@angular/common';
|
|
21
|
+
import { CommonModule } from '@angular/common';
|
|
22
22
|
import * as i3$2 from '@angular/material/icon';
|
|
23
23
|
import { MatIconModule } from '@angular/material/icon';
|
|
24
|
-
import * as
|
|
24
|
+
import * as i4 from '@angular/material/button';
|
|
25
|
+
import { MatButtonModule } from '@angular/material/button';
|
|
26
|
+
import * as i5 from '@ngx-translate/core';
|
|
25
27
|
import { TranslateModule, TranslateLoader } from '@ngx-translate/core';
|
|
26
|
-
import * as i2$2 from '@angular/common';
|
|
27
|
-
import { CommonModule } from '@angular/common';
|
|
28
28
|
import * as i6 from '@angular/platform-browser';
|
|
29
|
-
import
|
|
29
|
+
import { BrowserModule } from '@angular/platform-browser';
|
|
30
|
+
import * as i4$2 from '@angular/material/menu';
|
|
30
31
|
import { MatMenuItem, MatMenu } from '@angular/material/menu';
|
|
31
32
|
import * as i3$3 from '@angular/material/divider';
|
|
32
33
|
import * as i6$1 from '@angular/material/progress-bar';
|
|
33
34
|
import { MatProgressBarModule } from '@angular/material/progress-bar';
|
|
35
|
+
import { BreakpointObserver, Breakpoints } from '@angular/cdk/layout';
|
|
34
36
|
import { NoopAnimationsModule } from '@angular/platform-browser/animations';
|
|
35
37
|
import { HttpClientModule } from '@angular/common/http';
|
|
36
38
|
import { RouterTestingModule } from '@angular/router/testing';
|
|
@@ -96,9 +98,9 @@ class ExtensionsDataLoaderGuard {
|
|
|
96
98
|
return of(true);
|
|
97
99
|
}
|
|
98
100
|
}
|
|
99
|
-
ExtensionsDataLoaderGuard.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.
|
|
100
|
-
ExtensionsDataLoaderGuard.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.1.
|
|
101
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.
|
|
101
|
+
ExtensionsDataLoaderGuard.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: ExtensionsDataLoaderGuard, deps: [{ token: EXTENSION_DATA_LOADERS }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
102
|
+
ExtensionsDataLoaderGuard.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: ExtensionsDataLoaderGuard, providedIn: 'root' });
|
|
103
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: ExtensionsDataLoaderGuard, decorators: [{
|
|
102
104
|
type: Injectable,
|
|
103
105
|
args: [{ providedIn: 'root' }]
|
|
104
106
|
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
@@ -134,9 +136,9 @@ class PageLayoutContentComponent {
|
|
|
134
136
|
this.scrollable = false;
|
|
135
137
|
}
|
|
136
138
|
}
|
|
137
|
-
PageLayoutContentComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.
|
|
138
|
-
PageLayoutContentComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.
|
|
139
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.
|
|
139
|
+
PageLayoutContentComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: PageLayoutContentComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
140
|
+
PageLayoutContentComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.3", type: PageLayoutContentComponent, selector: "aca-page-layout-content", inputs: { scrollable: "scrollable" }, host: { properties: { "class.scrollable": "this.scrollable" }, classAttribute: "aca-page-layout-content" }, ngImport: i0, template: `<ng-content></ng-content>`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
141
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: PageLayoutContentComponent, decorators: [{
|
|
140
142
|
type: Component,
|
|
141
143
|
args: [{
|
|
142
144
|
selector: 'aca-page-layout-content',
|
|
@@ -177,9 +179,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImpor
|
|
|
177
179
|
*/
|
|
178
180
|
class PageLayoutErrorComponent {
|
|
179
181
|
}
|
|
180
|
-
PageLayoutErrorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.
|
|
181
|
-
PageLayoutErrorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.
|
|
182
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.
|
|
182
|
+
PageLayoutErrorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: PageLayoutErrorComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
183
|
+
PageLayoutErrorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.3", type: PageLayoutErrorComponent, selector: "aca-page-layout-error", host: { classAttribute: "aca-page-layout-error" }, ngImport: i0, template: `<ng-content></ng-content>`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
184
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: PageLayoutErrorComponent, decorators: [{
|
|
183
185
|
type: Component,
|
|
184
186
|
args: [{
|
|
185
187
|
selector: 'aca-page-layout-error',
|
|
@@ -215,9 +217,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImpor
|
|
|
215
217
|
*/
|
|
216
218
|
class PageLayoutHeaderComponent {
|
|
217
219
|
}
|
|
218
|
-
PageLayoutHeaderComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.
|
|
219
|
-
PageLayoutHeaderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.
|
|
220
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.
|
|
220
|
+
PageLayoutHeaderComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: PageLayoutHeaderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
221
|
+
PageLayoutHeaderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.3", type: PageLayoutHeaderComponent, selector: "aca-page-layout-header", host: { classAttribute: "aca-page-layout-header" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
222
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: PageLayoutHeaderComponent, decorators: [{
|
|
221
223
|
type: Component,
|
|
222
224
|
args: [{
|
|
223
225
|
selector: 'aca-page-layout-header',
|
|
@@ -478,9 +480,9 @@ class ContentApiService {
|
|
|
478
480
|
return from(this.versionsApi.requestDirectAccessUrl(nodeId, versionId));
|
|
479
481
|
}
|
|
480
482
|
}
|
|
481
|
-
ContentApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.
|
|
482
|
-
ContentApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.1.
|
|
483
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.
|
|
483
|
+
ContentApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: ContentApiService, deps: [{ token: i1.AlfrescoApiService }, { token: i1.UserPreferencesService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
484
|
+
ContentApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: ContentApiService, providedIn: 'root' });
|
|
485
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: ContentApiService, decorators: [{
|
|
484
486
|
type: Injectable,
|
|
485
487
|
args: [{
|
|
486
488
|
providedIn: 'root'
|
|
@@ -577,9 +579,9 @@ class RouterExtensionService {
|
|
|
577
579
|
return this.router.config[routeIndex];
|
|
578
580
|
}
|
|
579
581
|
}
|
|
580
|
-
RouterExtensionService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.
|
|
581
|
-
RouterExtensionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.1.
|
|
582
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.
|
|
582
|
+
RouterExtensionService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: RouterExtensionService, deps: [{ token: i3.Router }, { token: i3$1.ExtensionService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
583
|
+
RouterExtensionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: RouterExtensionService, providedIn: 'root' });
|
|
584
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: RouterExtensionService, decorators: [{
|
|
583
585
|
type: Injectable,
|
|
584
586
|
args: [{
|
|
585
587
|
providedIn: 'root'
|
|
@@ -616,22 +618,26 @@ class OpenInAppComponent {
|
|
|
616
618
|
this.window = window;
|
|
617
619
|
if (data) {
|
|
618
620
|
this.redirectUrl = data.redirectUrl;
|
|
621
|
+
this.appStoreUrl = data.appStoreUrl;
|
|
619
622
|
}
|
|
620
623
|
}
|
|
621
624
|
openInApp() {
|
|
622
625
|
this.window.location.href = this.redirectUrl;
|
|
623
626
|
}
|
|
627
|
+
downloadIosApp() {
|
|
628
|
+
this.window.location.href = this.appStoreUrl;
|
|
629
|
+
}
|
|
624
630
|
onCloseDialog() {
|
|
625
631
|
const time = new Date().getTime();
|
|
626
632
|
sessionStorage.setItem('mobile_notification_expires_in', time.toString());
|
|
627
633
|
this.dialog.close();
|
|
628
634
|
}
|
|
629
635
|
}
|
|
630
|
-
OpenInAppComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.
|
|
631
|
-
OpenInAppComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.
|
|
632
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.
|
|
636
|
+
OpenInAppComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: OpenInAppComponent, deps: [{ token: MAT_DIALOG_DATA }, { token: i1$1.MatDialogRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
637
|
+
OpenInAppComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.3", type: OpenInAppComponent, selector: "aca-open-in-app", ngImport: i0, template: "<div class=\"alfresco-mobile-application-container\">\n <span>{{ 'APP.DIALOGS.MOBILE_APP.OPEN_ALFRESCO_MOBILE_APP' | translate }}</span>\n <button mat-button class=\"cross-button\" (click)=\"onCloseDialog()\">\n <mat-icon class=\"cross-icon\">close</mat-icon>\n </button>\n</div>\n\n<div class=\"open-in-app-container\">\n <button mat-button (click)=\"openInApp()\" data-automation-id=\"open-in-app-button\" class=\"open-in-app\" cdkFocusInitial>\n <span>{{ 'APP.DIALOGS.MOBILE_APP.MOBILE_APP_BUTTON_LABEL' | translate }}</span>\n </button>\n</div>\n\n<div class=\"download-app-container\" *ngIf=\"appStoreUrl\">\n <button mat-button data-automation-id=\"download-app-button\" class=\"download-app-button\" (click)=\"downloadIosApp()\">\n <span>{{ 'APP.DIALOGS.MOBILE_APP.DOWNLOAD_APP_BUTTON_LABEL' | translate }}</span>\n </button>\n</div>\n", styles: ["aca-open-in-app .open-in-app-container{display:flex;place-content:center;padding:0;border-radius:8px;background-color:var(--theme-primary-color);color:var(--theme-about-panel-background-color);margin-top:12px}aca-open-in-app .open-in-app{overflow-x:hidden;font-size:16px;width:100%;padding:0;height:48px}aca-open-in-app .open-in-app:focus-visible{outline:none;border-radius:unset}aca-open-in-app .download-app-container{display:flex;place-content:center;margin-top:12px}aca-open-in-app .alfresco-mobile-application-container{display:flex;flex-direction:row;justify-content:space-between;align-items:center;font-size:14px;padding:6px 0}aca-open-in-app .cross-button{padding-right:0}aca-open-in-app .cross-button:focus-visible{outline:none;border-radius:unset}aca-open-in-app .cross-icon{font-weight:700;font-size:21px;height:21px}aca-open-in-app .download-app-button{background:var(--theme-dialog-background-color);color:var(--theme-primary-color);font-size:14px}aca-open-in-app .mat-dialog-container{padding:8px 24px 24px}\n"], dependencies: [{ kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i3$2.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { 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: "pipe", type: i5.TranslatePipe, name: "translate" }], encapsulation: i0.ViewEncapsulation.None });
|
|
638
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: OpenInAppComponent, decorators: [{
|
|
633
639
|
type: Component,
|
|
634
|
-
args: [{ selector: 'aca-open-in-app', encapsulation: ViewEncapsulation.None, template: "<div class=\"container\">\n <button mat-button (click)=\"openInApp()\" data-automation-id=\"open-in-app-button\" class=\"open-in-app\">\n <span>{{ 'APP.DIALOGS.MOBILE_APP.MOBILE_APP_BUTTON_LABEL' | translate }}</span>\n </button>\n <button mat-button (click)=\"
|
|
640
|
+
args: [{ selector: 'aca-open-in-app', encapsulation: ViewEncapsulation.None, template: "<div class=\"alfresco-mobile-application-container\">\n <span>{{ 'APP.DIALOGS.MOBILE_APP.OPEN_ALFRESCO_MOBILE_APP' | translate }}</span>\n <button mat-button class=\"cross-button\" (click)=\"onCloseDialog()\">\n <mat-icon class=\"cross-icon\">close</mat-icon>\n </button>\n</div>\n\n<div class=\"open-in-app-container\">\n <button mat-button (click)=\"openInApp()\" data-automation-id=\"open-in-app-button\" class=\"open-in-app\" cdkFocusInitial>\n <span>{{ 'APP.DIALOGS.MOBILE_APP.MOBILE_APP_BUTTON_LABEL' | translate }}</span>\n </button>\n</div>\n\n<div class=\"download-app-container\" *ngIf=\"appStoreUrl\">\n <button mat-button data-automation-id=\"download-app-button\" class=\"download-app-button\" (click)=\"downloadIosApp()\">\n <span>{{ 'APP.DIALOGS.MOBILE_APP.DOWNLOAD_APP_BUTTON_LABEL' | translate }}</span>\n </button>\n</div>\n", styles: ["aca-open-in-app .open-in-app-container{display:flex;place-content:center;padding:0;border-radius:8px;background-color:var(--theme-primary-color);color:var(--theme-about-panel-background-color);margin-top:12px}aca-open-in-app .open-in-app{overflow-x:hidden;font-size:16px;width:100%;padding:0;height:48px}aca-open-in-app .open-in-app:focus-visible{outline:none;border-radius:unset}aca-open-in-app .download-app-container{display:flex;place-content:center;margin-top:12px}aca-open-in-app .alfresco-mobile-application-container{display:flex;flex-direction:row;justify-content:space-between;align-items:center;font-size:14px;padding:6px 0}aca-open-in-app .cross-button{padding-right:0}aca-open-in-app .cross-button:focus-visible{outline:none;border-radius:unset}aca-open-in-app .cross-icon{font-weight:700;font-size:21px;height:21px}aca-open-in-app .download-app-button{background:var(--theme-dialog-background-color);color:var(--theme-primary-color);font-size:14px}aca-open-in-app .mat-dialog-container{padding:8px 24px 24px}\n"] }]
|
|
635
641
|
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
636
642
|
type: Inject,
|
|
637
643
|
args: [MAT_DIALOG_DATA]
|
|
@@ -698,28 +704,33 @@ class AcaMobileAppSwitcherService {
|
|
|
698
704
|
identifyBrowserAndSetRedirectURL() {
|
|
699
705
|
const ua = navigator.userAgent.toLowerCase();
|
|
700
706
|
const isAndroid = ua.indexOf('android') > -1;
|
|
701
|
-
const
|
|
707
|
+
const isIPadInSafari = /Macintosh/i.test(ua) && navigator.maxTouchPoints && navigator.maxTouchPoints > 1;
|
|
708
|
+
const isIOS = ua.indexOf('iphone') > -1 || ua.indexOf('ipad') > -1 || ua.indexOf('ipod') > -1 || isIPadInSafari;
|
|
702
709
|
const currentUrl = this.getCurrentUrl();
|
|
703
710
|
if (isIOS === true) {
|
|
704
711
|
this.redirectUrl = this.mobileAppSwitchConfig.iphoneUrl + currentUrl;
|
|
712
|
+
this.appStoreUrl = this.mobileAppSwitchConfig.appStoreUrl;
|
|
705
713
|
}
|
|
706
714
|
else if (isAndroid === true) {
|
|
707
715
|
this.redirectUrl = this.mobileAppSwitchConfig.androidUrlPart1 + currentUrl + this.mobileAppSwitchConfig.androidUrlPart2;
|
|
708
716
|
}
|
|
709
717
|
if (this.redirectUrl !== undefined && this.redirectUrl !== null) {
|
|
710
|
-
this.openDialog(this.redirectUrl);
|
|
711
|
-
}
|
|
712
|
-
}
|
|
713
|
-
openDialog(redirectUrl) {
|
|
714
|
-
this.
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
718
|
+
this.openDialog(this.redirectUrl, this.appStoreUrl);
|
|
719
|
+
}
|
|
720
|
+
}
|
|
721
|
+
openDialog(redirectUrl, appStoreUrl) {
|
|
722
|
+
if (!this.dialogRef) {
|
|
723
|
+
this.dialogRef = this.dialog.open(OpenInAppComponent, {
|
|
724
|
+
data: {
|
|
725
|
+
redirectUrl,
|
|
726
|
+
appStoreUrl
|
|
727
|
+
},
|
|
728
|
+
hasBackdrop: false,
|
|
729
|
+
width: '100%',
|
|
730
|
+
role: 'dialog',
|
|
731
|
+
position: { bottom: '0' }
|
|
732
|
+
});
|
|
733
|
+
}
|
|
723
734
|
}
|
|
724
735
|
clearSessionExpireTime() {
|
|
725
736
|
sessionStorage.removeItem('mobile_notification_expires_in');
|
|
@@ -727,10 +738,16 @@ class AcaMobileAppSwitcherService {
|
|
|
727
738
|
getCurrentUrl() {
|
|
728
739
|
return window.location.href;
|
|
729
740
|
}
|
|
741
|
+
closeDialog() {
|
|
742
|
+
if (this.dialogRef) {
|
|
743
|
+
this.dialog.closeAll();
|
|
744
|
+
this.dialogRef = null;
|
|
745
|
+
}
|
|
746
|
+
}
|
|
730
747
|
}
|
|
731
|
-
AcaMobileAppSwitcherService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.
|
|
732
|
-
AcaMobileAppSwitcherService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.1.
|
|
733
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.
|
|
748
|
+
AcaMobileAppSwitcherService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: AcaMobileAppSwitcherService, deps: [{ token: i1.AppConfigService }, { token: i1$1.MatDialog }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
749
|
+
AcaMobileAppSwitcherService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: AcaMobileAppSwitcherService, providedIn: 'root' });
|
|
750
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: AcaMobileAppSwitcherService, decorators: [{
|
|
734
751
|
type: Injectable,
|
|
735
752
|
args: [{
|
|
736
753
|
providedIn: 'root'
|
|
@@ -782,7 +799,7 @@ class AppService {
|
|
|
782
799
|
this.appNavNarMode$ = new BehaviorSubject('expanded');
|
|
783
800
|
this.toggleAppNavBar$ = new Subject();
|
|
784
801
|
this.hideSidenavConditions = ['/preview/'];
|
|
785
|
-
this.minimizeSidenavConditions = ['search'
|
|
802
|
+
this.minimizeSidenavConditions = ['search'];
|
|
786
803
|
this.onDestroy$ = new Subject();
|
|
787
804
|
this.ready = new BehaviorSubject(this.authenticationService.isLoggedIn() || this.withCredentials);
|
|
788
805
|
this.ready$ = this.ready.asObservable();
|
|
@@ -791,6 +808,8 @@ class AppService {
|
|
|
791
808
|
});
|
|
792
809
|
this.authenticationService.onLogout.subscribe(() => {
|
|
793
810
|
searchQueryBuilderService.resetToDefaults();
|
|
811
|
+
acaMobileAppSwitcherService.clearSessionExpireTime();
|
|
812
|
+
acaMobileAppSwitcherService.closeDialog();
|
|
794
813
|
});
|
|
795
814
|
this.pageHeading$ = this.router.events.pipe(filter((event) => event instanceof ActivationEnd && event.snapshot.children.length === 0), map((event) => event.snapshot?.data?.title ?? ''), tap((title) => this.pageTitle.setTitle(title)));
|
|
796
815
|
}
|
|
@@ -824,9 +843,7 @@ class AppService {
|
|
|
824
843
|
this.loadCustomCss();
|
|
825
844
|
this.loadCustomWebFont();
|
|
826
845
|
const { router } = this;
|
|
827
|
-
this.router.events
|
|
828
|
-
.pipe(filter((event) => event instanceof ActivationEnd && event.snapshot.children.length === 0))
|
|
829
|
-
.subscribe((_event) => {
|
|
846
|
+
this.router.events.pipe(filter((event) => event instanceof ActivationEnd && event.snapshot.children.length === 0)).subscribe(() => {
|
|
830
847
|
this.store.dispatch(new SetCurrentUrlAction(router.url));
|
|
831
848
|
});
|
|
832
849
|
this.router.events.pipe(filter((event) => event instanceof NavigationStart)).subscribe(() => {
|
|
@@ -843,16 +860,12 @@ class AppService {
|
|
|
843
860
|
if (isReady) {
|
|
844
861
|
this.loadRepositoryStatus();
|
|
845
862
|
this.loadUserProfile();
|
|
863
|
+
setTimeout(() => {
|
|
864
|
+
this.openMobileAppDialog();
|
|
865
|
+
});
|
|
846
866
|
}
|
|
847
867
|
});
|
|
848
868
|
this.overlayContainer.getContainerElement().setAttribute('role', 'region');
|
|
849
|
-
const isMobileSwitchEnabled = this.config.get('mobileAppSwitch.enabled', false);
|
|
850
|
-
if (isMobileSwitchEnabled) {
|
|
851
|
-
this.acaMobileAppSwitcherService.resolveExistenceOfDialog();
|
|
852
|
-
}
|
|
853
|
-
else {
|
|
854
|
-
this.acaMobileAppSwitcherService.clearSessionExpireTime();
|
|
855
|
-
}
|
|
856
869
|
}
|
|
857
870
|
loadRepositoryStatus() {
|
|
858
871
|
this.contentApi.getRepositoryInformation().subscribe((response) => {
|
|
@@ -926,18 +939,27 @@ class AppService {
|
|
|
926
939
|
cssLinkElement.setAttribute('href', url);
|
|
927
940
|
document.head.appendChild(cssLinkElement);
|
|
928
941
|
}
|
|
942
|
+
openMobileAppDialog() {
|
|
943
|
+
const isMobileSwitchEnabled = this.config.get('mobileAppSwitch.enabled', false);
|
|
944
|
+
if (isMobileSwitchEnabled) {
|
|
945
|
+
this.acaMobileAppSwitcherService.resolveExistenceOfDialog();
|
|
946
|
+
}
|
|
947
|
+
else {
|
|
948
|
+
this.acaMobileAppSwitcherService.clearSessionExpireTime();
|
|
949
|
+
}
|
|
950
|
+
}
|
|
929
951
|
}
|
|
930
|
-
AppService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.
|
|
931
|
-
AppService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.1.
|
|
932
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.
|
|
952
|
+
AppService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: AppService, deps: [{ token: i1.UserPreferencesService }, { token: i1.AuthenticationService }, { token: i1$2.Store }, { token: i3.Router }, { token: i3.ActivatedRoute }, { token: i1.AppConfigService }, { token: i1.PageTitleService }, { token: i1.AlfrescoApiService }, { token: i4$1.UploadService }, { token: RouterExtensionService }, { token: ContentApiService }, { token: i4$1.SharedLinksApiService }, { token: i4$1.GroupService }, { token: i7.OverlayContainer }, { token: STORE_INITIAL_APP_DATA }, { token: i4$1.SearchQueryBuilderService }, { token: AcaMobileAppSwitcherService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
953
|
+
AppService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: AppService, providedIn: 'root' });
|
|
954
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: AppService, decorators: [{
|
|
933
955
|
type: Injectable,
|
|
934
956
|
args: [{
|
|
935
957
|
providedIn: 'root'
|
|
936
958
|
}]
|
|
937
|
-
}], ctorParameters: function () { return [{ type: i1.UserPreferencesService }, { type: i1.AuthenticationService }, { type: i1$2.Store }, { type: i3.Router }, { type: i3.ActivatedRoute }, { type: i1.AppConfigService }, { type: i1.PageTitleService }, { type: i1.AlfrescoApiService }, { type: i4.UploadService }, { type: RouterExtensionService }, { type: ContentApiService }, { type: i4.SharedLinksApiService }, { type: i4.GroupService }, { type: i7.OverlayContainer }, { type: undefined, decorators: [{
|
|
959
|
+
}], ctorParameters: function () { return [{ type: i1.UserPreferencesService }, { type: i1.AuthenticationService }, { type: i1$2.Store }, { type: i3.Router }, { type: i3.ActivatedRoute }, { type: i1.AppConfigService }, { type: i1.PageTitleService }, { type: i1.AlfrescoApiService }, { type: i4$1.UploadService }, { type: RouterExtensionService }, { type: ContentApiService }, { type: i4$1.SharedLinksApiService }, { type: i4$1.GroupService }, { type: i7.OverlayContainer }, { type: undefined, decorators: [{
|
|
938
960
|
type: Inject,
|
|
939
961
|
args: [STORE_INITIAL_APP_DATA]
|
|
940
|
-
}] }, { type: i4.SearchQueryBuilderService }, { type: AcaMobileAppSwitcherService }]; } });
|
|
962
|
+
}] }, { type: i4$1.SearchQueryBuilderService }, { type: AcaMobileAppSwitcherService }]; } });
|
|
941
963
|
|
|
942
964
|
/*!
|
|
943
965
|
* Copyright © 2005-2023 Hyland Software, Inc. and its affiliates. All rights reserved.
|
|
@@ -977,11 +999,11 @@ class PageLayoutComponent {
|
|
|
977
999
|
this.onDestroy$.complete();
|
|
978
1000
|
}
|
|
979
1001
|
}
|
|
980
|
-
PageLayoutComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.
|
|
981
|
-
PageLayoutComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.
|
|
982
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.
|
|
1002
|
+
PageLayoutComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: PageLayoutComponent, deps: [{ token: AppService }], target: i0.ɵɵFactoryTarget.Component });
|
|
1003
|
+
PageLayoutComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.3", type: PageLayoutComponent, selector: "aca-page-layout", inputs: { hasError: "hasError" }, host: { classAttribute: "aca-page-layout" }, ngImport: i0, template: " <div class=\"aca-content-header\">\n <button *ngIf=\"(appNavNarMode$ | async) === 'collapsed'\"\n mat-icon-button\n (click)=\"toggleClick()\"\n title=\"{{'APP.TOOLTIPS.EXPAND_NAVIGATION' | translate}}\">\n <mat-icon>keyboard_double_arrow_right</mat-icon>\n </button>\n <ng-content select=\"aca-page-layout-header\"></ng-content>\n </div>\n <ng-content select=\"aca-page-layout-error\" *ngIf=\"hasError\"></ng-content>\n <ng-content select=\"aca-page-layout-content\" *ngIf=\"!hasError\"></ng-content>\n", styles: [".aca-page-layout{display:flex;flex-direction:column;flex:1;height:100%;overflow:hidden;min-height:0}.aca-page-layout .aca-content-header{background:var(--theme-page-layout-header-background-color);height:96px;padding:0 24px;display:flex;align-items:center}.aca-page-layout .aca-page-layout-header{display:flex;align-items:center;flex:auto;width:100%}.aca-page-layout .aca-page-layout-header .adf-breadcrumb-item{font-size:20px;font-weight:400;letter-spacing:.15px}.aca-page-layout .aca-page-layout-header .aca-toolbar-action .mat-button-base{display:flex;justify-content:center;align-items:center;border-radius:6px;height:32px;line-height:32px}.aca-page-layout .aca-page-layout-content,.aca-page-layout .aca-page-layout-error{display:flex;flex-direction:row;flex:1;height:100%;overflow:hidden}.aca-page-layout .main-content{display:flex;flex-direction:column;flex:1;height:100%;overflow:hidden;min-height:0}.aca-page-layout .scrollable,.aca-page-layout .scrollable .main-content{overflow:auto!important}[dir=rtl] .aca-page-layout .main-content{border-left:1px solid var(--theme-border-color, rgba(0, 0, 0, .07))}[dir=ltr] .aca-page-layout .main-content{border-right:1px solid var(--theme-border-color, rgba(0, 0, 0, .07))}\n"], dependencies: [{ kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i3$2.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { 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: "pipe", type: i2.AsyncPipe, name: "async" }, { kind: "pipe", type: i5.TranslatePipe, name: "translate" }], encapsulation: i0.ViewEncapsulation.None });
|
|
1004
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: PageLayoutComponent, decorators: [{
|
|
983
1005
|
type: Component,
|
|
984
|
-
args: [{ selector: 'aca-page-layout', encapsulation: ViewEncapsulation.None, host: { class: 'aca-page-layout' }, template: " <div class=\"aca-content-header\">\n <button *ngIf=\"(appNavNarMode$ | async) === 'collapsed'\"\n mat-icon-button\n (click)=\"toggleClick()\"\n title=\"{{'APP.TOOLTIPS.EXPAND_NAVIGATION' | translate}}\">\n <mat-icon>
|
|
1006
|
+
args: [{ selector: 'aca-page-layout', encapsulation: ViewEncapsulation.None, host: { class: 'aca-page-layout' }, template: " <div class=\"aca-content-header\">\n <button *ngIf=\"(appNavNarMode$ | async) === 'collapsed'\"\n mat-icon-button\n (click)=\"toggleClick()\"\n title=\"{{'APP.TOOLTIPS.EXPAND_NAVIGATION' | translate}}\">\n <mat-icon>keyboard_double_arrow_right</mat-icon>\n </button>\n <ng-content select=\"aca-page-layout-header\"></ng-content>\n </div>\n <ng-content select=\"aca-page-layout-error\" *ngIf=\"hasError\"></ng-content>\n <ng-content select=\"aca-page-layout-content\" *ngIf=\"!hasError\"></ng-content>\n", styles: [".aca-page-layout{display:flex;flex-direction:column;flex:1;height:100%;overflow:hidden;min-height:0}.aca-page-layout .aca-content-header{background:var(--theme-page-layout-header-background-color);height:96px;padding:0 24px;display:flex;align-items:center}.aca-page-layout .aca-page-layout-header{display:flex;align-items:center;flex:auto;width:100%}.aca-page-layout .aca-page-layout-header .adf-breadcrumb-item{font-size:20px;font-weight:400;letter-spacing:.15px}.aca-page-layout .aca-page-layout-header .aca-toolbar-action .mat-button-base{display:flex;justify-content:center;align-items:center;border-radius:6px;height:32px;line-height:32px}.aca-page-layout .aca-page-layout-content,.aca-page-layout .aca-page-layout-error{display:flex;flex-direction:row;flex:1;height:100%;overflow:hidden}.aca-page-layout .main-content{display:flex;flex-direction:column;flex:1;height:100%;overflow:hidden;min-height:0}.aca-page-layout .scrollable,.aca-page-layout .scrollable .main-content{overflow:auto!important}[dir=rtl] .aca-page-layout .main-content{border-left:1px solid var(--theme-border-color, rgba(0, 0, 0, .07))}[dir=ltr] .aca-page-layout .main-content{border-right:1px solid var(--theme-border-color, rgba(0, 0, 0, .07))}\n"] }]
|
|
985
1007
|
}], ctorParameters: function () { return [{ type: AppService }]; }, propDecorators: { hasError: [{
|
|
986
1008
|
type: Input
|
|
987
1009
|
}] } });
|
|
@@ -1011,10 +1033,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImpor
|
|
|
1011
1033
|
*/
|
|
1012
1034
|
class PageLayoutModule {
|
|
1013
1035
|
}
|
|
1014
|
-
PageLayoutModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.
|
|
1015
|
-
PageLayoutModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.1.
|
|
1016
|
-
PageLayoutModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.1.
|
|
1017
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.
|
|
1036
|
+
PageLayoutModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: PageLayoutModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1037
|
+
PageLayoutModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.1.3", ngImport: i0, type: PageLayoutModule, declarations: [PageLayoutContentComponent, PageLayoutErrorComponent, PageLayoutHeaderComponent, PageLayoutComponent], imports: [CommonModule, MatIconModule, TranslateModule, MatButtonModule], exports: [PageLayoutContentComponent, PageLayoutErrorComponent, PageLayoutHeaderComponent, PageLayoutComponent] });
|
|
1038
|
+
PageLayoutModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: PageLayoutModule, imports: [CommonModule, MatIconModule, TranslateModule, MatButtonModule] });
|
|
1039
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: PageLayoutModule, decorators: [{
|
|
1018
1040
|
type: NgModule,
|
|
1019
1041
|
args: [{
|
|
1020
1042
|
imports: [CommonModule, MatIconModule, TranslateModule, MatButtonModule],
|
|
@@ -1047,19 +1069,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImpor
|
|
|
1047
1069
|
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
|
|
1048
1070
|
*/
|
|
1049
1071
|
class LockedByComponent {
|
|
1050
|
-
|
|
1051
|
-
|
|
1072
|
+
ngOnInit() {
|
|
1073
|
+
this.text = this.node?.entry?.properties?.['cm:lockOwner']?.displayName;
|
|
1052
1074
|
}
|
|
1053
1075
|
}
|
|
1054
|
-
LockedByComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.
|
|
1055
|
-
LockedByComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.
|
|
1076
|
+
LockedByComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: LockedByComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1077
|
+
LockedByComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.3", type: LockedByComponent, isStandalone: true, selector: "aca-locked-by", inputs: { node: "node" }, host: { classAttribute: "aca-locked-by" }, ngImport: i0, template: `
|
|
1056
1078
|
<mat-icon class="locked_by--icon">lock</mat-icon>
|
|
1057
1079
|
<span class="locked_by--label">{{ 'APP.LOCKED_BY' | translate }}</span>
|
|
1058
1080
|
<span class="locked_by--name">{{ text }}</span>
|
|
1059
|
-
`, isInline: true, styles: [".aca-locked-by{display:flex;align-items:center;color:var(--theme-text-color, rgba(0, 0, 0, .54))}.aca-locked-by .locked_by--icon{font-size:14px;width:14px;height:14px}.aca-locked-by .locked_by--label,.aca-locked-by .locked_by--name{font-size:12px;padding:0 2px}\n"], dependencies: [{ kind: "component", type: i3$2.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }
|
|
1060
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.
|
|
1081
|
+
`, isInline: true, styles: [".aca-locked-by{display:flex;align-items:center;color:var(--theme-text-color, rgba(0, 0, 0, .54))}.aca-locked-by .locked_by--icon{font-size:14px;width:14px;height:14px}.aca-locked-by .locked_by--label,.aca-locked-by .locked_by--name{font-size:12px;padding:0 2px}\n"], dependencies: [{ kind: "ngmodule", type: TranslateModule }, { kind: "pipe", type: i5.TranslatePipe, name: "translate" }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i3$2.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
1082
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: LockedByComponent, decorators: [{
|
|
1061
1083
|
type: Component,
|
|
1062
|
-
args: [{ selector: 'aca-locked-by', template: `
|
|
1084
|
+
args: [{ standalone: true, imports: [TranslateModule, MatIconModule], selector: 'aca-locked-by', template: `
|
|
1063
1085
|
<mat-icon class="locked_by--icon">lock</mat-icon>
|
|
1064
1086
|
<span class="locked_by--label">{{ 'APP.LOCKED_BY' | translate }}</span>
|
|
1065
1087
|
<span class="locked_by--name">{{ text }}</span>
|
|
@@ -1070,43 +1092,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImpor
|
|
|
1070
1092
|
type: Input
|
|
1071
1093
|
}] } });
|
|
1072
1094
|
|
|
1073
|
-
/*!
|
|
1074
|
-
* Copyright © 2005-2023 Hyland Software, Inc. and its affiliates. All rights reserved.
|
|
1075
|
-
*
|
|
1076
|
-
* Alfresco Example Content Application
|
|
1077
|
-
*
|
|
1078
|
-
* This file is part of the Alfresco Example Content Application.
|
|
1079
|
-
* If the software was purchased under a paid Alfresco license, the terms of
|
|
1080
|
-
* the paid license agreement will prevail. Otherwise, the software is
|
|
1081
|
-
* provided under the following open source license terms:
|
|
1082
|
-
*
|
|
1083
|
-
* The Alfresco Example Content Application is free software: you can redistribute it and/or modify
|
|
1084
|
-
* it under the terms of the GNU Lesser General Public License as published by
|
|
1085
|
-
* the Free Software Foundation, either version 3 of the License, or
|
|
1086
|
-
* (at your option) any later version.
|
|
1087
|
-
*
|
|
1088
|
-
* The Alfresco Example Content Application is distributed in the hope that it will be useful,
|
|
1089
|
-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
1090
|
-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
1091
|
-
* GNU Lesser General Public License for more details.
|
|
1092
|
-
*
|
|
1093
|
-
* You should have received a copy of the GNU Lesser General Public License
|
|
1094
|
-
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
|
|
1095
|
-
*/
|
|
1096
|
-
class LockedByModule {
|
|
1097
|
-
}
|
|
1098
|
-
LockedByModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: LockedByModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1099
|
-
LockedByModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.1.2", ngImport: i0, type: LockedByModule, declarations: [LockedByComponent], imports: [CommonModule, MatIconModule, i2$1.TranslateModule], exports: [LockedByComponent] });
|
|
1100
|
-
LockedByModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: LockedByModule, imports: [CommonModule, MatIconModule, TranslateModule.forChild()] });
|
|
1101
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: LockedByModule, decorators: [{
|
|
1102
|
-
type: NgModule,
|
|
1103
|
-
args: [{
|
|
1104
|
-
imports: [CommonModule, MatIconModule, TranslateModule.forChild()],
|
|
1105
|
-
declarations: [LockedByComponent],
|
|
1106
|
-
exports: [LockedByComponent]
|
|
1107
|
-
}]
|
|
1108
|
-
}] });
|
|
1109
|
-
|
|
1110
1095
|
/*!
|
|
1111
1096
|
* Copyright © 2005-2023 Hyland Software, Inc. and its affiliates. All rights reserved.
|
|
1112
1097
|
*
|
|
@@ -1135,52 +1120,15 @@ class GenericErrorComponent {
|
|
|
1135
1120
|
this.text = 'APP.MESSAGES.ERRORS.MISSING_CONTENT';
|
|
1136
1121
|
}
|
|
1137
1122
|
}
|
|
1138
|
-
GenericErrorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.
|
|
1139
|
-
GenericErrorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.
|
|
1140
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.
|
|
1123
|
+
GenericErrorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: GenericErrorComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1124
|
+
GenericErrorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.3", type: GenericErrorComponent, isStandalone: true, selector: "aca-generic-error", inputs: { text: "text" }, host: { classAttribute: "aca-generic-error" }, ngImport: i0, template: "<mat-icon>error</mat-icon>\n<p class=\"generic-error__title\">\n {{ text | translate }}\n</p>\n", styles: [".aca-generic-error{color:var(--theme-text-color, rgba(0, 0, 0, .54));display:flex;align-items:center;justify-content:center;flex-direction:column;width:100%;height:100%}.aca-generic-error__title{font-size:16px}.aca-generic-error mat-icon{color:var(--theme-warn-color, #f44336);font-size:52px;height:52px;width:52px}\n"], dependencies: [{ kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i3$2.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: TranslateModule }, { kind: "pipe", type: i5.TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
1125
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: GenericErrorComponent, decorators: [{
|
|
1141
1126
|
type: Component,
|
|
1142
|
-
args: [{ selector: 'aca-generic-error', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, host: { class: 'aca-generic-error' }, template: "<mat-icon>error</mat-icon>\n<p class=\"generic-error__title\">\n {{ text | translate }}\n</p>\n", styles: [".aca-generic-error{color:var(--theme-text-color, rgba(0, 0, 0, .54));display:flex;align-items:center;justify-content:center;flex-direction:column;width:100%;height:100%}.aca-generic-error__title{font-size:16px}.aca-generic-error mat-icon{color:var(--theme-warn-color, #f44336);font-size:52px;height:52px;width:52px}\n"] }]
|
|
1127
|
+
args: [{ standalone: true, imports: [MatIconModule, TranslateModule], selector: 'aca-generic-error', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, host: { class: 'aca-generic-error' }, template: "<mat-icon>error</mat-icon>\n<p class=\"generic-error__title\">\n {{ text | translate }}\n</p>\n", styles: [".aca-generic-error{color:var(--theme-text-color, rgba(0, 0, 0, .54));display:flex;align-items:center;justify-content:center;flex-direction:column;width:100%;height:100%}.aca-generic-error__title{font-size:16px}.aca-generic-error mat-icon{color:var(--theme-warn-color, #f44336);font-size:52px;height:52px;width:52px}\n"] }]
|
|
1143
1128
|
}], propDecorators: { text: [{
|
|
1144
1129
|
type: Input
|
|
1145
1130
|
}] } });
|
|
1146
1131
|
|
|
1147
|
-
/*!
|
|
1148
|
-
* Copyright © 2005-2023 Hyland Software, Inc. and its affiliates. All rights reserved.
|
|
1149
|
-
*
|
|
1150
|
-
* Alfresco Example Content Application
|
|
1151
|
-
*
|
|
1152
|
-
* This file is part of the Alfresco Example Content Application.
|
|
1153
|
-
* If the software was purchased under a paid Alfresco license, the terms of
|
|
1154
|
-
* the paid license agreement will prevail. Otherwise, the software is
|
|
1155
|
-
* provided under the following open source license terms:
|
|
1156
|
-
*
|
|
1157
|
-
* The Alfresco Example Content Application is free software: you can redistribute it and/or modify
|
|
1158
|
-
* it under the terms of the GNU Lesser General Public License as published by
|
|
1159
|
-
* the Free Software Foundation, either version 3 of the License, or
|
|
1160
|
-
* (at your option) any later version.
|
|
1161
|
-
*
|
|
1162
|
-
* The Alfresco Example Content Application is distributed in the hope that it will be useful,
|
|
1163
|
-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
1164
|
-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
1165
|
-
* GNU Lesser General Public License for more details.
|
|
1166
|
-
*
|
|
1167
|
-
* You should have received a copy of the GNU Lesser General Public License
|
|
1168
|
-
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
|
|
1169
|
-
*/
|
|
1170
|
-
class GenericErrorModule {
|
|
1171
|
-
}
|
|
1172
|
-
GenericErrorModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: GenericErrorModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1173
|
-
GenericErrorModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.1.2", ngImport: i0, type: GenericErrorModule, declarations: [GenericErrorComponent], imports: [CommonModule, MatIconModule, i2$1.TranslateModule], exports: [GenericErrorComponent] });
|
|
1174
|
-
GenericErrorModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: GenericErrorModule, imports: [CommonModule, MatIconModule, TranslateModule.forChild()] });
|
|
1175
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: GenericErrorModule, decorators: [{
|
|
1176
|
-
type: NgModule,
|
|
1177
|
-
args: [{
|
|
1178
|
-
imports: [CommonModule, MatIconModule, TranslateModule.forChild()],
|
|
1179
|
-
declarations: [GenericErrorComponent],
|
|
1180
|
-
exports: [GenericErrorComponent]
|
|
1181
|
-
}]
|
|
1182
|
-
}] });
|
|
1183
|
-
|
|
1184
1132
|
/*!
|
|
1185
1133
|
* Copyright © 2005-2023 Hyland Software, Inc. and its affiliates. All rights reserved.
|
|
1186
1134
|
*
|
|
@@ -1259,9 +1207,9 @@ class NodePermissionService {
|
|
|
1259
1207
|
}
|
|
1260
1208
|
}
|
|
1261
1209
|
NodePermissionService.DEFAULT_OPERATION = 'OR';
|
|
1262
|
-
NodePermissionService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.
|
|
1263
|
-
NodePermissionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.1.
|
|
1264
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.
|
|
1210
|
+
NodePermissionService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: NodePermissionService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1211
|
+
NodePermissionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: NodePermissionService, providedIn: 'root' });
|
|
1212
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: NodePermissionService, decorators: [{
|
|
1265
1213
|
type: Injectable,
|
|
1266
1214
|
args: [{
|
|
1267
1215
|
providedIn: 'root'
|
|
@@ -1686,9 +1634,9 @@ class AppExtensionService {
|
|
|
1686
1634
|
return true;
|
|
1687
1635
|
}
|
|
1688
1636
|
}
|
|
1689
|
-
AppExtensionService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.
|
|
1690
|
-
AppExtensionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.1.
|
|
1691
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.
|
|
1637
|
+
AppExtensionService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: AppExtensionService, deps: [{ token: i1.AuthenticationService }, { token: i1$2.Store }, { token: i3$1.ExtensionLoaderService }, { token: i3$1.ExtensionService }, { token: NodePermissionService }, { token: i1.AppConfigService }, { token: i3$2.MatIconRegistry }, { token: i6.DomSanitizer }, { token: i1.LogService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1638
|
+
AppExtensionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: AppExtensionService, providedIn: 'root' });
|
|
1639
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: AppExtensionService, decorators: [{
|
|
1692
1640
|
type: Injectable,
|
|
1693
1641
|
args: [{
|
|
1694
1642
|
providedIn: 'root'
|
|
@@ -1738,9 +1686,9 @@ class ToolbarMenuItemComponent {
|
|
|
1738
1686
|
return obj.id;
|
|
1739
1687
|
}
|
|
1740
1688
|
}
|
|
1741
|
-
ToolbarMenuItemComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.
|
|
1742
|
-
ToolbarMenuItemComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.
|
|
1743
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.
|
|
1689
|
+
ToolbarMenuItemComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: ToolbarMenuItemComponent, deps: [{ token: AppExtensionService }], target: i0.ɵɵFactoryTarget.Component });
|
|
1690
|
+
ToolbarMenuItemComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.3", type: ToolbarMenuItemComponent, selector: "app-toolbar-menu-item", inputs: { actionRef: "actionRef", menuId: "menuId" }, host: { classAttribute: "app-toolbar-menu-item" }, viewQueries: [{ propertyName: "menuItem", first: true, predicate: MatMenuItem, descendants: true }], ngImport: i0, template: "<ng-container [ngSwitch]=\"actionRef.type\">\n <ng-container *ngSwitchCase=\"'menu'\">\n <button [id]=\"actionRef.id\" mat-menu-item role=\"menuitem\" tabindex=\"0\" [disabled]=\"actionRef.disabled\" [matMenuTriggerFor]=\"childMenu\">\n <adf-icon [value]=\"actionRef.icon\"></adf-icon>\n <span data-automation-id=\"menu-item-title\">{{ actionRef.title | translate }}</span>\n </button>\n\n <mat-menu #childMenu=\"matMenu\" class=\"app-create-menu__sub-menu\">\n <ng-container *ngFor=\"let child of actionRef.children; trackBy: trackByActionId\">\n <app-toolbar-menu-item [actionRef]=\"child\"></app-toolbar-menu-item>\n </ng-container>\n </mat-menu>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"'separator'\">\n <mat-divider></mat-divider>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"'custom'\">\n <adf-dynamic-component [id]=\"actionRef.component\"></adf-dynamic-component>\n </ng-container>\n\n <ng-container *ngSwitchDefault>\n <button\n [id]=\"actionRef.id\"\n role=\"menuitem\"\n mat-menu-item\n [role]=\"'menuitem'\"\n tabindex=\"0\"\n [disabled]=\"actionRef.disabled\"\n [attr.title]=\"(actionRef.disabled ? actionRef['description-disabled'] : actionRef.description || actionRef.title) | translate\"\n (click)=\"runAction()\"\n >\n <adf-icon [value]=\"actionRef.icon\"></adf-icon>\n <span data-automation-id=\"menu-item-title\">{{ actionRef.title | translate }}</span>\n </button>\n </ng-container>\n</ng-container>\n", styles: [".app-toolbar-menu-item:last-child>.mat-divider-horizontal{display:none}\n"], dependencies: [{ kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i2.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "directive", type: i2.NgSwitchDefault, selector: "[ngSwitchDefault]" }, { kind: "component", type: i3$3.MatDivider, selector: "mat-divider", inputs: ["vertical", "inset"] }, { kind: "component", type: i4$2.MatMenu, selector: "mat-menu", exportAs: ["matMenu"] }, { kind: "component", type: i4$2.MatMenuItem, selector: "[mat-menu-item]", inputs: ["disabled", "disableRipple", "role"], exportAs: ["matMenuItem"] }, { kind: "directive", type: i4$2.MatMenuTrigger, selector: "[mat-menu-trigger-for], [matMenuTriggerFor]", exportAs: ["matMenuTrigger"] }, { kind: "component", type: i1.IconComponent, selector: "adf-icon", inputs: ["color", "fontSet", "value"] }, { kind: "component", type: i3$1.DynamicExtensionComponent, selector: "adf-dynamic-component", inputs: ["id", "data"] }, { kind: "component", type: ToolbarMenuItemComponent, selector: "app-toolbar-menu-item", inputs: ["actionRef", "menuId"] }, { kind: "pipe", type: i5.TranslatePipe, name: "translate" }], encapsulation: i0.ViewEncapsulation.None });
|
|
1691
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: ToolbarMenuItemComponent, decorators: [{
|
|
1744
1692
|
type: Component,
|
|
1745
1693
|
args: [{ selector: 'app-toolbar-menu-item', encapsulation: ViewEncapsulation.None, host: { class: 'app-toolbar-menu-item' }, template: "<ng-container [ngSwitch]=\"actionRef.type\">\n <ng-container *ngSwitchCase=\"'menu'\">\n <button [id]=\"actionRef.id\" mat-menu-item role=\"menuitem\" tabindex=\"0\" [disabled]=\"actionRef.disabled\" [matMenuTriggerFor]=\"childMenu\">\n <adf-icon [value]=\"actionRef.icon\"></adf-icon>\n <span data-automation-id=\"menu-item-title\">{{ actionRef.title | translate }}</span>\n </button>\n\n <mat-menu #childMenu=\"matMenu\" class=\"app-create-menu__sub-menu\">\n <ng-container *ngFor=\"let child of actionRef.children; trackBy: trackByActionId\">\n <app-toolbar-menu-item [actionRef]=\"child\"></app-toolbar-menu-item>\n </ng-container>\n </mat-menu>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"'separator'\">\n <mat-divider></mat-divider>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"'custom'\">\n <adf-dynamic-component [id]=\"actionRef.component\"></adf-dynamic-component>\n </ng-container>\n\n <ng-container *ngSwitchDefault>\n <button\n [id]=\"actionRef.id\"\n role=\"menuitem\"\n mat-menu-item\n [role]=\"'menuitem'\"\n tabindex=\"0\"\n [disabled]=\"actionRef.disabled\"\n [attr.title]=\"(actionRef.disabled ? actionRef['description-disabled'] : actionRef.description || actionRef.title) | translate\"\n (click)=\"runAction()\"\n >\n <adf-icon [value]=\"actionRef.icon\"></adf-icon>\n <span data-automation-id=\"menu-item-title\">{{ actionRef.title | translate }}</span>\n </button>\n </ng-container>\n</ng-container>\n", styles: [".app-toolbar-menu-item:last-child>.mat-divider-horizontal{display:none}\n"] }]
|
|
1746
1694
|
}], ctorParameters: function () { return [{ type: AppExtensionService }]; }, propDecorators: { actionRef: [{
|
|
@@ -1776,12 +1724,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImpor
|
|
|
1776
1724
|
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
|
|
1777
1725
|
*/
|
|
1778
1726
|
class ToolbarMenuComponent {
|
|
1779
|
-
|
|
1780
|
-
|
|
1727
|
+
constructor() {
|
|
1728
|
+
this.type = 'default';
|
|
1781
1729
|
}
|
|
1782
1730
|
handleKeydownEscape() {
|
|
1783
1731
|
this.matTrigger.closeMenu();
|
|
1784
1732
|
}
|
|
1733
|
+
ngOnInit() {
|
|
1734
|
+
this.type = this.data?.menuType || 'default';
|
|
1735
|
+
}
|
|
1785
1736
|
ngAfterViewInit() {
|
|
1786
1737
|
const menuItems = [];
|
|
1787
1738
|
this.toolbarMenuItems.forEach((toolbarMenuItem) => {
|
|
@@ -1798,11 +1749,11 @@ class ToolbarMenuComponent {
|
|
|
1798
1749
|
return obj.id;
|
|
1799
1750
|
}
|
|
1800
1751
|
}
|
|
1801
|
-
ToolbarMenuComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.
|
|
1802
|
-
ToolbarMenuComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.
|
|
1803
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.
|
|
1752
|
+
ToolbarMenuComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: ToolbarMenuComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1753
|
+
ToolbarMenuComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.3", type: ToolbarMenuComponent, selector: "app-toolbar-menu", inputs: { actionRef: "actionRef", color: "color", data: "data" }, host: { listeners: { "document:keydown.Escape": "handleKeydownEscape()" }, classAttribute: "app-toolbar-menu" }, viewQueries: [{ propertyName: "matTrigger", first: true, predicate: ["matTrigger"], descendants: true }, { propertyName: "menu", first: true, predicate: MatMenu, descendants: true }, { propertyName: "toolbarMenuItems", predicate: ToolbarMenuItemComponent, descendants: true }], ngImport: i0, template: "<ng-container [ngSwitch]=\"type\">\n <ng-container *ngSwitchCase=\"'button'\">\n <button\n [id]=\"actionRef.id\"\n [color]=\"data?.color || color\"\n mat-button\n [attr.aria-label]=\"actionRef.description || actionRef.title | translate\"\n [attr.title]=\"actionRef.description || actionRef.title | translate\"\n [matMenuTriggerFor]=\"menu\"\n [disabled]=\"actionRef.disabled\"\n #matTrigger=\"matMenuTrigger\"\n >\n <span *ngIf=\"actionRef.title\">{{ actionRef.title | translate }}</span>\n </button>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"'flat-button'\">\n <button\n [id]=\"actionRef.id\"\n [color]=\"data?.color || color\"\n mat-flat-button\n [attr.aria-label]=\"actionRef.description || actionRef.title | translate\"\n [attr.title]=\"actionRef.description || actionRef.title | translate\"\n [matMenuTriggerFor]=\"menu\"\n [disabled]=\"actionRef.disabled\"\n #matTrigger=\"matMenuTrigger\"\n >\n <span *ngIf=\"actionRef.title\">{{ actionRef.title | translate }}</span>\n </button>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"'stroked-button'\">\n <button\n [id]=\"actionRef.id\"\n [color]=\"data?.color || color\"\n mat-stroked-button\n [attr.aria-label]=\"actionRef.description || actionRef.title | translate\"\n [attr.title]=\"actionRef.description || actionRef.title | translate\"\n [matMenuTriggerFor]=\"menu\"\n [disabled]=\"actionRef.disabled\"\n #matTrigger=\"matMenuTrigger\"\n >\n <span *ngIf=\"actionRef.title\">{{ actionRef.title | translate }}</span>\n </button>\n </ng-container>\n\n <ng-container *ngSwitchDefault>\n <button\n [id]=\"actionRef.id\"\n [color]=\"data?.color || color\"\n mat-icon-button\n [attr.aria-label]=\"actionRef.description || actionRef.title | translate\"\n [attr.title]=\"actionRef.description || actionRef.title | translate\"\n [matMenuTriggerFor]=\"menu\"\n [disabled]=\"actionRef.disabled\"\n #matTrigger=\"matMenuTrigger\"\n >\n <adf-icon *ngIf=\"actionRef.icon\" [value]=\"actionRef.icon\"></adf-icon>\n </button>\n </ng-container>\n</ng-container>\n\n<mat-menu #menu=\"matMenu\" [overlapTrigger]=\"false\" [xPosition]=\"'before'\">\n <ng-container *ngFor=\"let child of actionRef.children; trackBy: trackByActionId\">\n <ng-container [ngSwitch]=\"child.type\">\n <ng-container *ngSwitchCase=\"'custom'\">\n <adf-dynamic-component [id]=\"child.component\" [data]=\"child.data\"></adf-dynamic-component>\n </ng-container>\n <ng-container *ngSwitchDefault>\n <app-toolbar-menu-item [actionRef]=\"child\" [menuId]=\"actionRef.id\"></app-toolbar-menu-item>\n </ng-container>\n </ng-container>\n </ng-container>\n</mat-menu>\n", dependencies: [{ kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i2.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "directive", type: i2.NgSwitchDefault, selector: "[ngSwitchDefault]" }, { 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: i4$2.MatMenu, selector: "mat-menu", exportAs: ["matMenu"] }, { kind: "directive", type: i4$2.MatMenuTrigger, selector: "[mat-menu-trigger-for], [matMenuTriggerFor]", exportAs: ["matMenuTrigger"] }, { kind: "component", type: i1.IconComponent, selector: "adf-icon", inputs: ["color", "fontSet", "value"] }, { kind: "component", type: i3$1.DynamicExtensionComponent, selector: "adf-dynamic-component", inputs: ["id", "data"] }, { kind: "component", type: ToolbarMenuItemComponent, selector: "app-toolbar-menu-item", inputs: ["actionRef", "menuId"] }, { kind: "pipe", type: i5.TranslatePipe, name: "translate" }], encapsulation: i0.ViewEncapsulation.None });
|
|
1754
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: ToolbarMenuComponent, decorators: [{
|
|
1804
1755
|
type: Component,
|
|
1805
|
-
args: [{ selector: 'app-toolbar-menu', encapsulation: ViewEncapsulation.None, host: { class: 'app-toolbar-menu' }, template: "<ng-container [ngSwitch]=\"type\">\n <ng-container *ngSwitchCase=\"'button'\">\n <button\n [id]=\"actionRef.id\"\n [color]=\"data?.color || color\"\n mat-button\n [attr.aria-label]=\"actionRef.description || actionRef.title | translate\"\n [attr.title]=\"actionRef.description || actionRef.title | translate\"\n [matMenuTriggerFor]=\"menu\"\n [disabled]=\"actionRef.disabled\"\n #matTrigger=\"matMenuTrigger\"\n >\n <span *ngIf=\"actionRef.title\"
|
|
1756
|
+
args: [{ selector: 'app-toolbar-menu', encapsulation: ViewEncapsulation.None, host: { class: 'app-toolbar-menu' }, template: "<ng-container [ngSwitch]=\"type\">\n <ng-container *ngSwitchCase=\"'button'\">\n <button\n [id]=\"actionRef.id\"\n [color]=\"data?.color || color\"\n mat-button\n [attr.aria-label]=\"actionRef.description || actionRef.title | translate\"\n [attr.title]=\"actionRef.description || actionRef.title | translate\"\n [matMenuTriggerFor]=\"menu\"\n [disabled]=\"actionRef.disabled\"\n #matTrigger=\"matMenuTrigger\"\n >\n <span *ngIf=\"actionRef.title\">{{ actionRef.title | translate }}</span>\n </button>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"'flat-button'\">\n <button\n [id]=\"actionRef.id\"\n [color]=\"data?.color || color\"\n mat-flat-button\n [attr.aria-label]=\"actionRef.description || actionRef.title | translate\"\n [attr.title]=\"actionRef.description || actionRef.title | translate\"\n [matMenuTriggerFor]=\"menu\"\n [disabled]=\"actionRef.disabled\"\n #matTrigger=\"matMenuTrigger\"\n >\n <span *ngIf=\"actionRef.title\">{{ actionRef.title | translate }}</span>\n </button>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"'stroked-button'\">\n <button\n [id]=\"actionRef.id\"\n [color]=\"data?.color || color\"\n mat-stroked-button\n [attr.aria-label]=\"actionRef.description || actionRef.title | translate\"\n [attr.title]=\"actionRef.description || actionRef.title | translate\"\n [matMenuTriggerFor]=\"menu\"\n [disabled]=\"actionRef.disabled\"\n #matTrigger=\"matMenuTrigger\"\n >\n <span *ngIf=\"actionRef.title\">{{ actionRef.title | translate }}</span>\n </button>\n </ng-container>\n\n <ng-container *ngSwitchDefault>\n <button\n [id]=\"actionRef.id\"\n [color]=\"data?.color || color\"\n mat-icon-button\n [attr.aria-label]=\"actionRef.description || actionRef.title | translate\"\n [attr.title]=\"actionRef.description || actionRef.title | translate\"\n [matMenuTriggerFor]=\"menu\"\n [disabled]=\"actionRef.disabled\"\n #matTrigger=\"matMenuTrigger\"\n >\n <adf-icon *ngIf=\"actionRef.icon\" [value]=\"actionRef.icon\"></adf-icon>\n </button>\n </ng-container>\n</ng-container>\n\n<mat-menu #menu=\"matMenu\" [overlapTrigger]=\"false\" [xPosition]=\"'before'\">\n <ng-container *ngFor=\"let child of actionRef.children; trackBy: trackByActionId\">\n <ng-container [ngSwitch]=\"child.type\">\n <ng-container *ngSwitchCase=\"'custom'\">\n <adf-dynamic-component [id]=\"child.component\" [data]=\"child.data\"></adf-dynamic-component>\n </ng-container>\n <ng-container *ngSwitchDefault>\n <app-toolbar-menu-item [actionRef]=\"child\" [menuId]=\"actionRef.id\"></app-toolbar-menu-item>\n </ng-container>\n </ng-container>\n </ng-container>\n</mat-menu>\n" }]
|
|
1806
1757
|
}], propDecorators: { actionRef: [{
|
|
1807
1758
|
type: Input
|
|
1808
1759
|
}], color: [{
|
|
@@ -1850,6 +1801,7 @@ var ToolbarButtonType;
|
|
|
1850
1801
|
(function (ToolbarButtonType) {
|
|
1851
1802
|
ToolbarButtonType["ICON_BUTTON"] = "icon-button";
|
|
1852
1803
|
ToolbarButtonType["FLAT_BUTTON"] = "flat-button";
|
|
1804
|
+
ToolbarButtonType["STROKED_BUTTON"] = "stroked-button";
|
|
1853
1805
|
ToolbarButtonType["MENU_ITEM"] = "menu-item";
|
|
1854
1806
|
})(ToolbarButtonType || (ToolbarButtonType = {}));
|
|
1855
1807
|
class ToolbarButtonComponent {
|
|
@@ -1868,11 +1820,11 @@ class ToolbarButtonComponent {
|
|
|
1868
1820
|
return !!(actionRef && actionRef.actions && actionRef.actions.click);
|
|
1869
1821
|
}
|
|
1870
1822
|
}
|
|
1871
|
-
ToolbarButtonComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.
|
|
1872
|
-
ToolbarButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.
|
|
1873
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.
|
|
1823
|
+
ToolbarButtonComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: ToolbarButtonComponent, deps: [{ token: AppExtensionService }], target: i0.ɵɵFactoryTarget.Component });
|
|
1824
|
+
ToolbarButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.3", type: ToolbarButtonComponent, selector: "app-toolbar-button", inputs: { data: "data", type: "type", color: "color", actionRef: "actionRef" }, host: { classAttribute: "app-toolbar-button" }, ngImport: i0, template: "<ng-container [ngSwitch]=\"data?.buttonType || type\">\n <ng-container *ngSwitchCase=\"'icon-button'\">\n <button\n [id]=\"actionRef.id\"\n mat-icon-button\n [color]=\"color\"\n [attr.aria-label]=\"actionRef.description || actionRef.title | translate\"\n [attr.title]=\"actionRef.description || actionRef.title | translate\"\n [disabled]=\"actionRef.disabled\"\n (click)=\"runAction()\"\n >\n <adf-icon [value]=\"actionRef.icon\"></adf-icon>\n </button>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"'flat-button'\">\n <button\n [id]=\"actionRef.id\"\n [color]=\"data?.color || color\"\n mat-flat-button\n [attr.aria-label]=\"actionRef.description || actionRef.title | translate\"\n [attr.title]=\"actionRef.description || actionRef.title | translate\"\n [disabled]=\"actionRef.disabled\"\n (click)=\"runAction()\"\n >\n <span *ngIf=\"actionRef.title\">{{ actionRef.title | translate }}</span>\n </button>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"'stroked-button'\">\n <button\n [id]=\"actionRef.id\"\n [color]=\"data?.color || color\"\n mat-stroked-button\n [attr.aria-label]=\"actionRef.description || actionRef.title | translate\"\n [attr.title]=\"actionRef.description || actionRef.title | translate\"\n [disabled]=\"actionRef.disabled\"\n (click)=\"runAction()\"\n >\n <span *ngIf=\"actionRef.title\">{{ actionRef.title | translate }}</span>\n </button>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"'menu-item'\">\n <app-toolbar-menu-item [actionRef]=\"actionRef\"></app-toolbar-menu-item>\n </ng-container>\n</ng-container>\n", dependencies: [{ kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i2.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { 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: i1.IconComponent, selector: "adf-icon", inputs: ["color", "fontSet", "value"] }, { kind: "component", type: ToolbarMenuItemComponent, selector: "app-toolbar-menu-item", inputs: ["actionRef", "menuId"] }, { kind: "pipe", type: i5.TranslatePipe, name: "translate" }], encapsulation: i0.ViewEncapsulation.None });
|
|
1825
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: ToolbarButtonComponent, decorators: [{
|
|
1874
1826
|
type: Component,
|
|
1875
|
-
args: [{ selector: 'app-toolbar-button', encapsulation: ViewEncapsulation.None, host: { class: 'app-toolbar-button' }, template: "<ng-container [ngSwitch]=\"data?.buttonType || type\">\n <ng-container *ngSwitchCase=\"'icon-button'\">\n <button\n [id]=\"actionRef.id\"\n mat-icon-button\n [color]=\"color\"\n [attr.aria-label]=\"actionRef.description || actionRef.title | translate\"\n [attr.title]=\"actionRef.description || actionRef.title | translate\"\n [disabled]=\"actionRef.disabled\"\n (click)=\"runAction()\"\n >\n <adf-icon [value]=\"actionRef.icon\"></adf-icon>\n </button>\n </ng-container>\n <ng-container *ngSwitchCase=\"'flat-button'\">\n <button\n [id]=\"actionRef.id\"\n [color]=\"data?.color || color\"\n mat-flat-button\n [attr.aria-label]=\"actionRef.description || actionRef.title | translate\"\n [attr.title]=\"actionRef.description || actionRef.title | translate\"\n [disabled]=\"actionRef.disabled\"\n (click)=\"runAction()\"\n >\n <span *ngIf=\"actionRef.title\"
|
|
1827
|
+
args: [{ selector: 'app-toolbar-button', encapsulation: ViewEncapsulation.None, host: { class: 'app-toolbar-button' }, template: "<ng-container [ngSwitch]=\"data?.buttonType || type\">\n <ng-container *ngSwitchCase=\"'icon-button'\">\n <button\n [id]=\"actionRef.id\"\n mat-icon-button\n [color]=\"color\"\n [attr.aria-label]=\"actionRef.description || actionRef.title | translate\"\n [attr.title]=\"actionRef.description || actionRef.title | translate\"\n [disabled]=\"actionRef.disabled\"\n (click)=\"runAction()\"\n >\n <adf-icon [value]=\"actionRef.icon\"></adf-icon>\n </button>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"'flat-button'\">\n <button\n [id]=\"actionRef.id\"\n [color]=\"data?.color || color\"\n mat-flat-button\n [attr.aria-label]=\"actionRef.description || actionRef.title | translate\"\n [attr.title]=\"actionRef.description || actionRef.title | translate\"\n [disabled]=\"actionRef.disabled\"\n (click)=\"runAction()\"\n >\n <span *ngIf=\"actionRef.title\">{{ actionRef.title | translate }}</span>\n </button>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"'stroked-button'\">\n <button\n [id]=\"actionRef.id\"\n [color]=\"data?.color || color\"\n mat-stroked-button\n [attr.aria-label]=\"actionRef.description || actionRef.title | translate\"\n [attr.title]=\"actionRef.description || actionRef.title | translate\"\n [disabled]=\"actionRef.disabled\"\n (click)=\"runAction()\"\n >\n <span *ngIf=\"actionRef.title\">{{ actionRef.title | translate }}</span>\n </button>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"'menu-item'\">\n <app-toolbar-menu-item [actionRef]=\"actionRef\"></app-toolbar-menu-item>\n </ng-container>\n</ng-container>\n" }]
|
|
1876
1828
|
}], ctorParameters: function () { return [{ type: AppExtensionService }]; }, propDecorators: { data: [{
|
|
1877
1829
|
type: Input
|
|
1878
1830
|
}], type: [{
|
|
@@ -1919,9 +1871,9 @@ class ToolbarActionComponent {
|
|
|
1919
1871
|
}
|
|
1920
1872
|
}
|
|
1921
1873
|
}
|
|
1922
|
-
ToolbarActionComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.
|
|
1923
|
-
ToolbarActionComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.
|
|
1924
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.
|
|
1874
|
+
ToolbarActionComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: ToolbarActionComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
1875
|
+
ToolbarActionComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.3", type: ToolbarActionComponent, selector: "aca-toolbar-action", inputs: { data: "data", type: "type", color: "color", actionRef: "actionRef" }, host: { classAttribute: "aca-toolbar-action" }, ngImport: i0, template: "<ng-container [ngSwitch]=\"actionRef.type\">\n <ng-container *ngSwitchCase=\"'default'\">\n <app-toolbar-button [type]=\"type\" [actionRef]=\"actionRef\" [color]=\"color\"> </app-toolbar-button>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"'button'\">\n <app-toolbar-button [type]=\"data?.buttonType || type\" [actionRef]=\"actionRef\" [color]=\"color\" [data]=\"actionRef.data\"> </app-toolbar-button>\n </ng-container>\n\n <adf-toolbar-divider *ngSwitchCase=\"'separator'\" [id]=\"actionRef.id\"></adf-toolbar-divider>\n\n <ng-container *ngSwitchCase=\"'menu'\">\n <app-toolbar-menu [actionRef]=\"actionRef\" [color]=\"color\" [data]=\"actionRef.data\"></app-toolbar-menu>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"'custom'\">\n <adf-dynamic-component [data]=\"actionRef.data\" [id]=\"actionRef.component\"></adf-dynamic-component>\n </ng-container>\n</ng-container>\n", styles: [".aca-toolbar-action{margin:0 5px}\n"], dependencies: [{ kind: "directive", type: i2.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i2.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "component", type: i1.ToolbarDividerComponent, selector: "adf-toolbar-divider" }, { kind: "component", type: i3$1.DynamicExtensionComponent, selector: "adf-dynamic-component", inputs: ["id", "data"] }, { kind: "component", type: ToolbarButtonComponent, selector: "app-toolbar-button", inputs: ["data", "type", "color", "actionRef"] }, { kind: "component", type: ToolbarMenuComponent, selector: "app-toolbar-menu", inputs: ["actionRef", "color", "data"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
1876
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: ToolbarActionComponent, decorators: [{
|
|
1925
1877
|
type: Component,
|
|
1926
1878
|
args: [{ selector: 'aca-toolbar-action', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, host: { class: 'aca-toolbar-action' }, template: "<ng-container [ngSwitch]=\"actionRef.type\">\n <ng-container *ngSwitchCase=\"'default'\">\n <app-toolbar-button [type]=\"type\" [actionRef]=\"actionRef\" [color]=\"color\"> </app-toolbar-button>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"'button'\">\n <app-toolbar-button [type]=\"data?.buttonType || type\" [actionRef]=\"actionRef\" [color]=\"color\" [data]=\"actionRef.data\"> </app-toolbar-button>\n </ng-container>\n\n <adf-toolbar-divider *ngSwitchCase=\"'separator'\" [id]=\"actionRef.id\"></adf-toolbar-divider>\n\n <ng-container *ngSwitchCase=\"'menu'\">\n <app-toolbar-menu [actionRef]=\"actionRef\" [color]=\"color\" [data]=\"actionRef.data\"></app-toolbar-menu>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"'custom'\">\n <adf-dynamic-component [data]=\"actionRef.data\" [id]=\"actionRef.component\"></adf-dynamic-component>\n </ng-container>\n</ng-container>\n", styles: [".aca-toolbar-action{margin:0 5px}\n"] }]
|
|
1927
1879
|
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }]; }, propDecorators: { data: [{
|
|
@@ -1959,10 +1911,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImpor
|
|
|
1959
1911
|
*/
|
|
1960
1912
|
class SharedToolbarModule {
|
|
1961
1913
|
}
|
|
1962
|
-
SharedToolbarModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.
|
|
1963
|
-
SharedToolbarModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.1.
|
|
1964
|
-
SharedToolbarModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.1.
|
|
1965
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.
|
|
1914
|
+
SharedToolbarModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: SharedToolbarModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1915
|
+
SharedToolbarModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.1.3", ngImport: i0, type: SharedToolbarModule, declarations: [ToolbarButtonComponent, ToolbarActionComponent, ToolbarMenuItemComponent, ToolbarMenuComponent], imports: [CommonModule, CoreModule, ExtensionsModule], exports: [ToolbarButtonComponent, ToolbarActionComponent, ToolbarMenuItemComponent, ToolbarMenuComponent] });
|
|
1916
|
+
SharedToolbarModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: SharedToolbarModule, imports: [CommonModule, CoreModule, ExtensionsModule] });
|
|
1917
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: SharedToolbarModule, decorators: [{
|
|
1966
1918
|
type: NgModule,
|
|
1967
1919
|
args: [{
|
|
1968
1920
|
imports: [CommonModule, CoreModule, ExtensionsModule],
|
|
@@ -2062,11 +2014,11 @@ class InfoDrawerComponent {
|
|
|
2062
2014
|
this.displayNode = node;
|
|
2063
2015
|
}
|
|
2064
2016
|
}
|
|
2065
|
-
InfoDrawerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.
|
|
2066
|
-
InfoDrawerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.
|
|
2067
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.
|
|
2017
|
+
InfoDrawerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: InfoDrawerComponent, deps: [{ token: i1$2.Store }, { token: ContentApiService }, { token: AppExtensionService }], target: i0.ɵɵFactoryTarget.Component });
|
|
2018
|
+
InfoDrawerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.3", type: InfoDrawerComponent, isStandalone: true, selector: "aca-info-drawer", inputs: { nodeId: "nodeId", node: "node" }, host: { listeners: { "keydown.escape": "onEscapeKeyboardEvent()" } }, usesOnChanges: true, ngImport: i0, template: "<div *ngIf=\"isLoading\">\n <mat-progress-bar mode=\"indeterminate\" [attr.aria-label]=\"'APP.INFO_DRAWER.DATA_LOADING' | translate\"></mat-progress-bar>\n</div>\n<ng-container *ngIf=\"!isLoading && !!displayNode\">\n <adf-info-drawer [title]=\"'APP.INFO_DRAWER.TITLE'\" cdkTrapFocus cdkTrapFocusAutoCapture>\n <adf-toolbar class=\"adf-toolbar--inline\" info-drawer-buttons>\n <ng-container *ngFor=\"let entry of actions; trackBy: trackByActionId\">\n <aca-toolbar-action [actionRef]=\"entry\" [color]=\"getEntryColor(entry)\"></aca-toolbar-action>\n </ng-container>\n </adf-toolbar>\n\n <adf-info-drawer-tab *ngFor=\"let tab of tabs\" [icon]=\"tab.icon\" [label]=\"tab.title\">\n <adf-dynamic-tab [node]=\"$any(displayNode)\" [id]=\"tab.component\" [attr.data-automation-id]=\"tab.component\"> </adf-dynamic-tab>\n </adf-info-drawer-tab>\n </adf-info-drawer>\n</ng-container>\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: TranslateModule }, { kind: "pipe", type: i5.TranslatePipe, name: "translate" }, { kind: "ngmodule", type: MatProgressBarModule }, { kind: "component", type: i6$1.MatProgressBar, selector: "mat-progress-bar", inputs: ["color", "value", "bufferValue", "mode"], outputs: ["animationEnd"], exportAs: ["matProgressBar"] }, { kind: "ngmodule", type: InfoDrawerModule }, { kind: "component", type: i1.InfoDrawerTabComponent, selector: "adf-info-drawer-tab", inputs: ["label", "icon"] }, { kind: "component", type: i1.InfoDrawerComponent, selector: "adf-info-drawer", inputs: ["title", "selectedIndex", "showHeader"], outputs: ["currentTab"] }, { kind: "directive", type: i1.InfoDrawerButtonsDirective, selector: "[adf-info-drawer-buttons], [info-drawer-buttons]" }, { kind: "ngmodule", type: SharedToolbarModule }, { kind: "component", type: ToolbarActionComponent, selector: "aca-toolbar-action", inputs: ["data", "type", "color", "actionRef"] }, { kind: "ngmodule", type: ExtensionsModule }, { kind: "component", type: i3$1.DynamicTabComponent, selector: "adf-dynamic-tab", inputs: ["id", "node"] }, { kind: "ngmodule", type: ToolbarModule }, { kind: "component", type: i1.ToolbarComponent, selector: "adf-toolbar", inputs: ["title", "color"] }], encapsulation: i0.ViewEncapsulation.None });
|
|
2019
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: InfoDrawerComponent, decorators: [{
|
|
2068
2020
|
type: Component,
|
|
2069
|
-
args: [{ selector: 'aca-info-drawer', template: "<div *ngIf=\"isLoading\">\n <mat-progress-bar mode=\"indeterminate\" [attr.aria-label]=\"'APP.INFO_DRAWER.DATA_LOADING' | translate\"></mat-progress-bar>\n</div>\n<ng-container *ngIf=\"!isLoading && !!displayNode\">\n <adf-info-drawer [title]=\"'APP.INFO_DRAWER.TITLE'\" cdkTrapFocus cdkTrapFocusAutoCapture>\n <adf-toolbar class=\"adf-toolbar--inline\" info-drawer-buttons>\n <ng-container *ngFor=\"let entry of actions; trackBy: trackByActionId\">\n <aca-toolbar-action [actionRef]=\"entry\" [color]=\"getEntryColor(entry)\"></aca-toolbar-action>\n </ng-container>\n </adf-toolbar>\n\n <adf-info-drawer-tab *ngFor=\"let tab of tabs\" [icon]=\"tab.icon\" [label]=\"tab.title\">\n <adf-dynamic-tab [node]=\"$any(displayNode)\" [id]=\"tab.component\" [attr.data-automation-id]=\"tab.component\"> </adf-dynamic-tab>\n </adf-info-drawer-tab>\n </adf-info-drawer>\n</ng-container>\n" }]
|
|
2021
|
+
args: [{ standalone: true, imports: [CommonModule, TranslateModule, MatProgressBarModule, InfoDrawerModule, SharedToolbarModule, ExtensionsModule, ToolbarModule], selector: 'aca-info-drawer', encapsulation: ViewEncapsulation.None, template: "<div *ngIf=\"isLoading\">\n <mat-progress-bar mode=\"indeterminate\" [attr.aria-label]=\"'APP.INFO_DRAWER.DATA_LOADING' | translate\"></mat-progress-bar>\n</div>\n<ng-container *ngIf=\"!isLoading && !!displayNode\">\n <adf-info-drawer [title]=\"'APP.INFO_DRAWER.TITLE'\" cdkTrapFocus cdkTrapFocusAutoCapture>\n <adf-toolbar class=\"adf-toolbar--inline\" info-drawer-buttons>\n <ng-container *ngFor=\"let entry of actions; trackBy: trackByActionId\">\n <aca-toolbar-action [actionRef]=\"entry\" [color]=\"getEntryColor(entry)\"></aca-toolbar-action>\n </ng-container>\n </adf-toolbar>\n\n <adf-info-drawer-tab *ngFor=\"let tab of tabs\" [icon]=\"tab.icon\" [label]=\"tab.title\">\n <adf-dynamic-tab [node]=\"$any(displayNode)\" [id]=\"tab.component\" [attr.data-automation-id]=\"tab.component\"> </adf-dynamic-tab>\n </adf-info-drawer-tab>\n </adf-info-drawer>\n</ng-container>\n" }]
|
|
2070
2022
|
}], ctorParameters: function () { return [{ type: i1$2.Store }, { type: ContentApiService }, { type: AppExtensionService }]; }, propDecorators: { nodeId: [{
|
|
2071
2023
|
type: Input
|
|
2072
2024
|
}], node: [{
|
|
@@ -2076,43 +2028,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImpor
|
|
|
2076
2028
|
args: ['keydown.escape']
|
|
2077
2029
|
}] } });
|
|
2078
2030
|
|
|
2079
|
-
/*!
|
|
2080
|
-
* Copyright © 2005-2023 Hyland Software, Inc. and its affiliates. All rights reserved.
|
|
2081
|
-
*
|
|
2082
|
-
* Alfresco Example Content Application
|
|
2083
|
-
*
|
|
2084
|
-
* This file is part of the Alfresco Example Content Application.
|
|
2085
|
-
* If the software was purchased under a paid Alfresco license, the terms of
|
|
2086
|
-
* the paid license agreement will prevail. Otherwise, the software is
|
|
2087
|
-
* provided under the following open source license terms:
|
|
2088
|
-
*
|
|
2089
|
-
* The Alfresco Example Content Application is free software: you can redistribute it and/or modify
|
|
2090
|
-
* it under the terms of the GNU Lesser General Public License as published by
|
|
2091
|
-
* the Free Software Foundation, either version 3 of the License, or
|
|
2092
|
-
* (at your option) any later version.
|
|
2093
|
-
*
|
|
2094
|
-
* The Alfresco Example Content Application is distributed in the hope that it will be useful,
|
|
2095
|
-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
2096
|
-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
2097
|
-
* GNU Lesser General Public License for more details.
|
|
2098
|
-
*
|
|
2099
|
-
* You should have received a copy of the GNU Lesser General Public License
|
|
2100
|
-
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
|
|
2101
|
-
*/
|
|
2102
|
-
class SharedInfoDrawerModule {
|
|
2103
|
-
}
|
|
2104
|
-
SharedInfoDrawerModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: SharedInfoDrawerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
2105
|
-
SharedInfoDrawerModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.1.2", ngImport: i0, type: SharedInfoDrawerModule, declarations: [InfoDrawerComponent], imports: [CommonModule, InfoDrawerModule, MatProgressBarModule, ExtensionsModule, ToolbarModule, SharedToolbarModule, TranslateModule], exports: [InfoDrawerComponent] });
|
|
2106
|
-
SharedInfoDrawerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: SharedInfoDrawerModule, imports: [CommonModule, InfoDrawerModule, MatProgressBarModule, ExtensionsModule, ToolbarModule, SharedToolbarModule, TranslateModule] });
|
|
2107
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: SharedInfoDrawerModule, decorators: [{
|
|
2108
|
-
type: NgModule,
|
|
2109
|
-
args: [{
|
|
2110
|
-
imports: [CommonModule, InfoDrawerModule, MatProgressBarModule, ExtensionsModule, ToolbarModule, SharedToolbarModule, TranslateModule],
|
|
2111
|
-
declarations: [InfoDrawerComponent],
|
|
2112
|
-
exports: [InfoDrawerComponent]
|
|
2113
|
-
}]
|
|
2114
|
-
}] });
|
|
2115
|
-
|
|
2116
2031
|
/*!
|
|
2117
2032
|
* Copyright © 2005-2023 Hyland Software, Inc. and its affiliates. All rights reserved.
|
|
2118
2033
|
*
|
|
@@ -2220,9 +2135,9 @@ class AcaFileAutoDownloadService {
|
|
|
2220
2135
|
this.dialog.open(FileAutoDownloadComponent, { disableClose: true, data: node });
|
|
2221
2136
|
}
|
|
2222
2137
|
}
|
|
2223
|
-
AcaFileAutoDownloadService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.
|
|
2224
|
-
AcaFileAutoDownloadService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.1.
|
|
2225
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.
|
|
2138
|
+
AcaFileAutoDownloadService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: AcaFileAutoDownloadService, deps: [{ token: i1$1.MatDialog }, { token: i1.AppConfigService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2139
|
+
AcaFileAutoDownloadService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: AcaFileAutoDownloadService, providedIn: 'root' });
|
|
2140
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: AcaFileAutoDownloadService, decorators: [{
|
|
2226
2141
|
type: Injectable,
|
|
2227
2142
|
args: [{
|
|
2228
2143
|
providedIn: 'root'
|
|
@@ -2254,11 +2169,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImpor
|
|
|
2254
2169
|
*/
|
|
2255
2170
|
/* eslint-disable @angular-eslint/directive-class-suffix */
|
|
2256
2171
|
class PageComponent {
|
|
2257
|
-
constructor(
|
|
2258
|
-
this.store = store;
|
|
2259
|
-
this.extensions = extensions;
|
|
2260
|
-
this.content = content;
|
|
2261
|
-
this.fileAutoDownloadService = fileAutoDownloadService;
|
|
2172
|
+
constructor() {
|
|
2262
2173
|
this.onDestroy$ = new Subject();
|
|
2263
2174
|
this.title = 'Page';
|
|
2264
2175
|
this.actions = [];
|
|
@@ -2268,6 +2179,14 @@ class PageComponent {
|
|
|
2268
2179
|
this.showHeader = ShowHeaderMode.Data;
|
|
2269
2180
|
this.filterSorting = 'name-asc';
|
|
2270
2181
|
this.createActions = [];
|
|
2182
|
+
this.isSmallScreen = false;
|
|
2183
|
+
this.extensions = inject(AppExtensionService);
|
|
2184
|
+
this.content = inject(DocumentBasePageService);
|
|
2185
|
+
this.store = inject((Store));
|
|
2186
|
+
this.breakpointObserver = inject(BreakpointObserver);
|
|
2187
|
+
this.uploadService = inject(UploadService);
|
|
2188
|
+
this.router = inject(Router);
|
|
2189
|
+
this.fileAutoDownloadService = inject(AcaFileAutoDownloadService, { optional: true });
|
|
2271
2190
|
this.subscriptions = [];
|
|
2272
2191
|
}
|
|
2273
2192
|
ngOnInit() {
|
|
@@ -2305,6 +2224,12 @@ class PageComponent {
|
|
|
2305
2224
|
.subscribe((node) => {
|
|
2306
2225
|
this.canUpload = node && this.content.canUploadContent(node);
|
|
2307
2226
|
});
|
|
2227
|
+
this.breakpointObserver
|
|
2228
|
+
.observe([Breakpoints.HandsetPortrait, Breakpoints.HandsetLandscape])
|
|
2229
|
+
.pipe(takeUntil(this.onDestroy$))
|
|
2230
|
+
.subscribe((result) => {
|
|
2231
|
+
this.isSmallScreen = result.matches;
|
|
2232
|
+
});
|
|
2308
2233
|
}
|
|
2309
2234
|
ngOnChanges(changes) {
|
|
2310
2235
|
if (changes.nodeResult && changes.nodeResult.currentValue) {
|
|
@@ -2380,15 +2305,52 @@ class PageComponent {
|
|
|
2380
2305
|
}
|
|
2381
2306
|
}
|
|
2382
2307
|
}
|
|
2383
|
-
PageComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.
|
|
2384
|
-
PageComponent.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.1.
|
|
2385
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.
|
|
2308
|
+
PageComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: PageComponent, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
2309
|
+
PageComponent.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.1.3", type: PageComponent, viewQueries: [{ propertyName: "documentList", first: true, predicate: DocumentListComponent, descendants: true }], usesOnChanges: true, ngImport: i0 });
|
|
2310
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: PageComponent, decorators: [{
|
|
2386
2311
|
type: Directive
|
|
2387
|
-
}],
|
|
2312
|
+
}], propDecorators: { documentList: [{
|
|
2388
2313
|
type: ViewChild,
|
|
2389
2314
|
args: [DocumentListComponent]
|
|
2390
2315
|
}] } });
|
|
2391
2316
|
|
|
2317
|
+
/*!
|
|
2318
|
+
* Copyright © 2005-2023 Hyland Software, Inc. and its affiliates. All rights reserved.
|
|
2319
|
+
*
|
|
2320
|
+
* Alfresco Example Content Application
|
|
2321
|
+
*
|
|
2322
|
+
* This file is part of the Alfresco Example Content Application.
|
|
2323
|
+
* If the software was purchased under a paid Alfresco license, the terms of
|
|
2324
|
+
* the paid license agreement will prevail. Otherwise, the software is
|
|
2325
|
+
* provided under the following open source license terms:
|
|
2326
|
+
*
|
|
2327
|
+
* The Alfresco Example Content Application is free software: you can redistribute it and/or modify
|
|
2328
|
+
* it under the terms of the GNU Lesser General Public License as published by
|
|
2329
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
2330
|
+
* (at your option) any later version.
|
|
2331
|
+
*
|
|
2332
|
+
* The Alfresco Example Content Application is distributed in the hope that it will be useful,
|
|
2333
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
2334
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
2335
|
+
* GNU Lesser General Public License for more details.
|
|
2336
|
+
*
|
|
2337
|
+
* You should have received a copy of the GNU Lesser General Public License
|
|
2338
|
+
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
|
|
2339
|
+
*/
|
|
2340
|
+
class OpenInAppModule {
|
|
2341
|
+
}
|
|
2342
|
+
OpenInAppModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: OpenInAppModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
2343
|
+
OpenInAppModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.1.3", ngImport: i0, type: OpenInAppModule, declarations: [OpenInAppComponent], imports: [CommonModule, MatIconModule, TranslateModule, MatButtonModule, BrowserModule], exports: [OpenInAppComponent] });
|
|
2344
|
+
OpenInAppModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: OpenInAppModule, imports: [CommonModule, MatIconModule, TranslateModule, MatButtonModule, BrowserModule] });
|
|
2345
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: OpenInAppModule, decorators: [{
|
|
2346
|
+
type: NgModule,
|
|
2347
|
+
args: [{
|
|
2348
|
+
imports: [CommonModule, MatIconModule, TranslateModule, MatButtonModule, BrowserModule],
|
|
2349
|
+
declarations: [OpenInAppComponent],
|
|
2350
|
+
exports: [OpenInAppComponent]
|
|
2351
|
+
}]
|
|
2352
|
+
}] });
|
|
2353
|
+
|
|
2392
2354
|
/*!
|
|
2393
2355
|
* Copyright © 2005-2023 Hyland Software, Inc. and its affiliates. All rights reserved.
|
|
2394
2356
|
*
|
|
@@ -2472,9 +2434,9 @@ class ContextActionsDirective {
|
|
|
2472
2434
|
return el;
|
|
2473
2435
|
}
|
|
2474
2436
|
}
|
|
2475
|
-
ContextActionsDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.
|
|
2476
|
-
ContextActionsDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.1.
|
|
2477
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.
|
|
2437
|
+
ContextActionsDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: ContextActionsDirective, deps: [{ token: i1$2.Store }], target: i0.ɵɵFactoryTarget.Directive });
|
|
2438
|
+
ContextActionsDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.1.3", type: ContextActionsDirective, selector: "[acaContextActions]", inputs: { enabled: ["acaContextEnable", "enabled"] }, host: { listeners: { "contextmenu": "onContextMenuEvent($event)" } }, exportAs: ["acaContextActions"], ngImport: i0 });
|
|
2439
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: ContextActionsDirective, decorators: [{
|
|
2478
2440
|
type: Directive,
|
|
2479
2441
|
args: [{
|
|
2480
2442
|
selector: '[acaContextActions]',
|
|
@@ -2516,10 +2478,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImpor
|
|
|
2516
2478
|
*/
|
|
2517
2479
|
class ContextActionsModule {
|
|
2518
2480
|
}
|
|
2519
|
-
ContextActionsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.
|
|
2520
|
-
ContextActionsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.1.
|
|
2521
|
-
ContextActionsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.1.
|
|
2522
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.
|
|
2481
|
+
ContextActionsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: ContextActionsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
2482
|
+
ContextActionsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.1.3", ngImport: i0, type: ContextActionsModule, declarations: [ContextActionsDirective], exports: [ContextActionsDirective] });
|
|
2483
|
+
ContextActionsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: ContextActionsModule });
|
|
2484
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: ContextActionsModule, decorators: [{
|
|
2523
2485
|
type: NgModule,
|
|
2524
2486
|
args: [{
|
|
2525
2487
|
declarations: [ContextActionsDirective],
|
|
@@ -2568,9 +2530,9 @@ class PaginationDirective {
|
|
|
2568
2530
|
this.subscriptions = [];
|
|
2569
2531
|
}
|
|
2570
2532
|
}
|
|
2571
|
-
PaginationDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.
|
|
2572
|
-
PaginationDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.1.
|
|
2573
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.
|
|
2533
|
+
PaginationDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: PaginationDirective, deps: [{ token: i1.PaginationComponent }, { token: i1.UserPreferencesService }, { token: i1.AppConfigService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
2534
|
+
PaginationDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.1.3", type: PaginationDirective, selector: "[acaPagination]", ngImport: i0 });
|
|
2535
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: PaginationDirective, decorators: [{
|
|
2574
2536
|
type: Directive,
|
|
2575
2537
|
args: [{
|
|
2576
2538
|
selector: '[acaPagination]'
|
|
@@ -2602,10 +2564,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImpor
|
|
|
2602
2564
|
*/
|
|
2603
2565
|
class SharedDirectivesModule {
|
|
2604
2566
|
}
|
|
2605
|
-
SharedDirectivesModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.
|
|
2606
|
-
SharedDirectivesModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.1.
|
|
2607
|
-
SharedDirectivesModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.1.
|
|
2608
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.
|
|
2567
|
+
SharedDirectivesModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: SharedDirectivesModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
2568
|
+
SharedDirectivesModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.1.3", ngImport: i0, type: SharedDirectivesModule, declarations: [PaginationDirective], imports: [ContextActionsModule], exports: [PaginationDirective, ContextActionsModule] });
|
|
2569
|
+
SharedDirectivesModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: SharedDirectivesModule, imports: [ContextActionsModule, ContextActionsModule] });
|
|
2570
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: SharedDirectivesModule, decorators: [{
|
|
2609
2571
|
type: NgModule,
|
|
2610
2572
|
args: [{
|
|
2611
2573
|
imports: [ContextActionsModule],
|
|
@@ -2713,16 +2675,16 @@ class AppSharedRuleGuard {
|
|
|
2713
2675
|
constructor(store) {
|
|
2714
2676
|
this.isQuickShareEnabled$ = store.select(isQuickShareEnabled);
|
|
2715
2677
|
}
|
|
2716
|
-
canActivate(
|
|
2678
|
+
canActivate() {
|
|
2717
2679
|
return this.isQuickShareEnabled$;
|
|
2718
2680
|
}
|
|
2719
|
-
canActivateChild(
|
|
2720
|
-
return this.canActivate(
|
|
2681
|
+
canActivateChild() {
|
|
2682
|
+
return this.canActivate();
|
|
2721
2683
|
}
|
|
2722
2684
|
}
|
|
2723
|
-
AppSharedRuleGuard.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.
|
|
2724
|
-
AppSharedRuleGuard.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.1.
|
|
2725
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.
|
|
2685
|
+
AppSharedRuleGuard.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: AppSharedRuleGuard, deps: [{ token: i1$2.Store }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2686
|
+
AppSharedRuleGuard.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: AppSharedRuleGuard, providedIn: 'root' });
|
|
2687
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: AppSharedRuleGuard, decorators: [{
|
|
2726
2688
|
type: Injectable,
|
|
2727
2689
|
args: [{
|
|
2728
2690
|
providedIn: 'root'
|
|
@@ -2804,9 +2766,9 @@ class AppHookService {
|
|
|
2804
2766
|
this.favoriteLibraryToggle = new Subject();
|
|
2805
2767
|
}
|
|
2806
2768
|
}
|
|
2807
|
-
AppHookService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.
|
|
2808
|
-
AppHookService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.1.
|
|
2809
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.
|
|
2769
|
+
AppHookService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: AppHookService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2770
|
+
AppHookService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: AppHookService, providedIn: 'root' });
|
|
2771
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: AppHookService, decorators: [{
|
|
2810
2772
|
type: Injectable,
|
|
2811
2773
|
args: [{
|
|
2812
2774
|
providedIn: 'root'
|
|
@@ -2862,9 +2824,9 @@ class AlfrescoOfficeExtensionService {
|
|
|
2862
2824
|
return localStorage && localStorage.getItem('aosPlugin') === 'true';
|
|
2863
2825
|
}
|
|
2864
2826
|
}
|
|
2865
|
-
AlfrescoOfficeExtensionService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.
|
|
2866
|
-
AlfrescoOfficeExtensionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.1.
|
|
2867
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.
|
|
2827
|
+
AlfrescoOfficeExtensionService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: AlfrescoOfficeExtensionService, deps: [{ token: i1.AppConfigService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2828
|
+
AlfrescoOfficeExtensionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: AlfrescoOfficeExtensionService, providedIn: 'root' });
|
|
2829
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: AlfrescoOfficeExtensionService, decorators: [{
|
|
2868
2830
|
type: Injectable,
|
|
2869
2831
|
args: [{
|
|
2870
2832
|
providedIn: 'root'
|
|
@@ -2895,22 +2857,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImpor
|
|
|
2895
2857
|
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
|
|
2896
2858
|
*/
|
|
2897
2859
|
class SharedModule {
|
|
2898
|
-
static forRoot() {
|
|
2899
|
-
return {
|
|
2900
|
-
ngModule: SharedModule,
|
|
2901
|
-
providers: [ContentApiService, NodePermissionService, AppService]
|
|
2902
|
-
};
|
|
2903
|
-
}
|
|
2904
2860
|
}
|
|
2905
|
-
SharedModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.
|
|
2906
|
-
SharedModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.1.
|
|
2907
|
-
SharedModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.1.
|
|
2908
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.
|
|
2861
|
+
SharedModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: SharedModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
2862
|
+
SharedModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.1.3", ngImport: i0, type: SharedModule, imports: [ContextActionsModule, MatButtonModule, MatIconModule, MatDialogModule, TranslateModule], exports: [ContextActionsModule, MatButtonModule, MatIconModule, MatDialogModule, TranslateModule] });
|
|
2863
|
+
SharedModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: SharedModule, imports: [ContextActionsModule, MatButtonModule, MatIconModule, MatDialogModule, TranslateModule, ContextActionsModule, MatButtonModule, MatIconModule, MatDialogModule, TranslateModule] });
|
|
2864
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: SharedModule, decorators: [{
|
|
2909
2865
|
type: NgModule,
|
|
2910
2866
|
args: [{
|
|
2911
2867
|
imports: [ContextActionsModule, MatButtonModule, MatIconModule, MatDialogModule, TranslateModule],
|
|
2912
|
-
exports: [ContextActionsModule, MatButtonModule, MatIconModule, MatDialogModule, TranslateModule]
|
|
2913
|
-
declarations: [OpenInAppComponent]
|
|
2868
|
+
exports: [ContextActionsModule, MatButtonModule, MatIconModule, MatDialogModule, TranslateModule]
|
|
2914
2869
|
}]
|
|
2915
2870
|
}] });
|
|
2916
2871
|
|
|
@@ -2970,13 +2925,13 @@ const initialState = {
|
|
|
2970
2925
|
};
|
|
2971
2926
|
class LibTestingModule {
|
|
2972
2927
|
}
|
|
2973
|
-
LibTestingModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.
|
|
2974
|
-
LibTestingModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.1.
|
|
2928
|
+
LibTestingModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: LibTestingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
2929
|
+
LibTestingModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.1.3", ngImport: i0, type: LibTestingModule, imports: [NoopAnimationsModule,
|
|
2975
2930
|
CommonModule,
|
|
2976
2931
|
HttpClientModule,
|
|
2977
2932
|
RouterTestingModule,
|
|
2978
|
-
StoreModule, i1$3.EffectsRootModule,
|
|
2979
|
-
LibTestingModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.1.
|
|
2933
|
+
StoreModule, i1$3.EffectsRootModule, i5.TranslateModule, PipeModule], exports: [TranslateModule] });
|
|
2934
|
+
LibTestingModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: LibTestingModule, providers: [
|
|
2980
2935
|
{ provide: AlfrescoApiService, useClass: AlfrescoApiServiceMock },
|
|
2981
2936
|
{ provide: TranslationService, useClass: TranslationMock }
|
|
2982
2937
|
], imports: [NoopAnimationsModule,
|
|
@@ -2991,8 +2946,8 @@ LibTestingModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", versio
|
|
|
2991
2946
|
useClass: TranslateLoaderService
|
|
2992
2947
|
}
|
|
2993
2948
|
}),
|
|
2994
|
-
PipeModule] });
|
|
2995
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.
|
|
2949
|
+
PipeModule, TranslateModule] });
|
|
2950
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: LibTestingModule, decorators: [{
|
|
2996
2951
|
type: NgModule,
|
|
2997
2952
|
args: [{
|
|
2998
2953
|
imports: [
|
|
@@ -3010,6 +2965,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImpor
|
|
|
3010
2965
|
}),
|
|
3011
2966
|
PipeModule
|
|
3012
2967
|
],
|
|
2968
|
+
exports: [TranslateModule],
|
|
3013
2969
|
providers: [
|
|
3014
2970
|
{ provide: AlfrescoApiService, useClass: AlfrescoApiServiceMock },
|
|
3015
2971
|
{ provide: TranslationService, useClass: TranslationMock }
|
|
@@ -3045,5 +3001,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImpor
|
|
|
3045
3001
|
* Generated bundle index. Do not edit.
|
|
3046
3002
|
*/
|
|
3047
3003
|
|
|
3048
|
-
export { AcaFileAutoDownloadService, AlfrescoOfficeExtensionService, AppExtensionService, AppHookService, AppService, AppSharedRuleGuard, ContentApiService, ContextActionsDirective, ContextActionsModule, DefaultExtensionLoaderFactory, DocumentBasePageService, EXTENSION_DATA_LOADERS, ExtensionsDataLoaderGuard, GenericErrorComponent,
|
|
3004
|
+
export { AcaFileAutoDownloadService, AlfrescoOfficeExtensionService, AppExtensionService, AppHookService, AppService, AppSharedRuleGuard, ContentApiService, ContextActionsDirective, ContextActionsModule, DefaultExtensionLoaderFactory, DocumentBasePageService, EXTENSION_DATA_LOADERS, ExtensionsDataLoaderGuard, GenericErrorComponent, InfoDrawerComponent, LibTestingModule, LockedByComponent, NodePermissionService, OpenInAppComponent, OpenInAppModule, PageComponent, PageLayoutComponent, PageLayoutContentComponent, PageLayoutErrorComponent, PageLayoutHeaderComponent, PageLayoutModule, PaginationDirective, RouterExtensionService, SharedDirectivesModule, SharedModule, SharedToolbarModule, ToolbarActionComponent, ToolbarButtonComponent, ToolbarButtonType, ToolbarMenuComponent, ToolbarMenuItemComponent, initialState, isLibrary, isLocked };
|
|
3049
3005
|
//# sourceMappingURL=alfresco-aca-shared.mjs.map
|