@senior-gestao-pessoas/hcm-entity-lookups 5.2.1 → 5.3.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.
Files changed (33) hide show
  1. package/bundles/senior-gestao-pessoas-hcm-entity-lookups.umd.js +30 -44
  2. package/bundles/senior-gestao-pessoas-hcm-entity-lookups.umd.js.map +1 -1
  3. package/bundles/senior-gestao-pessoas-hcm-entity-lookups.umd.min.js +1 -1
  4. package/bundles/senior-gestao-pessoas-hcm-entity-lookups.umd.min.js.map +1 -1
  5. package/core/dto/lookup-service-config.d.ts +1 -0
  6. package/esm2015/core/dto/lookup-service-config.js +1 -1
  7. package/esm2015/lookups/fgts-taxation-lookup/fgts-taxation-lookup.component.js +4 -9
  8. package/esm2015/lookups/fgts-taxation-lookup/fgts-taxation-lookup.service.js +5 -8
  9. package/esm2015/lookups/inss-taxation-lookup/inss-taxation-lookup.component.js +4 -9
  10. package/esm2015/lookups/inss-taxation-lookup/inss-taxation-lookup.service.js +5 -8
  11. package/esm2015/lookups/irrf-taxation-lookup/irrf-taxation-lookup.component.js +4 -9
  12. package/esm2015/lookups/irrf-taxation-lookup/irrf-taxation-lookup.service.js +5 -8
  13. package/esm2015/lookups/pis-pasep-taxation-lookup/pis-pasep-taxation-lookup.service.js +13 -3
  14. package/esm5/core/dto/lookup-service-config.js +1 -1
  15. package/esm5/lookups/fgts-taxation-lookup/fgts-taxation-lookup.component.js +4 -9
  16. package/esm5/lookups/fgts-taxation-lookup/fgts-taxation-lookup.service.js +5 -8
  17. package/esm5/lookups/inss-taxation-lookup/inss-taxation-lookup.component.js +4 -9
  18. package/esm5/lookups/inss-taxation-lookup/inss-taxation-lookup.service.js +5 -8
  19. package/esm5/lookups/irrf-taxation-lookup/irrf-taxation-lookup.component.js +4 -9
  20. package/esm5/lookups/irrf-taxation-lookup/irrf-taxation-lookup.service.js +5 -8
  21. package/esm5/lookups/pis-pasep-taxation-lookup/pis-pasep-taxation-lookup.service.js +13 -3
  22. package/fesm2015/senior-gestao-pessoas-hcm-entity-lookups.js +30 -44
  23. package/fesm2015/senior-gestao-pessoas-hcm-entity-lookups.js.map +1 -1
  24. package/fesm5/senior-gestao-pessoas-hcm-entity-lookups.js +30 -44
  25. package/fesm5/senior-gestao-pessoas-hcm-entity-lookups.js.map +1 -1
  26. package/lookups/fgts-taxation-lookup/fgts-taxation-lookup.component.d.ts +0 -1
  27. package/lookups/fgts-taxation-lookup/fgts-taxation-lookup.service.d.ts +0 -2
  28. package/lookups/inss-taxation-lookup/inss-taxation-lookup.component.d.ts +0 -1
  29. package/lookups/inss-taxation-lookup/inss-taxation-lookup.service.d.ts +0 -2
  30. package/lookups/irrf-taxation-lookup/irrf-taxation-lookup.component.d.ts +0 -1
  31. package/lookups/irrf-taxation-lookup/irrf-taxation-lookup.service.d.ts +0 -2
  32. package/package.json +1 -1
  33. package/senior-gestao-pessoas-hcm-entity-lookups.metadata.json +1 -1
