suis 0.30.1 → 0.31.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (87) hide show
  1. package/README.md +4 -1
  2. package/esm2022/lib/components/index.mjs +3 -1
  3. package/esm2022/lib/components/suis-accordion/suis-accordion.component.mjs +7 -9
  4. package/esm2022/lib/components/suis-alert/suis-alert.component.mjs +7 -9
  5. package/esm2022/lib/components/suis-box/suis-box.component.mjs +5 -6
  6. package/esm2022/lib/components/suis-breadcrumbs/suis-breadcrumbs.component.mjs +8 -10
  7. package/esm2022/lib/components/suis-button/suis-button.component.mjs +7 -9
  8. package/esm2022/lib/components/suis-button-link/suis-button-link.component.mjs +8 -10
  9. package/esm2022/lib/components/suis-button-outlined/suis-button-outlined.component.mjs +7 -9
  10. package/esm2022/lib/components/suis-chip/suis-chip.component.mjs +7 -9
  11. package/esm2022/lib/components/suis-container/suis-container.component.mjs +6 -8
  12. package/esm2022/lib/components/suis-dialog/index.mjs +2 -0
  13. package/esm2022/lib/components/suis-dialog/suis-dialog.component.mjs +62 -0
  14. package/esm2022/lib/components/suis-dialog-container/index.mjs +3 -0
  15. package/esm2022/lib/components/suis-dialog-container/suis-dialog-container.component.mjs +17 -0
  16. package/esm2022/lib/components/suis-dialog-container/suis-dialog-container.interfaces.mjs +2 -0
  17. package/esm2022/lib/components/suis-form-field/suis-form-field.component.mjs +7 -9
  18. package/esm2022/lib/components/suis-icon/suis-icon-type.pipe.mjs +5 -6
  19. package/esm2022/lib/components/suis-icon/suis-icon.component.mjs +7 -9
  20. package/esm2022/lib/components/suis-input/suis-input.component.mjs +7 -9
  21. package/esm2022/lib/components/suis-input-checkbox/suis-input-checkbox.component.mjs +8 -10
  22. package/esm2022/lib/components/suis-input-chips/suis-input-chips.component.mjs +10 -11
  23. package/esm2022/lib/components/suis-input-image/suis-input-image.component.mjs +8 -10
  24. package/esm2022/lib/components/suis-input-number/suis-input-number.component.mjs +7 -9
  25. package/esm2022/lib/components/suis-input-radio/suis-input-radio.component.mjs +7 -9
  26. package/esm2022/lib/components/suis-item/suis-item.component.mjs +6 -8
  27. package/esm2022/lib/components/suis-label/suis-label.component.mjs +7 -9
  28. package/esm2022/lib/components/suis-navigation/suis-navigation.component.mjs +7 -9
  29. package/esm2022/lib/components/suis-navigation/suis-navigation.module.mjs +6 -7
  30. package/esm2022/lib/components/suis-navigation-group/suis-navigation-group.component.mjs +8 -9
  31. package/esm2022/lib/components/suis-navigation-group-item/suis-navigation-group-item.component.mjs +8 -10
  32. package/esm2022/lib/components/suis-navigation-item/suis-navigation-item.component.mjs +8 -10
  33. package/esm2022/lib/components/suis-navigation-item/suis-navigation-item.directive.mjs +5 -6
  34. package/esm2022/lib/components/suis-notification/suis-notification.component.mjs +7 -9
  35. package/esm2022/lib/components/suis-notifications/suis-notifications.component.mjs +7 -9
  36. package/esm2022/lib/components/suis-pagination/suis-pagination-items.pipe.mjs +5 -6
  37. package/esm2022/lib/components/suis-pagination/suis-pagination-page.pipe.mjs +5 -6
  38. package/esm2022/lib/components/suis-pagination/suis-pagination-per-page-options.pipe.mjs +5 -6
  39. package/esm2022/lib/components/suis-pagination/suis-pagination.component.mjs +5 -8
  40. package/esm2022/lib/components/suis-progress-bar/suis-progress-bar.component.mjs +7 -9
  41. package/esm2022/lib/components/suis-progress-bar/suis-progress-bar.pipe.mjs +5 -6
  42. package/esm2022/lib/components/suis-select/suis-select-is-selected.pipe.mjs +5 -6
  43. package/esm2022/lib/components/suis-select/suis-select-label.pipe.mjs +5 -6
  44. package/esm2022/lib/components/suis-select/suis-select.component.mjs +11 -12
  45. package/esm2022/lib/components/suis-select/suis-select.module.mjs +6 -7
  46. package/esm2022/lib/components/suis-select-multi/suis-select-multi-chips.pipe.mjs +5 -6
  47. package/esm2022/lib/components/suis-select-multi/suis-select-multi-is-selected.pipe.mjs +5 -6
  48. package/esm2022/lib/components/suis-select-multi/suis-select-multi.component.mjs +11 -12
  49. package/esm2022/lib/components/suis-select-multi/suis-select-multi.module.mjs +6 -7
  50. package/esm2022/lib/components/suis-select-option/suis-select-option.component.mjs +7 -9
  51. package/esm2022/lib/components/suis-select-option/suis-select-option.directive.mjs +5 -6
  52. package/esm2022/lib/components/suis-spinner/suis-spinner.component.mjs +7 -9
  53. package/esm2022/lib/components/suis-spinner-container/suis-spinner-container.component.mjs +6 -8
  54. package/esm2022/lib/components/suis-table/suis-table-cell.directive.mjs +5 -6
  55. package/esm2022/lib/components/suis-table/suis-table-column.directive.mjs +5 -6
  56. package/esm2022/lib/components/suis-table/suis-table.component.mjs +13 -9
  57. package/esm2022/lib/components/suis-table/suis-table.module.mjs +6 -7
  58. package/esm2022/lib/components/suis-tabs/suis-tab-actions.pipe.mjs +5 -6
  59. package/esm2022/lib/components/suis-tabs/suis-tab-template.pipe.mjs +5 -6
  60. package/esm2022/lib/components/suis-tabs/suis-tab.directive.mjs +5 -6
  61. package/esm2022/lib/components/suis-tabs/suis-tabs.component.mjs +7 -9
  62. package/esm2022/lib/components/suis-tabs/suis-tabs.module.mjs +6 -7
  63. package/esm2022/lib/components/suis-text-area/suis-text-area.component.mjs +7 -9
  64. package/esm2022/lib/components/suis-title/suis-title.component.mjs +6 -8
  65. package/esm2022/lib/components/suis-toggle/suis-toggle.component.mjs +7 -9
  66. package/esm2022/lib/components/suis-toolbar/suis-toolbar.component.mjs +6 -8
  67. package/esm2022/lib/pipes/suis-ng-class.pipe.mjs +5 -6
  68. package/esm2022/lib/services/index.mjs +2 -1
  69. package/esm2022/lib/services/suis-dialog.service.mjs +36 -0
  70. package/esm2022/lib/services/suis-notification.service.mjs +5 -6
  71. package/esm2022/lib/shared/classes/suis-button.base.mjs +5 -6
  72. package/esm2022/lib/shared/classes/suis-checkbox.base.mjs +5 -6
  73. package/esm2022/lib/shared/classes/suis-input.base.mjs +5 -6
  74. package/esm2022/lib/shared/classes/suis-select.base.mjs +5 -6
  75. package/esm2022/lib/shared/pipes/suis-select-filter-options.pipe.mjs +5 -6
  76. package/esm2022/lib/shared/pipes/suis-select-sort-options.pipe.mjs +5 -6
  77. package/fesm2022/suis.mjs +444 -334
  78. package/fesm2022/suis.mjs.map +1 -1
  79. package/lib/components/index.d.ts +2 -0
  80. package/lib/components/suis-dialog/index.d.ts +1 -0
  81. package/lib/components/suis-dialog/suis-dialog.component.d.ts +30 -0
  82. package/lib/components/suis-dialog-container/index.d.ts +2 -0
  83. package/lib/components/suis-dialog-container/suis-dialog-container.component.d.ts +9 -0
  84. package/lib/components/suis-dialog-container/suis-dialog-container.interfaces.d.ts +7 -0
  85. package/lib/services/index.d.ts +1 -0
  86. package/lib/services/suis-dialog.service.d.ts +24 -0
  87. package/package.json +5 -5
