ngx-sp-auth 4.6.13 → 4.6.15
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/fesm2022/ngx-sp-auth.mjs
CHANGED
|
@@ -3311,8 +3311,6 @@ class VersoesModalComponent {
|
|
|
3311
3311
|
// #region ==========> PROPERTIES <==========
|
|
3312
3312
|
// #region PUBLIC
|
|
3313
3313
|
this.onClose = new EventEmitter();
|
|
3314
|
-
this.versionBase = '';
|
|
3315
|
-
this.versionCorporativo = '';
|
|
3316
3314
|
this.closeSelf = () => { this.onClose.emit(); };
|
|
3317
3315
|
}
|
|
3318
3316
|
ngOnInit() {
|
|
@@ -3345,7 +3343,7 @@ class VersoesModalComponent {
|
|
|
3345
3343
|
console.log(response);
|
|
3346
3344
|
// Deve formatar as versões que forem 0 converter para "Base"
|
|
3347
3345
|
this.versions = response.Data?.map(e => {
|
|
3348
|
-
if (e.Versao === '0')
|
|
3346
|
+
if (e.Versao === '0' || e.Versao === '' || e.Versao === null || e.Versao === undefined)
|
|
3349
3347
|
return { Projeto: e.Projeto, Versao: "Base" };
|
|
3350
3348
|
else
|
|
3351
3349
|
return { Projeto: e.Projeto, Versao: e.Versao };
|
|
@@ -3355,14 +3353,14 @@ class VersoesModalComponent {
|
|
|
3355
3353
|
});
|
|
3356
3354
|
}
|
|
3357
3355
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: VersoesModalComponent, deps: [{ token: MenuServicesService }, { token: AuthUtilService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
3358
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.17", type: VersoesModalComponent, isStandalone: true, selector: "versoes-modal", outputs: { onClose: "onClose" }, ngImport: i0, template: "<div class=\"main-container\">\n <div class=\"modal-header modal-style modal-dialog-centered modal-lg\">\n <h4 class=\"modal-title pull-left color-modal fw-bold\" style=\"font-size: 20px;\"
|
|
3356
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.17", type: VersoesModalComponent, isStandalone: true, selector: "versoes-modal", outputs: { onClose: "onClose" }, ngImport: i0, template: "<div class=\"main-container\">\n <div class=\"modal-header modal-style modal-dialog-centered modal-lg\">\n <h4 class=\"modal-title pull-left color-modal fw-bold placeholder-glow w-100\" style=\"font-size: 20px;\">\n \n @defer (when versionBase) { Vers\u00E3o atual: {{ versionBase }} }\n @placeholder { <span class=\"placeholder w-100\"></span> }\n \n </h4>\n <button (click)=\"closeSelf()\" type=\"button\" class=\"btn-close\" data-bs-dismiss=\"modal\" aria-label=\"Close\"></button>\n </div>\n <div class=\"modal-body\">\n <p>Patches dos m\u00F3dulos espec\u00EDficos:</p>\n\n @defer (when versions) {\n <ul class=\"p-0\">\n @for (versao of versions; track versao.Projeto) {\n <li>\n <span class=\"fw-bold\">{{ versao.Projeto }} | <a type=\"button\" class=\"text-decoration-none text-primary fw-bold\" tooltip=\"Clique aqui para acessar o que mudou nesta vers\u00E3o\" [href]=\"releaseNotesUrl+'/versoes/'+versionBase+'/'+versao.Projeto\" target=\"_blank\" >{{ versionBase + '_' + versao.Versao }} <lib-icon iconName=\"acessoexterno\" iconSize=\"small\" /> </a></span>\n </li>\n }\n </ul>\n }\n @placeholder {\n <span class=\"placeholder-glow\">\n <span class=\"placeholder w-100\"></span>\n </span>\n }\n\n <p class=\"mb-0 mt-3\">Acesse as release notes de todas as vers\u00F5es do ERP <a [href]=\"releaseNotesUrl\" target=\"_blank\" class=\"fw-bold text-decoration-none text-primary\">clicando aqui</a> </p>\n </div>\n</div>", styles: ["ul{list-style-type:none!important}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: InfraModule }], deferBlockDependencies: [null, () => [i3.LibIconsComponent]] }); }
|
|
3359
3357
|
}
|
|
3360
3358
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: VersoesModalComponent, decorators: [{
|
|
3361
3359
|
type: Component,
|
|
3362
3360
|
args: [{ selector: 'versoes-modal', imports: [
|
|
3363
3361
|
CommonModule,
|
|
3364
3362
|
InfraModule,
|
|
3365
|
-
], template: "<div class=\"main-container\">\n <div class=\"modal-header modal-style modal-dialog-centered modal-lg\">\n <h4 class=\"modal-title pull-left color-modal fw-bold\" style=\"font-size: 20px;\"
|
|
3363
|
+
], template: "<div class=\"main-container\">\n <div class=\"modal-header modal-style modal-dialog-centered modal-lg\">\n <h4 class=\"modal-title pull-left color-modal fw-bold placeholder-glow w-100\" style=\"font-size: 20px;\">\n \n @defer (when versionBase) { Vers\u00E3o atual: {{ versionBase }} }\n @placeholder { <span class=\"placeholder w-100\"></span> }\n \n </h4>\n <button (click)=\"closeSelf()\" type=\"button\" class=\"btn-close\" data-bs-dismiss=\"modal\" aria-label=\"Close\"></button>\n </div>\n <div class=\"modal-body\">\n <p>Patches dos m\u00F3dulos espec\u00EDficos:</p>\n\n @defer (when versions) {\n <ul class=\"p-0\">\n @for (versao of versions; track versao.Projeto) {\n <li>\n <span class=\"fw-bold\">{{ versao.Projeto }} | <a type=\"button\" class=\"text-decoration-none text-primary fw-bold\" tooltip=\"Clique aqui para acessar o que mudou nesta vers\u00E3o\" [href]=\"releaseNotesUrl+'/versoes/'+versionBase+'/'+versao.Projeto\" target=\"_blank\" >{{ versionBase + '_' + versao.Versao }} <lib-icon iconName=\"acessoexterno\" iconSize=\"small\" /> </a></span>\n </li>\n }\n </ul>\n }\n @placeholder {\n <span class=\"placeholder-glow\">\n <span class=\"placeholder w-100\"></span>\n </span>\n }\n\n <p class=\"mb-0 mt-3\">Acesse as release notes de todas as vers\u00F5es do ERP <a [href]=\"releaseNotesUrl\" target=\"_blank\" class=\"fw-bold text-decoration-none text-primary\">clicando aqui</a> </p>\n </div>\n</div>", styles: ["ul{list-style-type:none!important}\n"] }]
|
|
3366
3364
|
}], ctorParameters: () => [{ type: MenuServicesService }, { type: AuthUtilService }], propDecorators: { onClose: [{
|
|
3367
3365
|
type: Output
|
|
3368
3366
|
}] } });
|