suis 0.32.3 → 0.33.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -18,11 +18,11 @@ export declare class SuisNavigationComponent {
18
18
  */
19
19
  expandable: boolean;
20
20
  /**
21
- * Adds collapse / epxand logic to navigiaton. By default set to false.
21
+ * Adds collapse / expand logic to navigiaton. By default set to false.
22
22
  */
23
23
  collapsable: boolean;
24
24
  /**
25
- * Collapses the navigiation. By default set to false.
25
+ * Collapses the navigiation, when collapsable is enabled. By default set to false.
26
26
  */
27
27
  collapsed: boolean;
28
28
  /**
@@ -5,7 +5,7 @@ export declare class SuisNotificationComponent {
5
5
  /**
6
6
  * Notification item data. Type of SuisNotification.
7
7
  */
8
- notification?: SuisNotification;
8
+ notification?: SuisNotification | null;
9
9
  /**
10
10
  * Emits on close button action.
11
11
  */
@@ -1,6 +1,7 @@
1
1
  import { SuisNotificationType } from './suis-notification.types';
2
2
  export interface SuisNotification {
3
3
  id: string;
4
+ header: string;
4
5
  message: string;
5
6
  type: SuisNotificationType;
6
7
  delay: number;
@@ -13,7 +13,7 @@ export declare class SuisPaginationComponent implements OnInit, OnChanges {
13
13
  */
14
14
  page: number;
15
15
  /**
16
- * Number of items presented per page. By default set to 15.
16
+ * Number of items presented per page. Value must be included in perPageOptions. By default set to 15.
17
17
  */
18
18
  perPage: number;
19
19
  /**
@@ -25,11 +25,11 @@ export declare class SuisPaginationComponent implements OnInit, OnChanges {
25
25
  */
26
26
  totalItems: number;
27
27
  /**
28
- * Sets the of label "1 'of' 25". By default set to 'of'.
28
+ * Sets the of label in "1 'of' 25". By default set to 'of'.
29
29
  */
30
30
  ofLabel: string;
31
31
  /**
32
- * Sets the page label "1-10 'of' 25 'items'". By default set to 'Page'.
32
+ * Sets the items label in "1-10 'of' 25 'items'". By default set to 'Page'.
33
33
  */
34
34
  itemsLabel: string;
35
35
  /**
@@ -1 +1,2 @@
1
1
  export * from './suis-title.component';
2
+ export * from './suis-title.enum';
@@ -1,5 +1,12 @@
1
+ import { SuisTitle } from './suis-title.enum';
1
2
  import * as i0 from "@angular/core";
2
3
  export declare class SuisTitleComponent {
4
+ /** @internal */
5
+ readonly SuisTitle: typeof SuisTitle;
6
+ /**
7
+ * Sets level of the header tag. Type of SuisTitle. By default set to H1.
8
+ */
9
+ level: SuisTitle;
3
10
  static ɵfac: i0.ɵɵFactoryDeclaration<SuisTitleComponent, never>;
4
- static ɵcmp: i0.ɵɵComponentDeclaration<SuisTitleComponent, "suis-title", never, {}, {}, never, ["*"], true, never>;
11
+ static ɵcmp: i0.ɵɵComponentDeclaration<SuisTitleComponent, "suis-title", never, { "level": { "alias": "level"; "required": false; }; }, {}, never, ["*"], true, never>;
5
12
  }
@@ -0,0 +1,5 @@
1
+ export declare enum SuisTitle {
2
+ H1 = 1,
3
+ H2 = 2,
4
+ H3 = 3
5
+ }
@@ -9,22 +9,25 @@ export declare class SuisNotificationService {
9
9
  getNotifications(): Signal<SuisNotification[]>;
10
10
  /**
11
11
  * Adds success notification
12
- * @param message text displayed in the notification
12
+ * @param header text displayed in the notification header
13
+ * @param message text displayed in the notification message
13
14
  * @param delay time in ms after notification will be destroyed
14
15
  */
15
- success(message: string, delay?: number): void;
16
+ success(header: string, message: string, delay?: number): void;
16
17
  /**
17
18
  * Adds warning notification
18
- * @param message text displayed in the notification
19
+ * @param header text displayed in the notification header
20
+ * @param message text displayed in the notification message
19
21
  * @param delay time in ms after notification will be destroyed
20
22
  */
21
- warning(message: string, delay?: number): void;
23
+ warning(header: string, message: string, delay?: number): void;
22
24
  /**
23
25
  * Adds danger notification
24
- * @param message text displayed in the notification
26
+ * @param header text displayed in the notification header
27
+ * @param message text displayed in the notification message
25
28
  * @param delay time in ms after notification will be destroyed
26
29
  */
27
- danger(message: string, delay?: number): void;
30
+ danger(header: string, message: string, delay?: number): void;
28
31
  /**
29
32
  * Removes notification immediately
30
33
  * @param id id of the notification to be removed
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "suis",
3
- "version": "0.32.3",
3
+ "version": "0.33.0",
4
4
  "main": "src/index.ts",
5
5
  "author": "Karol Jaskółka",
6
6
  "description": "Angular 16+ Component Library",