@senior-gestao-pessoas/payroll-core 9.0.0 → 9.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.
@@ -3530,8 +3530,9 @@
3530
3530
  }());
3531
3531
 
3532
3532
  var InputRestAutoCompleteEmployeeModelComponent = /** @class */ (function () {
3533
- function InputRestAutoCompleteEmployeeModelComponent(service) {
3533
+ function InputRestAutoCompleteEmployeeModelComponent(service, activatedRoute) {
3534
3534
  this.service = service;
3535
+ this.activatedRoute = activatedRoute;
3535
3536
  this.forceSelection = true;
3536
3537
  this.keyName = 'name';
3537
3538
  this.onBlur = new core.EventEmitter();
@@ -3539,8 +3540,14 @@
3539
3540
  this.onClear = new core.EventEmitter();
3540
3541
  this.modelChange = new core.EventEmitter();
3541
3542
  this.suggestions = [];
3543
+ this.ngUnsubscribe = new rxjs.Subject();
3542
3544
  }
3543
- InputRestAutoCompleteEmployeeModelComponent.prototype.ngOnInit = function () { };
3545
+ InputRestAutoCompleteEmployeeModelComponent.prototype.ngOnInit = function () {
3546
+ var _this = this;
3547
+ this.activatedRoute.data.pipe(operators.takeUntil(this.ngUnsubscribe)).subscribe(function (data) {
3548
+ _this.useWorkflow = !!(data && data.useWorkflow);
3549
+ });
3550
+ };
3544
3551
  InputRestAutoCompleteEmployeeModelComponent.prototype.filterQuery = function (event) {
3545
3552
  var _this = this;
3546
3553
  var query = event.query;
@@ -3600,6 +3607,13 @@
3600
3607
  if (this.employeeType) {
3601
3608
  returnFilter['employeeType'] = this.employeeType;
3602
3609
  }
3610
+ /**
3611
+ * If para uso do BPO
3612
+ * Serve para tirar os colaboradores demitidos do dropbox do autocomplete
3613
+ */
3614
+ if (this.useWorkflow) {
3615
+ returnFilter['timeTrackingResumeType'] = { key: "FIRED" };
3616
+ }
3603
3617
  return returnFilter;
3604
3618
  };
3605
3619
  /**
@@ -3628,7 +3642,8 @@
3628
3642
  configurable: true
3629
3643
  });
3630
3644
  InputRestAutoCompleteEmployeeModelComponent.ctorParameters = function () { return [
3631
- { type: InputRestAutoCompleteEmployeeModelService }
3645
+ { type: InputRestAutoCompleteEmployeeModelService },
3646
+ { type: router.ActivatedRoute }
3632
3647
  ]; };
3633
3648
  __decorate([
3634
3649
  core.Input()