@@ -1005,12 +1005,22 @@
1005
1005
  PisPasepTaxationLookupService.prototype.getPisPasepTaxationSearchFields = function () {
1006
1006
  return [
1007
1007
  new angularComponents.FormField({
1008
- label: this.translate.instant(this.configService.getTranslationPrefix() + ".pis_pasep_taxation_code"),
1008
+ label: this.translate.instant(this.configService.getTranslationPrefix() + ".pis_pasep_taxation_group_code_grid"),
1009
+ name: "pisPasepTaxationGroup.code",
1010
+ type: angularComponents.FieldType.Integer
1011
+ }),
1012
+ new angularComponents.FormField({
1013
+ label: this.translate.instant(this.configService.getTranslationPrefix() + ".pis_pasep_taxation_group_name_grid"),
1014
+ name: "pisPasepTaxationGroup.description",
1015
+ type: angularComponents.FieldType.String
1016
+ }),
1017
+ new angularComponents.FormField({
1018
+ label: this.translate.instant(this.configService.getTranslationPrefix() + ".pis_pasep_taxation_code_grid"),
1009
1019
  name: "code",
1010
1020
  type: angularComponents.FieldType.Integer
1011
1021
  }),
1012
1022
  new angularComponents.FormField({
1013
- label: this.translate.instant(this.configService.getTranslationPrefix() + ".pis_pasep_taxation_description"),
1023
+ label: this.translate.instant(this.configService.getTranslationPrefix() + ".pis_pasep_taxation_description_grid"),
1014
1024
  name: "description",
1015
1025
  type: angularComponents.FieldType.String
1016
1026
  }),
@@ -9404,10 +9414,10 @@
9404
9414
  this.translate = translate;
9405
9415
  this.configService = configService;
9406
9416
  this.fgtsTaxationService = fgtsTaxationService;
9407
- this.fgtsTaxationDisplayFields = ["code", "description", "fgtsTaxationGroup.code", "fgtsTaxationGroup.description"];
9408
9417
  this.accumulatorTypeOptions = getAccumulatorTypeOptions(this.configService, this.translate);
9409
9418
  this.lookupServiceConfig = {
9410
- lookupDisplayFields: this.fgtsTaxationDisplayFields,
9419
+ lookupDisplayFields: ["code", "description", "fgtsTaxationGroup.code", "fgtsTaxationGroup.description"],
9420
+ lookupSuggestionFields: ["code", "description"],
9411
9421
  lookupSeparator: " - ",
9412
9422
  searchSubject: new rxjs.Subject(),
9413
9423
  lookupSubject: new rxjs.Subject(),
@@ -9442,9 +9452,6 @@
9442
9452
  };
9443
9453
  this.ngUnsubscribe = new rxjs.Subject();
9444
9454
  }
9445
- FgtsTaxationLookupService.prototype.setDisplayFields = function (fields) {
9446
- this.fgtsTaxationDisplayFields = fields;
9447
- };
9448
9455
  FgtsTaxationLookupService.prototype.updateSuggestions = function (value) {
9449
9456
  if (value === null || value === void 0 ? void 0 : value[this.lookupServiceConfig.entityName]) {
9450
9457
  value[this.lookupServiceConfig.entityName].label = this.getSuggestionValue(this.lookupServiceConfig.lookupDisplayFields, this.lookupServiceConfig.entityName, value, this.lookupServiceConfig.lookupSeparator);
@@ -9529,7 +9536,7 @@
9529
9536
  };
9530
9537
  FgtsTaxationLookupService.prototype.getLabelForMaping = function (item) {
9531
9538
  var _this = this;
9532
- return this.lookupServiceConfig.lookupDisplayFields
9539
+ return this.lookupServiceConfig.lookupSuggestionFields
9533
9540
  .map(function (field) {
9534
9541
  if (field === "name" && !(item === null || item === void 0 ? void 0 : item.name)) {
9535
9542
  item.name = _this.translate
@@ -9549,7 +9556,7 @@
9549
9556
  };
9550
9557
  FgtsTaxationLookupService.prototype.onFgtsTaxationLookupRequestObservable = function (value, additionalFilter, filter) {
9551
9558
  var _this = this;
9552
- var sort = this.fgtsTaxationDisplayFields.map(function (field) { return ({
9559
+ var sort = this.lookupServiceConfig.lookupDisplayFields.map(function (field) { return ({
9553
9560
  field: field,
9554
9561
  order: 1
9555
9562
  }); });
@@ -9617,7 +9624,6 @@
9617
9624
  _this.configService = configService;
9618
9625
  _this.structerService = structerService;
9619
9626
  _this.fgtsTaxationLookupService = fgtsTaxationLookupService;
9620
- _this.displayFields = ["fgtsTaxationGroup.code", "fgtsTaxationGroup.description", "code", "description", "accumulatorType"];
9621
9627
  _this.controlName = "fgtsTaxation";
9622
9628
  _this.entity = "fgtsTaxation";
9623
9629
  _this.domain = "tax_obligation";
@@ -9626,9 +9632,8 @@
9626
9632
  return _this;
9627
9633
  }
9628
9634
  FgtsTaxationLookupComponent.prototype.ngOnInit = function () {
9629
- this.fgtsTaxationLookupService.setDisplayFields(this.displayFields);
9630
- this.fgtsTaxationSearchFields = this.fgtsTaxationLookupService.getFgtsTaxationSearchFields(this.displayFields);
9631
- this.fgtsTaxationSearchGridFields = this.fgtsTaxationLookupService.getFgtsTaxationSearchFields(this.displayFields);
9635
+ this.fgtsTaxationSearchFields = this.fgtsTaxationLookupService.getFgtsTaxationSearchFields(this.fgtsTaxationLookupService.lookupServiceConfig.lookupDisplayFields);
9636
+ this.fgtsTaxationSearchGridFields = this.fgtsTaxationLookupService.getFgtsTaxationSearchFields(this.fgtsTaxationLookupService.lookupServiceConfig.lookupDisplayFields);
9632
9637
  };
9633
9638
  FgtsTaxationLookupComponent.prototype.onFgtsTaxationLookupRequest = function (value) {
9634
9639
  var _this = this;
@@ -9654,9 +9659,6 @@
9654
9659
  { type: StructureFilterService },
9655
9660
  { type: FgtsTaxationLookupService }
9656
9661
  ]; };
9657
- __decorate([
9658
- core.Input()
9659
- ], FgtsTaxationLookupComponent.prototype, "displayFields", void 0);
9660
9662
  FgtsTaxationLookupComponent = __decorate([
9661
9663
  core.Component({
9662
9664
  selector: "hcm-fgts-taxation-lookup",
@@ -9724,10 +9726,10 @@
9724
9726
  this.translate = translate;
9725
9727
  this.configService = configService;
9726
9728
  this.inssTaxationService = inssTaxationService;
9727
- this.inssTaxationDisplayFields = ["code", "description", "inssTaxationGroup.code", "inssTaxationGroup.description"];
9728
9729
  this.accumulatorTypeOptions = getAccumulatorTypeOptions(this.configService, this.translate);
9729
9730
  this.lookupServiceConfig = {
9730
- lookupDisplayFields: this.inssTaxationDisplayFields,
9731
+ lookupDisplayFields: ["code", "description", "inssTaxationGroup.code", "inssTaxationGroup.description", "accumulatorType"],
9732
+ lookupSuggestionFields: ["code", "description"],
9731
9733
  lookupSeparator: " - ",
9732
9734
  searchSubject: new rxjs.Subject(),
9733
9735
  lookupSubject: new rxjs.Subject(),
@@ -9762,9 +9764,6 @@
9762
9764
  };
9763
9765
  this.ngUnsubscribe = new rxjs.Subject();
9764
9766
  }
9765
- InssTaxationLookupService.prototype.setDisplayFields = function (fields) {
9766
- this.inssTaxationDisplayFields = fields;
9767
- };
9768
9767
  InssTaxationLookupService.prototype.updateSuggestions = function (value) {
9769
9768
  if (value === null || value === void 0 ? void 0 : value[this.lookupServiceConfig.entityName]) {
9770
9769
  value[this.lookupServiceConfig.entityName].label = this.getSuggestionValue(this.lookupServiceConfig.lookupDisplayFields, this.lookupServiceConfig.entityName, value, this.lookupServiceConfig.lookupSeparator);
@@ -9849,7 +9848,7 @@
9849
9848
  };
9850
9849
  InssTaxationLookupService.prototype.getLabelForMaping = function (item) {
9851
9850
  var _this = this;
9852
- return this.lookupServiceConfig.lookupDisplayFields
9851
+ return this.lookupServiceConfig.lookupSuggestionFields
9853
9852
  .map(function (field) {
9854
9853
  if (field === "name" && !(item === null || item === void 0 ? void 0 : item.name)) {
9855
9854
  item.name = _this.translate
@@ -9869,7 +9868,7 @@
9869
9868
  };
9870
9869
  InssTaxationLookupService.prototype.onInssTaxationLookupRequestObservable = function (value, additionalFilter, filter) {
9871
9870
  var _this = this;
9872
- var sort = this.inssTaxationDisplayFields.map(function (field) { return ({
9871
+ var sort = this.lookupServiceConfig.lookupDisplayFields.map(function (field) { return ({
9873
9872
  field: field,
9874
9873
  order: 1
9875
9874
  }); });
@@ -9937,7 +9936,6 @@
9937
9936
  _this.configService = configService;
9938
9937
  _this.structerService = structerService;
9939
9938
  _this.inssTaxationLookupService = inssTaxationLookupService;
9940
- _this.displayFields = ["inssTaxationGroup.code", "inssTaxationGroup.description", "code", "description"];
9941
9939
  _this.controlName = "inssTaxation";
9942
9940
  _this.entity = "inssTaxation";
9943
9941
  _this.domain = "tax_obligation";
@@ -9946,9 +9944,8 @@
9946
9944
  return _this;
9947
9945
  }
9948
9946
  InssTaxationLookupComponent.prototype.ngOnInit = function () {
9949
- this.inssTaxationLookupService.setDisplayFields(this.displayFields);
9950
- this.inssTaxationSearchFields = this.inssTaxationLookupService.getInssTaxationSearchFields(this.displayFields);
9951
- this.inssTaxationSearchGridFields = this.inssTaxationLookupService.getInssTaxationSearchFields(this.displayFields);
9947
+ this.inssTaxationSearchFields = this.inssTaxationLookupService.getInssTaxationSearchFields(this.inssTaxationLookupService.lookupServiceConfig.lookupDisplayFields);
9948
+ this.inssTaxationSearchGridFields = this.inssTaxationLookupService.getInssTaxationSearchFields(this.inssTaxationLookupService.lookupServiceConfig.lookupDisplayFields);
9952
9949
  };
9953
9950
  InssTaxationLookupComponent.prototype.onInssTaxationLookupRequest = function (value) {
9954
9951
  var _this = this;
@@ -9974,9 +9971,6 @@
9974
9971
  { type: StructureFilterService },
9975
9972
  { type: InssTaxationLookupService }
9976
9973
  ]; };
9977
- __decorate([
9978
- core.Input()
9979
- ], InssTaxationLookupComponent.prototype, "displayFields", void 0);
9980
9974
  InssTaxationLookupComponent = __decorate([
9981
9975
  core.Component({
9982
9976
  selector: "hcm-inss-taxation-lookup",
@@ -10044,10 +10038,10 @@
10044
10038
  this.translate = translate;
10045
10039
  this.configService = configService;
10046
10040
  this.irrfTaxationService = irrfTaxationService;
10047
- this.irrfTaxationDisplayFields = ["code", "description", "irrfTaxationGroup.code", "irrfTaxationGroup.description"];
10048
10041
  this.accumulatorTypeOptions = getAccumulatorTypeOptions(this.configService, this.translate);
10049
10042
  this.lookupServiceConfig = {
10050
- lookupDisplayFields: this.irrfTaxationDisplayFields,
10043
+ lookupDisplayFields: ["code", "description", "irrfTaxationGroup.code", "irrfTaxationGroup.description"],
10044
+ lookupSuggestionFields: ["code", "description"],
10051
10045
  lookupSeparator: " - ",
10052
10046
  searchSubject: new rxjs.Subject(),
10053
10047
  lookupSubject: new rxjs.Subject(),
@@ -10082,9 +10076,6 @@
10082
10076
  };
10083
10077
  this.ngUnsubscribe = new rxjs.Subject();
10084
10078
  }
10085
- IrrfTaxationLookupService.prototype.setDisplayFields = function (fields) {
10086
- this.irrfTaxationDisplayFields = fields;
10087
- };
10088
10079
  IrrfTaxationLookupService.prototype.updateSuggestions = function (value) {
10089
10080
  if (value === null || value === void 0 ? void 0 : value[this.lookupServiceConfig.entityName]) {
10090
10081
  value[this.lookupServiceConfig.entityName].label = this.getSuggestionValue(this.lookupServiceConfig.lookupDisplayFields, this.lookupServiceConfig.entityName, value, this.lookupServiceConfig.lookupSeparator);
@@ -10169,7 +10160,7 @@
10169
10160
  };
10170
10161
  IrrfTaxationLookupService.prototype.getLabelForMaping = function (item) {
10171
10162
  var _this = this;
10172
- return this.lookupServiceConfig.lookupDisplayFields
10163
+ return this.lookupServiceConfig.lookupSuggestionFields
10173
10164
  .map(function (field) {
10174
10165
  if (field === "name" && !(item === null || item === void 0 ? void 0 : item.name)) {
10175
10166
  item.name = _this.translate
@@ -10189,7 +10180,7 @@
10189
10180
  };
10190
10181
  IrrfTaxationLookupService.prototype.onIrrfTaxationLookupRequestObservable = function (value, additionalFilter, filter) {
10191
10182
  var _this = this;
10192
- var sort = this.irrfTaxationDisplayFields.map(function (field) { return ({
10183
+ var sort = this.lookupServiceConfig.lookupDisplayFields.map(function (field) { return ({
10193
10184
  field: field,
10194
10185
  order: 1
10195
10186
  }); });
@@ -10257,7 +10248,6 @@
10257
10248
  _this.configService = configService;
10258
10249
  _this.structerService = structerService;
10259
10250
  _this.irrfTaxationLookupService = irrfTaxationLookupService;
10260
- _this.displayFields = ["irrfTaxationGroup.code", "irrfTaxationGroup.description", "code", "description", "accumulatorType"];
10261
10251
  _this.controlName = "irrfTaxation";
10262
10252
  _this.entity = "irrfTaxation";
10263
10253
  _this.domain = "tax_obligation";
@@ -10266,9 +10256,8 @@
10266
10256
  return _this;
10267
10257
  }
10268
10258
  IrrfTaxationLookupComponent.prototype.ngOnInit = function () {
10269
- this.irrfTaxationLookupService.setDisplayFields(this.displayFields);
10270
- this.irrfTaxationSearchFields = this.irrfTaxationLookupService.getIrrfTaxationSearchFields(this.displayFields);
10271
- this.irrfTaxationSearchGridFields = this.irrfTaxationLookupService.getIrrfTaxationSearchFields(this.displayFields);
10259
+ this.irrfTaxationSearchFields = this.irrfTaxationLookupService.getIrrfTaxationSearchFields(this.irrfTaxationLookupService.lookupServiceConfig.lookupDisplayFields);
10260
+ this.irrfTaxationSearchGridFields = this.irrfTaxationLookupService.getIrrfTaxationSearchFields(this.irrfTaxationLookupService.lookupServiceConfig.lookupDisplayFields);
10272
10261
  };
10273
10262
  IrrfTaxationLookupComponent.prototype.onIrrfTaxationLookupRequest = function (value) {
10274
10263
  var _this = this;
@@ -10294,9 +10283,6 @@
10294
10283
  { type: StructureFilterService },
10295
10284
  { type: IrrfTaxationLookupService }
10296
10285
  ]; };
10297
- __decorate([
10298
- core.Input()
10299
- ], IrrfTaxationLookupComponent.prototype, "displayFields", void 0);
10300
10286
  IrrfTaxationLookupComponent = __decorate([
10301
10287
  core.Component({
10302
10288
  selector: "hcm-irrf-taxation-lookup",