@sankhyalabs/sankhyablocks-docs 4.4.0 → 4.5.1
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.
@@ -19,6 +19,7 @@
|
|
19
19
|
- [snk-crud](../snk-crud)
|
20
20
|
- [snk-detail-view](../snk-crud/subcomponents)
|
21
21
|
- [snk-guides-viewer](../snk-crud/subcomponents)
|
22
|
+
- [snk-simple-crud](../snk-simple-crud)
|
22
23
|
- [snk-taskbar](../snk-taskbar)
|
23
24
|
|
24
25
|
### Depends on
|
@@ -32,6 +33,7 @@ graph TD;
|
|
32
33
|
snk-crud --> snk-data-exporter
|
33
34
|
snk-detail-view --> snk-data-exporter
|
34
35
|
snk-guides-viewer --> snk-data-exporter
|
36
|
+
snk-simple-crud --> snk-data-exporter
|
35
37
|
snk-taskbar --> snk-data-exporter
|
36
38
|
style snk-data-exporter fill:#f9f,stroke:#333,stroke-width:4px
|
37
39
|
```
|
@@ -57,12 +57,14 @@ Retorna a lista de IDs dos registros selecionados.
|
|
57
57
|
|
58
58
|
- [snk-detail-view](../snk-crud/subcomponents)
|
59
59
|
- [snk-guides-viewer](../snk-crud/subcomponents)
|
60
|
+
- [snk-simple-crud](../snk-simple-crud)
|
60
61
|
|
61
62
|
### Graph
|
62
63
|
```mermaid
|
63
64
|
graph TD;
|
64
65
|
snk-detail-view --> snk-data-unit
|
65
66
|
snk-guides-viewer --> snk-data-unit
|
67
|
+
snk-simple-crud --> snk-data-unit
|
66
68
|
style snk-data-unit fill:#f9f,stroke:#333,stroke-width:4px
|
67
69
|
```
|
68
70
|
|
@@ -0,0 +1,90 @@
|
|
1
|
+
# snk-simple-crud
|
2
|
+
|
3
|
+
|
4
|
+
|
5
|
+
<!-- Auto Generated Below -->
|
6
|
+
|
7
|
+
|
8
|
+
## Properties
|
9
|
+
|
10
|
+
| Property | Attribute | Description | Type | Default |
|
11
|
+
| ---------------- | --------- | ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------- | ------------------------- |
|
12
|
+
| `dataState` | -- | | `DataState` | `undefined` |
|
13
|
+
| `dataUnit` | -- | | `DataUnit` | `undefined` |
|
14
|
+
| `mode` | `mode` | | `SIMPLE_CRUD_MODE.IN_MEMORY \| SIMPLE_CRUD_MODE.SERVER` | `SIMPLE_CRUD_MODE.SERVER` |
|
15
|
+
| `taskbarManager` | -- | Gerenciador das barras de tarefas. É possível determinar botões específicos ou mesmo gerenciar o estado dos botões. | `TaskbarManager` | `undefined` |
|
16
|
+
|
17
|
+
|
18
|
+
## Events
|
19
|
+
|
20
|
+
| Event | Description | Type |
|
21
|
+
| ----------------- | --------------------------------------------------------- | ------------------------ |
|
22
|
+
| `dataStateChange` | Emitido quando há qualquer mudança de estado no DataUnit. | `CustomEvent<DataState>` |
|
23
|
+
| `dataUnitReady` | Emitido quando o DataUnit está pronto. | `CustomEvent<DataUnit>` |
|
24
|
+
|
25
|
+
|
26
|
+
## Methods
|
27
|
+
|
28
|
+
### `getRecords() => Promise<Array<Record>>`
|
29
|
+
|
30
|
+
|
31
|
+
|
32
|
+
#### Returns
|
33
|
+
|
34
|
+
Type: `Promise<Record[]>`
|
35
|
+
|
36
|
+
|
37
|
+
|
38
|
+
### `goToView(view: VIEW_MODE) => Promise<void>`
|
39
|
+
|
40
|
+
Usado para alternar a visão entre GRID e FORM externamente.
|
41
|
+
|
42
|
+
#### Returns
|
43
|
+
|
44
|
+
Type: `Promise<void>`
|
45
|
+
|
46
|
+
|
47
|
+
|
48
|
+
### `setMetadata(metadata: UnitMetadata) => Promise<void>`
|
49
|
+
|
50
|
+
|
51
|
+
|
52
|
+
#### Returns
|
53
|
+
|
54
|
+
Type: `Promise<void>`
|
55
|
+
|
56
|
+
|
57
|
+
|
58
|
+
### `setRecords(records: Array<Record>) => Promise<void>`
|
59
|
+
|
60
|
+
|
61
|
+
|
62
|
+
#### Returns
|
63
|
+
|
64
|
+
Type: `Promise<void>`
|
65
|
+
|
66
|
+
|
67
|
+
|
68
|
+
|
69
|
+
## Dependencies
|
70
|
+
|
71
|
+
### Depends on
|
72
|
+
|
73
|
+
- [snk-data-unit](../snk-data-unit)
|
74
|
+
- [snk-taskbar](../snk-taskbar)
|
75
|
+
- [snk-data-exporter](../snk-data-exporter)
|
76
|
+
|
77
|
+
### Graph
|
78
|
+
```mermaid
|
79
|
+
graph TD;
|
80
|
+
snk-simple-crud --> snk-data-unit
|
81
|
+
snk-simple-crud --> snk-taskbar
|
82
|
+
snk-simple-crud --> snk-data-exporter
|
83
|
+
snk-taskbar --> snk-data-exporter
|
84
|
+
snk-data-exporter --> snk-exporter-email-sender
|
85
|
+
style snk-simple-crud fill:#f9f,stroke:#333,stroke-width:4px
|
86
|
+
```
|
87
|
+
|
88
|
+
----------------------------------------------
|
89
|
+
|
90
|
+
|
@@ -33,6 +33,7 @@
|
|
33
33
|
- [snk-detail-view](../snk-crud/subcomponents)
|
34
34
|
- [snk-grid](../snk-grid)
|
35
35
|
- [snk-guides-viewer](../snk-crud/subcomponents)
|
36
|
+
- [snk-simple-crud](../snk-simple-crud)
|
36
37
|
|
37
38
|
### Depends on
|
38
39
|
|
@@ -46,6 +47,7 @@ graph TD;
|
|
46
47
|
snk-detail-view --> snk-taskbar
|
47
48
|
snk-grid --> snk-taskbar
|
48
49
|
snk-guides-viewer --> snk-taskbar
|
50
|
+
snk-simple-crud --> snk-taskbar
|
49
51
|
style snk-taskbar fill:#f9f,stroke:#333,stroke-width:4px
|
50
52
|
```
|
51
53
|
|