@senior-gestao-empresarial/angular-components 7.3.0 → 7.4.0-5f160e25-dcad-4596-8f60-a2785db103cc
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 +134 -2
- 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/origem-destino-lookup.d.ts +10 -0
- package/components/lookups/index.d.ts +1 -0
- package/core/enums/enum-difal-nao-contribuinte.d.ts +4 -0
- package/esm2015/components/lookups/entities/origem-destino-lookup.js +105 -0
- package/esm2015/components/lookups/erp-lookups.js +3 -1
- package/esm2015/components/lookups/erp-lookups.module.js +4 -2
- package/esm2015/components/lookups/index.js +2 -1
- package/esm2015/components/websocket/websocket.service.js +13 -2
- package/esm2015/core/enums/enum-difal-nao-contribuinte.js +6 -0
- package/esm2015/utils/utils.js +9 -0
- package/esm5/components/lookups/entities/origem-destino-lookup.js +112 -0
- package/esm5/components/lookups/erp-lookups.js +3 -1
- package/esm5/components/lookups/erp-lookups.module.js +4 -2
- package/esm5/components/lookups/index.js +2 -1
- package/esm5/components/websocket/websocket.service.js +13 -2
- 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 +126 -3
- package/fesm2015/senior-gestao-empresarial-angular-components.js.map +1 -1
- package/fesm5/senior-gestao-empresarial-angular-components.js +133 -3
- 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
|
})
|
|
@@ -6714,6 +6716,122 @@ var CaracteristicaFiscalLookup = /** @class */ (function (_super) {
|
|
|
6714
6716
|
return CaracteristicaFiscalLookup;
|
|
6715
6717
|
}(ErpLookups));
|
|
6716
6718
|
|
|
6719
|
+
var EnumDifalNaoContribuinte;
|
|
6720
|
+
(function (EnumDifalNaoContribuinte) {
|
|
6721
|
+
EnumDifalNaoContribuinte["BASE_UNICA"] = "BASE_UNICA";
|
|
6722
|
+
EnumDifalNaoContribuinte["NAO_SE_APLICA"] = "NAO_SE_APLICA";
|
|
6723
|
+
})(EnumDifalNaoContribuinte || (EnumDifalNaoContribuinte = {}));
|
|
6724
|
+
|
|
6725
|
+
var getOptionsFromEnum = function (translateService, enumPrefix, enumValues) {
|
|
6726
|
+
return enumValues
|
|
6727
|
+
.map(function (value) { return ({
|
|
6728
|
+
label: translateService.instant("" + enumPrefix + value.toLowerCase()),
|
|
6729
|
+
value: value,
|
|
6730
|
+
}); })
|
|
6731
|
+
.sort(function (a, b) { return (a.label > b.label ? 1 : -1); });
|
|
6732
|
+
};
|
|
6733
|
+
|
|
6734
|
+
var getEnumDifalNaoContribuinteOptions = function (_a) {
|
|
6735
|
+
var translateService = _a.translateService;
|
|
6736
|
+
return getOptionsFromEnum(translateService, "erpx_cpl_imp.icms.enum_difal_nao_contribuinte_", [
|
|
6737
|
+
EnumDifalNaoContribuinte.BASE_UNICA,
|
|
6738
|
+
EnumDifalNaoContribuinte.NAO_SE_APLICA,
|
|
6739
|
+
]);
|
|
6740
|
+
};
|
|
6741
|
+
var ɵ0$2 = getEnumDifalNaoContribuinteOptions;
|
|
6742
|
+
var getFields$1 = function (_a) {
|
|
6743
|
+
var translateService = _a.translateService;
|
|
6744
|
+
return [
|
|
6745
|
+
{
|
|
6746
|
+
name: "aliquota",
|
|
6747
|
+
type: FieldType.Number,
|
|
6748
|
+
},
|
|
6749
|
+
{
|
|
6750
|
+
name: "difalNaoContribuinte",
|
|
6751
|
+
type: FieldType.Enum,
|
|
6752
|
+
options: getEnumDifalNaoContribuinteOptions({ translateService: translateService }),
|
|
6753
|
+
},
|
|
6754
|
+
{
|
|
6755
|
+
name: "difalContribuinte",
|
|
6756
|
+
type: FieldType.Enum,
|
|
6757
|
+
options: getEnumDifalNaoContribuinteOptions({ translateService: translateService }),
|
|
6758
|
+
},
|
|
6759
|
+
{
|
|
6760
|
+
name: "percentualImportado",
|
|
6761
|
+
type: FieldType.Number,
|
|
6762
|
+
},
|
|
6763
|
+
{
|
|
6764
|
+
name: "percentualFcp",
|
|
6765
|
+
type: FieldType.Number,
|
|
6766
|
+
},
|
|
6767
|
+
{
|
|
6768
|
+
name: "vigenciaInicial",
|
|
6769
|
+
type: FieldType.Date,
|
|
6770
|
+
appendTo: "body",
|
|
6771
|
+
},
|
|
6772
|
+
{
|
|
6773
|
+
name: "vigenciaFinal",
|
|
6774
|
+
type: FieldType.Date,
|
|
6775
|
+
appendTo: "body",
|
|
6776
|
+
},
|
|
6777
|
+
];
|
|
6778
|
+
};
|
|
6779
|
+
var ɵ1 = getFields$1;
|
|
6780
|
+
var OrigemDestinoLookup = /** @class */ (function (_super) {
|
|
6781
|
+
__extends(OrigemDestinoLookup, _super);
|
|
6782
|
+
function OrigemDestinoLookup(lookupService, translateService, e007UfsLookup) {
|
|
6783
|
+
var _this = _super.call(this, lookupService, translateService, "origemDestino", [
|
|
6784
|
+
{
|
|
6785
|
+
name: "e007ufsOrigem.sigUfs",
|
|
6786
|
+
type: FieldType.String,
|
|
6787
|
+
},
|
|
6788
|
+
{
|
|
6789
|
+
name: "e007ufsDestino.sigUfs",
|
|
6790
|
+
type: FieldType.String,
|
|
6791
|
+
},
|
|
6792
|
+
], __spread([
|
|
6793
|
+
new FormField(__assign(__assign({}, e007UfsLookup.mountOptions({
|
|
6794
|
+
multiple: false,
|
|
6795
|
+
defaultFilter: [{ field: "excluido", operator: EnumLogicalOperator.Eq, values: ["false"] }],
|
|
6796
|
+
})), { name: "e007ufsOrigem", size: { sm: 12, md: 12, lg: 12, xl: 12 } })),
|
|
6797
|
+
new FormField(__assign(__assign({}, e007UfsLookup.mountOptions({
|
|
6798
|
+
multiple: false,
|
|
6799
|
+
defaultFilter: [{ field: "excluido", operator: EnumLogicalOperator.Eq, values: ["false"] }],
|
|
6800
|
+
})), { name: "e007ufsDestino", size: { sm: 12, md: 12, lg: 12, xl: 12 } }))
|
|
6801
|
+
], getFields$1({ translateService: translateService })), __spread([
|
|
6802
|
+
{
|
|
6803
|
+
name: "e007ufsOrigem.sigUfs",
|
|
6804
|
+
type: FieldType.String,
|
|
6805
|
+
},
|
|
6806
|
+
{
|
|
6807
|
+
name: "e007ufsOrigem.nomUfs",
|
|
6808
|
+
type: FieldType.String,
|
|
6809
|
+
},
|
|
6810
|
+
{
|
|
6811
|
+
name: "e007ufsDestino.sigUfs",
|
|
6812
|
+
type: FieldType.String,
|
|
6813
|
+
},
|
|
6814
|
+
{
|
|
6815
|
+
name: "e007ufsDestino.nomUfs",
|
|
6816
|
+
type: FieldType.String,
|
|
6817
|
+
}
|
|
6818
|
+
], getFields$1({ translateService: translateService })), "erpx_cpl_imp", "icms") || this;
|
|
6819
|
+
_this.lookupService = lookupService;
|
|
6820
|
+
_this.translateService = translateService;
|
|
6821
|
+
_this.e007UfsLookup = e007UfsLookup;
|
|
6822
|
+
return _this;
|
|
6823
|
+
}
|
|
6824
|
+
OrigemDestinoLookup.ctorParameters = function () { return [
|
|
6825
|
+
{ type: ErpLookupsService },
|
|
6826
|
+
{ type: TranslateService },
|
|
6827
|
+
{ type: E007UfsLookup }
|
|
6828
|
+
]; };
|
|
6829
|
+
OrigemDestinoLookup = __decorate([
|
|
6830
|
+
Injectable()
|
|
6831
|
+
], OrigemDestinoLookup);
|
|
6832
|
+
return OrigemDestinoLookup;
|
|
6833
|
+
}(ErpLookups));
|
|
6834
|
+
|
|
6717
6835
|
var ErpLookupsModule = /** @class */ (function () {
|
|
6718
6836
|
function ErpLookupsModule() {
|
|
6719
6837
|
}
|
|
@@ -6840,7 +6958,8 @@ var ErpLookupsModule = /** @class */ (function () {
|
|
|
6840
6958
|
ComposicaoBaseCalculoLookup,
|
|
6841
6959
|
LeiComplementar1162003Lookup,
|
|
6842
6960
|
NbsLookup,
|
|
6843
|
-
CaracteristicaFiscalLookup
|
|
6961
|
+
CaracteristicaFiscalLookup,
|
|
6962
|
+
OrigemDestinoLookup
|
|
6844
6963
|
],
|
|
6845
6964
|
declarations: [],
|
|
6846
6965
|
exports: [],
|
|
@@ -7962,7 +8081,8 @@ var WebsocketService = /** @class */ (function () {
|
|
|
7962
8081
|
this.disconnected$.next();
|
|
7963
8082
|
};
|
|
7964
8083
|
WebsocketService.prototype.handleOnWebSocketClose = function (data) {
|
|
7965
|
-
|
|
8084
|
+
var _a, _b;
|
|
8085
|
+
if (((_a = data === null || data === void 0 ? void 0 : data.reason) === null || _a === void 0 ? void 0 : _a.toLowerCase().indexOf("go away")) !== -1) {
|
|
7966
8086
|
this.lostConnection = true;
|
|
7967
8087
|
this.handleError('AuthenticationError', new FrameImpl({
|
|
7968
8088
|
command: data.type,
|
|
@@ -7972,6 +8092,16 @@ var WebsocketService = /** @class */ (function () {
|
|
|
7972
8092
|
}));
|
|
7973
8093
|
return;
|
|
7974
8094
|
}
|
|
8095
|
+
if (((_b = data === null || data === void 0 ? void 0 : data.reason) === null || _b === void 0 ? void 0 : _b.toLowerCase().indexOf("cannot connect to server")) !== -1) {
|
|
8096
|
+
this.lostConnection = true;
|
|
8097
|
+
this.handleError('ConnectionError', new FrameImpl({
|
|
8098
|
+
command: data.type,
|
|
8099
|
+
headers: {
|
|
8100
|
+
message: data.reason
|
|
8101
|
+
}
|
|
8102
|
+
}));
|
|
8103
|
+
return;
|
|
8104
|
+
}
|
|
7975
8105
|
if (data.wasClean) {
|
|
7976
8106
|
return;
|
|
7977
8107
|
}
|
|
@@ -8257,5 +8387,5 @@ var ModulesEnum;
|
|
|
8257
8387
|
* Generated bundle index. Do not edit.
|
|
8258
8388
|
*/
|
|
8259
8389
|
|
|
8260
|
-
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 };
|
|
8390
|
+
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, OrigemDestinoLookup, ParametersLookup, PrimitiveManager, ProdutoServicoLookup, QuantidadeDisponivelDemandaLookup, RequisicaoLookup, SegmentoLookup, TypeTaxesLookup, UnidadeMedidaLookup, UtilsModule, VerifyModulePermission, VerifyModulePermissions, WebsocketService, naturezaReceitaPisCofins, ɵ0, ɵ1, ErpLookupsService as ɵa, EnumAnaSin as ɵb, EnumNatCtb as ɵc, StorageService as ɵd, UserInformationService as ɵe, VerifyModulePermissionService as ɵf, VerifyModulePermissionsService as ɵg };
|
|
8261
8391
|
//# sourceMappingURL=senior-gestao-empresarial-angular-components.js.map
|