@sankhyalabs/ezui 1.1.128 → 1.1.131

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 (44) hide show
  1. package/dist/cjs/ez-button.cjs.entry.js +10 -12
  2. package/dist/cjs/ez-calendar.cjs.entry.js +8 -8
  3. package/dist/cjs/ez-combo-box.cjs.entry.js +9 -9
  4. package/dist/cjs/ez-modal.cjs.entry.js +6 -0
  5. package/dist/cjs/ez-number-input.cjs.entry.js +1 -1
  6. package/dist/cjs/ez-text-input.cjs.entry.js +10 -8
  7. package/dist/cjs/ezui.cjs.js +1 -1
  8. package/dist/cjs/loader.cjs.js +1 -1
  9. package/dist/collection/components/ez-button/ez-button.css +73 -28
  10. package/dist/collection/components/ez-button/ez-button.js +15 -18
  11. package/dist/collection/components/ez-calendar/ez-calendar.css +2 -1
  12. package/dist/collection/components/ez-calendar/ez-calendar.js +7 -7
  13. package/dist/collection/components/ez-combo-box/ez-combo-box.css +17 -64
  14. package/dist/collection/components/ez-combo-box/ez-combo-box.js +11 -9
  15. package/dist/collection/components/ez-modal/ez-modal.js +20 -0
  16. package/dist/collection/components/ez-number-input/ez-number-input.js +1 -1
  17. package/dist/collection/components/ez-text-input/ez-text-input.js +10 -8
  18. package/dist/custom-elements/index.js +44 -38
  19. package/dist/esm/ez-button.entry.js +10 -12
  20. package/dist/esm/ez-calendar.entry.js +8 -8
  21. package/dist/esm/ez-combo-box.entry.js +9 -9
  22. package/dist/esm/ez-modal.entry.js +6 -0
  23. package/dist/esm/ez-number-input.entry.js +1 -1
  24. package/dist/esm/ez-text-input.entry.js +10 -8
  25. package/dist/esm/ezui.js +1 -1
  26. package/dist/esm/loader.js +1 -1
  27. package/dist/ezui/ezui.esm.js +1 -1
  28. package/dist/ezui/p-27db8fba.entry.js +1 -0
  29. package/dist/ezui/p-48ba92b2.entry.js +1 -0
  30. package/dist/ezui/p-4ded39c2.entry.js +1 -0
  31. package/dist/ezui/p-593a17e7.entry.js +1 -0
  32. package/dist/ezui/p-6e844308.entry.js +1 -0
  33. package/dist/ezui/p-c8f9b691.entry.js +1 -0
  34. package/dist/types/components/ez-button/ez-button.d.ts +3 -3
  35. package/dist/types/components/ez-combo-box/ez-combo-box.d.ts +2 -1
  36. package/dist/types/components/ez-modal/ez-modal.d.ts +5 -0
  37. package/dist/types/components.d.ts +10 -6
  38. package/package.json +1 -1
  39. package/dist/ezui/p-495cdb4c.entry.js +0 -1
  40. package/dist/ezui/p-7df61f4a.entry.js +0 -1
  41. package/dist/ezui/p-c6b2b2e5.entry.js +0 -1
  42. package/dist/ezui/p-cf8309fc.entry.js +0 -1
  43. package/dist/ezui/p-ef8f1275.entry.js +0 -1
  44. package/dist/ezui/p-f65302bb.entry.js +0 -1
