@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.
- package/bundles/stemy-ngx-utils.umd.js +13 -0
- package/bundles/stemy-ngx-utils.umd.js.map +1 -1
- package/esm2015/ngx-utils/common-types.js +1 -1
- package/esm2015/ngx-utils/services/config.service.js +14 -1
- package/fesm2015/stemy-ngx-utils.js +13 -0
- package/fesm2015/stemy-ngx-utils.js.map +1 -1
- package/ngx-utils/common-types.d.ts +2 -0
- package/ngx-utils/services/config.service.d.ts +1 -0
- package/package.json +1 -1
- package/stemy-ngx-utils.metadata.json +1 -1
|
@@ -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;
|