suis 0.28.0 → 0.30.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (37) hide show
  1. package/README.md +4 -0
  2. package/esm2022/lib/components/index.mjs +5 -1
  3. package/esm2022/lib/components/suis-accordion/index.mjs +2 -0
  4. package/esm2022/lib/components/suis-accordion/suis-accordion.component.mjs +35 -0
  5. package/esm2022/lib/components/suis-box/suis-box.component.mjs +2 -2
  6. package/esm2022/lib/components/suis-input/suis-input.component.mjs +3 -3
  7. package/esm2022/lib/components/suis-input-checkbox/suis-input-checkbox.component.mjs +3 -3
  8. package/esm2022/lib/components/suis-input-image/index.mjs +2 -0
  9. package/esm2022/lib/components/suis-input-image/suis-input-image.component.mjs +61 -0
  10. package/esm2022/lib/components/suis-input-number/suis-input-number.component.mjs +3 -3
  11. package/esm2022/lib/components/suis-input-radio/suis-input-radio.component.mjs +3 -3
  12. package/esm2022/lib/components/suis-item/index.mjs +2 -0
  13. package/esm2022/lib/components/suis-item/suis-item.component.mjs +33 -0
  14. package/esm2022/lib/components/suis-navigation/suis-navigation.component.mjs +29 -4
  15. package/esm2022/lib/components/suis-navigation-group-item/suis-navigation-group-item.component.mjs +3 -3
  16. package/esm2022/lib/components/suis-navigation-item/suis-navigation-item.component.mjs +3 -3
  17. package/esm2022/lib/components/suis-select/suis-select.component.mjs +3 -3
  18. package/esm2022/lib/components/suis-select-multi/suis-select-multi.component.mjs +3 -3
  19. package/esm2022/lib/components/suis-table/suis-table.component.mjs +3 -3
  20. package/esm2022/lib/components/suis-tabs/suis-tabs.component.mjs +3 -3
  21. package/esm2022/lib/components/suis-text-area/index.mjs +2 -0
  22. package/esm2022/lib/components/suis-text-area/suis-text-area.component.mjs +51 -0
  23. package/esm2022/lib/components/suis-toggle/suis-toggle.component.mjs +3 -3
  24. package/esm2022/lib/components/suis-toolbar/suis-toolbar.component.mjs +3 -3
  25. package/fesm2022/suis.mjs +225 -46
  26. package/fesm2022/suis.mjs.map +1 -1
  27. package/lib/components/index.d.ts +4 -0
  28. package/lib/components/suis-accordion/index.d.ts +1 -0
  29. package/lib/components/suis-accordion/suis-accordion.component.d.ts +18 -0
  30. package/lib/components/suis-input-image/index.d.ts +1 -0
  31. package/lib/components/suis-input-image/suis-input-image.component.d.ts +19 -0
  32. package/lib/components/suis-item/index.d.ts +1 -0
  33. package/lib/components/suis-item/suis-item.component.d.ts +17 -0
  34. package/lib/components/suis-navigation/suis-navigation.component.d.ts +18 -1
  35. package/lib/components/suis-text-area/index.d.ts +1 -0
  36. package/lib/components/suis-text-area/suis-text-area.component.d.ts +14 -0
  37. package/package.json +1 -1
@@ -1,3 +1,4 @@
1
+ export * from './suis-accordion';
1
2
  export * from './suis-alert';
2
3
  export * from './suis-box';
3
4
  export * from './suis-breadcrumbs';
@@ -11,8 +12,10 @@ export * from './suis-icon';
11
12
  export * from './suis-input';
12
13
  export * from './suis-input-checkbox';
13
14
  export * from './suis-input-chips';
15
+ export * from './suis-input-image';
14
16
  export * from './suis-input-number';
15
17
  export * from './suis-input-radio';
18
+ export * from './suis-item';
16
19
  export * from './suis-label';
17
20
  export * from './suis-navigation';
18
21
  export * from './suis-navigation-group';
@@ -29,6 +32,7 @@ export * from './suis-spinner';
29
32
  export * from './suis-spinner-container';
30
33
  export * from './suis-table';
31
34
  export * from './suis-tabs';
35
+ export * from './suis-text-area';
32
36
  export * from './suis-title';
33
37
  export * from './suis-toggle';
34
38
  export * from './suis-toolbar';
