@sankhyalabs/ezui 5.22.0-dev.7 → 5.22.0-dev.71

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (357) hide show
  1. package/dist/cjs/DataBinder-b4ef826a.js +445 -0
  2. package/dist/cjs/FocusResolver-885f2173.js +35 -0
  3. package/dist/cjs/ez-actions-button.cjs.entry.js +4 -3
  4. package/dist/cjs/ez-alert-list.cjs.entry.js +1 -1
  5. package/dist/cjs/ez-alert.cjs.entry.js +1 -1
  6. package/dist/cjs/ez-application.cjs.entry.js +1 -1
  7. package/dist/cjs/ez-badge.cjs.entry.js +1 -1
  8. package/dist/cjs/ez-breadcrumb.cjs.entry.js +1 -1
  9. package/dist/cjs/ez-button.cjs.entry.js +12 -6
  10. package/dist/cjs/ez-calendar.cjs.entry.js +1 -1
  11. package/dist/cjs/ez-card-item_2.cjs.entry.js +76 -0
  12. package/dist/cjs/ez-chart.cjs.entry.js +1 -1
  13. package/dist/cjs/ez-check.cjs.entry.js +2 -2
  14. package/dist/cjs/ez-chip.cjs.entry.js +1 -1
  15. package/dist/cjs/ez-collapsible-box.cjs.entry.js +2 -2
  16. package/dist/cjs/ez-combo-box.cjs.entry.js +68 -14
  17. package/dist/cjs/ez-custom-form-input_2.cjs.entry.js +37 -7
  18. package/dist/cjs/ez-date-input.cjs.entry.js +15 -5
  19. package/dist/cjs/ez-date-time-input.cjs.entry.js +12 -5
  20. package/dist/cjs/ez-dialog.cjs.entry.js +11 -3
  21. package/dist/cjs/ez-double-list.cjs.entry.js +287 -0
  22. package/dist/cjs/{ez-dropdown.cjs.entry.js → ez-dropdown_2.cjs.entry.js} +76 -9
  23. package/dist/cjs/ez-file-item.cjs.entry.js +1 -1
  24. package/dist/cjs/ez-filter-input.cjs.entry.js +130 -0
  25. package/dist/cjs/ez-form-view.cjs.entry.js +30 -23
  26. package/dist/cjs/ez-form.cjs.entry.js +7 -326
  27. package/dist/cjs/ez-grid.cjs.entry.js +14946 -69807
  28. package/dist/cjs/ez-guide-navigator.cjs.entry.js +1 -1
  29. package/dist/cjs/ez-icon.cjs.entry.js +2 -2
  30. package/dist/cjs/ez-list.cjs.entry.js +259 -212
  31. package/dist/cjs/ez-loading-bar.cjs.entry.js +1 -1
  32. package/dist/cjs/ez-modal-container.cjs.entry.js +3 -2
  33. package/dist/cjs/ez-modal.cjs.entry.js +20 -5
  34. package/dist/cjs/ez-multi-selection-list.cjs.entry.js +3 -3
  35. package/dist/cjs/ez-number-input.cjs.entry.js +16 -3
  36. package/dist/cjs/ez-popover.cjs.entry.js +1 -1
  37. package/dist/cjs/ez-popup.cjs.entry.js +25 -3
  38. package/dist/cjs/ez-radio-button.cjs.entry.js +1 -1
  39. package/dist/cjs/ez-scroller_2.cjs.entry.js +4 -4
  40. package/dist/cjs/ez-search.cjs.entry.js +106 -46
  41. package/dist/cjs/ez-sidebar-navigator.cjs.entry.js +2 -2
  42. package/dist/cjs/ez-split-button.cjs.entry.js +3 -3
  43. package/dist/cjs/ez-split-item.cjs.entry.js +4 -3
  44. package/dist/cjs/ez-split-panel.cjs.entry.js +69 -7
  45. package/dist/cjs/ez-tabselector.cjs.entry.js +1 -1
  46. package/dist/cjs/ez-text-area.cjs.entry.js +68 -6
  47. package/dist/cjs/ez-text-input.cjs.entry.js +154 -17
  48. package/dist/cjs/ez-time-input.cjs.entry.js +9 -2
  49. package/dist/cjs/ez-toast.cjs.entry.js +1 -1
  50. package/dist/cjs/ez-tooltip.cjs.entry.js +55 -0
  51. package/dist/cjs/ez-tree.cjs.entry.js +1 -1
  52. package/dist/cjs/ez-upload.cjs.entry.js +1 -1
  53. package/dist/cjs/ez-view-stack.cjs.entry.js +1 -1
  54. package/dist/cjs/ezListHelper-0d3970b4.js +90 -0
  55. package/dist/cjs/ezui.cjs.js +2 -2
  56. package/dist/cjs/filter-column.cjs.entry.js +3 -3
  57. package/dist/cjs/{index-9e5554cb.js → index-a7b0c73d.js} +16 -11
  58. package/dist/cjs/loader.cjs.js +2 -2
  59. package/dist/collection/collection-manifest.json +3 -1
  60. package/dist/collection/components/ez-actions-button/ez-actions-button.js +3 -2
  61. package/dist/collection/components/ez-button/ez-button.css +23 -13
  62. package/dist/collection/components/ez-button/ez-button.js +12 -6
  63. package/dist/collection/components/ez-card-item/ez-card-item.css +60 -10
  64. package/dist/collection/components/ez-card-item/ez-card-item.js +30 -3
  65. package/dist/collection/components/ez-check/ez-check.css +1 -6
  66. package/dist/collection/components/ez-collapsible-box/ez-collapsible-box.css +2 -2
  67. package/dist/collection/components/ez-combo-box/ez-combo-box.css +13 -1
  68. package/dist/collection/components/ez-combo-box/ez-combo-box.js +130 -15
  69. package/dist/collection/components/ez-date-input/ez-date-input.css +1 -1
  70. package/dist/collection/components/ez-date-input/ez-date-input.js +58 -5
  71. package/dist/collection/components/ez-date-time-input/ez-date-time-input.css +1 -1
  72. package/dist/collection/components/ez-date-time-input/ez-date-time-input.js +55 -5
  73. package/dist/collection/components/ez-dialog/ez-dialog.css +3 -3
  74. package/dist/collection/components/ez-dialog/ez-dialog.js +9 -1
  75. package/dist/collection/components/ez-double-list/doubleListHelper.js +82 -0
  76. package/dist/collection/components/ez-double-list/ez-double-list.css +62 -0
  77. package/dist/collection/components/ez-double-list/ez-double-list.js +440 -0
  78. package/dist/collection/components/ez-dropdown/ez-dropdown.js +33 -8
  79. package/dist/collection/components/ez-filter-input/ez-filter-input.js +55 -5
  80. package/dist/collection/components/ez-form/ez-form.js +1 -0
  81. package/dist/collection/components/ez-form-view/custom-input/ez-custom-form-input.js +49 -6
  82. package/dist/collection/components/ez-form-view/ez-form-view.css +5 -2
  83. package/dist/collection/components/ez-form-view/fieldbuilder/FieldBuilder.js +2 -1
  84. package/dist/collection/components/ez-form-view/fieldbuilder/templates/CheckBox.tpl.js +1 -1
  85. package/dist/collection/components/ez-form-view/fieldbuilder/templates/ComboBox.tpl.js +1 -1
  86. package/dist/collection/components/ez-form-view/fieldbuilder/templates/DateInput.tpl.js +8 -4
  87. package/dist/collection/components/ez-form-view/fieldbuilder/templates/FileInput.tpl.js +1 -1
  88. package/dist/collection/components/ez-form-view/fieldbuilder/templates/NumberInput.tpl.js +1 -1
  89. package/dist/collection/components/ez-form-view/fieldbuilder/templates/SearchInput.tpl.js +3 -2
  90. package/dist/collection/components/ez-form-view/fieldbuilder/templates/TextArea.tpl.js +1 -1
  91. package/dist/collection/components/ez-form-view/fieldbuilder/templates/TextInput.tpl.js +2 -2
  92. package/dist/collection/components/ez-grid/controller/ag-grid/AgGridController.js +282 -57
  93. package/dist/collection/components/ez-grid/controller/ag-grid/DataSource.js +107 -5
  94. package/dist/collection/components/ez-grid/controller/ag-grid/DataSourceInterceptor.js +2 -2
  95. package/dist/collection/components/ez-grid/controller/ag-grid/GridEditionManager.js +219 -42
  96. package/dist/collection/components/ez-grid/controller/ag-grid/components/EzGridCustomCellEditor.js +16 -0
  97. package/dist/collection/components/ez-grid/controller/ag-grid/editor/EzCellEditor.js +8 -0
  98. package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/ComboBox.tpl.js +2 -0
  99. package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/DateInput.tpl.js +1 -0
  100. package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/NumberInput.tpl.js +1 -0
  101. package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/Search.tpl.js +8 -1
  102. package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/TextInput.tpl.js +4 -1
  103. package/dist/collection/components/ez-grid/controller/ag-grid/test/constants/GridEditionMock.js +2 -0
  104. package/dist/collection/components/ez-grid/ez-grid.css +47 -8
  105. package/dist/collection/components/ez-grid/ez-grid.js +220 -7
  106. package/dist/collection/components/ez-grid/subcomponents/filter-column.css +4 -0
  107. package/dist/collection/components/ez-grid/subcomponents/filter-column.js +1 -1
  108. package/dist/collection/components/ez-icon/ez-icon.css +153 -149
  109. package/dist/collection/components/ez-list/ez-list.css +2 -1
  110. package/dist/collection/components/ez-list/ez-list.js +301 -212
  111. package/dist/collection/components/ez-list/ezListHelper.js +85 -0
  112. package/dist/collection/components/ez-modal/ez-modal.css +5 -1
  113. package/dist/collection/components/ez-modal/ez-modal.js +38 -5
  114. package/dist/collection/components/ez-modal-container/ez-modal-container.js +20 -1
  115. package/dist/collection/components/ez-multi-selection-list/ez-multi-selection-list.css +2 -3
  116. package/dist/collection/components/ez-multi-selection-list/ez-multi-selection-list.js +1 -1
  117. package/dist/collection/components/ez-number-input/ez-number-input.css +8 -0
  118. package/dist/collection/components/ez-number-input/ez-number-input.js +68 -1
  119. package/dist/collection/components/ez-popup/ez-popup.css +8 -3
  120. package/dist/collection/components/ez-popup/ez-popup.js +43 -3
  121. package/dist/collection/components/ez-scroller/ez-scroller.css +1 -0
  122. package/dist/collection/components/ez-search/ez-search.css +21 -10
  123. package/dist/collection/components/ez-search/ez-search.js +189 -49
  124. package/dist/collection/components/ez-sidebar-button/ez-sidebar-button.css +3 -0
  125. package/dist/collection/components/ez-sidebar-button/ez-sidebar-button.js +1 -1
  126. package/dist/collection/components/ez-sidebar-navigator/ez-sidebar-navigator.css +3 -1
  127. package/dist/collection/components/ez-split-button/ez-split-button.css +50 -14
  128. package/dist/collection/components/ez-split-button/ez-split-button.js +3 -3
  129. package/dist/collection/components/ez-split-panel/ez-split-panel.css +15 -0
  130. package/dist/collection/components/ez-split-panel/ez-split-panel.js +106 -5
  131. package/dist/collection/components/ez-split-panel/interfaces/IPanelSizeInfo.js +1 -0
  132. package/dist/collection/components/ez-split-panel/structure/item/ez-split-item.css +14 -2
  133. package/dist/collection/components/ez-split-panel/structure/item/ez-split-item.js +20 -1
  134. package/dist/collection/components/ez-text-area/ez-text-area.css +73 -28
  135. package/dist/collection/components/ez-text-area/ez-text-area.js +103 -3
  136. package/dist/collection/components/ez-text-input/ez-text-input.css +106 -91
  137. package/dist/collection/components/ez-text-input/ez-text-input.js +185 -15
  138. package/dist/collection/components/ez-time-input/ez-time-input.js +44 -1
  139. package/dist/collection/components/ez-tooltip/ez-tooltip.css +20 -0
  140. package/dist/collection/components/ez-tooltip/ez-tooltip.js +116 -0
  141. package/dist/collection/sw.js +46 -0
  142. package/dist/collection/utils/FocusResolver.js +31 -0
  143. package/dist/collection/utils/ResponsiveInputUtils.js +26 -0
  144. package/dist/collection/utils/form/DataBinder.js +20 -5
  145. package/dist/collection/utils/form/FormMetadata.js +2 -1
  146. package/dist/collection/utils/interfaces/AbstractFieldMetadata.js +1 -1
  147. package/dist/collection/utils/validators/recordvalidator/IInvalidCells.js +1 -0
  148. package/dist/collection/utils/validators/recordvalidator/RecordValidationProcessor.js +7 -1
  149. package/dist/custom-elements/index.d.ts +12 -0
  150. package/dist/custom-elements/index.js +16564 -70385
  151. package/dist/esm/DataBinder-d2ecbb0f.js +441 -0
  152. package/dist/esm/FocusResolver-1ccbf850.js +33 -0
  153. package/dist/esm/ez-actions-button.entry.js +4 -3
  154. package/dist/esm/ez-alert-list.entry.js +1 -1
  155. package/dist/esm/ez-alert.entry.js +1 -1
  156. package/dist/esm/ez-application.entry.js +1 -1
  157. package/dist/esm/ez-badge.entry.js +1 -1
  158. package/dist/esm/ez-breadcrumb.entry.js +1 -1
  159. package/dist/esm/ez-button.entry.js +12 -6
  160. package/dist/esm/ez-calendar.entry.js +1 -1
  161. package/dist/esm/ez-card-item_2.entry.js +71 -0
  162. package/dist/esm/ez-chart.entry.js +1 -1
  163. package/dist/esm/ez-check.entry.js +2 -2
  164. package/dist/esm/ez-chip.entry.js +1 -1
  165. package/dist/esm/ez-collapsible-box.entry.js +2 -2
  166. package/dist/esm/ez-combo-box.entry.js +69 -15
  167. package/dist/esm/ez-custom-form-input_2.entry.js +38 -8
  168. package/dist/esm/ez-date-input.entry.js +15 -5
  169. package/dist/esm/ez-date-time-input.entry.js +12 -5
  170. package/dist/esm/ez-dialog.entry.js +11 -3
  171. package/dist/esm/ez-double-list.entry.js +283 -0
  172. package/dist/esm/{ez-dropdown.entry.js → ez-dropdown_2.entry.js} +76 -10
  173. package/dist/esm/ez-file-item.entry.js +1 -1
  174. package/dist/esm/ez-filter-input.entry.js +126 -0
  175. package/dist/esm/ez-form-view.entry.js +30 -23
  176. package/dist/esm/ez-form.entry.js +6 -325
  177. package/dist/esm/ez-grid.entry.js +14945 -69806
  178. package/dist/esm/ez-guide-navigator.entry.js +1 -1
  179. package/dist/esm/ez-icon.entry.js +2 -2
  180. package/dist/esm/ez-list.entry.js +259 -212
  181. package/dist/esm/ez-loading-bar.entry.js +1 -1
  182. package/dist/esm/ez-modal-container.entry.js +3 -2
  183. package/dist/esm/ez-modal.entry.js +20 -5
  184. package/dist/esm/ez-multi-selection-list.entry.js +3 -3
  185. package/dist/esm/ez-number-input.entry.js +16 -3
  186. package/dist/esm/ez-popover.entry.js +1 -1
  187. package/dist/esm/ez-popup.entry.js +25 -3
  188. package/dist/esm/ez-radio-button.entry.js +1 -1
  189. package/dist/esm/ez-scroller_2.entry.js +4 -4
  190. package/dist/esm/ez-search.entry.js +106 -46
  191. package/dist/esm/ez-sidebar-navigator.entry.js +2 -2
  192. package/dist/esm/ez-split-button.entry.js +3 -3
  193. package/dist/esm/ez-split-item.entry.js +4 -3
  194. package/dist/esm/ez-split-panel.entry.js +69 -7
  195. package/dist/esm/ez-tabselector.entry.js +1 -1
  196. package/dist/esm/ez-text-area.entry.js +68 -6
  197. package/dist/esm/ez-text-input.entry.js +154 -17
  198. package/dist/esm/ez-time-input.entry.js +9 -2
  199. package/dist/esm/ez-toast.entry.js +1 -1
  200. package/dist/esm/ez-tooltip.entry.js +51 -0
  201. package/dist/esm/ez-tree.entry.js +1 -1
  202. package/dist/esm/ez-upload.entry.js +1 -1
  203. package/dist/esm/ez-view-stack.entry.js +1 -1
  204. package/dist/esm/ezListHelper-00fb9b8d.js +87 -0
  205. package/dist/esm/ezui.js +3 -3
  206. package/dist/esm/filter-column.entry.js +3 -3
  207. package/dist/esm/{index-5a720e56.js → index-baa5e267.js} +17 -11
  208. package/dist/esm/loader.js +3 -3
  209. package/dist/ezui/ezui.esm.js +1 -1
  210. package/dist/ezui/{p-e6b38ade.entry.js → p-0306dff7.entry.js} +1 -1
  211. package/dist/ezui/{p-91ccae0c.entry.js → p-09de35a2.entry.js} +1 -1
  212. package/dist/ezui/p-14b769d7.entry.js +1 -0
  213. package/dist/ezui/p-16e612fc.entry.js +1 -0
  214. package/dist/ezui/{p-b2f6bc0a.entry.js → p-17be134a.entry.js} +1 -1
  215. package/dist/ezui/p-17eabf46.entry.js +1 -0
  216. package/dist/ezui/p-181b5ae8.entry.js +1 -0
  217. package/dist/ezui/{p-81461d2f.entry.js → p-1e7a8633.entry.js} +1 -1
  218. package/dist/ezui/{p-6b51c9cc.entry.js → p-1f50fa05.entry.js} +1 -1
  219. package/dist/ezui/{p-e4c7eb39.js → p-23a36bb6.js} +2 -2
  220. package/dist/ezui/p-2475fd6e.entry.js +1 -0
  221. package/dist/ezui/p-2bb2a0c4.entry.js +1 -0
  222. package/dist/ezui/p-3175fe8c.entry.js +1 -0
  223. package/dist/ezui/{p-30951bd7.entry.js → p-35d467a8.entry.js} +1 -1
  224. package/dist/ezui/p-3f2dd525.entry.js +1 -0
  225. package/dist/ezui/{p-0378416a.entry.js → p-44caad9a.entry.js} +1 -1
  226. package/dist/ezui/p-50d83a46.entry.js +1 -0
  227. package/dist/ezui/{p-7567ccdd.entry.js → p-555c9018.entry.js} +1 -1
  228. package/dist/ezui/{p-044d46d5.entry.js → p-5b205c80.entry.js} +1 -1
  229. package/dist/ezui/{p-6fc26622.entry.js → p-5ed81457.entry.js} +1 -1
  230. package/dist/ezui/{p-f1c2c19e.entry.js → p-650e4b6d.entry.js} +1 -1
  231. package/dist/ezui/p-654b3f99.entry.js +1 -0
  232. package/dist/ezui/p-65f471bc.entry.js +1 -0
  233. package/dist/ezui/p-66924de6.entry.js +1 -0
  234. package/dist/ezui/p-6cdd3e0a.entry.js +1 -0
  235. package/dist/ezui/p-6d79930d.entry.js +1 -0
  236. package/dist/ezui/{p-fc194825.entry.js → p-6e429cff.entry.js} +1 -1
  237. package/dist/ezui/p-6f22a385.entry.js +1 -0
  238. package/dist/ezui/p-7409eeaa.entry.js +1 -0
  239. package/dist/ezui/{p-11bfeca3.entry.js → p-77a4bd35.entry.js} +1 -1
  240. package/dist/ezui/p-7e677b7b.entry.js +1 -0
  241. package/dist/ezui/p-7ed30844.entry.js +1 -0
  242. package/dist/ezui/p-7fdd479f.entry.js +1 -0
  243. package/dist/ezui/p-80dfc50b.js +1 -0
  244. package/dist/ezui/{p-1b08bf3c.entry.js → p-8888d9ed.entry.js} +1 -1
  245. package/dist/ezui/{p-82fa4b09.entry.js → p-8df1ca33.entry.js} +1 -1
  246. package/dist/ezui/p-990b4318.entry.js +1 -0
  247. package/dist/ezui/{p-c2b20f78.entry.js → p-9f5fa3f9.entry.js} +1 -1
  248. package/dist/ezui/p-a6fe527a.entry.js +1 -0
  249. package/dist/ezui/{p-dfca5946.entry.js → p-a80b1287.entry.js} +1 -1
  250. package/dist/ezui/p-b6a4e6de.entry.js +1 -0
  251. package/dist/ezui/p-bc2f844e.entry.js +1 -0
  252. package/dist/ezui/{p-92748142.entry.js → p-c0d9c4f8.entry.js} +1 -1
  253. package/dist/ezui/p-c3045972.entry.js +1 -0
  254. package/dist/ezui/{p-82ac8b06.entry.js → p-c4320a39.entry.js} +1 -1
  255. package/dist/ezui/p-ca6340a9.entry.js +1 -0
  256. package/dist/ezui/p-ceadecd9.js +1 -0
  257. package/dist/ezui/p-d0ca26fe.entry.js +1 -0
  258. package/dist/ezui/p-d520839d.entry.js +1 -0
  259. package/dist/ezui/p-dc628ed3.js +1 -0
  260. package/dist/ezui/p-dc8b36c3.entry.js +1 -0
  261. package/dist/ezui/p-dd48941c.entry.js +309 -0
  262. package/dist/ezui/{p-9aa27e69.entry.js → p-e347df9c.entry.js} +1 -1
  263. package/dist/ezui/p-e3e3fd7a.entry.js +1 -0
  264. package/dist/ezui/p-fa6732f2.entry.js +1 -0
  265. package/dist/ezui/p-fec696ab.entry.js +1 -0
  266. package/dist/types/components/ez-button/ez-button.d.ts +2 -1
  267. package/dist/types/components/ez-card-item/ez-card-item.d.ts +5 -0
  268. package/dist/types/components/ez-combo-box/ez-combo-box.d.ts +16 -1
  269. package/dist/types/components/ez-date-input/ez-date-input.d.ts +10 -1
  270. package/dist/types/components/ez-date-time-input/ez-date-time-input.d.ts +10 -1
  271. package/dist/types/components/ez-dialog/ez-dialog.d.ts +2 -0
  272. package/dist/types/components/ez-double-list/doubleListHelper.d.ts +10 -0
  273. package/dist/types/components/ez-double-list/ez-double-list.d.ts +87 -0
  274. package/dist/types/components/ez-dropdown/ez-dropdown.d.ts +4 -0
  275. package/dist/types/components/ez-dropdown/structure/DropdownItem.d.ts +1 -1
  276. package/dist/types/components/ez-filter-input/ez-filter-input.d.ts +10 -1
  277. package/dist/types/components/ez-form-view/custom-input/ez-custom-form-input.d.ts +7 -1
  278. package/dist/types/components/ez-form-view/fieldbuilder/templates/DateInput.tpl.d.ts +2 -1
  279. package/dist/types/components/ez-form-view/fieldbuilder/templates/SearchInput.tpl.d.ts +1 -1
  280. package/dist/types/components/ez-form-view/fieldbuilder/templates/TextInput.tpl.d.ts +1 -1
  281. package/dist/types/components/ez-grid/controller/EzGridController.d.ts +60 -4
  282. package/dist/types/components/ez-grid/controller/ag-grid/AgGridController.d.ts +36 -4
  283. package/dist/types/components/ez-grid/controller/ag-grid/DataSource.d.ts +23 -1
  284. package/dist/types/components/ez-grid/controller/ag-grid/GridEditionManager.d.ts +33 -7
  285. package/dist/types/components/ez-grid/controller/ag-grid/components/EzGridCustomCellEditor.d.ts +4 -1
  286. package/dist/types/components/ez-grid/controller/ag-grid/components/EzGridCustomCellRender.d.ts +1 -1
  287. package/dist/types/components/ez-grid/controller/ag-grid/components/EzGridCustomHeader.d.ts +1 -1
  288. package/dist/types/components/ez-grid/controller/ag-grid/components/cellRendererStatus.d.ts +1 -1
  289. package/dist/types/components/ez-grid/controller/ag-grid/components/selectionHeader.d.ts +1 -1
  290. package/dist/types/components/ez-grid/controller/ag-grid/editor/EzCellEditor.d.ts +2 -1
  291. package/dist/types/components/ez-grid/controller/ag-grid/editor/EzCellRender.d.ts +1 -1
  292. package/dist/types/components/ez-grid/controller/ag-grid/editor/IUICellEditor.d.ts +1 -0
  293. package/dist/types/components/ez-grid/controller/ag-grid/mock/Server.d.ts +1 -1
  294. package/dist/types/components/ez-grid/ez-grid.d.ts +37 -1
  295. package/dist/types/components/ez-list/ez-list.d.ts +23 -2
  296. package/dist/types/components/ez-list/ezListHelper.d.ts +20 -0
  297. package/dist/types/components/ez-modal/ez-modal.d.ts +7 -1
  298. package/dist/types/components/ez-modal-container/ez-modal-container.d.ts +4 -0
  299. package/dist/types/components/ez-number-input/ez-number-input.d.ts +12 -0
  300. package/dist/types/components/ez-popup/ez-popup.d.ts +8 -1
  301. package/dist/types/components/ez-search/ez-search.d.ts +29 -5
  302. package/dist/types/components/ez-split-button/ez-split-button.d.ts +1 -1
  303. package/dist/types/components/ez-split-panel/ez-split-panel.d.ts +11 -0
  304. package/dist/types/components/ez-split-panel/interfaces/IPanelSizeInfo.d.ts +9 -0
  305. package/dist/types/components/ez-split-panel/structure/item/ez-split-item.d.ts +4 -0
  306. package/dist/types/components/ez-text-area/ez-text-area.d.ts +17 -0
  307. package/dist/types/components/ez-text-input/ez-text-input.d.ts +28 -2
  308. package/dist/types/components/ez-time-input/ez-time-input.d.ts +8 -0
  309. package/dist/types/components/ez-tooltip/ez-tooltip.d.ts +21 -0
  310. package/dist/types/components.d.ts +448 -25
  311. package/dist/types/utils/FocusResolver.d.ts +5 -0
  312. package/dist/types/utils/ResponsiveInputUtils.d.ts +6 -0
  313. package/dist/types/utils/customEditor/interfaces/ICustomEditor.d.ts +2 -0
  314. package/dist/types/utils/form/DataBinder.d.ts +3 -0
  315. package/dist/types/utils/validators/recordvalidator/IInvalidCells.d.ts +5 -0
  316. package/dist/types/utils/validators/recordvalidator/RecordValidationProcessor.d.ts +1 -1
  317. package/package.json +12 -4
  318. package/react/components.d.ts +2 -0
  319. package/react/components.js +2 -0
  320. package/react/components.js.map +1 -1
  321. package/dist/cjs/RecordValidationProcessor-4c893e04.js +0 -102
  322. package/dist/cjs/ez-card-item_3.cjs.entry.js +0 -183
  323. package/dist/cjs/ez-skeleton.cjs.entry.js +0 -67
  324. package/dist/esm/RecordValidationProcessor-b00b8b77.js +0 -99
  325. package/dist/esm/ez-card-item_3.entry.js +0 -177
  326. package/dist/esm/ez-skeleton.entry.js +0 -63
  327. package/dist/ezui/p-04f24913.js +0 -1
  328. package/dist/ezui/p-11b09aa1.entry.js +0 -1
  329. package/dist/ezui/p-24ca32a3.entry.js +0 -1
  330. package/dist/ezui/p-2af4e2de.entry.js +0 -1
  331. package/dist/ezui/p-31674f8e.entry.js +0 -1
  332. package/dist/ezui/p-33792b2b.entry.js +0 -1
  333. package/dist/ezui/p-33b08253.entry.js +0 -304
  334. package/dist/ezui/p-36180f4d.entry.js +0 -1
  335. package/dist/ezui/p-3f8c33e0.entry.js +0 -1
  336. package/dist/ezui/p-5fefcdc9.entry.js +0 -1
  337. package/dist/ezui/p-6ec40dec.entry.js +0 -1
  338. package/dist/ezui/p-752c4069.entry.js +0 -1
  339. package/dist/ezui/p-81cffa53.entry.js +0 -1
  340. package/dist/ezui/p-81f99ace.entry.js +0 -1
  341. package/dist/ezui/p-868b56f7.entry.js +0 -1
  342. package/dist/ezui/p-8eef0f70.entry.js +0 -1
  343. package/dist/ezui/p-9634631d.entry.js +0 -1
  344. package/dist/ezui/p-9a11e223.entry.js +0 -1
  345. package/dist/ezui/p-9a23d513.entry.js +0 -1
  346. package/dist/ezui/p-9c2e2d68.entry.js +0 -1
  347. package/dist/ezui/p-a35b41e6.entry.js +0 -1
  348. package/dist/ezui/p-acbf0e76.entry.js +0 -1
  349. package/dist/ezui/p-b0e71d23.entry.js +0 -1
  350. package/dist/ezui/p-c3b7a23e.entry.js +0 -1
  351. package/dist/ezui/p-cd1a2e6b.entry.js +0 -1
  352. package/dist/ezui/p-dbeee5aa.entry.js +0 -1
  353. package/dist/ezui/p-de870657.entry.js +0 -1
  354. package/dist/ezui/p-e151e795.entry.js +0 -1
  355. package/dist/ezui/p-ee9315ff.entry.js +0 -1
  356. package/dist/ezui/p-f1c3f85d.entry.js +0 -1
  357. package/dist/ezui/p-f291db18.entry.js +0 -1
