@sankhyalabs/ezui 0.0.0-bugfix-dev-kb-74998.1 → 0.0.0-bugfix-dev-5603306.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (217) hide show
  1. package/dist/cjs/{DataBinder-3b083480.js → DataBinder-b4ef826a.js} +1 -1
  2. package/dist/cjs/ez-actions-button.cjs.entry.js +4 -3
  3. package/dist/cjs/ez-alert-list.cjs.entry.js +1 -1
  4. package/dist/cjs/ez-alert.cjs.entry.js +1 -1
  5. package/dist/cjs/ez-application.cjs.entry.js +1 -1
  6. package/dist/cjs/ez-badge.cjs.entry.js +1 -1
  7. package/dist/cjs/ez-breadcrumb.cjs.entry.js +1 -1
  8. package/dist/cjs/ez-button.cjs.entry.js +1 -1
  9. package/dist/cjs/ez-calendar.cjs.entry.js +1 -1
  10. package/dist/cjs/ez-card-item_3.cjs.entry.js +3 -2
  11. package/dist/cjs/ez-chart.cjs.entry.js +1 -1
  12. package/dist/cjs/ez-check.cjs.entry.js +1 -1
  13. package/dist/cjs/ez-chip.cjs.entry.js +1 -1
  14. package/dist/cjs/ez-collapsible-box.cjs.entry.js +1 -1
  15. package/dist/cjs/ez-combo-box.cjs.entry.js +4 -3
  16. package/dist/cjs/ez-custom-form-input_2.cjs.entry.js +2 -2
  17. package/dist/cjs/ez-date-input.cjs.entry.js +3 -2
  18. package/dist/cjs/ez-date-time-input.cjs.entry.js +3 -2
  19. package/dist/cjs/ez-dialog.cjs.entry.js +1 -1
  20. package/dist/cjs/ez-dropdown_2.cjs.entry.js +1 -1
  21. package/dist/cjs/ez-file-item.cjs.entry.js +1 -1
  22. package/dist/cjs/ez-form-view.cjs.entry.js +20 -20
  23. package/dist/cjs/ez-form.cjs.entry.js +4 -3
  24. package/dist/cjs/ez-grid.cjs.entry.js +8 -7
  25. package/dist/cjs/ez-guide-navigator.cjs.entry.js +1 -1
  26. package/dist/cjs/ez-icon.cjs.entry.js +1 -1
  27. package/dist/cjs/ez-list.cjs.entry.js +1 -1
  28. package/dist/cjs/ez-loading-bar.cjs.entry.js +1 -1
  29. package/dist/cjs/ez-modal-container.cjs.entry.js +1 -1
  30. package/dist/cjs/ez-modal.cjs.entry.js +1 -1
  31. package/dist/cjs/ez-multi-selection-list.cjs.entry.js +2 -2
  32. package/dist/cjs/ez-number-input.cjs.entry.js +3 -2
  33. package/dist/cjs/ez-popover.cjs.entry.js +1 -1
  34. package/dist/cjs/ez-popup.cjs.entry.js +1 -1
  35. package/dist/cjs/ez-radio-button.cjs.entry.js +1 -1
  36. package/dist/cjs/ez-scroller_2.cjs.entry.js +1 -1
  37. package/dist/cjs/ez-search.cjs.entry.js +4 -3
  38. package/dist/cjs/ez-sidebar-navigator.cjs.entry.js +1 -1
  39. package/dist/cjs/ez-split-button.cjs.entry.js +1 -1
  40. package/dist/cjs/ez-split-item.cjs.entry.js +1 -1
  41. package/dist/cjs/ez-split-panel.cjs.entry.js +1 -1
  42. package/dist/cjs/ez-tabselector.cjs.entry.js +1 -1
  43. package/dist/cjs/ez-text-area.cjs.entry.js +1 -1
  44. package/dist/cjs/ez-text-input.cjs.entry.js +86 -25
  45. package/dist/cjs/ez-time-input.cjs.entry.js +3 -2
  46. package/dist/cjs/ez-toast.cjs.entry.js +1 -1
  47. package/dist/cjs/ez-tooltip.cjs.entry.js +55 -0
  48. package/dist/cjs/ez-tree.cjs.entry.js +1 -1
  49. package/dist/cjs/ez-upload.cjs.entry.js +1 -1
  50. package/dist/cjs/ez-view-stack.cjs.entry.js +1 -1
  51. package/dist/cjs/ezui.cjs.js +2 -2
  52. package/dist/cjs/filter-column.cjs.entry.js +1 -1
  53. package/dist/cjs/{index-9e5554cb.js → index-a7b0c73d.js} +4 -3
  54. package/dist/cjs/loader.cjs.js +2 -2
  55. package/dist/collection/collection-manifest.json +1 -0
  56. package/dist/collection/components/ez-actions-button/ez-actions-button.js +3 -2
  57. package/dist/collection/components/ez-combo-box/ez-combo-box.js +21 -2
  58. package/dist/collection/components/ez-date-input/ez-date-input.js +20 -1
  59. package/dist/collection/components/ez-date-time-input/ez-date-time-input.js +20 -1
  60. package/dist/collection/components/ez-filter-input/ez-filter-input.js +20 -1
  61. package/dist/collection/components/ez-form-view/ez-form-view.css +5 -2
  62. package/dist/collection/components/ez-form-view/fieldbuilder/templates/CheckBox.tpl.js +1 -1
  63. package/dist/collection/components/ez-form-view/fieldbuilder/templates/ComboBox.tpl.js +1 -1
  64. package/dist/collection/components/ez-form-view/fieldbuilder/templates/DateInput.tpl.js +3 -3
  65. package/dist/collection/components/ez-form-view/fieldbuilder/templates/FileInput.tpl.js +1 -1
  66. package/dist/collection/components/ez-form-view/fieldbuilder/templates/NumberInput.tpl.js +1 -1
  67. package/dist/collection/components/ez-form-view/fieldbuilder/templates/SearchInput.tpl.js +1 -1
  68. package/dist/collection/components/ez-form-view/fieldbuilder/templates/TextArea.tpl.js +1 -1
  69. package/dist/collection/components/ez-form-view/fieldbuilder/templates/TextInput.tpl.js +1 -1
  70. package/dist/collection/components/ez-grid/controller/ag-grid/AgGridController.js +1 -1
  71. package/dist/collection/components/ez-grid/ez-grid.css +11 -0
  72. package/dist/collection/components/ez-grid/ez-grid.js +22 -3
  73. package/dist/collection/components/ez-multi-selection-list/ez-multi-selection-list.css +0 -1
  74. package/dist/collection/components/ez-number-input/ez-number-input.js +20 -1
  75. package/dist/collection/components/ez-search/ez-search.js +21 -2
  76. package/dist/collection/components/ez-text-input/ez-text-input.css +63 -24
  77. package/dist/collection/components/ez-text-input/ez-text-input.js +107 -23
  78. package/dist/collection/components/ez-time-input/ez-time-input.js +20 -1
  79. package/dist/collection/components/ez-tooltip/ez-tooltip.css +20 -0
  80. package/dist/collection/components/ez-tooltip/ez-tooltip.js +116 -0
  81. package/dist/collection/utils/form/DataBinder.js +1 -1
  82. package/dist/collection/utils/form/FormMetadata.js +2 -1
  83. package/dist/custom-elements/index.d.ts +6 -0
  84. package/dist/custom-elements/index.js +194 -72
  85. package/dist/esm/{DataBinder-02fa9bb9.js → DataBinder-d2ecbb0f.js} +1 -1
  86. package/dist/esm/ez-actions-button.entry.js +4 -3
  87. package/dist/esm/ez-alert-list.entry.js +1 -1
  88. package/dist/esm/ez-alert.entry.js +1 -1
  89. package/dist/esm/ez-application.entry.js +1 -1
  90. package/dist/esm/ez-badge.entry.js +1 -1
  91. package/dist/esm/ez-breadcrumb.entry.js +1 -1
  92. package/dist/esm/ez-button.entry.js +1 -1
  93. package/dist/esm/ez-calendar.entry.js +1 -1
  94. package/dist/esm/ez-card-item_3.entry.js +3 -2
  95. package/dist/esm/ez-chart.entry.js +1 -1
  96. package/dist/esm/ez-check.entry.js +1 -1
  97. package/dist/esm/ez-chip.entry.js +1 -1
  98. package/dist/esm/ez-collapsible-box.entry.js +1 -1
  99. package/dist/esm/ez-combo-box.entry.js +4 -3
  100. package/dist/esm/ez-custom-form-input_2.entry.js +2 -2
  101. package/dist/esm/ez-date-input.entry.js +3 -2
  102. package/dist/esm/ez-date-time-input.entry.js +3 -2
  103. package/dist/esm/ez-dialog.entry.js +1 -1
  104. package/dist/esm/ez-dropdown_2.entry.js +1 -1
  105. package/dist/esm/ez-file-item.entry.js +1 -1
  106. package/dist/esm/ez-form-view.entry.js +20 -20
  107. package/dist/esm/ez-form.entry.js +4 -3
  108. package/dist/esm/ez-grid.entry.js +8 -7
  109. package/dist/esm/ez-guide-navigator.entry.js +1 -1
  110. package/dist/esm/ez-icon.entry.js +1 -1
  111. package/dist/esm/ez-list.entry.js +1 -1
  112. package/dist/esm/ez-loading-bar.entry.js +1 -1
  113. package/dist/esm/ez-modal-container.entry.js +1 -1
  114. package/dist/esm/ez-modal.entry.js +1 -1
  115. package/dist/esm/ez-multi-selection-list.entry.js +2 -2
  116. package/dist/esm/ez-number-input.entry.js +3 -2
  117. package/dist/esm/ez-popover.entry.js +1 -1
  118. package/dist/esm/ez-popup.entry.js +1 -1
  119. package/dist/esm/ez-radio-button.entry.js +1 -1
  120. package/dist/esm/ez-scroller_2.entry.js +1 -1
  121. package/dist/esm/ez-search.entry.js +4 -3
  122. package/dist/esm/ez-sidebar-navigator.entry.js +1 -1
  123. package/dist/esm/ez-split-button.entry.js +1 -1
  124. package/dist/esm/ez-split-item.entry.js +1 -1
  125. package/dist/esm/ez-split-panel.entry.js +1 -1
  126. package/dist/esm/ez-tabselector.entry.js +1 -1
  127. package/dist/esm/ez-text-area.entry.js +1 -1
  128. package/dist/esm/ez-text-input.entry.js +86 -25
  129. package/dist/esm/ez-time-input.entry.js +3 -2
  130. package/dist/esm/ez-toast.entry.js +1 -1
  131. package/dist/esm/ez-tooltip.entry.js +51 -0
  132. package/dist/esm/ez-tree.entry.js +1 -1
  133. package/dist/esm/ez-upload.entry.js +1 -1
  134. package/dist/esm/ez-view-stack.entry.js +1 -1
  135. package/dist/esm/ezui.js +3 -3
  136. package/dist/esm/filter-column.entry.js +1 -1
  137. package/dist/esm/{index-5a720e56.js → index-baa5e267.js} +5 -3
  138. package/dist/esm/loader.js +3 -3
  139. package/dist/ezui/ezui.esm.js +1 -1
  140. package/dist/ezui/{p-e6b38ade.entry.js → p-0306dff7.entry.js} +1 -1
  141. package/dist/ezui/{p-91ccae0c.entry.js → p-09de35a2.entry.js} +1 -1
  142. package/dist/ezui/p-14b769d7.entry.js +1 -0
  143. package/dist/ezui/{p-b2f6bc0a.entry.js → p-17be134a.entry.js} +1 -1
  144. package/dist/ezui/p-181b5ae8.entry.js +1 -0
  145. package/dist/ezui/{p-81461d2f.entry.js → p-1e7a8633.entry.js} +1 -1
  146. package/dist/ezui/{p-6b51c9cc.entry.js → p-1f50fa05.entry.js} +1 -1
  147. package/dist/ezui/{p-e4c7eb39.js → p-23a36bb6.js} +2 -2
  148. package/dist/ezui/{p-9b7ec815.entry.js → p-27066292.entry.js} +2 -2
  149. package/dist/ezui/{p-3c10cd94.entry.js → p-2b46b37b.entry.js} +1 -1
  150. package/dist/ezui/{p-6d31c43c.entry.js → p-2bb2a0c4.entry.js} +1 -1
  151. package/dist/ezui/{p-efbe0b73.entry.js → p-3175fe8c.entry.js} +1 -1
  152. package/dist/ezui/p-3f2dd525.entry.js +1 -0
  153. package/dist/ezui/{p-0378416a.entry.js → p-44caad9a.entry.js} +1 -1
  154. package/dist/ezui/{p-46a46507.entry.js → p-4575d511.entry.js} +1 -1
  155. package/dist/ezui/p-50d83a46.entry.js +1 -0
  156. package/dist/ezui/{p-7567ccdd.entry.js → p-555c9018.entry.js} +1 -1
  157. package/dist/ezui/{p-6fc26622.entry.js → p-5ed81457.entry.js} +1 -1
  158. package/dist/ezui/{p-f1c2c19e.entry.js → p-650e4b6d.entry.js} +1 -1
  159. package/dist/ezui/p-654b3f99.entry.js +1 -0
  160. package/dist/ezui/p-6cdd3e0a.entry.js +1 -0
  161. package/dist/ezui/{p-554522db.entry.js → p-6d79930d.entry.js} +1 -1
  162. package/dist/ezui/{p-fc194825.entry.js → p-6e429cff.entry.js} +1 -1
  163. package/dist/ezui/p-6f22a385.entry.js +1 -0
  164. package/dist/ezui/{p-2f53435e.entry.js → p-7409eeaa.entry.js} +1 -1
  165. package/dist/ezui/{p-11bfeca3.entry.js → p-77a4bd35.entry.js} +1 -1
  166. package/dist/ezui/{p-397e3026.entry.js → p-7ed30844.entry.js} +1 -1
  167. package/dist/ezui/{p-e18d9e6a.entry.js → p-7fdd479f.entry.js} +1 -1
  168. package/dist/ezui/{p-1b08bf3c.entry.js → p-8888d9ed.entry.js} +1 -1
  169. package/dist/ezui/{p-82fa4b09.entry.js → p-8df1ca33.entry.js} +1 -1
  170. package/dist/ezui/{p-e7395eae.entry.js → p-90bcd2ba.entry.js} +1 -1
  171. package/dist/ezui/{p-a921e3e7.entry.js → p-990b4318.entry.js} +1 -1
  172. package/dist/ezui/{p-c2b20f78.entry.js → p-9f5fa3f9.entry.js} +1 -1
  173. package/dist/ezui/{p-dfca5946.entry.js → p-a80b1287.entry.js} +1 -1
  174. package/dist/ezui/{p-70f1c812.entry.js → p-b36542d8.entry.js} +1 -1
  175. package/dist/ezui/p-b6a4e6de.entry.js +1 -0
  176. package/dist/ezui/{p-30951bd7.entry.js → p-baf80b13.entry.js} +1 -1
  177. package/dist/ezui/p-bc2f844e.entry.js +1 -0
  178. package/dist/ezui/{p-7f5afb1f.entry.js → p-bfad39eb.entry.js} +1 -1
  179. package/dist/ezui/{p-92748142.entry.js → p-c0d9c4f8.entry.js} +1 -1
  180. package/dist/ezui/{p-b858fc6e.entry.js → p-c3045972.entry.js} +1 -1
  181. package/dist/ezui/{p-a563df31.entry.js → p-c4320a39.entry.js} +1 -1
  182. package/dist/ezui/{p-3cc9b84a.entry.js → p-c806f32f.entry.js} +1 -1
  183. package/dist/ezui/p-ca6340a9.entry.js +1 -0
  184. package/dist/ezui/{p-8f026744.entry.js → p-cd2e78f0.entry.js} +1 -1
  185. package/dist/ezui/{p-455e737c.js → p-ceadecd9.js} +1 -1
  186. package/dist/ezui/{p-16e21a40.entry.js → p-d0ca26fe.entry.js} +1 -1
  187. package/dist/ezui/{p-33675dae.entry.js → p-d520839d.entry.js} +1 -1
  188. package/dist/ezui/p-dc8b36c3.entry.js +1 -0
  189. package/dist/ezui/{p-bef7daac.entry.js → p-e347df9c.entry.js} +1 -1
  190. package/dist/ezui/p-e78e0843.entry.js +1 -0
  191. package/dist/ezui/{p-6bda82d1.entry.js → p-fec696ab.entry.js} +1 -1
  192. package/dist/types/components/ez-combo-box/ez-combo-box.d.ts +4 -0
  193. package/dist/types/components/ez-date-input/ez-date-input.d.ts +4 -0
  194. package/dist/types/components/ez-date-time-input/ez-date-time-input.d.ts +4 -0
  195. package/dist/types/components/ez-filter-input/ez-filter-input.d.ts +4 -0
  196. package/dist/types/components/ez-grid/ez-grid.d.ts +6 -0
  197. package/dist/types/components/ez-number-input/ez-number-input.d.ts +4 -0
  198. package/dist/types/components/ez-search/ez-search.d.ts +4 -0
  199. package/dist/types/components/ez-text-input/ez-text-input.d.ts +19 -2
  200. package/dist/types/components/ez-time-input/ez-time-input.d.ts +4 -0
  201. package/dist/types/components/ez-tooltip/ez-tooltip.d.ts +21 -0
  202. package/dist/types/components.d.ts +105 -0
  203. package/package.json +1 -1
  204. package/react/components.d.ts +1 -0
  205. package/react/components.js +1 -0
  206. package/react/components.js.map +1 -1
  207. package/dist/ezui/p-1af7fae4.entry.js +0 -1
  208. package/dist/ezui/p-3af64edd.entry.js +0 -1
  209. package/dist/ezui/p-3d38bfea.entry.js +0 -1
  210. package/dist/ezui/p-6ec40dec.entry.js +0 -1
  211. package/dist/ezui/p-7de7baa3.entry.js +0 -1
  212. package/dist/ezui/p-868b56f7.entry.js +0 -1
  213. package/dist/ezui/p-aa7779d0.entry.js +0 -1
  214. package/dist/ezui/p-bfc30e61.entry.js +0 -1
  215. package/dist/ezui/p-bfc59380.entry.js +0 -1
  216. package/dist/ezui/p-d27b4b3e.entry.js +0 -1
  217. package/dist/ezui/p-d960a031.entry.js +0 -1
