@ngneat/overview
Advanced tools
Comparing version
@@ -45,3 +45,3 @@ (function (global, factory) { | ||
selector: 'dynamic-content', | ||
template: "\n <ng-container [ngSwitch]=\"contentType\">\n <div *ngSwitchCase=\"ContentType.String\" [innerHTML]=\"content\"></div>\n\n <ng-container *ngSwitchCase=\"ContentType.Template\">\n <ng-container *ngTemplateOutlet=\"content; context: context\"></ng-container>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"ContentType.Component\">\n <ng-container *ngComponentOutlet=\"content;injector: injector;\"></ng-container>\n </ng-container>\n </ng-container>\n ", | ||
template: "\n <ng-container [ngSwitch]=\"contentType\">\n <div *ngSwitchCase=\"ContentType.String\" [innerHTML]=\"content\"></div>\n\n <ng-container *ngSwitchCase=\"ContentType.Template\">\n <ng-container *ngTemplateOutlet=\"content; context: context\"></ng-container>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"ContentType.Component\">\n <ng-container *ngComponentOutlet=\"content; injector: injector\"></ng-container>\n </ng-container>\n </ng-container>\n ", | ||
changeDetection: i0.ChangeDetectionStrategy.OnPush, | ||
@@ -48,0 +48,0 @@ styles: ["\n :host {\n display: block;\n }\n "] |
@@ -1,2 +0,2 @@ | ||
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@angular/common"),require("@angular/core"),require("rxjs"),require("rxjs/operators")):"function"==typeof define&&define.amd?define("@ngneat/overview",["exports","@angular/common","@angular/core","rxjs","rxjs/operators"],e):e(((t="undefined"!=typeof globalThis?globalThis:t||self).ngneat=t.ngneat||{},t.ngneat.overview={}),t.ng.common,t.ng.core,t.rxjs,t.rxjs.operators)}(this,(function(t,e,n,o,r){"use strict";var i;!function(t){t[t.String=0]="String",t[t.Template=1]="Template",t[t.Component=2]="Component"}(i||(i={}));var s=function(){function t(){this.ContentType=i,this.contentType=i.String}return Object.defineProperty(t.prototype,"content",{get:function(){return this._content},set:function(t){this._content=t,this.resolveContentType()},enumerable:!1,configurable:!0}),t.prototype.resolveContentType=function(){"string"==typeof this.content?this.contentType=i.String:this.content instanceof n.TemplateRef?this.contentType=i.Template:this.contentType=i.Component},t}();s.decorators=[{type:n.Component,args:[{selector:"dynamic-content",template:'\n <ng-container [ngSwitch]="contentType">\n <div *ngSwitchCase="ContentType.String" [innerHTML]="content"></div>\n\n <ng-container *ngSwitchCase="ContentType.Template">\n <ng-container *ngTemplateOutlet="content; context: context"></ng-container>\n </ng-container>\n\n <ng-container *ngSwitchCase="ContentType.Component">\n <ng-container *ngComponentOutlet="content;injector: injector;"></ng-container>\n </ng-container>\n </ng-container>\n ',changeDetection:n.ChangeDetectionStrategy.OnPush,styles:["\n :host {\n display: block;\n }\n "]}]}],s.propDecorators={content:[{type:n.Input}],context:[{type:n.Input}],injector:[{type:n.Input}]};var c=function(){};c.decorators=[{type:n.NgModule,args:[{imports:[e.CommonModule],declarations:[s],exports:[s]}]}];var p=function(){function t(t,e){this.defaultTpl=t,this.vcr=e}return Object.defineProperty(t.prototype,"templateOrStringContext",{set:function(t){this.context=t},enumerable:!1,configurable:!0}),t.prototype.ngOnInit=function(){var t=this.content instanceof n.TemplateRef?this.content:this.defaultTpl;this.vcr.createEmbeddedView(t,this.context)},t}();p.decorators=[{type:n.Directive,args:[{selector:"[templateOrString]"}]}],p.ctorParameters=function(){return[{type:n.TemplateRef},{type:n.ViewContainerRef}]},p.propDecorators={templateOrStringContext:[{type:n.Input}],content:[{type:n.Input,args:["templateOrString"]}]};var a=function(){};a.decorators=[{type:n.NgModule,args:[{declarations:[p],exports:[p]}]}];var u=function(){function t(){this.outlets=new o.BehaviorSubject(""),this.asObservable=this.outlets.asObservable(),this.ports=new Map}return t.prototype.outlet$=function(t){var e=this;return this.asObservable.pipe(r.filter((function(e){return e===t})),r.map((function(t){return e.ports.get(t)})))},t.prototype.newOutlet=function(t){this.outlets.next(t)},t}();u.ɵprov=n.ɵɵdefineInjectable({factory:function(){return new u},token:u,providedIn:"root"}),u.decorators=[{type:n.Injectable,args:[{providedIn:"root"}]}];var f=function(){function t(t,e){this.vcr=t,this.service=e}return t.prototype.ngOnInit=function(){this.service.ports.set(this.teleportOutlet,this.vcr),this.service.newOutlet(this.teleportOutlet)},t.prototype.ngOnDestroy=function(){this.service.ports.delete(this.teleportOutlet)},t}();f.decorators=[{type:n.Directive,args:[{selector:"[teleportOutlet]"}]}],f.ctorParameters=function(){return[{type:n.ViewContainerRef},{type:u}]},f.propDecorators={teleportOutlet:[{type:n.Input}]};var l=function(){function t(t,e){this.tpl=t,this.service=e}return t.prototype.ngOnInit=function(){var t=this;this.subscription=this.service.outlet$(this.teleportTo).subscribe((function(e){e&&(t.viewRef=e.createEmbeddedView(t.tpl))}))},t.prototype.ngOnDestroy=function(){var t,e;null===(t=this.subscription)||void 0===t||t.unsubscribe(),null===(e=this.viewRef)||void 0===e||e.destroy()},t}();l.decorators=[{type:n.Directive,args:[{selector:"[teleportTo]"}]}],l.ctorParameters=function(){return[{type:n.TemplateRef},{type:u}]},l.propDecorators={teleportTo:[{type:n.Input}]};var h=function(){};h.decorators=[{type:n.NgModule,args:[{declarations:[l,f],exports:[l,f]}]}];var g=function(){function t(t){this.value=t}return t.prototype.getElement=function(){return this.value},t.prototype.detectChanges=function(){},t.prototype.destroy=function(){},t}(),y=function(){function t(t){this.args=t;var e=this.args.resolver.resolveComponentFactory(this.args.component);this.args.vcr?this.compRef=this.args.vcr.createComponent(e,this.args.vcr.length,t.injector||this.args.vcr.injector):(this.compRef=e.create(this.args.injector),this.args.appRef.attachView(this.compRef.hostView))}return Object.defineProperty(t.prototype,"ref",{get:function(){return this.compRef},enumerable:!1,configurable:!0}),t.prototype.setInput=function(t,e){return this.compRef.instance[t]=e,this},t.prototype.setInputs=function(t){var e=this;return Object.keys(t).forEach((function(n){e.compRef.instance[n]=t[n]})),this},t.prototype.detectChanges=function(){return this.compRef.hostView.detectChanges(),this},t.prototype.appendTo=function(t){return t.appendChild(this.getElement()),this},t.prototype.removeFrom=function(t){return t.removeChild(this.getElement()),this},t.prototype.getRawContent=function(){return this.getElement().outerHTML},t.prototype.getElement=function(){return this.compRef.location.nativeElement},t.prototype.destroy=function(){this.compRef.destroy(),!this.args.vcr&&this.args.appRef.detachView(this.compRef.hostView),this.compRef=null},t}();Object.create;function v(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var o,r,i=n.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(o=i.next()).done;)s.push(o.value)}catch(t){r={error:t}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return s}Object.create;var d=function(){function t(t){this.args=t,this.wrapper=null,this.args.vcr?(this.viewRef=this.args.vcr.createEmbeddedView(this.args.tpl,this.args.context||{}),this.viewRef.detectChanges()):(this.viewRef=this.args.tpl.createEmbeddedView(this.args.context||{}),this.viewRef.detectChanges(),this.args.appRef.attachView(this.viewRef))}return t.prototype.detectChanges=function(){this.viewRef.detectChanges()},t.prototype.getElement=function(){var t,e=this.viewRef.rootNodes;return 1===e.length&&e[0]===Node.ELEMENT_NODE?this.element=e[0]:(this.element=document.createElement("div"),(t=this.element).append.apply(t,function(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(v(arguments[e]));return t}(e))),this.element},t.prototype.destroy=function(){1!==this.viewRef.rootNodes[0]&&(this.element.parentNode.removeChild(this.element),this.element=null),this.args.vcr||this.args.appRef.detachView(this.viewRef),this.viewRef.destroy(),this.viewRef=null},t}();function m(t){return t instanceof n.TemplateRef}function R(t){return"function"==typeof t}function w(t){return"string"==typeof t}var C=function(){function t(t,e,n){this.resolver=t,this.injector=e,this.appRef=n}return t.prototype.createComponent=function(t,e){return void 0===e&&(e={}),new y({component:t,vcr:e.vcr,injector:e.injector||this.injector,appRef:this.appRef,resolver:this.resolver})},t.prototype.createTemplate=function(t,e){return void 0===e&&(e={}),new d({vcr:e.vcr,appRef:this.appRef,tpl:t,context:e.context})},t.prototype.createView=function(t,e){if(void 0===e&&(e={}),m(t))return this.createTemplate(t,e);if(R(t))return this.createComponent(t,e);if(w(t))return new g(t);throw"Type of content is not supported"},t}();C.ɵprov=n.ɵɵdefineInjectable({factory:function(){return new C(n.ɵɵinject(n.ComponentFactoryResolver),n.ɵɵinject(n.INJECTOR),n.ɵɵinject(n.ApplicationRef))},token:C,providedIn:"root"}),C.decorators=[{type:n.Injectable,args:[{providedIn:"root"}]}],C.ctorParameters=function(){return[{type:n.ComponentFactoryResolver},{type:n.Injector},{type:n.ApplicationRef}]},t.CompRef=y,t.DynamicContentModule=c,t.StringRef=g,t.TeleportModule=h,t.TemplateOrStringModule=a,t.TplRef=d,t.ViewService=C,t.isComponent=R,t.isString=w,t.isTemplateRef=m,t.ɵa=s,t.ɵb=p,t.ɵc=l,t.ɵd=u,t.ɵe=f,Object.defineProperty(t,"__esModule",{value:!0})})); | ||
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@angular/common"),require("@angular/core"),require("rxjs"),require("rxjs/operators")):"function"==typeof define&&define.amd?define("@ngneat/overview",["exports","@angular/common","@angular/core","rxjs","rxjs/operators"],e):e(((t="undefined"!=typeof globalThis?globalThis:t||self).ngneat=t.ngneat||{},t.ngneat.overview={}),t.ng.common,t.ng.core,t.rxjs,t.rxjs.operators)}(this,(function(t,e,n,o,r){"use strict";var i;!function(t){t[t.String=0]="String",t[t.Template=1]="Template",t[t.Component=2]="Component"}(i||(i={}));var s=function(){function t(){this.ContentType=i,this.contentType=i.String}return Object.defineProperty(t.prototype,"content",{get:function(){return this._content},set:function(t){this._content=t,this.resolveContentType()},enumerable:!1,configurable:!0}),t.prototype.resolveContentType=function(){"string"==typeof this.content?this.contentType=i.String:this.content instanceof n.TemplateRef?this.contentType=i.Template:this.contentType=i.Component},t}();s.decorators=[{type:n.Component,args:[{selector:"dynamic-content",template:'\n <ng-container [ngSwitch]="contentType">\n <div *ngSwitchCase="ContentType.String" [innerHTML]="content"></div>\n\n <ng-container *ngSwitchCase="ContentType.Template">\n <ng-container *ngTemplateOutlet="content; context: context"></ng-container>\n </ng-container>\n\n <ng-container *ngSwitchCase="ContentType.Component">\n <ng-container *ngComponentOutlet="content; injector: injector"></ng-container>\n </ng-container>\n </ng-container>\n ',changeDetection:n.ChangeDetectionStrategy.OnPush,styles:["\n :host {\n display: block;\n }\n "]}]}],s.propDecorators={content:[{type:n.Input}],context:[{type:n.Input}],injector:[{type:n.Input}]};var c=function(){};c.decorators=[{type:n.NgModule,args:[{imports:[e.CommonModule],declarations:[s],exports:[s]}]}];var p=function(){function t(t,e){this.defaultTpl=t,this.vcr=e}return Object.defineProperty(t.prototype,"templateOrStringContext",{set:function(t){this.context=t},enumerable:!1,configurable:!0}),t.prototype.ngOnInit=function(){var t=this.content instanceof n.TemplateRef?this.content:this.defaultTpl;this.vcr.createEmbeddedView(t,this.context)},t}();p.decorators=[{type:n.Directive,args:[{selector:"[templateOrString]"}]}],p.ctorParameters=function(){return[{type:n.TemplateRef},{type:n.ViewContainerRef}]},p.propDecorators={templateOrStringContext:[{type:n.Input}],content:[{type:n.Input,args:["templateOrString"]}]};var a=function(){};a.decorators=[{type:n.NgModule,args:[{declarations:[p],exports:[p]}]}];var u=function(){function t(){this.outlets=new o.BehaviorSubject(""),this.asObservable=this.outlets.asObservable(),this.ports=new Map}return t.prototype.outlet$=function(t){var e=this;return this.asObservable.pipe(r.filter((function(e){return e===t})),r.map((function(t){return e.ports.get(t)})))},t.prototype.newOutlet=function(t){this.outlets.next(t)},t}();u.ɵprov=n.ɵɵdefineInjectable({factory:function(){return new u},token:u,providedIn:"root"}),u.decorators=[{type:n.Injectable,args:[{providedIn:"root"}]}];var f=function(){function t(t,e){this.vcr=t,this.service=e}return t.prototype.ngOnInit=function(){this.service.ports.set(this.teleportOutlet,this.vcr),this.service.newOutlet(this.teleportOutlet)},t.prototype.ngOnDestroy=function(){this.service.ports.delete(this.teleportOutlet)},t}();f.decorators=[{type:n.Directive,args:[{selector:"[teleportOutlet]"}]}],f.ctorParameters=function(){return[{type:n.ViewContainerRef},{type:u}]},f.propDecorators={teleportOutlet:[{type:n.Input}]};var l=function(){function t(t,e){this.tpl=t,this.service=e}return t.prototype.ngOnInit=function(){var t=this;this.subscription=this.service.outlet$(this.teleportTo).subscribe((function(e){e&&(t.viewRef=e.createEmbeddedView(t.tpl))}))},t.prototype.ngOnDestroy=function(){var t,e;null===(t=this.subscription)||void 0===t||t.unsubscribe(),null===(e=this.viewRef)||void 0===e||e.destroy()},t}();l.decorators=[{type:n.Directive,args:[{selector:"[teleportTo]"}]}],l.ctorParameters=function(){return[{type:n.TemplateRef},{type:u}]},l.propDecorators={teleportTo:[{type:n.Input}]};var h=function(){};h.decorators=[{type:n.NgModule,args:[{declarations:[l,f],exports:[l,f]}]}];var g=function(){function t(t){this.value=t}return t.prototype.getElement=function(){return this.value},t.prototype.detectChanges=function(){},t.prototype.destroy=function(){},t}(),y=function(){function t(t){this.args=t;var e=this.args.resolver.resolveComponentFactory(this.args.component);this.args.vcr?this.compRef=this.args.vcr.createComponent(e,this.args.vcr.length,t.injector||this.args.vcr.injector):(this.compRef=e.create(this.args.injector),this.args.appRef.attachView(this.compRef.hostView))}return Object.defineProperty(t.prototype,"ref",{get:function(){return this.compRef},enumerable:!1,configurable:!0}),t.prototype.setInput=function(t,e){return this.compRef.instance[t]=e,this},t.prototype.setInputs=function(t){var e=this;return Object.keys(t).forEach((function(n){e.compRef.instance[n]=t[n]})),this},t.prototype.detectChanges=function(){return this.compRef.hostView.detectChanges(),this},t.prototype.appendTo=function(t){return t.appendChild(this.getElement()),this},t.prototype.removeFrom=function(t){return t.removeChild(this.getElement()),this},t.prototype.getRawContent=function(){return this.getElement().outerHTML},t.prototype.getElement=function(){return this.compRef.location.nativeElement},t.prototype.destroy=function(){this.compRef.destroy(),!this.args.vcr&&this.args.appRef.detachView(this.compRef.hostView),this.compRef=null},t}();Object.create;function v(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var o,r,i=n.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(o=i.next()).done;)s.push(o.value)}catch(t){r={error:t}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return s}Object.create;var d=function(){function t(t){this.args=t,this.wrapper=null,this.args.vcr?(this.viewRef=this.args.vcr.createEmbeddedView(this.args.tpl,this.args.context||{}),this.viewRef.detectChanges()):(this.viewRef=this.args.tpl.createEmbeddedView(this.args.context||{}),this.viewRef.detectChanges(),this.args.appRef.attachView(this.viewRef))}return t.prototype.detectChanges=function(){this.viewRef.detectChanges()},t.prototype.getElement=function(){var t,e=this.viewRef.rootNodes;return 1===e.length&&e[0]===Node.ELEMENT_NODE?this.element=e[0]:(this.element=document.createElement("div"),(t=this.element).append.apply(t,function(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(v(arguments[e]));return t}(e))),this.element},t.prototype.destroy=function(){1!==this.viewRef.rootNodes[0]&&(this.element.parentNode.removeChild(this.element),this.element=null),this.args.vcr||this.args.appRef.detachView(this.viewRef),this.viewRef.destroy(),this.viewRef=null},t}();function m(t){return t instanceof n.TemplateRef}function R(t){return"function"==typeof t}function w(t){return"string"==typeof t}var C=function(){function t(t,e,n){this.resolver=t,this.injector=e,this.appRef=n}return t.prototype.createComponent=function(t,e){return void 0===e&&(e={}),new y({component:t,vcr:e.vcr,injector:e.injector||this.injector,appRef:this.appRef,resolver:this.resolver})},t.prototype.createTemplate=function(t,e){return void 0===e&&(e={}),new d({vcr:e.vcr,appRef:this.appRef,tpl:t,context:e.context})},t.prototype.createView=function(t,e){if(void 0===e&&(e={}),m(t))return this.createTemplate(t,e);if(R(t))return this.createComponent(t,e);if(w(t))return new g(t);throw"Type of content is not supported"},t}();C.ɵprov=n.ɵɵdefineInjectable({factory:function(){return new C(n.ɵɵinject(n.ComponentFactoryResolver),n.ɵɵinject(n.INJECTOR),n.ɵɵinject(n.ApplicationRef))},token:C,providedIn:"root"}),C.decorators=[{type:n.Injectable,args:[{providedIn:"root"}]}],C.ctorParameters=function(){return[{type:n.ComponentFactoryResolver},{type:n.Injector},{type:n.ApplicationRef}]},t.CompRef=y,t.DynamicContentModule=c,t.StringRef=g,t.TeleportModule=h,t.TemplateOrStringModule=a,t.TplRef=d,t.ViewService=C,t.isComponent=R,t.isString=w,t.isTemplateRef=m,t.ɵa=s,t.ɵb=p,t.ɵc=l,t.ɵd=u,t.ɵe=f,Object.defineProperty(t,"__esModule",{value:!0})})); | ||
//# sourceMappingURL=ngneat-overview.umd.min.js.map |
@@ -45,3 +45,3 @@ import { CommonModule } from '@angular/common'; | ||
<ng-container *ngSwitchCase="ContentType.Component"> | ||
<ng-container *ngComponentOutlet="content;injector: injector;"></ng-container> | ||
<ng-container *ngComponentOutlet="content; injector: injector"></ng-container> | ||
</ng-container> | ||
@@ -72,2 +72,2 @@ </ng-container> | ||
]; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZHluYW1pYy1jb250ZW50LmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIuLi8uLi8uLi8uLi9wcm9qZWN0cy9uZ25lYXQvb3ZlcnZpZXcvc3JjLyIsInNvdXJjZXMiOlsibGliL2R5bmFtaWMtY29udGVudC9keW5hbWljLWNvbnRlbnQuY29tcG9uZW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxZQUFZLEVBQUUsTUFBTSxpQkFBaUIsQ0FBQztBQUMvQyxPQUFPLEVBQUUsdUJBQXVCLEVBQUUsU0FBUyxFQUFZLEtBQUssRUFBRSxRQUFRLEVBQUUsV0FBVyxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBRzNHLElBQUssV0FJSjtBQUpELFdBQUssV0FBVztJQUNkLGlEQUFNLENBQUE7SUFDTixxREFBUSxDQUFBO0lBQ1IsdURBQVMsQ0FBQTtBQUNYLENBQUMsRUFKSSxXQUFXLEtBQVgsV0FBVyxRQUlmO0FBMEJELE1BQU0sT0FBTyx1QkFBdUI7SUF4QnBDO1FBeUJFLGdCQUFXLEdBQUcs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ZWN0aW9uU3RyYXRlZ3ksIENvbXBvbmVudCwgSW5qZWN0b3IsIElucHV0LCBOZ01vZHVsZSwgVGVtcGxhdGVSZWYgfSBmcm9tICdAYW5ndWxhci9jb3JlJztcbmltcG9ydCB7IENvbnRlbnQgfSBmcm9tICcuLi92aWV3cy90eXBlcyc7XG5cbmVudW0gQ29udGVudFR5cGUge1xuICBTdHJpbmcsXG4gIFRlbXBsYXRlLFxuICBDb21wb25lbnQsXG59XG5cbkBDb21wb25lbnQoe1xuICBzZWxlY3RvcjogJ2R5bmFtaWMtY29udGVudCcsXG4gIHRlbXBsYXRlOiBgXG4gICAgPG5nLWNvbnRhaW5lciBbbmdTd2l0Y2hdPVwiY29udGVudFR5cGVcIj5cbiAgICAgIDxkaXYgKm5nU3dpdGNoQ2FzZT1cIkNvbnRlbnRUeXBlLlN0cmluZ1wiIFtpbm5lckhUTUxdPVwiY29udGVudFwiPjwvZGl2PlxuXG4gICAgICA8bmctY29udGFpbmVyICpuZ1N3aXRjaENhc2U9XCJDb250ZW50VHlwZS5UZW1wbGF0ZVwiPlxuICAgICAgICA8bmctY29udGFpbmVyICpuZ1RlbXBsYXRlT3V0bGV0PVwiY29udGVudDsgY29udGV4dDogY29udGV4dFwiPjwvbmctY29udGFpbmVyPlxuICAgICAgPC9uZy1jb250YWluZXI+XG5cbiAgICAgIDxuZy1jb250YWluZXIgKm5nU3dpdGNoQ2FzZT1cIkNvbnRlbnRUeXBlLkNvbXBvbmVudFwiPlxuICAgICAgICA8bmctY29udGFpbmVyICpuZ0NvbXBvbmVudE91dGxldD1cImNvbnRlbnQ7IGluamVjdG9yOiBpbmplY3RvclwiPjwvbmctY29udGFpbmVyPlxuICAgICAgPC9uZy1jb250YWluZXI+XG4gICAgPC9uZy1jb250YWluZXI+XG4gIGAsXG4gIHN0eWxlczogW1xuICAgIGBcbiAgICAgIDpob3N0IHtcbiAgICAgICAgZGlzcGxheTogYmxvY2s7XG4gICAgICB9XG4gICAgYCxcbiAgXSx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4cG9ydHM6IFtEeW5hbWljQ29udGVudENvbXBvbmVudF0sXG59KVxuZXhwb3J0IGNsYXNzIER5bmFtaWNDb250ZW50TW9kdWxlIHt9XG4iXX0= |
@@ -48,3 +48,3 @@ import { CommonModule } from '@angular/common'; | ||
<ng-container *ngSwitchCase="ContentType.Component"> | ||
<ng-container *ngComponentOutlet="content;injector: injector;"></ng-container> | ||
<ng-container *ngComponentOutlet="content; injector: injector"></ng-container> | ||
</ng-container> | ||
@@ -51,0 +51,0 @@ </ng-container> |
@@ -1,1 +0,1 @@ | ||
{"__symbolic":"module","version":4,"metadata":{"ɵa":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":10,"character":1},"arguments":[{"selector":"dynamic-content","template":"\n <ng-container [ngSwitch]=\"contentType\">\n <div *ngSwitchCase=\"ContentType.String\" [innerHTML]=\"content\"></div>\n\n <ng-container *ngSwitchCase=\"ContentType.Template\">\n <ng-container *ngTemplateOutlet=\"content; context: context\"></ng-container>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"ContentType.Component\">\n <ng-container *ngComponentOutlet=\"content;injector: injector;\"></ng-container>\n </ng-container>\n </ng-container>\n ","styles":["\n :host {\n display: block;\n }\n "],"changeDetection":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectionStrategy","line":32,"character":19},"member":"OnPush"}}]}],"members":{"content":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":37,"character":3}}]}],"context":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":43,"character":3}}]}],"injector":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":44,"character":3}}]}],"resolveContentType":[{"__symbolic":"method"}]}},"DynamicContentModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":65,"character":1},"arguments":[{"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule","line":66,"character":12}],"declarations":[{"__symbolic":"reference","name":"ɵa"}],"exports":[{"__symbolic":"reference","name":"ɵa"}]}]}],"members":{}},"ɵb":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive","line":2,"character":1},"arguments":[{"selector":"[templateOrString]"}]}],"members":{"templateOrStringContext":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":6,"character":3}}]}],"content":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":10,"character":3},"arguments":["templateOrString"]}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"TemplateRef","module":"@angular/core","arguments":[{"__symbolic":"reference","name":"any"}]},{"__symbolic":"reference","module":"@angular/core","name":"ViewContainerRef","line":14,"character":65}]}],"ngOnInit":[{"__symbolic":"method"}]}},"TemplateOrStringModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":22,"character":1},"arguments":[{"declarations":[{"__symbolic":"reference","name":"ɵb"}],"exports":[{"__symbolic":"reference","name":"ɵb"}]}]}],"members":{}},"ɵc":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive","line":5,"character":1},"arguments":[{"selector":"[teleportTo]"}]}],"members":{"teleportTo":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":9,"character":3}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"TemplateRef","module":"@angular/core","arguments":[{"__symbolic":"reference","name":"any"}]},{"__symbolic":"reference","name":"ɵd"}]}],"ngOnInit":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}]}},"TeleportModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":29,"character":1},"arguments":[{"declarations":[{"__symbolic":"reference","name":"ɵc"},{"__symbolic":"reference","name":"ɵe"}],"exports":[{"__symbolic":"reference","name":"ɵc"},{"__symbolic":"reference","name":"ɵe"}]}]}],"members":{}},"StringRef":{"__symbolic":"class","members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"string"}]}],"getElement":[{"__symbolic":"method"}],"detectChanges":[{"__symbolic":"method"}],"destroy":[{"__symbolic":"method"}]}},"CompRef":{"__symbolic":"class","arity":1,"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"any","arguments":[{"__symbolic":"error","message":"Could not resolve type","line":21,"character":33,"context":{"typeName":"T"},"module":"./lib/views/comp-ref"}]}]}],"setInput":[{"__symbolic":"method"}],"setInputs":[{"__symbolic":"method"}],"detectChanges":[{"__symbolic":"method"}],"appendTo":[{"__symbolic":"method"}],"removeFrom":[{"__symbolic":"method"}],"getRawContent":[{"__symbolic":"method"}],"getElement":[{"__symbolic":"method"}],"destroy":[{"__symbolic":"method"}]}},"TplRef":{"__symbolic":"class","arity":1,"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"any","arguments":[{"__symbolic":"error","message":"Could not resolve type","line":23,"character":33,"context":{"typeName":"C"},"module":"./lib/views/template-ref"}]}]}],"detectChanges":[{"__symbolic":"method"}],"getElement":[{"__symbolic":"method"}],"destroy":[{"__symbolic":"method"}]}},"ViewService":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":28,"character":1},"arguments":[{"providedIn":"root"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ComponentFactoryResolver","line":30,"character":32},{"__symbolic":"reference","module":"@angular/core","name":"Injector","line":30,"character":76},{"__symbolic":"reference","module":"@angular/core","name":"ApplicationRef","line":30,"character":102}]}],"createComponent":[{"__symbolic":"method"}],"createTemplate":[{"__symbolic":"method"}],"createView":[{"__symbolic":"method"}]},"statics":{"ɵprov":{}}},"ViewOptions":{"__symbolic":"interface"},"isComponent":{"__symbolic":"function","parameters":["value"],"value":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"error","message":"Expression form not supported","line":22,"character":9,"module":"./lib/views/types"},"right":"function"}},"isTemplateRef":{"__symbolic":"function","parameters":["value"],"value":{"__symbolic":"binop","operator":"instanceof","left":{"__symbolic":"reference","name":"value"},"right":{"__symbolic":"reference","module":"@angular/core","name":"TemplateRef","line":18,"character":26}}},"Content":{"__symbolic":"interface"},"isString":{"__symbolic":"function","parameters":["value"],"value":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"error","message":"Expression form not supported","line":26,"character":9,"module":"./lib/views/types"},"right":"string"}},"ViewRef":{"__symbolic":"interface"},"ɵd":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":4,"character":1},"arguments":[{"providedIn":"root"}]}],"members":{"outlet$":[{"__symbolic":"method"}],"newOutlet":[{"__symbolic":"method"}]},"statics":{"ɵprov":{}}},"ɵe":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive","line":3,"character":1},"arguments":[{"selector":"[teleportOutlet]"}]}],"members":{"teleportOutlet":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":7,"character":3}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ViewContainerRef","line":9,"character":27},{"__symbolic":"reference","name":"ɵd"}]}],"ngOnInit":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}]}}},"origins":{"ɵa":"./lib/dynamic-content/dynamic-content.component","DynamicContentModule":"./lib/dynamic-content/dynamic-content.component","ɵb":"./lib/template-or-string/template-or-string.module","TemplateOrStringModule":"./lib/template-or-string/template-or-string.module","ɵc":"./lib/teleport/teleport.module","TeleportModule":"./lib/teleport/teleport.module","StringRef":"./lib/views/string-ref","CompRef":"./lib/views/comp-ref","TplRef":"./lib/views/template-ref","ViewService":"./lib/views/view","ViewOptions":"./lib/views/view","isComponent":"./lib/views/types","isTemplateRef":"./lib/views/types","Content":"./lib/views/types","isString":"./lib/views/types","ViewRef":"./lib/views/types","ɵd":"./lib/teleport/teleport.service","ɵe":"./lib/teleport/teleport-outlet.directive"},"importAs":"@ngneat/overview"} | ||
{"__symbolic":"module","version":4,"metadata":{"ɵa":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":10,"character":1},"arguments":[{"selector":"dynamic-content","template":"\n <ng-container [ngSwitch]=\"contentType\">\n <div *ngSwitchCase=\"ContentType.String\" [innerHTML]=\"content\"></div>\n\n <ng-container *ngSwitchCase=\"ContentType.Template\">\n <ng-container *ngTemplateOutlet=\"content; context: context\"></ng-container>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"ContentType.Component\">\n <ng-container *ngComponentOutlet=\"content; injector: injector\"></ng-container>\n </ng-container>\n </ng-container>\n ","styles":["\n :host {\n display: block;\n }\n "],"changeDetection":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectionStrategy","line":32,"character":19},"member":"OnPush"}}]}],"members":{"content":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":37,"character":3}}]}],"context":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":43,"character":3}}]}],"injector":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":44,"character":3}}]}],"resolveContentType":[{"__symbolic":"method"}]}},"DynamicContentModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":65,"character":1},"arguments":[{"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule","line":66,"character":12}],"declarations":[{"__symbolic":"reference","name":"ɵa"}],"exports":[{"__symbolic":"reference","name":"ɵa"}]}]}],"members":{}},"ɵb":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive","line":2,"character":1},"arguments":[{"selector":"[templateOrString]"}]}],"members":{"templateOrStringContext":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":6,"character":3}}]}],"content":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":10,"character":3},"arguments":["templateOrString"]}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"TemplateRef","module":"@angular/core","arguments":[{"__symbolic":"reference","name":"any"}]},{"__symbolic":"reference","module":"@angular/core","name":"ViewContainerRef","line":14,"character":65}]}],"ngOnInit":[{"__symbolic":"method"}]}},"TemplateOrStringModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":22,"character":1},"arguments":[{"declarations":[{"__symbolic":"reference","name":"ɵb"}],"exports":[{"__symbolic":"reference","name":"ɵb"}]}]}],"members":{}},"ɵc":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive","line":5,"character":1},"arguments":[{"selector":"[teleportTo]"}]}],"members":{"teleportTo":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":9,"character":3}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"TemplateRef","module":"@angular/core","arguments":[{"__symbolic":"reference","name":"any"}]},{"__symbolic":"reference","name":"ɵd"}]}],"ngOnInit":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}]}},"TeleportModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":29,"character":1},"arguments":[{"declarations":[{"__symbolic":"reference","name":"ɵc"},{"__symbolic":"reference","name":"ɵe"}],"exports":[{"__symbolic":"reference","name":"ɵc"},{"__symbolic":"reference","name":"ɵe"}]}]}],"members":{}},"StringRef":{"__symbolic":"class","members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"string"}]}],"getElement":[{"__symbolic":"method"}],"detectChanges":[{"__symbolic":"method"}],"destroy":[{"__symbolic":"method"}]}},"CompRef":{"__symbolic":"class","arity":1,"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"any","arguments":[{"__symbolic":"error","message":"Could not resolve type","line":21,"character":33,"context":{"typeName":"T"},"module":"./lib/views/comp-ref"}]}]}],"setInput":[{"__symbolic":"method"}],"setInputs":[{"__symbolic":"method"}],"detectChanges":[{"__symbolic":"method"}],"appendTo":[{"__symbolic":"method"}],"removeFrom":[{"__symbolic":"method"}],"getRawContent":[{"__symbolic":"method"}],"getElement":[{"__symbolic":"method"}],"destroy":[{"__symbolic":"method"}]}},"TplRef":{"__symbolic":"class","arity":1,"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"any","arguments":[{"__symbolic":"error","message":"Could not resolve type","line":23,"character":33,"context":{"typeName":"C"},"module":"./lib/views/template-ref"}]}]}],"detectChanges":[{"__symbolic":"method"}],"getElement":[{"__symbolic":"method"}],"destroy":[{"__symbolic":"method"}]}},"ViewService":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":28,"character":1},"arguments":[{"providedIn":"root"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ComponentFactoryResolver","line":30,"character":32},{"__symbolic":"reference","module":"@angular/core","name":"Injector","line":30,"character":76},{"__symbolic":"reference","module":"@angular/core","name":"ApplicationRef","line":30,"character":102}]}],"createComponent":[{"__symbolic":"method"}],"createTemplate":[{"__symbolic":"method"}],"createView":[{"__symbolic":"method"}]},"statics":{"ɵprov":{}}},"ViewOptions":{"__symbolic":"interface"},"isComponent":{"__symbolic":"function","parameters":["value"],"value":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"error","message":"Expression form not supported","line":22,"character":9,"module":"./lib/views/types"},"right":"function"}},"isTemplateRef":{"__symbolic":"function","parameters":["value"],"value":{"__symbolic":"binop","operator":"instanceof","left":{"__symbolic":"reference","name":"value"},"right":{"__symbolic":"reference","module":"@angular/core","name":"TemplateRef","line":18,"character":26}}},"Content":{"__symbolic":"interface"},"isString":{"__symbolic":"function","parameters":["value"],"value":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"error","message":"Expression form not supported","line":26,"character":9,"module":"./lib/views/types"},"right":"string"}},"ViewRef":{"__symbolic":"interface"},"ɵd":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":4,"character":1},"arguments":[{"providedIn":"root"}]}],"members":{"outlet$":[{"__symbolic":"method"}],"newOutlet":[{"__symbolic":"method"}]},"statics":{"ɵprov":{}}},"ɵe":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive","line":3,"character":1},"arguments":[{"selector":"[teleportOutlet]"}]}],"members":{"teleportOutlet":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":7,"character":3}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ViewContainerRef","line":9,"character":27},{"__symbolic":"reference","name":"ɵd"}]}],"ngOnInit":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}]}}},"origins":{"ɵa":"./lib/dynamic-content/dynamic-content.component","DynamicContentModule":"./lib/dynamic-content/dynamic-content.component","ɵb":"./lib/template-or-string/template-or-string.module","TemplateOrStringModule":"./lib/template-or-string/template-or-string.module","ɵc":"./lib/teleport/teleport.module","TeleportModule":"./lib/teleport/teleport.module","StringRef":"./lib/views/string-ref","CompRef":"./lib/views/comp-ref","TplRef":"./lib/views/template-ref","ViewService":"./lib/views/view","ViewOptions":"./lib/views/view","isComponent":"./lib/views/types","isTemplateRef":"./lib/views/types","Content":"./lib/views/types","isString":"./lib/views/types","ViewRef":"./lib/views/types","ɵd":"./lib/teleport/teleport.service","ɵe":"./lib/teleport/teleport-outlet.directive"},"importAs":"@ngneat/overview"} |
{ | ||
"name": "@ngneat/overview", | ||
"version": "1.0.0-beta.7", | ||
"version": "1.0.0", | ||
"dependencies": { | ||
@@ -5,0 +5,0 @@ "tslib": "^2.0.0" |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
1
-50%208300
-0.01%