@sankhyalabs/ezui 2.3.1 → 2.3.2

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 (155) hide show
  1. package/README.md +1 -0
  2. package/dist/cjs/ez-actions-button.cjs.entry.js +12 -8
  3. package/dist/cjs/ez-button.cjs.entry.js +5 -5
  4. package/dist/cjs/ez-calendar.cjs.entry.js +10 -13
  5. package/dist/cjs/ez-check.cjs.entry.js +5 -8
  6. package/dist/cjs/ez-chip.cjs.entry.js +4 -4
  7. package/dist/cjs/ez-collapsible-box.cjs.entry.js +14 -14
  8. package/dist/cjs/ez-combo-box.cjs.entry.js +11 -11
  9. package/dist/cjs/ez-date-input.cjs.entry.js +5 -5
  10. package/dist/cjs/ez-date-time-input.cjs.entry.js +7 -7
  11. package/dist/cjs/ez-dialog.cjs.entry.js +4 -7
  12. package/dist/cjs/ez-filter-input.cjs.entry.js +6 -6
  13. package/dist/cjs/ez-form.cjs.entry.js +3 -6
  14. package/dist/cjs/ez-grid.cjs.entry.js +16 -17
  15. package/dist/cjs/ez-icon.cjs.entry.js +3 -3
  16. package/dist/cjs/ez-list.cjs.entry.js +71 -71
  17. package/dist/cjs/ez-loading-bar.cjs.entry.js +8 -4
  18. package/dist/cjs/ez-modal-container.cjs.entry.js +2 -2
  19. package/dist/cjs/ez-modal.cjs.entry.js +6 -6
  20. package/dist/cjs/ez-number-input.cjs.entry.js +5 -5
  21. package/dist/cjs/ez-popover.cjs.entry.js +8 -10
  22. package/dist/cjs/ez-popup.cjs.entry.js +4 -5
  23. package/dist/cjs/ez-radio-button.cjs.entry.js +3 -3
  24. package/dist/cjs/ez-scroller.cjs.entry.js +2 -7
  25. package/dist/cjs/ez-search.cjs.entry.js +13 -14
  26. package/dist/cjs/ez-text-area.cjs.entry.js +7 -7
  27. package/dist/cjs/ez-text-edit.cjs.entry.js +1 -1
  28. package/dist/cjs/ez-text-input.cjs.entry.js +7 -7
  29. package/dist/cjs/ez-time-input.cjs.entry.js +6 -6
  30. package/dist/cjs/ez-toast.cjs.entry.js +5 -5
  31. package/dist/cjs/ez-upload.cjs.entry.js +5 -5
  32. package/dist/cjs/ez-view-stack.cjs.entry.js +2 -2
  33. package/dist/cjs/ezui.cjs.js +1 -1
  34. package/dist/cjs/loader.cjs.js +1 -1
  35. package/dist/collection/components/ez-actions-button/ez-actions-button.js +27 -22
  36. package/dist/collection/components/ez-button/ez-button.js +15 -15
  37. package/dist/collection/components/ez-calendar/ez-calendar.js +18 -21
  38. package/dist/collection/components/ez-card-item/ez-card-item.js +2 -2
  39. package/dist/collection/components/ez-check/ez-check.js +28 -22
  40. package/dist/collection/components/ez-chip/ez-chip.js +15 -15
  41. package/dist/collection/components/ez-collapsible-box/ez-collapsible-box.js +28 -28
  42. package/dist/collection/components/ez-combo-box/ez-combo-box.js +42 -33
  43. package/dist/collection/components/ez-date-input/ez-date-input.js +18 -18
  44. package/dist/collection/components/ez-date-time-input/ez-date-time-input.js +21 -21
  45. package/dist/collection/components/ez-dialog/ez-dialog.js +13 -35
  46. package/dist/collection/components/ez-filter-input/ez-filter-input.js +18 -35
  47. package/dist/collection/components/ez-form/ez-form.js +7 -42
  48. package/dist/collection/components/ez-grid/ez-grid.js +41 -42
  49. package/dist/collection/components/ez-icon/ez-icon.js +11 -11
  50. package/dist/collection/components/ez-list/ez-list.js +112 -93
  51. package/dist/collection/components/ez-loading-bar/ez-loading-bar.js +10 -6
  52. package/dist/collection/components/ez-modal/ez-modal.js +14 -14
  53. package/dist/collection/components/ez-modal-container/ez-modal-container.js +16 -16
  54. package/dist/collection/components/ez-number-input/ez-number-input.js +20 -20
  55. package/dist/collection/components/ez-popover/ez-popover.js +22 -24
  56. package/dist/collection/components/ez-popup/ez-popup.js +16 -17
  57. package/dist/collection/components/ez-radio-button/ez-radio-button.js +8 -8
  58. package/dist/collection/components/ez-scroller/ez-scroller.js +6 -12
  59. package/dist/collection/components/ez-search/ez-search.js +42 -46
  60. package/dist/collection/components/ez-tabselector/ez-tabselector.js +2 -2
  61. package/dist/collection/components/ez-text-area/ez-text-area.js +20 -37
  62. package/dist/collection/components/ez-text-edit/ez-text-edit.js +6 -6
  63. package/dist/collection/components/ez-text-input/ez-text-input.js +21 -38
  64. package/dist/collection/components/ez-time-input/ez-time-input.js +20 -20
  65. package/dist/collection/components/ez-toast/ez-toast.js +12 -12
  66. package/dist/collection/components/ez-upload/ez-upload.js +14 -14
  67. package/dist/collection/components/ez-view-stack/ez-view-stack.js +4 -4
  68. package/dist/custom-elements/index.js +265 -279
  69. package/dist/esm/ez-actions-button.entry.js +12 -8
  70. package/dist/esm/ez-button.entry.js +5 -5
  71. package/dist/esm/ez-calendar.entry.js +10 -13
  72. package/dist/esm/ez-check.entry.js +5 -8
  73. package/dist/esm/ez-chip.entry.js +4 -4
  74. package/dist/esm/ez-collapsible-box.entry.js +14 -14
  75. package/dist/esm/ez-combo-box.entry.js +11 -11
  76. package/dist/esm/ez-date-input.entry.js +5 -5
  77. package/dist/esm/ez-date-time-input.entry.js +7 -7
  78. package/dist/esm/ez-dialog.entry.js +4 -7
  79. package/dist/esm/ez-filter-input.entry.js +6 -6
  80. package/dist/esm/ez-form.entry.js +3 -6
  81. package/dist/esm/ez-grid.entry.js +16 -17
  82. package/dist/esm/ez-icon.entry.js +3 -3
  83. package/dist/esm/ez-list.entry.js +71 -71
  84. package/dist/esm/ez-loading-bar.entry.js +8 -4
  85. package/dist/esm/ez-modal-container.entry.js +2 -2
  86. package/dist/esm/ez-modal.entry.js +6 -6
  87. package/dist/esm/ez-number-input.entry.js +5 -5
  88. package/dist/esm/ez-popover.entry.js +8 -10
  89. package/dist/esm/ez-popup.entry.js +4 -5
  90. package/dist/esm/ez-radio-button.entry.js +3 -3
  91. package/dist/esm/ez-scroller.entry.js +2 -7
  92. package/dist/esm/ez-search.entry.js +13 -14
  93. package/dist/esm/ez-text-area.entry.js +7 -7
  94. package/dist/esm/ez-text-edit.entry.js +1 -1
  95. package/dist/esm/ez-text-input.entry.js +7 -7
  96. package/dist/esm/ez-time-input.entry.js +6 -6
  97. package/dist/esm/ez-toast.entry.js +5 -5
  98. package/dist/esm/ez-upload.entry.js +5 -5
  99. package/dist/esm/ez-view-stack.entry.js +2 -2
  100. package/dist/esm/ezui.js +1 -1
  101. package/dist/esm/loader.js +1 -1
  102. package/dist/ezui/ezui.esm.js +1 -1
  103. package/dist/ezui/p-1214c5ce.entry.js +1 -0
  104. package/dist/ezui/p-2af9fe67.entry.js +1 -0
  105. package/dist/ezui/p-642c530f.entry.js +1 -0
  106. package/dist/ezui/p-96265e26.entry.js +1 -0
  107. package/dist/ezui/p-b47eb5d4.entry.js +1 -0
  108. package/dist/ezui/{p-855f99f8.entry.js → p-ccbe8272.entry.js} +1 -1
  109. package/dist/ezui/p-e60e7308.entry.js +1 -0
  110. package/dist/ezui/p-ede1328a.entry.js +1 -0
  111. package/dist/ezui/p-f6111077.entry.js +1 -0
  112. package/dist/types/components/ez-actions-button/ez-actions-button.d.ts +15 -14
  113. package/dist/types/components/ez-button/ez-button.d.ts +10 -10
  114. package/dist/types/components/ez-calendar/ez-calendar.d.ts +11 -14
  115. package/dist/types/components/ez-card-item/ez-card-item.d.ts +7 -0
  116. package/dist/types/components/ez-check/ez-check.d.ts +11 -13
  117. package/dist/types/components/ez-chip/ez-chip.d.ts +15 -14
  118. package/dist/types/components/ez-collapsible-box/ez-collapsible-box.d.ts +25 -25
  119. package/dist/types/components/ez-combo-box/ez-combo-box.d.ts +21 -20
  120. package/dist/types/components/ez-date-input/ez-date-input.d.ts +16 -17
  121. package/dist/types/components/ez-date-time-input/ez-date-time-input.d.ts +18 -19
  122. package/dist/types/components/ez-dialog/ez-dialog.d.ts +13 -16
  123. package/dist/types/components/ez-filter-input/ez-filter-input.d.ts +12 -17
  124. package/dist/types/components/ez-form/ez-form.d.ts +7 -5
  125. package/dist/types/components/ez-grid/controller/EzGridController.d.ts +2 -2
  126. package/dist/types/components/ez-grid/ez-grid.d.ts +37 -39
  127. package/dist/types/components/ez-icon/ez-icon.d.ts +4 -4
  128. package/dist/types/components/ez-list/ez-list.d.ts +29 -32
  129. package/dist/types/components/ez-loading-bar/ez-loading-bar.d.ts +6 -0
  130. package/dist/types/components/ez-modal/ez-modal.d.ts +15 -15
  131. package/dist/types/components/ez-modal-container/ez-modal-container.d.ts +10 -10
  132. package/dist/types/components/ez-number-input/ez-number-input.d.ts +18 -24
  133. package/dist/types/components/ez-popover/ez-popover.d.ts +13 -16
  134. package/dist/types/components/ez-popup/ez-popup.d.ts +12 -13
  135. package/dist/types/components/ez-radio-button/ez-radio-button.d.ts +8 -8
  136. package/dist/types/components/ez-scroller/ez-scroller.d.ts +3 -4
  137. package/dist/types/components/ez-search/ez-search.d.ts +27 -31
  138. package/dist/types/components/ez-tabselector/ez-tabselector.d.ts +4 -7
  139. package/dist/types/components/ez-text-area/ez-text-area.d.ts +12 -16
  140. package/dist/types/components/ez-text-edit/ez-text-edit.d.ts +5 -5
  141. package/dist/types/components/ez-text-input/ez-text-input.d.ts +14 -19
  142. package/dist/types/components/ez-time-input/ez-time-input.d.ts +16 -17
  143. package/dist/types/components/ez-toast/ez-toast.d.ts +7 -7
  144. package/dist/types/components/ez-upload/ez-upload.d.ts +11 -12
  145. package/dist/types/components/ez-view-stack/ez-view-stack.d.ts +2 -2
  146. package/dist/types/components.d.ts +514 -529
  147. package/package.json +2 -2
  148. package/dist/ezui/p-0fb5f4be.entry.js +0 -1
  149. package/dist/ezui/p-1ba371a3.entry.js +0 -1
  150. package/dist/ezui/p-42c6493e.entry.js +0 -1
  151. package/dist/ezui/p-6700360e.entry.js +0 -1
  152. package/dist/ezui/p-89b2a151.entry.js +0 -1
  153. package/dist/ezui/p-8c2105a5.entry.js +0 -1
  154. package/dist/ezui/p-ed2135a5.entry.js +0 -1
  155. package/dist/ezui/p-f6afdc4d.entry.js +0 -1
