info-library 2.10.42 → 2.10.43

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.
@@ -32,6 +32,7 @@
32
32
  this.theme = '';
33
33
  this.dictionary = '';
34
34
  this.ux = 2;
35
+ this.style = '';
35
36
  this.topMenu = false;
36
37
  this.enabledPrime = false;
37
38
  }
@@ -51,6 +52,8 @@
51
52
  /** @type {?} */
52
53
  InfoAppConfigModel.prototype.ux;
53
54
  /** @type {?} */
55
+ InfoAppConfigModel.prototype.style;
56
+ /** @type {?} */
54
57
  InfoAppConfigModel.prototype.topMenu;
55
58
  /** @type {?} */
56
59
  InfoAppConfigModel.prototype.enabledPrime;
@@ -2299,8 +2302,23 @@
2299
2302
  _this._plataforma.Config.ux = 2;
2300
2303
  if (_this._plataforma.Config.ux == 2)
2301
2304
  menuMin = 'false';
2302
- if (config.production)
2303
- _this._themeService.setTheme(activeTheme || 'default-theme');
2305
+ /** @type {?} */
2306
+ var cssFile = document.createElement('link');
2307
+ cssFile.href = _this._plataforma.Config.webapiUrl.replace(/\/api\/$/ig, '') + '/layout/temas.css';
2308
+ cssFile.type = 'text/css';
2309
+ cssFile.rel = 'stylesheet';
2310
+ document.head.appendChild(cssFile);
2311
+ if (_this._plataforma.Config.style != null) {
2312
+ /** @type {?} */
2313
+ var cssClient = document.createElement('link');
2314
+ cssClient.href = '/assets/' + _this._plataforma.Config.style + '/style.css';
2315
+ cssClient.type = 'text/css';
2316
+ cssClient.rel = 'stylesheet';
2317
+ document.head.appendChild(cssClient);
2318
+ }
2319
+ if (activeTheme == null || activeTheme == undefined)
2320
+ activeTheme = "_" + _this._plataforma.Config.ux + "-theme";
2321
+ _this._themeService.setTheme(activeTheme || 'default-theme');
2304
2322
  _this._themeService.setMenuMin(menuMin == 'true');
2305
2323
  _this._themeService.setModePrime(prime == 'true');
2306
2324
  r(config);