@stemy/ngx-utils 12.2.12 → 12.2.13

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.
@@ -3399,6 +3399,19 @@
3399
3399
  ConfigService.prototype.prepareConfig = function (config) {
3400
3400
  return Promise.resolve(config);
3401
3401
  };
3402
+ ConfigService.prototype.cloneRootElem = function () {
3403
+ if (this.rootElement instanceof HTMLElement) {
3404
+ var clone = this.rootElement.cloneNode(true);
3405
+ var children = Array.from(clone.childNodes);
3406
+ children.forEach(function (child) {
3407
+ if (child instanceof HTMLElement) {
3408
+ child.remove();
3409
+ }
3410
+ });
3411
+ return clone;
3412
+ }
3413
+ return this.rootElement.cloneNode(true);
3414
+ };
3402
3415
  ConfigService.prototype.prepareUrl = function (url, ending) {
3403
3416
  var _a;
3404
3417
  var project = !this.loadedConfig ? "" : this.loadedConfig.project;