@@ -1,4 +1,4 @@
1
1
  import { h } from "@stencil/core";
2
2
  export const buildTextArea = ({ name, label, readOnly, contextName, rows, canShowError }) => {
3
- return (h("div", { class: "ez-col ez-col--sd-12 ez-padding-horizontal--small", key: name }, h("ez-text-area", { enabled: !readOnly, label: label, "data-field-name": name, "data-context-name": contextName, rows: rows, canShowError: canShowError })));
3
+ return (h("div", { class: "ez-col ez-col--sd-12", key: name }, h("ez-text-area", { enabled: !readOnly, label: label, "data-field-name": name, "data-context-name": contextName, rows: rows, canShowError: canShowError })));
4
4
  };
@@ -1,4 +1,4 @@
1
1
  import { h } from "@stencil/core";
2
2
  export const buildTextInput = ({ name, label, readOnly, contextName, canShowError, props }) => {
3
- return (h("div", { class: "ez-col ez-col--sd-12 ez-padding-horizontal--small" }, h("ez-text-input", { label: label, "data-field-name": name, "data-context-name": contextName, key: name, enabled: !readOnly, canShowError: canShowError, mask: props === null || props === void 0 ? void 0 : props.mask, "clean-value-mask": props === null || props === void 0 ? void 0 : props.cleanValueMask })));
3
+ return (h("div", { class: "ez-col ez-col--sd-12" }, h("ez-text-input", { label: label, "data-field-name": name, "data-context-name": contextName, key: name, enabled: !readOnly, canShowError: canShowError, mask: props === null || props === void 0 ? void 0 : props.mask, "clean-value-mask": props === null || props === void 0 ? void 0 : props.cleanValueMask, noMargin: true })));
4
4
  };
