@alfresco/adf-core 8.4.0-19535580979 → 8.4.0-19535715289
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 +56 -63
- package/fesm2022/adf-core.mjs.map +1 -1
- package/lib/card-view/components/card-view-dateitem/card-view-dateitem.component.d.ts +0 -1
- package/lib/common/services/user-preferences.service.d.ts +63 -0
- package/lib/datatable/components/date-cell/date-cell.component.d.ts +1 -0
- package/lib/pipes/decimal-number.pipe.d.ts +0 -1
- package/lib/pipes/localized-date.pipe.d.ts +2 -5
- package/lib/pipes/time-ago.pipe.d.ts +0 -1
- package/package.json +3 -3
|
@@ -34,7 +34,6 @@ export declare class CardViewDateItemComponent extends BaseCardView<CardViewDate
|
|
|
34
34
|
datepicker: MatDatetimepickerComponent<any>;
|
|
35
35
|
valueDate: Date;
|
|
36
36
|
cardViewDateTimeControl: FormControl<Date>;
|
|
37
|
-
private readonly destroyRef;
|
|
38
37
|
constructor(dateAdapter: DateAdapter<Date>, userPreferencesService: UserPreferencesService, clipboardService: ClipboardService, translateService: TranslationService);
|
|
39
38
|
ngOnInit(): void;
|
|
40
39
|
get showProperty(): boolean;
|
|
@@ -1,3 +1,20 @@
|
|
|
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 { Signal } from '@angular/core';
|
|
1
18
|
import { TranslateService } from '@ngx-translate/core';
|
|
2
19
|
import { Observable } from 'rxjs';
|
|
3
20
|
import { AppConfigService } from '../../app-config/app-config.service';
|
|
@@ -25,6 +42,52 @@ export declare class UserPreferencesService {
|
|
|
25
42
|
private userPreferenceStatus;
|
|
26
43
|
private onChangeSubject;
|
|
27
44
|
onChange: Observable<any>;
|
|
45
|
+
/**
|
|
46
|
+
* Observable that emits the current locale whenever it changes.
|
|
47
|
+
* This is a convenience property that simplifies subscribing to locale changes.
|
|
48
|
+
*
|
|
49
|
+
* @example Observable usage (requires manual unsubscription):
|
|
50
|
+
* ```typescript
|
|
51
|
+
* constructor(private userPreferencesService: UserPreferencesService) {
|
|
52
|
+
* this.userPreferencesService.locale$
|
|
53
|
+
* .pipe(takeUntilDestroyed())
|
|
54
|
+
* .subscribe(locale => {
|
|
55
|
+
* this.currentLocale = locale;
|
|
56
|
+
* });
|
|
57
|
+
* }
|
|
58
|
+
* ```
|
|
59
|
+
*
|
|
60
|
+
* @example Signal usage (automatic cleanup, recommended):
|
|
61
|
+
* ```typescript
|
|
62
|
+
* export class MyComponent {
|
|
63
|
+
* private userPreferencesService = inject(UserPreferencesService);
|
|
64
|
+
* currentLocale = this.userPreferencesService.localeSignal; // Signal - no subscription needed!
|
|
65
|
+
* }
|
|
66
|
+
* ```
|
|
67
|
+
*/
|
|
68
|
+
readonly locale$: Observable<string>;
|
|
69
|
+
/**
|
|
70
|
+
* Signal that provides the current locale value.
|
|
71
|
+
* Automatically handles cleanup - no need for takeUntilDestroyed or manual unsubscription.
|
|
72
|
+
* This is the recommended way to access locale in components.
|
|
73
|
+
*/
|
|
74
|
+
readonly localeSignal: Signal<string>;
|
|
75
|
+
/**
|
|
76
|
+
* Observable that emits the current pagination size whenever it changes.
|
|
77
|
+
*/
|
|
78
|
+
readonly paginationSize$: Observable<number>;
|
|
79
|
+
/**
|
|
80
|
+
* Signal that provides the current pagination size value.
|
|
81
|
+
*/
|
|
82
|
+
readonly paginationSizeSignal: Signal<number>;
|
|
83
|
+
/**
|
|
84
|
+
* Observable that emits the supported page sizes whenever they change.
|
|
85
|
+
*/
|
|
86
|
+
readonly supportedPageSizes$: Observable<number[]>;
|
|
87
|
+
/**
|
|
88
|
+
* Signal that provides the supported page sizes array.
|
|
89
|
+
*/
|
|
90
|
+
readonly supportedPageSizesSignal: Signal<number[]>;
|
|
28
91
|
constructor(translate: TranslateService, appConfig: AppConfigService, storage: StorageService);
|
|
29
92
|
private initUserPreferenceStatus;
|
|
30
93
|
private initUserLanguage;
|
|
@@ -27,6 +27,7 @@ export declare class DateCellComponent extends DataTableCellComponent implements
|
|
|
27
27
|
private readonly cdr;
|
|
28
28
|
private userLocale;
|
|
29
29
|
readonly defaultDateConfig: DateConfig;
|
|
30
|
+
constructor();
|
|
30
31
|
ngOnInit(): void;
|
|
31
32
|
protected computeTitle(value: any): string;
|
|
32
33
|
private setConfig;
|
|
@@ -10,7 +10,6 @@ export declare class DecimalNumberPipe implements PipeTransform {
|
|
|
10
10
|
static DEFAULT_MIN_INTEGER_DIGITS: number;
|
|
11
11
|
static DEFAULT_MIN_FRACTION_DIGITS: number;
|
|
12
12
|
static DEFAULT_MAX_FRACTION_DIGITS: number;
|
|
13
|
-
defaultLocale: string;
|
|
14
13
|
defaultMinIntegerDigits: number;
|
|
15
14
|
defaultMinFractionDigits: number;
|
|
16
15
|
defaultMaxFractionDigits: number;
|
|
@@ -1,18 +1,15 @@
|
|
|
1
|
-
import { PipeTransform
|
|
1
|
+
import { PipeTransform } from '@angular/core';
|
|
2
2
|
import { AppConfigService } from '../app-config/app-config.service';
|
|
3
3
|
import { UserPreferencesService } from '../common/services/user-preferences.service';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class LocalizedDatePipe implements PipeTransform
|
|
5
|
+
export declare class LocalizedDatePipe implements PipeTransform {
|
|
6
6
|
userPreferenceService?: UserPreferencesService;
|
|
7
7
|
appConfig?: AppConfigService;
|
|
8
8
|
static DEFAULT_LOCALE: string;
|
|
9
9
|
static DEFAULT_DATE_FORMAT: string;
|
|
10
|
-
defaultLocale: string;
|
|
11
10
|
defaultFormat: string;
|
|
12
|
-
private onDestroy$;
|
|
13
11
|
constructor(userPreferenceService?: UserPreferencesService, appConfig?: AppConfigService);
|
|
14
12
|
transform(value: Date | string | number, format?: string, locale?: string, timezone?: string): string;
|
|
15
|
-
ngOnDestroy(): void;
|
|
16
13
|
static ɵfac: i0.ɵɵFactoryDeclaration<LocalizedDatePipe, never>;
|
|
17
14
|
static ɵpipe: i0.ɵɵPipeDeclaration<LocalizedDatePipe, "adfLocalizedDate", true>;
|
|
18
15
|
}
|
|
@@ -23,7 +23,6 @@ export declare class TimeAgoPipe implements PipeTransform {
|
|
|
23
23
|
appConfig: AppConfigService;
|
|
24
24
|
static DEFAULT_LOCALE: string;
|
|
25
25
|
static DEFAULT_DATE_TIME_FORMAT: string;
|
|
26
|
-
defaultLocale: string;
|
|
27
26
|
defaultDateTimeFormat: string;
|
|
28
27
|
constructor(userPreferenceService: UserPreferencesService, appConfig: AppConfigService);
|
|
29
28
|
transform(value: Date, locale?: string): string;
|
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-19535715289",
|
|
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-19535715289",
|
|
67
|
+
"@alfresco/adf-extensions": ">=8.4.0-19535715289",
|
|
68
68
|
"minimatch": ">=10.0.0",
|
|
69
69
|
"pdfjs-dist": ">=3.3.122"
|
|
70
70
|
},
|