@senior-gestao-pessoas/hcm-entity-lookups 2.2.0 → 2.2.1

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 (46) hide show
  1. package/bundles/senior-gestao-pessoas-hcm-entity-lookups.umd.js +352 -130
  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 +2 -2
  4. package/bundles/senior-gestao-pessoas-hcm-entity-lookups.umd.min.js.map +1 -1
  5. package/core/entities/pis-pasep-taxation/index.d.ts +2 -0
  6. package/core/entities/pis-pasep-taxation/pis-pasep-taxation-dto.d.ts +11 -0
  7. package/core/entities/pis-pasep-taxation/pis-pasep-taxation.d.ts +15 -0
  8. package/core/entities/pis-pasep-taxation/pis-pasep-taxation.service.d.ts +13 -0
  9. package/core/entities/pis-pasep-taxation-group/pis-pasep-taxation-group-dto.d.ts +6 -0
  10. package/core/entities/pis-pasep-taxation-group/pis-pasep-taxation-group.d.ts +10 -0
  11. package/core/enums/accumulator-type.d.ts +10 -0
  12. package/esm2015/core/entities/pis-pasep-taxation/index.js +2 -0
  13. package/esm2015/core/entities/pis-pasep-taxation/pis-pasep-taxation-dto.js +1 -0
  14. package/esm2015/core/entities/pis-pasep-taxation/pis-pasep-taxation.js +31 -0
  15. package/esm2015/core/entities/pis-pasep-taxation/pis-pasep-taxation.service.js +27 -0
  16. package/esm2015/core/entities/pis-pasep-taxation-group/pis-pasep-taxation-group-dto.js +1 -0
  17. package/esm2015/core/entities/pis-pasep-taxation-group/pis-pasep-taxation-group.js +23 -0
  18. package/esm2015/core/enums/accumulator-type.js +12 -0
  19. package/esm2015/lookups/pis-pasep-taxation-lookup/pis-pasep-taxation-lookup.component.js +54 -0
  20. package/esm2015/lookups/pis-pasep-taxation-lookup/pis-pasep-taxation-lookup.module.js +25 -0
  21. package/esm2015/lookups/pis-pasep-taxation-lookup/pis-pasep-taxation-lookup.service.js +128 -0
  22. package/esm2015/public-api.js +4 -1
  23. package/esm2015/senior-gestao-pessoas-hcm-entity-lookups.js +32 -31
  24. package/esm5/core/entities/pis-pasep-taxation/index.js +2 -0
  25. package/esm5/core/entities/pis-pasep-taxation/pis-pasep-taxation-dto.js +1 -0
  26. package/esm5/core/entities/pis-pasep-taxation/pis-pasep-taxation.js +36 -0
  27. package/esm5/core/entities/pis-pasep-taxation/pis-pasep-taxation.service.js +30 -0
  28. package/esm5/core/entities/pis-pasep-taxation-group/pis-pasep-taxation-group-dto.js +1 -0
  29. package/esm5/core/entities/pis-pasep-taxation-group/pis-pasep-taxation-group.js +28 -0
  30. package/esm5/core/enums/accumulator-type.js +12 -0
  31. package/esm5/lookups/pis-pasep-taxation-lookup/pis-pasep-taxation-lookup.component.js +59 -0
  32. package/esm5/lookups/pis-pasep-taxation-lookup/pis-pasep-taxation-lookup.module.js +28 -0
  33. package/esm5/lookups/pis-pasep-taxation-lookup/pis-pasep-taxation-lookup.service.js +134 -0
  34. package/esm5/public-api.js +4 -1
  35. package/esm5/senior-gestao-pessoas-hcm-entity-lookups.js +32 -31
  36. package/fesm2015/senior-gestao-pessoas-hcm-entity-lookups.js +298 -97
  37. package/fesm2015/senior-gestao-pessoas-hcm-entity-lookups.js.map +1 -1
  38. package/fesm5/senior-gestao-pessoas-hcm-entity-lookups.js +318 -100
  39. package/fesm5/senior-gestao-pessoas-hcm-entity-lookups.js.map +1 -1
  40. package/lookups/pis-pasep-taxation-lookup/pis-pasep-taxation-lookup.component.d.ts +26 -0
  41. package/lookups/pis-pasep-taxation-lookup/pis-pasep-taxation-lookup.module.d.ts +2 -0
  42. package/lookups/pis-pasep-taxation-lookup/pis-pasep-taxation-lookup.service.d.ts +30 -0
  43. package/package.json +1 -1
  44. package/public-api.d.ts +3 -0
  45. package/senior-gestao-pessoas-hcm-entity-lookups.d.ts +31 -30
  46. package/senior-gestao-pessoas-hcm-entity-lookups.metadata.json +1 -1
