@senior-gestao-pessoas/payroll-core 9.0.0-5e88461d-2ff2-4ed9-a55b-9d1692fa1e06 → 9.0.0-652973e6-d210-4887-bc21-4af29bce9a46
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 -7
- 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 -2
- package/esm2015/components/input-rest-auto-complete-employee-model/input-rest-auto-complete-employee-model.component.js +21 -8
- 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 -7
- package/fesm2015/senior-gestao-pessoas-payroll-core.js.map +1 -1
- package/fesm5/senior-gestao-pessoas-payroll-core.js +18 -7
- 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
|
@@ -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,15 @@
|
|
|
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
|
+
console.log('useWorkflow: ', _this._useWorkflow);
|
|
3553
|
+
});
|
|
3554
|
+
};
|
|
3547
3555
|
InputRestAutoCompleteEmployeeModelComponent.prototype.filterQuery = function (event) {
|
|
3548
3556
|
var _this = this;
|
|
3549
3557
|
var query = event.query;
|
|
@@ -3593,7 +3601,6 @@
|
|
|
3593
3601
|
InputRestAutoCompleteEmployeeModelComponent.prototype.getParamsRest = function (search) {
|
|
3594
3602
|
var returnFilter = {
|
|
3595
3603
|
valueSearch: search,
|
|
3596
|
-
timeTrackingResumeType: { key: "FIRED" },
|
|
3597
3604
|
};
|
|
3598
3605
|
if (this.company) {
|
|
3599
3606
|
returnFilter['company'] = this.company;
|
|
@@ -3604,6 +3611,12 @@
|
|
|
3604
3611
|
if (this.employeeType) {
|
|
3605
3612
|
returnFilter['employeeType'] = this.employeeType;
|
|
3606
3613
|
}
|
|
3614
|
+
if (this._useWorkflow) {
|
|
3615
|
+
returnFilter['timeTrackingResumeType'] = { key: "FIRED" };
|
|
3616
|
+
}
|
|
3617
|
+
if (this._useWorkflow != true) {
|
|
3618
|
+
returnFilter['timeTrackingResumeType'] = { key: "AWAY" };
|
|
3619
|
+
}
|
|
3607
3620
|
return returnFilter;
|
|
3608
3621
|
};
|
|
3609
3622
|
/**
|
|
@@ -3632,7 +3645,8 @@
|
|
|
3632
3645
|
configurable: true
|
|
3633
3646
|
});
|
|
3634
3647
|
InputRestAutoCompleteEmployeeModelComponent.ctorParameters = function () { return [
|
|
3635
|
-
{ type: InputRestAutoCompleteEmployeeModelService }
|
|
3648
|
+
{ type: InputRestAutoCompleteEmployeeModelService },
|
|
3649
|
+
{ type: router.ActivatedRoute }
|
|
3636
3650
|
]; };
|
|
3637
3651
|
__decorate([
|
|
3638
3652
|
core.Input()
|
|
@@ -3688,9 +3702,6 @@
|
|
|
3688
3702
|
__decorate([
|
|
3689
3703
|
core.Input()
|
|
3690
3704
|
], InputRestAutoCompleteEmployeeModelComponent.prototype, "inputStyle", void 0);
|
|
3691
|
-
__decorate([
|
|
3692
|
-
core.Input()
|
|
3693
|
-
], InputRestAutoCompleteEmployeeModelComponent.prototype, "timeTrackingResumeType", void 0);
|
|
3694
3705
|
__decorate([
|
|
3695
3706
|
core.Output()
|
|
3696
3707
|
], InputRestAutoCompleteEmployeeModelComponent.prototype, "onBlur", void 0);
|