@sankhyalabs/ezui 6.5.0-dev.1 → 6.5.0-dev.11

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 (296) hide show
  1. package/dist/cjs/{ApplicationUtils-c1310a36.js → ApplicationUtils-5cc05979.js} +1 -1
  2. package/dist/cjs/{app-globals-701e1cea.js → app-globals-2fbe4b17.js} +1 -1
  3. package/dist/cjs/ez-actions-button.cjs.entry.js +3 -3
  4. package/dist/cjs/ez-alert-list.cjs.entry.js +2 -2
  5. package/dist/cjs/ez-alert.cjs.entry.js +1 -1
  6. package/dist/cjs/ez-application.cjs.entry.js +1 -1
  7. package/dist/cjs/ez-avatar.cjs.entry.js +2 -2
  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 +1 -1
  11. package/dist/cjs/ez-calendar.cjs.entry.js +2 -2
  12. package/dist/cjs/ez-card-item.cjs.entry.js +1 -1
  13. package/dist/cjs/ez-chart.cjs.entry.js +1 -1
  14. package/dist/cjs/ez-check.cjs.entry.js +1 -1
  15. package/dist/cjs/ez-chip.cjs.entry.js +27 -5
  16. package/dist/cjs/ez-classic-combo-box.cjs.entry.js +1 -1
  17. package/dist/cjs/ez-classic-input.cjs.entry.js +1 -1
  18. package/dist/cjs/ez-classic-text-area.cjs.entry.js +1 -1
  19. package/dist/cjs/ez-collapsible-box.cjs.entry.js +3 -3
  20. package/dist/cjs/ez-combo-box-list_4.cjs.entry.js +4 -4
  21. package/dist/cjs/ez-combo-box.cjs.entry.js +3 -3
  22. package/dist/cjs/ez-date-input.cjs.entry.js +2 -2
  23. package/dist/cjs/ez-date-time-input.cjs.entry.js +2 -2
  24. package/dist/cjs/ez-dialog.cjs.entry.js +2 -2
  25. package/dist/cjs/ez-double-list.cjs.entry.js +2 -2
  26. package/dist/cjs/ez-dropdown.cjs.entry.js +1 -1
  27. package/dist/cjs/ez-empty-card.cjs.entry.js +1 -1
  28. package/dist/cjs/ez-file-item.cjs.entry.js +2 -2
  29. package/dist/cjs/ez-filter-input.cjs.entry.js +1 -1
  30. package/dist/cjs/ez-form-view.cjs.entry.js +2 -2
  31. package/dist/cjs/ez-form.cjs.entry.js +4 -4
  32. package/dist/cjs/ez-grid.cjs.entry.js +26 -4
  33. package/dist/cjs/ez-guide-navigator.cjs.entry.js +2 -2
  34. package/dist/cjs/ez-icon.cjs.entry.js +1 -1
  35. package/dist/cjs/ez-link-builder_6.cjs.entry.js +2 -2
  36. package/dist/cjs/ez-list-item.cjs.entry.js +1 -1
  37. package/dist/cjs/ez-list.cjs.entry.js +2 -2
  38. package/dist/cjs/ez-loading-bar.cjs.entry.js +1 -1
  39. package/dist/cjs/ez-modal-container.cjs.entry.js +2 -2
  40. package/dist/cjs/ez-modal.cjs.entry.js +2 -2
  41. package/dist/cjs/ez-multi-selection-list.cjs.entry.js +11 -7
  42. package/dist/cjs/ez-number-input.cjs.entry.js +2 -2
  43. package/dist/cjs/ez-pagination.cjs.entry.js +117 -0
  44. package/dist/cjs/ez-popover-core.cjs.entry.js +1 -1
  45. package/dist/cjs/ez-popover-plus_3.cjs.entry.js +1 -1
  46. package/dist/cjs/ez-popover.cjs.entry.js +1 -1
  47. package/dist/cjs/ez-popup.cjs.entry.js +90 -30
  48. package/dist/cjs/ez-progress-bar.cjs.entry.js +1 -1
  49. package/dist/cjs/ez-radio-button.cjs.entry.js +1 -1
  50. package/dist/cjs/ez-rich-toolbar-item.cjs.entry.js +1 -1
  51. package/dist/cjs/ez-scroller_2.cjs.entry.js +1 -1
  52. package/dist/cjs/ez-search-plus.cjs.entry.js +3 -3
  53. package/dist/cjs/ez-search-result-list.cjs.entry.js +2 -2
  54. package/dist/cjs/ez-search.cjs.entry.js +3 -3
  55. package/dist/cjs/ez-sidebar-navigator.cjs.entry.js +2 -2
  56. package/dist/cjs/ez-skeleton.cjs.entry.js +2 -2
  57. package/dist/cjs/ez-sortable-list.cjs.entry.js +2 -2
  58. package/dist/cjs/ez-spinner.cjs.entry.js +2 -2
  59. package/dist/cjs/ez-split-button.cjs.entry.js +246 -71
  60. package/dist/cjs/ez-split-item.cjs.entry.js +3 -3
  61. package/dist/cjs/ez-split-panel.cjs.entry.js +1 -1
  62. package/dist/cjs/ez-tabselector.cjs.entry.js +2 -2
  63. package/dist/cjs/ez-tag-input.cjs.entry.js +245 -0
  64. package/dist/cjs/ez-tag.cjs.entry.js +1 -1
  65. package/dist/cjs/ez-text-area.cjs.entry.js +1 -1
  66. package/dist/cjs/ez-text-input.cjs.entry.js +2 -2
  67. package/dist/cjs/ez-tile-medium.cjs.entry.js +1 -1
  68. package/dist/cjs/ez-tile.cjs.entry.js +1 -1
  69. package/dist/cjs/ez-time-input.cjs.entry.js +2 -2
  70. package/dist/cjs/ez-toast.cjs.entry.js +1 -1
  71. package/dist/cjs/ez-tooltip.cjs.entry.js +1 -1
  72. package/dist/cjs/ez-tree.cjs.entry.js +2 -2
  73. package/dist/cjs/ez-underface.cjs.entry.js +1 -1
  74. package/dist/cjs/ez-upload.cjs.entry.js +3 -3
  75. package/dist/cjs/ez-view-stack.cjs.entry.js +1 -1
  76. package/dist/cjs/ezui.cjs.js +4 -4
  77. package/dist/cjs/filter-column.cjs.entry.js +2 -2
  78. package/dist/cjs/{index-b1103222.js → index-1be40f19.js} +18 -0
  79. package/dist/cjs/{index-a7b0c73d.js → index-9e5554cb.js} +11 -0
  80. package/dist/cjs/loader.cjs.js +4 -4
  81. package/dist/cjs/{search-column-f53f33f6.js → search-column-eee8d44d.js} +3 -3
  82. package/dist/collection/collection-manifest.json +2 -0
  83. package/dist/collection/components/ez-chip/ez-chip.css +7 -4
  84. package/dist/collection/components/ez-chip/ez-chip.js +61 -3
  85. package/dist/collection/components/ez-grid/controller/ag-grid/utils/buildLocaleText.js +1 -0
  86. package/dist/collection/components/ez-grid/ez-grid.js +85 -0
  87. package/dist/collection/components/ez-grid/utils/InMemoryFilterColumnDataSource.js +3 -0
  88. package/dist/collection/components/ez-multi-selection-list/ez-multi-selection-list.js +10 -6
  89. package/dist/collection/components/ez-pagination/ez-pagination.css +102 -0
  90. package/dist/collection/components/ez-pagination/ez-pagination.js +246 -0
  91. package/dist/collection/components/ez-popup/ez-popup.css +24 -40
  92. package/dist/collection/components/ez-popup/ez-popup.js +134 -29
  93. package/dist/collection/components/ez-popup/interfaces/EzButtonProps.js +1 -0
  94. package/dist/collection/components/ez-split-button/ez-split-button.css +256 -116
  95. package/dist/collection/components/ez-split-button/ez-split-button.js +390 -76
  96. package/dist/collection/components/ez-split-button/test/dropdownItems.js +4 -4
  97. package/dist/collection/components/ez-tabselector/ez-tabselector.css +5 -1
  98. package/dist/collection/components/ez-tag-input/ez-tag-input.css +163 -0
  99. package/dist/collection/components/ez-tag-input/ez-tag-input.js +703 -0
  100. package/dist/collection/components/ez-tag-input/interfaces/optionsSetFocus.js +1 -0
  101. package/dist/collection/components/ez-text-input/ez-text-input.css +0 -4
  102. package/dist/collection/utils/i18n/locales/en-us.js +6 -0
  103. package/dist/collection/utils/i18n/locales/es-es.js +6 -0
  104. package/dist/collection/utils/i18n/locales/pt-br.js +6 -0
  105. package/dist/custom-elements/index.d.ts +12 -0
  106. package/dist/custom-elements/index.js +766 -114
  107. package/dist/esm/{ApplicationUtils-bda1789e.js → ApplicationUtils-1569f757.js} +1 -1
  108. package/dist/esm/{app-globals-bbd79783.js → app-globals-c0ac93c0.js} +1 -1
  109. package/dist/esm/ez-actions-button.entry.js +3 -3
  110. package/dist/esm/ez-alert-list.entry.js +2 -2
  111. package/dist/esm/ez-alert.entry.js +1 -1
  112. package/dist/esm/ez-application.entry.js +1 -1
  113. package/dist/esm/ez-avatar.entry.js +2 -2
  114. package/dist/esm/ez-badge.entry.js +1 -1
  115. package/dist/esm/ez-breadcrumb.entry.js +1 -1
  116. package/dist/esm/ez-button.entry.js +1 -1
  117. package/dist/esm/ez-calendar.entry.js +2 -2
  118. package/dist/esm/ez-card-item.entry.js +1 -1
  119. package/dist/esm/ez-chart.entry.js +1 -1
  120. package/dist/esm/ez-check.entry.js +1 -1
  121. package/dist/esm/ez-chip.entry.js +27 -5
  122. package/dist/esm/ez-classic-combo-box.entry.js +1 -1
  123. package/dist/esm/ez-classic-input.entry.js +1 -1
  124. package/dist/esm/ez-classic-text-area.entry.js +1 -1
  125. package/dist/esm/ez-collapsible-box.entry.js +3 -3
  126. package/dist/esm/ez-combo-box-list_4.entry.js +4 -4
  127. package/dist/esm/ez-combo-box.entry.js +3 -3
  128. package/dist/esm/ez-date-input.entry.js +2 -2
  129. package/dist/esm/ez-date-time-input.entry.js +2 -2
  130. package/dist/esm/ez-dialog.entry.js +2 -2
  131. package/dist/esm/ez-double-list.entry.js +2 -2
  132. package/dist/esm/ez-dropdown.entry.js +1 -1
  133. package/dist/esm/ez-empty-card.entry.js +1 -1
  134. package/dist/esm/ez-file-item.entry.js +2 -2
  135. package/dist/esm/ez-filter-input.entry.js +1 -1
  136. package/dist/esm/ez-form-view.entry.js +2 -2
  137. package/dist/esm/ez-form.entry.js +4 -4
  138. package/dist/esm/ez-grid.entry.js +26 -4
  139. package/dist/esm/ez-guide-navigator.entry.js +2 -2
  140. package/dist/esm/ez-icon.entry.js +1 -1
  141. package/dist/esm/ez-link-builder_6.entry.js +2 -2
  142. package/dist/esm/ez-list-item.entry.js +1 -1
  143. package/dist/esm/ez-list.entry.js +2 -2
  144. package/dist/esm/ez-loading-bar.entry.js +1 -1
  145. package/dist/esm/ez-modal-container.entry.js +2 -2
  146. package/dist/esm/ez-modal.entry.js +2 -2
  147. package/dist/esm/ez-multi-selection-list.entry.js +11 -7
  148. package/dist/esm/ez-number-input.entry.js +2 -2
  149. package/dist/esm/ez-pagination.entry.js +113 -0
  150. package/dist/esm/ez-popover-core.entry.js +1 -1
  151. package/dist/esm/ez-popover-plus_3.entry.js +1 -1
  152. package/dist/esm/ez-popover.entry.js +1 -1
  153. package/dist/esm/ez-popup.entry.js +90 -30
  154. package/dist/esm/ez-progress-bar.entry.js +1 -1
  155. package/dist/esm/ez-radio-button.entry.js +1 -1
  156. package/dist/esm/ez-rich-toolbar-item.entry.js +1 -1
  157. package/dist/esm/ez-scroller_2.entry.js +1 -1
  158. package/dist/esm/ez-search-plus.entry.js +3 -3
  159. package/dist/esm/ez-search-result-list.entry.js +2 -2
  160. package/dist/esm/ez-search.entry.js +3 -3
  161. package/dist/esm/ez-sidebar-navigator.entry.js +2 -2
  162. package/dist/esm/ez-skeleton.entry.js +2 -2
  163. package/dist/esm/ez-sortable-list.entry.js +2 -2
  164. package/dist/esm/ez-spinner.entry.js +2 -2
  165. package/dist/esm/ez-split-button.entry.js +246 -71
  166. package/dist/esm/ez-split-item.entry.js +3 -3
  167. package/dist/esm/ez-split-panel.entry.js +1 -1
  168. package/dist/esm/ez-tabselector.entry.js +2 -2
  169. package/dist/esm/ez-tag-input.entry.js +241 -0
  170. package/dist/esm/ez-tag.entry.js +1 -1
  171. package/dist/esm/ez-text-area.entry.js +1 -1
  172. package/dist/esm/ez-text-input.entry.js +2 -2
  173. package/dist/esm/ez-tile-medium.entry.js +1 -1
  174. package/dist/esm/ez-tile.entry.js +1 -1
  175. package/dist/esm/ez-time-input.entry.js +2 -2
  176. package/dist/esm/ez-toast.entry.js +1 -1
  177. package/dist/esm/ez-tooltip.entry.js +1 -1
  178. package/dist/esm/ez-tree.entry.js +2 -2
  179. package/dist/esm/ez-underface.entry.js +1 -1
  180. package/dist/esm/ez-upload.entry.js +3 -3
  181. package/dist/esm/ez-view-stack.entry.js +1 -1
  182. package/dist/esm/ezui.js +5 -5
  183. package/dist/esm/filter-column.entry.js +2 -2
  184. package/dist/esm/{index-d5042cb2.js → index-41363fa6.js} +18 -0
  185. package/dist/esm/{index-baa5e267.js → index-5a720e56.js} +11 -1
  186. package/dist/esm/loader.js +5 -5
  187. package/dist/esm/{search-column-9a00bd0b.js → search-column-56b69bf7.js} +3 -3
  188. package/dist/ezui/ezui.esm.js +1 -1
  189. package/dist/ezui/{p-e75c7a23.entry.js → p-000159dc.entry.js} +1 -1
  190. package/dist/ezui/{p-44caad9a.entry.js → p-0378416a.entry.js} +1 -1
  191. package/dist/ezui/{p-93e1c917.entry.js → p-05e68ab3.entry.js} +1 -1
  192. package/dist/ezui/{p-3bf7f94b.entry.js → p-06ed5e57.entry.js} +1 -1
  193. package/dist/ezui/{p-288631d1.entry.js → p-06f1b8e4.entry.js} +1 -1
  194. package/dist/ezui/{p-25371eb3.entry.js → p-09c2e631.entry.js} +1 -1
  195. package/dist/ezui/{p-fa6cff27.entry.js → p-0aed37a1.entry.js} +1 -1
  196. package/dist/ezui/{p-6d596a5a.entry.js → p-0b531233.entry.js} +1 -1
  197. package/dist/ezui/p-14d6aeb8.entry.js +1 -0
  198. package/dist/ezui/{p-6f77a359.entry.js → p-1723f728.entry.js} +1 -1
  199. package/dist/ezui/{p-feb22018.entry.js → p-172abd0f.entry.js} +1 -1
  200. package/dist/ezui/{p-c8067ed6.entry.js → p-1857cfc0.entry.js} +1 -1
  201. package/dist/ezui/{p-2e6c767f.entry.js → p-1b233888.entry.js} +1 -1
  202. package/dist/ezui/{p-7e535712.entry.js → p-1c29ed5d.entry.js} +1 -1
  203. package/dist/ezui/{p-07a6c41e.entry.js → p-2000464a.entry.js} +1 -1
  204. package/dist/ezui/{p-732f7790.js → p-20cb76e7.js} +1 -1
  205. package/dist/ezui/{p-603ef267.entry.js → p-3234f883.entry.js} +1 -1
  206. package/dist/ezui/{p-200b0745.entry.js → p-4177cec6.entry.js} +1 -1
  207. package/dist/ezui/{p-9ce9e8b7.entry.js → p-43e040a5.entry.js} +2 -2
  208. package/dist/ezui/p-4463db7b.entry.js +1 -0
  209. package/dist/ezui/{p-fa6732f2.entry.js → p-44b39e81.entry.js} +1 -1
  210. package/dist/ezui/{p-e085c7f4.entry.js → p-4837f475.entry.js} +1 -1
  211. package/dist/ezui/{p-4d30b703.entry.js → p-4a876b8b.entry.js} +1 -1
  212. package/dist/ezui/{p-01bd20e4.entry.js → p-4b444fe9.entry.js} +1 -1
  213. package/dist/ezui/{p-15a5d68c.entry.js → p-4ca4d920.entry.js} +1 -1
  214. package/dist/ezui/{p-78436126.entry.js → p-4f72c118.entry.js} +1 -1
  215. package/dist/ezui/{p-6369a0cd.entry.js → p-51e34317.entry.js} +1 -1
  216. package/dist/ezui/p-5554704c.js +1 -0
  217. package/dist/ezui/{p-48effc69.entry.js → p-570cf58a.entry.js} +1 -1
  218. package/dist/ezui/{p-dee18824.entry.js → p-5f4a66ec.entry.js} +1 -1
  219. package/dist/ezui/{p-1f50fa05.entry.js → p-6b51c9cc.entry.js} +1 -1
  220. package/dist/ezui/{p-dd0613fd.entry.js → p-6b6efa30.entry.js} +1 -1
  221. package/dist/ezui/{p-3eb7bf6f.entry.js → p-6dbf8f75.entry.js} +1 -1
  222. package/dist/ezui/p-6ec40dec.entry.js +1 -0
  223. package/dist/ezui/{p-5ed81457.entry.js → p-6fc26622.entry.js} +1 -1
  224. package/dist/ezui/{p-4beae367.entry.js → p-71c55a72.entry.js} +1 -1
  225. package/dist/ezui/{p-d6f50207.entry.js → p-770cf2b8.entry.js} +1 -1
  226. package/dist/ezui/{p-a738e919.entry.js → p-7820c5c0.entry.js} +1 -1
  227. package/dist/ezui/{p-91c9d50e.entry.js → p-78e975b4.entry.js} +1 -1
  228. package/dist/ezui/{p-1e7a8633.entry.js → p-81461d2f.entry.js} +1 -1
  229. package/dist/ezui/{p-8df1ca33.entry.js → p-82fa4b09.entry.js} +1 -1
  230. package/dist/ezui/{p-b21fc2d3.entry.js → p-8bc350de.entry.js} +1 -1
  231. package/dist/ezui/p-8ca90a5e.entry.js +1 -0
  232. package/dist/ezui/{p-6aa843bd.entry.js → p-8ea2a2f5.entry.js} +1 -1
  233. package/dist/ezui/{p-37bd03db.entry.js → p-8f0ed69d.entry.js} +1 -1
  234. package/dist/ezui/{p-a3075f52.entry.js → p-9bcfa689.entry.js} +1 -1
  235. package/dist/ezui/{p-946c1c66.entry.js → p-a5f5da25.entry.js} +1 -1
  236. package/dist/ezui/{p-cb46afc5.js → p-a61fdd20.js} +1 -1
  237. package/dist/ezui/p-a646b54e.entry.js +1 -0
  238. package/dist/ezui/{p-0ab05249.entry.js → p-a8eadb43.entry.js} +1 -1
  239. package/dist/ezui/{p-d6742c1e.entry.js → p-a9432878.entry.js} +1 -1
  240. package/dist/ezui/{p-90cece02.entry.js → p-ad7c01c1.entry.js} +1 -1
  241. package/dist/ezui/{p-3005b0ec.entry.js → p-b2ce629f.entry.js} +1 -1
  242. package/dist/ezui/{p-b1e39171.entry.js → p-b6a8112c.entry.js} +1 -1
  243. package/dist/ezui/{p-7fe97ef5.entry.js → p-b7c6ce20.entry.js} +1 -1
  244. package/dist/ezui/{p-ef33aaac.js → p-baec56c9.js} +1 -1
  245. package/dist/ezui/p-bc693db6.entry.js +1 -0
  246. package/dist/ezui/p-c291d6a0.entry.js +1 -0
  247. package/dist/ezui/{p-9f5fa3f9.entry.js → p-c2b20f78.entry.js} +1 -1
  248. package/dist/ezui/p-c3ff0370.entry.js +1 -0
  249. package/dist/ezui/{p-c0d9c4f8.entry.js → p-c754774e.entry.js} +1 -1
  250. package/dist/ezui/{p-d2645bdf.entry.js → p-c96e536d.entry.js} +1 -1
  251. package/dist/ezui/{p-4fd1d098.entry.js → p-c9d70dab.entry.js} +1 -1
  252. package/dist/ezui/{p-20c024f7.entry.js → p-cf33bc48.entry.js} +1 -1
  253. package/dist/ezui/{p-53bc30a1.entry.js → p-cf4e2a35.entry.js} +1 -1
  254. package/dist/ezui/{p-e577d4fe.entry.js → p-d1765c77.entry.js} +1 -1
  255. package/dist/ezui/{p-9b2e6438.entry.js → p-d3779449.entry.js} +1 -1
  256. package/dist/ezui/{p-c84aa65f.entry.js → p-dd46153f.entry.js} +1 -1
  257. package/dist/ezui/{p-e33be0f9.entry.js → p-df5b5c3d.entry.js} +1 -1
  258. package/dist/ezui/{p-a80b1287.entry.js → p-dfca5946.entry.js} +1 -1
  259. package/dist/ezui/{p-7f792043.entry.js → p-e195eaad.entry.js} +1 -1
  260. package/dist/ezui/{p-23a36bb6.js → p-e4c7eb39.js} +2 -2
  261. package/dist/ezui/{p-0629f64b.entry.js → p-e6eaa5ed.entry.js} +1 -1
  262. package/dist/ezui/{p-e7a7c594.entry.js → p-e9b409c1.entry.js} +1 -1
  263. package/dist/ezui/{p-79044c3e.entry.js → p-ea053063.entry.js} +1 -1
  264. package/dist/ezui/{p-a3ada561.entry.js → p-f26b97e9.entry.js} +1 -1
  265. package/dist/ezui/p-fcdc8089.entry.js +1 -0
  266. package/dist/ezui/{p-a029afd0.entry.js → p-feea8ad8.entry.js} +1 -1
  267. package/dist/ezui/{p-ca36ac0a.entry.js → p-ffdf68cd.entry.js} +1 -1
  268. package/dist/types/components/ez-chip/ez-chip.d.ts +11 -0
  269. package/dist/types/components/ez-grid/controller/ag-grid/utils/buildLocaleText.d.ts +1 -0
  270. package/dist/types/components/ez-grid/ez-grid.d.ts +11 -1
  271. package/dist/types/components/ez-grid/utils/InMemoryFilterColumnDataSource.d.ts +1 -0
  272. package/dist/types/components/ez-multi-selection-list/ez-multi-selection-list.d.ts +2 -1
  273. package/dist/types/components/ez-multi-selection-list/interfaces/IMultiSelectionListDataSource.d.ts +1 -0
  274. package/dist/types/components/ez-pagination/ez-pagination.d.ts +47 -0
  275. package/dist/types/components/ez-popup/ez-popup.d.ts +16 -3
  276. package/dist/types/components/ez-popup/interfaces/EzButtonProps.d.ts +28 -0
  277. package/dist/types/components/ez-split-button/ez-split-button.d.ts +93 -8
  278. package/dist/types/components/ez-tag-input/ez-tag-input.d.ts +93 -0
  279. package/dist/types/components/ez-tag-input/interfaces/optionsSetFocus.d.ts +4 -0
  280. package/dist/types/components.d.ts +416 -7
  281. package/dist/types/utils/i18n/locales/en-us.d.ts +6 -0
  282. package/dist/types/utils/i18n/locales/es-es.d.ts +6 -0
  283. package/dist/types/utils/i18n/locales/pt-br.d.ts +6 -0
  284. package/dist/types/utils/i18n/translations.d.ts +18 -0
  285. package/package.json +1 -1
  286. package/react/components.d.ts +2 -0
  287. package/react/components.js +2 -0
  288. package/react/components.js.map +1 -1
  289. package/dist/ezui/p-2f01f656.entry.js +0 -1
  290. package/dist/ezui/p-8d90530b.entry.js +0 -1
  291. package/dist/ezui/p-9c5cd3b2.entry.js +0 -1
  292. package/dist/ezui/p-bc2f844e.entry.js +0 -1
  293. package/dist/ezui/p-d8cc640d.entry.js +0 -1
  294. package/dist/ezui/p-f8a5538b.entry.js +0 -1
  295. package/dist/ezui/p-fac16755.js +0 -1
  296. package/dist/ezui/p-fcdc7d0b.entry.js +0 -1
