@seniorsistemas/exclusion-process-component 0.0.1-c049d10c-e93a-4d63-9c2a-b17bca40c324 → 0.6.0-44030ff3-2eeb-49f7-8927-0920cc01a805

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 (200) hide show
  1. package/.editorconfig +19 -0
  2. package/.gitlab-ci.yml +74 -0
  3. package/.prettierrc +8 -0
  4. package/.senior-ci-extensions.sh +21 -0
  5. package/.vscode/settings.json +6 -0
  6. package/CHANGELOG.md +22 -0
  7. package/README.md +16 -0
  8. package/angular.json +144 -0
  9. package/archive.tar.gz +0 -0
  10. package/e2e/app.e2e-spec.ts +14 -0
  11. package/e2e/app.po.ts +11 -0
  12. package/e2e/tsconfig.e2e.json +14 -0
  13. package/karma.conf.js +53 -0
  14. package/lib/.browserslistrc +5 -0
  15. package/lib/package.json +19 -0
  16. package/{enums/enum-exclusion-process-status.d.ts → lib/src/enums/enum-exclusion-process-status.ts} +1 -1
  17. package/lib/src/exclusion-details/exclusion-details.component.html +84 -0
  18. package/lib/src/exclusion-details/exclusion-details.component.scss +47 -0
  19. package/lib/src/exclusion-details/exclusion-details.component.spec.ts +171 -0
  20. package/lib/src/exclusion-details/exclusion-details.component.ts +235 -0
  21. package/lib/src/exclusion-details/exclusion-details.module.ts +23 -0
  22. package/{exclusion-details/protocols/exclusion-details.d.ts → lib/src/exclusion-details/protocols/exclusion-details.ts} +1 -0
  23. package/{exclusion-details/protocols/show-details-information.d.ts → lib/src/exclusion-details/protocols/show-details-information.ts} +1 -1
  24. package/lib/src/exclusions-list/exclusions-list.component.html +157 -0
  25. package/lib/src/exclusions-list/exclusions-list.component.spec.ts +526 -0
  26. package/lib/src/exclusions-list/exclusions-list.component.ts +335 -0
  27. package/lib/src/exclusions-list/exclusions-list.module.ts +52 -0
  28. package/lib/src/exclusions-list/exclusions-list.routing.ts +89 -0
  29. package/lib/src/exclusions-list/index.ts +2 -0
  30. package/lib/src/logical-delete.module.ts +22 -0
  31. package/{models/exclusion-process-step-group.d.ts → lib/src/models/exclusion-process-step-group.ts} +1 -0
  32. package/{models/exclusion-process-step.d.ts → lib/src/models/exclusion-process-step.ts} +1 -0
  33. package/{models/exclusion-process.d.ts → lib/src/models/exclusion-process.ts} +1 -0
  34. package/{models/list-params.d.ts → lib/src/models/list-params.ts} +1 -0
  35. package/{models/project-config.d.ts → lib/src/models/project-config.ts} +3 -1
  36. package/lib/src/services/filter.service.spec.ts +290 -0
  37. package/lib/src/services/filter.service.ts +109 -0
  38. package/lib/src/services/index.ts +1 -0
  39. package/lib/src/services/logical-delete-config.service.spec.ts +59 -0
  40. package/lib/src/services/logical-delete-config.service.ts +25 -0
  41. package/lib/src/services/logical-delete.service.spec.ts +322 -0
  42. package/lib/src/services/logical-delete.service.ts +122 -0
  43. package/lib/test.ts +14 -0
  44. package/lib/tsconfig.lib.json +19 -0
  45. package/lib/tsconfig.lib.prod.json +6 -0
  46. package/lib/tsconfig.spec.json +12 -0
  47. package/lib/tslint.json +19 -0
  48. package/package.json +59 -18
  49. package/protractor.conf.js +28 -0
  50. package/senior-ci/.devcontainer/Dockerfile +27 -0
  51. package/senior-ci/.devcontainer/devcontainer.json +71 -0
  52. package/senior-ci/.editorconfig +14 -0
  53. package/senior-ci/.gitattributes +5 -0
  54. package/senior-ci/.gitlab-ci.yml +53 -0
  55. package/senior-ci/.pylintrc +562 -0
  56. package/senior-ci/.vscode/launch.json +102 -0
  57. package/senior-ci/CHANGELOG.md +1564 -0
  58. package/senior-ci/CONTRIBUTING.md +31 -0
  59. package/senior-ci/README.md +26 -0
  60. package/senior-ci/ci/ci.sh +74 -0
  61. package/senior-ci/ci/sonar_scanner.py +48 -0
  62. package/senior-ci/common/__init__.py +250 -0
  63. package/senior-ci/common/default-files/pom.xml +10 -0
  64. package/senior-ci/common/docker-helpers.sh +57 -0
  65. package/senior-ci/common/extensions.py +88 -0
  66. package/senior-ci/common/flutter-helpers.sh +3 -0
  67. package/senior-ci/common/getopt_helper.py +168 -0
  68. package/senior-ci/common/graphql_client.py +40 -0
  69. package/senior-ci/common/helm_helpers.py +40 -0
  70. package/senior-ci/common/notification-helpers.sh +15 -0
  71. package/senior-ci/common/npm-helper.sh +4 -0
  72. package/senior-ci/common/parallel-helper.sh +8 -0
  73. package/senior-ci/common/release-helpers.sh +196 -0
  74. package/senior-ci/common/s3cache-helpers.sh +47 -0
  75. package/senior-ci/common/senior-ci-extensions-helpers.sh +15 -0
  76. package/senior-ci/common/sonar_helper.py +203 -0
  77. package/senior-ci/common/validations/buildable_project.py +61 -0
  78. package/senior-ci/common/validations/check_deprecated_primitives.py +49 -0
  79. package/senior-ci/common/validations/check_project_path.py +40 -0
  80. package/senior-ci/common/validations/check_sonar_config_files.py +41 -0
  81. package/senior-ci/common/validations/check_tags.py +41 -0
  82. package/senior-ci/common/validations/validate_changelog.py +151 -0
  83. package/senior-ci/common/validations/validate_issues.py +320 -0
  84. package/senior-ci/docker/build.sh +18 -0
  85. package/senior-ci/docker/config-host.sh +29 -0
  86. package/senior-ci/docker/deploy-service.sh +79 -0
  87. package/senior-ci/docker/push.sh +22 -0
  88. package/senior-ci/frontend/npm/bibliotecas/ci.sh +149 -0
  89. package/senior-ci/frontend/npm/ci.sh +370 -0
  90. package/senior-ci/frontend/npm/release-translations.sh +164 -0
  91. package/senior-ci/helm/deploy.py +56 -0
  92. package/senior-ci/helm/publish.py +41 -0
  93. package/senior-ci/hook/release_notification.sh +88 -0
  94. package/senior-ci/hook/text_notification.sh +10 -0
  95. package/senior-ci/java/bibliotecas/ci.sh +215 -0
  96. package/senior-ci/java/sdl/ci.sh +372 -0
  97. package/senior-ci/java/sdl/scripts/hotfix.sh +78 -0
  98. package/senior-ci/mobile/flutter/apps/__main__.py +5 -0
  99. package/senior-ci/mobile/flutter/apps/ci.py +193 -0
  100. package/senior-ci/mobile/flutter/libs/__main__.py +5 -0
  101. package/senior-ci/mobile/flutter/libs/ci.py +178 -0
  102. package/senior-ci/mobile/flutter/scripts/release.sh +54 -0
  103. package/senior-ci/release-candidate/backend/get_version.sh +64 -0
  104. package/senior-ci/release-candidate/close_branch.sh +113 -0
  105. package/senior-ci/release-candidate/common/create_hotfix.sh +28 -0
  106. package/senior-ci/release-candidate/common/create_release.sh +30 -0
  107. package/senior-ci/release-candidate/create_branch.sh +64 -0
  108. package/senior-ci/release-candidate/frontend/get_version.sh +43 -0
  109. package/senior-ci/requirements-dev.txt +5 -0
  110. package/senior-ci/requirements.txt +5 -0
  111. package/senior-ci/scripts/apply_yamls.py +229 -0
  112. package/senior-ci/scripts/create_sre_issue/__main__.py +7 -0
  113. package/senior-ci/scripts/create_sre_issue/create_sre_issue.py +267 -0
  114. package/senior-ci/scripts/create_sre_issue/helpers.py +166 -0
  115. package/senior-ci/scripts/create_sre_issue/jira_manager.py +37 -0
  116. package/senior-ci/scripts/validate_changelog.sh +3 -0
  117. package/senior-ci/sonar-project.properties +1 -0
  118. package/server.js +5 -0
  119. package/sonar-project.properties +10 -0
  120. package/src/app/app.component.html +43 -0
  121. package/src/app/app.component.scss +36 -0
  122. package/src/app/app.component.ts +56 -0
  123. package/src/app/app.module.ts +64 -0
  124. package/src/app/shared/shared.module.ts +28 -0
  125. package/src/environments/environment.default.ts +3 -0
  126. package/src/environments/environment.prod.ts +6 -0
  127. package/src/environments/environment.ts +7 -0
  128. package/src/favicon.ico +0 -0
  129. package/src/index.html +17 -0
  130. package/src/locale/en-US.json +3 -0
  131. package/src/locale/es-ES.json +3 -0
  132. package/src/locale/pt-BR.json +3 -0
  133. package/src/main.ts +13 -0
  134. package/src/polyfills.ts +58 -0
  135. package/src/styles.scss +11 -0
  136. package/src/tsconfig.app.json +21 -0
  137. package/src/typings.d.ts +15 -0
  138. package/tsconfig.json +39 -0
  139. package/tslint.json +80 -0
  140. package/bundles/seniorsistemas-exclusion-process-component.umd.js +0 -747
  141. package/bundles/seniorsistemas-exclusion-process-component.umd.js.map +0 -1
  142. package/bundles/seniorsistemas-exclusion-process-component.umd.min.js +0 -16
  143. package/bundles/seniorsistemas-exclusion-process-component.umd.min.js.map +0 -1
  144. package/esm2015/enums/enum-exclusion-process-status.js +0 -8
  145. package/esm2015/exclusion-details/exclusion-details.component.js +0 -216
  146. package/esm2015/exclusion-details/exclusion-details.module.js +0 -28
  147. package/esm2015/exclusion-details/index.js +0 -3
  148. package/esm2015/exclusion-details/protocols/exclusion-details.js +0 -1
  149. package/esm2015/exclusion-details/protocols/index.js +0 -2
  150. package/esm2015/exclusion-details/protocols/show-details-information.js +0 -3
  151. package/esm2015/logical-delete.module.js +0 -27
  152. package/esm2015/models/exclusion-process-step-group.js +0 -1
  153. package/esm2015/models/exclusion-process-step.js +0 -1
  154. package/esm2015/models/exclusion-process.js +0 -1
  155. package/esm2015/models/index.js +0 -1
  156. package/esm2015/models/list-params.js +0 -1
  157. package/esm2015/models/list-result.js +0 -1
  158. package/esm2015/models/project-config.js +0 -3
  159. package/esm2015/public-api.js +0 -3
  160. package/esm2015/seniorsistemas-exclusion-process-component.js +0 -9
  161. package/esm2015/services/filter.service.js +0 -104
  162. package/esm2015/services/logical-delete-config.service.js +0 -29
  163. package/esm2015/services/logical-delete.service.js +0 -109
  164. package/esm5/enums/enum-exclusion-process-status.js +0 -8
  165. package/esm5/exclusion-details/exclusion-details.component.js +0 -235
  166. package/esm5/exclusion-details/exclusion-details.module.js +0 -31
  167. package/esm5/exclusion-details/index.js +0 -3
  168. package/esm5/exclusion-details/protocols/exclusion-details.js +0 -1
  169. package/esm5/exclusion-details/protocols/index.js +0 -2
  170. package/esm5/exclusion-details/protocols/show-details-information.js +0 -7
  171. package/esm5/logical-delete.module.js +0 -31
  172. package/esm5/models/exclusion-process-step-group.js +0 -1
  173. package/esm5/models/exclusion-process-step.js +0 -1
  174. package/esm5/models/exclusion-process.js +0 -1
  175. package/esm5/models/index.js +0 -1
  176. package/esm5/models/list-params.js +0 -1
  177. package/esm5/models/list-result.js +0 -1
  178. package/esm5/models/project-config.js +0 -3
  179. package/esm5/public-api.js +0 -3
  180. package/esm5/seniorsistemas-exclusion-process-component.js +0 -9
  181. package/esm5/services/filter.service.js +0 -109
  182. package/esm5/services/logical-delete-config.service.js +0 -30
  183. package/esm5/services/logical-delete.service.js +0 -112
  184. package/exclusion-details/exclusion-details.component.d.ts +0 -49
  185. package/exclusion-details/exclusion-details.module.d.ts +0 -2
  186. package/fesm2015/seniorsistemas-exclusion-process-component.js +0 -495
  187. package/fesm2015/seniorsistemas-exclusion-process-component.js.map +0 -1
  188. package/fesm5/seniorsistemas-exclusion-process-component.js +0 -530
  189. package/fesm5/seniorsistemas-exclusion-process-component.js.map +0 -1
  190. package/logical-delete.module.d.ts +0 -5
  191. package/seniorsistemas-exclusion-process-component.d.ts +0 -8
  192. package/seniorsistemas-exclusion-process-component.metadata.json +0 -1
  193. package/services/filter.service.d.ts +0 -19
  194. package/services/logical-delete-config.service.d.ts +0 -8
  195. package/services/logical-delete.service.d.ts +0 -20
  196. /package/{exclusion-details/index.d.ts → lib/src/exclusion-details/index.ts} +0 -0
  197. /package/{exclusion-details/protocols/index.d.ts → lib/src/exclusion-details/protocols/index.ts} +0 -0
  198. /package/{models/index.d.ts → lib/src/models/index.ts} +0 -0
  199. /package/{models/list-result.d.ts → lib/src/models/list-result.ts} +0 -0
  200. /package/{public-api.d.ts → lib/src/public-api.ts} +0 -0
