@sankhyalabs/ezui-docs 0.0.0-feat-dev-KB-34470.0 → 0.0.0-feat-dev-KB-55848.0
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,32 @@
|
|
|
1
|
+
# ez-chart
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
<!-- Auto Generated Below -->
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
## Properties
|
|
9
|
+
|
|
10
|
+
| Property | Attribute | Description | Type | Default |
|
|
11
|
+
| --------------- | ----------------- | ----------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------- |
|
|
12
|
+
| `chartSubTitle` | `chart-sub-title` | Define o sub titulo a ser apresentado no gráfico | `string` | `""` |
|
|
13
|
+
| `chartTitle` | `chart-title` | Define o titulo a ser apresentado no gráfico | `string` | `""` |
|
|
14
|
+
| `height` | `height` | Define a altura do gráfico | `number` | `undefined` |
|
|
15
|
+
| `legendEnabled` | `legend-enabled` | Define se a legenda do gráfico deve ser apresentada ou não. | `boolean` | `true` |
|
|
16
|
+
| `series` | -- | Define as series a serem apresentadas no gráfico | `ChartSerie[] \| ({ data: (number \| ChartSerieData)[]; name?: string; color?: string; type?: "line" \| "column" \| "bar"; yAxis?: number; toolTipFormatter?: (serieName: string, xAxis: string \| number, yAxis: number, dataName: string, percentage: number) => string; showDataLabel?: boolean; })` | `undefined` |
|
|
17
|
+
| `type` | `type` | Define o tipo de gráfico apresentado pelo componente | `ChartType.BAR \| ChartType.COLUMN \| ChartType.DONUT \| ChartType.LINE \| ChartType.PIE` | `ChartType.LINE` |
|
|
18
|
+
| `width` | `width` | Define uma largura do gráfico | `number` | `undefined` |
|
|
19
|
+
| `xAxis` | -- | Definições do eixo X do gráfico | `ChartAxis[] \| ({ color?: string; categories?: string[]; formatter?: (value: string \| number) => string; text?: string; invertedPosition?: boolean; })` | `undefined` |
|
|
20
|
+
| `yAxis` | -- | Definições do eixo Y do gráfico | `ChartAxis[] \| ({ color?: string; categories?: string[]; formatter?: (value: string \| number) => string; text?: string; invertedPosition?: boolean; })` | `undefined` |
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
## Events
|
|
24
|
+
|
|
25
|
+
| Event | Description | Type |
|
|
26
|
+
| -------------- | ------------------------------------------------------------- | ----------------------------------------------------------------------------- |
|
|
27
|
+
| `ezSerieClick` | Evento emitido quando ocorre um click em uma serie do gráfico | `CustomEvent<{ name: string; data: number[]; type: string; yAxis: number; }>` |
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
----------------------------------------------
|
|
31
|
+
|
|
32
|
+
|
|
@@ -27,16 +27,6 @@
|
|
|
27
27
|
|
|
28
28
|
## Methods
|
|
29
29
|
|
|
30
|
-
### `setFieldProp(fieldName: string, propName: string, value: any) => Promise<void>`
|
|
31
|
-
|
|
32
|
-
Altera/adiciona uma propriedade nos metadados do campo.
|
|
33
|
-
|
|
34
|
-
#### Returns
|
|
35
|
-
|
|
36
|
-
Type: `Promise<void>`
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
30
|
### `validate() => Promise<void>`
|
|
41
31
|
|
|
42
32
|
Realiza validação no conteúdo de todos os campos.
|
|
@@ -22,16 +22,6 @@
|
|
|
22
22
|
|
|
23
23
|
## Methods
|
|
24
24
|
|
|
25
|
-
### `setFieldProp(fieldName: string, propName: string, value: any) => Promise<void>`
|
|
26
|
-
|
|
27
|
-
Altera/adiciona uma propriedade nos metados do campo.
|
|
28
|
-
|
|
29
|
-
#### Returns
|
|
30
|
-
|
|
31
|
-
Type: `Promise<void>`
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
25
|
### `showUp() => Promise<void>`
|
|
36
26
|
|
|
37
27
|
|
|
@@ -44,16 +44,6 @@ Type: `Promise<void>`
|
|
|
44
44
|
|
|
45
45
|
|
|
46
46
|
|
|
47
|
-
### `addCustomValueFormatter(columnName: string, customFormatter: ICustomFormatter) => Promise<void>`
|
|
48
|
-
|
|
49
|
-
Registra um formatador de valores para uma coluna da grid.
|
|
50
|
-
|
|
51
|
-
#### Returns
|
|
52
|
-
|
|
53
|
-
Type: `Promise<void>`
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
47
|
### `filterColumns(search: string) => Promise<Array<EzGridColumn>>`
|
|
58
48
|
|
|
59
49
|
Usa um argumento para filtrar as colunas po label
|
|
@@ -84,16 +74,6 @@ Type: `Promise<EzGridColumn[]>`
|
|
|
84
74
|
|
|
85
75
|
|
|
86
76
|
|
|
87
|
-
### `getCustomValueFormatter(columnName: string) => Promise<ICustomFormatter | undefined>`
|
|
88
|
-
|
|
89
|
-
Retorna o formatador customizado da coluna caso exista.
|
|
90
|
-
|
|
91
|
-
#### Returns
|
|
92
|
-
|
|
93
|
-
Type: `Promise<ICustomFormatter>`
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
77
|
### `getSelection() => Promise<Array<any>>`
|
|
98
78
|
|
|
99
79
|
Obtém as linhas selecionadas.
|
|
@@ -124,26 +104,6 @@ Type: `Promise<void>`
|
|
|
124
104
|
|
|
125
105
|
|
|
126
106
|
|
|
127
|
-
### `refreshSelectedRows() => Promise<void>`
|
|
128
|
-
|
|
129
|
-
Atualiza linhas da grade.
|
|
130
|
-
|
|
131
|
-
#### Returns
|
|
132
|
-
|
|
133
|
-
Type: `Promise<void>`
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
### `removeCustomValueFormatter(columnName: string) => Promise<void>`
|
|
138
|
-
|
|
139
|
-
Remove o formatador de valores de uma coluna da grid.
|
|
140
|
-
|
|
141
|
-
#### Returns
|
|
142
|
-
|
|
143
|
-
Type: `Promise<void>`
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
107
|
### `setColumnsDef(cols: Array<EzGridColumn>) => Promise<void>`
|
|
148
108
|
|
|
149
109
|
Aplica a definição de colunas.
|