@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.
@@ -423,7 +423,7 @@ class StoreService {
423
423
  */
424
424
  select(key) {
425
425
  if (!this.store) {
426
- return throwError(new Error('NGRX Store not configured'));
426
+ return throwError(() => new Error('NGRX Store not configured'));
427
427
  }
428
428
  return this.store.select(key);
429
429
  }
@@ -1055,6 +1055,7 @@ const initialState = {
1055
1055
  hasToolbarMenu: false,
1056
1056
  environmentValue: '',
1057
1057
  isSidebarHidden: false,
1058
+ hasTopMessage: false,
1058
1059
  windowWidth: 0,
1059
1060
  windowHeight: 0,
1060
1061
  mainContentHeight: 0,
@@ -1080,7 +1081,7 @@ const initialState = {
1080
1081
  hasModalActive: false,
1081
1082
  isDimmerActive: false,
1082
1083
  };
1083
- // export class UxAppShellService extends UxRootInjectorGuard {
1084
+ // TODO: this service needs to be transferred in the respective component
1084
1085
  class UxAppShellService {
1085
1086
  constructor(config, http, platformId, router, storeService, i18nService) {
1086
1087
  this.config = config;
@@ -1097,8 +1098,6 @@ class UxAppShellService {
1097
1098
  this.activeModals = [];
1098
1099
  this.openModalId = new BehaviorSubject('');
1099
1100
  this.cssVars = [];
1100
- // super(UxAppShellService);
1101
- console.log('UxAppShellService initialized');
1102
1101
  let stateWithConfig = initialState;
1103
1102
  const languages = config?.i18n?.i18nService?.languages || initialState.languages;
1104
1103
  const defaultLanguage = config?.i18n?.i18nService?.defaultLanguage || initialState.activeLanguage;
@@ -1315,6 +1314,13 @@ class UxAppShellService {
1315
1314
  });
1316
1315
  this.activateHeaderCssVars();
1317
1316
  }
1317
+ activateTopMessage() {
1318
+ this.setState({
1319
+ ...this.state,
1320
+ hasTopMessage: true,
1321
+ });
1322
+ this.activateTopMessageCssVars();
1323
+ }
1318
1324
  activateToolbar() {
1319
1325
  this.setState({
1320
1326
  ...this.state,
@@ -1333,6 +1339,9 @@ class UxAppShellService {
1333
1339
  '--eui-app-header-height-default',
1334
1340
  '--eui-app-header-height-active',
1335
1341
  '--eui-app-header-height-shrink',
1342
+ '--eui-app-top-message-height-default',
1343
+ '--eui-app-top-message-height-active',
1344
+ '--eui-app-top-message-height-shrink',
1336
1345
  '--eui-app-toolbar-height-default',
1337
1346
  '--eui-app-toolbar-height-active',
1338
1347
  '--eui-app-sidebar-width-default',
@@ -1350,6 +1359,7 @@ class UxAppShellService {
1350
1359
  }
1351
1360
  initCssVars() {
1352
1361
  this.setCssVar('--eui-app-header-height-default', '--eui-app-header-height');
1362
+ this.setCssVar('--eui-app-top-message-height-default', '--eui-app-top-message-height');
1353
1363
  this.setCssVar('--eui-app-toolbar-height-default', '--eui-app-toolbar-height');
1354
1364
  this.setCssVar('--eui-app-sidebar-width-default', '--eui-app-sidebar-width');
1355
1365
  this.setCssVar('--eui-app-sidebar-width-close-default', '--eui-app-sidebar-width-close');
@@ -1359,6 +1369,9 @@ class UxAppShellService {
1359
1369
  activateHeaderCssVars() {
1360
1370
  this.setCssVar('--eui-app-header-height-active', '--eui-app-header-height');
1361
1371
  }
1372
+ activateTopMessageCssVars() {
1373
+ this.setCssVar('--eui-app-top-message-height-active', '--eui-app-top-message-height');
1374
+ }
1362
1375
  activateToolbarCssVars() {
1363
1376
  this.setCssVar('--eui-app-toolbar-height-active', '--eui-app-toolbar-height');
1364
1377
  }
@@ -2285,7 +2298,6 @@ class ApiQueueService {
2285
2298
  .pipe(take(1), switchMap((queue) => {
2286
2299
  if (!queue) {
2287
2300
  this.logService.warn(`Queue item with id "${id}" does not exist`);
2288
- // tslint:disable-next-line:deprecation
2289
2301
  return of(null);
2290
2302
  }
2291
2303
  return this.buildHttpRequest(id, queue);
@@ -2304,7 +2316,6 @@ class ApiQueueService {
2304
2316
  if (!continueOnError) {
2305
2317
  throw error;
2306
2318
  }
2307
- // tslint:disable-next-line:deprecation
2308
2319
  return of(error);
2309
2320
  })))), switchMap((obsQueue) => forkJoin(Array.from(obsQueue))));
2310
2321
  }
@@ -2355,22 +2366,18 @@ class ApiQueueServiceMock extends ApiQueueService {
2355
2366
  super(null, null, null);
2356
2367
  }
2357
2368
  getQueue() {
2358
- // tslint:disable-next-line:deprecation
2359
2369
  return of([]);
2360
2370
  }
2361
2371
  getQueueItem(id) {
2362
- // tslint:disable-next-line:deprecation
2363
2372
  return of(null);
2364
2373
  }
2365
2374
  removeAllQueueItem() { }
2366
2375
  processAllQueueItems() {
2367
- // tslint:disable-next-line:deprecation
2368
2376
  return of({});
2369
2377
  }
2370
2378
  addQueueItem() { }
2371
2379
  removeQueueItem() { }
2372
2380
  processQueueItem() {
2373
- // tslint:disable-next-line:deprecation
2374
2381
  return of({});
2375
2382
  }
2376
2383
  }
@@ -3692,22 +3699,18 @@ class AsyncStorageService extends StorageService {
3692
3699
 
3693
3700
  class AsyncStorageServiceMock extends AsyncStorageService {
3694
3701
  ready() {
3695
- // tslint:disable-next-line:deprecation
3696
3702
  return of({});
3697
3703
  }
3698
3704
  name() {
3699
3705
  return null;
3700
3706
  }
3701
3707
  get() {
3702
- // tslint:disable-next-line:deprecation
3703
3708
  return of({});
3704
3709
  }
3705
3710
  set() {
3706
- // tslint:disable-next-line:deprecation
3707
3711
  return of({});
3708
3712
  }
3709
3713
  remove() {
3710
- // tslint:disable-next-line:deprecation
3711
3714
  return of({});
3712
3715
  }
3713
3716
  setAsync() {
@@ -4388,7 +4391,6 @@ class EuLoginSessionTimeoutHandlingInterceptor {
4388
4391
  }
4389
4392
  }
4390
4393
  reauthenticate(request, response) {
4391
- // tslint:disable-next-line:deprecation
4392
4394
  document.location.reload();
4393
4395
  }
4394
4396
  }