@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.
- package/.editorconfig +19 -0
- package/.gitlab-ci.yml +74 -0
- package/.prettierrc +8 -0
- package/.senior-ci-extensions.sh +21 -0
- package/.vscode/settings.json +6 -0
- package/CHANGELOG.md +22 -0
- package/README.md +16 -0
- package/angular.json +144 -0
- package/archive.tar.gz +0 -0
- package/e2e/app.e2e-spec.ts +14 -0
- package/e2e/app.po.ts +11 -0
- package/e2e/tsconfig.e2e.json +14 -0
- package/karma.conf.js +53 -0
- package/lib/.browserslistrc +5 -0
- package/lib/package.json +19 -0
- package/{enums/enum-exclusion-process-status.d.ts → lib/src/enums/enum-exclusion-process-status.ts} +1 -1
- package/lib/src/exclusion-details/exclusion-details.component.html +84 -0
- package/lib/src/exclusion-details/exclusion-details.component.scss +47 -0
- package/lib/src/exclusion-details/exclusion-details.component.spec.ts +171 -0
- package/lib/src/exclusion-details/exclusion-details.component.ts +235 -0
- package/lib/src/exclusion-details/exclusion-details.module.ts +23 -0
- package/{exclusion-details/protocols/exclusion-details.d.ts → lib/src/exclusion-details/protocols/exclusion-details.ts} +1 -0
- package/{exclusion-details/protocols/show-details-information.d.ts → lib/src/exclusion-details/protocols/show-details-information.ts} +1 -1
- package/lib/src/exclusions-list/exclusions-list.component.html +157 -0
- package/lib/src/exclusions-list/exclusions-list.component.spec.ts +526 -0
- package/lib/src/exclusions-list/exclusions-list.component.ts +335 -0
- package/lib/src/exclusions-list/exclusions-list.module.ts +52 -0
- package/lib/src/exclusions-list/exclusions-list.routing.ts +89 -0
- package/lib/src/exclusions-list/index.ts +2 -0
- package/lib/src/logical-delete.module.ts +22 -0
- package/{models/exclusion-process-step-group.d.ts → lib/src/models/exclusion-process-step-group.ts} +1 -0
- package/{models/exclusion-process-step.d.ts → lib/src/models/exclusion-process-step.ts} +1 -0
- package/{models/exclusion-process.d.ts → lib/src/models/exclusion-process.ts} +1 -0
- package/{models/list-params.d.ts → lib/src/models/list-params.ts} +1 -0
- package/{models/project-config.d.ts → lib/src/models/project-config.ts} +3 -1
- package/lib/src/services/filter.service.spec.ts +290 -0
- package/lib/src/services/filter.service.ts +109 -0
- package/lib/src/services/index.ts +1 -0
- package/lib/src/services/logical-delete-config.service.spec.ts +59 -0
- package/lib/src/services/logical-delete-config.service.ts +25 -0
- package/lib/src/services/logical-delete.service.spec.ts +322 -0
- package/lib/src/services/logical-delete.service.ts +122 -0
- package/lib/test.ts +14 -0
- package/lib/tsconfig.lib.json +19 -0
- package/lib/tsconfig.lib.prod.json +6 -0
- package/lib/tsconfig.spec.json +12 -0
- package/lib/tslint.json +19 -0
- package/package.json +59 -18
- package/protractor.conf.js +28 -0
- package/senior-ci/.devcontainer/Dockerfile +27 -0
- package/senior-ci/.devcontainer/devcontainer.json +71 -0
- package/senior-ci/.editorconfig +14 -0
- package/senior-ci/.gitattributes +5 -0
- package/senior-ci/.gitlab-ci.yml +53 -0
- package/senior-ci/.pylintrc +562 -0
- package/senior-ci/.vscode/launch.json +102 -0
- package/senior-ci/CHANGELOG.md +1564 -0
- package/senior-ci/CONTRIBUTING.md +31 -0
- package/senior-ci/README.md +26 -0
- package/senior-ci/ci/ci.sh +74 -0
- package/senior-ci/ci/sonar_scanner.py +48 -0
- package/senior-ci/common/__init__.py +250 -0
- package/senior-ci/common/default-files/pom.xml +10 -0
- package/senior-ci/common/docker-helpers.sh +57 -0
- package/senior-ci/common/extensions.py +88 -0
- package/senior-ci/common/flutter-helpers.sh +3 -0
- package/senior-ci/common/getopt_helper.py +168 -0
- package/senior-ci/common/graphql_client.py +40 -0
- package/senior-ci/common/helm_helpers.py +40 -0
- package/senior-ci/common/notification-helpers.sh +15 -0
- package/senior-ci/common/npm-helper.sh +4 -0
- package/senior-ci/common/parallel-helper.sh +8 -0
- package/senior-ci/common/release-helpers.sh +196 -0
- package/senior-ci/common/s3cache-helpers.sh +47 -0
- package/senior-ci/common/senior-ci-extensions-helpers.sh +15 -0
- package/senior-ci/common/sonar_helper.py +203 -0
- package/senior-ci/common/validations/buildable_project.py +61 -0
- package/senior-ci/common/validations/check_deprecated_primitives.py +49 -0
- package/senior-ci/common/validations/check_project_path.py +40 -0
- package/senior-ci/common/validations/check_sonar_config_files.py +41 -0
- package/senior-ci/common/validations/check_tags.py +41 -0
- package/senior-ci/common/validations/validate_changelog.py +151 -0
- package/senior-ci/common/validations/validate_issues.py +320 -0
- package/senior-ci/docker/build.sh +18 -0
- package/senior-ci/docker/config-host.sh +29 -0
- package/senior-ci/docker/deploy-service.sh +79 -0
- package/senior-ci/docker/push.sh +22 -0
- package/senior-ci/frontend/npm/bibliotecas/ci.sh +149 -0
- package/senior-ci/frontend/npm/ci.sh +370 -0
- package/senior-ci/frontend/npm/release-translations.sh +164 -0
- package/senior-ci/helm/deploy.py +56 -0
- package/senior-ci/helm/publish.py +41 -0
- package/senior-ci/hook/release_notification.sh +88 -0
- package/senior-ci/hook/text_notification.sh +10 -0
- package/senior-ci/java/bibliotecas/ci.sh +215 -0
- package/senior-ci/java/sdl/ci.sh +372 -0
- package/senior-ci/java/sdl/scripts/hotfix.sh +78 -0
- package/senior-ci/mobile/flutter/apps/__main__.py +5 -0
- package/senior-ci/mobile/flutter/apps/ci.py +193 -0
- package/senior-ci/mobile/flutter/libs/__main__.py +5 -0
- package/senior-ci/mobile/flutter/libs/ci.py +178 -0
- package/senior-ci/mobile/flutter/scripts/release.sh +54 -0
- package/senior-ci/release-candidate/backend/get_version.sh +64 -0
- package/senior-ci/release-candidate/close_branch.sh +113 -0
- package/senior-ci/release-candidate/common/create_hotfix.sh +28 -0
- package/senior-ci/release-candidate/common/create_release.sh +30 -0
- package/senior-ci/release-candidate/create_branch.sh +64 -0
- package/senior-ci/release-candidate/frontend/get_version.sh +43 -0
- package/senior-ci/requirements-dev.txt +5 -0
- package/senior-ci/requirements.txt +5 -0
- package/senior-ci/scripts/apply_yamls.py +229 -0
- package/senior-ci/scripts/create_sre_issue/__main__.py +7 -0
- package/senior-ci/scripts/create_sre_issue/create_sre_issue.py +267 -0
- package/senior-ci/scripts/create_sre_issue/helpers.py +166 -0
- package/senior-ci/scripts/create_sre_issue/jira_manager.py +37 -0
- package/senior-ci/scripts/validate_changelog.sh +3 -0
- package/senior-ci/sonar-project.properties +1 -0
- package/server.js +5 -0
- package/sonar-project.properties +10 -0
- package/src/app/app.component.html +43 -0
- package/src/app/app.component.scss +36 -0
- package/src/app/app.component.ts +56 -0
- package/src/app/app.module.ts +64 -0
- package/src/app/shared/shared.module.ts +28 -0
- package/src/environments/environment.default.ts +3 -0
- package/src/environments/environment.prod.ts +6 -0
- package/src/environments/environment.ts +7 -0
- package/src/favicon.ico +0 -0
- package/src/index.html +17 -0
- package/src/locale/en-US.json +3 -0
- package/src/locale/es-ES.json +3 -0
- package/src/locale/pt-BR.json +3 -0
- package/src/main.ts +13 -0
- package/src/polyfills.ts +58 -0
- package/src/styles.scss +11 -0
- package/src/tsconfig.app.json +21 -0
- package/src/typings.d.ts +15 -0
- package/tsconfig.json +39 -0
- package/tslint.json +80 -0
- package/bundles/seniorsistemas-exclusion-process-component.umd.js +0 -747
- package/bundles/seniorsistemas-exclusion-process-component.umd.js.map +0 -1
- package/bundles/seniorsistemas-exclusion-process-component.umd.min.js +0 -16
- package/bundles/seniorsistemas-exclusion-process-component.umd.min.js.map +0 -1
- package/esm2015/enums/enum-exclusion-process-status.js +0 -8
- package/esm2015/exclusion-details/exclusion-details.component.js +0 -216
- package/esm2015/exclusion-details/exclusion-details.module.js +0 -28
- package/esm2015/exclusion-details/index.js +0 -3
- package/esm2015/exclusion-details/protocols/exclusion-details.js +0 -1
- package/esm2015/exclusion-details/protocols/index.js +0 -2
- package/esm2015/exclusion-details/protocols/show-details-information.js +0 -3
- package/esm2015/logical-delete.module.js +0 -27
- package/esm2015/models/exclusion-process-step-group.js +0 -1
- package/esm2015/models/exclusion-process-step.js +0 -1
- package/esm2015/models/exclusion-process.js +0 -1
- package/esm2015/models/index.js +0 -1
- package/esm2015/models/list-params.js +0 -1
- package/esm2015/models/list-result.js +0 -1
- package/esm2015/models/project-config.js +0 -3
- package/esm2015/public-api.js +0 -3
- package/esm2015/seniorsistemas-exclusion-process-component.js +0 -9
- package/esm2015/services/filter.service.js +0 -104
- package/esm2015/services/logical-delete-config.service.js +0 -29
- package/esm2015/services/logical-delete.service.js +0 -109
- package/esm5/enums/enum-exclusion-process-status.js +0 -8
- package/esm5/exclusion-details/exclusion-details.component.js +0 -235
- package/esm5/exclusion-details/exclusion-details.module.js +0 -31
- package/esm5/exclusion-details/index.js +0 -3
- package/esm5/exclusion-details/protocols/exclusion-details.js +0 -1
- package/esm5/exclusion-details/protocols/index.js +0 -2
- package/esm5/exclusion-details/protocols/show-details-information.js +0 -7
- package/esm5/logical-delete.module.js +0 -31
- package/esm5/models/exclusion-process-step-group.js +0 -1
- package/esm5/models/exclusion-process-step.js +0 -1
- package/esm5/models/exclusion-process.js +0 -1
- package/esm5/models/index.js +0 -1
- package/esm5/models/list-params.js +0 -1
- package/esm5/models/list-result.js +0 -1
- package/esm5/models/project-config.js +0 -3
- package/esm5/public-api.js +0 -3
- package/esm5/seniorsistemas-exclusion-process-component.js +0 -9
- package/esm5/services/filter.service.js +0 -109
- package/esm5/services/logical-delete-config.service.js +0 -30
- package/esm5/services/logical-delete.service.js +0 -112
- package/exclusion-details/exclusion-details.component.d.ts +0 -49
- package/exclusion-details/exclusion-details.module.d.ts +0 -2
- package/fesm2015/seniorsistemas-exclusion-process-component.js +0 -495
- package/fesm2015/seniorsistemas-exclusion-process-component.js.map +0 -1
- package/fesm5/seniorsistemas-exclusion-process-component.js +0 -530
- package/fesm5/seniorsistemas-exclusion-process-component.js.map +0 -1
- package/logical-delete.module.d.ts +0 -5
- package/seniorsistemas-exclusion-process-component.d.ts +0 -8
- package/seniorsistemas-exclusion-process-component.metadata.json +0 -1
- package/services/filter.service.d.ts +0 -19
- package/services/logical-delete-config.service.d.ts +0 -8
- package/services/logical-delete.service.d.ts +0 -20
- /package/{exclusion-details/index.d.ts → lib/src/exclusion-details/index.ts} +0 -0
- /package/{exclusion-details/protocols/index.d.ts → lib/src/exclusion-details/protocols/index.ts} +0 -0
- /package/{models/index.d.ts → lib/src/models/index.ts} +0 -0
- /package/{models/list-result.d.ts → lib/src/models/list-result.ts} +0 -0
- /package/{public-api.d.ts → lib/src/public-api.ts} +0 -0
|
@@ -1,495 +0,0 @@
|
|
|
1
|
-
import { __decorate, __param } 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
|
-
const ProjectConfigsInjectionToken = new InjectionToken("projectConfigs");
|
|
24
|
-
|
|
25
|
-
let LogicalDeleteConfigService = class LogicalDeleteConfigService {
|
|
26
|
-
constructor(projectConfigs) {
|
|
27
|
-
this.projectConfigs = projectConfigs;
|
|
28
|
-
}
|
|
29
|
-
getDomain() {
|
|
30
|
-
return this.projectConfigs.domain;
|
|
31
|
-
}
|
|
32
|
-
getService() {
|
|
33
|
-
return this.projectConfigs.service;
|
|
34
|
-
}
|
|
35
|
-
getTranslationPrefix() {
|
|
36
|
-
if (this.projectConfigs.translationPrefix) {
|
|
37
|
-
return this.projectConfigs.translationPrefix;
|
|
38
|
-
}
|
|
39
|
-
return `${this.projectConfigs.domain}.${this.projectConfigs.service}`;
|
|
40
|
-
}
|
|
41
|
-
};
|
|
42
|
-
LogicalDeleteConfigService.ctorParameters = () => [
|
|
43
|
-
{ type: undefined, decorators: [{ type: Inject, args: [ProjectConfigsInjectionToken,] }] }
|
|
44
|
-
];
|
|
45
|
-
LogicalDeleteConfigService = __decorate([
|
|
46
|
-
Injectable(),
|
|
47
|
-
__param(0, Inject(ProjectConfigsInjectionToken))
|
|
48
|
-
], LogicalDeleteConfigService);
|
|
49
|
-
|
|
50
|
-
let LogicalDeleteService = class LogicalDeleteService {
|
|
51
|
-
constructor(http, messageService, translate, projectConfigs) {
|
|
52
|
-
this.http = http;
|
|
53
|
-
this.messageService = messageService;
|
|
54
|
-
this.translate = translate;
|
|
55
|
-
this.projectConfigs = projectConfigs;
|
|
56
|
-
const entityUrl = `${projectConfigs.getDomain()}/${projectConfigs.getService()}`;
|
|
57
|
-
this.exclusionProcessUrl = `${entityUrl}/entities/exclusionProcess`;
|
|
58
|
-
this.listExclusionsUrl = `${entityUrl}/entities/exclusionProcess`;
|
|
59
|
-
this.defaultCatch = this.defaultCatch.bind(this);
|
|
60
|
-
}
|
|
61
|
-
defaultCatch() {
|
|
62
|
-
return catchError((err) => {
|
|
63
|
-
if (err) {
|
|
64
|
-
let summary = err.status ? String(err.status) : "Error";
|
|
65
|
-
let detail = (err.error && err.error.message) || err.statusText || err.message || "Error";
|
|
66
|
-
if (err.status === 401) {
|
|
67
|
-
const prefix = this.projectConfigs.getTranslationPrefix();
|
|
68
|
-
summary = this.translate.instant(`${prefix}.error_unauthorized_title`);
|
|
69
|
-
detail = this.translate.instant(`${prefix}.error_unauthorized_description`);
|
|
70
|
-
}
|
|
71
|
-
this.messageService.add({
|
|
72
|
-
severity: "error",
|
|
73
|
-
summary,
|
|
74
|
-
detail
|
|
75
|
-
});
|
|
76
|
-
}
|
|
77
|
-
return throwError(err);
|
|
78
|
-
});
|
|
79
|
-
}
|
|
80
|
-
getListQueryParams(listParams) {
|
|
81
|
-
const { page = 0, size = 10, sort = [], filterQuery = "", displayFields = [] } = listParams;
|
|
82
|
-
let params = new HttpParams();
|
|
83
|
-
params = params.append("size", String(size));
|
|
84
|
-
params = params.append("offset", String(page));
|
|
85
|
-
if (sort && sort.length) {
|
|
86
|
-
params = params.append("orderby", sort
|
|
87
|
-
.map(s => {
|
|
88
|
-
if (s.order === -1) {
|
|
89
|
-
return `${s.field} desc`;
|
|
90
|
-
}
|
|
91
|
-
return `${s.field} asc`;
|
|
92
|
-
})
|
|
93
|
-
.join(", "));
|
|
94
|
-
}
|
|
95
|
-
if (filterQuery) {
|
|
96
|
-
params = params.append("filter", filterQuery);
|
|
97
|
-
}
|
|
98
|
-
if (displayFields && displayFields.length) {
|
|
99
|
-
params = params.append("displayfields", displayFields.join());
|
|
100
|
-
}
|
|
101
|
-
return params;
|
|
102
|
-
}
|
|
103
|
-
getProcessDetails(recordId) {
|
|
104
|
-
const filterParams = {
|
|
105
|
-
filter: `recordId eq '${recordId}'`
|
|
106
|
-
};
|
|
107
|
-
return this.http.get(this.exclusionProcessUrl, { params: filterParams })
|
|
108
|
-
.pipe(this.defaultCatch())
|
|
109
|
-
.pipe(map(value => {
|
|
110
|
-
var _a;
|
|
111
|
-
if (!((_a = value.contents) === null || _a === void 0 ? void 0 : _a.length)) {
|
|
112
|
-
return null;
|
|
113
|
-
}
|
|
114
|
-
return value.contents[0];
|
|
115
|
-
}));
|
|
116
|
-
}
|
|
117
|
-
listExclusions(entityName, params = {}) {
|
|
118
|
-
if (params.filterQuery) {
|
|
119
|
-
params.filterQuery += ` and lower(entityName) eq lower('${entityName}')`;
|
|
120
|
-
}
|
|
121
|
-
else {
|
|
122
|
-
params.filterQuery = `lower(entityName) eq lower('${entityName}')`;
|
|
123
|
-
}
|
|
124
|
-
return this.http.get(this.exclusionProcessUrl, { params: this.getListQueryParams(params) })
|
|
125
|
-
.pipe(this.defaultCatch())
|
|
126
|
-
.pipe(map(value => {
|
|
127
|
-
value.contents.forEach(p => {
|
|
128
|
-
if (p.startDate) {
|
|
129
|
-
p.startDate = moment(p.startDate).toDate();
|
|
130
|
-
}
|
|
131
|
-
if (p.finishDate) {
|
|
132
|
-
p.finishDate = moment(p.finishDate).toDate();
|
|
133
|
-
}
|
|
134
|
-
});
|
|
135
|
-
return value;
|
|
136
|
-
}));
|
|
137
|
-
}
|
|
138
|
-
};
|
|
139
|
-
LogicalDeleteService.ctorParameters = () => [
|
|
140
|
-
{ type: HttpClient },
|
|
141
|
-
{ type: MessageService },
|
|
142
|
-
{ type: TranslateService },
|
|
143
|
-
{ type: LogicalDeleteConfigService }
|
|
144
|
-
];
|
|
145
|
-
LogicalDeleteService = __decorate([
|
|
146
|
-
Injectable()
|
|
147
|
-
], LogicalDeleteService);
|
|
148
|
-
|
|
149
|
-
let ExclusionDetailsComponent = class ExclusionDetailsComponent {
|
|
150
|
-
constructor(router, route, translate, logicalDeleteService, projectConfigs) {
|
|
151
|
-
this.router = router;
|
|
152
|
-
this.route = route;
|
|
153
|
-
this.translate = translate;
|
|
154
|
-
this.logicalDeleteService = logicalDeleteService;
|
|
155
|
-
this.projectConfigs = projectConfigs;
|
|
156
|
-
this._entityName = "";
|
|
157
|
-
this._isVisible = false;
|
|
158
|
-
this._isLoading = false;
|
|
159
|
-
this._processSummaryData = [];
|
|
160
|
-
this._processSummaryColumns = [];
|
|
161
|
-
this.ngUnsubscribe = new Subject();
|
|
162
|
-
}
|
|
163
|
-
get isVisible() {
|
|
164
|
-
return this._isVisible;
|
|
165
|
-
}
|
|
166
|
-
get isLoading() {
|
|
167
|
-
return this._isLoading;
|
|
168
|
-
}
|
|
169
|
-
get processSummaryData() {
|
|
170
|
-
return this._processSummaryData;
|
|
171
|
-
}
|
|
172
|
-
get processSummaryColumns() {
|
|
173
|
-
return this._processSummaryColumns;
|
|
174
|
-
}
|
|
175
|
-
ngOnInit() {
|
|
176
|
-
this.route.data
|
|
177
|
-
.pipe(takeUntil(this.ngUnsubscribe))
|
|
178
|
-
.subscribe((data) => {
|
|
179
|
-
this.locale = data.localeConfig;
|
|
180
|
-
});
|
|
181
|
-
this._processSummaryColumns = this.getSummaryColumns();
|
|
182
|
-
}
|
|
183
|
-
ngOnDestroy() {
|
|
184
|
-
this.ngUnsubscribe.next();
|
|
185
|
-
this.ngUnsubscribe.complete();
|
|
186
|
-
}
|
|
187
|
-
showDetails(details) {
|
|
188
|
-
this.processDetails = null;
|
|
189
|
-
this._entityName = details.entityName;
|
|
190
|
-
this._isVisible = true;
|
|
191
|
-
this.entityDescription = details.entityDescription;
|
|
192
|
-
this.loadProcessDetails(details.recordId);
|
|
193
|
-
}
|
|
194
|
-
closeDetails() {
|
|
195
|
-
this._isVisible = false;
|
|
196
|
-
}
|
|
197
|
-
openExclusions() {
|
|
198
|
-
this.closeDetails();
|
|
199
|
-
this.router.navigate(["exclusions-list", this._entityName], {
|
|
200
|
-
queryParams: {
|
|
201
|
-
entityDescription: this.entityDescription
|
|
202
|
-
}
|
|
203
|
-
});
|
|
204
|
-
}
|
|
205
|
-
getRecordDescription() {
|
|
206
|
-
var _a;
|
|
207
|
-
if (!((_a = this.processDetails) === null || _a === void 0 ? void 0 : _a.description)) {
|
|
208
|
-
return "";
|
|
209
|
-
}
|
|
210
|
-
return this.processDetails.description;
|
|
211
|
-
}
|
|
212
|
-
getInicialDate() {
|
|
213
|
-
var _a;
|
|
214
|
-
if (!((_a = this.processDetails) === null || _a === void 0 ? void 0 : _a.startDate)) {
|
|
215
|
-
return "";
|
|
216
|
-
}
|
|
217
|
-
return moment(this.processDetails.startDate).format("DD/MM/YYYY HH:mm");
|
|
218
|
-
}
|
|
219
|
-
getFinishDate() {
|
|
220
|
-
var _a;
|
|
221
|
-
if (!((_a = this.processDetails) === null || _a === void 0 ? void 0 : _a.finishDate)) {
|
|
222
|
-
return "";
|
|
223
|
-
}
|
|
224
|
-
return moment(this.processDetails.finishDate).format("DD/MM/YYYY HH:mm");
|
|
225
|
-
}
|
|
226
|
-
isFinished() {
|
|
227
|
-
var _a;
|
|
228
|
-
return !!((_a = this.processDetails) === null || _a === void 0 ? void 0 : _a.finishDate);
|
|
229
|
-
}
|
|
230
|
-
getShowExclusionsButtonLabel() {
|
|
231
|
-
return this.translate.instant(`${this.projectConfigs.getTranslationPrefix()}.logical_delete_show_deletions`);
|
|
232
|
-
}
|
|
233
|
-
getCloseButtonLabel() {
|
|
234
|
-
return this.translate.instant(`${this.projectConfigs.getTranslationPrefix()}.logical_delete_close`);
|
|
235
|
-
}
|
|
236
|
-
getSummaryLabel() {
|
|
237
|
-
return this.translate.instant(`${this.projectConfigs.getTranslationPrefix()}.logical_delete_summary`);
|
|
238
|
-
}
|
|
239
|
-
getStartDateLabel() {
|
|
240
|
-
return this.translate.instant(`${this.projectConfigs.getTranslationPrefix()}.logical_delete_start`);
|
|
241
|
-
}
|
|
242
|
-
getFinishDateLabel() {
|
|
243
|
-
return this.translate.instant(`${this.projectConfigs.getTranslationPrefix()}.logical_delete_finish`);
|
|
244
|
-
}
|
|
245
|
-
getSidebarTitle() {
|
|
246
|
-
return this.translate.instant(`${this.projectConfigs.getTranslationPrefix()}.logical_delete_details_title`);
|
|
247
|
-
}
|
|
248
|
-
getSummaryColumns() {
|
|
249
|
-
return [
|
|
250
|
-
{
|
|
251
|
-
field: "description",
|
|
252
|
-
attributes: ["description"],
|
|
253
|
-
header: this.translate.instant(`${this.projectConfigs.getTranslationPrefix()}.logical_delete_description`),
|
|
254
|
-
type: EnumColumnFieldType.STRING,
|
|
255
|
-
style: {
|
|
256
|
-
width: "300px"
|
|
257
|
-
}
|
|
258
|
-
},
|
|
259
|
-
{
|
|
260
|
-
field: "status",
|
|
261
|
-
attributes: ["status"],
|
|
262
|
-
header: this.translate.instant(`${this.projectConfigs.getTranslationPrefix()}.logical_delete_status`),
|
|
263
|
-
type: EnumColumnFieldType.ENUM,
|
|
264
|
-
enumPrefix: `${this.projectConfigs.getTranslationPrefix()}.logical_delete_enum_exclusion_process_status_`,
|
|
265
|
-
style: {
|
|
266
|
-
width: "100px"
|
|
267
|
-
},
|
|
268
|
-
tooltip: this.getColumnStatusTooltip,
|
|
269
|
-
badgeConfigs: [
|
|
270
|
-
{
|
|
271
|
-
enumValue: EnumExclusionProcessStatus.ERROR,
|
|
272
|
-
color: EnumBadgeColors.RED
|
|
273
|
-
},
|
|
274
|
-
{
|
|
275
|
-
enumValue: EnumExclusionProcessStatus.PENDING,
|
|
276
|
-
color: EnumBadgeColors.YELLOW
|
|
277
|
-
},
|
|
278
|
-
{
|
|
279
|
-
enumValue: EnumExclusionProcessStatus.PROCESSING,
|
|
280
|
-
color: EnumBadgeColors.BLUE
|
|
281
|
-
},
|
|
282
|
-
{
|
|
283
|
-
enumValue: EnumExclusionProcessStatus.SUCCESS,
|
|
284
|
-
color: EnumBadgeColors.GREEN
|
|
285
|
-
}
|
|
286
|
-
]
|
|
287
|
-
}
|
|
288
|
-
];
|
|
289
|
-
}
|
|
290
|
-
getColumnStatusTooltip(rowValue) {
|
|
291
|
-
if (rowValue.errorMessage) {
|
|
292
|
-
return rowValue.errorMessage;
|
|
293
|
-
}
|
|
294
|
-
return null;
|
|
295
|
-
}
|
|
296
|
-
loadProcessDetails(recordId) {
|
|
297
|
-
this._isLoading = true;
|
|
298
|
-
this.logicalDeleteService.getProcessDetails(recordId)
|
|
299
|
-
.pipe(takeUntil(this.ngUnsubscribe))
|
|
300
|
-
.pipe(finalize(() => this._isLoading = false))
|
|
301
|
-
.subscribe((process) => {
|
|
302
|
-
this.processDetails = process;
|
|
303
|
-
this.loadProcessSummary(process);
|
|
304
|
-
});
|
|
305
|
-
}
|
|
306
|
-
loadProcessSummary(process) {
|
|
307
|
-
const stepLogs = [];
|
|
308
|
-
process.groups.forEach(group => {
|
|
309
|
-
const steps = group.steps.map(step => ({
|
|
310
|
-
description: step.description,
|
|
311
|
-
status: step.status,
|
|
312
|
-
errorMessage: step.errorMessage
|
|
313
|
-
}));
|
|
314
|
-
stepLogs.push(...steps);
|
|
315
|
-
});
|
|
316
|
-
this._processSummaryData = stepLogs;
|
|
317
|
-
}
|
|
318
|
-
};
|
|
319
|
-
ExclusionDetailsComponent.ctorParameters = () => [
|
|
320
|
-
{ type: Router },
|
|
321
|
-
{ type: ActivatedRoute },
|
|
322
|
-
{ type: TranslateService },
|
|
323
|
-
{ type: LogicalDeleteService },
|
|
324
|
-
{ type: LogicalDeleteConfigService }
|
|
325
|
-
];
|
|
326
|
-
__decorate([
|
|
327
|
-
Output()
|
|
328
|
-
], ExclusionDetailsComponent.prototype, "isVisible", null);
|
|
329
|
-
__decorate([
|
|
330
|
-
Output()
|
|
331
|
-
], ExclusionDetailsComponent.prototype, "isLoading", null);
|
|
332
|
-
__decorate([
|
|
333
|
-
Output()
|
|
334
|
-
], ExclusionDetailsComponent.prototype, "processSummaryData", null);
|
|
335
|
-
__decorate([
|
|
336
|
-
Output()
|
|
337
|
-
], ExclusionDetailsComponent.prototype, "processSummaryColumns", null);
|
|
338
|
-
__decorate([
|
|
339
|
-
Output()
|
|
340
|
-
], ExclusionDetailsComponent.prototype, "processDetails", void 0);
|
|
341
|
-
__decorate([
|
|
342
|
-
Output()
|
|
343
|
-
], ExclusionDetailsComponent.prototype, "entityDescription", void 0);
|
|
344
|
-
ExclusionDetailsComponent = __decorate([
|
|
345
|
-
Component({
|
|
346
|
-
selector: "s-exclusion-details",
|
|
347
|
-
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",
|
|
348
|
-
encapsulation: ViewEncapsulation.None,
|
|
349
|
-
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}"]
|
|
350
|
-
})
|
|
351
|
-
], ExclusionDetailsComponent);
|
|
352
|
-
|
|
353
|
-
let ExclusionDetailsModule = class ExclusionDetailsModule {
|
|
354
|
-
};
|
|
355
|
-
ExclusionDetailsModule = __decorate([
|
|
356
|
-
NgModule({
|
|
357
|
-
imports: [
|
|
358
|
-
CommonModule,
|
|
359
|
-
SidebarModule,
|
|
360
|
-
ButtonModule,
|
|
361
|
-
PanelModule,
|
|
362
|
-
TableModule,
|
|
363
|
-
TableModule$1,
|
|
364
|
-
LoadingStateModule,
|
|
365
|
-
LocaleModule
|
|
366
|
-
],
|
|
367
|
-
declarations: [ExclusionDetailsComponent],
|
|
368
|
-
exports: [ExclusionDetailsComponent],
|
|
369
|
-
entryComponents: [ExclusionDetailsComponent]
|
|
370
|
-
})
|
|
371
|
-
], ExclusionDetailsModule);
|
|
372
|
-
|
|
373
|
-
let FilterService = class FilterService {
|
|
374
|
-
constructor(logicalDeleteConfigService, translate) {
|
|
375
|
-
this.logicalDeleteConfigService = logicalDeleteConfigService;
|
|
376
|
-
this.translate = translate;
|
|
377
|
-
this.numberTypes = [FieldType.Integer, FieldType.Double];
|
|
378
|
-
}
|
|
379
|
-
getEnumQuery(name, value, multiple = false) {
|
|
380
|
-
if (multiple) {
|
|
381
|
-
const filter = value.map((selected) => `${name} eq '${selected}'`).join(" or ");
|
|
382
|
-
return `(${filter})`;
|
|
383
|
-
}
|
|
384
|
-
return `${name} eq '${value}'`;
|
|
385
|
-
}
|
|
386
|
-
createFilterString(formField, value) {
|
|
387
|
-
const { name, type, multiple } = formField;
|
|
388
|
-
if (typeof value == "number") {
|
|
389
|
-
return `${name} eq ${value}`;
|
|
390
|
-
}
|
|
391
|
-
switch (type) {
|
|
392
|
-
case FieldType.Date:
|
|
393
|
-
return `${name} eq '${moment(value).format("YYYY-MM-DD")}'`;
|
|
394
|
-
case FieldType.Time:
|
|
395
|
-
return `${name} eq '${moment(value).format("HH:mm:ss")}'`;
|
|
396
|
-
case FieldType.DateTime:
|
|
397
|
-
return `${name} eq '${moment(value).format()}'`;
|
|
398
|
-
case FieldType.LocalDateTime:
|
|
399
|
-
return `${name} eq '${moment(value).format("YYYY-MM-DD[T]HH:mm:ss.SSS")}'`;
|
|
400
|
-
case FieldType.Enum:
|
|
401
|
-
return this.getEnumQuery(name, value, multiple);
|
|
402
|
-
case FieldType.String:
|
|
403
|
-
return `containing(upper(${name}), upper('${value.replace(/'/g, "'")}'))`;
|
|
404
|
-
case FieldType.Lookup:
|
|
405
|
-
return `${name} eq '${value.id}'`;
|
|
406
|
-
default:
|
|
407
|
-
return `${name} eq '${value}'`;
|
|
408
|
-
}
|
|
409
|
-
}
|
|
410
|
-
createFilterTokens(formField, value) {
|
|
411
|
-
const { name, type, label, searchFields, options } = formField;
|
|
412
|
-
let labelValue = value;
|
|
413
|
-
switch (type) {
|
|
414
|
-
case FieldType.Date:
|
|
415
|
-
labelValue = moment(value).format("L");
|
|
416
|
-
break;
|
|
417
|
-
case FieldType.Time:
|
|
418
|
-
labelValue = moment(value).format("LTS");
|
|
419
|
-
break;
|
|
420
|
-
case FieldType.LocalDateTime:
|
|
421
|
-
case FieldType.DateTime:
|
|
422
|
-
labelValue = moment(value).format("L LTS");
|
|
423
|
-
break;
|
|
424
|
-
case FieldType.Lookup:
|
|
425
|
-
labelValue = searchFields.map((field) => this.getProp(value, field.name)).join(" - ");
|
|
426
|
-
break;
|
|
427
|
-
case FieldType.Enum:
|
|
428
|
-
if (Array.isArray(value)) {
|
|
429
|
-
labelValue = value.map((element) => {
|
|
430
|
-
return options.filter((en) => en.value === element)[0].label;
|
|
431
|
-
});
|
|
432
|
-
}
|
|
433
|
-
else {
|
|
434
|
-
labelValue = options.filter((option) => option.value === labelValue)[0].label;
|
|
435
|
-
}
|
|
436
|
-
break;
|
|
437
|
-
case FieldType.Boolean:
|
|
438
|
-
labelValue = value
|
|
439
|
-
? this.translate.instant(`${this.logicalDeleteConfigService.getTranslationPrefix()}.list_grid_boolean_true`)
|
|
440
|
-
: this.translate.instant(`${this.logicalDeleteConfigService.getTranslationPrefix()}.list_grid_boolean_false`);
|
|
441
|
-
break;
|
|
442
|
-
}
|
|
443
|
-
return { id: name, label: `${label}: ${labelValue}` };
|
|
444
|
-
}
|
|
445
|
-
getSuggestionValue(displayFields, ownerEntity, value, separator) {
|
|
446
|
-
return displayFields.map(field => this.getProp(value, `${ownerEntity}.${field}`))
|
|
447
|
-
.reduce((acc, val) => `${acc}${separator}${val}`) + "";
|
|
448
|
-
}
|
|
449
|
-
getProp(obj, path) {
|
|
450
|
-
return path.split(".").reduce((result, prop) => (result[prop] === undefined ? "" : result[prop]), obj);
|
|
451
|
-
}
|
|
452
|
-
getLabelValueRequest(contents, displayFields) {
|
|
453
|
-
return contents.map((item) => (Object.assign(Object.assign({}, item), { label: displayFields.map(field => this.getProp(item, field)).join(" - ") })));
|
|
454
|
-
}
|
|
455
|
-
isValidFilter(type, value) {
|
|
456
|
-
const isTypeNumber = this.numberTypes.includes(type);
|
|
457
|
-
const numberPattern = /^\d+\b$/;
|
|
458
|
-
const isNumber = value.match(numberPattern);
|
|
459
|
-
return !(isTypeNumber && !isNumber);
|
|
460
|
-
}
|
|
461
|
-
};
|
|
462
|
-
FilterService.ctorParameters = () => [
|
|
463
|
-
{ type: LogicalDeleteConfigService },
|
|
464
|
-
{ type: TranslateService }
|
|
465
|
-
];
|
|
466
|
-
FilterService = __decorate([
|
|
467
|
-
Injectable()
|
|
468
|
-
], FilterService);
|
|
469
|
-
|
|
470
|
-
var LogicalDeleteModule_1;
|
|
471
|
-
let LogicalDeleteModule = LogicalDeleteModule_1 = class LogicalDeleteModule {
|
|
472
|
-
static forRoot(config) {
|
|
473
|
-
return {
|
|
474
|
-
ngModule: LogicalDeleteModule_1,
|
|
475
|
-
providers: [
|
|
476
|
-
{
|
|
477
|
-
provide: ProjectConfigsInjectionToken,
|
|
478
|
-
useValue: config
|
|
479
|
-
}
|
|
480
|
-
]
|
|
481
|
-
};
|
|
482
|
-
}
|
|
483
|
-
};
|
|
484
|
-
LogicalDeleteModule = LogicalDeleteModule_1 = __decorate([
|
|
485
|
-
NgModule({
|
|
486
|
-
providers: [LogicalDeleteService, LogicalDeleteConfigService, FilterService]
|
|
487
|
-
})
|
|
488
|
-
], LogicalDeleteModule);
|
|
489
|
-
|
|
490
|
-
/**
|
|
491
|
-
* Generated bundle index. Do not edit.
|
|
492
|
-
*/
|
|
493
|
-
|
|
494
|
-
export { ExclusionDetailsComponent, ExclusionDetailsModule, LogicalDeleteModule, LogicalDeleteService as ɵa, LogicalDeleteConfigService as ɵb, ProjectConfigsInjectionToken as ɵc, FilterService as ɵe };
|
|
495
|
-
//# 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,i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