nuxeo-development-framework 4.5.1 → 4.5.2
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/nuxeo-development-framework.umd.js +224 -217
- package/bundles/nuxeo-development-framework.umd.js.map +1 -1
- package/esm2015/lib/core/core.module.js +21 -4
- package/esm2015/lib/core/services/user/user-preferences.service.js +23 -23
- package/esm2015/lib/nuxeo-development-framework.module.js +9 -10
- package/esm2015/lib/shared/components/nuxeo-dialog/nuxeo.dialog.js +5 -2
- package/esm2015/lib/shared/services/base/base.service.js +4 -1
- package/esm2015/lib/shared/services/base/cache-base.service.js +48 -64
- package/fesm2015/nuxeo-development-framework.js +87 -80
- package/fesm2015/nuxeo-development-framework.js.map +1 -1
- package/lib/core/core.module.d.ts +1 -1
- package/lib/core/services/user/user-preferences.service.d.ts +6 -6
- package/lib/nuxeo-development-framework.module.d.ts +2 -3
- package/lib/shared/components/nuxeo-dialog/nuxeo.dialog.d.ts +2 -1
- package/lib/shared/services/base/base.service.d.ts +1 -0
- package/lib/shared/services/base/cache-base.service.d.ts +5 -4
- package/package.json +1 -1
|
@@ -12,6 +12,6 @@ import * as i7 from "@rxweb/reactive-form-validators";
|
|
|
12
12
|
export declare class NuxeoCoreModule {
|
|
13
13
|
static register(environment: Environment, configuration?: Record<string, any>, conditons?: Record<string, any>): ModuleWithProviders<NuxeoCoreModule>;
|
|
14
14
|
static ɵfac: i0.ɵɵFactoryDeclaration<NuxeoCoreModule, never>;
|
|
15
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<NuxeoCoreModule, never, [typeof i1.CommonModule, typeof i2.TreeviewModule, typeof i3.HttpClientModule, typeof i4.TranslateModule, typeof i5.ToastrModule, typeof i6.KeycloakAngularModule, typeof i7.RxReactiveFormsModule], [typeof i6.KeycloakAngularModule, typeof i4.TranslateModule, typeof i2.TreeviewModule, typeof i5.ToastrModule, typeof i7.RxReactiveFormsModule]>;
|
|
15
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<NuxeoCoreModule, never, [typeof i1.CommonModule, typeof i2.TreeviewModule, typeof i3.HttpClientModule, typeof i4.TranslateModule, typeof i5.ToastrModule, typeof i6.KeycloakAngularModule, typeof i7.RxReactiveFormsModule], [typeof i6.KeycloakAngularModule, typeof i3.HttpClientModule, typeof i4.TranslateModule, typeof i2.TreeviewModule, typeof i5.ToastrModule, typeof i7.RxReactiveFormsModule]>;
|
|
16
16
|
static ɵinj: i0.ɵɵInjectorDeclaration<NuxeoCoreModule>;
|
|
17
17
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { TranslateService } from
|
|
2
|
-
import { Observable } from
|
|
3
|
-
import { LocalStoragService } from
|
|
1
|
+
import { TranslateService } from '@ngx-translate/core';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import { LocalStoragService } from '../localStorag/local-storag.service';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export declare enum UserPreferenceValues {
|
|
6
6
|
Locale = "locale",
|
|
@@ -32,13 +32,13 @@ export declare class UserPreferencesService {
|
|
|
32
32
|
* @param defaultValue Default to return if the property is not found
|
|
33
33
|
* @returns Preference property
|
|
34
34
|
*/
|
|
35
|
-
get(property: string, defaultValue?: string): string;
|
|
35
|
+
get(property: string, defaultValue?: string, withoutUser?: boolean): string;
|
|
36
36
|
/**
|
|
37
37
|
* Sets a preference property.
|
|
38
38
|
* @param property Name of the property
|
|
39
39
|
* @param value New value for the property
|
|
40
40
|
*/
|
|
41
|
-
set(property: string, value: any): void;
|
|
41
|
+
set(property: string, value: any, withoutUser?: boolean): void;
|
|
42
42
|
/**
|
|
43
43
|
* Sets a preference property.
|
|
44
44
|
* @param property Name of the property
|
|
@@ -50,7 +50,7 @@ export declare class UserPreferencesService {
|
|
|
50
50
|
* @param property Name of the property
|
|
51
51
|
* @returns True if the item is present, false otherwise
|
|
52
52
|
*/
|
|
53
|
-
hasItem(property: string): boolean;
|
|
53
|
+
hasItem(property: string, withoutUser?: boolean): boolean;
|
|
54
54
|
/**
|
|
55
55
|
* Gets the active storage prefix for preferences.
|
|
56
56
|
* @returns Storage prefix
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
import * as i1 from "./nuxeo-development-framework.component";
|
|
3
3
|
import * as i2 from "@angular/common";
|
|
4
|
-
import * as i3 from "@angular/
|
|
5
|
-
import * as i4 from "@angular/forms";
|
|
4
|
+
import * as i3 from "@angular/forms";
|
|
6
5
|
export declare class NuxeoDevelopmentFrameworkModule {
|
|
7
6
|
static ɵfac: i0.ɵɵFactoryDeclaration<NuxeoDevelopmentFrameworkModule, never>;
|
|
8
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<NuxeoDevelopmentFrameworkModule, [typeof i1.NuxeoDevelopmentFrameworkComponent], [typeof i2.CommonModule, typeof i3.
|
|
7
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<NuxeoDevelopmentFrameworkModule, [typeof i1.NuxeoDevelopmentFrameworkComponent], [typeof i2.CommonModule, typeof i3.FormsModule, typeof i3.ReactiveFormsModule], [typeof i1.NuxeoDevelopmentFrameworkComponent]>;
|
|
9
8
|
static ɵinj: i0.ɵɵInjectorDeclaration<NuxeoDevelopmentFrameworkModule>;
|
|
10
9
|
}
|
|
@@ -10,6 +10,7 @@ export declare class NdfNuxeoDialog<TData = any> extends BaseComponent {
|
|
|
10
10
|
loaderMode: 'spinner' | 'progressBar';
|
|
11
11
|
contentTemplate: any;
|
|
12
12
|
actionsTemplate: any;
|
|
13
|
+
footerTemplate: any;
|
|
13
14
|
dialogRef: MatDialogRef<NdfNuxeoDialog>;
|
|
14
15
|
data: TData;
|
|
15
16
|
dialogBody: ElementRef<HTMLDivElement>;
|
|
@@ -19,5 +20,5 @@ export declare class NdfNuxeoDialog<TData = any> extends BaseComponent {
|
|
|
19
20
|
isArrowFunction(fn: Function): boolean;
|
|
20
21
|
onClose(): void;
|
|
21
22
|
static ɵfac: i0.ɵɵFactoryDeclaration<NdfNuxeoDialog<any>, never>;
|
|
22
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<NdfNuxeoDialog<any>, "ndf-nuxeo-dialog", never, { "dialogTitle": "dialogTitle"; "subTitle": "subTitle"; "panelClass": "panelClass"; "loaderMode": "loaderMode"; }, {}, ["contentTemplate", "actionsTemplate"], never>;
|
|
23
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NdfNuxeoDialog<any>, "ndf-nuxeo-dialog", never, { "dialogTitle": "dialogTitle"; "subTitle": "subTitle"; "panelClass": "panelClass"; "loaderMode": "loaderMode"; }, {}, ["contentTemplate", "actionsTemplate", "footerTemplate"], never>;
|
|
23
24
|
}
|
|
@@ -17,6 +17,7 @@ export declare abstract class BaseService extends HttpBaseService {
|
|
|
17
17
|
protected request<TResponse>(endpointOrOptions: string | RequestOptions, queryParams?: any, headers?: any, payload?: any, type?: string): Observable<TResponse>;
|
|
18
18
|
protected query<TResponse>(pageProviderOrOptions: string | QueryOptions, params?: any, headers?: any): Observable<TResponse>;
|
|
19
19
|
protected hasItemInCache(key: string): boolean;
|
|
20
|
+
protected validateTTLForKey(firstFetchingDate: string): boolean;
|
|
20
21
|
protected cachedQuery<TResponse>(options: CachedQueryOptions | CachedFullQueryOptions): Observable<TResponse>;
|
|
21
22
|
protected cachedGet<TResponse>(options: CachedHttpOptions | CachedFullHttpOptions): Observable<TResponse>;
|
|
22
23
|
protected fetch<TResponse>(path: string, headers?: any): Observable<TResponse>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Observable } from
|
|
2
|
-
import { BaseCacheOptions } from
|
|
3
|
-
import { UserPreferencesService } from
|
|
4
|
-
import { UtilityService } from
|
|
1
|
+
import { Observable } from 'rxjs';
|
|
2
|
+
import { BaseCacheOptions } from './models';
|
|
3
|
+
import { UserPreferencesService } from '../../../core/services/user/user-preferences.service';
|
|
4
|
+
import { UtilityService } from '../../../core/utilities/utility.service';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
export declare class CacheBaseService {
|
|
7
7
|
#private;
|
|
@@ -12,6 +12,7 @@ export declare class CacheBaseService {
|
|
|
12
12
|
clearAll(userName: string): void;
|
|
13
13
|
validateTTL(userName: string): void;
|
|
14
14
|
startFetchingItems(options: BaseCacheOptions): Observable<any>;
|
|
15
|
+
validateTTLForKey(firstFetchingDate: string): boolean;
|
|
15
16
|
static ɵfac: i0.ɵɵFactoryDeclaration<CacheBaseService, never>;
|
|
16
17
|
static ɵprov: i0.ɵɵInjectableDeclaration<CacheBaseService>;
|
|
17
18
|
}
|