@senior-gestao-pessoas/payroll-core 9.0.0-5e88461d-2ff2-4ed9-a55b-9d1692fa1e06 → 9.0.0-61049a4f-3ca7-4e51-b067-b8e33a4dd965

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.
@@ -1132,9 +1132,6 @@ var EmployeeSummaryService = /** @class */ (function () {
1132
1132
  EmployeeSummaryService.prototype.getEmployeeBasicInformations = function () {
1133
1133
  return this.employeeBasicInformations.asObservable();
1134
1134
  };
1135
- EmployeeSummaryService.prototype.findEmployeeCompleteParameterizable = function (path, autocompleteEmployee) {
1136
- return this.http.post("hcm/payroll/queries/" + path, autocompleteEmployee);
1137
- };
1138
1135
  EmployeeSummaryService.ctorParameters = function () { return [
1139
1136
  { type: HttpClient }
1140
1137
  ]; };
@@ -3367,8 +3364,9 @@ var InputRestAutoCompleteEmployeeModelService = /** @class */ (function () {
3367
3364
  }());
3368
3365
 
3369
3366
  var InputRestAutoCompleteEmployeeModelComponent = /** @class */ (function () {
3370
- function InputRestAutoCompleteEmployeeModelComponent(service) {
3367
+ function InputRestAutoCompleteEmployeeModelComponent(service, activatedRoute) {
3371
3368
  this.service = service;
3369
+ this.activatedRoute = activatedRoute;
3372
3370
  this.forceSelection = true;
3373
3371
  this.keyName = 'name';
3374
3372
  this.onBlur = new EventEmitter();
@@ -3376,8 +3374,14 @@ var InputRestAutoCompleteEmployeeModelComponent = /** @class */ (function () {
3376
3374
  this.onClear = new EventEmitter();
3377
3375
  this.modelChange = new EventEmitter();
3378
3376
  this.suggestions = [];
3377
+ this.ngUnsubscribe = new Subject();
3379
3378
  }
3380
- InputRestAutoCompleteEmployeeModelComponent.prototype.ngOnInit = function () { };
3379
+ InputRestAutoCompleteEmployeeModelComponent.prototype.ngOnInit = function () {
3380
+ var _this = this;
3381
+ this.activatedRoute.data.pipe(takeUntil(this.ngUnsubscribe)).subscribe(function (data) {
3382
+ _this.useWorkflow = !!(data && data.useWorkflow);
3383
+ });
3384
+ };
3381
3385
  InputRestAutoCompleteEmployeeModelComponent.prototype.filterQuery = function (event) {
3382
3386
  var _this = this;
3383
3387
  var query = event.query;
@@ -3427,7 +3431,6 @@ var InputRestAutoCompleteEmployeeModelComponent = /** @class */ (function () {
3427
3431
  InputRestAutoCompleteEmployeeModelComponent.prototype.getParamsRest = function (search) {
3428
3432
  var returnFilter = {
3429
3433
  valueSearch: search,
3430
- timeTrackingResumeType: { key: "FIRED" },
3431
3434
  };
3432
3435
  if (this.company) {
3433
3436
  returnFilter['company'] = this.company;
@@ -3438,6 +3441,13 @@ var InputRestAutoCompleteEmployeeModelComponent = /** @class */ (function () {
3438
3441
  if (this.employeeType) {
3439
3442
  returnFilter['employeeType'] = this.employeeType;
3440
3443
  }
3444
+ /**
3445
+ * If para uso do BPO
3446
+ * Serve para tirar os colaboradores demitidos do dropbox do autocomplete
3447
+ */
3448
+ if (this.useWorkflow) {
3449
+ returnFilter['timeTrackingResumeType'] = { key: "FIRED" };
3450
+ }
3441
3451
  return returnFilter;
3442
3452
  };
3443
3453
  /**
@@ -3466,7 +3476,8 @@ var InputRestAutoCompleteEmployeeModelComponent = /** @class */ (function () {
3466
3476
  configurable: true
3467
3477
  });
3468
3478
  InputRestAutoCompleteEmployeeModelComponent.ctorParameters = function () { return [
3469
- { type: InputRestAutoCompleteEmployeeModelService }
3479
+ { type: InputRestAutoCompleteEmployeeModelService },
3480
+ { type: ActivatedRoute }
3470
3481
  ]; };
3471
3482
  __decorate([
3472
3483
  Input()
@@ -3522,9 +3533,6 @@ var InputRestAutoCompleteEmployeeModelComponent = /** @class */ (function () {
3522
3533
  __decorate([
3523
3534
  Input()
3524
3535
  ], InputRestAutoCompleteEmployeeModelComponent.prototype, "inputStyle", void 0);
3525
- __decorate([
3526
- Input()
3527
- ], InputRestAutoCompleteEmployeeModelComponent.prototype, "timeTrackingResumeType", void 0);
3528
3536
  __decorate([
3529
3537
  Output()
3530
3538
  ], InputRestAutoCompleteEmployeeModelComponent.prototype, "onBlur", void 0);