@alfresco/aca-shared 4.0.0-A.2-10162 → 4.0.0-A.2-10175
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/components/open-in-app/open-in-app.component.mjs +52 -0
- package/esm2020/lib/services/aca-mobile-app-switcher.service.mjs +92 -0
- package/esm2020/lib/services/app.service.mjs +14 -4
- package/esm2020/lib/shared.module.mjs +10 -5
- package/fesm2015/alfresco-aca-shared.mjs +128 -7
- package/fesm2015/alfresco-aca-shared.mjs.map +1 -1
- package/fesm2020/alfresco-aca-shared.mjs +150 -7
- package/fesm2020/alfresco-aca-shared.mjs.map +1 -1
- package/lib/components/open-in-app/open-in-app.component.d.ts +13 -0
- package/lib/services/aca-mobile-app-switcher.service.d.ts +47 -0
- package/lib/services/app.service.d.ts +3 -1
- package/lib/shared.module.d.ts +6 -2
- package/package.json +1 -1
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export interface OpenInAppDialogOptions {
|
|
3
|
+
redirectUrl: string;
|
|
4
|
+
}
|
|
5
|
+
export declare class OpenInAppComponent {
|
|
6
|
+
data: OpenInAppDialogOptions;
|
|
7
|
+
private redirectUrl;
|
|
8
|
+
window: Window & typeof globalThis;
|
|
9
|
+
constructor(data: OpenInAppDialogOptions);
|
|
10
|
+
openInApp(): void;
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<OpenInAppComponent, never>;
|
|
12
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<OpenInAppComponent, "aca-open-in-app", never, {}, {}, never, never, false>;
|
|
13
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* @license
|
|
3
|
+
* Alfresco Example Content Application
|
|
4
|
+
*
|
|
5
|
+
* Copyright (C) 2005 - 2020 Alfresco Software Limited
|
|
6
|
+
*
|
|
7
|
+
* This file is part of the Alfresco Example Content Application.
|
|
8
|
+
* If the software was purchased under a paid Alfresco license, the terms of
|
|
9
|
+
* the paid license agreement will prevail. Otherwise, the software is
|
|
10
|
+
* provided under the following open source license terms:
|
|
11
|
+
*
|
|
12
|
+
* The Alfresco Example Content Application is free software: you can redistribute it and/or modify
|
|
13
|
+
* it under the terms of the GNU Lesser General Public License as published by
|
|
14
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
15
|
+
* (at your option) any later version.
|
|
16
|
+
*
|
|
17
|
+
* The Alfresco Example Content Application is distributed in the hope that it will be useful,
|
|
18
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
19
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
20
|
+
* GNU Lesser General Public License for more details.
|
|
21
|
+
*
|
|
22
|
+
* You should have received a copy of the GNU Lesser General Public License
|
|
23
|
+
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
|
24
|
+
*/
|
|
25
|
+
import { AppConfigService } from '@alfresco/adf-core';
|
|
26
|
+
import { MatDialog } from '@angular/material/dialog';
|
|
27
|
+
import * as i0 from "@angular/core";
|
|
28
|
+
export interface MobileAppSwitchConfigurationOptions {
|
|
29
|
+
enabled: string;
|
|
30
|
+
iphoneUrl: string;
|
|
31
|
+
androidUrlPart1: string;
|
|
32
|
+
androidUrlPart2: string;
|
|
33
|
+
sessionTimeForOpenAppDialogDisplay: string;
|
|
34
|
+
}
|
|
35
|
+
export declare class AcaMobileAppSwitcherService {
|
|
36
|
+
private config;
|
|
37
|
+
private dialog;
|
|
38
|
+
private mobileAppSwitchConfig;
|
|
39
|
+
redirectUrl: string;
|
|
40
|
+
constructor(config: AppConfigService, dialog: MatDialog);
|
|
41
|
+
checkForMobileApp(): void;
|
|
42
|
+
showAppNotification(): void;
|
|
43
|
+
openInApp(redirectUrl: string): void;
|
|
44
|
+
reset(): void;
|
|
45
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AcaMobileAppSwitcherService, never>;
|
|
46
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AcaMobileAppSwitcherService>;
|
|
47
|
+
}
|
|
@@ -32,6 +32,7 @@ import { AppState, AppStore } from '@alfresco/aca-shared/store';
|
|
|
32
32
|
import { ContentApiService } from './content-api.service';
|
|
33
33
|
import { RouterExtensionService } from './router.extension.service';
|
|
34
34
|
import { Store } from '@ngrx/store';
|
|
35
|
+
import { AcaMobileAppSwitcherService } from './aca-mobile-app-switcher.service';
|
|
35
36
|
import * as i0 from "@angular/core";
|
|
36
37
|
export declare class AppService implements OnDestroy {
|
|
37
38
|
preferencesService: UserPreferencesService;
|
|
@@ -49,6 +50,7 @@ export declare class AppService implements OnDestroy {
|
|
|
49
50
|
private groupService;
|
|
50
51
|
private overlayContainer;
|
|
51
52
|
private initialAppState;
|
|
53
|
+
private acaMobileAppSwitcherService;
|
|
52
54
|
private ready;
|
|
53
55
|
ready$: Observable<boolean>;
|
|
54
56
|
pageHeading$: Observable<string>;
|
|
@@ -60,7 +62,7 @@ export declare class AppService implements OnDestroy {
|
|
|
60
62
|
* Usually means that `Kerberos` mode is used.
|
|
61
63
|
*/
|
|
62
64
|
get withCredentials(): boolean;
|
|
63
|
-
constructor(preferencesService: UserPreferencesService, authenticationService: AuthenticationService, store: Store<AppStore>, router: Router, activatedRoute: ActivatedRoute, config: AppConfigService, pageTitle: PageTitleService, alfrescoApiService: AlfrescoApiService, uploadService: UploadService, routerExtensionService: RouterExtensionService, contentApi: ContentApiService, sharedLinksApiService: SharedLinksApiService, groupService: GroupService, overlayContainer: OverlayContainer, initialAppState: AppState, searchQueryBuilderService: SearchQueryBuilderService);
|
|
65
|
+
constructor(preferencesService: UserPreferencesService, authenticationService: AuthenticationService, store: Store<AppStore>, router: Router, activatedRoute: ActivatedRoute, config: AppConfigService, pageTitle: PageTitleService, alfrescoApiService: AlfrescoApiService, uploadService: UploadService, routerExtensionService: RouterExtensionService, contentApi: ContentApiService, sharedLinksApiService: SharedLinksApiService, groupService: GroupService, overlayContainer: OverlayContainer, initialAppState: AppState, searchQueryBuilderService: SearchQueryBuilderService, acaMobileAppSwitcherService: AcaMobileAppSwitcherService);
|
|
64
66
|
ngOnDestroy(): void;
|
|
65
67
|
init(): void;
|
|
66
68
|
private loadRepositoryStatus;
|
package/lib/shared.module.d.ts
CHANGED
|
@@ -24,10 +24,14 @@
|
|
|
24
24
|
*/
|
|
25
25
|
import { ModuleWithProviders } from '@angular/core';
|
|
26
26
|
import * as i0 from "@angular/core";
|
|
27
|
-
import * as i1 from "./
|
|
27
|
+
import * as i1 from "./components/open-in-app/open-in-app.component";
|
|
28
|
+
import * as i2 from "./directives/contextmenu/contextmenu.module";
|
|
29
|
+
import * as i3 from "@angular/material/button";
|
|
30
|
+
import * as i4 from "@angular/material/icon";
|
|
31
|
+
import * as i5 from "@angular/material/dialog";
|
|
28
32
|
export declare class SharedModule {
|
|
29
33
|
static forRoot(): ModuleWithProviders<SharedModule>;
|
|
30
34
|
static ɵfac: i0.ɵɵFactoryDeclaration<SharedModule, never>;
|
|
31
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<SharedModule,
|
|
35
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<SharedModule, [typeof i1.OpenInAppComponent], [typeof i2.ContextActionsModule, typeof i3.MatButtonModule, typeof i4.MatIconModule, typeof i5.MatDialogModule], [typeof i2.ContextActionsModule, typeof i3.MatButtonModule, typeof i4.MatIconModule, typeof i5.MatDialogModule]>;
|
|
32
36
|
static ɵinj: i0.ɵɵInjectorDeclaration<SharedModule>;
|
|
33
37
|
}
|