@adins/ucviewgeneric 2.0.25 → 2.0.27

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -3,6 +3,13 @@
3
3
  This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 7.2.0.
4
4
 
5
5
  ## Version
6
+ Version 2.0.27
7
+ 1. Ubah input object
8
+ 2. tambah link envi
9
+
10
+ Version 2.0.22
11
+ 1. tambah input ddlEnvironments
12
+
6
13
  Version 2.0.21
7
14
  1. tambah input ddlEnvironments
8
15
 
@@ -70,6 +77,7 @@ import this module :
70
77
  lib-ucviewgeneric
71
78
 
72
79
  ## Input
80
+ 1. viewGenericObj : UcViewGenericObj (object) *mandatory
73
81
  1. viewInput : view.json
74
82
  2. whereValue : []
75
83
  3. viewEnvironment: string
@@ -78,6 +86,23 @@ lib-ucviewgeneric
78
86
  ## Output
79
87
  1. callback : return view object
80
88
 
89
+ ## Object property & JSON property
90
+ viewGenericObj :
91
+ - viewInput : view.json
92
+ - whereValue : []
93
+ - viewEnvironment : environment path (foundation, setting, vendor)
94
+ - ddlEnvironments : [
95
+ {
96
+ name: "A.MR_OFFICE_TYPE_CODE", // which dropdown use this environment, check by name
97
+ environment: environment.FoundationR3Url
98
+ },
99
+ {
100
+ name: "A.MR_OFFICE_CLASS_CODE",
101
+ environment: environment.FoundationR3Url
102
+ }
103
+ ]
104
+
105
+
81
106
  ## Callback
82
107
  - Callback return object:
83
108
  {
@@ -22,6 +22,20 @@
22
22
  return UcviewgenericService;
23
23
  }());
24
24
 
25
+ /**
26
+ * @fileoverview added by tsickle
27
+ * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
28
+ */
29
+ var UcViewGenericObj = /** @class */ (function () {
30
+ function UcViewGenericObj() {
31
+ this.viewInput = "";
32
+ this.viewEnvironment = "";
33
+ this.ddlEnvironments = new Array();
34
+ this.whereValue = new Array();
35
+ }
36
+ return UcViewGenericObj;
37
+ }());
38
+
25
39
  /**
26
40
  * @fileoverview added by tsickle
27
41
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
@@ -31,10 +45,10 @@
31
45
  var _this = this;
32
46
  this.route = route;
33
47
  this.http = http$$1;
34
- this.whereValue = [];
35
- this.ddlEnvironments = new Array();
48
+ this.viewGenericObj = new UcViewGenericObj();
36
49
  this.callback = new i0.EventEmitter();
37
50
  this.viewList = "";
51
+ this.isReady = false;
38
52
  this.route.queryParams.subscribe(( /**
39
53
  * @param {?} params
40
54
  * @return {?}
@@ -60,7 +74,7 @@
60
74
  */
