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