suis 1.1.0 → 1.2.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.
@@ -1,14 +1,14 @@
1
1
  import { SuisColor, SuisSize } from '../../types';
2
2
  import * as i0 from "@angular/core";
3
3
  export declare class SuisProgressBarComponent {
4
- /** @internal */
5
- _value: number;
6
- /** @internal */
7
- get value(): number;
8
4
  /**
9
- * Width of the progress bar in percentage (value >= 0 && value <= 100). By default set to 0.
5
+ * The value corresponding to the progress bar. By default set to 0.
10
6
  */
11
- set value(value: number);
7
+ value: number;
8
+ /**
9
+ * Maximum value of the progress bar. By default set to 100.
10
+ */
11
+ maxValue: number;
12
12
  /**
13
13
  * Sets the color of the progress bar. Type of SuisColor. By default set to 'primary'.
14
14
  */
@@ -22,5 +22,5 @@ export declare class SuisProgressBarComponent {
22
22
  */
23
23
  size: SuisSize;
24
24
  static ɵfac: i0.ɵɵFactoryDeclaration<SuisProgressBarComponent, never>;
25
- static ɵcmp: i0.ɵɵComponentDeclaration<SuisProgressBarComponent, "suis-progress-bar", never, { "value": { "alias": "value"; "required": false; }; "color": { "alias": "color"; "required": false; }; "backgroundColor": { "alias": "backgroundColor"; "required": false; }; "size": { "alias": "size"; "required": false; }; }, {}, never, never, true, never>;
25
+ static ɵcmp: i0.ɵɵComponentDeclaration<SuisProgressBarComponent, "suis-progress-bar", never, { "value": { "alias": "value"; "required": false; }; "maxValue": { "alias": "maxValue"; "required": false; }; "color": { "alias": "color"; "required": false; }; "backgroundColor": { "alias": "backgroundColor"; "required": false; }; "size": { "alias": "size"; "required": false; }; }, {}, never, never, true, never>;
26
26
  }
@@ -1,7 +1,7 @@
1
1
  import { PipeTransform } from '@angular/core';
2
2
  import * as i0 from "@angular/core";
3
3
  export declare class SuisProgressBarPipe implements PipeTransform {
4
- transform(value: number): string;
4
+ transform(value: number, maxValue: number): string;
5
5
  static ɵfac: i0.ɵɵFactoryDeclaration<SuisProgressBarPipe, never>;
6
6
  static ɵpipe: i0.ɵɵPipeDeclaration<SuisProgressBarPipe, "suisProgressBar", true>;
7
7
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "suis",
3
- "version": "1.1.0",
3
+ "version": "1.2.0",
4
4
  "main": "src/index.ts",
5
5
  "author": "Karol Jaskółka",
6
6
  "description": "Angular 16+ Component Library",