suis 0.32.4 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (30) hide show
  1. package/README.md +4 -63
  2. package/esm2022/lib/components/suis-alert/suis-alert.component.mjs +3 -3
  3. package/esm2022/lib/components/suis-button/suis-button.component.mjs +3 -3
  4. package/esm2022/lib/components/suis-button-link/suis-button-link.component.mjs +3 -3
  5. package/esm2022/lib/components/suis-button-outlined/suis-button-outlined.component.mjs +3 -3
  6. package/esm2022/lib/components/suis-chip/suis-chip.component.mjs +3 -3
  7. package/esm2022/lib/components/suis-dialog/suis-dialog.component.mjs +3 -3
  8. package/esm2022/lib/components/suis-icon/suis-icon-type.pipe.mjs +4 -4
  9. package/esm2022/lib/components/suis-icon/suis-icon.component.mjs +5 -5
  10. package/esm2022/lib/components/suis-icon/suis-icon.types.mjs +1 -1
  11. package/esm2022/lib/components/suis-input-checkbox/suis-input-checkbox.component.mjs +3 -3
  12. package/esm2022/lib/components/suis-input-image/suis-input-image.component.mjs +3 -3
  13. package/esm2022/lib/components/suis-navigation/suis-navigation.component.mjs +5 -5
  14. package/esm2022/lib/components/suis-notification/suis-notification.component.mjs +8 -3
  15. package/esm2022/lib/components/suis-notification/suis-notification.interfaces.mjs +1 -1
  16. package/esm2022/lib/components/suis-pagination/suis-pagination.component.mjs +4 -4
  17. package/esm2022/lib/components/suis-select/suis-select.component.mjs +3 -3
  18. package/esm2022/lib/components/suis-select-multi/suis-select-multi.component.mjs +3 -3
  19. package/esm2022/lib/components/suis-select-option/suis-select-option.component.mjs +3 -3
  20. package/esm2022/lib/services/suis-notification.service.mjs +15 -11
  21. package/fesm2022/suis.mjs +57 -48
  22. package/fesm2022/suis.mjs.map +1 -1
  23. package/lib/components/suis-icon/suis-icon.component.d.ts +1 -1
  24. package/lib/components/suis-icon/suis-icon.types.d.ts +1 -1
  25. package/lib/components/suis-navigation/suis-navigation.component.d.ts +2 -2
  26. package/lib/components/suis-notification/suis-notification.component.d.ts +1 -1
  27. package/lib/components/suis-notification/suis-notification.interfaces.d.ts +1 -0
  28. package/lib/components/suis-pagination/suis-pagination.component.d.ts +3 -3
  29. package/lib/services/suis-notification.service.d.ts +9 -6
  30. package/package.json +7 -1
@@ -12,7 +12,7 @@ export declare class SuisIconComponent {
12
12
  */
13
13
  color: SuisColor;
14
14
  /**
15
- * Sets the HTML Entity displayed in content. Type of SuisIconType. By default set to 'info'.
15
+ * Sets the HTML Entity displayed in content. Type of SuisIconType. By default set to 'question'.
16
16
  */
17
17
  type: SuisIconType;
18
18
  /**
@@ -1 +1 @@
1
- export type SuisIconType = 'info' | 'warning' | 'check' | 'cross' | 'plus' | 'minus' | 'arrow-up' | 'arrow-down' | 'arrow-left' | 'arrow-right' | 'chevron-up' | 'chevron-down' | 'chevron-left' | 'chevron-right';
1
+ export type SuisIconType = 'question' | 'exclamation' | 'check' | 'times' | 'plus' | 'minus' | 'arrow-up' | 'arrow-down' | 'arrow-left' | 'arrow-right' | 'chevron-up' | 'chevron-down' | 'chevron-left' | 'chevron-right';
@@ -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
  /**
@@ -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,9 +1,15 @@
1
1
  {
2
2
  "name": "suis",
3
- "version": "0.32.4",
3
+ "version": "1.0.0",
4
4
  "main": "src/index.ts",
5
5
  "author": "Karol Jaskółka",
6
6
  "description": "Angular 16+ Component Library",
7
+ "homepage": "https://suis-docs.vercel.app/",
8
+ "bugs": "https://github.com/karoljaskolka/suis/issues",
9
+ "repository": {
10
+ "type": "git",
11
+ "url": "https://github.com/karoljaskolka/suis.git"
12
+ },
7
13
  "keywords": [
8
14
  "angular",
9
15
  "standalone",