@sankhyalabs/core-docs 0.0.0-bugfix-ms-5726442.0 → 0.0.0-bugfix-dev-KB-161742.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.
@@ -36,7 +36,7 @@
36
36
 
37
37
  #### Source
38
38
 
39
- src/dataunit/loader/utils/dataUnitLoaderUtils.ts:11
39
+ src/dataunit/loader/utils/dataUnitLoaderUtils.ts:12
40
40
 
41
41
  ***
42
42
 
@@ -58,7 +58,7 @@ src/dataunit/loader/utils/dataUnitLoaderUtils.ts:11
58
58
 
59
59
  #### Source
60
60
 
61
- src/dataunit/loader/utils/dataUnitLoaderUtils.ts:40
61
+ src/dataunit/loader/utils/dataUnitLoaderUtils.ts:41
62
62
 
63
63
  ***
64
64
 
@@ -88,7 +88,7 @@ src/dataunit/loader/utils/dataUnitLoaderUtils.ts:40
88
88
 
89
89
  #### Source
90
90
 
91
- src/dataunit/loader/utils/dataUnitLoaderUtils.ts:20
91
+ src/dataunit/loader/utils/dataUnitLoaderUtils.ts:21
92
92
 
93
93
  ***
94
94
 
@@ -106,7 +106,7 @@ src/dataunit/loader/utils/dataUnitLoaderUtils.ts:20
106
106
 
107
107
  #### Source
108
108
 
109
- src/dataunit/loader/utils/dataUnitLoaderUtils.ts:61
109
+ src/dataunit/loader/utils/dataUnitLoaderUtils.ts:62
110
110
 
111
111
  ***
112
112
 
@@ -128,7 +128,7 @@ src/dataunit/loader/utils/dataUnitLoaderUtils.ts:61
128
128
 
129
129
  #### Source
130
130
 
131
- src/dataunit/loader/utils/dataUnitLoaderUtils.ts:51
131
+ src/dataunit/loader/utils/dataUnitLoaderUtils.ts:52
132
132
 
133
133
  ***
134
134
 
@@ -148,4 +148,4 @@ src/dataunit/loader/utils/dataUnitLoaderUtils.ts:51
148
148
 
149
149
  #### Source
150
150
 
