@sankhyalabs/ezui 5.22.0-dev.9 → 5.22.0-dev.90

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 (379) hide show
  1. package/dist/cjs/{CSSVarsUtils-10c9d5b4.js → CSSVarsUtils-f20973d1.js} +1 -0
  2. package/dist/cjs/DataBinder-e92314c2.js +445 -0
  3. package/dist/cjs/FocusResolver-885f2173.js +35 -0
  4. package/dist/cjs/ez-actions-button.cjs.entry.js +5 -4
  5. package/dist/cjs/ez-alert-list.cjs.entry.js +1 -1
  6. package/dist/cjs/ez-alert.cjs.entry.js +1 -1
  7. package/dist/cjs/ez-application.cjs.entry.js +1 -1
  8. package/dist/cjs/ez-badge.cjs.entry.js +1 -1
  9. package/dist/cjs/ez-breadcrumb.cjs.entry.js +1 -1
  10. package/dist/cjs/ez-button.cjs.entry.js +12 -6
  11. package/dist/cjs/ez-calendar.cjs.entry.js +1 -1
  12. package/dist/cjs/ez-card-item_2.cjs.entry.js +76 -0
  13. package/dist/cjs/ez-chart.cjs.entry.js +1 -1
  14. package/dist/cjs/ez-check.cjs.entry.js +2 -2
  15. package/dist/cjs/ez-chip.cjs.entry.js +1 -1
  16. package/dist/cjs/ez-collapsible-box.cjs.entry.js +2 -2
  17. package/dist/cjs/ez-combo-box.cjs.entry.js +68 -15
  18. package/dist/cjs/ez-custom-form-input_2.cjs.entry.js +37 -7
  19. package/dist/cjs/ez-date-input.cjs.entry.js +14 -5
  20. package/dist/cjs/ez-date-time-input.cjs.entry.js +11 -5
  21. package/dist/cjs/ez-dialog.cjs.entry.js +15 -8
  22. package/dist/cjs/ez-double-list.cjs.entry.js +287 -0
  23. package/dist/cjs/{ez-dropdown.cjs.entry.js → ez-dropdown_2.cjs.entry.js} +76 -9
  24. package/dist/cjs/ez-file-item.cjs.entry.js +1 -1
  25. package/dist/cjs/ez-filter-input.cjs.entry.js +129 -0
  26. package/dist/cjs/ez-form-view.cjs.entry.js +29 -22
  27. package/dist/cjs/ez-form.cjs.entry.js +7 -326
  28. package/dist/cjs/ez-grid.cjs.entry.js +14960 -69758
  29. package/dist/cjs/ez-guide-navigator.cjs.entry.js +1 -1
  30. package/dist/cjs/ez-icon.cjs.entry.js +2 -2
  31. package/dist/cjs/ez-list.cjs.entry.js +259 -212
  32. package/dist/cjs/ez-loading-bar.cjs.entry.js +1 -1
  33. package/dist/cjs/ez-modal-container.cjs.entry.js +3 -3
  34. package/dist/cjs/ez-modal.cjs.entry.js +13 -4
  35. package/dist/cjs/ez-multi-selection-list_2.cjs.entry.js +1585 -0
  36. package/dist/cjs/ez-number-input.cjs.entry.js +16 -4
  37. package/dist/cjs/ez-popover.cjs.entry.js +1 -1
  38. package/dist/cjs/ez-popup.cjs.entry.js +25 -3
  39. package/dist/cjs/ez-radio-button.cjs.entry.js +1 -1
  40. package/dist/cjs/ez-scroller_2.cjs.entry.js +4 -4
  41. package/dist/cjs/ez-search.cjs.entry.js +110 -49
  42. package/dist/cjs/ez-sidebar-navigator.cjs.entry.js +2 -2
  43. package/dist/cjs/ez-split-button.cjs.entry.js +3 -3
  44. package/dist/cjs/ez-split-item.cjs.entry.js +7 -4
  45. package/dist/cjs/ez-split-panel.cjs.entry.js +69 -7
  46. package/dist/cjs/ez-tabselector.cjs.entry.js +1 -1
  47. package/dist/cjs/ez-text-area.cjs.entry.js +69 -7
  48. package/dist/cjs/ez-text-input.cjs.entry.js +153 -17
  49. package/dist/cjs/ez-time-input.cjs.entry.js +8 -2
  50. package/dist/cjs/ez-toast.cjs.entry.js +1 -1
  51. package/dist/cjs/ez-tooltip.cjs.entry.js +55 -0
  52. package/dist/cjs/ez-tree.cjs.entry.js +6 -5
  53. package/dist/cjs/ez-upload.cjs.entry.js +1 -1
  54. package/dist/cjs/ez-view-stack.cjs.entry.js +1 -1
  55. package/dist/cjs/ezListHelper-0d3970b4.js +90 -0
  56. package/dist/cjs/ezui.cjs.js +2 -2
  57. package/dist/cjs/filter-column.cjs.entry.js +11 -48
  58. package/dist/cjs/{index-a7b0c73d.js → index-9e5554cb.js} +21 -10
  59. package/dist/cjs/loader.cjs.js +2 -2
  60. package/dist/collection/collection-manifest.json +4 -1
  61. package/dist/collection/components/ez-actions-button/ez-actions-button.js +3 -2
  62. package/dist/collection/components/ez-button/ez-button.css +23 -13
  63. package/dist/collection/components/ez-button/ez-button.js +12 -6
  64. package/dist/collection/components/ez-card-item/ez-card-item.css +60 -10
  65. package/dist/collection/components/ez-card-item/ez-card-item.js +30 -3
  66. package/dist/collection/components/ez-check/ez-check.css +1 -6
  67. package/dist/collection/components/ez-collapsible-box/ez-collapsible-box.css +2 -2
  68. package/dist/collection/components/ez-combo-box/ez-combo-box.css +14 -2
  69. package/dist/collection/components/ez-combo-box/ez-combo-box.js +111 -15
  70. package/dist/collection/components/ez-date-input/ez-date-input.css +1 -1
  71. package/dist/collection/components/ez-date-input/ez-date-input.js +38 -4
  72. package/dist/collection/components/ez-date-time-input/ez-date-time-input.css +1 -1
  73. package/dist/collection/components/ez-date-time-input/ez-date-time-input.js +35 -4
  74. package/dist/collection/components/ez-dialog/ez-dialog.css +3 -3
  75. package/dist/collection/components/ez-dialog/ez-dialog.js +14 -16
  76. package/dist/collection/components/ez-double-list/doubleListHelper.js +82 -0
  77. package/dist/collection/components/ez-double-list/ez-double-list.css +62 -0
  78. package/dist/collection/components/ez-double-list/ez-double-list.js +440 -0
  79. package/dist/collection/components/ez-dropdown/ez-dropdown.js +33 -8
  80. package/dist/collection/components/ez-filter-input/ez-filter-input.css +1 -1
  81. package/dist/collection/components/ez-filter-input/ez-filter-input.js +35 -4
  82. package/dist/collection/components/ez-form/ez-form.js +1 -0
  83. package/dist/collection/components/ez-form-view/custom-input/ez-custom-form-input.js +49 -6
  84. package/dist/collection/components/ez-form-view/ez-form-view.css +5 -2
  85. package/dist/collection/components/ez-form-view/fieldbuilder/FieldBuilder.js +2 -1
  86. package/dist/collection/components/ez-form-view/fieldbuilder/templates/CheckBox.tpl.js +1 -1
  87. package/dist/collection/components/ez-form-view/fieldbuilder/templates/ComboBox.tpl.js +1 -1
  88. package/dist/collection/components/ez-form-view/fieldbuilder/templates/DateInput.tpl.js +8 -4
  89. package/dist/collection/components/ez-form-view/fieldbuilder/templates/FileInput.tpl.js +1 -1
  90. package/dist/collection/components/ez-form-view/fieldbuilder/templates/NumberInput.tpl.js +1 -1
  91. package/dist/collection/components/ez-form-view/fieldbuilder/templates/SearchInput.tpl.js +3 -2
  92. package/dist/collection/components/ez-form-view/fieldbuilder/templates/TextArea.tpl.js +1 -1
  93. package/dist/collection/components/ez-form-view/fieldbuilder/templates/TextInput.tpl.js +2 -2
  94. package/dist/collection/components/ez-grid/controller/ag-grid/AgGridController.js +295 -63
  95. package/dist/collection/components/ez-grid/controller/ag-grid/DataSource.js +151 -31
  96. package/dist/collection/components/ez-grid/controller/ag-grid/DataSourceInterceptor.js +2 -1
  97. package/dist/collection/components/ez-grid/controller/ag-grid/GridEditionManager.js +219 -42
  98. package/dist/collection/components/ez-grid/controller/ag-grid/components/EzGridCustomCellEditor.js +16 -0
  99. package/dist/collection/components/ez-grid/controller/ag-grid/components/EzGridCustomHeader.js +1 -1
  100. package/dist/collection/components/ez-grid/controller/ag-grid/editor/EzCellEditor.js +8 -0
  101. package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/ComboBox.tpl.js +2 -0
  102. package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/DateInput.tpl.js +1 -0
  103. package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/NumberInput.tpl.js +1 -0
  104. package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/Search.tpl.js +8 -1
  105. package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/TextInput.tpl.js +4 -1
  106. package/dist/collection/components/ez-grid/controller/ag-grid/test/constants/GridEditionMock.js +2 -0
  107. package/dist/collection/components/ez-grid/ez-grid.css +95 -10
  108. package/dist/collection/components/ez-grid/ez-grid.js +315 -10
  109. package/dist/collection/components/ez-grid/subcomponents/filter-column.css +4 -0
  110. package/dist/collection/components/ez-grid/subcomponents/filter-column.js +9 -46
  111. package/dist/collection/components/ez-icon/ez-icon.css +156 -149
  112. package/dist/collection/components/ez-list/ez-list.css +5 -4
  113. package/dist/collection/components/ez-list/ez-list.js +301 -212
  114. package/dist/collection/components/ez-list/ezListHelper.js +85 -0
  115. package/dist/collection/components/ez-modal/ez-modal.css +7 -2
  116. package/dist/collection/components/ez-modal/ez-modal.js +13 -4
  117. package/dist/collection/components/ez-modal-container/ez-modal-container.css +1 -0
  118. package/dist/collection/components/ez-modal-container/ez-modal-container.js +1 -1
  119. package/dist/collection/components/ez-multi-selection-list/ez-multi-selection-list.css +3 -3
  120. package/dist/collection/components/ez-multi-selection-list/ez-multi-selection-list.js +1 -1
  121. package/dist/collection/components/ez-number-input/ez-number-input.css +8 -0
  122. package/dist/collection/components/ez-number-input/ez-number-input.js +49 -1
  123. package/dist/collection/components/ez-popover-plus/ez-popover-plus.css +67 -0
  124. package/dist/collection/components/ez-popover-plus/ez-popover-plus.js +465 -0
  125. package/dist/collection/components/ez-popup/ez-popup.css +8 -3
  126. package/dist/collection/components/ez-popup/ez-popup.js +43 -3
  127. package/dist/collection/components/ez-scroller/ez-scroller.css +1 -0
  128. package/dist/collection/components/ez-search/ez-search.css +22 -11
  129. package/dist/collection/components/ez-search/ez-search.js +193 -53
  130. package/dist/collection/components/ez-sidebar-button/ez-sidebar-button.css +3 -0
  131. package/dist/collection/components/ez-sidebar-button/ez-sidebar-button.js +1 -1
  132. package/dist/collection/components/ez-sidebar-navigator/ez-sidebar-navigator.css +4 -1
  133. package/dist/collection/components/ez-skeleton/ez-skeleton.css +54 -34
  134. package/dist/collection/components/ez-split-button/ez-split-button.css +52 -14
  135. package/dist/collection/components/ez-split-button/ez-split-button.js +3 -3
  136. package/dist/collection/components/ez-split-panel/ez-split-panel.css +15 -0
  137. package/dist/collection/components/ez-split-panel/ez-split-panel.js +106 -5
  138. package/dist/collection/components/ez-split-panel/interfaces/IPanelSizeInfo.js +1 -0
  139. package/dist/collection/components/ez-split-panel/structure/item/ez-split-item.css +14 -2
  140. package/dist/collection/components/ez-split-panel/structure/item/ez-split-item.js +22 -1
  141. package/dist/collection/components/ez-text-area/ez-text-area.css +78 -29
  142. package/dist/collection/components/ez-text-area/ez-text-area.js +104 -4
  143. package/dist/collection/components/ez-text-input/ez-text-input.css +106 -91
  144. package/dist/collection/components/ez-text-input/ez-text-input.js +166 -15
  145. package/dist/collection/components/ez-time-input/ez-time-input.js +24 -0
  146. package/dist/collection/components/ez-tooltip/ez-tooltip.css +20 -0
  147. package/dist/collection/components/ez-tooltip/ez-tooltip.js +116 -0
  148. package/dist/collection/components/ez-tree/ez-tree.js +21 -1
  149. package/dist/collection/components/ez-tree/subcomponents/TreeItem.js +3 -3
  150. package/dist/collection/sw.js +46 -0
  151. package/dist/collection/utils/CSSVarsUtils.js +1 -0
  152. package/dist/collection/utils/FocusResolver.js +31 -0
  153. package/dist/collection/utils/ResponsiveInputUtils.js +26 -0
  154. package/dist/collection/utils/form/DataBinder.js +22 -7
  155. package/dist/collection/utils/form/FormMetadata.js +2 -1
  156. package/dist/collection/utils/interfaces/AbstractFieldMetadata.js +1 -1
  157. package/dist/collection/utils/validators/recordvalidator/IInvalidCells.js +1 -0
  158. package/dist/collection/utils/validators/recordvalidator/RecordValidationProcessor.js +7 -1
  159. package/dist/custom-elements/index.d.ts +18 -0
  160. package/dist/custom-elements/index.js +18095 -70498
  161. package/dist/esm/{CSSVarsUtils-71ce76be.js → CSSVarsUtils-acba92d7.js} +1 -0
  162. package/dist/esm/DataBinder-9c877244.js +441 -0
  163. package/dist/esm/FocusResolver-1ccbf850.js +33 -0
  164. package/dist/esm/ez-actions-button.entry.js +5 -4
  165. package/dist/esm/ez-alert-list.entry.js +1 -1
  166. package/dist/esm/ez-alert.entry.js +1 -1
  167. package/dist/esm/ez-application.entry.js +1 -1
  168. package/dist/esm/ez-badge.entry.js +1 -1
  169. package/dist/esm/ez-breadcrumb.entry.js +1 -1
  170. package/dist/esm/ez-button.entry.js +12 -6
  171. package/dist/esm/ez-calendar.entry.js +1 -1
  172. package/dist/esm/ez-card-item_2.entry.js +71 -0
  173. package/dist/esm/ez-chart.entry.js +1 -1
  174. package/dist/esm/ez-check.entry.js +2 -2
  175. package/dist/esm/ez-chip.entry.js +1 -1
  176. package/dist/esm/ez-collapsible-box.entry.js +2 -2
  177. package/dist/esm/ez-combo-box.entry.js +69 -16
  178. package/dist/esm/ez-custom-form-input_2.entry.js +38 -8
  179. package/dist/esm/ez-date-input.entry.js +14 -5
  180. package/dist/esm/ez-date-time-input.entry.js +11 -5
  181. package/dist/esm/ez-dialog.entry.js +16 -9
  182. package/dist/esm/ez-double-list.entry.js +283 -0
  183. package/dist/esm/{ez-dropdown.entry.js → ez-dropdown_2.entry.js} +76 -10
  184. package/dist/esm/ez-file-item.entry.js +1 -1
  185. package/dist/esm/ez-filter-input.entry.js +125 -0
  186. package/dist/esm/ez-form-view.entry.js +29 -22
  187. package/dist/esm/ez-form.entry.js +6 -325
  188. package/dist/esm/ez-grid.entry.js +14900 -69698
  189. package/dist/esm/ez-guide-navigator.entry.js +1 -1
  190. package/dist/esm/ez-icon.entry.js +2 -2
  191. package/dist/esm/ez-list.entry.js +259 -212
  192. package/dist/esm/ez-loading-bar.entry.js +1 -1
  193. package/dist/esm/ez-modal-container.entry.js +3 -3
  194. package/dist/esm/ez-modal.entry.js +13 -4
  195. package/dist/esm/ez-multi-selection-list_2.entry.js +1580 -0
  196. package/dist/esm/ez-number-input.entry.js +16 -4
  197. package/dist/esm/ez-popover.entry.js +1 -1
  198. package/dist/esm/ez-popup.entry.js +25 -3
  199. package/dist/esm/ez-radio-button.entry.js +1 -1
  200. package/dist/esm/ez-scroller_2.entry.js +4 -4
  201. package/dist/esm/ez-search.entry.js +110 -49
  202. package/dist/esm/ez-sidebar-navigator.entry.js +2 -2
  203. package/dist/esm/ez-split-button.entry.js +3 -3
  204. package/dist/esm/ez-split-item.entry.js +7 -4
  205. package/dist/esm/ez-split-panel.entry.js +69 -7
  206. package/dist/esm/ez-tabselector.entry.js +1 -1
  207. package/dist/esm/ez-text-area.entry.js +69 -7
  208. package/dist/esm/ez-text-input.entry.js +153 -17
  209. package/dist/esm/ez-time-input.entry.js +8 -2
  210. package/dist/esm/ez-toast.entry.js +1 -1
  211. package/dist/esm/ez-tooltip.entry.js +51 -0
  212. package/dist/esm/ez-tree.entry.js +6 -5
  213. package/dist/esm/ez-upload.entry.js +1 -1
  214. package/dist/esm/ez-view-stack.entry.js +1 -1
  215. package/dist/esm/ezListHelper-00fb9b8d.js +87 -0
  216. package/dist/esm/ezui.js +3 -3
  217. package/dist/esm/filter-column.entry.js +11 -48
  218. package/dist/esm/{index-baa5e267.js → index-5a720e56.js} +21 -11
  219. package/dist/esm/loader.js +3 -3
  220. package/dist/ezui/ezui.esm.js +1 -1
  221. package/dist/ezui/{p-44caad9a.entry.js → p-0378416a.entry.js} +1 -1
  222. package/dist/ezui/p-03b0ed5a.entry.js +1 -0
  223. package/dist/ezui/{p-5b205c80.entry.js → p-044d46d5.entry.js} +1 -1
  224. package/dist/ezui/p-0cfbbe82.entry.js +1 -0
  225. package/dist/ezui/{p-77a4bd35.entry.js → p-11bfeca3.entry.js} +1 -1
  226. package/dist/ezui/p-2069c78a.entry.js +1 -0
  227. package/dist/ezui/p-23dab72f.entry.js +1 -0
  228. package/dist/ezui/p-24b42f3d.entry.js +1 -0
  229. package/dist/ezui/p-3791d9c8.entry.js +1 -0
  230. package/dist/ezui/p-3885e66e.entry.js +1 -0
  231. package/dist/ezui/p-3af64edd.entry.js +1 -0
  232. package/dist/ezui/p-44b39e81.entry.js +1 -0
  233. package/dist/ezui/p-4818b8ce.entry.js +1 -0
  234. package/dist/ezui/p-5010315a.entry.js +1 -0
  235. package/dist/ezui/p-68b2e579.entry.js +1 -0
  236. package/dist/ezui/{p-1f50fa05.entry.js → p-6b51c9cc.entry.js} +1 -1
  237. package/dist/ezui/p-6d31c43c.entry.js +1 -0
  238. package/dist/ezui/p-6d8b3298.entry.js +1 -0
  239. package/dist/ezui/p-6ec40dec.entry.js +1 -0
  240. package/dist/ezui/{p-5ed81457.entry.js → p-6fc26622.entry.js} +1 -1
  241. package/dist/ezui/p-708b196e.entry.js +1 -0
  242. package/dist/ezui/{p-555c9018.entry.js → p-7567ccdd.entry.js} +1 -1
  243. package/dist/ezui/p-80dfc50b.js +1 -0
  244. package/dist/ezui/{p-1e7a8633.entry.js → p-81461d2f.entry.js} +1 -1
  245. package/dist/ezui/{p-8df1ca33.entry.js → p-82fa4b09.entry.js} +1 -1
  246. package/dist/ezui/p-88c615f0.entry.js +1 -0
  247. package/dist/ezui/p-9066b0b0.entry.js +1 -0
  248. package/dist/ezui/{p-09de35a2.entry.js → p-91ccae0c.entry.js} +1 -1
  249. package/dist/ezui/{p-c0d9c4f8.entry.js → p-92748142.entry.js} +1 -1
  250. package/dist/ezui/p-92fbaf2b.entry.js +1 -0
  251. package/dist/ezui/p-9e5bbe25.entry.js +309 -0
  252. package/dist/ezui/p-9e95bfeb.entry.js +1 -0
  253. package/dist/ezui/p-9fc250d4.entry.js +1 -0
  254. package/dist/ezui/p-a921e3e7.entry.js +1 -0
  255. package/dist/ezui/p-acddfb2e.js +1 -0
  256. package/dist/ezui/p-b22889ea.entry.js +1 -0
  257. package/dist/ezui/{p-17be134a.entry.js → p-b2f6bc0a.entry.js} +1 -1
  258. package/dist/ezui/p-b9282c79.entry.js +1 -0
  259. package/dist/ezui/{p-84e439b9.entry.js → p-bef7daac.entry.js} +1 -1
  260. package/dist/ezui/{p-9f5fa3f9.entry.js → p-c2b20f78.entry.js} +1 -1
  261. package/dist/ezui/p-c96fbbef.entry.js +1 -0
  262. package/dist/ezui/p-ca8936df.entry.js +1 -0
  263. package/dist/ezui/p-cba34702.entry.js +1 -0
  264. package/dist/ezui/p-cf33bc48.entry.js +1 -0
  265. package/dist/ezui/p-cf3b60fd.entry.js +1 -0
  266. package/dist/ezui/p-dc628ed3.js +1 -0
  267. package/dist/ezui/{p-a80b1287.entry.js → p-dfca5946.entry.js} +1 -1
  268. package/dist/ezui/p-e18d9e6a.entry.js +1 -0
  269. package/dist/ezui/p-e3f8660b.entry.js +1 -0
  270. package/dist/ezui/{p-23a36bb6.js → p-e4c7eb39.js} +2 -2
  271. package/dist/ezui/{p-0306dff7.entry.js → p-e6b38ade.entry.js} +1 -1
  272. package/dist/ezui/p-ec7db713.js +1 -0
  273. package/dist/ezui/{p-650e4b6d.entry.js → p-f1c2c19e.entry.js} +1 -1
  274. package/dist/ezui/p-f30e0590.entry.js +1 -0
  275. package/dist/ezui/p-f4da7e1e.entry.js +1 -0
  276. package/dist/ezui/{p-6e429cff.entry.js → p-fc194825.entry.js} +1 -1
  277. package/dist/ezui/p-fcc78b7f.entry.js +1 -0
  278. package/dist/types/components/ez-button/ez-button.d.ts +2 -1
  279. package/dist/types/components/ez-card-item/ez-card-item.d.ts +5 -0
  280. package/dist/types/components/ez-combo-box/ez-combo-box.d.ts +12 -1
  281. package/dist/types/components/ez-date-input/ez-date-input.d.ts +6 -1
  282. package/dist/types/components/ez-date-time-input/ez-date-time-input.d.ts +6 -1
  283. package/dist/types/components/ez-dialog/ez-dialog.d.ts +2 -1
  284. package/dist/types/components/ez-double-list/doubleListHelper.d.ts +10 -0
  285. package/dist/types/components/ez-double-list/ez-double-list.d.ts +87 -0
  286. package/dist/types/components/ez-dropdown/ez-dropdown.d.ts +4 -0
  287. package/dist/types/components/ez-dropdown/structure/DropdownItem.d.ts +1 -1
  288. package/dist/types/components/ez-filter-input/ez-filter-input.d.ts +6 -1
  289. package/dist/types/components/ez-form-view/custom-input/ez-custom-form-input.d.ts +7 -1
  290. package/dist/types/components/ez-form-view/fieldbuilder/templates/DateInput.tpl.d.ts +2 -1
  291. package/dist/types/components/ez-form-view/fieldbuilder/templates/SearchInput.tpl.d.ts +1 -1
  292. package/dist/types/components/ez-form-view/fieldbuilder/templates/TextInput.tpl.d.ts +1 -1
  293. package/dist/types/components/ez-grid/controller/EzGridController.d.ts +71 -4
  294. package/dist/types/components/ez-grid/controller/ag-grid/AgGridController.d.ts +36 -4
  295. package/dist/types/components/ez-grid/controller/ag-grid/DataSource.d.ts +25 -2
  296. package/dist/types/components/ez-grid/controller/ag-grid/GridEditionManager.d.ts +33 -7
  297. package/dist/types/components/ez-grid/controller/ag-grid/components/EzGridCustomCellEditor.d.ts +4 -1
  298. package/dist/types/components/ez-grid/controller/ag-grid/components/EzGridCustomCellRender.d.ts +1 -1
  299. package/dist/types/components/ez-grid/controller/ag-grid/components/EzGridCustomHeader.d.ts +1 -1
  300. package/dist/types/components/ez-grid/controller/ag-grid/components/cellRendererStatus.d.ts +1 -1
  301. package/dist/types/components/ez-grid/controller/ag-grid/components/selectionHeader.d.ts +1 -1
  302. package/dist/types/components/ez-grid/controller/ag-grid/editor/EzCellEditor.d.ts +2 -1
  303. package/dist/types/components/ez-grid/controller/ag-grid/editor/EzCellRender.d.ts +1 -1
  304. package/dist/types/components/ez-grid/controller/ag-grid/editor/IUICellEditor.d.ts +1 -0
  305. package/dist/types/components/ez-grid/controller/ag-grid/mock/Server.d.ts +1 -1
  306. package/dist/types/components/ez-grid/ez-grid.d.ts +54 -1
  307. package/dist/types/components/ez-grid/subcomponents/filter-column.d.ts +0 -11
  308. package/dist/types/components/ez-list/ez-list.d.ts +23 -2
  309. package/dist/types/components/ez-list/ezListHelper.d.ts +20 -0
  310. package/dist/types/components/ez-modal/ez-modal.d.ts +2 -1
  311. package/dist/types/components/ez-number-input/ez-number-input.d.ts +8 -0
  312. package/dist/types/components/ez-popover-plus/ez-popover-plus.d.ts +81 -0
  313. package/dist/types/components/ez-popup/ez-popup.d.ts +8 -1
  314. package/dist/types/components/ez-search/ez-search.d.ts +30 -6
  315. package/dist/types/components/ez-split-button/ez-split-button.d.ts +1 -1
  316. package/dist/types/components/ez-split-panel/ez-split-panel.d.ts +11 -0
  317. package/dist/types/components/ez-split-panel/interfaces/IPanelSizeInfo.d.ts +9 -0
  318. package/dist/types/components/ez-split-panel/structure/item/ez-split-item.d.ts +5 -0
  319. package/dist/types/components/ez-text-area/ez-text-area.d.ts +17 -0
  320. package/dist/types/components/ez-text-input/ez-text-input.d.ts +24 -2
  321. package/dist/types/components/ez-time-input/ez-time-input.d.ts +4 -0
  322. package/dist/types/components/ez-tooltip/ez-tooltip.d.ts +21 -0
  323. package/dist/types/components/ez-tree/ez-tree.d.ts +4 -0
  324. package/dist/types/components/ez-tree/interfaces/ITreeItem.d.ts +1 -0
  325. package/dist/types/components/ez-tree/subcomponents/TreeItem.d.ts +1 -0
  326. package/dist/types/components.d.ts +500 -27
  327. package/dist/types/utils/FocusResolver.d.ts +5 -0
  328. package/dist/types/utils/ResponsiveInputUtils.d.ts +6 -0
  329. package/dist/types/utils/customEditor/interfaces/ICustomEditor.d.ts +2 -0
  330. package/dist/types/utils/form/DataBinder.d.ts +3 -0
  331. package/dist/types/utils/validators/recordvalidator/IInvalidCells.d.ts +5 -0
  332. package/dist/types/utils/validators/recordvalidator/RecordValidationProcessor.d.ts +1 -1
  333. package/package.json +11 -3
  334. package/react/components.d.ts +3 -0
  335. package/react/components.js +3 -0
  336. package/react/components.js.map +1 -1
  337. package/dist/cjs/RecordValidationProcessor-4c893e04.js +0 -102
  338. package/dist/cjs/ez-card-item_3.cjs.entry.js +0 -183
  339. package/dist/cjs/ez-multi-selection-list.cjs.entry.js +0 -186
  340. package/dist/cjs/ez-skeleton.cjs.entry.js +0 -67
  341. package/dist/esm/RecordValidationProcessor-b00b8b77.js +0 -99
  342. package/dist/esm/ez-card-item_3.entry.js +0 -177
  343. package/dist/esm/ez-multi-selection-list.entry.js +0 -182
  344. package/dist/esm/ez-skeleton.entry.js +0 -63
  345. package/dist/ezui/p-04f24913.js +0 -1
  346. package/dist/ezui/p-072e6347.entry.js +0 -1
  347. package/dist/ezui/p-1285c902.entry.js +0 -1
  348. package/dist/ezui/p-13d2fe2d.entry.js +0 -1
  349. package/dist/ezui/p-2097d0cf.entry.js +0 -1
  350. package/dist/ezui/p-32e553e5.entry.js +0 -304
  351. package/dist/ezui/p-34b6916c.entry.js +0 -1
  352. package/dist/ezui/p-3b4eeeb6.entry.js +0 -1
  353. package/dist/ezui/p-3faa2b46.entry.js +0 -1
  354. package/dist/ezui/p-42533ea4.entry.js +0 -1
  355. package/dist/ezui/p-49456b34.entry.js +0 -1
  356. package/dist/ezui/p-4d5235f1.entry.js +0 -1
  357. package/dist/ezui/p-5bd5e68f.entry.js +0 -1
  358. package/dist/ezui/p-784fe207.entry.js +0 -1
  359. package/dist/ezui/p-7922142b.entry.js +0 -1
  360. package/dist/ezui/p-7af81663.entry.js +0 -1
  361. package/dist/ezui/p-7bc07c31.entry.js +0 -1
  362. package/dist/ezui/p-85c8baae.entry.js +0 -1
  363. package/dist/ezui/p-8888d9ed.entry.js +0 -1
  364. package/dist/ezui/p-8f0144f6.entry.js +0 -1
  365. package/dist/ezui/p-9050d2cd.entry.js +0 -1
  366. package/dist/ezui/p-922ac38b.entry.js +0 -1
  367. package/dist/ezui/p-9ab22a07.entry.js +0 -1
  368. package/dist/ezui/p-9e11fc7b.js +0 -1
  369. package/dist/ezui/p-a31b9c90.entry.js +0 -1
  370. package/dist/ezui/p-af95cd16.entry.js +0 -1
  371. package/dist/ezui/p-bae4e180.entry.js +0 -1
  372. package/dist/ezui/p-baf80b13.entry.js +0 -1
  373. package/dist/ezui/p-bc2f844e.entry.js +0 -1
  374. package/dist/ezui/p-bcb53f27.entry.js +0 -1
  375. package/dist/ezui/p-bf79aaa1.entry.js +0 -1
  376. package/dist/ezui/p-d9401ea0.entry.js +0 -1
  377. package/dist/ezui/p-e85c48d7.entry.js +0 -1
  378. package/dist/ezui/p-ecc2c1ec.entry.js +0 -1
  379. package/dist/ezui/p-fcf0acce.entry.js +0 -1
