@sankhyalabs/ezui-docs 0.0.0-feat-dev-KB-55848.0 → 0.0.0-feat-dev-KB-52387.2
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.
|
@@ -27,6 +27,16 @@
|
|
|
27
27
|
|
|
28
28
|
## Methods
|
|
29
29
|
|
|
30
|
+
### `addCustomEditor(fieldName: string, customEditor: ICustomEditor, detailContext?: string) => Promise<void>`
|
|
31
|
+
|
|
32
|
+
Registra um editor customizado para campos da grade e formulário.
|
|
33
|
+
|
|
34
|
+
#### Returns
|
|
35
|
+
|
|
36
|
+
Type: `Promise<void>`
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
|
|
30
40
|
### `validate() => Promise<void>`
|
|
31
41
|
|
|
32
42
|
Realiza validação no conteúdo de todos os campos.
|
|
@@ -51,6 +61,7 @@ graph TD;
|
|
|
51
61
|
ez-form --> ez-tabselector
|
|
52
62
|
ez-form --> ez-form-view
|
|
53
63
|
ez-tabselector --> ez-icon
|
|
64
|
+
ez-form-view --> ez-custom-form-input
|
|
54
65
|
ez-form-view --> ez-collapsible-box
|
|
55
66
|
ez-form-view --> ez-check
|
|
56
67
|
ez-form-view --> ez-combo-box
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
# ez-custom-form-input
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
<!-- Auto Generated Below -->
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
## Properties
|
|
9
|
+
|
|
10
|
+
| Property | Attribute | Description | Type | Default |
|
|
11
|
+
| ----------------- | ---------------- | ------------------------------------------------------------------------------------- | ---------------------------------------- | ----------- |
|
|
12
|
+
| `builderFallback` | -- | Builder original do FormView que será chamado caso o custom não retorne nenhum valor. | `(field: IFormViewField) => HTMLElement` | `undefined` |
|
|
13
|
+
| `customEditor` | -- | Instância do editor customizado. | `ICustomEditor` | `undefined` |
|
|
14
|
+
| `detailContext` | `detail-context` | Define de qual contexto o editor está sendo acionado. | `string` | `undefined` |
|
|
15
|
+
| `formViewField` | -- | Campo que o elemento customizado representa. | `IFormViewField` | `undefined` |
|
|
16
|
+
| `value` | `value` | Valores dos campos do formulário. | `any` | `undefined` |
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
## Methods
|
|
20
|
+
|
|
21
|
+
### `isInvalid() => Promise<boolean>`
|
|
22
|
+
|
|
23
|
+
Retorna se o conteúdo é inválido.
|
|
24
|
+
|
|
25
|
+
#### Returns
|
|
26
|
+
|
|
27
|
+
Type: `Promise<boolean>`
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
### `setBlur() => Promise<void>`
|
|
32
|
+
|
|
33
|
+
Remove o foco do campo.
|
|
34
|
+
|
|
35
|
+
#### Returns
|
|
36
|
+
|
|
37
|
+
Type: `Promise<void>`
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
### `setFocus() => Promise<void>`
|
|
42
|
+
|
|
43
|
+
Aplica foco no campo.
|
|
44
|
+
|
|
45
|
+
#### Returns
|
|
46
|
+
|
|
47
|
+
Type: `Promise<void>`
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
## Dependencies
|
|
53
|
+
|
|
54
|
+
### Used by
|
|
55
|
+
|
|
56
|
+
- [ez-form-view](..)
|
|
57
|
+
|
|
58
|
+
### Graph
|
|
59
|
+
```mermaid
|
|
60
|
+
graph TD;
|
|
61
|
+
ez-form-view --> ez-custom-form-input
|
|
62
|
+
style ez-custom-form-input fill:#f9f,stroke:#333,stroke-width:4px
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
----------------------------------------------
|
|
66
|
+
|
|
67
|
+
|
|
@@ -22,6 +22,16 @@
|
|
|
22
22
|
|
|
23
23
|
## Methods
|
|
24
24
|
|
|
25
|
+
### `addCustomEditor(fieldName: string, customEditor: ICustomEditor, detailContext?: string) => Promise<void>`
|
|
26
|
+
|
|
27
|
+
Registra um editor customizado para campos da grade e formulário.
|
|
28
|
+
|
|
29
|
+
#### Returns
|
|
30
|
+
|
|
31
|
+
Type: `Promise<void>`
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|
|
25
35
|
### `showUp() => Promise<void>`
|
|
26
36
|
|
|
27
37
|
|
|
@@ -41,6 +51,7 @@ Type: `Promise<void>`
|
|
|
41
51
|
|
|
42
52
|
### Depends on
|
|
43
53
|
|
|
54
|
+
- [ez-custom-form-input](custom-input)
|
|
44
55
|
- [ez-collapsible-box](../ez-collapsible-box)
|
|
45
56
|
- [ez-check](../ez-check)
|
|
46
57
|
- [ez-combo-box](../ez-combo-box)
|
|
@@ -56,6 +67,7 @@ Type: `Promise<void>`
|
|
|
56
67
|
### Graph
|
|
57
68
|
```mermaid
|
|
58
69
|
graph TD;
|
|
70
|
+
ez-form-view --> ez-custom-form-input
|
|
59
71
|
ez-form-view --> ez-collapsible-box
|
|
60
72
|
ez-form-view --> ez-check
|
|
61
73
|
ez-form-view --> ez-combo-box
|
|
@@ -44,6 +44,26 @@ Type: `Promise<void>`
|
|
|
44
44
|
|
|
45
45
|
|
|
46
46
|
|
|
47
|
+
### `addCustomEditor(fieldName: string, customEditor: ICustomEditor, detailContext?: string) => Promise<void>`
|
|
48
|
+
|
|
49
|
+
Registra um editor customizado para campos da grade e formulário.
|
|
50
|
+
|
|
51
|
+
#### Returns
|
|
52
|
+
|
|
53
|
+
Type: `Promise<void>`
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
### `addGridCustomRender(fieldName: string, customRender: ICustomRender, detailContext?: string) => Promise<void>`
|
|
58
|
+
|
|
59
|
+
Registra um render customizado para colunas da grid.
|
|
60
|
+
|
|
61
|
+
#### Returns
|
|
62
|
+
|
|
63
|
+
Type: `Promise<void>`
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
|
|
47
67
|
### `filterColumns(search: string) => Promise<Array<EzGridColumn>>`
|
|
48
68
|
|
|
49
69
|
Usa um argumento para filtrar as colunas po label
|
package/package.json
CHANGED
|
@@ -1,32 +0,0 @@
|
|
|
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
|
-
|