monkey-style-guide 2.0.124 → 2.0.125
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/snackbar/mokey-style-guide-snackbar.service.mjs +7 -6
- package/fesm2015/monkey-style-guide.mjs +6 -5
- package/fesm2015/monkey-style-guide.mjs.map +1 -1
- package/fesm2020/monkey-style-guide.mjs +6 -5
- package/fesm2020/monkey-style-guide.mjs.map +1 -1
- package/lib/core/services/snackbar/mokey-style-guide-snackbar.service.d.ts +2 -2
- package/monkey-style-guide-2.0.125.tgz +0 -0
- package/package.json +1 -1
- package/monkey-style-guide-2.0.124.tgz +0 -0
|
@@ -560,11 +560,6 @@ class MonkeyStyleGuideSnackbarService {
|
|
|
560
560
|
snackbarElement.appendChild(snackbarBodyElement);
|
|
561
561
|
this.snackbarElements.add(snackbarElement, duration, () => (!keepOpen ? this.close(id) : null), verticalPosition);
|
|
562
562
|
}
|
|
563
|
-
close(id) {
|
|
564
|
-
const { snackbarElements } = this;
|
|
565
|
-
snackbarElements.remove(id);
|
|
566
|
-
this.stopBlinking();
|
|
567
|
-
}
|
|
568
563
|
show(config) {
|
|
569
564
|
this.config = config;
|
|
570
565
|
const id = `monkey-snackbar-${MonkeyUtils.getRandomString(30)}`;
|
|
@@ -578,11 +573,17 @@ class MonkeyStyleGuideSnackbarService {
|
|
|
578
573
|
if (config?.blinkTab) {
|
|
579
574
|
this.blinkTab();
|
|
580
575
|
}
|
|
576
|
+
return id;
|
|
581
577
|
}
|
|
582
578
|
closeAll() {
|
|
583
579
|
const { snackbarElements } = this;
|
|
584
580
|
snackbarElements.removeAll();
|
|
585
581
|
}
|
|
582
|
+
close(id) {
|
|
583
|
+
const { snackbarElements } = this;
|
|
584
|
+
snackbarElements.remove(id);
|
|
585
|
+
this.stopBlinking();
|
|
586
|
+
}
|
|
586
587
|
}
|
|
587
588
|
MonkeyStyleGuideSnackbarService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: MonkeyStyleGuideSnackbarService, deps: [{ token: i1$1.Location }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
588
589
|
MonkeyStyleGuideSnackbarService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: MonkeyStyleGuideSnackbarService });
|