@senior-gestao-pessoas/hcm-entity-lookups 5.2.1 → 5.3.0-develop-5bf4eb10
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 +41 -54
- 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/core/dto/lookup-service-config.d.ts +1 -0
- package/esm2015/core/dto/lookup-service-config.js +1 -1
- package/esm2015/lookups/calculation-definition-lookup/calculation-definition-lookup.service.js +6 -8
- package/esm2015/lookups/fgts-taxation-lookup/fgts-taxation-lookup.component.js +4 -9
- package/esm2015/lookups/fgts-taxation-lookup/fgts-taxation-lookup.service.js +5 -8
- package/esm2015/lookups/inss-taxation-lookup/inss-taxation-lookup.component.js +4 -9
- package/esm2015/lookups/inss-taxation-lookup/inss-taxation-lookup.service.js +5 -8
- package/esm2015/lookups/irrf-taxation-lookup/irrf-taxation-lookup.component.js +4 -9
- package/esm2015/lookups/irrf-taxation-lookup/irrf-taxation-lookup.service.js +5 -8
- package/esm2015/lookups/pis-pasep-taxation-lookup/pis-pasep-taxation-lookup.service.js +13 -3
- package/esm2015/shared/interceptors/filter-module-interceptor/filter-module.interceptor.js +8 -5
- package/esm5/core/dto/lookup-service-config.js +1 -1
- package/esm5/lookups/calculation-definition-lookup/calculation-definition-lookup.service.js +6 -8
- package/esm5/lookups/fgts-taxation-lookup/fgts-taxation-lookup.component.js +4 -9
- package/esm5/lookups/fgts-taxation-lookup/fgts-taxation-lookup.service.js +5 -8
- package/esm5/lookups/inss-taxation-lookup/inss-taxation-lookup.component.js +4 -9
- package/esm5/lookups/inss-taxation-lookup/inss-taxation-lookup.service.js +5 -8
- package/esm5/lookups/irrf-taxation-lookup/irrf-taxation-lookup.component.js +4 -9
- package/esm5/lookups/irrf-taxation-lookup/irrf-taxation-lookup.service.js +5 -8
- package/esm5/lookups/pis-pasep-taxation-lookup/pis-pasep-taxation-lookup.service.js +13 -3
- package/esm5/shared/interceptors/filter-module-interceptor/filter-module.interceptor.js +8 -5
- package/fesm2015/senior-gestao-pessoas-hcm-entity-lookups.js +41 -54
- package/fesm2015/senior-gestao-pessoas-hcm-entity-lookups.js.map +1 -1
- package/fesm5/senior-gestao-pessoas-hcm-entity-lookups.js +41 -54
- package/fesm5/senior-gestao-pessoas-hcm-entity-lookups.js.map +1 -1
- package/lookups/fgts-taxation-lookup/fgts-taxation-lookup.component.d.ts +0 -1
- package/lookups/fgts-taxation-lookup/fgts-taxation-lookup.service.d.ts +0 -2
- package/lookups/inss-taxation-lookup/inss-taxation-lookup.component.d.ts +0 -1
- package/lookups/inss-taxation-lookup/inss-taxation-lookup.service.d.ts +0 -2
- package/lookups/irrf-taxation-lookup/irrf-taxation-lookup.component.d.ts +0 -1
- package/lookups/irrf-taxation-lookup/irrf-taxation-lookup.service.d.ts +0 -2
- package/package.json +1 -1
- package/senior-gestao-pessoas-hcm-entity-lookups.metadata.json +1 -1
- package/shared/interceptors/filter-module-interceptor/filter-module.interceptor.d.ts +2 -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() + ".
|
|
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() + ".
|
|
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
|
}),
|
|
@@ -5702,8 +5712,8 @@
|
|
|
5702
5712
|
recordsLabel: this.translate.instant(this.configService.getTranslationPrefix() + ".records_found"),
|
|
5703
5713
|
required: function () { return true; },
|
|
5704
5714
|
searchEmptyTitle: this.translate.instant(this.configService.getTranslationPrefix() + ".nothing_found"),
|
|
5705
|
-
searchFields: this.getCalculationDefinitionSearchFields(),
|
|
5706
|
-
searchGridFields: this.getCalculationDefinitionSearchFields(),
|
|
5715
|
+
searchFields: this.getCalculationDefinitionSearchFields(this.calculationDefinitionLookupDisplayFields),
|
|
5716
|
+
searchGridFields: this.getCalculationDefinitionSearchFields(this.calculationDefinitionLookupDisplayFields),
|
|
5707
5717
|
searchObservable: this.calculationDefinitionSearchSubject,
|
|
5708
5718
|
searchTitle: this.translate.instant(this.configService.getTranslationPrefix() + ".calculation_definition_search_title"),
|
|
5709
5719
|
selectLabel: this.translate.instant(this.configService.getTranslationPrefix() + ".select"),
|
|
@@ -5776,8 +5786,7 @@
|
|
|
5776
5786
|
field: field,
|
|
5777
5787
|
order: 1
|
|
5778
5788
|
}); });
|
|
5779
|
-
var filterQuery = createLookupRequestFilter(value, this.getCalculationDefinitionSearchFields());
|
|
5780
|
-
filterQuery = getFiltersForCustomDisplayFields(filterQuery, filter);
|
|
5789
|
+
var filterQuery = createLookupRequestFilter(value, this.getCalculationDefinitionSearchFields(this.calculationDefinitionLookupDisplayFields));
|
|
5781
5790
|
var displayFields = this.calculationDefinitionLookupDisplayFields;
|
|
5782
5791
|
return this.calculationDefinitionService
|
|
5783
5792
|
.list({ sort: sort, filterQuery: filterQuery, displayFields: displayFields })
|
|
@@ -5793,8 +5802,7 @@
|
|
|
5793
5802
|
var first = event.first, rows = event.rows, multiSortMeta = event.multiSortMeta, filterData = event.filterData;
|
|
5794
5803
|
var page = first / rows;
|
|
5795
5804
|
var sort = multiSortMeta;
|
|
5796
|
-
var filterQuery = createSearchRequestFilter(filterData, this.getCalculationDefinitionSearchFields());
|
|
5797
|
-
filterQuery = getFiltersForCustomDisplayFields(filterQuery, filter);
|
|
5805
|
+
var filterQuery = createSearchRequestFilter(filterData, this.getCalculationDefinitionSearchFields(this.calculationDefinitionLookupDisplayFields));
|
|
5798
5806
|
var displayFields = this.calculationDefinitionLookupDisplayFields;
|
|
5799
5807
|
return this.calculationDefinitionService
|
|
5800
5808
|
.list({ page: page, sort: sort, filterQuery: filterQuery, displayFields: displayFields })
|
|
@@ -9404,10 +9412,10 @@
|
|
|
9404
9412
|
this.translate = translate;
|
|
9405
9413
|
this.configService = configService;
|
|
9406
9414
|
this.fgtsTaxationService = fgtsTaxationService;
|
|
9407
|
-
this.fgtsTaxationDisplayFields = ["code", "description", "fgtsTaxationGroup.code", "fgtsTaxationGroup.description"];
|
|
9408
9415
|
this.accumulatorTypeOptions = getAccumulatorTypeOptions(this.configService, this.translate);
|
|
9409
9416
|
this.lookupServiceConfig = {
|
|
9410
|
-
lookupDisplayFields:
|
|
9417
|
+
lookupDisplayFields: ["code", "description", "fgtsTaxationGroup.code", "fgtsTaxationGroup.description"],
|
|
9418
|
+
lookupSuggestionFields: ["code", "description"],
|
|
9411
9419
|
lookupSeparator: " - ",
|
|
9412
9420
|
searchSubject: new rxjs.Subject(),
|
|
9413
9421
|
lookupSubject: new rxjs.Subject(),
|
|
@@ -9442,9 +9450,6 @@
|
|
|
9442
9450
|
};
|
|
9443
9451
|
this.ngUnsubscribe = new rxjs.Subject();
|
|
9444
9452
|
}
|
|
9445
|
-
FgtsTaxationLookupService.prototype.setDisplayFields = function (fields) {
|
|
9446
|
-
this.fgtsTaxationDisplayFields = fields;
|
|
9447
|
-
};
|
|
9448
9453
|
FgtsTaxationLookupService.prototype.updateSuggestions = function (value) {
|
|
9449
9454
|
if (value === null || value === void 0 ? void 0 : value[this.lookupServiceConfig.entityName]) {
|
|
9450
9455
|
value[this.lookupServiceConfig.entityName].label = this.getSuggestionValue(this.lookupServiceConfig.lookupDisplayFields, this.lookupServiceConfig.entityName, value, this.lookupServiceConfig.lookupSeparator);
|
|
@@ -9529,7 +9534,7 @@
|
|
|
9529
9534
|
};
|
|
9530
9535
|
FgtsTaxationLookupService.prototype.getLabelForMaping = function (item) {
|
|
9531
9536
|
var _this = this;
|
|
9532
|
-
return this.lookupServiceConfig.
|
|
9537
|
+
return this.lookupServiceConfig.lookupSuggestionFields
|
|
9533
9538
|
.map(function (field) {
|
|
9534
9539
|
if (field === "name" && !(item === null || item === void 0 ? void 0 : item.name)) {
|
|
9535
9540
|
item.name = _this.translate
|
|
@@ -9549,7 +9554,7 @@
|
|
|
9549
9554
|
};
|
|
9550
9555
|
FgtsTaxationLookupService.prototype.onFgtsTaxationLookupRequestObservable = function (value, additionalFilter, filter) {
|
|
9551
9556
|
var _this = this;
|
|
9552
|
-
var sort = this.
|
|
9557
|
+
var sort = this.lookupServiceConfig.lookupDisplayFields.map(function (field) { return ({
|
|
9553
9558
|
field: field,
|
|
9554
9559
|
order: 1
|
|
9555
9560
|
}); });
|
|
@@ -9617,7 +9622,6 @@
|
|
|
9617
9622
|
_this.configService = configService;
|
|
9618
9623
|
_this.structerService = structerService;
|
|
9619
9624
|
_this.fgtsTaxationLookupService = fgtsTaxationLookupService;
|
|
9620
|
-
_this.displayFields = ["fgtsTaxationGroup.code", "fgtsTaxationGroup.description", "code", "description", "accumulatorType"];
|
|
9621
9625
|
_this.controlName = "fgtsTaxation";
|
|
9622
9626
|
_this.entity = "fgtsTaxation";
|
|
9623
9627
|
_this.domain = "tax_obligation";
|
|
@@ -9626,9 +9630,8 @@
|
|
|
9626
9630
|
return _this;
|
|
9627
9631
|
}
|
|
9628
9632
|
FgtsTaxationLookupComponent.prototype.ngOnInit = function () {
|
|
9629
|
-
this.fgtsTaxationLookupService.
|
|
9630
|
-
this.
|
|
9631
|
-
this.fgtsTaxationSearchGridFields = this.fgtsTaxationLookupService.getFgtsTaxationSearchFields(this.displayFields);
|
|
9633
|
+
this.fgtsTaxationSearchFields = this.fgtsTaxationLookupService.getFgtsTaxationSearchFields(this.fgtsTaxationLookupService.lookupServiceConfig.lookupDisplayFields);
|
|
9634
|
+
this.fgtsTaxationSearchGridFields = this.fgtsTaxationLookupService.getFgtsTaxationSearchFields(this.fgtsTaxationLookupService.lookupServiceConfig.lookupDisplayFields);
|
|
9632
9635
|
};
|
|
9633
9636
|
FgtsTaxationLookupComponent.prototype.onFgtsTaxationLookupRequest = function (value) {
|
|
9634
9637
|
var _this = this;
|
|
@@ -9654,9 +9657,6 @@
|
|
|
9654
9657
|
{ type: StructureFilterService },
|
|
9655
9658
|
{ type: FgtsTaxationLookupService }
|
|
9656
9659
|
]; };
|
|
9657
|
-
__decorate([
|
|
9658
|
-
core.Input()
|
|
9659
|
-
], FgtsTaxationLookupComponent.prototype, "displayFields", void 0);
|
|
9660
9660
|
FgtsTaxationLookupComponent = __decorate([
|
|
9661
9661
|
core.Component({
|
|
9662
9662
|
selector: "hcm-fgts-taxation-lookup",
|
|
@@ -9724,10 +9724,10 @@
|
|
|
9724
9724
|
this.translate = translate;
|
|
9725
9725
|
this.configService = configService;
|
|
9726
9726
|
this.inssTaxationService = inssTaxationService;
|
|
9727
|
-
this.inssTaxationDisplayFields = ["code", "description", "inssTaxationGroup.code", "inssTaxationGroup.description"];
|
|
9728
9727
|
this.accumulatorTypeOptions = getAccumulatorTypeOptions(this.configService, this.translate);
|
|
9729
9728
|
this.lookupServiceConfig = {
|
|
9730
|
-
lookupDisplayFields:
|
|
9729
|
+
lookupDisplayFields: ["code", "description", "inssTaxationGroup.code", "inssTaxationGroup.description", "accumulatorType"],
|
|
9730
|
+
lookupSuggestionFields: ["code", "description"],
|
|
9731
9731
|
lookupSeparator: " - ",
|
|
9732
9732
|
searchSubject: new rxjs.Subject(),
|
|
9733
9733
|
lookupSubject: new rxjs.Subject(),
|
|
@@ -9762,9 +9762,6 @@
|
|
|
9762
9762
|
};
|
|
9763
9763
|
this.ngUnsubscribe = new rxjs.Subject();
|
|
9764
9764
|
}
|
|
9765
|
-
InssTaxationLookupService.prototype.setDisplayFields = function (fields) {
|
|
9766
|
-
this.inssTaxationDisplayFields = fields;
|
|
9767
|
-
};
|
|
9768
9765
|
InssTaxationLookupService.prototype.updateSuggestions = function (value) {
|
|
9769
9766
|
if (value === null || value === void 0 ? void 0 : value[this.lookupServiceConfig.entityName]) {
|
|
9770
9767
|
value[this.lookupServiceConfig.entityName].label = this.getSuggestionValue(this.lookupServiceConfig.lookupDisplayFields, this.lookupServiceConfig.entityName, value, this.lookupServiceConfig.lookupSeparator);
|
|
@@ -9849,7 +9846,7 @@
|
|
|
9849
9846
|
};
|
|
9850
9847
|
InssTaxationLookupService.prototype.getLabelForMaping = function (item) {
|
|
9851
9848
|
var _this = this;
|
|
9852
|
-
return this.lookupServiceConfig.
|
|
9849
|
+
return this.lookupServiceConfig.lookupSuggestionFields
|
|
9853
9850
|
.map(function (field) {
|
|
9854
9851
|
if (field === "name" && !(item === null || item === void 0 ? void 0 : item.name)) {
|
|
9855
9852
|
item.name = _this.translate
|
|
@@ -9869,7 +9866,7 @@
|
|
|
9869
9866
|
};
|
|
9870
9867
|
InssTaxationLookupService.prototype.onInssTaxationLookupRequestObservable = function (value, additionalFilter, filter) {
|
|
9871
9868
|
var _this = this;
|
|
9872
|
-
var sort = this.
|
|
9869
|
+
var sort = this.lookupServiceConfig.lookupDisplayFields.map(function (field) { return ({
|
|
9873
9870
|
field: field,
|
|
9874
9871
|
order: 1
|
|
9875
9872
|
}); });
|
|
@@ -9937,7 +9934,6 @@
|
|
|
9937
9934
|
_this.configService = configService;
|
|
9938
9935
|
_this.structerService = structerService;
|
|
9939
9936
|
_this.inssTaxationLookupService = inssTaxationLookupService;
|
|
9940
|
-
_this.displayFields = ["inssTaxationGroup.code", "inssTaxationGroup.description", "code", "description"];
|
|
9941
9937
|
_this.controlName = "inssTaxation";
|
|
9942
9938
|
_this.entity = "inssTaxation";
|
|
9943
9939
|
_this.domain = "tax_obligation";
|
|
@@ -9946,9 +9942,8 @@
|
|
|
9946
9942
|
return _this;
|
|
9947
9943
|
}
|
|
9948
9944
|
InssTaxationLookupComponent.prototype.ngOnInit = function () {
|
|
9949
|
-
this.inssTaxationLookupService.
|
|
9950
|
-
this.
|
|
9951
|
-
this.inssTaxationSearchGridFields = this.inssTaxationLookupService.getInssTaxationSearchFields(this.displayFields);
|
|
9945
|
+
this.inssTaxationSearchFields = this.inssTaxationLookupService.getInssTaxationSearchFields(this.inssTaxationLookupService.lookupServiceConfig.lookupDisplayFields);
|
|
9946
|
+
this.inssTaxationSearchGridFields = this.inssTaxationLookupService.getInssTaxationSearchFields(this.inssTaxationLookupService.lookupServiceConfig.lookupDisplayFields);
|
|
9952
9947
|
};
|
|
9953
9948
|
InssTaxationLookupComponent.prototype.onInssTaxationLookupRequest = function (value) {
|
|
9954
9949
|
var _this = this;
|
|
@@ -9974,9 +9969,6 @@
|
|
|
9974
9969
|
{ type: StructureFilterService },
|
|
9975
9970
|
{ type: InssTaxationLookupService }
|
|
9976
9971
|
]; };
|
|
9977
|
-
__decorate([
|
|
9978
|
-
core.Input()
|
|
9979
|
-
], InssTaxationLookupComponent.prototype, "displayFields", void 0);
|
|
9980
9972
|
InssTaxationLookupComponent = __decorate([
|
|
9981
9973
|
core.Component({
|
|
9982
9974
|
selector: "hcm-inss-taxation-lookup",
|
|
@@ -10044,10 +10036,10 @@
|
|
|
10044
10036
|
this.translate = translate;
|
|
10045
10037
|
this.configService = configService;
|
|
10046
10038
|
this.irrfTaxationService = irrfTaxationService;
|
|
10047
|
-
this.irrfTaxationDisplayFields = ["code", "description", "irrfTaxationGroup.code", "irrfTaxationGroup.description"];
|
|
10048
10039
|
this.accumulatorTypeOptions = getAccumulatorTypeOptions(this.configService, this.translate);
|
|
10049
10040
|
this.lookupServiceConfig = {
|
|
10050
|
-
lookupDisplayFields:
|
|
10041
|
+
lookupDisplayFields: ["code", "description", "irrfTaxationGroup.code", "irrfTaxationGroup.description"],
|
|
10042
|
+
lookupSuggestionFields: ["code", "description"],
|
|
10051
10043
|
lookupSeparator: " - ",
|
|
10052
10044
|
searchSubject: new rxjs.Subject(),
|
|
10053
10045
|
lookupSubject: new rxjs.Subject(),
|
|
@@ -10082,9 +10074,6 @@
|
|
|
10082
10074
|
};
|
|
10083
10075
|
this.ngUnsubscribe = new rxjs.Subject();
|
|
10084
10076
|
}
|
|
10085
|
-
IrrfTaxationLookupService.prototype.setDisplayFields = function (fields) {
|
|
10086
|
-
this.irrfTaxationDisplayFields = fields;
|
|
10087
|
-
};
|
|
10088
10077
|
IrrfTaxationLookupService.prototype.updateSuggestions = function (value) {
|
|
10089
10078
|
if (value === null || value === void 0 ? void 0 : value[this.lookupServiceConfig.entityName]) {
|
|
10090
10079
|
value[this.lookupServiceConfig.entityName].label = this.getSuggestionValue(this.lookupServiceConfig.lookupDisplayFields, this.lookupServiceConfig.entityName, value, this.lookupServiceConfig.lookupSeparator);
|
|
@@ -10169,7 +10158,7 @@
|
|
|
10169
10158
|
};
|
|
10170
10159
|
IrrfTaxationLookupService.prototype.getLabelForMaping = function (item) {
|
|
10171
10160
|
var _this = this;
|
|
10172
|
-
return this.lookupServiceConfig.
|
|
10161
|
+
return this.lookupServiceConfig.lookupSuggestionFields
|
|
10173
10162
|
.map(function (field) {
|
|
10174
10163
|
if (field === "name" && !(item === null || item === void 0 ? void 0 : item.name)) {
|
|
10175
10164
|
item.name = _this.translate
|
|
@@ -10189,7 +10178,7 @@
|
|
|
10189
10178
|
};
|
|
10190
10179
|
IrrfTaxationLookupService.prototype.onIrrfTaxationLookupRequestObservable = function (value, additionalFilter, filter) {
|
|
10191
10180
|
var _this = this;
|
|
10192
|
-
var sort = this.
|
|
10181
|
+
var sort = this.lookupServiceConfig.lookupDisplayFields.map(function (field) { return ({
|
|
10193
10182
|
field: field,
|
|
10194
10183
|
order: 1
|
|
10195
10184
|
}); });
|
|
@@ -10257,7 +10246,6 @@
|
|
|
10257
10246
|
_this.configService = configService;
|
|
10258
10247
|
_this.structerService = structerService;
|
|
10259
10248
|
_this.irrfTaxationLookupService = irrfTaxationLookupService;
|
|
10260
|
-
_this.displayFields = ["irrfTaxationGroup.code", "irrfTaxationGroup.description", "code", "description", "accumulatorType"];
|
|
10261
10249
|
_this.controlName = "irrfTaxation";
|
|
10262
10250
|
_this.entity = "irrfTaxation";
|
|
10263
10251
|
_this.domain = "tax_obligation";
|
|
@@ -10266,9 +10254,8 @@
|
|
|
10266
10254
|
return _this;
|
|
10267
10255
|
}
|
|
10268
10256
|
IrrfTaxationLookupComponent.prototype.ngOnInit = function () {
|
|
10269
|
-
this.irrfTaxationLookupService.
|
|
10270
|
-
this.
|
|
10271
|
-
this.irrfTaxationSearchGridFields = this.irrfTaxationLookupService.getIrrfTaxationSearchFields(this.displayFields);
|
|
10257
|
+
this.irrfTaxationSearchFields = this.irrfTaxationLookupService.getIrrfTaxationSearchFields(this.irrfTaxationLookupService.lookupServiceConfig.lookupDisplayFields);
|
|
10258
|
+
this.irrfTaxationSearchGridFields = this.irrfTaxationLookupService.getIrrfTaxationSearchFields(this.irrfTaxationLookupService.lookupServiceConfig.lookupDisplayFields);
|
|
10272
10259
|
};
|
|
10273
10260
|
IrrfTaxationLookupComponent.prototype.onIrrfTaxationLookupRequest = function (value) {
|
|
10274
10261
|
var _this = this;
|
|
@@ -10294,9 +10281,6 @@
|
|
|
10294
10281
|
{ type: StructureFilterService },
|
|
10295
10282
|
{ type: IrrfTaxationLookupService }
|
|
10296
10283
|
]; };
|
|
10297
|
-
__decorate([
|
|
10298
|
-
core.Input()
|
|
10299
|
-
], IrrfTaxationLookupComponent.prototype, "displayFields", void 0);
|
|
10300
10284
|
IrrfTaxationLookupComponent = __decorate([
|
|
10301
10285
|
core.Component({
|
|
10302
10286
|
selector: "hcm-irrf-taxation-lookup",
|
|
@@ -12468,20 +12452,20 @@
|
|
|
12468
12452
|
// Core Module
|
|
12469
12453
|
|
|
12470
12454
|
var FILTER_KEY = 'filter';
|
|
12471
|
-
var EMPLOYEE_URL = "/hcm_contract/employment_contract/entities/employee";
|
|
12472
12455
|
var FILTER_MODULE_TYPES = new core.InjectionToken('FILTER_MODULE_TYPES');
|
|
12456
|
+
var EMPLOYEE_URL_PATTERN = /\/hcm_contract\/employment_contract\/entities\/employee(\/.*|\?.*)?$/;
|
|
12473
12457
|
var FilterModuleInterceptor = /** @class */ (function () {
|
|
12474
12458
|
function FilterModuleInterceptor(moduleTypes) {
|
|
12475
12459
|
this.moduleTypes = moduleTypes;
|
|
12476
12460
|
}
|
|
12477
12461
|
FilterModuleInterceptor.prototype.intercept = function (request, next) {
|
|
12478
|
-
var _a, _b
|
|
12479
|
-
if (!(
|
|
12462
|
+
var _a, _b;
|
|
12463
|
+
if (!this.isEmployeeUrl(request === null || request === void 0 ? void 0 : request.url) || !((_a = this.moduleTypes) === null || _a === void 0 ? void 0 : _a.length)) {
|
|
12480
12464
|
return next.handle(request);
|
|
12481
12465
|
}
|
|
12482
12466
|
var filterQuery = "(" + this.moduleTypes.map(function (m) { return "modules.moduleType eq '" + m + "'"; }).join(' or ') + ")";
|
|
12483
12467
|
var updatedRequest;
|
|
12484
|
-
if ((
|
|
12468
|
+
if ((_b = request === null || request === void 0 ? void 0 : request.params) === null || _b === void 0 ? void 0 : _b.has(FILTER_KEY)) {
|
|
12485
12469
|
var actualFilter = "(" + request.params.get(FILTER_KEY) + ")";
|
|
12486
12470
|
updatedRequest = request.clone({
|
|
12487
12471
|
setParams: {
|
|
@@ -12498,6 +12482,9 @@
|
|
|
12498
12482
|
}
|
|
12499
12483
|
return next.handle(updatedRequest);
|
|
12500
12484
|
};
|
|
12485
|
+
FilterModuleInterceptor.prototype.isEmployeeUrl = function (url) {
|
|
12486
|
+
return EMPLOYEE_URL_PATTERN.test(url);
|
|
12487
|
+
};
|
|
12501
12488
|
FilterModuleInterceptor.ctorParameters = function () { return [
|
|
12502
12489
|
{ type: Array, decorators: [{ type: core.Optional }, { type: core.Inject, args: [FILTER_MODULE_TYPES,] }] }
|
|
12503
12490
|
]; };
|