New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@klippa/ngx-async-template

Package Overview
Dependencies
Maintainers
4
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@klippa/ngx-async-template - npm Package Compare versions

Comparing version 2.0.1 to 2.1.1

12

bundles/klippa-ngx-async-template.umd.js

@@ -50,2 +50,3 @@ (function (global, factory) {

this.promise = null;
this.successStateOnReload = false; // when true, from the second (!) time the promise is loaded, we keep the previous success state with its data
this.promiseStatus = 'inactive';

@@ -55,8 +56,14 @@ }

var _this = this;
this.promiseValue = null;
if (!this.promise) {
this.promiseValue = null;
this.promiseStatus = 'inactive';
}
else {
this.promiseStatus = 'pending';
if (this.successStateOnReload && this.promiseStatus === 'success') {
// dont show the pending state
}
else {
this.promiseValue = null;
this.promiseStatus = 'pending';
}
this.promise.then(function (res) {

@@ -83,2 +90,3 @@ _this.promiseStatus = 'success';

promise: [{ type: core.Input }],
successStateOnReload: [{ type: core.Input }],
allStates: [{ type: core.ContentChildren, args: [AsyncAllStatesComponent, { read: core.TemplateRef },] }],

@@ -85,0 +93,0 @@ inactive: [{ type: core.ContentChildren, args: [AsyncInactiveComponent, { read: core.TemplateRef },] }],

2

bundles/klippa-ngx-async-template.umd.min.js

@@ -1,2 +0,2 @@

!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core"),require("@angular/common")):"function"==typeof define&&define.amd?define("@klippa/ngx-async-template",["exports","@angular/core","@angular/common"],t):t(((e="undefined"!=typeof globalThis?globalThis:e||self).klippa=e.klippa||{},e.klippa["ngx-async-template"]={}),e.ng.core,e.ng.common)}(this,(function(e,t,n){"use strict";var r=function(){};r.decorators=[{type:t.Directive,args:[{selector:"[ngx-async-all]"}]}];var o=function(){};o.decorators=[{type:t.Directive,args:[{selector:"[ngx-async-inactive]"}]}];var a=function(){};a.decorators=[{type:t.Directive,args:[{selector:"[ngx-async-pending]"}]}];var s=function(){};s.decorators=[{type:t.Directive,args:[{selector:"[ngx-async-success]"}]}];var i=function(){};i.decorators=[{type:t.Directive,args:[{selector:"[ngx-async-error]"}]}];var p=function(){function e(){this.promise=null,this.promiseStatus="inactive"}return e.prototype.ngOnChanges=function(){var e=this;this.promiseValue=null,this.promise?(this.promiseStatus="pending",this.promise.then((function(t){e.promiseStatus="success",e.promiseValue=t}),(function(t){e.promiseStatus="error",e.promiseErrors=t}))):this.promiseStatus="inactive"},e}();p.decorators=[{type:t.Component,args:[{selector:"ngx-async-template",template:'<ng-container>\n <ng-container *ngFor="let tpl of allStates?.toArray()" [ngTemplateOutlet]="tpl" [ngTemplateOutletContext]="{ status: promiseStatus, value: promiseValue }"></ng-container>\n <ng-container *ngIf="promiseStatus === \'inactive\'" >\n <ng-container *ngFor="let tpl of inactive?.toArray()" [ngTemplateOutlet]="tpl" [ngTemplateOutletContext]="{ status: promiseStatus }"></ng-container>\n </ng-container>\n <ng-container *ngIf="promiseStatus === \'pending\'">\n <ng-container *ngFor="let tpl of pending?.toArray()" [ngTemplateOutlet]="tpl" [ngTemplateOutletContext]="{ status: promiseStatus }"></ng-container>\n </ng-container>\n <ng-container *ngIf="promiseStatus === \'success\'">\n <ng-container\n *ngFor="let tpl of success?.toArray()"\n [ngTemplateOutlet]="tpl"\n [ngTemplateOutletContext]="{ value: promiseValue, status: promiseStatus }"\n ></ng-container>\n </ng-container>\n <ng-container *ngIf="promiseStatus === \'error\'">\n <ng-container\n *ngFor="let tpl of error?.toArray()"\n [ngTemplateOutlet]="tpl"\n [ngTemplateOutletContext]="{ errorMessages: promiseErrors, status: promiseStatus }"\n ></ng-container>\n </ng-container>\n</ng-container>\n',styles:[":host { display: block; }"]}]}],p.ctorParameters=function(){return[]},p.propDecorators={promise:[{type:t.Input}],allStates:[{type:t.ContentChildren,args:[r,{read:t.TemplateRef}]}],inactive:[{type:t.ContentChildren,args:[o,{read:t.TemplateRef}]}],pending:[{type:t.ContentChildren,args:[a,{read:t.TemplateRef}]}],success:[{type:t.ContentChildren,args:[s,{read:t.TemplateRef}]}],error:[{type:t.ContentChildren,args:[i,{read:t.TemplateRef}]}]};var c=function(){};c.decorators=[{type:t.NgModule,args:[{imports:[n.CommonModule],declarations:[p,r,o,a,s,i],exports:[p,r,o,a,s,i]}]}],e.AsyncAllStatesComponent=r,e.AsyncErrorComponent=i,e.AsyncInactiveComponent=o,e.AsyncPendingComponent=a,e.AsyncSuccessComponent=s,e.NgxAsyncTemplateComponent=p,e.NgxAsyncTemplateModule=c,Object.defineProperty(e,"__esModule",{value:!0})}));
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core"),require("@angular/common")):"function"==typeof define&&define.amd?define("@klippa/ngx-async-template",["exports","@angular/core","@angular/common"],t):t(((e="undefined"!=typeof globalThis?globalThis:e||self).klippa=e.klippa||{},e.klippa["ngx-async-template"]={}),e.ng.core,e.ng.common)}(this,(function(e,t,n){"use strict";var r=function(){};r.decorators=[{type:t.Directive,args:[{selector:"[ngx-async-all]"}]}];var o=function(){};o.decorators=[{type:t.Directive,args:[{selector:"[ngx-async-inactive]"}]}];var s=function(){};s.decorators=[{type:t.Directive,args:[{selector:"[ngx-async-pending]"}]}];var a=function(){};a.decorators=[{type:t.Directive,args:[{selector:"[ngx-async-success]"}]}];var i=function(){};i.decorators=[{type:t.Directive,args:[{selector:"[ngx-async-error]"}]}];var c=function(){function e(){this.promise=null,this.successStateOnReload=!1,this.promiseStatus="inactive"}return e.prototype.ngOnChanges=function(){var e=this;this.promise?(this.successStateOnReload&&"success"===this.promiseStatus||(this.promiseValue=null,this.promiseStatus="pending"),this.promise.then((function(t){e.promiseStatus="success",e.promiseValue=t}),(function(t){e.promiseStatus="error",e.promiseErrors=t}))):(this.promiseValue=null,this.promiseStatus="inactive")},e}();c.decorators=[{type:t.Component,args:[{selector:"ngx-async-template",template:'<ng-container>\n <ng-container *ngFor="let tpl of allStates?.toArray()" [ngTemplateOutlet]="tpl" [ngTemplateOutletContext]="{ status: promiseStatus, value: promiseValue }"></ng-container>\n <ng-container *ngIf="promiseStatus === \'inactive\'" >\n <ng-container *ngFor="let tpl of inactive?.toArray()" [ngTemplateOutlet]="tpl" [ngTemplateOutletContext]="{ status: promiseStatus }"></ng-container>\n </ng-container>\n <ng-container *ngIf="promiseStatus === \'pending\'">\n <ng-container *ngFor="let tpl of pending?.toArray()" [ngTemplateOutlet]="tpl" [ngTemplateOutletContext]="{ status: promiseStatus }"></ng-container>\n </ng-container>\n <ng-container *ngIf="promiseStatus === \'success\'">\n <ng-container\n *ngFor="let tpl of success?.toArray()"\n [ngTemplateOutlet]="tpl"\n [ngTemplateOutletContext]="{ value: promiseValue, status: promiseStatus }"\n ></ng-container>\n </ng-container>\n <ng-container *ngIf="promiseStatus === \'error\'">\n <ng-container\n *ngFor="let tpl of error?.toArray()"\n [ngTemplateOutlet]="tpl"\n [ngTemplateOutletContext]="{ errorMessages: promiseErrors, status: promiseStatus }"\n ></ng-container>\n </ng-container>\n</ng-container>\n',styles:[":host { display: block; }"]}]}],c.ctorParameters=function(){return[]},c.propDecorators={promise:[{type:t.Input}],successStateOnReload:[{type:t.Input}],allStates:[{type:t.ContentChildren,args:[r,{read:t.TemplateRef}]}],inactive:[{type:t.ContentChildren,args:[o,{read:t.TemplateRef}]}],pending:[{type:t.ContentChildren,args:[s,{read:t.TemplateRef}]}],success:[{type:t.ContentChildren,args:[a,{read:t.TemplateRef}]}],error:[{type:t.ContentChildren,args:[i,{read:t.TemplateRef}]}]};var p=function(){};p.decorators=[{type:t.NgModule,args:[{imports:[n.CommonModule],declarations:[c,r,o,s,a,i],exports:[c,r,o,s,a,i]}]}],e.AsyncAllStatesComponent=r,e.AsyncErrorComponent=i,e.AsyncInactiveComponent=o,e.AsyncPendingComponent=s,e.AsyncSuccessComponent=a,e.NgxAsyncTemplateComponent=c,e.NgxAsyncTemplateModule=p,Object.defineProperty(e,"__esModule",{value:!0})}));
//# sourceMappingURL=klippa-ngx-async-template.umd.min.js.map

