@senior-gestao-pessoas/payroll-core 9.2.0-2878782e-f402-4a82-a001-6491bdb0f359 → 9.2.0-f1576e5d-10f9-432e-b073-1aa58ae3cbc8

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.
Files changed (25) hide show
  1. package/bundles/senior-gestao-pessoas-payroll-core.umd.js +0 -284
  2. package/bundles/senior-gestao-pessoas-payroll-core.umd.js.map +1 -1
  3. package/bundles/senior-gestao-pessoas-payroll-core.umd.min.js +1 -1
  4. package/bundles/senior-gestao-pessoas-payroll-core.umd.min.js.map +1 -1
  5. package/esm2015/public_api.js +1 -2
  6. package/esm5/public_api.js +1 -2
  7. package/fesm2015/senior-gestao-pessoas-payroll-core.js +1 -257
  8. package/fesm2015/senior-gestao-pessoas-payroll-core.js.map +1 -1
  9. package/fesm5/senior-gestao-pessoas-payroll-core.js +1 -282
  10. package/fesm5/senior-gestao-pessoas-payroll-core.js.map +1 -1
  11. package/package.json +1 -1
  12. package/public_api.d.ts +0 -1
  13. package/senior-gestao-pessoas-payroll-core.metadata.json +1 -1
  14. package/components/historical-pix-account-list/historical-pix-account-list.component.d.ts +0 -49
  15. package/components/historical-pix-account-list/historical-pix-account-list.module.d.ts +0 -2
  16. package/components/historical-pix-account-list/historical-pix-account-list.service.d.ts +0 -9
  17. package/components/historical-pix-account-list/index.d.ts +0 -3
  18. package/esm2015/components/historical-pix-account-list/historical-pix-account-list.component.js +0 -215
  19. package/esm2015/components/historical-pix-account-list/historical-pix-account-list.module.js +0 -39
  20. package/esm2015/components/historical-pix-account-list/historical-pix-account-list.service.js +0 -35
  21. package/esm2015/components/historical-pix-account-list/index.js +0 -4
  22. package/esm5/components/historical-pix-account-list/historical-pix-account-list.component.js +0 -235
  23. package/esm5/components/historical-pix-account-list/historical-pix-account-list.module.js +0 -42
  24. package/esm5/components/historical-pix-account-list/historical-pix-account-list.service.js +0 -37
  25. package/esm5/components/historical-pix-account-list/index.js +0 -4
@@ -10368,287 +10368,6 @@
10368
10368
  return HistoricalPixAccountModule;
10369
10369
  }());
10370
10370
 