@@ -1,4 +1,4 @@
1
- import { Component, h, Prop, Method } from '@stencil/core';
1
+ import { Component, h, Prop, Method } from "@stencil/core";
2
2
  export class EzButton {
3
3
  constructor() {
4
4
  /**
@@ -9,10 +9,6 @@ export class EzButton {
9
9
  * Define o modo de uso do botão; opções: icon, link e regular
10
10
  */
11
11
  this.mode = "regular";
12
- /**
13
- * É possível escolher entre [small,medium,large] (somente para os modos "icon" e "link")
14
- */
15
- this.size = "medium";
16
12
  }
17
13
  /**
18
14
  * Realiza o foco no botão
@@ -26,8 +22,10 @@ export class EzButton {
26
22
  async setBlur() {
27
23
  this._button.blur();
28
24
  }
29
- getIconSize() {
30
- return this.size;
25
+ getIconSize(sizeParam = "medium") {
26
+ const sizeList = ["small", "medium", "large"];
27
+ const sizeLowerCase = this.size && this.size.toLowerCase();
28
+ return sizeList.includes(sizeLowerCase) ? sizeLowerCase : sizeParam;
31
29
  }
32
30
  handleSlotChange(ev) {
33
31
  const slot = ev.target;
@@ -42,30 +40,30 @@ export class EzButton {
42
40
  }
43
41
  }
44
42
  else {
45
- content.style.setProperty('--ez-icon--color', 'var(--ez-icon--color)');
43
+ content.style.setProperty("--ez-icon--color", "var(--ez-icon--color)");
46
44
  }
47
45
  }
48
46
  render() {
49
47
  if (this.mode == "icon") {
50
- return (h("button", { class: "icon " + this.size, type: "button", disabled: !this.enabled, ref: (el) => this._button = el },
48
+ return (h("button", { class: "btn-icon " + ((this.getIconSize()) ? `btn-icon--${this.getIconSize()}` : ""), type: "button", disabled: !this.enabled, ref: (el) => this._button = el },
51
49
  h("ez-icon", { class: "icon", href: this.image, iconName: this.iconName, size: this.getIconSize(), onClick: evt => { if (!this.enabled)
52
50
  evt.stopPropagation(); } })));
53
51
  }
54
52
  else if (this.mode == "label-icon") {
55
53
  return (h("div", { class: "label-icon" },
56
- h("button", { class: "icon", type: "button", disabled: !this.enabled, ref: (el) => this._button = el },
57
- h("ez-icon", { class: "icon", href: this.image, iconName: this.iconName, size: "large", onClick: evt => { if (!this.enabled)
54
+ h("button", { class: "btn-icon " + ((this.getIconSize()) ? `btn-icon--${this.getIconSize()}` : ""), type: "button", disabled: !this.enabled, ref: (el) => this._button = el },
55
+ h("ez-icon", { class: "icon", href: this.image, iconName: this.iconName, size: this.getIconSize(), onClick: evt => { if (!this.enabled)
58
56
  evt.stopPropagation(); } })),
59
57
  h("label", { title: this.label }, this.label)));
60
58
  }
61
59
  else if (this.mode == "link") {
62
- return (h("a", { class: this.size, ref: (el) => this._button = el },
60
+ return (h("a", { class: this.getIconSize(), ref: (el) => this._button = el },
63
61
  h("slot", { name: "leftIcon", onSlotchange: (ev) => { this.handleSlotChange(ev); } }),
64
62
  this.label,
65
63
  h("slot", { name: "rightIcon", onSlotchange: (ev) => { this.handleSlotChange(ev); } })));
66
64
  }
67
65
  else {
68
- return (h("button", { type: "button", disabled: !this.enabled, ref: (el) => this._button = el },
66
+ return (h("button", { class: this.getIconSize(""), type: "button", disabled: !this.enabled, ref: (el) => this._button = el },
69
67
  h("slot", { name: "leftIcon", onSlotchange: (ev) => { this.handleSlotChange(ev); } }),
70
68
  this.label,
71
69
  h("slot", { name: "rightIcon", onSlotchange: (ev) => { this.handleSlotChange(ev); } })));
@@ -145,7 +143,7 @@ export class EzButton {
145
143
  "optional": false,
146
144
  "docs": {
147
145
  "tags": [],
148
- "text": "Define o icone svg que ser\u00E1 utilizado no bot\u00E3o. Esta propriedade s\u00F3 \u00E9 utilizada caso o componente esteja no modo 'icon'"
146
+ "text": "Define o icone svg que ser\u00E1 utilizado no bot\u00E3o. Esta propriedade s\u00F3 \u00E9 utilizada caso o componente esteja no modo \"icon\""
149
147
  },
150
148
  "attribute": "image",
151
149
  "reflect": true
@@ -171,8 +169,8 @@ export class EzButton {
171
169
  "type": "string",
172
170
  "mutable": false,
173
171
  "complexType": {
174
- "original": "string",
175
- "resolved": "string",
172
+ "original": "\"small\" | \"medium\" | \"large\" | undefined",
173
+ "resolved": "\"large\" | \"medium\" | \"small\"",
176
174
  "references": {}
177
175
  },
178
176
  "required": false,
@@ -182,8 +180,7 @@ export class EzButton {
182
180
  "text": "\u00C9 poss\u00EDvel escolher entre [small,medium,large] (somente para os modos \"icon\" e \"link\")"
183
181
  },
184
182
  "attribute": "size",
185
- "reflect": true,
186
- "defaultValue": "\"medium\""
183
+ "reflect": true
187
184
  }
188
185
  }; }
189
186
  static get methods() { return {
@@ -198,10 +198,11 @@
198
198
  }
199
199
 
200
200
  .calendar__cell--unselectable:hover {
201
- /*private*/
201
+ /* private */
202
202
  background-color: unset;
203
203
  border-radius: unset;
204
204
  cursor: unset;
205
+ color: var(--ez-calendar--color);
205
206
  }