@@ -30,11 +30,18 @@ import { Component, ContentChildren, Directive, Input, TemplateRef } from '@angular/core';

this.promise = null;
this.successStateOnReload = false; // when true, from the second (!) time the promise is loaded, we keep the previous success state with its data
this.promiseStatus = 'inactive';
}
ngOnChanges() {
this.promiseValue = null;
if (!this.promise) {
this.promiseValue = null;
this.promiseStatus = 'inactive';
}
else {
this.promiseStatus = 'pending';
if (this.successStateOnReload && this.promiseStatus === 'success') {
// dont show the pending state
}
else {
this.promiseValue = null;
this.promiseStatus = 'pending';
}
this.promise.then((res) => {

@@ -60,2 +67,3 @@ this.promiseStatus = 'success';

promise: [{ type: Input }],
successStateOnReload: [{ type: Input }],
allStates: [{ type: ContentChildren, args: [AsyncAllStatesComponent, { read: TemplateRef },] }],

@@ -67,2 +75,2 @@ inactive: [{ type: ContentChildren, args: [AsyncInactiveComponent, { read: TemplateRef },] }],

};
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmd4LWFzeW5jLXRlbXBsYXRlLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9saWIvbmd4LWFzeW5jLXRlbXBsYXRlLmNvbXBvbmVudC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsU0FBUyxFQUFFLGVBQWUsRUFBRSxTQUFTLEVBQUUsS0FBSyxFQUFhLFdBQVcsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUdyRyxNQUFNLE9BQU8sdUJBQXVCOzs7WUFEbkMsU0FBUyxTQUFDLEVBQUUsUUFBUSxFQUFFLGlCQUFpQixFQUFFOztBQUcxQyxNQUFNLE9BQU8sc0JBQXNCOzs7WUFEbEMsU0FBUyxTQUFDLEVBQUUsUUFBUSxFQUFFLHNCQUFzQixFQUFFOztBQUcvQyxNQUFNLE9BQU8scUJBQXFCOzs7WUFEakMsU0FBUyxTQUFDLEV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RoaXMucHJvbWlzZVZhbHVlID0gbnVsbDtcbiAgICAgIHRoaXMucHJvbWlzZVN0YXR1cyA9ICdpbmFjdGl2ZSc7XG4gICAgfSBlbHNlIHtcbiAgICAgIGlmICh0aGlzLnN1Y2Nlc3NTdGF0ZU9uUmVsb2FkICYmIHRoaXMucHJvbWlzZVN0YXR1cyA9PT0gJ3N1Y2Nlc3MnKSB7XG4gICAgICAgIC8vIGRvbnQgc2hvdyB0aGUgcGVuZGluZyBzdGF0ZVxuICAgICAgfSBlbHNlIHtcbiAgICAgICAgdGhpcy5wcm9taXNlVmFsdWUgPSBudWxsO1xuICAgICAgICB0aGlzLnByb21pc2VTdGF0dXMgPSAncGVuZGluZyc7XG4gICAgICB9XG4gICAgICB0aGlzLnByb21pc2UudGhlbihcbiAgICAgICAgKHJlcykgPT4ge1xuICAgICAgICAgIHRoaXMucHJvbWlzZVN0YXR1cyA9ICdzdWNjZXNzJztcbiAgICAgICAgICB0aGlzLnByb21pc2VWYWx1ZSA9IHJlcztcbiAgICAgICAgfSxcbiAgICAgICAgKHJlcykgPT4ge1xuICAgICAgICAgIHRoaXMucHJvbWlzZVN0YXR1cyA9ICdlcnJvcic7XG4gICAgICAgICAgdGhpcy5wcm9taXNlRXJyb3JzID0gcmVzO1xuICAgICAgICB9XG4gICAgICApO1xuICAgIH1cbiAgfVxufVxuIl19

@@ -32,11 +32,18 @@ import { Directive, Component, Input, ContentChildren, TemplateRef, NgModule } from '@angular/core';

this.promise = null;
this.successStateOnReload = false; // when true, from the second (!) time the promise is loaded, we keep the previous success state with its data
this.promiseStatus = 'inactive';
}
ngOnChanges() {
this.promiseValue = null;
if (!this.promise) {
this.promiseValue = null;
this.promiseStatus = 'inactive';
}
else {
this.promiseStatus = 'pending';
if (this.successStateOnReload && this.promiseStatus === 'success') {
// dont show the pending state
}
else {
this.promiseValue = null;
this.promiseStatus = 'pending';
}
this.promise.then((res) => {

@@ -62,2 +69,3 @@ this.promiseStatus = 'success';

promise: [{ type: Input }],
successStateOnReload: [{ type: Input }],
allStates: [{ type: ContentChildren, args: [AsyncAllStatesComponent, { read: TemplateRef },] }],

@@ -64,0 +72,0 @@ inactive: [{ type: ContentChildren, args: [AsyncInactiveComponent, { read: TemplateRef },] }],

@@ -1,1 +0,1 @@

{"__symbolic":"module","version":4,"metadata":{"AsyncAllStatesComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive","line":2,"character":1},"arguments":[{"selector":"[ngx-async-all]"}]}],"members":{}},"AsyncInactiveComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive","line":4,"character":1},"arguments":[{"selector":"[ngx-async-inactive]"}]}],"members":{}},"AsyncPendingComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive","line":6,"character":1},"arguments":[{"selector":"[ngx-async-pending]"}]}],"members":{}},"AsyncSuccessComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive","line":8,"character":1},"arguments":[{"selector":"[ngx-async-success]"}]}],"members":{}},"AsyncErrorComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive","line":10,"character":1},"arguments":[{"selector":"[ngx-async-error]"}]}],"members":{}},"NgxAsyncTemplateComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":13,"character":1},"arguments":[{"selector":"ngx-async-template","styles":[":host { display: block; }"],"template":"<ng-container>\n <ng-container *ngFor=\"let tpl of allStates?.toArray()\" [ngTemplateOutlet]=\"tpl\" [ngTemplateOutletContext]=\"{ status: promiseStatus, value: promiseValue }\"></ng-container>\n <ng-container *ngIf=\"promiseStatus === 'inactive'\" >\n <ng-container *ngFor=\"let tpl of inactive?.toArray()\" [ngTemplateOutlet]=\"tpl\" [ngTemplateOutletContext]=\"{ status: promiseStatus }\"></ng-container>\n </ng-container>\n <ng-container *ngIf=\"promiseStatus === 'pending'\">\n <ng-container *ngFor=\"let tpl of pending?.toArray()\" [ngTemplateOutlet]=\"tpl\" [ngTemplateOutletContext]=\"{ status: promiseStatus }\"></ng-container>\n </ng-container>\n <ng-container *ngIf=\"promiseStatus === 'success'\">\n <ng-container\n *ngFor=\"let tpl of success?.toArray()\"\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{ value: promiseValue, status: promiseStatus }\"\n ></ng-container>\n </ng-container>\n <ng-container *ngIf=\"promiseStatus === 'error'\">\n <ng-container\n *ngFor=\"let tpl of error?.toArray()\"\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{ errorMessages: promiseErrors, status: promiseStatus }\"\n ></ng-container>\n </ng-container>\n</ng-container>\n"}]}],"members":{"promise":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":19,"character":3}}]}],"allStates":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ContentChildren","line":24,"character":3},"arguments":[{"__symbolic":"reference","name":"AsyncAllStatesComponent"},{"read":{"__symbolic":"reference","module":"@angular/core","name":"TemplateRef","line":24,"character":52}}]}]}],"inactive":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ContentChildren","line":25,"character":3},"arguments":[{"__symbolic":"reference","name":"AsyncInactiveComponent"},{"read":{"__symbolic":"reference","module":"@angular/core","name":"TemplateRef","line":25,"character":51}}]}]}],"pending":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ContentChildren","line":26,"character":3},"arguments":[{"__symbolic":"reference","name":"AsyncPendingComponent"},{"read":{"__symbolic":"reference","module":"@angular/core","name":"TemplateRef","line":26,"character":50}}]}]}],"success":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ContentChildren","line":27,"character":3},"arguments":[{"__symbolic":"reference","name":"AsyncSuccessComponent"},{"read":{"__symbolic":"reference","module":"@angular/core","name":"TemplateRef","line":27,"character":50}}]}]}],"error":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ContentChildren","line":28,"character":3},"arguments":[{"__symbolic":"reference","name":"AsyncErrorComponent"},{"read":{"__symbolic":"reference","module":"@angular/core","name":"TemplateRef","line":28,"character":48}}]}]}],"__ctor__":[{"__symbolic":"constructor"}],"ngOnChanges":[{"__symbolic":"method"}]}},"NgxAsyncTemplateModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":11,"character":1},"arguments":[{"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule","line":13,"character":4}],"declarations":[{"__symbolic":"reference","name":"NgxAsyncTemplateComponent"},{"__symbolic":"reference","name":"AsyncAllStatesComponent"},{"__symbolic":"reference","name":"AsyncInactiveComponent"},{"__symbolic":"reference","name":"AsyncPendingComponent"},{"__symbolic":"reference","name":"AsyncSuccessComponent"},{"__symbolic":"reference","name":"AsyncErrorComponent"}],"exports":[{"__symbolic":"reference","name":"NgxAsyncTemplateComponent"},{"__symbolic":"reference","name":"AsyncAllStatesComponent"},{"__symbolic":"reference","name":"AsyncInactiveComponent"},{"__symbolic":"reference","name":"AsyncPendingComponent"},{"__symbolic":"reference","name":"AsyncSuccessComponent"},{"__symbolic":"reference","name":"AsyncErrorComponent"}]}]}],"members":{}}},"origins":{"AsyncAllStatesComponent":"./lib/ngx-async-template.component","AsyncInactiveComponent":"./lib/ngx-async-template.component","AsyncPendingComponent":"./lib/ngx-async-template.component","AsyncSuccessComponent":"./lib/ngx-async-template.component","AsyncErrorComponent":"./lib/ngx-async-template.component","NgxAsyncTemplateComponent":"./lib/ngx-async-template.component","NgxAsyncTemplateModule":"./lib/ngx-async-template.module"},"importAs":"@klippa/ngx-async-template"}
{"__symbolic":"module","version":4,"metadata":{"AsyncAllStatesComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive","line":2,"character":1},"arguments":[{"selector":"[ngx-async-all]"}]}],"members":{}},"AsyncInactiveComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive","line":4,"character":1},"arguments":[{"selector":"[ngx-async-inactive]"}]}],"members":{}},"AsyncPendingComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive","line":6,"character":1},"arguments":[{"selector":"[ngx-async-pending]"}]}],"members":{}},"AsyncSuccessComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive","line":8,"character":1},"arguments":[{"selector":"[ngx-async-success]"}]}],"members":{}},"AsyncErrorComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive","line":10,"character":1},"arguments":[{"selector":"[ngx-async-error]"}]}],"members":{}},"NgxAsyncTemplateComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":13,"character":1},"arguments":[{"selector":"ngx-async-template","styles":[":host { display: block; }"],"template":"<ng-container>\n <ng-container *ngFor=\"let tpl of allStates?.toArray()\" [ngTemplateOutlet]=\"tpl\" [ngTemplateOutletContext]=\"{ status: promiseStatus, value: promiseValue }\"></ng-container>\n <ng-container *ngIf=\"promiseStatus === 'inactive'\" >\n <ng-container *ngFor=\"let tpl of inactive?.toArray()\" [ngTemplateOutlet]=\"tpl\" [ngTemplateOutletContext]=\"{ status: promiseStatus }\"></ng-container>\n </ng-container>\n <ng-container *ngIf=\"promiseStatus === 'pending'\">\n <ng-container *ngFor=\"let tpl of pending?.toArray()\" [ngTemplateOutlet]=\"tpl\" [ngTemplateOutletContext]=\"{ status: promiseStatus }\"></ng-container>\n </ng-container>\n <ng-container *ngIf=\"promiseStatus === 'success'\">\n <ng-container\n *ngFor=\"let tpl of success?.toArray()\"\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{ value: promiseValue, status: promiseStatus }\"\n ></ng-container>\n </ng-container>\n <ng-container *ngIf=\"promiseStatus === 'error'\">\n <ng-container\n *ngFor=\"let tpl of error?.toArray()\"\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{ errorMessages: promiseErrors, status: promiseStatus }\"\n ></ng-container>\n </ng-container>\n</ng-container>\n"}]}],"members":{"promise":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":19,"character":3}}]}],"successStateOnReload":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":20,"character":3}}]}],"allStates":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ContentChildren","line":25,"character":3},"arguments":[{"__symbolic":"reference","name":"AsyncAllStatesComponent"},{"read":{"__symbolic":"reference","module":"@angular/core","name":"TemplateRef","line":25,"character":52}}]}]}],"inactive":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ContentChildren","line":26,"character":3},"arguments":[{"__symbolic":"reference","name":"AsyncInactiveComponent"},{"read":{"__symbolic":"reference","module":"@angular/core","name":"TemplateRef","line":26,"character":51}}]}]}],"pending":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ContentChildren","line":27,"character":3},"arguments":[{"__symbolic":"reference","name":"AsyncPendingComponent"},{"read":{"__symbolic":"reference","module":"@angular/core","name":"TemplateRef","line":27,"character":50}}]}]}],"success":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ContentChildren","line":28,"character":3},"arguments":[{"__symbolic":"reference","name":"AsyncSuccessComponent"},{"read":{"__symbolic":"reference","module":"@angular/core","name":"TemplateRef","line":28,"character":50}}]}]}],"error":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ContentChildren","line":29,"character":3},"arguments":[{"__symbolic":"reference","name":"AsyncErrorComponent"},{"read":{"__symbolic":"reference","module":"@angular/core","name":"TemplateRef","line":29,"character":48}}]}]}],"__ctor__":[{"__symbolic":"constructor"}],"ngOnChanges":[{"__symbolic":"method"}]}},"NgxAsyncTemplateModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":11,"character":1},"arguments":[{"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule","line":13,"character":4}],"declarations":[{"__symbolic":"reference","name":"NgxAsyncTemplateComponent"},{"__symbolic":"reference","name":"AsyncAllStatesComponent"},{"__symbolic":"reference","name":"AsyncInactiveComponent"},{"__symbolic":"reference","name":"AsyncPendingComponent"},{"__symbolic":"reference","name":"AsyncSuccessComponent"},{"__symbolic":"reference","name":"AsyncErrorComponent"}],"exports":[{"__symbolic":"reference","name":"NgxAsyncTemplateComponent"},{"__symbolic":"reference","name":"AsyncAllStatesComponent"},{"__symbolic":"reference","name":"AsyncInactiveComponent"},{"__symbolic":"reference","name":"AsyncPendingComponent"},{"__symbolic":"reference","name":"AsyncSuccessComponent"},{"__symbolic":"reference","name":"AsyncErrorComponent"}]}]}],"members":{}}},"origins":{"AsyncAllStatesComponent":"./lib/ngx-async-template.component","AsyncInactiveComponent":"./lib/ngx-async-template.component","AsyncPendingComponent":"./lib/ngx-async-template.component","AsyncSuccessComponent":"./lib/ngx-async-template.component","AsyncErrorComponent":"./lib/ngx-async-template.component","NgxAsyncTemplateComponent":"./lib/ngx-async-template.component","NgxAsyncTemplateModule":"./lib/ngx-async-template.module"},"importAs":"@klippa/ngx-async-template"}

@@ -14,2 +14,3 @@ import { QueryList, TemplateRef } from '@angular/core';

promise: Promise<any>;
successStateOnReload: boolean;
promiseStatus: 'inactive' | 'pending' | 'success' | 'error';

@@ -16,0 +17,0 @@ promiseValue: any;

{
"name": "@klippa/ngx-async-template",
"version": "2.0.1",
"version": "2.1.1",
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc