keevo-components 2.0.120 → 2.0.121
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/esm2022/lib/components/kv-stacked-bar-chart/kv-stacked-bar-chart.component.mjs +48 -0
- package/esm2022/public-api.mjs +5 -1
- package/fesm2022/keevo-components.mjs +44 -1
- package/fesm2022/keevo-components.mjs.map +1 -1
- package/lib/components/kv-button/kv-button.component.d.ts +1 -1
- package/lib/components/kv-buttons/kv-button-popup/kv-button-popup.component.d.ts +1 -1
- package/lib/components/kv-stacked-bar-chart/kv-stacked-bar-chart.component.d.ts +36 -0
- package/package.json +1 -1
- package/public-api.d.ts +4 -0
|
@@ -9,7 +9,7 @@ export declare class KvButtonComponent {
|
|
|
9
9
|
severity: import("@angular/core").InputSignal<"primary" | "secondary" | "tertiary" | "danger">;
|
|
10
10
|
size: import("@angular/core").InputSignal<"small" | "normal" | "large">;
|
|
11
11
|
icon: import("@angular/core").ModelSignal<string>;
|
|
12
|
-
iconPosition: import("@angular/core").InputSignal<"
|
|
12
|
+
iconPosition: import("@angular/core").InputSignal<"right" | "left">;
|
|
13
13
|
label: import("@angular/core").InputSignal<string>;
|
|
14
14
|
disabled: import("@angular/core").InputSignal<boolean>;
|
|
15
15
|
onClick: import("@angular/core").OutputEmitterRef<any>;
|
|
@@ -8,7 +8,7 @@ export declare class KvButtonPopupComponent extends BaseComponentButton {
|
|
|
8
8
|
items: MenuItem[];
|
|
9
9
|
classBtn: string;
|
|
10
10
|
size: import("@angular/core").InputSignal<"small" | "normal" | "large">;
|
|
11
|
-
type: import("@angular/core").InputSignal<"
|
|
11
|
+
type: import("@angular/core").InputSignal<"text" | "normal" | "outline">;
|
|
12
12
|
icon: string;
|
|
13
13
|
constructor();
|
|
14
14
|
handleShow(): void;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export interface StackedBarDataModel {
|
|
3
|
+
value: number;
|
|
4
|
+
barColor: string;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* Componente de gráfico de barras empilhadas.
|
|
8
|
+
*
|
|
9
|
+
* Este componente exibe dados em formato de barras empilhadas horizontalmente,
|
|
10
|
+
* permitindo visualizar proporções relativas entre diferentes valores.
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* <kv-stacked-bar-chart [data]="minhaListaDeDados" [animation]="true"></kv-stacked-bar-chart>
|
|
14
|
+
*
|
|
15
|
+
* @standalone
|
|
16
|
+
*/
|
|
17
|
+
export declare class KvStackedBarChartComponent {
|
|
18
|
+
/**
|
|
19
|
+
* Índice da barra atualmente em foco (hover).
|
|
20
|
+
*/
|
|
21
|
+
hoveredIndex: number | null;
|
|
22
|
+
/**
|
|
23
|
+
* Dados a serem exibidos no gráfico de barras empilhadas.
|
|
24
|
+
* @required
|
|
25
|
+
*/
|
|
26
|
+
data: import("@angular/core").InputSignal<StackedBarDataModel[]>;
|
|
27
|
+
/**
|
|
28
|
+
* Define se a animação de carregamento deve ser exibida.
|
|
29
|
+
* @default false
|
|
30
|
+
*/
|
|
31
|
+
animation: import("@angular/core").InputSignal<boolean>;
|
|
32
|
+
getTotal(): number;
|
|
33
|
+
getPercent(value: number): number;
|
|
34
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<KvStackedBarChartComponent, never>;
|
|
35
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<KvStackedBarChartComponent, "kv-stacked-bar-chart", never, { "data": { "alias": "data"; "required": true; "isSignal": true; }; "animation": { "alias": "animation"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
36
|
+
}
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -296,3 +296,7 @@ export * from './lib/components/kv-icon/kv-icon.model';
|
|
|
296
296
|
* Widget Card
|
|
297
297
|
*/
|
|
298
298
|
export * from './lib/components/kv-widget-card/kv-widget-card.component';
|
|
299
|
+
/**
|
|
300
|
+
* Stacked Bar Chart
|
|
301
|
+
*/
|
|
302
|
+
export * from './lib/components/kv-stacked-bar-chart/kv-stacked-bar-chart.component';
|