ngx-sp-infra 5.19.2 → 5.19.5
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.
|
@@ -4420,17 +4420,19 @@ class MessageService {
|
|
|
4420
4420
|
this.bsModalService = bsModalService;
|
|
4421
4421
|
}
|
|
4422
4422
|
// Exibe uma mesagem conforme o tipo (privado)
|
|
4423
|
-
showAlert(message, type, dismissTimeout, id) {
|
|
4423
|
+
showAlert(message, type, dismissTimeout, id, keepAlive) {
|
|
4424
4424
|
const initialState = {
|
|
4425
4425
|
message: message,
|
|
4426
4426
|
type: type,
|
|
4427
|
-
id: id
|
|
4427
|
+
id: id,
|
|
4428
4428
|
};
|
|
4429
4429
|
const bsModalRef = this.bsModalService.show(AlertComponent, {
|
|
4430
4430
|
initialState, class: 'modal-md', id: id
|
|
4431
4431
|
});
|
|
4432
|
-
if (
|
|
4433
|
-
|
|
4432
|
+
if (!keepAlive) {
|
|
4433
|
+
if (dismissTimeout) {
|
|
4434
|
+
setTimeout(() => bsModalRef.hide(), dismissTimeout);
|
|
4435
|
+
}
|
|
4434
4436
|
}
|
|
4435
4437
|
}
|
|
4436
4438
|
/** Exibe uma mensagem do tipo danger */
|
|
@@ -4438,20 +4440,20 @@ class MessageService {
|
|
|
4438
4440
|
this.showAlert(message, alertTypes.DANGER, 0, alertIds.DANGER);
|
|
4439
4441
|
}
|
|
4440
4442
|
/** Exibe uma mesagem do tipo success */
|
|
4441
|
-
showAlertSuccess(message) {
|
|
4442
|
-
this.showAlert(message, alertTypes.SUCCESS, 3000, alertIds.SUCCESS);
|
|
4443
|
+
showAlertSuccess(message, keepAlive) {
|
|
4444
|
+
this.showAlert(message, alertTypes.SUCCESS, 3000, alertIds.SUCCESS, keepAlive ? keepAlive : false);
|
|
4443
4445
|
}
|
|
4444
4446
|
/** Exibe uma mesagem do tipo info */
|
|
4445
|
-
showAlertInfo(message) {
|
|
4446
|
-
this.showAlert(message, alertTypes.INFO, 3000, alertIds.INFO);
|
|
4447
|
+
showAlertInfo(message, keepAlive) {
|
|
4448
|
+
this.showAlert(message, alertTypes.INFO, 3000, alertIds.INFO, keepAlive ? keepAlive : false);
|
|
4447
4449
|
}
|
|
4448
4450
|
/** Exibe uma mesagem do tipo primary */
|
|
4449
|
-
showAlertPrimary(message) {
|
|
4450
|
-
this.showAlert(message, alertTypes.PRIMARY, 3000, alertIds.PRIMARY);
|
|
4451
|
+
showAlertPrimary(message, keepAlive) {
|
|
4452
|
+
this.showAlert(message, alertTypes.PRIMARY, 3000, alertIds.PRIMARY, keepAlive ? keepAlive : false);
|
|
4451
4453
|
}
|
|
4452
4454
|
/** Exibe uma mesagem do tipo secondary */
|
|
4453
|
-
showAlertSecondary(message) {
|
|
4454
|
-
this.showAlert(message, alertTypes.SECONDARY, 3000, alertIds.SECONDARY);
|
|
4455
|
+
showAlertSecondary(message, keepAlive) {
|
|
4456
|
+
this.showAlert(message, alertTypes.SECONDARY, 3000, alertIds.SECONDARY, keepAlive ? keepAlive : false);
|
|
4455
4457
|
}
|
|
4456
4458
|
/** Exibe uma mesagem do tipo warning */
|
|
4457
4459
|
showAlertWarning(message) {
|