@@ -4,24 +4,24 @@ import { ElementIDUtils } from "@sankhyalabs/core";
4
4
  export class EzSearch {
5
5
  constructor() {
6
6
  /**
7
- * Deixa o campo disponível ou não.
8
- */
7
+ * Se false o usuário não pode interagir com o campo.
8
+ */
9
9
  this.enabled = true;
10
10
  /**
11
- * Ajusta a opção de mostrar o "value" ao selecionar uma opção.
12
- */
11
+ * Se false a opção selecionada deve exibir somente o `label`.
12
+ */
13
13
  this.showSelectedValue = true;
14
14
  /**
15
- * Ajusta a opção de mostrar o "value" para cada opção.
16
- */
15
+ * Se false cada opção na lista deve exibir somente o `label`.
16
+ */
17
17
  this.showOptionValue = true;
18
18
  /**
19
- * Remove a opção vazia da lista de opções
20
- */
19
+ * Se true remove a opção vazia da lista.
20
+ */
21
21
  this.suppressEmptyOption = false;
22
22
  /**
23
- * Define o modo do tamanho do campo; opções: slim e regular.
24
- */
23
+ * Define o tamanho do campo.
24
+ */
25
25
  this.mode = "regular";
26
26
  }
27
27
  observeErrorMessage() {
@@ -35,19 +35,19 @@ export class EzSearch {
35
35
  }
36
36
  }
37
37
  /**
38
- * Realiza o foco no componente de pesquisa
38
+ * Aplica o foco no campo.
39
39
  */
40
40
  async setFocus() {
41
41
  this._comboElement.setFocus();
42
42
  }
43
43
  /**
44
- * Remove o foco no componente de pesquisa
44
+ * Remove o foco do campo.
45
45
  */
46
46
  async setBlur() {
47
47
  this._comboElement.setBlur();
48
48
  }
49
49
  /**
50
- * Retorna informando se o campo está inválido (true | false)
50
+ * Retorna se o conteúdo é inválido.
51
51
  */
52
52
  async isInvalid() {
53
53
  return typeof this.errorMessage === "string" && this.errorMessage.trim() !== "";
@@ -94,7 +94,7 @@ export class EzSearch {
94
94
  "optional": false,
95
95
  "docs": {
96
96
  "tags": [],
97
- "text": "C\u00F3digo do registro selecionado"
97
+ "text": "Define o valor do campo."
98
98
  },
99
99
  "attribute": "value",
100
100
  "reflect": true
@@ -111,7 +111,7 @@ export class EzSearch {
111
111
  "optional": false,
112
112
  "docs": {
113
113
  "tags": [],
114
- "text": "T\u00EDtulo do campo"
114
+ "text": "Texto a ser apresentado como t\u00EDtulo do campo."
115
115
  },
116
116
  "attribute": "label",
117
117
  "reflect": true
@@ -128,7 +128,7 @@ export class EzSearch {
128
128
  "optional": false,
129
129
  "docs": {
130
130
  "tags": [],
131
- "text": "Deixa o campo dispon\u00EDvel ou n\u00E3o."
131
+ "text": "Se false o usu\u00E1rio n\u00E3o pode interagir com o campo."
132
132
  },
133
133
  "attribute": "enabled",
134
134
  "reflect": true,
@@ -146,7 +146,7 @@ export class EzSearch {
146
146
  "optional": false,
147
147
  "docs": {
148
148
  "tags": [],
149
- "text": "Quando h\u00E1 um problema de valida\u00E7\u00E3o, serve como orienta\u00E7\u00E3o ao usu\u00E1rio"
149
+ "text": "Define uma mensagem de orienta\u00E7\u00E3o ao usu\u00E1rio, colocando o campo em modo inv\u00E1lido."
150
150
  },
151
151
  "attribute": "error-message",
152
152
  "reflect": true
@@ -155,11 +155,22 @@ export class EzSearch {
155
155
  "type": "unknown",
156
156
  "mutable": false,
157
157
  "complexType": {
158
- "original": "Function",
159
- "resolved": "Function",
158
+ "original": "(argument: ISearchArgument) => Promise<Array<IOption>> | Array<IOption> | IOption",
159
+ "resolved": "(argument: ISearchArgument) => IOption | IOption[] | Promise<IOption[]>",
160
160
  "references": {
161
- "Function": {
161
+ "ISearchArgument": {
162
+ "location": "import",
163
+ "path": "../ez-combo-box/ez-combo-box"
164
+ },
165
+ "Promise": {
162
166
  "location": "global"
167
+ },
168
+ "Array": {
169
+ "location": "global"
170
+ },
171
+ "IOption": {
172
+ "location": "import",
173
+ "path": "../ez-combo-box/ez-combo-box"
163
174
  }
164
175
  }
165
176
  },
@@ -167,7 +178,7 @@ export class EzSearch {
167
178
  "optional": false,
168
179
  "docs": {
169
180
  "tags": [],
170
- "text": "Fun\u00E7\u00E3o respons\u00E1vel por carregar as op\u00E7\u00F5es dinamicamente"
181
+ "text": "Carrega as op\u00E7\u00F5es dinamicamente."
171
182
  }
172
183
  },
173
184
  "showSelectedValue": {
@@ -182,7 +193,7 @@ export class EzSearch {
182
193
  "optional": false,
183
194
  "docs": {
184
195
  "tags": [],
185
- "text": "Ajusta a op\u00E7\u00E3o de mostrar o \"value\" ao selecionar uma op\u00E7\u00E3o."
196
+ "text": "Se false a op\u00E7\u00E3o selecionada deve exibir somente o `label`."
186
197
  },
187
198
  "attribute": "show-selected-value",
188
199
  "reflect": false,
@@ -200,7 +211,7 @@ export class EzSearch {
200
211
  "optional": false,
201
212
  "docs": {
202
213
  "tags": [],
203
- "text": "Ajusta a op\u00E7\u00E3o de mostrar o \"value\" para cada op\u00E7\u00E3o."
214
+ "text": "Se false cada op\u00E7\u00E3o na lista deve exibir somente o `label`."
204
215
  },
205
216
  "attribute": "show-option-value",
206
217
  "reflect": false,
@@ -218,7 +229,7 @@ export class EzSearch {
218
229
  "optional": false,
219
230
  "docs": {
220
231
  "tags": [],
221
- "text": "Remove a op\u00E7\u00E3o vazia da lista de op\u00E7\u00F5es"
232
+ "text": "Se true remove a op\u00E7\u00E3o vazia da lista."
222
233
  },
223
234
  "attribute": "suppress-empty-option",
224
235
  "reflect": false,
@@ -228,15 +239,15 @@ export class EzSearch {
228
239
  "type": "string",
229
240
  "mutable": false,
230
241
  "complexType": {
231
- "original": "string",
232
- "resolved": "string",
242
+ "original": "\"slim\" | \"regular\"",
243
+ "resolved": "\"regular\" | \"slim\"",
233
244
  "references": {}
234
245
  },
235
246
  "required": false,
236
247
  "optional": false,
237
248
  "docs": {
238
249
  "tags": [],
239
- "text": "Define o modo do tamanho do campo; op\u00E7\u00F5es: slim e regular."
250
+ "text": "Define o tamanho do campo."
240
251
  },
241
252
  "attribute": "mode",
242
253
  "reflect": true,
@@ -251,7 +262,7 @@ export class EzSearch {
251
262
  "composed": true,
252
263
  "docs": {
253
264
  "tags": [],
254
- "text": "Um evento disparado quando o estado do componente \u00E9 alterado (onEzChange)."
265
+ "text": "Emitido quando acontece a altera\u00E7\u00E3o de valor do campo."
255
266
  },
256
267
  "complexType": {
257
268
  "original": "IOption",
@@ -263,21 +274,6 @@ export class EzSearch {
263
274
  }
264
275
  }
265
276
  }
266
- }, {
267
- "method": "showPopup",
268
- "name": "showPopup",
269
- "bubbles": true,
270
- "cancelable": true,
271
- "composed": true,
272
- "docs": {
273
- "tags": [],
274
- "text": "Evento emitido ao clicar para abrir o popup"
275
- },
276
- "complexType": {
277
- "original": "any",
278
- "resolved": "any",
279
- "references": {}
280
- }
281
277
  }]; }
282
278
  static get methods() { return {
283
279
  "setFocus": {
@@ -292,7 +288,7 @@ export class EzSearch {
292
288
  "return": "Promise<void>"
293
289
  },
294
290
  "docs": {
295
- "text": "Realiza o foco no componente de pesquisa",
291
+ "text": "Aplica o foco no campo.",
296
292
  "tags": []
297
293
  }
298
294
  },
@@ -308,7 +304,7 @@ export class EzSearch {
308
304
  "return": "Promise<void>"
309
305
  },
310
306
  "docs": {
311
- "text": "Remove o foco no componente de pesquisa",
307
+ "text": "Remove o foco do campo.",
312
308
  "tags": []
313
309
  }
314
310
  },
@@ -324,7 +320,7 @@ export class EzSearch {
324
320
  "return": "Promise<boolean>"
325
321
  },
326
322
  "docs": {
327
- "text": "Retorna informando se o campo est\u00E1 inv\u00E1lido (true | false)",
323
+ "text": "Retorna se o conte\u00FAdo \u00E9 inv\u00E1lido.",
328
324
  "tags": []
329
325
  }
330
326
  }
@@ -281,7 +281,7 @@ export class EzTabselector {
281
281
  "optional": false,
282
282
  "docs": {
283
283
  "tags": [],
284
- "text": "Define o nome das abas do componente, separadas por v\u00EDrgulas \",\".\nOpcionalmente pode-se construir um array de objetos do tipo Tab, nesse caso\no tabKey e o \u00EDndice ser\u00E3o respeitados."
284
+ "text": "Define o nome das abas do componente.\nPodendo serem separadas por v\u00EDrgula \",\" ou em um Array de configura\u00E7\u00E3o."
285
285
  },
286
286
  "attribute": "tabs",
287
287
  "reflect": false
@@ -298,7 +298,7 @@ export class EzTabselector {
298
298
  "composed": true,
299
299
  "docs": {
300
300
  "tags": [],
301
- "text": "Evento emitido ao clicar para abrir o popup (ezChange).\nO detail desse evento carrega tanto o tabKey quanto o index da aba\nselecionada."
301
+ "text": "Emitido quando acontece a altera\u00E7\u00E3o de valor do componente."
302
302
  },
303
303
  "complexType": {
304
304
  "original": "Tab",
@@ -3,19 +3,19 @@ import { Component, Prop, h, Watch, Host, Method, Event, Element } from '@stenci
3
3
  export class EzTextArea {
4
4
  constructor() {
5
5
  /**
6
- * Deixa o campo disponível ou não para digitação.
6
+ * Se false o usuário não pode interagir com o campo.
7
7
  */
8
8
  this.enabled = true;
9
9
  /**
10
- * Ajusta o número de linhas e consequentemente o height do textarea. Valor default: 4
10
+ * Define o número de linhas.
11
11
  */
12
12
  this.rows = 4;
13
13
  /**
14
- * Permite exibir a mensagem de erro.
14
+ * Se false deixa de exibir a mensagem de erro dentro do campo.
15
15
  */
16
16
  this.canShowError = true;
17
17
  /**
18
- * Define o modo do tamanho do campo; opções: slim e regular.
18
+ * Define o tamanho do campo.
19
19
  */
20
20
  this.mode = "regular";
21
21
  }
@@ -63,19 +63,19 @@ export class EzTextArea {
63
63
  // Public methods
64
64
  //---------------------------------------------
65
65
  /**
66
- * Faz o foco no componente de input
66
+ * Aplica o foco no campo.
67
67
  */
68
68
  async setFocus() {
69
69
  this._inputElem.focus();
70
70
  }
71
71
  /**
72
- * Remove o foco no componente de input
72
+ * Remove o foco do campo.
73
73
  */
74
74
  async setBlur() {
75
75
  this._inputElem.blur();
76
76
  }
77
77
  /**
78
- * Retorna informando se o campo está inválido (true | false)
78
+ * Retorna se o conteúdo é inválido.
79
79
  */
80
80
  async isInvalid() {
81
81
  return typeof this.errorMessage === "string" && this.errorMessage.trim() !== "";
@@ -167,7 +167,7 @@ export class EzTextArea {
167
167
  "optional": false,
168
168
  "docs": {
169
169
  "tags": [],
170
- "text": "T\u00EDtulo do campo"
170
+ "text": "Texto a ser apresentado como t\u00EDtulo do campo."
171
171
  },
172
172
  "attribute": "label",
173
173
  "reflect": true
@@ -184,7 +184,7 @@ export class EzTextArea {
184
184
  "optional": false,
185
185
  "docs": {
186
186
  "tags": [],
187
- "text": "Valor digitado pelo usu\u00E1rio. Este valor \u00E9 o que fica vis\u00EDvel no campo."
187
+ "text": "Define o valor do campo."
188
188
  },
189
189
  "attribute": "value",
190
190
  "reflect": true
@@ -201,29 +201,12 @@ export class EzTextArea {
201
201
  "optional": false,
202
202
  "docs": {
203
203
  "tags": [],
204
- "text": "Deixa o campo dispon\u00EDvel ou n\u00E3o para digita\u00E7\u00E3o."
204
+ "text": "Se false o usu\u00E1rio n\u00E3o pode interagir com o campo."
205
205
  },
206
206
  "attribute": "enabled",
207
207
  "reflect": true,
208
208
  "defaultValue": "true"
209
209
  },
210
- "loading": {
211
- "type": "boolean",
212
- "mutable": false,
213
- "complexType": {
214
- "original": "boolean",
215
- "resolved": "boolean",
216
- "references": {}
217
- },
218
- "required": false,
219
- "optional": false,
220
- "docs": {
221
- "tags": [],
222
- "text": "Deixa o componente em modo \"carregando\"."
223
- },
224
- "attribute": "loading",
225
- "reflect": true
226
- },
227
210
  "errorMessage": {
228
211
  "type": "string",
229
212
  "mutable": true,
@@ -236,7 +219,7 @@ export class EzTextArea {
236
219
  "optional": false,
237
220
  "docs": {
238
221
  "tags": [],
239
- "text": "Quando h\u00E1 um problema de valida\u00E7\u00E3o, serve como orienta\u00E7\u00E3o ao usu\u00E1rio"
222
+ "text": "Define uma mensagem de orienta\u00E7\u00E3o ao usu\u00E1rio, colocando o campo em modo inv\u00E1lido."
240
223
  },
241
224
  "attribute": "error-message",
242
225
  "reflect": true
@@ -253,7 +236,7 @@ export class EzTextArea {
253
236
  "optional": false,
254
237
  "docs": {
255
238
  "tags": [],
256
- "text": "Ajusta o n\u00FAmero de linhas e consequentemente o height do textarea. Valor default: 4"
239
+ "text": "Define o n\u00FAmero de linhas."
257
240
  },
258
241
  "attribute": "rows",
259
242
  "reflect": true,
@@ -271,7 +254,7 @@ export class EzTextArea {
271
254
  "optional": false,
272
255
  "docs": {
273
256
  "tags": [],
274
- "text": "Permite exibir a mensagem de erro."
257
+ "text": "Se false deixa de exibir a mensagem de erro dentro do campo."
275
258
  },
276
259
  "attribute": "can-show-error",
277
260
  "reflect": true,
@@ -281,15 +264,15 @@ export class EzTextArea {
281
264
  "type": "string",
282
265
  "mutable": false,
283
266
  "complexType": {
284
- "original": "string",
285
- "resolved": "string",
267
+ "original": "\"slim\" | \"regular\"",
268
+ "resolved": "\"regular\" | \"slim\"",
286
269
  "references": {}
287
270
  },
288
271
  "required": false,
289
272
  "optional": false,
290
273
  "docs": {
291
274
  "tags": [],
292
- "text": "Define o modo do tamanho do campo; op\u00E7\u00F5es: slim e regular."
275
+ "text": "Define o tamanho do campo."
293
276
  },
294
277
  "attribute": "mode",
295
278
  "reflect": true,
@@ -304,7 +287,7 @@ export class EzTextArea {
304
287
  "composed": true,
305
288
  "docs": {
306
289
  "tags": [],
307
- "text": "Evento disparado quando o estado do componente \u00E9 alterado (onEzChange)."
290
+ "text": "Emitido quando acontece a altera\u00E7\u00E3o de valor do campo."
308
291
  },
309
292
  "complexType": {
310
293
  "original": "string",
@@ -325,7 +308,7 @@ export class EzTextArea {
325
308
  "return": "Promise<void>"
326
309
  },
327
310
  "docs": {
328
- "text": "Faz o foco no componente de input",
311
+ "text": "Aplica o foco no campo.",
329
312
  "tags": []
330
313
  }
331
314
  },
@@ -341,7 +324,7 @@ export class EzTextArea {
341
324
  "return": "Promise<void>"
342
325
  },
343
326
  "docs": {
344
- "text": "Remove o foco no componente de input",
327
+ "text": "Remove o foco do campo.",
345
328
  "tags": []
346
329
  }
347
330
  },
@@ -357,7 +340,7 @@ export class EzTextArea {
357
340
  "return": "Promise<boolean>"
358
341
  },
359
342
  "docs": {
360
- "text": "Retorna informando se o campo est\u00E1 inv\u00E1lido (true | false)",
343
+ "text": "Retorna se o conte\u00FAdo \u00E9 inv\u00E1lido.",
361
344
  "tags": []
362
345
  }
363
346
  }
@@ -3,7 +3,7 @@ import { ElementIDUtils, StringUtils } from '@sankhyalabs/core';
3
3
  import { ApplicationUtils } from "../../utils";
4
4
  export class EzTextEdit {
5
5
  /**
6
- * Aplica focus no campo.
6
+ * Aplica foco no campo.
7
7
  */
8
8
  async applyFocusSelect() {
9
9
  this.calcSizeInput(this.value, true);
@@ -109,7 +109,7 @@ export class EzTextEdit {
109
109
  "optional": false,
110
110
  "docs": {
111
111
  "tags": [],
112
- "text": "Valor manipulado pelo componente atrav\u00E9s do input"
112
+ "text": "Define o valor do campo."
113
113
  },
114
114
  "attribute": "value",
115
115
  "reflect": false
@@ -130,7 +130,7 @@ export class EzTextEdit {
130
130
  "optional": false,
131
131
  "docs": {
132
132
  "tags": [],
133
- "text": "Define atributos do estilo"
133
+ "text": "Define atributos do estilo."
134
134
  }
135
135
  }
136
136
  }; }
@@ -145,7 +145,7 @@ export class EzTextEdit {
145
145
  "composed": true,
146
146
  "docs": {
147
147
  "tags": [],
148
- "text": "Evento emitido ao salvar uma edi\u00E7\u00E3o"
148
+ "text": "Emitido ao salvar uma edi\u00E7\u00E3o"
149
149
  },
150
150
  "complexType": {
151
151
  "original": "any",
@@ -160,7 +160,7 @@ export class EzTextEdit {
160
160
  "composed": true,
161
161
  "docs": {
162
162
  "tags": [],
163
- "text": "Disparado ao cancelar uma edi\u00E7\u00E3o"
163
+ "text": "Emitido ao cancelar uma edi\u00E7\u00E3o"
164
164
  },
165
165
  "complexType": {
166
166
  "original": "any",
@@ -181,7 +181,7 @@ export class EzTextEdit {
181
181
  "return": "Promise<void>"
182
182
  },
183
183
  "docs": {
184
- "text": "Aplica focus no campo.",
184
+ "text": "Aplica foco no campo.",
185
185
  "tags": []
186
186
  }
187
187
  }
@@ -3,19 +3,19 @@ import { ElementIDUtils, MaskFormatter } from "@sankhyalabs/core";
3
3
  export class EzTextInput {
4
4
  constructor() {
5
5
  /**
6
- * Deixa o campo disponível ou não para digitação.
6
+ * Se false o usuário não pode interagir com o campo.
7
7
  */
8
8
  this.enabled = true;
9
9
  /**
10
- * Permite exibir a mensagem de erro.
10
+ * Se false deixa de exibir a mensagem de erro dentro do campo.
11
11
  */
12
12
  this.canShowError = true;
13
13
  /**
14
- * Define o modo do tamanho do campo; opções: slim e regular.
14
+ * Define o tamanho do campo.
15
15
  */
16
16
  this.mode = "regular";
17
17
  /**
18
- * Define se o campo contará com bordas ou não
18
+ * Se true o campo não terá bordas.
19
19
  */
20
20
  this.noBorder = false;
21
21
  }
@@ -100,19 +100,19 @@ export class EzTextInput {
100
100
  // Public methods
101
101
  //---------------------------------------------
102
102
  /**
103
- * Faz o foco no componente de input
103
+ * Aplica o foco no campo.
104
104
  */
105
105
  async setFocus() {
106
106
  this._inputElem.focus();
107
107
  }
108
108
  /**
109
- * Remove o foco no componente de input
109
+ * Remove o foco do campo.
110
110
  */
111
111
  async setBlur() {
112
112
  this._inputElem.blur();
113
113
  }
114
114
  /**
115
- * Retorna informando se o campo está inválido (true | false)
115
+ * Retorna se o conteúdo é inválido.
116
116
  */
117
117
  async isInvalid() {
118
118
  return typeof this.errorMessage === "string" && this.errorMessage.trim() !== "";
@@ -255,7 +255,7 @@ export class EzTextInput {
255
255
  "optional": false,
256
256
  "docs": {
257
257
  "tags": [],
258
- "text": "T\u00EDtulo do campo"
258
+ "text": "Texto a ser apresentado como t\u00EDtulo do campo."
259
259
  },
260
260
  "attribute": "label",
261
261
  "reflect": true
@@ -272,7 +272,7 @@ export class EzTextInput {
272
272
  "optional": false,
273
273
  "docs": {
274
274
  "tags": [],
275
- "text": "Valor digitado pelo usu\u00E1rio. Este valor \u00E9 o que fica vis\u00EDvel no campo."
275
+ "text": "Define o valor do campo."
276
276
  },
277
277
  "attribute": "value",
278
278
  "reflect": true
@@ -289,29 +289,12 @@ export class EzTextInput {
289
289
  "optional": false,
290
290
  "docs": {
291
291
  "tags": [],
292
- "text": "Deixa o campo dispon\u00EDvel ou n\u00E3o para digita\u00E7\u00E3o."
292
+ "text": "Se false o usu\u00E1rio n\u00E3o pode interagir com o campo."
293
293
  },
294
294
  "attribute": "enabled",
295
295
  "reflect": true,
296
296
  "defaultValue": "true"
297
297
  },
298
- "loading": {
299
- "type": "boolean",
300
- "mutable": false,
301
- "complexType": {
302
- "original": "boolean",
303
- "resolved": "boolean",
304
- "references": {}
305
- },
306
- "required": false,
307
- "optional": false,
308
- "docs": {
309
- "tags": [],
310
- "text": "Deixa o componente em modo \"carregando\"."
311
- },
312
- "attribute": "loading",
313
- "reflect": true
314
- },
315
298
  "errorMessage": {
316
299
  "type": "string",
317
300
  "mutable": true,
@@ -324,7 +307,7 @@ export class EzTextInput {
324
307
  "optional": false,
325
308
  "docs": {
326
309
  "tags": [],
327
- "text": "Quando h\u00E1 um problema de valida\u00E7\u00E3o, serve como orienta\u00E7\u00E3o ao usu\u00E1rio"
310
+ "text": "Define uma mensagem de orienta\u00E7\u00E3o ao usu\u00E1rio, colocando o campo em modo inv\u00E1lido."
328
311
  },
329
312
  "attribute": "error-message",
330
313
  "reflect": true
@@ -358,7 +341,7 @@ export class EzTextInput {
358
341
  "optional": false,
359
342
  "docs": {
360
343
  "tags": [],
361
- "text": "Permite exibir a mensagem de erro."
344
+ "text": "Se false deixa de exibir a mensagem de erro dentro do campo."
362
345
  },
363
346
  "attribute": "can-show-error",
364
347
  "reflect": true,
@@ -376,7 +359,7 @@ export class EzTextInput {
376
359
  "optional": false,
377
360
  "docs": {
378
361
  "tags": [],
379
- "text": "Restringe o que o usu\u00E1rio pode digitar. Cada caractere digitado ser\u00E1 testado\ne deve estar contido nessa string ou ser\u00E1 descartado."
362
+ "text": "Restringe o que o usu\u00E1rio pode digitar."
380
363
  },
381
364
  "attribute": "restrict",
382
365
  "reflect": false
@@ -385,15 +368,15 @@ export class EzTextInput {
385
368
  "type": "string",
386
369
  "mutable": false,
387
370
  "complexType": {
388
- "original": "string",
389
- "resolved": "string",
371
+ "original": "\"slim\" | \"regular\"",
372
+ "resolved": "\"regular\" | \"slim\"",
390
373
  "references": {}
391
374
  },
392
375
  "required": false,
393
376
  "optional": false,
394
377
  "docs": {
395
378
  "tags": [],
396
- "text": "Define o modo do tamanho do campo; op\u00E7\u00F5es: slim e regular."
379
+ "text": "Define o tamanho do campo."
397
380
  },
398
381
  "attribute": "mode",
399
382
  "reflect": true,
@@ -411,7 +394,7 @@ export class EzTextInput {
411
394
  "optional": false,
412
395
  "docs": {
413
396
  "tags": [],
414
- "text": "Define se o campo contar\u00E1 com bordas ou n\u00E3o"
397
+ "text": "Se true o campo n\u00E3o ter\u00E1 bordas."
415
398
  },
416
399
  "attribute": "no-border",
417
400
  "reflect": true,
@@ -426,7 +409,7 @@ export class EzTextInput {
426
409
  "composed": true,
427
410
  "docs": {
428
411
  "tags": [],
429
- "text": "Evento disparado quando o estado do componente \u00E9 alterado (onEzChange)."
412
+ "text": "Emitido quando acontece a altera\u00E7\u00E3o de valor do campo."
430
413
  },
431
414
  "complexType": {
432
415
  "original": "string",
@@ -447,7 +430,7 @@ export class EzTextInput {
447
430
  "return": "Promise<void>"
448
431
  },
449
432
  "docs": {
450
- "text": "Faz o foco no componente de input",
433
+ "text": "Aplica o foco no campo.",
451
434
  "tags": []
452
435
  }
453
436
  },
@@ -463,7 +446,7 @@ export class EzTextInput {
463
446
  "return": "Promise<void>"
464
447
  },
465
448
  "docs": {
466
- "text": "Remove o foco no componente de input",
449
+ "text": "Remove o foco do campo.",
467
450
  "tags": []
468
451
  }
469
452
  },
@@ -479,7 +462,7 @@ export class EzTextInput {
479
462
  "return": "Promise<boolean>"
480
463
  },
481
464
  "docs": {
482
- "text": "Retorna informando se o campo est\u00E1 inv\u00E1lido (true | false)",
465
+ "text": "Retorna se o conte\u00FAdo \u00E9 inv\u00E1lido.",
483
466
  "tags": []
484
467
  }
485
468
  }