@senior-gestao-empresarial/angular-components 7.4.0 → 7.6.0
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 +190 -1
- 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/e-041-ceb-lookup.d.ts +8 -0
- package/components/lookups/entities/origem-destino-lookup.d.ts +10 -0
- package/components/lookups/index.d.ts +2 -0
- package/core/enums/enum-difal-contribuinte.d.ts +9 -0
- package/core/enums/enum-difal-nao-contribuinte.d.ts +4 -0
- package/esm2015/components/lookups/entities/e-041-ceb-lookup.js +37 -0
- package/esm2015/components/lookups/entities/origem-destino-lookup.js +123 -0
- package/esm2015/components/lookups/erp-lookups.js +4 -1
- package/esm2015/components/lookups/erp-lookups.module.js +44 -40
- package/esm2015/components/lookups/index.js +3 -1
- package/esm2015/core/enums/enum-difal-contribuinte.js +11 -0
- package/esm2015/core/enums/enum-difal-nao-contribuinte.js +6 -0
- package/esm2015/utils/utils.js +9 -0
- package/esm5/components/lookups/entities/e-041-ceb-lookup.js +40 -0
- package/esm5/components/lookups/entities/origem-destino-lookup.js +133 -0
- package/esm5/components/lookups/erp-lookups.js +4 -1
- package/esm5/components/lookups/erp-lookups.module.js +44 -40
- package/esm5/components/lookups/index.js +3 -1
- package/esm5/core/enums/enum-difal-contribuinte.js +11 -0
- package/esm5/core/enums/enum-difal-nao-contribuinte.js +6 -0
- package/esm5/utils/utils.js +9 -0
- package/fesm2015/senior-gestao-empresarial-angular-components.js +174 -2
- package/fesm2015/senior-gestao-empresarial-angular-components.js.map +1 -1
- package/fesm5/senior-gestao-empresarial-angular-components.js +187 -2
- 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
- package/utils/utils.d.ts +5 -0
|
@@ -463,6 +463,8 @@ var ErpLookups = /** @class */ (function () {
|
|
|
463
463
|
return _this.mountEnumFilter(name, value, multiple);
|
|
464
464
|
else if (type == FieldType.String)
|
|
465
465
|
return "(containing(lower(" + name + "), lower('" + value + "')))";
|
|
466
|
+
else if (type === FieldType.Lookup)
|
|
467
|
+
return "(" + name + " eq '" + value.id + "')";
|
|
466
468
|
else
|
|
467
469
|
return name + " eq '" + value + "'";
|
|
468
470
|
})
|
|
@@ -489,6 +491,7 @@ var ErpLookups = /** @class */ (function () {
|
|
|
489
491
|
if (dynamicFilterQuery)
|
|
490
492
|
filterQuery ? filterQuery += " and (" + dynamicFilterQuery + ")" : filterQuery = "(" + dynamicFilterQuery + ")";
|
|
491
493
|
var displayFields = lookupDisplayFields.concat((options.searchGridFields || this.searchGridFields)
|
|
494
|
+
.concat(options.searchGridFields || [])
|
|
492
495
|
.map(function (_a) {
|
|
493
496
|
var name = _a.name;
|
|
494
497
|
return name;
|
|
@@ -6714,6 +6717,186 @@ var CaracteristicaFiscalLookup = /** @class */ (function (_super) {
|
|
|
6714
6717
|
return CaracteristicaFiscalLookup;
|
|
6715
6718
|
}(ErpLookups));
|
|
6716
6719
|
|
|
6720
|
+
var EnumDifalNaoContribuinte;
|
|
6721
|
+
(function (EnumDifalNaoContribuinte) {
|
|
6722
|
+
EnumDifalNaoContribuinte["BASE_UNICA"] = "BASE_UNICA";
|
|
6723
|
+
EnumDifalNaoContribuinte["NAO_SE_APLICA"] = "NAO_SE_APLICA";
|
|
6724
|
+
})(EnumDifalNaoContribuinte || (EnumDifalNaoContribuinte = {}));
|
|
6725
|
+
|
|
6726
|
+
var EnumDifalContribuinte;
|
|
6727
|
+
(function (EnumDifalContribuinte) {
|
|
6728
|
+
EnumDifalContribuinte["BASE_DUPLA"] = "BASE_DUPLA";
|
|
6729
|
+
EnumDifalContribuinte["BASE_DUPLA_DIF_PERC_PER_DESTINO"] = "BASE_DUPLA_DIF_PERC_PER_DESTINO";
|
|
6730
|
+
EnumDifalContribuinte["BASE_DUPLA_DIF_PERCENTUAL"] = "BASE_DUPLA_DIF_PERCENTUAL";
|
|
6731
|
+
EnumDifalContribuinte["BASE_DUPLA_DIF_VALOR"] = "BASE_DUPLA_DIF_VALOR";
|
|
6732
|
+
EnumDifalContribuinte["BASE_UNICA"] = "BASE_UNICA";
|
|
6733
|
+
EnumDifalContribuinte["BASE_UNICA_DIF_PERCENTUAL"] = "BASE_UNICA_DIF_PERCENTUAL";
|
|
6734
|
+
EnumDifalContribuinte["NAO_SE_APLICA"] = "NAO_SE_APLICA";
|
|
6735
|
+
})(EnumDifalContribuinte || (EnumDifalContribuinte = {}));
|
|
6736
|
+
|
|
6737
|
+
var getOptionsFromEnum = function (translateService, enumPrefix, enumValues) {
|
|
6738
|
+
return enumValues
|
|
6739
|
+
.map(function (value) { return ({
|
|
6740
|
+
label: translateService.instant("" + enumPrefix + value.toLowerCase()),
|
|
6741
|
+
value: value,
|
|
6742
|
+
}); })
|
|
6743
|
+
.sort(function (a, b) { return (a.label > b.label ? 1 : -1); });
|
|
6744
|
+
};
|
|
6745
|
+
|
|
6746
|
+
var getEnumDifalNaoContribuinteOptions = function (_a) {
|
|
6747
|
+
var translateService = _a.translateService;
|
|
6748
|
+
return getOptionsFromEnum(translateService, "erpx_cpl_imp.icms.enum_difal_nao_contribuinte_", [
|
|
6749
|
+
EnumDifalNaoContribuinte.BASE_UNICA,
|
|
6750
|
+
EnumDifalNaoContribuinte.NAO_SE_APLICA,
|
|
6751
|
+
]);
|
|
6752
|
+
};
|
|
6753
|
+
var ɵ0$2 = getEnumDifalNaoContribuinteOptions;
|
|
6754
|
+
var getEnumDifalContribuinteOptions = function (_a) {
|
|
6755
|
+
var translateService = _a.translateService;
|
|
6756
|
+
return getOptionsFromEnum(translateService, "erpx_cpl_imp.icms.enum_difal_contribuinte_", [
|
|
6757
|
+
EnumDifalContribuinte.BASE_DUPLA,
|
|
6758
|
+
EnumDifalContribuinte.BASE_DUPLA_DIF_PERCENTUAL,
|
|
6759
|
+
EnumDifalContribuinte.BASE_DUPLA_DIF_PERC_PER_DESTINO,
|
|
6760
|
+
EnumDifalContribuinte.BASE_DUPLA_DIF_VALOR,
|
|
6761
|
+
EnumDifalContribuinte.BASE_UNICA,
|
|
6762
|
+
EnumDifalContribuinte.NAO_SE_APLICA,
|
|
6763
|
+
]);
|
|
6764
|
+
};
|
|
6765
|
+
var ɵ1 = getEnumDifalContribuinteOptions;
|
|
6766
|
+
var getFields$1 = function (_a) {
|
|
6767
|
+
var translateService = _a.translateService;
|
|
6768
|
+
return [
|
|
6769
|
+
{
|
|
6770
|
+
name: "aliquota",
|
|
6771
|
+
type: FieldType.Number,
|
|
6772
|
+
},
|
|
6773
|
+
{
|
|
6774
|
+
name: "difalNaoContribuinte",
|
|
6775
|
+
type: FieldType.Enum,
|
|
6776
|
+
options: getEnumDifalNaoContribuinteOptions({ translateService: translateService }),
|
|
6777
|
+
},
|
|
6778
|
+
{
|
|
6779
|
+
name: "difalContribuinte",
|
|
6780
|
+
type: FieldType.Enum,
|
|
6781
|
+
options: getEnumDifalContribuinteOptions({ translateService: translateService }),
|
|
6782
|
+
},
|
|
6783
|
+
{
|
|
6784
|
+
name: "percentualImportado",
|
|
6785
|
+
type: FieldType.Number,
|
|
6786
|
+
},
|
|
6787
|
+
{
|
|
6788
|
+
name: "percentualFcp",
|
|
6789
|
+
type: FieldType.Number,
|
|
6790
|
+
},
|
|
6791
|
+
{
|
|
6792
|
+
name: "vigenciaInicial",
|
|
6793
|
+
type: FieldType.Date,
|
|
6794
|
+
appendTo: "body",
|
|
6795
|
+
},
|
|
6796
|
+
{
|
|
6797
|
+
name: "vigenciaFinal",
|
|
6798
|
+
type: FieldType.Date,
|
|
6799
|
+
appendTo: "body",
|
|
6800
|
+
},
|
|
6801
|
+
];
|
|
6802
|
+
};
|
|
6803
|
+
var ɵ2 = getFields$1;
|
|
6804
|
+
var OrigemDestinoLookup = /** @class */ (function (_super) {
|
|
6805
|
+
__extends(OrigemDestinoLookup, _super);
|
|
6806
|
+
function OrigemDestinoLookup(lookupService, translateService, e007UfsLookup) {
|
|
6807
|
+
var _this = _super.call(this, lookupService, translateService, "origemDestino", [
|
|
6808
|
+
{
|
|
6809
|
+
name: "e007ufsOrigem.sigUfs",
|
|
6810
|
+
type: FieldType.String,
|
|
6811
|
+
},
|
|
6812
|
+
{
|
|
6813
|
+
name: "e007ufsDestino.sigUfs",
|
|
6814
|
+
type: FieldType.String,
|
|
6815
|
+
},
|
|
6816
|
+
], __spread([
|
|
6817
|
+
new FormField(__assign(__assign({}, e007UfsLookup.mountOptions({
|
|
6818
|
+
multiple: false,
|
|
6819
|
+
defaultFilter: [{ field: "excluido", operator: EnumLogicalOperator.Eq, values: ["false"] }],
|
|
6820
|
+
})), { name: "e007ufsOrigem", size: { sm: 12, md: 12, lg: 12, xl: 12 } })),
|
|
6821
|
+
new FormField(__assign(__assign({}, e007UfsLookup.mountOptions({
|
|
6822
|
+
multiple: false,
|
|
6823
|
+
defaultFilter: [{ field: "excluido", operator: EnumLogicalOperator.Eq, values: ["false"] }],
|
|
6824
|
+
})), { name: "e007ufsDestino", size: { sm: 12, md: 12, lg: 12, xl: 12 } }))
|
|
6825
|
+
], getFields$1({ translateService: translateService })), __spread([
|
|
6826
|
+
{
|
|
6827
|
+
name: "e007ufsOrigem.sigUfs",
|
|
6828
|
+
type: FieldType.String,
|
|
6829
|
+
},
|
|
6830
|
+
{
|
|
6831
|
+
name: "e007ufsOrigem.nomUfs",
|
|
6832
|
+
type: FieldType.String,
|
|
6833
|
+
},
|
|
6834
|
+
{
|
|
6835
|
+
name: "e007ufsOrigem.e006pai.nomPai",
|
|
6836
|
+
type: FieldType.String,
|
|
6837
|
+
},
|
|
6838
|
+
{
|
|
6839
|
+
name: "e007ufsDestino.sigUfs",
|
|
6840
|
+
type: FieldType.String,
|
|
6841
|
+
},
|
|
6842
|
+
{
|
|
6843
|
+
name: "e007ufsDestino.nomUfs",
|
|
6844
|
+
type: FieldType.String,
|
|
6845
|
+
},
|
|
6846
|
+
{
|
|
6847
|
+
name: "e007ufsDestino.e006pai.nomPai",
|
|
6848
|
+
type: FieldType.String,
|
|
6849
|
+
}
|
|
6850
|
+
], getFields$1({ translateService: translateService })), "erpx_cpl_imp", "icms") || this;
|
|
6851
|
+
_this.lookupService = lookupService;
|
|
6852
|
+
_this.translateService = translateService;
|
|
6853
|
+
_this.e007UfsLookup = e007UfsLookup;
|
|
6854
|
+
return _this;
|
|
6855
|
+
}
|
|
6856
|
+
OrigemDestinoLookup.ctorParameters = function () { return [
|
|
6857
|
+
{ type: ErpLookupsService },
|
|
6858
|
+
{ type: TranslateService },
|
|
6859
|
+
{ type: E007UfsLookup }
|
|
6860
|
+
]; };
|
|
6861
|
+
OrigemDestinoLookup = __decorate([
|
|
6862
|
+
Injectable()
|
|
6863
|
+
], OrigemDestinoLookup);
|
|
6864
|
+
return OrigemDestinoLookup;
|
|
6865
|
+
}(ErpLookups));
|
|
6866
|
+
|
|
6867
|
+
var E041CebLookup = /** @class */ (function (_super) {
|
|
6868
|
+
__extends(E041CebLookup, _super);
|
|
6869
|
+
function E041CebLookup(lookupService, translateService) {
|
|
6870
|
+
var _this = _super.call(this, lookupService, translateService, "e041ceb", [
|
|
6871
|
+
{
|
|
6872
|
+
name: "criCeb",
|
|
6873
|
+
type: FieldType.String,
|
|
6874
|
+
},
|
|
6875
|
+
], [
|
|
6876
|
+
{
|
|
6877
|
+
name: "criCeb",
|
|
6878
|
+
type: FieldType.String,
|
|
6879
|
+
},
|
|
6880
|
+
], [
|
|
6881
|
+
{
|
|
6882
|
+
name: "criCeb",
|
|
6883
|
+
type: FieldType.String,
|
|
6884
|
+
},
|
|
6885
|
+
], "erpx_cpl", "foundation") || this;
|
|
6886
|
+
_this.lookupService = lookupService;
|
|
6887
|
+
_this.translateService = translateService;
|
|
6888
|
+
return _this;
|
|
6889
|
+
}
|
|
6890
|
+
E041CebLookup.ctorParameters = function () { return [
|
|
6891
|
+
{ type: ErpLookupsService },
|
|
6892
|
+
{ type: TranslateService }
|
|
6893
|
+
]; };
|
|
6894
|
+
E041CebLookup = __decorate([
|
|
6895
|
+
Injectable()
|
|
6896
|
+
], E041CebLookup);
|
|
6897
|
+
return E041CebLookup;
|
|
6898
|
+
}(ErpLookups));
|
|
6899
|
+
|
|
6717
6900
|
var ErpLookupsModule = /** @class */ (function () {
|
|
6718
6901
|
function ErpLookupsModule() {
|
|
6719
6902
|
}
|
|
@@ -6840,7 +7023,9 @@ var ErpLookupsModule = /** @class */ (function () {
|
|
|
6840
7023
|
ComposicaoBaseCalculoLookup,
|
|
6841
7024
|
LeiComplementar1162003Lookup,
|
|
6842
7025
|
NbsLookup,
|
|
6843
|
-
CaracteristicaFiscalLookup
|
|
7026
|
+
CaracteristicaFiscalLookup,
|
|
7027
|
+
OrigemDestinoLookup,
|
|
7028
|
+
E041CebLookup
|
|
6844
7029
|
],
|
|
6845
7030
|
declarations: [],
|
|
6846
7031
|
exports: [],
|
|
@@ -8268,5 +8453,5 @@ var ModulesEnum;
|
|
|
8268
8453
|
* Generated bundle index. Do not edit.
|
|
8269
8454
|
*/
|
|
8270
8455
|
|
|
8271
|
-
export { AgreementLookup, BankLookup, BeneficioFiscalLookup, BreadcrumbComponent, BreadcrumbModule, Breakpoints, CaracteristicaFiscalLookup, 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, E043MpcLookup, E043PcmLookup, E044CcuFinRatDepLookup, E044CcuLookup, E045PlaLookup, E046HpdLookup, E047NtgLookup, E048FctLookup, E048SfcLookup, E051DisLookup, E066FpgLookup, E067FinLookup, E069GreLookup, E070EmpLookup, E070EntLookup, E070FilLookup, E073PesLookup, E073VeiLookup, E075DerLookup, E080SerLookup, E081TabLookup, E082TprLookup, E085PesLookup, E089DocLookup, E090HrpComGerLookup, E090PesLookup, E091PlfFinRatLookup, E095PesLookup, E099UsuComGerLookup, E099UsuSupCprLookup, E140InsLookup, E140NfsLookup, E200LotLookup, E200SerLookup, E205DepLookup, E210DxpE075DerLookup, E210DxpLookup, E301TcrLookup, E403FprLookup, E420IcpLookup, E420IpcLookup, E420OcpLookup, E501TcpLookup, E600CcoLookup, E640LotLookup, EntityPersonProductLookup, EnumLogicalOperator, EquipmentLookup, ErpLookups, ErpLookupsModule, ErpPolling, ExportUtils, FiltersStorageService, FormUtilsService, HTTP_STATUS_CODE, LeiComplementar1162003Lookup, LigacaoItemFornecedorLookup, LookupValidationUtils, ModulesEnum, NbsLookup, NcmLookup, NotaFiscalEntradaLookup, NpsService, OperacoesLookup, ParametersLookup, PrimitiveManager, ProdutoServicoLookup, QuantidadeDisponivelDemandaLookup, RequisicaoLookup, SegmentoLookup, TypeTaxesLookup, UnidadeMedidaLookup, UtilsModule, VerifyModulePermission, VerifyModulePermissions, WebsocketService, naturezaReceitaPisCofins, ɵ0, ErpLookupsService as ɵa, EnumAnaSin as ɵb, EnumNatCtb as ɵc, StorageService as ɵd, UserInformationService as ɵe, VerifyModulePermissionService as ɵf, VerifyModulePermissionsService as ɵg };
|
|
8456
|
+
export { AgreementLookup, BankLookup, BeneficioFiscalLookup, BreadcrumbComponent, BreadcrumbModule, Breakpoints, CaracteristicaFiscalLookup, 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, E044CcuFinRatDepLookup, E044CcuLookup, E045PlaLookup, E046HpdLookup, E047NtgLookup, E048FctLookup, E048SfcLookup, E051DisLookup, E066FpgLookup, E067FinLookup, E069GreLookup, E070EmpLookup, E070EntLookup, E070FilLookup, E073PesLookup, E073VeiLookup, E075DerLookup, E080SerLookup, E081TabLookup, E082TprLookup, E085PesLookup, E089DocLookup, E090HrpComGerLookup, E090PesLookup, E091PlfFinRatLookup, E095PesLookup, E099UsuComGerLookup, E099UsuSupCprLookup, E140InsLookup, E140NfsLookup, E200LotLookup, E200SerLookup, E205DepLookup, E210DxpE075DerLookup, E210DxpLookup, E301TcrLookup, E403FprLookup, E420IcpLookup, E420IpcLookup, E420OcpLookup, E501TcpLookup, E600CcoLookup, E640LotLookup, EntityPersonProductLookup, EnumLogicalOperator, EquipmentLookup, ErpLookups, ErpLookupsModule, ErpPolling, ExportUtils, FiltersStorageService, FormUtilsService, HTTP_STATUS_CODE, LeiComplementar1162003Lookup, LigacaoItemFornecedorLookup, LookupValidationUtils, ModulesEnum, NbsLookup, NcmLookup, NotaFiscalEntradaLookup, NpsService, OperacoesLookup, OrigemDestinoLookup, ParametersLookup, PrimitiveManager, ProdutoServicoLookup, QuantidadeDisponivelDemandaLookup, RequisicaoLookup, SegmentoLookup, TypeTaxesLookup, UnidadeMedidaLookup, UtilsModule, VerifyModulePermission, VerifyModulePermissions, WebsocketService, naturezaReceitaPisCofins, ɵ0, ɵ1, ɵ2, ErpLookupsService as ɵa, EnumAnaSin as ɵb, EnumNatCtb as ɵc, StorageService as ɵd, UserInformationService as ɵe, VerifyModulePermissionService as ɵf, VerifyModulePermissionsService as ɵg };
|
|
8272
8457
|
//# sourceMappingURL=senior-gestao-empresarial-angular-components.js.map
|