@sankhyalabs/ezui 1.1.115 → 1.1.116

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 (72) hide show
  1. package/dist/cjs/ez-combo-box.cjs.entry.js +6 -2
  2. package/dist/cjs/ez-date-input.cjs.entry.js +6 -2
  3. package/dist/cjs/ez-date-time-input.cjs.entry.js +6 -2
  4. package/dist/cjs/ez-filter-input.cjs.entry.js +73 -0
  5. package/dist/cjs/ez-number-input.cjs.entry.js +5 -1
  6. package/dist/cjs/ez-search.cjs.entry.js +17 -13
  7. package/dist/cjs/ez-text-area.cjs.entry.js +28 -9
  8. package/dist/cjs/ez-text-input.cjs.entry.js +11 -6
  9. package/dist/cjs/ez-time-input.cjs.entry.js +7 -2
  10. package/dist/cjs/ezui.cjs.js +1 -1
  11. package/dist/cjs/loader.cjs.js +1 -1
  12. package/dist/cjs/test-du.cjs.entry.js +2 -1
  13. package/dist/collection/collection-manifest.json +1 -0
  14. package/dist/collection/components/ez-combo-box/ez-combo-box.js +24 -2
  15. package/dist/collection/components/ez-date-input/ez-date-input.js +24 -2
  16. package/dist/collection/components/ez-date-time-input/ez-date-time-input.js +24 -2
  17. package/dist/collection/components/ez-filter-input/ez-filter-input.css +4 -0
  18. package/dist/collection/components/ez-filter-input/ez-filter-input.js +248 -0
  19. package/dist/collection/components/ez-number-input/ez-number-input.js +23 -1
  20. package/dist/collection/components/ez-search/ez-search.js +35 -13
  21. package/dist/collection/components/ez-text-area/ez-text-area.css +71 -1
  22. package/dist/collection/components/ez-text-area/ez-text-area.js +67 -9
  23. package/dist/collection/components/ez-text-input/ez-text-input.css +78 -0
  24. package/dist/collection/components/ez-text-input/ez-text-input.js +29 -6
  25. package/dist/collection/components/ez-time-input/ez-time-input.js +25 -2
  26. package/dist/collection/components/test-du/test-du.js +2 -1
  27. package/dist/custom-elements/index.d.ts +6 -0
  28. package/dist/custom-elements/index.js +166 -47
  29. package/dist/esm/ez-combo-box.entry.js +6 -2
  30. package/dist/esm/ez-date-input.entry.js +6 -2
  31. package/dist/esm/ez-date-time-input.entry.js +6 -2
  32. package/dist/esm/ez-filter-input.entry.js +69 -0
  33. package/dist/esm/ez-number-input.entry.js +5 -1
  34. package/dist/esm/ez-search.entry.js +17 -13
  35. package/dist/esm/ez-text-area.entry.js +28 -9
  36. package/dist/esm/ez-text-input.entry.js +11 -6
  37. package/dist/esm/ez-time-input.entry.js +7 -2
  38. package/dist/esm/ezui.js +1 -1
  39. package/dist/esm/loader.js +1 -1
  40. package/dist/esm/test-du.entry.js +2 -1
  41. package/dist/ezui/ezui.esm.js +1 -1
  42. package/dist/ezui/p-01169201.entry.js +1 -0
  43. package/dist/ezui/p-055f1b6a.entry.js +1 -0
  44. package/dist/ezui/p-2f14fe3d.entry.js +1 -0
  45. package/dist/ezui/p-43feac7d.entry.js +1 -0
  46. package/dist/ezui/p-6f39077b.entry.js +1 -0
  47. package/dist/ezui/p-83d5f1ca.entry.js +1 -0
  48. package/dist/ezui/p-8c447785.entry.js +1 -0
  49. package/dist/ezui/p-8f2d46f8.entry.js +1 -0
  50. package/dist/ezui/p-d3d3e2ac.entry.js +1 -0
  51. package/dist/types/components/ez-combo-box/ez-combo-box.d.ts +4 -0
  52. package/dist/types/components/ez-date-input/ez-date-input.d.ts +4 -0
  53. package/dist/types/components/ez-date-time-input/ez-date-time-input.d.ts +4 -0
  54. package/dist/types/components/ez-filter-input/ez-filter-input.d.ts +52 -0
  55. package/dist/types/components/ez-number-input/ez-number-input.d.ts +4 -0
  56. package/dist/types/components/ez-search/ez-search.d.ts +24 -20
  57. package/dist/types/components/ez-text-area/ez-text-area.d.ts +11 -0
  58. package/dist/types/components/ez-text-input/ez-text-input.d.ts +4 -0
  59. package/dist/types/components/ez-time-input/ez-time-input.d.ts +4 -0
  60. package/dist/types/components.d.ts +153 -0
  61. package/package.json +1 -1
  62. package/react/components.d.ts +1 -0
  63. package/react/components.js +1 -0
  64. package/react/components.js.map +1 -1
  65. package/dist/ezui/p-25e87823.entry.js +0 -1
  66. package/dist/ezui/p-3a8bf0a8.entry.js +0 -1
  67. package/dist/ezui/p-44d4f8d6.entry.js +0 -1
  68. package/dist/ezui/p-8248690a.entry.js +0 -1
  69. package/dist/ezui/p-9aecc079.entry.js +0 -1
  70. package/dist/ezui/p-bc2834fa.entry.js +0 -1
  71. package/dist/ezui/p-c27495d9.entry.js +0 -1
  72. package/dist/ezui/p-fb73f557.entry.js +0 -1
