suis 0.18.1 → 0.20.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -22,3 +22,5 @@ export * from './suis-select-option';
22
22
  export * from './suis-select-multi';
23
23
  export * from './suis-spinner';
24
24
  export * from './suis-spinner-container';
25
+ export * from './suis-table';
26
+ export * from './suis-title';
@@ -0,0 +1,4 @@
1
+ export * from './suis-table.component';
2
+ export * from './suis-table-column.directive';
3
+ export * from './suis-table-cell.directive';
4
+ export * from './suis-table.interfaces';
@@ -0,0 +1,10 @@
1
+ import { TemplateRef } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class SuisTableCellDirective {
4
+ /**
5
+ * Template of the table cell.
6
+ */
7
+ readonly templateRef: TemplateRef<any>;
8
+ static ɵfac: i0.ɵɵFactoryDeclaration<SuisTableCellDirective, never>;
9
+ static ɵdir: i0.ɵɵDirectiveDeclaration<SuisTableCellDirective, "[suisTableCell]", never, {}, {}, never, never, true, never>;
10
+ }
@@ -0,0 +1,14 @@
1
+ import { SuisTableCellDirective } from './suis-table-cell.directive';
2
+ import * as i0 from "@angular/core";
3
+ export declare class SuisTableColumnDirective {
4
+ cell?: SuisTableCellDirective;
5
+ protected _name: string;
6
+ protected _orderProperty: string;
7
+ /** Unique name for this column. */
8
+ get name(): string;
9
+ set name(name: string);
10
+ get orderProperty(): string;
11
+ set orderProperty(orderProperty: string);
12
+ static ɵfac: i0.ɵɵFactoryDeclaration<SuisTableColumnDirective, never>;
13
+ static ɵdir: i0.ɵɵDirectiveDeclaration<SuisTableColumnDirective, "[suisTableColumn]", never, { "name": { "alias": "suisTableColumn"; "required": false; }; "orderProperty": { "alias": "suisTableColumnOrderProperty"; "required": false; }; }, {}, ["cell"], never, true, never>;
14
+ }
@@ -0,0 +1,38 @@
1
+ import { EventEmitter, QueryList } from '@angular/core';
2
+ import { SuisTableDataItem } from './suis-table.interfaces';
3
+ import { SuisTableColumnDirective } from './suis-table-column.directive';
4
+ import { SuisIconType } from '../suis-icon';
5
+ import * as i0 from "@angular/core";
6
+ export declare class SuisTableComponent {
7
+ /** @internal */
8
+ readonly SuisIconType: typeof SuisIconType;
9
+ /** @internal */
10
+ columns?: QueryList<SuisTableColumnDirective>;
11
+ /**
12
+ * Data items collection. Type of SuisTableDataItem[]. By default set to empty array. Required input.
13
+ */
14
+ data: SuisTableDataItem[];
15
+ /**
16
+ * Specifies property that data is ordered. By default set to empty string.
17
+ */
18
+ orderBy: string;
19
+ /**
20
+ * Specifies sort condition. Accepted values - 'asc' and 'desc'. By default set to 'asc'.
21
+ */
22
+ sortBy: 'asc' | 'desc';
23
+ /**
24
+ * Shows loading spinner and blurs data. By default set to false.
25
+ */
26
+ loading: boolean;
27
+ /**
28
+ * Emits value on sort condition change.
29
+ */
30
+ sortByChange: EventEmitter<string>;
31
+ /**
32
+ * Emits value on order property change.
33
+ */
34
+ orderByChange: EventEmitter<string>;
35
+ onColumnClick(property: string): void;
36
+ 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>;
38
+ }
@@ -0,0 +1,3 @@
1
+ export interface SuisTableDataItem {
2
+ [key: string]: any;
3
+ }
@@ -0,0 +1 @@
1
+ export * from './suis-title.component';
@@ -0,0 +1,9 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class SuisTitleComponent {
3
+ /**
4
+ * Adds a bottom margin below the title. By default set to false.
5
+ */
6
+ spacing: boolean;
7
+ static ɵfac: i0.ɵɵFactoryDeclaration<SuisTitleComponent, never>;
8
+ static ɵcmp: i0.ɵɵComponentDeclaration<SuisTitleComponent, "suis-title", never, { "spacing": { "alias": "spacing"; "required": false; }; }, {}, never, ["*"], true, never>;
9
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "suis",
3
- "version": "0.18.1",
3
+ "version": "0.20.0",
4
4
  "main": "src/index.ts",
5
5
  "author": "Karol Jaskółka",
6
6
  "description": "SUIS (Standalone UI + Signals) Angular 16+ Component Library",
@@ -12,13 +12,13 @@
12
12
  "dashboard"
13
13
  ],
14
14
  "peerDependencies": {
15
- "@angular/common": "^16.0.0",
16
- "@angular/core": "^16.0.0",
15
+ "@angular/common": ">=16.0.0",
16
+ "@angular/core": ">=16.0.0",
17
17
  "@angular/router": "16.0.0",
18
18
  "@angular/forms": "16.0.0"
19
19
  },
20
20
  "dependencies": {
21
- "tslib": "^2.3.0"
21
+ "tslib": ">=2.3.0"
22
22
  },
23
23
  "sideEffects": false,
24
24
  "module": "fesm2022/suis.mjs",