@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.
- package/bundles/senior-gestao-pessoas-payroll-core.umd.js +18 -3
- package/bundles/senior-gestao-pessoas-payroll-core.umd.js.map +1 -1
- package/bundles/senior-gestao-pessoas-payroll-core.umd.min.js +1 -1
- package/bundles/senior-gestao-pessoas-payroll-core.umd.min.js.map +1 -1
- package/components/input-rest-auto-complete-employee-model/input-rest-auto-complete-employee-model.component.d.ts +5 -1
- package/esm2015/components/input-rest-auto-complete-employee-model/input-rest-auto-complete-employee-model.component.js +21 -4
- package/esm5/components/input-rest-auto-complete-employee-model/input-rest-auto-complete-employee-model.component.js +22 -4
- package/fesm2015/senior-gestao-pessoas-payroll-core.js +17 -3
- package/fesm2015/senior-gestao-pessoas-payroll-core.js.map +1 -1
- package/fesm5/senior-gestao-pessoas-payroll-core.js +18 -3
- package/fesm5/senior-gestao-pessoas-payroll-core.js.map +1 -1
- package/package.json +1 -1
- package/senior-gestao-pessoas-payroll-core.metadata.json +1 -1
|
@@ -3364,8 +3364,9 @@ var InputRestAutoCompleteEmployeeModelService = /** @class */ (function () {
|
|
|
3364
3364
|
}());
|
|
3365
3365
|
|
|
3366
3366
|
var InputRestAutoCompleteEmployeeModelComponent = /** @class */ (function () {
|
|
3367
|
-
function InputRestAutoCompleteEmployeeModelComponent(service) {
|
|
3367
|
+
function InputRestAutoCompleteEmployeeModelComponent(service, activatedRoute) {
|
|
3368
3368
|
this.service = service;
|
|
3369
|
+
this.activatedRoute = activatedRoute;
|
|
3369
3370
|
this.forceSelection = true;
|
|
3370
3371
|
this.keyName = 'name';
|
|
3371
3372
|
this.onBlur = new EventEmitter();
|
|
@@ -3373,8 +3374,14 @@ var InputRestAutoCompleteEmployeeModelComponent = /** @class */ (function () {
|
|
|
3373
3374
|
this.onClear = new EventEmitter();
|
|
3374
3375
|
this.modelChange = new EventEmitter();
|
|
3375
3376
|
this.suggestions = [];
|
|
3377
|
+
this.ngUnsubscribe = new Subject();
|
|
3376
3378
|
}
|
|
3377
|
-
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
|
+
};
|
|
3378
3385
|
InputRestAutoCompleteEmployeeModelComponent.prototype.filterQuery = function (event) {
|
|
3379
3386
|
var _this = this;
|
|
3380
3387
|
var query = event.query;
|
|
@@ -3434,6 +3441,13 @@ var InputRestAutoCompleteEmployeeModelComponent = /** @class */ (function () {
|
|
|
3434
3441
|
if (this.employeeType) {
|
|
3435
3442
|
returnFilter['employeeType'] = this.employeeType;
|
|
3436
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
|
+
}
|
|
3437
3451
|
return returnFilter;
|
|
3438
3452
|
};
|
|
3439
3453
|
/**
|
|
@@ -3462,7 +3476,8 @@ var InputRestAutoCompleteEmployeeModelComponent = /** @class */ (function () {
|
|
|
3462
3476
|
configurable: true
|
|
3463
3477
|
});
|
|
3464
3478
|
InputRestAutoCompleteEmployeeModelComponent.ctorParameters = function () { return [
|
|
3465
|
-
{ type: InputRestAutoCompleteEmployeeModelService }
|
|
3479
|
+
{ type: InputRestAutoCompleteEmployeeModelService },
|
|
3480
|
+
{ type: ActivatedRoute }
|
|
3466
3481
|
]; };
|
|
3467
3482
|
__decorate([
|
|
3468
3483
|
Input()
|