@sankhyalabs/sankhyablocks-docs 8.16.0-dev.1 → 8.16.0-dev.100
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.
- package/components/snk-application/readme.md +93 -8
- package/components/snk-attach/readme.md +4 -5
- package/components/snk-configurator/readme.md +7 -0
- package/components/snk-crud/readme.md +39 -28
- package/components/snk-crud/subcomponents/readme.md +7 -2
- package/components/snk-crud/subcomponents/snk-detail-view/readme.md +22 -22
- package/components/snk-data-unit/readme.md +15 -14
- package/components/snk-filter-bar/readme.md +15 -12
- package/components/snk-form-config/readme.md +6 -7
- package/components/snk-grid/readme.md +40 -25
- package/components/snk-layout-form-config/readme.md +41 -0
- package/components/snk-layout-form-config/snk-view-representation/readme.md +30 -0
- package/components/snk-pesquisa/pesquisa-grid/readme.md +42 -0
- package/components/snk-pesquisa/pesquisa-tree/readme.md +53 -0
- package/components/snk-pesquisa/readme.md +16 -5
- package/components/snk-simple-crud/readme.md +36 -30
- package/components/snk-simple-form-config/readme.md +51 -0
- package/components/snk-taskbar/readme.md +5 -3
- package/components/teste-pesquisa/readme.md +2 -0
- package/package.json +1 -1
@@ -7,13 +7,14 @@
|
|
7
7
|
|
8
8
|
## Properties
|
9
9
|
|
10
|
-
| Property
|
11
|
-
|
|
12
|
-
| `configName`
|
13
|
-
| `
|
14
|
-
| `
|
15
|
-
| `
|
16
|
-
| `
|
10
|
+
| Property | Attribute | Description | Type | Default |
|
11
|
+
| ----------------------------- | --------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------ | ----------- |
|
12
|
+
| `configName` | `config-name` | Usado para salvar as configurações dos blocos de construção. | `string` | `undefined` |
|
13
|
+
| `enableLockManagerLoadingApp` | `enable-lock-manager-loading-app` | Define se o componente deve usar o LockManager para controle de carregamento da aplicação | `boolean` | `undefined` |
|
14
|
+
| `formLegacyConfigName` | `form-legacy-config-name` | Chave da configuração legado do formulário. | `string` | `undefined` |
|
15
|
+
| `gridLegacyConfigName` | `grid-legacy-config-name` | Chave da configuração legado da grade. | `string` | `undefined` |
|
16
|
+
| `loadByPK` | -- | Usado para receber um parâmetro na inicialização da tela, e utilizá-lo conforme necessário caso a tela receba um parâmetro, e, esta propriedade não seja informada é criado um filtro de forma automática através do método defaultLoadByPk | `(objPK: { pk: any; }, redirectFrom?: string) => void` | `undefined` |
|
17
|
+
| `messagesBuilder` | -- | | `SnkMessageBuilder` | `undefined` |
|
17
18
|
|
18
19
|
|
19
20
|
## Events
|
@@ -36,6 +37,16 @@ Type: `Promise<void>`
|
|
36
37
|
|
37
38
|
|
38
39
|
|
40
|
+
### `addLoadingLock(forceReady?: boolean, templateSkeletonType?: TEMPLATES_SKELETON) => Promise<() => void>`
|
41
|
+
|
42
|
+
|
43
|
+
|
44
|
+
#### Returns
|
45
|
+
|
46
|
+
Type: `Promise<() => void>`
|
47
|
+
|
48
|
+
|
49
|
+
|
39
50
|
### `addPendingAction(actionsLocker: string, action: Function) => Promise<void>`
|
40
51
|
|
41
52
|
Adiciona uma ação pendente que deve ser executada por um determinado locker.
|
@@ -76,6 +87,16 @@ Type: `Promise<any>`
|
|
76
87
|
|
77
88
|
|
78
89
|
|
90
|
+
### `clearPopUpTitle() => Promise<void>`
|
91
|
+
|
92
|
+
|
93
|
+
|
94
|
+
#### Returns
|
95
|
+
|
96
|
+
Type: `Promise<void>`
|
97
|
+
|
98
|
+
|
99
|
+
|
79
100
|
### `closeModal() => Promise<void>`
|
80
101
|
|
81
102
|
Fecha o Modal e limpa o conteúdo.
|
@@ -138,7 +159,18 @@ Type: `Promise<IOption | IOption[]>`
|
|
138
159
|
|
139
160
|
|
140
161
|
|
141
|
-
### `
|
162
|
+
### `executePreparedSearchPlus(mode: string, argument: string, options: any) => Promise<Array<IOption> | IOption>`
|
163
|
+
|
164
|
+
Realiza a pesquisa de registros
|
165
|
+
Ex.: snk-config-options
|
166
|
+
|
167
|
+
#### Returns
|
168
|
+
|
169
|
+
Type: `Promise<IOption | IOption[]>`
|
170
|
+
|
171
|
+
|
172
|
+
|
173
|
+
### `executeSearch(searchArgument: ISearchArgument, fieldName: string, dataUnit: DataUnit, ctxOptions?: any) => Promise<Array<IOption> | IOption>`
|
142
174
|
|
143
175
|
Obtém as opções em componentes de pesquisa
|
144
176
|
Ex.: snk-config-options
|
@@ -281,6 +313,16 @@ Type: `Promise<KeyboardManager>`
|
|
281
313
|
|
282
314
|
the keyboard manager
|
283
315
|
|
316
|
+
### `getLayoutFormConfig() => Promise<LayoutFormConfig>`
|
317
|
+
|
318
|
+
Obtém o notificador de Layout de formulario.
|
319
|
+
|
320
|
+
#### Returns
|
321
|
+
|
322
|
+
Type: `Promise<LayoutFormConfig>`
|
323
|
+
|
324
|
+
the Configurador de Layout do Formulario
|
325
|
+
|
284
326
|
### `getResourceID() => Promise<string>`
|
285
327
|
|
286
328
|
Obtém o resourceID da tela em questão.
|
@@ -401,6 +443,16 @@ Type: `Promise<Map<string, number>>`
|
|
401
443
|
|
402
444
|
|
403
445
|
|
446
|
+
### `markToReload(templateSkeletonType?: TEMPLATES_SKELETON) => Promise<void>`
|
447
|
+
|
448
|
+
|
449
|
+
|
450
|
+
#### Returns
|
451
|
+
|
452
|
+
Type: `Promise<void>`
|
453
|
+
|
454
|
+
|
455
|
+
|
404
456
|
### `message(title: string, message: string, icon?: string, options?: MessageOptions) => Promise<boolean>`
|
405
457
|
|
406
458
|
Exibe um diálogo de mensagem comum
|
@@ -421,6 +473,17 @@ Type: `Promise<void>`
|
|
421
473
|
|
422
474
|
|
423
475
|
|
476
|
+
### `preloadMangerRemoveRecord(dataUnit: DataUnit, recordsIDs: Array<string>) => Promise<void>`
|
477
|
+
|
478
|
+
Remove registro do cache do PreLoader do dataunit.
|
479
|
+
Deve ser usado quando existe um dataunit usando loader do application, mas o removeLoader está sendo sobrescrito.
|
480
|
+
|
481
|
+
#### Returns
|
482
|
+
|
483
|
+
Type: `Promise<void>`
|
484
|
+
|
485
|
+
|
486
|
+
|
424
487
|
### `removeClientEvent(eventID: String) => Promise<void>`
|
425
488
|
|
426
489
|
Remove um client event para o DataFetcher da aplicação.
|
@@ -441,6 +504,16 @@ Type: `Promise<any>`
|
|
441
504
|
|
442
505
|
|
443
506
|
|
507
|
+
### `setPopUpTitle(title: string) => Promise<void>`
|
508
|
+
|
509
|
+
|
510
|
+
|
511
|
+
#### Returns
|
512
|
+
|
513
|
+
Type: `Promise<void>`
|
514
|
+
|
515
|
+
|
516
|
+
|
444
517
|
### `setSearchFilterContext(name: string, value: string) => Promise<void>`
|
445
518
|
|
446
519
|
Atribui valor para parâmetros de contexto no componente de pesquisa.
|
@@ -483,6 +556,16 @@ Type: `Promise<void>`
|
|
483
556
|
|
484
557
|
|
485
558
|
|
559
|
+
### `showScrimApp(active: boolean) => Promise<void>`
|
560
|
+
|
561
|
+
|
562
|
+
|
563
|
+
#### Returns
|
564
|
+
|
565
|
+
Type: `Promise<void>`
|
566
|
+
|
567
|
+
|
568
|
+
|
486
569
|
### `success(title: string, message: string, icon?: string, options?: MessageOptions) => Promise<boolean>`
|
487
570
|
|
488
571
|
Exibe o diálogo de sucesso de acordo com os parâmetros passados.
|
@@ -548,6 +631,8 @@ SnkApplication carregado.
|
|
548
631
|
```mermaid
|
549
632
|
graph TD;
|
550
633
|
snk-application --> snk-pesquisa
|
634
|
+
snk-pesquisa --> pesquisa-grid
|
635
|
+
snk-pesquisa --> pesquisa-tree
|
551
636
|
teste-pesquisa --> snk-application
|
552
637
|
style snk-application fill:#f9f,stroke:#333,stroke-width:4px
|
553
638
|
```
|
@@ -42,9 +42,9 @@
|
|
42
42
|
graph TD;
|
43
43
|
snk-attach --> snk-simple-bar
|
44
44
|
snk-attach --> snk-simple-crud
|
45
|
-
snk-simple-crud --> snk-data-unit
|
46
45
|
snk-simple-crud --> snk-taskbar
|
47
|
-
snk-simple-crud --> snk-
|
46
|
+
snk-simple-crud --> snk-data-unit
|
47
|
+
snk-simple-crud --> snk-simple-form-config
|
48
48
|
snk-simple-crud --> snk-configurator
|
49
49
|
snk-simple-crud --> snk-grid-config
|
50
50
|
snk-simple-crud --> snk-data-exporter
|
@@ -54,9 +54,8 @@ graph TD;
|
|
54
54
|
snk-taskbar --> snk-actions-button
|
55
55
|
snk-taskbar --> taskbar-actions-button
|
56
56
|
snk-data-exporter --> snk-exporter-email-sender
|
57
|
-
snk-
|
58
|
-
snk-form-config --> snk-
|
59
|
-
snk-form-config --> snk-tab-config
|
57
|
+
snk-configurator --> snk-layout-form-config
|
58
|
+
snk-layout-form-config --> snk-view-representation
|
60
59
|
snk-grid-config --> snk-select-box
|
61
60
|
snk-crud --> snk-attach
|
62
61
|
snk-detail-view --> snk-attach
|
@@ -11,6 +11,7 @@
|
|
11
11
|
| ------------------- | --------------------- | -------------------------------------------------------------------------------------- | ---------------------------------------------------------- | ---------------- |
|
12
12
|
| `configName` | `config-name` | Usado para guardar ou recuperar as configurações do formulário. | `string` | `undefined` |
|
13
13
|
| `customContainerId` | `custom-container-id` | ID do container que contém os elementos customizados do configurator. | `string` | `undefined` |
|
14
|
+
| `layoutFormConfig` | `layout-form-config` | Define se o LayoutFormConfig será exibido no configurador. | `boolean` | `false` |
|
14
15
|
| `messagesBuilder` | -- | Responsável por flexibilizar e padronizar o uso de mensagens nos blocos de construção. | `SnkMessageBuilder` | `undefined` |
|
15
16
|
| `resourceID` | `resource-i-d` | Identificador de recursos como configurações e acesso. | `string` | `undefined` |
|
16
17
|
| `showActionButtons` | `show-action-buttons` | Usado para exibir os botões de ação | `boolean` | `false` |
|
@@ -58,9 +59,15 @@ Type: `Promise<void>`
|
|
58
59
|
- [snk-guides-viewer](../snk-crud/subcomponents)
|
59
60
|
- [snk-simple-crud](../snk-simple-crud)
|
60
61
|
|
62
|
+
### Depends on
|
63
|
+
|
64
|
+
- [snk-layout-form-config](../snk-layout-form-config)
|
65
|
+
|
61
66
|
### Graph
|
62
67
|
```mermaid
|
63
68
|
graph TD;
|
69
|
+
snk-configurator --> snk-layout-form-config
|
70
|
+
snk-layout-form-config --> snk-view-representation
|
64
71
|
snk-crud --> snk-configurator
|
65
72
|
snk-guides-viewer --> snk-configurator
|
66
73
|
snk-simple-crud --> snk-configurator
|
@@ -7,36 +7,45 @@
|
|
7
7
|
|
8
8
|
## Properties
|
9
9
|
|
10
|
-
| Property
|
11
|
-
|
|
12
|
-
| `actionsList`
|
13
|
-
| `autoFocus`
|
14
|
-
| `autoLoad`
|
15
|
-
| `configName`
|
16
|
-
| `disablePersonalizedFilter`
|
17
|
-
| `
|
18
|
-
| `
|
19
|
-
| `
|
20
|
-
| `
|
21
|
-
| `
|
22
|
-
| `
|
23
|
-
| `
|
24
|
-
| `
|
25
|
-
| `
|
26
|
-
| `
|
27
|
-
| `
|
28
|
-
| `
|
29
|
-
| `
|
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
|
+
| `disablePersonalizedFilter` | `disable-personalized-filter` | Desabilita a apresentação da opção de filtros personalizados na filter bar (chip de filtros) e no modal lateral de filtros (container de filtros personalizados). | `boolean` | `undefined` |
|
17
|
+
| `domainMessagesBuilder` | `domain-messages-builder` | Define a chave customizada para sobrescrever as mensagens (Não pegando pela entidade) | `string` | `undefined` |
|
18
|
+
| `enableGridInsert` | `enable-grid-insert` | Ativa inserção de registros no modo grade. | `boolean` | `false` |
|
19
|
+
| `enableLockManagerLoadingComp` | `enable-lock-manager-loading-comp` | Define se o componente deve usar o LockManager para controle de carregamento da aplicação | `boolean` | `false` |
|
20
|
+
| `enableLockManagerTaskbarClick` | `enable-lock-manager-taskbar-click` | Ativa o gerenciamento de locks na grade pela Taskbar. | `boolean` | `false` |
|
21
|
+
| `filterBarLegacyConfigName` | `filter-bar-legacy-config-name` | Chave da configuração legado da barra de filtros. | `string` | `undefined` |
|
22
|
+
| `filterBarTitle` | `filter-bar-title` | Título que será apresentado na barra de filtros | `string` | `undefined` |
|
23
|
+
| `formLegacyConfigName` | `form-legacy-config-name` | Chave da configuração legado do formulário. | `string` | `undefined` |
|
24
|
+
| `gridLegacyConfigName` | `grid-legacy-config-name` | Chave da configuração legado da grade. | `string` | `undefined` |
|
25
|
+
| `ignoreReadOnlyFormFields` | `ignore-read-only-form-fields` | Ignora os campos "somente leitura" no modo de inserção. | `boolean` | `undefined` |
|
26
|
+
| `layoutFormConfig` | `layout-form-config` | Define se o LayoutFormConfig será exibido no configurador. | `boolean` | `false` |
|
27
|
+
| `messagesBuilder` | -- | Responsável por flexibilizar e padronizar o uso de mensagens nos blocos de construção. | `SnkMessageBuilder` | `undefined` |
|
28
|
+
| `multipleSelection` | `multiple-selection` | Determina se pode haver mais de uma linha selecionada na grade. | `boolean` | `true` |
|
29
|
+
| `presentationMode` | `presentation-mode` | Altera o modo de apresentação dos botões do snk-taskbar. | `PresentationMode.PRIMARY \| PresentationMode.SECONDARY \| PresentationMode.SINGLE_TASKBAR` | `PresentationMode.PRIMARY` |
|
30
|
+
| `recordsValidator` | -- | Validador responsável por checar a integridade das informações do registro. | `IRecordValidator` | `undefined` |
|
31
|
+
| `selectionToastConfig` | -- | Configuração da seleção de grade no toast. | `ISelectionToastConfig` | `undefined` |
|
32
|
+
| `setCustomFormTitle` | -- | Define uma função para configurar um título cusotmizado no modo formulário. | `() => string` | `undefined` |
|
33
|
+
| `showActionButtons` | `show-action-buttons` | Usado para exibir os botões de ação do snk-configurator | `boolean` | `false` |
|
34
|
+
| `statusResolver` | -- | Configuração do valor da coluna de status. Exemplo: { "RECDESP": { "-1" : "#BD0025", "1" : "#157A00" } } | `((data: object) => string) \| IStatusResolver` | `undefined` |
|
35
|
+
| `strategyExporter` | `strategy-exporter` | Modo de exportação dos dados. | `"ClientSideExporterStrategy" \| "ServerSideExporterStrategy"` | `ExporterStrategy.SERVER_SIDE` |
|
36
|
+
| `taskbarManager` | -- | Gerenciador das barras de tarefas. É possível determinar botões específicos ou mesmo gerenciar o estado dos botões. | `TaskbarManager` | `undefined` |
|
37
|
+
| `useEnterLikeTab` | `use-enter-like-tab` | Quando verdadeiro, o ENTER fará a navegação como se fosse a tecla TAB na grade. | `boolean` | `false` |
|
30
38
|
|
31
39
|
|
32
40
|
## Events
|
33
41
|
|
34
|
-
| Event | Description | Type
|
35
|
-
| -------------------- | ------------------------------------------------------------------------------- |
|
36
|
-
| `actionClick` | Emitido pela taskbar sempre que houver click de botão ou ação. | `CustomEvent<string>`
|
37
|
-
| `configuratorCancel` | Emitido quando cancela o salvamento da configuração no configurator do CRUD. | `CustomEvent<any>`
|
38
|
-
| `configuratorSave` | Emitido quando salva a configuração no configurator do CRUD. | `CustomEvent<any>`
|
39
|
-
| `formItemsReady` | Responsável por notificar quando ocorrer a renderização de itens do formulário. | `CustomEvent<HTMLElement[]>`
|
42
|
+
| Event | Description | Type |
|
43
|
+
| -------------------- | ------------------------------------------------------------------------------- | ----------------------------------------------------------------------- |
|
44
|
+
| `actionClick` | Emitido pela taskbar sempre que houver click de botão ou ação. | `CustomEvent<string>` |
|
45
|
+
| `configuratorCancel` | Emitido quando cancela o salvamento da configuração no configurator do CRUD. | `CustomEvent<any>` |
|
46
|
+
| `configuratorSave` | Emitido quando salva a configuração no configurator do CRUD. | `CustomEvent<any>` |
|
47
|
+
| `formItemsReady` | Responsável por notificar quando ocorrer a renderização de itens do formulário. | `CustomEvent<HTMLElement[]>` |
|
48
|
+
| `viewModeChanged` | | `CustomEvent<VIEW_MODE.ATTACHMENT \| VIEW_MODE.FORM \| VIEW_MODE.GRID>` |
|
40
49
|
|
41
50
|
|
42
51
|
## Methods
|
@@ -207,14 +216,16 @@ graph TD;
|
|
207
216
|
snk-detail-view --> taskbar-actions-button
|
208
217
|
snk-attach --> snk-simple-bar
|
209
218
|
snk-attach --> snk-simple-crud
|
210
|
-
snk-simple-crud --> snk-data-unit
|
211
219
|
snk-simple-crud --> snk-taskbar
|
212
|
-
snk-simple-crud --> snk-
|
220
|
+
snk-simple-crud --> snk-data-unit
|
221
|
+
snk-simple-crud --> snk-simple-form-config
|
213
222
|
snk-simple-crud --> snk-configurator
|
214
223
|
snk-simple-crud --> snk-grid-config
|
215
224
|
snk-simple-crud --> snk-data-exporter
|
216
225
|
snk-simple-crud --> snk-actions-button
|
217
226
|
snk-simple-crud --> taskbar-actions-button
|
227
|
+
snk-configurator --> snk-layout-form-config
|
228
|
+
snk-layout-form-config --> snk-view-representation
|
218
229
|
snk-form-config --> snk-field-config
|
219
230
|
snk-form-config --> snk-config-options
|
220
231
|
snk-form-config --> snk-tab-config
|
@@ -15,8 +15,11 @@
|
|
15
15
|
| `dataState` | -- | Representa o estado do dataUnit master. | `DataState` | `undefined` |
|
16
16
|
| `dataUnit` | -- | Instância do DataUnit master. | `DataUnit` | `undefined` |
|
17
17
|
| `detailTaskbarCustomContainerId` | `detail-taskbar-custom-container-id` | Define o identificador do container de elementos customizados da Taskbar da aba de detalhes. | `string` | `undefined` |
|
18
|
+
| `enableGridInsert` | `enable-grid-insert` | Ativa inserção de registros no modo grade. | `boolean` | `false` |
|
18
19
|
| `entityPath` | `entity-path` | Determina todo o caminho de entidades. | `string` | `undefined` |
|
19
20
|
| `formLegacyConfigName` | `form-legacy-config-name` | Chave da configuração legado do formulário. | `string` | `undefined` |
|
21
|
+
| `getCustomTitle` | -- | Fornece uma função para obter um título customizado do formulário. | `() => string` | `undefined` |
|
22
|
+
| `ignoreReadOnlyFormFields` | `ignore-read-only-form-fields` | Ignora os campos "somente leitura" no modo de inserção. | `boolean` | `undefined` |
|
20
23
|
| `masterFormConfig` | -- | Configuração do formulário master. | `IFormConfig` | `undefined` |
|
21
24
|
| `messagesBuilder` | -- | Responsável por flexibilizar e padronizar o uso de mensagens nos blocos de construção. | `SnkMessageBuilder` | `undefined` |
|
22
25
|
| `presentationMode` | `presentation-mode` | Altera o modo de apresentação dos botões do snk-taskbar. | `PresentationMode.PRIMARY \| PresentationMode.SECONDARY \| PresentationMode.SINGLE_TASKBAR` | `undefined` |
|
@@ -162,14 +165,16 @@ graph TD;
|
|
162
165
|
snk-grid-config --> snk-select-box
|
163
166
|
snk-attach --> snk-simple-bar
|
164
167
|
snk-attach --> snk-simple-crud
|
165
|
-
snk-simple-crud --> snk-data-unit
|
166
168
|
snk-simple-crud --> snk-taskbar
|
167
|
-
snk-simple-crud --> snk-
|
169
|
+
snk-simple-crud --> snk-data-unit
|
170
|
+
snk-simple-crud --> snk-simple-form-config
|
168
171
|
snk-simple-crud --> snk-configurator
|
169
172
|
snk-simple-crud --> snk-grid-config
|
170
173
|
snk-simple-crud --> snk-data-exporter
|
171
174
|
snk-simple-crud --> snk-actions-button
|
172
175
|
snk-simple-crud --> taskbar-actions-button
|
176
|
+
snk-configurator --> snk-layout-form-config
|
177
|
+
snk-layout-form-config --> snk-view-representation
|
173
178
|
snk-form-config --> snk-field-config
|
174
179
|
snk-form-config --> snk-config-options
|
175
180
|
snk-form-config --> snk-tab-config
|
@@ -7,23 +7,24 @@
|
|
7
7
|
|
8
8
|
## Properties
|
9
9
|
|
10
|
-
| Property | Attribute | Description | Type
|
11
|
-
| -------------------------- | ----------------------------- | ------------------------------------------------------------------------- |
|
12
|
-
| `branchGuide` | -- | | `IGuideItem`
|
13
|
-
| `canEdit` | `can-edit` | Define se a edição está habilitada na grid. | `boolean`
|
14
|
-
| `customEditors` | -- | Registra um editor customizado para campos da grade e formulário. | `PropsCustomEditor`
|
15
|
-
| `customRenders` | -- | Render customizados da grade. | `PropsCustomRender`
|
16
|
-
| `dataState` | -- | Representa o estado do dataUnit detail. | `DataState`
|
17
|
-
| `dataUnit` | -- | Instância do DataUnit detail. | `DataUnit`
|
18
|
-
| `dataUnitName` | `data-unit-name` | Determina todo o caminho desde o pai até chegar neste nível | `string`
|
19
|
-
| `entityName` | `entity-name` | Nome da entidade detail. | `string`
|
20
|
-
| `formConfigManager` | -- | Gerenciador de configuração do formulário. | `SnkFormConfigManager`
|
21
|
-
| `guideItemPath` | -- | Caminho do identificador da guia vinculada. | `IGuideItem[]`
|
22
|
-
| `label` | `label` | Descrição amigável do cadastro detalhe. | `string`
|
23
|
-
| `messagesBuilder` | -- | | `SnkMessageBuilder`
|
24
|
-
| `
|
25
|
-
| `
|
26
|
-
| `
|
10
|
+
| Property | Attribute | Description | Type | Default |
|
11
|
+
| -------------------------- | ----------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | ---------------------------- |
|
12
|
+
| `branchGuide` | -- | | `IGuideItem` | `undefined` |
|
13
|
+
| `canEdit` | `can-edit` | Define se a edição está habilitada na grid. | `boolean` | `true` |
|
14
|
+
| `customEditors` | -- | Registra um editor customizado para campos da grade e formulário. | `PropsCustomEditor` | `undefined` |
|
15
|
+
| `customRenders` | -- | Render customizados da grade. | `PropsCustomRender` | `undefined` |
|
16
|
+
| `dataState` | -- | Representa o estado do dataUnit detail. | `DataState` | `undefined` |
|
17
|
+
| `dataUnit` | -- | Instância do DataUnit detail. | `DataUnit` | `undefined` |
|
18
|
+
| `dataUnitName` | `data-unit-name` | Determina todo o caminho desde o pai até chegar neste nível | `string` | `undefined` |
|
19
|
+
| `entityName` | `entity-name` | Nome da entidade detail. | `string` | `undefined` |
|
20
|
+
| `formConfigManager` | -- | Gerenciador de configuração do formulário. | `SnkFormConfigManager` | `undefined` |
|
21
|
+
| `guideItemPath` | -- | Caminho do identificador da guia vinculada. | `IGuideItem[]` | `undefined` |
|
22
|
+
| `label` | `label` | Descrição amigável do cadastro detalhe. | `string` | `undefined` |
|
23
|
+
| `messagesBuilder` | -- | | `SnkMessageBuilder` | `undefined` |
|
24
|
+
| `presentationMode` | `presentation-mode` | Altera o modo de apresentação dos botões do snk-taskbar. | `PresentationMode.PRIMARY \| PresentationMode.SECONDARY \| PresentationMode.SINGLE_TASKBAR` | `PresentationMode.SECONDARY` |
|
25
|
+
| `resourceID` | `resource-i-d` | Identificador de recursos como configurações e acesso. | `string` | `undefined` |
|
26
|
+
| `selectedForm` | `selected-form` | Representa o formulário selecionado. | `string` | `undefined` |
|
27
|
+
| `taskbarCustomContainerId` | `taskbar-custom-container-id` | Define o identificador do container de elementos customizados da Taskbar. | `string` | `undefined` |
|
27
28
|
|
28
29
|
|
29
30
|
## Events
|
@@ -142,17 +143,16 @@ graph TD;
|
|
142
143
|
snk-form-view --> snk-form-summary
|
143
144
|
snk-attach --> snk-simple-bar
|
144
145
|
snk-attach --> snk-simple-crud
|
145
|
-
snk-simple-crud --> snk-data-unit
|
146
146
|
snk-simple-crud --> snk-taskbar
|
147
|
-
snk-simple-crud --> snk-
|
147
|
+
snk-simple-crud --> snk-data-unit
|
148
|
+
snk-simple-crud --> snk-simple-form-config
|
148
149
|
snk-simple-crud --> snk-configurator
|
149
150
|
snk-simple-crud --> snk-grid-config
|
150
151
|
snk-simple-crud --> snk-data-exporter
|
151
152
|
snk-simple-crud --> snk-actions-button
|
152
153
|
snk-simple-crud --> taskbar-actions-button
|
153
|
-
snk-
|
154
|
-
snk-form-config --> snk-
|
155
|
-
snk-form-config --> snk-tab-config
|
154
|
+
snk-configurator --> snk-layout-form-config
|
155
|
+
snk-layout-form-config --> snk-view-representation
|
156
156
|
snk-guides-viewer --> snk-detail-view
|
157
157
|
style snk-detail-view fill:#f9f,stroke:#333,stroke-width:4px
|
158
158
|
```
|
@@ -7,20 +7,21 @@
|
|
7
7
|
|
8
8
|
## Properties
|
9
9
|
|
10
|
-
| Property
|
11
|
-
|
|
12
|
-
| `afterSave`
|
13
|
-
| `beforeSave`
|
14
|
-
| `configName`
|
15
|
-
| `dataState`
|
16
|
-
| `dataUnit`
|
17
|
-
| `dataUnitName`
|
18
|
-
| `
|
19
|
-
| `
|
20
|
-
| `
|
21
|
-
| `
|
22
|
-
| `
|
23
|
-
| `
|
10
|
+
| Property | Attribute | Description | Type | Default |
|
11
|
+
| ----------------------- | ------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------- | ----------- |
|
12
|
+
| `afterSave` | -- | Executado após a ação de salvar. | `(dataUnit: DataUnit) => void` | `undefined` |
|
13
|
+
| `beforeSave` | -- | Executado imediatamente antes da ação de salvar as alterações. Útil no caso de validações por exemplo. Caso retorne "false" (ou a promessa se resolva como false), cancela a ação. | `(dataUnit: DataUnit) => boolean \| Promise<boolean>` | `undefined` |
|
14
|
+
| `configName` | `config-name` | Usado para obter configuração de metadados. | `string` | `undefined` |
|
15
|
+
| `dataState` | -- | Controla o estado atual dos dados. | `DataState` | `undefined` |
|
16
|
+
| `dataUnit` | -- | Uma vez instanciado, pode-se obter o dataUnit por esta propriedade. | `DataUnit` | `undefined` |
|
17
|
+
| `dataUnitName` | `data-unit-name` | Usado para criar o dataUnit uma única vez. Se omitido, será usado o próprio nome da entidade. | `string` | `undefined` |
|
18
|
+
| `domainMessagesBuilder` | `domain-messages-builder` | Define a chave customizada para sobrescrever as mensagens (Não pegando pela entidade) | `string` | `undefined` |
|
19
|
+
| `entityName` | `entity-name` | Determina qual a entidade que representa os dados em questão. | `string` | `undefined` |
|
20
|
+
| `ignoreSaveMessage` | `ignore-save-message` | Responsável por evitar a mensagem de sucesso ao salvar. | `boolean` | `undefined` |
|
21
|
+
| `messagesBuilder` | -- | Responsável por flexibilizar e padronizar o uso de mensagens nos blocos de construção. | `SnkMessageBuilder` | `undefined` |
|
22
|
+
| `pageSize` | `page-size` | Determina quantas linhas são retornadas por página. | `number` | `150` |
|
23
|
+
| `resourceID` | `resource-i-d` | Identificador de recursos como configurações e acesso. | `string` | `undefined` |
|
24
|
+
| `useCancelConfirm` | `use-cancel-confirm` | Determina se será usado mensagem de confirmação padrão na tentativa de cancelar a edição. | `boolean` | `true` |
|
24
25
|
|
25
26
|
|
26
27
|
## Events
|
@@ -7,18 +7,21 @@
|
|
7
7
|
|
8
8
|
## Properties
|
9
9
|
|
10
|
-
| Property
|
11
|
-
|
|
12
|
-
| `
|
13
|
-
| `
|
14
|
-
| `
|
15
|
-
| `
|
16
|
-
| `
|
17
|
-
| `
|
18
|
-
| `
|
19
|
-
| `
|
20
|
-
| `
|
21
|
-
| `
|
10
|
+
| Property | Attribute | Description | Type | Default |
|
11
|
+
| ------------------------------ | ---------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------ | ----------- |
|
12
|
+
| `afterApplyConfig` | -- | Função chamada depois de aplicar os filtros. | `() => void` | `undefined` |
|
13
|
+
| `autoLoad` | `auto-load` | Define se a carga dos dados será feita assim que o componente for carregado. | `boolean` | `undefined` |
|
14
|
+
| `configName` | `config-name` | Eventualmente poderemos ter mais de uma barra de filtros. Essa propriedade serve para separar a configuração de cada uma. | `string` | `undefined` |
|
15
|
+
| `customFilterBarConfig` | -- | Loader customizado para carregar as configurações | `(configName: string, resourceId: string, options: any) => Promise<SnkFilterItemConfig[]>` | `undefined` |
|
16
|
+
| `dataUnit` | -- | Recebe o DataUnit do ambiente. Se não for informado, procura pela referência do SnkDataUnit. Necessário para se registrar como provedor de filtros. | `DataUnit` | `undefined` |
|
17
|
+
| `disablePersonalizedFilter` | `disable-personalized-filter` | Desabilita a apresentação da opção de filtros personalizados na filter bar (chip de filtros) e no modal lateral de filtros (container de filtros personalizados). | `boolean` | `undefined` |
|
18
|
+
| `enableLockManagerLoadingComp` | `enable-lock-manager-loading-comp` | Define se o componente deve usar o LockManager para controle de carregamento | `boolean` | `false` |
|
19
|
+
| `filterBarLegacyConfigName` | `filter-bar-legacy-config-name` | Chave da configuração legado da barra de filtros. | `string` | `undefined` |
|
20
|
+
| `filterConfig` | -- | Lista todos os filtros disponíveis ao usuário. | `SnkFilterItemConfig[]` | `undefined` |
|
21
|
+
| `messagesBuilder` | -- | Responsável por flexibilizar e padronizar o uso de mensagens nos blocos de construção. | `SnkMessageBuilder` | `undefined` |
|
22
|
+
| `mode` | `mode` | Modo de apresentação da filterbar. | `"button" \| "hidden" \| "regular"` | `"regular"` |
|
23
|
+
| `resourceID` | `resource-i-d` | Identificador de recursos como configurações e acesso. | `string` | `undefined` |
|
24
|
+
| `title` | `title` | Título que será apresentado na barra de filtros | `string` | `undefined` |
|
22
25
|
|
23
26
|
|
24
27
|
## Events
|
@@ -7,11 +7,12 @@
|
|
7
7
|
|
8
8
|
## Properties
|
9
9
|
|
10
|
-
| Property
|
11
|
-
|
|
12
|
-
| `configManager`
|
13
|
-
| `dataUnit`
|
14
|
-
| `
|
10
|
+
| Property | Attribute | Description | Type | Default |
|
11
|
+
| -------------------------- | ------------------------------ | -------------------------------------------------------------------------------------- | ---------------------- | ----------- |
|
12
|
+
| `configManager` | -- | Campos de configuração de formulário. | `SnkFormConfigManager` | `undefined` |
|
13
|
+
| `dataUnit` | -- | Repositório de dados, controla a manipulação dos dados. | `DataUnit` | `undefined` |
|
14
|
+
| `ignoreReadOnlyFormFields` | `ignore-read-only-form-fields` | Ignora os campos "somente leitura" no modo de inserção. | `boolean` | `undefined` |
|
15
|
+
| `messagesBuilder` | -- | Responsável por flexibilizar e padronizar o uso de mensagens nos blocos de construção. | `SnkMessageBuilder` | `undefined` |
|
15
16
|
|
16
17
|
|
17
18
|
## Events
|
@@ -28,7 +29,6 @@
|
|
28
29
|
|
29
30
|
- [snk-form](../snk-form)
|
30
31
|
- [snk-guides-viewer](../snk-crud/subcomponents)
|
31
|
-
- [snk-simple-crud](../snk-simple-crud)
|
32
32
|
|
33
33
|
### Depends on
|
34
34
|
|
@@ -44,7 +44,6 @@ graph TD;
|
|
44
44
|
snk-form-config --> snk-tab-config
|
45
45
|
snk-form --> snk-form-config
|
46
46
|
snk-guides-viewer --> snk-form-config
|
47
|
-
snk-simple-crud --> snk-form-config
|
48
47
|
style snk-form-config fill:#f9f,stroke:#333,stroke-width:4px
|
49
48
|
```
|
50
49
|
|
@@ -7,31 +7,36 @@
|
|
7
7
|
|
8
8
|
## Properties
|
9
9
|
|
10
|
-
| Property
|
11
|
-
|
|
12
|
-
| `actionsList`
|
13
|
-
| `autoFocus`
|
14
|
-
| `autoLoad`
|
15
|
-
| `canEdit`
|
16
|
-
| `columnFilterDataSource`
|
17
|
-
| `configName`
|
18
|
-
| `disablePersonalizedFilter`
|
19
|
-
| `
|
20
|
-
| `
|
21
|
-
| `
|
22
|
-
| `
|
23
|
-
| `
|
24
|
-
| `
|
25
|
-
| `
|
26
|
-
| `
|
27
|
-
| `
|
28
|
-
| `
|
29
|
-
| `
|
30
|
-
| `
|
31
|
-
| `
|
32
|
-
| `
|
33
|
-
| `
|
34
|
-
| `
|
10
|
+
| Property | Attribute | Description | Type | Default |
|
11
|
+
| ------------------------------- | ----------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | --------------------------------------- |
|
12
|
+
| `actionsList` | -- | Lista de ações que devem ser usadas 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
|
+
| `canEdit` | `can-edit` | Define se a edição está habilitada na grid. | `boolean` | `true` |
|
16
|
+
| `columnFilterDataSource` | -- | | `IMultiSelectionListDataSource` | `new SnkMultiSelectionListDataSource()` |
|
17
|
+
| `configName` | `config-name` | Nome usado para salvar/recuperar a configuração. | `string` | `undefined` |
|
18
|
+
| `disablePersonalizedFilter` | `disable-personalized-filter` | Desabilita a apresentação da opção de filtros personalizados na filter bar (chip de filtros) e no modal lateral de filtros (container de filtros personalizados). | `boolean` | `undefined` |
|
19
|
+
| `enableGridInsert` | `enable-grid-insert` | Ativa inserção de registros no modo grade. | `boolean` | `false` |
|
20
|
+
| `enableLockManagerLoadingComp` | `enable-lock-manager-loading-comp` | Define se o componente deve usar o LockManager para controle de carregamento da aplicação | `boolean` | `false` |
|
21
|
+
| `enableLockManagerTaskbarClick` | `enable-lock-manager-taskbar-click` | Ativa o gerenciamento de locks na grade pela Taskbar. | `boolean` | `false` |
|
22
|
+
| `filterBarLegacyConfigName` | `filter-bar-legacy-config-name` | Chave da configuração legado da barra de filtros. | `string` | `undefined` |
|
23
|
+
| `filterBarTitle` | `filter-bar-title` | Título que será apresentado na barra de filtros | `string` | `undefined` |
|
24
|
+
| `gridHeaderCustomSlotId` | `grid-header-custom-slot-id` | Nome do slot de elementos customizados da Taskbar do cabeçalho da grade. | `string` | `'GRID_HEADER_CUSTOM_ELEMENTS'` |
|
25
|
+
| `gridLegacyConfigName` | `grid-legacy-config-name` | Chave da configuração legado da grade. | `string` | `undefined` |
|
26
|
+
| `isDetail` | `is-detail` | Determina se a grade está vinculada a um detalhe. | `boolean` | `undefined` |
|
27
|
+
| `messagesBuilder` | -- | Responsável por flexibilizar e padronizar o uso de mensagens nos blocos de construção. | `SnkMessageBuilder` | `undefined` |
|
28
|
+
| `multipleSelection` | `multiple-selection` | Determina se pode haver mais de uma linha selecionada. | `boolean` | `undefined` |
|
29
|
+
| `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` |
|
30
|
+
| `presentationMode` | `presentation-mode` | Altera o modo de apresentação dos botões do snk-taskbar. | `PresentationMode.PRIMARY \| PresentationMode.SECONDARY \| PresentationMode.SINGLE_TASKBAR` | `PresentationMode.PRIMARY` |
|
31
|
+
| `recordsValidator` | -- | Validador responsável por checar a integridade das informações do registro. | `IRecordValidator` | `undefined` |
|
32
|
+
| `resourceID` | `resource-i-d` | Identificador de recursos como configurações e acesso. | `string` | `undefined` |
|
33
|
+
| `selectionToastConfig` | -- | Configuração da seleção de grade no toast. | `ISelectionToastConfig` | `undefined` |
|
34
|
+
| `statusResolver` | -- | Configuração do valor da coluna de status. Exemplo: '{ "RECDESP": { "-1" : "#BD0025", "1" : "#157A00" } }' | `((data: object) => string) \| IStatusResolver` | `undefined` |
|
35
|
+
| `strategyExporter` | `strategy-exporter` | Modo de exportação dos dados. | `"ClientSideExporterStrategy" \| "ServerSideExporterStrategy"` | `ExporterStrategy.SERVER_SIDE` |
|
36
|
+
| `taskbarCustomContainerId` | `taskbar-custom-container-id` | Define o identificador do container de elementos customizados da Taskbar. | `string` | `undefined` |
|
37
|
+
| `taskbarManager` | -- | Gerenciador das barras de tarefas. É possível determinar botões específicos ou mesmo gerenciar o estado dos botões. | `TaskbarManager` | `undefined` |
|
38
|
+
| `topTaskbarCustomSlotId` | `top-taskbar-custom-slot-id` | Nome do slot de elementos customizados da Taskbar principal do componente. | `string` | `'GRID_TASKBAR_CUSTOM_ELEMENTS'` |
|
39
|
+
| `useEnterLikeTab` | `use-enter-like-tab` | Quando verdadeiro, o ENTER fará a navegação como se fosse a tecla TAB na grade. | `boolean` | `false` |
|
35
40
|
|
36
41
|
|
37
42
|
## Events
|
@@ -104,6 +109,16 @@ Type: `Promise<void>`
|
|
104
109
|
|
105
110
|
|
106
111
|
|
112
|
+
### `reloadConfig() => Promise<void>`
|
113
|
+
|
114
|
+
|
115
|
+
|
116
|
+
#### Returns
|
117
|
+
|
118
|
+
Type: `Promise<void>`
|
119
|
+
|
120
|
+
|
121
|
+
|
107
122
|
### `reloadFilterBar() => Promise<void>`
|
108
123
|
|
109
124
|
Faz o recarregamento da filter-bar da grade buscando o state no servidor.
|
@@ -0,0 +1,41 @@
|
|
1
|
+
# snk-layout-form-config
|
2
|
+
|
3
|
+
|
4
|
+
|
5
|
+
<!-- Auto Generated Below -->
|
6
|
+
|
7
|
+
|
8
|
+
## Methods
|
9
|
+
|
10
|
+
### `save() => Promise<void>`
|
11
|
+
|
12
|
+
Salva o tipo de layout escolhido. Sem retorno.
|
13
|
+
|
14
|
+
#### Returns
|
15
|
+
|
16
|
+
Type: `Promise<void>`
|
17
|
+
|
18
|
+
|
19
|
+
|
20
|
+
|
21
|
+
## Dependencies
|
22
|
+
|
23
|
+
### Used by
|
24
|
+
|
25
|
+
- [snk-configurator](../snk-configurator)
|
26
|
+
|
27
|
+
### Depends on
|
28
|
+
|
29
|
+
- [snk-view-representation](snk-view-representation)
|
30
|
+
|
31
|
+
### Graph
|
32
|
+
```mermaid
|
33
|
+
graph TD;
|
34
|
+
snk-layout-form-config --> snk-view-representation
|
35
|
+
snk-configurator --> snk-layout-form-config
|
36
|
+
style snk-layout-form-config fill:#f9f,stroke:#333,stroke-width:4px
|
37
|
+
```
|
38
|
+
|
39
|
+
----------------------------------------------
|
40
|
+
|
41
|
+
|
@@ -0,0 +1,30 @@
|
|
1
|
+
# snk-view-representation
|
2
|
+
|
3
|
+
|
4
|
+
|
5
|
+
<!-- Auto Generated Below -->
|
6
|
+
|
7
|
+
|
8
|
+
## Properties
|
9
|
+
|
10
|
+
| Property | Attribute | Description | Type | Default |
|
11
|
+
| -------- | --------- | ---------------------------------------------------------- | ------------ | ------------------------- |
|
12
|
+
| `mode` | `mode` | Define o layout do componente: 'CASCADE' ou 'SIDE_BY_SIDE' | `FormLayout` | `FormLayout.SIDE_BY_SIDE` |
|
13
|
+
|
14
|
+
|
15
|
+
## Dependencies
|
16
|
+
|
17
|
+
### Used by
|
18
|
+
|
19
|
+
- [snk-layout-form-config](..)
|
20
|
+
|
21
|
+
### Graph
|
22
|
+
```mermaid
|
23
|
+
graph TD;
|
24
|
+
snk-layout-form-config --> snk-view-representation
|
25
|
+
style snk-view-representation fill:#f9f,stroke:#333,stroke-width:4px
|
26
|
+
```
|
27
|
+
|
28
|
+
----------------------------------------------
|
29
|
+
|
30
|
+
|
@@ -0,0 +1,42 @@
|
|
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
|
+
| `shouldLoadConfig` | `should-load-config` | Define se deve carregar configurações da grade | `boolean` | `false` |
|
18
|
+
|
19
|
+
|
20
|
+
## Events
|
21
|
+
|
22
|
+
| Event | Description | Type |
|
23
|
+
| ------------------------ | ----------- | ---------------------- |
|
24
|
+
| `pesquisaGridSelectItem` | | `CustomEvent<IOption>` |
|
25
|
+
|
26
|
+
|
27
|
+
## Dependencies
|
28
|
+
|
29
|
+
### Used by
|
30
|
+
|
31
|
+
- [snk-pesquisa](..)
|
32
|
+
|
33
|
+
### Graph
|
34
|
+
```mermaid
|
35
|
+
graph TD;
|
36
|
+
snk-pesquisa --> pesquisa-grid
|
37
|
+
style pesquisa-grid fill:#f9f,stroke:#333,stroke-width:4px
|
38
|
+
```
|
39
|
+
|
40
|
+
----------------------------------------------
|
41
|
+
|
42
|
+
|
@@ -0,0 +1,53 @@
|
|
1
|
+
# pesquisa-tree
|
2
|
+
|
3
|
+
|
4
|
+
|
5
|
+
<!-- Auto Generated Below -->
|
6
|
+
|
7
|
+
|
8
|
+
## Properties
|
9
|
+
|
10
|
+
| Property | Attribute | Description | Type | Default |
|
11
|
+
| ------------------- | --------------------- | ------------------------------------------------------------------ | ---------------------------------------- | ----------- |
|
12
|
+
| `allowsNonAnalytic` | `allows-non-analytic` | Define se permite seleção de items não analíticos | `boolean` | `false` |
|
13
|
+
| `argument` | `argument` | Argumentos que serão usados ao chamar a função treeLoader. | `string` | `undefined` |
|
14
|
+
| `shouldLoadTree` | `should-load-tree` | Informa se a árvore hierárquica deve ou não ser carregada. | `boolean` | `false` |
|
15
|
+
| `treeLoader` | -- | Função responsável por carregar a árvore hierárquica do componente | `(text: string) => Promise<ITreeItem[]>` | `undefined` |
|
16
|
+
|
17
|
+
|
18
|
+
## Events
|
19
|
+
|
20
|
+
| Event | Description | Type |
|
21
|
+
| ------------------------ | ----------- | ---------------------- |
|
22
|
+
| `pesquisaTreeSelectItem` | | `CustomEvent<IOption>` |
|
23
|
+
|
24
|
+
|
25
|
+
## Methods
|
26
|
+
|
27
|
+
### `applyFilter() => Promise<void>`
|
28
|
+
|
29
|
+
|
30
|
+
|
31
|
+
#### Returns
|
32
|
+
|
33
|
+
Type: `Promise<void>`
|
34
|
+
|
35
|
+
|
36
|
+
|
37
|
+
|
38
|
+
## Dependencies
|
39
|
+
|
40
|
+
### Used by
|
41
|
+
|
42
|
+
- [snk-pesquisa](..)
|
43
|
+
|
44
|
+
### Graph
|
45
|
+
```mermaid
|
46
|
+
graph TD;
|
47
|
+
snk-pesquisa --> pesquisa-tree
|
48
|
+
style pesquisa-tree fill:#f9f,stroke:#333,stroke-width:4px
|
49
|
+
```
|
50
|
+
|
51
|
+
----------------------------------------------
|
52
|
+
|
53
|
+
|
@@ -7,11 +7,15 @@
|
|
7
7
|
|
8
8
|
## Properties
|
9
9
|
|
10
|
-
| Property
|
11
|
-
|
|
12
|
-
| `
|
13
|
-
| `
|
14
|
-
| `
|
10
|
+
| Property | Attribute | Description | Type | Default |
|
11
|
+
| ------------------- | --------------------- | ------------------------------------------------------------------- | -------------------------------- | ----------- |
|
12
|
+
| `allowsNonAnalytic` | `allows-non-analytic` | Define se permite seleção de items não analíticos | `boolean` | `false` |
|
13
|
+
| `argument` | `argument` | Argumentos que serão usados ao chamar a função searchLoader. | `string` | `undefined` |
|
14
|
+
| `entityName` | `entity-name` | Nome da entidade onde a pesquisa é aplicada. | `string` | `undefined` |
|
15
|
+
| `isHierarchyEntity` | `is-hierarchy-entity` | Define se a popup de pesquisa possuirá ou não modo Hierarquico. | `boolean` | `false` |
|
16
|
+
| `searchLoader` | -- | Função responsável em carregar os itens do componente snk-pesquisa. | `(text: string) => Promise<any>` | `undefined` |
|
17
|
+
| `selectItem` | -- | Função disparada ao selecionar um item. | `(option: IOption) => void` | `undefined` |
|
18
|
+
| `treeLoader` | -- | Função responsável por carregar a árvore hierárquica do componente | `(text: string) => Promise<any>` | `undefined` |
|
15
19
|
|
16
20
|
|
17
21
|
## Dependencies
|
@@ -20,9 +24,16 @@
|
|
20
24
|
|
21
25
|
- [snk-application](../snk-application)
|
22
26
|
|
27
|
+
### Depends on
|
28
|
+
|
29
|
+
- [pesquisa-grid](pesquisa-grid)
|
30
|
+
- [pesquisa-tree](pesquisa-tree)
|
31
|
+
|
23
32
|
### Graph
|
24
33
|
```mermaid
|
25
34
|
graph TD;
|
35
|
+
snk-pesquisa --> pesquisa-grid
|
36
|
+
snk-pesquisa --> pesquisa-tree
|
26
37
|
snk-application --> snk-pesquisa
|
27
38
|
style snk-pesquisa fill:#f9f,stroke:#333,stroke-width:4px
|
28
39
|
```
|
@@ -7,29 +7,36 @@
|
|
7
7
|
|
8
8
|
## Properties
|
9
9
|
|
10
|
-
| Property
|
11
|
-
|
|
12
|
-
| `actionsList`
|
13
|
-
| `autoFocus`
|
14
|
-
| `autoLoad`
|
15
|
-
| `configName`
|
16
|
-
| `dataState`
|
17
|
-
| `dataUnit`
|
18
|
-
| `
|
19
|
-
| `
|
20
|
-
| `
|
21
|
-
| `
|
22
|
-
| `
|
23
|
-
| `
|
24
|
-
| `
|
25
|
-
| `
|
26
|
-
| `
|
27
|
-
| `
|
28
|
-
| `
|
29
|
-
| `
|
30
|
-
| `
|
31
|
-
| `
|
32
|
-
| `
|
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
|
+
| `multipleSelection` | `multiple-selection` | Determina se pode haver mais de uma linha selecionada na grade. | `boolean` | `undefined` |
|
33
|
+
| `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` |
|
34
|
+
| `pageSize` | `page-size` | Determina quantas linhas são retornadas por página. | `number` | `150` |
|
35
|
+
| `resourceID` | `resource-i-d` | Identificador de recursos como configurações e acesso. | `string` | `undefined` |
|
36
|
+
| `showConfiguratorButtons` | `show-configurator-buttons` | Usado para exibir os botões de ação do snk-configurator. | `boolean` | `undefined` |
|
37
|
+
| `taskbarManager` | -- | Gerenciador das barras de tarefas. É possível determinar botões específicos ou mesmo gerenciar o estado dos botões. | `TaskbarManager` | `undefined` |
|
38
|
+
| `useCancelConfirm` | `use-cancel-confirm` | | `boolean` | `true` |
|
39
|
+
| `useEnterLikeTab` | `use-enter-like-tab` | Quando verdadeiro, o ENTER fará a navegação como se fosse a tecla TAB na grade. | `boolean` | `false` |
|
33
40
|
|
34
41
|
|
35
42
|
## Events
|
@@ -175,9 +182,9 @@ Type: `Promise<void>`
|
|
175
182
|
|
176
183
|
### Depends on
|
177
184
|
|
178
|
-
- [snk-data-unit](../snk-data-unit)
|
179
185
|
- [snk-taskbar](../snk-taskbar)
|
180
|
-
- [snk-
|
186
|
+
- [snk-data-unit](../snk-data-unit)
|
187
|
+
- [snk-simple-form-config](../snk-simple-form-config)
|
181
188
|
- [snk-configurator](../snk-configurator)
|
182
189
|
- [snk-grid-config](../snk-grid-config)
|
183
190
|
- [snk-data-exporter](../snk-data-exporter)
|
@@ -187,9 +194,9 @@ Type: `Promise<void>`
|
|
187
194
|
### Graph
|
188
195
|
```mermaid
|
189
196
|
graph TD;
|
190
|
-
snk-simple-crud --> snk-data-unit
|
191
197
|
snk-simple-crud --> snk-taskbar
|
192
|
-
snk-simple-crud --> snk-
|
198
|
+
snk-simple-crud --> snk-data-unit
|
199
|
+
snk-simple-crud --> snk-simple-form-config
|
193
200
|
snk-simple-crud --> snk-configurator
|
194
201
|
snk-simple-crud --> snk-grid-config
|
195
202
|
snk-simple-crud --> snk-data-exporter
|
@@ -199,9 +206,8 @@ graph TD;
|
|
199
206
|
snk-taskbar --> snk-actions-button
|
200
207
|
snk-taskbar --> taskbar-actions-button
|
201
208
|
snk-data-exporter --> snk-exporter-email-sender
|
202
|
-
snk-
|
203
|
-
snk-form-config --> snk-
|
204
|
-
snk-form-config --> snk-tab-config
|
209
|
+
snk-configurator --> snk-layout-form-config
|
210
|
+
snk-layout-form-config --> snk-view-representation
|
205
211
|
snk-grid-config --> snk-select-box
|
206
212
|
snk-attach --> snk-simple-crud
|
207
213
|
style snk-simple-crud fill:#f9f,stroke:#333,stroke-width:4px
|
@@ -0,0 +1,51 @@
|
|
1
|
+
# snk-simple-form-config
|
2
|
+
|
3
|
+
|
4
|
+
|
5
|
+
<!-- Auto Generated Below -->
|
6
|
+
|
7
|
+
|
8
|
+
## Properties
|
9
|
+
|
10
|
+
| Property | Attribute | Description | Type | Default |
|
11
|
+
| ------------ | ------------- | ------------------------------------------------- | ---------- | ----------- |
|
12
|
+
| `configName` | `config-name` | Chave que representa a configuração do formulário | `string` | `undefined` |
|
13
|
+
| `dataUnit` | -- | Data unit responsável pelos campos disponíveis | `DataUnit` | `undefined` |
|
14
|
+
|
15
|
+
|
16
|
+
## Events
|
17
|
+
|
18
|
+
| Event | Description | Type |
|
19
|
+
| ---------------- | ----------- | ------------------- |
|
20
|
+
| `snkConfigSaved` | | `CustomEvent<void>` |
|
21
|
+
|
22
|
+
|
23
|
+
## Methods
|
24
|
+
|
25
|
+
### `show() => Promise<void>`
|
26
|
+
|
27
|
+
Responsável por abrir o configurador.
|
28
|
+
|
29
|
+
#### Returns
|
30
|
+
|
31
|
+
Type: `Promise<void>`
|
32
|
+
|
33
|
+
|
34
|
+
|
35
|
+
|
36
|
+
## Dependencies
|
37
|
+
|
38
|
+
### Used by
|
39
|
+
|
40
|
+
- [snk-simple-crud](../snk-simple-crud)
|
41
|
+
|
42
|
+
### Graph
|
43
|
+
```mermaid
|
44
|
+
graph TD;
|
45
|
+
snk-simple-crud --> snk-simple-form-config
|
46
|
+
style snk-simple-form-config fill:#f9f,stroke:#333,stroke-width:4px
|
47
|
+
```
|
48
|
+
|
49
|
+
----------------------------------------------
|
50
|
+
|
51
|
+
|
@@ -27,9 +27,11 @@
|
|
27
27
|
|
28
28
|
## Events
|
29
29
|
|
30
|
-
| Event
|
31
|
-
|
|
32
|
-
| `actionClick`
|
30
|
+
| Event | Description | Type |
|
31
|
+
| --------------------- | ------------------------------------------------------------ | --------------------- |
|
32
|
+
| `actionClick` | Emitido sempre que houver click de botão ou ação. | `CustomEvent<string>` |
|
33
|
+
| `taskbarSaveLocker` | Emitido sempre que um save é iniciado pela taskbar. | `CustomEvent<void>` |
|
34
|
+
| `taskbarSaveUnlocker` | Emitido sempre que o ocorre alguma action que libera o save. | `CustomEvent<void>` |
|
33
35
|
|
34
36
|
|
35
37
|
## Dependencies
|