@@ -1,8 +1,8 @@
1
1
  (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@seniorsistemas/angular-components'), require('@angular/common'), require('@angular/forms'), require('@ngx-translate/core'), require('primeng/inputtext'), require('@angular/common/http'), require('moment'), require('primeng/api'), require('rxjs'), require('rxjs/operators'), require('@angular/router'), require('@seniorsistemas/platform-components')) :
3
- typeof define === 'function' && define.amd ? define('@senior-gestao-pessoas/hcm-entity-lookups', ['exports', '@angular/core', '@seniorsistemas/angular-components', '@angular/common', '@angular/forms', '@ngx-translate/core', 'primeng/inputtext', '@angular/common/http', 'moment', 'primeng/api', 'rxjs', 'rxjs/operators', '@angular/router', '@seniorsistemas/platform-components'], factory) :
4
- (global = global || self, factory((global['senior-gestao-pessoas'] = global['senior-gestao-pessoas'] || {}, global['senior-gestao-pessoas']['hcm-entity-lookups'] = {}), global.ng.core, global.angularComponents, global.ng.common, global.ng.forms, global.core$1, global.inputtext, global.ng.common.http, global.moment$k, global.api, global.rxjs, global.rxjs.operators, global.ng.router, global.platformComponents));
5
- }(this, (function (exports, core, angularComponents, common, forms, core$1, inputtext, http, moment$k, api, rxjs, operators, router, platformComponents) { 'use strict';
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('@angular/forms'), require('@ngx-translate/core'), require('@seniorsistemas/angular-components'), require('primeng/inputtext'), require('@angular/common/http'), require('moment'), require('primeng/api'), require('rxjs'), require('rxjs/operators'), require('@angular/router'), require('@seniorsistemas/platform-components')) :
3
+ typeof define === 'function' && define.amd ? define('@senior-gestao-pessoas/hcm-entity-lookups', ['exports', '@angular/core', '@angular/common', '@angular/forms', '@ngx-translate/core', '@seniorsistemas/angular-components', 'primeng/inputtext', '@angular/common/http', 'moment', 'primeng/api', 'rxjs', 'rxjs/operators', '@angular/router', '@seniorsistemas/platform-components'], factory) :
4
+ (global = global || self, factory((global['senior-gestao-pessoas'] = global['senior-gestao-pessoas'] || {}, global['senior-gestao-pessoas']['hcm-entity-lookups'] = {}), global.ng.core, global.ng.common, global.ng.forms, global.core$1, global.angularComponents, global.inputtext, global.ng.common.http, global.moment$k, global.api, global.rxjs, global.rxjs.operators, global.ng.router, global.platformComponents));
5
+ }(this, (function (exports, core, common, forms, core$1, angularComponents, inputtext, http, moment$k, api, rxjs, operators, router, platformComponents) { 'use strict';
6
6
 
7
7
  /*! *****************************************************************************
8
8
  Copyright (c) Microsoft Corporation.
@@ -819,6 +819,248 @@
819
819
  /*{CA:FILE_CONTENTS:START}*/
820
820
  /*{CA:FILE_CONTENTS:END}*/
821
821
 
822
+ var EntityService = /** @class */ (function () {
823
+ function EntityService(http, messageService, entityUrl, actionsUrl, translate, configService) {
824
+ this.http = http;
825
+ this.messageService = messageService;
826
+ this.entityUrl = entityUrl;
827
+ this.actionsUrl = actionsUrl;
828
+ this.translate = translate;
829
+ this.configService = configService;
830
+ this.defaultCatch = this.defaultCatch.bind(this);
831
+ }
832
+ EntityService.prototype.getListQueryParams = function (listParams) {
833
+ var _a = listParams.page, page = _a === void 0 ? 0 : _a, _b = listParams.size, size = _b === void 0 ? 10 : _b, _c = listParams.sort, sort = _c === void 0 ? [] : _c, _d = listParams.filterQuery, filterQuery = _d === void 0 ? "" : _d, _e = listParams.displayFields, displayFields = _e === void 0 ? [] : _e;
834
+ var params = new http.HttpParams();
835
+ params = params.append("size", String(size));
836
+ params = params.append("offset", String(page));
837
+ if (sort && sort.length) {
838
+ params = params.append("orderby", sort
839
+ .map(function (s) {
840
+ var order = "";
841
+ if (s.order === 1)
842
+ order = " asc";
843
+ else if (s.order === -1)
844
+ order = " desc";
845
+ return "" + s.field + order;
846
+ })
847
+ .join(", "));
848
+ }
849
+ if (filterQuery)
850
+ params = params.append("filter", filterQuery);
851
+ if (displayFields && displayFields.length)
852
+ params = params.append("displayfields", displayFields.join());
853
+ return params;
854
+ };
855
+ EntityService.prototype.getBodyParams = function (listParams) {
856
+ var _a = listParams.page, page = _a === void 0 ? 0 : _a, _b = listParams.size, size = _b === void 0 ? 10 : _b, _c = listParams.sort, sort = _c === void 0 ? [] : _c, _d = listParams.filterQuery, filterQuery = _d === void 0 ? "" : _d, _e = listParams.displayFields, displayFields = _e === void 0 ? [] : _e;
857
+ var bodyParams = {};
858
+ bodyParams.size = size;
859
+ bodyParams.offset = page;
860
+ if (sort && sort.length) {
861
+ bodyParams.orderBy = sort
862
+ .map(function (s) {
863
+ var order = "";
864
+ if (s.order === 1)
865
+ order = " asc";
866
+ else if (s.order === -1)
867
+ order = " desc";
868
+ return "" + s.field + order;
869
+ })
870
+ .join(", ");
871
+ }
872
+ if (filterQuery)
873
+ bodyParams.filter = filterQuery;
874
+ if (displayFields && displayFields.length)
875
+ bodyParams.displayfields = displayFields.join();
876
+ return bodyParams;
877
+ };
878
+ EntityService.prototype.defaultCatch = function () {
879
+ var _this = this;
880
+ return operators.catchError(function (err) {
881
+ if (err) {
882
+ var summary = err.status ? String(err.status) : "Error";
883
+ var detail = (err.error && err.error.message) || err.statusText || err.message || "Error";
884
+ if (err.status === 401) {
885
+ summary = _this.translate.instant(_this.configService.getTranslationPrefix() + ".error_unauthorized_title");
886
+ detail = _this.translate.instant(_this.configService.getTranslationPrefix() + ".error_unauthorized_description");
887
+ }
888
+ _this.messageService.add({
889
+ severity: "error",
890
+ summary: summary,
891
+ detail: detail,
892
+ });
893
+ }
894
+ return rxjs.throwError(err);
895
+ });
896
+ };
897
+ EntityService.prototype.list = function (listParams) {
898
+ return this.http.get(this.entityUrl, { params: this.getListQueryParams(listParams) }).pipe(this.defaultCatch());
899
+ };
900
+ EntityService.prototype.get = function (id) {
901
+ return this.http.get(this.entityUrl + "/" + id).pipe(this.defaultCatch());
902
+ };
903
+ EntityService.prototype.insert = function (entity) {
904
+ return this.http.post("" + this.entityUrl, entity).pipe(this.defaultCatch());
905
+ };
906
+ EntityService.prototype.update = function (id, entity) {
907
+ return this.http.put(this.entityUrl + "/" + id, entity).pipe(this.defaultCatch());
908
+ };
909
+ EntityService.prototype.delete = function (id) {
910
+ return this.http.delete(this.entityUrl + "/" + id).pipe(this.defaultCatch());
911
+ };
912
+ EntityService.prototype.listCustomFilter = function (listParams, action) {
913
+ return this.http.post(this.actionsUrl + "/" + action, this.getBodyParams(listParams)).pipe(this.defaultCatch());
914
+ };
915
+ return EntityService;
916
+ }());
917
+
918
+ var PisPasepTaxationService = /** @class */ (function (_super) {
919
+ __extends(PisPasepTaxationService, _super);
920
+ function PisPasepTaxationService(http, messageService, translate, configService) {
921
+ var _this = _super.call(this, http, messageService, "tax_obligation/shared/entities/pisPasepTaxation", "tax_obligation/shared/actions/pisPasepTaxation", translate, configService) || this;
922
+ _this.http = http;
923
+ _this.messageService = messageService;
924
+ _this.translate = translate;
925
+ _this.configService = configService;
926
+ return _this;
927
+ }
928
+ PisPasepTaxationService.ctorParameters = function () { return [
929
+ { type: http.HttpClient },
930
+ { type: api.MessageService },
931
+ { type: core$1.TranslateService },
932
+ { type: EntityLookupConfigService }
933
+ ]; };
934
+ PisPasepTaxationService = __decorate([
935
+ core.Injectable()
936
+ ], PisPasepTaxationService);
937
+ return PisPasepTaxationService;
938
+ }(EntityService));
939
+
940
+ var PisPasepTaxationLookupService = /** @class */ (function () {
941
+ function PisPasepTaxationLookupService(translate, configService, pisPasepTaxationService) {
942
+ this.translate = translate;
943
+ this.configService = configService;
944
+ this.pisPasepTaxationService = pisPasepTaxationService;
945
+ this.pisPasepTaxationLookupDisplayFields = ["code", "description"];
946
+ this.pisPasepTaxationLookupGridDisplayFields = ["pisPasepTaxationGroup.code", "pisPasepTaxationGroup.description", "code", "description"];
947
+ this.pisPasepTaxationLookupSeparator = " - ";
948
+ this.pisPasepTaxationSerchSubject = new rxjs.Subject();
949
+ this.pisPasepTaxationLookupSubject = new rxjs.Subject();
950
+ this.ngUnsubscribe = new rxjs.Subject();
951
+ }
952
+ PisPasepTaxationLookupService.prototype.onPisPasepTaxationLookupRequest = function (event) {
953
+ var _this = this;
954
+ this.onPisPasepTaxationLookupRequestObservable(event)
955
+ .subscribe(function (data) { return _this.pisPasepTaxationLookupSubject.next(data.contents); });
956
+ };
957
+ PisPasepTaxationLookupService.prototype.onPisPasepTaxationLookupRequestObservable = function (value, filter) {
958
+ var _this = this;
959
+ var sort = this.pisPasepTaxationLookupDisplayFields.map(function (field) { return ({
960
+ field: field,
961
+ order: 1
962
+ }); });
963
+ var filterQuery = createLookupRequestFilter(value, this.getPisPasepTaxationSearchFields());
964
+ filterQuery = this.getFilters(filterQuery, filter);
965
+ var displayFields = this.pisPasepTaxationLookupDisplayFields;
966
+ return this.pisPasepTaxationService
967
+ .list({ sort: sort, filterQuery: filterQuery, displayFields: displayFields })
968
+ .pipe(operators.takeUntil(this.ngUnsubscribe))
969
+ .pipe(operators.map(function (list) { return _this.mapToComponent(list); }));
970
+ };
971
+ PisPasepTaxationLookupService.prototype.onPisPasepTaxationSearchRequest = function (event) {
972
+ var _this = this;
973
+ this.onPisPasepTaxationSearchRequestObservable(event)
974
+ .subscribe(function (data) { return _this.pisPasepTaxationSerchSubject.next(data); });
975
+ };
976
+ PisPasepTaxationLookupService.prototype.onPisPasepTaxationSearchRequestObservable = function (event, filter) {
977
+ var _this = this;
978
+ var first = event.first, rows = event.rows, multiSortMeta = event.multiSortMeta, filterData = event.filterData;
979
+ var page = first / rows;
980
+ var sort = multiSortMeta;
981
+ var filterQuery = createSearchRequestFilter(filterData, this.getPisPasepTaxationSearchFields());
982
+ filterQuery = this.getFilters(filterQuery, filter);
983
+ var displayFields = this.pisPasepTaxationLookupGridDisplayFields;
984
+ return this.pisPasepTaxationService
985
+ .list({ page: page, sort: sort, filterQuery: filterQuery, displayFields: displayFields })
986
+ .pipe(operators.takeUntil(this.ngUnsubscribe))
987
+ .pipe(operators.map(function (list) { return _this.mapToComponent(list); }));
988
+ };
989
+ PisPasepTaxationLookupService.prototype.getPisPasepTaxationSearchFields = function () {
990
+ return [
991
+ new angularComponents.FormField({
992
+ label: this.translate.instant(this.configService.getTranslationPrefix() + ".pis_pasep_taxation_code"),
993
+ name: "code",
994
+ type: angularComponents.FieldType.Integer
995
+ }),
996
+ new angularComponents.FormField({
997
+ label: this.translate.instant(this.configService.getTranslationPrefix() + ".pis_pasep_taxation_description"),
998
+ name: "description",
999
+ type: angularComponents.FieldType.String
1000
+ }),
1001
+ ];
1002
+ };
1003
+ PisPasepTaxationLookupService.prototype.getPisPasepTaxationSearchGridFields = function () {
1004
+ return [
1005
+ new angularComponents.FormField({
1006
+ label: this.translate.instant(this.configService.getTranslationPrefix() + ".pis_pasep_taxation_group_code_grid"),
1007
+ name: "pisPasepTaxationGroup.code",
1008
+ type: angularComponents.FieldType.String
1009
+ }),
1010
+ new angularComponents.FormField({
1011
+ label: this.translate.instant(this.configService.getTranslationPrefix() + ".pis_pasep_taxation_group_name_grid"),
1012
+ name: "pisPasepTaxationGroup.description",
1013
+ type: angularComponents.FieldType.String
1014
+ }),
1015
+ new angularComponents.FormField({
1016
+ label: this.translate.instant(this.configService.getTranslationPrefix() + ".pis_pasep_taxation_code_grid"),
1017
+ name: "code",
1018
+ type: angularComponents.FieldType.String
1019
+ }),
1020
+ new angularComponents.FormField({
1021
+ label: this.translate.instant(this.configService.getTranslationPrefix() + ".pis_pasep_taxation_description_grid"),
1022
+ name: "description",
1023
+ type: angularComponents.FieldType.String
1024
+ }),
1025
+ ];
1026
+ };
1027
+ PisPasepTaxationLookupService.prototype.getLabelForMapping = function (item) {
1028
+ return this.pisPasepTaxationLookupDisplayFields
1029
+ .map(function (field) {
1030
+ if (field.indexOf(".") > 0) {
1031
+ item[field] = getProp(item, field);
1032
+ }
1033
+ return item[field];
1034
+ })
1035
+ .join(this.pisPasepTaxationLookupSeparator);
1036
+ };
1037
+ PisPasepTaxationLookupService.prototype.mapToComponent = function (list) {
1038
+ var _this = this;
1039
+ return (__assign(__assign({}, list), { contents: list.contents.map(function (item) { return (__assign(__assign({}, item), { label: _this.getLabelForMapping(item) })); }) }));
1040
+ };
1041
+ PisPasepTaxationLookupService.prototype.getFilters = function (filterData, filter) {
1042
+ var filterQuery = '';
1043
+ if (filterData) {
1044
+ filterQuery += "(" + filterData + ") or ";
1045
+ }
1046
+ if (filter) {
1047
+ filter.forEach(function (filter) {
1048
+ filterQuery += filter.key + " eq '" + filter.value + "' or ";
1049
+ });
1050
+ }
1051
+ return filterQuery.slice(0, -4);
1052
+ };
1053
+ PisPasepTaxationLookupService.ctorParameters = function () { return [
1054
+ { type: core$1.TranslateService },
1055
+ { type: EntityLookupConfigService },
1056
+ { type: PisPasepTaxationService }
1057
+ ]; };
1058
+ PisPasepTaxationLookupService = __decorate([
1059
+ core.Injectable()
1060
+ ], PisPasepTaxationLookupService);
1061
+ return PisPasepTaxationLookupService;
1062
+ }());
1063
+
822
1064
  var BaseLookupComponent = /** @class */ (function () {
823
1065
  function BaseLookupComponent(translate, cdRef, configService, structerService) {
824
1066
  this.translate = translate;
@@ -942,6 +1184,78 @@
942
1184
  return BaseLookupComponent;
943
1185
  }());
944
1186
 
1187
+ var PisPasepTaxationLookupComponent = /** @class */ (function (_super) {
1188
+ __extends(PisPasepTaxationLookupComponent, _super);
1189
+ function PisPasepTaxationLookupComponent(translate, cdRef, configService, structurService, pisPasepTaxationLookupService) {
1190
+ var _this = _super.call(this, translate, cdRef, configService, structurService) || this;
1191
+ _this.translate = translate;
1192
+ _this.cdRef = cdRef;
1193
+ _this.configService = configService;
1194
+ _this.structurService = structurService;
1195
+ _this.pisPasepTaxationLookupService = pisPasepTaxationLookupService;
1196
+ return _this;
1197
+ }
1198
+ PisPasepTaxationLookupComponent.prototype.ngOnInit = function () {
1199
+ this.pisPasepTaxationSearchFields = this.pisPasepTaxationLookupService.getPisPasepTaxationSearchFields();
1200
+ this.pisPasepTaxationSearchGridFields = this.pisPasepTaxationLookupService.getPisPasepTaxationSearchGridFields();
1201
+ };
1202
+ PisPasepTaxationLookupComponent.prototype.onPisPasepTaxationLookupRequest = function (value) {
1203
+ var _this = this;
1204
+ this.pisPasepTaxationLookupService
1205
+ .onPisPasepTaxationLookupRequestObservable(value, this.filter)
1206
+ .subscribe(function (list) {
1207
+ _this.pisPasepTaxationLookupSuggestions = list.contents;
1208
+ });
1209
+ };
1210
+ PisPasepTaxationLookupComponent.prototype.onPisPasepTaxationSearchRequest = function (event) {
1211
+ var _this = this;
1212
+ this.pisPasepTaxationLookupService
1213
+ .onPisPasepTaxationSearchRequestObservable(event, this.filter)
1214
+ .subscribe(function (list) {
1215
+ _this.pisPasepTaxationSearchGridData = list.contents;
1216
+ _this.pisPasepTaxationSearchTotalRecords = list.totalElements;
1217
+ });
1218
+ };
1219
+ PisPasepTaxationLookupComponent.ctorParameters = function () { return [
1220
+ { type: core$1.TranslateService },
1221
+ { type: core.ChangeDetectorRef },
1222
+ { type: EntityLookupConfigService },
1223
+ { type: StructureFilterService },
1224
+ { type: PisPasepTaxationLookupService }
1225
+ ]; };
1226
+ __decorate([
1227
+ core.Input()
1228
+ ], PisPasepTaxationLookupComponent.prototype, "filter", void 0);
1229
+ PisPasepTaxationLookupComponent = __decorate([
1230
+ core.Component({
1231
+ selector: "flx-pis-pasep-taxation-lookup",
1232
+ template: "<form [formGroup]=\"formGroup\">\n <s-lookup dataKey=\"id\" id=\"pisPasepTaxation\" [formControlName]=\"controlName\"\n [searchFields]=\"pisPasepTaxationSearchFields\" [searchGridFields]=\"pisPasepTaxationSearchGridFields\"\n [searchGridData]=\"pisPasepTaxationSearchGridData\" [multiple]=\"multiple\"\n [lookupSuggestions]=\"pisPasepTaxationLookupSuggestions\" lookupDisplayField=\"label\"\n (onLookupRequest)=\"onPisPasepTaxationLookupRequest($event)\"\n (onSearchRequest)=\"onPisPasepTaxationSearchRequest($event)\"\n (onSelect)=\"selectOption($event)\" (onClear)=\"onClearItem($event)\"\n [searchTotalRecords]=pisPasepTaxationSearchTotalRecords\n [searchTitle]=\"configService.getTranslationPrefix() + '.pis_pasep_taxation_search_title' | translate\"\n [searchEmptyTitle]=\"configService.getTranslationPrefix() + '.nothing_found' | translate\"\n [filterLabel]=\"configService.getTranslationPrefix() + '.filter' | translate\"\n [filterTitle]=\"configService.getTranslationPrefix() + '.filters' | translate\"\n [clearLabel]=\"configService.getTranslationPrefix() + '.clear' | translate\"\n [cancelLabel]=\"configService.getTranslationPrefix() + '.cancel' | translate\"\n [selectLabel]=\"configService.getTranslationPrefix() + '.select' | translate\"\n [searchTotalRecordsLabel]=\"configService.getTranslationPrefix()\n + '.total_records' | translate: {value: pisPasepTaxationSearchTotalRecords}\">\n </s-lookup>\n</form>\n"
1233
+ })
1234
+ ], PisPasepTaxationLookupComponent);
1235
+ return PisPasepTaxationLookupComponent;
1236
+ }(BaseLookupComponent));
1237
+
1238
+ var PisPasepTaxationLookupModule = /** @class */ (function () {
1239
+ function PisPasepTaxationLookupModule() {
1240
+ }
1241
+ PisPasepTaxationLookupModule = __decorate([
1242
+ core.NgModule({
1243
+ declarations: [PisPasepTaxationLookupComponent],
1244
+ exports: [
1245
+ PisPasepTaxationLookupComponent
1246
+ ],
1247
+ imports: [
1248
+ SharedModule
1249
+ ],
1250
+ providers: [
1251
+ PisPasepTaxationLookupService,
1252
+ PisPasepTaxationService
1253
+ ]
1254
+ })
1255
+ ], PisPasepTaxationLookupModule);
1256
+ return PisPasepTaxationLookupModule;
1257
+ }());
1258
+
945
1259
  var BaseLookupModule = /** @class */ (function () {
946
1260
  function BaseLookupModule() {
947
1261
  }
@@ -960,102 +1274,6 @@
960
1274
  return BaseLookupModule;
961
1275
  }());
962
1276
 
963
- var EntityService = /** @class */ (function () {
964
- function EntityService(http, messageService, entityUrl, actionsUrl, translate, configService) {
965
- this.http = http;
966
- this.messageService = messageService;
967
- this.entityUrl = entityUrl;
968
- this.actionsUrl = actionsUrl;
969
- this.translate = translate;
970
- this.configService = configService;
971
- this.defaultCatch = this.defaultCatch.bind(this);
972
- }
973
- EntityService.prototype.getListQueryParams = function (listParams) {
974
- var _a = listParams.page, page = _a === void 0 ? 0 : _a, _b = listParams.size, size = _b === void 0 ? 10 : _b, _c = listParams.sort, sort = _c === void 0 ? [] : _c, _d = listParams.filterQuery, filterQuery = _d === void 0 ? "" : _d, _e = listParams.displayFields, displayFields = _e === void 0 ? [] : _e;
975
- var params = new http.HttpParams();
976
- params = params.append("size", String(size));
977
- params = params.append("offset", String(page));
978
- if (sort && sort.length) {
979
- params = params.append("orderby", sort
980
- .map(function (s) {
981
- var order = "";
982
- if (s.order === 1)
983
- order = " asc";
984
- else if (s.order === -1)
985
- order = " desc";
986
- return "" + s.field + order;
987
- })
988
- .join(", "));
989
- }
990
- if (filterQuery)
991
- params = params.append("filter", filterQuery);
992
- if (displayFields && displayFields.length)
993
- params = params.append("displayfields", displayFields.join());
994
- return params;
995
- };
996
- EntityService.prototype.getBodyParams = function (listParams) {
997
- var _a = listParams.page, page = _a === void 0 ? 0 : _a, _b = listParams.size, size = _b === void 0 ? 10 : _b, _c = listParams.sort, sort = _c === void 0 ? [] : _c, _d = listParams.filterQuery, filterQuery = _d === void 0 ? "" : _d, _e = listParams.displayFields, displayFields = _e === void 0 ? [] : _e;
998
- var bodyParams = {};
999
- bodyParams.size = size;
1000
- bodyParams.offset = page;
1001
- if (sort && sort.length) {
1002
- bodyParams.orderBy = sort
1003
- .map(function (s) {
1004
- var order = "";
1005
- if (s.order === 1)
1006
- order = " asc";
1007
- else if (s.order === -1)
1008
- order = " desc";
1009
- return "" + s.field + order;
1010
- })
1011
- .join(", ");
1012
- }
1013
- if (filterQuery)
1014
- bodyParams.filter = filterQuery;
1015
- if (displayFields && displayFields.length)
1016
- bodyParams.displayfields = displayFields.join();
1017
- return bodyParams;
1018
- };
1019
- EntityService.prototype.defaultCatch = function () {
1020
- var _this = this;
1021
- return operators.catchError(function (err) {
1022
- if (err) {
1023
- var summary = err.status ? String(err.status) : "Error";
1024
- var detail = (err.error && err.error.message) || err.statusText || err.message || "Error";
1025
- if (err.status === 401) {
1026
- summary = _this.translate.instant(_this.configService.getTranslationPrefix() + ".error_unauthorized_title");
1027
- detail = _this.translate.instant(_this.configService.getTranslationPrefix() + ".error_unauthorized_description");
1028
- }
1029
- _this.messageService.add({
1030
- severity: "error",
1031
- summary: summary,
1032
- detail: detail,
1033
- });
1034
- }
1035
- return rxjs.throwError(err);
1036
- });
1037
- };
1038
- EntityService.prototype.list = function (listParams) {
1039
- return this.http.get(this.entityUrl, { params: this.getListQueryParams(listParams) }).pipe(this.defaultCatch());
1040
- };
1041
- EntityService.prototype.get = function (id) {
1042
- return this.http.get(this.entityUrl + "/" + id).pipe(this.defaultCatch());
1043
- };
1044
- EntityService.prototype.insert = function (entity) {
1045
- return this.http.post("" + this.entityUrl, entity).pipe(this.defaultCatch());
1046
- };
1047
- EntityService.prototype.update = function (id, entity) {
1048
- return this.http.put(this.entityUrl + "/" + id, entity).pipe(this.defaultCatch());
1049
- };
1050
- EntityService.prototype.delete = function (id) {
1051
- return this.http.delete(this.entityUrl + "/" + id).pipe(this.defaultCatch());
1052
- };
1053
- EntityService.prototype.listCustomFilter = function (listParams, action) {
1054
- return this.http.post(this.actionsUrl + "/" + action, this.getBodyParams(listParams)).pipe(this.defaultCatch());
1055
- };
1056
- return EntityService;
1057
- }());
1058
-
1059
1277
  /*{CA:PACKAGE_IMPORTS:START}*/
1060
1278
  /*{CA:PACKAGE_IMPORTS:END}*/
1061
1279
  /*{CA:PROJECT_IMPORTS:START}*/
@@ -8163,6 +8381,9 @@
8163
8381
  exports.LocationLookupService = LocationLookupService;
8164
8382
  exports.LocationService = LocationService;
8165
8383
  exports.PersonLookupModule = PersonLookupModule;
8384
+ exports.PisPasepTaxationLookupComponent = PisPasepTaxationLookupComponent;
8385
+ exports.PisPasepTaxationLookupModule = PisPasepTaxationLookupModule;
8386
+ exports.PisPasepTaxationLookupService = PisPasepTaxationLookupService;
8166
8387
  exports.Position = Position;
8167
8388
  exports.PositionActingType = PositionActingType;
8168
8389
  exports.PositionActingTypeLookupComponent = PositionActingTypeLookupComponent;
@@ -8204,36 +8425,37 @@
8204
8425
  exports.WorkshiftLookupService = WorkshiftLookupService;
8205
8426
  exports.WorkshiftService = WorkshiftService;
8206
8427
  exports.fallback = fallback;
8207
- exports.ɵa = SharedModule;
8208
- exports.ɵb = CompanyBranchLookupComponent;
8209
- exports.ɵba = VariableEntryModule;
8210
- exports.ɵbb = CalculationDefinitionModule;
8211
- exports.ɵbc = EmploymentRelationshipModule;
8212
- exports.ɵbd = WageTypePayrollModule;
8213
- exports.ɵc = EntityService;
8214
- exports.ɵd = PersonLookupComponent;
8215
- exports.ɵe = ESocialCategoryModule;
8216
- exports.ɵf = CompanyBranchIndicationsModule;
8217
- exports.ɵg = E030AgeModule;
8218
- exports.ɵh = E030BanModule;
8219
- exports.ɵi = E044CcuModule;
8220
- exports.ɵj = E070EmpModule;
8221
- exports.ɵk = E070FilModule;
8222
- exports.ɵl = HolidayModule;
8223
- exports.ɵm = HolidayGroupModule;
8224
- exports.ɵn = LocationModule;
8225
- exports.ɵo = LocationStructureModule;
8226
- exports.ɵp = LocationStructureService;
8227
- exports.ɵq = PositionActingTypeModule;
8228
- exports.ɵr = PositionModule;
8229
- exports.ɵs = E001PesModule;
8230
- exports.ɵt = EmployeeModule;
8231
- exports.ɵu = JobPositionModule;
8232
- exports.ɵv = WorkshiftModule;
8233
- exports.ɵw = WorkshiftGroupModule;
8234
- exports.ɵx = WageTypeModule;
8235
- exports.ɵy = AnnotationTypeModule;
8236
- exports.ɵz = SyndicateModule;
8428
+ exports.ɵa = PisPasepTaxationService;
8429
+ exports.ɵb = SharedModule;
8430
+ exports.ɵba = SyndicateModule;
8431
+ exports.ɵbb = VariableEntryModule;
8432
+ exports.ɵbc = CalculationDefinitionModule;
8433
+ exports.ɵbd = EmploymentRelationshipModule;
8434
+ exports.ɵbe = WageTypePayrollModule;
8435
+ exports.ɵc = CompanyBranchLookupComponent;
8436
+ exports.ɵd = EntityService;
8437
+ exports.ɵe = PersonLookupComponent;
8438
+ exports.ɵf = ESocialCategoryModule;
8439
+ exports.ɵg = CompanyBranchIndicationsModule;
8440
+ exports.ɵh = E030AgeModule;
8441
+ exports.ɵi = E030BanModule;
8442
+ exports.ɵj = E044CcuModule;
8443
+ exports.ɵk = E070EmpModule;
8444
+ exports.ɵl = E070FilModule;
8445
+ exports.ɵm = HolidayModule;
8446
+ exports.ɵn = HolidayGroupModule;
8447
+ exports.ɵo = LocationModule;
8448
+ exports.ɵp = LocationStructureModule;
8449
+ exports.ɵq = LocationStructureService;
8450
+ exports.ɵr = PositionActingTypeModule;
8451
+ exports.ɵs = PositionModule;
8452
+ exports.ɵt = E001PesModule;
8453
+ exports.ɵu = EmployeeModule;
8454
+ exports.ɵv = JobPositionModule;
8455
+ exports.ɵw = WorkshiftModule;
8456
+ exports.ɵx = WorkshiftGroupModule;
8457
+ exports.ɵy = WageTypeModule;
8458
+ exports.ɵz = AnnotationTypeModule;
8237
8459
 
8238
8460
  Object.defineProperty(exports, '__esModule', { value: true });
8239
8461