@@ -40,7 +40,7 @@ export default class AgGridController {
40
40
  this.STATUS_COL_ID = 'statusColumn';
41
41
  this.RECORD_ARCHIVE_COL_ID = '__RECORD_ARCHIVE__';
42
42
  this.BLOCK_LOAD_DEBOUNCE = 100;
43
- this.DOC_WIDTH = 1150;
43
+ this.DOC_WIDTH = 800;
44
44
  this._menuItems = [];
45
45
  this._idAttribName = '__record__id__';
46
46
  this._gridConfig = [];
@@ -14,6 +14,10 @@
14
14
  --ez-grid__container--shadow: 0 0 16px 0 rgb(0 38 111 / 12%);
15
15
  /*@doc Define altura mínima da grid */
16
16
  --ez-grid--min-height: 300px;
17
+ /*@doc Define o outline usado como borda.*/
18
+ --ez-grid__container--outline: 1px solid var(--color--strokes);
19
+ /*@doc Define o outline usado como borda.*/
20
+ --ez-grid__container--shadow-as-outline: 0px 0px 0px 1px var(--color--strokes);
17
21
 
18
22
  min-height: var(--ez-grid--min-height);
19
23
  }
@@ -38,6 +42,13 @@
38
42
  background-color: var(--ez-grid__header--background-color);
