@adins/ucviewgeneric 3.1.2 → 3.2.0

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.
@@ -9,7 +9,9 @@ import * as i4 from 'ngx-cookie';
9
9
  import * as CryptoJS from 'crypto-js';
10
10
  import * as i5 from '@adins/uc-subsection';
11
11
  import { UcSubsectionModule } from '@adins/uc-subsection';
12
- import * as i6 from '@angular/common';
12
+ import * as i6 from '@adins/ucgridview';
13
+ import { UcgridviewModule } from '@adins/ucgridview';
14
+ import * as i7 from '@angular/common';
13
15
  import { CommonModule } from '@angular/common';
14
16
 
15
17
  class UcviewgenericService {
@@ -53,6 +55,37 @@ class EnvisObj {
53
55
  }
54
56
  }
55
57
 
58
+ class GridViewObj {
59
+ constructor() {
60
+ this.gridViews = [];
61
+ }
62
+ }
63
+ class GridViewInput {
64
+ }
65
+
66
+ class InputGridObj {
67
+ constructor() {
68
+ this.apiUrl = "";
69
+ this.deleteUrl = "";
70
+ this.pageNow = 0;
71
+ this.pageSize = 0;
72
+ this.pagingJson = "";
73
+ this.switchValue = new Array();
74
+ this.addGridList = new Array();
75
+ }
76
+ }
77
+ class SwitchValueObj {
78
+ constructor() {
79
+ this.property = "";
80
+ }
81
+ }
82
+ class InputAddGridObj {
83
+ constructor() {
84
+ this.AddGridLabel = "";
85
+ this.AddGridProperty = "";
86
+ }
87
+ }
88
+
56
89
  class UcviewgenericComponent {
57
90
  constructor(route, http, translateService, cookieService) {
58
91
  this.route = route;
@@ -60,16 +93,18 @@ class UcviewgenericComponent {
60
93
  this.translateService = translateService;
61
94
  this.cookieService = cookieService;
62
95
  this.viewGenericObj = new UcViewGenericObj();
96
+ this.gridViewObj = new GridViewObj();
63
97
  this.callback = new EventEmitter();
64
98
  this.UserAccess = JSON.parse(this.GetCookie(this.cookieService, "UserAccess"));
99
+ this.inputGridViewObjs = new Array();
65
100
  this.viewList = "";
66
101
  this.isReady = false;
67
102
  this.IsCard = true;
68
- this.route.queryParams.subscribe(params => {
103
+ this.route.queryParams.subscribe((params) => {
69
104
  this.getList = params;
70
105
  });
71
- this.translateService.setDefaultLang('en');
72
- this.translateService.use(localStorage.getItem('lang') || 'en');
106
+ this.translateService.setDefaultLang("en");
107
+ this.translateService.use(localStorage.getItem("lang") || "en");
73
108
  }
74
109
  ngOnInit() {
75
110
  console.log("viewgeneric");
@@ -77,18 +112,55 @@ class UcviewgenericComponent {
77
112
  this.CheckIsCard();
78
113
  }
79
114
  CheckIsCard() {
80
- if (this.viewGenericObj.IsCard == undefined || this.viewGenericObj.IsCard == null)
115
+ if (this.viewGenericObj.IsCard == undefined ||
116
+ this.viewGenericObj.IsCard == null)
81
117
  return;
82
118
  this.IsCard = this.viewGenericObj.IsCard;
83
119
  }
84
120
  initiateForm() {
85
- if (this.viewGenericObj.dataInput !== undefined && Object.keys(this.viewGenericObj.dataInput).length !== 0) {
121
+ if (this.viewGenericObj.dataInput !== undefined &&
122
+ Object.keys(this.viewGenericObj.dataInput).length !== 0) {
86
123
  this.setConfiguration({ ...this.viewGenericObj.dataInput });
87
124
  return;
88
125
  }
89
- this.getJSON(this.viewGenericObj.viewInput).subscribe(data => {
126
+ this.getJSON(this.viewGenericObj.viewInput).subscribe((data) => {
90
127
  this.setConfiguration(data);
91
128
  });
129
+ this.initializeGridViews();
130
+ }
131
+ initializeGridViews() {
132
+ if (this.gridViewObj && this.gridViewObj.gridViews.length > 0) {
133
+ this.gridViewObj.gridViews.map(async (gridView) => {
134
+ const inputGridObj = new InputGridObj();
135
+ inputGridObj.dataInput = gridView.tableInput;
136
+ inputGridObj.resultData = { Data: [] };
137
+ await this.GetGridViewData(gridView.getData, inputGridObj);
138
+ this.inputGridViewObjs.push(inputGridObj);
139
+ });
140
+ }
141
+ }
142
+ getEnvironment(envi) {
143
+ const filteredEnvis = this.viewGenericObj.listEnvironments.filter((v) => v.environment == envi);
144
+ return filteredEnvis.length > 0 ? filteredEnvis[0] : null;
145
+ }
146
+ async GetGridViewData(meta, inputGridObj) {
147
+ let templListData = [];
148
+ const enviUrl = meta.environment && this.getEnvironment(meta.environment);
149
+ await this.http
150
+ .post(enviUrl ? enviUrl.url + meta.apiPath : meta.apiPath, meta.reqObj)
151
+ .toPromise()
152
+ .then((response) => {
153
+ templListData = response[meta.customObjName || "ReturnObject"];
154
+ inputGridObj.apiUrl = meta.apiPath;
155
+ inputGridObj.resultData["Data"] = new Array();
156
+ inputGridObj.resultData.Data = templListData;
157
+ })
158
+ .catch((error) => {
159
+ console.log(error);
160
+ });
161
+ }
162
+ gridEvent(ev) {
163
+ this.callbackFunction(ev.RowObj, ev.Key);
92
164
  }
93
165
  setConfiguration(data) {
94
166
  this.viewList = data;
@@ -97,36 +169,53 @@ class UcviewgenericComponent {
97
169
  this.viewInfoObjList.push(j);
98
170
  }
99
171
  for (let i = 0; i < this.viewList.subsection.length; i++) {
100
- if (this.viewList.subsection[i].querystring != null) {
172
+ if (this.viewList.subsection[i].querystring != null &&
173
+ this.viewList.subsection[i].querystring.name != "") {
101
174
  let queryObj;
102
175
  if (this.viewGenericObj.whereValue.length == 0) {
103
- this.viewList.subsection[i].querystring.whereQuery = Object.values(this.getList);
176
+ this.viewList.subsection[i].querystring.whereQuery = (Object).values(this.getList);
104
177
  }
105
178
  else {
106
- this.viewList.subsection[i].querystring.whereQuery = this.viewGenericObj.whereValue;
179
+ this.viewList.subsection[i].querystring.whereQuery =
180
+ this.viewGenericObj.whereValue;
107
181
  }
108
- if (this.viewList.subsection[i].mainInfoPath != undefined && this.viewList.subsection[i].mainInfoPath != "") {
109
- if (this.viewGenericObj.viewEnvironment != undefined && this.viewGenericObj.viewEnvironment != "") {
110
- this.viewList.subsection[i].fullpath = this.viewGenericObj.viewEnvironment + this.viewList.subsection[i].mainInfoPath;
182
+ if (this.viewList.subsection[i].mainInfoPath != undefined &&
183
+ this.viewList.subsection[i].mainInfoPath != "") {
184
+ if (this.viewGenericObj.viewEnvironment != undefined &&
185
+ this.viewGenericObj.viewEnvironment != "") {
186
+ this.viewList.subsection[i].fullpath =
187
+ this.viewGenericObj.viewEnvironment +
188
+ this.viewList.subsection[i].mainInfoPath;
111
189
  }
112
190
  else {
113
- this.viewList.subsection[i].fullpath = this.viewList.subsection[i].mainInfoUrl;
191
+ this.viewList.subsection[i].fullpath =
192
+ this.viewList.subsection[i].mainInfoUrl;
114
193
  }
115
194
  }
116
195
  else {
117
- this.viewList.subsection[i].fullpath = this.viewList.subsection[i].mainInfoUrl;
196
+ this.viewList.subsection[i].fullpath =
197
+ this.viewList.subsection[i].mainInfoUrl;
118
198
  }
119
199
  queryObj = {
120
- querystring: this.viewList.subsection[i].querystring
200
+ querystring: this.viewList.subsection[i].querystring,
121
201
  };
122
- this.http.post(this.viewList.subsection[i].fullpath, queryObj).subscribe((response) => {
202
+ this.http
203
+ .post(this.viewList.subsection[i].fullpath, queryObj)
204
+ .subscribe((response) => {
123
205
  this.viewInfoObjList[i] = response["Data"][0];
124
206
  for (let y = 0; y < this.viewList.subsection[i].mainInfo.length; y++) {
125
- if (this.viewList.subsection[i].mainInfo[y].propertyList != undefined && this.viewList.subsection[i].mainInfo[y].propertyList.length != 0) {
207
+ if (this.viewList.subsection[i].mainInfo[y].propertyList !=
208
+ undefined &&
209
+ this.viewList.subsection[i].mainInfo[y].propertyList.length !=
210
+ 0) {
126
211
  const propertyList = this.viewList.subsection[i].mainInfo[y].propertyList;
127
212
  let concat = "";
128
213
  for (let z = 0; z < propertyList.length; z++) {
129
- concat = concat + propertyList[z].prefix + this.viewInfoObjList[i][propertyList[z].property] + propertyList[z].suffix;
214
+ concat =
215
+ concat +
216
+ propertyList[z].prefix +
217
+ this.viewInfoObjList[i][propertyList[z].property] +
218
+ propertyList[z].suffix;
130
219
  }
131
220
  this.viewList.subsection[i].mainInfo[y].concat = concat;
132
221
  }
@@ -134,64 +223,103 @@ class UcviewgenericComponent {
134
223
  if (this.viewList.subsection[i].mainInfo[y].type == "switch") {
135
224
  for (let z = 0; z < this.viewList.subsection[i].mainInfo[y].case.length; z++) {
136
225
  let Empty = new Array();
137
- this.viewList.subsection[i].mainInfo[y].case[z].Hidden = false;
226
+ this.viewList.subsection[i].mainInfo[y].case[z].Hidden =
227
+ false;
138
228
  //check hideIfEmpty
139
- if (this.viewList.subsection[i].mainInfo[y].case[z].result.hideIfEmpty != undefined && this.viewList.subsection[i].mainInfo[y].case[z].result.hideIfEmpty != null) {
140
- if (this.viewList.subsection[i].mainInfo[y].case[z].result.type != "concat") {
141
- Empty.push(this.viewInfoObjList[i][this.viewList.subsection[i].mainInfo[y].case[z].result.property] != undefined
142
- && this.viewInfoObjList[i][this.viewList.subsection[i].mainInfo[y].case[z].result.property] != null
143
- && this.viewInfoObjList[i][this.viewList.subsection[i].mainInfo[y].case[z].result.property] != "" ? false : true);
229
+ if (this.viewList.subsection[i].mainInfo[y].case[z].result
230
+ .hideIfEmpty != undefined &&
231
+ this.viewList.subsection[i].mainInfo[y].case[z].result
232
+ .hideIfEmpty != null) {
233
+ if (this.viewList.subsection[i].mainInfo[y].case[z].result
234
+ .type != "concat") {
235
+ Empty.push(this.viewInfoObjList[i][this.viewList.subsection[i].mainInfo[y].case[z]
236
+ .result.property] != undefined &&
237
+ this.viewInfoObjList[i][this.viewList.subsection[i].mainInfo[y].case[z]
238
+ .result.property] != null &&
239
+ this.viewInfoObjList[i][this.viewList.subsection[i].mainInfo[y].case[z]
240
+ .result.property] != ""
241
+ ? false
242
+ : true);
144
243
  }
145
- else { // type concat
146
- if (this.viewList.subsection[i].mainInfo[y].case[z].result.propertyList != undefined && this.viewList.subsection[i].mainInfo[y].case[z].result.propertyList.length != 0) {
147
- const propertyList = this.viewList.subsection[i].mainInfo[y].case[z].result.propertyList;
244
+ else {
245
+ // type concat
246
+ if (this.viewList.subsection[i].mainInfo[y].case[z].result
247
+ .propertyList != undefined &&
248
+ this.viewList.subsection[i].mainInfo[y].case[z].result
249
+ .propertyList.length != 0) {
250
+ const propertyList = this.viewList.subsection[i].mainInfo[y].case[z]
251
+ .result.propertyList;
148
252
  let concat = "";
149
253
  for (let a = 0; a < propertyList.length; a++) {
150
- concat = concat + propertyList[a].prefix + this.viewInfoObjList[i][propertyList[a].property] + propertyList[a].suffix;
151
- Empty.push(this.viewInfoObjList[i][propertyList[a].property] != undefined
152
- && this.viewInfoObjList[i][propertyList[a].property] != null
153
- && this.viewInfoObjList[i][propertyList[a].property] != "" ? false : true);
254
+ concat =
255
+ concat +
256
+ propertyList[a].prefix +
257
+ this.viewInfoObjList[i][propertyList[a].property] +
258
+ propertyList[a].suffix;
259
+ Empty.push(this.viewInfoObjList[i][propertyList[a].property] != undefined &&
260
+ this.viewInfoObjList[i][propertyList[a].property] != null &&
261
+ this.viewInfoObjList[i][propertyList[a].property] != ""
262
+ ? false
263
+ : true);
154
264
  }
155
265
  this.viewList.subsection[i].mainInfo[y].case[z].result.concat = concat;
156
266
  }
157
267
  }
158
- if (Empty.includes(true) && this.viewList.subsection[i].mainInfo[y].case[z].result.hideIfEmpty) {
159
- this.viewList.subsection[i].mainInfo[y].case[z].Hidden = true;
268
+ if (Empty.includes(true) &&
269
+ this.viewList.subsection[i].mainInfo[y].case[z].result
270
+ .hideIfEmpty) {
271
+ this.viewList.subsection[i].mainInfo[y].case[z].Hidden =
272
+ true;
160
273
  this.viewList.subsection[i].mainInfo[y].isHide = true;
161
274
  }
162
275
  }
163
276
  else {
164
277
  //concat
165
- if (this.viewList.subsection[i].mainInfo[y].case[z].result.propertyList != undefined && this.viewList.subsection[i].mainInfo[y].case[z].result.propertyList.length != 0) {
166
- const propertyList = this.viewList.subsection[i].mainInfo[y].case[z].result.propertyList;
278
+ if (this.viewList.subsection[i].mainInfo[y].case[z].result
279
+ .propertyList != undefined &&
280
+ this.viewList.subsection[i].mainInfo[y].case[z].result
281
+ .propertyList.length != 0) {
282
+ const propertyList = this.viewList.subsection[i].mainInfo[y].case[z].result
283
+ .propertyList;
167
284
  let concat = "";
168
285
  for (let a = 0; a < propertyList.length; a++) {
169
- concat = concat + propertyList[a].prefix + this.viewInfoObjList[i][propertyList[a].property] + propertyList[a].suffix;
286
+ concat =
287
+ concat +
288
+ propertyList[a].prefix +
289
+ this.viewInfoObjList[i][propertyList[a].property] +
290
+ propertyList[a].suffix;
170
291
  }
171
292
  this.viewList.subsection[i].mainInfo[y].case[z].result.concat = concat;
172
293
  }
173
294
  }
174
295
  }
175
296
  }
176
- if (this.viewList.subsection[i].mainInfo[y].type == "link" && (this.viewGenericObj.navigationConst != undefined || this.viewGenericObj.navigationConst != null)) {
297
+ if (this.viewList.subsection[i].mainInfo[y].type == "link" &&
298
+ (this.viewGenericObj.navigationConst != undefined ||
299
+ this.viewGenericObj.navigationConst != null)) {
177
300
  let tempLink = this.viewGenericObj.navigationConst[this.viewList.subsection[i].mainInfo[y].path];
178
301
  if (tempLink != undefined && tempLink != null) {
179
302
  this.viewList.subsection[i].mainInfo[y].path = tempLink;
180
303
  }
181
304
  }
182
- if (this.viewList.subsection[i].mainInfo[y].type == "link"
183
- && this.viewGenericObj.listEnvironments != undefined && this.viewGenericObj.listEnvironments.length != 0) {
305
+ if (this.viewList.subsection[i].mainInfo[y].type == "link" &&
306
+ this.viewGenericObj.listEnvironments != undefined &&
307
+ this.viewGenericObj.listEnvironments.length != 0) {
184
308
  for (let z = 0; z < this.viewGenericObj.listEnvironments.length; z++) {
185
- if (this.viewList.subsection[i].mainInfo[y].environment == this.viewGenericObj.listEnvironments[z].environment) {
309
+ if (this.viewList.subsection[i].mainInfo[y].environment ==
310
+ this.viewGenericObj.listEnvironments[z].environment) {
186
311
  this.viewList.subsection[i].mainInfo[y].isFullpath = true;
187
- this.viewList.subsection[i].mainInfo[y].fullpath = this.viewGenericObj.listEnvironments[z].url + this.viewList.subsection[i].mainInfo[y].path;
312
+ this.viewList.subsection[i].mainInfo[y].fullpath =
313
+ this.viewGenericObj.listEnvironments[z].url +
314
+ this.viewList.subsection[i].mainInfo[y].path;
188
315
  break;
189
316
  }
190
317
  }
191
318
  }
192
319
  else if (this.viewList.subsection[i].mainInfo[y].type == "link") {
193
320
  this.viewList.subsection[i].mainInfo[y].isFullpath = false;
194
- this.viewList.subsection[i].mainInfo[y].fullpath = this.viewList.subsection[i].mainInfo[y].path;
321
+ this.viewList.subsection[i].mainInfo[y].fullpath =
322
+ this.viewList.subsection[i].mainInfo[y].path;
195
323
  }
196
324
  }
197
325
  this.isReady = true;
@@ -200,24 +328,34 @@ class UcviewgenericComponent {
200
328
  });
201
329
  }
202
330
  else {
203
- if (this.viewList.subsection[i].mainInfoPath != undefined && this.viewList.subsection[i].mainInfoPath != "") {
204
- if (this.viewList.subsection[i].environment != undefined && this.viewList.subsection[i].mainInfoPath != "") {
331
+ if (this.viewList.subsection[i].mainInfoPath != undefined &&
332
+ this.viewList.subsection[i].mainInfoPath != "") {
333
+ if (this.viewList.subsection[i].environment != undefined &&
334
+ this.viewList.subsection[i].mainInfoPath != "") {
205
335
  for (let z = 0; z < this.viewGenericObj.listEnvironments.length; z++) {
206
- if (this.viewList.subsection[i].environment == this.viewGenericObj.listEnvironments[z].environment) {
207
- this.viewList.subsection[i].fullpath = this.viewGenericObj.listEnvironments[z].url + this.viewList.subsection[i].mainInfoPath;
336
+ if (this.viewList.subsection[i].environment ==
337
+ this.viewGenericObj.listEnvironments[z].environment) {
338
+ this.viewList.subsection[i].fullpath =
339
+ this.viewGenericObj.listEnvironments[z].url +
340
+ this.viewList.subsection[i].mainInfoPath;
208
341
  break;
209
342
  }
210
343
  }
211
344
  }
212
- else if (this.viewGenericObj.viewEnvironment != undefined && this.viewGenericObj.viewEnvironment != "") {
213
- this.viewList.subsection[i].fullpath = this.viewGenericObj.viewEnvironment + this.viewList.subsection[i].mainInfoPath;
345
+ else if (this.viewGenericObj.viewEnvironment != undefined &&
346
+ this.viewGenericObj.viewEnvironment != "") {
347
+ this.viewList.subsection[i].fullpath =
348
+ this.viewGenericObj.viewEnvironment +
349
+ this.viewList.subsection[i].mainInfoPath;
214
350
  }
215
351
  else {
216
- this.viewList.subsection[i].fullpath = this.viewList.subsection[i].mainInfoUrl;
352
+ this.viewList.subsection[i].fullpath =
353
+ this.viewList.subsection[i].mainInfoUrl;
217
354
  }
218
355
  }
219
356
  else {
220
- this.viewList.subsection[i].fullpath = this.viewList.subsection[i].mainInfoUrl;
357
+ this.viewList.subsection[i].fullpath =
358
+ this.viewList.subsection[i].mainInfoUrl;
221
359
  }
222
360
  const reqObj = this.viewList.subsection[i].reqObj ?? this.getList;
223
361
  if (this.viewList.subsection[i].reqObj !== undefined) {
@@ -226,11 +364,13 @@ class UcviewgenericComponent {
226
364
  }
227
365
  }
228
366
  this.http.post(this.viewList.subsection[i].fullpath, reqObj).subscribe((response) => {
229
- if (this.viewList.subsection[i].resObjName === undefined || this.viewList.subsection[i].resObjName === "") {
367
+ if (this.viewList.subsection[i].resObjName === undefined ||
368
+ this.viewList.subsection[i].resObjName === "") {
230
369
  this.viewInfoObjList[i] = response;
231
370
  }
232
371
  else {
233
- this.viewInfoObjList[i] = response[this.viewList.subsection[i].resObjName];
372
+ this.viewInfoObjList[i] =
373
+ response[this.viewList.subsection[i].resObjName];
234
374
  }
235
375
  this.isReady = true;
236
376
  }, (error) => {
@@ -244,24 +384,29 @@ class UcviewgenericComponent {
244
384
  }
245
385
  GetCookie(cookieService, key) {
246
386
  let value = cookieService.get(key);
247
- if (value == undefined || value.trim() == '')
387
+ if (value == undefined || value.trim() == "")
248
388
  return null;
249
389
  return this.DecryptString(value, "AdInsFOU12345678");
250
390
  }
251
391
  DecryptString(chipperText, chipperKey) {
252
- if (chipperKey == undefined || chipperKey.trim() == '' ||
253
- chipperText == undefined || chipperText.trim() == '')
392
+ if (chipperKey == undefined ||
393
+ chipperKey.trim() == "" ||
394
+ chipperText == undefined ||
395
+ chipperText.trim() == "")
254
396
  return chipperText;
255
397
  let chipperKeyArr = CryptoJS.enc.Utf8.parse(chipperKey);
256
398
  let iv = CryptoJS.lib.WordArray.create([0x00, 0x00, 0x00, 0x00]);
257
- let decrypted = CryptoJS.AES.decrypt(chipperText, chipperKeyArr, { iv: iv });
399
+ let decrypted = CryptoJS.AES.decrypt(chipperText, chipperKeyArr, {
400
+ iv: iv,
401
+ });
258
402
  let plainText = decrypted.toString(CryptoJS.enc.Utf8);
259
403
  return plainText;
260
404
  }
261
405
  genAction(viewObj, param) {
262
406
  let arrList = {};
263
407
  for (let i = 0; i < param.length; i++) {
264
- if (viewObj[param[i].type] != undefined || viewObj[param[i].property] != undefined) {
408
+ if (viewObj[param[i].type] != undefined ||
409
+ viewObj[param[i].property] != undefined) {
265
410
  arrList[param[i].type] = viewObj[param[i].property];
266
411
  }
267
412
  else {
@@ -272,7 +417,8 @@ class UcviewgenericComponent {
272
417
  }
273
418
  genRouterLink(urlLink) {
274
419
  let tempLink = urlLink;
275
- if (this.viewGenericObj.navigationConst != undefined && this.viewGenericObj.navigationConst[urlLink] != null) {
420
+ if (this.viewGenericObj.navigationConst != undefined &&
421
+ this.viewGenericObj.navigationConst[urlLink] != null) {
276
422
  tempLink = this.viewGenericObj.navigationConst[urlLink];
277
423
  }
278
424
  return tempLink;
@@ -293,7 +439,7 @@ class UcviewgenericComponent {
293
439
  callbackFunction(item, key = "") {
294
440
  let CBObj = {
295
441
  ViewObj: item,
296
- Key: key
442
+ Key: key,
297
443
  };
298
444
  this.callback.emit(CBObj);
299
445
  }
@@ -304,7 +450,8 @@ class UcviewgenericComponent {
304
450
  for (let i = 0; i < condList.conditions.length; i++) {
305
451
  if (condList.conditions[i].restriction == "EQ") {
306
452
  if (condList.conditions[i].isUser != true) {
307
- if (item[condList.conditions[i].property] == condList.conditions[i].value) {
453
+ if (item[condList.conditions[i].property] ==
454
+ condList.conditions[i].value) {
308
455
  condition = true;
309
456
  }
310
457
  else {
@@ -324,7 +471,8 @@ class UcviewgenericComponent {
324
471
  }
325
472
  else if (condList.conditions[i].restriction == "NEQ") {
326
473
  if (condList.conditions[i].isUser != true) {
327
- if (item[condList.conditions[i].property] != condList.conditions[i].value) {
474
+ if (item[condList.conditions[i].property] !=
475
+ condList.conditions[i].value) {
328
476
  condition = true;
329
477
  }
330
478
  else {
@@ -364,7 +512,8 @@ class UcviewgenericComponent {
364
512
  }
365
513
  else if (condList.conditions[i].restriction == "GTE") {
366
514
  if (condList.conditions[i].isUser != true) {
367
- if (item[condList.conditions[i].property] >= condList.conditions[i].value) {
515
+ if (item[condList.conditions[i].property] >=
516
+ condList.conditions[i].value) {
368
517
  condition = true;
369
518
  }
370
519
  else {
@@ -404,7 +553,8 @@ class UcviewgenericComponent {
404
553
  }
405
554
  else if (condList.conditions[i].restriction == "LTE") {
406
555
  if (condList.conditions[i].isUser != true) {
407
- if (item[condList.conditions[i].property] <= condList.conditions[i].value) {
556
+ if (item[condList.conditions[i].property] <=
557
+ condList.conditions[i].value) {
408
558
  condition = true;
409
559
  }
410
560
  else {
@@ -424,7 +574,7 @@ class UcviewgenericComponent {
424
574
  }
425
575
  else if (condList.conditions[i].restriction == "IN") {
426
576
  if (condList.conditions[i].isUser != true) {
427
- if (condList.conditions[i].value.findIndex(x => x == item[condList.conditions[i].property]) >= 0) {
577
+ if (condList.conditions[i].value.findIndex((x) => x == item[condList.conditions[i].property]) >= 0) {
428
578
  condition = true;
429
579
  }
430
580
  else {
@@ -433,7 +583,7 @@ class UcviewgenericComponent {
433
583
  }
434
584
  }
435
585
  else {
436
- if (condList.conditions[i].value.findIndex(x => x == this.UserAccess["UserName"]) >= 0) {
586
+ if (condList.conditions[i].value.findIndex((x) => x == this.UserAccess["UserName"]) >= 0) {
437
587
  condition = true;
438
588
  }
439
589
  else {
@@ -444,7 +594,7 @@ class UcviewgenericComponent {
444
594
  }
445
595
  else if (condList.conditions[i].restriction == "NIN") {
446
596
  if (condList.conditions[i].isUser != true) {
447
- if (condList.conditions[i].value.findIndex(x => x == item[condList.conditions[i].property]) == -1) {
597
+ if (condList.conditions[i].value.findIndex((x) => x == item[condList.conditions[i].property]) == -1) {
448
598
  condition = true;
449
599
  }
450
600
  else {
@@ -453,7 +603,7 @@ class UcviewgenericComponent {
453
603
  }
454
604
  }
455
605
  else {
456
- if (condList.conditions[i].value.findIndex(x => x == this.UserAccess["UserName"]) == -1) {
606
+ if (condList.conditions[i].value.findIndex((x) => x == this.UserAccess["UserName"]) == -1) {
457
607
  condition = true;
458
608
  }
459
609
  else {
@@ -467,12 +617,14 @@ class UcviewgenericComponent {
467
617
  }
468
618
  }
469
619
  /** @nocollapse */ UcviewgenericComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: UcviewgenericComponent, deps: [{ token: i1.ActivatedRoute }, { token: i2.HttpClient }, { token: i3.TranslateService }, { token: i4.CookieService }], target: i0.ɵɵFactoryTarget.Component });
470
- /** @nocollapse */ UcviewgenericComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: UcviewgenericComponent, selector: "lib-ucviewgeneric", inputs: { viewGenericObj: "viewGenericObj" }, outputs: { callback: "callback" }, ngImport: i0, template: "<section id=\"horizontal-form-layouts\">\r\n <div class=\"row text-left\">\r\n <div class=\"col-md-12\">\r\n <div [ngClass]=\"IsCard ? '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\"\r\n [ngClass]=\"mi.customClassLabel != undefined ? mi.customClassLabel : ''\" translate>{{mi.label}}</label>\r\n </div>\r\n <div class=\"col-md-6\" *ngIf=\"mi.type == 'switch'\">\r\n <div *ngFor=\"let case of mi?.case\">\r\n <div *ngIf=\"switchCase(viewInfoObjList[i],case)\">\r\n <label class=\"label-control\"\r\n [ngClass]=\"mi.customClassLabel != undefined ? mi.customClassLabel : ''\" translate>{{case.result.label}}</label>\r\n </div>\r\n </div>\r\n </div>\r\n <div *ngIf=\"viewInfoObjList[i] != undefined\" class=\"col-md-6\" [ngClass]=\"{ 'text-left': mi.position == 'left',\r\n 'text-right': mi.position == 'right', 'text-center': mi.position == 'center' }\">\r\n <span\r\n *ngIf=\"(mi.type == 'boolean' && viewInfoObjList[i][mi.property] != null) || (viewInfoObjList[i][mi.property] != '' && viewInfoObjList[i][mi.property] != null) || mi.type == 'switch' || mi.type =='concat'; then nonEmptyLabel else emptyLabel\"></span>\r\n <ng-template #emptyLabel>\r\n <label class=\"label-control\"\r\n [ngClass]=\"mi.customClassProperty != undefined ? mi.customClassProperty : ''\"\r\n 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 breakword\"\r\n [ngClass]=\"mi.customClassProperty != undefined ? mi.customClassProperty : ''\" translate>\r\n {{ 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\"\r\n [ngClass]=\"mi.customClassProperty != undefined ? mi.customClassProperty : ''\" translate>-\r\n </label>\r\n </span>\r\n <label *ngIf=\"mi.type == 'currency'\" class=\"label-control\"\r\n [ngClass]=\"mi.customClassProperty != undefined ? mi.customClassProperty : ''\" translate>\r\n {{ viewInfoObjList[i][mi.property] | number: mi?.precision ? mi?.precision : '0.2' :'en-US'}} <span *ngIf=\"mi?.IsPrcnt\">&nbsp;%</span> </label>\r\n <label *ngIf=\"mi.type == 'date'\" class=\"label-control\"\r\n [ngClass]=\"mi.customClassProperty != undefined ? mi.customClassProperty : ''\" translate>\r\n {{ viewInfoObjList[i][mi.property] | date: (mi?.dateFormat) ? mi?.dateFormat : 'dd-MMM-yyyy'}} </label>\r\n <label *ngIf=\"mi.type == 'link'\" class=\"label-control\"\r\n [ngClass]=\"mi.customClassProperty != undefined ? mi.customClassProperty : ''\" translate>\r\n <a *ngIf=\"!mi?.isFullpath\" [routerLink]=\"genRouterLink(mi.path)\" [target]=\"mi.target\"\r\n [queryParams]=\"genAction(viewInfoObjList[i], mi.param)\">\r\n <span *ngIf=\"(mi.isCurrency != undefined && mi.isCurrency)\">{{\r\n viewInfoObjList[i][mi.property] | number:'.2':'en-US' }}</span>\r\n <span *ngIf=\"(mi.isCurrency == undefined || !mi.isCurrency)\">{{\r\n viewInfoObjList[i][mi.property] }}</span>\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 <span *ngIf=\"(mi.isCurrency != undefined && mi.isCurrency)\">{{\r\n viewInfoObjList[i][mi.property] | number:'.2':'en-US' }}</span>\r\n <span *ngIf=\"(mi.isCurrency == undefined || !mi.isCurrency)\">{{\r\n viewInfoObjList[i][mi.property] }}</span>\r\n </a>\r\n </label>\r\n <label *ngIf=\"mi.type == 'callback'\" class=\"label-control\"\r\n [ngClass]=\"mi.customClassProperty != undefined ? mi.customClassProperty : ''\" translate>\r\n <a href=\"javascript:void(0);\" (click)=\"callbackFunction(viewInfoObjList[i], mi.key)\">\r\n {{ viewInfoObjList[i][mi.property] }}\r\n </a>\r\n </label>\r\n <textarea *ngIf=\"mi.type == 'textarea'\" class=\"form-control\" readonly\r\n [ngClass]=\"mi.customClassProperty != undefined ? mi.customClassProperty : ''\"\r\n translate> {{ viewInfoObjList[i][mi.property] }} </textarea>\r\n <span *ngIf=\"mi.type == 'boolean'\"\r\n [ngClass]=\"mi.customClassProperty != undefined ? mi.customClassProperty : ''\" translate>\r\n <label *ngIf=\"viewInfoObjList[i][mi.property] == true\">Yes</label>\r\n <label *ngIf=\"viewInfoObjList[i][mi.property] == false\">No</label>\r\n <!-- <label\r\n *ngIf=\"viewInfoObjList[i][mi.property] == '' || viewInfoObjList[i][mi.property] == null\">-</label> -->\r\n </span>\r\n <span *ngIf=\"mi.type == 'concat'\">\r\n <label class=\"label-control breakword\"\r\n [ngClass]=\"mi.customClassProperty != undefined ? mi.customClassProperty : ''\" translate>\r\n {{ 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) && !cs.Hidden\">\r\n <span class=\"label-control breakword\"\r\n [ngClass]=\"mi.customClassProperty != undefined ? mi.customClassProperty : ''\"\r\n translate *ngIf=\"cs.result.type == 'text'\">{{ viewInfoObjList[i][cs.result.property]\r\n }}\r\n </span>\r\n <span [ngClass]=\"mi.customClassProperty != undefined ? mi.customClassProperty : ''\"\r\n translate *ngIf=\"cs.result.type == 'decimal'\">{{\r\n viewInfoObjList[i][cs.result.property] | number:'.2':'en-US' }}</span>\r\n <span [ngClass]=\"mi.customClassProperty != undefined ? mi.customClassProperty : ''\"\r\n translate *ngIf=\"cs.result.type == 'date'\">{{ viewInfoObjList[i][cs.result.property] |\r\n date: 'dd-MMM-yyyy' }}\r\n </span>\r\n <span *ngIf=\"cs.result.type == 'link'\"\r\n [ngClass]=\"mi.customClassProperty != undefined ? mi.customClassProperty : ''\"\r\n translate>\r\n <a [target]=\"cs.result.target\" [routerLink]=\"genRouterLink(cs.result.path)\"\r\n [queryParams]=\"genAction(viewInfoObjList[i],cs.result.param)\">\r\n <span *ngIf=\"(mi.isCurrency != undefined && mi.isCurrency)\">{{\r\n viewInfoObjList[i][cs.result.property] | number:'.2':'en-US' }}</span>\r\n <span *ngIf=\"(mi.isCurrency == undefined || !mi.isCurrency)\">{{\r\n viewInfoObjList[i][cs.result.property] }}</span>\r\n </a>\r\n </span>\r\n <span *ngIf=\"cs.result.type == 'boolean'\"\r\n [ngClass]=\"mi.customClassProperty != undefined ? mi.customClassProperty : ''\"\r\n translate>\r\n <span *ngIf=\"viewInfoObjList[i][cs.result.property] == 'true'\">Yes</span>\r\n <span *ngIf=\"viewInfoObjList[i][cs.result.property] == 'false'\">No</span>\r\n </span>\r\n <span *ngIf=\"cs.result.type == 'concat'\">\r\n <label class=\"label-control breakword\"\r\n [ngClass]=\"mi.customClassProperty != undefined ? mi.customClassProperty : ''\" translate>\r\n {{ cs.result.concat }}\r\n </label>\r\n </span>\r\n <span *ngIf=\"cs.result.type == 'callback'\">\r\n <span\r\n *ngIf=\"cs.result.isText != undefined && cs.result.isText; then textCallback else iconCallback\"></span>\r\n <ng-template #textCallback>\r\n <span>\r\n <a href=\"javascript:void(0);\" (click)=\"callbackFunction(viewInfoObjList[i], cs.result.key)\">{{\r\n viewInfoObjList[i][cs.result.property] }}</a>\r\n </span>\r\n </ng-template>\r\n <ng-template #iconCallback>\r\n <span>\r\n <a [ngClass]=\"[cs.result.tooltip != undefined && cs.result.tooltip != '' ? 'tooltips' : '', cs.result.anchor == undefined || cs.result.anchor == '' ? 'success p-0' : cs.result.anchor]\"\r\n (click)=\"callbackFunction(viewInfoObjList[i], cs.result.key)\">\r\n <i class=\"font-medium-3 mr-2\"\r\n [ngClass]=\" cs.result.icon == undefined || cs.result.icon == '' ? 'ft-edit-2' : cs.result.icon \">\r\n </i>\r\n <span *ngIf=\"cs.result.tooltip != undefined && cs.result.tooltip != ''\"\r\n [ngClass]=\"cs.result.tooltip != undefined && cs.result.tooltip != '' ? 'tooltipstext' : ''\">\r\n {{cs.result.tooltip}}\r\n </span>\r\n </a>\r\n </span>\r\n </ng-template>\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>", components: [{ type: i5.UcSubsectionComponent, selector: "lib-ucSubsection", inputs: ["title", "panel", "id"] }], directives: [{ type: i6.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i6.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i3.TranslateDirective, selector: "[translate],[ngx-translate]", inputs: ["translate", "translateParams"] }, { type: i6.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i1.RouterLinkWithHref, selector: "a[routerLink],area[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "preserveFragment", "skipLocationChange", "replaceUrl", "state", "relativeTo", "routerLink"] }], pipes: { "number": i6.DecimalPipe, "date": i6.DatePipe } });
620
+ /** @nocollapse */ UcviewgenericComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: UcviewgenericComponent, selector: "lib-ucviewgeneric", inputs: { viewGenericObj: "viewGenericObj", gridViewObj: "gridViewObj" }, outputs: { callback: "callback" }, ngImport: i0, template: "<section id=\"horizontal-form-layouts\">\r\n <div class=\"row text-left\">\r\n <div class=\"col-md-12\">\r\n <div [ngClass]=\"IsCard ? '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\"\r\n [ngClass]=\"mi.customClassLabel != undefined ? mi.customClassLabel : ''\" translate>{{mi.label}}</label>\r\n </div>\r\n <div class=\"col-md-6\" *ngIf=\"mi.type == 'switch'\">\r\n <div *ngFor=\"let case of mi?.case\">\r\n <div *ngIf=\"switchCase(viewInfoObjList[i],case)\">\r\n <label class=\"label-control\"\r\n [ngClass]=\"mi.customClassLabel != undefined ? mi.customClassLabel : ''\" translate>{{case.result.label}}</label>\r\n </div>\r\n </div>\r\n </div>\r\n <div *ngIf=\"viewInfoObjList[i] != undefined\" class=\"col-md-6\" [ngClass]=\"{ 'text-left': mi.position == 'left',\r\n 'text-right': mi.position == 'right', 'text-center': mi.position == 'center' }\">\r\n <span\r\n *ngIf=\"(mi.type == 'boolean' && viewInfoObjList[i][mi.property] != null) || (viewInfoObjList[i][mi.property] != '' && viewInfoObjList[i][mi.property] != null) || mi.type == 'switch' || mi.type =='concat'; then nonEmptyLabel else emptyLabel\"></span>\r\n <ng-template #emptyLabel>\r\n <label class=\"label-control\"\r\n [ngClass]=\"mi.customClassProperty != undefined ? mi.customClassProperty : ''\"\r\n 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 breakword\"\r\n [ngClass]=\"mi.customClassProperty != undefined ? mi.customClassProperty : ''\" translate>\r\n {{ 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\"\r\n [ngClass]=\"mi.customClassProperty != undefined ? mi.customClassProperty : ''\" translate>-\r\n </label>\r\n </span>\r\n <label *ngIf=\"mi.type == 'currency'\" class=\"label-control\"\r\n [ngClass]=\"mi.customClassProperty != undefined ? mi.customClassProperty : ''\" translate>\r\n {{ viewInfoObjList[i][mi.property] | number: mi?.precision ? mi?.precision : '0.2' :'en-US'}} <span *ngIf=\"mi?.IsPrcnt\">&nbsp;%</span> </label>\r\n <label *ngIf=\"mi.type == 'date'\" class=\"label-control\"\r\n [ngClass]=\"mi.customClassProperty != undefined ? mi.customClassProperty : ''\" translate>\r\n {{ viewInfoObjList[i][mi.property] | date: (mi?.dateFormat) ? mi?.dateFormat : 'dd-MMM-yyyy'}} </label>\r\n <label *ngIf=\"mi.type == 'link'\" class=\"label-control\"\r\n [ngClass]=\"mi.customClassProperty != undefined ? mi.customClassProperty : ''\" translate>\r\n <a *ngIf=\"!mi?.isFullpath\" [routerLink]=\"genRouterLink(mi.path)\" [target]=\"mi.target\"\r\n [queryParams]=\"genAction(viewInfoObjList[i], mi.param)\">\r\n <span *ngIf=\"(mi.isCurrency != undefined && mi.isCurrency)\">{{\r\n viewInfoObjList[i][mi.property] | number:'.2':'en-US' }}</span>\r\n <span *ngIf=\"(mi.isCurrency == undefined || !mi.isCurrency)\">{{\r\n viewInfoObjList[i][mi.property] }}</span>\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 <span *ngIf=\"(mi.isCurrency != undefined && mi.isCurrency)\">{{\r\n viewInfoObjList[i][mi.property] | number:'.2':'en-US' }}</span>\r\n <span *ngIf=\"(mi.isCurrency == undefined || !mi.isCurrency)\">{{\r\n viewInfoObjList[i][mi.property] }}</span>\r\n </a>\r\n </label>\r\n <label *ngIf=\"mi.type == 'callback'\" class=\"label-control\"\r\n [ngClass]=\"mi.customClassProperty != undefined ? mi.customClassProperty : ''\" translate>\r\n <a href=\"javascript:void(0);\" (click)=\"callbackFunction(viewInfoObjList[i], mi.key)\">\r\n {{ viewInfoObjList[i][mi.property] }}\r\n </a>\r\n </label>\r\n <textarea *ngIf=\"mi.type == 'textarea'\" class=\"form-control\" readonly\r\n [ngClass]=\"mi.customClassProperty != undefined ? mi.customClassProperty : ''\"\r\n translate> {{ viewInfoObjList[i][mi.property] }} </textarea>\r\n <span *ngIf=\"mi.type == 'boolean'\"\r\n [ngClass]=\"mi.customClassProperty != undefined ? mi.customClassProperty : ''\" translate>\r\n <label *ngIf=\"viewInfoObjList[i][mi.property] == true\">Yes</label>\r\n <label *ngIf=\"viewInfoObjList[i][mi.property] == false\">No</label>\r\n <!-- <label\r\n *ngIf=\"viewInfoObjList[i][mi.property] == '' || viewInfoObjList[i][mi.property] == null\">-</label> -->\r\n </span>\r\n <span *ngIf=\"mi.type == 'concat'\">\r\n <label class=\"label-control breakword\"\r\n [ngClass]=\"mi.customClassProperty != undefined ? mi.customClassProperty : ''\" translate>\r\n {{ 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) && !cs.Hidden\">\r\n <span class=\"label-control breakword\"\r\n [ngClass]=\"mi.customClassProperty != undefined ? mi.customClassProperty : ''\"\r\n translate *ngIf=\"cs.result.type == 'text'\">{{ viewInfoObjList[i][cs.result.property]\r\n }}\r\n </span>\r\n <span [ngClass]=\"mi.customClassProperty != undefined ? mi.customClassProperty : ''\"\r\n translate *ngIf=\"cs.result.type == 'decimal'\">{{\r\n viewInfoObjList[i][cs.result.property] | number:'.2':'en-US' }}</span>\r\n <span [ngClass]=\"mi.customClassProperty != undefined ? mi.customClassProperty : ''\"\r\n translate *ngIf=\"cs.result.type == 'date'\">{{ viewInfoObjList[i][cs.result.property] |\r\n date: 'dd-MMM-yyyy' }}\r\n </span>\r\n <span *ngIf=\"cs.result.type == 'link'\"\r\n [ngClass]=\"mi.customClassProperty != undefined ? mi.customClassProperty : ''\"\r\n translate>\r\n <a [target]=\"cs.result.target\" [routerLink]=\"genRouterLink(cs.result.path)\"\r\n [queryParams]=\"genAction(viewInfoObjList[i],cs.result.param)\">\r\n <span *ngIf=\"(mi.isCurrency != undefined && mi.isCurrency)\">{{\r\n viewInfoObjList[i][cs.result.property] | number:'.2':'en-US' }}</span>\r\n <span *ngIf=\"(mi.isCurrency == undefined || !mi.isCurrency)\">{{\r\n viewInfoObjList[i][cs.result.property] }}</span>\r\n </a>\r\n </span>\r\n <span *ngIf=\"cs.result.type == 'boolean'\"\r\n [ngClass]=\"mi.customClassProperty != undefined ? mi.customClassProperty : ''\"\r\n translate>\r\n <span *ngIf=\"viewInfoObjList[i][cs.result.property] == 'true'\">Yes</span>\r\n <span *ngIf=\"viewInfoObjList[i][cs.result.property] == 'false'\">No</span>\r\n </span>\r\n <span *ngIf=\"cs.result.type == 'concat'\">\r\n <label class=\"label-control breakword\"\r\n [ngClass]=\"mi.customClassProperty != undefined ? mi.customClassProperty : ''\" translate>\r\n {{ cs.result.concat }}\r\n </label>\r\n </span>\r\n <span *ngIf=\"cs.result.type == 'callback'\">\r\n <span\r\n *ngIf=\"cs.result.isText != undefined && cs.result.isText; then textCallback else iconCallback\"></span>\r\n <ng-template #textCallback>\r\n <span>\r\n <a href=\"javascript:void(0);\" (click)=\"callbackFunction(viewInfoObjList[i], cs.result.key)\">{{\r\n viewInfoObjList[i][cs.result.property] }}</a>\r\n </span>\r\n </ng-template>\r\n <ng-template #iconCallback>\r\n <span>\r\n <a [ngClass]=\"[cs.result.tooltip != undefined && cs.result.tooltip != '' ? 'tooltips' : '', cs.result.anchor == undefined || cs.result.anchor == '' ? 'success p-0' : cs.result.anchor]\"\r\n (click)=\"callbackFunction(viewInfoObjList[i], cs.result.key)\">\r\n <i class=\"font-medium-3 mr-2\"\r\n [ngClass]=\" cs.result.icon == undefined || cs.result.icon == '' ? 'ft-edit-2' : cs.result.icon \">\r\n </i>\r\n <span *ngIf=\"cs.result.tooltip != undefined && cs.result.tooltip != ''\"\r\n [ngClass]=\"cs.result.tooltip != undefined && cs.result.tooltip != '' ? 'tooltipstext' : ''\">\r\n {{cs.result.tooltip}}\r\n </span>\r\n </a>\r\n </span>\r\n </ng-template>\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 class=\"px-3 grid-view\" *ngIf=\"gridViewObj.gridViews.length > 0\">\r\n <div *ngFor=\"let gridView of inputGridViewObjs;let i = index\">\r\n <lib-ucSubsection\r\n *ngIf=\"gridViewObj.gridViews[i].subsection && gridViewObj.gridViews[i].subsection !== ''\"\r\n [id]=\"'grid-subsection-id'+i\"\r\n [title]=\"gridViewObj.gridViews[i].subsection\"\r\n [panel]=\"'grid-subsection-panel-'+i\">\r\n </lib-ucSubsection>\r\n <div class=\"form-body\" [id]=\"'grid-subsection-panel-'+i\">\r\n <lib-ucgridview [gridInput]=\"gridView\" (callback)=\"gridEvent($event)\" (isRefresh)=\"GetGridViewData(gridViewObj.gridViews[i], gridView)\"></lib-ucgridview>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n</section>\r\n", components: [{ type: i5.UcSubsectionComponent, selector: "lib-ucSubsection", inputs: ["title", "panel", "id"] }, { type: i6.UcgridviewComponent, selector: "lib-ucgridview", inputs: ["gridInput", "additionalObj"], outputs: ["output", "callback", "callbackCheckBox", "isRefresh"] }], directives: [{ type: i7.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i7.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i3.TranslateDirective, selector: "[translate],[ngx-translate]", inputs: ["translate", "translateParams"] }, { type: i7.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i1.RouterLinkWithHref, selector: "a[routerLink],area[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "preserveFragment", "skipLocationChange", "replaceUrl", "state", "relativeTo", "routerLink"] }], pipes: { "number": i7.DecimalPipe, "date": i7.DatePipe } });
471
621
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: UcviewgenericComponent, decorators: [{
472
622
  type: Component,
473
- args: [{ 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 [ngClass]=\"IsCard ? '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\"\r\n [ngClass]=\"mi.customClassLabel != undefined ? mi.customClassLabel : ''\" translate>{{mi.label}}</label>\r\n </div>\r\n <div class=\"col-md-6\" *ngIf=\"mi.type == 'switch'\">\r\n <div *ngFor=\"let case of mi?.case\">\r\n <div *ngIf=\"switchCase(viewInfoObjList[i],case)\">\r\n <label class=\"label-control\"\r\n [ngClass]=\"mi.customClassLabel != undefined ? mi.customClassLabel : ''\" translate>{{case.result.label}}</label>\r\n </div>\r\n </div>\r\n </div>\r\n <div *ngIf=\"viewInfoObjList[i] != undefined\" class=\"col-md-6\" [ngClass]=\"{ 'text-left': mi.position == 'left',\r\n 'text-right': mi.position == 'right', 'text-center': mi.position == 'center' }\">\r\n <span\r\n *ngIf=\"(mi.type == 'boolean' && viewInfoObjList[i][mi.property] != null) || (viewInfoObjList[i][mi.property] != '' && viewInfoObjList[i][mi.property] != null) || mi.type == 'switch' || mi.type =='concat'; then nonEmptyLabel else emptyLabel\"></span>\r\n <ng-template #emptyLabel>\r\n <label class=\"label-control\"\r\n [ngClass]=\"mi.customClassProperty != undefined ? mi.customClassProperty : ''\"\r\n 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 breakword\"\r\n [ngClass]=\"mi.customClassProperty != undefined ? mi.customClassProperty : ''\" translate>\r\n {{ 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\"\r\n [ngClass]=\"mi.customClassProperty != undefined ? mi.customClassProperty : ''\" translate>-\r\n </label>\r\n </span>\r\n <label *ngIf=\"mi.type == 'currency'\" class=\"label-control\"\r\n [ngClass]=\"mi.customClassProperty != undefined ? mi.customClassProperty : ''\" translate>\r\n {{ viewInfoObjList[i][mi.property] | number: mi?.precision ? mi?.precision : '0.2' :'en-US'}} <span *ngIf=\"mi?.IsPrcnt\">&nbsp;%</span> </label>\r\n <label *ngIf=\"mi.type == 'date'\" class=\"label-control\"\r\n [ngClass]=\"mi.customClassProperty != undefined ? mi.customClassProperty : ''\" translate>\r\n {{ viewInfoObjList[i][mi.property] | date: (mi?.dateFormat) ? mi?.dateFormat : 'dd-MMM-yyyy'}} </label>\r\n <label *ngIf=\"mi.type == 'link'\" class=\"label-control\"\r\n [ngClass]=\"mi.customClassProperty != undefined ? mi.customClassProperty : ''\" translate>\r\n <a *ngIf=\"!mi?.isFullpath\" [routerLink]=\"genRouterLink(mi.path)\" [target]=\"mi.target\"\r\n [queryParams]=\"genAction(viewInfoObjList[i], mi.param)\">\r\n <span *ngIf=\"(mi.isCurrency != undefined && mi.isCurrency)\">{{\r\n viewInfoObjList[i][mi.property] | number:'.2':'en-US' }}</span>\r\n <span *ngIf=\"(mi.isCurrency == undefined || !mi.isCurrency)\">{{\r\n viewInfoObjList[i][mi.property] }}</span>\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 <span *ngIf=\"(mi.isCurrency != undefined && mi.isCurrency)\">{{\r\n viewInfoObjList[i][mi.property] | number:'.2':'en-US' }}</span>\r\n <span *ngIf=\"(mi.isCurrency == undefined || !mi.isCurrency)\">{{\r\n viewInfoObjList[i][mi.property] }}</span>\r\n </a>\r\n </label>\r\n <label *ngIf=\"mi.type == 'callback'\" class=\"label-control\"\r\n [ngClass]=\"mi.customClassProperty != undefined ? mi.customClassProperty : ''\" translate>\r\n <a href=\"javascript:void(0);\" (click)=\"callbackFunction(viewInfoObjList[i], mi.key)\">\r\n {{ viewInfoObjList[i][mi.property] }}\r\n </a>\r\n </label>\r\n <textarea *ngIf=\"mi.type == 'textarea'\" class=\"form-control\" readonly\r\n [ngClass]=\"mi.customClassProperty != undefined ? mi.customClassProperty : ''\"\r\n translate> {{ viewInfoObjList[i][mi.property] }} </textarea>\r\n <span *ngIf=\"mi.type == 'boolean'\"\r\n [ngClass]=\"mi.customClassProperty != undefined ? mi.customClassProperty : ''\" translate>\r\n <label *ngIf=\"viewInfoObjList[i][mi.property] == true\">Yes</label>\r\n <label *ngIf=\"viewInfoObjList[i][mi.property] == false\">No</label>\r\n <!-- <label\r\n *ngIf=\"viewInfoObjList[i][mi.property] == '' || viewInfoObjList[i][mi.property] == null\">-</label> -->\r\n </span>\r\n <span *ngIf=\"mi.type == 'concat'\">\r\n <label class=\"label-control breakword\"\r\n [ngClass]=\"mi.customClassProperty != undefined ? mi.customClassProperty : ''\" translate>\r\n {{ 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) && !cs.Hidden\">\r\n <span class=\"label-control breakword\"\r\n [ngClass]=\"mi.customClassProperty != undefined ? mi.customClassProperty : ''\"\r\n translate *ngIf=\"cs.result.type == 'text'\">{{ viewInfoObjList[i][cs.result.property]\r\n }}\r\n </span>\r\n <span [ngClass]=\"mi.customClassProperty != undefined ? mi.customClassProperty : ''\"\r\n translate *ngIf=\"cs.result.type == 'decimal'\">{{\r\n viewInfoObjList[i][cs.result.property] | number:'.2':'en-US' }}</span>\r\n <span [ngClass]=\"mi.customClassProperty != undefined ? mi.customClassProperty : ''\"\r\n translate *ngIf=\"cs.result.type == 'date'\">{{ viewInfoObjList[i][cs.result.property] |\r\n date: 'dd-MMM-yyyy' }}\r\n </span>\r\n <span *ngIf=\"cs.result.type == 'link'\"\r\n [ngClass]=\"mi.customClassProperty != undefined ? mi.customClassProperty : ''\"\r\n translate>\r\n <a [target]=\"cs.result.target\" [routerLink]=\"genRouterLink(cs.result.path)\"\r\n [queryParams]=\"genAction(viewInfoObjList[i],cs.result.param)\">\r\n <span *ngIf=\"(mi.isCurrency != undefined && mi.isCurrency)\">{{\r\n viewInfoObjList[i][cs.result.property] | number:'.2':'en-US' }}</span>\r\n <span *ngIf=\"(mi.isCurrency == undefined || !mi.isCurrency)\">{{\r\n viewInfoObjList[i][cs.result.property] }}</span>\r\n </a>\r\n </span>\r\n <span *ngIf=\"cs.result.type == 'boolean'\"\r\n [ngClass]=\"mi.customClassProperty != undefined ? mi.customClassProperty : ''\"\r\n translate>\r\n <span *ngIf=\"viewInfoObjList[i][cs.result.property] == 'true'\">Yes</span>\r\n <span *ngIf=\"viewInfoObjList[i][cs.result.property] == 'false'\">No</span>\r\n </span>\r\n <span *ngIf=\"cs.result.type == 'concat'\">\r\n <label class=\"label-control breakword\"\r\n [ngClass]=\"mi.customClassProperty != undefined ? mi.customClassProperty : ''\" translate>\r\n {{ cs.result.concat }}\r\n </label>\r\n </span>\r\n <span *ngIf=\"cs.result.type == 'callback'\">\r\n <span\r\n *ngIf=\"cs.result.isText != undefined && cs.result.isText; then textCallback else iconCallback\"></span>\r\n <ng-template #textCallback>\r\n <span>\r\n <a href=\"javascript:void(0);\" (click)=\"callbackFunction(viewInfoObjList[i], cs.result.key)\">{{\r\n viewInfoObjList[i][cs.result.property] }}</a>\r\n </span>\r\n </ng-template>\r\n <ng-template #iconCallback>\r\n <span>\r\n <a [ngClass]=\"[cs.result.tooltip != undefined && cs.result.tooltip != '' ? 'tooltips' : '', cs.result.anchor == undefined || cs.result.anchor == '' ? 'success p-0' : cs.result.anchor]\"\r\n (click)=\"callbackFunction(viewInfoObjList[i], cs.result.key)\">\r\n <i class=\"font-medium-3 mr-2\"\r\n [ngClass]=\" cs.result.icon == undefined || cs.result.icon == '' ? 'ft-edit-2' : cs.result.icon \">\r\n </i>\r\n <span *ngIf=\"cs.result.tooltip != undefined && cs.result.tooltip != ''\"\r\n [ngClass]=\"cs.result.tooltip != undefined && cs.result.tooltip != '' ? 'tooltipstext' : ''\">\r\n {{cs.result.tooltip}}\r\n </span>\r\n </a>\r\n </span>\r\n </ng-template>\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>" }]
623
+ args: [{ 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 [ngClass]=\"IsCard ? '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\"\r\n [ngClass]=\"mi.customClassLabel != undefined ? mi.customClassLabel : ''\" translate>{{mi.label}}</label>\r\n </div>\r\n <div class=\"col-md-6\" *ngIf=\"mi.type == 'switch'\">\r\n <div *ngFor=\"let case of mi?.case\">\r\n <div *ngIf=\"switchCase(viewInfoObjList[i],case)\">\r\n <label class=\"label-control\"\r\n [ngClass]=\"mi.customClassLabel != undefined ? mi.customClassLabel : ''\" translate>{{case.result.label}}</label>\r\n </div>\r\n </div>\r\n </div>\r\n <div *ngIf=\"viewInfoObjList[i] != undefined\" class=\"col-md-6\" [ngClass]=\"{ 'text-left': mi.position == 'left',\r\n 'text-right': mi.position == 'right', 'text-center': mi.position == 'center' }\">\r\n <span\r\n *ngIf=\"(mi.type == 'boolean' && viewInfoObjList[i][mi.property] != null) || (viewInfoObjList[i][mi.property] != '' && viewInfoObjList[i][mi.property] != null) || mi.type == 'switch' || mi.type =='concat'; then nonEmptyLabel else emptyLabel\"></span>\r\n <ng-template #emptyLabel>\r\n <label class=\"label-control\"\r\n [ngClass]=\"mi.customClassProperty != undefined ? mi.customClassProperty : ''\"\r\n 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 breakword\"\r\n [ngClass]=\"mi.customClassProperty != undefined ? mi.customClassProperty : ''\" translate>\r\n {{ 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\"\r\n [ngClass]=\"mi.customClassProperty != undefined ? mi.customClassProperty : ''\" translate>-\r\n </label>\r\n </span>\r\n <label *ngIf=\"mi.type == 'currency'\" class=\"label-control\"\r\n [ngClass]=\"mi.customClassProperty != undefined ? mi.customClassProperty : ''\" translate>\r\n {{ viewInfoObjList[i][mi.property] | number: mi?.precision ? mi?.precision : '0.2' :'en-US'}} <span *ngIf=\"mi?.IsPrcnt\">&nbsp;%</span> </label>\r\n <label *ngIf=\"mi.type == 'date'\" class=\"label-control\"\r\n [ngClass]=\"mi.customClassProperty != undefined ? mi.customClassProperty : ''\" translate>\r\n {{ viewInfoObjList[i][mi.property] | date: (mi?.dateFormat) ? mi?.dateFormat : 'dd-MMM-yyyy'}} </label>\r\n <label *ngIf=\"mi.type == 'link'\" class=\"label-control\"\r\n [ngClass]=\"mi.customClassProperty != undefined ? mi.customClassProperty : ''\" translate>\r\n <a *ngIf=\"!mi?.isFullpath\" [routerLink]=\"genRouterLink(mi.path)\" [target]=\"mi.target\"\r\n [queryParams]=\"genAction(viewInfoObjList[i], mi.param)\">\r\n <span *ngIf=\"(mi.isCurrency != undefined && mi.isCurrency)\">{{\r\n viewInfoObjList[i][mi.property] | number:'.2':'en-US' }}</span>\r\n <span *ngIf=\"(mi.isCurrency == undefined || !mi.isCurrency)\">{{\r\n viewInfoObjList[i][mi.property] }}</span>\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 <span *ngIf=\"(mi.isCurrency != undefined && mi.isCurrency)\">{{\r\n viewInfoObjList[i][mi.property] | number:'.2':'en-US' }}</span>\r\n <span *ngIf=\"(mi.isCurrency == undefined || !mi.isCurrency)\">{{\r\n viewInfoObjList[i][mi.property] }}</span>\r\n </a>\r\n </label>\r\n <label *ngIf=\"mi.type == 'callback'\" class=\"label-control\"\r\n [ngClass]=\"mi.customClassProperty != undefined ? mi.customClassProperty : ''\" translate>\r\n <a href=\"javascript:void(0);\" (click)=\"callbackFunction(viewInfoObjList[i], mi.key)\">\r\n {{ viewInfoObjList[i][mi.property] }}\r\n </a>\r\n </label>\r\n <textarea *ngIf=\"mi.type == 'textarea'\" class=\"form-control\" readonly\r\n [ngClass]=\"mi.customClassProperty != undefined ? mi.customClassProperty : ''\"\r\n translate> {{ viewInfoObjList[i][mi.property] }} </textarea>\r\n <span *ngIf=\"mi.type == 'boolean'\"\r\n [ngClass]=\"mi.customClassProperty != undefined ? mi.customClassProperty : ''\" translate>\r\n <label *ngIf=\"viewInfoObjList[i][mi.property] == true\">Yes</label>\r\n <label *ngIf=\"viewInfoObjList[i][mi.property] == false\">No</label>\r\n <!-- <label\r\n *ngIf=\"viewInfoObjList[i][mi.property] == '' || viewInfoObjList[i][mi.property] == null\">-</label> -->\r\n </span>\r\n <span *ngIf=\"mi.type == 'concat'\">\r\n <label class=\"label-control breakword\"\r\n [ngClass]=\"mi.customClassProperty != undefined ? mi.customClassProperty : ''\" translate>\r\n {{ 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) && !cs.Hidden\">\r\n <span class=\"label-control breakword\"\r\n [ngClass]=\"mi.customClassProperty != undefined ? mi.customClassProperty : ''\"\r\n translate *ngIf=\"cs.result.type == 'text'\">{{ viewInfoObjList[i][cs.result.property]\r\n }}\r\n </span>\r\n <span [ngClass]=\"mi.customClassProperty != undefined ? mi.customClassProperty : ''\"\r\n translate *ngIf=\"cs.result.type == 'decimal'\">{{\r\n viewInfoObjList[i][cs.result.property] | number:'.2':'en-US' }}</span>\r\n <span [ngClass]=\"mi.customClassProperty != undefined ? mi.customClassProperty : ''\"\r\n translate *ngIf=\"cs.result.type == 'date'\">{{ viewInfoObjList[i][cs.result.property] |\r\n date: 'dd-MMM-yyyy' }}\r\n </span>\r\n <span *ngIf=\"cs.result.type == 'link'\"\r\n [ngClass]=\"mi.customClassProperty != undefined ? mi.customClassProperty : ''\"\r\n translate>\r\n <a [target]=\"cs.result.target\" [routerLink]=\"genRouterLink(cs.result.path)\"\r\n [queryParams]=\"genAction(viewInfoObjList[i],cs.result.param)\">\r\n <span *ngIf=\"(mi.isCurrency != undefined && mi.isCurrency)\">{{\r\n viewInfoObjList[i][cs.result.property] | number:'.2':'en-US' }}</span>\r\n <span *ngIf=\"(mi.isCurrency == undefined || !mi.isCurrency)\">{{\r\n viewInfoObjList[i][cs.result.property] }}</span>\r\n </a>\r\n </span>\r\n <span *ngIf=\"cs.result.type == 'boolean'\"\r\n [ngClass]=\"mi.customClassProperty != undefined ? mi.customClassProperty : ''\"\r\n translate>\r\n <span *ngIf=\"viewInfoObjList[i][cs.result.property] == 'true'\">Yes</span>\r\n <span *ngIf=\"viewInfoObjList[i][cs.result.property] == 'false'\">No</span>\r\n </span>\r\n <span *ngIf=\"cs.result.type == 'concat'\">\r\n <label class=\"label-control breakword\"\r\n [ngClass]=\"mi.customClassProperty != undefined ? mi.customClassProperty : ''\" translate>\r\n {{ cs.result.concat }}\r\n </label>\r\n </span>\r\n <span *ngIf=\"cs.result.type == 'callback'\">\r\n <span\r\n *ngIf=\"cs.result.isText != undefined && cs.result.isText; then textCallback else iconCallback\"></span>\r\n <ng-template #textCallback>\r\n <span>\r\n <a href=\"javascript:void(0);\" (click)=\"callbackFunction(viewInfoObjList[i], cs.result.key)\">{{\r\n viewInfoObjList[i][cs.result.property] }}</a>\r\n </span>\r\n </ng-template>\r\n <ng-template #iconCallback>\r\n <span>\r\n <a [ngClass]=\"[cs.result.tooltip != undefined && cs.result.tooltip != '' ? 'tooltips' : '', cs.result.anchor == undefined || cs.result.anchor == '' ? 'success p-0' : cs.result.anchor]\"\r\n (click)=\"callbackFunction(viewInfoObjList[i], cs.result.key)\">\r\n <i class=\"font-medium-3 mr-2\"\r\n [ngClass]=\" cs.result.icon == undefined || cs.result.icon == '' ? 'ft-edit-2' : cs.result.icon \">\r\n </i>\r\n <span *ngIf=\"cs.result.tooltip != undefined && cs.result.tooltip != ''\"\r\n [ngClass]=\"cs.result.tooltip != undefined && cs.result.tooltip != '' ? 'tooltipstext' : ''\">\r\n {{cs.result.tooltip}}\r\n </span>\r\n </a>\r\n </span>\r\n </ng-template>\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 class=\"px-3 grid-view\" *ngIf=\"gridViewObj.gridViews.length > 0\">\r\n <div *ngFor=\"let gridView of inputGridViewObjs;let i = index\">\r\n <lib-ucSubsection\r\n *ngIf=\"gridViewObj.gridViews[i].subsection && gridViewObj.gridViews[i].subsection !== ''\"\r\n [id]=\"'grid-subsection-id'+i\"\r\n [title]=\"gridViewObj.gridViews[i].subsection\"\r\n [panel]=\"'grid-subsection-panel-'+i\">\r\n </lib-ucSubsection>\r\n <div class=\"form-body\" [id]=\"'grid-subsection-panel-'+i\">\r\n <lib-ucgridview [gridInput]=\"gridView\" (callback)=\"gridEvent($event)\" (isRefresh)=\"GetGridViewData(gridViewObj.gridViews[i], gridView)\"></lib-ucgridview>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n</section>\r\n" }]
474
624
  }], ctorParameters: function () { return [{ type: i1.ActivatedRoute }, { type: i2.HttpClient }, { type: i3.TranslateService }, { type: i4.CookieService }]; }, propDecorators: { viewGenericObj: [{
475
625
  type: Input
626
+ }], gridViewObj: [{
627
+ type: Input
476
628
  }], callback: [{
477
629
  type: Output
478
630
  }] } });
@@ -482,12 +634,14 @@ class UcviewgenericModule {
482
634
  /** @nocollapse */ UcviewgenericModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: UcviewgenericModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
483
635
  /** @nocollapse */ UcviewgenericModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: UcviewgenericModule, declarations: [UcviewgenericComponent], imports: [CommonModule,
484
636
  RouterModule,
485
- UcSubsectionModule, i3.TranslateModule], exports: [UcviewgenericComponent] });
637
+ UcSubsectionModule,
638
+ UcgridviewModule, i3.TranslateModule], exports: [UcviewgenericComponent] });
486
639
  /** @nocollapse */ UcviewgenericModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: UcviewgenericModule, imports: [[
487
640
  CommonModule,
488
641
  RouterModule,
489
642
  UcSubsectionModule,
490
- TranslateModule.forChild()
643
+ UcgridviewModule,
644
+ TranslateModule.forChild(),
491
645
  ]] });
492
646
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: UcviewgenericModule, decorators: [{
493
647
  type: NgModule,
@@ -497,9 +651,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
497
651
  CommonModule,
498
652
  RouterModule,
499
653
  UcSubsectionModule,
500
- TranslateModule.forChild()
654
+ UcgridviewModule,
655
+ TranslateModule.forChild(),
501
656
  ],
502
- exports: [UcviewgenericComponent]
657
+ exports: [UcviewgenericComponent],
503
658
  }]
504
659
  }] });
505
660