suis 0.20.0 → 0.21.1
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +1 -0
- package/esm2022/lib/components/index.mjs +2 -1
- package/esm2022/lib/components/suis-button/suis-button.component.mjs +11 -7
- package/esm2022/lib/components/suis-icon/suis-icon-type.pipe.mjs +3 -1
- package/esm2022/lib/components/suis-icon/suis-icon.enums.mjs +3 -1
- package/esm2022/lib/components/suis-pagination/index.mjs +2 -0
- package/esm2022/lib/components/suis-pagination/suis-pagination-page.pipe.mjs +23 -0
- package/esm2022/lib/components/suis-pagination/suis-pagination.component.mjs +83 -0
- package/esm2022/lib/components/suis-table/suis-table.component.mjs +3 -3
- package/esm2022/lib/shared/classes/suis-button.base.mjs +8 -2
- package/fesm2022/suis.mjs +120 -10
- package/fesm2022/suis.mjs.map +1 -1
- package/lib/components/index.d.ts +1 -0
- package/lib/components/suis-icon/suis-icon.enums.d.ts +3 -1
- package/lib/components/suis-pagination/index.d.ts +1 -0
- package/lib/components/suis-pagination/suis-pagination-page.pipe.d.ts +7 -0
- package/lib/components/suis-pagination/suis-pagination.component.d.ts +41 -0
- package/lib/shared/classes/suis-button.base.d.ts +5 -1
- package/package.json +4 -4
@@ -16,6 +16,7 @@ export * from './suis-navigation-group-item';
|
|
16
16
|
export * from './suis-navigation-item';
|
17
17
|
export * from './suis-notification';
|
18
18
|
export * from './suis-notifications';
|
19
|
+
export * from './suis-pagination';
|
19
20
|
export * from './suis-progress-bar';
|
20
21
|
export * from './suis-select';
|
21
22
|
export * from './suis-select-option';
|
@@ -10,5 +10,7 @@ export declare enum SuisIconType {
|
|
10
10
|
ARROW_RIGHT = "arrow-right",
|
11
11
|
ARROW_DOWN = "arrow-down",
|
12
12
|
CHEVRON_UP = "chevron-up",
|
13
|
-
CHEVRON_DOWN = "chevron-down"
|
13
|
+
CHEVRON_DOWN = "chevron-down",
|
14
|
+
CHEVRON_LEFT = "chevron-left",
|
15
|
+
CHEVRON_RIGHT = "chevron-right"
|
14
16
|
}
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from './suis-pagination.component';
|
@@ -0,0 +1,7 @@
|
|
1
|
+
import { PipeTransform } from '@angular/core';
|
2
|
+
import * as i0 from "@angular/core";
|
3
|
+
export declare class SuisPaginationPagePipe implements PipeTransform {
|
4
|
+
transform(pageLabel: string, page: number, perPage: number, totalItems: number): string;
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SuisPaginationPagePipe, never>;
|
6
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<SuisPaginationPagePipe, "suisPaginationPage", true>;
|
7
|
+
}
|
@@ -0,0 +1,41 @@
|
|
1
|
+
import { EventEmitter, OnChanges, SimpleChanges } from '@angular/core';
|
2
|
+
import { SuisIconType } from '../suis-icon';
|
3
|
+
import * as i0 from "@angular/core";
|
4
|
+
export declare class SuisPaginationComponent implements OnChanges {
|
5
|
+
/** @internal */
|
6
|
+
SuisIconType: typeof SuisIconType;
|
7
|
+
/** @internal */
|
8
|
+
/**
|
9
|
+
* Number of the maximum page that can be reached based on totalItems and perPage values.
|
10
|
+
*/
|
11
|
+
maxPage: number;
|
12
|
+
/**
|
13
|
+
* Number of the page presented. By default set to 1.
|
14
|
+
*/
|
15
|
+
page: number;
|
16
|
+
/**
|
17
|
+
* Number of items presented per page. By default set to 15.
|
18
|
+
*/
|
19
|
+
perPage: number;
|
20
|
+
/**
|
21
|
+
* Number of total items in data source. By default set to 0.
|
22
|
+
*/
|
23
|
+
totalItems: number;
|
24
|
+
/**
|
25
|
+
* Adds margin top above the pagination. By default set to true.
|
26
|
+
*/
|
27
|
+
spacing: boolean;
|
28
|
+
/**
|
29
|
+
* Sets the page label between the buttons. By default set to 'Page'.
|
30
|
+
*/
|
31
|
+
pageLabel: string;
|
32
|
+
/**
|
33
|
+
* Emits on page value change.
|
34
|
+
*/
|
35
|
+
pageChange: EventEmitter<number>;
|
36
|
+
ngOnChanges(changes: SimpleChanges): void;
|
37
|
+
next(): void;
|
38
|
+
previous(): void;
|
39
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SuisPaginationComponent, never>;
|
40
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SuisPaginationComponent, "suis-pagination", never, { "page": { "alias": "page"; "required": false; }; "perPage": { "alias": "perPage"; "required": false; }; "totalItems": { "alias": "totalItems"; "required": false; }; "spacing": { "alias": "spacing"; "required": false; }; "pageLabel": { "alias": "pageLabel"; "required": false; }; }, { "pageChange": "pageChange"; }, never, never, true, never>;
|
41
|
+
}
|
@@ -18,6 +18,10 @@ export declare abstract class SuisButtonBase {
|
|
18
18
|
* Shows loading spinner instead of content projection. By default set to false.
|
19
19
|
*/
|
20
20
|
loading: boolean;
|
21
|
+
/**
|
22
|
+
* Sets width to fit-content instead of 100%. By default set to false.
|
23
|
+
*/
|
24
|
+
fitContent: boolean;
|
21
25
|
static ɵfac: i0.ɵɵFactoryDeclaration<SuisButtonBase, never>;
|
22
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<SuisButtonBase, never, never, { "color": { "alias": "color"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; }, {}, never, never, false, never>;
|
26
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<SuisButtonBase, never, never, { "color": { "alias": "color"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "fitContent": { "alias": "fitContent"; "required": false; }; }, {}, never, never, false, never>;
|
23
27
|
}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "suis",
|
3
|
-
"version": "0.
|
3
|
+
"version": "0.21.1",
|
4
4
|
"main": "src/index.ts",
|
5
5
|
"author": "Karol Jaskółka",
|
6
6
|
"description": "SUIS (Standalone UI + Signals) Angular 16+ Component Library",
|
@@ -14,8 +14,8 @@
|
|
14
14
|
"peerDependencies": {
|
15
15
|
"@angular/common": ">=16.0.0",
|
16
16
|
"@angular/core": ">=16.0.0",
|
17
|
-
"@angular/
|
18
|
-
"@angular/
|
17
|
+
"@angular/forms": ">=16.0.0",
|
18
|
+
"@angular/router": ">=16.0.0"
|
19
19
|
},
|
20
20
|
"dependencies": {
|
21
21
|
"tslib": ">=2.3.0"
|
@@ -34,4 +34,4 @@
|
|
34
34
|
"default": "./fesm2022/suis.mjs"
|
35
35
|
}
|
36
36
|
}
|
37
|
-
}
|
37
|
+
}
|