suis 0.16.0 → 0.17.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 +6 -2
- package/esm2022/lib/components/index.mjs +5 -1
- package/esm2022/lib/components/suis-container/suis-container.component.mjs +3 -3
- package/esm2022/lib/components/suis-navigation/index.mjs +2 -0
- package/esm2022/lib/components/suis-navigation/suis-navigation.component.mjs +43 -0
- package/esm2022/lib/components/suis-navigation-group/index.mjs +2 -0
- package/esm2022/lib/components/suis-navigation-group/suis-navigation-group.component.mjs +44 -0
- package/esm2022/lib/components/suis-navigation-group-item/index.mjs +2 -0
- package/esm2022/lib/components/suis-navigation-group-item/suis-navigation-group-item.component.mjs +50 -0
- package/esm2022/lib/components/suis-navigation-item/index.mjs +4 -0
- package/esm2022/lib/components/suis-navigation-item/suis-navigation-item.component.mjs +20 -0
- package/esm2022/lib/components/suis-navigation-item/suis-navigation-item.directive.mjs +21 -0
- package/esm2022/lib/components/suis-navigation-item/suis-navigation-item.interfaces.mjs +2 -0
- package/esm2022/lib/components/suis-notification/suis-notification.component.mjs +3 -3
- package/esm2022/lib/components/suis-select/suis-select.component.mjs +3 -3
- package/esm2022/lib/components/suis-select-multi/suis-select-multi.component.mjs +3 -3
- package/esm2022/lib/components/suis-select-option/suis-select-option.interfaces.mjs +1 -1
- package/esm2022/lib/shared/classes/suis-select.base.mjs +6 -1
- package/fesm2022/suis.mjs +160 -9
- package/fesm2022/suis.mjs.map +1 -1
- package/lib/components/index.d.ts +4 -0
- package/lib/components/suis-navigation/index.d.ts +1 -0
- package/lib/components/suis-navigation/suis-navigation.component.d.ts +23 -0
- package/lib/components/suis-navigation-group/index.d.ts +1 -0
- package/lib/components/suis-navigation-group/suis-navigation-group.component.d.ts +27 -0
- package/lib/components/suis-navigation-group-item/index.d.ts +1 -0
- package/lib/components/suis-navigation-group-item/suis-navigation-group-item.component.d.ts +33 -0
- package/lib/components/suis-navigation-item/index.d.ts +3 -0
- package/lib/components/suis-navigation-item/suis-navigation-item.component.d.ts +17 -0
- package/lib/components/suis-navigation-item/suis-navigation-item.directive.d.ts +10 -0
- package/lib/components/suis-navigation-item/suis-navigation-item.interfaces.d.ts +8 -0
- package/lib/components/suis-select-option/suis-select-option.interfaces.d.ts +1 -0
- package/lib/shared/classes/suis-select.base.d.ts +2 -0
- package/package.json +3 -2
@@ -0,0 +1 @@
|
|
1
|
+
export * from './suis-navigation-group.component';
|
@@ -0,0 +1,27 @@
|
|
1
|
+
import { TemplateRef } from '@angular/core';
|
2
|
+
import { SuisNavigationGroupItem, SuisNavigationItem } from '../suis-navigation-item/suis-navigation-item.interfaces';
|
3
|
+
import * as i0 from "@angular/core";
|
4
|
+
export declare class SuisNavigationGroupComponent {
|
5
|
+
/**
|
6
|
+
* Navigation item data. Type of SuisNavigationGroupItem.
|
7
|
+
*/
|
8
|
+
item?: SuisNavigationGroupItem;
|
9
|
+
/**
|
10
|
+
* Template to be displayed instead of item's label.
|
11
|
+
*/
|
12
|
+
templateRef?: TemplateRef<{
|
13
|
+
$implicit: SuisNavigationItem;
|
14
|
+
}>;
|
15
|
+
/**
|
16
|
+
* Expanded state of the navigation group. By default set to true.
|
17
|
+
*/
|
18
|
+
expanded: boolean;
|
19
|
+
/**
|
20
|
+
* Adds expand / collapse logic to group header items. By default set to false.
|
21
|
+
*/
|
22
|
+
expandable: boolean;
|
23
|
+
/** @internal */
|
24
|
+
itemTrackBy(index: number, item: SuisNavigationGroupItem): string;
|
25
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SuisNavigationGroupComponent, never>;
|
26
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SuisNavigationGroupComponent, "suis-navigation-group", never, { "item": { "alias": "item"; "required": false; }; "templateRef": { "alias": "templateRef"; "required": false; }; "expanded": { "alias": "expanded"; "required": false; }; "expandable": { "alias": "expandable"; "required": false; }; }, {}, never, never, true, never>;
|
27
|
+
}
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from './suis-navigation-group-item.component';
|
@@ -0,0 +1,33 @@
|
|
1
|
+
import { EventEmitter, TemplateRef } from '@angular/core';
|
2
|
+
import { SuisNavigationGroupItem, SuisNavigationItem } from '../suis-navigation-item';
|
3
|
+
import { SuisIconType } from '../suis-icon/suis-icon.enums';
|
4
|
+
import * as i0 from "@angular/core";
|
5
|
+
export declare class SuisNavigationGroupItemComponent {
|
6
|
+
/** @internal */
|
7
|
+
readonly SuisIconType: typeof SuisIconType;
|
8
|
+
/**
|
9
|
+
* Navigation item data. Type of SuisNavigationGroupItem.
|
10
|
+
*/
|
11
|
+
item?: SuisNavigationGroupItem;
|
12
|
+
/**
|
13
|
+
* Template to be displayed instead of item's label.s
|
14
|
+
*/
|
15
|
+
templateRef?: TemplateRef<{
|
16
|
+
$implicit: SuisNavigationItem;
|
17
|
+
}>;
|
18
|
+
/**
|
19
|
+
* Controlls styling of the item based on expanded state of group. By default set to true.
|
20
|
+
*/
|
21
|
+
expanded: boolean;
|
22
|
+
/**
|
23
|
+
* Adds expand / collapse logic to item. By default set to false.
|
24
|
+
*/
|
25
|
+
expandable: boolean;
|
26
|
+
/**
|
27
|
+
* Emits when expanded value of the item has been changed.
|
28
|
+
*/
|
29
|
+
expandedChange: EventEmitter<boolean>;
|
30
|
+
onToggle(): void;
|
31
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SuisNavigationGroupItemComponent, never>;
|
32
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SuisNavigationGroupItemComponent, "suis-navigation-group-item", never, { "item": { "alias": "item"; "required": false; }; "templateRef": { "alias": "templateRef"; "required": false; }; "expanded": { "alias": "expanded"; "required": false; }; "expandable": { "alias": "expandable"; "required": false; }; }, { "expandedChange": "expandedChange"; }, never, never, true, never>;
|
33
|
+
}
|
@@ -0,0 +1,17 @@
|
|
1
|
+
import { TemplateRef } from '@angular/core';
|
2
|
+
import { SuisNavigationItem } from './suis-navigation-item.interfaces';
|
3
|
+
import * as i0 from "@angular/core";
|
4
|
+
export declare class SuisNavigationItemComponent {
|
5
|
+
/**
|
6
|
+
* Navigation item data. Type of SuisNavigationItem.
|
7
|
+
*/
|
8
|
+
item?: SuisNavigationItem;
|
9
|
+
/**
|
10
|
+
* Template to be displayed instead of item's label.
|
11
|
+
*/
|
12
|
+
templateRef?: TemplateRef<{
|
13
|
+
$implicit: SuisNavigationItem;
|
14
|
+
}>;
|
15
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SuisNavigationItemComponent, never>;
|
16
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SuisNavigationItemComponent, "suis-navigation-item", never, { "item": { "alias": "item"; "required": false; }; "templateRef": { "alias": "templateRef"; "required": false; }; }, {}, never, never, true, never>;
|
17
|
+
}
|
@@ -0,0 +1,10 @@
|
|
1
|
+
import { TemplateRef } from '@angular/core';
|
2
|
+
import * as i0 from "@angular/core";
|
3
|
+
export declare class SuisNavigationItemDirective {
|
4
|
+
/**
|
5
|
+
* Custom template of the item.
|
6
|
+
*/
|
7
|
+
readonly templateRef: TemplateRef<any>;
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SuisNavigationItemDirective, never>;
|
9
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<SuisNavigationItemDirective, "[suisNavigationItem]", never, {}, {}, never, never, true, never>;
|
10
|
+
}
|
@@ -41,6 +41,8 @@ export declare abstract class SuisSelectBase<T> extends SuisInputBase {
|
|
41
41
|
onExpand(): void;
|
42
42
|
toggle(value: boolean): void;
|
43
43
|
onDocumentClick(event: Event): void;
|
44
|
+
/** @internal */
|
45
|
+
optionTrackBy(index: number, option: SuisSelectOption<any>): string;
|
44
46
|
static ɵfac: i0.ɵɵFactoryDeclaration<SuisSelectBase<any>, never>;
|
45
47
|
static ɵdir: i0.ɵɵDirectiveDeclaration<SuisSelectBase<any>, never, never, { "options": { "alias": "options"; "required": false; }; "search": { "alias": "search"; "required": false; }; "searchPlaceholder": { "alias": "searchPlaceholder"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; }, { "searchPhraseChanged": "searchPhraseChanged"; }, ["suisSelectOption"], never, false, never>;
|
46
48
|
}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "suis",
|
3
|
-
"version": "0.
|
3
|
+
"version": "0.17.0",
|
4
4
|
"main": "src/index.ts",
|
5
5
|
"author": "Karol Jaskółka",
|
6
6
|
"description": "SUIS (Standalone UI + Signals) Angular 16+ Component Library",
|
@@ -14,7 +14,8 @@
|
|
14
14
|
"peerDependencies": {
|
15
15
|
"@angular/common": "^16.0.0",
|
16
16
|
"@angular/core": "^16.0.0",
|
17
|
-
"@angular/forms": "16.0.0"
|
17
|
+
"@angular/forms": "16.0.0",
|
18
|
+
"@angular/router": "16.0.0"
|
18
19
|
},
|
19
20
|
"dependencies": {
|
20
21
|
"tslib": "^2.3.0"
|