@sankhyalabs/ezui 5.22.0-dev.14 → 5.22.0-dev.140

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 (439) hide show
  1. package/dist/cjs/{CSSVarsUtils-10c9d5b4.js → CSSVarsUtils-f20973d1.js} +1 -0
  2. package/dist/cjs/FocusResolver-885f2173.js +35 -0
  3. package/dist/cjs/FormLayout-18853e70.js +27 -0
  4. package/dist/cjs/{constants-2714478b.js → constants-569271bc.js} +4 -0
  5. package/dist/cjs/ez-actions-button.cjs.entry.js +6 -5
  6. package/dist/cjs/ez-avatar.cjs.entry.js +50 -0
  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 +267 -0
  10. package/dist/cjs/ez-chart.cjs.entry.js +3 -3
  11. package/dist/cjs/ez-check.cjs.entry.js +18 -10
  12. package/dist/cjs/ez-chip.cjs.entry.js +1 -1
  13. package/dist/cjs/ez-collapsible-box.cjs.entry.js +2 -2
  14. package/dist/cjs/ez-combo-box-list_3.cjs.entry.js +387 -0
  15. package/dist/cjs/ez-combo-box.cjs.entry.js +80 -158
  16. package/dist/cjs/ez-date-input.cjs.entry.js +16 -19
  17. package/dist/cjs/ez-date-time-input.cjs.entry.js +15 -20
  18. package/dist/cjs/ez-dialog.cjs.entry.js +18 -8
  19. package/dist/cjs/ez-double-list.cjs.entry.js +287 -0
  20. package/dist/cjs/ez-dropdown.cjs.entry.js +14 -8
  21. package/dist/cjs/ez-filter-input.cjs.entry.js +129 -0
  22. package/dist/cjs/ez-form-view.cjs.entry.js +41 -27
  23. package/dist/cjs/ez-form.cjs.entry.js +89 -327
  24. package/dist/cjs/ez-grid.cjs.entry.js +15312 -69830
  25. package/dist/cjs/ez-icon.cjs.entry.js +12 -6
  26. package/dist/cjs/ez-list.cjs.entry.js +258 -211
  27. package/dist/cjs/ez-modal-container.cjs.entry.js +7 -3
  28. package/dist/cjs/ez-modal.cjs.entry.js +17 -4
  29. package/dist/cjs/ez-multi-selection-list.cjs.entry.js +2 -2
  30. package/dist/cjs/ez-number-input.cjs.entry.js +16 -3
  31. package/dist/cjs/ez-popover-plus_3.cjs.entry.js +238 -0
  32. package/dist/cjs/ez-popup.cjs.entry.js +29 -3
  33. package/dist/cjs/ez-scroller_2.cjs.entry.js +3 -3
  34. package/dist/cjs/ez-search-plus.cjs.entry.js +397 -0
  35. package/dist/cjs/ez-search-result-list.cjs.entry.js +97 -0
  36. package/dist/cjs/ez-search.cjs.entry.js +134 -191
  37. package/dist/cjs/ez-sidebar-navigator.cjs.entry.js +1 -1
  38. package/dist/cjs/ez-skeleton.cjs.entry.js +118 -36
  39. package/dist/cjs/ez-split-button.cjs.entry.js +16 -7
  40. package/dist/cjs/ez-split-item.cjs.entry.js +7 -4
  41. package/dist/cjs/ez-split-panel.cjs.entry.js +68 -6
  42. package/dist/cjs/ez-text-area.cjs.entry.js +91 -8
  43. package/dist/cjs/ez-text-input.cjs.entry.js +150 -31
  44. package/dist/cjs/ez-time-input.cjs.entry.js +9 -2
  45. package/dist/cjs/ez-tooltip.cjs.entry.js +135 -0
  46. package/dist/cjs/ez-tree.cjs.entry.js +5 -4
  47. package/dist/cjs/ezListHelper-0d3970b4.js +90 -0
  48. package/dist/cjs/ezui.cjs.js +1 -1
  49. package/dist/cjs/filter-column.cjs.entry.js +24 -52
  50. package/dist/cjs/floating-ui.dom.esm-017acce4.js +1404 -0
  51. package/dist/cjs/index-a7b0c73d.js +36 -8
  52. package/dist/cjs/loader.cjs.js +1 -1
  53. package/dist/cjs/search-column-27d1f72f.js +505 -0
  54. package/dist/cjs/searchFormatters-b7e1ed1e.js +23 -0
  55. package/dist/collection/collection-manifest.json +21 -2
  56. package/dist/collection/components/ez-actions-button/ez-actions-button.css +2 -0
  57. package/dist/collection/components/ez-actions-button/ez-actions-button.js +3 -2
  58. package/dist/collection/components/ez-avatar/ez-avatar.css +139 -0
  59. package/dist/collection/components/ez-avatar/ez-avatar.js +143 -0
  60. package/dist/collection/components/ez-badge/ez-badge.css +12 -1
  61. package/dist/collection/components/ez-badge/ez-badge.js +31 -1
  62. package/dist/collection/components/ez-button/ez-button.css +24 -14
  63. package/dist/collection/components/ez-button/ez-button.js +12 -6
  64. package/dist/collection/components/ez-card-item/ez-card-item.css +58 -10
  65. package/dist/collection/components/ez-card-item/ez-card-item.js +30 -3
  66. package/dist/collection/components/ez-chart/ez-chart.js +2 -2
  67. package/dist/collection/components/ez-chart/interfaces/ChartTypeValue.js +1 -0
  68. package/dist/collection/components/ez-chart/types/BaseHighChartsRender.js +3 -3
  69. package/dist/collection/components/ez-check/ez-check.css +10 -6
  70. package/dist/collection/components/ez-check/ez-check.js +34 -9
  71. package/dist/collection/components/ez-chip/ez-chip.css +5 -1
  72. package/dist/collection/components/ez-collapsible-box/ez-collapsible-box.css +1 -1
  73. package/dist/collection/components/ez-combo-box/ez-combo-box-list/ez-combo-box-list.css +205 -0
  74. package/dist/collection/components/ez-combo-box/ez-combo-box-list/ez-combo-box-list.js +426 -0
  75. package/dist/collection/components/ez-combo-box/ez-combo-box.css +8 -246
  76. package/dist/collection/components/ez-combo-box/ez-combo-box.js +141 -167
  77. package/dist/collection/components/ez-date-input/ez-date-input.css +1 -1
  78. package/dist/collection/components/ez-date-input/ez-date-input.js +58 -19
  79. package/dist/collection/components/ez-date-time-input/ez-date-time-input.css +1 -1
  80. package/dist/collection/components/ez-date-time-input/ez-date-time-input.js +57 -20
  81. package/dist/collection/components/ez-dialog/ez-dialog.css +27 -24
  82. package/dist/collection/components/ez-dialog/ez-dialog.js +18 -17
  83. package/dist/collection/components/ez-double-list/doubleListHelper.js +82 -0
  84. package/dist/collection/components/ez-double-list/ez-double-list.css +62 -0
  85. package/dist/collection/components/ez-double-list/ez-double-list.js +440 -0
  86. package/dist/collection/components/ez-dropdown/ez-dropdown.js +33 -8
  87. package/dist/collection/components/ez-filter-input/ez-filter-input.css +1 -1
  88. package/dist/collection/components/ez-filter-input/ez-filter-input.js +35 -4
  89. package/dist/collection/components/ez-form/ez-form.js +125 -4
  90. package/dist/collection/components/ez-form-view/custom-input/ez-custom-form-input.js +49 -6
  91. package/dist/collection/components/ez-form-view/ez-form-view.css +13 -2
  92. package/dist/collection/components/ez-form-view/ez-form-view.js +21 -2
  93. package/dist/collection/components/ez-form-view/fieldbuilder/FieldBuilder.js +5 -2
  94. package/dist/collection/components/ez-form-view/fieldbuilder/templates/CheckBox.tpl.js +1 -1
  95. package/dist/collection/components/ez-form-view/fieldbuilder/templates/ComboBox.tpl.js +1 -1
  96. package/dist/collection/components/ez-form-view/fieldbuilder/templates/DateInput.tpl.js +8 -4
  97. package/dist/collection/components/ez-form-view/fieldbuilder/templates/FileInput.tpl.js +1 -1
  98. package/dist/collection/components/ez-form-view/fieldbuilder/templates/NumberInput.tpl.js +1 -1
  99. package/dist/collection/components/ez-form-view/fieldbuilder/templates/SearchInput.tpl.js +1 -1
  100. package/dist/collection/components/ez-form-view/fieldbuilder/templates/SearchInputPlus.tpl.js +6 -0
  101. package/dist/collection/components/ez-form-view/fieldbuilder/templates/TextArea.tpl.js +1 -1
  102. package/dist/collection/components/ez-form-view/fieldbuilder/templates/TextInput.tpl.js +2 -2
  103. package/dist/collection/components/ez-grid/controller/ag-grid/AgGridController.js +443 -76
  104. package/dist/collection/components/ez-grid/controller/ag-grid/DataSource.js +172 -33
  105. package/dist/collection/components/ez-grid/controller/ag-grid/DataSourceInterceptor.js +2 -1
  106. package/dist/collection/components/ez-grid/controller/ag-grid/GridEditionManager.js +248 -43
  107. package/dist/collection/components/ez-grid/controller/ag-grid/components/EzGridCustomCellEditor.js +16 -0
  108. package/dist/collection/components/ez-grid/controller/ag-grid/components/EzGridCustomHeader.js +1 -1
  109. package/dist/collection/components/ez-grid/controller/ag-grid/editor/EzCellEditor.js +10 -0
  110. package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/ComboBox.tpl.js +2 -0
  111. package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/DateInput.tpl.js +1 -0
  112. package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/NumberInput.tpl.js +1 -0
  113. package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/Search.tpl.js +8 -1
  114. package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/SearchPlus.tpl.js +15 -0
  115. package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/TextInput.tpl.js +4 -1
  116. package/dist/collection/components/ez-grid/controller/ag-grid/test/constants/GridEditionMock.js +2 -0
  117. package/dist/collection/components/ez-grid/ez-grid.css +107 -10
  118. package/dist/collection/components/ez-grid/ez-grid.js +478 -22
  119. package/dist/collection/components/ez-grid/subcomponents/filter-column.css +4 -0
  120. package/dist/collection/components/ez-grid/subcomponents/filter-column.js +23 -51
  121. package/dist/collection/components/ez-grid/utils/ColumnFilterManager.js +7 -54
  122. package/dist/collection/components/ez-grid/utils/InMemoryFilterColumnDataSource.js +20 -4
  123. package/dist/collection/components/ez-icon/ez-icon.css +156 -149
  124. package/dist/collection/components/ez-icon/ez-icon.js +28 -5
  125. package/dist/collection/components/ez-list/ez-list.css +6 -4
  126. package/dist/collection/components/ez-list/ez-list.js +301 -212
  127. package/dist/collection/components/ez-list/ezListHelper.js +85 -0
  128. package/dist/collection/components/ez-modal/ez-modal.css +7 -2
  129. package/dist/collection/components/ez-modal/ez-modal.js +18 -5
  130. package/dist/collection/components/ez-modal-container/ez-modal-container.css +3 -1
  131. package/dist/collection/components/ez-modal-container/ez-modal-container.js +6 -2
  132. package/dist/collection/components/ez-multi-selection-list/ez-multi-selection-list.css +3 -3
  133. package/dist/collection/components/ez-multi-selection-list/ez-multi-selection-list.js +1 -1
  134. package/dist/collection/components/ez-multi-selection-list/interfaces/IStaticOptionsFetchConfig.js +1 -0
  135. package/dist/collection/components/ez-number-input/ez-number-input.css +8 -0
  136. package/dist/collection/components/ez-number-input/ez-number-input.js +67 -1
  137. package/dist/collection/components/ez-popover-plus/ez-popover-plus.css +3 -0
  138. package/dist/collection/components/ez-popover-plus/ez-popover-plus.js +434 -0
  139. package/dist/collection/components/ez-popover-plus/subcomponent/ez-popover-core.css +67 -0
  140. package/dist/collection/components/ez-popover-plus/subcomponent/ez-popover-core.js +524 -0
  141. package/dist/collection/components/ez-popup/ez-popup.css +8 -3
  142. package/dist/collection/components/ez-popup/ez-popup.js +48 -4
  143. package/dist/collection/components/ez-scroller/ez-scroller.css +4 -0
  144. package/dist/collection/components/ez-search/ez-search.css +2 -210
  145. package/dist/collection/components/ez-search/ez-search.js +234 -204
  146. package/dist/collection/components/ez-search/subcomponent/search-list/search-list.css +227 -0
  147. package/dist/collection/components/ez-search/subcomponent/search-list/search-list.js +318 -0
  148. package/dist/collection/components/ez-search/utils/searchFormatters.js +18 -0
  149. package/dist/collection/components/ez-search-plus/ez-search-plus.css +373 -0
  150. package/dist/collection/components/ez-search-plus/ez-search-plus.js +960 -0
  151. package/dist/collection/components/ez-search-plus/subcomponent/ez-search-result-list/ez-search-result-list.css +221 -0
  152. package/dist/collection/components/ez-search-plus/subcomponent/ez-search-result-list/ez-search-result-list.js +278 -0
  153. package/dist/collection/components/ez-sidebar-button/ez-sidebar-button.css +3 -0
  154. package/dist/collection/components/ez-sidebar-button/ez-sidebar-button.js +1 -1
  155. package/dist/collection/components/ez-sidebar-navigator/ez-sidebar-navigator.css +4 -1
  156. package/dist/collection/components/ez-skeleton/ez-skeleton.constants.js +25 -1
  157. package/dist/collection/components/ez-skeleton/ez-skeleton.css +140 -78
  158. package/dist/collection/components/ez-skeleton/ez-skeleton.js +210 -46
  159. package/dist/collection/components/ez-split-button/ez-split-button.css +53 -15
  160. package/dist/collection/components/ez-split-button/ez-split-button.js +90 -13
  161. package/dist/collection/components/ez-split-panel/ez-split-panel.css +15 -0
  162. package/dist/collection/components/ez-split-panel/ez-split-panel.js +106 -5
  163. package/dist/collection/components/ez-split-panel/interfaces/IPanelSizeInfo.js +1 -0
  164. package/dist/collection/components/ez-split-panel/structure/item/ez-split-item.css +14 -2
  165. package/dist/collection/components/ez-split-panel/structure/item/ez-split-item.js +22 -1
  166. package/dist/collection/components/ez-text-area/ez-text-area.css +78 -29
  167. package/dist/collection/components/ez-text-area/ez-text-area.js +151 -6
  168. package/dist/collection/components/ez-text-input/ez-text-input.css +133 -93
  169. package/dist/collection/components/ez-text-input/ez-text-input.js +231 -29
  170. package/dist/collection/components/ez-time-input/ez-time-input.js +43 -1
  171. package/dist/collection/components/ez-tooltip/ez-tooltip.css +62 -0
  172. package/dist/collection/components/ez-tooltip/ez-tooltip.js +310 -0
  173. package/dist/collection/components/ez-tree/ez-tree.js +21 -1
  174. package/dist/collection/components/ez-tree/subcomponents/TreeItem.js +3 -3
  175. package/dist/collection/sw.js +46 -0
  176. package/dist/collection/utils/CSSVarsUtils.js +1 -0
  177. package/dist/collection/utils/FocusResolver.js +31 -0
  178. package/dist/collection/utils/constants.js +2 -0
  179. package/dist/collection/utils/form/DataBinder.js +65 -21
  180. package/dist/collection/utils/form/FormMetadata.js +2 -1
  181. package/dist/collection/utils/form/interfaces/FormLayout.js +5 -0
  182. package/dist/collection/utils/form/interfaces/index.js +1 -1
  183. package/dist/collection/utils/form/test/DataBinder.test.js +14 -0
  184. package/dist/collection/utils/index.js +3 -0
  185. package/dist/collection/utils/interfaces/AbstractFieldMetadata.js +1 -1
  186. package/dist/collection/utils/search/types.js +7 -0
  187. package/dist/collection/utils/searchColumn/search-column.js +35 -0
  188. package/dist/collection/utils/validators/recordvalidator/IInvalidCells.js +1 -0
  189. package/dist/collection/utils/validators/recordvalidator/RecordValidationProcessor.js +7 -1
  190. package/dist/custom-elements/index.d.ts +54 -0
  191. package/dist/custom-elements/index.js +20058 -70949
  192. package/dist/esm/{CSSVarsUtils-71ce76be.js → CSSVarsUtils-acba92d7.js} +1 -0
  193. package/dist/esm/FocusResolver-1ccbf850.js +33 -0
  194. package/dist/esm/FormLayout-071d324c.js +27 -0
  195. package/dist/esm/constants-b036528f.js +7 -0
  196. package/dist/esm/ez-actions-button.entry.js +6 -5
  197. package/dist/esm/ez-avatar.entry.js +46 -0
  198. package/dist/esm/ez-badge.entry.js +14 -2
  199. package/dist/esm/ez-button.entry.js +11 -5
  200. package/dist/esm/ez-card-item_2.entry.js +262 -0
  201. package/dist/esm/ez-chart.entry.js +3 -3
  202. package/dist/esm/ez-check.entry.js +18 -10
  203. package/dist/esm/ez-chip.entry.js +1 -1
  204. package/dist/esm/ez-collapsible-box.entry.js +2 -2
  205. package/dist/esm/ez-combo-box-list_3.entry.js +381 -0
  206. package/dist/esm/ez-combo-box.entry.js +81 -159
  207. package/dist/esm/ez-date-input.entry.js +16 -19
  208. package/dist/esm/ez-date-time-input.entry.js +15 -20
  209. package/dist/esm/ez-dialog.entry.js +19 -9
  210. package/dist/esm/ez-double-list.entry.js +283 -0
  211. package/dist/esm/ez-dropdown.entry.js +14 -8
  212. package/dist/esm/ez-filter-input.entry.js +125 -0
  213. package/dist/esm/ez-form-view.entry.js +42 -28
  214. package/dist/esm/ez-form.entry.js +88 -326
  215. package/dist/esm/ez-grid.entry.js +15275 -69793
  216. package/dist/esm/ez-icon.entry.js +12 -6
  217. package/dist/esm/ez-list.entry.js +258 -211
  218. package/dist/esm/ez-modal-container.entry.js +7 -3
  219. package/dist/esm/ez-modal.entry.js +17 -4
  220. package/dist/esm/ez-multi-selection-list.entry.js +2 -2
  221. package/dist/esm/ez-number-input.entry.js +16 -3
  222. package/dist/esm/ez-popover-plus_3.entry.js +232 -0
  223. package/dist/esm/ez-popup.entry.js +29 -3
  224. package/dist/esm/ez-scroller_2.entry.js +3 -3
  225. package/dist/esm/ez-search-plus.entry.js +393 -0
  226. package/dist/esm/ez-search-result-list.entry.js +93 -0
  227. package/dist/esm/ez-search.entry.js +135 -192
  228. package/dist/esm/ez-sidebar-navigator.entry.js +1 -1
  229. package/dist/esm/ez-skeleton.entry.js +118 -36
  230. package/dist/esm/ez-split-button.entry.js +16 -7
  231. package/dist/esm/ez-split-item.entry.js +7 -4
  232. package/dist/esm/ez-split-panel.entry.js +69 -7
  233. package/dist/esm/ez-text-area.entry.js +91 -8
  234. package/dist/esm/ez-text-input.entry.js +150 -31
  235. package/dist/esm/ez-time-input.entry.js +9 -2
  236. package/dist/esm/ez-tooltip.entry.js +131 -0
  237. package/dist/esm/ez-tree.entry.js +5 -4
  238. package/dist/esm/ezListHelper-00fb9b8d.js +87 -0
  239. package/dist/esm/ezui.js +1 -1
  240. package/dist/esm/filter-column.entry.js +24 -52
  241. package/dist/esm/floating-ui.dom.esm-5d3da819.js +1398 -0
  242. package/dist/esm/index-baa5e267.js +36 -8
  243. package/dist/esm/loader.js +1 -1
  244. package/dist/esm/search-column-e609d513.js +495 -0
  245. package/dist/esm/searchFormatters-8229207e.js +20 -0
  246. package/dist/ezui/ezui.esm.js +1 -1
  247. package/dist/ezui/p-07894c4a.entry.js +1 -0
  248. package/dist/ezui/p-0d9856a4.entry.js +1 -0
  249. package/dist/ezui/p-1bcfd88c.entry.js +1 -0
  250. package/dist/ezui/p-1eb34cad.entry.js +1 -0
  251. package/dist/ezui/p-20c024f7.entry.js +1 -0
  252. package/dist/ezui/p-26685c50.entry.js +1 -0
  253. package/dist/ezui/p-288631d1.entry.js +1 -0
  254. package/dist/ezui/p-2b42abbb.entry.js +1 -0
  255. package/dist/ezui/p-2b4df33d.entry.js +1 -0
  256. package/dist/ezui/p-30ffb9ed.js +1 -0
  257. package/dist/ezui/p-33326ac5.entry.js +1 -0
  258. package/dist/ezui/p-341da682.entry.js +1 -0
  259. package/dist/ezui/p-35115d5d.entry.js +1 -0
  260. package/dist/ezui/p-3ba9565c.entry.js +1 -0
  261. package/dist/ezui/p-40a60148.js +1 -0
  262. package/dist/ezui/p-496f7832.entry.js +1 -0
  263. package/dist/ezui/p-4b67138e.entry.js +1 -0
  264. package/dist/ezui/p-4bd6dd6a.entry.js +1 -0
  265. package/dist/ezui/p-4d30b703.entry.js +1 -0
  266. package/dist/ezui/p-57363cfd.entry.js +1 -0
  267. package/dist/ezui/p-58f69d24.entry.js +1 -0
  268. package/dist/ezui/{p-84e439b9.entry.js → p-5dde9df3.entry.js} +1 -1
  269. package/dist/ezui/p-5eea9886.js +1 -0
  270. package/dist/ezui/p-69937816.entry.js +1 -0
  271. package/dist/ezui/p-7019f782.entry.js +1 -0
  272. package/dist/ezui/p-79044c3e.entry.js +1 -0
  273. package/dist/ezui/p-7e677b7b.entry.js +1 -0
  274. package/dist/ezui/p-7eae6986.entry.js +1 -0
  275. package/dist/ezui/p-80dfc50b.js +1 -0
  276. package/dist/ezui/p-9478b13b.entry.js +1 -0
  277. package/dist/ezui/p-9567b31a.entry.js +1 -0
  278. package/dist/ezui/p-97c7cf51.entry.js +1 -0
  279. package/dist/ezui/p-998afb6a.entry.js +1 -0
  280. package/dist/ezui/p-9c5cd3b2.entry.js +1 -0
  281. package/dist/ezui/p-a148e994.entry.js +1 -0
  282. package/dist/ezui/p-a3bf8cf1.entry.js +1 -0
  283. package/dist/ezui/p-b81881ac.entry.js +1 -0
  284. package/dist/ezui/p-bac0f920.entry.js +1 -0
  285. package/dist/ezui/p-bff24a7b.js +1 -0
  286. package/dist/ezui/p-cb75eb46.entry.js +1 -0
  287. package/dist/ezui/{p-5b205c80.entry.js → p-d47dabdf.entry.js} +1 -1
  288. package/dist/ezui/p-da1b4a38.entry.js +1 -0
  289. package/dist/ezui/p-dc628ed3.js +1 -0
  290. package/dist/ezui/p-dc73e1fe.entry.js +1 -0
  291. package/dist/ezui/{p-17be134a.entry.js → p-e06a9886.entry.js} +1 -1
  292. package/dist/ezui/p-e07e4671.js +1 -0
  293. package/dist/ezui/p-e09514b6.entry.js +309 -0
  294. package/dist/ezui/p-e6a9041d.entry.js +1 -0
  295. package/dist/ezui/p-e75c7a23.entry.js +1 -0
  296. package/dist/ezui/p-ec7db713.js +1 -0
  297. package/dist/ezui/p-fa6732f2.entry.js +1 -0
  298. package/dist/types/components/ez-avatar/ez-avatar.d.ts +24 -0
  299. package/dist/types/components/ez-badge/ez-badge.d.ts +5 -0
  300. package/dist/types/components/ez-button/ez-button.d.ts +2 -1
  301. package/dist/types/components/ez-calendar/ez-calendar.d.ts +3 -3
  302. package/dist/types/components/ez-card-item/ez-card-item.d.ts +5 -0
  303. package/dist/types/components/ez-chart/interfaces/ChartAxis.d.ts +2 -0
  304. package/dist/types/components/ez-chart/interfaces/ChartTypeValue.d.ts +1 -0
  305. package/dist/types/components/ez-check/ez-check.d.ts +7 -2
  306. package/dist/types/components/ez-combo-box/ez-combo-box-list/ez-combo-box-list.d.ts +104 -0
  307. package/dist/types/components/ez-combo-box/ez-combo-box.d.ts +19 -15
  308. package/dist/types/components/ez-date-input/ez-date-input.d.ts +12 -3
  309. package/dist/types/components/ez-date-time-input/ez-date-time-input.d.ts +12 -3
  310. package/dist/types/components/ez-dialog/ez-dialog.d.ts +3 -1
  311. package/dist/types/components/ez-double-list/doubleListHelper.d.ts +10 -0
  312. package/dist/types/components/ez-double-list/ez-double-list.d.ts +87 -0
  313. package/dist/types/components/ez-dropdown/ez-dropdown.d.ts +4 -0
  314. package/dist/types/components/ez-dropdown/structure/DropdownItem.d.ts +4 -4
  315. package/dist/types/components/ez-filter-input/ez-filter-input.d.ts +6 -1
  316. package/dist/types/components/ez-form/ez-form.d.ts +23 -1
  317. package/dist/types/components/ez-form-view/custom-input/ez-custom-form-input.d.ts +7 -1
  318. package/dist/types/components/ez-form-view/ez-form-view.d.ts +4 -0
  319. package/dist/types/components/ez-form-view/fieldbuilder/templates/DateInput.tpl.d.ts +2 -1
  320. package/dist/types/components/ez-form-view/fieldbuilder/templates/SearchInputPlus.tpl.d.ts +2 -0
  321. package/dist/types/components/ez-form-view/fieldbuilder/templates/TextInput.tpl.d.ts +1 -1
  322. package/dist/types/components/ez-grid/controller/EzGridController.d.ts +84 -5
  323. package/dist/types/components/ez-grid/controller/ag-grid/AgGridController.d.ts +47 -7
  324. package/dist/types/components/ez-grid/controller/ag-grid/DataSource.d.ts +26 -2
  325. package/dist/types/components/ez-grid/controller/ag-grid/GridEditionManager.d.ts +34 -7
  326. package/dist/types/components/ez-grid/controller/ag-grid/components/EzGridCustomCellEditor.d.ts +4 -1
  327. package/dist/types/components/ez-grid/controller/ag-grid/components/EzGridCustomCellRender.d.ts +1 -1
  328. package/dist/types/components/ez-grid/controller/ag-grid/components/EzGridCustomHeader.d.ts +1 -1
  329. package/dist/types/components/ez-grid/controller/ag-grid/components/cellRendererStatus.d.ts +1 -1
  330. package/dist/types/components/ez-grid/controller/ag-grid/components/selectionHeader.d.ts +1 -1
  331. package/dist/types/components/ez-grid/controller/ag-grid/editor/EzCellEditor.d.ts +2 -1
  332. package/dist/types/components/ez-grid/controller/ag-grid/editor/EzCellRender.d.ts +1 -1
  333. package/dist/types/components/ez-grid/controller/ag-grid/editor/IUICellEditor.d.ts +1 -0
  334. package/dist/types/components/ez-grid/controller/ag-grid/editor/templates/SearchPlus.tpl.d.ts +3 -0
  335. package/dist/types/components/ez-grid/controller/ag-grid/mock/Server.d.ts +1 -1
  336. package/dist/types/components/ez-grid/ez-grid.d.ts +74 -1
  337. package/dist/types/components/ez-grid/subcomponents/filter-column.d.ts +1 -11
  338. package/dist/types/components/ez-grid/utils/ColumnFilterManager.d.ts +1 -1
  339. package/dist/types/components/ez-grid/utils/InMemoryFilterColumnDataSource.d.ts +3 -0
  340. package/dist/types/components/ez-icon/ez-icon.d.ts +5 -0
  341. package/dist/types/components/ez-list/ez-list.d.ts +23 -2
  342. package/dist/types/components/ez-list/ezListHelper.d.ts +20 -0
  343. package/dist/types/components/ez-modal/ez-modal.d.ts +4 -1
  344. package/dist/types/components/ez-modal-container/ez-modal-container.d.ts +2 -0
  345. package/dist/types/components/ez-multi-selection-list/interfaces/IMultiSelectionListDataSource.d.ts +2 -1
  346. package/dist/types/components/ez-multi-selection-list/interfaces/IStaticOptionsFetchConfig.d.ts +3 -0
  347. package/dist/types/components/ez-number-input/ez-number-input.d.ts +12 -0
  348. package/dist/types/components/ez-popover-plus/ez-popover-plus.d.ts +74 -0
  349. package/dist/types/components/ez-popover-plus/subcomponent/ez-popover-core.d.ts +89 -0
  350. package/dist/types/components/ez-popup/ez-popup.d.ts +10 -1
  351. package/dist/types/components/ez-search/ez-search.d.ts +37 -18
  352. package/dist/types/components/ez-search/subcomponent/search-list/search-list.d.ts +29 -0
  353. package/dist/types/components/ez-search/utils/searchFormatters.d.ts +2 -0
  354. package/dist/types/components/ez-search-plus/ez-search-plus.d.ts +186 -0
  355. package/dist/types/components/ez-search-plus/subcomponent/ez-search-result-list/ez-search-result-list.d.ts +26 -0
  356. package/dist/types/components/ez-skeleton/ez-skeleton.constants.d.ts +55 -1
  357. package/dist/types/components/ez-skeleton/ez-skeleton.d.ts +50 -22
  358. package/dist/types/components/ez-split-button/ez-split-button.d.ts +15 -3
  359. package/dist/types/components/ez-split-panel/ez-split-panel.d.ts +11 -0
  360. package/dist/types/components/ez-split-panel/interfaces/IPanelSizeInfo.d.ts +9 -0
  361. package/dist/types/components/ez-split-panel/structure/item/ez-split-item.d.ts +5 -0
  362. package/dist/types/components/ez-text-area/ez-text-area.d.ts +25 -0
  363. package/dist/types/components/ez-text-input/ez-text-input.d.ts +37 -3
  364. package/dist/types/components/ez-time-input/ez-time-input.d.ts +8 -0
  365. package/dist/types/components/ez-tooltip/ez-tooltip.d.ts +57 -0
  366. package/dist/types/components/ez-tree/ez-tree.d.ts +4 -0
  367. package/dist/types/components/ez-tree/interfaces/ITreeItem.d.ts +1 -0
  368. package/dist/types/components/ez-tree/subcomponents/TreeItem.d.ts +1 -0
  369. package/dist/types/components.d.ts +1386 -58
  370. package/dist/types/utils/FocusResolver.d.ts +5 -0
  371. package/dist/types/utils/constants.d.ts +2 -0
  372. package/dist/types/utils/customEditor/interfaces/ICustomEditor.d.ts +2 -0
  373. package/dist/types/utils/form/DataBinder.d.ts +7 -2
  374. package/dist/types/utils/form/interfaces/FormLayout.d.ts +4 -0
  375. package/dist/types/utils/form/interfaces/index.d.ts +1 -0
  376. package/dist/types/utils/index.d.ts +3 -0
  377. package/dist/types/utils/search/types.d.ts +12 -0
  378. package/dist/types/utils/searchColumn/search-column.d.ts +9 -0
  379. package/dist/types/utils/validators/recordvalidator/IInvalidCells.d.ts +5 -0
  380. package/dist/types/utils/validators/recordvalidator/RecordValidationProcessor.d.ts +1 -1
  381. package/package.json +16 -7
  382. package/react/components.d.ts +63 -54
  383. package/react/components.js +9 -0
  384. package/react/components.js.map +1 -1
  385. package/react/react-component-lib/createComponent.d.ts +1 -1
  386. package/react/react-component-lib/createComponent.js.map +1 -1
  387. package/react/react-component-lib/createOverlayComponent.js.map +1 -1
  388. package/react/react-component-lib/interfaces.js +1 -0
  389. package/react/react-component-lib/utils/attachProps.d.ts +1 -1
  390. package/react/react-component-lib/utils/attachProps.js.map +1 -1
  391. package/react/react-component-lib/utils/dev.js.map +1 -1
  392. package/react/react-component-lib/utils/index.d.ts +2 -2
  393. package/react/react-component-lib/utils/index.js.map +1 -1
  394. package/dist/cjs/ICustomRender-6fafffce.js +0 -13
  395. package/dist/cjs/RecordValidationProcessor-4c893e04.js +0 -102
  396. package/dist/cjs/ez-card-item_3.cjs.entry.js +0 -183
  397. package/dist/cjs/ez-custom-form-input_2.cjs.entry.js +0 -206
  398. package/dist/esm/ICustomRender-875b5a40.js +0 -13
  399. package/dist/esm/RecordValidationProcessor-b00b8b77.js +0 -99
  400. package/dist/esm/constants-4e0d35b7.js +0 -5
  401. package/dist/esm/ez-card-item_3.entry.js +0 -177
  402. package/dist/esm/ez-custom-form-input_2.entry.js +0 -201
  403. package/dist/ezui/p-04f24913.js +0 -1
  404. package/dist/ezui/p-05e1f4e7.js +0 -1
  405. package/dist/ezui/p-072e6347.entry.js +0 -1
  406. package/dist/ezui/p-1285c902.entry.js +0 -1
  407. package/dist/ezui/p-13d2fe2d.entry.js +0 -1
  408. package/dist/ezui/p-2097d0cf.entry.js +0 -1
  409. package/dist/ezui/p-32e553e5.entry.js +0 -304
  410. package/dist/ezui/p-34b6916c.entry.js +0 -1
  411. package/dist/ezui/p-3b4eeeb6.entry.js +0 -1
  412. package/dist/ezui/p-3faa2b46.entry.js +0 -1
  413. package/dist/ezui/p-42533ea4.entry.js +0 -1
  414. package/dist/ezui/p-4607fb89.js +0 -1
  415. package/dist/ezui/p-49456b34.entry.js +0 -1
  416. package/dist/ezui/p-4d5235f1.entry.js +0 -1
  417. package/dist/ezui/p-5bd5e68f.entry.js +0 -1
  418. package/dist/ezui/p-650e4b6d.entry.js +0 -1
  419. package/dist/ezui/p-784fe207.entry.js +0 -1
  420. package/dist/ezui/p-7922142b.entry.js +0 -1
  421. package/dist/ezui/p-7af81663.entry.js +0 -1
  422. package/dist/ezui/p-7bc07c31.entry.js +0 -1
  423. package/dist/ezui/p-85c8baae.entry.js +0 -1
  424. package/dist/ezui/p-8888d9ed.entry.js +0 -1
  425. package/dist/ezui/p-9050d2cd.entry.js +0 -1
  426. package/dist/ezui/p-922ac38b.entry.js +0 -1
  427. package/dist/ezui/p-9e11fc7b.js +0 -1
  428. package/dist/ezui/p-a31b9c90.entry.js +0 -1
  429. package/dist/ezui/p-aba3da00.entry.js +0 -1
  430. package/dist/ezui/p-af95cd16.entry.js +0 -1
  431. package/dist/ezui/p-bae4e180.entry.js +0 -1
  432. package/dist/ezui/p-baf80b13.entry.js +0 -1
  433. package/dist/ezui/p-bcb53f27.entry.js +0 -1
  434. package/dist/ezui/p-bf79aaa1.entry.js +0 -1
  435. package/dist/ezui/p-cdc472cc.entry.js +0 -1
  436. package/dist/ezui/p-d9401ea0.entry.js +0 -1
  437. package/dist/ezui/p-e85c48d7.entry.js +0 -1
  438. package/dist/ezui/p-ecc2c1ec.entry.js +0 -1
  439. package/dist/ezui/p-fcf0acce.entry.js +0 -1
