@adins/ucviewgeneric 2.3.3 → 2.4.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.
Files changed (41) hide show
  1. package/README.md +3 -2
  2. package/adins-ucviewgeneric.d.ts +1 -0
  3. package/esm2020/adins-ucviewgeneric.mjs +5 -0
  4. package/esm2020/lib/model/envi-obj.model.mjs +7 -0
  5. package/esm2020/lib/model/uc-view-generic-obj.model.mjs +29 -0
  6. package/esm2020/lib/ucviewgeneric.component.mjs +411 -0
  7. package/esm2020/lib/ucviewgeneric.module.mjs +34 -0
  8. package/esm2020/lib/ucviewgeneric.service.mjs +14 -0
  9. package/esm2020/public-api.mjs +7 -0
  10. package/fesm2015/adins-ucviewgeneric.mjs +488 -0
  11. package/fesm2015/adins-ucviewgeneric.mjs.map +1 -0
  12. package/fesm2020/adins-ucviewgeneric.mjs +488 -0
  13. package/fesm2020/adins-ucviewgeneric.mjs.map +1 -0
  14. package/lib/model/uc-view-generic-obj.model.d.ts +1 -0
  15. package/lib/ucviewgeneric.component.d.ts +5 -0
  16. package/lib/ucviewgeneric.module.d.ts +9 -0
  17. package/lib/ucviewgeneric.service.d.ts +3 -0
  18. package/package.json +24 -13
  19. package/adins-ucviewgeneric.metadata.json +0 -1
  20. package/bundles/adins-ucviewgeneric.umd.js +0 -643
  21. package/bundles/adins-ucviewgeneric.umd.js.map +0 -1
  22. package/bundles/adins-ucviewgeneric.umd.min.js +0 -2
  23. package/bundles/adins-ucviewgeneric.umd.min.js.map +0 -1
  24. package/esm2015/adins-ucviewgeneric.js +0 -9
  25. package/esm2015/lib/model/envi-obj.model.js +0 -17
  26. package/esm2015/lib/model/uc-view-generic-obj.model.js +0 -63
  27. package/esm2015/lib/ucviewgeneric.component.js +0 -557
  28. package/esm2015/lib/ucviewgeneric.module.js +0 -25
  29. package/esm2015/lib/ucviewgeneric.service.js +0 -18
  30. package/esm2015/public-api.js +0 -11
  31. package/esm5/adins-ucviewgeneric.js +0 -9
  32. package/esm5/lib/model/envi-obj.model.js +0 -19
  33. package/esm5/lib/model/uc-view-generic-obj.model.js +0 -71
  34. package/esm5/lib/ucviewgeneric.component.js +0 -613
  35. package/esm5/lib/ucviewgeneric.module.js +0 -29
  36. package/esm5/lib/ucviewgeneric.service.js +0 -21
  37. package/esm5/public-api.js +0 -11
  38. package/fesm2015/adins-ucviewgeneric.js +0 -585
  39. package/fesm2015/adins-ucviewgeneric.js.map +0 -1
  40. package/fesm5/adins-ucviewgeneric.js +0 -646
  41. package/fesm5/adins-ucviewgeneric.js.map +0 -1
