@adins/ucviewgeneric 5.0.2-multiversion.1 → 5.0.3-multiversion.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.
@@ -1,894 +0,0 @@
1
- import * as i0 from '@angular/core';
2
- import { Injectable, EventEmitter, isDevMode, Component, Input, Output, NgModule } from '@angular/core';
3
- import { __awaiter } from 'tslib';
4
- import * as CryptoJS from 'crypto-js';
5
- import * as i1 from '@angular/router';
6
- import { RouterModule } from '@angular/router';
7
- import * as i2 from '@angular/common/http';
8
- import * as i3 from '@ngx-translate/core';
9
- import { TranslateModule } from '@ngx-translate/core';
10
- import * as i4 from 'ngx-cookie';
11
- import * as i5 from '@adins/fe-core';
12
- import * as i6 from '@angular/common';
13
- import { CommonModule } from '@angular/common';
14
- import * as i7 from '@adins/uc-subsection';
15
- import { UcSubsectionModule } from '@adins/uc-subsection';
16
- import * as i8 from '@ng-bootstrap/ng-bootstrap';
17
- import { NgbCollapseModule } from '@ng-bootstrap/ng-bootstrap';
18
- import * as i9 from '@adins/uctable';
19
- import { UctableModule } from '@adins/uctable';
20
- import * as i10 from '@adins/ucdatepipe';
21
- import { UcdatepipeModule } from '@adins/ucdatepipe';
22
- import { UcgridviewModule } from '@adins/ucgridview';
23
-
24
- class UcviewgenericService {
25
- constructor() { }
26
- }
27
- /** @nocollapse */ UcviewgenericService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: UcviewgenericService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
28
- /** @nocollapse */ UcviewgenericService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: UcviewgenericService, providedIn: 'root' });
29
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: UcviewgenericService, decorators: [{
30
- type: Injectable,
31
- args: [{
32
- providedIn: 'root'
33
- }]
34
- }], ctorParameters: function () { return []; } });
35
-
36
- class UcViewGenericObj {
37
- constructor() {
38
- this.IsCard = true;
39
- //EXPERIMENTAL BaseView API
40
- this.Experimental = false;
41
- this.viewInput = "";
42
- this.viewEnvironment = "";
43
- this.ddlEnvironments = new Array();
44
- this.listEnvironments = new Array();
45
- this.whereValue = new Array();
46
- this.IsCard = true;
47
- this.dicts = {};
48
- this.Experimental = false;
49
- this.environment = {};
50
- }
51
- }
52
- class EnviObj {
53
- constructor() {
54
- this.name = "";
55
- this.environment = "";
56
- }
57
- }
58
- class WhereValueObj {
59
- constructor() {
60
- this.property = "";
61
- }
62
- }
63
- class EnvisObj {
64
- constructor() {
65
- this.environment = "";
66
- this.url = "";
67
- }
68
- }
69
-
70
- class GridViewObj {
71
- constructor() {
72
- this.gridViews = [];
73
- }
74
- }
75
- class GridViewInput {
76
- }
77
-
78
- class InputGridObj {
79
- constructor() {
80
- this.apiUrl = "";
81
- this.deleteUrl = "";
82
- this.pageNow = 0;
83
- this.pageSize = 0;
84
- this.pagingJson = "";
85
- this.switchValue = new Array();
86
- this.addGridList = new Array();
87
- this.classPadding = "";
88
- }
89
- }
90
- class SwitchValueObj {
91
- constructor() {
92
- this.property = "";
93
- }
94
- }
95
- class InputAddGridObj {
96
- constructor() {
97
- this.AddGridLabel = "";
98
- this.AddGridProperty = "";
99
- }
100
- }
101
-
102
- class UcviewgenericComponent {
103
- constructor(route, http, translateService, cookieService, ngxRouter) {
104
- this.route = route;
105
- this.http = http;
106
- this.translateService = translateService;
107
- this.cookieService = cookieService;
108
- this.ngxRouter = ngxRouter;
109
- this.viewGenericObj = new UcViewGenericObj();
110
- this.gridViewObj = new GridViewObj();
111
- this.refresh = new EventEmitter();
112
- this.callback = new EventEmitter();
113
- this.inputGridViewObjs = new Array();
114
- this.viewList = "";
115
- this.isReady = false;
116
- this.IsCard = true;
117
- this.isCollapsed = false;
118
- this.route.queryParams.subscribe((params) => {
119
- this.getList = this.ngxRouter.getQueryParams(params);
120
- });
121
- if (!this.UserAccess) {
122
- this.UserAccess = JSON.parse(this.GetCookie(this.cookieService, "UserAccess"));
123
- }
124
- this.translateService.setDefaultLang("en");
125
- this.translateService.use(localStorage.getItem("lang") || "en");
126
- }
127
- ngOnInit() {
128
- // EXPERIMENTAL BaseView API
129
- // TODO: remove after stable
130
- if (this.viewGenericObj.Experimental === undefined) {
131
- this.viewGenericObj.Experimental = false;
132
- }
133
- // END EXPERIMENTAL
134
- this.initiateForm();
135
- this.CheckIsCard();
136
- this.refresh.subscribe((isUpdate) => {
137
- if (!isUpdate) {
138
- return;
139
- }
140
- // Refresh view content
141
- this.initiateForm();
142
- this.refresh.emit(false);
143
- });
144
- }
145
- onCollapse(ev) {
146
- this.isCollapsed = !!(ev === null || ev === void 0 ? void 0 : ev.isCollapsed);
147
- }
148
- CheckIsCard() {
149
- if (this.viewGenericObj.IsCard == undefined ||
150
- this.viewGenericObj.IsCard == null)
151
- return;
152
- this.IsCard = this.viewGenericObj.IsCard;
153
- }
154
- initiateForm() {
155
- var _a;
156
- if (this.viewGenericObj.dataInput !== undefined &&
157
- Object.keys(this.viewGenericObj.dataInput).length !== 0) {
158
- this.setConfiguration(Object.assign({}, this.viewGenericObj.dataInput));
159
- this.gridViewObj.gridViews =
160
- ((_a = this.viewGenericObj.dataInput.subsection[0]) === null || _a === void 0 ? void 0 : _a.gridViews) || [];
161
- this.initializeGridViews();
162
- return;
163
- }
164
- this.getJSON(this.viewGenericObj.viewInput).subscribe((data) => {
165
- this.setConfiguration(data);
166
- });
167
- this.initializeGridViews();
168
- }
169
- initializeGridViews() {
170
- if (this.gridViewObj && this.gridViewObj.gridViews.length === 0) {
171
- return;
172
- }
173
- this.gridViewObj.gridViews.map((gridView) => __awaiter(this, void 0, void 0, function* () {
174
- const inputGridObj = new InputGridObj();
175
- inputGridObj.dataInput = gridView.tableInput;
176
- inputGridObj.resultData = { Data: [] };
177
- inputGridObj.isSubsection = gridView.isSubsection || false;
178
- inputGridObj.usePagination = gridView.usePagination || true;
179
- inputGridObj.title = gridView.title || "";
180
- yield this.GetGridViewData(gridView.getData, inputGridObj);
181
- this.inputGridViewObjs.push(inputGridObj);
182
- }));
183
- }
184
- getEnvironment(envi) {
185
- const filteredEnvis = this.viewGenericObj.listEnvironments.filter((v) => v.environment == envi);
186
- return filteredEnvis.length > 0 ? filteredEnvis[0] : null;
187
- }
188
- GetGridViewData(meta, inputGridObj) {
189
- return __awaiter(this, void 0, void 0, function* () {
190
- let templListData = [];
191
- const enviUrl = meta.environment && this.getEnvironment(meta.environment);
192
- yield this.http
193
- .post(enviUrl ? enviUrl.url + meta.apiPath : meta.apiPath, meta.reqObj)
194
- .toPromise()
195
- .then((response) => {
196
- templListData = response[meta.customObjName || "ReturnObject"];
197
- inputGridObj.apiUrl = meta.apiPath;
198
- inputGridObj.resultData["Data"] = new Array();
199
- inputGridObj.resultData.Data = templListData;
200
- })
201
- .catch((error) => {
202
- console.log(error);
203
- });
204
- });
205
- }
206
- gridEvent(ev) {
207
- this.callbackFunction(ev.RowObj, ev.Key);
208
- }
209
- setConfiguration(data) {
210
- this.viewList = data;
211
- this.viewInfoObjList = [];
212
- for (let j = 0; j < this.viewList.subsection.length; j++) {
213
- this.viewInfoObjList.push(j);
214
- }
215
- for (let i = 0; i < this.viewList.subsection.length; i++) {
216
- if (this.viewList.subsection[i].querystring != null &&
217
- this.viewList.subsection[i].querystring.name != "") {
218
- let queryObj;
219
- if (this.viewGenericObj.whereValue.length == 0) {
220
- this.viewList.subsection[i].querystring.whereQuery = (Object).values(this.getList);
221
- }
222
- else {
223
- this.viewList.subsection[i].querystring.whereQuery =
224
- this.viewGenericObj.whereValue;
225
- }
226
- if (this.viewList.subsection[i].mainInfoPath != undefined &&
227
- this.viewList.subsection[i].mainInfoPath != "") {
228
- if (this.viewGenericObj.viewEnvironment != undefined &&
229
- this.viewGenericObj.viewEnvironment != "") {
230
- this.viewList.subsection[i].fullpath =
231
- this.viewGenericObj.viewEnvironment +
232
- this.viewList.subsection[i].mainInfoPath;
233
- }
234
- else {
235
- this.viewList.subsection[i].fullpath =
236
- this.viewList.subsection[i].mainInfoUrl;
237
- }
238
- }
239
- else {
240
- this.viewList.subsection[i].fullpath =
241
- this.viewList.subsection[i].mainInfoUrl;
242
- }
243
- // EXPERIMENTAL BaseView API
244
- // TODO: remove after stable
245
- if (this.viewGenericObj.Experimental) {
246
- const _environmentUrl = this.viewGenericObj.viewEnvironment.substring(0, this.viewGenericObj.viewEnvironment.length - 3);
247
- const _qryView = this.viewList.subsection[i].querystring.name;
248
- this.viewList.subsection[i].fullpath = `${_environmentUrl}/v1/BaseView/${_qryView}`;
249
- }
250
- // END EXPERIMENTAL
251
- queryObj = {
252
- querystring: this.viewList.subsection[i].querystring,
253
- };
254
- this.http
255
- .post(this.viewList.subsection[i].fullpath, queryObj)
256
- .subscribe((response) => {
257
- this.viewInfoObjList[i] = response["Data"][0];
258
- for (let y = 0; y < this.viewList.subsection[i].mainInfo.length; y++) {
259
- if (this.viewList.subsection[i].mainInfo[y].propertyList !=
260
- undefined &&
261
- this.viewList.subsection[i].mainInfo[y].propertyList.length !=
262
- 0) {
263
- const propertyList = this.viewList.subsection[i].mainInfo[y].propertyList;
264
- let concat = "";
265
- for (let z = 0; z < propertyList.length; z++) {
266
- concat =
267
- concat +
268
- propertyList[z].prefix +
269
- this.viewInfoObjList[i][propertyList[z].property] +
270
- propertyList[z].suffix;
271
- }
272
- this.viewList.subsection[i].mainInfo[y].concat = concat;
273
- }
274
- //switch case
275
- if (this.viewList.subsection[i].mainInfo[y].type == "switch") {
276
- for (let z = 0; z < this.viewList.subsection[i].mainInfo[y].case.length; z++) {
277
- let Empty = new Array();
278
- this.viewList.subsection[i].mainInfo[y].case[z].Hidden =
279
- false;
280
- //check hideIfEmpty
281
- if (this.viewList.subsection[i].mainInfo[y].case[z].result
282
- .hideIfEmpty != undefined &&
283
- this.viewList.subsection[i].mainInfo[y].case[z].result
284
- .hideIfEmpty != null) {
285
- if (this.viewList.subsection[i].mainInfo[y].case[z].result
286
- .type != "concat") {
287
- Empty.push(this.viewInfoObjList[i][this.viewList.subsection[i].mainInfo[y].case[z]
288
- .result.property] != undefined &&
289
- this.viewInfoObjList[i][this.viewList.subsection[i].mainInfo[y].case[z]
290
- .result.property] != null &&
291
- this.viewInfoObjList[i][this.viewList.subsection[i].mainInfo[y].case[z]
292
- .result.property] != ""
293
- ? false
294
- : true);
295
- }
296
- else {
297
- // type concat
298
- if (this.viewList.subsection[i].mainInfo[y].case[z].result
299
- .propertyList != undefined &&
300
- this.viewList.subsection[i].mainInfo[y].case[z].result
301
- .propertyList.length != 0) {
302
- const propertyList = this.viewList.subsection[i].mainInfo[y].case[z]
303
- .result.propertyList;
304
- let concat = "";
305
- for (let a = 0; a < propertyList.length; a++) {
306
- concat =
307
- concat +
308
- propertyList[a].prefix +
309
- this.viewInfoObjList[i][propertyList[a].property] +
310
- propertyList[a].suffix;
311
- Empty.push(this.viewInfoObjList[i][propertyList[a].property] != undefined &&
312
- this.viewInfoObjList[i][propertyList[a].property] != null &&
313
- this.viewInfoObjList[i][propertyList[a].property] != ""
314
- ? false
315
- : true);
316
- }
317
- this.viewList.subsection[i].mainInfo[y].case[z].result.concat = concat;
318
- }
319
- }
320
- if (Empty.includes(true) &&
321
- this.viewList.subsection[i].mainInfo[y].case[z].result
322
- .hideIfEmpty) {
323
- this.viewList.subsection[i].mainInfo[y].case[z].Hidden =
324
- true;
325
- this.viewList.subsection[i].mainInfo[y].isHide = true;
326
- }
327
- }
328
- else {
329
- //concat
330
- if (this.viewList.subsection[i].mainInfo[y].case[z].result
331
- .propertyList != undefined &&
332
- this.viewList.subsection[i].mainInfo[y].case[z].result
333
- .propertyList.length != 0) {
334
- const propertyList = this.viewList.subsection[i].mainInfo[y].case[z].result
335
- .propertyList;
336
- let concat = "";
337
- for (let a = 0; a < propertyList.length; a++) {
338
- concat =
339
- concat +
340
- propertyList[a].prefix +
341
- this.viewInfoObjList[i][propertyList[a].property] +
342
- propertyList[a].suffix;
343
- }
344
- this.viewList.subsection[i].mainInfo[y].case[z].result.concat = concat;
345
- }
346
- }
347
- }
348
- }
349
- if (this.viewList.subsection[i].mainInfo[y].type == "link" &&
350
- (this.viewGenericObj.navigationConst != undefined ||
351
- this.viewGenericObj.navigationConst != null)) {
352
- let tempLink = this.viewGenericObj.navigationConst[this.viewList.subsection[i].mainInfo[y].path];
353
- if (tempLink != undefined && tempLink != null) {
354
- this.viewList.subsection[i].mainInfo[y].path = tempLink;
355
- }
356
- }
357
- if (this.viewList.subsection[i].mainInfo[y].type == "link" &&
358
- this.viewGenericObj.listEnvironments != undefined &&
359
- this.viewGenericObj.listEnvironments.length != 0) {
360
- for (let z = 0; z < this.viewGenericObj.listEnvironments.length; z++) {
361
- if (this.viewList.subsection[i].mainInfo[y].environment ==
362
- this.viewGenericObj.listEnvironments[z].environment) {
363
- this.viewList.subsection[i].mainInfo[y].isFullpath = true;
364
- this.viewList.subsection[i].mainInfo[y].fullpath =
365
- this.viewGenericObj.listEnvironments[z].url +
366
- this.viewList.subsection[i].mainInfo[y].path;
367
- break;
368
- }
369
- }
370
- }
371
- else if (this.viewList.subsection[i].mainInfo[y].type == "link") {
372
- this.viewList.subsection[i].mainInfo[y].isFullpath = false;
373
- this.viewList.subsection[i].mainInfo[y].fullpath =
374
- this.viewList.subsection[i].mainInfo[y].path;
375
- }
376
- }
377
- this.isReady = true;
378
- }, (error) => {
379
- console.log(error);
380
- });
381
- }
382
- else {
383
- if (this.viewList.subsection[i].mainInfoPath != undefined &&
384
- this.viewList.subsection[i].mainInfoPath != "") {
385
- if (this.viewList.subsection[i].environment != undefined &&
386
- this.viewList.subsection[i].mainInfoPath != "") {
387
- for (let z = 0; z < this.viewGenericObj.listEnvironments.length; z++) {
388
- if (this.viewList.subsection[i].environment ==
389
- this.viewGenericObj.listEnvironments[z].environment) {
390
- this.viewList.subsection[i].fullpath =
391
- this.viewGenericObj.listEnvironments[z].url +
392
- this.viewList.subsection[i].mainInfoPath;
393
- break;
394
- }
395
- }
396
- }
397
- else if (this.viewGenericObj.viewEnvironment != undefined &&
398
- this.viewGenericObj.viewEnvironment != "") {
399
- this.viewList.subsection[i].fullpath =
400
- this.viewGenericObj.viewEnvironment +
401
- this.viewList.subsection[i].mainInfoPath;
402
- }
403
- else {
404
- this.viewList.subsection[i].fullpath =
405
- this.viewList.subsection[i].mainInfoUrl;
406
- }
407
- }
408
- else {
409
- this.viewList.subsection[i].fullpath =
410
- this.viewList.subsection[i].mainInfoUrl;
411
- }
412
- const reqObj = this.viewList.subsection[i].reqObj || this.getList;
413
- if (this.viewList.subsection[i].reqObj !== undefined) {
414
- for (const [key, value] of Object.entries(this.viewList.subsection[i].reqObj)) {
415
- reqObj[key] =
416
- this.getList[value] ||
417
- this.viewGenericObj.dicts[value];
418
- if (reqObj[key] == undefined) {
419
- reqObj[key] = value;
420
- }
421
- }
422
- }
423
- this.http.post(this.viewList.subsection[i].fullpath, reqObj).subscribe((response) => {
424
- if (this.viewList.subsection[i].resObjName === undefined ||
425
- this.viewList.subsection[i].resObjName === "") {
426
- this.viewInfoObjList[i] = response;
427
- }
428
- else {
429
- this.viewInfoObjList[i] =
430
- response[this.viewList.subsection[i].resObjName];
431
- }
432
- this.isReady = true;
433
- }, (error) => {
434
- console.log(error);
435
- });
436
- }
437
- }
438
- }
439
- getJSON(url) {
440
- return this.http.get(url);
441
- }
442
- GetCookie(cookieService, key) {
443
- var _a, _b, _c;
444
- let value = cookieService.get(key);
445
- if (value == undefined || value.trim() == "")
446
- return null;
447
- const _key = (_c = (_b = (_a = this.viewGenericObj) === null || _a === void 0 ? void 0 : _a.environment) === null || _b === void 0 ? void 0 : _b.ChipperKeyCookie) !== null && _c !== void 0 ? _c : "AdInsFOU12345678";
448
- return this.DecryptString(value, _key);
449
- }
450
- DecryptString(chipperText, chipperKey) {
451
- if (chipperKey == undefined ||
452
- chipperKey.trim() == "" ||
453
- chipperText == undefined ||
454
- chipperText.trim() == "")
455
- return chipperText;
456
- let chipperKeyArr = CryptoJS.enc.Utf8.parse(chipperKey);
457
- let iv = CryptoJS.lib.WordArray.create([0x00, 0x00, 0x00, 0x00]);
458
- let decrypted = CryptoJS.AES.decrypt(chipperText, chipperKeyArr, {
459
- iv: iv,
460
- });
461
- let plainText = decrypted.toString(CryptoJS.enc.Utf8);
462
- return plainText;
463
- }
464
- genAction(viewObj, param) {
465
- var _a, _b, _c;
466
- let arrList = {};
467
- for (let i = 0; i < param.length; i++) {
468
- if (viewObj[param[i].type] != undefined ||
469
- viewObj[param[i].property] != undefined) {
470
- arrList[param[i].type] = viewObj[param[i].property];
471
- }
472
- else {
473
- arrList[param[i].type] = param[i].property;
474
- }
475
- }
476
- // Set state of data to router service
477
- if (!isDevMode() &&
478
- ((_c = (_b = (_a = this.viewGenericObj) === null || _a === void 0 ? void 0 : _a.environment) === null || _b === void 0 ? void 0 : _b.useSafeUrl) !== null && _c !== void 0 ? _c : false)) {
479
- return this.ngxRouter.createQueryParams(arrList);
480
- }
481
- return arrList;
482
- }
483
- genRouterLink(urlLink) {
484
- let tempLink = urlLink;
485
- if (this.viewGenericObj.navigationConst != undefined &&
486
- this.viewGenericObj.navigationConst[urlLink] != null) {
487
- tempLink = this.viewGenericObj.navigationConst[urlLink];
488
- }
489
- return tempLink;
490
- }
491
- redirectFullPath(fullpath, param, target, item) {
492
- let queryParam = "";
493
- let _fullpath = fullpath || "";
494
- if (_fullpath == "") {
495
- _fullpath = this.genFullpath(item.environment, item.path);
496
- }
497
- const ListObj = Object.keys(param);
498
- for (let i = 0; i < ListObj.length; i++) {
499
- if (queryParam != "") {
500
- queryParam = queryParam + "&" + ListObj[i] + "=" + param[ListObj[i]];
501
- }
502
- else {
503
- queryParam = ListObj[i] + "=" + param[ListObj[i]];
504
- }
505
- }
506
- window.open(_fullpath + "?" + queryParam, target);
507
- }
508
- genFullpath(environment, path) {
509
- const _envi = this.getEnvironment(environment);
510
- if (_envi === null) {
511
- return environment + path;
512
- }
513
- return _envi.url + path;
514
- }
515
- callbackFunction(item, key = "") {
516
- let CBObj = {
517
- ViewObj: item,
518
- Key: key,
519
- };
520
- this.callback.emit(CBObj);
521
- }
522
- isVisible(condList, i) {
523
- let result = true;
524
- if (condList === undefined)
525
- return result;
526
- const _temp = Object.assign(Object.assign({}, this.viewGenericObj.dicts), { dicts: Object.assign({}, this.viewGenericObj.dicts), viewData: Object.assign({}, this.viewInfoObjList[i]) });
527
- const conditions = Array.isArray(condList) ? condList : [condList];
528
- for (const criteria of conditions) {
529
- const restriction = criteria === null || criteria === void 0 ? void 0 : criteria.restriction.toUpperCase();
530
- const compareValue = this.parseValue(_temp, criteria === null || criteria === void 0 ? void 0 : criteria.value);
531
- const critValue = this.parseValue(_temp, criteria === null || criteria === void 0 ? void 0 : criteria.property);
532
- if (restriction === "EQ") {
533
- if (critValue === compareValue) {
534
- result = true;
535
- }
536
- else {
537
- result = false;
538
- break;
539
- }
540
- }
541
- else if (restriction === "NEQ") {
542
- if (critValue !== compareValue) {
543
- result = true;
544
- }
545
- else {
546
- result = false;
547
- break;
548
- }
549
- }
550
- else if (restriction === "GT") {
551
- if (critValue > compareValue) {
552
- result = true;
553
- }
554
- else {
555
- result = false;
556
- break;
557
- }
558
- }
559
- else if (restriction === "GTE") {
560
- if (critValue >= compareValue) {
561
- result = true;
562
- }
563
- else {
564
- result = false;
565
- break;
566
- }
567
- }
568
- else if (restriction === "LT") {
569
- if (critValue < compareValue) {
570
- result = true;
571
- }
572
- else {
573
- result = false;
574
- break;
575
- }
576
- }
577
- else if (restriction === "LTE") {
578
- if (critValue <= compareValue) {
579
- result = true;
580
- }
581
- else {
582
- result = false;
583
- break;
584
- }
585
- }
586
- else if (restriction === "IN") {
587
- const values = this.parseValue(_temp, criteria.value);
588
- if (values.includes(critValue)) {
589
- result = true;
590
- }
591
- else {
592
- result = false;
593
- break;
594
- }
595
- }
596
- else if (restriction === "NOTIN") {
597
- const values = this.parseValue(_temp, criteria.value);
598
- if (!values.includes(critValue)) {
599
- result = true;
600
- }
601
- else {
602
- result = false;
603
- break;
604
- }
605
- }
606
- }
607
- return result;
608
- }
609
- switchCase(item, condList) {
610
- let condition = false;
611
- if (!item)
612
- return false;
613
- for (let i = 0; i < condList.conditions.length; i++) {
614
- if (condList.conditions[i].restriction == "EQ") {
615
- if (condList.conditions[i].isUser != true) {
616
- if (item[condList.conditions[i].property] ==
617
- condList.conditions[i].value) {
618
- condition = true;
619
- }
620
- else {
621
- condition = false;
622
- break;
623
- }
624
- }
625
- else {
626
- if (item[condList.conditions[i].property] == this.UserAccess["UserName"]) {
627
- condition = true;
628
- }
629
- else {
630
- condition = false;
631
- break;
632
- }
633
- }
634
- }
635
- else if (condList.conditions[i].restriction == "NEQ") {
636
- if (condList.conditions[i].isUser != true) {
637
- if (item[condList.conditions[i].property] !=
638
- condList.conditions[i].value) {
639
- condition = true;
640
- }
641
- else {
642
- condition = false;
643
- break;
644
- }
645
- }
646
- else {
647
- if (item[condList.conditions[i].property] != this.UserAccess["UserName"]) {
648
- condition = true;
649
- }
650
- else {
651
- condition = false;
652
- break;
653
- }
654
- }
655
- }
656
- else if (condList.conditions[i].restriction == "GT") {
657
- if (condList.conditions[i].isUser != true) {
658
- if (item[condList.conditions[i].property] > condList.conditions[i].value) {
659
- condition = true;
660
- }
661
- else {
662
- condition = false;
663
- break;
664
- }
665
- }
666
- else {
667
- if (item[condList.conditions[i].property] > this.UserAccess["UserName"]) {
668
- condition = true;
669
- }
670
- else {
671
- condition = false;
672
- break;
673
- }
674
- }
675
- }
676
- else if (condList.conditions[i].restriction == "GTE") {
677
- if (condList.conditions[i].isUser != true) {
678
- if (item[condList.conditions[i].property] >=
679
- condList.conditions[i].value) {
680
- condition = true;
681
- }
682
- else {
683
- condition = false;
684
- break;
685
- }
686
- }
687
- else {
688
- if (item[condList.conditions[i].property] >= this.UserAccess["UserName"]) {
689
- condition = true;
690
- }
691
- else {
692
- condition = false;
693
- break;
694
- }
695
- }
696
- }
697
- else if (condList.conditions[i].restriction == "LT") {
698
- if (condList.conditions[i].isUser != true) {
699
- if (item[condList.conditions[i].property] < condList.conditions[i].value) {
700
- condition = true;
701
- }
702
- else {
703
- condition = false;
704
- break;
705
- }
706
- }
707
- else {
708
- if (item[condList.conditions[i].property] < this.UserAccess["UserName"]) {
709
- condition = true;
710
- }
711
- else {
712
- condition = false;
713
- break;
714
- }
715
- }
716
- }
717
- else if (condList.conditions[i].restriction == "LTE") {
718
- if (condList.conditions[i].isUser != true) {
719
- if (item[condList.conditions[i].property] <=
720
- condList.conditions[i].value) {
721
- condition = true;
722
- }
723
- else {
724
- condition = false;
725
- break;
726
- }
727
- }
728
- else {
729
- if (item[condList.conditions[i].property] <= this.UserAccess["UserName"]) {
730
- condition = true;
731
- }
732
- else {
733
- condition = false;
734
- break;
735
- }
736
- }
737
- }
738
- else if (condList.conditions[i].restriction == "IN") {
739
- if (condList.conditions[i].isUser != true) {
740
- if (condList.conditions[i].value.findIndex((x) => x == item[condList.conditions[i].property]) >= 0) {
741
- condition = true;
742
- }
743
- else {
744
- condition = false;
745
- break;
746
- }
747
- }
748
- else {
749
- if (condList.conditions[i].value.findIndex((x) => x == this.UserAccess["UserName"]) >= 0) {
750
- condition = true;
751
- }
752
- else {
753
- condition = false;
754
- break;
755
- }
756
- }
757
- }
758
- else if (condList.conditions[i].restriction == "NIN") {
759
- if (condList.conditions[i].isUser != true) {
760
- if (condList.conditions[i].value.findIndex((x) => x == item[condList.conditions[i].property]) == -1) {
761
- condition = true;
762
- }
763
- else {
764
- condition = false;
765
- break;
766
- }
767
- }
768
- else {
769
- if (condList.conditions[i].value.findIndex((x) => x == this.UserAccess["UserName"]) == -1) {
770
- condition = true;
771
- }
772
- else {
773
- condition = false;
774
- break;
775
- }
776
- }
777
- }
778
- }
779
- return condition;
780
- }
781
- isNumber(value) {
782
- if (value === null || value === undefined)
783
- return false;
784
- if (value === true || value === false)
785
- return false;
786
- if (value.length > 1 && value[0] === "0")
787
- return false;
788
- if (Array.isArray(value))
789
- return false;
790
- return !isNaN(Number(value));
791
- }
792
- isBoolean(value) {
793
- return (typeof value === "string" &&
794
- (value.toLowerCase() === "true" || value.toLowerCase() === "false"));
795
- }
796
- parseValue(object, property) {
797
- if (property === "") {
798
- return property;
799
- }
800
- if (property === "[]") {
801
- return [];
802
- }
803
- if (property !== "" && this.isNumber(property)) {
804
- return parseFloat(property);
805
- }
806
- if (this.isBoolean(property)) {
807
- return property.toLowerCase() === "true";
808
- }
809
- if (typeof property === "boolean") {
810
- return property;
811
- }
812
- const properties = property.split(".");
813
- let value = object;
814
- for (const prop of properties) {
815
- if (value.hasOwnProperty(prop)) {
816
- value = value[prop];
817
- }
818
- else {
819
- return property;
820
- }
821
- }
822
- if (value !== "" && this.isNumber(value)) {
823
- value = parseFloat(value);
824
- }
825
- if (this.isBoolean(value)) {
826
- value = value.toLowerCase() === "true";
827
- }
828
- if (value === null || value === "null") {
829
- value = "";
830
- }
831
- return value;
832
- }
833
- }
834
- /** @nocollapse */ UcviewgenericComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: UcviewgenericComponent, deps: [{ token: i1.ActivatedRoute }, { token: i2.HttpClient }, { token: i3.TranslateService }, { token: i4.CookieService }, { token: i5.NgxRouterService }], target: i0.ɵɵFactoryTarget.Component });
835
- /** @nocollapse */ UcviewgenericComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: UcviewgenericComponent, selector: "lib-ucviewgeneric", inputs: { viewGenericObj: "viewGenericObj", gridViewObj: "gridViewObj", refresh: "refresh" }, outputs: { callback: "callback" }, ngImport: i0, template: "<!-- DO NOT BEAUTIFY / PRETTIFY THIS FILE - will cause the label cannot be highlighted/selected for copy -->\r\n<span hidden attr.version=\"3.4.18-canary.0\"></span>\r\n<section id=\"horizontal-form-layouts\">\r\n\t<div class=\"row text-left\">\r\n\t\t<div class=\"col-md-12\">\r\n\t\t\t<div [ngClass]=\"IsCard ? 'card' : ''\" *ngIf=\"isReady\">\r\n\t\t\t\t<!-- <div class=\"pl-3 mb-2 mt-2\" *ngIf=\"viewList?.title != ''\">\r\n\t\t\t\t\t<h4 class=\"card-title ucSearch-title\" id=\"horz-layout-colored-controls\" translate>{{viewList.title}}</h4>\r\n\t\t\t\t</div> -->\r\n\t\t\t\t<div class=\"card-body\" *ngFor=\"let ss of viewList?.subsection;let i = index;\">\r\n\t\t\t\t\t<div>\r\n\t\t\t\t\t\t<lib-ucSubsection *ngIf=\"ss.subsection != ''\" [id]=\"ss.subSectionId + 'id'\" [title]=\"ss.subSectionTitle\"\r\n\t\t\t\t\t\t\t[panel]=\"ss.subSectionId\" [legacy]=\"false\" (collapse)=\"onCollapse($event)\">\r\n\t\t\t\t\t\t</lib-ucSubsection>\r\n\t\t\t\t\t\t<div class=\"form-body border-top border-bottom\" [id]='ss.subSectionId' [(ngbCollapse)]=\"isCollapsed\">\r\n\t\t\t\t\t\t\t<div class=\"p-3\">\r\n\t\t\t\t\t\t\t\t<div class=\"form-group row\">\r\n\t\t\t\t\t\t\t\t\t<ng-container *ngFor=\"let mi of ss?.mainInfo\">\r\n\t\t\t\t\t\t\t\t\t\t<div *ngIf=\"isVisible(mi?.conditions, i)\"\r\n\t\t\t\t\t\t\t\t\t\t\t[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\t\t\t\t\t\t\t\t\t\t\t<span\r\n\t\t\t\t\t\t\t\t\t\t\t\t*ngIf=\"mi.isHide == undefined || !mi.isHide || (viewInfoObjList[i][mi.property] != '' && viewInfoObjList[i][mi.property] != null)\">\r\n\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"row\">\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"col-md-12\" *ngIf=\"mi.type != 'switch'\">\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<label class=\"label-control label-field\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t[ngClass]=\"mi.customClassLabel != undefined ? mi.customClassLabel : ''\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttranslate>{{mi.label}}</label>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"col-md-12\" *ngIf=\"mi.type == 'switch'\">\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div *ngFor=\"let case of mi?.case\">\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div *ngIf=\"switchCase(viewInfoObjList[i],case)\">\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<label class=\"label-control label-field\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t[ngClass]=\"mi.customClassLabel != undefined ? mi.customClassLabel : ''\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttranslate>{{case.result.label}}</label>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t<div *ngIf=\"viewInfoObjList[i] != undefined\" class=\"col-md-12\" [ngClass]=\"{ 'text-left': mi.position == 'left',\r\n\t\t\t\t\t\t\t\t\t\t\t 'text-right': mi.position == 'right', 'text-center': mi.position == 'center' }\">\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t*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\t\t\t\t\t\t\t\t\t\t\t\t\t\t<ng-template #emptyLabel>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<label *ngIf=\"mi.type == 'blank'\"></label>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<label *ngIf=\"mi.type != 'blank'\" class=\"label-control label-field\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t[ngClass]=\"mi.customClassProperty != undefined ? mi.customClassProperty : ''\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttranslate>-</label>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</ng-template>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<ng-template #nonEmptyLabel>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span *ngIf=\"mi.type == 'text'\">\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<label\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t*ngIf=\"viewInfoObjList[i][mi.property] != '' && viewInfoObjList[i][mi.property] != null\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tclass=\"label-control breakword item-field\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t[ngClass]=\"mi.customClassProperty != undefined ? mi.customClassProperty : ''\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttranslate>{{ viewInfoObjList[i][mi.property] }}</label>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<label\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t*ngIf=\"viewInfoObjList[i][mi.property] == '' || viewInfoObjList[i][mi.property] == null\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tclass=\"label-control label-field\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t[ngClass]=\"mi.customClassProperty != undefined ? mi.customClassProperty : ''\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttranslate>-\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</label>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</span>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<label *ngIf=\"mi.type == 'currency'\" class=\"label-control item-field\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t[ngClass]=\"mi.customClassProperty != undefined ? mi.customClassProperty : ''\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttranslate>{{ viewInfoObjList[i][mi.property] | number: mi?.precision ? mi?.precision :\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'0.2' :'en-US' }} <span *ngIf=\"mi?.IsPrcnt\">&nbsp;%</span> </label>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<label *ngIf=\"mi.type == 'date'\" class=\"label-control item-field\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t[ngClass]=\"mi.customClassProperty != undefined ? mi.customClassProperty : ''\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttranslate>{{ viewInfoObjList[i][mi.property] | ucdate: (mi?.dateFormat) ? mi?.dateFormat\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t: 'dd-MMM-yyyy' }} </label>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<label *ngIf=\"mi.type == 'link'\" class=\"label-control item-field\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t[ngClass]=\"mi.customClassProperty != undefined ? mi.customClassProperty : ''\" translate>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<a *ngIf=\"!mi?.isFullpath\" class=\"d-block text-truncate\" style=\"max-width: 270px\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t[title]=\"viewInfoObjList[i][mi.property]\" [routerLink]=\"genRouterLink(mi.path)\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t[target]=\"mi.target\" [queryParams]=\"genAction(viewInfoObjList[i], mi.param)\">\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span *ngIf=\"(mi.isCurrency != undefined && mi.isCurrency)\">{{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tviewInfoObjList[i][mi.property] | number:'.2':'en-US' }}</span>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span *ngIf=\"(mi.isCurrency == undefined || !mi.isCurrency)\">{{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tviewInfoObjList[i][mi.property] }}</span>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</a>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<a *ngIf=\"mi?.isFullpath\" href=\"javascript:void(0);\" class=\"d-block text-truncate\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tstyle=\"max-width: 270px\" [title]=\"viewInfoObjList[i][mi.property]\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t(click)=\"redirectFullPath(mi.fullpath, genAction(viewInfoObjList[i], mi.param), mi.target, mi)\">\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span *ngIf=\"(mi.isCurrency != undefined && mi.isCurrency)\">{{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tviewInfoObjList[i][mi.property] | number:'.2':'en-US' }}</span>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span *ngIf=\"(mi.isCurrency == undefined || !mi.isCurrency)\">{{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tviewInfoObjList[i][mi.property] }}</span>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</a>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</label>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<label *ngIf=\"mi.type == 'callback'\" class=\"label-control label-field\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t[ngClass]=\"mi.customClassProperty != undefined ? mi.customClassProperty : ''\" translate>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<a href=\"javascript:void(0);\" (click)=\"callbackFunction(viewInfoObjList[i], mi.key)\">{{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tviewInfoObjList[i][mi.property] }}</a>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</label>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<textarea *ngIf=\"mi.type == 'textarea'\" class=\"form-control\" readonly\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t[ngClass]=\"mi.customClassProperty != undefined ? mi.customClassProperty : ''\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttranslate>{{ viewInfoObjList[i][mi.property] }}</textarea>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span *ngIf=\"mi.type == 'boolean'\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t[ngClass]=\"mi.customClassProperty != undefined ? mi.customClassProperty : ''\" translate>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<label class=\"label-control item-field\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t*ngIf=\"viewInfoObjList[i][mi.property] == true\">Yes</label>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<label class=\"label-control item-field\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t*ngIf=\"viewInfoObjList[i][mi.property] == false\">No</label>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<!-- <label\r\n\t\t\t\t\t\t\t\t\t\t\t *ngIf=\"viewInfoObjList[i][mi.property] == '' || viewInfoObjList[i][mi.property] == null\">-</label> -->\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</span>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span *ngIf=\"mi.type == 'concat'\">\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<label class=\"label-control breakword item-field\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t[ngClass]=\"mi.customClassProperty != undefined ? mi.customClassProperty : ''\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttranslate>{{ mi.concat }}</label>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</span>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span *ngIf=\"mi.type == 'switch'\">\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span *ngFor=\"let cs of mi?.case\">\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span *ngIf=\"switchCase(viewInfoObjList[i],cs) && !cs.Hidden\">\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"label-control breakword item-field\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t[ngClass]=\"mi.customClassProperty != undefined ? mi.customClassProperty : ''\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttranslate *ngIf=\"cs.result.type == 'text'\">{{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tviewInfoObjList[i][cs.result.property] }}</span>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span *ngIf=\"cs.result.type == 'decimal'\">\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<label class=\"label-control breakword item-field\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t[ngClass]=\"mi.customClassProperty != undefined ? mi.customClassProperty : ''\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttranslate>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span>{{ viewInfoObjList[i][cs.result.property] | number: cs.result.precision ?\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tcs.result.precision : '0.2' :'en-US' }}</span>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span *ngIf=\"cs.result.IsPrcnt\">&nbsp;%</span>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</label>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</span>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span *ngIf=\"cs.result.type == 'date'\">\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<label class=\"label-control breakword item-field\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t[ngClass]=\"mi.customClassProperty != undefined ? mi.customClassProperty : ''\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttranslate>{{ viewInfoObjList[i][cs.result.property] | ucdate: 'dd-MMM-yyyy'\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}}</label>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</span>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span *ngIf=\"cs.result.type == 'link'\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t[ngClass]=\"mi.customClassProperty != undefined ? mi.customClassProperty : ''\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tclass=\"label-control item-field\" translate>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<a class=\"d-block text-truncate\" style=\"max-width: 270px\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t[title]=\"viewInfoObjList[i][cs.result.property]\" [target]=\"cs.result.target\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t[routerLink]=\"genRouterLink(cs.result.path)\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t[queryParams]=\"genAction(viewInfoObjList[i],cs.result.param)\">\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span *ngIf=\"(mi.isCurrency != undefined && mi.isCurrency)\">{{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tviewInfoObjList[i][cs.result.property] | number:'.2':'en-US' }}</span>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span *ngIf=\"(mi.isCurrency == undefined || !mi.isCurrency)\">{{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tviewInfoObjList[i][cs.result.property] }}</span>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</a>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</span>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span *ngIf=\"cs.result.type == 'boolean'\">\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<label class=\"label-control breakword item-field\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t[ngClass]=\"mi.customClassProperty != undefined ? mi.customClassProperty : ''\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttranslate>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t*ngIf=\"viewInfoObjList[i][cs.result.property] == 'true' || viewInfoObjList[i][cs.result.property] == true\">Yes</span>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t*ngIf=\"viewInfoObjList[i][cs.result.property] == 'false' || viewInfoObjList[i][cs.result.property] == false\">No</span>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</label>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</span>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span *ngIf=\"cs.result.type == 'concat'\">\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<label class=\"label-control breakword item-field\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t[ngClass]=\"mi.customClassProperty != undefined ? mi.customClassProperty : ''\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttranslate>{{ cs.result.concat }}</label>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</span>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span *ngIf=\"cs.result.type == 'callback'\">\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t*ngIf=\"cs.result.isText != undefined && cs.result.isText; then textCallback else iconCallback\"></span>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<ng-template #textCallback>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<a class=\"a-link\" href=\"javascript:void(0);\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t(click)=\"callbackFunction(viewInfoObjList[i], cs.result.key)\">{{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tviewInfoObjList[i][cs.result.property] }}</a>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</span>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</ng-template>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<ng-template #iconCallback>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<a [ngClass]=\"[cs.result.tooltip != undefined && cs.result.tooltip != '' ? 'tooltips' : '', cs.result.anchor == undefined || cs.result.anchor == '' ? 'a-link p-0' : cs.result.anchor]\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t(click)=\"callbackFunction(viewInfoObjList[i], cs.result.key)\">\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<i class=\"font-medium-3 mr-2\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t[ngClass]=\" cs.result.icon == undefined || cs.result.icon == '' ? 'ft-edit-2' : cs.result.icon \">\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</i>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span *ngIf=\"cs.result.tooltip != undefined && cs.result.tooltip != ''\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t[ngClass]=\"cs.result.tooltip != undefined && cs.result.tooltip != '' ? 'tooltipstext' : ''\">{{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tcs.result.tooltip }}</span>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</a>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</span>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</ng-template>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</span>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</span>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</span>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</span>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</ng-template>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\t\t\t\t\t</span>\r\n\t\t\t\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\t\t\t</ng-container>\r\n\t\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\t</div>\r\n\r\n\t\t\t\t\t\t\t<div class=\"grid-view pb-3\" *ngIf=\"gridViewObj.gridViews.length > 0\">\r\n\t\t\t\t\t\t\t\t<div *ngFor=\"let gridView of inputGridViewObjs; let i = index\">\r\n\t\t\t\t\t\t\t\t\t<lib-ucSubsection\r\n\t\t\t\t\t\t\t\t\t\t*ngIf=\"gridViewObj.gridViews[i].subsection && gridViewObj.gridViews[i].subsection !== ''\"\r\n\t\t\t\t\t\t\t\t\t\t[id]=\"'grid-subsection-id'+i\" [title]=\"gridViewObj.gridViews[i].subsection\"\r\n\t\t\t\t\t\t\t\t\t\t[panel]=\"'grid-subsection-panel-'+i\">\r\n\t\t\t\t\t\t\t\t\t</lib-ucSubsection>\r\n\t\t\t\t\t\t\t\t\t<div class=\"form-body\" [id]=\"'grid-subsection-panel-'+i\">\r\n\t\t\t\t\t\t\t\t\t\t<!-- <lib-ucgridview [gridInput]=\"gridView\" (callback)=\"gridEvent($event)\" (isRefresh)=\"GetGridViewData(gridViewObj.gridViews[i], gridView)\"></lib-ucgridview>-->\r\n\t\t\t\t\t\t\t\t\t\t<lib-uctable [gridObj]=\"gridView\" [standalone]=\"false\" (callback)=\"gridEvent($event)\"\r\n\t\t\t\t\t\t\t\t\t\t\t[classPadding]=\"'px-0'\"></lib-uctable>\r\n\t\t\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t</div>\r\n\t\t\t\t\t</div>\r\n\t\t\t\t</div>\r\n\t\t\t</div>\r\n\t\t</div>\r\n\t</div>\r\n</section>", styles: [".label-field{color:var(--gray-font-2, #A1A3A5);font-size:12px!important;font-weight:500}.item-field{color:var(--Black_1, #3A4060);font-size:14px!important}.label-control{padding:0!important}.label-control>a{color:var(--blue, #246CFE)}.a-link{color:var(--blue, #246CFE);font-size:14px!important}@media (min-width: 1366px){.col-xxl-2{flex:0 0 20%;max-width:20%}}\n"], dependencies: [{ kind: "directive", type: i6.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i6.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i6.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "component", type: i7.UcSubsectionComponent, selector: "lib-ucSubsection", inputs: ["title", "panel", "id", "legacy", "isHidden"], outputs: ["collapse"] }, { kind: "directive", type: i8.NgbCollapse, selector: "[ngbCollapse]", inputs: ["animation", "ngbCollapse", "horizontal"], outputs: ["ngbCollapseChange", "shown", "hidden"], exportAs: ["ngbCollapse"] }, { kind: "component", type: i9.UctableComponent, selector: "lib-uctable", inputs: ["pageSize", "gridObj", "notify", "notifyUpdateFooter", "btnCallback", "dicts", "standalone", "classPadding"], outputs: ["callback", "cbUpdateDict"] }, { kind: "directive", type: i3.TranslateDirective, selector: "[translate],[ngx-translate]", inputs: ["translate", "translateParams"] }, { kind: "pipe", type: i6.DecimalPipe, name: "number" }, { kind: "pipe", type: i10.UcDatePipe, name: "ucdate" }] });
836
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: UcviewgenericComponent, decorators: [{
837
- type: Component,
838
- args: [{ selector: "lib-ucviewgeneric", standalone: false, template: "<!-- DO NOT BEAUTIFY / PRETTIFY THIS FILE - will cause the label cannot be highlighted/selected for copy -->\r\n<span hidden attr.version=\"3.4.18-canary.0\"></span>\r\n<section id=\"horizontal-form-layouts\">\r\n\t<div class=\"row text-left\">\r\n\t\t<div class=\"col-md-12\">\r\n\t\t\t<div [ngClass]=\"IsCard ? 'card' : ''\" *ngIf=\"isReady\">\r\n\t\t\t\t<!-- <div class=\"pl-3 mb-2 mt-2\" *ngIf=\"viewList?.title != ''\">\r\n\t\t\t\t\t<h4 class=\"card-title ucSearch-title\" id=\"horz-layout-colored-controls\" translate>{{viewList.title}}</h4>\r\n\t\t\t\t</div> -->\r\n\t\t\t\t<div class=\"card-body\" *ngFor=\"let ss of viewList?.subsection;let i = index;\">\r\n\t\t\t\t\t<div>\r\n\t\t\t\t\t\t<lib-ucSubsection *ngIf=\"ss.subsection != ''\" [id]=\"ss.subSectionId + 'id'\" [title]=\"ss.subSectionTitle\"\r\n\t\t\t\t\t\t\t[panel]=\"ss.subSectionId\" [legacy]=\"false\" (collapse)=\"onCollapse($event)\">\r\n\t\t\t\t\t\t</lib-ucSubsection>\r\n\t\t\t\t\t\t<div class=\"form-body border-top border-bottom\" [id]='ss.subSectionId' [(ngbCollapse)]=\"isCollapsed\">\r\n\t\t\t\t\t\t\t<div class=\"p-3\">\r\n\t\t\t\t\t\t\t\t<div class=\"form-group row\">\r\n\t\t\t\t\t\t\t\t\t<ng-container *ngFor=\"let mi of ss?.mainInfo\">\r\n\t\t\t\t\t\t\t\t\t\t<div *ngIf=\"isVisible(mi?.conditions, i)\"\r\n\t\t\t\t\t\t\t\t\t\t\t[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\t\t\t\t\t\t\t\t\t\t\t<span\r\n\t\t\t\t\t\t\t\t\t\t\t\t*ngIf=\"mi.isHide == undefined || !mi.isHide || (viewInfoObjList[i][mi.property] != '' && viewInfoObjList[i][mi.property] != null)\">\r\n\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"row\">\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"col-md-12\" *ngIf=\"mi.type != 'switch'\">\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<label class=\"label-control label-field\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t[ngClass]=\"mi.customClassLabel != undefined ? mi.customClassLabel : ''\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttranslate>{{mi.label}}</label>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"col-md-12\" *ngIf=\"mi.type == 'switch'\">\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div *ngFor=\"let case of mi?.case\">\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div *ngIf=\"switchCase(viewInfoObjList[i],case)\">\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<label class=\"label-control label-field\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t[ngClass]=\"mi.customClassLabel != undefined ? mi.customClassLabel : ''\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttranslate>{{case.result.label}}</label>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t<div *ngIf=\"viewInfoObjList[i] != undefined\" class=\"col-md-12\" [ngClass]=\"{ 'text-left': mi.position == 'left',\r\n\t\t\t\t\t\t\t\t\t\t\t 'text-right': mi.position == 'right', 'text-center': mi.position == 'center' }\">\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t*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\t\t\t\t\t\t\t\t\t\t\t\t\t\t<ng-template #emptyLabel>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<label *ngIf=\"mi.type == 'blank'\"></label>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<label *ngIf=\"mi.type != 'blank'\" class=\"label-control label-field\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t[ngClass]=\"mi.customClassProperty != undefined ? mi.customClassProperty : ''\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttranslate>-</label>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</ng-template>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<ng-template #nonEmptyLabel>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span *ngIf=\"mi.type == 'text'\">\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<label\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t*ngIf=\"viewInfoObjList[i][mi.property] != '' && viewInfoObjList[i][mi.property] != null\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tclass=\"label-control breakword item-field\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t[ngClass]=\"mi.customClassProperty != undefined ? mi.customClassProperty : ''\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttranslate>{{ viewInfoObjList[i][mi.property] }}</label>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<label\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t*ngIf=\"viewInfoObjList[i][mi.property] == '' || viewInfoObjList[i][mi.property] == null\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tclass=\"label-control label-field\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t[ngClass]=\"mi.customClassProperty != undefined ? mi.customClassProperty : ''\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttranslate>-\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</label>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</span>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<label *ngIf=\"mi.type == 'currency'\" class=\"label-control item-field\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t[ngClass]=\"mi.customClassProperty != undefined ? mi.customClassProperty : ''\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttranslate>{{ viewInfoObjList[i][mi.property] | number: mi?.precision ? mi?.precision :\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'0.2' :'en-US' }} <span *ngIf=\"mi?.IsPrcnt\">&nbsp;%</span> </label>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<label *ngIf=\"mi.type == 'date'\" class=\"label-control item-field\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t[ngClass]=\"mi.customClassProperty != undefined ? mi.customClassProperty : ''\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttranslate>{{ viewInfoObjList[i][mi.property] | ucdate: (mi?.dateFormat) ? mi?.dateFormat\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t: 'dd-MMM-yyyy' }} </label>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<label *ngIf=\"mi.type == 'link'\" class=\"label-control item-field\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t[ngClass]=\"mi.customClassProperty != undefined ? mi.customClassProperty : ''\" translate>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<a *ngIf=\"!mi?.isFullpath\" class=\"d-block text-truncate\" style=\"max-width: 270px\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t[title]=\"viewInfoObjList[i][mi.property]\" [routerLink]=\"genRouterLink(mi.path)\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t[target]=\"mi.target\" [queryParams]=\"genAction(viewInfoObjList[i], mi.param)\">\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span *ngIf=\"(mi.isCurrency != undefined && mi.isCurrency)\">{{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tviewInfoObjList[i][mi.property] | number:'.2':'en-US' }}</span>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span *ngIf=\"(mi.isCurrency == undefined || !mi.isCurrency)\">{{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tviewInfoObjList[i][mi.property] }}</span>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</a>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<a *ngIf=\"mi?.isFullpath\" href=\"javascript:void(0);\" class=\"d-block text-truncate\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tstyle=\"max-width: 270px\" [title]=\"viewInfoObjList[i][mi.property]\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t(click)=\"redirectFullPath(mi.fullpath, genAction(viewInfoObjList[i], mi.param), mi.target, mi)\">\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span *ngIf=\"(mi.isCurrency != undefined && mi.isCurrency)\">{{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tviewInfoObjList[i][mi.property] | number:'.2':'en-US' }}</span>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span *ngIf=\"(mi.isCurrency == undefined || !mi.isCurrency)\">{{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tviewInfoObjList[i][mi.property] }}</span>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</a>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</label>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<label *ngIf=\"mi.type == 'callback'\" class=\"label-control label-field\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t[ngClass]=\"mi.customClassProperty != undefined ? mi.customClassProperty : ''\" translate>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<a href=\"javascript:void(0);\" (click)=\"callbackFunction(viewInfoObjList[i], mi.key)\">{{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tviewInfoObjList[i][mi.property] }}</a>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</label>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<textarea *ngIf=\"mi.type == 'textarea'\" class=\"form-control\" readonly\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t[ngClass]=\"mi.customClassProperty != undefined ? mi.customClassProperty : ''\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttranslate>{{ viewInfoObjList[i][mi.property] }}</textarea>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span *ngIf=\"mi.type == 'boolean'\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t[ngClass]=\"mi.customClassProperty != undefined ? mi.customClassProperty : ''\" translate>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<label class=\"label-control item-field\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t*ngIf=\"viewInfoObjList[i][mi.property] == true\">Yes</label>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<label class=\"label-control item-field\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t*ngIf=\"viewInfoObjList[i][mi.property] == false\">No</label>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<!-- <label\r\n\t\t\t\t\t\t\t\t\t\t\t *ngIf=\"viewInfoObjList[i][mi.property] == '' || viewInfoObjList[i][mi.property] == null\">-</label> -->\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</span>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span *ngIf=\"mi.type == 'concat'\">\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<label class=\"label-control breakword item-field\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t[ngClass]=\"mi.customClassProperty != undefined ? mi.customClassProperty : ''\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttranslate>{{ mi.concat }}</label>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</span>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span *ngIf=\"mi.type == 'switch'\">\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span *ngFor=\"let cs of mi?.case\">\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span *ngIf=\"switchCase(viewInfoObjList[i],cs) && !cs.Hidden\">\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"label-control breakword item-field\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t[ngClass]=\"mi.customClassProperty != undefined ? mi.customClassProperty : ''\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttranslate *ngIf=\"cs.result.type == 'text'\">{{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tviewInfoObjList[i][cs.result.property] }}</span>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span *ngIf=\"cs.result.type == 'decimal'\">\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<label class=\"label-control breakword item-field\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t[ngClass]=\"mi.customClassProperty != undefined ? mi.customClassProperty : ''\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttranslate>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span>{{ viewInfoObjList[i][cs.result.property] | number: cs.result.precision ?\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tcs.result.precision : '0.2' :'en-US' }}</span>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span *ngIf=\"cs.result.IsPrcnt\">&nbsp;%</span>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</label>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</span>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span *ngIf=\"cs.result.type == 'date'\">\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<label class=\"label-control breakword item-field\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t[ngClass]=\"mi.customClassProperty != undefined ? mi.customClassProperty : ''\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttranslate>{{ viewInfoObjList[i][cs.result.property] | ucdate: 'dd-MMM-yyyy'\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}}</label>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</span>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span *ngIf=\"cs.result.type == 'link'\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t[ngClass]=\"mi.customClassProperty != undefined ? mi.customClassProperty : ''\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tclass=\"label-control item-field\" translate>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<a class=\"d-block text-truncate\" style=\"max-width: 270px\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t[title]=\"viewInfoObjList[i][cs.result.property]\" [target]=\"cs.result.target\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t[routerLink]=\"genRouterLink(cs.result.path)\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t[queryParams]=\"genAction(viewInfoObjList[i],cs.result.param)\">\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span *ngIf=\"(mi.isCurrency != undefined && mi.isCurrency)\">{{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tviewInfoObjList[i][cs.result.property] | number:'.2':'en-US' }}</span>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span *ngIf=\"(mi.isCurrency == undefined || !mi.isCurrency)\">{{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tviewInfoObjList[i][cs.result.property] }}</span>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</a>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</span>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span *ngIf=\"cs.result.type == 'boolean'\">\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<label class=\"label-control breakword item-field\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t[ngClass]=\"mi.customClassProperty != undefined ? mi.customClassProperty : ''\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttranslate>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t*ngIf=\"viewInfoObjList[i][cs.result.property] == 'true' || viewInfoObjList[i][cs.result.property] == true\">Yes</span>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t*ngIf=\"viewInfoObjList[i][cs.result.property] == 'false' || viewInfoObjList[i][cs.result.property] == false\">No</span>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</label>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</span>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span *ngIf=\"cs.result.type == 'concat'\">\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<label class=\"label-control breakword item-field\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t[ngClass]=\"mi.customClassProperty != undefined ? mi.customClassProperty : ''\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttranslate>{{ cs.result.concat }}</label>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</span>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span *ngIf=\"cs.result.type == 'callback'\">\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t*ngIf=\"cs.result.isText != undefined && cs.result.isText; then textCallback else iconCallback\"></span>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<ng-template #textCallback>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<a class=\"a-link\" href=\"javascript:void(0);\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t(click)=\"callbackFunction(viewInfoObjList[i], cs.result.key)\">{{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tviewInfoObjList[i][cs.result.property] }}</a>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</span>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</ng-template>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<ng-template #iconCallback>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<a [ngClass]=\"[cs.result.tooltip != undefined && cs.result.tooltip != '' ? 'tooltips' : '', cs.result.anchor == undefined || cs.result.anchor == '' ? 'a-link p-0' : cs.result.anchor]\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t(click)=\"callbackFunction(viewInfoObjList[i], cs.result.key)\">\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<i class=\"font-medium-3 mr-2\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t[ngClass]=\" cs.result.icon == undefined || cs.result.icon == '' ? 'ft-edit-2' : cs.result.icon \">\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</i>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span *ngIf=\"cs.result.tooltip != undefined && cs.result.tooltip != ''\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t[ngClass]=\"cs.result.tooltip != undefined && cs.result.tooltip != '' ? 'tooltipstext' : ''\">{{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tcs.result.tooltip }}</span>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</a>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</span>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</ng-template>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</span>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</span>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</span>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</span>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</ng-template>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\t\t\t\t\t</span>\r\n\t\t\t\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\t\t\t</ng-container>\r\n\t\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\t</div>\r\n\r\n\t\t\t\t\t\t\t<div class=\"grid-view pb-3\" *ngIf=\"gridViewObj.gridViews.length > 0\">\r\n\t\t\t\t\t\t\t\t<div *ngFor=\"let gridView of inputGridViewObjs; let i = index\">\r\n\t\t\t\t\t\t\t\t\t<lib-ucSubsection\r\n\t\t\t\t\t\t\t\t\t\t*ngIf=\"gridViewObj.gridViews[i].subsection && gridViewObj.gridViews[i].subsection !== ''\"\r\n\t\t\t\t\t\t\t\t\t\t[id]=\"'grid-subsection-id'+i\" [title]=\"gridViewObj.gridViews[i].subsection\"\r\n\t\t\t\t\t\t\t\t\t\t[panel]=\"'grid-subsection-panel-'+i\">\r\n\t\t\t\t\t\t\t\t\t</lib-ucSubsection>\r\n\t\t\t\t\t\t\t\t\t<div class=\"form-body\" [id]=\"'grid-subsection-panel-'+i\">\r\n\t\t\t\t\t\t\t\t\t\t<!-- <lib-ucgridview [gridInput]=\"gridView\" (callback)=\"gridEvent($event)\" (isRefresh)=\"GetGridViewData(gridViewObj.gridViews[i], gridView)\"></lib-ucgridview>-->\r\n\t\t\t\t\t\t\t\t\t\t<lib-uctable [gridObj]=\"gridView\" [standalone]=\"false\" (callback)=\"gridEvent($event)\"\r\n\t\t\t\t\t\t\t\t\t\t\t[classPadding]=\"'px-0'\"></lib-uctable>\r\n\t\t\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t</div>\r\n\t\t\t\t\t</div>\r\n\t\t\t\t</div>\r\n\t\t\t</div>\r\n\t\t</div>\r\n\t</div>\r\n</section>", styles: [".label-field{color:var(--gray-font-2, #A1A3A5);font-size:12px!important;font-weight:500}.item-field{color:var(--Black_1, #3A4060);font-size:14px!important}.label-control{padding:0!important}.label-control>a{color:var(--blue, #246CFE)}.a-link{color:var(--blue, #246CFE);font-size:14px!important}@media (min-width: 1366px){.col-xxl-2{flex:0 0 20%;max-width:20%}}\n"] }]
839
- }], ctorParameters: function () { return [{ type: i1.ActivatedRoute }, { type: i2.HttpClient }, { type: i3.TranslateService }, { type: i4.CookieService }, { type: i5.NgxRouterService }]; }, propDecorators: { viewGenericObj: [{
840
- type: Input
841
- }], gridViewObj: [{
842
- type: Input
843
- }], refresh: [{
844
- type: Input
845
- }], callback: [{
846
- type: Output
847
- }] } });
848
-
849
- class UcviewgenericModule {
850
- }
851
- /** @nocollapse */ UcviewgenericModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: UcviewgenericModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
852
- /** @nocollapse */ UcviewgenericModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: UcviewgenericModule, declarations: [UcviewgenericComponent], imports: [CommonModule,
853
- RouterModule,
854
- UcSubsectionModule,
855
- UcgridviewModule,
856
- UctableModule,
857
- NgbCollapseModule,
858
- UcdatepipeModule, i3.TranslateModule], exports: [UcviewgenericComponent] });
859
- /** @nocollapse */ UcviewgenericModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: UcviewgenericModule, imports: [CommonModule,
860
- RouterModule,
861
- UcSubsectionModule,
862
- UcgridviewModule,
863
- UctableModule,
864
- NgbCollapseModule,
865
- UcdatepipeModule,
866
- TranslateModule.forChild()] });
867
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: UcviewgenericModule, decorators: [{
868
- type: NgModule,
869
- args: [{
870
- declarations: [UcviewgenericComponent],
871
- imports: [
872
- CommonModule,
873
- RouterModule,
874
- UcSubsectionModule,
875
- UcgridviewModule,
876
- UctableModule,
877
- NgbCollapseModule,
878
- UcdatepipeModule,
879
- TranslateModule.forChild(),
880
- ],
881
- exports: [UcviewgenericComponent],
882
- }]
883
- }] });
884
-
885
- /*
886
- * Public API Surface of ucviewgeneric
887
- */
888
-
889
- /**
890
- * Generated bundle index. Do not edit.
891
- */
892
-
893
- export { UcviewgenericComponent, UcviewgenericModule, UcviewgenericService };
894
- //# sourceMappingURL=adins-ucviewgeneric.mjs.map