suis 0.22.0 → 0.23.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 +3 -3
- package/esm2022/lib/components/suis-button-link/index.mjs +2 -0
- package/esm2022/lib/components/suis-button-link/suis-button-link.component.mjs +39 -0
- package/esm2022/lib/components/suis-button-outlined/suis-button-outlined.component.mjs +3 -3
- package/esm2022/lib/components/suis-table/suis-table.component.mjs +9 -3
- package/esm2022/lib/shared/classes/suis-button.base.mjs +19 -7
- package/fesm2022/suis.mjs +60 -13
- package/fesm2022/suis.mjs.map +1 -1
- package/lib/components/index.d.ts +1 -0
- package/lib/components/suis-button-link/index.d.ts +1 -0
- package/lib/components/suis-button-link/suis-button-link.component.d.ts +28 -0
- package/lib/components/suis-table/suis-table.component.d.ts +5 -1
- package/lib/shared/classes/suis-button.base.d.ts +11 -6
- package/package.json +1 -1
@@ -2,6 +2,7 @@ export * from './suis-alert';
|
|
2
2
|
export * from './suis-box';
|
3
3
|
export * from './suis-breadcrumbs';
|
4
4
|
export * from './suis-button';
|
5
|
+
export * from './suis-button-link';
|
5
6
|
export * from './suis-button-outlined';
|
6
7
|
export * from './suis-chip';
|
7
8
|
export * from './suis-container';
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from './suis-button-link.component';
|
@@ -0,0 +1,28 @@
|
|
1
|
+
import { SuisButtonBase } from '../../shared/classes/suis-button.base';
|
2
|
+
import { ActivatedRoute, Params, QueryParamsHandling } from '@angular/router';
|
3
|
+
import * as i0 from "@angular/core";
|
4
|
+
export declare class SuisButtonLinkComponent extends SuisButtonBase {
|
5
|
+
/**
|
6
|
+
* Sets routerLink of the anchor tag. No default value.
|
7
|
+
*/
|
8
|
+
routerLink?: string | any[];
|
9
|
+
/**
|
10
|
+
* Sets target of the anchor tag. No default value.
|
11
|
+
*/
|
12
|
+
target?: string;
|
13
|
+
/**
|
14
|
+
* Sets queryParams of the anchor tag. No default value.
|
15
|
+
*/
|
16
|
+
queryParams?: Params;
|
17
|
+
/**
|
18
|
+
* Sets queryParamsHandling of the anchor tag. No default value.
|
19
|
+
*/
|
20
|
+
queryParamsHandling?: QueryParamsHandling;
|
21
|
+
/**
|
22
|
+
* Sets relativeTo of the anchor tag. No default value.
|
23
|
+
*/
|
24
|
+
relativeTo?: ActivatedRoute;
|
25
|
+
onClick(event: Event): void;
|
26
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SuisButtonLinkComponent, never>;
|
27
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SuisButtonLinkComponent, "suis-button-link", never, { "routerLink": { "alias": "routerLink"; "required": true; }; "target": { "alias": "target"; "required": false; }; "queryParams": { "alias": "queryParams"; "required": false; }; "queryParamsHandling": { "alias": "queryParamsHandling"; "required": false; }; "relativeTo": { "alias": "relativeTo"; "required": false; }; }, {}, never, ["*"], true, never>;
|
28
|
+
}
|
@@ -24,6 +24,10 @@ export declare class SuisTableComponent {
|
|
24
24
|
* Shows loading spinner and blurs data. By default set to false.
|
25
25
|
*/
|
26
26
|
loading: boolean;
|
27
|
+
/**
|
28
|
+
* Message shown in table when there is no data to display.
|
29
|
+
*/
|
30
|
+
emptyMessage: string;
|
27
31
|
/**
|
28
32
|
* Emits value on sort condition change.
|
29
33
|
*/
|
@@ -34,5 +38,5 @@ export declare class SuisTableComponent {
|
|
34
38
|
orderByChange: EventEmitter<string>;
|
35
39
|
onColumnClick(property: string): void;
|
36
40
|
static ɵfac: i0.ɵɵFactoryDeclaration<SuisTableComponent, never>;
|
37
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SuisTableComponent, "suis-table", never, { "data": { "alias": "data"; "required": true; }; "orderBy": { "alias": "orderBy"; "required": false; }; "sortBy": { "alias": "sortBy"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; }, { "sortByChange": "sortByChange"; "orderByChange": "orderByChange"; }, ["columns"], never, true, never>;
|
41
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SuisTableComponent, "suis-table", never, { "data": { "alias": "data"; "required": true; }; "orderBy": { "alias": "orderBy"; "required": false; }; "sortBy": { "alias": "sortBy"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "emptyMessage": { "alias": "emptyMessage"; "required": false; }; }, { "sortByChange": "sortByChange"; "orderByChange": "orderByChange"; }, ["columns"], never, true, never>;
|
38
42
|
}
|
@@ -1,11 +1,7 @@
|
|
1
|
-
import {
|
1
|
+
import { EventEmitter } from '@angular/core';
|
2
2
|
import { SuisInfoColor, SuisPalleteColor } from '../../types/suis-color.type';
|
3
3
|
import * as i0 from "@angular/core";
|
4
4
|
export declare abstract class SuisButtonBase {
|
5
|
-
/** @internal */
|
6
|
-
protected readonly elementRef: ElementRef<any>;
|
7
|
-
/** @internal */
|
8
|
-
protected readonly renderer2: Renderer2;
|
9
5
|
/**
|
10
6
|
* Sets button's color theme. Type of SuisPalleteColor | SuisInfoColor. By default set to 'primary'.
|
11
7
|
*/
|
@@ -14,6 +10,10 @@ export declare abstract class SuisButtonBase {
|
|
14
10
|
* Sets button's disabled attribute. By default set to false.
|
15
11
|
*/
|
16
12
|
disabled: boolean;
|
13
|
+
/**
|
14
|
+
* Sets button's type attribute. By default set to 'button'.
|
15
|
+
*/
|
16
|
+
type: string;
|
17
17
|
/**
|
18
18
|
* Shows loading spinner instead of content projection. By default set to false.
|
19
19
|
*/
|
@@ -22,6 +22,11 @@ export declare abstract class SuisButtonBase {
|
|
22
22
|
* Sets width to 100% instead of fit-content. By default set to false.
|
23
23
|
*/
|
24
24
|
fullWidth: boolean;
|
25
|
+
/**
|
26
|
+
* Emits on button click event.
|
27
|
+
*/
|
28
|
+
clicked: EventEmitter<void>;
|
29
|
+
onClick(event?: Event): void;
|
25
30
|
static ɵfac: i0.ɵɵFactoryDeclaration<SuisButtonBase, never>;
|
26
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<SuisButtonBase, never, never, { "color": { "alias": "color"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "fullWidth": { "alias": "fullWidth"; "required": false; }; }, {}, never, never, false, never>;
|
31
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<SuisButtonBase, never, never, { "color": { "alias": "color"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "type": { "alias": "type"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "fullWidth": { "alias": "fullWidth"; "required": false; }; }, { "clicked": "clicked"; }, never, never, false, never>;
|
27
32
|
}
|