@senior-gestao-empresarial/angular-components 7.14.1 → 7.15.0-b6a23810-5d75-4998-9373-4e317db69da6
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-empresarial-angular-components.umd.js +63 -3
- package/bundles/senior-gestao-empresarial-angular-components.umd.js.map +1 -1
- package/bundles/senior-gestao-empresarial-angular-components.umd.min.js +1 -1
- package/bundles/senior-gestao-empresarial-angular-components.umd.min.js.map +1 -1
- package/components/lookups/entities/lista-servico-nacional-lookup.d.ts +8 -0
- package/components/lookups/erp-lookups.d.ts +11 -3
- package/components/lookups/index.d.ts +1 -0
- package/esm2015/components/lookups/entities/lista-servico-nacional-lookup.js +34 -0
- package/esm2015/components/lookups/erp-lookups.js +24 -3
- package/esm2015/components/lookups/erp-lookups.module.js +3 -1
- package/esm2015/components/lookups/index.js +2 -1
- package/esm5/components/lookups/entities/lista-servico-nacional-lookup.js +37 -0
- package/esm5/components/lookups/erp-lookups.js +33 -5
- package/esm5/components/lookups/erp-lookups.module.js +3 -1
- package/esm5/components/lookups/index.js +2 -1
- package/fesm2015/senior-gestao-empresarial-angular-components.js +52 -3
- package/fesm2015/senior-gestao-empresarial-angular-components.js.map +1 -1
- package/fesm5/senior-gestao-empresarial-angular-components.js +62 -4
- package/fesm5/senior-gestao-empresarial-angular-components.js.map +1 -1
- package/package.json +1 -1
- package/senior-gestao-empresarial-angular-components.metadata.json +1 -1
|
@@ -213,6 +213,12 @@ var EnumLogicalOperator;
|
|
|
213
213
|
/** Contains string value (Ex: /Products?$filter=containing(lower(name), lower('my name'))) */
|
|
214
214
|
EnumLogicalOperator["Contains"] = "containing";
|
|
215
215
|
})(EnumLogicalOperator || (EnumLogicalOperator = {}));
|
|
216
|
+
class ErpLookupsSearchField extends FormField {
|
|
217
|
+
constructor(searchFieldOptions, ...args) {
|
|
218
|
+
super(args);
|
|
219
|
+
this.searchFieldOptions = searchFieldOptions;
|
|
220
|
+
}
|
|
221
|
+
}
|
|
216
222
|
let ErpLookups =
|
|
217
223
|
/**
|
|
218
224
|
* Erp Lookups
|
|
@@ -258,6 +264,9 @@ class ErpLookups {
|
|
|
258
264
|
translationKey = `${prefix}.lookup_${this.toSnakeCase(this.entity)}_${this.toSnakeCase(fieldName)}`;
|
|
259
265
|
label = this.translate.instant(translationKey);
|
|
260
266
|
}
|
|
267
|
+
if ("searchFieldOptions" in field) {
|
|
268
|
+
return new ErpLookupsSearchField(field.searchFieldOptions, Object.assign(Object.assign({}, field), { label }));
|
|
269
|
+
}
|
|
261
270
|
return new FormField(Object.assign(Object.assign({}, field), { label }));
|
|
262
271
|
});
|
|
263
272
|
}
|
|
@@ -427,12 +436,24 @@ class ErpLookups {
|
|
|
427
436
|
const lookupDisplayFields = options.lookupFields.map(field => field.name);
|
|
428
437
|
let filterQuery = (options.searchFields || this.searchFields)
|
|
429
438
|
.filter(({ name }) => filterData[name] != undefined && filterData[name] != "")
|
|
430
|
-
.map((
|
|
439
|
+
.map((formField) => {
|
|
440
|
+
var _a;
|
|
441
|
+
const { name, type, multiple } = formField;
|
|
431
442
|
const value = filterData[name];
|
|
432
443
|
if (typeof value == "number")
|
|
433
444
|
return `${name} eq ${value}`;
|
|
434
|
-
else if (type == FieldType.Date)
|
|
445
|
+
else if (type == FieldType.Date) {
|
|
446
|
+
if ('searchFieldOptions' in formField &&
|
|
447
|
+
((_a = formField.searchFieldOptions) === null || _a === void 0 ? void 0 : _a.useAs) ===
|
|
448
|
+
FieldType.DateTime) {
|
|
449
|
+
return `(${name} ${EnumLogicalOperator.Gt} '${moment(value)
|
|
450
|
+
.startOf('day')
|
|
451
|
+
.toISOString()}' ${EnumLogicalOperator.And} ${name} ${EnumLogicalOperator.Lt} '${moment(value)
|
|
452
|
+
.endOf('day')
|
|
453
|
+
.toISOString()}')`;
|
|
454
|
+
}
|
|
435
455
|
return `${name} eq '${moment(value).format("YYYY-MM-DD")}'`;
|
|
456
|
+
}
|
|
436
457
|
else if (type == FieldType.Time)
|
|
437
458
|
return `${name} eq '${moment(value).format("HH:mm:ss")}'`;
|
|
438
459
|
else if (type == FieldType.DateTime)
|
|
@@ -6695,6 +6716,33 @@ IndOperacaoFornecimentoLookup = __decorate([
|
|
|
6695
6716
|
Injectable()
|
|
6696
6717
|
], IndOperacaoFornecimentoLookup);
|
|
6697
6718
|
|
|
6719
|
+
const lookupFields$3 = [
|
|
6720
|
+
{
|
|
6721
|
+
name: "codigo",
|
|
6722
|
+
type: FieldType.String,
|
|
6723
|
+
},
|
|
6724
|
+
{
|
|
6725
|
+
name: "descricao",
|
|
6726
|
+
type: FieldType.String,
|
|
6727
|
+
},
|
|
6728
|
+
];
|
|
6729
|
+
const searchFields$1 = [...lookupFields$3];
|
|
6730
|
+
const searchGridFields = [...lookupFields$3];
|
|
6731
|
+
let ListaServicoNacionalLookup = class ListaServicoNacionalLookup extends ErpLookups {
|
|
6732
|
+
constructor(lookupService, translate) {
|
|
6733
|
+
super(lookupService, translate, "listaServicoNacional", lookupFields$3, searchFields$1, searchGridFields, "erpx_cpl_imp", "cadastros");
|
|
6734
|
+
this.lookupService = lookupService;
|
|
6735
|
+
this.translate = translate;
|
|
6736
|
+
}
|
|
6737
|
+
};
|
|
6738
|
+
ListaServicoNacionalLookup.ctorParameters = () => [
|
|
6739
|
+
{ type: ErpLookupsService },
|
|
6740
|
+
{ type: TranslateService }
|
|
6741
|
+
];
|
|
6742
|
+
ListaServicoNacionalLookup = __decorate([
|
|
6743
|
+
Injectable()
|
|
6744
|
+
], ListaServicoNacionalLookup);
|
|
6745
|
+
|
|
6698
6746
|
let ErpLookupsModule = class ErpLookupsModule {
|
|
6699
6747
|
};
|
|
6700
6748
|
ErpLookupsModule = __decorate([
|
|
@@ -6825,6 +6873,7 @@ ErpLookupsModule = __decorate([
|
|
|
6825
6873
|
OrigemMercadoriaLookup,
|
|
6826
6874
|
E095HfoSupGerLookup,
|
|
6827
6875
|
IndOperacaoFornecimentoLookup,
|
|
6876
|
+
ListaServicoNacionalLookup
|
|
6828
6877
|
],
|
|
6829
6878
|
declarations: [],
|
|
6830
6879
|
exports: [],
|
|
@@ -8073,5 +8122,5 @@ var ModulesEnum;
|
|
|
8073
8122
|
* Generated bundle index. Do not edit.
|
|
8074
8123
|
*/
|
|
8075
8124
|
|
|
8076
|
-
export { AgreementLookup, BankLookup, BeneficioFiscalLookup, BreadcrumbComponent, BreadcrumbModule, Breakpoints, CaracteristicaFiscalLookup, ClassificacaoTributariaLookup, ComposicaoBaseCalculoLookup, ContaInternaFilialLookup, CountryLookup, CplTriNotaSaidaE001EndLookup, CplTriNotaSaidaE001PesLookup, CplTriNotaSaidaE001TnsLookup, CplTriNotaSaidaE007UfsLookup, CplTriNotaSaidaE008RaiLookup, CplTriNotaSaidaE015MedLookup, CplTriNotaSaidaE020SnfLookup, CplTriNotaSaidaE024MsgLookup, CplTriNotaSaidaE028CpgLookup, CplTriNotaSaidaE032EdcLookup, CplTriNotaSaidaE051DisLookup, CplTriNotaSaidaE066FpgLookup, CplTriNotaSaidaE070EmpLookup, CplTriNotaSaidaE070FilLookup, CplTriNotaSaidaE075DerLookup, CplTriNotaSaidaE080SerLookup, CplTriNotaSaidaNaturezaReceitaPisCofinsLookup, CplTriNotaSaidaNcmLookup, CplTriNotaSaidaNfEntradaLookup, CplTriNotaSaidaNfSaidaLookup, CurrencyLookup, DocumentoLookup, E001EndLookup, E001PesLookup, E001TnsLookup, E001TnsSupEstLookup, E002TptLookup, E006PaiLookup, E007UfsLookup, E008CepLookup, E008RaiLookup, E012FamLookup, E015MedLookup, E020SnfLookup, E021MotLookup, E023CrpLookup, E024MsgLookup, E027EqiLookup, E027StrLookup, E028CpgLookup, E030AgeLookup, E030BanLookup, E031MoeLookup, E032EdcLookup, E034TccLookup, E035OcrLookup, E036InsLookup, E039PorLookup, E041CebLookup, E043MpcLookup, E043PcmLookup, E044CcuLookup, E045PlaLookup, E046HpdLookup, E047NtgLookup, E048FctLookup, E048SfcLookup, E051DisLookup, E066FpgLookup, E067FinLookup, E069GreLookup, E070EmpLookup, E070EntLookup, E070FilLookup, E073PesLookup, E073VeiLookup, E075DerLookup, E076MarLookup, E080SerLookup, E081TabLookup, E082TprLookup, E085PesLookup, E089DocLookup, E090HrpComGerLookup, E090PesLookup, E091PlfLookup, E095HfoSupGerLookup, E095PesLookup, E099UsuComGerLookup, E099UsuSupCprLookup, E140InsLookup, E140NfsLookup, E200LotLookup, E200SerLookup, E205DepLookup, E210DxpE075DerLookup, E210DxpLookup, E301TcrLookup, E403FprLookup, E420IcpLookup, E420IpcLookup, E420OcpLookup, E501TcpLookup, E600CcoLookup, E640LotLookup, EntityPersonProductLookup, EnumLogicalOperator, EquipmentLookup, ErpLookups, ErpLookupsModule, ErpLookupsService, ErpPolling, ExportUtils, FiltersStorageService, FormUtilsService, HTTP_STATUS_CODE, IndOperacaoFornecimentoLookup, LeiComplementar1162003Lookup, LigacaoItemFornecedorLookup, LookupValidationUtils, ModulesEnum, NbsLookup, NcmLookup, NotaFiscalEntradaLookup, NpsService, OperacoesLookup, OrigemDestinoLookup, OrigemMercadoriaLookup, ParametersLookup, PrimitiveManager, ProdutoServicoLookup, QuantidadeDisponivelDemandaLookup, RequisicaoLookup, SegmentoLookup, TypeTaxesLookup, UnidadeMedidaLookup, UtilsModule, VerifyModulePermission, VerifyModulePermissions, WebsocketService, naturezaReceitaPisCofins, ɵ0, ɵ1, ɵ2, EnumAnaSin as ɵa, EnumNatCtb as ɵb, StorageService as ɵc, UserInformationService as ɵd, VerifyModulePermissionService as ɵe, VerifyModulePermissionsService as ɵf };
|
|
8125
|
+
export { AgreementLookup, BankLookup, BeneficioFiscalLookup, BreadcrumbComponent, BreadcrumbModule, Breakpoints, CaracteristicaFiscalLookup, ClassificacaoTributariaLookup, ComposicaoBaseCalculoLookup, ContaInternaFilialLookup, CountryLookup, CplTriNotaSaidaE001EndLookup, CplTriNotaSaidaE001PesLookup, CplTriNotaSaidaE001TnsLookup, CplTriNotaSaidaE007UfsLookup, CplTriNotaSaidaE008RaiLookup, CplTriNotaSaidaE015MedLookup, CplTriNotaSaidaE020SnfLookup, CplTriNotaSaidaE024MsgLookup, CplTriNotaSaidaE028CpgLookup, CplTriNotaSaidaE032EdcLookup, CplTriNotaSaidaE051DisLookup, CplTriNotaSaidaE066FpgLookup, CplTriNotaSaidaE070EmpLookup, CplTriNotaSaidaE070FilLookup, CplTriNotaSaidaE075DerLookup, CplTriNotaSaidaE080SerLookup, CplTriNotaSaidaNaturezaReceitaPisCofinsLookup, CplTriNotaSaidaNcmLookup, CplTriNotaSaidaNfEntradaLookup, CplTriNotaSaidaNfSaidaLookup, CurrencyLookup, DocumentoLookup, E001EndLookup, E001PesLookup, E001TnsLookup, E001TnsSupEstLookup, E002TptLookup, E006PaiLookup, E007UfsLookup, E008CepLookup, E008RaiLookup, E012FamLookup, E015MedLookup, E020SnfLookup, E021MotLookup, E023CrpLookup, E024MsgLookup, E027EqiLookup, E027StrLookup, E028CpgLookup, E030AgeLookup, E030BanLookup, E031MoeLookup, E032EdcLookup, E034TccLookup, E035OcrLookup, E036InsLookup, E039PorLookup, E041CebLookup, E043MpcLookup, E043PcmLookup, E044CcuLookup, E045PlaLookup, E046HpdLookup, E047NtgLookup, E048FctLookup, E048SfcLookup, E051DisLookup, E066FpgLookup, E067FinLookup, E069GreLookup, E070EmpLookup, E070EntLookup, E070FilLookup, E073PesLookup, E073VeiLookup, E075DerLookup, E076MarLookup, E080SerLookup, E081TabLookup, E082TprLookup, E085PesLookup, E089DocLookup, E090HrpComGerLookup, E090PesLookup, E091PlfLookup, E095HfoSupGerLookup, E095PesLookup, E099UsuComGerLookup, E099UsuSupCprLookup, E140InsLookup, E140NfsLookup, E200LotLookup, E200SerLookup, E205DepLookup, E210DxpE075DerLookup, E210DxpLookup, E301TcrLookup, E403FprLookup, E420IcpLookup, E420IpcLookup, E420OcpLookup, E501TcpLookup, E600CcoLookup, E640LotLookup, EntityPersonProductLookup, EnumLogicalOperator, EquipmentLookup, ErpLookups, ErpLookupsModule, ErpLookupsSearchField, ErpLookupsService, ErpPolling, ExportUtils, FiltersStorageService, FormUtilsService, HTTP_STATUS_CODE, IndOperacaoFornecimentoLookup, LeiComplementar1162003Lookup, LigacaoItemFornecedorLookup, ListaServicoNacionalLookup, LookupValidationUtils, ModulesEnum, NbsLookup, NcmLookup, NotaFiscalEntradaLookup, NpsService, OperacoesLookup, OrigemDestinoLookup, OrigemMercadoriaLookup, ParametersLookup, PrimitiveManager, ProdutoServicoLookup, QuantidadeDisponivelDemandaLookup, RequisicaoLookup, SegmentoLookup, TypeTaxesLookup, UnidadeMedidaLookup, UtilsModule, VerifyModulePermission, VerifyModulePermissions, WebsocketService, naturezaReceitaPisCofins, ɵ0, ɵ1, ɵ2, EnumAnaSin as ɵa, EnumNatCtb as ɵb, StorageService as ɵc, UserInformationService as ɵd, VerifyModulePermissionService as ɵe, VerifyModulePermissionsService as ɵf };
|
|
8077
8126
|
//# sourceMappingURL=senior-gestao-empresarial-angular-components.js.map
|