@@ -7,6 +7,8 @@ export * from './suis-button-link';
7
7
  export * from './suis-button-outlined';
8
8
  export * from './suis-chip';
9
9
  export * from './suis-container';
10
+ export * from './suis-dialog';
11
+ export * from './suis-dialog-container';
10
12
  export * from './suis-form-field';
11
13
  export * from './suis-icon';
12
14
  export * from './suis-input';
@@ -0,0 +1 @@
1
+ export * from './suis-dialog.component';
@@ -0,0 +1,30 @@
1
+ import { EventEmitter } from '@angular/core';
2
+ import { SuisSize } from '../../types/suis-size.type';
3
+ import * as i0 from "@angular/core";
4
+ export declare class SuisDialogComponent {
5
+ private readonly suisDialogService;
6
+ /**
7
+ * Sets width size of the dialog. Type of SuisSize. By default set to 'md'.
8
+ */
9
+ size: SuisSize;
10
+ /**
11
+ * Displays the cancel button in the actions footer of the dialog. By default set to true.
12
+ */
13
+ cancelButton: boolean;
14
+ /**
15
+ * Displays the confirm button in the actions footer of the dialog. By default set to true.
16
+ */
17
+ confirmButton: boolean;
18
+ /**
19
+ * Emits on confirm button clicked.
20
+ */
21
+ confirmed: EventEmitter<void>;
22
+ /**
23
+ * Emits on cancel button or cross icon clicked.
24
+ */
25
+ cancelled: EventEmitter<void>;
26
+ onConfirm(): void;
27
+ onCancel(): void;
28
+ static ɵfac: i0.ɵɵFactoryDeclaration<SuisDialogComponent, never>;
29
+ static ɵcmp: i0.ɵɵComponentDeclaration<SuisDialogComponent, "suis-dialog", never, { "size": { "alias": "size"; "required": false; }; "cancelButton": { "alias": "cancelButton"; "required": false; }; "confirmButton": { "alias": "confirmButton"; "required": false; }; }, { "confirmed": "confirmed"; "cancelled": "cancelled"; }, never, ["[suisDialogHeader]", "[suisDialogContent]"], true, never>;
30
+ }
@@ -0,0 +1,2 @@
1
+ export * from './suis-dialog-container.component';
2
+ export * from './suis-dialog-container.interfaces';
@@ -0,0 +1,9 @@
1
+ import { Signal } from '@angular/core';
2
+ import { SuisDialog } from './suis-dialog-container.interfaces';
3
+ import * as i0 from "@angular/core";
4
+ export declare class SuisDialogContainerComponent {
5
+ private readonly suisDialogService;
6
+ dialog: Signal<SuisDialog | null>;
7
+ static ɵfac: i0.ɵɵFactoryDeclaration<SuisDialogContainerComponent, never>;
8
+ static ɵcmp: i0.ɵɵComponentDeclaration<SuisDialogContainerComponent, "suis-dialog-container", never, {}, {}, never, never, true, never>;
9
+ }
@@ -0,0 +1,7 @@
1
+ import { Type } from '@angular/core';
2
+ export interface SuisDialog {
3
+ component: Type<any>;
4
+ inputs: {
5
+ [key: string]: any;
6
+ };
7
+ }
@@ -1 +1,2 @@
1
+ export * from './suis-dialog.service';
1
2
  export * from './suis-notification.service';
