@senior-gestao-pessoas/payroll-core 9.0.0-a4fbab57-d394-4e67-8b53-439fdbf2234f → 9.0.0-b3011616-b987-444e-a1cf-2d00ade74194

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.
@@ -3533,8 +3533,9 @@
3533
3533
  }());
3534
3534
 
3535
3535
  var InputRestAutoCompleteEmployeeModelComponent = /** @class */ (function () {
3536
- function InputRestAutoCompleteEmployeeModelComponent(service) {
3536
+ function InputRestAutoCompleteEmployeeModelComponent(service, activatedRoute) {
3537
3537
  this.service = service;
3538
+ this.activatedRoute = activatedRoute;
3538
3539
  this.forceSelection = true;
3539
3540
  this.keyName = 'name';
3540
3541
  this.onBlur = new core.EventEmitter();
@@ -3542,8 +3543,14 @@
3542
3543
  this.onClear = new core.EventEmitter();
3543
3544
  this.modelChange = new core.EventEmitter();
3544
3545
  this.suggestions = [];
3546
+ this.ngUnsubscribe = new rxjs.Subject();
3545
3547
  }
3546
- InputRestAutoCompleteEmployeeModelComponent.prototype.ngOnInit = function () { };
3548
+ InputRestAutoCompleteEmployeeModelComponent.prototype.ngOnInit = function () {
3549
+ var _this = this;
3550
+ this.activatedRoute.data.pipe(operators.takeUntil(this.ngUnsubscribe)).subscribe(function (data) {
3551
+ _this.useWorkflow = !!(data && data.useWorkflow);
3552
+ });
3553
+ };
3547
3554
  InputRestAutoCompleteEmployeeModelComponent.prototype.filterQuery = function (event) {
3548
3555
  var _this = this;
3549
3556
  var query = event.query;
@@ -3603,6 +3610,9 @@
3603
3610
  if (this.employeeType) {
3604
3611
  returnFilter['employeeType'] = this.employeeType;
3605
3612
  }
3613
+ if (this.useWorkflow) {
3614
+ returnFilter['timeTrackingResumeType'] = { key: "FIRED" };
3615
+ }
3606
3616
  return returnFilter;
3607
3617
  };
3608
3618
  /**
@@ -3631,7 +3641,8 @@
3631
3641
  configurable: true
3632
3642
  });
3633
3643
  InputRestAutoCompleteEmployeeModelComponent.ctorParameters = function () { return [
3634
- { type: InputRestAutoCompleteEmployeeModelService }
3644
+ { type: InputRestAutoCompleteEmployeeModelService },
3645
+ { type: router.ActivatedRoute }
3635
3646
  ]; };
3636
3647
  __decorate([
3637
3648
  core.Input()