@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
|
@@ -5494,6 +5494,9 @@ let WorkshiftHistoryListComponent = class WorkshiftHistoryListComponent extends
|
|
|
5494
5494
|
this.setStorageFiltersIntoForm(this.filterFormGroup);
|
|
5495
5495
|
this.gridColumns = this.getGridColumns();
|
|
5496
5496
|
this.filterFields = this.getFilterFields();
|
|
5497
|
+
this.filterFormGroup.get('employer').valueChanges.pipe(takeUntil(this.ngUnsubscribe)).subscribe(() => {
|
|
5498
|
+
this.filterFormGroup.get('companyBranch').setValue(null);
|
|
5499
|
+
});
|
|
5497
5500
|
this.setHotkeys();
|
|
5498
5501
|
/*{CA:ON_INIT_END:START}*/
|
|
5499
5502
|
if (this.permissions.incluir) {
|
|
@@ -6135,7 +6138,7 @@ let WorkshiftHistoryListComponent = class WorkshiftHistoryListComponent extends
|
|
|
6135
6138
|
/*{CA:ON_EMPLOYER_LOOKUP_REQUEST_START:START}*/
|
|
6136
6139
|
/*{CA:ON_EMPLOYER_LOOKUP_REQUEST_START:END}*/
|
|
6137
6140
|
const sort = this.companyBranchLookupDisplayFields.map((field) => ({ field, order: 1 }));
|
|
6138
|
-
|
|
6141
|
+
let filterQuery = this.getCompanyBranchSearchFields()
|
|
6139
6142
|
.filter(({ type }) => isValidFilter(type, value))
|
|
6140
6143
|
.map(({ name, type }) => {
|
|
6141
6144
|
if (typeof value == "number")
|
|
@@ -6153,6 +6156,11 @@ let WorkshiftHistoryListComponent = class WorkshiftHistoryListComponent extends
|
|
|
6153
6156
|
})
|
|
6154
6157
|
.filter(value => !!value)
|
|
6155
6158
|
.join(" or ");
|
|
6159
|
+
const employer = this.filterFormGroup.get('employer').value;
|
|
6160
|
+
if (employer) {
|
|
6161
|
+
const companyFilter = `e070emp.codEmp eq ${employer.codEmp}`;
|
|
6162
|
+
filterQuery = filterQuery ? `${filterQuery} and ${companyFilter}` : companyFilter;
|
|
6163
|
+
}
|
|
6156
6164
|
const displayFields = mergeUnique(this.companyBranchLookupDisplayFields, this.companyBranchAdvancedDisplayFields);
|
|
6157
6165
|
this.companyBranchService
|
|
6158
6166
|
.list({ filterQuery, displayFields, sort })
|
|
@@ -6168,7 +6176,7 @@ let WorkshiftHistoryListComponent = class WorkshiftHistoryListComponent extends
|
|
|
6168
6176
|
const { first, rows, multiSortMeta, filterData } = event;
|
|
6169
6177
|
const page = first / rows;
|
|
6170
6178
|
const sort = multiSortMeta;
|
|
6171
|
-
|
|
6179
|
+
let filterQuery = this.getCompanyBranchSearchFields()
|
|
6172
6180
|
.filter(({ name }) => filterData[name] != undefined && filterData[name] != "")
|
|
6173
6181
|
.map(({ name, type }) => {
|
|
6174
6182
|
const value = filterData[name];
|
|
@@ -6189,6 +6197,11 @@ let WorkshiftHistoryListComponent = class WorkshiftHistoryListComponent extends
|
|
|
6189
6197
|
})
|
|
6190
6198
|
.filter(value => !!value)
|
|
6191
6199
|
.join(" and ");
|
|
6200
|
+
const employer = this.filterFormGroup.get('employer').value;
|
|
6201
|
+
if (employer) {
|
|
6202
|
+
const companyFilter = `e070emp.codEmp eq ${employer.codEmp}`;
|
|
6203
|
+
filterQuery = filterQuery ? `${filterQuery} and ${companyFilter}` : companyFilter;
|
|
6204
|
+
}
|
|
6192
6205
|
const displayFields = mergeUnique(this.companyBranchLookupDisplayFields, this.companyBranchAdvancedDisplayFields);
|
|
6193
6206
|
this.companyBranchService
|
|
6194
6207
|
.list({ page, sort, filterQuery, displayFields })
|
|
@@ -8126,6 +8139,9 @@ let AnnotationHistoryListComponent = class AnnotationHistoryListComponent extend
|
|
|
8126
8139
|
this.setStorageFiltersIntoForm(this.filterFormGroup);
|
|
8127
8140
|
this.gridColumns = this.getGridColumns();
|
|
8128
8141
|
this.filterFields = this.getFilterFields();
|
|
8142
|
+
this.filterFormGroup.get('employer').valueChanges.pipe(takeUntil(this.ngUnsubscribe)).subscribe(() => {
|
|
8143
|
+
this.filterFormGroup.get('companyBranch').setValue(null);
|
|
8144
|
+
});
|
|
8129
8145
|
this.setHotkeys();
|
|
8130
8146
|
/*{CA:ON_INIT_END:START}*/
|
|
8131
8147
|
if (this.permissions.incluir) {
|
|
@@ -8798,7 +8814,7 @@ let AnnotationHistoryListComponent = class AnnotationHistoryListComponent extend
|
|
|
8798
8814
|
/*{CA:ON_EMPLOYER_LOOKUP_REQUEST_START:START}*/
|
|
8799
8815
|
/*{CA:ON_EMPLOYER_LOOKUP_REQUEST_START:END}*/
|
|
8800
8816
|
const sort = this.companyBranchLookupDisplayFields.map((field) => ({ field, order: 1 }));
|
|
8801
|
-
|
|
8817
|
+
let filterQuery = this.getCompanyBranchSearchFields()
|
|
8802
8818
|
.filter(({ type }) => isValidFilter(type, value))
|
|
8803
8819
|
.map(({ name, type }) => {
|
|
8804
8820
|
if (typeof value == "number")
|
|
@@ -8816,6 +8832,11 @@ let AnnotationHistoryListComponent = class AnnotationHistoryListComponent extend
|
|
|
8816
8832
|
})
|
|
8817
8833
|
.filter(value => !!value)
|
|
8818
8834
|
.join(" or ");
|
|
8835
|
+
const employer = this.filterFormGroup.get('employer').value;
|
|
8836
|
+
if (employer) {
|
|
8837
|
+
const companyFilter = `e070emp.codEmp eq ${employer.codEmp}`;
|
|
8838
|
+
filterQuery = filterQuery ? `${filterQuery} and ${companyFilter}` : companyFilter;
|
|
8839
|
+
}
|
|
8819
8840
|
const displayFields = mergeUnique(this.companyBranchLookupDisplayFields, this.companyBranchAdvancedDisplayFields);
|
|
8820
8841
|
this.companyBranchService
|
|
8821
8842
|
.list({ filterQuery, displayFields, sort })
|
|
@@ -8831,7 +8852,7 @@ let AnnotationHistoryListComponent = class AnnotationHistoryListComponent extend
|
|
|
8831
8852
|
const { first, rows, multiSortMeta, filterData } = event;
|
|
8832
8853
|
const page = first / rows;
|
|
8833
8854
|
const sort = multiSortMeta;
|
|
8834
|
-
|
|
8855
|
+
let filterQuery = this.getCompanyBranchSearchFields()
|
|
8835
8856
|
.filter(({ name }) => filterData[name] != undefined && filterData[name] != "")
|
|
8836
8857
|
.map(({ name, type }) => {
|
|
8837
8858
|
const value = filterData[name];
|
|
@@ -8852,6 +8873,11 @@ let AnnotationHistoryListComponent = class AnnotationHistoryListComponent extend
|
|
|
8852
8873
|
})
|
|
8853
8874
|
.filter(value => !!value)
|
|
8854
8875
|
.join(" and ");
|
|
8876
|
+
const employer = this.filterFormGroup.get('employer').value;
|
|
8877
|
+
if (employer) {
|
|
8878
|
+
const companyFilter = `e070emp.codEmp eq ${employer.codEmp}`;
|
|
8879
|
+
filterQuery = filterQuery ? `${filterQuery} and ${companyFilter}` : companyFilter;
|
|
8880
|
+
}
|
|
8855
8881
|
const displayFields = mergeUnique(this.companyBranchLookupDisplayFields, this.companyBranchAdvancedDisplayFields);
|
|
8856
8882
|
this.companyBranchService
|
|
8857
8883
|
.list({ page, sort, filterQuery, displayFields })
|
|
@@ -12140,6 +12166,9 @@ let LeaveHistoryListComponent = class LeaveHistoryListComponent extends BaseColl
|
|
|
12140
12166
|
this.setStorageFiltersIntoForm(this.filterFormGroup);
|
|
12141
12167
|
this.gridColumns = this.getGridColumns();
|
|
12142
12168
|
this.filterFields = this.getFilterFields();
|
|
12169
|
+
this.filterFormGroup.get('employer').valueChanges.pipe(takeUntil(this.ngUnsubscribe)).subscribe(() => {
|
|
12170
|
+
this.filterFormGroup.get('companyBranch').setValue(null);
|
|
12171
|
+
});
|
|
12143
12172
|
this.setHotkeys();
|
|
12144
12173
|
if (this.permissions.incluir) {
|
|
12145
12174
|
this.collectiveActions.push({
|
|
@@ -12481,7 +12510,7 @@ let LeaveHistoryListComponent = class LeaveHistoryListComponent extends BaseColl
|
|
|
12481
12510
|
}
|
|
12482
12511
|
onCompanyBranchLookupRequest(value) {
|
|
12483
12512
|
const sort = this.companyBranchLookupDisplayFields.map((field) => ({ field, order: 1 }));
|
|
12484
|
-
|
|
12513
|
+
let filterQuery = this.getCompanyBranchSearchFields()
|
|
12485
12514
|
.filter(({ type }) => isValidFilter(type, value))
|
|
12486
12515
|
.map(({ name, type }) => {
|
|
12487
12516
|
if (typeof value == "number")
|
|
@@ -12499,6 +12528,11 @@ let LeaveHistoryListComponent = class LeaveHistoryListComponent extends BaseColl
|
|
|
12499
12528
|
})
|
|
12500
12529
|
.filter(value => !!value)
|
|
12501
12530
|
.join(" or ");
|
|
12531
|
+
const employer = this.filterFormGroup.get('employer').value;
|
|
12532
|
+
if (employer) {
|
|
12533
|
+
const companyFilter = `e070emp.codEmp eq ${employer.codEmp}`;
|
|
12534
|
+
filterQuery = filterQuery ? `${filterQuery} and ${companyFilter}` : companyFilter;
|
|
12535
|
+
}
|
|
12502
12536
|
const displayFields = mergeUnique(this.companyBranchLookupDisplayFields, this.companyBranchAdvancedDisplayFields);
|
|
12503
12537
|
this.companyBranchService
|
|
12504
12538
|
.list({ filterQuery, displayFields, sort })
|
|
@@ -12510,7 +12544,7 @@ let LeaveHistoryListComponent = class LeaveHistoryListComponent extends BaseColl
|
|
|
12510
12544
|
const { first, rows, multiSortMeta, filterData } = event;
|
|
12511
12545
|
const page = first / rows;
|
|
12512
12546
|
const sort = multiSortMeta;
|
|
12513
|
-
|
|
12547
|
+
let filterQuery = this.getCompanyBranchSearchFields()
|
|
12514
12548
|
.filter(({ name }) => filterData[name] != undefined && filterData[name] != "")
|
|
12515
12549
|
.map(({ name, type }) => {
|
|
12516
12550
|
const value = filterData[name];
|
|
@@ -12531,6 +12565,11 @@ let LeaveHistoryListComponent = class LeaveHistoryListComponent extends BaseColl
|
|
|
12531
12565
|
})
|
|
12532
12566
|
.filter(value => !!value)
|
|
12533
12567
|
.join(" and ");
|
|
12568
|
+
const employer = this.filterFormGroup.get('employer').value;
|
|
12569
|
+
if (employer) {
|
|
12570
|
+
const companyFilter = `e070emp.codEmp eq ${employer.codEmp}`;
|
|
12571
|
+
filterQuery = filterQuery ? `${filterQuery} and ${companyFilter}` : companyFilter;
|
|
12572
|
+
}
|
|
12534
12573
|
const displayFields = mergeUnique(this.companyBranchLookupDisplayFields, this.companyBranchAdvancedDisplayFields);
|
|
12535
12574
|
this.companyBranchService
|
|
12536
12575
|
.list({ page, sort, filterQuery, displayFields })
|
|
@@ -14286,12 +14325,12 @@ let EmployeeDependentComplementTabComponent = class EmployeeDependentComplementT
|
|
|
14286
14325
|
return [
|
|
14287
14326
|
new FormField({
|
|
14288
14327
|
name: "code",
|
|
14289
|
-
label: this.translateService.instant("hcm_contract.employment_contract.
|
|
14328
|
+
label: this.translateService.instant("hcm_contract.employment_contract.employee_dependent_cod_pes"),
|
|
14290
14329
|
type: FieldType.Integer,
|
|
14291
14330
|
}),
|
|
14292
14331
|
new FormField({
|
|
14293
14332
|
name: "name",
|
|
14294
|
-
label: this.translateService.instant("hcm_contract.employment_contract.
|
|
14333
|
+
label: this.translateService.instant("hcm_contract.employment_contract.employee_dependent_nom_pes"),
|
|
14295
14334
|
type: FieldType.String,
|
|
14296
14335
|
}),
|
|
14297
14336
|
];
|