@senior-gestao-pessoas/payroll-core 9.0.0-a54a83b8-d0f5-46e0-83fa-7aa62e5f2733 → 9.0.0-b3011616-b987-444e-a1cf-2d00ade74194
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 +14 -6
- 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 +17 -7
- package/esm5/components/input-rest-auto-complete-employee-model/input-rest-auto-complete-employee-model.component.js +18 -7
- package/fesm2015/senior-gestao-pessoas-payroll-core.js +13 -6
- package/fesm2015/senior-gestao-pessoas-payroll-core.js.map +1 -1
- package/fesm5/senior-gestao-pessoas-payroll-core.js +14 -6
- 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,14 @@
|
|
|
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
|
+
});
|
|
3553
|
+
};
|
|
3547
3554
|
InputRestAutoCompleteEmployeeModelComponent.prototype.filterQuery = function (event) {
|
|
3548
3555
|
var _this = this;
|
|
3549
3556
|
var query = event.query;
|
|
@@ -3603,9 +3610,9 @@
|
|
|
3603
3610
|
if (this.employeeType) {
|
|
3604
3611
|
returnFilter['employeeType'] = this.employeeType;
|
|
3605
3612
|
}
|
|
3606
|
-
|
|
3607
|
-
|
|
3608
|
-
|
|
3613
|
+
if (this.useWorkflow) {
|
|
3614
|
+
returnFilter['timeTrackingResumeType'] = { key: "FIRED" };
|
|
3615
|
+
}
|
|
3609
3616
|
return returnFilter;
|
|
3610
3617
|
};
|
|
3611
3618
|
/**
|
|
@@ -3634,7 +3641,8 @@
|
|
|
3634
3641
|
configurable: true
|
|
3635
3642
|
});
|
|
3636
3643
|
InputRestAutoCompleteEmployeeModelComponent.ctorParameters = function () { return [
|
|
3637
|
-
{ type: InputRestAutoCompleteEmployeeModelService }
|
|
3644
|
+
{ type: InputRestAutoCompleteEmployeeModelService },
|
|
3645
|
+
{ type: router.ActivatedRoute }
|
|
3638
3646
|
]; };
|
|
3639
3647
|
__decorate([
|
|
3640
3648
|
core.Input()
|