ontimize-web-ngx 15.6.0-next.6 → 15.6.0-next.7
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 +14 -8
- package/esm2020/lib/components/form/o-form.component.mjs +3 -5
- package/esm2020/lib/components/form/services/o-form-message.service.mjs +2 -2
- package/esm2020/lib/components/input/o-boolean-form-data-component.class.mjs +9 -1
- 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/services/jsonapi/jsonapi.service.mjs +44 -7
- package/esm2020/lib/types/config.type.mjs +1 -1
- package/esm2020/lib/types/service-configuration.type.mjs +1 -1
- package/fesm2015/ontimize-web-ngx.mjs +78 -22
- package/fesm2015/ontimize-web-ngx.mjs.map +1 -1
- package/fesm2020/ontimize-web-ngx.mjs +77 -22
- 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/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/service-configuration.type.d.ts +6 -1
- package/package.json +1 -1
- package/theme.scss +69 -69
|
@@ -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
|
}
|
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;
|
|
@@ -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
|
+
};
|
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.7",
|
|
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,7 +73,74 @@
|
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
75
|
|
|
76
|
-
}@mixin o-
|
|
76
|
+
}@mixin o-bar-menu-theme($theme-or-color-config) {
|
|
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) {
|
|
77
144
|
$theme: map.get($theme-or-color-config, color);
|
|
78
145
|
$primary: map.get($theme, primary);
|
|
79
146
|
$accent: map.get($theme, accent);
|
|
@@ -149,74 +216,7 @@
|
|
|
149
216
|
}
|
|
150
217
|
}
|
|
151
218
|
}
|
|
152
|
-
}@mixin o-
|
|
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) {
|
|
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);
|