ontimize-web-ngx 15.6.0-next.7 → 15.6.0-next.9
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 +4 -3
- package/esm2020/lib/components/form/o-form.component.mjs +3 -2
- package/esm2020/lib/components/input/file-input/o-file-input.component.mjs +3 -2
- 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/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 +3 -3
- 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/index.mjs +1 -2
- 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 +3304 -3220
- package/fesm2015/ontimize-web-ngx.mjs.map +1 -1
- package/fesm2020/ontimize-web-ngx.mjs +3301 -3217
- package/fesm2020/ontimize-web-ngx.mjs.map +1 -1
- package/lib/components/tree/o-tree.component.d.ts +10 -1
- package/lib/config/o-directives.d.ts +1 -1
- 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/index.d.ts +0 -1
- package/lib/types/service-configuration.type.d.ts +8 -3
- 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
- package/theme.scss +69 -69
- package/esm2020/lib/types/ontimize-service-config.type.mjs +0 -2
- package/lib/types/ontimize-service-config.type.d.ts +0 -5
|
@@ -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)[];
|
|
@@ -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 { JSONAPIServiceConfig, OntimizeServiceConfig } 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?: OntimizeServiceConfig | JSONAPIServiceConfig;
|
|
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>;
|
package/lib/types/index.d.ts
CHANGED
|
@@ -27,7 +27,6 @@ export * from './o-permissions.type';
|
|
|
27
27
|
export * from './o-route-permissions.type';
|
|
28
28
|
export * from './ontimize-ee-permissions-config.type';
|
|
29
29
|
export * from './ontimize-permissions-config.type';
|
|
30
|
-
export * from './ontimize-service-config.type';
|
|
31
30
|
export * from './operation-function.type';
|
|
32
31
|
export * from './query-data-args.type';
|
|
33
32
|
export * from './quick-filter-function.type';
|
|
@@ -1,12 +1,17 @@
|
|
|
1
|
-
|
|
1
|
+
import { SessionInfo } from "./session-info.type";
|
|
2
|
+
export type ServiceConfig = {
|
|
2
3
|
[key: string]: {
|
|
3
4
|
path: string;
|
|
4
5
|
serviceType?: string;
|
|
6
|
+
urlBase?: string;
|
|
7
|
+
session?: SessionInfo;
|
|
8
|
+
exportPath?: string;
|
|
9
|
+
downloadPath?: string;
|
|
5
10
|
};
|
|
6
11
|
};
|
|
7
|
-
export type
|
|
12
|
+
export type OntimizeServiceConfig = ServiceConfig & {
|
|
8
13
|
fileManagerPath?: string;
|
|
9
14
|
};
|
|
10
|
-
export type
|
|
15
|
+
export type JSONAPIServiceConfig = ServiceConfig & {
|
|
11
16
|
delimiter?: string;
|
|
12
17
|
};
|
|
@@ -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.9",
|
|
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.",
|
package/theme.scss
CHANGED
|
@@ -73,74 +73,7 @@
|
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
75
|
|
|
76
|
-
}@mixin o-
|
|
77
|
-
$theme: map.get($theme-or-color-config, color);
|
|
78
|
-
$primary: map.get($theme, primary);
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
$bg-color: #FFF;
|
|
82
|
-
$fg-color: rgba(0, 0, 0, 0.7);
|
|
83
|
-
|
|
84
|
-
$item-bg-color-hover-dark: rgba(0, 0, 0, 0.16);
|
|
85
|
-
$item-bg-color-hover-light: rgba(255, 255, 255, 0.16);
|
|
86
|
-
|
|
87
|
-
.o-bar-menu {
|
|
88
|
-
box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.2), 0 4px 5px 0 rgba(0, 0, 0, 0.14), 0 1px 10px 0 rgba(0, 0, 0, 0.12);
|
|
89
|
-
|
|
90
|
-
nav {
|
|
91
|
-
.fake-ul {
|
|
92
|
-
.fake-ul {
|
|
93
|
-
background-color: $bg-color;
|
|
94
|
-
|
|
95
|
-
.mat-icon,
|
|
96
|
-
.o-bar-menu-group-title,
|
|
97
|
-
.o-bar-menu-item-title,
|
|
98
|
-
label.toggle {
|
|
99
|
-
color: $fg-color;
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
.fake-li {
|
|
103
|
-
background-color: $bg-color;
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
a {
|
|
109
|
-
color: $bg-color;
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
@media all and (min-width : 768px) {
|
|
114
|
-
nav .fake-ul {
|
|
115
|
-
.fake-li .fake-ul .fake-li-hover {
|
|
116
|
-
background: $item-bg-color-hover-dark;
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
.fake-li-hover {
|
|
120
|
-
background-color: $item-bg-color-hover-light;
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
@media all and (max-width : 767px) {
|
|
126
|
-
nav {
|
|
127
|
-
a:hover {
|
|
128
|
-
background-color: rgba(255, 255, 255, 0.15);
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
.fake-ul {
|
|
132
|
-
border-top: 1px solid rgba(255, 255, 255, 0.5);
|
|
133
|
-
}
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
.toggle {
|
|
137
|
-
&:hover {
|
|
138
|
-
background-color: rgba(255, 255, 255, 0.15);
|
|
139
|
-
}
|
|
140
|
-
}
|
|
141
|
-
}
|
|
142
|
-
}
|
|
143
|
-
}@mixin o-app-sidenav-theme($theme-or-color-config) {
|
|
76
|
+
}@mixin o-app-sidenav-theme($theme-or-color-config) {
|
|
144
77
|
$theme: map.get($theme-or-color-config, color);
|
|
145
78
|
$primary: map.get($theme, primary);
|
|
146
79
|
$accent: map.get($theme, accent);
|
|
@@ -216,7 +149,74 @@
|
|
|
216
149
|
}
|
|
217
150
|
}
|
|
218
151
|
}
|
|
219
|
-
}@mixin o-
|
|
152
|
+
}@mixin o-bar-menu-theme($theme-or-color-config) {
|
|
153
|
+
$theme: map.get($theme-or-color-config, color);
|
|
154
|
+
$primary: map.get($theme, primary);
|
|
155
|
+
|
|
156
|
+
|
|
157
|
+
$bg-color: #FFF;
|
|
158
|
+
$fg-color: rgba(0, 0, 0, 0.7);
|
|
159
|
+
|
|
160
|
+
$item-bg-color-hover-dark: rgba(0, 0, 0, 0.16);
|
|
161
|
+
$item-bg-color-hover-light: rgba(255, 255, 255, 0.16);
|
|
162
|
+
|
|
163
|
+
.o-bar-menu {
|
|
164
|
+
box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.2), 0 4px 5px 0 rgba(0, 0, 0, 0.14), 0 1px 10px 0 rgba(0, 0, 0, 0.12);
|
|
165
|
+
|
|
166
|
+
nav {
|
|
167
|
+
.fake-ul {
|
|
168
|
+
.fake-ul {
|
|
169
|
+
background-color: $bg-color;
|
|
170
|
+
|
|
171
|
+
.mat-icon,
|
|
172
|
+
.o-bar-menu-group-title,
|
|
173
|
+
.o-bar-menu-item-title,
|
|
174
|
+
label.toggle {
|
|
175
|
+
color: $fg-color;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
.fake-li {
|
|
179
|
+
background-color: $bg-color;
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
a {
|
|
185
|
+
color: $bg-color;
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
@media all and (min-width : 768px) {
|
|
190
|
+
nav .fake-ul {
|
|
191
|
+
.fake-li .fake-ul .fake-li-hover {
|
|
192
|
+
background: $item-bg-color-hover-dark;
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
.fake-li-hover {
|
|
196
|
+
background-color: $item-bg-color-hover-light;
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
@media all and (max-width : 767px) {
|
|
202
|
+
nav {
|
|
203
|
+
a:hover {
|
|
204
|
+
background-color: rgba(255, 255, 255, 0.15);
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
.fake-ul {
|
|
208
|
+
border-top: 1px solid rgba(255, 255, 255, 0.5);
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
.toggle {
|
|
213
|
+
&:hover {
|
|
214
|
+
background-color: rgba(255, 255, 255, 0.15);
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
}@mixin o-breadcrumb-theme($theme-or-color-config) {
|
|
220
220
|
$theme: map.get($theme-or-color-config, color);
|
|
221
221
|
$primary: map.get($theme, primary);
|
|
222
222
|
$accent: map.get($theme, accent);
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
export {};
|
|
2
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoib250aW1pemUtc2VydmljZS1jb25maWcudHlwZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3Byb2plY3RzL29udGltaXplLXdlYi1uZ3gvc3JjL2xpYi90eXBlcy9vbnRpbWl6ZS1zZXJ2aWNlLWNvbmZpZy50eXBlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiIiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBTZXNzaW9uSW5mbyB9IGZyb20gJy4vc2Vzc2lvbi1pbmZvLnR5cGUnO1xuXG4vKiogT250aW1pemUgU2VydmljZSBDb25maWd1cmF0aW9uICovXG5leHBvcnQgdHlwZSBPbnRpbWl6ZVNlcnZpY2VDb25maWcgPSB7XG4gIC8qKiBVUkwgdXNlZCBnbG9iYWxseSBmb3Igc2VuZGluZyBIVFRQIHJlcXVlc3RzICovXG4gIHVybEJhc2U/OiBzdHJpbmc7XG4gIC8qKiBTZXNzaW9uIGluZm9ybWF0aW9uICovXG4gIHNlc3Npb24/OiBTZXNzaW9uSW5mbztcbn07XG4iXX0=
|