@angular-extensions/elements
Advanced tools
Comparing version 12.5.0 to 12.6.0
@@ -544,2 +544,7 @@ (function (global, factory) { | ||
this.cdr = cdr; | ||
this.url = null; | ||
this.loadingTemplateRef = null; | ||
this.errorTemplateRef = null; | ||
this.isModule = false; // eslint-disable-line @angular-eslint/no-input-rename | ||
this.importMap = false; // eslint-disable-line @angular-eslint/no-input-rename | ||
this.viewRef = null; | ||
@@ -665,2 +670,8 @@ this.subscription = rxjs.Subscription.EMPTY; | ||
this.elementsLoaderService = elementsLoaderService; | ||
this.tag = null; | ||
this.url = null; // eslint-disable-line @angular-eslint/no-input-rename | ||
this.loadingTemplateRef = null; | ||
this.errorTemplateRef = null; | ||
this.isModule = false; // eslint-disable-line @angular-eslint/no-input-rename | ||
this.importMap = false; // eslint-disable-line @angular-eslint/no-input-rename | ||
this.viewRef = null; | ||
@@ -683,4 +694,4 @@ this.subscription = rxjs.Subscription.EMPTY; | ||
} | ||
var elementConfig = this.elementsLoaderService.getElementConfig(this.tag) || | ||
{}; | ||
var tag = this.tag; | ||
var elementConfig = this.elementsLoaderService.getElementConfig(tag) || {}; | ||
var options = this.elementsLoaderService.options; | ||
@@ -695,5 +706,5 @@ var loadingComponent = elementConfig.loadingComponent || options.loadingComponent; | ||
} | ||
var loadElement$ = rxjs.from(this.elementsLoaderService.loadElement(this.url, this.tag, this.isModule, this.importMap, elementConfig === null || elementConfig === void 0 ? void 0 : elementConfig.hooks)); | ||
var loadElement$ = rxjs.from(this.elementsLoaderService.loadElement(this.url, tag, this.isModule, this.importMap, elementConfig === null || elementConfig === void 0 ? void 0 : elementConfig.hooks)); | ||
this.subscription = loadElement$ | ||
.pipe(operators.mergeMap(function () { return customElements.whenDefined(_this.tag); })) | ||
.pipe(operators.mergeMap(function () { return customElements.whenDefined(tag); })) | ||
.subscribe({ | ||
@@ -705,3 +716,3 @@ next: function () { | ||
if (name === 'ax-lazy-element') { | ||
name = _this.tag; | ||
name = tag; | ||
} | ||
@@ -779,2 +790,4 @@ return _this.document.createElement(name); | ||
"use strict"; | ||
function createLazyElementRootGuard(rootOptions) { | ||
@@ -781,0 +794,0 @@ if (ngDevMode && rootOptions) { |
@@ -18,2 +18,8 @@ import { Directive, Inject, Input, PLATFORM_ID, } from '@angular/core'; | ||
this.elementsLoaderService = elementsLoaderService; | ||
this.tag = null; | ||
this.url = null; // eslint-disable-line @angular-eslint/no-input-rename | ||
this.loadingTemplateRef = null; | ||
this.errorTemplateRef = null; | ||
this.isModule = false; // eslint-disable-line @angular-eslint/no-input-rename | ||
this.importMap = false; // eslint-disable-line @angular-eslint/no-input-rename | ||
this.viewRef = null; | ||
@@ -35,4 +41,4 @@ this.subscription = Subscription.EMPTY; | ||
} | ||
const elementConfig = this.elementsLoaderService.getElementConfig(this.tag) || | ||
{}; | ||
const tag = this.tag; | ||
const elementConfig = this.elementsLoaderService.getElementConfig(tag) || {}; | ||
const options = this.elementsLoaderService.options; | ||
@@ -47,5 +53,5 @@ const loadingComponent = elementConfig.loadingComponent || options.loadingComponent; | ||
} | ||
const loadElement$ = from(this.elementsLoaderService.loadElement(this.url, this.tag, this.isModule, this.importMap, elementConfig === null || elementConfig === void 0 ? void 0 : elementConfig.hooks)); | ||
const loadElement$ = from(this.elementsLoaderService.loadElement(this.url, tag, this.isModule, this.importMap, elementConfig === null || elementConfig === void 0 ? void 0 : elementConfig.hooks)); | ||
this.subscription = loadElement$ | ||
.pipe(mergeMap(() => customElements.whenDefined(this.tag))) | ||
.pipe(mergeMap(() => customElements.whenDefined(tag))) | ||
.subscribe({ | ||
@@ -57,3 +63,3 @@ next: () => { | ||
if (name === 'ax-lazy-element') { | ||
name = this.tag; | ||
name = tag; | ||
} | ||
@@ -127,2 +133,2 @@ return this.document.createElement(name); | ||
}] } }); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibGF6eS1lbGVtZW50LWR5bmFtaWMuZGlyZWN0aXZlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZX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vb2tzXG4gICAgICApXG4gICAgKTtcblxuICAgIHRoaXMuc3Vic2NyaXB0aW9uID0gbG9hZEVsZW1lbnQkXG4gICAgICAucGlwZShtZXJnZU1hcCgoKSA9PiBjdXN0b21FbGVtZW50cy53aGVuRGVmaW5lZCh0aGlzLnRhZykpKVxuICAgICAgLnN1YnNjcmliZSh7XG4gICAgICAgIG5leHQ6ICgpID0+IHtcbiAgICAgICAgICB0aGlzLnZjci5jbGVhcigpO1xuICAgICAgICAgIGNvbnN0IG9yaWdpbmFsQ3JlYXRlRWxlbWVudCA9IHRoaXMucmVuZGVyZXIuY3JlYXRlRWxlbWVudDtcbiAgICAgICAgICB0aGlzLnJlbmRlcmVyLmNyZWF0ZUVsZW1lbnQgPSAobmFtZTogc3RyaW5nLCBuYW1lc3BhY2U6IHN0cmluZykgPT4ge1xuICAgICAgICAgICAgaWYgKG5hbWUgPT09ICdheC1sYXp5LWVsZW1lbnQnKSB7XG4gICAgICAgICAgICAgIG5hbWUgPSB0aGlzLnRhZztcbiAgICAgICAgICAgIH1cbiAgICAgICAgICAgIHJldHVybiB0aGlzLmRvY3VtZW50LmNyZWF0ZUVsZW1lbnQobmFtZSk7XG4gICAgICAgICAgfTtcbiAgICAgICAgICB0aGlzLnZpZXdSZWYgPSB0aGlzLnZjci5jcmVhdGVFbWJlZGRlZFZpZXcodGhpcy50ZW1wbGF0ZSk7XG4gICAgICAgICAgdGhpcy5yZW5kZXJlci5jcmVhdGVFbGVtZW50ID0gb3JpZ2luYWxDcmVhdGVFbGVtZW50O1xuICAgICAgICAgIHRoaXMuY2RyLm1hcmtGb3JDaGVjaygpO1xuICAgICAgICB9LFxuICAgICAgICBlcnJvcjogKGVycm9yKSA9PiB7XG4gICAgICAgICAgY29uc3QgZXJyb3JDb21wb25lbnQgPVxuICAgICAgICAgICAgZWxlbWVudENvbmZpZy5lcnJvckNvbXBvbmVudCB8fCBvcHRpb25zLmVycm9yQ29tcG9uZW50O1xuICAgICAgICAgIHRoaXMudm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mVudCk7XG4gICAgICAgICAgICB0aGlzLnZjci5jcmVhdGVDb21wb25lbnQoZmFjdG9yeSk7XG4gICAgICAgICAgICB0aGlzLmNkci5tYXJrRm9yQ2hlY2soKTtcbiAgICAgICAgICB9IGVsc2UgaWYgKG5nRGV2TW9kZSkge1xuICAgICAgICAgICAgY29uc29sZS5lcnJvcihcbiAgICAgICAgICAgICAgYCR7TE9HX1BSRUZJWH0gLSBMb2FkaW5nIG9mIGVsZW1lbnQgPCR7dGhpcy50YWd9PiBmYWlsZWQsIHBsZWFzZSBwcm92aWRlIDxuZy10ZW1wbGF0ZSAjZXJyb3I+TG9hZGluZyBmYWlsZWQuLi48L25nLXRlbXBsYXRlPiBhbmQgcmVmZXJlbmNlIGl0IGluICpheExhenlFbGVtZW50RHluYW1pYz1cImVycm9yVGVtcGxhdGU6IGVycm9yXCIgdG8gZGlzcGxheSBjdXN0b21pemVkIGVycm9yIG1lc3NhZ2UgaW4gcGxhY2Ugb2YgZWxlbWVudFxcblxcbmAsXG4gICAgICAgICAgICAgIGVycm9yXG4gICAgICAgICAgICApO1xuICAgICAgICAgIH1cbiAgICAgICAgfSxcbiAgICAgIH0pO1xuICB9XG5cbiAgbmdPbkRlc3Ryb3koKTogdm9pZCB7XG4gICAgdGhpcy5zdWJzY3JpcHRpb24udW5zdWJzY3JpYmUoKTtcbiAgfVxuXG4gIGRlc3Ryb3lFbWJlZGRlZFZpZXcoKSB7XG4gICAgaWYgKHRoaXMudmlld1JlZiAmJiAhdGhpcy52aWV3UmVmLmRlc3Ryb3llZCkge1xuICAgICAgdGhpcy52aWV3UmVmLmRldGFjaCgpO1xuICAgICAgdGhpcy52aWV3UmVmLmRlc3Ryb3koKTtcbiAgICAgIHRoaXMudmlld1JlZiA9IG51bGw7XG4gICAgfVxuICB9XG59XG4iXX0= |
@@ -16,2 +16,7 @@ import { Directive, Inject, Input, PLATFORM_ID, } from '@angular/core'; | ||
this.cdr = cdr; | ||
this.url = null; | ||
this.loadingTemplateRef = null; | ||
this.errorTemplateRef = null; | ||
this.isModule = false; // eslint-disable-line @angular-eslint/no-input-rename | ||
this.importMap = false; // eslint-disable-line @angular-eslint/no-input-rename | ||
this.viewRef = null; | ||
@@ -121,2 +126,2 @@ this.subscription = Subscription.EMPTY; | ||
}] } }); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibGF6eS1lbGVtZW50LmRpcmVjdGl2ZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2VsZW1lbnRzL3NyYy9saWIvbGF6eS1lbGVtZW50cy9sYXp5LWVsZW1lbnQvbGF6eS1lbGVtZW50LmRpcmVjdGl2ZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBR0wsU0FBUyxFQUVULE1BQU0sRUFDTixLQUFLLEVBSUwsV0FBVyxHQUlaLE1BQU0sZUFBZSxDQUFDO0FBQ3ZCLE9BQU8sRUFBRSxnQkFBZ0IsRUFBRSxNQUFNLGlCQUFpQixDQUFDO0FBQ25ELE9BQU8sRUFDTCx1QkFBdUIsRUFDdkIsZUFBZSxFQUNmLEtBQUssRUFDTCxJQUFJLEVBQ0osWUFBWSxHQUNiLE1BQU0sTUFBTSxDQUFDO0FBQ2QsT0FBTyxFQUFFLFVBQVUsRUFBRSxZQUFZLEVBQUUsUUFBUSxFQUFFLFNBQVMsRUFBRSxNQUFNLGdCQUFnQixDQUFDOzs7QUFPL0UsTUFBTSxVQUFVLEdBQUcsOEJBQThCLENBQUM7QUFLbEQsTUFBTSxPQUFPLG9CQUFvQjtJQVcvQixZQUMrQixVQUFrQixFQUN2QyxHQUFxQixFQUNyQixRQUEwQixFQUMxQixxQkFBZ0QsRUFDaEQsR0FBNkIsRUFDN0IsR0FBc0I7UUFMRCxlQUFVLEdBQVYsVUFBVSxDQUFRO1FBQ3ZDLFFBQUcsR0FBSCxH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ICAgICAgICB0aGlzLmlzTW9kdWxlLFxuICAgICAgICAgICAgICB0aGlzLmltcG9ydE1hcCxcbiAgICAgICAgICAgICAgZWxlbWVudENvbmZpZz8uaG9va3NcbiAgICAgICAgICAgIClcbiAgICAgICAgICApLnBpcGUoXG4gICAgICAgICAgICBjYXRjaEVycm9yKCgpID0+IHtcbiAgICAgICAgICAgICAgdGhpcy52Y3IuY2xlYXIoKTtcbiAgICAgICAgICAgICAgY29uc3QgZXJyb3JDb21wb25lbnQgPVxuICAgICAgICAgICAgICAgIGVsZW1lbnRDb25maWcuZXJyb3JDb21wb25lbnQgfHwgb3B0aW9ucy5lcnJvckNvbXBvbmVudDtcbiAgICAgICAgICAgICAgaWYgKHRoaXMuZXJyb3JUZW1wbGF0ZVJlZikge1xuICAgICAgICAgICAgICAgIHRoaXMudmNyLmNyZWF0ZUVtYmVkZGVkVmlldyh0aGlzLmVycm9yVGVtcGxhdGVSZWYpO1xuICAgICAgICAgICAgICAgIHRoaXMuY2RyLm1hcmtGb3JDaGVjaygpO1xuICAgICAgICAgICAgICB9IGVsc2UgaWYgKGVycm9yQ29tcG9uZW50KSB7XG4gICAgICAgICAgICAgICAgY29uc3QgZmFjdG9yeSA9XG4gICAgICAgICAgICAgICAgICB0aGlzLmNmci5yZXNvbHZlQ29tcG9uZW50RmFjdG9yeShlcnJvckNvbXBvbmVudCk7XG4gICAgICAgICAgICAgICAgdGhpcy52Y3IuY3JlYXRlQ29tcG9uZW50KGZhY3RvcnkpO1xuICAgICAgICAgICAgICAgIHRoaXMuY2RyLm1hcmtGb3JDaGVjaygpO1xuICAgICAgICAgICAgICB9IGVsc2UgaWYgKG5nRGV2TW9kZSkge1xuICAgICAgICAgICAgICAgIGNvbnNvbGUuZXJyb3IoXG4gICAgICAgICAgICAgICAgICBgJHtMT0dfUFJFRklYfSAtIExvYWRpbmcgb2YgZWxlbWVudCA8JHtlbGVtZW50VGFnfT4gZmFpbGVkLCBwbGVhc2UgcHJvdmlkZSA8bmctdGVtcGxhdGUgI2Vycm9yPkxvYWRpbmcgZmFpbGVkLi4uPC9uZy10ZW1wbGF0ZT4gYW5kIHJlZmVyZW5jZSBpdCBpbiAqYXhMYXp5RWxlbWVudD1cImVycm9yVGVtcGxhdGU6IGVycm9yXCIgdG8gZGlzcGxheSBjdXN0b21pemVkIGVycm9yIG1lc3NhZ2UgaW4gcGxhY2Ugb2YgZWxlbWVudGBcbiAgICAgICAgICAgICAgICApO1xuICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgIHJldHVybiBFTVBUWTtcbiAgICAgICAgICAgIH0pXG4gICAgICAgICAgKTtcbiAgICAgICAgfSksXG4gICAgICAgIG1lcmdlTWFwKCgpID0+IGN1c3RvbUVsZW1lbnRzLndoZW5EZWZpbmVkKGVsZW1lbnRUYWcpKVxuICAgICAgKVxuICAgICAgLnN1YnNjcmliZSh7XG4gICAgICAgIG5leHQ6ICgpID0+IHtcbiAgICAgICAgICB0aGlzLnZjci5jbGVhcigpO1xuICAgICAgICAgIHRoaXMudmlld1JlZiA9IHRoaXMudmNyLmNyZWF0ZUVtYmVkZGVkVmlldyh0aGlzLnRlbXBsYXRlKTtcbiAgICAgICAgICB0aGlzLmNkci5tYXJrRm9yQ2hlY2soKTtcbiAgICAgICAgfSxcbiAgICAgIH0pO1xuICB9XG59XG4iXX0= | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibGF6eS1lbGVtZW50LmRpcmVjdGl2ZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2VsZW1lbnRzL3NyYy9saWIvbGF6eS1lbGVtZW50cy9sYXp5LWVsZW1lbnQvbGF6eS1lbGVtZW50LmRpcmVjdGl2ZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBR0wsU0FBUyxFQUVULE1BQU0sRUFDTixLQUFLLEVBSUws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QgdGhlIHVybCBpdHNlbGYgKHdoZW4gdGhlIGB1cmxgIGJpbmRpbmcgaXMgcHJvdmlkZWQpLlxuICAgICAgICAvLyBUaGUgYGFuaW1hdGlvbkZyYW1lU2NoZWR1bGVyYCBpcyB1c2VkIHRvIHByZXZlbnQgdGhlIGZyYW1lIGRyb3AuXG4gICAgICAgIGRlYm91bmNlVGltZSgwLCBhbmltYXRpb25GcmFtZVNjaGVkdWxlciksXG4gICAgICAgIHN3aXRjaE1hcCgodXJsKSA9PiB7XG4gICAgICAgICAgaWYgKHRoaXMubG9hZGluZ1RlbXBsYXRlUmVmKSB7XG4gICAgICAgICAgICB0aGlzLnZjci5jcmVhdGVFbWJlZGRlZFZpZXcodGhpcy5sb2FkaW5nVGVtcGxhdGVSZWYpO1xuICAgICAgICAgIH0gZWxzZSBpZiAobG9hZGluZ0NvbXBvbmVudCkge1xuICAgICAgICAgICAgY29uc3QgZmFjdG9yeSA9IHRoaXMuY2ZyLnJlc29sdmVDb21wb25lbnRGYWN0b3J5KGxvYWRpbmdDb21wb25lbnQpO1xuICAgICAgICAgICAgdGhpcy52Y3IuY3JlYXRlQ29tcG9uZW50KGZhY3RvcnkpO1xuICAgICAgICAgIH1cblxuICAgICAgICAgIHJldHVybiBmcm9tKFxuICAgICAgICAgICAgdGhpcy5lbGVtZW50c0xvYWRlclNlcnZpY2UubG9hZEVsZW1lbnQoXG4gICAgICAgICAgICAgIHVybCxcbiAgICAgICAgICAgICAgZWxlbWVudFRhZyxcbiAgICAgICAgICAgICAgdGhpcy5pc01vZHVsZSxcbiAgICAgICAgICAgICAgdGhpcy5pbXBvcnRNYXAsXG4gICAgICAgICAgICAgIGVsZW1lbnRDb25maWc/Lmhvb2tzXG4gICAgICAgICAgICApXG4gICAgICAgICAgKS5waXBlKFxuICAgICAgICAgICAgY2F0Y2hFcnJvcigoKSA9PiB7XG4gICAgICAgICAgICAgIHRoaXMudmNyLmNsZWFyKCk7XG4gICAgICAgICAgICAgIGNvbnN0IG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iAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICByZXR1cm4gRU1QVFk7XG4gICAgICAgICAgICB9KVxuICAgICAgICAgICk7XG4gICAgICAgIH0pLFxuICAgICAgICBtZXJnZU1hcCgoKSA9PiBjdXN0b21FbGVtZW50cy53aGVuRGVmaW5lZChlbGVtZW50VGFnKSlcbiAgICAgIClcbiAgICAgIC5zdWJzY3JpYmUoe1xuICAgICAgICBuZXh0OiAoKSA9PiB7XG4gICAgICAgICAgdGhpcy52Y3IuY2xlYXIoKTtcbiAgICAgICAgICB0aGlzLnZpZXdSZWYgPSB0aGlzLnZjci5jcmVhdGVFbWJlZGRlZFZpZXcodGhpcy50ZW1wbGF0ZSk7XG4gICAgICAgICAgdGhpcy5jZHIubWFya0ZvckNoZWNrKCk7XG4gICAgICAgIH0sXG4gICAgICB9KTtcbiAgfVxufVxuIl19 |
@@ -165,2 +165,2 @@ import { __awaiter } from "tslib"; | ||
}] }]; } }); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibGF6eS1lbGVtZW50cy1sb2FkZXIuc2VydmljZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2VsZW1lbnRzL3NyYy9saWIvbGF6eS1lbGVtZW50cy9sYXp5LWVsZW1lbnRzLWxvYWRlci5zZXJ2aWNlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxPQUFPLEVBRUwsTUFBTSxFQUNOLFVBQVUsRUFDVixRQUFRLEdBRVQsTUFBTSxlQUFlLENBQUM7QUFHdkIsT0FBTyxFQUNMLHlCQUF5QixFQUN6QixzQkFBc0IsR0FFdkIsTUFBTSx3QkFBd0IsQ0FBQzs7QUFFaEMsTUFBTSxVQUFVLEdBQUcsOEJBQThCLENBQUM7QUF3QmxELE1BQU0sT0FBTyx5QkFBeUI7SUFHcEMsWUFDVSxZQUEwQixFQU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IHtcbiAgICBpZiAoIW9wdGlvbnMpIHtcbiAgICAgIHRoaXMub3B0aW9ucyA9IHt9O1xuICAgIH1cbiAgfVxuXG4gIGFkZENvbmZpZ3MobmV3Q29uZmlnczogRWxlbWVudENvbmZpZ1tdKSB7XG4gICAgbmV3Q29uZmlncy5mb3JFYWNoKChuZXdDb25maWcpID0+IHtcbiAgICAgIGNvbnN0IGV4aXN0aW5nQ29uZmlnID0gdGhpcy5nZXRFbGVtZW50Q29uZmlnKG5ld0NvbmZpZy50YWcpO1xuICAgICAgaWYgKGV4aXN0aW5nQ29uZmlnKSB7XG4gICAgICAgIG5nRGV2TW9kZSAmJlxuICAgICAgICAgIGNvbnNvbGUud2FybihcbiAgICAgICAgICAgIGAke0xPR19QUkVGSVh9IC0gRWxlbWVudENvbmZpZyBmb3IgdGFnICcke25ld0NvbmZpZy50YWd9JyB3YXMgcHJldmlvdXNseSBhZGRlZCwgaXQgd2lsbCBub3QgYmUgYWRkZWQgbXVsdGlwbGUgdGltZXMsIGNvbnRpbnVlLi4uYFxuICAgICAgICAgICk7XG4gICAgICB9IGVsc2Uge1xuICAgICAgICBuZXdDb25maWcuaXNBZGRlZCA9IHRydWU7XG4gICAgICAgIHRoaXMuY29uZmlncy5wdXNoKG5ld0NvbmZpZyk7XG4gICAgICAgIGNvbnN0IHNob3VsZFByZWxvYWQgPVxuICAgICAgICAgIG5ld0NvbmZpZy5wcmVsb2FkICE9PSB1bmRlZmluZWRcbiAgICAgICAgICAgID8gbmV3Q29uZmlnLnByZWxvYWRcbiAgICAgICAgICAgIDogdGhpcy5vcHRpb25zLnByZWxvYWQ7XG4gICAgICAgIGlmIChzaG91bGRQcmVsb2FkKSB7XG4gICAgICAgICAgdGhpcy5sb2FkRWxlbWVudChcbiAgICAgICAgICAgIG5ld0NvbmZpZy51cmwsXG4gICAgICAgICAgICBuZXdDb25maWcudGFnLFxuICAgICAgICAgICAgbmV3Q29uZmlnLmlzTW9kdWxlLFxuICAgICAgICAgICAgbm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cHRpb25hbCgpXG4gICAgQEluamVjdChMQVpZX0VMRU1FTlRfUk9PVF9PUFRJT05TKVxuICAgIHB1YmxpYyBvcHRpb25zOiBMYXp5RWxlbWVudFJvb3RPcHRpb25zXG4gICkge1xuICAgIGlmICghb3B0aW9ucykge1xuICAgICAgdGhpcy5vcHRpb25zID0ge307XG4gICAgfVxuICB9XG5cbiAgYWRkQ29uZmlncyhuZXdDb25maWdzOiBFbGVtZW50Q29uZmlnW10pIHtcbiAgICBuZXdDb25maWdzLmZvckVhY2goKG5ld0NvbmZpZykgPT4ge1xuICAgICAgY29uc3QgZXhpc3RpbmdDb25maWcgPSB0aGlzLmdldEVsZW1lbnRDb25maWcobmV3Q29uZmlnLnRhZyk7XG4gICAgICBpZiAoZXhpc3RpbmdDb25maWcpIHtcbiAgICAgICAgbmdEZXZNb2RlICYmXG4gICAgICAgICAgY29uc29sZS53YXJuKFxuICAgICAgICAgICAgYCR7TE9HX1BSRUZJWH0gLSBFbGVtZW50Q29uZmlnIGZvciB0YWcgJyR7bmV3Q29uZmlnLnRhZ30nIHdhcyBwcmV2aW91c2x5IGFkZGVkLCBpdCB3aWxsIG5vdCBiZSBhZGRlZCBtdWx0aXBsZSB0aW1lcywgY29udGludWUuLi5gXG4gICAgICAgICAgKTtcbiAgICAgIH0gZWxzZSB7XG4gICAgICAgIG5ld0NvbmZpZy5pc0FkZGVkID0gdHJ1ZTtcbiAgICAgICAgdGhpcy5jb25maWdzLnB1c2gobmV3Q29uZmlnKTtcbiAgICAgICAgY29uc3Qgc2hvdWxkUHJlbG9hZCA9XG4gICAgICAgICAgbmV3Q29uZmlnLnByZWxvYWQgIT09IHVuZGVmaW5lZFxuICAgICAgICAgICAgPyBuZXdDb25maWcucHJlbG9hZFxuICAgICAgICAgICAgOiB0aGlzLm9wdGlvbnMucHJlbG9hZDtcbiAgICAgICAgaWYgKHNob3VsZFByZWxvYWQpIHtcbiAgICAgICAgICB0aGlzLmxvYWRFbGVtZW50KFxuICAgICAgICAgICAgbmV3Q29uZmlnLnVybCxcbiAgICAgICAgICAgIG5ld0NvbmZpZy50YWcsXG4gICAgICAgICAgICBuZXdDb25maWcuaXNNb2R1bGUsXG4gICAgICAgICAgICBuZXdDb25maWcuaW1wb3J0TWFwLFxuICAgICAgICAgICAgbmV3Q29uZmlnLmhvb2tzXG4gICAgICAgICAgKTtcbiAgICAgICAgfVxuICAgICAgfVxuICAgIH0pO1xuICB9XG5cbiAgZ2V0RWxlbWVudENvbmZpZyh0YWc6IHN0cmluZyk6IEVsZW1lbnRDb25maWcgfCB1bmRlZmluZWQge1xuICAgIHJldHVybiB0aGlzLmNvbmZpZ3MuZmluZCgoY29uZmlnKSA9PiBjb25maWcudGFnID09PSB0YWcpO1xuICB9XG5cbiAgcHJlbG9hZCh0YWdzPzogc3RyaW5nW10pIHtcbiAgICBsZXQgY29uZmlncyA9IHRoaXMuY29uZmlncztcbiAgICBpZiAodGFncykge1xuICAgICAgY29uZmlncyA9IHRoaXMuY29uZmlncy5maWx0ZXIoKGNvbmZpZykgPT4gdGFncy5pbmNsdWRlcyhjb25maWcudGFnKSk7XG4gICAgfVxuICAgIGNvbmZpZ3MuZm9yRWFjaCgoY29uZmlnKSA9PlxuICAgICAgdGhpcy5sb2FkRWxlbWVudChcbiAgICAgICAgY29uZmlnLnVybCxcbiAgICAgICAgY29uZmlnLnRhZyxcbiAgICAgICAgY29uZmlnLmlzTW9kdWxlLFxuICAgICAgICBjb25maWcuaW1wb3J0TWFwLFxuICAgICAgICBjb25maWcuaG9va3NcbiAgICAgIClcbiAgICApO1xuICB9XG5cbiAgYXN5bmMgbG9hZEVsZW1lbnQoXG4gICAgdXJsOiBzdHJpbmcgfCBudWxsLFxuICAgIHRhZzogc3RyaW5nLFxuICAgIGlzTW9kdWxlPzogYm9vbGVhbixcbiAgICBpbXBvcnRNYXA/OiBib29sZWFuLFxuICAgIGhvb2tzQ29uZmlnPzogSG9va3NDb25maWdcbiAgKTogUHJvbWlzZTx2b2lkPiB7X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ICB9XG5cbiAgcHJpdmF0ZSBhc3luYyByZXNvbHZlSW1wb3J0TWFwKHVybDogc3RyaW5nKSB7XG4gICAgY29uc3QgU3lzdGVtID0gKHdpbmRvdyBhcyBhbnkpLlN5c3RlbTtcbiAgICBpZiAoU3lzdGVtKSB7XG4gICAgICBhd2FpdCBTeXN0ZW0ucHJlcGFyZUltcG9ydCgpO1xuICAgICAgdXJsID0gU3lzdGVtLnJlc29sdmUodXJsKTtcbiAgICB9IGVsc2UgaWYgKG5nRGV2TW9kZSkge1xuICAgICAgdGhyb3cgbmV3IEVycm9yKFxuICAgICAgICBgJHtMT0dfUFJFRklYfSAtIGltcG9ydE1hcCBmZWF0dXJlIGRlcGVuZHMgb24gU3lzdGVtSlMgbGlicmFyeSB0byBiZSBnbG9iYWxseSBsb2FkZWQgYnV0IG5vbmUgd2FzIGZvdW5kLCB0aHVzICcke3VybH0nIGNhbid0IGJlIHJlc29sdmVkLiBZb3Ugc2hvdWxkIGVpdGhlciBsb2FkIFN5c3RlbUpTIG9yIHJlbW92ZSB0aGUgaW1wb3J0TWFwIGZsYWcuYFxuICAgICAgKTtcbiAgICB9XG4gICAgcmV0dXJuIHVybDtcbiAgfVxufVxuXG5pbnRlcmZhY2UgTm90aWZpZXIge1xuICByZXNvbHZlOiAoKSA9PiB2b2lkO1xuICByZWplY3Q6IChlcnJvcjogYW55KSA9PiB2b2lkO1xufVxuIl19 |
@@ -9,2 +9,2 @@ import { InjectionToken } from '@angular/core'; | ||
}); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibGF6eS1lbGVtZW50cy50b2tlbnMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9lbGVtZW50cy9zcmMvbGliL2xhenktZWxlbWVudHMvbGF6eS1lbGVtZW50cy50b2tlbnMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTy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kdWN0aW9uKS4gVGhpcyBpcyBob3cgQW5ndWxhciBkb2VzIHRyZWUtc2hha2luZyBpbnRlcm5hbGx5LlxuICpcbiAqIEBpbnRlcm5hbFxuICovXG5kZWNsYXJlIGNvbnN0IG5nRGV2TW9kZTogYm9vbGVhbjtcbiJdfQ== |
@@ -186,2 +186,7 @@ import * as i0 from '@angular/core'; | ||
this.cdr = cdr; | ||
this.url = null; | ||
this.loadingTemplateRef = null; | ||
this.errorTemplateRef = null; | ||
this.isModule = false; // eslint-disable-line @angular-eslint/no-input-rename | ||
this.importMap = false; // eslint-disable-line @angular-eslint/no-input-rename | ||
this.viewRef = null; | ||
@@ -303,2 +308,8 @@ this.subscription = Subscription.EMPTY; | ||
this.elementsLoaderService = elementsLoaderService; | ||
this.tag = null; | ||
this.url = null; // eslint-disable-line @angular-eslint/no-input-rename | ||
this.loadingTemplateRef = null; | ||
this.errorTemplateRef = null; | ||
this.isModule = false; // eslint-disable-line @angular-eslint/no-input-rename | ||
this.importMap = false; // eslint-disable-line @angular-eslint/no-input-rename | ||
this.viewRef = null; | ||
@@ -320,4 +331,4 @@ this.subscription = Subscription.EMPTY; | ||
} | ||
const elementConfig = this.elementsLoaderService.getElementConfig(this.tag) || | ||
{}; | ||
const tag = this.tag; | ||
const elementConfig = this.elementsLoaderService.getElementConfig(tag) || {}; | ||
const options = this.elementsLoaderService.options; | ||
@@ -332,5 +343,5 @@ const loadingComponent = elementConfig.loadingComponent || options.loadingComponent; | ||
} | ||
const loadElement$ = from(this.elementsLoaderService.loadElement(this.url, this.tag, this.isModule, this.importMap, elementConfig === null || elementConfig === void 0 ? void 0 : elementConfig.hooks)); | ||
const loadElement$ = from(this.elementsLoaderService.loadElement(this.url, tag, this.isModule, this.importMap, elementConfig === null || elementConfig === void 0 ? void 0 : elementConfig.hooks)); | ||
this.subscription = loadElement$ | ||
.pipe(mergeMap(() => customElements.whenDefined(this.tag))) | ||
.pipe(mergeMap(() => customElements.whenDefined(tag))) | ||
.subscribe({ | ||
@@ -342,3 +353,3 @@ next: () => { | ||
if (name === 'ax-lazy-element') { | ||
name = this.tag; | ||
name = tag; | ||
} | ||
@@ -413,2 +424,4 @@ return this.document.createElement(name); | ||
"use strict"; | ||
function createLazyElementRootGuard(rootOptions) { | ||
@@ -415,0 +428,0 @@ if (ngDevMode && rootOptions) { |
@@ -13,8 +13,8 @@ import { ChangeDetectorRef, ComponentFactoryResolver, OnDestroy, OnInit, Renderer2, TemplateRef, ViewContainerRef } from '@angular/core'; | ||
private elementsLoaderService; | ||
tag: string; | ||
url: string; | ||
loadingTemplateRef: TemplateRef<any>; | ||
errorTemplateRef: TemplateRef<any>; | ||
isModule: boolean | undefined; | ||
importMap: boolean | undefined; | ||
tag: string | null; | ||
url: string | null; | ||
loadingTemplateRef: TemplateRef<any> | null; | ||
errorTemplateRef: TemplateRef<any> | null; | ||
isModule: boolean; | ||
importMap: boolean; | ||
private viewRef; | ||
@@ -21,0 +21,0 @@ private subscription; |
@@ -11,7 +11,7 @@ import { ChangeDetectorRef, ComponentFactoryResolver, OnChanges, OnDestroy, OnInit, SimpleChanges, TemplateRef, ViewContainerRef } from '@angular/core'; | ||
private cdr; | ||
url: string; | ||
loadingTemplateRef: TemplateRef<any>; | ||
errorTemplateRef: TemplateRef<any>; | ||
isModule: boolean | undefined; | ||
importMap: boolean | undefined; | ||
url: string | null; | ||
loadingTemplateRef: TemplateRef<any> | null; | ||
errorTemplateRef: TemplateRef<any> | null; | ||
isModule: boolean; | ||
importMap: boolean; | ||
private viewRef; | ||
@@ -18,0 +18,0 @@ private subscription; |
@@ -28,5 +28,5 @@ import { ErrorHandler, Type } from '@angular/core'; | ||
addConfigs(newConfigs: ElementConfig[]): void; | ||
getElementConfig(tag: string): ElementConfig; | ||
getElementConfig(tag: string): ElementConfig | undefined; | ||
preload(tags?: string[]): void; | ||
loadElement(url: string, tag: string, isModule?: boolean, importMap?: boolean, hooksConfig?: HooksConfig): Promise<void>; | ||
loadElement(url: string | null, tag: string, isModule?: boolean, importMap?: boolean, hooksConfig?: HooksConfig): Promise<void>; | ||
private addElement; | ||
@@ -33,0 +33,0 @@ private hasElement; |
@@ -8,6 +8,6 @@ import { InjectionToken } from '@angular/core'; | ||
export declare const LAZY_ELEMENTS_REGISTRY: InjectionToken<LazyElementsRegistry>; | ||
export interface LazyElementsRegistry { | ||
get: (url: string) => Promise<void>; | ||
set: (url: string, notifier: Promise<void>) => void; | ||
export interface LazyElementsRegistry extends Map<string, Promise<void>> { | ||
get: (url: string) => Promise<void> | undefined; | ||
set: (url: string, notifier: Promise<void>) => this; | ||
has: (url: string) => boolean; | ||
} |
{ | ||
"name": "@angular-extensions/elements", | ||
"version": "12.5.0", | ||
"version": "12.6.0", | ||
"peerDependencies": { | ||
@@ -5,0 +5,0 @@ "@angular/common": ">=12", |
@@ -123,1 +123,15 @@ <p align="center"> | ||
<!-- ALL-CONTRIBUTORS-LIST:END --> | ||
## Sponsors | ||
> Are you currently working in an enterprise environment with many applications and found yourself thinking you could provide so much more value only if you had better overview to plan, track progress and just get things done? | ||
Try _[Omniboard](https://omniboard.dev), the best tool for lead software engineers and architects_ | ||
that helps them to get an overview to drive change by querying and tracking all their code bases! | ||
The free plan let's you get a full overview of all your projects with your first dashboard, tracking up to 3 different things! | ||
<a href="http://www.youtube.com/watch?feature=player_embedded&v=uDnNE9FuLwc" target="_blank"> | ||
<img src="https://app.omniboard.dev/assets/videos/omniboard-getting-started.png" | ||
alt="Omniboard.dev - getting started in less than 5 minutes" width="100%" /> | ||
</a> |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
302448
2300
137