@@ -18,15 +18,18 @@ export class EzSearch {
18
18
  this._visibleOptions = undefined;
19
19
  this._startLoading = false;
20
20
  this._showLoading = true;
21
+ this._showLoadingDescription = false;
21
22
  this._criteria = undefined;
22
23
  this.value = undefined;
23
24
  this.label = undefined;
24
25
  this.enabled = true;
25
26
  this.errorMessage = undefined;
26
27
  this.optionLoader = undefined;
28
+ this.contextProperties = undefined;
27
29
  this.showSelectedValue = true;
28
30
  this.showOptionValue = true;
29
31
  this.suppressEmptyOption = false;
32
+ this.stopPropagateEnterKeyEvent = false;
30
33
  this.mode = "regular";
31
34
  this.canShowError = true;
32
35
  this.hideErrorOnFocusOut = true;
@@ -35,7 +38,9 @@ export class EzSearch {
35
38
  this.ignoreLimitCharsToSearch = false;
36
39
  this.options = undefined;
37
40
  this.suppressSearch = false;
38
- this.fromGrid = false;
41
+ this.ensureClearButtonVisible = false;
42
+ this.suppressPreLoad = true;
43
+ this.autoFocus = false;
39
44
  }
40
45
  observeErrorMessage() {
41
46
  var _a;
@@ -46,12 +51,21 @@ export class EzSearch {
46
51
  }
47
52
  }
48
53
  }
