@adins/ucviewgeneric 2.0.57 → 2.0.58
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/adins-ucviewgeneric.metadata.json +1 -1
- package/bundles/adins-ucviewgeneric.umd.js +1 -1
- package/bundles/adins-ucviewgeneric.umd.min.js +1 -1
- package/esm2015/lib/ucviewgeneric.component.js +1 -1
- package/esm5/lib/ucviewgeneric.component.js +1 -1
- package/fesm2015/adins-ucviewgeneric.js +1 -1
- package/fesm5/adins-ucviewgeneric.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"__symbolic":"module","version":4,"metadata":{"UcviewgenericService":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":2,"character":1},"arguments":[{"providedIn":"root"}]}],"members":{"__ctor__":[{"__symbolic":"constructor"}]},"statics":{"ngInjectableDef":{}}},"UcviewgenericComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":7,"character":1},"arguments":[{"selector":"lib-ucviewgeneric","styles":[],"template":"<section id=\"horizontal-form-layouts\">\r\n <div class=\"row text-left\">\r\n <div class=\"col-md-12\">\r\n <div class=\"card\" *ngIf=\"isReady\">\r\n <div class=\"pl-3 mb-2 mt-2\" *ngIf=\"viewList?.title != ''\">\r\n <h4 class=\"card-title ucSearch-title\" id=\"horz-layout-colored-controls\" translate> {{ viewList.title }} </h4>\r\n </div>\r\n <div class=\"card-body\" *ngFor=\"let ss of viewList?.subsection;let i = index;\">\r\n <div class=\"px-3\">\r\n <lib-ucSubsection *ngIf=\"ss.subsection != ''\" [id]=\"ss.subSectionId + 'id'\" [title]=\"ss.subSectionTitle\"\r\n [panel]=\"ss.subSectionId\">\r\n </lib-ucSubsection>\r\n <div class=\"form-body\" [id]='ss.subSectionId'>\r\n <div class=\"form-group row\">\r\n <div *ngFor=\"let mi of ss?.mainInfo\"\r\n [ngClass]=\"{ 'col-md-6': mi.isHide == undefined || !mi.isHide || (viewInfoObjList[i][mi.property] != '' && viewInfoObjList[i][mi.property] != null)}\">\r\n <span *ngIf=\"mi.isHide == undefined || !mi.isHide || (viewInfoObjList[i][mi.property] != '' && viewInfoObjList[i][mi.property] != null)\">\r\n <div class=\"row\">\r\n <div class=\"col-md-6\">\r\n <label class=\"label-control\" *ngIf=\"mi.type != 'switch'\" translate> {{ mi.label }} </label>\r\n <label class=\"label-control\" *ngIf=\"mi.type == 'switch'\" translate> {{ mi
|
|
1
|
+
{"__symbolic":"module","version":4,"metadata":{"UcviewgenericService":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":2,"character":1},"arguments":[{"providedIn":"root"}]}],"members":{"__ctor__":[{"__symbolic":"constructor"}]},"statics":{"ngInjectableDef":{}}},"UcviewgenericComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":7,"character":1},"arguments":[{"selector":"lib-ucviewgeneric","styles":[],"template":"<section id=\"horizontal-form-layouts\">\r\n <div class=\"row text-left\">\r\n <div class=\"col-md-12\">\r\n <div class=\"card\" *ngIf=\"isReady\">\r\n <div class=\"pl-3 mb-2 mt-2\" *ngIf=\"viewList?.title != ''\">\r\n <h4 class=\"card-title ucSearch-title\" id=\"horz-layout-colored-controls\" translate> {{ viewList.title }} </h4>\r\n </div>\r\n <div class=\"card-body\" *ngFor=\"let ss of viewList?.subsection;let i = index;\">\r\n <div class=\"px-3\">\r\n <lib-ucSubsection *ngIf=\"ss.subsection != ''\" [id]=\"ss.subSectionId + 'id'\" [title]=\"ss.subSectionTitle\"\r\n [panel]=\"ss.subSectionId\">\r\n </lib-ucSubsection>\r\n <div class=\"form-body\" [id]='ss.subSectionId'>\r\n <div class=\"form-group row\">\r\n <div *ngFor=\"let mi of ss?.mainInfo\"\r\n [ngClass]=\"{ 'col-md-6': mi.isHide == undefined || !mi.isHide || (viewInfoObjList[i][mi.property] != '' && viewInfoObjList[i][mi.property] != null)}\">\r\n <span *ngIf=\"mi.isHide == undefined || !mi.isHide || (viewInfoObjList[i][mi.property] != '' && viewInfoObjList[i][mi.property] != null)\">\r\n <div class=\"row\">\r\n <div class=\"col-md-6\">\r\n <label class=\"label-control\" *ngIf=\"mi.type != 'switch'\" translate> {{ mi.label }} </label>\r\n <label class=\"label-control\" *ngIf=\"mi.type == 'switch'\" translate> {{ mi.case[0].result.label }} </label>\r\n </div>\r\n <div *ngIf=\"viewInfoObjList[i] != undefined\" class=\"col-md-6\" [ngClass]=\"{ 'text-left': mi.position == 'left',\r\n 'text-right': mi.position == 'right', 'text-center': mi.position == 'center' }\">\r\n <span\r\n *ngIf=\"(viewInfoObjList[i][mi.property] != '' && viewInfoObjList[i][mi.property] != null) || mi.type == 'switch'; then nonEmptyLabel else emptyLabel\"></span>\r\n <ng-template #emptyLabel>\r\n <label class=\"label-control\" translate>-</label>\r\n </ng-template>\r\n <ng-template #nonEmptyLabel>\r\n <span *ngIf=\"mi.type == 'text'\">\r\n <label\r\n *ngIf=\"viewInfoObjList[i][mi.property] != '' && viewInfoObjList[i][mi.property] != null\"\r\n class=\"label-control\" translate> {{ viewInfoObjList[i][mi.property] }}\r\n </label>\r\n <label\r\n *ngIf=\"viewInfoObjList[i][mi.property] == '' || viewInfoObjList[i][mi.property] == null\"\r\n class=\"label-control\" translate>-\r\n </label>\r\n </span>\r\n <label *ngIf=\"mi.type == 'currency'\" class=\"label-control\" translate>\r\n {{ viewInfoObjList[i][mi.property] | number:'.2':'en-US'}} </label>\r\n <label *ngIf=\"mi.type == 'date'\" class=\"label-control\" translate>\r\n {{ viewInfoObjList[i][mi.property] | date: 'dd-MMM-yyyy'}} </label>\r\n <label *ngIf=\"mi.type == 'link'\" class=\"label-control\" translate>\r\n <a *ngIf=\"!mi?.isFullpath\" [routerLink]=\"[mi.path]\" [target]=\"mi.target\"\r\n [queryParams]=\"genAction(viewInfoObjList[i], mi.param)\">\r\n {{ viewInfoObjList[i][mi.property] }}\r\n </a>\r\n <a *ngIf=\"mi?.isFullpath\" href=\"javascript:void(0);\"\r\n (click)=\"redirectFullPath(mi.fullpath, genAction(viewInfoObjList[i], mi.param), mi.target)\">\r\n {{ viewInfoObjList[i][mi.property] }}\r\n </a>\r\n </label>\r\n <label *ngIf=\"mi.type == 'callback'\" class=\"label-control\" translate>\r\n <a href=\"javascript:void(0);\" (click)=\"callbackFunction(viewInfoObjList[i], mi.key)\">\r\n {{ viewInfoObjList[i][mi.property] }}\r\n </a>\r\n </label>\r\n <textarea *ngIf=\"mi.type == 'textarea'\" class=\"form-control\" readonly\r\n translate> {{ viewInfoObjList[i][mi.property] }} </textarea>\r\n <span *ngIf=\"mi.type == 'boolean'\">\r\n <label *ngIf=\"viewInfoObjList[i][mi.property] == true\">Yes</label>\r\n <label *ngIf=\"viewInfoObjList[i][mi.property] == false\">No</label>\r\n <!-- <label\r\n *ngIf=\"viewInfoObjList[i][mi.property] == '' || viewInfoObjList[i][mi.property] == null\">-</label> -->\r\n </span>\r\n <span *ngIf=\"mi.type == 'concat'\">\r\n <label class=\"label-control\" translate> {{ mi.concat }}\r\n </label>\r\n </span>\r\n <span *ngIf=\"mi.type == 'switch'\">\r\n <span *ngFor=\"let cs of mi?.case\">\r\n <span *ngIf=\"switchCase(viewInfoObjList[i],cs)\">\r\n <span class=\"label-control\" *ngIf=\"cs.result.type == 'text'\">{{ viewInfoObjList[i][cs.result.property] }}</span>\r\n </span>\r\n </span>\r\n </span>\r\n </ng-template>\r\n </div>\r\n </div>\r\n </span>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n</section>"}]}],"members":{"viewGenericObj":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":14,"character":3}}]}],"callback":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":15,"character":3}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/router","name":"ActivatedRoute","line":21,"character":29},{"__symbolic":"reference","module":"@angular/common/http","name":"HttpClient","line":21,"character":59}]}],"ngOnInit":[{"__symbolic":"method"}],"initiateForm":[{"__symbolic":"method"}],"getJSON":[{"__symbolic":"method"}],"genAction":[{"__symbolic":"method"}],"redirectFullPath":[{"__symbolic":"method"}],"callbackFunction":[{"__symbolic":"method"}],"switchCase":[{"__symbolic":"method"}]}},"UcviewgenericModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":6,"character":1},"arguments":[{"declarations":[{"__symbolic":"reference","name":"UcviewgenericComponent"}],"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule","line":9,"character":4},{"__symbolic":"reference","module":"@angular/router","name":"RouterModule","line":10,"character":4},{"__symbolic":"reference","module":"@adins/uc-subsection","name":"UcSubsectionModule","line":11,"character":4}],"exports":[{"__symbolic":"reference","name":"UcviewgenericComponent"}]}]}],"members":{}}},"origins":{"UcviewgenericService":"./lib/ucviewgeneric.service","UcviewgenericComponent":"./lib/ucviewgeneric.component","UcviewgenericModule":"./lib/ucviewgeneric.module"},"importAs":"@adins/ucviewgeneric"}
|
|
@@ -409,7 +409,7 @@
|
|
|
409
409
|
UcviewgenericComponent.decorators = [
|
|
410
410
|
{ type: i0.Component, args: [{
|
|
411
411
|
selector: 'lib-ucviewgeneric',
|
|
412
|
-
template: "<section id=\"horizontal-form-layouts\">\r\n <div class=\"row text-left\">\r\n <div class=\"col-md-12\">\r\n <div class=\"card\" *ngIf=\"isReady\">\r\n <div class=\"pl-3 mb-2 mt-2\" *ngIf=\"viewList?.title != ''\">\r\n <h4 class=\"card-title ucSearch-title\" id=\"horz-layout-colored-controls\" translate> {{ viewList.title }} </h4>\r\n </div>\r\n <div class=\"card-body\" *ngFor=\"let ss of viewList?.subsection;let i = index;\">\r\n <div class=\"px-3\">\r\n <lib-ucSubsection *ngIf=\"ss.subsection != ''\" [id]=\"ss.subSectionId + 'id'\" [title]=\"ss.subSectionTitle\"\r\n [panel]=\"ss.subSectionId\">\r\n </lib-ucSubsection>\r\n <div class=\"form-body\" [id]='ss.subSectionId'>\r\n <div class=\"form-group row\">\r\n <div *ngFor=\"let mi of ss?.mainInfo\"\r\n [ngClass]=\"{ 'col-md-6': mi.isHide == undefined || !mi.isHide || (viewInfoObjList[i][mi.property] != '' && viewInfoObjList[i][mi.property] != null)}\">\r\n <span *ngIf=\"mi.isHide == undefined || !mi.isHide || (viewInfoObjList[i][mi.property] != '' && viewInfoObjList[i][mi.property] != null)\">\r\n <div class=\"row\">\r\n <div class=\"col-md-6\">\r\n <label class=\"label-control\" *ngIf=\"mi.type != 'switch'\" translate> {{ mi.label }} </label>\r\n <label class=\"label-control\" *ngIf=\"mi.type == 'switch'\" translate> {{ mi
|
|
412
|
+
template: "<section id=\"horizontal-form-layouts\">\r\n <div class=\"row text-left\">\r\n <div class=\"col-md-12\">\r\n <div class=\"card\" *ngIf=\"isReady\">\r\n <div class=\"pl-3 mb-2 mt-2\" *ngIf=\"viewList?.title != ''\">\r\n <h4 class=\"card-title ucSearch-title\" id=\"horz-layout-colored-controls\" translate> {{ viewList.title }} </h4>\r\n </div>\r\n <div class=\"card-body\" *ngFor=\"let ss of viewList?.subsection;let i = index;\">\r\n <div class=\"px-3\">\r\n <lib-ucSubsection *ngIf=\"ss.subsection != ''\" [id]=\"ss.subSectionId + 'id'\" [title]=\"ss.subSectionTitle\"\r\n [panel]=\"ss.subSectionId\">\r\n </lib-ucSubsection>\r\n <div class=\"form-body\" [id]='ss.subSectionId'>\r\n <div class=\"form-group row\">\r\n <div *ngFor=\"let mi of ss?.mainInfo\"\r\n [ngClass]=\"{ 'col-md-6': mi.isHide == undefined || !mi.isHide || (viewInfoObjList[i][mi.property] != '' && viewInfoObjList[i][mi.property] != null)}\">\r\n <span *ngIf=\"mi.isHide == undefined || !mi.isHide || (viewInfoObjList[i][mi.property] != '' && viewInfoObjList[i][mi.property] != null)\">\r\n <div class=\"row\">\r\n <div class=\"col-md-6\">\r\n <label class=\"label-control\" *ngIf=\"mi.type != 'switch'\" translate> {{ mi.label }} </label>\r\n <label class=\"label-control\" *ngIf=\"mi.type == 'switch'\" translate> {{ mi.case[0].result.label }} </label>\r\n </div>\r\n <div *ngIf=\"viewInfoObjList[i] != undefined\" class=\"col-md-6\" [ngClass]=\"{ 'text-left': mi.position == 'left',\r\n 'text-right': mi.position == 'right', 'text-center': mi.position == 'center' }\">\r\n <span\r\n *ngIf=\"(viewInfoObjList[i][mi.property] != '' && viewInfoObjList[i][mi.property] != null) || mi.type == 'switch'; then nonEmptyLabel else emptyLabel\"></span>\r\n <ng-template #emptyLabel>\r\n <label class=\"label-control\" translate>-</label>\r\n </ng-template>\r\n <ng-template #nonEmptyLabel>\r\n <span *ngIf=\"mi.type == 'text'\">\r\n <label\r\n *ngIf=\"viewInfoObjList[i][mi.property] != '' && viewInfoObjList[i][mi.property] != null\"\r\n class=\"label-control\" translate> {{ viewInfoObjList[i][mi.property] }}\r\n </label>\r\n <label\r\n *ngIf=\"viewInfoObjList[i][mi.property] == '' || viewInfoObjList[i][mi.property] == null\"\r\n class=\"label-control\" translate>-\r\n </label>\r\n </span>\r\n <label *ngIf=\"mi.type == 'currency'\" class=\"label-control\" translate>\r\n {{ viewInfoObjList[i][mi.property] | number:'.2':'en-US'}} </label>\r\n <label *ngIf=\"mi.type == 'date'\" class=\"label-control\" translate>\r\n {{ viewInfoObjList[i][mi.property] | date: 'dd-MMM-yyyy'}} </label>\r\n <label *ngIf=\"mi.type == 'link'\" class=\"label-control\" translate>\r\n <a *ngIf=\"!mi?.isFullpath\" [routerLink]=\"[mi.path]\" [target]=\"mi.target\"\r\n [queryParams]=\"genAction(viewInfoObjList[i], mi.param)\">\r\n {{ viewInfoObjList[i][mi.property] }}\r\n </a>\r\n <a *ngIf=\"mi?.isFullpath\" href=\"javascript:void(0);\"\r\n (click)=\"redirectFullPath(mi.fullpath, genAction(viewInfoObjList[i], mi.param), mi.target)\">\r\n {{ viewInfoObjList[i][mi.property] }}\r\n </a>\r\n </label>\r\n <label *ngIf=\"mi.type == 'callback'\" class=\"label-control\" translate>\r\n <a href=\"javascript:void(0);\" (click)=\"callbackFunction(viewInfoObjList[i], mi.key)\">\r\n {{ viewInfoObjList[i][mi.property] }}\r\n </a>\r\n </label>\r\n <textarea *ngIf=\"mi.type == 'textarea'\" class=\"form-control\" readonly\r\n translate> {{ viewInfoObjList[i][mi.property] }} </textarea>\r\n <span *ngIf=\"mi.type == 'boolean'\">\r\n <label *ngIf=\"viewInfoObjList[i][mi.property] == true\">Yes</label>\r\n <label *ngIf=\"viewInfoObjList[i][mi.property] == false\">No</label>\r\n <!-- <label\r\n *ngIf=\"viewInfoObjList[i][mi.property] == '' || viewInfoObjList[i][mi.property] == null\">-</label> -->\r\n </span>\r\n <span *ngIf=\"mi.type == 'concat'\">\r\n <label class=\"label-control\" translate> {{ mi.concat }}\r\n </label>\r\n </span>\r\n <span *ngIf=\"mi.type == 'switch'\">\r\n <span *ngFor=\"let cs of mi?.case\">\r\n <span *ngIf=\"switchCase(viewInfoObjList[i],cs)\">\r\n <span class=\"label-control\" *ngIf=\"cs.result.type == 'text'\">{{ viewInfoObjList[i][cs.result.property] }}</span>\r\n </span>\r\n </span>\r\n </span>\r\n </ng-template>\r\n </div>\r\n </div>\r\n </span>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n</section>"
|
|
413
413
|
}] }
|
|
414
414
|
];
|
|
415
415
|
/** @nocollapse */
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
!function(e,i){"object"==typeof exports&&"undefined"!=typeof module?i(exports,require("@angular/common/http"),require("@angular/core"),require("@angular/common"),require("@angular/router"),require("@adins/uc-subsection")):"function"==typeof define&&define.amd?define("@adins/ucviewgeneric",["exports","@angular/common/http","@angular/core","@angular/common","@angular/router","@adins/uc-subsection"],i):i((e.adins=e.adins||{},e.adins.ucviewgeneric={}),e.ng.common.http,e.ng.core,e.ng.common,e.ng.router,e.ucSubsection)}(this,function(e,i,t,n,r,o){"use strict";var s=(a.decorators=[{type:t.Injectable,args:[{providedIn:"root"}]}],a.ctorParameters=function(){return[]},a.ngInjectableDef=t.defineInjectable({factory:function(){return new a},token:a,providedIn:"root"}),a);function a(){}var l=function b(){this.viewInput="",this.viewEnvironment="",this.ddlEnvironments=new Array,this.whereValue=new Array},c=(p.prototype.ngOnInit=function(){console.log("viewgeneric"),this.initiateForm()},p.prototype.initiateForm=function(){var s=this;this.getJSON(this.viewGenericObj.viewInput).subscribe(function(e){s.viewList=e,s.viewInfoObjList=[];for(var i=0;i<s.viewList.subsection.length;i++)s.viewInfoObjList.push(i);for(var n,t=function(o){null!=s.viewList.subsection[o].querystring?(0==s.viewGenericObj.whereValue.length?s.viewList.subsection[o].querystring.whereQuery=Object.values(s.getList):s.viewList.subsection[o].querystring.whereQuery=s.viewGenericObj.whereValue,s.viewList.subsection[o].mainInfoPath!=undefined&&""!=s.viewList.subsection[o].mainInfoPath&&s.viewGenericObj.viewEnvironment!=undefined&&""!=s.viewGenericObj.viewEnvironment?s.viewList.subsection[o].fullpath=s.viewGenericObj.viewEnvironment+s.viewList.subsection[o].mainInfoPath:s.viewList.subsection[o].fullpath=s.viewList.subsection[o].mainInfoUrl,n={querystring:s.viewList.subsection[o].querystring},s.http.post(s.viewList.subsection[o].fullpath,n).subscribe(function(e){s.viewInfoObjList[o]=e.Data[0];for(var i=0;i<s.viewList.subsection[o].mainInfo.length;i++){if(s.viewList.subsection[o].mainInfo[i].propertyList!=undefined&&0!=s.viewList.subsection[o].mainInfo[i].propertyList.length){for(var n=s.viewList.subsection[o].mainInfo[i].propertyList,t="",r=0;r<n.length;r++)t=t+n[r].prefix+s.viewInfoObjList[o][n[r].property]+n[r].suffix;s.viewList.subsection[o].mainInfo[i].concat=t}if("link"==s.viewList.subsection[o].mainInfo[i].type&&s.viewGenericObj.ddlEnvironments!=undefined&&0!=s.viewGenericObj.ddlEnvironments.length){for(r=0;r<s.viewGenericObj.ddlEnvironments.length;r++)if(s.viewList.subsection[o].mainInfo[i].name==s.viewGenericObj.ddlEnvironments[r].name){s.viewList.subsection[o].mainInfo[i].isFullpath=!0,s.viewList.subsection[o].mainInfo[i].fullpath=s.viewGenericObj.ddlEnvironments[r].environment+s.viewList.subsection[o].mainInfo[i].path;break}}else"link"==s.viewList.subsection[o].mainInfo[i].type&&(s.viewList.subsection[o].mainInfo[i].isFullpath=!1,s.viewList.subsection[o].mainInfo[i].fullpath=s.viewList.subsection[o].mainInfo[i].path)}s.isReady=!0},function(e){console.log(e)})):(s.viewList.subsection[o].mainInfoPath!=undefined&&""!=s.viewList.subsection[o].mainInfoPath&&s.viewGenericObj.viewEnvironment!=undefined&&""!=s.viewGenericObj.viewEnvironment?s.viewList.subsection[o].fullpath=s.viewGenericObj.viewEnvironment+s.viewList.subsection[o].mainInfoPath:s.viewList.subsection[o].fullpath=s.viewList.subsection[o].mainInfoUrl,s.http.post(s.viewList.subsection[o].fullpath,s.getList).subscribe(function(e){s.viewInfoObjList[o]=e.Data},function(e){console.log(e)}))},r=0;r<s.viewList.subsection.length;r++)t(r)})},p.prototype.getJSON=function(e){return this.http.get(e)},p.prototype.genAction=function(e,i){for(var n={},t=0;t<i.length;t++)e[i[t].type]!=undefined||e[i[t].property]!=undefined?n[i[t].type]=e[i[t].property]:n[i[t].type]=i[t].property;return n},p.prototype.redirectFullPath=function(e,i,n){for(var t="",r=Object.keys(i),o=0;o<r.length;o++)t=""!=t?t+"&"+r[o]+"="+i[r[o]]:r[o]+"="+i[r[o]];window.open(e+"?"+t,n)},p.prototype.callbackFunction=function(e,i){void 0===i&&(i="");var n={ViewObj:e,Key:i};this.callback.emit(n)},p.prototype.switchCase=function(e,i){for(var n=!1,t=0;t<i.conditions.length;t++)if("EQ"==i.conditions[t].restriction)if(1!=i.conditions[t].isUser){if(e[i.conditions[t].property]!=i.conditions[t].value){n=!1;break}n=!0}else{var r=localStorage.getItem("Username");if(e[i.conditions[t].property]!=r){n=!1;break}n=!0}else if("NEQ"==i.conditions[t].restriction)if(1!=i.conditions[t].isUser){if(e[i.conditions[t].property]==i.conditions[t].value){n=!1;break}n=!0}else{if(r=localStorage.getItem("Username"),e[i.conditions[t].property]==r){n=!1;break}n=!0}else if("GT"==i.conditions[t].restriction)if(1!=i.conditions[t].isUser){if(!(e[i.conditions[t].property]>i.conditions[t].value)){n=!1;break}n=!0}else{if(r=localStorage.getItem("Username"),!(e[i.conditions[t].property]>r)){n=!1;break}n=!0}else if("GTE"==i.conditions[t].restriction)if(1!=i.conditions[t].isUser){if(!(e[i.conditions[t].property]>=i.conditions[t].value)){n=!1;break}n=!0}else{if(r=localStorage.getItem("Username"),!(e[i.conditions[t].property]>=r)){n=!1;break}n=!0}else if("LT"==i.conditions[t].restriction)if(1!=i.conditions[t].isUser){if(!(e[i.conditions[t].property]<i.conditions[t].value)){n=!1;break}n=!0}else{if(r=localStorage.getItem("Username"),!(e[i.conditions[t].property]<r)){n=!1;break}n=!0}else if("LTE"==i.conditions[t].restriction)if(1!=i.conditions[t].isUser){if(!(e[i.conditions[t].property]<=i.conditions[t].value)){n=!1;break}n=!0}else{if(r=localStorage.getItem("Username"),!(e[i.conditions[t].property]<=r)){n=!1;break}n=!0}return n},p.decorators=[{type:t.Component,args:[{selector:"lib-ucviewgeneric",template:'<section id="horizontal-form-layouts">\r\n <div class="row text-left">\r\n <div class="col-md-12">\r\n <div class="card" *ngIf="isReady">\r\n <div class="pl-3 mb-2 mt-2" *ngIf="viewList?.title != \'\'">\r\n <h4 class="card-title ucSearch-title" id="horz-layout-colored-controls" translate> {{ viewList.title }} </h4>\r\n </div>\r\n <div class="card-body" *ngFor="let ss of viewList?.subsection;let i = index;">\r\n <div class="px-3">\r\n <lib-ucSubsection *ngIf="ss.subsection != \'\'" [id]="ss.subSectionId + \'id\'" [title]="ss.subSectionTitle"\r\n [panel]="ss.subSectionId">\r\n </lib-ucSubsection>\r\n <div class="form-body" [id]=\'ss.subSectionId\'>\r\n <div class="form-group row">\r\n <div *ngFor="let mi of ss?.mainInfo"\r\n [ngClass]="{ \'col-md-6\': mi.isHide == undefined || !mi.isHide || (viewInfoObjList[i][mi.property] != \'\' && viewInfoObjList[i][mi.property] != null)}">\r\n <span *ngIf="mi.isHide == undefined || !mi.isHide || (viewInfoObjList[i][mi.property] != \'\' && viewInfoObjList[i][mi.property] != null)">\r\n <div class="row">\r\n <div class="col-md-6">\r\n <label class="label-control" *ngIf="mi.type != \'switch\'" translate> {{ mi.label }} </label>\r\n <label class="label-control" *ngIf="mi.type == \'switch\'" translate> {{ mi?.case?.result?.label }} </label>\r\n </div>\r\n <div *ngIf="viewInfoObjList[i] != undefined" class="col-md-6" [ngClass]="{ \'text-left\': mi.position == \'left\',\r\n \'text-right\': mi.position == \'right\', \'text-center\': mi.position == \'center\' }">\r\n <span\r\n *ngIf="(viewInfoObjList[i][mi.property] != \'\' && viewInfoObjList[i][mi.property] != null) || mi.type == \'switch\'; then nonEmptyLabel else emptyLabel"></span>\r\n <ng-template #emptyLabel>\r\n <label class="label-control" translate>-</label>\r\n </ng-template>\r\n <ng-template #nonEmptyLabel>\r\n <span *ngIf="mi.type == \'text\'">\r\n <label\r\n *ngIf="viewInfoObjList[i][mi.property] != \'\' && viewInfoObjList[i][mi.property] != null"\r\n class="label-control" translate> {{ viewInfoObjList[i][mi.property] }}\r\n </label>\r\n <label\r\n *ngIf="viewInfoObjList[i][mi.property] == \'\' || viewInfoObjList[i][mi.property] == null"\r\n class="label-control" translate>-\r\n </label>\r\n </span>\r\n <label *ngIf="mi.type == \'currency\'" class="label-control" translate>\r\n {{ viewInfoObjList[i][mi.property] | number:\'.2\':\'en-US\'}} </label>\r\n <label *ngIf="mi.type == \'date\'" class="label-control" translate>\r\n {{ viewInfoObjList[i][mi.property] | date: \'dd-MMM-yyyy\'}} </label>\r\n <label *ngIf="mi.type == \'link\'" class="label-control" translate>\r\n <a *ngIf="!mi?.isFullpath" [routerLink]="[mi.path]" [target]="mi.target"\r\n [queryParams]="genAction(viewInfoObjList[i], mi.param)">\r\n {{ viewInfoObjList[i][mi.property] }}\r\n </a>\r\n <a *ngIf="mi?.isFullpath" href="javascript:void(0);"\r\n (click)="redirectFullPath(mi.fullpath, genAction(viewInfoObjList[i], mi.param), mi.target)">\r\n {{ viewInfoObjList[i][mi.property] }}\r\n </a>\r\n </label>\r\n <label *ngIf="mi.type == \'callback\'" class="label-control" translate>\r\n <a href="javascript:void(0);" (click)="callbackFunction(viewInfoObjList[i], mi.key)">\r\n {{ viewInfoObjList[i][mi.property] }}\r\n </a>\r\n </label>\r\n <textarea *ngIf="mi.type == \'textarea\'" class="form-control" readonly\r\n translate> {{ viewInfoObjList[i][mi.property] }} </textarea>\r\n <span *ngIf="mi.type == \'boolean\'">\r\n <label *ngIf="viewInfoObjList[i][mi.property] == true">Yes</label>\r\n <label *ngIf="viewInfoObjList[i][mi.property] == false">No</label>\r\n \x3c!-- <label\r\n *ngIf="viewInfoObjList[i][mi.property] == \'\' || viewInfoObjList[i][mi.property] == null">-</label> --\x3e\r\n </span>\r\n <span *ngIf="mi.type == \'concat\'">\r\n <label class="label-control" translate> {{ mi.concat }}\r\n </label>\r\n </span>\r\n <span *ngIf="mi.type == \'switch\'">\r\n <span *ngFor="let cs of mi?.case">\r\n <span *ngIf="switchCase(viewInfoObjList[i],cs)">\r\n <span class="label-control" *ngIf="cs.result.type == \'text\'">{{ viewInfoObjList[i][cs.result.property] }}</span>\r\n </span>\r\n </span>\r\n </span>\r\n </ng-template>\r\n </div>\r\n </div>\r\n </span>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n</section>'}]}],p.ctorParameters=function(){return[{type:r.ActivatedRoute},{type:i.HttpClient}]},p.propDecorators={viewGenericObj:[{type:t.Input}],callback:[{type:t.Output}]},p);function p(e,i){var n=this;this.route=e,this.http=i,this.viewGenericObj=new l,this.callback=new t.EventEmitter,this.viewList="",this.isReady=!1,this.route.queryParams.subscribe(function(e){n.getList=e})}var u=(f.decorators=[{type:t.NgModule,args:[{declarations:[c],imports:[n.CommonModule,r.RouterModule,o.UcSubsectionModule],exports:[c]}]}],f);function f(){}e.UcviewgenericService=s,e.UcviewgenericComponent=c,e.UcviewgenericModule=u,Object.defineProperty(e,"__esModule",{value:!0})});
|
|
1
|
+
!function(e,i){"object"==typeof exports&&"undefined"!=typeof module?i(exports,require("@angular/common/http"),require("@angular/core"),require("@angular/common"),require("@angular/router"),require("@adins/uc-subsection")):"function"==typeof define&&define.amd?define("@adins/ucviewgeneric",["exports","@angular/common/http","@angular/core","@angular/common","@angular/router","@adins/uc-subsection"],i):i((e.adins=e.adins||{},e.adins.ucviewgeneric={}),e.ng.common.http,e.ng.core,e.ng.common,e.ng.router,e.ucSubsection)}(this,function(e,i,t,n,r,o){"use strict";var s=(a.decorators=[{type:t.Injectable,args:[{providedIn:"root"}]}],a.ctorParameters=function(){return[]},a.ngInjectableDef=t.defineInjectable({factory:function(){return new a},token:a,providedIn:"root"}),a);function a(){}var l=function b(){this.viewInput="",this.viewEnvironment="",this.ddlEnvironments=new Array,this.whereValue=new Array},c=(p.prototype.ngOnInit=function(){console.log("viewgeneric"),this.initiateForm()},p.prototype.initiateForm=function(){var s=this;this.getJSON(this.viewGenericObj.viewInput).subscribe(function(e){s.viewList=e,s.viewInfoObjList=[];for(var i=0;i<s.viewList.subsection.length;i++)s.viewInfoObjList.push(i);for(var n,t=function(o){null!=s.viewList.subsection[o].querystring?(0==s.viewGenericObj.whereValue.length?s.viewList.subsection[o].querystring.whereQuery=Object.values(s.getList):s.viewList.subsection[o].querystring.whereQuery=s.viewGenericObj.whereValue,s.viewList.subsection[o].mainInfoPath!=undefined&&""!=s.viewList.subsection[o].mainInfoPath&&s.viewGenericObj.viewEnvironment!=undefined&&""!=s.viewGenericObj.viewEnvironment?s.viewList.subsection[o].fullpath=s.viewGenericObj.viewEnvironment+s.viewList.subsection[o].mainInfoPath:s.viewList.subsection[o].fullpath=s.viewList.subsection[o].mainInfoUrl,n={querystring:s.viewList.subsection[o].querystring},s.http.post(s.viewList.subsection[o].fullpath,n).subscribe(function(e){s.viewInfoObjList[o]=e.Data[0];for(var i=0;i<s.viewList.subsection[o].mainInfo.length;i++){if(s.viewList.subsection[o].mainInfo[i].propertyList!=undefined&&0!=s.viewList.subsection[o].mainInfo[i].propertyList.length){for(var n=s.viewList.subsection[o].mainInfo[i].propertyList,t="",r=0;r<n.length;r++)t=t+n[r].prefix+s.viewInfoObjList[o][n[r].property]+n[r].suffix;s.viewList.subsection[o].mainInfo[i].concat=t}if("link"==s.viewList.subsection[o].mainInfo[i].type&&s.viewGenericObj.ddlEnvironments!=undefined&&0!=s.viewGenericObj.ddlEnvironments.length){for(r=0;r<s.viewGenericObj.ddlEnvironments.length;r++)if(s.viewList.subsection[o].mainInfo[i].name==s.viewGenericObj.ddlEnvironments[r].name){s.viewList.subsection[o].mainInfo[i].isFullpath=!0,s.viewList.subsection[o].mainInfo[i].fullpath=s.viewGenericObj.ddlEnvironments[r].environment+s.viewList.subsection[o].mainInfo[i].path;break}}else"link"==s.viewList.subsection[o].mainInfo[i].type&&(s.viewList.subsection[o].mainInfo[i].isFullpath=!1,s.viewList.subsection[o].mainInfo[i].fullpath=s.viewList.subsection[o].mainInfo[i].path)}s.isReady=!0},function(e){console.log(e)})):(s.viewList.subsection[o].mainInfoPath!=undefined&&""!=s.viewList.subsection[o].mainInfoPath&&s.viewGenericObj.viewEnvironment!=undefined&&""!=s.viewGenericObj.viewEnvironment?s.viewList.subsection[o].fullpath=s.viewGenericObj.viewEnvironment+s.viewList.subsection[o].mainInfoPath:s.viewList.subsection[o].fullpath=s.viewList.subsection[o].mainInfoUrl,s.http.post(s.viewList.subsection[o].fullpath,s.getList).subscribe(function(e){s.viewInfoObjList[o]=e.Data},function(e){console.log(e)}))},r=0;r<s.viewList.subsection.length;r++)t(r)})},p.prototype.getJSON=function(e){return this.http.get(e)},p.prototype.genAction=function(e,i){for(var n={},t=0;t<i.length;t++)e[i[t].type]!=undefined||e[i[t].property]!=undefined?n[i[t].type]=e[i[t].property]:n[i[t].type]=i[t].property;return n},p.prototype.redirectFullPath=function(e,i,n){for(var t="",r=Object.keys(i),o=0;o<r.length;o++)t=""!=t?t+"&"+r[o]+"="+i[r[o]]:r[o]+"="+i[r[o]];window.open(e+"?"+t,n)},p.prototype.callbackFunction=function(e,i){void 0===i&&(i="");var n={ViewObj:e,Key:i};this.callback.emit(n)},p.prototype.switchCase=function(e,i){for(var n=!1,t=0;t<i.conditions.length;t++)if("EQ"==i.conditions[t].restriction)if(1!=i.conditions[t].isUser){if(e[i.conditions[t].property]!=i.conditions[t].value){n=!1;break}n=!0}else{var r=localStorage.getItem("Username");if(e[i.conditions[t].property]!=r){n=!1;break}n=!0}else if("NEQ"==i.conditions[t].restriction)if(1!=i.conditions[t].isUser){if(e[i.conditions[t].property]==i.conditions[t].value){n=!1;break}n=!0}else{if(r=localStorage.getItem("Username"),e[i.conditions[t].property]==r){n=!1;break}n=!0}else if("GT"==i.conditions[t].restriction)if(1!=i.conditions[t].isUser){if(!(e[i.conditions[t].property]>i.conditions[t].value)){n=!1;break}n=!0}else{if(r=localStorage.getItem("Username"),!(e[i.conditions[t].property]>r)){n=!1;break}n=!0}else if("GTE"==i.conditions[t].restriction)if(1!=i.conditions[t].isUser){if(!(e[i.conditions[t].property]>=i.conditions[t].value)){n=!1;break}n=!0}else{if(r=localStorage.getItem("Username"),!(e[i.conditions[t].property]>=r)){n=!1;break}n=!0}else if("LT"==i.conditions[t].restriction)if(1!=i.conditions[t].isUser){if(!(e[i.conditions[t].property]<i.conditions[t].value)){n=!1;break}n=!0}else{if(r=localStorage.getItem("Username"),!(e[i.conditions[t].property]<r)){n=!1;break}n=!0}else if("LTE"==i.conditions[t].restriction)if(1!=i.conditions[t].isUser){if(!(e[i.conditions[t].property]<=i.conditions[t].value)){n=!1;break}n=!0}else{if(r=localStorage.getItem("Username"),!(e[i.conditions[t].property]<=r)){n=!1;break}n=!0}return n},p.decorators=[{type:t.Component,args:[{selector:"lib-ucviewgeneric",template:'<section id="horizontal-form-layouts">\r\n <div class="row text-left">\r\n <div class="col-md-12">\r\n <div class="card" *ngIf="isReady">\r\n <div class="pl-3 mb-2 mt-2" *ngIf="viewList?.title != \'\'">\r\n <h4 class="card-title ucSearch-title" id="horz-layout-colored-controls" translate> {{ viewList.title }} </h4>\r\n </div>\r\n <div class="card-body" *ngFor="let ss of viewList?.subsection;let i = index;">\r\n <div class="px-3">\r\n <lib-ucSubsection *ngIf="ss.subsection != \'\'" [id]="ss.subSectionId + \'id\'" [title]="ss.subSectionTitle"\r\n [panel]="ss.subSectionId">\r\n </lib-ucSubsection>\r\n <div class="form-body" [id]=\'ss.subSectionId\'>\r\n <div class="form-group row">\r\n <div *ngFor="let mi of ss?.mainInfo"\r\n [ngClass]="{ \'col-md-6\': mi.isHide == undefined || !mi.isHide || (viewInfoObjList[i][mi.property] != \'\' && viewInfoObjList[i][mi.property] != null)}">\r\n <span *ngIf="mi.isHide == undefined || !mi.isHide || (viewInfoObjList[i][mi.property] != \'\' && viewInfoObjList[i][mi.property] != null)">\r\n <div class="row">\r\n <div class="col-md-6">\r\n <label class="label-control" *ngIf="mi.type != \'switch\'" translate> {{ mi.label }} </label>\r\n <label class="label-control" *ngIf="mi.type == \'switch\'" translate> {{ mi.case[0].result.label }} </label>\r\n </div>\r\n <div *ngIf="viewInfoObjList[i] != undefined" class="col-md-6" [ngClass]="{ \'text-left\': mi.position == \'left\',\r\n \'text-right\': mi.position == \'right\', \'text-center\': mi.position == \'center\' }">\r\n <span\r\n *ngIf="(viewInfoObjList[i][mi.property] != \'\' && viewInfoObjList[i][mi.property] != null) || mi.type == \'switch\'; then nonEmptyLabel else emptyLabel"></span>\r\n <ng-template #emptyLabel>\r\n <label class="label-control" translate>-</label>\r\n </ng-template>\r\n <ng-template #nonEmptyLabel>\r\n <span *ngIf="mi.type == \'text\'">\r\n <label\r\n *ngIf="viewInfoObjList[i][mi.property] != \'\' && viewInfoObjList[i][mi.property] != null"\r\n class="label-control" translate> {{ viewInfoObjList[i][mi.property] }}\r\n </label>\r\n <label\r\n *ngIf="viewInfoObjList[i][mi.property] == \'\' || viewInfoObjList[i][mi.property] == null"\r\n class="label-control" translate>-\r\n </label>\r\n </span>\r\n <label *ngIf="mi.type == \'currency\'" class="label-control" translate>\r\n {{ viewInfoObjList[i][mi.property] | number:\'.2\':\'en-US\'}} </label>\r\n <label *ngIf="mi.type == \'date\'" class="label-control" translate>\r\n {{ viewInfoObjList[i][mi.property] | date: \'dd-MMM-yyyy\'}} </label>\r\n <label *ngIf="mi.type == \'link\'" class="label-control" translate>\r\n <a *ngIf="!mi?.isFullpath" [routerLink]="[mi.path]" [target]="mi.target"\r\n [queryParams]="genAction(viewInfoObjList[i], mi.param)">\r\n {{ viewInfoObjList[i][mi.property] }}\r\n </a>\r\n <a *ngIf="mi?.isFullpath" href="javascript:void(0);"\r\n (click)="redirectFullPath(mi.fullpath, genAction(viewInfoObjList[i], mi.param), mi.target)">\r\n {{ viewInfoObjList[i][mi.property] }}\r\n </a>\r\n </label>\r\n <label *ngIf="mi.type == \'callback\'" class="label-control" translate>\r\n <a href="javascript:void(0);" (click)="callbackFunction(viewInfoObjList[i], mi.key)">\r\n {{ viewInfoObjList[i][mi.property] }}\r\n </a>\r\n </label>\r\n <textarea *ngIf="mi.type == \'textarea\'" class="form-control" readonly\r\n translate> {{ viewInfoObjList[i][mi.property] }} </textarea>\r\n <span *ngIf="mi.type == \'boolean\'">\r\n <label *ngIf="viewInfoObjList[i][mi.property] == true">Yes</label>\r\n <label *ngIf="viewInfoObjList[i][mi.property] == false">No</label>\r\n \x3c!-- <label\r\n *ngIf="viewInfoObjList[i][mi.property] == \'\' || viewInfoObjList[i][mi.property] == null">-</label> --\x3e\r\n </span>\r\n <span *ngIf="mi.type == \'concat\'">\r\n <label class="label-control" translate> {{ mi.concat }}\r\n </label>\r\n </span>\r\n <span *ngIf="mi.type == \'switch\'">\r\n <span *ngFor="let cs of mi?.case">\r\n <span *ngIf="switchCase(viewInfoObjList[i],cs)">\r\n <span class="label-control" *ngIf="cs.result.type == \'text\'">{{ viewInfoObjList[i][cs.result.property] }}</span>\r\n </span>\r\n </span>\r\n </span>\r\n </ng-template>\r\n </div>\r\n </div>\r\n </span>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n</section>'}]}],p.ctorParameters=function(){return[{type:r.ActivatedRoute},{type:i.HttpClient}]},p.propDecorators={viewGenericObj:[{type:t.Input}],callback:[{type:t.Output}]},p);function p(e,i){var n=this;this.route=e,this.http=i,this.viewGenericObj=new l,this.callback=new t.EventEmitter,this.viewList="",this.isReady=!1,this.route.queryParams.subscribe(function(e){n.getList=e})}var u=(f.decorators=[{type:t.NgModule,args:[{declarations:[c],imports:[n.CommonModule,r.RouterModule,o.UcSubsectionModule],exports:[c]}]}],f);function f(){}e.UcviewgenericService=s,e.UcviewgenericComponent=c,e.UcviewgenericModule=u,Object.defineProperty(e,"__esModule",{value:!0})});
|
|
2
2
|
//# sourceMappingURL=adins-ucviewgeneric.umd.min.js.map
|
|
@@ -348,7 +348,7 @@ export class UcviewgenericComponent {
|
|
|
348
348
|
UcviewgenericComponent.decorators = [
|
|
349
349
|
{ type: Component, args: [{
|
|
350
350
|
selector: 'lib-ucviewgeneric',
|
|
351
|
-
template: "<section id=\"horizontal-form-layouts\">\r\n <div class=\"row text-left\">\r\n <div class=\"col-md-12\">\r\n <div class=\"card\" *ngIf=\"isReady\">\r\n <div class=\"pl-3 mb-2 mt-2\" *ngIf=\"viewList?.title != ''\">\r\n <h4 class=\"card-title ucSearch-title\" id=\"horz-layout-colored-controls\" translate> {{ viewList.title }} </h4>\r\n </div>\r\n <div class=\"card-body\" *ngFor=\"let ss of viewList?.subsection;let i = index;\">\r\n <div class=\"px-3\">\r\n <lib-ucSubsection *ngIf=\"ss.subsection != ''\" [id]=\"ss.subSectionId + 'id'\" [title]=\"ss.subSectionTitle\"\r\n [panel]=\"ss.subSectionId\">\r\n </lib-ucSubsection>\r\n <div class=\"form-body\" [id]='ss.subSectionId'>\r\n <div class=\"form-group row\">\r\n <div *ngFor=\"let mi of ss?.mainInfo\"\r\n [ngClass]=\"{ 'col-md-6': mi.isHide == undefined || !mi.isHide || (viewInfoObjList[i][mi.property] != '' && viewInfoObjList[i][mi.property] != null)}\">\r\n <span *ngIf=\"mi.isHide == undefined || !mi.isHide || (viewInfoObjList[i][mi.property] != '' && viewInfoObjList[i][mi.property] != null)\">\r\n <div class=\"row\">\r\n <div class=\"col-md-6\">\r\n <label class=\"label-control\" *ngIf=\"mi.type != 'switch'\" translate> {{ mi.label }} </label>\r\n <label class=\"label-control\" *ngIf=\"mi.type == 'switch'\" translate> {{ mi
|
|
351
|
+
template: "<section id=\"horizontal-form-layouts\">\r\n <div class=\"row text-left\">\r\n <div class=\"col-md-12\">\r\n <div class=\"card\" *ngIf=\"isReady\">\r\n <div class=\"pl-3 mb-2 mt-2\" *ngIf=\"viewList?.title != ''\">\r\n <h4 class=\"card-title ucSearch-title\" id=\"horz-layout-colored-controls\" translate> {{ viewList.title }} </h4>\r\n </div>\r\n <div class=\"card-body\" *ngFor=\"let ss of viewList?.subsection;let i = index;\">\r\n <div class=\"px-3\">\r\n <lib-ucSubsection *ngIf=\"ss.subsection != ''\" [id]=\"ss.subSectionId + 'id'\" [title]=\"ss.subSectionTitle\"\r\n [panel]=\"ss.subSectionId\">\r\n </lib-ucSubsection>\r\n <div class=\"form-body\" [id]='ss.subSectionId'>\r\n <div class=\"form-group row\">\r\n <div *ngFor=\"let mi of ss?.mainInfo\"\r\n [ngClass]=\"{ 'col-md-6': mi.isHide == undefined || !mi.isHide || (viewInfoObjList[i][mi.property] != '' && viewInfoObjList[i][mi.property] != null)}\">\r\n <span *ngIf=\"mi.isHide == undefined || !mi.isHide || (viewInfoObjList[i][mi.property] != '' && viewInfoObjList[i][mi.property] != null)\">\r\n <div class=\"row\">\r\n <div class=\"col-md-6\">\r\n <label class=\"label-control\" *ngIf=\"mi.type != 'switch'\" translate> {{ mi.label }} </label>\r\n <label class=\"label-control\" *ngIf=\"mi.type == 'switch'\" translate> {{ mi.case[0].result.label }} </label>\r\n </div>\r\n <div *ngIf=\"viewInfoObjList[i] != undefined\" class=\"col-md-6\" [ngClass]=\"{ 'text-left': mi.position == 'left',\r\n 'text-right': mi.position == 'right', 'text-center': mi.position == 'center' }\">\r\n <span\r\n *ngIf=\"(viewInfoObjList[i][mi.property] != '' && viewInfoObjList[i][mi.property] != null) || mi.type == 'switch'; then nonEmptyLabel else emptyLabel\"></span>\r\n <ng-template #emptyLabel>\r\n <label class=\"label-control\" translate>-</label>\r\n </ng-template>\r\n <ng-template #nonEmptyLabel>\r\n <span *ngIf=\"mi.type == 'text'\">\r\n <label\r\n *ngIf=\"viewInfoObjList[i][mi.property] != '' && viewInfoObjList[i][mi.property] != null\"\r\n class=\"label-control\" translate> {{ viewInfoObjList[i][mi.property] }}\r\n </label>\r\n <label\r\n *ngIf=\"viewInfoObjList[i][mi.property] == '' || viewInfoObjList[i][mi.property] == null\"\r\n class=\"label-control\" translate>-\r\n </label>\r\n </span>\r\n <label *ngIf=\"mi.type == 'currency'\" class=\"label-control\" translate>\r\n {{ viewInfoObjList[i][mi.property] | number:'.2':'en-US'}} </label>\r\n <label *ngIf=\"mi.type == 'date'\" class=\"label-control\" translate>\r\n {{ viewInfoObjList[i][mi.property] | date: 'dd-MMM-yyyy'}} </label>\r\n <label *ngIf=\"mi.type == 'link'\" class=\"label-control\" translate>\r\n <a *ngIf=\"!mi?.isFullpath\" [routerLink]=\"[mi.path]\" [target]=\"mi.target\"\r\n [queryParams]=\"genAction(viewInfoObjList[i], mi.param)\">\r\n {{ viewInfoObjList[i][mi.property] }}\r\n </a>\r\n <a *ngIf=\"mi?.isFullpath\" href=\"javascript:void(0);\"\r\n (click)=\"redirectFullPath(mi.fullpath, genAction(viewInfoObjList[i], mi.param), mi.target)\">\r\n {{ viewInfoObjList[i][mi.property] }}\r\n </a>\r\n </label>\r\n <label *ngIf=\"mi.type == 'callback'\" class=\"label-control\" translate>\r\n <a href=\"javascript:void(0);\" (click)=\"callbackFunction(viewInfoObjList[i], mi.key)\">\r\n {{ viewInfoObjList[i][mi.property] }}\r\n </a>\r\n </label>\r\n <textarea *ngIf=\"mi.type == 'textarea'\" class=\"form-control\" readonly\r\n translate> {{ viewInfoObjList[i][mi.property] }} </textarea>\r\n <span *ngIf=\"mi.type == 'boolean'\">\r\n <label *ngIf=\"viewInfoObjList[i][mi.property] == true\">Yes</label>\r\n <label *ngIf=\"viewInfoObjList[i][mi.property] == false\">No</label>\r\n <!-- <label\r\n *ngIf=\"viewInfoObjList[i][mi.property] == '' || viewInfoObjList[i][mi.property] == null\">-</label> -->\r\n </span>\r\n <span *ngIf=\"mi.type == 'concat'\">\r\n <label class=\"label-control\" translate> {{ mi.concat }}\r\n </label>\r\n </span>\r\n <span *ngIf=\"mi.type == 'switch'\">\r\n <span *ngFor=\"let cs of mi?.case\">\r\n <span *ngIf=\"switchCase(viewInfoObjList[i],cs)\">\r\n <span class=\"label-control\" *ngIf=\"cs.result.type == 'text'\">{{ viewInfoObjList[i][cs.result.property] }}</span>\r\n </span>\r\n </span>\r\n </span>\r\n </ng-template>\r\n </div>\r\n </div>\r\n </span>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n</section>"
|
|
352
352
|
}] }
|
|
353
353
|
];
|
|
354
354
|
/** @nocollapse */
|
|
@@ -379,7 +379,7 @@ var UcviewgenericComponent = /** @class */ (function () {
|
|
|
379
379
|
UcviewgenericComponent.decorators = [
|
|
380
380
|
{ type: Component, args: [{
|
|
381
381
|
selector: 'lib-ucviewgeneric',
|
|
382
|
-
template: "<section id=\"horizontal-form-layouts\">\r\n <div class=\"row text-left\">\r\n <div class=\"col-md-12\">\r\n <div class=\"card\" *ngIf=\"isReady\">\r\n <div class=\"pl-3 mb-2 mt-2\" *ngIf=\"viewList?.title != ''\">\r\n <h4 class=\"card-title ucSearch-title\" id=\"horz-layout-colored-controls\" translate> {{ viewList.title }} </h4>\r\n </div>\r\n <div class=\"card-body\" *ngFor=\"let ss of viewList?.subsection;let i = index;\">\r\n <div class=\"px-3\">\r\n <lib-ucSubsection *ngIf=\"ss.subsection != ''\" [id]=\"ss.subSectionId + 'id'\" [title]=\"ss.subSectionTitle\"\r\n [panel]=\"ss.subSectionId\">\r\n </lib-ucSubsection>\r\n <div class=\"form-body\" [id]='ss.subSectionId'>\r\n <div class=\"form-group row\">\r\n <div *ngFor=\"let mi of ss?.mainInfo\"\r\n [ngClass]=\"{ 'col-md-6': mi.isHide == undefined || !mi.isHide || (viewInfoObjList[i][mi.property] != '' && viewInfoObjList[i][mi.property] != null)}\">\r\n <span *ngIf=\"mi.isHide == undefined || !mi.isHide || (viewInfoObjList[i][mi.property] != '' && viewInfoObjList[i][mi.property] != null)\">\r\n <div class=\"row\">\r\n <div class=\"col-md-6\">\r\n <label class=\"label-control\" *ngIf=\"mi.type != 'switch'\" translate> {{ mi.label }} </label>\r\n <label class=\"label-control\" *ngIf=\"mi.type == 'switch'\" translate> {{ mi
|
|
382
|
+
template: "<section id=\"horizontal-form-layouts\">\r\n <div class=\"row text-left\">\r\n <div class=\"col-md-12\">\r\n <div class=\"card\" *ngIf=\"isReady\">\r\n <div class=\"pl-3 mb-2 mt-2\" *ngIf=\"viewList?.title != ''\">\r\n <h4 class=\"card-title ucSearch-title\" id=\"horz-layout-colored-controls\" translate> {{ viewList.title }} </h4>\r\n </div>\r\n <div class=\"card-body\" *ngFor=\"let ss of viewList?.subsection;let i = index;\">\r\n <div class=\"px-3\">\r\n <lib-ucSubsection *ngIf=\"ss.subsection != ''\" [id]=\"ss.subSectionId + 'id'\" [title]=\"ss.subSectionTitle\"\r\n [panel]=\"ss.subSectionId\">\r\n </lib-ucSubsection>\r\n <div class=\"form-body\" [id]='ss.subSectionId'>\r\n <div class=\"form-group row\">\r\n <div *ngFor=\"let mi of ss?.mainInfo\"\r\n [ngClass]=\"{ 'col-md-6': mi.isHide == undefined || !mi.isHide || (viewInfoObjList[i][mi.property] != '' && viewInfoObjList[i][mi.property] != null)}\">\r\n <span *ngIf=\"mi.isHide == undefined || !mi.isHide || (viewInfoObjList[i][mi.property] != '' && viewInfoObjList[i][mi.property] != null)\">\r\n <div class=\"row\">\r\n <div class=\"col-md-6\">\r\n <label class=\"label-control\" *ngIf=\"mi.type != 'switch'\" translate> {{ mi.label }} </label>\r\n <label class=\"label-control\" *ngIf=\"mi.type == 'switch'\" translate> {{ mi.case[0].result.label }} </label>\r\n </div>\r\n <div *ngIf=\"viewInfoObjList[i] != undefined\" class=\"col-md-6\" [ngClass]=\"{ 'text-left': mi.position == 'left',\r\n 'text-right': mi.position == 'right', 'text-center': mi.position == 'center' }\">\r\n <span\r\n *ngIf=\"(viewInfoObjList[i][mi.property] != '' && viewInfoObjList[i][mi.property] != null) || mi.type == 'switch'; then nonEmptyLabel else emptyLabel\"></span>\r\n <ng-template #emptyLabel>\r\n <label class=\"label-control\" translate>-</label>\r\n </ng-template>\r\n <ng-template #nonEmptyLabel>\r\n <span *ngIf=\"mi.type == 'text'\">\r\n <label\r\n *ngIf=\"viewInfoObjList[i][mi.property] != '' && viewInfoObjList[i][mi.property] != null\"\r\n class=\"label-control\" translate> {{ viewInfoObjList[i][mi.property] }}\r\n </label>\r\n <label\r\n *ngIf=\"viewInfoObjList[i][mi.property] == '' || viewInfoObjList[i][mi.property] == null\"\r\n class=\"label-control\" translate>-\r\n </label>\r\n </span>\r\n <label *ngIf=\"mi.type == 'currency'\" class=\"label-control\" translate>\r\n {{ viewInfoObjList[i][mi.property] | number:'.2':'en-US'}} </label>\r\n <label *ngIf=\"mi.type == 'date'\" class=\"label-control\" translate>\r\n {{ viewInfoObjList[i][mi.property] | date: 'dd-MMM-yyyy'}} </label>\r\n <label *ngIf=\"mi.type == 'link'\" class=\"label-control\" translate>\r\n <a *ngIf=\"!mi?.isFullpath\" [routerLink]=\"[mi.path]\" [target]=\"mi.target\"\r\n [queryParams]=\"genAction(viewInfoObjList[i], mi.param)\">\r\n {{ viewInfoObjList[i][mi.property] }}\r\n </a>\r\n <a *ngIf=\"mi?.isFullpath\" href=\"javascript:void(0);\"\r\n (click)=\"redirectFullPath(mi.fullpath, genAction(viewInfoObjList[i], mi.param), mi.target)\">\r\n {{ viewInfoObjList[i][mi.property] }}\r\n </a>\r\n </label>\r\n <label *ngIf=\"mi.type == 'callback'\" class=\"label-control\" translate>\r\n <a href=\"javascript:void(0);\" (click)=\"callbackFunction(viewInfoObjList[i], mi.key)\">\r\n {{ viewInfoObjList[i][mi.property] }}\r\n </a>\r\n </label>\r\n <textarea *ngIf=\"mi.type == 'textarea'\" class=\"form-control\" readonly\r\n translate> {{ viewInfoObjList[i][mi.property] }} </textarea>\r\n <span *ngIf=\"mi.type == 'boolean'\">\r\n <label *ngIf=\"viewInfoObjList[i][mi.property] == true\">Yes</label>\r\n <label *ngIf=\"viewInfoObjList[i][mi.property] == false\">No</label>\r\n <!-- <label\r\n *ngIf=\"viewInfoObjList[i][mi.property] == '' || viewInfoObjList[i][mi.property] == null\">-</label> -->\r\n </span>\r\n <span *ngIf=\"mi.type == 'concat'\">\r\n <label class=\"label-control\" translate> {{ mi.concat }}\r\n </label>\r\n </span>\r\n <span *ngIf=\"mi.type == 'switch'\">\r\n <span *ngFor=\"let cs of mi?.case\">\r\n <span *ngIf=\"switchCase(viewInfoObjList[i],cs)\">\r\n <span class=\"label-control\" *ngIf=\"cs.result.type == 'text'\">{{ viewInfoObjList[i][cs.result.property] }}</span>\r\n </span>\r\n </span>\r\n </span>\r\n </ng-template>\r\n </div>\r\n </div>\r\n </span>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n</section>"
|
|
383
383
|
}] }
|
|
384
384
|
];
|
|
385
385
|
/** @nocollapse */
|
|
@@ -379,7 +379,7 @@ class UcviewgenericComponent {
|
|
|
379
379
|
UcviewgenericComponent.decorators = [
|
|
380
380
|
{ type: Component, args: [{
|
|
381
381
|
selector: 'lib-ucviewgeneric',
|
|
382
|
-
template: "<section id=\"horizontal-form-layouts\">\r\n <div class=\"row text-left\">\r\n <div class=\"col-md-12\">\r\n <div class=\"card\" *ngIf=\"isReady\">\r\n <div class=\"pl-3 mb-2 mt-2\" *ngIf=\"viewList?.title != ''\">\r\n <h4 class=\"card-title ucSearch-title\" id=\"horz-layout-colored-controls\" translate> {{ viewList.title }} </h4>\r\n </div>\r\n <div class=\"card-body\" *ngFor=\"let ss of viewList?.subsection;let i = index;\">\r\n <div class=\"px-3\">\r\n <lib-ucSubsection *ngIf=\"ss.subsection != ''\" [id]=\"ss.subSectionId + 'id'\" [title]=\"ss.subSectionTitle\"\r\n [panel]=\"ss.subSectionId\">\r\n </lib-ucSubsection>\r\n <div class=\"form-body\" [id]='ss.subSectionId'>\r\n <div class=\"form-group row\">\r\n <div *ngFor=\"let mi of ss?.mainInfo\"\r\n [ngClass]=\"{ 'col-md-6': mi.isHide == undefined || !mi.isHide || (viewInfoObjList[i][mi.property] != '' && viewInfoObjList[i][mi.property] != null)}\">\r\n <span *ngIf=\"mi.isHide == undefined || !mi.isHide || (viewInfoObjList[i][mi.property] != '' && viewInfoObjList[i][mi.property] != null)\">\r\n <div class=\"row\">\r\n <div class=\"col-md-6\">\r\n <label class=\"label-control\" *ngIf=\"mi.type != 'switch'\" translate> {{ mi.label }} </label>\r\n <label class=\"label-control\" *ngIf=\"mi.type == 'switch'\" translate> {{ mi
|
|
382
|
+
template: "<section id=\"horizontal-form-layouts\">\r\n <div class=\"row text-left\">\r\n <div class=\"col-md-12\">\r\n <div class=\"card\" *ngIf=\"isReady\">\r\n <div class=\"pl-3 mb-2 mt-2\" *ngIf=\"viewList?.title != ''\">\r\n <h4 class=\"card-title ucSearch-title\" id=\"horz-layout-colored-controls\" translate> {{ viewList.title }} </h4>\r\n </div>\r\n <div class=\"card-body\" *ngFor=\"let ss of viewList?.subsection;let i = index;\">\r\n <div class=\"px-3\">\r\n <lib-ucSubsection *ngIf=\"ss.subsection != ''\" [id]=\"ss.subSectionId + 'id'\" [title]=\"ss.subSectionTitle\"\r\n [panel]=\"ss.subSectionId\">\r\n </lib-ucSubsection>\r\n <div class=\"form-body\" [id]='ss.subSectionId'>\r\n <div class=\"form-group row\">\r\n <div *ngFor=\"let mi of ss?.mainInfo\"\r\n [ngClass]=\"{ 'col-md-6': mi.isHide == undefined || !mi.isHide || (viewInfoObjList[i][mi.property] != '' && viewInfoObjList[i][mi.property] != null)}\">\r\n <span *ngIf=\"mi.isHide == undefined || !mi.isHide || (viewInfoObjList[i][mi.property] != '' && viewInfoObjList[i][mi.property] != null)\">\r\n <div class=\"row\">\r\n <div class=\"col-md-6\">\r\n <label class=\"label-control\" *ngIf=\"mi.type != 'switch'\" translate> {{ mi.label }} </label>\r\n <label class=\"label-control\" *ngIf=\"mi.type == 'switch'\" translate> {{ mi.case[0].result.label }} </label>\r\n </div>\r\n <div *ngIf=\"viewInfoObjList[i] != undefined\" class=\"col-md-6\" [ngClass]=\"{ 'text-left': mi.position == 'left',\r\n 'text-right': mi.position == 'right', 'text-center': mi.position == 'center' }\">\r\n <span\r\n *ngIf=\"(viewInfoObjList[i][mi.property] != '' && viewInfoObjList[i][mi.property] != null) || mi.type == 'switch'; then nonEmptyLabel else emptyLabel\"></span>\r\n <ng-template #emptyLabel>\r\n <label class=\"label-control\" translate>-</label>\r\n </ng-template>\r\n <ng-template #nonEmptyLabel>\r\n <span *ngIf=\"mi.type == 'text'\">\r\n <label\r\n *ngIf=\"viewInfoObjList[i][mi.property] != '' && viewInfoObjList[i][mi.property] != null\"\r\n class=\"label-control\" translate> {{ viewInfoObjList[i][mi.property] }}\r\n </label>\r\n <label\r\n *ngIf=\"viewInfoObjList[i][mi.property] == '' || viewInfoObjList[i][mi.property] == null\"\r\n class=\"label-control\" translate>-\r\n </label>\r\n </span>\r\n <label *ngIf=\"mi.type == 'currency'\" class=\"label-control\" translate>\r\n {{ viewInfoObjList[i][mi.property] | number:'.2':'en-US'}} </label>\r\n <label *ngIf=\"mi.type == 'date'\" class=\"label-control\" translate>\r\n {{ viewInfoObjList[i][mi.property] | date: 'dd-MMM-yyyy'}} </label>\r\n <label *ngIf=\"mi.type == 'link'\" class=\"label-control\" translate>\r\n <a *ngIf=\"!mi?.isFullpath\" [routerLink]=\"[mi.path]\" [target]=\"mi.target\"\r\n [queryParams]=\"genAction(viewInfoObjList[i], mi.param)\">\r\n {{ viewInfoObjList[i][mi.property] }}\r\n </a>\r\n <a *ngIf=\"mi?.isFullpath\" href=\"javascript:void(0);\"\r\n (click)=\"redirectFullPath(mi.fullpath, genAction(viewInfoObjList[i], mi.param), mi.target)\">\r\n {{ viewInfoObjList[i][mi.property] }}\r\n </a>\r\n </label>\r\n <label *ngIf=\"mi.type == 'callback'\" class=\"label-control\" translate>\r\n <a href=\"javascript:void(0);\" (click)=\"callbackFunction(viewInfoObjList[i], mi.key)\">\r\n {{ viewInfoObjList[i][mi.property] }}\r\n </a>\r\n </label>\r\n <textarea *ngIf=\"mi.type == 'textarea'\" class=\"form-control\" readonly\r\n translate> {{ viewInfoObjList[i][mi.property] }} </textarea>\r\n <span *ngIf=\"mi.type == 'boolean'\">\r\n <label *ngIf=\"viewInfoObjList[i][mi.property] == true\">Yes</label>\r\n <label *ngIf=\"viewInfoObjList[i][mi.property] == false\">No</label>\r\n <!-- <label\r\n *ngIf=\"viewInfoObjList[i][mi.property] == '' || viewInfoObjList[i][mi.property] == null\">-</label> -->\r\n </span>\r\n <span *ngIf=\"mi.type == 'concat'\">\r\n <label class=\"label-control\" translate> {{ mi.concat }}\r\n </label>\r\n </span>\r\n <span *ngIf=\"mi.type == 'switch'\">\r\n <span *ngFor=\"let cs of mi?.case\">\r\n <span *ngIf=\"switchCase(viewInfoObjList[i],cs)\">\r\n <span class=\"label-control\" *ngIf=\"cs.result.type == 'text'\">{{ viewInfoObjList[i][cs.result.property] }}</span>\r\n </span>\r\n </span>\r\n </span>\r\n </ng-template>\r\n </div>\r\n </div>\r\n </span>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n</section>"
|
|
383
383
|
}] }
|
|
384
384
|
];
|
|
385
385
|
/** @nocollapse */
|
|
@@ -413,7 +413,7 @@ var UcviewgenericComponent = /** @class */ (function () {
|
|
|
413
413
|
UcviewgenericComponent.decorators = [
|
|
414
414
|
{ type: Component, args: [{
|
|
415
415
|
selector: 'lib-ucviewgeneric',
|
|
416
|
-
template: "<section id=\"horizontal-form-layouts\">\r\n <div class=\"row text-left\">\r\n <div class=\"col-md-12\">\r\n <div class=\"card\" *ngIf=\"isReady\">\r\n <div class=\"pl-3 mb-2 mt-2\" *ngIf=\"viewList?.title != ''\">\r\n <h4 class=\"card-title ucSearch-title\" id=\"horz-layout-colored-controls\" translate> {{ viewList.title }} </h4>\r\n </div>\r\n <div class=\"card-body\" *ngFor=\"let ss of viewList?.subsection;let i = index;\">\r\n <div class=\"px-3\">\r\n <lib-ucSubsection *ngIf=\"ss.subsection != ''\" [id]=\"ss.subSectionId + 'id'\" [title]=\"ss.subSectionTitle\"\r\n [panel]=\"ss.subSectionId\">\r\n </lib-ucSubsection>\r\n <div class=\"form-body\" [id]='ss.subSectionId'>\r\n <div class=\"form-group row\">\r\n <div *ngFor=\"let mi of ss?.mainInfo\"\r\n [ngClass]=\"{ 'col-md-6': mi.isHide == undefined || !mi.isHide || (viewInfoObjList[i][mi.property] != '' && viewInfoObjList[i][mi.property] != null)}\">\r\n <span *ngIf=\"mi.isHide == undefined || !mi.isHide || (viewInfoObjList[i][mi.property] != '' && viewInfoObjList[i][mi.property] != null)\">\r\n <div class=\"row\">\r\n <div class=\"col-md-6\">\r\n <label class=\"label-control\" *ngIf=\"mi.type != 'switch'\" translate> {{ mi.label }} </label>\r\n <label class=\"label-control\" *ngIf=\"mi.type == 'switch'\" translate> {{ mi
|
|
416
|
+
template: "<section id=\"horizontal-form-layouts\">\r\n <div class=\"row text-left\">\r\n <div class=\"col-md-12\">\r\n <div class=\"card\" *ngIf=\"isReady\">\r\n <div class=\"pl-3 mb-2 mt-2\" *ngIf=\"viewList?.title != ''\">\r\n <h4 class=\"card-title ucSearch-title\" id=\"horz-layout-colored-controls\" translate> {{ viewList.title }} </h4>\r\n </div>\r\n <div class=\"card-body\" *ngFor=\"let ss of viewList?.subsection;let i = index;\">\r\n <div class=\"px-3\">\r\n <lib-ucSubsection *ngIf=\"ss.subsection != ''\" [id]=\"ss.subSectionId + 'id'\" [title]=\"ss.subSectionTitle\"\r\n [panel]=\"ss.subSectionId\">\r\n </lib-ucSubsection>\r\n <div class=\"form-body\" [id]='ss.subSectionId'>\r\n <div class=\"form-group row\">\r\n <div *ngFor=\"let mi of ss?.mainInfo\"\r\n [ngClass]=\"{ 'col-md-6': mi.isHide == undefined || !mi.isHide || (viewInfoObjList[i][mi.property] != '' && viewInfoObjList[i][mi.property] != null)}\">\r\n <span *ngIf=\"mi.isHide == undefined || !mi.isHide || (viewInfoObjList[i][mi.property] != '' && viewInfoObjList[i][mi.property] != null)\">\r\n <div class=\"row\">\r\n <div class=\"col-md-6\">\r\n <label class=\"label-control\" *ngIf=\"mi.type != 'switch'\" translate> {{ mi.label }} </label>\r\n <label class=\"label-control\" *ngIf=\"mi.type == 'switch'\" translate> {{ mi.case[0].result.label }} </label>\r\n </div>\r\n <div *ngIf=\"viewInfoObjList[i] != undefined\" class=\"col-md-6\" [ngClass]=\"{ 'text-left': mi.position == 'left',\r\n 'text-right': mi.position == 'right', 'text-center': mi.position == 'center' }\">\r\n <span\r\n *ngIf=\"(viewInfoObjList[i][mi.property] != '' && viewInfoObjList[i][mi.property] != null) || mi.type == 'switch'; then nonEmptyLabel else emptyLabel\"></span>\r\n <ng-template #emptyLabel>\r\n <label class=\"label-control\" translate>-</label>\r\n </ng-template>\r\n <ng-template #nonEmptyLabel>\r\n <span *ngIf=\"mi.type == 'text'\">\r\n <label\r\n *ngIf=\"viewInfoObjList[i][mi.property] != '' && viewInfoObjList[i][mi.property] != null\"\r\n class=\"label-control\" translate> {{ viewInfoObjList[i][mi.property] }}\r\n </label>\r\n <label\r\n *ngIf=\"viewInfoObjList[i][mi.property] == '' || viewInfoObjList[i][mi.property] == null\"\r\n class=\"label-control\" translate>-\r\n </label>\r\n </span>\r\n <label *ngIf=\"mi.type == 'currency'\" class=\"label-control\" translate>\r\n {{ viewInfoObjList[i][mi.property] | number:'.2':'en-US'}} </label>\r\n <label *ngIf=\"mi.type == 'date'\" class=\"label-control\" translate>\r\n {{ viewInfoObjList[i][mi.property] | date: 'dd-MMM-yyyy'}} </label>\r\n <label *ngIf=\"mi.type == 'link'\" class=\"label-control\" translate>\r\n <a *ngIf=\"!mi?.isFullpath\" [routerLink]=\"[mi.path]\" [target]=\"mi.target\"\r\n [queryParams]=\"genAction(viewInfoObjList[i], mi.param)\">\r\n {{ viewInfoObjList[i][mi.property] }}\r\n </a>\r\n <a *ngIf=\"mi?.isFullpath\" href=\"javascript:void(0);\"\r\n (click)=\"redirectFullPath(mi.fullpath, genAction(viewInfoObjList[i], mi.param), mi.target)\">\r\n {{ viewInfoObjList[i][mi.property] }}\r\n </a>\r\n </label>\r\n <label *ngIf=\"mi.type == 'callback'\" class=\"label-control\" translate>\r\n <a href=\"javascript:void(0);\" (click)=\"callbackFunction(viewInfoObjList[i], mi.key)\">\r\n {{ viewInfoObjList[i][mi.property] }}\r\n </a>\r\n </label>\r\n <textarea *ngIf=\"mi.type == 'textarea'\" class=\"form-control\" readonly\r\n translate> {{ viewInfoObjList[i][mi.property] }} </textarea>\r\n <span *ngIf=\"mi.type == 'boolean'\">\r\n <label *ngIf=\"viewInfoObjList[i][mi.property] == true\">Yes</label>\r\n <label *ngIf=\"viewInfoObjList[i][mi.property] == false\">No</label>\r\n <!-- <label\r\n *ngIf=\"viewInfoObjList[i][mi.property] == '' || viewInfoObjList[i][mi.property] == null\">-</label> -->\r\n </span>\r\n <span *ngIf=\"mi.type == 'concat'\">\r\n <label class=\"label-control\" translate> {{ mi.concat }}\r\n </label>\r\n </span>\r\n <span *ngIf=\"mi.type == 'switch'\">\r\n <span *ngFor=\"let cs of mi?.case\">\r\n <span *ngIf=\"switchCase(viewInfoObjList[i],cs)\">\r\n <span class=\"label-control\" *ngIf=\"cs.result.type == 'text'\">{{ viewInfoObjList[i][cs.result.property] }}</span>\r\n </span>\r\n </span>\r\n </span>\r\n </ng-template>\r\n </div>\r\n </div>\r\n </span>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n</section>"
|
|
417
417
|
}] }
|
|
418
418
|
];
|
|
419
419
|
/** @nocollapse */
|