@adins/ucviewgeneric 3.1.3 → 3.2.1

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,56 @@ 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 });
124
+ this.initializeGridViews();
87
125
  return;
88
126
  }
89
- this.getJSON(this.viewGenericObj.viewInput).subscribe(data => {
127
+ this.getJSON(this.viewGenericObj.viewInput).subscribe((data) => {
90
128
  this.setConfiguration(data);
91
129
  });
130
+ this.initializeGridViews();
131
+ }
132
+ initializeGridViews() {
133
+ if (this.gridViewObj && this.gridViewObj.gridViews.length > 0) {
134
+ this.gridViewObj.gridViews.map(async (gridView) => {
135
+ const inputGridObj = new InputGridObj();
136
+ inputGridObj.dataInput = gridView.tableInput;
137
+ inputGridObj.resultData = { Data: [] };
138
+ await this.GetGridViewData(gridView.getData, inputGridObj);
139
+ this.inputGridViewObjs.push(inputGridObj);
140
+ });
141
+ }
142
+ }
143
+ getEnvironment(envi) {
144
+ const filteredEnvis = this.viewGenericObj.listEnvironments.filter((v) => v.environment == envi);
145
+ return filteredEnvis.length > 0 ? filteredEnvis[0] : null;
146
+ }
147
+ async GetGridViewData(meta, inputGridObj) {
148
+ let templListData = [];
149
+ const enviUrl = meta.environment && this.getEnvironment(meta.environment);
150
+ await this.http
151
+ .post(enviUrl ? enviUrl.url + meta.apiPath : meta.apiPath, meta.reqObj)
152
+ .toPromise()
153
+ .then((response) => {
154
+ templListData = response[meta.customObjName || "ReturnObject"];
155
+ inputGridObj.apiUrl = meta.apiPath;
156
+ inputGridObj.resultData["Data"] = new Array();
157
+ inputGridObj.resultData.Data = templListData;
158
+ })
159
+ .catch((error) => {
160
+ console.log(error);
161
+ });
162
+ }
163
+ gridEvent(ev) {
164
+ this.callbackFunction(ev.RowObj, ev.Key);
92
165
  }
93
166
  setConfiguration(data) {
94
167
  this.viewList = data;
@@ -97,36 +170,53 @@ class UcviewgenericComponent {
97
170
  this.viewInfoObjList.push(j);
98
171
  }
99
172
  for (let i = 0; i < this.viewList.subsection.length; i++) {
100
- if (this.viewList.subsection[i].querystring != null && this.viewList.subsection[i].querystring.name != "") {
173
+ if (this.viewList.subsection[i].querystring != null &&
174
+ this.viewList.subsection[i].querystring.name != "") {
101
175
  let queryObj;
102
176
  if (this.viewGenericObj.whereValue.length == 0) {
103
- this.viewList.subsection[i].querystring.whereQuery = Object.values(this.getList);
177
+ this.viewList.subsection[i].querystring.whereQuery = (Object).values(this.getList);
104
178
  }
105
179
  else {
106
- this.viewList.subsection[i].querystring.whereQuery = this.viewGenericObj.whereValue;
180
+ this.viewList.subsection[i].querystring.whereQuery =
181
+ this.viewGenericObj.whereValue;
107
182
  }
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;
183
+ if (this.viewList.subsection[i].mainInfoPath != undefined &&
184
+ this.viewList.subsection[i].mainInfoPath != "") {
185
+ if (this.viewGenericObj.viewEnvironment != undefined &&
186
+ this.viewGenericObj.viewEnvironment != "") {
187
+ this.viewList.subsection[i].fullpath =
188
+ this.viewGenericObj.viewEnvironment +
189
+ this.viewList.subsection[i].mainInfoPath;
111
190
  }
112
191
  else {
113
- this.viewList.subsection[i].fullpath = this.viewList.subsection[i].mainInfoUrl;
192
+ this.viewList.subsection[i].fullpath =
193
+ this.viewList.subsection[i].mainInfoUrl;
114
194
  }
115
195
  }
116
196
  else {
117
- this.viewList.subsection[i].fullpath = this.viewList.subsection[i].mainInfoUrl;
197
+ this.viewList.subsection[i].fullpath =
198
+ this.viewList.subsection[i].mainInfoUrl;
118
199
  }
119
200
  queryObj = {
120
- querystring: this.viewList.subsection[i].querystring
201
+ querystring: this.viewList.subsection[i].querystring,
121
202
  };
122
- this.http.post(this.viewList.subsection[i].fullpath, queryObj).subscribe((response) => {
203
+ this.http
204
+ .post(this.viewList.subsection[i].fullpath, queryObj)
205
+ .subscribe((response) => {
123
206
  this.viewInfoObjList[i] = response["Data"][0];
124
207
  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) {
208
+ if (this.viewList.subsection[i].mainInfo[y].propertyList !=
209
+ undefined &&
210
+ this.viewList.subsection[i].mainInfo[y].propertyList.length !=
211
+ 0) {
126
212
  const propertyList = this.viewList.subsection[i].mainInfo[y].propertyList;
127
213
  let concat = "";
128
214
  for (let z = 0; z < propertyList.length; z++) {
129
- concat = concat + propertyList[z].prefix + this.viewInfoObjList[i][propertyList[z].property] + propertyList[z].suffix;
215
+ concat =
216
+ concat +
217
+ propertyList[z].prefix +
218
+ this.viewInfoObjList[i][propertyList[z].property] +
219
+ propertyList[z].suffix;
130
220
  }
131
221
  this.viewList.subsection[i].mainInfo[y].concat = concat;
132
222
  }
@@ -134,64 +224,103 @@ class UcviewgenericComponent {
134
224
  if (this.viewList.subsection[i].mainInfo[y].type == "switch") {
135
225
  for (let z = 0; z < this.viewList.subsection[i].mainInfo[y].case.length; z++) {
136
226
  let Empty = new Array();
137
- this.viewList.subsection[i].mainInfo[y].case[z].Hidden = false;
227
+ this.viewList.subsection[i].mainInfo[y].case[z].Hidden =
228
+ false;
138
229
  //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);
230
+ if (this.viewList.subsection[i].mainInfo[y].case[z].result
231
+ .hideIfEmpty != undefined &&
232
+ this.viewList.subsection[i].mainInfo[y].case[z].result
233
+ .hideIfEmpty != null) {
234
+ if (this.viewList.subsection[i].mainInfo[y].case[z].result
235
+ .type != "concat") {
236
+ Empty.push(this.viewInfoObjList[i][this.viewList.subsection[i].mainInfo[y].case[z]
237
+ .result.property] != undefined &&
238
+ this.viewInfoObjList[i][this.viewList.subsection[i].mainInfo[y].case[z]
239
+ .result.property] != null &&
240
+ this.viewInfoObjList[i][this.viewList.subsection[i].mainInfo[y].case[z]
241
+ .result.property] != ""
242
+ ? false
243
+ : true);
144
244
  }
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;
245
+ else {
246
+ // type concat
247
+ if (this.viewList.subsection[i].mainInfo[y].case[z].result
248
+ .propertyList != undefined &&
249
+ this.viewList.subsection[i].mainInfo[y].case[z].result
250
+ .propertyList.length != 0) {
251
+ const propertyList = this.viewList.subsection[i].mainInfo[y].case[z]
252
+ .result.propertyList;
148
253
  let concat = "";
149
254
  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);
255
+ concat =
256
+ concat +
257
+ propertyList[a].prefix +
258
+ this.viewInfoObjList[i][propertyList[a].property] +
259
+ propertyList[a].suffix;
260
+ Empty.push(this.viewInfoObjList[i][propertyList[a].property] != undefined &&
261
+ this.viewInfoObjList[i][propertyList[a].property] != null &&
262
+ this.viewInfoObjList[i][propertyList[a].property] != ""
263
+ ? false
264
+ : true);
154
265
  }
155
266
  this.viewList.subsection[i].mainInfo[y].case[z].result.concat = concat;
156
267
  }
157
268
  }
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;
269
+ if (Empty.includes(true) &&
270
+ this.viewList.subsection[i].mainInfo[y].case[z].result
271
+ .hideIfEmpty) {
272
+ this.viewList.subsection[i].mainInfo[y].case[z].Hidden =
273
+ true;
160
274
  this.viewList.subsection[i].mainInfo[y].isHide = true;
161
275
  }
162
276
  }
163
277
  else {
164
278
  //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;
279
+ if (this.viewList.subsection[i].mainInfo[y].case[z].result
280
+ .propertyList != undefined &&
281
+ this.viewList.subsection[i].mainInfo[y].case[z].result
282
+ .propertyList.length != 0) {
283
+ const propertyList = this.viewList.subsection[i].mainInfo[y].case[z].result
284
+ .propertyList;
167
285
  let concat = "";
168
286
  for (let a = 0; a < propertyList.length; a++) {
169
- concat = concat + propertyList[a].prefix + this.viewInfoObjList[i][propertyList[a].property] + propertyList[a].suffix;
287
+ concat =
288
+ concat +
289
+ propertyList[a].prefix +
290
+ this.viewInfoObjList[i][propertyList[a].property] +
291
+ propertyList[a].suffix;
170
292
  }
171
293
  this.viewList.subsection[i].mainInfo[y].case[z].result.concat = concat;
172
294
  }
173
295
  }
174
296
  }
175
297
  }
176
- if (this.viewList.subsection[i].mainInfo[y].type == "link" && (this.viewGenericObj.navigationConst != undefined || this.viewGenericObj.navigationConst != null)) {
298
+ if (this.viewList.subsection[i].mainInfo[y].type == "link" &&
299
+ (this.viewGenericObj.navigationConst != undefined ||
300
+ this.viewGenericObj.navigationConst != null)) {
177
301
  let tempLink = this.viewGenericObj.navigationConst[this.viewList.subsection[i].mainInfo[y].path];
178
302
  if (tempLink != undefined && tempLink != null) {
179
303
  this.viewList.subsection[i].mainInfo[y].path = tempLink;
180
304
  }
181
305
  }
182
- if (this.viewList.subsection[i].mainInfo[y].type == "link"
183
- && this.viewGenericObj.listEnvironments != undefined && this.viewGenericObj.listEnvironments.length != 0) {
306
+ if (this.viewList.subsection[i].mainInfo[y].type == "link" &&
307
+ this.viewGenericObj.listEnvironments != undefined &&
308
+ this.viewGenericObj.listEnvironments.length != 0) {
184
309
  for (let z = 0; z < this.viewGenericObj.listEnvironments.length; z++) {
185
- if (this.viewList.subsection[i].mainInfo[y].environment == this.viewGenericObj.listEnvironments[z].environment) {
310
+ if (this.viewList.subsection[i].mainInfo[y].environment ==
311
+ this.viewGenericObj.listEnvironments[z].environment) {
186
312
  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;
313
+ this.viewList.subsection[i].mainInfo[y].fullpath =
314
+ this.viewGenericObj.listEnvironments[z].url +
315
+ this.viewList.subsection[i].mainInfo[y].path;
188
316
  break;
189
317
  }
190
318
  }
191
319
  }
192
320
  else if (this.viewList.subsection[i].mainInfo[y].type == "link") {
193
321
  this.viewList.subsection[i].mainInfo[y].isFullpath = false;
194
- this.viewList.subsection[i].mainInfo[y].fullpath = this.viewList.subsection[i].mainInfo[y].path;
322
+ this.viewList.subsection[i].mainInfo[y].fullpath =
323
+ this.viewList.subsection[i].mainInfo[y].path;
195
324
  }
196
325
  }
197
326
  this.isReady = true;
@@ -200,24 +329,34 @@ class UcviewgenericComponent {
200
329
  });
201
330
  }
202
331
  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 != "") {
332
+ if (this.viewList.subsection[i].mainInfoPath != undefined &&
333
+ this.viewList.subsection[i].mainInfoPath != "") {
334
+ if (this.viewList.subsection[i].environment != undefined &&
335
+ this.viewList.subsection[i].mainInfoPath != "") {
205
336
  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;
337
+ if (this.viewList.subsection[i].environment ==
338
+ this.viewGenericObj.listEnvironments[z].environment) {
339
+ this.viewList.subsection[i].fullpath =
340
+ this.viewGenericObj.listEnvironments[z].url +
341
+ this.viewList.subsection[i].mainInfoPath;
208
342
  break;
209
343
  }
210
344
  }
211
345
  }
212
- else if (this.viewGenericObj.viewEnvironment != undefined && this.viewGenericObj.viewEnvironment != "") {
213
- this.viewList.subsection[i].fullpath = this.viewGenericObj.viewEnvironment + this.viewList.subsection[i].mainInfoPath;
346
+ else if (this.viewGenericObj.viewEnvironment != undefined &&
347
+ this.viewGenericObj.viewEnvironment != "") {
348
+ this.viewList.subsection[i].fullpath =
349
+ this.viewGenericObj.viewEnvironment +
350
+ this.viewList.subsection[i].mainInfoPath;
214
351
  }
215
352
  else {
216
- this.viewList.subsection[i].fullpath = this.viewList.subsection[i].mainInfoUrl;
353
+ this.viewList.subsection[i].fullpath =
354
+ this.viewList.subsection[i].mainInfoUrl;
217
355
  }
218
356
  }
219
357
  else {
220
- this.viewList.subsection[i].fullpath = this.viewList.subsection[i].mainInfoUrl;
358
+ this.viewList.subsection[i].fullpath =
359
+ this.viewList.subsection[i].mainInfoUrl;
221
360
  }
222
361
  const reqObj = this.viewList.subsection[i].reqObj ?? this.getList;
223
362
  if (this.viewList.subsection[i].reqObj !== undefined) {
@@ -226,11 +365,13 @@ class UcviewgenericComponent {
226
365
  }
227
366
  }
228
367
  this.http.post(this.viewList.subsection[i].fullpath, reqObj).subscribe((response) => {
229
- if (this.viewList.subsection[i].resObjName === undefined || this.viewList.subsection[i].resObjName === "") {
368
+ if (this.viewList.subsection[i].resObjName === undefined ||
369
+ this.viewList.subsection[i].resObjName === "") {
230
370
  this.viewInfoObjList[i] = response;
231
371
  }
232
372
  else {
233
- this.viewInfoObjList[i] = response[this.viewList.subsection[i].resObjName];
373
+ this.viewInfoObjList[i] =
374
+ response[this.viewList.subsection[i].resObjName];
234
375
  }
235
376
  this.isReady = true;
236
377
  }, (error) => {
@@ -244,24 +385,29 @@ class UcviewgenericComponent {
244
385
  }
245
386
  GetCookie(cookieService, key) {
246
387
  let value = cookieService.get(key);
247
- if (value == undefined || value.trim() == '')
388
+ if (value == undefined || value.trim() == "")
248
389
  return null;
249
390
  return this.DecryptString(value, "AdInsFOU12345678");
250
391
  }
251
392
  DecryptString(chipperText, chipperKey) {
252
- if (chipperKey == undefined || chipperKey.trim() == '' ||
253
- chipperText == undefined || chipperText.trim() == '')
393
+ if (chipperKey == undefined ||
394
+ chipperKey.trim() == "" ||
395
+ chipperText == undefined ||
396
+ chipperText.trim() == "")
254
397
  return chipperText;
255
398
  let chipperKeyArr = CryptoJS.enc.Utf8.parse(chipperKey);
256
399
  let iv = CryptoJS.lib.WordArray.create([0x00, 0x00, 0x00, 0x00]);
257
- let decrypted = CryptoJS.AES.decrypt(chipperText, chipperKeyArr, { iv: iv });
400
+ let decrypted = CryptoJS.AES.decrypt(chipperText, chipperKeyArr, {
401
+ iv: iv,
402
+ });
258
403
  let plainText = decrypted.toString(CryptoJS.enc.Utf8);
259
404
  return plainText;
260
405
  }
261
406
  genAction(viewObj, param) {
262
407
  let arrList = {};
263
408
  for (let i = 0; i < param.length; i++) {
264
- if (viewObj[param[i].type] != undefined || viewObj[param[i].property] != undefined) {
409
+ if (viewObj[param[i].type] != undefined ||
410
+ viewObj[param[i].property] != undefined) {
265
411
  arrList[param[i].type] = viewObj[param[i].property];
266
412
  }
267
413
  else {
@@ -272,7 +418,8 @@ class UcviewgenericComponent {
272
418
  }
273
419
  genRouterLink(urlLink) {
274
420
  let tempLink = urlLink;
275
- if (this.viewGenericObj.navigationConst != undefined && this.viewGenericObj.navigationConst[urlLink] != null) {
421
+ if (this.viewGenericObj.navigationConst != undefined &&
422
+ this.viewGenericObj.navigationConst[urlLink] != null) {
276
423
  tempLink = this.viewGenericObj.navigationConst[urlLink];
277
424
  }
278
425
  return tempLink;
@@ -293,7 +440,7 @@ class UcviewgenericComponent {
293
440
  callbackFunction(item, key = "") {
294
441
  let CBObj = {
295
442
  ViewObj: item,
296
- Key: key
443
+ Key: key,
297
444
  };
298
445
  this.callback.emit(CBObj);
299
446
  }
@@ -304,7 +451,8 @@ class UcviewgenericComponent {
304
451
  for (let i = 0; i < condList.conditions.length; i++) {
305
452
  if (condList.conditions[i].restriction == "EQ") {
306
453
  if (condList.conditions[i].isUser != true) {
307
- if (item[condList.conditions[i].property] == condList.conditions[i].value) {
454
+ if (item[condList.conditions[i].property] ==
455
+ condList.conditions[i].value) {
308
456
  condition = true;
309
457
  }
310
458
  else {
@@ -324,7 +472,8 @@ class UcviewgenericComponent {
324
472
  }
325
473
  else if (condList.conditions[i].restriction == "NEQ") {
326
474
  if (condList.conditions[i].isUser != true) {
327
- if (item[condList.conditions[i].property] != condList.conditions[i].value) {
475
+ if (item[condList.conditions[i].property] !=
476
+ condList.conditions[i].value) {
328
477
  condition = true;
329
478
  }
330
479
  else {
@@ -364,7 +513,8 @@ class UcviewgenericComponent {
364
513
  }
365
514
  else if (condList.conditions[i].restriction == "GTE") {
366
515
  if (condList.conditions[i].isUser != true) {
367
- if (item[condList.conditions[i].property] >= condList.conditions[i].value) {
516
+ if (item[condList.conditions[i].property] >=
517
+ condList.conditions[i].value) {
368
518
  condition = true;
369
519
  }
370
520
  else {
@@ -404,7 +554,8 @@ class UcviewgenericComponent {
404
554
  }
405
555
  else if (condList.conditions[i].restriction == "LTE") {
406
556
  if (condList.conditions[i].isUser != true) {
407
- if (item[condList.conditions[i].property] <= condList.conditions[i].value) {
557
+ if (item[condList.conditions[i].property] <=
558
+ condList.conditions[i].value) {
408
559
  condition = true;
409
560
  }
410
561
  else {
@@ -424,7 +575,7 @@ class UcviewgenericComponent {
424
575
  }
425
576
  else if (condList.conditions[i].restriction == "IN") {
426
577
  if (condList.conditions[i].isUser != true) {
427
- if (condList.conditions[i].value.findIndex(x => x == item[condList.conditions[i].property]) >= 0) {
578
+ if (condList.conditions[i].value.findIndex((x) => x == item[condList.conditions[i].property]) >= 0) {
428
579
  condition = true;
429
580
  }
430
581
  else {
@@ -433,7 +584,7 @@ class UcviewgenericComponent {
433
584
  }
434
585
  }
435
586
  else {
436
- if (condList.conditions[i].value.findIndex(x => x == this.UserAccess["UserName"]) >= 0) {
587
+ if (condList.conditions[i].value.findIndex((x) => x == this.UserAccess["UserName"]) >= 0) {
437
588
  condition = true;
438
589
  }
439
590
  else {
@@ -444,7 +595,7 @@ class UcviewgenericComponent {
444
595
  }
445
596
  else if (condList.conditions[i].restriction == "NIN") {
446
597
  if (condList.conditions[i].isUser != true) {
447
- if (condList.conditions[i].value.findIndex(x => x == item[condList.conditions[i].property]) == -1) {
598
+ if (condList.conditions[i].value.findIndex((x) => x == item[condList.conditions[i].property]) == -1) {
448
599
  condition = true;
449
600
  }
450
601
  else {
@@ -453,7 +604,7 @@ class UcviewgenericComponent {
453
604
  }
454
605
  }
455
606
  else {
456
- if (condList.conditions[i].value.findIndex(x => x == this.UserAccess["UserName"]) == -1) {
607
+ if (condList.conditions[i].value.findIndex((x) => x == this.UserAccess["UserName"]) == -1) {
457
608
  condition = true;
458
609
  }
459
610
  else {
@@ -467,12 +618,14 @@ class UcviewgenericComponent {
467
618
  }
468
619
  }
469
620
  /** @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 } });
621
+ /** @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
622
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: UcviewgenericComponent, decorators: [{
472
623
  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>" }]
624
+ 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
625
  }], ctorParameters: function () { return [{ type: i1.ActivatedRoute }, { type: i2.HttpClient }, { type: i3.TranslateService }, { type: i4.CookieService }]; }, propDecorators: { viewGenericObj: [{
475
626
  type: Input
627
+ }], gridViewObj: [{
628
+ type: Input
476
629
  }], callback: [{
477
630
  type: Output
478
631
  }] } });
@@ -482,12 +635,14 @@ class UcviewgenericModule {
482
635
  /** @nocollapse */ UcviewgenericModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: UcviewgenericModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
483
636
  /** @nocollapse */ UcviewgenericModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: UcviewgenericModule, declarations: [UcviewgenericComponent], imports: [CommonModule,
484
637
  RouterModule,
485
- UcSubsectionModule, i3.TranslateModule], exports: [UcviewgenericComponent] });
638
+ UcSubsectionModule,
639
+ UcgridviewModule, i3.TranslateModule], exports: [UcviewgenericComponent] });
486
640
  /** @nocollapse */ UcviewgenericModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: UcviewgenericModule, imports: [[
487
641
  CommonModule,
488
642
  RouterModule,
489
643
  UcSubsectionModule,
490
- TranslateModule.forChild()
644
+ UcgridviewModule,
645
+ TranslateModule.forChild(),
491
646
  ]] });
492
647
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: UcviewgenericModule, decorators: [{
493
648
  type: NgModule,
@@ -497,9 +652,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
497
652
  CommonModule,
498
653
  RouterModule,
499
654
  UcSubsectionModule,
500
- TranslateModule.forChild()
655
+ UcgridviewModule,
656
+ TranslateModule.forChild(),
501
657
  ],
502
- exports: [UcviewgenericComponent]
658
+ exports: [UcviewgenericComponent],
503
659
  }]
504
660
  }] });
505
661