@adins/ucviewgeneric 1.0.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.
@@ -0,0 +1,682 @@
1
+ import * as i0 from '@angular/core';
2
+ import { Injectable, EventEmitter, Component, Input, Output, NgModule } from '@angular/core';
3
+ import * as i1 from '@angular/router';
4
+ import { RouterModule } from '@angular/router';
5
+ import * as i2 from '@angular/common/http';
6
+ import * as i3 from '@ngx-translate/core';
7
+ import { TranslateModule } from '@ngx-translate/core';
8
+ import * as i4 from 'ngx-cookie';
9
+ import * as CryptoJS from 'crypto-js';
10
+ import * as i5 from '@adins/uc-subsection';
11
+ import { UcSubsectionModule } from '@adins/uc-subsection';
12
+ import * as i6 from '@adins/uctable';
13
+ import { UctableModule } from '@adins/uctable';
14
+ import * as i7 from '@angular/common';
15
+ import { CommonModule } from '@angular/common';
16
+ import { UcgridviewModule } from '@adins/ucgridview';
17
+
18
+ class UcviewgenericService {
19
+ constructor() { }
20
+ }
21
+ /** @nocollapse */ UcviewgenericService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: UcviewgenericService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
22
+ /** @nocollapse */ UcviewgenericService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: UcviewgenericService, providedIn: 'root' });
23
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: UcviewgenericService, decorators: [{
24
+ type: Injectable,
25
+ args: [{
26
+ providedIn: 'root'
27
+ }]
28
+ }], ctorParameters: function () { return []; } });
29
+
30
+ class UcViewGenericObj {
31
+ constructor() {
32
+ this.IsCard = true;
33
+ this.viewInput = "";
34
+ this.viewEnvironment = "";
35
+ this.ddlEnvironments = new Array();
36
+ this.listEnvironments = new Array();
37
+ this.whereValue = new Array();
38
+ this.IsCard = true;
39
+ this.dicts = {};
40
+ }
41
+ }
42
+ class EnviObj {
43
+ constructor() {
44
+ this.name = "";
45
+ this.environment = "";
46
+ }
47
+ }
48
+ class WhereValueObj {
49
+ constructor() {
50
+ this.property = "";
51
+ }
52
+ }
53
+ class EnvisObj {
54
+ constructor() {
55
+ this.environment = "";
56
+ this.url = "";
57
+ }
58
+ }
59
+
60
+ class GridViewObj {
61
+ constructor() {
62
+ this.gridViews = [];
63
+ }
64
+ }
65
+ class GridViewInput {
66
+ }
67
+
68
+ class InputGridObj {
69
+ constructor() {
70
+ this.apiUrl = "";
71
+ this.deleteUrl = "";
72
+ this.pageNow = 0;
73
+ this.pageSize = 0;
74
+ this.pagingJson = "";
75
+ this.switchValue = new Array();
76
+ this.addGridList = new Array();
77
+ this.classPadding = "";
78
+ }
79
+ }
80
+ class SwitchValueObj {
81
+ constructor() {
82
+ this.property = "";
83
+ }
84
+ }
85
+ class InputAddGridObj {
86
+ constructor() {
87
+ this.AddGridLabel = "";
88
+ this.AddGridProperty = "";
89
+ }
90
+ }
91
+
92
+ class UcviewgenericComponent {
93
+ constructor(route, http, translateService, cookieService) {
94
+ this.route = route;
95
+ this.http = http;
96
+ this.translateService = translateService;
97
+ this.cookieService = cookieService;
98
+ this.viewGenericObj = new UcViewGenericObj();
99
+ this.gridViewObj = new GridViewObj();
100
+ this.callback = new EventEmitter();
101
+ this.UserAccess = JSON.parse(this.GetCookie(this.cookieService, "UserAccess"));
102
+ this.inputGridViewObjs = new Array();
103
+ this.viewList = "";
104
+ this.isReady = false;
105
+ this.IsCard = true;
106
+ this.route.queryParams.subscribe((params) => {
107
+ this.getList = params;
108
+ });
109
+ this.translateService.setDefaultLang("en");
110
+ this.translateService.use(localStorage.getItem("lang") || "en");
111
+ }
112
+ ngOnInit() {
113
+ console.log("viewgeneric");
114
+ this.initiateForm();
115
+ this.CheckIsCard();
116
+ }
117
+ CheckIsCard() {
118
+ if (this.viewGenericObj.IsCard == undefined ||
119
+ this.viewGenericObj.IsCard == null)
120
+ return;
121
+ this.IsCard = this.viewGenericObj.IsCard;
122
+ }
123
+ initiateForm() {
124
+ if (this.viewGenericObj.dataInput !== undefined &&
125
+ Object.keys(this.viewGenericObj.dataInput).length !== 0) {
126
+ this.setConfiguration({ ...this.viewGenericObj.dataInput });
127
+ this.gridViewObj.gridViews = this.viewGenericObj.dataInput.subsection[0]?.gridViews || [];
128
+ this.initializeGridViews();
129
+ return;
130
+ }
131
+ this.getJSON(this.viewGenericObj.viewInput).subscribe((data) => {
132
+ this.setConfiguration(data);
133
+ });
134
+ this.initializeGridViews();
135
+ }
136
+ initializeGridViews() {
137
+ if (this.gridViewObj && this.gridViewObj.gridViews.length === 0) {
138
+ return;
139
+ }
140
+ this.gridViewObj.gridViews.map(async (gridView) => {
141
+ const inputGridObj = new InputGridObj();
142
+ inputGridObj.dataInput = gridView.tableInput;
143
+ inputGridObj.resultData = { Data: [] };
144
+ await this.GetGridViewData(gridView.getData, inputGridObj);
145
+ this.inputGridViewObjs.push(inputGridObj);
146
+ });
147
+ }
148
+ getEnvironment(envi) {
149
+ const filteredEnvis = this.viewGenericObj.listEnvironments.filter((v) => v.environment == envi);
150
+ return filteredEnvis.length > 0 ? filteredEnvis[0] : null;
151
+ }
152
+ async GetGridViewData(meta, inputGridObj) {
153
+ let templListData = [];
154
+ const enviUrl = meta.environment && this.getEnvironment(meta.environment);
155
+ await this.http
156
+ .post(enviUrl ? enviUrl.url + meta.apiPath : meta.apiPath, meta.reqObj)
157
+ .toPromise()
158
+ .then((response) => {
159
+ templListData = response[meta.customObjName || "ReturnObject"];
160
+ inputGridObj.apiUrl = meta.apiPath;
161
+ inputGridObj.resultData["Data"] = new Array();
162
+ inputGridObj.resultData.Data = templListData;
163
+ })
164
+ .catch((error) => {
165
+ console.log(error);
166
+ });
167
+ }
168
+ gridEvent(ev) {
169
+ this.callbackFunction(ev.RowObj, ev.Key);
170
+ }
171
+ setConfiguration(data) {
172
+ this.viewList = data;
173
+ this.viewInfoObjList = [];
174
+ for (let j = 0; j < this.viewList.subsection.length; j++) {
175
+ this.viewInfoObjList.push(j);
176
+ }
177
+ for (let i = 0; i < this.viewList.subsection.length; i++) {
178
+ if (this.viewList.subsection[i].querystring != null &&
179
+ this.viewList.subsection[i].querystring.name != "") {
180
+ let queryObj;
181
+ if (this.viewGenericObj.whereValue.length == 0) {
182
+ this.viewList.subsection[i].querystring.whereQuery = (Object).values(this.getList);
183
+ }
184
+ else {
185
+ this.viewList.subsection[i].querystring.whereQuery =
186
+ this.viewGenericObj.whereValue;
187
+ }
188
+ if (this.viewList.subsection[i].mainInfoPath != undefined &&
189
+ this.viewList.subsection[i].mainInfoPath != "") {
190
+ if (this.viewGenericObj.viewEnvironment != undefined &&
191
+ this.viewGenericObj.viewEnvironment != "") {
192
+ this.viewList.subsection[i].fullpath =
193
+ this.viewGenericObj.viewEnvironment +
194
+ this.viewList.subsection[i].mainInfoPath;
195
+ }
196
+ else {
197
+ this.viewList.subsection[i].fullpath =
198
+ this.viewList.subsection[i].mainInfoUrl;
199
+ }
200
+ }
201
+ else {
202
+ this.viewList.subsection[i].fullpath =
203
+ this.viewList.subsection[i].mainInfoUrl;
204
+ }
205
+ queryObj = {
206
+ querystring: this.viewList.subsection[i].querystring,
207
+ };
208
+ this.http
209
+ .post(this.viewList.subsection[i].fullpath, queryObj)
210
+ .subscribe((response) => {
211
+ this.viewInfoObjList[i] = response["Data"][0];
212
+ for (let y = 0; y < this.viewList.subsection[i].mainInfo.length; y++) {
213
+ if (this.viewList.subsection[i].mainInfo[y].propertyList !=
214
+ undefined &&
215
+ this.viewList.subsection[i].mainInfo[y].propertyList.length !=
216
+ 0) {
217
+ const propertyList = this.viewList.subsection[i].mainInfo[y].propertyList;
218
+ let concat = "";
219
+ for (let z = 0; z < propertyList.length; z++) {
220
+ concat =
221
+ concat +
222
+ propertyList[z].prefix +
223
+ this.viewInfoObjList[i][propertyList[z].property] +
224
+ propertyList[z].suffix;
225
+ }
226
+ this.viewList.subsection[i].mainInfo[y].concat = concat;
227
+ }
228
+ //switch case
229
+ if (this.viewList.subsection[i].mainInfo[y].type == "switch") {
230
+ for (let z = 0; z < this.viewList.subsection[i].mainInfo[y].case.length; z++) {
231
+ let Empty = new Array();
232
+ this.viewList.subsection[i].mainInfo[y].case[z].Hidden =
233
+ false;
234
+ //check hideIfEmpty
235
+ if (this.viewList.subsection[i].mainInfo[y].case[z].result
236
+ .hideIfEmpty != undefined &&
237
+ this.viewList.subsection[i].mainInfo[y].case[z].result
238
+ .hideIfEmpty != null) {
239
+ if (this.viewList.subsection[i].mainInfo[y].case[z].result
240
+ .type != "concat") {
241
+ Empty.push(this.viewInfoObjList[i][this.viewList.subsection[i].mainInfo[y].case[z]
242
+ .result.property] != undefined &&
243
+ this.viewInfoObjList[i][this.viewList.subsection[i].mainInfo[y].case[z]
244
+ .result.property] != null &&
245
+ this.viewInfoObjList[i][this.viewList.subsection[i].mainInfo[y].case[z]
246
+ .result.property] != ""
247
+ ? false
248
+ : true);
249
+ }
250
+ else {
251
+ // type concat
252
+ if (this.viewList.subsection[i].mainInfo[y].case[z].result
253
+ .propertyList != undefined &&
254
+ this.viewList.subsection[i].mainInfo[y].case[z].result
255
+ .propertyList.length != 0) {
256
+ const propertyList = this.viewList.subsection[i].mainInfo[y].case[z]
257
+ .result.propertyList;
258
+ let concat = "";
259
+ for (let a = 0; a < propertyList.length; a++) {
260
+ concat =
261
+ concat +
262
+ propertyList[a].prefix +
263
+ this.viewInfoObjList[i][propertyList[a].property] +
264
+ propertyList[a].suffix;
265
+ Empty.push(this.viewInfoObjList[i][propertyList[a].property] != undefined &&
266
+ this.viewInfoObjList[i][propertyList[a].property] != null &&
267
+ this.viewInfoObjList[i][propertyList[a].property] != ""
268
+ ? false
269
+ : true);
270
+ }
271
+ this.viewList.subsection[i].mainInfo[y].case[z].result.concat = concat;
272
+ }
273
+ }
274
+ if (Empty.includes(true) &&
275
+ this.viewList.subsection[i].mainInfo[y].case[z].result
276
+ .hideIfEmpty) {
277
+ this.viewList.subsection[i].mainInfo[y].case[z].Hidden =
278
+ true;
279
+ this.viewList.subsection[i].mainInfo[y].isHide = true;
280
+ }
281
+ }
282
+ else {
283
+ //concat
284
+ if (this.viewList.subsection[i].mainInfo[y].case[z].result
285
+ .propertyList != undefined &&
286
+ this.viewList.subsection[i].mainInfo[y].case[z].result
287
+ .propertyList.length != 0) {
288
+ const propertyList = this.viewList.subsection[i].mainInfo[y].case[z].result
289
+ .propertyList;
290
+ let concat = "";
291
+ for (let a = 0; a < propertyList.length; a++) {
292
+ concat =
293
+ concat +
294
+ propertyList[a].prefix +
295
+ this.viewInfoObjList[i][propertyList[a].property] +
296
+ propertyList[a].suffix;
297
+ }
298
+ this.viewList.subsection[i].mainInfo[y].case[z].result.concat = concat;
299
+ }
300
+ }
301
+ }
302
+ }
303
+ if (this.viewList.subsection[i].mainInfo[y].type == "link" &&
304
+ (this.viewGenericObj.navigationConst != undefined ||
305
+ this.viewGenericObj.navigationConst != null)) {
306
+ let tempLink = this.viewGenericObj.navigationConst[this.viewList.subsection[i].mainInfo[y].path];
307
+ if (tempLink != undefined && tempLink != null) {
308
+ this.viewList.subsection[i].mainInfo[y].path = tempLink;
309
+ }
310
+ }
311
+ if (this.viewList.subsection[i].mainInfo[y].type == "link" &&
312
+ this.viewGenericObj.listEnvironments != undefined &&
313
+ this.viewGenericObj.listEnvironments.length != 0) {
314
+ for (let z = 0; z < this.viewGenericObj.listEnvironments.length; z++) {
315
+ if (this.viewList.subsection[i].mainInfo[y].environment ==
316
+ this.viewGenericObj.listEnvironments[z].environment) {
317
+ this.viewList.subsection[i].mainInfo[y].isFullpath = true;
318
+ this.viewList.subsection[i].mainInfo[y].fullpath =
319
+ this.viewGenericObj.listEnvironments[z].url +
320
+ this.viewList.subsection[i].mainInfo[y].path;
321
+ break;
322
+ }
323
+ }
324
+ }
325
+ else if (this.viewList.subsection[i].mainInfo[y].type == "link") {
326
+ this.viewList.subsection[i].mainInfo[y].isFullpath = false;
327
+ this.viewList.subsection[i].mainInfo[y].fullpath =
328
+ this.viewList.subsection[i].mainInfo[y].path;
329
+ }
330
+ }
331
+ this.isReady = true;
332
+ }, (error) => {
333
+ console.log(error);
334
+ });
335
+ }
336
+ else {
337
+ if (this.viewList.subsection[i].mainInfoPath != undefined &&
338
+ this.viewList.subsection[i].mainInfoPath != "") {
339
+ if (this.viewList.subsection[i].environment != undefined &&
340
+ this.viewList.subsection[i].mainInfoPath != "") {
341
+ for (let z = 0; z < this.viewGenericObj.listEnvironments.length; z++) {
342
+ if (this.viewList.subsection[i].environment ==
343
+ this.viewGenericObj.listEnvironments[z].environment) {
344
+ this.viewList.subsection[i].fullpath =
345
+ this.viewGenericObj.listEnvironments[z].url +
346
+ this.viewList.subsection[i].mainInfoPath;
347
+ break;
348
+ }
349
+ }
350
+ }
351
+ else if (this.viewGenericObj.viewEnvironment != undefined &&
352
+ this.viewGenericObj.viewEnvironment != "") {
353
+ this.viewList.subsection[i].fullpath =
354
+ this.viewGenericObj.viewEnvironment +
355
+ this.viewList.subsection[i].mainInfoPath;
356
+ }
357
+ else {
358
+ this.viewList.subsection[i].fullpath =
359
+ this.viewList.subsection[i].mainInfoUrl;
360
+ }
361
+ }
362
+ else {
363
+ this.viewList.subsection[i].fullpath =
364
+ this.viewList.subsection[i].mainInfoUrl;
365
+ }
366
+ const reqObj = this.viewList.subsection[i].reqObj ?? this.getList;
367
+ if (this.viewList.subsection[i].reqObj !== undefined) {
368
+ for (const [key, value] of Object.entries(this.viewList.subsection[i].reqObj)) {
369
+ reqObj[key] = this.getList[value] || this.viewGenericObj.dicts[value];
370
+ if (reqObj[key] == undefined) {
371
+ reqObj[key] = value;
372
+ }
373
+ }
374
+ }
375
+ this.http.post(this.viewList.subsection[i].fullpath, reqObj).subscribe((response) => {
376
+ if (this.viewList.subsection[i].resObjName === undefined ||
377
+ this.viewList.subsection[i].resObjName === "") {
378
+ this.viewInfoObjList[i] = response;
379
+ }
380
+ else {
381
+ this.viewInfoObjList[i] =
382
+ response[this.viewList.subsection[i].resObjName];
383
+ }
384
+ this.isReady = true;
385
+ }, (error) => {
386
+ console.log(error);
387
+ });
388
+ }
389
+ }
390
+ }
391
+ getJSON(url) {
392
+ return this.http.get(url);
393
+ }
394
+ GetCookie(cookieService, key) {
395
+ let value = cookieService.get(key);
396
+ if (value == undefined || value.trim() == "")
397
+ return null;
398
+ return this.DecryptString(value, "AdInsFOU12345678");
399
+ }
400
+ DecryptString(chipperText, chipperKey) {
401
+ if (chipperKey == undefined ||
402
+ chipperKey.trim() == "" ||
403
+ chipperText == undefined ||
404
+ chipperText.trim() == "")
405
+ return chipperText;
406
+ let chipperKeyArr = CryptoJS.enc.Utf8.parse(chipperKey);
407
+ let iv = CryptoJS.lib.WordArray.create([0x00, 0x00, 0x00, 0x00]);
408
+ let decrypted = CryptoJS.AES.decrypt(chipperText, chipperKeyArr, {
409
+ iv: iv,
410
+ });
411
+ let plainText = decrypted.toString(CryptoJS.enc.Utf8);
412
+ return plainText;
413
+ }
414
+ genAction(viewObj, param) {
415
+ let arrList = {};
416
+ for (let i = 0; i < param.length; i++) {
417
+ if (viewObj[param[i].type] != undefined ||
418
+ viewObj[param[i].property] != undefined) {
419
+ arrList[param[i].type] = viewObj[param[i].property];
420
+ }
421
+ else {
422
+ arrList[param[i].type] = param[i].property;
423
+ }
424
+ }
425
+ return arrList;
426
+ }
427
+ genRouterLink(urlLink) {
428
+ let tempLink = urlLink;
429
+ if (this.viewGenericObj.navigationConst != undefined &&
430
+ this.viewGenericObj.navigationConst[urlLink] != null) {
431
+ tempLink = this.viewGenericObj.navigationConst[urlLink];
432
+ }
433
+ return tempLink;
434
+ }
435
+ redirectFullPath(fullpath, param, target) {
436
+ let queryParam = "";
437
+ const ListObj = Object.keys(param);
438
+ for (let i = 0; i < ListObj.length; i++) {
439
+ if (queryParam != "") {
440
+ queryParam = queryParam + "&" + ListObj[i] + "=" + param[ListObj[i]];
441
+ }
442
+ else {
443
+ queryParam = ListObj[i] + "=" + param[ListObj[i]];
444
+ }
445
+ }
446
+ window.open(fullpath + "?" + queryParam, target);
447
+ }
448
+ callbackFunction(item, key = "") {
449
+ let CBObj = {
450
+ ViewObj: item,
451
+ Key: key,
452
+ };
453
+ this.callback.emit(CBObj);
454
+ }
455
+ switchCase(item, condList) {
456
+ let condition = false;
457
+ if (!item)
458
+ return false;
459
+ for (let i = 0; i < condList.conditions.length; i++) {
460
+ if (condList.conditions[i].restriction == "EQ") {
461
+ if (condList.conditions[i].isUser != true) {
462
+ if (item[condList.conditions[i].property] ==
463
+ condList.conditions[i].value) {
464
+ condition = true;
465
+ }
466
+ else {
467
+ condition = false;
468
+ break;
469
+ }
470
+ }
471
+ else {
472
+ if (item[condList.conditions[i].property] == this.UserAccess["UserName"]) {
473
+ condition = true;
474
+ }
475
+ else {
476
+ condition = false;
477
+ break;
478
+ }
479
+ }
480
+ }
481
+ else if (condList.conditions[i].restriction == "NEQ") {
482
+ if (condList.conditions[i].isUser != true) {
483
+ if (item[condList.conditions[i].property] !=
484
+ condList.conditions[i].value) {
485
+ condition = true;
486
+ }
487
+ else {
488
+ condition = false;
489
+ break;
490
+ }
491
+ }
492
+ else {
493
+ if (item[condList.conditions[i].property] != this.UserAccess["UserName"]) {
494
+ condition = true;
495
+ }
496
+ else {
497
+ condition = false;
498
+ break;
499
+ }
500
+ }
501
+ }
502
+ else if (condList.conditions[i].restriction == "GT") {
503
+ if (condList.conditions[i].isUser != true) {
504
+ if (item[condList.conditions[i].property] > condList.conditions[i].value) {
505
+ condition = true;
506
+ }
507
+ else {
508
+ condition = false;
509
+ break;
510
+ }
511
+ }
512
+ else {
513
+ if (item[condList.conditions[i].property] > this.UserAccess["UserName"]) {
514
+ condition = true;
515
+ }
516
+ else {
517
+ condition = false;
518
+ break;
519
+ }
520
+ }
521
+ }
522
+ else if (condList.conditions[i].restriction == "GTE") {
523
+ if (condList.conditions[i].isUser != true) {
524
+ if (item[condList.conditions[i].property] >=
525
+ condList.conditions[i].value) {
526
+ condition = true;
527
+ }
528
+ else {
529
+ condition = false;
530
+ break;
531
+ }
532
+ }
533
+ else {
534
+ if (item[condList.conditions[i].property] >= this.UserAccess["UserName"]) {
535
+ condition = true;
536
+ }
537
+ else {
538
+ condition = false;
539
+ break;
540
+ }
541
+ }
542
+ }
543
+ else if (condList.conditions[i].restriction == "LT") {
544
+ if (condList.conditions[i].isUser != true) {
545
+ if (item[condList.conditions[i].property] < condList.conditions[i].value) {
546
+ condition = true;
547
+ }
548
+ else {
549
+ condition = false;
550
+ break;
551
+ }
552
+ }
553
+ else {
554
+ if (item[condList.conditions[i].property] < this.UserAccess["UserName"]) {
555
+ condition = true;
556
+ }
557
+ else {
558
+ condition = false;
559
+ break;
560
+ }
561
+ }
562
+ }
563
+ else if (condList.conditions[i].restriction == "LTE") {
564
+ if (condList.conditions[i].isUser != true) {
565
+ if (item[condList.conditions[i].property] <=
566
+ condList.conditions[i].value) {
567
+ condition = true;
568
+ }
569
+ else {
570
+ condition = false;
571
+ break;
572
+ }
573
+ }
574
+ else {
575
+ if (item[condList.conditions[i].property] <= this.UserAccess["UserName"]) {
576
+ condition = true;
577
+ }
578
+ else {
579
+ condition = false;
580
+ break;
581
+ }
582
+ }
583
+ }
584
+ else if (condList.conditions[i].restriction == "IN") {
585
+ if (condList.conditions[i].isUser != true) {
586
+ if (condList.conditions[i].value.findIndex((x) => x == item[condList.conditions[i].property]) >= 0) {
587
+ condition = true;
588
+ }
589
+ else {
590
+ condition = false;
591
+ break;
592
+ }
593
+ }
594
+ else {
595
+ if (condList.conditions[i].value.findIndex((x) => x == this.UserAccess["UserName"]) >= 0) {
596
+ condition = true;
597
+ }
598
+ else {
599
+ condition = false;
600
+ break;
601
+ }
602
+ }
603
+ }
604
+ else if (condList.conditions[i].restriction == "NIN") {
605
+ if (condList.conditions[i].isUser != true) {
606
+ if (condList.conditions[i].value.findIndex((x) => x == item[condList.conditions[i].property]) == -1) {
607
+ condition = true;
608
+ }
609
+ else {
610
+ condition = false;
611
+ break;
612
+ }
613
+ }
614
+ else {
615
+ if (condList.conditions[i].value.findIndex((x) => x == this.UserAccess["UserName"]) == -1) {
616
+ condition = true;
617
+ }
618
+ else {
619
+ condition = false;
620
+ break;
621
+ }
622
+ }
623
+ }
624
+ }
625
+ return condition;
626
+ }
627
+ }
628
+ /** @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 });
629
+ /** @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>\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 p-3 border-top border-bottom\" [id]='ss.subSectionId'>\r\n <div class=\"form-group row\">\r\n <div *ngFor=\"let mi of ss?.mainInfo\"\r\n [ngClass]=\"{ 'col-xxl-2 col-xl-3 col-lg-4 col-md-6 col-xs-12 py-2': 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-12\" *ngIf=\"mi.type != 'switch'\">\r\n <label class=\"label-control label-field\"\r\n [ngClass]=\"mi.customClassLabel != undefined ? mi.customClassLabel : ''\" translate>{{mi.label}}</label>\r\n </div>\r\n <div class=\"col-md-12\" *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 label-field\"\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-12\" [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 *ngIf=\"mi.type == 'blank'\"></label>\r\n <label *ngIf=\"mi.type != 'blank'\" class=\"label-control label-field\"\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 label-field\"\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 label-field\"\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 class=\"label-control\" *ngIf=\"viewInfoObjList[i][mi.property] == true\">Yes</label>\r\n <label class=\"label-control\" *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 *ngIf=\"cs.result.type == 'decimal'\">\r\n <label class=\"label-control breakword\" [ngClass]=\"mi.customClassProperty != undefined ? mi.customClassProperty : ''\"\r\n translate>\r\n <span>\r\n {{ viewInfoObjList[i][cs.result.property] | number: cs.result.precision ? cs.result.precision : '0.2' :'en-US' }}</span> \r\n <span *ngIf=\"cs.result.IsPrcnt\">&nbsp;%</span>\r\n </label>\r\n </span>\r\n <span *ngIf=\"cs.result.type == 'date'\">\r\n <label class=\"label-control breakword\" [ngClass]=\"mi.customClassProperty != undefined ? mi.customClassProperty : ''\"\r\n translate>\r\n {{ viewInfoObjList[i][cs.result.property] | date: 'dd-MMM-yyyy' }}\r\n </label>\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 <label class=\"label-control breakword\" [ngClass]=\"mi.customClassProperty != undefined ? mi.customClassProperty : ''\"\r\n translate>\r\n <span *ngIf=\"viewInfoObjList[i][cs.result.property] == 'true' || viewInfoObjList[i][cs.result.property] == true\">Yes</span>\r\n <span *ngIf=\"viewInfoObjList[i][cs.result.property] == 'false' || viewInfoObjList[i][cs.result.property] == false\">No</span>\r\n </label>\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\r\n <div class=\"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 <lib-uctable [gridObj]=\"gridView\" [standalone]=\"false\" (callback)=\"gridEvent($event)\" [classPadding]=\"'px-0'\"></lib-uctable>\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 </div>\r\n</section>\r\n", styles: [".label-field{color:var(--gray-font-2, #A1A3A5);font-size:10px!important;font-weight:500}.label-control{padding:0!important}.label-control>a{color:var(--blue, #246CFE)}@media (min-width: 1366px){.col-xxl-2{flex:0 0 20%;max-width:20%}}\n"], components: [{ type: i5.UcSubsectionComponent, selector: "lib-ucSubsection", inputs: ["title", "panel", "id"] }, { type: i6.UctableComponent, selector: "lib-uctable", inputs: ["pageLimitFooter", "pageSize", "gridObj", "standalone", "classPadding"], outputs: ["callback"] }], directives: [{ type: i7.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i7.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i7.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i3.TranslateDirective, selector: "[translate],[ngx-translate]", inputs: ["translate", "translateParams"] }, { 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 } });
630
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: UcviewgenericComponent, decorators: [{
631
+ type: Component,
632
+ args: [{ selector: "lib-ucviewgeneric", template: "<section id=\"horizontal-form-layouts\">\r\n <div class=\"row text-left\">\r\n <div class=\"col-md-12\">\r\n <div [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>\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 p-3 border-top border-bottom\" [id]='ss.subSectionId'>\r\n <div class=\"form-group row\">\r\n <div *ngFor=\"let mi of ss?.mainInfo\"\r\n [ngClass]=\"{ 'col-xxl-2 col-xl-3 col-lg-4 col-md-6 col-xs-12 py-2': 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-12\" *ngIf=\"mi.type != 'switch'\">\r\n <label class=\"label-control label-field\"\r\n [ngClass]=\"mi.customClassLabel != undefined ? mi.customClassLabel : ''\" translate>{{mi.label}}</label>\r\n </div>\r\n <div class=\"col-md-12\" *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 label-field\"\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-12\" [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 *ngIf=\"mi.type == 'blank'\"></label>\r\n <label *ngIf=\"mi.type != 'blank'\" class=\"label-control label-field\"\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 label-field\"\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 label-field\"\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 class=\"label-control\" *ngIf=\"viewInfoObjList[i][mi.property] == true\">Yes</label>\r\n <label class=\"label-control\" *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 *ngIf=\"cs.result.type == 'decimal'\">\r\n <label class=\"label-control breakword\" [ngClass]=\"mi.customClassProperty != undefined ? mi.customClassProperty : ''\"\r\n translate>\r\n <span>\r\n {{ viewInfoObjList[i][cs.result.property] | number: cs.result.precision ? cs.result.precision : '0.2' :'en-US' }}</span> \r\n <span *ngIf=\"cs.result.IsPrcnt\">&nbsp;%</span>\r\n </label>\r\n </span>\r\n <span *ngIf=\"cs.result.type == 'date'\">\r\n <label class=\"label-control breakword\" [ngClass]=\"mi.customClassProperty != undefined ? mi.customClassProperty : ''\"\r\n translate>\r\n {{ viewInfoObjList[i][cs.result.property] | date: 'dd-MMM-yyyy' }}\r\n </label>\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 <label class=\"label-control breakword\" [ngClass]=\"mi.customClassProperty != undefined ? mi.customClassProperty : ''\"\r\n translate>\r\n <span *ngIf=\"viewInfoObjList[i][cs.result.property] == 'true' || viewInfoObjList[i][cs.result.property] == true\">Yes</span>\r\n <span *ngIf=\"viewInfoObjList[i][cs.result.property] == 'false' || viewInfoObjList[i][cs.result.property] == false\">No</span>\r\n </label>\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\r\n <div class=\"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 <lib-uctable [gridObj]=\"gridView\" [standalone]=\"false\" (callback)=\"gridEvent($event)\" [classPadding]=\"'px-0'\"></lib-uctable>\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 </div>\r\n</section>\r\n", styles: [".label-field{color:var(--gray-font-2, #A1A3A5);font-size:10px!important;font-weight:500}.label-control{padding:0!important}.label-control>a{color:var(--blue, #246CFE)}@media (min-width: 1366px){.col-xxl-2{flex:0 0 20%;max-width:20%}}\n"] }]
633
+ }], ctorParameters: function () { return [{ type: i1.ActivatedRoute }, { type: i2.HttpClient }, { type: i3.TranslateService }, { type: i4.CookieService }]; }, propDecorators: { viewGenericObj: [{
634
+ type: Input
635
+ }], gridViewObj: [{
636
+ type: Input
637
+ }], callback: [{
638
+ type: Output
639
+ }] } });
640
+
641
+ class UcviewgenericModule {
642
+ }
643
+ /** @nocollapse */ UcviewgenericModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: UcviewgenericModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
644
+ /** @nocollapse */ UcviewgenericModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: UcviewgenericModule, declarations: [UcviewgenericComponent], imports: [CommonModule,
645
+ RouterModule,
646
+ UcSubsectionModule,
647
+ UcgridviewModule,
648
+ UctableModule, i3.TranslateModule], exports: [UcviewgenericComponent] });
649
+ /** @nocollapse */ UcviewgenericModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: UcviewgenericModule, imports: [[
650
+ CommonModule,
651
+ RouterModule,
652
+ UcSubsectionModule,
653
+ UcgridviewModule,
654
+ UctableModule,
655
+ TranslateModule.forChild(),
656
+ ]] });
657
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: UcviewgenericModule, decorators: [{
658
+ type: NgModule,
659
+ args: [{
660
+ declarations: [UcviewgenericComponent],
661
+ imports: [
662
+ CommonModule,
663
+ RouterModule,
664
+ UcSubsectionModule,
665
+ UcgridviewModule,
666
+ UctableModule,
667
+ TranslateModule.forChild(),
668
+ ],
669
+ exports: [UcviewgenericComponent],
670
+ }]
671
+ }] });
672
+
673
+ /*
674
+ * Public API Surface of ucviewgeneric
675
+ */
676
+
677
+ /**
678
+ * Generated bundle index. Do not edit.
679
+ */
680
+
681
+ export { UcviewgenericComponent, UcviewgenericModule, UcviewgenericService };
682
+ //# sourceMappingURL=adins-ucviewgeneric.mjs.map