@@ -1,12 +1,12 @@
1
1
  import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-baa5e267.js';
2
- import { ObjectUtils, FloatingManager, ElementIDUtils } from '@sankhyalabs/core';
2
+ import { ObjectUtils, ElementIDUtils } from '@sankhyalabs/core';
3
3
  import './ApplicationUtils-eaf91331.js';
4
- import { C as CSSVarsUtils } from './CSSVarsUtils-71ce76be.js';
4
+ import { C as CSSVarsUtils } from './CSSVarsUtils-acba92d7.js';
5
5
  import './DialogType-54a62731.js';
6
6
  import './CheckMode-bdb2ec19.js';
7
- import './ICustomRender-875b5a40.js';
7
+ import './FormLayout-071d324c.js';
8
8
 
9
- const ezComboBoxCss = ":host{--ez-combo-box--height:42px;--ez-combo-box--width:100%;--ez-combo-box__icon--width:48px;--ez-combo-box--border-radius:var(--border--radius-medium, 12px);--ez-combo-box--border-radius-small:var(--border--radius-small, 6px);--ez-combo-box--font-size:var(--text--medium, 14px);--ez-combo-box--font-family:var(--font-pattern, Arial);--ez-combo-box--font-weight--large:var(--text-weight--large, 500);--ez-combo-box--font-weight--medium:var(--text-weight--medium, 400);--ez-combo-box--background-color--xlight:var(--background--xlight, #fff);--ez-combo-box--background-medium:var(--background--medium, #f0f3f7);--ez-combo-box--line-height:calc(var(--text--medium, 14px) + 4px);--ez-combo-box__input--background-color:var(--background--medium, #e0e0e0);--ez-combo-box__input--border:var(--border--medium, 2px solid);--ez-combo-box__input--border-color:var(--ez-combo-box__input--background-color);--ez-combo-box__input--focus--border-color:var(--color--primary, #008561);--ez-combo-box__input--disabled--background-color:var(--color--disable-secondary, #F2F5F8);--ez-combo-box__input--disabled--color:var(--text--disable, #AFB6C0);--ez-combo-box__input--error--border-color:#CC2936;--ez-combo-box__btn--color:var(--title--primary, #2B3A54);--ez-combo-box__btn-disabled--color:var(--text--disable, #AFB6C0);--ez-combo-box__btn-hover--color:var(--color--primary, #4e4e4e);--ez-combo-box__label--color:var(--title--primary, #2B3A54);--ez-combo-box__list-title--primary:var(--title--primary, #2B3A54);--ez-combo-box__list-text--primary:var(--text--primary, #626e82);--ez-combo-box__list-height:calc(var(--ez-combo-box--font-size) + var(--ez-combo-box--space--medium) + 4px);--ez-combo-box__list-min-width:64px;--ez-combo-box--space--medium:var(--space--medium, 12px);--ez-combo-box--space--small:var(--space--small, 6px);--ez-combo-box__scrollbar--color-default:var(--scrollbar--default, #626e82);--ez-combo-box__scrollbar--color-background:var(--scrollbar--background, #E5EAF0);--ez-combo-box__scrollbar--color-hover:var(--scrollbar--hover, #2B3A54);--ez-combo-box__scrollbar--color-clicked:var(--scrollbar--clicked, #a2abb9);--ez-combo-box__scrollbar--border-radius:var(--border--radius-small, 6px);--ez-combo-box__scrollbar--width:var(--space--medium, 12px);display:flex;flex-wrap:wrap;position:relative;width:var(--ez-combo-box--width)}ez-icon{--ez-icon--color:inherit;font-weight:var(--text-weight--large, 600)}.suppressed-search-input{--ez-text-input__input--border-color:var(--color--strokes, #dce0e8);--ez-text-input__input--disabled--background-color:var(--background--xlight, #fff);--ez-text-input__input--disabled--color:var(--title--primary, #2B3A54)}.list-container{min-width:var(--ez-combo-box__list-min-width);position:relative;width:100%}.list-wrapper{display:flex;flex-direction:column;box-sizing:border-box;width:0;z-index:var(--more-visible, 2);max-height:calc(4*var(--ez-combo-box__list-height) + 2*var(--ez-combo-box--space--small) + 9px);background-color:var(--ez-combo-box--background-color--xlight);border-radius:var(--ez-combo-box--border-radius);box-shadow:var(--shadow, 0px 0px 16px 0px #000);padding:var(--ez-combo-box--space--small)}.list-options{box-sizing:border-box;width:100%;height:100%;padding:0;display:flex;flex-direction:column;scroll-behavior:smooth;overflow:auto;scrollbar-width:thin;gap:3px;scrollbar-color:var(--ez-combo-box__scrollbar--color-clicked) var(--ez-combo-box__scrollbar--color-background)}.list-options::-webkit-scrollbar{background-color:var(--ez-combo-box__scrollbar--color-background);width:var(--ez-combo-box__scrollbar--width);max-width:var(--ez-combo-box__scrollbar--width);min-width:var(--ez-combo-box__scrollbar--width)}.list-options::-webkit-scrollbar-track{background-color:var(--ez-combo-box__scrollbar--color-background);border-radius:var(--ez-combo-box__scrollbar--border-radius)}.list-options::-webkit-scrollbar-thumb{background-color:var(--ez-combo-box__scrollbar--color-default);border-radius:var(--ez-combo-box__scrollbar--border-radius)}.list-options::-webkit-scrollbar-thumb:vertical:hover,.list-options::-webkit-scrollbar-thumb:horizontal:hover{background-color:var(--ez-combo-box__scrollbar--color-hover)}.list-options::-webkit-scrollbar-thumb:vertical:active,.list-options::-webkit-scrollbar-thumb:horizontal:active{background-color:var(--ez-combo-box__scrollbar--color-clicked)}.item{display:flex;align-items:center;width:100%;box-sizing:border-box;list-style-type:none;cursor:pointer;border-radius:var(--ez-combo-box--border-radius-small);padding:var(--ez-combo-box--space--small);min-height:var(--ez-combo-box__list-height);gap:var(--space--small, 6px)}.item__value,.item__label{flex-basis:auto;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--ez-combo-box__list-title--primary);font-family:var(--ez-combo-box--font-family);font-size:var(--ez-combo-box--font-size);line-height:var(--ez-combo-box--line-height)}.item__label{font-weight:var(--ez-combo-box--font-weight--medium)}.item__label--bold{font-weight:var(--ez-combo-box--font-weight--large)}.item__value{text-align:center;color:var(--ez-combo-box__list-text--primary);font-weight:var(--ez-combo-box--font-weight--large)}.item__value--hidden{visibility:hidden;position:absolute;white-space:nowrap;z-index:-1;top:0;left:0}.item__label{text-align:left}.message{text-align:center;display:flex;justify-content:center;align-items:center;list-style-type:none;min-height:var(--ez-combo-box__list-height)}.message__no-result{color:var(--ez-combo-box__list-title--primary);font-family:var(--ez-combo-box--font-family);font-size:var(--ez-combo-box--font-size)}.message__loading{border-radius:50%;width:14px;height:14px;-webkit-animation:spin 1s linear infinite;animation:spin 1s linear infinite;border:3px solid var(--ez-combo-box__list-title--primary);border-top:3px solid transparent}li:hover{background-color:var(--ez-combo-box--background-medium)}.preselected{background-color:var(--background--medium)}.btn{outline:none;border:none;background:none;cursor:pointer;color:var(--ez-combo-box__btn--color)}.btn:disabled{cursor:unset;color:var(--ez-combo-box__btn-disabled--color)}.btn:disabled:hover{cursor:unset;color:var(--ez-combo-box__btn-disabled--color)}.btn:hover{color:var(--ez-combo-box__btn-hover--color)}.btn__close{visibility:hidden}ez-text-input:hover .btn__close,ez-text-input:focus .btn__close{visibility:visible}@-webkit-keyframes spin{0%{-webkit-transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg)}}@keyframes spin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}";
9
+ const ezComboBoxCss = ":host{--ez-combo-box--height:42px;--ez-combo-box--width:100%;--ez-combo-box--border-radius:var(--border--radius-medium, 12px);--ez-combo-box--font-size:var(--text--medium, 14px);--ez-combo-box--font-family:var(--font-pattern, Arial);--ez-combo-box--background-color--xlight:var(--background--xlight, #fff);--ez-combo-box__input--background-color:var(--background--medium, #e0e0e0);--ez-combo-box__input--border:var(--border--medium, 2px solid);--ez-combo-box__input--border-color:var(--ez-combo-box__input--background-color);--ez-combo-box__input--focus--border-color:var(--color--primary, #008561);--ez-combo-box__input--disabled--background-color:var(--color--disable-secondary, #F2F5F8);--ez-combo-box__input--disabled--color:var(--text--disable, #AFB6C0);--ez-combo-box__btn--color:var(--title--primary, #2B3A54);--ez-combo-box__btn-disabled--color:var(--text--disable, #AFB6C0);--ez-combo-box__btn-hover--color:var(--color--primary, #4e4e4e);width:var(--ez-combo-box--width)}ez-icon{--ez-icon--color:inherit;font-weight:var(--text-weight--large, 600)}.suppressed-search-input{--ez-text-input__input--border-color:var(--color--strokes, #dce0e8);--ez-text-input__input--disabled--background-color:var(--background--xlight, #fff);--ez-text-input__input--disabled--color:var(--title--primary, #2B3A54)}.btn{outline:none;border:none;background:none;cursor:pointer;padding:0px;color:var(--ez-combo-box__btn--color)}.btn:disabled{cursor:unset;color:var(--ez-combo-box__btn-disabled--color)}.btn:disabled:hover{cursor:not-allowed;color:var(--ez-combo-box__btn-disabled--color)}.btn:hover{color:var(--ez-combo-box__btn-hover--color)}.btn__close{visibility:hidden}ez-text-input:hover .btn__close,ez-text-input:focus .btn__close{visibility:visible}.text-input-slot-container{--ez-text-input__icon--width:32px;--ez-text-input__min-width:var(--ez-combo-box__min-width);--ez-text-input__max-width:var(--ez-combo-box__max-width)}@-webkit-keyframes spin{0%{-webkit-transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg)}}@keyframes spin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}";
10
10
 
