@alfresco/adf-core 8.1.0-16445172226 → 8.1.0-16472253724
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/bundles/assets/adf-core/i18n/pl.json +1 -1
- package/esm2022/lib/auth/basic-auth/basic-alfresco-auth.service.mjs +14 -1
- package/esm2022/lib/auth/guard/auth-guard-bpm.service.mjs +2 -2
- package/esm2022/lib/auth/interfaces/authentication-service.interface.mjs +1 -1
- package/esm2022/lib/auth/oidc/oidc-authentication.service.mjs +16 -14
- package/esm2022/lib/auth/services/authentication.service.mjs +17 -17
- package/esm2022/lib/auth/services/base-authentication.service.mjs +1 -5
- package/esm2022/lib/card-view/components/card-view/card-view.component.mjs +3 -3
- package/esm2022/lib/card-view/components/card-view-selectitem/card-view-selectitem.component.mjs +3 -3
- package/esm2022/lib/card-view/components/card-view-textitem/card-view-textitem.component.mjs +3 -3
- package/esm2022/lib/form/components/widgets/text/text-mask.component.mjs +8 -2
- package/esm2022/lib/landing-page/index.mjs +18 -0
- package/esm2022/lib/landing-page/provider.mjs +30 -0
- package/esm2022/lib/landing-page/public-api.mjs +18 -0
- package/esm2022/lib/testing/unit-testing-utils.mjs +4 -1
- package/esm2022/lib/translation/provide-i18n.mjs +48 -0
- package/esm2022/lib/translation/public-api.mjs +2 -1
- package/esm2022/public-api.mjs +2 -1
- package/fesm2022/adf-core.mjs +170 -43
- package/fesm2022/adf-core.mjs.map +1 -1
- package/lib/auth/basic-auth/basic-alfresco-auth.service.d.ts +13 -0
- package/lib/auth/interfaces/authentication-service.interface.d.ts +9 -4
- package/lib/auth/oidc/oidc-authentication.service.d.ts +15 -5
- package/lib/auth/services/authentication.service.d.ts +12 -2
- package/lib/auth/services/base-authentication.service.d.ts +5 -1
- package/lib/card-view/components/card-view/card-view.component.scss +9 -0
- package/lib/card-view/components/card-view-selectitem/card-view-selectitem.component.scss +2 -1
- package/lib/card-view/components/card-view-textitem/card-view-textitem.component.scss +5 -1
- package/lib/form/components/widgets/text/text-mask.component.d.ts +1 -0
- package/lib/landing-page/index.d.ts +17 -0
- package/lib/landing-page/provider.d.ts +24 -0
- package/lib/landing-page/public-api.d.ts +17 -0
- package/lib/testing/unit-testing-utils.d.ts +1 -0
- package/lib/translation/provide-i18n.d.ts +39 -0
- package/lib/translation/public-api.d.ts +1 -0
- package/package.json +3 -3
- package/public-api.d.ts +1 -0
|
@@ -79,8 +79,21 @@ export declare class BasicAlfrescoAuthService extends BaseAuthenticationService
|
|
|
79
79
|
setRedirect(url?: RedirectionModel): void;
|
|
80
80
|
private hasValidRedirection;
|
|
81
81
|
private hasSelectedProviderAll;
|
|
82
|
+
/**
|
|
83
|
+
* @deprecated use `getUsername()` instead
|
|
84
|
+
* @returns the username of the authenticated user
|
|
85
|
+
*/
|
|
82
86
|
getBpmUsername(): string;
|
|
87
|
+
/**
|
|
88
|
+
* @deprecated use `getUsername()` instead
|
|
89
|
+
* @returns the username of the authenticated user
|
|
90
|
+
*/
|
|
83
91
|
getEcmUsername(): string;
|
|
92
|
+
/**
|
|
93
|
+
* Gets the username of the authenticated user.
|
|
94
|
+
*
|
|
95
|
+
* @returns the username of the authenticated user
|
|
96
|
+
*/
|
|
84
97
|
getUsername(): string;
|
|
85
98
|
/**
|
|
86
99
|
* Does kerberos enabled?
|
|
@@ -29,14 +29,19 @@ export interface AuthenticationServiceInterface {
|
|
|
29
29
|
isLoggedIn(): boolean;
|
|
30
30
|
isOauth(): boolean;
|
|
31
31
|
logout(): any;
|
|
32
|
-
isEcmLoggedIn(): boolean;
|
|
33
|
-
isBpmLoggedIn(): boolean;
|
|
34
32
|
isECMProvider(): boolean;
|
|
35
33
|
isBPMProvider(): boolean;
|
|
36
34
|
isALLProvider(): boolean;
|
|
37
|
-
|
|
38
|
-
getBpmUsername(): string;
|
|
35
|
+
getUsername(): string;
|
|
39
36
|
getAuthHeaders(requestUrl: string, header: HttpHeaders): HttpHeaders;
|
|
40
37
|
addTokenToHeader(requestUrl: string, headersArg?: HttpHeaders): Observable<HttpHeaders>;
|
|
41
38
|
reset(): void;
|
|
39
|
+
/** @deprecated use `isLoggedIn` instead, use `isECMProvider` if you need to know the auth type */
|
|
40
|
+
isEcmLoggedIn(): boolean;
|
|
41
|
+
/** @deprecated use `isLoggedIn` instead, use `isBPMProvider` if you need to know the auth type */
|
|
42
|
+
isBpmLoggedIn(): boolean;
|
|
43
|
+
/** @deprecated use `getUsername` instead */
|
|
44
|
+
getEcmUsername(): string;
|
|
45
|
+
/** @deprecated use `getUsername` instead */
|
|
46
|
+
getBpmUsername(): string;
|
|
42
47
|
}
|
|
@@ -23,13 +23,19 @@ export declare class OidcAuthenticationService extends BaseAuthenticationService
|
|
|
23
23
|
* and the discovery document is loaded, otherwise it emits `false`.
|
|
24
24
|
*/
|
|
25
25
|
shouldPerformSsoLogin$: Observable<boolean>;
|
|
26
|
+
/**
|
|
27
|
+
* @deprecated use `isLoggedIn` instead
|
|
28
|
+
* @returns true if the ECM provider is logged in
|
|
29
|
+
*/
|
|
26
30
|
isEcmLoggedIn(): boolean;
|
|
31
|
+
/**
|
|
32
|
+
* @deprecated use `isLoggedIn` instead
|
|
33
|
+
* @returns true if the BPM provider is logged in
|
|
34
|
+
*/
|
|
27
35
|
isBpmLoggedIn(): boolean;
|
|
28
36
|
isLoggedIn(): boolean;
|
|
29
37
|
hasValidAccessToken(): boolean;
|
|
30
38
|
hasValidIdToken(): boolean;
|
|
31
|
-
isImplicitFlow(): boolean;
|
|
32
|
-
isAuthCodeFlow(): boolean;
|
|
33
39
|
login(username: string, password: string): Observable<{
|
|
34
40
|
type: string;
|
|
35
41
|
ticket: any;
|
|
@@ -38,19 +44,23 @@ export declare class OidcAuthenticationService extends BaseAuthenticationService
|
|
|
38
44
|
type: string;
|
|
39
45
|
ticket: any;
|
|
40
46
|
}>;
|
|
47
|
+
/**
|
|
48
|
+
* Gets the username of the authenticated user.
|
|
49
|
+
*
|
|
50
|
+
* @returns the logged username
|
|
51
|
+
*/
|
|
41
52
|
getUsername(): string;
|
|
42
53
|
/**
|
|
43
|
-
* @deprecated
|
|
54
|
+
* @deprecated use `getUsername` instead
|
|
44
55
|
* @returns the logged username
|
|
45
56
|
*/
|
|
46
57
|
getEcmUsername(): string;
|
|
47
58
|
/**
|
|
48
|
-
* @deprecated
|
|
59
|
+
* @deprecated use `getUsername` instead
|
|
49
60
|
* @returns the logged username
|
|
50
61
|
*/
|
|
51
62
|
getBpmUsername(): string;
|
|
52
63
|
ssoLogin(redirectUrl?: string): void;
|
|
53
|
-
ssoCodeFlowLogin(): void;
|
|
54
64
|
isRememberMeSet(): boolean;
|
|
55
65
|
logout(): Observable<never>;
|
|
56
66
|
getToken(): string;
|
|
@@ -42,7 +42,15 @@ export declare class AuthenticationService implements AuthenticationServiceInter
|
|
|
42
42
|
getToken(): string;
|
|
43
43
|
isLoggedIn(): boolean;
|
|
44
44
|
logout(): Observable<any>;
|
|
45
|
+
/**
|
|
46
|
+
* @deprecated use `isLoggedIn` instead
|
|
47
|
+
* @returns true if the ECM provider is logged in
|
|
48
|
+
*/
|
|
45
49
|
isEcmLoggedIn(): boolean;
|
|
50
|
+
/**
|
|
51
|
+
* @deprecated use `isLoggedIn` instead
|
|
52
|
+
* @returns true if the BPM provider is logged in
|
|
53
|
+
*/
|
|
46
54
|
isBpmLoggedIn(): boolean;
|
|
47
55
|
reset(): void;
|
|
48
56
|
login(username: string, password: string, rememberMe?: boolean): Observable<{
|
|
@@ -50,16 +58,18 @@ export declare class AuthenticationService implements AuthenticationServiceInter
|
|
|
50
58
|
ticket: any;
|
|
51
59
|
}>;
|
|
52
60
|
/**
|
|
61
|
+
* Gets the username of the authenticated user.
|
|
62
|
+
*
|
|
53
63
|
* @returns the username of the authenticated user
|
|
54
64
|
*/
|
|
55
65
|
getUsername(): string;
|
|
56
66
|
/**
|
|
57
|
-
* @deprecated
|
|
67
|
+
* @deprecated use `getUsername` instead
|
|
58
68
|
* @returns the logged username
|
|
59
69
|
*/
|
|
60
70
|
getEcmUsername(): string;
|
|
61
71
|
/**
|
|
62
|
-
* @deprecated
|
|
72
|
+
* @deprecated use `getUsername` instead
|
|
63
73
|
* @returns the logged username
|
|
64
74
|
*/
|
|
65
75
|
getBpmUsername(): string;
|
|
@@ -37,10 +37,15 @@ export declare abstract class BaseAuthenticationService implements Authenticatio
|
|
|
37
37
|
abstract getToken(): string;
|
|
38
38
|
abstract isLoggedIn(): boolean;
|
|
39
39
|
abstract logout(): any;
|
|
40
|
+
/** @deprecated use `isLoggedIn` instead */
|
|
40
41
|
abstract isEcmLoggedIn(): boolean;
|
|
42
|
+
/** @deprecated use `isLoggedIn` instead */
|
|
41
43
|
abstract isBpmLoggedIn(): boolean;
|
|
42
44
|
abstract reset(): void;
|
|
45
|
+
abstract getUsername(): string;
|
|
46
|
+
/** @deprecated use `getUsername` instead */
|
|
43
47
|
abstract getEcmUsername(): string;
|
|
48
|
+
/** @deprecated use `getUsername` instead */
|
|
44
49
|
abstract getBpmUsername(): string;
|
|
45
50
|
/**
|
|
46
51
|
* Adds the auth token to an HTTP header using the 'bearer' scheme.
|
|
@@ -63,7 +68,6 @@ export declare abstract class BaseAuthenticationService implements Authenticatio
|
|
|
63
68
|
* @returns True if both are supported, false otherwise
|
|
64
69
|
*/
|
|
65
70
|
isALLProvider(): boolean;
|
|
66
|
-
isOauthConfiguration(): boolean;
|
|
67
71
|
/**
|
|
68
72
|
* Prints an error message in the console browser
|
|
69
73
|
*
|
|
@@ -10,6 +10,10 @@
|
|
|
10
10
|
display: flex;
|
|
11
11
|
line-height: 20px;
|
|
12
12
|
|
|
13
|
+
&.adf-property-value-editable {
|
|
14
|
+
color: var(--adf-metadata-property-panel-title-color);
|
|
15
|
+
}
|
|
16
|
+
|
|
13
17
|
&.adf-property-readonly-value {
|
|
14
18
|
color: var(--adf-metadata-property-panel-label-color);
|
|
15
19
|
}
|
|
@@ -29,6 +33,8 @@
|
|
|
29
33
|
|
|
30
34
|
#{ms.$mat-input-element} {
|
|
31
35
|
text-overflow: ellipsis;
|
|
36
|
+
color: var(--adf-metadata-property-panel-title-color);
|
|
37
|
+
padding: 6px 0;
|
|
32
38
|
line-height: 20px;
|
|
33
39
|
}
|
|
34
40
|
|
|
@@ -75,7 +81,10 @@
|
|
|
75
81
|
}
|
|
76
82
|
|
|
77
83
|
.adf-property-value {
|
|
84
|
+
color: var(--adf-metadata-property-panel-title-color);
|
|
85
|
+
|
|
78
86
|
&.adf-property-value-editable {
|
|
87
|
+
color: var(--adf-metadata-property-panel-title-color);
|
|
79
88
|
background-color: var(--adf-metadata-buttons-background-color);
|
|
80
89
|
box-sizing: border-box;
|
|
81
90
|
border-radius: 6px;
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
z-index: 1;
|
|
15
15
|
}
|
|
16
16
|
|
|
17
|
-
.adf-property-value-editable {
|
|
17
|
+
.adf-property-value-editable.adf-property-value-editable {
|
|
18
18
|
padding-left: 0;
|
|
19
19
|
|
|
20
20
|
#{ms.$mat-text-field-no-label} #{ms.$mat-form-field-infix} {
|
|
@@ -55,6 +55,7 @@
|
|
|
55
55
|
cursor: default;
|
|
56
56
|
padding: 6px 0;
|
|
57
57
|
border-bottom: 1px solid var(--adf-metadata-property-panel-border-color);
|
|
58
|
+
color: var(--adf-metadata-property-panel-title-color);
|
|
58
59
|
}
|
|
59
60
|
|
|
60
61
|
#{ms.$mat-line-ripple} {
|
|
@@ -71,7 +71,11 @@
|
|
|
71
71
|
border-bottom: 1px solid var(--adf-metadata-property-panel-border-color);
|
|
72
72
|
}
|
|
73
73
|
|
|
74
|
-
.adf-property-value
|
|
74
|
+
.adf-property-readonly-value:disabled {
|
|
75
|
+
color: var(--adf-metadata-property-panel-title-color);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.adf-property-value-editable:not(:disabled) {
|
|
75
79
|
color: var(--adf-metadata-property-panel-title-color);
|
|
76
80
|
}
|
|
77
81
|
|
|
@@ -37,6 +37,7 @@ export declare class InputMaskDirective implements OnChanges, ControlValueAccess
|
|
|
37
37
|
_onChange: (_: any) => void;
|
|
38
38
|
_onTouched: () => void;
|
|
39
39
|
onTextInput(event: KeyboardEvent): void;
|
|
40
|
+
onBlur(): void;
|
|
40
41
|
ngOnChanges(changes: SimpleChanges): void;
|
|
41
42
|
writeValue(value: any): void;
|
|
42
43
|
registerOnChange(fn: any): void;
|
|
@@ -0,0 +1,17 @@
|
|
|
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
|
+
export * from './public-api';
|
|
@@ -0,0 +1,24 @@
|
|
|
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 { InjectionToken, Provider, Type } from '@angular/core';
|
|
18
|
+
export declare const LANDING_PAGE_TOKEN: InjectionToken<Type<any>>;
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @param componentClass The component class to be registered as the landing page.
|
|
22
|
+
* @returns A provider that registers the landing page component class.
|
|
23
|
+
*/
|
|
24
|
+
export declare function provideLandingPage(componentClass: Type<any>): Provider;
|
|
@@ -0,0 +1,17 @@
|
|
|
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
|
+
export * from './provider';
|
|
@@ -38,6 +38,7 @@ export declare class UnitTestingUtils {
|
|
|
38
38
|
getByDataAutomationClass(dataAutomationClass: string): DebugElement;
|
|
39
39
|
getInnerTextByDataAutomationId(dataAutomationId: string): string;
|
|
40
40
|
getByDirective(directive: Type<any>): DebugElement;
|
|
41
|
+
getAllByDirective(directive: Type<any>): DebugElement[];
|
|
41
42
|
/** Perform actions */
|
|
42
43
|
clickByCSS(selector: string): void;
|
|
43
44
|
clickByDataAutomationId(dataAutomationId: string): void;
|
|
@@ -0,0 +1,39 @@
|
|
|
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 { EnvironmentProviders, Provider } from '@angular/core';
|
|
18
|
+
export interface ProvideI18NConfig {
|
|
19
|
+
/**
|
|
20
|
+
* The default language to use for translations.
|
|
21
|
+
* If not provided, it defaults to 'en'.
|
|
22
|
+
*/
|
|
23
|
+
defaultLanguage?: string;
|
|
24
|
+
/**
|
|
25
|
+
* An array of assets to be used for i18n, where each asset is a tuple containing an identifier and a path.
|
|
26
|
+
* Example: [['en', '/assets/i18n/en.json'], ['fr', '/assets/i18n/fr.json']]
|
|
27
|
+
*/
|
|
28
|
+
assets?: [string, string][];
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Provides the i18n service.
|
|
32
|
+
* This function is used to provide the i18n service in the application.
|
|
33
|
+
* It is recommended to use this function in the top-level `AppModule` to ensure that the i18n service is available throughout the application.
|
|
34
|
+
*
|
|
35
|
+
* @param config - Configuration for the i18n service.
|
|
36
|
+
* @param config.assets - An array of assets to be used for i18n, where each asset is a tuple containing an identifier and a path.
|
|
37
|
+
* @returns An array of providers for the i18n service.
|
|
38
|
+
*/
|
|
39
|
+
export declare function provideI18N(config?: ProvideI18NConfig): (Provider | EnvironmentProviders)[];
|
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.1.0-
|
|
4
|
+
"version": "8.1.0-16472253724",
|
|
5
5
|
"author": "Hyland Software, Inc. and its affiliates",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -75,8 +75,8 @@
|
|
|
75
75
|
"@angular/router": ">=16.0.0",
|
|
76
76
|
"@mat-datetimepicker/core": ">=12.0.1",
|
|
77
77
|
"@ngx-translate/core": ">=16.0.0",
|
|
78
|
-
"@alfresco/js-api": ">=9.1.0-
|
|
79
|
-
"@alfresco/adf-extensions": ">=8.1.0-
|
|
78
|
+
"@alfresco/js-api": ">=9.1.0-16472253724",
|
|
79
|
+
"@alfresco/adf-extensions": ">=8.1.0-16472253724",
|
|
80
80
|
"minimatch": ">=10.0.0",
|
|
81
81
|
"pdfjs-dist": ">=3.3.122",
|
|
82
82
|
"ts-morph": ">=20.0.0"
|
package/public-api.d.ts
CHANGED
|
@@ -23,6 +23,7 @@ export * from './lib/toolbar/index';
|
|
|
23
23
|
export * from './lib/header/index';
|
|
24
24
|
export * from './lib/pagination/index';
|
|
25
25
|
export * from './lib/login/index';
|
|
26
|
+
export * from './lib/landing-page/index';
|
|
26
27
|
export * from './lib/language-menu/index';
|
|
27
28
|
export * from './lib/info-drawer/index';
|
|
28
29
|
export * from './lib/identity-user-info/index';
|