@@ -1,530 +0,0 @@
1
- import { __decorate, __param, __spread, __assign } from 'tslib';
2
- import { CommonModule } from '@angular/common';
3
- import { InjectionToken, Inject, Injectable, Output, Component, ViewEncapsulation, NgModule } from '@angular/core';
4
- import { PanelModule } from 'primeng/panel';
5
- import { TableModule } from 'primeng/table';
6
- import { EnumColumnFieldType, EnumBadgeColors, SidebarModule, ButtonModule, TableModule as TableModule$1, LoadingStateModule, LocaleModule, FieldType } from '@seniorsistemas/angular-components';
7
- import * as moment from 'moment';
8
- import { Router, ActivatedRoute } from '@angular/router';
9
- import { throwError, Subject } from 'rxjs';
10
- import { catchError, map, takeUntil, finalize } from 'rxjs/operators';
11
- import { HttpParams, HttpClient } from '@angular/common/http';
12
- import { TranslateService } from '@ngx-translate/core';
13
- import { MessageService } from 'primeng/api';
14
-
15
- var EnumExclusionProcessStatus;
16
- (function (EnumExclusionProcessStatus) {
17
- EnumExclusionProcessStatus["PENDING"] = "PENDING";
18
- EnumExclusionProcessStatus["PROCESSING"] = "PROCESSING";
19
- EnumExclusionProcessStatus["ERROR"] = "ERROR";
20
- EnumExclusionProcessStatus["SUCCESS"] = "SUCCESS";
21
- })(EnumExclusionProcessStatus || (EnumExclusionProcessStatus = {}));
22
-
23
- var ProjectConfigsInjectionToken = new InjectionToken("projectConfigs");
24
-
25
- var LogicalDeleteConfigService = /** @class */ (function () {
26
- function LogicalDeleteConfigService(projectConfigs) {
27
- this.projectConfigs = projectConfigs;
28
- }
29
- LogicalDeleteConfigService.prototype.getDomain = function () {
30
- return this.projectConfigs.domain;
31
- };
32
- LogicalDeleteConfigService.prototype.getService = function () {
33
- return this.projectConfigs.service;
34
- };
35
- LogicalDeleteConfigService.prototype.getTranslationPrefix = function () {
36
- if (this.projectConfigs.translationPrefix) {
37
- return this.projectConfigs.translationPrefix;
38
- }
39
- return this.projectConfigs.domain + "." + this.projectConfigs.service;
40
- };
41
- LogicalDeleteConfigService.ctorParameters = function () { return [
42
- { type: undefined, decorators: [{ type: Inject, args: [ProjectConfigsInjectionToken,] }] }
43
- ]; };
44
- LogicalDeleteConfigService = __decorate([
45
- Injectable(),
46
- __param(0, Inject(ProjectConfigsInjectionToken))
47
- ], LogicalDeleteConfigService);
48
- return LogicalDeleteConfigService;
49
- }());
50
-
51
- var LogicalDeleteService = /** @class */ (function () {
52
- function LogicalDeleteService(http, messageService, translate, projectConfigs) {
53
- this.http = http;
54
- this.messageService = messageService;
55
- this.translate = translate;
56
- this.projectConfigs = projectConfigs;
57
- var entityUrl = projectConfigs.getDomain() + "/" + projectConfigs.getService();
58
- this.exclusionProcessUrl = entityUrl + "/entities/exclusionProcess";
59
- this.listExclusionsUrl = entityUrl + "/entities/exclusionProcess";
60
- this.defaultCatch = this.defaultCatch.bind(this);
61
- }
62
- LogicalDeleteService.prototype.defaultCatch = function () {
63
- var _this = this;
64
- return catchError(function (err) {
65
- if (err) {
66
- var summary = err.status ? String(err.status) : "Error";
67
- var detail = (err.error && err.error.message) || err.statusText || err.message || "Error";
68
- if (err.status === 401) {
69
- var prefix = _this.projectConfigs.getTranslationPrefix();
70
- summary = _this.translate.instant(prefix + ".error_unauthorized_title");
71
- detail = _this.translate.instant(prefix + ".error_unauthorized_description");
72
- }
73
- _this.messageService.add({
74
- severity: "error",
75
- summary: summary,
76
- detail: detail
77
- });
78
- }
79
- return throwError(err);
80
- });
81
- };
82
- LogicalDeleteService.prototype.getListQueryParams = function (listParams) {
83
- var _a = listParams.page, page = _a === void 0 ? 0 : _a, _b = listParams.size, size = _b === void 0 ? 10 : _b, _c = listParams.sort, sort = _c === void 0 ? [] : _c, _d = listParams.filterQuery, filterQuery = _d === void 0 ? "" : _d, _e = listParams.displayFields, displayFields = _e === void 0 ? [] : _e;
84
- var params = new HttpParams();
85
- params = params.append("size", String(size));
86
- params = params.append("offset", String(page));
87
- if (sort && sort.length) {
88
- params = params.append("orderby", sort
89
- .map(function (s) {
90
- if (s.order === -1) {
91
- return s.field + " desc";
92
- }
93
- return s.field + " asc";
94
- })
95
- .join(", "));
96
- }
97
- if (filterQuery) {
98
- params = params.append("filter", filterQuery);
99
- }
100
- if (displayFields && displayFields.length) {
101
- params = params.append("displayfields", displayFields.join());
102
- }
103
- return params;
104
- };
105
- LogicalDeleteService.prototype.getProcessDetails = function (recordId) {
106
- var filterParams = {
107
- filter: "recordId eq '" + recordId + "'"
108
- };
109
- return this.http.get(this.exclusionProcessUrl, { params: filterParams })
110
- .pipe(this.defaultCatch())
111
- .pipe(map(function (value) {
112
- var _a;
113
- if (!((_a = value.contents) === null || _a === void 0 ? void 0 : _a.length)) {
114
- return null;
115
- }
116
- return value.contents[0];
117
- }));
118
- };
119
- LogicalDeleteService.prototype.listExclusions = function (entityName, params) {
120
- if (params === void 0) { params = {}; }
121
- if (params.filterQuery) {
122
- params.filterQuery += " and lower(entityName) eq lower('" + entityName + "')";
123
- }
124
- else {
125
- params.filterQuery = "lower(entityName) eq lower('" + entityName + "')";
126
- }
127
- return this.http.get(this.exclusionProcessUrl, { params: this.getListQueryParams(params) })
128
- .pipe(this.defaultCatch())
129
- .pipe(map(function (value) {
130
- value.contents.forEach(function (p) {
131
- if (p.startDate) {
132
- p.startDate = moment(p.startDate).toDate();
133
- }
134
- if (p.finishDate) {
135
- p.finishDate = moment(p.finishDate).toDate();
136
- }
137
- });
138
- return value;
139
- }));
140
- };
141
- LogicalDeleteService.ctorParameters = function () { return [
142
- { type: HttpClient },
143
- { type: MessageService },
144
- { type: TranslateService },
145
- { type: LogicalDeleteConfigService }
146
- ]; };
147
- LogicalDeleteService = __decorate([
148
- Injectable()
149
- ], LogicalDeleteService);
150
- return LogicalDeleteService;
151
- }());
152
-
153
- var ExclusionDetailsComponent = /** @class */ (function () {
154
- function ExclusionDetailsComponent(router, route, translate, logicalDeleteService, projectConfigs) {
155
- this.router = router;
156
- this.route = route;
157
- this.translate = translate;
158
- this.logicalDeleteService = logicalDeleteService;
159
- this.projectConfigs = projectConfigs;
160
- this._entityName = "";
161
- this._isVisible = false;
162
- this._isLoading = false;
163
- this._processSummaryData = [];
164
- this._processSummaryColumns = [];
165
- this.ngUnsubscribe = new Subject();
166
- }
167
- Object.defineProperty(ExclusionDetailsComponent.prototype, "isVisible", {
168
- get: function () {
169
- return this._isVisible;
170
- },
171
- enumerable: true,
172
- configurable: true
173
- });
174
- Object.defineProperty(ExclusionDetailsComponent.prototype, "isLoading", {
175
- get: function () {
176
- return this._isLoading;
177
- },
178
- enumerable: true,
179
- configurable: true
180
- });
181
- Object.defineProperty(ExclusionDetailsComponent.prototype, "processSummaryData", {
182
- get: function () {
183
- return this._processSummaryData;
184
- },
185
- enumerable: true,
186
- configurable: true
187
- });
188
- Object.defineProperty(ExclusionDetailsComponent.prototype, "processSummaryColumns", {
189
- get: function () {
190
- return this._processSummaryColumns;
191
- },
192
- enumerable: true,
193
- configurable: true
194
- });
195
- ExclusionDetailsComponent.prototype.ngOnInit = function () {
196
- var _this = this;
197
- this.route.data
198
- .pipe(takeUntil(this.ngUnsubscribe))
199
- .subscribe(function (data) {
200
- _this.locale = data.localeConfig;
201
- });
202
- this._processSummaryColumns = this.getSummaryColumns();
203
- };
204
- ExclusionDetailsComponent.prototype.ngOnDestroy = function () {
205
- this.ngUnsubscribe.next();
206
- this.ngUnsubscribe.complete();
207
- };
208
- ExclusionDetailsComponent.prototype.showDetails = function (details) {
209
- this.processDetails = null;
210
- this._entityName = details.entityName;
211
- this._isVisible = true;
212
- this.entityDescription = details.entityDescription;
213
- this.loadProcessDetails(details.recordId);
214
- };
215
- ExclusionDetailsComponent.prototype.closeDetails = function () {
216
- this._isVisible = false;
217
- };
218
- ExclusionDetailsComponent.prototype.openExclusions = function () {
219
- this.closeDetails();
220
- this.router.navigate(["exclusions-list", this._entityName], {
221
- queryParams: {
222
- entityDescription: this.entityDescription
223
- }
224
- });
225
- };
226
- ExclusionDetailsComponent.prototype.getRecordDescription = function () {
227
- var _a;
228
- if (!((_a = this.processDetails) === null || _a === void 0 ? void 0 : _a.description)) {
229
- return "";
230
- }
231
- return this.processDetails.description;
232
- };
233
- ExclusionDetailsComponent.prototype.getInicialDate = function () {
234
- var _a;
235
- if (!((_a = this.processDetails) === null || _a === void 0 ? void 0 : _a.startDate)) {
236
- return "";
237
- }
238
- return moment(this.processDetails.startDate).format("DD/MM/YYYY HH:mm");
239
- };
240
- ExclusionDetailsComponent.prototype.getFinishDate = function () {
241
- var _a;
242
- if (!((_a = this.processDetails) === null || _a === void 0 ? void 0 : _a.finishDate)) {
243
- return "";
244
- }
245
- return moment(this.processDetails.finishDate).format("DD/MM/YYYY HH:mm");
246
- };
247
- ExclusionDetailsComponent.prototype.isFinished = function () {
248
- var _a;
249
- return !!((_a = this.processDetails) === null || _a === void 0 ? void 0 : _a.finishDate);
250
- };
251
- ExclusionDetailsComponent.prototype.getShowExclusionsButtonLabel = function () {
252
- return this.translate.instant(this.projectConfigs.getTranslationPrefix() + ".logical_delete_show_deletions");
253
- };
254
- ExclusionDetailsComponent.prototype.getCloseButtonLabel = function () {
255
- return this.translate.instant(this.projectConfigs.getTranslationPrefix() + ".logical_delete_close");
256
- };
257
- ExclusionDetailsComponent.prototype.getSummaryLabel = function () {
258
- return this.translate.instant(this.projectConfigs.getTranslationPrefix() + ".logical_delete_summary");
259
- };
260
- ExclusionDetailsComponent.prototype.getStartDateLabel = function () {
261
- return this.translate.instant(this.projectConfigs.getTranslationPrefix() + ".logical_delete_start");
262
- };
263
- ExclusionDetailsComponent.prototype.getFinishDateLabel = function () {
264
- return this.translate.instant(this.projectConfigs.getTranslationPrefix() + ".logical_delete_finish");
265
- };
266
- ExclusionDetailsComponent.prototype.getSidebarTitle = function () {
267
- return this.translate.instant(this.projectConfigs.getTranslationPrefix() + ".logical_delete_details_title");
268
- };
269
- ExclusionDetailsComponent.prototype.getSummaryColumns = function () {
270
- return [
271
- {
272
- field: "description",
273
- attributes: ["description"],
274
- header: this.translate.instant(this.projectConfigs.getTranslationPrefix() + ".logical_delete_description"),
275
- type: EnumColumnFieldType.STRING,
276
- style: {
277
- width: "300px"
278
- }
279
- },
280
- {
281
- field: "status",
282
- attributes: ["status"],
283
- header: this.translate.instant(this.projectConfigs.getTranslationPrefix() + ".logical_delete_status"),
284
- type: EnumColumnFieldType.ENUM,
285
- enumPrefix: this.projectConfigs.getTranslationPrefix() + ".logical_delete_enum_exclusion_process_status_",
286
- style: {
287
- width: "100px"
288
- },
289
- tooltip: this.getColumnStatusTooltip,
290
- badgeConfigs: [
291
- {
292
- enumValue: EnumExclusionProcessStatus.ERROR,
293
- color: EnumBadgeColors.RED
294
- },
295
- {
296
- enumValue: EnumExclusionProcessStatus.PENDING,
297
- color: EnumBadgeColors.YELLOW
298
- },
299
- {
300
- enumValue: EnumExclusionProcessStatus.PROCESSING,
301
- color: EnumBadgeColors.BLUE
302
- },
303
- {
304
- enumValue: EnumExclusionProcessStatus.SUCCESS,
305
- color: EnumBadgeColors.GREEN
306
- }
307
- ]
308
- }
309
- ];
310
- };
311
- ExclusionDetailsComponent.prototype.getColumnStatusTooltip = function (rowValue) {
312
- if (rowValue.errorMessage) {
313
- return rowValue.errorMessage;
314
- }
315
- return null;
316
- };
317
- ExclusionDetailsComponent.prototype.loadProcessDetails = function (recordId) {
318
- var _this = this;
319
- this._isLoading = true;
320
- this.logicalDeleteService.getProcessDetails(recordId)
321
- .pipe(takeUntil(this.ngUnsubscribe))
322
- .pipe(finalize(function () { return _this._isLoading = false; }))
323
- .subscribe(function (process) {
324
- _this.processDetails = process;
325
- _this.loadProcessSummary(process);
326
- });
327
- };
328
- ExclusionDetailsComponent.prototype.loadProcessSummary = function (process) {
329
- var stepLogs = [];
330
- process.groups.forEach(function (group) {
331
- var steps = group.steps.map(function (step) { return ({
332
- description: step.description,
333
- status: step.status,
334
- errorMessage: step.errorMessage
335
- }); });
336
- stepLogs.push.apply(stepLogs, __spread(steps));
337
- });
338
- this._processSummaryData = stepLogs;
339
- };
340
- ExclusionDetailsComponent.ctorParameters = function () { return [
341
- { type: Router },
342
- { type: ActivatedRoute },
343
- { type: TranslateService },
344
- { type: LogicalDeleteService },
345
- { type: LogicalDeleteConfigService }
346
- ]; };
347
- __decorate([
348
- Output()
349
- ], ExclusionDetailsComponent.prototype, "isVisible", null);
350
- __decorate([
351
- Output()
352
- ], ExclusionDetailsComponent.prototype, "isLoading", null);
353
- __decorate([
354
- Output()
355
- ], ExclusionDetailsComponent.prototype, "processSummaryData", null);
356
- __decorate([
357
- Output()
358
- ], ExclusionDetailsComponent.prototype, "processSummaryColumns", null);
359
- __decorate([
360
- Output()
361
- ], ExclusionDetailsComponent.prototype, "processDetails", void 0);
362
- __decorate([
363
- Output()
364
- ], ExclusionDetailsComponent.prototype, "entityDescription", void 0);
365
- ExclusionDetailsComponent = __decorate([
366
- Component({
367
- selector: "s-exclusion-details",
368
- template: "<s-sidebar [visible]=\"isVisible\" (visibleChange)=\"closeDetails()\" [header]=\"getSidebarTitle()\">\n <s-loading-state [loading]=\"isLoading\">\n <p-panel [showHeader]=\"false\" styleClass=\"s-exclusion-details-record-details-panel\">\n <div class=\"s-exclusion-details-record-details-container\">\n <div class=\"s-exclusion-details-record-icon-background\">\n <i class=\"far fa-file-alt s-exclusion-details-record-icon\"></i>\n </div>\n\n <div class=\"s-exclusion-details-record-details-recordinfo\">\n <span class=\"s-exclusion-details-record-details-type\">\n {{entityDescription}}\n </span>\n <span>\n {{getRecordDescription()}}\n </span>\n </div>\n\n <div class=\"s-exclusion-details-record-details-dateinfo\">\n <span>\n {{getStartDateLabel()}}: {{getInicialDate()}}\n </span>\n <span *ngIf=\"isFinished()\">\n {{getFinishDateLabel()}}: {{getFinishDate()}}\n </span>\n </div>\n </div>\n </p-panel>\n\n <p-panel>\n <p-header>\n {{getSummaryLabel()}}\n </p-header>\n <p-table\n [value]=\"processSummaryData\"\n [columns]=\"processSummaryColumns\"\n dataKey=\"id\"\n [lazy]=\"false\"\n [scrollable]=\"false\"\n [paginator]=\"false\">\n\n <ng-template pTemplate=\"colgroup\" let-columns>\n <colgroup>\n <col *ngFor=\"let col of columns\"\n [style.width]=\"col.width\"\n />\n </colgroup>\n </ng-template>\n\n <ng-template pTemplate=\"header\" let-columns>\n <tr>\n <th *ngFor=\"let col of columns\"\n [id]=\"col.field\"\n [ngStyle]=\"col.style\" \n [pSortableColumn]=\"col.field\">\n <div class=\"senior-header\">\n <span class=\"senior-header-title\">{{ col.header }}</span>\n <p-sortIcon [field]=\"col.field\" ></p-sortIcon>\n </div>\n </th>\n </tr>\n </ng-template>\n\n <ng-template pTemplate=\"body\" let-rowData let-columns=\"columns\">\n <tr>\n <s-table-columns\n [columns]=\"columns\"\n [rowValue]=\"rowData\"\n [locale]=\"locale\">\n </s-table-columns>\n </tr>\n </ng-template>\n </p-table>\n </p-panel>\n </s-loading-state>\n\n <s-footer>\n <div class=\"ui-fluid\">\n <div class=\"ui-g\">\n <s-button [label]=\"getShowExclusionsButtonLabel()\" (onClick)=\"openExclusions()\"></s-button>\n <s-button [label]=\"getCloseButtonLabel()\" priority=\"link\" (onClick)=\"closeDetails()\"></s-button>\n </div>\n </div>\n </s-footer>\n</s-sidebar>\n",
369
- encapsulation: ViewEncapsulation.None,
370
- styles: [".s-exclusion-details-record-details-panel{margin-bottom:10px}.s-exclusion-details-record-details-container{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center}.s-exclusion-details-record-details-recordinfo{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;margin-left:10px;-ms-flex:1;flex:1}.s-exclusion-details-record-details-dateinfo{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;margin-left:10px;-ms-flex-align:end;align-items:flex-end;font-size:12px}.s-exclusion-details-record-details-type{color:#999}.s-exclusion-details-record-icon{font-size:22pt;color:#7e8d95}.s-exclusion-details-record-icon-background{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;padding:16px;background-color:#c1cad1;border-radius:50%;height:60px;width:60px}"]
371
- })
372
- ], ExclusionDetailsComponent);
373
- return ExclusionDetailsComponent;
374
- }());
375
-
376
- var ExclusionDetailsModule = /** @class */ (function () {
377
- function ExclusionDetailsModule() {
378
- }
379
- ExclusionDetailsModule = __decorate([
380
- NgModule({
381
- imports: [
382
- CommonModule,
383
- SidebarModule,
384
- ButtonModule,
385
- PanelModule,
386
- TableModule,
387
- TableModule$1,
388
- LoadingStateModule,
389
- LocaleModule
390
- ],
391
- declarations: [ExclusionDetailsComponent],
392
- exports: [ExclusionDetailsComponent],
393
- entryComponents: [ExclusionDetailsComponent]
394
- })
395
- ], ExclusionDetailsModule);
396
- return ExclusionDetailsModule;
397
- }());
398
-
399
- var FilterService = /** @class */ (function () {
400
- function FilterService(logicalDeleteConfigService, translate) {
401
- this.logicalDeleteConfigService = logicalDeleteConfigService;
402
- this.translate = translate;
403
- this.numberTypes = [FieldType.Integer, FieldType.Double];
404
- }
405
- FilterService.prototype.getEnumQuery = function (name, value, multiple) {
406
- if (multiple === void 0) { multiple = false; }
407
- if (multiple) {
408
- var filter = value.map(function (selected) { return name + " eq '" + selected + "'"; }).join(" or ");
409
- return "(" + filter + ")";
410
- }
411
- return name + " eq '" + value + "'";
412
- };
413
- FilterService.prototype.createFilterString = function (formField, value) {
414
- var name = formField.name, type = formField.type, multiple = formField.multiple;
415
- if (typeof value == "number") {
416
- return name + " eq " + value;
417
- }
418
- switch (type) {
419
- case FieldType.Date:
420
- return name + " eq '" + moment(value).format("YYYY-MM-DD") + "'";
421
- case FieldType.Time:
422
- return name + " eq '" + moment(value).format("HH:mm:ss") + "'";
423
- case FieldType.DateTime:
424
- return name + " eq '" + moment(value).format() + "'";
425
- case FieldType.LocalDateTime:
426
- return name + " eq '" + moment(value).format("YYYY-MM-DD[T]HH:mm:ss.SSS") + "'";
427
- case FieldType.Enum:
428
- return this.getEnumQuery(name, value, multiple);
429
- case FieldType.String:
430
- return "containing(upper(" + name + "), upper('" + value.replace(/'/g, "'") + "'))";
431
- case FieldType.Lookup:
432
- return name + " eq '" + value.id + "'";
433
- default:
434
- return name + " eq '" + value + "'";
435
- }
436
- };
437
- FilterService.prototype.createFilterTokens = function (formField, value) {
438
- var _this = this;
439
- var _a = formField, name = _a.name, type = _a.type, label = _a.label, searchFields = _a.searchFields, options = _a.options;
440
- var labelValue = value;
441
- switch (type) {
442
- case FieldType.Date:
443
- labelValue = moment(value).format("L");
444
- break;
445
- case FieldType.Time:
446
- labelValue = moment(value).format("LTS");
447
- break;
448
- case FieldType.LocalDateTime:
449
- case FieldType.DateTime:
450
- labelValue = moment(value).format("L LTS");
451
- break;
452
- case FieldType.Lookup:
453
- labelValue = searchFields.map(function (field) { return _this.getProp(value, field.name); }).join(" - ");
454
- break;
455
- case FieldType.Enum:
456
- if (Array.isArray(value)) {
457
- labelValue = value.map(function (element) {
458
- return options.filter(function (en) { return en.value === element; })[0].label;
459
- });
460
- }
461
- else {
462
- labelValue = options.filter(function (option) { return option.value === labelValue; })[0].label;
463
- }
464
- break;
465
- case FieldType.Boolean:
466
- labelValue = value
467
- ? this.translate.instant(this.logicalDeleteConfigService.getTranslationPrefix() + ".list_grid_boolean_true")
468
- : this.translate.instant(this.logicalDeleteConfigService.getTranslationPrefix() + ".list_grid_boolean_false");
469
- break;
470
- }
471
- return { id: name, label: label + ": " + labelValue };
472
- };
473
- FilterService.prototype.getSuggestionValue = function (displayFields, ownerEntity, value, separator) {
474
- var _this = this;
475
- return displayFields.map(function (field) { return _this.getProp(value, ownerEntity + "." + field); })
476
- .reduce(function (acc, val) { return "" + acc + separator + val; }) + "";
477
- };
478
- FilterService.prototype.getProp = function (obj, path) {
479
- return path.split(".").reduce(function (result, prop) { return (result[prop] === undefined ? "" : result[prop]); }, obj);
480
- };
481
- FilterService.prototype.getLabelValueRequest = function (contents, displayFields) {
482
- var _this = this;
483
- return contents.map(function (item) { return (__assign(__assign({}, item), { label: displayFields.map(function (field) { return _this.getProp(item, field); }).join(" - ") })); });
484
- };
485
- FilterService.prototype.isValidFilter = function (type, value) {
486
- var isTypeNumber = this.numberTypes.includes(type);
487
- var numberPattern = /^\d+\b$/;
488
- var isNumber = value.match(numberPattern);
489
- return !(isTypeNumber && !isNumber);
490
- };
491
- FilterService.ctorParameters = function () { return [
492
- { type: LogicalDeleteConfigService },
493
- { type: TranslateService }
494
- ]; };
495
- FilterService = __decorate([
496
- Injectable()
497
- ], FilterService);
498
- return FilterService;
499
- }());
500
-
501
- var LogicalDeleteModule = /** @class */ (function () {
502
- function LogicalDeleteModule() {
503
- }
504
- LogicalDeleteModule_1 = LogicalDeleteModule;
505
- LogicalDeleteModule.forRoot = function (config) {
506
- return {
507
- ngModule: LogicalDeleteModule_1,
508
- providers: [
509
- {
510
- provide: ProjectConfigsInjectionToken,
511
- useValue: config
512
- }
513
- ]
514
- };
515
- };
516
- var LogicalDeleteModule_1;
517
- LogicalDeleteModule = LogicalDeleteModule_1 = __decorate([
518
- NgModule({
519
- providers: [LogicalDeleteService, LogicalDeleteConfigService, FilterService]
520
- })
521
- ], LogicalDeleteModule);
522
- return LogicalDeleteModule;
523
- }());
524
-
525
- /**
526
- * Generated bundle index. Do not edit.
527
- */
528
-
529
- export { ExclusionDetailsComponent, ExclusionDetailsModule, LogicalDeleteModule, LogicalDeleteService as ɵa, LogicalDeleteConfigService as ɵb, ProjectConfigsInjectionToken as ɵc, FilterService as ɵe };
530
- //# sourceMappingURL=seniorsistemas-exclusion-process-component.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"seniorsistemas-exclusion-process-component.js","sources":["ng://@seniorsistemas/exclusion-process-component/enums/enum-exclusion-process-status.ts","ng://@seniorsistemas/exclusion-process-component/models/project-config.ts","ng://@seniorsistemas/exclusion-process-component/services/logical-delete-config.service.ts","ng://@seniorsistemas/exclusion-process-component/services/logical-delete.service.ts","ng://@seniorsistemas/exclusion-process-component/exclusion-details/exclusion-details.component.ts","ng://@seniorsistemas/exclusion-process-component/exclusion-details/exclusion-details.module.ts","ng://@seniorsistemas/exclusion-process-component/services/filter.service.ts","ng://@seniorsistemas/exclusion-process-component/logical-delete.module.ts","ng://@seniorsistemas/exclusion-process-component/seniorsistemas-exclusion-process-component.ts"],"sourcesContent":["export enum EnumExclusionProcessStatus {\n PENDING = \"PENDING\",\n PROCESSING = \"PROCESSING\",\n ERROR = \"ERROR\",\n SUCCESS = \"SUCCESS\"\n}\n","import { InjectionToken } from \"@angular/core\";\n\nexport const ProjectConfigsInjectionToken = new InjectionToken<ProjectConfigs>(\"projectConfigs\");\n\nexport interface ProjectConfigs {\n domain: string;\n service: string;\n translationPrefix?: string;\n}\n","import { Inject, Injectable } from \"@angular/core\";\nimport { ProjectConfigs, ProjectConfigsInjectionToken } from \"../models/project-config\";\n\n@Injectable()\nexport class LogicalDeleteConfigService {\n constructor(\n @Inject(ProjectConfigsInjectionToken)\n private readonly projectConfigs: ProjectConfigs) {\n }\n\n public getDomain() {\n return this.projectConfigs.domain;\n }\n\n public getService() {\n return this.projectConfigs.service;\n }\n\n public getTranslationPrefix() {\n if (this.projectConfigs.translationPrefix) {\n return this.projectConfigs.translationPrefix;\n }\n return `${this.projectConfigs.domain}.${this.projectConfigs.service}`;\n }\n}\n","import * as moment from \"moment\";\nimport { HttpClient, HttpParams } from \"@angular/common/http\";\nimport { Injectable } from \"@angular/core\";\nimport { TranslateService } from \"@ngx-translate/core\";\nimport { MessageService } from \"primeng/api\";\nimport { Observable, throwError } from \"rxjs\";\nimport { catchError, map } from \"rxjs/operators\";\nimport { ListResult, ExclusionProcess } from \"../models/index\";\nimport { LogicalDeleteConfigService } from \"./logical-delete-config.service\";\nimport { ListParams } from \"../models/list-params\";\n\n@Injectable()\nexport class LogicalDeleteService {\n private exclusionProcessUrl: string;\n private listExclusionsUrl: string;\n\n constructor(\n private readonly http: HttpClient,\n private readonly messageService: MessageService,\n private readonly translate: TranslateService,\n private readonly projectConfigs: LogicalDeleteConfigService) {\n\n const entityUrl = `${projectConfigs.getDomain()}/${projectConfigs.getService()}`;\n this.exclusionProcessUrl = `${entityUrl}/entities/exclusionProcess`;\n this.listExclusionsUrl = `${entityUrl}/entities/exclusionProcess`;\n this.defaultCatch = this.defaultCatch.bind(this);\n }\n\n public defaultCatch() {\n return catchError<any, any>((err: any) => {\n if (err) {\n let summary = err.status ? String(err.status) : \"Error\";\n let detail = (err.error && err.error.message) || err.statusText || err.message || \"Error\";\n\n if (err.status === 401) {\n const prefix = this.projectConfigs.getTranslationPrefix();\n summary = this.translate.instant(`${prefix}.error_unauthorized_title`);\n detail = this.translate.instant(`${prefix}.error_unauthorized_description`);\n }\n\n this.messageService.add({\n severity: \"error\",\n summary,\n detail\n });\n }\n\n return throwError(err);\n });\n }\n\n public getListQueryParams(listParams: ListParams) {\n const { page = 0, size = 10, sort = [], filterQuery = \"\", displayFields = [] } = listParams;\n\n let params = new HttpParams();\n params = params.append(\"size\", String(size));\n params = params.append(\"offset\", String(page));\n\n if (sort && sort.length) {\n params = params.append(\n \"orderby\",\n sort\n .map(s => {\n if (s.order === -1) {\n return `${s.field} desc`;\n }\n\n return `${s.field} asc`;\n })\n .join(\", \")\n );\n }\n\n if (filterQuery) {\n params = params.append(\"filter\", filterQuery);\n }\n\n if (displayFields && displayFields.length) {\n params = params.append(\"displayfields\", displayFields.join());\n }\n\n return params;\n }\n\n public getProcessDetails(recordId: string): Observable<ExclusionProcess> {\n const filterParams = {\n filter: `recordId eq '${recordId}'`\n };\n\n return this.http.get<ListResult<ExclusionProcess>>(this.exclusionProcessUrl, { params: filterParams })\n .pipe<ListResult<ExclusionProcess>>(this.defaultCatch())\n .pipe(map(value => {\n if (!value.contents?.length) {\n return null;\n }\n return value.contents[0];\n }));\n }\n\n public listExclusions(entityName: string, params: ListParams = {}): Observable<ListResult<ExclusionProcess>> {\n if (params.filterQuery) {\n params.filterQuery += ` and lower(entityName) eq lower('${entityName}')`;\n } else {\n params.filterQuery = `lower(entityName) eq lower('${entityName}')`;\n }\n\n return this.http.get<ListResult<ExclusionProcess>>(this.exclusionProcessUrl, { params: this.getListQueryParams(params) })\n .pipe<ListResult<ExclusionProcess>>(this.defaultCatch())\n .pipe<ListResult<ExclusionProcess>>(map(value => {\n value.contents.forEach(p => {\n if (p.startDate) {\n p.startDate = moment(p.startDate).toDate();\n }\n\n if (p.finishDate) {\n p.finishDate = moment(p.finishDate).toDate();\n }\n });\n return value;\n }));\n }\n}\n","import * as moment from \"moment\";\nimport { Component, Output, ViewEncapsulation, OnInit, OnDestroy } from \"@angular/core\";\nimport { ActivatedRoute, Router } from \"@angular/router\";\nimport { EnumBadgeColors, EnumColumnFieldType, TableColumnLocaleOptions } from \"@seniorsistemas/angular-components\";\nimport { Subject } from \"rxjs\";\nimport { finalize, takeUntil } from \"rxjs/operators\";\nimport { EnumExclusionProcessStatus } from \"../enums/enum-exclusion-process-status\";\nimport { ExclusionDetails } from \"./protocols/exclusion-details\";\nimport { LogicalDeleteService } from \"../services/logical-delete.service\";\nimport { ExclusionProcess } from \"../models/index\";\nimport { TranslateService } from \"@ngx-translate/core\";\nimport { LogicalDeleteConfigService } from \"../services/logical-delete-config.service\";\nimport { ShowDetailsInformation } from \"./protocols\";\n\n@Component({\n selector: \"s-exclusion-details\",\n templateUrl: \"./exclusion-details.component.html\",\n styleUrls: [\"./exclusion-details.component.scss\"],\n encapsulation: ViewEncapsulation.None\n})\nexport class ExclusionDetailsComponent implements OnInit, OnDestroy {\n public locale!: TableColumnLocaleOptions;\n\n @Output()\n get isVisible(): boolean {\n return this._isVisible;\n }\n\n @Output()\n get isLoading(): boolean {\n return this._isLoading;\n }\n\n @Output()\n get processSummaryData(): ExclusionDetails[] {\n return this._processSummaryData;\n }\n\n @Output()\n get processSummaryColumns(): any[] {\n return this._processSummaryColumns;\n }\n\n @Output()\n public processDetails: ExclusionProcess;\n\n @Output()\n public entityDescription: string;\n\n private _entityName = \"\";\n private _isVisible = false;\n private _isLoading = false;\n private _processSummaryData: ExclusionDetails[] = [];\n private _processSummaryColumns: any[] = [];\n private readonly ngUnsubscribe = new Subject();\n\n constructor(\n private readonly router: Router,\n private readonly route: ActivatedRoute,\n private readonly translate: TranslateService,\n private readonly logicalDeleteService: LogicalDeleteService,\n private readonly projectConfigs: LogicalDeleteConfigService\n ) {\n }\n\n ngOnInit(): void {\n this.route.data\n .pipe(takeUntil(this.ngUnsubscribe))\n .subscribe((data: { [configs: string]: any, localeConfig: TableColumnLocaleOptions }) => {\n this.locale = data.localeConfig;\n });\n this._processSummaryColumns = this.getSummaryColumns();\n }\n\n public ngOnDestroy() {\n this.ngUnsubscribe.next();\n this.ngUnsubscribe.complete();\n }\n\n public showDetails(details: ShowDetailsInformation) {\n this.processDetails = null;\n this._entityName = details.entityName;\n this._isVisible = true;\n this.entityDescription = details.entityDescription;\n\n this.loadProcessDetails(details.recordId);\n }\n\n public closeDetails() {\n this._isVisible = false;\n }\n\n public openExclusions() {\n this.closeDetails();\n this.router.navigate(\n [\"exclusions-list\", this._entityName],\n {\n queryParams: {\n entityDescription: this.entityDescription\n }\n }\n );\n }\n\n public getRecordDescription() {\n if (!this.processDetails?.description) {\n return \"\";\n }\n\n return this.processDetails.description;\n }\n\n public getInicialDate() {\n if (!this.processDetails?.startDate) {\n return \"\";\n }\n\n return moment(this.processDetails.startDate).format(\"DD/MM/YYYY HH:mm\");\n }\n\n public getFinishDate() {\n if (!this.processDetails?.finishDate) {\n return \"\";\n }\n\n return moment(this.processDetails.finishDate).format(\"DD/MM/YYYY HH:mm\");\n }\n\n public isFinished() {\n return !!this.processDetails?.finishDate;\n }\n\n public getShowExclusionsButtonLabel() {\n return this.translate.instant(`${this.projectConfigs.getTranslationPrefix()}.logical_delete_show_deletions`);\n }\n\n public getCloseButtonLabel() {\n return this.translate.instant(`${this.projectConfigs.getTranslationPrefix()}.logical_delete_close`);\n }\n\n public getSummaryLabel() {\n return this.translate.instant(`${this.projectConfigs.getTranslationPrefix()}.logical_delete_summary`);\n }\n\n public getStartDateLabel() {\n return this.translate.instant(`${this.projectConfigs.getTranslationPrefix()}.logical_delete_start`);\n }\n\n public getFinishDateLabel() {\n return this.translate.instant(`${this.projectConfigs.getTranslationPrefix()}.logical_delete_finish`);\n }\n\n public getSidebarTitle() {\n return this.translate.instant(`${this.projectConfigs.getTranslationPrefix()}.logical_delete_details_title`);\n }\n\n private getSummaryColumns() {\n return [\n {\n field: \"description\",\n attributes: [\"description\"],\n header: this.translate.instant(`${this.projectConfigs.getTranslationPrefix()}.logical_delete_description`),\n type: EnumColumnFieldType.STRING,\n style: {\n width: \"300px\"\n }\n },\n {\n field: \"status\",\n attributes: [\"status\"],\n header: this.translate.instant(`${this.projectConfigs.getTranslationPrefix()}.logical_delete_status`),\n type: EnumColumnFieldType.ENUM,\n enumPrefix: `${this.projectConfigs.getTranslationPrefix()}.logical_delete_enum_exclusion_process_status_`,\n style: {\n width: \"100px\"\n },\n tooltip: this.getColumnStatusTooltip,\n badgeConfigs: [\n {\n enumValue: EnumExclusionProcessStatus.ERROR,\n color: EnumBadgeColors.RED\n },\n {\n enumValue: EnumExclusionProcessStatus.PENDING,\n color: EnumBadgeColors.YELLOW\n },\n {\n enumValue: EnumExclusionProcessStatus.PROCESSING,\n color: EnumBadgeColors.BLUE\n },\n {\n enumValue: EnumExclusionProcessStatus.SUCCESS,\n color: EnumBadgeColors.GREEN\n }\n ]\n }\n ];\n }\n\n private getColumnStatusTooltip(rowValue: ExclusionDetails) {\n if (rowValue.errorMessage) {\n return rowValue.errorMessage;\n }\n\n return null;\n }\n\n private loadProcessDetails(recordId: string) {\n this._isLoading = true;\n\n this.logicalDeleteService.getProcessDetails(recordId)\n .pipe(takeUntil(this.ngUnsubscribe))\n .pipe(finalize(() => this._isLoading = false))\n .subscribe((process: ExclusionProcess) => {\n this.processDetails = process;\n this.loadProcessSummary(process);\n });\n }\n\n private loadProcessSummary(process: ExclusionProcess) {\n const stepLogs: ExclusionDetails[] = [];\n\n process.groups.forEach(group => {\n const steps = group.steps.map(step => ({\n description: step.description,\n status: step.status,\n errorMessage: step.errorMessage\n } as ExclusionDetails));\n\n stepLogs.push(...steps);\n });\n\n this._processSummaryData = stepLogs;\n }\n}\n","import { CommonModule } from \"@angular/common\";\nimport { NgModule } from \"@angular/core\";\nimport { PanelModule } from \"primeng/panel\";\nimport { TableModule as PrimeTableModule } from \"primeng/table\";\nimport { ButtonModule, LoadingStateModule, TableModule, SidebarModule, LocaleModule } from \"@seniorsistemas/angular-components\";\nimport { ExclusionDetailsComponent } from \"./exclusion-details.component\";\n\n@NgModule({\n imports: [\n CommonModule,\n SidebarModule,\n ButtonModule,\n PanelModule,\n PrimeTableModule,\n TableModule,\n LoadingStateModule,\n LocaleModule\n ],\n declarations: [ExclusionDetailsComponent],\n exports: [ExclusionDetailsComponent],\n entryComponents: [ExclusionDetailsComponent]\n})\nexport class ExclusionDetailsModule {}\n","import * as moment from \"moment\";\nimport { Injectable } from \"@angular/core\";\nimport { FieldType, FormField, Option } from \"@seniorsistemas/angular-components\";\nimport { TranslateService } from \"@ngx-translate/core\";\nimport { LogicalDeleteConfigService } from \"./logical-delete-config.service\";\n\n@Injectable()\nexport class FilterService {\n private readonly numberTypes = [FieldType.Integer, FieldType.Double];\n\n constructor(\n private readonly logicalDeleteConfigService: LogicalDeleteConfigService,\n private readonly translate: TranslateService\n ) {}\n\n getEnumQuery(name: string, value: any, multiple: boolean = false) {\n if (multiple) {\n const filter = value.map((selected: any) => `${name} eq '${selected}'`).join(\" or \");\n return `(${filter})`;\n }\n return `${name} eq '${value}'`;\n }\n\n createFilterString(formField: FormField, value: any) {\n const { name, type, multiple } = formField;\n if (typeof value == \"number\") {\n return `${name} eq ${value}`;\n }\n\n switch (type) {\n case FieldType.Date:\n return `${name} eq '${moment(value).format(\"YYYY-MM-DD\")}'`;\n case FieldType.Time:\n return `${name} eq '${moment(value).format(\"HH:mm:ss\")}'`;\n case FieldType.DateTime:\n return `${name} eq '${moment(value).format()}'`;\n case FieldType.LocalDateTime:\n return `${name} eq '${moment(value).format(\"YYYY-MM-DD[T]HH:mm:ss.SSS\")}'`;\n case FieldType.Enum:\n return this.getEnumQuery(name, value, multiple);\n case FieldType.String:\n return `containing(upper(${name}), upper('${value.replace(/'/g, \"'\")}'))`;\n case FieldType.Lookup:\n return `${name} eq '${value.id}'`;\n default:\n return `${name} eq '${value}'`;\n }\n }\n\n createFilterTokens(formField: FormField, value: any) {\n const { name, type, label, searchFields, options } = formField as any;\n let labelValue = value;\n\n switch (type) {\n case FieldType.Date:\n labelValue = moment(value).format(\"L\");\n break;\n case FieldType.Time:\n labelValue = moment(value).format(\"LTS\");\n break;\n case FieldType.LocalDateTime:\n case FieldType.DateTime:\n labelValue = moment(value).format(\"L LTS\");\n break;\n case FieldType.Lookup:\n labelValue = searchFields.map((field: FormField) => this.getProp(value, field.name)).join(\" - \");\n break;\n case FieldType.Enum:\n if (Array.isArray(value)) {\n labelValue = value.map((element: string) => {\n return options.filter((en: any) => en.value === element)[0].label;\n });\n } else {\n labelValue = options.filter((option: Option) => option.value === labelValue)[0].label;\n }\n break;\n case FieldType.Boolean:\n labelValue = value\n ? this.translate.instant(`${this.logicalDeleteConfigService.getTranslationPrefix()}.list_grid_boolean_true`)\n : this.translate.instant(`${this.logicalDeleteConfigService.getTranslationPrefix()}.list_grid_boolean_false`);\n break;\n }\n\n return { id: name, label: `${label}: ${labelValue}` };\n }\n\n getSuggestionValue(displayFields: string[], ownerEntity: string, value: any, separator: string) {\n return displayFields.map(field => this.getProp(value, `${ownerEntity}.${field}`))\n .reduce((acc: any, val: any) => `${acc}${separator}${val}`) + \"\";\n }\n\n getProp(obj: any, path: any) {\n return path.split(\".\").reduce((result: any, prop: any) => (result[prop] === undefined ? \"\" : result[prop]), obj);\n }\n\n getLabelValueRequest(contents: any[], displayFields: any[]) {\n return contents.map((item: any) => ({\n ...item,\n label: displayFields.map(field => this.getProp(item, field)).join(\" - \")\n }));\n }\n\n isValidFilter(type: FieldType, value: any) {\n const isTypeNumber = this.numberTypes.includes(type);\n const numberPattern = /^\\d+\\b$/;\n const isNumber = value.match(numberPattern);\n return !(isTypeNumber && !isNumber);\n }\n}\n","import { ModuleWithProviders, NgModule } from \"@angular/core\";\nimport { ProjectConfigs, ProjectConfigsInjectionToken } from \"./models/project-config\";\nimport { FilterService } from \"./services/filter.service\";\nimport { LogicalDeleteConfigService } from \"./services/logical-delete-config.service\";\nimport { LogicalDeleteService } from \"./services/logical-delete.service\";\n\n@NgModule({\n providers: [LogicalDeleteService, LogicalDeleteConfigService, FilterService]\n})\nexport class LogicalDeleteModule {\n static forRoot(config: ProjectConfigs): ModuleWithProviders<LogicalDeleteModule> {\n return {\n ngModule: LogicalDeleteModule,\n providers: [\n {\n provide: ProjectConfigsInjectionToken,\n useValue: config\n }\n ]\n };\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n\nexport {ProjectConfigs as ɵd,ProjectConfigsInjectionToken as ɵc} from './models/project-config';\nexport {FilterService as ɵe} from './services/filter.service';\nexport {LogicalDeleteConfigService as ɵb} from './services/logical-delete-config.service';\nexport {LogicalDeleteService as ɵa} from './services/logical-delete.service';"],"names":["PrimeTableModule","TableModule"],"mappings":";;;;;;;;;;;;;;AAAA,IAAY,0BAKX;AALD,WAAY,0BAA0B;IAClC,iDAAmB,CAAA;IACnB,uDAAyB,CAAA;IACzB,6CAAe,CAAA;IACf,iDAAmB,CAAA;AACvB,CAAC,EALW,0BAA0B,KAA1B,0BAA0B;;ICEzB,4BAA4B,GAAG,IAAI,cAAc,CAAiB,gBAAgB;;;ICG3F,oCAEqB,cAA8B;QAA9B,mBAAc,GAAd,cAAc,CAAgB;KAClD;IAEM,8CAAS,GAAhB;QACI,OAAO,IAAI,CAAC,cAAc,CAAC,MAAM,CAAC;KACrC;IAEM,+CAAU,GAAjB;QACI,OAAO,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC;KACtC;IAEM,yDAAoB,GAA3B;QACI,IAAI,IAAI,CAAC,cAAc,CAAC,iBAAiB,EAAE;YACvC,OAAO,IAAI,CAAC,cAAc,CAAC,iBAAiB,CAAC;SAChD;QACD,OAAU,IAAI,CAAC,cAAc,CAAC,MAAM,SAAI,IAAI,CAAC,cAAc,CAAC,OAAS,CAAC;KACzE;;gDAjBI,MAAM,SAAC,4BAA4B;;IAF/B,0BAA0B;QADtC,UAAU,EAAE;QAGJ,WAAA,MAAM,CAAC,4BAA4B,CAAC,CAAA;OAFhC,0BAA0B,CAoBtC;IAAD,iCAAC;CApBD;;;ICYI,8BACqB,IAAgB,EAChB,cAA8B,EAC9B,SAA2B,EAC3B,cAA0C;QAH1C,SAAI,GAAJ,IAAI,CAAY;QAChB,mBAAc,GAAd,cAAc,CAAgB;QAC9B,cAAS,GAAT,SAAS,CAAkB;QAC3B,mBAAc,G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,EAAE,CAAC,oBAAoB,EAAE,0BAA0B,EAAE,aAAa,CAAC;SAC/E,CAAC;OACW,mBAAmB,CAY/B;IAAD,0BAAC;CAZD;;ACTA;;;;;;"}
@@ -1,5 +0,0 @@
1
- import { ModuleWithProviders } from "@angular/core";
2
- import { ProjectConfigs } from "./models/project-config";
3
- export declare class LogicalDeleteModule {
4
- static forRoot(config: ProjectConfigs): ModuleWithProviders<LogicalDeleteModule>;
5
- }
@@ -1,8 +0,0 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- export * from './public-api';
5
- export { ProjectConfigs as ɵd, ProjectConfigsInjectionToken as ɵc } from './models/project-config';
6
- export { FilterService as ɵe } from './services/filter.service';
7
- export { LogicalDeleteConfigService as ɵb } from './services/logical-delete-config.service';
8
- export { LogicalDeleteService as ɵa } from './services/logical-delete.service';