@adins/ucviewgeneric 2.0.61 → 2.0.62
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 +3 -0
- package/adins-ucviewgeneric.metadata.json +1 -1
- package/bundles/adins-ucviewgeneric.umd.js +17 -1
- package/bundles/adins-ucviewgeneric.umd.js.map +1 -1
- package/bundles/adins-ucviewgeneric.umd.min.js +1 -1
- package/bundles/adins-ucviewgeneric.umd.min.js.map +1 -1
- package/esm2015/lib/model/UcViewGenericObj.model.js +3 -1
- package/esm2015/lib/ucviewgeneric.component.js +14 -2
- package/esm5/lib/model/UcViewGenericObj.model.js +3 -1
- package/esm5/lib/ucviewgeneric.component.js +18 -2
- package/fesm2015/adins-ucviewgeneric.js +13 -1
- package/fesm2015/adins-ucviewgeneric.js.map +1 -1
- package/fesm5/adins-ucviewgeneric.js +17 -1
- package/fesm5/adins-ucviewgeneric.js.map +1 -1
- package/lib/model/UcViewGenericObj.model.d.ts +1 -0
- package/lib/ucviewgeneric.component.d.ts +1 -0
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"__symbolic":"module","version":4,"metadata":{"UcviewgenericService":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":2,"character":1},"arguments":[{"providedIn":"root"}]}],"members":{"__ctor__":[{"__symbolic":"constructor"}]},"statics":{"ngInjectableDef":{}}},"UcviewgenericComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":7,"character":1},"arguments":[{"selector":"lib-ucviewgeneric","styles":[],"template":"<section id=\"horizontal-form-layouts\">\r\n <div class=\"row text-left\">\r\n <div class=\"col-md-12\">\r\n <div class=\"card\" *ngIf=\"isReady\">\r\n <div class=\"pl-3 mb-2 mt-2\" *ngIf=\"viewList?.title != ''\">\r\n <h4 class=\"card-title ucSearch-title\" id=\"horz-layout-colored-controls\" translate> {{ viewList.title }} </h4>\r\n </div>\r\n <div class=\"card-body\" *ngFor=\"let ss of viewList?.subsection;let i = index;\">\r\n <div class=\"px-3\">\r\n <lib-ucSubsection *ngIf=\"ss.subsection != ''\" [id]=\"ss.subSectionId + 'id'\" [title]=\"ss.subSectionTitle\"\r\n [panel]=\"ss.subSectionId\">\r\n </lib-ucSubsection>\r\n <div class=\"form-body\" [id]='ss.subSectionId'>\r\n <div class=\"form-group row\">\r\n <div *ngFor=\"let mi of ss?.mainInfo\"\r\n [ngClass]=\"{ 'col-md-6': mi.isHide == undefined || !mi.isHide || (viewInfoObjList[i][mi.property] != '' && viewInfoObjList[i][mi.property] != null)}\">\r\n <span\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.customClass != undefined ? mi.customClass : ''\" 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.customClass != undefined ? mi.customClass : ''\" 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\" translate>-</label>\r\n </ng-template>\r\n <ng-template #nonEmptyLabel>\r\n <span *ngIf=\"mi.type == 'text'\">\r\n <label\r\n *ngIf=\"viewInfoObjList[i][mi.property] != '' && viewInfoObjList[i][mi.property] != null\"\r\n class=\"label-control\" translate> {{ viewInfoObjList[i][mi.property] }}\r\n </label>\r\n <label\r\n *ngIf=\"viewInfoObjList[i][mi.property] == '' || viewInfoObjList[i][mi.property] == null\"\r\n class=\"label-control\" translate>-\r\n </label>\r\n </span>\r\n <label *ngIf=\"mi.type == 'currency'\" class=\"label-control\" translate>\r\n {{ viewInfoObjList[i][mi.property] | number:'.2':'en-US'}} </label>\r\n <label *ngIf=\"mi.type == 'date'\" class=\"label-control\" translate>\r\n {{ viewInfoObjList[i][mi.property] | date: 'dd-MMM-yyyy'}} </label>\r\n <label *ngIf=\"mi.type == 'link'\" class=\"label-control\" translate>\r\n <a *ngIf=\"!mi?.isFullpath\" [routerLink]=\"[mi.path]\" [target]=\"mi.target\"\r\n [queryParams]=\"genAction(viewInfoObjList[i], mi.param)\">\r\n {{ viewInfoObjList[i][mi.property] }}\r\n </a>\r\n <a *ngIf=\"mi?.isFullpath\" href=\"javascript:void(0);\"\r\n (click)=\"redirectFullPath(mi.fullpath, genAction(viewInfoObjList[i], mi.param), mi.target)\">\r\n {{ viewInfoObjList[i][mi.property] }}\r\n </a>\r\n </label>\r\n <label *ngIf=\"mi.type == 'callback'\" class=\"label-control\" translate>\r\n <a href=\"javascript:void(0);\" (click)=\"callbackFunction(viewInfoObjList[i], mi.key)\">\r\n {{ viewInfoObjList[i][mi.property] }}\r\n </a>\r\n </label>\r\n <textarea *ngIf=\"mi.type == 'textarea'\" class=\"form-control\" readonly\r\n translate> {{ viewInfoObjList[i][mi.property] }} </textarea>\r\n <span *ngIf=\"mi.type == 'boolean'\">\r\n <label *ngIf=\"viewInfoObjList[i][mi.property] == true\">Yes</label>\r\n <label *ngIf=\"viewInfoObjList[i][mi.property] == false\">No</label>\r\n <!-- <label\r\n *ngIf=\"viewInfoObjList[i][mi.property] == '' || viewInfoObjList[i][mi.property] == null\">-</label> -->\r\n </span>\r\n <span *ngIf=\"mi.type == 'concat'\">\r\n <label class=\"label-control\" translate> {{ mi.concat }}\r\n </label>\r\n </span>\r\n <span *ngIf=\"mi.type == 'switch'\">\r\n <span *ngFor=\"let cs of mi?.case\">\r\n <span *ngIf=\"switchCase(viewInfoObjList[i],cs)\">\r\n <span class=\"label-control\"\r\n *ngIf=\"cs.result.type == 'text'\">{{ viewInfoObjList[i][cs.result.property] }}\r\n </span>\r\n <span\r\n *ngIf=\"cs.result.type == 'decimal'\">{{ viewInfoObjList[i][cs.result.property] | number:'.2':'en-US' }}</span>\r\n <span\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'\">\r\n <a [target]=\"cs.result.target\" [routerLink]=\"[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'\">\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"}],"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.customClass != undefined ? mi.customClass : ''\" 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.customClass != undefined ? mi.customClass : ''\" 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\" translate>-</label>\r\n </ng-template>\r\n <ng-template #nonEmptyLabel>\r\n <span *ngIf=\"mi.type == 'text'\">\r\n <label\r\n *ngIf=\"viewInfoObjList[i][mi.property] != '' && viewInfoObjList[i][mi.property] != null\"\r\n class=\"label-control\" translate> {{ viewInfoObjList[i][mi.property] }}\r\n </label>\r\n <label\r\n *ngIf=\"viewInfoObjList[i][mi.property] == '' || viewInfoObjList[i][mi.property] == null\"\r\n class=\"label-control\" translate>-\r\n </label>\r\n </span>\r\n <label *ngIf=\"mi.type == 'currency'\" class=\"label-control\" translate>\r\n {{ viewInfoObjList[i][mi.property] | number:'.2':'en-US'}} </label>\r\n <label *ngIf=\"mi.type == 'date'\" class=\"label-control\" translate>\r\n {{ viewInfoObjList[i][mi.property] | date: 'dd-MMM-yyyy'}} </label>\r\n <label *ngIf=\"mi.type == 'link'\" class=\"label-control\" translate>\r\n <a *ngIf=\"!mi?.isFullpath\" [routerLink]=\"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\" translate>\r\n <a href=\"javascript:void(0);\" (click)=\"callbackFunction(viewInfoObjList[i], mi.key)\">\r\n {{ viewInfoObjList[i][mi.property] }}\r\n </a>\r\n </label>\r\n <textarea *ngIf=\"mi.type == 'textarea'\" class=\"form-control\" readonly\r\n translate> {{ viewInfoObjList[i][mi.property] }} </textarea>\r\n <span *ngIf=\"mi.type == 'boolean'\">\r\n <label *ngIf=\"viewInfoObjList[i][mi.property] == true\">Yes</label>\r\n <label *ngIf=\"viewInfoObjList[i][mi.property] == false\">No</label>\r\n <!-- <label\r\n *ngIf=\"viewInfoObjList[i][mi.property] == '' || viewInfoObjList[i][mi.property] == null\">-</label> -->\r\n </span>\r\n <span *ngIf=\"mi.type == 'concat'\">\r\n <label class=\"label-control\" translate> {{ mi.concat }}\r\n </label>\r\n </span>\r\n <span *ngIf=\"mi.type == 'switch'\">\r\n <span *ngFor=\"let cs of mi?.case\">\r\n <span *ngIf=\"switchCase(viewInfoObjList[i],cs)\">\r\n <span class=\"label-control\"\r\n *ngIf=\"cs.result.type == 'text'\">{{ viewInfoObjList[i][cs.result.property] }}\r\n </span>\r\n <span\r\n *ngIf=\"cs.result.type == 'decimal'\">{{ viewInfoObjList[i][cs.result.property] | number:'.2':'en-US' }}</span>\r\n <span\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'\">\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'\">\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"}
|
|
@@ -209,6 +209,22 @@
|
|
|
209
209
|
}
|
|
210
210
|
return arrList;
|
|
211
211
|
};
|
|
212
|
+
/**
|
|
213
|
+
* @param {?} urlLink
|
|
214
|
+
* @return {?}
|
|
215
|
+
*/
|
|
216
|
+
UcviewgenericComponent.prototype.genRouterLink = /**
|
|
217
|
+
* @param {?} urlLink
|
|
218
|
+
* @return {?}
|
|
219
|
+
*/
|
|
220
|
+
function (urlLink) {
|
|
221
|
+
/** @type {?} */
|
|
222
|
+
var tempLink = this.viewGenericObj.navigationConst[urlLink];
|
|
223
|
+
if (tempLink == undefined || tempLink == null) {
|
|
224
|
+
tempLink = urlLink;
|
|
225
|
+
}
|
|
226
|
+
return tempLink;
|
|
227
|
+
};
|
|
212
228
|
/**
|
|
213
229
|
* @param {?} fullpath
|
|
214
230
|
* @param {?} param
|
|
@@ -409,7 +425,7 @@
|
|
|
409
425
|
UcviewgenericComponent.decorators = [
|
|
410
426
|
{ type: i0.Component, args: [{
|
|
411
427
|
selector: 'lib-ucviewgeneric',
|
|
412
|
-
template: "<section id=\"horizontal-form-layouts\">\r\n <div class=\"row text-left\">\r\n <div class=\"col-md-12\">\r\n <div class=\"card\" *ngIf=\"isReady\">\r\n <div class=\"pl-3 mb-2 mt-2\" *ngIf=\"viewList?.title != ''\">\r\n <h4 class=\"card-title ucSearch-title\" id=\"horz-layout-colored-controls\" translate> {{ viewList.title }} </h4>\r\n </div>\r\n <div class=\"card-body\" *ngFor=\"let ss of viewList?.subsection;let i = index;\">\r\n <div class=\"px-3\">\r\n <lib-ucSubsection *ngIf=\"ss.subsection != ''\" [id]=\"ss.subSectionId + 'id'\" [title]=\"ss.subSectionTitle\"\r\n [panel]=\"ss.subSectionId\">\r\n </lib-ucSubsection>\r\n <div class=\"form-body\" [id]='ss.subSectionId'>\r\n <div class=\"form-group row\">\r\n <div *ngFor=\"let mi of ss?.mainInfo\"\r\n [ngClass]=\"{ 'col-md-6': mi.isHide == undefined || !mi.isHide || (viewInfoObjList[i][mi.property] != '' && viewInfoObjList[i][mi.property] != null)}\">\r\n <span\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.customClass != undefined ? mi.customClass : ''\" 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.customClass != undefined ? mi.customClass : ''\" 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\" translate>-</label>\r\n </ng-template>\r\n <ng-template #nonEmptyLabel>\r\n <span *ngIf=\"mi.type == 'text'\">\r\n <label\r\n *ngIf=\"viewInfoObjList[i][mi.property] != '' && viewInfoObjList[i][mi.property] != null\"\r\n class=\"label-control\" translate> {{ viewInfoObjList[i][mi.property] }}\r\n </label>\r\n <label\r\n *ngIf=\"viewInfoObjList[i][mi.property] == '' || viewInfoObjList[i][mi.property] == null\"\r\n class=\"label-control\" translate>-\r\n </label>\r\n </span>\r\n <label *ngIf=\"mi.type == 'currency'\" class=\"label-control\" translate>\r\n {{ viewInfoObjList[i][mi.property] | number:'.2':'en-US'}} </label>\r\n <label *ngIf=\"mi.type == 'date'\" class=\"label-control\" translate>\r\n {{ viewInfoObjList[i][mi.property] | date: 'dd-MMM-yyyy'}} </label>\r\n <label *ngIf=\"mi.type == 'link'\" class=\"label-control\" translate>\r\n <a *ngIf=\"!mi?.isFullpath\" [routerLink]=\"
|
|
428
|
+
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.customClass != undefined ? mi.customClass : ''\" 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.customClass != undefined ? mi.customClass : ''\" 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\" translate>-</label>\r\n </ng-template>\r\n <ng-template #nonEmptyLabel>\r\n <span *ngIf=\"mi.type == 'text'\">\r\n <label\r\n *ngIf=\"viewInfoObjList[i][mi.property] != '' && viewInfoObjList[i][mi.property] != null\"\r\n class=\"label-control\" translate> {{ viewInfoObjList[i][mi.property] }}\r\n </label>\r\n <label\r\n *ngIf=\"viewInfoObjList[i][mi.property] == '' || viewInfoObjList[i][mi.property] == null\"\r\n class=\"label-control\" translate>-\r\n </label>\r\n </span>\r\n <label *ngIf=\"mi.type == 'currency'\" class=\"label-control\" translate>\r\n {{ viewInfoObjList[i][mi.property] | number:'.2':'en-US'}} </label>\r\n <label *ngIf=\"mi.type == 'date'\" class=\"label-control\" translate>\r\n {{ viewInfoObjList[i][mi.property] | date: 'dd-MMM-yyyy'}} </label>\r\n <label *ngIf=\"mi.type == 'link'\" class=\"label-control\" translate>\r\n <a *ngIf=\"!mi?.isFullpath\" [routerLink]=\"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\" translate>\r\n <a href=\"javascript:void(0);\" (click)=\"callbackFunction(viewInfoObjList[i], mi.key)\">\r\n {{ viewInfoObjList[i][mi.property] }}\r\n </a>\r\n </label>\r\n <textarea *ngIf=\"mi.type == 'textarea'\" class=\"form-control\" readonly\r\n translate> {{ viewInfoObjList[i][mi.property] }} </textarea>\r\n <span *ngIf=\"mi.type == 'boolean'\">\r\n <label *ngIf=\"viewInfoObjList[i][mi.property] == true\">Yes</label>\r\n <label *ngIf=\"viewInfoObjList[i][mi.property] == false\">No</label>\r\n <!-- <label\r\n *ngIf=\"viewInfoObjList[i][mi.property] == '' || viewInfoObjList[i][mi.property] == null\">-</label> -->\r\n </span>\r\n <span *ngIf=\"mi.type == 'concat'\">\r\n <label class=\"label-control\" translate> {{ mi.concat }}\r\n </label>\r\n </span>\r\n <span *ngIf=\"mi.type == 'switch'\">\r\n <span *ngFor=\"let cs of mi?.case\">\r\n <span *ngIf=\"switchCase(viewInfoObjList[i],cs)\">\r\n <span class=\"label-control\"\r\n *ngIf=\"cs.result.type == 'text'\">{{ viewInfoObjList[i][cs.result.property] }}\r\n </span>\r\n <span\r\n *ngIf=\"cs.result.type == 'decimal'\">{{ viewInfoObjList[i][cs.result.property] | number:'.2':'en-US' }}</span>\r\n <span\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'\">\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'\">\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>"
|
|
413
429
|
}] }
|
|
414
430
|
];
|
|
415
431
|
/** @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 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\"\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 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;QAMI;YACI,IAAI,CAAC,SAAS,GAAG,EAAE,CAAC;YACpB,IAAI,CAAC,eAAe,GAAG,EAAE,CAAC;YAC1B,IAAI,CAAC,eAAe,GAAG,IAAI,KAAK,EAAW,CAAC;YAC5C,IAAI,CAAC,UAAU,GAAG,IAAI,KAAK,EAAiB,CAAC;SAChD;QACL,uBAAC;IAAD,CAAC,IAAA;;;;;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;gCAClB,MAAM;6BACP;yBACF;qBACF;iBACF;gBACD,OAAO,SAAS,CAAC;aAClB;;oBAnQFC,YAAS,SAAC;wBACT,QAAQ,EAAE,mBAAmB;wBAC7B,osPAA6C;qBAE9C;;;;;wBAVQC,qBAAc;wBACdC,eAAU;;;;qCAYhBC,QAAK;+BACLC,SAAM;;QA4PT,6BAAC;KApQD;;;;;;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\"\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 = this.viewGenericObj.navigationConst[urlLink];\r\n if (tempLink == undefined || tempLink == null) {\r\n tempLink = 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,eAAe,GAAG,IAAI,KAAK,EAAW,CAAC;YAC5C,IAAI,CAAC,UAAU,GAAG,IAAI,KAAK,EAAiB,CAAC;SAChD;QACL,uBAAC;IAAD,CAAC,IAAA;;;;;;ACdD;QAqBE,gCAAoB,KAAqB,EAAUC,OAAgB;YAAnE,iBAIC;YAJmB,UAAK,GAAL,KAAK,CAAgB;YAAU,SAAI,GAAJA,OAAI,CAAY;YAP1D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AC,CAAC,QAAQ,CAAC,IAAI,QAAQ,EAAE;gCACrD,SAAS,GAAG,IAAI,CAAC;6BAClB;iCAAM;gCACL,SAAS,GAAG,KAAK,CAAC;gCAClB,MAAM;6BACP;yBACF;qBACF;iBACF;gBACD,OAAO,SAAS,CAAC;aAClB;;oBA3QFC,YAAS,SAAC;wBACT,QAAQ,EAAE,mBAAmB;wBAC7B,8tPAA6C;qBAE9C;;;;;wBAVQC,qBAAc;wBACdC,eAAU;;;;qCAYhBC,QAAK;+BACLC,SAAM;;QAoQT,6BAAC;KA5QD;;;;;;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,i){"object"==typeof exports&&"undefined"!=typeof module?i(exports,require("@angular/common/http"),require("@angular/core"),require("@angular/common"),require("@angular/router"),require("@adins/uc-subsection")):"function"==typeof define&&define.amd?define("@adins/ucviewgeneric",["exports","@angular/common/http","@angular/core","@angular/common","@angular/router","@adins/uc-subsection"],i):i((e.adins=e.adins||{},e.adins.ucviewgeneric={}),e.ng.common.http,e.ng.core,e.ng.common,e.ng.router,e.ucSubsection)}(this,function(e,i,t,n,r,s){"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 b(){this.viewInput="",this.viewEnvironment="",this.ddlEnvironments=new Array,this.whereValue=new Array},c=(p.prototype.ngOnInit=function(){console.log("viewgeneric"),this.initiateForm()},p.prototype.initiateForm=function(){var o=this;this.getJSON(this.viewGenericObj.viewInput).subscribe(function(e){o.viewList=e,o.viewInfoObjList=[];for(var i=0;i<o.viewList.subsection.length;i++)o.viewInfoObjList.push(i);for(var n,t=function(s){null!=o.viewList.subsection[s].querystring?(0==o.viewGenericObj.whereValue.length?o.viewList.subsection[s].querystring.whereQuery=Object.values(o.getList):o.viewList.subsection[s].querystring.whereQuery=o.viewGenericObj.whereValue,o.viewList.subsection[s].mainInfoPath!=undefined&&""!=o.viewList.subsection[s].mainInfoPath&&o.viewGenericObj.viewEnvironment!=undefined&&""!=o.viewGenericObj.viewEnvironment?o.viewList.subsection[s].fullpath=o.viewGenericObj.viewEnvironment+o.viewList.subsection[s].mainInfoPath:o.viewList.subsection[s].fullpath=o.viewList.subsection[s].mainInfoUrl,n={querystring:o.viewList.subsection[s].querystring},o.http.post(o.viewList.subsection[s].fullpath,n).subscribe(function(e){o.viewInfoObjList[s]=e.Data[0];for(var i=0;i<o.viewList.subsection[s].mainInfo.length;i++){if(o.viewList.subsection[s].mainInfo[i].propertyList!=undefined&&0!=o.viewList.subsection[s].mainInfo[i].propertyList.length){for(var n=o.viewList.subsection[s].mainInfo[i].propertyList,t="",r=0;r<n.length;r++)t=t+n[r].prefix+o.viewInfoObjList[s][n[r].property]+n[r].suffix;o.viewList.subsection[s].mainInfo[i].concat=t}if("link"==o.viewList.subsection[s].mainInfo[i].type&&o.viewGenericObj.ddlEnvironments!=undefined&&0!=o.viewGenericObj.ddlEnvironments.length){for(r=0;r<o.viewGenericObj.ddlEnvironments.length;r++)if(o.viewList.subsection[s].mainInfo[i].name==o.viewGenericObj.ddlEnvironments[r].name){o.viewList.subsection[s].mainInfo[i].isFullpath=!0,o.viewList.subsection[s].mainInfo[i].fullpath=o.viewGenericObj.ddlEnvironments[r].environment+o.viewList.subsection[s].mainInfo[i].path;break}}else"link"==o.viewList.subsection[s].mainInfo[i].type&&(o.viewList.subsection[s].mainInfo[i].isFullpath=!1,o.viewList.subsection[s].mainInfo[i].fullpath=o.viewList.subsection[s].mainInfo[i].path)}o.isReady=!0},function(e){console.log(e)})):(o.viewList.subsection[s].mainInfoPath!=undefined&&""!=o.viewList.subsection[s].mainInfoPath&&o.viewGenericObj.viewEnvironment!=undefined&&""!=o.viewGenericObj.viewEnvironment?o.viewList.subsection[s].fullpath=o.viewGenericObj.viewEnvironment+o.viewList.subsection[s].mainInfoPath:o.viewList.subsection[s].fullpath=o.viewList.subsection[s].mainInfoUrl,o.http.post(o.viewList.subsection[s].fullpath,o.getList).subscribe(function(e){o.viewInfoObjList[s]=e.Data},function(e){console.log(e)}))},r=0;r<o.viewList.subsection.length;r++)t(r)})},p.prototype.getJSON=function(e){return this.http.get(e)},p.prototype.genAction=function(e,i){for(var n={},t=0;t<i.length;t++)e[i[t].type]!=undefined||e[i[t].property]!=undefined?n[i[t].type]=e[i[t].property]:n[i[t].type]=i[t].property;return n},p.prototype.redirectFullPath=function(e,i,n){for(var t="",r=Object.keys(i),s=0;s<r.length;s++)t=""!=t?t+"&"+r[s]+"="+i[r[s]]:r[s]+"="+i[r[s]];window.open(e+"?"+t,n)},p.prototype.callbackFunction=function(e,i){void 0===i&&(i="");var n={ViewObj:e,Key:i};this.callback.emit(n)},p.prototype.switchCase=function(e,i){for(var n=!1,t=0;t<i.conditions.length;t++)if("EQ"==i.conditions[t].restriction)if(1!=i.conditions[t].isUser){if(e[i.conditions[t].property]!=i.conditions[t].value){n=!1;break}n=!0}else{var r=localStorage.getItem("Username");if(e[i.conditions[t].property]!=r){n=!1;break}n=!0}else if("NEQ"==i.conditions[t].restriction)if(1!=i.conditions[t].isUser){if(e[i.conditions[t].property]==i.conditions[t].value){n=!1;break}n=!0}else{if(r=localStorage.getItem("Username"),e[i.conditions[t].property]==r){n=!1;break}n=!0}else if("GT"==i.conditions[t].restriction)if(1!=i.conditions[t].isUser){if(!(e[i.conditions[t].property]>i.conditions[t].value)){n=!1;break}n=!0}else{if(r=localStorage.getItem("Username"),!(e[i.conditions[t].property]>r)){n=!1;break}n=!0}else if("GTE"==i.conditions[t].restriction)if(1!=i.conditions[t].isUser){if(!(e[i.conditions[t].property]>=i.conditions[t].value)){n=!1;break}n=!0}else{if(r=localStorage.getItem("Username"),!(e[i.conditions[t].property]>=r)){n=!1;break}n=!0}else if("LT"==i.conditions[t].restriction)if(1!=i.conditions[t].isUser){if(!(e[i.conditions[t].property]<i.conditions[t].value)){n=!1;break}n=!0}else{if(r=localStorage.getItem("Username"),!(e[i.conditions[t].property]<r)){n=!1;break}n=!0}else if("LTE"==i.conditions[t].restriction)if(1!=i.conditions[t].isUser){if(!(e[i.conditions[t].property]<=i.conditions[t].value)){n=!1;break}n=!0}else{if(r=localStorage.getItem("Username"),!(e[i.conditions[t].property]<=r)){n=!1;break}n=!0}return n},p.decorators=[{type:t.Component,args:[{selector:"lib-ucviewgeneric",template:'<section id="horizontal-form-layouts">\r\n <div class="row text-left">\r\n <div class="col-md-12">\r\n <div class="card" *ngIf="isReady">\r\n <div class="pl-3 mb-2 mt-2" *ngIf="viewList?.title != \'\'">\r\n <h4 class="card-title ucSearch-title" id="horz-layout-colored-controls" translate> {{ viewList.title }} </h4>\r\n </div>\r\n <div class="card-body" *ngFor="let ss of viewList?.subsection;let i = index;">\r\n <div class="px-3">\r\n <lib-ucSubsection *ngIf="ss.subsection != \'\'" [id]="ss.subSectionId + \'id\'" [title]="ss.subSectionTitle"\r\n [panel]="ss.subSectionId">\r\n </lib-ucSubsection>\r\n <div class="form-body" [id]=\'ss.subSectionId\'>\r\n <div class="form-group row">\r\n <div *ngFor="let mi of ss?.mainInfo"\r\n [ngClass]="{ \'col-md-6\': mi.isHide == undefined || !mi.isHide || (viewInfoObjList[i][mi.property] != \'\' && viewInfoObjList[i][mi.property] != null)}">\r\n <span\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.customClass != undefined ? mi.customClass : \'\'" 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.customClass != undefined ? mi.customClass : \'\'" 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" translate>-</label>\r\n </ng-template>\r\n <ng-template #nonEmptyLabel>\r\n <span *ngIf="mi.type == \'text\'">\r\n <label\r\n *ngIf="viewInfoObjList[i][mi.property] != \'\' && viewInfoObjList[i][mi.property] != null"\r\n class="label-control" translate> {{ viewInfoObjList[i][mi.property] }}\r\n </label>\r\n <label\r\n *ngIf="viewInfoObjList[i][mi.property] == \'\' || viewInfoObjList[i][mi.property] == null"\r\n class="label-control" translate>-\r\n </label>\r\n </span>\r\n <label *ngIf="mi.type == \'currency\'" class="label-control" translate>\r\n {{ viewInfoObjList[i][mi.property] | number:\'.2\':\'en-US\'}} </label>\r\n <label *ngIf="mi.type == \'date\'" class="label-control" translate>\r\n {{ viewInfoObjList[i][mi.property] | date: \'dd-MMM-yyyy\'}} </label>\r\n <label *ngIf="mi.type == \'link\'" class="label-control" translate>\r\n <a *ngIf="!mi?.isFullpath" [routerLink]="[mi.path]" [target]="mi.target"\r\n [queryParams]="genAction(viewInfoObjList[i], mi.param)">\r\n {{ viewInfoObjList[i][mi.property] }}\r\n </a>\r\n <a *ngIf="mi?.isFullpath" href="javascript:void(0);"\r\n (click)="redirectFullPath(mi.fullpath, genAction(viewInfoObjList[i], mi.param), mi.target)">\r\n {{ viewInfoObjList[i][mi.property] }}\r\n </a>\r\n </label>\r\n <label *ngIf="mi.type == \'callback\'" class="label-control" translate>\r\n <a href="javascript:void(0);" (click)="callbackFunction(viewInfoObjList[i], mi.key)">\r\n {{ viewInfoObjList[i][mi.property] }}\r\n </a>\r\n </label>\r\n <textarea *ngIf="mi.type == \'textarea\'" class="form-control" readonly\r\n translate> {{ viewInfoObjList[i][mi.property] }} </textarea>\r\n <span *ngIf="mi.type == \'boolean\'">\r\n <label *ngIf="viewInfoObjList[i][mi.property] == true">Yes</label>\r\n <label *ngIf="viewInfoObjList[i][mi.property] == false">No</label>\r\n \x3c!-- <label\r\n *ngIf="viewInfoObjList[i][mi.property] == \'\' || viewInfoObjList[i][mi.property] == null">-</label> --\x3e\r\n </span>\r\n <span *ngIf="mi.type == \'concat\'">\r\n <label class="label-control" translate> {{ mi.concat }}\r\n </label>\r\n </span>\r\n <span *ngIf="mi.type == \'switch\'">\r\n <span *ngFor="let cs of mi?.case">\r\n <span *ngIf="switchCase(viewInfoObjList[i],cs)">\r\n <span class="label-control"\r\n *ngIf="cs.result.type == \'text\'">{{ viewInfoObjList[i][cs.result.property] }}\r\n </span>\r\n <span\r\n *ngIf="cs.result.type == \'decimal\'">{{ viewInfoObjList[i][cs.result.property] | number:\'.2\':\'en-US\' }}</span>\r\n <span\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\'">\r\n <a [target]="cs.result.target" [routerLink]="[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\'">\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:r.ActivatedRoute},{type:i.HttpClient}]},p.propDecorators={viewGenericObj:[{type:t.Input}],callback:[{type:t.Output}]},p);function p(e,i){var n=this;this.route=e,this.http=i,this.viewGenericObj=new l,this.callback=new t.EventEmitter,this.viewList="",this.isReady=!1,this.route.queryParams.subscribe(function(e){n.getList=e})}var u=(f.decorators=[{type:t.NgModule,args:[{declarations:[c],imports:[n.CommonModule,r.RouterModule,s.UcSubsectionModule],exports:[c]}]}],f);function f(){}e.UcviewgenericService=o,e.UcviewgenericComponent=c,e.UcviewgenericModule=u,Object.defineProperty(e,"__esModule",{value:!0})});
|
|
1
|
+
!function(e,i){"object"==typeof exports&&"undefined"!=typeof module?i(exports,require("@angular/common/http"),require("@angular/core"),require("@angular/common"),require("@angular/router"),require("@adins/uc-subsection")):"function"==typeof define&&define.amd?define("@adins/ucviewgeneric",["exports","@angular/common/http","@angular/core","@angular/common","@angular/router","@adins/uc-subsection"],i):i((e.adins=e.adins||{},e.adins.ucviewgeneric={}),e.ng.common.http,e.ng.core,e.ng.common,e.ng.router,e.ucSubsection)}(this,function(e,i,t,n,r,s){"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 b(){this.viewInput="",this.viewEnvironment="",this.ddlEnvironments=new Array,this.whereValue=new Array},c=(p.prototype.ngOnInit=function(){console.log("viewgeneric"),this.initiateForm()},p.prototype.initiateForm=function(){var o=this;this.getJSON(this.viewGenericObj.viewInput).subscribe(function(e){o.viewList=e,o.viewInfoObjList=[];for(var i=0;i<o.viewList.subsection.length;i++)o.viewInfoObjList.push(i);for(var n,t=function(s){null!=o.viewList.subsection[s].querystring?(0==o.viewGenericObj.whereValue.length?o.viewList.subsection[s].querystring.whereQuery=Object.values(o.getList):o.viewList.subsection[s].querystring.whereQuery=o.viewGenericObj.whereValue,o.viewList.subsection[s].mainInfoPath!=undefined&&""!=o.viewList.subsection[s].mainInfoPath&&o.viewGenericObj.viewEnvironment!=undefined&&""!=o.viewGenericObj.viewEnvironment?o.viewList.subsection[s].fullpath=o.viewGenericObj.viewEnvironment+o.viewList.subsection[s].mainInfoPath:o.viewList.subsection[s].fullpath=o.viewList.subsection[s].mainInfoUrl,n={querystring:o.viewList.subsection[s].querystring},o.http.post(o.viewList.subsection[s].fullpath,n).subscribe(function(e){o.viewInfoObjList[s]=e.Data[0];for(var i=0;i<o.viewList.subsection[s].mainInfo.length;i++){if(o.viewList.subsection[s].mainInfo[i].propertyList!=undefined&&0!=o.viewList.subsection[s].mainInfo[i].propertyList.length){for(var n=o.viewList.subsection[s].mainInfo[i].propertyList,t="",r=0;r<n.length;r++)t=t+n[r].prefix+o.viewInfoObjList[s][n[r].property]+n[r].suffix;o.viewList.subsection[s].mainInfo[i].concat=t}if("link"==o.viewList.subsection[s].mainInfo[i].type&&o.viewGenericObj.ddlEnvironments!=undefined&&0!=o.viewGenericObj.ddlEnvironments.length){for(r=0;r<o.viewGenericObj.ddlEnvironments.length;r++)if(o.viewList.subsection[s].mainInfo[i].name==o.viewGenericObj.ddlEnvironments[r].name){o.viewList.subsection[s].mainInfo[i].isFullpath=!0,o.viewList.subsection[s].mainInfo[i].fullpath=o.viewGenericObj.ddlEnvironments[r].environment+o.viewList.subsection[s].mainInfo[i].path;break}}else"link"==o.viewList.subsection[s].mainInfo[i].type&&(o.viewList.subsection[s].mainInfo[i].isFullpath=!1,o.viewList.subsection[s].mainInfo[i].fullpath=o.viewList.subsection[s].mainInfo[i].path)}o.isReady=!0},function(e){console.log(e)})):(o.viewList.subsection[s].mainInfoPath!=undefined&&""!=o.viewList.subsection[s].mainInfoPath&&o.viewGenericObj.viewEnvironment!=undefined&&""!=o.viewGenericObj.viewEnvironment?o.viewList.subsection[s].fullpath=o.viewGenericObj.viewEnvironment+o.viewList.subsection[s].mainInfoPath:o.viewList.subsection[s].fullpath=o.viewList.subsection[s].mainInfoUrl,o.http.post(o.viewList.subsection[s].fullpath,o.getList).subscribe(function(e){o.viewInfoObjList[s]=e.Data},function(e){console.log(e)}))},r=0;r<o.viewList.subsection.length;r++)t(r)})},p.prototype.getJSON=function(e){return this.http.get(e)},p.prototype.genAction=function(e,i){for(var n={},t=0;t<i.length;t++)e[i[t].type]!=undefined||e[i[t].property]!=undefined?n[i[t].type]=e[i[t].property]:n[i[t].type]=i[t].property;return n},p.prototype.genRouterLink=function(e){var i=this.viewGenericObj.navigationConst[e];return i!=undefined&&null!=i||(i=e),i},p.prototype.redirectFullPath=function(e,i,n){for(var t="",r=Object.keys(i),s=0;s<r.length;s++)t=""!=t?t+"&"+r[s]+"="+i[r[s]]:r[s]+"="+i[r[s]];window.open(e+"?"+t,n)},p.prototype.callbackFunction=function(e,i){void 0===i&&(i="");var n={ViewObj:e,Key:i};this.callback.emit(n)},p.prototype.switchCase=function(e,i){for(var n=!1,t=0;t<i.conditions.length;t++)if("EQ"==i.conditions[t].restriction)if(1!=i.conditions[t].isUser){if(e[i.conditions[t].property]!=i.conditions[t].value){n=!1;break}n=!0}else{var r=localStorage.getItem("Username");if(e[i.conditions[t].property]!=r){n=!1;break}n=!0}else if("NEQ"==i.conditions[t].restriction)if(1!=i.conditions[t].isUser){if(e[i.conditions[t].property]==i.conditions[t].value){n=!1;break}n=!0}else{if(r=localStorage.getItem("Username"),e[i.conditions[t].property]==r){n=!1;break}n=!0}else if("GT"==i.conditions[t].restriction)if(1!=i.conditions[t].isUser){if(!(e[i.conditions[t].property]>i.conditions[t].value)){n=!1;break}n=!0}else{if(r=localStorage.getItem("Username"),!(e[i.conditions[t].property]>r)){n=!1;break}n=!0}else if("GTE"==i.conditions[t].restriction)if(1!=i.conditions[t].isUser){if(!(e[i.conditions[t].property]>=i.conditions[t].value)){n=!1;break}n=!0}else{if(r=localStorage.getItem("Username"),!(e[i.conditions[t].property]>=r)){n=!1;break}n=!0}else if("LT"==i.conditions[t].restriction)if(1!=i.conditions[t].isUser){if(!(e[i.conditions[t].property]<i.conditions[t].value)){n=!1;break}n=!0}else{if(r=localStorage.getItem("Username"),!(e[i.conditions[t].property]<r)){n=!1;break}n=!0}else if("LTE"==i.conditions[t].restriction)if(1!=i.conditions[t].isUser){if(!(e[i.conditions[t].property]<=i.conditions[t].value)){n=!1;break}n=!0}else{if(r=localStorage.getItem("Username"),!(e[i.conditions[t].property]<=r)){n=!1;break}n=!0}return n},p.decorators=[{type:t.Component,args:[{selector:"lib-ucviewgeneric",template:'<section id="horizontal-form-layouts">\r\n <div class="row text-left">\r\n <div class="col-md-12">\r\n <div class="card" *ngIf="isReady">\r\n <div class="pl-3 mb-2 mt-2" *ngIf="viewList?.title != \'\'">\r\n <h4 class="card-title ucSearch-title" id="horz-layout-colored-controls" translate> {{ viewList.title }} </h4>\r\n </div>\r\n <div class="card-body" *ngFor="let ss of viewList?.subsection;let i = index;">\r\n <div class="px-3">\r\n <lib-ucSubsection *ngIf="ss.subsection != \'\'" [id]="ss.subSectionId + \'id\'" [title]="ss.subSectionTitle"\r\n [panel]="ss.subSectionId">\r\n </lib-ucSubsection>\r\n <div class="form-body" [id]=\'ss.subSectionId\'>\r\n <div class="form-group row">\r\n <div *ngFor="let mi of ss?.mainInfo"\r\n [ngClass]="{ \'col-md-6\': mi.isHide == undefined || !mi.isHide || (viewInfoObjList[i][mi.property] != \'\' && viewInfoObjList[i][mi.property] != null)}">\r\n <span\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.customClass != undefined ? mi.customClass : \'\'" 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.customClass != undefined ? mi.customClass : \'\'" 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" translate>-</label>\r\n </ng-template>\r\n <ng-template #nonEmptyLabel>\r\n <span *ngIf="mi.type == \'text\'">\r\n <label\r\n *ngIf="viewInfoObjList[i][mi.property] != \'\' && viewInfoObjList[i][mi.property] != null"\r\n class="label-control" translate> {{ viewInfoObjList[i][mi.property] }}\r\n </label>\r\n <label\r\n *ngIf="viewInfoObjList[i][mi.property] == \'\' || viewInfoObjList[i][mi.property] == null"\r\n class="label-control" translate>-\r\n </label>\r\n </span>\r\n <label *ngIf="mi.type == \'currency\'" class="label-control" translate>\r\n {{ viewInfoObjList[i][mi.property] | number:\'.2\':\'en-US\'}} </label>\r\n <label *ngIf="mi.type == \'date\'" class="label-control" translate>\r\n {{ viewInfoObjList[i][mi.property] | date: \'dd-MMM-yyyy\'}} </label>\r\n <label *ngIf="mi.type == \'link\'" class="label-control" translate>\r\n <a *ngIf="!mi?.isFullpath" [routerLink]="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" translate>\r\n <a href="javascript:void(0);" (click)="callbackFunction(viewInfoObjList[i], mi.key)">\r\n {{ viewInfoObjList[i][mi.property] }}\r\n </a>\r\n </label>\r\n <textarea *ngIf="mi.type == \'textarea\'" class="form-control" readonly\r\n translate> {{ viewInfoObjList[i][mi.property] }} </textarea>\r\n <span *ngIf="mi.type == \'boolean\'">\r\n <label *ngIf="viewInfoObjList[i][mi.property] == true">Yes</label>\r\n <label *ngIf="viewInfoObjList[i][mi.property] == false">No</label>\r\n \x3c!-- <label\r\n *ngIf="viewInfoObjList[i][mi.property] == \'\' || viewInfoObjList[i][mi.property] == null">-</label> --\x3e\r\n </span>\r\n <span *ngIf="mi.type == \'concat\'">\r\n <label class="label-control" translate> {{ mi.concat }}\r\n </label>\r\n </span>\r\n <span *ngIf="mi.type == \'switch\'">\r\n <span *ngFor="let cs of mi?.case">\r\n <span *ngIf="switchCase(viewInfoObjList[i],cs)">\r\n <span class="label-control"\r\n *ngIf="cs.result.type == \'text\'">{{ viewInfoObjList[i][cs.result.property] }}\r\n </span>\r\n <span\r\n *ngIf="cs.result.type == \'decimal\'">{{ viewInfoObjList[i][cs.result.property] | number:\'.2\':\'en-US\' }}</span>\r\n <span\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\'">\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\'">\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:r.ActivatedRoute},{type:i.HttpClient}]},p.propDecorators={viewGenericObj:[{type:t.Input}],callback:[{type:t.Output}]},p);function p(e,i){var n=this;this.route=e,this.http=i,this.viewGenericObj=new l,this.callback=new t.EventEmitter,this.viewList="",this.isReady=!1,this.route.queryParams.subscribe(function(e){n.getList=e})}var u=(f.decorators=[{type:t.NgModule,args:[{declarations:[c],imports:[n.CommonModule,r.RouterModule,s.UcSubsectionModule],exports:[c]}]}],f);function f(){}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","name","isFullpath","environment","path","isReady","error","url","get","genAction","viewObj","param","arrList","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,EAMI,SAAAA,IACIC,KAAKC,UAAY,GACjBD,KAAKE,gBAAkB,GACvBF,KAAKG,gBAAkB,IAAIC,MAC3BJ,KAAKK,WAAa,IAAID,OCX9BE,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,CACTE,YAAab,EAAKK,SAASG,WAAWI,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,cAChChB,EAAKQ,EAASE,WAAWpD,GAAGkB,WAAasC,GAEtC,CACLL,GAAY,EACZ,MAHAA,GAAY,EAQpB,OAAOA,uBAlQVQ,EAAAA,UAAStF,KAAA,CAAC,CACTuF,SAAU,oBACVC,SAAA,oqPAROC,EAAAA,sBACAC,EAAAA,sDAYNC,EAAAA,wBACAC,EAAAA,UA4PHnF,GAtPE,SAAAA,EAAoBoF,EAA+BzD,GAAnD,IAAArB,EAAAZ,KAAoBA,KAAA0F,MAAAA,EAA+B1F,KAAAiC,KAAAA,EAP1CjC,KAAAc,eAAmC,IAAIf,EACtCC,KAAAuE,SAA8B,IAAIoB,EAAAA,aAC5C3F,KAAAiB,SAAgB,GAGhBjB,KAAAiD,SAAmB,EAGjBjD,KAAK0F,MAAME,YAAY7E,UAAS,SAAC8E,GAC/BjF,EAAKgB,QAAUiE,ICvBrB,IAAAC,uBAMCC,EAAAA,SAAQlG,KAAA,CAAC,CACRmG,aAAc,CAAC1F,GACf2F,QAAS,CACPC,EAAAA,aACAC,EAAAA,aACAC,EAAAA,oBAEFC,QAAS,CAAC/F,OAEuBwF,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 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\"\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 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","name","isFullpath","environment","path","isReady","error","url","get","genAction","viewObj","param","arrList","genRouterLink","urlLink","tempLink","navigationConst","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","UcviewgenericMod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WAAaoC,EAASE,WAAWxD,GAAG2D,OAE7D,CACLJ,GAAY,EACZ,MAHAA,GAAY,MAKT,CAEL,GADIK,EAAWC,aAAaC,QAAQ,cAChChB,EAAKQ,EAASE,WAAWxD,GAAGkB,WAAa0C,GAEtC,CACLL,GAAY,EACZ,MAHAA,GAAY,EAQpB,OAAOA,uBA1QVQ,EAAAA,UAAS1F,KAAA,CAAC,CACT2F,SAAU,oBACVC,SAAA,8rPAROC,EAAAA,sBACAC,EAAAA,sDAYNC,EAAAA,wBACAC,EAAAA,UAoQHvF,GA9PE,SAAAA,EAAoBwF,EAA+B7D,GAAnD,IAAArB,EAAAZ,KAAoBA,KAAA8F,MAAAA,EAA+B9F,KAAAiC,KAAAA,EAP1CjC,KAAAc,eAAmC,IAAIf,EACtCC,KAAA2E,SAA8B,IAAIoB,EAAAA,aAC5C/F,KAAAiB,SAAgB,GAGhBjB,KAAAiD,SAAmB,EAGjBjD,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\"\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 = this.viewGenericObj.navigationConst[urlLink];\r\n if (tempLink == undefined || tempLink == null) {\r\n tempLink = 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"]}
|
|
@@ -16,6 +16,8 @@ if (false) {
|
|
|
16
16
|
/** @type {?} */
|
|
17
17
|
UcViewGenericObj.prototype.viewEnvironment;
|
|
18
18
|
/** @type {?} */
|
|
19
|
+
UcViewGenericObj.prototype.navigationConst;
|
|
20
|
+
/** @type {?} */
|
|
19
21
|
UcViewGenericObj.prototype.ddlEnvironments;
|
|
20
22
|
/** @type {?} */
|
|
21
23
|
UcViewGenericObj.prototype.whereValue;
|
|
@@ -43,4 +45,4 @@ if (false) {
|
|
|
43
45
|
/** @type {?} */
|
|
44
46
|
WhereValueObj.prototype.value;
|
|
45
47
|
}
|
|
46
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
48
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2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