nemesischart 0.1.21 → 1.0.1

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/types/index.d.ts DELETED
@@ -1,354 +0,0 @@
1
- import type { DefineComponent, Plugin } from 'vue'
2
-
3
- export interface CardsProps {
4
- /**
5
- * Background color theme of the card.
6
- * @default 'light'
7
- */
8
- cor?: 'light' | 'dark' | 'transparent'
9
-
10
- /**
11
- * Title text displayed at the top of the card.
12
- * @default 'Card Title'
13
- */
14
- titulo?: string
15
-
16
- /**
17
- * Primary value displayed in the card body.
18
- * @default '0'
19
- */
20
- valor?: string
21
-
22
- /**
23
- * Description text shown below the value.
24
- * @default 'This is a card component. You can add any content here.'
25
- */
26
- descricao?: string
27
-
28
- /**
29
- * When true, renders a "Ver Todos" button at the bottom.
30
- * Requires PrimeVue Button component to be registered globally.
31
- * @default false
32
- */
33
- botao_todos?: boolean
34
- }
35
-
36
- export interface PolarDadosItem {
37
- tema: string
38
- quantidade: number
39
- }
40
-
41
- export interface PolarProps {
42
- /**
43
- * Background color theme of the chart card.
44
- * @default 'light'
45
- */
46
- cor?: 'light' | 'dark' | 'transparent'
47
-
48
- /**
49
- * Title text displayed at the top of the chart.
50
- * @default 'Polar Chart'
51
- */
52
- titulo?: string
53
-
54
- /**
55
- * Subtitle text displayed below the title.
56
- * @default ''
57
- */
58
- subtitulo?: string
59
-
60
- /**
61
- * Array of data items to render in the polar area chart.
62
- * Each item must have `tema` (label) and `quantidade` (value).
63
- * @default []
64
- */
65
- dados?: PolarDadosItem[]
66
-
67
- /**
68
- * Base color used to auto-generate the chart color palette.
69
- * @default '#1E40AF'
70
- */
71
- corPaleta?: string
72
-
73
- /**
74
- * Column header label for the category/theme column in the legend.
75
- * @default 'Rótulo'
76
- */
77
- label_rotulo?: string
78
-
79
- /**
80
- * Column header label for the quantity column in the legend.
81
- * @default 'Quantidade'
82
- */
83
- label_quantidade?: string
84
- }
85
-
86
- export interface CardColumnDadosItem {
87
- rotulo: string
88
- quantidade: number
89
- }
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
-
159
- export interface CardColumnProps {
160
- /**
161
- * Title text displayed at the top of the card.
162
- * @default 'CardColumn'
163
- */
164
- titulo?: string
165
-
166
- /**
167
- * Subtitle text displayed below the title.
168
- * @default ''
169
- */
170
- subtitulo?: string
171
-
172
- /**
173
- * Primary value displayed in the card body.
174
- * @default '0'
175
- */
176
- valor?: string
177
-
178
- /**
179
- * Description text shown below the value.
180
- * @default 'This is a card component.'
181
- */
182
- descricao?: string
183
-
184
- /**
185
- * Array of data items to render as a bar chart.
186
- * Each item must have `rotulo` (label) and `quantidade` (value).
187
- * @default []
188
- */
189
- dados?: CardColumnDadosItem[]
190
-
191
- /**
192
- * Background color theme of the card.
193
- * @default 'light'
194
- */
195
- cor?: 'light' | 'dark' | 'transparent'
196
-
197
- /**
198
- * Base color used to auto-generate the bar chart color palette.
199
- * @default '#1E40AF'
200
- */
201
- corPaleta?: string
202
-
203
- /**
204
- * When true, formats tooltip values as Brazilian Real (BRL) currency.
205
- * @default false
206
- */
207
- moeda?: boolean
208
- }
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
-
345
- declare const Cards: DefineComponent<CardsProps, {}, {}, {}, {}, {}, {}, { click: () => void }>
346
- declare const Polar: DefineComponent<PolarProps>
347
- declare const CardColumn: DefineComponent<CardColumnProps>
348
- declare const CardPizza: DefineComponent<CardPizzaProps>
349
- declare const CardLines: DefineComponent<CardLinesProps>
350
- declare const CardColumnDual: DefineComponent<CardColumnDualProps>
351
- declare const NemesisChart: Plugin
352
-
353
- export { Cards, Polar, CardColumn, CardPizza, CardLines, CardColumnDual }
354
- export default NemesisChart