suis 0.14.0 → 0.16.0
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +9 -0
- package/esm2022/index.mjs +2 -1
- package/esm2022/lib/components/index.mjs +4 -1
- package/esm2022/lib/components/suis-notification/index.mjs +4 -0
- package/esm2022/lib/components/suis-notification/suis-notification.component.mjs +33 -0
- package/esm2022/lib/components/suis-notification/suis-notification.interfaces.mjs +2 -0
- package/esm2022/lib/components/suis-notification/suis-notification.types.mjs +2 -0
- package/esm2022/lib/components/suis-notifications/index.mjs +2 -0
- package/esm2022/lib/components/suis-notifications/suis-notifications.component.mjs +27 -0
- package/esm2022/lib/components/suis-select/suis-select.component.mjs +3 -3
- package/esm2022/lib/components/suis-select-multi/index.mjs +2 -0
- package/esm2022/lib/components/suis-select-multi/suis-select-multi-chips.pipe.mjs +25 -0
- package/esm2022/lib/components/suis-select-multi/suis-select-multi-is-selected.pipe.mjs +18 -0
- package/esm2022/lib/components/suis-select-multi/suis-select-multi.component.mjs +99 -0
- package/esm2022/lib/components/suis-select-option/suis-select-option.interfaces.mjs +1 -1
- package/esm2022/lib/services/index.mjs +2 -0
- package/esm2022/lib/services/suis-notification.service.mjs +79 -0
- package/esm2022/lib/shared/classes/suis-select.base.mjs +1 -1
- package/fesm2022/suis.mjs +246 -4
- package/fesm2022/suis.mjs.map +1 -1
- package/index.d.ts +1 -0
- package/lib/components/index.d.ts +3 -0
- package/lib/components/suis-notification/index.d.ts +3 -0
- package/lib/components/suis-notification/suis-notification.component.d.ts +19 -0
- package/lib/components/suis-notification/suis-notification.interfaces.d.ts +7 -0
- package/lib/components/suis-notification/suis-notification.types.d.ts +1 -0
- package/lib/components/suis-notifications/index.d.ts +1 -0
- package/lib/components/suis-notifications/suis-notifications.component.d.ts +12 -0
- package/lib/components/suis-select-multi/index.d.ts +1 -0
- package/lib/components/suis-select-multi/suis-select-multi-chips.pipe.d.ts +8 -0
- package/lib/components/suis-select-multi/suis-select-multi-is-selected.pipe.d.ts +7 -0
- package/lib/components/suis-select-multi/suis-select-multi.component.d.ts +26 -0
- package/lib/services/index.d.ts +1 -0
- package/lib/services/suis-notification.service.d.ts +43 -0
- 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
|
+
}
|