@sankhyalabs/sankhyablocks-docs 9.1.9-rc.2 → 9.1.10
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.
@@ -9,28 +9,28 @@
|
|
9
9
|
|
10
10
|
| Property | Attribute | Description | Type | Default |
|
11
11
|
| ----------------- | ------------------- | -------------------------------------------------------------------------------------- | ------------------- | ----------- |
|
12
|
-
| `configName` | `config-name` | Nome da configuração
|
13
|
-
| `entityUri` | `entity-uri` |
|
14
|
-
| `filterId` | `filter-id` |
|
15
|
-
| `isDefaultFilter` | `is-default-filter` |
|
12
|
+
| `configName` | `config-name` | Nome da configuração. Serve para distinguir várias instâncias do componente. | `string` | `undefined` |
|
13
|
+
| `entityUri` | `entity-uri` | Responsável por receber a URI da entidade. | `string` | `undefined` |
|
14
|
+
| `filterId` | `filter-id` | Id do filtro que será carregado. | `string` | `undefined` |
|
15
|
+
| `isDefaultFilter` | `is-default-filter` | Define se o filtro em questão é um filtro padrão. | `boolean` | `false` |
|
16
16
|
| `messagesBuilder` | -- | Responsável por flexibilizar e padronizar o uso de mensagens nos blocos de construção. | `SnkMessageBuilder` | `undefined` |
|
17
|
-
| `resourceID` | `resource-i-d` |
|
17
|
+
| `resourceID` | `resource-i-d` | Nome da configuração. Serve para distinguir várias instâncias do componente. | `string` | `undefined` |
|
18
18
|
|
19
19
|
|
20
20
|
## Events
|
21
21
|
|
22
|
-
| Event | Description
|
23
|
-
| ------------- |
|
24
|
-
| `ezAfterSave` |
|
25
|
-
| `ezCancel` |
|
26
|
-
| `ezSave` |
|
22
|
+
| Event | Description | Type |
|
23
|
+
| ------------- | ----------- | --------------------- |
|
24
|
+
| `ezAfterSave` | | `CustomEvent<void>` |
|
25
|
+
| `ezCancel` | | `CustomEvent<void>` |
|
26
|
+
| `ezSave` | | `CustomEvent<string>` |
|
27
27
|
|
28
28
|
|
29
29
|
## Methods
|
30
30
|
|
31
31
|
### `createPersonalizedFilter() => Promise<void>`
|
32
32
|
|
33
|
-
|
33
|
+
|
34
34
|
|
35
35
|
#### Returns
|
36
36
|
|
@@ -9,17 +9,17 @@
|
|
9
9
|
|
10
10
|
| Property | Attribute | Description | Type | Default |
|
11
11
|
| ----------------- | --------- | -------------------------------------------------------------------------------------- | ------------------- | ----------- |
|
12
|
-
| `breadcrumbItens` | -- | Define os itens que serão apresentados
|
13
|
-
| `label` | `label` | Define o título do header
|
12
|
+
| `breadcrumbItens` | -- | Define os itens que serão apresentados pelo breadcrumb | `IBreadcrumbItem[]` | `undefined` |
|
13
|
+
| `label` | `label` | Define o título do header | `string` | `undefined` |
|
14
14
|
| `messagesBuilder` | -- | Responsável por flexibilizar e padronizar o uso de mensagens nos blocos de construção. | `SnkMessageBuilder` | `undefined` |
|
15
15
|
|
16
16
|
|
17
17
|
## Events
|
18
18
|
|
19
|
-
| Event | Description
|
20
|
-
| --------------------- |
|
21
|
-
| `clickBreadcrumbItem` | Emitido quando algum item do breadcrumb é clicado
|
22
|
-
| `exit` | Emitido quando o botão
|
19
|
+
| Event | Description | Type |
|
20
|
+
| --------------------- | ------------------------------------------------- | ------------------------------ |
|
21
|
+
| `clickBreadcrumbItem` | Emitido quando algum item do breadcrumb é clicado | `CustomEvent<IBreadcrumbItem>` |
|
22
|
+
| `exit` | Emitido quando o botão voltar é acionado | `CustomEvent<void>` |
|
23
23
|
|
24
24
|
|
25
25
|
## Dependencies
|
@@ -7,57 +7,57 @@
|
|
7
7
|
|
8
8
|
## Properties
|
9
9
|
|
10
|
-
| Property | Attribute | Description
|
11
|
-
| ------------------------------- | ----------------------------------- |
|
12
|
-
| `actionsList` | -- |
|
13
|
-
| `autoFocus` | `auto-focus` |
|
14
|
-
| `autoLoad` | `auto-load` |
|
15
|
-
| `configName` | `config-name` |
|
16
|
-
| `dataState` | -- |
|
17
|
-
| `dataUnit` | -- |
|
18
|
-
| `domainMessagesBuilder` | `domain-messages-builder` |
|
19
|
-
| `enableContinuousInsert` | `enable-continuous-insert` |
|
20
|
-
| `enableGridInsert` | `enable-grid-insert` |
|
21
|
-
| `enableLockManagerLoadingComp` | `enable-lock-manager-loading-comp` |
|
22
|
-
| `enableLockManagerTaskbarClick` | `enable-lock-manager-taskbar-click` |
|
23
|
-
| `entityName` | `entity-name` |
|
24
|
-
| `formConfig` | -- |
|
25
|
-
| `formLegacyConfigName` | `form-legacy-config-name` |
|
26
|
-
| `gridConfig` | -- |
|
27
|
-
| `gridLegacyConfigName` | `grid-legacy-config-name` |
|
28
|
-
| `ignoreReadOnlyFormFields` | `ignore-read-only-form-fields` |
|
29
|
-
| `layoutFormConfig` | `layout-form-config` |
|
30
|
-
| `messagesBuilder` | -- |
|
31
|
-
| `mode` | `mode` |
|
32
|
-
| `multipleEditionEnabled` | `multiple-edition-enabled` |
|
33
|
-
| `multipleSelection` | `multiple-selection` |
|
34
|
-
| `outlineMode` | `outline-mode` |
|
35
|
-
| `pageSize` | `page-size` |
|
36
|
-
| `paginationCounterMode` | `pagination-counter-mode` |
|
37
|
-
| `resourceID` | `resource-i-d` |
|
38
|
-
| `showConfiguratorButtons` | `show-configurator-buttons` |
|
39
|
-
| `taskbarManager` | -- |
|
40
|
-
| `useCancelConfirm` | `use-cancel-confirm` |
|
41
|
-
| `useEnterLikeTab` | `use-enter-like-tab` |
|
10
|
+
| Property | Attribute | Description | Type | Default |
|
11
|
+
| ------------------------------- | ----------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------- | ------------------------- |
|
12
|
+
| `actionsList` | -- | Ações a serem colocadas no botão "Mais opções" do componente snk-taskbar. | `Action[]` | `undefined` |
|
13
|
+
| `autoFocus` | `auto-focus` | Define se a grid será focada ao ser carregada. | `boolean` | `true` |
|
14
|
+
| `autoLoad` | `auto-load` | Define se a carga dos dados será feita assim que o componente for carregado. | `boolean` | `undefined` |
|
15
|
+
| `configName` | `config-name` | Usado para salvar as configurações dos blocos de construção. | `string` | `undefined` |
|
16
|
+
| `dataState` | -- | | `DataState` | `undefined` |
|
17
|
+
| `dataUnit` | -- | | `DataUnit` | `undefined` |
|
18
|
+
| `domainMessagesBuilder` | `domain-messages-builder` | Define a chave customizada para sobrescrever as mensagens (Não pegando pela entidade) | `string` | `undefined` |
|
19
|
+
| `enableContinuousInsert` | `enable-continuous-insert` | | `boolean` | `false` |
|
20
|
+
| `enableGridInsert` | `enable-grid-insert` | Ativa inserção de registros no modo grade. | `boolean` | `false` |
|
21
|
+
| `enableLockManagerLoadingComp` | `enable-lock-manager-loading-comp` | Define se o componente deve usar o LockManager para controle de carregamento da aplicação | `boolean` | `false` |
|
22
|
+
| `enableLockManagerTaskbarClick` | `enable-lock-manager-taskbar-click` | Ativa o gerenciamento de locks na grade pela Taskbar. | `boolean` | `false` |
|
23
|
+
| `entityName` | `entity-name` | Define o nome da entidade que o componente vai utilizar para fazer as operações de CRUD | `string` | `undefined` |
|
24
|
+
| `formConfig` | -- | | `IFormConfig` | `undefined` |
|
25
|
+
| `formLegacyConfigName` | `form-legacy-config-name` | Chave da configuração legado do formulário. | `string` | `undefined` |
|
26
|
+
| `gridConfig` | -- | | `IGridConfig` | `undefined` |
|
27
|
+
| `gridLegacyConfigName` | `grid-legacy-config-name` | Chave da configuração legado da grade. | `string` | `undefined` |
|
28
|
+
| `ignoreReadOnlyFormFields` | `ignore-read-only-form-fields` | Ignora os campos "somente leitura" no modo de inserção. | `boolean` | `false` |
|
29
|
+
| `layoutFormConfig` | `layout-form-config` | Define se o LayoutFormConfig será exibido no configurador. | `boolean` | `false` |
|
30
|
+
| `messagesBuilder` | -- | Responsável por flexibilizar e padronizar o uso de mensagens nos blocos de construção. | `SnkMessageBuilder` | `undefined` |
|
31
|
+
| `mode` | `mode` | | `SIMPLE_CRUD_MODE.IN_MEMORY \| SIMPLE_CRUD_MODE.SERVER` | `SIMPLE_CRUD_MODE.SERVER` |
|
32
|
+
| `multipleEditionEnabled` | `multiple-edition-enabled` | Habilita a edição de múltiplos registros simultâneos. | `boolean` | `true` |
|
33
|
+
| `multipleSelection` | `multiple-selection` | Determina se pode haver mais de uma linha selecionada na grade. | `boolean` | `undefined` |
|
34
|
+
| `outlineMode` | `outline-mode` | Altera visualmente as sombras e bordas do componente Quando false, aplica o padrão de sombras ao componente (Utilizar quando for o elemento principal do layout) Quando true, aplica o padrão de outline ao componente (Utilizar quando estiver contido em outro elemento como um painel ou pop-up) | `boolean` | `false` |
|
35
|
+
| `pageSize` | `page-size` | Determina quantas linhas são retornadas por página. | `number` | `150` |
|
36
|
+
| `paginationCounterMode` | `pagination-counter-mode` | Define se a grid será focada ao ser carregada. | `"auto" \| "hidden" \| "show"` | `'auto'` |
|
37
|
+
| `resourceID` | `resource-i-d` | Identificador de recursos como configurações e acesso. | `string` | `undefined` |
|
38
|
+
| `showConfiguratorButtons` | `show-configurator-buttons` | Usado para exibir os botões de ação do snk-configurator. | `boolean` | `false` |
|
39
|
+
| `taskbarManager` | -- | Gerenciador das barras de tarefas. É possível determinar botões específicos ou mesmo gerenciar o estado dos botões. | `TaskbarManager` | `undefined` |
|
40
|
+
| `useCancelConfirm` | `use-cancel-confirm` | | `boolean` | `true` |
|
41
|
+
| `useEnterLikeTab` | `use-enter-like-tab` | Quando verdadeiro, o ENTER fará a navegação como se fosse a tecla TAB na grade. | `boolean` | `false` |
|
42
42
|
|
43
43
|
|
44
44
|
## Events
|
45
45
|
|
46
|
-
| Event | Description
|
47
|
-
| -------------------- |
|
48
|
-
| `actionClick` |
|
49
|
-
| `configuratorCancel` |
|
50
|
-
| `configuratorSave` |
|
51
|
-
| `dataStateChange` |
|
52
|
-
| `dataUnitReady` |
|
53
|
-
| `formItemsReady` |
|
46
|
+
| Event | Description | Type |
|
47
|
+
| -------------------- | ------------------------------------------------------------------------------- | ---------------------------- |
|
48
|
+
| `actionClick` | Emitido sempre que houver click de botão ou ação. | `CustomEvent<string>` |
|
49
|
+
| `configuratorCancel` | Emitido quando cancela o salvamento da configuração no configurator do CRUD. | `CustomEvent<any>` |
|
50
|
+
| `configuratorSave` | Emitido quando salva a configuração no configurator do CRUD. | `CustomEvent<any>` |
|
51
|
+
| `dataStateChange` | Emitido quando há qualquer mudança de estado no DataUnit. | `CustomEvent<DataState>` |
|
52
|
+
| `dataUnitReady` | Emitido quando o DataUnit está pronto. | `CustomEvent<DataUnit>` |
|
53
|
+
| `formItemsReady` | Responsável por notificar quando ocorrer a renderização de itens do formulário. | `CustomEvent<HTMLElement[]>` |
|
54
54
|
|
55
55
|
|
56
56
|
## Methods
|
57
57
|
|
58
58
|
### `addCustomEditor(fieldName: string, customEditor: ICustomEditor) => Promise<void>`
|
59
59
|
|
60
|
-
|
60
|
+
Registra um editor customizado para campos da grade e formulário.
|
61
61
|
|
62
62
|
#### Returns
|
63
63
|
|
@@ -67,7 +67,7 @@ Type: `Promise<void>`
|
|
67
67
|
|
68
68
|
### `addCustomValueFormatter(columnName: string, customFormatter: ICustomFormatter) => Promise<void>`
|
69
69
|
|
70
|
-
|
70
|
+
Registra um formatador de valores para uma coluna da grid.
|
71
71
|
|
72
72
|
#### Returns
|
73
73
|
|
@@ -77,7 +77,7 @@ Type: `Promise<void>`
|
|
77
77
|
|
78
78
|
### `addGridCustomRender(fieldName: string, customRender: ICustomRender) => Promise<void>`
|
79
79
|
|
80
|
-
|
80
|
+
Registra um render customizado para colunas da grid.
|
81
81
|
|
82
82
|
#### Returns
|
83
83
|
|
@@ -87,7 +87,7 @@ Type: `Promise<void>`
|
|
87
87
|
|
88
88
|
### `closeConfigurator() => Promise<void>`
|
89
89
|
|
90
|
-
|
90
|
+
Usado para fechar o configurator do CRUD
|
91
91
|
|
92
92
|
#### Returns
|
93
93
|
|
@@ -103,13 +103,11 @@ Type: `Promise<void>`
|
|
103
103
|
|
104
104
|
Type: `Promise<Record[]>`
|
105
105
|
|
106
|
-
Uma promessa que resolve com a lista de registros.
|
107
|
-
|
108
106
|
---
|
109
107
|
|
110
108
|
### `goToView(view: VIEW_MODE) => Promise<void>`
|
111
109
|
|
112
|
-
|
110
|
+
Usado para alternar a visão entre GRID e FORM externamente.
|
113
111
|
|
114
112
|
#### Returns
|
115
113
|
|
@@ -119,7 +117,7 @@ Type: `Promise<void>`
|
|
119
117
|
|
120
118
|
### `openConfigurator() => Promise<void>`
|
121
119
|
|
122
|
-
|
120
|
+
Usado para abrir o configurator do CRUD
|
123
121
|
|
124
122
|
#### Returns
|
125
123
|
|
@@ -129,7 +127,7 @@ Type: `Promise<void>`
|
|
129
127
|
|
130
128
|
### `removeCustomValueFormatter(columnName: string) => Promise<void>`
|
131
129
|
|
132
|
-
|
130
|
+
Remove o formatador de valores de uma coluna da grid.
|
133
131
|
|
134
132
|
#### Returns
|
135
133
|
|
@@ -139,7 +137,7 @@ Type: `Promise<void>`
|
|
139
137
|
|
140
138
|
### `setFieldProp(fieldName: string, propName: string, value: any) => Promise<void>`
|
141
139
|
|
142
|
-
|
140
|
+
Altera/adiciona uma propriedade nos metadados do campo.
|
143
141
|
|
144
142
|
#### Returns
|
145
143
|
|