ontimize-web-ngx 15.6.0-next.6 → 15.6.0-next.8
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/form/navigation/o-form-navigation.component.mjs +17 -10
- package/esm2020/lib/components/form/o-form.component.mjs +5 -6
- package/esm2020/lib/components/form/services/o-form-message.service.mjs +2 -2
- package/esm2020/lib/components/input/file-input/o-file-input.component.mjs +3 -2
- package/esm2020/lib/components/input/o-boolean-form-data-component.class.mjs +9 -1
- package/esm2020/lib/components/input/o-form-service-component.class.mjs +3 -2
- package/esm2020/lib/components/o-service-base-component.class.mjs +3 -2
- package/esm2020/lib/components/o-service-component.class.mjs +10 -9
- package/esm2020/lib/components/table/column/cell-renderer/service/o-table-cell-renderer-service.component.mjs +3 -2
- package/esm2020/lib/components/table/extensions/dialog/filter-by-column/o-table-filter-by-column-data-dialog.component.mjs +1 -1
- package/esm2020/lib/components/table/o-table.component.mjs +4 -1
- package/esm2020/lib/components/tree/o-tree.component.mjs +96 -14
- package/esm2020/lib/components/tree/o-tree.datasource.mjs +3 -3
- package/esm2020/lib/config/o-providers.mjs +4 -3
- package/esm2020/lib/i18n/i18n.mjs +6 -3
- package/esm2020/lib/injection-tokens/index.mjs +2 -1
- package/esm2020/lib/interfaces/index.mjs +2 -1
- package/esm2020/lib/interfaces/jsonapi-config.interface.mjs +3 -0
- package/esm2020/lib/layouts/form-layout/o-form-layout-manager.component.mjs +2 -2
- package/esm2020/lib/layouts/form-layout/split-pane/o-form-layout-split-pane.component.mjs +2 -2
- package/esm2020/lib/layouts/form-layout/tabgroup/o-form-layout-tabgroup.component.mjs +2 -1
- package/esm2020/lib/services/factories.mjs +9 -9
- package/esm2020/lib/services/jsonapi/jsonapi.service.mjs +46 -9
- package/esm2020/lib/types/config.type.mjs +1 -1
- package/esm2020/lib/types/form-layout-detail-component-data.type.mjs +1 -1
- package/esm2020/lib/types/service-configuration.type.mjs +1 -1
- package/esm2020/lib/util/errors.mjs +2 -8
- package/esm2020/lib/util/factory.util.mjs +67 -0
- package/esm2020/lib/util/index.mjs +2 -1
- package/esm2020/lib/util/sqltypes.mjs +2 -2
- package/esm2020/lib/util/util.mjs +1 -64
- package/fesm2015/ontimize-web-ngx.mjs +3353 -3213
- package/fesm2015/ontimize-web-ngx.mjs.map +1 -1
- package/fesm2020/ontimize-web-ngx.mjs +3318 -3179
- package/fesm2020/ontimize-web-ngx.mjs.map +1 -1
- package/lib/components/form/navigation/o-form-navigation.component.d.ts +1 -0
- package/lib/components/input/o-boolean-form-data-component.class.d.ts +1 -0
- package/lib/components/tree/o-tree.component.d.ts +10 -1
- package/lib/config/o-directives.d.ts +1 -1
- package/lib/i18n/i18n.d.ts +3 -0
- package/lib/injection-tokens/index.d.ts +2 -0
- package/lib/interfaces/index.d.ts +1 -0
- package/lib/interfaces/jsonapi-config.interface.d.ts +3 -0
- package/lib/services/jsonapi/jsonapi.service.d.ts +6 -2
- package/lib/types/config.type.d.ts +2 -2
- package/lib/types/form-layout-detail-component-data.type.d.ts +1 -1
- package/lib/types/service-configuration.type.d.ts +6 -1
- package/lib/util/factory.util.d.ts +10 -0
- package/lib/util/index.d.ts +1 -0
- package/lib/util/util.d.ts +0 -7
- package/package.json +1 -1
|
@@ -15,6 +15,7 @@ export declare class OBooleanFormDataComponent extends OFormDataComponent {
|
|
|
15
15
|
protected parseNumberInputs(): void;
|
|
16
16
|
protected parseInputs(): void;
|
|
17
17
|
onClickBlocker(evt: Event): void;
|
|
18
|
+
getValue(): any;
|
|
18
19
|
static ɵfac: i0.ɵɵFactoryDeclaration<OBooleanFormDataComponent, [{ optional: true; }, null, null]>;
|
|
19
20
|
static ɵdir: i0.ɵɵDirectiveDeclaration<OBooleanFormDataComponent, never, never, { "trueValue": "true-value"; "falseValue": "false-value"; "booleanType": "boolean-type"; }, {}, never, never, false, never>;
|
|
20
21
|
}
|
|
@@ -42,7 +42,6 @@ export declare class OTreeComponent extends AbstractOServiceComponent<OTreeCompo
|
|
|
42
42
|
childreNodes: OTreeFlatNode[];
|
|
43
43
|
nodesArray: OTreeFlatNode[];
|
|
44
44
|
ancestors: any[];
|
|
45
|
-
checklistSelection: SelectionModel<OTreeFlatNode>;
|
|
46
45
|
onNodeSelected: EventEmitter<any>;
|
|
47
46
|
onNodeExpanded: EventEmitter<any>;
|
|
48
47
|
onNodeCollapsed: EventEmitter<any>;
|
|
@@ -102,6 +101,16 @@ export declare class OTreeComponent extends AbstractOServiceComponent<OTreeCompo
|
|
|
102
101
|
protected navigateToViewDetail(node: OTreeFlatNode): void;
|
|
103
102
|
isSelectedNode(node: OTreeFlatNode): boolean;
|
|
104
103
|
onItemDetailClick(node: OTreeFlatNode): void;
|
|
104
|
+
get selection(): SelectionModel<any>;
|
|
105
|
+
getSelectedItems(): any[];
|
|
106
|
+
private shouldBeRoot;
|
|
107
|
+
protected createTreeNode(flatNode: OTreeFlatNode): any;
|
|
108
|
+
protected getFlatNodeIdentifier(flatNode: OTreeFlatNode): string;
|
|
109
|
+
private addChildToParent;
|
|
110
|
+
addParentToRootIfNoGrandparentSelected(parent: OTreeFlatNode, parentKey: string, selectedKeys: Set<string>, nodeMap: Map<string, any>, rootNodes: any[]): void;
|
|
111
|
+
private ensureNodeInMap;
|
|
112
|
+
private getSelectedNodeKeys;
|
|
113
|
+
getSelectedFlatNodes(): OTreeFlatNode[];
|
|
105
114
|
static ɵfac: i0.ɵɵFactoryDeclaration<OTreeComponent, [null, null, { optional: true; }]>;
|
|
106
115
|
static ɵcmp: i0.ɵɵComponentDeclaration<OTreeComponent, "o-tree", never, { "oattr": "attr"; "service": "service"; "entity": "entity"; "columns": "columns"; "keys": "keys"; "parentKeys": "parent-keys"; "queryMethod": "query-method"; "insertButton": "insert-button"; "refreshButton": "refresh-button"; "deleteButton": "delete-button"; "visibleColumns": "visible-columns"; "selectAllCheckbox": "select-all-checkbox"; "separator": "separator"; "parentColumn": "parent-column"; "sortColumn": "sort-column"; "selectAllCheckboxVisible": "select-all-checkbox-visible"; "filterCaseSensitive": "filter-case-sensitive"; "quickFilter": "quick-filter"; "quickFilterPlaceholder": "quick-filter-placeholder"; "quickFilterColumns": "quick-filter-columns"; "detailMode": "detail-mode"; "detailFormRoute": "detail-form-route"; "showButtonsText": "show-buttons-text"; "rootTitle": "root-title"; "recursive": "recursive"; "route": "route"; }, { "onNodeSelected": "onNodeSelected"; "onNodeExpanded": "onNodeExpanded"; "onNodeCollapsed": "onNodeCollapsed"; "onLoadNextLevel": "onLoadNextLevel"; "onDataLoaded": "onDataLoaded"; "onNodeClick": "onNodeClick"; }, ["leafNodeTemplate", "parentNodeTemplate", "nodeTemplate", "treeNode"], ["[o-tree-button]"], false, never>;
|
|
107
116
|
}
|
|
@@ -3,4 +3,4 @@ import { OLockerDirective } from '../directives/locker.directive';
|
|
|
3
3
|
import { OHiddenDirective } from '../directives/o-hidden.directive';
|
|
4
4
|
import { OMatErrorDirective } from '../directives/o-mat-error.directive';
|
|
5
5
|
import { OTabGroupDirective } from '../directives/o-tab-group.directive';
|
|
6
|
-
export declare const ONTIMIZE_DIRECTIVES: (typeof
|
|
6
|
+
export declare const ONTIMIZE_DIRECTIVES: (typeof OListItemDirective | typeof OMatErrorDirective | typeof OLockerDirective | typeof OHiddenDirective | typeof OTabGroupDirective)[];
|
package/lib/i18n/i18n.d.ts
CHANGED
|
@@ -97,6 +97,7 @@ export declare const MAP: {
|
|
|
97
97
|
'MESSAGES.CONFIRM_ACTION': string;
|
|
98
98
|
'MESSAGES.CONFIRM_LOGOUT': string;
|
|
99
99
|
'MESSAGES.CONFIRM_DELETE': string;
|
|
100
|
+
'MESSAGES.CONFIRM_DELETE_ITEM': string;
|
|
100
101
|
'MESSAGES.CONFIRM_CANCEL': string;
|
|
101
102
|
'MESSAGES.SAVING': string;
|
|
102
103
|
'MESSAGES.SAVED': string;
|
|
@@ -406,6 +407,7 @@ export declare const MAP: {
|
|
|
406
407
|
'MESSAGES.CONFIRM_ACTION': string;
|
|
407
408
|
'MESSAGES.CONFIRM_LOGOUT': string;
|
|
408
409
|
'MESSAGES.CONFIRM_DELETE': string;
|
|
410
|
+
'MESSAGES.CONFIRM_DELETE_ITEM': string;
|
|
409
411
|
'MESSAGES.CONFIRM_CANCEL': string;
|
|
410
412
|
'MESSAGES.SAVING': string;
|
|
411
413
|
'MESSAGES.SAVED': string;
|
|
@@ -706,6 +708,7 @@ export declare const MAP: {
|
|
|
706
708
|
'MESSAGES.CONFIRM_ACTION': string;
|
|
707
709
|
'MESSAGES.CONFIRM_LOGOUT': string;
|
|
708
710
|
'MESSAGES.CONFIRM_DELETE': string;
|
|
711
|
+
'MESSAGES.CONFIRM_DELETE_ITEM': string;
|
|
709
712
|
'MESSAGES.CONFIRM_CANCEL': string;
|
|
710
713
|
'MESSAGES.SAVING': string;
|
|
711
714
|
'MESSAGES.SAVED': string;
|
|
@@ -12,6 +12,7 @@ import { OErrorDialogManager } from "../services/o-error-dialog-manager.service"
|
|
|
12
12
|
import { OMatErrorOptions } from "../types/o-mat-error.type";
|
|
13
13
|
import { IExportDataProvider } from "../interfaces/export-data-provider.interface";
|
|
14
14
|
import { IAuthService } from "../interfaces/auth-service.interface";
|
|
15
|
+
import { IJsonApiConfig } from "../interfaces/jsonapi-config.interface";
|
|
15
16
|
import { IBaseRequestArgument } from "../services/request-adapter";
|
|
16
17
|
export declare const O_DATA_SERVICE: InjectionToken<unknown>;
|
|
17
18
|
export declare const O_RESPONSE_ADAPTER: InjectionToken<IServiceResponseAdapter<BaseServiceResponse>>;
|
|
@@ -29,3 +30,4 @@ export declare const O_ERROR_DIALOG_MANAGER: InjectionToken<OErrorDialogManager>
|
|
|
29
30
|
export declare const O_EXPORT_DATA_SERVICE: InjectionToken<IExportDataProvider>;
|
|
30
31
|
export declare const O_MAT_ERROR_OPTIONS: InjectionToken<OMatErrorOptions>;
|
|
31
32
|
export declare const O_FORM_MESSAGE_SERVICE: InjectionToken<unknown>;
|
|
33
|
+
export declare const O_JSON_API_CONFIG: InjectionToken<IJsonApiConfig>;
|
|
@@ -43,4 +43,5 @@ export * from './pagination-context.interface';
|
|
|
43
43
|
export * from './form-layout-manager.interface';
|
|
44
44
|
export * from './base-response.interface';
|
|
45
45
|
export * from './service-response.interface';
|
|
46
|
+
export * from './jsonapi-config.interface';
|
|
46
47
|
export * from './jsonapi-response.interface';
|
|
@@ -11,19 +11,23 @@ export declare class JSONAPIService extends BaseDataService<JSONAPIResponse> imp
|
|
|
11
11
|
protected injector: Injector;
|
|
12
12
|
protected _startSessionPath: string;
|
|
13
13
|
protected config: AppConfig;
|
|
14
|
+
protected readonly DEFAULT_DELIMITER = "_";
|
|
15
|
+
delimiter: string;
|
|
14
16
|
constructor(injector: Injector);
|
|
15
17
|
startsession(user: string, password: string): Observable<string | number>;
|
|
16
18
|
endsession(user: string, sessionId: number): Observable<number>;
|
|
17
19
|
protected buildHeaders(): HttpHeaders;
|
|
18
20
|
hassession(user: string, sessionId: any): Observable<boolean>;
|
|
19
21
|
configureService(config: any): void;
|
|
22
|
+
protected getValidDelimiter(delimiter?: string): string;
|
|
20
23
|
query(queryParams: JSONAPIQueryParameter): Observable<JSONAPIResponse>;
|
|
21
24
|
advancedQuery(queryParams: JSONAPIQueryParameter): Observable<JSONAPIResponse>;
|
|
22
25
|
queryById(queryParams: JSONAPIQueryParameter): Observable<JSONAPIResponse>;
|
|
26
|
+
protected serializeCompositeKey(keyObj: string | object): string;
|
|
23
27
|
protected parseNameConventionQueryParams(queryParams: JSONAPIQueryParameter): JSONAPIQueryParameter;
|
|
24
28
|
insert(attributes: object, type: string): Observable<JSONAPIResponse>;
|
|
25
|
-
update(id: string, attributes: object, type: string): Observable<JSONAPIResponse>;
|
|
26
|
-
delete(id:
|
|
29
|
+
update(id: string | object, attributes: object, type: string): Observable<JSONAPIResponse>;
|
|
30
|
+
delete(id: object): Observable<JSONAPIResponse>;
|
|
27
31
|
static ɵfac: i0.ɵɵFactoryDeclaration<JSONAPIService, never>;
|
|
28
32
|
static ɵprov: i0.ɵɵInjectableDeclaration<JSONAPIService>;
|
|
29
33
|
}
|
|
@@ -3,7 +3,7 @@ import { MenuRootItem } from './menu-root-item.type';
|
|
|
3
3
|
import { OntimizeEEPermissionsConfig } from './ontimize-ee-permissions-config.type';
|
|
4
4
|
import { OntimizePermissionsConfig } from './ontimize-permissions-config.type';
|
|
5
5
|
import { ORemoteConfiguration } from './remote-configuration.type';
|
|
6
|
-
import {
|
|
6
|
+
import { JSONAPIServiceConfigType, OntimizeServiceConfigType } from './service-configuration.type';
|
|
7
7
|
export type Config = {
|
|
8
8
|
apiEndpoint?: string;
|
|
9
9
|
bundle?: {
|
|
@@ -28,7 +28,7 @@ export type Config = {
|
|
|
28
28
|
defaultLocale?: string;
|
|
29
29
|
serviceType?: any;
|
|
30
30
|
exportServiceType?: any;
|
|
31
|
-
servicesConfiguration?:
|
|
31
|
+
servicesConfiguration?: OntimizeServiceConfigType | JSONAPIServiceConfigType;
|
|
32
32
|
appMenuConfiguration?: MenuRootItem[];
|
|
33
33
|
permissionsConfiguration?: OntimizePermissionsConfig | OntimizeEEPermissionsConfig;
|
|
34
34
|
permissionsServiceType?: any;
|
|
@@ -14,7 +14,7 @@ export type FormLayoutDetailComponentData = {
|
|
|
14
14
|
[formAttr: string]: FormLayoutInnerFormInfo;
|
|
15
15
|
};
|
|
16
16
|
url: string;
|
|
17
|
-
rendered
|
|
17
|
+
rendered?: boolean;
|
|
18
18
|
insertionMode?: boolean;
|
|
19
19
|
formDataByLabelColumns?: any;
|
|
20
20
|
rendererSubject: BehaviorSubject<boolean>;
|
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
export type ServiceConfigType = {
|
|
2
2
|
[key: string]: {
|
|
3
3
|
path: string;
|
|
4
|
-
fileManagerPath?: string;
|
|
5
4
|
serviceType?: string;
|
|
6
5
|
};
|
|
7
6
|
};
|
|
7
|
+
export type OntimizeServiceConfigType = ServiceConfigType & {
|
|
8
|
+
fileManagerPath?: string;
|
|
9
|
+
};
|
|
10
|
+
export type JSONAPIServiceConfigType = ServiceConfigType & {
|
|
11
|
+
delimiter?: string;
|
|
12
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Injector } from '@angular/core';
|
|
2
|
+
import { ServiceType } from '../types/service-type.type';
|
|
3
|
+
import { OConfigureServiceArgs } from '../types/configure-service-args.type';
|
|
4
|
+
export declare class FactoryUtil {
|
|
5
|
+
static isJsonApiService(injector: Injector): boolean;
|
|
6
|
+
static isOntimizeEEService(injector: Injector): boolean;
|
|
7
|
+
static createServiceInstanceByType(serviceType: ServiceType, injector: Injector): any;
|
|
8
|
+
private static getDataServiceInstance;
|
|
9
|
+
static configureService(configureServiceArgs: OConfigureServiceArgs): any;
|
|
10
|
+
}
|
package/lib/util/index.d.ts
CHANGED
package/lib/util/util.d.ts
CHANGED
|
@@ -4,10 +4,8 @@ import { IDataService } from '../interfaces/data-service.interface';
|
|
|
4
4
|
import { IFormDataComponent } from '../interfaces/form-data-component.interface';
|
|
5
5
|
import { IPermissionsService } from '../interfaces/permissions-service.interface';
|
|
6
6
|
import { OConfigureMessageServiceArgs } from '../types/configure-message-service-args.type';
|
|
7
|
-
import { OConfigureServiceArgs } from '../types/configure-service-args.type';
|
|
8
7
|
import { ODateValueType } from '../types/o-date-value.type';
|
|
9
8
|
import { ActivatedRouteSnapshot } from '@angular/router';
|
|
10
|
-
import { ServiceType } from '../types/service-type.type';
|
|
11
9
|
export declare class Util {
|
|
12
10
|
static readonly columnAggregates: string[];
|
|
13
11
|
static isObject(val: any): boolean;
|
|
@@ -43,11 +41,6 @@ export declare class Util {
|
|
|
43
41
|
static parseByValueType(value: any, valueType: ODateValueType, format: string): any;
|
|
44
42
|
static wrapIntoObservable<T>(value: T | Promise<T> | Observable<T>): Observable<T>;
|
|
45
43
|
static isPromise<T = any>(obj: any): obj is Promise<T>;
|
|
46
|
-
static isJsonApiService(injector: Injector): boolean;
|
|
47
|
-
static isOntimizeEEService(injector: Injector): boolean;
|
|
48
|
-
static configureService(configureServiceArgs: OConfigureServiceArgs): any;
|
|
49
|
-
private static getDataServiceInstance;
|
|
50
|
-
static createServiceInstanceByType(serviceType: ServiceType, injector: Injector): any;
|
|
51
44
|
static createServiceInstance(clazz: any, injector: Injector): any;
|
|
52
45
|
static configureMessageService(configureServiceArgs: OConfigureMessageServiceArgs): any;
|
|
53
46
|
static isBase64(file: string): boolean;
|
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.8",
|
|
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.",
|