@@ -1 +1 @@
1
- import{r as t,c as i,h as s,H as o,g as e}from"./p-23a36bb6.js";import{ObjectUtils as h,ElementIDUtils as r}from"@sankhyalabs/core";import"./p-ef33aaac.js";import{C as n}from"./p-ec7db713.js";import"./p-ab574d59.js";import"./p-b853763b.js";import{i as a}from"./p-cb46afc5.js";import"./p-30ffb9ed.js";const l=class{constructor(s){t(this,s),this.ezChange=i(this,"ezChange",7),this._changeDeboucingTimeout=null,this._deboucingTime=300,this._maxWidthValue=0,this._tabPressed=!1,this._lookupMode=!1,this.isOpen=!1,this._preSelection=void 0,this._visibleOptions=void 0,this._startLoading=!1,this._showLoading=!0,this._criteria=void 0,this.limitCharsToSearch=3,this.value=void 0,this.label=void 0,this.enabled=!0,this.options=void 0,this.errorMessage=void 0,this.showSelectedValue=!1,this.showOptionValue=!1,this.suppressSearch=!1,this.optionLoader=void 0,this.suppressEmptyOption=!1,this.stopPropagateEnterKeyEvent=!0,this.canShowError=!0,this.mode="regular",this.hideErrorOnFocusOut=!0,this.listOptionsPosition=void 0,this.isTextSearch=!1,this.autoFocus=!1,this.preventAutoFocus=!1,this.alternativePlaceholder=void 0,this.textEmptyOption=void 0}observeErrorMessage(){var t;this._textInput&&(this._textInput.errorMessage=this.errorMessage,(null===(t=this.errorMessage)||void 0===t?void 0:t.trim())||this.setInputValue())}observeValue(t,i){if(this._textInput&&t!=i)try{if("string"==typeof t)return void this.setInputValue();const s=this.getSelectedOption(t),o=this.getSelectedOption(i),e=this.getSelectedOption(this.value);this.isDifferentValues(e,s)&&(this.value=s),this.isDifferentValues(s,o)&&(this.setInputValue(),this._lookupMode||this.ezChange.emit(null===s?void 0:s)),this.resetOptions()}finally{this._lookupMode=!1}}observeOptions(t,i){h.equals(t,i)||this.loadOptions(d.PRELOAD)}async getValueAsync(){return new Promise(this._showLoading?t=>{let i=setInterval((()=>{this._showLoading||(clearInterval(i),t(this.sanitizeValue(this.value)))}),100)}:t=>t(this.sanitizeValue(this.value)))}async setFocus(t){this._textInput&&this._textInput.setFocus(t)}async setBlur(){this._textInput&&this._textInput.setBlur()}async isInvalid(){return"string"==typeof this.errorMessage&&""!==this.errorMessage.trim()}async clearValue(){this.clearSearch()}isDifferentValues(t,i){return h.objectToString(t||{})!==h.objectToString(i||{})}getFormattedText(t){if(null!=t)return this.showSelectedValue&&null!=t.value?t.label?`${t.value} - ${t.label}`:t.value:t.label}getText(){const t=this.getSelectedOption(this.sanitizeValue(this.value)),i=this.getFormattedText(t);if(null!=i)return String(i).replace(/&amp;/g,"&").replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&quot;/g,'"')}getSelectedOption(t){return"string"==typeof t||t instanceof String?this._visibleOptions.find((i=>i.value===t)):t}updateVisibleOptions(){let t=this._source||[];if(this._criteria){const i=this._criteria.toUpperCase();t=t.filter((t=>t.label.toLocaleUpperCase().indexOf(i)>-1))}this.hasToAddEmptyoption(t)&&(t=[{value:void 0,label:this.textEmptyOption||this.i18n("ez-combo-box.placeholder")}].concat(t)),this._visibleOptions=t,this._maxWidthValue=this.getMaxWidthValue()}hasToAddEmptyoption(t){return!this.suppressEmptyOption&&!t.filter((t=>!t.value)).length}getMaxWidthValue(){var t;if(this.showOptionValue){const i=[];return null===(t=this._visibleOptions)||void 0===t||t.forEach((t=>{const s=this.getWidthValue(t.value);i.includes(s)||i.push(s)})),i.length>1?Math.max(...i):0}return 0}getWidthValue(t){if(null!=this._itemValueBasis){const i=this._itemValueBasis;if(null!=t)return i.innerHTML=t,i.clientWidth>0?i.clientWidth+2:0;i.innerHTML=""}return 0}async showOptions(){var t,i;if(!this.enabled)return;await this.openPopover();const s=null!==(i=null===(t=this.value)||void 0===t?void 0:t.value)&&void 0!==i?i:this.value,o=this._visibleOptions.findIndex((t=>t.value===s));this._preSelection=-1===o?0:o,this._resizeObserver&&this._resizeObserver.observe(this._textInput),this.preventAutoFocus||await this.setFocus()}hideOptions(){var t;null===(t=this._popover)||void 0===t||t.hide(),this._resizeObserver&&this._resizeObserver.unobserve(this._textInput)}updateSource(t){this._startLoading=!1,t instanceof Promise?(this._showLoading=!0,t.then((t=>{this._showLoading=!1,this.updateSource(t)})).catch((()=>this._showLoading=!1)),this.updateVisibleOptions()):(this._showLoading=!1,Array.isArray(t)?(this._source=t,this.updateVisibleOptions(),this._tabPressed&&(this._tabPressed=!1)):this.selectOption(t))}selectOption(t,i=!0){var s,o,e;const h=this.getSelectedOption(this.value);(null===(s=null==h?void 0:h.value)||void 0===s?void 0:s.toString())!==(null===(o=null==t?void 0:t.value)||void 0===o?void 0:o.toString())||null==h&&null!=t&&"value"in t?(this.value=(null==t?void 0:t.value)?t:void 0,null===(e=this._popover)||void 0===e||e.hide()):this.resetOptions(),i&&setTimeout((()=>{this.setFocus()}),0)}loadOptions(t,i=""){this._criteria=i,this._startLoading=!0,this.updateSource(this.optionLoader?this.optionLoader({mode:t,argument:i}):this.options)}cancelPreselection(){!this._textInput.value&&this.sanitizeValue(this.value)?this.selectOption(void 0):window.setTimeout((()=>{this.setInputValue(!1)}),this._deboucingTime)}setInputValue(t=!0){const i=this.getText();(this._textInput.value||"")!==i&&(this._textInput.value=i,t&&(this.errorMessage=null))}clearSearch(){this.value=null}resetOptions(){this.hideOptions(),this._criteria=void 0,this._preSelection=void 0,this.updateVisibleOptions()}sanitizeValue(t){if("undefined"!==t&&"null"!==t)return t}async componentWillLoad(){if(this.i18n=await a(),void 0===this.options){this.options=[];const t=this.el.querySelectorAll("option");t&&t.forEach((t=>{let i=t.innerText,s=t.getAttribute("value");s||(s=i),this.options.push({label:i,value:s}),t.hidden=!0}))}this.loadOptions(d.PRELOAD)}setResizeObserver(){this._resizeObserver=new ResizeObserver((t=>{window.requestAnimationFrame((()=>{Array.isArray(t)&&t.length&&this._textInput&&this._comboBoxList&&(this._comboBoxList.width=this._textInput.clientWidth)}))}))}connectedCallback(){this._resizeObserver||this.setResizeObserver()}componentDidLoad(){n.applyVarsTextInput(this.el,this._textInput),this.setInputValue(!1),this.setResizeObserver(),this.autoFocus&&requestAnimationFrame((()=>{this.setFocus({selectText:!0})}))}disconnectedCallback(){var t;null===(t=this._popover)||void 0===t||t.remove(),this._resizeObserver&&(this._resizeObserver.disconnect(),this._resizeObserver=null)}handlerIconClick(){this.showOptions()}onTextInputChangeHandler(t){var i;if(this.clearDeboucingTimeout(),this._startLoading)return void(this._changeDeboucingTimeout=window.setTimeout((()=>{this.onTextInputChangeHandler(t)}),this._deboucingTime));const s=null===(i=t.target.value)||void 0===i?void 0:i.trim();this._criteria||(this._textInput.value=t.data||s),this._criteria=s,s?(this.updateVisibleOptions(),this.showOptions()):(this._preSelection=void 0,this.updateVisibleOptions())}clearDeboucingTimeout(){this._changeDeboucingTimeout&&(window.clearTimeout(this._changeDeboucingTimeout),this._changeDeboucingTimeout=null)}onTextInputClickHandler(){this.showOptions()}keyDownHandler(t){var i,s,o,e,h,r;if(t.ctrlKey&&("f"===t.key||"F"===t.key))return this.loadOptions(d.ADVANCED),t.preventDefault(),void t.stopPropagation();switch(t.key){case"ArrowDown":t.preventDefault(),this.canShowListOptions()&&(this.showOptions(),null===(i=this._comboBoxList)||void 0===i||i.nextOption());break;case"ArrowUp":t.preventDefault(),this.canShowListOptions()&&(this.showOptions(),null===(s=this._comboBoxList)||void 0===s||s.previousOption());break;case"Enter":this.isOpen&&(t.preventDefault(),null===(o=this._comboBoxList)||void 0===o||o.selectCurrentOption());break;case"Escape":this.isOpen&&(t.preventDefault(),null===(e=this._popover)||void 0===e||e.hide());break;case"Tab":this._tabPressed=!0,this.isOpen&&(null===(h=this._comboBoxList)||void 0===h||h.selectCurrentOption(),null===(r=this._popover)||void 0===r||r.hide())}}onTextInputFocusOutHandler(){this.hideErrorOnFocusOut&&this.cancelPreselection()}canShowListOptions(){return!this._showLoading&&this._visibleOptions.length>0}async openPopover(){var t;this.isOpen=!0,await(null===(t=this._popover)||void 0===t?void 0:t.showUnder(this._textInput))}render(){var t;return r.addIDInfoIfNotExists(this.el,"input"),s(o,null,s("ez-text-input",{"data-element-id":r.getInternalIDInfo("textInput"),class:"text-input-slot-container "+(this.suppressSearch?"suppressed-search-input":""),ref:t=>this._textInput=t,"data-slave-mode":"true",enabled:this.enabled&&!this.suppressSearch,onInput:t=>this.onTextInputChangeHandler(t),onClick:()=>this.onTextInputClickHandler(),onFocusout:()=>this.onTextInputFocusOutHandler(),onKeyDown:t=>this.keyDownHandler(t),label:this.label,canShowError:this.canShowError,errorMessage:this.errorMessage,mode:this.mode,alternativePlaceholder:this.alternativePlaceholder||this.i18n("ez-combo-box.placeholder")},s("button",{class:"btn",slot:"rightIcon",disabled:!this.enabled,tabindex:-1,onClick:()=>this.handlerIconClick()},s("ez-icon",{iconName:"chevron-down"}))),s("ez-popover-plus",{ref:t=>this._popover=t,anchorElement:this._textInput,autoClose:!0,boxWidth:"fit-content",overlayType:"none",onEzVisibilityChange:t=>this.isOpen=t.detail,"data-element-id":this.el.getAttribute("data-element-id")},s("ez-combo-box-list",{ref:t=>this._comboBoxList=t,showLoading:this._showLoading,visibleOptions:this._visibleOptions,textEmptyList:this.i18n("ez-combo-box.noResults"),showOptionValue:this.showOptionValue,preSelection:this._preSelection,maxWidth:this._maxWidthValue,width:null===(t=this._textInput)||void 0===t?void 0:t.clientWidth,onOptionSelect:t=>this.selectOption(t),onOptionHover:t=>this._preSelection=t})))}get el(){return e(this)}static get watchers(){return{errorMessage:["observeErrorMessage"],value:["observeValue"],options:["observeOptions"]}}};var d;!function(t){t.ADVANCED="ADVANCED",t.PRELOAD="PRELOAD",t.PREDICTIVE="PREDICTIVE"}(d||(d={})),l.style=":host{--ez-combo-box--height:42px;--ez-combo-box--width:100%;--ez-combo-box--border-radius:var(--border--radius-medium, 12px);--ez-combo-box--font-size:var(--text--medium, 14px);--ez-combo-box--font-family:var(--font-pattern, Arial);--ez-combo-box--background-color--xlight:var(--background--xlight, #fff);--ez-combo-box__input--background-color:var(--background--medium, #e0e0e0);--ez-combo-box__input--border:var(--border--medium, 2px solid);--ez-combo-box__input--border-color:var(--ez-combo-box__input--background-color);--ez-combo-box__input--focus--border-color:var(--color--primary, #008561);--ez-combo-box__input--disabled--background-color:var(--color--disable-secondary, #F2F5F8);--ez-combo-box__input--disabled--color:var(--text--disable, #AFB6C0);--ez-combo-box__btn--color:var(--title--primary, #2B3A54);--ez-combo-box__btn-disabled--color:var(--text--disable, #AFB6C0);--ez-combo-box__btn-hover--color:var(--color--primary, #4e4e4e);width:var(--ez-combo-box--width)}ez-icon{--ez-icon--color:inherit;font-weight:var(--text-weight--large, 600)}.suppressed-search-input{--ez-text-input__input--border-color:var(--color--strokes, #dce0e8);--ez-text-input__input--disabled--background-color:var(--background--xlight, #fff);--ez-text-input__input--disabled--color:var(--title--primary, #2B3A54)}.btn{outline:none;border:none;background:none;cursor:pointer;padding:0px;color:var(--ez-combo-box__btn--color)}.btn:disabled{cursor:unset;color:var(--ez-combo-box__btn-disabled--color)}.btn:disabled:hover{cursor:not-allowed;color:var(--ez-combo-box__btn-disabled--color)}.btn:hover{color:var(--ez-combo-box__btn-hover--color)}.btn__close{visibility:hidden}ez-text-input:hover .btn__close,ez-text-input:focus .btn__close{visibility:visible}.text-input-slot-container{--ez-text-input__icon--width:32px;--ez-text-input__min-width:var(--ez-combo-box__min-width);--ez-text-input__max-width:var(--ez-combo-box__max-width)}@-webkit-keyframes spin{0%{-webkit-transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg)}}@keyframes spin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}";export{l as ez_combo_box}
1
+ import{r as t,c as i,h as s,H as o,g as e}from"./p-e4c7eb39.js";import{ObjectUtils as h,ElementIDUtils as r}from"@sankhyalabs/core";import"./p-baec56c9.js";import{C as n}from"./p-ec7db713.js";import"./p-ab574d59.js";import"./p-b853763b.js";import{i as a}from"./p-a61fdd20.js";import"./p-30ffb9ed.js";const l=class{constructor(s){t(this,s),this.ezChange=i(this,"ezChange",7),this._changeDeboucingTimeout=null,this._deboucingTime=300,this._maxWidthValue=0,this._tabPressed=!1,this._lookupMode=!1,this.isOpen=!1,this._preSelection=void 0,this._visibleOptions=void 0,this._startLoading=!1,this._showLoading=!0,this._criteria=void 0,this.limitCharsToSearch=3,this.value=void 0,this.label=void 0,this.enabled=!0,this.options=void 0,this.errorMessage=void 0,this.showSelectedValue=!1,this.showOptionValue=!1,this.suppressSearch=!1,this.optionLoader=void 0,this.suppressEmptyOption=!1,this.stopPropagateEnterKeyEvent=!0,this.canShowError=!0,this.mode="regular",this.hideErrorOnFocusOut=!0,this.listOptionsPosition=void 0,this.isTextSearch=!1,this.autoFocus=!1,this.preventAutoFocus=!1,this.alternativePlaceholder=void 0,this.textEmptyOption=void 0}observeErrorMessage(){var t;this._textInput&&(this._textInput.errorMessage=this.errorMessage,(null===(t=this.errorMessage)||void 0===t?void 0:t.trim())||this.setInputValue())}observeValue(t,i){if(this._textInput&&t!=i)try{if("string"==typeof t)return void this.setInputValue();const s=this.getSelectedOption(t),o=this.getSelectedOption(i),e=this.getSelectedOption(this.value);this.isDifferentValues(e,s)&&(this.value=s),this.isDifferentValues(s,o)&&(this.setInputValue(),this._lookupMode||this.ezChange.emit(null===s?void 0:s)),this.resetOptions()}finally{this._lookupMode=!1}}observeOptions(t,i){h.equals(t,i)||this.loadOptions(d.PRELOAD)}async getValueAsync(){return new Promise(this._showLoading?t=>{let i=setInterval((()=>{this._showLoading||(clearInterval(i),t(this.sanitizeValue(this.value)))}),100)}:t=>t(this.sanitizeValue(this.value)))}async setFocus(t){this._textInput&&this._textInput.setFocus(t)}async setBlur(){this._textInput&&this._textInput.setBlur()}async isInvalid(){return"string"==typeof this.errorMessage&&""!==this.errorMessage.trim()}async clearValue(){this.clearSearch()}isDifferentValues(t,i){return h.objectToString(t||{})!==h.objectToString(i||{})}getFormattedText(t){if(null!=t)return this.showSelectedValue&&null!=t.value?t.label?`${t.value} - ${t.label}`:t.value:t.label}getText(){const t=this.getSelectedOption(this.sanitizeValue(this.value)),i=this.getFormattedText(t);if(null!=i)return String(i).replace(/&amp;/g,"&").replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&quot;/g,'"')}getSelectedOption(t){return"string"==typeof t||t instanceof String?this._visibleOptions.find((i=>i.value===t)):t}updateVisibleOptions(){let t=this._source||[];if(this._criteria){const i=this._criteria.toUpperCase();t=t.filter((t=>t.label.toLocaleUpperCase().indexOf(i)>-1))}this.hasToAddEmptyoption(t)&&(t=[{value:void 0,label:this.textEmptyOption||this.i18n("ez-combo-box.placeholder")}].concat(t)),this._visibleOptions=t,this._maxWidthValue=this.getMaxWidthValue()}hasToAddEmptyoption(t){return!this.suppressEmptyOption&&!t.filter((t=>!t.value)).length}getMaxWidthValue(){var t;if(this.showOptionValue){const i=[];return null===(t=this._visibleOptions)||void 0===t||t.forEach((t=>{const s=this.getWidthValue(t.value);i.includes(s)||i.push(s)})),i.length>1?Math.max(...i):0}return 0}getWidthValue(t){if(null!=this._itemValueBasis){const i=this._itemValueBasis;if(null!=t)return i.innerHTML=t,i.clientWidth>0?i.clientWidth+2:0;i.innerHTML=""}return 0}async showOptions(){var t,i;if(!this.enabled)return;await this.openPopover();const s=null!==(i=null===(t=this.value)||void 0===t?void 0:t.value)&&void 0!==i?i:this.value,o=this._visibleOptions.findIndex((t=>t.value===s));this._preSelection=-1===o?0:o,this._resizeObserver&&this._resizeObserver.observe(this._textInput),this.preventAutoFocus||await this.setFocus()}hideOptions(){var t;null===(t=this._popover)||void 0===t||t.hide(),this._resizeObserver&&this._resizeObserver.unobserve(this._textInput)}updateSource(t){this._startLoading=!1,t instanceof Promise?(this._showLoading=!0,t.then((t=>{this._showLoading=!1,this.updateSource(t)})).catch((()=>this._showLoading=!1)),this.updateVisibleOptions()):(this._showLoading=!1,Array.isArray(t)?(this._source=t,this.updateVisibleOptions(),this._tabPressed&&(this._tabPressed=!1)):this.selectOption(t))}selectOption(t,i=!0){var s,o,e;const h=this.getSelectedOption(this.value);(null===(s=null==h?void 0:h.value)||void 0===s?void 0:s.toString())!==(null===(o=null==t?void 0:t.value)||void 0===o?void 0:o.toString())||null==h&&null!=t&&"value"in t?(this.value=(null==t?void 0:t.value)?t:void 0,null===(e=this._popover)||void 0===e||e.hide()):this.resetOptions(),i&&setTimeout((()=>{this.setFocus()}),0)}loadOptions(t,i=""){this._criteria=i,this._startLoading=!0,this.updateSource(this.optionLoader?this.optionLoader({mode:t,argument:i}):this.options)}cancelPreselection(){!this._textInput.value&&this.sanitizeValue(this.value)?this.selectOption(void 0):window.setTimeout((()=>{this.setInputValue(!1)}),this._deboucingTime)}setInputValue(t=!0){const i=this.getText();(this._textInput.value||"")!==i&&(this._textInput.value=i,t&&(this.errorMessage=null))}clearSearch(){this.value=null}resetOptions(){this.hideOptions(),this._criteria=void 0,this._preSelection=void 0,this.updateVisibleOptions()}sanitizeValue(t){if("undefined"!==t&&"null"!==t)return t}async componentWillLoad(){if(this.i18n=await a(),void 0===this.options){this.options=[];const t=this.el.querySelectorAll("option");t&&t.forEach((t=>{let i=t.innerText,s=t.getAttribute("value");s||(s=i),this.options.push({label:i,value:s}),t.hidden=!0}))}this.loadOptions(d.PRELOAD)}setResizeObserver(){this._resizeObserver=new ResizeObserver((t=>{window.requestAnimationFrame((()=>{Array.isArray(t)&&t.length&&this._textInput&&this._comboBoxList&&(this._comboBoxList.width=this._textInput.clientWidth)}))}))}connectedCallback(){this._resizeObserver||this.setResizeObserver()}componentDidLoad(){n.applyVarsTextInput(this.el,this._textInput),this.setInputValue(!1),this.setResizeObserver(),this.autoFocus&&requestAnimationFrame((()=>{this.setFocus({selectText:!0})}))}disconnectedCallback(){var t;null===(t=this._popover)||void 0===t||t.remove(),this._resizeObserver&&(this._resizeObserver.disconnect(),this._resizeObserver=null)}handlerIconClick(){this.showOptions()}onTextInputChangeHandler(t){var i;if(this.clearDeboucingTimeout(),this._startLoading)return void(this._changeDeboucingTimeout=window.setTimeout((()=>{this.onTextInputChangeHandler(t)}),this._deboucingTime));const s=null===(i=t.target.value)||void 0===i?void 0:i.trim();this._criteria||(this._textInput.value=t.data||s),this._criteria=s,s?(this.updateVisibleOptions(),this.showOptions()):(this._preSelection=void 0,this.updateVisibleOptions())}clearDeboucingTimeout(){this._changeDeboucingTimeout&&(window.clearTimeout(this._changeDeboucingTimeout),this._changeDeboucingTimeout=null)}onTextInputClickHandler(){this.showOptions()}keyDownHandler(t){var i,s,o,e,h,r;if(t.ctrlKey&&("f"===t.key||"F"===t.key))return this.loadOptions(d.ADVANCED),t.preventDefault(),void t.stopPropagation();switch(t.key){case"ArrowDown":t.preventDefault(),this.canShowListOptions()&&(this.showOptions(),null===(i=this._comboBoxList)||void 0===i||i.nextOption());break;case"ArrowUp":t.preventDefault(),this.canShowListOptions()&&(this.showOptions(),null===(s=this._comboBoxList)||void 0===s||s.previousOption());break;case"Enter":this.isOpen&&(t.preventDefault(),null===(o=this._comboBoxList)||void 0===o||o.selectCurrentOption());break;case"Escape":this.isOpen&&(t.preventDefault(),null===(e=this._popover)||void 0===e||e.hide());break;case"Tab":this._tabPressed=!0,this.isOpen&&(null===(h=this._comboBoxList)||void 0===h||h.selectCurrentOption(),null===(r=this._popover)||void 0===r||r.hide())}}onTextInputFocusOutHandler(){this.hideErrorOnFocusOut&&this.cancelPreselection()}canShowListOptions(){return!this._showLoading&&this._visibleOptions.length>0}async openPopover(){var t;this.isOpen=!0,await(null===(t=this._popover)||void 0===t?void 0:t.showUnder(this._textInput))}render(){var t;return r.addIDInfoIfNotExists(this.el,"input"),s(o,null,s("ez-text-input",{"data-element-id":r.getInternalIDInfo("textInput"),class:"text-input-slot-container "+(this.suppressSearch?"suppressed-search-input":""),ref:t=>this._textInput=t,"data-slave-mode":"true",enabled:this.enabled&&!this.suppressSearch,onInput:t=>this.onTextInputChangeHandler(t),onClick:()=>this.onTextInputClickHandler(),onFocusout:()=>this.onTextInputFocusOutHandler(),onKeyDown:t=>this.keyDownHandler(t),label:this.label,canShowError:this.canShowError,errorMessage:this.errorMessage,mode:this.mode,alternativePlaceholder:this.alternativePlaceholder||this.i18n("ez-combo-box.placeholder")},s("button",{class:"btn",slot:"rightIcon",disabled:!this.enabled,tabindex:-1,onClick:()=>this.handlerIconClick()},s("ez-icon",{iconName:"chevron-down"}))),s("ez-popover-plus",{ref:t=>this._popover=t,anchorElement:this._textInput,autoClose:!0,boxWidth:"fit-content",overlayType:"none",onEzVisibilityChange:t=>this.isOpen=t.detail,"data-element-id":this.el.getAttribute("data-element-id")},s("ez-combo-box-list",{ref:t=>this._comboBoxList=t,showLoading:this._showLoading,visibleOptions:this._visibleOptions,textEmptyList:this.i18n("ez-combo-box.noResults"),showOptionValue:this.showOptionValue,preSelection:this._preSelection,maxWidth:this._maxWidthValue,width:null===(t=this._textInput)||void 0===t?void 0:t.clientWidth,onOptionSelect:t=>this.selectOption(t),onOptionHover:t=>this._preSelection=t})))}get el(){return e(this)}static get watchers(){return{errorMessage:["observeErrorMessage"],value:["observeValue"],options:["observeOptions"]}}};var d;!function(t){t.ADVANCED="ADVANCED",t.PRELOAD="PRELOAD",t.PREDICTIVE="PREDICTIVE"}(d||(d={})),l.style=":host{--ez-combo-box--height:42px;--ez-combo-box--width:100%;--ez-combo-box--border-radius:var(--border--radius-medium, 12px);--ez-combo-box--font-size:var(--text--medium, 14px);--ez-combo-box--font-family:var(--font-pattern, Arial);--ez-combo-box--background-color--xlight:var(--background--xlight, #fff);--ez-combo-box__input--background-color:var(--background--medium, #e0e0e0);--ez-combo-box__input--border:var(--border--medium, 2px solid);--ez-combo-box__input--border-color:var(--ez-combo-box__input--background-color);--ez-combo-box__input--focus--border-color:var(--color--primary, #008561);--ez-combo-box__input--disabled--background-color:var(--color--disable-secondary, #F2F5F8);--ez-combo-box__input--disabled--color:var(--text--disable, #AFB6C0);--ez-combo-box__btn--color:var(--title--primary, #2B3A54);--ez-combo-box__btn-disabled--color:var(--text--disable, #AFB6C0);--ez-combo-box__btn-hover--color:var(--color--primary, #4e4e4e);width:var(--ez-combo-box--width)}ez-icon{--ez-icon--color:inherit;font-weight:var(--text-weight--large, 600)}.suppressed-search-input{--ez-text-input__input--border-color:var(--color--strokes, #dce0e8);--ez-text-input__input--disabled--background-color:var(--background--xlight, #fff);--ez-text-input__input--disabled--color:var(--title--primary, #2B3A54)}.btn{outline:none;border:none;background:none;cursor:pointer;padding:0px;color:var(--ez-combo-box__btn--color)}.btn:disabled{cursor:unset;color:var(--ez-combo-box__btn-disabled--color)}.btn:disabled:hover{cursor:not-allowed;color:var(--ez-combo-box__btn-disabled--color)}.btn:hover{color:var(--ez-combo-box__btn-hover--color)}.btn__close{visibility:hidden}ez-text-input:hover .btn__close,ez-text-input:focus .btn__close{visibility:visible}.text-input-slot-container{--ez-text-input__icon--width:32px;--ez-text-input__min-width:var(--ez-combo-box__min-width);--ez-text-input__max-width:var(--ez-combo-box__max-width)}@-webkit-keyframes spin{0%{-webkit-transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg)}}@keyframes spin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}";export{l as ez_combo_box}