@senior-gestao-pessoas/hcm-contract-employee-history 5.6.4 → 5.7.0-bugfix-hcmfnd-6392-ad9ee246
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-hcm-contract-employee-history.umd.js +41 -2
- package/bundles/senior-gestao-pessoas-hcm-contract-employee-history.umd.js.map +1 -1
- package/bundles/senior-gestao-pessoas-hcm-contract-employee-history.umd.min.js +2 -2
- package/bundles/senior-gestao-pessoas-hcm-contract-employee-history.umd.min.js.map +1 -1
- package/esm2015/lib/annotation-history/views/list/annotation-history-list.component.js +16 -3
- package/esm2015/lib/employee-dependent/form/employee-dependent-complement-step/employee-dependent-complement-tab/employee-dependent-complement-tab.component.js +3 -3
- package/esm2015/lib/leave-history/views/list/leave-history-list.component.js +16 -3
- package/esm2015/lib/workshift-history/views/list/workshift-history-list.component.js +16 -3
- package/esm5/lib/annotation-history/views/list/annotation-history-list.component.js +14 -1
- package/esm5/lib/employee-dependent/form/employee-dependent-complement-step/employee-dependent-complement-tab/employee-dependent-complement-tab.component.js +3 -3
- package/esm5/lib/leave-history/views/list/leave-history-list.component.js +14 -1
- package/esm5/lib/workshift-history/views/list/workshift-history-list.component.js +14 -1
- package/fesm2015/senior-gestao-pessoas-hcm-contract-employee-history.js +47 -8
- package/fesm2015/senior-gestao-pessoas-hcm-contract-employee-history.js.map +1 -1
- package/fesm5/senior-gestao-pessoas-hcm-contract-employee-history.js +41 -2
- package/fesm5/senior-gestao-pessoas-hcm-contract-employee-history.js.map +1 -1
- package/package.json +1 -1
|
@@ -5864,6 +5864,9 @@ var WorkshiftHistoryListComponent = /** @class */ (function (_super) {
|
|
|
5864
5864
|
this.setStorageFiltersIntoForm(this.filterFormGroup);
|
|
5865
5865
|
this.gridColumns = this.getGridColumns();
|
|
5866
5866
|
this.filterFields = this.getFilterFields();
|
|
5867
|
+
this.filterFormGroup.get('employer').valueChanges.pipe(takeUntil(this.ngUnsubscribe)).subscribe(function () {
|
|
5868
|
+
_this.filterFormGroup.get('companyBranch').setValue(null);
|
|
5869
|
+
});
|
|
5867
5870
|
this.setHotkeys();
|
|
5868
5871
|
/*{CA:ON_INIT_END:START}*/
|
|
5869
5872
|
if (this.permissions.incluir) {
|
|
@@ -6573,6 +6576,11 @@ var WorkshiftHistoryListComponent = /** @class */ (function (_super) {
|
|
|
6573
6576
|
})
|
|
6574
6577
|
.filter(function (value) { return !!value; })
|
|
6575
6578
|
.join(" or ");
|
|
6579
|
+
var employer = this.filterFormGroup.get('employer').value;
|
|
6580
|
+
if (employer) {
|
|
6581
|
+
var companyFilter = "e070emp.codEmp eq " + employer.codEmp;
|
|
6582
|
+
filterQuery = filterQuery ? filterQuery + " and " + companyFilter : companyFilter;
|
|
6583
|
+
}
|
|
6576
6584
|
var displayFields = mergeUnique(this.companyBranchLookupDisplayFields, this.companyBranchAdvancedDisplayFields);
|
|
6577
6585
|
this.companyBranchService
|
|
6578
6586
|
.list({ filterQuery: filterQuery, displayFields: displayFields, sort: sort })
|
|
@@ -6614,6 +6622,11 @@ var WorkshiftHistoryListComponent = /** @class */ (function (_super) {
|
|
|
6614
6622
|
})
|
|
6615
6623
|
.filter(function (value) { return !!value; })
|
|
6616
6624
|
.join(" and ");
|
|
6625
|
+
var employer = this.filterFormGroup.get('employer').value;
|
|
6626
|
+
if (employer) {
|
|
6627
|
+
var companyFilter = "e070emp.codEmp eq " + employer.codEmp;
|
|
6628
|
+
filterQuery = filterQuery ? filterQuery + " and " + companyFilter : companyFilter;
|
|
6629
|
+
}
|
|
6617
6630
|
var displayFields = mergeUnique(this.companyBranchLookupDisplayFields, this.companyBranchAdvancedDisplayFields);
|
|
6618
6631
|
this.companyBranchService
|
|
6619
6632
|
.list({ page: page, sort: sort, filterQuery: filterQuery, displayFields: displayFields })
|
|
@@ -8645,6 +8658,9 @@ var AnnotationHistoryListComponent = /** @class */ (function (_super) {
|
|
|
8645
8658
|
this.setStorageFiltersIntoForm(this.filterFormGroup);
|
|
8646
8659
|
this.gridColumns = this.getGridColumns();
|
|
8647
8660
|
this.filterFields = this.getFilterFields();
|
|
8661
|
+
this.filterFormGroup.get('employer').valueChanges.pipe(takeUntil(this.ngUnsubscribe)).subscribe(function () {
|
|
8662
|
+
_this.filterFormGroup.get('companyBranch').setValue(null);
|
|
8663
|
+
});
|
|
8648
8664
|
this.setHotkeys();
|
|
8649
8665
|
/*{CA:ON_INIT_END:START}*/
|
|
8650
8666
|
if (this.permissions.incluir) {
|
|
@@ -9385,6 +9401,11 @@ var AnnotationHistoryListComponent = /** @class */ (function (_super) {
|
|
|
9385
9401
|
})
|
|
9386
9402
|
.filter(function (value) { return !!value; })
|
|
9387
9403
|
.join(" or ");
|
|
9404
|
+
var employer = this.filterFormGroup.get('employer').value;
|
|
9405
|
+
if (employer) {
|
|
9406
|
+
var companyFilter = "e070emp.codEmp eq " + employer.codEmp;
|
|
9407
|
+
filterQuery = filterQuery ? filterQuery + " and " + companyFilter : companyFilter;
|
|
9408
|
+
}
|
|
9388
9409
|
var displayFields = mergeUnique(this.companyBranchLookupDisplayFields, this.companyBranchAdvancedDisplayFields);
|
|
9389
9410
|
this.companyBranchService
|
|
9390
9411
|
.list({ filterQuery: filterQuery, displayFields: displayFields, sort: sort })
|
|
@@ -9426,6 +9447,11 @@ var AnnotationHistoryListComponent = /** @class */ (function (_super) {
|
|
|
9426
9447
|
})
|
|
9427
9448
|
.filter(function (value) { return !!value; })
|
|
9428
9449
|
.join(" and ");
|
|
9450
|
+
var employer = this.filterFormGroup.get('employer').value;
|
|
9451
|
+
if (employer) {
|
|
9452
|
+
var companyFilter = "e070emp.codEmp eq " + employer.codEmp;
|
|
9453
|
+
filterQuery = filterQuery ? filterQuery + " and " + companyFilter : companyFilter;
|
|
9454
|
+
}
|
|
9429
9455
|
var displayFields = mergeUnique(this.companyBranchLookupDisplayFields, this.companyBranchAdvancedDisplayFields);
|
|
9430
9456
|
this.companyBranchService
|
|
9431
9457
|
.list({ page: page, sort: sort, filterQuery: filterQuery, displayFields: displayFields })
|
|
@@ -12803,6 +12829,9 @@ var LeaveHistoryListComponent = /** @class */ (function (_super) {
|
|
|
12803
12829
|
this.setStorageFiltersIntoForm(this.filterFormGroup);
|
|
12804
12830
|
this.gridColumns = this.getGridColumns();
|
|
12805
12831
|
this.filterFields = this.getFilterFields();
|
|
12832
|
+
this.filterFormGroup.get('employer').valueChanges.pipe(takeUntil(this.ngUnsubscribe)).subscribe(function () {
|
|
12833
|
+
_this.filterFormGroup.get('companyBranch').setValue(null);
|
|
12834
|
+
});
|
|
12806
12835
|
this.setHotkeys();
|
|
12807
12836
|
if (this.permissions.incluir) {
|
|
12808
12837
|
this.collectiveActions.push({
|
|
@@ -13198,6 +13227,11 @@ var LeaveHistoryListComponent = /** @class */ (function (_super) {
|
|
|
13198
13227
|
})
|
|
13199
13228
|
.filter(function (value) { return !!value; })
|
|
13200
13229
|
.join(" or ");
|
|
13230
|
+
var employer = this.filterFormGroup.get('employer').value;
|
|
13231
|
+
if (employer) {
|
|
13232
|
+
var companyFilter = "e070emp.codEmp eq " + employer.codEmp;
|
|
13233
|
+
filterQuery = filterQuery ? filterQuery + " and " + companyFilter : companyFilter;
|
|
13234
|
+
}
|
|
13201
13235
|
var displayFields = mergeUnique(this.companyBranchLookupDisplayFields, this.companyBranchAdvancedDisplayFields);
|
|
13202
13236
|
this.companyBranchService
|
|
13203
13237
|
.list({ filterQuery: filterQuery, displayFields: displayFields, sort: sort })
|
|
@@ -13235,6 +13269,11 @@ var LeaveHistoryListComponent = /** @class */ (function (_super) {
|
|
|
13235
13269
|
})
|
|
13236
13270
|
.filter(function (value) { return !!value; })
|
|
13237
13271
|
.join(" and ");
|
|
13272
|
+
var employer = this.filterFormGroup.get('employer').value;
|
|
13273
|
+
if (employer) {
|
|
13274
|
+
var companyFilter = "e070emp.codEmp eq " + employer.codEmp;
|
|
13275
|
+
filterQuery = filterQuery ? filterQuery + " and " + companyFilter : companyFilter;
|
|
13276
|
+
}
|
|
13238
13277
|
var displayFields = mergeUnique(this.companyBranchLookupDisplayFields, this.companyBranchAdvancedDisplayFields);
|
|
13239
13278
|
this.companyBranchService
|
|
13240
13279
|
.list({ page: page, sort: sort, filterQuery: filterQuery, displayFields: displayFields })
|
|
@@ -15103,12 +15142,12 @@ var EmployeeDependentComplementTabComponent = /** @class */ (function () {
|
|
|
15103
15142
|
return [
|
|
15104
15143
|
new FormField({
|
|
15105
15144
|
name: "code",
|
|
15106
|
-
label: this.translateService.instant("hcm_contract.employment_contract.
|
|
15145
|
+
label: this.translateService.instant("hcm_contract.employment_contract.employee_dependent_cod_pes"),
|
|
15107
15146
|
type: FieldType.Integer,
|
|
15108
15147
|
}),
|
|
15109
15148
|
new FormField({
|
|
15110
15149
|
name: "name",
|
|
15111
|
-
label: this.translateService.instant("hcm_contract.employment_contract.
|
|
15150
|
+
label: this.translateService.instant("hcm_contract.employment_contract.employee_dependent_nom_pes"),
|
|
15112
15151
|
type: FieldType.String,
|
|
15113
15152
|
}),
|
|
15114
15153
|
];
|