monkey-front-core 0.0.247 → 0.0.249

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.
@@ -3632,7 +3632,7 @@ class MonkeyEcxAlertsService {
3632
3632
  this.translateService = translateService;
3633
3633
  // not to do
3634
3634
  }
3635
- showWarning({ type = 'warning', title, message, duration }) {
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' });
@@ -4749,15 +4760,21 @@ class MonkeyEcxFeatureDirective {
4749
4760
  return;
4750
4761
  const flag = this.getFeature(this.feature);
4751
4762
  let display = 'none';
4763
+ console.log('1');
4752
4764
  if (!MonkeyEcxUtils.persistNullEmptyUndefined(flag)) {
4753
4765
  return;
4754
4766
  }
4767
+ console.log('2');
4755
4768
  if (flag) {
4756
4769
  display = 'block';
4757
4770
  }
4771
+ console.log('3');
4758
4772
  if (display === 'none') {
4759
4773
  this.elementRef.nativeElement.remove();
4760
4774
  }
4775
+ console.log('4');
4776
+ console.log('display');
4777
+ console.log(display);
4761
4778
  this.elementRef.nativeElement.style.display = display;
4762
4779
  this.cdr.detectChanges();
4763
4780
  }