@sankhyalabs/core-docs 2.2.2-SKA-61927.12 → 2.2.2-SKA-61927.14

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 (49) hide show
  1. package/README.md +57 -0
  2. package/classes/ApplicationContext.md +76 -0
  3. package/classes/ArrayUtils.md +89 -0
  4. package/classes/AuthorizedServiceCaller.md +76 -0
  5. package/classes/Change.md +168 -0
  6. package/classes/DataUnit.md +1394 -0
  7. package/classes/DataUnitAction.md +96 -0
  8. package/classes/DateUtils.md +190 -0
  9. package/classes/ElementIDUtils.md +152 -0
  10. package/classes/ErrorException.md +204 -0
  11. package/classes/ErrorTracking.md +54 -0
  12. package/classes/FloatingManager.md +384 -0
  13. package/classes/HttpProvider.md +96 -0
  14. package/classes/MaskFormatter-1.md +336 -0
  15. package/classes/NumberUtils.md +188 -0
  16. package/classes/ObjectUtils.md +81 -0
  17. package/classes/ReadyUtil.md +103 -0
  18. package/classes/RequestMetadata.md +84 -0
  19. package/classes/SkwHttpProvider.md +109 -0
  20. package/classes/StringUtils.md +315 -0
  21. package/classes/TimeFormatter.md +98 -0
  22. package/classes/UserAgentUtils.md +48 -0
  23. package/classes/WaitingChangeException.md +192 -0
  24. package/classes/WarningException.md +204 -0
  25. package/enums/Action.md +250 -0
  26. package/enums/ChangeOperation.md +52 -0
  27. package/enums/DataType.md +63 -0
  28. package/enums/DependencyType.md +41 -0
  29. package/enums/SortMode.md +30 -0
  30. package/enums/UserInterface.md +195 -0
  31. package/interfaces/DUActionInterceptor.md +29 -0
  32. package/interfaces/ExecutionContext.md +58 -0
  33. package/interfaces/FieldDescriptor.md +129 -0
  34. package/interfaces/Filter.md +41 -0
  35. package/interfaces/IElementIDInfo.md +30 -0
  36. package/interfaces/LoadDataRequest.md +63 -0
  37. package/interfaces/LoadDataResponse.md +30 -0
  38. package/interfaces/PageRequest.md +41 -0
  39. package/interfaces/PaginationInfo.md +63 -0
  40. package/interfaces/QuickFilter.md +30 -0
  41. package/interfaces/Record.md +40 -0
  42. package/interfaces/SavedRecord.md +55 -0
  43. package/interfaces/Sort.md +41 -0
  44. package/interfaces/SortingProvider.md +29 -0
  45. package/interfaces/UnitMetadata.md +41 -0
  46. package/interfaces/WaitingChange.md +41 -0
  47. package/modules/MaskFormatter.md +37 -0
  48. package/modules.md +63 -0
  49. package/package.json +1 -1
