@alfresco/aca-shared 4.1.0 → 4.2.0-5532558904

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.
@@ -1,45 +1,13 @@
1
- /*!
2
- * Copyright © 2005-2023 Hyland Software, Inc. and its affiliates. All rights reserved.
3
- *
4
- * Alfresco Example Content Application
5
- *
6
- * This file is part of the Alfresco Example Content Application.
7
- * If the software was purchased under a paid Alfresco license, the terms of
8
- * the paid license agreement will prevail. Otherwise, the software is
9
- * provided under the following open source license terms:
10
- *
11
- * The Alfresco Example Content Application is free software: you can redistribute it and/or modify
12
- * it under the terms of the GNU Lesser General Public License as published by
13
- * the Free Software Foundation, either version 3 of the License, or
14
- * (at your option) any later version.
15
- *
16
- * The Alfresco Example Content Application is distributed in the hope that it will be useful,
17
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
18
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19
- * GNU Lesser General Public License for more details.
20
- *
21
- * You should have received a copy of the GNU Lesser General Public License
22
- * from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
23
- */
24
- import { AppConfigService } from '@alfresco/adf-core';
25
- import { MatDialog } from '@angular/material/dialog';
26
1
  import * as i0 from "@angular/core";
27
- export interface MobileAppSwitchConfigurationOptions {
28
- enabled: string;
29
- iphoneUrl: string;
30
- androidUrlPart1: string;
31
- androidUrlPart2: string;
32
- sessionTimeForOpenAppDialogDisplay: string;
33
- appStoreUrl: string;
34
- }
35
2
  export declare class AcaMobileAppSwitcherService {
36
- private config;
37
- private dialog;
38
- private mobileAppSwitchConfig;
39
3
  redirectUrl: string;
40
- appStoreUrl: string;
41
4
  private dialogRef;
42
- constructor(config: AppConfigService, dialog: MatDialog);
5
+ private config;
6
+ private dialog;
7
+ get appStoreUrl(): string;
8
+ get sessionTimeout(): number;
9
+ getIPhoneRedirectUrl(url: string): string;
10
+ getAndroidRedirectUrl(url: string): string;
43
11
  resolveExistenceOfDialog(): void;
44
12
  verifySessionExistsForDialog(): void;
45
13
  identifyBrowserAndSetRedirectURL(): void;
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@alfresco/aca-shared",
3
- "version": "4.1.0",
3
+ "version": "4.2.0-5532558904",
4
4
  "commit": "",
5
5
  "license": "LGPL-3.0",
6
6
  "peerDependencies": {
7
- "@alfresco/adf-content-services": ">=6.2.0",
8
- "@alfresco/adf-core": ">=6.2.0",
9
- "@alfresco/adf-extensions": ">=6.2.0",
10
- "@alfresco/js-api": ">=6.2.0",
7
+ "@alfresco/adf-content-services": "^6.3.0-5468717985",
8
+ "@alfresco/adf-core": "6.3.0-5468717985",
9
+ "@alfresco/adf-extensions": "6.3.0-5468717985",
10
+ "@alfresco/js-api": ">=6.3.0-1025",
11
11
  "@angular/animations": "^14.1.3",
12
12
  "@angular/common": "^14.1.3",
13
13
  "@angular/compiler": "^14.1.3",
package/public-api.d.ts CHANGED
@@ -53,7 +53,6 @@ export * from './lib/services/node-permission.service';
53
53
  export * from './lib/services/app.extension.service';
54
54
  export * from './lib/services/router.extension.service';
55
55
  export * from './lib/services/app-hook.service';
56
- export * from './lib/services/alfresco-office-extension.service';
57
56
  export * from './lib/services/aca-file-auto-download.service';
58
57
  export * from './lib/utils/node.utils';
59
58
  export * from './lib/shared.module';
@@ -70,7 +70,7 @@ export interface AcaRuleContext extends RuleContext {
70
70
  * Checks if the content plugin is enabled.
71
71
  * JSON ref: `app.isContentServiceEnabled`
72
72
  */
73
- export declare const isContentServiceEnabled: () => boolean;
73
+ export declare const isContentServiceEnabled: (context: AcaRuleContext) => boolean;
74
74
  /**
75
75
  * Checks if Search is supported for active view
76
76
  * JSON ref: `app.isSearchSupported`
@@ -80,9 +80,9 @@ export declare const isSearchSupported: (context: RuleContext) => boolean;
80
80
  * Checks if upload action is supported for the given context
81
81
  * JSON ref: `app.isUploadSupported`
82
82
  *
83
- * @param content Rule execution context
83
+ * @param context Rule execution context
84
84
  */
85
- export declare const isUploadSupported: (context: RuleContext) => boolean;
85
+ export declare const isUploadSupported: (context: AcaRuleContext) => boolean;
86
86
  /**
87
87
  * Checks if user can copy selected node.
88
88
  * JSON ref: `app.canCopyNode`
@@ -141,19 +141,19 @@ export declare const hasSelection: (context: RuleContext) => boolean;
141
141
  * Checks if user can create a new folder with current path.
142
142
  * JSON ref: `app.navigation.folder.canCreate`
143
143
  */
144
- export declare function canCreateFolder(context: RuleContext): boolean;
144
+ export declare function canCreateFolder(context: AcaRuleContext): boolean;
145
145
  /**
146
146
  * Checks if user can create a Library
147
147
  * JSON ref: `app.canCreateLibrary`
148
148
  *
149
149
  * @param context Rule execution context
150
150
  */
151
- export declare const canCreateLibrary: (context: RuleContext) => boolean;
151
+ export declare const canCreateLibrary: (context: AcaRuleContext) => boolean;
152
152
  /**
153
153
  * Checks if user can upload content to current folder.
154
154
  * JSON ref: `app.navigation.folder.canUpload`
155
155
  */
156
- export declare function canUpload(context: RuleContext): boolean;
156
+ export declare function canUpload(context: AcaRuleContext): boolean;
157
157
  /**
158
158
  * Checks if user can download selected nodes (either files or folders).
159
159
  * JSON ref: `app.selection.canDownload`
@@ -328,4 +328,4 @@ export declare const showInfoSelectionButton: (context: RuleContext) => boolean;
328
328
  *
329
329
  * @param context Rule execution context
330
330
  */
331
- export declare function canOpenWithOffice(context: RuleContext): boolean;
331
+ export declare function canOpenWithOffice(context: AcaRuleContext): boolean;
@@ -1,63 +0,0 @@
1
- /*!
2
- * Copyright © 2005-2023 Hyland Software, Inc. and its affiliates. All rights reserved.
3
- *
4
- * Alfresco Example Content Application
5
- *
6
- * This file is part of the Alfresco Example Content Application.
7
- * If the software was purchased under a paid Alfresco license, the terms of
8
- * the paid license agreement will prevail. Otherwise, the software is
9
- * provided under the following open source license terms:
10
- *
11
- * The Alfresco Example Content Application is free software: you can redistribute it and/or modify
12
- * it under the terms of the GNU Lesser General Public License as published by
13
- * the Free Software Foundation, either version 3 of the License, or
14
- * (at your option) any later version.
15
- *
16
- * The Alfresco Example Content Application is distributed in the hope that it will be useful,
17
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
18
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19
- * GNU Lesser General Public License for more details.
20
- *
21
- * You should have received a copy of the GNU Lesser General Public License
22
- * from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
23
- */
24
- import { Injectable } from '@angular/core';
25
- import { AppConfigService } from '@alfresco/adf-core';
26
- import { map, take } from 'rxjs/operators';
27
- import * as i0 from "@angular/core";
28
- import * as i1 from "@alfresco/adf-core";
29
- export class AlfrescoOfficeExtensionService {
30
- constructor(appConfigService) {
31
- this.appConfigService = appConfigService;
32
- this.appConfigService.onLoad
33
- .pipe(take(1), map((appConfig) => appConfig.plugins && appConfig.plugins.aosPlugin))
34
- .subscribe((aosPlugin) => {
35
- if (aosPlugin) {
36
- this.enablePlugin();
37
- }
38
- else {
39
- this.disablePlugin();
40
- }
41
- });
42
- }
43
- enablePlugin() {
44
- if (localStorage && localStorage.getItem('aosPlugin') === null) {
45
- localStorage.setItem('aosPlugin', 'true');
46
- }
47
- }
48
- disablePlugin() {
49
- localStorage.removeItem('aosPlugin');
50
- }
51
- isAosPluginEnabled() {
52
- return localStorage && localStorage.getItem('aosPlugin') === 'true';
53
- }
54
- }
55
- AlfrescoOfficeExtensionService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: AlfrescoOfficeExtensionService, deps: [{ token: i1.AppConfigService }], target: i0.ɵɵFactoryTarget.Injectable });
56
- AlfrescoOfficeExtensionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: AlfrescoOfficeExtensionService, providedIn: 'root' });
57
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: AlfrescoOfficeExtensionService, decorators: [{
58
- type: Injectable,
59
- args: [{
60
- providedIn: 'root'
61
- }]
62
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lUGx1Z2luKCkge1xuICAgIGxvY2FsU3RvcmFnZS5yZW1vdmVJdGVtKCdhb3NQbHVnaW4nKTtcbiAgfVxuXG4gIGlzQW9zUGx1Z2luRW5hYmxlZCgpIHtcbiAgICByZXR1cm4gbG9jYWxTdG9yYWdlICYmIGxvY2FsU3RvcmFnZS5nZXRJdGVtKCdhb3NQbHVnaW4nKSA9PT0gJ3RydWUnO1xuICB9XG59XG4iXX0=
@@ -1,11 +0,0 @@
1
- import { AppConfigService } from '@alfresco/adf-core';
2
- import * as i0 from "@angular/core";
3
- export declare class AlfrescoOfficeExtensionService {
4
- private appConfigService;
5
- constructor(appConfigService: AppConfigService);
6
- enablePlugin(): void;
7
- disablePlugin(): void;
8
- isAosPluginEnabled(): boolean;
9
- static ɵfac: i0.ɵɵFactoryDeclaration<AlfrescoOfficeExtensionService, never>;
10
- static ɵprov: i0.ɵɵInjectableDeclaration<AlfrescoOfficeExtensionService>;
11
- }