@sankhyalabs/ezui 5.22.0-dev.12 → 5.22.0-dev.121

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 (469) hide show
  1. package/dist/cjs/{CSSVarsUtils-10c9d5b4.js → CSSVarsUtils-f20973d1.js} +1 -0
  2. package/dist/cjs/DataBinder-b9973a19.js +474 -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 +7 -5
  7. package/dist/cjs/ez-alert-list.cjs.entry.js +1 -1
  8. package/dist/cjs/ez-alert.cjs.entry.js +1 -1
  9. package/dist/cjs/ez-application.cjs.entry.js +1 -1
  10. package/dist/cjs/ez-badge.cjs.entry.js +15 -3
  11. package/dist/cjs/ez-breadcrumb.cjs.entry.js +1 -1
  12. package/dist/cjs/ez-button.cjs.entry.js +12 -6
  13. package/dist/cjs/ez-calendar.cjs.entry.js +1 -1
  14. package/dist/cjs/ez-card-item_2.cjs.entry.js +270 -0
  15. package/dist/cjs/ez-chart.cjs.entry.js +4 -4
  16. package/dist/cjs/ez-check.cjs.entry.js +19 -11
  17. package/dist/cjs/ez-chip.cjs.entry.js +2 -2
  18. package/dist/cjs/ez-collapsible-box.cjs.entry.js +4 -3
  19. package/dist/cjs/ez-combo-box-list_3.cjs.entry.js +388 -0
  20. package/dist/cjs/ez-combo-box.cjs.entry.js +80 -157
  21. package/dist/cjs/ez-date-input.cjs.entry.js +17 -20
  22. package/dist/cjs/ez-date-time-input.cjs.entry.js +16 -21
  23. package/dist/cjs/ez-dialog.cjs.entry.js +19 -9
  24. package/dist/cjs/ez-double-list.cjs.entry.js +287 -0
  25. package/dist/cjs/ez-dropdown.cjs.entry.js +15 -9
  26. package/dist/cjs/ez-file-item.cjs.entry.js +1 -1
  27. package/dist/cjs/ez-filter-input.cjs.entry.js +129 -0
  28. package/dist/cjs/ez-form-view.cjs.entry.js +42 -28
  29. package/dist/cjs/ez-form.cjs.entry.js +35 -328
  30. package/dist/cjs/ez-grid.cjs.entry.js +15221 -69822
  31. package/dist/cjs/ez-guide-navigator.cjs.entry.js +1 -1
  32. package/dist/cjs/ez-icon.cjs.entry.js +2 -2
  33. package/dist/cjs/ez-list.cjs.entry.js +259 -212
  34. package/dist/cjs/ez-loading-bar.cjs.entry.js +1 -1
  35. package/dist/cjs/ez-modal-container.cjs.entry.js +8 -4
  36. package/dist/cjs/ez-modal.cjs.entry.js +18 -5
  37. package/dist/cjs/ez-multi-selection-list.cjs.entry.js +3 -3
  38. package/dist/cjs/ez-number-input.cjs.entry.js +17 -4
  39. package/dist/cjs/ez-popover-plus_3.cjs.entry.js +209 -0
  40. package/dist/cjs/ez-popover.cjs.entry.js +1 -1
  41. package/dist/cjs/ez-popup.cjs.entry.js +30 -4
  42. package/dist/cjs/ez-radio-button.cjs.entry.js +1 -1
  43. package/dist/cjs/ez-scroller_2.cjs.entry.js +4 -4
  44. package/dist/cjs/ez-search-plus.cjs.entry.js +398 -0
  45. package/dist/cjs/ez-search-result-list.cjs.entry.js +97 -0
  46. package/dist/cjs/ez-search.cjs.entry.js +125 -192
  47. package/dist/cjs/ez-sidebar-navigator.cjs.entry.js +2 -2
  48. package/dist/cjs/ez-skeleton.cjs.entry.js +2 -2
  49. package/dist/cjs/ez-split-button.cjs.entry.js +3 -3
  50. package/dist/cjs/ez-split-item.cjs.entry.js +9 -5
  51. package/dist/cjs/ez-split-panel.cjs.entry.js +69 -7
  52. package/dist/cjs/ez-tabselector.cjs.entry.js +1 -1
  53. package/dist/cjs/ez-text-area.cjs.entry.js +92 -9
  54. package/dist/cjs/ez-text-input.cjs.entry.js +136 -31
  55. package/dist/cjs/ez-time-input.cjs.entry.js +10 -3
  56. package/dist/cjs/ez-toast.cjs.entry.js +1 -1
  57. package/dist/cjs/ez-tooltip.cjs.entry.js +135 -0
  58. package/dist/cjs/ez-tree.cjs.entry.js +6 -5
  59. package/dist/cjs/ez-upload.cjs.entry.js +1 -1
  60. package/dist/cjs/ez-view-stack.cjs.entry.js +1 -1
  61. package/dist/cjs/ezListHelper-0d3970b4.js +90 -0
  62. package/dist/cjs/ezui.cjs.js +2 -2
  63. package/dist/cjs/filter-column.cjs.entry.js +25 -52
  64. package/dist/cjs/floating-ui.dom.esm-017acce4.js +1404 -0
  65. package/dist/cjs/{index-9e5554cb.js → index-a7b0c73d.js} +32 -11
  66. package/dist/cjs/loader.cjs.js +2 -2
  67. package/dist/cjs/searchFormatters-b7e1ed1e.js +23 -0
  68. package/dist/cjs/{ICustomRender-6fafffce.js → types-6a5df0c7.js} +8 -0
  69. package/dist/collection/collection-manifest.json +20 -2
  70. package/dist/collection/components/ez-actions-button/ez-actions-button.js +3 -2
  71. package/dist/collection/components/ez-badge/ez-badge.css +12 -1
  72. package/dist/collection/components/ez-badge/ez-badge.js +31 -1
  73. package/dist/collection/components/ez-button/ez-button.css +24 -14
  74. package/dist/collection/components/ez-button/ez-button.js +12 -6
  75. package/dist/collection/components/ez-card-item/ez-card-item.css +58 -10
  76. package/dist/collection/components/ez-card-item/ez-card-item.js +30 -3
  77. package/dist/collection/components/ez-chart/ez-chart.js +2 -2
  78. package/dist/collection/components/ez-chart/interfaces/ChartTypeValue.js +1 -0
  79. package/dist/collection/components/ez-chart/types/BaseHighChartsRender.js +3 -3
  80. package/dist/collection/components/ez-check/ez-check.css +10 -6
  81. package/dist/collection/components/ez-check/ez-check.js +34 -9
  82. package/dist/collection/components/ez-chip/ez-chip.css +5 -1
  83. package/dist/collection/components/ez-collapsible-box/ez-collapsible-box.css +2 -2
  84. package/dist/collection/components/ez-combo-box/ez-combo-box-list/ez-combo-box-list.css +205 -0
  85. package/dist/collection/components/ez-combo-box/ez-combo-box-list/ez-combo-box-list.js +426 -0
  86. package/dist/collection/components/ez-combo-box/ez-combo-box.css +8 -246
  87. package/dist/collection/components/ez-combo-box/ez-combo-box.js +139 -165
  88. package/dist/collection/components/ez-date-input/ez-date-input.css +1 -1
  89. package/dist/collection/components/ez-date-input/ez-date-input.js +58 -19
  90. package/dist/collection/components/ez-date-time-input/ez-date-time-input.css +1 -1
  91. package/dist/collection/components/ez-date-time-input/ez-date-time-input.js +57 -20
  92. package/dist/collection/components/ez-dialog/ez-dialog.css +27 -24
  93. package/dist/collection/components/ez-dialog/ez-dialog.js +18 -17
  94. package/dist/collection/components/ez-double-list/doubleListHelper.js +82 -0
  95. package/dist/collection/components/ez-double-list/ez-double-list.css +62 -0
  96. package/dist/collection/components/ez-double-list/ez-double-list.js +440 -0
  97. package/dist/collection/components/ez-dropdown/ez-dropdown.js +33 -8
  98. package/dist/collection/components/ez-filter-input/ez-filter-input.css +1 -1
  99. package/dist/collection/components/ez-filter-input/ez-filter-input.js +35 -4
  100. package/dist/collection/components/ez-form/ez-form.js +32 -4
  101. package/dist/collection/components/ez-form-view/custom-input/ez-custom-form-input.js +49 -6
  102. package/dist/collection/components/ez-form-view/ez-form-view.css +13 -2
  103. package/dist/collection/components/ez-form-view/ez-form-view.js +21 -2
  104. package/dist/collection/components/ez-form-view/fieldbuilder/FieldBuilder.js +5 -2
  105. package/dist/collection/components/ez-form-view/fieldbuilder/templates/CheckBox.tpl.js +1 -1
  106. package/dist/collection/components/ez-form-view/fieldbuilder/templates/ComboBox.tpl.js +1 -1
  107. package/dist/collection/components/ez-form-view/fieldbuilder/templates/DateInput.tpl.js +8 -4
  108. package/dist/collection/components/ez-form-view/fieldbuilder/templates/FileInput.tpl.js +1 -1
  109. package/dist/collection/components/ez-form-view/fieldbuilder/templates/NumberInput.tpl.js +1 -1
  110. package/dist/collection/components/ez-form-view/fieldbuilder/templates/SearchInput.tpl.js +1 -1
  111. package/dist/collection/components/ez-form-view/fieldbuilder/templates/SearchInputPlus.tpl.js +6 -0
  112. package/dist/collection/components/ez-form-view/fieldbuilder/templates/TextArea.tpl.js +1 -1
  113. package/dist/collection/components/ez-form-view/fieldbuilder/templates/TextInput.tpl.js +2 -2
  114. package/dist/collection/components/ez-grid/controller/ag-grid/AgGridController.js +419 -75
  115. package/dist/collection/components/ez-grid/controller/ag-grid/DataSource.js +172 -33
  116. package/dist/collection/components/ez-grid/controller/ag-grid/DataSourceInterceptor.js +2 -1
  117. package/dist/collection/components/ez-grid/controller/ag-grid/GridEditionManager.js +248 -43
  118. package/dist/collection/components/ez-grid/controller/ag-grid/components/EzGridCustomCellEditor.js +16 -0
  119. package/dist/collection/components/ez-grid/controller/ag-grid/components/EzGridCustomHeader.js +1 -1
  120. package/dist/collection/components/ez-grid/controller/ag-grid/editor/EzCellEditor.js +10 -0
  121. package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/ComboBox.tpl.js +2 -0
  122. package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/DateInput.tpl.js +1 -0
  123. package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/NumberInput.tpl.js +1 -0
  124. package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/Search.tpl.js +8 -1
  125. package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/SearchPlus.tpl.js +15 -0
  126. package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/TextInput.tpl.js +4 -1
  127. package/dist/collection/components/ez-grid/controller/ag-grid/test/constants/GridEditionMock.js +2 -0
  128. package/dist/collection/components/ez-grid/ez-grid.css +95 -10
  129. package/dist/collection/components/ez-grid/ez-grid.js +370 -12
  130. package/dist/collection/components/ez-grid/subcomponents/filter-column.css +4 -0
  131. package/dist/collection/components/ez-grid/subcomponents/filter-column.js +23 -50
  132. package/dist/collection/components/ez-grid/utils/ColumnFilterManager.js +7 -54
  133. package/dist/collection/components/ez-grid/utils/InMemoryFilterColumnDataSource.js +20 -4
  134. package/dist/collection/components/ez-icon/ez-icon.css +156 -149
  135. package/dist/collection/components/ez-list/ez-list.css +5 -4
  136. package/dist/collection/components/ez-list/ez-list.js +301 -212
  137. package/dist/collection/components/ez-list/ezListHelper.js +85 -0
  138. package/dist/collection/components/ez-modal/ez-modal.css +7 -2
  139. package/dist/collection/components/ez-modal/ez-modal.js +18 -5
  140. package/dist/collection/components/ez-modal-container/ez-modal-container.css +1 -0
  141. package/dist/collection/components/ez-modal-container/ez-modal-container.js +6 -2
  142. package/dist/collection/components/ez-multi-selection-list/ez-multi-selection-list.css +3 -3
  143. package/dist/collection/components/ez-multi-selection-list/ez-multi-selection-list.js +1 -1
  144. package/dist/collection/components/ez-multi-selection-list/interfaces/IStaticOptionsFetchConfig.js +1 -0
  145. package/dist/collection/components/ez-number-input/ez-number-input.css +8 -0
  146. package/dist/collection/components/ez-number-input/ez-number-input.js +67 -1
  147. package/dist/collection/components/ez-popover-plus/ez-popover-plus.css +3 -0
  148. package/dist/collection/components/ez-popover-plus/ez-popover-plus.js +434 -0
  149. package/dist/collection/components/ez-popover-plus/subcomponent/ez-popover-core.css +67 -0
  150. package/dist/collection/components/ez-popover-plus/subcomponent/ez-popover-core.js +527 -0
  151. package/dist/collection/components/ez-popup/ez-popup.css +8 -3
  152. package/dist/collection/components/ez-popup/ez-popup.js +48 -4
  153. package/dist/collection/components/ez-scroller/ez-scroller.css +4 -0
  154. package/dist/collection/components/ez-search/ez-search.css +2 -210
  155. package/dist/collection/components/ez-search/ez-search.js +223 -204
  156. package/dist/collection/components/ez-search/subcomponent/search-list/search-list.css +227 -0
  157. package/dist/collection/components/ez-search/subcomponent/search-list/search-list.js +289 -0
  158. package/dist/collection/components/ez-search/utils/searchFormatters.js +18 -0
  159. package/dist/collection/components/ez-search-plus/ez-search-plus.css +373 -0
  160. package/dist/collection/components/ez-search-plus/ez-search-plus.js +984 -0
  161. package/dist/collection/components/ez-search-plus/subcomponent/ez-search-result-list/ez-search-result-list.css +221 -0
  162. package/dist/collection/components/ez-search-plus/subcomponent/ez-search-result-list/ez-search-result-list.js +278 -0
  163. package/dist/collection/components/ez-sidebar-button/ez-sidebar-button.css +3 -0
  164. package/dist/collection/components/ez-sidebar-button/ez-sidebar-button.js +1 -1
  165. package/dist/collection/components/ez-sidebar-navigator/ez-sidebar-navigator.css +4 -1
  166. package/dist/collection/components/ez-skeleton/ez-skeleton.css +54 -34
  167. package/dist/collection/components/ez-split-button/ez-split-button.css +52 -14
  168. package/dist/collection/components/ez-split-button/ez-split-button.js +3 -3
  169. package/dist/collection/components/ez-split-panel/ez-split-panel.css +15 -0
  170. package/dist/collection/components/ez-split-panel/ez-split-panel.js +106 -5
  171. package/dist/collection/components/ez-split-panel/interfaces/IPanelSizeInfo.js +1 -0
  172. package/dist/collection/components/ez-split-panel/structure/item/ez-split-item.css +14 -2
  173. package/dist/collection/components/ez-split-panel/structure/item/ez-split-item.js +22 -1
  174. package/dist/collection/components/ez-text-area/ez-text-area.css +78 -29
  175. package/dist/collection/components/ez-text-area/ez-text-area.js +151 -6
  176. package/dist/collection/components/ez-text-input/ez-text-input.css +126 -93
  177. package/dist/collection/components/ez-text-input/ez-text-input.js +216 -28
  178. package/dist/collection/components/ez-time-input/ez-time-input.js +43 -1
  179. package/dist/collection/components/ez-tooltip/ez-tooltip.css +61 -0
  180. package/dist/collection/components/ez-tooltip/ez-tooltip.js +310 -0
  181. package/dist/collection/components/ez-tree/ez-tree.js +21 -1
  182. package/dist/collection/components/ez-tree/subcomponents/TreeItem.js +3 -3
  183. package/dist/collection/sw.js +46 -0
  184. package/dist/collection/utils/CSSVarsUtils.js +1 -0
  185. package/dist/collection/utils/FocusResolver.js +31 -0
  186. package/dist/collection/utils/constants.js +2 -0
  187. package/dist/collection/utils/form/DataBinder.js +65 -21
  188. package/dist/collection/utils/form/FormMetadata.js +2 -1
  189. package/dist/collection/utils/form/interfaces/FormLayout.js +5 -0
  190. package/dist/collection/utils/form/interfaces/index.js +1 -1
  191. package/dist/collection/utils/form/test/DataBinder.test.js +14 -0
  192. package/dist/collection/utils/index.js +2 -0
  193. package/dist/collection/utils/interfaces/AbstractFieldMetadata.js +1 -1
  194. package/dist/collection/utils/search/types.js +7 -0
  195. package/dist/collection/utils/validators/recordvalidator/IInvalidCells.js +1 -0
  196. package/dist/collection/utils/validators/recordvalidator/RecordValidationProcessor.js +7 -1
  197. package/dist/custom-elements/index.d.ts +48 -0
  198. package/dist/custom-elements/index.js +21838 -73085
  199. package/dist/esm/{CSSVarsUtils-71ce76be.js → CSSVarsUtils-acba92d7.js} +1 -0
  200. package/dist/esm/DataBinder-1035e36f.js +470 -0
  201. package/dist/esm/FocusResolver-1ccbf850.js +33 -0
  202. package/dist/esm/FormLayout-54092963.js +7 -0
  203. package/dist/esm/constants-b036528f.js +7 -0
  204. package/dist/esm/ez-actions-button.entry.js +7 -5
  205. package/dist/esm/ez-alert-list.entry.js +1 -1
  206. package/dist/esm/ez-alert.entry.js +1 -1
  207. package/dist/esm/ez-application.entry.js +1 -1
  208. package/dist/esm/ez-badge.entry.js +15 -3
  209. package/dist/esm/ez-breadcrumb.entry.js +1 -1
  210. package/dist/esm/ez-button.entry.js +12 -6
  211. package/dist/esm/ez-calendar.entry.js +1 -1
  212. package/dist/esm/ez-card-item_2.entry.js +265 -0
  213. package/dist/esm/ez-chart.entry.js +4 -4
  214. package/dist/esm/ez-check.entry.js +19 -11
  215. package/dist/esm/ez-chip.entry.js +2 -2
  216. package/dist/esm/ez-collapsible-box.entry.js +4 -3
  217. package/dist/esm/ez-combo-box-list_3.entry.js +382 -0
  218. package/dist/esm/ez-combo-box.entry.js +81 -158
  219. package/dist/esm/ez-date-input.entry.js +17 -20
  220. package/dist/esm/ez-date-time-input.entry.js +16 -21
  221. package/dist/esm/ez-dialog.entry.js +20 -10
  222. package/dist/esm/ez-double-list.entry.js +283 -0
  223. package/dist/esm/ez-dropdown.entry.js +15 -9
  224. package/dist/esm/ez-file-item.entry.js +1 -1
  225. package/dist/esm/ez-filter-input.entry.js +125 -0
  226. package/dist/esm/ez-form-view.entry.js +43 -29
  227. package/dist/esm/ez-form.entry.js +34 -327
  228. package/dist/esm/ez-grid.entry.js +15219 -69820
  229. package/dist/esm/ez-guide-navigator.entry.js +1 -1
  230. package/dist/esm/ez-icon.entry.js +2 -2
  231. package/dist/esm/ez-list.entry.js +259 -212
  232. package/dist/esm/ez-loading-bar.entry.js +1 -1
  233. package/dist/esm/ez-modal-container.entry.js +8 -4
  234. package/dist/esm/ez-modal.entry.js +18 -5
  235. package/dist/esm/ez-multi-selection-list.entry.js +3 -3
  236. package/dist/esm/ez-number-input.entry.js +17 -4
  237. package/dist/esm/ez-popover-plus_3.entry.js +203 -0
  238. package/dist/esm/ez-popover.entry.js +1 -1
  239. package/dist/esm/ez-popup.entry.js +30 -4
  240. package/dist/esm/ez-radio-button.entry.js +1 -1
  241. package/dist/esm/ez-scroller_2.entry.js +4 -4
  242. package/dist/esm/ez-search-plus.entry.js +394 -0
  243. package/dist/esm/ez-search-result-list.entry.js +93 -0
  244. package/dist/esm/ez-search.entry.js +126 -193
  245. package/dist/esm/ez-sidebar-navigator.entry.js +2 -2
  246. package/dist/esm/ez-skeleton.entry.js +2 -2
  247. package/dist/esm/ez-split-button.entry.js +3 -3
  248. package/dist/esm/ez-split-item.entry.js +9 -5
  249. package/dist/esm/ez-split-panel.entry.js +69 -7
  250. package/dist/esm/ez-tabselector.entry.js +1 -1
  251. package/dist/esm/ez-text-area.entry.js +92 -9
  252. package/dist/esm/ez-text-input.entry.js +136 -31
  253. package/dist/esm/ez-time-input.entry.js +10 -3
  254. package/dist/esm/ez-toast.entry.js +1 -1
  255. package/dist/esm/ez-tooltip.entry.js +131 -0
  256. package/dist/esm/ez-tree.entry.js +6 -5
  257. package/dist/esm/ez-upload.entry.js +1 -1
  258. package/dist/esm/ez-view-stack.entry.js +1 -1
  259. package/dist/esm/ezListHelper-00fb9b8d.js +87 -0
  260. package/dist/esm/ezui.js +3 -3
  261. package/dist/esm/filter-column.entry.js +25 -52
  262. package/dist/esm/floating-ui.dom.esm-5d3da819.js +1398 -0
  263. package/dist/esm/{index-5a720e56.js → index-baa5e267.js} +33 -11
  264. package/dist/esm/loader.js +3 -3
  265. package/dist/esm/searchFormatters-8229207e.js +20 -0
  266. package/dist/esm/{ICustomRender-875b5a40.js → types-6f6b2650.js} +9 -1
  267. package/dist/ezui/ezui.esm.js +1 -1
  268. package/dist/ezui/{p-e6b38ade.entry.js → p-0306dff7.entry.js} +1 -1
  269. package/dist/ezui/p-03c106f6.entry.js +1 -0
  270. package/dist/ezui/{p-91ccae0c.entry.js → p-09de35a2.entry.js} +1 -1
  271. package/dist/ezui/p-0bffeffc.entry.js +1 -0
  272. package/dist/ezui/p-15ea0c98.js +1 -0
  273. package/dist/ezui/p-173f68ea.js +1 -0
  274. package/dist/ezui/{p-81461d2f.entry.js → p-1e7a8633.entry.js} +1 -1
  275. package/dist/ezui/{p-6b51c9cc.entry.js → p-1f50fa05.entry.js} +1 -1
  276. package/dist/ezui/p-20c024f7.entry.js +1 -0
  277. package/dist/ezui/{p-e4c7eb39.js → p-23a36bb6.js} +2 -2
  278. package/dist/ezui/p-2872fd16.entry.js +1 -0
  279. package/dist/ezui/p-288631d1.entry.js +1 -0
  280. package/dist/ezui/p-2b4df33d.entry.js +1 -0
  281. package/dist/ezui/p-3ba9565c.entry.js +1 -0
  282. package/dist/ezui/p-40a60148.js +1 -0
  283. package/dist/ezui/{p-0378416a.entry.js → p-44caad9a.entry.js} +1 -1
  284. package/dist/ezui/p-496f7832.entry.js +1 -0
  285. package/dist/ezui/p-4bd6dd6a.entry.js +1 -0
  286. package/dist/ezui/{p-82ac8b06.entry.js → p-4cf0aaeb.entry.js} +1 -1
  287. package/dist/ezui/{p-7567ccdd.entry.js → p-555c9018.entry.js} +1 -1
  288. package/dist/ezui/p-56fe5341.entry.js +1 -0
  289. package/dist/ezui/p-5895e687.js +1 -0
  290. package/dist/ezui/p-5a14f506.entry.js +1 -0
  291. package/dist/ezui/p-5ec0ae79.entry.js +1 -0
  292. package/dist/ezui/{p-6fc26622.entry.js → p-5ed81457.entry.js} +1 -1
  293. package/dist/ezui/p-5eea9886.js +1 -0
  294. package/dist/ezui/p-629d15ed.entry.js +1 -0
  295. package/dist/ezui/p-6754489a.entry.js +1 -0
  296. package/dist/ezui/p-6825bdc7.entry.js +1 -0
  297. package/dist/ezui/p-6b39b79a.entry.js +309 -0
  298. package/dist/ezui/{p-fc194825.entry.js → p-6e429cff.entry.js} +1 -1
  299. package/dist/ezui/p-6f4681f8.entry.js +1 -0
  300. package/dist/ezui/p-7019f782.entry.js +1 -0
  301. package/dist/ezui/p-7742802c.entry.js +1 -0
  302. package/dist/ezui/{p-11bfeca3.entry.js → p-77a4bd35.entry.js} +1 -1
  303. package/dist/ezui/p-7e677b7b.entry.js +1 -0
  304. package/dist/ezui/p-80dfc50b.js +1 -0
  305. package/dist/ezui/{p-82fa4b09.entry.js → p-8df1ca33.entry.js} +1 -1
  306. package/dist/ezui/p-9478b13b.entry.js +1 -0
  307. package/dist/ezui/p-9567b31a.entry.js +1 -0
  308. package/dist/ezui/p-9c5cd3b2.entry.js +1 -0
  309. package/dist/ezui/{p-c2b20f78.entry.js → p-9f5fa3f9.entry.js} +1 -1
  310. package/dist/ezui/p-a4cee65d.entry.js +1 -0
  311. package/dist/ezui/{p-dfca5946.entry.js → p-a80b1287.entry.js} +1 -1
  312. package/dist/ezui/p-b81881ac.entry.js +1 -0
  313. package/dist/ezui/p-bac0f920.entry.js +1 -0
  314. package/dist/ezui/p-bc2f844e.entry.js +1 -0
  315. package/dist/ezui/p-bf9dec89.entry.js +1 -0
  316. package/dist/ezui/p-c00df4be.entry.js +1 -0
  317. package/dist/ezui/{p-92748142.entry.js → p-c0d9c4f8.entry.js} +1 -1
  318. package/dist/ezui/p-cb75eb46.entry.js +1 -0
  319. package/dist/ezui/{p-044d46d5.entry.js → p-d47dabdf.entry.js} +1 -1
  320. package/dist/ezui/p-da1b4a38.entry.js +1 -0
  321. package/dist/ezui/p-dc628ed3.js +1 -0
  322. package/dist/ezui/p-dc73e1fe.entry.js +1 -0
  323. package/dist/ezui/{p-b2f6bc0a.entry.js → p-e06a9886.entry.js} +1 -1
  324. package/dist/ezui/p-e07e4671.js +1 -0
  325. package/dist/ezui/p-e6a9041d.entry.js +1 -0
  326. package/dist/ezui/p-e75c7a23.entry.js +1 -0
  327. package/dist/ezui/p-ebd23857.entry.js +1 -0
  328. package/dist/ezui/p-ec7db713.js +1 -0
  329. package/dist/ezui/p-ecaac11f.entry.js +1 -0
  330. package/dist/ezui/p-f4861c6a.entry.js +1 -0
  331. package/dist/ezui/p-f5a30e35.entry.js +1 -0
  332. package/dist/ezui/p-f6316720.entry.js +1 -0
  333. package/dist/ezui/p-fa6732f2.entry.js +1 -0
  334. package/dist/types/components/ez-badge/ez-badge.d.ts +5 -0
  335. package/dist/types/components/ez-button/ez-button.d.ts +2 -1
  336. package/dist/types/components/ez-calendar/ez-calendar.d.ts +3 -3
  337. package/dist/types/components/ez-card-item/ez-card-item.d.ts +5 -0
  338. package/dist/types/components/ez-chart/interfaces/ChartAxis.d.ts +2 -0
  339. package/dist/types/components/ez-chart/interfaces/ChartTypeValue.d.ts +1 -0
  340. package/dist/types/components/ez-check/ez-check.d.ts +7 -2
  341. package/dist/types/components/ez-combo-box/ez-combo-box-list/ez-combo-box-list.d.ts +104 -0
  342. package/dist/types/components/ez-combo-box/ez-combo-box.d.ts +19 -15
  343. package/dist/types/components/ez-date-input/ez-date-input.d.ts +12 -3
  344. package/dist/types/components/ez-date-time-input/ez-date-time-input.d.ts +12 -3
  345. package/dist/types/components/ez-dialog/ez-dialog.d.ts +3 -1
  346. package/dist/types/components/ez-double-list/doubleListHelper.d.ts +10 -0
  347. package/dist/types/components/ez-double-list/ez-double-list.d.ts +87 -0
  348. package/dist/types/components/ez-dropdown/ez-dropdown.d.ts +4 -0
  349. package/dist/types/components/ez-dropdown/structure/DropdownItem.d.ts +1 -1
  350. package/dist/types/components/ez-filter-input/ez-filter-input.d.ts +6 -1
  351. package/dist/types/components/ez-form/ez-form.d.ts +5 -1
  352. package/dist/types/components/ez-form-view/custom-input/ez-custom-form-input.d.ts +7 -1
  353. package/dist/types/components/ez-form-view/ez-form-view.d.ts +4 -0
  354. package/dist/types/components/ez-form-view/fieldbuilder/templates/DateInput.tpl.d.ts +2 -1
  355. package/dist/types/components/ez-form-view/fieldbuilder/templates/SearchInputPlus.tpl.d.ts +2 -0
  356. package/dist/types/components/ez-form-view/fieldbuilder/templates/TextInput.tpl.d.ts +1 -1
  357. package/dist/types/components/ez-grid/controller/EzGridController.d.ts +75 -4
  358. package/dist/types/components/ez-grid/controller/ag-grid/AgGridController.d.ts +44 -6
  359. package/dist/types/components/ez-grid/controller/ag-grid/DataSource.d.ts +26 -2
  360. package/dist/types/components/ez-grid/controller/ag-grid/GridEditionManager.d.ts +34 -7
  361. package/dist/types/components/ez-grid/controller/ag-grid/components/EzGridCustomCellEditor.d.ts +4 -1
  362. package/dist/types/components/ez-grid/controller/ag-grid/components/EzGridCustomCellRender.d.ts +1 -1
  363. package/dist/types/components/ez-grid/controller/ag-grid/components/EzGridCustomHeader.d.ts +1 -1
  364. package/dist/types/components/ez-grid/controller/ag-grid/components/cellRendererStatus.d.ts +1 -1
  365. package/dist/types/components/ez-grid/controller/ag-grid/components/selectionHeader.d.ts +1 -1
  366. package/dist/types/components/ez-grid/controller/ag-grid/editor/EzCellEditor.d.ts +2 -1
  367. package/dist/types/components/ez-grid/controller/ag-grid/editor/EzCellRender.d.ts +1 -1
  368. package/dist/types/components/ez-grid/controller/ag-grid/editor/IUICellEditor.d.ts +1 -0
  369. package/dist/types/components/ez-grid/controller/ag-grid/editor/templates/SearchPlus.tpl.d.ts +3 -0
  370. package/dist/types/components/ez-grid/controller/ag-grid/mock/Server.d.ts +1 -1
  371. package/dist/types/components/ez-grid/ez-grid.d.ts +59 -1
  372. package/dist/types/components/ez-grid/subcomponents/filter-column.d.ts +1 -11
  373. package/dist/types/components/ez-grid/utils/ColumnFilterManager.d.ts +1 -1
  374. package/dist/types/components/ez-grid/utils/InMemoryFilterColumnDataSource.d.ts +3 -0
  375. package/dist/types/components/ez-list/ez-list.d.ts +23 -2
  376. package/dist/types/components/ez-list/ezListHelper.d.ts +20 -0
  377. package/dist/types/components/ez-modal/ez-modal.d.ts +4 -1
  378. package/dist/types/components/ez-modal-container/ez-modal-container.d.ts +2 -0
  379. package/dist/types/components/ez-multi-selection-list/interfaces/IMultiSelectionListDataSource.d.ts +2 -1
  380. package/dist/types/components/ez-multi-selection-list/interfaces/IStaticOptionsFetchConfig.d.ts +3 -0
  381. package/dist/types/components/ez-number-input/ez-number-input.d.ts +12 -0
  382. package/dist/types/components/ez-popover-plus/ez-popover-plus.d.ts +74 -0
  383. package/dist/types/components/ez-popover-plus/subcomponent/ez-popover-core.d.ts +91 -0
  384. package/dist/types/components/ez-popup/ez-popup.d.ts +10 -1
  385. package/dist/types/components/ez-search/ez-search.d.ts +36 -18
  386. package/dist/types/components/ez-search/subcomponent/search-list/search-list.d.ts +23 -0
  387. package/dist/types/components/ez-search/utils/searchFormatters.d.ts +2 -0
  388. package/dist/types/components/ez-search-plus/ez-search-plus.d.ts +186 -0
  389. package/dist/types/components/ez-search-plus/subcomponent/ez-search-result-list/ez-search-result-list.d.ts +26 -0
  390. package/dist/types/components/ez-split-button/ez-split-button.d.ts +1 -1
  391. package/dist/types/components/ez-split-panel/ez-split-panel.d.ts +11 -0
  392. package/dist/types/components/ez-split-panel/interfaces/IPanelSizeInfo.d.ts +9 -0
  393. package/dist/types/components/ez-split-panel/structure/item/ez-split-item.d.ts +5 -0
  394. package/dist/types/components/ez-text-area/ez-text-area.d.ts +25 -0
  395. package/dist/types/components/ez-text-input/ez-text-input.d.ts +35 -3
  396. package/dist/types/components/ez-time-input/ez-time-input.d.ts +8 -0
  397. package/dist/types/components/ez-tooltip/ez-tooltip.d.ts +57 -0
  398. package/dist/types/components/ez-tree/ez-tree.d.ts +4 -0
  399. package/dist/types/components/ez-tree/interfaces/ITreeItem.d.ts +1 -0
  400. package/dist/types/components/ez-tree/subcomponents/TreeItem.d.ts +1 -0
  401. package/dist/types/components.d.ts +1233 -63
  402. package/dist/types/utils/FocusResolver.d.ts +5 -0
  403. package/dist/types/utils/constants.d.ts +2 -0
  404. package/dist/types/utils/customEditor/interfaces/ICustomEditor.d.ts +2 -0
  405. package/dist/types/utils/form/DataBinder.d.ts +7 -2
  406. package/dist/types/utils/form/interfaces/FormLayout.d.ts +4 -0
  407. package/dist/types/utils/form/interfaces/index.d.ts +1 -0
  408. package/dist/types/utils/index.d.ts +2 -0
  409. package/dist/types/utils/search/types.d.ts +12 -0
  410. package/dist/types/utils/validators/recordvalidator/IInvalidCells.d.ts +5 -0
  411. package/dist/types/utils/validators/recordvalidator/RecordValidationProcessor.d.ts +1 -1
  412. package/package.json +12 -4
  413. package/react/components.d.ts +62 -54
  414. package/react/components.js +8 -0
  415. package/react/components.js.map +1 -1
  416. package/react/react-component-lib/createComponent.d.ts +1 -1
  417. package/react/react-component-lib/createComponent.js.map +1 -1
  418. package/react/react-component-lib/createOverlayComponent.js.map +1 -1
  419. package/react/react-component-lib/interfaces.js +1 -0
  420. package/react/react-component-lib/utils/attachProps.d.ts +1 -1
  421. package/react/react-component-lib/utils/attachProps.js.map +1 -1
  422. package/react/react-component-lib/utils/dev.js.map +1 -1
  423. package/react/react-component-lib/utils/index.d.ts +2 -2
  424. package/react/react-component-lib/utils/index.js.map +1 -1
  425. package/dist/cjs/RecordValidationProcessor-4c893e04.js +0 -102
  426. package/dist/cjs/ez-card-item_3.cjs.entry.js +0 -183
  427. package/dist/cjs/ez-custom-form-input_2.cjs.entry.js +0 -206
  428. package/dist/esm/RecordValidationProcessor-b00b8b77.js +0 -99
  429. package/dist/esm/constants-4e0d35b7.js +0 -5
  430. package/dist/esm/ez-card-item_3.entry.js +0 -177
  431. package/dist/esm/ez-custom-form-input_2.entry.js +0 -201
  432. package/dist/ezui/p-04f24913.js +0 -1
  433. package/dist/ezui/p-05e1f4e7.js +0 -1
  434. package/dist/ezui/p-0ee0ac03.entry.js +0 -1
  435. package/dist/ezui/p-11b09aa1.entry.js +0 -1
  436. package/dist/ezui/p-1b08bf3c.entry.js +0 -1
  437. package/dist/ezui/p-24ca32a3.entry.js +0 -1
  438. package/dist/ezui/p-2af4e2de.entry.js +0 -1
  439. package/dist/ezui/p-30951bd7.entry.js +0 -1
  440. package/dist/ezui/p-3141ee18.entry.js +0 -1
  441. package/dist/ezui/p-31674f8e.entry.js +0 -1
  442. package/dist/ezui/p-33792b2b.entry.js +0 -1
  443. package/dist/ezui/p-36180f4d.entry.js +0 -1
  444. package/dist/ezui/p-3f8c33e0.entry.js +0 -1
  445. package/dist/ezui/p-4607fb89.js +0 -1
  446. package/dist/ezui/p-52100a6e.entry.js +0 -1
  447. package/dist/ezui/p-5517995b.entry.js +0 -1
  448. package/dist/ezui/p-5fefcdc9.entry.js +0 -1
  449. package/dist/ezui/p-615def37.entry.js +0 -304
  450. package/dist/ezui/p-6ec40dec.entry.js +0 -1
  451. package/dist/ezui/p-752c4069.entry.js +0 -1
  452. package/dist/ezui/p-81cffa53.entry.js +0 -1
  453. package/dist/ezui/p-81f99ace.entry.js +0 -1
  454. package/dist/ezui/p-868b56f7.entry.js +0 -1
  455. package/dist/ezui/p-8eef0f70.entry.js +0 -1
  456. package/dist/ezui/p-9634631d.entry.js +0 -1
  457. package/dist/ezui/p-9a23d513.entry.js +0 -1
  458. package/dist/ezui/p-9aa27e69.entry.js +0 -1
  459. package/dist/ezui/p-9c2e2d68.entry.js +0 -1
  460. package/dist/ezui/p-9e11fc7b.js +0 -1
  461. package/dist/ezui/p-b0e71d23.entry.js +0 -1
  462. package/dist/ezui/p-c3b7a23e.entry.js +0 -1
  463. package/dist/ezui/p-cd1a2e6b.entry.js +0 -1
  464. package/dist/ezui/p-dbeee5aa.entry.js +0 -1
  465. package/dist/ezui/p-de870657.entry.js +0 -1
  466. package/dist/ezui/p-ee9315ff.entry.js +0 -1
  467. package/dist/ezui/p-f1c2c19e.entry.js +0 -1
  468. package/dist/ezui/p-f1c3f85d.entry.js +0 -1
  469. package/dist/ezui/p-f291db18.entry.js +0 -1