@@ -0,0 +1,96 @@
1
+ [@sankhyalabs/core](../README.md) / [Exports](../modules.md) / DataUnitAction
2
+
3
+ # Class: DataUnitAction
4
+
5
+ ## Implements
6
+
7
+ - `StateAction`
8
+
9
+ ## Table of contents
10
+
11
+ ### Constructors
12
+
13
+ - [constructor](DataUnitAction.md#constructor)
14
+
15
+ ### Properties
16
+
17
+ - [\_payload](DataUnitAction.md#_payload)
18
+ - [\_type](DataUnitAction.md#_type)
19
+
20
+ ### Accessors
21
+
22
+ - [payload](DataUnitAction.md#payload)
23
+ - [type](DataUnitAction.md#type)
24
+
25
+ ## Constructors
26
+
27
+ ### constructor
28
+
29
+ • **new DataUnitAction**(`type`, `payload?`)
30
+
31
+ #### Parameters
32
+
33
+ | Name | Type |
34
+ | :------ | :------ |
35
+ | `type` | [`Action`](../enums/Action.md) |
36
+ | `payload?` | `any` |
37
+
38
+ #### Defined in
39
+
40
+ src/dataunit/state/action/DataUnitAction.ts:9
41
+
42
+ ## Properties
43
+
44
+ ### \_payload
45
+
46
+ • `Private` **\_payload**: `any`
47
+
48
+ #### Defined in
49
+
50
+ src/dataunit/state/action/DataUnitAction.ts:7
51
+
52
+ ___
53
+
54
+ ### \_type
55
+
56
+ • `Private` **\_type**: [`Action`](../enums/Action.md)
57
+
58
+ #### Defined in
59
+
60
+ src/dataunit/state/action/DataUnitAction.ts:6
61
+
62
+ ## Accessors
63
+
64
+ ### payload
65
+
66
+ • `get` **payload**(): `any`
67
+
68
+ #### Returns
69
+
70
+ `any`
71
+
72
+ #### Implementation of
73
+
74
+ StateAction.payload
75
+
76
+ #### Defined in
77
+
78
+ src/dataunit/state/action/DataUnitAction.ts:18
79
+
80
+ ___
81
+
82
+ ### type
83
+
84
+ • `get` **type**(): [`Action`](../enums/Action.md)
85
+
86
+ #### Returns
87
+
88
+ [`Action`](../enums/Action.md)
89
+
90
+ #### Implementation of
91
+
92
+ StateAction.type
93
+
94
+ #### Defined in
95
+
96
+ src/dataunit/state/action/DataUnitAction.ts:14
@@ -0,0 +1,190 @@
1
+ [@sankhyalabs/core](../README.md) / [Exports](../modules.md) / DateUtils
2
+
3
+ # Class: DateUtils
4
+
5
+ ## Table of contents
6
+
7
+ ### Constructors
8
+
9
+ - [constructor](DateUtils.md#constructor)
10
+
11
+ ### Methods
12
+
13
+ - [adjustDLST](DateUtils.md#adjustdlst)
14
+ - [clearTime](DateUtils.md#cleartime)
15
+ - [formatRfc3339](DateUtils.md#formatrfc3339)
16
+ - [getToday](DateUtils.md#gettoday)
17
+ - [pad](DateUtils.md#pad)
18
+ - [strToDate](DateUtils.md#strtodate)
19
+ - [timezoneOffset](DateUtils.md#timezoneoffset)
20
+ - [validateDate](DateUtils.md#validatedate)
21
+
22
+ ## Constructors
23
+
24
+ ### constructor
25
+
26
+ • **new DateUtils**()
27
+
28
+ ## Methods
29
+
30
+ ### adjustDLST
31
+
32
+ ▸ `Static` `Private` **adjustDLST**(`date`): `Date`
33
+
34
+ #### Parameters
35
+
36
+ | Name | Type |
37
+ | :------ | :------ |
38
+ | `date` | `Date` |
39
+
40
+ #### Returns
41
+
42
+ `Date`
43
+
44
+ #### Defined in
45
+
46
+ src/utils/DateUtils.ts:60
47
+
48
+ ___
49
+
50
+ ### clearTime
51
+
52
+ ▸ `Static` **clearTime**(`date`, `adjustDayLightSavingTime?`): `Date`
53
+
54
+ #### Parameters
55
+
56
+ | Name | Type | Default value |
57
+ | :------ | :------ | :------ |
58
+ | `date` | `Date` | `undefined` |
59
+ | `adjustDayLightSavingTime` | `boolean` | `true` |
60
+
61
+ #### Returns
62
+
63
+ `Date`
64
+
65
+ #### Defined in
66
+
67
+ src/utils/DateUtils.ts:3
68
+
69
+ ___
70
+
71
+ ### formatRfc3339
72
+
73
+ ▸ `Static` **formatRfc3339**(`date`): `string`
74
+
75
+ #### Parameters
76
+
77
+ | Name | Type |
78
+ | :------ | :------ |
79
+ | `date` | `Date` |
80
+
81
+ #### Returns
82
+
83
+ `string`
84
+
85
+ #### Defined in
86
+
87
+ src/utils/DateUtils.ts:87
88
+
89
+ ___
90
+
91
+ ### getToday
92
+
93
+ ▸ `Static` **getToday**(`withTime?`): `Date`
94
+
95
+ #### Parameters
96
+
97
+ | Name | Type | Default value |
98
+ | :------ | :------ | :------ |
99
+ | `withTime` | `boolean` | `false` |
100
+
101
+ #### Returns
102
+
103
+ `Date`
104
+
105
+ #### Defined in
106
+
107
+ src/utils/DateUtils.ts:44
108
+
109
+ ___
110
+
111
+ ### pad
112
+
113
+ ▸ `Static` `Private` **pad**(`n`): `string` \| `Number`
114
+
115
+ #### Parameters
116
+
117
+ | Name | Type |
118
+ | :------ | :------ |
119
+ | `n` | `Number` |
120
+
121
+ #### Returns
122
+
123
+ `string` \| `Number`
124
+
125
+ #### Defined in
126
+
127
+ src/utils/DateUtils.ts:70
128
+
129
+ ___
130
+
131
+ ### strToDate
132
+
133
+ ▸ `Static` **strToDate**(`strValue`, `adjustDayLightSavingTime?`, `monthYearMode?`): `undefined` \| `Date`
134
+
135
+ #### Parameters
136
+
137
+ | Name | Type | Default value |
138
+ | :------ | :------ | :------ |
139
+ | `strValue` | `string` | `undefined` |
140
+ | `adjustDayLightSavingTime` | `boolean` | `true` |
141
+ | `monthYearMode` | `boolean` | `false` |
142
+
143
+ #### Returns
144
+
145
+ `undefined` \| `Date`
146
+
147
+ #### Defined in
148
+
149
+ src/utils/DateUtils.ts:8
150
+
151
+ ___
152
+
153
+ ### timezoneOffset
154
+
155
+ ▸ `Static` `Private` **timezoneOffset**(`offset`): `string`
156
+
157
+ #### Parameters
158
+
159
+ | Name | Type |
160
+ | :------ | :------ |
161
+ | `offset` | `number` |
162
+
163
+ #### Returns
164
+
165
+ `string`
166
+
167
+ #### Defined in
168
+
169
+ src/utils/DateUtils.ts:74
170
+
171
+ ___
172
+
173
+ ### validateDate
174
+
175
+ ▸ `Static` **validateDate**(`value`, `hasTime?`): `undefined` \| `Date`
176
+
177
+ #### Parameters
178
+
179
+ | Name | Type | Default value |
180
+ | :------ | :------ | :------ |
181
+ | `value` | `Date` | `undefined` |
182
+ | `hasTime` | `boolean` | `false` |
183
+
184
+ #### Returns
185
+
186
+ `undefined` \| `Date`
187
+
188
+ #### Defined in
189
+
190
+ src/utils/DateUtils.ts:54
@@ -0,0 +1,152 @@
1
+ [@sankhyalabs/core](../README.md) / [Exports](../modules.md) / ElementIDUtils
2
+
3
+ # Class: ElementIDUtils
4
+
5
+ ## Table of contents
6
+
7
+ ### Constructors
8
+
9
+ - [constructor](ElementIDUtils.md#constructor)
10
+
11
+ ### Methods
12
+
13
+ - [addIDInfo](ElementIDUtils.md#addidinfo)
14
+ - [addPrefix](ElementIDUtils.md#addprefix)
15
+ - [addSuffix](ElementIDUtils.md#addsuffix)
16
+ - [formatDescription](ElementIDUtils.md#formatdescription)
17
+ - [getAttributeValid](ElementIDUtils.md#getattributevalid)
18
+ - [getDataElementID](ElementIDUtils.md#getdataelementid)
19
+
20
+ ## Constructors
21
+
22
+ ### constructor
23
+
24
+ • **new ElementIDUtils**()
25
+
26
+ ## Methods
27
+
28
+ ### addIDInfo
29
+
30
+ ▸ `Static` **addIDInfo**(`element`, `suffix?`, `iDInfo?`): `string`
31
+
32
+ #### Parameters
33
+
34
+ | Name | Type |
35
+ | :------ | :------ |
36
+ | `element` | `HTMLElement` |
37
+ | `suffix?` | `string` |
38
+ | `iDInfo?` | [`IElementIDInfo`](../interfaces/IElementIDInfo.md) |
39
+
40
+ #### Returns
41
+
42
+ `string`
43
+
44
+ #### Defined in
45
+
46
+ src/utils/ElementIDUtils.ts:12
47
+
48
+ ___
49
+
50
+ ### addPrefix
51
+
52
+ ▸ `Static` `Private` **addPrefix**(`iDInfo`, `dataElementID`): `string`
53
+
54
+ #### Parameters
55
+
56
+ | Name | Type |
57
+ | :------ | :------ |
58
+ | `iDInfo` | `undefined` \| [`IElementIDInfo`](../interfaces/IElementIDInfo.md) |
59
+ | `dataElementID` | `string` |
60
+
61
+ #### Returns
62
+
63
+ `string`
64
+
65
+ #### Defined in
66
+
67
+ src/utils/ElementIDUtils.ts:70
68
+
69
+ ___
70
+
71
+ ### addSuffix
72
+
73
+ ▸ `Static` `Private` **addSuffix**(`dataElementID`, `suffix`, `element`): `string`
74
+
75
+ #### Parameters
76
+
77
+ | Name | Type |
78
+ | :------ | :------ |
79
+ | `dataElementID` | ``null`` \| `string` |
80
+ | `suffix` | `undefined` \| `string` |
81
+ | `element` | `HTMLElement` |
82
+
83
+ #### Returns
84
+
85
+ `string`
86
+
87
+ #### Defined in
88
+
89
+ src/utils/ElementIDUtils.ts:60
90
+
91
+ ___
92
+
93
+ ### formatDescription
94
+
95
+ ▸ `Static` `Private` **formatDescription**(`value`): `string`
96
+
97
+ #### Parameters
98
+
99
+ | Name | Type |
100
+ | :------ | :------ |
101
+ | `value` | ``null`` \| `string` |
102
+
103
+ #### Returns
104
+
105
+ `string`
106
+
107
+ #### Defined in
108
+
109
+ src/utils/ElementIDUtils.ts:80
110
+
111
+ ___
112
+
113
+ ### getAttributeValid
114
+
115
+ ▸ `Static` `Private` **getAttributeValid**(`element`, `iDInfo?`): ``null`` \| `string`
116
+
117
+ #### Parameters
118
+
119
+ | Name | Type |
120
+ | :------ | :------ |
121
+ | `element` | `HTMLElement` |
122
+ | `iDInfo?` | [`IElementIDInfo`](../interfaces/IElementIDInfo.md) |
123
+
124
+ #### Returns
125
+
126
+ ``null`` \| `string`
127
+
128
+ #### Defined in
129
+
130
+ src/utils/ElementIDUtils.ts:37
131
+
132
+ ___
133
+
134
+ ### getDataElementID
135
+
136
+ ▸ `Static` `Private` **getDataElementID**(`element`, `suffix?`, `iDInfo?`): `string`
137
+
138
+ #### Parameters
139
+
140
+ | Name | Type |
141
+ | :------ | :------ |
142
+ | `element` | `HTMLElement` |
143
+ | `suffix?` | `string` |
144
+ | `iDInfo?` | [`IElementIDInfo`](../interfaces/IElementIDInfo.md) |
145
+
146
+ #### Returns
147
+
148
+ `string`
149
+
150
+ #### Defined in
151
+
152
+ src/utils/ElementIDUtils.ts:21
@@ -0,0 +1,204 @@
1
+ [@sankhyalabs/core](../README.md) / [Exports](../modules.md) / ErrorException
2
+
3
+ # Class: ErrorException
4
+
5
+ ## Hierarchy
6
+
7
+ - `Error`
8
+
9
+ ↳ **`ErrorException`**
10
+
11
+ ## Table of contents
12
+
13
+ ### Constructors
14
+
15
+ - [constructor](ErrorException.md#constructor)
16
+
17
+ ### Properties
18
+
19
+ - [cause](ErrorException.md#cause)
20
+ - [errorCode](ErrorException.md#errorcode)
21
+ - [message](ErrorException.md#message)
22
+ - [name](ErrorException.md#name)
23
+ - [stack](ErrorException.md#stack)
24
+ - [title](ErrorException.md#title)
25
+ - [prepareStackTrace](ErrorException.md#preparestacktrace)
26
+ - [stackTraceLimit](ErrorException.md#stacktracelimit)
27
+
28
+ ### Methods
29
+
30
+ - [captureStackTrace](ErrorException.md#capturestacktrace)
31
+
32
+ ## Constructors
33
+
34
+ ### constructor
35
+
36
+ • **new ErrorException**(`title`, `message`, `errorCode?`)
37
+
38
+ #### Parameters
39
+
40
+ | Name | Type | Default value |
41
+ | :------ | :------ | :------ |
42
+ | `title` | `string` | `undefined` |
43
+ | `message` | `string` | `undefined` |
44
+ | `errorCode` | `string` | `""` |
45
+
46
+ #### Overrides
47
+
48
+ Error.constructor
49
+
50
+ #### Defined in
51
+
52
+ src/exceptions/ErrorException.ts:7
53
+
54
+ ## Properties
55
+
56
+ ### cause
57
+
58
+ • `Optional` **cause**: `unknown`
59
+
60
+ #### Inherited from
61
+
62
+ Error.cause
63
+
64
+ #### Defined in
65
+
66
+ node_modules/typescript/lib/lib.es2022.error.d.ts:26
67
+
68
+ ___
69
+
70
+ ### errorCode
71
+
72
+ • **errorCode**: `string`
73
+
74
+ #### Defined in
75
+
76
+ src/exceptions/ErrorException.ts:5
77
+
78
+ ___
79
+
80
+ ### message
81
+
82
+ • **message**: `string`
83
+
84
+ #### Overrides
85
+
86
+ Error.message
87
+
88
+ #### Defined in
89
+
90
+ src/exceptions/ErrorException.ts:4
91
+
92
+ ___
93
+
94
+ ### name
95
+
96
+ • **name**: `string`
97
+
98
+ #### Inherited from
99
+
100
+ Error.name
101
+
102
+ #### Defined in
103
+
104
+ node_modules/typescript/lib/lib.es5.d.ts:1053
105
+
106
+ ___
107
+
108
+ ### stack
109
+
110
+ • `Optional` **stack**: `string`
111
+
112
+ #### Inherited from
113
+
114
+ Error.stack
115
+
116
+ #### Defined in
117
+
118
+ node_modules/typescript/lib/lib.es5.d.ts:1055
119
+
120
+ ___
121
+
122
+ ### title
123
+
124
+ • **title**: `string`
125
+
126
+ #### Defined in
127
+
128
+ src/exceptions/ErrorException.ts:3
129
+
130
+ ___
131
+
132
+ ### prepareStackTrace
133
+
134
+ ▪ `Static` `Optional` **prepareStackTrace**: (`err`: `Error`, `stackTraces`: `CallSite`[]) => `any`
135
+
136
+ #### Type declaration
137
+
138
+ ▸ (`err`, `stackTraces`): `any`
139
+
140
+ Optional override for formatting stack traces
141
+
142
+ **`See`**
143
+
144
+ https://v8.dev/docs/stack-trace-api#customizing-stack-traces
145
+
146
+ ##### Parameters
147
+
148
+ | Name | Type |
149
+ | :------ | :------ |
150
+ | `err` | `Error` |
151
+ | `stackTraces` | `CallSite`[] |
152
+
153
+ ##### Returns
154
+
155
+ `any`
156
+
157
+ #### Inherited from
158
+
159
+ Error.prepareStackTrace
160
+
161
+ #### Defined in
162
+
163
+ node_modules/@types/node/globals.d.ts:11
164
+
165
+ ___
166
+
167
+ ### stackTraceLimit
168
+
169
+ ▪ `Static` **stackTraceLimit**: `number`
170
+
171
+ #### Inherited from
172
+
173
+ Error.stackTraceLimit
174
+
175
+ #### Defined in
176
+
177
+ node_modules/@types/node/globals.d.ts:13
178
+
179
+ ## Methods
180
+
181
+ ### captureStackTrace
182
+
183
+ ▸ `Static` **captureStackTrace**(`targetObject`, `constructorOpt?`): `void`
184
+
185
+ Create .stack property on a target object
186
+
187
+ #### Parameters
188
+
189
+ | Name | Type |
190
+ | :------ | :------ |
191
+ | `targetObject` | `object` |
192
+ | `constructorOpt?` | `Function` |
193
+
194
+ #### Returns
195
+
196
+ `void`
197
+
198
+ #### Inherited from
199
+
200
+ Error.captureStackTrace
201
+
202
+ #### Defined in
203
+
204
+ node_modules/@types/node/globals.d.ts:4
@@ -0,0 +1,54 @@
1
+ [@sankhyalabs/core](../README.md) / [Exports](../modules.md) / ErrorTracking
2
+
3
+ # Class: ErrorTracking
4
+
5
+ ## Table of contents
6
+
7
+ ### Constructors
8
+
9
+ - [constructor](ErrorTracking.md#constructor)
10
+
11
+ ### Methods
12
+
13
+ - [init](ErrorTracking.md#init)
14
+ - [isInternalException](ErrorTracking.md#isinternalexception)
15
+
16
+ ## Constructors
17
+
18
+ ### constructor
19
+
20
+ • **new ErrorTracking**()
21
+
22
+ ## Methods
23
+
24
+ ### init
25
+
26
+ ▸ `Static` **init**(): `void`
27
+
28
+ #### Returns
29
+
30
+ `void`
31
+
32
+ #### Defined in
33
+
34
+ src/traking/ErrorTraking.ts:6
35
+
36
+ ___
37
+
38
+ ### isInternalException
39
+
40
+ ▸ `Static` `Private` **isInternalException**(`error`): `boolean`
41
+
42
+ #### Parameters
43
+
44
+ | Name | Type |
45
+ | :------ | :------ |
46
+ | `error` | `any` |
47
+
48
+ #### Returns
49
+
50
+ `boolean`
51
+
52
+ #### Defined in
53
+
54
+ src/traking/ErrorTraking.ts:17