@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 } 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) {
|
|
@@ -472,423 +467,6 @@ FilterService = __decorate([
|
|
|
472
467
|
Injectable()
|
|
473
468
|
], FilterService);
|
|
474
469
|
|
|
475
|
-
let ExclusionsListComponent = class ExclusionsListComponent {
|
|
476
|
-
constructor(route, translate, formBuilder, changeDetectorRef, logicalDeleteService, filterService, projectConfigs) {
|
|
477
|
-
this.route = route;
|
|
478
|
-
this.translate = translate;
|
|
479
|
-
this.formBuilder = formBuilder;
|
|
480
|
-
this.changeDetectorRef = changeDetectorRef;
|
|
481
|
-
this.logicalDeleteService = logicalDeleteService;
|
|
482
|
-
this.filterService = filterService;
|
|
483
|
-
this.projectConfigs = projectConfigs;
|
|
484
|
-
this.currentListParams = { page: 0, size: 10, sort: [], filterData: {} };
|
|
485
|
-
this.showLoader = false;
|
|
486
|
-
this.totalRecords = 0;
|
|
487
|
-
this.filtersPanelCollapsed = true;
|
|
488
|
-
this.searchTokens = [];
|
|
489
|
-
this.serverError = false;
|
|
490
|
-
this.ngUnsubscribe = new Subject();
|
|
491
|
-
}
|
|
492
|
-
ngOnInit() {
|
|
493
|
-
this.filterFormGroup = this.getFormBuilder();
|
|
494
|
-
this.filterFields = this.getFilterFields();
|
|
495
|
-
this.gridColumns = this.getGridColumns();
|
|
496
|
-
this.route.data
|
|
497
|
-
.pipe(takeUntil(this.ngUnsubscribe))
|
|
498
|
-
.subscribe((data) => {
|
|
499
|
-
this.locale = data.localeConfig;
|
|
500
|
-
});
|
|
501
|
-
this.route.params
|
|
502
|
-
.pipe(takeUntil(this.ngUnsubscribe))
|
|
503
|
-
.subscribe((params) => {
|
|
504
|
-
this.entityName = params.entityName;
|
|
505
|
-
});
|
|
506
|
-
this.route.queryParams
|
|
507
|
-
.pipe(takeUntil(this.ngUnsubscribe))
|
|
508
|
-
.subscribe((queryParams) => {
|
|
509
|
-
this.entityDescription = queryParams.entityDescription;
|
|
510
|
-
});
|
|
511
|
-
}
|
|
512
|
-
ngOnDestroy() {
|
|
513
|
-
this.ngUnsubscribe.next();
|
|
514
|
-
this.ngUnsubscribe.complete();
|
|
515
|
-
}
|
|
516
|
-
getFormBuilder() {
|
|
517
|
-
return this.formBuilder.group({
|
|
518
|
-
description: [undefined, Validators.compose([])],
|
|
519
|
-
state: [undefined, Validators.compose([])],
|
|
520
|
-
startDate: [{ value: undefined, disabled: false }, Validators.compose([])],
|
|
521
|
-
endDate: [{ value: undefined, disabled: false }, Validators.compose([])]
|
|
522
|
-
});
|
|
523
|
-
}
|
|
524
|
-
getGridColumns() {
|
|
525
|
-
return [
|
|
526
|
-
{
|
|
527
|
-
field: "description",
|
|
528
|
-
attributes: ['description'],
|
|
529
|
-
header: this.translate.instant(`${this.projectConfigs.getTranslationPrefix()}.logical_delete_description`),
|
|
530
|
-
type: EnumColumnFieldType.STRING,
|
|
531
|
-
style: {
|
|
532
|
-
width: '300px'
|
|
533
|
-
}
|
|
534
|
-
},
|
|
535
|
-
{
|
|
536
|
-
field: "status",
|
|
537
|
-
attributes: ['status'],
|
|
538
|
-
header: this.translate.instant(`${this.projectConfigs.getTranslationPrefix()}.logical_delete_status`),
|
|
539
|
-
type: EnumColumnFieldType.ENUM,
|
|
540
|
-
enumPrefix: `${this.projectConfigs.getTranslationPrefix()}.logical_delete_enum_exclusion_process_status_`,
|
|
541
|
-
style: {
|
|
542
|
-
width: '100px'
|
|
543
|
-
},
|
|
544
|
-
badgeConfigs: [
|
|
545
|
-
{
|
|
546
|
-
enumValue: EnumExclusionProcessStatus.ERROR,
|
|
547
|
-
color: EnumBadgeColors.RED
|
|
548
|
-
},
|
|
549
|
-
{
|
|
550
|
-
enumValue: EnumExclusionProcessStatus.PENDING,
|
|
551
|
-
color: EnumBadgeColors.YELLOW
|
|
552
|
-
},
|
|
553
|
-
{
|
|
554
|
-
enumValue: EnumExclusionProcessStatus.PROCESSING,
|
|
555
|
-
color: EnumBadgeColors.BLUE
|
|
556
|
-
},
|
|
557
|
-
{
|
|
558
|
-
enumValue: EnumExclusionProcessStatus.SUCCESS,
|
|
559
|
-
color: EnumBadgeColors.GREEN
|
|
560
|
-
}
|
|
561
|
-
]
|
|
562
|
-
},
|
|
563
|
-
{
|
|
564
|
-
field: "startDate",
|
|
565
|
-
attributes: ['startDate'],
|
|
566
|
-
header: this.translate.instant(`${this.projectConfigs.getTranslationPrefix()}.logical_delete_start`),
|
|
567
|
-
type: EnumColumnFieldType.DATE,
|
|
568
|
-
dateFormat: "DD/MM/YYYY HH:mm",
|
|
569
|
-
style: {
|
|
570
|
-
width: '100px'
|
|
571
|
-
}
|
|
572
|
-
},
|
|
573
|
-
{
|
|
574
|
-
field: "finishDate",
|
|
575
|
-
attributes: ['finishDate'],
|
|
576
|
-
header: this.translate.instant(`${this.projectConfigs.getTranslationPrefix()}.logical_delete_finish`),
|
|
577
|
-
type: EnumColumnFieldType.DATE,
|
|
578
|
-
dateFormat: "DD/MM/YYYY HH:mm",
|
|
579
|
-
style: {
|
|
580
|
-
width: '100px'
|
|
581
|
-
}
|
|
582
|
-
}
|
|
583
|
-
];
|
|
584
|
-
}
|
|
585
|
-
getFilterFields() {
|
|
586
|
-
return [
|
|
587
|
-
new FormField({
|
|
588
|
-
type: FieldType.String,
|
|
589
|
-
name: "description",
|
|
590
|
-
label: this.translate.instant(`${this.projectConfigs.getTranslationPrefix()}.logical_delete_description`)
|
|
591
|
-
}),
|
|
592
|
-
new FormField({
|
|
593
|
-
type: FieldType.Enum,
|
|
594
|
-
name: "state",
|
|
595
|
-
label: this.translate.instant(`${this.projectConfigs.getTranslationPrefix()}.logical_delete_status`),
|
|
596
|
-
placeholder: this.translate.instant(`${this.projectConfigs.getTranslationPrefix()}.logical_delete_status`),
|
|
597
|
-
multiple: true,
|
|
598
|
-
options: [
|
|
599
|
-
{
|
|
600
|
-
label: this.translate.instant(`${this.projectConfigs.getTranslationPrefix()}.logical_delete_enum_exclusion_process_status_error`),
|
|
601
|
-
value: EnumExclusionProcessStatus.ERROR
|
|
602
|
-
},
|
|
603
|
-
{
|
|
604
|
-
label: this.translate.instant(`${this.projectConfigs.getTranslationPrefix()}.logical_delete_enum_exclusion_process_status_pending`),
|
|
605
|
-
value: EnumExclusionProcessStatus.PENDING
|
|
606
|
-
},
|
|
607
|
-
{
|
|
608
|
-
label: this.translate.instant(`${this.projectConfigs.getTranslationPrefix()}.logical_delete_enum_exclusion_process_status_processing`),
|
|
609
|
-
value: EnumExclusionProcessStatus.PROCESSING
|
|
610
|
-
},
|
|
611
|
-
{
|
|
612
|
-
label: this.translate.instant(`${this.projectConfigs.getTranslationPrefix()}.logical_delete_enum_exclusion_process_status_success`),
|
|
613
|
-
value: EnumExclusionProcessStatus.SUCCESS
|
|
614
|
-
}
|
|
615
|
-
]
|
|
616
|
-
}),
|
|
617
|
-
new FormField({
|
|
618
|
-
type: FieldType.Date,
|
|
619
|
-
name: "startDate",
|
|
620
|
-
label: this.translate.instant(`${this.projectConfigs.getTranslationPrefix()}.logical_delete_start`)
|
|
621
|
-
}),
|
|
622
|
-
new FormField({
|
|
623
|
-
type: FieldType.Date,
|
|
624
|
-
name: "endDate",
|
|
625
|
-
label: this.translate.instant(`${this.projectConfigs.getTranslationPrefix()}.logical_delete_finish`)
|
|
626
|
-
})
|
|
627
|
-
];
|
|
628
|
-
}
|
|
629
|
-
getEmptyStateTitle() {
|
|
630
|
-
return this.translate.instant(`${this.projectConfigs.getTranslationPrefix()}.logical_delete_empty_state_title`);
|
|
631
|
-
}
|
|
632
|
-
getEmptyStateDescription() {
|
|
633
|
-
return this.translate.instant(`${this.projectConfigs.getTranslationPrefix()}.logical_delete_empty_state_description`);
|
|
634
|
-
}
|
|
635
|
-
getTitle() {
|
|
636
|
-
return this.translate.instant(`${this.projectConfigs.getTranslationPrefix()}.logical_delete_list_title`);
|
|
637
|
-
}
|
|
638
|
-
getDetailsButtonTitle() {
|
|
639
|
-
return this.translate.instant(`${this.projectConfigs.getTranslationPrefix()}.logical_delete_details`);
|
|
640
|
-
}
|
|
641
|
-
onSearch() {
|
|
642
|
-
const filterData = this.filterFormGroup.getRawValue();
|
|
643
|
-
this.filtersPanelCollapsed = true;
|
|
644
|
-
this.resetGrid({ filterData });
|
|
645
|
-
}
|
|
646
|
-
onClear() {
|
|
647
|
-
this.filterFormGroup.reset();
|
|
648
|
-
const filterData = this.filterFormGroup.getRawValue();
|
|
649
|
-
this.resetGrid({ filterData });
|
|
650
|
-
}
|
|
651
|
-
onRemoveToken(token) {
|
|
652
|
-
this.filterFormGroup.get(token.id).setValue(undefined);
|
|
653
|
-
const filterData = this.filterFormGroup.getRawValue();
|
|
654
|
-
this.resetGrid({ filterData });
|
|
655
|
-
}
|
|
656
|
-
onGridChange(event) {
|
|
657
|
-
const size = event.rows;
|
|
658
|
-
const page = event.first / size;
|
|
659
|
-
const sort = event.multiSortMeta ? event.multiSortMeta : [];
|
|
660
|
-
return this.updateGrid({ page, size, sort });
|
|
661
|
-
}
|
|
662
|
-
getFilterTokens() {
|
|
663
|
-
const filterData = this.filterFormGroup.value;
|
|
664
|
-
return this.filterFields
|
|
665
|
-
.filter(({ name }) => filterData[name] != undefined && filterData[name] !== "")
|
|
666
|
-
.map(formField => this.filterService.createFilterTokens(formField, filterData[formField.name]));
|
|
667
|
-
}
|
|
668
|
-
getFilterQuery() {
|
|
669
|
-
const { filterData } = this.currentListParams;
|
|
670
|
-
const dateFields = ['startDate', 'endDate'];
|
|
671
|
-
let filterQuery = this.filterFields
|
|
672
|
-
.filter(({ name }) => !dateFields.includes(name))
|
|
673
|
-
.filter(({ name }) => filterData[name] != undefined)
|
|
674
|
-
.map(formField => this.filterService.createFilterString(formField, filterData[formField.name]))
|
|
675
|
-
.join(" and ");
|
|
676
|
-
if (filterData.startDate && filterData.endDate) {
|
|
677
|
-
const startDate = moment(filterData.startDate).format('YYYY-MM-DD');
|
|
678
|
-
const endDate = moment(filterData.endDate).format('YYYY-MM-DD');
|
|
679
|
-
const dateQuery = `startDate between '${startDate}' and '${endDate}'`;
|
|
680
|
-
if (filterQuery) {
|
|
681
|
-
filterQuery += ` and ${dateQuery}`;
|
|
682
|
-
}
|
|
683
|
-
else {
|
|
684
|
-
filterQuery = dateQuery;
|
|
685
|
-
}
|
|
686
|
-
}
|
|
687
|
-
return filterQuery;
|
|
688
|
-
}
|
|
689
|
-
updateGrid(listParams = {}) {
|
|
690
|
-
this.currentListParams = Object.assign(Object.assign({}, this.currentListParams), listParams);
|
|
691
|
-
const { page, size, sort } = this.currentListParams;
|
|
692
|
-
this.searchTokens = this.getFilterTokens();
|
|
693
|
-
const filterQuery = this.getFilterQuery();
|
|
694
|
-
const displayFields = [
|
|
695
|
-
'recordId',
|
|
696
|
-
...this.gridColumns.map(column => column.field)
|
|
697
|
-
];
|
|
698
|
-
this.listExclusions({ page, size, sort, filterQuery, displayFields });
|
|
699
|
-
}
|
|
700
|
-
listExclusions(params) {
|
|
701
|
-
this.showLoader = true;
|
|
702
|
-
this.serverError = false;
|
|
703
|
-
this.changeDetectorRef.detectChanges();
|
|
704
|
-
this.logicalDeleteService
|
|
705
|
-
.listExclusions(this.entityName, params)
|
|
706
|
-
.pipe(takeUntil(this.ngUnsubscribe), catchError((err) => {
|
|
707
|
-
if (err.status >= 500 && err.status < 600) {
|
|
708
|
-
this.serverError = true;
|
|
709
|
-
}
|
|
710
|
-
throw err;
|
|
711
|
-
}), finalize(() => this.showLoader = false))
|
|
712
|
-
.subscribe((list) => {
|
|
713
|
-
this.gridData = list.contents;
|
|
714
|
-
this.totalRecords = list.totalElements;
|
|
715
|
-
});
|
|
716
|
-
}
|
|
717
|
-
focusInput(elementId) {
|
|
718
|
-
const element = document.getElementById(`${elementId}`);
|
|
719
|
-
if (element) {
|
|
720
|
-
element.focus();
|
|
721
|
-
}
|
|
722
|
-
}
|
|
723
|
-
resetGrid(listParams) {
|
|
724
|
-
if (listParams)
|
|
725
|
-
this.currentListParams = Object.assign(Object.assign({}, this.currentListParams), listParams);
|
|
726
|
-
this.currentListParams = Object.assign(Object.assign({}, this.currentListParams), { page: 0, sort: [] });
|
|
727
|
-
this.table.reset();
|
|
728
|
-
}
|
|
729
|
-
onClickDetails(rowData) {
|
|
730
|
-
this.exclusionDetailsComponent.showDetails({
|
|
731
|
-
recordId: rowData.recordId,
|
|
732
|
-
entityDescription: this.entityDescription,
|
|
733
|
-
entityName: this.entityName
|
|
734
|
-
});
|
|
735
|
-
}
|
|
736
|
-
};
|
|
737
|
-
ExclusionsListComponent.ctorParameters = () => [
|
|
738
|
-
{ type: ActivatedRoute },
|
|
739
|
-
{ type: TranslateService },
|
|
740
|
-
{ type: FormBuilder },
|
|
741
|
-
{ type: ChangeDetectorRef },
|
|
742
|
-
{ type: LogicalDeleteService },
|
|
743
|
-
{ type: FilterService },
|
|
744
|
-
{ type: LogicalDeleteConfigService }
|
|
745
|
-
];
|
|
746
|
-
__decorate([
|
|
747
|
-
ViewChild("exclusionsTable")
|
|
748
|
-
], ExclusionsListComponent.prototype, "table", void 0);
|
|
749
|
-
__decorate([
|
|
750
|
-
ViewChild(ExclusionDetailsComponent)
|
|
751
|
-
], ExclusionsListComponent.prototype, "exclusionDetailsComponent", void 0);
|
|
752
|
-
ExclusionsListComponent = __decorate([
|
|
753
|
-
Component({
|
|
754
|
-
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>",
|
|
755
|
-
providers: []
|
|
756
|
-
})
|
|
757
|
-
], ExclusionsListComponent);
|
|
758
|
-
|
|
759
|
-
let ExclusionsListFeatureRoutingGuard = class ExclusionsListFeatureRoutingGuard {
|
|
760
|
-
canActivate() {
|
|
761
|
-
return true;
|
|
762
|
-
}
|
|
763
|
-
};
|
|
764
|
-
ExclusionsListFeatureRoutingGuard = __decorate([
|
|
765
|
-
Injectable()
|
|
766
|
-
], ExclusionsListFeatureRoutingGuard);
|
|
767
|
-
let ExclusionsListFeatureRoutingListTitleResolver = class ExclusionsListFeatureRoutingListTitleResolver {
|
|
768
|
-
constructor(translate, projectConfigs) {
|
|
769
|
-
this.translate = translate;
|
|
770
|
-
this.projectConfigs = projectConfigs;
|
|
771
|
-
}
|
|
772
|
-
resolve() {
|
|
773
|
-
return this.translate.get(`${this.projectConfigs.getTranslationPrefix()}.logical_delete_list_title`);
|
|
774
|
-
}
|
|
775
|
-
};
|
|
776
|
-
ExclusionsListFeatureRoutingListTitleResolver.ctorParameters = () => [
|
|
777
|
-
{ type: TranslateService },
|
|
778
|
-
{ type: LogicalDeleteConfigService }
|
|
779
|
-
];
|
|
780
|
-
ExclusionsListFeatureRoutingListTitleResolver = __decorate([
|
|
781
|
-
Injectable()
|
|
782
|
-
], ExclusionsListFeatureRoutingListTitleResolver);
|
|
783
|
-
let ExclusionsListFeatureRoutingPermissionResolver = class ExclusionsListFeatureRoutingPermissionResolver {
|
|
784
|
-
constructor(permissionsService) {
|
|
785
|
-
this.permissionsService = permissionsService;
|
|
786
|
-
}
|
|
787
|
-
resolve() {
|
|
788
|
-
return this.permissionsService.get();
|
|
789
|
-
}
|
|
790
|
-
};
|
|
791
|
-
ExclusionsListFeatureRoutingPermissionResolver.ctorParameters = () => [
|
|
792
|
-
{ type: PermissionsService }
|
|
793
|
-
];
|
|
794
|
-
ExclusionsListFeatureRoutingPermissionResolver = __decorate([
|
|
795
|
-
Injectable()
|
|
796
|
-
], ExclusionsListFeatureRoutingPermissionResolver);
|
|
797
|
-
let ExclusionsListFeatureRoutingLocaleResolver = class ExclusionsListFeatureRoutingLocaleResolver {
|
|
798
|
-
constructor(localeService) {
|
|
799
|
-
this.localeService = localeService;
|
|
800
|
-
}
|
|
801
|
-
resolve() {
|
|
802
|
-
return this.localeService.get();
|
|
803
|
-
}
|
|
804
|
-
};
|
|
805
|
-
ExclusionsListFeatureRoutingLocaleResolver.ctorParameters = () => [
|
|
806
|
-
{ type: LocaleService }
|
|
807
|
-
];
|
|
808
|
-
ExclusionsListFeatureRoutingLocaleResolver = __decorate([
|
|
809
|
-
Injectable()
|
|
810
|
-
], ExclusionsListFeatureRoutingLocaleResolver);
|
|
811
|
-
let EmptyComponent = class EmptyComponent {
|
|
812
|
-
};
|
|
813
|
-
EmptyComponent = __decorate([
|
|
814
|
-
Component({
|
|
815
|
-
template: `<router-outlet></router-outlet>`
|
|
816
|
-
})
|
|
817
|
-
], EmptyComponent);
|
|
818
|
-
const routes = [
|
|
819
|
-
{
|
|
820
|
-
path: "exclusions-list",
|
|
821
|
-
component: EmptyComponent,
|
|
822
|
-
canActivate: [
|
|
823
|
-
ExclusionsListFeatureRoutingGuard
|
|
824
|
-
],
|
|
825
|
-
resolve: {
|
|
826
|
-
allPermissions: ExclusionsListFeatureRoutingPermissionResolver,
|
|
827
|
-
localeConfig: ExclusionsListFeatureRoutingLocaleResolver,
|
|
828
|
-
routeTitle: ExclusionsListFeatureRoutingListTitleResolver
|
|
829
|
-
},
|
|
830
|
-
children: [
|
|
831
|
-
{
|
|
832
|
-
path: ":entityName",
|
|
833
|
-
component: ExclusionsListComponent
|
|
834
|
-
}
|
|
835
|
-
]
|
|
836
|
-
}
|
|
837
|
-
];
|
|
838
|
-
let ExclusionsListFeatureRouting = class ExclusionsListFeatureRouting {
|
|
839
|
-
};
|
|
840
|
-
ExclusionsListFeatureRouting = __decorate([
|
|
841
|
-
NgModule({
|
|
842
|
-
imports: [
|
|
843
|
-
RouterModule.forChild(routes)
|
|
844
|
-
],
|
|
845
|
-
exports: [
|
|
846
|
-
RouterModule
|
|
847
|
-
],
|
|
848
|
-
providers: [
|
|
849
|
-
ExclusionsListFeatureRoutingGuard,
|
|
850
|
-
ExclusionsListFeatureRoutingPermissionResolver,
|
|
851
|
-
ExclusionsListFeatureRoutingLocaleResolver,
|
|
852
|
-
ExclusionsListFeatureRoutingListTitleResolver
|
|
853
|
-
],
|
|
854
|
-
declarations: [
|
|
855
|
-
EmptyComponent
|
|
856
|
-
]
|
|
857
|
-
})
|
|
858
|
-
], ExclusionsListFeatureRouting);
|
|
859
|
-
|
|
860
|
-
let ExclusionsListModule = class ExclusionsListModule {
|
|
861
|
-
};
|
|
862
|
-
ExclusionsListModule = __decorate([
|
|
863
|
-
NgModule({
|
|
864
|
-
imports: [
|
|
865
|
-
FormsModule,
|
|
866
|
-
ReactiveFormsModule,
|
|
867
|
-
TranslateModule,
|
|
868
|
-
CommonModule,
|
|
869
|
-
ControlErrorsModule,
|
|
870
|
-
ButtonModule,
|
|
871
|
-
PanelModule,
|
|
872
|
-
InputTextModule,
|
|
873
|
-
InfoSignModule,
|
|
874
|
-
ConfirmDialogModule,
|
|
875
|
-
DialogModule,
|
|
876
|
-
TableModule,
|
|
877
|
-
TableModule$1,
|
|
878
|
-
LoadingStateModule,
|
|
879
|
-
EmptyStateModule,
|
|
880
|
-
DynamicFormModule,
|
|
881
|
-
TokenListModule,
|
|
882
|
-
LocaleModule.forChild(),
|
|
883
|
-
ExclusionDetailsModule,
|
|
884
|
-
ExclusionsListFeatureRouting
|
|
885
|
-
],
|
|
886
|
-
declarations: [ExclusionsListComponent],
|
|
887
|
-
exports: [ExclusionsListComponent],
|
|
888
|
-
entryComponents: [ExclusionsListComponent]
|
|
889
|
-
})
|
|
890
|
-
], ExclusionsListModule);
|
|
891
|
-
|
|
892
470
|
var LogicalDeleteModule_1;
|
|
893
471
|
let LogicalDeleteModule = LogicalDeleteModule_1 = class LogicalDeleteModule {
|
|
894
472
|
static forRoot(config) {
|
|
@@ -913,5 +491,5 @@ LogicalDeleteModule = LogicalDeleteModule_1 = __decorate([
|
|
|
913
491
|
* Generated bundle index. Do not edit.
|
|
914
492
|
*/
|
|
915
493
|
|
|
916
|
-
export {
|
|
494
|
+
export { ExclusionDetailsComponent, ExclusionDetailsModule, LogicalDeleteModule, LogicalDeleteService as ɵa, LogicalDeleteConfigService as ɵb, ProjectConfigsInjectionToken as ɵc, FilterService as ɵe };
|
|
917
495
|
//# sourceMappingURL=seniorsistemas-exclusion-process-component.js.map
|