@sankhyalabs/ezui 5.22.0-dev.11 → 5.22.0-dev.111

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 (409) hide show
  1. package/dist/cjs/{CSSVarsUtils-10c9d5b4.js → CSSVarsUtils-f20973d1.js} +1 -0
  2. package/dist/cjs/DataBinder-c2060474.js +446 -0
  3. package/dist/cjs/FocusResolver-885f2173.js +35 -0
  4. package/dist/cjs/FormLayout-c2451c7f.js +7 -0
  5. package/dist/cjs/{constants-2714478b.js → constants-569271bc.js} +4 -0
  6. package/dist/cjs/ez-actions-button.cjs.entry.js +6 -4
  7. package/dist/cjs/ez-badge.cjs.entry.js +14 -2
  8. package/dist/cjs/ez-button.cjs.entry.js +11 -5
  9. package/dist/cjs/ez-card-item_2.cjs.entry.js +270 -0
  10. package/dist/cjs/ez-check.cjs.entry.js +1 -1
  11. package/dist/cjs/ez-chip.cjs.entry.js +1 -1
  12. package/dist/cjs/ez-collapsible-box.cjs.entry.js +3 -2
  13. package/dist/cjs/ez-combo-box-list_3.cjs.entry.js +388 -0
  14. package/dist/cjs/ez-combo-box.cjs.entry.js +78 -156
  15. package/dist/cjs/ez-date-input.cjs.entry.js +15 -19
  16. package/dist/cjs/ez-date-time-input.cjs.entry.js +14 -20
  17. package/dist/cjs/ez-dialog.cjs.entry.js +14 -7
  18. package/dist/cjs/ez-double-list.cjs.entry.js +287 -0
  19. package/dist/cjs/ez-dropdown.cjs.entry.js +14 -8
  20. package/dist/cjs/ez-filter-input.cjs.entry.js +129 -0
  21. package/dist/cjs/ez-form-view.cjs.entry.js +41 -27
  22. package/dist/cjs/ez-form.cjs.entry.js +34 -327
  23. package/dist/cjs/ez-grid.cjs.entry.js +15147 -69779
  24. package/dist/cjs/ez-icon.cjs.entry.js +1 -1
  25. package/dist/cjs/ez-list.cjs.entry.js +258 -211
  26. package/dist/cjs/ez-modal-container.cjs.entry.js +2 -2
  27. package/dist/cjs/ez-modal.cjs.entry.js +13 -4
  28. package/dist/cjs/ez-multi-selection-list.cjs.entry.js +2 -2
  29. package/dist/cjs/ez-number-input.cjs.entry.js +15 -3
  30. package/dist/cjs/ez-popover-plus_3.cjs.entry.js +209 -0
  31. package/dist/cjs/ez-popup.cjs.entry.js +25 -3
  32. package/dist/cjs/ez-scroller_2.cjs.entry.js +3 -3
  33. package/dist/cjs/ez-search-plus.cjs.entry.js +394 -0
  34. package/dist/cjs/ez-search-result-list.cjs.entry.js +97 -0
  35. package/dist/cjs/ez-search.cjs.entry.js +123 -191
  36. package/dist/cjs/ez-sidebar-navigator.cjs.entry.js +1 -1
  37. package/dist/cjs/ez-skeleton.cjs.entry.js +1 -1
  38. package/dist/cjs/ez-split-button.cjs.entry.js +2 -2
  39. package/dist/cjs/ez-split-item.cjs.entry.js +8 -4
  40. package/dist/cjs/ez-split-panel.cjs.entry.js +68 -6
  41. package/dist/cjs/ez-text-area.cjs.entry.js +68 -6
  42. package/dist/cjs/ez-text-input.cjs.entry.js +114 -28
  43. package/dist/cjs/ez-time-input.cjs.entry.js +7 -1
  44. package/dist/cjs/ez-tooltip.cjs.entry.js +135 -0
  45. package/dist/cjs/ez-tree.cjs.entry.js +5 -4
  46. package/dist/cjs/ezListHelper-0d3970b4.js +90 -0
  47. package/dist/cjs/ezui.cjs.js +1 -1
  48. package/dist/cjs/filter-column.cjs.entry.js +10 -47
  49. package/dist/cjs/floating-ui.dom.esm-017acce4.js +1404 -0
  50. package/dist/cjs/index-a7b0c73d.js +32 -8
  51. package/dist/cjs/loader.cjs.js +1 -1
  52. package/dist/cjs/searchFormatters-b7e1ed1e.js +23 -0
  53. package/dist/cjs/{ICustomRender-6fafffce.js → types-6a5df0c7.js} +8 -0
  54. package/dist/collection/collection-manifest.json +20 -2
  55. package/dist/collection/components/ez-actions-button/ez-actions-button.js +3 -2
  56. package/dist/collection/components/ez-badge/ez-badge.css +12 -1
  57. package/dist/collection/components/ez-badge/ez-badge.js +31 -1
  58. package/dist/collection/components/ez-button/ez-button.css +24 -14
  59. package/dist/collection/components/ez-button/ez-button.js +12 -6
  60. package/dist/collection/components/ez-card-item/ez-card-item.css +58 -10
  61. package/dist/collection/components/ez-card-item/ez-card-item.js +30 -3
  62. package/dist/collection/components/ez-check/ez-check.css +1 -6
  63. package/dist/collection/components/ez-chip/ez-chip.css +5 -1
  64. package/dist/collection/components/ez-collapsible-box/ez-collapsible-box.css +2 -2
  65. package/dist/collection/components/ez-combo-box/ez-combo-box-list/ez-combo-box-list.css +205 -0
  66. package/dist/collection/components/ez-combo-box/ez-combo-box-list/ez-combo-box-list.js +426 -0
  67. package/dist/collection/components/ez-combo-box/ez-combo-box.css +8 -247
  68. package/dist/collection/components/ez-combo-box/ez-combo-box.js +121 -165
  69. package/dist/collection/components/ez-date-input/ez-date-input.css +1 -1
  70. package/dist/collection/components/ez-date-input/ez-date-input.js +40 -19
  71. package/dist/collection/components/ez-date-time-input/ez-date-time-input.css +1 -1
  72. package/dist/collection/components/ez-date-time-input/ez-date-time-input.js +39 -20
  73. package/dist/collection/components/ez-dialog/ez-dialog.css +3 -3
  74. package/dist/collection/components/ez-dialog/ez-dialog.js +14 -16
  75. package/dist/collection/components/ez-double-list/doubleListHelper.js +82 -0
  76. package/dist/collection/components/ez-double-list/ez-double-list.css +62 -0
  77. package/dist/collection/components/ez-double-list/ez-double-list.js +440 -0
  78. package/dist/collection/components/ez-dropdown/ez-dropdown.js +33 -8
  79. package/dist/collection/components/ez-filter-input/ez-filter-input.css +1 -1
  80. package/dist/collection/components/ez-filter-input/ez-filter-input.js +35 -4
  81. package/dist/collection/components/ez-form/ez-form.js +32 -4
  82. package/dist/collection/components/ez-form-view/custom-input/ez-custom-form-input.js +49 -6
  83. package/dist/collection/components/ez-form-view/ez-form-view.css +13 -2
  84. package/dist/collection/components/ez-form-view/ez-form-view.js +21 -2
  85. package/dist/collection/components/ez-form-view/fieldbuilder/FieldBuilder.js +5 -2
  86. package/dist/collection/components/ez-form-view/fieldbuilder/templates/CheckBox.tpl.js +1 -1
  87. package/dist/collection/components/ez-form-view/fieldbuilder/templates/ComboBox.tpl.js +1 -1
  88. package/dist/collection/components/ez-form-view/fieldbuilder/templates/DateInput.tpl.js +8 -4
  89. package/dist/collection/components/ez-form-view/fieldbuilder/templates/FileInput.tpl.js +1 -1
  90. package/dist/collection/components/ez-form-view/fieldbuilder/templates/NumberInput.tpl.js +1 -1
  91. package/dist/collection/components/ez-form-view/fieldbuilder/templates/SearchInput.tpl.js +1 -1
  92. package/dist/collection/components/ez-form-view/fieldbuilder/templates/SearchInputPlus.tpl.js +6 -0
  93. package/dist/collection/components/ez-form-view/fieldbuilder/templates/TextArea.tpl.js +1 -1
  94. package/dist/collection/components/ez-form-view/fieldbuilder/templates/TextInput.tpl.js +2 -2
  95. package/dist/collection/components/ez-grid/controller/ag-grid/AgGridController.js +387 -73
  96. package/dist/collection/components/ez-grid/controller/ag-grid/DataSource.js +170 -33
  97. package/dist/collection/components/ez-grid/controller/ag-grid/DataSourceInterceptor.js +2 -1
  98. package/dist/collection/components/ez-grid/controller/ag-grid/GridEditionManager.js +244 -43
  99. package/dist/collection/components/ez-grid/controller/ag-grid/components/EzGridCustomCellEditor.js +16 -0
  100. package/dist/collection/components/ez-grid/controller/ag-grid/components/EzGridCustomHeader.js +1 -1
  101. package/dist/collection/components/ez-grid/controller/ag-grid/editor/EzCellEditor.js +10 -0
  102. package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/ComboBox.tpl.js +2 -0
  103. package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/DateInput.tpl.js +1 -0
  104. package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/NumberInput.tpl.js +1 -0
  105. package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/Search.tpl.js +8 -1
  106. package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/SearchPlus.tpl.js +15 -0
  107. package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/TextInput.tpl.js +4 -1
  108. package/dist/collection/components/ez-grid/controller/ag-grid/test/constants/GridEditionMock.js +2 -0
  109. package/dist/collection/components/ez-grid/ez-grid.css +95 -10
  110. package/dist/collection/components/ez-grid/ez-grid.js +375 -12
  111. package/dist/collection/components/ez-grid/subcomponents/filter-column.css +4 -0
  112. package/dist/collection/components/ez-grid/subcomponents/filter-column.js +9 -46
  113. package/dist/collection/components/ez-grid/utils/ColumnFilterManager.js +7 -54
  114. package/dist/collection/components/ez-grid/utils/InMemoryFilterColumnDataSource.js +20 -4
  115. package/dist/collection/components/ez-icon/ez-icon.css +156 -149
  116. package/dist/collection/components/ez-list/ez-list.css +5 -4
  117. package/dist/collection/components/ez-list/ez-list.js +301 -212
  118. package/dist/collection/components/ez-list/ezListHelper.js +85 -0
  119. package/dist/collection/components/ez-modal/ez-modal.css +7 -2
  120. package/dist/collection/components/ez-modal/ez-modal.js +14 -5
  121. package/dist/collection/components/ez-modal-container/ez-modal-container.css +1 -0
  122. package/dist/collection/components/ez-modal-container/ez-modal-container.js +1 -1
  123. package/dist/collection/components/ez-multi-selection-list/ez-multi-selection-list.css +3 -3
  124. package/dist/collection/components/ez-multi-selection-list/ez-multi-selection-list.js +1 -1
  125. package/dist/collection/components/ez-number-input/ez-number-input.css +8 -0
  126. package/dist/collection/components/ez-number-input/ez-number-input.js +49 -1
  127. package/dist/collection/components/ez-popover-plus/ez-popover-plus.css +3 -0
  128. package/dist/collection/components/ez-popover-plus/ez-popover-plus.js +434 -0
  129. package/dist/collection/components/ez-popover-plus/subcomponent/ez-popover-core.css +67 -0
  130. package/dist/collection/components/ez-popover-plus/subcomponent/ez-popover-core.js +527 -0
  131. package/dist/collection/components/ez-popup/ez-popup.css +8 -3
  132. package/dist/collection/components/ez-popup/ez-popup.js +44 -4
  133. package/dist/collection/components/ez-scroller/ez-scroller.css +4 -0
  134. package/dist/collection/components/ez-search/ez-search.css +2 -210
  135. package/dist/collection/components/ez-search/ez-search.js +205 -204
  136. package/dist/collection/components/ez-search/subcomponent/search-list/search-list.css +227 -0
  137. package/dist/collection/components/ez-search/subcomponent/search-list/search-list.js +289 -0
  138. package/dist/collection/components/ez-search/utils/searchFormatters.js +18 -0
  139. package/dist/collection/components/ez-search-plus/ez-search-plus.css +373 -0
  140. package/dist/collection/components/ez-search-plus/ez-search-plus.js +980 -0
  141. package/dist/collection/components/ez-search-plus/subcomponent/ez-search-result-list/ez-search-result-list.css +221 -0
  142. package/dist/collection/components/ez-search-plus/subcomponent/ez-search-result-list/ez-search-result-list.js +278 -0
  143. package/dist/collection/components/ez-sidebar-button/ez-sidebar-button.css +3 -0
  144. package/dist/collection/components/ez-sidebar-button/ez-sidebar-button.js +1 -1
  145. package/dist/collection/components/ez-sidebar-navigator/ez-sidebar-navigator.css +4 -1
  146. package/dist/collection/components/ez-skeleton/ez-skeleton.css +54 -34
  147. package/dist/collection/components/ez-split-button/ez-split-button.css +52 -14
  148. package/dist/collection/components/ez-split-button/ez-split-button.js +3 -3
  149. package/dist/collection/components/ez-split-panel/ez-split-panel.css +15 -0
  150. package/dist/collection/components/ez-split-panel/ez-split-panel.js +106 -5
  151. package/dist/collection/components/ez-split-panel/interfaces/IPanelSizeInfo.js +1 -0
  152. package/dist/collection/components/ez-split-panel/structure/item/ez-split-item.css +14 -2
  153. package/dist/collection/components/ez-split-panel/structure/item/ez-split-item.js +22 -1
  154. package/dist/collection/components/ez-text-area/ez-text-area.css +78 -29
  155. package/dist/collection/components/ez-text-area/ez-text-area.js +104 -4
  156. package/dist/collection/components/ez-text-input/ez-text-input.css +127 -94
  157. package/dist/collection/components/ez-text-input/ez-text-input.js +174 -27
  158. package/dist/collection/components/ez-time-input/ez-time-input.js +24 -0
  159. package/dist/collection/components/ez-tooltip/ez-tooltip.css +61 -0
  160. package/dist/collection/components/ez-tooltip/ez-tooltip.js +310 -0
  161. package/dist/collection/components/ez-tree/ez-tree.js +21 -1
  162. package/dist/collection/components/ez-tree/subcomponents/TreeItem.js +3 -3
  163. package/dist/collection/sw.js +46 -0
  164. package/dist/collection/utils/CSSVarsUtils.js +1 -0
  165. package/dist/collection/utils/FocusResolver.js +31 -0
  166. package/dist/collection/utils/constants.js +2 -0
  167. package/dist/collection/utils/form/DataBinder.js +25 -9
  168. package/dist/collection/utils/form/FormMetadata.js +2 -1
  169. package/dist/collection/utils/form/interfaces/FormLayout.js +5 -0
  170. package/dist/collection/utils/form/interfaces/index.js +1 -1
  171. package/dist/collection/utils/index.js +2 -0
  172. package/dist/collection/utils/interfaces/AbstractFieldMetadata.js +1 -1
  173. package/dist/collection/utils/search/types.js +7 -0
  174. package/dist/collection/utils/validators/recordvalidator/IInvalidCells.js +1 -0
  175. package/dist/collection/utils/validators/recordvalidator/RecordValidationProcessor.js +7 -1
  176. package/dist/custom-elements/index.d.ts +48 -0
  177. package/dist/custom-elements/index.js +21484 -72872
  178. package/dist/esm/{CSSVarsUtils-71ce76be.js → CSSVarsUtils-acba92d7.js} +1 -0
  179. package/dist/esm/DataBinder-89946126.js +442 -0
  180. package/dist/esm/FocusResolver-1ccbf850.js +33 -0
  181. package/dist/esm/FormLayout-54092963.js +7 -0
  182. package/dist/esm/constants-b036528f.js +7 -0
  183. package/dist/esm/ez-actions-button.entry.js +6 -4
  184. package/dist/esm/ez-badge.entry.js +14 -2
  185. package/dist/esm/ez-button.entry.js +11 -5
  186. package/dist/esm/ez-card-item_2.entry.js +265 -0
  187. package/dist/esm/ez-check.entry.js +1 -1
  188. package/dist/esm/ez-chip.entry.js +1 -1
  189. package/dist/esm/ez-collapsible-box.entry.js +3 -2
  190. package/dist/esm/ez-combo-box-list_3.entry.js +382 -0
  191. package/dist/esm/ez-combo-box.entry.js +79 -157
  192. package/dist/esm/ez-date-input.entry.js +15 -19
  193. package/dist/esm/ez-date-time-input.entry.js +14 -20
  194. package/dist/esm/ez-dialog.entry.js +15 -8
  195. package/dist/esm/ez-double-list.entry.js +283 -0
  196. package/dist/esm/ez-dropdown.entry.js +14 -8
  197. package/dist/esm/ez-filter-input.entry.js +125 -0
  198. package/dist/esm/ez-form-view.entry.js +42 -28
  199. package/dist/esm/ez-form.entry.js +33 -326
  200. package/dist/esm/ez-grid.entry.js +15146 -69778
  201. package/dist/esm/ez-icon.entry.js +1 -1
  202. package/dist/esm/ez-list.entry.js +258 -211
  203. package/dist/esm/ez-modal-container.entry.js +2 -2
  204. package/dist/esm/ez-modal.entry.js +13 -4
  205. package/dist/esm/ez-multi-selection-list.entry.js +2 -2
  206. package/dist/esm/ez-number-input.entry.js +15 -3
  207. package/dist/esm/ez-popover-plus_3.entry.js +203 -0
  208. package/dist/esm/ez-popup.entry.js +25 -3
  209. package/dist/esm/ez-scroller_2.entry.js +3 -3
  210. package/dist/esm/ez-search-plus.entry.js +390 -0
  211. package/dist/esm/ez-search-result-list.entry.js +93 -0
  212. package/dist/esm/ez-search.entry.js +124 -192
  213. package/dist/esm/ez-sidebar-navigator.entry.js +1 -1
  214. package/dist/esm/ez-skeleton.entry.js +1 -1
  215. package/dist/esm/ez-split-button.entry.js +2 -2
  216. package/dist/esm/ez-split-item.entry.js +8 -4
  217. package/dist/esm/ez-split-panel.entry.js +69 -7
  218. package/dist/esm/ez-text-area.entry.js +68 -6
  219. package/dist/esm/ez-text-input.entry.js +114 -28
  220. package/dist/esm/ez-time-input.entry.js +7 -1
  221. package/dist/esm/ez-tooltip.entry.js +131 -0
  222. package/dist/esm/ez-tree.entry.js +5 -4
  223. package/dist/esm/ezListHelper-00fb9b8d.js +87 -0
  224. package/dist/esm/ezui.js +1 -1
  225. package/dist/esm/filter-column.entry.js +10 -47
  226. package/dist/esm/floating-ui.dom.esm-5d3da819.js +1398 -0
  227. package/dist/esm/index-baa5e267.js +32 -8
  228. package/dist/esm/loader.js +1 -1
  229. package/dist/esm/searchFormatters-8229207e.js +20 -0
  230. package/dist/esm/{ICustomRender-875b5a40.js → types-6f6b2650.js} +9 -1
  231. package/dist/ezui/ezui.esm.js +1 -1
  232. package/dist/ezui/p-0bffeffc.entry.js +1 -0
  233. package/dist/ezui/p-0fa52b0f.entry.js +1 -0
  234. package/dist/ezui/p-0fb509ff.entry.js +1 -0
  235. package/dist/ezui/p-173f68ea.js +1 -0
  236. package/dist/ezui/p-17de16e5.entry.js +1 -0
  237. package/dist/ezui/p-1a060042.entry.js +1 -0
  238. package/dist/ezui/p-1ec8bdd2.entry.js +309 -0
  239. package/dist/ezui/p-20c024f7.entry.js +1 -0
  240. package/dist/ezui/p-248d4f54.entry.js +1 -0
  241. package/dist/ezui/p-2872fd16.entry.js +1 -0
  242. package/dist/ezui/p-288631d1.entry.js +1 -0
  243. package/dist/ezui/p-2b4df33d.entry.js +1 -0
  244. package/dist/ezui/p-31b71e50.entry.js +1 -0
  245. package/dist/ezui/p-40a60148.js +1 -0
  246. package/dist/ezui/{p-072e6347.entry.js → p-4cf0aaeb.entry.js} +1 -1
  247. package/dist/ezui/p-4e0628a7.entry.js +1 -0
  248. package/dist/ezui/p-56fe5341.entry.js +1 -0
  249. package/dist/ezui/p-5895e687.js +1 -0
  250. package/dist/ezui/p-5a14f506.entry.js +1 -0
  251. package/dist/ezui/p-5ec0ae79.entry.js +1 -0
  252. package/dist/ezui/p-5eea9886.js +1 -0
  253. package/dist/ezui/p-6825bdc7.entry.js +1 -0
  254. package/dist/ezui/p-7742802c.entry.js +1 -0
  255. package/dist/ezui/p-7e677b7b.entry.js +1 -0
  256. package/dist/ezui/{p-bf79aaa1.entry.js → p-7fdd479f.entry.js} +1 -1
  257. package/dist/ezui/p-80dfc50b.js +1 -0
  258. package/dist/ezui/p-84b1c99e.entry.js +1 -0
  259. package/dist/ezui/p-8ac8093c.entry.js +1 -0
  260. package/dist/ezui/p-9567b31a.entry.js +1 -0
  261. package/dist/ezui/p-9f22e1dc.entry.js +1 -0
  262. package/dist/ezui/p-a4cee65d.entry.js +1 -0
  263. package/dist/ezui/p-a64cfcfc.js +1 -0
  264. package/dist/ezui/p-bf9dec89.entry.js +1 -0
  265. package/dist/ezui/p-c1527804.entry.js +1 -0
  266. package/dist/ezui/p-cd07f8be.entry.js +1 -0
  267. package/dist/ezui/p-d9e4a85a.entry.js +1 -0
  268. package/dist/ezui/p-da1b4a38.entry.js +1 -0
  269. package/dist/ezui/p-dc628ed3.js +1 -0
  270. package/dist/ezui/p-dc73e1fe.entry.js +1 -0
  271. package/dist/ezui/{p-17be134a.entry.js → p-e06a9886.entry.js} +1 -1
  272. package/dist/ezui/p-e07e4671.js +1 -0
  273. package/dist/ezui/p-e3544d23.entry.js +1 -0
  274. package/dist/ezui/p-e6a9041d.entry.js +1 -0
  275. package/dist/ezui/p-e75c7a23.entry.js +1 -0
  276. package/dist/ezui/p-ea54d056.entry.js +1 -0
  277. package/dist/ezui/p-ec7db713.js +1 -0
  278. package/dist/ezui/p-ecaac11f.entry.js +1 -0
  279. package/dist/ezui/p-f4861c6a.entry.js +1 -0
  280. package/dist/ezui/p-f5a30e35.entry.js +1 -0
  281. package/dist/ezui/p-fa6732f2.entry.js +1 -0
  282. package/dist/types/components/ez-badge/ez-badge.d.ts +5 -0
  283. package/dist/types/components/ez-button/ez-button.d.ts +2 -1
  284. package/dist/types/components/ez-calendar/ez-calendar.d.ts +3 -3
  285. package/dist/types/components/ez-card-item/ez-card-item.d.ts +5 -0
  286. package/dist/types/components/ez-combo-box/ez-combo-box-list/ez-combo-box-list.d.ts +104 -0
  287. package/dist/types/components/ez-combo-box/ez-combo-box.d.ts +15 -15
  288. package/dist/types/components/ez-date-input/ez-date-input.d.ts +8 -3
  289. package/dist/types/components/ez-date-time-input/ez-date-time-input.d.ts +8 -3
  290. package/dist/types/components/ez-dialog/ez-dialog.d.ts +2 -1
  291. package/dist/types/components/ez-double-list/doubleListHelper.d.ts +10 -0
  292. package/dist/types/components/ez-double-list/ez-double-list.d.ts +87 -0
  293. package/dist/types/components/ez-dropdown/ez-dropdown.d.ts +4 -0
  294. package/dist/types/components/ez-dropdown/structure/DropdownItem.d.ts +1 -1
  295. package/dist/types/components/ez-filter-input/ez-filter-input.d.ts +6 -1
  296. package/dist/types/components/ez-form/ez-form.d.ts +5 -1
  297. package/dist/types/components/ez-form-view/custom-input/ez-custom-form-input.d.ts +7 -1
  298. package/dist/types/components/ez-form-view/ez-form-view.d.ts +4 -0
  299. package/dist/types/components/ez-form-view/fieldbuilder/templates/DateInput.tpl.d.ts +2 -1
  300. package/dist/types/components/ez-form-view/fieldbuilder/templates/SearchInputPlus.tpl.d.ts +2 -0
  301. package/dist/types/components/ez-form-view/fieldbuilder/templates/TextInput.tpl.d.ts +1 -1
  302. package/dist/types/components/ez-grid/controller/EzGridController.d.ts +75 -4
  303. package/dist/types/components/ez-grid/controller/ag-grid/AgGridController.d.ts +42 -6
  304. package/dist/types/components/ez-grid/controller/ag-grid/DataSource.d.ts +26 -2
  305. package/dist/types/components/ez-grid/controller/ag-grid/GridEditionManager.d.ts +34 -7
  306. package/dist/types/components/ez-grid/controller/ag-grid/components/EzGridCustomCellEditor.d.ts +4 -1
  307. package/dist/types/components/ez-grid/controller/ag-grid/components/EzGridCustomCellRender.d.ts +1 -1
  308. package/dist/types/components/ez-grid/controller/ag-grid/components/EzGridCustomHeader.d.ts +1 -1
  309. package/dist/types/components/ez-grid/controller/ag-grid/components/cellRendererStatus.d.ts +1 -1
  310. package/dist/types/components/ez-grid/controller/ag-grid/components/selectionHeader.d.ts +1 -1
  311. package/dist/types/components/ez-grid/controller/ag-grid/editor/EzCellEditor.d.ts +2 -1
  312. package/dist/types/components/ez-grid/controller/ag-grid/editor/EzCellRender.d.ts +1 -1
  313. package/dist/types/components/ez-grid/controller/ag-grid/editor/IUICellEditor.d.ts +1 -0
  314. package/dist/types/components/ez-grid/controller/ag-grid/editor/templates/SearchPlus.tpl.d.ts +3 -0
  315. package/dist/types/components/ez-grid/controller/ag-grid/mock/Server.d.ts +1 -1
  316. package/dist/types/components/ez-grid/ez-grid.d.ts +59 -1
  317. package/dist/types/components/ez-grid/subcomponents/filter-column.d.ts +0 -11
  318. package/dist/types/components/ez-grid/utils/ColumnFilterManager.d.ts +1 -1
  319. package/dist/types/components/ez-grid/utils/InMemoryFilterColumnDataSource.d.ts +3 -0
  320. package/dist/types/components/ez-list/ez-list.d.ts +23 -2
  321. package/dist/types/components/ez-list/ezListHelper.d.ts +20 -0
  322. package/dist/types/components/ez-modal/ez-modal.d.ts +2 -1
  323. package/dist/types/components/ez-number-input/ez-number-input.d.ts +8 -0
  324. package/dist/types/components/ez-popover-plus/ez-popover-plus.d.ts +74 -0
  325. package/dist/types/components/ez-popover-plus/subcomponent/ez-popover-core.d.ts +91 -0
  326. package/dist/types/components/ez-popup/ez-popup.d.ts +8 -1
  327. package/dist/types/components/ez-search/ez-search.d.ts +32 -18
  328. package/dist/types/components/ez-search/subcomponent/search-list/search-list.d.ts +23 -0
  329. package/dist/types/components/ez-search/utils/searchFormatters.d.ts +2 -0
  330. package/dist/types/components/ez-search-plus/ez-search-plus.d.ts +186 -0
  331. package/dist/types/components/ez-search-plus/subcomponent/ez-search-result-list/ez-search-result-list.d.ts +26 -0
  332. package/dist/types/components/ez-split-button/ez-split-button.d.ts +1 -1
  333. package/dist/types/components/ez-split-panel/ez-split-panel.d.ts +11 -0
  334. package/dist/types/components/ez-split-panel/interfaces/IPanelSizeInfo.d.ts +9 -0
  335. package/dist/types/components/ez-split-panel/structure/item/ez-split-item.d.ts +5 -0
  336. package/dist/types/components/ez-text-area/ez-text-area.d.ts +17 -0
  337. package/dist/types/components/ez-text-input/ez-text-input.d.ts +27 -3
  338. package/dist/types/components/ez-time-input/ez-time-input.d.ts +4 -0
  339. package/dist/types/components/ez-tooltip/ez-tooltip.d.ts +57 -0
  340. package/dist/types/components/ez-tree/ez-tree.d.ts +4 -0
  341. package/dist/types/components/ez-tree/interfaces/ITreeItem.d.ts +1 -0
  342. package/dist/types/components/ez-tree/subcomponents/TreeItem.d.ts +1 -0
  343. package/dist/types/components.d.ts +1170 -72
  344. package/dist/types/utils/FocusResolver.d.ts +5 -0
  345. package/dist/types/utils/constants.d.ts +2 -0
  346. package/dist/types/utils/customEditor/interfaces/ICustomEditor.d.ts +2 -0
  347. package/dist/types/utils/form/DataBinder.d.ts +3 -0
  348. package/dist/types/utils/form/interfaces/FormLayout.d.ts +4 -0
  349. package/dist/types/utils/form/interfaces/index.d.ts +1 -0
  350. package/dist/types/utils/index.d.ts +2 -0
  351. package/dist/types/utils/search/types.d.ts +12 -0
  352. package/dist/types/utils/validators/recordvalidator/IInvalidCells.d.ts +5 -0
  353. package/dist/types/utils/validators/recordvalidator/RecordValidationProcessor.d.ts +1 -1
  354. package/package.json +12 -4
  355. package/react/components.d.ts +62 -54
  356. package/react/components.js +8 -0
  357. package/react/components.js.map +1 -1
  358. package/react/react-component-lib/createComponent.d.ts +1 -1
  359. package/react/react-component-lib/createComponent.js.map +1 -1
  360. package/react/react-component-lib/createOverlayComponent.js.map +1 -1
  361. package/react/react-component-lib/interfaces.js +1 -0
  362. package/react/react-component-lib/utils/attachProps.d.ts +1 -1
  363. package/react/react-component-lib/utils/attachProps.js.map +1 -1
  364. package/react/react-component-lib/utils/dev.js.map +1 -1
  365. package/react/react-component-lib/utils/index.d.ts +2 -2
  366. package/react/react-component-lib/utils/index.js.map +1 -1
  367. package/dist/cjs/RecordValidationProcessor-4c893e04.js +0 -102
  368. package/dist/cjs/ez-card-item_3.cjs.entry.js +0 -183
  369. package/dist/cjs/ez-custom-form-input_2.cjs.entry.js +0 -206
  370. package/dist/esm/RecordValidationProcessor-b00b8b77.js +0 -99
  371. package/dist/esm/constants-4e0d35b7.js +0 -5
  372. package/dist/esm/ez-card-item_3.entry.js +0 -177
  373. package/dist/esm/ez-custom-form-input_2.entry.js +0 -201
  374. package/dist/ezui/p-04f24913.js +0 -1
  375. package/dist/ezui/p-05e1f4e7.js +0 -1
  376. package/dist/ezui/p-1285c902.entry.js +0 -1
  377. package/dist/ezui/p-13d2fe2d.entry.js +0 -1
  378. package/dist/ezui/p-2097d0cf.entry.js +0 -1
  379. package/dist/ezui/p-32e553e5.entry.js +0 -304
  380. package/dist/ezui/p-33286e5f.entry.js +0 -1
  381. package/dist/ezui/p-34b6916c.entry.js +0 -1
  382. package/dist/ezui/p-3b4eeeb6.entry.js +0 -1
  383. package/dist/ezui/p-3faa2b46.entry.js +0 -1
  384. package/dist/ezui/p-42533ea4.entry.js +0 -1
  385. package/dist/ezui/p-4607fb89.js +0 -1
  386. package/dist/ezui/p-49456b34.entry.js +0 -1
  387. package/dist/ezui/p-4d5235f1.entry.js +0 -1
  388. package/dist/ezui/p-5bd5e68f.entry.js +0 -1
  389. package/dist/ezui/p-650e4b6d.entry.js +0 -1
  390. package/dist/ezui/p-784fe207.entry.js +0 -1
  391. package/dist/ezui/p-7af81663.entry.js +0 -1
  392. package/dist/ezui/p-7bc07c31.entry.js +0 -1
  393. package/dist/ezui/p-84e439b9.entry.js +0 -1
  394. package/dist/ezui/p-85c8baae.entry.js +0 -1
  395. package/dist/ezui/p-8888d9ed.entry.js +0 -1
  396. package/dist/ezui/p-8d4d90ec.entry.js +0 -1
  397. package/dist/ezui/p-9050d2cd.entry.js +0 -1
  398. package/dist/ezui/p-922ac38b.entry.js +0 -1
  399. package/dist/ezui/p-9e11fc7b.js +0 -1
  400. package/dist/ezui/p-a31b9c90.entry.js +0 -1
  401. package/dist/ezui/p-af95cd16.entry.js +0 -1
  402. package/dist/ezui/p-bae4e180.entry.js +0 -1
  403. package/dist/ezui/p-baf80b13.entry.js +0 -1
  404. package/dist/ezui/p-bcb53f27.entry.js +0 -1
  405. package/dist/ezui/p-cdc472cc.entry.js +0 -1
  406. package/dist/ezui/p-d9401ea0.entry.js +0 -1
  407. package/dist/ezui/p-e85c48d7.entry.js +0 -1
  408. package/dist/ezui/p-ecc2c1ec.entry.js +0 -1
  409. package/dist/ezui/p-fcf0acce.entry.js +0 -1