@@ -7,6 +7,10 @@ export class EzDateInput {
7
7
  * Deixa o campo disponível ou não para uso.
8
8
  */
9
9
  this.enabled = true;
10
+ /**
11
+ * Define o modo do tamanho do campo; opções: slim e regular.
12
+ */
13
+ this.mode = "regular";
10
14
  }
11
15
  setLabel() {
12
16
  this._textInput.label = this.label;
@@ -47,7 +51,7 @@ export class EzDateInput {
47
51
  //FIXME: Provavelmente isso fará com que o popup abra em uma
48
52
  //posição errada no futuro. Preferi fazer simples no começo,
49
53
  //porque não quis onerar o text input com essa funcionalidade...
50
- const top = this._textInput.errorMessage ? 0 : -17;
54
+ const top = this._textInput.errorMessage || this.mode == "slim" ? 0 : -19;
51
55
  this._calendar.fitVertical(top, this._elem.clientHeight);
52
56
  }
53
57
  hideCalendar() {
@@ -78,7 +82,7 @@ export class EzDateInput {
78
82
  render() {
79
83
  return (h(Host, null,
80
84
  h("ez-text-input", { ref: elem => this._textInput = elem, onBlur: () => this.parseDate(), onKeyDown: event => { if (event.key === "H" || event.key === "h")
81
- this.changeValue(new Date()); }, label: this.label, onEzChange: event => event.stopPropagation(), value: this.getTextValue(this.value), restrict: "0123456789/", enabled: this.enabled, errorMessage: this.errorMessage },
85
+ this.changeValue(new Date()); }, label: this.label, onEzChange: event => event.stopPropagation(), value: this.getTextValue(this.value), restrict: "0123456789/", enabled: this.enabled, errorMessage: this.errorMessage, mode: this.mode },
82
86
  h("button", { disabled: !this.enabled, tabindex: -1, class: "btn-open-cal", onClick: () => this.showCalendar(), slot: "leftIcon" })),
83
87
  h("ez-calendar", { onEzChange: (event) => { this.hideCalendar(); event.stopPropagation(); }, floating: true, ref: elem => this._calendar = elem })));
84
88
  }
@@ -161,6 +165,24 @@ export class EzDateInput {
161
165
  },
162
166
  "attribute": "error-message",
163
167
  "reflect": true
168
+ },
169
+ "mode": {
170
+ "type": "string",
171
+ "mutable": false,
172
+ "complexType": {
173
+ "original": "string",
174
+ "resolved": "string",
175
+ "references": {}
176
+ },
177
+ "required": false,
178
+ "optional": false,
179
+ "docs": {
180
+ "tags": [],
181
+ "text": "Define o modo do tamanho do campo; op\u00E7\u00F5es: slim e regular."
182
+ },
183
+ "attribute": "mode",
184
+ "reflect": true,
185
+ "defaultValue": "\"regular\""
164
186
  }
