@adins/ucviewgeneric 2.0.65 → 2.0.66

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 CHANGED
@@ -3,6 +3,9 @@
3
3
  This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 7.2.0.
4
4
 
5
5
  ## Version
6
+ Version 2.0.66
7
+ 1. fix viewgeneric bug boolean != '' => false
8
+
6
9
  Version 2.0.65
7
10
  1. fix viewgeneric undefined
8
11
 
@@ -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\r\n *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\" *ngIf=\"mi.type != 'switch'\">\r\n <label class=\"label-control\" [ngClass]=\"mi.customClassLabel != undefined ? mi.customClassLabel : ''\" translate> {{ mi.label }} </label>\r\n </div>\r\n <div class=\"col-md-6\" *ngIf=\"mi.type == 'switch'\">\r\n <div *ngFor=\"let case of mi?.case\">\r\n <div *ngIf=\"switchCase(viewInfoObjList[i],case)\">\r\n <label class=\"label-control\" [ngClass]=\"mi.customClassLabel != undefined ? mi.customClassLabel : ''\" translate> {{ case.result.label }} </label>\r\n </div>\r\n </div>\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\" [ngClass]=\"mi.customClassProperty != undefined ? mi.customClassProperty : ''\" 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\" [ngClass]=\"mi.customClassProperty != undefined ? mi.customClassProperty : ''\" 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\" [ngClass]=\"mi.customClassProperty != undefined ? mi.customClassProperty : ''\" translate>-\r\n </label>\r\n </span>\r\n <label *ngIf=\"mi.type == 'currency'\" class=\"label-control\" [ngClass]=\"mi.customClassProperty != undefined ? mi.customClassProperty : ''\" translate>\r\n {{ viewInfoObjList[i][mi.property] | number:'.2':'en-US'}} </label>\r\n <label *ngIf=\"mi.type == 'date'\" class=\"label-control\" [ngClass]=\"mi.customClassProperty != undefined ? mi.customClassProperty : ''\" translate>\r\n {{ viewInfoObjList[i][mi.property] | date: 'dd-MMM-yyyy'}} </label>\r\n <label *ngIf=\"mi.type == 'link'\" class=\"label-control\" [ngClass]=\"mi.customClassProperty != undefined ? mi.customClassProperty : ''\" translate>\r\n <a *ngIf=\"!mi?.isFullpath\" [routerLink]=\"genRouterLink(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\" [ngClass]=\"mi.customClassProperty != undefined ? mi.customClassProperty : ''\" 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 [ngClass]=\"mi.customClassProperty != undefined ? mi.customClassProperty : ''\" translate> {{ viewInfoObjList[i][mi.property] }} </textarea>\r\n <span *ngIf=\"mi.type == 'boolean'\" [ngClass]=\"mi.customClassProperty != undefined ? mi.customClassProperty : ''\" translate>\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\" [ngClass]=\"mi.customClassProperty != undefined ? mi.customClassProperty : ''\" 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\" [ngClass]=\"mi.customClassProperty != undefined ? mi.customClassProperty : ''\" translate\r\n *ngIf=\"cs.result.type == 'text'\">{{ viewInfoObjList[i][cs.result.property] }}\r\n </span>\r\n <span [ngClass]=\"mi.customClassProperty != undefined ? mi.customClassProperty : ''\" translate\r\n *ngIf=\"cs.result.type == 'decimal'\">{{ viewInfoObjList[i][cs.result.property] | number:'.2':'en-US' }}</span>\r\n <span [ngClass]=\"mi.customClassProperty != undefined ? mi.customClassProperty : ''\" translate\r\n *ngIf=\"cs.result.type == 'date'\">{{ viewInfoObjList[i][cs.result.property] | date: 'dd-MMM-yyyy' }}\r\n </span>\r\n <span *ngIf=\"cs.result.type == 'link'\" [ngClass]=\"mi.customClassProperty != undefined ? mi.customClassProperty : ''\" translate>\r\n <a [target]=\"cs.result.target\" [routerLink]=\"genRouterLink(cs.result.path)\"\r\n [queryParams]=\"genAction(viewInfoObjList[i],cs.result.param)\">{{ viewInfoObjList[i][cs.result.property] }}</a>\r\n </span>\r\n <span *ngIf=\"cs.result.type == 'boolean'\" [ngClass]=\"mi.customClassProperty != undefined ? mi.customClassProperty : ''\" translate>\r\n <span *ngIf=\"viewInfoObjList[i][cs.result.property] == 'true'\">Yes</span>\r\n <span *ngIf=\"viewInfoObjList[i][cs.result.property] == 'false'\">No</span>\r\n </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"}],"genRouterLink":[{"__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"}
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\r\n *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\" *ngIf=\"mi.type != 'switch'\">\r\n <label class=\"label-control\" [ngClass]=\"mi.customClassLabel != undefined ? mi.customClassLabel : ''\" translate> {{ mi.label }} </label>\r\n </div>\r\n <div class=\"col-md-6\" *ngIf=\"mi.type == 'switch'\">\r\n <div *ngFor=\"let case of mi?.case\">\r\n <div *ngIf=\"switchCase(viewInfoObjList[i],case)\">\r\n <label class=\"label-control\" [ngClass]=\"mi.customClassLabel != undefined ? mi.customClassLabel : ''\" translate> {{ case.result.label }} </label>\r\n </div>\r\n </div>\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=\"(mi.type == 'boolean' && viewInfoObjList[i][mi.property] != null) || (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\" [ngClass]=\"mi.customClassProperty != undefined ? mi.customClassProperty : ''\" 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\" [ngClass]=\"mi.customClassProperty != undefined ? mi.customClassProperty : ''\" 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\" [ngClass]=\"mi.customClassProperty != undefined ? mi.customClassProperty : ''\" translate>-\r\n </label>\r\n </span>\r\n <label *ngIf=\"mi.type == 'currency'\" class=\"label-control\" [ngClass]=\"mi.customClassProperty != undefined ? mi.customClassProperty : ''\" translate>\r\n {{ viewInfoObjList[i][mi.property] | number:'.2':'en-US'}} </label>\r\n <label *ngIf=\"mi.type == 'date'\" class=\"label-control\" [ngClass]=\"mi.customClassProperty != undefined ? mi.customClassProperty : ''\" translate>\r\n {{ viewInfoObjList[i][mi.property] | date: 'dd-MMM-yyyy'}} </label>\r\n <label *ngIf=\"mi.type == 'link'\" class=\"label-control\" [ngClass]=\"mi.customClassProperty != undefined ? mi.customClassProperty : ''\" translate>\r\n <a *ngIf=\"!mi?.isFullpath\" [routerLink]=\"genRouterLink(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\" [ngClass]=\"mi.customClassProperty != undefined ? mi.customClassProperty : ''\" 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 [ngClass]=\"mi.customClassProperty != undefined ? mi.customClassProperty : ''\" translate> {{ viewInfoObjList[i][mi.property] }} </textarea>\r\n <span *ngIf=\"mi.type == 'boolean'\" [ngClass]=\"mi.customClassProperty != undefined ? mi.customClassProperty : ''\" translate>\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\" [ngClass]=\"mi.customClassProperty != undefined ? mi.customClassProperty : ''\" 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\" [ngClass]=\"mi.customClassProperty != undefined ? mi.customClassProperty : ''\" translate\r\n *ngIf=\"cs.result.type == 'text'\">{{ viewInfoObjList[i][cs.result.property] }}\r\n </span>\r\n <span [ngClass]=\"mi.customClassProperty != undefined ? mi.customClassProperty : ''\" translate\r\n *ngIf=\"cs.result.type == 'decimal'\">{{ viewInfoObjList[i][cs.result.property] | number:'.2':'en-US' }}</span>\r\n <span [ngClass]=\"mi.customClassProperty != undefined ? mi.customClassProperty : ''\" translate\r\n *ngIf=\"cs.result.type == 'date'\">{{ viewInfoObjList[i][cs.result.property] | date: 'dd-MMM-yyyy' }}\r\n </span>\r\n <span *ngIf=\"cs.result.type == 'link'\" [ngClass]=\"mi.customClassProperty != undefined ? mi.customClassProperty : ''\" translate>\r\n <a [target]=\"cs.result.target\" [routerLink]=\"genRouterLink(cs.result.path)\"\r\n [queryParams]=\"genAction(viewInfoObjList[i],cs.result.param)\">{{ viewInfoObjList[i][cs.result.property] }}</a>\r\n </span>\r\n <span *ngIf=\"cs.result.type == 'boolean'\" [ngClass]=\"mi.customClassProperty != undefined ? mi.customClassProperty : ''\" translate>\r\n <span *ngIf=\"viewInfoObjList[i][cs.result.property] == 'true'\">Yes</span>\r\n <span *ngIf=\"viewInfoObjList[i][cs.result.property] == 'false'\">No</span>\r\n </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"}],"genRouterLink":[{"__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"}
@@ -432,7 +432,7 @@
432
432
  UcviewgenericComponent.decorators = [
433
433
  { type: i0.Component, args: [{
434
434
  selector: 'lib-ucviewgeneric',
435
- 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\r\n *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\" *ngIf=\"mi.type != 'switch'\">\r\n <label class=\"label-control\" [ngClass]=\"mi.customClassLabel != undefined ? mi.customClassLabel : ''\" translate> {{ mi.label }} </label>\r\n </div>\r\n <div class=\"col-md-6\" *ngIf=\"mi.type == 'switch'\">\r\n <div *ngFor=\"let case of mi?.case\">\r\n <div *ngIf=\"switchCase(viewInfoObjList[i],case)\">\r\n <label class=\"label-control\" [ngClass]=\"mi.customClassLabel != undefined ? mi.customClassLabel : ''\" translate> {{ case.result.label }} </label>\r\n </div>\r\n </div>\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\" [ngClass]=\"mi.customClassProperty != undefined ? mi.customClassProperty : ''\" 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\" [ngClass]=\"mi.customClassProperty != undefined ? mi.customClassProperty : ''\" 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\" [ngClass]=\"mi.customClassProperty != undefined ? mi.customClassProperty : ''\" translate>-\r\n </label>\r\n </span>\r\n <label *ngIf=\"mi.type == 'currency'\" class=\"label-control\" [ngClass]=\"mi.customClassProperty != undefined ? mi.customClassProperty : ''\" translate>\r\n {{ viewInfoObjList[i][mi.property] | number:'.2':'en-US'}} </label>\r\n <label *ngIf=\"mi.type == 'date'\" class=\"label-control\" [ngClass]=\"mi.customClassProperty != undefined ? mi.customClassProperty : ''\" translate>\r\n {{ viewInfoObjList[i][mi.property] | date: 'dd-MMM-yyyy'}} </label>\r\n <label *ngIf=\"mi.type == 'link'\" class=\"label-control\" [ngClass]=\"mi.customClassProperty != undefined ? mi.customClassProperty : ''\" translate>\r\n <a *ngIf=\"!mi?.isFullpath\" [routerLink]=\"genRouterLink(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\" [ngClass]=\"mi.customClassProperty != undefined ? mi.customClassProperty : ''\" 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 [ngClass]=\"mi.customClassProperty != undefined ? mi.customClassProperty : ''\" translate> {{ viewInfoObjList[i][mi.property] }} </textarea>\r\n <span *ngIf=\"mi.type == 'boolean'\" [ngClass]=\"mi.customClassProperty != undefined ? mi.customClassProperty : ''\" translate>\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\" [ngClass]=\"mi.customClassProperty != undefined ? mi.customClassProperty : ''\" 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\" [ngClass]=\"mi.customClassProperty != undefined ? mi.customClassProperty : ''\" translate\r\n *ngIf=\"cs.result.type == 'text'\">{{ viewInfoObjList[i][cs.result.property] }}\r\n </span>\r\n <span [ngClass]=\"mi.customClassProperty != undefined ? mi.customClassProperty : ''\" translate\r\n *ngIf=\"cs.result.type == 'decimal'\">{{ viewInfoObjList[i][cs.result.property] | number:'.2':'en-US' }}</span>\r\n <span [ngClass]=\"mi.customClassProperty != undefined ? mi.customClassProperty : ''\" translate\r\n *ngIf=\"cs.result.type == 'date'\">{{ viewInfoObjList[i][cs.result.property] | date: 'dd-MMM-yyyy' }}\r\n </span>\r\n <span *ngIf=\"cs.result.type == 'link'\" [ngClass]=\"mi.customClassProperty != undefined ? mi.customClassProperty : ''\" translate>\r\n <a [target]=\"cs.result.target\" [routerLink]=\"genRouterLink(cs.result.path)\"\r\n [queryParams]=\"genAction(viewInfoObjList[i],cs.result.param)\">{{ viewInfoObjList[i][cs.result.property] }}</a>\r\n </span>\r\n <span *ngIf=\"cs.result.type == 'boolean'\" [ngClass]=\"mi.customClassProperty != undefined ? mi.customClassProperty : ''\" translate>\r\n <span *ngIf=\"viewInfoObjList[i][cs.result.property] == 'true'\">Yes</span>\r\n <span *ngIf=\"viewInfoObjList[i][cs.result.property] == 'false'\">No</span>\r\n </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>"
435
+ 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\r\n *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\" *ngIf=\"mi.type != 'switch'\">\r\n <label class=\"label-control\" [ngClass]=\"mi.customClassLabel != undefined ? mi.customClassLabel : ''\" translate> {{ mi.label }} </label>\r\n </div>\r\n <div class=\"col-md-6\" *ngIf=\"mi.type == 'switch'\">\r\n <div *ngFor=\"let case of mi?.case\">\r\n <div *ngIf=\"switchCase(viewInfoObjList[i],case)\">\r\n <label class=\"label-control\" [ngClass]=\"mi.customClassLabel != undefined ? mi.customClassLabel : ''\" translate> {{ case.result.label }} </label>\r\n </div>\r\n </div>\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=\"(mi.type == 'boolean' && viewInfoObjList[i][mi.property] != null) || (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\" [ngClass]=\"mi.customClassProperty != undefined ? mi.customClassProperty : ''\" 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\" [ngClass]=\"mi.customClassProperty != undefined ? mi.customClassProperty : ''\" 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\" [ngClass]=\"mi.customClassProperty != undefined ? mi.customClassProperty : ''\" translate>-\r\n </label>\r\n </span>\r\n <label *ngIf=\"mi.type == 'currency'\" class=\"label-control\" [ngClass]=\"mi.customClassProperty != undefined ? mi.customClassProperty : ''\" translate>\r\n {{ viewInfoObjList[i][mi.property] | number:'.2':'en-US'}} </label>\r\n <label *ngIf=\"mi.type == 'date'\" class=\"label-control\" [ngClass]=\"mi.customClassProperty != undefined ? mi.customClassProperty : ''\" translate>\r\n {{ viewInfoObjList[i][mi.property] | date: 'dd-MMM-yyyy'}} </label>\r\n <label *ngIf=\"mi.type == 'link'\" class=\"label-control\" [ngClass]=\"mi.customClassProperty != undefined ? mi.customClassProperty : ''\" translate>\r\n <a *ngIf=\"!mi?.isFullpath\" [routerLink]=\"genRouterLink(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\" [ngClass]=\"mi.customClassProperty != undefined ? mi.customClassProperty : ''\" 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 [ngClass]=\"mi.customClassProperty != undefined ? mi.customClassProperty : ''\" translate> {{ viewInfoObjList[i][mi.property] }} </textarea>\r\n <span *ngIf=\"mi.type == 'boolean'\" [ngClass]=\"mi.customClassProperty != undefined ? mi.customClassProperty : ''\" translate>\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\" [ngClass]=\"mi.customClassProperty != undefined ? mi.customClassProperty : ''\" 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\" [ngClass]=\"mi.customClassProperty != undefined ? mi.customClassProperty : ''\" translate\r\n *ngIf=\"cs.result.type == 'text'\">{{ viewInfoObjList[i][cs.result.property] }}\r\n </span>\r\n <span [ngClass]=\"mi.customClassProperty != undefined ? mi.customClassProperty : ''\" translate\r\n *ngIf=\"cs.result.type == 'decimal'\">{{ viewInfoObjList[i][cs.result.property] | number:'.2':'en-US' }}</span>\r\n <span [ngClass]=\"mi.customClassProperty != undefined ? mi.customClassProperty : ''\" translate\r\n *ngIf=\"cs.result.type == 'date'\">{{ viewInfoObjList[i][cs.result.property] | date: 'dd-MMM-yyyy' }}\r\n </span>\r\n <span *ngIf=\"cs.result.type == 'link'\" [ngClass]=\"mi.customClassProperty != undefined ? mi.customClassProperty : ''\" translate>\r\n <a [target]=\"cs.result.target\" [routerLink]=\"genRouterLink(cs.result.path)\"\r\n [queryParams]=\"genAction(viewInfoObjList[i],cs.result.param)\">{{ viewInfoObjList[i][cs.result.property] }}</a>\r\n </span>\r\n <span *ngIf=\"cs.result.type == 'boolean'\" [ngClass]=\"mi.customClassProperty != undefined ? mi.customClassProperty : ''\" translate>\r\n <span *ngIf=\"viewInfoObjList[i][cs.result.property] == 'true'\">Yes</span>\r\n <span *ngIf=\"viewInfoObjList[i][cs.result.property] == 'false'\">No</span>\r\n </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>"
436
436
  }] }
437
437
  ];
438
438
  /** @nocollapse */
@@ -1 +1 @@
1
- {"version":3,"file":"adins-ucviewgeneric.umd.js.map","sources":["ng://@adins/ucviewgeneric/lib/ucviewgeneric.service.ts","ng://@adins/ucviewgeneric/lib/model/UcViewGenericObj.model.ts","ng://@adins/ucviewgeneric/lib/ucviewgeneric.component.ts","ng://@adins/ucviewgeneric/lib/ucviewgeneric.module.ts"],"sourcesContent":["import { Injectable } from '@angular/core';\r\n\r\n@Injectable({\r\n providedIn: 'root'\r\n})\r\nexport class UcviewgenericService {\r\n\r\n constructor() { }\r\n}\r\n","\r\nexport class UcViewGenericObj {\r\n viewInput: string;\r\n viewEnvironment: string;\r\n navigationConst: any;\r\n ddlEnvironments: Array<EnviObj>;\r\n whereValue: Array<WhereValueObj>;\r\n\r\n constructor() {\r\n this.viewInput = \"\";\r\n this.viewEnvironment = \"\";\r\n this.ddlEnvironments = new Array<EnviObj>();\r\n this.whereValue = new Array<WhereValueObj>();\r\n }\r\n}\r\n\r\nexport class EnviObj {\r\n name: string;\r\n environment: string;\r\n\r\n constructor() {\r\n this.name = \"\";\r\n this.environment = \"\";\r\n }\r\n}\r\n\r\nexport class WhereValueObj {\r\n property: string;\r\n value: any;\r\n\r\n constructor() {\r\n this.property = \"\";\r\n }\r\n}","import { Component, OnInit, Input, Output, EventEmitter } from '@angular/core';\r\nimport { ActivatedRoute } from '@angular/router';\r\nimport { HttpClient } from '@angular/common/http';\r\nimport { Observable } from 'rxjs';\r\nimport { EnviObj } from './model/EnviObj.model';\r\nimport { UcViewGenericObj } from './model/UcViewGenericObj.model';\r\n\r\n@Component({\r\n selector: 'lib-ucviewgeneric',\r\n templateUrl: './ucviewgeneric.component.html',\r\n styles: []\r\n})\r\nexport class UcviewgenericComponent implements OnInit {\r\n\r\n @Input() viewGenericObj: UcViewGenericObj = new UcViewGenericObj();\r\n @Output() callback: EventEmitter<any> = new EventEmitter();\r\n viewList: any = \"\";\r\n getList: any;\r\n viewInfoObjList: any;\r\n isReady: boolean = false;\r\n\r\n constructor(private route: ActivatedRoute, private http: HttpClient) {\r\n this.route.queryParams.subscribe(params => {\r\n this.getList = params;\r\n });\r\n }\r\n\r\n ngOnInit() {\r\n console.log(\"viewgeneric\");\r\n this.initiateForm();\r\n }\r\n\r\n initiateForm() {\r\n this.getJSON(this.viewGenericObj.viewInput).subscribe(data => {\r\n this.viewList = data;\r\n this.viewInfoObjList = [];\r\n\r\n for (var j = 0; j < this.viewList.subsection.length; j++) {\r\n this.viewInfoObjList.push(j);\r\n }\r\n\r\n for (let i = 0; i < this.viewList.subsection.length; i++) {\r\n if (this.viewList.subsection[i].querystring != null) {\r\n var queryObj: any;\r\n if (this.viewGenericObj.whereValue.length == 0) {\r\n this.viewList.subsection[i].querystring.whereQuery = (<any>Object).values(this.getList);\r\n } else {\r\n this.viewList.subsection[i].querystring.whereQuery = this.viewGenericObj.whereValue;\r\n }\r\n\r\n if (this.viewList.subsection[i].mainInfoPath != undefined && this.viewList.subsection[i].mainInfoPath != \"\") {\r\n if (this.viewGenericObj.viewEnvironment != undefined && this.viewGenericObj.viewEnvironment != \"\") {\r\n this.viewList.subsection[i].fullpath = this.viewGenericObj.viewEnvironment + this.viewList.subsection[i].mainInfoPath;\r\n } else {\r\n this.viewList.subsection[i].fullpath = this.viewList.subsection[i].mainInfoUrl;\r\n }\r\n } else {\r\n this.viewList.subsection[i].fullpath = this.viewList.subsection[i].mainInfoUrl;\r\n }\r\n\r\n queryObj = {\r\n querystring: this.viewList.subsection[i].querystring\r\n }\r\n this.http.post(this.viewList.subsection[i].fullpath, queryObj).subscribe(\r\n (response) => {\r\n this.viewInfoObjList[i] = response[\"Data\"][0];\r\n\r\n for (var y = 0; y < this.viewList.subsection[i].mainInfo.length; y++) {\r\n if (this.viewList.subsection[i].mainInfo[y].propertyList != undefined && this.viewList.subsection[i].mainInfo[y].propertyList.length != 0) {\r\n const propertyList = this.viewList.subsection[i].mainInfo[y].propertyList;\r\n let concat = \"\";\r\n for (let z = 0; z < propertyList.length; z++) {\r\n concat = concat + propertyList[z].prefix + this.viewInfoObjList[i][propertyList[z].property] + propertyList[z].suffix;\r\n }\r\n this.viewList.subsection[i].mainInfo[y].concat = concat;\r\n }\r\n\r\n if (this.viewList.subsection[i].mainInfo[y].type == \"link\" && (this.viewGenericObj.navigationConst != undefined || this.viewGenericObj.navigationConst != null)){\r\n let tempLink = this.viewGenericObj.navigationConst[this.viewList.subsection[i].mainInfo[y].path];\r\n if (tempLink != undefined && tempLink != null) {\r\n this.viewList.subsection[i].mainInfo[y].path = tempLink;\r\n }\r\n }\r\n if (this.viewList.subsection[i].mainInfo[y].type == \"link\"\r\n && this.viewGenericObj.ddlEnvironments != undefined && this.viewGenericObj.ddlEnvironments.length != 0) {\r\n for (let z = 0; z < this.viewGenericObj.ddlEnvironments.length; z++) {\r\n if (this.viewList.subsection[i].mainInfo[y].name == this.viewGenericObj.ddlEnvironments[z].name) {\r\n this.viewList.subsection[i].mainInfo[y].isFullpath = true;\r\n this.viewList.subsection[i].mainInfo[y].fullpath = this.viewGenericObj.ddlEnvironments[z].environment + this.viewList.subsection[i].mainInfo[y].path;\r\n break;\r\n }\r\n }\r\n } else if (this.viewList.subsection[i].mainInfo[y].type == \"link\") {\r\n this.viewList.subsection[i].mainInfo[y].isFullpath = false;\r\n this.viewList.subsection[i].mainInfo[y].fullpath = this.viewList.subsection[i].mainInfo[y].path;\r\n }\r\n }\r\n this.isReady = true;\r\n },\r\n (error) => {\r\n console.log(error);\r\n });\r\n } else {\r\n if (this.viewList.subsection[i].mainInfoPath != undefined && this.viewList.subsection[i].mainInfoPath != \"\") {\r\n if (this.viewGenericObj.viewEnvironment != undefined && this.viewGenericObj.viewEnvironment != \"\") {\r\n this.viewList.subsection[i].fullpath = this.viewGenericObj.viewEnvironment + this.viewList.subsection[i].mainInfoPath;\r\n } else {\r\n this.viewList.subsection[i].fullpath = this.viewList.subsection[i].mainInfoUrl;\r\n }\r\n } else {\r\n this.viewList.subsection[i].fullpath = this.viewList.subsection[i].mainInfoUrl;\r\n }\r\n\r\n this.http.post(this.viewList.subsection[i].fullpath, this.getList).subscribe(\r\n (response) => {\r\n this.viewInfoObjList[i] = response[\"Data\"];\r\n },\r\n (error) => {\r\n console.log(error);\r\n })\r\n }\r\n }\r\n })\r\n }\r\n\r\n public getJSON(url: string): Observable<any> {\r\n return this.http.get(url);\r\n }\r\n\r\n genAction(viewObj, param) {\r\n var arrList = {};\r\n\r\n for (var i = 0; i < param.length; i++) {\r\n if (viewObj[param[i].type] != undefined || viewObj[param[i].property] != undefined) {\r\n arrList[param[i].type] = viewObj[param[i].property];\r\n } else {\r\n arrList[param[i].type] = param[i].property;\r\n }\r\n }\r\n return arrList;\r\n }\r\n\r\n genRouterLink(urlLink: string) {\r\n let tempLink = urlLink;\r\n if (this.viewGenericObj.navigationConst != undefined && this.viewGenericObj.navigationConst[urlLink] != null) {\r\n tempLink = this.viewGenericObj.navigationConst[urlLink];\r\n }\r\n return tempLink;\r\n }\r\n\r\n redirectFullPath(fullpath: string, param: Object, target: string) {\r\n let queryParam = \"\";\r\n const ListObj = Object.keys(param);\r\n for (let i = 0; i < ListObj.length; i++) {\r\n if (queryParam != \"\") {\r\n queryParam = queryParam + \"&\" + ListObj[i] + \"=\" + param[ListObj[i]];\r\n } else {\r\n queryParam = ListObj[i] + \"=\" + param[ListObj[i]];\r\n }\r\n }\r\n window.open(fullpath + \"?\" + queryParam, target);\r\n }\r\n\r\n callbackFunction(item, key: string = \"\") {\r\n var CBObj = {\r\n ViewObj: item,\r\n Key: key\r\n }\r\n this.callback.emit(CBObj);\r\n }\r\n\r\n switchCase(item, condList) {\r\n var condition = false;\r\n\r\n for (var i = 0; i < condList.conditions.length; i++) {\r\n if (condList.conditions[i].restriction == \"EQ\") {\r\n if (condList.conditions[i].isUser != true) {\r\n if (item[condList.conditions[i].property] == condList.conditions[i].value) {\r\n condition = true;\r\n } else {\r\n condition = false;\r\n break;\r\n }\r\n } else {\r\n var username = localStorage.getItem(\"Username\");\r\n if (item[condList.conditions[i].property] == username) {\r\n condition = true;\r\n } else {\r\n condition = false;\r\n break;\r\n }\r\n }\r\n } else if (condList.conditions[i].restriction == \"NEQ\") {\r\n if (condList.conditions[i].isUser != true) {\r\n if (item[condList.conditions[i].property] != condList.conditions[i].value) {\r\n condition = true;\r\n } else {\r\n condition = false;\r\n break;\r\n }\r\n } else {\r\n var username = localStorage.getItem(\"Username\");\r\n if (item[condList.conditions[i].property] != username) {\r\n condition = true;\r\n } else {\r\n condition = false;\r\n break;\r\n }\r\n }\r\n } else if (condList.conditions[i].restriction == \"GT\") {\r\n if (condList.conditions[i].isUser != true) {\r\n if (item[condList.conditions[i].property] > condList.conditions[i].value) {\r\n condition = true;\r\n } else {\r\n condition = false;\r\n break;\r\n }\r\n } else {\r\n var username = localStorage.getItem(\"Username\");\r\n if (item[condList.conditions[i].property] > username) {\r\n condition = true;\r\n } else {\r\n condition = false;\r\n break;\r\n }\r\n }\r\n } else if (condList.conditions[i].restriction == \"GTE\") {\r\n if (condList.conditions[i].isUser != true) {\r\n if (item[condList.conditions[i].property] >= condList.conditions[i].value) {\r\n condition = true;\r\n } else {\r\n condition = false;\r\n break;\r\n }\r\n } else {\r\n var username = localStorage.getItem(\"Username\");\r\n if (item[condList.conditions[i].property] >= username) {\r\n condition = true;\r\n } else {\r\n condition = false;\r\n break;\r\n }\r\n }\r\n } else if (condList.conditions[i].restriction == \"LT\") {\r\n if (condList.conditions[i].isUser != true) {\r\n if (item[condList.conditions[i].property] < condList.conditions[i].value) {\r\n condition = true;\r\n } else {\r\n condition = false;\r\n break;\r\n }\r\n } else {\r\n var username = localStorage.getItem(\"Username\");\r\n if (item[condList.conditions[i].property] < username) {\r\n condition = true;\r\n } else {\r\n condition = false;\r\n break;\r\n }\r\n }\r\n } else if (condList.conditions[i].restriction == \"LTE\") {\r\n if (condList.conditions[i].isUser != true) {\r\n if (item[condList.conditions[i].property] <= condList.conditions[i].value) {\r\n condition = true;\r\n } else {\r\n condition = false;\r\n break;\r\n }\r\n } else {\r\n var username = localStorage.getItem(\"Username\");\r\n if (item[condList.conditions[i].property] <= username) {\r\n condition = true;\r\n } else {\r\n condition = false;\r\n break;\r\n }\r\n }\r\n }\r\n }\r\n return condition;\r\n }\r\n}\r\n","import { NgModule } from '@angular/core';\r\nimport { UcviewgenericComponent } from './ucviewgeneric.component';\r\nimport { CommonModule } from '@angular/common';\r\nimport { RouterModule } from '@angular/router';\r\nimport { UcSubsectionModule } from '@adins/uc-subsection';\r\n\r\n@NgModule({\r\n declarations: [UcviewgenericComponent],\r\n imports: [\r\n CommonModule,\r\n RouterModule,\r\n UcSubsectionModule\r\n ],\r\n exports: [UcviewgenericComponent]\r\n})\r\nexport class UcviewgenericModule { }\r\n"],"names":["Injectable","http","EventEmitter","Component","ActivatedRoute","HttpClient","Input","Output","NgModule","CommonModule","RouterModule","UcSubsectionModule"],"mappings":";;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KAAK,CAAC;gCAClB,MAAM;6BACP;yBACF;qBACF;iBACF;gBACD,OAAO,SAAS,CAAC;aAClB;;oBAjRFC,YAAS,SAAC;wBACT,QAAQ,EAAE,mBAAmB;wBAC7B,89RAA6C;qBAE9C;;;;;wBAVQC,qBAAc;wBACdC,eAAU;;;;qCAYhBC,QAAK;+BACLC,SAAM;;QA0QT,6BAAC;KAlRD;;;;;;ACPA;QAMA;SASoC;;oBATnCC,WAAQ,SAAC;wBACR,YAAY,EAAE,CAAC,sBAAsB,CAAC;wBACtC,OAAO,EAAE;4BACPC,mBAAY;4BACZC,mBAAY;4BACZC,+BAAkB;yBACnB;wBACD,OAAO,EAAE,CAAC,sBAAsB,CAAC;qBAClC;;QACkC,0BAAC;KATpC;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"adins-ucviewgeneric.umd.js.map","sources":["ng://@adins/ucviewgeneric/lib/ucviewgeneric.service.ts","ng://@adins/ucviewgeneric/lib/model/UcViewGenericObj.model.ts","ng://@adins/ucviewgeneric/lib/ucviewgeneric.component.ts","ng://@adins/ucviewgeneric/lib/ucviewgeneric.module.ts"],"sourcesContent":["import { Injectable } from '@angular/core';\r\n\r\n@Injectable({\r\n providedIn: 'root'\r\n})\r\nexport class UcviewgenericService {\r\n\r\n constructor() { }\r\n}\r\n","\r\nexport class UcViewGenericObj {\r\n viewInput: string;\r\n viewEnvironment: string;\r\n navigationConst: any;\r\n ddlEnvironments: Array<EnviObj>;\r\n whereValue: Array<WhereValueObj>;\r\n\r\n constructor() {\r\n this.viewInput = \"\";\r\n this.viewEnvironment = \"\";\r\n this.ddlEnvironments = new Array<EnviObj>();\r\n this.whereValue = new Array<WhereValueObj>();\r\n }\r\n}\r\n\r\nexport class EnviObj {\r\n name: string;\r\n environment: string;\r\n\r\n constructor() {\r\n this.name = \"\";\r\n this.environment = \"\";\r\n }\r\n}\r\n\r\nexport class WhereValueObj {\r\n property: string;\r\n value: any;\r\n\r\n constructor() {\r\n this.property = \"\";\r\n }\r\n}","import { Component, OnInit, Input, Output, EventEmitter } from '@angular/core';\r\nimport { ActivatedRoute } from '@angular/router';\r\nimport { HttpClient } from '@angular/common/http';\r\nimport { Observable } from 'rxjs';\r\nimport { EnviObj } from './model/EnviObj.model';\r\nimport { UcViewGenericObj } from './model/UcViewGenericObj.model';\r\n\r\n@Component({\r\n selector: 'lib-ucviewgeneric',\r\n templateUrl: './ucviewgeneric.component.html',\r\n styles: []\r\n})\r\nexport class UcviewgenericComponent implements OnInit {\r\n\r\n @Input() viewGenericObj: UcViewGenericObj = new UcViewGenericObj();\r\n @Output() callback: EventEmitter<any> = new EventEmitter();\r\n viewList: any = \"\";\r\n getList: any;\r\n viewInfoObjList: any;\r\n isReady: boolean = false;\r\n\r\n constructor(private route: ActivatedRoute, private http: HttpClient) {\r\n this.route.queryParams.subscribe(params => {\r\n this.getList = params;\r\n });\r\n }\r\n\r\n ngOnInit() {\r\n console.log(\"viewgeneric\");\r\n this.initiateForm();\r\n }\r\n\r\n initiateForm() {\r\n this.getJSON(this.viewGenericObj.viewInput).subscribe(data => {\r\n this.viewList = data;\r\n this.viewInfoObjList = [];\r\n\r\n for (var j = 0; j < this.viewList.subsection.length; j++) {\r\n this.viewInfoObjList.push(j);\r\n }\r\n\r\n for (let i = 0; i < this.viewList.subsection.length; i++) {\r\n if (this.viewList.subsection[i].querystring != null) {\r\n var queryObj: any;\r\n if (this.viewGenericObj.whereValue.length == 0) {\r\n this.viewList.subsection[i].querystring.whereQuery = (<any>Object).values(this.getList);\r\n } else {\r\n this.viewList.subsection[i].querystring.whereQuery = this.viewGenericObj.whereValue;\r\n }\r\n\r\n if (this.viewList.subsection[i].mainInfoPath != undefined && this.viewList.subsection[i].mainInfoPath != \"\") {\r\n if (this.viewGenericObj.viewEnvironment != undefined && this.viewGenericObj.viewEnvironment != \"\") {\r\n this.viewList.subsection[i].fullpath = this.viewGenericObj.viewEnvironment + this.viewList.subsection[i].mainInfoPath;\r\n } else {\r\n this.viewList.subsection[i].fullpath = this.viewList.subsection[i].mainInfoUrl;\r\n }\r\n } else {\r\n this.viewList.subsection[i].fullpath = this.viewList.subsection[i].mainInfoUrl;\r\n }\r\n\r\n queryObj = {\r\n querystring: this.viewList.subsection[i].querystring\r\n }\r\n this.http.post(this.viewList.subsection[i].fullpath, queryObj).subscribe(\r\n (response) => {\r\n this.viewInfoObjList[i] = response[\"Data\"][0];\r\n\r\n for (var y = 0; y < this.viewList.subsection[i].mainInfo.length; y++) {\r\n if (this.viewList.subsection[i].mainInfo[y].propertyList != undefined && this.viewList.subsection[i].mainInfo[y].propertyList.length != 0) {\r\n const propertyList = this.viewList.subsection[i].mainInfo[y].propertyList;\r\n let concat = \"\";\r\n for (let z = 0; z < propertyList.length; z++) {\r\n concat = concat + propertyList[z].prefix + this.viewInfoObjList[i][propertyList[z].property] + propertyList[z].suffix;\r\n }\r\n this.viewList.subsection[i].mainInfo[y].concat = concat;\r\n }\r\n\r\n if (this.viewList.subsection[i].mainInfo[y].type == \"link\" && (this.viewGenericObj.navigationConst != undefined || this.viewGenericObj.navigationConst != null)){\r\n let tempLink = this.viewGenericObj.navigationConst[this.viewList.subsection[i].mainInfo[y].path];\r\n if (tempLink != undefined && tempLink != null) {\r\n this.viewList.subsection[i].mainInfo[y].path = tempLink;\r\n }\r\n }\r\n if (this.viewList.subsection[i].mainInfo[y].type == \"link\"\r\n && this.viewGenericObj.ddlEnvironments != undefined && this.viewGenericObj.ddlEnvironments.length != 0) {\r\n for (let z = 0; z < this.viewGenericObj.ddlEnvironments.length; z++) {\r\n if (this.viewList.subsection[i].mainInfo[y].name == this.viewGenericObj.ddlEnvironments[z].name) {\r\n this.viewList.subsection[i].mainInfo[y].isFullpath = true;\r\n this.viewList.subsection[i].mainInfo[y].fullpath = this.viewGenericObj.ddlEnvironments[z].environment + this.viewList.subsection[i].mainInfo[y].path;\r\n break;\r\n }\r\n }\r\n } else if (this.viewList.subsection[i].mainInfo[y].type == \"link\") {\r\n this.viewList.subsection[i].mainInfo[y].isFullpath = false;\r\n this.viewList.subsection[i].mainInfo[y].fullpath = this.viewList.subsection[i].mainInfo[y].path;\r\n }\r\n }\r\n this.isReady = true;\r\n },\r\n (error) => {\r\n console.log(error);\r\n });\r\n } else {\r\n if (this.viewList.subsection[i].mainInfoPath != undefined && this.viewList.subsection[i].mainInfoPath != \"\") {\r\n if (this.viewGenericObj.viewEnvironment != undefined && this.viewGenericObj.viewEnvironment != \"\") {\r\n this.viewList.subsection[i].fullpath = this.viewGenericObj.viewEnvironment + this.viewList.subsection[i].mainInfoPath;\r\n } else {\r\n this.viewList.subsection[i].fullpath = this.viewList.subsection[i].mainInfoUrl;\r\n }\r\n } else {\r\n this.viewList.subsection[i].fullpath = this.viewList.subsection[i].mainInfoUrl;\r\n }\r\n\r\n this.http.post(this.viewList.subsection[i].fullpath, this.getList).subscribe(\r\n (response) => {\r\n this.viewInfoObjList[i] = response[\"Data\"];\r\n },\r\n (error) => {\r\n console.log(error);\r\n })\r\n }\r\n }\r\n })\r\n }\r\n\r\n public getJSON(url: string): Observable<any> {\r\n return this.http.get(url);\r\n }\r\n\r\n genAction(viewObj, param) {\r\n var arrList = {};\r\n\r\n for (var i = 0; i < param.length; i++) {\r\n if (viewObj[param[i].type] != undefined || viewObj[param[i].property] != undefined) {\r\n arrList[param[i].type] = viewObj[param[i].property];\r\n } else {\r\n arrList[param[i].type] = param[i].property;\r\n }\r\n }\r\n return arrList;\r\n }\r\n\r\n genRouterLink(urlLink: string) {\r\n let tempLink = urlLink;\r\n if (this.viewGenericObj.navigationConst != undefined && this.viewGenericObj.navigationConst[urlLink] != null) {\r\n tempLink = this.viewGenericObj.navigationConst[urlLink];\r\n }\r\n return tempLink;\r\n }\r\n\r\n redirectFullPath(fullpath: string, param: Object, target: string) {\r\n let queryParam = \"\";\r\n const ListObj = Object.keys(param);\r\n for (let i = 0; i < ListObj.length; i++) {\r\n if (queryParam != \"\") {\r\n queryParam = queryParam + \"&\" + ListObj[i] + \"=\" + param[ListObj[i]];\r\n } else {\r\n queryParam = ListObj[i] + \"=\" + param[ListObj[i]];\r\n }\r\n }\r\n window.open(fullpath + \"?\" + queryParam, target);\r\n }\r\n\r\n callbackFunction(item, key: string = \"\") {\r\n var CBObj = {\r\n ViewObj: item,\r\n Key: key\r\n }\r\n this.callback.emit(CBObj);\r\n }\r\n\r\n switchCase(item, condList) {\r\n var condition = false;\r\n\r\n for (var i = 0; i < condList.conditions.length; i++) {\r\n if (condList.conditions[i].restriction == \"EQ\") {\r\n if (condList.conditions[i].isUser != true) {\r\n if (item[condList.conditions[i].property] == condList.conditions[i].value) {\r\n condition = true;\r\n } else {\r\n condition = false;\r\n break;\r\n }\r\n } else {\r\n var username = localStorage.getItem(\"Username\");\r\n if (item[condList.conditions[i].property] == username) {\r\n condition = true;\r\n } else {\r\n condition = false;\r\n break;\r\n }\r\n }\r\n } else if (condList.conditions[i].restriction == \"NEQ\") {\r\n if (condList.conditions[i].isUser != true) {\r\n if (item[condList.conditions[i].property] != condList.conditions[i].value) {\r\n condition = true;\r\n } else {\r\n condition = false;\r\n break;\r\n }\r\n } else {\r\n var username = localStorage.getItem(\"Username\");\r\n if (item[condList.conditions[i].property] != username) {\r\n condition = true;\r\n } else {\r\n condition = false;\r\n break;\r\n }\r\n }\r\n } else if (condList.conditions[i].restriction == \"GT\") {\r\n if (condList.conditions[i].isUser != true) {\r\n if (item[condList.conditions[i].property] > condList.conditions[i].value) {\r\n condition = true;\r\n } else {\r\n condition = false;\r\n break;\r\n }\r\n } else {\r\n var username = localStorage.getItem(\"Username\");\r\n if (item[condList.conditions[i].property] > username) {\r\n condition = true;\r\n } else {\r\n condition = false;\r\n break;\r\n }\r\n }\r\n } else if (condList.conditions[i].restriction == \"GTE\") {\r\n if (condList.conditions[i].isUser != true) {\r\n if (item[condList.conditions[i].property] >= condList.conditions[i].value) {\r\n condition = true;\r\n } else {\r\n condition = false;\r\n break;\r\n }\r\n } else {\r\n var username = localStorage.getItem(\"Username\");\r\n if (item[condList.conditions[i].property] >= username) {\r\n condition = true;\r\n } else {\r\n condition = false;\r\n break;\r\n }\r\n }\r\n } else if (condList.conditions[i].restriction == \"LT\") {\r\n if (condList.conditions[i].isUser != true) {\r\n if (item[condList.conditions[i].property] < condList.conditions[i].value) {\r\n condition = true;\r\n } else {\r\n condition = false;\r\n break;\r\n }\r\n } else {\r\n var username = localStorage.getItem(\"Username\");\r\n if (item[condList.conditions[i].property] < username) {\r\n condition = true;\r\n } else {\r\n condition = false;\r\n break;\r\n }\r\n }\r\n } else if (condList.conditions[i].restriction == \"LTE\") {\r\n if (condList.conditions[i].isUser != true) {\r\n if (item[condList.conditions[i].property] <= condList.conditions[i].value) {\r\n condition = true;\r\n } else {\r\n condition = false;\r\n break;\r\n }\r\n } else {\r\n var username = localStorage.getItem(\"Username\");\r\n if (item[condList.conditions[i].property] <= username) {\r\n condition = true;\r\n } else {\r\n condition = false;\r\n break;\r\n }\r\n }\r\n }\r\n }\r\n return condition;\r\n }\r\n}\r\n","import { NgModule } from '@angular/core';\r\nimport { UcviewgenericComponent } from './ucviewgeneric.component';\r\nimport { CommonModule } from '@angular/common';\r\nimport { RouterModule } from '@angular/router';\r\nimport { UcSubsectionModule } from '@adins/uc-subsection';\r\n\r\n@NgModule({\r\n declarations: [UcviewgenericComponent],\r\n imports: [\r\n CommonModule,\r\n RouterModule,\r\n UcSubsectionModule\r\n ],\r\n exports: [UcviewgenericComponent]\r\n})\r\nexport class UcviewgenericModule { }\r\n"],"names":["Injectable","http","EventEmitter","Component","ActivatedRoute","HttpClient","Input","Output","NgModule","CommonModule","RouterModule","UcSubsectionModule"],"mappings":";;;;;;;;;;AAAA;QAOE;SAAiB;;oBALlBA,aAAU,SAAC;wBACV,UAAU,EAAE,MAAM;qBACnB;;;;;mCAJD;KAEA;;;;;;ICDA;QAOI;YACI,IAAI,CAAC,SAAS,GAAG,EAAE,CAAC;YACpB,IAAI,CAAC,eAAe,GAAG,EAAE,CAAC;YAC1B,IAAI,CAAC,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;;QA0QT,6BAAC;KAlRD;;;;;;ACPA;QAMA;SASoC;;oBATnCC,WAAQ,SAAC;wBACR,YAAY,EAAE,CAAC,sBAAsB,CAAC;wBACtC,OAAO,EAAE;4BACPC,mBAAY;4BACZC,mBAAY;4BACZC,+BAAkB;yBACnB;wBACD,OAAO,EAAE,CAAC,sBAAsB,CAAC;qBAClC;;QACkC,0BAAC;KATpC;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1,2 +1,2 @@
1
- !function(e,n){"object"==typeof exports&&"undefined"!=typeof module?n(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"],n):n((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,n,t,i,s,r){"use strict";var o=(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 f(){this.viewInput="",this.viewEnvironment="",this.ddlEnvironments=new Array,this.whereValue=new Array},c=(u.prototype.ngOnInit=function(){console.log("viewgeneric"),this.initiateForm()},u.prototype.initiateForm=function(){var a=this;this.getJSON(this.viewGenericObj.viewInput).subscribe(function(e){a.viewList=e,a.viewInfoObjList=[];for(var n=0;n<a.viewList.subsection.length;n++)a.viewInfoObjList.push(n);for(var i,t=function(o){null!=a.viewList.subsection[o].querystring?(0==a.viewGenericObj.whereValue.length?a.viewList.subsection[o].querystring.whereQuery=Object.values(a.getList):a.viewList.subsection[o].querystring.whereQuery=a.viewGenericObj.whereValue,a.viewList.subsection[o].mainInfoPath!=undefined&&""!=a.viewList.subsection[o].mainInfoPath&&a.viewGenericObj.viewEnvironment!=undefined&&""!=a.viewGenericObj.viewEnvironment?a.viewList.subsection[o].fullpath=a.viewGenericObj.viewEnvironment+a.viewList.subsection[o].mainInfoPath:a.viewList.subsection[o].fullpath=a.viewList.subsection[o].mainInfoUrl,i={querystring:a.viewList.subsection[o].querystring},a.http.post(a.viewList.subsection[o].fullpath,i).subscribe(function(e){a.viewInfoObjList[o]=e.Data[0];for(var n=0;n<a.viewList.subsection[o].mainInfo.length;n++){if(a.viewList.subsection[o].mainInfo[n].propertyList!=undefined&&0!=a.viewList.subsection[o].mainInfo[n].propertyList.length){for(var i=a.viewList.subsection[o].mainInfo[n].propertyList,t="",s=0;s<i.length;s++)t=t+i[s].prefix+a.viewInfoObjList[o][i[s].property]+i[s].suffix;a.viewList.subsection[o].mainInfo[n].concat=t}if("link"==a.viewList.subsection[o].mainInfo[n].type&&(a.viewGenericObj.navigationConst!=undefined||null!=a.viewGenericObj.navigationConst)){var r=a.viewGenericObj.navigationConst[a.viewList.subsection[o].mainInfo[n].path];r!=undefined&&null!=r&&(a.viewList.subsection[o].mainInfo[n].path=r)}if("link"==a.viewList.subsection[o].mainInfo[n].type&&a.viewGenericObj.ddlEnvironments!=undefined&&0!=a.viewGenericObj.ddlEnvironments.length){for(s=0;s<a.viewGenericObj.ddlEnvironments.length;s++)if(a.viewList.subsection[o].mainInfo[n].name==a.viewGenericObj.ddlEnvironments[s].name){a.viewList.subsection[o].mainInfo[n].isFullpath=!0,a.viewList.subsection[o].mainInfo[n].fullpath=a.viewGenericObj.ddlEnvironments[s].environment+a.viewList.subsection[o].mainInfo[n].path;break}}else"link"==a.viewList.subsection[o].mainInfo[n].type&&(a.viewList.subsection[o].mainInfo[n].isFullpath=!1,a.viewList.subsection[o].mainInfo[n].fullpath=a.viewList.subsection[o].mainInfo[n].path)}a.isReady=!0},function(e){console.log(e)})):(a.viewList.subsection[o].mainInfoPath!=undefined&&""!=a.viewList.subsection[o].mainInfoPath&&a.viewGenericObj.viewEnvironment!=undefined&&""!=a.viewGenericObj.viewEnvironment?a.viewList.subsection[o].fullpath=a.viewGenericObj.viewEnvironment+a.viewList.subsection[o].mainInfoPath:a.viewList.subsection[o].fullpath=a.viewList.subsection[o].mainInfoUrl,a.http.post(a.viewList.subsection[o].fullpath,a.getList).subscribe(function(e){a.viewInfoObjList[o]=e.Data},function(e){console.log(e)}))},s=0;s<a.viewList.subsection.length;s++)t(s)})},u.prototype.getJSON=function(e){return this.http.get(e)},u.prototype.genAction=function(e,n){for(var i={},t=0;t<n.length;t++)e[n[t].type]!=undefined||e[n[t].property]!=undefined?i[n[t].type]=e[n[t].property]:i[n[t].type]=n[t].property;return i},u.prototype.genRouterLink=function(e){var n=e;return this.viewGenericObj.navigationConst!=undefined&&null!=this.viewGenericObj.navigationConst[e]&&(n=this.viewGenericObj.navigationConst[e]),n},u.prototype.redirectFullPath=function(e,n,i){for(var t="",s=Object.keys(n),r=0;r<s.length;r++)t=""!=t?t+"&"+s[r]+"="+n[s[r]]:s[r]+"="+n[s[r]];window.open(e+"?"+t,i)},u.prototype.callbackFunction=function(e,n){void 0===n&&(n="");var i={ViewObj:e,Key:n};this.callback.emit(i)},u.prototype.switchCase=function(e,n){for(var i=!1,t=0;t<n.conditions.length;t++)if("EQ"==n.conditions[t].restriction)if(1!=n.conditions[t].isUser){if(e[n.conditions[t].property]!=n.conditions[t].value){i=!1;break}i=!0}else{var s=localStorage.getItem("Username");if(e[n.conditions[t].property]!=s){i=!1;break}i=!0}else if("NEQ"==n.conditions[t].restriction)if(1!=n.conditions[t].isUser){if(e[n.conditions[t].property]==n.conditions[t].value){i=!1;break}i=!0}else{if(s=localStorage.getItem("Username"),e[n.conditions[t].property]==s){i=!1;break}i=!0}else if("GT"==n.conditions[t].restriction)if(1!=n.conditions[t].isUser){if(!(e[n.conditions[t].property]>n.conditions[t].value)){i=!1;break}i=!0}else{if(s=localStorage.getItem("Username"),!(e[n.conditions[t].property]>s)){i=!1;break}i=!0}else if("GTE"==n.conditions[t].restriction)if(1!=n.conditions[t].isUser){if(!(e[n.conditions[t].property]>=n.conditions[t].value)){i=!1;break}i=!0}else{if(s=localStorage.getItem("Username"),!(e[n.conditions[t].property]>=s)){i=!1;break}i=!0}else if("LT"==n.conditions[t].restriction)if(1!=n.conditions[t].isUser){if(!(e[n.conditions[t].property]<n.conditions[t].value)){i=!1;break}i=!0}else{if(s=localStorage.getItem("Username"),!(e[n.conditions[t].property]<s)){i=!1;break}i=!0}else if("LTE"==n.conditions[t].restriction)if(1!=n.conditions[t].isUser){if(!(e[n.conditions[t].property]<=n.conditions[t].value)){i=!1;break}i=!0}else{if(s=localStorage.getItem("Username"),!(e[n.conditions[t].property]<=s)){i=!1;break}i=!0}return i},u.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\r\n *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" *ngIf="mi.type != \'switch\'">\r\n <label class="label-control" [ngClass]="mi.customClassLabel != undefined ? mi.customClassLabel : \'\'" translate> {{ mi.label }} </label>\r\n </div>\r\n <div class="col-md-6" *ngIf="mi.type == \'switch\'">\r\n <div *ngFor="let case of mi?.case">\r\n <div *ngIf="switchCase(viewInfoObjList[i],case)">\r\n <label class="label-control" [ngClass]="mi.customClassLabel != undefined ? mi.customClassLabel : \'\'" translate> {{ case.result.label }} </label>\r\n </div>\r\n </div>\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" [ngClass]="mi.customClassProperty != undefined ? mi.customClassProperty : \'\'" 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" [ngClass]="mi.customClassProperty != undefined ? mi.customClassProperty : \'\'" 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" [ngClass]="mi.customClassProperty != undefined ? mi.customClassProperty : \'\'" translate>-\r\n </label>\r\n </span>\r\n <label *ngIf="mi.type == \'currency\'" class="label-control" [ngClass]="mi.customClassProperty != undefined ? mi.customClassProperty : \'\'" translate>\r\n {{ viewInfoObjList[i][mi.property] | number:\'.2\':\'en-US\'}} </label>\r\n <label *ngIf="mi.type == \'date\'" class="label-control" [ngClass]="mi.customClassProperty != undefined ? mi.customClassProperty : \'\'" translate>\r\n {{ viewInfoObjList[i][mi.property] | date: \'dd-MMM-yyyy\'}} </label>\r\n <label *ngIf="mi.type == \'link\'" class="label-control" [ngClass]="mi.customClassProperty != undefined ? mi.customClassProperty : \'\'" translate>\r\n <a *ngIf="!mi?.isFullpath" [routerLink]="genRouterLink(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" [ngClass]="mi.customClassProperty != undefined ? mi.customClassProperty : \'\'" 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 [ngClass]="mi.customClassProperty != undefined ? mi.customClassProperty : \'\'" translate> {{ viewInfoObjList[i][mi.property] }} </textarea>\r\n <span *ngIf="mi.type == \'boolean\'" [ngClass]="mi.customClassProperty != undefined ? mi.customClassProperty : \'\'" translate>\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" [ngClass]="mi.customClassProperty != undefined ? mi.customClassProperty : \'\'" 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" [ngClass]="mi.customClassProperty != undefined ? mi.customClassProperty : \'\'" translate\r\n *ngIf="cs.result.type == \'text\'">{{ viewInfoObjList[i][cs.result.property] }}\r\n </span>\r\n <span [ngClass]="mi.customClassProperty != undefined ? mi.customClassProperty : \'\'" translate\r\n *ngIf="cs.result.type == \'decimal\'">{{ viewInfoObjList[i][cs.result.property] | number:\'.2\':\'en-US\' }}</span>\r\n <span [ngClass]="mi.customClassProperty != undefined ? mi.customClassProperty : \'\'" translate\r\n *ngIf="cs.result.type == \'date\'">{{ viewInfoObjList[i][cs.result.property] | date: \'dd-MMM-yyyy\' }}\r\n </span>\r\n <span *ngIf="cs.result.type == \'link\'" [ngClass]="mi.customClassProperty != undefined ? mi.customClassProperty : \'\'" translate>\r\n <a [target]="cs.result.target" [routerLink]="genRouterLink(cs.result.path)"\r\n [queryParams]="genAction(viewInfoObjList[i],cs.result.param)">{{ viewInfoObjList[i][cs.result.property] }}</a>\r\n </span>\r\n <span *ngIf="cs.result.type == \'boolean\'" [ngClass]="mi.customClassProperty != undefined ? mi.customClassProperty : \'\'" translate>\r\n <span *ngIf="viewInfoObjList[i][cs.result.property] == \'true\'">Yes</span>\r\n <span *ngIf="viewInfoObjList[i][cs.result.property] == \'false\'">No</span>\r\n </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>'}]}],u.ctorParameters=function(){return[{type:s.ActivatedRoute},{type:n.HttpClient}]},u.propDecorators={viewGenericObj:[{type:t.Input}],callback:[{type:t.Output}]},u);function u(e,n){var i=this;this.route=e,this.http=n,this.viewGenericObj=new l,this.callback=new t.EventEmitter,this.viewList="",this.isReady=!1,this.route.queryParams.subscribe(function(e){i.getList=e})}var p=(m.decorators=[{type:t.NgModule,args:[{declarations:[c],imports:[i.CommonModule,s.RouterModule,r.UcSubsectionModule],exports:[c]}]}],m);function m(){}e.UcviewgenericService=o,e.UcviewgenericComponent=c,e.UcviewgenericModule=p,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,s,r){"use strict";var o=(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 f(){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 a=this;this.getJSON(this.viewGenericObj.viewInput).subscribe(function(e){a.viewList=e,a.viewInfoObjList=[];for(var i=0;i<a.viewList.subsection.length;i++)a.viewInfoObjList.push(i);for(var n,t=function(o){null!=a.viewList.subsection[o].querystring?(0==a.viewGenericObj.whereValue.length?a.viewList.subsection[o].querystring.whereQuery=Object.values(a.getList):a.viewList.subsection[o].querystring.whereQuery=a.viewGenericObj.whereValue,a.viewList.subsection[o].mainInfoPath!=undefined&&""!=a.viewList.subsection[o].mainInfoPath&&a.viewGenericObj.viewEnvironment!=undefined&&""!=a.viewGenericObj.viewEnvironment?a.viewList.subsection[o].fullpath=a.viewGenericObj.viewEnvironment+a.viewList.subsection[o].mainInfoPath:a.viewList.subsection[o].fullpath=a.viewList.subsection[o].mainInfoUrl,n={querystring:a.viewList.subsection[o].querystring},a.http.post(a.viewList.subsection[o].fullpath,n).subscribe(function(e){a.viewInfoObjList[o]=e.Data[0];for(var i=0;i<a.viewList.subsection[o].mainInfo.length;i++){if(a.viewList.subsection[o].mainInfo[i].propertyList!=undefined&&0!=a.viewList.subsection[o].mainInfo[i].propertyList.length){for(var n=a.viewList.subsection[o].mainInfo[i].propertyList,t="",s=0;s<n.length;s++)t=t+n[s].prefix+a.viewInfoObjList[o][n[s].property]+n[s].suffix;a.viewList.subsection[o].mainInfo[i].concat=t}if("link"==a.viewList.subsection[o].mainInfo[i].type&&(a.viewGenericObj.navigationConst!=undefined||null!=a.viewGenericObj.navigationConst)){var r=a.viewGenericObj.navigationConst[a.viewList.subsection[o].mainInfo[i].path];r!=undefined&&null!=r&&(a.viewList.subsection[o].mainInfo[i].path=r)}if("link"==a.viewList.subsection[o].mainInfo[i].type&&a.viewGenericObj.ddlEnvironments!=undefined&&0!=a.viewGenericObj.ddlEnvironments.length){for(s=0;s<a.viewGenericObj.ddlEnvironments.length;s++)if(a.viewList.subsection[o].mainInfo[i].name==a.viewGenericObj.ddlEnvironments[s].name){a.viewList.subsection[o].mainInfo[i].isFullpath=!0,a.viewList.subsection[o].mainInfo[i].fullpath=a.viewGenericObj.ddlEnvironments[s].environment+a.viewList.subsection[o].mainInfo[i].path;break}}else"link"==a.viewList.subsection[o].mainInfo[i].type&&(a.viewList.subsection[o].mainInfo[i].isFullpath=!1,a.viewList.subsection[o].mainInfo[i].fullpath=a.viewList.subsection[o].mainInfo[i].path)}a.isReady=!0},function(e){console.log(e)})):(a.viewList.subsection[o].mainInfoPath!=undefined&&""!=a.viewList.subsection[o].mainInfoPath&&a.viewGenericObj.viewEnvironment!=undefined&&""!=a.viewGenericObj.viewEnvironment?a.viewList.subsection[o].fullpath=a.viewGenericObj.viewEnvironment+a.viewList.subsection[o].mainInfoPath:a.viewList.subsection[o].fullpath=a.viewList.subsection[o].mainInfoUrl,a.http.post(a.viewList.subsection[o].fullpath,a.getList).subscribe(function(e){a.viewInfoObjList[o]=e.Data},function(e){console.log(e)}))},s=0;s<a.viewList.subsection.length;s++)t(s)})},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.genRouterLink=function(e){var i=e;return this.viewGenericObj.navigationConst!=undefined&&null!=this.viewGenericObj.navigationConst[e]&&(i=this.viewGenericObj.navigationConst[e]),i},p.prototype.redirectFullPath=function(e,i,n){for(var t="",s=Object.keys(i),r=0;r<s.length;r++)t=""!=t?t+"&"+s[r]+"="+i[s[r]]:s[r]+"="+i[s[r]];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 s=localStorage.getItem("Username");if(e[i.conditions[t].property]!=s){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(s=localStorage.getItem("Username"),e[i.conditions[t].property]==s){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(s=localStorage.getItem("Username"),!(e[i.conditions[t].property]>s)){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(s=localStorage.getItem("Username"),!(e[i.conditions[t].property]>=s)){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(s=localStorage.getItem("Username"),!(e[i.conditions[t].property]<s)){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(s=localStorage.getItem("Username"),!(e[i.conditions[t].property]<=s)){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\r\n *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" *ngIf="mi.type != \'switch\'">\r\n <label class="label-control" [ngClass]="mi.customClassLabel != undefined ? mi.customClassLabel : \'\'" translate> {{ mi.label }} </label>\r\n </div>\r\n <div class="col-md-6" *ngIf="mi.type == \'switch\'">\r\n <div *ngFor="let case of mi?.case">\r\n <div *ngIf="switchCase(viewInfoObjList[i],case)">\r\n <label class="label-control" [ngClass]="mi.customClassLabel != undefined ? mi.customClassLabel : \'\'" translate> {{ case.result.label }} </label>\r\n </div>\r\n </div>\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="(mi.type == \'boolean\' && viewInfoObjList[i][mi.property] != null) || (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" [ngClass]="mi.customClassProperty != undefined ? mi.customClassProperty : \'\'" 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" [ngClass]="mi.customClassProperty != undefined ? mi.customClassProperty : \'\'" 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" [ngClass]="mi.customClassProperty != undefined ? mi.customClassProperty : \'\'" translate>-\r\n </label>\r\n </span>\r\n <label *ngIf="mi.type == \'currency\'" class="label-control" [ngClass]="mi.customClassProperty != undefined ? mi.customClassProperty : \'\'" translate>\r\n {{ viewInfoObjList[i][mi.property] | number:\'.2\':\'en-US\'}} </label>\r\n <label *ngIf="mi.type == \'date\'" class="label-control" [ngClass]="mi.customClassProperty != undefined ? mi.customClassProperty : \'\'" translate>\r\n {{ viewInfoObjList[i][mi.property] | date: \'dd-MMM-yyyy\'}} </label>\r\n <label *ngIf="mi.type == \'link\'" class="label-control" [ngClass]="mi.customClassProperty != undefined ? mi.customClassProperty : \'\'" translate>\r\n <a *ngIf="!mi?.isFullpath" [routerLink]="genRouterLink(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" [ngClass]="mi.customClassProperty != undefined ? mi.customClassProperty : \'\'" 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 [ngClass]="mi.customClassProperty != undefined ? mi.customClassProperty : \'\'" translate> {{ viewInfoObjList[i][mi.property] }} </textarea>\r\n <span *ngIf="mi.type == \'boolean\'" [ngClass]="mi.customClassProperty != undefined ? mi.customClassProperty : \'\'" translate>\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" [ngClass]="mi.customClassProperty != undefined ? mi.customClassProperty : \'\'" 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" [ngClass]="mi.customClassProperty != undefined ? mi.customClassProperty : \'\'" translate\r\n *ngIf="cs.result.type == \'text\'">{{ viewInfoObjList[i][cs.result.property] }}\r\n </span>\r\n <span [ngClass]="mi.customClassProperty != undefined ? mi.customClassProperty : \'\'" translate\r\n *ngIf="cs.result.type == \'decimal\'">{{ viewInfoObjList[i][cs.result.property] | number:\'.2\':\'en-US\' }}</span>\r\n <span [ngClass]="mi.customClassProperty != undefined ? mi.customClassProperty : \'\'" translate\r\n *ngIf="cs.result.type == \'date\'">{{ viewInfoObjList[i][cs.result.property] | date: \'dd-MMM-yyyy\' }}\r\n </span>\r\n <span *ngIf="cs.result.type == \'link\'" [ngClass]="mi.customClassProperty != undefined ? mi.customClassProperty : \'\'" translate>\r\n <a [target]="cs.result.target" [routerLink]="genRouterLink(cs.result.path)"\r\n [queryParams]="genAction(viewInfoObjList[i],cs.result.param)">{{ viewInfoObjList[i][cs.result.property] }}</a>\r\n </span>\r\n <span *ngIf="cs.result.type == \'boolean\'" [ngClass]="mi.customClassProperty != undefined ? mi.customClassProperty : \'\'" translate>\r\n <span *ngIf="viewInfoObjList[i][cs.result.property] == \'true\'">Yes</span>\r\n <span *ngIf="viewInfoObjList[i][cs.result.property] == \'false\'">No</span>\r\n </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:s.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=(m.decorators=[{type:t.NgModule,args:[{declarations:[c],imports:[n.CommonModule,s.RouterModule,r.UcSubsectionModule],exports:[c]}]}],m);function m(){}e.UcviewgenericService=o,e.UcviewgenericComponent=c,e.UcviewgenericModule=u,Object.defineProperty(e,"__esModule",{value:!0})});
2
2
  //# sourceMappingURL=adins-ucviewgeneric.umd.min.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["ng://@adins/ucviewgeneric/lib/ucviewgeneric.service.ts","ng://@adins/ucviewgeneric/lib/model/UcViewGenericObj.model.ts","ng://@adins/ucviewgeneric/lib/ucviewgeneric.component.ts","ng://@adins/ucviewgeneric/lib/ucviewgeneric.module.ts"],"names":["UcviewgenericService","Injectable","args","providedIn","UcViewGenericObj","this","viewInput","viewEnvironment","ddlEnvironments","Array","whereValue","UcviewgenericComponent","prototype","ngOnInit","console","log","initiateForm","_this","getJSON","viewGenericObj","subscribe","data","viewList","viewInfoObjList","j","subsection","length","push","queryObj","i","querystring","whereQuery","values","getList","mainInfoPath","undefined","fullpath","mainInfoUrl","http","post","response","y","mainInfo","propertyList","concat","z","prefix","property","suffix","type","navigationConst","tempLink","path","name","isFullpath","environment","isReady","error","url","get","genAction","viewObj","param","arrList","genRouterLink","urlLink","redirectFullPath","target","queryParam","ListObj","Object","keys","window","open","callbackFunction","item","key","CBObj","ViewObj","Key","callback","emit","switchCase","condList","condition","conditions","restriction","isUser","value","username","localStorage","getItem","Component","selector","template","ActivatedRoute","HttpClient","Input","Output","route","EventEmitter","queryParams","params","UcviewgenericModule","NgModule","declarations","imports","CommonModule","RouterModule","UcSubsectionModule","exports"],"mappings":"gjBAAA,IAAAA,uBAECC,EAAAA,WAAUC,KAAA,CAAC,CACVC,WAAY,uJAIZ,SAAAH,KCNF,IAAAI,EAOI,SAAAA,IACIC,KAAKC,UAAY,GACjBD,KAAKE,gBAAkB,GACvBF,KAAKG,gBAAkB,IAAIC,MAC3BJ,KAAKK,WAAa,IAAID,OCZ9BE,GA2BEA,EAAAC,UAAAC,SAAA,WACEC,QAAQC,IAAI,eACZV,KAAKW,gBAGPL,EAAAC,UAAAI,aAAA,WAAA,IAAAC,EAAAZ,KACEA,KAAKa,QAAQb,KAAKc,eAAeb,WAAWc,UAAS,SAACC,GACpDJ,EAAKK,SAAWD,EAChBJ,EAAKM,gBAAkB,GAEvB,IAAK,IAAIC,EAAI,EAAGA,EAAIP,EAAKK,SAASG,WAAWC,OAAQF,IACnDP,EAAKM,gBAAgBI,KAAKH,GAG5B,QAEQI,aAFCC,GACwC,MAA3CZ,EAAKK,SAASG,WAAWI,GAAGC,aAEe,GAAzCb,EAAKE,eAAeT,WAAWgB,OACjCT,EAAKK,SAASG,WAAWI,GAAGC,YAAYC,WAAa,OAAcC,OAAOf,EAAKgB,SAE/EhB,EAAKK,SAASG,WAAWI,GAAGC,YAAYC,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AAiC,KAAAA,EAP1CjC,KAAAc,eAAmC,IAAIf,EACtCC,KAAA2E,SAA8B,IAAIoB,EAAAA,aAC5C/F,KAAAiB,SAAgB,GAGhBjB,KAAAmD,SAAmB,EAGjBnD,KAAK8F,MAAME,YAAYjF,UAAS,SAACkF,GAC/BrF,EAAKgB,QAAUqE,ICvBrB,IAAAC,uBAMCC,EAAAA,SAAQtG,KAAA,CAAC,CACRuG,aAAc,CAAC9F,GACf+F,QAAS,CACPC,EAAAA,aACAC,EAAAA,aACAC,EAAAA,oBAEFC,QAAS,CAACnG,OAEuB4F,GATnC,SAAAA","sourcesContent":["import { Injectable } from '@angular/core';\r\n\r\n@Injectable({\r\n providedIn: 'root'\r\n})\r\nexport class UcviewgenericService {\r\n\r\n constructor() { }\r\n}\r\n","\r\nexport class UcViewGenericObj {\r\n viewInput: string;\r\n viewEnvironment: string;\r\n navigationConst: any;\r\n ddlEnvironments: Array<EnviObj>;\r\n whereValue: Array<WhereValueObj>;\r\n\r\n constructor() {\r\n this.viewInput = \"\";\r\n this.viewEnvironment = \"\";\r\n this.ddlEnvironments = new Array<EnviObj>();\r\n this.whereValue = new Array<WhereValueObj>();\r\n }\r\n}\r\n\r\nexport class EnviObj {\r\n name: string;\r\n environment: string;\r\n\r\n constructor() {\r\n this.name = \"\";\r\n this.environment = \"\";\r\n }\r\n}\r\n\r\nexport class WhereValueObj {\r\n property: string;\r\n value: any;\r\n\r\n constructor() {\r\n this.property = \"\";\r\n }\r\n}","import { Component, OnInit, Input, Output, EventEmitter } from '@angular/core';\r\nimport { ActivatedRoute } from '@angular/router';\r\nimport { HttpClient } from '@angular/common/http';\r\nimport { Observable } from 'rxjs';\r\nimport { EnviObj } from './model/EnviObj.model';\r\nimport { UcViewGenericObj } from './model/UcViewGenericObj.model';\r\n\r\n@Component({\r\n selector: 'lib-ucviewgeneric',\r\n templateUrl: './ucviewgeneric.component.html',\r\n styles: []\r\n})\r\nexport class UcviewgenericComponent implements OnInit {\r\n\r\n @Input() viewGenericObj: UcViewGenericObj = new UcViewGenericObj();\r\n @Output() callback: EventEmitter<any> = new EventEmitter();\r\n viewList: any = \"\";\r\n getList: any;\r\n viewInfoObjList: any;\r\n isReady: boolean = false;\r\n\r\n constructor(private route: ActivatedRoute, private http: HttpClient) {\r\n this.route.queryParams.subscribe(params => {\r\n this.getList = params;\r\n });\r\n }\r\n\r\n ngOnInit() {\r\n console.log(\"viewgeneric\");\r\n this.initiateForm();\r\n }\r\n\r\n initiateForm() {\r\n this.getJSON(this.viewGenericObj.viewInput).subscribe(data => {\r\n this.viewList = data;\r\n this.viewInfoObjList = [];\r\n\r\n for (var j = 0; j < this.viewList.subsection.length; j++) {\r\n this.viewInfoObjList.push(j);\r\n }\r\n\r\n for (let i = 0; i < this.viewList.subsection.length; i++) {\r\n if (this.viewList.subsection[i].querystring != null) {\r\n var queryObj: any;\r\n if (this.viewGenericObj.whereValue.length == 0) {\r\n this.viewList.subsection[i].querystring.whereQuery = (<any>Object).values(this.getList);\r\n } else {\r\n this.viewList.subsection[i].querystring.whereQuery = this.viewGenericObj.whereValue;\r\n }\r\n\r\n if (this.viewList.subsection[i].mainInfoPath != undefined && this.viewList.subsection[i].mainInfoPath != \"\") {\r\n if (this.viewGenericObj.viewEnvironment != undefined && this.viewGenericObj.viewEnvironment != \"\") {\r\n this.viewList.subsection[i].fullpath = this.viewGenericObj.viewEnvironment + this.viewList.subsection[i].mainInfoPath;\r\n } else {\r\n this.viewList.subsection[i].fullpath = this.viewList.subsection[i].mainInfoUrl;\r\n }\r\n } else {\r\n this.viewList.subsection[i].fullpath = this.viewList.subsection[i].mainInfoUrl;\r\n }\r\n\r\n queryObj = {\r\n querystring: this.viewList.subsection[i].querystring\r\n }\r\n this.http.post(this.viewList.subsection[i].fullpath, queryObj).subscribe(\r\n (response) => {\r\n this.viewInfoObjList[i] = response[\"Data\"][0];\r\n\r\n for (var y = 0; y < this.viewList.subsection[i].mainInfo.length; y++) {\r\n if (this.viewList.subsection[i].mainInfo[y].propertyList != undefined && this.viewList.subsection[i].mainInfo[y].propertyList.length != 0) {\r\n const propertyList = this.viewList.subsection[i].mainInfo[y].propertyList;\r\n let concat = \"\";\r\n for (let z = 0; z < propertyList.length; z++) {\r\n concat = concat + propertyList[z].prefix + this.viewInfoObjList[i][propertyList[z].property] + propertyList[z].suffix;\r\n }\r\n this.viewList.subsection[i].mainInfo[y].concat = concat;\r\n }\r\n\r\n if (this.viewList.subsection[i].mainInfo[y].type == \"link\" && (this.viewGenericObj.navigationConst != undefined || this.viewGenericObj.navigationConst != null)){\r\n let tempLink = this.viewGenericObj.navigationConst[this.viewList.subsection[i].mainInfo[y].path];\r\n if (tempLink != undefined && tempLink != null) {\r\n this.viewList.subsection[i].mainInfo[y].path = tempLink;\r\n }\r\n }\r\n if (this.viewList.subsection[i].mainInfo[y].type == \"link\"\r\n && this.viewGenericObj.ddlEnvironments != undefined && this.viewGenericObj.ddlEnvironments.length != 0) {\r\n for (let z = 0; z < this.viewGenericObj.ddlEnvironments.length; z++) {\r\n if (this.viewList.subsection[i].mainInfo[y].name == this.viewGenericObj.ddlEnvironments[z].name) {\r\n this.viewList.subsection[i].mainInfo[y].isFullpath = true;\r\n this.viewList.subsection[i].mainInfo[y].fullpath = this.viewGenericObj.ddlEnvironments[z].environment + this.viewList.subsection[i].mainInfo[y].path;\r\n break;\r\n }\r\n }\r\n } else if (this.viewList.subsection[i].mainInfo[y].type == \"link\") {\r\n this.viewList.subsection[i].mainInfo[y].isFullpath = false;\r\n this.viewList.subsection[i].mainInfo[y].fullpath = this.viewList.subsection[i].mainInfo[y].path;\r\n }\r\n }\r\n this.isReady = true;\r\n },\r\n (error) => {\r\n console.log(error);\r\n });\r\n } else {\r\n if (this.viewList.subsection[i].mainInfoPath != undefined && this.viewList.subsection[i].mainInfoPath != \"\") {\r\n if (this.viewGenericObj.viewEnvironment != undefined && this.viewGenericObj.viewEnvironment != \"\") {\r\n this.viewList.subsection[i].fullpath = this.viewGenericObj.viewEnvironment + this.viewList.subsection[i].mainInfoPath;\r\n } else {\r\n this.viewList.subsection[i].fullpath = this.viewList.subsection[i].mainInfoUrl;\r\n }\r\n } else {\r\n this.viewList.subsection[i].fullpath = this.viewList.subsection[i].mainInfoUrl;\r\n }\r\n\r\n this.http.post(this.viewList.subsection[i].fullpath, this.getList).subscribe(\r\n (response) => {\r\n this.viewInfoObjList[i] = response[\"Data\"];\r\n },\r\n (error) => {\r\n console.log(error);\r\n })\r\n }\r\n }\r\n })\r\n }\r\n\r\n public getJSON(url: string): Observable<any> {\r\n return this.http.get(url);\r\n }\r\n\r\n genAction(viewObj, param) {\r\n var arrList = {};\r\n\r\n for (var i = 0; i < param.length; i++) {\r\n if (viewObj[param[i].type] != undefined || viewObj[param[i].property] != undefined) {\r\n arrList[param[i].type] = viewObj[param[i].property];\r\n } else {\r\n arrList[param[i].type] = param[i].property;\r\n }\r\n }\r\n return arrList;\r\n }\r\n\r\n genRouterLink(urlLink: string) {\r\n let tempLink = urlLink;\r\n if (this.viewGenericObj.navigationConst != undefined && this.viewGenericObj.navigationConst[urlLink] != null) {\r\n tempLink = this.viewGenericObj.navigationConst[urlLink];\r\n }\r\n return tempLink;\r\n }\r\n\r\n redirectFullPath(fullpath: string, param: Object, target: string) {\r\n let queryParam = \"\";\r\n const ListObj = Object.keys(param);\r\n for (let i = 0; i < ListObj.length; i++) {\r\n if (queryParam != \"\") {\r\n queryParam = queryParam + \"&\" + ListObj[i] + \"=\" + param[ListObj[i]];\r\n } else {\r\n queryParam = ListObj[i] + \"=\" + param[ListObj[i]];\r\n }\r\n }\r\n window.open(fullpath + \"?\" + queryParam, target);\r\n }\r\n\r\n callbackFunction(item, key: string = \"\") {\r\n var CBObj = {\r\n ViewObj: item,\r\n Key: key\r\n }\r\n this.callback.emit(CBObj);\r\n }\r\n\r\n switchCase(item, condList) {\r\n var condition = false;\r\n\r\n for (var i = 0; i < condList.conditions.length; i++) {\r\n if (condList.conditions[i].restriction == \"EQ\") {\r\n if (condList.conditions[i].isUser != true) {\r\n if (item[condList.conditions[i].property] == condList.conditions[i].value) {\r\n condition = true;\r\n } else {\r\n condition = false;\r\n break;\r\n }\r\n } else {\r\n var username = localStorage.getItem(\"Username\");\r\n if (item[condList.conditions[i].property] == username) {\r\n condition = true;\r\n } else {\r\n condition = false;\r\n break;\r\n }\r\n }\r\n } else if (condList.conditions[i].restriction == \"NEQ\") {\r\n if (condList.conditions[i].isUser != true) {\r\n if (item[condList.conditions[i].property] != condList.conditions[i].value) {\r\n condition = true;\r\n } else {\r\n condition = false;\r\n break;\r\n }\r\n } else {\r\n var username = localStorage.getItem(\"Username\");\r\n if (item[condList.conditions[i].property] != username) {\r\n condition = true;\r\n } else {\r\n condition = false;\r\n break;\r\n }\r\n }\r\n } else if (condList.conditions[i].restriction == \"GT\") {\r\n if (condList.conditions[i].isUser != true) {\r\n if (item[condList.conditions[i].property] > condList.conditions[i].value) {\r\n condition = true;\r\n } else {\r\n condition = false;\r\n break;\r\n }\r\n } else {\r\n var username = localStorage.getItem(\"Username\");\r\n if (item[condList.conditions[i].property] > username) {\r\n condition = true;\r\n } else {\r\n condition = false;\r\n break;\r\n }\r\n }\r\n } else if (condList.conditions[i].restriction == \"GTE\") {\r\n if (condList.conditions[i].isUser != true) {\r\n if (item[condList.conditions[i].property] >= condList.conditions[i].value) {\r\n condition = true;\r\n } else {\r\n condition = false;\r\n break;\r\n }\r\n } else {\r\n var username = localStorage.getItem(\"Username\");\r\n if (item[condList.conditions[i].property] >= username) {\r\n condition = true;\r\n } else {\r\n condition = false;\r\n break;\r\n }\r\n }\r\n } else if (condList.conditions[i].restriction == \"LT\") {\r\n if (condList.conditions[i].isUser != true) {\r\n if (item[condList.conditions[i].property] < condList.conditions[i].value) {\r\n condition = true;\r\n } else {\r\n condition = false;\r\n break;\r\n }\r\n } else {\r\n var username = localStorage.getItem(\"Username\");\r\n if (item[condList.conditions[i].property] < username) {\r\n condition = true;\r\n } else {\r\n condition = false;\r\n break;\r\n }\r\n }\r\n } else if (condList.conditions[i].restriction == \"LTE\") {\r\n if (condList.conditions[i].isUser != true) {\r\n if (item[condList.conditions[i].property] <= condList.conditions[i].value) {\r\n condition = true;\r\n } else {\r\n condition = false;\r\n break;\r\n }\r\n } else {\r\n var username = localStorage.getItem(\"Username\");\r\n if (item[condList.conditions[i].property] <= username) {\r\n condition = true;\r\n } else {\r\n condition = false;\r\n break;\r\n }\r\n }\r\n }\r\n }\r\n return condition;\r\n }\r\n}\r\n","import { NgModule } from '@angular/core';\r\nimport { UcviewgenericComponent } from './ucviewgeneric.component';\r\nimport { CommonModule } from '@angular/common';\r\nimport { RouterModule } from '@angular/router';\r\nimport { UcSubsectionModule } from '@adins/uc-subsection';\r\n\r\n@NgModule({\r\n declarations: [UcviewgenericComponent],\r\n imports: [\r\n CommonModule,\r\n RouterModule,\r\n UcSubsectionModule\r\n ],\r\n exports: [UcviewgenericComponent]\r\n})\r\nexport class UcviewgenericModule { }\r\n"]}
1
+ {"version":3,"sources":["ng://@adins/ucviewgeneric/lib/ucviewgeneric.service.ts","ng://@adins/ucviewgeneric/lib/model/UcViewGenericObj.model.ts","ng://@adins/ucviewgeneric/lib/ucviewgeneric.component.ts","ng://@adins/ucviewgeneric/lib/ucviewgeneric.module.ts"],"names":["UcviewgenericService","Injectable","args","providedIn","UcViewGenericObj","this","viewInput","viewEnvironment","ddlEnvironments","Array","whereValue","UcviewgenericComponent","prototype","ngOnInit","console","log","initiateForm","_this","getJSON","viewGenericObj","subscribe","data","viewList","viewInfoObjList","j","subsection","length","push","queryObj","i","querystring","whereQuery","values","getList","mainInfoPath","undefined","fullpath","mainInfoUrl","http","post","response","y","mainInfo","propertyList","concat","z","prefix","property","suffix","type","navigationConst","tempLink","path","name","isFullpath","environment","isReady","error","url","get","genAction","viewObj","param","arrList","genRouterLink","urlLink","redirectFullPath","target","queryParam","ListObj","Object","keys","window","open","callbackFunction","item","key","CBObj","ViewObj","Key","callback","emit","switchCase","condList","condition","conditions","restriction","isUser","value","username","localStorage","getItem","Component","selector","template","ActivatedRoute","HttpClient","Input","Output","route","EventEmitter","queryParams","params","UcviewgenericModule","NgModule","declarations","imports","CommonModule","RouterModule","UcSubsectionModule","exports"],"mappings":"gjBAAA,IAAAA,uBAECC,EAAAA,WAAUC,KAAA,CAAC,CACVC,WAAY,uJAIZ,SAAAH,KCNF,IAAAI,EAOI,SAAAA,IACIC,KAAKC,UAAY,GACjBD,KAAKE,gBAAkB,GACvBF,KAAKG,gBAAkB,IAAIC,MAC3BJ,KAAKK,WAAa,IAAID,OCZ9BE,GA2BEA,EAAAC,UAAAC,SAAA,WACEC,QAAQC,IAAI,eACZV,KAAKW,gBAGPL,EAAAC,UAAAI,aAAA,WAAA,IAAAC,EAAAZ,KACEA,KAAKa,QAAQb,KAAKc,eAAeb,WAAWc,UAAS,SAACC,GACpDJ,EAAKK,SAAWD,EAChBJ,EAAKM,gBAAkB,GAEvB,IAAK,IAAIC,EAAI,EAAGA,EAAIP,EAAKK,SAASG,WAAWC,OAAQF,IACnDP,EAAKM,gBAAgBI,KAAKH,GAG5B,QAEQI,aAFCC,GACwC,MAA3CZ,EAAKK,SAASG,WAAWI,GAAGC,aAEe,GAAzCb,EAAKE,eAAeT,WAAWgB,OACjCT,EAAKK,SAASG,WAAWI,GAAGC,YAAYC,WAAa,OAAcC,OAAOf,EAAKgB,SAE/EhB,EAAKK,SAASG,WAAWI,GAAGC,YAAYC,WAAad,EAAKE,eAAeT,WAGvEO,EAAKK,SAASG,WAAWI,GAAGK,cAAgBC,WAAyD,IAA5ClB,EAAKK,SAASG,WAAWI,GAAGK,cACnFjB,EAAKE,eAAeZ,iBAAmB4B,WAAoD,IAAvClB,EAAKE,eAAeZ,gBAC1EU,EAAKK,SAASG,WAAWI,GAAGO,SAAWnB,EAAKE,eAAeZ,gBAAkBU,EAAKK,SAASG,WAAWI,GAAGK,aAK3GjB,EAAKK,SAASG,WAAWI,GAAGO,SAAWnB,EAAKK,SAASG,WAAWI,GAAGQ,YAGrET,EAAW,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F,GATnC,SAAAA","sourcesContent":["import { Injectable } from '@angular/core';\r\n\r\n@Injectable({\r\n providedIn: 'root'\r\n})\r\nexport class UcviewgenericService {\r\n\r\n constructor() { }\r\n}\r\n","\r\nexport class UcViewGenericObj {\r\n viewInput: string;\r\n viewEnvironment: string;\r\n navigationConst: any;\r\n ddlEnvironments: Array<EnviObj>;\r\n whereValue: Array<WhereValueObj>;\r\n\r\n constructor() {\r\n this.viewInput = \"\";\r\n this.viewEnvironment = \"\";\r\n this.ddlEnvironments = new Array<EnviObj>();\r\n this.whereValue = new Array<WhereValueObj>();\r\n }\r\n}\r\n\r\nexport class EnviObj {\r\n name: string;\r\n environment: string;\r\n\r\n constructor() {\r\n this.name = \"\";\r\n this.environment = \"\";\r\n }\r\n}\r\n\r\nexport class WhereValueObj {\r\n property: string;\r\n value: any;\r\n\r\n constructor() {\r\n this.property = \"\";\r\n }\r\n}","import { Component, OnInit, Input, Output, EventEmitter } from '@angular/core';\r\nimport { ActivatedRoute } from '@angular/router';\r\nimport { HttpClient } from '@angular/common/http';\r\nimport { Observable } from 'rxjs';\r\nimport { EnviObj } from './model/EnviObj.model';\r\nimport { UcViewGenericObj } from './model/UcViewGenericObj.model';\r\n\r\n@Component({\r\n selector: 'lib-ucviewgeneric',\r\n templateUrl: './ucviewgeneric.component.html',\r\n styles: []\r\n})\r\nexport class UcviewgenericComponent implements OnInit {\r\n\r\n @Input() viewGenericObj: UcViewGenericObj = new UcViewGenericObj();\r\n @Output() callback: EventEmitter<any> = new EventEmitter();\r\n viewList: any = \"\";\r\n getList: any;\r\n viewInfoObjList: any;\r\n isReady: boolean = false;\r\n\r\n constructor(private route: ActivatedRoute, private http: HttpClient) {\r\n this.route.queryParams.subscribe(params => {\r\n this.getList = params;\r\n });\r\n }\r\n\r\n ngOnInit() {\r\n console.log(\"viewgeneric\");\r\n this.initiateForm();\r\n }\r\n\r\n initiateForm() {\r\n this.getJSON(this.viewGenericObj.viewInput).subscribe(data => {\r\n this.viewList = data;\r\n this.viewInfoObjList = [];\r\n\r\n for (var j = 0; j < this.viewList.subsection.length; j++) {\r\n this.viewInfoObjList.push(j);\r\n }\r\n\r\n for (let i = 0; i < this.viewList.subsection.length; i++) {\r\n if (this.viewList.subsection[i].querystring != null) {\r\n var queryObj: any;\r\n if (this.viewGenericObj.whereValue.length == 0) {\r\n this.viewList.subsection[i].querystring.whereQuery = (<any>Object).values(this.getList);\r\n } else {\r\n this.viewList.subsection[i].querystring.whereQuery = this.viewGenericObj.whereValue;\r\n }\r\n\r\n if (this.viewList.subsection[i].mainInfoPath != undefined && this.viewList.subsection[i].mainInfoPath != \"\") {\r\n if (this.viewGenericObj.viewEnvironment != undefined && this.viewGenericObj.viewEnvironment != \"\") {\r\n this.viewList.subsection[i].fullpath = this.viewGenericObj.viewEnvironment + this.viewList.subsection[i].mainInfoPath;\r\n } else {\r\n this.viewList.subsection[i].fullpath = this.viewList.subsection[i].mainInfoUrl;\r\n }\r\n } else {\r\n this.viewList.subsection[i].fullpath = this.viewList.subsection[i].mainInfoUrl;\r\n }\r\n\r\n queryObj = {\r\n querystring: this.viewList.subsection[i].querystring\r\n }\r\n this.http.post(this.viewList.subsection[i].fullpath, queryObj).subscribe(\r\n (response) => {\r\n this.viewInfoObjList[i] = response[\"Data\"][0];\r\n\r\n for (var y = 0; y < this.viewList.subsection[i].mainInfo.length; y++) {\r\n if (this.viewList.subsection[i].mainInfo[y].propertyList != undefined && this.viewList.subsection[i].mainInfo[y].propertyList.length != 0) {\r\n const propertyList = this.viewList.subsection[i].mainInfo[y].propertyList;\r\n let concat = \"\";\r\n for (let z = 0; z < propertyList.length; z++) {\r\n concat = concat + propertyList[z].prefix + this.viewInfoObjList[i][propertyList[z].property] + propertyList[z].suffix;\r\n }\r\n this.viewList.subsection[i].mainInfo[y].concat = concat;\r\n }\r\n\r\n if (this.viewList.subsection[i].mainInfo[y].type == \"link\" && (this.viewGenericObj.navigationConst != undefined || this.viewGenericObj.navigationConst != null)){\r\n let tempLink = this.viewGenericObj.navigationConst[this.viewList.subsection[i].mainInfo[y].path];\r\n if (tempLink != undefined && tempLink != null) {\r\n this.viewList.subsection[i].mainInfo[y].path = tempLink;\r\n }\r\n }\r\n if (this.viewList.subsection[i].mainInfo[y].type == \"link\"\r\n && this.viewGenericObj.ddlEnvironments != undefined && this.viewGenericObj.ddlEnvironments.length != 0) {\r\n for (let z = 0; z < this.viewGenericObj.ddlEnvironments.length; z++) {\r\n if (this.viewList.subsection[i].mainInfo[y].name == this.viewGenericObj.ddlEnvironments[z].name) {\r\n this.viewList.subsection[i].mainInfo[y].isFullpath = true;\r\n this.viewList.subsection[i].mainInfo[y].fullpath = this.viewGenericObj.ddlEnvironments[z].environment + this.viewList.subsection[i].mainInfo[y].path;\r\n break;\r\n }\r\n }\r\n } else if (this.viewList.subsection[i].mainInfo[y].type == \"link\") {\r\n this.viewList.subsection[i].mainInfo[y].isFullpath = false;\r\n this.viewList.subsection[i].mainInfo[y].fullpath = this.viewList.subsection[i].mainInfo[y].path;\r\n }\r\n }\r\n this.isReady = true;\r\n },\r\n (error) => {\r\n console.log(error);\r\n });\r\n } else {\r\n if (this.viewList.subsection[i].mainInfoPath != undefined && this.viewList.subsection[i].mainInfoPath != \"\") {\r\n if (this.viewGenericObj.viewEnvironment != undefined && this.viewGenericObj.viewEnvironment != \"\") {\r\n this.viewList.subsection[i].fullpath = this.viewGenericObj.viewEnvironment + this.viewList.subsection[i].mainInfoPath;\r\n } else {\r\n this.viewList.subsection[i].fullpath = this.viewList.subsection[i].mainInfoUrl;\r\n }\r\n } else {\r\n this.viewList.subsection[i].fullpath = this.viewList.subsection[i].mainInfoUrl;\r\n }\r\n\r\n this.http.post(this.viewList.subsection[i].fullpath, this.getList).subscribe(\r\n (response) => {\r\n this.viewInfoObjList[i] = response[\"Data\"];\r\n },\r\n (error) => {\r\n console.log(error);\r\n })\r\n }\r\n }\r\n })\r\n }\r\n\r\n public getJSON(url: string): Observable<any> {\r\n return this.http.get(url);\r\n }\r\n\r\n genAction(viewObj, param) {\r\n var arrList = {};\r\n\r\n for (var i = 0; i < param.length; i++) {\r\n if (viewObj[param[i].type] != undefined || viewObj[param[i].property] != undefined) {\r\n arrList[param[i].type] = viewObj[param[i].property];\r\n } else {\r\n arrList[param[i].type] = param[i].property;\r\n }\r\n }\r\n return arrList;\r\n }\r\n\r\n genRouterLink(urlLink: string) {\r\n let tempLink = urlLink;\r\n if (this.viewGenericObj.navigationConst != undefined && this.viewGenericObj.navigationConst[urlLink] != null) {\r\n tempLink = this.viewGenericObj.navigationConst[urlLink];\r\n }\r\n return tempLink;\r\n }\r\n\r\n redirectFullPath(fullpath: string, param: Object, target: string) {\r\n let queryParam = \"\";\r\n const ListObj = Object.keys(param);\r\n for (let i = 0; i < ListObj.length; i++) {\r\n if (queryParam != \"\") {\r\n queryParam = queryParam + \"&\" + ListObj[i] + \"=\" + param[ListObj[i]];\r\n } else {\r\n queryParam = ListObj[i] + \"=\" + param[ListObj[i]];\r\n }\r\n }\r\n window.open(fullpath + \"?\" + queryParam, target);\r\n }\r\n\r\n callbackFunction(item, key: string = \"\") {\r\n var CBObj = {\r\n ViewObj: item,\r\n Key: key\r\n }\r\n this.callback.emit(CBObj);\r\n }\r\n\r\n switchCase(item, condList) {\r\n var condition = false;\r\n\r\n for (var i = 0; i < condList.conditions.length; i++) {\r\n if (condList.conditions[i].restriction == \"EQ\") {\r\n if (condList.conditions[i].isUser != true) {\r\n if (item[condList.conditions[i].property] == condList.conditions[i].value) {\r\n condition = true;\r\n } else {\r\n condition = false;\r\n break;\r\n }\r\n } else {\r\n var username = localStorage.getItem(\"Username\");\r\n if (item[condList.conditions[i].property] == username) {\r\n condition = true;\r\n } else {\r\n condition = false;\r\n break;\r\n }\r\n }\r\n } else if (condList.conditions[i].restriction == \"NEQ\") {\r\n if (condList.conditions[i].isUser != true) {\r\n if (item[condList.conditions[i].property] != condList.conditions[i].value) {\r\n condition = true;\r\n } else {\r\n condition = false;\r\n break;\r\n }\r\n } else {\r\n var username = localStorage.getItem(\"Username\");\r\n if (item[condList.conditions[i].property] != username) {\r\n condition = true;\r\n } else {\r\n condition = false;\r\n break;\r\n }\r\n }\r\n } else if (condList.conditions[i].restriction == \"GT\") {\r\n if (condList.conditions[i].isUser != true) {\r\n if (item[condList.conditions[i].property] > condList.conditions[i].value) {\r\n condition = true;\r\n } else {\r\n condition = false;\r\n break;\r\n }\r\n } else {\r\n var username = localStorage.getItem(\"Username\");\r\n if (item[condList.conditions[i].property] > username) {\r\n condition = true;\r\n } else {\r\n condition = false;\r\n break;\r\n }\r\n }\r\n } else if (condList.conditions[i].restriction == \"GTE\") {\r\n if (condList.conditions[i].isUser != true) {\r\n if (item[condList.conditions[i].property] >= condList.conditions[i].value) {\r\n condition = true;\r\n } else {\r\n condition = false;\r\n break;\r\n }\r\n } else {\r\n var username = localStorage.getItem(\"Username\");\r\n if (item[condList.conditions[i].property] >= username) {\r\n condition = true;\r\n } else {\r\n condition = false;\r\n break;\r\n }\r\n }\r\n } else if (condList.conditions[i].restriction == \"LT\") {\r\n if (condList.conditions[i].isUser != true) {\r\n if (item[condList.conditions[i].property] < condList.conditions[i].value) {\r\n condition = true;\r\n } else {\r\n condition = false;\r\n break;\r\n }\r\n } else {\r\n var username = localStorage.getItem(\"Username\");\r\n if (item[condList.conditions[i].property] < username) {\r\n condition = true;\r\n } else {\r\n condition = false;\r\n break;\r\n }\r\n }\r\n } else if (condList.conditions[i].restriction == \"LTE\") {\r\n if (condList.conditions[i].isUser != true) {\r\n if (item[condList.conditions[i].property] <= condList.conditions[i].value) {\r\n condition = true;\r\n } else {\r\n condition = false;\r\n break;\r\n }\r\n } else {\r\n var username = localStorage.getItem(\"Username\");\r\n if (item[condList.conditions[i].property] <= username) {\r\n condition = true;\r\n } else {\r\n condition = false;\r\n break;\r\n }\r\n }\r\n }\r\n }\r\n return condition;\r\n }\r\n}\r\n","import { NgModule } from '@angular/core';\r\nimport { UcviewgenericComponent } from './ucviewgeneric.component';\r\nimport { CommonModule } from '@angular/common';\r\nimport { RouterModule } from '@angular/router';\r\nimport { UcSubsectionModule } from '@adins/uc-subsection';\r\n\r\n@NgModule({\r\n declarations: [UcviewgenericComponent],\r\n imports: [\r\n CommonModule,\r\n RouterModule,\r\n UcSubsectionModule\r\n ],\r\n exports: [UcviewgenericComponent]\r\n})\r\nexport class UcviewgenericModule { }\r\n"]}