@sankhyalabs/ezui 0.0.0-bugfix-dev-KB-78812-2.0 → 0.0.0-bugfix-dev-KB-76362.1

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 (184) hide show
  1. package/dist/cjs/RecordValidationProcessor-10846595.js +108 -0
  2. package/dist/cjs/ez-button.cjs.entry.js +1 -1
  3. package/dist/cjs/ez-card-item_3.cjs.entry.js +19 -12
  4. package/dist/cjs/ez-chart.cjs.entry.js +1 -1
  5. package/dist/cjs/ez-combo-box.cjs.entry.js +10 -46
  6. package/dist/cjs/ez-custom-form-input_2.cjs.entry.js +2 -3
  7. package/dist/cjs/ez-date-input.cjs.entry.js +2 -8
  8. package/dist/cjs/ez-date-time-input.cjs.entry.js +2 -8
  9. package/dist/cjs/ez-dialog.cjs.entry.js +2 -10
  10. package/dist/cjs/ez-form-view.cjs.entry.js +2 -2
  11. package/dist/cjs/ez-form.cjs.entry.js +325 -5
  12. package/dist/cjs/ez-grid.cjs.entry.js +70518 -14636
  13. package/dist/cjs/ez-icon.cjs.entry.js +1 -1
  14. package/dist/cjs/ez-list.cjs.entry.js +100 -151
  15. package/dist/cjs/ez-modal.cjs.entry.js +1 -1
  16. package/dist/cjs/ez-number-input.cjs.entry.js +0 -7
  17. package/dist/cjs/ez-popover.cjs.entry.js +1 -1
  18. package/dist/cjs/ez-popup.cjs.entry.js +1 -1
  19. package/dist/cjs/ez-search.cjs.entry.js +22 -67
  20. package/dist/cjs/ez-split-button.cjs.entry.js +1 -1
  21. package/dist/cjs/ez-split-panel.cjs.entry.js +4 -14
  22. package/dist/cjs/ez-text-area.cjs.entry.js +4 -66
  23. package/dist/cjs/ez-text-input.cjs.entry.js +7 -49
  24. package/dist/cjs/ez-time-input.cjs.entry.js +0 -6
  25. package/dist/cjs/ezui.cjs.js +1 -1
  26. package/dist/cjs/loader.cjs.js +1 -1
  27. package/dist/collection/collection-manifest.json +1 -1
  28. package/dist/collection/components/ez-button/ez-button.css +2 -2
  29. package/dist/collection/components/ez-card-item/ez-card-item.css +5 -14
  30. package/dist/collection/components/ez-combo-box/ez-combo-box.js +14 -75
  31. package/dist/collection/components/ez-date-input/ez-date-input.js +4 -35
  32. package/dist/collection/components/ez-date-time-input/ez-date-time-input.js +4 -35
  33. package/dist/collection/components/ez-dialog/ez-dialog.css +3 -3
  34. package/dist/collection/components/ez-dialog/ez-dialog.js +1 -9
  35. package/dist/collection/components/ez-filter-input/ez-filter-input.css +11 -0
  36. package/dist/collection/components/ez-filter-input/ez-filter-input.js +52 -22
  37. package/dist/collection/components/ez-form/ez-form.js +0 -1
  38. package/dist/collection/components/ez-form-view/custom-input/ez-custom-form-input.js +2 -3
  39. package/dist/collection/components/ez-form-view/fieldbuilder/templates/TextInput.tpl.js +2 -2
  40. package/dist/collection/components/ez-grid/controller/ag-grid/AgGridController.js +27 -100
  41. package/dist/collection/components/ez-grid/controller/ag-grid/DataSource.js +0 -8
  42. package/dist/collection/components/ez-grid/controller/ag-grid/GridEditionManager.js +46 -164
  43. package/dist/collection/components/ez-grid/controller/ag-grid/components/EzGridCustomCellEditor.js +0 -7
  44. package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/ComboBox.tpl.js +0 -1
  45. package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/DateInput.tpl.js +0 -1
  46. package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/NumberInput.tpl.js +0 -1
  47. package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/Search.tpl.js +0 -1
  48. package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/TextInput.tpl.js +1 -4
  49. package/dist/collection/components/ez-grid/ez-grid.js +3 -90
  50. package/dist/collection/components/ez-icon/ez-icon.css +149 -153
  51. package/dist/collection/components/ez-list/ez-list.css +5 -5
  52. package/dist/collection/components/ez-list/ez-list.js +170 -152
  53. package/dist/collection/components/ez-modal/ez-modal.css +0 -4
  54. package/dist/collection/components/ez-modal/ez-modal.js +2 -2
  55. package/dist/collection/components/ez-number-input/ez-number-input.js +0 -25
  56. package/dist/collection/components/ez-popover/ez-popover.css +10 -3
  57. package/dist/collection/components/ez-popup/ez-popup.css +8 -4
  58. package/dist/collection/components/ez-search/ez-search.css +1 -1
  59. package/dist/collection/components/ez-search/ez-search.js +24 -94
  60. package/dist/collection/components/ez-split-button/ez-split-button.css +2 -2
  61. package/dist/collection/components/ez-split-panel/ez-split-panel.js +4 -35
  62. package/dist/collection/components/ez-text-area/ez-text-area.css +0 -49
  63. package/dist/collection/components/ez-text-area/ez-text-area.js +2 -102
  64. package/dist/collection/components/ez-text-input/ez-text-input.css +53 -27
  65. package/dist/collection/components/ez-text-input/ez-text-input.js +6 -84
  66. package/dist/collection/components/ez-time-input/ez-time-input.js +0 -24
  67. package/dist/collection/utils/form/DataBinder.js +3 -18
  68. package/dist/collection/utils/form/FormMetadata.js +1 -1
  69. package/dist/collection/utils/interfaces/AbstractFieldMetadata.js +1 -1
  70. package/dist/custom-elements/index.js +71099 -15536
  71. package/dist/esm/RecordValidationProcessor-9c6cc267.js +105 -0
  72. package/dist/esm/ez-button.entry.js +1 -1
  73. package/dist/esm/ez-card-item_3.entry.js +19 -12
  74. package/dist/esm/ez-chart.entry.js +1 -1
  75. package/dist/esm/ez-combo-box.entry.js +11 -47
  76. package/dist/esm/ez-custom-form-input_2.entry.js +2 -3
  77. package/dist/esm/ez-date-input.entry.js +2 -8
  78. package/dist/esm/ez-date-time-input.entry.js +2 -8
  79. package/dist/esm/ez-dialog.entry.js +2 -10
  80. package/dist/esm/ez-form-view.entry.js +2 -2
  81. package/dist/esm/ez-form.entry.js +324 -4
  82. package/dist/esm/ez-grid.entry.js +70545 -14663
  83. package/dist/esm/ez-icon.entry.js +1 -1
  84. package/dist/esm/ez-list.entry.js +101 -152
  85. package/dist/esm/ez-modal.entry.js +1 -1
  86. package/dist/esm/ez-number-input.entry.js +0 -7
  87. package/dist/esm/ez-popover.entry.js +1 -1
  88. package/dist/esm/ez-popup.entry.js +1 -1
  89. package/dist/esm/ez-search.entry.js +22 -67
  90. package/dist/esm/ez-split-button.entry.js +1 -1
  91. package/dist/esm/ez-split-panel.entry.js +5 -15
  92. package/dist/esm/ez-text-area.entry.js +4 -66
  93. package/dist/esm/ez-text-input.entry.js +7 -49
  94. package/dist/esm/ez-time-input.entry.js +0 -6
  95. package/dist/esm/ezui.js +1 -1
  96. package/dist/esm/loader.js +1 -1
  97. package/dist/ezui/ezui.esm.js +1 -1
  98. package/dist/ezui/p-00687830.entry.js +1 -0
  99. package/dist/ezui/p-044d46d5.entry.js +1 -0
  100. package/dist/ezui/p-11b09aa1.entry.js +1 -0
  101. package/dist/ezui/p-190c190f.entry.js +304 -0
  102. package/dist/ezui/p-2de9f0aa.entry.js +1 -0
  103. package/dist/ezui/p-36180f4d.entry.js +1 -0
  104. package/dist/ezui/{p-2f53435e.entry.js → p-3b546374.entry.js} +1 -1
  105. package/dist/ezui/p-3f8c33e0.entry.js +1 -0
  106. package/dist/ezui/p-52100a6e.entry.js +1 -0
  107. package/dist/ezui/p-5a40c77a.entry.js +1 -0
  108. package/dist/ezui/p-61059f6b.entry.js +1 -0
  109. package/dist/ezui/p-68267f59.entry.js +1 -0
  110. package/dist/ezui/p-823cc11b.entry.js +1 -0
  111. package/dist/ezui/p-85b500bb.entry.js +1 -0
  112. package/dist/ezui/p-8ac13678.entry.js +1 -0
  113. package/dist/ezui/p-940760bf.entry.js +1 -0
  114. package/dist/ezui/p-9e08ddb0.entry.js +1 -0
  115. package/dist/ezui/p-b2a1398f.entry.js +1 -0
  116. package/dist/ezui/p-ba5f4ee7.entry.js +1 -0
  117. package/dist/ezui/p-d40b93a7.entry.js +1 -0
  118. package/dist/ezui/p-d4aba783.entry.js +1 -0
  119. package/dist/ezui/p-e3ec7422.entry.js +1 -0
  120. package/dist/ezui/p-f291db18.entry.js +1 -0
  121. package/dist/ezui/p-f42855b9.js +1 -0
  122. package/dist/types/components/ez-combo-box/ez-combo-box.d.ts +1 -7
  123. package/dist/types/components/ez-date-input/ez-date-input.d.ts +1 -6
  124. package/dist/types/components/ez-date-time-input/ez-date-time-input.d.ts +1 -6
  125. package/dist/types/components/ez-dialog/ez-dialog.d.ts +0 -2
  126. package/dist/types/components/ez-filter-input/ez-filter-input.d.ts +11 -4
  127. package/dist/types/components/ez-form-view/fieldbuilder/templates/TextInput.tpl.d.ts +1 -1
  128. package/dist/types/components/ez-grid/controller/EzGridController.d.ts +0 -12
  129. package/dist/types/components/ez-grid/controller/ag-grid/AgGridController.d.ts +2 -7
  130. package/dist/types/components/ez-grid/controller/ag-grid/DataSource.d.ts +1 -2
  131. package/dist/types/components/ez-grid/controller/ag-grid/GridEditionManager.d.ts +7 -19
  132. package/dist/types/components/ez-grid/controller/ag-grid/components/EzGridCustomCellEditor.d.ts +1 -3
  133. package/dist/types/components/ez-grid/controller/ag-grid/components/EzGridCustomCellRender.d.ts +1 -1
  134. package/dist/types/components/ez-grid/controller/ag-grid/components/EzGridCustomHeader.d.ts +1 -1
  135. package/dist/types/components/ez-grid/controller/ag-grid/components/cellRendererStatus.d.ts +1 -1
  136. package/dist/types/components/ez-grid/controller/ag-grid/components/selectionHeader.d.ts +1 -1
  137. package/dist/types/components/ez-grid/controller/ag-grid/editor/EzCellEditor.d.ts +1 -1
  138. package/dist/types/components/ez-grid/controller/ag-grid/editor/EzCellRender.d.ts +1 -1
  139. package/dist/types/components/ez-grid/controller/ag-grid/editor/IUICellEditor.d.ts +0 -1
  140. package/dist/types/components/ez-grid/controller/ag-grid/mock/Server.d.ts +1 -1
  141. package/dist/types/components/ez-grid/ez-grid.d.ts +1 -11
  142. package/dist/types/components/ez-list/ez-list.d.ts +26 -3
  143. package/dist/types/components/ez-modal/ez-modal.d.ts +1 -1
  144. package/dist/types/components/ez-number-input/ez-number-input.d.ts +0 -4
  145. package/dist/types/components/ez-search/ez-search.d.ts +2 -10
  146. package/dist/types/components/ez-split-panel/ez-split-panel.d.ts +0 -4
  147. package/dist/types/components/ez-text-area/ez-text-area.d.ts +0 -17
  148. package/dist/types/components/ez-text-input/ez-text-input.d.ts +0 -9
  149. package/dist/types/components/ez-time-input/ez-time-input.d.ts +0 -4
  150. package/dist/types/components.d.ts +44 -114
  151. package/dist/types/utils/form/DataBinder.d.ts +0 -3
  152. package/package.json +4 -11
  153. package/dist/cjs/DataBinder-3b083480.js +0 -445
  154. package/dist/cjs/FocusResolver-885f2173.js +0 -35
  155. package/dist/collection/components/ez-split-panel/interfaces/IPanelSizeInfo.js +0 -1
  156. package/dist/collection/utils/FocusResolver.js +0 -31
  157. package/dist/esm/DataBinder-02fa9bb9.js +0 -441
  158. package/dist/esm/FocusResolver-1ccbf850.js +0 -33
  159. package/dist/ezui/p-16e21a40.entry.js +0 -1
  160. package/dist/ezui/p-33675dae.entry.js +0 -1
  161. package/dist/ezui/p-397e3026.entry.js +0 -1
  162. package/dist/ezui/p-3af64edd.entry.js +0 -1
  163. package/dist/ezui/p-3c10cd94.entry.js +0 -1
  164. package/dist/ezui/p-3cc9b84a.entry.js +0 -1
  165. package/dist/ezui/p-3d38bfea.entry.js +0 -1
  166. package/dist/ezui/p-455e737c.js +0 -1
  167. package/dist/ezui/p-46a46507.entry.js +0 -1
  168. package/dist/ezui/p-6bc25bc8.entry.js +0 -1
  169. package/dist/ezui/p-6bda82d1.entry.js +0 -1
  170. package/dist/ezui/p-6d31c43c.entry.js +0 -1
  171. package/dist/ezui/p-7f5afb1f.entry.js +0 -1
  172. package/dist/ezui/p-8f026744.entry.js +0 -1
  173. package/dist/ezui/p-9fddffe3.entry.js +0 -309
  174. package/dist/ezui/p-a4ee2991.entry.js +0 -1
  175. package/dist/ezui/p-aa7779d0.entry.js +0 -1
  176. package/dist/ezui/p-be34c77f.entry.js +0 -1
  177. package/dist/ezui/p-bfc30e61.entry.js +0 -1
  178. package/dist/ezui/p-bfc59380.entry.js +0 -1
  179. package/dist/ezui/p-d960a031.entry.js +0 -1
  180. package/dist/ezui/p-dc628ed3.js +0 -1
  181. package/dist/ezui/p-dfca5946.entry.js +0 -1
  182. package/dist/ezui/p-efbe0b73.entry.js +0 -1
  183. package/dist/types/components/ez-split-panel/interfaces/IPanelSizeInfo.d.ts +0 -9
  184. package/dist/types/utils/FocusResolver.d.ts +0 -5
