@sankhyalabs/core-docs 2.2.2-SKA-61927.14 → 2.3.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.
- package/classes/ElementIDUtils.md +76 -6
- package/classes/NumberUtils.md +1 -1
- package/package.json +1 -1
@@ -8,14 +8,21 @@
|
|
8
8
|
|
9
9
|
- [constructor](ElementIDUtils.md#constructor)
|
10
10
|
|
11
|
+
### Properties
|
12
|
+
|
13
|
+
- [DATA\_ELEMENT\_ID\_ATTRIBUTE\_NAME](ElementIDUtils.md#data_element_id_attribute_name)
|
14
|
+
- [INTERNAL\_INPUT\_NAME](ElementIDUtils.md#internal_input_name)
|
15
|
+
|
11
16
|
### Methods
|
12
17
|
|
13
18
|
- [addIDInfo](ElementIDUtils.md#addidinfo)
|
19
|
+
- [addIDInfoIfNotExists](ElementIDUtils.md#addidinfoifnotexists)
|
14
20
|
- [addPrefix](ElementIDUtils.md#addprefix)
|
15
21
|
- [addSuffix](ElementIDUtils.md#addsuffix)
|
16
22
|
- [formatDescription](ElementIDUtils.md#formatdescription)
|
17
23
|
- [getAttributeValid](ElementIDUtils.md#getattributevalid)
|
18
24
|
- [getDataElementID](ElementIDUtils.md#getdataelementid)
|
25
|
+
- [getInternalIDInfo](ElementIDUtils.md#getinternalidinfo)
|
19
26
|
|
20
27
|
## Constructors
|
21
28
|
|
@@ -23,6 +30,26 @@
|
|
23
30
|
|
24
31
|
• **new ElementIDUtils**()
|
25
32
|
|
33
|
+
## Properties
|
34
|
+
|
35
|
+
### DATA\_ELEMENT\_ID\_ATTRIBUTE\_NAME
|
36
|
+
|
37
|
+
▪ `Static` **DATA\_ELEMENT\_ID\_ATTRIBUTE\_NAME**: `string` = `"data-element-id"`
|
38
|
+
|
39
|
+
#### Defined in
|
40
|
+
|
41
|
+
src/utils/ElementIDUtils.ts:12
|
42
|
+
|
43
|
+
___
|
44
|
+
|
45
|
+
### INTERNAL\_INPUT\_NAME
|
46
|
+
|
47
|
+
▪ `Static` **INTERNAL\_INPUT\_NAME**: `string` = `"internal"`
|
48
|
+
|
49
|
+
#### Defined in
|
50
|
+
|
51
|
+
src/utils/ElementIDUtils.ts:13
|
52
|
+
|
26
53
|
## Methods
|
27
54
|
|
28
55
|
### addIDInfo
|
@@ -43,7 +70,29 @@
|
|
43
70
|
|
44
71
|
#### Defined in
|
45
72
|
|
46
|
-
src/utils/ElementIDUtils.ts:
|
73
|
+
src/utils/ElementIDUtils.ts:15
|
74
|
+
|
75
|
+
___
|
76
|
+
|
77
|
+
### addIDInfoIfNotExists
|
78
|
+
|
79
|
+
▸ `Static` **addIDInfoIfNotExists**(`element`, `suffix?`, `iDInfo?`): `string`
|
80
|
+
|
81
|
+
#### Parameters
|
82
|
+
|
83
|
+
| Name | Type |
|
84
|
+
| :------ | :------ |
|
85
|
+
| `element` | `HTMLElement` |
|
86
|
+
| `suffix?` | `string` |
|
87
|
+
| `iDInfo?` | [`IElementIDInfo`](../interfaces/IElementIDInfo.md) |
|
88
|
+
|
89
|
+
#### Returns
|
90
|
+
|
91
|
+
`string`
|
92
|
+
|
93
|
+
#### Defined in
|
94
|
+
|
95
|
+
src/utils/ElementIDUtils.ts:24
|
47
96
|
|
48
97
|
___
|
49
98
|
|
@@ -64,7 +113,7 @@ ___
|
|
64
113
|
|
65
114
|
#### Defined in
|
66
115
|
|
67
|
-
src/utils/ElementIDUtils.ts:
|
116
|
+
src/utils/ElementIDUtils.ts:88
|
68
117
|
|
69
118
|
___
|
70
119
|
|
@@ -86,7 +135,7 @@ ___
|
|
86
135
|
|
87
136
|
#### Defined in
|
88
137
|
|
89
|
-
src/utils/ElementIDUtils.ts:
|
138
|
+
src/utils/ElementIDUtils.ts:78
|
90
139
|
|
91
140
|
___
|
92
141
|
|
@@ -106,7 +155,7 @@ ___
|
|
106
155
|
|
107
156
|
#### Defined in
|
108
157
|
|
109
|
-
src/utils/ElementIDUtils.ts:
|
158
|
+
src/utils/ElementIDUtils.ts:98
|
110
159
|
|
111
160
|
___
|
112
161
|
|
@@ -127,7 +176,7 @@ ___
|
|
127
176
|
|
128
177
|
#### Defined in
|
129
178
|
|
130
|
-
src/utils/ElementIDUtils.ts:
|
179
|
+
src/utils/ElementIDUtils.ts:55
|
131
180
|
|
132
181
|
___
|
133
182
|
|
@@ -149,4 +198,25 @@ ___
|
|
149
198
|
|
150
199
|
#### Defined in
|
151
200
|
|
152
|
-
src/utils/ElementIDUtils.ts:
|
201
|
+
src/utils/ElementIDUtils.ts:39
|
202
|
+
|
203
|
+
___
|
204
|
+
|
205
|
+
### getInternalIDInfo
|
206
|
+
|
207
|
+
▸ `Static` **getInternalIDInfo**(`originalID`, `sufix`): `string`
|
208
|
+
|
209
|
+
#### Parameters
|
210
|
+
|
211
|
+
| Name | Type |
|
212
|
+
| :------ | :------ |
|
213
|
+
| `originalID` | `string` |
|
214
|
+
| `sufix` | `string` |
|
215
|
+
|
216
|
+
#### Returns
|
217
|
+
|
218
|
+
`string`
|
219
|
+
|
220
|
+
#### Defined in
|
221
|
+
|
222
|
+
src/utils/ElementIDUtils.ts:35
|
package/classes/NumberUtils.md
CHANGED
@@ -66,7 +66,7 @@ ___
|
|
66
66
|
|
67
67
|
| Name | Type | Default value | Description |
|
68
68
|
| :------ | :------ | :------ | :------ |
|
69
|
-
| `value` | `string` | `undefined` | numero em formato de string a ser convertido (Importante: formato PT-BR ou já em formato numérico
|
69
|
+
| `value` | `string` | `undefined` | numero em formato de string a ser convertido (Importante: formato PT-BR ou já em formato numérico - sem separador de milhares: ######.##) |
|
70
70
|
| `precision` | `number` | `undefined` | (numero de decimais) |
|
71
71
|
| `prettyPrecision` | `number` | `NaN` | (numero de zeros nos decimais) |
|
72
72
|
|