@sankhyalabs/ezui 7.1.0-dev.21 → 7.1.0-dev.22

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 (372) hide show
  1. package/dist/cjs/{ApplicationUtils-4fb87a9e.js → ApplicationUtils-006ca96f.js} +1 -1
  2. package/dist/cjs/FormLayout-fe8da83c.js +9 -0
  3. package/dist/cjs/{app-globals-cb31a206.js → app-globals-5cb12916.js} +1 -1
  4. package/dist/cjs/{ez-combo-box-list_5.cjs.entry.js → classic-search-list_7.cjs.entry.js} +214 -7
  5. package/dist/cjs/ez-actions-button.cjs.entry.js +5 -4
  6. package/dist/cjs/ez-alert-list.cjs.entry.js +2 -2
  7. package/dist/cjs/ez-alert.cjs.entry.js +1 -1
  8. package/dist/cjs/ez-application.cjs.entry.js +1 -1
  9. package/dist/cjs/ez-avatar.cjs.entry.js +2 -2
  10. package/dist/cjs/ez-badge.cjs.entry.js +1 -1
  11. package/dist/cjs/ez-breadcrumb.cjs.entry.js +1 -1
  12. package/dist/cjs/ez-button.cjs.entry.js +1 -1
  13. package/dist/cjs/ez-calendar.cjs.entry.js +2 -2
  14. package/dist/cjs/ez-card-item.cjs.entry.js +1 -1
  15. package/dist/cjs/ez-chart.cjs.entry.js +1 -1
  16. package/dist/cjs/ez-check.cjs.entry.js +1 -1
  17. package/dist/cjs/ez-chip.cjs.entry.js +1 -1
  18. package/dist/cjs/ez-classic-combo-box.cjs.entry.js +37 -16
  19. package/dist/cjs/ez-classic-date-input.cjs.entry.js +201 -0
  20. package/dist/cjs/ez-classic-date-time-input.cjs.entry.js +246 -0
  21. package/dist/cjs/ez-classic-input.cjs.entry.js +100 -19
  22. package/dist/cjs/ez-classic-number-input.cjs.entry.js +205 -0
  23. package/dist/cjs/ez-classic-search-plus.cjs.entry.js +407 -0
  24. package/dist/cjs/ez-classic-search.cjs.entry.js +683 -0
  25. package/dist/cjs/ez-classic-text-area.cjs.entry.js +2 -2
  26. package/dist/cjs/ez-classic-time-input.cjs.entry.js +197 -0
  27. package/dist/cjs/ez-collapsible-box.cjs.entry.js +5 -4
  28. package/dist/cjs/ez-combo-box.cjs.entry.js +5 -4
  29. package/dist/cjs/ez-date-input.cjs.entry.js +2 -2
  30. package/dist/cjs/ez-date-time-input.cjs.entry.js +2 -2
  31. package/dist/cjs/ez-dialog.cjs.entry.js +2 -2
  32. package/dist/cjs/ez-double-list.cjs.entry.js +2 -2
  33. package/dist/cjs/ez-dropdown.cjs.entry.js +1 -1
  34. package/dist/cjs/ez-empty-card.cjs.entry.js +1 -1
  35. package/dist/cjs/ez-file-item.cjs.entry.js +2 -2
  36. package/dist/cjs/ez-filter-input.cjs.entry.js +1 -1
  37. package/dist/cjs/ez-form-view.cjs.entry.js +122 -36
  38. package/dist/cjs/ez-form.cjs.entry.js +12 -8
  39. package/dist/cjs/ez-grid-view.cjs.entry.js +1 -1
  40. package/dist/cjs/ez-grid.cjs.entry.js +8 -7
  41. package/dist/cjs/ez-guide-navigator.cjs.entry.js +2 -2
  42. package/dist/cjs/ez-icon.cjs.entry.js +2 -2
  43. package/dist/cjs/ez-link-builder_6.cjs.entry.js +2 -2
  44. package/dist/cjs/ez-list-item.cjs.entry.js +1 -1
  45. package/dist/cjs/ez-list.cjs.entry.js +2 -2
  46. package/dist/cjs/ez-loading-bar.cjs.entry.js +1 -1
  47. package/dist/cjs/ez-modal-container.cjs.entry.js +2 -2
  48. package/dist/cjs/ez-modal.cjs.entry.js +2 -2
  49. package/dist/cjs/ez-multi-selection-list.cjs.entry.js +2 -2
  50. package/dist/cjs/ez-number-input.cjs.entry.js +2 -2
  51. package/dist/cjs/ez-pagination.cjs.entry.js +2 -2
  52. package/dist/cjs/ez-popover-core.cjs.entry.js +1 -1
  53. package/dist/cjs/ez-popover-plus_3.cjs.entry.js +1 -1
  54. package/dist/cjs/ez-popover.cjs.entry.js +1 -1
  55. package/dist/cjs/ez-popup.cjs.entry.js +2 -2
  56. package/dist/cjs/ez-progress-bar.cjs.entry.js +1 -1
  57. package/dist/cjs/ez-radio-button.cjs.entry.js +1 -1
  58. package/dist/cjs/ez-rich-toolbar-item.cjs.entry.js +1 -1
  59. package/dist/cjs/ez-scroller_2.cjs.entry.js +1 -1
  60. package/dist/cjs/ez-search-plus.cjs.entry.js +8 -7
  61. package/dist/cjs/ez-search-result-list.cjs.entry.js +2 -2
  62. package/dist/cjs/ez-search.cjs.entry.js +11 -10
  63. package/dist/cjs/ez-sidebar-navigator.cjs.entry.js +2 -2
  64. package/dist/cjs/ez-skeleton.cjs.entry.js +2 -2
  65. package/dist/cjs/ez-sortable-list.cjs.entry.js +2 -2
  66. package/dist/cjs/ez-spinner.cjs.entry.js +2 -2
  67. package/dist/cjs/ez-split-button.cjs.entry.js +2 -2
  68. package/dist/cjs/ez-split-item.cjs.entry.js +5 -4
  69. package/dist/cjs/ez-split-panel.cjs.entry.js +1 -1
  70. package/dist/cjs/ez-tabselector.cjs.entry.js +1 -1
  71. package/dist/cjs/ez-tag-input.cjs.entry.js +1 -1
  72. package/dist/cjs/ez-tag.cjs.entry.js +1 -1
  73. package/dist/cjs/ez-text-area.cjs.entry.js +1 -1
  74. package/dist/cjs/ez-text-input.cjs.entry.js +38 -1
  75. package/dist/cjs/ez-tile-medium.cjs.entry.js +1 -1
  76. package/dist/cjs/ez-tile.cjs.entry.js +1 -1
  77. package/dist/cjs/ez-time-input.cjs.entry.js +2 -2
  78. package/dist/cjs/ez-toast.cjs.entry.js +1 -1
  79. package/dist/cjs/ez-tooltip.cjs.entry.js +1 -1
  80. package/dist/cjs/ez-tree.cjs.entry.js +2 -2
  81. package/dist/cjs/ez-underface.cjs.entry.js +1 -1
  82. package/dist/cjs/ez-upload.cjs.entry.js +3 -3
  83. package/dist/cjs/ez-view-stack.cjs.entry.js +1 -1
  84. package/dist/cjs/ezui.cjs.js +4 -4
  85. package/dist/cjs/filter-column.cjs.entry.js +2 -2
  86. package/dist/cjs/{index-e61642ff.js → index-350d0fa0.js} +30 -0
  87. package/dist/cjs/{index-a7b0c73d.js → index-9e5554cb.js} +45 -18
  88. package/dist/cjs/loader.cjs.js +4 -4
  89. package/dist/cjs/{search-column-51e50b59.js → search-column-9654bf26.js} +5 -5
  90. package/dist/cjs/searchFormatters-051f8677.js +23 -0
  91. package/dist/cjs/{FormLayout-18853e70.js → types-6a5df0c7.js} +0 -6
  92. package/dist/collection/collection-manifest.json +58 -5
  93. package/dist/collection/components/ez-classic-combo-box/ez-classic-combo-box.css +5 -0
  94. package/dist/collection/components/ez-classic-combo-box/ez-classic-combo-box.js +77 -18
  95. package/dist/collection/components/ez-classic-date-input/ez-classic-date-input.css +44 -0
  96. package/dist/collection/components/ez-classic-date-input/ez-classic-date-input.js +541 -0
  97. package/dist/collection/components/ez-classic-date-time-input/ez-classic-date-time-input.css +44 -0
  98. package/dist/collection/components/ez-classic-date-time-input/ez-classic-date-time-input.js +586 -0
  99. package/dist/collection/components/ez-classic-input/ez-classic-input.css +33 -5
  100. package/dist/collection/components/ez-classic-input/ez-classic-input.js +155 -19
  101. package/dist/collection/components/ez-classic-number-input/ez-classic-number-input.css +16 -0
  102. package/dist/collection/components/ez-classic-number-input/ez-classic-number-input.js +583 -0
  103. package/dist/collection/components/ez-classic-search/ez-classic-search.css +126 -0
  104. package/dist/collection/components/ez-classic-search/ez-classic-search.js +1330 -0
  105. package/dist/collection/components/ez-classic-search/subcomponent/classic-search-list/classic-search-list.css +227 -0
  106. package/dist/collection/components/ez-classic-search/subcomponent/classic-search-list/classic-search-list.js +316 -0
  107. package/dist/collection/components/ez-classic-search/utils/searchFormatters.js +18 -0
  108. package/dist/collection/components/ez-classic-search-plus/ez-classic-search-plus.css +406 -0
  109. package/dist/collection/components/ez-classic-search-plus/ez-classic-search-plus.js +988 -0
  110. package/dist/collection/components/ez-classic-search-plus/subcomponent/ez-search-result-list/ez-classic-search-result-list.css +221 -0
  111. package/dist/collection/components/ez-classic-search-plus/subcomponent/ez-search-result-list/ez-classic-search-result-list.js +298 -0
  112. package/dist/collection/components/ez-classic-text-area/ez-classic-text-area.css +1 -0
  113. package/dist/collection/components/ez-classic-time-input/ez-classic-time-input.css +14 -0
  114. package/dist/collection/components/ez-classic-time-input/ez-classic-time-input.js +511 -0
  115. package/dist/collection/components/ez-form/ez-form.js +9 -5
  116. package/dist/collection/components/ez-form-view/ez-form-view.css +8 -3
  117. package/dist/collection/components/ez-form-view/ez-form-view.js +40 -4
  118. package/dist/collection/components/ez-form-view/fieldbuilder/FieldBuilder.js +6 -3
  119. package/dist/collection/components/ez-form-view/fieldbuilder/templates/CheckBox.tpl.js +9 -6
  120. package/dist/collection/components/ez-form-view/fieldbuilder/templates/ComboBox.tpl.js +8 -1
  121. package/dist/collection/components/ez-form-view/fieldbuilder/templates/DateInput.tpl.js +30 -6
  122. package/dist/collection/components/ez-form-view/fieldbuilder/templates/FileInput.tpl.js +1 -1
  123. package/dist/collection/components/ez-form-view/fieldbuilder/templates/NumberInput.tpl.js +12 -5
  124. package/dist/collection/components/ez-form-view/fieldbuilder/templates/RichText.tpl.js +1 -1
  125. package/dist/collection/components/ez-form-view/fieldbuilder/templates/SearchInput.tpl.js +9 -3
  126. package/dist/collection/components/ez-form-view/fieldbuilder/templates/SearchInputPlus.tpl.js +8 -1
  127. package/dist/collection/components/ez-form-view/fieldbuilder/templates/TextArea.tpl.js +7 -1
  128. package/dist/collection/components/ez-form-view/fieldbuilder/templates/TextInput.tpl.js +8 -1
  129. package/dist/collection/components/ez-form-view/structure/index.js +1 -1
  130. package/dist/collection/components/ez-icon/ez-icon.css +1 -0
  131. package/dist/collection/components/ez-rich-text/ez-rich-text.js +2 -3
  132. package/dist/collection/components/ez-text-input/ez-text-input.js +38 -1
  133. package/dist/collection/utils/form/DataBinder.js +2 -2
  134. package/dist/collection/utils/form/interfaces/FormLayout.js +3 -1
  135. package/dist/collection/utils/i18n/locales/en-us.js +10 -0
  136. package/dist/collection/utils/i18n/locales/es-es.js +10 -0
  137. package/dist/collection/utils/i18n/locales/pt-br.js +10 -0
  138. package/dist/custom-elements/index.d.ts +48 -0
  139. package/dist/custom-elements/index.js +2705 -324
  140. package/dist/esm/{ApplicationUtils-985c24ae.js → ApplicationUtils-0c5cb207.js} +1 -1
  141. package/dist/esm/FormLayout-bda67973.js +9 -0
  142. package/dist/esm/{app-globals-75f8a758.js → app-globals-1db10325.js} +1 -1
  143. package/dist/esm/{ez-combo-box-list_5.entry.js → classic-search-list_7.entry.js} +213 -8
  144. package/dist/esm/ez-actions-button.entry.js +5 -4
  145. package/dist/esm/ez-alert-list.entry.js +2 -2
  146. package/dist/esm/ez-alert.entry.js +1 -1
  147. package/dist/esm/ez-application.entry.js +1 -1
  148. package/dist/esm/ez-avatar.entry.js +2 -2
  149. package/dist/esm/ez-badge.entry.js +1 -1
  150. package/dist/esm/ez-breadcrumb.entry.js +1 -1
  151. package/dist/esm/ez-button.entry.js +1 -1
  152. package/dist/esm/ez-calendar.entry.js +2 -2
  153. package/dist/esm/ez-card-item.entry.js +1 -1
  154. package/dist/esm/ez-chart.entry.js +1 -1
  155. package/dist/esm/ez-check.entry.js +1 -1
  156. package/dist/esm/ez-chip.entry.js +1 -1
  157. package/dist/esm/ez-classic-combo-box.entry.js +37 -16
  158. package/dist/esm/ez-classic-date-input.entry.js +197 -0
  159. package/dist/esm/ez-classic-date-time-input.entry.js +242 -0
  160. package/dist/esm/ez-classic-input.entry.js +101 -20
  161. package/dist/esm/ez-classic-number-input.entry.js +201 -0
  162. package/dist/esm/ez-classic-search-plus.entry.js +403 -0
  163. package/dist/esm/ez-classic-search.entry.js +679 -0
  164. package/dist/esm/ez-classic-text-area.entry.js +2 -2
  165. package/dist/esm/ez-classic-time-input.entry.js +193 -0
  166. package/dist/esm/ez-collapsible-box.entry.js +5 -4
  167. package/dist/esm/ez-combo-box.entry.js +5 -4
  168. package/dist/esm/ez-date-input.entry.js +2 -2
  169. package/dist/esm/ez-date-time-input.entry.js +2 -2
  170. package/dist/esm/ez-dialog.entry.js +2 -2
  171. package/dist/esm/ez-double-list.entry.js +2 -2
  172. package/dist/esm/ez-dropdown.entry.js +1 -1
  173. package/dist/esm/ez-empty-card.entry.js +1 -1
  174. package/dist/esm/ez-file-item.entry.js +2 -2
  175. package/dist/esm/ez-filter-input.entry.js +1 -1
  176. package/dist/esm/ez-form-view.entry.js +122 -36
  177. package/dist/esm/ez-form.entry.js +12 -8
  178. package/dist/esm/ez-grid-view.entry.js +1 -1
  179. package/dist/esm/ez-grid.entry.js +6 -5
  180. package/dist/esm/ez-guide-navigator.entry.js +2 -2
  181. package/dist/esm/ez-icon.entry.js +2 -2
  182. package/dist/esm/ez-link-builder_6.entry.js +2 -2
  183. package/dist/esm/ez-list-item.entry.js +1 -1
  184. package/dist/esm/ez-list.entry.js +2 -2
  185. package/dist/esm/ez-loading-bar.entry.js +1 -1
  186. package/dist/esm/ez-modal-container.entry.js +2 -2
  187. package/dist/esm/ez-modal.entry.js +2 -2
  188. package/dist/esm/ez-multi-selection-list.entry.js +2 -2
  189. package/dist/esm/ez-number-input.entry.js +2 -2
  190. package/dist/esm/ez-pagination.entry.js +2 -2
  191. package/dist/esm/ez-popover-core.entry.js +1 -1
  192. package/dist/esm/ez-popover-plus_3.entry.js +1 -1
  193. package/dist/esm/ez-popover.entry.js +1 -1
  194. package/dist/esm/ez-popup.entry.js +2 -2
  195. package/dist/esm/ez-progress-bar.entry.js +1 -1
  196. package/dist/esm/ez-radio-button.entry.js +1 -1
  197. package/dist/esm/ez-rich-toolbar-item.entry.js +1 -1
  198. package/dist/esm/ez-scroller_2.entry.js +1 -1
  199. package/dist/esm/ez-search-plus.entry.js +5 -4
  200. package/dist/esm/ez-search-result-list.entry.js +2 -2
  201. package/dist/esm/ez-search.entry.js +5 -4
  202. package/dist/esm/ez-sidebar-navigator.entry.js +2 -2
  203. package/dist/esm/ez-skeleton.entry.js +2 -2
  204. package/dist/esm/ez-sortable-list.entry.js +2 -2
  205. package/dist/esm/ez-spinner.entry.js +2 -2
  206. package/dist/esm/ez-split-button.entry.js +2 -2
  207. package/dist/esm/ez-split-item.entry.js +5 -4
  208. package/dist/esm/ez-split-panel.entry.js +1 -1
  209. package/dist/esm/ez-tabselector.entry.js +1 -1
  210. package/dist/esm/ez-tag-input.entry.js +1 -1
  211. package/dist/esm/ez-tag.entry.js +1 -1
  212. package/dist/esm/ez-text-area.entry.js +1 -1
  213. package/dist/esm/ez-text-input.entry.js +38 -1
  214. package/dist/esm/ez-tile-medium.entry.js +1 -1
  215. package/dist/esm/ez-tile.entry.js +1 -1
  216. package/dist/esm/ez-time-input.entry.js +2 -2
  217. package/dist/esm/ez-toast.entry.js +1 -1
  218. package/dist/esm/ez-tooltip.entry.js +1 -1
  219. package/dist/esm/ez-tree.entry.js +2 -2
  220. package/dist/esm/ez-underface.entry.js +1 -1
  221. package/dist/esm/ez-upload.entry.js +3 -3
  222. package/dist/esm/ez-view-stack.entry.js +1 -1
  223. package/dist/esm/ezui.js +5 -5
  224. package/dist/esm/filter-column.entry.js +2 -2
  225. package/dist/esm/{index-a3b24b5d.js → index-225aa0c3.js} +30 -0
  226. package/dist/esm/{index-baa5e267.js → index-5a720e56.js} +45 -19
  227. package/dist/esm/loader.js +5 -5
  228. package/dist/esm/{search-column-0c42248b.js → search-column-c3df6285.js} +5 -5
  229. package/dist/esm/searchFormatters-6d9b06e4.js +20 -0
  230. package/dist/esm/{FormLayout-071d324c.js → types-6f6b2650.js} +1 -7
  231. package/dist/ezui/ezui.esm.js +1 -1
  232. package/dist/ezui/{p-e75c7a23.entry.js → p-000159dc.entry.js} +1 -1
  233. package/dist/ezui/p-05bcbe61.entry.js +1 -0
  234. package/dist/ezui/{p-93e1c917.entry.js → p-05e68ab3.entry.js} +1 -1
  235. package/dist/ezui/{p-288631d1.entry.js → p-06f1b8e4.entry.js} +1 -1
  236. package/dist/ezui/{p-6c484770.entry.js → p-0820f8c3.entry.js} +1 -1
  237. package/dist/ezui/{p-6d596a5a.entry.js → p-0b531233.entry.js} +1 -1
  238. package/dist/ezui/{p-9568a93d.entry.js → p-0ba284cd.entry.js} +1 -1
  239. package/dist/ezui/p-0d393a5d.entry.js +1 -0
  240. package/dist/ezui/{p-714452c7.entry.js → p-12cc95dc.entry.js} +1 -1
  241. package/dist/ezui/p-14d6aeb8.entry.js +1 -0
  242. package/dist/ezui/{p-2528e988.entry.js → p-169d460d.entry.js} +1 -1
  243. package/dist/ezui/{p-6f77a359.entry.js → p-1723f728.entry.js} +1 -1
  244. package/dist/ezui/{p-47d9256e.entry.js → p-181cb82f.entry.js} +1 -1
  245. package/dist/ezui/{p-a13e65a4.entry.js → p-24993171.entry.js} +1 -1
  246. package/dist/ezui/{p-3d71e8e1.entry.js → p-25748a4e.entry.js} +1 -1
  247. package/dist/ezui/p-27421015.entry.js +1 -0
  248. package/dist/ezui/p-27c8a9b7.entry.js +1 -0
  249. package/dist/ezui/{p-474076b3.js → p-29341f74.js} +1 -1
  250. package/dist/ezui/p-29f0de90.entry.js +1 -0
  251. package/dist/ezui/{p-e4a579f2.entry.js → p-2b51d5a9.entry.js} +1 -1
  252. package/dist/ezui/p-2c123fdf.entry.js +1 -0
  253. package/dist/ezui/{p-5e6de2c1.entry.js → p-2fa490f1.entry.js} +1 -1
  254. package/dist/ezui/{p-582c3f90.entry.js → p-3453dad5.entry.js} +1 -1
  255. package/dist/ezui/p-34d596a3.entry.js +1 -0
  256. package/dist/ezui/{p-ef8bd3e8.entry.js → p-35e3715c.entry.js} +1 -1
  257. package/dist/ezui/{p-fa6732f2.entry.js → p-44b39e81.entry.js} +1 -1
  258. package/dist/ezui/{p-4ea5c8a7.entry.js → p-458027b5.entry.js} +1 -1
  259. package/dist/ezui/p-47e4a8ce.js +1 -0
  260. package/dist/ezui/{p-4d30b703.entry.js → p-4a876b8b.entry.js} +1 -1
  261. package/dist/ezui/p-4d909730.entry.js +1 -0
  262. package/dist/ezui/{p-28af6826.entry.js → p-4df2edb5.entry.js} +1 -1
  263. package/dist/ezui/{p-6369a0cd.entry.js → p-51e34317.entry.js} +1 -1
  264. package/dist/ezui/{p-7624767b.entry.js → p-534209bf.entry.js} +1 -1
  265. package/dist/ezui/{p-0e325699.entry.js → p-55a9e4ba.entry.js} +1 -1
  266. package/dist/ezui/p-5895e687.js +1 -0
  267. package/dist/ezui/{p-e2e0dd76.entry.js → p-636ea910.entry.js} +1 -1
  268. package/dist/ezui/{p-1f50fa05.entry.js → p-6b51c9cc.entry.js} +1 -1
  269. package/dist/ezui/p-6ec40dec.entry.js +1 -0
  270. package/dist/ezui/{p-5ed81457.entry.js → p-6fc26622.entry.js} +1 -1
  271. package/dist/ezui/p-70f30bfe.entry.js +1 -0
  272. package/dist/ezui/p-71b341cc.entry.js +1 -0
  273. package/dist/ezui/{p-f45ddc1f.entry.js → p-75443a91.entry.js} +1 -1
  274. package/dist/ezui/{p-a1a63294.entry.js → p-75e650ff.entry.js} +1 -1
  275. package/dist/ezui/p-75e8862c.entry.js +1 -0
  276. package/dist/ezui/{p-d6f50207.entry.js → p-770cf2b8.entry.js} +1 -1
  277. package/dist/ezui/{p-91c9d50e.entry.js → p-78e975b4.entry.js} +1 -1
  278. package/dist/ezui/{p-1e7a8633.entry.js → p-81461d2f.entry.js} +1 -1
  279. package/dist/ezui/p-81a98a7c.entry.js +1 -0
  280. package/dist/ezui/p-82e1d7fc.entry.js +1 -0
  281. package/dist/ezui/{p-8df1ca33.entry.js → p-82fa4b09.entry.js} +1 -1
  282. package/dist/ezui/p-87739608.entry.js +1 -0
  283. package/dist/ezui/p-88a115b3.js +1 -0
  284. package/dist/ezui/p-892e7326.entry.js +1 -0
  285. package/dist/ezui/p-8f7373ab.entry.js +1 -0
  286. package/dist/ezui/{p-f34ec732.entry.js → p-980f1f18.entry.js} +1 -1
  287. package/dist/ezui/{p-0ec5c128.js → p-9825c1d2.js} +1 -1
  288. package/dist/ezui/{p-a3075f52.entry.js → p-9bcfa689.entry.js} +1 -1
  289. package/dist/ezui/{p-0aafbc30.entry.js → p-9d515e5b.entry.js} +1 -1
  290. package/dist/ezui/{p-2b23906a.entry.js → p-9fb7131e.entry.js} +1 -1
  291. package/dist/ezui/{p-3fcf79c7.entry.js → p-a6ea8da3.entry.js} +1 -1
  292. package/dist/ezui/{p-d6742c1e.entry.js → p-a9432878.entry.js} +1 -1
  293. package/dist/ezui/{p-e8c57463.entry.js → p-b21efe83.entry.js} +1 -1
  294. package/dist/ezui/{p-a0bf1fc7.entry.js → p-bc693db6.entry.js} +1 -1
  295. package/dist/ezui/{p-2676e2a3.entry.js → p-be2e39c5.entry.js} +1 -1
  296. package/dist/ezui/{p-98218fbc.js → p-c178730b.js} +1 -1
  297. package/dist/ezui/{p-9f5fa3f9.entry.js → p-c2b20f78.entry.js} +1 -1
  298. package/dist/ezui/{p-6020f3d5.entry.js → p-c754774e.entry.js} +1 -1
  299. package/dist/ezui/{p-d2645bdf.entry.js → p-c96e536d.entry.js} +1 -1
  300. package/dist/ezui/{p-cfa26133.entry.js → p-ce2614fc.entry.js} +1 -1
  301. package/dist/ezui/{p-20c024f7.entry.js → p-cf33bc48.entry.js} +1 -1
  302. package/dist/ezui/p-d3aca6aa.entry.js +1 -0
  303. package/dist/ezui/p-d57ea090.entry.js +1 -0
  304. package/dist/ezui/{p-a80b1287.entry.js → p-dfca5946.entry.js} +1 -1
  305. package/dist/ezui/{p-2fd16ff2.entry.js → p-e0380234.entry.js} +1 -1
  306. package/dist/ezui/{p-67f9fadb.entry.js → p-e039e049.entry.js} +1 -1
  307. package/dist/ezui/{p-dc192d01.entry.js → p-e0fd2ce5.entry.js} +1 -1
  308. package/dist/ezui/{p-7f792043.entry.js → p-e195eaad.entry.js} +1 -1
  309. package/dist/ezui/{p-1c3f43e8.entry.js → p-e275353b.entry.js} +1 -1
  310. package/dist/ezui/{p-23a36bb6.js → p-e4c7eb39.js} +2 -2
  311. package/dist/ezui/{p-6570ca10.entry.js → p-e94d3af5.entry.js} +1 -1
  312. package/dist/ezui/p-e963cb3f.entry.js +1 -0
  313. package/dist/ezui/{p-e7a7c594.entry.js → p-e9b409c1.entry.js} +1 -1
  314. package/dist/ezui/p-f0425f87.entry.js +1 -0
  315. package/dist/ezui/{p-9771ea3c.entry.js → p-f1b54699.entry.js} +1 -1
  316. package/dist/ezui/{p-a3ada561.entry.js → p-f26b97e9.entry.js} +1 -1
  317. package/dist/ezui/{p-1bf40959.entry.js → p-f32d5a82.entry.js} +1 -1
  318. package/dist/ezui/{p-411c0222.entry.js → p-f7ca8634.entry.js} +1 -1
  319. package/dist/ezui/{p-782fe2e3.entry.js → p-fe0bca65.entry.js} +1 -1
  320. package/dist/ezui/p-ff4312d5.js +1 -0
  321. package/dist/types/components/ez-classic-combo-box/ez-classic-combo-box.d.ts +9 -3
  322. package/dist/types/components/ez-classic-date-input/ez-classic-date-input.d.ts +91 -0
  323. package/dist/types/components/ez-classic-date-time-input/ez-classic-date-time-input.d.ts +95 -0
  324. package/dist/types/components/ez-classic-input/ez-classic-input.d.ts +18 -1
  325. package/dist/types/components/ez-classic-number-input/ez-classic-number-input.d.ts +101 -0
  326. package/dist/types/components/ez-classic-search/ez-classic-search.d.ts +219 -0
  327. package/dist/types/components/ez-classic-search/subcomponent/classic-search-list/classic-search-list.d.ts +29 -0
  328. package/dist/types/components/ez-classic-search/utils/searchFormatters.d.ts +2 -0
  329. package/dist/types/components/ez-classic-search-plus/ez-classic-search-plus.d.ts +186 -0
  330. package/dist/types/components/ez-classic-search-plus/subcomponent/ez-search-result-list/ez-classic-search-result-list.d.ts +29 -0
  331. package/dist/types/components/ez-form/ez-form.d.ts +1 -0
  332. package/dist/types/components/ez-form-view/ez-form-view.d.ts +7 -0
  333. package/dist/types/components/ez-form-view/fieldbuilder/FieldBuilder.d.ts +7 -2
  334. package/dist/types/components/ez-form-view/fieldbuilder/templates/CheckBox.tpl.d.ts +3 -2
  335. package/dist/types/components/ez-form-view/fieldbuilder/templates/ComboBox.tpl.d.ts +2 -1
  336. package/dist/types/components/ez-form-view/fieldbuilder/templates/DateInput.tpl.d.ts +5 -4
  337. package/dist/types/components/ez-form-view/fieldbuilder/templates/FileInput.tpl.d.ts +2 -1
  338. package/dist/types/components/ez-form-view/fieldbuilder/templates/NumberInput.tpl.d.ts +3 -2
  339. package/dist/types/components/ez-form-view/fieldbuilder/templates/RichText.tpl.d.ts +2 -1
  340. package/dist/types/components/ez-form-view/fieldbuilder/templates/SearchInput.tpl.d.ts +2 -1
  341. package/dist/types/components/ez-form-view/fieldbuilder/templates/SearchInputPlus.tpl.d.ts +2 -1
  342. package/dist/types/components/ez-form-view/fieldbuilder/templates/TextArea.tpl.d.ts +2 -1
  343. package/dist/types/components/ez-form-view/fieldbuilder/templates/TextInput.tpl.d.ts +2 -1
  344. package/dist/types/components/ez-text-input/ez-text-input.d.ts +4 -0
  345. package/dist/types/components.d.ts +2967 -1814
  346. package/dist/types/utils/form/interfaces/FormLayout.d.ts +3 -1
  347. package/dist/types/utils/i18n/locales/en-us.d.ts +10 -0
  348. package/dist/types/utils/i18n/locales/es-es.d.ts +10 -0
  349. package/dist/types/utils/i18n/locales/pt-br.d.ts +10 -0
  350. package/dist/types/utils/i18n/translations.d.ts +30 -0
  351. package/package.json +1 -1
  352. package/react/components.d.ts +8 -0
  353. package/react/components.js +8 -0
  354. package/react/components.js.map +1 -1
  355. package/dist/ezui/p-2e5de2a7.entry.js +0 -1
  356. package/dist/ezui/p-30ffb9ed.js +0 -1
  357. package/dist/ezui/p-48effc69.entry.js +0 -1
  358. package/dist/ezui/p-6a982147.js +0 -1
  359. package/dist/ezui/p-6d7f2fdc.entry.js +0 -1
  360. package/dist/ezui/p-6f466aec.entry.js +0 -1
  361. package/dist/ezui/p-7fe97ef5.entry.js +0 -1
  362. package/dist/ezui/p-8709c4f6.entry.js +0 -1
  363. package/dist/ezui/p-8a8006e6.entry.js +0 -1
  364. package/dist/ezui/p-8d626d2b.entry.js +0 -1
  365. package/dist/ezui/p-9b2e6438.entry.js +0 -1
  366. package/dist/ezui/p-9d004e22.entry.js +0 -1
  367. package/dist/ezui/p-bc2f844e.entry.js +0 -1
  368. package/dist/ezui/p-c711900a.entry.js +0 -1
  369. package/dist/ezui/p-d8cc640d.entry.js +0 -1
  370. package/dist/ezui/p-dee18824.entry.js +0 -1
  371. package/dist/ezui/p-e82a12c6.entry.js +0 -1
  372. package/dist/ezui/p-f1bbf23f.entry.js +0 -1
