@sankhyalabs/ezui 5.22.0-dev.10 → 5.22.0-dev.100

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 (357) hide show
  1. package/dist/cjs/{CSSVarsUtils-10c9d5b4.js → CSSVarsUtils-f20973d1.js} +1 -0
  2. package/dist/cjs/DataBinder-e92314c2.js +445 -0
  3. package/dist/cjs/FocusResolver-885f2173.js +35 -0
  4. package/dist/cjs/ez-actions-button.cjs.entry.js +4 -3
  5. package/dist/cjs/ez-badge.cjs.entry.js +14 -2
  6. package/dist/cjs/ez-button.cjs.entry.js +11 -5
  7. package/dist/cjs/ez-card-item_2.cjs.entry.js +1485 -0
  8. package/dist/cjs/ez-check.cjs.entry.js +1 -1
  9. package/dist/cjs/ez-chip.cjs.entry.js +1 -1
  10. package/dist/cjs/ez-collapsible-box.cjs.entry.js +1 -1
  11. package/dist/cjs/ez-combo-box-list_3.cjs.entry.js +387 -0
  12. package/dist/cjs/ez-combo-box.cjs.entry.js +82 -155
  13. package/dist/cjs/ez-date-input.cjs.entry.js +15 -19
  14. package/dist/cjs/ez-date-time-input.cjs.entry.js +14 -20
  15. package/dist/cjs/ez-dialog.cjs.entry.js +14 -7
  16. package/dist/cjs/ez-double-list.cjs.entry.js +287 -0
  17. package/dist/cjs/{ez-dropdown.cjs.entry.js → ez-dropdown_2.cjs.entry.js} +75 -8
  18. package/dist/cjs/ez-filter-input.cjs.entry.js +129 -0
  19. package/dist/cjs/ez-form-view.cjs.entry.js +26 -20
  20. package/dist/cjs/ez-form.cjs.entry.js +6 -325
  21. package/dist/cjs/ez-grid.cjs.entry.js +15067 -69836
  22. package/dist/cjs/ez-icon.cjs.entry.js +1 -1
  23. package/dist/cjs/ez-list.cjs.entry.js +258 -211
  24. package/dist/cjs/ez-modal-container.cjs.entry.js +2 -2
  25. package/dist/cjs/ez-modal.cjs.entry.js +12 -3
  26. package/dist/cjs/ez-multi-selection-list.cjs.entry.js +2 -2
  27. package/dist/cjs/ez-number-input.cjs.entry.js +15 -3
  28. package/dist/cjs/ez-popover-plus_3.cjs.entry.js +198 -0
  29. package/dist/cjs/ez-popup.cjs.entry.js +24 -2
  30. package/dist/cjs/ez-scroller_2.cjs.entry.js +3 -3
  31. package/dist/cjs/ez-search.cjs.entry.js +119 -188
  32. package/dist/cjs/ez-sidebar-navigator.cjs.entry.js +1 -1
  33. package/dist/cjs/ez-split-button.cjs.entry.js +2 -2
  34. package/dist/cjs/ez-split-item.cjs.entry.js +6 -3
  35. package/dist/cjs/ez-split-panel.cjs.entry.js +68 -6
  36. package/dist/cjs/ez-text-area.cjs.entry.js +68 -6
  37. package/dist/cjs/ez-text-input.cjs.entry.js +152 -16
  38. package/dist/cjs/ez-time-input.cjs.entry.js +7 -1
  39. package/dist/cjs/ez-tooltip.cjs.entry.js +55 -0
  40. package/dist/cjs/ez-tree.cjs.entry.js +5 -4
  41. package/dist/cjs/ezListHelper-0d3970b4.js +90 -0
  42. package/dist/cjs/ezui.cjs.js +1 -1
  43. package/dist/cjs/filter-column.cjs.entry.js +10 -47
  44. package/dist/cjs/index-a7b0c73d.js +22 -10
  45. package/dist/cjs/loader.cjs.js +1 -1
  46. package/dist/cjs/searchFormatters-b7e1ed1e.js +23 -0
  47. package/dist/collection/collection-manifest.json +8 -2
  48. package/dist/collection/components/ez-actions-button/ez-actions-button.js +3 -2
  49. package/dist/collection/components/ez-badge/ez-badge.css +12 -1
  50. package/dist/collection/components/ez-badge/ez-badge.js +31 -1
  51. package/dist/collection/components/ez-button/ez-button.css +24 -14
  52. package/dist/collection/components/ez-button/ez-button.js +12 -6
  53. package/dist/collection/components/ez-card-item/ez-card-item.css +58 -10
  54. package/dist/collection/components/ez-card-item/ez-card-item.js +30 -3
  55. package/dist/collection/components/ez-check/ez-check.css +1 -6
  56. package/dist/collection/components/ez-chip/ez-chip.css +5 -1
  57. package/dist/collection/components/ez-collapsible-box/ez-collapsible-box.css +2 -2
  58. package/dist/collection/components/ez-combo-box/ez-combo-box-list/ez-combo-box-list.css +205 -0
  59. package/dist/collection/components/ez-combo-box/ez-combo-box-list/ez-combo-box-list.js +426 -0
  60. package/dist/collection/components/ez-combo-box/ez-combo-box.css +8 -246
  61. package/dist/collection/components/ez-combo-box/ez-combo-box.js +129 -166
  62. package/dist/collection/components/ez-date-input/ez-date-input.css +1 -1
  63. package/dist/collection/components/ez-date-input/ez-date-input.js +40 -19
  64. package/dist/collection/components/ez-date-time-input/ez-date-time-input.css +1 -1
  65. package/dist/collection/components/ez-date-time-input/ez-date-time-input.js +39 -20
  66. package/dist/collection/components/ez-dialog/ez-dialog.css +3 -3
  67. package/dist/collection/components/ez-dialog/ez-dialog.js +14 -16
  68. package/dist/collection/components/ez-double-list/doubleListHelper.js +82 -0
  69. package/dist/collection/components/ez-double-list/ez-double-list.css +62 -0
  70. package/dist/collection/components/ez-double-list/ez-double-list.js +440 -0
  71. package/dist/collection/components/ez-dropdown/ez-dropdown.js +33 -8
  72. package/dist/collection/components/ez-filter-input/ez-filter-input.css +1 -1
  73. package/dist/collection/components/ez-filter-input/ez-filter-input.js +35 -4
  74. package/dist/collection/components/ez-form/ez-form.js +1 -0
  75. package/dist/collection/components/ez-form-view/custom-input/ez-custom-form-input.js +49 -6
  76. package/dist/collection/components/ez-form-view/ez-form-view.css +5 -2
  77. package/dist/collection/components/ez-form-view/fieldbuilder/FieldBuilder.js +2 -1
  78. package/dist/collection/components/ez-form-view/fieldbuilder/templates/CheckBox.tpl.js +1 -1
  79. package/dist/collection/components/ez-form-view/fieldbuilder/templates/ComboBox.tpl.js +1 -1
  80. package/dist/collection/components/ez-form-view/fieldbuilder/templates/DateInput.tpl.js +8 -4
  81. package/dist/collection/components/ez-form-view/fieldbuilder/templates/FileInput.tpl.js +1 -1
  82. package/dist/collection/components/ez-form-view/fieldbuilder/templates/NumberInput.tpl.js +1 -1
  83. package/dist/collection/components/ez-form-view/fieldbuilder/templates/SearchInput.tpl.js +1 -1
  84. package/dist/collection/components/ez-form-view/fieldbuilder/templates/TextArea.tpl.js +1 -1
  85. package/dist/collection/components/ez-form-view/fieldbuilder/templates/TextInput.tpl.js +2 -2
  86. package/dist/collection/components/ez-grid/controller/ag-grid/AgGridController.js +297 -63
  87. package/dist/collection/components/ez-grid/controller/ag-grid/DataSource.js +151 -31
  88. package/dist/collection/components/ez-grid/controller/ag-grid/DataSourceInterceptor.js +2 -1
  89. package/dist/collection/components/ez-grid/controller/ag-grid/GridEditionManager.js +219 -42
  90. package/dist/collection/components/ez-grid/controller/ag-grid/components/EzGridCustomCellEditor.js +16 -0
  91. package/dist/collection/components/ez-grid/controller/ag-grid/components/EzGridCustomHeader.js +1 -1
  92. package/dist/collection/components/ez-grid/controller/ag-grid/editor/EzCellEditor.js +8 -0
  93. package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/ComboBox.tpl.js +2 -0
  94. package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/DateInput.tpl.js +1 -0
  95. package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/NumberInput.tpl.js +1 -0
  96. package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/Search.tpl.js +8 -1
  97. package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/TextInput.tpl.js +4 -1
  98. package/dist/collection/components/ez-grid/controller/ag-grid/test/constants/GridEditionMock.js +2 -0
  99. package/dist/collection/components/ez-grid/ez-grid.css +95 -10
  100. package/dist/collection/components/ez-grid/ez-grid.js +375 -12
  101. package/dist/collection/components/ez-grid/subcomponents/filter-column.css +4 -0
  102. package/dist/collection/components/ez-grid/subcomponents/filter-column.js +9 -46
  103. package/dist/collection/components/ez-grid/utils/ColumnFilterManager.js +7 -54
  104. package/dist/collection/components/ez-grid/utils/InMemoryFilterColumnDataSource.js +20 -4
  105. package/dist/collection/components/ez-icon/ez-icon.css +156 -149
  106. package/dist/collection/components/ez-list/ez-list.css +5 -4
  107. package/dist/collection/components/ez-list/ez-list.js +301 -212
  108. package/dist/collection/components/ez-list/ezListHelper.js +85 -0
  109. package/dist/collection/components/ez-modal/ez-modal.css +7 -2
  110. package/dist/collection/components/ez-modal/ez-modal.js +13 -4
  111. package/dist/collection/components/ez-modal-container/ez-modal-container.css +1 -0
  112. package/dist/collection/components/ez-modal-container/ez-modal-container.js +1 -1
  113. package/dist/collection/components/ez-multi-selection-list/ez-multi-selection-list.css +3 -3
  114. package/dist/collection/components/ez-multi-selection-list/ez-multi-selection-list.js +1 -1
  115. package/dist/collection/components/ez-number-input/ez-number-input.css +8 -0
  116. package/dist/collection/components/ez-number-input/ez-number-input.js +49 -1
  117. package/dist/collection/components/ez-popover-plus/ez-popover-plus.css +3 -0
  118. package/dist/collection/components/ez-popover-plus/ez-popover-plus.js +432 -0
  119. package/dist/collection/components/ez-popover-plus/subcomponent/ez-popover-core.css +67 -0
  120. package/dist/collection/components/ez-popover-plus/subcomponent/ez-popover-core.js +528 -0
  121. package/dist/collection/components/ez-popup/ez-popup.css +8 -3
  122. package/dist/collection/components/ez-popup/ez-popup.js +43 -3
  123. package/dist/collection/components/ez-scroller/ez-scroller.css +4 -0
  124. package/dist/collection/components/ez-search/ez-search.css +2 -210
  125. package/dist/collection/components/ez-search/ez-search.js +204 -203
  126. package/dist/collection/components/ez-search/subcomponent/search-list/search-list.css +227 -0
  127. package/dist/collection/components/ez-search/subcomponent/search-list/search-list.js +289 -0
  128. package/dist/collection/components/ez-search/utils/searchFormatters.js +18 -0
  129. package/dist/collection/components/ez-sidebar-button/ez-sidebar-button.css +3 -0
  130. package/dist/collection/components/ez-sidebar-button/ez-sidebar-button.js +1 -1
  131. package/dist/collection/components/ez-sidebar-navigator/ez-sidebar-navigator.css +4 -1
  132. package/dist/collection/components/ez-skeleton/ez-skeleton.css +54 -34
  133. package/dist/collection/components/ez-split-button/ez-split-button.css +52 -14
  134. package/dist/collection/components/ez-split-button/ez-split-button.js +3 -3
  135. package/dist/collection/components/ez-split-panel/ez-split-panel.css +15 -0
  136. package/dist/collection/components/ez-split-panel/ez-split-panel.js +106 -5
  137. package/dist/collection/components/ez-split-panel/interfaces/IPanelSizeInfo.js +1 -0
  138. package/dist/collection/components/ez-split-panel/structure/item/ez-split-item.css +14 -2
  139. package/dist/collection/components/ez-split-panel/structure/item/ez-split-item.js +22 -1
  140. package/dist/collection/components/ez-text-area/ez-text-area.css +78 -29
  141. package/dist/collection/components/ez-text-area/ez-text-area.js +104 -4
  142. package/dist/collection/components/ez-text-input/ez-text-input.css +106 -91
  143. package/dist/collection/components/ez-text-input/ez-text-input.js +166 -15
  144. package/dist/collection/components/ez-time-input/ez-time-input.js +24 -0
  145. package/dist/collection/components/ez-tooltip/ez-tooltip.css +20 -0
  146. package/dist/collection/components/ez-tooltip/ez-tooltip.js +116 -0
  147. package/dist/collection/components/ez-tree/ez-tree.js +21 -1
  148. package/dist/collection/components/ez-tree/subcomponents/TreeItem.js +3 -3
  149. package/dist/collection/sw.js +46 -0
  150. package/dist/collection/utils/CSSVarsUtils.js +1 -0
  151. package/dist/collection/utils/FocusResolver.js +31 -0
  152. package/dist/collection/utils/ResponsiveInputUtils.js +26 -0
  153. package/dist/collection/utils/form/DataBinder.js +22 -7
  154. package/dist/collection/utils/form/FormMetadata.js +2 -1
  155. package/dist/collection/utils/interfaces/AbstractFieldMetadata.js +1 -1
  156. package/dist/collection/utils/validators/recordvalidator/IInvalidCells.js +1 -0
  157. package/dist/collection/utils/validators/recordvalidator/RecordValidationProcessor.js +7 -1
  158. package/dist/custom-elements/index.d.ts +36 -0
  159. package/dist/custom-elements/index.js +18612 -70878
  160. package/dist/esm/{CSSVarsUtils-71ce76be.js → CSSVarsUtils-acba92d7.js} +1 -0
  161. package/dist/esm/DataBinder-9c877244.js +441 -0
  162. package/dist/esm/FocusResolver-1ccbf850.js +33 -0
  163. package/dist/esm/ez-actions-button.entry.js +4 -3
  164. package/dist/esm/ez-badge.entry.js +14 -2
  165. package/dist/esm/ez-button.entry.js +11 -5
  166. package/dist/esm/ez-card-item_2.entry.js +1480 -0
  167. package/dist/esm/ez-check.entry.js +1 -1
  168. package/dist/esm/ez-chip.entry.js +1 -1
  169. package/dist/esm/ez-collapsible-box.entry.js +1 -1
  170. package/dist/esm/ez-combo-box-list_3.entry.js +381 -0
  171. package/dist/esm/ez-combo-box.entry.js +83 -156
  172. package/dist/esm/ez-date-input.entry.js +15 -19
  173. package/dist/esm/ez-date-time-input.entry.js +14 -20
  174. package/dist/esm/ez-dialog.entry.js +15 -8
  175. package/dist/esm/ez-double-list.entry.js +283 -0
  176. package/dist/esm/{ez-dropdown.entry.js → ez-dropdown_2.entry.js} +75 -9
  177. package/dist/esm/ez-filter-input.entry.js +125 -0
  178. package/dist/esm/ez-form-view.entry.js +26 -20
  179. package/dist/esm/ez-form.entry.js +5 -324
  180. package/dist/esm/ez-grid.entry.js +14989 -69758
  181. package/dist/esm/ez-icon.entry.js +1 -1
  182. package/dist/esm/ez-list.entry.js +258 -211
  183. package/dist/esm/ez-modal-container.entry.js +2 -2
  184. package/dist/esm/ez-modal.entry.js +12 -3
  185. package/dist/esm/ez-multi-selection-list.entry.js +2 -2
  186. package/dist/esm/ez-number-input.entry.js +15 -3
  187. package/dist/esm/ez-popover-plus_3.entry.js +192 -0
  188. package/dist/esm/ez-popup.entry.js +24 -2
  189. package/dist/esm/ez-scroller_2.entry.js +3 -3
  190. package/dist/esm/ez-search.entry.js +120 -189
  191. package/dist/esm/ez-sidebar-navigator.entry.js +1 -1
  192. package/dist/esm/ez-split-button.entry.js +2 -2
  193. package/dist/esm/ez-split-item.entry.js +6 -3
  194. package/dist/esm/ez-split-panel.entry.js +69 -7
  195. package/dist/esm/ez-text-area.entry.js +68 -6
  196. package/dist/esm/ez-text-input.entry.js +152 -16
  197. package/dist/esm/ez-time-input.entry.js +7 -1
  198. package/dist/esm/ez-tooltip.entry.js +51 -0
  199. package/dist/esm/ez-tree.entry.js +5 -4
  200. package/dist/esm/ezListHelper-00fb9b8d.js +87 -0
  201. package/dist/esm/ezui.js +1 -1
  202. package/dist/esm/filter-column.entry.js +10 -47
  203. package/dist/esm/index-baa5e267.js +22 -10
  204. package/dist/esm/loader.js +1 -1
  205. package/dist/esm/searchFormatters-8229207e.js +20 -0
  206. package/dist/ezui/ezui.esm.js +1 -1
  207. package/dist/ezui/p-0fa52b0f.entry.js +1 -0
  208. package/dist/ezui/p-17de16e5.entry.js +1 -0
  209. package/dist/ezui/p-17eabf46.entry.js +1 -0
  210. package/dist/ezui/p-1ad6c61b.entry.js +1 -0
  211. package/dist/ezui/p-20c024f7.entry.js +1 -0
  212. package/dist/ezui/p-20cb13fa.entry.js +1 -0
  213. package/dist/ezui/p-23b6128c.entry.js +1 -0
  214. package/dist/ezui/p-2872fd16.entry.js +1 -0
  215. package/dist/ezui/p-288631d1.entry.js +1 -0
  216. package/dist/ezui/p-2f45506d.entry.js +1 -0
  217. package/dist/ezui/p-3195a7a7.entry.js +1 -0
  218. package/dist/ezui/p-31b71e50.entry.js +1 -0
  219. package/dist/ezui/p-31da1b57.entry.js +1 -0
  220. package/dist/ezui/p-40a60148.js +1 -0
  221. package/dist/ezui/p-556468d9.entry.js +1 -0
  222. package/dist/ezui/p-56fe5341.entry.js +1 -0
  223. package/dist/ezui/p-5aca7386.entry.js +1 -0
  224. package/dist/ezui/p-6cdd3e0a.entry.js +1 -0
  225. package/dist/ezui/p-788467fe.entry.js +1 -0
  226. package/dist/ezui/p-7e677b7b.entry.js +1 -0
  227. package/dist/ezui/{p-bf79aaa1.entry.js → p-7fdd479f.entry.js} +1 -1
  228. package/dist/ezui/p-80dfc50b.js +1 -0
  229. package/dist/ezui/p-a4cee65d.entry.js +1 -0
  230. package/dist/ezui/p-acddfb2e.js +1 -0
  231. package/dist/ezui/p-b7706b43.entry.js +1 -0
  232. package/dist/ezui/p-c1527804.entry.js +1 -0
  233. package/dist/ezui/p-c297aa52.entry.js +1 -0
  234. package/dist/ezui/p-cb1535f7.entry.js +1 -0
  235. package/dist/ezui/p-cb5cd243.entry.js +309 -0
  236. package/dist/ezui/p-cf87aacb.entry.js +1 -0
  237. package/dist/ezui/p-da1b4a38.entry.js +1 -0
  238. package/dist/ezui/p-dc628ed3.js +1 -0
  239. package/dist/ezui/p-dc73e1fe.entry.js +1 -0
  240. package/dist/ezui/p-dcf3c8e5.entry.js +1 -0
  241. package/dist/ezui/{p-17be134a.entry.js → p-e06a9886.entry.js} +1 -1
  242. package/dist/ezui/{p-84e439b9.entry.js → p-e347df9c.entry.js} +1 -1
  243. package/dist/ezui/p-e6a9041d.entry.js +1 -0
  244. package/dist/ezui/p-e75c7a23.entry.js +1 -0
  245. package/dist/ezui/p-ea54d056.entry.js +1 -0
  246. package/dist/ezui/p-ec7db713.js +1 -0
  247. package/dist/ezui/p-f5931caa.entry.js +1 -0
  248. package/dist/ezui/p-fa6732f2.entry.js +1 -0
  249. package/dist/ezui/p-fd0a19d6.entry.js +1 -0
  250. package/dist/types/components/ez-badge/ez-badge.d.ts +5 -0
  251. package/dist/types/components/ez-button/ez-button.d.ts +2 -1
  252. package/dist/types/components/ez-calendar/ez-calendar.d.ts +3 -3
  253. package/dist/types/components/ez-card-item/ez-card-item.d.ts +5 -0
  254. package/dist/types/components/ez-combo-box/ez-combo-box-list/ez-combo-box-list.d.ts +104 -0
  255. package/dist/types/components/ez-combo-box/ez-combo-box.d.ts +17 -15
  256. package/dist/types/components/ez-date-input/ez-date-input.d.ts +8 -3
  257. package/dist/types/components/ez-date-time-input/ez-date-time-input.d.ts +8 -3
  258. package/dist/types/components/ez-dialog/ez-dialog.d.ts +2 -1
  259. package/dist/types/components/ez-double-list/doubleListHelper.d.ts +10 -0
  260. package/dist/types/components/ez-double-list/ez-double-list.d.ts +87 -0
  261. package/dist/types/components/ez-dropdown/ez-dropdown.d.ts +4 -0
  262. package/dist/types/components/ez-dropdown/structure/DropdownItem.d.ts +1 -1
  263. package/dist/types/components/ez-filter-input/ez-filter-input.d.ts +6 -1
  264. package/dist/types/components/ez-form-view/custom-input/ez-custom-form-input.d.ts +7 -1
  265. package/dist/types/components/ez-form-view/fieldbuilder/templates/DateInput.tpl.d.ts +2 -1
  266. package/dist/types/components/ez-form-view/fieldbuilder/templates/TextInput.tpl.d.ts +1 -1
  267. package/dist/types/components/ez-grid/controller/EzGridController.d.ts +71 -4
  268. package/dist/types/components/ez-grid/controller/ag-grid/AgGridController.d.ts +37 -4
  269. package/dist/types/components/ez-grid/controller/ag-grid/DataSource.d.ts +25 -2
  270. package/dist/types/components/ez-grid/controller/ag-grid/GridEditionManager.d.ts +33 -7
  271. package/dist/types/components/ez-grid/controller/ag-grid/components/EzGridCustomCellEditor.d.ts +4 -1
  272. package/dist/types/components/ez-grid/controller/ag-grid/components/EzGridCustomCellRender.d.ts +1 -1
  273. package/dist/types/components/ez-grid/controller/ag-grid/components/EzGridCustomHeader.d.ts +1 -1
  274. package/dist/types/components/ez-grid/controller/ag-grid/components/cellRendererStatus.d.ts +1 -1
  275. package/dist/types/components/ez-grid/controller/ag-grid/components/selectionHeader.d.ts +1 -1
  276. package/dist/types/components/ez-grid/controller/ag-grid/editor/EzCellEditor.d.ts +2 -1
  277. package/dist/types/components/ez-grid/controller/ag-grid/editor/EzCellRender.d.ts +1 -1
  278. package/dist/types/components/ez-grid/controller/ag-grid/editor/IUICellEditor.d.ts +1 -0
  279. package/dist/types/components/ez-grid/controller/ag-grid/mock/Server.d.ts +1 -1
  280. package/dist/types/components/ez-grid/ez-grid.d.ts +59 -1
  281. package/dist/types/components/ez-grid/subcomponents/filter-column.d.ts +0 -11
  282. package/dist/types/components/ez-grid/utils/ColumnFilterManager.d.ts +1 -1
  283. package/dist/types/components/ez-grid/utils/InMemoryFilterColumnDataSource.d.ts +3 -0
  284. package/dist/types/components/ez-list/ez-list.d.ts +23 -2
  285. package/dist/types/components/ez-list/ezListHelper.d.ts +20 -0
  286. package/dist/types/components/ez-modal/ez-modal.d.ts +2 -1
  287. package/dist/types/components/ez-number-input/ez-number-input.d.ts +8 -0
  288. package/dist/types/components/ez-popover-plus/ez-popover-plus.d.ts +76 -0
  289. package/dist/types/components/ez-popover-plus/subcomponent/ez-popover-core.d.ts +91 -0
  290. package/dist/types/components/ez-popup/ez-popup.d.ts +8 -1
  291. package/dist/types/components/ez-search/ez-search.d.ts +32 -18
  292. package/dist/types/components/ez-search/subcomponent/search-list/search-list.d.ts +23 -0
  293. package/dist/types/components/ez-search/utils/searchFormatters.d.ts +2 -0
  294. package/dist/types/components/ez-split-button/ez-split-button.d.ts +1 -1
  295. package/dist/types/components/ez-split-panel/ez-split-panel.d.ts +11 -0
  296. package/dist/types/components/ez-split-panel/interfaces/IPanelSizeInfo.d.ts +9 -0
  297. package/dist/types/components/ez-split-panel/structure/item/ez-split-item.d.ts +5 -0
  298. package/dist/types/components/ez-text-area/ez-text-area.d.ts +17 -0
  299. package/dist/types/components/ez-text-input/ez-text-input.d.ts +24 -2
  300. package/dist/types/components/ez-time-input/ez-time-input.d.ts +4 -0
  301. package/dist/types/components/ez-tooltip/ez-tooltip.d.ts +21 -0
  302. package/dist/types/components/ez-tree/ez-tree.d.ts +4 -0
  303. package/dist/types/components/ez-tree/interfaces/ITreeItem.d.ts +1 -0
  304. package/dist/types/components/ez-tree/subcomponents/TreeItem.d.ts +1 -0
  305. package/dist/types/components.d.ts +793 -29
  306. package/dist/types/utils/FocusResolver.d.ts +5 -0
  307. package/dist/types/utils/ResponsiveInputUtils.d.ts +6 -0
  308. package/dist/types/utils/customEditor/interfaces/ICustomEditor.d.ts +2 -0
  309. package/dist/types/utils/form/DataBinder.d.ts +3 -0
  310. package/dist/types/utils/validators/recordvalidator/IInvalidCells.d.ts +5 -0
  311. package/dist/types/utils/validators/recordvalidator/RecordValidationProcessor.d.ts +1 -1
  312. package/package.json +11 -3
  313. package/react/components.d.ts +6 -0
  314. package/react/components.js +6 -0
  315. package/react/components.js.map +1 -1
  316. package/dist/cjs/RecordValidationProcessor-4c893e04.js +0 -102
  317. package/dist/cjs/ez-card-item_3.cjs.entry.js +0 -183
  318. package/dist/cjs/ez-custom-form-input_2.cjs.entry.js +0 -206
  319. package/dist/cjs/ez-skeleton.cjs.entry.js +0 -67
  320. package/dist/esm/RecordValidationProcessor-b00b8b77.js +0 -99
  321. package/dist/esm/ez-card-item_3.entry.js +0 -177
  322. package/dist/esm/ez-custom-form-input_2.entry.js +0 -201
  323. package/dist/esm/ez-skeleton.entry.js +0 -63
  324. package/dist/ezui/p-04f24913.js +0 -1
  325. package/dist/ezui/p-072e6347.entry.js +0 -1
  326. package/dist/ezui/p-1285c902.entry.js +0 -1
  327. package/dist/ezui/p-13d2fe2d.entry.js +0 -1
  328. package/dist/ezui/p-2097d0cf.entry.js +0 -1
  329. package/dist/ezui/p-32e553e5.entry.js +0 -304
  330. package/dist/ezui/p-34b6916c.entry.js +0 -1
  331. package/dist/ezui/p-3b4eeeb6.entry.js +0 -1
  332. package/dist/ezui/p-3faa2b46.entry.js +0 -1
  333. package/dist/ezui/p-42533ea4.entry.js +0 -1
  334. package/dist/ezui/p-49456b34.entry.js +0 -1
  335. package/dist/ezui/p-4d5235f1.entry.js +0 -1
  336. package/dist/ezui/p-5bd5e68f.entry.js +0 -1
  337. package/dist/ezui/p-650e4b6d.entry.js +0 -1
  338. package/dist/ezui/p-784fe207.entry.js +0 -1
  339. package/dist/ezui/p-7922142b.entry.js +0 -1
  340. package/dist/ezui/p-7af81663.entry.js +0 -1
  341. package/dist/ezui/p-7bc07c31.entry.js +0 -1
  342. package/dist/ezui/p-85c8baae.entry.js +0 -1
  343. package/dist/ezui/p-8888d9ed.entry.js +0 -1
  344. package/dist/ezui/p-9050d2cd.entry.js +0 -1
  345. package/dist/ezui/p-922ac38b.entry.js +0 -1
  346. package/dist/ezui/p-9e11fc7b.js +0 -1
  347. package/dist/ezui/p-a31b9c90.entry.js +0 -1
  348. package/dist/ezui/p-aba3da00.entry.js +0 -1
  349. package/dist/ezui/p-af95cd16.entry.js +0 -1
  350. package/dist/ezui/p-bae4e180.entry.js +0 -1
  351. package/dist/ezui/p-baf80b13.entry.js +0 -1
  352. package/dist/ezui/p-bcb53f27.entry.js +0 -1
  353. package/dist/ezui/p-cdc472cc.entry.js +0 -1
  354. package/dist/ezui/p-d9401ea0.entry.js +0 -1
  355. package/dist/ezui/p-e85c48d7.entry.js +0 -1
  356. package/dist/ezui/p-ecc2c1ec.entry.js +0 -1
  357. package/dist/ezui/p-fcf0acce.entry.js +0 -1
