@senior-gestao-pessoas/hcm-entity-lookups 2.3.0 → 3.0.0
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-entity-lookups.umd.js +54 -21
- package/bundles/senior-gestao-pessoas-hcm-entity-lookups.umd.js.map +1 -1
- package/bundles/senior-gestao-pessoas-hcm-entity-lookups.umd.min.js +1 -1
- package/bundles/senior-gestao-pessoas-hcm-entity-lookups.umd.min.js.map +1 -1
- package/esm2015/lookups/calculation-definition-lookup/calculation-definition-lookup.component.js +7 -7
- package/esm2015/lookups/calculation-definition-lookup/calculation-definition-lookup.service.js +21 -7
- package/esm2015/lookups/variable-entry-lookup/variable-entry-lookup.component.js +8 -8
- package/esm2015/lookups/variable-entry-lookup/variable-entry-lookup.service.js +6 -4
- package/esm2015/lookups/wage-type-lookup/wage-type-lookup.component.js +9 -4
- package/esm2015/lookups/wage-type-lookup/wage-type-lookup.service.js +15 -3
- package/esm5/lookups/calculation-definition-lookup/calculation-definition-lookup.component.js +7 -7
- package/esm5/lookups/calculation-definition-lookup/calculation-definition-lookup.service.js +21 -7
- package/esm5/lookups/variable-entry-lookup/variable-entry-lookup.component.js +8 -8
- package/esm5/lookups/variable-entry-lookup/variable-entry-lookup.service.js +6 -4
- package/esm5/lookups/wage-type-lookup/wage-type-lookup.component.js +9 -4
- package/esm5/lookups/wage-type-lookup/wage-type-lookup.service.js +15 -3
- package/fesm2015/senior-gestao-pessoas-hcm-entity-lookups.js +54 -21
- package/fesm2015/senior-gestao-pessoas-hcm-entity-lookups.js.map +1 -1
- package/fesm5/senior-gestao-pessoas-hcm-entity-lookups.js +54 -21
- package/fesm5/senior-gestao-pessoas-hcm-entity-lookups.js.map +1 -1
- package/lookups/calculation-definition-lookup/calculation-definition-lookup.component.d.ts +2 -2
- package/lookups/calculation-definition-lookup/calculation-definition-lookup.service.d.ts +3 -3
- package/lookups/variable-entry-lookup/variable-entry-lookup.component.d.ts +3 -3
- package/lookups/variable-entry-lookup/variable-entry-lookup.service.d.ts +1 -1
- package/lookups/wage-type-lookup/wage-type-lookup.component.d.ts +1 -0
- package/lookups/wage-type-lookup/wage-type-lookup.service.d.ts +3 -1
- package/package.json +1 -1
- package/senior-gestao-pessoas-hcm-entity-lookups.metadata.json +1 -1
|
@@ -4961,6 +4961,9 @@
|
|
|
4961
4961
|
this.wageTypeLookupSubject = new rxjs.Subject();
|
|
4962
4962
|
this.ngUnsubscribe = new rxjs.Subject();
|
|
4963
4963
|
}
|
|
4964
|
+
WageTypeLookupService.prototype.setDisplayFields = function (fields) {
|
|
4965
|
+
this.wageTypeLookupDisplayFields = fields;
|
|
4966
|
+
};
|
|
4964
4967
|
WageTypeLookupService.prototype.getFormField = function () {
|
|
4965
4968
|
var _this = this;
|
|
4966
4969
|
return new angularComponents.FormField({
|
|
@@ -4990,7 +4993,16 @@
|
|
|
4990
4993
|
type: angularComponents.FieldType.Lookup,
|
|
4991
4994
|
});
|
|
4992
4995
|
};
|
|
4993
|
-
WageTypeLookupService.prototype.getWageTypeSearchFields = function () {
|
|
4996
|
+
WageTypeLookupService.prototype.getWageTypeSearchFields = function (displayFields) {
|
|
4997
|
+
var fields = this.getWageTypeLookupFields();
|
|
4998
|
+
if (displayFields && displayFields.length > 0) {
|
|
4999
|
+
return displayFields
|
|
5000
|
+
.map(function (fieldName) { return fields.find(function (field) { return field.name === fieldName; }); })
|
|
5001
|
+
.filter(function (field) { return field !== undefined; });
|
|
5002
|
+
}
|
|
5003
|
+
return fields;
|
|
5004
|
+
};
|
|
5005
|
+
WageTypeLookupService.prototype.getWageTypeLookupFields = function () {
|
|
4994
5006
|
return [
|
|
4995
5007
|
new angularComponents.FormField({
|
|
4996
5008
|
label: this.translate.instant(this.configService.getTranslationPrefix() + ".wage_type_table_code"),
|
|
@@ -5011,7 +5023,7 @@
|
|
|
5011
5023
|
label: this.translate.instant(this.configService.getTranslationPrefix() + ".wage_type_short_name"),
|
|
5012
5024
|
name: "shortName",
|
|
5013
5025
|
type: angularComponents.FieldType.String,
|
|
5014
|
-
})
|
|
5026
|
+
})
|
|
5015
5027
|
];
|
|
5016
5028
|
};
|
|
5017
5029
|
WageTypeLookupService.prototype.onWageTypeLookupRequest = function (event) {
|
|
@@ -5083,12 +5095,14 @@
|
|
|
5083
5095
|
_this.configService = configService;
|
|
5084
5096
|
_this.structureService = structureService;
|
|
5085
5097
|
_this.wageTypeLookupService = wageTypeLookupService;
|
|
5098
|
+
_this.displayFields = ['wageTypeTable.code', 'wageTypeTable.name', 'code', 'shortName'];
|
|
5086
5099
|
_this.controlName = "wageType";
|
|
5087
5100
|
return _this;
|
|
5088
5101
|
}
|
|
5089
5102
|
WageTypeLookupComponent.prototype.ngOnInit = function () {
|
|
5090
|
-
this.
|
|
5091
|
-
this.
|
|
5103
|
+
this.wageTypeLookupService.setDisplayFields(this.displayFields);
|
|
5104
|
+
this.wageTypeSearchFields = this.wageTypeLookupService.getWageTypeSearchFields(this.displayFields);
|
|
5105
|
+
this.wageTypeSearchGridFields = this.wageTypeLookupService.getWageTypeSearchFields(this.displayFields);
|
|
5092
5106
|
};
|
|
5093
5107
|
WageTypeLookupComponent.prototype.onWageTypeLookupRequest = function (value) {
|
|
5094
5108
|
var _this = this;
|
|
@@ -5114,6 +5128,9 @@
|
|
|
5114
5128
|
{ type: StructureFilterService },
|
|
5115
5129
|
{ type: WageTypeLookupService }
|
|
5116
5130
|
]; };
|
|
5131
|
+
__decorate([
|
|
5132
|
+
core.Input()
|
|
5133
|
+
], WageTypeLookupComponent.prototype, "displayFields", void 0);
|
|
5117
5134
|
WageTypeLookupComponent = __decorate([
|
|
5118
5135
|
core.Component({
|
|
5119
5136
|
// tslint:disable-next-line:component-selector
|
|
@@ -5217,7 +5234,9 @@
|
|
|
5217
5234
|
this.calculationDefinitionLookupDisplayFields = [
|
|
5218
5235
|
'code',
|
|
5219
5236
|
'calculationType',
|
|
5220
|
-
'competence'
|
|
5237
|
+
'competence',
|
|
5238
|
+
'company.codEmp',
|
|
5239
|
+
'company.nomEmp'
|
|
5221
5240
|
];
|
|
5222
5241
|
this.calculationDefinitionLookupSeparator = ' - ';
|
|
5223
5242
|
this.calculationDefinitionSearchSubject = new rxjs.Subject();
|
|
@@ -5256,7 +5275,7 @@
|
|
|
5256
5275
|
type: angularComponents.FieldType.Lookup
|
|
5257
5276
|
});
|
|
5258
5277
|
};
|
|
5259
|
-
CalculationDefinitionLookupService.prototype.getCalculationDefinitionSearchFields = function (
|
|
5278
|
+
CalculationDefinitionLookupService.prototype.getCalculationDefinitionSearchFields = function (displayFields) {
|
|
5260
5279
|
var fields = __spread(this.getCalculationDefinitionLookupFields(), [
|
|
5261
5280
|
new angularComponents.FormField({
|
|
5262
5281
|
label: this.translate.instant(this.configService.getTranslationPrefix() + ".calculation_type"),
|
|
@@ -5266,8 +5285,10 @@
|
|
|
5266
5285
|
type: angularComponents.FieldType.Enum
|
|
5267
5286
|
})
|
|
5268
5287
|
]);
|
|
5269
|
-
if (
|
|
5270
|
-
return
|
|
5288
|
+
if (displayFields && displayFields.length > 0) {
|
|
5289
|
+
return displayFields
|
|
5290
|
+
.map(function (fieldName) { return fields.find(function (field) { return field.name === fieldName; }); })
|
|
5291
|
+
.filter(function (field) { return field !== undefined; });
|
|
5271
5292
|
}
|
|
5272
5293
|
return fields;
|
|
5273
5294
|
};
|
|
@@ -5287,6 +5308,16 @@
|
|
|
5287
5308
|
dateFormat: 'mm/yy',
|
|
5288
5309
|
monthNamesShort: ["Jan", "Fev", "Mar", "Abr", "Mai", "Jun", "Jul", "Ago", "Set", "Out", "Nov", "Dez"]
|
|
5289
5310
|
})
|
|
5311
|
+
}),
|
|
5312
|
+
new angularComponents.FormField({
|
|
5313
|
+
label: this.translate.instant(this.configService.getTranslationPrefix() + ".calculation_definition_company_code"),
|
|
5314
|
+
name: 'company.codEmp',
|
|
5315
|
+
type: angularComponents.FieldType.Integer
|
|
5316
|
+
}),
|
|
5317
|
+
new angularComponents.FormField({
|
|
5318
|
+
label: this.translate.instant(this.configService.getTranslationPrefix() + ".calculation_definition_company_name"),
|
|
5319
|
+
name: 'company.nomEmp',
|
|
5320
|
+
type: angularComponents.FieldType.String
|
|
5290
5321
|
})
|
|
5291
5322
|
];
|
|
5292
5323
|
};
|
|
@@ -5398,14 +5429,14 @@
|
|
|
5398
5429
|
_this.configService = configService;
|
|
5399
5430
|
_this.structureService = structureService;
|
|
5400
5431
|
_this.calculationDefinitionLookupService = calculationDefinitionLookupService;
|
|
5401
|
-
_this.
|
|
5432
|
+
_this.displayFields = ['code', 'calculationType', 'competence', 'company.codEmp', 'company.nomEmp'];
|
|
5402
5433
|
_this.controlName = 'calculationDefinition';
|
|
5403
5434
|
return _this;
|
|
5404
5435
|
}
|
|
5405
5436
|
CalculationDefinitionLookupComponent.prototype.ngOnInit = function () {
|
|
5406
|
-
this.calculationDefinitionLookupService.setDisplayFields(this.
|
|
5407
|
-
this.calculationDefinitionSearchFields = this.calculationDefinitionLookupService.getCalculationDefinitionSearchFields(this.
|
|
5408
|
-
this.calculationDefinitionSearchGridFields = this.calculationDefinitionLookupService.getCalculationDefinitionSearchFields(this.
|
|
5437
|
+
this.calculationDefinitionLookupService.setDisplayFields(this.displayFields);
|
|
5438
|
+
this.calculationDefinitionSearchFields = this.calculationDefinitionLookupService.getCalculationDefinitionSearchFields(this.displayFields);
|
|
5439
|
+
this.calculationDefinitionSearchGridFields = this.calculationDefinitionLookupService.getCalculationDefinitionSearchFields(this.displayFields);
|
|
5409
5440
|
};
|
|
5410
5441
|
CalculationDefinitionLookupComponent.prototype.onCalculationDefinitionLookupRequest = function (value) {
|
|
5411
5442
|
var _this = this;
|
|
@@ -5433,7 +5464,7 @@
|
|
|
5433
5464
|
]; };
|
|
5434
5465
|
__decorate([
|
|
5435
5466
|
core.Input()
|
|
5436
|
-
], CalculationDefinitionLookupComponent.prototype, "
|
|
5467
|
+
], CalculationDefinitionLookupComponent.prototype, "displayFields", void 0);
|
|
5437
5468
|
__decorate([
|
|
5438
5469
|
core.Input()
|
|
5439
5470
|
], CalculationDefinitionLookupComponent.prototype, "filter", void 0);
|
|
@@ -5556,10 +5587,12 @@
|
|
|
5556
5587
|
VariableEntryLookupService.prototype.setDisplayFields = function (fields) {
|
|
5557
5588
|
this.variableEntryLookupDisplayFields = fields;
|
|
5558
5589
|
};
|
|
5559
|
-
VariableEntryLookupService.prototype.getVariableEntrySearchFields = function (
|
|
5590
|
+
VariableEntryLookupService.prototype.getVariableEntrySearchFields = function (displayFields) {
|
|
5560
5591
|
var fields = this.getVariableEntryLookupFields();
|
|
5561
|
-
if (
|
|
5562
|
-
return
|
|
5592
|
+
if (displayFields && displayFields.length > 0) {
|
|
5593
|
+
return displayFields
|
|
5594
|
+
.map(function (fieldName) { return fields.find(function (field) { return field.name === fieldName; }); })
|
|
5595
|
+
.filter(function (field) { return field !== undefined; });
|
|
5563
5596
|
}
|
|
5564
5597
|
return fields;
|
|
5565
5598
|
};
|
|
@@ -5720,7 +5753,7 @@
|
|
|
5720
5753
|
_this.configService = configService;
|
|
5721
5754
|
_this.structureService = structureService;
|
|
5722
5755
|
_this.variableEntryLookupService = variableEntryLookupService;
|
|
5723
|
-
_this.
|
|
5756
|
+
_this.displayFields = [
|
|
5724
5757
|
'calculationDefinition.calculationType',
|
|
5725
5758
|
'calculationDefinition.competence',
|
|
5726
5759
|
'wageType.code',
|
|
@@ -5731,9 +5764,9 @@
|
|
|
5731
5764
|
return _this;
|
|
5732
5765
|
}
|
|
5733
5766
|
VariableEntryLookupComponent.prototype.ngOnInit = function () {
|
|
5734
|
-
this.variableEntryLookupService.setDisplayFields(this.
|
|
5735
|
-
this.variableEntrySearchFields = this.variableEntryLookupService.getVariableEntrySearchFields(this.
|
|
5736
|
-
this.variableEntrySearchGridFields = this.variableEntryLookupService.getVariableEntrySearchFields(this.
|
|
5767
|
+
this.variableEntryLookupService.setDisplayFields(this.displayFields);
|
|
5768
|
+
this.variableEntrySearchFields = this.variableEntryLookupService.getVariableEntrySearchFields(this.displayFields);
|
|
5769
|
+
this.variableEntrySearchGridFields = this.variableEntryLookupService.getVariableEntrySearchFields(this.displayFields);
|
|
5737
5770
|
};
|
|
5738
5771
|
VariableEntryLookupComponent.prototype.onVariableEntryLookupRequest = function (value) {
|
|
5739
5772
|
var _this = this;
|
|
@@ -5764,7 +5797,7 @@
|
|
|
5764
5797
|
], VariableEntryLookupComponent.prototype, "employeeId", void 0);
|
|
5765
5798
|
__decorate([
|
|
5766
5799
|
core.Input()
|
|
5767
|
-
], VariableEntryLookupComponent.prototype, "
|
|
5800
|
+
], VariableEntryLookupComponent.prototype, "displayFields", void 0);
|
|
5768
5801
|
VariableEntryLookupComponent = __decorate([
|
|
5769
5802
|
core.Component({
|
|
5770
5803
|
selector: 'flx-variable-entry-lookup',
|