@@ -0,0 +1 @@
1
+ export * from './suis-accordion.component';
@@ -0,0 +1,18 @@
1
+ import { EventEmitter } from '@angular/core';
2
+ import { SuisIconType } from '../suis-icon';
3
+ import * as i0 from "@angular/core";
4
+ export declare class SuisAccordionComponent {
5
+ /** @internal */
6
+ readonly SuisIconType: typeof SuisIconType;
7
+ /**
8
+ * Controlls styling of the accordion based on expanded state of group. By default set to false.
9
+ */
10
+ expanded: boolean;
11
+ /**
12
+ * Emits when expanded value of the accordion has been changed.
13
+ */
14
+ expandedChange: EventEmitter<boolean>;
15
+ onToggle(): void;
16
+ static ɵfac: i0.ɵɵFactoryDeclaration<SuisAccordionComponent, never>;
17
+ static ɵcmp: i0.ɵɵComponentDeclaration<SuisAccordionComponent, "suis-accordion", never, { "expanded": { "alias": "expanded"; "required": false; }; }, { "expandedChange": "expandedChange"; }, never, ["[suisAccordionHeader]", "[suisAccordionContent]"], true, never>;
18
+ }
@@ -0,0 +1 @@
1
+ export * from './suis-input-image.component';
@@ -0,0 +1,19 @@
1
+ import { ElementRef } from '@angular/core';
2
+ import { SuisInputBase } from '../../shared/classes/suis-input.base';
3
+ import { SuisIconType } from '../suis-icon/suis-icon.enums';
4
+ import * as i0 from "@angular/core";
5
+ export declare class SuisInputImageComponent extends SuisInputBase {
6
+ /** @internal */
7
+ fileInput?: ElementRef;
8
+ /** @internal */
9
+ readonly SuisIconType: typeof SuisIconType;
10
+ /** @internal */
11
+ value: FileList | null;
12
+ /** @internal */
13
+ imageUrl: string | null;
14
+ writeValue(obj: FormData | string): void;
15
+ onChange(event: Event): void;
16
+ onRemove(): void;
17
+ static ɵfac: i0.ɵɵFactoryDeclaration<SuisInputImageComponent, never>;
18
+ static ɵcmp: i0.ɵɵComponentDeclaration<SuisInputImageComponent, "suis-input-image", never, {}, {}, never, never, true, never>;
19
+ }
@@ -0,0 +1 @@
1
+ export * from './suis-item.component';
@@ -0,0 +1,17 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class SuisItemComponent {
3
+ /**
4
+ * Adds a padding around the content. By default set to true.
5
+ */
6
+ spacing: boolean;
7
+ /**
8
+ * Styles item as a header. By default set to false.
9
+ */
10
+ header: boolean;
11
+ /**
12
+ * Displays border bottom below the item. Does not effect header item. By default set to true.
13
+ */
14
+ divider: boolean;
15
+ static ɵfac: i0.ɵɵFactoryDeclaration<SuisItemComponent, never>;
16
+ static ɵcmp: i0.ɵɵComponentDeclaration<SuisItemComponent, "suis-item", never, { "spacing": { "alias": "spacing"; "required": false; }; "header": { "alias": "header"; "required": false; }; "divider": { "alias": "divider"; "required": false; }; }, {}, never, ["*"], true, never>;
17
+ }
@@ -1,7 +1,11 @@
1
+ import { EventEmitter } from '@angular/core';
1
2
  import { SuisNavigationGroupItem } from '../suis-navigation-item/suis-navigation-item.interfaces';
2
3
  import { SuisNavigationItemDirective } from '../suis-navigation-item';
4
+ import { SuisIconType } from '../suis-icon';
3
5
  import * as i0 from "@angular/core";
4
6
  export declare class SuisNavigationComponent {
7
+ /** @internal */
8
+ readonly SuisIconType: typeof SuisIconType;
5
9
  /** @internal */
6
10
  suisNavigationItem?: SuisNavigationItemDirective;
7
11
  /**
@@ -16,8 +20,21 @@ export declare class SuisNavigationComponent {
16
20
  * Adds expand / collapse logic to group header items. By default set to false.
17
21
  */
18
22
  expandable: boolean;
23
+ /**
24
+ * Adds collapse / epxand logic to navigiaton. By default set to false.
25
+ */
26
+ collapsable: boolean;
27
+ /**
28
+ * Collapses the navigiation. By default set to false.
29
+ */
30
+ collapsed: boolean;
31
+ /**
32
+ * Emits on collapsed value changed.
33
+ */
34
+ collaspedChange: EventEmitter<boolean>;
35
+ onToggle(): void;
19
36
  /** @internal */
20
37
  groupItemTrackBy(index: number, groupItem: SuisNavigationGroupItem): string;
21
38
  static ɵfac: i0.ɵɵFactoryDeclaration<SuisNavigationComponent, never>;
22
- static ɵcmp: i0.ɵɵComponentDeclaration<SuisNavigationComponent, "suis-navigation", never, { "items": { "alias": "items"; "required": false; }; "expandedGroups": { "alias": "expandedGroups"; "required": false; }; "expandable": { "alias": "expandable"; "required": false; }; }, {}, ["suisNavigationItem"], never, true, never>;
39
+ static ɵcmp: i0.ɵɵComponentDeclaration<SuisNavigationComponent, "suis-navigation", never, { "items": { "alias": "items"; "required": false; }; "expandedGroups": { "alias": "expandedGroups"; "required": false; }; "expandable": { "alias": "expandable"; "required": false; }; "collapsable": { "alias": "collapsable"; "required": false; }; "collapsed": { "alias": "collapsed"; "required": false; }; "collaspedChange": { "alias": "collaspedChange"; "required": false; }; }, {}, ["suisNavigationItem"], never, true, never>;
23
40
  }
@@ -0,0 +1 @@
1
+ export * from './suis-text-area.component';
@@ -0,0 +1,14 @@
1
+ import { SuisInputBase } from '../../shared/classes/suis-input.base';
2
+ import * as i0 from "@angular/core";
3
+ export declare class SuisTextAreaComponent extends SuisInputBase {
4
+ /**
5
+ * Placeholder text displayed in input. By default set to empty string.
6
+ */
7
+ placeholder: string;
8
+ /** @internal */
9
+ value: string;
10
+ writeValue(obj: string): void;
11
+ onChange(event: Event): void;
12
+ static ɵfac: i0.ɵɵFactoryDeclaration<SuisTextAreaComponent, never>;
13
+ static ɵcmp: i0.ɵɵComponentDeclaration<SuisTextAreaComponent, "suis-text-area", never, { "placeholder": { "alias": "placeholder"; "required": false; }; }, {}, never, never, true, never>;
14
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "suis",
3
- "version": "0.28.0",
3
+ "version": "0.30.0",
4
4
  "main": "src/index.ts",
5
5
  "author": "Karol Jaskółka",
6
6
  "description": "Angular 16+ Component Library",