@senior-gestao-pessoas/payroll-core 9.0.0-ffa996ad-435c-4748-b85e-90746de85131 → 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 -11
- 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/employee-summary/employee-summary.service.d.ts +0 -2
- package/components/input-rest-auto-complete-employee-model/input-rest-auto-complete-employee-model.component.d.ts +5 -2
- package/esm2015/components/employee-summary/employee-summary.service.js +1 -4
- package/esm2015/components/input-rest-auto-complete-employee/input-rest-auto-complete-employee.component.js +1 -2
- package/esm2015/components/input-rest-auto-complete-employee-model/input-rest-auto-complete-employee-model.component.js +21 -8
- package/esm5/components/employee-summary/employee-summary.service.js +1 -4
- package/esm5/components/input-rest-auto-complete-employee/input-rest-auto-complete-employee.component.js +1 -2
- package/esm5/components/input-rest-auto-complete-employee-model/input-rest-auto-complete-employee-model.component.js +22 -8
- package/fesm2015/senior-gestao-pessoas-payroll-core.js +17 -11
- package/fesm2015/senior-gestao-pessoas-payroll-core.js.map +1 -1
- package/fesm5/senior-gestao-pessoas-payroll-core.js +18 -11
- 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
- package/core/interfaces/auto-complete-employee.d.ts +0 -10
- package/esm2015/core/interfaces/auto-complete-employee.js +0 -1
- package/esm5/core/interfaces/auto-complete-employee.js +0 -1
|
@@ -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
|
]; };
|
|
@@ -3201,7 +3198,6 @@ var InputRestAutoCompleteEmployeeComponent = /** @class */ (function () {
|
|
|
3201
3198
|
InputRestAutoCompleteEmployeeComponent.prototype.getParamsRest = function (search) {
|
|
3202
3199
|
var returnFilter = {
|
|
3203
3200
|
valueSearch: search,
|
|
3204
|
-
timeTrackingResumeType: { key: "FIRED" },
|
|
3205
3201
|
enableEntityFilters: this.enableEntityFilters,
|
|
3206
3202
|
};
|
|
3207
3203
|
if (this.company) {
|
|
@@ -3368,8 +3364,9 @@ var InputRestAutoCompleteEmployeeModelService = /** @class */ (function () {
|
|
|
3368
3364
|
}());
|
|
3369
3365
|
|
|
3370
3366
|
var InputRestAutoCompleteEmployeeModelComponent = /** @class */ (function () {
|
|
3371
|
-
function InputRestAutoCompleteEmployeeModelComponent(service) {
|
|
3367
|
+
function InputRestAutoCompleteEmployeeModelComponent(service, activatedRoute) {
|
|
3372
3368
|
this.service = service;
|
|
3369
|
+
this.activatedRoute = activatedRoute;
|
|
3373
3370
|
this.forceSelection = true;
|
|
3374
3371
|
this.keyName = 'name';
|
|
3375
3372
|
this.onBlur = new EventEmitter();
|
|
@@ -3377,8 +3374,14 @@ var InputRestAutoCompleteEmployeeModelComponent = /** @class */ (function () {
|
|
|
3377
3374
|
this.onClear = new EventEmitter();
|
|
3378
3375
|
this.modelChange = new EventEmitter();
|
|
3379
3376
|
this.suggestions = [];
|
|
3377
|
+
this.ngUnsubscribe = new Subject();
|
|
3380
3378
|
}
|
|
3381
|
-
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
|
+
};
|
|
3382
3385
|
InputRestAutoCompleteEmployeeModelComponent.prototype.filterQuery = function (event) {
|
|
3383
3386
|
var _this = this;
|
|
3384
3387
|
var query = event.query;
|
|
@@ -3428,7 +3431,6 @@ var InputRestAutoCompleteEmployeeModelComponent = /** @class */ (function () {
|
|
|
3428
3431
|
InputRestAutoCompleteEmployeeModelComponent.prototype.getParamsRest = function (search) {
|
|
3429
3432
|
var returnFilter = {
|
|
3430
3433
|
valueSearch: search,
|
|
3431
|
-
timeTrackingResumeType: { key: "FIRED" },
|
|
3432
3434
|
};
|
|
3433
3435
|
if (this.company) {
|
|
3434
3436
|
returnFilter['company'] = this.company;
|
|
@@ -3439,6 +3441,13 @@ var InputRestAutoCompleteEmployeeModelComponent = /** @class */ (function () {
|
|
|
3439
3441
|
if (this.employeeType) {
|
|
3440
3442
|
returnFilter['employeeType'] = this.employeeType;
|
|
3441
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
|
+
}
|
|
3442
3451
|
return returnFilter;
|
|
3443
3452
|
};
|
|
3444
3453
|
/**
|
|
@@ -3467,7 +3476,8 @@ var InputRestAutoCompleteEmployeeModelComponent = /** @class */ (function () {
|
|
|
3467
3476
|
configurable: true
|
|
3468
3477
|
});
|
|
3469
3478
|
InputRestAutoCompleteEmployeeModelComponent.ctorParameters = function () { return [
|
|
3470
|
-
{ type: InputRestAutoCompleteEmployeeModelService }
|
|
3479
|
+
{ type: InputRestAutoCompleteEmployeeModelService },
|
|
3480
|
+
{ type: ActivatedRoute }
|
|
3471
3481
|
]; };
|
|
3472
3482
|
__decorate([
|
|
3473
3483
|
Input()
|
|
@@ -3523,9 +3533,6 @@ var InputRestAutoCompleteEmployeeModelComponent = /** @class */ (function () {
|
|
|
3523
3533
|
__decorate([
|
|
3524
3534
|
Input()
|
|
3525
3535
|
], InputRestAutoCompleteEmployeeModelComponent.prototype, "inputStyle", void 0);
|
|
3526
|
-
__decorate([
|
|
3527
|
-
Input()
|
|
3528
|
-
], InputRestAutoCompleteEmployeeModelComponent.prototype, "timeTrackingResumeType", void 0);
|
|
3529
3536
|
__decorate([
|
|
3530
3537
|
Output()
|
|
3531
3538
|
], InputRestAutoCompleteEmployeeModelComponent.prototype, "onBlur", void 0);
|