@senior-gestao-pessoas/hcm-entity-lookups 3.1.7 → 3.1.8-develop-d153a42f
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 +350 -28
- 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 +38 -0
- package/core/entities/company-tax-allocation/company-tax-allocation-dto.d.ts +11 -0
- package/core/entities/company-tax-allocation/company-tax-allocation.d.ts +14 -0
- package/core/entities/company-tax-allocation/company-tax-allocation.module.d.ts +2 -0
- package/core/entities/company-tax-allocation/company-tax-allocation.service.d.ts +13 -0
- package/esm2015/core/core-lookup.module.js +4 -2
- package/esm2015/core/dto/lookup-service-config.js +1 -0
- package/esm2015/core/entities/company-tax-allocation/company-tax-allocation-dto.js +1 -0
- package/esm2015/core/entities/company-tax-allocation/company-tax-allocation.js +34 -0
- package/esm2015/core/entities/company-tax-allocation/company-tax-allocation.module.js +26 -0
- package/esm2015/core/entities/company-tax-allocation/company-tax-allocation.service.js +27 -0
- package/esm2015/lookups/base-lookup/base-lookup.component.js +2 -1
- package/esm2015/lookups/company-tax-allocation-lookup/company-tax-allocation-lookup.component.js +56 -0
- package/esm2015/lookups/company-tax-allocation-lookup/company-tax-allocation-lookup.module.js +29 -0
- package/esm2015/lookups/company-tax-allocation-lookup/company-tax-allocation-lookup.service.js +192 -0
- package/esm2015/lookups/employee-lookup/employee-lookup.component.js +1 -1
- package/esm2015/public-api.js +4 -1
- package/esm2015/senior-gestao-pessoas-hcm-entity-lookups.js +30 -28
- package/esm5/core/core-lookup.module.js +4 -2
- package/esm5/core/dto/lookup-service-config.js +1 -0
- package/esm5/core/entities/company-tax-allocation/company-tax-allocation-dto.js +1 -0
- package/esm5/core/entities/company-tax-allocation/company-tax-allocation.js +39 -0
- package/esm5/core/entities/company-tax-allocation/company-tax-allocation.module.js +29 -0
- package/esm5/core/entities/company-tax-allocation/company-tax-allocation.service.js +30 -0
- package/esm5/lookups/base-lookup/base-lookup.component.js +2 -1
- package/esm5/lookups/company-tax-allocation-lookup/company-tax-allocation-lookup.component.js +61 -0
- package/esm5/lookups/company-tax-allocation-lookup/company-tax-allocation-lookup.module.js +32 -0
- package/esm5/lookups/company-tax-allocation-lookup/company-tax-allocation-lookup.service.js +202 -0
- package/esm5/lookups/employee-lookup/employee-lookup.component.js +1 -1
- package/esm5/public-api.js +4 -1
- package/esm5/senior-gestao-pessoas-hcm-entity-lookups.js +30 -28
- package/fesm2015/senior-gestao-pessoas-hcm-entity-lookups.js +295 -2
- package/fesm2015/senior-gestao-pessoas-hcm-entity-lookups.js.map +1 -1
- package/fesm5/senior-gestao-pessoas-hcm-entity-lookups.js +319 -2
- package/fesm5/senior-gestao-pessoas-hcm-entity-lookups.js.map +1 -1
- package/lookups/company-tax-allocation-lookup/company-tax-allocation-lookup.component.d.ts +24 -0
- package/lookups/company-tax-allocation-lookup/company-tax-allocation-lookup.module.d.ts +2 -0
- package/lookups/company-tax-allocation-lookup/company-tax-allocation-lookup.service.d.ts +25 -0
- package/package.json +1 -1
- package/public-api.d.ts +3 -0
- package/senior-gestao-pessoas-hcm-entity-lookups.d.ts +29 -27
- package/senior-gestao-pessoas-hcm-entity-lookups.metadata.json +1 -1
|
@@ -1067,6 +1067,7 @@
|
|
|
1067
1067
|
this.cdRef = cdRef;
|
|
1068
1068
|
this.configService = configService;
|
|
1069
1069
|
this.structerService = structerService;
|
|
1070
|
+
this.isDisabled = false;
|
|
1070
1071
|
this.multiple = false;
|
|
1071
1072
|
this.companyIds = [];
|
|
1072
1073
|
this.select = new core.EventEmitter();
|
|
@@ -1920,6 +1921,297 @@
|
|
|
1920
1921
|
return CompanyLookupModule;
|
|
1921
1922
|
}());
|
|
1922
1923
|
|
|
1924
|
+
var CompanyTaxAllocationService = /** @class */ (function (_super) {
|
|
1925
|
+
__extends(CompanyTaxAllocationService, _super);
|
|
1926
|
+
function CompanyTaxAllocationService(http, messageService, translate, configService) {
|
|
1927
|
+
var _this = _super.call(this, http, messageService, "erpx_fnd/empresa/entities/companyTaxAllocation", "erpx_fnd/empresa/actions", translate, configService) || this;
|
|
1928
|
+
_this.http = http;
|
|
1929
|
+
_this.messageService = messageService;
|
|
1930
|
+
_this.translate = translate;
|
|
1931
|
+
_this.configService = configService;
|
|
1932
|
+
return _this;
|
|
1933
|
+
}
|
|
1934
|
+
CompanyTaxAllocationService.ctorParameters = function () { return [
|
|
1935
|
+
{ type: http.HttpClient },
|
|
1936
|
+
{ type: api.MessageService },
|
|
1937
|
+
{ type: core$1.TranslateService },
|
|
1938
|
+
{ type: EntityLookupConfigService }
|
|
1939
|
+
]; };
|
|
1940
|
+
CompanyTaxAllocationService = __decorate([
|
|
1941
|
+
core.Injectable()
|
|
1942
|
+
], CompanyTaxAllocationService);
|
|
1943
|
+
return CompanyTaxAllocationService;
|
|
1944
|
+
}(EntityService));
|
|
1945
|
+
|
|
1946
|
+
var CompanyTaxAllocationLookupService = /** @class */ (function () {
|
|
1947
|
+
function CompanyTaxAllocationLookupService(translate, configService, companyTaxAllocationService) {
|
|
1948
|
+
this.translate = translate;
|
|
1949
|
+
this.configService = configService;
|
|
1950
|
+
this.companyTaxAllocationService = companyTaxAllocationService;
|
|
1951
|
+
this.lookupServiceConfig = {
|
|
1952
|
+
lookupDisplayFields: ["code", "name"],
|
|
1953
|
+
lookupSeparator: " - ",
|
|
1954
|
+
searchSubject: new rxjs.Subject(),
|
|
1955
|
+
lookupSubject: new rxjs.Subject(),
|
|
1956
|
+
entityName: "companyTaxAllocation",
|
|
1957
|
+
dynamicFormOptions: {
|
|
1958
|
+
cancelLabel: this.translate.instant(this.configService.getTranslationPrefix() + ".cancel"),
|
|
1959
|
+
clearLabel: this.translate.instant(this.configService.getTranslationPrefix() + ".clear"),
|
|
1960
|
+
dataKey: "id",
|
|
1961
|
+
emptyFieldLabel: this.translate.instant(this.configService.getTranslationPrefix() + ".list_grid_empty_field"),
|
|
1962
|
+
emptyMessage: this.translate.instant(this.configService.getTranslationPrefix() + ".empty_message_field"),
|
|
1963
|
+
filterLabel: this.translate.instant(this.configService.getTranslationPrefix() + ".filter"),
|
|
1964
|
+
filterTitle: this.translate.instant(this.configService.getTranslationPrefix() + ".filters"),
|
|
1965
|
+
label: this.translate.instant(this.configService.getTranslationPrefix() + ".company_tax_allocation"),
|
|
1966
|
+
lookupDisplayField: "label",
|
|
1967
|
+
multiple: false,
|
|
1968
|
+
name: "companyTaxAllocation",
|
|
1969
|
+
recordLabel: this.translate.instant(this.configService.getTranslationPrefix() + ".records_found"),
|
|
1970
|
+
recordsLabel: this.translate.instant(this.configService.getTranslationPrefix() + ".records_found"),
|
|
1971
|
+
required: true,
|
|
1972
|
+
searchEmptyTitle: this.translate.instant(this.configService.getTranslationPrefix() + ".nothing_found"),
|
|
1973
|
+
searchFields: this.getCompanyTaxAllocationSearchFields(),
|
|
1974
|
+
searchGridFields: this.getCompanyTaxAllocationSearchFields(),
|
|
1975
|
+
searchTitle: this.translate.instant(this.configService.getTranslationPrefix() + ".company_tax_allocation_search_title"),
|
|
1976
|
+
selectLabel: this.translate.instant(this.configService.getTranslationPrefix() + ".select"),
|
|
1977
|
+
visible: true,
|
|
1978
|
+
isCollective: false,
|
|
1979
|
+
},
|
|
1980
|
+
filters: {
|
|
1981
|
+
additionalFilter: undefined,
|
|
1982
|
+
initialFilter: undefined,
|
|
1983
|
+
companyIds: [],
|
|
1984
|
+
},
|
|
1985
|
+
};
|
|
1986
|
+
this.ngUnsubscribe = new rxjs.Subject();
|
|
1987
|
+
}
|
|
1988
|
+
CompanyTaxAllocationLookupService.prototype.updateSuggestions = function (value) {
|
|
1989
|
+
if (value === null || value === void 0 ? void 0 : value[this.lookupServiceConfig.entityName]) {
|
|
1990
|
+
value[this.lookupServiceConfig.entityName].label = this.getSuggestionValue(this.lookupServiceConfig.lookupDisplayFields, this.lookupServiceConfig.entityName, value, this.lookupServiceConfig.lookupSeparator);
|
|
1991
|
+
if (value[this.lookupServiceConfig.entityName].label.trim() === this.lookupServiceConfig.lookupSeparator.trim()) {
|
|
1992
|
+
delete value[this.lookupServiceConfig.entityName].label;
|
|
1993
|
+
}
|
|
1994
|
+
}
|
|
1995
|
+
};
|
|
1996
|
+
CompanyTaxAllocationLookupService.prototype.getSuggestionValue = function (displayFields, ownerEntity, value, separator) {
|
|
1997
|
+
return displayFields
|
|
1998
|
+
.map(function (field) { return getProp(value, ownerEntity + "." + field); })
|
|
1999
|
+
.reduce(function (acc, val) { return "" + acc + separator + val; });
|
|
2000
|
+
};
|
|
2001
|
+
CompanyTaxAllocationLookupService.prototype.getFormField = function () {
|
|
2002
|
+
var _this = this;
|
|
2003
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s;
|
|
2004
|
+
return new angularComponents.FormField({
|
|
2005
|
+
cancelLabel: (_a = this.lookupServiceConfig.dynamicFormOptions) === null || _a === void 0 ? void 0 : _a.cancelLabel,
|
|
2006
|
+
clearLabel: (_b = this.lookupServiceConfig.dynamicFormOptions) === null || _b === void 0 ? void 0 : _b.clearLabel,
|
|
2007
|
+
recordLabel: (_c = this.lookupServiceConfig.dynamicFormOptions) === null || _c === void 0 ? void 0 : _c.recordLabel,
|
|
2008
|
+
recordsLabel: (_d = this.lookupServiceConfig.dynamicFormOptions) === null || _d === void 0 ? void 0 : _d.recordsLabel,
|
|
2009
|
+
searchEmptyTitle: (_e = this.lookupServiceConfig.dynamicFormOptions) === null || _e === void 0 ? void 0 : _e.searchEmptyTitle,
|
|
2010
|
+
searchFields: (_f = this.lookupServiceConfig.dynamicFormOptions) === null || _f === void 0 ? void 0 : _f.searchFields,
|
|
2011
|
+
searchTitle: (_g = this.lookupServiceConfig.dynamicFormOptions) === null || _g === void 0 ? void 0 : _g.searchTitle,
|
|
2012
|
+
selectLabel: (_h = this.lookupServiceConfig.dynamicFormOptions) === null || _h === void 0 ? void 0 : _h.selectLabel,
|
|
2013
|
+
dataKey: (_j = this.lookupServiceConfig.dynamicFormOptions) === null || _j === void 0 ? void 0 : _j.dataKey,
|
|
2014
|
+
emptyFieldLabel: (_k = this.lookupServiceConfig.dynamicFormOptions) === null || _k === void 0 ? void 0 : _k.emptyFieldLabel,
|
|
2015
|
+
emptyMessage: (_l = this.lookupServiceConfig.dynamicFormOptions) === null || _l === void 0 ? void 0 : _l.emptyMessage,
|
|
2016
|
+
filterLabel: (_m = this.lookupServiceConfig.dynamicFormOptions) === null || _m === void 0 ? void 0 : _m.filterLabel,
|
|
2017
|
+
filterTitle: (_o = this.lookupServiceConfig.dynamicFormOptions) === null || _o === void 0 ? void 0 : _o.filterTitle,
|
|
2018
|
+
label: (_p = this.lookupServiceConfig.dynamicFormOptions) === null || _p === void 0 ? void 0 : _p.label,
|
|
2019
|
+
lookupDisplayField: (_q = this.lookupServiceConfig.dynamicFormOptions) === null || _q === void 0 ? void 0 : _q.lookupDisplayField,
|
|
2020
|
+
multiple: (_r = this.lookupServiceConfig.dynamicFormOptions) === null || _r === void 0 ? void 0 : _r.multiple,
|
|
2021
|
+
name: (_s = this.lookupServiceConfig.dynamicFormOptions) === null || _s === void 0 ? void 0 : _s.name,
|
|
2022
|
+
onLookupRequest: function (value) { return _this.onCompanyTaxAllocationLookupRequest(value); },
|
|
2023
|
+
onSearchRequest: function (event) { return _this.onCompanyTaxAllocationSearchRequest(event); },
|
|
2024
|
+
required: function () { var _a; return (_a = _this.lookupServiceConfig.dynamicFormOptions) === null || _a === void 0 ? void 0 : _a.required; },
|
|
2025
|
+
searchObservable: this.lookupServiceConfig.searchSubject,
|
|
2026
|
+
suggestionsObservable: this.lookupServiceConfig.lookupSubject,
|
|
2027
|
+
type: angularComponents.FieldType.Lookup,
|
|
2028
|
+
visible: function () { var _a; return !((_a = _this.lookupServiceConfig.dynamicFormOptions) === null || _a === void 0 ? void 0 : _a.isCollective); },
|
|
2029
|
+
});
|
|
2030
|
+
};
|
|
2031
|
+
CompanyTaxAllocationLookupService.prototype.onCompanyTaxAllocationSearchRequest = function (event) {
|
|
2032
|
+
var _this = this;
|
|
2033
|
+
var _a, _b, _c, _d;
|
|
2034
|
+
this.onCompanyTaxAllocationSearchRequestObservable(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); });
|
|
2035
|
+
};
|
|
2036
|
+
CompanyTaxAllocationLookupService.prototype.onCompanyTaxAllocationSearchRequestObservable = function (event, additionalFilter, companyIds, isDynamicForm) {
|
|
2037
|
+
var _this = this;
|
|
2038
|
+
if (isDynamicForm === void 0) { isDynamicForm = false; }
|
|
2039
|
+
var first = event.first, rows = event.rows, multiSortMeta = event.multiSortMeta, filterData = event.filterData;
|
|
2040
|
+
var page = first / rows;
|
|
2041
|
+
var sort = multiSortMeta;
|
|
2042
|
+
var companyTaxAllocationFilterQuery = createSearchRequestFilter(filterData, this.getCompanyTaxAllocationSearchFields());
|
|
2043
|
+
companyTaxAllocationFilterQuery = this.getFiltersDefaultCompanyTaxAllocation(companyIds, companyTaxAllocationFilterQuery, additionalFilter);
|
|
2044
|
+
var displayFields = mergeUnique(this.lookupServiceConfig.lookupDisplayFields.concat("e070emp"), __spread(this.lookupServiceConfig.lookupDisplayFields));
|
|
2045
|
+
return this.companyTaxAllocationService
|
|
2046
|
+
.list({ page: page, sort: sort, filterQuery: companyTaxAllocationFilterQuery, displayFields: displayFields })
|
|
2047
|
+
.pipe(operators.takeUntil(this.ngUnsubscribe))
|
|
2048
|
+
.pipe(operators.map(function (list) { return _this.mapToComponent(list, isDynamicForm); }));
|
|
2049
|
+
};
|
|
2050
|
+
CompanyTaxAllocationLookupService.prototype.getFiltersDefaultCompanyTaxAllocation = function (companyIds, filterData, additionalFilter) {
|
|
2051
|
+
var filters = [];
|
|
2052
|
+
additionalFilter && filters.push("(" + additionalFilter + ")");
|
|
2053
|
+
filterData && filters.push("(" + filterData + ")");
|
|
2054
|
+
(companyIds === null || companyIds === void 0 ? void 0 : companyIds.length) && filters.push("(e070emp.id in (" + companyIds.map(function (id) { return "'" + id + "'"; }) + "))");
|
|
2055
|
+
return filters.join(' and ');
|
|
2056
|
+
};
|
|
2057
|
+
CompanyTaxAllocationLookupService.prototype.mapToComponent = function (list, isDynamicForm) {
|
|
2058
|
+
var _this = this;
|
|
2059
|
+
if (isDynamicForm === void 0) { isDynamicForm = false; }
|
|
2060
|
+
if (isDynamicForm) {
|
|
2061
|
+
return ({
|
|
2062
|
+
gridData: list.contents
|
|
2063
|
+
.map(function (item) { return (__assign(__assign({}, item), { label: _this.getLabelForMaping(item) })); }),
|
|
2064
|
+
totalRecords: list === null || list === void 0 ? void 0 : list.totalElements,
|
|
2065
|
+
});
|
|
2066
|
+
}
|
|
2067
|
+
else {
|
|
2068
|
+
return (__assign(__assign({}, list), { contents: list.contents.map(function (item) { return (__assign(__assign({}, item), { label: _this.getLabelForMaping(item) })); }) }));
|
|
2069
|
+
}
|
|
2070
|
+
};
|
|
2071
|
+
CompanyTaxAllocationLookupService.prototype.getLabelForMaping = function (item) {
|
|
2072
|
+
var _this = this;
|
|
2073
|
+
return this.lookupServiceConfig.lookupDisplayFields
|
|
2074
|
+
.map(function (field) {
|
|
2075
|
+
if (field === "name" && !(item === null || item === void 0 ? void 0 : item.name)) {
|
|
2076
|
+
item.name = _this.translate
|
|
2077
|
+
.instant(_this.configService.getTranslationPrefix() + ".list_grid_empty_field");
|
|
2078
|
+
}
|
|
2079
|
+
if (field.indexOf(".") > 0) {
|
|
2080
|
+
return getProp(item, field);
|
|
2081
|
+
}
|
|
2082
|
+
return item[field];
|
|
2083
|
+
})
|
|
2084
|
+
.join(this.lookupServiceConfig.lookupSeparator);
|
|
2085
|
+
};
|
|
2086
|
+
CompanyTaxAllocationLookupService.prototype.onCompanyTaxAllocationLookupRequest = function (value) {
|
|
2087
|
+
var _this = this;
|
|
2088
|
+
var _a, _b, _c, _d;
|
|
2089
|
+
this.onCompanyTaxAllocationLookupRequestObservable(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); });
|
|
2090
|
+
};
|
|
2091
|
+
CompanyTaxAllocationLookupService.prototype.onCompanyTaxAllocationLookupRequestObservable = function (value, additionalFilter, companyIds) {
|
|
2092
|
+
var _this = this;
|
|
2093
|
+
var sort = this.lookupServiceConfig.lookupDisplayFields
|
|
2094
|
+
.map(function (field) { return ({ field: field, order: 1 }); });
|
|
2095
|
+
var companyTaxAllocationFilterQuery = createLookupRequestFilter(value, this.getCompanyTaxAllocationSearchFields());
|
|
2096
|
+
companyTaxAllocationFilterQuery = this.getFiltersDefaultCompanyTaxAllocation(companyIds, companyTaxAllocationFilterQuery, additionalFilter);
|
|
2097
|
+
var displayFields = mergeUnique(this.lookupServiceConfig.lookupDisplayFields.concat("e070emp"), __spread(this.lookupServiceConfig.lookupDisplayFields));
|
|
2098
|
+
return this.companyTaxAllocationService
|
|
2099
|
+
.list({ sort: sort, filterQuery: companyTaxAllocationFilterQuery, displayFields: displayFields })
|
|
2100
|
+
.pipe(operators.takeUntil(this.ngUnsubscribe))
|
|
2101
|
+
.pipe(operators.map(function (list) { return (__assign(__assign({}, list), { contents: list.contents.map(function (item) { return (__assign(__assign({}, item), { label: _this.lookupServiceConfig.lookupDisplayFields
|
|
2102
|
+
.map(function (field) {
|
|
2103
|
+
if (field === "name" && !item.name) {
|
|
2104
|
+
item.name = _this.translate
|
|
2105
|
+
.instant(_this.configService.getTranslationPrefix() + ".list_grid_empty_field");
|
|
2106
|
+
}
|
|
2107
|
+
if (field.indexOf(".") > 0) {
|
|
2108
|
+
return getProp(item, field);
|
|
2109
|
+
}
|
|
2110
|
+
return item[field];
|
|
2111
|
+
}).join(_this.lookupServiceConfig.lookupSeparator) })); }) })); }));
|
|
2112
|
+
};
|
|
2113
|
+
CompanyTaxAllocationLookupService.prototype.getCompanyTaxAllocationSearchFields = function () {
|
|
2114
|
+
return [
|
|
2115
|
+
new angularComponents.FormField({
|
|
2116
|
+
label: this.translate.instant(this.configService.getTranslationPrefix() + ".company_tax_allocation_code"),
|
|
2117
|
+
name: "code",
|
|
2118
|
+
type: angularComponents.FieldType.Integer,
|
|
2119
|
+
}),
|
|
2120
|
+
new angularComponents.FormField({
|
|
2121
|
+
label: this.translate.instant(this.configService.getTranslationPrefix() + ".company_tax_allocation_name"),
|
|
2122
|
+
name: "name",
|
|
2123
|
+
type: angularComponents.FieldType.String,
|
|
2124
|
+
}),
|
|
2125
|
+
];
|
|
2126
|
+
};
|
|
2127
|
+
CompanyTaxAllocationLookupService.ctorParameters = function () { return [
|
|
2128
|
+
{ type: core$1.TranslateService },
|
|
2129
|
+
{ type: EntityLookupConfigService },
|
|
2130
|
+
{ type: CompanyTaxAllocationService }
|
|
2131
|
+
]; };
|
|
2132
|
+
CompanyTaxAllocationLookupService = __decorate([
|
|
2133
|
+
core.Injectable()
|
|
2134
|
+
], CompanyTaxAllocationLookupService);
|
|
2135
|
+
return CompanyTaxAllocationLookupService;
|
|
2136
|
+
}());
|
|
2137
|
+
|
|
2138
|
+
var CompanyTaxAllocationLookupComponent = /** @class */ (function (_super) {
|
|
2139
|
+
__extends(CompanyTaxAllocationLookupComponent, _super);
|
|
2140
|
+
function CompanyTaxAllocationLookupComponent(translate, cdRef, configService, structerService, companyTaxAllocationLookupService) {
|
|
2141
|
+
var _this = _super.call(this, translate, cdRef, configService, structerService) || this;
|
|
2142
|
+
_this.translate = translate;
|
|
2143
|
+
_this.cdRef = cdRef;
|
|
2144
|
+
_this.configService = configService;
|
|
2145
|
+
_this.structerService = structerService;
|
|
2146
|
+
_this.companyTaxAllocationLookupService = companyTaxAllocationLookupService;
|
|
2147
|
+
_this.controlName = "companyTaxAllocation";
|
|
2148
|
+
_this.entity = "companyTaxAllocation";
|
|
2149
|
+
_this.domain = "erpx_fnd";
|
|
2150
|
+
_this.service = "empresa";
|
|
2151
|
+
_this.useDateValidation = false;
|
|
2152
|
+
return _this;
|
|
2153
|
+
}
|
|
2154
|
+
CompanyTaxAllocationLookupComponent.prototype.ngOnInit = function () {
|
|
2155
|
+
this.companyTaxAllocationSearchFields = this.companyTaxAllocationLookupService.getCompanyTaxAllocationSearchFields();
|
|
2156
|
+
this.companyTaxAllocationSearchGridFields = this.companyTaxAllocationLookupService.getCompanyTaxAllocationSearchFields();
|
|
2157
|
+
};
|
|
2158
|
+
CompanyTaxAllocationLookupComponent.prototype.onCompanyTaxAllocationLookupRequest = function (value) {
|
|
2159
|
+
var _this = this;
|
|
2160
|
+
this.companyTaxAllocationLookupService
|
|
2161
|
+
.onCompanyTaxAllocationLookupRequestObservable(value, this.additionalFilter, this.companyIds)
|
|
2162
|
+
.subscribe(function (list) {
|
|
2163
|
+
_this.companyTaxAllocationLookupSuggestions = list === null || list === void 0 ? void 0 : list.contents;
|
|
2164
|
+
});
|
|
2165
|
+
};
|
|
2166
|
+
CompanyTaxAllocationLookupComponent.prototype.onCompanyTaxAllocationSearchRequest = function (event) {
|
|
2167
|
+
var _this = this;
|
|
2168
|
+
this.companyTaxAllocationLookupService
|
|
2169
|
+
.onCompanyTaxAllocationSearchRequestObservable(event, this.additionalFilter, this.companyIds)
|
|
2170
|
+
.subscribe(function (list) {
|
|
2171
|
+
_this.companyTaxAllocationSearchGridData = list === null || list === void 0 ? void 0 : list.contents;
|
|
2172
|
+
_this.companyTaxAllocationSearchTotalRecords = list === null || list === void 0 ? void 0 : list.totalElements;
|
|
2173
|
+
});
|
|
2174
|
+
};
|
|
2175
|
+
CompanyTaxAllocationLookupComponent.ctorParameters = function () { return [
|
|
2176
|
+
{ type: core$1.TranslateService },
|
|
2177
|
+
{ type: core.ChangeDetectorRef },
|
|
2178
|
+
{ type: EntityLookupConfigService },
|
|
2179
|
+
{ type: StructureFilterService },
|
|
2180
|
+
{ type: CompanyTaxAllocationLookupService }
|
|
2181
|
+
]; };
|
|
2182
|
+
CompanyTaxAllocationLookupComponent = __decorate([
|
|
2183
|
+
core.Component({
|
|
2184
|
+
selector: "fnd-company-tax-allocation-lookup",
|
|
2185
|
+
template: "<s-loading-state [loading]=\"loading\" [blockWindow]=\"true\"></s-loading-state>\n<form [formGroup]=\"formGroup\">\n <s-lookup dataKey=\"id\" id=\"companyTaxAllocation\" name=\"companyTaxAllocation\" [formControlName]=\"controlName\"\n [searchFields]=\"companyTaxAllocationSearchFields\"\n [searchGridFields]=\"companyTaxAllocationSearchGridFields\"\n [searchGridData]=\"companyTaxAllocationSearchGridData\"\n (onSelect)=\"selectOption($event)\"\n (onClear)=\"onClearItem($event)\"\n [multiple]=\"multiple\"\n [disabled]=\"isDisabled\"\n [lookupSuggestions]=\"companyTaxAllocationLookupSuggestions\"\n (onLookupRequest)=\"onCompanyTaxAllocationLookupRequest($event)\"\n (onSearchRequest)=\"onCompanyTaxAllocationSearchRequest($event)\"\n lookupDisplayField=\"label\"\n [searchTotalRecords]=companyTaxAllocationSearchTotalRecords\n [searchTitle]=\"configService.getTranslationPrefix() \n + '.company_tax_allocation_history_company_tax_allocation_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: companyTaxAllocationSearchTotalRecords}\"></s-lookup>\n</form>\n"
|
|
2186
|
+
})
|
|
2187
|
+
], CompanyTaxAllocationLookupComponent);
|
|
2188
|
+
return CompanyTaxAllocationLookupComponent;
|
|
2189
|
+
}(BaseLookupComponent));
|
|
2190
|
+
|
|
2191
|
+
var CompanyTaxAllocationLookupModule = /** @class */ (function () {
|
|
2192
|
+
function CompanyTaxAllocationLookupModule() {
|
|
2193
|
+
}
|
|
2194
|
+
CompanyTaxAllocationLookupModule = __decorate([
|
|
2195
|
+
core.NgModule({
|
|
2196
|
+
declarations: [
|
|
2197
|
+
CompanyTaxAllocationLookupComponent,
|
|
2198
|
+
],
|
|
2199
|
+
exports: [
|
|
2200
|
+
CompanyTaxAllocationLookupComponent,
|
|
2201
|
+
],
|
|
2202
|
+
imports: [
|
|
2203
|
+
SharedModule,
|
|
2204
|
+
angularComponents.LoadingStateModule,
|
|
2205
|
+
],
|
|
2206
|
+
providers: [
|
|
2207
|
+
CompanyTaxAllocationLookupService,
|
|
2208
|
+
CompanyTaxAllocationService,
|
|
2209
|
+
],
|
|
2210
|
+
})
|
|
2211
|
+
], CompanyTaxAllocationLookupModule);
|
|
2212
|
+
return CompanyTaxAllocationLookupModule;
|
|
2213
|
+
}());
|
|
2214
|
+
|
|
1923
2215
|
var E044CcuService = /** @class */ (function (_super) {
|
|
1924
2216
|
__extends(E044CcuService, _super);
|
|
1925
2217
|
function E044CcuService(http, messageService, translate, configService) {
|
|
@@ -7668,6 +7960,30 @@
|
|
|
7668
7960
|
return WageTypePayrollModule;
|
|
7669
7961
|
}());
|
|
7670
7962
|
|
|
7963
|
+
var CompanyTaxAllocationModule = /** @class */ (function () {
|
|
7964
|
+
function CompanyTaxAllocationModule() {
|
|
7965
|
+
}
|
|
7966
|
+
CompanyTaxAllocationModule = __decorate([
|
|
7967
|
+
core.NgModule({
|
|
7968
|
+
declarations: [],
|
|
7969
|
+
exports: [],
|
|
7970
|
+
imports: [
|
|
7971
|
+
platformComponents.PermissionsModule.forChild([
|
|
7972
|
+
{
|
|
7973
|
+
actions: ["Visualizar", "Incluir", "Editar", "Excluir"],
|
|
7974
|
+
name: "companyTaxAllocation",
|
|
7975
|
+
uri: "res://senior.com.br/erpx_fnd/empresa/entities/companyTaxAllocation",
|
|
7976
|
+
},
|
|
7977
|
+
]),
|
|
7978
|
+
],
|
|
7979
|
+
providers: [
|
|
7980
|
+
CompanyTaxAllocationService,
|
|
7981
|
+
],
|
|
7982
|
+
})
|
|
7983
|
+
], CompanyTaxAllocationModule);
|
|
7984
|
+
return CompanyTaxAllocationModule;
|
|
7985
|
+
}());
|
|
7986
|
+
|
|
7671
7987
|
var CoreLookupModule = /** @class */ (function () {
|
|
7672
7988
|
function CoreLookupModule() {
|
|
7673
7989
|
}
|
|
@@ -7697,7 +8013,8 @@
|
|
|
7697
8013
|
VariableEntryModule,
|
|
7698
8014
|
CalculationDefinitionModule,
|
|
7699
8015
|
EmploymentRelationshipModule,
|
|
7700
|
-
WageTypePayrollModule
|
|
8016
|
+
WageTypePayrollModule,
|
|
8017
|
+
CompanyTaxAllocationModule
|
|
7701
8018
|
],
|
|
7702
8019
|
})
|
|
7703
8020
|
], CoreLookupModule);
|
|
@@ -8732,6 +9049,9 @@
|
|
|
8732
9049
|
exports.CompanyLookupComponent = CompanyLookupComponent;
|
|
8733
9050
|
exports.CompanyLookupModule = CompanyLookupModule;
|
|
8734
9051
|
exports.CompanyLookupService = CompanyLookupService;
|
|
9052
|
+
exports.CompanyTaxAllocationLookupComponent = CompanyTaxAllocationLookupComponent;
|
|
9053
|
+
exports.CompanyTaxAllocationLookupModule = CompanyTaxAllocationLookupModule;
|
|
9054
|
+
exports.CompanyTaxAllocationLookupService = CompanyTaxAllocationLookupService;
|
|
8735
9055
|
exports.CoreLookupModule = CoreLookupModule;
|
|
8736
9056
|
exports.CostCenterLookupComponent = CostCenterLookupComponent;
|
|
8737
9057
|
exports.CostCenterLookupModule = CostCenterLookupModule;
|
|
@@ -8826,35 +9146,37 @@
|
|
|
8826
9146
|
exports.fallback = fallback;
|
|
8827
9147
|
exports.ɵa = PisPasepTaxationService;
|
|
8828
9148
|
exports.ɵb = EntityService;
|
|
8829
|
-
exports.ɵba =
|
|
8830
|
-
exports.ɵbb =
|
|
8831
|
-
exports.ɵbc =
|
|
8832
|
-
exports.ɵbd =
|
|
8833
|
-
exports.ɵbe =
|
|
9149
|
+
exports.ɵba = AnnotationTypeModule;
|
|
9150
|
+
exports.ɵbb = SyndicateModule;
|
|
9151
|
+
exports.ɵbc = VariableEntryModule;
|
|
9152
|
+
exports.ɵbd = CalculationDefinitionModule;
|
|
9153
|
+
exports.ɵbe = EmploymentRelationshipModule;
|
|
9154
|
+
exports.ɵbf = WageTypePayrollModule;
|
|
9155
|
+
exports.ɵbg = CompanyTaxAllocationModule;
|
|
8834
9156
|
exports.ɵc = SharedModule;
|
|
8835
9157
|
exports.ɵd = CompanyBranchLookupComponent;
|
|
8836
|
-
exports.ɵe =
|
|
8837
|
-
exports.ɵf =
|
|
8838
|
-
exports.ɵg =
|
|
8839
|
-
exports.ɵh =
|
|
8840
|
-
exports.ɵi =
|
|
8841
|
-
exports.ɵj =
|
|
8842
|
-
exports.ɵk =
|
|
8843
|
-
exports.ɵl =
|
|
8844
|
-
exports.ɵm =
|
|
8845
|
-
exports.ɵn =
|
|
8846
|
-
exports.ɵo =
|
|
8847
|
-
exports.ɵp =
|
|
8848
|
-
exports.ɵq =
|
|
8849
|
-
exports.ɵr =
|
|
8850
|
-
exports.ɵs =
|
|
8851
|
-
exports.ɵt =
|
|
8852
|
-
exports.ɵu =
|
|
8853
|
-
exports.ɵv =
|
|
8854
|
-
exports.ɵw =
|
|
8855
|
-
exports.ɵx =
|
|
8856
|
-
exports.ɵy =
|
|
8857
|
-
exports.ɵz =
|
|
9158
|
+
exports.ɵe = CompanyTaxAllocationService;
|
|
9159
|
+
exports.ɵf = PersonLookupComponent;
|
|
9160
|
+
exports.ɵg = ESocialCategoryModule;
|
|
9161
|
+
exports.ɵh = CompanyBranchIndicationsModule;
|
|
9162
|
+
exports.ɵi = E030AgeModule;
|
|
9163
|
+
exports.ɵj = E030BanModule;
|
|
9164
|
+
exports.ɵk = E044CcuModule;
|
|
9165
|
+
exports.ɵl = E070EmpModule;
|
|
9166
|
+
exports.ɵm = E070FilModule;
|
|
9167
|
+
exports.ɵn = HolidayModule;
|
|
9168
|
+
exports.ɵo = HolidayGroupModule;
|
|
9169
|
+
exports.ɵp = LocationModule;
|
|
9170
|
+
exports.ɵq = LocationStructureModule;
|
|
9171
|
+
exports.ɵr = LocationStructureService;
|
|
9172
|
+
exports.ɵs = PositionActingTypeModule;
|
|
9173
|
+
exports.ɵt = PositionModule;
|
|
9174
|
+
exports.ɵu = E001PesModule;
|
|
9175
|
+
exports.ɵv = EmployeeModule;
|
|
9176
|
+
exports.ɵw = JobPositionModule;
|
|
9177
|
+
exports.ɵx = WorkshiftModule;
|
|
9178
|
+
exports.ɵy = WorkshiftGroupModule;
|
|
9179
|
+
exports.ɵz = WageTypeModule;
|
|
8858
9180
|
|
|
8859
9181
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
8860
9182
|
|