39
43
  }
40
44
 
45
+ .grid__container.box-outline {
46
+ /*public*/
47
+ box-shadow: var(--ez-grid__container--shadow-as-outline);
48
+ border: none;
49
+ outline: none;
50
+ }
51
+
41
52
  .grid-header__popover {
42
53
  position: relative;
43
54
  top: var(--space--sm, 16px);
@@ -40,6 +40,7 @@ export class EzGrid {
40
40
  this.enableGridInsert = false;
41
41
  this.enableContinuousInsert = true;
42
42
  this.enableLockManger = true;
43
+ this.boxShadow = true;
43
44
  }
44
45
  /**
45
46
  * Aplica a definição de colunas.
@@ -498,7 +499,7 @@ export class EzGrid {
498
499
  this._gridController.setAutoFocus(this.autoFocus);
499
500
  this._gridController.setEnableGridInsert(this.enableGridInsert);
500
501
  this._gridController.setEnableContinuousInsert(this.enableContinuousInsert);
501
- if (this.dataUnit && this._showSelectionCounter) {
502
+ if (this.dataUnit) {
502
503
  this.setSelection(this.dataUnit.getSelectionInfo());
503
504
  }
504
505
  }
@@ -516,9 +517,9 @@ export class EzGrid {
516
517
  }
517
518
  render() {
518
519
  var _a;
519
- return (h(Host, { "no-header": this.hideHeader() }, h("div", { class: "grid__container ez-grid", ref: elem => (this._container = elem) }), h("div", { class: "ez-box ez-box--shadow ez-padding--small grid-header" }, h("filter-column", { class: "grid-header__popover", noHeaderTaskBar: !this._hasLeftButtons, dataSource: this.getDataSource(), dataUnit: this.dataUnit, gridHeaderHidden: this.hideHeader(), ref: (element) => (this._filterColumn = element) }), h("div", { class: "grid-header__position" }, h("div", { class: `grid-header__container grid-header__left-container ${this.resolveLeftHeaderClass()}` }, h("slot", { name: "leftButtons" })), this.getPaginationControl())), h("div", { ref: (ref) => (this._gridSelectionCounter = ref), class: `grid__selection-counter ez-elevation--4
520
+ return (h(Host, { "no-header": this.hideHeader() }, h("div", { class: `grid__container ${this.boxShadow ? '' : 'box-outline'} ez-grid`, ref: elem => (this._container = elem) }), h("div", { class: `ez-box ${this.boxShadow ? 'ez-box--shadow-xsmall' : 'ez-box--outline'} ez-padding--small grid-header` }, h("filter-column", { class: "grid-header__popover", noHeaderTaskBar: !this._hasLeftButtons, dataSource: this.getDataSource(), dataUnit: this.dataUnit, gridHeaderHidden: this.hideHeader(), ref: (element) => (this._filterColumn = element) }), h("div", { class: "grid-header__position" }, h("div", { class: `grid-header__container grid-header__left-container ${this.resolveLeftHeaderClass()}` }, h("slot", { name: "leftButtons" })), this.getPaginationControl())), h("div", { ref: (ref) => (this._gridSelectionCounter = ref), class: `grid__selection-counter ez-elevation--4
520
521
  ${this._showSelectionCounter ? 'grid__selection-counter--opened' : ''}
521
- ` }, h(SelectionCounter, { selectionCount: this._selectionCount, currentPageSelected: this._currentPageSelected, paginationInfo: this._paginationInfo, canSelectAll: (_a = this.selectionToastConfig) === null || _a === void 0 ? void 0 : _a.canSelectAll, allRecordSelected: this._isAllSelection, onSelectAll: () => this.onSelectAllRecords(), onSelectPage: () => this.onSelectPageRecords(), onClearAll: () => this.onClearSelectedRecords(), onClose: () => this.onClearSelectedRecords() })), h("div", { class: "grid__footer" }, h("slot", { name: "footer" }))));
522
+ ` }, h(SelectionCounter, { selectionCount: this._selectionCount, currentPageSelected: this._currentPageSelected, paginationInfo: this._paginationInfo, canSelectAll: (_a = this.selectionToastConfig) === null || _a === void 0 ? void 0 : _a.canSelectAll, allRecordSelected: this._isAllSelection, onSelectAll: () => this.onSelectAllRecords(), onSelectPage: () => this.onSelectPageRecords(), onClearAll: () => this.onClearSelectedRecords(), onClose: () => (this._showSelectionCounter = false) })), h("div", { class: "grid__footer" }, h("slot", { name: "footer" }))));
522
523
  }
523
524
  static get is() { return "ez-grid"; }
524
525
  static get encapsulation() { return "scoped"; }
@@ -818,6 +819,24 @@ export class EzGrid {
818
819
  "attribute": "enable-lock-manger",
819
820
  "reflect": false,
820
821
  "defaultValue": "true"
822
+ },
823
+ "boxShadow": {
824
+ "type": "boolean",
825
+ "mutable": false,
826
+ "complexType": {
827
+ "original": "boolean",
828
+ "resolved": "boolean",
829
+ "references": {}
830
+ },
831
+ "required": false,
832
+ "optional": true,
833
+ "docs": {
834
+ "tags": [],
835
+ "text": "Altera visualmente as sombras e bordas do componente\nQuando true, aplica o padr\u00E3o de sombras ao componente (Utilizar quando for o elemento principal do layout)\nQuando false, aplica o padr\u00E3o de outline ao componente (Utilizar quando estiver contido em outro elemento como um painel ou pop-up)"
836
+ },
837
+ "attribute": "box-shadow",
838
+ "reflect": false,
839
+ "defaultValue": "true"
821
840
  }
822
841
  };
823
842
  }
@@ -13,7 +13,6 @@
13
13
 
14
14
  .multi-selection__content-options {
15
15
  position: relative;
16
- top: -12px;
17
16
  left: -4px;
18
17
  }
19
18
 
@@ -17,6 +17,7 @@ export class EzNumberInput {
17
17
  this.prettyPrecision = undefined;
18
18
  this.mode = "regular";
19
19
  this.autoFocus = false;
20
+ this.noMargin = false;
20
21
  }
21
22
  /**
22
23
  * Aplica o foco no campo.
@@ -175,7 +176,7 @@ export class EzNumberInput {
175
176
  if (this.allowNegative) {
176
177
  restrict += '-';
177
178
  }
178
- return (h("ez-text-input", { class: "number__input", "data-element-id": ElementIDUtils.getInternalIDInfo("textInput"), ref: elem => this._textInput = elem, "data-slave-mode": "true", label: this.label, onBlur: () => this.handleBlur(), onInput: () => this.handleInput(), restrict: restrict, enabled: this.enabled, errorMessage: this.errorMessage, mode: this.mode, canShowError: this.canShowError, value: this._value }));
179
+ return (h("ez-text-input", { class: "number__input", "data-element-id": ElementIDUtils.getInternalIDInfo("textInput"), ref: elem => this._textInput = elem, "data-slave-mode": "true", label: this.label, onBlur: () => this.handleBlur(), onInput: () => this.handleInput(), restrict: restrict, enabled: this.enabled, errorMessage: this.errorMessage, mode: this.mode, canShowError: this.canShowError, value: this._value, noMargin: this.noMargin }));
179
180
  }
180
181
  static get is() { return "ez-number-input"; }
181
182
  static get encapsulation() { return "shadow"; }
@@ -365,6 +366,24 @@ export class EzNumberInput {
365
366
  "attribute": "auto-focus",
366
367
  "reflect": false,
367
368
  "defaultValue": "false"
369
+ },
370
+ "noMargin": {
371
+ "type": "boolean",
372
+ "mutable": false,
373
+ "complexType": {
374
+ "original": "boolean",
375
+ "resolved": "boolean",
376
+ "references": {}
377
+ },
378
+ "required": false,
379
+ "optional": false,
380
+ "docs": {
381
+ "tags": [],
382
+ "text": "Quando verdadeiro, o campo n\u00E3o ter\u00E1 espa\u00E7amento externo."
383
+ },
384
+ "attribute": "no-margin",
385
+ "reflect": false,
386
+ "defaultValue": "false"
368
387
  }
369
388
  };
370
389
  }
@@ -35,6 +35,7 @@ export class EzSearch {
35
35
  this.listOptionsPosition = undefined;
36
36
  this.isTextSearch = false;
37
37
  this.ignoreLimitCharsToSearch = false;
38
+ this.noMargin = false;
38
39
  this.options = undefined;
39
40
  this.suppressSearch = false;
40
41
  this.ensureClearButtonVisible = false;
@@ -199,7 +200,7 @@ export class EzSearch {
199
200
  return this.listOptionsPosition;
200
201
  }
201
202
  return {
202
- verticalPosition: (this.errorMessage || !this.canShowError || this.mode === "slim") ? 6 : -13
203
+ verticalPosition: 6
203
204
  };
204
205
  }
205
206
  isDifferentValues(firstValue, secondValue) {
@@ -721,7 +722,7 @@ export class EzSearch {
721
722
  render() {
722
723
  var _a;
723
724
  ElementIDUtils.addIDInfoIfNotExists(this.el, 'input');
724
- return (h(Host, null, h("ez-text-input", { "data-element-id": ElementIDUtils.getInternalIDInfo("textInput"), class: this.suppressSearch ? "suppressed-search-input" : "", ref: elem => this._textInput = elem, "data-slave-mode": "true", enabled: this.enabled && !this.suppressSearch, onInput: event => this.onTextInputChangeHandler(event), onFocusout: () => this.onTextInputFocusOutHandler(), onKeyDown: event => this.keyDownHandler(event), label: this.label, canShowError: this.canShowError, errorMessage: this.errorMessage, mode: this.mode }, h("button", { class: "btn", slot: "leftIcon", disabled: !this.enabled, tabindex: -1, onClick: () => this.handlerIconClick() }, this.canShowLoadSpinDescription() ? h("div", { class: "message__loading" }) : h("ez-icon", { iconName: "search" })), (((_a = this._textInput) === null || _a === void 0 ? void 0 : _a.value) && (this._criteria || this.value) || this.ensureClearButtonVisible)
725
+ return (h(Host, null, h("ez-text-input", { "data-element-id": ElementIDUtils.getInternalIDInfo("textInput"), class: this.suppressSearch ? "suppressed-search-input" : "", ref: elem => this._textInput = elem, "data-slave-mode": "true", enabled: this.enabled && !this.suppressSearch, onInput: event => this.onTextInputChangeHandler(event), onFocusout: () => this.onTextInputFocusOutHandler(), onKeyDown: event => this.keyDownHandler(event), label: this.label, canShowError: this.canShowError, errorMessage: this.errorMessage, mode: this.mode, noMargin: this.noMargin }, h("button", { class: "btn", slot: "leftIcon", disabled: !this.enabled, tabindex: -1, onClick: () => this.handlerIconClick() }, this.canShowLoadSpinDescription() ? h("div", { class: "message__loading" }) : h("ez-icon", { iconName: "search" })), (((_a = this._textInput) === null || _a === void 0 ? void 0 : _a.value) && (this._criteria || this.value) || this.ensureClearButtonVisible)
725
726
  ? h("button", { class: "btn btn__close", slot: "rightIcon", disabled: !this.enabled, tabindex: -1, onClick: () => this.clearSearch() }, h("ez-icon", { iconName: "close" }))
726
727
  : undefined), h("section", { class: "list-container", ref: elem => this._listContainer = elem }, h("div", { class: "list-wrapper", ref: elem => this._listWrapper = elem }, h("ul", { class: "list-options", ref: elem => this._optionsList = elem }, !this._showLoading
727
728
  && this._visibleOptions.length === 0
@@ -1025,6 +1026,24 @@ export class EzSearch {
1025
1026
  "reflect": false,
1026
1027
  "defaultValue": "false"
1027
1028
  },
1029
+ "noMargin": {
1030
+ "type": "boolean",
1031
+ "mutable": false,
1032
+ "complexType": {
1033
+ "original": "boolean",
1034
+ "resolved": "boolean",
1035
+ "references": {}
1036
+ },
1037
+ "required": false,
1038
+ "optional": false,
1039
+ "docs": {
1040
+ "tags": [],
1041
+ "text": "Quando verdadeiro, o campo n\u00E3o ter\u00E1 espa\u00E7amento externo."
1042
+ },
1043
+ "attribute": "no-margin",
1044
+ "reflect": false,
1045
+ "defaultValue": "false"
1046
+ },
1028
1047
  "options": {
1029
1048
  "type": "unknown",
1030
1049
  "mutable": true,
@@ -24,6 +24,8 @@
24
24
  --ez-text-input--font-weight: var(--text-weight--medium, 400);
25
25
  /*@doc Define a cor da fonte do input e label do componente.*/
26
26
  --ez-text-input--color: var(--title--primary, #2B3A54);
27
+ /*@doc Define a margem abaixo do componente.*/
28
+ --ez-text-input__margin-bottom: var(--space--small);
27
29
 
28
30
  /* input */
29
31
  /*@doc Define a cor de fundo do input.*/
@@ -54,13 +56,9 @@
54
56
  --ez-text-input__placeholder--color: var(--text--secondary, #a2abb9);
55
57
 
56
58
 
57
- /* message box */
58
- /*@doc Define o tamanho da fonte da mensagem abaixo do input.*/
59
- --ez-text-input__message_box--font-size: var(--text--extra-small, 10px);
60
- /*@doc Define a cor da fonte da mensagem quando info.*/
61
- --ez-text-input__message_box--info--color: var(--color--success, #22085d);
59
+ /* tooltip icon */
62
60
  /*@doc Define a cor da fonte da mensagem quando erro.*/
63
- --ez-text-input__message_box--error--color: var(--color-alert--error-800,#BD0025);
61
+ --ez-text-input__tooltip_icon--error--color: var(--color-alert--error-800,#BD0025);
64
62
 
65
63
  /* label */
66
64
  /*@doc Define o posicionamento do label.*/
@@ -77,6 +75,17 @@
77
75
  /*@doc Define a cor do ícone do slot quando disabled.*/
78
76
  --ez-text-input__input--disabled--focus--icon-color: var(--text--primary, #626E82);
79
77
 
78
+ /*Error icon*/
79
+ /*@doc Define o espaçamento lateral do icone de erro.*/
80
+ --ez-text-input__tooltip-icon--spacing: var(--space--large);
81
+ /*@doc Define a largura do icone de erro.*/
82
+ --ez-text-input__tooltip-icon---width: var(--space--large);
83
+ /*@doc Define a margem horizontal do icone de erro.*/
84
+ --ez-text-input__tooltip-icon---horizontal-margin: var(--space--medium, 12px);
85
+ /*@doc Define a margem vertical do icone de erro.*/
86
+ --ez-text-input__tooltip-icon---vertical-margin: 10px;
87
+
88
+
80
89
 
81
90
  /***************
82
91
  host style
@@ -111,6 +120,11 @@ input {
111
120
  color: var(--ez-text-input--color);
112
121
  font-weight: var(--ez-text-input--font-weight);
113
122
  padding: var(--ez-text-input__input--padding);
123
+ margin-bottom: var(--ez-text-input__margin-bottom);
124
+ }
125
+
126
+ input.no--margin {
127
+ --ez-text-input__margin-bottom: 0;
114
128
  }
115
129
 
116
130
  input:disabled {
@@ -130,14 +144,21 @@ input:focus {
130
144
  input.icon--left {
131
145
  padding-left: var(--ez-text-input__icon--width);
132
146
  }
147
+ input.icon--left.hasError {
148
+ padding-right: var(--ez-text-input__icon--width);
149
+ }
133
150
 
134
151
  input.icon--right {
135
152
  padding-right: var(--ez-text-input__icon--width);
136
153
  }
154
+ input.icon--right.hasError {
155
+ padding-right: calc(var(--ez-text-input__icon--width) + var(--ez-text-input__tooltip-icon--spacing));
156
+ }
137
157
 
138
158
  input.hasError {
139
159
  color: var(--ez-text-input--color);
140
160
  border-color: var(--ez-text-input__input--error--border-color);
161
+ padding-right: calc(var(--ez-text-input__tooltip-icon---width) + (2*var(--ez-text-input__tooltip-icon---horizontal-margin)));
141
162
  }
142
163
 
143
164
  input:disabled.hasError {
@@ -153,25 +174,9 @@ input:read-only {
153
174
  cursor: not-allowed;
154
175
  }
155
176
 
156
- .message-box {
157
- /*private*/
158
- min-height: 14px;
159
- min-width: 100%;
160
- margin-top: 3px;
161
- line-height: 10px;
162
- overflow: hidden;
163
- text-overflow: ellipsis;
164
- white-space: nowrap;
165
-
166
- /*public*/
167
- font-family: var(--ez-text-input--font-family);
168
- font-size: var(--ez-text-input__message_box--font-size);
169
- color: var(--ez-text-input__message_box--info--color);
170
- }
171
-
172
177
  .hasError {
173
178
  /*public*/
174
- color: var(--ez-text-input__message_box--error--color);
179
+ color: var(--ez-text-input__tooltip_icon--error--color);
175
180
  }
176
181
 
177
182
  .input__label {
@@ -196,7 +201,9 @@ input:read-only {
196
201
  left: var(--ez-text-input__label--padding-left);
197
202
  padding-right: var(--ez-text-input__label--padding-right);
198
203
  }
199
-
204
+ .input__label.hasError {
205
+ width: calc(100% - 2*(var(--ez-text-input__tooltip-icon--spacing)));
206
+ }
200
207
  .input__label--floated {
201
208
  font-family: var(--ez-text-input--font-family);
202
209
  font-size: var(--text--extra-small);
@@ -217,17 +224,25 @@ input:read-only {
217
224
  width: calc(100% - var(--ez-text-input__icon--width));
218
225
  }
219
226
 
227
+ .input__label--left.hasError {
228
+ width: calc(100% - var(--ez-text-input__icon--width) - var(--ez-text-input__tooltip-icon--spacing));
229
+ }
230
+
220
231
  .input__label--right {
221
232
  /*public*/
222
233
  right: var(--ez-text-input__icon--width);
223
234
  width: calc(100% - var(--ez-text-input__icon--width));
224
235
  }
236
+ .input__label--right.hasError {
237
+ width: calc(100% - var(--ez-text-input__icon--width) - var(--ez-text-input__tooltip-icon--spacing));
238
+ }
225
239
 
226
240
  /* ISSO TA ERRADO CRIAR INPUT__LABEL--BOTH */
227
241
  .input__label--left.input__label--right {
228
242
  left: calc(var(--ez-text-input__icon--width) + 2px);
229
243
  /*borda*/
230
244
  width: calc(100% - var(--ez-text-input__icon--width) * 2);
245
+
231
246
  }
232
247
 
233
248
  .input--with--label {
@@ -274,4 +289,28 @@ input.input__slim--noborder {
274
289
  border: 0 none;
275
290
  outline: 0;
276
291
  background: var(--ez-text-input__input--noborder-color);
292
+ }
293
+
294
+ ez-icon.tooltip-icon {
295
+ position: absolute;
296
+ display: flex;
297
+ align-items: center;
298
+ justify-content: center;
299
+ overflow: hidden;
300
+ width: var(--ez-text-input__tooltip-icon---width);
301
+ height: 22px;
302
+ margin: var(--ez-text-input__tooltip-icon---vertical-margin) var(--ez-text-input__tooltip-icon---horizontal-margin);
303
+ top: 0;
304
+ right: 0;
305
+ z-index: var(--elevation--4);
306
+ border-radius: var(--ez-text-input--border-radius);
307
+
308
+
309
+ }
310
+ ez-icon.tooltip-icon.rightIconSlot{
311
+ right: var(--ez-text-input__tooltip-icon--spacing);
312
+ }
313
+
314
+ ez-icon.tooltip-icon.hasError{
315
+ --ez-icon--color: var(--ez-text-input__tooltip_icon--error--color);
277
316
  }
@@ -15,18 +15,20 @@ export class EzTextInput {
15
15
  this.noBorder = false;
16
16
  this.password = false;
17
17
  this.autoFocus = false;
18
+ this.noMargin = false;
19
+ this.hasRightSlotContent = false;
18
20
  }
19
21
  observeErrorMessage() {
20
22
  if (this._inputElem) {
21
23
  this.isInvalid().then((hasError) => {
22
- var _a, _b;
24
+ var _a;
23
25
  if (hasError) {
24
26
  this._inputElem.classList.add("hasError");
25
- (_a = this._messageBoxElem) === null || _a === void 0 ? void 0 : _a.classList.add("hasError");
27
+ (_a = this._tooltipPositioningObserver) === null || _a === void 0 ? void 0 : _a.observe(this._inputElem);
26
28
  }
27
29
  else {
28
30
  this._inputElem.classList.remove("hasError");
29
- (_b = this._messageBoxElem) === null || _b === void 0 ? void 0 : _b.classList.remove("hasError");
31
+ this.removeGlobalTooltip();
30
32
  }
31
33
  });
32
34
  }
@@ -190,8 +192,10 @@ export class EzTextInput {
190
192
  this.controlChangeValue();
191
193
  }
192
194
  handleSlotChange(ev) {
195
+ var _a;
193
196
  const slot = ev.target;
194
197
  const content = slot.assignedElements()[0];
198
+ this.hasRightSlotContent = false;
195
199
  if (content) {
196
200
  content.style.position = "absolute";
197
201
  content.style.display = "flex";
@@ -217,6 +221,10 @@ export class EzTextInput {
217
221
  if (this._labelElem) {
218
222
  this._labelElem.classList.add("input__label--right");
219
223
  }
224
+ if (this._tooltipIconElem) {
225
+ this._tooltipIconElem.classList.add("rightIconSlot");
226
+ }
227
+ this.hasRightSlotContent = ((_a = content.children) === null || _a === void 0 ? void 0 : _a.length) > 0;
220
228
  }
221
229
  slot.name && ElementIDUtils.addIDInfo(content, slot.name);
222
230
  }
@@ -228,26 +236,39 @@ export class EzTextInput {
228
236
  }
229
237
  this.adjustColorContentSlot("var(--ez-text-input__input--focus--icon-color)");
230
238
  }
239
+ renderGlobalTooltip() {
240
+ const tooltip = document.createElement('ez-tooltip');
241
+ tooltip.errorMessage = this.errorMessage;
242
+ tooltip.anchoringElement = this._tooltipIconElem;
243
+ document.body.appendChild(tooltip);
244
+ this._tooltipElem = tooltip;
245
+ }
246
+ removeGlobalTooltip() {
247
+ var _a;
248
+ if (!this._tooltipElem)
249
+ return;
250
+ this._tooltipElem.remove();
251
+ this._tooltipElem = undefined;
252
+ (_a = this._tooltipPositioningObserver) === null || _a === void 0 ? void 0 : _a.unobserve(this._inputElem);
253
+ }
254
+ createTooltipPositioningObserver() {
255
+ const observer = new ResizeObserver(() => {
256
+ if (!this._tooltipElem)
257
+ return;
258
+ if (!this._tooltipIconElem)
259
+ return;
260
+ clearTimeout(this._observerDebounceTimeout);
261
+ this._observerDebounceTimeout = setTimeout(async () => {
262
+ if (this._tooltipElem) {
263
+ await this._tooltipElem.positionTooltip();
264
+ }
265
+ }, 200);
266
+ });
267
+ this._tooltipPositioningObserver = observer;
268
+ }
231
269
  //---------------------------------------------
232
270
  // Lifecycle web component
233
271
  //---------------------------------------------
234
- componentDidLoad() {
235
- this.observeErrorMessage();
236
- this.observeMask();
237
- this.adjustFloatingLabel();
238
- this.adjustBorderInput();
239
- if (this.autoFocus) {
240
- requestAnimationFrame(() => {
241
- this.setFocus({ selectText: true });
242
- });
243
- }
244
- this._inputElem.addEventListener('focus', () => {
245
- this._inputElem.setSelectionRange(0, this._inputElem.value.length);
246
- });
247
- if (this._inputElem) {
248
- applyEllipsisToInput(this._inputElem);
249
- }
250
- }
251
272
  componentWillLoad() {
252
273
  this.observeMask();
253
274
  if (this.value) {
@@ -270,12 +291,52 @@ export class EzTextInput {
270
291
  }
271
292
  }
272
293
  }
294
+ componentDidLoad() {
295
+ var _a, _b;
296
+ this.observeErrorMessage();
297
+ this.observeMask();
298
+ this.adjustFloatingLabel();
299
+ this.adjustBorderInput();
300
+ if (this.autoFocus) {
301
+ requestAnimationFrame(() => {
302
+ this.setFocus({ selectText: true });
303
+ });
304
+ }
305
+ (_a = this._inputElem) === null || _a === void 0 ? void 0 : _a.addEventListener('focus', () => {
306
+ var _a;
307
+ this._inputElem.setSelectionRange(0, (_a = this._inputElem) === null || _a === void 0 ? void 0 : _a.value.length);
308
+ });
309
+ this.createTooltipPositioningObserver();
310
+ if (this._inputElem) {
311
+ (_b = this._tooltipPositioningObserver) === null || _b === void 0 ? void 0 : _b.observe(this._inputElem);
312
+ applyEllipsisToInput(this._inputElem);
313
+ }
314
+ }
315
+ componentDidRender() {
316
+ if (this._tooltipIconElem && !this._tooltipElem) {
317
+ this.renderGlobalTooltip();
318
+ }
319
+ }
320
+ componentDidUpdate() {
321
+ if (this._tooltipIconElem && this._tooltipElem) {
322
+ this._tooltipElem.positionTooltip();
323
+ }
324
+ }
325
+ disconnectedCallback() {
326
+ if (this._tooltipPositioningObserver) {
327
+ this._tooltipPositioningObserver.disconnect();
328
+ }
329
+ if (this._observerDebounceTimeout) {
330
+ clearTimeout(this._observerDebounceTimeout);
331
+ }
332
+ this.removeGlobalTooltip();
333
+ }
273
334
  render() {
274
335
  ElementIDUtils.addIDInfoIfNotExists(this._hostElement, 'input');
275
336
  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" ?
276
- 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)
277
- : 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" &&
278
- h("span", { class: "message-box", ref: (el) => this._messageBoxElem = el, title: this.errorMessage, "data-element-id": ElementIDUtils.getInternalIDInfo("message_box") }, this.errorMessage)));
337
+ h("label", { ref: (el) => this._labelElem = el, class: `${this.enabled ? "input__label" : "input__label input__label--disabled"} ${this.errorMessage ? "hasError" : ""}`, onClick: () => this._inputElem.focus(), title: this.label }, this.label)
338
+ : 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" : ""} ${this.noMargin ? "no--margin" : ""}`, 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(); } }), this.canShowError && this.mode != "slim" && this.errorMessage &&
339
+ h("ez-icon", { class: `tooltip-icon ${this.errorMessage ? "hasError" : ""} ${this.hasRightSlotContent ? "rightIconSlot" : ""}`, "data-element-id": ElementIDUtils.getInternalIDInfo("tooltip-icon"), ref: (el) => this._tooltipIconElem = el, iconName: "alert-circle" }), h("slot", { name: "rightIcon", onSlotchange: (ev) => { this.handleSlotChange(ev); } }, " ")));
279
340
  }
280
341
  static get is() { return "ez-text-input"; }
281
342
  static get encapsulation() { return "shadow"; }
@@ -501,9 +562,32 @@ export class EzTextInput {
501
562
  "attribute": "auto-focus",
502
563
  "reflect": false,
503
564
  "defaultValue": "false"
565
+ },
566
+ "noMargin": {
567
+ "type": "boolean",
568
+ "mutable": false,
569
+ "complexType": {
570
+ "original": "boolean",
571
+ "resolved": "boolean",
572
+ "references": {}
573
+ },
574
+ "required": false,
575
+ "optional": false,
576
+ "docs": {
577
+ "tags": [],
578
+ "text": "Quando verdadeiro, o campo n\u00E3o ter\u00E1 espa\u00E7amento externo."
579
+ },
580
+ "attribute": "no-margin",
581
+ "reflect": false,
582
+ "defaultValue": "false"
504
583
  }
505
584
  };
506
585
  }
586
+ static get states() {
587
+ return {
588
+ "hasRightSlotContent": {}
589
+ };
590
+ }
507
591
  static get events() {
508
592
  return [{
509
593
  "method": "ezChange",
@@ -11,6 +11,7 @@ export class EzTimeInput {
11
11
  this.mode = "regular";
12
12
  this.canShowError = true;
13
13
  this.autoFocus = false;
14
+ this.noMargin = false;
14
15
  }
15
16
  observeErrorMessage() {
16
17
  var _a;
@@ -148,7 +149,7 @@ export class EzTimeInput {
148
149
  }
149
150
  render() {
150
151
  ElementIDUtils.addIDInfoIfNotExists(this._elem, 'input');
151
- return (h(Host, null, h("ez-text-input", { class: "time__input", "data-element-id": ElementIDUtils.getInternalIDInfo("textInput"), ref: (el) => this._textInput = el, "data-slave-mode": "true", value: this._viewValue, enabled: this.enabled, label: this.label, restrict: "0123456789:", onBlur: () => this.handleBlur(), onInput: () => this.handleInput(), errorMessage: this.errorMessage, mode: this.mode, canShowError: this.canShowError }, h("ez-icon", { slot: "leftIcon", iconName: "timer-outline" }))));
152
+ return (h(Host, null, h("ez-text-input", { class: "time__input", "data-element-id": ElementIDUtils.getInternalIDInfo("textInput"), ref: (el) => this._textInput = el, "data-slave-mode": "true", value: this._viewValue, enabled: this.enabled, label: this.label, restrict: "0123456789:", onBlur: () => this.handleBlur(), onInput: () => this.handleInput(), errorMessage: this.errorMessage, mode: this.mode, canShowError: this.canShowError, noMargin: this.noMargin }, h("ez-icon", { slot: "leftIcon", iconName: "timer-outline" }))));
152
153
  }
153
154
  static get is() { return "ez-time-input"; }
154
155
  static get encapsulation() { return "shadow"; }
@@ -305,6 +306,24 @@ export class EzTimeInput {
305
306
  "attribute": "auto-focus",
306
307
  "reflect": false,
307
308
  "defaultValue": "false"
309
+ },
310
+ "noMargin": {
311
+ "type": "boolean",
312
+ "mutable": false,
313
+ "complexType": {
314
+ "original": "boolean",
315
+ "resolved": "boolean",
316
+ "references": {}
317
+ },
318
+ "required": false,
319
+ "optional": false,
320
+ "docs": {
321
+ "tags": [],
322
+ "text": "Quando verdadeiro, o campo n\u00E3o ter\u00E1 espa\u00E7amento."
323
+ },
324
+ "attribute": "no-margin",
325
+ "reflect": false,
326
+ "defaultValue": "false"
308
327
  }
309
328
  };
310
329
  }
@@ -0,0 +1,20 @@
1
+ :host {
2
+ position: absolute;
3
+ z-index: var(--elevation--24);
4
+ background: var(--color-alert--error-800, #BD0025);
5
+ padding: var(--space--extra-small, 3px) var(--space--small, 6px);
6
+ color: var(--color--inverted);
7
+ border-radius: var(--border--radius-small);
8
+ display: none; /* Initially hide the tooltip */
9
+ transform: translateX(calc(-50% + 12px)) translateY(8px);
10
+ }
11
+
12
+ .tooltip::after{
13
+ --triangle-size: 8px;
14
+ content: '';
15
+ right: 50%;
16
+ border: var(--triangle-size) solid transparent;
17
+ border-bottom-color: var(--color-alert--error-800, #BD0025);
18
+ position: absolute;
19
+ transform: translateX(calc(50%)) translateY(-100%);
20
+ }