@sankhyalabs/sankhyablocks-docs 0.0.0-feat-dev-KB-73149.1 → 0.0.0-feat-dev-KB-78673.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,41 @@
|
|
|
1
|
+
# pesquisa-grid
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
<!-- Auto Generated Below -->
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
## Properties
|
|
9
|
+
|
|
10
|
+
| Property | Attribute | Description | Type | Default |
|
|
11
|
+
| ------------------ | ------------------- | ------------------------------------------------- | -------------- | ----------- |
|
|
12
|
+
| `dataSource` | -- | Registros da grade | `Record[]` | `[]` |
|
|
13
|
+
| `descriptionField` | `description-field` | Campo que representa a descrição do registro | `string` | `undefined` |
|
|
14
|
+
| `entityName` | `entity-name` | Nome da entidade representada na grade | `string` | `undefined` |
|
|
15
|
+
| `metadata` | -- | Campos que representam as colunas da grade. | `UnitMetadata` | `undefined` |
|
|
16
|
+
| `pkField` | `pk-field` | Campo que representa a chave primária do registro | `string` | `undefined` |
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
## Events
|
|
20
|
+
|
|
21
|
+
| Event | Description | Type |
|
|
22
|
+
| ------------------------ | ----------- | ---------------------- |
|
|
23
|
+
| `pesquisaGridSelectItem` | | `CustomEvent<IOption>` |
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
## Dependencies
|
|
27
|
+
|
|
28
|
+
### Used by
|
|
29
|
+
|
|
30
|
+
- [snk-pesquisa](..)
|
|
31
|
+
|
|
32
|
+
### Graph
|
|
33
|
+
```mermaid
|
|
34
|
+
graph TD;
|
|
35
|
+
snk-pesquisa --> pesquisa-grid
|
|
36
|
+
style pesquisa-grid fill:#f9f,stroke:#333,stroke-width:4px
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
----------------------------------------------
|
|
40
|
+
|
|
41
|
+
|
|
@@ -7,11 +7,12 @@
|
|
|
7
7
|
|
|
8
8
|
## Properties
|
|
9
9
|
|
|
10
|
-
| Property | Attribute
|
|
11
|
-
| -------------- |
|
|
12
|
-
| `argument` | `argument`
|
|
13
|
-
| `
|
|
14
|
-
| `
|
|
10
|
+
| Property | Attribute | Description | Type | Default |
|
|
11
|
+
| -------------- | ------------- | ------------------------------------------------------------------- | -------------------------------- | ----------- |
|
|
12
|
+
| `argument` | `argument` | Argumentos que serão usados ao chamar a função searchLoader. | `string` | `undefined` |
|
|
13
|
+
| `entityName` | `entity-name` | Nome da entidade onde a pesquisa é aplicada. | `string` | `undefined` |
|
|
14
|
+
| `searchLoader` | -- | Função responsável em carregar os itens do componente snk-pesquisa. | `(text: string) => Promise<any>` | `undefined` |
|
|
15
|
+
| `selectItem` | -- | Função disparada ao selecionar um item. | `(option: IOption) => void` | `undefined` |
|
|
15
16
|
|
|
16
17
|
|
|
17
18
|
## Dependencies
|
|
@@ -20,9 +21,14 @@
|
|
|
20
21
|
|
|
21
22
|
- [snk-application](../snk-application)
|
|
22
23
|
|
|
24
|
+
### Depends on
|
|
25
|
+
|
|
26
|
+
- [pesquisa-grid](pesquisa-grid)
|
|
27
|
+
|
|
23
28
|
### Graph
|
|
24
29
|
```mermaid
|
|
25
30
|
graph TD;
|
|
31
|
+
snk-pesquisa --> pesquisa-grid
|
|
26
32
|
snk-application --> snk-pesquisa
|
|
27
33
|
style snk-pesquisa fill:#f9f,stroke:#333,stroke-width:4px
|
|
28
34
|
```
|