151
- src/dataunit/loader/utils/dataUnitLoaderUtils.ts:57
151
+ src/dataunit/loader/utils/dataUnitLoaderUtils.ts:58
@@ -0,0 +1,195 @@
1
+ [**@sankhyalabs/core**](../README.md) • **Docs**
2
+
3
+ ***
4
+
5
+ [@sankhyalabs/core](../globals.md) / LangUtils
6
+
7
+ # Class: LangUtils
8
+
9
+ A classe `LangUtils` fornece métodos utilitários para gerenciar configurações de
10
+ idioma, incluindo recuperar, definir e aplicar preferências de idioma.
11
+
12
+ ## Constructors
13
+
14
+ ### new LangUtils()
15
+
16
+ > **new LangUtils**(): [`LangUtils`](LangUtils.md)
17
+
18
+ #### Returns
19
+
20
+ [`LangUtils`](LangUtils.md)
21
+
22
+ ## Properties
23
+
24
+ ### ELanguages
25
+
26
+ > `static` **ELanguages**: *typeof* `__class`
27
+
28
+ Classe estática contendo os códigos de idioma predefinidos.
29
+
30
+ #### Source
31
+
32
+ src/utils/LangUtils.ts:14
33
+
34
+ ## Methods
35
+
36
+ ### applyLanguageFromCookie()
37
+
38
+ > `static` **applyLanguageFromCookie**(): `void`
39
+
40
+ Define o atributo `lang` no elemento `<html>` com base no cookie de idioma, se existir.
41
+
42
+ #### Returns
43
+
44
+ `void`
45
+
46
+ #### Example
47
+
48
+ ```ts
49
+ LangUtils.applyLanguageFromCookie(); // Aplica o idioma do cookie ao elemento `<html>`
50
+ ```
51
+
52
+ #### Source
53
+
54
+ src/utils/LangUtils.ts:123
55
+
56
+ ***
57
+
58
+ ### convertLanguage()
59
+
60
+ > `static` `private` **convertLanguage**(`lang`): `string`
61
+
62
+ Converte o idioma fornecido para um dos códigos predefinidos.
63
+
64
+ #### Parameters
65
+
66
+ • **lang**: `string`
67
+
68
+ O idioma a ser convertido (ex.: "en", "es", "pt-BR").
69
+
70
+ #### Returns
71
+
72
+ `string`
73
+
74
+ O código de idioma correspondente (ex.: "en_US", "es_ES").
75
+
76
+ #### Example
77
+
78
+ ```ts
79
+ LangUtils.convertLanguage("en"); // Retorna "en_US"
80
+ LangUtils.convertLanguage("es-es"); // Retorna "es_ES"
81
+ ```
82
+
83
+ #### Source
84
+
85
+ src/utils/LangUtils.ts:30
86
+
87
+ ***
88
+
89
+ ### getHtmlLanguage()
90
+
91
+ > `static` **getHtmlLanguage**(): `string`
92
+
93
+ Recupera o valor do atributo `lang` do elemento `<html>`. Se o ambiente
94
+ estiver em modo de desenvolvimento, o idioma padrão será `"pt_BR"`. Caso
95
+ contrário, utiliza o idioma do navegador ou `"pt-BR"` como padrão.
96
+
97
+ #### Returns
98
+
99
+ `string`
100
+
101
+ O idioma definido no elemento `<html>` ou o padrão.
102
+
103
+ #### Example
104
+
105
+ ```ts
106
+ LangUtils.getHtmlLanguage(); // Retorna "pt_BR" no modo desenvolvimento
107
+ ```
108
+
109
+ #### Source
110
+
111
+ src/utils/LangUtils.ts:77
112
+
113
+ ***
114
+
115
+ ### getLanguage()
116
+
117
+ > `static` **getLanguage**(): `string`
118
+
119
+ Captura o idioma atualmente definido. Primeiro verifica se há um idioma
120
+ armazenado nos cookies. Caso contrário, utiliza o idioma definido no elemento
121
+ `<html>`. Se nenhum valor for encontrado nos cookies ou no elemento `<html>`,
122
+ é utilizada a configuração do navegador. Caso o navegador também não forneça
123
+ um idioma, o padrão será `"pt_BR"`.
124
+
125
+ #### Returns
126
+
127
+ `string`
128
+
129
+ O idioma definido (ex.: "pt_BR", "en_US").
130
+
131
+ #### Example
132
+
133
+ ```ts
134
+ LangUtils.getLanguage(); // Retorna o idioma atual
135
+ ```
136
+
137
+ #### Source
138
+
139
+ src/utils/LangUtils.ts:57
140
+
141
+ ***
142
+
143
+ ### getLanguageFromCookie()
144
+
145
+ > `static` **getLanguageFromCookie**(): `null` \| `string`
146
+
147
+ Recupera o valor do cookie de idioma.
148
+
149
+ #### Returns
150
+
151
+ `null` \| `string`
152
+
153
+ O valor do cookie de idioma ou `null` se não existir.
154
+
155
+ #### Example
156
+
157
+ ```ts
158
+ LangUtils.getLanguageFromCookie(); // Retorna "pt_BR" se o cookie existir
159
+ ```
160
+
161
+ #### Source
162
+
163
+ src/utils/LangUtils.ts:112
164
+
165
+ ***
166
+
167
+ ### setHtmlLanguage()
168
+
169
+ > `static` **setHtmlLanguage**(`language`): `void`
170
+
171
+ Define o atributo `lang` no elemento `<html>` e atualiza o cookie de idioma.
172
+
173
+ #### Parameters
174
+
175
+ • **language**: `string`
176
+
177
+ O idioma a ser definido (ex.: "pt_BR", "en_US").
178
+
179
+ > **Nota:** Definir o idioma no elemento `<html>` é essencial para garantir que o conteúdo
180
+ da página seja interpretado corretamente por navegadores, leitores de tela e mecanismos de
181
+ busca, melhorando a acessibilidade e a indexação.
182
+
183
+ #### Returns
184
+
185
+ `void`
186
+
187
+ #### Example
188
+
189
+ ```ts
190
+ LangUtils.setHtmlLanguage("en_US"); // Define o idioma como "en_US"
191
+ ```
192
+
193
+ #### Source
194
+
195
+ src/utils/LangUtils.ts:99
@@ -21,6 +21,7 @@ Para o padrão da máscara podem ser usados os seguintes caracteres especiais:
21
21
  | U | Qualquer letra. Transforma letras minúsculas em maiúsculas. |
