@seniorsistemas/exclusion-process-component 0.0.1-c049d10c-e93a-4d63-9c2a-b17bca40c324 → 0.1.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 +554 -18
- 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 +15 -5
- package/esm2015/exclusion-details/exclusion-details.module.js +4 -3
- package/esm2015/exclusion-details/protocols/show-details-information.js +1 -1
- package/esm2015/exclusions-list/exclusions-list.component.js +347 -0
- package/esm2015/exclusions-list/exclusions-list.module.js +47 -0
- package/esm2015/exclusions-list/exclusions-list.routing.js +115 -0
- package/esm2015/exclusions-list/index.js +4 -0
- package/esm2015/public-api.js +2 -1
- package/esm2015/seniorsistemas-exclusion-process-component.js +4 -2
- package/esm2015/services/filter.service.js +4 -1
- package/esm2015/services/index.js +2 -0
- package/esm2015/services/logical-delete.service.js +24 -9
- package/esm5/exclusion-details/exclusion-details.component.js +15 -5
- package/esm5/exclusion-details/exclusion-details.module.js +4 -3
- package/esm5/exclusion-details/protocols/show-details-information.js +1 -1
- package/esm5/exclusions-list/exclusions-list.component.js +362 -0
- package/esm5/exclusions-list/exclusions-list.module.js +50 -0
- package/esm5/exclusions-list/exclusions-list.routing.js +127 -0
- package/esm5/exclusions-list/index.js +4 -0
- package/esm5/public-api.js +2 -1
- package/esm5/seniorsistemas-exclusion-process-component.js +4 -2
- package/esm5/services/filter.service.js +4 -1
- package/esm5/services/index.js +2 -0
- package/esm5/services/logical-delete.service.js +24 -9
- package/exclusion-details/exclusion-details.component.d.ts +2 -0
- package/exclusion-details/protocols/show-details-information.d.ts +2 -1
- package/exclusions-list/exclusions-list.component.d.ts +69 -0
- package/exclusions-list/exclusions-list.module.d.ts +2 -0
- package/exclusions-list/exclusions-list.routing.d.ts +29 -0
- package/exclusions-list/index.d.ts +3 -0
- package/fesm2015/seniorsistemas-exclusion-process-component.js +517 -18
- package/fesm2015/seniorsistemas-exclusion-process-component.js.map +1 -1
- package/fesm5/seniorsistemas-exclusion-process-component.js +547 -18
- package/fesm5/seniorsistemas-exclusion-process-component.js.map +1 -1
- package/package.json +1 -1
- package/public-api.d.ts +1 -0
- package/seniorsistemas-exclusion-process-component.d.ts +3 -1
- package/seniorsistemas-exclusion-process-component.metadata.json +1 -1
- package/services/index.d.ts +1 -0
- package/services/logical-delete.service.d.ts +5 -3
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/common'), require('@angular/core'), require('primeng/panel'), require('primeng/table'), require('@seniorsistemas/angular-components'), require('moment'), require('@angular/router'), require('rxjs'), require('rxjs/operators'), require('@angular/common/http'), require('@ngx-translate/core'), require('primeng/api')) :
|
|
3
|
-
typeof define === 'function' && define.amd ? define('@seniorsistemas/exclusion-process-component', ['exports', '@angular/common', '@angular/core', 'primeng/panel', 'primeng/table', '@seniorsistemas/angular-components', 'moment', '@angular/router', 'rxjs', 'rxjs/operators', '@angular/common/http', '@ngx-translate/core', 'primeng/api'], factory) :
|
|
4
|
-
(global = global || self, factory((global.seniorsistemas = global.seniorsistemas || {}, global.seniorsistemas['exclusion-process-component'] = {}), global.ng.common, global.ng.core, global.panel, global.table, global.angularComponents, global.moment, global.ng.router, global.rxjs, global.rxjs.operators, global.ng.common.http, global.core$1, global.api));
|
|
5
|
-
}(this, (function (exports, common, core, panel, table, angularComponents, moment, router, rxjs, operators, http, core$1, api) { 'use strict';
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/common'), require('@angular/core'), require('primeng/panel'), require('primeng/table'), require('@seniorsistemas/angular-components'), require('moment'), require('@angular/router'), require('rxjs'), require('rxjs/operators'), require('@angular/common/http'), require('@ngx-translate/core'), require('primeng/api'), require('@angular/forms'), require('primeng/dialog'), require('primeng/confirmdialog'), require('primeng/inputtext'), require('@seniorsistemas/platform-components')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define('@seniorsistemas/exclusion-process-component', ['exports', '@angular/common', '@angular/core', 'primeng/panel', 'primeng/table', '@seniorsistemas/angular-components', 'moment', '@angular/router', 'rxjs', 'rxjs/operators', '@angular/common/http', '@ngx-translate/core', 'primeng/api', '@angular/forms', 'primeng/dialog', 'primeng/confirmdialog', 'primeng/inputtext', '@seniorsistemas/platform-components'], factory) :
|
|
4
|
+
(global = global || self, factory((global.seniorsistemas = global.seniorsistemas || {}, global.seniorsistemas['exclusion-process-component'] = {}), global.ng.common, global.ng.core, global.panel, global.table, global.angularComponents, global.moment, global.ng.router, global.rxjs, global.rxjs.operators, global.ng.common.http, global.core$1, global.api, global.ng.forms, global.dialog, global.confirmdialog, global.inputtext, global.platformComponents));
|
|
5
|
+
}(this, (function (exports, common, core, panel, table, angularComponents, moment, router, rxjs, operators, http, core$1, api, forms, dialog, confirmdialog, inputtext, platformComponents) { 'use strict';
|
|
6
6
|
|
|
7
7
|
/*! *****************************************************************************
|
|
8
8
|
Copyright (c) Microsoft Corporation.
|
|
@@ -259,6 +259,8 @@
|
|
|
259
259
|
return LogicalDeleteConfigService;
|
|
260
260
|
}());
|
|
261
261
|
|
|
262
|
+
var HTTP_UNAUTHORIZED_CODE = 401;
|
|
263
|
+
var DEFAULT_PAGE_SIZE = 10;
|
|
262
264
|
var LogicalDeleteService = /** @class */ (function () {
|
|
263
265
|
function LogicalDeleteService(http, messageService, translate, projectConfigs) {
|
|
264
266
|
this.http = http;
|
|
@@ -273,10 +275,11 @@
|
|
|
273
275
|
LogicalDeleteService.prototype.defaultCatch = function () {
|
|
274
276
|
var _this = this;
|
|
275
277
|
return operators.catchError(function (err) {
|
|
278
|
+
var _a;
|
|
276
279
|
if (err) {
|
|
277
280
|
var summary = err.status ? String(err.status) : "Error";
|
|
278
|
-
var detail = (err.error
|
|
279
|
-
if (err.status ===
|
|
281
|
+
var detail = ((_a = err.error) === null || _a === void 0 ? void 0 : _a.message) || err.statusText || err.message;
|
|
282
|
+
if (err.status === HTTP_UNAUTHORIZED_CODE) {
|
|
280
283
|
var prefix = _this.projectConfigs.getTranslationPrefix();
|
|
281
284
|
summary = _this.translate.instant(prefix + ".error_unauthorized_title");
|
|
282
285
|
detail = _this.translate.instant(prefix + ".error_unauthorized_description");
|
|
@@ -284,14 +287,14 @@
|
|
|
284
287
|
_this.messageService.add({
|
|
285
288
|
severity: "error",
|
|
286
289
|
summary: summary,
|
|
287
|
-
detail: detail
|
|
290
|
+
detail: detail || "Error"
|
|
288
291
|
});
|
|
289
292
|
}
|
|
290
293
|
return rxjs.throwError(err);
|
|
291
294
|
});
|
|
292
295
|
};
|
|
293
296
|
LogicalDeleteService.prototype.getListQueryParams = function (listParams) {
|
|
294
|
-
var _a = listParams.page, page = _a === void 0 ? 0 : _a, _b = listParams.size, size = _b === void 0 ?
|
|
297
|
+
var _a = listParams.page, page = _a === void 0 ? 0 : _a, _b = listParams.size, size = _b === void 0 ? DEFAULT_PAGE_SIZE : _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;
|
|
295
298
|
var params = new http.HttpParams();
|
|
296
299
|
params = params.append("size", String(size));
|
|
297
300
|
params = params.append("offset", String(page));
|
|
@@ -313,10 +316,22 @@
|
|
|
313
316
|
}
|
|
314
317
|
return params;
|
|
315
318
|
};
|
|
316
|
-
LogicalDeleteService.prototype.getProcessDetails = function (
|
|
317
|
-
|
|
318
|
-
filter: "
|
|
319
|
-
|
|
319
|
+
LogicalDeleteService.prototype.getProcessDetails = function (id) {
|
|
320
|
+
return this.doGetProcessDetails({
|
|
321
|
+
filter: "id eq '" + id + "'",
|
|
322
|
+
size: "1",
|
|
323
|
+
offset: "0",
|
|
324
|
+
});
|
|
325
|
+
};
|
|
326
|
+
LogicalDeleteService.prototype.getLatestProcessDetails = function (recordId) {
|
|
327
|
+
return this.doGetProcessDetails({
|
|
328
|
+
filter: "recordId eq '" + recordId + "'",
|
|
329
|
+
size: "1",
|
|
330
|
+
offset: "0",
|
|
331
|
+
orderby: "startDate desc"
|
|
332
|
+
});
|
|
333
|
+
};
|
|
334
|
+
LogicalDeleteService.prototype.doGetProcessDetails = function (filterParams) {
|
|
320
335
|
return this.http.get(this.exclusionProcessUrl, { params: filterParams })
|
|
321
336
|
.pipe(this.defaultCatch())
|
|
322
337
|
.pipe(operators.map(function (value) {
|
|
@@ -420,8 +435,9 @@
|
|
|
420
435
|
this.processDetails = null;
|
|
421
436
|
this._entityName = details.entityName;
|
|
422
437
|
this._isVisible = true;
|
|
438
|
+
this._processSummaryData = [];
|
|
423
439
|
this.entityDescription = details.entityDescription;
|
|
424
|
-
this.loadProcessDetails(details
|
|
440
|
+
this.loadProcessDetails(details);
|
|
425
441
|
};
|
|
426
442
|
ExclusionDetailsComponent.prototype.closeDetails = function () {
|
|
427
443
|
this._isVisible = false;
|
|
@@ -477,6 +493,12 @@
|
|
|
477
493
|
ExclusionDetailsComponent.prototype.getSidebarTitle = function () {
|
|
478
494
|
return this.translate.instant(this.projectConfigs.getTranslationPrefix() + ".logical_delete_details_title");
|
|
479
495
|
};
|
|
496
|
+
ExclusionDetailsComponent.prototype.getEmptyStateTitle = function () {
|
|
497
|
+
return this.translate.instant(this.projectConfigs.getTranslationPrefix() + ".logical_delete_empty_state_title");
|
|
498
|
+
};
|
|
499
|
+
ExclusionDetailsComponent.prototype.getEmptyStateDescription = function () {
|
|
500
|
+
return this.translate.instant(this.projectConfigs.getTranslationPrefix() + ".logical_delete_empty_state_description");
|
|
501
|
+
};
|
|
480
502
|
ExclusionDetailsComponent.prototype.getSummaryColumns = function () {
|
|
481
503
|
return [
|
|
482
504
|
{
|
|
@@ -525,10 +547,13 @@
|
|
|
525
547
|
}
|
|
526
548
|
return null;
|
|
527
549
|
};
|
|
528
|
-
ExclusionDetailsComponent.prototype.loadProcessDetails = function (
|
|
550
|
+
ExclusionDetailsComponent.prototype.loadProcessDetails = function (details) {
|
|
529
551
|
var _this = this;
|
|
530
552
|
this._isLoading = true;
|
|
531
|
-
|
|
553
|
+
var processObservable = details.processId
|
|
554
|
+
? this.logicalDeleteService.getProcessDetails(details.processId)
|
|
555
|
+
: this.logicalDeleteService.getLatestProcessDetails(details.recordId);
|
|
556
|
+
processObservable
|
|
532
557
|
.pipe(operators.takeUntil(this.ngUnsubscribe))
|
|
533
558
|
.pipe(operators.finalize(function () { return _this._isLoading = false; }))
|
|
534
559
|
.subscribe(function (process) {
|
|
@@ -576,7 +601,7 @@
|
|
|
576
601
|
ExclusionDetailsComponent = __decorate([
|
|
577
602
|
core.Component({
|
|
578
603
|
selector: "s-exclusion-details",
|
|
579
|
-
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 <
|
|
604
|
+
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 <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=\"processSummaryData && !processSummaryData.length\"\n [title]=\"getEmptyStateTitle()\"\n [description]=\"getEmptyStateDescription()\">\n [showPrimaryAction]=\"false\"\n </s-empty-state>\n\n <p-table\n [value]=\"processSummaryData\"\n [columns]=\"processSummaryColumns\"\n dataKey=\"id\"\n [lazy]=\"false\"\n [scrollable]=\"false\"\n [paginator]=\"false\"\n *ngIf=\"processSummaryData && processSummaryData.length\">\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",
|
|
580
605
|
encapsulation: core.ViewEncapsulation.None,
|
|
581
606
|
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}"]
|
|
582
607
|
})
|
|
@@ -597,7 +622,8 @@
|
|
|
597
622
|
table.TableModule,
|
|
598
623
|
angularComponents.TableModule,
|
|
599
624
|
angularComponents.LoadingStateModule,
|
|
600
|
-
angularComponents.LocaleModule
|
|
625
|
+
angularComponents.LocaleModule,
|
|
626
|
+
angularComponents.EmptyStateModule
|
|
601
627
|
],
|
|
602
628
|
declarations: [ExclusionDetailsComponent],
|
|
603
629
|
exports: [ExclusionDetailsComponent],
|
|
@@ -678,6 +704,9 @@
|
|
|
678
704
|
? this.translate.instant(this.logicalDeleteConfigService.getTranslationPrefix() + ".list_grid_boolean_true")
|
|
679
705
|
: this.translate.instant(this.logicalDeleteConfigService.getTranslationPrefix() + ".list_grid_boolean_false");
|
|
680
706
|
break;
|
|
707
|
+
default:
|
|
708
|
+
labelValue = value;
|
|
709
|
+
break;
|
|
681
710
|
}
|
|
682
711
|
return { id: name, label: label + ": " + labelValue };
|
|
683
712
|
};
|
|
@@ -709,6 +738,501 @@
|
|
|
709
738
|
return FilterService;
|
|
710
739
|
}());
|
|
711
740
|
|
|
741
|
+
var HTTP_CODE_SERVER_ERROR_START = 500;
|
|
742
|
+
var HTTP_CODE_SERVER_ERROR_END = 600;
|
|
743
|
+
var ExclusionsListComponent = /** @class */ (function () {
|
|
744
|
+
function ExclusionsListComponent(route, translate, formBuilder, changeDetectorRef, logicalDeleteService, filterService, projectConfigs) {
|
|
745
|
+
this.route = route;
|
|
746
|
+
this.translate = translate;
|
|
747
|
+
this.formBuilder = formBuilder;
|
|
748
|
+
this.changeDetectorRef = changeDetectorRef;
|
|
749
|
+
this.logicalDeleteService = logicalDeleteService;
|
|
750
|
+
this.filterService = filterService;
|
|
751
|
+
this.projectConfigs = projectConfigs;
|
|
752
|
+
this.currentListParams = { page: 0, size: 10, sort: [], filterData: {} };
|
|
753
|
+
this.showLoader = false;
|
|
754
|
+
this.totalRecords = 0;
|
|
755
|
+
this.filtersPanelCollapsed = true;
|
|
756
|
+
this.searchTokens = [];
|
|
757
|
+
this.serverError = false;
|
|
758
|
+
this.ngUnsubscribe = new rxjs.Subject();
|
|
759
|
+
}
|
|
760
|
+
ExclusionsListComponent_1 = ExclusionsListComponent;
|
|
761
|
+
ExclusionsListComponent.prototype.ngOnInit = function () {
|
|
762
|
+
var _this = this;
|
|
763
|
+
this.filterFormGroup = this.getFormBuilder();
|
|
764
|
+
this.filterFields = this.getFilterFields();
|
|
765
|
+
this.gridColumns = this.getGridColumns();
|
|
766
|
+
this.route.data
|
|
767
|
+
.pipe(operators.takeUntil(this.ngUnsubscribe))
|
|
768
|
+
.subscribe(function (data) {
|
|
769
|
+
_this.locale = data.localeConfig;
|
|
770
|
+
});
|
|
771
|
+
this.route.params
|
|
772
|
+
.pipe(operators.takeUntil(this.ngUnsubscribe))
|
|
773
|
+
.subscribe(function (params) {
|
|
774
|
+
_this.entityName = params.entityName;
|
|
775
|
+
_this.showBasedOnRoute();
|
|
776
|
+
});
|
|
777
|
+
this.route.queryParams
|
|
778
|
+
.pipe(operators.takeUntil(this.ngUnsubscribe))
|
|
779
|
+
.subscribe(function (queryParams) {
|
|
780
|
+
_this.entityDescription = queryParams.entityDescription;
|
|
781
|
+
_this.processId = queryParams.processId;
|
|
782
|
+
_this.showBasedOnRoute();
|
|
783
|
+
});
|
|
784
|
+
};
|
|
785
|
+
ExclusionsListComponent.prototype.showBasedOnRoute = function () {
|
|
786
|
+
if (this.entityName && this.entityDescription && this.processId) {
|
|
787
|
+
this.exclusionDetailsComponent.showDetails({
|
|
788
|
+
processId: this.processId,
|
|
789
|
+
entityDescription: this.entityDescription,
|
|
790
|
+
entityName: this.entityName
|
|
791
|
+
});
|
|
792
|
+
}
|
|
793
|
+
};
|
|
794
|
+
ExclusionsListComponent.prototype.ngOnDestroy = function () {
|
|
795
|
+
this.ngUnsubscribe.next();
|
|
796
|
+
this.ngUnsubscribe.complete();
|
|
797
|
+
};
|
|
798
|
+
ExclusionsListComponent.prototype.getFormBuilder = function () {
|
|
799
|
+
return this.formBuilder.group({
|
|
800
|
+
description: [undefined, forms.Validators.compose([])],
|
|
801
|
+
status: [undefined, forms.Validators.compose([])],
|
|
802
|
+
startDate: [{ value: undefined, disabled: false }, forms.Validators.compose([])],
|
|
803
|
+
endDate: [{ value: undefined, disabled: false }, forms.Validators.compose([])]
|
|
804
|
+
});
|
|
805
|
+
};
|
|
806
|
+
ExclusionsListComponent.prototype.getGridColumns = function () {
|
|
807
|
+
return [
|
|
808
|
+
{
|
|
809
|
+
field: "description",
|
|
810
|
+
attributes: ["description"],
|
|
811
|
+
header: this.translate.instant(this.projectConfigs.getTranslationPrefix() + ".logical_delete_description"),
|
|
812
|
+
type: angularComponents.EnumColumnFieldType.STRING,
|
|
813
|
+
style: {
|
|
814
|
+
width: "300px"
|
|
815
|
+
}
|
|
816
|
+
},
|
|
817
|
+
{
|
|
818
|
+
field: "status",
|
|
819
|
+
attributes: ["status"],
|
|
820
|
+
header: this.translate.instant(this.projectConfigs.getTranslationPrefix() + ".logical_delete_status"),
|
|
821
|
+
type: angularComponents.EnumColumnFieldType.ENUM,
|
|
822
|
+
enumPrefix: this.projectConfigs.getTranslationPrefix() + ".logical_delete_enum_exclusion_process_status_",
|
|
823
|
+
style: {
|
|
824
|
+
width: "100px"
|
|
825
|
+
},
|
|
826
|
+
badgeConfigs: [
|
|
827
|
+
{
|
|
828
|
+
enumValue: EnumExclusionProcessStatus.ERROR,
|
|
829
|
+
color: angularComponents.EnumBadgeColors.RED
|
|
830
|
+
},
|
|
831
|
+
{
|
|
832
|
+
enumValue: EnumExclusionProcessStatus.PENDING,
|
|
833
|
+
color: angularComponents.EnumBadgeColors.YELLOW
|
|
834
|
+
},
|
|
835
|
+
{
|
|
836
|
+
enumValue: EnumExclusionProcessStatus.PROCESSING,
|
|
837
|
+
color: angularComponents.EnumBadgeColors.BLUE
|
|
838
|
+
},
|
|
839
|
+
{
|
|
840
|
+
enumValue: EnumExclusionProcessStatus.SUCCESS,
|
|
841
|
+
color: angularComponents.EnumBadgeColors.GREEN
|
|
842
|
+
}
|
|
843
|
+
]
|
|
844
|
+
},
|
|
845
|
+
{
|
|
846
|
+
field: "startDate",
|
|
847
|
+
attributes: ["startDate"],
|
|
848
|
+
header: this.translate.instant(this.projectConfigs.getTranslationPrefix() + ".logical_delete_start"),
|
|
849
|
+
type: angularComponents.EnumColumnFieldType.DATE,
|
|
850
|
+
dateFormat: "DD/MM/YYYY HH:mm",
|
|
851
|
+
style: {
|
|
852
|
+
width: "100px"
|
|
853
|
+
}
|
|
854
|
+
},
|
|
855
|
+
{
|
|
856
|
+
field: "finishDate",
|
|
857
|
+
attributes: ["finishDate"],
|
|
858
|
+
header: this.translate.instant(this.projectConfigs.getTranslationPrefix() + ".logical_delete_finish"),
|
|
859
|
+
type: angularComponents.EnumColumnFieldType.DATE,
|
|
860
|
+
dateFormat: "DD/MM/YYYY HH:mm",
|
|
861
|
+
style: {
|
|
862
|
+
width: "100px"
|
|
863
|
+
}
|
|
864
|
+
}
|
|
865
|
+
];
|
|
866
|
+
};
|
|
867
|
+
ExclusionsListComponent.prototype.getFilterFields = function () {
|
|
868
|
+
var translationPrefix = this.projectConfigs.getTranslationPrefix();
|
|
869
|
+
return [
|
|
870
|
+
new angularComponents.FormField({
|
|
871
|
+
type: angularComponents.FieldType.String,
|
|
872
|
+
name: "description",
|
|
873
|
+
label: this.translate.instant(translationPrefix + ".logical_delete_description")
|
|
874
|
+
}),
|
|
875
|
+
new angularComponents.FormField({
|
|
876
|
+
type: angularComponents.FieldType.Enum,
|
|
877
|
+
name: "status",
|
|
878
|
+
label: this.translate.instant(translationPrefix + ".logical_delete_status"),
|
|
879
|
+
placeholder: this.translate.instant(translationPrefix + ".logical_delete_status"),
|
|
880
|
+
multiple: true,
|
|
881
|
+
options: [
|
|
882
|
+
{
|
|
883
|
+
label: this.translate.instant(translationPrefix + ".logical_delete_enum_exclusion_process_status_error"),
|
|
884
|
+
value: EnumExclusionProcessStatus.ERROR
|
|
885
|
+
},
|
|
886
|
+
{
|
|
887
|
+
label: this.translate.instant(translationPrefix + ".logical_delete_enum_exclusion_process_status_pending"),
|
|
888
|
+
value: EnumExclusionProcessStatus.PENDING
|
|
889
|
+
},
|
|
890
|
+
{
|
|
891
|
+
label: this.translate.instant(translationPrefix + ".logical_delete_enum_exclusion_process_status_processing"),
|
|
892
|
+
value: EnumExclusionProcessStatus.PROCESSING
|
|
893
|
+
},
|
|
894
|
+
{
|
|
895
|
+
label: this.translate.instant(translationPrefix + ".logical_delete_enum_exclusion_process_status_success"),
|
|
896
|
+
value: EnumExclusionProcessStatus.SUCCESS
|
|
897
|
+
}
|
|
898
|
+
]
|
|
899
|
+
}),
|
|
900
|
+
new angularComponents.FormField({
|
|
901
|
+
type: angularComponents.FieldType.Date,
|
|
902
|
+
name: "startDate",
|
|
903
|
+
label: this.translate.instant(translationPrefix + ".logical_delete_start")
|
|
904
|
+
}),
|
|
905
|
+
new angularComponents.FormField({
|
|
906
|
+
type: angularComponents.FieldType.Date,
|
|
907
|
+
name: "endDate",
|
|
908
|
+
label: this.translate.instant(translationPrefix + ".logical_delete_finish")
|
|
909
|
+
})
|
|
910
|
+
];
|
|
911
|
+
};
|
|
912
|
+
ExclusionsListComponent.prototype.getEmptyStateTitle = function () {
|
|
913
|
+
return this.translate.instant(this.projectConfigs.getTranslationPrefix() + ".logical_delete_empty_state_title");
|
|
914
|
+
};
|
|
915
|
+
ExclusionsListComponent.prototype.getEmptyStateDescription = function () {
|
|
916
|
+
return this.translate.instant(this.projectConfigs.getTranslationPrefix() + ".logical_delete_empty_state_description");
|
|
917
|
+
};
|
|
918
|
+
ExclusionsListComponent.prototype.getTitle = function () {
|
|
919
|
+
return this.translate.instant(this.projectConfigs.getTranslationPrefix() + ".logical_delete_list_title");
|
|
920
|
+
};
|
|
921
|
+
ExclusionsListComponent.prototype.getDetailsButtonTitle = function () {
|
|
922
|
+
return this.translate.instant(this.projectConfigs.getTranslationPrefix() + ".logical_delete_details");
|
|
923
|
+
};
|
|
924
|
+
ExclusionsListComponent.prototype.getFiltersTitle = function () {
|
|
925
|
+
return this.translate.instant(this.projectConfigs.getTranslationPrefix() + ".filters");
|
|
926
|
+
};
|
|
927
|
+
ExclusionsListComponent.prototype.getFilterButtonTitle = function () {
|
|
928
|
+
return this.translate.instant(this.projectConfigs.getTranslationPrefix() + ".filter");
|
|
929
|
+
};
|
|
930
|
+
ExclusionsListComponent.prototype.getClearButtonTitle = function () {
|
|
931
|
+
return this.translate.instant(this.projectConfigs.getTranslationPrefix() + ".clear");
|
|
932
|
+
};
|
|
933
|
+
ExclusionsListComponent.prototype.getErrorInvalid = function () {
|
|
934
|
+
return this.translate.instant(this.projectConfigs.getTranslationPrefix() + ".error_invalid");
|
|
935
|
+
};
|
|
936
|
+
ExclusionsListComponent.prototype.getErrorServerTitle = function () {
|
|
937
|
+
return this.translate.instant(this.projectConfigs.getTranslationPrefix() + ".error_server_title");
|
|
938
|
+
};
|
|
939
|
+
ExclusionsListComponent.prototype.getErrorServerDescription = function () {
|
|
940
|
+
return this.translate.instant(this.projectConfigs.getTranslationPrefix() + ".error_server_description");
|
|
941
|
+
};
|
|
942
|
+
ExclusionsListComponent.prototype.getActionsColumnLabel = function () {
|
|
943
|
+
return this.translate.instant(this.projectConfigs.getTranslationPrefix() + ".actions");
|
|
944
|
+
};
|
|
945
|
+
ExclusionsListComponent.prototype.onSearch = function () {
|
|
946
|
+
var filterData = this.filterFormGroup.getRawValue();
|
|
947
|
+
this.filtersPanelCollapsed = true;
|
|
948
|
+
this.resetGrid({ filterData: filterData });
|
|
949
|
+
};
|
|
950
|
+
ExclusionsListComponent.prototype.onClear = function () {
|
|
951
|
+
this.filterFormGroup.reset();
|
|
952
|
+
var filterData = this.filterFormGroup.getRawValue();
|
|
953
|
+
this.resetGrid({ filterData: filterData });
|
|
954
|
+
};
|
|
955
|
+
ExclusionsListComponent.prototype.onRemoveToken = function (token) {
|
|
956
|
+
this.filterFormGroup.get(token.id).setValue(undefined);
|
|
957
|
+
var filterData = this.filterFormGroup.getRawValue();
|
|
958
|
+
this.resetGrid({ filterData: filterData });
|
|
959
|
+
};
|
|
960
|
+
ExclusionsListComponent.prototype.onGridChange = function (event) {
|
|
961
|
+
var size = event.rows;
|
|
962
|
+
var page = event.first / size;
|
|
963
|
+
var sort = event.multiSortMeta ? event.multiSortMeta : [];
|
|
964
|
+
return this.updateGrid({ page: page, size: size, sort: sort });
|
|
965
|
+
};
|
|
966
|
+
ExclusionsListComponent.prototype.getFilterTokens = function () {
|
|
967
|
+
var _this = this;
|
|
968
|
+
var filterData = this.filterFormGroup.value;
|
|
969
|
+
return this.filterFields
|
|
970
|
+
.filter(function (_a) {
|
|
971
|
+
var name = _a.name;
|
|
972
|
+
return filterData[name] !== undefined && filterData[name] !== "" && filterData[name] !== null;
|
|
973
|
+
})
|
|
974
|
+
.map(function (formField) { return _this.filterService.createFilterTokens(formField, filterData[formField.name]); });
|
|
975
|
+
};
|
|
976
|
+
ExclusionsListComponent.prototype.getFilterQuery = function () {
|
|
977
|
+
var _this = this;
|
|
978
|
+
var filterData = this.currentListParams.filterData;
|
|
979
|
+
var dateFields = ["startDate", "endDate"];
|
|
980
|
+
var filterQuery = this.filterFields
|
|
981
|
+
.filter(function (_a) {
|
|
982
|
+
var name = _a.name;
|
|
983
|
+
return !dateFields.includes(name);
|
|
984
|
+
})
|
|
985
|
+
.filter(function (_a) {
|
|
986
|
+
var name = _a.name;
|
|
987
|
+
return filterData[name] !== undefined && filterData[name] !== "" && filterData[name] !== null;
|
|
988
|
+
})
|
|
989
|
+
.map(function (formField) { return _this.filterService.createFilterString(formField, filterData[formField.name]); })
|
|
990
|
+
.join(" and ");
|
|
991
|
+
var dateQuery;
|
|
992
|
+
if (filterData.startDate && filterData.endDate) {
|
|
993
|
+
var startDate = moment(filterData.startDate).format(ExclusionsListComponent_1.DATE_FORMAT);
|
|
994
|
+
var endDate = moment(filterData.endDate).format(ExclusionsListComponent_1.DATE_FORMAT);
|
|
995
|
+
dateQuery = "startDate between '" + startDate + "T00:00:00Z' and '" + endDate + "T23:59:59Z'";
|
|
996
|
+
}
|
|
997
|
+
else if (filterData.startDate) {
|
|
998
|
+
var startDate = moment(filterData.startDate).format(ExclusionsListComponent_1.DATE_FORMAT);
|
|
999
|
+
dateQuery = "startDate >= '" + startDate + "T00:00:00Z'";
|
|
1000
|
+
}
|
|
1001
|
+
else if (filterData.endDate) {
|
|
1002
|
+
var endDate = moment(filterData.endDate).format(ExclusionsListComponent_1.DATE_FORMAT);
|
|
1003
|
+
dateQuery = "finishDate <= '" + endDate + "T23:59:59Z'";
|
|
1004
|
+
}
|
|
1005
|
+
else {
|
|
1006
|
+
// Não é necessário nenhuma condição a mais no filtro.
|
|
1007
|
+
}
|
|
1008
|
+
if (dateQuery) {
|
|
1009
|
+
filterQuery += filterQuery ? " and " + dateQuery : dateQuery;
|
|
1010
|
+
}
|
|
1011
|
+
return filterQuery;
|
|
1012
|
+
};
|
|
1013
|
+
ExclusionsListComponent.prototype.updateGrid = function (listParams) {
|
|
1014
|
+
if (listParams === void 0) { listParams = {}; }
|
|
1015
|
+
this.currentListParams = __assign(__assign({}, this.currentListParams), listParams);
|
|
1016
|
+
var _a = this.currentListParams, page = _a.page, size = _a.size, sort = _a.sort;
|
|
1017
|
+
this.searchTokens = this.getFilterTokens();
|
|
1018
|
+
var filterQuery = this.getFilterQuery();
|
|
1019
|
+
var displayFields = __spread([
|
|
1020
|
+
"recordId"
|
|
1021
|
+
], this.gridColumns.map(function (column) { return column.field; }));
|
|
1022
|
+
this.listExclusions({ page: page, size: size, sort: sort, filterQuery: filterQuery, displayFields: displayFields });
|
|
1023
|
+
};
|
|
1024
|
+
ExclusionsListComponent.prototype.listExclusions = function (params) {
|
|
1025
|
+
var _this = this;
|
|
1026
|
+
this.showLoader = true;
|
|
1027
|
+
this.serverError = false;
|
|
1028
|
+
this.changeDetectorRef.detectChanges();
|
|
1029
|
+
this.logicalDeleteService
|
|
1030
|
+
.listExclusions(this.entityName, params)
|
|
1031
|
+
.pipe(operators.takeUntil(this.ngUnsubscribe), operators.catchError(function (err) {
|
|
1032
|
+
if (err.status >= HTTP_CODE_SERVER_ERROR_START && err.status < HTTP_CODE_SERVER_ERROR_END) {
|
|
1033
|
+
_this.serverError = true;
|
|
1034
|
+
}
|
|
1035
|
+
throw err;
|
|
1036
|
+
}), operators.finalize(function () { return _this.showLoader = false; }))
|
|
1037
|
+
.subscribe(function (list) {
|
|
1038
|
+
_this.gridData = list.contents;
|
|
1039
|
+
_this.totalRecords = list.totalElements;
|
|
1040
|
+
});
|
|
1041
|
+
};
|
|
1042
|
+
ExclusionsListComponent.prototype.focusInput = function (elementId) {
|
|
1043
|
+
var element = document.getElementById("" + elementId);
|
|
1044
|
+
if (element) {
|
|
1045
|
+
element.focus();
|
|
1046
|
+
}
|
|
1047
|
+
};
|
|
1048
|
+
ExclusionsListComponent.prototype.resetGrid = function (listParams) {
|
|
1049
|
+
if (listParams) {
|
|
1050
|
+
this.currentListParams = __assign(__assign({}, this.currentListParams), listParams);
|
|
1051
|
+
}
|
|
1052
|
+
this.currentListParams = __assign(__assign({}, this.currentListParams), { page: 0, sort: [] });
|
|
1053
|
+
this.table.reset();
|
|
1054
|
+
};
|
|
1055
|
+
ExclusionsListComponent.prototype.onClickDetails = function (rowData) {
|
|
1056
|
+
this.exclusionDetailsComponent.showDetails({
|
|
1057
|
+
processId: rowData.id,
|
|
1058
|
+
entityDescription: this.entityDescription,
|
|
1059
|
+
entityName: this.entityName
|
|
1060
|
+
});
|
|
1061
|
+
};
|
|
1062
|
+
var ExclusionsListComponent_1;
|
|
1063
|
+
ExclusionsListComponent.DATE_FORMAT = "YYYY-MM-DD";
|
|
1064
|
+
ExclusionsListComponent.ctorParameters = function () { return [
|
|
1065
|
+
{ type: router.ActivatedRoute },
|
|
1066
|
+
{ type: core$1.TranslateService },
|
|
1067
|
+
{ type: forms.FormBuilder },
|
|
1068
|
+
{ type: core.ChangeDetectorRef },
|
|
1069
|
+
{ type: LogicalDeleteService },
|
|
1070
|
+
{ type: FilterService },
|
|
1071
|
+
{ type: LogicalDeleteConfigService }
|
|
1072
|
+
]; };
|
|
1073
|
+
__decorate([
|
|
1074
|
+
core.ViewChild("exclusionsTable")
|
|
1075
|
+
], ExclusionsListComponent.prototype, "table", void 0);
|
|
1076
|
+
__decorate([
|
|
1077
|
+
core.ViewChild(ExclusionDetailsComponent)
|
|
1078
|
+
], ExclusionsListComponent.prototype, "exclusionDetailsComponent", void 0);
|
|
1079
|
+
ExclusionsListComponent = ExclusionsListComponent_1 = __decorate([
|
|
1080
|
+
core.Component({
|
|
1081
|
+
template: "<div>\n <form [formGroup]=\"filterFormGroup\" autocomplete=\"off\">\n <p-panel\n *sLoadingState=\"showLoader\"\n styleClass=\"form-group\"\n [toggleable]=\"true\"\n [(collapsed)]=\"filtersPanelCollapsed\"\n (onAfterToggle)=\"focusInput('description')\"\n >\n <p-header>\n {{ getFiltersTitle() }}\n <s-token-list\n [tokens]=\"searchTokens\"\n (tokenRemoved)=\"onRemoveToken($event)\"\n [removableTokens]=\"true\"\n ></s-token-list>\n </p-header>\n <div>\n <s-dynamic-form\n [fields]=\"filterFields\"\n [form]=\"filterFormGroup\"\n [errorMessages]=\"{ pattern: getErrorInvalid() }\"\n ></s-dynamic-form>\n </div>\n <p-footer>\n <div class=\"ui-g\">\n <div class=\"ui-g-12\">\n <button\n id=\"filter-button\"\n class=\"ui-button\"\n type=\"submit\"\n pButton\n [label]=\"getFilterButtonTitle()\"\n (click)=\"onSearch()\"\n ></button>\n <button\n id=\"clear-button\"\n class=\"ui-button ui-button-link\"\n type=\"button\"\n pButton\n [label]=\"getClearButtonTitle()\"\n (click)=\"onClear()\"\n ></button>\n </div>\n </div>\n </p-footer>\n </p-panel>\n </form>\n <p-panel *sLoadingState=\"showLoader\">\n <p-header>\n {{ getTitle() }}\n </p-header>\n <ng-container>\n <s-empty-state\n *ngIf=\"serverError && !showLoader\"\n iconClass=\"fa fa-exclamation-triangle\"\n title=\"{{ getErrorServerTitle() | translate }}\"\n primaryActionLabel=\"{{ 'error_server_try_again' | translate }}\"\n (primaryAction)=\"resetGrid()\"\n description=\"{{ getErrorServerDescription() | translate }}\"\n ></s-empty-state>\n\n <s-empty-state\n *ngIf=\"!showLoader && !serverError && totalRecords === 0\"\n [title]=\"getEmptyStateTitle()\"\n [showPrimaryAction]=\"false\"\n [description]=\"getEmptyStateDescription()\"\n ></s-empty-state>\n\n <div class=\"ui-g\">\n <div class=\"ui-g-12\">\n <p-table\n #exclusionsTable\n id=\"exclusionsTable\"\n [hidden]=\"totalRecords === 0 || serverError\"\n [value]=\"gridData\"\n [columns]=\"gridColumns\"\n dataKey=\"id\"\n [lazy]=\"true\"\n [scrollable]=\"true\"\n [resizableColumns]=\"true\"\n sortMode=\"multiple\"\n [paginator]=\"true\"\n [totalRecords]=\"totalRecords\"\n [rows]=\"10\"\n rows=\"10\"\n [rowsPerPageOptions]=\"[10, 20, 50, 100]\"\n (onLazyLoad)=\"onGridChange($event)\"\n >\n <ng-template pTemplate=\"colgroup\" let-columns>\n <colgroup>\n <col\n *ngFor=\"let col of columns\"\n [style.width]=\"col.width\"\n />\n </colgroup>\n </ng-template>\n\n <ng-template\n pTemplate=\"header\"\n let-columns\n >\n <tr>\n <th *ngFor=\"let col of columns\"\n [id]=\"col.field\"\n [pSortableColumn]=\"col.field\"\n [ngStyle]=\"col.style\"\n pResizableColumn\n >\n <div class=\"senior-header\">\n <span class=\"senior-header-title\">\n {{ col.header }}\n </span>\n <p-sortIcon [field]=\"col.field\"></p-sortIcon>\n </div>\n </th>\n <th id=\"action-column\" style=\"width: 100px\">\n <div class=\"senior-header\">\n <span class=\"senior-header-title\">{{ getActionsColumnLabel() }}</span>\n </div>\n </th>\n </tr>\n </ng-template>\n\n <ng-template pTemplate=\"body\" let-rowData let-columns=\"columns\">\n <tr [pSelectableRow]=\"rowData\">\n <s-table-columns\n [columns]=\"columns\"\n [rowValue]=\"rowData\"\n [locale]=\"locale\">\n </s-table-columns>\n <td style=\"width: 100px\">\n <s-button\n id=\"details-button\"\n priority=\"default\"\n [label]=\"getDetailsButtonTitle()\"\n [auxiliary]=\"true\"\n (onClick)=\"onClickDetails(rowData)\">\n </s-button>\n </td>\n </tr>\n </ng-template>\n\n <ng-template pTemplate=\"paginatorright\">\n <s-table-paging\n [table]=\"exclusionsTable\"\n [totalRecords]=\"totalRecords\"\n ></s-table-paging>\n </ng-template>\n </p-table>\n </div>\n </div>\n </ng-container>\n </p-panel>\n</div>\n\n<s-exclusion-details></s-exclusion-details>\n",
|
|
1082
|
+
providers: []
|
|
1083
|
+
})
|
|
1084
|
+
], ExclusionsListComponent);
|
|
1085
|
+
return ExclusionsListComponent;
|
|
1086
|
+
}());
|
|
1087
|
+
|
|
1088
|
+
var ExclusionsListFeatureRoutingGuard = /** @class */ (function () {
|
|
1089
|
+
function ExclusionsListFeatureRoutingGuard() {
|
|
1090
|
+
}
|
|
1091
|
+
ExclusionsListFeatureRoutingGuard.prototype.canActivate = function () {
|
|
1092
|
+
return true;
|
|
1093
|
+
};
|
|
1094
|
+
ExclusionsListFeatureRoutingGuard = __decorate([
|
|
1095
|
+
core.Injectable()
|
|
1096
|
+
], ExclusionsListFeatureRoutingGuard);
|
|
1097
|
+
return ExclusionsListFeatureRoutingGuard;
|
|
1098
|
+
}());
|
|
1099
|
+
var ExclusionsListFeatureRoutingListTitleResolver = /** @class */ (function () {
|
|
1100
|
+
function ExclusionsListFeatureRoutingListTitleResolver(translate, projectConfigs) {
|
|
1101
|
+
this.translate = translate;
|
|
1102
|
+
this.projectConfigs = projectConfigs;
|
|
1103
|
+
}
|
|
1104
|
+
ExclusionsListFeatureRoutingListTitleResolver.prototype.resolve = function () {
|
|
1105
|
+
return this.translate.get(this.projectConfigs.getTranslationPrefix() + ".logical_delete_list_title");
|
|
1106
|
+
};
|
|
1107
|
+
ExclusionsListFeatureRoutingListTitleResolver.ctorParameters = function () { return [
|
|
1108
|
+
{ type: core$1.TranslateService },
|
|
1109
|
+
{ type: LogicalDeleteConfigService }
|
|
1110
|
+
]; };
|
|
1111
|
+
ExclusionsListFeatureRoutingListTitleResolver = __decorate([
|
|
1112
|
+
core.Injectable()
|
|
1113
|
+
], ExclusionsListFeatureRoutingListTitleResolver);
|
|
1114
|
+
return ExclusionsListFeatureRoutingListTitleResolver;
|
|
1115
|
+
}());
|
|
1116
|
+
var ExclusionsListFeatureRoutingPermissionResolver = /** @class */ (function () {
|
|
1117
|
+
function ExclusionsListFeatureRoutingPermissionResolver(permissionsService) {
|
|
1118
|
+
this.permissionsService = permissionsService;
|
|
1119
|
+
}
|
|
1120
|
+
ExclusionsListFeatureRoutingPermissionResolver.prototype.resolve = function () {
|
|
1121
|
+
return this.permissionsService.get();
|
|
1122
|
+
};
|
|
1123
|
+
ExclusionsListFeatureRoutingPermissionResolver.ctorParameters = function () { return [
|
|
1124
|
+
{ type: platformComponents.PermissionsService }
|
|
1125
|
+
]; };
|
|
1126
|
+
ExclusionsListFeatureRoutingPermissionResolver = __decorate([
|
|
1127
|
+
core.Injectable()
|
|
1128
|
+
], ExclusionsListFeatureRoutingPermissionResolver);
|
|
1129
|
+
return ExclusionsListFeatureRoutingPermissionResolver;
|
|
1130
|
+
}());
|
|
1131
|
+
var ExclusionsListFeatureRoutingLocaleResolver = /** @class */ (function () {
|
|
1132
|
+
function ExclusionsListFeatureRoutingLocaleResolver(localeService) {
|
|
1133
|
+
this.localeService = localeService;
|
|
1134
|
+
}
|
|
1135
|
+
ExclusionsListFeatureRoutingLocaleResolver.prototype.resolve = function () {
|
|
1136
|
+
return this.localeService.get();
|
|
1137
|
+
};
|
|
1138
|
+
ExclusionsListFeatureRoutingLocaleResolver.ctorParameters = function () { return [
|
|
1139
|
+
{ type: angularComponents.LocaleService }
|
|
1140
|
+
]; };
|
|
1141
|
+
ExclusionsListFeatureRoutingLocaleResolver = __decorate([
|
|
1142
|
+
core.Injectable()
|
|
1143
|
+
], ExclusionsListFeatureRoutingLocaleResolver);
|
|
1144
|
+
return ExclusionsListFeatureRoutingLocaleResolver;
|
|
1145
|
+
}());
|
|
1146
|
+
var EmptyComponent = /** @class */ (function () {
|
|
1147
|
+
function EmptyComponent() {
|
|
1148
|
+
}
|
|
1149
|
+
EmptyComponent = __decorate([
|
|
1150
|
+
core.Component({
|
|
1151
|
+
template: "<router-outlet></router-outlet>"
|
|
1152
|
+
})
|
|
1153
|
+
], EmptyComponent);
|
|
1154
|
+
return EmptyComponent;
|
|
1155
|
+
}());
|
|
1156
|
+
var routes = [
|
|
1157
|
+
{
|
|
1158
|
+
path: "exclusions-list",
|
|
1159
|
+
component: EmptyComponent,
|
|
1160
|
+
canActivate: [
|
|
1161
|
+
ExclusionsListFeatureRoutingGuard
|
|
1162
|
+
],
|
|
1163
|
+
resolve: {
|
|
1164
|
+
allPermissions: ExclusionsListFeatureRoutingPermissionResolver,
|
|
1165
|
+
localeConfig: ExclusionsListFeatureRoutingLocaleResolver,
|
|
1166
|
+
routeTitle: ExclusionsListFeatureRoutingListTitleResolver
|
|
1167
|
+
},
|
|
1168
|
+
children: [
|
|
1169
|
+
{
|
|
1170
|
+
path: ":entityName",
|
|
1171
|
+
component: ExclusionsListComponent
|
|
1172
|
+
}
|
|
1173
|
+
]
|
|
1174
|
+
}
|
|
1175
|
+
];
|
|
1176
|
+
var ExclusionsListFeatureRouting = /** @class */ (function () {
|
|
1177
|
+
function ExclusionsListFeatureRouting() {
|
|
1178
|
+
}
|
|
1179
|
+
ExclusionsListFeatureRouting = __decorate([
|
|
1180
|
+
core.NgModule({
|
|
1181
|
+
imports: [
|
|
1182
|
+
router.RouterModule.forChild(routes)
|
|
1183
|
+
],
|
|
1184
|
+
exports: [
|
|
1185
|
+
router.RouterModule
|
|
1186
|
+
],
|
|
1187
|
+
providers: [
|
|
1188
|
+
ExclusionsListFeatureRoutingGuard,
|
|
1189
|
+
ExclusionsListFeatureRoutingPermissionResolver,
|
|
1190
|
+
ExclusionsListFeatureRoutingLocaleResolver,
|
|
1191
|
+
ExclusionsListFeatureRoutingListTitleResolver
|
|
1192
|
+
],
|
|
1193
|
+
declarations: [
|
|
1194
|
+
EmptyComponent
|
|
1195
|
+
]
|
|
1196
|
+
})
|
|
1197
|
+
], ExclusionsListFeatureRouting);
|
|
1198
|
+
return ExclusionsListFeatureRouting;
|
|
1199
|
+
}());
|
|
1200
|
+
|
|
1201
|
+
var ExclusionsListModule = /** @class */ (function () {
|
|
1202
|
+
function ExclusionsListModule() {
|
|
1203
|
+
}
|
|
1204
|
+
ExclusionsListModule = __decorate([
|
|
1205
|
+
core.NgModule({
|
|
1206
|
+
imports: [
|
|
1207
|
+
forms.FormsModule,
|
|
1208
|
+
forms.ReactiveFormsModule,
|
|
1209
|
+
core$1.TranslateModule,
|
|
1210
|
+
common.CommonModule,
|
|
1211
|
+
angularComponents.ControlErrorsModule,
|
|
1212
|
+
angularComponents.ButtonModule,
|
|
1213
|
+
panel.PanelModule,
|
|
1214
|
+
inputtext.InputTextModule,
|
|
1215
|
+
angularComponents.InfoSignModule,
|
|
1216
|
+
confirmdialog.ConfirmDialogModule,
|
|
1217
|
+
dialog.DialogModule,
|
|
1218
|
+
table.TableModule,
|
|
1219
|
+
angularComponents.TableModule,
|
|
1220
|
+
angularComponents.LoadingStateModule,
|
|
1221
|
+
angularComponents.EmptyStateModule,
|
|
1222
|
+
angularComponents.DynamicFormModule,
|
|
1223
|
+
angularComponents.TokenListModule,
|
|
1224
|
+
angularComponents.LocaleModule.forChild(),
|
|
1225
|
+
ExclusionDetailsModule,
|
|
1226
|
+
ExclusionsListFeatureRouting
|
|
1227
|
+
],
|
|
1228
|
+
declarations: [ExclusionsListComponent],
|
|
1229
|
+
exports: [ExclusionsListComponent],
|
|
1230
|
+
entryComponents: [ExclusionsListComponent]
|
|
1231
|
+
})
|
|
1232
|
+
], ExclusionsListModule);
|
|
1233
|
+
return ExclusionsListModule;
|
|
1234
|
+
}());
|
|
1235
|
+
|
|
712
1236
|
var LogicalDeleteModule = /** @class */ (function () {
|
|
713
1237
|
function LogicalDeleteModule() {
|
|
714
1238
|
}
|
|
@@ -733,13 +1257,25 @@
|
|
|
733
1257
|
return LogicalDeleteModule;
|
|
734
1258
|
}());
|
|
735
1259
|
|
|
1260
|
+
exports.EmptyComponent = EmptyComponent;
|
|
736
1261
|
exports.ExclusionDetailsComponent = ExclusionDetailsComponent;
|
|
737
1262
|
exports.ExclusionDetailsModule = ExclusionDetailsModule;
|
|
1263
|
+
exports.ExclusionsListComponent = ExclusionsListComponent;
|
|
1264
|
+
exports.ExclusionsListFeatureRouting = ExclusionsListFeatureRouting;
|
|
1265
|
+
exports.ExclusionsListFeatureRoutingGuard = ExclusionsListFeatureRoutingGuard;
|
|
1266
|
+
exports.ExclusionsListFeatureRoutingListTitleResolver = ExclusionsListFeatureRoutingListTitleResolver;
|
|
1267
|
+
exports.ExclusionsListFeatureRoutingLocaleResolver = ExclusionsListFeatureRoutingLocaleResolver;
|
|
1268
|
+
exports.ExclusionsListFeatureRoutingPermissionResolver = ExclusionsListFeatureRoutingPermissionResolver;
|
|
1269
|
+
exports.ExclusionsListModule = ExclusionsListModule;
|
|
738
1270
|
exports.LogicalDeleteModule = LogicalDeleteModule;
|
|
1271
|
+
exports.routes = routes;
|
|
739
1272
|
exports.ɵa = LogicalDeleteService;
|
|
740
1273
|
exports.ɵb = LogicalDeleteConfigService;
|
|
741
1274
|
exports.ɵc = ProjectConfigsInjectionToken;
|
|
742
|
-
exports.ɵe =
|
|
1275
|
+
exports.ɵe = ExclusionDetailsModule;
|
|
1276
|
+
exports.ɵf = ExclusionDetailsComponent;
|
|
1277
|
+
exports.ɵg = LogicalDeleteService;
|
|
1278
|
+
exports.ɵh = FilterService;
|
|
743
1279
|
|
|
744
1280
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
745
1281
|
|