suis 0.30.0 → 0.30.1

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.
Files changed (40) hide show
  1. package/esm2022/lib/components/index.mjs +1 -1
  2. package/esm2022/lib/components/suis-accordion/suis-accordion.component.mjs +4 -6
  3. package/esm2022/lib/components/suis-alert/suis-alert.component.mjs +4 -6
  4. package/esm2022/lib/components/suis-chip/suis-chip.component.mjs +4 -6
  5. package/esm2022/lib/components/suis-icon/index.mjs +2 -2
  6. package/esm2022/lib/components/suis-icon/suis-icon-type.pipe.mjs +15 -16
  7. package/esm2022/lib/components/suis-icon/suis-icon.component.mjs +5 -8
  8. package/esm2022/lib/components/suis-icon/suis-icon.types.mjs +2 -0
  9. package/esm2022/lib/components/suis-input-checkbox/suis-input-checkbox.component.mjs +4 -9
  10. package/esm2022/lib/components/suis-input-image/suis-input-image.component.mjs +3 -6
  11. package/esm2022/lib/components/suis-navigation/suis-navigation.component.mjs +4 -6
  12. package/esm2022/lib/components/suis-navigation-group-item/suis-navigation-group-item.component.mjs +3 -6
  13. package/esm2022/lib/components/suis-notification/suis-notification.component.mjs +4 -7
  14. package/esm2022/lib/components/suis-pagination/suis-pagination.component.mjs +4 -6
  15. package/esm2022/lib/components/suis-select/suis-select.component.mjs +3 -3
  16. package/esm2022/lib/components/suis-select-multi/suis-select-multi.component.mjs +3 -3
  17. package/esm2022/lib/components/suis-select-option/suis-select-option.component.mjs +4 -6
  18. package/esm2022/lib/components/suis-table/suis-table.component.mjs +4 -6
  19. package/esm2022/lib/shared/classes/suis-select.base.mjs +1 -4
  20. package/fesm2022/suis.mjs +45 -92
  21. package/fesm2022/suis.mjs.map +1 -1
  22. package/lib/components/suis-accordion/suis-accordion.component.d.ts +0 -3
  23. package/lib/components/suis-alert/suis-alert.component.d.ts +0 -3
  24. package/lib/components/suis-chip/suis-chip.component.d.ts +0 -3
  25. package/lib/components/suis-icon/index.d.ts +1 -1
  26. package/lib/components/suis-icon/suis-icon-type.pipe.d.ts +1 -1
  27. package/lib/components/suis-icon/suis-icon.component.d.ts +2 -4
  28. package/lib/components/suis-icon/suis-icon.types.d.ts +1 -0
  29. package/lib/components/suis-input-checkbox/suis-input-checkbox.component.d.ts +0 -3
  30. package/lib/components/suis-input-image/suis-input-image.component.d.ts +0 -3
  31. package/lib/components/suis-navigation/suis-navigation.component.d.ts +0 -3
  32. package/lib/components/suis-navigation-group-item/suis-navigation-group-item.component.d.ts +0 -3
  33. package/lib/components/suis-notification/suis-notification.component.d.ts +0 -3
  34. package/lib/components/suis-pagination/suis-pagination.component.d.ts +0 -3
  35. package/lib/components/suis-select-option/suis-select-option.component.d.ts +0 -3
  36. package/lib/components/suis-table/suis-table.component.d.ts +0 -3
  37. package/lib/shared/classes/suis-select.base.d.ts +0 -3
  38. package/package.json +1 -1
  39. package/esm2022/lib/components/suis-icon/suis-icon.enums.mjs +0 -18
  40. package/lib/components/suis-icon/suis-icon.enums.d.ts +0 -16
@@ -1,9 +1,6 @@
1
1
  import { EventEmitter } from '@angular/core';
2
- import { SuisIconType } from '../suis-icon';
3
2
  import * as i0 from "@angular/core";
