@senior-gestao-pessoas/hcm-entity-lookups 4.1.3-develop-67992cf4 → 4.1.4-develop-c419c6ef
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 +345 -26
- 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/entities/fpas-registration/fpas-registration-dto.d.ts +5 -0
- package/core/entities/fpas-registration/fpas-registration.d.ts +8 -0
- package/core/entities/fpas-registration/fpas-registration.module.d.ts +2 -0
- package/core/entities/fpas-registration/fpas-registration.service.d.ts +13 -0
- package/esm2015/core/core-lookup.module.js +4 -2
- package/esm2015/core/entities/fpas-registration/fpas-registration-dto.js +5 -0
- package/esm2015/core/entities/fpas-registration/fpas-registration.js +23 -0
- package/esm2015/core/entities/fpas-registration/fpas-registration.module.js +24 -0
- package/esm2015/core/entities/fpas-registration/fpas-registration.service.js +27 -0
- package/esm2015/lookups/fpas-registration-lookup/fpas-registration-lookup.component.js +56 -0
- package/esm2015/lookups/fpas-registration-lookup/fpas-registration-lookup.module.js +29 -0
- package/esm2015/lookups/fpas-registration-lookup/fpas-registration-lookup.service.js +192 -0
- package/esm2015/public-api.js +3 -1
- package/esm2015/senior-gestao-pessoas-hcm-entity-lookups.js +29 -26
- package/esm5/core/core-lookup.module.js +4 -2
- package/esm5/core/entities/fpas-registration/fpas-registration-dto.js +5 -0
- package/esm5/core/entities/fpas-registration/fpas-registration.js +28 -0
- package/esm5/core/entities/fpas-registration/fpas-registration.module.js +27 -0
- package/esm5/core/entities/fpas-registration/fpas-registration.service.js +30 -0
- package/esm5/lookups/fpas-registration-lookup/fpas-registration-lookup.component.js +61 -0
- package/esm5/lookups/fpas-registration-lookup/fpas-registration-lookup.module.js +32 -0
- package/esm5/lookups/fpas-registration-lookup/fpas-registration-lookup.service.js +202 -0
- package/esm5/public-api.js +3 -1
- package/esm5/senior-gestao-pessoas-hcm-entity-lookups.js +29 -26
- package/fesm2015/senior-gestao-pessoas-hcm-entity-lookups.js +292 -2
- package/fesm2015/senior-gestao-pessoas-hcm-entity-lookups.js.map +1 -1
- package/fesm5/senior-gestao-pessoas-hcm-entity-lookups.js +316 -2
- package/fesm5/senior-gestao-pessoas-hcm-entity-lookups.js.map +1 -1
- package/lookups/fpas-registration-lookup/fpas-registration-lookup.component.d.ts +24 -0
- package/lookups/fpas-registration-lookup/fpas-registration-lookup.module.d.ts +2 -0
- package/lookups/fpas-registration-lookup/fpas-registration-lookup.service.d.ts +25 -0
- package/package.json +1 -1
- package/public-api.d.ts +2 -0
- package/senior-gestao-pessoas-hcm-entity-lookups.d.ts +28 -25
- package/senior-gestao-pessoas-hcm-entity-lookups.metadata.json +1 -1
|
@@ -7075,6 +7075,297 @@
|
|
|
7075
7075
|
return AdministrativeJudicialCaseLookupModule;
|
|
7076
7076
|
}());
|
|
7077
7077
|
|
|
7078
|
+
var FpasRegistrationService = /** @class */ (function (_super) {
|
|
7079
|
+
__extends(FpasRegistrationService, _super);
|
|
7080
|
+
function FpasRegistrationService(http, messageService, translate, configService) {
|
|
7081
|
+
var _this = _super.call(this, http, messageService, "tax_obligation/shared/entities/fpasRegistration", "tax_obligation/shared/actions", translate, configService) || this;
|
|
7082
|
+
_this.http = http;
|
|
7083
|
+
_this.messageService = messageService;
|
|
7084
|
+
_this.translate = translate;
|
|
7085
|
+
_this.configService = configService;
|
|
7086
|
+
return _this;
|
|
7087
|
+
}
|
|
7088
|
+
FpasRegistrationService.ctorParameters = function () { return [
|
|
7089
|
+
{ type: http.HttpClient },
|
|
7090
|
+
{ type: api.MessageService },
|
|
7091
|
+
{ type: core$1.TranslateService },
|
|
7092
|
+
{ type: EntityLookupConfigService }
|
|
7093
|
+
]; };
|
|
7094
|
+
FpasRegistrationService = __decorate([
|
|
7095
|
+
core.Injectable()
|
|
7096
|
+
], FpasRegistrationService);
|
|
7097
|
+
return FpasRegistrationService;
|
|
7098
|
+
}(EntityService));
|
|
7099
|
+
|
|
7100
|
+
var FpasRegistrationLookupService = /** @class */ (function () {
|
|
7101
|
+
function FpasRegistrationLookupService(translate, configService, fpasRegistrationService) {
|
|
7102
|
+
this.translate = translate;
|
|
7103
|
+
this.configService = configService;
|
|
7104
|
+
this.fpasRegistrationService = fpasRegistrationService;
|
|
7105
|
+
this.lookupServiceConfig = {
|
|
7106
|
+
lookupDisplayFields: ["code", "name"],
|
|
7107
|
+
lookupSeparator: " - ",
|
|
7108
|
+
searchSubject: new rxjs.Subject(),
|
|
7109
|
+
lookupSubject: new rxjs.Subject(),
|
|
7110
|
+
entityName: "fpasRegistration",
|
|
7111
|
+
dynamicFormOptions: {
|
|
7112
|
+
cancelLabel: this.translate.instant(this.configService.getTranslationPrefix() + ".cancel"),
|
|
7113
|
+
clearLabel: this.translate.instant(this.configService.getTranslationPrefix() + ".clear"),
|
|
7114
|
+
dataKey: "id",
|
|
7115
|
+
emptyFieldLabel: this.translate.instant(this.configService.getTranslationPrefix() + ".list_grid_empty_field"),
|
|
7116
|
+
emptyMessage: this.translate.instant(this.configService.getTranslationPrefix() + ".empty_message_field"),
|
|
7117
|
+
filterLabel: this.translate.instant(this.configService.getTranslationPrefix() + ".filter"),
|
|
7118
|
+
filterTitle: this.translate.instant(this.configService.getTranslationPrefix() + ".filters"),
|
|
7119
|
+
label: this.translate.instant(this.configService.getTranslationPrefix() + ".company_linked_location"),
|
|
7120
|
+
lookupDisplayField: "label",
|
|
7121
|
+
multiple: false,
|
|
7122
|
+
name: "fpasRegistration",
|
|
7123
|
+
recordLabel: this.translate.instant(this.configService.getTranslationPrefix() + ".records_found"),
|
|
7124
|
+
recordsLabel: this.translate.instant(this.configService.getTranslationPrefix() + ".records_found"),
|
|
7125
|
+
required: true,
|
|
7126
|
+
searchEmptyTitle: this.translate.instant(this.configService.getTranslationPrefix() + ".nothing_found"),
|
|
7127
|
+
searchFields: this.getFpasRegistrationSearchFields(),
|
|
7128
|
+
searchGridFields: this.getFpasRegistrationSearchFields(),
|
|
7129
|
+
searchTitle: this.translate.instant(this.configService.getTranslationPrefix() + ".company_linked_location_search_title"),
|
|
7130
|
+
selectLabel: this.translate.instant(this.configService.getTranslationPrefix() + ".select"),
|
|
7131
|
+
visible: true,
|
|
7132
|
+
isCollective: false,
|
|
7133
|
+
},
|
|
7134
|
+
filters: {
|
|
7135
|
+
additionalFilter: undefined,
|
|
7136
|
+
initialFilter: undefined,
|
|
7137
|
+
companyIds: [],
|
|
7138
|
+
},
|
|
7139
|
+
};
|
|
7140
|
+
this.ngUnsubscribe = new rxjs.Subject();
|
|
7141
|
+
}
|
|
7142
|
+
FpasRegistrationLookupService.prototype.updateSuggestions = function (value) {
|
|
7143
|
+
if (value === null || value === void 0 ? void 0 : value[this.lookupServiceConfig.entityName]) {
|
|
7144
|
+
value[this.lookupServiceConfig.entityName].label = this.getSuggestionValue(this.lookupServiceConfig.lookupDisplayFields, this.lookupServiceConfig.entityName, value, this.lookupServiceConfig.lookupSeparator);
|
|
7145
|
+
if ((value === null || value === void 0 ? void 0 : value[this.lookupServiceConfig.entityName].label.trim()) === this.lookupServiceConfig.lookupSeparator.trim()) {
|
|
7146
|
+
delete value[this.lookupServiceConfig.entityName].label;
|
|
7147
|
+
}
|
|
7148
|
+
}
|
|
7149
|
+
};
|
|
7150
|
+
FpasRegistrationLookupService.prototype.getSuggestionValue = function (displayFields, ownerEntity, value, separator) {
|
|
7151
|
+
return displayFields
|
|
7152
|
+
.map(function (field) { return getProp(value, ownerEntity + "." + field); })
|
|
7153
|
+
.reduce(function (acc, val) { return "" + acc + separator + val; });
|
|
7154
|
+
};
|
|
7155
|
+
FpasRegistrationLookupService.prototype.getFormField = function () {
|
|
7156
|
+
var _this = this;
|
|
7157
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s;
|
|
7158
|
+
return new angularComponents.FormField({
|
|
7159
|
+
cancelLabel: (_a = this.lookupServiceConfig.dynamicFormOptions) === null || _a === void 0 ? void 0 : _a.cancelLabel,
|
|
7160
|
+
clearLabel: (_b = this.lookupServiceConfig.dynamicFormOptions) === null || _b === void 0 ? void 0 : _b.clearLabel,
|
|
7161
|
+
recordLabel: (_c = this.lookupServiceConfig.dynamicFormOptions) === null || _c === void 0 ? void 0 : _c.recordLabel,
|
|
7162
|
+
recordsLabel: (_d = this.lookupServiceConfig.dynamicFormOptions) === null || _d === void 0 ? void 0 : _d.recordsLabel,
|
|
7163
|
+
searchEmptyTitle: (_e = this.lookupServiceConfig.dynamicFormOptions) === null || _e === void 0 ? void 0 : _e.searchEmptyTitle,
|
|
7164
|
+
searchFields: (_f = this.lookupServiceConfig.dynamicFormOptions) === null || _f === void 0 ? void 0 : _f.searchFields,
|
|
7165
|
+
searchTitle: (_g = this.lookupServiceConfig.dynamicFormOptions) === null || _g === void 0 ? void 0 : _g.searchTitle,
|
|
7166
|
+
selectLabel: (_h = this.lookupServiceConfig.dynamicFormOptions) === null || _h === void 0 ? void 0 : _h.selectLabel,
|
|
7167
|
+
dataKey: (_j = this.lookupServiceConfig.dynamicFormOptions) === null || _j === void 0 ? void 0 : _j.dataKey,
|
|
7168
|
+
emptyFieldLabel: (_k = this.lookupServiceConfig.dynamicFormOptions) === null || _k === void 0 ? void 0 : _k.emptyFieldLabel,
|
|
7169
|
+
emptyMessage: (_l = this.lookupServiceConfig.dynamicFormOptions) === null || _l === void 0 ? void 0 : _l.emptyMessage,
|
|
7170
|
+
filterLabel: (_m = this.lookupServiceConfig.dynamicFormOptions) === null || _m === void 0 ? void 0 : _m.filterLabel,
|
|
7171
|
+
filterTitle: (_o = this.lookupServiceConfig.dynamicFormOptions) === null || _o === void 0 ? void 0 : _o.filterTitle,
|
|
7172
|
+
label: (_p = this.lookupServiceConfig.dynamicFormOptions) === null || _p === void 0 ? void 0 : _p.label,
|
|
7173
|
+
lookupDisplayField: (_q = this.lookupServiceConfig.dynamicFormOptions) === null || _q === void 0 ? void 0 : _q.lookupDisplayField,
|
|
7174
|
+
multiple: (_r = this.lookupServiceConfig.dynamicFormOptions) === null || _r === void 0 ? void 0 : _r.multiple,
|
|
7175
|
+
name: (_s = this.lookupServiceConfig.dynamicFormOptions) === null || _s === void 0 ? void 0 : _s.name,
|
|
7176
|
+
onLookupRequest: function (value) { return _this.onFpasRegistrationLookupRequest(value); },
|
|
7177
|
+
onSearchRequest: function (event) { return _this.onFpasRegistrationSearchRequest(event); },
|
|
7178
|
+
required: function () { var _a; return (_a = _this.lookupServiceConfig.dynamicFormOptions) === null || _a === void 0 ? void 0 : _a.required; },
|
|
7179
|
+
searchObservable: this.lookupServiceConfig.searchSubject,
|
|
7180
|
+
suggestionsObservable: this.lookupServiceConfig.lookupSubject,
|
|
7181
|
+
type: angularComponents.FieldType.Lookup,
|
|
7182
|
+
visible: function () { var _a; return !((_a = _this.lookupServiceConfig.dynamicFormOptions) === null || _a === void 0 ? void 0 : _a.isCollective); },
|
|
7183
|
+
});
|
|
7184
|
+
};
|
|
7185
|
+
FpasRegistrationLookupService.prototype.onFpasRegistrationSearchRequest = function (event) {
|
|
7186
|
+
var _this = this;
|
|
7187
|
+
var _a, _b, _c, _d;
|
|
7188
|
+
this.onFpasRegistrationSearchRequestObservable(event, (_b = (_a = this.lookupServiceConfig) === null || _a === void 0 ? void 0 : _a.filters) === null || _b === void 0 ? void 0 : _b.additionalFilter, (_d = (_c = this.lookupServiceConfig) === null || _c === void 0 ? void 0 : _c.filters) === null || _d === void 0 ? void 0 : _d.companyIds, true).subscribe(function (data) { return _this.lookupServiceConfig.searchSubject.next(data); });
|
|
7189
|
+
};
|
|
7190
|
+
FpasRegistrationLookupService.prototype.onFpasRegistrationSearchRequestObservable = function (event, additionalFilter, companyIds, isDynamicForm) {
|
|
7191
|
+
var _this = this;
|
|
7192
|
+
if (isDynamicForm === void 0) { isDynamicForm = false; }
|
|
7193
|
+
var first = event.first, rows = event.rows, multiSortMeta = event.multiSortMeta, filterData = event.filterData;
|
|
7194
|
+
var page = first / rows;
|
|
7195
|
+
var sort = multiSortMeta;
|
|
7196
|
+
var fpasRegistrationFilterQuery = createSearchRequestFilter(filterData, this.getFpasRegistrationSearchFields());
|
|
7197
|
+
fpasRegistrationFilterQuery = this.getFiltersDefaultFpasRegistration(companyIds, fpasRegistrationFilterQuery, additionalFilter);
|
|
7198
|
+
var displayFields = mergeUnique(this.lookupServiceConfig.lookupDisplayFields.concat("e070emp"), __spread(this.lookupServiceConfig.lookupDisplayFields));
|
|
7199
|
+
return this.fpasRegistrationService
|
|
7200
|
+
.list({ page: page, sort: sort, filterQuery: fpasRegistrationFilterQuery, displayFields: displayFields })
|
|
7201
|
+
.pipe(operators.takeUntil(this.ngUnsubscribe))
|
|
7202
|
+
.pipe(operators.map(function (list) { return _this.mapToComponent(list, isDynamicForm); }));
|
|
7203
|
+
};
|
|
7204
|
+
FpasRegistrationLookupService.prototype.getFiltersDefaultFpasRegistration = function (companyIds, filterData, additionalFilter) {
|
|
7205
|
+
var filters = [];
|
|
7206
|
+
additionalFilter && filters.push("(" + additionalFilter + ")");
|
|
7207
|
+
filterData && filters.push("(" + filterData + ")");
|
|
7208
|
+
(companyIds === null || companyIds === void 0 ? void 0 : companyIds.length) && filters.push("(e070emp.id in (" + companyIds.map(function (id) { return "'" + id + "'"; }) + "))");
|
|
7209
|
+
return filters.join(' and ');
|
|
7210
|
+
};
|
|
7211
|
+
FpasRegistrationLookupService.prototype.mapToComponent = function (list, isDynamicForm) {
|
|
7212
|
+
var _this = this;
|
|
7213
|
+
if (isDynamicForm === void 0) { isDynamicForm = false; }
|
|
7214
|
+
if (isDynamicForm) {
|
|
7215
|
+
return ({
|
|
7216
|
+
gridData: list.contents
|
|
7217
|
+
.map(function (item) { return (__assign(__assign({}, item), { label: _this.getLabelForMaping(item) })); }),
|
|
7218
|
+
totalRecords: list === null || list === void 0 ? void 0 : list.totalElements,
|
|
7219
|
+
});
|
|
7220
|
+
}
|
|
7221
|
+
else {
|
|
7222
|
+
return (__assign(__assign({}, list), { contents: list.contents.map(function (item) { return (__assign(__assign({}, item), { label: _this.getLabelForMaping(item) })); }) }));
|
|
7223
|
+
}
|
|
7224
|
+
};
|
|
7225
|
+
FpasRegistrationLookupService.prototype.getLabelForMaping = function (item) {
|
|
7226
|
+
var _this = this;
|
|
7227
|
+
return this.lookupServiceConfig.lookupDisplayFields
|
|
7228
|
+
.map(function (field) {
|
|
7229
|
+
if (field === "name" && !(item === null || item === void 0 ? void 0 : item.name)) {
|
|
7230
|
+
item.name = _this.translate
|
|
7231
|
+
.instant(_this.configService.getTranslationPrefix() + ".list_grid_empty_field");
|
|
7232
|
+
}
|
|
7233
|
+
if (field.indexOf(".") > 0) {
|
|
7234
|
+
return getProp(item, field);
|
|
7235
|
+
}
|
|
7236
|
+
return item[field];
|
|
7237
|
+
})
|
|
7238
|
+
.join(this.lookupServiceConfig.lookupSeparator);
|
|
7239
|
+
};
|
|
7240
|
+
FpasRegistrationLookupService.prototype.onFpasRegistrationLookupRequest = function (value) {
|
|
7241
|
+
var _this = this;
|
|
7242
|
+
var _a, _b, _c, _d;
|
|
7243
|
+
this.onFpasRegistrationLookupRequestObservable(value, (_b = (_a = this.lookupServiceConfig) === null || _a === void 0 ? void 0 : _a.filters) === null || _b === void 0 ? void 0 : _b.additionalFilter, (_d = (_c = this.lookupServiceConfig) === null || _c === void 0 ? void 0 : _c.filters) === null || _d === void 0 ? void 0 : _d.companyIds).subscribe(function (data) { return _this.lookupServiceConfig.lookupSubject.next(data.contents); });
|
|
7244
|
+
};
|
|
7245
|
+
FpasRegistrationLookupService.prototype.onFpasRegistrationLookupRequestObservable = function (value, additionalFilter, companyIds) {
|
|
7246
|
+
var _this = this;
|
|
7247
|
+
var sort = this.lookupServiceConfig.lookupDisplayFields
|
|
7248
|
+
.map(function (field) { return ({ field: field, order: 1 }); });
|
|
7249
|
+
var fpasRegistrationFilterQuery = createLookupRequestFilter(value, this.getFpasRegistrationSearchFields());
|
|
7250
|
+
fpasRegistrationFilterQuery = this.getFiltersDefaultFpasRegistration(companyIds, fpasRegistrationFilterQuery, additionalFilter);
|
|
7251
|
+
var displayFields = mergeUnique(this.lookupServiceConfig.lookupDisplayFields.concat("e070emp"), __spread(this.lookupServiceConfig.lookupDisplayFields));
|
|
7252
|
+
return this.fpasRegistrationService
|
|
7253
|
+
.list({ sort: sort, filterQuery: fpasRegistrationFilterQuery, displayFields: displayFields })
|
|
7254
|
+
.pipe(operators.takeUntil(this.ngUnsubscribe))
|
|
7255
|
+
.pipe(operators.map(function (list) { return (__assign(__assign({}, list), { contents: list.contents.map(function (item) { return (__assign(__assign({}, item), { label: _this.lookupServiceConfig.lookupDisplayFields
|
|
7256
|
+
.map(function (field) {
|
|
7257
|
+
if (field === "name" && !item.name) {
|
|
7258
|
+
item.name = _this.translate
|
|
7259
|
+
.instant(_this.configService.getTranslationPrefix() + ".list_grid_empty_field");
|
|
7260
|
+
}
|
|
7261
|
+
if (field.indexOf(".") > 0) {
|
|
7262
|
+
return getProp(item, field);
|
|
7263
|
+
}
|
|
7264
|
+
return item[field];
|
|
7265
|
+
}).join(_this.lookupServiceConfig.lookupSeparator) })); }) })); }));
|
|
7266
|
+
};
|
|
7267
|
+
FpasRegistrationLookupService.prototype.getFpasRegistrationSearchFields = function () {
|
|
7268
|
+
return [
|
|
7269
|
+
new angularComponents.FormField({
|
|
7270
|
+
name: "code",
|
|
7271
|
+
label: this.translate.instant(this.configService.getTranslationPrefix() + ".fpas_registration_code"),
|
|
7272
|
+
type: angularComponents.FieldType.Integer,
|
|
7273
|
+
}),
|
|
7274
|
+
new angularComponents.FormField({
|
|
7275
|
+
name: "name",
|
|
7276
|
+
label: this.translate.instant(this.configService.getTranslationPrefix() + ".fpas_registration_name"),
|
|
7277
|
+
type: angularComponents.FieldType.String,
|
|
7278
|
+
})
|
|
7279
|
+
];
|
|
7280
|
+
};
|
|
7281
|
+
FpasRegistrationLookupService.ctorParameters = function () { return [
|
|
7282
|
+
{ type: core$1.TranslateService },
|
|
7283
|
+
{ type: EntityLookupConfigService },
|
|
7284
|
+
{ type: FpasRegistrationService }
|
|
7285
|
+
]; };
|
|
7286
|
+
FpasRegistrationLookupService = __decorate([
|
|
7287
|
+
core.Injectable()
|
|
7288
|
+
], FpasRegistrationLookupService);
|
|
7289
|
+
return FpasRegistrationLookupService;
|
|
7290
|
+
}());
|
|
7291
|
+
|
|
7292
|
+
var FpasRegistrationLookupComponent = /** @class */ (function (_super) {
|
|
7293
|
+
__extends(FpasRegistrationLookupComponent, _super);
|
|
7294
|
+
function FpasRegistrationLookupComponent(translate, cdRef, configService, structerService, fpasRegistrationLookupService) {
|
|
7295
|
+
var _this = _super.call(this, translate, cdRef, configService, structerService) || this;
|
|
7296
|
+
_this.translate = translate;
|
|
7297
|
+
_this.cdRef = cdRef;
|
|
7298
|
+
_this.configService = configService;
|
|
7299
|
+
_this.structerService = structerService;
|
|
7300
|
+
_this.fpasRegistrationLookupService = fpasRegistrationLookupService;
|
|
7301
|
+
_this.controlName = "fpasRegistration";
|
|
7302
|
+
_this.entity = "fpasRegistration";
|
|
7303
|
+
_this.domain = "tax_obligation";
|
|
7304
|
+
_this.service = "shared";
|
|
7305
|
+
_this.useDateValidation = false;
|
|
7306
|
+
return _this;
|
|
7307
|
+
}
|
|
7308
|
+
FpasRegistrationLookupComponent.prototype.ngOnInit = function () {
|
|
7309
|
+
this.fpasRegistrationSearchFields = this.fpasRegistrationLookupService.getFpasRegistrationSearchFields();
|
|
7310
|
+
this.fpasRegistrationSearchGridFields = this.fpasRegistrationLookupService.getFpasRegistrationSearchFields();
|
|
7311
|
+
};
|
|
7312
|
+
FpasRegistrationLookupComponent.prototype.onFpasRegistrationLookupRequest = function (value) {
|
|
7313
|
+
var _this = this;
|
|
7314
|
+
this.fpasRegistrationLookupService
|
|
7315
|
+
.onFpasRegistrationLookupRequestObservable(value, this.fpasRegistrationLookupService.lookupServiceConfig.filters.additionalFilter, this.companyIds)
|
|
7316
|
+
.subscribe(function (list) {
|
|
7317
|
+
_this.fpasRegistrationSuggestions = list === null || list === void 0 ? void 0 : list.contents;
|
|
7318
|
+
});
|
|
7319
|
+
};
|
|
7320
|
+
FpasRegistrationLookupComponent.prototype.onFpasRegistrationSearchRequest = function (event) {
|
|
7321
|
+
var _this = this;
|
|
7322
|
+
this.fpasRegistrationLookupService
|
|
7323
|
+
.onFpasRegistrationSearchRequestObservable(event, this.fpasRegistrationLookupService.lookupServiceConfig.filters.additionalFilter, this.companyIds)
|
|
7324
|
+
.subscribe(function (list) {
|
|
7325
|
+
_this.fpasRegistrationSearchGridData = list === null || list === void 0 ? void 0 : list.contents;
|
|
7326
|
+
_this.fpasRegistrationSearchTotalRecords = list === null || list === void 0 ? void 0 : list.totalElements;
|
|
7327
|
+
});
|
|
7328
|
+
};
|
|
7329
|
+
FpasRegistrationLookupComponent.ctorParameters = function () { return [
|
|
7330
|
+
{ type: core$1.TranslateService },
|
|
7331
|
+
{ type: core.ChangeDetectorRef },
|
|
7332
|
+
{ type: EntityLookupConfigService },
|
|
7333
|
+
{ type: StructureFilterService },
|
|
7334
|
+
{ type: FpasRegistrationLookupService }
|
|
7335
|
+
]; };
|
|
7336
|
+
FpasRegistrationLookupComponent = __decorate([
|
|
7337
|
+
core.Component({
|
|
7338
|
+
selector: "hcm-fpas-registration-lookup",
|
|
7339
|
+
template: "<s-loading-state [loading]=\"loading\" [blockWindow]=\"true\"></s-loading-state>\n<form [formGroup]=\"formGroup\">\n <s-lookup dataKey=\"id\" id=\"fpasRegistration\" name=\"fpasRegistration\" [formControlName]=\"controlName\"\n [searchFields]=\"fpasRegistrationSearchFields\"\n [searchGridFields]=\"fpasRegistrationSearchGridFields\"\n [searchGridData]=\"fpasRegistrationSearchGridData\"\n (onSelect)=\"selectOption($event)\"\n (onClear)=\"onClearItem($event)\"\n [multiple]=\"multiple\"\n [disabled]=\"isDisabled\"\n [lookupSuggestions]=\"fpasRegistrationSuggestions\"\n (onLookupRequest)=\"onFpasRegistrationLookupRequest($event)\"\n (onSearchRequest)=\"onFpasRegistrationSearchRequest($event)\"\n lookupDisplayField=\"label\"\n [searchTotalRecords]=\"fpasRegistrationSearchTotalRecords\"\n [searchTitle]=\"configService.getTranslationPrefix() \n + '.fpas_registration_search_title' | translate\"\n [searchEmptyTitle]=\"configService.getTranslationPrefix()\n + '.nothing_found' | translate\" [filterLabel]=\"configService.getTranslationPrefix()\n + '.filter' | translate\" [filterTitle]=\"configService.getTranslationPrefix()\n + '.filters' | translate\" [clearLabel]=\"configService.getTranslationPrefix()\n + '.clear' | translate\" [cancelLabel]=\"configService.getTranslationPrefix()\n + '.cancel' | translate\" [selectLabel]=\"configService.getTranslationPrefix()\n + '.select' | translate\" [searchTotalRecordsLabel]=\"configService.getTranslationPrefix()\n + '.total_records' | translate: {value: fpasRegistrationSearchTotalRecords}\"></s-lookup>\n</form>\n"
|
|
7340
|
+
})
|
|
7341
|
+
], FpasRegistrationLookupComponent);
|
|
7342
|
+
return FpasRegistrationLookupComponent;
|
|
7343
|
+
}(BaseLookupComponent));
|
|
7344
|
+
|
|
7345
|
+
var FpasRegistrationLookupModule = /** @class */ (function () {
|
|
7346
|
+
function FpasRegistrationLookupModule() {
|
|
7347
|
+
}
|
|
7348
|
+
FpasRegistrationLookupModule = __decorate([
|
|
7349
|
+
core.NgModule({
|
|
7350
|
+
declarations: [
|
|
7351
|
+
FpasRegistrationLookupComponent,
|
|
7352
|
+
],
|
|
7353
|
+
exports: [
|
|
7354
|
+
FpasRegistrationLookupComponent,
|
|
7355
|
+
],
|
|
7356
|
+
imports: [
|
|
7357
|
+
SharedModule,
|
|
7358
|
+
angularComponents.LoadingStateModule,
|
|
7359
|
+
],
|
|
7360
|
+
providers: [
|
|
7361
|
+
FpasRegistrationLookupService,
|
|
7362
|
+
FpasRegistrationService
|
|
7363
|
+
],
|
|
7364
|
+
})
|
|
7365
|
+
], FpasRegistrationLookupModule);
|
|
7366
|
+
return FpasRegistrationLookupModule;
|
|
7367
|
+
}());
|
|
7368
|
+
|
|
7078
7369
|
var EntityLookupModule = /** @class */ (function () {
|
|
7079
7370
|
function EntityLookupModule() {
|
|
7080
7371
|
}
|
|
@@ -8071,6 +8362,28 @@
|
|
|
8071
8362
|
return CompanyLinkedLocationModule;
|
|
8072
8363
|
}());
|
|
8073
8364
|
|
|
8365
|
+
var FpasRegistrationModule = /** @class */ (function () {
|
|
8366
|
+
function FpasRegistrationModule() {
|
|
8367
|
+
}
|
|
8368
|
+
FpasRegistrationModule = __decorate([
|
|
8369
|
+
core.NgModule({
|
|
8370
|
+
imports: [
|
|
8371
|
+
platformComponents.PermissionsModule.forChild([
|
|
8372
|
+
{
|
|
8373
|
+
name: 'fpasRegistration',
|
|
8374
|
+
actions: ['Visualizar', 'Incluir', 'Editar', 'Excluir'],
|
|
8375
|
+
uri: "res://senior.com.br/tax_obligation/shared/entities/fpasRegistration",
|
|
8376
|
+
},
|
|
8377
|
+
]),
|
|
8378
|
+
],
|
|
8379
|
+
providers: [
|
|
8380
|
+
FpasRegistrationService
|
|
8381
|
+
]
|
|
8382
|
+
})
|
|
8383
|
+
], FpasRegistrationModule);
|
|
8384
|
+
return FpasRegistrationModule;
|
|
8385
|
+
}());
|
|
8386
|
+
|
|
8074
8387
|
var CoreLookupModule = /** @class */ (function () {
|
|
8075
8388
|
function CoreLookupModule() {
|
|
8076
8389
|
}
|
|
@@ -8100,7 +8413,8 @@
|
|
|
8100
8413
|
CalculationDefinitionModule,
|
|
8101
8414
|
EmploymentRelationshipModule,
|
|
8102
8415
|
WageTypePayrollModule,
|
|
8103
|
-
CompanyLinkedLocationModule
|
|
8416
|
+
CompanyLinkedLocationModule,
|
|
8417
|
+
FpasRegistrationModule
|
|
8104
8418
|
],
|
|
8105
8419
|
})
|
|
8106
8420
|
], CoreLookupModule);
|
|
@@ -9162,6 +9476,8 @@
|
|
|
9162
9476
|
exports.EmploymentRelationshipService = EmploymentRelationshipService;
|
|
9163
9477
|
exports.EntityLookupConfigService = EntityLookupConfigService;
|
|
9164
9478
|
exports.EntityLookupModule = EntityLookupModule;
|
|
9479
|
+
exports.FpasRegistrationLookupModule = FpasRegistrationLookupModule;
|
|
9480
|
+
exports.FpasRegistrationLookupService = FpasRegistrationLookupService;
|
|
9165
9481
|
exports.Holiday = Holiday;
|
|
9166
9482
|
exports.HolidayGroup = HolidayGroup;
|
|
9167
9483
|
exports.HolidayGroupService = HolidayGroupService;
|
|
@@ -9224,34 +9540,37 @@
|
|
|
9224
9540
|
exports.fallback = fallback;
|
|
9225
9541
|
exports.ɵa = PisPasepTaxationService;
|
|
9226
9542
|
exports.ɵb = EntityService;
|
|
9227
|
-
exports.ɵba =
|
|
9228
|
-
exports.ɵbb =
|
|
9229
|
-
exports.ɵbc =
|
|
9230
|
-
exports.ɵbd =
|
|
9543
|
+
exports.ɵba = SyndicateModule;
|
|
9544
|
+
exports.ɵbb = VariableEntryModule;
|
|
9545
|
+
exports.ɵbc = CalculationDefinitionModule;
|
|
9546
|
+
exports.ɵbd = EmploymentRelationshipModule;
|
|
9547
|
+
exports.ɵbe = WageTypePayrollModule;
|
|
9548
|
+
exports.ɵbf = CompanyLinkedLocationModule;
|
|
9549
|
+
exports.ɵbg = FpasRegistrationModule;
|
|
9231
9550
|
exports.ɵc = SharedModule;
|
|
9232
9551
|
exports.ɵd = CompanyBranchLookupComponent;
|
|
9233
9552
|
exports.ɵe = PersonLookupComponent;
|
|
9234
|
-
exports.ɵf =
|
|
9235
|
-
exports.ɵg =
|
|
9236
|
-
exports.ɵh =
|
|
9237
|
-
exports.ɵi =
|
|
9238
|
-
exports.ɵj =
|
|
9239
|
-
exports.ɵk =
|
|
9240
|
-
exports.ɵl =
|
|
9241
|
-
exports.ɵm =
|
|
9242
|
-
exports.ɵn =
|
|
9243
|
-
exports.ɵo =
|
|
9244
|
-
exports.ɵp =
|
|
9245
|
-
exports.ɵq =
|
|
9246
|
-
exports.ɵr =
|
|
9247
|
-
exports.ɵs =
|
|
9248
|
-
exports.ɵt =
|
|
9249
|
-
exports.ɵu =
|
|
9250
|
-
exports.ɵv =
|
|
9251
|
-
exports.ɵw =
|
|
9252
|
-
exports.ɵx =
|
|
9253
|
-
exports.ɵy =
|
|
9254
|
-
exports.ɵz =
|
|
9553
|
+
exports.ɵf = FpasRegistrationLookupComponent;
|
|
9554
|
+
exports.ɵg = FpasRegistrationService;
|
|
9555
|
+
exports.ɵh = E030AgeModule;
|
|
9556
|
+
exports.ɵi = E030BanModule;
|
|
9557
|
+
exports.ɵj = E044CcuModule;
|
|
9558
|
+
exports.ɵk = E070EmpModule;
|
|
9559
|
+
exports.ɵl = E070FilModule;
|
|
9560
|
+
exports.ɵm = HolidayModule;
|
|
9561
|
+
exports.ɵn = HolidayGroupModule;
|
|
9562
|
+
exports.ɵo = LocationModule;
|
|
9563
|
+
exports.ɵp = LocationStructureModule;
|
|
9564
|
+
exports.ɵq = LocationStructureService;
|
|
9565
|
+
exports.ɵr = PositionActingTypeModule;
|
|
9566
|
+
exports.ɵs = PositionModule;
|
|
9567
|
+
exports.ɵt = E001PesModule;
|
|
9568
|
+
exports.ɵu = EmployeeModule;
|
|
9569
|
+
exports.ɵv = JobPositionModule;
|
|
9570
|
+
exports.ɵw = WorkshiftModule;
|
|
9571
|
+
exports.ɵx = WorkshiftGroupModule;
|
|
9572
|
+
exports.ɵy = WageTypeModule;
|
|
9573
|
+
exports.ɵz = AnnotationTypeModule;
|
|
9255
9574
|
|
|
9256
9575
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
9257
9576
|
|