61
75
  function () {
62
76
  var _this = this;
63
- this.getJSON(this.viewInput).subscribe(( /**
77
+ this.getJSON(this.viewGenericObj.viewInput).subscribe(( /**
64
78
  * @param {?} data
65
79
  * @return {?}
66
80
  */function (data) {
@@ -71,15 +85,15 @@
71
85
  }
72
86
  var _loop_1 = function (i) {
73
87
  if (_this.viewList.subsection[i].querystring != null) {
74
- if (_this.whereValue.length == 0) {
75
- _this.viewList.subsection[i].querystring.whereQuery = Object.values(_this.getList);
88
+ if (_this.viewGenericObj.whereValue.length == 0) {
89
+ _this.viewList.subsection[i].querystring.whereQuery = (( /** @type {?} */(Object))).values(_this.getList);
76
90
  }
77
91
  else {
78
- _this.viewList.subsection[i].querystring.whereQuery = _this.whereValue;
92
+ _this.viewList.subsection[i].querystring.whereQuery = _this.viewGenericObj.whereValue;
79
93
  }
80
94
  if (_this.viewList.subsection[i].mainInfoPath != undefined && _this.viewList.subsection[i].mainInfoPath != "") {
81
- if (_this.viewEnvironment != undefined && _this.viewEnvironment != "") {
82
- _this.viewList.subsection[i].fullpath = _this.viewEnvironment + _this.viewList.subsection[i].mainInfoPath;
95
+ if (_this.viewGenericObj.viewEnvironment != undefined && _this.viewGenericObj.viewEnvironment != "") {
96
+ _this.viewList.subsection[i].fullpath = _this.viewGenericObj.viewEnvironment + _this.viewList.subsection[i].mainInfoPath;
83
97
  }
84
98
  else {
85
99
  _this.viewList.subsection[i].fullpath = _this.viewList.subsection[i].mainInfoUrl;
@@ -107,20 +121,22 @@
107
121
  }
108
122
  _this.viewList.subsection[i].mainInfo[y].concat = concat;
109
123
  }
110
- if (_this.viewList.subsection[i].mainInfo[y].type = _this.ddlEnvironments != undefined && _this.ddlEnvironments.length != 0) {
111
- for (var z = 0; z < _this.ddlEnvironments.length; z++) {
112
- if (_this.viewList.subsection[i].mainInfo[y].name == _this.ddlEnvironments[z].name) {
124
+ if (_this.viewList.subsection[i].mainInfo[y].type == "link"
125
+ && _this.viewGenericObj.ddlEnvironments != undefined && _this.viewGenericObj.ddlEnvironments.length != 0) {
126
+ for (var z = 0; z < _this.viewGenericObj.ddlEnvironments.length; z++) {
127
+ if (_this.viewList.subsection[i].mainInfo[y].name == _this.viewGenericObj.ddlEnvironments[z].name) {
113
128
  _this.viewList.subsection[i].mainInfo[y].isFullpath = true;
114
- _this.viewList.subsection[i].mainInfo[y].fullpath = _this.ddlEnvironments[z].environment + _this.viewList.subsection[i].mainInfo[y].path;
129
+ _this.viewList.subsection[i].mainInfo[y].fullpath = _this.viewGenericObj.ddlEnvironments[z].environment + _this.viewList.subsection[i].mainInfo[y].path;
115
130
  break;
116
131
  }
117
132
  }
118
133
  }
119
- else if (_this.viewList.subsection[i].mainInfo[y].type = "link") {
134
+ else if (_this.viewList.subsection[i].mainInfo[y].type == "link") {
120
135
  _this.viewList.subsection[i].mainInfo[y].isFullpath = false;
121
136
  _this.viewList.subsection[i].mainInfo[y].fullpath = _this.viewList.subsection[i].mainInfo[y].path;
122
137
  }
123
138
  }
139
+ _this.isReady = true;
124
140
  }), ( /**
125
141
  * @param {?} error
126
142
  * @return {?}
@@ -130,8 +146,8 @@
130
146
  }
131
147
  else {
132
148
  if (_this.viewList.subsection[i].mainInfoPath != undefined && _this.viewList.subsection[i].mainInfoPath != "") {
133
- if (_this.viewEnvironment != undefined && _this.viewEnvironment != "") {
134
- _this.viewList.subsection[i].fullpath = _this.viewEnvironment + _this.viewList.subsection[i].mainInfoPath;
149
+ if (_this.viewGenericObj.viewEnvironment != undefined && _this.viewGenericObj.viewEnvironment != "") {
150
+ _this.viewList.subsection[i].fullpath = _this.viewGenericObj.viewEnvironment + _this.viewList.subsection[i].mainInfoPath;
135
151
  }
136
152
  else {
137
153
  _this.viewList.subsection[i].fullpath = _this.viewList.subsection[i].mainInfoUrl;
@@ -193,6 +209,33 @@
193
209
  }
194
210
  return arrList;
195
211
  };
212
+ /**
213
+ * @param {?} fullpath
214
+ * @param {?} param
215
+ * @param {?} target
216
+ * @return {?}
217
+ */
218
+ UcviewgenericComponent.prototype.redirectFullPath = /**
219
+ * @param {?} fullpath
220
+ * @param {?} param
221
+ * @param {?} target
222
+ * @return {?}
223
+ */
224
+ function (fullpath, param, target) {
225
+ /** @type {?} */
226
+ var queryParam = "";
227
+ /** @type {?} */
228
+ var ListObj = Object.keys(param);
229
+ for (var i = 0; i < ListObj.length; i++) {
230
+ if (queryParam != "") {
231
+ queryParam = queryParam + "&" + ListObj[i] + "=" + param[ListObj[i]];
232
+ }
233
+ else {
234
+ queryParam = ListObj[i] + "=" + param[ListObj[i]];
235
+ }
236
+ }
237
+ window.open(fullpath + "?" + queryParam, target);
238
+ };
196
239
  /**
197
240
  * @param {?} item
198
241
  * @param {?=} key
@@ -217,7 +260,7 @@
217
260
  UcviewgenericComponent.decorators = [
218
261
  { type: i0.Component, args: [{
219
262
  selector: 'lib-ucviewgeneric',
220
- template: "<div class=\"card\">\r\n <div class=\"card-header\" *ngIf=\"viewList?.title != ''\">\r\n <h4 class=\"card-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 class=\"col-md-6\" *ngFor=\"let mi of ss?.mainInfo\">\r\n <div class=\"row\">\r\n <div class=\"col-md-6\">\r\n <label class=\"label-control\" translate> {{ mi.label }} </label>\r\n </div>\r\n <div *ngIf=\"viewInfoObjList[i] != undefined\" class=\"col-md-6\" [ngClass]=\"{ 'text-left': mi.position == 'left',\r\n 'text-right': mi.position == 'right', 'text-center': mi.position == 'center' }\">\r\n <span *ngIf=\"mi.type == 'text'\">\r\n <label *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 *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}} </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 [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\"[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\" [routerLink]=\"[mi.fullpath]\" [target]=\"mi.target\"\r\n [queryParams]=\"genAction(viewInfoObjList[i], mi.param)\">\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 </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n</div>"
263
+ template: "<div class=\"card\" *ngIf=\"isReady\">\r\n <div class=\"card-header\" *ngIf=\"viewList?.title != ''\">\r\n <h4 class=\"card-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 class=\"col-md-6\" *ngFor=\"let mi of ss?.mainInfo\">\r\n <div class=\"row\">\r\n <div class=\"col-md-6\">\r\n <label class=\"label-control\" translate> {{ mi.label }} </label>\r\n </div>\r\n <div *ngIf=\"viewInfoObjList[i] != undefined\" class=\"col-md-6\" [ngClass]=\"{ 'text-left': mi.position == 'left',\r\n 'text-right': mi.position == 'right', 'text-center': mi.position == 'center' }\">\r\n <span *ngIf=\"mi.type == 'text'\">\r\n <label *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 *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}} </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 </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n</div>"
221
264
  }] }
222
265
  ];
223
266
  /** @nocollapse */
@@ -228,10 +271,7 @@
228
271
  ];
229
272
  };
230
273
  UcviewgenericComponent.propDecorators = {
231
- viewInput: [{ type: i0.Input }],
232
- viewEnvironment: [{ type: i0.Input }],
233
- whereValue: [{ type: i0.Input }],
234
- ddlEnvironments: [{ type: i0.Input }],
274
+ viewGenericObj: [{ type: i0.Input }],
235
275
  callback: [{ type: i0.Output }]
236
276
  };
237
277
  return UcviewgenericComponent;
@@ -1 +1 @@
1
- {"version":3,"file":"ucviewgeneric.umd.js.map","sources":["ng://ucviewgeneric/lib/ucviewgeneric.service.ts","ng://ucviewgeneric/lib/ucviewgeneric.component.ts","ng://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","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\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() viewInput: string;\r\n @Input() viewEnvironment: string;\r\n @Input() whereValue = [];\r\n @Input() ddlEnvironments: Array<EnviObj> = new Array<EnviObj>();\r\n @Output() callback: EventEmitter<any> = new EventEmitter();\r\n viewList: any = \"\";\r\n getList: any;\r\n viewInfoObjList: any;\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.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.whereValue.length == 0) {\r\n this.viewList.subsection[i].querystring.whereQuery = Object.values(this.getList);\r\n } else {\r\n this.viewList.subsection[i].querystring.whereQuery = this.whereValue;\r\n }\r\n\r\n if (this.viewList.subsection[i].mainInfoPath != undefined && this.viewList.subsection[i].mainInfoPath != \"\") {\r\n if (this.viewEnvironment != undefined && this.viewEnvironment != \"\") {\r\n this.viewList.subsection[i].fullpath = this.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.ddlEnvironments != undefined && this.ddlEnvironments.length != 0) {\r\n for (let z = 0; z < this.ddlEnvironments.length; z++) {\r\n if (this.viewList.subsection[i].mainInfo[y].name == this.ddlEnvironments[z].name) {\r\n this.viewList.subsection[i].mainInfo[y].isFullpath = true;\r\n this.viewList.subsection[i].mainInfo[y].fullpath = this.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 },\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.viewEnvironment != undefined && this.viewEnvironment != \"\") {\r\n this.viewList.subsection[i].fullpath = this.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 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","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;;;;;;ACFA;QAsBE,gCAAoB,KAAqB,EAAUC,OAAgB;YAAnE,iBAIC;YAJmB,UAAK,GAAL,KAAK,CAAgB;YAAU,SAAI,GAAJA,OAAI,CAAY;YAP1D,eAAU,GAAG,EAAE,CAAC;YAChB,oBAAe,GAAmB,IAAI,KAAK,EAAW,CAAC;YACtD,aAAQ,GAAsB,IAAIC,eAAY,EAAE,CAAC;YAC3D,aAAQ,GAAQ,EAAE,CAAC;YAKjB,IAAI,CAAC,KAAK,CAAC,WAAW,CAAC,SAAS;;;eAAC,UAAA,MAAM;gBACrC,KAAI,CAAC,OAAO,GAAG,MAAM,CAAC;aACvB,EAAC,CAAC;SACJ;;;;QAED,yCAAQ;;;YAAR;gBACE,OAAO,CAAC,GAAG,CAAC,aAAa,CAAC,CAAC;gBAC3B,IAAI,CAAC,YAAY,EAAE,CAAC;aACrB;;;;QAED,6CAAY;;;YAA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CAAC,CAAC,IAAI,CAAC,GAAG,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC;qBACrD;yBAAM;wBACL,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC;qBAC5C;iBACF;gBACD,OAAO,OAAO,CAAC;aAChB;;;;;;QAED,iDAAgB;;;;;YAAhB,UAAiB,IAAI,EAAE,GAAgB;gBAAhB,oBAAA;oBAAA,QAAgB;;;oBACjC,KAAK,GAAG;oBACV,OAAO,EAAE,IAAI;oBACb,GAAG,EAAE,GAAG;iBACT;gBACD,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;aAC3B;;oBAxIFC,YAAS,SAAC;wBACT,QAAQ,EAAE,mBAAmB;wBAC7B,yjIAA6C;qBAE9C;;;;;wBATQC,qBAAc;wBACdC,eAAU;;;;gCAWhBC,QAAK;sCACLA,QAAK;iCACLA,QAAK;sCACLA,QAAK;+BACLC,SAAM;;QA8HT,6BAAC;KAzID;;;;;;ACNA;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":"ucviewgeneric.umd.js.map","sources":["ng://ucviewgeneric/lib/ucviewgeneric.service.ts","ng://ucviewgeneric/lib/model/UcViewGenericObj.model.ts","ng://ucviewgeneric/lib/ucviewgeneric.component.ts","ng://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","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;;;;;;ACbD;QAqBE,gCAAoB,KAAqB,EAAUC,OAAgB;YAAnE,iBAIC;YAJmB,UAAK,GAAL,KAAK,CAAgB;YAAU,SAAI,GAAJA,OAAI,CAAY;YAP1D,mBAAc,GAAqB,IAAI,gBAAgB,EAAE,CAAC;YACzD,aAAQ,GAAsB,IAAIC,eAAY,EAAE,CAAC;YAC3D,aAAQ,GAAQ,EAAE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yBAAM;wBACL,UAAU,GAAG,OAAO,CAAC,CAAC,CAAC,GAAG,GAAG,GAAG,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC;qBACnD;iBACF;gBACD,MAAM,CAAC,IAAI,CAAC,QAAQ,GAAG,GAAG,GAAG,UAAU,EAAE,MAAM,CAAC,CAAC;aAClD;;;;;;QAED,iDAAgB;;;;;YAAhB,UAAiB,IAAI,EAAE,GAAgB;gBAAhB,oBAAA;oBAAA,QAAgB;;;oBACjC,KAAK,GAAG;oBACV,OAAO,EAAE,IAAI;oBACb,GAAG,EAAE,GAAG;iBACT;gBACD,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;aAC3B;;oBApJFC,YAAS,SAAC;wBACT,QAAQ,EAAE,mBAAmB;wBAC7B,21HAA6C;qBAE9C;;;;;wBAVQC,qBAAc;wBACdC,eAAU;;;;qCAYhBC,QAAK;+BACLC,SAAM;;QA6IT,6BAAC;KArJD;;;;;;ACPA;QAMA;SASoC;;oBATnCC,WAAQ,SAAC;wBACR,YAAY,EAAE,CAAC,sBAAsB,CAAC;wBACtC,OAAO,EAAE;4BACPC,mBAAY;4BACZC,mBAAY;4BACZC,+BAAkB;yBACnB;wBACD,OAAO,EAAE,CAAC,sBAAsB,CAAC;qBAClC;;QACkC,0BAAC;KATpC;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1,2 +1,2 @@
1
- !function(e,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports,require("@angular/common/http"),require("@angular/core"),require("@angular/common"),require("@angular/router"),require("@adins/uc-subsection")):"function"==typeof define&&define.amd?define("ucviewgeneric",["exports","@angular/common/http","@angular/core","@angular/common","@angular/router","@adins/uc-subsection"],n):n(e.ucviewgeneric={},e.ng.common.http,e.ng.core,e.ng.common,e.ng.router,e.ucSubsection)}(this,function(e,n,t,i,r,o){"use strict";var s=(a.decorators=[{type:t.Injectable,args:[{providedIn:"root"}]}],a.ctorParameters=function(){return[]},a.ngInjectableDef=t.defineInjectable({factory:function(){return new a},token:a,providedIn:"root"}),a);function a(){}var l=(c.prototype.ngOnInit=function(){console.log("viewgeneric"),this.initiateForm()},c.prototype.initiateForm=function(){var s=this;this.getJSON(this.viewInput).subscribe(function(e){s.viewList=e,s.viewInfoObjList=[];for(var n=0;n<s.viewList.subsection.length;n++)s.viewInfoObjList.push(n);for(var i,t=function(o){null!=s.viewList.subsection[o].querystring?(0==s.whereValue.length?s.viewList.subsection[o].querystring.whereQuery=Object.values(s.getList):s.viewList.subsection[o].querystring.whereQuery=s.whereValue,s.viewList.subsection[o].mainInfoPath!=undefined&&""!=s.viewList.subsection[o].mainInfoPath&&s.viewEnvironment!=undefined&&""!=s.viewEnvironment?s.viewList.subsection[o].fullpath=s.viewEnvironment+s.viewList.subsection[o].mainInfoPath:s.viewList.subsection[o].fullpath=s.viewList.subsection[o].mainInfoUrl,i={querystring:s.viewList.subsection[o].querystring},s.http.post(s.viewList.subsection[o].fullpath,i).subscribe(function(e){s.viewInfoObjList[o]=e.Data[0];for(var n=0;n<s.viewList.subsection[o].mainInfo.length;n++){if(s.viewList.subsection[o].mainInfo[n].propertyList!=undefined&&0!=s.viewList.subsection[o].mainInfo[n].propertyList.length){for(var i=s.viewList.subsection[o].mainInfo[n].propertyList,t="",r=0;r<i.length;r++)t=t+i[r].prefix+s.viewInfoObjList[o][i[r].property]+i[r].suffix;s.viewList.subsection[o].mainInfo[n].concat=t}if(s.viewList.subsection[o].mainInfo[n].type=s.ddlEnvironments!=undefined&&0!=s.ddlEnvironments.length){for(r=0;r<s.ddlEnvironments.length;r++)if(s.viewList.subsection[o].mainInfo[n].name==s.ddlEnvironments[r].name){s.viewList.subsection[o].mainInfo[n].isFullpath=!0,s.viewList.subsection[o].mainInfo[n].fullpath=s.ddlEnvironments[r].environment+s.viewList.subsection[o].mainInfo[n].path;break}}else(s.viewList.subsection[o].mainInfo[n].type="link")&&(s.viewList.subsection[o].mainInfo[n].isFullpath=!1,s.viewList.subsection[o].mainInfo[n].fullpath=s.viewList.subsection[o].mainInfo[n].path)}},function(e){console.log(e)})):(s.viewList.subsection[o].mainInfoPath!=undefined&&""!=s.viewList.subsection[o].mainInfoPath&&s.viewEnvironment!=undefined&&""!=s.viewEnvironment?s.viewList.subsection[o].fullpath=s.viewEnvironment+s.viewList.subsection[o].mainInfoPath:s.viewList.subsection[o].fullpath=s.viewList.subsection[o].mainInfoUrl,s.http.post(s.viewList.subsection[o].fullpath,s.getList).subscribe(function(e){s.viewInfoObjList[o]=e.Data},function(e){console.log(e)}))},r=0;r<s.viewList.subsection.length;r++)t(r)})},c.prototype.getJSON=function(e){return this.http.get(e)},c.prototype.genAction=function(e,n){for(var i={},t=0;t<n.length;t++)e[n[t].type]!=undefined||e[n[t].property]!=undefined?i[n[t].type]=e[n[t].property]:i[n[t].type]=n[t].property;return i},c.prototype.callbackFunction=function(e,n){void 0===n&&(n="");var i={ViewObj:e,Key:n};this.callback.emit(i)},c.decorators=[{type:t.Component,args:[{selector:"lib-ucviewgeneric",template:'<div class="card">\r\n <div class="card-header" *ngIf="viewList?.title != \'\'">\r\n <h4 class="card-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 class="col-md-6" *ngFor="let mi of ss?.mainInfo">\r\n <div class="row">\r\n <div class="col-md-6">\r\n <label class="label-control" translate> {{ mi.label }} </label>\r\n </div>\r\n <div *ngIf="viewInfoObjList[i] != undefined" class="col-md-6" [ngClass]="{ \'text-left\': mi.position == \'left\',\r\n \'text-right\': mi.position == \'right\', \'text-center\': mi.position == \'center\' }">\r\n <span *ngIf="mi.type == \'text\'">\r\n <label *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 *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}} </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 [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 \x3c!-- <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" [routerLink]="[mi.fullpath]" [target]="mi.target"\r\n [queryParams]="genAction(viewInfoObjList[i], mi.param)">\r\n {{ viewInfoObjList[i][mi.property] }}\r\n </a> --\x3e\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 </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n</div>'}]}],c.ctorParameters=function(){return[{type:r.ActivatedRoute},{type:n.HttpClient}]},c.propDecorators={viewInput:[{type:t.Input}],viewEnvironment:[{type:t.Input}],whereValue:[{type:t.Input}],ddlEnvironments:[{type:t.Input}],callback:[{type:t.Output}]},c);function c(e,n){var i=this;this.route=e,this.http=n,this.whereValue=[],this.ddlEnvironments=new Array,this.callback=new t.EventEmitter,this.viewList="",this.route.queryParams.subscribe(function(e){i.getList=e})}var u=(p.decorators=[{type:t.NgModule,args:[{declarations:[l],imports:[i.CommonModule,r.RouterModule,o.UcSubsectionModule],exports:[l]}]}],p);function p(){}e.UcviewgenericService=s,e.UcviewgenericComponent=l,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("ucviewgeneric",["exports","@angular/common/http","@angular/core","@angular/common","@angular/router","@adins/uc-subsection"],i):i(e.ucviewgeneric={},e.ng.common.http,e.ng.core,e.ng.common,e.ng.router,e.ucSubsection)}(this,function(e,i,t,n,r,o){"use strict";var s=(a.decorators=[{type:t.Injectable,args:[{providedIn:"root"}]}],a.ctorParameters=function(){return[]},a.ngInjectableDef=t.defineInjectable({factory:function(){return new a},token:a,providedIn:"root"}),a);function a(){}var l=function f(){this.viewInput="",this.viewEnvironment="",this.ddlEnvironments=new Array,this.whereValue=new Array},c=(u.prototype.ngOnInit=function(){console.log("viewgeneric"),this.initiateForm()},u.prototype.initiateForm=function(){var s=this;this.getJSON(this.viewGenericObj.viewInput).subscribe(function(e){s.viewList=e,s.viewInfoObjList=[];for(var i=0;i<s.viewList.subsection.length;i++)s.viewInfoObjList.push(i);for(var n,t=function(o){null!=s.viewList.subsection[o].querystring?(0==s.viewGenericObj.whereValue.length?s.viewList.subsection[o].querystring.whereQuery=Object.values(s.getList):s.viewList.subsection[o].querystring.whereQuery=s.viewGenericObj.whereValue,s.viewList.subsection[o].mainInfoPath!=undefined&&""!=s.viewList.subsection[o].mainInfoPath&&s.viewGenericObj.viewEnvironment!=undefined&&""!=s.viewGenericObj.viewEnvironment?s.viewList.subsection[o].fullpath=s.viewGenericObj.viewEnvironment+s.viewList.subsection[o].mainInfoPath:s.viewList.subsection[o].fullpath=s.viewList.subsection[o].mainInfoUrl,n={querystring:s.viewList.subsection[o].querystring},s.http.post(s.viewList.subsection[o].fullpath,n).subscribe(function(e){s.viewInfoObjList[o]=e.Data[0];for(var i=0;i<s.viewList.subsection[o].mainInfo.length;i++){if(s.viewList.subsection[o].mainInfo[i].propertyList!=undefined&&0!=s.viewList.subsection[o].mainInfo[i].propertyList.length){for(var n=s.viewList.subsection[o].mainInfo[i].propertyList,t="",r=0;r<n.length;r++)t=t+n[r].prefix+s.viewInfoObjList[o][n[r].property]+n[r].suffix;s.viewList.subsection[o].mainInfo[i].concat=t}if("link"==s.viewList.subsection[o].mainInfo[i].type&&s.viewGenericObj.ddlEnvironments!=undefined&&0!=s.viewGenericObj.ddlEnvironments.length){for(r=0;r<s.viewGenericObj.ddlEnvironments.length;r++)if(s.viewList.subsection[o].mainInfo[i].name==s.viewGenericObj.ddlEnvironments[r].name){s.viewList.subsection[o].mainInfo[i].isFullpath=!0,s.viewList.subsection[o].mainInfo[i].fullpath=s.viewGenericObj.ddlEnvironments[r].environment+s.viewList.subsection[o].mainInfo[i].path;break}}else"link"==s.viewList.subsection[o].mainInfo[i].type&&(s.viewList.subsection[o].mainInfo[i].isFullpath=!1,s.viewList.subsection[o].mainInfo[i].fullpath=s.viewList.subsection[o].mainInfo[i].path)}s.isReady=!0},function(e){console.log(e)})):(s.viewList.subsection[o].mainInfoPath!=undefined&&""!=s.viewList.subsection[o].mainInfoPath&&s.viewGenericObj.viewEnvironment!=undefined&&""!=s.viewGenericObj.viewEnvironment?s.viewList.subsection[o].fullpath=s.viewGenericObj.viewEnvironment+s.viewList.subsection[o].mainInfoPath:s.viewList.subsection[o].fullpath=s.viewList.subsection[o].mainInfoUrl,s.http.post(s.viewList.subsection[o].fullpath,s.getList).subscribe(function(e){s.viewInfoObjList[o]=e.Data},function(e){console.log(e)}))},r=0;r<s.viewList.subsection.length;r++)t(r)})},u.prototype.getJSON=function(e){return this.http.get(e)},u.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},u.prototype.redirectFullPath=function(e,i,n){for(var t="",r=Object.keys(i),o=0;o<r.length;o++)t=""!=t?t+"&"+r[o]+"="+i[r[o]]:r[o]+"="+i[r[o]];window.open(e+"?"+t,n)},u.prototype.callbackFunction=function(e,i){void 0===i&&(i="");var n={ViewObj:e,Key:i};this.callback.emit(n)},u.decorators=[{type:t.Component,args:[{selector:"lib-ucviewgeneric",template:'<div class="card" *ngIf="isReady">\r\n <div class="card-header" *ngIf="viewList?.title != \'\'">\r\n <h4 class="card-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 class="col-md-6" *ngFor="let mi of ss?.mainInfo">\r\n <div class="row">\r\n <div class="col-md-6">\r\n <label class="label-control" translate> {{ mi.label }} </label>\r\n </div>\r\n <div *ngIf="viewInfoObjList[i] != undefined" class="col-md-6" [ngClass]="{ \'text-left\': mi.position == \'left\',\r\n \'text-right\': mi.position == \'right\', \'text-center\': mi.position == \'center\' }">\r\n <span *ngIf="mi.type == \'text\'">\r\n <label *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 *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}} </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 </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n</div>'}]}],u.ctorParameters=function(){return[{type:r.ActivatedRoute},{type:i.HttpClient}]},u.propDecorators={viewGenericObj:[{type:t.Input}],callback:[{type:t.Output}]},u);function u(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 v=(b.decorators=[{type:t.NgModule,args:[{declarations:[c],imports:[n.CommonModule,r.RouterModule,o.UcSubsectionModule],exports:[c]}]}],b);function b(){}e.UcviewgenericService=s,e.UcviewgenericComponent=c,e.UcviewgenericModule=v,Object.defineProperty(e,"__esModule",{value:!0})});
2
2
  //# sourceMappingURL=ucviewgeneric.umd.min.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["ng://ucviewgeneric/lib/ucviewgeneric.service.ts","ng://ucviewgeneric/lib/ucviewgeneric.component.ts","ng://ucviewgeneric/lib/ucviewgeneric.module.ts"],"names":["UcviewgenericService","Injectable","args","providedIn","UcviewgenericComponent","prototype","ngOnInit","console","log","this","initiateForm","_this","getJSON","viewInput","subscribe","data","viewList","viewInfoObjList","j","subsection","length","push","queryObj","i","querystring","whereValue","whereQuery","Object","values","getList","mainInfoPath","undefined","viewEnvironment","fullpath","mainInfoUrl","http","post","response","y","mainInfo","propertyList","concat","z","prefix","property","suffix","type","ddlEnvironments","name","isFullpath","environment","path","error","url","get","genAction","viewObj","param","arrList","callbackFunction","item","key","CBObj","ViewObj","Key","callback","emit","Component","selector","template","ActivatedRoute","HttpClient","Input","Output","route","Array","EventEmitter","queryParams","params","UcviewgenericModule","NgModule","declarations","imports","CommonModule","RouterModule","UcSubsectionModule","exports"],"mappings":"6gBAAA,IAAAA,uBAECC,EAAAA,WAAUC,KA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AP1C1B,KAAAgB,WAAa,GACbhB,KAAAsC,gBAAkC,IAAI4B,MACrClE,KAAAwD,SAA8B,IAAIW,EAAAA,aAC5CnE,KAAAO,SAAgB,GAKdP,KAAKiE,MAAMG,YAAY/D,UAAS,SAACgE,GAC/BnE,EAAKkB,QAAUiD,ICxBrB,IAAAC,uBAMCC,EAAAA,SAAQ9E,KAAA,CAAC,CACR+E,aAAc,CAAC7E,GACf8E,QAAS,CACPC,EAAAA,aACAC,EAAAA,aACAC,EAAAA,oBAEFC,QAAS,CAAClF,OAEuB2E,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","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\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() viewInput: string;\r\n @Input() viewEnvironment: string;\r\n @Input() whereValue = [];\r\n @Input() ddlEnvironments: Array<EnviObj> = new Array<EnviObj>();\r\n @Output() callback: EventEmitter<any> = new EventEmitter();\r\n viewList: any = \"\";\r\n getList: any;\r\n viewInfoObjList: any;\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.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.whereValue.length == 0) {\r\n this.viewList.subsection[i].querystring.whereQuery = Object.values(this.getList);\r\n } else {\r\n this.viewList.subsection[i].querystring.whereQuery = this.whereValue;\r\n }\r\n\r\n if (this.viewList.subsection[i].mainInfoPath != undefined && this.viewList.subsection[i].mainInfoPath != \"\") {\r\n if (this.viewEnvironment != undefined && this.viewEnvironment != \"\") {\r\n this.viewList.subsection[i].fullpath = this.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.ddlEnvironments != undefined && this.ddlEnvironments.length != 0) {\r\n for (let z = 0; z < this.ddlEnvironments.length; z++) {\r\n if (this.viewList.subsection[i].mainInfo[y].name == this.ddlEnvironments[z].name) {\r\n this.viewList.subsection[i].mainInfo[y].isFullpath = true;\r\n this.viewList.subsection[i].mainInfo[y].fullpath = this.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 },\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.viewEnvironment != undefined && this.viewEnvironment != \"\") {\r\n this.viewList.subsection[i].fullpath = this.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 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","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://ucviewgeneric/lib/ucviewgeneric.service.ts","ng://ucviewgeneric/lib/model/UcViewGenericObj.model.ts","ng://ucviewgeneric/lib/ucviewgeneric.component.ts","ng://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","Component","selector","template","ActivatedRoute","HttpClient","Input","Output","route","EventEmitter","queryParams","params","UcviewgenericModule","NgModule","declarations","imports","CommonModule","RouterModule","UcSubsectionModule","exports"],"mappings":"6gBAAA,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,SAAW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ACAC,EAAAA,sDAYNC,EAAAA,wBACAC,EAAAA,UA6IHzE,GAvIE,SAAAA,EAAoB0E,EAA+B/C,GAAnD,IAAArB,EAAAZ,KAAoBA,KAAAgF,MAAAA,EAA+BhF,KAAAiC,KAAAA,EAP1CjC,KAAAc,eAAmC,IAAIf,EACtCC,KAAAuE,SAA8B,IAAIU,EAAAA,aAC5CjF,KAAAiB,SAAgB,GAGhBjB,KAAAiD,SAAmB,EAGjBjD,KAAKgF,MAAME,YAAYnE,UAAS,SAACoE,GAC/BvE,EAAKgB,QAAUuD,ICvBrB,IAAAC,uBAMCC,EAAAA,SAAQxF,KAAA,CAAC,CACRyF,aAAc,CAAChF,GACfiF,QAAS,CACPC,EAAAA,aACAC,EAAAA,aACAC,EAAAA,oBAEFC,QAAS,CAACrF,OAEuB8E,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","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"]}
@@ -0,0 +1,46 @@
1
+ /**
2
+ * @fileoverview added by tsickle
3
+ * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
4
+ */
5
+ export class UcViewGenericObj {
6
+ constructor() {
7
+ this.viewInput = "";
8
+ this.viewEnvironment = "";
9
+ this.ddlEnvironments = new Array();
10
+ this.whereValue = new Array();
11
+ }
12
+ }
13
+ if (false) {
14
+ /** @type {?} */
15
+ UcViewGenericObj.prototype.viewInput;
16
+ /** @type {?} */
17
+ UcViewGenericObj.prototype.viewEnvironment;
18
+ /** @type {?} */
19
+ UcViewGenericObj.prototype.ddlEnvironments;
20
+ /** @type {?} */
21
+ UcViewGenericObj.prototype.whereValue;
22
+ }
23
+ export class EnviObj {
24
+ constructor() {
25
+ this.name = "";
26
+ this.environment = "";
27
+ }
28
+ }
29
+ if (false) {
30
+ /** @type {?} */
31
+ EnviObj.prototype.name;
32
+ /** @type {?} */
33
+ EnviObj.prototype.environment;
34
+ }
35
+ export class WhereValueObj {
36
+ constructor() {
37
+ this.property = "";
38
+ }
39
+ }
40
+ if (false) {
41
+ /** @type {?} */
42
+ WhereValueObj.prototype.property;
43
+ /** @type {?} */
44
+ WhereValueObj.prototype.value;
45
+ }
46
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiVWNWaWV3R2VuZXJpY09iai5tb2RlbC5qcyIsInNvdXJjZVJvb3QiOiJuZzovL3Vjdmlld2dlbmVyaWMvIiwic291cmNlcyI6WyJsaWIvbW9kZWwvVWNWaWV3R2VuZXJpY09iai5tb2RlbC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7O0FBQ0EsTUFBTSxPQUFPLGdCQUFnQjtJQU16QjtRQUNJLElBQUksQ0FBQyxTQUFTLEdBQUcsRUFBRSxDQUFDO1FBQ3BCLElBQUksQ0FBQyxlQUFlLEdBQUcsRUFBRSxDQUFDO1FBQzFCLElBQUksQ0FBQyxlQUFlLEdBQUcsSUFBSSxLQUFLLEVBQVcsQ0FBQztRQUM1QyxJQUFJL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