11
11
  const EzComboBox = class {
12
12
  constructor(hostRef) {
@@ -18,6 +18,7 @@ const EzComboBox = class {
18
18
  this._tabPressed = false;
19
19
  this._textEmptyList = "Nenhum resultado encontrado";
20
20
  this._lookupMode = false;
21
+ this.isOpen = false;
21
22
  this._preSelection = undefined;
22
23
  this._visibleOptions = undefined;
23
24
  this._startLoading = false;
@@ -34,11 +35,14 @@ const EzComboBox = class {
34
35
  this.suppressSearch = false;
35
36
  this.optionLoader = undefined;
36
37
  this.suppressEmptyOption = false;
38
+ this.stopPropagateEnterKeyEvent = true;
37
39
  this.canShowError = true;
38
40
  this.mode = "regular";
39
41
  this.hideErrorOnFocusOut = true;
40
42
  this.listOptionsPosition = undefined;
41
43
  this.isTextSearch = false;
44
+ this.autoFocus = false;
45
+ this.alternativePlaceholder = undefined;
42
46
  }
43
47
  observeErrorMessage() {
44
48
  var _a;
@@ -101,9 +105,9 @@ const EzComboBox = class {
101
105
  /**
102
106
  * Aplica o foco no campo.
103
107
  */
104
- async setFocus() {
108
+ async setFocus(options) {
105
109
  if (this._textInput) {
106
- this._textInput.setFocus();
110
+ this._textInput.setFocus(options);
107
111
  }
108
112
  }
109
113
  /**
@@ -126,63 +130,6 @@ const EzComboBox = class {
126
130
  async clearValue() {
127
131
  this.clearSearch();
128
132
  }
129
- scrollListener() {
130
- var _a;
131
- if (this._floatingID == undefined) {
132
- return;
133
- }
134
- if ((_a = this.listOptionsPosition) === null || _a === void 0 ? void 0 : _a.hardPosition) {
135
- this.hideOptions();
136
- }
137
- else {
138
- window.requestAnimationFrame(() => {
139
- this.updateListPosition();
140
- });
141
- }
142
- }
143
- updateListPosition() {
144
- let { verticalPosition, horizontalPosition, fromBottom, fromRight, bottomLimit, hardPosition } = this.getListPosition();
145
- const elementRect = this._listWrapper.getBoundingClientRect();
146
- const containerRect = this._listContainer.getBoundingClientRect();
147
- const textInputRect = this._textInput.getBoundingClientRect();
148
- const limitHeight = bottomLimit || window.innerHeight;
149
- const neededHeight = containerRect.bottom + elementRect.height;
150
- if (!fromBottom && (elementRect.top < 0 || neededHeight > limitHeight)) {
151
- fromBottom = true;
152
- }
153
- if (!hardPosition) {
154
- verticalPosition = verticalPosition || 0;
155
- horizontalPosition = horizontalPosition || 0;
156
- if (fromBottom) {
157
- verticalPosition = window.innerHeight - textInputRect.top + verticalPosition;
158
- }
159
- else {
160
- verticalPosition += containerRect.top;
161
- }
162
- if (fromRight) {
163
- horizontalPosition = window.innerWidth - textInputRect.right + horizontalPosition;
164
- }
165
- else {
166
- horizontalPosition += containerRect.left;
167
- }
168
- }
169
- if (verticalPosition != undefined) {
170
- this._listWrapper.style[fromBottom ? "bottom" : "top"] = `${verticalPosition}px`;
171
- this._listWrapper.style[fromBottom ? "top" : "bottom"] = "";
172
- }
173
- if (horizontalPosition != undefined) {
174
- this._listWrapper.style[fromRight ? "right" : "left"] = `${horizontalPosition}px`;
175
- this._listWrapper.style[fromRight ? "left" : "right"] = "";
176
- }
177
- }
178
- getListPosition() {
179
- if (this.listOptionsPosition) {
180
- return this.listOptionsPosition;
181
- }
182
- return {
183
- verticalPosition: (this.errorMessage || !this.canShowError || this.mode === "slim") ? 6 : -13
184
- };
185
- }
186
133
  isDifferentValues(firstValue, secondValue) {
187
134
  return ObjectUtils.objectToString(firstValue || {}) !== ObjectUtils.objectToString(secondValue || {});
188
135
  }
@@ -255,66 +202,24 @@ const EzComboBox = class {
255
202
  }
256
203
  return 0;
257
204
  }
258
- buildItem(opt, index) {
259
- const widthValue = this.showOptionValue && this._maxWidthValue > 0 ? `${this._maxWidthValue}px` : '';
260
- opt.label = opt.label || opt.value;
261
- return h("li", { class: index === this._preSelection ? "item preselected" : "item", id: `item_${opt.value}`, onMouseDown: () => this.selectOption(opt), onMouseOver: () => this._preSelection = index }, this.showOptionValue
262
- ? h("span", { class: "item__value", title: opt.value, style: { width: widthValue, minWidth: widthValue, maxWidth: widthValue } }, opt.value)
263
- : undefined, h("span", { class: "item__label " + (this.showOptionValue ? "item__label--bold" : ""), title: opt.label }, opt.label));
264
- }
265
- showOptions() {
205
+ async showOptions() {
206
+ var _a, _b;
266
207
  if (!this.enabled)
267
208
  return;
268
- if (this.isOptionsVisible()) {
269
- return;
270
- }
209
+ await this.openPopover();
210
+ const valueString = (_b = (_a = this.value) === null || _a === void 0 ? void 0 : _a.value) !== null && _b !== void 0 ? _b : this.value;
211
+ const indexValue = this._visibleOptions.findIndex(option => option.value === valueString);
212
+ this._preSelection = indexValue === -1 ? 0 : indexValue;
271
213
  if (!!this._resizeObserver)
272
214
  this._resizeObserver.observe(this._textInput);
273
- this._floatingID = FloatingManager.float(this._listWrapper, this._listContainer, { autoClose: true, isFixed: true, backClickListener: () => this.hideOptions() });
274
- this.setFocus();
275
- window.requestAnimationFrame(() => {
276
- this.updateListPosition();
277
- if (!this.listOptionsPosition) {
278
- this._listWrapper.scrollIntoView({ behavior: "smooth", block: "nearest", inline: "nearest" });
279
- }
280
- });
215
+ await this.setFocus();
281
216
  }
282
217
  hideOptions() {
283
- if (this._floatingID !== undefined) {
284
- FloatingManager.close(this._floatingID);
285
- }
286
- this._floatingID = undefined;
218
+ var _a;
219
+ (_a = this._popover) === null || _a === void 0 ? void 0 : _a.hide();
287
220
  if (!!this._resizeObserver)
288
221
  this._resizeObserver.unobserve(this._textInput);
289
222
  }
290
- isOptionsVisible() {
291
- return this._floatingID !== undefined && FloatingManager.isFloating(this._floatingID);
292
- }
293
- nextOption() {
294
- if (!this.isOptionsVisible()) {
295
- return;
296
- }
297
- this.showOptions();
298
- this._preSelection = this._preSelection === undefined ? 0 : Math.min(this._preSelection + 1, this._visibleOptions.length - 1);
299
- this.scrollToOption(this._visibleOptions[this._preSelection]);
300
- }
301
- previousOption() {
302
- this._preSelection = this._preSelection === undefined ? 0 : Math.max(this._preSelection - 1, 0);
303
- this.scrollToOption(this._visibleOptions[this._preSelection]);
304
- }
305
- scrollToOption(opt) {
306
- window.requestAnimationFrame(() => {
307
- const liElem = (opt === null || opt === void 0 ? void 0 : opt.value) ? this._optionsList.querySelector(`li#item_${opt.value.replace(/[<>\[\]#=]/g, '\\$&').replace(/:/g, '\\:')}`) : undefined;
308
- if (liElem)
309
- liElem.scrollIntoView({ behavior: "smooth", block: "nearest" });
310
- });
311
- }
312
- selectCurrentOption() {
313
- if (this._preSelection !== undefined) {
314
- this.selectOption(this._visibleOptions[this._preSelection]);
315
- this._preSelection = undefined;
316
- }
317
- }
318
223
  updateSource(source) {
319
224
  this._startLoading = false;
320
225
  if (source instanceof Promise) {
@@ -339,17 +244,23 @@ const EzComboBox = class {
339
244
  }
340
245
  }
341
246
  }
342
- selectOption(newOption) {
343
- var _a, _b;
247
+ selectOption(newOption, focusOnInput = true) {
248
+ var _a, _b, _c;
344
249
  const currentValue = this.getSelectedOption(this.value);
345
250
  if ((((_a = currentValue === null || currentValue === void 0 ? void 0 : currentValue.value) === null || _a === void 0 ? void 0 : _a.toString()) !== ((_b = newOption === null || newOption === void 0 ? void 0 : newOption.value) === null || _b === void 0 ? void 0 : _b.toString()))
346
251
  || (currentValue == undefined && newOption != undefined && "value" in newOption)) {
347
252
  const adjustedOpt = !(newOption === null || newOption === void 0 ? void 0 : newOption.value) ? undefined : newOption;
348
253
  this.value = adjustedOpt;
254
+ (_c = this._popover) === null || _c === void 0 ? void 0 : _c.hide();
349
255
  }
350
256
  else {
351
257
  this.resetOptions();
352
258
  }
259
+ if (focusOnInput) {
260
+ setTimeout(() => {
261
+ this.setFocus();
262
+ }, 0);
263
+ }
353
264
  }
354
265
  loadOptions(mode, argument = "") {
355
266
  this._criteria = argument;
@@ -371,7 +282,6 @@ const EzComboBox = class {
371
282
  this.setInputValue(false);
372
283
  }, this._deboucingTime);
373
284
  }
374
- this.resetOptions();
375
285
  }
376
286
  setInputValue(clearError = true) {
377
287
  const textValue = this.getText();
@@ -412,15 +322,6 @@ const EzComboBox = class {
412
322
  }
413
323
  this.loadOptions(SearchMode.PRELOAD);
414
324
  }
415
- componentDidRender() {
416
- var _a;
417
- if (this._floatingID === undefined) {
418
- this._listWrapper.remove();
419
- }
420
- (_a = this._optionsList) === null || _a === void 0 ? void 0 : _a.querySelectorAll(".item").forEach((elem) => {
421
- ElementIDUtils.addIDInfoIfNotExists(elem, "itemComboBox");
422
- });
423
- }
424
325
  componentDidLoad() {
425
326
  CSSVarsUtils.applyVarsTextInput(this.el, this._textInput);
426
327
  this.setInputValue(false);
@@ -428,12 +329,26 @@ const EzComboBox = class {
428
329
  window.requestAnimationFrame(() => {
429
330
  if (!Array.isArray(entries) || !entries.length)
430
331
  return;
431
- const { clientWidth } = this._listContainer;
432
- if (clientWidth > 0 && !!this._listWrapper) {
433
- this._listWrapper.style.width = `${clientWidth}px`;
434
- }
332
+ if (!this._textInput)
333
+ return;
334
+ if (!this._comboBoxList)
335
+ return;
336
+ const textInputWidth = this._textInput.clientWidth;
337
+ this._comboBoxList.width = textInputWidth;
435
338
  });
436
339
  });
340
+ if (this.autoFocus) {
341
+ requestAnimationFrame(() => {
342
+ this.setFocus({ selectText: true });
343
+ });
344
+ }
345
+ }
346
+ disconnectedCallback() {
347
+ var _a;
348
+ (_a = this._popover) === null || _a === void 0 ? void 0 : _a.remove();
349
+ if (this._resizeObserver) {
350
+ this._resizeObserver.disconnect();
351
+ }
437
352
  }
438
353
  //---------------------------------------------
439
354
  // Event handlers
@@ -460,7 +375,7 @@ const EzComboBox = class {
460
375
  this.showOptions();
461
376
  }
462
377
  else {
463
- this.hideOptions();
378
+ this._preSelection = undefined;
464
379
  this.updateVisibleOptions();
465
380
  }
466
381
  }
@@ -474,42 +389,48 @@ const EzComboBox = class {
474
389
  this.showOptions();
475
390
  }
476
391
  keyDownHandler(event) {
477
- this._tabPressed = false;
478
- if (event.ctrlKey) {
479
- if (event.key === "f" || event.key === "F") {
480
- this.loadOptions(SearchMode.ADVANCED);
481
- //ATENÇÃO: Ctrl + F tem ação específica nos browsers
482
- //nesse caso, como vamos abrir o popup de busca avançada,
483
- //não é interessante deixar o evento propagar;
484
- event.stopPropagation();
485
- event.stopImmediatePropagation();
486
- event.preventDefault();
487
- }
392
+ var _a, _b, _c, _d, _e, _f;
393
+ if (event.ctrlKey && (event.key === "f" || event.key === "F")) {
394
+ this.loadOptions(SearchMode.ADVANCED);
395
+ event.preventDefault();
396
+ event.stopPropagation();
397
+ return;
488
398
  }
489
399
  switch (event.key) {
490
400
  case "ArrowDown":
491
- this.nextOption();
492
- event.stopPropagation();
401
+ event.preventDefault();
402
+ if (this.canShowListOptions()) {
403
+ this.showOptions();
404
+ (_a = this._comboBoxList) === null || _a === void 0 ? void 0 : _a.nextOption();
405
+ }
493
406
  break;
494
407
  case "ArrowUp":
495
- this.previousOption();
496
- event.stopPropagation();
408
+ event.preventDefault();
409
+ if (this.canShowListOptions()) {
410
+ this.showOptions();
411
+ (_b = this._comboBoxList) === null || _b === void 0 ? void 0 : _b.previousOption();
412
+ }
497
413
  break;
498
414
  case "Enter":
499
- this.selectCurrentOption();
415
+ if (this.isOpen) {
416
+ event.preventDefault();
417
+ (_c = this._comboBoxList) === null || _c === void 0 ? void 0 : _c.selectCurrentOption();
418
+ }
500
419
  break;
501
420
  case "Escape":
502
- this.cancelPreselection();
421
+ if (this.isOpen) {
422
+ event.preventDefault();
423
+ (_d = this._popover) === null || _d === void 0 ? void 0 : _d.hide();
424
+ }
503
425
  break;
504
426
  case "Tab":
505
427
  this._tabPressed = true;
428
+ if (this.isOpen) {
429
+ (_e = this._comboBoxList) === null || _e === void 0 ? void 0 : _e.selectCurrentOption();
430
+ (_f = this._popover) === null || _f === void 0 ? void 0 : _f.hide();
431
+ }
506
432
  break;
507
433
  }
508
- //ATENÇÃO: Existe a necessidade de propagar o evento de teclado.
509
- //Por exemplo, quando o usuário dá um Enter, além de selecionar
510
- //um valor, também significa que a ateração finalizou,
511
- //e o contexto pode reagir (fechar um popup por exemplo).
512
- //event.stopPropagation();
513
434
  }
514
435
  onTextInputFocusOutHandler() {
515
436
  if (this.hideErrorOnFocusOut)
@@ -518,14 +439,15 @@ const EzComboBox = class {
518
439
  canShowListOptions() {
519
440
  return !this._showLoading && this._visibleOptions.length > 0;
520
441
  }
442
+ async openPopover() {
443
+ var _a;
444
+ this.isOpen = true;
445
+ await ((_a = this._popover) === null || _a === void 0 ? void 0 : _a.showUnder(this._textInput));
446
+ }
521
447
  render() {
448
+ var _a;
522
449
  ElementIDUtils.addIDInfoIfNotExists(this.el, 'input');
523
- return (h(Host, null, h("ez-text-input", { "data-element-id": ElementIDUtils.getInternalIDInfo("textInput"), class: this.suppressSearch ? "suppressed-search-input" : "", ref: elem => this._textInput = elem, "data-slave-mode": "true", enabled: this.enabled && !this.suppressSearch, onInput: event => this.onTextInputChangeHandler(event), onClick: () => this.onTextInputClickHandler(), onFocusout: () => this.onTextInputFocusOutHandler(), onKeyDown: event => this.keyDownHandler(event), label: this.label, canShowError: this.canShowError, errorMessage: this.errorMessage, mode: this.mode }, h("button", { class: "btn", slot: "rightIcon", disabled: !this.enabled, tabindex: -1, onClick: () => this.handlerIconClick() }, h("ez-icon", { iconName: "chevron-down" }))), h("section", { class: "list-container", ref: elem => this._listContainer = elem }, h("div", { class: "list-wrapper", ref: elem => this._listWrapper = elem }, h("ul", { class: "list-options", ref: elem => this._optionsList = elem }, !this._showLoading
524
- && this._visibleOptions.length === 0
525
- && h("div", { class: "message" }, h("span", { class: "message__no-result" }, this._textEmptyList)), this._showLoading
526
- && h("div", { class: "message" }, h("div", { class: "message__loading" })), this.showOptionValue
527
- ? h("span", { class: "item__value item__value--hidden", ref: elem => this._itemValueBasis = elem })
528
- : undefined, this.canShowListOptions() && this._visibleOptions.map((opt, index) => this.buildItem(opt, index)))))));
450
+ return (h(Host, null, h("ez-text-input", { "data-element-id": ElementIDUtils.getInternalIDInfo("textInput"), class: `text-input-slot-container ${this.suppressSearch ? "suppressed-search-input" : ""}`, ref: elem => this._textInput = elem, "data-slave-mode": "true", enabled: this.enabled && !this.suppressSearch, onInput: event => this.onTextInputChangeHandler(event), onClick: () => this.onTextInputClickHandler(), onFocusout: () => this.onTextInputFocusOutHandler(), onKeyDown: event => this.keyDownHandler(event), label: this.label, canShowError: this.canShowError, errorMessage: this.errorMessage, mode: this.mode, alternativePlaceholder: this.alternativePlaceholder }, h("button", { class: "btn", slot: "rightIcon", disabled: !this.enabled, tabindex: -1, onClick: () => this.handlerIconClick() }, h("ez-icon", { iconName: "chevron-down" }))), h("ez-popover-plus", { ref: elem => this._popover = elem, anchorElement: this._textInput, autoClose: true, boxWidth: 'fit-content', overlayType: 'none', onEzVisibilityChange: event => this.isOpen = event.detail }, h("ez-combo-box-list", { ref: ref => this._comboBoxList = ref, showLoading: this._showLoading, visibleOptions: this._visibleOptions, textEmptyList: this._textEmptyList, showOptionValue: this.showOptionValue, preSelection: this._preSelection, maxWidth: this._maxWidthValue, width: (_a = this._textInput) === null || _a === void 0 ? void 0 : _a.clientWidth, onOptionSelect: (opt) => this.selectOption(opt), onOptionHover: (index) => this._preSelection = index }))));
529
451
  }
530
452
  get el() { return getElement(this); }
531
453
  static get watchers() { return {
@@ -1,8 +1,8 @@
1
1
  import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-baa5e267.js';
2
2
  import { DateUtils, 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
- const ezDateInputCss = ":host{display:block;width:100%;--ez-date-input__input--background-color:var(--background--medium, #e0e0e0);--ez-date-input__input--border-color:var(--ez-date-input__input--background-color);--ez-date-input__calendar-image:url('data:image/svg+xml;utf8,<svg xmlns=\"http://www.w3.org/2000/svg\" version=\"1.1\" height=\"16px\" width=\"15px\"><path d=\"M 3.171875,5.25 C 2.6485088,5.25 2.21875,5.6797588 2.21875,6.203125 2.21875,6.7264912 2.6485088,7.15625 3.171875,7.15625 3.6952412,7.15625 4.125,6.7264912 4.125,6.203125 4.125,5.6797588 3.6952412,5.25 3.171875,5.25 Z m 2.875,0 C 5.5235088,5.25 5.09375,5.6797588 5.09375,6.203125 5.09375,6.7264912 5.5235088,7.15625 6.046875,7.15625 6.5702412,7.15625 7,6.7264912 7,6.203125 7,5.6797588 6.5702412,5.25 6.046875,5.25 Z m 2.875,0 c -0.5233662,0 -0.953125,0.4297588 -0.953125,0.953125 0,0.5233662 0.4297588,0.953125 0.953125,0.953125 0.5233662,0 0.9511719,-0.4297588 0.9511719,-0.953125 C 9.8730469,5.6797588 9.4452412,5.25 8.921875,5.25 Z m 2.873047,0 c -0.523366,0 -0.953125,0.4297588 -0.953125,0.953125 0,0.5233662 0.429759,0.953125 0.953125,0.953125 0.523366,0 0.953125,-0.4297588 0.953125,-0.953125 C 12.748047,5.6797588 12.318288,5.25 11.794922,5.25 Z M 3.171875,8.1230469 c -0.5233662,0 -0.953125,0.4297588 -0.953125,0.953125 0,0.5233662 0.4297588,0.9531251 0.953125,0.9531251 0.5233662,0 0.953125,-0.4297589 0.953125,-0.9531251 0,-0.5233662 -0.4297588,-0.953125 -0.953125,-0.953125 z m 2.875,0 c -0.5233662,0 -0.953125,0.4297588 -0.953125,0.953125 0,0.5233662 0.4297588,0.9531251 0.953125,0.9531251 C 6.5702412,10.029297 7,9.5995381 7,9.0761719 7,8.5528057 6.5702412,8.1230469 6.046875,8.1230469 Z m 2.8554688,0 c -0.5233663,0 -0.953125,0.4297588 -0.953125,0.953125 0,0.5233662 0.4297587,0.9531251 0.953125,0.9531251 0.5233661,0 0.9531249,-0.4297589 0.953125,-0.9531251 0,-0.5233662 -0.4297588,-0.953125 -0.953125,-0.953125 z m 2.9003902,0 c -0.523366,0 -0.953125,0.4297588 -0.953125,0.953125 0,0.5233662 0.429759,0.9531251 0.953125,0.9531251 0.523367,0 0.953125,-0.4297589 0.953125,-0.9531251 0,-0.5233662 -0.429758,-0.953125 -0.953125,-0.953125 z M 3.171875,10.998047 c -0.5233662,0 -0.953125,0.429759 -0.953125,0.953125 0,0.523366 0.4297588,0.953125 0.953125,0.953125 0.5233662,0 0.953125,-0.429759 0.953125,-0.953125 0,-0.523366 -0.4297588,-0.953125 -0.953125,-0.953125 z m 2.875,0 c -0.5233662,0 -0.953125,0.429759 -0.953125,0.953125 0,0.523366 0.4297588,0.953125 0.953125,0.953125 C 6.5702412,12.904297 7,12.474538 7,11.951172 7,11.427806 6.5702412,10.998047 6.046875,10.998047 Z m 2.8554688,0 c -0.5233663,0 -0.953125,0.429759 -0.953125,0.953125 0,0.523366 0.4297587,0.953125 0.953125,0.953125 0.5233661,0 0.9531249,-0.429759 0.953125,-0.953125 0,-0.523366 -0.4297588,-0.953125 -0.953125,-0.953125 z m 2.9003902,0 c -0.523366,0 -0.953125,0.429759 -0.953125,0.953125 0,0.523366 0.429759,0.953125 0.953125,0.953125 0.523367,0 0.953125,-0.429759 0.953125,-0.953125 0,-0.523366 -0.429758,-0.953125 -0.953125,-0.953125 z M 3.5,0 c -0.554,0 -1,0.446 -1,1 v 0.050781 C 1.0853217,1.2909766 0,2.5186658 0,4 v 9 c 0,1.652487 1.3475134,3 3,3 h 9 c 1.652487,0 3,-1.347513 3,-3 V 4 C 15,2.5186658 13.914678,1.2909766 12.5,1.0507812 V 1 c 0,-0.554 -0.446,-1 -1,-1 -0.554,0 -1,0.446 -1,1 h -2 c 0,-0.554 -0.446,-1 -1,-1 -0.554,0 -1,0.446 -1,1 h -2 C 4.5,0.446 4.054,0 3.5,0 Z m 1,2.0996094 h 2 v 0.640625 c 0,0.554 0.446,1 1,1 0.554,0 1,-0.446 1,-1 v -0.640625 h 2 v 0.640625 c 0,0.554 0.446,1 1,1 0.554,0 1,-0.446 1,-1 V 2.1738281 C 13.311725,2.3905225 13.900391,3.11278 13.900391,4 v 9 c 0,1.062113 -0.838278,1.900391 -1.900391,1.900391 H 3 C 1.9378864,14.900391 1.0996094,14.062113 1.0996094,13 V 4 C 1.0996094,3.11278 1.6882747,2.3905225 2.5,2.1738281 v 0.5664063 c 0,0.554 0.446,1 1,1 0.554,0 1,-0.446 1,-1 z\"/></svg>')}.btn-open-cal{outline:none;border:none;background-color:unset;cursor:pointer}.btn-open-cal:disabled{cursor:unset}.btn-open-cal::after{content:'';display:flex;background-color:var(--text--primary, #008561);width:15px;height:16px;-webkit-mask-image:var(--ez-date-input__calendar-image);mask-image:var(--ez-date-input__calendar-image)}.btn-open-cal:disabled:after{background-color:var(--text--disable, #AFB6C0)}.btn-open-cal:enabled:hover::after{background-color:var(--color--primary, #4e4e4e)}ez-text-input{--text-input__input--background-color:var(--ez-date-input__input--background-color, #FFFFFF);--text-input__input--border-color:var(--ez-date-input__input--border-color, #DCE0E8)}";
5
+ const ezDateInputCss = ":host{display:block;width:100%;--ez-date-input__input--background-color:var(--background--medium, #e0e0e0);--ez-date-input__input--border-color:var(--ez-date-input__input--background-color);--ez-date-input__calendar-image:url('data:image/svg+xml;utf8,<svg xmlns=\"http://www.w3.org/2000/svg\" version=\"1.1\" height=\"16px\" width=\"15px\"><path d=\"M 3.171875,5.25 C 2.6485088,5.25 2.21875,5.6797588 2.21875,6.203125 2.21875,6.7264912 2.6485088,7.15625 3.171875,7.15625 3.6952412,7.15625 4.125,6.7264912 4.125,6.203125 4.125,5.6797588 3.6952412,5.25 3.171875,5.25 Z m 2.875,0 C 5.5235088,5.25 5.09375,5.6797588 5.09375,6.203125 5.09375,6.7264912 5.5235088,7.15625 6.046875,7.15625 6.5702412,7.15625 7,6.7264912 7,6.203125 7,5.6797588 6.5702412,5.25 6.046875,5.25 Z m 2.875,0 c -0.5233662,0 -0.953125,0.4297588 -0.953125,0.953125 0,0.5233662 0.4297588,0.953125 0.953125,0.953125 0.5233662,0 0.9511719,-0.4297588 0.9511719,-0.953125 C 9.8730469,5.6797588 9.4452412,5.25 8.921875,5.25 Z m 2.873047,0 c -0.523366,0 -0.953125,0.4297588 -0.953125,0.953125 0,0.5233662 0.429759,0.953125 0.953125,0.953125 0.523366,0 0.953125,-0.4297588 0.953125,-0.953125 C 12.748047,5.6797588 12.318288,5.25 11.794922,5.25 Z M 3.171875,8.1230469 c -0.5233662,0 -0.953125,0.4297588 -0.953125,0.953125 0,0.5233662 0.4297588,0.9531251 0.953125,0.9531251 0.5233662,0 0.953125,-0.4297589 0.953125,-0.9531251 0,-0.5233662 -0.4297588,-0.953125 -0.953125,-0.953125 z m 2.875,0 c -0.5233662,0 -0.953125,0.4297588 -0.953125,0.953125 0,0.5233662 0.4297588,0.9531251 0.953125,0.9531251 C 6.5702412,10.029297 7,9.5995381 7,9.0761719 7,8.5528057 6.5702412,8.1230469 6.046875,8.1230469 Z m 2.8554688,0 c -0.5233663,0 -0.953125,0.4297588 -0.953125,0.953125 0,0.5233662 0.4297587,0.9531251 0.953125,0.9531251 0.5233661,0 0.9531249,-0.4297589 0.953125,-0.9531251 0,-0.5233662 -0.4297588,-0.953125 -0.953125,-0.953125 z m 2.9003902,0 c -0.523366,0 -0.953125,0.4297588 -0.953125,0.953125 0,0.5233662 0.429759,0.9531251 0.953125,0.9531251 0.523367,0 0.953125,-0.4297589 0.953125,-0.9531251 0,-0.5233662 -0.429758,-0.953125 -0.953125,-0.953125 z M 3.171875,10.998047 c -0.5233662,0 -0.953125,0.429759 -0.953125,0.953125 0,0.523366 0.4297588,0.953125 0.953125,0.953125 0.5233662,0 0.953125,-0.429759 0.953125,-0.953125 0,-0.523366 -0.4297588,-0.953125 -0.953125,-0.953125 z m 2.875,0 c -0.5233662,0 -0.953125,0.429759 -0.953125,0.953125 0,0.523366 0.4297588,0.953125 0.953125,0.953125 C 6.5702412,12.904297 7,12.474538 7,11.951172 7,11.427806 6.5702412,10.998047 6.046875,10.998047 Z m 2.8554688,0 c -0.5233663,0 -0.953125,0.429759 -0.953125,0.953125 0,0.523366 0.4297587,0.953125 0.953125,0.953125 0.5233661,0 0.9531249,-0.429759 0.953125,-0.953125 0,-0.523366 -0.4297588,-0.953125 -0.953125,-0.953125 z m 2.9003902,0 c -0.523366,0 -0.953125,0.429759 -0.953125,0.953125 0,0.523366 0.429759,0.953125 0.953125,0.953125 0.523367,0 0.953125,-0.429759 0.953125,-0.953125 0,-0.523366 -0.429758,-0.953125 -0.953125,-0.953125 z M 3.5,0 c -0.554,0 -1,0.446 -1,1 v 0.050781 C 1.0853217,1.2909766 0,2.5186658 0,4 v 9 c 0,1.652487 1.3475134,3 3,3 h 9 c 1.652487,0 3,-1.347513 3,-3 V 4 C 15,2.5186658 13.914678,1.2909766 12.5,1.0507812 V 1 c 0,-0.554 -0.446,-1 -1,-1 -0.554,0 -1,0.446 -1,1 h -2 c 0,-0.554 -0.446,-1 -1,-1 -0.554,0 -1,0.446 -1,1 h -2 C 4.5,0.446 4.054,0 3.5,0 Z m 1,2.0996094 h 2 v 0.640625 c 0,0.554 0.446,1 1,1 0.554,0 1,-0.446 1,-1 v -0.640625 h 2 v 0.640625 c 0,0.554 0.446,1 1,1 0.554,0 1,-0.446 1,-1 V 2.1738281 C 13.311725,2.3905225 13.900391,3.11278 13.900391,4 v 9 c 0,1.062113 -0.838278,1.900391 -1.900391,1.900391 H 3 C 1.9378864,14.900391 1.0996094,14.062113 1.0996094,13 V 4 C 1.0996094,3.11278 1.6882747,2.3905225 2.5,2.1738281 v 0.5664063 c 0,0.554 0.446,1 1,1 0.554,0 1,-0.446 1,-1 z\"/></svg>')}.btn-open-cal{outline:none;border:none;background-color:unset;cursor:pointer}.btn-open-cal:disabled{cursor:not-allowed}.btn-open-cal::after{content:'';display:flex;background-color:var(--text--primary, #008561);width:15px;height:16px;-webkit-mask-image:var(--ez-date-input__calendar-image);mask-image:var(--ez-date-input__calendar-image)}.btn-open-cal:disabled:after{background-color:var(--text--disable, #AFB6C0)}.btn-open-cal:enabled:hover::after{background-color:var(--color--primary, #4e4e4e)}ez-text-input{--text-input__input--background-color:var(--ez-date-input__input--background-color, #FFFFFF);--text-input__input--border-color:var(--ez-date-input__input--border-color, #DCE0E8)}";
6
6
 
7
7
  const EzDateInput = class {
8
8
  constructor(hostRef) {
@@ -19,6 +19,8 @@ const EzDateInput = class {
19
19
  this.errorMessage = undefined;
20
20
  this.mode = "regular";
21
21
  this.canShowError = true;
22
+ this.autoFocus = false;
23
+ this.alternativePlaceholder = undefined;
22
24
  }
23
25
  observeLabel() {
24
26
  if (this._textInput) {
@@ -55,8 +57,8 @@ const EzDateInput = class {
55
57
  /**
56
58
  * Aplica o foco no campo.
57
59
  */
58
- async setFocus() {
59
- this._textInput.setFocus();
60
+ async setFocus(options) {
61
+ this._textInput.setFocus(options);
60
62
  }
61
63
  /**
62
64
  * Remove o foco do campo.
@@ -88,23 +90,13 @@ const EzDateInput = class {
88
90
  if ((currentValue === null || currentValue === void 0 ? void 0 : currentValue.getTime()) !== (newValueValidated === null || newValueValidated === void 0 ? void 0 : newValueValidated.getTime())) {
89
91
  this.value = newValueValidated;
90
92
  }
91
- }
92
- showCalendar() {
93
- this.handleBlur();
94
- this._calendar.value = this.value;
95
- let top;
96
- if (this.isFixed()) {
97
- top = 29;
98
- this._calendar.fitHorizontal(0);
99
- }
100
93
  else {
101
- top = this.errorMessage || this.mode === "slim" ? 6 : -13;
94
+ this._changePending = false;
102
95
  }
103
- this._calendar.fitVertical(top, this._elem.clientHeight);
104
96
  }
105
97
  hideCalendar() {
106
98
  this.changeValue(this._calendar.value);
107
- this._calendar.hide();
99
+ this._popover.hide();
108
100
  }
109
101
  handleBlur() {
110
102
  if (!this._changePending) {
@@ -165,16 +157,21 @@ const EzDateInput = class {
165
157
  this._textInput.value = textValue;
166
158
  }
167
159
  }
168
- isFixed() {
169
- return this._elem.dataset.isFixed === "true";
160
+ disconnectedCallback() {
161
+ this._popover.hide();
170
162
  }
171
163
  componentDidLoad() {
172
164
  CSSVarsUtils.applyVarsTextInput(this._elem, this._textInput);
173
165
  this.setInputValue();
166
+ if (this.autoFocus) {
167
+ requestAnimationFrame(() => {
168
+ this.setFocus({ selectText: true });
169
+ });
170
+ }
174
171
  }
175
172
  render() {
176
173
  ElementIDUtils.addIDInfoIfNotExists(this._elem, 'input');
177
- return (h(Host, null, h("ez-text-input", { "data-element-id": ElementIDUtils.getInternalIDInfo("textInput"), ref: elem => this._textInput = elem, "data-slave-mode": "true", label: this.label, onBlur: () => this.handleBlur(), onInput: (evt) => this.handleInput(evt), restrict: "0123456789/", enabled: this.enabled, errorMessage: this.errorMessage, mode: this.mode, canShowError: this.canShowError }, h("button", { disabled: !this.enabled, tabindex: -1, class: "btn-open-cal", onClick: () => this.showCalendar(), slot: "leftIcon" })), h("ez-calendar", { ref: elem => this._calendar = elem, "data-element-id": ElementIDUtils.getInternalIDInfo("calendar"), onEzChange: (event) => { this.hideCalendar(); event.stopPropagation(); }, floating: true, "data-is-fixed": this._elem.dataset.isFixed })));
174
+ return (h(Host, null, h("ez-text-input", { "data-element-id": ElementIDUtils.getInternalIDInfo("textInput"), ref: elem => this._textInput = elem, "data-slave-mode": "true", label: this.label, onBlur: () => this.handleBlur(), onInput: (evt) => this.handleInput(evt), restrict: "0123456789/", enabled: this.enabled, errorMessage: this.errorMessage, mode: this.mode, canShowError: this.canShowError, alternativePlaceholder: this.alternativePlaceholder }, h("button", { disabled: !this.enabled, tabindex: -1, class: "btn-open-cal", onClick: () => { var _a; return (_a = this._popover) === null || _a === void 0 ? void 0 : _a.showUnder(this._textInput); }, slot: "leftIcon" })), h("ez-popover-plus", { ref: elem => this._popover = elem, anchorElement: this._textInput, autoClose: true, boxWidth: 'fit-content', overlayType: 'none' }, h("ez-calendar", { ref: elem => this._calendar = elem, "data-element-id": ElementIDUtils.getInternalIDInfo("calendar"), onEzChange: (event) => { this.hideCalendar(); event.stopPropagation(); } }))));
178
175
  }
179
176
  get _elem() { return getElement(this); }
180
177
  static get watchers() { return {
@@ -1,8 +1,8 @@
1
1
  import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-baa5e267.js';
2
2
  import { DateUtils, TimeFormatter, 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
- const ezDateTimeInputCss = ":host{display:block;width:100%;--ez-date-input__input--background-color:var(--background--medium, #e0e0e0);--ez-date-input__input--border-color:var(--ez-date-input__input--background-color);--ez-date-input__calendar-image:url('data:image/svg+xml;utf8,<svg xmlns=\"http://www.w3.org/2000/svg\" version=\"1.1\" height=\"16px\" width=\"15px\"><path d=\"M 3.171875,5.25 C 2.6485088,5.25 2.21875,5.6797588 2.21875,6.203125 2.21875,6.7264912 2.6485088,7.15625 3.171875,7.15625 3.6952412,7.15625 4.125,6.7264912 4.125,6.203125 4.125,5.6797588 3.6952412,5.25 3.171875,5.25 Z m 2.875,0 C 5.5235088,5.25 5.09375,5.6797588 5.09375,6.203125 5.09375,6.7264912 5.5235088,7.15625 6.046875,7.15625 6.5702412,7.15625 7,6.7264912 7,6.203125 7,5.6797588 6.5702412,5.25 6.046875,5.25 Z m 2.875,0 c -0.5233662,0 -0.953125,0.4297588 -0.953125,0.953125 0,0.5233662 0.4297588,0.953125 0.953125,0.953125 0.5233662,0 0.9511719,-0.4297588 0.9511719,-0.953125 C 9.8730469,5.6797588 9.4452412,5.25 8.921875,5.25 Z m 2.873047,0 c -0.523366,0 -0.953125,0.4297588 -0.953125,0.953125 0,0.5233662 0.429759,0.953125 0.953125,0.953125 0.523366,0 0.953125,-0.4297588 0.953125,-0.953125 C 12.748047,5.6797588 12.318288,5.25 11.794922,5.25 Z M 3.171875,8.1230469 c -0.5233662,0 -0.953125,0.4297588 -0.953125,0.953125 0,0.5233662 0.4297588,0.9531251 0.953125,0.9531251 0.5233662,0 0.953125,-0.4297589 0.953125,-0.9531251 0,-0.5233662 -0.4297588,-0.953125 -0.953125,-0.953125 z m 2.875,0 c -0.5233662,0 -0.953125,0.4297588 -0.953125,0.953125 0,0.5233662 0.4297588,0.9531251 0.953125,0.9531251 C 6.5702412,10.029297 7,9.5995381 7,9.0761719 7,8.5528057 6.5702412,8.1230469 6.046875,8.1230469 Z m 2.8554688,0 c -0.5233663,0 -0.953125,0.4297588 -0.953125,0.953125 0,0.5233662 0.4297587,0.9531251 0.953125,0.9531251 0.5233661,0 0.9531249,-0.4297589 0.953125,-0.9531251 0,-0.5233662 -0.4297588,-0.953125 -0.953125,-0.953125 z m 2.9003902,0 c -0.523366,0 -0.953125,0.4297588 -0.953125,0.953125 0,0.5233662 0.429759,0.9531251 0.953125,0.9531251 0.523367,0 0.953125,-0.4297589 0.953125,-0.9531251 0,-0.5233662 -0.429758,-0.953125 -0.953125,-0.953125 z M 3.171875,10.998047 c -0.5233662,0 -0.953125,0.429759 -0.953125,0.953125 0,0.523366 0.4297588,0.953125 0.953125,0.953125 0.5233662,0 0.953125,-0.429759 0.953125,-0.953125 0,-0.523366 -0.4297588,-0.953125 -0.953125,-0.953125 z m 2.875,0 c -0.5233662,0 -0.953125,0.429759 -0.953125,0.953125 0,0.523366 0.4297588,0.953125 0.953125,0.953125 C 6.5702412,12.904297 7,12.474538 7,11.951172 7,11.427806 6.5702412,10.998047 6.046875,10.998047 Z m 2.8554688,0 c -0.5233663,0 -0.953125,0.429759 -0.953125,0.953125 0,0.523366 0.4297587,0.953125 0.953125,0.953125 0.5233661,0 0.9531249,-0.429759 0.953125,-0.953125 0,-0.523366 -0.4297588,-0.953125 -0.953125,-0.953125 z m 2.9003902,0 c -0.523366,0 -0.953125,0.429759 -0.953125,0.953125 0,0.523366 0.429759,0.953125 0.953125,0.953125 0.523367,0 0.953125,-0.429759 0.953125,-0.953125 0,-0.523366 -0.429758,-0.953125 -0.953125,-0.953125 z M 3.5,0 c -0.554,0 -1,0.446 -1,1 v 0.050781 C 1.0853217,1.2909766 0,2.5186658 0,4 v 9 c 0,1.652487 1.3475134,3 3,3 h 9 c 1.652487,0 3,-1.347513 3,-3 V 4 C 15,2.5186658 13.914678,1.2909766 12.5,1.0507812 V 1 c 0,-0.554 -0.446,-1 -1,-1 -0.554,0 -1,0.446 -1,1 h -2 c 0,-0.554 -0.446,-1 -1,-1 -0.554,0 -1,0.446 -1,1 h -2 C 4.5,0.446 4.054,0 3.5,0 Z m 1,2.0996094 h 2 v 0.640625 c 0,0.554 0.446,1 1,1 0.554,0 1,-0.446 1,-1 v -0.640625 h 2 v 0.640625 c 0,0.554 0.446,1 1,1 0.554,0 1,-0.446 1,-1 V 2.1738281 C 13.311725,2.3905225 13.900391,3.11278 13.900391,4 v 9 c 0,1.062113 -0.838278,1.900391 -1.900391,1.900391 H 3 C 1.9378864,14.900391 1.0996094,14.062113 1.0996094,13 V 4 C 1.0996094,3.11278 1.6882747,2.3905225 2.5,2.1738281 v 0.5664063 c 0,0.554 0.446,1 1,1 0.554,0 1,-0.446 1,-1 z\"/></svg>')}.btn-open-cal{outline:none;border:none;background-color:unset;cursor:pointer}.btn-open-cal:disabled{cursor:unset}.btn-open-cal::after{content:'';display:flex;background-color:var(--text--primary, #008561);width:15px;height:16px;-webkit-mask-image:var(--ez-date-input__calendar-image);mask-image:var(--ez-date-input__calendar-image)}.btn-open-cal:disabled:after{background-color:var(--text--disable, #AFB6C0)}.btn-open-cal:enabled:hover::after{background-color:var(--color--primary, #4e4e4e)}ez-text-input{--text-input__input--background-color:var(--ez-date-input__input--background-color, #FFFFFF);--text-input__input--border-color:var(--ez-date-input__input--border-color, #DCE0E8)}";
5
+ const ezDateTimeInputCss = ":host{display:block;width:100%;--ez-date-input__input--background-color:var(--background--medium, #e0e0e0);--ez-date-input__input--border-color:var(--ez-date-input__input--background-color);--ez-date-input__calendar-image:url('data:image/svg+xml;utf8,<svg xmlns=\"http://www.w3.org/2000/svg\" version=\"1.1\" height=\"16px\" width=\"15px\"><path d=\"M 3.171875,5.25 C 2.6485088,5.25 2.21875,5.6797588 2.21875,6.203125 2.21875,6.7264912 2.6485088,7.15625 3.171875,7.15625 3.6952412,7.15625 4.125,6.7264912 4.125,6.203125 4.125,5.6797588 3.6952412,5.25 3.171875,5.25 Z m 2.875,0 C 5.5235088,5.25 5.09375,5.6797588 5.09375,6.203125 5.09375,6.7264912 5.5235088,7.15625 6.046875,7.15625 6.5702412,7.15625 7,6.7264912 7,6.203125 7,5.6797588 6.5702412,5.25 6.046875,5.25 Z m 2.875,0 c -0.5233662,0 -0.953125,0.4297588 -0.953125,0.953125 0,0.5233662 0.4297588,0.953125 0.953125,0.953125 0.5233662,0 0.9511719,-0.4297588 0.9511719,-0.953125 C 9.8730469,5.6797588 9.4452412,5.25 8.921875,5.25 Z m 2.873047,0 c -0.523366,0 -0.953125,0.4297588 -0.953125,0.953125 0,0.5233662 0.429759,0.953125 0.953125,0.953125 0.523366,0 0.953125,-0.4297588 0.953125,-0.953125 C 12.748047,5.6797588 12.318288,5.25 11.794922,5.25 Z M 3.171875,8.1230469 c -0.5233662,0 -0.953125,0.4297588 -0.953125,0.953125 0,0.5233662 0.4297588,0.9531251 0.953125,0.9531251 0.5233662,0 0.953125,-0.4297589 0.953125,-0.9531251 0,-0.5233662 -0.4297588,-0.953125 -0.953125,-0.953125 z m 2.875,0 c -0.5233662,0 -0.953125,0.4297588 -0.953125,0.953125 0,0.5233662 0.4297588,0.9531251 0.953125,0.9531251 C 6.5702412,10.029297 7,9.5995381 7,9.0761719 7,8.5528057 6.5702412,8.1230469 6.046875,8.1230469 Z m 2.8554688,0 c -0.5233663,0 -0.953125,0.4297588 -0.953125,0.953125 0,0.5233662 0.4297587,0.9531251 0.953125,0.9531251 0.5233661,0 0.9531249,-0.4297589 0.953125,-0.9531251 0,-0.5233662 -0.4297588,-0.953125 -0.953125,-0.953125 z m 2.9003902,0 c -0.523366,0 -0.953125,0.4297588 -0.953125,0.953125 0,0.5233662 0.429759,0.9531251 0.953125,0.9531251 0.523367,0 0.953125,-0.4297589 0.953125,-0.9531251 0,-0.5233662 -0.429758,-0.953125 -0.953125,-0.953125 z M 3.171875,10.998047 c -0.5233662,0 -0.953125,0.429759 -0.953125,0.953125 0,0.523366 0.4297588,0.953125 0.953125,0.953125 0.5233662,0 0.953125,-0.429759 0.953125,-0.953125 0,-0.523366 -0.4297588,-0.953125 -0.953125,-0.953125 z m 2.875,0 c -0.5233662,0 -0.953125,0.429759 -0.953125,0.953125 0,0.523366 0.4297588,0.953125 0.953125,0.953125 C 6.5702412,12.904297 7,12.474538 7,11.951172 7,11.427806 6.5702412,10.998047 6.046875,10.998047 Z m 2.8554688,0 c -0.5233663,0 -0.953125,0.429759 -0.953125,0.953125 0,0.523366 0.4297587,0.953125 0.953125,0.953125 0.5233661,0 0.9531249,-0.429759 0.953125,-0.953125 0,-0.523366 -0.4297588,-0.953125 -0.953125,-0.953125 z m 2.9003902,0 c -0.523366,0 -0.953125,0.429759 -0.953125,0.953125 0,0.523366 0.429759,0.953125 0.953125,0.953125 0.523367,0 0.953125,-0.429759 0.953125,-0.953125 0,-0.523366 -0.429758,-0.953125 -0.953125,-0.953125 z M 3.5,0 c -0.554,0 -1,0.446 -1,1 v 0.050781 C 1.0853217,1.2909766 0,2.5186658 0,4 v 9 c 0,1.652487 1.3475134,3 3,3 h 9 c 1.652487,0 3,-1.347513 3,-3 V 4 C 15,2.5186658 13.914678,1.2909766 12.5,1.0507812 V 1 c 0,-0.554 -0.446,-1 -1,-1 -0.554,0 -1,0.446 -1,1 h -2 c 0,-0.554 -0.446,-1 -1,-1 -0.554,0 -1,0.446 -1,1 h -2 C 4.5,0.446 4.054,0 3.5,0 Z m 1,2.0996094 h 2 v 0.640625 c 0,0.554 0.446,1 1,1 0.554,0 1,-0.446 1,-1 v -0.640625 h 2 v 0.640625 c 0,0.554 0.446,1 1,1 0.554,0 1,-0.446 1,-1 V 2.1738281 C 13.311725,2.3905225 13.900391,3.11278 13.900391,4 v 9 c 0,1.062113 -0.838278,1.900391 -1.900391,1.900391 H 3 C 1.9378864,14.900391 1.0996094,14.062113 1.0996094,13 V 4 C 1.0996094,3.11278 1.6882747,2.3905225 2.5,2.1738281 v 0.5664063 c 0,0.554 0.446,1 1,1 0.554,0 1,-0.446 1,-1 z\"/></svg>')}.btn-open-cal{outline:none;border:none;background-color:unset;cursor:pointer}.btn-open-cal:disabled{cursor:not-allowed}.btn-open-cal::after{content:'';display:flex;background-color:var(--text--primary, #008561);width:15px;height:16px;-webkit-mask-image:var(--ez-date-input__calendar-image);mask-image:var(--ez-date-input__calendar-image)}.btn-open-cal:disabled:after{background-color:var(--text--disable, #AFB6C0)}.btn-open-cal:enabled:hover::after{background-color:var(--color--primary, #4e4e4e)}ez-text-input{--text-input__input--background-color:var(--ez-date-input__input--background-color, #FFFFFF);--text-input__input--border-color:var(--ez-date-input__input--border-color, #DCE0E8)}";
6
6
 
7
7
  const EzDateTimeInput = class {
8
8
  constructor(hostRef) {
@@ -20,6 +20,8 @@ const EzDateTimeInput = class {
20
20
  this.showSeconds = false;
21
21
  this.mode = "regular";
22
22
  this.canShowError = true;
23
+ this.autoFocus = false;
24
+ this.alternativePlaceholder = undefined;
23
25
  }
24
26
  observeLabel() {
25
27
  if (this._textInput) {
@@ -56,8 +58,8 @@ const EzDateTimeInput = class {
56
58
  /**
57
59
  * Aplica o foco no campo.
58
60
  */
59
- async setFocus() {
60
- this._textInput.setFocus();
61
+ async setFocus(options) {
62
+ this._textInput.setFocus(options);
61
63
  }
62
64
  /**
63
65
  * Remove o foco do campo.
@@ -126,21 +128,9 @@ const EzDateTimeInput = class {
126
128
  this.value = newValueValidated;
127
129
  }
128
130
  }
129
- showCalendar() {
130
- let top;
131
- if (this.isFixed()) {
132
- top = 29;
133
- this._calendar.fitHorizontal(0);
134
- }
135
- else {
136
- top = this.errorMessage || this.mode === "slim" ? 6 : -13;
137
- }
138
- this._calendar.fitVertical(top, this._elem.clientHeight);
139
- this._calendar.style.visibility = 'inherit';
140
- }
141
131
  hideCalendar() {
142
132
  this.changeValue(this._calendar.value);
143
- this._calendar.hide();
133
+ this._popover.hide();
144
134
  }
145
135
  getParsedDateTime(strValue) {
146
136
  var _a, _b;
@@ -218,16 +208,21 @@ const EzDateTimeInput = class {
218
208
  this._textInput.value = textValue;
219
209
  }
220
210
  }
221
- isFixed() {
222
- return this._elem.dataset.isFixed === "true";
211
+ disconnectedCallback() {
212
+ this._popover.hide();
223
213
  }
224
214
  componentDidLoad() {
225
215
  CSSVarsUtils.applyVarsTextInput(this._elem, this._textInput);
226
216
  this.setInputValue();
217
+ if (this.autoFocus) {
218
+ requestAnimationFrame(() => {
219
+ this.setFocus({ selectText: true });
220
+ });
221
+ }
227
222
  }
228
223
  render() {
229
224
  ElementIDUtils.addIDInfoIfNotExists(this._elem, 'input');
230
- return (h(Host, null, h("ez-text-input", { "data-element-id": ElementIDUtils.getInternalIDInfo("textInput"), ref: elem => this._textInput = elem, "data-slave-mode": "true", label: this.label, restrict: "0123456789/: ", enabled: this.enabled, errorMessage: this.errorMessage, mode: this.mode, onKeyDown: event => { this.handleKeyDown(event); }, onBlur: () => this.handleBlur(), onInput: (evt) => this.handleInput(evt), onFocus: () => this.handleFocus(), onClick: () => this.handleClick(), canShowError: this.canShowError }, h("button", { disabled: !this.enabled, tabindex: -1, class: "btn-open-cal", onClick: () => this.showCalendar(), slot: "leftIcon" })), h("ez-calendar", { ref: elem => this._calendar = elem, "data-element-id": ElementIDUtils.getInternalIDInfo("calendar"), onEzChange: (event) => { this.hideCalendar(); event.stopPropagation(); }, floating: true, time: true, showSeconds: this.showSeconds, "data-is-fixed": this._elem.dataset.isFixed })));
225
+ return (h(Host, null, h("ez-text-input", { "data-element-id": ElementIDUtils.getInternalIDInfo("textInput"), ref: elem => this._textInput = elem, "data-slave-mode": "true", label: this.label, restrict: "0123456789/: ", enabled: this.enabled, errorMessage: this.errorMessage, mode: this.mode, onKeyDown: event => { this.handleKeyDown(event); }, onBlur: () => this.handleBlur(), onInput: (evt) => this.handleInput(evt), onFocus: () => this.handleFocus(), onClick: () => this.handleClick(), canShowError: this.canShowError, alternativePlaceholder: this.alternativePlaceholder }, h("button", { disabled: !this.enabled, tabindex: -1, class: "btn-open-cal", onClick: () => { var _a; return (_a = this._popover) === null || _a === void 0 ? void 0 : _a.showUnder(this._textInput); }, slot: "leftIcon" })), h("ez-popover-plus", { ref: elem => this._popover = elem, anchorElement: this._textInput, autoClose: true, boxWidth: 'fit-content', overlayType: 'none' }, h("ez-calendar", { ref: elem => this._calendar = elem, "data-element-id": ElementIDUtils.getInternalIDInfo("calendar"), onEzChange: (event) => { this.hideCalendar(); event.stopPropagation(); }, time: true, showSeconds: this.showSeconds }))));
231
226
  }
232
227
  get _elem() { return getElement(this); }
233
228
  static get watchers() { return {