nemesischart 0.1.13 → 0.1.15
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/dist/nemesischart.es.js +2012 -1588
- package/dist/nemesischart.umd.js +2 -2
- package/package.json +1 -1
- package/types/index.d.ts +76 -1
package/package.json
CHANGED
package/types/index.d.ts
CHANGED
|
@@ -88,6 +88,74 @@ export interface CardColumnDadosItem {
|
|
|
88
88
|
quantidade: number
|
|
89
89
|
}
|
|
90
90
|
|
|
91
|
+
export interface CardPizzaDadosItem {
|
|
92
|
+
rotulo: string
|
|
93
|
+
quantidade: number
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
export interface CardPizzaProps {
|
|
97
|
+
/**
|
|
98
|
+
* Background color theme of the chart card.
|
|
99
|
+
* @default 'light'
|
|
100
|
+
*/
|
|
101
|
+
cor?: 'light' | 'dark' | 'transparent'
|
|
102
|
+
|
|
103
|
+
/**
|
|
104
|
+
* Title text displayed at the top of the chart.
|
|
105
|
+
* @default 'Pizza Chart'
|
|
106
|
+
*/
|
|
107
|
+
titulo?: string
|
|
108
|
+
|
|
109
|
+
/**
|
|
110
|
+
* Subtitle text displayed below the title.
|
|
111
|
+
* @default ''
|
|
112
|
+
*/
|
|
113
|
+
subtitulo?: string
|
|
114
|
+
|
|
115
|
+
/**
|
|
116
|
+
* Primary value displayed in large text. If empty, the section is not rendered.
|
|
117
|
+
* @default ''
|
|
118
|
+
*/
|
|
119
|
+
valor?: string
|
|
120
|
+
|
|
121
|
+
/**
|
|
122
|
+
* Description text shown below the value.
|
|
123
|
+
* @default ''
|
|
124
|
+
*/
|
|
125
|
+
descricao?: string
|
|
126
|
+
|
|
127
|
+
/**
|
|
128
|
+
* Array of data items to render in the doughnut chart.
|
|
129
|
+
* Each item must have `rotulo` (label) and `quantidade` (value).
|
|
130
|
+
* @default []
|
|
131
|
+
*/
|
|
132
|
+
dados?: CardPizzaDadosItem[]
|
|
133
|
+
|
|
134
|
+
/**
|
|
135
|
+
* Base color used to auto-generate the chart color palette.
|
|
136
|
+
* @default '#1E40AF'
|
|
137
|
+
*/
|
|
138
|
+
corPaleta?: string
|
|
139
|
+
|
|
140
|
+
/**
|
|
141
|
+
* Column header label for the category column in the legend.
|
|
142
|
+
* @default 'Rótulo'
|
|
143
|
+
*/
|
|
144
|
+
label_rotulo?: string
|
|
145
|
+
|
|
146
|
+
/**
|
|
147
|
+
* Column header label for the quantity column in the legend.
|
|
148
|
+
* @default 'Quantidade'
|
|
149
|
+
*/
|
|
150
|
+
label_quantidade?: string
|
|
151
|
+
|
|
152
|
+
/**
|
|
153
|
+
* Layout direction of the legend and chart.
|
|
154
|
+
* @default null (auto via ResizeObserver)
|
|
155
|
+
*/
|
|
156
|
+
direcao?: 'horizontal' | 'vertical' | null
|
|
157
|
+
}
|
|
158
|
+
|
|
91
159
|
export interface CardColumnProps {
|
|
92
160
|
/**
|
|
93
161
|
* Title text displayed at the top of the card.
|
|
@@ -131,12 +199,19 @@ export interface CardColumnProps {
|
|
|
131
199
|
* @default '#1E40AF'
|
|
132
200
|
*/
|
|
133
201
|
corPaleta?: string
|
|
202
|
+
|
|
203
|
+
/**
|
|
204
|
+
* When true, formats tooltip values as Brazilian Real (BRL) currency.
|
|
205
|
+
* @default false
|
|
206
|
+
*/
|
|
207
|
+
moeda?: boolean
|
|
134
208
|
}
|
|
135
209
|
|
|
136
210
|
declare const Cards: DefineComponent<CardsProps, {}, {}, {}, {}, {}, {}, { click: () => void }>
|
|
137
211
|
declare const Polar: DefineComponent<PolarProps>
|
|
138
212
|
declare const CardColumn: DefineComponent<CardColumnProps>
|
|
213
|
+
declare const CardPizza: DefineComponent<CardPizzaProps>
|
|
139
214
|
declare const NemesisChart: Plugin
|
|
140
215
|
|
|
141
|
-
export { Cards, Polar, CardColumn }
|
|
216
|
+
export { Cards, Polar, CardColumn, CardPizza }
|
|
142
217
|
export default NemesisChart
|