@sankhyalabs/ezui-docs 5.0.7 → 5.2.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.
|
@@ -10,14 +10,10 @@
|
|
|
10
10
|
| Property | Attribute | Description | Type | Default |
|
|
11
11
|
| -------------- | --------------- | --------------------------------------------------------------------------------- | ------------------------------- | --------------- |
|
|
12
12
|
| `autoClose` | `auto-close` | Define que será fechado automaticamente quando o usuário clicar fora do conteúdo. | `boolean` | `true` |
|
|
13
|
-
| `bottom` | `bottom` | Define a distância de baixo. Devem ser usados valores válidos de CSS. | `string` | `"0px"` |
|
|
14
13
|
| `boxWidth` | `box-width` | Ajusta o comportamento da largura do popover. | `"fit-content" \| "full-width"` | `"fit-content"` |
|
|
15
14
|
| `innerElement` | `inner-element` | Define as tags que serão consideradas conteúdo. | `string \| string[]` | `undefined` |
|
|
16
|
-
| `left` | `left` | Define a distância do lado esquerdo. Devem ser usados valores válidos de CSS. | `string` | `"0px"` |
|
|
17
15
|
| `opened` | `opened` | Define se o ez-popover está aberto. | `boolean` | `undefined` |
|
|
18
16
|
| `overlayType` | `overlay-type` | Define o tipo de overlay do popover. | `"light" \| "medium" \| "none"` | `"light"` |
|
|
19
|
-
| `right` | `right` | Define a distância do lado direito. Devem ser usados valores válidos de CSS. | `string` | `"0px"` |
|
|
20
|
-
| `top` | `top` | Define a distância do topo. Devem ser usados valores válidos de CSS. | `string` | `"0px"` |
|
|
21
17
|
|
|
22
18
|
|
|
23
19
|
## Events
|
|
@@ -39,7 +35,7 @@ Type: `Promise<void>`
|
|
|
39
35
|
|
|
40
36
|
|
|
41
37
|
|
|
42
|
-
### `show(top?: string, left?: string
|
|
38
|
+
### `show(top?: string, left?: string) => Promise<void>`
|
|
43
39
|
|
|
44
40
|
Exibe o ez-popover.
|
|
45
41
|
|
|
@@ -49,7 +45,17 @@ Type: `Promise<void>`
|
|
|
49
45
|
|
|
50
46
|
|
|
51
47
|
|
|
52
|
-
### `
|
|
48
|
+
### `showUnder(element: HTMLElement, options?: IEzPopoverAnchorOptions) => Promise<void>`
|
|
49
|
+
|
|
50
|
+
Ancora a exibição do popOver a um elemento HTML.
|
|
51
|
+
|
|
52
|
+
#### Returns
|
|
53
|
+
|
|
54
|
+
Type: `Promise<void>`
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
### `updatePosition(top?: string, left?: string) => Promise<void>`
|
|
53
59
|
|
|
54
60
|
Atualiza a posição do popover.
|
|
55
61
|
|
|
@@ -27,6 +27,19 @@
|
|
|
27
27
|
|
|
28
28
|
## Methods
|
|
29
29
|
|
|
30
|
+
### `appendTextToSelection(text: string) => Promise<void>`
|
|
31
|
+
|
|
32
|
+
Adiciona o argumento text no value do text area, seguindo as regras:
|
|
33
|
+
- Se o cursor do mouse está posicionado em algum local do texto, o argumento será adicionado nesse local.
|
|
34
|
+
- Se existir uma seleção no texto, o trecho selecionado deve ser substituído pelo argumento.
|
|
35
|
+
- Se não existir seleção nem posicionamento do cursor do mouse, o argumento será adicionado no final do texto.
|
|
36
|
+
|
|
37
|
+
#### Returns
|
|
38
|
+
|
|
39
|
+
Type: `Promise<void>`
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
|
|
30
43
|
### `isInvalid() => Promise<boolean>`
|
|
31
44
|
|
|
32
45
|
Retorna se o conteúdo é inválido.
|