@@ -6,6 +6,8 @@
6
6
  --ez-text-input--width: 100%;
7
7
  /*@doc Define a largura do slot que contém o ícone.*/
8
8
  --ez-text-input__icon--width: 48px;
9
+ --ez-text-input__icon--left--width: var(--ez-text-input__icon--width);
10
+ --ez-text-input__icon--right--width: var(--ez-text-input__icon--width);
9
11
  /*@doc Define a altura do componente em modo "slim".*/
10
12
  --ez-text-input--height--slim: 32px;
11
13
 
@@ -46,9 +48,6 @@
46
48
  --ez-text-input__input--noborder-color: white;
47
49
  /*@doc Define o padding do input*/
48
50
  --ez-text-input__input--padding: var(--space--medium, 6px);
49
- /*@doc Define a cor do placeholder do input.*/
50
- --ez-text-input__placeholder--color: var(--text--secondary, #a2abb9);
51
-
52
51
 
53
52
  /* message box */
54
53
  /*@doc Define o tamanho da fonte da mensagem abaixo do input.*/
@@ -105,6 +104,8 @@ input {
105
104
  color: var(--ez-text-input--color);
106
105
  font-weight: var(--ez-text-input--font-weight);
107
106
  padding: var(--ez-text-input__input--padding);
107
+ text-overflow: ellipsis;
108
+ overflow: hidden;
108
109
  }
109
110
 
110
111
  input:disabled {
@@ -122,11 +123,11 @@ input:focus {
122
123
  }
123
124
 
124
125
  input.icon--left {
125
- padding-left: var(--ez-text-input__icon--width);
126
+ padding-left: var(--ez-text-input__icon--left--width);
126
127
  }
127
128
 
128
129
  input.icon--right {
129
- padding-right: var(--ez-text-input__icon--width);
130
+ padding-right: var(--ez-text-input__icon--right--width);
130
131
  }
131
132
 
132
133
  input.hasError {
@@ -203,25 +204,23 @@ input:read-only {
203
204
  cursor: not-allowed;
204
205
  }
205
206
 
207
+ .input__label--left.input__label--right {
208
+ left: calc(var(--ez-text-input__icon--left--width) + 2px);
209
+ /*borda*/
210
+ width: calc(100% - (var(--ez-text-input__icon--right--width) + var(--ez-text-input__icon--left--width)));
211
+ }
206
212
  .input__label--left {
207
213
  /*public*/
208
214
  text-align: left;
209
- left: calc(var(--ez-text-input__icon--width) + 2px);
215
+ left: calc(var(--ez-text-input__icon--left--width) + 2px);
210
216
  /*borda*/
211
- width: calc(100% - var(--ez-text-input__icon--width));
217
+ width: calc(100% - var(--ez-text-input__icon--left--width));
212
218
  }
213
219
 
214
220
  .input__label--right {
215
221
  /*public*/
216
- right: var(--ez-text-input__icon--width);
217
- width: calc(100% - var(--ez-text-input__icon--width));
218
- }
219
-
220
- /* ISSO TA ERRADO CRIAR INPUT__LABEL--BOTH */
221
- .input__label--left.input__label--right {
222
- left: calc(var(--ez-text-input__icon--width) + 2px);
223
- /*borda*/
224
- width: calc(100% - var(--ez-text-input__icon--width) * 2);
222
+ right: var(--ez-text-input__icon--right--width);
223
+ width: calc(100% - var(--ez-text-input__icon--right--width));
225
224
  }
226
225
 
227
226
  .input--with--label {
@@ -241,18 +240,45 @@ input:read-only {
241
240
  font-weight: bold;
242
241
  }
243
242
 
244
- .input--slim::-webkit-input-placeholder, /* Edge */
245
- .input--slim:-moz-placeholder, /* Firefox 4-18 */
246
- .input--slim::-moz-placeholder, /* Firefox 19+ */
247
- .input--slim:-ms-input-placeholder, /* IE 10-11 */
248
- .input--slim::placeholder { /* Modern browsers */
249
- /*public*/
250
- font-family: var(--ez-text-input--font-family);
251
- font-size: var(--ez-text-input--font-size);
252
- font-weight: var(--ez-text-input--font-weight);
253
- color: var(--ez-text-input__placeholder--color);
254
- }
243
+ .input--slim::-webkit-input-placeholder { /* Edge */
244
+ /*public*/
245
+ font-family: var(--ez-text-input--font-family);
246
+ font-size: var(--ez-text-input--font-size);
247
+ font-weight: var(--ez-text-input--font-weight);
248
+ color: var(--ez-text-input--color);
249
+ }
255
250
 
251
+ .input--slim:-moz-placeholder { /* Mozilla Firefox 4 to 18 */
252
+ /*public*/
253
+ font-family: var(--ez-text-input--font-family);
254
+ font-size: var(--ez-text-input--font-size);
255
+ font-weight: var(--ez-text-input--font-weight);
256
+ color: var(--ez-text-input--color);
257
+ }
258
+
259
+ .input--slim::-moz-placeholder { /* Mozilla Firefox 19+ */
260
+ /*public*/
261
+ font-family: var(--ez-text-input--font-family);
262
+ font-size: var(--ez-text-input--font-size);
263
+ font-weight: var(--ez-text-input--font-weight);
264
+ color: var(--ez-text-input--color);
265
+ }
266
+
267
+ .input--slim:-ms-input-placeholder { /* Internet Explorer 10-11 */
268
+ /*public*/
269
+ font-family: var(--ez-text-input--font-family);
270
+ font-size: var(--ez-text-input--font-size);
271
+ font-weight: var(--ez-text-input--font-weight);
272
+ color: var(--ez-text-input--color);
273
+ }
274
+
275
+ .input--slim::placeholder {
276
+ /*public*/
277
+ font-family: var(--ez-text-input--font-family);
278
+ font-size: var(--ez-text-input--font-size);
279
+ font-weight: var(--ez-text-input--font-weight);
280
+ color: var(--ez-text-input--color);
281
+ }
256
282
 
257
283
  .input--slim:disabled::-webkit-input-placeholder, /* WebKit browsers */
258
284
  .input--slim:disabled:-moz-placeholder, /* Mozilla Firefox 4 to 18 */
@@ -7,13 +7,11 @@ export class EzTextInput {
7
7
  this.enabled = true;
8
8
  this.errorMessage = undefined;
9
9
  this.mask = undefined;
10
- this.cleanValueMask = false;
11
10
  this.canShowError = true;
12
11
  this.restrict = undefined;
13
12
  this.mode = "regular";
14
13
  this.noBorder = false;
15
14
  this.password = false;
16
- this.autoFocus = false;
17
15
  }
18
16
  observeErrorMessage() {
19
17
  if (this._inputElem) {
@@ -123,12 +121,7 @@ export class EzTextInput {
123
121
  const value = this._inputElem.value;
124
122
  if (value && this._maskFormatter) {
125
123
  try {
126
- if (this.cleanValueMask) {
127
- this.applyMask(value);
128
- }
129
- else {
130
- this._inputElem.value = this._maskFormatter.format(value);
131
- }
124
+ this._inputElem.value = this._maskFormatter.format(value);
132
125
  }
133
126
  catch (e) {
134
127
  this.errorMessage = e.message;
@@ -146,34 +139,8 @@ export class EzTextInput {
146
139
  }
147
140
  controlChangeValue() {
148
141
  if (this._inputElem && (this.value || '') !== this._inputElem.value) {
149
- if (this.cleanValueMask) {
150
- this.value = this._maskFormatter.removeMask(this._inputElem.value);
151
- }
152
- else {
153
- this.value = this._inputElem.value;
154
- }
155
- }
156
- }
157
- applyMask(value) {
158
- if (!value || value === "")
159
- return value;
160
- if (this._maskFormatter) {
161
- try {
162
- const formattedValue = this._maskFormatter.applyMask(this._maskFormatter.removeMask(value));
163
- if (this._inputElem) {
164
- this._inputElem.value = formattedValue;
165
- return this._inputElem.value;
166
- }
167
- else {
168
- this.value = formattedValue;
169
- return this.value;
170
- }
171
- }
172
- catch (e) {
173
- this.errorMessage = e.message;
174
- }
142
+ this.value = this._inputElem.value;
175
143
  }
176
- return value;
177
144
  }
178
145
  handleChange() {
179
146
  if (!this._inputElem) {
@@ -198,9 +165,9 @@ export class EzTextInput {
198
165
  content.style.justifyContent = "center";
199
166
  content.style.overflow = "hidden";
200
167
  content.style.top = "0px";
201
- content.style.width = "var(--ez-text-input__icon--width)";
202
168
  content.style.height = this.mode != "slim" ? "var(--ez-text-input--height)" : "var(--ez-text-input--height--slim)";
203
169
  if (slot.name == "leftIcon") {
170
+ content.style.width = "var(--ez-text-input__icon--left--width)";
204
171
  content.style.left = "0px";
205
172
  content.style.borderRadius = "var(--ez-text-input--border-radius) 0 0 var(--ez-text-input--border-radius)";
206
173
  this._inputElem.classList.add("icon--left");
@@ -210,6 +177,7 @@ export class EzTextInput {
210
177
  this._contentLeftSlot = content;
211
178
  }
212
179
  else if (slot.name == "rightIcon") {
180
+ content.style.width = "var(--ez-text-input__icon--right--width)";
213
181
  content.style.right = "0px";
214
182
  content.style.borderRadius = "0 var(--ez-text-input--border-radius) var(--ez-text-input--border-radius) 0";
215
183
  this._inputElem.classList.add("icon--right");
@@ -235,11 +203,6 @@ export class EzTextInput {
235
203
  this.observeMask();
236
204
  this.adjustFloatingLabel();
237
205
  this.adjustBorderInput();
238
- if (this.autoFocus) {
239
- requestAnimationFrame(() => {
240
- this.setFocus({ selectText: true });
241
- });
242
- }
243
206
  this._inputElem.addEventListener('focus', () => {
244
207
  this._inputElem.setSelectionRange(0, this._inputElem.value.length);
245
208
  });
@@ -249,12 +212,7 @@ export class EzTextInput {
249
212
  if (this.value) {
250
213
  if (this._maskFormatter) {
251
214
  try {
252
- if (this.cleanValueMask) {
253
- this.applyMask(this.value);
254
- }
255
- else {
256
- this.value = this._maskFormatter.format(this.value);
257
- }
215
+ this.value = this._maskFormatter.format(this.value);
258
216
  }
259
217
  catch (e) {
260
218
  this.errorMessage = e.message;
@@ -270,7 +228,7 @@ export class EzTextInput {
270
228
  ElementIDUtils.addIDInfoIfNotExists(this._hostElement, 'input');
271
229
  return (h(Host, { style: this._hostElement.classList.contains("grid_editor") ? { "height": "100%" } : null }, h("slot", { name: "leftIcon", onSlotchange: (ev) => { this.handleSlotChange(ev); } }), this.label && this.mode != "slim" ?
272
230
  h("label", { ref: (el) => this._labelElem = el, class: this.enabled ? "input__label" : "input__label input__label--disabled", onClick: () => this._inputElem.focus(), title: this.label }, this.label)
273
- : null, h("input", { "data-element-id": ElementIDUtils.getInternalIDInfo("input"), onFocus: () => this.doFocus(), ref: (el) => this._inputElem = el, type: this.password ? "password" : "text", class: this.mode === "slim" ? "input--slim" : "", placeholder: this.mode === "slim" && this.label ? this.label : "", value: this.mask && this.cleanValueMask ? this.applyMask(this.value) : this.value, disabled: !this.enabled, onInput: () => { this.handleChange(); }, onFocusout: () => { this.handleFocusout(); } }), h("slot", { name: "rightIcon", onSlotchange: (ev) => { this.handleSlotChange(ev); } }), this.canShowError && this.mode != "slim" &&
231
+ : null, h("input", { "data-element-id": ElementIDUtils.getInternalIDInfo("input"), onFocus: () => this.doFocus(), ref: (el) => this._inputElem = el, type: this.password ? "password" : "text", class: this.mode === "slim" ? "input--slim" : "", placeholder: this.mode === "slim" && this.label ? this.label : "", value: this.value, disabled: !this.enabled, onInput: () => { this.handleChange(); }, onFocusout: () => { this.handleFocusout(); } }), h("slot", { name: "rightIcon", onSlotchange: (ev) => { this.handleSlotChange(ev); } }), this.canShowError && this.mode != "slim" &&
274
232
  h("span", { class: "message-box", ref: (el) => this._messageBoxElem = el, title: this.errorMessage, "data-element-id": ElementIDUtils.getInternalIDInfo("message_box") }, this.errorMessage)));
275
233
  }
276
234
  static get is() { return "ez-text-input"; }
@@ -373,24 +331,6 @@ export class EzTextInput {
373
331
  "attribute": "mask",
374
332
  "reflect": false
375
333
  },
376
- "cleanValueMask": {
377
- "type": "boolean",
378
- "mutable": false,
379
- "complexType": {
380
- "original": "boolean",
381
- "resolved": "boolean",
382
- "references": {}
383
- },
384
- "required": false,
385
- "optional": false,
386
- "docs": {
387
- "tags": [],
388
- "text": "Para remover a m\u00E1scara quando fizer um apply no formul\u00E1rio."
389
- },
390
- "attribute": "clean-value-mask",
391
- "reflect": false,
392
- "defaultValue": "false"
393
- },
394
334
  "canShowError": {
395
335
  "type": "boolean",
396
336
  "mutable": false,
@@ -479,24 +419,6 @@ export class EzTextInput {
479
419
  "attribute": "password",
480
420
  "reflect": false,
481
421
  "defaultValue": "false"
482
- },
483
- "autoFocus": {
484
- "type": "boolean",
485
- "mutable": false,
486
- "complexType": {
487
- "original": "boolean",
488
- "resolved": "boolean",
489
- "references": {}
490
- },
491
- "required": false,
492
- "optional": false,
493
- "docs": {
494
- "tags": [],
495
- "text": "Se true o campo receber\u00E1 o foco ao ser renderizado."
496
- },
497
- "attribute": "auto-focus",
498
- "reflect": false,
499
- "defaultValue": "false"
500
422
  }
501
423
  };
502
424
  }
@@ -10,7 +10,6 @@ export class EzTimeInput {
10
10
  this.showSeconds = false;
11
11
  this.mode = "regular";
12
12
  this.canShowError = true;
13
- this.autoFocus = false;
14
13
  }
15
14
  observeErrorMessage() {
16
15
  var _a;
@@ -131,11 +130,6 @@ export class EzTimeInput {
131
130
  //---------------------------------------------
132
131
  componentDidLoad() {
133
132
  CSSVarsUtils.applyVarsTextInput(this._elem, this._textInput);
134
- if (this.autoFocus) {
135
- requestAnimationFrame(() => {
136
- this.setFocus({ selectText: true });
137
- });
138
- }
139
133
  }
140
134
  componentWillLoad() {
141
135
  this.observeShowSeconds();
@@ -287,24 +281,6 @@ export class EzTimeInput {
287
281
  "attribute": "can-show-error",
288
282
  "reflect": true,
289
283
  "defaultValue": "true"
290
- },
291
- "autoFocus": {
292
- "type": "boolean",
293
- "mutable": false,
294
- "complexType": {
295
- "original": "boolean",
296
- "resolved": "boolean",
297
- "references": {}
298
- },
299
- "required": false,
300
- "optional": false,
301
- "docs": {
302
- "tags": [],
303
- "text": "Se true o campo de texto receber\u00E1 o foco ao ser renderizado."
304
- },
305
- "attribute": "auto-focus",
306
- "reflect": false,
307
- "defaultValue": "false"
308
284
  }
309
285
  };
310
286
  }
@@ -22,7 +22,6 @@ export default class DataBinder {
22
22
  (_a = this._fields) === null || _a === void 0 ? void 0 : _a.forEach(field => {
23
23
  this.updateValue(field.fieldName, field.field);
24
24
  });
25
- this.clearFieldError(Object.keys(action.payload)[0]);
26
25
  break;
27
26
  case Action.FIELD_INVALIDATED:
28
27
  (_b = this._fields) === null || _b === void 0 ? void 0 : _b.forEach(field => {
@@ -68,14 +67,11 @@ export default class DataBinder {
68
67
  });
69
68
  this._formMetadata = formMetadata;
70
69
  this._recordValidatorProcessor = new RecordValidationProcessor(this._dataUnit, {
71
- getRequiredFields: () => this.getFormRequiredFields(),
70
+ getRequiredFields: () => this._formMetadata.getRequiredFields(),
72
71
  markAsInvalid: field => this.markInvalid(field),
73
72
  getMessageForField: field => this.getErrorMessage(field),
74
73
  }, recordsValidator);
75
74
  }
76
- getFormRequiredFields() {
77
- return this._formMetadata.getRequiredFields();
78
- }
79
75
  disconnectDataUnit() {
80
76
  const dataBindersByDataUnit = ApplicationContext.getContextValue("__DATABINDER_BY_DATAUNIT__") || new Map();
81
77
  const dataBinders = dataBindersByDataUnit.get(this._dataUnit.dataUnitId);
@@ -115,14 +111,6 @@ export default class DataBinder {
115
111
  fieldElement["errorMessage"] = "";
116
112
  });
117
113
  }
118
- clearFieldError(fieldName) {
119
- var _a;
120
- const field = (_a = this._fields.get(fieldName)) === null || _a === void 0 ? void 0 : _a.field;
121
- if (field["errorMessage"]) {
122
- field["errorMessage"] = "";
123
- this._dataUnit.clearInvalid(this.getCurrentRecordId(), fieldName);
124
- }
125
- }
126
114
  updateValue(fieldName, field) {
127
115
  const bind = this._fields.get(fieldName);
128
116
  try {
@@ -143,7 +131,8 @@ export default class DataBinder {
143
131
  }
144
132
  static async validateByDataunit(dataUnit) {
145
133
  try {
146
- const dataBinders = this.getDataBindersByDataUnit(dataUnit);
134
+ const dataBindersByDataUnit = ApplicationContext.getContextValue("__DATABINDER_BY_DATAUNIT__");
135
+ const dataBinders = dataBindersByDataUnit.get(dataUnit.dataUnitId) || [];
147
136
  await Promise.all(dataBinders.map((dataBinder) => dataBinder.validate()));
148
137
  return true;
149
138
  }
@@ -151,10 +140,6 @@ export default class DataBinder {
151
140
  return false;
152
141
  }
153
142
  }
154
- static getDataBindersByDataUnit(dataUnit) {
155
- const dataBindersByDataUnit = ApplicationContext.getContextValue("__DATABINDER_BY_DATAUNIT__");
156
- return dataBindersByDataUnit.get(dataUnit.dataUnitId) || [];
157
- }
158
143
  updateErrorMessage(fieldName, field, message) {
159
144
  if (message == undefined) {
160
145
  message = this._dataUnit.getInvalidMessage(this.getCurrentRecordId(), fieldName);
@@ -97,7 +97,7 @@ export const buildFormMetadata = (config, dataUnit, includeDetails = false) => {
97
97
  return;
98
98
  }
99
99
  const descriptor = dataUnit.getField(field.name);
100
- if (descriptor && descriptor.visible && tabConfig.visible) {
100
+ if (descriptor && tabConfig.visible) {
101
101
  if (!sheets.has(tabConfig)) {
102
102
  sheets.set(tabConfig, []);
103
103
  }
@@ -16,6 +16,6 @@ export const buildFieldMetadata = (descriptor, config) => {
16
16
  name, label, group,
17
17
  readOnly, required,
18
18
  props,
19
- userInterface: userInterface || UserInterface.SHORTTEXT,
19
+ userInterface: userInterface || UserInterface.SHORTTEXT
20
20
  };
21
21
  };