206
207
 
207
208
  .calendar__cell--unselectable {
@@ -174,7 +174,7 @@ export class EzCalendar {
174
174
  h("label", { class: "calendar__lbl-month" }, this.getMonthLabel()),
175
175
  h("button", { class: "calendar__btn-next", onClick: () => this.changeMonth(1) })),
176
176
  h("div", { class: "calendar__body" },
177
- h("div", { class: "calendar__line" }, this._weekDayLabels.map(day => h("div", { class: "calendar__cell calendar__cell--unselectable" }, day))),
177
+ h("div", { class: "calendar__line" }, this._weekDayLabels.map(day => h("div", { "data-day": day, class: "calendar__cell calendar__cell--unselectable" }, day))),
178
178
  [0, 7, 14, 21, 28, 35].map(offset => h("div", { class: "calendar__line" }, [0, 1, 2, 3, 4, 5, 6].map(index => {
179
179
  const date = new Date();
180
180
  date.setTime(firstDate.getTime());
@@ -204,34 +204,34 @@ export class EzCalendar {
204
204
  h("div", { class: "calendar__column", ref: elem => this._hoursScroll = elem, onScroll: () => this.updateScroll(this._hoursScroll) }, this._hoursLabel.map((offset, index) => {
205
205
  if (index === this.value.getHours()) {
206
206
  return (h("div", { style: { display: 'flex' }, ref: elem => this._hoursSelect = elem },
207
- h("div", { class: "calendar__cell calendar__cell--selected", onClick: () => this.selectHours(index) }, offset),
207
+ h("div", { "data-hour": offset, class: "calendar__cell calendar__cell--selected", onClick: () => this.selectHours(index) }, offset),
208
208
  h("div", { class: "separatorTime" }, ":")));
209
209
  }
210
210
  else {
211
211
  return (h("div", { style: { display: 'flex' } },
212
- h("div", { class: "calendar__cell", onClick: () => this.selectHours(index) }, offset),
212
+ h("div", { "data-hour": offset, class: "calendar__cell", onClick: () => this.selectHours(index) }, offset),
213
213
  h("div", { class: "separatorTime" }, ":")));
214
214
  }
215
215
  })),
216
216
  h("div", { class: "calendar__column", ref: elem => this._minutesScroll = elem, onScroll: () => this.updateScroll(this._minutesScroll) }, this._minutosLabel.map((offset, index) => {
217
217
  if (index === this.value.getMinutes()) {
218
218
  return (h("div", { style: { display: 'flex' }, ref: elem => this._minutesSelect = elem },
219
- h("div", { class: "calendar__cell calendar__cell--selected", onClick: () => this.selectMinutes(index) }, offset),
219
+ h("div", { "data-minute": offset, class: "calendar__cell calendar__cell--selected", onClick: () => this.selectMinutes(index) }, offset),
220
220
  this.showSeconds && h("div", { class: "separatorTime" }, ":")));
221
221
  }
222
222
  else {
223
223
  return (h("div", { style: { display: 'flex' } },
224
- h("div", { class: "calendar__cell", onClick: () => this.selectMinutes(index) }, offset),
224
+ h("div", { "data-minute": offset, class: "calendar__cell", onClick: () => this.selectMinutes(index) }, offset),
225
225
  this.showSeconds && h("div", { class: "separatorTime" }, ":")));
226
226
  }
227
227
  })),
228
228
  this.showSeconds &&
229
229
  h("div", { class: "calendar__column", ref: elem => this._secondsScroll = elem, onScroll: () => this.updateScroll(this._secondsScroll) }, this._minutosLabel.map((offset, index) => {
230
230
  if (index === this.value.getSeconds()) {
231
- return (h("div", { class: "calendar__cell calendar__cell--selected", onClick: () => this.selectSeconds(index), ref: elem => this._secondsSelect = elem }, offset));
231
+ return (h("div", { "data-second": offset, class: "calendar__cell calendar__cell--selected", onClick: () => this.selectSeconds(index), ref: elem => this._secondsSelect = elem }, offset));
232
232
  }
233
233
  else {
234
- return (h("div", { class: "calendar__cell", onClick: () => this.selectSeconds(index) }, offset));
234
+ return (h("div", { "data-second": offset, class: "calendar__cell", onClick: () => this.selectSeconds(index) }, offset));
235
235
  }
236
236
  })))))));
237
237
  }
@@ -45,17 +45,11 @@
45
45
 
46
46
  /* buttons */
47
47
  /*@doc Define a cor do botão de pesquisa do componente.*/
48
- --ez-combo-box__btn-search--background-color: var(--text--primary, #626e82);
48
+ --ez-combo-box__btn--color: var(--text--primary, #626e82);
49
49
  /*@doc Define a cor do botão de pesquisa do componente quando desabilitado.*/
50
- --ez-combo-box__btn-search-disabled--background-color: var(--text--disable, #AFB6C0);
50
+ --ez-combo-box__btn-disabled--color: var(--text--disable, #AFB6C0);
51
51
  /*@doc Define a cor do botão de pesquisa do componente quando o mouse está sobre ele.*/
52
- --ez-combo-box__btn-search-hover--background-color: var(--color--primary, #4e4e4e);
53
- /*@doc Define a cor do botão de opções do componente.*/
54
- --ez-combo-box__btn-options--background-color: var(--text--primary, #626e82);
55
- /*@doc Define a cor do botão de opções do componente quando desabilitado.*/
56
- --ez-combo-box__btn-options-disabled--background-color: var(--text--disable, #AFB6C0);
57
- /*@doc Define a cor do botão de opções do componente quando o mouse está sobre ele.*/
58
- --ez-combo-box__btn-options-hover--background-color: var(--color--primary, #4e4e4e);
52
+ --ez-combo-box__btn-hover--color: var(--color--primary, #4e4e4e);
59
53
 
60
54
  /* label */
61
55
  /*@doc Define a cor do label.*/
@@ -66,12 +60,7 @@
66
60
  --ez-combo-box__list-text--primary: var(--text--primary, #626e82);
67
61
  /*@doc Define a altura do box da lista de opções.*/
68
62
  --ez-combo-box__list-height: calc(var(--ez-combo-box--font-size) + var(--ez-combo-box--space--medium));
69
-
70
- /*@doc Contém a imagem do ícone que aciona a lista.*/
71
- --ez-combo-box__drop-down-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" version="1.1" height="16px" width="16px"><path d="M 1.8585859,3.0707069 7.9999998,9.2121212 14.141414,3.0707069 16,5.0101006 7.9999998,12.929293 0,4.9292932 Z"/></svg>');
72
- /*@doc Contém a imagem do ícone de pesquisa.*/
73
- --ez-combo-box__search-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" version="1.1" height="22px" width="22px"><path d="m 9.4,2.3 c 4.1,0 7.4,3.2 7.4,7.2 0,1.8 -0.7,3.4 -1.8,4.7 l 0.3,0.3 h 0.9 l 5.7,5.6 -1.7,1.7 -5.7,-5.6 V 15.3 L 14.3,15 C 13,16.1 11.3,16.7 9.5,16.7 5.3,16.7 2,13.5 2,9.5 2,5.5 5.3,2.3 9.4,2.3 m 0,2.2 c -2.9,0 -5.1,2.2 -5.1,5 0,2.8 2.3,5 5.1,5 2.8,0 5.1,-2.2 5.1,-5 0,-2.8 -2.2,-5 -5.1,-5 z"/></svg>');
74
-
63
+
75
64
  /* espaçamento */
76
65
  /*@doc Define um espaçamento mediano entre elementos do componente.*/
77
66
  --ez-combo-box--space--medium: var(--space--medium, 12px);
@@ -89,6 +78,10 @@
89
78
  width: var(--ez-combo-box--width);
90
79
  }
91
80
 
81
+ ez-icon {
82
+ --ez-icon--color: inherit;
83
+ }
84
+
92
85
  .suppressed-search-input{
93
86
  --ez-text-input__input--border-color: var(--color--strokes, #dce0e8);
94
87
  --ez-text-input__input--disabled--background-color: var(--background--xlight, #fff);
@@ -103,12 +96,10 @@
103
96
  .options-list {
104
97
  box-sizing: border-box;
105
98
  width: 100%;
106
-
107
99
  /*private*/
108
100
  z-index: var(--more-visible, 2);
109
101
  display: flex;
110
102
  flex-direction: column;
111
-
112
103
  /*public*/
113
104
  background-color: var(--ez-combo-box--background-color--xlight);
114
105
  padding: var(--ez-combo-box--space--small);
@@ -127,9 +118,7 @@
127
118
  border-radius: var(--ez-combo-box--border-radius-small);
128
119
  padding: 0 var(--ez-combo-box--space--small);
129
120
  list-style-type: none;
130
-
131
121
  min-height: var(--ez-combo-box__list-height);
132
- ;
133
122
  }
134
123
 
135
124
  .item--label {
@@ -164,60 +153,24 @@ li:hover {
164
153
  background-color: var(--background--medium);
165
154
  }
166
155
 
167
- .btn-open-options {
156
+ .btn {
168
157
  outline: none;
169
158
  border: none;
170
- background-color: unset;
159
+ background: none;
171
160
  cursor: pointer;
161
+ color: var(--ez-combo-box__btn--color);
172
162
  }
173
163
 
174
- .btn-open-options:disabled {
164
+ .btn:disabled {
165
+ color: var(--ez-combo-box__btn-disabled--color);
175
166
  cursor: unset;
176
167
  }
177
168
 
178
- .btn-open-options::after {
179
- content: '';
180
- display: flex;
181
- background-color: var(--ez-combo-box__btn-options--background-color);
182
- width: 16px;
183
- height: 16px;
184
- -webkit-mask-image: var(--ez-combo-box__drop-down-image);
185
- mask-image: var(--ez-combo-box__drop-down-image);
186
- }
187
-
188
- .btn-open-options:disabled:after {
189
- background-color: var(--ez-combo-box__btn-options-disabled--background-color);
190
- }
191
-
192
- .btn-open-options:enabled:hover::after {
193
- background-color: var(--ez-combo-box__btn-options-hover--background-color);
194
- }
195
-
196
- .btn-open-search {
197
- outline: none;
198
- border: none;
199
- background-color: unset;
200
- cursor: pointer;
201
- }
202
-
203
- .btn-open-search:disabled {
169
+ .btn:disabled:hover {
170
+ color: var(--ez-combo-box__btn-disabled--color);
204
171
  cursor: unset;
205
172
  }
206
173
 
207
- .btn-open-search::after {
208
- content: '';
209
- display: flex;
210
- background-color: var(--ez-combo-box__btn-search--background-color);
211
- width: 22px;
212
- height: 22px;
213
- -webkit-mask-image: var(--ez-combo-box__search-image);
214
- mask-image: var(--ez-combo-box__search-image);
215
- }
216
-
217
- .btn-open-search:disabled:after {
218
- background-color: var(--ez-combo-box__btn-search-disabled--background-color);
219
- }
220
-
221
- .btn-open-search:enabled:hover::after {
222
- background-color: var(--ez-combo-box__btn-search-hover--background-color);
174
+ .btn:hover {
175
+ color: var(--ez-combo-box__btn-hover--color);
223
176
  }
@@ -32,7 +32,7 @@ export class EzComboBox {
32
32
  */
33
33
  this.mode = "regular";
34
34
  }
35
- internalUpdate() {
35
+ observerValue() {
36
36
  if (this._inputElement) {
37
37
  this._inputElement.value = this.getText();
38
38
  }
@@ -150,7 +150,7 @@ export class EzComboBox {
150
150
  this.ezChange.emit(adjustedOpt);
151
151
  }
152
152
  else {
153
- this.internalUpdate();
153
+ this.observerValue();
154
154
  }
155
155
  }
156
156
  updateSource(source) {
@@ -182,7 +182,7 @@ export class EzComboBox {
182
182
  this.selectOption(undefined);
183
183
  }
184
184
  else {
185
- this.internalUpdate();
185
+ this.observerValue();
186
186
  }
187
187
  }
188
188
  //---------------------------------------------
@@ -222,6 +222,9 @@ export class EzComboBox {
222
222
  //---------------------------------------------
223
223
  // Event handlers
224
224
  //---------------------------------------------
225
+ handlerIconClick() {
226
+ this.searchMode ? this.loadOptions("ADVANCED") : this.showOptions();
227
+ }
225
228
  onTextInputChangeHandler(event) {
226
229
  if (!this._criteria) {
227
230
  this._inputElement.value = event.data;
@@ -270,10 +273,9 @@ export class EzComboBox {
270
273
  }
271
274
  render() {
272
275
  return (h(Host, null,
273
- h("ez-text-input", { class: this.suppressSearch ? "suppressed-search-input" : "", ref: elem => this._inputElement = elem, enabled: this.enabled && !this.suppressSearch, onInput: evt => this.onTextInputChangeHandler(evt), onClick: () => this.onTextInputClickHandler(), onFocusout: () => this.onTextInputFocusOutHandler(), onEzChange: event => event.stopPropagation(), onKeyDown: event => this.keyDownHandler(event), label: this.label, value: this.getText(), canShowError: this.canShowError, errorMessage: this.errorMessage, mode: this.mode }, this.searchMode ?
274
- h("button", { disabled: !this.enabled, tabindex: -1, class: "btn-open-search", onClick: () => { this.loadOptions("ADVANCED"); }, slot: "leftIcon" })
275
- :
276
- h("button", { disabled: !this.enabled, tabindex: -1, class: "btn-open-options", slot: "rightIcon", onClick: () => this.showOptions() })),
276
+ h("ez-text-input", { class: this.suppressSearch ? "suppressed-search-input" : "", ref: elem => this._inputElement = elem, enabled: this.enabled && !this.suppressSearch, onInput: evt => this.onTextInputChangeHandler(evt), onClick: () => this.onTextInputClickHandler(), onFocusout: () => this.onTextInputFocusOutHandler(), onEzChange: event => event.stopPropagation(), onKeyDown: event => this.keyDownHandler(event), label: this.label, value: this.getText(), canShowError: this.canShowError, errorMessage: this.errorMessage, mode: this.mode },
277
+ h("button", { class: "btn", slot: this.searchMode ? "leftIcon" : "rightIcon", disabled: !this.enabled, tabindex: -1, onClick: () => this.handlerIconClick() },
278
+ h("ez-icon", { slot: "icon", "icon-name": this.searchMode ? "search" : "chevron-down" }))),
277
279
  h("section", { class: "list-container", ref: elem => this._listContainer = elem },
278
280
  h("div", { class: "options-list", ref: elem => this._optionsList = elem }, this._visibleOptions.map((opt, index) => this.buildItem(opt, index))))));
279
281
  }
@@ -290,7 +292,7 @@ export class EzComboBox {
290
292
  "type": "string",
291
293
  "mutable": true,
292
294
  "complexType": {
293
- "original": "Option|string",
295
+ "original": "Option | string",
294
296
  "resolved": "Option | string",
295
297
  "references": {
296
298
  "Option": {
@@ -587,7 +589,7 @@ export class EzComboBox {
587
589
  static get elementRef() { return "el"; }
588
590
  static get watchers() { return [{
589
591
  "propName": "value",
590
- "methodName": "internalUpdate"
592
+ "methodName": "observerValue"
591
593
  }]; }
592
594
  }
593
595
  ;
@@ -34,6 +34,11 @@ export class EzModal {
34
34
  componentDidLoad() {
35
35
  this.handleopenedChange();
36
36
  }
37
+ componentDidRender() {
38
+ if (this.opened) {
39
+ this.ezOpenModal.emit();
40
+ }
41
+ }
37
42
  onMouseDownHandler(event) {
38
43
  if (this.closeOutsideClick && event.target === this._overlay) {
39
44
  this.closeModal();
@@ -163,6 +168,21 @@ export class EzModal {
163
168
  "resolved": "boolean",
164
169
  "references": {}
165
170
  }
171
+ }, {
172
+ "method": "ezOpenModal",
173
+ "name": "ezOpenModal",
174
+ "bubbles": true,
175
+ "cancelable": true,
176
+ "composed": true,
177
+ "docs": {
178
+ "tags": [],
179
+ "text": "Um evento disparado quando o modal \u00E9 aberto (onEzOpenModal)."
180
+ },
181
+ "complexType": {
182
+ "original": "any",
183
+ "resolved": "any",
184
+ "references": {}
185
+ }
166
186
  }]; }
167
187
  static get watchers() { return [{
168
188
  "propName": "opened",
@@ -37,7 +37,7 @@ export class EzNumberInput {
37
37
  }
38
38
  changeValue(newValue) {
39
39
  this.errorMessage = "";
40
- if (newValue && newValue !== this.value) {
40
+ if (newValue !== this.value) {
41
41
  this.value = newValue;
42
42
  this.ezChange.emit(this.value);
43
43
  }
@@ -17,14 +17,16 @@ export class EzTextInput {
17
17
  }
18
18
  showError() {
19
19
  var _a, _b;
20
- const hasError = typeof this.errorMessage === "string" && this.errorMessage !== "";
21
- if (hasError) {
22
- this._inputElem.classList.add("hasError");
23
- (_a = this._messageBoxElem) === null || _a === void 0 ? void 0 : _a.classList.add("hasError");
24
- }
25
- else {
26
- this._inputElem.classList.remove("hasError");
27
- (_b = this._messageBoxElem) === null || _b === void 0 ? void 0 : _b.classList.remove("hasError");
20
+ if (this._inputElem) {
21
+ const hasError = typeof this.errorMessage === "string" && this.errorMessage !== "";
22
+ if (hasError) {
23
+ this._inputElem.classList.add("hasError");
24
+ (_a = this._messageBoxElem) === null || _a === void 0 ? void 0 : _a.classList.add("hasError");
25
+ }
26
+ else {
27
+ this._inputElem.classList.remove("hasError");
28
+ (_b = this._messageBoxElem) === null || _b === void 0 ? void 0 : _b.classList.remove("hasError");
29
+ }
28
30
  }
29
31
  }
30
32
  prepareMask() {