nemesischart 0.1.15 → 0.1.17
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 +3326 -1867
- package/dist/nemesischart.umd.js +2 -2
- package/package.json +1 -1
- package/types/index.d.ts +138 -1
package/package.json
CHANGED
package/types/index.d.ts
CHANGED
|
@@ -207,11 +207,148 @@ export interface CardColumnProps {
|
|
|
207
207
|
moeda?: boolean
|
|
208
208
|
}
|
|
209
209
|
|
|
210
|
+
export interface CardLinesDadosItem {
|
|
211
|
+
rotulo: string
|
|
212
|
+
quantidade: number
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
export interface CardLinesProps {
|
|
216
|
+
/**
|
|
217
|
+
* Title text displayed at the top of the card.
|
|
218
|
+
* @default 'CardLines'
|
|
219
|
+
*/
|
|
220
|
+
titulo?: string
|
|
221
|
+
|
|
222
|
+
/**
|
|
223
|
+
* Subtitle text displayed below the title.
|
|
224
|
+
* @default ''
|
|
225
|
+
*/
|
|
226
|
+
subtitulo?: string
|
|
227
|
+
|
|
228
|
+
/**
|
|
229
|
+
* Primary value displayed in the card body.
|
|
230
|
+
* @default '0'
|
|
231
|
+
*/
|
|
232
|
+
valor?: string
|
|
233
|
+
|
|
234
|
+
/**
|
|
235
|
+
* Description text shown below the value.
|
|
236
|
+
* @default 'This is a card component.'
|
|
237
|
+
*/
|
|
238
|
+
descricao?: string
|
|
239
|
+
|
|
240
|
+
/**
|
|
241
|
+
* Array of data items to render as a line chart.
|
|
242
|
+
* Each item must have `rotulo` (label) and `quantidade` (value).
|
|
243
|
+
* @default []
|
|
244
|
+
*/
|
|
245
|
+
dados?: CardLinesDadosItem[]
|
|
246
|
+
|
|
247
|
+
/**
|
|
248
|
+
* Background color theme of the card.
|
|
249
|
+
* @default 'light'
|
|
250
|
+
*/
|
|
251
|
+
cor?: 'light' | 'dark' | 'transparent'
|
|
252
|
+
|
|
253
|
+
/**
|
|
254
|
+
* Base color used for the line and gradient fill.
|
|
255
|
+
* @default '#1D4ED8'
|
|
256
|
+
*/
|
|
257
|
+
corPaleta?: string
|
|
258
|
+
|
|
259
|
+
/**
|
|
260
|
+
* When true, formats tooltip values as Brazilian Real (BRL) currency.
|
|
261
|
+
* @default false
|
|
262
|
+
*/
|
|
263
|
+
moeda?: boolean
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
export interface CardColumnDualSegmento {
|
|
267
|
+
key: string
|
|
268
|
+
label: string
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
export interface CardColumnDualDadosItem {
|
|
272
|
+
rotulo: string
|
|
273
|
+
[key: string]: string | number
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
export interface CardColumnDualProps {
|
|
277
|
+
/**
|
|
278
|
+
* Title text displayed at the top of the card.
|
|
279
|
+
* @default 'CardColumnDual'
|
|
280
|
+
*/
|
|
281
|
+
titulo?: string
|
|
282
|
+
|
|
283
|
+
/**
|
|
284
|
+
* Subtitle text displayed below the title.
|
|
285
|
+
* @default ''
|
|
286
|
+
*/
|
|
287
|
+
subtitulo?: string
|
|
288
|
+
|
|
289
|
+
/**
|
|
290
|
+
* Primary value displayed in large text.
|
|
291
|
+
* @default '0'
|
|
292
|
+
*/
|
|
293
|
+
valor?: string
|
|
294
|
+
|
|
295
|
+
/**
|
|
296
|
+
* Description text shown below the value.
|
|
297
|
+
* @default 'This is a card component.'
|
|
298
|
+
*/
|
|
299
|
+
descricao?: string
|
|
300
|
+
|
|
301
|
+
/**
|
|
302
|
+
* Array of data items for the stacked bar chart.
|
|
303
|
+
* Each item must have `rotulo` plus the keys defined in `segmentos` and optionally `segmentoTooltip`.
|
|
304
|
+
* @default []
|
|
305
|
+
*/
|
|
306
|
+
dados?: CardColumnDualDadosItem[]
|
|
307
|
+
|
|
308
|
+
/**
|
|
309
|
+
* Background color theme of the card.
|
|
310
|
+
* @default 'light'
|
|
311
|
+
*/
|
|
312
|
+
cor?: 'light' | 'dark' | 'transparent'
|
|
313
|
+
|
|
314
|
+
/**
|
|
315
|
+
* Base color used to generate the bar chart color palette.
|
|
316
|
+
* @default '#1E40AF'
|
|
317
|
+
*/
|
|
318
|
+
corPaleta?: string
|
|
319
|
+
|
|
320
|
+
/**
|
|
321
|
+
* When true, formats tooltip values as Brazilian Real (BRL) currency.
|
|
322
|
+
* @default false
|
|
323
|
+
*/
|
|
324
|
+
moeda?: boolean
|
|
325
|
+
|
|
326
|
+
/**
|
|
327
|
+
* Layout orientation: 'vertical' stacks info and chart; 'horizontal' places them side by side.
|
|
328
|
+
* @default 'vertical'
|
|
329
|
+
*/
|
|
330
|
+
eixo?: 'vertical' | 'horizontal'
|
|
331
|
+
|
|
332
|
+
/**
|
|
333
|
+
* Defines the visible bar segments. Order: [top, ..., bottom]. Each item: { key, label }.
|
|
334
|
+
* @default [{ key: 'total_previsto', label: 'Previsto' }, { key: 'total_recebido', label: 'Recebido' }]
|
|
335
|
+
*/
|
|
336
|
+
segmentos?: CardColumnDualSegmento[]
|
|
337
|
+
|
|
338
|
+
/**
|
|
339
|
+
* Extra field shown only in the tooltip. Format: { key, label }. Set to null to omit.
|
|
340
|
+
* @default { key: 'total_em_aberto', label: 'Em aberto' }
|
|
341
|
+
*/
|
|
342
|
+
segmentoTooltip?: CardColumnDualSegmento | null
|
|
343
|
+
}
|
|
344
|
+
|
|
210
345
|
declare const Cards: DefineComponent<CardsProps, {}, {}, {}, {}, {}, {}, { click: () => void }>
|
|
211
346
|
declare const Polar: DefineComponent<PolarProps>
|
|
212
347
|
declare const CardColumn: DefineComponent<CardColumnProps>
|
|
213
348
|
declare const CardPizza: DefineComponent<CardPizzaProps>
|
|
349
|
+
declare const CardLines: DefineComponent<CardLinesProps>
|
|
350
|
+
declare const CardColumnDual: DefineComponent<CardColumnDualProps>
|
|
214
351
|
declare const NemesisChart: Plugin
|
|
215
352
|
|
|
216
|
-
export { Cards, Polar, CardColumn, CardPizza }
|
|
353
|
+
export { Cards, Polar, CardColumn, CardPizza, CardLines, CardColumnDual }
|
|
217
354
|
export default NemesisChart
|