165
187
  }; }
166
188
  static get events() { return [{
@@ -11,6 +11,10 @@ export class EzDateTimeInput {
11
11
  * Exibe ou não os segundos no input
12
12
  */
13
13
  this.showSeconds = false;
14
+ /**
15
+ * Define o modo do tamanho do campo; opções: slim e regular.
16
+ */
17
+ this.mode = "regular";
14
18
  }
15
19
  setLabel() {
16
20
  this._textInput.label = this.label;
@@ -83,7 +87,7 @@ export class EzDateTimeInput {
83
87
  }
84
88
  }
85
89
  showCalendar() {
86
- const top = this._textInput.errorMessage ? 0 : -17;
90
+ const top = this._textInput.errorMessage || this.mode == "slim" ? 0 : -19;
87
91
  this._calendar.fitVertical(top, this._elem.clientHeight);
88
92
  this._calendar.style.visibility = 'inherit';
89
93
  }
@@ -123,7 +127,7 @@ export class EzDateTimeInput {
123
127
  }
124
128
  render() {
125
129
  return (h(Host, null,
126
- h("ez-text-input", { ref: elem => this._textInput = elem, onBlur: () => this.parseDate(), onKeyDown: event => { this.onChangeKeyDown(event); }, label: this.label, onEzChange: event => event.stopPropagation(), value: this.getTextValue(this.value), restrict: "0123456789/: ", enabled: this.enabled, errorMessage: this.errorMessage, onFocus: () => this.onFocused(), onClick: () => this.onClicked() },
130
+ h("ez-text-input", { ref: elem => this._textInput = elem, onBlur: () => this.parseDate(), onKeyDown: event => { this.onChangeKeyDown(event); }, label: this.label, onEzChange: event => event.stopPropagation(), value: this.getTextValue(this.value), restrict: "0123456789/: ", enabled: this.enabled, errorMessage: this.errorMessage, mode: this.mode, onFocus: () => this.onFocused(), onClick: () => this.onClicked() },
127
131
  h("button", { disabled: !this.enabled, tabindex: -1, class: "btn-open-cal", onClick: () => this.showCalendar(), slot: "leftIcon" })),
128
132
  h("ez-calendar", { onEzChange: (event) => { this.changeValue(this._calendar.value); event.stopPropagation(); }, floating: true, ref: elem => this._calendar = elem, time: true, showSeconds: this.showSeconds })));
129
133
  }
@@ -224,6 +228,24 @@ export class EzDateTimeInput {
224
228
  "attribute": "show-seconds",
225
229
  "reflect": true,
226
230
  "defaultValue": "false"
231
+ },
232
+ "mode": {
233
+ "type": "string",
234
+ "mutable": false,
235
+ "complexType": {
236
+ "original": "string",
237
+ "resolved": "string",
238
+ "references": {}
239
+ },
240
+ "required": false,
241
+ "optional": false,
242
+ "docs": {
243
+ "tags": [],
244
+ "text": "Define o modo do tamanho do campo; op\u00E7\u00F5es: slim e regular."
245
+ },
246
+ "attribute": "mode",
247
+ "reflect": true,
248
+ "defaultValue": "\"regular\""
227
249
  }
228
250
  }; }
229
251
  static get events() { return [{
@@ -0,0 +1,4 @@
1
+ :host {
2
+ display: block;
3
+ width: 100%;
4
+ }
@@ -0,0 +1,248 @@
1
+ import { Component, h, Event, Prop, Watch, Element, Method } from "@stencil/core";
2
+ import CSSVarsUtils from "../../utils/CSSVarsUtils";
3
+ export class EzFilterInput {
4
+ constructor() {
5
+ /**
6
+ * Deixa o campo disponível ou não para uso.
7
+ */
8
+ this.enabled = true;
9
+ /**
10
+ * Define o modo do tamanho do campo; opções: slim e regular.
11
+ */
12
+ this.mode = "regular";
13
+ }
14
+ setLabel() {
15
+ if (this._textInput) {
16
+ this._textInput.label = this.label;
17
+ }
18
+ }
19
+ setErrorMessage() {
20
+ if (this._textInput) {
21
+ this._textInput.errorMessage = this.errorMessage;
22
+ }
23
+ }
24
+ applyValueToInput() {
25
+ if (this._textInput) {
26
+ this._textInput.value = this.value;
27
+ }
28
+ }
29
+ /**
30
+ * Realiza o foco no componente de input
31
+ */
32
+ async setFocus() {
33
+ this._textInput.setFocus();
34
+ }
35
+ /**
36
+ * Remove o foco no componente de input
37
+ */
38
+ async setBlur() {
39
+ this._textInput.setBlur();
40
+ }
41
+ changeValue(evt) {
42
+ const newValue = evt.detail;
43
+ this.errorMessage = "";
44
+ if (newValue !== this.value) {
45
+ this.value = newValue;
46
+ this.ezChange.emit(this.value);
47
+ }
48
+ }
49
+ componentDidLoad() {
50
+ CSSVarsUtils.applyVarsTextInput(this._elem, this._textInput);
51
+ }
52
+ render() {
53
+ return (h("ez-text-input", { ref: elem => this._textInput = elem, label: this.label, onEzChange: evt => this.changeValue(evt), value: this.value, enabled: this.enabled, errorMessage: this.errorMessage, restrict: this.restrict, loading: this.loading, mode: this.mode },
54
+ h("ez-icon", { slot: "leftIcon", iconName: "search" })));
55
+ }
56
+ static get is() { return "ez-filter-input"; }
57
+ static get encapsulation() { return "shadow"; }
58
+ static get originalStyleUrls() { return {
59
+ "$": ["ez-filter-input.css"]
60
+ }; }
61
+ static get styleUrls() { return {
62
+ "$": ["ez-filter-input.css"]
63
+ }; }
64
+ static get properties() { return {
65
+ "label": {
66
+ "type": "string",
67
+ "mutable": false,
68
+ "complexType": {
69
+ "original": "string",
70
+ "resolved": "string",
71
+ "references": {}
72
+ },
73
+ "required": false,
74
+ "optional": false,
75
+ "docs": {
76
+ "tags": [],
77
+ "text": "T\u00EDtulo do campo"
78
+ },
79
+ "attribute": "label",
80
+ "reflect": false
81
+ },
82
+ "value": {
83
+ "type": "string",
84
+ "mutable": true,
85
+ "complexType": {
86
+ "original": "string",
87
+ "resolved": "string",
88
+ "references": {}
89
+ },
90
+ "required": false,
91
+ "optional": false,
92
+ "docs": {
93
+ "tags": [],
94
+ "text": "O valor informado pelo usu\u00E1rio"
95
+ },
96
+ "attribute": "value",
97
+ "reflect": true
98
+ },
99
+ "enabled": {
100
+ "type": "boolean",
101
+ "mutable": false,
102
+ "complexType": {
103
+ "original": "boolean",
104
+ "resolved": "boolean",
105
+ "references": {}
106
+ },
107
+ "required": false,
108
+ "optional": false,
109
+ "docs": {
110
+ "tags": [],
111
+ "text": "Deixa o campo dispon\u00EDvel ou n\u00E3o para uso."
112
+ },
113
+ "attribute": "enabled",
114
+ "reflect": false,
115
+ "defaultValue": "true"
116
+ },
117
+ "loading": {
118
+ "type": "boolean",
119
+ "mutable": false,
120
+ "complexType": {
121
+ "original": "boolean",
122
+ "resolved": "boolean",
123
+ "references": {}
124
+ },
125
+ "required": false,
126
+ "optional": false,
127
+ "docs": {
128
+ "tags": [],
129
+ "text": "Deixa o componente em modo \"carregando\"."
130
+ },
131
+ "attribute": "loading",
132
+ "reflect": true
133
+ },
134
+ "errorMessage": {
135
+ "type": "string",
136
+ "mutable": true,
137
+ "complexType": {
138
+ "original": "string",
139
+ "resolved": "string",
140
+ "references": {}
141
+ },
142
+ "required": false,
143
+ "optional": false,
144
+ "docs": {
145
+ "tags": [],
146
+ "text": "Quando h\u00E1 um problema de valida\u00E7\u00E3o, serve como orienta\u00E7\u00E3o ao usu\u00E1rio"
147
+ },
148
+ "attribute": "error-message",
149
+ "reflect": true
150
+ },
151
+ "restrict": {
152
+ "type": "string",
153
+ "mutable": false,
154
+ "complexType": {
155
+ "original": "string",
156
+ "resolved": "string",
157
+ "references": {}
158
+ },
159
+ "required": false,
160
+ "optional": false,
161
+ "docs": {
162
+ "tags": [],
163
+ "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."
164
+ },
165
+ "attribute": "restrict",
166
+ "reflect": false
167
+ },
168
+ "mode": {
169
+ "type": "string",
170
+ "mutable": false,
171
+ "complexType": {
172
+ "original": "string",
173
+ "resolved": "string",
174
+ "references": {}
175
+ },
176
+ "required": false,
177
+ "optional": false,
178
+ "docs": {
179
+ "tags": [],
180
+ "text": "Define o modo do tamanho do campo; op\u00E7\u00F5es: slim e regular."
181
+ },
182
+ "attribute": "mode",
183
+ "reflect": true,
184
+ "defaultValue": "\"regular\""
185
+ }
186
+ }; }
187
+ static get events() { return [{
188
+ "method": "ezChange",
189
+ "name": "ezChange",
190
+ "bubbles": true,
191
+ "cancelable": true,
192
+ "composed": true,
193
+ "docs": {
194
+ "tags": [],
195
+ "text": "Evento disparado quando o estado do componente \u00E9 alterado (onEzChange)."
196
+ },
197
+ "complexType": {
198
+ "original": "string",
199
+ "resolved": "string",
200
+ "references": {}
201
+ }
202
+ }]; }
203
+ static get methods() { return {
204
+ "setFocus": {
205
+ "complexType": {
206
+ "signature": "() => Promise<void>",
207
+ "parameters": [],
208
+ "references": {
209
+ "Promise": {
210
+ "location": "global"
211
+ }
212
+ },
213
+ "return": "Promise<void>"
214
+ },
215
+ "docs": {
216
+ "text": "Realiza o foco no componente de input",
217
+ "tags": []
218
+ }
219
+ },
220
+ "setBlur": {
221
+ "complexType": {
222
+ "signature": "() => Promise<void>",
223
+ "parameters": [],
224
+ "references": {
225
+ "Promise": {
226
+ "location": "global"
227
+ }
228
+ },
229
+ "return": "Promise<void>"
230
+ },
231
+ "docs": {
232
+ "text": "Remove o foco no componente de input",
233
+ "tags": []
234
+ }
235
+ }
236
+ }; }
237
+ static get elementRef() { return "_elem"; }
238
+ static get watchers() { return [{
239
+ "propName": "label",
240
+ "methodName": "setLabel"
241
+ }, {
242
+ "propName": "errorMessage",
243
+ "methodName": "setErrorMessage"
244
+ }, {
245
+ "propName": "value",
246
+ "methodName": "applyValueToInput"
247
+ }]; }
248
+ }
@@ -7,6 +7,10 @@ export class EzNumberInput {
7
7
  * Deixa o campo disponível ou não para uso.
8
8
  */
9
9
  this.enabled = true;
10
+ /**
11
+ * Define o modo do tamanho do campo; opções: slim e regular.
12
+ */
13
+ this.mode = "regular";
10
14
  }
11
15
  setLabel() {
12
16
  this._textInput.label = this.label;
@@ -63,7 +67,7 @@ export class EzNumberInput {
63
67
  CSSVarsUtils.applyVarsTextInput(this._elem, this._textInput);
64
68
  }
65
69
  render() {
66
- return (h("ez-text-input", { ref: elem => this._textInput = elem, onBlur: () => this.parseNumber(), label: this.label, onEzChange: event => event.stopPropagation(), value: this.getTextValue(this.value), restrict: this.precision > 0 ? "0123456789-,." : "0123456789-", enabled: this.enabled, errorMessage: this.errorMessage }));
70
+ return (h("ez-text-input", { ref: elem => this._textInput = elem, onBlur: () => this.parseNumber(), label: this.label, onEzChange: event => event.stopPropagation(), value: this.getTextValue(this.value), restrict: this.precision > 0 ? "0123456789-,." : "0123456789-", enabled: this.enabled, errorMessage: this.errorMessage, mode: this.mode }));
67
71
  }
68
72
  static get is() { return "ez-number-input"; }
69
73
  static get encapsulation() { return "shadow"; }
@@ -176,6 +180,24 @@ export class EzNumberInput {
176
180
  },
177
181
  "attribute": "pretty-precision",
178
182
  "reflect": false
183
+ },
184
+ "mode": {
185
+ "type": "string",
186
+ "mutable": false,
187
+ "complexType": {
188
+ "original": "string",
189
+ "resolved": "string",
190
+ "references": {}
191
+ },
192
+ "required": false,
193
+ "optional": false,
194
+ "docs": {
195
+ "tags": [],
196
+ "text": "Define o modo do tamanho do campo; op\u00E7\u00F5es: slim e regular."
197
+ },
198
+ "attribute": "mode",
199
+ "reflect": true,
200
+ "defaultValue": "\"regular\""
179
201
  }
180
202
  }; }
181
203
  static get events() { return [{
@@ -3,21 +3,25 @@ import CSSVarsUtils from "../../utils/CSSVarsUtils";
3
3
  export class EzSearch {
4
4
  constructor() {
5
5
  /**
6
- * Deixa o campo disponível ou não.
7
- */
6
+ * Deixa o campo disponível ou não.
7
+ */
8
8
  this.enabled = true;
9
9
  /**
10
- * Ajusta a opção de mostrar o "value" ao selecionar uma opção.
11
- */
10
+ * Ajusta a opção de mostrar o "value" ao selecionar uma opção.
11
+ */
12
12
  this.showSelectedValue = true;
13
13
  /**
14
- * Ajusta a opção de mostrar o "value" para cada opção.
15
- */
14
+ * Ajusta a opção de mostrar o "value" para cada opção.
15
+ */
16
16
  this.showOptionValue = true;
17
17
  /**
18
- * Remove a opção vazia da lista de opções
19
- */
18
+ * Remove a opção vazia da lista de opções
19
+ */
20
20
  this.suppressEmptyOption = false;
21
+ /**
22
+ * Define o modo do tamanho do campo; opções: slim e regular.
23
+ */
24
+ this.mode = "regular";
21
25
  }
22
26
  updateValue() {
23
27
  if (this._comboElement) {
@@ -25,14 +29,14 @@ export class EzSearch {
25
29
  }
26
30
  }
27
31
  /**
28
- * Realiza o foco no componente de pesquisa
29
- */
32
+ * Realiza o foco no componente de pesquisa
33
+ */
30
34
  async setFocus() {
31
35
  this._comboElement.setFocus();
32
36
  }
33
37
  /**
34
- * Remove o foco no componente de pesquisa
35
- */
38
+ * Remove o foco no componente de pesquisa
39
+ */
36
40
  async setBlur() {
37
41
  this._comboElement.setBlur();
38
42
  }
@@ -45,7 +49,7 @@ export class EzSearch {
45
49
  CSSVarsUtils.applyVarsTextInput(this._elem, this._comboElement);
46
50
  }
47
51
  render() {
48
- return (h("ez-combo-box", { ref: elem => this._comboElement = elem, value: this.value, label: this.label, enabled: this.enabled, errorMessage: this.errorMessage, optionLoader: this.optionLoader, searchMode: true, onEzChange: evt => this.onComboChange(evt), showSelectedValue: this.showSelectedValue, showOptionValue: this.showOptionValue, suppressEmptyOption: this.suppressEmptyOption }));
52
+ return (h("ez-combo-box", { ref: elem => this._comboElement = elem, value: this.value, label: this.label, enabled: this.enabled, errorMessage: this.errorMessage, optionLoader: this.optionLoader, searchMode: true, onEzChange: evt => this.onComboChange(evt), showSelectedValue: this.showSelectedValue, showOptionValue: this.showOptionValue, suppressEmptyOption: this.suppressEmptyOption, mode: this.mode }));
49
53
  }
50
54
  ;
51
55
  static get is() { return "ez-search"; }
@@ -203,6 +207,24 @@ export class EzSearch {
203
207
  "attribute": "suppress-empty-option",
204
208
  "reflect": false,
205
209
  "defaultValue": "false"
210
+ },
211
+ "mode": {
212
+ "type": "string",
213
+ "mutable": false,
214
+ "complexType": {
215
+ "original": "string",
216
+ "resolved": "string",
217
+ "references": {}
218
+ },
219
+ "required": false,
220
+ "optional": false,
221
+ "docs": {
222
+ "tags": [],
223
+ "text": "Define o modo do tamanho do campo; op\u00E7\u00F5es: slim e regular."
224
+ },
225
+ "attribute": "mode",
226
+ "reflect": true,
227
+ "defaultValue": "\"regular\""
206
228
  }
207
229
  }; }
208
230
  static get events() { return [{
@@ -11,7 +11,7 @@
11
11
  /*@doc Define a família da fonte do input, label e caixa de mensagem do componente.*/
12
12
  --text-area--font-family: var(--font-pattern, Arial);
13
13
  /*@doc Define o peso da fonte do label do componente.*/
14
- --text-area--font-weight: var(--text-weight--large, 500);
14
+ --text-area--font-weight: var(--text-weight--medium, 400);
15
15
  /*@doc Define a cor da fonte do input e label do componente.*/
16
16
  --text-area--color: var(--title--primary, #000);
17
17
 
@@ -162,4 +162,74 @@ textarea:disabled {
162
162
 
163
163
  .textarea__label--disabled {
164
164
  color: var(--text-area__input--disabled--color);
165
+ }
166
+
167
+ .textarea--slim {
168
+ /*public*/
169
+ margin-top: var(--space--small, 6px);
170
+ }
171
+
172
+ .textarea--slim::-webkit-input-placeholder { /* Edge */
173
+ /*public*/
174
+ font-family: var(--text-area--font-family);
175
+ font-size: var(--text-area--font-size);
176
+ font-weight: var(--text-area--font-weight);
177
+ color: var(--text-area--color);
178
+ }
179
+
180
+ .textarea--slim:-moz-placeholder { /* Mozilla Firefox 4 to 18 */
181
+ /*public*/
182
+ font-family: var(--text-area--font-family);
183
+ font-size: var(--text-area--font-size);
184
+ font-weight: var(--text-area--font-weight);
185
+ color: var(--text-area--color);
186
+ }
187
+
188
+ .textarea--slim::-moz-placeholder { /* Mozilla Firefox 19+ */
189
+ /*public*/
190
+ font-family: var(--text-area--font-family);
191
+ font-size: var(--text-area--font-size);
192
+ font-weight: var(--text-area--font-weight);
193
+ color: var(--text-area--color);
194
+ }
195
+
196
+ .textarea--slim:-ms-input-placeholder { /* Internet Explorer 10-11 */
197
+ /*public*/
198
+ font-family: var(--text-area--font-family);
199
+ font-size: var(--text-area--font-size);
200
+ font-weight: var(--text-area--font-weight);
201
+ color: var(--text-area--color);
202
+ }
203
+
204
+ .textarea--slim::placeholder {
205
+ /*public*/
206
+ font-family: var(--text-area--font-family);
207
+ font-size: var(--text-area--font-size);
208
+ font-weight: var(--text-area--font-weight);
209
+ color: var(--text-area--color);
210
+ }
211
+
212
+ .textarea--slim:disabled::-webkit-input-placeholder { /* WebKit browsers */
213
+ /*public*/
214
+ color: var(--text-area__input--disabled--color);
215
+ }
216
+
217
+ .textarea--slim:disabled:-moz-placeholder { /* Mozilla Firefox 4 to 18 */
218
+ /*public*/
219
+ color: var(--text-area__input--disabled--color);
220
+ }
221
+
222
+ .textarea--slim:disabled::-moz-placeholder { /* Mozilla Firefox 19+ */
223
+ /*public*/
224
+ color: var(--text-area__input--disabled--color);
225
+ }
226
+
227
+ .textarea--slim:disabled:-ms-input-placeholder { /* Internet Explorer 10+ */
228
+ /*public*/
229
+ color: var(--text-area__input--disabled--color);
230
+ }
231
+
232
+ .textarea--slim:disabled::placeholder {
233
+ /*public*/
234
+ color: var(--text-area__input--disabled--color);
165
235
  }