@sankhyalabs/sankhyablocks-docs 0.0.0-feat-dev-KB-45341-2.2 → 0.0.0-feat-dev-KB-46484.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.
|
@@ -106,7 +106,7 @@ Type: `Promise<boolean>`
|
|
|
106
106
|
|
|
107
107
|
|
|
108
108
|
|
|
109
|
-
### `createDataunit(entityName: string, dataUnitName?: string, parentDataUnit?: DataUnit, configName?: string, resourceID?: string) => Promise<DataUnit>`
|
|
109
|
+
### `createDataunit(entityName: string, dataUnitName?: string, parentDataUnit?: DataUnit, configName?: string, resourceID?: string, options?: GetDataUnitOptions) => Promise<DataUnit>`
|
|
110
110
|
|
|
111
111
|
Cria o DataUnit a partir do nome da entidade. É possível armazená-lo no cache
|
|
112
112
|
passando o dataUnitName, assim, se mais de uma chamada for feita, o mesmo DataUnit será usado.
|
|
@@ -231,7 +231,7 @@ Type: `Promise<DataFetcher>`
|
|
|
231
231
|
|
|
232
232
|
DataFetcher do application
|
|
233
233
|
|
|
234
|
-
### `getDataUnit(entityName: string, dataUnitName: string, parentDataUnit?: DataUnit, configName?: string, resourceID?: string) => Promise<DataUnit>`
|
|
234
|
+
### `getDataUnit(entityName: string, dataUnitName: string, parentDataUnit?: DataUnit, configName?: string, resourceID?: string, options?: GetDataUnitOptions) => Promise<DataUnit>`
|
|
235
235
|
|
|
236
236
|
Obtem um DataUnit do cache ou cria um caso ainda não tenha sido criado.
|
|
237
237
|
|
|
@@ -7,15 +7,15 @@
|
|
|
7
7
|
|
|
8
8
|
## Properties
|
|
9
9
|
|
|
10
|
-
| Property | Attribute | Description | Type | Default
|
|
11
|
-
| -------------------------- | -------------- | -------------------------------------------------------------------------------------- | ----------------------------------------- |
|
|
12
|
-
| `dataUnit` | -- | DataUnit responsável por carregar os dados. | `DataUnit` | `undefined`
|
|
13
|
-
| `dataUnitBuilder` | -- | DataUnitBuilder responsável por implementar dados a serem utilizados no DataUnit. | `FetcherFacade` | `undefined`
|
|
14
|
-
| `entityName` | `entity-name` | Nome da entidade à ser utilizada para relacionar o anexo ao DataUnit pai. | `string` | `undefined`
|
|
15
|
-
| `fetcher` | -- | Fetcher responsável por carregar os dados do DataUnit. | `AttachFetcherFacadeInterface` | `undefined`
|
|
16
|
-
| `fetcherType` | `fetcher-type` | FetcherType define o tipo de fetcher responsável por carregar os dados do DataUnit. | `"AnexoSistema" \| "Another" \| "Attach"` | `
|
|
17
|
-
| `messagesBuilder` | -- | Responsável por flexibilizar e padronizar o uso de mensagens nos blocos de construção. | `SnkMessageBuilder` | `undefined`
|
|
18
|
-
| `registerKey` _(required)_ | `register-key` | Identificação do registro pai. | `string` | `undefined`
|
|
10
|
+
| Property | Attribute | Description | Type | Default |
|
|
11
|
+
| -------------------------- | -------------- | -------------------------------------------------------------------------------------- | ----------------------------------------- | ---------------- |
|
|
12
|
+
| `dataUnit` | -- | DataUnit responsável por carregar os dados. | `DataUnit` | `undefined` |
|
|
13
|
+
| `dataUnitBuilder` | -- | DataUnitBuilder responsável por implementar dados a serem utilizados no DataUnit. | `FetcherFacade` | `undefined` |
|
|
14
|
+
| `entityName` | `entity-name` | Nome da entidade à ser utilizada para relacionar o anexo ao DataUnit pai. | `string` | `undefined` |
|
|
15
|
+
| `fetcher` | -- | Fetcher responsável por carregar os dados do DataUnit. | `AttachFetcherFacadeInterface` | `undefined` |
|
|
16
|
+
| `fetcherType` | `fetcher-type` | FetcherType define o tipo de fetcher responsável por carregar os dados do DataUnit. | `"AnexoSistema" \| "Another" \| "Attach"` | `"AnexoSistema"` |
|
|
17
|
+
| `messagesBuilder` | -- | Responsável por flexibilizar e padronizar o uso de mensagens nos blocos de construção. | `SnkMessageBuilder` | `undefined` |
|
|
18
|
+
| `registerKey` _(required)_ | `register-key` | Identificação do registro pai. | `string` | `undefined` |
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
## Events
|
|
@@ -46,6 +46,16 @@ Type: `Promise<DataUnit>`
|
|
|
46
46
|
|
|
47
47
|
|
|
48
48
|
|
|
49
|
+
### `getRowMetadata(record?: Record | string) => Promise<RowMetadata>`
|
|
50
|
+
|
|
51
|
+
Busca os metadados da linha selecionada.
|
|
52
|
+
|
|
53
|
+
#### Returns
|
|
54
|
+
|
|
55
|
+
Type: `Promise<RowMetadata>`
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
|
|
49
59
|
### `getSelectedRecordsIDsInfo() => Promise<Array<IRecordID>>`
|
|
50
60
|
|
|
51
61
|
Método que retorna a lista de IDs dos registros selecionados.
|