@seniorsistemas/exclusion-process-component 0.3.0 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/seniorsistemas-exclusion-process-component.umd.js +70 -36
- package/bundles/seniorsistemas-exclusion-process-component.umd.js.map +1 -1
- package/bundles/seniorsistemas-exclusion-process-component.umd.min.js +2 -2
- package/bundles/seniorsistemas-exclusion-process-component.umd.min.js.map +1 -1
- package/esm2015/exclusion-details/exclusion-details.component.js +68 -15
- package/esm2015/exclusions-list/exclusions-list.component.js +2 -2
- package/esm2015/exclusions-list/exclusions-list.routing.js +3 -24
- package/esm5/exclusion-details/exclusion-details.component.js +69 -15
- package/esm5/exclusions-list/exclusions-list.component.js +2 -2
- package/esm5/exclusions-list/exclusions-list.routing.js +3 -25
- package/exclusion-details/exclusion-details.component.d.ts +9 -1
- package/exclusions-list/exclusions-list.routing.d.ts +0 -8
- package/fesm2015/seniorsistemas-exclusion-process-component.js +71 -36
- package/fesm2015/seniorsistemas-exclusion-process-component.js.map +1 -1
- package/fesm5/seniorsistemas-exclusion-process-component.js +72 -37
- package/fesm5/seniorsistemas-exclusion-process-component.js.map +1 -1
- package/package.json +7 -7
- package/seniorsistemas-exclusion-process-component.metadata.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __decorate, __param, __assign, __spread } from 'tslib';
|
|
2
2
|
import { CommonModule } from '@angular/common';
|
|
3
|
-
import { InjectionToken, Inject, Injectable, Output, Component, ViewEncapsulation, NgModule, ChangeDetectorRef, ViewChild } from '@angular/core';
|
|
3
|
+
import { InjectionToken, Inject, Injectable, EventEmitter, Output, Component, ViewEncapsulation, NgModule, ChangeDetectorRef, ViewChild } from '@angular/core';
|
|
4
4
|
import { PanelModule } from 'primeng/panel';
|
|
5
5
|
import { TableModule } from 'primeng/table';
|
|
6
6
|
import { EnumBadgeColors, EnumColumnFieldType, SidebarModule, ButtonModule, TableModule as TableModule$1, LoadingStateModule, LocaleModule, EmptyStateModule, FieldType, FormField, LocaleService, ControlErrorsModule, InfoSignModule, DynamicFormModule, TokenListModule } from '@seniorsistemas/angular-components';
|
|
@@ -197,12 +197,14 @@ var ExclusionDetailsComponent = /** @class */ (function () {
|
|
|
197
197
|
this.logicalDeleteService = logicalDeleteService;
|
|
198
198
|
this.projectConfigs = projectConfigs;
|
|
199
199
|
this.expandedRows = {};
|
|
200
|
+
this.onProcessFinishedSuccessfully = new EventEmitter();
|
|
200
201
|
this._isVisible = false;
|
|
201
202
|
this._isLoading = false;
|
|
202
203
|
this._processGroupData = [];
|
|
203
204
|
this._processGroupColumns = [];
|
|
204
205
|
this._processStepColumns = [];
|
|
205
206
|
this.ngUnsubscribe = new Subject();
|
|
207
|
+
this.subscriptionLoadProcess = null;
|
|
206
208
|
}
|
|
207
209
|
Object.defineProperty(ExclusionDetailsComponent.prototype, "isVisible", {
|
|
208
210
|
get: function () {
|
|
@@ -260,7 +262,7 @@ var ExclusionDetailsComponent = /** @class */ (function () {
|
|
|
260
262
|
this._processGroupData = [];
|
|
261
263
|
this.processDetails = null;
|
|
262
264
|
this.entityDescription = details.entityDescription;
|
|
263
|
-
this.loadProcessDetails(details);
|
|
265
|
+
this.loadProcessDetails(details, true);
|
|
264
266
|
this.connectWebSocket();
|
|
265
267
|
};
|
|
266
268
|
ExclusionDetailsComponent.prototype.onVisibilityChanged = function (event) {
|
|
@@ -303,6 +305,9 @@ var ExclusionDetailsComponent = /** @class */ (function () {
|
|
|
303
305
|
ExclusionDetailsComponent.prototype.getCloseButtonLabel = function () {
|
|
304
306
|
return this.translate.instant(this.projectConfigs.getTranslationPrefix() + ".logical_delete_close");
|
|
305
307
|
};
|
|
308
|
+
ExclusionDetailsComponent.prototype.getUpdateButtonLabel = function () {
|
|
309
|
+
return this.translate.instant(this.projectConfigs.getTranslationPrefix() + ".logical_delete_update");
|
|
310
|
+
};
|
|
306
311
|
ExclusionDetailsComponent.prototype.getSummaryLabel = function () {
|
|
307
312
|
return this.translate.instant(this.projectConfigs.getTranslationPrefix() + ".logical_delete_summary");
|
|
308
313
|
};
|
|
@@ -377,13 +382,32 @@ var ExclusionDetailsComponent = /** @class */ (function () {
|
|
|
377
382
|
}
|
|
378
383
|
return null;
|
|
379
384
|
};
|
|
380
|
-
ExclusionDetailsComponent.prototype.
|
|
385
|
+
ExclusionDetailsComponent.prototype.updateDetails = function () {
|
|
386
|
+
if (!this._exclusionDetails) {
|
|
387
|
+
return;
|
|
388
|
+
}
|
|
389
|
+
this.loadProcessDetails(this._exclusionDetails);
|
|
390
|
+
};
|
|
391
|
+
ExclusionDetailsComponent.prototype.abortRunningLoadProcessCall = function () {
|
|
392
|
+
if (this.subscriptionLoadProcess) {
|
|
393
|
+
if (this.subscriptionLoadProcess.closed) {
|
|
394
|
+
this.subscriptionLoadProcess = null;
|
|
395
|
+
}
|
|
396
|
+
else {
|
|
397
|
+
this.subscriptionLoadProcess.unsubscribe();
|
|
398
|
+
this.subscriptionLoadProcess = null;
|
|
399
|
+
}
|
|
400
|
+
}
|
|
401
|
+
};
|
|
402
|
+
ExclusionDetailsComponent.prototype.loadProcessDetails = function (details, firstLoad) {
|
|
381
403
|
var _this = this;
|
|
404
|
+
if (firstLoad === void 0) { firstLoad = false; }
|
|
382
405
|
this._isLoading = true;
|
|
406
|
+
this.abortRunningLoadProcessCall();
|
|
383
407
|
var processObservable = details.processId
|
|
384
408
|
? this.logicalDeleteService.getProcessDetails(details.processId)
|
|
385
409
|
: this.logicalDeleteService.getLatestProcessDetails(details.recordId);
|
|
386
|
-
processObservable
|
|
410
|
+
this.subscriptionLoadProcess = processObservable
|
|
387
411
|
.pipe(takeUntil(this.ngUnsubscribe))
|
|
388
412
|
.pipe(finalize(function () { return _this._isLoading = false; }))
|
|
389
413
|
.subscribe(function (process) {
|
|
@@ -399,24 +423,50 @@ var ExclusionDetailsComponent = /** @class */ (function () {
|
|
|
399
423
|
.forEach(function (p) {
|
|
400
424
|
_this.expandedRows[p.id] = true;
|
|
401
425
|
});
|
|
426
|
+
if (_this.isProcessFinished()) {
|
|
427
|
+
_this.disconnectWebSocket();
|
|
428
|
+
}
|
|
429
|
+
if (!firstLoad) {
|
|
430
|
+
_this.checkIfProcessWasSuccessuful();
|
|
431
|
+
}
|
|
402
432
|
});
|
|
403
433
|
};
|
|
404
|
-
ExclusionDetailsComponent.prototype.
|
|
405
|
-
if (
|
|
434
|
+
ExclusionDetailsComponent.prototype.isProcessFinished = function () {
|
|
435
|
+
if (!this._processGroupData.length) {
|
|
436
|
+
return false;
|
|
437
|
+
}
|
|
438
|
+
return this._processGroupData
|
|
439
|
+
.every(function (p) { return p.status === EnumExclusionProcessStatus.ERROR || p.status === EnumExclusionProcessStatus.SUCCESS; });
|
|
440
|
+
};
|
|
441
|
+
ExclusionDetailsComponent.prototype.checkIfProcessWasSuccessuful = function () {
|
|
442
|
+
var isProcessSuccessful = this._processGroupData
|
|
443
|
+
.every(function (p) { return p.status === EnumExclusionProcessStatus.SUCCESS; });
|
|
444
|
+
if (isProcessSuccessful) {
|
|
445
|
+
this.notifyProcessFinishedSuccessfully();
|
|
446
|
+
}
|
|
447
|
+
};
|
|
448
|
+
ExclusionDetailsComponent.prototype.notifyProcessFinishedSuccessfully = function () {
|
|
449
|
+
this.onProcessFinishedSuccessfully.emit(this.processDetails);
|
|
450
|
+
};
|
|
451
|
+
ExclusionDetailsComponent.prototype.sortByDate = function (firstDate, secondDate) {
|
|
452
|
+
if (!firstDate || !secondDate) {
|
|
453
|
+
return 1;
|
|
454
|
+
}
|
|
455
|
+
if (firstDate.getTime() > secondDate.getTime()) {
|
|
406
456
|
return 1;
|
|
407
457
|
}
|
|
408
|
-
if (
|
|
458
|
+
if (firstDate.getTime() < secondDate.getTime()) {
|
|
409
459
|
return -1;
|
|
410
460
|
}
|
|
411
461
|
return 0;
|
|
412
462
|
};
|
|
413
463
|
ExclusionDetailsComponent.prototype.sortGroupsByStartDate = function (groups) {
|
|
414
464
|
var _this = this;
|
|
415
|
-
return groups.sort(function (a, b) { return _this.sortByDate(a.startDate, b.
|
|
465
|
+
return groups.sort(function (a, b) { return _this.sortByDate(a.startDate, b.startDate); });
|
|
416
466
|
};
|
|
417
467
|
ExclusionDetailsComponent.prototype.sortStepsByStartDate = function (steps) {
|
|
418
468
|
var _this = this;
|
|
419
|
-
return steps.sort(function (a, b) { return _this.sortByDate(a.startDate, b.
|
|
469
|
+
return steps.sort(function (a, b) { return _this.sortByDate(a.startDate, b.startDate); });
|
|
420
470
|
};
|
|
421
471
|
ExclusionDetailsComponent.prototype.disconnectWebSocket = function () {
|
|
422
472
|
if (this._exclusionProcessStatusChangedSubscribe) {
|
|
@@ -439,6 +489,9 @@ var ExclusionDetailsComponent = /** @class */ (function () {
|
|
|
439
489
|
.pipe(takeUntil(this.ngUnsubscribe))
|
|
440
490
|
.subscribe(function () {
|
|
441
491
|
_this.startListeningWebhookEvents();
|
|
492
|
+
if (_this.processDetails && !_this.isProcessFinished()) {
|
|
493
|
+
_this.loadProcessDetails(_this._exclusionDetails);
|
|
494
|
+
}
|
|
442
495
|
});
|
|
443
496
|
};
|
|
444
497
|
ExclusionDetailsComponent.prototype.startListeningWebhookEvents = function () {
|
|
@@ -446,9 +499,7 @@ var ExclusionDetailsComponent = /** @class */ (function () {
|
|
|
446
499
|
this._websocketService
|
|
447
500
|
.onError()
|
|
448
501
|
.pipe(takeUntil(this.ngUnsubscribe))
|
|
449
|
-
.subscribe(function (data) {
|
|
450
|
-
console.error('onError', data);
|
|
451
|
-
});
|
|
502
|
+
.subscribe(function (data) { return console.error('onWSError', data); });
|
|
452
503
|
this._exclusionProcessStatusChangedSubscribe = this._websocketService
|
|
453
504
|
.onEvent({
|
|
454
505
|
domain: this.projectConfigs.getDomain(),
|
|
@@ -497,12 +548,15 @@ var ExclusionDetailsComponent = /** @class */ (function () {
|
|
|
497
548
|
__decorate([
|
|
498
549
|
Output()
|
|
499
550
|
], ExclusionDetailsComponent.prototype, "expandedRows", void 0);
|
|
551
|
+
__decorate([
|
|
552
|
+
Output()
|
|
553
|
+
], ExclusionDetailsComponent.prototype, "onProcessFinishedSuccessfully", void 0);
|
|
500
554
|
ExclusionDetailsComponent = __decorate([
|
|
501
555
|
Component({
|
|
502
556
|
selector: "s-exclusion-details",
|
|
503
|
-
template: "<s-sidebar [visible]=\"isVisible\" (visibleChange)=\"onVisibilityChanged($event)\" [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 <em class=\"far fa-file-alt s-exclusion-details-record-icon\"></em>\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\n <s-empty-state\n *ngIf=\"processGroupData && !processGroupData.length\"\n [title]=\"getEmptyStateTitle()\"\n [description]=\"getEmptyStateDescription()\">\n [showPrimaryAction]=\"false\"\n </s-empty-state>\n\n <p-table\n [value]=\"processGroupData\"\n [columns]=\"processGroupColumns\"\n dataKey=\"id\"\n [lazy]=\"false\"\n [scrollable]=\"false\"\n [paginator]=\"false\"\n *ngIf=\"processGroupData && processGroupData.length\"\n [expandedRowKeys]=\"expandedRows\">\n\n <ng-template pTemplate=\"header\" let-columns>\n <tr>\n <th id=\"expend-column\" style=\"width: 40px;\"></th>\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\" let-expanded=\"expanded\">\n <tr sNavigation [sRowToggler]=\"rowData\">\n <td style=\"width: 40px;\" tabindex=\"0\">\n <em class=\"fa fa-{{ expanded ? 'minus' : 'plus' }}\"></em>\n </td>\n <s-table-columns\n [columns]=\"columns\"\n [rowValue]=\"rowData\"\n [locale]=\"locale\">\n </s-table-columns>\n </tr>\n </ng-template>\n\n <ng-template pTemplate=\"rowexpansion\" let-rowData let-columns=\"columns\">\n <tr class=\"sds-expanded-row\">\n <td [attr.colspan]=\"columns.length + 1\">\n <p-table \n [value]=\"rowData.steps\"\n [columns]=\"processStepColumns\"\n dataKey=\"id\"\n [paginator]=\"false\"\n [responsive]=\"true\"\n [scrollable]=\"false\"\n [lazy]=\"false\">\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 </td>\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]=\"getCloseButtonLabel()\" priority=\"link\" (onClick)=\"closeDetails()\"></s-button>\n </div>\n </div>\n </s-footer>\n</s-sidebar>\n",
|
|
557
|
+
template: "<s-sidebar [visible]=\"isVisible\" (visibleChange)=\"onVisibilityChanged($event)\" [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 <em class=\"far fa-file-alt s-exclusion-details-record-icon\"></em>\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\n <s-empty-state\n *ngIf=\"processGroupData && !processGroupData.length\"\n [title]=\"getEmptyStateTitle()\"\n [description]=\"getEmptyStateDescription()\">\n [showPrimaryAction]=\"false\"\n </s-empty-state>\n\n <p-table\n [value]=\"processGroupData\"\n [columns]=\"processGroupColumns\"\n dataKey=\"id\"\n [lazy]=\"false\"\n [scrollable]=\"false\"\n [paginator]=\"false\"\n *ngIf=\"processGroupData && processGroupData.length\"\n [expandedRowKeys]=\"expandedRows\">\n\n <ng-template pTemplate=\"header\" let-columns>\n <tr>\n <th id=\"expend-column\" style=\"width: 40px;\"></th>\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\" let-expanded=\"expanded\">\n <tr sNavigation [sRowToggler]=\"rowData\">\n <td style=\"width: 40px;\" tabindex=\"0\">\n <em class=\"fa fa-{{ expanded ? 'minus' : 'plus' }}\"></em>\n </td>\n <s-table-columns\n [columns]=\"columns\"\n [rowValue]=\"rowData\"\n [locale]=\"locale\">\n </s-table-columns>\n </tr>\n </ng-template>\n\n <ng-template pTemplate=\"rowexpansion\" let-rowData let-columns=\"columns\">\n <tr class=\"sds-expanded-row\">\n <td [attr.colspan]=\"columns.length + 1\">\n <p-table \n [value]=\"rowData.steps\"\n [columns]=\"processStepColumns\"\n dataKey=\"id\"\n [paginator]=\"false\"\n [responsive]=\"true\"\n [scrollable]=\"false\"\n [lazy]=\"false\">\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 </td>\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-12 s-exclusion-details-footer\">\n <s-button [label]=\"getUpdateButtonLabel()\" priority=\"link\" (onClick)=\"updateDetails()\"></s-button>\n <s-button [label]=\"getCloseButtonLabel()\" priority=\"link\" (onClick)=\"closeDetails()\"></s-button>\n </div>\n </div>\n </s-footer>\n</s-sidebar>\n",
|
|
504
558
|
encapsulation: ViewEncapsulation.None,
|
|
505
|
-
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}"]
|
|
559
|
+
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}.s-exclusion-details-footer{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:justify;justify-content:space-between}"]
|
|
506
560
|
})
|
|
507
561
|
], ExclusionDetailsComponent);
|
|
508
562
|
return ExclusionDetailsComponent;
|
|
@@ -674,7 +728,7 @@ var ExclusionsListComponent = /** @class */ (function () {
|
|
|
674
728
|
.subscribe(function (queryParams) {
|
|
675
729
|
_this.entityName = queryParams.entityName;
|
|
676
730
|
_this.entityDescription = queryParams.entityDescription;
|
|
677
|
-
_this.processId = queryParams.processId;
|
|
731
|
+
_this.processId = queryParams.processId || queryParams.pid;
|
|
678
732
|
});
|
|
679
733
|
};
|
|
680
734
|
ExclusionsListComponent.prototype.ngAfterViewInit = function () {
|
|
@@ -1012,23 +1066,6 @@ var ExclusionsListFeatureRoutingGuard = /** @class */ (function () {
|
|
|
1012
1066
|
], ExclusionsListFeatureRoutingGuard);
|
|
1013
1067
|
return ExclusionsListFeatureRoutingGuard;
|
|
1014
1068
|
}());
|
|
1015
|
-
var ExclusionsListFeatureRoutingListTitleResolver = /** @class */ (function () {
|
|
1016
|
-
function ExclusionsListFeatureRoutingListTitleResolver(translate, projectConfigs) {
|
|
1017
|
-
this.translate = translate;
|
|
1018
|
-
this.projectConfigs = projectConfigs;
|
|
1019
|
-
}
|
|
1020
|
-
ExclusionsListFeatureRoutingListTitleResolver.prototype.resolve = function () {
|
|
1021
|
-
return this.translate.get(this.projectConfigs.getTranslationPrefix() + ".logical_delete_list_title");
|
|
1022
|
-
};
|
|
1023
|
-
ExclusionsListFeatureRoutingListTitleResolver.ctorParameters = function () { return [
|
|
1024
|
-
{ type: TranslateService },
|
|
1025
|
-
{ type: LogicalDeleteConfigService }
|
|
1026
|
-
]; };
|
|
1027
|
-
ExclusionsListFeatureRoutingListTitleResolver = __decorate([
|
|
1028
|
-
Injectable()
|
|
1029
|
-
], ExclusionsListFeatureRoutingListTitleResolver);
|
|
1030
|
-
return ExclusionsListFeatureRoutingListTitleResolver;
|
|
1031
|
-
}());
|
|
1032
1069
|
var ExclusionsListFeatureRoutingPermissionResolver = /** @class */ (function () {
|
|
1033
1070
|
function ExclusionsListFeatureRoutingPermissionResolver(permissionsService) {
|
|
1034
1071
|
this.permissionsService = permissionsService;
|
|
@@ -1078,8 +1115,7 @@ var routes = [
|
|
|
1078
1115
|
],
|
|
1079
1116
|
resolve: {
|
|
1080
1117
|
allPermissions: ExclusionsListFeatureRoutingPermissionResolver,
|
|
1081
|
-
localeConfig: ExclusionsListFeatureRoutingLocaleResolver
|
|
1082
|
-
routeTitle: ExclusionsListFeatureRoutingListTitleResolver
|
|
1118
|
+
localeConfig: ExclusionsListFeatureRoutingLocaleResolver
|
|
1083
1119
|
},
|
|
1084
1120
|
children: [
|
|
1085
1121
|
{
|
|
@@ -1103,8 +1139,7 @@ var ExclusionsListFeatureRouting = /** @class */ (function () {
|
|
|
1103
1139
|
providers: [
|
|
1104
1140
|
ExclusionsListFeatureRoutingGuard,
|
|
1105
1141
|
ExclusionsListFeatureRoutingPermissionResolver,
|
|
1106
|
-
ExclusionsListFeatureRoutingLocaleResolver
|
|
1107
|
-
ExclusionsListFeatureRoutingListTitleResolver
|
|
1142
|
+
ExclusionsListFeatureRoutingLocaleResolver
|
|
1108
1143
|
],
|
|
1109
1144
|
declarations: [
|
|
1110
1145
|
EmptyComponent
|
|
@@ -1177,5 +1212,5 @@ var LogicalDeleteModule = /** @class */ (function () {
|
|
|
1177
1212
|
* Generated bundle index. Do not edit.
|
|
1178
1213
|
*/
|
|
1179
1214
|
|
|
1180
|
-
export { EmptyComponent, ExclusionDetailsComponent, ExclusionDetailsModule, ExclusionsListComponent, ExclusionsListFeatureRouting, ExclusionsListFeatureRoutingGuard,
|
|
1215
|
+
export { EmptyComponent, ExclusionDetailsComponent, ExclusionDetailsModule, ExclusionsListComponent, ExclusionsListFeatureRouting, ExclusionsListFeatureRoutingGuard, ExclusionsListFeatureRoutingLocaleResolver, ExclusionsListFeatureRoutingPermissionResolver, ExclusionsListModule, LogicalDeleteModule, routes, LogicalDeleteService as ɵa, LogicalDeleteConfigService as ɵb, ProjectConfigsInjectionToken as ɵc, ExclusionDetailsModule as ɵe, ExclusionDetailsComponent as ɵf, LogicalDeleteService as ɵg, FilterService as ɵh };
|
|
1181
1216
|
//# sourceMappingURL=seniorsistemas-exclusion-process-component.js.map
|