@eui/core 13.0.0-rc.24 → 13.0.0-rc.28
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/docs/dependencies.html +4 -4
- package/docs/injectables/UxAppShellService.html +74 -0
- package/docs/interfaces/UIState.html +45 -0
- package/docs/js/search/search_index.js +2 -2
- package/docs/miscellaneous/variables.html +1 -0
- package/esm2020/lib/interceptors/eu-login-session-timeout-handling.interceptor.mjs +1 -2
- package/esm2020/lib/services/queue/api-queue.service.mjs +1 -3
- package/esm2020/lib/services/queue/api-queue.service.mock.mjs +1 -5
- package/esm2020/lib/services/storage/async-storage.service.mock.mjs +1 -5
- package/esm2020/lib/services/store/store.service.mjs +2 -2
- package/esm2020/lib/services/ux-app-shell.service.mjs +17 -4
- package/fesm2015/eui-core.mjs +14 -15
- package/fesm2015/eui-core.mjs.map +1 -1
- package/fesm2020/eui-core.mjs +17 -15
- package/fesm2020/eui-core.mjs.map +1 -1
- package/lib/interceptors/eu-login-session-timeout-handling.interceptor.d.ts.map +1 -1
- package/lib/services/queue/api-queue.service.d.ts.map +1 -1
- package/lib/services/queue/api-queue.service.mock.d.ts.map +1 -1
- package/lib/services/storage/async-storage.service.mock.d.ts.map +1 -1
- package/lib/services/ux-app-shell.service.d.ts +3 -0
- package/lib/services/ux-app-shell.service.d.ts.map +1 -1
- package/package.json +11 -1
package/fesm2015/eui-core.mjs
CHANGED
|
@@ -408,7 +408,7 @@ class StoreService {
|
|
|
408
408
|
*/
|
|
409
409
|
select(key) {
|
|
410
410
|
if (!this.store) {
|
|
411
|
-
return throwError(new Error('NGRX Store not configured'));
|
|
411
|
+
return throwError(() => new Error('NGRX Store not configured'));
|
|
412
412
|
}
|
|
413
413
|
return this.store.select(key);
|
|
414
414
|
}
|
|
@@ -1043,6 +1043,7 @@ const initialState = {
|
|
|
1043
1043
|
hasToolbarMenu: false,
|
|
1044
1044
|
environmentValue: '',
|
|
1045
1045
|
isSidebarHidden: false,
|
|
1046
|
+
hasTopMessage: false,
|
|
1046
1047
|
windowWidth: 0,
|
|
1047
1048
|
windowHeight: 0,
|
|
1048
1049
|
mainContentHeight: 0,
|
|
@@ -1068,7 +1069,7 @@ const initialState = {
|
|
|
1068
1069
|
hasModalActive: false,
|
|
1069
1070
|
isDimmerActive: false,
|
|
1070
1071
|
};
|
|
1071
|
-
//
|
|
1072
|
+
// TODO: this service needs to be transferred in the respective component
|
|
1072
1073
|
class UxAppShellService {
|
|
1073
1074
|
constructor(config, http, platformId, router, storeService, i18nService) {
|
|
1074
1075
|
var _a, _b, _c, _d;
|
|
@@ -1086,8 +1087,6 @@ class UxAppShellService {
|
|
|
1086
1087
|
this.activeModals = [];
|
|
1087
1088
|
this.openModalId = new BehaviorSubject('');
|
|
1088
1089
|
this.cssVars = [];
|
|
1089
|
-
// super(UxAppShellService);
|
|
1090
|
-
console.log('UxAppShellService initialized');
|
|
1091
1090
|
let stateWithConfig = initialState;
|
|
1092
1091
|
const languages = ((_b = (_a = config === null || config === void 0 ? void 0 : config.i18n) === null || _a === void 0 ? void 0 : _a.i18nService) === null || _b === void 0 ? void 0 : _b.languages) || initialState.languages;
|
|
1093
1092
|
const defaultLanguage = ((_d = (_c = config === null || config === void 0 ? void 0 : config.i18n) === null || _c === void 0 ? void 0 : _c.i18nService) === null || _d === void 0 ? void 0 : _d.defaultLanguage) || initialState.activeLanguage;
|
|
@@ -1260,6 +1259,10 @@ class UxAppShellService {
|
|
|
1260
1259
|
this.setState(Object.assign(Object.assign({}, this.state), { hasHeader: true }));
|
|
1261
1260
|
this.activateHeaderCssVars();
|
|
1262
1261
|
}
|
|
1262
|
+
activateTopMessage() {
|
|
1263
|
+
this.setState(Object.assign(Object.assign({}, this.state), { hasTopMessage: true }));
|
|
1264
|
+
this.activateTopMessageCssVars();
|
|
1265
|
+
}
|
|
1263
1266
|
activateToolbar() {
|
|
1264
1267
|
this.setState(Object.assign(Object.assign({}, this.state), { hasToolbar: true }));
|
|
1265
1268
|
this.activateToolbarCssVars();
|
|
@@ -1272,6 +1275,9 @@ class UxAppShellService {
|
|
|
1272
1275
|
'--eui-app-header-height-default',
|
|
1273
1276
|
'--eui-app-header-height-active',
|
|
1274
1277
|
'--eui-app-header-height-shrink',
|
|
1278
|
+
'--eui-app-top-message-height-default',
|
|
1279
|
+
'--eui-app-top-message-height-active',
|
|
1280
|
+
'--eui-app-top-message-height-shrink',
|
|
1275
1281
|
'--eui-app-toolbar-height-default',
|
|
1276
1282
|
'--eui-app-toolbar-height-active',
|
|
1277
1283
|
'--eui-app-sidebar-width-default',
|
|
@@ -1289,6 +1295,7 @@ class UxAppShellService {
|
|
|
1289
1295
|
}
|
|
1290
1296
|
initCssVars() {
|
|
1291
1297
|
this.setCssVar('--eui-app-header-height-default', '--eui-app-header-height');
|
|
1298
|
+
this.setCssVar('--eui-app-top-message-height-default', '--eui-app-top-message-height');
|
|
1292
1299
|
this.setCssVar('--eui-app-toolbar-height-default', '--eui-app-toolbar-height');
|
|
1293
1300
|
this.setCssVar('--eui-app-sidebar-width-default', '--eui-app-sidebar-width');
|
|
1294
1301
|
this.setCssVar('--eui-app-sidebar-width-close-default', '--eui-app-sidebar-width-close');
|
|
@@ -1298,6 +1305,9 @@ class UxAppShellService {
|
|
|
1298
1305
|
activateHeaderCssVars() {
|
|
1299
1306
|
this.setCssVar('--eui-app-header-height-active', '--eui-app-header-height');
|
|
1300
1307
|
}
|
|
1308
|
+
activateTopMessageCssVars() {
|
|
1309
|
+
this.setCssVar('--eui-app-top-message-height-active', '--eui-app-top-message-height');
|
|
1310
|
+
}
|
|
1301
1311
|
activateToolbarCssVars() {
|
|
1302
1312
|
this.setCssVar('--eui-app-toolbar-height-active', '--eui-app-toolbar-height');
|
|
1303
1313
|
}
|
|
@@ -2220,7 +2230,6 @@ class ApiQueueService {
|
|
|
2220
2230
|
.pipe(take(1), switchMap((queue) => {
|
|
2221
2231
|
if (!queue) {
|
|
2222
2232
|
this.logService.warn(`Queue item with id "${id}" does not exist`);
|
|
2223
|
-
// tslint:disable-next-line:deprecation
|
|
2224
2233
|
return of(null);
|
|
2225
2234
|
}
|
|
2226
2235
|
return this.buildHttpRequest(id, queue);
|
|
@@ -2239,7 +2248,6 @@ class ApiQueueService {
|
|
|
2239
2248
|
if (!continueOnError) {
|
|
2240
2249
|
throw error;
|
|
2241
2250
|
}
|
|
2242
|
-
// tslint:disable-next-line:deprecation
|
|
2243
2251
|
return of(error);
|
|
2244
2252
|
})))), switchMap((obsQueue) => forkJoin(Array.from(obsQueue))));
|
|
2245
2253
|
}
|
|
@@ -2290,22 +2298,18 @@ class ApiQueueServiceMock extends ApiQueueService {
|
|
|
2290
2298
|
super(null, null, null);
|
|
2291
2299
|
}
|
|
2292
2300
|
getQueue() {
|
|
2293
|
-
// tslint:disable-next-line:deprecation
|
|
2294
2301
|
return of([]);
|
|
2295
2302
|
}
|
|
2296
2303
|
getQueueItem(id) {
|
|
2297
|
-
// tslint:disable-next-line:deprecation
|
|
2298
2304
|
return of(null);
|
|
2299
2305
|
}
|
|
2300
2306
|
removeAllQueueItem() { }
|
|
2301
2307
|
processAllQueueItems() {
|
|
2302
|
-
// tslint:disable-next-line:deprecation
|
|
2303
2308
|
return of({});
|
|
2304
2309
|
}
|
|
2305
2310
|
addQueueItem() { }
|
|
2306
2311
|
removeQueueItem() { }
|
|
2307
2312
|
processQueueItem() {
|
|
2308
|
-
// tslint:disable-next-line:deprecation
|
|
2309
2313
|
return of({});
|
|
2310
2314
|
}
|
|
2311
2315
|
}
|
|
@@ -3629,22 +3633,18 @@ class AsyncStorageService extends StorageService {
|
|
|
3629
3633
|
|
|
3630
3634
|
class AsyncStorageServiceMock extends AsyncStorageService {
|
|
3631
3635
|
ready() {
|
|
3632
|
-
// tslint:disable-next-line:deprecation
|
|
3633
3636
|
return of({});
|
|
3634
3637
|
}
|
|
3635
3638
|
name() {
|
|
3636
3639
|
return null;
|
|
3637
3640
|
}
|
|
3638
3641
|
get() {
|
|
3639
|
-
// tslint:disable-next-line:deprecation
|
|
3640
3642
|
return of({});
|
|
3641
3643
|
}
|
|
3642
3644
|
set() {
|
|
3643
|
-
// tslint:disable-next-line:deprecation
|
|
3644
3645
|
return of({});
|
|
3645
3646
|
}
|
|
3646
3647
|
remove() {
|
|
3647
|
-
// tslint:disable-next-line:deprecation
|
|
3648
3648
|
return of({});
|
|
3649
3649
|
}
|
|
3650
3650
|
setAsync() {
|
|
@@ -4336,7 +4336,6 @@ class EuLoginSessionTimeoutHandlingInterceptor {
|
|
|
4336
4336
|
}
|
|
4337
4337
|
}
|
|
4338
4338
|
reauthenticate(request, response) {
|
|
4339
|
-
// tslint:disable-next-line:deprecation
|
|
4340
4339
|
document.location.reload();
|
|
4341
4340
|
}
|
|
4342
4341
|
}
|