@@ -0,0 +1,1330 @@
1
+ import { h, Host } from "@stencil/core";
2
+ import CSSVarsUtils from "../../utils/CSSVarsUtils";
3
+ import { ElementIDUtils, ObjectUtils, StringUtils } from "@sankhyalabs/core";
4
+ import { ApplicationUtils, SearchMode } from "../../utils";
5
+ import { replaceHighlight, replaceQuotes } from "./utils/searchFormatters";
6
+ import initI18n from '../../utils/i18n';
7
+ export class EzClassicSearch {
8
+ constructor() {
9
+ this._changeDeboucingTimeout = null;
10
+ this._limitCharsToSearch = 3;
11
+ this._deboucingTime = 300;
12
+ this._maxWidthValue = 0;
13
+ this._tabPressed = false;
14
+ this._startHighlightTag = "<span class='card-item__highlight'>";
15
+ this._endHighlightTag = "</span>";
16
+ this._preSelection = undefined;
17
+ this._visibleOptions = undefined;
18
+ this._startLoading = false;
19
+ this._showLoading = true;
20
+ this._criteria = undefined;
21
+ this.value = undefined;
22
+ this.label = undefined;
23
+ this.enabled = true;
24
+ this.errorMessage = undefined;
25
+ this.size = "default";
26
+ this.optionLoader = undefined;
27
+ this.contextProperties = undefined;
28
+ this.showSelectedValue = true;
29
+ this.showOptionValue = true;
30
+ this.suppressEmptyOption = false;
31
+ this.stopPropagateEnterKeyEvent = false;
32
+ this.mode = "regular";
33
+ this.classic = false;
34
+ this.required = false;
35
+ this.canShowError = true;
36
+ this.hideErrorOnFocusOut = true;
37
+ this.listOptionsPosition = undefined;
38
+ this.isTextSearch = false;
39
+ this.ignoreLimitCharsToSearch = false;
40
+ this.options = undefined;
41
+ this.suppressSearch = false;
42
+ this.ensureClearButtonVisible = false;
43
+ this.suppressPreLoad = true;
44
+ this.autoFocus = false;
45
+ this.alternativePlaceholder = undefined;
46
+ this.showMore = undefined;
47
+ this.suppressInputPersist = false;
48
+ this.hideDescriptionInput = false;
49
+ }
50
+ observeErrorMessage() {
51
+ var _a;
52
+ if (this._textInput) {
53
+ this._textInput.errorMessage = this.errorMessage;
54
+ if (!((_a = this.errorMessage) === null || _a === void 0 ? void 0 : _a.trim()) && this.errorMessage) {
55
+ this.setInputValue();
56
+ }
57
+ }
58
+ }
59
+ getValue(val) {
60
+ return typeof val === 'object' ? val === null || val === void 0 ? void 0 : val.value : val;
61
+ }
62
+ validateNewValue(newValue, oldValue) {
63
+ const parsedNewValue = this.getValue(newValue);
64
+ const parsedOldValue = this.getValue(oldValue);
65
+ const newValueIsValid = parsedNewValue !== "[object Object]";
66
+ const valuesIsDifferent = parsedNewValue !== parsedOldValue;
67
+ if (newValueIsValid && valuesIsDifferent) {
68
+ return true;
69
+ }
70
+ return false;
71
+ }
72
+ async observeValue(newValue, oldValue) {
73
+ if (this._textInput && this.validateNewValue(newValue, oldValue)) {
74
+ if (typeof newValue === "string") {
75
+ await this.handleValueAsString(newValue);
76
+ return;
77
+ }
78
+ const newValueSelected = this.getSelectedOption(newValue);
79
+ const currentValue = this.getSelectedOption(this._currentValue);
80
+ if (this.isDifferentValues(currentValue, newValueSelected)) {
81
+ this._currentValue = newValueSelected;
82
+ this.setInputValue();
83
+ const valueEmitted = newValueSelected !== null && newValueSelected !== void 0 ? newValueSelected : undefined;
84
+ this.ezChange.emit(valueEmitted);
85
+ }
86
+ this.resetOptions();
87
+ }
88
+ }
89
+ observeOptions(newOptions, oldOptions) {
90
+ if (!newOptions.length && this.suppressPreLoad)
91
+ return;
92
+ if ((newOptions === null || newOptions === void 0 ? void 0 : newOptions.join('')) === (oldOptions === null || oldOptions === void 0 ? void 0 : oldOptions.join('')))
93
+ return;
94
+ this.loadOptions(SearchMode.PRELOAD);
95
+ }
96
+ /*
97
+ * Retorna uma promise com o valor da opção selecionada,
98
+ * que será resolvida quando o backend devolver este dado.
99
+ */
100
+ async getValueAsync() {
101
+ if (!this._showLoading) {
102
+ return new Promise(resolve => resolve(this.value));
103
+ }
104
+ return new Promise(resolve => {
105
+ let id = setInterval(() => {
106
+ if (!this._showLoading) {
107
+ clearInterval(id);
108
+ resolve(this.value);
109
+ }
110
+ }, 100);
111
+ });
112
+ }
113
+ /**
114
+ * Aplica o foco no campo.
115
+ */
116
+ async setFocus(options) {
117
+ if (this._textInput) {
118
+ this._textInput.setFocus(options);
119
+ }
120
+ }
121
+ /**
122
+ * Remove o foco do campo.
123
+ */
124
+ async setBlur() {
125
+ if (this._textInput) {
126
+ this._textInput.setBlur();
127
+ }
128
+ }
129
+ /**
130
+ * Retorna se o conteúdo é inválido.
131
+ */
132
+ async isInvalid() {
133
+ return typeof this.errorMessage === "string" && this.errorMessage.trim() !== "";
134
+ }
135
+ /**
136
+ * Limpa o valor do campo de pesquisa
137
+ */
138
+ async clearValue() {
139
+ this.clearSearch();
140
+ }
141
+ async handleValueAsString(value) {
142
+ if (this.getSelectedOption(value)) {
143
+ this.setInputValue();
144
+ return;
145
+ }
146
+ await this.loadDescriptionValue(value);
147
+ if (!this._currentValue) {
148
+ return;
149
+ }
150
+ this.setInputValue();
151
+ this.ezChange.emit(this.value);
152
+ this._currentValue = this.value;
153
+ }
154
+ isDifferentValues(firstValue, secondValue) {
155
+ return ObjectUtils.objectToString(firstValue || {}) !== ObjectUtils.objectToString(secondValue || {});
156
+ }
157
+ getFormattedText(currentValue) {
158
+ if (currentValue == undefined) {
159
+ return;
160
+ }
161
+ let text = (!this.showSelectedValue || currentValue.value == undefined) ? currentValue.label : currentValue.label ? `${currentValue.value} - ${currentValue.label}` : currentValue.value;
162
+ text = text === null || text === void 0 ? void 0 : text.replace(new RegExp(this._startHighlightTag, 'g'), '').replace(new RegExp(this._endHighlightTag, 'g'), '');
163
+ return text;
164
+ }
165
+ getText() {
166
+ const currentValue = this.getSelectedOption(this._currentValue);
167
+ const text = this.getFormattedText(currentValue);
168
+ return replaceQuotes(text);
169
+ }
170
+ getSelectedOption(value) {
171
+ if (typeof value === "string" || value instanceof String) {
172
+ return this._visibleOptions.find(o => o.value === value);
173
+ }
174
+ if (value) {
175
+ return Object.assign(Object.assign({}, value), { value: replaceHighlight(value === null || value === void 0 ? void 0 : value.value), label: replaceHighlight(value === null || value === void 0 ? void 0 : value.label) });
176
+ }
177
+ return value;
178
+ }
179
+ updateVisibleOptions() {
180
+ let opts = this._source || [];
181
+ if (this.suppressEmptyOption) {
182
+ this._visibleOptions = opts;
183
+ }
184
+ else {
185
+ this._visibleOptions = [{ value: undefined, label: "" }].concat(opts);
186
+ }
187
+ this._maxWidthValue = this.getMaxWidthValue();
188
+ }
189
+ getMaxWidthValue() {
190
+ var _a;
191
+ const arrValues = [];
192
+ (_a = this._visibleOptions) === null || _a === void 0 ? void 0 : _a.forEach(opt => {
193
+ const widthValue = this.getWidthValue(opt.value);
194
+ if (!arrValues.includes(widthValue)) {
195
+ arrValues.push(widthValue);
196
+ }
197
+ });
198
+ return arrValues.length > 1 ? Math.max(...arrValues) : 0;
199
+ }
200
+ getWidthValue(value) {
201
+ if (this._itemValueBasis != undefined) {
202
+ const span = this._itemValueBasis;
203
+ if (value != undefined) {
204
+ span.innerHTML = value;
205
+ return span.clientWidth > 0 ? (span.clientWidth + 2) : 0;
206
+ }
207
+ else {
208
+ span.innerHTML = "";
209
+ }
210
+ }
211
+ return 0;
212
+ }
213
+ showOptions() {
214
+ if (!this.enabled)
215
+ return;
216
+ if (this.isOptionsVisible()) {
217
+ return;
218
+ }
219
+ this._ezPopOverPlusElement.showUnder(this._textInput);
220
+ }
221
+ hideOptions() {
222
+ this._ezPopOverPlusElement.hide();
223
+ }
224
+ isOptionsVisible() {
225
+ return this._ezPopOverPlusElement.opened;
226
+ }
227
+ selectCurrentOption(focusOnInput = true) {
228
+ if (this._preSelection !== undefined) {
229
+ this.selectOption(this._visibleOptions[this._preSelection], focusOnInput);
230
+ this._preSelection = undefined;
231
+ }
232
+ else {
233
+ this.controlListWithOnlyOne();
234
+ }
235
+ }
236
+ updateSource(source) {
237
+ this._startLoading = false;
238
+ if (source instanceof Promise) {
239
+ this._showLoading = true;
240
+ source.then(result => {
241
+ this.updateSource(result);
242
+ }).finally(() => {
243
+ this._showLoading = false;
244
+ });
245
+ this.updateVisibleOptions();
246
+ }
247
+ else {
248
+ this._showLoading = false;
249
+ if (Array.isArray(source)) {
250
+ this._source = source;
251
+ this.updateVisibleOptions();
252
+ if (this._tabPressed) {
253
+ this._tabPressed = false;
254
+ this.controlEmptySearch(false);
255
+ }
256
+ }
257
+ else {
258
+ this.selectOption(source);
259
+ }
260
+ }
261
+ }
262
+ clearSource() {
263
+ this._source = [];
264
+ this.updateVisibleOptions();
265
+ }
266
+ selectOption(newOption, focusOnInput = true) {
267
+ var _a, _b;
268
+ const currentValue = this.getSelectedOption(this.value);
269
+ const newOptionsReplaced = Object.assign(Object.assign({}, newOption), { value: replaceHighlight(newOption === null || newOption === void 0 ? void 0 : newOption.value), label: replaceHighlight(newOption === null || newOption === void 0 ? void 0 : newOption.label) });
270
+ const newOptionsFormatted = Object.assign(Object.assign({}, newOptionsReplaced), { value: replaceQuotes(newOptionsReplaced === null || newOptionsReplaced === void 0 ? void 0 : newOptionsReplaced.value), label: replaceQuotes(newOptionsReplaced === null || newOptionsReplaced === void 0 ? void 0 : newOptionsReplaced.label) });
271
+ if ((((_a = currentValue === null || currentValue === void 0 ? void 0 : currentValue.value) === null || _a === void 0 ? void 0 : _a.toString()) !== ((_b = newOptionsFormatted === null || newOptionsFormatted === void 0 ? void 0 : newOptionsFormatted.value) === null || _b === void 0 ? void 0 : _b.toString()))
272
+ || (currentValue == undefined && newOptionsFormatted != undefined && "value" in newOptionsFormatted)) {
273
+ const adjustedOpt = !(newOptionsFormatted === null || newOptionsFormatted === void 0 ? void 0 : newOptionsFormatted.value) ? undefined : newOptionsFormatted;
274
+ this.value = adjustedOpt;
275
+ this._currentValue = adjustedOpt;
276
+ }
277
+ else {
278
+ this.setInputValue();
279
+ this.resetOptions();
280
+ }
281
+ this._visibleOptions = [];
282
+ this.clearSource();
283
+ if (focusOnInput) {
284
+ setTimeout(() => {
285
+ this.setFocus();
286
+ }, 0);
287
+ }
288
+ }
289
+ loadOptions(mode, argument = "") {
290
+ this._criteria = argument;
291
+ this._startLoading = true;
292
+ if (this.optionLoader) {
293
+ const searchArgument = { mode, argument };
294
+ this.updateSource(this.optionLoader(searchArgument, this.contextProperties));
295
+ }
296
+ else {
297
+ this.updateSource(this.options);
298
+ }
299
+ }
300
+ cancelPreselection() {
301
+ if (!this._textInput.value && this._currentValue && this._source.length > 0) {
302
+ this.selectOption(undefined);
303
+ }
304
+ else {
305
+ window.setTimeout(() => {
306
+ this.setInputValue();
307
+ }, this._deboucingTime);
308
+ }
309
+ this.resetOptions();
310
+ }
311
+ setInputValue(clearError = true) {
312
+ if (this.suppressInputPersist) {
313
+ this.clearSearch();
314
+ return;
315
+ }
316
+ const textValue = this.getText();
317
+ if ((this._textInput.value || '') !== textValue) {
318
+ this._textInput.value = textValue;
319
+ if (clearError) {
320
+ this.errorMessage = null;
321
+ }
322
+ }
323
+ }
324
+ clearSearch() {
325
+ this.value = null;
326
+ this._currentValue = null;
327
+ this._textInput.value = "";
328
+ }
329
+ controlListWithOnlyOne(focusOnInput = true) {
330
+ var _a, _b;
331
+ const source = (_a = this._visibleOptions) === null || _a === void 0 ? void 0 : _a.filter((opt) => opt.label !== "" && opt.value != undefined);
332
+ if ((source === null || source === void 0 ? void 0 : source.length) > 0) {
333
+ const startHighlight = new RegExp(this._startHighlightTag, 'g');
334
+ const endHighlight = new RegExp(this._endHighlightTag, 'g');
335
+ let title = StringUtils.decodeHtmlEntities(source[0].label);
336
+ const option = {
337
+ value: (_b = source[0].value) === null || _b === void 0 ? void 0 : _b.replace(startHighlight, '').replace(endHighlight, ''),
338
+ label: title === null || title === void 0 ? void 0 : title.replace(startHighlight, '').replace(endHighlight, '')
339
+ };
340
+ this.selectOption(option, focusOnInput);
341
+ }
342
+ }
343
+ controlEmptySearch(focusOnInput = true) {
344
+ var _a;
345
+ if (!((_a = this._visibleOptions) === null || _a === void 0 ? void 0 : _a.length)) {
346
+ this.clearSearch();
347
+ ApplicationUtils.info(this.i18n("ez-classic-search.emptyList"));
348
+ }
349
+ else {
350
+ this.controlListWithOnlyOne(focusOnInput);
351
+ }
352
+ }
353
+ async loadDescriptionValue(argument) {
354
+ var _a, _b, _c;
355
+ if (argument == undefined) {
356
+ return;
357
+ }
358
+ if (((_a = this.options) === null || _a === void 0 ? void 0 : _a.length) > 0) {
359
+ this.loadOptionValue(argument);
360
+ return;
361
+ }
362
+ const searchMode = this.hideDescriptionInput ? SearchMode.LOAD_DESCRIPTION : SearchMode.PREDICTIVE;
363
+ const searchArgument = {
364
+ mode: searchMode,
365
+ argument
366
+ };
367
+ try {
368
+ const source = await ((_b = this.optionLoader) === null || _b === void 0 ? void 0 : _b.call(this, searchArgument, this.contextProperties));
369
+ if (source == undefined) {
370
+ return;
371
+ }
372
+ if (source instanceof Promise) {
373
+ source.then((result) => {
374
+ this.setDescriptionValue(result);
375
+ });
376
+ }
377
+ else {
378
+ this.setDescriptionValue(source);
379
+ }
380
+ }
381
+ catch (error) {
382
+ if (((_c = error === null || error === void 0 ? void 0 : error.constructor) === null || _c === void 0 ? void 0 : _c.name) === "WarningException") {
383
+ this.errorMessage = error.message;
384
+ }
385
+ throw error;
386
+ }
387
+ }
388
+ setDescriptionValue(source) {
389
+ const value = (source === null || source === void 0 ? void 0 : source[0]) || source;
390
+ if (value == undefined || !Object.keys(value).length) {
391
+ this.showNoResultMessage();
392
+ return;
393
+ }
394
+ this._currentValue = value ? Object.assign(Object.assign({}, value), { value: replaceHighlight(value.value), label: replaceHighlight(value.label) }) : value;
395
+ this.value = this._currentValue;
396
+ this.setTextInputValue();
397
+ }
398
+ setTextInputValue() {
399
+ if (this._textInput && (this._textInput.value === null || this._textInput.value === undefined)) {
400
+ if (this.value === undefined || this.value === null)
401
+ return;
402
+ const textValue = (typeof this.value === 'string') ? this.value : this.getFormattedText(this.value);
403
+ this._textInput.value = replaceQuotes(textValue);
404
+ }
405
+ }
406
+ loadOptionValue(argument) {
407
+ var _a;
408
+ const source = (_a = this.options) === null || _a === void 0 ? void 0 : _a.find((opt) => opt.value === argument);
409
+ if (source != undefined) {
410
+ this.selectOption(source);
411
+ }
412
+ else {
413
+ this.showNoResultMessage();
414
+ }
415
+ }
416
+ async showNoResultMessage() {
417
+ this.clearSearch();
418
+ ApplicationUtils.info(this.i18n("ez-classic-search.emptySearch", { field: this.getFieldLabel() }));
419
+ }
420
+ getFieldLabel() {
421
+ var _a;
422
+ return (_a = this.label) === null || _a === void 0 ? void 0 : _a.replace(this.i18n("app.requiredInfo"), "").toUpperCase();
423
+ }
424
+ resetOptions() {
425
+ if (this.showMore) {
426
+ this.handleResetOptionsWithShowMoreVisible();
427
+ return;
428
+ }
429
+ this.hideOptions();
430
+ this._criteria = undefined;
431
+ this._preSelection = undefined;
432
+ this.updateVisibleOptions();
433
+ }
434
+ handleResetOptionsWithShowMoreVisible() {
435
+ //Eh preciso adicionar um timeout para garantir que o evento seja escutado pelo botão de mostrar mais.
436
+ setTimeout(() => {
437
+ this.hideOptions();
438
+ this._criteria = undefined;
439
+ this._preSelection = undefined;
440
+ this.updateVisibleOptions();
441
+ }, 100);
442
+ }
443
+ async handleInitialValue() {
444
+ const valueIsValid = !!this.getValue(this.value);
445
+ if (!valueIsValid) {
446
+ return;
447
+ }
448
+ if (typeof this.value === "string") {
449
+ await this.handleValueAsString(this.value);
450
+ return;
451
+ }
452
+ let text = this.getFormattedText(this.value);
453
+ text = replaceQuotes(text);
454
+ this._textInput.value = text;
455
+ }
456
+ //---------------------------------------------
457
+ // Lifecycle web component
458
+ //---------------------------------------------
459
+ async componentWillLoad() {
460
+ this.i18n = await initI18n();
461
+ if (this.options === undefined) {
462
+ this.options = [];
463
+ const optionsTags = this.el.querySelectorAll("option");
464
+ if (optionsTags) {
465
+ optionsTags.forEach(e => {
466
+ let label = e.innerText;
467
+ let value = e.getAttribute("value");
468
+ let details = e.getAttribute("details");
469
+ if (!value) {
470
+ value = label;
471
+ }
472
+ this.options.push({ label, value, details });
473
+ e.hidden = true;
474
+ });
475
+ }
476
+ }
477
+ this.updateSource([]);
478
+ }
479
+ componentDidRender() {
480
+ var _a;
481
+ (_a = this._optionsList) === null || _a === void 0 ? void 0 : _a.querySelectorAll(".item").forEach((elem) => {
482
+ ElementIDUtils.addIDInfoIfNotExists(elem, "itemSearch");
483
+ });
484
+ }
485
+ async componentDidLoad() {
486
+ this._currentValue = this.value;
487
+ CSSVarsUtils.applyVarsTextInput(this.el, this._textInput);
488
+ this._resizeObserver = new ResizeObserver((entries) => {
489
+ window.requestAnimationFrame(() => {
490
+ if (!Array.isArray(entries) || !entries.length)
491
+ return;
492
+ });
493
+ });
494
+ this._intersectionObserver = new IntersectionObserver((entries) => {
495
+ entries.forEach(entry => {
496
+ if (!entry.isIntersecting && this._ezPopOverPlusElement) {
497
+ this._ezPopOverPlusElement.hide();
498
+ }
499
+ });
500
+ }, { threshold: 0.1 });
501
+ if (this._textInput) {
502
+ this._intersectionObserver.observe(this._textInput);
503
+ }
504
+ await this.handleInitialValue();
505
+ if (this.autoFocus) {
506
+ requestAnimationFrame(() => {
507
+ this.setFocus({ selectText: true });
508
+ });
509
+ }
510
+ }
511
+ disconnectedCallback() {
512
+ var _a, _b;
513
+ (_a = this._resizeObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
514
+ (_b = this._intersectionObserver) === null || _b === void 0 ? void 0 : _b.disconnect();
515
+ }
516
+ //---------------------------------------------
517
+ // Event handlers
518
+ //---------------------------------------------
519
+ handleClassicIconClick(event) {
520
+ const { icon } = event.detail;
521
+ if (icon === "left") {
522
+ this.loadOptions(SearchMode.ADVANCED);
523
+ return;
524
+ }
525
+ this.clearSearch();
526
+ }
527
+ buildNumberArgument(argument) {
528
+ if (this.isTextSearch) {
529
+ return NaN;
530
+ }
531
+ return Number(argument || undefined);
532
+ }
533
+ onTextInputChangeHandler(event) {
534
+ var _a;
535
+ this.clearDeboucingTimeout();
536
+ if (this._startLoading) {
537
+ this._changeDeboucingTimeout = window.setTimeout(() => {
538
+ this.onTextInputChangeHandler(event);
539
+ }, this._deboucingTime);
540
+ return;
541
+ }
542
+ const argument = (_a = event.target.value) === null || _a === void 0 ? void 0 : _a.trim();
543
+ const argumentNumber = this.buildNumberArgument(argument);
544
+ if (!this._criteria) {
545
+ this._textInput.value = event.data || argument;
546
+ }
547
+ this._criteria = argument;
548
+ if (argument) {
549
+ this._showLoading = false;
550
+ this.clearSource();
551
+ if (this.ignoreLimitCharsToSearch || !isNaN(argumentNumber) || argument.length >= this._limitCharsToSearch) {
552
+ this._showLoading = true;
553
+ this._changeDeboucingTimeout = window.setTimeout(() => {
554
+ this.loadOptions(SearchMode.PREDICTIVE, isNaN(argumentNumber) ? argument : argumentNumber.toString());
555
+ }, this._deboucingTime);
556
+ this.showOptions();
557
+ }
558
+ else {
559
+ this.hideOptions();
560
+ }
561
+ }
562
+ else {
563
+ this.hideOptions();
564
+ this._showLoading = false;
565
+ this.clearSource();
566
+ }
567
+ }
568
+ clearDeboucingTimeout() {
569
+ if (this._changeDeboucingTimeout) {
570
+ window.clearTimeout(this._changeDeboucingTimeout);
571
+ this._changeDeboucingTimeout = null;
572
+ }
573
+ }
574
+ async keyDownHandler(event) {
575
+ this._tabPressed = false;
576
+ if (event.ctrlKey) {
577
+ if (event.key === "f" || event.key === "F") {
578
+ this.loadOptions(SearchMode.ADVANCED);
579
+ //ATENÇÃO: Ctrl + F tem ação específica nos browsers
580
+ //nesse caso, como vamos abrir o popup de busca avançada,
581
+ //não é interessante deixar o evento propagar;
582
+ event.stopPropagation();
583
+ event.stopImmediatePropagation();
584
+ event.preventDefault();
585
+ }
586
+ }
587
+ switch (event.key) {
588
+ case "ArrowDown":
589
+ event.stopPropagation();
590
+ if (this.canShowListOptions()) {
591
+ event.preventDefault();
592
+ }
593
+ if (!this.isOptionsVisible()) {
594
+ this.showOptions();
595
+ }
596
+ await this._classicSearchList.nextOption();
597
+ break;
598
+ case "ArrowUp":
599
+ event.stopPropagation();
600
+ if (this.canShowListOptions()) {
601
+ event.preventDefault();
602
+ }
603
+ await this._classicSearchList.previousOption();
604
+ break;
605
+ case "Enter":
606
+ this.handleEventPropagation(event);
607
+ this.selectCurrentOption();
608
+ break;
609
+ case "Escape":
610
+ this.cancelPreselection();
611
+ break;
612
+ case "Tab":
613
+ this._tabPressed = true;
614
+ this.selectCurrentOption(false);
615
+ break;
616
+ }
617
+ //ATENÇÃO: Existe a necessidade de propagar o evento de teclado.
618
+ //Por exemplo, quando o usuário dá um Enter, além de selecionar
619
+ //um valor, também significa que a ateração finalizou,
620
+ //e o contexto pode reagir (fechar um popup por exemplo).
621
+ //event.stopPropagation();
622
+ }
623
+ //O evento deve ter sua propagação interrompida, apenas se a lista de opções estiver sendo exibida.
624
+ handleEventPropagation(event) {
625
+ if (this._ezPopOverPlusElement.opened && this.stopPropagateEnterKeyEvent) {
626
+ event.stopPropagation();
627
+ }
628
+ }
629
+ onTextInputFocusOutHandler() {
630
+ if (this.hideErrorOnFocusOut)
631
+ this.cancelPreselection();
632
+ }
633
+ canShowListOptions() {
634
+ return !this._showLoading && this._visibleOptions.length > 0;
635
+ }
636
+ onChangePreSelection(value) {
637
+ this._preSelection = value;
638
+ }
639
+ async handleClickShowMore() {
640
+ var _a, _b;
641
+ if (!this.optionLoader)
642
+ return;
643
+ const argument = (_b = (_a = this._textInput) === null || _a === void 0 ? void 0 : _a.value) !== null && _b !== void 0 ? _b : "";
644
+ const searchArgument = { mode: SearchMode.ADVANCED, argument };
645
+ const selectedOption = await this.optionLoader(searchArgument, this.contextProperties);
646
+ if (selectedOption && !Array.isArray(selectedOption)) {
647
+ this.selectOption(selectedOption);
648
+ }
649
+ }
650
+ renderShowMore() {
651
+ if (!this.showMore || this._showLoading)
652
+ return;
653
+ return (h("div", { style: { display: "flex", justifyContent: "center" }, "data-element-id": ElementIDUtils.getInternalIDInfo("showMore") }, h("ez-button", { onClick: async () => await this.handleClickShowMore(), variant: "tertiary", style: { width: "100%", justifyContent: "center" }, label: this.i18n("ez-classic-search.showMore") })));
654
+ }
655
+ render() {
656
+ var _a;
657
+ ElementIDUtils.addIDInfoIfNotExists(this.el, 'input');
658
+ const canClearSearch = !!(((_a = this._textInput) === null || _a === void 0 ? void 0 : _a.value) && (this._criteria || this.value)) || this.ensureClearButtonVisible;
659
+ return (h(Host, null, h("ez-classic-input", { "data-element-id": ElementIDUtils.getInternalIDInfo("textInput"), class: this.suppressSearch ? "suppressed-search-input" : "", ref: elem => this._textInput = elem, "data-slave-mode": "true", enabled: this.enabled && !this.suppressSearch, onInput: event => this.onTextInputChangeHandler(event), onFocusout: () => this.onTextInputFocusOutHandler(), onKeyDown: event => this.keyDownHandler(event), label: this.label, helpText: this.canShowError ? this.errorMessage : undefined, state: this.errorMessage && this.canShowError ? "error" : "default", size: this.size, placeholder: this.alternativePlaceholder, leftIconName: "search", leftIconClickable: true, rightIconName: canClearSearch ? "close" : null, rightIconClickable: true, required: this.required, onIconClick: (event) => this.handleClassicIconClick(event), onEzChange: (event) => event.stopPropagation() }), h("ez-popover-plus", { ref: elem => this._ezPopOverPlusElement = elem, autoClose: false, overlayType: "none", useAnchorSize: true, anchorElement: [this._textInput, this.el], "data-element-id": this.el.getAttribute("data-element-id"), onEzVisibilityChange: (event) => event.stopPropagation() }, h("div", null, h("classic-search-list", { ref: (ref) => this._classicSearchList = ref, showLoading: this._showLoading, visibleOptions: this._visibleOptions, textEmptyList: this.i18n("ez-classic-search.emptyList"), canShowListOptions: this.canShowListOptions(), value: this.value, showOptionValue: this.showOptionValue, preSelection: this._preSelection, onChangeValue: ({ detail }) => this.selectOption(detail), onChangePreSelection: ({ detail }) => this.onChangePreSelection(detail) }), this.renderShowMore()))));
660
+ }
661
+ static get is() { return "ez-classic-search"; }
662
+ static get encapsulation() { return "shadow"; }
663
+ static get originalStyleUrls() {
664
+ return {
665
+ "$": ["ez-classic-search.css"]
666
+ };
667
+ }
668
+ static get styleUrls() {
669
+ return {
670
+ "$": ["ez-classic-search.css"]
671
+ };
672
+ }
673
+ static get properties() {
674
+ return {
675
+ "value": {
676
+ "type": "string",
677
+ "mutable": true,
678
+ "complexType": {
679
+ "original": "IOption | string",
680
+ "resolved": "IOption | string",
681
+ "references": {
682
+ "IOption": {
683
+ "location": "local"
684
+ }
685
+ }
686
+ },
687
+ "required": false,
688
+ "optional": false,
689
+ "docs": {
690
+ "tags": [],
691
+ "text": "Define o valor do campo."
692
+ },
693
+ "attribute": "value",
694
+ "reflect": true
695
+ },
696
+ "label": {
697
+ "type": "string",
698
+ "mutable": true,
699
+ "complexType": {
700
+ "original": "string",
701
+ "resolved": "string",
702
+ "references": {}
703
+ },
704
+ "required": false,
705
+ "optional": false,
706
+ "docs": {
707
+ "tags": [],
708
+ "text": "Texto a ser apresentado como t\u00EDtulo do campo."
709
+ },
710
+ "attribute": "label",
711
+ "reflect": true
712
+ },
713
+ "enabled": {
714
+ "type": "boolean",
715
+ "mutable": true,
716
+ "complexType": {
717
+ "original": "boolean",
718
+ "resolved": "boolean",
719
+ "references": {}
720
+ },
721
+ "required": false,
722
+ "optional": false,
723
+ "docs": {
724
+ "tags": [],
725
+ "text": "Se false o usu\u00E1rio n\u00E3o pode interagir com o campo."
726
+ },
727
+ "attribute": "enabled",
728
+ "reflect": true,
729
+ "defaultValue": "true"
730
+ },
731
+ "errorMessage": {
732
+ "type": "string",
733
+ "mutable": true,
734
+ "complexType": {
735
+ "original": "string",
736
+ "resolved": "string",
737
+ "references": {}
738
+ },
739
+ "required": false,
740
+ "optional": false,
741
+ "docs": {
742
+ "tags": [],
743
+ "text": "Define uma mensagem de orienta\u00E7\u00E3o ao usu\u00E1rio, colocando o campo em modo inv\u00E1lido."
744
+ },
745
+ "attribute": "error-message",
746
+ "reflect": true
747
+ },
748
+ "size": {
749
+ "type": "string",
750
+ "mutable": false,
751
+ "complexType": {
752
+ "original": "\"default\" | \"small\" | \"xsmall\"",
753
+ "resolved": "\"default\" | \"small\" | \"xsmall\"",
754
+ "references": {}
755
+ },
756
+ "required": false,
757
+ "optional": true,
758
+ "docs": {
759
+ "tags": [],
760
+ "text": "Tamanho do input"
761
+ },
762
+ "attribute": "size",
763
+ "reflect": false,
764
+ "defaultValue": "\"default\""
765
+ },
766
+ "optionLoader": {
767
+ "type": "unknown",
768
+ "mutable": false,
769
+ "complexType": {
770
+ "original": "(argument: ISearchArgument, ctxProperties?: any) => Promise<Array<IOption>> | Array<IOption> | IOption",
771
+ "resolved": "(argument: ISearchArgument, ctxProperties?: any) => IOption | IOption[] | Promise<IOption[]>",
772
+ "references": {
773
+ "ISearchArgument": {
774
+ "location": "local"
775
+ },
776
+ "Promise": {
777
+ "location": "global"
778
+ },
779
+ "Array": {
780
+ "location": "global"
781
+ },
782
+ "IOption": {
783
+ "location": "local"
784
+ }
785
+ }
786
+ },
787
+ "required": false,
788
+ "optional": false,
789
+ "docs": {
790
+ "tags": [],
791
+ "text": "Carrega as op\u00E7\u00F5es dinamicamente."
792
+ }
793
+ },
794
+ "contextProperties": {
795
+ "type": "any",
796
+ "mutable": false,
797
+ "complexType": {
798
+ "original": "any",
799
+ "resolved": "any",
800
+ "references": {}
801
+ },
802
+ "required": false,
803
+ "optional": true,
804
+ "docs": {
805
+ "tags": [],
806
+ "text": "Propriedades de contexto da aplica\u00E7\u00E3o."
807
+ },
808
+ "attribute": "context-properties",
809
+ "reflect": false
810
+ },
811
+ "showSelectedValue": {
812
+ "type": "boolean",
813
+ "mutable": false,
814
+ "complexType": {
815
+ "original": "boolean",
816
+ "resolved": "boolean",
817
+ "references": {}
818
+ },
819
+ "required": false,
820
+ "optional": false,
821
+ "docs": {
822
+ "tags": [],
823
+ "text": "Se false a op\u00E7\u00E3o selecionada deve exibir somente o `label`."
824
+ },
825
+ "attribute": "show-selected-value",
826
+ "reflect": false,
827
+ "defaultValue": "true"
828
+ },
829
+ "showOptionValue": {
830
+ "type": "boolean",
831
+ "mutable": false,
832
+ "complexType": {
833
+ "original": "boolean",
834
+ "resolved": "boolean",
835
+ "references": {}
836
+ },
837
+ "required": false,
838
+ "optional": false,
839
+ "docs": {
840
+ "tags": [],
841
+ "text": "Se false cada op\u00E7\u00E3o na lista deve exibir somente o `label`."
842
+ },
843
+ "attribute": "show-option-value",
844
+ "reflect": false,
845
+ "defaultValue": "true"
846
+ },
847
+ "suppressEmptyOption": {
848
+ "type": "boolean",
849
+ "mutable": false,
850
+ "complexType": {
851
+ "original": "boolean",
852
+ "resolved": "boolean",
853
+ "references": {}
854
+ },
855
+ "required": false,
856
+ "optional": false,
857
+ "docs": {
858
+ "tags": [],
859
+ "text": "Se true remove a op\u00E7\u00E3o vazia da lista."
860
+ },
861
+ "attribute": "suppress-empty-option",
862
+ "reflect": false,
863
+ "defaultValue": "false"
864
+ },
865
+ "stopPropagateEnterKeyEvent": {
866
+ "type": "boolean",
867
+ "mutable": false,
868
+ "complexType": {
869
+ "original": "boolean",
870
+ "resolved": "boolean",
871
+ "references": {}
872
+ },
873
+ "required": false,
874
+ "optional": false,
875
+ "docs": {
876
+ "tags": [],
877
+ "text": "Se true, ineterrompe a propaga\u00E7\u00E3o do evento de KeyDown da tecla enter"
878
+ },
879
+ "attribute": "stop-propagate-enter-key-event",
880
+ "reflect": false,
881
+ "defaultValue": "false"
882
+ },
883
+ "mode": {
884
+ "type": "string",
885
+ "mutable": false,
886
+ "complexType": {
887
+ "original": "\"slim\" | \"regular\"",
888
+ "resolved": "\"regular\" | \"slim\"",
889
+ "references": {}
890
+ },
891
+ "required": false,
892
+ "optional": false,
893
+ "docs": {
894
+ "tags": [],
895
+ "text": "Define o tamanho do campo."
896
+ },
897
+ "attribute": "mode",
898
+ "reflect": true,
899
+ "defaultValue": "\"regular\""
900
+ },
901
+ "classic": {
902
+ "type": "boolean",
903
+ "mutable": false,
904
+ "complexType": {
905
+ "original": "boolean",
906
+ "resolved": "boolean",
907
+ "references": {}
908
+ },
909
+ "required": false,
910
+ "optional": false,
911
+ "docs": {
912
+ "tags": [],
913
+ "text": "Se true, muda o tipo do text-input para classic."
914
+ },
915
+ "attribute": "classic",
916
+ "reflect": true,
917
+ "defaultValue": "false"
918
+ },
919
+ "required": {
920
+ "type": "boolean",
921
+ "mutable": false,
922
+ "complexType": {
923
+ "original": "boolean",
924
+ "resolved": "boolean",
925
+ "references": {}
926
+ },
927
+ "required": false,
928
+ "optional": true,
929
+ "docs": {
930
+ "tags": [],
931
+ "text": "Define se o campo \u00E9 obrigat\u00F3rio"
932
+ },
933
+ "attribute": "required",
934
+ "reflect": false,
935
+ "defaultValue": "false"
936
+ },
937
+ "canShowError": {
938
+ "type": "boolean",
939
+ "mutable": false,
940
+ "complexType": {
941
+ "original": "boolean",
942
+ "resolved": "boolean",
943
+ "references": {}
944
+ },
945
+ "required": false,
946
+ "optional": false,
947
+ "docs": {
948
+ "tags": [],
949
+ "text": "Se false deixa de exibir a mensagem de erro dentro do campo."
950
+ },
951
+ "attribute": "can-show-error",
952
+ "reflect": true,
953
+ "defaultValue": "true"
954
+ },
955
+ "hideErrorOnFocusOut": {
956
+ "type": "boolean",
957
+ "mutable": false,
958
+ "complexType": {
959
+ "original": "boolean",
960
+ "resolved": "boolean",
961
+ "references": {}
962
+ },
963
+ "required": false,
964
+ "optional": false,
965
+ "docs": {
966
+ "tags": [],
967
+ "text": "Quando verdadeiro deixa de exibir a mensagem de erro (se existente) quando focar em um elemento diferente."
968
+ },
969
+ "attribute": "hide-error-on-focus-out",
970
+ "reflect": false,
971
+ "defaultValue": "true"
972
+ },
973
+ "listOptionsPosition": {
974
+ "type": "unknown",
975
+ "mutable": false,
976
+ "complexType": {
977
+ "original": "IEzCheckBoxListPosition",
978
+ "resolved": "IEzCheckBoxListPosition",
979
+ "references": {
980
+ "IEzCheckBoxListPosition": {
981
+ "location": "import",
982
+ "path": "../ez-combo-box/ez-combo-box"
983
+ }
984
+ }
985
+ },
986
+ "required": false,
987
+ "optional": false,
988
+ "docs": {
989
+ "tags": [],
990
+ "text": "Define um posicionamento fixo para a lista de op\u00E7\u00F5es do CheckBox."
991
+ }
992
+ },
993
+ "isTextSearch": {
994
+ "type": "boolean",
995
+ "mutable": false,
996
+ "complexType": {
997
+ "original": "boolean",
998
+ "resolved": "boolean",
999
+ "references": {}
1000
+ },
1001
+ "required": false,
1002
+ "optional": false,
1003
+ "docs": {
1004
+ "tags": [],
1005
+ "text": "Informa se a pesquisa \u00E9 do tipo texto."
1006
+ },
1007
+ "attribute": "is-text-search",
1008
+ "reflect": false,
1009
+ "defaultValue": "false"
1010
+ },
1011
+ "ignoreLimitCharsToSearch": {
1012
+ "type": "boolean",
1013
+ "mutable": false,
1014
+ "complexType": {
1015
+ "original": "boolean",
1016
+ "resolved": "boolean",
1017
+ "references": {}
1018
+ },
1019
+ "required": false,
1020
+ "optional": false,
1021
+ "docs": {
1022
+ "tags": [],
1023
+ "text": "Define se deve ignorar o limite de caracteres m\u00EDnimo para realizar uma pesquisa"
1024
+ },
1025
+ "attribute": "ignore-limit-chars-to-search",
1026
+ "reflect": false,
1027
+ "defaultValue": "false"
1028
+ },
1029
+ "options": {
1030
+ "type": "unknown",
1031
+ "mutable": true,
1032
+ "complexType": {
1033
+ "original": "Array<IOption>",
1034
+ "resolved": "IOption[]",
1035
+ "references": {
1036
+ "Array": {
1037
+ "location": "global"
1038
+ },
1039
+ "IOption": {
1040
+ "location": "local"
1041
+ }
1042
+ }
1043
+ },
1044
+ "required": false,
1045
+ "optional": false,
1046
+ "docs": {
1047
+ "tags": [],
1048
+ "text": "Array com as op\u00E7\u00F5es do ez-combo-box. Os elementos devem obedecer\no formato: `{value: string, label: string}`."
1049
+ }
1050
+ },
1051
+ "suppressSearch": {
1052
+ "type": "boolean",
1053
+ "mutable": false,
1054
+ "complexType": {
1055
+ "original": "boolean",
1056
+ "resolved": "boolean",
1057
+ "references": {}
1058
+ },
1059
+ "required": false,
1060
+ "optional": false,
1061
+ "docs": {
1062
+ "tags": [],
1063
+ "text": "Se true desabilita a digita\u00E7\u00E3o dentro do componente."
1064
+ },
1065
+ "attribute": "suppress-search",
1066
+ "reflect": false,
1067
+ "defaultValue": "false"
1068
+ },
1069
+ "ensureClearButtonVisible": {
1070
+ "type": "boolean",
1071
+ "mutable": false,
1072
+ "complexType": {
1073
+ "original": "boolean",
1074
+ "resolved": "boolean",
1075
+ "references": {}
1076
+ },
1077
+ "required": false,
1078
+ "optional": false,
1079
+ "docs": {
1080
+ "tags": [],
1081
+ "text": "Garante que o bot\u00E3o de limpar pesquisa est\u00E1 sempre vis\u00EDvel"
1082
+ },
1083
+ "attribute": "ensure-clear-button-visible",
1084
+ "reflect": false,
1085
+ "defaultValue": "false"
1086
+ },
1087
+ "suppressPreLoad": {
1088
+ "type": "boolean",
1089
+ "mutable": false,
1090
+ "complexType": {
1091
+ "original": "boolean",
1092
+ "resolved": "boolean",
1093
+ "references": {}
1094
+ },
1095
+ "required": false,
1096
+ "optional": false,
1097
+ "docs": {
1098
+ "tags": [],
1099
+ "text": "Se true, desabilita pr\u00E9-load das op\u00E7\u00F5es ao carregar componente"
1100
+ },
1101
+ "attribute": "suppress-pre-load",
1102
+ "reflect": false,
1103
+ "defaultValue": "true"
1104
+ },
1105
+ "autoFocus": {
1106
+ "type": "boolean",
1107
+ "mutable": false,
1108
+ "complexType": {
1109
+ "original": "boolean",
1110
+ "resolved": "boolean",
1111
+ "references": {}
1112
+ },
1113
+ "required": false,
1114
+ "optional": false,
1115
+ "docs": {
1116
+ "tags": [],
1117
+ "text": "Se true o campo de texto receber\u00E1 o foco ao ser renderizado."
1118
+ },
1119
+ "attribute": "auto-focus",
1120
+ "reflect": false,
1121
+ "defaultValue": "false"
1122
+ },
1123
+ "alternativePlaceholder": {
1124
+ "type": "string",
1125
+ "mutable": false,
1126
+ "complexType": {
1127
+ "original": "string",
1128
+ "resolved": "string",
1129
+ "references": {}
1130
+ },
1131
+ "required": false,
1132
+ "optional": false,
1133
+ "docs": {
1134
+ "tags": [],
1135
+ "text": "Texto alternativo a ser apresentado como t\u00EDtulo do campo."
1136
+ },
1137
+ "attribute": "alternative-placeholder",
1138
+ "reflect": true
1139
+ },
1140
+ "showMore": {
1141
+ "type": "boolean",
1142
+ "mutable": false,
1143
+ "complexType": {
1144
+ "original": "boolean",
1145
+ "resolved": "boolean",
1146
+ "references": {}
1147
+ },
1148
+ "required": false,
1149
+ "optional": false,
1150
+ "docs": {
1151
+ "tags": [],
1152
+ "text": "Informa se deve exibir a op\u00E7\u00E3o de mostrar mais resultados."
1153
+ },
1154
+ "attribute": "show-more",
1155
+ "reflect": false
1156
+ },
1157
+ "suppressInputPersist": {
1158
+ "type": "boolean",
1159
+ "mutable": true,
1160
+ "complexType": {
1161
+ "original": "boolean",
1162
+ "resolved": "boolean",
1163
+ "references": {}
1164
+ },
1165
+ "required": false,
1166
+ "optional": false,
1167
+ "docs": {
1168
+ "tags": [],
1169
+ "text": "Informa se o valor da op\u00E7\u00E3o selecionada deve persistir no input de texto."
1170
+ },
1171
+ "attribute": "suppress-input-persist",
1172
+ "reflect": false,
1173
+ "defaultValue": "false"
1174
+ },
1175
+ "hideDescriptionInput": {
1176
+ "type": "boolean",
1177
+ "mutable": true,
1178
+ "complexType": {
1179
+ "original": "boolean",
1180
+ "resolved": "boolean",
1181
+ "references": {}
1182
+ },
1183
+ "required": false,
1184
+ "optional": false,
1185
+ "docs": {
1186
+ "tags": [],
1187
+ "text": "Se true o campo de de apresenta\u00E7\u00E3o n\u00E3o ser\u00E1 exibido."
1188
+ },
1189
+ "attribute": "hide-description-input",
1190
+ "reflect": true,
1191
+ "defaultValue": "false"
1192
+ }
1193
+ };
1194
+ }
1195
+ static get states() {
1196
+ return {
1197
+ "_preSelection": {},
1198
+ "_visibleOptions": {},
1199
+ "_startLoading": {},
1200
+ "_showLoading": {},
1201
+ "_criteria": {}
1202
+ };
1203
+ }
1204
+ static get events() {
1205
+ return [{
1206
+ "method": "ezChange",
1207
+ "name": "ezChange",
1208
+ "bubbles": true,
1209
+ "cancelable": true,
1210
+ "composed": true,
1211
+ "docs": {
1212
+ "tags": [],
1213
+ "text": "Emitido quando acontece a altera\u00E7\u00E3o de valor do campo."
1214
+ },
1215
+ "complexType": {
1216
+ "original": "IOption",
1217
+ "resolved": "IOption",
1218
+ "references": {
1219
+ "IOption": {
1220
+ "location": "local"
1221
+ }
1222
+ }
1223
+ }
1224
+ }];
1225
+ }
1226
+ static get methods() {
1227
+ return {
1228
+ "getValueAsync": {
1229
+ "complexType": {
1230
+ "signature": "() => Promise<unknown>",
1231
+ "parameters": [],
1232
+ "references": {
1233
+ "Promise": {
1234
+ "location": "global"
1235
+ }
1236
+ },
1237
+ "return": "Promise<unknown>"
1238
+ },
1239
+ "docs": {
1240
+ "text": "",
1241
+ "tags": []
1242
+ }
1243
+ },
1244
+ "setFocus": {
1245
+ "complexType": {
1246
+ "signature": "(options?: OptionsSetFocus) => Promise<void>",
1247
+ "parameters": [{
1248
+ "tags": [],
1249
+ "text": ""
1250
+ }],
1251
+ "references": {
1252
+ "Promise": {
1253
+ "location": "global"
1254
+ },
1255
+ "OptionsSetFocus": {
1256
+ "location": "import",
1257
+ "path": "../ez-classic-input/interfaces/optionsSetFocus"
1258
+ }
1259
+ },
1260
+ "return": "Promise<void>"
1261
+ },
1262
+ "docs": {
1263
+ "text": "Aplica o foco no campo.",
1264
+ "tags": []
1265
+ }
1266
+ },
1267
+ "setBlur": {
1268
+ "complexType": {
1269
+ "signature": "() => Promise<void>",
1270
+ "parameters": [],
1271
+ "references": {
1272
+ "Promise": {
1273
+ "location": "global"
1274
+ }
1275
+ },
1276
+ "return": "Promise<void>"
1277
+ },
1278
+ "docs": {
1279
+ "text": "Remove o foco do campo.",
1280
+ "tags": []
1281
+ }
1282
+ },
1283
+ "isInvalid": {
1284
+ "complexType": {
1285
+ "signature": "() => Promise<boolean>",
1286
+ "parameters": [],
1287
+ "references": {
1288
+ "Promise": {
1289
+ "location": "global"
1290
+ }
1291
+ },
1292
+ "return": "Promise<boolean>"
1293
+ },
1294
+ "docs": {
1295
+ "text": "Retorna se o conte\u00FAdo \u00E9 inv\u00E1lido.",
1296
+ "tags": []
1297
+ }
1298
+ },
1299
+ "clearValue": {
1300
+ "complexType": {
1301
+ "signature": "() => Promise<void>",
1302
+ "parameters": [],
1303
+ "references": {
1304
+ "Promise": {
1305
+ "location": "global"
1306
+ }
1307
+ },
1308
+ "return": "Promise<void>"
1309
+ },
1310
+ "docs": {
1311
+ "text": "Limpa o valor do campo de pesquisa",
1312
+ "tags": []
1313
+ }
1314
+ }
1315
+ };
1316
+ }
1317
+ static get elementRef() { return "el"; }
1318
+ static get watchers() {
1319
+ return [{
1320
+ "propName": "errorMessage",
1321
+ "methodName": "observeErrorMessage"
1322
+ }, {
1323
+ "propName": "value",
1324
+ "methodName": "observeValue"
1325
+ }, {
1326
+ "propName": "options",
1327
+ "methodName": "observeOptions"
1328
+ }];
1329
+ }
1330
+ }