@@ -2,15 +2,16 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-9e5554cb.js');
5
+ const index = require('./index-a7b0c73d.js');
6
6
  const core = require('@sankhyalabs/core');
7
7
  require('./ApplicationUtils-c9d1205c.js');
8
- const CSSVarsUtils = require('./CSSVarsUtils-10c9d5b4.js');
8
+ const CSSVarsUtils = require('./CSSVarsUtils-f20973d1.js');
9
9
  require('./DialogType-2114c337.js');
10
10
  require('./CheckMode-ecb90b87.js');
11
- require('./ICustomRender-6fafffce.js');
11
+ require('./types-6a5df0c7.js');
12
+ require('./FormLayout-c2451c7f.js');
12
13
 
13
- 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)}}";
14
+ 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)}}";
14
15
 
15
16
  const EzComboBox = class {
16
17
  constructor(hostRef) {
@@ -22,6 +23,7 @@ const EzComboBox = class {
22
23
  this._tabPressed = false;
23
24
  this._textEmptyList = "Nenhum resultado encontrado";
24
25
  this._lookupMode = false;
26
+ this.isOpen = false;
25
27
  this._preSelection = undefined;
26
28
  this._visibleOptions = undefined;
27
29
  this._startLoading = false;
@@ -38,11 +40,14 @@ const EzComboBox = class {
38
40
  this.suppressSearch = false;
39
41
  this.optionLoader = undefined;
40
42
  this.suppressEmptyOption = false;
43
+ this.stopPropagateEnterKeyEvent = true;
41
44
  this.canShowError = true;
42
45
  this.mode = "regular";
43
46
  this.hideErrorOnFocusOut = true;
44
47
  this.listOptionsPosition = undefined;
45
48
  this.isTextSearch = false;
49
+ this.autoFocus = false;
50
+ this.alternativePlaceholder = undefined;
46
51
  }
47
52
  observeErrorMessage() {
48
53
  var _a;
@@ -105,9 +110,9 @@ const EzComboBox = class {
105
110
  /**
106
111
  * Aplica o foco no campo.
107
112
  */
108
- async setFocus() {
113
+ async setFocus(options) {
109
114
  if (this._textInput) {
110
- this._textInput.setFocus();
115
+ this._textInput.setFocus(options);
111
116
  }
112
117
  }
113
118
  /**
@@ -130,63 +135,6 @@ const EzComboBox = class {
130
135
  async clearValue() {
131
136
  this.clearSearch();
132
137
  }
133
- scrollListener() {
134
- var _a;
135
- if (this._floatingID == undefined) {
136
- return;
137
- }
138
- if ((_a = this.listOptionsPosition) === null || _a === void 0 ? void 0 : _a.hardPosition) {
139
- this.hideOptions();
140
- }
141
- else {
142
- window.requestAnimationFrame(() => {
143
- this.updateListPosition();
144
- });
145
- }
146
- }
147
- updateListPosition() {
148
- let { verticalPosition, horizontalPosition, fromBottom, fromRight, bottomLimit, hardPosition } = this.getListPosition();
149
- const elementRect = this._listWrapper.getBoundingClientRect();
150
- const containerRect = this._listContainer.getBoundingClientRect();
151
- const textInputRect = this._textInput.getBoundingClientRect();
152
- const limitHeight = bottomLimit || window.innerHeight;
153
- const neededHeight = containerRect.bottom + elementRect.height;
154
- if (!fromBottom && (elementRect.top < 0 || neededHeight > limitHeight)) {
155
- fromBottom = true;
156
- }
157
- if (!hardPosition) {
158
- verticalPosition = verticalPosition || 0;
159
- horizontalPosition = horizontalPosition || 0;
160
- if (fromBottom) {
161
- verticalPosition = window.innerHeight - textInputRect.top + verticalPosition;
162
- }
163
- else {
164
- verticalPosition += containerRect.top;
165
- }
166
- if (fromRight) {
167
- horizontalPosition = window.innerWidth - textInputRect.right + horizontalPosition;
168
- }
169
- else {
170
- horizontalPosition += containerRect.left;
171
- }
172
- }
173
- if (verticalPosition != undefined) {
174
- this._listWrapper.style[fromBottom ? "bottom" : "top"] = `${verticalPosition}px`;
175
- this._listWrapper.style[fromBottom ? "top" : "bottom"] = "";
176
- }
177
- if (horizontalPosition != undefined) {
178
- this._listWrapper.style[fromRight ? "right" : "left"] = `${horizontalPosition}px`;
179
- this._listWrapper.style[fromRight ? "left" : "right"] = "";
180
- }
181
- }
182
- getListPosition() {
183
- if (this.listOptionsPosition) {
184
- return this.listOptionsPosition;
185
- }
186
- return {
187
- verticalPosition: (this.errorMessage || !this.canShowError || this.mode === "slim") ? 6 : -13
188
- };
189
- }
190
138
  isDifferentValues(firstValue, secondValue) {
191
139
  return core.ObjectUtils.objectToString(firstValue || {}) !== core.ObjectUtils.objectToString(secondValue || {});
192
140
  }
@@ -259,66 +207,24 @@ const EzComboBox = class {
259
207
  }
260
208
  return 0;
261
209
  }
262
- buildItem(opt, index$1) {
263
- const widthValue = this.showOptionValue && this._maxWidthValue > 0 ? `${this._maxWidthValue}px` : '';
264
- opt.label = opt.label || opt.value;
265
- return index.h("li", { class: index$1 === this._preSelection ? "item preselected" : "item", id: `item_${opt.value}`, onMouseDown: () => this.selectOption(opt), onMouseOver: () => this._preSelection = index$1 }, this.showOptionValue
266
- ? index.h("span", { class: "item__value", title: opt.value, style: { width: widthValue, minWidth: widthValue, maxWidth: widthValue } }, opt.value)
267
- : undefined, index.h("span", { class: "item__label " + (this.showOptionValue ? "item__label--bold" : ""), title: opt.label }, opt.label));
268
- }
269
210
  showOptions() {
211
+ var _a, _b;
270
212
  if (!this.enabled)
271
213
  return;
272
- if (this.isOptionsVisible()) {
273
- return;
274
- }
214
+ this.openPopover();
215
+ const valueString = (_b = (_a = this.value) === null || _a === void 0 ? void 0 : _a.value) !== null && _b !== void 0 ? _b : this.value;
216
+ const indexValue = this._visibleOptions.findIndex(option => option.value === valueString);
217
+ this._preSelection = indexValue === -1 ? 0 : indexValue;
275
218
  if (!!this._resizeObserver)
276
219
  this._resizeObserver.observe(this._textInput);
277
- this._floatingID = core.FloatingManager.float(this._listWrapper, this._listContainer, { autoClose: true, isFixed: true, backClickListener: () => this.hideOptions() });
278
220
  this.setFocus();
279
- window.requestAnimationFrame(() => {
280
- this.updateListPosition();
281
- if (!this.listOptionsPosition) {
282
- this._listWrapper.scrollIntoView({ behavior: "smooth", block: "nearest", inline: "nearest" });
283
- }
284
- });
285
221
  }
286
222
  hideOptions() {
287
- if (this._floatingID !== undefined) {
288
- core.FloatingManager.close(this._floatingID);
289
- }
290
- this._floatingID = undefined;
223
+ var _a;
224
+ (_a = this._popover) === null || _a === void 0 ? void 0 : _a.hide();
291
225
  if (!!this._resizeObserver)
292
226
  this._resizeObserver.unobserve(this._textInput);
293
227
  }
294
- isOptionsVisible() {
295
- return this._floatingID !== undefined && core.FloatingManager.isFloating(this._floatingID);
296
- }
297
- nextOption() {
298
- if (!this.isOptionsVisible()) {
299
- return;
300
- }
301
- this.showOptions();
302
- this._preSelection = this._preSelection === undefined ? 0 : Math.min(this._preSelection + 1, this._visibleOptions.length - 1);
303
- this.scrollToOption(this._visibleOptions[this._preSelection]);
304
- }
305
- previousOption() {
306
- this._preSelection = this._preSelection === undefined ? 0 : Math.max(this._preSelection - 1, 0);
307
- this.scrollToOption(this._visibleOptions[this._preSelection]);
308
- }
309
- scrollToOption(opt) {
310
- window.requestAnimationFrame(() => {
311
- const liElem = (opt === null || opt === void 0 ? void 0 : opt.value) ? this._optionsList.querySelector(`li#item_${opt.value.replace(/[<>\[\]#=]/g, '\\$&').replace(/:/g, '\\:')}`) : undefined;
312
- if (liElem)
313
- liElem.scrollIntoView({ behavior: "smooth", block: "nearest" });
314
- });
315
- }
316
- selectCurrentOption() {
317
- if (this._preSelection !== undefined) {
318
- this.selectOption(this._visibleOptions[this._preSelection]);
319
- this._preSelection = undefined;
320
- }
321
- }
322
228
  updateSource(source) {
323
229
  this._startLoading = false;
324
230
  if (source instanceof Promise) {
@@ -343,17 +249,23 @@ const EzComboBox = class {
343
249
  }
344
250
  }
345
251
  }
346
- selectOption(newOption) {
347
- var _a, _b;
252
+ selectOption(newOption, focusOnInput = true) {
253
+ var _a, _b, _c;
348
254
  const currentValue = this.getSelectedOption(this.value);
349
255
  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()))
350
256
  || (currentValue == undefined && newOption != undefined && "value" in newOption)) {
351
257
  const adjustedOpt = !(newOption === null || newOption === void 0 ? void 0 : newOption.value) ? undefined : newOption;
352
258
  this.value = adjustedOpt;
259
+ (_c = this._popover) === null || _c === void 0 ? void 0 : _c.hide();
353
260
  }
354
261
  else {
355
262
  this.resetOptions();
356
263
  }
264
+ if (focusOnInput) {
265
+ setTimeout(() => {
266
+ this.setFocus();
267
+ }, 0);
268
+ }
357
269
  }
358
270
  loadOptions(mode, argument = "") {
359
271
  this._criteria = argument;
@@ -375,7 +287,6 @@ const EzComboBox = class {
375
287
  this.setInputValue(false);
376
288
  }, this._deboucingTime);
377
289
  }
378
- this.resetOptions();
379
290
  }
380
291
  setInputValue(clearError = true) {
381
292
  const textValue = this.getText();
@@ -416,15 +327,6 @@ const EzComboBox = class {
416
327
  }
417
328
  this.loadOptions(SearchMode.PRELOAD);
418
329
  }
419
- componentDidRender() {
420
- var _a;
421
- if (this._floatingID === undefined) {
422
- this._listWrapper.remove();
423
- }
424
- (_a = this._optionsList) === null || _a === void 0 ? void 0 : _a.querySelectorAll(".item").forEach((elem) => {
425
- core.ElementIDUtils.addIDInfoIfNotExists(elem, "itemComboBox");
426
- });
427
- }
428
330
  componentDidLoad() {
429
331
  CSSVarsUtils.CSSVarsUtils.applyVarsTextInput(this.el, this._textInput);
430
332
  this.setInputValue(false);
@@ -432,12 +334,26 @@ const EzComboBox = class {
432
334
  window.requestAnimationFrame(() => {
433
335
  if (!Array.isArray(entries) || !entries.length)
434
336
  return;
435
- const { clientWidth } = this._listContainer;
436
- if (clientWidth > 0 && !!this._listWrapper) {
437
- this._listWrapper.style.width = `${clientWidth}px`;
438
- }
337
+ if (!this._textInput)
338
+ return;
339
+ if (!this._comboBoxList)
340
+ return;
341
+ const textInputWidth = this._textInput.clientWidth;
342
+ this._comboBoxList.width = textInputWidth;
439
343
  });
440
344
  });
345
+ if (this.autoFocus) {
346
+ requestAnimationFrame(() => {
347
+ this.setFocus({ selectText: true });
348
+ });
349
+ }
350
+ }
351
+ disconnectedCallback() {
352
+ var _a;
353
+ (_a = this._popover) === null || _a === void 0 ? void 0 : _a.remove();
354
+ if (this._resizeObserver) {
355
+ this._resizeObserver.disconnect();
356
+ }
441
357
  }
442
358
  //---------------------------------------------
443
359
  // Event handlers
@@ -464,7 +380,7 @@ const EzComboBox = class {
464
380
  this.showOptions();
465
381
  }
466
382
  else {
467
- this.hideOptions();
383
+ this._preSelection = undefined;
468
384
  this.updateVisibleOptions();
469
385
  }
470
386
  }
@@ -478,42 +394,48 @@ const EzComboBox = class {
478
394
  this.showOptions();
479
395
  }
480
396
  keyDownHandler(event) {
481
- this._tabPressed = false;
482
- if (event.ctrlKey) {
483
- if (event.key === "f" || event.key === "F") {
484
- this.loadOptions(SearchMode.ADVANCED);
485
- //ATENÇÃO: Ctrl + F tem ação específica nos browsers
486
- //nesse caso, como vamos abrir o popup de busca avançada,
487
- //não é interessante deixar o evento propagar;
488
- event.stopPropagation();
489
- event.stopImmediatePropagation();
490
- event.preventDefault();
491
- }
397
+ var _a, _b, _c, _d, _e, _f;
398
+ if (event.ctrlKey && (event.key === "f" || event.key === "F")) {
399
+ this.loadOptions(SearchMode.ADVANCED);
400
+ event.preventDefault();
401
+ event.stopPropagation();
402
+ return;
492
403
  }
493
404
  switch (event.key) {
494
405
  case "ArrowDown":
495
- this.nextOption();
496
- event.stopPropagation();
406
+ event.preventDefault();
407
+ if (this.canShowListOptions()) {
408
+ this.showOptions();
409
+ (_a = this._comboBoxList) === null || _a === void 0 ? void 0 : _a.nextOption();
410
+ }
497
411
  break;
498
412
  case "ArrowUp":
499
- this.previousOption();
500
- event.stopPropagation();
413
+ event.preventDefault();
414
+ if (this.canShowListOptions()) {
415
+ this.showOptions();
416
+ (_b = this._comboBoxList) === null || _b === void 0 ? void 0 : _b.previousOption();
417
+ }
501
418
  break;
502
419
  case "Enter":
503
- this.selectCurrentOption();
420
+ if (this.isOpen) {
421
+ event.preventDefault();
422
+ (_c = this._comboBoxList) === null || _c === void 0 ? void 0 : _c.selectCurrentOption();
423
+ }
504
424
  break;
505
425
  case "Escape":
506
- this.cancelPreselection();
426
+ if (this.isOpen) {
427
+ event.preventDefault();
428
+ (_d = this._popover) === null || _d === void 0 ? void 0 : _d.hide();
429
+ }
507
430
  break;
508
431
  case "Tab":
509
432
  this._tabPressed = true;
433
+ if (this.isOpen) {
434
+ (_e = this._comboBoxList) === null || _e === void 0 ? void 0 : _e.selectCurrentOption();
435
+ (_f = this._popover) === null || _f === void 0 ? void 0 : _f.hide();
436
+ }
510
437
  break;
511
438
  }
512
- //ATENÇÃO: Existe a necessidade de propagar o evento de teclado.
513
- //Por exemplo, quando o usuário dá um Enter, além de selecionar
514
- //um valor, também significa que a ateração finalizou,
515
- //e o contexto pode reagir (fechar um popup por exemplo).
516
- //event.stopPropagation();
517
439
  }
518
440
  onTextInputFocusOutHandler() {
519
441
  if (this.hideErrorOnFocusOut)
@@ -522,14 +444,15 @@ const EzComboBox = class {
522
444
  canShowListOptions() {
523
445
  return !this._showLoading && this._visibleOptions.length > 0;
524
446
  }
447
+ openPopover() {
448
+ var _a;
449
+ this.isOpen = true;
450
+ (_a = this._popover) === null || _a === void 0 ? void 0 : _a.show();
451
+ }
525
452
  render() {
453
+ var _a;
526
454
  core.ElementIDUtils.addIDInfoIfNotExists(this.el, 'input');
527
- return (index.h(index.Host, null, index.h("ez-text-input", { "data-element-id": core.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 }, index.h("button", { class: "btn", slot: "rightIcon", disabled: !this.enabled, tabindex: -1, onClick: () => this.handlerIconClick() }, index.h("ez-icon", { iconName: "chevron-down" }))), index.h("section", { class: "list-container", ref: elem => this._listContainer = elem }, index.h("div", { class: "list-wrapper", ref: elem => this._listWrapper = elem }, index.h("ul", { class: "list-options", ref: elem => this._optionsList = elem }, !this._showLoading
528
- && this._visibleOptions.length === 0
529
- && index.h("div", { class: "message" }, index.h("span", { class: "message__no-result" }, this._textEmptyList)), this._showLoading
530
- && index.h("div", { class: "message" }, index.h("div", { class: "message__loading" })), this.showOptionValue
531
- ? index.h("span", { class: "item__value item__value--hidden", ref: elem => this._itemValueBasis = elem })
532
- : undefined, this.canShowListOptions() && this._visibleOptions.map((opt, index) => this.buildItem(opt, index)))))));
455
+ return (index.h(index.Host, null, index.h("ez-text-input", { "data-element-id": core.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 }, index.h("button", { class: "btn", slot: "rightIcon", disabled: !this.enabled, tabindex: -1, onClick: () => this.handlerIconClick() }, index.h("ez-icon", { iconName: "chevron-down" }))), index.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 }, index.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 }))));
533
456
  }
534
457
  get el() { return index.getElement(this); }
535
458
  static get watchers() { return {
@@ -2,11 +2,11 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-9e5554cb.js');
5
+ const index = require('./index-a7b0c73d.js');
6
6
  const core = require('@sankhyalabs/core');
7
- const CSSVarsUtils = require('./CSSVarsUtils-10c9d5b4.js');
7
+ const CSSVarsUtils = require('./CSSVarsUtils-f20973d1.js');
8
8
 
9
- 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)}";
9
+ 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)}";
10
10
 
11
11
  const EzDateInput = class {
12
12
  constructor(hostRef) {
@@ -23,6 +23,8 @@ const EzDateInput = class {
23
23
  this.errorMessage = undefined;
24
24
  this.mode = "regular";
25
25
  this.canShowError = true;
26
+ this.autoFocus = false;
27
+ this.alternativePlaceholder = undefined;
26
28
  }
27
29
  observeLabel() {
28
30
  if (this._textInput) {
@@ -59,8 +61,8 @@ const EzDateInput = class {
59
61
  /**
60
62
  * Aplica o foco no campo.
61
63
  */
62
- async setFocus() {
63
- this._textInput.setFocus();
64
+ async setFocus(options) {
65
+ this._textInput.setFocus(options);
64
66
  }
65
67
  /**
66
68
  * Remove o foco do campo.
@@ -92,23 +94,13 @@ const EzDateInput = class {
92
94
  if ((currentValue === null || currentValue === void 0 ? void 0 : currentValue.getTime()) !== (newValueValidated === null || newValueValidated === void 0 ? void 0 : newValueValidated.getTime())) {
93
95
  this.value = newValueValidated;
94
96
  }
95
- }
96
- showCalendar() {
97
- this.handleBlur();
98
- this._calendar.value = this.value;
99
- let top;
100
- if (this.isFixed()) {
101
- top = 29;
102
- this._calendar.fitHorizontal(0);
103
- }
104
97
  else {
105
- top = this.errorMessage || this.mode === "slim" ? 6 : -13;
98
+ this._changePending = false;
106
99
  }
107
- this._calendar.fitVertical(top, this._elem.clientHeight);
108
100
  }
109
101
  hideCalendar() {
110
102
  this.changeValue(this._calendar.value);
111
- this._calendar.hide();
103
+ this._popover.hide();
112
104
  }
113
105
  handleBlur() {
114
106
  if (!this._changePending) {
@@ -169,16 +161,21 @@ const EzDateInput = class {
169
161
  this._textInput.value = textValue;
170
162
  }
171
163
  }
172
- isFixed() {
173
- return this._elem.dataset.isFixed === "true";
164
+ disconnectedCallback() {
165
+ this._popover.hide();
174
166
  }
175
167
  componentDidLoad() {
176
168
  CSSVarsUtils.CSSVarsUtils.applyVarsTextInput(this._elem, this._textInput);
177
169
  this.setInputValue();
170
+ if (this.autoFocus) {
171
+ requestAnimationFrame(() => {
172
+ this.setFocus({ selectText: true });
173
+ });
174
+ }
178
175
  }
179
176
  render() {
180
177
  core.ElementIDUtils.addIDInfoIfNotExists(this._elem, 'input');
181
- return (index.h(index.Host, null, index.h("ez-text-input", { "data-element-id": core.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 }, index.h("button", { disabled: !this.enabled, tabindex: -1, class: "btn-open-cal", onClick: () => this.showCalendar(), slot: "leftIcon" })), index.h("ez-calendar", { ref: elem => this._calendar = elem, "data-element-id": core.ElementIDUtils.getInternalIDInfo("calendar"), onEzChange: (event) => { this.hideCalendar(); event.stopPropagation(); }, floating: true, "data-is-fixed": this._elem.dataset.isFixed })));
178
+ return (index.h(index.Host, null, index.h("ez-text-input", { "data-element-id": core.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 }, index.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" })), index.h("ez-popover-plus", { ref: elem => this._popover = elem, anchorElement: this._textInput, autoClose: true, boxWidth: 'fit-content', overlayType: 'none' }, index.h("ez-calendar", { ref: elem => this._calendar = elem, "data-element-id": core.ElementIDUtils.getInternalIDInfo("calendar"), onEzChange: (event) => { this.hideCalendar(); event.stopPropagation(); } }))));
182
179
  }
183
180
  get _elem() { return index.getElement(this); }
184
181
  static get watchers() { return {
@@ -2,11 +2,11 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-9e5554cb.js');
5
+ const index = require('./index-a7b0c73d.js');
6
6
  const core = require('@sankhyalabs/core');
7
- const CSSVarsUtils = require('./CSSVarsUtils-10c9d5b4.js');
7
+ const CSSVarsUtils = require('./CSSVarsUtils-f20973d1.js');
8
8
 
9
- 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)}";
9
+ 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)}";
10
10
 
11
11
  const EzDateTimeInput = class {
12
12
  constructor(hostRef) {
@@ -24,6 +24,8 @@ const EzDateTimeInput = class {
24
24
  this.showSeconds = false;
25
25
  this.mode = "regular";
26
26
  this.canShowError = true;
27
+ this.autoFocus = false;
28
+ this.alternativePlaceholder = undefined;
27
29
  }
28
30
  observeLabel() {
29
31
  if (this._textInput) {
@@ -60,8 +62,8 @@ const EzDateTimeInput = class {
60
62
  /**
61
63
  * Aplica o foco no campo.
62
64
  */
63
- async setFocus() {
64
- this._textInput.setFocus();
65
+ async setFocus(options) {
66
+ this._textInput.setFocus(options);
65
67
  }
66
68
  /**
67
69
  * Remove o foco do campo.
@@ -130,21 +132,9 @@ const EzDateTimeInput = class {
130
132
  this.value = newValueValidated;
131
133
  }
132
134
  }
133
- showCalendar() {
134
- let top;
135
- if (this.isFixed()) {
136
- top = 29;
137
- this._calendar.fitHorizontal(0);
138
- }
139
- else {
140
- top = this.errorMessage || this.mode === "slim" ? 6 : -13;
141
- }
142
- this._calendar.fitVertical(top, this._elem.clientHeight);
143
- this._calendar.style.visibility = 'inherit';
144
- }
145
135
  hideCalendar() {
146
136
  this.changeValue(this._calendar.value);
147
- this._calendar.hide();
137
+ this._popover.hide();
148
138
  }
149
139
  getParsedDateTime(strValue) {
150
140
  var _a, _b;
@@ -222,16 +212,21 @@ const EzDateTimeInput = class {
222
212
  this._textInput.value = textValue;
223
213
  }
224
214
  }
225
- isFixed() {
226
- return this._elem.dataset.isFixed === "true";
215
+ disconnectedCallback() {
216
+ this._popover.hide();
227
217
  }
228
218
  componentDidLoad() {
229
219
  CSSVarsUtils.CSSVarsUtils.applyVarsTextInput(this._elem, this._textInput);
230
220
  this.setInputValue();
221
+ if (this.autoFocus) {
222
+ requestAnimationFrame(() => {
223
+ this.setFocus({ selectText: true });
224
+ });
225
+ }
231
226
  }
232
227
  render() {
233
228
  core.ElementIDUtils.addIDInfoIfNotExists(this._elem, 'input');
234
- return (index.h(index.Host, null, index.h("ez-text-input", { "data-element-id": core.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 }, index.h("button", { disabled: !this.enabled, tabindex: -1, class: "btn-open-cal", onClick: () => this.showCalendar(), slot: "leftIcon" })), index.h("ez-calendar", { ref: elem => this._calendar = elem, "data-element-id": core.ElementIDUtils.getInternalIDInfo("calendar"), onEzChange: (event) => { this.hideCalendar(); event.stopPropagation(); }, floating: true, time: true, showSeconds: this.showSeconds, "data-is-fixed": this._elem.dataset.isFixed })));
229
+ return (index.h(index.Host, null, index.h("ez-text-input", { "data-element-id": core.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 }, index.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" })), index.h("ez-popover-plus", { ref: elem => this._popover = elem, anchorElement: this._textInput, autoClose: true, boxWidth: 'fit-content', overlayType: 'none' }, index.h("ez-calendar", { ref: elem => this._calendar = elem, "data-element-id": core.ElementIDUtils.getInternalIDInfo("calendar"), onEzChange: (event) => { this.hideCalendar(); event.stopPropagation(); }, time: true, showSeconds: this.showSeconds }))));
235
230
  }
236
231
  get _elem() { return index.getElement(this); }
237
232
  static get watchers() { return {