suis 0.14.0 → 0.16.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (35) hide show
  1. package/README.md +9 -0
  2. package/esm2022/index.mjs +2 -1
  3. package/esm2022/lib/components/index.mjs +4 -1
  4. package/esm2022/lib/components/suis-notification/index.mjs +4 -0
  5. package/esm2022/lib/components/suis-notification/suis-notification.component.mjs +33 -0
  6. package/esm2022/lib/components/suis-notification/suis-notification.interfaces.mjs +2 -0
  7. package/esm2022/lib/components/suis-notification/suis-notification.types.mjs +2 -0
  8. package/esm2022/lib/components/suis-notifications/index.mjs +2 -0
  9. package/esm2022/lib/components/suis-notifications/suis-notifications.component.mjs +27 -0
  10. package/esm2022/lib/components/suis-select/suis-select.component.mjs +3 -3
  11. package/esm2022/lib/components/suis-select-multi/index.mjs +2 -0
  12. package/esm2022/lib/components/suis-select-multi/suis-select-multi-chips.pipe.mjs +25 -0
  13. package/esm2022/lib/components/suis-select-multi/suis-select-multi-is-selected.pipe.mjs +18 -0
  14. package/esm2022/lib/components/suis-select-multi/suis-select-multi.component.mjs +99 -0
  15. package/esm2022/lib/components/suis-select-option/suis-select-option.interfaces.mjs +1 -1
  16. package/esm2022/lib/services/index.mjs +2 -0
  17. package/esm2022/lib/services/suis-notification.service.mjs +79 -0
  18. package/esm2022/lib/shared/classes/suis-select.base.mjs +1 -1
  19. package/fesm2022/suis.mjs +246 -4
  20. package/fesm2022/suis.mjs.map +1 -1
  21. package/index.d.ts +1 -0
  22. package/lib/components/index.d.ts +3 -0
  23. package/lib/components/suis-notification/index.d.ts +3 -0
  24. package/lib/components/suis-notification/suis-notification.component.d.ts +19 -0
  25. package/lib/components/suis-notification/suis-notification.interfaces.d.ts +7 -0
  26. package/lib/components/suis-notification/suis-notification.types.d.ts +1 -0
  27. package/lib/components/suis-notifications/index.d.ts +1 -0
  28. package/lib/components/suis-notifications/suis-notifications.component.d.ts +12 -0
  29. package/lib/components/suis-select-multi/index.d.ts +1 -0
  30. package/lib/components/suis-select-multi/suis-select-multi-chips.pipe.d.ts +8 -0
  31. package/lib/components/suis-select-multi/suis-select-multi-is-selected.pipe.d.ts +7 -0
  32. package/lib/components/suis-select-multi/suis-select-multi.component.d.ts +26 -0
  33. package/lib/services/index.d.ts +1 -0
  34. package/lib/services/suis-notification.service.d.ts +43 -0
  35. package/package.json +1 -1
@@ -0,0 +1,43 @@
1
+ import { Signal } from '@angular/core';
2
+ import { SuisNotification } from '../components/suis-notification/suis-notification.interfaces';
3
+ import * as i0 from "@angular/core";
4
+ export declare class SuisNotificationService {
5
+ private notifications;
6
+ /**
7
+ * @returns array of the current notifications. Type of SuisNotification[].
8
+ */
9
+ getNotifications(): Signal<SuisNotification[]>;
10
+ /**
11
+ * Adds success notification
12
+ * @param message text displayed in the notification
13
+ * @param delay time in ms after notification will be destroyed
14
+ */
15
+ success(message: string, delay?: number): void;
16
+ /**
17
+ * Adds warning notification
18
+ * @param message text displayed in the notification
19
+ * @param delay time in ms after notification will be destroyed
20
+ */
21
+ warning(message: string, delay?: number): void;
22
+ /**
23
+ * Adds danger notification
24
+ * @param message text displayed in the notification
25
+ * @param delay time in ms after notification will be destroyed
26
+ */
27
+ danger(message: string, delay?: number): void;
28
+ /**
29
+ * Removes notification immediately
30
+ * @param id id of the notification to be removed
31
+ */
32
+ forceRemoveNotification(id: string): void;
33
+ /** @internal */
34
+ private getId;
35
+ /** @internal */
36
+ private addNotification;
37
+ /** @internal */
38
+ private removeNotification;
39
+ /** @internal */
40
+ private removeNotificationWithDelay;
41
+ static ɵfac: i0.ɵɵFactoryDeclaration<SuisNotificationService, never>;
42
+ static ɵprov: i0.ɵɵInjectableDeclaration<SuisNotificationService>;
43
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "suis",
3
- "version": "0.14.0",
3
+ "version": "0.16.0",
4
4
  "main": "src/index.ts",
5
5
  "author": "Karol Jaskółka",
6
6
  "description": "SUIS (Standalone UI + Signals) Angular 16+ Component Library",