@@ -5,7 +5,7 @@ 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 ezSplitButtonCss = ":host{--ez-split-button--min-width:24;--ez-split-button--width:'auto';--ez-split-button__medium--height:32px;--ez-split-button__large--height:42px;--ez-split-button__medium-icon--width:40px;--ez-split-button__large-icon--width:44px;--ez-split-button__inline__icon--gap:6px;--ez-split-button__label--padding-top:0px;--ez-split-button__label--padding-bottom:0px;--ez-split-button__right-button--padding-left:8px;--ez-split-button--color:var(--title--primary, #FFF);--ez-split-button--font-size:var(--text--medium, 14px);--ez-split-button--font-family:var(--font-pattern, Arial);--ez-split-button--font-weight:var(--text-weight--large);--ez-split-button--background-color:var(--background--medium, #008561);--ez-split-button--border-radius:var(--border--radius-large, 12px);--ez-split-button--border:none;--ez-split-button--justify-content:center;--ez-split-button--hover-color:var(--color--primary-600);--ez-split-button--hover--background-color:var(--background--medium, var(--ez-split-button--background-color));--ez-split-button--disabled-color:var(--text--disable);--ez-split-button--disabled--background-color:var(--color--disable-secondary);--ez-split-button--focus--border:var(--border--medium, 2px) var(--color--primary-300);--ez-split-button--focus--box-shadow:none;--ez-split-button--active-color:var(--color--primary-700);--ez-split-button--active--background-color:var(--background--strong)}ez-icon{--ez-icon--color:inherit}button{position:relative;display:flex;align-items:center;margin:0;cursor:pointer;transition:background-color 0.2s linear;white-space:nowrap;min-width:var(--ez-split-button--min-width);width:var(--ez-split-button--width);height:var(--ez-split-button__medium--height);font-family:var(--ez-split-button--font-family);font-size:var(--ez-split-button--font-size);font-weight:var(--ez-split-button--font-weight);padding:var(--ez-split-button__label--padding-top) 0 var(--ez-split-button__label--padding-bottom) 0;border-top-left-radius:var(--ez-split-button--border-radius);border-bottom-left-radius:var(--ez-split-button--border-radius);background-color:var(--ez-split-button--background-color);color:var(--ez-split-button--color);fill:var(--ez-split-button--color);border:var(--ez-split-button--border);justify-content:var(--ez-split-button--justify-content)}label{cursor:pointer}button:active{outline:none;box-shadow:none;background-color:var(--ez-split-button--active--background-color);color:var(--ez-split-button--active-color);fill:var(--ez-split-button--active-color);--ez-icon--color:var(--ez-split-button--active-color)}.ez-split-button__left-button:focus,.ez-split-button__right-button:focus{outline:var(--ez-split-button--focus--border);box-shadow:var(--ez-split-button--focus--box-shadow)}.ez-split-button__left-button:hover,.ez-split-button__right-button:hover{outline:none;background-color:var(--ez-split-button--hover--background-color);color:var(--ez-split-button--hover-color);fill:var(--ez-split-button--hover-color);--ez-icon--color:var(--ez-split-button--hover-color)}.ez-split-button__left-button:disabled,.ez-split-button__left-button:disabled label,.ez-split-button__right-button:disabled{background-color:var(--ez-split-button--disabled--background-color);color:var(--ez-split-button--disabled-color);fill:var(--ez-split-button--disabled-color);border:none;--ez-icon--color:var(--ez-split-button--disabled-color);cursor:not-allowed}button.large{height:var(--ez-split-button__large--height)}button.medium{height:var(--ez-split-button__medium--height)}.default label{padding:var(--ez-split-button__label--padding-top) 12px var(--ez-split-button__label--padding-bottom) 20px}.icon-left{gap:var(--ez-split-button__inline__icon--gap)}.icon-left label{padding-right:12px}.icon-left ez-icon{padding-left:20px}.icon-only{padding-left:12px;padding-right:12px}.ez-split-button__right-button{border-top-right-radius:var(--ez-split-button--border-radius);border-bottom-right-radius:var(--ez-split-button--border-radius);border-top-left-radius:0;border-bottom-left-radius:0}.ez-split-button__right-button--medium{min-width:var(--ez-split-button__medium-icon--width)}.ez-split-button__right-button--large{min-width:var(--ez-split-button__large-icon--width)}.ez-split-button__right-button--divider{top:10%;bottom:10%}.ez-split-button__right-button--divider:before{content:\"\";position:absolute;left:0;border-left:1px solid rgba(0, 0, 0, 20%);border-radius:2px;height:75%}.btn-icon--medium{min-width:--ez-split-button__medium-icon--width}.btn-icon--large{min-width:--ez-split-button__large-icon--width}.ez-split-button__right-button-container{position:absolute;left:0;padding-left:var(--ez-split-button__right-button--padding-left)}.label-icon{display:flex;flex-direction:row;align-items:center;color:var(--ez-split-button--color)}.label-icon:active{color:var(--ez-split-button--active-color);fill:var(--ez-split-button--active-color);--ez-icon--color:var(--ez-split-button--active-color)}.dropdown{display:flex}.dropdown-content{display:block;position:absolute;background-color:#f1f1f1;min-width:160px;z-index:--ez-elevation--8;border-radius:var(--ez-split-button--border-radius)}.dropdown-content>ez-dropdown{position:relative}";
8
+ const ezSplitButtonCss = ":host{--ez-split-button--min-width:24;--ez-split-button--width:'auto';--ez-split-button__medium--height:32px;--ez-split-button__large--height:42px;--ez-split-button__medium-icon--width:40px;--ez-split-button__large-icon--width:44px;--ez-split-button__inline__icon--gap:6px;--ez-split-button__label--padding-top:0px;--ez-split-button__label--padding-bottom:0px;--ez-split-button__right-button--padding-left:8px;--ez-split-button--color:var(--title--primary, #2B3A54);--ez-split-button--font-size:var(--text--small, 12px);--ez-split-button--font-family:var(--font-pattern, Arial);--ez-split-button--font-weight:var(--text-weight--large);--ez-split-button--background-color:var(--background--light, #ffffff);--ez-split-button--border-radius:var(--border--radius-large, 24px);--ez-split-button--border:1px solid var(--color--strokes);--ez-split-button--justify-content:center;--ez-split-button--hover-color:var(--color--primary-600, #007a5a);--ez-split-button--hover--background-color:var(--background--light, #ffffff);--ez-split-button--disabled-color:var(--text--primary);--ez-split-button--disabled--background-color:var(--background--medium);--ez-split-button--focus--border:var(--border--medium, 2px) var(--color--primary-300);--ez-split-button--focus--box-shadow:none;--ez-split-button--active-color:var(--color--primary-700);--ez-split-button--active--background-color:var(--background--strong)}ez-icon{--ez-icon--color:inherit}button{position:relative;display:flex;align-items:center;margin:0;cursor:pointer;transition:background-color 0.2s linear;white-space:nowrap;min-width:var(--ez-split-button--min-width);width:var(--ez-split-button--width);height:var(--ez-split-button__medium--height);font-family:var(--ez-split-button--font-family);font-size:var(--ez-split-button--font-size);font-weight:var(--ez-split-button--font-weight);padding:var(--ez-split-button__label--padding-top) 0 var(--ez-split-button__label--padding-bottom) 0;border-top-left-radius:var(--ez-split-button--border-radius);border-bottom-left-radius:var(--ez-split-button--border-radius);background-color:var(--ez-split-button--background-color);color:var(--ez-split-button--color);fill:var(--ez-split-button--color);border:none;justify-content:var(--ez-split-button--justify-content)}label{cursor:pointer}button:active{outline:none;box-shadow:none;background-color:var(--ez-split-button--active--background-color);color:var(--ez-split-button--active-color);fill:var(--ez-split-button--active-color);--ez-icon--color:var(--ez-split-button--active-color)}.ez-split-button__left-button{border:var(--ez-split-button--border);border-right:none;outline:none}.ez-split-button__right-button{border:var(--ez-split-button--border);border-left:none;outline:none}.ez-split-button__left-button:focus{box-shadow:0 0 0 2px var(--color--primary-300), \n 0 2px 0 0 var(--color--primary-300), \n 0 -2px 0 0 var(--color--primary-300);}.ez-split-button__right-button:focus{box-shadow:2px 0 0 0 var(--color--primary-300), \n 0 2px 0 0 var(--color--primary-300), \n 0 -2px 0 0 var(--color--primary-300);}.ez-split-button__left-button:hover,.ez-split-button__right-button:hover{outline:none;background-color:var(--ez-split-button--hover--background-color);color:var(--ez-split-button--hover-color);fill:var(--ez-split-button--hover-color);--ez-icon--color:var(--ez-split-button--hover-color)}.ez-split-button__left-button:active,.ez-split-button__right-button:active{outline:none;box-shadow:none;background-color:var(--ez-split-button--active--background-color);color:var(--ez-split-button--active-color);fill:var(--ez-split-button--active-color);--ez-icon--color:var(--ez-split-button--active-color)}.ez-split-button__left-button:disabled,.ez-split-button__left-button:disabled label,.ez-split-button__right-button:disabled{background-color:var(--ez-split-button--disabled--background-color);color:var(--ez-split-button--disabled-color);fill:var(--ez-split-button--disabled-color);border:none;--ez-icon--color:var(--ez-split-button--disabled-color);cursor:not-allowed}.ez-split-button__left-button:disabled{border:var(--ez-split-button--disabled-border);border-right:none}.ez-split-button__right-button:disabled{border:var(--ez-split-button--disabled-border);border-left:none}button.large{height:var(--ez-split-button__large--height)}button.medium{height:var(--ez-split-button__medium--height)}.default label{padding:var(--ez-split-button__label--padding-top) 12px var(--ez-split-button__label--padding-bottom) 20px}.icon-left{gap:var(--ez-split-button__inline__icon--gap)}.icon-left label{padding-right:12px}.icon-left ez-icon{padding-left:20px}.icon-only{padding-left:12px;padding-right:12px}.ez-split-button__right-button{border-top-right-radius:var(--ez-split-button--border-radius);border-bottom-right-radius:var(--ez-split-button--border-radius);border-top-left-radius:0;border-bottom-left-radius:0;border-right:var(--ez-split-button--border)}.ez-split-button__right-button--medium{min-width:var(--ez-split-button__medium-icon--width)}.ez-split-button__right-button--large{min-width:var(--ez-split-button__large-icon--width)}.ez-split-button__right-button--divider{top:10%;bottom:10%}.ez-split-button__right-button--divider:before{content:\"\";position:absolute;left:0;border-left:1px solid rgba(0, 0, 0, 20%);border-radius:2px;height:75%}.btn-icon--medium{min-width:--ez-split-button__medium-icon--width}.btn-icon--large{min-width:--ez-split-button__large-icon--width}.ez-split-button__right-button-container{position:absolute;left:0;padding-left:var(--ez-split-button__right-button--padding-left)}.label-icon{display:flex;flex-direction:row;align-items:center;color:var(--ez-split-button--color)}.label-icon:active{color:var(--ez-split-button--active-color);fill:var(--ez-split-button--active-color);--ez-icon--color:var(--ez-split-button--active-color)}.dropdown{display:flex}.dropdown-content{display:block;position:absolute;background-color:#f1f1f1;min-width:160px;z-index:--ez-elevation--8;border-radius:var(--ez-split-button--border-radius)}.dropdown-content>ez-dropdown{position:relative}";
9
9
 
