suis 0.18.1 → 0.20.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -0
- package/esm2022/lib/components/index.mjs +3 -1
- package/esm2022/lib/components/suis-button/suis-button.component.mjs +1 -1
- package/esm2022/lib/components/suis-navigation/suis-navigation.component.mjs +3 -3
- package/esm2022/lib/components/suis-table/index.mjs +5 -0
- package/esm2022/lib/components/suis-table/suis-table-cell.directive.mjs +22 -0
- package/esm2022/lib/components/suis-table/suis-table-column.directive.mjs +42 -0
- package/esm2022/lib/components/suis-table/suis-table.component.mjs +71 -0
- package/esm2022/lib/components/suis-table/suis-table.interfaces.mjs +2 -0
- package/esm2022/lib/components/suis-title/index.mjs +2 -0
- package/esm2022/lib/components/suis-title/suis-title.component.mjs +21 -0
- package/esm2022/lib/shared/classes/suis-button.base.mjs +1 -1
- package/fesm2022/suis.mjs +141 -4
- package/fesm2022/suis.mjs.map +1 -1
- package/lib/components/index.d.ts +2 -0
- package/lib/components/suis-table/index.d.ts +4 -0
- package/lib/components/suis-table/suis-table-cell.directive.d.ts +10 -0
- package/lib/components/suis-table/suis-table-column.directive.d.ts +14 -0
- package/lib/components/suis-table/suis-table.component.d.ts +38 -0
- package/lib/components/suis-table/suis-table.interfaces.d.ts +3 -0
- package/lib/components/suis-title/index.d.ts +1 -0
- package/lib/components/suis-title/suis-title.component.d.ts +9 -0
- package/package.json +4 -4
@@ -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 @@
|
|
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.
|
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
|
-
"@angular/core": "
|
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": "
|
21
|
+
"tslib": ">=2.3.0"
|
22
22
|
},
|
23
23
|
"sideEffects": false,
|
24
24
|
"module": "fesm2022/suis.mjs",
|