@@ -0,0 +1,34 @@
1
+ import { NgModule } from '@angular/core';
2
+ import { UcviewgenericComponent } from './ucviewgeneric.component';
3
+ import { CommonModule } from '@angular/common';
4
+ import { RouterModule } from '@angular/router';
5
+ import { UcSubsectionModule } from '@adins/uc-subsection';
6
+ import { TranslateModule } from '@ngx-translate/core';
7
+ import * as i0 from "@angular/core";
8
+ import * as i1 from "@ngx-translate/core";
9
+ export class UcviewgenericModule {
10
+ }
11
+ /** @nocollapse */ /** @nocollapse */ UcviewgenericModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: UcviewgenericModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
12
+ /** @nocollapse */ /** @nocollapse */ UcviewgenericModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: UcviewgenericModule, declarations: [UcviewgenericComponent], imports: [CommonModule,
13
+ RouterModule,
14
+ UcSubsectionModule, i1.TranslateModule], exports: [UcviewgenericComponent] });
15
+ /** @nocollapse */ /** @nocollapse */ UcviewgenericModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: UcviewgenericModule, imports: [[
16
+ CommonModule,
17
+ RouterModule,
18
+ UcSubsectionModule,
19
+ TranslateModule.forChild()
20
+ ]] });
21
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: UcviewgenericModule, decorators: [{
22
+ type: NgModule,
23
+ args: [{
24
+ declarations: [UcviewgenericComponent],
25
+ imports: [
26
+ CommonModule,
27
+ RouterModule,
28
+ UcSubsectionModule,
29
+ TranslateModule.forChild()
30
+ ],
31
+ exports: [UcviewgenericComponent]
32
+ }]
33
+ }] });
34
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidWN2aWV3Z2VuZXJpYy5tb2R1bGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9wcm9qZWN0cy91Y3ZpZXdnZW5lcmljL3NyYy9saWIvdWN2aWV3Z2VuZXJpYy5tb2R1bGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFFBQVEsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUN6QyxPQUFPLEVBQUUsc0JBQXNCLEVBQUUsTUFBTSwyQkFBMkIsQ0FBQztBQUNuRSxPQUFPLEVBQUUsWUFBWSxFQUFFLE1BQU0saUJBQWlCLENBQUM7QUFDL0MsT0FBTyxFQUFFLFlBQVksRUFBRSxNQUFNLGlCQUFpQixDQUFDO0FBQy9DLE9BQU8sRUFBRSxrQkFBa0IsRUFBRSxNQUFNLHNCQUFzQixDQUFDO0FBQzFELE9BQU8sRUFBRSxlQUFlLEVBQUUsTUFBTSxxQkFBcUIsQ0FBQzs7O0FBWXRELE1BQU0sT0FBTyxtQkFBbUI7O3NKQUFuQixtQkFBbUI7dUpBQW5CLG1CQUFtQixpQkFUZixzQkFBc0IsYUFFbkMsWUFBWTtRQUNaLFlBQVk7UUFDWixrQkFBa0IsaUNBR1Ysc0JBQXNCO3VKQUVyQixtQkFBbUIsWUFSckI7WUFDUCxZQUFZO1lBQ1osWUFBWTtZQUNaLGtCQUFrQjtZQUNsQixlQUFlLENBQUMsUUFBUSxFQUFFO1NBQzNCOzJGQUdVLG1CQUFtQjtrQkFWL0IsUUFBUTttQkFBQztvQkFDUixZQUFZLEVBQUUsQ0FBQyxzQkFBc0IsQ0FBQztvQkFDdEMsT0FBTyxFQUFFO3dCQUNQLFlBQVk7d0JBQ1osWUFBWTt3QkFDWixrQkFBa0I7d0JBQ2xCLGVBQWUsQ0FBQyxRQUFRLEVBQUU7cUJBQzNCO29CQUNELE9BQU8sRUFBRSxDQUFDLHNCQUFzQixDQUFDO2lCQUNsQyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IE5nTW9kdWxlIH0gZnJvbSAnQGFuZ3VsYXIvY29yZSc7XHJcbmltcG9ydCB7IFVjdmlld2dlbmVyaWNDb21wb25lbnQgfSBmcm9tICcuL3Vjdmlld2dlbmVyaWMuY29tcG9uZW50JztcclxuaW1wb3J0IHsgQ29tbW9uTW9kdWxlIH0gZnJvbSAnQGFuZ3VsYXIvY29tbW9uJztcclxuaW1wb3J0IHsgUm91dGVyTW9kdWxlIH0gZnJvbSAnQGFuZ3VsYXIvcm91dGVyJztcclxuaW1wb3J0IHsgVWNTdWJzZWN0aW9uTW9kdWxlIH0gZnJvbSAnQGFkaW5zL3VjLXN1YnNlY3Rpb24nO1xyXG5pbXBvcnQgeyBUcmFuc2xhdGVNb2R1bGUgfSBmcm9tICdAbmd4LXRyYW5zbGF0ZS9jb3JlJztcclxuXHJcbkBOZ01vZHVsZSh7XHJcbiAgZGVjbGFyYXRpb25zOiBbVWN2aWV3Z2VuZXJpY0NvbXBvbmVudF0sXHJcbiAgaW1wb3J0czogW1xyXG4gICAgQ29tbW9uTW9kdWxlLFxyXG4gICAgUm91dGVyTW9kdWxlLFxyXG4gICAgVWNTdWJzZWN0aW9uTW9kdWxlLFxyXG4gICAgVHJhbnNsYXRlTW9kdWxlLmZvckNoaWxkKClcclxuICBdLFxyXG4gIGV4cG9ydHM6IFtVY3ZpZXdnZW5lcmljQ29tcG9uZW50XVxyXG59KVxyXG5leHBvcnQgY2xhc3MgVWN2aWV3Z2VuZXJpY01vZHVsZSB7IH1cclxuIl19
@@ -0,0 +1,14 @@
1
+ import { Injectable } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export class UcviewgenericService {
4
+ constructor() { }
5
+ }
6
+ /** @nocollapse */ /** @nocollapse */ UcviewgenericService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: UcviewgenericService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
7
+ /** @nocollapse */ /** @nocollapse */ UcviewgenericService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: UcviewgenericService, providedIn: 'root' });
8
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: UcviewgenericService, decorators: [{
9
+ type: Injectable,
10
+ args: [{
11
+ providedIn: 'root'
12
+ }]
13
+ }], ctorParameters: function () { return []; } });
14
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidWN2aWV3Z2VuZXJpYy5zZXJ2aWNlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vcHJvamVjdHMvdWN2aWV3Z2VuZXJpYy9zcmMvbGliL3Vjdmlld2dlbmVyaWMuc2VydmljZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsVUFBVSxFQUFFLE1BQU0sZUFBZSxDQUFDOztBQUszQyxNQUFNLE9BQU8sb0JBQW9CO0lBRS9CLGdCQUFnQixDQUFDOzt1SkFGTixvQkFBb0I7MkpBQXBCLG9CQUFvQixjQUZuQixNQUFNOzJGQUVQLG9CQUFvQjtrQkFIaEMsVUFBVTttQkFBQztvQkFDVixVQUFVLEVBQUUsTUFBTTtpQkFDbkIiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBJbmplY3RhYmxlIH0gZnJvbSAnQGFuZ3VsYXIvY29yZSc7XHJcblxyXG5ASW5qZWN0YWJsZSh7XHJcbiAgcHJvdmlkZWRJbjogJ3Jvb3QnXHJcbn0pXHJcbmV4cG9ydCBjbGFzcyBVY3ZpZXdnZW5lcmljU2VydmljZSB7XHJcblxyXG4gIGNvbnN0cnVjdG9yKCkgeyB9XHJcbn1cclxuIl19
@@ -0,0 +1,7 @@
1
+ /*
2
+ * Public API Surface of ucviewgeneric
3
+ */
4
+ export * from './lib/ucviewgeneric.service';
5
+ export * from './lib/ucviewgeneric.component';
6
+ export * from './lib/ucviewgeneric.module';
7
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3Byb2plY3RzL3Vjdmlld2dlbmVyaWMvc3JjL3B1YmxpYy1hcGkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7O0dBRUc7QUFFSCxjQUFjLDZCQUE2QixDQUFDO0FBQzVDLGNBQWMsK0JBQStCLENBQUM7QUFDOUMsY0FBYyw0QkFBNEIsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIi8qXHJcbiAqIFB1YmxpYyBBUEkgU3VyZmFjZSBvZiB1Y3ZpZXdnZW5lcmljXHJcbiAqL1xyXG5cclxuZXhwb3J0ICogZnJvbSAnLi9saWIvdWN2aWV3Z2VuZXJpYy5zZXJ2aWNlJztcclxuZXhwb3J0ICogZnJvbSAnLi9saWIvdWN2aWV3Z2VuZXJpYy5jb21wb25lbnQnO1xyXG5leHBvcnQgKiBmcm9tICcuL2xpYi91Y3ZpZXdnZW5lcmljLm1vZHVsZSc7XHJcbiJdfQ==
@@ -0,0 +1,488 @@
1
+ import * as i0 from '@angular/core';
2
+ import { Injectable, EventEmitter, Component, Input, Output, NgModule } from '@angular/core';
3
+ import * as CryptoJS from 'crypto-js';
4
+ import * as i1 from '@angular/router';
5
+ import { RouterModule } from '@angular/router';
6
+ import * as i2 from '@angular/common/http';
7
+ import * as i3 from '@ngx-translate/core';
8
+ import { TranslateModule } from '@ngx-translate/core';
9
+ import * as i4 from 'ngx-cookie';
10
+ import * as i5 from '@adins/uc-subsection';
11
+ import { UcSubsectionModule } from '@adins/uc-subsection';
12
+ import * as i6 from '@angular/common';
13
+ import { CommonModule } from '@angular/common';
14
+
15
+ class UcviewgenericService {
16
+ constructor() { }
17
+ }
18
+ /** @nocollapse */ /** @nocollapse */ UcviewgenericService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: UcviewgenericService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
19
+ /** @nocollapse */ /** @nocollapse */ UcviewgenericService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: UcviewgenericService, providedIn: 'root' });
20
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: UcviewgenericService, decorators: [{
21
+ type: Injectable,
22
+ args: [{
23
+ providedIn: 'root'
24
+ }]
25
+ }], ctorParameters: function () { return []; } });
26
+
27
+ class UcViewGenericObj {
28
+ constructor() {
29
+ this.IsCard = true;
30
+ this.viewInput = "";
31
+ this.viewEnvironment = "";
32
+ this.ddlEnvironments = new Array();
33
+ this.listEnvironments = new Array();
34
+ this.whereValue = new Array();
35
+ this.IsCard = true;
36
+ }
37
+ }
38
+ class EnviObj {
39
+ constructor() {
40
+ this.name = "";
41
+ this.environment = "";
42
+ }
43
+ }
44
+ class WhereValueObj {
45
+ constructor() {
46
+ this.property = "";
47
+ }
48
+ }
49
+ class EnvisObj {
50
+ constructor() {
51
+ this.environment = "";
52
+ this.url = "";
53
+ }
54
+ }
55
+
56
+ class UcviewgenericComponent {
57
+ constructor(route, http, translateService, cookieService) {
58
+ this.route = route;
59
+ this.http = http;
60
+ this.translateService = translateService;
61
+ this.cookieService = cookieService;
62
+ this.viewGenericObj = new UcViewGenericObj();
63
+ this.callback = new EventEmitter();
64
+ this.UserAccess = JSON.parse(this.GetCookie(this.cookieService, "UserAccess"));
65
+ this.viewList = "";
66
+ this.isReady = false;
67
+ this.IsCard = true;
68
+ this.route.queryParams.subscribe(params => {
69
+ this.getList = params;
70
+ });
71
+ this.translateService.setDefaultLang('en');
72
+ this.translateService.use(localStorage.getItem('lang') || 'en');
73
+ }
74
+ ngOnInit() {
75
+ console.log("viewgeneric");
76
+ this.initiateForm();
77
+ this.CheckIsCard();
78
+ }
79
+ CheckIsCard() {
80
+ if (this.viewGenericObj.IsCard == undefined || this.viewGenericObj.IsCard == null)
81
+ return;
82
+ this.IsCard = this.viewGenericObj.IsCard;
83
+ }
84
+ initiateForm() {
85
+ this.getJSON(this.viewGenericObj.viewInput).subscribe(data => {
86
+ this.viewList = data;
87
+ this.viewInfoObjList = [];
88
+ for (let j = 0; j < this.viewList.subsection.length; j++) {
89
+ this.viewInfoObjList.push(j);
90
+ }
91
+ for (let i = 0; i < this.viewList.subsection.length; i++) {
92
+ if (this.viewList.subsection[i].querystring != null) {
93
+ let queryObj;
94
+ if (this.viewGenericObj.whereValue.length == 0) {
95
+ this.viewList.subsection[i].querystring.whereQuery = Object.values(this.getList);
96
+ }
97
+ else {
98
+ this.viewList.subsection[i].querystring.whereQuery = this.viewGenericObj.whereValue;
99
+ }
100
+ if (this.viewList.subsection[i].mainInfoPath != undefined && this.viewList.subsection[i].mainInfoPath != "") {
101
+ if (this.viewGenericObj.viewEnvironment != undefined && this.viewGenericObj.viewEnvironment != "") {
102
+ this.viewList.subsection[i].fullpath = this.viewGenericObj.viewEnvironment + this.viewList.subsection[i].mainInfoPath;
103
+ }
104
+ else {
105
+ this.viewList.subsection[i].fullpath = this.viewList.subsection[i].mainInfoUrl;
106
+ }
107
+ }
108
+ else {
109
+ this.viewList.subsection[i].fullpath = this.viewList.subsection[i].mainInfoUrl;
110
+ }
111
+ queryObj = {
112
+ querystring: this.viewList.subsection[i].querystring
113
+ };
114
+ this.http.post(this.viewList.subsection[i].fullpath, queryObj).subscribe((response) => {
115
+ this.viewInfoObjList[i] = response["Data"][0];
116
+ for (let y = 0; y < this.viewList.subsection[i].mainInfo.length; y++) {
117
+ if (this.viewList.subsection[i].mainInfo[y].propertyList != undefined && this.viewList.subsection[i].mainInfo[y].propertyList.length != 0) {
118
+ const propertyList = this.viewList.subsection[i].mainInfo[y].propertyList;
119
+ let concat = "";
120
+ for (let z = 0; z < propertyList.length; z++) {
121
+ concat = concat + propertyList[z].prefix + this.viewInfoObjList[i][propertyList[z].property] + propertyList[z].suffix;
122
+ }
123
+ this.viewList.subsection[i].mainInfo[y].concat = concat;
124
+ }
125
+ //switch case
126
+ if (this.viewList.subsection[i].mainInfo[y].type == "switch") {
127
+ for (let z = 0; z < this.viewList.subsection[i].mainInfo[y].case.length; z++) {
128
+ let Empty = new Array();
129
+ this.viewList.subsection[i].mainInfo[y].case[z].Hidden = false;
130
+ //check hideIfEmpty
131
+ if (this.viewList.subsection[i].mainInfo[y].case[z].result.hideIfEmpty != undefined && this.viewList.subsection[i].mainInfo[y].case[z].result.hideIfEmpty != null) {
132
+ if (this.viewList.subsection[i].mainInfo[y].case[z].result.type != "concat") {
133
+ Empty.push(this.viewInfoObjList[i][this.viewList.subsection[i].mainInfo[y].case[z].result.property] != undefined
134
+ && this.viewInfoObjList[i][this.viewList.subsection[i].mainInfo[y].case[z].result.property] != null
135
+ && this.viewInfoObjList[i][this.viewList.subsection[i].mainInfo[y].case[z].result.property] != "" ? false : true);
136
+ }
137
+ else { // type concat
138
+ if (this.viewList.subsection[i].mainInfo[y].case[z].result.propertyList != undefined && this.viewList.subsection[i].mainInfo[y].case[z].result.propertyList.length != 0) {
139
+ const propertyList = this.viewList.subsection[i].mainInfo[y].case[z].result.propertyList;
140
+ let concat = "";
141
+ for (let a = 0; a < propertyList.length; a++) {
142
+ concat = concat + propertyList[a].prefix + this.viewInfoObjList[i][propertyList[a].property] + propertyList[a].suffix;
143
+ Empty.push(this.viewInfoObjList[i][propertyList[a].property] != undefined
144
+ && this.viewInfoObjList[i][propertyList[a].property] != null
145
+ && this.viewInfoObjList[i][propertyList[a].property] != "" ? false : true);
146
+ }
147
+ this.viewList.subsection[i].mainInfo[y].case[z].result.concat = concat;
148
+ }
149
+ }
150
+ if (Empty.includes(true) && this.viewList.subsection[i].mainInfo[y].case[z].result.hideIfEmpty) {
151
+ this.viewList.subsection[i].mainInfo[y].case[z].Hidden = true;
152
+ this.viewList.subsection[i].mainInfo[y].isHide = true;
153
+ }
154
+ }
155
+ else {
156
+ //concat
157
+ if (this.viewList.subsection[i].mainInfo[y].case[z].result.propertyList != undefined && this.viewList.subsection[i].mainInfo[y].case[z].result.propertyList.length != 0) {
158
+ const propertyList = this.viewList.subsection[i].mainInfo[y].case[z].result.propertyList;
159
+ let concat = "";
160
+ for (let a = 0; a < propertyList.length; a++) {
161
+ concat = concat + propertyList[a].prefix + this.viewInfoObjList[i][propertyList[a].property] + propertyList[a].suffix;
162
+ }
163
+ this.viewList.subsection[i].mainInfo[y].case[z].result.concat = concat;
164
+ }
165
+ }
166
+ }
167
+ }
168
+ if (this.viewList.subsection[i].mainInfo[y].type == "link" && (this.viewGenericObj.navigationConst != undefined || this.viewGenericObj.navigationConst != null)) {
169
+ let tempLink = this.viewGenericObj.navigationConst[this.viewList.subsection[i].mainInfo[y].path];
170
+ if (tempLink != undefined && tempLink != null) {
171
+ this.viewList.subsection[i].mainInfo[y].path = tempLink;
172
+ }
173
+ }
174
+ if (this.viewList.subsection[i].mainInfo[y].type == "link"
175
+ && this.viewGenericObj.listEnvironments != undefined && this.viewGenericObj.listEnvironments.length != 0) {
176
+ for (let z = 0; z < this.viewGenericObj.listEnvironments.length; z++) {
177
+ if (this.viewList.subsection[i].mainInfo[y].environment == this.viewGenericObj.listEnvironments[z].environment) {
178
+ this.viewList.subsection[i].mainInfo[y].isFullpath = true;
179
+ this.viewList.subsection[i].mainInfo[y].fullpath = this.viewGenericObj.listEnvironments[z].url + this.viewList.subsection[i].mainInfo[y].path;
180
+ break;
181
+ }
182
+ }
183
+ }
184
+ else if (this.viewList.subsection[i].mainInfo[y].type == "link") {
185
+ this.viewList.subsection[i].mainInfo[y].isFullpath = false;
186
+ this.viewList.subsection[i].mainInfo[y].fullpath = this.viewList.subsection[i].mainInfo[y].path;
187
+ }
188
+ }
189
+ this.isReady = true;
190
+ }, (error) => {
191
+ console.log(error);
192
+ });
193
+ }
194
+ else {
195
+ if (this.viewList.subsection[i].mainInfoPath != undefined && this.viewList.subsection[i].mainInfoPath != "") {
196
+ if (this.viewGenericObj.viewEnvironment != undefined && this.viewGenericObj.viewEnvironment != "") {
197
+ this.viewList.subsection[i].fullpath = this.viewGenericObj.viewEnvironment + this.viewList.subsection[i].mainInfoPath;
198
+ }
199
+ else {
200
+ this.viewList.subsection[i].fullpath = this.viewList.subsection[i].mainInfoUrl;
201
+ }
202
+ }
203
+ else {
204
+ this.viewList.subsection[i].fullpath = this.viewList.subsection[i].mainInfoUrl;
205
+ }
206
+ this.http.post(this.viewList.subsection[i].fullpath, this.getList).subscribe((response) => {
207
+ this.viewInfoObjList[i] = response["Data"];
208
+ }, (error) => {
209
+ console.log(error);
210
+ });
211
+ }
212
+ }
213
+ });
214
+ }
215
+ getJSON(url) {
216
+ return this.http.get(url);
217
+ }
218
+ GetCookie(cookieService, key) {
219
+ let value = cookieService.get(key);
220
+ if (value == undefined || value.trim() == '')
221
+ return null;
222
+ return this.DecryptString(value, "AdInsFOU12345678");
223
+ }
224
+ DecryptString(chipperText, chipperKey) {
225
+ if (chipperKey == undefined || chipperKey.trim() == '' ||
226
+ chipperText == undefined || chipperText.trim() == '')
227
+ return chipperText;
228
+ let chipperKeyArr = CryptoJS.enc.Utf8.parse(chipperKey);
229
+ let iv = CryptoJS.lib.WordArray.create([0x00, 0x00, 0x00, 0x00]);
230
+ let decrypted = CryptoJS.AES.decrypt(chipperText, chipperKeyArr, { iv: iv });
231
+ let plainText = decrypted.toString(CryptoJS.enc.Utf8);
232
+ return plainText;
233
+ }
234
+ genAction(viewObj, param) {
235
+ let arrList = {};
236
+ for (let i = 0; i < param.length; i++) {
237
+ if (viewObj[param[i].type] != undefined || viewObj[param[i].property] != undefined) {
238
+ arrList[param[i].type] = viewObj[param[i].property];
239
+ }
240
+ else {
241
+ arrList[param[i].type] = param[i].property;
242
+ }
243
+ }
244
+ return arrList;
245
+ }
246
+ genRouterLink(urlLink) {
247
+ let tempLink = urlLink;
248
+ if (this.viewGenericObj.navigationConst != undefined && this.viewGenericObj.navigationConst[urlLink] != null) {
249
+ tempLink = this.viewGenericObj.navigationConst[urlLink];
250
+ }
251
+ return tempLink;
252
+ }
253
+ redirectFullPath(fullpath, param, target) {
254
+ let queryParam = "";
255
+ const ListObj = Object.keys(param);
256
+ for (let i = 0; i < ListObj.length; i++) {
257
+ if (queryParam != "") {
258
+ queryParam = queryParam + "&" + ListObj[i] + "=" + param[ListObj[i]];
259
+ }
260
+ else {
261
+ queryParam = ListObj[i] + "=" + param[ListObj[i]];
262
+ }
263
+ }
264
+ window.open(fullpath + "?" + queryParam, target);
265
+ }
266
+ callbackFunction(item, key = "") {
267
+ let CBObj = {
268
+ ViewObj: item,
269
+ Key: key
270
+ };
271
+ this.callback.emit(CBObj);
272
+ }
273
+ switchCase(item, condList) {
274
+ let condition = false;
275
+ if (!item)
276
+ return false;
277
+ for (let i = 0; i < condList.conditions.length; i++) {
278
+ if (condList.conditions[i].restriction == "EQ") {
279
+ if (condList.conditions[i].isUser != true) {
280
+ if (item[condList.conditions[i].property] == condList.conditions[i].value) {
281
+ condition = true;
282
+ }
283
+ else {
284
+ condition = false;
285
+ break;
286
+ }
287
+ }
288
+ else {
289
+ if (item[condList.conditions[i].property] == this.UserAccess["UserName"]) {
290
+ condition = true;
291
+ }
292
+ else {
293
+ condition = false;
294
+ break;
295
+ }
296
+ }
297
+ }
298
+ else if (condList.conditions[i].restriction == "NEQ") {
299
+ if (condList.conditions[i].isUser != true) {
300
+ if (item[condList.conditions[i].property] != condList.conditions[i].value) {
301
+ condition = true;
302
+ }
303
+ else {
304
+ condition = false;
305
+ break;
306
+ }
307
+ }
308
+ else {
309
+ if (item[condList.conditions[i].property] != this.UserAccess["UserName"]) {
310
+ condition = true;
311
+ }
312
+ else {
313
+ condition = false;
314
+ break;
315
+ }
316
+ }
317
+ }
318
+ else if (condList.conditions[i].restriction == "GT") {
319
+ if (condList.conditions[i].isUser != true) {
320
+ if (item[condList.conditions[i].property] > condList.conditions[i].value) {
321
+ condition = true;
322
+ }
323
+ else {
324
+ condition = false;
325
+ break;
326
+ }
327
+ }
328
+ else {
329
+ if (item[condList.conditions[i].property] > this.UserAccess["UserName"]) {
330
+ condition = true;
331
+ }
332
+ else {
333
+ condition = false;
334
+ break;
335
+ }
336
+ }
337
+ }
338
+ else if (condList.conditions[i].restriction == "GTE") {
339
+ if (condList.conditions[i].isUser != true) {
340
+ if (item[condList.conditions[i].property] >= condList.conditions[i].value) {
341
+ condition = true;
342
+ }
343
+ else {
344
+ condition = false;
345
+ break;
346
+ }
347
+ }
348
+ else {
349
+ if (item[condList.conditions[i].property] >= this.UserAccess["UserName"]) {
350
+ condition = true;
351
+ }
352
+ else {
353
+ condition = false;
354
+ break;
355
+ }
356
+ }
357
+ }
358
+ else if (condList.conditions[i].restriction == "LT") {
359
+ if (condList.conditions[i].isUser != true) {
360
+ if (item[condList.conditions[i].property] < condList.conditions[i].value) {
361
+ condition = true;
362
+ }
363
+ else {
364
+ condition = false;
365
+ break;
366
+ }
367
+ }
368
+ else {
369
+ if (item[condList.conditions[i].property] < this.UserAccess["UserName"]) {
370
+ condition = true;
371
+ }
372
+ else {
373
+ condition = false;
374
+ break;
375
+ }
376
+ }
377
+ }
378
+ else if (condList.conditions[i].restriction == "LTE") {
379
+ if (condList.conditions[i].isUser != true) {
380
+ if (item[condList.conditions[i].property] <= condList.conditions[i].value) {
381
+ condition = true;
382
+ }
383
+ else {
384
+ condition = false;
385
+ break;
386
+ }
387
+ }
388
+ else {
389
+ if (item[condList.conditions[i].property] <= this.UserAccess["UserName"]) {
390
+ condition = true;
391
+ }
392
+ else {
393
+ condition = false;
394
+ break;
395
+ }
396
+ }
397
+ }
398
+ else if (condList.conditions[i].restriction == "IN") {
399
+ if (condList.conditions[i].isUser != true) {
400
+ if (condList.conditions[i].value.findIndex(x => x == item[condList.conditions[i].property]) >= 0) {
401
+ condition = true;
402
+ }
403
+ else {
404
+ condition = false;
405
+ break;
406
+ }
407
+ }
408
+ else {
409
+ if (condList.conditions[i].value.findIndex(x => x == this.UserAccess["UserName"]) >= 0) {
410
+ condition = true;
411
+ }
412
+ else {
413
+ condition = false;
414
+ break;
415
+ }
416
+ }
417
+ }
418
+ else if (condList.conditions[i].restriction == "NIN") {
419
+ if (condList.conditions[i].isUser != true) {
420
+ if (condList.conditions[i].value.findIndex(x => x == item[condList.conditions[i].property]) == -1) {
421
+ condition = true;
422
+ }
423
+ else {
424
+ condition = false;
425
+ break;
426
+ }
427
+ }
428
+ else {
429
+ if (condList.conditions[i].value.findIndex(x => x == this.UserAccess["UserName"]) == -1) {
430
+ condition = true;
431
+ }
432
+ else {
433
+ condition = false;
434
+ break;
435
+ }
436
+ }
437
+ }
438
+ }
439
+ return condition;
440
+ }
441
+ }
442
+ /** @nocollapse */ /** @nocollapse */ UcviewgenericComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: UcviewgenericComponent, deps: [{ token: i1.ActivatedRoute }, { token: i2.HttpClient }, { token: i3.TranslateService }, { token: i4.CookieService }], target: i0.ɵɵFactoryTarget.Component });
443
+ /** @nocollapse */ /** @nocollapse */ UcviewgenericComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.2", type: UcviewgenericComponent, selector: "lib-ucviewgeneric", inputs: { viewGenericObj: "viewGenericObj" }, outputs: { callback: "callback" }, ngImport: i0, template: "<section id=\"horizontal-form-layouts\">\r\n <div class=\"row text-left\">\r\n <div class=\"col-md-12\">\r\n <div [ngClass]=\"IsCard ? 'card' : ''\" *ngIf=\"isReady\">\r\n <div class=\"pl-3 mb-2 mt-2\" *ngIf=\"viewList?.title != ''\">\r\n <h4 class=\"card-title ucSearch-title\" id=\"horz-layout-colored-controls\" translate>{{viewList.title}}</h4>\r\n </div>\r\n <div class=\"card-body\" *ngFor=\"let ss of viewList?.subsection;let i = index;\">\r\n <div class=\"px-3\">\r\n <lib-ucSubsection *ngIf=\"ss.subsection != ''\" [id]=\"ss.subSectionId + 'id'\" [title]=\"ss.subSectionTitle\"\r\n [panel]=\"ss.subSectionId\">\r\n </lib-ucSubsection>\r\n <div class=\"form-body\" [id]='ss.subSectionId'>\r\n <div class=\"form-group row\">\r\n <div *ngFor=\"let mi of ss?.mainInfo\"\r\n [ngClass]=\"{ 'col-md-6': mi.isHide == undefined || !mi.isHide || (viewInfoObjList[i][mi.property] != '' && viewInfoObjList[i][mi.property] != null)}\">\r\n <span\r\n *ngIf=\"mi.isHide == undefined || !mi.isHide || (viewInfoObjList[i][mi.property] != '' && viewInfoObjList[i][mi.property] != null)\">\r\n <div class=\"row\">\r\n <div class=\"col-md-6\" *ngIf=\"mi.type != 'switch'\">\r\n <label class=\"label-control\"\r\n [ngClass]=\"mi.customClassLabel != undefined ? mi.customClassLabel : ''\" translate>{{mi.label}}</label>\r\n </div>\r\n <div class=\"col-md-6\" *ngIf=\"mi.type == 'switch'\">\r\n <div *ngFor=\"let case of mi?.case\">\r\n <div *ngIf=\"switchCase(viewInfoObjList[i],case)\">\r\n <label class=\"label-control\"\r\n [ngClass]=\"mi.customClassLabel != undefined ? mi.customClassLabel : ''\" translate>{{case.result.label}}</label>\r\n </div>\r\n </div>\r\n </div>\r\n <div *ngIf=\"viewInfoObjList[i] != undefined\" class=\"col-md-6\" [ngClass]=\"{ 'text-left': mi.position == 'left',\r\n 'text-right': mi.position == 'right', 'text-center': mi.position == 'center' }\">\r\n <span\r\n *ngIf=\"(mi.type == 'boolean' && viewInfoObjList[i][mi.property] != null) || (viewInfoObjList[i][mi.property] != '' && viewInfoObjList[i][mi.property] != null) || mi.type == 'switch' || mi.type =='concat'; then nonEmptyLabel else emptyLabel\"></span>\r\n <ng-template #emptyLabel>\r\n <label class=\"label-control\"\r\n [ngClass]=\"mi.customClassProperty != undefined ? mi.customClassProperty : ''\"\r\n translate>-</label>\r\n </ng-template>\r\n <ng-template #nonEmptyLabel>\r\n <span *ngIf=\"mi.type == 'text'\">\r\n <label\r\n *ngIf=\"viewInfoObjList[i][mi.property] != '' && viewInfoObjList[i][mi.property] != null\"\r\n class=\"label-control breakword\"\r\n [ngClass]=\"mi.customClassProperty != undefined ? mi.customClassProperty : ''\" translate>\r\n {{ viewInfoObjList[i][mi.property] }}\r\n </label>\r\n <label\r\n *ngIf=\"viewInfoObjList[i][mi.property] == '' || viewInfoObjList[i][mi.property] == null\"\r\n class=\"label-control\"\r\n [ngClass]=\"mi.customClassProperty != undefined ? mi.customClassProperty : ''\" translate>-\r\n </label>\r\n </span>\r\n <label *ngIf=\"mi.type == 'currency'\" class=\"label-control\"\r\n [ngClass]=\"mi.customClassProperty != undefined ? mi.customClassProperty : ''\" translate>\r\n {{ viewInfoObjList[i][mi.property] | number: mi?.precision ? mi?.precision : '0.2' :'en-US'}} <span *ngIf=\"mi?.IsPrcnt\">&nbsp;%</span> </label>\r\n <label *ngIf=\"mi.type == 'date'\" class=\"label-control\"\r\n [ngClass]=\"mi.customClassProperty != undefined ? mi.customClassProperty : ''\" translate>\r\n {{ viewInfoObjList[i][mi.property] | date: (mi?.dateFormat) ? mi?.dateFormat : 'dd-MMM-yyyy'}} </label>\r\n <label *ngIf=\"mi.type == 'link'\" class=\"label-control\"\r\n [ngClass]=\"mi.customClassProperty != undefined ? mi.customClassProperty : ''\" translate>\r\n <a *ngIf=\"!mi?.isFullpath\" [routerLink]=\"genRouterLink(mi.path)\" [target]=\"mi.target\"\r\n [queryParams]=\"genAction(viewInfoObjList[i], mi.param)\">\r\n <span *ngIf=\"(mi.isCurrency != undefined && mi.isCurrency)\">{{\r\n viewInfoObjList[i][mi.property] | number:'.2':'en-US' }}</span>\r\n <span *ngIf=\"(mi.isCurrency == undefined || !mi.isCurrency)\">{{\r\n viewInfoObjList[i][mi.property] }}</span>\r\n </a>\r\n <a *ngIf=\"mi?.isFullpath\" href=\"javascript:void(0);\"\r\n (click)=\"redirectFullPath(mi.fullpath, genAction(viewInfoObjList[i], mi.param), mi.target)\">\r\n <span *ngIf=\"(mi.isCurrency != undefined && mi.isCurrency)\">{{\r\n viewInfoObjList[i][mi.property] | number:'.2':'en-US' }}</span>\r\n <span *ngIf=\"(mi.isCurrency == undefined || !mi.isCurrency)\">{{\r\n viewInfoObjList[i][mi.property] }}</span>\r\n </a>\r\n </label>\r\n <label *ngIf=\"mi.type == 'callback'\" class=\"label-control\"\r\n [ngClass]=\"mi.customClassProperty != undefined ? mi.customClassProperty : ''\" translate>\r\n <a href=\"javascript:void(0);\" (click)=\"callbackFunction(viewInfoObjList[i], mi.key)\">\r\n {{ viewInfoObjList[i][mi.property] }}\r\n </a>\r\n </label>\r\n <textarea *ngIf=\"mi.type == 'textarea'\" class=\"form-control\" readonly\r\n [ngClass]=\"mi.customClassProperty != undefined ? mi.customClassProperty : ''\"\r\n translate> {{ viewInfoObjList[i][mi.property] }} </textarea>\r\n <span *ngIf=\"mi.type == 'boolean'\"\r\n [ngClass]=\"mi.customClassProperty != undefined ? mi.customClassProperty : ''\" translate>\r\n <label *ngIf=\"viewInfoObjList[i][mi.property] == true\">Yes</label>\r\n <label *ngIf=\"viewInfoObjList[i][mi.property] == false\">No</label>\r\n <!-- <label\r\n *ngIf=\"viewInfoObjList[i][mi.property] == '' || viewInfoObjList[i][mi.property] == null\">-</label> -->\r\n </span>\r\n <span *ngIf=\"mi.type == 'concat'\">\r\n <label class=\"label-control breakword\"\r\n [ngClass]=\"mi.customClassProperty != undefined ? mi.customClassProperty : ''\" translate>\r\n {{ mi.concat }}\r\n </label>\r\n </span>\r\n <span *ngIf=\"mi.type == 'switch'\">\r\n <span *ngFor=\"let cs of mi?.case\">\r\n <span *ngIf=\"switchCase(viewInfoObjList[i],cs) && !cs.Hidden\">\r\n <span class=\"label-control breakword\"\r\n [ngClass]=\"mi.customClassProperty != undefined ? mi.customClassProperty : ''\"\r\n translate *ngIf=\"cs.result.type == 'text'\">{{ viewInfoObjList[i][cs.result.property]\r\n }}\r\n </span>\r\n <span [ngClass]=\"mi.customClassProperty != undefined ? mi.customClassProperty : ''\"\r\n translate *ngIf=\"cs.result.type == 'decimal'\">{{\r\n viewInfoObjList[i][cs.result.property] | number:'.2':'en-US' }}</span>\r\n <span [ngClass]=\"mi.customClassProperty != undefined ? mi.customClassProperty : ''\"\r\n translate *ngIf=\"cs.result.type == 'date'\">{{ viewInfoObjList[i][cs.result.property] |\r\n date: 'dd-MMM-yyyy' }}\r\n </span>\r\n <span *ngIf=\"cs.result.type == 'link'\"\r\n [ngClass]=\"mi.customClassProperty != undefined ? mi.customClassProperty : ''\"\r\n translate>\r\n <a [target]=\"cs.result.target\" [routerLink]=\"genRouterLink(cs.result.path)\"\r\n [queryParams]=\"genAction(viewInfoObjList[i],cs.result.param)\">\r\n <span *ngIf=\"(mi.isCurrency != undefined && mi.isCurrency)\">{{\r\n viewInfoObjList[i][cs.result.property] | number:'.2':'en-US' }}</span>\r\n <span *ngIf=\"(mi.isCurrency == undefined || !mi.isCurrency)\">{{\r\n viewInfoObjList[i][cs.result.property] }}</span>\r\n </a>\r\n </span>\r\n <span *ngIf=\"cs.result.type == 'boolean'\"\r\n [ngClass]=\"mi.customClassProperty != undefined ? mi.customClassProperty : ''\"\r\n translate>\r\n <span *ngIf=\"viewInfoObjList[i][cs.result.property] == 'true'\">Yes</span>\r\n <span *ngIf=\"viewInfoObjList[i][cs.result.property] == 'false'\">No</span>\r\n </span>\r\n <span *ngIf=\"cs.result.type == 'concat'\">\r\n <label class=\"label-control breakword\"\r\n [ngClass]=\"mi.customClassProperty != undefined ? mi.customClassProperty : ''\" translate>\r\n {{ cs.result.concat }}\r\n </label>\r\n </span>\r\n <span *ngIf=\"cs.result.type == 'callback'\">\r\n <span\r\n *ngIf=\"cs.result.isText != undefined && cs.result.isText; then textCallback else iconCallback\"></span>\r\n <ng-template #textCallback>\r\n <span>\r\n <a href=\"javascript:void(0);\" (click)=\"callbackFunction(viewInfoObjList[i], cs.result.key)\">{{\r\n viewInfoObjList[i][cs.result.property] }}</a>\r\n </span>\r\n </ng-template>\r\n <ng-template #iconCallback>\r\n <span>\r\n <a [ngClass]=\"[cs.result.tooltip != undefined && cs.result.tooltip != '' ? 'tooltips' : '', cs.result.anchor == undefined || cs.result.anchor == '' ? 'success p-0' : cs.result.anchor]\"\r\n (click)=\"callbackFunction(viewInfoObjList[i], cs.result.key)\">\r\n <i class=\"font-medium-3 mr-2\"\r\n [ngClass]=\" cs.result.icon == undefined || cs.result.icon == '' ? 'ft-edit-2' : cs.result.icon \">\r\n </i>\r\n <span *ngIf=\"cs.result.tooltip != undefined && cs.result.tooltip != ''\"\r\n [ngClass]=\"cs.result.tooltip != undefined && cs.result.tooltip != '' ? 'tooltipstext' : ''\">\r\n {{cs.result.tooltip}}\r\n </span>\r\n </a>\r\n </span>\r\n </ng-template>\r\n </span>\r\n </span>\r\n </span>\r\n </span>\r\n </ng-template>\r\n </div>\r\n </div>\r\n </span>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n</section>", components: [{ type: i5.UcSubsectionComponent, selector: "lib-ucSubsection", inputs: ["title", "panel", "id"] }], directives: [{ type: i6.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i6.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i3.TranslateDirective, selector: "[translate],[ngx-translate]", inputs: ["translate", "translateParams"] }, { type: i6.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i1.RouterLinkWithHref, selector: "a[routerLink],area[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "preserveFragment", "skipLocationChange", "replaceUrl", "state", "relativeTo", "routerLink"] }], pipes: { "number": i6.DecimalPipe, "date": i6.DatePipe } });
444
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: UcviewgenericComponent, decorators: [{
445
+ type: Component,
446
+ args: [{ selector: 'lib-ucviewgeneric', styles: [], template: "<section id=\"horizontal-form-layouts\">\r\n <div class=\"row text-left\">\r\n <div class=\"col-md-12\">\r\n <div [ngClass]=\"IsCard ? 'card' : ''\" *ngIf=\"isReady\">\r\n <div class=\"pl-3 mb-2 mt-2\" *ngIf=\"viewList?.title != ''\">\r\n <h4 class=\"card-title ucSearch-title\" id=\"horz-layout-colored-controls\" translate>{{viewList.title}}</h4>\r\n </div>\r\n <div class=\"card-body\" *ngFor=\"let ss of viewList?.subsection;let i = index;\">\r\n <div class=\"px-3\">\r\n <lib-ucSubsection *ngIf=\"ss.subsection != ''\" [id]=\"ss.subSectionId + 'id'\" [title]=\"ss.subSectionTitle\"\r\n [panel]=\"ss.subSectionId\">\r\n </lib-ucSubsection>\r\n <div class=\"form-body\" [id]='ss.subSectionId'>\r\n <div class=\"form-group row\">\r\n <div *ngFor=\"let mi of ss?.mainInfo\"\r\n [ngClass]=\"{ 'col-md-6': mi.isHide == undefined || !mi.isHide || (viewInfoObjList[i][mi.property] != '' && viewInfoObjList[i][mi.property] != null)}\">\r\n <span\r\n *ngIf=\"mi.isHide == undefined || !mi.isHide || (viewInfoObjList[i][mi.property] != '' && viewInfoObjList[i][mi.property] != null)\">\r\n <div class=\"row\">\r\n <div class=\"col-md-6\" *ngIf=\"mi.type != 'switch'\">\r\n <label class=\"label-control\"\r\n [ngClass]=\"mi.customClassLabel != undefined ? mi.customClassLabel : ''\" translate>{{mi.label}}</label>\r\n </div>\r\n <div class=\"col-md-6\" *ngIf=\"mi.type == 'switch'\">\r\n <div *ngFor=\"let case of mi?.case\">\r\n <div *ngIf=\"switchCase(viewInfoObjList[i],case)\">\r\n <label class=\"label-control\"\r\n [ngClass]=\"mi.customClassLabel != undefined ? mi.customClassLabel : ''\" translate>{{case.result.label}}</label>\r\n </div>\r\n </div>\r\n </div>\r\n <div *ngIf=\"viewInfoObjList[i] != undefined\" class=\"col-md-6\" [ngClass]=\"{ 'text-left': mi.position == 'left',\r\n 'text-right': mi.position == 'right', 'text-center': mi.position == 'center' }\">\r\n <span\r\n *ngIf=\"(mi.type == 'boolean' && viewInfoObjList[i][mi.property] != null) || (viewInfoObjList[i][mi.property] != '' && viewInfoObjList[i][mi.property] != null) || mi.type == 'switch' || mi.type =='concat'; then nonEmptyLabel else emptyLabel\"></span>\r\n <ng-template #emptyLabel>\r\n <label class=\"label-control\"\r\n [ngClass]=\"mi.customClassProperty != undefined ? mi.customClassProperty : ''\"\r\n translate>-</label>\r\n </ng-template>\r\n <ng-template #nonEmptyLabel>\r\n <span *ngIf=\"mi.type == 'text'\">\r\n <label\r\n *ngIf=\"viewInfoObjList[i][mi.property] != '' && viewInfoObjList[i][mi.property] != null\"\r\n class=\"label-control breakword\"\r\n [ngClass]=\"mi.customClassProperty != undefined ? mi.customClassProperty : ''\" translate>\r\n {{ viewInfoObjList[i][mi.property] }}\r\n </label>\r\n <label\r\n *ngIf=\"viewInfoObjList[i][mi.property] == '' || viewInfoObjList[i][mi.property] == null\"\r\n class=\"label-control\"\r\n [ngClass]=\"mi.customClassProperty != undefined ? mi.customClassProperty : ''\" translate>-\r\n </label>\r\n </span>\r\n <label *ngIf=\"mi.type == 'currency'\" class=\"label-control\"\r\n [ngClass]=\"mi.customClassProperty != undefined ? mi.customClassProperty : ''\" translate>\r\n {{ viewInfoObjList[i][mi.property] | number: mi?.precision ? mi?.precision : '0.2' :'en-US'}} <span *ngIf=\"mi?.IsPrcnt\">&nbsp;%</span> </label>\r\n <label *ngIf=\"mi.type == 'date'\" class=\"label-control\"\r\n [ngClass]=\"mi.customClassProperty != undefined ? mi.customClassProperty : ''\" translate>\r\n {{ viewInfoObjList[i][mi.property] | date: (mi?.dateFormat) ? mi?.dateFormat : 'dd-MMM-yyyy'}} </label>\r\n <label *ngIf=\"mi.type == 'link'\" class=\"label-control\"\r\n [ngClass]=\"mi.customClassProperty != undefined ? mi.customClassProperty : ''\" translate>\r\n <a *ngIf=\"!mi?.isFullpath\" [routerLink]=\"genRouterLink(mi.path)\" [target]=\"mi.target\"\r\n [queryParams]=\"genAction(viewInfoObjList[i], mi.param)\">\r\n <span *ngIf=\"(mi.isCurrency != undefined && mi.isCurrency)\">{{\r\n viewInfoObjList[i][mi.property] | number:'.2':'en-US' }}</span>\r\n <span *ngIf=\"(mi.isCurrency == undefined || !mi.isCurrency)\">{{\r\n viewInfoObjList[i][mi.property] }}</span>\r\n </a>\r\n <a *ngIf=\"mi?.isFullpath\" href=\"javascript:void(0);\"\r\n (click)=\"redirectFullPath(mi.fullpath, genAction(viewInfoObjList[i], mi.param), mi.target)\">\r\n <span *ngIf=\"(mi.isCurrency != undefined && mi.isCurrency)\">{{\r\n viewInfoObjList[i][mi.property] | number:'.2':'en-US' }}</span>\r\n <span *ngIf=\"(mi.isCurrency == undefined || !mi.isCurrency)\">{{\r\n viewInfoObjList[i][mi.property] }}</span>\r\n </a>\r\n </label>\r\n <label *ngIf=\"mi.type == 'callback'\" class=\"label-control\"\r\n [ngClass]=\"mi.customClassProperty != undefined ? mi.customClassProperty : ''\" translate>\r\n <a href=\"javascript:void(0);\" (click)=\"callbackFunction(viewInfoObjList[i], mi.key)\">\r\n {{ viewInfoObjList[i][mi.property] }}\r\n </a>\r\n </label>\r\n <textarea *ngIf=\"mi.type == 'textarea'\" class=\"form-control\" readonly\r\n [ngClass]=\"mi.customClassProperty != undefined ? mi.customClassProperty : ''\"\r\n translate> {{ viewInfoObjList[i][mi.property] }} </textarea>\r\n <span *ngIf=\"mi.type == 'boolean'\"\r\n [ngClass]=\"mi.customClassProperty != undefined ? mi.customClassProperty : ''\" translate>\r\n <label *ngIf=\"viewInfoObjList[i][mi.property] == true\">Yes</label>\r\n <label *ngIf=\"viewInfoObjList[i][mi.property] == false\">No</label>\r\n <!-- <label\r\n *ngIf=\"viewInfoObjList[i][mi.property] == '' || viewInfoObjList[i][mi.property] == null\">-</label> -->\r\n </span>\r\n <span *ngIf=\"mi.type == 'concat'\">\r\n <label class=\"label-control breakword\"\r\n [ngClass]=\"mi.customClassProperty != undefined ? mi.customClassProperty : ''\" translate>\r\n {{ mi.concat }}\r\n </label>\r\n </span>\r\n <span *ngIf=\"mi.type == 'switch'\">\r\n <span *ngFor=\"let cs of mi?.case\">\r\n <span *ngIf=\"switchCase(viewInfoObjList[i],cs) && !cs.Hidden\">\r\n <span class=\"label-control breakword\"\r\n [ngClass]=\"mi.customClassProperty != undefined ? mi.customClassProperty : ''\"\r\n translate *ngIf=\"cs.result.type == 'text'\">{{ viewInfoObjList[i][cs.result.property]\r\n }}\r\n </span>\r\n <span [ngClass]=\"mi.customClassProperty != undefined ? mi.customClassProperty : ''\"\r\n translate *ngIf=\"cs.result.type == 'decimal'\">{{\r\n viewInfoObjList[i][cs.result.property] | number:'.2':'en-US' }}</span>\r\n <span [ngClass]=\"mi.customClassProperty != undefined ? mi.customClassProperty : ''\"\r\n translate *ngIf=\"cs.result.type == 'date'\">{{ viewInfoObjList[i][cs.result.property] |\r\n date: 'dd-MMM-yyyy' }}\r\n </span>\r\n <span *ngIf=\"cs.result.type == 'link'\"\r\n [ngClass]=\"mi.customClassProperty != undefined ? mi.customClassProperty : ''\"\r\n translate>\r\n <a [target]=\"cs.result.target\" [routerLink]=\"genRouterLink(cs.result.path)\"\r\n [queryParams]=\"genAction(viewInfoObjList[i],cs.result.param)\">\r\n <span *ngIf=\"(mi.isCurrency != undefined && mi.isCurrency)\">{{\r\n viewInfoObjList[i][cs.result.property] | number:'.2':'en-US' }}</span>\r\n <span *ngIf=\"(mi.isCurrency == undefined || !mi.isCurrency)\">{{\r\n viewInfoObjList[i][cs.result.property] }}</span>\r\n </a>\r\n </span>\r\n <span *ngIf=\"cs.result.type == 'boolean'\"\r\n [ngClass]=\"mi.customClassProperty != undefined ? mi.customClassProperty : ''\"\r\n translate>\r\n <span *ngIf=\"viewInfoObjList[i][cs.result.property] == 'true'\">Yes</span>\r\n <span *ngIf=\"viewInfoObjList[i][cs.result.property] == 'false'\">No</span>\r\n </span>\r\n <span *ngIf=\"cs.result.type == 'concat'\">\r\n <label class=\"label-control breakword\"\r\n [ngClass]=\"mi.customClassProperty != undefined ? mi.customClassProperty : ''\" translate>\r\n {{ cs.result.concat }}\r\n </label>\r\n </span>\r\n <span *ngIf=\"cs.result.type == 'callback'\">\r\n <span\r\n *ngIf=\"cs.result.isText != undefined && cs.result.isText; then textCallback else iconCallback\"></span>\r\n <ng-template #textCallback>\r\n <span>\r\n <a href=\"javascript:void(0);\" (click)=\"callbackFunction(viewInfoObjList[i], cs.result.key)\">{{\r\n viewInfoObjList[i][cs.result.property] }}</a>\r\n </span>\r\n </ng-template>\r\n <ng-template #iconCallback>\r\n <span>\r\n <a [ngClass]=\"[cs.result.tooltip != undefined && cs.result.tooltip != '' ? 'tooltips' : '', cs.result.anchor == undefined || cs.result.anchor == '' ? 'success p-0' : cs.result.anchor]\"\r\n (click)=\"callbackFunction(viewInfoObjList[i], cs.result.key)\">\r\n <i class=\"font-medium-3 mr-2\"\r\n [ngClass]=\" cs.result.icon == undefined || cs.result.icon == '' ? 'ft-edit-2' : cs.result.icon \">\r\n </i>\r\n <span *ngIf=\"cs.result.tooltip != undefined && cs.result.tooltip != ''\"\r\n [ngClass]=\"cs.result.tooltip != undefined && cs.result.tooltip != '' ? 'tooltipstext' : ''\">\r\n {{cs.result.tooltip}}\r\n </span>\r\n </a>\r\n </span>\r\n </ng-template>\r\n </span>\r\n </span>\r\n </span>\r\n </span>\r\n </ng-template>\r\n </div>\r\n </div>\r\n </span>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n</section>" }]
447
+ }], ctorParameters: function () { return [{ type: i1.ActivatedRoute }, { type: i2.HttpClient }, { type: i3.TranslateService }, { type: i4.CookieService }]; }, propDecorators: { viewGenericObj: [{
448
+ type: Input
449
+ }], callback: [{
450
+ type: Output
451
+ }] } });
452
+
453
+ class UcviewgenericModule {
454
+ }
455
+ /** @nocollapse */ /** @nocollapse */ UcviewgenericModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: UcviewgenericModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
456
+ /** @nocollapse */ /** @nocollapse */ UcviewgenericModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: UcviewgenericModule, declarations: [UcviewgenericComponent], imports: [CommonModule,
457
+ RouterModule,
458
+ UcSubsectionModule, i3.TranslateModule], exports: [UcviewgenericComponent] });
459
+ /** @nocollapse */ /** @nocollapse */ UcviewgenericModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: UcviewgenericModule, imports: [[
460
+ CommonModule,
461
+ RouterModule,
462
+ UcSubsectionModule,
463
+ TranslateModule.forChild()
464
+ ]] });
465
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: UcviewgenericModule, decorators: [{
466
+ type: NgModule,
467
+ args: [{
468
+ declarations: [UcviewgenericComponent],
469
+ imports: [
470
+ CommonModule,
471
+ RouterModule,
472
+ UcSubsectionModule,
473
+ TranslateModule.forChild()
474
+ ],
475
+ exports: [UcviewgenericComponent]
476
+ }]
477
+ }] });
478
+
479
+ /*
480
+ * Public API Surface of ucviewgeneric
481
+ */
482
+
483
+ /**
484
+ * Generated bundle index. Do not edit.
485
+ */
486
+
487
+ export { UcviewgenericComponent, UcviewgenericModule, UcviewgenericService };
488
+ //# sourceMappingURL=adins-ucviewgeneric.mjs.map