@@ -4,13 +4,13 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-a7b0c73d.js');
6
6
  require('./ApplicationUtils-c9d1205c.js');
7
- const CSSVarsUtils = require('./CSSVarsUtils-10c9d5b4.js');
7
+ const CSSVarsUtils = require('./CSSVarsUtils-f20973d1.js');
8
8
  require('./DialogType-2114c337.js');
9
9
  require('./CheckMode-ecb90b87.js');
10
10
  require('@sankhyalabs/core');
11
11
  require('./ICustomRender-6fafffce.js');
12
12
 
13
- const ezSplitItemCss = ".box_split-item{background-color:var(--background--xlight);width:100%;height:100%;border-radius:var(--border--radius-medium);box-shadow:var(--shadow);flex-direction:column;overflow:hidden;display:flex;padding:var(--space--nano)}.box_split-item>.ez-split-item--content{overflow:auto}.expanded__item{position:absolute;z-index:var(--more-visible);top:0;left:0;width:100%;height:100%}.ez-split-item--header{display:flex;align-items:center;justify-content:space-between}.ez-split-item--header-title{flex:1;white-space:nowrap;overflow:hidden}.ez-split-item--header-title h3{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block}.ez-split-item--header-buttons{display:flex;align-items:center}.ez-split-item--content{display:block;height:100%}h3.ez-margin--small{margin-left:var(--space--small)}";
13
+ const ezSplitItemCss = ".box_split-item{background-color:var(--background--xlight);width:100%;height:100%;border-radius:var(--border--radius-medium);box-shadow:var(--shadow--xsmall);flex-direction:column;overflow:hidden;display:flex;padding:var(--space--nano)}.box_split-item>.ez-split-item--content{overflow:auto}.expanded__item{position:absolute;z-index:var(--more-visible);top:0;left:0;width:100%;height:100%}.ez-split-item--header{display:flex;align-items:center;justify-content:space-between}.ez-split-item--header-title{flex:1;white-space:nowrap;overflow:hidden}.ez-split-item--header-title h3{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block}.ez-split-item--header-buttons{display:flex;align-items:center;max-height:20px}.ez-split-item--content{display:block;height:100%}h3.ez-margin--small{margin-left:var(--space--small)}.structural__item{background:none;box-shadow:none;padding:0;margin:0;border:0}.content__item{margin:var(--space--extra-small);width:calc(100% - 2*(var(--space--extra-small)));height:calc(100% - 2*(var(--space--extra-small)))}";
14
14
 
