@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.
- package/README.md +63 -0
- package/classes/ApplicationContext.md +90 -0
- package/classes/ArrayUtils.md +99 -0
- package/classes/AuthorizedServiceCaller.md +76 -0
- package/classes/Change.md +190 -0
- package/classes/DataUnit.md +2453 -0
- package/classes/DataUnitAction.md +96 -0
- package/classes/DataUnitStorage.md +116 -0
- package/classes/DateUtils.md +327 -0
- package/classes/ElementIDUtils.md +308 -0
- package/classes/ErrorException.md +214 -0
- package/classes/ErrorTracking.md +62 -0
- package/classes/FloatingManager.md +530 -0
- package/classes/HTMLBuilder.md +45 -0
- package/classes/HttpProvider.md +96 -0
- package/classes/JSUtils.md +115 -0
- package/classes/MaskFormatter-1.md +347 -0
- package/classes/NumberUtils.md +335 -0
- package/classes/ObjectUtils.md +160 -0
- package/classes/OnboardingUtils.md +126 -0
- package/classes/PromiseSync.md +91 -0
- package/classes/ReadyUtil.md +115 -0
- package/classes/RequestMetadata.md +84 -0
- package/classes/SelectionInfo.md +168 -0
- package/classes/SkwHttpProvider.md +109 -0
- package/classes/StringUtils.md +562 -0
- package/classes/TimeFormatter.md +98 -0
- package/classes/UserAgentUtils.md +58 -0
- package/classes/VersionUtils.md +42 -0
- package/classes/WaitingChangeException.md +200 -0
- package/classes/WarningException.md +214 -0
- package/enums/Action.md +294 -0
- package/enums/ChangeOperation.md +52 -0
- package/enums/DataType.md +63 -0
- package/enums/DependencyType.md +41 -0
- package/enums/SelectionMode.md +30 -0
- package/enums/SortMode.md +30 -0
- package/enums/UserInterface.md +195 -0
- package/interfaces/ChildDescriptor.md +41 -0
- package/interfaces/ChildLink.md +30 -0
- package/interfaces/DUActionInterceptor.md +29 -0
- package/interfaces/ExecutionContext.md +58 -0
- package/interfaces/FieldDescriptor.md +140 -0
- package/interfaces/Filter.md +41 -0
- package/interfaces/IElementIDInfo.md +30 -0
- package/interfaces/LoadDataRequest.md +101 -0
- package/interfaces/LoadDataResponse.md +36 -0
- package/interfaces/PageRequest.md +41 -0
- package/interfaces/PaginationInfo.md +75 -0
- package/interfaces/PromiseSyncCallback.md +39 -0
- package/interfaces/QuickFilter.md +41 -0
- package/interfaces/Record.md +62 -0
- package/interfaces/SavedRecord.md +85 -0
- package/interfaces/Sort.md +41 -0
- package/interfaces/SortingProvider.md +29 -0
- package/interfaces/UnitMetadata.md +52 -0
- package/interfaces/WaitingChange.md +41 -0
- package/modules/MaskFormatter.md +37 -0
- package/modules.md +74 -0
- package/package.json +14 -0
@@ -0,0 +1,530 @@
|
|
1
|
+
[@sankhyalabs/core](../README.md) / [Exports](../modules.md) / FloatingManager
|
2
|
+
|
3
|
+
# Class: FloatingManager
|
4
|
+
|
5
|
+
`FloatingManager`: Gerenciador de elementos flutuantes na tela.
|
6
|
+
|
7
|
+
## Table of contents
|
8
|
+
|
9
|
+
### Constructors
|
10
|
+
|
11
|
+
- [constructor](FloatingManager.md#constructor)
|
12
|
+
|
13
|
+
### Properties
|
14
|
+
|
15
|
+
- [DATA\_OLD\_ZINDEX\_ATTRIBUTE\_NAME](FloatingManager.md#data_old_zindex_attribute_name)
|
16
|
+
- [MODAL\_DEFAULT\_CLASSNAME](FloatingManager.md#modal_default_classname)
|
17
|
+
- [MODAL\_ELEMENT\_ID](FloatingManager.md#modal_element_id)
|
18
|
+
- [STYLE\_ELEMENT\_ID](FloatingManager.md#style_element_id)
|
19
|
+
- [entries](FloatingManager.md#entries)
|
20
|
+
- [initialized](FloatingManager.md#initialized)
|
21
|
+
- [overlayElements](FloatingManager.md#overlayelements)
|
22
|
+
|
23
|
+
### Methods
|
24
|
+
|
25
|
+
- [applyStyle](FloatingManager.md#applystyle)
|
26
|
+
- [close](FloatingManager.md#close)
|
27
|
+
- [createOrUpdatOverlay](FloatingManager.md#createorupdatoverlay)
|
28
|
+
- [createStyleElement](FloatingManager.md#createstyleelement)
|
29
|
+
- [doClose](FloatingManager.md#doclose)
|
30
|
+
- [float](FloatingManager.md#float)
|
31
|
+
- [getCSSPropertyValue](FloatingManager.md#getcsspropertyvalue)
|
32
|
+
- [getFloatIndex](FloatingManager.md#getfloatindex)
|
33
|
+
- [getHighestZIndex](FloatingManager.md#gethighestzindex)
|
34
|
+
- [handleDocumentEvent](FloatingManager.md#handledocumentevent)
|
35
|
+
- [handleKeyboardEvent](FloatingManager.md#handlekeyboardevent)
|
36
|
+
- [hideOverlay](FloatingManager.md#hideoverlay)
|
37
|
+
- [init](FloatingManager.md#init)
|
38
|
+
- [innerClick](FloatingManager.md#innerclick)
|
39
|
+
- [isFloating](FloatingManager.md#isfloating)
|
40
|
+
- [showOverlay](FloatingManager.md#showoverlay)
|
41
|
+
- [subscribeOverlayControl](FloatingManager.md#subscribeoverlaycontrol)
|
42
|
+
- [unsubscribeOverlayControl](FloatingManager.md#unsubscribeoverlaycontrol)
|
43
|
+
- [updateFloatPosition](FloatingManager.md#updatefloatposition)
|
44
|
+
|
45
|
+
## Constructors
|
46
|
+
|
47
|
+
### constructor
|
48
|
+
|
49
|
+
• **new FloatingManager**()
|
50
|
+
|
51
|
+
## Properties
|
52
|
+
|
53
|
+
### DATA\_OLD\_ZINDEX\_ATTRIBUTE\_NAME
|
54
|
+
|
55
|
+
▪ `Static` **DATA\_OLD\_ZINDEX\_ATTRIBUTE\_NAME**: `string` = `"data-old-zindex"`
|
56
|
+
|
57
|
+
#### Defined in
|
58
|
+
|
59
|
+
src/ui/FloatingManager.ts:70
|
60
|
+
|
61
|
+
___
|
62
|
+
|
63
|
+
### MODAL\_DEFAULT\_CLASSNAME
|
64
|
+
|
65
|
+
▪ `Static` **MODAL\_DEFAULT\_CLASSNAME**: `string` = `"FloatingManager__modal"`
|
66
|
+
|
67
|
+
#### Defined in
|
68
|
+
|
69
|
+
src/ui/FloatingManager.ts:67
|
70
|
+
|
71
|
+
___
|
72
|
+
|
73
|
+
### MODAL\_ELEMENT\_ID
|
74
|
+
|
75
|
+
▪ `Static` **MODAL\_ELEMENT\_ID**: `string` = `"FloatingManager__overlay"`
|
76
|
+
|
77
|
+
#### Defined in
|
78
|
+
|
79
|
+
src/ui/FloatingManager.ts:68
|
80
|
+
|
81
|
+
___
|
82
|
+
|
83
|
+
### STYLE\_ELEMENT\_ID
|
84
|
+
|
85
|
+
▪ `Static` **STYLE\_ELEMENT\_ID**: `string` = `"FloatingManager__style"`
|
86
|
+
|
87
|
+
#### Defined in
|
88
|
+
|
89
|
+
src/ui/FloatingManager.ts:69
|
90
|
+
|
91
|
+
___
|
92
|
+
|
93
|
+
### entries
|
94
|
+
|
95
|
+
▪ `Static` `Private` **entries**: `FloatingEntry`[]
|
96
|
+
|
97
|
+
#### Defined in
|
98
|
+
|
99
|
+
src/ui/FloatingManager.ts:73
|
100
|
+
|
101
|
+
___
|
102
|
+
|
103
|
+
### initialized
|
104
|
+
|
105
|
+
▪ `Static` `Private` **initialized**: `boolean`
|
106
|
+
|
107
|
+
#### Defined in
|
108
|
+
|
109
|
+
src/ui/FloatingManager.ts:72
|
110
|
+
|
111
|
+
___
|
112
|
+
|
113
|
+
### overlayElements
|
114
|
+
|
115
|
+
▪ `Static` `Private` **overlayElements**: `HTMLElement`[] = `[]`
|
116
|
+
|
117
|
+
#### Defined in
|
118
|
+
|
119
|
+
src/ui/FloatingManager.ts:74
|
120
|
+
|
121
|
+
## Methods
|
122
|
+
|
123
|
+
### applyStyle
|
124
|
+
|
125
|
+
▸ `Static` `Private` **applyStyle**(`element`, `propertyName`, `value?`): `void`
|
126
|
+
|
127
|
+
Adiciona uma propriedade CSS em um elemento HTML.
|
128
|
+
|
129
|
+
#### Parameters
|
130
|
+
|
131
|
+
| Name | Type | Description |
|
132
|
+
| :------ | :------ | :------ |
|
133
|
+
| `element` | `HTMLElement` | Elemento HTML que será modificado. |
|
134
|
+
| `propertyName` | `string` | Nome da propriedade CSS que será adicionada. |
|
135
|
+
| `value?` | `string` | Valor da propriedade adicionada. |
|
136
|
+
|
137
|
+
#### Returns
|
138
|
+
|
139
|
+
`void`
|
140
|
+
|
141
|
+
#### Defined in
|
142
|
+
|
143
|
+
src/ui/FloatingManager.ts:179
|
144
|
+
|
145
|
+
___
|
146
|
+
|
147
|
+
### close
|
148
|
+
|
149
|
+
▸ `Static` **close**(`id`): `void`
|
150
|
+
|
151
|
+
Fecha elemento flutuante da tela.
|
152
|
+
|
153
|
+
#### Parameters
|
154
|
+
|
155
|
+
| Name | Type | Description |
|
156
|
+
| :------ | :------ | :------ |
|
157
|
+
| `id` | `number` | Índice do elemento desejado. |
|
158
|
+
|
159
|
+
#### Returns
|
160
|
+
|
161
|
+
`void`
|
162
|
+
|
163
|
+
#### Defined in
|
164
|
+
|
165
|
+
src/ui/FloatingManager.ts:374
|
166
|
+
|
167
|
+
___
|
168
|
+
|
169
|
+
### createOrUpdatOverlay
|
170
|
+
|
171
|
+
▸ `Static` `Private` **createOrUpdatOverlay**(`className?`): `HTMLDivElement`
|
172
|
+
|
173
|
+
Cria ou atualiza o elemento de sobreposição.
|
174
|
+
|
175
|
+
#### Parameters
|
176
|
+
|
177
|
+
| Name | Type | Default value | Description |
|
178
|
+
| :------ | :------ | :------ | :------ |
|
179
|
+
| `className` | `string` | `FloatingManager.MODAL_DEFAULT_CLASSNAME` | Classe CSS que será adicionada ao modal. |
|
180
|
+
|
181
|
+
#### Returns
|
182
|
+
|
183
|
+
`HTMLDivElement`
|
184
|
+
|
185
|
+
- O elemento atualizado.
|
186
|
+
|
187
|
+
#### Defined in
|
188
|
+
|
189
|
+
src/ui/FloatingManager.ts:297
|
190
|
+
|
191
|
+
___
|
192
|
+
|
193
|
+
### createStyleElement
|
194
|
+
|
195
|
+
▸ `Static` `Private` **createStyleElement**(): `void`
|
196
|
+
|
197
|
+
Cria elemento de estilo.
|
198
|
+
Elemento que define o estilo padrão do elemento de sobreposição.
|
199
|
+
|
200
|
+
#### Returns
|
201
|
+
|
202
|
+
`void`
|
203
|
+
|
204
|
+
#### Defined in
|
205
|
+
|
206
|
+
src/ui/FloatingManager.ts:324
|
207
|
+
|
208
|
+
___
|
209
|
+
|
210
|
+
### doClose
|
211
|
+
|
212
|
+
▸ `Static` `Private` **doClose**(`id`, `entry`, `target?`, `event?`): `void`
|
213
|
+
|
214
|
+
Fecha uma entrada flutuante (FloatingManager).
|
215
|
+
|
216
|
+
#### Parameters
|
217
|
+
|
218
|
+
| Name | Type | Description |
|
219
|
+
| :------ | :------ | :------ |
|
220
|
+
| `id` | `number` | Código da entrada que se deseja encerrar. |
|
221
|
+
| `entry` | `FloatingEntry` | FloatingManager. |
|
222
|
+
| `target?` | `HTMLElement` | Elemento HTML referente. |
|
223
|
+
| `event?` | `Event` | Evento específico que será verificado, como clique do mouse. |
|
224
|
+
|
225
|
+
#### Returns
|
226
|
+
|
227
|
+
`void`
|
228
|
+
|
229
|
+
#### Defined in
|
230
|
+
|
231
|
+
src/ui/FloatingManager.ts:116
|
232
|
+
|
233
|
+
___
|
234
|
+
|
235
|
+
### float
|
236
|
+
|
237
|
+
▸ `Static` **float**(`content`, `parent`, `options?`): `number`
|
238
|
+
|
239
|
+
Cria e exibe um novo item no FloatingManager.
|
240
|
+
|
241
|
+
#### Parameters
|
242
|
+
|
243
|
+
| Name | Type | Description |
|
244
|
+
| :------ | :------ | :------ |
|
245
|
+
| `content` | `HTMLElement` | Elemento HTML que será criado. |
|
246
|
+
| `parent` | `HTMLElement` | Elemento HTML que será o pai do item a ser criado. |
|
247
|
+
| `options` | `FloatingOptions` | Opções de configuração a serem adicionadas. |
|
248
|
+
|
249
|
+
#### Returns
|
250
|
+
|
251
|
+
`number`
|
252
|
+
|
253
|
+
- ID do novo item criado.
|
254
|
+
|
255
|
+
#### Defined in
|
256
|
+
|
257
|
+
src/ui/FloatingManager.ts:228
|
258
|
+
|
259
|
+
___
|
260
|
+
|
261
|
+
### getCSSPropertyValue
|
262
|
+
|
263
|
+
▸ `Static` `Private` **getCSSPropertyValue**(`element`, `property`): `string`
|
264
|
+
|
265
|
+
#### Parameters
|
266
|
+
|
267
|
+
| Name | Type |
|
268
|
+
| :------ | :------ |
|
269
|
+
| `element` | `HTMLElement` |
|
270
|
+
| `property` | `string` |
|
271
|
+
|
272
|
+
#### Returns
|
273
|
+
|
274
|
+
`string`
|
275
|
+
|
276
|
+
#### Defined in
|
277
|
+
|
278
|
+
src/ui/FloatingManager.ts:410
|
279
|
+
|
280
|
+
___
|
281
|
+
|
282
|
+
### getFloatIndex
|
283
|
+
|
284
|
+
▸ `Static` `Private` **getFloatIndex**(`content`, `parent`): `number`
|
285
|
+
|
286
|
+
Obtém o índice do FloatingManager do Elemento HMTL desejado.
|
287
|
+
|
288
|
+
#### Parameters
|
289
|
+
|
290
|
+
| Name | Type | Description |
|
291
|
+
| :------ | :------ | :------ |
|
292
|
+
| `content` | `HTMLElement` | Elemento a ser buscado. |
|
293
|
+
| `parent` | `HTMLElement` | Elemento pai do content a ser buscado. |
|
294
|
+
|
295
|
+
#### Returns
|
296
|
+
|
297
|
+
`number`
|
298
|
+
|
299
|
+
- Índice do elemento informado.
|
300
|
+
|
301
|
+
#### Defined in
|
302
|
+
|
303
|
+
src/ui/FloatingManager.ts:193
|
304
|
+
|
305
|
+
___
|
306
|
+
|
307
|
+
### getHighestZIndex
|
308
|
+
|
309
|
+
▸ `Static` `Private` **getHighestZIndex**(): `number`
|
310
|
+
|
311
|
+
#### Returns
|
312
|
+
|
313
|
+
`number`
|
314
|
+
|
315
|
+
#### Defined in
|
316
|
+
|
317
|
+
src/ui/FloatingManager.ts:414
|
318
|
+
|
319
|
+
___
|
320
|
+
|
321
|
+
### handleDocumentEvent
|
322
|
+
|
323
|
+
▸ `Static` `Private` **handleDocumentEvent**(`event`): `void`
|
324
|
+
|
325
|
+
Fecha todas as FloatingManagers abertas.
|
326
|
+
|
327
|
+
#### Parameters
|
328
|
+
|
329
|
+
| Name | Type | Description |
|
330
|
+
| :------ | :------ | :------ |
|
331
|
+
| `event` | `Event` | Evento ocorrido, como clique do mouse, por exemplo. |
|
332
|
+
|
333
|
+
#### Returns
|
334
|
+
|
335
|
+
`void`
|
336
|
+
|
337
|
+
#### Defined in
|
338
|
+
|
339
|
+
src/ui/FloatingManager.ts:143
|
340
|
+
|
341
|
+
___
|
342
|
+
|
343
|
+
### handleKeyboardEvent
|
344
|
+
|
345
|
+
▸ `Static` `Private` **handleKeyboardEvent**(`event`): `void`
|
346
|
+
|
347
|
+
Captura eventos de teclado para manipular os elementos flutuantes via eventos da tecla pressionada.
|
348
|
+
|
349
|
+
#### Parameters
|
350
|
+
|
351
|
+
| Name | Type | Description |
|
352
|
+
| :------ | :------ | :------ |
|
353
|
+
| `event` | `KeyboardEvent` | Evento de teclado. |
|
354
|
+
|
355
|
+
#### Returns
|
356
|
+
|
357
|
+
`void`
|
358
|
+
|
359
|
+
#### Defined in
|
360
|
+
|
361
|
+
src/ui/FloatingManager.ts:157
|
362
|
+
|
363
|
+
___
|
364
|
+
|
365
|
+
### hideOverlay
|
366
|
+
|
367
|
+
▸ `Static` `Private` **hideOverlay**(): `void`
|
368
|
+
|
369
|
+
Desfaz o desfoque/overlay dos elementos na tela.
|
370
|
+
|
371
|
+
#### Returns
|
372
|
+
|
373
|
+
`void`
|
374
|
+
|
375
|
+
#### Defined in
|
376
|
+
|
377
|
+
src/ui/FloatingManager.ts:274
|
378
|
+
|
379
|
+
___
|
380
|
+
|
381
|
+
### init
|
382
|
+
|
383
|
+
▸ `Static` `Private` **init**(): `void`
|
384
|
+
|
385
|
+
Inicializa a classe FloatingManager.
|
386
|
+
|
387
|
+
#### Returns
|
388
|
+
|
389
|
+
`void`
|
390
|
+
|
391
|
+
#### Defined in
|
392
|
+
|
393
|
+
src/ui/FloatingManager.ts:82
|
394
|
+
|
395
|
+
___
|
396
|
+
|
397
|
+
### innerClick
|
398
|
+
|
399
|
+
▸ `Static` `Private` **innerClick**(`container`, `node`): `boolean`
|
400
|
+
|
401
|
+
Retorna se o elemento clicado possui elementos internos.
|
402
|
+
|
403
|
+
#### Parameters
|
404
|
+
|
405
|
+
| Name | Type |
|
406
|
+
| :------ | :------ |
|
407
|
+
| `container` | `HTMLElement` |
|
408
|
+
| `node` | `HTMLElement` |
|
409
|
+
|
410
|
+
#### Returns
|
411
|
+
|
412
|
+
`boolean`
|
413
|
+
|
414
|
+
#### Defined in
|
415
|
+
|
416
|
+
src/ui/FloatingManager.ts:94
|
417
|
+
|
418
|
+
___
|
419
|
+
|
420
|
+
### isFloating
|
421
|
+
|
422
|
+
▸ `Static` **isFloating**(`id`): `boolean`
|
423
|
+
|
424
|
+
Retorna se uma entrada flutuante existe.
|
425
|
+
|
426
|
+
#### Parameters
|
427
|
+
|
428
|
+
| Name | Type | Description |
|
429
|
+
| :------ | :------ | :------ |
|
430
|
+
| `id` | `number` | Índice para ser verificado no FloatingManager. |
|
431
|
+
|
432
|
+
#### Returns
|
433
|
+
|
434
|
+
`boolean`
|
435
|
+
|
436
|
+
- Verdadeiro se existir.
|
437
|
+
|
438
|
+
#### Defined in
|
439
|
+
|
440
|
+
src/ui/FloatingManager.ts:213
|
441
|
+
|
442
|
+
___
|
443
|
+
|
444
|
+
### showOverlay
|
445
|
+
|
446
|
+
▸ `Static` `Private` **showOverlay**(`options`): `void`
|
447
|
+
|
448
|
+
Aplica o desfoque na página se o elemento possuir essa option ativada.
|
449
|
+
|
450
|
+
#### Parameters
|
451
|
+
|
452
|
+
| Name | Type | Description |
|
453
|
+
| :------ | :------ | :------ |
|
454
|
+
| `options` | `FloatingOptions` | Configurações que serão utilizadas no elemento. |
|
455
|
+
|
456
|
+
#### Returns
|
457
|
+
|
458
|
+
`void`
|
459
|
+
|
460
|
+
#### Defined in
|
461
|
+
|
462
|
+
src/ui/FloatingManager.ts:262
|
463
|
+
|
464
|
+
___
|
465
|
+
|
466
|
+
### subscribeOverlayControl
|
467
|
+
|
468
|
+
▸ `Static` **subscribeOverlayControl**(`item`): `undefined` \| `number`
|
469
|
+
|
470
|
+
Controle a sobreposição do elemento
|
471
|
+
|
472
|
+
#### Parameters
|
473
|
+
|
474
|
+
| Name | Type | Description |
|
475
|
+
| :------ | :------ | :------ |
|
476
|
+
| `item` | `HTMLElement` | Elemento HTML que será manipulado |
|
477
|
+
|
478
|
+
#### Returns
|
479
|
+
|
480
|
+
`undefined` \| `number`
|
481
|
+
|
482
|
+
- O ID do elemento na lista de controle
|
483
|
+
|
484
|
+
#### Defined in
|
485
|
+
|
486
|
+
src/ui/FloatingManager.ts:385
|
487
|
+
|
488
|
+
___
|
489
|
+
|
490
|
+
### unsubscribeOverlayControl
|
491
|
+
|
492
|
+
▸ `Static` **unsubscribeOverlayControl**(`identifier`): `void`
|
493
|
+
|
494
|
+
#### Parameters
|
495
|
+
|
496
|
+
| Name | Type | Description |
|
497
|
+
| :------ | :------ | :------ |
|
498
|
+
| `identifier` | `number` \| `HTMLElement` | Elemento HTML ou ID do item que será removido do controle de sobreposição |
|
499
|
+
|
500
|
+
#### Returns
|
501
|
+
|
502
|
+
`void`
|
503
|
+
|
504
|
+
#### Defined in
|
505
|
+
|
506
|
+
src/ui/FloatingManager.ts:400
|
507
|
+
|
508
|
+
___
|
509
|
+
|
510
|
+
### updateFloatPosition
|
511
|
+
|
512
|
+
▸ `Static` **updateFloatPosition**(`content`, `parent`, `options?`): `void`
|
513
|
+
|
514
|
+
Atualiza posição de um elemento que já está em tela.
|
515
|
+
|
516
|
+
#### Parameters
|
517
|
+
|
518
|
+
| Name | Type | Description |
|
519
|
+
| :------ | :------ | :------ |
|
520
|
+
| `content` | `HTMLElement` | Elemento HTML que será atualizado. |
|
521
|
+
| `parent` | `HTMLElement` | Elemento pai do content passado. |
|
522
|
+
| `options` | `FloatingOptions` | Novas opções desejadas. |
|
523
|
+
|
524
|
+
#### Returns
|
525
|
+
|
526
|
+
`void`
|
527
|
+
|
528
|
+
#### Defined in
|
529
|
+
|
530
|
+
src/ui/FloatingManager.ts:356
|
@@ -0,0 +1,45 @@
|
|
1
|
+
[@sankhyalabs/core](../README.md) / [Exports](../modules.md) / HTMLBuilder
|
2
|
+
|
3
|
+
# Class: HTMLBuilder
|
4
|
+
|
5
|
+
## Table of contents
|
6
|
+
|
7
|
+
### Constructors
|
8
|
+
|
9
|
+
- [constructor](HTMLBuilder.md#constructor)
|
10
|
+
|
11
|
+
### Methods
|
12
|
+
|
13
|
+
- [parseElement](HTMLBuilder.md#parseelement)
|
14
|
+
|
15
|
+
## Constructors
|
16
|
+
|
17
|
+
### constructor
|
18
|
+
|
19
|
+
• **new HTMLBuilder**()
|
20
|
+
|
21
|
+
## Methods
|
22
|
+
|
23
|
+
### parseElement
|
24
|
+
|
25
|
+
▸ `Static` **parseElement**<`ElementType`\>(`html`): `ElementType`
|
26
|
+
|
27
|
+
#### Type parameters
|
28
|
+
|
29
|
+
| Name | Type |
|
30
|
+
| :------ | :------ |
|
31
|
+
| `ElementType` | extends `HTMLElement`<`ElementType`\> |
|
32
|
+
|
33
|
+
#### Parameters
|
34
|
+
|
35
|
+
| Name | Type |
|
36
|
+
| :------ | :------ |
|
37
|
+
| `html` | `string` |
|
38
|
+
|
39
|
+
#### Returns
|
40
|
+
|
41
|
+
`ElementType`
|
42
|
+
|
43
|
+
#### Defined in
|
44
|
+
|
45
|
+
src/html/HTMLBuilder.ts:2
|
@@ -0,0 +1,96 @@
|
|
1
|
+
[@sankhyalabs/core](../README.md) / [Exports](../modules.md) / HttpProvider
|
2
|
+
|
3
|
+
# Class: HttpProvider
|
4
|
+
|
5
|
+
Abstração do XMLHttpRequest. Este serviço é responsável por realizar as requisições
|
6
|
+
ao backend. Todos os métodos são estáticos.
|
7
|
+
|
8
|
+
## Table of contents
|
9
|
+
|
10
|
+
### Constructors
|
11
|
+
|
12
|
+
- [constructor](HttpProvider.md#constructor)
|
13
|
+
|
14
|
+
### Methods
|
15
|
+
|
16
|
+
- [dispatch](HttpProvider.md#dispatch)
|
17
|
+
- [get](HttpProvider.md#get)
|
18
|
+
- [post](HttpProvider.md#post)
|
19
|
+
|
20
|
+
## Constructors
|
21
|
+
|
22
|
+
### constructor
|
23
|
+
|
24
|
+
• **new HttpProvider**()
|
25
|
+
|
26
|
+
## Methods
|
27
|
+
|
28
|
+
### dispatch
|
29
|
+
|
30
|
+
▸ `Static` `Private` **dispatch**(`requestMetadata`, `payload?`): `Promise`<`any`\>
|
31
|
+
|
32
|
+
#### Parameters
|
33
|
+
|
34
|
+
| Name | Type |
|
35
|
+
| :------ | :------ |
|
36
|
+
| `requestMetadata` | [`RequestMetadata`](RequestMetadata.md) |
|
37
|
+
| `payload?` | `Object` |
|
38
|
+
|
39
|
+
#### Returns
|
40
|
+
|
41
|
+
`Promise`<`any`\>
|
42
|
+
|
43
|
+
#### Defined in
|
44
|
+
|
45
|
+
src/http/HttpProvider.ts:32
|
46
|
+
|
47
|
+
___
|
48
|
+
|
49
|
+
### get
|
50
|
+
|
51
|
+
▸ `Static` **get**(`url`, `headers?`): `Promise`<`Object`\>
|
52
|
+
|
53
|
+
Faz uma requisição usando o método GET do HTTP para uma URL específica.
|
54
|
+
|
55
|
+
#### Parameters
|
56
|
+
|
57
|
+
| Name | Type | Description |
|
58
|
+
| :------ | :------ | :------ |
|
59
|
+
| `url` | `string` | A URL que deve ser chamada. |
|
60
|
+
| `headers?` | `Header`[] | [Opcional] Cabeçalhos HTTP. |
|
61
|
+
|
62
|
+
#### Returns
|
63
|
+
|
64
|
+
`Promise`<`Object`\>
|
65
|
+
|
66
|
+
Uma promessa de que a requisição será preenchida.
|
67
|
+
|
68
|
+
#### Defined in
|
69
|
+
|
70
|
+
src/http/HttpProvider.ts:16
|
71
|
+
|
72
|
+
___
|
73
|
+
|
74
|
+
### post
|
75
|
+
|
76
|
+
▸ `Static` **post**(`url`, `payload`, `headers?`): `Promise`<`any`\>
|
77
|
+
|
78
|
+
Faz uma requisição usando o método POST do HTTP para uma URL específica.
|
79
|
+
|
80
|
+
#### Parameters
|
81
|
+
|
82
|
+
| Name | Type | Description |
|
83
|
+
| :------ | :------ | :------ |
|
84
|
+
| `url` | `string` | A URL que deve ser chamada. |
|
85
|
+
| `payload` | `Object` | Informações a serem enviadas. |
|
86
|
+
| `headers?` | `Header`[] | [Opcional] Cabeçalhos HTTP. |
|
87
|
+
|
88
|
+
#### Returns
|
89
|
+
|
90
|
+
`Promise`<`any`\>
|
91
|
+
|
92
|
+
Uma promessa de que a requisição será preenchida.
|
93
|
+
|
94
|
+
#### Defined in
|
95
|
+
|
96
|
+
src/http/HttpProvider.ts:28
|