10371
- var HistoricalPixAccountListService = /** @class */ (function () {
10372
- function HistoricalPixAccountListService(http, httpClient) {
10373
- this.http = http;
10374
- this.httpClient = httpClient;
10375
- }
10376
- HistoricalPixAccountListService.prototype.remove = function (id, dateWhen, service, dependentId) {
10377
- if (service === void 0) { service = exports.ServiceType.PAYROLL; }
10378
- if (service === exports.ServiceType.DEPENDENT) {
10379
- return this.httpClient
10380
- .post("hcm/dependent/queries/historicalDependentJudicialPensionPixDelete", {
10381
- dependentId: dependentId,
10382
- dateWhen: dateWhen,
10383
- });
10384
- }
10385
- else {
10386
- return this.http.post("actions/historicalEmployeePixDelete", {
10387
- employeeId: id,
10388
- dateWhen: dateWhen
10389
- });
10390
- }
10391
- };
10392
- HistoricalPixAccountListService.ctorParameters = function () { return [
10393
- { type: HttpClientService },
10394
- { type: http.HttpClient }
10395
- ]; };
10396
- HistoricalPixAccountListService = __decorate([
10397
- core.Injectable()
10398
- ], HistoricalPixAccountListService);
10399
- return HistoricalPixAccountListService;
10400
- }());
10401
-
10402
- var moment$e = moment_;
10403
- var HistoricalPixAccountListComponent = /** @class */ (function () {
10404
- function HistoricalPixAccountListComponent(confirmationService, translateService, activatedRoute, cd, router, messageService, historicalPixAccountListService) {
10405
- this.confirmationService = confirmationService;
10406
- this.translateService = translateService;
10407
- this.activatedRoute = activatedRoute;
10408
- this.cd = cd;
10409
- this.router = router;
10410
- this.messageService = messageService;
10411
- this.historicalPixAccountListService = historicalPixAccountListService;
10412
- this.endPoint = "hcm/payroll/queries/historicalEmployeePixQuery";
10413
- this.keyPayload = "historicalDependentJudicialPensionPix";
10414
- this.withSidebar = true;
10415
- this.enableView = new core.EventEmitter();
10416
- this.ngUnsubscribe = new rxjs.Subject();
10417
- this.loading = true;
10418
- this.columns = [
10419
- {
10420
- label: this.translateService.instant("hcm.payroll.historical_pix_account_label_date_change"),
10421
- field: "dateChange",
10422
- },
10423
- {
10424
- label: this.translateService.instant("hcm.payroll.historical_pix_account_label_pix_key_type"),
10425
- field: "pixKeyType.value",
10426
- },
10427
- {
10428
- label: this.translateService.instant("hcm.payroll.historical_pix_account_label_pix_key"),
10429
- field: "pixKey",
10430
- },
10431
- {
10432
- label: this.translateService.instant("hcm.payroll.historical_pix_account_label_percentage"),
10433
- field: "percentage",
10434
- },
10435
- ];
10436
- }
10437
- HistoricalPixAccountListComponent.prototype.ngOnInit = function () {
10438
- this.initParameters = { employeeId: this.employeeId, dependentId: this.dependentId };
10439
- };
10440
- HistoricalPixAccountListComponent.prototype.ngOnDestroy = function () {
10441
- this.ngUnsubscribe.next();
10442
- this.ngUnsubscribe.complete();
10443
- };
10444
- HistoricalPixAccountListComponent.prototype.ngAfterViewInit = function () {
10445
- this.cd.detectChanges();
10446
- };
10447
- HistoricalPixAccountListComponent.prototype.onLazyLoad = function (payload) {
10448
- var _this = this;
10449
- payload.forEach(function (value) {
10450
- value.dateChange = moment$e(value.dateChange).format(_this.dateFormat);
10451
- });
10452
- this.onGridLoad(payload);
10453
- this.loading = false;
10454
- };
10455
- HistoricalPixAccountListComponent.prototype.getMenuActions = function (rowData) {
10456
- var _this = this;
10457
- return [
10458
- {
10459
- label: this.translateService.instant("hcm.payroll.employees_image_cropper_view"),
10460
- command: function () {
10461
- var dateChange = rowData && rowData.dateChange && moment$e(rowData.dateChange, _this.dateFormat).format("YYYY-MM-DD");
10462
- if (_this.withSidebar)
10463
- _this.router.navigate(["historical-pix-account/" + dateChange], {
10464
- relativeTo: _this.activatedRoute,
10465
- });
10466
- else
10467
- _this.enableView.emit(dateChange);
10468
- },
10469
- },
10470
- {
10471
- label: this.translateService.instant("hcm.payroll.delete"),
10472
- command: function () {
10473
- if (_this.isAllowToDeleteHistorical && rowData) {
10474
- _this.delete(rowData.id, rowData.dateChange);
10475
- }
10476
- else {
10477
- _this.messageService.add({
10478
- severity: "error",
10479
- summary: _this.translateService.instant("hcm.payroll.error"),
10480
- detail: _this.translateService.instant("hcm.payroll.permission_error_not_allowed"),
10481
- });
10482
- }
10483
- },
10484
- },
10485
- ];
10486
- };
10487
- HistoricalPixAccountListComponent.prototype.delete = function (id, dateChange) {
10488
- var _this = this;
10489
- if (id === this.lastRecord.id) {
10490
- var dateChangeToDto_1 = moment$e(dateChange, this.dateFormat).format("YYYY-MM-DD");
10491
- this.confirmationService.confirm({
10492
- message: this.translateService.instant("hcm.payroll.employees_movimentation_historical_pix_account_question_confirm_delete") + "?",
10493
- accept: function () {
10494
- _this.loading = true;
10495
- var service = _this.withSidebar ? exports.ServiceType.PAYROLL : exports.ServiceType.DEPENDENT;
10496
- _this.historicalPixAccountListService
10497
- .remove(_this.employeeId, dateChangeToDto_1, service, _this.dependentId)
10498
- .pipe(operators.takeUntil(_this.ngUnsubscribe))
10499
- .subscribe(function () {
10500
- _this.messageService.add({
10501
- severity: "success",
10502
- summary: _this.translateService.instant("hcm.payroll.success"),
10503
- detail: _this.translateService.instant("hcm.payroll.employees_movimentation_historical_pix_account_remove"),
10504
- });
10505
- _this.parameters = (_this.parameters && __assign({}, _this.parameters)) || {};
10506
- }, function () {
10507
- _this.messageService.add({
10508
- severity: "error",
10509
- summary: _this.translateService.instant("hcm.payroll.error"),
10510
- detail: _this.translateService.instant("hcm.payroll.employees_movimentation_historical_pix_account_error_remove"),
10511
- });
10512
- _this.loading = false;
10513
- });
10514
- },
10515
- });
10516
- }
10517
- else {
10518
- this.messageService.add({
10519
- severity: "error",
10520
- summary: this.translateService.instant("hcm.payroll.error"),
10521
- detail: this.translateService.instant("hcm.payroll.not_allowed_delete_last"),
10522
- });
10523
- }
10524
- };
10525
- HistoricalPixAccountListComponent.prototype.add = function () {
10526
- if (this.isAllowToAddHistorical) {
10527
- this.router.navigate(["historical-pix-account-new"], {
10528
- relativeTo: this.activatedRoute,
10529
- });
10530
- }
10531
- else {
10532
- this.messageService.add({
10533
- severity: "error",
10534
- summary: this.translateService.instant("hcm.payroll.error"),
10535
- detail: this.translateService.instant("hcm.payroll.permission_error_not_allowed"),
10536
- });
10537
- }
10538
- };
10539
- HistoricalPixAccountListComponent.prototype.onGridLoad = function (payload) {
10540
- if (payload && payload.length) {
10541
- this.lastRecord = payload[0];
10542
- }
10543
- };
10544
- Object.defineProperty(HistoricalPixAccountListComponent.prototype, "isAllowToAddHistorical", {
10545
- get: function () {
10546
- return (this.permission["incluir"]);
10547
- },
10548
- enumerable: true,
10549
- configurable: true
10550
- });
10551
- Object.defineProperty(HistoricalPixAccountListComponent.prototype, "isAllowToDeleteHistorical", {
10552
- get: function () {
10553
- return (this.permission["excluir"]);
10554
- },
10555
- enumerable: true,
10556
- configurable: true
10557
- });
10558
- Object.defineProperty(HistoricalPixAccountListComponent.prototype, "scopedActions", {
10559
- get: function () {
10560
- return this.getMenuActions.bind(this);
10561
- },
10562
- enumerable: true,
10563
- configurable: true
10564
- });
10565
- Object.defineProperty(HistoricalPixAccountListComponent.prototype, "reloadList", {
10566
- set: function (condition) {
10567
- if (condition) {
10568
- this.loading = true;
10569
- this.parameters = (this.parameters && __assign({}, this.parameters)) || {};
10570
- }
10571
- },
10572
- enumerable: true,
10573
- configurable: true
10574
- });
10575
- HistoricalPixAccountListComponent.ctorParameters = function () { return [
10576
- { type: api.ConfirmationService },
10577
- { type: core$1.TranslateService },
10578
- { type: router.ActivatedRoute },
10579
- { type: core.ChangeDetectorRef },
10580
- { type: router.Router },
10581
- { type: api.MessageService },
10582
- { type: HistoricalPixAccountListService }
10583
- ]; };
10584
- __decorate([
10585
- core.ViewChild(angularComponents.CustomFieldsComponent, { static: false })
10586
- ], HistoricalPixAccountListComponent.prototype, "customFields", void 0);
10587
- __decorate([
10588
- core.Input()
10589
- ], HistoricalPixAccountListComponent.prototype, "permission", void 0);
10590
- __decorate([
10591
- core.Input()
10592
- ], HistoricalPixAccountListComponent.prototype, "employeeId", void 0);
10593
- __decorate([
10594
- core.Input()
10595
- ], HistoricalPixAccountListComponent.prototype, "dependentId", void 0);
10596
- __decorate([
10597
- core.Input()
10598
- ], HistoricalPixAccountListComponent.prototype, "dateFormat", void 0);
10599
- __decorate([
10600
- core.Input()
10601
- ], HistoricalPixAccountListComponent.prototype, "endPoint", void 0);
10602
- __decorate([
10603
- core.Input()
10604
- ], HistoricalPixAccountListComponent.prototype, "keyPayload", void 0);
10605
- __decorate([
10606
- core.Input()
10607
- ], HistoricalPixAccountListComponent.prototype, "withSidebar", void 0);
10608
- __decorate([
10609
- core.Output()
10610
- ], HistoricalPixAccountListComponent.prototype, "enableView", void 0);
10611
- __decorate([
10612
- core.Input()
10613
- ], HistoricalPixAccountListComponent.prototype, "reloadList", null);
10614
- HistoricalPixAccountListComponent = __decorate([
10615
- core.Component({
10616
- // tslint:disable-next-line:component-selector
10617
- selector: "c-historical-pix-account-list",
10618
- template: "<div class=\"ui-g\">\n <div class=\"ui-g-12\">\n <c-data-list-rest\n id=\"ta-historical-pix-account-list\"\n [columns]=\"columns\"\n actionLabel=\"{{ 'hcm.payroll.movimentation_generic_action' | translate }}\"\n emptyMessage=\"{{ 'hcm.payroll.admission_empty_message' | translate }}\"\n [endpoint]=\"endPoint\"\n singularMessageRecords=\"{{\n 'hcm.payroll.admission_register' | translate\n }}\"\n [actions]=\"scopedActions\"\n pluralMessageRecords=\"{{\n 'hcm.payroll.admission_registers' | translate\n }}\"\n [keyPayload]=\"keyPayload\"\n [lazy]=\"true\"\n (lazyLoad)=\"onLazyLoad($event)\"\n [(loading)]=\"loading\"\n [initParameters]=\"initParameters\"\n [parameters]=\"parameters\"\n [isSortable]=\"false\"\n ></c-data-list-rest>\n </div>\n</div>\n\n",
10619
- styles: [""]
10620
- })
10621
- ], HistoricalPixAccountListComponent);
10622
- return HistoricalPixAccountListComponent;
10623
- }());
10624
-
10625
- var HistoricalPixAccountListModule = /** @class */ (function () {
10626
- function HistoricalPixAccountListModule() {
10627
- }
10628
- HistoricalPixAccountListModule = __decorate([
10629
- core.NgModule({
10630
- imports: [
10631
- common.CommonModule,
10632
- forms.FormsModule,
10633
- http.HttpClientModule,
10634
- autocomplete.AutoCompleteModule,
10635
- SharedModule,
10636
- forms.ReactiveFormsModule,
10637
- table.TableModule,
10638
- angularComponents.ButtonModule,
10639
- tooltip.TooltipModule,
10640
- angularComponents.LoadingStateModule,
10641
- DataListRestModule,
10642
- confirmdialog.ConfirmDialogModule,
10643
- ],
10644
- declarations: [HistoricalPixAccountListComponent],
10645
- providers: [HistoricalPixAccountListService],
10646
- exports: [HistoricalPixAccountListComponent],
10647
- })
10648
- ], HistoricalPixAccountListModule);
10649
- return HistoricalPixAccountListModule;
10650
- }());
10651
-
10652
10371
  exports.AdmissionDraftSummaryComponent = AdmissionDraftSummaryComponent;
10653
10372
  exports.AdmissionDraftSummaryModule = AdmissionDraftSummaryModule;
10654
10373
  exports.AdmissionDraftSummaryService = AdmissionDraftSummaryService;
@@ -10690,9 +10409,6 @@
10690
10409
  exports.HistoricalBankAccountModule = HistoricalBankAccountModule;
10691
10410
  exports.HistoricalBankAccountService = HistoricalBankAccountService;
10692
10411
  exports.HistoricalPixAccountComponent = HistoricalPixAccountComponent;
10693
- exports.HistoricalPixAccountListComponent = HistoricalPixAccountListComponent;
10694
- exports.HistoricalPixAccountListModule = HistoricalPixAccountListModule;
10695
- exports.HistoricalPixAccountListService = HistoricalPixAccountListService;
10696
10412
  exports.HistoricalPixAccountModule = HistoricalPixAccountModule;
10697
10413
  exports.HistoricalPixAccountService = HistoricalPixAccountService;
10698
10414
  exports.HttpClientService = HttpClientService;