4
3
  export declare class SuisAccordionComponent {
5
- /** @internal */
6
- readonly SuisIconType: typeof SuisIconType;
7
4
  /**
8
5
  * Controlls styling of the accordion based on expanded state of group. By default set to false.
9
6
  */
@@ -1,10 +1,7 @@
1
1
  import { EventEmitter } from '@angular/core';
2
2
  import { SuisInfoColor } from '../../types';
3
- import { SuisIconType } from '../suis-icon';
4
3
  import * as i0 from "@angular/core";
5
4
  export declare class SuisAlertComponent {
6
- /** @internal */
7
- readonly SuisIconType: typeof SuisIconType;
8
5
  /**
9
6
  * Controls visibilty of the alert. By default set to false.
10
7
  */
@@ -1,10 +1,7 @@
1
1
  import { EventEmitter } from '@angular/core';
2
- import { SuisIconType } from '../suis-icon';
3
2
  import { SuisColor } from '../../types/suis-color.type';
4
3
  import * as i0 from "@angular/core";
5
4
  export declare class SuisChipComponent {
6
- /** @internal */
7
- readonly SuisIconType: typeof SuisIconType;
8
5
  /**
9
6
  * Sets the color pallette of the chip. Type of SuisColor. By default set to 'primary'.
10
7
  */
@@ -1,2 +1,2 @@
1
1
  export * from './suis-icon.component';
2
- export * from './suis-icon.enums';
2
+ export * from './suis-icon.types';
@@ -1,5 +1,5 @@
1
1
  import { PipeTransform } from '@angular/core';
2
- import { SuisIconType } from './suis-icon.enums';
2
+ import { SuisIconType } from './suis-icon.types';
3
3
  import * as i0 from "@angular/core";
4
4
  export declare class SuisIconTypePipe implements PipeTransform {
5
5
  transform(type: SuisIconType): string;
@@ -1,10 +1,8 @@
1
- import { SuisIconType } from './suis-icon.enums';
1
+ import { SuisIconType } from './suis-icon.types';
2
2
  import { SuisSize } from '../../types/suis-size.type';
3
3
  import { SuisColor } from '../../types/suis-color.type';
4
4
  import * as i0 from "@angular/core";
5
5
  export declare class SuisIconComponent {
6
- /** @internal */
7
- readonly SuisIconType: typeof SuisIconType;
8
6
  /**
9
7
  * Sets the font size of the HTML Entity itself. Type of SuisSize. By default set to 'md'.
10
8
  */
@@ -14,7 +12,7 @@ export declare class SuisIconComponent {
14
12
  */
15
13
  color: SuisColor;
16
14
  /**
17
- * Sets the HTML Entity displayed in content. Type of SuisIconType. By default set to SuisIconType.INFO.
15
+ * Sets the HTML Entity displayed in content. Type of SuisIconType. By default set to 'info'.
18
16
  */
19
17
  type: SuisIconType;
20
18
  /**
@@ -0,0 +1 @@
1
+ export type SuisIconType = 'info' | 'warning' | 'check' | 'cross' | 'plus' | 'minus' | 'arrow-up' | 'arrow-down' | 'arrow-left' | 'arrow-right' | 'chevron-up' | 'chevron-down' | 'chevron-left' | 'chevron-right';
@@ -1,9 +1,6 @@
1
- import { SuisIconType } from '../suis-icon';
2
1
  import { SuisCheckboxBase } from '../../shared/classes/suis-checkbox.base';
3
2
  import * as i0 from "@angular/core";
4
3
  export declare class SuisInputCheckboxComponent extends SuisCheckboxBase {
5
- /** @internal */
6
- readonly SuisIconType: typeof SuisIconType;
7
4
  static ɵfac: i0.ɵɵFactoryDeclaration<SuisInputCheckboxComponent, never>;
8
5
  static ɵcmp: i0.ɵɵComponentDeclaration<SuisInputCheckboxComponent, "suis-input-checkbox", never, {}, {}, never, ["*"], true, never>;
9
6
  }
@@ -1,13 +1,10 @@
1
1
  import { ElementRef } from '@angular/core';
2
2
  import { SuisInputBase } from '../../shared/classes/suis-input.base';
3
- import { SuisIconType } from '../suis-icon/suis-icon.enums';
4
3
  import * as i0 from "@angular/core";
5
4
  export declare class SuisInputImageComponent extends SuisInputBase {
6
5
  /** @internal */
7
6
  fileInput?: ElementRef;
8
7
  /** @internal */
9
- readonly SuisIconType: typeof SuisIconType;
10
- /** @internal */
11
8
  value: FileList | null;
12
9
  /** @internal */
13
10
  imageUrl: string | null;
@@ -1,11 +1,8 @@
1
1
  import { EventEmitter } from '@angular/core';
2
2
  import { SuisNavigationGroupItem } from '../suis-navigation-item/suis-navigation-item.interfaces';
3
3
  import { SuisNavigationItemDirective } from '../suis-navigation-item';
4
- import { SuisIconType } from '../suis-icon';
5
4
  import * as i0 from "@angular/core";
6
5
  export declare class SuisNavigationComponent {
7
- /** @internal */
8
- readonly SuisIconType: typeof SuisIconType;
9
6
  /** @internal */
10
7
  suisNavigationItem?: SuisNavigationItemDirective;
11
8
  /**
@@ -1,10 +1,7 @@
1
1
  import { EventEmitter, TemplateRef } from '@angular/core';
2
2
  import { SuisNavigationGroupItem, SuisNavigationItem } from '../suis-navigation-item';
3
- import { SuisIconType } from '../suis-icon/suis-icon.enums';
4
3
  import * as i0 from "@angular/core";
5
4
  export declare class SuisNavigationGroupItemComponent {
6
- /** @internal */
7
- readonly SuisIconType: typeof SuisIconType;
8
5
  /**
9
6
  * Navigation item data. Type of SuisNavigationGroupItem.
10
7
  */
@@ -1,10 +1,7 @@
1
1
  import { EventEmitter } from '@angular/core';
2
2
  import { SuisNotification } from './suis-notification.interfaces';
3
- import { SuisIconType } from '../suis-icon/suis-icon.enums';
4
3
  import * as i0 from "@angular/core";
5
4
  export declare class SuisNotificationComponent {
6
- /** @internal */
7
- SuisIconType: typeof SuisIconType;
8
5
  /**
9
6
  * Notification item data. Type of SuisNotification.
10
7
  */
@@ -1,12 +1,9 @@
1
1
  import { EventEmitter, OnChanges, OnInit, SimpleChanges } from '@angular/core';
2
- import { SuisIconType } from '../suis-icon';
3
2
  import { FormControl } from '@angular/forms';
4
3
  import * as i0 from "@angular/core";
5
4
  export declare class SuisPaginationComponent implements OnInit, OnChanges {
6
5
  private readonly destroyRef;
7
6
  /** @internal */
8
- readonly SuisIconType: typeof SuisIconType;
9
- /** @internal */
10
7
  /**
11
8
  * Number of the maximum page that can be reached based on totalItems and perPage values.
12
9
  */
@@ -1,10 +1,7 @@
1
1
  import { EventEmitter, TemplateRef } from '@angular/core';
2
2
  import { SuisSelectOption } from './suis-select-option.interfaces';
3
- import { SuisIconType } from '../suis-icon';
4
3
  import * as i0 from "@angular/core";
5
4
  export declare class SuisSelectOptionComponent<T> {
6
- /** @internal */
7
- readonly SuisIconType: typeof SuisIconType;
8
5
  /**
9
6
  * Option data. Type of SuisSelectOption<T>. Required input.
10
7
  */
@@ -1,12 +1,9 @@
1
1
  import { EventEmitter, QueryList } from '@angular/core';
2
2
  import { SuisTableDataItem } from './suis-table.interfaces';
3
3
  import { SuisTableColumnDirective } from './suis-table-column.directive';
4
- import { SuisIconType } from '../suis-icon';
5
4
  import { SuisSort } from '../../types/suis-sort.type';
6
5
  import * as i0 from "@angular/core";
7
6
  export declare class SuisTableComponent {
8
- /** @internal */
9
- readonly SuisIconType: typeof SuisIconType;
10
7
  /** @internal */
11
8
  columns?: QueryList<SuisTableColumnDirective>;
12
9
  /**
@@ -2,14 +2,11 @@ import { EventEmitter } from '@angular/core';
2
2
  import { SuisInputBase } from './suis-input.base';
3
3
  import { SuisSelectOption } from '../../components/suis-select-option/suis-select-option.interfaces';
4
4
  import { SuisSelectOptionDirective } from '../../components/suis-select-option/suis-select-option.directive';
5
- import { SuisIconType } from '../../components/suis-icon/suis-icon.enums';
6
5
  import * as i0 from "@angular/core";
7
6
  export declare abstract class SuisSelectBase<T> extends SuisInputBase {
8
7
  /** @internal */
9
8
  suisSelectOption?: SuisSelectOptionDirective<T>;
10
9
  /** @internal */
11
- readonly SuisIconType: typeof SuisIconType;
12
- /** @internal */
13
10
  protected searchPhrase: string;
14
11
  /** @internal */
15
12
  protected expanded: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "suis",
3
- "version": "0.30.0",
3
+ "version": "0.30.1",
4
4
  "main": "src/index.ts",
5
5
  "author": "Karol Jaskółka",
6
6
  "description": "Angular 16+ Component Library",
@@ -1,18 +0,0 @@
1
- export var SuisIconType;
2
- (function (SuisIconType) {
3
- SuisIconType["INFO"] = "info";
4
- SuisIconType["WARNING"] = "warning";
5
- SuisIconType["CHECK"] = "check";
6
- SuisIconType["CROSS"] = "cross";
7
- SuisIconType["PLUS"] = "plus";
8
- SuisIconType["MINUS"] = "minus";
9
- SuisIconType["ARROW_UP"] = "arrow-up";
10
- SuisIconType["ARROW_LEFT"] = "arrow-left";
11
- SuisIconType["ARROW_RIGHT"] = "arrow-right";
12
- SuisIconType["ARROW_DOWN"] = "arrow-down";
13
- SuisIconType["CHEVRON_UP"] = "chevron-up";
14
- SuisIconType["CHEVRON_DOWN"] = "chevron-down";
15
- SuisIconType["CHEVRON_LEFT"] = "chevron-left";
16
- SuisIconType["CHEVRON_RIGHT"] = "chevron-right";
17
- })(SuisIconType || (SuisIconType = {}));
18
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3Vpcy1pY29uLmVudW1zLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vbGlicy9zdWlzL3NyYy9saWIvY29tcG9uZW50cy9zdWlzLWljb24vc3Vpcy1pY29uLmVudW1zLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiO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3
- WARNING = "warning",
4
- CHECK = "check",
5
- CROSS = "cross",
6
- PLUS = "plus",
7
- MINUS = "minus",
8
- ARROW_UP = "arrow-up",
9
- ARROW_LEFT = "arrow-left",
10
- ARROW_RIGHT = "arrow-right",
11
- ARROW_DOWN = "arrow-down",
12
- CHEVRON_UP = "chevron-up",
13
- CHEVRON_DOWN = "chevron-down",
14
- CHEVRON_LEFT = "chevron-left",
15
- CHEVRON_RIGHT = "chevron-right"
16
- }