10
10
  const EzSplitButton = class {
11
11
  constructor(hostRef) {
@@ -53,7 +53,7 @@ const EzSplitButton = class {
53
53
  }
54
54
  getIconSize(sizeParam = 'medium') {
55
55
  var _a;
56
- const sizeList = ['medium', 'large'];
56
+ const sizeList = ['small', 'medium', 'large'];
57
57
  const sizeLowerCase = (_a = this.size) === null || _a === void 0 ? void 0 : _a.toLowerCase();
58
58
  return sizeList.includes(sizeLowerCase) ? sizeLowerCase : sizeParam;
59
59
  }
@@ -4,13 +4,14 @@ 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
- require('./ICustomRender-6fafffce.js');
11
+ require('./types-6a5df0c7.js');
12
+ require('./FormLayout-c2451c7f.js');
12
13
 
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)}";
14
+ 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
15
 
15
16
  const SplitItem = class {
16
17
  constructor(hostRef) {
@@ -19,18 +20,21 @@ const SplitItem = class {
19
20
  this.enableExpand = true;
20
21
  this._expanded = false;
21
22
  this.size = undefined;
23
+ this.structural = false;
22
24
  }
23
25
  /**
24
26
  * Alterna a visibilidade do painel.
25
27
  */
26
28
  toggleExpandItem() {
29
+ var _a, _b;
27
30
  this._expanded = !this._expanded;
31
+ (_b = (_a = this.expandButtonRef.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector('button')) === null || _b === void 0 ? void 0 : _b.blur();
28
32
  }
29
33
  componentDidLoad() {
30
34
  CSSVarsUtils.CSSVarsUtils.applyVarsGrid(this._element, this._slot.children[0]);
31
35
  }
32
36
  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))));