@@ -35,10 +35,16 @@ export class EzButton {
35
35
  ElementIDUtils.addIDInfo(this._button, 'button', dataInfo);
36
36
  }
37
37
  }
38
+ getButtonSize(sizeParam = "medium") {
39
+ const sizeList = ["x-small", "small", "medium", "large"];
40
+ const sizeLowerCase = this.size && this.size.toLowerCase();
41
+ return sizeList.includes(sizeLowerCase) ? sizeLowerCase : sizeParam;
42
+ }
38
43
  getIconSize(sizeParam = "medium") {
39
44
  const sizeList = ["small", "medium", "large"];
40
45
  const sizeLowerCase = this.size && this.size.toLowerCase();
41
- return sizeList.includes(sizeLowerCase) ? sizeLowerCase : sizeParam;
46
+ const sizeMapped = sizeLowerCase === "x-small" ? "small" : sizeLowerCase;
47
+ return sizeList.includes(sizeMapped) ? sizeMapped : sizeParam;
42
48
  }
43
49
  handleSlotChange(ev) {
44
50
  const slot = ev.target;
@@ -60,16 +66,16 @@ export class EzButton {
60
66
  }
61
67
  render() {
62
68
  if (this.mode == "icon") {
63
- return (h("button", { class: "btn-icon " + ((this.getIconSize()) ? `btn-icon--${this.getIconSize()}` : ""), type: "button", disabled: !this.enabled, ref: (el) => this._button = el }, h("ez-icon", { class: "icon", href: this.image, iconName: this.iconName, size: this.getIconSize() })));
69
+ return (h("button", { class: "btn-icon " + ((this.getButtonSize()) ? `btn-icon--${this.getButtonSize()}` : ""), type: "button", disabled: !this.enabled, ref: (el) => this._button = el }, h("ez-icon", { class: "icon", href: this.image, iconName: this.iconName, size: this.getIconSize() })));
64
70
  }
65
71
  else if (this.mode == "label-icon") {
66
- return (h("div", { class: "label-icon" }, h("button", { class: "btn-icon " + ((this.getIconSize()) ? `btn-icon--${this.getIconSize()}` : ""), type: "button", disabled: !this.enabled, ref: (el) => this._button = el }, h("ez-icon", { class: "icon", href: this.image, iconName: this.iconName, size: this.getIconSize() })), h("label", { title: this.label }, this.label)));
72
+ return (h("div", { class: "label-icon" }, h("button", { class: "btn-icon " + ((this.getButtonSize()) ? `btn-icon--${this.getButtonSize()}` : ""), type: "button", disabled: !this.enabled, ref: (el) => this._button = el }, h("ez-icon", { class: "icon", href: this.image, iconName: this.iconName, size: this.getIconSize() })), h("label", { title: this.label }, this.label)));
67
73
  }
68
74
  else if (this.mode == "link") {
69
75
  return (h("a", { class: `${this.getIconSize()} ${!this.enabled ? "disabled" : ""}`, ref: (el) => this._button = el }, h("slot", { name: "leftIcon", onSlotchange: (ev) => { this.handleSlotChange(ev); } }), this.label, h("slot", { name: "rightIcon", onSlotchange: (ev) => { this.handleSlotChange(ev); } })));
70
76
  }
71
77
  else {
72
- return (h("button", { class: this.getIconSize(""), type: "button", disabled: !this.enabled, ref: (el) => this._button = el }, h("slot", { name: "leftIcon", onSlotchange: (ev) => { this.handleSlotChange(ev); } }), this.label, h("slot", { name: "rightIcon", onSlotchange: (ev) => { this.handleSlotChange(ev); } })));
78
+ return (h("button", { class: this.getButtonSize(""), type: "button", disabled: !this.enabled, ref: (el) => this._button = el }, h("slot", { name: "leftIcon", onSlotchange: (ev) => { this.handleSlotChange(ev); } }), this.label, h("slot", { name: "rightIcon", onSlotchange: (ev) => { this.handleSlotChange(ev); } })));
73
79
  }
74
80
  }
75
81
  static get is() { return "ez-button"; }
@@ -177,8 +183,8 @@ export class EzButton {
177
183
  "type": "string",
178
184
  "mutable": false,
179
185
  "complexType": {
180
- "original": "\"small\" | \"medium\" | \"large\" | undefined",
181
- "resolved": "\"large\" | \"medium\" | \"small\"",
186
+ "original": "\"x-small\" | \"small\" | \"medium\" | \"large\" | undefined",
187
+ "resolved": "\"large\" | \"medium\" | \"small\" | \"x-small\"",
182
188
  "references": {}
183
189
  },
184
190
  "required": false,
@@ -1,7 +1,10 @@
1
- :host {
1
+ :host {
2
2
  /*@doc Define o tamanho da fonte do componente.*/
3
3
  --ez-card-item--font-size: var(--text--medium, 14px);
4
4
 
5
+ /*@doc Define o tamanho da fonte do componente no modo compacto.*/
6
+ --ez-card-item--font-size-compacted: var(--text--extra-small, 10px);
7
+
5
8
  /*@doc Define a família da fonte do componente.*/
6
9
  --ez-card-item--font-family: var(--font-pattern, Arial);
7
10
 
@@ -12,7 +15,7 @@
12
15
  --ez-card-item--font-weight-large: var(--text-weight--large, 600);
13
16
 
14
17
  /*@doc Define a cor da fonte do componente.*/
15
- --ez-card-item--color: var(--title--primary, #2B3A54);
18
+ --ez-card-item--color: var(--text--primary, #626e82);
16
19
 
17
20
  /*@doc Define a cor da fonte da key do componente.*/
18
21
  --ez-card-item__key--color: var(--text--primary, #626e82);
@@ -29,6 +32,9 @@
29
32
  /*@doc Define a cor do highlight / marcação nos textos do componente.*/
30
33
  --ez-card-item__highlight--color: var(--color--primary-300, #E2F4EF);
31
34
 
35
+ /*@doc Define o peso da fonte do componente.*/
36
+ --ez-card-item--detail-label--font-weight: var(--text-weight--large, 400);
37
+
32
38
  width: 100%;
33
39
  display: flex;
34
40
  cursor: pointer;
@@ -39,7 +45,6 @@
39
45
  flex-direction: column;
40
46
  width: 100%;
41
47
  cursor: pointer;
42
- padding: 12px;
43
48
  z-index: 0;
44
49
  position: relative;
45
50
  container-type: inline-size;
@@ -47,6 +52,21 @@
47
52
  white-space: pre-line;
48
53
  }
49
54
 
55
+ .card-item__detail{
56
+ display: inline-block;
57
+ width: 100%;
58
+ white-space: nowrap;
59
+ overflow: hidden;
60
+ text-overflow: ellipsis;
61
+ opacity: var(--opacity--soft);
62
+ }
63
+
64
+
65
+
66
+ .card-item__expanded {
67
+ padding: var(--space--medium);
68
+ }
69
+
50
70
  .card-item:hover {
51
71
  background: #F0F3F7;
52
72
  border-radius: 12px;
@@ -81,22 +101,26 @@
81
101
  }
82
102
 
83
103
  .card-item__details-container__left {
104
+ display: flex;
105
+ flex-direction: column;
84
106
  white-space: pre-line;
85
107
  cursor: pointer;
86
108
  width: 50%;
87
109
  }
88
110
 
89
111
  .card-item__details-container__right {
112
+ display: flex;
113
+ flex-direction: column;
90
114
  white-space: pre-line;
91
115
  width: 50%;
92
116
  cursor: pointer;
93
117
  }
94
118
 
95
- .card-item__detail:not(:last-child) {
119
+ .card-item__detail{
96
120
  cursor: pointer;
97
- white-space: pre-line;
121
+ }
98
122
 
99
- /*public*/
123
+ .card-item__detail-default:not(:last-child) {
100
124
  padding-bottom: var(--ez-card-item__detail--padding-bottom);
101
125
  }
102
126
 
@@ -106,8 +130,7 @@
106
130
  /*public*/
107
131
  font-size: var(--ez-card-item--font-size);
108
132
  font-family: var(--ez-card-item--font-family);
109
- font-weight: var(--ez-card-item--font-weight);
110
- color: var(--ez-card-item__detail-label--color);
133
+ font-weight: var(--ez-card-item--detail-label--font-weight);
111
134
  }
112
135
 
113
136
  .card-item__detail-value {
@@ -118,7 +141,6 @@
118
141
  font-size: var(--ez-card-item--font-size);
119
142
  font-family: var(--ez-card-item--font-family);
120
143
  font-weight: var(--ez-card-item--font-weight);
121
- color: var(--ez-card-item--color);
122
144
  }
123
145
 
124
146
  .card-item__highlight {
@@ -138,7 +160,7 @@
138
160
  align-items: center;
139
161
  }
140
162
 
141
- .card-item__details-container{
163
+ .card-item__details-container_default{
142
164
  display: flex;
143
165
  }
144
166
 
@@ -146,6 +168,34 @@
146
168
  margin-left: auto;
147
169
  }
148
170
 
171
+ /* Modo compacto */
172
+ .card-item__compacted {
173
+ padding: var(--space--medium);
174
+ padding-bottom: 0px;
175
+ padding-right: 0px;
176
+ }
177
+
178
+ .card-item__detail-label-compacted {
179
+ font-size: var(--ez-card-item--font-size-compacted);
180
+ }
181
+
182
+ .card-item__detail-value-compacted {
183
+ font-size: var(--ez-card-item--font-size-compacted);
184
+ }
185
+
186
+ .card-item__title-compacted {
187
+ font-size: var(--ez-card-item--font-size-compacted);
188
+ }
189
+
190
+ .card-item__details-container__left-compacted{
191
+ width: 100%;
192
+ }
193
+
194
+ .card-item__details-container__right-compacted {
195
+ width: 100%;
196
+ }
197
+
198
+
149
199
  @container box (max-width: 550px) {
150
200
  .card-item__details {
151
201
  flex-direction: column;
@@ -4,6 +4,7 @@ export class EzCardItem {
4
4
  constructor() {
5
5
  this.item = undefined;
6
6
  this.enableKey = true;
7
+ this.compacted = false;
7
8
  }
8
9
  componentWillRender() {
9
10
  this.createDetailList();
@@ -26,14 +27,22 @@ export class EzCardItem {
26
27
  }
27
28
  }
28
29
  }
30
+ buildDetailContentTitle(detail) {
31
+ var _a, _b;
32
+ if ((detail === null || detail === void 0 ? void 0 : detail.label) == undefined && (detail === null || detail === void 0 ? void 0 : detail.value) == undefined)
33
+ return;
34
+ const cleanLabel = (_a = StringUtils.replaceAccentuatedCharsHtmlEntities(detail === null || detail === void 0 ? void 0 : detail.label)) === null || _a === void 0 ? void 0 : _a.replace(/<[^>]*>/g, '');
35
+ const cleanValue = (_b = StringUtils.replaceAccentuatedCharsHtmlEntities(detail === null || detail === void 0 ? void 0 : detail.value)) === null || _b === void 0 ? void 0 : _b.replace(/<[^>]*>/g, '');
36
+ return `${cleanLabel}: ${cleanValue}`;
37
+ }
29
38
  buildDetailContent(detail) {
30
- return h("div", { class: "card-item__detail" }, h("label", { class: "card-item__detail-label" }, detail.label), ": ", h("label", { class: "card-item__detail-value", innerHTML: detail.value }));
39
+ return h("div", { class: `card-item__detail ${this.compacted ? "" : "card-item__detail-default"}`, title: this.buildDetailContentTitle(detail) }, h("label", { class: `card-item__detail-label ${this.compacted ? "card-item__detail-label-compacted" : ""}` }, `${detail.label}: `), " ", h("label", { class: `card-item__detail-value ${this.compacted ? "card-item__detail-value-compacted" : ""}`, innerHTML: detail.value }));
31
40
  }
32
41
  render() {
33
42
  return (h(Host, null, this.item &&
34
- h("div", { class: "card-item", onClick: () => { this.ezClick.emit(this.item); } }, h("div", { class: "ez-row card-item__content" }, h("div", { class: "ez-col ez-col--sd-11 card-item__details" }, h("label", { class: "card-item__title" }, this.enableKey && (h("span", { class: "card-item__key", innerHTML: this.item.key })), h("span", { innerHTML: this.item.title })), h("div", { class: "card-item__details-container" }, h("div", { class: "card-item__details-container__left" }, this._details.detailsLeft.map(detail => {
43
+ h("div", { class: `card-item ${this.compacted ? "card-item__compacted" : "card-item__expanded"} `, onClick: () => { this.ezClick.emit(this.item); } }, h("div", { class: "ez-row card-item__content" }, h("div", { class: "ez-col ez-col--sd-11 card-item__details" }, h("label", { class: `card-item__title ${this.compacted ? "card-item__title-compacted" : ""}` }, this.enableKey && (h("span", { class: "card-item__key", innerHTML: this.item.key })), h("span", { innerHTML: this.item.title })), h("div", { class: `${this.compacted ? "card-item__details-container_compacted" : "card-item__details-container_default"}` }, h("div", { class: `card-item__details-container__left ${this.compacted ? "card-item__details-container__left-compacted" : ""}` }, this._details.detailsLeft.map(detail => {
35
44
  return this.buildDetailContent(detail);
36
- })), h("div", { class: "card-item__details-container__right" }, this._details.detailsRight.map(detail => {
45
+ })), h("div", { class: `card-item__details-container__right ${this.compacted ? "card-item__details-container__right-compacted" : ""}` }, this._details.detailsRight.map(detail => {
37
46
  return this.buildDetailContent(detail);
38
47
  })))), h("div", { class: "ez-col ez-col--sd-1 card-item__details-slot" }, h("slot", { name: "rightSlot" }))))));
39
48
  }
@@ -87,6 +96,24 @@ export class EzCardItem {
87
96
  "attribute": "enable-key",
88
97
  "reflect": false,
89
98
  "defaultValue": "true"
99
+ },
100
+ "compacted": {
101
+ "type": "boolean",
102
+ "mutable": false,
103
+ "complexType": {
104
+ "original": "boolean",
105
+ "resolved": "boolean",
106
+ "references": {}
107
+ },
108
+ "required": false,
109
+ "optional": false,
110
+ "docs": {
111
+ "tags": [],
112
+ "text": "Determina se o componente ser\u00E1 apresentado no modo compacto."
113
+ },
114
+ "attribute": "compacted",
115
+ "reflect": false,
116
+ "defaultValue": "false"
90
117
  }
91
118
  };
92
119
  }
@@ -129,11 +129,6 @@ input.regular-mode {
129
129
  cursor: pointer;
130
130
  border-radius: 50%;
131
131
  position: relative;
132
-
133
-
134
- /*public*/
135
- width: var(--ez-check--width);
136
- height: var(--ez-check--height);
137
132
  }
138
133
 
139
134
  input.compact{
@@ -363,5 +358,5 @@ input.switch-mode:checked:disabled::after {
363
358
  }
364
359
 
365
360
  .label--padding {
366
- padding-left: var(--space--small);
361
+ padding-left: var(--space--extra-small);
367
362
  }
@@ -73,7 +73,7 @@ ez-icon {
73
73
  .collapsible-box__title {
74
74
  /*private*/
75
75
  position: relative;
76
- width: auto;
76
+ width: 100%;
77
77
  display: flex;
78
78
  box-sizing: border-box;
79
79
  align-items: center;
@@ -98,7 +98,7 @@ ez-icon {
98
98
 
99
99
  .collapsible-box__label {
100
100
  /*private*/
101
- display: flex;
101
+ display: block;
102
102
  white-space: nowrap;
103
103
  overflow: hidden;
104
104
  cursor: pointer;
@@ -8,6 +8,11 @@
8
8
  /*@doc Define largura do slot do ícone do input.*/
9
9
  --ez-combo-box__icon--width: 48px;
10
10
 
11
+ /*@doc Define a largura maxima do componente.*/
12
+ --ez-combo-box__min-width: 0px;
13
+ /*@doc Define a largura minima do componente.*/
14
+ --ez-combo-box__max-width: 100%;
15
+
11
16
  /* general */
12
17
  /*@doc Define o raio da borda do input.*/
13
18
  --ez-combo-box--border-radius: var(--border--radius-medium, 12px);
@@ -290,6 +295,7 @@ li:hover {
290
295
  border: none;
291
296
  background: none;
292
297
  cursor: pointer;
298
+ padding: 0px;
293
299
 
294
300
  /*public*/
295
301
  color: var(--ez-combo-box__btn--color);
@@ -303,7 +309,7 @@ li:hover {
303
309
  }
304
310
 
305
311
  .btn:disabled:hover {
306
- cursor: unset;
312
+ cursor: not-allowed;
307
313
 
308
314
  /*public*/
309
315
  color: var(--ez-combo-box__btn-disabled--color);
@@ -322,6 +328,12 @@ ez-text-input:hover .btn__close, ez-text-input:focus .btn__close {
322
328
  visibility: visible;
323
329
  }
324
330
 
331
+ .text-input-slot-container{
332
+ --ez-text-input__icon--width:32px;
333
+ --ez-text-input__min-width: var(--ez-combo-box__min-width);
334
+ --ez-text-input__max-width: var(--ez-combo-box__max-width);
335
+ }
336
+
325
337
 
326
338
  @-webkit-keyframes spin {
327
339
  0% { -webkit-transform: rotate(0deg); }
@@ -1,4 +1,4 @@
1
- import { ElementIDUtils, FloatingManager, ObjectUtils } from "@sankhyalabs/core";
1
+ import { ElementIDUtils, FloatingManager, ObjectUtils, StringUtils } from "@sankhyalabs/core";
2
2
  import { h, Host } from "@stencil/core";
3
3
  import { CSSVarsUtils } from "../../utils";
4
4
  export class EzComboBox {
@@ -25,11 +25,14 @@ export class EzComboBox {
25
25
  this.suppressSearch = false;
26
26
  this.optionLoader = undefined;
27
27
  this.suppressEmptyOption = false;
28
+ this.stopPropagateEnterKeyEvent = true;
28
29
  this.canShowError = true;
29
30
  this.mode = "regular";
30
31
  this.hideErrorOnFocusOut = true;
31
32
  this.listOptionsPosition = undefined;
32
33
  this.isTextSearch = false;
34
+ this.autoFocus = false;
35
+ this.noMargin = false;
33
36
  }
34
37
  observeErrorMessage() {
35
38
  var _a;
@@ -92,9 +95,9 @@ export class EzComboBox {
92
95
  /**
93
96
  * Aplica o foco no campo.
94
97
  */
95
- async setFocus() {
98
+ async setFocus(options) {
96
99
  if (this._textInput) {
97
- this._textInput.setFocus();
100
+ this._textInput.setFocus(options);
98
101
  }
99
102
  }
100
103
  /**
@@ -171,7 +174,7 @@ export class EzComboBox {
171
174
  return this.listOptionsPosition;
172
175
  }
173
176
  return {
174
- verticalPosition: (this.errorMessage || !this.canShowError || this.mode === "slim") ? 6 : -13
177
+ verticalPosition: 6
175
178
  };
176
179
  }
177
180
  isDifferentValues(firstValue, secondValue) {
@@ -254,11 +257,15 @@ export class EzComboBox {
254
257
  : undefined, h("span", { class: "item__label " + (this.showOptionValue ? "item__label--bold" : ""), title: opt.label }, opt.label));
255
258
  }
256
259
  showOptions() {
260
+ var _a, _b;
257
261
  if (!this.enabled)
258
262
  return;
259
263
  if (this.isOptionsVisible()) {
260
264
  return;
261
265
  }
266
+ const valueString = (_b = (_a = this.value) === null || _a === void 0 ? void 0 : _a.value) !== null && _b !== void 0 ? _b : this.value;
267
+ const indexValue = this._visibleOptions.findIndex(option => option.value === valueString);
268
+ this._preSelection = indexValue === -1 ? 0 : indexValue;
262
269
  if (!!this._resizeObserver)
263
270
  this._resizeObserver.observe(this._textInput);
264
271
  this._floatingID = FloatingManager.float(this._listWrapper, this._listContainer, { autoClose: true, isFixed: true, backClickListener: () => this.hideOptions() });
@@ -300,11 +307,26 @@ export class EzComboBox {
300
307
  liElem.scrollIntoView({ behavior: "smooth", block: "nearest" });
301
308
  });
302
309
  }
303
- selectCurrentOption() {
310
+ selectCurrentOption(focusOnInput = true) {
304
311
  if (this._preSelection !== undefined) {
305
- this.selectOption(this._visibleOptions[this._preSelection]);
312
+ this.selectOption(this._visibleOptions[this._preSelection], focusOnInput);
306
313
  this._preSelection = undefined;
307
314
  }
315
+ else {
316
+ this.controlListWithOnlyOne(focusOnInput);
317
+ }
318
+ }
319
+ controlListWithOnlyOne(focusOnInput = true) {
320
+ var _a;
321
+ const source = (_a = this._visibleOptions) === null || _a === void 0 ? void 0 : _a.filter((opt) => opt.label !== "" && opt.value != undefined);
322
+ if ((source === null || source === void 0 ? void 0 : source.length) > 0) {
323
+ let title = StringUtils.decodeHtmlEntities(source[0].label);
324
+ const option = {
325
+ value: source[0].value,
326
+ label: title,
327
+ };
328
+ this.selectOption(option, focusOnInput);
329
+ }
308
330
  }
309
331
  updateSource(source) {
310
332
  this._startLoading = false;
@@ -330,7 +352,7 @@ export class EzComboBox {
330
352
  }
331
353
  }
332
354
  }
333
- selectOption(newOption) {
355
+ selectOption(newOption, focusOnInput = true) {
334
356
  var _a, _b;
335
357
  const currentValue = this.getSelectedOption(this.value);
336
358
  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()))
@@ -341,6 +363,11 @@ export class EzComboBox {
341
363
  else {
342
364
  this.resetOptions();
343
365
  }
366
+ if (focusOnInput) {
367
+ setTimeout(() => {
368
+ this.setFocus();
369
+ }, 0);
370
+ }
344
371
  }
345
372
  loadOptions(mode, argument = "") {
346
373
  this._criteria = argument;
@@ -362,7 +389,6 @@ export class EzComboBox {
362
389
  this.setInputValue(false);
363
390
  }, this._deboucingTime);
364
391
  }
365
- this.resetOptions();
366
392
  }
367
393
  setInputValue(clearError = true) {
368
394
  const textValue = this.getText();
@@ -425,6 +451,11 @@ export class EzComboBox {
425
451
  }
426
452
  });
427
453
  });
454
+ if (this.autoFocus) {
455
+ requestAnimationFrame(() => {
456
+ this.setFocus({ selectText: true });
457
+ });
458
+ }
428
459
  }
429
460
  //---------------------------------------------
430
461
  // Event handlers
@@ -451,7 +482,7 @@ export class EzComboBox {
451
482
  this.showOptions();
452
483
  }
453
484
  else {
454
- this.hideOptions();
485
+ this._preSelection = undefined;
455
486
  this.updateVisibleOptions();
456
487
  }
457
488
  }
@@ -479,21 +510,38 @@ export class EzComboBox {
479
510
  }
480
511
  switch (event.key) {
481
512
  case "ArrowDown":
482
- this.nextOption();
483
513
  event.stopPropagation();
514
+ if (this.canShowListOptions())
515
+ event.preventDefault();
516
+ this.showOptions();
517
+ this.nextOption();
484
518
  break;
485
519
  case "ArrowUp":
486
- this.previousOption();
487
520
  event.stopPropagation();
521
+ if (this.canShowListOptions())
522
+ event.preventDefault();
523
+ this.showOptions();
524
+ this.previousOption();
488
525
  break;
489
526
  case "Enter":
490
- this.selectCurrentOption();
527
+ this.handleEventPropagation(event);
528
+ if (this.isOptionsVisible()) {
529
+ this.selectCurrentOption();
530
+ }
491
531
  break;
492
532
  case "Escape":
533
+ if (this.isOptionsVisible()) {
534
+ event.stopPropagation();
535
+ }
493
536
  this.cancelPreselection();
537
+ this.resetOptions();
494
538
  break;
495
539
  case "Tab":
496
540
  this._tabPressed = true;
541
+ if (this.isOptionsVisible()) {
542
+ this.selectCurrentOption(false);
543
+ }
544
+ this.resetOptions();
497
545
  break;
498
546
  }
499
547
  //ATENÇÃO: Existe a necessidade de propagar o evento de teclado.
@@ -502,6 +550,12 @@ export class EzComboBox {
502
550
  //e o contexto pode reagir (fechar um popup por exemplo).
503
551
  //event.stopPropagation();
504
552
  }
553
+ //O evento deve ter sua propagação interrompida, apenas se a lista de opções estiver sendo exibida.
554
+ handleEventPropagation(event) {
555
+ if (this._listContainer.hasChildNodes() && this.stopPropagateEnterKeyEvent) {
556
+ event.stopPropagation();
557
+ }
558
+ }
505
559
  onTextInputFocusOutHandler() {
506
560
  if (this.hideErrorOnFocusOut)
507
561
  this.cancelPreselection();
@@ -511,7 +565,7 @@ export class EzComboBox {
511
565
  }
512
566
  render() {
513
567
  ElementIDUtils.addIDInfoIfNotExists(this.el, 'input');
514
- 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
568
+ 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, noMargin: this.noMargin }, 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
515
569
  && this._visibleOptions.length === 0
516
570
  && h("div", { class: "message" }, h("span", { class: "message__no-result" }, this._textEmptyList)), this._showLoading
517
571
  && h("div", { class: "message" }, h("div", { class: "message__loading" })), this.showOptionValue
@@ -745,6 +799,24 @@ export class EzComboBox {
745
799
  "reflect": false,
746
800
  "defaultValue": "false"
747
801
  },
802
+ "stopPropagateEnterKeyEvent": {
803
+ "type": "boolean",
804
+ "mutable": false,
805
+ "complexType": {
806
+ "original": "boolean",
807
+ "resolved": "boolean",
808
+ "references": {}
809
+ },
810
+ "required": false,
811
+ "optional": false,
812
+ "docs": {
813
+ "tags": [],
814
+ "text": "Se true, ineterrompe a propaga\u00E7\u00E3o do evento de KeyDown da tecla enter"
815
+ },
816
+ "attribute": "stop-propagate-enter-key-event",
817
+ "reflect": false,
818
+ "defaultValue": "true"
819
+ },
748
820
  "canShowError": {
749
821
  "type": "boolean",
750
822
  "mutable": false,
@@ -835,6 +907,42 @@ export class EzComboBox {
835
907
  "attribute": "is-text-search",
836
908
  "reflect": false,
837
909
  "defaultValue": "false"
910
+ },
911
+ "autoFocus": {
912
+ "type": "boolean",
913
+ "mutable": false,
914
+ "complexType": {
915
+ "original": "boolean",
916
+ "resolved": "boolean",
917
+ "references": {}
918
+ },
919
+ "required": false,
920
+ "optional": false,
921
+ "docs": {
922
+ "tags": [],
923
+ "text": "Se true o campo de texto receber\u00E1 o foco ao ser renderizado."
924
+ },
925
+ "attribute": "auto-focus",
926
+ "reflect": false,
927
+ "defaultValue": "false"
928
+ },
929
+ "noMargin": {
930
+ "type": "boolean",
931
+ "mutable": false,
932
+ "complexType": {
933
+ "original": "boolean",
934
+ "resolved": "boolean",
935
+ "references": {}
936
+ },
937
+ "required": false,
938
+ "optional": false,
939
+ "docs": {
940
+ "tags": [],
941
+ "text": "Quando verdadeiro, o campo n\u00E3o ter\u00E1 espa\u00E7amento externo."
942
+ },
943
+ "attribute": "no-margin",
944
+ "reflect": false,
945
+ "defaultValue": "false"
838
946
  }
839
947
  };
840
948
  }
@@ -889,11 +997,18 @@ export class EzComboBox {
889
997
  },
890
998
  "setFocus": {
891
999
  "complexType": {
892
- "signature": "() => Promise<void>",
893
- "parameters": [],
1000
+ "signature": "(options?: TFocusOptions) => Promise<void>",
1001
+ "parameters": [{
1002
+ "tags": [],
1003
+ "text": ""
1004
+ }],
894
1005
  "references": {
895
1006
  "Promise": {
896
1007
  "location": "global"
1008
+ },
1009
+ "TFocusOptions": {
1010
+ "location": "import",
1011
+ "path": "../ez-text-input/ez-text-input"
897
1012
  }
898
1013
  },
899
1014
  "return": "Promise<void>"
@@ -22,7 +22,7 @@
22
22
  }
23
23
 
24
24
  .btn-open-cal:disabled {
25
- cursor: unset;
25
+ cursor: not-allowed;
26
26
  }
27
27
 
28
28
  .btn-open-cal::after {