ngx-sp-infra 6.23.0 → 6.23.2
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.
|
@@ -11035,14 +11035,17 @@ class LoadingScreenComponent {
|
|
|
11035
11035
|
// #region PUBLIC
|
|
11036
11036
|
/** Indica se devo bloquear o unload do navegador quando ativo */
|
|
11037
11037
|
this.blockUnload = false;
|
|
11038
|
+
this.message = 'Carregando Informações...';
|
|
11038
11039
|
}
|
|
11039
11040
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: LoadingScreenComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
11040
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.25", type: LoadingScreenComponent, isStandalone: true, selector: "lib-loading-screen", host: { listeners: { "window:beforeunload": "beforeUnloadHandler($event)" }, properties: { "class.h-100": "this.beforeUnloadHandler" } }, ngImport: i0, template: "<div class=\"loader-background\">\n <div class=\"d-flex flex-column justify-content-center align-items-center loader-content\">\n <div class=\"text-center\">\n <img src=\"assets/imgs/logo.png\" alt=\"Loading Logo\" class=\"mb-3\" style=\"max-width: 150px;\">\n <h2 class=\"fw-bold\">
|
|
11041
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.25", type: LoadingScreenComponent, isStandalone: true, selector: "lib-loading-screen", inputs: { message: "message" }, host: { listeners: { "window:beforeunload": "beforeUnloadHandler($event)" }, properties: { "class.h-100": "this.beforeUnloadHandler" } }, ngImport: i0, template: "<div class=\"loader-background\">\n <div class=\"d-flex flex-column justify-content-center align-items-center loader-content\">\n <div class=\"text-center\">\n <img src=\"assets/imgs/logo.png\" alt=\"Loading Logo\" class=\"mb-3\" style=\"max-width: 150px;\">\n <h2 class=\"fw-bold\">{{ message }}</h2>\n <p class=\"text-muted\">Por favor, aguarde enquanto os dados s\u00E3o carregados.</p>\n </div>\n <div class=\"spinner-border text-primary\" role=\"status\"></div>\n </div>\n</div>\n", styles: [".loader-background{z-index:1999;position:absolute;top:0;width:100%;height:100%;background-color:#ffffffbf!important}.loader-content{opacity:100%!important;height:100%}\n"] }); }
|
|
11041
11042
|
}
|
|
11042
11043
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: LoadingScreenComponent, decorators: [{
|
|
11043
11044
|
type: Component,
|
|
11044
|
-
args: [{ selector: 'lib-loading-screen', imports: [], template: "<div class=\"loader-background\">\n <div class=\"d-flex flex-column justify-content-center align-items-center loader-content\">\n <div class=\"text-center\">\n <img src=\"assets/imgs/logo.png\" alt=\"Loading Logo\" class=\"mb-3\" style=\"max-width: 150px;\">\n <h2 class=\"fw-bold\">
|
|
11045
|
-
}], ctorParameters: () => [], propDecorators: {
|
|
11045
|
+
args: [{ selector: 'lib-loading-screen', imports: [], template: "<div class=\"loader-background\">\n <div class=\"d-flex flex-column justify-content-center align-items-center loader-content\">\n <div class=\"text-center\">\n <img src=\"assets/imgs/logo.png\" alt=\"Loading Logo\" class=\"mb-3\" style=\"max-width: 150px;\">\n <h2 class=\"fw-bold\">{{ message }}</h2>\n <p class=\"text-muted\">Por favor, aguarde enquanto os dados s\u00E3o carregados.</p>\n </div>\n <div class=\"spinner-border text-primary\" role=\"status\"></div>\n </div>\n</div>\n", styles: [".loader-background{z-index:1999;position:absolute;top:0;width:100%;height:100%;background-color:#ffffffbf!important}.loader-content{opacity:100%!important;height:100%}\n"] }]
|
|
11046
|
+
}], ctorParameters: () => [], propDecorators: { message: [{
|
|
11047
|
+
type: Input
|
|
11048
|
+
}], beforeUnloadHandler: [{
|
|
11046
11049
|
type: HostBinding,
|
|
11047
11050
|
args: ['class.h-100']
|
|
11048
11051
|
}, {
|
|
@@ -14069,9 +14072,12 @@ class GlobalLoadingService {
|
|
|
14069
14072
|
* Exibe o loading na tela.
|
|
14070
14073
|
* @param blockUnload Indica se deve bloquear o unload do navegador enquanto o loading estiver sendo exibido. Recomenda-se usar true em casos de ações de Salvar/Atualizar.
|
|
14071
14074
|
*/
|
|
14072
|
-
show(blockUnload = false) {
|
|
14075
|
+
show(blockUnload = false, message) {
|
|
14073
14076
|
// Já existe o componente anexado
|
|
14074
14077
|
if (this._componentRef) {
|
|
14078
|
+
if (message !== undefined) {
|
|
14079
|
+
this._componentRef.instance.message = message;
|
|
14080
|
+
}
|
|
14075
14081
|
return;
|
|
14076
14082
|
}
|
|
14077
14083
|
// 1. Resolve a fábrica do componente
|
|
@@ -14080,6 +14086,9 @@ class GlobalLoadingService {
|
|
|
14080
14086
|
this._componentRef = componentFactory.create(this.injector);
|
|
14081
14087
|
// 2.1. Passa o parâmetro blockUnload para o componente
|
|
14082
14088
|
this._componentRef.instance.blockUnload = blockUnload;
|
|
14089
|
+
if (message !== undefined) {
|
|
14090
|
+
this._componentRef.instance.message = message;
|
|
14091
|
+
}
|
|
14083
14092
|
// 3. Anexa a view à ApplicationRef para que faça parte do ciclo de detecção de mudanças
|
|
14084
14093
|
this.appRef.attachView(this._componentRef.hostView);
|
|
14085
14094
|
// 4. Converte a view em nó DOM e adiciona ao body
|