monkey-front-core 0.0.247 → 0.0.248
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/esm2020/lib/core/services/alerts/monkeyecx-alerts.service.mjs +13 -2
- package/fesm2015/monkey-front-core.mjs +13 -1
- package/fesm2015/monkey-front-core.mjs.map +1 -1
- package/fesm2020/monkey-front-core.mjs +12 -1
- package/fesm2020/monkey-front-core.mjs.map +1 -1
- package/lib/core/services/alerts/monkeyecx-alerts.service.d.ts +6 -1
- package/monkey-front-core-0.0.248.tgz +0 -0
- package/package.json +1 -1
- package/monkey-front-core-0.0.247.tgz +0 -0
|
@@ -3632,7 +3632,7 @@ class MonkeyEcxAlertsService {
|
|
|
3632
3632
|
this.translateService = translateService;
|
|
3633
3633
|
// not to do
|
|
3634
3634
|
}
|
|
3635
|
-
|
|
3635
|
+
show({ type = 'warning', title, message, duration }) {
|
|
3636
3636
|
const i18n = this.translateService.instant(`MECX-ALERTS.${type}`.toUpperCase());
|
|
3637
3637
|
this.snackbarService.show({
|
|
3638
3638
|
title: i18n?.TITLES?.[title],
|
|
@@ -3643,6 +3643,17 @@ class MonkeyEcxAlertsService {
|
|
|
3643
3643
|
verticalPosition: 'top'
|
|
3644
3644
|
});
|
|
3645
3645
|
}
|
|
3646
|
+
showWarning({ title, message, duration }) {
|
|
3647
|
+
const i18n = this.translateService.instant('MECX-ALERTS.WARNING');
|
|
3648
|
+
this.snackbarService.show({
|
|
3649
|
+
title: i18n?.TITLES?.[title],
|
|
3650
|
+
message: i18n?.MESSAGES[message],
|
|
3651
|
+
type: 'warning',
|
|
3652
|
+
duration: duration || 4000,
|
|
3653
|
+
horizontalPosition: 'center',
|
|
3654
|
+
verticalPosition: 'top'
|
|
3655
|
+
});
|
|
3656
|
+
}
|
|
3646
3657
|
}
|
|
3647
3658
|
MonkeyEcxAlertsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxAlertsService, deps: [{ token: i1.MonkeyStyleGuideSnackbarService }, { token: i1$1.TranslateService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
3648
3659
|
MonkeyEcxAlertsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxAlertsService, providedIn: 'root' });
|