37
+ 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
38
  }
35
39
  };
36
40
  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,37 +5,39 @@ 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
+ const ezTextInputCss = ":host{--ez-text-input--height:42px;--ez-text-input--width:100%;--ez-text-input__icon--width:30px;--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--border-top-left-radius:var(--ez-text-input--border-radius);--ez-text-input--border-bottom-left-radius:var(--ez-text-input--border-radius);--ez-text-input--border-top-right-radius:var(--ez-text-input--border-radius);--ez-text-input--border-bottom-right-radius:var(--ez-text-input--border-radius);--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;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;height:var(--ez-text-input--height);border-top-left-radius:var(--ez-text-input--border-top-left-radius);border-bottom-left-radius:var(--ez-text-input--border-bottom-left-radius);border-top-right-radius:var(--ez-text-input--border-top-right-radius);border-bottom-right-radius:var(--ez-text-input--border-bottom-right-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:var(--border--medium, 2px solid);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:var(--border--medium, 2px solid);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(--elevation--24, 24);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
9
 
10
10
  const EzTextInput = class {
11
11
  constructor(hostRef) {
12
12
  index.registerInstance(this, hostRef);
13
13
  this.ezChange = index.createEvent(this, "ezChange", 7);
14
+ this._isOverflowing = false;
14
15
  this.label = undefined;
15
16
  this.value = undefined;
16
17
  this.enabled = true;
17
18
  this.errorMessage = undefined;
19
+ this.hasInvalid = false;
18
20
  this.mask = undefined;
21
+ this.cleanValueMask = false;
19
22
  this.canShowError = true;
20
23
  this.restrict = undefined;
21
24
  this.mode = "regular";
22
25
  this.noBorder = false;
23
26
  this.password = false;
27
+ this.autoFocus = false;
28
+ this.hasRightSlotContent = false;
24
29
  }
25
- observeErrorMessage() {
26
- if (this._inputElem) {
27
- this.isInvalid().then((hasError) => {
28
- var _a, _b;
29
- if (hasError) {
30
- this._inputElem.classList.add("hasError");
31
- (_a = this._messageBoxElem) === null || _a === void 0 ? void 0 : _a.classList.add("hasError");
32
- }
33
- else {
34
- this._inputElem.classList.remove("hasError");
35
- (_b = this._messageBoxElem) === null || _b === void 0 ? void 0 : _b.classList.remove("hasError");
36
- }
37
- });
30
+ observeHasInvalid(newValue, oldValue) {
31
+ if (newValue === oldValue) {
32
+ return;
38
33
  }
34
+ this.validateErrors();
35
+ }
36
+ observeErrorMessage(newValue, oldValue) {
37
+ if (newValue === oldValue) {
38
+ return;
39
+ }
40
+ this.validateErrors();
39
41
  }
40
42
  observeMask() {
41
43
  if (this.mask) {
@@ -53,6 +55,7 @@ const EzTextInput = class {
53
55
  this._inputElem.value = this.value || "";
54
56
  this.handleChange();
55
57
  this.adjustFloatingLabel();
58
+ this.checkIsOverflowing();
56
59
  if (!this.isSlaveMode()) {
57
60
  this.errorMessage = "";
58
61
  this.ezChange.emit(this.value);
@@ -63,6 +66,25 @@ const EzTextInput = class {
63
66
  //---------------------------------------------
64
67
  // Private methods
65
68
  //---------------------------------------------
69
+ validateErrors() {
70
+ const hasErrorMessage = this.handleValidateErrorMessage(this.errorMessage);
71
+ const hasError = hasErrorMessage || this.hasInvalid;
72
+ this.updateClassError(hasError);
73
+ }
74
+ handleValidateErrorMessage(message = this.errorMessage) {
75
+ return typeof message === "string" && message.trim() !== "";
76
+ }
77
+ updateClassError(status) {
78
+ if (!this._inputElem) {
79
+ return;
80
+ }
81
+ if (status) {
82
+ this._inputElem.classList.add("hasError");
83
+ }
84
+ else {
85
+ this._inputElem.classList.remove("hasError");
86
+ }
87
+ }
66
88
  adjustFloatingLabel() {
67
89
  if (this.label && this._labelElem) {
68
90
  if (this._inputElem && !this._inputElem.classList.contains("input--with--label")) {
@@ -121,7 +143,7 @@ const EzTextInput = class {
121
143
  * Retorna se o conteúdo é inválido.
122
144
  */
123
145
  async isInvalid() {
124
- return typeof this.errorMessage === "string" && this.errorMessage.trim() !== "";
146
+ return this.handleValidateErrorMessage();
125
147
  }
126
148
  //---------------------------------------------
127
149
  // Event handlers
@@ -130,7 +152,12 @@ const EzTextInput = class {
130
152
  const value = this._inputElem.value;
131
153
  if (value && this._maskFormatter) {
132
154
  try {
133
- this._inputElem.value = this._maskFormatter.format(value);
155
+ if (this.cleanValueMask) {
156
+ this.applyMask(value);
157
+ }
158
+ else {
159
+ this._inputElem.value = this._maskFormatter.format(value);
160
+ }
134
161
  }
135
162
  catch (e) {
136
163
  this.errorMessage = e.message;
@@ -148,8 +175,34 @@ const EzTextInput = class {
148
175
  }
149
176
  controlChangeValue() {
150
177
  if (this._inputElem && (this.value || '') !== this._inputElem.value) {
151
- this.value = this._inputElem.value;
178
+ if (this.cleanValueMask) {
179
+ this.value = this._maskFormatter.removeMask(this._inputElem.value);
180
+ }
181
+ else {
182
+ this.value = this._inputElem.value;
183
+ }
184
+ }
185
+ }
186
+ applyMask(value) {
187
+ if (!value || value === "")
188
+ return value;
189
+ if (this._maskFormatter) {
190
+ try {
191
+ const formattedValue = this._maskFormatter.applyMask(this._maskFormatter.removeMask(value));
192
+ if (this._inputElem) {
193
+ this._inputElem.value = formattedValue;
194
+ return this._inputElem.value;
195
+ }
196
+ else {
197
+ this.value = formattedValue;
198
+ return this.value;
199
+ }
200
+ }
201
+ catch (e) {
202
+ this.errorMessage = e.message;
203
+ }
152
204
  }
205
+ return value;
153
206
  }
154
207
  handleChange() {
155
208
  if (!this._inputElem) {
@@ -165,8 +218,10 @@ const EzTextInput = class {
165
218
  this.controlChangeValue();
166
219
  }
167
220
  handleSlotChange(ev) {
221
+ var _a;
168
222
  const slot = ev.target;
169
223
  const content = slot.assignedElements()[0];
224
+ this.hasRightSlotContent = false;
170
225
  if (content) {
171
226
  content.style.position = "absolute";
172
227
  content.style.display = "flex";
@@ -192,10 +247,14 @@ const EzTextInput = class {
192
247
  if (this._labelElem) {
193
248
  this._labelElem.classList.add("input__label--right");
194
249
  }
250
+ if (this._tooltipIconElem) {
251
+ this._tooltipIconElem.classList.add("rightIconSlot");
252
+ }
253
+ this.hasRightSlotContent = ((_a = content.children) === null || _a === void 0 ? void 0 : _a.length) > 0;
195
254
  }
196
255
  slot.name && core.ElementIDUtils.addIDInfo(content, slot.name);
197
256
  }
198
- this.observeErrorMessage();
257
+ this.validateErrors();
199
258
  }
200
259
  doFocus() {
201
260
  if (this.label && this._labelElem && !this._labelElem.classList.contains("input__label--floated")) {
@@ -203,21 +262,30 @@ const EzTextInput = class {
203
262
  }
204
263
  this.adjustColorContentSlot("var(--ez-text-input__input--focus--icon-color)");
205
264
  }
265
+ getValue() {
266
+ return this.mask && this.cleanValueMask ? this.applyMask(this.value) : this.value;
267
+ }
268
+ checkIsOverflowing() {
269
+ if (this._inputElem) {
270
+ this._isOverflowing = this._inputElem.offsetWidth < this._inputElem.scrollWidth;
271
+ return;
272
+ }
273
+ this._isOverflowing = false;
274
+ }
206
275
  //---------------------------------------------
207
276
  // Lifecycle web component
208
277
  //---------------------------------------------
209
- componentDidLoad() {
210
- this.observeErrorMessage();
211
- this.observeMask();
212
- this.adjustFloatingLabel();
213
- this.adjustBorderInput();
214
- }
215
278
  componentWillLoad() {
216
279
  this.observeMask();
217
280
  if (this.value) {
218
281
  if (this._maskFormatter) {
219
282
  try {
220
- this.value = this._maskFormatter.format(this.value);
283
+ if (this.cleanValueMask) {
284
+ this.applyMask(this.value);
285
+ }
286
+ else {
287
+ this.value = this._maskFormatter.format(this.value);
288
+ }
221
289
  }
222
290
  catch (e) {
223
291
  this.errorMessage = e.message;
@@ -229,15 +297,33 @@ const EzTextInput = class {
229
297
  }
230
298
  }
231
299
  }
300
+ componentDidLoad() {
301
+ var _a;
302
+ this.validateErrors();
303
+ this.observeMask();
304
+ this.adjustFloatingLabel();
305
+ this.adjustBorderInput();
306
+ this.checkIsOverflowing();
307
+ if (this.autoFocus) {
308
+ requestAnimationFrame(() => {
309
+ this.setFocus({ selectText: true });
310
+ });
311
+ }
312
+ (_a = this._inputElem) === null || _a === void 0 ? void 0 : _a.addEventListener('focus', () => {
313
+ var _a;
314
+ this._inputElem.setSelectionRange(0, (_a = this._inputElem) === null || _a === void 0 ? void 0 : _a.value.length);
315
+ });
316
+ }
232
317
  render() {
233
318
  core.ElementIDUtils.addIDInfoIfNotExists(this._hostElement, 'input');
234
319
  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)));
320
+ 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)
321
+ : 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.getValue(), disabled: !this.enabled, onInput: () => { this.handleChange(); }, onFocusout: () => { this.handleFocusout(); } }), index.h("ez-tooltip", { anchoringElement: this._hostElement, message: this.getValue(), active: this._isOverflowing, useAnchorSize: true }), this.canShowError && this.mode != "slim" && this.errorMessage &&
322
+ index.h("ez-tooltip", { type: "error", message: this.errorMessage }, 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
323
  }
239
324
  get _hostElement() { return index.getElement(this); }
240
325
  static get watchers() { return {
326
+ "hasInvalid": ["observeHasInvalid"],
241
327
  "errorMessage": ["observeErrorMessage"],
242
328
  "mask": ["observeMask"],
243
329
  "value": ["observeValue"]