@sankhyalabs/core-docs 0.0.0-bugfix-dev-KB-6165.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.
Files changed (60) hide show
  1. package/README.md +63 -0
  2. package/classes/ApplicationContext.md +90 -0
  3. package/classes/ArrayUtils.md +99 -0
  4. package/classes/AuthorizedServiceCaller.md +76 -0
  5. package/classes/Change.md +190 -0
  6. package/classes/DataUnit.md +2453 -0
  7. package/classes/DataUnitAction.md +96 -0
  8. package/classes/DataUnitStorage.md +116 -0
  9. package/classes/DateUtils.md +327 -0
  10. package/classes/ElementIDUtils.md +308 -0
  11. package/classes/ErrorException.md +214 -0
  12. package/classes/ErrorTracking.md +62 -0
  13. package/classes/FloatingManager.md +530 -0
  14. package/classes/HTMLBuilder.md +45 -0
  15. package/classes/HttpProvider.md +96 -0
  16. package/classes/JSUtils.md +115 -0
  17. package/classes/MaskFormatter-1.md +347 -0
  18. package/classes/NumberUtils.md +335 -0
  19. package/classes/ObjectUtils.md +160 -0
  20. package/classes/OnboardingUtils.md +126 -0
  21. package/classes/PromiseSync.md +91 -0
  22. package/classes/ReadyUtil.md +115 -0
  23. package/classes/RequestMetadata.md +84 -0
  24. package/classes/SelectionInfo.md +168 -0
  25. package/classes/SkwHttpProvider.md +109 -0
  26. package/classes/StringUtils.md +562 -0
  27. package/classes/TimeFormatter.md +98 -0
  28. package/classes/UserAgentUtils.md +58 -0
  29. package/classes/VersionUtils.md +42 -0
  30. package/classes/WaitingChangeException.md +200 -0
  31. package/classes/WarningException.md +214 -0
  32. package/enums/Action.md +294 -0
  33. package/enums/ChangeOperation.md +52 -0
  34. package/enums/DataType.md +63 -0
  35. package/enums/DependencyType.md +41 -0
  36. package/enums/SelectionMode.md +30 -0
  37. package/enums/SortMode.md +30 -0
  38. package/enums/UserInterface.md +195 -0
  39. package/interfaces/ChildDescriptor.md +41 -0
  40. package/interfaces/ChildLink.md +30 -0
  41. package/interfaces/DUActionInterceptor.md +29 -0
  42. package/interfaces/ExecutionContext.md +58 -0
  43. package/interfaces/FieldDescriptor.md +140 -0
  44. package/interfaces/Filter.md +41 -0
  45. package/interfaces/IElementIDInfo.md +30 -0
  46. package/interfaces/LoadDataRequest.md +101 -0
  47. package/interfaces/LoadDataResponse.md +36 -0
  48. package/interfaces/PageRequest.md +41 -0
  49. package/interfaces/PaginationInfo.md +75 -0
  50. package/interfaces/PromiseSyncCallback.md +39 -0
  51. package/interfaces/QuickFilter.md +41 -0
  52. package/interfaces/Record.md +62 -0
  53. package/interfaces/SavedRecord.md +85 -0
  54. package/interfaces/Sort.md +41 -0
  55. package/interfaces/SortingProvider.md +29 -0
  56. package/interfaces/UnitMetadata.md +52 -0
  57. package/interfaces/WaitingChange.md +41 -0
  58. package/modules/MaskFormatter.md +37 -0
  59. package/modules.md +74 -0
  60. package/package.json +14 -0