@@ -0,0 +1,24 @@
1
+ import { Signal, Type } from '@angular/core';
2
+ import { SuisDialog } from '../components/suis-dialog-container/suis-dialog-container.interfaces';
3
+ import * as i0 from "@angular/core";
4
+ export declare class SuisDialogService {
5
+ private dialog;
6
+ /**
7
+ * @returns current displayed dialog or null.
8
+ */
9
+ getDialog(): Signal<SuisDialog | null>;
10
+ /**
11
+ * Opens dialog component in suis-dialog-container and add suis-dialog class to body.
12
+ * @param component - dialog component
13
+ * @param inputs - inputs passed to dialog component
14
+ */
15
+ open(component: Type<any>, inputs: {
16
+ [key: string]: any;
17
+ }): void;
18
+ /**
19
+ * Removes displayed dialog and suis-dialog class from body.
20
+ */
21
+ close(): void;
22
+ static ɵfac: i0.ɵɵFactoryDeclaration<SuisDialogService, never>;
23
+ static ɵprov: i0.ɵɵInjectableDeclaration<SuisDialogService>;
24
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "suis",
3
- "version": "0.30.1",
3
+ "version": "0.31.1",
4
4
  "main": "src/index.ts",
5
5
  "author": "Karol Jaskółka",
6
6
  "description": "Angular 16+ Component Library",
@@ -12,10 +12,10 @@
12
12
  "dashboard"
13
13
  ],
14
14
  "peerDependencies": {
15
- "@angular/common": ">=16.0.0",
16
- "@angular/core": ">=16.0.0",
17
- "@angular/forms": ">=16.0.0",
18
- "@angular/router": ">=16.0.0"
15
+ "@angular/common": ">=16.2.0",
16
+ "@angular/core": ">=16.2.0",
17
+ "@angular/forms": ">=16.2.0",
18
+ "@angular/router": ">=16.2.0"
19
19
  },
20
20
  "dependencies": {
21
21
  "tslib": ">=2.3.0"