@sankhyalabs/ezui 0.0.0-bugfix-dev-KB-132151.1 → 0.0.0-bugfix-dev-KB-157120.0

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 (319) hide show
  1. package/dist/cjs/{ApplicationUtils-006ca96f.js → ApplicationUtils-88dfe345.js} +1 -1
  2. package/dist/cjs/{app-globals-5cb12916.js → app-globals-c1d07d68.js} +1 -1
  3. package/dist/cjs/{classic-search-list_7.cjs.entry.js → classic-search-list_8.cjs.entry.js} +202 -4
  4. package/dist/cjs/ez-actions-button.cjs.entry.js +2 -2
  5. package/dist/cjs/ez-alert-list.cjs.entry.js +1 -1
  6. package/dist/cjs/ez-avatar.cjs.entry.js +1 -1
  7. package/dist/cjs/ez-calendar.cjs.entry.js +1 -1
  8. package/dist/cjs/ez-classic-combo-box.cjs.entry.js +4 -2
  9. package/dist/cjs/ez-classic-date-input.cjs.entry.js +2 -2
  10. package/dist/cjs/ez-classic-date-time-input.cjs.entry.js +1 -1
  11. package/dist/cjs/ez-classic-input.cjs.entry.js +49 -3
  12. package/dist/cjs/ez-classic-number-input.cjs.entry.js +1 -1
  13. package/dist/cjs/ez-classic-search-plus.cjs.entry.js +26 -13
  14. package/dist/cjs/ez-classic-search.cjs.entry.js +2 -2
  15. package/dist/cjs/ez-classic-text-area.cjs.entry.js +12 -1
  16. package/dist/cjs/ez-classic-time-input.cjs.entry.js +4 -3
  17. package/dist/cjs/ez-collapsible-box.cjs.entry.js +2 -2
  18. package/dist/cjs/ez-combo-box.cjs.entry.js +7 -2
  19. package/dist/cjs/ez-date-input.cjs.entry.js +1 -1
  20. package/dist/cjs/ez-date-time-input.cjs.entry.js +1 -1
  21. package/dist/cjs/ez-dialog.cjs.entry.js +1 -1
  22. package/dist/cjs/ez-double-list.cjs.entry.js +1 -1
  23. package/dist/cjs/ez-dropdown.cjs.entry.js +1 -1
  24. package/dist/cjs/ez-empty-card.cjs.entry.js +1 -1
  25. package/dist/cjs/ez-file-item.cjs.entry.js +1 -1
  26. package/dist/cjs/ez-form-view.cjs.entry.js +20 -1
  27. package/dist/cjs/ez-form.cjs.entry.js +65 -43
  28. package/dist/cjs/ez-grid-pagination.cjs.entry.js +227 -0
  29. package/dist/cjs/ez-grid.cjs.entry.js +235 -172
  30. package/dist/cjs/ez-guide-navigator.cjs.entry.js +1 -1
  31. package/dist/cjs/ez-icon.cjs.entry.js +1 -1
  32. package/dist/cjs/ez-link-builder_6.cjs.entry.js +1 -1
  33. package/dist/cjs/ez-list.cjs.entry.js +1 -1
  34. package/dist/cjs/ez-modal-container.cjs.entry.js +1 -1
  35. package/dist/cjs/ez-modal.cjs.entry.js +1 -1
  36. package/dist/cjs/ez-multi-selection-list_5.cjs.entry.js +675 -0
  37. package/dist/cjs/ez-number-input.cjs.entry.js +1 -1
  38. package/dist/cjs/ez-pagination.cjs.entry.js +1 -1
  39. package/dist/cjs/ez-popup.cjs.entry.js +4 -5
  40. package/dist/cjs/ez-record-navigation.cjs.entry.js +121 -0
  41. package/dist/cjs/ez-scroller_2.cjs.entry.js +81 -14
  42. package/dist/cjs/ez-search-plus.cjs.entry.js +25 -11
  43. package/dist/cjs/ez-search-result-list.cjs.entry.js +1 -1
  44. package/dist/cjs/ez-search.cjs.entry.js +11 -4
  45. package/dist/cjs/ez-sidebar-navigator.cjs.entry.js +1 -1
  46. package/dist/cjs/ez-skeleton.cjs.entry.js +1 -1
  47. package/dist/cjs/ez-sortable-list.cjs.entry.js +99 -114
  48. package/dist/cjs/ez-spinner.cjs.entry.js +1 -1
  49. package/dist/cjs/ez-split-button.cjs.entry.js +16 -17
  50. package/dist/cjs/ez-split-item.cjs.entry.js +2 -2
  51. package/dist/cjs/ez-tabselector.cjs.entry.js +209 -61
  52. package/dist/cjs/ez-text-input.cjs.entry.js +21 -15
  53. package/dist/cjs/ez-time-input.cjs.entry.js +1 -1
  54. package/dist/cjs/ez-tooltip.cjs.entry.js +46 -8
  55. package/dist/cjs/ez-tree.cjs.entry.js +1 -1
  56. package/dist/cjs/ez-upload.cjs.entry.js +2 -2
  57. package/dist/cjs/ezui.cjs.js +3 -3
  58. package/dist/cjs/filter-column.cjs.entry.js +9 -3
  59. package/dist/cjs/{floating-ui.dom.esm-f4d87617.js → floating-ui.dom.esm-9c8bfebb.js} +258 -119
  60. package/dist/cjs/{index-350d0fa0.js → index-9739c242.js} +91 -30
  61. package/dist/cjs/index-a7b0c73d.js +16 -16
  62. package/dist/cjs/loader.cjs.js +3 -3
  63. package/dist/cjs/{search-column-4bb1cdb7.js → search-column-6e90fb19.js} +24 -10
  64. package/dist/collection/collection-manifest.json +8 -0
  65. package/dist/collection/components/ez-classic-combo-box/ez-classic-combo-box.js +21 -2
  66. package/dist/collection/components/ez-classic-date-input/ez-classic-date-input.js +1 -1
  67. package/dist/collection/components/ez-classic-input/ez-classic-input.js +47 -2
  68. package/dist/collection/components/ez-classic-input/utils/maskFormatter.js +2 -1
  69. package/dist/collection/components/ez-classic-search-plus/ez-classic-search-plus.css +22 -0
  70. package/dist/collection/components/ez-classic-search-plus/ez-classic-search-plus.js +26 -11
  71. package/dist/collection/components/ez-classic-text-area/ez-classic-text-area.js +32 -1
  72. package/dist/collection/components/ez-classic-time-input/ez-classic-time-input.js +3 -2
  73. package/dist/collection/components/ez-combo-box/ez-combo-box.js +5 -0
  74. package/dist/collection/components/ez-dropdown/ez-dropdown.css +2 -2
  75. package/dist/collection/components/ez-empty-card/ez-empty-card.js +7 -7
  76. package/dist/collection/components/ez-form-view/fieldbuilder/FieldBuilder.js +2 -0
  77. package/dist/collection/components/ez-form-view/fieldbuilder/templates/MultiSelectInput.tpl.js +17 -0
  78. package/dist/collection/components/ez-grid/controller/ag-grid/AgGridController.js +163 -27
  79. package/dist/collection/components/ez-grid/controller/ag-grid/DataSource.js +8 -1
  80. package/dist/collection/components/ez-grid/controller/ag-grid/gridColumnDefaultWidths.js +23 -0
  81. package/dist/collection/components/ez-grid/controller/ag-grid/utils/AggFunctionResolver.js +24 -0
  82. package/dist/collection/components/ez-grid/ez-grid.css +5 -60
  83. package/dist/collection/components/ez-grid/ez-grid.js +52 -150
  84. package/dist/collection/components/ez-grid/interfaces/IAggegationFunc.js +1 -0
  85. package/dist/collection/components/ez-grid/subcomponents/filter-column.css +10 -0
  86. package/dist/collection/components/ez-grid/subcomponents/filter-column.js +7 -1
  87. package/dist/collection/components/ez-grid/subcomponents/selection-counter.js +1 -1
  88. package/dist/collection/components/ez-grid/utils/index.js +1 -0
  89. package/dist/collection/components/ez-grid-pagination/ez-grid-pagination.css +111 -0
  90. package/dist/collection/components/ez-grid-pagination/ez-grid-pagination.js +410 -0
  91. package/dist/collection/components/ez-icon/ez-icon.css +1153 -1146
  92. package/dist/collection/components/ez-image-input/ez-image-input.css +24 -8
  93. package/dist/collection/components/ez-image-input/ez-image-input.js +6 -1
  94. package/dist/collection/components/ez-multi-select-input/ez-multi-select-input.css +221 -0
  95. package/dist/collection/components/ez-multi-select-input/ez-multi-select-input.js +555 -0
  96. package/dist/collection/components/ez-multi-selection-list/ez-multi-selection-list.css +27 -6
  97. package/dist/collection/components/ez-multi-selection-list/ez-multi-selection-list.js +66 -10
  98. package/dist/collection/components/ez-popover-plus/ez-popover-plus.js +20 -0
  99. package/dist/collection/components/ez-popover-plus/subcomponent/ez-popover-core.js +36 -2
  100. package/dist/collection/components/ez-popup/ez-popup.js +3 -4
  101. package/dist/collection/components/ez-record-navigation/ez-record-navigation.css +51 -0
  102. package/dist/collection/components/ez-record-navigation/ez-record-navigation.js +246 -0
  103. package/dist/collection/components/ez-scroller/EzScrollNavigationMode.js +5 -0
  104. package/dist/collection/components/ez-scroller/ez-scroller.css +117 -11
  105. package/dist/collection/components/ez-scroller/ez-scroller.js +118 -13
  106. package/dist/collection/components/ez-search/ez-search.css +4 -0
  107. package/dist/collection/components/ez-search/ez-search.js +22 -1
  108. package/dist/collection/components/ez-search-plus/ez-search-plus.js +38 -10
  109. package/dist/collection/components/ez-sortable-list/ez-sortable-list.css +1 -1
  110. package/dist/collection/components/ez-split-button/ez-split-button.css +1 -1
  111. package/dist/collection/components/ez-split-button/ez-split-button.js +20 -15
  112. package/dist/collection/components/ez-tabselector/ez-tabselector.css +29 -1
  113. package/dist/collection/components/ez-tabselector/ez-tabselector.js +254 -62
  114. package/dist/collection/components/ez-text-input/ez-text-input.js +21 -15
  115. package/dist/collection/components/ez-tooltip/ez-tooltip.js +45 -7
  116. package/dist/collection/utils/form/FormMetadata.js +62 -40
  117. package/dist/collection/utils/i18n/locales/en-us.js +27 -4
  118. package/dist/collection/utils/i18n/locales/es-es.js +27 -4
  119. package/dist/collection/utils/i18n/locales/pt-br.js +27 -4
  120. package/dist/collection/utils/interfaces/AbstractFieldMetadata.js +14 -2
  121. package/dist/collection/utils/searchColumn/search-column.js +8 -6
  122. package/dist/custom-elements/index.d.ts +18 -0
  123. package/dist/custom-elements/index.js +1889 -647
  124. package/dist/esm/{ApplicationUtils-0c5cb207.js → ApplicationUtils-f7721533.js} +1 -1
  125. package/dist/esm/{app-globals-1db10325.js → app-globals-6e258867.js} +1 -1
  126. package/dist/esm/{classic-search-list_7.entry.js → classic-search-list_8.entry.js} +202 -5
  127. package/dist/esm/ez-actions-button.entry.js +2 -2
  128. package/dist/esm/ez-alert-list.entry.js +1 -1
  129. package/dist/esm/ez-avatar.entry.js +1 -1
  130. package/dist/esm/ez-calendar.entry.js +1 -1
  131. package/dist/esm/ez-classic-combo-box.entry.js +4 -2
  132. package/dist/esm/ez-classic-date-input.entry.js +2 -2
  133. package/dist/esm/ez-classic-date-time-input.entry.js +1 -1
  134. package/dist/esm/ez-classic-input.entry.js +49 -3
  135. package/dist/esm/ez-classic-number-input.entry.js +1 -1
  136. package/dist/esm/ez-classic-search-plus.entry.js +26 -13
  137. package/dist/esm/ez-classic-search.entry.js +2 -2
  138. package/dist/esm/ez-classic-text-area.entry.js +12 -1
  139. package/dist/esm/ez-classic-time-input.entry.js +4 -3
  140. package/dist/esm/ez-collapsible-box.entry.js +2 -2
  141. package/dist/esm/ez-combo-box.entry.js +7 -2
  142. package/dist/esm/ez-date-input.entry.js +1 -1
  143. package/dist/esm/ez-date-time-input.entry.js +1 -1
  144. package/dist/esm/ez-dialog.entry.js +1 -1
  145. package/dist/esm/ez-double-list.entry.js +1 -1
  146. package/dist/esm/ez-dropdown.entry.js +1 -1
  147. package/dist/esm/ez-empty-card.entry.js +1 -1
  148. package/dist/esm/ez-file-item.entry.js +1 -1
  149. package/dist/esm/ez-form-view.entry.js +20 -1
  150. package/dist/esm/ez-form.entry.js +65 -43
  151. package/dist/esm/ez-grid-pagination.entry.js +223 -0
  152. package/dist/esm/ez-grid.entry.js +236 -173
  153. package/dist/esm/ez-guide-navigator.entry.js +1 -1
  154. package/dist/esm/ez-icon.entry.js +1 -1
  155. package/dist/esm/ez-link-builder_6.entry.js +1 -1
  156. package/dist/esm/ez-list.entry.js +1 -1
  157. package/dist/esm/ez-modal-container.entry.js +1 -1
  158. package/dist/esm/ez-modal.entry.js +1 -1
  159. package/dist/esm/ez-multi-selection-list_5.entry.js +667 -0
  160. package/dist/esm/ez-number-input.entry.js +1 -1
  161. package/dist/esm/ez-pagination.entry.js +1 -1
  162. package/dist/esm/ez-popup.entry.js +4 -5
  163. package/dist/esm/ez-record-navigation.entry.js +117 -0
  164. package/dist/esm/ez-scroller_2.entry.js +81 -14
  165. package/dist/esm/ez-search-plus.entry.js +25 -11
  166. package/dist/esm/ez-search-result-list.entry.js +1 -1
  167. package/dist/esm/ez-search.entry.js +11 -4
  168. package/dist/esm/ez-sidebar-navigator.entry.js +1 -1
  169. package/dist/esm/ez-skeleton.entry.js +1 -1
  170. package/dist/esm/ez-sortable-list.entry.js +99 -114
  171. package/dist/esm/ez-spinner.entry.js +1 -1
  172. package/dist/esm/ez-split-button.entry.js +16 -17
  173. package/dist/esm/ez-split-item.entry.js +2 -2
  174. package/dist/esm/ez-tabselector.entry.js +209 -61
  175. package/dist/esm/ez-text-input.entry.js +21 -15
  176. package/dist/esm/ez-time-input.entry.js +1 -1
  177. package/dist/esm/ez-tooltip.entry.js +46 -8
  178. package/dist/esm/ez-tree.entry.js +1 -1
  179. package/dist/esm/ez-upload.entry.js +2 -2
  180. package/dist/esm/ezui.js +3 -3
  181. package/dist/esm/filter-column.entry.js +9 -3
  182. package/dist/esm/{floating-ui.dom.esm-ad30f2f0.js → floating-ui.dom.esm-0c464cef.js} +258 -120
  183. package/dist/esm/{index-225aa0c3.js → index-9e6dab5b.js} +91 -30
  184. package/dist/esm/index-baa5e267.js +16 -16
  185. package/dist/esm/loader.js +3 -3
  186. package/dist/esm/{search-column-e145f048.js → search-column-7d7f0331.js} +24 -10
  187. package/dist/ezui/ezui.esm.js +1 -1
  188. package/dist/ezui/p-01e652c6.entry.js +1 -0
  189. package/dist/ezui/p-0592535f.entry.js +1 -0
  190. package/dist/ezui/{p-544605c4.entry.js → p-063bb342.entry.js} +1 -1
  191. package/dist/ezui/{p-c56ee8c0.entry.js → p-0ac8bd66.entry.js} +1 -1
  192. package/dist/ezui/p-0d80e3ec.entry.js +1 -0
  193. package/dist/ezui/{p-729bd1be.entry.js → p-108503ed.entry.js} +1 -1
  194. package/dist/ezui/{p-e3cd5080.entry.js → p-1166b2d5.entry.js} +1 -1
  195. package/dist/ezui/p-1222e1b6.entry.js +1 -0
  196. package/dist/ezui/p-15873627.js +1 -0
  197. package/dist/ezui/p-178cb9df.entry.js +1 -0
  198. package/dist/ezui/p-1b1b0af3.entry.js +1 -0
  199. package/dist/ezui/p-2856c545.entry.js +1 -0
  200. package/dist/ezui/{p-df802548.entry.js → p-2ae127bc.entry.js} +1 -1
  201. package/dist/ezui/{p-556bf329.entry.js → p-2ebd7383.entry.js} +1 -1
  202. package/dist/ezui/p-3e84df1c.entry.js +1 -0
  203. package/dist/ezui/p-3fae7072.entry.js +1 -0
  204. package/dist/ezui/p-42e1e733.js +1 -0
  205. package/dist/ezui/{p-4e869617.entry.js → p-45245c32.entry.js} +1 -1
  206. package/dist/ezui/{p-a872c642.entry.js → p-46b1b2ac.entry.js} +1 -1
  207. package/dist/ezui/{p-5abb220b.entry.js → p-54af1af0.entry.js} +1 -1
  208. package/dist/ezui/p-55434123.entry.js +1 -0
  209. package/dist/ezui/p-6791d05f.entry.js +1 -0
  210. package/dist/ezui/{p-b83b9d14.entry.js → p-6d46f862.entry.js} +46 -46
  211. package/dist/ezui/p-6da0dc70.entry.js +1 -0
  212. package/dist/ezui/p-72e77b45.entry.js +1 -0
  213. package/dist/ezui/{p-7edc3ef7.entry.js → p-73461028.entry.js} +1 -1
  214. package/dist/ezui/{p-f5552540.entry.js → p-7424d520.entry.js} +1 -1
  215. package/dist/ezui/{p-b705b342.entry.js → p-7a07c50f.entry.js} +1 -1
  216. package/dist/ezui/p-7b078125.entry.js +1 -0
  217. package/dist/ezui/p-7df45688.entry.js +1 -0
  218. package/dist/ezui/{p-b0a716ef.entry.js → p-881abc22.entry.js} +1 -1
  219. package/dist/ezui/{p-7134726a.entry.js → p-99556756.entry.js} +1 -1
  220. package/dist/ezui/{p-97312709.entry.js → p-9bd78d39.entry.js} +1 -1
  221. package/dist/ezui/p-a11e4e8e.entry.js +1 -0
  222. package/dist/ezui/p-a9ab6cb9.entry.js +1 -0
  223. package/dist/ezui/{p-9825c1d2.js → p-ad5e263d.js} +1 -1
  224. package/dist/ezui/{p-26cd4c2e.entry.js → p-b06294c9.entry.js} +1 -1
  225. package/dist/ezui/{p-4d30b703.entry.js → p-b50289bb.entry.js} +1 -1
  226. package/dist/ezui/p-b66ae5c5.entry.js +1 -0
  227. package/dist/ezui/{p-2da9faf1.entry.js → p-b8cd501a.entry.js} +1 -1
  228. package/dist/ezui/p-b986da95.entry.js +7 -0
  229. package/dist/ezui/{p-4c2a4435.entry.js → p-c25a4d30.entry.js} +1 -1
  230. package/dist/ezui/{p-4f7ad3ee.entry.js → p-c37fb359.entry.js} +1 -1
  231. package/dist/ezui/{p-e2972977.entry.js → p-cb00863d.entry.js} +1 -1
  232. package/dist/ezui/{p-e3a42f47.entry.js → p-d5684cdc.entry.js} +1 -1
  233. package/dist/ezui/{p-6ac056d7.entry.js → p-d70805e4.entry.js} +1 -1
  234. package/dist/ezui/p-d81a15fc.entry.js +1 -0
  235. package/dist/ezui/p-d8b69419.entry.js +1 -0
  236. package/dist/ezui/p-de14fe07.js +1 -0
  237. package/dist/ezui/p-df6173c8.entry.js +1 -0
  238. package/dist/ezui/{p-56565777.entry.js → p-dfced8c7.entry.js} +1 -1
  239. package/dist/ezui/{p-0248846f.entry.js → p-e3d6b544.entry.js} +1 -1
  240. package/dist/ezui/p-e63a0479.js +1 -0
  241. package/dist/ezui/{p-4c76b365.entry.js → p-e692c2a7.entry.js} +1 -1
  242. package/dist/ezui/{p-8e5f1c74.entry.js → p-e8cd003b.entry.js} +1 -1
  243. package/dist/ezui/p-ed790867.entry.js +1 -0
  244. package/dist/ezui/p-f2e0acf5.entry.js +1 -0
  245. package/dist/ezui/{p-34d459e4.entry.js → p-f498f6b5.entry.js} +1 -1
  246. package/dist/ezui/{p-4af745e1.entry.js → p-fb27b98d.entry.js} +1 -1
  247. package/dist/ezui/{p-987185c4.entry.js → p-fc11f5b9.entry.js} +1 -1
  248. package/dist/types/components/ez-classic-combo-box/ez-classic-combo-box.d.ts +2 -0
  249. package/dist/types/components/ez-classic-input/ez-classic-input.d.ts +6 -0
  250. package/dist/types/components/ez-classic-search-plus/ez-classic-search-plus.d.ts +3 -0
  251. package/dist/types/components/ez-classic-text-area/ez-classic-text-area.d.ts +3 -0
  252. package/dist/types/components/ez-empty-card/ez-empty-card.d.ts +2 -2
  253. package/dist/types/components/ez-form-view/fieldbuilder/templates/MultiSelectInput.tpl.d.ts +2 -0
  254. package/dist/types/components/ez-grid/controller/EzGridController.d.ts +2 -0
  255. package/dist/types/components/ez-grid/controller/ag-grid/AgGridController.d.ts +16 -0
  256. package/dist/types/components/ez-grid/controller/ag-grid/gridColumnDefaultWidths.d.ts +4 -0
  257. package/dist/types/components/ez-grid/controller/ag-grid/utils/AggFunctionResolver.d.ts +2 -0
  258. package/dist/types/components/ez-grid/ez-grid.d.ts +10 -27
  259. package/dist/types/components/ez-grid/interfaces/IAggegationFunc.d.ts +3 -0
  260. package/dist/types/components/ez-grid/utils/index.d.ts +1 -0
  261. package/dist/types/components/ez-grid-pagination/ez-grid-pagination.d.ts +75 -0
  262. package/dist/types/components/ez-image-input/ez-image-input.d.ts +1 -0
  263. package/dist/types/components/ez-multi-select-input/ez-multi-select-input.d.ts +119 -0
  264. package/dist/types/components/ez-multi-selection-list/ez-multi-selection-list.d.ts +8 -0
  265. package/dist/types/components/ez-popover-plus/ez-popover-plus.d.ts +7 -0
  266. package/dist/types/components/ez-popover-plus/subcomponent/ez-popover-core.d.ts +9 -0
  267. package/dist/types/components/ez-popup/ez-popup.d.ts +1 -0
  268. package/dist/types/components/ez-record-navigation/ez-record-navigation.d.ts +43 -0
  269. package/dist/types/components/ez-scroller/EzScrollNavigationMode.d.ts +4 -0
  270. package/dist/types/components/ez-scroller/ez-scroller.d.ts +16 -2
  271. package/dist/types/components/ez-search/ez-search.d.ts +4 -0
  272. package/dist/types/components/ez-search-plus/ez-search-plus.d.ts +6 -1
  273. package/dist/types/components/ez-split-button/ez-split-button.d.ts +1 -2
  274. package/dist/types/components/ez-tabselector/ez-tabselector.d.ts +41 -20
  275. package/dist/types/components/ez-text-input/ez-text-input.d.ts +1 -0
  276. package/dist/types/components/ez-tooltip/ez-tooltip.d.ts +2 -0
  277. package/dist/types/components.d.ts +407 -9
  278. package/dist/types/utils/i18n/locales/en-us.d.ts +26 -3
  279. package/dist/types/utils/i18n/locales/es-es.d.ts +26 -3
  280. package/dist/types/utils/i18n/locales/pt-br.d.ts +26 -3
  281. package/dist/types/utils/i18n/translations.d.ts +78 -9
  282. package/package.json +5 -6
  283. package/react/components.d.ts +3 -0
  284. package/react/components.js +3 -0
  285. package/react/components.js.map +1 -1
  286. package/dist/cjs/ez-multi-selection-list.cjs.entry.js +0 -194
  287. package/dist/cjs/ez-popover-core.cjs.entry.js +0 -211
  288. package/dist/cjs/ez-popover-plus_3.cjs.entry.js +0 -243
  289. package/dist/esm/ez-multi-selection-list.entry.js +0 -190
  290. package/dist/esm/ez-popover-core.entry.js +0 -207
  291. package/dist/esm/ez-popover-plus_3.entry.js +0 -237
  292. package/dist/ezui/p-0625743b.entry.js +0 -1
  293. package/dist/ezui/p-2528e988.entry.js +0 -1
  294. package/dist/ezui/p-288631d1.entry.js +0 -1
  295. package/dist/ezui/p-2a806303.js +0 -1
  296. package/dist/ezui/p-44183c39.entry.js +0 -1
  297. package/dist/ezui/p-4e576bb9.entry.js +0 -1
  298. package/dist/ezui/p-6020f3d5.entry.js +0 -1
  299. package/dist/ezui/p-619225ce.entry.js +0 -1
  300. package/dist/ezui/p-679a2942.entry.js +0 -1
  301. package/dist/ezui/p-951b32a1.entry.js +0 -1
  302. package/dist/ezui/p-a0f51b99.entry.js +0 -1
  303. package/dist/ezui/p-a3bad8f8.entry.js +0 -1
  304. package/dist/ezui/p-a4351519.entry.js +0 -1
  305. package/dist/ezui/p-b36475f9.entry.js +0 -1
  306. package/dist/ezui/p-b8078832.entry.js +0 -1
  307. package/dist/ezui/p-c0ae79fa.entry.js +0 -1
  308. package/dist/ezui/p-c178730b.js +0 -1
  309. package/dist/ezui/p-c2b2172b.entry.js +0 -1
  310. package/dist/ezui/p-c3c6274e.js +0 -1
  311. package/dist/ezui/p-cabc119e.entry.js +0 -1
  312. package/dist/ezui/p-ce0a0036.entry.js +0 -7
  313. package/dist/ezui/p-cfa26133.entry.js +0 -1
  314. package/dist/ezui/p-d2645bdf.entry.js +0 -1
  315. package/dist/ezui/p-d5dc6b01.entry.js +0 -1
  316. package/dist/ezui/p-e2689b33.entry.js +0 -1
  317. package/dist/ezui/p-e493ad57.entry.js +0 -1
  318. package/dist/ezui/p-ef8bd3e8.entry.js +0 -1
  319. package/dist/ezui/p-ff4312d5.js +0 -1
