suis 0.15.0 → 0.16.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (31) hide show
  1. package/README.md +8 -0
  2. package/esm2022/index.mjs +2 -1
  3. package/esm2022/lib/components/index.mjs +3 -1
  4. package/esm2022/lib/components/suis-container/suis-container.component.mjs +3 -3
  5. package/esm2022/lib/components/suis-notification/index.mjs +4 -0
  6. package/esm2022/lib/components/suis-notification/suis-notification.component.mjs +33 -0
  7. package/esm2022/lib/components/suis-notification/suis-notification.interfaces.mjs +2 -0
  8. package/esm2022/lib/components/suis-notification/suis-notification.types.mjs +2 -0
  9. package/esm2022/lib/components/suis-notifications/index.mjs +2 -0
  10. package/esm2022/lib/components/suis-notifications/suis-notifications.component.mjs +27 -0
  11. package/esm2022/lib/components/suis-select/suis-select.component.mjs +3 -3
  12. package/esm2022/lib/components/suis-select-multi/suis-select-multi.component.mjs +3 -3
  13. package/esm2022/lib/components/suis-select-option/suis-select-option.interfaces.mjs +1 -1
  14. package/esm2022/lib/services/index.mjs +2 -0
  15. package/esm2022/lib/services/suis-notification.service.mjs +79 -0
  16. package/esm2022/lib/shared/classes/suis-select.base.mjs +6 -1
  17. package/fesm2022/suis.mjs +134 -8
  18. package/fesm2022/suis.mjs.map +1 -1
  19. package/index.d.ts +1 -0
  20. package/lib/components/index.d.ts +2 -0
  21. package/lib/components/suis-notification/index.d.ts +3 -0
  22. package/lib/components/suis-notification/suis-notification.component.d.ts +19 -0
  23. package/lib/components/suis-notification/suis-notification.interfaces.d.ts +7 -0
  24. package/lib/components/suis-notification/suis-notification.types.d.ts +1 -0
  25. package/lib/components/suis-notifications/index.d.ts +1 -0
  26. package/lib/components/suis-notifications/suis-notifications.component.d.ts +12 -0
  27. package/lib/components/suis-select-option/suis-select-option.interfaces.d.ts +1 -0
  28. package/lib/services/index.d.ts +1 -0
  29. package/lib/services/suis-notification.service.d.ts +43 -0
  30. package/lib/shared/classes/suis-select.base.d.ts +2 -0
  31. 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
+ }
@@ -41,6 +41,8 @@ export declare abstract class SuisSelectBase<T> extends SuisInputBase {
41
41
  onExpand(): void;
42
42
  toggle(value: boolean): void;
43
43
  onDocumentClick(event: Event): void;
44
+ /** @internal */
45
+ optionTrackBy(index: number, option: SuisSelectOption<any>): string;
44
46
  static ɵfac: i0.ɵɵFactoryDeclaration<SuisSelectBase<any>, never>;
45
47
  static ɵdir: i0.ɵɵDirectiveDeclaration<SuisSelectBase<any>, never, never, { "options": { "alias": "options"; "required": false; }; "search": { "alias": "search"; "required": false; }; "searchPlaceholder": { "alias": "searchPlaceholder"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; }, { "searchPhraseChanged": "searchPhraseChanged"; }, ["suisSelectOption"], never, false, never>;
46
48
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "suis",
3
- "version": "0.15.0",
3
+ "version": "0.16.1",
4
4
  "main": "src/index.ts",
5
5
  "author": "Karol Jaskółka",
6
6
  "description": "SUIS (Standalone UI + Signals) Angular 16+ Component Library",