@senior-gestao-pessoas/payroll-core 9.0.0-b36a631e-7e77-4983-9677-da5464d1db9a → 9.0.0-c4899b4a-0967-4eae-90b5-b17be4646913
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 +17 -8
- 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 +20 -9
- package/esm5/components/input-rest-auto-complete-employee-model/input-rest-auto-complete-employee-model.component.js +21 -9
- package/fesm2015/senior-gestao-pessoas-payroll-core.js +16 -8
- package/fesm2015/senior-gestao-pessoas-payroll-core.js.map +1 -1
- package/fesm5/senior-gestao-pessoas-payroll-core.js +17 -8
- 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
|
@@ -3367,8 +3367,9 @@ var InputRestAutoCompleteEmployeeModelService = /** @class */ (function () {
|
|
|
3367
3367
|
}());
|
|
3368
3368
|
|
|
3369
3369
|
var InputRestAutoCompleteEmployeeModelComponent = /** @class */ (function () {
|
|
3370
|
-
function InputRestAutoCompleteEmployeeModelComponent(service) {
|
|
3370
|
+
function InputRestAutoCompleteEmployeeModelComponent(service, activatedRoute) {
|
|
3371
3371
|
this.service = service;
|
|
3372
|
+
this.activatedRoute = activatedRoute;
|
|
3372
3373
|
this.forceSelection = true;
|
|
3373
3374
|
this.keyName = 'name';
|
|
3374
3375
|
this.onBlur = new EventEmitter();
|
|
@@ -3376,8 +3377,15 @@ var InputRestAutoCompleteEmployeeModelComponent = /** @class */ (function () {
|
|
|
3376
3377
|
this.onClear = new EventEmitter();
|
|
3377
3378
|
this.modelChange = new EventEmitter();
|
|
3378
3379
|
this.suggestions = [];
|
|
3380
|
+
this.ngUnsubscribe = new Subject();
|
|
3379
3381
|
}
|
|
3380
|
-
InputRestAutoCompleteEmployeeModelComponent.prototype.ngOnInit = function () {
|
|
3382
|
+
InputRestAutoCompleteEmployeeModelComponent.prototype.ngOnInit = function () {
|
|
3383
|
+
var _this = this;
|
|
3384
|
+
this.activatedRoute.data.pipe(takeUntil(this.ngUnsubscribe)).subscribe(function (data) {
|
|
3385
|
+
_this._useWorkflow = !!(data && data.useWorkflow);
|
|
3386
|
+
console.log('useWorkflow: ', _this._useWorkflow);
|
|
3387
|
+
});
|
|
3388
|
+
};
|
|
3381
3389
|
InputRestAutoCompleteEmployeeModelComponent.prototype.filterQuery = function (event) {
|
|
3382
3390
|
var _this = this;
|
|
3383
3391
|
var query = event.query;
|
|
@@ -3437,9 +3445,12 @@ var InputRestAutoCompleteEmployeeModelComponent = /** @class */ (function () {
|
|
|
3437
3445
|
if (this.employeeType) {
|
|
3438
3446
|
returnFilter['employeeType'] = this.employeeType;
|
|
3439
3447
|
}
|
|
3440
|
-
if (this.
|
|
3441
|
-
returnFilter['timeTrackingResumeType'] = { key: "
|
|
3448
|
+
if (!this._useWorkflow) {
|
|
3449
|
+
returnFilter['timeTrackingResumeType'] = { key: "AWAY" };
|
|
3442
3450
|
}
|
|
3451
|
+
// if (this._useWorkflow === false) {
|
|
3452
|
+
// returnFilter['timeTrackingResumeType'] = {key: "AWAY"};
|
|
3453
|
+
// }
|
|
3443
3454
|
return returnFilter;
|
|
3444
3455
|
};
|
|
3445
3456
|
/**
|
|
@@ -3468,7 +3479,8 @@ var InputRestAutoCompleteEmployeeModelComponent = /** @class */ (function () {
|
|
|
3468
3479
|
configurable: true
|
|
3469
3480
|
});
|
|
3470
3481
|
InputRestAutoCompleteEmployeeModelComponent.ctorParameters = function () { return [
|
|
3471
|
-
{ type: InputRestAutoCompleteEmployeeModelService }
|
|
3482
|
+
{ type: InputRestAutoCompleteEmployeeModelService },
|
|
3483
|
+
{ type: ActivatedRoute }
|
|
3472
3484
|
]; };
|
|
3473
3485
|
__decorate([
|
|
3474
3486
|
Input()
|
|
@@ -3524,9 +3536,6 @@ var InputRestAutoCompleteEmployeeModelComponent = /** @class */ (function () {
|
|
|
3524
3536
|
__decorate([
|
|
3525
3537
|
Input()
|
|
3526
3538
|
], InputRestAutoCompleteEmployeeModelComponent.prototype, "inputStyle", void 0);
|
|
3527
|
-
__decorate([
|
|
3528
|
-
Input()
|
|
3529
|
-
], InputRestAutoCompleteEmployeeModelComponent.prototype, "timeTrackingResumeType", void 0);
|
|
3530
3539
|
__decorate([
|
|
3531
3540
|
Output()
|
|
3532
3541
|
], InputRestAutoCompleteEmployeeModelComponent.prototype, "onBlur", void 0);
|