suis 0.30.1 → 0.31.0
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +4 -1
- package/esm2022/lib/components/index.mjs +3 -1
- package/esm2022/lib/components/suis-accordion/suis-accordion.component.mjs +5 -6
- package/esm2022/lib/components/suis-alert/suis-alert.component.mjs +5 -6
- package/esm2022/lib/components/suis-box/suis-box.component.mjs +5 -6
- package/esm2022/lib/components/suis-breadcrumbs/suis-breadcrumbs.component.mjs +5 -6
- package/esm2022/lib/components/suis-button/suis-button.component.mjs +5 -6
- package/esm2022/lib/components/suis-button-link/suis-button-link.component.mjs +5 -6
- package/esm2022/lib/components/suis-button-outlined/suis-button-outlined.component.mjs +5 -6
- package/esm2022/lib/components/suis-chip/suis-chip.component.mjs +5 -6
- package/esm2022/lib/components/suis-container/suis-container.component.mjs +5 -6
- package/esm2022/lib/components/suis-dialog/index.mjs +2 -0
- package/esm2022/lib/components/suis-dialog/suis-dialog.component.mjs +63 -0
- package/esm2022/lib/components/suis-dialog-container/index.mjs +3 -0
- package/esm2022/lib/components/suis-dialog-container/suis-dialog-container.component.mjs +18 -0
- package/esm2022/lib/components/suis-dialog-container/suis-dialog-container.interfaces.mjs +2 -0
- package/esm2022/lib/components/suis-form-field/suis-form-field.component.mjs +5 -6
- package/esm2022/lib/components/suis-icon/suis-icon-type.pipe.mjs +5 -6
- package/esm2022/lib/components/suis-icon/suis-icon.component.mjs +5 -6
- package/esm2022/lib/components/suis-input/suis-input.component.mjs +5 -6
- package/esm2022/lib/components/suis-input-checkbox/suis-input-checkbox.component.mjs +5 -6
- package/esm2022/lib/components/suis-input-chips/suis-input-chips.component.mjs +5 -6
- package/esm2022/lib/components/suis-input-image/suis-input-image.component.mjs +5 -6
- package/esm2022/lib/components/suis-input-number/suis-input-number.component.mjs +5 -6
- package/esm2022/lib/components/suis-input-radio/suis-input-radio.component.mjs +5 -6
- package/esm2022/lib/components/suis-item/suis-item.component.mjs +5 -6
- package/esm2022/lib/components/suis-label/suis-label.component.mjs +5 -6
- package/esm2022/lib/components/suis-navigation/suis-navigation.component.mjs +6 -7
- package/esm2022/lib/components/suis-navigation/suis-navigation.module.mjs +6 -7
- package/esm2022/lib/components/suis-navigation-group/suis-navigation-group.component.mjs +5 -6
- package/esm2022/lib/components/suis-navigation-group-item/suis-navigation-group-item.component.mjs +5 -6
- package/esm2022/lib/components/suis-navigation-item/suis-navigation-item.component.mjs +5 -6
- package/esm2022/lib/components/suis-navigation-item/suis-navigation-item.directive.mjs +5 -6
- package/esm2022/lib/components/suis-notification/suis-notification.component.mjs +5 -6
- package/esm2022/lib/components/suis-notifications/suis-notifications.component.mjs +5 -6
- package/esm2022/lib/components/suis-pagination/suis-pagination-items.pipe.mjs +5 -6
- package/esm2022/lib/components/suis-pagination/suis-pagination-page.pipe.mjs +5 -6
- package/esm2022/lib/components/suis-pagination/suis-pagination-per-page-options.pipe.mjs +5 -6
- package/esm2022/lib/components/suis-pagination/suis-pagination.component.mjs +5 -6
- package/esm2022/lib/components/suis-progress-bar/suis-progress-bar.component.mjs +5 -6
- package/esm2022/lib/components/suis-progress-bar/suis-progress-bar.pipe.mjs +5 -6
- package/esm2022/lib/components/suis-select/suis-select-is-selected.pipe.mjs +5 -6
- package/esm2022/lib/components/suis-select/suis-select-label.pipe.mjs +5 -6
- package/esm2022/lib/components/suis-select/suis-select.component.mjs +7 -8
- package/esm2022/lib/components/suis-select/suis-select.module.mjs +6 -7
- package/esm2022/lib/components/suis-select-multi/suis-select-multi-chips.pipe.mjs +5 -6
- package/esm2022/lib/components/suis-select-multi/suis-select-multi-is-selected.pipe.mjs +5 -6
- package/esm2022/lib/components/suis-select-multi/suis-select-multi.component.mjs +7 -8
- package/esm2022/lib/components/suis-select-multi/suis-select-multi.module.mjs +6 -7
- package/esm2022/lib/components/suis-select-option/suis-select-option.component.mjs +5 -6
- package/esm2022/lib/components/suis-select-option/suis-select-option.directive.mjs +5 -6
- package/esm2022/lib/components/suis-spinner/suis-spinner.component.mjs +5 -6
- package/esm2022/lib/components/suis-spinner-container/suis-spinner-container.component.mjs +5 -6
- package/esm2022/lib/components/suis-table/suis-table-cell.directive.mjs +5 -6
- package/esm2022/lib/components/suis-table/suis-table-column.directive.mjs +5 -6
- package/esm2022/lib/components/suis-table/suis-table.component.mjs +5 -6
- package/esm2022/lib/components/suis-table/suis-table.module.mjs +6 -7
- package/esm2022/lib/components/suis-tabs/suis-tab-actions.pipe.mjs +5 -6
- package/esm2022/lib/components/suis-tabs/suis-tab-template.pipe.mjs +5 -6
- package/esm2022/lib/components/suis-tabs/suis-tab.directive.mjs +5 -6
- package/esm2022/lib/components/suis-tabs/suis-tabs.component.mjs +5 -6
- package/esm2022/lib/components/suis-tabs/suis-tabs.module.mjs +6 -7
- package/esm2022/lib/components/suis-text-area/suis-text-area.component.mjs +5 -6
- package/esm2022/lib/components/suis-title/suis-title.component.mjs +5 -6
- package/esm2022/lib/components/suis-toggle/suis-toggle.component.mjs +5 -6
- package/esm2022/lib/components/suis-toolbar/suis-toolbar.component.mjs +5 -6
- package/esm2022/lib/pipes/suis-ng-class.pipe.mjs +5 -6
- package/esm2022/lib/services/index.mjs +2 -1
- package/esm2022/lib/services/suis-dialog.service.mjs +36 -0
- package/esm2022/lib/services/suis-notification.service.mjs +5 -6
- package/esm2022/lib/shared/classes/suis-button.base.mjs +5 -6
- package/esm2022/lib/shared/classes/suis-checkbox.base.mjs +5 -6
- package/esm2022/lib/shared/classes/suis-input.base.mjs +5 -6
- package/esm2022/lib/shared/classes/suis-select.base.mjs +5 -6
- package/esm2022/lib/shared/pipes/suis-select-filter-options.pipe.mjs +5 -6
- package/esm2022/lib/shared/pipes/suis-select-sort-options.pipe.mjs +5 -6
- package/fesm2022/suis.mjs +388 -286
- package/fesm2022/suis.mjs.map +1 -1
- package/lib/components/index.d.ts +2 -0
- package/lib/components/suis-dialog/index.d.ts +1 -0
- package/lib/components/suis-dialog/suis-dialog.component.d.ts +30 -0
- package/lib/components/suis-dialog-container/index.d.ts +2 -0
- package/lib/components/suis-dialog-container/suis-dialog-container.component.d.ts +9 -0
- package/lib/components/suis-dialog-container/suis-dialog-container.interfaces.d.ts +7 -0
- package/lib/services/index.d.ts +1 -0
- package/lib/services/suis-dialog.service.d.ts +24 -0
- 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,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
|
+
}
|
package/lib/services/index.d.ts
CHANGED
@@ -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.
|
3
|
+
"version": "0.31.0",
|
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.
|
16
|
-
"@angular/core": ">=16.
|
17
|
-
"@angular/forms": ">=16.
|
18
|
-
"@angular/router": ">=16.
|
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"
|