@seniorsistemas/exclusion-process-component 0.0.1-40efacd8-8a6c-4d38-8102-8c977c14410a → 0.0.1-c049d10c-e93a-4d63-9c2a-b17bca40c324
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 +5 -463
- 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/public-api.js +1 -2
- package/esm2015/seniorsistemas-exclusion-process-component.js +2 -4
- package/esm5/public-api.js +1 -2
- package/esm5/seniorsistemas-exclusion-process-component.js +2 -4
- package/fesm2015/seniorsistemas-exclusion-process-component.js +5 -427
- package/fesm2015/seniorsistemas-exclusion-process-component.js.map +1 -1
- package/fesm5/seniorsistemas-exclusion-process-component.js +5 -456
- package/fesm5/seniorsistemas-exclusion-process-component.js.map +1 -1
- package/package.json +1 -1
- package/public-api.d.ts +0 -1
- package/seniorsistemas-exclusion-process-component.d.ts +1 -3
- package/seniorsistemas-exclusion-process-component.metadata.json +1 -1
- package/esm2015/exclusions-list/exclusions-list.component.js +0 -299
- package/esm2015/exclusions-list/exclusions-list.module.js +0 -47
- package/esm2015/exclusions-list/exclusions-list.routing.js +0 -115
- package/esm2015/exclusions-list/index.js +0 -4
- package/esm2015/services/index.js +0 -2
- package/esm5/exclusions-list/exclusions-list.component.js +0 -313
- package/esm5/exclusions-list/exclusions-list.module.js +0 -50
- package/esm5/exclusions-list/exclusions-list.routing.js +0 -127
- package/esm5/exclusions-list/index.js +0 -4
- package/esm5/services/index.js +0 -2
- package/exclusions-list/exclusions-list.component.d.ts +0 -59
- package/exclusions-list/exclusions-list.module.d.ts +0 -2
- package/exclusions-list/exclusions-list.routing.d.ts +0 -29
- package/exclusions-list/index.d.ts +0 -3
- package/services/index.d.ts +0 -1
|
@@ -1,21 +1,16 @@
|
|
|
1
1
|
import { __decorate, __param, __spread, __assign } from 'tslib';
|
|
2
2
|
import { CommonModule } from '@angular/common';
|
|
3
|
-
import { InjectionToken, Inject, Injectable, Output, Component, ViewEncapsulation, NgModule
|
|
3
|
+
import { InjectionToken, Inject, Injectable, Output, Component, ViewEncapsulation, NgModule } from '@angular/core';
|
|
4
4
|
import { PanelModule } from 'primeng/panel';
|
|
5
5
|
import { TableModule } from 'primeng/table';
|
|
6
|
-
import { EnumColumnFieldType, EnumBadgeColors, SidebarModule, ButtonModule, TableModule as TableModule$1, LoadingStateModule, LocaleModule, FieldType
|
|
6
|
+
import { EnumColumnFieldType, EnumBadgeColors, SidebarModule, ButtonModule, TableModule as TableModule$1, LoadingStateModule, LocaleModule, FieldType } from '@seniorsistemas/angular-components';
|
|
7
7
|
import * as moment from 'moment';
|
|
8
|
-
import { Router, ActivatedRoute
|
|
8
|
+
import { Router, ActivatedRoute } from '@angular/router';
|
|
9
9
|
import { throwError, Subject } from 'rxjs';
|
|
10
10
|
import { catchError, map, takeUntil, finalize } from 'rxjs/operators';
|
|
11
11
|
import { HttpParams, HttpClient } from '@angular/common/http';
|
|
12
|
-
import { TranslateService
|
|
12
|
+
import { TranslateService } from '@ngx-translate/core';
|
|
13
13
|
import { MessageService } from 'primeng/api';
|
|
14
|
-
import { Validators, FormBuilder, FormsModule, ReactiveFormsModule } from '@angular/forms';
|
|
15
|
-
import { DialogModule } from 'primeng/dialog';
|
|
16
|
-
import { ConfirmDialogModule } from 'primeng/confirmdialog';
|
|
17
|
-
import { InputTextModule } from 'primeng/inputtext';
|
|
18
|
-
import { PermissionsService } from '@seniorsistemas/platform-components';
|
|
19
14
|
|
|
20
15
|
var EnumExclusionProcessStatus;
|
|
21
16
|
(function (EnumExclusionProcessStatus) {
|
|
@@ -503,452 +498,6 @@ var FilterService = /** @class */ (function () {
|
|
|
503
498
|
return FilterService;
|
|
504
499
|
}());
|
|
505
500
|
|
|
506
|
-
var ExclusionsListComponent = /** @class */ (function () {
|
|
507
|
-
function ExclusionsListComponent(route, translate, formBuilder, changeDetectorRef, logicalDeleteService, filterService, projectConfigs) {
|
|
508
|
-
this.route = route;
|
|
509
|
-
this.translate = translate;
|
|
510
|
-
this.formBuilder = formBuilder;
|
|
511
|
-
this.changeDetectorRef = changeDetectorRef;
|
|
512
|
-
this.logicalDeleteService = logicalDeleteService;
|
|
513
|
-
this.filterService = filterService;
|
|
514
|
-
this.projectConfigs = projectConfigs;
|
|
515
|
-
this.currentListParams = { page: 0, size: 10, sort: [], filterData: {} };
|
|
516
|
-
this.showLoader = false;
|
|
517
|
-
this.totalRecords = 0;
|
|
518
|
-
this.filtersPanelCollapsed = true;
|
|
519
|
-
this.searchTokens = [];
|
|
520
|
-
this.serverError = false;
|
|
521
|
-
this.ngUnsubscribe = new Subject();
|
|
522
|
-
}
|
|
523
|
-
ExclusionsListComponent.prototype.ngOnInit = function () {
|
|
524
|
-
var _this = this;
|
|
525
|
-
this.filterFormGroup = this.getFormBuilder();
|
|
526
|
-
this.filterFields = this.getFilterFields();
|
|
527
|
-
this.gridColumns = this.getGridColumns();
|
|
528
|
-
this.route.data
|
|
529
|
-
.pipe(takeUntil(this.ngUnsubscribe))
|
|
530
|
-
.subscribe(function (data) {
|
|
531
|
-
_this.locale = data.localeConfig;
|
|
532
|
-
});
|
|
533
|
-
this.route.params
|
|
534
|
-
.pipe(takeUntil(this.ngUnsubscribe))
|
|
535
|
-
.subscribe(function (params) {
|
|
536
|
-
_this.entityName = params.entityName;
|
|
537
|
-
});
|
|
538
|
-
this.route.queryParams
|
|
539
|
-
.pipe(takeUntil(this.ngUnsubscribe))
|
|
540
|
-
.subscribe(function (queryParams) {
|
|
541
|
-
_this.entityDescription = queryParams.entityDescription;
|
|
542
|
-
});
|
|
543
|
-
};
|
|
544
|
-
ExclusionsListComponent.prototype.ngOnDestroy = function () {
|
|
545
|
-
this.ngUnsubscribe.next();
|
|
546
|
-
this.ngUnsubscribe.complete();
|
|
547
|
-
};
|
|
548
|
-
ExclusionsListComponent.prototype.getFormBuilder = function () {
|
|
549
|
-
return this.formBuilder.group({
|
|
550
|
-
description: [undefined, Validators.compose([])],
|
|
551
|
-
state: [undefined, Validators.compose([])],
|
|
552
|
-
startDate: [{ value: undefined, disabled: false }, Validators.compose([])],
|
|
553
|
-
endDate: [{ value: undefined, disabled: false }, Validators.compose([])]
|
|
554
|
-
});
|
|
555
|
-
};
|
|
556
|
-
ExclusionsListComponent.prototype.getGridColumns = function () {
|
|
557
|
-
return [
|
|
558
|
-
{
|
|
559
|
-
field: "description",
|
|
560
|
-
attributes: ['description'],
|
|
561
|
-
header: this.translate.instant(this.projectConfigs.getTranslationPrefix() + ".logical_delete_description"),
|
|
562
|
-
type: EnumColumnFieldType.STRING,
|
|
563
|
-
style: {
|
|
564
|
-
width: '300px'
|
|
565
|
-
}
|
|
566
|
-
},
|
|
567
|
-
{
|
|
568
|
-
field: "status",
|
|
569
|
-
attributes: ['status'],
|
|
570
|
-
header: this.translate.instant(this.projectConfigs.getTranslationPrefix() + ".logical_delete_status"),
|
|
571
|
-
type: EnumColumnFieldType.ENUM,
|
|
572
|
-
enumPrefix: this.projectConfigs.getTranslationPrefix() + ".logical_delete_enum_exclusion_process_status_",
|
|
573
|
-
style: {
|
|
574
|
-
width: '100px'
|
|
575
|
-
},
|
|
576
|
-
badgeConfigs: [
|
|
577
|
-
{
|
|
578
|
-
enumValue: EnumExclusionProcessStatus.ERROR,
|
|
579
|
-
color: EnumBadgeColors.RED
|
|
580
|
-
},
|
|
581
|
-
{
|
|
582
|
-
enumValue: EnumExclusionProcessStatus.PENDING,
|
|
583
|
-
color: EnumBadgeColors.YELLOW
|
|
584
|
-
},
|
|
585
|
-
{
|
|
586
|
-
enumValue: EnumExclusionProcessStatus.PROCESSING,
|
|
587
|
-
color: EnumBadgeColors.BLUE
|
|
588
|
-
},
|
|
589
|
-
{
|
|
590
|
-
enumValue: EnumExclusionProcessStatus.SUCCESS,
|
|
591
|
-
color: EnumBadgeColors.GREEN
|
|
592
|
-
}
|
|
593
|
-
]
|
|
594
|
-
},
|
|
595
|
-
{
|
|
596
|
-
field: "startDate",
|
|
597
|
-
attributes: ['startDate'],
|
|
598
|
-
header: this.translate.instant(this.projectConfigs.getTranslationPrefix() + ".logical_delete_start"),
|
|
599
|
-
type: EnumColumnFieldType.DATE,
|
|
600
|
-
dateFormat: "DD/MM/YYYY HH:mm",
|
|
601
|
-
style: {
|
|
602
|
-
width: '100px'
|
|
603
|
-
}
|
|
604
|
-
},
|
|
605
|
-
{
|
|
606
|
-
field: "finishDate",
|
|
607
|
-
attributes: ['finishDate'],
|
|
608
|
-
header: this.translate.instant(this.projectConfigs.getTranslationPrefix() + ".logical_delete_finish"),
|
|
609
|
-
type: EnumColumnFieldType.DATE,
|
|
610
|
-
dateFormat: "DD/MM/YYYY HH:mm",
|
|
611
|
-
style: {
|
|
612
|
-
width: '100px'
|
|
613
|
-
}
|
|
614
|
-
}
|
|
615
|
-
];
|
|
616
|
-
};
|
|
617
|
-
ExclusionsListComponent.prototype.getFilterFields = function () {
|
|
618
|
-
return [
|
|
619
|
-
new FormField({
|
|
620
|
-
type: FieldType.String,
|
|
621
|
-
name: "description",
|
|
622
|
-
label: this.translate.instant(this.projectConfigs.getTranslationPrefix() + ".logical_delete_description")
|
|
623
|
-
}),
|
|
624
|
-
new FormField({
|
|
625
|
-
type: FieldType.Enum,
|
|
626
|
-
name: "state",
|
|
627
|
-
label: this.translate.instant(this.projectConfigs.getTranslationPrefix() + ".logical_delete_status"),
|
|
628
|
-
placeholder: this.translate.instant(this.projectConfigs.getTranslationPrefix() + ".logical_delete_status"),
|
|
629
|
-
multiple: true,
|
|
630
|
-
options: [
|
|
631
|
-
{
|
|
632
|
-
label: this.translate.instant(this.projectConfigs.getTranslationPrefix() + ".logical_delete_enum_exclusion_process_status_error"),
|
|
633
|
-
value: EnumExclusionProcessStatus.ERROR
|
|
634
|
-
},
|
|
635
|
-
{
|
|
636
|
-
label: this.translate.instant(this.projectConfigs.getTranslationPrefix() + ".logical_delete_enum_exclusion_process_status_pending"),
|
|
637
|
-
value: EnumExclusionProcessStatus.PENDING
|
|
638
|
-
},
|
|
639
|
-
{
|
|
640
|
-
label: this.translate.instant(this.projectConfigs.getTranslationPrefix() + ".logical_delete_enum_exclusion_process_status_processing"),
|
|
641
|
-
value: EnumExclusionProcessStatus.PROCESSING
|
|
642
|
-
},
|
|
643
|
-
{
|
|
644
|
-
label: this.translate.instant(this.projectConfigs.getTranslationPrefix() + ".logical_delete_enum_exclusion_process_status_success"),
|
|
645
|
-
value: EnumExclusionProcessStatus.SUCCESS
|
|
646
|
-
}
|
|
647
|
-
]
|
|
648
|
-
}),
|
|
649
|
-
new FormField({
|
|
650
|
-
type: FieldType.Date,
|
|
651
|
-
name: "startDate",
|
|
652
|
-
label: this.translate.instant(this.projectConfigs.getTranslationPrefix() + ".logical_delete_start")
|
|
653
|
-
}),
|
|
654
|
-
new FormField({
|
|
655
|
-
type: FieldType.Date,
|
|
656
|
-
name: "endDate",
|
|
657
|
-
label: this.translate.instant(this.projectConfigs.getTranslationPrefix() + ".logical_delete_finish")
|
|
658
|
-
})
|
|
659
|
-
];
|
|
660
|
-
};
|
|
661
|
-
ExclusionsListComponent.prototype.getEmptyStateTitle = function () {
|
|
662
|
-
return this.translate.instant(this.projectConfigs.getTranslationPrefix() + ".logical_delete_empty_state_title");
|
|
663
|
-
};
|
|
664
|
-
ExclusionsListComponent.prototype.getEmptyStateDescription = function () {
|
|
665
|
-
return this.translate.instant(this.projectConfigs.getTranslationPrefix() + ".logical_delete_empty_state_description");
|
|
666
|
-
};
|
|
667
|
-
ExclusionsListComponent.prototype.getTitle = function () {
|
|
668
|
-
return this.translate.instant(this.projectConfigs.getTranslationPrefix() + ".logical_delete_list_title");
|
|
669
|
-
};
|
|
670
|
-
ExclusionsListComponent.prototype.getDetailsButtonTitle = function () {
|
|
671
|
-
return this.translate.instant(this.projectConfigs.getTranslationPrefix() + ".logical_delete_details");
|
|
672
|
-
};
|
|
673
|
-
ExclusionsListComponent.prototype.onSearch = function () {
|
|
674
|
-
var filterData = this.filterFormGroup.getRawValue();
|
|
675
|
-
this.filtersPanelCollapsed = true;
|
|
676
|
-
this.resetGrid({ filterData: filterData });
|
|
677
|
-
};
|
|
678
|
-
ExclusionsListComponent.prototype.onClear = function () {
|
|
679
|
-
this.filterFormGroup.reset();
|
|
680
|
-
var filterData = this.filterFormGroup.getRawValue();
|
|
681
|
-
this.resetGrid({ filterData: filterData });
|
|
682
|
-
};
|
|
683
|
-
ExclusionsListComponent.prototype.onRemoveToken = function (token) {
|
|
684
|
-
this.filterFormGroup.get(token.id).setValue(undefined);
|
|
685
|
-
var filterData = this.filterFormGroup.getRawValue();
|
|
686
|
-
this.resetGrid({ filterData: filterData });
|
|
687
|
-
};
|
|
688
|
-
ExclusionsListComponent.prototype.onGridChange = function (event) {
|
|
689
|
-
var size = event.rows;
|
|
690
|
-
var page = event.first / size;
|
|
691
|
-
var sort = event.multiSortMeta ? event.multiSortMeta : [];
|
|
692
|
-
return this.updateGrid({ page: page, size: size, sort: sort });
|
|
693
|
-
};
|
|
694
|
-
ExclusionsListComponent.prototype.getFilterTokens = function () {
|
|
695
|
-
var _this = this;
|
|
696
|
-
var filterData = this.filterFormGroup.value;
|
|
697
|
-
return this.filterFields
|
|
698
|
-
.filter(function (_a) {
|
|
699
|
-
var name = _a.name;
|
|
700
|
-
return filterData[name] != undefined && filterData[name] !== "";
|
|
701
|
-
})
|
|
702
|
-
.map(function (formField) { return _this.filterService.createFilterTokens(formField, filterData[formField.name]); });
|
|
703
|
-
};
|
|
704
|
-
ExclusionsListComponent.prototype.getFilterQuery = function () {
|
|
705
|
-
var _this = this;
|
|
706
|
-
var filterData = this.currentListParams.filterData;
|
|
707
|
-
var dateFields = ['startDate', 'endDate'];
|
|
708
|
-
var filterQuery = this.filterFields
|
|
709
|
-
.filter(function (_a) {
|
|
710
|
-
var name = _a.name;
|
|
711
|
-
return !dateFields.includes(name);
|
|
712
|
-
})
|
|
713
|
-
.filter(function (_a) {
|
|
714
|
-
var name = _a.name;
|
|
715
|
-
return filterData[name] != undefined;
|
|
716
|
-
})
|
|
717
|
-
.map(function (formField) { return _this.filterService.createFilterString(formField, filterData[formField.name]); })
|
|
718
|
-
.join(" and ");
|
|
719
|
-
if (filterData.startDate && filterData.endDate) {
|
|
720
|
-
var startDate = moment(filterData.startDate).format('YYYY-MM-DD');
|
|
721
|
-
var endDate = moment(filterData.endDate).format('YYYY-MM-DD');
|
|
722
|
-
var dateQuery = "startDate between '" + startDate + "' and '" + endDate + "'";
|
|
723
|
-
if (filterQuery) {
|
|
724
|
-
filterQuery += " and " + dateQuery;
|
|
725
|
-
}
|
|
726
|
-
else {
|
|
727
|
-
filterQuery = dateQuery;
|
|
728
|
-
}
|
|
729
|
-
}
|
|
730
|
-
return filterQuery;
|
|
731
|
-
};
|
|
732
|
-
ExclusionsListComponent.prototype.updateGrid = function (listParams) {
|
|
733
|
-
if (listParams === void 0) { listParams = {}; }
|
|
734
|
-
this.currentListParams = __assign(__assign({}, this.currentListParams), listParams);
|
|
735
|
-
var _a = this.currentListParams, page = _a.page, size = _a.size, sort = _a.sort;
|
|
736
|
-
this.searchTokens = this.getFilterTokens();
|
|
737
|
-
var filterQuery = this.getFilterQuery();
|
|
738
|
-
var displayFields = __spread([
|
|
739
|
-
'recordId'
|
|
740
|
-
], this.gridColumns.map(function (column) { return column.field; }));
|
|
741
|
-
this.listExclusions({ page: page, size: size, sort: sort, filterQuery: filterQuery, displayFields: displayFields });
|
|
742
|
-
};
|
|
743
|
-
ExclusionsListComponent.prototype.listExclusions = function (params) {
|
|
744
|
-
var _this = this;
|
|
745
|
-
this.showLoader = true;
|
|
746
|
-
this.serverError = false;
|
|
747
|
-
this.changeDetectorRef.detectChanges();
|
|
748
|
-
this.logicalDeleteService
|
|
749
|
-
.listExclusions(this.entityName, params)
|
|
750
|
-
.pipe(takeUntil(this.ngUnsubscribe), catchError(function (err) {
|
|
751
|
-
if (err.status >= 500 && err.status < 600) {
|
|
752
|
-
_this.serverError = true;
|
|
753
|
-
}
|
|
754
|
-
throw err;
|
|
755
|
-
}), finalize(function () { return _this.showLoader = false; }))
|
|
756
|
-
.subscribe(function (list) {
|
|
757
|
-
_this.gridData = list.contents;
|
|
758
|
-
_this.totalRecords = list.totalElements;
|
|
759
|
-
});
|
|
760
|
-
};
|
|
761
|
-
ExclusionsListComponent.prototype.focusInput = function (elementId) {
|
|
762
|
-
var element = document.getElementById("" + elementId);
|
|
763
|
-
if (element) {
|
|
764
|
-
element.focus();
|
|
765
|
-
}
|
|
766
|
-
};
|
|
767
|
-
ExclusionsListComponent.prototype.resetGrid = function (listParams) {
|
|
768
|
-
if (listParams)
|
|
769
|
-
this.currentListParams = __assign(__assign({}, this.currentListParams), listParams);
|
|
770
|
-
this.currentListParams = __assign(__assign({}, this.currentListParams), { page: 0, sort: [] });
|
|
771
|
-
this.table.reset();
|
|
772
|
-
};
|
|
773
|
-
ExclusionsListComponent.prototype.onClickDetails = function (rowData) {
|
|
774
|
-
this.exclusionDetailsComponent.showDetails({
|
|
775
|
-
recordId: rowData.recordId,
|
|
776
|
-
entityDescription: this.entityDescription,
|
|
777
|
-
entityName: this.entityName
|
|
778
|
-
});
|
|
779
|
-
};
|
|
780
|
-
ExclusionsListComponent.ctorParameters = function () { return [
|
|
781
|
-
{ type: ActivatedRoute },
|
|
782
|
-
{ type: TranslateService },
|
|
783
|
-
{ type: FormBuilder },
|
|
784
|
-
{ type: ChangeDetectorRef },
|
|
785
|
-
{ type: LogicalDeleteService },
|
|
786
|
-
{ type: FilterService },
|
|
787
|
-
{ type: LogicalDeleteConfigService }
|
|
788
|
-
]; };
|
|
789
|
-
__decorate([
|
|
790
|
-
ViewChild("exclusionsTable")
|
|
791
|
-
], ExclusionsListComponent.prototype, "table", void 0);
|
|
792
|
-
__decorate([
|
|
793
|
-
ViewChild(ExclusionDetailsComponent)
|
|
794
|
-
], ExclusionsListComponent.prototype, "exclusionDetailsComponent", void 0);
|
|
795
|
-
ExclusionsListComponent = __decorate([
|
|
796
|
-
Component({
|
|
797
|
-
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 {{ 'filters' | translate }}\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: 'error_invalid' | translate }\"\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]=\"'filter' | translate\"\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]=\"'clear' | translate\"\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=\"{{ 'error_server_title' | translate }}\"\n primaryActionLabel=\"{{ 'error_server_try_again' | translate }}\"\n (primaryAction)=\"resetGrid()\"\n description=\"{{ 'error_server_description' | 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\">{{'A\u00E7\u00F5es'}}</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>",
|
|
798
|
-
providers: []
|
|
799
|
-
})
|
|
800
|
-
], ExclusionsListComponent);
|
|
801
|
-
return ExclusionsListComponent;
|
|
802
|
-
}());
|
|
803
|
-
|
|
804
|
-
var ExclusionsListFeatureRoutingGuard = /** @class */ (function () {
|
|
805
|
-
function ExclusionsListFeatureRoutingGuard() {
|
|
806
|
-
}
|
|
807
|
-
ExclusionsListFeatureRoutingGuard.prototype.canActivate = function () {
|
|
808
|
-
return true;
|
|
809
|
-
};
|
|
810
|
-
ExclusionsListFeatureRoutingGuard = __decorate([
|
|
811
|
-
Injectable()
|
|
812
|
-
], ExclusionsListFeatureRoutingGuard);
|
|
813
|
-
return ExclusionsListFeatureRoutingGuard;
|
|
814
|
-
}());
|
|
815
|
-
var ExclusionsListFeatureRoutingListTitleResolver = /** @class */ (function () {
|
|
816
|
-
function ExclusionsListFeatureRoutingListTitleResolver(translate, projectConfigs) {
|
|
817
|
-
this.translate = translate;
|
|
818
|
-
this.projectConfigs = projectConfigs;
|
|
819
|
-
}
|
|
820
|
-
ExclusionsListFeatureRoutingListTitleResolver.prototype.resolve = function () {
|
|
821
|
-
return this.translate.get(this.projectConfigs.getTranslationPrefix() + ".logical_delete_list_title");
|
|
822
|
-
};
|
|
823
|
-
ExclusionsListFeatureRoutingListTitleResolver.ctorParameters = function () { return [
|
|
824
|
-
{ type: TranslateService },
|
|
825
|
-
{ type: LogicalDeleteConfigService }
|
|
826
|
-
]; };
|
|
827
|
-
ExclusionsListFeatureRoutingListTitleResolver = __decorate([
|
|
828
|
-
Injectable()
|
|
829
|
-
], ExclusionsListFeatureRoutingListTitleResolver);
|
|
830
|
-
return ExclusionsListFeatureRoutingListTitleResolver;
|
|
831
|
-
}());
|
|
832
|
-
var ExclusionsListFeatureRoutingPermissionResolver = /** @class */ (function () {
|
|
833
|
-
function ExclusionsListFeatureRoutingPermissionResolver(permissionsService) {
|
|
834
|
-
this.permissionsService = permissionsService;
|
|
835
|
-
}
|
|
836
|
-
ExclusionsListFeatureRoutingPermissionResolver.prototype.resolve = function () {
|
|
837
|
-
return this.permissionsService.get();
|
|
838
|
-
};
|
|
839
|
-
ExclusionsListFeatureRoutingPermissionResolver.ctorParameters = function () { return [
|
|
840
|
-
{ type: PermissionsService }
|
|
841
|
-
]; };
|
|
842
|
-
ExclusionsListFeatureRoutingPermissionResolver = __decorate([
|
|
843
|
-
Injectable()
|
|
844
|
-
], ExclusionsListFeatureRoutingPermissionResolver);
|
|
845
|
-
return ExclusionsListFeatureRoutingPermissionResolver;
|
|
846
|
-
}());
|
|
847
|
-
var ExclusionsListFeatureRoutingLocaleResolver = /** @class */ (function () {
|
|
848
|
-
function ExclusionsListFeatureRoutingLocaleResolver(localeService) {
|
|
849
|
-
this.localeService = localeService;
|
|
850
|
-
}
|
|
851
|
-
ExclusionsListFeatureRoutingLocaleResolver.prototype.resolve = function () {
|
|
852
|
-
return this.localeService.get();
|
|
853
|
-
};
|
|
854
|
-
ExclusionsListFeatureRoutingLocaleResolver.ctorParameters = function () { return [
|
|
855
|
-
{ type: LocaleService }
|
|
856
|
-
]; };
|
|
857
|
-
ExclusionsListFeatureRoutingLocaleResolver = __decorate([
|
|
858
|
-
Injectable()
|
|
859
|
-
], ExclusionsListFeatureRoutingLocaleResolver);
|
|
860
|
-
return ExclusionsListFeatureRoutingLocaleResolver;
|
|
861
|
-
}());
|
|
862
|
-
var EmptyComponent = /** @class */ (function () {
|
|
863
|
-
function EmptyComponent() {
|
|
864
|
-
}
|
|
865
|
-
EmptyComponent = __decorate([
|
|
866
|
-
Component({
|
|
867
|
-
template: "<router-outlet></router-outlet>"
|
|
868
|
-
})
|
|
869
|
-
], EmptyComponent);
|
|
870
|
-
return EmptyComponent;
|
|
871
|
-
}());
|
|
872
|
-
var routes = [
|
|
873
|
-
{
|
|
874
|
-
path: "exclusions-list",
|
|
875
|
-
component: EmptyComponent,
|
|
876
|
-
canActivate: [
|
|
877
|
-
ExclusionsListFeatureRoutingGuard
|
|
878
|
-
],
|
|
879
|
-
resolve: {
|
|
880
|
-
allPermissions: ExclusionsListFeatureRoutingPermissionResolver,
|
|
881
|
-
localeConfig: ExclusionsListFeatureRoutingLocaleResolver,
|
|
882
|
-
routeTitle: ExclusionsListFeatureRoutingListTitleResolver
|
|
883
|
-
},
|
|
884
|
-
children: [
|
|
885
|
-
{
|
|
886
|
-
path: ":entityName",
|
|
887
|
-
component: ExclusionsListComponent
|
|
888
|
-
}
|
|
889
|
-
]
|
|
890
|
-
}
|
|
891
|
-
];
|
|
892
|
-
var ExclusionsListFeatureRouting = /** @class */ (function () {
|
|
893
|
-
function ExclusionsListFeatureRouting() {
|
|
894
|
-
}
|
|
895
|
-
ExclusionsListFeatureRouting = __decorate([
|
|
896
|
-
NgModule({
|
|
897
|
-
imports: [
|
|
898
|
-
RouterModule.forChild(routes)
|
|
899
|
-
],
|
|
900
|
-
exports: [
|
|
901
|
-
RouterModule
|
|
902
|
-
],
|
|
903
|
-
providers: [
|
|
904
|
-
ExclusionsListFeatureRoutingGuard,
|
|
905
|
-
ExclusionsListFeatureRoutingPermissionResolver,
|
|
906
|
-
ExclusionsListFeatureRoutingLocaleResolver,
|
|
907
|
-
ExclusionsListFeatureRoutingListTitleResolver
|
|
908
|
-
],
|
|
909
|
-
declarations: [
|
|
910
|
-
EmptyComponent
|
|
911
|
-
]
|
|
912
|
-
})
|
|
913
|
-
], ExclusionsListFeatureRouting);
|
|
914
|
-
return ExclusionsListFeatureRouting;
|
|
915
|
-
}());
|
|
916
|
-
|
|
917
|
-
var ExclusionsListModule = /** @class */ (function () {
|
|
918
|
-
function ExclusionsListModule() {
|
|
919
|
-
}
|
|
920
|
-
ExclusionsListModule = __decorate([
|
|
921
|
-
NgModule({
|
|
922
|
-
imports: [
|
|
923
|
-
FormsModule,
|
|
924
|
-
ReactiveFormsModule,
|
|
925
|
-
TranslateModule,
|
|
926
|
-
CommonModule,
|
|
927
|
-
ControlErrorsModule,
|
|
928
|
-
ButtonModule,
|
|
929
|
-
PanelModule,
|
|
930
|
-
InputTextModule,
|
|
931
|
-
InfoSignModule,
|
|
932
|
-
ConfirmDialogModule,
|
|
933
|
-
DialogModule,
|
|
934
|
-
TableModule,
|
|
935
|
-
TableModule$1,
|
|
936
|
-
LoadingStateModule,
|
|
937
|
-
EmptyStateModule,
|
|
938
|
-
DynamicFormModule,
|
|
939
|
-
TokenListModule,
|
|
940
|
-
LocaleModule.forChild(),
|
|
941
|
-
ExclusionDetailsModule,
|
|
942
|
-
ExclusionsListFeatureRouting
|
|
943
|
-
],
|
|
944
|
-
declarations: [ExclusionsListComponent],
|
|
945
|
-
exports: [ExclusionsListComponent],
|
|
946
|
-
entryComponents: [ExclusionsListComponent]
|
|
947
|
-
})
|
|
948
|
-
], ExclusionsListModule);
|
|
949
|
-
return ExclusionsListModule;
|
|
950
|
-
}());
|
|
951
|
-
|
|
952
501
|
var LogicalDeleteModule = /** @class */ (function () {
|
|
953
502
|
function LogicalDeleteModule() {
|
|
954
503
|
}
|
|
@@ -977,5 +526,5 @@ var LogicalDeleteModule = /** @class */ (function () {
|
|
|
977
526
|
* Generated bundle index. Do not edit.
|
|
978
527
|
*/
|
|
979
528
|
|
|
980
|
-
export {
|
|
529
|
+
export { ExclusionDetailsComponent, ExclusionDetailsModule, LogicalDeleteModule, LogicalDeleteService as ɵa, LogicalDeleteConfigService as ɵb, ProjectConfigsInjectionToken as ɵc, FilterService as ɵe };
|
|
981
530
|
//# sourceMappingURL=seniorsistemas-exclusion-process-component.js.map
|