15
15
  const SplitItem = class {
16
16
  constructor(hostRef) {
@@ -19,18 +19,21 @@ const SplitItem = class {
19
19
  this.enableExpand = true;
20
20
  this._expanded = false;
21
21
  this.size = undefined;
22
+ this.structural = false;
22
23
  }
23
24
  /**
24
25
  * Alterna a visibilidade do painel.
25
26
  */
26
27
  toggleExpandItem() {
28
+ var _a, _b;
27
29
  this._expanded = !this._expanded;
30
+ (_b = (_a = this.expandButtonRef.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector('button')) === null || _b === void 0 ? void 0 : _b.blur();
28
31
  }
29
32
  componentDidLoad() {
30
33
  CSSVarsUtils.CSSVarsUtils.applyVarsGrid(this._element, this._slot.children[0]);
31
34
  }
32
35
  render() {
33
- return (index.h(index.Host, { class: `box_split-item ${this._expanded ? 'expanded__item' : ''}`, ref: el => (this._element = el) }, index.h("div", { class: "ez-split-item--header" }, index.h("slot", { name: "leftButtons" }), index.h("div", { class: "ez-split-item--header-title" }, this.label && (index.h("h3", { class: "ez-text ez-text--primary ez-title ez-title--small ez-margin--small", title: this.label }, this.label))), index.h("div", { class: "ez-split-item--header-buttons" }, index.h("slot", { name: "rightButtons" }), this.enableExpand && (index.h("ez-button", { size: "small", mode: "icon", iconName: "expand", class: 'ez-button--tertiary', onClick: () => this.toggleExpandItem(), title: this._expanded ? 'Resumir' : 'Expandir' })))), index.h("div", { class: "ez-split-item--content grid_height-0", ref: el => (this._slot = el) }, index.h("slot", null))));
36
+ return (index.h(index.Host, { class: `box_split-item ${this._expanded ? 'expanded__item' : ''} ${this.structural ? 'structural__item' : 'content__item'}`, ref: el => (this._element = el) }, index.h("div", { class: "ez-split-item--header" }, index.h("slot", { name: "leftButtons" }), index.h("div", { class: "ez-split-item--header-title" }, this.label && (index.h("h3", { class: "ez-text ez-text--primary ez-title ez-title--medium ez-margin--small", title: this.label }, this.label))), index.h("div", { class: "ez-split-item--header-buttons" }, index.h("slot", { name: "rightButtons" }), this.enableExpand && (index.h("ez-button", { ref: el => this.expandButtonRef = el, size: "small", mode: "icon", iconName: "expand", class: 'ez-button--tertiary', onClick: () => this.toggleExpandItem(), title: this._expanded ? 'Resumir' : 'Expandir' })))), index.h("div", { class: "ez-split-item--content grid_height-0", ref: el => (this._slot = el) }, index.h("slot", null))));
34
37
  }
35
38
  };
36
39
  SplitItem.style = ezSplitItemCss;
@@ -682,15 +682,17 @@ Grid.prototype.destroy = function destroy (immediate) {
682
682
 
683
683
  function index (options) { return new Grid(options); }
684
684
 
685
- const ezSplitPanelCss = ".ez-split-gutter{cursor:grab;background-color:transparent;max-width:100%}";
685
+ const ezSplitPanelCss = ".ez-split-gutter{cursor:grab;background-color:transparent;max-width:100%}.ez-split-gutter__row{cursor:ns-resize}.ez-split-gutter__column{cursor:ew-resize}.structural__panel{background:none;box-shadow:none;outline:none;padding:0;margin:0;border:0}";
686
686
 
687
687
  const SplitPanel = class {
688
688
  constructor(hostRef) {
689
689
  index$1.registerInstance(this, hostRef);
690
+ this.resizeEnd = index$1.createEvent(this, "resizeEnd", 7);
690
691
  this._items = [];
691
692
  this._buildInProgress = false;
692
693
  this.direction = 'column';
693
694
  this.anchorToExpand = false;
695
+ this.structural = false;
694
696
  }
695
697
  rebuildLayout() {
696
698
  Array.from(this._element.querySelectorAll(".ez-split-gutter")).reverse().forEach(el => {
@@ -722,7 +724,7 @@ const SplitPanel = class {
722
724
  this.initSplit();
723
725
  this._mutationObserver = new MutationObserver((mutationsList) => {
724
726
  for (const mutation of mutationsList) {
725
- if (mutation.type === 'childList' && this._buildInProgress === false) {
727
+ if (mutation.type === 'childList' && !this._buildInProgress) {
726
728
  this._buildInProgress = true;
727
729
  window.requestAnimationFrame(() => {
728
730
  this.rebuildLayout();
@@ -745,20 +747,30 @@ const SplitPanel = class {
745
747
  if (!this._items.length) {
746
748
  return;
747
749
  }
748
- this._element.style[this.direction == 'row' ? 'grid-template-rows' : 'grid-template-columns'] = this.getGridTemplate();
750
+ this._element.style[this.direction === 'row' ? 'grid-template-rows' : 'grid-template-columns'] = this.getGridTemplate();
751
+ this.removeGuttersMargin();
749
752
  index(this.getGutters());
750
753
  }
754
+ handlePanelDragEnd() {
755
+ const items = this._items.map(item => ({
756
+ id: item.id,
757
+ height: item.clientHeight,
758
+ width: item.clientWidth,
759
+ }));
760
+ this.resizeEnd.emit({ panelId: this._element.id, items });
761
+ }
751
762
  getGutters() {
752
763
  const gutters = {
753
764
  columnGutters: [],
754
765
  rowGutters: [],
766
+ onDragEnd: () => this.handlePanelDragEnd()
755
767
  };
756
768
  if (!this._items.length) {
757
769
  return gutters;
758
770
  }
759
- const proToChange = this.direction == 'row' ? 'rowGutters' : 'columnGutters';
771
+ const proToChange = this.direction === 'row' ? 'rowGutters' : 'columnGutters';
760
772
  this._items.forEach((item, index) => {
761
- if (index == this._items.length - 1)
773
+ if (index === this._items.length - 1)
762
774
  return;
763
775
  let gutterTrack = item.dataset.trackNumber;
764
776
  if (index === this._items.length - 1) {
@@ -775,6 +787,12 @@ const SplitPanel = class {
775
787
  const gutter = document.createElement('div');
776
788
  gutter.classList.add('ez-split-gutter');
777
789
  gutter.classList.add(this.direction);
790
+ if (this.direction === 'row') {
791
+ gutter.classList.add('ez-split-gutter__row');
792
+ }
793
+ else {
794
+ gutter.classList.add('ez-split-gutter__column');
795
+ }
778
796
  gutter.dataset.itemTrack = `${item.dataset.trackNumber}`;
779
797
  gutter.dataset.trackNumber = (Number(item.dataset.trackNumber) + 1).toString();
780
798
  item.parentNode.insertBefore(gutter, item.nextSibling);
@@ -820,8 +838,52 @@ const SplitPanel = class {
820
838
  });
821
839
  return template;
822
840
  }
841
+ removeGuttersMargin() {
842
+ if (this._items.length <= 1)
843
+ return;
844
+ if (this.direction == "column") {
845
+ this.removeGuttersMarginColumn();
846
+ return;
847
+ }
848
+ if (this.direction == "row") {
849
+ this.removeGuttersMarginRow();
850
+ return;
851
+ }
852
+ }
853
+ removeGuttersMarginColumn() {
854
+ this._items.forEach((item, index) => {
855
+ if (index == 0) {
856
+ item.style.marginRight = "0";
857
+ return;
858
+ }
859
+ if (index === this._items.length - 1) {
860
+ item.style.marginLeft = "0";
861
+ return;
862
+ }
863
+ item.style.marginRight = "0";
864
+ item.style.marginLeft = "0";
865
+ return;
866
+ });
867
+ }
868
+ removeGuttersMarginRow() {
869
+ if (this._items.length <= 1)
870
+ return;
871
+ this._items.forEach((item, index) => {
872
+ if (index == 0) {
873
+ item.style.marginBottom = "0";
874
+ return;
875
+ }
876
+ if (index === this._items.length - 1) {
877
+ item.style.marginTop = "0";
878
+ return;
879
+ }
880
+ item.style.marginBottom = "0";
881
+ item.style.marginTop = "0";
882
+ return;
883
+ });
884
+ }
823
885
  render() {
824
- return index$1.h(index$1.Host, { style: this.getElementStyle() });
886
+ return index$1.h(index$1.Host, { class: `${this.structural ? 'structural__panel' : 'content__panel'}`, style: this.getElementStyle() });
825
887
  }
826
888
  get _element() { return index$1.getElement(this); }
827
889
  };
@@ -5,12 +5,14 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  const index = require('./index-a7b0c73d.js');
6
6
  const core = require('@sankhyalabs/core');
7
7
 
8
- const ezTextAreaCss = ":host{--text-area--width:100%;--text-area--border-radius:var(--border--radius-medium, 12px);--text-area--font-size:var(--text--medium, 14px);--text-area--font-family:var(--font-pattern, Arial);--text-area--font-weight:var(--text-weight--medium, 400);--text-area--color:var(--title--primary, #000);--text-area__input--background-color:var(--background--medium, #e0e0e0);--text-area__input--border:var(--border--medium, 2px solid);--text-area__input--border-color:var(--text-area__input--background-color);--text-area__input--focus--border-color:var(--color--primary, #008561);--text-area__input--disabled--background-color:var(--color--disable-secondary, #F2F5F8);--text-area__input--disabled--color:var(--text--disable, #AFB6C0);--text-area__input--error--border-color:#CC2936;--text-area__message_box--font-size:var(--text--small, 12px);--text-area__message_box--info--color:var(--color--success, #22085d);--text-area__message_box--error--color:var(--color--error, #FF0000);--text-area__label--floating--top:6px;--text-area__label--padding-top:12px;--text-area__label--padding-left:14px;--text-area__label--padding-right:12px;display:flex;flex-wrap:wrap;position:relative;width:var(--text-area--width)}textarea{box-sizing:border-box;border:none;resize:none;width:100%;padding:0;background:none;font-weight:var(--text-area--font-weight);font-family:var(--text-area--font-family);font-size:var(--text-area--font-size);color:var(--text-area--color);margin-top:calc(var(--space--medium, 12px) + 4px)}textarea:focus{outline:none}textarea:disabled{background-color:transparent;color:var(--text-area__input--disabled--color)}.textarea{width:100%;box-sizing:border-box;padding-left:var(--space--medium);padding-right:var(--space--extra-small);border-radius:var(--text-area--border-radius);border:var(--text-area__input--border);border-color:var(--text-area__input--border-color);background-color:var(--text-area__input--background-color)}.textarea--resizable{resize:both}.textarea--focus{border-color:var(--text-area__input--focus--border-color)}.textarea.hasError{color:var(--text-area--color);border-color:var(--text-area__input--error--border-color)}.message-box{min-height:16px;min-width:100%;margin-top:3px;line-height:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-family:var(--text-area--font-family);font-size:var(--text-area__message_box--font-size);color:var(--text-area__message_box--info--color)}.hasError{color:var(--text-area__message_box--error--color)}.textarea__label{box-sizing:border-box;position:absolute;z-index:var(--visible);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;-webkit-transition:font-size .05s, top .05s;transition:font-size .05s, top .05s;width:calc(100% - var(--text-area__label--padding-right));left:var(--text-area--space--medium);font-family:var(--text-area--font-family);font-size:var(--text-area--font-size);font-weight:var(--text-area--font-weight);color:var(--text-area--color);top:var(--text-area__label--padding-top);left:var(--text-area__label--padding-left);padding-right:var(--text-area__label--padding-right)}.textarea__label--floated{font-family:var(--text-area--font-family);font-size:var(--text--extra-small);color:var(--text--primary);top:var(--text-area__label--floating--top)}.textarea__label--disabled{color:var(--text-area__input--disabled--color)}.textarea--slim{margin-top:var(--space--small, 6px)}.textarea--slim::-webkit-input-placeholder{font-family:var(--text-area--font-family);font-size:var(--text-area--font-size);font-weight:var(--text-area--font-weight);color:var(--text-area--color)}.textarea--slim:-moz-placeholder{font-family:var(--text-area--font-family);font-size:var(--text-area--font-size);font-weight:var(--text-area--font-weight);color:var(--text-area--color)}.textarea--slim::-moz-placeholder{font-family:var(--text-area--font-family);font-size:var(--text-area--font-size);font-weight:var(--text-area--font-weight);color:var(--text-area--color)}.textarea--slim:-ms-input-placeholder{font-family:var(--text-area--font-family);font-size:var(--text-area--font-size);font-weight:var(--text-area--font-weight);color:var(--text-area--color)}.textarea--slim::placeholder{font-family:var(--text-area--font-family);font-size:var(--text-area--font-size);font-weight:var(--text-area--font-weight);color:var(--text-area--color)}.textarea--slim:disabled::-webkit-input-placeholder{color:var(--text-area__input--disabled--color)}.textarea--slim:disabled:-moz-placeholder{color:var(--text-area__input--disabled--color)}.textarea--slim:disabled::-moz-placeholder{color:var(--text-area__input--disabled--color)}.textarea--slim:disabled:-ms-input-placeholder{color:var(--text-area__input--disabled--color)}.textarea--slim:disabled::placeholder{color:var(--text-area__input--disabled--color)}";
8
+ const ezTextAreaCss = ":host{--text-area--width:100%;--text-area--border-radius:var(--border--radius-medium, 12px);--text-area--font-size:var(--text--medium, 14px);--text-area--font-family:var(--font-pattern, Arial);--text-area--font-weight:var(--text-weight--medium, 400);--text-area--color:var(--title--primary, #2B3A54);--text-area__input--background-color:var(--background--light, #FFFFFF);--text-area__input--border:var(--border--medium, 2px solid);--text-area__input--border-color:var(--color--strokes,#DCE0E8);--text-area__input--focus--border-color:var(--color--primary, #008561);--text-area__input--disabled--background-color:var(--background--medium, #F0F3F7);--text-area__input--disabled--color:var(--text--primary, #626E82);--text-area__input--disabled--border--color:var(--color--strokes,#DCE0E8);--text-area__input--error--border-color:var(--color-alert--error-800,#BD0025);--text-area__message_box--font-size:var(--text--small, 12px);--text-area__message_box--info--color:var(--color--success, #22085d);--text-area__message_box--error--color:var(--color-alert--error-800,#BD0025);--text-area__label--floating--top:6px;--text-area__label--padding-top:12px;--text-area__label--padding-left:14px;--text-area__label--padding-right:12px;--text-area__scrollbar--color-default:var(--scrollbar--default, #626e82);--text-area__scrollbar--color-background:var(--scrollbar--background, #E5EAF0);--text-area__scrollbar--color-hover:var(--scrollbar--hover, #2B3A54);--text-area__scrollbar--color-clicked:var(--scrollbar--clicked, #a2abb9);--text-area__scrollbar--border-radius:var(--border--radius-small, 6px);--text-area__scrollbar--width:var(--space--small, 6px);display:flex;flex-wrap:wrap;position:relative;width:var(--text-area--width)}textarea{box-sizing:border-box;border:none;resize:none;width:100%;padding:0;background:none;min-height:42px;font-weight:var(--text-area--font-weight);font-family:var(--text-area--font-family);font-size:var(--text-area--font-size);color:var(--text-area--color);margin-top:calc(var(--space--medium, 12px) + 4px);scrollbar-width:thin;scrollbar-color:var(--text-area__scrollbar--color-clicked) var(--text-area__scrollbar--color-background)}textarea:focus{outline:none}textarea:disabled{background-color:transparent;color:var(--text-area__input--disabled--color);border:var(--text-area__input--disabled--border);cursor:not-allowed}textarea::-webkit-scrollbar{background-color:var(--text-area__scrollbar--color-background);width:var(--text-area__scrollbar--width);max-width:var(--text-area__scrollbar--width);min-width:var(--text-area__scrollbar--width)}textarea::-webkit-scrollbar-thumb{background-color:var(--text-area__scrollbar--color-default);border-radius:var(--text-area__scrollbar--border-radius)}textarea::-webkit-scrollbar-track{background-color:var(--text-area__scrollbar--color-background);border-radius:var(--text-area__scrollbar--border-radius)}textarea::-webkit-scrollbar-thumb:vertical:hover,textarea::-webkit-scrollbar-thumb:horizontal:hover{background-color:var(--text-area__scrollbar--color-hover)}textarea::-webkit-scrollbar-thumb:vertical:active,textarea::-webkit-scrollbar-thumb:horizontal:active{background-color:var(--text-area__scrollbar--color-clicked)}.textarea{width:100%;min-height:42px;max-width:100%;box-sizing:border-box;padding-left:var(--space--medium);padding-right:var(--space--extra-small);border-radius:var(--text-area--border-radius);border:var(--text-area__input--border);border-color:var(--text-area__input--border-color);background-color:var(--text-area__input--background-color)}.textarea--disabled{border-radius:var(--text-area--border-radius);border:var(--text-area__input--border);border-color:var(--text-area__input--disabled--border--color);background-color:var(--text-area__input--disabled--background-color);cursor:not-allowed}.textarea--resizable{resize:vertical}.textarea--focus{border-color:var(--text-area__input--focus--border-color)}.textarea.hasError{color:var(--text-area--color);border-color:var(--text-area__input--error--border-color)}.message-box{min-height:16px;min-width:100%;margin-top:3px;line-height:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-family:var(--text-area--font-family);font-size:var(--text-area__message_box--font-size);color:var(--text-area__message_box--info--color)}.hasError{color:var(--text-area__message_box--error--color)}.textarea__label{box-sizing:border-box;position:absolute;z-index:var(--visible);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;-webkit-transition:font-size .05s, top .05s;transition:font-size .05s, top .05s;width:calc(100% - var(--text-area__label--padding-right));left:var(--text-area--space--medium);font-family:var(--text-area--font-family);font-size:var(--text-area--font-size);font-weight:var(--text-area--font-weight);color:var(--text-area--color);top:var(--text-area__label--padding-top);left:var(--text-area__label--padding-left);padding-right:var(--text-area__label--padding-right)}.textarea__label--floated{font-family:var(--text-area--font-family);font-size:var(--text--extra-small);color:var(--text--primary);top:var(--text-area__label--floating--top)}.textarea__label--disabled{color:var(--text-area__input--disabled--color);cursor:not-allowed}.textarea--slim{margin-top:var(--space--small, 6px)}.textarea--slim::-webkit-input-placeholder{font-family:var(--text-area--font-family);font-size:var(--text-area--font-size);font-weight:var(--text-area--font-weight);color:var(--text-area--color)}.textarea--slim:-moz-placeholder{font-family:var(--text-area--font-family);font-size:var(--text-area--font-size);font-weight:var(--text-area--font-weight);color:var(--text-area--color)}.textarea--slim::-moz-placeholder{font-family:var(--text-area--font-family);font-size:var(--text-area--font-size);font-weight:var(--text-area--font-weight);color:var(--text-area--color)}.textarea--slim:-ms-input-placeholder{font-family:var(--text-area--font-family);font-size:var(--text-area--font-size);font-weight:var(--text-area--font-weight);color:var(--text-area--color)}.textarea--slim::placeholder{font-family:var(--text-area--font-family);font-size:var(--text-area--font-size);font-weight:var(--text-area--font-weight);color:var(--text-area--color)}.textarea--slim:disabled::-webkit-input-placeholder,.textarea--slim:disabled:-moz-placeholder,.textarea--slim:disabled::-moz-placeholder,.textarea--slim:disabled:-ms-input-placeholder,.textarea--slim:disabled::placeholder{color:var(--text-area__input--disabled--color);cursor:not-allowed}";
9
9
 
10
10
  const EzTextArea = class {
11
11
  constructor(hostRef) {
12
12
  index.registerInstance(this, hostRef);
13
13
  this.ezChange = index.createEvent(this, "ezChange", 7);
14
+ this.LINE_HEIGHT = 24;
15
+ this.HEIGHT_RATIO = 1.4;
14
16
  this.label = undefined;
15
17
  this.value = undefined;
16
18
  this.enabled = true;
@@ -18,7 +20,9 @@ const EzTextArea = class {
18
20
  this.rows = 4;
19
21
  this.canShowError = true;
20
22
  this.mode = "regular";
21
- this.enableResize = false;
23
+ this.enableResize = true;
24
+ this.autoRows = false;
25
+ this.autoFocus = false;
22
26
  }
23
27
  observeErrorMessage() {
24
28
  var _a, _b, _c, _d;
@@ -56,8 +60,17 @@ const EzTextArea = class {
56
60
  observeRows() {
57
61
  const rows = this.rows > 0 ? this.rows : this.mode != "slim" ? 4 : 2;
58
62
  if (rows !== this.rows) {
59
- this.rows = rows;
60
- this._initialRows = rows;
63
+ this.updateRows(rows);
64
+ }
65
+ }
66
+ observeAutoRows() {
67
+ var _a, _b;
68
+ if (this.autoRows) {
69
+ (_a = this._resizeObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
70
+ this.initializeResizeObserver();
71
+ }
72
+ else {
73
+ (_b = this._resizeObserver) === null || _b === void 0 ? void 0 : _b.disconnect();
61
74
  }
62
75
  }
63
76
  //---------------------------------------------
@@ -126,6 +139,42 @@ const EzTextArea = class {
126
139
  isFocused() {
127
140
  return this._hostElement.shadowRoot.activeElement !== null;
128
141
  }
142
+ updateRows(newRows) {
143
+ this.rows = newRows;
144
+ this._initialRows = newRows;
145
+ }
146
+ calculateMaxRows() {
147
+ const parentElement = this._hostElement.parentElement;
148
+ if (!parentElement) {
149
+ return;
150
+ }
151
+ const height = Math.max((parentElement === null || parentElement === void 0 ? void 0 : parentElement.clientHeight) || 0, this.LINE_HEIGHT);
152
+ if (height > 0) {
153
+ const maxRows = Math.floor(height / this.LINE_HEIGHT * this.HEIGHT_RATIO);
154
+ if (maxRows !== this.rows) {
155
+ this.updateRows(maxRows);
156
+ }
157
+ }
158
+ }
159
+ initializeResizeObserver() {
160
+ if (!this.autoRows) {
161
+ return;
162
+ }
163
+ const parentElement = this._hostElement.parentElement;
164
+ if (parentElement) {
165
+ try {
166
+ if (this._resizeObserver != undefined) {
167
+ this._resizeObserver.unobserve(parentElement);
168
+ }
169
+ this._resizeObserver = new ResizeObserver(this.calculateMaxRows.bind(this));
170
+ this._resizeObserver.observe(parentElement);
171
+ }
172
+ catch (e) {
173
+ console.warn(e);
174
+ }
175
+ this.calculateMaxRows();
176
+ }
177
+ }
129
178
  //---------------------------------------------
130
179
  // Event handlers
131
180
  //---------------------------------------------
@@ -148,6 +197,13 @@ const EzTextArea = class {
148
197
  this._container.classList.add("textarea--focus");
149
198
  }
150
199
  }
200
+ connectedCallback() {
201
+ this.initializeResizeObserver();
202
+ }
203
+ disconnectedCallback() {
204
+ var _a;
205
+ (_a = this._resizeObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
206
+ }
151
207
  //---------------------------------------------
152
208
  // Lifecycle web component
153
209
  //---------------------------------------------
@@ -155,10 +211,15 @@ const EzTextArea = class {
155
211
  this.observeErrorMessage();
156
212
  this.adjustFloatingLabel();
157
213
  this.observeMode();
214
+ if (this.autoFocus) {
215
+ requestAnimationFrame(() => {
216
+ this.setFocus();
217
+ });
218
+ }
158
219
  }
159
220
  render() {
160
221
  core.ElementIDUtils.addIDInfoIfNotExists(this._hostElement, 'input');
161
- return (index.h(index.Host, null, index.h("div", { class: "textarea", ref: (el) => this._container = el }, this.label && this.mode != "slim" ?
222
+ return (index.h(index.Host, null, index.h("div", { class: `textarea ${this.enabled ? "" : "textarea--disabled"}`, ref: (el) => this._container = el }, this.label && this.mode != "slim" ?
162
223
  index.h("label", { ref: (el) => this._labelElem = el, class: this.enabled ? "textarea__label" : "textarea__label textarea__label--disabled", onClick: () => this._inputElem.focus(), title: this.label }, this.label)
163
224
  : null, index.h("textarea", { onFocus: () => this.handleFocus(), "data-element-id": core.ElementIDUtils.getInternalIDInfo("input"), ref: (el) => this._inputElem = el, value: this.value, disabled: !this.enabled, class: {
164
225
  "textarea--slim": this.mode === "slim",
@@ -171,7 +232,8 @@ const EzTextArea = class {
171
232
  "errorMessage": ["observeErrorMessage"],
172
233
  "value": ["observeValue"],
173
234
  "mode": ["observeMode"],
174
- "rows": ["observeRows"]
235
+ "rows": ["observeRows"],
236
+ "autoRows": ["observeAutoRows"]
175
237
  }; }
176
238
  };
177
239
  EzTextArea.style = ezTextAreaCss;
@@ -5,7 +5,34 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  const index = require('./index-a7b0c73d.js');
6
6
  const core = require('@sankhyalabs/core');
7
7
 
8
- const ezTextInputCss = ":host{--ez-text-input--height:42px;--ez-text-input--width:100%;--ez-text-input__icon--width:48px;--ez-text-input--height--slim:32px;--ez-text-input--border-radius:var(--border--radius-medium, 12px);--ez-text-input--font-size:var(--text--medium, 14px);--ez-text-input--font-family:var(--font-pattern, Arial);--ez-text-input--font-weight:var(--text-weight--medium, 400);--ez-text-input--color:var(--title--primary, #2B3A54);--ez-text-input__input--background-color:var(--background--medium, #e0e0e0);--ez-text-input__input--border:var(--border--medium, 2px solid);--ez-text-input__input--border-color:var(--ez-text-input__input--background-color);--ez-text-input__input--focus--border-color:var(--color--primary, #008561);--ez-text-input__input--disabled--background-color:var(--color--disable-secondary, #F2F5F8);--ez-text-input__input--disabled--color:var(--text--disable, #AFB6C0);--ez-text-input__input--error--border-color:#CC2936;--ez-text-input__input--noborder-color:white;--ez-text-input__input--padding:var(--space--medium, 6px);--ez-text-input__message_box--font-size:var(--text--small, 12px);--ez-text-input__message_box--info--color:var(--color--success, #22085d);--ez-text-input__message_box--error--color:var(--color--error, #FF0000);--ez-text-input__label--floating--top:6px;--ez-text-input__label--padding-top:12px;--ez-text-input__label--padding-left:14px;--ez-text-input__label--padding-right:12px;--ez-text-input__input--focus--icon-color:var(--ez-text-input__input--focus--border-color);display:flex;flex-wrap:wrap;position:relative;width:var(--ez-text-input--width)}:host(.grid_editor){--ez-text-input--height--slim:25px}input{width:100%;box-sizing:border-box;height:var(--ez-text-input--height);border-radius:var(--ez-text-input--border-radius);font-family:var(--ez-text-input--font-family);font-size:var(--ez-text-input--font-size);border:var(--ez-text-input__input--border);border-color:var(--ez-text-input__input--border-color);background-color:var(--ez-text-input__input--background-color);color:var(--ez-text-input--color);font-weight:var(--ez-text-input--font-weight);padding:var(--ez-text-input__input--padding)}input:disabled{background-color:var(--ez-text-input__input--disabled--background-color);color:var(--ez-text-input__input--disabled--color)}input:focus{outline:none;border-color:var(--ez-text-input__input--focus--border-color)}input.icon--left{padding-left:var(--ez-text-input__icon--width)}input.icon--right{padding-right:var(--ez-text-input__icon--width)}input.hasError{color:var(--ez-text-input--color);border-color:var(--ez-text-input__input--error--border-color)}input:disabled.hasError{color:var(--ez-text-input__input--disabled--color)}input.text--right{text-align:right}input:read-only{cursor:default}.message-box{min-height:16px;min-width:100%;margin-top:3px;line-height:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-family:var(--ez-text-input--font-family);font-size:var(--ez-text-input__message_box--font-size);color:var(--ez-text-input__message_box--info--color)}.hasError{color:var(--ez-text-input__message_box--error--color)}.input__label{box-sizing:border-box;position:absolute;z-index:var(--visible);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;-webkit-transition:font-size .05s, top .05s;transition:font-size .05s, top .05s;width:calc(100% - var(--ez-text-input__label--padding-right));left:var(--ez-text-input--space--medium);font-family:var(--ez-text-input--font-family);font-size:var(--ez-text-input--font-size);font-weight:var(--ez-text-input--font-weight);color:var(--ez-text-input--color);top:var(--ez-text-input__label--padding-top);left:var(--ez-text-input__label--padding-left);padding-right:var(--ez-text-input__label--padding-right)}.input__label--floated{font-family:var(--ez-text-input--font-family);font-size:var(--text--extra-small);color:var(--text--primary);top:var(--ez-text-input__label--floating--top)}.input__label--disabled{color:var(--ez-text-input__input--disabled--color)}.input__label--left{text-align:left;left:calc(var(--ez-text-input__icon--width) + 2px);width:calc(100% - var(--ez-text-input__icon--width))}.input__label--right{right:var(--ez-text-input__icon--width);width:calc(100% - var(--ez-text-input__icon--width))}.input__label--left.input__label--right{left:calc(var(--ez-text-input__icon--width) + 2px);width:calc(100% - var(--ez-text-input__icon--width) * 2)}.input--with--label{padding-bottom:0}.input--slim{padding-top:var(--space--small, 3px);padding-bottom:var(--space--small, 3px);height:var(--ez-text-input--height--slim)}.input__slim--title{font-size:16px;font-weight:bold}.input--slim::-webkit-input-placeholder{font-family:var(--ez-text-input--font-family);font-size:var(--ez-text-input--font-size);font-weight:var(--ez-text-input--font-weight);color:var(--ez-text-input--color)}.input--slim:-moz-placeholder{font-family:var(--ez-text-input--font-family);font-size:var(--ez-text-input--font-size);font-weight:var(--ez-text-input--font-weight);color:var(--ez-text-input--color)}.input--slim::-moz-placeholder{font-family:var(--ez-text-input--font-family);font-size:var(--ez-text-input--font-size);font-weight:var(--ez-text-input--font-weight);color:var(--ez-text-input--color)}.input--slim:-ms-input-placeholder{font-family:var(--ez-text-input--font-family);font-size:var(--ez-text-input--font-size);font-weight:var(--ez-text-input--font-weight);color:var(--ez-text-input--color)}.input--slim::placeholder{font-family:var(--ez-text-input--font-family);font-size:var(--ez-text-input--font-size);font-weight:var(--ez-text-input--font-weight);color:var(--ez-text-input--color)}.input--slim:disabled::-webkit-input-placeholder{color:var(--ez-text-input__input--disabled--color)}.input--slim:disabled:-moz-placeholder{color:var(--ez-text-input__input--disabled--color)}.input--slim:disabled::-moz-placeholder{color:var(--ez-text-input__input--disabled--color)}.input--slim:disabled:-ms-input-placeholder{color:var(--ez-text-input__input--disabled--color)}.input--slim:disabled::placeholder{color:var(--ez-text-input__input--disabled--color)}input.input__slim--noborder{box-shadow:0 0 0 0;border:0 none;outline:0;background:var(--ez-text-input__input--noborder-color)}";
8
+ /**
9
+ * Aplica comportamento de elipses a um input caso o texto ultrapasse o tamanho disponível.
10
+ *
11
+ * @param inputElement A referência ao elemento input (HTMLInputElement).
12
+ */
13
+ const applyEllipsisToInput = (inputElement) => {
14
+ if (!inputElement || !inputElement.style) {
15
+ console.error('[applyEllipsisToInput] Referência ao elemento input é inválida.');
16
+ return;
17
+ }
18
+ inputElement.style.textOverflow = 'ellipsis';
19
+ inputElement.style.overflow = 'hidden';
20
+ inputElement.style.whiteSpace = 'nowrap';
21
+ const adjustEllipsis = () => {
22
+ const value = inputElement.value || '';
23
+ const isOverflowing = inputElement.scrollWidth > inputElement.clientWidth;
24
+ if (isOverflowing) {
25
+ inputElement.setAttribute('title', value);
26
+ }
27
+ else {
28
+ inputElement.removeAttribute('title');
29
+ }
30
+ };
31
+ inputElement.addEventListener('input', adjustEllipsis);
32
+ adjustEllipsis();
33
+ };
34
+
35
+ const ezTextInputCss = ":host{--ez-text-input--height:42px;--ez-text-input--width:100%;--ez-text-input__icon--width:48px;--ez-text-input--height--slim:32px;--ez-text-input__min-width:0px;--ez-text-input__max-width:100%;--ez-text-input--border-radius:var(--border--radius-medium, 12px);--ez-text-input--font-size:var(--text--medium, 14px);--ez-text-input--font-family:var(--font-pattern, Arial);--ez-text-input--font-weight:var(--text-weight--medium, 400);--ez-text-input--color:var(--title--primary, #2B3A54);--ez-text-input__margin-bottom:var(--space--small);--ez-text-input__input--background-color:var(--background--light, #ffffff);--ez-text-input__input--border:var(--border--small, 1px solid);--ez-text-input__input--border-color:var(--color--strokes,#DCE0E8);--ez-text-input__input--focus--border-color:var(--color--primary, #008561);--ez-text-input__input--disabled--background-color:var(--background--medium, #F0F3F7);--ez-text-input__input--disabled--color:var(--text--primary, #626E82);--ez-text-input__input--error--border-color:var(--color-alert--error-800,#BD0025);--ez-text-input__input--noborder-color:white;--ez-text-input__input--padding:var(--space--medium, 6px);--ez-text-input__placeholder--color:var(--text--secondary, #a2abb9);--ez-text-input__tooltip_icon--error--color:var(--color-alert--error-800,#BD0025);--ez-text-input__label--floating--top:6px;--ez-text-input__label--padding-top:12px;--ez-text-input__label--padding-left:14px;--ez-text-input__label--padding-right:12px;--ez-text-input__input--focus--icon-color:var(--title--primary, #2B3A54);--ez-text-input__input--disabled--focus--icon-color:var(--text--primary, #626E82);--ez-text-input__tooltip-icon--spacing:var(--space--large);--ez-text-input__tooltip-icon---width:var(--space--large);--ez-text-input__tooltip-icon---horizontal-margin:var(--space--medium, 12px);--ez-text-input__tooltip-icon---vertical-margin:10px;display:flex;flex-wrap:wrap;position:relative;width:var(--ez-text-input--width);min-width:var(--ez-text-input__min-width);max-width:var(--ez-text-input__max-width)}:host(.grid_editor){--ez-text-input--height--slim:25px}input{width:100%;box-sizing:border-box;height:var(--ez-text-input--height);border-radius:var(--ez-text-input--border-radius);font-family:var(--ez-text-input--font-family);font-size:var(--ez-text-input--font-size);border:var(--ez-text-input__input--border);border-color:var(--ez-text-input__input--border-color);background-color:var(--ez-text-input__input--background-color);color:var(--ez-text-input--color);font-weight:var(--ez-text-input--font-weight);padding:var(--ez-text-input__input--padding);margin-bottom:var(--ez-text-input__margin-bottom)}input.no--margin{--ez-text-input__margin-bottom:0}input:disabled{background-color:var(--ez-text-input__input--disabled--background-color);color:var(--ez-text-input__input--disabled--color);cursor:not-allowed}input:focus{outline:none;border-color:var(--ez-text-input__input--focus--border-color)}input.icon--left{padding-left:var(--ez-text-input__icon--width)}input.icon--left.hasError{padding-right:var(--ez-text-input__icon--width)}input.icon--right{padding-right:var(--ez-text-input__icon--width)}input.icon--right.hasError{padding-right:calc(var(--ez-text-input__icon--width) + var(--ez-text-input__tooltip-icon--spacing))}input.hasError{color:var(--ez-text-input--color);border-color:var(--ez-text-input__input--error--border-color);padding-right:calc(var(--ez-text-input__tooltip-icon---width) + (2*var(--ez-text-input__tooltip-icon---horizontal-margin)))}input:disabled.hasError{color:var(--ez-text-input__input--disabled--color)}input.text--right{text-align:right}input:disabled,input:read-only{cursor:not-allowed}.hasError{color:var(--ez-text-input__tooltip_icon--error--color)}.input__label{box-sizing:border-box;position:absolute;z-index:var(--visible);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;-webkit-transition:font-size .05s, top .05s;transition:font-size .05s, top .05s;width:calc(100% - var(--ez-text-input__label--padding-right));left:var(--ez-text-input--space--medium);font-family:var(--ez-text-input--font-family);font-size:var(--ez-text-input--font-size);font-weight:var(--ez-text-input--font-weight);color:var(--ez-text-input--color);top:var(--ez-text-input__label--padding-top);left:var(--ez-text-input__label--padding-left);padding-right:var(--ez-text-input__label--padding-right)}.input__label.hasError{width:calc(100% - 2*(var(--ez-text-input__tooltip-icon--spacing)))}.input__label--floated{font-family:var(--ez-text-input--font-family);font-size:var(--text--extra-small);color:var(--text--primary);top:var(--ez-text-input__label--floating--top)}.input__label--disabled{color:var(--ez-text-input__input--disabled--color);cursor:not-allowed}.input__label--left{text-align:left;left:calc(var(--ez-text-input__icon--width) + 2px);width:calc(100% - var(--ez-text-input__icon--width))}.input__label--left.hasError{width:calc(100% - var(--ez-text-input__icon--width) - var(--ez-text-input__tooltip-icon--spacing))}.input__label--right{right:var(--ez-text-input__icon--width);width:calc(100% - var(--ez-text-input__icon--width))}.input__label--right.hasError{width:calc(100% - var(--ez-text-input__icon--width) - var(--ez-text-input__tooltip-icon--spacing))}.input__label--left.input__label--right{left:calc(var(--ez-text-input__icon--width) + 2px);width:calc(100% - var(--ez-text-input__icon--width) * 2)}.input--with--label{padding-bottom:0}.input--slim{padding-top:var(--space--small, 3px);padding-bottom:var(--space--small, 3px);height:var(--ez-text-input--height--slim)}.input__slim--title{font-size:16px;font-weight:bold}.input--slim::-webkit-input-placeholder,.input--slim:-moz-placeholder,.input--slim::-moz-placeholder,.input--slim:-ms-input-placeholder,.input--slim::placeholder{font-family:var(--ez-text-input--font-family);font-size:var(--ez-text-input--font-size);font-weight:var(--ez-text-input--font-weight);color:var(--ez-text-input__placeholder--color)}.input--slim:disabled::-webkit-input-placeholder,.input--slim:disabled:-moz-placeholder,.input--slim:disabled::-moz-placeholder,.input--slim:disabled:-ms-input-placeholder,.input--slim:disabled::placeholder{color:var(--ez-text-input__input--disabled--color)}input.input__slim--noborder{box-shadow:0 0 0 0;border:0 none;outline:0;background:var(--ez-text-input__input--noborder-color)}ez-icon.tooltip-icon{position:absolute;display:flex;align-items:center;justify-content:center;overflow:hidden;width:var(--ez-text-input__tooltip-icon---width);height:22px;margin:var(--ez-text-input__tooltip-icon---vertical-margin) var(--ez-text-input__tooltip-icon---horizontal-margin);top:0;right:0;z-index:var(--elevation--4);border-radius:var(--ez-text-input--border-radius)}ez-icon.tooltip-icon.rightIconSlot{right:var(--ez-text-input__tooltip-icon--spacing)}ez-icon.tooltip-icon.hasError{--ez-icon--color:var(--ez-text-input__tooltip_icon--error--color)}";
9
36
 
10
37
  const EzTextInput = class {
11
38
  constructor(hostRef) {
@@ -16,23 +43,26 @@ const EzTextInput = class {
16
43
  this.enabled = true;
17
44
  this.errorMessage = undefined;
18
45
  this.mask = undefined;
46
+ this.cleanValueMask = false;
19
47
  this.canShowError = true;
20
48
  this.restrict = undefined;
21
49
  this.mode = "regular";
22
50
  this.noBorder = false;
23
51
  this.password = false;
52
+ this.autoFocus = false;
53
+ this.hasRightSlotContent = false;
24
54
  }
25
55
  observeErrorMessage() {
26
56
  if (this._inputElem) {
27
57
  this.isInvalid().then((hasError) => {
28
- var _a, _b;
58
+ var _a;
29
59
  if (hasError) {
30
60
  this._inputElem.classList.add("hasError");
31
- (_a = this._messageBoxElem) === null || _a === void 0 ? void 0 : _a.classList.add("hasError");
61
+ (_a = this._tooltipPositioningObserver) === null || _a === void 0 ? void 0 : _a.observe(this._inputElem);
32
62
  }
33
63
  else {
34
64
  this._inputElem.classList.remove("hasError");
35
- (_b = this._messageBoxElem) === null || _b === void 0 ? void 0 : _b.classList.remove("hasError");
65
+ this.removeGlobalTooltip();
36
66
  }
37
67
  });
38
68
  }
@@ -130,7 +160,12 @@ const EzTextInput = class {
130
160
  const value = this._inputElem.value;
131
161
  if (value && this._maskFormatter) {
132
162
  try {
133
- this._inputElem.value = this._maskFormatter.format(value);
163
+ if (this.cleanValueMask) {
164
+ this.applyMask(value);
165
+ }
166
+ else {
167
+ this._inputElem.value = this._maskFormatter.format(value);
168
+ }
134
169
  }
135
170
  catch (e) {
136
171
  this.errorMessage = e.message;
@@ -148,8 +183,34 @@ const EzTextInput = class {
148
183
  }
149
184
  controlChangeValue() {
150
185
  if (this._inputElem && (this.value || '') !== this._inputElem.value) {
151
- this.value = this._inputElem.value;
186
+ if (this.cleanValueMask) {
187
+ this.value = this._maskFormatter.removeMask(this._inputElem.value);
188
+ }
189
+ else {
190
+ this.value = this._inputElem.value;
191
+ }
192
+ }
193
+ }
194
+ applyMask(value) {
195
+ if (!value || value === "")
196
+ return value;
197
+ if (this._maskFormatter) {
198
+ try {
199
+ const formattedValue = this._maskFormatter.applyMask(this._maskFormatter.removeMask(value));
200
+ if (this._inputElem) {
201
+ this._inputElem.value = formattedValue;
202
+ return this._inputElem.value;
203
+ }
204
+ else {
205
+ this.value = formattedValue;
206
+ return this.value;
207
+ }
208
+ }
209
+ catch (e) {
210
+ this.errorMessage = e.message;
211
+ }
152
212
  }
213
+ return value;
153
214
  }
154
215
  handleChange() {
155
216
  if (!this._inputElem) {
@@ -165,8 +226,10 @@ const EzTextInput = class {
165
226
  this.controlChangeValue();
166
227
  }
167
228
  handleSlotChange(ev) {
229
+ var _a;
168
230
  const slot = ev.target;
169
231
  const content = slot.assignedElements()[0];
232
+ this.hasRightSlotContent = false;
170
233
  if (content) {
171
234
  content.style.position = "absolute";
172
235
  content.style.display = "flex";
@@ -192,6 +255,10 @@ const EzTextInput = class {
192
255
  if (this._labelElem) {
193
256
  this._labelElem.classList.add("input__label--right");
194
257
  }
258
+ if (this._tooltipIconElem) {
259
+ this._tooltipIconElem.classList.add("rightIconSlot");
260
+ }
261
+ this.hasRightSlotContent = ((_a = content.children) === null || _a === void 0 ? void 0 : _a.length) > 0;
195
262
  }
196
263
  slot.name && core.ElementIDUtils.addIDInfo(content, slot.name);
197
264
  }
@@ -203,21 +270,50 @@ const EzTextInput = class {
203
270
  }
204
271
  this.adjustColorContentSlot("var(--ez-text-input__input--focus--icon-color)");
205
272
  }
273
+ renderGlobalTooltip() {
274
+ const tooltip = document.createElement('ez-tooltip');
275
+ tooltip.errorMessage = this.errorMessage;
276
+ tooltip.anchoringElement = this._tooltipIconElem;
277
+ document.body.appendChild(tooltip);
278
+ this._tooltipElem = tooltip;
279
+ }
280
+ removeGlobalTooltip() {
281
+ var _a;
282
+ if (!this._tooltipElem)
283
+ return;
284
+ this._tooltipElem.remove();
285
+ this._tooltipElem = undefined;
286
+ (_a = this._tooltipPositioningObserver) === null || _a === void 0 ? void 0 : _a.unobserve(this._inputElem);
287
+ }
288
+ createTooltipPositioningObserver() {
289
+ const observer = new ResizeObserver(() => {
290
+ if (!this._tooltipElem)
291
+ return;
292
+ if (!this._tooltipIconElem)
293
+ return;
294
+ clearTimeout(this._observerDebounceTimeout);
295
+ this._observerDebounceTimeout = setTimeout(async () => {
296
+ if (this._tooltipElem) {
297
+ await this._tooltipElem.positionTooltip();
298
+ }
299
+ }, 200);
300
+ });
301
+ this._tooltipPositioningObserver = observer;
302
+ }
206
303
  //---------------------------------------------
207
304
  // Lifecycle web component
208
305
  //---------------------------------------------
209
- componentDidLoad() {
210
- this.observeErrorMessage();
211
- this.observeMask();
212
- this.adjustFloatingLabel();
213
- this.adjustBorderInput();
214
- }
215
306
  componentWillLoad() {
216
307
  this.observeMask();
217
308
  if (this.value) {
218
309
  if (this._maskFormatter) {
219
310
  try {
220
- this.value = this._maskFormatter.format(this.value);
311
+ if (this.cleanValueMask) {
312
+ this.applyMask(this.value);
313
+ }
314
+ else {
315
+ this.value = this._maskFormatter.format(this.value);
316
+ }
221
317
  }
222
318
  catch (e) {
223
319
  this.errorMessage = e.message;
@@ -229,12 +325,52 @@ const EzTextInput = class {
229
325
  }
230
326
  }
231
327
  }
328
+ componentDidLoad() {
329
+ var _a, _b;
330
+ this.observeErrorMessage();
331
+ this.observeMask();
332
+ this.adjustFloatingLabel();
333
+ this.adjustBorderInput();
334
+ if (this.autoFocus) {
335
+ requestAnimationFrame(() => {
336
+ this.setFocus({ selectText: true });
337
+ });
338
+ }
339
+ (_a = this._inputElem) === null || _a === void 0 ? void 0 : _a.addEventListener('focus', () => {
340
+ var _a;
341
+ this._inputElem.setSelectionRange(0, (_a = this._inputElem) === null || _a === void 0 ? void 0 : _a.value.length);
342
+ });
343
+ this.createTooltipPositioningObserver();
344
+ if (this._inputElem) {
345
+ (_b = this._tooltipPositioningObserver) === null || _b === void 0 ? void 0 : _b.observe(this._inputElem);
346
+ applyEllipsisToInput(this._inputElem);
347
+ }
348
+ }
349
+ componentDidRender() {
350
+ if (this._tooltipIconElem && !this._tooltipElem) {
351
+ this.renderGlobalTooltip();
352
+ }
353
+ }
354
+ componentDidUpdate() {
355
+ if (this._tooltipIconElem && this._tooltipElem) {
356
+ this._tooltipElem.positionTooltip();
357
+ }
358
+ }
359
+ disconnectedCallback() {
360
+ if (this._tooltipPositioningObserver) {
361
+ this._tooltipPositioningObserver.disconnect();
362
+ }
363
+ if (this._observerDebounceTimeout) {
364
+ clearTimeout(this._observerDebounceTimeout);
365
+ }
366
+ this.removeGlobalTooltip();
367
+ }
232
368
  render() {
233
369
  core.ElementIDUtils.addIDInfoIfNotExists(this._hostElement, 'input');
234
370
  return (index.h(index.Host, { style: this._hostElement.classList.contains("grid_editor") ? { "height": "100%" } : null }, index.h("slot", { name: "leftIcon", onSlotchange: (ev) => { this.handleSlotChange(ev); } }), this.label && this.mode != "slim" ?
235
- index.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)
236
- : null, index.h("input", { "data-element-id": core.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(); } }), index.h("slot", { name: "rightIcon", onSlotchange: (ev) => { this.handleSlotChange(ev); } }), this.canShowError && this.mode != "slim" &&
237
- index.h("span", { class: "message-box", ref: (el) => this._messageBoxElem = el, title: this.errorMessage, "data-element-id": core.ElementIDUtils.getInternalIDInfo("message_box") }, this.errorMessage)));
371
+ index.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)
372
+ : null, index.h("input", { "data-element-id": core.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(); } }), this.canShowError && this.mode != "slim" && this.errorMessage &&
373
+ index.h("ez-icon", { class: `tooltip-icon ${this.errorMessage ? "hasError" : ""} ${this.hasRightSlotContent ? "rightIconSlot" : ""}`, "data-element-id": core.ElementIDUtils.getInternalIDInfo("tooltip-icon"), ref: (el) => this._tooltipIconElem = el, iconName: "alert-circle" }), index.h("slot", { name: "rightIcon", onSlotchange: (ev) => { this.handleSlotChange(ev); } }, " ")));
238
374
  }
239
375
  get _hostElement() { return index.getElement(this); }
240
376
  static get watchers() { return {
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-a7b0c73d.js');
6
6
  const core = require('@sankhyalabs/core');
7
- const CSSVarsUtils = require('./CSSVarsUtils-10c9d5b4.js');
7
+ const CSSVarsUtils = require('./CSSVarsUtils-f20973d1.js');
8
8
 
9
9
  const ezTimeInputCss = ":host{display:flex;flex-wrap:wrap;position:relative;width:100%}.time__input{height:100%}";
10
10
 
@@ -21,6 +21,7 @@ const EzTimeInput = class {
21
21
  this.showSeconds = false;
22
22
  this.mode = "regular";
23
23
  this.canShowError = true;
24
+ this.autoFocus = false;
24
25
  }
25
26
  observeErrorMessage() {
26
27
  var _a;
@@ -141,6 +142,11 @@ const EzTimeInput = class {
141
142
  //---------------------------------------------
142
143
  componentDidLoad() {
143
144
  CSSVarsUtils.CSSVarsUtils.applyVarsTextInput(this._elem, this._textInput);
145
+ if (this.autoFocus) {
146
+ requestAnimationFrame(() => {
147
+ this.setFocus({ selectText: true });
148
+ });
149
+ }
144
150
  }
145
151
  componentWillLoad() {
146
152
  this.observeShowSeconds();