@alfresco/adf-core 8.4.0-19129264781 → 8.4.0-19133056716
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/custom-theme/material-theme.scss +13 -13
- package/custom-theme/theme/custom-palette-creator.scss +25 -23
- package/custom-theme/theme/custom-theme-palettes.scss +7 -7
- package/custom-theme/theme/theme-data.scss +13 -13
- package/custom-theme/theme/typography.scss +5 -5
- package/fesm2022/adf-core.mjs +105 -11
- package/fesm2022/adf-core.mjs.map +1 -1
- package/lib/form/components/widgets/amount/amount.widget.d.ts +43 -4
- package/lib/mock/translation.service.mock.d.ts +1 -0
- package/lib/testing/noop-translate.module.d.ts +1 -0
- package/lib/translation/translation.service.d.ts +6 -0
- package/package.json +3 -3
|
@@ -1,20 +1,59 @@
|
|
|
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 { CurrencyPipe } from '@angular/common';
|
|
1
18
|
import { OnInit, InjectionToken } from '@angular/core';
|
|
2
19
|
import { FormService } from '../../../services/form.service';
|
|
3
20
|
import { WidgetComponent } from '../widget.component';
|
|
21
|
+
import { Observable } from 'rxjs';
|
|
22
|
+
import { TranslationService } from '../../../../translation/translation.service';
|
|
4
23
|
import * as i0 from "@angular/core";
|
|
5
24
|
export interface AmountWidgetSettings {
|
|
6
25
|
showReadonlyPlaceholder: boolean;
|
|
26
|
+
enableDisplayBasedOnLocale: boolean;
|
|
7
27
|
}
|
|
8
|
-
export declare const ADF_AMOUNT_SETTINGS: InjectionToken<AmountWidgetSettings
|
|
28
|
+
export declare const ADF_AMOUNT_SETTINGS: InjectionToken<AmountWidgetSettings | Observable<AmountWidgetSettings>>;
|
|
9
29
|
export declare class AmountWidgetComponent extends WidgetComponent implements OnInit {
|
|
10
30
|
formService: FormService;
|
|
11
|
-
private
|
|
31
|
+
private currencyPipe;
|
|
32
|
+
private translationService;
|
|
12
33
|
static DEFAULT_CURRENCY: string;
|
|
13
34
|
private showPlaceholder;
|
|
35
|
+
private readonly destroyRef;
|
|
36
|
+
amountWidgetValue: string;
|
|
14
37
|
currency: string;
|
|
38
|
+
currencyDisplay: string | boolean;
|
|
39
|
+
decimalProperty: string;
|
|
40
|
+
enableDisplayBasedOnLocale: boolean;
|
|
41
|
+
isInputInFocus: boolean;
|
|
42
|
+
locale: string;
|
|
43
|
+
notShowDecimalDigits: string;
|
|
44
|
+
showDecimalDigits: string;
|
|
45
|
+
showReadonlyPlaceholder: boolean;
|
|
46
|
+
valueAsNumber: number;
|
|
15
47
|
get placeholder(): string;
|
|
16
|
-
constructor(formService: FormService, settings: AmountWidgetSettings);
|
|
48
|
+
constructor(formService: FormService, settings: Observable<AmountWidgetSettings> | AmountWidgetSettings, currencyPipe: CurrencyPipe, translationService: TranslationService);
|
|
17
49
|
ngOnInit(): void;
|
|
18
|
-
|
|
50
|
+
amountWidgetOnBlur(): void;
|
|
51
|
+
amountWidgetOnFocus(): void;
|
|
52
|
+
onFieldChangedAmountWidget(): void;
|
|
53
|
+
setInitialValues(): void;
|
|
54
|
+
subscribeToFieldChanges(): void;
|
|
55
|
+
updateValue(value: any): void;
|
|
56
|
+
updateSettingsBasedProperties(data: AmountWidgetSettings): void;
|
|
57
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AmountWidgetComponent, [null, { optional: true; }, null, null]>;
|
|
19
58
|
static ɵcmp: i0.ɵɵComponentDeclaration<AmountWidgetComponent, "amount-widget", never, {}, {}, never, never, true, never>;
|
|
20
59
|
}
|
|
@@ -16,6 +16,7 @@ export declare class TranslationMock implements TranslationService {
|
|
|
16
16
|
use(): any;
|
|
17
17
|
loadTranslation(): void;
|
|
18
18
|
get(key: string | Array<string>): Observable<string | any>;
|
|
19
|
+
getLocale(): any;
|
|
19
20
|
instant(key: string | Array<string>): string | any;
|
|
20
21
|
static ɵfac: i0.ɵɵFactoryDeclaration<TranslationMock, never>;
|
|
21
22
|
static ɵprov: i0.ɵɵInjectableDeclaration<TranslationMock>;
|
|
@@ -12,6 +12,7 @@ export declare class NoopTranslationService implements TranslationService {
|
|
|
12
12
|
use(): any;
|
|
13
13
|
loadTranslation(): void;
|
|
14
14
|
get(key: string | Array<string>): Observable<string | any>;
|
|
15
|
+
getLocale(): any;
|
|
15
16
|
instant(key: string | Array<string>): string | any;
|
|
16
17
|
static ɵfac: i0.ɵɵFactoryDeclaration<NoopTranslationService, never>;
|
|
17
18
|
static ɵprov: i0.ɵɵInjectableDeclaration<NoopTranslationService>;
|
|
@@ -81,6 +81,12 @@ export declare class TranslationService {
|
|
|
81
81
|
* @returns Translated text
|
|
82
82
|
*/
|
|
83
83
|
get(key: string | Array<string>, interpolateParams?: any): Observable<string | any>;
|
|
84
|
+
/**
|
|
85
|
+
* Determines the preferred locale for the current user.
|
|
86
|
+
*
|
|
87
|
+
* @returns Locale identifier resolved from the browser or the default translation locale
|
|
88
|
+
*/
|
|
89
|
+
getLocale(): string;
|
|
84
90
|
/**
|
|
85
91
|
* Directly returns the translation for the supplied key.
|
|
86
92
|
*
|
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-19133056716",
|
|
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-19133056716",
|
|
67
|
+
"@alfresco/adf-extensions": ">=8.4.0-19133056716",
|
|
68
68
|
"minimatch": ">=10.0.0",
|
|
69
69
|
"pdfjs-dist": ">=3.3.122"
|
|
70
70
|
},
|