@litigiovirtual/ius-design-components 1.0.72 → 1.0.73

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.
@@ -0,0 +1,47 @@
1
+ import { EventEmitter, OnChanges } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export type DonutData = {
4
+ label: string;
5
+ value: number;
6
+ color?: string;
7
+ };
8
+ type SliceComputed = DonutData & {
9
+ percentage: number;
10
+ pathD: string;
11
+ midX: number;
12
+ midY: number;
13
+ };
14
+ export declare class ChartsDonutComponent implements OnChanges {
15
+ data: DonutData[];
16
+ size: number;
17
+ thickness: number;
18
+ gapDegrees: number;
19
+ showLegend: boolean;
20
+ legendPosition: 'right' | 'bottom';
21
+ centerText?: string | number;
22
+ sort: boolean;
23
+ sliceClick: EventEmitter<DonutData>;
24
+ private _slices;
25
+ private _total;
26
+ private _circ;
27
+ private _radius;
28
+ readonly slices: import("@angular/core").Signal<SliceComputed[]>;
29
+ readonly total: import("@angular/core").Signal<number>;
30
+ readonly radius: import("@angular/core").Signal<number>;
31
+ readonly circumference: import("@angular/core").Signal<number>;
32
+ readonly viewBox: import("@angular/core").Signal<string>;
33
+ ngOnChanges(): void;
34
+ private polarToCartesian;
35
+ private arcPath;
36
+ onSliceClick(s: SliceComputed): void;
37
+ get centerLabel(): string;
38
+ getPopoverText(s: {
39
+ label: string;
40
+ value: number;
41
+ percentage: number;
42
+ }): string;
43
+ get ariaLabel(): string;
44
+ static ɵfac: i0.ɵɵFactoryDeclaration<ChartsDonutComponent, never>;
45
+ static ɵcmp: i0.ɵɵComponentDeclaration<ChartsDonutComponent, "ius-charts-donut", never, { "data": { "alias": "data"; "required": false; }; "size": { "alias": "size"; "required": false; }; "thickness": { "alias": "thickness"; "required": false; }; "gapDegrees": { "alias": "gapDegrees"; "required": false; }; "showLegend": { "alias": "showLegend"; "required": false; }; "legendPosition": { "alias": "legendPosition"; "required": false; }; "centerText": { "alias": "centerText"; "required": false; }; "sort": { "alias": "sort"; "required": false; }; }, { "sliceClick": "sliceClick"; }, never, never, true, never>;
46
+ }
47
+ export {};
@@ -0,0 +1 @@
1
+ export * from './charts-donut.component';
@@ -18,7 +18,7 @@ export declare class InputSelectComponent {
18
18
  onChangesValueEvent: EventEmitter<any>;
19
19
  onAddText: EventEmitter<string>;
20
20
  onClickOutside(event: Event): void;
21
- closeList(): void;
21
+ closeList(event?: Event): void;
22
22
  onInput(): void;
23
23
  onFocus(): void;
24
24
  onBlur(): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@litigiovirtual/ius-design-components",
3
- "version": "1.0.72",
3
+ "version": "1.0.73",
4
4
  "peerDependencies": {
5
5
  "@angular/common": ">=17.0.0 <20.0.0",
6
6
  "@angular/core": ">=17.0.0 <20.0.0",
package/public-api.d.ts CHANGED
@@ -46,4 +46,5 @@ export * from './lib/button-auth';
46
46
  export * from './lib/input-password';
47
47
  export * from './lib/input-otp';
48
48
  export * from './lib/snackbar';
49
+ export * from './lib/charts-donut';
49
50
  export * from './lib/directives/popover.directive';