@apipass/messages 0.2.1-alpha.0 → 0.2.1-alpha.3
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.
|
@@ -196,7 +196,7 @@
|
|
|
196
196
|
if (rf & 2) {
|
|
197
197
|
i0.ɵɵproperty("ngIf", ctx.errors.length > 0);
|
|
198
198
|
}
|
|
199
|
-
}, directives: [i1$1.NgIf, i1$1.NgForOf], styles: [".error-box[_ngcontent-%COMP%]{background:#f5caca;border:1px solid #8b4646;border-radius:5px;color:#8b4646;width:100%}.error-box[_ngcontent-%COMP%] .alert[_ngcontent-%COMP%]{padding:10px 15px!important}.error-box[_ngcontent-%COMP%] .alert[_ngcontent-%COMP%] .close[_ngcontent-%COMP%]{background:none;border:none;color:#8b4646;cursor:pointer;font-size:20px;position:absolute;right:2px;top:2px}.error-box[_ngcontent-%COMP%] .alert[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{margin-right:5px;word-break:break-word}.error-box[_ngcontent-%COMP%] .causes[_ngcontent-%COMP%]{word-break:break-word}"] });
|
|
199
|
+
}, directives: [i1$1.NgIf, i1$1.NgForOf], styles: [".error-box[_ngcontent-%COMP%]{background:#f5caca;border:1px solid #8b4646;border-radius:5px;color:#8b4646;position:relative;width:100%}.error-box[_ngcontent-%COMP%] .alert[_ngcontent-%COMP%]{padding:10px 15px!important}.error-box[_ngcontent-%COMP%] .alert[_ngcontent-%COMP%] .close[_ngcontent-%COMP%]{background:none;border:none;color:#8b4646;cursor:pointer;font-size:20px;position:absolute;right:2px;top:2px}.error-box[_ngcontent-%COMP%] .alert[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{margin-right:5px;word-break:break-word}.error-box[_ngcontent-%COMP%] .causes[_ngcontent-%COMP%]{word-break:break-word}"] });
|
|
200
200
|
/*@__PURE__*/ (function () {
|
|
201
201
|
i0.ɵsetClassMetadata(MessageBoxComponent, [{
|
|
202
202
|
type: i0.Component,
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("angular2-toaster"),require("@angular/core"),require("@ngx-translate/core"),require("@angular/forms"),require("@angular/common")):"function"==typeof define&&define.amd?define("@apipass/messages",["exports","angular2-toaster","@angular/core","@ngx-translate/core","@angular/forms","@angular/common"],t):t(((e="undefined"!=typeof globalThis?globalThis:e||self).apipass=e.apipass||{},e.apipass.messages={}),e.i1,e.ng.core,e.i2,e.ng.forms,e.ng.common)}(this,(function(e,t,r,n,o,s){"use strict";var a=function(){function e(e,t){this.toasterService=e,this.translate=t}return e.prototype.successMessage=function(e,t,r){this.customMessage("success",e,t||"",r)},e.prototype.errorMessage=function(e,t){this.customMessage("error",this.translate.instant("MESSAGE.ERROR"),e,t)},e.prototype.errorMessages=function(e,t){var r,n=this;null===(r=null==e?void 0:e.causes)||void 0===r||r.forEach((function(e){var r=e.code?n.translate.instant("EXCEPTIONS_CODE."+e.code):e.message;n.customMessage("error",n.translate.instant("MESSAGE.ERROR"),r,t)}))},e.prototype.warningMessage=function(e,t){this.customMessage("error",this.translate.instant("MESSAGE.WARNING"),e,t)},e.prototype.customMessage=function(e,r,n,o){var s={type:e,title:r,timeout:3e4,body:n,bodyOutputType:t.BodyOutputType.TrustedHtml};document.getElementById("toast-container").className=o||"toast-top-right",this.toasterService.pop(s)},e}();function i(e,t){if(1&e&&(r.ɵɵelementStart(0,"strong",9),r.ɵɵtext(1),r.ɵɵelementEnd()),2&e){var n=r.ɵɵnextContext(2);r.ɵɵadvance(1),r.ɵɵtextInterpolate(n.title)}}function c(e,t){if(1&e&&(r.ɵɵelementStart(0,"span",10),r.ɵɵtext(1),r.ɵɵelementEnd()),2&e){var n=r.ɵɵnextContext(2);r.ɵɵadvance(1),r.ɵɵtextInterpolate(n.message)}}function l(e,t){if(1&e&&r.ɵɵelement(0,"span",17),2&e){var n=t.$implicit;r.ɵɵproperty("innerHTML",n.message,r.ɵɵsanitizeHtml)}}function p(e,t){if(1&e&&(r.ɵɵelementStart(0,"span",15),r.ɵɵtemplate(1,l,1,1,"span",16),r.ɵɵelementEnd()),2&e){var n=r.ɵɵnextContext().$implicit;r.ɵɵadvance(1),r.ɵɵproperty("ngForOf",n)}}function u(e,t){if(1&e&&r.ɵɵelement(0,"span",17),2&e){var n=r.ɵɵnextContext().$implicit;r.ɵɵproperty("innerHTML",n,r.ɵɵsanitizeHtml)}}function m(e,t){if(1&e&&(r.ɵɵelementStart(0,"pre"),r.ɵɵtext(1),r.ɵɵelementEnd()),2&e){var n=r.ɵɵnextContext().$implicit,o=r.ɵɵnextContext(2);r.ɵɵadvance(1),r.ɵɵtextInterpolate1(" ",o.getErrorAsString(n),"\n ")}}function d(e,t){if(1&e&&(r.ɵɵelementStart(0,"div",11),r.ɵɵtemplate(1,p,2,1,"span",12),r.ɵɵtemplate(2,u,1,1,"span",13),r.ɵɵtemplate(3,m,2,1,"pre",14),r.ɵɵelementEnd()),2&e){var n=t.$implicit,o=r.ɵɵnextContext(2);r.ɵɵadvance(1),r.ɵɵproperty("ngIf",o.compilerError&&o.isArray(n)),r.ɵɵadvance(1),r.ɵɵproperty("ngIf",(!o.compilerError||o.compilerError&&!o.isArray(n))&&!o.isErrorObject(n)),r.ɵɵadvance(1),r.ɵɵproperty("ngIf",!o.compilerError&&o.isErrorObject(n))}}function f(e,t){if(1&e){var n=r.ɵɵgetCurrentView();r.ɵɵelementStart(0,"div",1),r.ɵɵelementStart(1,"div",2),r.ɵɵelementStart(2,"div",3),r.ɵɵtemplate(3,i,2,1,"strong",4),r.ɵɵtemplate(4,c,2,1,"span",5),r.ɵɵtemplate(5,d,4,3,"div",6),r.ɵɵelementStart(6,"button",7),r.ɵɵlistener("click",(function(){return r.ɵɵrestoreView(n),r.ɵɵnextContext().close()})),r.ɵɵelementStart(7,"span",8),r.ɵɵtext(8,"×"),r.ɵɵelementEnd(),r.ɵɵelementEnd(),r.ɵɵelementEnd(),r.ɵɵelementEnd(),r.ɵɵelementEnd()}if(2&e){var o=r.ɵɵnextContext();r.ɵɵadvance(2),r.ɵɵclassMapInterpolate1("alert ",o.type," alert-dismissible fade show"),r.ɵɵadvance(1),r.ɵɵproperty("ngIf",o.title),r.ɵɵadvance(1),r.ɵɵproperty("ngIf",o.message),r.ɵɵadvance(1),r.ɵɵproperty("ngForOf",o.errors)}}a.ɵfac=function(e){return new(e||a)(r.ɵɵinject(t.ToasterService),r.ɵɵinject(n.TranslateService))},a.ɵprov=r.ɵɵdefineInjectable({token:a,factory:a.ɵfac});var g=function(){function e(){this.type="alert-danger",this.title="",this.message="",this.compilerError=!1,this.errors=[],this.onClose=new r.EventEmitter}return e.prototype.close=function(){this.onClose.next()},e.prototype.isArray=function(e){return Array.isArray(e)},e.prototype.isErrorObject=function(e){return e instanceof Object||this.isArray(e)},e.prototype.getErrorAsString=function(e){return JSON.stringify(e,void 0,2)},e}();g.ɵfac=function(e){return new(e||g)},g.ɵcmp=r.ɵɵdefineComponent({type:g,selectors:[["message-box"]],inputs:{type:"type",title:"title",message:"message",compilerError:"compilerError",errors:"errors"},outputs:{onClose:"onClose"},decls:1,vars:1,consts:[["class","error-box row",4,"ngIf"],[1,"error-box","row"],[1,"col-12"],["role","alert"],["class","title",4,"ngIf"],["class","detail-message",4,"ngIf"],["class","alert-text",4,"ngFor","ngForOf"],["type","button","aria-label","Close",1,"close",3,"click"],["aria-hidden","true"],[1,"title"],[1,"detail-message"],[1,"alert-text"],["class","causes",4,"ngIf"],["class","error-text",3,"innerHTML",4,"ngIf"],[4,"ngIf"],[1,"causes"],["class","error-text",3,"innerHTML",4,"ngFor","ngForOf"],[1,"error-text",3,"innerHTML"]],template:function(e,t){1&e&&r.ɵɵtemplate(0,f,9,6,"div",0),2&e&&r.ɵɵproperty("ngIf",t.errors.length>0)},directives:[s.NgIf,s.NgForOf],styles:[".error-box[_ngcontent-%COMP%]{background:#f5caca;border:1px solid #8b4646;border-radius:5px;color:#8b4646;width:100%}.error-box[_ngcontent-%COMP%] .alert[_ngcontent-%COMP%]{padding:10px 15px!important}.error-box[_ngcontent-%COMP%] .alert[_ngcontent-%COMP%] .close[_ngcontent-%COMP%]{background:none;border:none;color:#8b4646;cursor:pointer;font-size:20px;position:absolute;right:2px;top:2px}.error-box[_ngcontent-%COMP%] .alert[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{margin-right:5px;word-break:break-word}.error-box[_ngcontent-%COMP%] .causes[_ngcontent-%COMP%]{word-break:break-word}"]});var x=function(){};x.ɵmod=r.ɵɵdefineNgModule({type:x}),x.ɵinj=r.ɵɵdefineInjector({factory:function(e){return new(e||x)},providers:[a],imports:[[s.CommonModule,o.FormsModule,o.ReactiveFormsModule,t.ToasterModule]]}),("undefined"==typeof ngJitMode||ngJitMode)&&r.ɵɵsetNgModuleScope(x,{declarations:[g],imports:[s.CommonModule,o.FormsModule,o.ReactiveFormsModule,t.ToasterModule],exports:[g]}),Object.keys(t).forEach((function(r){"default"!==r&&Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[r]}})})),e.MessageBoxComponent=g,e.MessagesModule=x,e.MessagesService=a,Object.defineProperty(e,"__esModule",{value:!0})}));
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("angular2-toaster"),require("@angular/core"),require("@ngx-translate/core"),require("@angular/forms"),require("@angular/common")):"function"==typeof define&&define.amd?define("@apipass/messages",["exports","angular2-toaster","@angular/core","@ngx-translate/core","@angular/forms","@angular/common"],t):t(((e="undefined"!=typeof globalThis?globalThis:e||self).apipass=e.apipass||{},e.apipass.messages={}),e.i1,e.ng.core,e.i2,e.ng.forms,e.ng.common)}(this,(function(e,t,r,n,o,s){"use strict";var a=function(){function e(e,t){this.toasterService=e,this.translate=t}return e.prototype.successMessage=function(e,t,r){this.customMessage("success",e,t||"",r)},e.prototype.errorMessage=function(e,t){this.customMessage("error",this.translate.instant("MESSAGE.ERROR"),e,t)},e.prototype.errorMessages=function(e,t){var r,n=this;null===(r=null==e?void 0:e.causes)||void 0===r||r.forEach((function(e){var r=e.code?n.translate.instant("EXCEPTIONS_CODE."+e.code):e.message;n.customMessage("error",n.translate.instant("MESSAGE.ERROR"),r,t)}))},e.prototype.warningMessage=function(e,t){this.customMessage("error",this.translate.instant("MESSAGE.WARNING"),e,t)},e.prototype.customMessage=function(e,r,n,o){var s={type:e,title:r,timeout:3e4,body:n,bodyOutputType:t.BodyOutputType.TrustedHtml};document.getElementById("toast-container").className=o||"toast-top-right",this.toasterService.pop(s)},e}();function i(e,t){if(1&e&&(r.ɵɵelementStart(0,"strong",9),r.ɵɵtext(1),r.ɵɵelementEnd()),2&e){var n=r.ɵɵnextContext(2);r.ɵɵadvance(1),r.ɵɵtextInterpolate(n.title)}}function c(e,t){if(1&e&&(r.ɵɵelementStart(0,"span",10),r.ɵɵtext(1),r.ɵɵelementEnd()),2&e){var n=r.ɵɵnextContext(2);r.ɵɵadvance(1),r.ɵɵtextInterpolate(n.message)}}function l(e,t){if(1&e&&r.ɵɵelement(0,"span",17),2&e){var n=t.$implicit;r.ɵɵproperty("innerHTML",n.message,r.ɵɵsanitizeHtml)}}function p(e,t){if(1&e&&(r.ɵɵelementStart(0,"span",15),r.ɵɵtemplate(1,l,1,1,"span",16),r.ɵɵelementEnd()),2&e){var n=r.ɵɵnextContext().$implicit;r.ɵɵadvance(1),r.ɵɵproperty("ngForOf",n)}}function u(e,t){if(1&e&&r.ɵɵelement(0,"span",17),2&e){var n=r.ɵɵnextContext().$implicit;r.ɵɵproperty("innerHTML",n,r.ɵɵsanitizeHtml)}}function m(e,t){if(1&e&&(r.ɵɵelementStart(0,"pre"),r.ɵɵtext(1),r.ɵɵelementEnd()),2&e){var n=r.ɵɵnextContext().$implicit,o=r.ɵɵnextContext(2);r.ɵɵadvance(1),r.ɵɵtextInterpolate1(" ",o.getErrorAsString(n),"\n ")}}function d(e,t){if(1&e&&(r.ɵɵelementStart(0,"div",11),r.ɵɵtemplate(1,p,2,1,"span",12),r.ɵɵtemplate(2,u,1,1,"span",13),r.ɵɵtemplate(3,m,2,1,"pre",14),r.ɵɵelementEnd()),2&e){var n=t.$implicit,o=r.ɵɵnextContext(2);r.ɵɵadvance(1),r.ɵɵproperty("ngIf",o.compilerError&&o.isArray(n)),r.ɵɵadvance(1),r.ɵɵproperty("ngIf",(!o.compilerError||o.compilerError&&!o.isArray(n))&&!o.isErrorObject(n)),r.ɵɵadvance(1),r.ɵɵproperty("ngIf",!o.compilerError&&o.isErrorObject(n))}}function f(e,t){if(1&e){var n=r.ɵɵgetCurrentView();r.ɵɵelementStart(0,"div",1),r.ɵɵelementStart(1,"div",2),r.ɵɵelementStart(2,"div",3),r.ɵɵtemplate(3,i,2,1,"strong",4),r.ɵɵtemplate(4,c,2,1,"span",5),r.ɵɵtemplate(5,d,4,3,"div",6),r.ɵɵelementStart(6,"button",7),r.ɵɵlistener("click",(function(){return r.ɵɵrestoreView(n),r.ɵɵnextContext().close()})),r.ɵɵelementStart(7,"span",8),r.ɵɵtext(8,"×"),r.ɵɵelementEnd(),r.ɵɵelementEnd(),r.ɵɵelementEnd(),r.ɵɵelementEnd(),r.ɵɵelementEnd()}if(2&e){var o=r.ɵɵnextContext();r.ɵɵadvance(2),r.ɵɵclassMapInterpolate1("alert ",o.type," alert-dismissible fade show"),r.ɵɵadvance(1),r.ɵɵproperty("ngIf",o.title),r.ɵɵadvance(1),r.ɵɵproperty("ngIf",o.message),r.ɵɵadvance(1),r.ɵɵproperty("ngForOf",o.errors)}}a.ɵfac=function(e){return new(e||a)(r.ɵɵinject(t.ToasterService),r.ɵɵinject(n.TranslateService))},a.ɵprov=r.ɵɵdefineInjectable({token:a,factory:a.ɵfac});var g=function(){function e(){this.type="alert-danger",this.title="",this.message="",this.compilerError=!1,this.errors=[],this.onClose=new r.EventEmitter}return e.prototype.close=function(){this.onClose.next()},e.prototype.isArray=function(e){return Array.isArray(e)},e.prototype.isErrorObject=function(e){return e instanceof Object||this.isArray(e)},e.prototype.getErrorAsString=function(e){return JSON.stringify(e,void 0,2)},e}();g.ɵfac=function(e){return new(e||g)},g.ɵcmp=r.ɵɵdefineComponent({type:g,selectors:[["message-box"]],inputs:{type:"type",title:"title",message:"message",compilerError:"compilerError",errors:"errors"},outputs:{onClose:"onClose"},decls:1,vars:1,consts:[["class","error-box row",4,"ngIf"],[1,"error-box","row"],[1,"col-12"],["role","alert"],["class","title",4,"ngIf"],["class","detail-message",4,"ngIf"],["class","alert-text",4,"ngFor","ngForOf"],["type","button","aria-label","Close",1,"close",3,"click"],["aria-hidden","true"],[1,"title"],[1,"detail-message"],[1,"alert-text"],["class","causes",4,"ngIf"],["class","error-text",3,"innerHTML",4,"ngIf"],[4,"ngIf"],[1,"causes"],["class","error-text",3,"innerHTML",4,"ngFor","ngForOf"],[1,"error-text",3,"innerHTML"]],template:function(e,t){1&e&&r.ɵɵtemplate(0,f,9,6,"div",0),2&e&&r.ɵɵproperty("ngIf",t.errors.length>0)},directives:[s.NgIf,s.NgForOf],styles:[".error-box[_ngcontent-%COMP%]{background:#f5caca;border:1px solid #8b4646;border-radius:5px;color:#8b4646;position:relative;width:100%}.error-box[_ngcontent-%COMP%] .alert[_ngcontent-%COMP%]{padding:10px 15px!important}.error-box[_ngcontent-%COMP%] .alert[_ngcontent-%COMP%] .close[_ngcontent-%COMP%]{background:none;border:none;color:#8b4646;cursor:pointer;font-size:20px;position:absolute;right:2px;top:2px}.error-box[_ngcontent-%COMP%] .alert[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{margin-right:5px;word-break:break-word}.error-box[_ngcontent-%COMP%] .causes[_ngcontent-%COMP%]{word-break:break-word}"]});var x=function(){};x.ɵmod=r.ɵɵdefineNgModule({type:x}),x.ɵinj=r.ɵɵdefineInjector({factory:function(e){return new(e||x)},providers:[a],imports:[[s.CommonModule,o.FormsModule,o.ReactiveFormsModule,t.ToasterModule]]}),("undefined"==typeof ngJitMode||ngJitMode)&&r.ɵɵsetNgModuleScope(x,{declarations:[g],imports:[s.CommonModule,o.FormsModule,o.ReactiveFormsModule,t.ToasterModule],exports:[g]}),Object.keys(t).forEach((function(r){"default"!==r&&Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[r]}})})),e.MessageBoxComponent=g,e.MessagesModule=x,e.MessagesService=a,Object.defineProperty(e,"__esModule",{value:!0})}));
|
|
2
2
|
//# sourceMappingURL=apipass-messages.umd.min.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../projects/messages/src/messages.service.ts","../../../projects/messages/src/message-box/message-box.component.html","../../../projects/messages/src/message-box/message-box.component.ts","../../../projects/messages/src/messages.module.ts"],"names":["MessagesService","toasterService","translate","this","prototype","successMessage","title","body","positionClass","customMessage","errorMessage","instant","errorMessages","error","_this","_a","causes","forEach","item","code","message","warningMessage","type","timeout","bodyOutputType","BodyOutputType","TrustedHtml","document","getElementById","className","pop","i0.ɵɵelementStart","i0.ɵɵtext","i0.ɵɵelementEnd","i0.ɵɵadvance","i0.ɵɵtextInterpolate","i0.ɵɵelement","i0.ɵɵproperty","i0.ɵɵtemplate","i0.ɵɵtextInterpolate1","i0.ɵɵlistener","i0.ɵɵclassMapInterpolate1","i0","ɵɵinject","i1","ToasterService","i2","TranslateService","factory","ɵfac","MessageBoxComponent","compilerError","errors","onClose","EventEmitter","close","next","isArray","Array","isErrorObject","Object","getErrorAsString","JSON","stringify","undefined","selectors","inputs","outputs","decls","vars","consts","template","rf","ctx","MessagesModule","providers","imports","CommonModule","FormsModule","ReactiveFormsModule","ToasterModule","declarations","exports"],"mappings":"ilBAUE,SAAAA,EAAYC,EAAgCC,GAC1CC,KAAKF,eAAiBA,EACtBE,KAAKD,UAAYA,SAGZF,EAAAI,UAAAC,eAAA,SAAeC,EAAeC,EAAeC,GAClDL,KAAKM,cAAc,UAAWH,EAAOC,GAAQ,GAAIC,IAG5CR,EAAAI,UAAAM,aAAA,SAAaH,EAAcC,GAChCL,KAAKM,cAAc,QAASN,KAAKD,UAAUS,QAAQ,iBAAkBJ,EAAMC,IAGtER,EAAAI,UAAAQ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A,EAAA,kBAAA,CAAA,EAAA,cAAA,CAAA,QAAA,SAAA,EAAA,QAAA,CAAA,QAAA,aAAA,EAAA,YAAA,EAAA,QAAA,CAAA,EAAA,QAAA,CAAA,EAAA,UAAA,CAAA,QAAA,aAAA,EAAA,YAAA,EAAA,QAAA,WAAA,CAAA,EAAA,aAAA,EAAA,cAAAC,SAAA,SAAAC,EAAAC,QDPhCnC,EAAAA,WAAAA,EAAAA,EAAAA,EAAAA,EAAAA,MAAAA,QAA2BD,EAAAA,WAAAA,OAAAA,EAAAA,OAAAA,OAAAA,
|
|
1
|
+
{"version":3,"sources":["../../../projects/messages/src/messages.service.ts","../../../projects/messages/src/message-box/message-box.component.html","../../../projects/messages/src/message-box/message-box.component.ts","../../../projects/messages/src/messages.module.ts"],"names":["MessagesService","toasterService","translate","this","prototype","successMessage","title","body","positionClass","customMessage","errorMessage","instant","errorMessages","error","_this","_a","causes","forEach","item","code","message","warningMessage","type","timeout","bodyOutputType","BodyOutputType","TrustedHtml","document","getElementById","className","pop","i0.ɵɵelementStart","i0.ɵɵtext","i0.ɵɵelementEnd","i0.ɵɵadvance","i0.ɵɵtextInterpolate","i0.ɵɵelement","i0.ɵɵproperty","i0.ɵɵtemplate","i0.ɵɵtextInterpolate1","i0.ɵɵlistener","i0.ɵɵclassMapInterpolate1","i0","ɵɵinject","i1","ToasterService","i2","TranslateService","factory","ɵfac","MessageBoxComponent","compilerError","errors","onClose","EventEmitter","close","next","isArray","Array","isErrorObject","Object","getErrorAsString","JSON","stringify","undefined","selectors","inputs","outputs","decls","vars","consts","template","rf","ctx","MessagesModule","providers","imports","CommonModule","FormsModule","ReactiveFormsModule","ToasterModule","declarations","exports"],"mappings":"ilBAUE,SAAAA,EAAYC,EAAgCC,GAC1CC,KAAKF,eAAiBA,EACtBE,KAAKD,UAAYA,SAGZF,EAAAI,UAAAC,eAAA,SAAeC,EAAeC,EAAeC,GAClDL,KAAKM,cAAc,UAAWH,EAAOC,GAAQ,GAAIC,IAG5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,QAAA,aAAA,EAAA,QAAA,WAAA,CAAA,OAAA,SAAA,aAAA,QAAA,EAAA,QAAA,EAAA,SAAA,CAAA,cAAA,QAAA,CAAA,EAAA,SAAA,CAAA,EAAA,kBAAA,CAAA,EAAA,cAAA,CAAA,QAAA,SAAA,EAAA,QAAA,CAAA,QAAA,aAAA,EAAA,YAAA,EAAA,QAAA,CAAA,EAAA,QAAA,CAAA,EAAA,UAAA,CAAA,QAAA,aAAA,EAAA,YAAA,EAAA,QAAA,WAAA,CAAA,EAAA,aAAA,EAAA,cAAAC,SAAA,SAAAC,EAAAC,QDPhCnC,EAAAA,WAAAA,EAAAA,EAAAA,EAAAA,EAAAA,MAAAA,QAA2BD,EAAAA,WAAAA,OAAAA,EAAAA,OAAAA,OAAAA,mqBEsB3B,6CAAaqC,iEAAAA,IAAcC,UAFd,CAAC3E,GAAgB4E,QAAA,CAZnB,CACPC,EAAAA,aACAC,EAAAA,YACAC,EAAAA,oBACAC,EAAAA,mFAUSN,EAAc,CAAAO,aAAA,CAPvB/B,GAAmB0B,QAAA,CANnBC,EAAAA,aACAC,EAAAA,YACAC,EAAAA,oBACAC,EAAAA,eAAaE,QAAA,CAMbhC","sourcesContent":["import {Injectable} from '@angular/core';\nimport {BodyOutputType, Toast, ToasterService} from 'angular2-toaster';\nimport {TranslateService} from '@ngx-translate/core';\n\n@Injectable()\nexport class MessagesService {\n\n private toasterService: ToasterService;\n private translate: TranslateService;\n\n constructor(toasterService: ToasterService, translate: TranslateService) {\n this.toasterService = toasterService;\n this.translate = translate;\n }\n\n public successMessage(title: string, body?: string, positionClass?: string): void {\n this.customMessage('success', title, body || '', positionClass);\n }\n\n public errorMessage(body: string, positionClass?: string): void {\n this.customMessage('error', this.translate.instant('MESSAGE.ERROR'), body, positionClass);\n }\n\n public errorMessages(error: {\n statusCode: string,\n timestamp: string,\n causes: Array<{ code: string, message: string }>\n },\n positionClass?: string): void {\n error?.causes?.forEach(item => {\n const errorMessage = item.code ? this.translate.instant(`EXCEPTIONS_CODE.${item.code}`) : item.message;\n this.customMessage('error', this.translate.instant('MESSAGE.ERROR'), errorMessage, positionClass);\n });\n }\n\n public warningMessage(body: string, positionClass?: string): void {\n this.customMessage('error', this.translate.instant('MESSAGE.WARNING'), body, positionClass);\n }\n\n public customMessage(type: string, title: string, body: string, positionClass?: any): void {\n const message: Toast = {\n type,\n title,\n timeout: 30000,\n body,\n bodyOutputType: BodyOutputType.TrustedHtml\n };\n const toastContainer: any = document.getElementById('toast-container');\n toastContainer.className = positionClass || 'toast-top-right';\n this.toasterService.pop(message);\n }\n}\n","<div class=\"error-box row\" *ngIf=\"errors.length > 0\">\n <div class=\"col-12\">\n <div class=\"alert {{type}} alert-dismissible fade show\" role=\"alert\">\n <strong class=\"title\" *ngIf=\"title\">{{title}}</strong>\n <span class=\"detail-message\" *ngIf=\"message\">{{message}}</span>\n <div class=\"alert-text\" *ngFor=\"let error of errors\">\n <span class=\"causes\" *ngIf=\"compilerError && isArray(error)\">\n <span class=\"error-text\" *ngFor=\"let item of error\" [innerHTML]=\"item.message\"></span>\n </span>\n\n <span class=\"error-text\"\n *ngIf=\"(!compilerError || (compilerError && !isArray(error))) && !isErrorObject(error)\" [innerHTML]=\"error\"></span>\n <pre *ngIf=\"!compilerError && isErrorObject(error)\">\n {{getErrorAsString(error)}}\n </pre>\n </div>\n <button type=\"button\" class=\"close\" (click)=\"close()\" aria-label=\"Close\">\n <span aria-hidden=\"true\">×</span>\n </button>\n </div>\n </div>\n</div>\n","import { Component, Input, EventEmitter, Output } from '@angular/core';\n\n@Component({\n selector: 'message-box',\n templateUrl: 'message-box.component.html',\n styleUrls: ['message-box.component.scss']\n})\nexport class MessageBoxComponent {\n\n @Input() public type = 'alert-danger';\n @Input() public title = '';\n @Input() public message = '';\n @Input() public compilerError = false;\n @Input() public errors: [] = [];\n\n @Output() public onClose = new EventEmitter<void>();\n\n public close(): void {\n this.onClose.next();\n }\n\n public isArray(error: any): boolean {\n return Array.isArray(error);\n }\n\n public isErrorObject(error: any): boolean {\n return error instanceof Object || this.isArray(error);\n }\n\n public getErrorAsString(error: any): string {\n return JSON.stringify(error, undefined, 2);\n }\n\n}\n","import {NgModule} from '@angular/core';\nimport {FormsModule, ReactiveFormsModule} from '@angular/forms';\nimport {CommonModule} from '@angular/common';\nimport {MessageBoxComponent} from './message-box/message-box.component';\nimport {MessagesService} from './messages.service';\nimport {ToasterModule} from 'angular2-toaster';\n\n@NgModule({\n imports: [\n CommonModule,\n FormsModule,\n ReactiveFormsModule,\n ToasterModule\n ],\n declarations: [\n MessageBoxComponent\n ],\n exports: [\n MessageBoxComponent\n ],\n providers: [MessagesService]\n})\nexport class MessagesModule {}\n"]}
|
|
@@ -121,7 +121,7 @@ MessageBoxComponent.ɵcmp = i0.ɵɵdefineComponent({ type: MessageBoxComponent,
|
|
|
121
121
|
i0.ɵɵtemplate(0, MessageBoxComponent_div_0_Template, 9, 6, "div", 0);
|
|
122
122
|
} if (rf & 2) {
|
|
123
123
|
i0.ɵɵproperty("ngIf", ctx.errors.length > 0);
|
|
124
|
-
} }, directives: [i1.NgIf, i1.NgForOf], styles: [".error-box[_ngcontent-%COMP%]{background:#f5caca;border:1px solid #8b4646;border-radius:5px;color:#8b4646;width:100%}.error-box[_ngcontent-%COMP%] .alert[_ngcontent-%COMP%]{padding:10px 15px!important}.error-box[_ngcontent-%COMP%] .alert[_ngcontent-%COMP%] .close[_ngcontent-%COMP%]{background:none;border:none;color:#8b4646;cursor:pointer;font-size:20px;position:absolute;right:2px;top:2px}.error-box[_ngcontent-%COMP%] .alert[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{margin-right:5px;word-break:break-word}.error-box[_ngcontent-%COMP%] .causes[_ngcontent-%COMP%]{word-break:break-word}"] });
|
|
124
|
+
} }, directives: [i1.NgIf, i1.NgForOf], styles: [".error-box[_ngcontent-%COMP%]{background:#f5caca;border:1px solid #8b4646;border-radius:5px;color:#8b4646;position:relative;width:100%}.error-box[_ngcontent-%COMP%] .alert[_ngcontent-%COMP%]{padding:10px 15px!important}.error-box[_ngcontent-%COMP%] .alert[_ngcontent-%COMP%] .close[_ngcontent-%COMP%]{background:none;border:none;color:#8b4646;cursor:pointer;font-size:20px;position:absolute;right:2px;top:2px}.error-box[_ngcontent-%COMP%] .alert[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{margin-right:5px;word-break:break-word}.error-box[_ngcontent-%COMP%] .causes[_ngcontent-%COMP%]{word-break:break-word}"] });
|
|
125
125
|
/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MessageBoxComponent, [{
|
|
126
126
|
type: Component,
|
|
127
127
|
args: [{
|
|
@@ -165,7 +165,7 @@ MessageBoxComponent.ɵcmp = ɵɵdefineComponent({ type: MessageBoxComponent, sel
|
|
|
165
165
|
ɵɵtemplate(0, MessageBoxComponent_div_0_Template, 9, 6, "div", 0);
|
|
166
166
|
} if (rf & 2) {
|
|
167
167
|
ɵɵproperty("ngIf", ctx.errors.length > 0);
|
|
168
|
-
} }, directives: [NgIf, NgForOf], styles: [".error-box[_ngcontent-%COMP%]{background:#f5caca;border:1px solid #8b4646;border-radius:5px;color:#8b4646;width:100%}.error-box[_ngcontent-%COMP%] .alert[_ngcontent-%COMP%]{padding:10px 15px!important}.error-box[_ngcontent-%COMP%] .alert[_ngcontent-%COMP%] .close[_ngcontent-%COMP%]{background:none;border:none;color:#8b4646;cursor:pointer;font-size:20px;position:absolute;right:2px;top:2px}.error-box[_ngcontent-%COMP%] .alert[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{margin-right:5px;word-break:break-word}.error-box[_ngcontent-%COMP%] .causes[_ngcontent-%COMP%]{word-break:break-word}"] });
|
|
168
|
+
} }, directives: [NgIf, NgForOf], styles: [".error-box[_ngcontent-%COMP%]{background:#f5caca;border:1px solid #8b4646;border-radius:5px;color:#8b4646;position:relative;width:100%}.error-box[_ngcontent-%COMP%] .alert[_ngcontent-%COMP%]{padding:10px 15px!important}.error-box[_ngcontent-%COMP%] .alert[_ngcontent-%COMP%] .close[_ngcontent-%COMP%]{background:none;border:none;color:#8b4646;cursor:pointer;font-size:20px;position:absolute;right:2px;top:2px}.error-box[_ngcontent-%COMP%] .alert[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{margin-right:5px;word-break:break-word}.error-box[_ngcontent-%COMP%] .causes[_ngcontent-%COMP%]{word-break:break-word}"] });
|
|
169
169
|
/*@__PURE__*/ (function () { ɵsetClassMetadata(MessageBoxComponent, [{
|
|
170
170
|
type: Component,
|
|
171
171
|
args: [{
|