@alfresco/adf-core 8.4.0-18230841087 → 8.4.0-18303591209
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/fesm2022/adf-core.mjs +6 -284
- package/fesm2022/adf-core.mjs.map +1 -1
- package/lib/app-config/app-config.service.d.ts +0 -1
- package/lib/auth/oidc/auth-config.d.ts +0 -6
- package/lib/auth/public-api.d.ts +0 -4
- package/lib/card-view/components/card-view-dateitem/card-view-dateitem.component.scss +16 -3
- package/lib/card-view/components/card-view-textitem/card-view-textitem.component.scss +8 -0
- package/lib/styles/_mat-selectors.scss +1 -0
- package/package.json +3 -3
- package/lib/auth/services/cross-app-auth-initializer.service.d.ts +0 -24
- package/lib/auth/services/cross-app-auth-integration.service.d.ts +0 -32
- package/lib/auth/services/cross-app-auth.providers.d.ts +0 -32
- package/lib/auth/services/cross-app-token-manager.service.d.ts +0 -22
|
@@ -39,7 +39,6 @@ export declare enum AppConfigValues {
|
|
|
39
39
|
AUTH_WITH_CREDENTIALS = "auth.withCredentials",
|
|
40
40
|
APPLICATION = "application",
|
|
41
41
|
STORAGE_PREFIX = "application.storagePrefix",
|
|
42
|
-
LINKED_STORAGE_AUTH_PREFIX = "application.linkedStorageAuthPrefix",
|
|
43
42
|
NOTIFY_DURATION = "notificationDefaultDuration",
|
|
44
43
|
CONTENT_TICKET_STORAGE_LABEL = "ticket-ECM",
|
|
45
44
|
PROCESS_TICKET_STORAGE_LABEL = "ticket-BPM",
|
|
@@ -18,11 +18,5 @@ import { InjectionToken } from '@angular/core';
|
|
|
18
18
|
export interface AuthModuleConfig {
|
|
19
19
|
readonly useHash: boolean;
|
|
20
20
|
preventClearHashAfterLogin?: boolean;
|
|
21
|
-
/**
|
|
22
|
-
* Enable cross-application authentication synchronization.
|
|
23
|
-
* When enabled, authentication state will be synchronized across applications
|
|
24
|
-
* running on the same domain with different localStorage prefixes.
|
|
25
|
-
*/
|
|
26
|
-
enableCrossAppSync?: boolean;
|
|
27
21
|
}
|
|
28
22
|
export declare const AUTH_MODULE_CONFIG: InjectionToken<AuthModuleConfig>;
|
package/lib/auth/public-api.d.ts
CHANGED
|
@@ -27,10 +27,6 @@ export * from './services/identity-group.service';
|
|
|
27
27
|
export * from './services/jwt-helper.service';
|
|
28
28
|
export * from './services/oauth2.service';
|
|
29
29
|
export * from './services/user-access.service';
|
|
30
|
-
export * from './services/cross-app-token-manager.service';
|
|
31
|
-
export * from './services/cross-app-auth-integration.service';
|
|
32
|
-
export * from './services/cross-app-auth-initializer.service';
|
|
33
|
-
export * from './services/cross-app-auth.providers';
|
|
34
30
|
export * from './basic-auth/basic-alfresco-auth.service';
|
|
35
31
|
export * from './basic-auth/process-auth';
|
|
36
32
|
export * from './basic-auth/content-auth';
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
@use '../../../styles/mat-selectors' as ms;
|
|
2
2
|
|
|
3
3
|
.adf-card-view-dateitem {
|
|
4
|
+
display: flow-root;
|
|
5
|
+
|
|
4
6
|
.adf-dateitem-editable {
|
|
5
7
|
cursor: pointer;
|
|
6
8
|
width: 100%;
|
|
@@ -9,6 +11,10 @@
|
|
|
9
11
|
display: flex;
|
|
10
12
|
align-items: center;
|
|
11
13
|
justify-content: space-between;
|
|
14
|
+
top: 6px;
|
|
15
|
+
position: relative;
|
|
16
|
+
left: 12px;
|
|
17
|
+
height: 20px;
|
|
12
18
|
|
|
13
19
|
#{ms.$mat-icon} {
|
|
14
20
|
opacity: 0.5;
|
|
@@ -29,6 +35,11 @@
|
|
|
29
35
|
position: relative;
|
|
30
36
|
}
|
|
31
37
|
}
|
|
38
|
+
|
|
39
|
+
#{ms.$mat-line-ripple},
|
|
40
|
+
#{ms.$mat-form-field-subscript-wrapper} {
|
|
41
|
+
display: none;
|
|
42
|
+
}
|
|
32
43
|
}
|
|
33
44
|
|
|
34
45
|
.adf-property-value {
|
|
@@ -43,20 +54,18 @@
|
|
|
43
54
|
align-items: center;
|
|
44
55
|
border-radius: 6px;
|
|
45
56
|
border-bottom: inherit;
|
|
46
|
-
|
|
57
|
+
padding-left: 0;
|
|
47
58
|
|
|
48
59
|
&:not(.adf-property-readonly-value) {
|
|
49
60
|
margin-top: 35px;
|
|
50
61
|
}
|
|
51
62
|
|
|
52
63
|
.adf-date-reset-icon {
|
|
53
|
-
top: 10px;
|
|
54
64
|
position: relative;
|
|
55
65
|
padding: 0;
|
|
56
66
|
}
|
|
57
67
|
|
|
58
68
|
.adf-dateitem-picker-toggle {
|
|
59
|
-
top: 10px;
|
|
60
69
|
position: relative;
|
|
61
70
|
}
|
|
62
71
|
}
|
|
@@ -75,6 +84,10 @@
|
|
|
75
84
|
margin: 0;
|
|
76
85
|
padding: 0;
|
|
77
86
|
float: right;
|
|
87
|
+
|
|
88
|
+
&#{ms.$mat-input-element}#{ms.$mat-form-field-input-control} {
|
|
89
|
+
margin-top: 35px;
|
|
90
|
+
}
|
|
78
91
|
}
|
|
79
92
|
|
|
80
93
|
.adf-dateitem-chip-list-container.adf-property-field {
|
|
@@ -17,6 +17,7 @@ $mat-checkbox: '.mat-mdc-checkbox';
|
|
|
17
17
|
$mat-checkbox-label: '.mdc-label';
|
|
18
18
|
$mat-button: '.mat-mdc-button';
|
|
19
19
|
$mat-button-label: '.mdc-button__label';
|
|
20
|
+
$mat-form-field-input-control: '.mat-mdc-form-field-input-control';
|
|
20
21
|
$mat-form-field: '.mat-mdc-form-field';
|
|
21
22
|
$mat-form-field-flex: '.mat-mdc-form-field-flex';
|
|
22
23
|
$mat-form-field-wrapper: '.mat-mdc-text-field-wrapper';
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alfresco/adf-core",
|
|
3
3
|
"description": "Alfresco ADF core",
|
|
4
|
-
"version": "8.4.0-
|
|
4
|
+
"version": "8.4.0-18303591209",
|
|
5
5
|
"author": "Hyland Software, Inc. and its affiliates",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -63,8 +63,8 @@
|
|
|
63
63
|
"@angular/router": ">=16.0.0",
|
|
64
64
|
"@mat-datetimepicker/core": ">=12.0.1",
|
|
65
65
|
"@ngx-translate/core": ">=16.0.0",
|
|
66
|
-
"@alfresco/js-api": ">=9.4.0-
|
|
67
|
-
"@alfresco/adf-extensions": ">=8.4.0-
|
|
66
|
+
"@alfresco/js-api": ">=9.4.0-18303591209",
|
|
67
|
+
"@alfresco/adf-extensions": ">=8.4.0-18303591209",
|
|
68
68
|
"minimatch": ">=10.0.0",
|
|
69
69
|
"pdfjs-dist": ">=3.3.122"
|
|
70
70
|
},
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
/**
|
|
3
|
-
* Service responsible for initializing cross-application authentication during app startup.
|
|
4
|
-
* Handles timeout management and error handling for the initialization process.
|
|
5
|
-
*/
|
|
6
|
-
export declare class CrossAppAuthInitializerService {
|
|
7
|
-
private readonly crossAppIntegration;
|
|
8
|
-
private readonly initializationTimeoutMs;
|
|
9
|
-
/**
|
|
10
|
-
* Initializes the cross-application login process.
|
|
11
|
-
*
|
|
12
|
-
* This method attempts to initialize the cross-app authentication flow with a timeout,
|
|
13
|
-
* and then performs a cross-app authentication request. If any error occurs during
|
|
14
|
-
* initialization or authentication, it handles the error and returns `false`.
|
|
15
|
-
*
|
|
16
|
-
* @returns A promise that resolves to `true` if cross-app login is successful, or `false` if an error occurs.
|
|
17
|
-
*/
|
|
18
|
-
initializeCrossAppLogin(): Promise<boolean>;
|
|
19
|
-
private initializeWithTimeout;
|
|
20
|
-
private createTimeoutPromise;
|
|
21
|
-
private handleInitializationError;
|
|
22
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CrossAppAuthInitializerService, never>;
|
|
23
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<CrossAppAuthInitializerService>;
|
|
24
|
-
}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
export declare class CrossAppAuthIntegrationService {
|
|
3
|
-
private readonly redirectAuthService;
|
|
4
|
-
private readonly crossAppTokenManager;
|
|
5
|
-
/**
|
|
6
|
-
* Initializes the cross-app authentication integration service.
|
|
7
|
-
*
|
|
8
|
-
* This method performs the following actions:
|
|
9
|
-
* - Awaits the initialization of the cross-app synchronization service.
|
|
10
|
-
* - Subscribes to the logout event from the redirect authentication service.
|
|
11
|
-
* When a logout occurs, it clears authentication tokens from all applications.
|
|
12
|
-
*
|
|
13
|
-
* @returns A promise that resolves when initialization is complete.
|
|
14
|
-
*/
|
|
15
|
-
initialize(): Promise<void>;
|
|
16
|
-
/**
|
|
17
|
-
* Process cross-app authentication request by detecting the crossAppAuth URL parameter.
|
|
18
|
-
* If present, cleans up the URL parameter and clears authentication tokens to prepare
|
|
19
|
-
* for a fresh authentication flow initiated by the redirect-auth service.
|
|
20
|
-
*
|
|
21
|
-
* @returns True if crossAppAuth parameter was present and processed
|
|
22
|
-
*/
|
|
23
|
-
processCrossAppAuthRequest(): Promise<boolean>;
|
|
24
|
-
/**
|
|
25
|
-
* Clear authentication tokens from all configured applications
|
|
26
|
-
*/
|
|
27
|
-
clearTokensFromAllApps(): void;
|
|
28
|
-
private hasCrossAppAuthParameter;
|
|
29
|
-
private cleanupCrossAppAuthParameter;
|
|
30
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CrossAppAuthIntegrationService, never>;
|
|
31
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<CrossAppAuthIntegrationService>;
|
|
32
|
-
}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved.
|
|
4
|
-
*
|
|
5
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
-
* you may not use this file except in compliance with the License.
|
|
7
|
-
* You may obtain a copy of the License at
|
|
8
|
-
*
|
|
9
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
-
*
|
|
11
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
-
* See the License for the specific language governing permissions and
|
|
15
|
-
* limitations under the License.
|
|
16
|
-
*/
|
|
17
|
-
import { Provider, EnvironmentProviders } from '@angular/core';
|
|
18
|
-
/**
|
|
19
|
-
* Factory function to create app initializer for cross-app authentication.
|
|
20
|
-
* Detects crossAppAuth URL parameter and attempts silent SSO with OAuth prompt=none.
|
|
21
|
-
* Handles the initialization process with proper error handling and timeout management.
|
|
22
|
-
*
|
|
23
|
-
* @returns Promise<boolean> indicating whether silent login was attempted
|
|
24
|
-
*/
|
|
25
|
-
export declare function crossAppAuthInitializerFactory(): () => Promise<boolean>;
|
|
26
|
-
/**
|
|
27
|
-
* Provides all necessary services and initializers for cross-app authentication.
|
|
28
|
-
* This includes the sync service, integration service, initializer service, and app initializer.
|
|
29
|
-
*
|
|
30
|
-
* @returns Array of providers for cross-app authentication
|
|
31
|
-
*/
|
|
32
|
-
export declare function provideCrossAppAuth(): (Provider | EnvironmentProviders)[];
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
export declare class CrossAppTokenManager {
|
|
3
|
-
private readonly appConfigService;
|
|
4
|
-
private appPrefixes;
|
|
5
|
-
/**
|
|
6
|
-
* Initializes the CrossAppTokenManager by waiting for the application configuration to load,
|
|
7
|
-
* then retrieves and sets the configured application prefixes.
|
|
8
|
-
* If no prefixes are found, logs an error to the console.
|
|
9
|
-
*
|
|
10
|
-
* @returns A promise that resolves when initialization is complete.
|
|
11
|
-
*/
|
|
12
|
-
initialize(): Promise<void>;
|
|
13
|
-
/**
|
|
14
|
-
* Clear authentication tokens from all configured prefixes
|
|
15
|
-
* Called when user explicitly logs out
|
|
16
|
-
*/
|
|
17
|
-
clearTokensFromAllApps(): void;
|
|
18
|
-
private buildStorageKey;
|
|
19
|
-
private getConfiguredPrefixes;
|
|
20
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CrossAppTokenManager, never>;
|
|
21
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<CrossAppTokenManager>;
|
|
22
|
-
}
|