info-library 2.10.70 → 2.10.71

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.
@@ -2347,11 +2347,6 @@
2347
2347
  RefreshSessionTimeModalComponent.prototype._ref;
2348
2348
  }
2349
2349
 
2350
- /**
2351
- * @fileoverview added by tsickle
2352
- * Generated from: service/theme.service.ts
2353
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
2354
- */
2355
2350
  var InfoThemeService = /** @class */ (function () {
2356
2351
  /**
2357
2352
  * @param {?} _overlay
@@ -2390,9 +2385,11 @@
2390
2385
  if (themeClassesToRemove && themeClassesToRemove.length > 0)
2391
2386
  _overlay.remove(themeClassesToRemove);
2392
2387
  _overlay.remove('alternative-layout');
2393
- _overlay.add(theme);
2394
2388
  document.body.removeAttribute('class');
2395
- document.body.classList.add(theme);
2389
+ if (!this._plataform.ModoPrime) {
2390
+ document.body.classList.add(theme);
2391
+ _overlay.add(theme);
2392
+ }
2396
2393
  if (this._plataform.UnificarTopbar)
2397
2394
  document.body.classList.add('alternative-layout');
2398
2395
  if (this._plataform.MenuMin)
@@ -2428,11 +2425,39 @@
2428
2425
  * @return {?}
2429
2426
  */
2430
2427
  InfoThemeService.prototype.setModePrime = function (prime) {
2428
+ var e_1, _a;
2431
2429
  if (prime === void 0) { prime = null; }
2432
2430
  this._plataform.ModoPrime = prime == null ? !this._plataform.ModoPrime : prime;
2431
+ /** @type {?} */
2432
+ var _overlay = this._overlay.getContainerElement().classList;
2433
+ /** @type {?} */
2434
+ var themesClassToRemove = Array.from(_overlay).filter(( /**
2435
+ * @param {?} item
2436
+ * @return {?}
2437
+ */function (/**
2438
+ * @param {?} item
2439
+ * @return {?}
2440
+ */ item) { return item.includes('-theme'); }));
2433
2441
  document.body.classList.remove('modo-prime');
2434
- if (this._plataform.ModoPrime)
2442
+ if (this._plataform.ModoPrime) {
2435
2443
  document.body.classList.add('modo-prime');
2444
+ if (themesClassToRemove && themesClassToRemove.length > 0) {
2445
+ try {
2446
+ for (var themesClassToRemove_1 = __values(themesClassToRemove), themesClassToRemove_1_1 = themesClassToRemove_1.next(); !themesClassToRemove_1_1.done; themesClassToRemove_1_1 = themesClassToRemove_1.next()) {
2447
+ var themeToRemove = themesClassToRemove_1_1.value;
2448
+ _overlay.remove(themeToRemove);
2449
+ document.body.classList.remove(themeToRemove);
2450
+ }
2451
+ }
2452
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
2453
+ finally {
2454
+ try {
2455
+ if (themesClassToRemove_1_1 && !themesClassToRemove_1_1.done && (_a = themesClassToRemove_1.return)) _a.call(themesClassToRemove_1);
2456
+ }
2457
+ finally { if (e_1) throw e_1.error; }
2458
+ }
2459
+ }
2460
+ }
2436
2461
  sessionStorage.setItem('mp', this._plataform.ModoPrime.toString());
2437
2462
  localStorage.setItem('mp', this._plataform.ModoPrime.toString());
2438
2463
  };