54
+ getValue(val) {
55
+ return typeof val === 'object' ? val === null || val === void 0 ? void 0 : val.value : val;
56
+ }
49
57
  validateNewValue(newValue, oldValue) {
50
- const getValue = (val) => typeof val === 'object' ? val === null || val === void 0 ? void 0 : val.value : val;
51
- return (getValue(newValue) !== getValue(oldValue));
58
+ const parsedNewValue = this.getValue(newValue);
59
+ const parsedOldValue = this.getValue(oldValue);
60
+ const newValueIsValid = parsedNewValue !== "[object Object]";
61
+ const valuesIsDifferent = parsedNewValue !== parsedOldValue;
62
+ if (newValueIsValid && valuesIsDifferent) {
63
+ return true;
64
+ }
65
+ return false;
52
66
  }
53
67
  async observeValue(newValue, oldValue) {
54
- if (this._textInput && newValue !== oldValue && this.validateNewValue(newValue, oldValue)) {
68
+ if (this._textInput && this.validateNewValue(newValue, oldValue)) {
55
69
  if (typeof newValue === "string") {
56
70
  await this.handleValueAsString(newValue);
57
71
  return;
@@ -68,7 +82,7 @@ export class EzSearch {
68
82
  }
69
83
  }
70
84
  observeOptions(newOptions, oldOptions) {
71
- if (!newOptions.length && this.fromGrid)
85
+ if (!newOptions.length && this.suppressPreLoad)
72
86
  return;
73
87
  if ((newOptions === null || newOptions === void 0 ? void 0 : newOptions.join('')) === (oldOptions === null || oldOptions === void 0 ? void 0 : oldOptions.join('')))
74
88
  return;
@@ -94,9 +108,9 @@ export class EzSearch {
94
108
  /**
95
109
  * Aplica o foco no campo.
96
110
  */
97
- async setFocus() {
111
+ async setFocus(options) {
98
112
  if (this._textInput) {
99
- this._textInput.setFocus();
113
+ this._textInput.setFocus(options);
100
114
  }
101
115
  }
102
116
  /**
@@ -139,6 +153,9 @@ export class EzSearch {
139
153
  return;
140
154
  }
141
155
  await this.loadDescriptionValue(value);
156
+ if (!this._currentValue) {
157
+ return;
158
+ }
142
159
  this.setInputValue();
143
160
  this.ezChange.emit(this.value);
144
161
  this._currentValue = this.value;
@@ -183,7 +200,7 @@ export class EzSearch {
183
200
  return this.listOptionsPosition;
184
201
  }
185
202
  return {
186
- verticalPosition: (this.errorMessage || !this.canShowError || this.mode === "slim") ? 6 : -13
203
+ verticalPosition: 6
187
204
  };
188
205
  }
189
206
  isDifferentValues(firstValue, secondValue) {
@@ -193,13 +210,16 @@ export class EzSearch {
193
210
  if (currentValue == undefined) {
194
211
  return;
195
212
  }
196
- let text = (!this.showSelectedValue || currentValue.value == undefined) ? currentValue.label : `${currentValue.value} - ${currentValue.label}`;
197
- text = text.replace(new RegExp(this._startHighlightTag, 'g'), '').replace(new RegExp(this._endHighlightTag, 'g'), '');
213
+ let text = (!this.showSelectedValue || currentValue.value == undefined) ? currentValue.label : currentValue.label ? `${currentValue.value} - ${currentValue.label}` : currentValue.value;
214
+ text = text === null || text === void 0 ? void 0 : text.replace(new RegExp(this._startHighlightTag, 'g'), '').replace(new RegExp(this._endHighlightTag, 'g'), '');
198
215
  return text;
199
216
  }
200
217
  getText() {
201
218
  const currentValue = this.getSelectedOption(this._currentValue);
202
219
  const text = this.getFormattedText(currentValue);
220
+ return this.replaceQuotes(text);
221
+ }
222
+ replaceQuotes(text) {
203
223
  if (text == undefined) {
204
224
  return;
205
225
  }
@@ -270,7 +290,7 @@ export class EzSearch {
270
290
  title: opt.label,
271
291
  details: opt.details
272
292
  };
273
- return h("div", { style: { "height": "100%" }, class: index === this._preSelection ? "item preselected" : "item", id: `item_${opt.value}`, onMouseDown: () => this.createOption(card), onMouseOver: () => this._preSelection = index }, h("ez-card-item", { item: card }));
293
+ return h("div", { style: { "height": "100%" }, class: index === this._preSelection ? "item preselected" : "item", id: `item_${opt.value}`, onMouseDown: () => this.createOption(card), onMouseOver: () => this._preSelection = index }, h("ez-card-item", { item: card, compacted: true, enableKey: this.showOptionValue }));
274
294
  }
275
295
  showOptions() {
276
296
  if (!this.enabled)
@@ -335,10 +355,13 @@ export class EzSearch {
335
355
  this._startLoading = false;
336
356
  if (source instanceof Promise) {
337
357
  this._showLoading = true;
358
+ this._showLoadingDescription = true;
338
359
  source.then(result => {
339
- this._showLoading = false;
340
360
  this.updateSource(result);
341
- }).catch(() => this._showLoading = false);
361
+ }).finally(() => {
362
+ this._showLoading = false;
363
+ this._showLoadingDescription = false;
364
+ });
342
365
  this.updateVisibleOptions();
343
366
  }
344
367
  else {
@@ -348,7 +371,7 @@ export class EzSearch {
348
371
  this.updateVisibleOptions();
349
372
  if (this._tabPressed) {
350
373
  this._tabPressed = false;
351
- this.controlEmptySearch();
374
+ this.controlEmptySearch(false);
352
375
  }
353
376
  }
354
377
  else {
@@ -363,15 +386,17 @@ export class EzSearch {
363
386
  replaceHighlight(value) {
364
387
  const startHighlight = new RegExp(this._startHighlightTag, 'g');
365
388
  const endHighlight = new RegExp(this._endHighlightTag, 'g');
366
- return (value !== null && value !== void 0 ? value : "").replace(startHighlight, '').replace(endHighlight, '');
389
+ const newValue = String(value !== null && value !== void 0 ? value : "").replace(startHighlight, '').replace(endHighlight, '');
390
+ return this.replaceQuotes(newValue);
367
391
  }
368
- selectOption(newOption) {
392
+ selectOption(newOption, focusOnInput = true) {
369
393
  var _a, _b;
370
394
  const currentValue = this.getSelectedOption(this.value);
371
395
  const newOptionsReplaced = Object.assign(Object.assign({}, newOption), { value: this.replaceHighlight(newOption === null || newOption === void 0 ? void 0 : newOption.value), label: this.replaceHighlight(newOption === null || newOption === void 0 ? void 0 : newOption.label) });
372
- if ((((_a = currentValue === null || currentValue === void 0 ? void 0 : currentValue.value) === null || _a === void 0 ? void 0 : _a.toString()) !== ((_b = newOptionsReplaced === null || newOptionsReplaced === void 0 ? void 0 : newOptionsReplaced.value) === null || _b === void 0 ? void 0 : _b.toString()))
373
- || (currentValue == undefined && newOptionsReplaced != undefined && "value" in newOptionsReplaced)) {
374
- const adjustedOpt = !(newOptionsReplaced === null || newOptionsReplaced === void 0 ? void 0 : newOptionsReplaced.value) ? undefined : newOptionsReplaced;
396
+ const newOptionsFormatted = Object.assign(Object.assign({}, newOptionsReplaced), { value: this.replaceQuotes(newOptionsReplaced === null || newOptionsReplaced === void 0 ? void 0 : newOptionsReplaced.value), label: this.replaceQuotes(newOptionsReplaced === null || newOptionsReplaced === void 0 ? void 0 : newOptionsReplaced.label) });
397
+ if ((((_a = currentValue === null || currentValue === void 0 ? void 0 : currentValue.value) === null || _a === void 0 ? void 0 : _a.toString()) !== ((_b = newOptionsFormatted === null || newOptionsFormatted === void 0 ? void 0 : newOptionsFormatted.value) === null || _b === void 0 ? void 0 : _b.toString()))
398
+ || (currentValue == undefined && newOptionsFormatted != undefined && "value" in newOptionsFormatted)) {
399
+ const adjustedOpt = !(newOptionsFormatted === null || newOptionsFormatted === void 0 ? void 0 : newOptionsFormatted.value) ? undefined : newOptionsFormatted;
375
400
  this.value = adjustedOpt;
376
401
  this._currentValue = adjustedOpt;
377
402
  }
@@ -381,13 +406,18 @@ export class EzSearch {
381
406
  }
382
407
  this._visibleOptions = [];
383
408
  this.clearSource();
409
+ if (focusOnInput) {
410
+ setTimeout(() => {
411
+ this.setFocus();
412
+ }, 0);
413
+ }
384
414
  }
385
415
  loadOptions(mode, argument = "") {
386
416
  this._criteria = argument;
387
417
  this._startLoading = true;
388
418
  if (this.optionLoader) {
389
419
  const searchArgument = { mode, argument };
390
- this.updateSource(this.optionLoader(searchArgument));
420
+ this.updateSource(this.optionLoader(searchArgument, this.contextProperties));
391
421
  }
392
422
  else {
393
423
  this.updateSource(this.options);
@@ -417,7 +447,7 @@ export class EzSearch {
417
447
  this.value = null;
418
448
  this._currentValue = null;
419
449
  }
420
- controlListWithOnlyOne() {
450
+ controlListWithOnlyOne(focusOnInput = true) {
421
451
  var _a, _b;
422
452
  const source = (_a = this._visibleOptions) === null || _a === void 0 ? void 0 : _a.filter((opt) => opt.label !== "" && opt.value != undefined);
423
453
  if ((source === null || source === void 0 ? void 0 : source.length) > 0) {
@@ -428,31 +458,18 @@ export class EzSearch {
428
458
  value: (_b = source[0].value) === null || _b === void 0 ? void 0 : _b.replace(startHighlight, '').replace(endHighlight, ''),
429
459
  label: title === null || title === void 0 ? void 0 : title.replace(startHighlight, '').replace(endHighlight, '')
430
460
  };
431
- this.selectOption(option);
461
+ this.selectOption(option, focusOnInput);
432
462
  }
433
463
  }
434
- controlEmptySearch() {
464
+ controlEmptySearch(focusOnInput = true) {
435
465
  var _a;
436
466
  if (!((_a = this._visibleOptions) === null || _a === void 0 ? void 0 : _a.length)) {
437
467
  this.clearSearch();
438
468
  ApplicationUtils.info(this._textEmptyList);
439
469
  }
440
470
  else {
441
- this.controlListWithOnlyOne();
442
- }
443
- }
444
- validateDescriptionValue() {
445
- if (StringUtils.isEmpty(this.value)) {
446
- return;
447
- }
448
- if (!this.validateNewValue(this.value, this._currentValue)) {
449
- return;
471
+ this.controlListWithOnlyOne(focusOnInput);
450
472
  }
451
- let value = this.value;
452
- if (typeof value === "object") {
453
- return;
454
- }
455
- this.loadDescriptionValue(value);
456
473
  }
457
474
  async loadDescriptionValue(argument) {
458
475
  var _a, _b;
@@ -467,7 +484,7 @@ export class EzSearch {
467
484
  mode: SearchMode.PREDICTIVE,
468
485
  argument
469
486
  };
470
- const source = await ((_b = this.optionLoader) === null || _b === void 0 ? void 0 : _b.call(this, searchArgument));
487
+ const source = await ((_b = this.optionLoader) === null || _b === void 0 ? void 0 : _b.call(this, searchArgument, this.contextProperties));
471
488
  if (source == undefined) {
472
489
  return;
473
490
  }
@@ -488,6 +505,15 @@ export class EzSearch {
488
505
  }
489
506
  this._currentValue = value ? Object.assign(Object.assign({}, value), { value: this.replaceHighlight(value.value), label: this.replaceHighlight(value.label) }) : value;
490
507
  this.value = this._currentValue;
508
+ this.setTextInputValue();
509
+ }
510
+ setTextInputValue() {
511
+ if (this._textInput && (this._textInput.value === null || this._textInput.value === undefined)) {
512
+ if (this.value === undefined || this.value === null)
513
+ return;
514
+ const textValue = (typeof this.value === 'string') ? this.value : this.getFormattedText(this.value);
515
+ this._textInput.value = this.replaceQuotes(textValue);
516
+ }
491
517
  }
492
518
  loadOptionValue(argument) {
493
519
  var _a;
@@ -513,6 +539,19 @@ export class EzSearch {
513
539
  this._preSelection = undefined;
514
540
  this.updateVisibleOptions();
515
541
  }
542
+ async handleInitialValue() {
543
+ const valueIsValid = !!this.getValue(this.value);
544
+ if (!valueIsValid) {
545
+ return;
546
+ }
547
+ if (typeof this.value === "string") {
548
+ await this.handleValueAsString(this.value);
549
+ return;
550
+ }
551
+ let text = this.getFormattedText(this.value);
552
+ text = this.replaceQuotes(text);
553
+ this._textInput.value = text;
554
+ }
516
555
  //---------------------------------------------
517
556
  // Lifecycle web component
518
557
  //---------------------------------------------
@@ -543,12 +582,10 @@ export class EzSearch {
543
582
  (_a = this._optionsList) === null || _a === void 0 ? void 0 : _a.querySelectorAll(".item").forEach((elem) => {
544
583
  ElementIDUtils.addIDInfoIfNotExists(elem, "itemSearch");
545
584
  });
546
- this.validateDescriptionValue();
547
585
  }
548
- componentDidLoad() {
586
+ async componentDidLoad() {
549
587
  this._currentValue = this.value;
550
588
  CSSVarsUtils.applyVarsTextInput(this.el, this._textInput);
551
- this.setInputValue(false);
552
589
  this._resizeObserver = new ResizeObserver((entries) => {
553
590
  window.requestAnimationFrame(() => {
554
591
  if (!Array.isArray(entries) || !entries.length)
@@ -559,6 +596,16 @@ export class EzSearch {
559
596
  }
560
597
  });
561
598
  });
599
+ await this.handleInitialValue();
600
+ if (this.autoFocus) {
601
+ requestAnimationFrame(() => {
602
+ this.setFocus({ selectText: true });
603
+ });
604
+ }
605
+ }
606
+ disconnectedCallback() {
607
+ var _a;
608
+ (_a = this._resizeObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
562
609
  }
563
610
  //---------------------------------------------
564
611
  // Event handlers
@@ -590,7 +637,7 @@ export class EzSearch {
590
637
  if (argument) {
591
638
  this._showLoading = false;
592
639
  this.clearSource();
593
- if (!isNaN(argumentNumber) || argument.length >= this._limitCharsToSearch) {
640
+ if (this.ignoreLimitCharsToSearch || !isNaN(argumentNumber) || argument.length >= this._limitCharsToSearch) {
594
641
  this._showLoading = true;
595
642
  this._changeDeboucingTimeout = window.setTimeout(() => {
596
643
  this.loadOptions(SearchMode.PREDICTIVE, isNaN(argumentNumber) ? argument : argumentNumber.toString());
@@ -628,14 +675,19 @@ export class EzSearch {
628
675
  }
629
676
  switch (event.key) {
630
677
  case "ArrowDown":
631
- this.nextOption();
632
678
  event.stopPropagation();
679
+ if (this.canShowListOptions())
680
+ event.preventDefault();
681
+ this.nextOption();
633
682
  break;
634
683
  case "ArrowUp":
635
- this.previousOption();
636
684
  event.stopPropagation();
685
+ if (this.canShowListOptions())
686
+ event.preventDefault();
687
+ this.previousOption();
637
688
  break;
638
689
  case "Enter":
690
+ this.handleEventPropagation(event);
639
691
  this.selectCurrentOption();
640
692
  break;
641
693
  case "Escape":
@@ -643,7 +695,7 @@ export class EzSearch {
643
695
  break;
644
696
  case "Tab":
645
697
  this._tabPressed = true;
646
- this.controlListWithOnlyOne();
698
+ this.controlListWithOnlyOne(false);
647
699
  break;
648
700
  }
649
701
  //ATENÇÃO: Existe a necessidade de propagar o evento de teclado.
@@ -652,6 +704,12 @@ export class EzSearch {
652
704
  //e o contexto pode reagir (fechar um popup por exemplo).
653
705
  //event.stopPropagation();
654
706
  }
707
+ //O evento deve ter sua propagação interrompida, apenas se a lista de opções estiver sendo exibida.
708
+ handleEventPropagation(event) {
709
+ if (this._listContainer.hasChildNodes() && this.stopPropagateEnterKeyEvent) {
710
+ event.stopPropagation();
711
+ }
712
+ }
655
713
  onTextInputFocusOutHandler() {
656
714
  if (this.hideErrorOnFocusOut)
657
715
  this.cancelPreselection();
@@ -659,10 +717,13 @@ export class EzSearch {
659
717
  canShowListOptions() {
660
718
  return !this._showLoading && this._visibleOptions.length > 0;
661
719
  }
720
+ canShowLoadSpinDescription() {
721
+ return this._showLoadingDescription && this._floatingID == undefined;
722
+ }
662
723
  render() {
663
724
  var _a;
664
725
  ElementIDUtils.addIDInfoIfNotExists(this.el, 'input');
665
- 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), 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: "leftIcon", disabled: !this.enabled, tabindex: -1, onClick: () => this.handlerIconClick() }, h("ez-icon", { iconName: "search" })), (((_a = this._textInput) === null || _a === void 0 ? void 0 : _a.value) && (this._criteria || this.value) || this.fromGrid)
726
+ 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), 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: "leftIcon", disabled: !this.enabled, tabindex: -1, onClick: () => this.handlerIconClick() }, this.canShowLoadSpinDescription() ? h("div", { class: "message__loading" }) : h("ez-icon", { iconName: "search" })), (((_a = this._textInput) === null || _a === void 0 ? void 0 : _a.value) && (this._criteria || this.value) || this.ensureClearButtonVisible)
666
727
  ? h("button", { class: "btn btn__close", slot: "rightIcon", disabled: !this.enabled, tabindex: -1, onClick: () => this.clearSearch() }, h("ez-icon", { iconName: "close" }))
667
728
  : undefined), 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
668
729
  && this._visibleOptions.length === 0
@@ -760,8 +821,8 @@ export class EzSearch {
760
821
  "type": "unknown",
761
822
  "mutable": false,
762
823
  "complexType": {
763
- "original": "(argument: ISearchArgument) => Promise<Array<IOption>> | Array<IOption> | IOption",
764
- "resolved": "(argument: ISearchArgument) => IOption | IOption[] | Promise<IOption[]>",
824
+ "original": "(argument: ISearchArgument, ctxProperties?: any) => Promise<Array<IOption>> | Array<IOption> | IOption",
825
+ "resolved": "(argument: ISearchArgument, ctxProperties?: any) => IOption | IOption[] | Promise<IOption[]>",
765
826
  "references": {
766
827
  "ISearchArgument": {
767
828
  "location": "local"
@@ -784,6 +845,23 @@ export class EzSearch {
784
845
  "text": "Carrega as op\u00E7\u00F5es dinamicamente."
785
846
  }
786
847
  },
848
+ "contextProperties": {
849
+ "type": "any",
850
+ "mutable": false,
851
+ "complexType": {
852
+ "original": "any",
853
+ "resolved": "any",
854
+ "references": {}
855
+ },
856
+ "required": false,
857
+ "optional": true,
858
+ "docs": {
859
+ "tags": [],
860
+ "text": "Propriedades de contexto da aplica\u00E7\u00E3o."
861
+ },
862
+ "attribute": "context-properties",
863
+ "reflect": false
864
+ },
787
865
  "showSelectedValue": {
788
866
  "type": "boolean",
789
867
  "mutable": false,
@@ -838,6 +916,24 @@ export class EzSearch {
838
916
  "reflect": false,
839
917
  "defaultValue": "false"
840
918
  },
919
+ "stopPropagateEnterKeyEvent": {
920
+ "type": "boolean",
921
+ "mutable": false,
922
+ "complexType": {
923
+ "original": "boolean",
924
+ "resolved": "boolean",
925
+ "references": {}
926
+ },
927
+ "required": false,
928
+ "optional": false,
929
+ "docs": {
930
+ "tags": [],
931
+ "text": "Se true, ineterrompe a propaga\u00E7\u00E3o do evento de KeyDown da tecla enter"
932
+ },
933
+ "attribute": "stop-propagate-enter-key-event",
934
+ "reflect": false,
935
+ "defaultValue": "false"
936
+ },
841
937
  "mode": {
842
938
  "type": "string",
843
939
  "mutable": false,
@@ -988,7 +1084,7 @@ export class EzSearch {
988
1084
  "reflect": false,
989
1085
  "defaultValue": "false"
990
1086
  },
991
- "fromGrid": {
1087
+ "ensureClearButtonVisible": {
992
1088
  "type": "boolean",
993
1089
  "mutable": false,
994
1090
  "complexType": {
@@ -1000,9 +1096,45 @@ export class EzSearch {
1000
1096
  "optional": false,
1001
1097
  "docs": {
1002
1098
  "tags": [],
1003
- "text": "Informa se o componente est\u00E1 instanciado de dentro de uma grade"
1099
+ "text": "Garante que o bot\u00E3o de limpar pesquisa est\u00E1 sempre vis\u00EDvel"
1004
1100
  },
1005
- "attribute": "from-grid",
1101
+ "attribute": "ensure-clear-button-visible",
1102
+ "reflect": false,
1103
+ "defaultValue": "false"
1104
+ },
1105
+ "suppressPreLoad": {
1106
+ "type": "boolean",
1107
+ "mutable": false,
1108
+ "complexType": {
1109
+ "original": "boolean",
1110
+ "resolved": "boolean",
1111
+ "references": {}
1112
+ },
1113
+ "required": false,
1114
+ "optional": false,
1115
+ "docs": {
1116
+ "tags": [],
1117
+ "text": "Se true, desabilita pr\u00E9-load das op\u00E7\u00F5es ao carregar componente"
1118
+ },
1119
+ "attribute": "suppress-pre-load",
1120
+ "reflect": false,
1121
+ "defaultValue": "true"
1122
+ },
1123
+ "autoFocus": {
1124
+ "type": "boolean",
1125
+ "mutable": false,
1126
+ "complexType": {
1127
+ "original": "boolean",
1128
+ "resolved": "boolean",
1129
+ "references": {}
1130
+ },
1131
+ "required": false,
1132
+ "optional": false,
1133
+ "docs": {
1134
+ "tags": [],
1135
+ "text": "Se true o campo de texto receber\u00E1 o foco ao ser renderizado."
1136
+ },
1137
+ "attribute": "auto-focus",
1006
1138
  "reflect": false,
1007
1139
  "defaultValue": "false"
1008
1140
  }
@@ -1014,6 +1146,7 @@ export class EzSearch {
1014
1146
  "_visibleOptions": {},
1015
1147
  "_startLoading": {},
1016
1148
  "_showLoading": {},
1149
+ "_showLoadingDescription": {},
1017
1150
  "_criteria": {}
1018
1151
  };
1019
1152
  }
@@ -1059,11 +1192,18 @@ export class EzSearch {
1059
1192
  },
1060
1193
  "setFocus": {
1061
1194
  "complexType": {
1062
- "signature": "() => Promise<void>",
1063
- "parameters": [],
1195
+ "signature": "(options?: TFocusOptions) => Promise<void>",
1196
+ "parameters": [{
1197
+ "tags": [],
1198
+ "text": ""
1199
+ }],
1064
1200
  "references": {
1065
1201
  "Promise": {
1066
1202
  "location": "global"
1203
+ },
1204
+ "TFocusOptions": {
1205
+ "location": "import",
1206
+ "path": "../ez-text-input/ez-text-input"
1067
1207
  }
1068
1208
  },
1069
1209
  "return": "Promise<void>"
@@ -8,6 +8,8 @@
8
8
  --ez-sidebar-button--hover--width: 12px;
9
9
  /*@doc Define a altura do span do botão.*/
10
10
  --ez-sidebar-button--height: 96px;
11
+ /*@doc Define a camada em que o componente será exibido.*/
12
+ --ez-sidebar-navigator-button--z-index: var(--elevation--20, 20);
11
13
 
12
14
  /* cor */
13
15
  /*@doc Define a cor de fundo do botão.*/
@@ -35,6 +37,7 @@
35
37
  }
36
38
 
37
39
  button {
40
+ z-index: var(--ez-sidebar-navigator-button--z-index);
38
41
  position: absolute;
39
42
  display: flex;
40
43
  background: var(--ez-sidebar-button--background-color--xlight);
@@ -11,7 +11,7 @@ export class EzSidebarButton {
11
11
  }
12
12
  }
13
13
  render() {
14
- return (h("button", { type: "button", onClick: () => { this.ezClick.emit(); }, ref: (el) => this._button = el }, h("span", null), h("ez-icon", { iconName: "chevron-right" })));
14
+ return (h("button", { type: "button", onClick: () => { this.ezClick.emit(); }, ref: (el) => this._button = el }, h("span", null), h("ez-icon", { iconName: "chevron-right", size: "small" })));
15
15
  }
16
16
  static get is() { return "ez-sidebar-button"; }
17
17
  static get encapsulation() { return "shadow"; }
@@ -14,6 +14,8 @@
14
14
  --ez-sidebar-navigator--border-radius: 0px var(--border--radius-medium) var(--border--radius-medium) 0px;
15
15
  /*@doc Força uma altura especifica para o sidebar, o padrão é 100% da tela*/
16
16
  --ez-sidebar-navigator--height: calc(100vh - var(--space--lg, 24px));
17
+ /*@doc Define a camada em que o componente será exibido.*/
18
+ --ez-sidebar-navigator--z-index: var(--elevation--20, 20);
17
19
 
18
20
  /*Labels Header */
19
21
  /*@doc Define o espaçamento entre os componente do cabeçalho*/
@@ -53,6 +55,7 @@
53
55
  height: var(--ez-sidebar-navigator--height);
54
56
  padding-top: var(--space--xs, 12px);
55
57
  padding-bottom: var(--space--xs, 12px);
58
+ outline: none;
56
59
 
57
60
  /* public */
58
61
  gap: var(--ez-sidebar-navigator--gap);
@@ -124,7 +127,7 @@
124
127
 
125
128
  .dynamic {
126
129
  position: absolute;
127
- z-index: var(--most-visible , 4);
130
+ z-index: var(--ez-sidebar-navigator--z-index);
128
131
  }
129
132
 
130
133
  .fixed {