@sankhyalabs/core 2.3.0 → 2.3.2
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/.releaserc +6 -3
- package/.reusable-default-scripts.yml +24 -0
- package/build.env +2 -1
- package/dist/utils/ElementIDUtils.d.ts +1 -0
- package/dist/utils/ElementIDUtils.js +14 -3
- package/dist/utils/ElementIDUtils.js.map +1 -1
- package/dist/utils/StringUtils.d.ts +21 -3
- package/dist/utils/StringUtils.js +45 -27
- package/dist/utils/StringUtils.js.map +1 -1
- package/package.json +1 -1
- package/publish-docs.sh +13 -0
- package/src/utils/ElementIDUtils.ts +19 -8
- package/src/utils/StringUtils.ts +48 -27
- package/test/util/ElementIDUtils.spec.ts +3 -3
- package/test/util/StringUtils.spec.ts +11 -4
- package/.docs/.nojekyll +0 -1
- package/.docs/README.md +0 -57
- package/.docs/classes/ApplicationContext.md +0 -76
- package/.docs/classes/ArrayUtils.md +0 -89
- package/.docs/classes/AuthorizedServiceCaller.md +0 -76
- package/.docs/classes/Change.md +0 -168
- package/.docs/classes/DataUnit.md +0 -1394
- package/.docs/classes/DataUnitAction.md +0 -96
- package/.docs/classes/DateUtils.md +0 -190
- package/.docs/classes/ElementIDUtils.md +0 -222
- package/.docs/classes/ErrorException.md +0 -204
- package/.docs/classes/ErrorTracking.md +0 -54
- package/.docs/classes/FloatingManager.md +0 -384
- package/.docs/classes/HttpProvider.md +0 -96
- package/.docs/classes/MaskFormatter-1.md +0 -336
- package/.docs/classes/NumberUtils.md +0 -188
- package/.docs/classes/ObjectUtils.md +0 -81
- package/.docs/classes/ReadyUtil.md +0 -103
- package/.docs/classes/RequestMetadata.md +0 -84
- package/.docs/classes/SkwHttpProvider.md +0 -109
- package/.docs/classes/StringUtils.md +0 -315
- package/.docs/classes/TimeFormatter.md +0 -98
- package/.docs/classes/UserAgentUtils.md +0 -48
- package/.docs/classes/WaitingChangeException.md +0 -192
- package/.docs/classes/WarningException.md +0 -204
- package/.docs/enums/Action.md +0 -250
- package/.docs/enums/ChangeOperation.md +0 -52
- package/.docs/enums/DataType.md +0 -63
- package/.docs/enums/DependencyType.md +0 -41
- package/.docs/enums/SortMode.md +0 -30
- package/.docs/enums/UserInterface.md +0 -195
- package/.docs/interfaces/DUActionInterceptor.md +0 -29
- package/.docs/interfaces/ExecutionContext.md +0 -58
- package/.docs/interfaces/FieldDescriptor.md +0 -129
- package/.docs/interfaces/Filter.md +0 -41
- package/.docs/interfaces/IElementIDInfo.md +0 -30
- package/.docs/interfaces/LoadDataRequest.md +0 -63
- package/.docs/interfaces/LoadDataResponse.md +0 -30
- package/.docs/interfaces/PageRequest.md +0 -41
- package/.docs/interfaces/PaginationInfo.md +0 -63
- package/.docs/interfaces/QuickFilter.md +0 -30
- package/.docs/interfaces/Record.md +0 -40
- package/.docs/interfaces/SavedRecord.md +0 -55
- package/.docs/interfaces/Sort.md +0 -41
- package/.docs/interfaces/SortingProvider.md +0 -29
- package/.docs/interfaces/UnitMetadata.md +0 -41
- package/.docs/interfaces/WaitingChange.md +0 -41
- package/.docs/modules/MaskFormatter.md +0 -37
- package/.docs/modules.md +0 -63
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
[@sankhyalabs/core](../README.md) / [Exports](../modules.md) / ArrayUtils
|
|
2
|
-
|
|
3
|
-
# Class: ArrayUtils
|
|
4
|
-
|
|
5
|
-
## Table of contents
|
|
6
|
-
|
|
7
|
-
### Constructors
|
|
8
|
-
|
|
9
|
-
- [constructor](ArrayUtils.md#constructor)
|
|
10
|
-
|
|
11
|
-
### Methods
|
|
12
|
-
|
|
13
|
-
- [applyStringFilter](ArrayUtils.md#applystringfilter)
|
|
14
|
-
- [normalizeSearchString](ArrayUtils.md#normalizesearchstring)
|
|
15
|
-
- [sortAlphabetically](ArrayUtils.md#sortalphabetically)
|
|
16
|
-
|
|
17
|
-
## Constructors
|
|
18
|
-
|
|
19
|
-
### constructor
|
|
20
|
-
|
|
21
|
-
• **new ArrayUtils**()
|
|
22
|
-
|
|
23
|
-
## Methods
|
|
24
|
-
|
|
25
|
-
### applyStringFilter
|
|
26
|
-
|
|
27
|
-
▸ `Static` **applyStringFilter**(`argument`, `originalArray`, `alphabeticalSorting?`, `fieldName?`): `any`[]
|
|
28
|
-
|
|
29
|
-
Filtra um array a partir de um critério textual.
|
|
30
|
-
|
|
31
|
-
#### Parameters
|
|
32
|
-
|
|
33
|
-
| Name | Type | Default value | Description |
|
|
34
|
-
| :------ | :------ | :------ | :------ |
|
|
35
|
-
| `argument` | `string` | `undefined` | Texto a ser usado no filtro |
|
|
36
|
-
| `originalArray` | `any`[] | `undefined` | Array no formato original |
|
|
37
|
-
| `alphabeticalSorting` | `boolean` | `true` | Determina se o resultado deve ser ordenado ou mantido na ordem original. Por padrão ordena. |
|
|
38
|
-
| `fieldName` | `string` | `"label"` | Caso o objeto deva ser filtrado por um campo diferente de "label", pode-se usar esse parâmetro |
|
|
39
|
-
|
|
40
|
-
#### Returns
|
|
41
|
-
|
|
42
|
-
`any`[]
|
|
43
|
-
|
|
44
|
-
Um array filtrado e ordenado conforme necessidade. Se "argument" for omitido, ou nulo, o array original é retornado.
|
|
45
|
-
|
|
46
|
-
#### Defined in
|
|
47
|
-
|
|
48
|
-
src/utils/ArrayUtils.ts:13
|
|
49
|
-
|
|
50
|
-
___
|
|
51
|
-
|
|
52
|
-
### normalizeSearchString
|
|
53
|
-
|
|
54
|
-
▸ `Static` `Private` **normalizeSearchString**(`original`): `string`
|
|
55
|
-
|
|
56
|
-
#### Parameters
|
|
57
|
-
|
|
58
|
-
| Name | Type |
|
|
59
|
-
| :------ | :------ |
|
|
60
|
-
| `original` | `string` |
|
|
61
|
-
|
|
62
|
-
#### Returns
|
|
63
|
-
|
|
64
|
-
`string`
|
|
65
|
-
|
|
66
|
-
#### Defined in
|
|
67
|
-
|
|
68
|
-
src/utils/ArrayUtils.ts:25
|
|
69
|
-
|
|
70
|
-
___
|
|
71
|
-
|
|
72
|
-
### sortAlphabetically
|
|
73
|
-
|
|
74
|
-
▸ `Static` **sortAlphabetically**(`originalArray`, `fieldName?`): `any`[]
|
|
75
|
-
|
|
76
|
-
#### Parameters
|
|
77
|
-
|
|
78
|
-
| Name | Type | Default value |
|
|
79
|
-
| :------ | :------ | :------ |
|
|
80
|
-
| `originalArray` | `any`[] | `undefined` |
|
|
81
|
-
| `fieldName` | `string` | `"label"` |
|
|
82
|
-
|
|
83
|
-
#### Returns
|
|
84
|
-
|
|
85
|
-
`any`[]
|
|
86
|
-
|
|
87
|
-
#### Defined in
|
|
88
|
-
|
|
89
|
-
src/utils/ArrayUtils.ts:29
|
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
[@sankhyalabs/core](../README.md) / [Exports](../modules.md) / AuthorizedServiceCaller
|
|
2
|
-
|
|
3
|
-
# Class: AuthorizedServiceCaller
|
|
4
|
-
|
|
5
|
-
## Table of contents
|
|
6
|
-
|
|
7
|
-
### Constructors
|
|
8
|
-
|
|
9
|
-
- [constructor](AuthorizedServiceCaller.md#constructor)
|
|
10
|
-
|
|
11
|
-
### Properties
|
|
12
|
-
|
|
13
|
-
- [serverURL](AuthorizedServiceCaller.md#serverurl)
|
|
14
|
-
- [unauthorizedPath](AuthorizedServiceCaller.md#unauthorizedpath)
|
|
15
|
-
|
|
16
|
-
### Methods
|
|
17
|
-
|
|
18
|
-
- [requestService](AuthorizedServiceCaller.md#requestservice)
|
|
19
|
-
|
|
20
|
-
## Constructors
|
|
21
|
-
|
|
22
|
-
### constructor
|
|
23
|
-
|
|
24
|
-
• **new AuthorizedServiceCaller**(`serverURL`, `unauthorizedPath`)
|
|
25
|
-
|
|
26
|
-
#### Parameters
|
|
27
|
-
|
|
28
|
-
| Name | Type |
|
|
29
|
-
| :------ | :------ |
|
|
30
|
-
| `serverURL` | `string` |
|
|
31
|
-
| `unauthorizedPath` | `string` |
|
|
32
|
-
|
|
33
|
-
#### Defined in
|
|
34
|
-
|
|
35
|
-
src/http/AuthorizedServiceCaller.ts:6
|
|
36
|
-
|
|
37
|
-
## Properties
|
|
38
|
-
|
|
39
|
-
### serverURL
|
|
40
|
-
|
|
41
|
-
• `Private` **serverURL**: `string` = `"http://192.168.1.218:8503"`
|
|
42
|
-
|
|
43
|
-
#### Defined in
|
|
44
|
-
|
|
45
|
-
src/http/AuthorizedServiceCaller.ts:3
|
|
46
|
-
|
|
47
|
-
___
|
|
48
|
-
|
|
49
|
-
### unauthorizedPath
|
|
50
|
-
|
|
51
|
-
• `Private` **unauthorizedPath**: `string` = `"/"`
|
|
52
|
-
|
|
53
|
-
#### Defined in
|
|
54
|
-
|
|
55
|
-
src/http/AuthorizedServiceCaller.ts:4
|
|
56
|
-
|
|
57
|
-
## Methods
|
|
58
|
-
|
|
59
|
-
### requestService
|
|
60
|
-
|
|
61
|
-
▸ **requestService**(`request`, `callback?`): `Promise`<`void` \| `Response`\>
|
|
62
|
-
|
|
63
|
-
#### Parameters
|
|
64
|
-
|
|
65
|
-
| Name | Type |
|
|
66
|
-
| :------ | :------ |
|
|
67
|
-
| `request` | `AuthorizedRequest` |
|
|
68
|
-
| `callback?` | `Function` |
|
|
69
|
-
|
|
70
|
-
#### Returns
|
|
71
|
-
|
|
72
|
-
`Promise`<`void` \| `Response`\>
|
|
73
|
-
|
|
74
|
-
#### Defined in
|
|
75
|
-
|
|
76
|
-
src/http/AuthorizedServiceCaller.ts:12
|
package/.docs/classes/Change.md
DELETED
|
@@ -1,168 +0,0 @@
|
|
|
1
|
-
[@sankhyalabs/core](../README.md) / [Exports](../modules.md) / Change
|
|
2
|
-
|
|
3
|
-
# Class: Change
|
|
4
|
-
|
|
5
|
-
## Table of contents
|
|
6
|
-
|
|
7
|
-
### Constructors
|
|
8
|
-
|
|
9
|
-
- [constructor](Change.md#constructor)
|
|
10
|
-
|
|
11
|
-
### Properties
|
|
12
|
-
|
|
13
|
-
- [\_operation](Change.md#_operation)
|
|
14
|
-
- [dataUnit](Change.md#dataunit)
|
|
15
|
-
- [record](Change.md#record)
|
|
16
|
-
- [sourceId](Change.md#sourceid)
|
|
17
|
-
- [updatingFields](Change.md#updatingfields)
|
|
18
|
-
|
|
19
|
-
### Accessors
|
|
20
|
-
|
|
21
|
-
- [operation](Change.md#operation)
|
|
22
|
-
|
|
23
|
-
### Methods
|
|
24
|
-
|
|
25
|
-
- [isCopy](Change.md#iscopy)
|
|
26
|
-
- [isDelete](Change.md#isdelete)
|
|
27
|
-
- [isInsert](Change.md#isinsert)
|
|
28
|
-
- [isUpdate](Change.md#isupdate)
|
|
29
|
-
|
|
30
|
-
## Constructors
|
|
31
|
-
|
|
32
|
-
### constructor
|
|
33
|
-
|
|
34
|
-
• **new Change**(`dataUnit`, `record`, `updates`, `operation`, `sourceId?`)
|
|
35
|
-
|
|
36
|
-
#### Parameters
|
|
37
|
-
|
|
38
|
-
| Name | Type |
|
|
39
|
-
| :------ | :------ |
|
|
40
|
-
| `dataUnit` | `string` |
|
|
41
|
-
| `record` | [`Record`](../interfaces/Record.md) |
|
|
42
|
-
| `updates` | `any` |
|
|
43
|
-
| `operation` | [`ChangeOperation`](../enums/ChangeOperation.md) |
|
|
44
|
-
| `sourceId?` | `string` |
|
|
45
|
-
|
|
46
|
-
#### Defined in
|
|
47
|
-
|
|
48
|
-
src/dataunit/DataUnit.ts:584
|
|
49
|
-
|
|
50
|
-
## Properties
|
|
51
|
-
|
|
52
|
-
### \_operation
|
|
53
|
-
|
|
54
|
-
• `Private` **\_operation**: [`ChangeOperation`](../enums/ChangeOperation.md)
|
|
55
|
-
|
|
56
|
-
#### Defined in
|
|
57
|
-
|
|
58
|
-
src/dataunit/DataUnit.ts:582
|
|
59
|
-
|
|
60
|
-
___
|
|
61
|
-
|
|
62
|
-
### dataUnit
|
|
63
|
-
|
|
64
|
-
• **dataUnit**: `string`
|
|
65
|
-
|
|
66
|
-
#### Defined in
|
|
67
|
-
|
|
68
|
-
src/dataunit/DataUnit.ts:577
|
|
69
|
-
|
|
70
|
-
___
|
|
71
|
-
|
|
72
|
-
### record
|
|
73
|
-
|
|
74
|
-
• **record**: [`Record`](../interfaces/Record.md)
|
|
75
|
-
|
|
76
|
-
#### Defined in
|
|
77
|
-
|
|
78
|
-
src/dataunit/DataUnit.ts:578
|
|
79
|
-
|
|
80
|
-
___
|
|
81
|
-
|
|
82
|
-
### sourceId
|
|
83
|
-
|
|
84
|
-
• **sourceId**: `undefined` \| `string`
|
|
85
|
-
|
|
86
|
-
#### Defined in
|
|
87
|
-
|
|
88
|
-
src/dataunit/DataUnit.ts:579
|
|
89
|
-
|
|
90
|
-
___
|
|
91
|
-
|
|
92
|
-
### updatingFields
|
|
93
|
-
|
|
94
|
-
• **updatingFields**: `any`
|
|
95
|
-
|
|
96
|
-
#### Defined in
|
|
97
|
-
|
|
98
|
-
src/dataunit/DataUnit.ts:580
|
|
99
|
-
|
|
100
|
-
## Accessors
|
|
101
|
-
|
|
102
|
-
### operation
|
|
103
|
-
|
|
104
|
-
• `get` **operation**(): `string`
|
|
105
|
-
|
|
106
|
-
#### Returns
|
|
107
|
-
|
|
108
|
-
`string`
|
|
109
|
-
|
|
110
|
-
#### Defined in
|
|
111
|
-
|
|
112
|
-
src/dataunit/DataUnit.ts:592
|
|
113
|
-
|
|
114
|
-
## Methods
|
|
115
|
-
|
|
116
|
-
### isCopy
|
|
117
|
-
|
|
118
|
-
▸ **isCopy**(): `boolean`
|
|
119
|
-
|
|
120
|
-
#### Returns
|
|
121
|
-
|
|
122
|
-
`boolean`
|
|
123
|
-
|
|
124
|
-
#### Defined in
|
|
125
|
-
|
|
126
|
-
src/dataunit/DataUnit.ts:600
|
|
127
|
-
|
|
128
|
-
___
|
|
129
|
-
|
|
130
|
-
### isDelete
|
|
131
|
-
|
|
132
|
-
▸ **isDelete**(): `boolean`
|
|
133
|
-
|
|
134
|
-
#### Returns
|
|
135
|
-
|
|
136
|
-
`boolean`
|
|
137
|
-
|
|
138
|
-
#### Defined in
|
|
139
|
-
|
|
140
|
-
src/dataunit/DataUnit.ts:604
|
|
141
|
-
|
|
142
|
-
___
|
|
143
|
-
|
|
144
|
-
### isInsert
|
|
145
|
-
|
|
146
|
-
▸ **isInsert**(): `boolean`
|
|
147
|
-
|
|
148
|
-
#### Returns
|
|
149
|
-
|
|
150
|
-
`boolean`
|
|
151
|
-
|
|
152
|
-
#### Defined in
|
|
153
|
-
|
|
154
|
-
src/dataunit/DataUnit.ts:596
|
|
155
|
-
|
|
156
|
-
___
|
|
157
|
-
|
|
158
|
-
### isUpdate
|
|
159
|
-
|
|
160
|
-
▸ **isUpdate**(): `boolean`
|
|
161
|
-
|
|
162
|
-
#### Returns
|
|
163
|
-
|
|
164
|
-
`boolean`
|
|
165
|
-
|
|
166
|
-
#### Defined in
|
|
167
|
-
|
|
168
|
-
src/dataunit/DataUnit.ts:608
|