@@ -1,6 +1,8 @@
1
1
  :host {
2
2
  /*@doc Define a cor de efeito de sombreado com componente.*/
3
3
  --ez-scroller--box-shadow-color: var(--background--body, #fafcff);
4
+ /*@doc Define o espaçamento entre os botões de navegação e o conteúdo.*/
5
+ --ez-scroller__nav-button--spacing: var(--space--8, 8px);
4
6
 
5
7
  /* scrollbar */
6
8
  /*@doc Define a cor da barra de rolagem do componente.*/
@@ -141,56 +143,160 @@
141
143
 
142
144
  .ez-scroller__wrapper--horizontal {
143
145
  flex-direction: row;
146
+ align-items: center;
147
+ gap: var(--ez-scroller__nav-button--spacing);
144
148
  }
145
149
 
146
150
  .ez-scroller__wrapper--vertical {
147
151
  flex-direction: column;
152
+ align-items: center;
153
+ gap: var(--ez-scroller__nav-button--spacing);
148
154
  }
149
155
 
150
- .ez-scroller__wrapper--shadow-start::before,
151
- .ez-scroller__wrapper--shadow-end::after {
156
+ .ez-scroller__wrapper--buttons-mode {
157
+ display: flex;
158
+ }
159
+
160
+ .ez-scroller__wrapper--buttons-mode.ez-scroller__wrapper--horizontal {
161
+ flex-direction: row;
162
+ }
163
+
164
+ .ez-scroller__wrapper--buttons-mode.ez-scroller__wrapper--vertical {
165
+ flex-direction: column;
166
+ }
167
+
168
+ /* Shadow effects - applied to wrapper when not in buttons mode */
169
+ .ez-scroller__wrapper:not(.ez-scroller__wrapper--buttons-mode).ez-scroller__wrapper--shadow-start::before,
170
+ .ez-scroller__wrapper:not(.ez-scroller__wrapper--buttons-mode).ez-scroller__wrapper--shadow-end::after {
152
171
  content: "";
153
172
  display: flex;
154
173
  position: absolute;
155
174
  z-index: 1;
156
175
  }
157
176
 
158
- .ez-scroller__wrapper--horizontal.ez-scroller__wrapper--shadow-start::before,
159
- .ez-scroller__wrapper--horizontal.ez-scroller__wrapper--shadow-end::after {
177
+ .ez-scroller__wrapper--horizontal:not(.ez-scroller__wrapper--buttons-mode).ez-scroller__wrapper--shadow-start::before,
178
+ .ez-scroller__wrapper--horizontal:not(.ez-scroller__wrapper--buttons-mode).ez-scroller__wrapper--shadow-end::after {
160
179
  width: 24px;
161
180
  min-height: calc(100% - 10px);
162
181
  }
163
182
 
164
- .ez-scroller__wrapper--horizontal.ez-scroller__wrapper--shadow-start::before {
183
+ .ez-scroller__wrapper--horizontal:not(.ez-scroller__wrapper--buttons-mode).ez-scroller__wrapper--shadow-start::before {
165
184
  left: 0;
166
185
 
167
186
  /*public*/
168
187
  background: linear-gradient(to right, var(--ez-scroller--box-shadow-color) 20%, transparent 80%);
169
188
  }
170
189
 
171
- .ez-scroller__wrapper--horizontal.ez-scroller__wrapper--shadow-end::after {
190
+ .ez-scroller__wrapper--horizontal:not(.ez-scroller__wrapper--buttons-mode).ez-scroller__wrapper--shadow-end::after {
172
191
  right: 0;
173
192
 
174
193
  /*public*/
175
194
  background: linear-gradient(to left, var(--ez-scroller--box-shadow-color) 20%, transparent 80%);
176
195
  }
177
196
 
178
- .ez-scroller__wrapper--vertical.ez-scroller__wrapper--shadow-start::before,
179
- .ez-scroller__wrapper--vertical.ez-scroller__wrapper--shadow-end::after {
197
+ .ez-scroller__wrapper--vertical:not(.ez-scroller__wrapper--buttons-mode).ez-scroller__wrapper--shadow-start::before,
198
+ .ez-scroller__wrapper--vertical:not(.ez-scroller__wrapper--buttons-mode).ez-scroller__wrapper--shadow-end::after {
180
199
  min-width: calc(100% - 10px);
181
200
  height: 24px;
182
201
  }
183
202
 
184
- .ez-scroller__wrapper--vertical.ez-scroller__wrapper--shadow-start::before {
203
+ .ez-scroller__wrapper--vertical:not(.ez-scroller__wrapper--buttons-mode).ez-scroller__wrapper--shadow-start::before {
185
204
  top: 0;
186
205
 
187
206
  /*public*/
188
207
  background: linear-gradient(to bottom, var(--ez-scroller--box-shadow-color) 20%, transparent 80%);
189
208
  }
190
209
 
191
- .ez-scroller__wrapper--vertical.ez-scroller__wrapper--shadow-end::after {
210
+ .ez-scroller__wrapper--vertical:not(.ez-scroller__wrapper--buttons-mode).ez-scroller__wrapper--shadow-end::after {
192
211
  bottom: 0;
193
212
 
194
213
  /*public*/
195
214
  background: linear-gradient(to top, var(--ez-scroller--box-shadow-color) 20%, transparent 80%);
196
- }
215
+ }
216
+
217
+ /* Navigation buttons */
218
+ .ez-scroller__container--buttons-mode::-webkit-scrollbar {
219
+ display: none;
220
+ }
221
+
222
+ .ez-scroller__container--buttons-mode {
223
+ scrollbar-width: none;
224
+ flex: 1;
225
+ min-width: 0;
226
+ position: relative;
227
+ }
228
+
229
+ .ez-scroller__nav-button {
230
+ /*@doc Define o tamanho do botão de navegação.*/
231
+ --ez-scroller__nav-button--size: var(--space--32, 32px);
232
+ /*@doc Define o raio da borda do botão de navegação.*/
233
+ --ez-scroller__nav-button--border-radius: var(--border--radius-24, 24px);
234
+ /*@doc Define a largura do gradiente ao lado do botão.*/
235
+ --ez-scroller__nav-button--gradient-width: 40px;
236
+
237
+ display: flex;
238
+ align-items: center;
239
+ justify-content: center;
240
+ border: none;
241
+ cursor: pointer;
242
+ flex-shrink: 0;
243
+ position: relative;
244
+ z-index: 2;
245
+
246
+ /*public*/
247
+ width: var(--ez-scroller__nav-button--size);
248
+ height: var(--ez-scroller__nav-button--size);
249
+ border-radius: var(--ez-scroller__nav-button--border-radius);
250
+ }
251
+
252
+ /* Gradient attached to previous button (left/top) */
253
+ .ez-scroller__nav-button--previous::after {
254
+ content: "";
255
+ position: absolute;
256
+ z-index: -1;
257
+ pointer-events: none;
258
+ }
259
+
260
+ .ez-scroller__wrapper--horizontal .ez-scroller__nav-button--previous::after {
261
+ left: 100%;
262
+ top: 0;
263
+ bottom: 0;
264
+ width: var(--ez-scroller__nav-button--gradient-width);
265
+ background: linear-gradient(to left, transparent 0%, var(--ez-scroller--box-shadow-color, #fafcff) 100%);
266
+ }
267
+
268
+ .ez-scroller__wrapper--vertical .ez-scroller__nav-button--previous::after {
269
+ top: 100%;
270
+ left: 0;
271
+ right: 0;
272
+ height: var(--ez-scroller__nav-button--gradient-width);
273
+ background: linear-gradient(to top, transparent 0%, var(--ez-scroller--box-shadow-color, #fafcff) 100%);
274
+ }
275
+
276
+ /* Gradient attached to next button (right/bottom) */
277
+ .ez-scroller__nav-button--next::before {
278
+ content: "";
279
+ position: absolute;
280
+ z-index: -1;
281
+ pointer-events: none;
282
+ }
283
+
284
+ .ez-scroller__wrapper--horizontal .ez-scroller__nav-button--next::before {
285
+ right: 100%;
286
+ top: 0;
287
+ bottom: 0;
288
+ width: var(--ez-scroller__nav-button--gradient-width);
289
+ background: linear-gradient(to right, transparent 0%, var(--ez-scroller--box-shadow-color, #fafcff) 100%);
290
+ }
291
+
292
+ .ez-scroller__wrapper--vertical .ez-scroller__nav-button--next::before {
293
+ bottom: 100%;
294
+ left: 0;
295
+ right: 0;
296
+ height: var(--ez-scroller__nav-button--gradient-width);
297
+ background: linear-gradient(to bottom, transparent 0%, var(--ez-scroller--box-shadow-color, #fafcff) 100%);
298
+ }
299
+
300
+ .ez-scroller__nav-button ez-icon {
301
+ pointer-events: none;
302
+ }
@@ -1,25 +1,64 @@
1
1
  import { JSUtils } from '@sankhyalabs/core';
2
2
  import { h, Host } from '@stencil/core';
3
+ import initI18n from '../../utils/i18n';
3
4
  import { EzScrollDirection } from './EzScrollDirection';
5
+ import { EzScrollNavigationMode } from './EzScrollNavigationMode';
4
6
  export class EzScroller {
5
7
  constructor() {
6
8
  this._shadowStart = "ez-scroller__wrapper--shadow-start";
7
9
  this._shadowEnd = "ez-scroller__wrapper--shadow-end";
10
+ this._startHidden = undefined;
11
+ this._endHidden = undefined;
8
12
  this.isActive = false;
9
13
  this.direction = undefined;
10
14
  this.locked = false;
11
15
  this.activeShadow = false;
16
+ this.navigationMode = EzScrollNavigationMode.SCROLLBAR;
17
+ this.scrollAmount = 200;
12
18
  }
13
19
  //---------------------------------------------
14
20
  // Private methods
15
21
  //---------------------------------------------
22
+ scrollToPrevious() {
23
+ if (!this._container)
24
+ return;
25
+ const scrollOptions = {
26
+ behavior: 'smooth'
27
+ };
28
+ if (this.direction === EzScrollDirection.HORIZONTAL) {
29
+ scrollOptions.left = Math.max(0, this._container.scrollLeft - this.scrollAmount);
30
+ }
31
+ else if (this.direction === EzScrollDirection.VERTICAL) {
32
+ scrollOptions.top = Math.max(0, this._container.scrollTop - this.scrollAmount);
33
+ }
34
+ this._container.scrollTo(scrollOptions);
35
+ }
36
+ scrollToNext() {
37
+ if (!this._container)
38
+ return;
39
+ const scrollOptions = {
40
+ behavior: 'smooth'
41
+ };
42
+ if (this.direction === EzScrollDirection.HORIZONTAL) {
43
+ scrollOptions.left = this._container.scrollLeft + this.scrollAmount;
44
+ }
45
+ else if (this.direction === EzScrollDirection.VERTICAL) {
46
+ scrollOptions.top = this._container.scrollTop + this.scrollAmount;
47
+ }
48
+ this._container.scrollTo(scrollOptions);
49
+ }
16
50
  getContainerClass() {
51
+ const isButtonMode = this.navigationMode === EzScrollNavigationMode.BUTTONS;
17
52
  return `ez-scroller__container ez-scroller__container--${this.direction}
18
53
  ${this.locked || !this.isActive ? " ez-scroller__container--locked" : ""}
54
+ ${isButtonMode ? " ez-scroller__container--buttons-mode" : ""}
19
55
  `;
20
56
  }
21
57
  getWrapperClass() {
22
- return `ez-scroller__wrapper ez-scroller__wrapper--${this.direction}`;
58
+ const isButtonMode = this.navigationMode === EzScrollNavigationMode.BUTTONS;
59
+ return `ez-scroller__wrapper ez-scroller__wrapper--${this.direction}
60
+ ${isButtonMode ? " ez-scroller__wrapper--buttons-mode" : ""}
61
+ `;
23
62
  }
24
63
  finishDrag() {
25
64
  if (this._controller) {
@@ -47,27 +86,33 @@ export class EzScroller {
47
86
  this.updateShadow();
48
87
  }
49
88
  updateShadow() {
50
- const wrapper = this._wrapper;
51
- if (!this.activeShadow || wrapper == undefined) {
89
+ if (!this.activeShadow) {
90
+ return;
91
+ }
92
+ // Apply shadow classes to container when in buttons mode, otherwise to wrapper
93
+ const targetElement = this.navigationMode === EzScrollNavigationMode.BUTTONS
94
+ ? this._container
95
+ : this._wrapper;
96
+ if (targetElement == undefined) {
52
97
  return;
53
98
  }
54
99
  const shadowPositions = ["", "start", "end", "middle"];
55
100
  const currentPosition = shadowPositions[Number(this._startHidden) | Number(this._endHidden) << 1];
56
101
  if (currentPosition === "start") {
57
- wrapper.classList.add(this._shadowStart);
58
- wrapper.classList.remove(this._shadowEnd);
102
+ targetElement.classList.add(this._shadowStart);
103
+ targetElement.classList.remove(this._shadowEnd);
59
104
  }
60
105
  else if (currentPosition === "end") {
61
- wrapper.classList.remove(this._shadowStart);
62
- wrapper.classList.add(this._shadowEnd);
106
+ targetElement.classList.remove(this._shadowStart);
107
+ targetElement.classList.add(this._shadowEnd);
63
108
  }
64
109
  else if (currentPosition === "middle") {
65
- wrapper.classList.add(this._shadowStart);
66
- wrapper.classList.add(this._shadowEnd);
110
+ targetElement.classList.add(this._shadowStart);
111
+ targetElement.classList.add(this._shadowEnd);
67
112
  }
68
113
  else {
69
- wrapper.classList.remove(this._shadowStart);
70
- wrapper.classList.remove(this._shadowEnd);
114
+ targetElement.classList.remove(this._shadowStart);
115
+ targetElement.classList.remove(this._shadowEnd);
71
116
  }
72
117
  }
73
118
  configResize() {
@@ -91,6 +136,17 @@ export class EzScroller {
91
136
  return this._container.scrollWidth > this._container.clientWidth
92
137
  || this._container.scrollHeight > this._container.clientHeight;
93
138
  }
139
+ renderNavigationButtons() {
140
+ if (this.navigationMode !== EzScrollNavigationMode.BUTTONS || this.direction === EzScrollDirection.BOTH) {
141
+ return null;
142
+ }
143
+ const isHorizontal = this.direction === EzScrollDirection.HORIZONTAL;
144
+ const previousIconName = isHorizontal ? "arrow_back" : "arrow-up";
145
+ const nextIconName = isHorizontal ? "arrow-forward" : "arrow-down";
146
+ const previousButton = this._startHidden ? (h("ez-button", { class: "ez-scroller__nav-button ez-scroller__nav-button--previous", onClick: () => this.scrollToPrevious(), title: this.i18n('ez-scroller.previousButton'), "aria-label": this.i18n('ez-scroller.previousButton'), type: "button", variant: "tertiary", mode: 'icon', suppressAnimation: true, iconName: previousIconName }, h("ez-icon", { iconName: previousIconName }))) : null;
147
+ const nextButton = this._endHidden ? (h("ez-button", { class: "ez-scroller__nav-button ez-scroller__nav-button--next", onClick: () => this.scrollToNext(), title: this.i18n('ez-scroller.nextButton'), "aria-label": this.i18n('ez-scroller.nextButton'), type: "button", variant: "tertiary", mode: 'icon', suppressAnimation: true, iconName: nextIconName }, h("ez-icon", { iconName: nextIconName }))) : null;
148
+ return { previousButton, nextButton };
149
+ }
94
150
  //---------------------------------------------
95
151
  // Event handlers
96
152
  //---------------------------------------------
@@ -129,6 +185,9 @@ export class EzScroller {
129
185
  }
130
186
  }
131
187
  }
188
+ async componentWillLoad() {
189
+ this.i18n = await initI18n();
190
+ }
132
191
  componentDidRender() {
133
192
  var _a, _b;
134
193
  if (this._container == undefined) {
@@ -145,8 +204,11 @@ export class EzScroller {
145
204
  this.updateScroller();
146
205
  }
147
206
  render() {
148
- return (h(Host, null, this.activeShadow
149
- ? h("div", { ref: ref => this._wrapper = ref, class: this.getWrapperClass() }, this.getContainerElement())
207
+ const buttons = this.navigationMode === EzScrollNavigationMode.BUTTONS ? this.renderNavigationButtons() : null;
208
+ return (h(Host, null, this.activeShadow || this.navigationMode === EzScrollNavigationMode.BUTTONS
209
+ ? h("div", { ref: ref => this._wrapper = ref, class: this.getWrapperClass() }, buttons === null || buttons === void 0 ? void 0 :
210
+ buttons.previousButton, this.getContainerElement(), buttons === null || buttons === void 0 ? void 0 :
211
+ buttons.nextButton)
150
212
  : this.getContainerElement()));
151
213
  }
152
214
  static get is() { return "ez-scroller"; }
@@ -220,11 +282,54 @@ export class EzScroller {
220
282
  "attribute": "active-shadow",
221
283
  "reflect": false,
222
284
  "defaultValue": "false"
285
+ },
286
+ "navigationMode": {
287
+ "type": "string",
288
+ "mutable": false,
289
+ "complexType": {
290
+ "original": "EzScrollNavigationMode",
291
+ "resolved": "EzScrollNavigationMode.BUTTONS | EzScrollNavigationMode.SCROLLBAR",
292
+ "references": {
293
+ "EzScrollNavigationMode": {
294
+ "location": "import",
295
+ "path": "./EzScrollNavigationMode"
296
+ }
297
+ }
298
+ },
299
+ "required": false,
300
+ "optional": false,
301
+ "docs": {
302
+ "tags": [],
303
+ "text": "Define o modo de navega\u00E7\u00E3o: 'scrollbar' (padr\u00E3o) ou 'buttons' (bot\u00F5es de carrossel)."
304
+ },
305
+ "attribute": "navigation-mode",
306
+ "reflect": false,
307
+ "defaultValue": "EzScrollNavigationMode.SCROLLBAR"
308
+ },
309
+ "scrollAmount": {
310
+ "type": "number",
311
+ "mutable": false,
312
+ "complexType": {
313
+ "original": "number",
314
+ "resolved": "number",
315
+ "references": {}
316
+ },
317
+ "required": false,
318
+ "optional": false,
319
+ "docs": {
320
+ "tags": [],
321
+ "text": "Define a quantidade de pixels que ser\u00E1 rolado ao clicar nos bot\u00F5es de navega\u00E7\u00E3o."
322
+ },
323
+ "attribute": "scroll-amount",
324
+ "reflect": false,
325
+ "defaultValue": "200"
223
326
  }
224
327
  };
225
328
  }
226
329
  static get states() {
227
330
  return {
331
+ "_startHidden": {},
332
+ "_endHidden": {},
228
333
  "isActive": {}
229
334
  };
230
335
  }
@@ -4,6 +4,9 @@
4
4
  --ez-search--height: 42px;
5
5
  /*@doc Define largura do input.*/
6
6
  --ez-search--width: 100%;
7
+ /*@doc Define largura mínima do input.*/
8
+ --ez-search--min-width: 0;
9
+
7
10
  /*@doc Define largura do slot do ícone do input.*/
8
11
  --ez-search__icon--width: 48px;
9
12
 
@@ -72,6 +75,7 @@
72
75
 
73
76
  /*public*/
74
77
  width: var(--ez-search--width);
78
+ min-width: var(--ez-search--min-width);
75
79
  }
76
80
 
77
81
  ez-icon {
@@ -325,6 +325,7 @@ export class EzSearch {
325
325
  this.value = null;
326
326
  this._currentValue = null;
327
327
  this._textInput.value = "";
328
+ this.ezChange.emit(null);
328
329
  }
329
330
  controlListWithOnlyOne(focusOnInput = true) {
330
331
  var _a, _b;
@@ -414,8 +415,13 @@ export class EzSearch {
414
415
  }
415
416
  }
416
417
  async showNoResultMessage() {
418
+ var _a;
419
+ const valueToEmit = typeof this.value === "string" ? this.value : (_a = this.value) === null || _a === void 0 ? void 0 : _a.value;
417
420
  this.clearSearch();
418
- ApplicationUtils.info(this.i18n("ez-search.emptySearch", { field: this.getFieldLabel() }));
421
+ this.ezEmptySearch.emit(valueToEmit);
422
+ const message = this.i18n("ez-search.emptySearch", { field: this.getFieldLabel() });
423
+ this.errorMessage = message;
424
+ await ApplicationUtils.info(message);
419
425
  }
420
426
  getFieldLabel() {
421
427
  var _a;
@@ -1168,6 +1174,21 @@ export class EzSearch {
1168
1174
  }
1169
1175
  }
1170
1176
  }
1177
+ }, {
1178
+ "method": "ezEmptySearch",
1179
+ "name": "ezEmptySearch",
1180
+ "bubbles": true,
1181
+ "cancelable": true,
1182
+ "composed": true,
1183
+ "docs": {
1184
+ "tags": [],
1185
+ "text": "Emitido quando a pesquisa retorna um resultado vazio."
1186
+ },
1187
+ "complexType": {
1188
+ "original": "string",
1189
+ "resolved": "string",
1190
+ "references": {}
1191
+ }
1171
1192
  }];
1172
1193
  }
1173
1194
  static get methods() {
@@ -1,6 +1,6 @@
1
1
  import { h, Host, } from "@stencil/core";
2
2
  import { ElementIDUtils, KeyboardManager, StringUtils, } from "@sankhyalabs/core";
3
- import { CSSVarsUtils, SearchMode } from "../../utils";
3
+ import { ApplicationUtils, CSSVarsUtils, SearchMode } from '../../utils';
4
4
  import initI18n from '../../utils/i18n';
5
5
  export class EzSearchPlus {
6
6
  constructor() {
@@ -52,28 +52,33 @@ export class EzSearchPlus {
52
52
  if (newNormalizedValue === undefined) {
53
53
  this.codeValue = undefined;
54
54
  this.descriptionValue = undefined;
55
+ this.cleanFieldsRef();
55
56
  this.ezChange.emit(undefined);
56
57
  return;
57
58
  }
58
59
  this.codeValue = newNormalizedValue;
60
+ let canCleanError = true;
59
61
  try {
60
62
  this.descriptionValue = await this.normalizeCodeToDescriptionValue(newValue);
61
63
  if (this.descriptionValue === null || this.descriptionValue === undefined) {
62
- throw new Error("Valor não encontrado!");
64
+ console.error(`Valor de descrição não encontrado! ${this.label}: ${this.codeValue}`);
63
65
  }
64
66
  }
65
67
  catch (err) {
68
+ await ApplicationUtils.info(err.message);
69
+ const valueToEmit = typeof this.value === "string" ? this.value : (_a = this.value) === null || _a === void 0 ? void 0 : _a.value;
70
+ this.ezEmptySearch.emit(valueToEmit);
71
+ this.errorMessage = err.message;
72
+ canCleanError = false;
66
73
  this._ignoreNextValue = true;
67
74
  this.clearSearch();
68
75
  console.warn("[EzSearchPlus] Erro ao obter descrição do registro.", err);
69
- if (((_a = err === null || err === void 0 ? void 0 : err.constructor) === null || _a === void 0 ? void 0 : _a.name) === "WarningException") {
70
- this.errorMessage = err.message;
71
- }
72
- throw err;
73
76
  }
74
77
  this.value = this.buildCurrentValue();
75
78
  this.ezChange.emit(this.value);
76
- this.errorMessage = null;
79
+ if (canCleanError) {
80
+ this.errorMessage = null;
81
+ }
77
82
  }
78
83
  canShowLoadSpinDescription() {
79
84
  return this.isLoadingDescription;
@@ -82,7 +87,7 @@ export class EzSearchPlus {
82
87
  * Aplica o foco no campo.
83
88
  */
84
89
  async setFocus(options) {
85
- var _a;
90
+ var _a, _b;
86
91
  if (this.disableCodeInput) {
87
92
  (_a = this._textInputDescriptionValue) === null || _a === void 0 ? void 0 : _a.setFocus(options);
88
93
  return;
@@ -91,7 +96,7 @@ export class EzSearchPlus {
91
96
  this._latestFocusedInputElement.setFocus(options);
92
97
  return;
93
98
  }
94
- this._textInputCodeValue.setFocus(options);
99
+ (_b = this._textInputCodeValue) === null || _b === void 0 ? void 0 : _b.setFocus(options);
95
100
  }
96
101
  /**
97
102
  * Obtém o valor do componente só após a compo de apresentação
@@ -154,7 +159,7 @@ export class EzSearchPlus {
154
159
  this.value = null;
155
160
  this.codeValue = null;
156
161
  this.descriptionValue = null;
157
- if (!this.hideDescriptionInput) {
162
+ if (!this.hideDescriptionInput && this._textInputDescriptionValue) {
158
163
  this._textInputDescriptionValue.value = null;
159
164
  }
160
165
  }
@@ -378,6 +383,14 @@ export class EzSearchPlus {
378
383
  handleDescriptionInputFocus() {
379
384
  this.setLatestFocusedInputElement(this._textInputDescriptionValue);
380
385
  }
386
+ cleanFieldsRef() {
387
+ if (this._textInputCodeValue) {
388
+ this._textInputCodeValue.value = null;
389
+ }
390
+ if (this._textInputDescriptionValue) {
391
+ this._textInputDescriptionValue.value = null;
392
+ }
393
+ }
381
394
  getRightIconElement() {
382
395
  var _a, _b;
383
396
  if (!this.ensureClearButtonVisible && (!this.value && !((_a = this._textInputCodeValue) === null || _a === void 0 ? void 0 : _a.value) && !((_b = this._textInputDescriptionValue) === null || _b === void 0 ? void 0 : _b.value))) {
@@ -880,6 +893,21 @@ export class EzSearchPlus {
880
893
  }
881
894
  }
882
895
  }
896
+ }, {
897
+ "method": "ezEmptySearch",
898
+ "name": "ezEmptySearch",
899
+ "bubbles": true,
900
+ "cancelable": true,
901
+ "composed": true,
902
+ "docs": {
903
+ "tags": [],
904
+ "text": "Emitido quando a pesquisa retorna um resultado inv\u00E1lido."
905
+ },
906
+ "complexType": {
907
+ "original": "string",
908
+ "resolved": "string",
909
+ "references": {}
910
+ }
883
911
  }];
884
912
  }
885
913
  static get methods() {
@@ -198,7 +198,7 @@
198
198
 
199
199
  @media (max-height: 630px) {
200
200
  .sortable-content{
201
- height: 290px;
201
+ height: 270px;
202
202
  }
203
203
  }
204
204
 
@@ -343,7 +343,7 @@
343
343
  position: absolute;
344
344
  background-color: #f1f1f1;
345
345
  min-width: 160px;
346
- z-index: var(--ez-elevation--8);
346
+ z-index: var(--elevation--8);
347
347
  border-radius: var(--ez-split-button--border-radius);
348
348
  }
349
349
 
@@ -60,7 +60,11 @@ export class EzSplitButton {
60
60
  const spaceLeft = rightButtonRect.left;
61
61
  const shouldOpenUpward = spaceBelow < dropdownRect.height && spaceAbove > dropdownRect.height;
62
62
  const shouldOpenLeftward = spaceRight < dropdownRect.width && spaceLeft > dropdownRect.width;
63
- const styles = this.calculateDropdownPosition(rightButtonRect, dropdownRect, shouldOpenUpward, shouldOpenLeftward);
63
+ const styles = {
64
+ position: 'fixed',
65
+ top: shouldOpenUpward ? `${rightButtonRect.top - dropdownRect.height}px` : `${rightButtonRect.bottom}px`,
66
+ left: shouldOpenLeftward ? `${rightButtonRect.right - dropdownRect.width}px` : `${rightButtonRect.left}px`,
67
+ };
64
68
  Object.assign(dropdownParent.style, styles);
65
69
  });
66
70
  };
@@ -197,6 +201,9 @@ export class EzSplitButton {
197
201
  return;
198
202
  }
199
203
  }
204
+ onItemActionExecuted() {
205
+ this.closeDropdown();
206
+ }
200
207
  clickListener(evt) {
201
208
  const isDisabled = !this.enabled ||
202
209
  this.isDisabled === true ||
@@ -227,26 +234,18 @@ export class EzSplitButton {
227
234
  this.buttonClick.emit();
228
235
  }
229
236
  handleDropdownItemClick(evt) {
237
+ var _a;
230
238
  this.dropdownItemClick.emit(evt.detail);
231
239
  evt.stopPropagation();
232
- this.closeDropdown();
240
+ if (!((_a = evt.detail) === null || _a === void 0 ? void 0 : _a.disableCloseOnSelect)) {
241
+ this.closeDropdown();
242
+ }
233
243
  }
234
244
  handleDropdownSubActionClick(evt) {
235
245
  this.dropdownSubActionClick.emit(evt.detail);
236
246
  evt.stopPropagation();
237
247
  this.closeDropdown();
238
248
  }
239
- calculateDropdownPosition(buttonRect, dropdownRect, openUpward, openLeftward) {
240
- const baseOffset = this.offsetParentRect || { top: 0, left: 0 };
241
- return {
242
- top: openUpward ? 'auto' : `${buttonRect.bottom - baseOffset.top + window.scrollY}px`,
243
- bottom: openUpward ? `${window.innerHeight - buttonRect.top - window.scrollY}px` : 'auto',
244
- left: openLeftward
245
- ? `${buttonRect.right - dropdownRect.width - baseOffset.left + window.scrollX}px`
246
- : `${buttonRect.left - baseOffset.left + window.scrollX}px`,
247
- maxHeight: openUpward ? `${buttonRect.top - baseOffset.top}px` : 'none'
248
- };
249
- }
250
249
  setupEventListeners() {
251
250
  const controller = new AbortController();
252
251
  const { signal } = controller;
@@ -303,7 +302,7 @@ export class EzSplitButton {
303
302
  return (h(Host, { class: this.variant ? `ez-split-button--${this.variant}` : '' }, h("div", { class: `ez-split-button ${this.size} ${this.mode}` }, this.renderLeftButton(hasIconButton, hasLabelButton, iconSize), this.renderDivider(), this.renderDropdownSection(iconSize))));
304
303
  }
305
304
  renderLeftButton(hasIconButton, hasLabelButton, iconSize) {
306
- return (h("button", { class: `ez-split-button__left-button ${iconSize} ${this.mode} ${this.isLeftPressed ? 'pressed' : ''}`, title: this.leftTitle || this.label, type: "button", disabled: this.isButtonDisabled, "aria-disabled": this.isButtonAriaDisabled, onClick: () => this.handleButtonClick(), ref: el => (this.leftButton = el) }, hasIconButton && this.renderLeftIcon(iconSize), hasLabelButton && this.renderLabel(), !this.suppressAnimation && this.renderRipples(this.leftRipples)));
305
+ return (h("ez-tooltip", { message: this.leftTitle || this.label }, h("button", { class: `ez-split-button__left-button ${iconSize} ${this.mode} ${this.isLeftPressed ? 'pressed' : ''}`, type: "button", disabled: this.isButtonDisabled, "aria-disabled": this.isButtonAriaDisabled, onClick: () => this.handleButtonClick(), ref: el => (this.leftButton = el) }, hasIconButton && this.renderLeftIcon(iconSize), hasLabelButton && this.renderLabel(), !this.suppressAnimation && this.renderRipples(this.leftRipples))));
307
306
  }
308
307
  renderDivider() {
309
308
  return h("div", { class: `ez-split-button__divider ${this.mode} ez-split-button__divider--${this.size} ${this.isButtonDisabled ? 'disabled' : ''}`, "aria-disabled": this.isButtonAriaDisabled });
@@ -312,7 +311,7 @@ export class EzSplitButton {
312
311
  return (h("div", { class: "dropdown" }, this.renderRightButton(iconSize), this.renderDropdownContent()));
313
312
  }
314
313
  renderRightButton(iconSize) {
315
- return (h("button", { class: `ez-split-button__right-button ${iconSize} ez-split-button__right-button--${iconSize} ${this.isRightPressed ? 'pressed' : ''}`, title: this.rightTitle || this.i18n("ez-split-button.moreOptions"), type: "button", disabled: this.isButtonDisabled, "aria-disabled": this.isButtonAriaDisabled, onClick: () => this.toggleDropdown(), ref: el => (this.rightButton = el) }, this.renderRightIcon(iconSize), !this.suppressAnimation && this.renderRipples(this.rightRipples)));
314
+ return (h("ez-tooltip", { message: this.rightTitle || this.i18n("ez-split-button.moreOptions") }, h("button", { class: `ez-split-button__right-button ${iconSize} ez-split-button__right-button--${iconSize} ${this.isRightPressed ? 'pressed' : ''}`, type: "button", disabled: this.isButtonDisabled, "aria-disabled": this.isButtonAriaDisabled, onClick: () => this.toggleDropdown(), ref: el => (this.rightButton = el) }, this.renderRightIcon(iconSize), !this.suppressAnimation && this.renderRipples(this.rightRipples))));
316
315
  }
317
316
  renderDropdownContent() {
318
317
  return (h("div", { class: `dropdown-content dropdown-content--${this.size}`, ref: (ref) => (this.dropdownParent = ref) }, this.show && this.renderDropdown()));
@@ -835,6 +834,12 @@ export class EzSplitButton {
835
834
  "target": undefined,
836
835
  "capture": false,
837
836
  "passive": true
837
+ }, {
838
+ "name": "ezCloseSplitButtonDropdown",
839
+ "method": "onItemActionExecuted",
840
+ "target": "window",
841
+ "capture": false,
842
+ "passive": false
838
843
  }, {
839
844
  "name": "click",
840
845
  "method": "clickListener",