ontimize-web-ngx 15.6.0-next.0 → 15.6.0-next.1
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/esm2020/lib/components/input/o-form-service-component.class.mjs +2 -2
- package/esm2020/lib/components/table/extensions/o-table.dao.mjs +9 -11
- package/esm2020/lib/components/table/o-table-base.class.mjs +1 -1
- package/esm2020/lib/config/app-config.mjs +1 -1
- package/esm2020/lib/config/o-providers.mjs +3 -5
- package/esm2020/lib/services/base-data-service.class.mjs +2 -1
- package/esm2020/lib/services/factories.mjs +7 -7
- package/esm2020/lib/services/index.mjs +2 -1
- package/esm2020/lib/services/jsonapi/jsonapi-preferences.service.mjs +16 -14
- package/esm2020/lib/services/jsonapi/jsonapi.service.mjs +1 -2
- package/esm2020/lib/services/ontimize/index.mjs +1 -2
- package/esm2020/lib/services/ontimize/ontimize-ee.service.mjs +1 -5
- package/esm2020/lib/services/ontimize/ontimize-export-3xx.service.mjs +2 -2
- package/esm2020/lib/services/ontimize/ontimize-preferences.service.mjs +4 -6
- package/esm2020/lib/services/query-arguments/jsonapi-query-arguments.adapter.mjs +2 -3
- package/esm2020/lib/services/translate/o-translate.service.mjs +7 -4
- package/esm2020/lib/util/preference-mapping-util.mjs +21 -6
- package/esm2020/lib/util/util.mjs +16 -1
- package/fesm2015/ontimize-web-ngx.mjs +316 -305
- package/fesm2015/ontimize-web-ngx.mjs.map +1 -1
- package/fesm2020/ontimize-web-ngx.mjs +313 -304
- package/fesm2020/ontimize-web-ngx.mjs.map +1 -1
- package/lib/components/table/extensions/o-table.dao.d.ts +3 -2
- package/lib/components/table/o-table-base.class.d.ts +1 -0
- package/lib/config/app-config.d.ts +1 -1
- package/lib/services/base-data-service.class.d.ts +1 -0
- package/lib/services/factories.d.ts +3 -3
- package/lib/services/index.d.ts +1 -0
- package/lib/services/jsonapi/jsonapi-preferences.service.d.ts +1 -1
- package/lib/services/jsonapi/jsonapi.service.d.ts +0 -1
- package/lib/services/ontimize/index.d.ts +0 -1
- package/lib/services/ontimize/ontimize-ee.service.d.ts +0 -1
- package/lib/services/translate/o-translate.service.d.ts +1 -0
- package/lib/util/preference-mapping-util.d.ts +22 -3
- package/lib/util/util.d.ts +2 -0
- package/package.json +1 -1
- package/esm2020/lib/services/ontimize/o-preference-query-argument.adapter.mjs +0 -17
- package/lib/services/ontimize/o-preference-query-argument.adapter.d.ts +0 -7
|
@@ -4,8 +4,8 @@ import { BaseService } from '../../../services/base-service.class';
|
|
|
4
4
|
import { ServiceResponse } from '../../../interfaces/service-response.interface';
|
|
5
5
|
export declare class OTableDao {
|
|
6
6
|
private readonly dataService;
|
|
7
|
-
private entity;
|
|
8
|
-
private methods;
|
|
7
|
+
private readonly entity;
|
|
8
|
+
private readonly methods;
|
|
9
9
|
usingStaticData: boolean;
|
|
10
10
|
protected loadingTimer: any;
|
|
11
11
|
protected _isLoadingResults: boolean;
|
|
@@ -22,5 +22,6 @@ export declare class OTableDao {
|
|
|
22
22
|
setAsynchronousColumn(value: Array<any>, rowData: any): void;
|
|
23
23
|
get isLoadingResults(): boolean;
|
|
24
24
|
set isLoadingResults(val: boolean);
|
|
25
|
+
set notLoadingResults(val: boolean);
|
|
25
26
|
protected cleanTimer(): void;
|
|
26
27
|
}
|
|
@@ -24,6 +24,7 @@ export declare abstract class OTableBase {
|
|
|
24
24
|
abstract initializeCheckboxColumn(): any;
|
|
25
25
|
visibleExportDialogButtons: string;
|
|
26
26
|
service: string;
|
|
27
|
+
serviceType: string;
|
|
27
28
|
exportServiceType: TemplateRef<any>;
|
|
28
29
|
exportOptsTemplate: any;
|
|
29
30
|
visibleColArray: string[];
|
|
@@ -6,7 +6,7 @@ import { ORemoteConfiguration } from '../types/remote-configuration.type';
|
|
|
6
6
|
export declare const O_INPUTS_OPTIONS: InjectionToken<OInputsOptions>;
|
|
7
7
|
export declare const APP_CONFIG: InjectionToken<Config>;
|
|
8
8
|
export declare class AppConfig {
|
|
9
|
-
private _config;
|
|
9
|
+
private readonly _config;
|
|
10
10
|
constructor(config?: any);
|
|
11
11
|
getConfiguration(): Config;
|
|
12
12
|
getServiceConfiguration(): any;
|
|
@@ -6,6 +6,7 @@ import { PaginationContext } from "../interfaces/pagination-context.interface";
|
|
|
6
6
|
export declare abstract class BaseDataService<T> extends BaseService<ServiceResponse> {
|
|
7
7
|
protected injector: Injector;
|
|
8
8
|
constructor(injector: Injector);
|
|
9
|
+
path: string;
|
|
9
10
|
abstract query(...args: [any, ...any[]]): Observable<T>;
|
|
10
11
|
abstract queryById(...args: [any, ...any[]]): Observable<T>;
|
|
11
12
|
abstract advancedQuery(...args: [any, ...any[]]): Observable<T>;
|
|
@@ -3,6 +3,8 @@ import { IChartOnDemandService } from '../interfaces/chart-on-demand.interface';
|
|
|
3
3
|
import { IExportDataProvider } from '../interfaces/export-data-provider.interface';
|
|
4
4
|
import { IExportService } from '../interfaces/export-service.interface';
|
|
5
5
|
import { IFileService } from '../interfaces/file-service.interface';
|
|
6
|
+
import { ILocalStorageService } from '../interfaces/local-service.interface';
|
|
7
|
+
import { INameConvention } from '../interfaces/name-convention.interface';
|
|
6
8
|
import { IPermissionsService } from '../interfaces/permissions-service.interface';
|
|
7
9
|
import { IPreferencesService } from '../interfaces/prefereces-service.interface';
|
|
8
10
|
import { IReportService } from '../interfaces/report-on-demand-service.interface';
|
|
@@ -11,7 +13,7 @@ import { OMatErrorOptions } from '../types/o-mat-error.type';
|
|
|
11
13
|
import { ServiceType } from '../types/service-type.type';
|
|
12
14
|
import { AuthService } from './auth.service';
|
|
13
15
|
import { BaseServiceResponse } from './base-service-response.class';
|
|
14
|
-
import {
|
|
16
|
+
import { LocalStorageService } from './local-storage.service';
|
|
15
17
|
import { NameConvention } from './name-convention/name-convention.service';
|
|
16
18
|
import { OErrorDialogManager } from './o-error-dialog-manager.service';
|
|
17
19
|
import { OntimizeExportDataProviderService } from './ontimize-export-data-provider.service';
|
|
@@ -21,8 +23,6 @@ import { OntimizeService } from './ontimize/ontimize.service';
|
|
|
21
23
|
import { IBaseQueryArgument } from './query-arguments/base-query-argument.interface';
|
|
22
24
|
import { OntimizeQueryArgumentsAdapter } from './query-arguments/ontimize-query-arguments.adapter';
|
|
23
25
|
import { AbstractComponentStateService, DefaultComponentStateService } from './state/o-component-state.service';
|
|
24
|
-
import { LocalStorageService } from './local-storage.service';
|
|
25
|
-
import { ILocalStorageService } from '../interfaces/local-service.interface';
|
|
26
26
|
export declare const O_DATA_SERVICE: InjectionToken<unknown>;
|
|
27
27
|
export declare const O_RESPONSE_ADAPTER: InjectionToken<IServiceResponseAdapter<BaseServiceResponse>>;
|
|
28
28
|
export declare const O_TRANSLATE_SERVICE: InjectionToken<unknown>;
|
package/lib/services/index.d.ts
CHANGED
|
@@ -3,9 +3,9 @@ import { JSONAPIService } from './jsonapi.service';
|
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class JSONAPIPreferencesService extends JSONAPIService {
|
|
5
5
|
configureService(config: any): void;
|
|
6
|
+
protected parseObjectToPreference(preferencesparams: object): object;
|
|
6
7
|
saveAsPreferences(preferencesparams: object): Observable<any>;
|
|
7
8
|
savePreferences(id: number, preferencesparams: object): Observable<any>;
|
|
8
|
-
protected parseObjectToPreference(preferencesparams: object): object;
|
|
9
9
|
getPreferences(entity: string, service: string, type: string): Observable<any>;
|
|
10
10
|
deletePreferences(id?: number): Observable<any>;
|
|
11
11
|
static ɵfac: i0.ɵɵFactoryDeclaration<JSONAPIPreferencesService, never>;
|
|
@@ -9,7 +9,6 @@ import { BaseDataService } from '../base-data-service.class';
|
|
|
9
9
|
import * as i0 from "@angular/core";
|
|
10
10
|
export declare class JSONAPIService extends BaseDataService<JSONAPIResponse> implements IAuthService {
|
|
11
11
|
protected injector: Injector;
|
|
12
|
-
path: string;
|
|
13
12
|
protected _startSessionPath: string;
|
|
14
13
|
protected config: AppConfig;
|
|
15
14
|
constructor(injector: Injector);
|
|
@@ -7,5 +7,4 @@ export * from './ontimize-service-response.adapter';
|
|
|
7
7
|
export * from './ontimize-service-response.class';
|
|
8
8
|
export * from './ontimize.service';
|
|
9
9
|
export * from './ontimize-preferences.service';
|
|
10
|
-
export * from './o-preference-query-argument.adapter';
|
|
11
10
|
export * from './o-preference-response.adapter';
|
|
@@ -5,7 +5,6 @@ import { ServiceResponse } from '../../interfaces/service-response.interface';
|
|
|
5
5
|
import { OntimizeBaseService } from './ontimize-base-service.class';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
7
|
export declare class OntimizeEEService extends OntimizeBaseService implements IDataService {
|
|
8
|
-
path: string;
|
|
9
8
|
configureService(config: any): void;
|
|
10
9
|
startsession(user: string, password: string): Observable<string | number>;
|
|
11
10
|
endsession(user: string, sessionId: any): Observable<number>;
|
|
@@ -29,6 +29,7 @@ export declare class OTranslateService {
|
|
|
29
29
|
setAppLang(lang: string): Observable<any>;
|
|
30
30
|
use(lang: string, observer?: Subscriber<any>): void;
|
|
31
31
|
protected propagateLang(lang: string, langRes?: any, observer?: Subscriber<any>): void;
|
|
32
|
+
getNgxTranslateService(): TranslateService;
|
|
32
33
|
getCurrentLang(): string;
|
|
33
34
|
getBrowserLang(): any;
|
|
34
35
|
static ɵfac: i0.ɵɵFactoryDeclaration<OTranslateService, never>;
|
|
@@ -25,7 +25,16 @@ export declare class OPreferenceMappingUtils {
|
|
|
25
25
|
reportParameterName: string;
|
|
26
26
|
reportParameterDescription: string;
|
|
27
27
|
};
|
|
28
|
-
static readonly
|
|
28
|
+
static readonly ONTIMIZEPREFERENCESMAPPING: {
|
|
29
|
+
preferenceid: string;
|
|
30
|
+
preferencename: string;
|
|
31
|
+
preferencedescription: string;
|
|
32
|
+
preferenceentity: string;
|
|
33
|
+
preferenceservice: string;
|
|
34
|
+
preferencetype: string;
|
|
35
|
+
preferenceparameters: string;
|
|
36
|
+
};
|
|
37
|
+
static readonly JSONAPIPREFERENCESMAPPING: {
|
|
29
38
|
preferenceid: string;
|
|
30
39
|
preferencename: string;
|
|
31
40
|
preferencedescription: string;
|
|
@@ -61,8 +70,18 @@ export declare class OPreferenceMappingUtils {
|
|
|
61
70
|
[key: string]: any;
|
|
62
71
|
};
|
|
63
72
|
static standarMappingKeys(array: string[]): string[];
|
|
64
|
-
static
|
|
65
|
-
static
|
|
73
|
+
static ontimizePreferencesMappingKeys(array: string[]): string[];
|
|
74
|
+
static ontimizePreferencesDataMapping(array: {
|
|
75
|
+
[key: string]: any;
|
|
76
|
+
} | {
|
|
77
|
+
[key: string]: any;
|
|
78
|
+
}[]): {
|
|
79
|
+
[key: string]: any;
|
|
80
|
+
}[] | {
|
|
81
|
+
[key: string]: any;
|
|
82
|
+
};
|
|
83
|
+
static jsonApiPreferencesMappingKeys(array: string[]): string[];
|
|
84
|
+
static jsonApiPreferencesDataMapping(array: {
|
|
66
85
|
[key: string]: any;
|
|
67
86
|
} | {
|
|
68
87
|
[key: string]: any;
|
package/lib/util/util.d.ts
CHANGED
|
@@ -42,6 +42,8 @@ export declare class Util {
|
|
|
42
42
|
static parseByValueType(value: any, valueType: ODateValueType, format: string): any;
|
|
43
43
|
static wrapIntoObservable<T>(value: T | Promise<T> | Observable<T>): Observable<T>;
|
|
44
44
|
static isPromise<T = any>(obj: any): obj is Promise<T>;
|
|
45
|
+
static isJsonApiService(injector: Injector): boolean;
|
|
46
|
+
static isOntimizeEEService(injector: Injector): boolean;
|
|
45
47
|
static configureService(configureServiceArgs: OConfigureServiceArgs): any;
|
|
46
48
|
private static getDataServiceInstance;
|
|
47
49
|
static createServiceInstance(clazz: any, injector: Injector): any;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ontimize-web-ngx",
|
|
3
3
|
"homepage": "https://github.com/OntimizeWeb/ontimize-web-ngx#readme",
|
|
4
|
-
"version": "15.6.0-next.
|
|
4
|
+
"version": "15.6.0-next.1",
|
|
5
5
|
"description": "Ontimize Web framework using Angular 15",
|
|
6
6
|
"bugs": "https://github.com/OntimizeWeb/ontimize-web-ngx/issues",
|
|
7
7
|
"author": "Imatia S.L.",
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { Injectable } from '@angular/core';
|
|
2
|
-
import { OPreferenceMappingUtils } from '../../util/preference-mapping-util';
|
|
3
|
-
import { OntimizeQueryArgumentsAdapter } from '../query-arguments/ontimize-query-arguments.adapter';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export class OPreferenceQueryArgumentsAdapter extends OntimizeQueryArgumentsAdapter {
|
|
6
|
-
parseQueryParameters(args) {
|
|
7
|
-
args.columns = OPreferenceMappingUtils.ontimizeMappingKeys(args.columns);
|
|
8
|
-
args.sqlTypes = OPreferenceMappingUtils.ontimizeDataMapping(args.sqlTypes);
|
|
9
|
-
return super.parseQueryParameters(args);
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
OPreferenceQueryArgumentsAdapter.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: OPreferenceQueryArgumentsAdapter, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
13
|
-
OPreferenceQueryArgumentsAdapter.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: OPreferenceQueryArgumentsAdapter });
|
|
14
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: OPreferenceQueryArgumentsAdapter, decorators: [{
|
|
15
|
-
type: Injectable
|
|
16
|
-
}] });
|
|
17
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiby1wcmVmZXJlbmNlLXF1ZXJ5LWFyZ3VtZW50LmFkYXB0ZXIuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9vbnRpbWl6ZS13ZWItbmd4L3NyYy9saWIvc2VydmljZXMvb250aW1pemUvby1wcmVmZXJlbmN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GFzcyBPUHJlZmVyZW5jZVF1ZXJ5QXJndW1lbnRzQWRhcHRlciBleHRlbmRzIE9udGltaXplUXVlcnlBcmd1bWVudHNBZGFwdGVyICB7XG5cbiAgcGFyc2VRdWVyeVBhcmFtZXRlcnMoYXJnczogYW55KTogYW55W10ge1xuICAgIGFyZ3MuY29sdW1ucyA9IE9QcmVmZXJlbmNlTWFwcGluZ1V0aWxzLm9udGltaXplTWFwcGluZ0tleXMoYXJncy5jb2x1bW5zKTtcbiAgICBhcmdzLnNxbFR5cGVzID0gT1ByZWZlcmVuY2VNYXBwaW5nVXRpbHMub250aW1pemVEYXRhTWFwcGluZyhhcmdzLnNxbFR5cGVzKTtcbiAgICByZXR1cm4gc3VwZXIucGFyc2VRdWVyeVBhcmFtZXRlcnMoYXJncyk7XG4gIH1cbn0iXX0=
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { OntimizeQueryArgumentsAdapter } from '../query-arguments/ontimize-query-arguments.adapter';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class OPreferenceQueryArgumentsAdapter extends OntimizeQueryArgumentsAdapter {
|
|
4
|
-
parseQueryParameters(args: any): any[];
|
|
5
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<OPreferenceQueryArgumentsAdapter, never>;
|
|
6
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<OPreferenceQueryArgumentsAdapter>;
|
|
7
|
-
}
|