@stemy/ngx-utils 11.0.10 → 11.0.11

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.
@@ -780,6 +780,7 @@
780
780
  var CONFIG_SERVICE = new core.InjectionToken("config-service");
781
781
  var BASE_CONFIG = new core.InjectionToken("base-config");
782
782
  var SCRIPT_PARAMS = new core.InjectionToken("script-params");
783
+ var ROOT_ELEMENT = new core.InjectionToken("app-root-element");
783
784
  var ERROR_HANDLER = new core.InjectionToken("error-handler-callback");
784
785
  // --- Valued promise ---
785
786
  var ValuedPromise = /** @class */ (function (_super) {
@@ -3130,12 +3131,13 @@
3130
3131
  }());
3131
3132
 
3132
3133
  var ConfigService = /** @class */ (function () {
3133
- function ConfigService(http, universal, baseConfig, scriptParams) {
3134
+ function ConfigService(http, universal, rootElement, baseConfig, scriptParams) {
3134
3135
  var _this = this;
3135
3136
  if (baseConfig === void 0) { baseConfig = null; }
3136
3137
  if (scriptParams === void 0) { scriptParams = null; }
3137
3138
  this.http = http;
3138
3139
  this.universal = universal;
3140
+ this.rootElement = rootElement;
3139
3141
  for (var key in []) {
3140
3142
  Object.defineProperty(Array.prototype, key, {
3141
3143
  enumerable: false
@@ -3150,7 +3152,8 @@
3150
3152
  baseUrl = scriptSrc.substr(0, srcParts[0].lastIndexOf("/") + 1);
3151
3153
  }
3152
3154
  }
3153
- this.loadedConfig = Object.assign(!baseUrl ? {} : { baseUrl: baseUrl }, baseConfig || {});
3155
+ this.baseConfig = baseConfig || {};
3156
+ this.loadedConfig = Object.assign(!baseUrl ? {} : { baseUrl: baseUrl }, this.baseConfig);
3154
3157
  this.scriptParameters = scriptParams || {};
3155
3158
  this.loaderFunc = function () {
3156
3159
  _this.loader = _this.loader || new Promise(function (resolve, reject) {
@@ -3234,6 +3237,7 @@
3234
3237
  ConfigService.ctorParameters = function () { return [
3235
3238
  { type: http.HttpClient },
3236
3239
  { type: UniversalService },
3240
+ { type: undefined, decorators: [{ type: core.Inject, args: [ROOT_ELEMENT,] }] },
3237
3241
  { type: IConfiguration, decorators: [{ type: core.Optional }, { type: core.Inject, args: [BASE_CONFIG,] }] },
3238
3242
  { type: undefined, decorators: [{ type: core.Optional }, { type: core.Inject, args: [SCRIPT_PARAMS,] }] }
3239
3243
  ]; };
@@ -5859,6 +5863,10 @@
5859
5863
  provide: CONFIG_SERVICE,
5860
5864
  useExisting: (!config ? null : config.configService) || ConfigService
5861
5865
  },
5866
+ {
5867
+ provide: ROOT_ELEMENT,
5868
+ useValue: null
5869
+ },
5862
5870
  {
5863
5871
  provide: core.APP_INITIALIZER,
5864
5872
  useFactory: (!config ? null : config.initializeApp) || loadConfig,
@@ -5957,6 +5965,7 @@
5957
5965
  exports.PaginationMenuComponent = PaginationMenuComponent;
5958
5966
  exports.Point = Point;
5959
5967
  exports.PromiseService = PromiseService;
5968
+ exports.ROOT_ELEMENT = ROOT_ELEMENT;
5960
5969
  exports.Rect = Rect;
5961
5970
  exports.ReducePipe = ReducePipe;
5962
5971
  exports.ReflectUtils = ReflectUtils;