@senior-gestao-empresarial/angular-components 4.20.4 → 4.22.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 +131 -5
- package/bundles/senior-gestao-empresarial-angular-components.umd.js.map +1 -1
- package/bundles/senior-gestao-empresarial-angular-components.umd.min.js +2 -2
- package/bundles/senior-gestao-empresarial-angular-components.umd.min.js.map +1 -1
- package/components/lookups/entities/apuracao-foundation/parameters-lookup.d.ts +8 -0
- package/components/lookups/entities/apuracao-foundation/type-taxes-lookup.d.ts +8 -0
- package/components/lookups/index.d.ts +2 -0
- package/components/permissions/protocols/query-module.d.ts +1 -0
- package/components/permissions/verify-module-permission.d.ts +2 -1
- package/esm2015/components/lookups/entities/apuracao-foundation/parameters-lookup.js +76 -0
- package/esm2015/components/lookups/entities/apuracao-foundation/type-taxes-lookup.js +52 -0
- package/esm2015/components/lookups/erp-lookups.module.js +6 -2
- package/esm2015/components/lookups/index.js +3 -1
- package/esm2015/components/permissions/protocols/query-module.js +1 -1
- package/esm2015/components/permissions/verify-module-permission.js +7 -5
- package/esm5/components/lookups/entities/apuracao-foundation/parameters-lookup.js +79 -0
- package/esm5/components/lookups/entities/apuracao-foundation/type-taxes-lookup.js +55 -0
- package/esm5/components/lookups/erp-lookups.module.js +6 -2
- package/esm5/components/lookups/index.js +3 -1
- package/esm5/components/permissions/protocols/query-module.js +1 -1
- package/esm5/components/permissions/verify-module-permission.js +7 -5
- package/fesm2015/senior-gestao-empresarial-angular-components.js +124 -6
- package/fesm2015/senior-gestao-empresarial-angular-components.js.map +1 -1
- package/fesm5/senior-gestao-empresarial-angular-components.js +130 -6
- 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
|
@@ -5510,6 +5510,126 @@ var BankLookup = /** @class */ (function (_super) {
|
|
|
5510
5510
|
return BankLookup;
|
|
5511
5511
|
}(ErpLookups));
|
|
5512
5512
|
|
|
5513
|
+
var TypeTaxesLookup = /** @class */ (function (_super) {
|
|
5514
|
+
__extends(TypeTaxesLookup, _super);
|
|
5515
|
+
function TypeTaxesLookup(lookupService, translate) {
|
|
5516
|
+
var _this = _super.call(this, lookupService, translate, "impostoTipo", [
|
|
5517
|
+
{
|
|
5518
|
+
name: "codigo",
|
|
5519
|
+
type: FieldType.Integer
|
|
5520
|
+
}, {
|
|
5521
|
+
name: "descricao",
|
|
5522
|
+
type: FieldType.String
|
|
5523
|
+
},
|
|
5524
|
+
], [
|
|
5525
|
+
{
|
|
5526
|
+
name: "codigo",
|
|
5527
|
+
type: FieldType.Integer
|
|
5528
|
+
}, {
|
|
5529
|
+
name: "descricao",
|
|
5530
|
+
type: FieldType.String
|
|
5531
|
+
}, {
|
|
5532
|
+
name: "chave",
|
|
5533
|
+
type: FieldType.String
|
|
5534
|
+
},
|
|
5535
|
+
], [
|
|
5536
|
+
{
|
|
5537
|
+
name: "codigo",
|
|
5538
|
+
type: FieldType.Integer
|
|
5539
|
+
}, {
|
|
5540
|
+
name: "descricao",
|
|
5541
|
+
type: FieldType.String
|
|
5542
|
+
}, {
|
|
5543
|
+
name: "chave",
|
|
5544
|
+
type: FieldType.String
|
|
5545
|
+
},
|
|
5546
|
+
], "erpx_cpl_tri", "apuracao_foundation") || this;
|
|
5547
|
+
_this.lookupService = lookupService;
|
|
5548
|
+
_this.translate = translate;
|
|
5549
|
+
return _this;
|
|
5550
|
+
}
|
|
5551
|
+
TypeTaxesLookup.ctorParameters = function () { return [
|
|
5552
|
+
{ type: ErpLookupsService },
|
|
5553
|
+
{ type: TranslateService }
|
|
5554
|
+
]; };
|
|
5555
|
+
TypeTaxesLookup = __decorate([
|
|
5556
|
+
Injectable()
|
|
5557
|
+
], TypeTaxesLookup);
|
|
5558
|
+
return TypeTaxesLookup;
|
|
5559
|
+
}(ErpLookups));
|
|
5560
|
+
|
|
5561
|
+
var ParametersLookup = /** @class */ (function (_super) {
|
|
5562
|
+
__extends(ParametersLookup, _super);
|
|
5563
|
+
function ParametersLookup(lookupService, translate) {
|
|
5564
|
+
var _this = _super.call(this, lookupService, translate, "parametros", [
|
|
5565
|
+
{
|
|
5566
|
+
name: "codigo",
|
|
5567
|
+
type: FieldType.Integer
|
|
5568
|
+
}, {
|
|
5569
|
+
name: "imposto",
|
|
5570
|
+
type: FieldType.Enum
|
|
5571
|
+
},
|
|
5572
|
+
], [
|
|
5573
|
+
{
|
|
5574
|
+
name: "codigo",
|
|
5575
|
+
type: FieldType.Integer
|
|
5576
|
+
}, {
|
|
5577
|
+
name: "imposto",
|
|
5578
|
+
type: FieldType.Enum,
|
|
5579
|
+
}, {
|
|
5580
|
+
name: "codigoArrecadacao",
|
|
5581
|
+
type: FieldType.String
|
|
5582
|
+
}, {
|
|
5583
|
+
name: "regimeControleRetencao",
|
|
5584
|
+
type: FieldType.Enum
|
|
5585
|
+
}, {
|
|
5586
|
+
name: "fornecedor",
|
|
5587
|
+
type: FieldType.String
|
|
5588
|
+
}, {
|
|
5589
|
+
name: "extIntSts",
|
|
5590
|
+
type: FieldType.String
|
|
5591
|
+
}, {
|
|
5592
|
+
name: "extIntMsg",
|
|
5593
|
+
type: FieldType.String
|
|
5594
|
+
},
|
|
5595
|
+
], [
|
|
5596
|
+
{
|
|
5597
|
+
name: "codigo",
|
|
5598
|
+
type: FieldType.Integer
|
|
5599
|
+
}, {
|
|
5600
|
+
name: "imposto",
|
|
5601
|
+
type: FieldType.Enum,
|
|
5602
|
+
}, {
|
|
5603
|
+
name: "codigoArrecadacao",
|
|
5604
|
+
type: FieldType.String
|
|
5605
|
+
}, {
|
|
5606
|
+
name: "regimeControleRetencao",
|
|
5607
|
+
type: FieldType.Enum
|
|
5608
|
+
}, {
|
|
5609
|
+
name: "fornecedor",
|
|
5610
|
+
type: FieldType.String
|
|
5611
|
+
}, {
|
|
5612
|
+
name: "extIntSts",
|
|
5613
|
+
type: FieldType.String
|
|
5614
|
+
}, {
|
|
5615
|
+
name: "extIntMsg",
|
|
5616
|
+
type: FieldType.String
|
|
5617
|
+
},
|
|
5618
|
+
], "erpx_cpl_imp", "guias_impostos") || this;
|
|
5619
|
+
_this.lookupService = lookupService;
|
|
5620
|
+
_this.translate = translate;
|
|
5621
|
+
return _this;
|
|
5622
|
+
}
|
|
5623
|
+
ParametersLookup.ctorParameters = function () { return [
|
|
5624
|
+
{ type: ErpLookupsService },
|
|
5625
|
+
{ type: TranslateService }
|
|
5626
|
+
]; };
|
|
5627
|
+
ParametersLookup = __decorate([
|
|
5628
|
+
Injectable()
|
|
5629
|
+
], ParametersLookup);
|
|
5630
|
+
return ParametersLookup;
|
|
5631
|
+
}(ErpLookups));
|
|
5632
|
+
|
|
5513
5633
|
var ErpLookupsModule = /** @class */ (function () {
|
|
5514
5634
|
function ErpLookupsModule() {
|
|
5515
5635
|
}
|
|
@@ -5612,7 +5732,9 @@ var ErpLookupsModule = /** @class */ (function () {
|
|
|
5612
5732
|
E048SfcLookup,
|
|
5613
5733
|
CurrencyLookup,
|
|
5614
5734
|
CountryLookup,
|
|
5615
|
-
BankLookup
|
|
5735
|
+
BankLookup,
|
|
5736
|
+
TypeTaxesLookup,
|
|
5737
|
+
ParametersLookup
|
|
5616
5738
|
],
|
|
5617
5739
|
declarations: [],
|
|
5618
5740
|
exports: [],
|
|
@@ -6595,18 +6717,20 @@ var VerifyModulePermission = /** @class */ (function () {
|
|
|
6595
6717
|
/**
|
|
6596
6718
|
* Method to verify if user has permission on a specific module
|
|
6597
6719
|
* @param module Module to verify the permission
|
|
6720
|
+
* @param requestPermission Indicative if must be call the primitive
|
|
6598
6721
|
* @returns An boolean Observable
|
|
6599
6722
|
*/
|
|
6600
|
-
VerifyModulePermission.prototype.hasPermission = function (module) {
|
|
6723
|
+
VerifyModulePermission.prototype.hasPermission = function (module, requestPermission) {
|
|
6601
6724
|
var moduleSubject = VerifyModulePermission_1.subjectsPerModuleMap.get(module);
|
|
6602
|
-
if (!moduleSubject) {
|
|
6725
|
+
if (!moduleSubject || requestPermission) {
|
|
6603
6726
|
var newModuleSubject_1 = new ReplaySubject(1);
|
|
6604
6727
|
VerifyModulePermission_1.subjectsPerModuleMap.set(module, newModuleSubject_1);
|
|
6605
6728
|
this.verifyModulePermissionService
|
|
6606
|
-
.queryModule({ modulo: module })
|
|
6729
|
+
.queryModule({ modulo: module, somenteAtivo: true })
|
|
6607
6730
|
.pipe(take(1))
|
|
6608
6731
|
.subscribe(function (response) {
|
|
6609
|
-
var
|
|
6732
|
+
var _a;
|
|
6733
|
+
var hasPermission = ((_a = response === null || response === void 0 ? void 0 : response.modulos) === null || _a === void 0 ? void 0 : _a.length) > 0;
|
|
6610
6734
|
newModuleSubject_1.next(hasPermission);
|
|
6611
6735
|
}, function (err) {
|
|
6612
6736
|
VerifyModulePermission_1.subjectsPerModuleMap.delete(module);
|
|
@@ -6641,5 +6765,5 @@ var ModulesEnum;
|
|
|
6641
6765
|
* Generated bundle index. Do not edit.
|
|
6642
6766
|
*/
|
|
6643
6767
|
|
|
6644
|
-
export { BankLookup, BreadcrumbComponent, BreadcrumbModule, Breakpoints, CountryLookup, CplTriNotaSaidaE001EndLookup, CplTriNotaSaidaE001PesLookup, CplTriNotaSaidaE001TnsLookup, CplTriNotaSaidaE007UfsLookup, CplTriNotaSaidaE008RaiLookup, CplTriNotaSaidaE015MedLookup, CplTriNotaSaidaE020SnfLookup, CplTriNotaSaidaE024MsgLookup, CplTriNotaSaidaE028CpgLookup, CplTriNotaSaidaE032EdcLookup, CplTriNotaSaidaE051DisLookup, CplTriNotaSaidaE066FpgLookup, CplTriNotaSaidaE070EmpLookup, CplTriNotaSaidaE070FilLookup, CplTriNotaSaidaE075DerLookup, CplTriNotaSaidaE080SerLookup, CplTriNotaSaidaNaturezaReceitaPisCofinsLookup, CplTriNotaSaidaNcmLookup, CplTriNotaSaidaNfEntradaLookup, CplTriNotaSaidaNfSaidaLookup, CurrencyLookup, E001EndLookup, E001PesLookup, E001TnsLookup, E001TnsSupEstLookup, E002TptLookup, E007UfsLookup, E008CepLookup, E008RaiLookup, E012FamLookup, E015MedLookup, E020SnfLookup, E021MotLookup, E023CrpLookup, E024MsgLookup, E027EqiLookup, E027StrLookup, E028CpgLookup, E030AgeLookup, E030BanLookup, E031MoeLookup, E032EdcLookup, E035OcrLookup, E036InsLookup, E039PorLookup, E044CcuFinRatDepLookup, E044CcuLookup, E045PlaLookup, E046HpdLookup, E047NtgLookup, E048FctLookup, E048SfcLookup, E051DisLookup, E066FpgLookup, E067FinLookup, E070EmpLookup, E070EntLookup, E070FilLookup, E073PesLookup, E073VeiLookup, E075DerLookup, E080SerLookup, E082TprLookup, E085PesLookup, E090PesLookup, E091PlfFinRatLookup, E095PesLookup, E099UsuComGerLookup, E140InsLookup, E140NfsLookup, E200LotLookup, E200SerLookup, E205DepLookup, E210DxpE075DerLookup, E210DxpLookup, E301TcrLookup, E403FprLookup, E420IcpLookup, E420IpcLookup, E420OcpLookup, E600CcoLookup, E640LotLookup, EnumLogicalOperator, EquipmentLookup, ErpLookups, ErpLookupsModule, ErpPolling, ExportUtils, FiltersStorageService, FormUtilsService, LigacaoItemFornecedorLookup, LookupValidationUtils, ModulesEnum, NcmLookup, NpsService, ProdutoServicoLookup, QuantidadeDisponivelDemandaLookup, RequisicaoLookup, UnidadeMedidaLookup, UtilsModule, VerifyModulePermission, WebsocketService, naturezaReceitaPisCofins, ErpLookupsService as ɵa, StorageService as ɵb, VerifyModulePermissionService as ɵc };
|
|
6768
|
+
export { BankLookup, BreadcrumbComponent, BreadcrumbModule, Breakpoints, CountryLookup, CplTriNotaSaidaE001EndLookup, CplTriNotaSaidaE001PesLookup, CplTriNotaSaidaE001TnsLookup, CplTriNotaSaidaE007UfsLookup, CplTriNotaSaidaE008RaiLookup, CplTriNotaSaidaE015MedLookup, CplTriNotaSaidaE020SnfLookup, CplTriNotaSaidaE024MsgLookup, CplTriNotaSaidaE028CpgLookup, CplTriNotaSaidaE032EdcLookup, CplTriNotaSaidaE051DisLookup, CplTriNotaSaidaE066FpgLookup, CplTriNotaSaidaE070EmpLookup, CplTriNotaSaidaE070FilLookup, CplTriNotaSaidaE075DerLookup, CplTriNotaSaidaE080SerLookup, CplTriNotaSaidaNaturezaReceitaPisCofinsLookup, CplTriNotaSaidaNcmLookup, CplTriNotaSaidaNfEntradaLookup, CplTriNotaSaidaNfSaidaLookup, CurrencyLookup, E001EndLookup, E001PesLookup, E001TnsLookup, E001TnsSupEstLookup, E002TptLookup, E007UfsLookup, E008CepLookup, E008RaiLookup, E012FamLookup, E015MedLookup, E020SnfLookup, E021MotLookup, E023CrpLookup, E024MsgLookup, E027EqiLookup, E027StrLookup, E028CpgLookup, E030AgeLookup, E030BanLookup, E031MoeLookup, E032EdcLookup, E035OcrLookup, E036InsLookup, E039PorLookup, E044CcuFinRatDepLookup, E044CcuLookup, E045PlaLookup, E046HpdLookup, E047NtgLookup, E048FctLookup, E048SfcLookup, E051DisLookup, E066FpgLookup, E067FinLookup, E070EmpLookup, E070EntLookup, E070FilLookup, E073PesLookup, E073VeiLookup, E075DerLookup, E080SerLookup, E082TprLookup, E085PesLookup, E090PesLookup, E091PlfFinRatLookup, E095PesLookup, E099UsuComGerLookup, E140InsLookup, E140NfsLookup, E200LotLookup, E200SerLookup, E205DepLookup, E210DxpE075DerLookup, E210DxpLookup, E301TcrLookup, E403FprLookup, E420IcpLookup, E420IpcLookup, E420OcpLookup, E600CcoLookup, E640LotLookup, EnumLogicalOperator, EquipmentLookup, ErpLookups, ErpLookupsModule, ErpPolling, ExportUtils, FiltersStorageService, FormUtilsService, LigacaoItemFornecedorLookup, LookupValidationUtils, ModulesEnum, NcmLookup, NpsService, ParametersLookup, ProdutoServicoLookup, QuantidadeDisponivelDemandaLookup, RequisicaoLookup, TypeTaxesLookup, UnidadeMedidaLookup, UtilsModule, VerifyModulePermission, WebsocketService, naturezaReceitaPisCofins, ErpLookupsService as ɵa, StorageService as ɵb, VerifyModulePermissionService as ɵc };
|
|
6645
6769
|
//# sourceMappingURL=senior-gestao-empresarial-angular-components.js.map
|