@@ -0,0 +1,41 @@
1
+ [@sankhyalabs/core](../README.md) / [Exports](../modules.md) / ChildDescriptor
2
+
3
+ # Interface: ChildDescriptor
4
+
5
+ ## Table of contents
6
+
7
+ ### Properties
8
+
9
+ - [label](ChildDescriptor.md#label)
10
+ - [links](ChildDescriptor.md#links)
11
+ - [name](ChildDescriptor.md#name)
12
+
13
+ ## Properties
14
+
15
+ ### label
16
+
17
+ • **label**: `string`
18
+
19
+ #### Defined in
20
+
21
+ src/dataunit/metadata/UnitMetadata.ts:11
22
+
23
+ ___
24
+
25
+ ### links
26
+
27
+ • **links**: [`ChildLink`](ChildLink.md)[]
28
+
29
+ #### Defined in
30
+
31
+ src/dataunit/metadata/UnitMetadata.ts:13
32
+
33
+ ___
34
+
35
+ ### name
36
+
37
+ • **name**: `string`
38
+
39
+ #### Defined in
40
+
41
+ src/dataunit/metadata/UnitMetadata.ts:12
@@ -0,0 +1,30 @@
1
+ [@sankhyalabs/core](../README.md) / [Exports](../modules.md) / ChildLink
2
+
3
+ # Interface: ChildLink
4
+
5
+ ## Table of contents
6
+
7
+ ### Properties
8
+
9
+ - [source](ChildLink.md#source)
10
+ - [target](ChildLink.md#target)
11
+
12
+ ## Properties
13
+
14
+ ### source
15
+
16
+ • **source**: `string`
17
+
18
+ #### Defined in
19
+
20
+ src/dataunit/metadata/UnitMetadata.ts:17
21
+
22
+ ___
23
+
24
+ ### target
25
+
26
+ • **target**: `string`
27
+
28
+ #### Defined in
29
+
30
+ src/dataunit/metadata/UnitMetadata.ts:18
@@ -0,0 +1,29 @@
1
+ [@sankhyalabs/core](../README.md) / [Exports](../modules.md) / DUActionInterceptor
2
+
3
+ # Interface: DUActionInterceptor
4
+
5
+ ## Table of contents
6
+
7
+ ### Methods
8
+
9
+ - [interceptAction](DUActionInterceptor.md#interceptaction)
10
+
11
+ ## Methods
12
+
13
+ ### interceptAction
14
+
15
+ ▸ **interceptAction**(`action`): [`DataUnitAction`](../classes/DataUnitAction.md) \| `Promise`<[`DataUnitAction`](../classes/DataUnitAction.md)\>
16
+
17
+ #### Parameters
18
+
19
+ | Name | Type |
20
+ | :------ | :------ |
21
+ | `action` | [`DataUnitAction`](../classes/DataUnitAction.md) |
22
+
23
+ #### Returns
24
+
25
+ [`DataUnitAction`](../classes/DataUnitAction.md) \| `Promise`<[`DataUnitAction`](../classes/DataUnitAction.md)\>
26
+
27
+ #### Defined in
28
+
29
+ src/dataunit/DataUnit.ts:1657
@@ -0,0 +1,58 @@
1
+ [@sankhyalabs/core](../README.md) / [Exports](../modules.md) / ExecutionContext
2
+
3
+ # Interface: ExecutionContext
4
+
5
+ ## Table of contents
6
+
7
+ ### Properties
8
+
9
+ - [after](ExecutionContext.md#after)
10
+ - [before](ExecutionContext.md#before)
11
+
12
+ ## Properties
13
+
14
+ ### after
15
+
16
+ • `Optional` **after**: (`action`: [`DataUnitAction`](../classes/DataUnitAction.md)) => `void`
17
+
18
+ #### Type declaration
19
+
20
+ ▸ (`action`): `void`
21
+
22
+ ##### Parameters
23
+
24
+ | Name | Type |
25
+ | :------ | :------ |
26
+ | `action` | [`DataUnitAction`](../classes/DataUnitAction.md) |
27
+
28
+ ##### Returns
29
+
30
+ `void`
31
+
32
+ #### Defined in
33
+
34
+ src/dataunit/state/action/DataUnitAction.ts:24
35
+
36
+ ___
37
+
38
+ ### before
39
+
40
+ • `Optional` **before**: (`action`: [`DataUnitAction`](../classes/DataUnitAction.md)) => [`DataUnitAction`](../classes/DataUnitAction.md)
41
+
42
+ #### Type declaration
43
+
44
+ ▸ (`action`): [`DataUnitAction`](../classes/DataUnitAction.md)
45
+
46
+ ##### Parameters
47
+
48
+ | Name | Type |
49
+ | :------ | :------ |
50
+ | `action` | [`DataUnitAction`](../classes/DataUnitAction.md) |
51
+
52
+ ##### Returns
53
+
54
+ [`DataUnitAction`](../classes/DataUnitAction.md)
55
+
56
+ #### Defined in
57
+
58
+ src/dataunit/state/action/DataUnitAction.ts:23
@@ -0,0 +1,140 @@
1
+ [@sankhyalabs/core](../README.md) / [Exports](../modules.md) / FieldDescriptor
2
+
3
+ # Interface: FieldDescriptor
4
+
5
+ ## Table of contents
6
+
7
+ ### Properties
8
+
9
+ - [dataType](FieldDescriptor.md#datatype)
10
+ - [defaultValue](FieldDescriptor.md#defaultvalue)
11
+ - [dependencies](FieldDescriptor.md#dependencies)
12
+ - [group](FieldDescriptor.md#group)
13
+ - [label](FieldDescriptor.md#label)
14
+ - [name](FieldDescriptor.md#name)
15
+ - [order](FieldDescriptor.md#order)
16
+ - [properties](FieldDescriptor.md#properties)
17
+ - [readOnly](FieldDescriptor.md#readonly)
18
+ - [required](FieldDescriptor.md#required)
19
+ - [userInterface](FieldDescriptor.md#userinterface)
20
+ - [visible](FieldDescriptor.md#visible)
21
+
22
+ ## Properties
23
+
24
+ ### dataType
25
+
26
+ • **dataType**: [`DataType`](../enums/DataType.md)
27
+
28
+ #### Defined in
29
+
30
+ src/dataunit/metadata/UnitMetadata.ts:24
31
+
32
+ ___
33
+
34
+ ### defaultValue
35
+
36
+ • `Optional` **defaultValue**: `any`
37
+
38
+ #### Defined in
39
+
40
+ src/dataunit/metadata/UnitMetadata.ts:26
41
+
42
+ ___
43
+
44
+ ### dependencies
45
+
46
+ • `Optional` **dependencies**: `FieldDependency`[]
47
+
48
+ #### Defined in
49
+
50
+ src/dataunit/metadata/UnitMetadata.ts:31
51
+
52
+ ___
53
+
54
+ ### group
55
+
56
+ • `Optional` **group**: `string`
57
+
58
+ #### Defined in
59
+
60
+ src/dataunit/metadata/UnitMetadata.ts:32
61
+
62
+ ___
63
+
64
+ ### label
65
+
66
+ • **label**: `string`
67
+
68
+ #### Defined in
69
+
70
+ src/dataunit/metadata/UnitMetadata.ts:23
71
+
72
+ ___
73
+
74
+ ### name
75
+
76
+ • **name**: `string`
77
+
78
+ #### Defined in
79
+
80
+ src/dataunit/metadata/UnitMetadata.ts:22
81
+
82
+ ___
83
+
84
+ ### order
85
+
86
+ • `Optional` **order**: `number`
87
+
88
+ #### Defined in
89
+
90
+ src/dataunit/metadata/UnitMetadata.ts:33
91
+
92
+ ___
93
+
94
+ ### properties
95
+
96
+ • `Optional` **properties**: `any`
97
+
98
+ #### Defined in
99
+
100
+ src/dataunit/metadata/UnitMetadata.ts:30
101
+
102
+ ___
103
+
104
+ ### readOnly
105
+
106
+ • `Optional` **readOnly**: `boolean`
107
+
108
+ #### Defined in
109
+
110
+ src/dataunit/metadata/UnitMetadata.ts:28
111
+
112
+ ___
113
+
114
+ ### required
115
+
116
+ • `Optional` **required**: `boolean`
117
+
118
+ #### Defined in
119
+
120
+ src/dataunit/metadata/UnitMetadata.ts:29
121
+
122
+ ___
123
+
124
+ ### userInterface
125
+
126
+ • `Optional` **userInterface**: [`UserInterface`](../enums/UserInterface.md)
127
+
128
+ #### Defined in
129
+
130
+ src/dataunit/metadata/UnitMetadata.ts:25
131
+
132
+ ___
133
+
134
+ ### visible
135
+
136
+ • `Optional` **visible**: `boolean`
137
+
138
+ #### Defined in
139
+
140
+ src/dataunit/metadata/UnitMetadata.ts:27
@@ -0,0 +1,41 @@
1
+ [@sankhyalabs/core](../README.md) / [Exports](../modules.md) / Filter
2
+
3
+ # Interface: Filter
4
+
5
+ ## Table of contents
6
+
7
+ ### Properties
8
+
9
+ - [expression](Filter.md#expression)
10
+ - [name](Filter.md#name)
11
+ - [params](Filter.md#params)
12
+
13
+ ## Properties
14
+
15
+ ### expression
16
+
17
+ • **expression**: `string`
18
+
19
+ #### Defined in
20
+
21
+ src/dataunit/metadata/UnitMetadata.ts:44
22
+
23
+ ___
24
+
25
+ ### name
26
+
27
+ • **name**: `string`
28
+
29
+ #### Defined in
30
+
31
+ src/dataunit/metadata/UnitMetadata.ts:43
32
+
33
+ ___
34
+
35
+ ### params
36
+
37
+ • `Optional` **params**: `FilterParam`[]
38
+
39
+ #### Defined in
40
+
41
+ src/dataunit/metadata/UnitMetadata.ts:45
@@ -0,0 +1,30 @@
1
+ [@sankhyalabs/core](../README.md) / [Exports](../modules.md) / IElementIDInfo
2
+
3
+ # Interface: IElementIDInfo
4
+
5
+ ## Table of contents
6
+
7
+ ### Properties
8
+
9
+ - [dataUnit](IElementIDInfo.md#dataunit)
10
+ - [id](IElementIDInfo.md#id)
11
+
12
+ ## Properties
13
+
14
+ ### dataUnit
15
+
16
+ • `Optional` **dataUnit**: [`DataUnit`](../classes/DataUnit.md)
17
+
18
+ #### Defined in
19
+
20
+ src/utils/ElementIDUtils.ts:7
21
+
22
+ ___
23
+
24
+ ### id
25
+
26
+ • `Optional` **id**: `string`
27
+
28
+ #### Defined in
29
+
30
+ src/utils/ElementIDUtils.ts:6
@@ -0,0 +1,101 @@
1
+ [@sankhyalabs/core](../README.md) / [Exports](../modules.md) / LoadDataRequest
2
+
3
+ # Interface: LoadDataRequest
4
+
5
+ Atributos enviados na requisição de carregamento dos registros
6
+
7
+ ## Table of contents
8
+
9
+ ### Properties
10
+
11
+ - [filters](LoadDataRequest.md#filters)
12
+ - [keepSelection](LoadDataRequest.md#keepselection)
13
+ - [limit](LoadDataRequest.md#limit)
14
+ - [offset](LoadDataRequest.md#offset)
15
+ - [parentRecordId](LoadDataRequest.md#parentrecordid)
16
+ - [quickFilter](LoadDataRequest.md#quickfilter)
17
+ - [sort](LoadDataRequest.md#sort)
18
+
19
+ ## Properties
20
+
21
+ ### filters
22
+
23
+ • `Optional` **filters**: [`Filter`](Filter.md)[]
24
+
25
+ Filtros
26
+
27
+ #### Defined in
28
+
29
+ src/dataunit/loading/LoadDataRequest.ts:16
30
+
31
+ ___
32
+
33
+ ### keepSelection
34
+
35
+ • `Optional` **keepSelection**: `boolean`
36
+
37
+ Na navegação de páginas devemos manter a seleção
38
+
39
+ #### Defined in
40
+
41
+ src/dataunit/loading/LoadDataRequest.ts:25
42
+
43
+ ___
44
+
45
+ ### limit
46
+
47
+ • `Optional` **limit**: `number`
48
+
49
+ Quantidade de registros que será retornado
50
+
51
+ #### Defined in
52
+
53
+ src/dataunit/loading/LoadDataRequest.ts:10
54
+
55
+ ___
56
+
57
+ ### offset
58
+
59
+ • `Optional` **offset**: `number`
60
+
61
+ Indice inicial dos registros que será retornado
62
+
63
+ #### Defined in
64
+
65
+ src/dataunit/loading/LoadDataRequest.ts:7
66
+
67
+ ___
68
+
69
+ ### parentRecordId
70
+
71
+ • `Optional` **parentRecordId**: `string`
72
+
73
+ Info parent
74
+
75
+ #### Defined in
76
+
77
+ src/dataunit/loading/LoadDataRequest.ts:22
78
+
79
+ ___
80
+
81
+ ### quickFilter
82
+
83
+ • `Optional` **quickFilter**: [`QuickFilter`](QuickFilter.md)
84
+
85
+ Filtro rápido
86
+
87
+ #### Defined in
88
+
89
+ src/dataunit/loading/LoadDataRequest.ts:13
90
+
91
+ ___
92
+
93
+ ### sort
94
+
95
+ • `Optional` **sort**: [`Sort`](Sort.md)[]
96
+
97
+ Ordenação dos resultados
98
+
99
+ #### Defined in
100
+
101
+ src/dataunit/loading/LoadDataRequest.ts:19
@@ -0,0 +1,36 @@
1
+ [@sankhyalabs/core](../README.md) / [Exports](../modules.md) / LoadDataResponse
2
+
3
+ # Interface: LoadDataResponse
4
+
5
+ Retorno dos registros da requisição de carregamento de dados
6
+
7
+ ## Table of contents
8
+
9
+ ### Properties
10
+
11
+ - [paginationInfo](LoadDataResponse.md#paginationinfo)
12
+ - [records](LoadDataResponse.md#records)
13
+
14
+ ## Properties
15
+
16
+ ### paginationInfo
17
+
18
+ • `Optional` **paginationInfo**: [`PaginationInfo`](PaginationInfo.md)
19
+
20
+ Informações da paginação
21
+
22
+ #### Defined in
23
+
24
+ src/dataunit/loading/LoadDataResponse.ts:10
25
+
26
+ ___
27
+
28
+ ### records
29
+
30
+ • **records**: [`Record`](Record.md)[]
31
+
32
+ Registros retornados na requisição
33
+
34
+ #### Defined in
35
+
36
+ src/dataunit/loading/LoadDataResponse.ts:7
@@ -0,0 +1,41 @@
1
+ [@sankhyalabs/core](../README.md) / [Exports](../modules.md) / PageRequest
2
+
3
+ # Interface: PageRequest
4
+
5
+ ## Table of contents
6
+
7
+ ### Properties
8
+
9
+ - [limit](PageRequest.md#limit)
10
+ - [offset](PageRequest.md#offset)
11
+ - [quickFilter](PageRequest.md#quickfilter)
12
+
13
+ ## Properties
14
+
15
+ ### limit
16
+
17
+ • **limit**: `number`
18
+
19
+ #### Defined in
20
+
21
+ src/dataunit/DataUnit.ts:1764
22
+
23
+ ___
24
+
25
+ ### offset
26
+
27
+ • **offset**: `number`
28
+
29
+ #### Defined in
30
+
31
+ src/dataunit/DataUnit.ts:1765
32
+
33
+ ___
34
+
35
+ ### quickFilter
36
+
37
+ • `Optional` **quickFilter**: [`QuickFilter`](QuickFilter.md)
38
+
39
+ #### Defined in
40
+
41
+ src/dataunit/DataUnit.ts:1766
@@ -0,0 +1,75 @@
1
+ [@sankhyalabs/core](../README.md) / [Exports](../modules.md) / PaginationInfo
2
+
3
+ # Interface: PaginationInfo
4
+
5
+ Informações da paginação retornada na requisição de carregamento de registros
6
+
7
+ ## Table of contents
8
+
9
+ ### Properties
10
+
11
+ - [currentPage](PaginationInfo.md#currentpage)
12
+ - [firstRecord](PaginationInfo.md#firstrecord)
13
+ - [hasMore](PaginationInfo.md#hasmore)
14
+ - [lastRecord](PaginationInfo.md#lastrecord)
15
+ - [total](PaginationInfo.md#total)
16
+
17
+ ## Properties
18
+
19
+ ### currentPage
20
+
21
+ • **currentPage**: `number`
22
+
23
+ Página atual
24
+
25
+ #### Defined in
26
+
27
+ src/dataunit/loading/PaginationInfo.ts:5
28
+
29
+ ___
30
+
31
+ ### firstRecord
32
+
33
+ • **firstRecord**: `number`
34
+
35
+ Indice do primeiro registro na página
36
+
37
+ #### Defined in
38
+
39
+ src/dataunit/loading/PaginationInfo.ts:8
40
+
41
+ ___
42
+
43
+ ### hasMore
44
+
45
+ • **hasMore**: `boolean`
46
+
47
+ Se ainda existem mais registros além dos exibidos na página
48
+
49
+ #### Defined in
50
+
51
+ src/dataunit/loading/PaginationInfo.ts:17
52
+
53
+ ___
54
+
55
+ ### lastRecord
56
+
57
+ • **lastRecord**: `number`
58
+
59
+ Indice do último registro na página
60
+
61
+ #### Defined in
62
+
63
+ src/dataunit/loading/PaginationInfo.ts:11
64
+
65
+ ___
66
+
67
+ ### total
68
+
69
+ • **total**: `number`
70
+
71
+ Quantidade total de registros
72
+
73
+ #### Defined in
74
+
75
+ src/dataunit/loading/PaginationInfo.ts:14
@@ -0,0 +1,39 @@
1
+ [@sankhyalabs/core](../README.md) / [Exports](../modules.md) / PromiseSyncCallback
2
+
3
+ # Interface: PromiseSyncCallback<T\>
4
+
5
+ Representa o callback de um sincronizador `PromiseSync<T>`.
6
+
7
+ ## Type parameters
8
+
9
+ | Name |
10
+ | :------ |
11
+ | `T` |
12
+
13
+ ## Table of contents
14
+
15
+ ### Methods
16
+
17
+ - [resolve](PromiseSyncCallback.md#resolve)
18
+
19
+ ## Methods
20
+
21
+ ### resolve
22
+
23
+ ▸ **resolve**(`result`): `void`
24
+
25
+ Será chamado sempre que todas as promessas adicionadas finalizarem.
26
+
27
+ #### Parameters
28
+
29
+ | Name | Type | Description |
30
+ | :------ | :------ | :------ |
31
+ | `result` | `PromiseSettledResult`<`Awaited`<`T`\>\>[] | A lista com o resultado de todas as promises aguardadas. |
32
+
33
+ #### Returns
34
+
35
+ `void`
36
+
37
+ #### Defined in
38
+
39
+ src/async/PromiseSync.ts:48
@@ -0,0 +1,41 @@
1
+ [@sankhyalabs/core](../README.md) / [Exports](../modules.md) / QuickFilter
2
+
3
+ # Interface: QuickFilter
4
+
5
+ ## Table of contents
6
+
7
+ ### Properties
8
+
9
+ - [fields](QuickFilter.md#fields)
10
+ - [filter](QuickFilter.md#filter)
11
+ - [term](QuickFilter.md#term)
12
+
13
+ ## Properties
14
+
15
+ ### fields
16
+
17
+ • `Optional` **fields**: `string`[]
18
+
19
+ #### Defined in
20
+
21
+ src/dataunit/DataUnit.ts:1771
22
+
23
+ ___
24
+
25
+ ### filter
26
+
27
+ • `Optional` **filter**: [`Filter`](Filter.md)
28
+
29
+ #### Defined in
30
+
31
+ src/dataunit/DataUnit.ts:1772
32
+
33
+ ___
34
+
35
+ ### term
36
+
37
+ • **term**: `string`
38
+
39
+ #### Defined in
40
+
41
+ src/dataunit/DataUnit.ts:1770