22
22
  | L | Qualquer letra. Transforma letras maiúsculas em minúsculas. |
23
23
  | A | Qualquer letra ou número. |
24
+ | Z | Qualquer letra ou número. Transforma letras minúsculas em maiúsculas. |
24
25
  | ? | Qualquer letra. Preserva maiúsculas e minúsculas. |
25
26
  | * | Qualquer caractere. |
26
27
 
@@ -41,14 +42,14 @@ Por exemplo:
41
42
  resultaria na string '123-____'.
42
43
 
43
44
  ##Veja mais alguns exemplos:
44
- |Padrão |Máscara |Entrada |Saída |
45
- |----------------|------------------|--------------|------------------|
46
- |Telefone |(##) ####-#### |3432192515 |(34) 3219-2515 |
47
- |CPF |###.###.###-## |12345678901 |123.456.789-01 |
48
- |CNPJ |##.###.###/####-##|12345678901234|12.345.678/9012-34|
49
- |CEP |##.###-### |12345678 |12.345-678 |
50
- |PLACA (veículo) |UUU-#### |abc1234 |ABC-1234 |
51
- |Cor RGB |'#AAAAAA |00000F0 |#0000F0 |
45
+ |Padrão |Máscara |Entrada |Saída |
46
+ |----------------|------------------|--------------|-------------------|
47
+ |Telefone |(##) ####-#### |3432192515 |(34) 3219-2515 |
48
+ |CPF |###.###.###-## |12345678901 |123.456.789-01 |
49
+ |CNPJ |ZZ.ZZZ.ZZZ/ZZZZ-##|1a3B5c7D9e1F31|1A.3B5.C7D9/E1F3-31|
50
+ |CEP |##.###-### |12345678 |12.345-678 |
51
+ |PLACA (veículo) |UUU-#### |abc1234 |ABC-1234 |
52
+ |Cor RGB |'#AAAAAA |00000F0 |#0000F0 |
52
53
 
53
54
  ## Constructors
54
55
 
@@ -66,7 +67,7 @@ resultaria na string '123-____'.
66
67
 
67
68
  #### Source
68
69
 
69
- src/utils/MaskFormatter.ts:92
70
+ src/utils/MaskFormatter.ts:95
70
71
 
71
72
  ## Properties
72
73
 
@@ -76,7 +77,7 @@ src/utils/MaskFormatter.ts:92
76
77
 
77
78
  #### Source
78
79
 
79
- src/utils/MaskFormatter.ts:66
80
+ src/utils/MaskFormatter.ts:69
80
81
 
81
82
  ***
82
83
 
@@ -86,7 +87,7 @@ src/utils/MaskFormatter.ts:66
86
87
 
87
88
  #### Source
88
89
 
89
- src/utils/MaskFormatter.ts:67
90
+ src/utils/MaskFormatter.ts:70
90
91
 
91
92
  ***
92
93
 
@@ -99,7 +100,7 @@ ou seja, aqueles que o usuário ainda não informou. Por padrão usamos um espa
99
100
 
100
101
  #### Source
101
102
 
102
- src/utils/MaskFormatter.ts:73
103
+ src/utils/MaskFormatter.ts:76
103
104
 
104
105
  ***
105
106
 
@@ -109,7 +110,17 @@ src/utils/MaskFormatter.ts:73
109
110
 
110
111
  #### Source
111
112
 
112
- src/utils/MaskFormatter.ts:53
113
+ src/utils/MaskFormatter.ts:54
114
+
115
+ ***
116
+
117
+ ### ALPHA\_NUMERIC\_UPPERCASE\_KEY
118
+
119
+ > `static` `private` **ALPHA\_NUMERIC\_UPPERCASE\_KEY**: `string` = `"Z"`
120
+
121
+ #### Source
122
+
123
+ src/utils/MaskFormatter.ts:55
113
124
 
114
125
  ***
115
126
 
@@ -119,7 +130,7 @@ src/utils/MaskFormatter.ts:53
119
130
 
120
131
  #### Source
121
132
 
122
- src/utils/MaskFormatter.ts:55
133
+ src/utils/MaskFormatter.ts:57
123
134
 
124
135
  ***
125
136
 
@@ -129,7 +140,17 @@ src/utils/MaskFormatter.ts:55
129
140
 
130
141
  #### Source
131
142
 
132
- src/utils/MaskFormatter.ts:466
143
+ src/utils/MaskFormatter.ts:475
144
+
145
+ ***
146
+
147
+ ### AlphaNumericUpperCaseCharacter
148
+
149
+ > `static` `private` **AlphaNumericUpperCaseCharacter**: *typeof* `__class`
150
+
151
+ #### Source
152
+
153
+ src/utils/MaskFormatter.ts:489
133
154
 
134
155
  ***
135
156
 
@@ -139,7 +160,7 @@ src/utils/MaskFormatter.ts:466
139
160
 
140
161
  #### Source
141
162
 
142
- src/utils/MaskFormatter.ts:54
163
+ src/utils/MaskFormatter.ts:56
143
164
 
144
165
  ***
145
166
 
@@ -149,7 +170,7 @@ src/utils/MaskFormatter.ts:54
149
170
 
150
171
  #### Source
151
172
 
152
- src/utils/MaskFormatter.ts:480
173
+ src/utils/MaskFormatter.ts:507
153
174
 
154
175
  ***
155
176
 
@@ -159,7 +180,7 @@ src/utils/MaskFormatter.ts:480
159
180
 
160
181
  #### Source
161
182
 
162
- src/utils/MaskFormatter.ts:57
183
+ src/utils/MaskFormatter.ts:59
163
184
 
164
185
  ***
165
186
 
@@ -169,7 +190,7 @@ src/utils/MaskFormatter.ts:57
169
190
 
170
191
  #### Source
171
192
 
172
- src/utils/MaskFormatter.ts:49
193
+ src/utils/MaskFormatter.ts:50
173
194
 
174
195
  ***
175
196
 
@@ -179,7 +200,7 @@ src/utils/MaskFormatter.ts:49
179
200
 
180
201
  #### Source
181
202
 
182
- src/utils/MaskFormatter.ts:391
203
+ src/utils/MaskFormatter.ts:400
183
204
 
184
205
  ***
185
206
 
@@ -189,7 +210,7 @@ src/utils/MaskFormatter.ts:391
189
210
 
190
211
  #### Source
191
212
 
192
- src/utils/MaskFormatter.ts:50
213
+ src/utils/MaskFormatter.ts:51
193
214
 
194
215
  ***
195
216
 
@@ -199,7 +220,7 @@ src/utils/MaskFormatter.ts:50
199
220
 
200
221
  #### Source
201
222
 
202
- src/utils/MaskFormatter.ts:52
223
+ src/utils/MaskFormatter.ts:53
203
224
 
204
225
  ***
205
226
 
@@ -209,7 +230,7 @@ src/utils/MaskFormatter.ts:52
209
230
 
210
231
  #### Source
211
232
 
212
- src/utils/MaskFormatter.ts:372
233
+ src/utils/MaskFormatter.ts:381
213
234
 
214
235
  ***
215
236
 
@@ -219,7 +240,7 @@ src/utils/MaskFormatter.ts:372
219
240
 
220
241
  #### Source
221
242
 
222
- src/utils/MaskFormatter.ts:443
243
+ src/utils/MaskFormatter.ts:452
223
244
 
224
245
  ***
225
246
 
@@ -229,7 +250,7 @@ src/utils/MaskFormatter.ts:443
229
250
 
230
251
  #### Source
231
252
 
232
- src/utils/MaskFormatter.ts:51
253
+ src/utils/MaskFormatter.ts:52
233
254
 
234
255
  ***
235
256
 
@@ -239,7 +260,7 @@ src/utils/MaskFormatter.ts:51
239
260
 
240
261
  #### Source
241
262
 
242
- src/utils/MaskFormatter.ts:420
263
+ src/utils/MaskFormatter.ts:429
243
264
 
244
265
  ## Accessors
245
266
 
@@ -265,7 +286,7 @@ A última máscara informada.
265
286
 
266
287
  #### Source
267
288
 
268
- src/utils/MaskFormatter.ts:88
289
+ src/utils/MaskFormatter.ts:91
269
290
 
270
291
  ## Methods
271
292
 
@@ -289,7 +310,7 @@ O valor processado de acordo com o padrão.
289
310
 
290
311
  #### Source
291
312
 
292
- src/utils/MaskFormatter.ts:103
313
+ src/utils/MaskFormatter.ts:106
293
314
 
294
315
  ***
295
316
 
@@ -317,7 +338,7 @@ O valor processado de acordo com o padrão.
317
338
 
318
339
  #### Source
319
340
 
320
- src/utils/MaskFormatter.ts:189
341
+ src/utils/MaskFormatter.ts:194
321
342
 
322
343
  ***
323
344
 
@@ -341,7 +362,7 @@ O valor processado de acordo com o padrão.
341
362
 
342
363
  #### Source
343
364
 
344
- src/utils/MaskFormatter.ts:169
365
+ src/utils/MaskFormatter.ts:174
345
366
 
346
367
  ***
347
368
 
@@ -357,4 +378,4 @@ Prepara a formatação internamente de acordo com o padrão.
357
378
 
358
379
  #### Source
359
380
 
360
- src/utils/MaskFormatter.ts:209
381
+ src/utils/MaskFormatter.ts:214
@@ -170,7 +170,25 @@ src/utils/OverflowWatcher/index.ts:52
170
170
 
171
171
  #### Source
172
172
 
173
- src/utils/OverflowWatcher/index.ts:206
173
+ src/utils/OverflowWatcher/index.ts:221
174
+
175
+ ***
176
+
177
+ ### calcContainerSize()
178
+
179
+ > `private` **calcContainerSize**(`container`): `number`
180
+
181
+ #### Parameters
182
+
183
+ • **container**: `Element`
184
+
185
+ #### Returns
186
+
187
+ `number`
188
+
189
+ #### Source
190
+
191
+ src/utils/OverflowWatcher/index.ts:257
174
192
 
175
193
  ***
176
194
 
@@ -188,7 +206,7 @@ src/utils/OverflowWatcher/index.ts:206
188
206
 
189
207
  #### Source
190
208
 
191
- src/utils/OverflowWatcher/index.ts:213
209
+ src/utils/OverflowWatcher/index.ts:272
192
210
 
193
211
  ***
194
212
 
@@ -206,7 +224,7 @@ src/utils/OverflowWatcher/index.ts:213
206
224
 
207
225
  #### Source
208
226
 
209
- src/utils/OverflowWatcher/index.ts:178
227
+ src/utils/OverflowWatcher/index.ts:193
210
228
 
211
229
  ***
212
230
 
@@ -224,7 +242,7 @@ src/utils/OverflowWatcher/index.ts:178
224
242
 
225
243
  #### Source
226
244
 
227
- src/utils/OverflowWatcher/index.ts:188
245
+ src/utils/OverflowWatcher/index.ts:203
228
246
 
229
247
  ***
230
248
 
@@ -242,7 +260,7 @@ src/utils/OverflowWatcher/index.ts:188
242
260
 
243
261
  #### Source
244
262
 
245
- src/utils/OverflowWatcher/index.ts:96
263
+ src/utils/OverflowWatcher/index.ts:111
246
264
 
247
265
  ***
248
266
 
@@ -260,7 +278,7 @@ src/utils/OverflowWatcher/index.ts:96
260
278
 
261
279
  #### Source
262
280
 
263
- src/utils/OverflowWatcher/index.ts:158
281
+ src/utils/OverflowWatcher/index.ts:173
264
282
 
265
283
  ***
266
284
 
@@ -274,7 +292,7 @@ src/utils/OverflowWatcher/index.ts:158
274
292
 
275
293
  #### Source
276
294
 
277
- src/utils/OverflowWatcher/index.ts:126
295
+ src/utils/OverflowWatcher/index.ts:141
278
296
 
279
297
  ***
280
298
 
@@ -310,7 +328,7 @@ src/utils/OverflowWatcher/index.ts:58
310
328
 
311
329
  #### Source
312
330
 
313
- src/utils/OverflowWatcher/index.ts:167
331
+ src/utils/OverflowWatcher/index.ts:182
314
332
 
315
333
  ***
316
334
 
@@ -342,7 +360,7 @@ src/utils/OverflowWatcher/index.ts:62
342
360
 
343
361
  #### Source
344
362
 
345
- src/utils/OverflowWatcher/index.ts:163
363
+ src/utils/OverflowWatcher/index.ts:178
346
364
 
347
365
  ***
348
366
 
@@ -360,7 +378,43 @@ src/utils/OverflowWatcher/index.ts:163
360
378
 
361
379
  #### Source
362
380
 
363
- src/utils/OverflowWatcher/index.ts:198
381
+ src/utils/OverflowWatcher/index.ts:213
382
+
383
+ ***
384
+
385
+ ### getProcessableElements()
386
+
387
+ > `private` **getProcessableElements**(`container`): `Element`[]
388
+
389
+ #### Parameters
390
+
391
+ • **container**: `HTMLElement`
392
+
393
+ #### Returns
394
+
395
+ `Element`[]
396
+
397
+ #### Source
398
+
399
+ src/utils/OverflowWatcher/index.ts:88
400
+
401
+ ***
402
+
403
+ ### groupElementsByContainer()
404
+
405
+ > `private` **groupElementsByContainer**(`elements`): `Map`\<`null` \| `Element`, `Element`[]\>
406
+
407
+ #### Parameters
408
+
409
+ • **elements**: `Element`[]
410
+
411
+ #### Returns
412
+
413
+ `Map`\<`null` \| `Element`, `Element`[]\>
414
+
415
+ #### Source
416
+
417
+ src/utils/OverflowWatcher/index.ts:243
364
418
 
365
419
  ***
366
420
 
@@ -396,7 +450,7 @@ src/utils/OverflowWatcher/index.ts:68
396
450
 
397
451
  #### Source
398
452
 
399
- src/utils/OverflowWatcher/index.ts:100
453
+ src/utils/OverflowWatcher/index.ts:115
400
454
 
401
455
  ***
402
456
 
@@ -416,7 +470,7 @@ src/utils/OverflowWatcher/index.ts:100
416
470
 
417
471
  #### Source
418
472
 
419
- src/utils/OverflowWatcher/index.ts:154
473
+ src/utils/OverflowWatcher/index.ts:169
420
474
 
421
475
  ***
422
476
 
@@ -434,7 +488,7 @@ src/utils/OverflowWatcher/index.ts:154
434
488
 
435
489
  #### Source
436
490
 
437
- src/utils/OverflowWatcher/index.ts:227
491
+ src/utils/OverflowWatcher/index.ts:286
438
492
 
439
493
  ***
440
494
 
@@ -454,7 +508,7 @@ src/utils/OverflowWatcher/index.ts:227
454
508
 
455
509
  #### Source
456
510
 
457
- src/utils/OverflowWatcher/index.ts:112
511
+ src/utils/OverflowWatcher/index.ts:127
458
512
 
459
513
  ***
460
514
 
@@ -474,7 +528,7 @@ src/utils/OverflowWatcher/index.ts:112
474
528
 
475
529
  #### Source
476
530
 
477
- src/utils/OverflowWatcher/index.ts:131
531
+ src/utils/OverflowWatcher/index.ts:146
478
532
 
479
533
  ***
480
534
 
@@ -492,7 +546,7 @@ src/utils/OverflowWatcher/index.ts:131
492
546
 
493
547
  #### Source
494
548
 
495
- src/utils/OverflowWatcher/index.ts:193
549
+ src/utils/OverflowWatcher/index.ts:208
496
550
 
497
551
  ***
498
552
 
@@ -510,7 +564,7 @@ src/utils/OverflowWatcher/index.ts:193
510
564
 
511
565
  #### Source
512
566
 
513
- src/utils/OverflowWatcher/index.ts:88
567
+ src/utils/OverflowWatcher/index.ts:103
514
568
 
515
569
  ***
516
570