suis 0.21.1 → 0.23.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -2,6 +2,8 @@ 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';
6
+ export * from './suis-button-outlined';
5
7
  export * from './suis-chip';
6
8
  export * from './suis-container';
7
9
  export * from './suis-form-field';
@@ -1,19 +1,6 @@
1
- import { AfterViewInit } from '@angular/core';
2
- import { SuisButtonBase } from '../../shared/classes';
1
+ import { SuisButtonBase } from '../../shared/classes/suis-button.base';
3
2
  import * as i0 from "@angular/core";
4
- export declare class SuisButtonComponent extends SuisButtonBase implements AfterViewInit {
5
- ngAfterViewInit(): void;
3
+ export declare class SuisButtonComponent extends SuisButtonBase {
6
4
  static ɵfac: i0.ɵɵFactoryDeclaration<SuisButtonComponent, never>;
7
- static ɵcmp: i0.ɵɵComponentDeclaration<SuisButtonComponent, "button[suisButton]", never, {}, {}, never, ["*"], true, never>;
8
- }
9
- export declare class SuisButtonOutlinedComponent extends SuisButtonBase implements AfterViewInit {
10
- ngAfterViewInit(): void;
11
- static ɵfac: i0.ɵɵFactoryDeclaration<SuisButtonOutlinedComponent, never>;
12
- static ɵcmp: i0.ɵɵComponentDeclaration<SuisButtonOutlinedComponent, "button[suisButtonOutlined]", never, {}, {}, never, ["*"], true, never>;
13
- }
14
- export declare class SuisAnchorButtonComponent extends SuisButtonBase implements AfterViewInit {
15
- ngAfterViewInit(): void;
16
- onClick(event: Event): void;
17
- static ɵfac: i0.ɵɵFactoryDeclaration<SuisAnchorButtonComponent, never>;
18
- static ɵcmp: i0.ɵɵComponentDeclaration<SuisAnchorButtonComponent, "a[suisButton]", never, {}, {}, never, ["*"], true, never>;
5
+ static ɵcmp: i0.ɵɵComponentDeclaration<SuisButtonComponent, "suis-button", never, {}, {}, never, ["*"], true, never>;
19
6
  }
@@ -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
+ }
@@ -0,0 +1 @@
1
+ export * from './suis-button-outlined.component';
@@ -0,0 +1,6 @@
1
+ import { SuisButtonBase } from '../../shared/classes/suis-button.base';
2
+ import * as i0 from "@angular/core";
3
+ export declare class SuisButtonOutlinedComponent extends SuisButtonBase {
4
+ static ɵfac: i0.ɵɵFactoryDeclaration<SuisButtonOutlinedComponent, never>;
5
+ static ɵcmp: i0.ɵɵComponentDeclaration<SuisButtonOutlinedComponent, "suis-button-outlined", never, {}, {}, never, ["*"], true, never>;
6
+ }
@@ -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 { ElementRef, Renderer2 } from '@angular/core';
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,14 +10,23 @@ 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
  */
20
20
  loading: boolean;
21
21
  /**
22
- * Sets width to fit-content instead of 100%. By default set to false.
22
+ * Sets width to 100% instead of fit-content. By default set to false.
23
+ */
24
+ fullWidth: boolean;
25
+ /**
26
+ * Emits on button click event.
23
27
  */
24
- fitContent: boolean;
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; }; "fitContent": { "alias": "fitContent"; "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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "suis",
3
- "version": "0.21.1",
3
+ "version": "0.23.0",
4
4
  "main": "src/index.ts",
5
5
  "author": "Karol Jaskółka",
6
6
  "description": "SUIS (Standalone UI + Signals) Angular 16+ Component Library",