@sankhyalabs/ezui 7.1.2 → 7.2.0-dev.10

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 (991) hide show
  1. package/dist/cjs/{ApplicationUtils-5cc05979.js → ApplicationUtils-88dfe345.js} +1 -1
  2. package/dist/cjs/FormLayout-fe8da83c.js +9 -0
  3. package/dist/cjs/{app-globals-2fbe4b17.js → app-globals-c1d07d68.js} +1 -1
  4. package/dist/cjs/{ez-combo-box-list_4.cjs.entry.js → classic-search-list_7.cjs.entry.js} +364 -5
  5. package/dist/cjs/ez-actions-button.cjs.entry.js +4 -3
  6. package/dist/cjs/ez-alert-list.cjs.entry.js +1 -1
  7. package/dist/cjs/ez-avatar.cjs.entry.js +1 -1
  8. package/dist/cjs/ez-calendar.cjs.entry.js +1 -1
  9. package/dist/cjs/ez-chart.cjs.entry.js +1 -1
  10. package/dist/cjs/ez-classic-combo-box.cjs.entry.js +38 -15
  11. package/dist/cjs/ez-classic-date-input.cjs.entry.js +201 -0
  12. package/dist/cjs/ez-classic-date-time-input.cjs.entry.js +246 -0
  13. package/dist/cjs/ez-classic-input.cjs.entry.js +99 -18
  14. package/dist/cjs/ez-classic-number-input.cjs.entry.js +205 -0
  15. package/dist/cjs/ez-classic-search-plus.cjs.entry.js +420 -0
  16. package/dist/cjs/ez-classic-search.cjs.entry.js +683 -0
  17. package/dist/cjs/ez-classic-text-area.cjs.entry.js +13 -2
  18. package/dist/cjs/ez-classic-time-input.cjs.entry.js +198 -0
  19. package/dist/cjs/ez-collapsible-box.cjs.entry.js +4 -3
  20. package/dist/cjs/ez-combo-box.cjs.entry.js +4 -3
  21. package/dist/cjs/ez-date-input.cjs.entry.js +1 -1
  22. package/dist/cjs/ez-date-time-input.cjs.entry.js +1 -1
  23. package/dist/cjs/ez-dialog.cjs.entry.js +1 -1
  24. package/dist/cjs/ez-double-list.cjs.entry.js +1 -1
  25. package/dist/cjs/ez-dropdown.cjs.entry.js +1 -1
  26. package/dist/cjs/ez-empty-card.cjs.entry.js +1 -1
  27. package/dist/cjs/ez-file-item.cjs.entry.js +1 -1
  28. package/dist/cjs/ez-form-view.cjs.entry.js +130 -37
  29. package/dist/cjs/ez-form.cjs.entry.js +87 -46
  30. package/dist/cjs/ez-grid-pagination.cjs.entry.js +227 -0
  31. package/dist/cjs/ez-grid.cjs.entry.js +1003 -277
  32. package/dist/cjs/ez-guide-navigator.cjs.entry.js +1 -1
  33. package/dist/cjs/ez-icon.cjs.entry.js +1 -1
  34. package/dist/cjs/ez-link-builder_6.cjs.entry.js +1 -1
  35. package/dist/cjs/ez-list.cjs.entry.js +1 -1
  36. package/dist/cjs/ez-modal-container.cjs.entry.js +1 -1
  37. package/dist/cjs/ez-modal.cjs.entry.js +2 -2
  38. package/dist/cjs/ez-multi-selection-list.cjs.entry.js +1 -1
  39. package/dist/cjs/ez-number-input.cjs.entry.js +1 -1
  40. package/dist/cjs/ez-pagination.cjs.entry.js +1 -1
  41. package/dist/cjs/ez-popover-core.cjs.entry.js +1 -1
  42. package/dist/cjs/ez-popup.cjs.entry.js +1 -1
  43. package/dist/cjs/ez-record-navigation.cjs.entry.js +121 -0
  44. package/dist/cjs/ez-scroller_2.cjs.entry.js +81 -14
  45. package/dist/cjs/ez-search-plus.cjs.entry.js +18 -8
  46. package/dist/cjs/ez-search-result-list.cjs.entry.js +1 -1
  47. package/dist/cjs/ez-search.cjs.entry.js +49 -11
  48. package/dist/cjs/ez-sidebar-navigator.cjs.entry.js +1 -1
  49. package/dist/cjs/ez-skeleton.cjs.entry.js +1 -1
  50. package/dist/cjs/ez-sortable-list.cjs.entry.js +2 -2
  51. package/dist/cjs/ez-spinner.cjs.entry.js +1 -1
  52. package/dist/cjs/ez-split-button.cjs.entry.js +16 -17
  53. package/dist/cjs/ez-split-item.cjs.entry.js +4 -3
  54. package/dist/cjs/ez-text-input.cjs.entry.js +37 -0
  55. package/dist/cjs/ez-time-input.cjs.entry.js +1 -1
  56. package/dist/cjs/ez-tooltip.cjs.entry.js +1 -1
  57. package/dist/cjs/ez-tree.cjs.entry.js +1 -1
  58. package/dist/cjs/ez-upload.cjs.entry.js +2 -2
  59. package/dist/cjs/ezui.cjs.js +3 -3
  60. package/dist/cjs/filter-column.cjs.entry.js +1 -1
  61. package/dist/cjs/{floating-ui.dom.esm-f4d87617.js → floating-ui.dom.esm-bea31048.js} +165 -119
  62. package/dist/cjs/{index-1be40f19.js → index-9739c242.js} +148 -30
  63. package/dist/cjs/index-a7b0c73d.js +50 -18
  64. package/dist/cjs/loader.cjs.js +3 -3
  65. package/dist/cjs/{purify-8c74770b.js → purify-b30a5718.js} +1 -0
  66. package/dist/cjs/{search-column-00a916ae.js → search-column-9612bd3a.js} +12 -10
  67. package/dist/cjs/searchFormatters-051f8677.js +23 -0
  68. package/dist/cjs/{FormLayout-18853e70.js → types-6a5df0c7.js} +0 -6
  69. package/dist/collection/collection-manifest.json +64 -3
  70. package/dist/collection/components/ez-classic-combo-box/ez-classic-combo-box.css +5 -0
  71. package/dist/collection/components/ez-classic-combo-box/ez-classic-combo-box.js +96 -18
  72. package/dist/collection/components/ez-classic-date-input/ez-classic-date-input.css +44 -0
  73. package/dist/collection/components/ez-classic-date-input/ez-classic-date-input.js +541 -0
  74. package/dist/collection/components/ez-classic-date-time-input/ez-classic-date-time-input.css +44 -0
  75. package/dist/collection/components/ez-classic-date-time-input/ez-classic-date-time-input.js +586 -0
  76. package/dist/collection/components/ez-classic-input/ez-classic-input.css +33 -5
  77. package/dist/collection/components/ez-classic-input/ez-classic-input.js +155 -19
  78. package/dist/collection/components/ez-classic-number-input/ez-classic-number-input.css +16 -0
  79. package/dist/collection/components/ez-classic-number-input/ez-classic-number-input.js +583 -0
  80. package/dist/collection/components/ez-classic-search/ez-classic-search.css +126 -0
  81. package/dist/collection/components/ez-classic-search/ez-classic-search.js +1330 -0
  82. package/dist/collection/components/ez-classic-search/subcomponent/classic-search-list/classic-search-list.css +227 -0
  83. package/dist/collection/components/ez-classic-search/subcomponent/classic-search-list/classic-search-list.js +316 -0
  84. package/dist/collection/components/ez-classic-search/utils/searchFormatters.js +18 -0
  85. package/dist/collection/components/ez-classic-search-plus/ez-classic-search-plus.css +428 -0
  86. package/dist/collection/components/ez-classic-search-plus/ez-classic-search-plus.js +1003 -0
  87. package/dist/collection/components/ez-classic-search-plus/subcomponent/ez-search-result-list/ez-classic-search-result-list.css +221 -0
  88. package/dist/collection/components/ez-classic-search-plus/subcomponent/ez-search-result-list/ez-classic-search-result-list.js +298 -0
  89. package/dist/collection/components/ez-classic-text-area/ez-classic-text-area.css +1 -0
  90. package/dist/collection/components/ez-classic-text-area/ez-classic-text-area.js +32 -1
  91. package/dist/collection/components/ez-classic-time-input/ez-classic-time-input.css +14 -0
  92. package/dist/collection/components/ez-classic-time-input/ez-classic-time-input.js +512 -0
  93. package/dist/collection/components/ez-dropdown/ez-dropdown.css +1 -1
  94. package/dist/collection/components/ez-empty-card/ez-empty-card.js +7 -7
  95. package/dist/collection/components/ez-form/ez-form.js +30 -4
  96. package/dist/collection/components/ez-form-view/ez-form-view.css +27 -8
  97. package/dist/collection/components/ez-form-view/ez-form-view.js +62 -4
  98. package/dist/collection/components/ez-form-view/fieldbuilder/FieldBuilder.js +9 -4
  99. package/dist/collection/components/ez-form-view/fieldbuilder/templates/CheckBox.tpl.js +9 -6
  100. package/dist/collection/components/ez-form-view/fieldbuilder/templates/ComboBox.tpl.js +8 -1
  101. package/dist/collection/components/ez-form-view/fieldbuilder/templates/DateInput.tpl.js +30 -6
  102. package/dist/collection/components/ez-form-view/fieldbuilder/templates/FileInput.tpl.js +1 -1
  103. package/dist/collection/components/ez-form-view/fieldbuilder/templates/ImageInput.tpl.js +4 -0
  104. package/dist/collection/components/ez-form-view/fieldbuilder/templates/NumberInput.tpl.js +12 -5
  105. package/dist/collection/components/ez-form-view/fieldbuilder/templates/RichText.tpl.js +1 -1
  106. package/dist/collection/components/ez-form-view/fieldbuilder/templates/SearchInput.tpl.js +9 -3
  107. package/dist/collection/components/ez-form-view/fieldbuilder/templates/SearchInputPlus.tpl.js +8 -1
  108. package/dist/collection/components/ez-form-view/fieldbuilder/templates/TextArea.tpl.js +7 -1
  109. package/dist/collection/components/ez-form-view/fieldbuilder/templates/TextInput.tpl.js +8 -1
  110. package/dist/collection/components/ez-form-view/structure/index.js +1 -1
  111. package/dist/collection/components/ez-grid/controller/ag-grid/AgGridController.js +161 -26
  112. package/dist/collection/components/ez-grid/controller/ag-grid/DataSource.js +11 -1
  113. package/dist/collection/components/ez-grid/controller/ag-grid/gridColumnDefaultWidths.js +23 -0
  114. package/dist/collection/components/ez-grid/controller/ag-grid/utils/AggFunctionResolver.js +24 -0
  115. package/dist/collection/components/ez-grid/ez-grid.css +1 -60
  116. package/dist/collection/components/ez-grid/ez-grid.js +52 -150
  117. package/dist/collection/components/ez-grid/interfaces/IAggegationFunc.js +1 -0
  118. package/dist/collection/components/ez-grid/utils/index.js +1 -0
  119. package/dist/collection/components/ez-grid-pagination/ez-grid-pagination.css +111 -0
  120. package/dist/collection/components/ez-grid-pagination/ez-grid-pagination.js +410 -0
  121. package/dist/collection/components/ez-icon/ez-icon.css +6 -5
  122. package/dist/collection/components/ez-image-input/ez-image-input.css +189 -0
  123. package/dist/collection/components/ez-image-input/ez-image-input.js +329 -0
  124. package/dist/collection/components/ez-modal/ez-modal.css +3 -0
  125. package/dist/collection/components/ez-record-navigation/ez-record-navigation.css +51 -0
  126. package/dist/collection/components/ez-record-navigation/ez-record-navigation.js +246 -0
  127. package/dist/collection/components/ez-scroller/EzScrollNavigationMode.js +5 -0
  128. package/dist/collection/components/ez-scroller/ez-scroller.css +117 -11
  129. package/dist/collection/components/ez-scroller/ez-scroller.js +118 -13
  130. package/dist/collection/components/ez-search/ez-search.css +4 -0
  131. package/dist/collection/components/ez-search/ez-search.js +75 -3
  132. package/dist/collection/components/ez-search-plus/ez-search-plus.js +11 -2
  133. package/dist/collection/components/ez-sortable-list/ez-sortable-list.css +1 -1
  134. package/dist/collection/components/ez-split-button/ez-split-button.css +1 -1
  135. package/dist/collection/components/ez-split-button/ez-split-button.js +20 -15
  136. package/dist/collection/components/ez-text-input/ez-text-input.js +38 -1
  137. package/dist/collection/utils/form/DataBinder.js +2 -2
  138. package/dist/collection/utils/form/FormMetadata.js +75 -39
  139. package/dist/collection/utils/form/interfaces/FormLayout.js +3 -1
  140. package/dist/collection/utils/i18n/locales/en-us.js +46 -4
  141. package/dist/collection/utils/i18n/locales/es-es.js +46 -4
  142. package/dist/collection/utils/i18n/locales/pt-br.js +46 -4
  143. package/dist/collection/utils/searchColumn/search-column.js +8 -6
  144. package/dist/custom-elements/index.d.ts +66 -0
  145. package/dist/custom-elements/index.js +4674 -756
  146. package/dist/esm/{ApplicationUtils-1569f757.js → ApplicationUtils-f7721533.js} +1 -1
  147. package/dist/esm/FormLayout-bda67973.js +9 -0
  148. package/dist/esm/{app-globals-c0ac93c0.js → app-globals-6e258867.js} +1 -1
  149. package/dist/esm/classic-search-list_7.entry.js +1022 -0
  150. package/dist/esm/ez-actions-button.entry.js +4 -3
  151. package/dist/esm/ez-alert-list.entry.js +1 -1
  152. package/dist/esm/ez-avatar.entry.js +1 -1
  153. package/dist/esm/ez-calendar.entry.js +1 -1
  154. package/dist/esm/ez-chart.entry.js +1 -1
  155. package/dist/esm/ez-classic-combo-box.entry.js +38 -15
  156. package/dist/esm/ez-classic-date-input.entry.js +197 -0
  157. package/dist/esm/ez-classic-date-time-input.entry.js +242 -0
  158. package/dist/esm/ez-classic-input.entry.js +100 -19
  159. package/dist/esm/ez-classic-number-input.entry.js +201 -0
  160. package/dist/esm/ez-classic-search-plus.entry.js +416 -0
  161. package/dist/esm/ez-classic-search.entry.js +679 -0
  162. package/dist/esm/ez-classic-text-area.entry.js +13 -2
  163. package/dist/esm/ez-classic-time-input.entry.js +194 -0
  164. package/dist/esm/ez-collapsible-box.entry.js +4 -3
  165. package/dist/esm/ez-combo-box.entry.js +4 -3
  166. package/dist/esm/ez-date-input.entry.js +1 -1
  167. package/dist/esm/ez-date-time-input.entry.js +1 -1
  168. package/dist/esm/ez-dialog.entry.js +1 -1
  169. package/dist/esm/ez-double-list.entry.js +1 -1
  170. package/dist/esm/ez-dropdown.entry.js +1 -1
  171. package/dist/esm/ez-empty-card.entry.js +1 -1
  172. package/dist/esm/ez-file-item.entry.js +1 -1
  173. package/dist/esm/ez-form-view.entry.js +130 -37
  174. package/dist/esm/ez-form.entry.js +87 -46
  175. package/dist/esm/ez-grid-pagination.entry.js +223 -0
  176. package/dist/esm/ez-grid.entry.js +1002 -276
  177. package/dist/esm/ez-guide-navigator.entry.js +1 -1
  178. package/dist/esm/ez-icon.entry.js +1 -1
  179. package/dist/esm/ez-link-builder_6.entry.js +1 -1
  180. package/dist/esm/ez-list.entry.js +1 -1
  181. package/dist/esm/ez-modal-container.entry.js +1 -1
  182. package/dist/esm/ez-modal.entry.js +2 -2
  183. package/dist/esm/ez-multi-selection-list.entry.js +1 -1
  184. package/dist/esm/ez-number-input.entry.js +1 -1
  185. package/dist/esm/ez-pagination.entry.js +1 -1
  186. package/dist/esm/ez-popover-core.entry.js +1 -1
  187. package/dist/esm/ez-popup.entry.js +1 -1
  188. package/dist/esm/ez-record-navigation.entry.js +117 -0
  189. package/dist/esm/ez-scroller_2.entry.js +81 -14
  190. package/dist/esm/ez-search-plus.entry.js +15 -5
  191. package/dist/esm/ez-search-result-list.entry.js +1 -1
  192. package/dist/esm/ez-search.entry.js +44 -6
  193. package/dist/esm/ez-sidebar-navigator.entry.js +1 -1
  194. package/dist/esm/ez-skeleton.entry.js +1 -1
  195. package/dist/esm/ez-sortable-list.entry.js +2 -2
  196. package/dist/esm/ez-spinner.entry.js +1 -1
  197. package/dist/esm/ez-split-button.entry.js +16 -17
  198. package/dist/esm/ez-split-item.entry.js +4 -3
  199. package/dist/esm/ez-text-input.entry.js +37 -0
  200. package/dist/esm/ez-time-input.entry.js +1 -1
  201. package/dist/esm/ez-tooltip.entry.js +1 -1
  202. package/dist/esm/ez-tree.entry.js +1 -1
  203. package/dist/esm/ez-upload.entry.js +2 -2
  204. package/dist/esm/ezui.js +3 -3
  205. package/dist/esm/filter-column.entry.js +1 -1
  206. package/dist/esm/{floating-ui.dom.esm-ad30f2f0.js → floating-ui.dom.esm-2964eae1.js} +165 -119
  207. package/dist/esm/{index-41363fa6.js → index-9e6dab5b.js} +148 -30
  208. package/dist/esm/index-baa5e267.js +50 -18
  209. package/dist/esm/loader.js +3 -3
  210. package/dist/esm/{purify-ff423562.js → purify-9357603c.js} +1 -0
  211. package/dist/esm/{search-column-3984faec.js → search-column-dba4853a.js} +12 -10
  212. package/dist/esm/searchFormatters-6d9b06e4.js +20 -0
  213. package/dist/esm/{FormLayout-071d324c.js → types-6f6b2650.js} +1 -7
  214. package/dist/ezui/ezui.esm.js +1 -1
  215. package/dist/ezui/p-0592535f.entry.js +1 -0
  216. package/dist/ezui/{p-b3d8034b.entry.js → p-063bb342.entry.js} +1 -1
  217. package/dist/ezui/{p-3afa1c6e.entry.js → p-0ac8bd66.entry.js} +1 -1
  218. package/dist/ezui/p-0d80e3ec.entry.js +1 -0
  219. package/dist/ezui/{p-02d448bb.entry.js → p-108503ed.entry.js} +1 -1
  220. package/dist/ezui/p-1166b2d5.entry.js +1 -0
  221. package/dist/ezui/p-15873627.js +1 -0
  222. package/dist/ezui/p-160a268d.entry.js +1 -0
  223. package/dist/ezui/p-178cb9df.entry.js +1 -0
  224. package/dist/ezui/p-2856c545.entry.js +1 -0
  225. package/dist/ezui/{p-05c32903.entry.js → p-2ae127bc.entry.js} +1 -1
  226. package/dist/ezui/p-2ebd7383.entry.js +1 -0
  227. package/dist/ezui/p-30c5f48a.entry.js +1 -0
  228. package/dist/ezui/{p-ec730d4e.entry.js → p-312bd3c6.entry.js} +1 -1
  229. package/dist/ezui/p-3fae7072.entry.js +1 -0
  230. package/dist/ezui/p-42e1e733.js +1 -0
  231. package/dist/ezui/p-44183c39.entry.js +1 -0
  232. package/dist/ezui/{p-ce0b36d7.entry.js → p-45245c32.entry.js} +1 -1
  233. package/dist/ezui/{p-6c51ccd1.entry.js → p-46b1b2ac.entry.js} +1 -1
  234. package/dist/ezui/p-47e4a8ce.js +1 -0
  235. package/dist/ezui/{p-9b215871.entry.js → p-54af1af0.entry.js} +1 -1
  236. package/dist/ezui/p-5895e687.js +1 -0
  237. package/dist/ezui/p-6369a0cd.entry.js +1 -0
  238. package/dist/ezui/{p-7f37ee99.entry.js → p-66455069.entry.js} +1 -1
  239. package/dist/ezui/p-72e77b45.entry.js +1 -0
  240. package/dist/ezui/{p-34a476a9.entry.js → p-73461028.entry.js} +1 -1
  241. package/dist/ezui/{p-721fd999.entry.js → p-7424d520.entry.js} +1 -1
  242. package/dist/ezui/{p-39761eca.entry.js → p-7a07c50f.entry.js} +1 -1
  243. package/dist/ezui/p-7b078125.entry.js +1 -0
  244. package/dist/ezui/p-7dad8018.entry.js +1 -0
  245. package/dist/ezui/p-7df45688.entry.js +1 -0
  246. package/dist/ezui/{p-56fc1da0.js → p-83bddbbb.js} +1 -1
  247. package/dist/ezui/p-881abc22.entry.js +1 -0
  248. package/dist/ezui/p-88a115b3.js +1 -0
  249. package/dist/ezui/p-99556756.entry.js +1 -0
  250. package/dist/ezui/p-9bd3e28b.entry.js +1 -0
  251. package/dist/ezui/{p-a4083a7a.entry.js → p-9bd78d39.entry.js} +1 -1
  252. package/dist/ezui/p-a0f51b99.entry.js +1 -0
  253. package/dist/ezui/{p-351fb12f.entry.js → p-a4735a12.entry.js} +1 -1
  254. package/dist/ezui/{p-baec56c9.js → p-ad5e263d.js} +1 -1
  255. package/dist/ezui/p-b06294c9.entry.js +1 -0
  256. package/dist/ezui/{p-14ceb733.entry.js → p-b493757c.entry.js} +1 -1
  257. package/dist/ezui/{p-d5eb2fad.entry.js → p-b8cd501a.entry.js} +1 -1
  258. package/dist/ezui/{p-ecd6409d.entry.js → p-b986da95.entry.js} +2 -2
  259. package/dist/ezui/{p-948f0fb2.entry.js → p-c25a4d30.entry.js} +1 -1
  260. package/dist/ezui/{p-859e3134.entry.js → p-c37fb359.entry.js} +1 -1
  261. package/dist/ezui/{p-9b3f3c02.entry.js → p-cb00863d.entry.js} +1 -1
  262. package/dist/ezui/{p-4d30b703.entry.js → p-cf66ace0.entry.js} +1 -1
  263. package/dist/ezui/p-d2601b25.js +1 -0
  264. package/dist/ezui/{p-b989a33e.entry.js → p-d5684cdc.entry.js} +1 -1
  265. package/dist/ezui/{p-0f7971cf.entry.js → p-d70805e4.entry.js} +1 -1
  266. package/dist/ezui/p-d75f583b.entry.js +1 -0
  267. package/dist/ezui/p-d8b69419.entry.js +1 -0
  268. package/dist/ezui/{p-d6bb930d.entry.js → p-dfced8c7.entry.js} +1 -1
  269. package/dist/ezui/{p-5c440899.js → p-dff9862b.js} +1 -1
  270. package/dist/ezui/p-e2b3970c.entry.js +309 -0
  271. package/dist/ezui/{p-110cfb7d.entry.js → p-e3d6b544.entry.js} +1 -1
  272. package/dist/ezui/{p-4fe123b6.entry.js → p-e692c2a7.entry.js} +1 -1
  273. package/dist/ezui/p-e8cd003b.entry.js +1 -0
  274. package/dist/ezui/p-ed790867.entry.js +1 -0
  275. package/dist/ezui/p-f2e0acf5.entry.js +1 -0
  276. package/dist/ezui/{p-9ab2add9.entry.js → p-f498f6b5.entry.js} +1 -1
  277. package/dist/ezui/p-fb27b98d.entry.js +1 -0
  278. package/dist/ezui/p-fc11f5b9.entry.js +1 -0
  279. package/dist/ezui/{p-ef8bd3e8.entry.js → p-fc72aeb8.entry.js} +1 -1
  280. package/dist/types/components/ez-classic-combo-box/ez-classic-combo-box.d.ts +11 -3
  281. package/dist/types/components/ez-classic-date-input/ez-classic-date-input.d.ts +91 -0
  282. package/dist/types/components/ez-classic-date-time-input/ez-classic-date-time-input.d.ts +95 -0
  283. package/dist/types/components/ez-classic-input/ez-classic-input.d.ts +18 -1
  284. package/dist/types/components/ez-classic-number-input/ez-classic-number-input.d.ts +101 -0
  285. package/dist/types/components/ez-classic-search/ez-classic-search.d.ts +219 -0
  286. package/dist/types/components/ez-classic-search/subcomponent/classic-search-list/classic-search-list.d.ts +29 -0
  287. package/dist/types/components/ez-classic-search/utils/searchFormatters.d.ts +2 -0
  288. package/dist/types/components/ez-classic-search-plus/ez-classic-search-plus.d.ts +189 -0
  289. package/dist/types/components/ez-classic-search-plus/subcomponent/ez-search-result-list/ez-classic-search-result-list.d.ts +29 -0
  290. package/dist/types/components/ez-classic-text-area/ez-classic-text-area.d.ts +3 -0
  291. package/dist/types/components/ez-empty-card/ez-empty-card.d.ts +2 -2
  292. package/dist/types/components/ez-form/ez-form.d.ts +6 -0
  293. package/dist/types/components/ez-form-view/ez-form-view.d.ts +11 -0
  294. package/dist/types/components/ez-form-view/fieldbuilder/FieldBuilder.d.ts +8 -1
  295. package/dist/types/components/ez-form-view/fieldbuilder/templates/CheckBox.tpl.d.ts +3 -2
  296. package/dist/types/components/ez-form-view/fieldbuilder/templates/ComboBox.tpl.d.ts +2 -1
  297. package/dist/types/components/ez-form-view/fieldbuilder/templates/DateInput.tpl.d.ts +5 -4
  298. package/dist/types/components/ez-form-view/fieldbuilder/templates/FileInput.tpl.d.ts +2 -1
  299. package/dist/types/components/ez-form-view/fieldbuilder/templates/ImageInput.tpl.d.ts +2 -0
  300. package/dist/types/components/ez-form-view/fieldbuilder/templates/NumberInput.tpl.d.ts +3 -2
  301. package/dist/types/components/ez-form-view/fieldbuilder/templates/RichText.tpl.d.ts +2 -1
  302. package/dist/types/components/ez-form-view/fieldbuilder/templates/SearchInput.tpl.d.ts +2 -1
  303. package/dist/types/components/ez-form-view/fieldbuilder/templates/SearchInputPlus.tpl.d.ts +2 -1
  304. package/dist/types/components/ez-form-view/fieldbuilder/templates/TextArea.tpl.d.ts +2 -1
  305. package/dist/types/components/ez-form-view/fieldbuilder/templates/TextInput.tpl.d.ts +2 -1
  306. package/dist/types/components/ez-grid/controller/EzGridController.d.ts +2 -0
  307. package/dist/types/components/ez-grid/controller/ag-grid/AgGridController.d.ts +16 -0
  308. package/dist/types/components/ez-grid/controller/ag-grid/gridColumnDefaultWidths.d.ts +4 -0
  309. package/dist/types/components/ez-grid/controller/ag-grid/utils/AggFunctionResolver.d.ts +2 -0
  310. package/dist/types/components/ez-grid/ez-grid.d.ts +10 -27
  311. package/dist/types/components/ez-grid/interfaces/IAggegationFunc.d.ts +3 -0
  312. package/dist/types/components/ez-grid/utils/index.d.ts +1 -0
  313. package/dist/types/components/ez-grid-pagination/ez-grid-pagination.d.ts +75 -0
  314. package/dist/types/components/ez-image-input/ez-image-input.d.ts +43 -0
  315. package/dist/types/components/ez-record-navigation/ez-record-navigation.d.ts +43 -0
  316. package/dist/types/components/ez-scroller/EzScrollNavigationMode.d.ts +4 -0
  317. package/dist/types/components/ez-scroller/ez-scroller.d.ts +16 -2
  318. package/dist/types/components/ez-search/ez-search.d.ts +12 -1
  319. package/dist/types/components/ez-search-plus/ez-search-plus.d.ts +1 -0
  320. package/dist/types/components/ez-split-button/ez-split-button.d.ts +1 -2
  321. package/dist/types/components/ez-text-input/ez-text-input.d.ts +4 -0
  322. package/dist/types/components.d.ts +3407 -1976
  323. package/dist/types/utils/form/FormMetadata.d.ts +2 -1
  324. package/dist/types/utils/form/interfaces/FormLayout.d.ts +3 -1
  325. package/dist/types/utils/form/interfaces/IFormSheetMetadata.d.ts +3 -0
  326. package/dist/types/utils/form/interfaces/ITabConfig.d.ts +3 -0
  327. package/dist/types/utils/i18n/locales/en-us.d.ts +45 -3
  328. package/dist/types/utils/i18n/locales/es-es.d.ts +45 -3
  329. package/dist/types/utils/i18n/locales/pt-br.d.ts +45 -3
  330. package/dist/types/utils/i18n/translations.d.ts +135 -9
  331. package/package.json +5 -5
  332. package/react/components.d.ts +11 -0
  333. package/react/components.js +11 -0
  334. package/react/components.js.map +1 -1
  335. package/dist/cjs/ApplicationUtils-5cc05979.js.gz +0 -0
  336. package/dist/cjs/CSSVarsUtils-f20973d1.js.gz +0 -0
  337. package/dist/cjs/CheckMode-ecb90b87.js.gz +0 -0
  338. package/dist/cjs/DialogType-2114c337.js.gz +0 -0
  339. package/dist/cjs/EzScrollDirection-b2c99895.js.gz +0 -0
  340. package/dist/cjs/FocusResolver-885f2173.js.gz +0 -0
  341. package/dist/cjs/FormLayout-18853e70.js.gz +0 -0
  342. package/dist/cjs/RichToolbarHelper-ea12328f.js.gz +0 -0
  343. package/dist/cjs/_commonjsHelpers-537d719a.js.gz +0 -0
  344. package/dist/cjs/app-globals-2fbe4b17.js.gz +0 -0
  345. package/dist/cjs/constants-72b7e05e.js.gz +0 -0
  346. package/dist/cjs/ez-actions-button.cjs.entry.js.gz +0 -0
  347. package/dist/cjs/ez-alert-list.cjs.entry.js.gz +0 -0
  348. package/dist/cjs/ez-alert.cjs.entry.js.gz +0 -0
  349. package/dist/cjs/ez-application.cjs.entry.js.gz +0 -0
  350. package/dist/cjs/ez-avatar.cjs.entry.js.gz +0 -0
  351. package/dist/cjs/ez-badge.cjs.entry.js.gz +0 -0
  352. package/dist/cjs/ez-breadcrumb.cjs.entry.js.gz +0 -0
  353. package/dist/cjs/ez-button.cjs.entry.js.gz +0 -0
  354. package/dist/cjs/ez-calendar.cjs.entry.js.gz +0 -0
  355. package/dist/cjs/ez-card-item.cjs.entry.js.gz +0 -0
  356. package/dist/cjs/ez-chart.cjs.entry.js.gz +0 -0
  357. package/dist/cjs/ez-check.cjs.entry.js.gz +0 -0
  358. package/dist/cjs/ez-chip.cjs.entry.js.gz +0 -0
  359. package/dist/cjs/ez-classic-combo-box.cjs.entry.js.gz +0 -0
  360. package/dist/cjs/ez-classic-input.cjs.entry.js.gz +0 -0
  361. package/dist/cjs/ez-classic-text-area.cjs.entry.js.gz +0 -0
  362. package/dist/cjs/ez-collapsible-box.cjs.entry.js.gz +0 -0
  363. package/dist/cjs/ez-combo-box-list_4.cjs.entry.js.gz +0 -0
  364. package/dist/cjs/ez-combo-box.cjs.entry.js.gz +0 -0
  365. package/dist/cjs/ez-date-input.cjs.entry.js.gz +0 -0
  366. package/dist/cjs/ez-date-time-input.cjs.entry.js.gz +0 -0
  367. package/dist/cjs/ez-dialog.cjs.entry.js.gz +0 -0
  368. package/dist/cjs/ez-double-list.cjs.entry.js.gz +0 -0
  369. package/dist/cjs/ez-dropdown.cjs.entry.js.gz +0 -0
  370. package/dist/cjs/ez-empty-card.cjs.entry.js.gz +0 -0
  371. package/dist/cjs/ez-file-item.cjs.entry.js.gz +0 -0
  372. package/dist/cjs/ez-filter-input.cjs.entry.js.gz +0 -0
  373. package/dist/cjs/ez-form-view.cjs.entry.js.gz +0 -0
  374. package/dist/cjs/ez-form.cjs.entry.js.gz +0 -0
  375. package/dist/cjs/ez-grid-view.cjs.entry.js.gz +0 -0
  376. package/dist/cjs/ez-grid.cjs.entry.js.gz +0 -0
  377. package/dist/cjs/ez-guide-navigator.cjs.entry.js.gz +0 -0
  378. package/dist/cjs/ez-icon.cjs.entry.js.gz +0 -0
  379. package/dist/cjs/ez-link-builder_6.cjs.entry.js.gz +0 -0
  380. package/dist/cjs/ez-list-item.cjs.entry.js.gz +0 -0
  381. package/dist/cjs/ez-list.cjs.entry.js.gz +0 -0
  382. package/dist/cjs/ez-loading-bar.cjs.entry.js.gz +0 -0
  383. package/dist/cjs/ez-modal-container.cjs.entry.js.gz +0 -0
  384. package/dist/cjs/ez-modal.cjs.entry.js.gz +0 -0
  385. package/dist/cjs/ez-multi-selection-list.cjs.entry.js.gz +0 -0
  386. package/dist/cjs/ez-number-input.cjs.entry.js.gz +0 -0
  387. package/dist/cjs/ez-pagination.cjs.entry.js.gz +0 -0
  388. package/dist/cjs/ez-popover-core.cjs.entry.js.gz +0 -0
  389. package/dist/cjs/ez-popover-plus_3.cjs.entry.js.gz +0 -0
  390. package/dist/cjs/ez-popover.cjs.entry.js.gz +0 -0
  391. package/dist/cjs/ez-popup.cjs.entry.js.gz +0 -0
  392. package/dist/cjs/ez-progress-bar.cjs.entry.js.gz +0 -0
  393. package/dist/cjs/ez-radio-button.cjs.entry.js.gz +0 -0
  394. package/dist/cjs/ez-rich-toolbar-item.cjs.entry.js.gz +0 -0
  395. package/dist/cjs/ez-scroller_2.cjs.entry.js.gz +0 -0
  396. package/dist/cjs/ez-search-plus.cjs.entry.js.gz +0 -0
  397. package/dist/cjs/ez-search-result-list.cjs.entry.js.gz +0 -0
  398. package/dist/cjs/ez-search.cjs.entry.js.gz +0 -0
  399. package/dist/cjs/ez-sidebar-navigator.cjs.entry.js.gz +0 -0
  400. package/dist/cjs/ez-skeleton.cjs.entry.js.gz +0 -0
  401. package/dist/cjs/ez-sortable-list.cjs.entry.js.gz +0 -0
  402. package/dist/cjs/ez-spinner.cjs.entry.js.gz +0 -0
  403. package/dist/cjs/ez-split-button.cjs.entry.js.gz +0 -0
  404. package/dist/cjs/ez-split-item.cjs.entry.js.gz +0 -0
  405. package/dist/cjs/ez-split-panel.cjs.entry.js.gz +0 -0
  406. package/dist/cjs/ez-tabselector.cjs.entry.js.gz +0 -0
  407. package/dist/cjs/ez-tag-input.cjs.entry.js.gz +0 -0
  408. package/dist/cjs/ez-tag.cjs.entry.js.gz +0 -0
  409. package/dist/cjs/ez-text-area.cjs.entry.js.gz +0 -0
  410. package/dist/cjs/ez-text-input.cjs.entry.js.gz +0 -0
  411. package/dist/cjs/ez-tile-medium.cjs.entry.js.gz +0 -0
  412. package/dist/cjs/ez-tile.cjs.entry.js.gz +0 -0
  413. package/dist/cjs/ez-time-input.cjs.entry.js.gz +0 -0
  414. package/dist/cjs/ez-toast.cjs.entry.js.gz +0 -0
  415. package/dist/cjs/ez-tooltip.cjs.entry.js.gz +0 -0
  416. package/dist/cjs/ez-tree.cjs.entry.js.gz +0 -0
  417. package/dist/cjs/ez-underface.cjs.entry.js.gz +0 -0
  418. package/dist/cjs/ez-upload.cjs.entry.js.gz +0 -0
  419. package/dist/cjs/ez-view-stack.cjs.entry.js.gz +0 -0
  420. package/dist/cjs/ezListHelper-0d3970b4.js.gz +0 -0
  421. package/dist/cjs/ezui.cjs.js.gz +0 -0
  422. package/dist/cjs/filter-column.cjs.entry.js.gz +0 -0
  423. package/dist/cjs/floating-ui.dom.esm-f4d87617.js.gz +0 -0
  424. package/dist/cjs/index-1be40f19.js.gz +0 -0
  425. package/dist/cjs/index-a7b0c73d.js.gz +0 -0
  426. package/dist/cjs/index.cjs.js.gz +0 -0
  427. package/dist/cjs/loader.cjs.js.gz +0 -0
  428. package/dist/cjs/purify-8c74770b.js.gz +0 -0
  429. package/dist/cjs/search-column-00a916ae.js.gz +0 -0
  430. package/dist/cjs/searchFormatters-b7e1ed1e.js.gz +0 -0
  431. package/dist/collection/components/ez-actions-button/ez-actions-button.css.gz +0 -0
  432. package/dist/collection/components/ez-actions-button/ez-actions-button.js.gz +0 -0
  433. package/dist/collection/components/ez-alert/ez-alert.css.gz +0 -0
  434. package/dist/collection/components/ez-alert/ez-alert.js.gz +0 -0
  435. package/dist/collection/components/ez-alert-list/ez-alert-list.css.gz +0 -0
  436. package/dist/collection/components/ez-alert-list/ez-alert-list.js.gz +0 -0
  437. package/dist/collection/components/ez-application/ez-application.css.gz +0 -0
  438. package/dist/collection/components/ez-application/ez-application.js.gz +0 -0
  439. package/dist/collection/components/ez-avatar/ez-avatar.css.gz +0 -0
  440. package/dist/collection/components/ez-avatar/ez-avatar.js.gz +0 -0
  441. package/dist/collection/components/ez-badge/enum/sizes.js.gz +0 -0
  442. package/dist/collection/components/ez-badge/ez-badge.css.gz +0 -0
  443. package/dist/collection/components/ez-badge/ez-badge.js.gz +0 -0
  444. package/dist/collection/components/ez-badge/interfaces/IPosition.js.gz +0 -0
  445. package/dist/collection/components/ez-breadcrumb/ez-breadcrumb.css.gz +0 -0
  446. package/dist/collection/components/ez-breadcrumb/ez-breadcrumb.js.gz +0 -0
  447. package/dist/collection/components/ez-breadcrumb/subcomponents/breadcrumb-item.js.gz +0 -0
  448. package/dist/collection/components/ez-button/ez-button.css.gz +0 -0
  449. package/dist/collection/components/ez-button/ez-button.js.gz +0 -0
  450. package/dist/collection/components/ez-calendar/ez-calendar.css.gz +0 -0
  451. package/dist/collection/components/ez-calendar/ez-calendar.js.gz +0 -0
  452. package/dist/collection/components/ez-card-item/ez-card-item.css.gz +0 -0
  453. package/dist/collection/components/ez-card-item/ez-card-item.js.gz +0 -0
  454. package/dist/collection/components/ez-chart/components/BarChart.js.gz +0 -0
  455. package/dist/collection/components/ez-chart/components/ColumnChart.js.gz +0 -0
  456. package/dist/collection/components/ez-chart/components/DonutChart.js.gz +0 -0
  457. package/dist/collection/components/ez-chart/components/LineChart.js.gz +0 -0
  458. package/dist/collection/components/ez-chart/components/PieChart.js.gz +0 -0
  459. package/dist/collection/components/ez-chart/components/index.js.gz +0 -0
  460. package/dist/collection/components/ez-chart/ez-chart.css.gz +0 -0
  461. package/dist/collection/components/ez-chart/ez-chart.js.gz +0 -0
  462. package/dist/collection/components/ez-chart/interfaces/ChartAxis.js.gz +0 -0
  463. package/dist/collection/components/ez-chart/interfaces/ChartContext.js.gz +0 -0
  464. package/dist/collection/components/ez-chart/interfaces/ChartOptions.js.gz +0 -0
  465. package/dist/collection/components/ez-chart/interfaces/ChartSerie.js.gz +0 -0
  466. package/dist/collection/components/ez-chart/interfaces/ChartStrategies.js.gz +0 -0
  467. package/dist/collection/components/ez-chart/interfaces/ChartType.js.gz +0 -0
  468. package/dist/collection/components/ez-chart/interfaces/ChartTypeValue.js.gz +0 -0
  469. package/dist/collection/components/ez-chart/interfaces/index.js.gz +0 -0
  470. package/dist/collection/components/ez-chart/test/mock-chart.js.gz +0 -0
  471. package/dist/collection/components/ez-chart/types/BaseHighChartsRender.js.gz +0 -0
  472. package/dist/collection/components/ez-check/CheckMode.js.gz +0 -0
  473. package/dist/collection/components/ez-check/ez-check.css.gz +0 -0
  474. package/dist/collection/components/ez-check/ez-check.js.gz +0 -0
  475. package/dist/collection/components/ez-chip/ez-chip.css.gz +0 -0
  476. package/dist/collection/components/ez-chip/ez-chip.js.gz +0 -0
  477. package/dist/collection/components/ez-classic-combo-box/ez-classic-combo-box.css.gz +0 -0
  478. package/dist/collection/components/ez-classic-combo-box/ez-classic-combo-box.js.gz +0 -0
  479. package/dist/collection/components/ez-classic-combo-box/interfaces/IOption.js.gz +0 -0
  480. package/dist/collection/components/ez-classic-input/ez-classic-input.css.gz +0 -0
  481. package/dist/collection/components/ez-classic-input/ez-classic-input.js.gz +0 -0
  482. package/dist/collection/components/ez-classic-input/interfaces/optionsSetFocus.js.gz +0 -0
  483. package/dist/collection/components/ez-classic-input/utils/maskFormatter.js.gz +0 -0
  484. package/dist/collection/components/ez-classic-text-area/ez-classic-text-area.css.gz +0 -0
  485. package/dist/collection/components/ez-classic-text-area/ez-classic-text-area.js.gz +0 -0
  486. package/dist/collection/components/ez-classic-text-area/interfaces/optionsSetFocus.js.gz +0 -0
  487. package/dist/collection/components/ez-collapsible-box/ez-collapsible-box.css.gz +0 -0
  488. package/dist/collection/components/ez-collapsible-box/ez-collapsible-box.js.gz +0 -0
  489. package/dist/collection/components/ez-combo-box/ez-combo-box-list/ez-combo-box-list.css.gz +0 -0
  490. package/dist/collection/components/ez-combo-box/ez-combo-box-list/ez-combo-box-list.js.gz +0 -0
  491. package/dist/collection/components/ez-combo-box/ez-combo-box.css.gz +0 -0
  492. package/dist/collection/components/ez-combo-box/ez-combo-box.js.gz +0 -0
  493. package/dist/collection/components/ez-date-input/ez-date-input.css.gz +0 -0
  494. package/dist/collection/components/ez-date-input/ez-date-input.js.gz +0 -0
  495. package/dist/collection/components/ez-date-time-input/ez-date-time-input.css.gz +0 -0
  496. package/dist/collection/components/ez-date-time-input/ez-date-time-input.js.gz +0 -0
  497. package/dist/collection/components/ez-dialog/DialogType.js.gz +0 -0
  498. package/dist/collection/components/ez-dialog/ez-dialog.css.gz +0 -0
  499. package/dist/collection/components/ez-dialog/ez-dialog.js.gz +0 -0
  500. package/dist/collection/components/ez-double-list/doubleListHelper.js.gz +0 -0
  501. package/dist/collection/components/ez-double-list/ez-double-list.css.gz +0 -0
  502. package/dist/collection/components/ez-double-list/ez-double-list.js.gz +0 -0
  503. package/dist/collection/components/ez-dropdown/ez-dropdown.css.gz +0 -0
  504. package/dist/collection/components/ez-dropdown/ez-dropdown.js.gz +0 -0
  505. package/dist/collection/components/ez-dropdown/structure/DropdownItem.js.gz +0 -0
  506. package/dist/collection/components/ez-dropdown/structure/SubmenuControl.js.gz +0 -0
  507. package/dist/collection/components/ez-empty-card/ez-empty-card.css.gz +0 -0
  508. package/dist/collection/components/ez-empty-card/ez-empty-card.js.gz +0 -0
  509. package/dist/collection/components/ez-file-item/ez-file-item.css.gz +0 -0
  510. package/dist/collection/components/ez-file-item/ez-file-item.js.gz +0 -0
  511. package/dist/collection/components/ez-filter-input/ez-filter-input.css.gz +0 -0
  512. package/dist/collection/components/ez-filter-input/ez-filter-input.js.gz +0 -0
  513. package/dist/collection/components/ez-form/ez-form.css.gz +0 -0
  514. package/dist/collection/components/ez-form/ez-form.js.gz +0 -0
  515. package/dist/collection/components/ez-form/store/form.slice.js.gz +0 -0
  516. package/dist/collection/components/ez-form-view/custom-input/ez-custom-form-input.js.gz +0 -0
  517. package/dist/collection/components/ez-form-view/ez-form-view.css.gz +0 -0
  518. package/dist/collection/components/ez-form-view/ez-form-view.js.gz +0 -0
  519. package/dist/collection/components/ez-form-view/fieldbuilder/FieldBuilder.js.gz +0 -0
  520. package/dist/collection/components/ez-form-view/fieldbuilder/templates/CheckBox.tpl.js.gz +0 -0
  521. package/dist/collection/components/ez-form-view/fieldbuilder/templates/ComboBox.tpl.js.gz +0 -0
  522. package/dist/collection/components/ez-form-view/fieldbuilder/templates/DateInput.tpl.js.gz +0 -0
  523. package/dist/collection/components/ez-form-view/fieldbuilder/templates/FileInput.tpl.js.gz +0 -0
  524. package/dist/collection/components/ez-form-view/fieldbuilder/templates/NumberInput.tpl.js.gz +0 -0
  525. package/dist/collection/components/ez-form-view/fieldbuilder/templates/RichText.tpl.js.gz +0 -0
  526. package/dist/collection/components/ez-form-view/fieldbuilder/templates/SearchInput.tpl.js.gz +0 -0
  527. package/dist/collection/components/ez-form-view/fieldbuilder/templates/SearchInputPlus.tpl.js.gz +0 -0
  528. package/dist/collection/components/ez-form-view/fieldbuilder/templates/TextArea.tpl.js.gz +0 -0
  529. package/dist/collection/components/ez-form-view/fieldbuilder/templates/TextInput.tpl.js.gz +0 -0
  530. package/dist/collection/components/ez-form-view/interfaces/IFormViewField.js.gz +0 -0
  531. package/dist/collection/components/ez-form-view/interfaces/index.js.gz +0 -0
  532. package/dist/collection/components/ez-form-view/structure/index.js.gz +0 -0
  533. package/dist/collection/components/ez-grid/controller/EzGridController.js.gz +0 -0
  534. package/dist/collection/components/ez-grid/controller/ag-grid/AgGridController.js.gz +0 -0
  535. package/dist/collection/components/ez-grid/controller/ag-grid/DataSource.js.gz +0 -0
  536. package/dist/collection/components/ez-grid/controller/ag-grid/DataSourceInterceptor.js.gz +0 -0
  537. package/dist/collection/components/ez-grid/controller/ag-grid/GridEditionManager.js.gz +0 -0
  538. package/dist/collection/components/ez-grid/controller/ag-grid/components/EzGridCustomCellEditor.js.gz +0 -0
  539. package/dist/collection/components/ez-grid/controller/ag-grid/components/EzGridCustomCellRender.js.gz +0 -0
  540. package/dist/collection/components/ez-grid/controller/ag-grid/components/EzGridCustomHeader.js.gz +0 -0
  541. package/dist/collection/components/ez-grid/controller/ag-grid/components/cellRendererStatus.js.gz +0 -0
  542. package/dist/collection/components/ez-grid/controller/ag-grid/components/selectionHeader.js.gz +0 -0
  543. package/dist/collection/components/ez-grid/controller/ag-grid/components/test/constants/EzGridCustomCellEditorConstants.js.gz +0 -0
  544. package/dist/collection/components/ez-grid/controller/ag-grid/components/test/constants/EzGridCustomCellRenderConstants.js.gz +0 -0
  545. package/dist/collection/components/ez-grid/controller/ag-grid/editor/EzCellEditor.js.gz +0 -0
  546. package/dist/collection/components/ez-grid/controller/ag-grid/editor/EzCellRender.js.gz +0 -0
  547. package/dist/collection/components/ez-grid/controller/ag-grid/editor/GridEditorUtils.js.gz +0 -0
  548. package/dist/collection/components/ez-grid/controller/ag-grid/editor/IEditorMetadata.js.gz +0 -0
  549. package/dist/collection/components/ez-grid/controller/ag-grid/editor/IUICellEditor.js.gz +0 -0
  550. package/dist/collection/components/ez-grid/controller/ag-grid/editor/IUICellRender.js.gz +0 -0
  551. package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/ComboBox.tpl.js.gz +0 -0
  552. package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/DateInput.tpl.js.gz +0 -0
  553. package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/NumberInput.tpl.js.gz +0 -0
  554. package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/Search.tpl.js.gz +0 -0
  555. package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/SearchPlus.tpl.js.gz +0 -0
  556. package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/TextInput.tpl.js.gz +0 -0
  557. package/dist/collection/components/ez-grid/controller/ag-grid/mock/Server.js.gz +0 -0
  558. package/dist/collection/components/ez-grid/controller/ag-grid/test/constants/GridEditionMock.js.gz +0 -0
  559. package/dist/collection/components/ez-grid/controller/ag-grid/utils/buildLocaleText.js.gz +0 -0
  560. package/dist/collection/components/ez-grid/ez-grid.css.gz +0 -0
  561. package/dist/collection/components/ez-grid/ez-grid.js.gz +0 -0
  562. package/dist/collection/components/ez-grid/interfaces/IColumnFilter.js.gz +0 -0
  563. package/dist/collection/components/ez-grid/interfaces/ICustomFormatter.js.gz +0 -0
  564. package/dist/collection/components/ez-grid/interfaces/IGridMode.js.gz +0 -0
  565. package/dist/collection/components/ez-grid/interfaces/ISelection.js.gz +0 -0
  566. package/dist/collection/components/ez-grid/interfaces/ISelectionToastConfig.js.gz +0 -0
  567. package/dist/collection/components/ez-grid/interfaces/index.js.gz +0 -0
  568. package/dist/collection/components/ez-grid/subcomponents/filter-column.css.gz +0 -0
  569. package/dist/collection/components/ez-grid/subcomponents/filter-column.js.gz +0 -0
  570. package/dist/collection/components/ez-grid/subcomponents/selection-counter.js.gz +0 -0
  571. package/dist/collection/components/ez-grid/subcomponents/utils/selectionCounterUtils.js.gz +0 -0
  572. package/dist/collection/components/ez-grid/test/resources/gridDataUnit.js.gz +0 -0
  573. package/dist/collection/components/ez-grid/utils/ColumnFilterManager.js.gz +0 -0
  574. package/dist/collection/components/ez-grid/utils/InMemoryFilterColumnDataSource.js.gz +0 -0
  575. package/dist/collection/components/ez-grid/utils/index.js.gz +0 -0
  576. package/dist/collection/components/ez-grid-view/ez-grid-view.css.gz +0 -0
  577. package/dist/collection/components/ez-grid-view/ez-grid-view.js.gz +0 -0
  578. package/dist/collection/components/ez-guide-navigator/ez-guide-navigator.css.gz +0 -0
  579. package/dist/collection/components/ez-guide-navigator/ez-guide-navigator.js.gz +0 -0
  580. package/dist/collection/components/ez-guide-navigator/interfaces/IGuideItem.js.gz +0 -0
  581. package/dist/collection/components/ez-guide-navigator/interfaces/index.js.gz +0 -0
  582. package/dist/collection/components/ez-icon/ez-icon.css.gz +0 -0
  583. package/dist/collection/components/ez-icon/ez-icon.js.gz +0 -0
  584. package/dist/collection/components/ez-list/ez-list.css.gz +0 -0
  585. package/dist/collection/components/ez-list/ez-list.js.gz +0 -0
  586. package/dist/collection/components/ez-list/ezListHelper.js.gz +0 -0
  587. package/dist/collection/components/ez-list-item/ez-list-item.css.gz +0 -0
  588. package/dist/collection/components/ez-list-item/ez-list-item.js.gz +0 -0
  589. package/dist/collection/components/ez-loading-bar/ez-loading-bar.css.gz +0 -0
  590. package/dist/collection/components/ez-loading-bar/ez-loading-bar.js.gz +0 -0
  591. package/dist/collection/components/ez-modal/ez-modal.css.gz +0 -0
  592. package/dist/collection/components/ez-modal/ez-modal.js.gz +0 -0
  593. package/dist/collection/components/ez-modal-container/ez-modal-container.css.gz +0 -0
  594. package/dist/collection/components/ez-modal-container/ez-modal-container.js.gz +0 -0
  595. package/dist/collection/components/ez-modal-container/index.js.gz +0 -0
  596. package/dist/collection/components/ez-modal-container/modal-action.js.gz +0 -0
  597. package/dist/collection/components/ez-modal-container/modal-button-status.js.gz +0 -0
  598. package/dist/collection/components/ez-multi-selection-list/ez-multi-selection-list.css.gz +0 -0
  599. package/dist/collection/components/ez-multi-selection-list/ez-multi-selection-list.js.gz +0 -0
  600. package/dist/collection/components/ez-multi-selection-list/interfaces/IMultiSelectionListDataSource.js.gz +0 -0
  601. package/dist/collection/components/ez-multi-selection-list/interfaces/IMultiSelectionOption.js.gz +0 -0
  602. package/dist/collection/components/ez-multi-selection-list/interfaces/IStaticOptionsFetchConfig.js.gz +0 -0
  603. package/dist/collection/components/ez-multi-selection-list/subcomponents/multi-selection-box-message.css.gz +0 -0
  604. package/dist/collection/components/ez-multi-selection-list/subcomponents/multi-selection-box-message.js.gz +0 -0
  605. package/dist/collection/components/ez-number-input/ez-number-input.css.gz +0 -0
  606. package/dist/collection/components/ez-number-input/ez-number-input.js.gz +0 -0
  607. package/dist/collection/components/ez-pagination/ez-pagination.css.gz +0 -0
  608. package/dist/collection/components/ez-pagination/ez-pagination.js.gz +0 -0
  609. package/dist/collection/components/ez-popover/ez-popover.css.gz +0 -0
  610. package/dist/collection/components/ez-popover/ez-popover.js.gz +0 -0
  611. package/dist/collection/components/ez-popover-plus/ez-popover-plus.css.gz +0 -0
  612. package/dist/collection/components/ez-popover-plus/ez-popover-plus.js.gz +0 -0
  613. package/dist/collection/components/ez-popover-plus/subcomponent/ez-popover-core.css.gz +0 -0
  614. package/dist/collection/components/ez-popover-plus/subcomponent/ez-popover-core.js.gz +0 -0
  615. package/dist/collection/components/ez-popup/ez-popup.css.gz +0 -0
  616. package/dist/collection/components/ez-popup/ez-popup.js.gz +0 -0
  617. package/dist/collection/components/ez-popup/interfaces/EzButtonProps.js.gz +0 -0
  618. package/dist/collection/components/ez-progress-bar/ez-progress-bar.css.gz +0 -0
  619. package/dist/collection/components/ez-progress-bar/ez-progress-bar.js.gz +0 -0
  620. package/dist/collection/components/ez-radio-button/ez-radio-button.css.gz +0 -0
  621. package/dist/collection/components/ez-radio-button/ez-radio-button.js.gz +0 -0
  622. package/dist/collection/components/ez-rich-text/ez-link-builder/ez-link-builder.css.gz +0 -0
  623. package/dist/collection/components/ez-rich-text/ez-link-builder/ez-link-builder.js.gz +0 -0
  624. package/dist/collection/components/ez-rich-text/ez-rich-text.css.gz +0 -0
  625. package/dist/collection/components/ez-rich-text/ez-rich-text.js.gz +0 -0
  626. package/dist/collection/components/ez-rich-text/ez-rich-toolbar/RichToolbarHelper.js.gz +0 -0
  627. package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-arrows/ez-rich-toolbar-arrows.css.gz +0 -0
  628. package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-arrows/ez-rich-toolbar-arrows.js.gz +0 -0
  629. package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-configs/ez-rich-toolbar-configs.css.gz +0 -0
  630. package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-configs/ez-rich-toolbar-configs.js.gz +0 -0
  631. package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-item/ez-rich-toolbar-item.css.gz +0 -0
  632. package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-item/ez-rich-toolbar-item.js.gz +0 -0
  633. package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-letters/ez-rich-toolbar-letters.css.gz +0 -0
  634. package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-letters/ez-rich-toolbar-letters.js.gz +0 -0
  635. package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar.css.gz +0 -0
  636. package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar.js.gz +0 -0
  637. package/dist/collection/components/ez-rich-text/ez-simple-image-uploader/ez-simple-image-uploader.css.gz +0 -0
  638. package/dist/collection/components/ez-rich-text/ez-simple-image-uploader/ez-simple-image-uploader.js.gz +0 -0
  639. package/dist/collection/components/ez-rich-text/ez-simple-image-uploader/test/resource/imageBase64.js.gz +0 -0
  640. package/dist/collection/components/ez-rich-text/ez-simple-image-uploader/utils/fileToBase64.js.gz +0 -0
  641. package/dist/collection/components/ez-rich-text/ez-simple-image-uploader/utils/formatBytes.js.gz +0 -0
  642. package/dist/collection/components/ez-scroller/EzScrollDirection.js.gz +0 -0
  643. package/dist/collection/components/ez-scroller/ez-scroller.css.gz +0 -0
  644. package/dist/collection/components/ez-scroller/ez-scroller.js.gz +0 -0
  645. package/dist/collection/components/ez-search/ez-search.css.gz +0 -0
  646. package/dist/collection/components/ez-search/ez-search.js.gz +0 -0
  647. package/dist/collection/components/ez-search/subcomponent/search-list/search-list.css.gz +0 -0
  648. package/dist/collection/components/ez-search/subcomponent/search-list/search-list.js.gz +0 -0
  649. package/dist/collection/components/ez-search/utils/searchFormatters.js.gz +0 -0
  650. package/dist/collection/components/ez-search-plus/ez-search-plus.css.gz +0 -0
  651. package/dist/collection/components/ez-search-plus/ez-search-plus.js.gz +0 -0
  652. package/dist/collection/components/ez-search-plus/subcomponent/ez-search-result-list/ez-search-result-list.css.gz +0 -0
  653. package/dist/collection/components/ez-search-plus/subcomponent/ez-search-result-list/ez-search-result-list.js.gz +0 -0
  654. package/dist/collection/components/ez-sidebar-button/ez-sidebar-button.css.gz +0 -0
  655. package/dist/collection/components/ez-sidebar-button/ez-sidebar-button.js.gz +0 -0
  656. package/dist/collection/components/ez-sidebar-navigator/ez-sidebar-navigator.css.gz +0 -0
  657. package/dist/collection/components/ez-sidebar-navigator/ez-sidebar-navigator.js.gz +0 -0
  658. package/dist/collection/components/ez-sidebar-navigator/interfaces/ModeMenuEnum.js.gz +0 -0
  659. package/dist/collection/components/ez-sidebar-navigator/interfaces/SizeMenuEnum.js.gz +0 -0
  660. package/dist/collection/components/ez-sidebar-navigator/interfaces/TypeMenuEnum.js.gz +0 -0
  661. package/dist/collection/components/ez-sidebar-navigator/interfaces/index.js.gz +0 -0
  662. package/dist/collection/components/ez-skeleton/ez-skeleton.constants.js.gz +0 -0
  663. package/dist/collection/components/ez-skeleton/ez-skeleton.css.gz +0 -0
  664. package/dist/collection/components/ez-skeleton/ez-skeleton.js.gz +0 -0
  665. package/dist/collection/components/ez-sortable-list/ez-sortable-list.css.gz +0 -0
  666. package/dist/collection/components/ez-sortable-list/ez-sortable-list.js.gz +0 -0
  667. package/dist/collection/components/ez-spinner/ez-spinner.css.gz +0 -0
  668. package/dist/collection/components/ez-spinner/ez-spinner.js.gz +0 -0
  669. package/dist/collection/components/ez-split-button/ez-split-button.css.gz +0 -0
  670. package/dist/collection/components/ez-split-button/ez-split-button.js.gz +0 -0
  671. package/dist/collection/components/ez-split-button/test/dropdownItems.js.gz +0 -0
  672. package/dist/collection/components/ez-split-panel/ez-split-panel.css.gz +0 -0
  673. package/dist/collection/components/ez-split-panel/ez-split-panel.js.gz +0 -0
  674. package/dist/collection/components/ez-split-panel/interfaces/IPanelSizeInfo.js.gz +0 -0
  675. package/dist/collection/components/ez-split-panel/structure/item/ez-split-item.css.gz +0 -0
  676. package/dist/collection/components/ez-split-panel/structure/item/ez-split-item.js.gz +0 -0
  677. package/dist/collection/components/ez-tabselector/ez-tabselector.css.gz +0 -0
  678. package/dist/collection/components/ez-tabselector/ez-tabselector.js.gz +0 -0
  679. package/dist/collection/components/ez-tag/ez-tag.css.gz +0 -0
  680. package/dist/collection/components/ez-tag/ez-tag.js.gz +0 -0
  681. package/dist/collection/components/ez-tag-input/ez-tag-input.css.gz +0 -0
  682. package/dist/collection/components/ez-tag-input/ez-tag-input.js.gz +0 -0
  683. package/dist/collection/components/ez-tag-input/interfaces/optionsSetFocus.js.gz +0 -0
  684. package/dist/collection/components/ez-text-area/ez-text-area.css.gz +0 -0
  685. package/dist/collection/components/ez-text-area/ez-text-area.js.gz +0 -0
  686. package/dist/collection/components/ez-text-edit/ez-text-edit.css.gz +0 -0
  687. package/dist/collection/components/ez-text-edit/ez-text-edit.js.gz +0 -0
  688. package/dist/collection/components/ez-text-input/ez-text-input.css.gz +0 -0
  689. package/dist/collection/components/ez-text-input/ez-text-input.js.gz +0 -0
  690. package/dist/collection/components/ez-tile/ez-tile.css.gz +0 -0
  691. package/dist/collection/components/ez-tile/ez-tile.js.gz +0 -0
  692. package/dist/collection/components/ez-tile-medium/ez-tile-medium.css.gz +0 -0
  693. package/dist/collection/components/ez-tile-medium/ez-tile-medium.js.gz +0 -0
  694. package/dist/collection/components/ez-time-input/ez-time-input.css.gz +0 -0
  695. package/dist/collection/components/ez-time-input/ez-time-input.js.gz +0 -0
  696. package/dist/collection/components/ez-toast/ez-toast.css.gz +0 -0
  697. package/dist/collection/components/ez-toast/ez-toast.js.gz +0 -0
  698. package/dist/collection/components/ez-tooltip/ez-tooltip.css.gz +0 -0
  699. package/dist/collection/components/ez-tooltip/ez-tooltip.js.gz +0 -0
  700. package/dist/collection/components/ez-tree/ez-tree.css.gz +0 -0
  701. package/dist/collection/components/ez-tree/ez-tree.js.gz +0 -0
  702. package/dist/collection/components/ez-tree/interfaces/ITree.js.gz +0 -0
  703. package/dist/collection/components/ez-tree/interfaces/ITreeItem.js.gz +0 -0
  704. package/dist/collection/components/ez-tree/interfaces/ITreeItemBadge.js.gz +0 -0
  705. package/dist/collection/components/ez-tree/subcomponents/DefaultIconResolver.js.gz +0 -0
  706. package/dist/collection/components/ez-tree/subcomponents/DefaultTooltipResolver.js.gz +0 -0
  707. package/dist/collection/components/ez-tree/subcomponents/TreeItem.js.gz +0 -0
  708. package/dist/collection/components/ez-tree/subcomponents/index.js.gz +0 -0
  709. package/dist/collection/components/ez-tree/types/Node.js.gz +0 -0
  710. package/dist/collection/components/ez-tree/types/Tree.js.gz +0 -0
  711. package/dist/collection/components/ez-tree/types/UpdateItemConfig.js.gz +0 -0
  712. package/dist/collection/components/ez-underface/ez-underface.css.gz +0 -0
  713. package/dist/collection/components/ez-underface/ez-underface.js.gz +0 -0
  714. package/dist/collection/components/ez-upload/RemoteFile.js.gz +0 -0
  715. package/dist/collection/components/ez-upload/ez-upload.css.gz +0 -0
  716. package/dist/collection/components/ez-upload/ez-upload.js.gz +0 -0
  717. package/dist/collection/components/ez-view-stack/ez-view-stack.css.gz +0 -0
  718. package/dist/collection/components/ez-view-stack/ez-view-stack.js.gz +0 -0
  719. package/dist/collection/global/app-init.js.gz +0 -0
  720. package/dist/collection/index.js.gz +0 -0
  721. package/dist/collection/servidor.js.gz +0 -0
  722. package/dist/collection/setupTests.js.gz +0 -0
  723. package/dist/collection/sw.js.gz +0 -0
  724. package/dist/collection/utils/ApplicationUtils.js.gz +0 -0
  725. package/dist/collection/utils/AssetsUtils.js.gz +0 -0
  726. package/dist/collection/utils/CSSVarsUtils.js.gz +0 -0
  727. package/dist/collection/utils/FocusResolver.js.gz +0 -0
  728. package/dist/collection/utils/ag-grid-license.js.gz +0 -0
  729. package/dist/collection/utils/constants.js.gz +0 -0
  730. package/dist/collection/utils/customEditor/interfaces/ICustomEditor.js.gz +0 -0
  731. package/dist/collection/utils/customEditor/interfaces/ICustomEditorInfo.js.gz +0 -0
  732. package/dist/collection/utils/customRender/interfaces/ICustomRender.js.gz +0 -0
  733. package/dist/collection/utils/customRender/interfaces/ICustomRenderInfo.js.gz +0 -0
  734. package/dist/collection/utils/form/DataBinder.js.gz +0 -0
  735. package/dist/collection/utils/form/FormMetadata.js.gz +0 -0
  736. package/dist/collection/utils/form/index.js.gz +0 -0
  737. package/dist/collection/utils/form/interfaces/FormLayout.js.gz +0 -0
  738. package/dist/collection/utils/form/interfaces/IDefaultConfig.js.gz +0 -0
  739. package/dist/collection/utils/form/interfaces/IFormCardConfig.js.gz +0 -0
  740. package/dist/collection/utils/form/interfaces/IFormConfig.js.gz +0 -0
  741. package/dist/collection/utils/form/interfaces/IFormSheetMetadata.js.gz +0 -0
  742. package/dist/collection/utils/form/interfaces/ISummaryField.js.gz +0 -0
  743. package/dist/collection/utils/form/interfaces/ITabConfig.js.gz +0 -0
  744. package/dist/collection/utils/form/interfaces/index.js.gz +0 -0
  745. package/dist/collection/utils/form/test/DataBinder.test.js.gz +0 -0
  746. package/dist/collection/utils/form/test/resources/metadataTest.js.gz +0 -0
  747. package/dist/collection/utils/i18n/elanguages.js.gz +0 -0
  748. package/dist/collection/utils/i18n/index.js.gz +0 -0
  749. package/dist/collection/utils/i18n/locales/en-us.js.gz +0 -0
  750. package/dist/collection/utils/i18n/locales/es-es.js.gz +0 -0
  751. package/dist/collection/utils/i18n/locales/pt-br.js.gz +0 -0
  752. package/dist/collection/utils/i18n/translations.js.gz +0 -0
  753. package/dist/collection/utils/index.js.gz +0 -0
  754. package/dist/collection/utils/interfaces/AbstractFieldMetadata.js.gz +0 -0
  755. package/dist/collection/utils/interfaces/IAction.js.gz +0 -0
  756. package/dist/collection/utils/interfaces/IFieldConfig.js.gz +0 -0
  757. package/dist/collection/utils/mock/ez-upload-mock.js.gz +0 -0
  758. package/dist/collection/utils/search/types.js.gz +0 -0
  759. package/dist/collection/utils/searchColumn/search-column.js.gz +0 -0
  760. package/dist/collection/utils/utils.js.gz +0 -0
  761. package/dist/collection/utils/validators/recordvalidator/IInvalidCells.js.gz +0 -0
  762. package/dist/collection/utils/validators/recordvalidator/IInvalidField.js.gz +0 -0
  763. package/dist/collection/utils/validators/recordvalidator/IRecordValidator.js.gz +0 -0
  764. package/dist/collection/utils/validators/recordvalidator/IValidationResult.js.gz +0 -0
  765. package/dist/collection/utils/validators/recordvalidator/IValidationSource.js.gz +0 -0
  766. package/dist/collection/utils/validators/recordvalidator/RecordValidationProcessor.js.gz +0 -0
  767. package/dist/custom-elements/index.js.gz +0 -0
  768. package/dist/esm/ApplicationUtils-1569f757.js.gz +0 -0
  769. package/dist/esm/CSSVarsUtils-acba92d7.js.gz +0 -0
  770. package/dist/esm/CheckMode-bdb2ec19.js.gz +0 -0
  771. package/dist/esm/DialogType-54a62731.js.gz +0 -0
  772. package/dist/esm/EzScrollDirection-2df26c93.js.gz +0 -0
  773. package/dist/esm/FocusResolver-1ccbf850.js.gz +0 -0
  774. package/dist/esm/FormLayout-071d324c.js.gz +0 -0
  775. package/dist/esm/RichToolbarHelper-f3a149c4.js.gz +0 -0
  776. package/dist/esm/_commonjsHelpers-9943807e.js.gz +0 -0
  777. package/dist/esm/app-globals-c0ac93c0.js.gz +0 -0
  778. package/dist/esm/constants-3fabe81e.js.gz +0 -0
  779. package/dist/esm/ez-actions-button.entry.js.gz +0 -0
  780. package/dist/esm/ez-alert-list.entry.js.gz +0 -0
  781. package/dist/esm/ez-alert.entry.js.gz +0 -0
  782. package/dist/esm/ez-application.entry.js.gz +0 -0
  783. package/dist/esm/ez-avatar.entry.js.gz +0 -0
  784. package/dist/esm/ez-badge.entry.js.gz +0 -0
  785. package/dist/esm/ez-breadcrumb.entry.js.gz +0 -0
  786. package/dist/esm/ez-button.entry.js.gz +0 -0
  787. package/dist/esm/ez-calendar.entry.js.gz +0 -0
  788. package/dist/esm/ez-card-item.entry.js.gz +0 -0
  789. package/dist/esm/ez-chart.entry.js.gz +0 -0
  790. package/dist/esm/ez-check.entry.js.gz +0 -0
  791. package/dist/esm/ez-chip.entry.js.gz +0 -0
  792. package/dist/esm/ez-classic-combo-box.entry.js.gz +0 -0
  793. package/dist/esm/ez-classic-input.entry.js.gz +0 -0
  794. package/dist/esm/ez-classic-text-area.entry.js.gz +0 -0
  795. package/dist/esm/ez-collapsible-box.entry.js.gz +0 -0
  796. package/dist/esm/ez-combo-box-list_4.entry.js +0 -666
  797. package/dist/esm/ez-combo-box-list_4.entry.js.gz +0 -0
  798. package/dist/esm/ez-combo-box.entry.js.gz +0 -0
  799. package/dist/esm/ez-date-input.entry.js.gz +0 -0
  800. package/dist/esm/ez-date-time-input.entry.js.gz +0 -0
  801. package/dist/esm/ez-dialog.entry.js.gz +0 -0
  802. package/dist/esm/ez-double-list.entry.js.gz +0 -0
  803. package/dist/esm/ez-dropdown.entry.js.gz +0 -0
  804. package/dist/esm/ez-empty-card.entry.js.gz +0 -0
  805. package/dist/esm/ez-file-item.entry.js.gz +0 -0
  806. package/dist/esm/ez-filter-input.entry.js.gz +0 -0
  807. package/dist/esm/ez-form-view.entry.js.gz +0 -0
  808. package/dist/esm/ez-form.entry.js.gz +0 -0
  809. package/dist/esm/ez-grid-view.entry.js.gz +0 -0
  810. package/dist/esm/ez-grid.entry.js.gz +0 -0
  811. package/dist/esm/ez-guide-navigator.entry.js.gz +0 -0
  812. package/dist/esm/ez-icon.entry.js.gz +0 -0
  813. package/dist/esm/ez-link-builder_6.entry.js.gz +0 -0
  814. package/dist/esm/ez-list-item.entry.js.gz +0 -0
  815. package/dist/esm/ez-list.entry.js.gz +0 -0
  816. package/dist/esm/ez-loading-bar.entry.js.gz +0 -0
  817. package/dist/esm/ez-modal-container.entry.js.gz +0 -0
  818. package/dist/esm/ez-modal.entry.js.gz +0 -0
  819. package/dist/esm/ez-multi-selection-list.entry.js.gz +0 -0
  820. package/dist/esm/ez-number-input.entry.js.gz +0 -0
  821. package/dist/esm/ez-pagination.entry.js.gz +0 -0
  822. package/dist/esm/ez-popover-core.entry.js.gz +0 -0
  823. package/dist/esm/ez-popover-plus_3.entry.js.gz +0 -0
  824. package/dist/esm/ez-popover.entry.js.gz +0 -0
  825. package/dist/esm/ez-popup.entry.js.gz +0 -0
  826. package/dist/esm/ez-progress-bar.entry.js.gz +0 -0
  827. package/dist/esm/ez-radio-button.entry.js.gz +0 -0
  828. package/dist/esm/ez-rich-toolbar-item.entry.js.gz +0 -0
  829. package/dist/esm/ez-scroller_2.entry.js.gz +0 -0
  830. package/dist/esm/ez-search-plus.entry.js.gz +0 -0
  831. package/dist/esm/ez-search-result-list.entry.js.gz +0 -0
  832. package/dist/esm/ez-search.entry.js.gz +0 -0
  833. package/dist/esm/ez-sidebar-navigator.entry.js.gz +0 -0
  834. package/dist/esm/ez-skeleton.entry.js.gz +0 -0
  835. package/dist/esm/ez-sortable-list.entry.js.gz +0 -0
  836. package/dist/esm/ez-spinner.entry.js.gz +0 -0
  837. package/dist/esm/ez-split-button.entry.js.gz +0 -0
  838. package/dist/esm/ez-split-item.entry.js.gz +0 -0
  839. package/dist/esm/ez-split-panel.entry.js.gz +0 -0
  840. package/dist/esm/ez-tabselector.entry.js.gz +0 -0
  841. package/dist/esm/ez-tag-input.entry.js.gz +0 -0
  842. package/dist/esm/ez-tag.entry.js.gz +0 -0
  843. package/dist/esm/ez-text-area.entry.js.gz +0 -0
  844. package/dist/esm/ez-text-input.entry.js.gz +0 -0
  845. package/dist/esm/ez-tile-medium.entry.js.gz +0 -0
  846. package/dist/esm/ez-tile.entry.js.gz +0 -0
  847. package/dist/esm/ez-time-input.entry.js.gz +0 -0
  848. package/dist/esm/ez-toast.entry.js.gz +0 -0
  849. package/dist/esm/ez-tooltip.entry.js.gz +0 -0
  850. package/dist/esm/ez-tree.entry.js.gz +0 -0
  851. package/dist/esm/ez-underface.entry.js.gz +0 -0
  852. package/dist/esm/ez-upload.entry.js.gz +0 -0
  853. package/dist/esm/ez-view-stack.entry.js.gz +0 -0
  854. package/dist/esm/ezListHelper-00fb9b8d.js.gz +0 -0
  855. package/dist/esm/ezui.js.gz +0 -0
  856. package/dist/esm/filter-column.entry.js.gz +0 -0
  857. package/dist/esm/floating-ui.dom.esm-ad30f2f0.js.gz +0 -0
  858. package/dist/esm/index-41363fa6.js.gz +0 -0
  859. package/dist/esm/index-baa5e267.js.gz +0 -0
  860. package/dist/esm/index.js.gz +0 -0
  861. package/dist/esm/loader.js.gz +0 -0
  862. package/dist/esm/polyfills/core-js.js.gz +0 -0
  863. package/dist/esm/polyfills/css-shim.js.gz +0 -0
  864. package/dist/esm/polyfills/dom.js.gz +0 -0
  865. package/dist/esm/polyfills/es5-html-element.js.gz +0 -0
  866. package/dist/esm/polyfills/index.js.gz +0 -0
  867. package/dist/esm/polyfills/system.js.gz +0 -0
  868. package/dist/esm/purify-ff423562.js.gz +0 -0
  869. package/dist/esm/search-column-3984faec.js.gz +0 -0
  870. package/dist/esm/searchFormatters-8229207e.js.gz +0 -0
  871. package/dist/ezui/ezui.esm.js.gz +0 -0
  872. package/dist/ezui/index.esm.js.gz +0 -0
  873. package/dist/ezui/p-02d448bb.entry.js.gz +0 -0
  874. package/dist/ezui/p-05c32903.entry.js.gz +0 -0
  875. package/dist/ezui/p-0f7971cf.entry.js.gz +0 -0
  876. package/dist/ezui/p-110cfb7d.entry.js.gz +0 -0
  877. package/dist/ezui/p-112455b1.js.gz +0 -0
  878. package/dist/ezui/p-14ceb733.entry.js.gz +0 -0
  879. package/dist/ezui/p-18384b91.entry.js +0 -1
  880. package/dist/ezui/p-18384b91.entry.js.gz +0 -0
  881. package/dist/ezui/p-1e7a8633.entry.js.gz +0 -0
  882. package/dist/ezui/p-1f50fa05.entry.js.gz +0 -0
  883. package/dist/ezui/p-20c024f7.entry.js.gz +0 -0
  884. package/dist/ezui/p-23a36bb6.js.gz +0 -0
  885. package/dist/ezui/p-2528e988.entry.js.gz +0 -0
  886. package/dist/ezui/p-271a0ecb.entry.js +0 -1
  887. package/dist/ezui/p-271a0ecb.entry.js.gz +0 -0
  888. package/dist/ezui/p-288631d1.entry.js +0 -1
  889. package/dist/ezui/p-288631d1.entry.js.gz +0 -0
  890. package/dist/ezui/p-2a806303.js +0 -1
  891. package/dist/ezui/p-2a806303.js.gz +0 -0
  892. package/dist/ezui/p-30ffb9ed.js +0 -1
  893. package/dist/ezui/p-30ffb9ed.js.gz +0 -0
  894. package/dist/ezui/p-34a476a9.entry.js.gz +0 -0
  895. package/dist/ezui/p-351fb12f.entry.js.gz +0 -0
  896. package/dist/ezui/p-35bfaa88.entry.js +0 -1
  897. package/dist/ezui/p-35bfaa88.entry.js.gz +0 -0
  898. package/dist/ezui/p-39761eca.entry.js.gz +0 -0
  899. package/dist/ezui/p-3afa1c6e.entry.js.gz +0 -0
  900. package/dist/ezui/p-3ce867cf.entry.js +0 -1
  901. package/dist/ezui/p-3ce867cf.entry.js.gz +0 -0
  902. package/dist/ezui/p-3e767a74.js.gz +0 -0
  903. package/dist/ezui/p-40a60148.js.gz +0 -0
  904. package/dist/ezui/p-411c0222.entry.js.gz +0 -0
  905. package/dist/ezui/p-4314f87a.entry.js +0 -1
  906. package/dist/ezui/p-4314f87a.entry.js.gz +0 -0
  907. package/dist/ezui/p-43adc10c.entry.js +0 -1
  908. package/dist/ezui/p-43adc10c.entry.js.gz +0 -0
  909. package/dist/ezui/p-45e21e04.entry.js +0 -309
  910. package/dist/ezui/p-45e21e04.entry.js.gz +0 -0
  911. package/dist/ezui/p-48effc69.entry.js +0 -1
  912. package/dist/ezui/p-48effc69.entry.js.gz +0 -0
  913. package/dist/ezui/p-4d30b703.entry.js.gz +0 -0
  914. package/dist/ezui/p-4fe123b6.entry.js.gz +0 -0
  915. package/dist/ezui/p-5554704c.js +0 -1
  916. package/dist/ezui/p-5554704c.js.gz +0 -0
  917. package/dist/ezui/p-56fc1da0.js.gz +0 -0
  918. package/dist/ezui/p-5c440899.js.gz +0 -0
  919. package/dist/ezui/p-5ed81457.entry.js.gz +0 -0
  920. package/dist/ezui/p-6020f3d5.entry.js.gz +0 -0
  921. package/dist/ezui/p-6c51ccd1.entry.js.gz +0 -0
  922. package/dist/ezui/p-6ca0815e.entry.js +0 -1
  923. package/dist/ezui/p-6ca0815e.entry.js.gz +0 -0
  924. package/dist/ezui/p-6cb82d33.entry.js +0 -1
  925. package/dist/ezui/p-6cb82d33.entry.js.gz +0 -0
  926. package/dist/ezui/p-6d596a5a.entry.js.gz +0 -0
  927. package/dist/ezui/p-6f77a359.entry.js.gz +0 -0
  928. package/dist/ezui/p-721fd999.entry.js.gz +0 -0
  929. package/dist/ezui/p-7995dcb4.entry.js +0 -1
  930. package/dist/ezui/p-7995dcb4.entry.js.gz +0 -0
  931. package/dist/ezui/p-7f37ee99.entry.js.gz +0 -0
  932. package/dist/ezui/p-7f792043.entry.js.gz +0 -0
  933. package/dist/ezui/p-7fe97ef5.entry.js +0 -1
  934. package/dist/ezui/p-7fe97ef5.entry.js.gz +0 -0
  935. package/dist/ezui/p-80dfc50b.js.gz +0 -0
  936. package/dist/ezui/p-859e3134.entry.js.gz +0 -0
  937. package/dist/ezui/p-8d626d2b.entry.js +0 -1
  938. package/dist/ezui/p-8d626d2b.entry.js.gz +0 -0
  939. package/dist/ezui/p-8df1ca33.entry.js.gz +0 -0
  940. package/dist/ezui/p-91c9d50e.entry.js.gz +0 -0
  941. package/dist/ezui/p-93e1c917.entry.js.gz +0 -0
  942. package/dist/ezui/p-948f0fb2.entry.js.gz +0 -0
  943. package/dist/ezui/p-98bb8b16.js.gz +0 -0
  944. package/dist/ezui/p-9ab2add9.entry.js.gz +0 -0
  945. package/dist/ezui/p-9b215871.entry.js.gz +0 -0
  946. package/dist/ezui/p-9b2e6438.entry.js +0 -1
  947. package/dist/ezui/p-9b2e6438.entry.js.gz +0 -0
  948. package/dist/ezui/p-9b3f3c02.entry.js.gz +0 -0
  949. package/dist/ezui/p-9f5fa3f9.entry.js.gz +0 -0
  950. package/dist/ezui/p-a0bf1fc7.entry.js.gz +0 -0
  951. package/dist/ezui/p-a3075f52.entry.js.gz +0 -0
  952. package/dist/ezui/p-a3ada561.entry.js.gz +0 -0
  953. package/dist/ezui/p-a4083a7a.entry.js.gz +0 -0
  954. package/dist/ezui/p-a61fdd20.js +0 -1
  955. package/dist/ezui/p-a61fdd20.js.gz +0 -0
  956. package/dist/ezui/p-a63b20a0.entry.js +0 -1
  957. package/dist/ezui/p-a63b20a0.entry.js.gz +0 -0
  958. package/dist/ezui/p-a80b1287.entry.js.gz +0 -0
  959. package/dist/ezui/p-ab574d59.js.gz +0 -0
  960. package/dist/ezui/p-b1e45320.js.gz +0 -0
  961. package/dist/ezui/p-b3d8034b.entry.js.gz +0 -0
  962. package/dist/ezui/p-b853763b.js.gz +0 -0
  963. package/dist/ezui/p-b989a33e.entry.js.gz +0 -0
  964. package/dist/ezui/p-baec56c9.js.gz +0 -0
  965. package/dist/ezui/p-bc2f844e.entry.js.gz +0 -0
  966. package/dist/ezui/p-cde41310.entry.js +0 -1
  967. package/dist/ezui/p-cde41310.entry.js.gz +0 -0
  968. package/dist/ezui/p-ce0b36d7.entry.js.gz +0 -0
  969. package/dist/ezui/p-d2645bdf.entry.js +0 -1
  970. package/dist/ezui/p-d2645bdf.entry.js.gz +0 -0
  971. package/dist/ezui/p-d5eb2fad.entry.js.gz +0 -0
  972. package/dist/ezui/p-d6742c1e.entry.js.gz +0 -0
  973. package/dist/ezui/p-d6bb930d.entry.js.gz +0 -0
  974. package/dist/ezui/p-d6f50207.entry.js.gz +0 -0
  975. package/dist/ezui/p-d8cc640d.entry.js.gz +0 -0
  976. package/dist/ezui/p-dc628ed3.js.gz +0 -0
  977. package/dist/ezui/p-de862af4.entry.js +0 -1
  978. package/dist/ezui/p-de862af4.entry.js.gz +0 -0
  979. package/dist/ezui/p-dee18824.entry.js +0 -1
  980. package/dist/ezui/p-dee18824.entry.js.gz +0 -0
  981. package/dist/ezui/p-e75c7a23.entry.js.gz +0 -0
  982. package/dist/ezui/p-e7a7c594.entry.js.gz +0 -0
  983. package/dist/ezui/p-e8c57463.entry.js.gz +0 -0
  984. package/dist/ezui/p-ec730d4e.entry.js.gz +0 -0
  985. package/dist/ezui/p-ec7db713.js.gz +0 -0
  986. package/dist/ezui/p-ecd6409d.entry.js.gz +0 -0
  987. package/dist/ezui/p-ef8bd3e8.entry.js.gz +0 -0
  988. package/dist/ezui/p-f34ec732.entry.js.gz +0 -0
  989. package/dist/ezui/p-fa6732f2.entry.js.gz +0 -0
  990. package/dist/index.cjs.js.gz +0 -0
  991. package/dist/index.js.gz +0 -0
@@ -0,0 +1,1022 @@
1
+ import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-baa5e267.js';
2
+ import { StringUtils, ElementIDUtils, ObjectUtils, HTMLBuilder, KeyboardManager } from '@sankhyalabs/core';
3
+ import { a as replaceHighlight, r as replaceQuotes } from './searchFormatters-6d9b06e4.js';
4
+ import { i as initI18n } from './index-9e6dab5b.js';
5
+ import { C as CustomEditorSource } from './types-6f6b2650.js';
6
+ import { R as RICH_TOOLBAR_FORMAT_TAGS, a as RICH_TOOLBAR_COMMANDS } from './RichToolbarHelper-f3a149c4.js';
7
+ import { p as purify } from './purify-9357603c.js';
8
+ import { A as ApplicationUtils } from './ApplicationUtils-f7721533.js';
9
+ import './DialogType-54a62731.js';
10
+ import './CheckMode-bdb2ec19.js';
11
+ import './FormLayout-bda67973.js';
12
+ import './_commonjsHelpers-9943807e.js';
13
+
14
+ const classicSearchListCss = ":host{--ez-classic-search__list-title--primary:var(--title--primary, #2B3A54);--ez-classic-search__list-text--primary:var(--text--primary, #626e82);--ez-classic-search__list-height:calc(var(--ez-classic-search--font-size) + var(--ez-classic-search--space--medium) + 4px);--ez-classic-search__list-min-width:64px;--ez-classic-search__scrollbar--color-default:var(--scrollbar--default, #626e82);--ez-classic-search__scrollbar--color-background:var(--scrollbar--background, #E5EAF0);--ez-classic-search__scrollbar--color-hover:var(--scrollbar--hover, #2B3A54);--ez-classic-search__scrollbar--color-clicked:var(--scrollbar--clicked, #a2abb9);--ez-classic-search__scrollbar--border-radius:var(--border--radius-small, 6px);--ez-classic-search__scrollbar--width:var(--space--small, 6px);--ez-classic-search--border-radius-small:var(--border--radius-small, 6px);--ez-classic-search--font-size:var(--text--medium, 14px);--ez-classic-search--font-family:var(--font-pattern, Arial);--ez-classic-search--font-weight--large:var(--text-weight--large, 500);--ez-classic-search--font-weight--medium:var(--text-weight--medium, 400);--ez-classic-search--background-medium:var(--background--medium, #f0f3f7);--ez-classic-search--line-height:calc(var(--text--medium, 14px) + 4px)}.list-options{position:relative;z-index:var(--more-visible, 2);margin:var(--space--small) 0px;padding:0px;padding-inline-start:0px;box-sizing:border-box;width:100%;height:100%;max-height:350px;min-width:150px;display:flex;flex-direction:column;scroll-behavior:smooth;overflow-y:auto;overflow-x:hidden;scrollbar-width:thin;scrollbar-color:var(--ez-classic-search__scrollbar--color-clicked) var(--ez-classic-search__scrollbar--color-background)}.list-options::-webkit-scrollbar{background-color:var(--scrollbar--background);width:var(--space--small);max-width:var(--space--small);min-width:var(--space--small);height:var(--space--small);max-height:var(--space--small);min-height:var(--space--small)}.list-options::-webkit-scrollbar-track{background-color:var(--ez-classic-search__scrollbar--color-background);border-radius:var(--ez-classic-search__scrollbar--border-radius)}.list-options::-webkit-scrollbar-thumb{background-color:var(--ez-classic-search__scrollbar--color-default);border-radius:var(--ez-classic-search__scrollbar--border-radius)}.list-options::-webkit-scrollbar-thumb:vertical:hover,.list-options::-webkit-scrollbar-thumb:horizontal:hover{background-color:var(--ez-classic-search__scrollbar--color-hover)}.list-options::-webkit-scrollbar-thumb:vertical:active,.list-options::-webkit-scrollbar-thumb:horizontal:active{background-color:var(--ez-classic-search__scrollbar--color-clicked)}.message{text-align:center;display:flex;justify-content:center;align-items:center;list-style-type:none;margin:var(--space--medium) 0px;min-height:var(--ez-classic-search__list-height)}.message__no-result{color:var(--ez-classic-search__list-title--primary);font-family:var(--ez-classic-search--font-family);font-size:var(--ez-classic-search--font-size)}.message__loading{border-radius:50%;width:14px;height:14px;-webkit-animation:spin 1s linear infinite;animation:spin 1s linear infinite;border:3px solid var(--ez-classic-search__list-title--primary);border-top:3px solid transparent}.item__value,.item__label{flex-basis:auto;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--ez-classic-search__list-title--primary);font-family:var(--ez-classic-search--font-family);font-size:var(--ez-classic-search--font-size);line-height:var(--ez-classic-search--line-height)}.item__label{font-weight:var(--ez-classic-search--font-weight--medium)}.item__label--bold{font-weight:var(--ez-classic-search--font-weight--large)}.item__value{text-align:center;color:var(--ez-classic-search__list-text--primary);font-weight:var(--ez-classic-search--font-weight--large)}.item__value--hidden{visibility:hidden;position:absolute;white-space:nowrap;z-index:-1;top:0;left:0}.item__label{text-align:left}.item__list>li:hover{background-color:var(--ez-classic-search--background-medium)}.item{display:flex;align-items:center;width:100%;box-sizing:border-box;list-style-type:none;cursor:pointer;border-radius:var(--ez-classic-search--border-radius-small);gap:var(--space--small, 6px)}.preselected{background-color:var(--background--medium)}@-webkit-keyframes spin{0%{-webkit-transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg)}}@keyframes spin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@supports not (scrollbar-width: thin){.item{padding-right:8px}}";
15
+
16
+ const ClassicSearchList = class {
17
+ constructor(hostRef) {
18
+ registerInstance(this, hostRef);
19
+ this.changeValue = createEvent(this, "changeValue", 7);
20
+ this.changePreSelection = createEvent(this, "changePreSelection", 7);
21
+ this._startHighlightTag = "<span class='card-item__highlight'>";
22
+ this._endHighlightTag = "</span>";
23
+ this.MAX_HEIGHT = 350;
24
+ this.HEADER_MENU_HEIGHT = 60;
25
+ this.showLoading = undefined;
26
+ this.visibleOptions = [];
27
+ this.textEmptyList = undefined;
28
+ this.canShowListOptions = undefined;
29
+ this.value = undefined;
30
+ this.showOptionValue = true;
31
+ this.preSelection = undefined;
32
+ }
33
+ async nextOption() {
34
+ const newPreSelection = this.preSelection === undefined ? 0 : Math.min(this.preSelection + 1, this.visibleOptions.length - 1);
35
+ this.changePreSelection.emit(newPreSelection);
36
+ this.scrollToOption(this.visibleOptions[newPreSelection]);
37
+ }
38
+ async previousOption() {
39
+ const newPreSelection = this.preSelection === undefined ? 0 : Math.max(this.preSelection - 1, 0);
40
+ this.changePreSelection.emit(newPreSelection);
41
+ this.scrollToOption(this.visibleOptions[newPreSelection]);
42
+ }
43
+ selectOption(newOption) {
44
+ 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) });
45
+ 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) });
46
+ this.changeValue.emit(newOptionsFormatted);
47
+ }
48
+ createOption(detail) {
49
+ let { key, title } = detail;
50
+ const startHighlight = new RegExp(this._startHighlightTag, 'g');
51
+ const endHighlight = new RegExp(this._endHighlightTag, 'g');
52
+ title = StringUtils.decodeHtmlEntities(title);
53
+ const option = {
54
+ value: key === null || key === void 0 ? void 0 : key.replace(startHighlight, '').replace(endHighlight, ''),
55
+ label: title === null || title === void 0 ? void 0 : title.replace(startHighlight, '').replace(endHighlight, '')
56
+ };
57
+ this.selectOption(option);
58
+ }
59
+ scrollToOption(opt) {
60
+ window.requestAnimationFrame(() => {
61
+ const liElem = (opt === null || opt === void 0 ? void 0 : opt.value)
62
+ ? this._optionsList.querySelector(`div#item_${opt.value.replace(/([ #;&,.+*~':"!^$[\]()=<>|/\\])/g, '\\$1')}`)
63
+ : undefined;
64
+ if (liElem) {
65
+ liElem.scrollIntoView({ behavior: "smooth", block: "nearest" });
66
+ }
67
+ });
68
+ }
69
+ buildItem(opt, index) {
70
+ opt.label = opt.label || opt.value;
71
+ const card = {
72
+ key: opt.value,
73
+ title: opt.label,
74
+ details: opt.details
75
+ };
76
+ return h("div", { style: { "height": "100%" }, class: index === this.preSelection ? "item preselected" : "item", id: `item_${opt.value}`, onMouseDown: () => this.createOption(card), onMouseOver: () => this.changePreSelection.emit(index) }, h("ez-card-item", { item: card, compacted: true, enableKey: this.showOptionValue }));
77
+ }
78
+ componentDidLoad() {
79
+ if (this._optionsList) {
80
+ this._optionsList.style.maxHeight = `${this.MAX_HEIGHT}px`;
81
+ }
82
+ }
83
+ componentDidUpdate() {
84
+ if (this._optionsList) {
85
+ const rect = this._optionsList.getBoundingClientRect();
86
+ const spaceBelow = window.innerHeight - rect.bottom;
87
+ if (spaceBelow < 0) {
88
+ this.adjustMaxHeight(rect);
89
+ }
90
+ }
91
+ }
92
+ adjustMaxHeight(rect) {
93
+ if (this._optionsList) {
94
+ const spaceAbove = rect.top - this.HEADER_MENU_HEIGHT;
95
+ const maxHeight = this.MAX_HEIGHT;
96
+ const height = Math.min(spaceAbove, maxHeight);
97
+ this._optionsList.style.maxHeight = `${height}px`;
98
+ }
99
+ }
100
+ cleanEmptyObjectArray(arr) {
101
+ return arr.filter(item => ((item === null || item === void 0 ? void 0 : item.value) !== undefined));
102
+ }
103
+ render() {
104
+ return (h(Host, null, h("ul", { class: "list-options", ref: elem => this._optionsList = elem }, !this.showLoading
105
+ && this.cleanEmptyObjectArray(this.visibleOptions).length === 0
106
+ && h("div", { class: "message" }, h("span", { class: "message__no-result" }, this.textEmptyList)), this.showLoading
107
+ && h("div", { class: "message" }, h("div", { class: "message__loading" })), this.canShowListOptions && this.visibleOptions.map((opt, index) => this.buildItem(opt, index)))));
108
+ }
109
+ };
110
+ ClassicSearchList.style = classicSearchListCss;
111
+
112
+ const ezClassicSearchResultListCss = ":host{--ez-classic-search__list-title--primary:var(--title--primary, #2B3A54);--ez-classic-search__list-text--primary:var(--text--primary, #626e82);--ez-classic-search__list-height:calc(var(--ez-classic-search--font-size) + var(--ez-classic-search--space--medium) + 4px);--ez-classic-search__list-min-width:64px;--ez-classic-search__scrollbar--color-default:var(--scrollbar--default, #626e82);--ez-classic-search__scrollbar--color-background:var(--scrollbar--background, #E5EAF0);--ez-classic-search__scrollbar--color-hover:var(--scrollbar--hover, #2B3A54);--ez-classic-search__scrollbar--color-clicked:var(--scrollbar--clicked, #a2abb9);--ez-classic-search__scrollbar--border-radius:var(--border--radius-small, 6px);--ez-classic-search__scrollbar--width:var(--space--small, 6px);--ez-classic-search--border-radius-small:var(--border--radius-small, 6px);--ez-classic-search--font-size:var(--text--medium, 14px);--ez-classic-search--font-family:var(--font-pattern, Arial);--ez-classic-search--font-weight--large:var(--text-weight--large, 500);--ez-classic-search--font-weight--medium:var(--text-weight--medium, 400);--ez-classic-search--background-medium:var(--background--medium, #f0f3f7);--ez-classic-search--line-height:calc(var(--text--medium, 14px) + 4px)}.list-options{position:relative;z-index:var(--more-visible, 2);margin:var(--space--small) 0px;padding:0px;padding-inline-start:0px;box-sizing:border-box;width:100%;height:100%;max-height:350px;min-width:150px;display:flex;flex-direction:column;scroll-behavior:smooth;overflow-y:auto;overflow-x:hidden;scrollbar-width:thin;scrollbar-color:var(--ez-classic-search__scrollbar--color-clicked) var(--ez-classic-search__scrollbar--color-background)}.list-options::-webkit-scrollbar{background-color:var(--scrollbar--background);width:var(--space--small);max-width:var(--space--small);min-width:var(--space--small);height:var(--space--small);max-height:var(--space--small);min-height:var(--space--small)}.list-options::-webkit-scrollbar-track{background-color:var(--ez-classic-search__scrollbar--color-background);border-radius:var(--ez-classic-search__scrollbar--border-radius)}.list-options::-webkit-scrollbar-thumb{background-color:var(--ez-classic-search__scrollbar--color-default);border-radius:var(--ez-classic-search__scrollbar--border-radius)}.list-options::-webkit-scrollbar-thumb:vertical:hover,.list-options::-webkit-scrollbar-thumb:horizontal:hover{background-color:var(--ez-classic-search__scrollbar--color-hover)}.list-options::-webkit-scrollbar-thumb:vertical:active,.list-options::-webkit-scrollbar-thumb:horizontal:active{background-color:var(--ez-classic-search__scrollbar--color-clicked)}.message{text-align:center;display:flex;justify-content:center;align-items:center;list-style-type:none;margin:var(--space--medium) 0px;min-height:var(--ez-classic-search__list-height)}.message__no-result{color:var(--ez-classic-search__list-title--primary);font-family:var(--ez-classic-search--font-family);font-size:var(--ez-classic-search--font-size)}.loading__container{display:flex;flex-direction:column;margin:var(--space--small)}.item__value,.item__label{flex-basis:auto;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--ez-classic-search__list-title--primary);font-family:var(--ez-classic-search--font-family);font-size:var(--ez-classic-search--font-size);line-height:var(--ez-classic-search--line-height)}.item__label{font-weight:var(--ez-classic-search--font-weight--medium)}.item__label--bold{font-weight:var(--ez-classic-search--font-weight--large)}.item__value{text-align:center;color:var(--ez-classic-search__list-text--primary);font-weight:var(--ez-classic-search--font-weight--large)}.item__value--hidden{visibility:hidden;position:absolute;white-space:nowrap;z-index:-1;top:0;left:0}.item__label{text-align:left}.item__list>li:hover{background-color:var(--ez-classic-search--background-medium)}.item{display:flex;align-items:center;width:100%;box-sizing:border-box;list-style-type:none;cursor:pointer;border-radius:var(--ez-classic-search--border-radius-small);gap:var(--space--small, 6px)}.preselected{background-color:var(--background--medium)}@-webkit-keyframes spin{0%{-webkit-transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg)}}@keyframes spin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@supports not (scrollbar-width: thin){.item{padding-right:8px}}";
113
+
114
+ const EzClassicSearchResultList = class {
115
+ constructor(hostRef) {
116
+ registerInstance(this, hostRef);
117
+ this.changeValue = createEvent(this, "changeValue", 7);
118
+ this._startHighlightTag = "<span class='card-item__highlight'>";
119
+ this._endHighlightTag = "</span>";
120
+ this.showLoading = undefined;
121
+ this.visibleOptions = [];
122
+ this.value = undefined;
123
+ this.showOptionValue = true;
124
+ this._preSelection = undefined;
125
+ }
126
+ observerVisivleOptions(newValue) {
127
+ if (newValue.length) {
128
+ this.preSelectItemByIndex(0);
129
+ }
130
+ }
131
+ async nextOption() {
132
+ const newPreSelection = this._preSelection === undefined ? 0 : Math.min(this._preSelection + 1, this.visibleOptions.length - 1);
133
+ this.preSelectItemByIndex(newPreSelection);
134
+ }
135
+ async previousOption() {
136
+ const newPreSelection = this._preSelection === undefined ? 0 : Math.max(this._preSelection - 1, 0);
137
+ this.preSelectItemByIndex(newPreSelection);
138
+ }
139
+ preSelectItemByIndex(newIndex) {
140
+ this._preSelection = newIndex;
141
+ const option = this.visibleOptions[newIndex];
142
+ this.scrollToOption(option);
143
+ }
144
+ selectOption(newOption) {
145
+ const newOptionsReplaced = Object.assign(Object.assign({}, newOption), { value: newOption === null || newOption === void 0 ? void 0 : newOption.value, label: newOption === null || newOption === void 0 ? void 0 : newOption.label });
146
+ const newOptionsFormatted = Object.assign(Object.assign({}, newOptionsReplaced), { value: this.removeHighLight(newOptionsReplaced === null || newOptionsReplaced === void 0 ? void 0 : newOptionsReplaced.value), label: this.removeHighLight(newOptionsReplaced === null || newOptionsReplaced === void 0 ? void 0 : newOptionsReplaced.label) });
147
+ this.changeValue.emit(newOptionsFormatted);
148
+ }
149
+ removeHighLight(text) {
150
+ if (!text || typeof text !== 'string') {
151
+ return text;
152
+ }
153
+ const startHighlight = new RegExp(this._startHighlightTag, 'g');
154
+ const endHighlight = new RegExp(this._endHighlightTag, 'g');
155
+ return text.replace(startHighlight, '').replace(endHighlight, '');
156
+ }
157
+ createAndSelectOption(detail) {
158
+ let { key, title } = detail;
159
+ key = String(key !== null && key !== void 0 ? key : "");
160
+ title = StringUtils.decodeHtmlEntities(title);
161
+ const option = {
162
+ value: this.removeHighLight(key),
163
+ label: this.removeHighLight(title)
164
+ };
165
+ this.selectOption(option);
166
+ }
167
+ scrollToOption(opt) {
168
+ if (!(opt === null || opt === void 0 ? void 0 : opt.value) || !this._optionsList)
169
+ return;
170
+ window.requestAnimationFrame(() => {
171
+ var _a;
172
+ const currentValue = String((_a = opt === null || opt === void 0 ? void 0 : opt.value) !== null && _a !== void 0 ? _a : "");
173
+ const liElem = currentValue
174
+ ? this._optionsList.querySelector(`div#item_${currentValue.replace(/([ #;&,.+*~':"!^$[\]()=<>|/\\])/g, '\\$1')}`)
175
+ : undefined;
176
+ if (liElem) {
177
+ liElem.scrollIntoView({ behavior: "smooth", block: "nearest" });
178
+ }
179
+ });
180
+ }
181
+ buildItem(opt, index) {
182
+ var _a;
183
+ opt.label = opt.label || opt.value;
184
+ const card = {
185
+ key: String((_a = opt.presentationValue) !== null && _a !== void 0 ? _a : ""),
186
+ title: opt.presentationLabel,
187
+ details: opt.details
188
+ };
189
+ return h("div", { style: { "height": "100%" }, class: index === this._preSelection ? "item preselected" : "item", id: `item_${opt.value}`, onMouseDown: () => this.createAndSelectOption(card), onMouseOver: () => { this._preSelection = index; } }, h("ez-card-item", { item: card, compacted: true, enableKey: this.showOptionValue }));
190
+ }
191
+ async selectCurrentItem() {
192
+ this.selectOption(this.visibleOptions[this._preSelection]);
193
+ }
194
+ async cancelSelection() {
195
+ this.cancelPreselection();
196
+ }
197
+ cancelPreselection() {
198
+ this._preSelection = undefined;
199
+ }
200
+ canShowListOptions() {
201
+ return !this.showLoading && this.visibleOptions.length > 0;
202
+ }
203
+ async componentWillLoad() {
204
+ this.i18n = await initI18n();
205
+ }
206
+ render() {
207
+ return (h(Host, null, h("ul", { class: "list-options", ref: elem => this._optionsList = elem }, !this.showLoading
208
+ && this.visibleOptions.length === 0
209
+ && h("div", { class: "message" }, h("span", { class: "message__no-result" }, this.i18n("ez-classic-search-plus.emptyList"))), this.showLoading && (h("div", { class: "loading__container" }, h("ez-skeleton", { count: 4, height: '20px' }))), this.canShowListOptions() && this.visibleOptions.map((opt, index) => this.buildItem(opt, index)))));
210
+ }
211
+ static get watchers() { return {
212
+ "visibleOptions": ["observerVisivleOptions"]
213
+ }; }
214
+ };
215
+ EzClassicSearchResultList.style = ezClassicSearchResultListCss;
216
+
217
+ const ezComboBoxListCss = ":host{--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--font-weight--large:var(--text-weight--large, 500);--ez-combo-box--font-weight--medium:var(--text-weight--medium, 400);--ez-combo-box--background-color--xlight:var(--background--xlight, #fff);--ez-combo-box--background-medium:var(--background--medium, #f0f3f7);--ez-combo-box--line-height:calc(var(--text--medium, 14px) + 4px);--ez-combo-box__list-title--primary:var(--title--primary, #2B3A54);--ez-combo-box__list-text--primary:var(--text--primary, #626e82);--ez-combo-box__list-height:calc(var(--ez-combo-box--font-size) + var(--ez-combo-box--space--medium) + 4px);--ez-combo-box--space--medium:var(--space--medium, 12px);--ez-combo-box--space--small:var(--space--small, 6px);--ez-combo-box__scrollbar--color-default:var(--scrollbar--default, #626e82);--ez-combo-box__scrollbar--color-background:var(--scrollbar--background, #E5EAF0);--ez-combo-box__scrollbar--color-hover:var(--scrollbar--hover, #2B3A54);--ez-combo-box__scrollbar--color-clicked:var(--scrollbar--clicked, #a2abb9);--ez-combo-box__scrollbar--border-radius:var(--border--radius-small, 6px);--ez-combo-box__scrollbar--width:var(--space--medium, 12px);--ez-combo-box__list-container--padding:var(--space--extra-small, 3px)}.list-container{padding-top:var(--ez-combo-box__list-container--padding)}.list-wrapper{display:flex;flex-direction:column;box-sizing:border-box;width:0;z-index:var(--more-visible, 2);max-height:calc(4*var(--ez-combo-box__list-height) + 2*var(--ez-combo-box--space--small) + 9px);background-color:var(--ez-combo-box--background-color--xlight);border-radius:var(--ez-combo-box--border-radius);box-shadow:var(--shadow--medium, 0 8px 24px 0 rgba(43, 58, 84, 0.10));padding:var(--ez-combo-box--space--small)}.list-options{box-sizing:border-box;width:100%;height:100%;padding:0;margin:0;display:flex;flex-direction:column;scroll-behavior:smooth;overflow:auto;scrollbar-width:thin;gap:3px;scrollbar-color:var(--ez-combo-box__scrollbar--color-clicked) var(--ez-combo-box__scrollbar--color-background)}.list-options::-webkit-scrollbar{background-color:var(--ez-combo-box__scrollbar--color-background);width:var(--ez-combo-box__scrollbar--width);max-width:var(--ez-combo-box__scrollbar--width);min-width:var(--ez-combo-box__scrollbar--width)}.list-options::-webkit-scrollbar-track{background-color:var(--ez-combo-box__scrollbar--color-background);border-radius:var(--ez-combo-box__scrollbar--border-radius)}.list-options::-webkit-scrollbar-thumb{background-color:var(--ez-combo-box__scrollbar--color-default);border-radius:var(--ez-combo-box__scrollbar--border-radius)}.list-options::-webkit-scrollbar-thumb:vertical:hover,.list-options::-webkit-scrollbar-thumb:horizontal:hover{background-color:var(--ez-combo-box__scrollbar--color-hover)}.list-options::-webkit-scrollbar-thumb:vertical:active,.list-options::-webkit-scrollbar-thumb:horizontal:active{background-color:var(--ez-combo-box__scrollbar--color-clicked)}.item{display:flex;align-items:center;width:100%;box-sizing:border-box;list-style-type:none;cursor:pointer;border-radius:var(--ez-combo-box--border-radius-small);padding:var(--ez-combo-box--space--small);min-height:var(--ez-combo-box__list-height);gap:var(--space--small, 6px)}.item__value,.item__label{flex-basis:auto;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--ez-combo-box__list-title--primary);font-family:var(--ez-combo-box--font-family);font-size:var(--ez-combo-box--font-size);line-height:var(--ez-combo-box--line-height)}.item__label{font-weight:var(--ez-combo-box--font-weight--medium)}.item__label--bold{font-weight:var(--ez-combo-box--font-weight--large)}.item__value{text-align:center;color:var(--ez-combo-box__list-text--primary);font-weight:var(--ez-combo-box--font-weight--large)}.item__value--hidden{visibility:hidden;position:absolute;white-space:nowrap;z-index:-1;top:0;left:0}.item__label{text-align:left}.message{text-align:center;display:flex;justify-content:center;align-items:center;list-style-type:none;min-height:var(--ez-combo-box__list-height)}.message__no-result{color:var(--ez-combo-box__list-title--primary);font-family:var(--ez-combo-box--font-family);font-size:var(--ez-combo-box--font-size)}.message__loading{border-radius:50%;width:14px;height:14px;-webkit-animation:spin 1s linear infinite;animation:spin 1s linear infinite;border:3px solid var(--ez-combo-box__list-title--primary);border-top:3px solid transparent}li:hover{background-color:var(--ez-combo-box--background-medium)}.preselected{background-color:var(--background--medium)}@-webkit-keyframes spin{0%{-webkit-transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg)}}@keyframes spin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}";
218
+
219
+ const EzComboBoxList = class {
220
+ constructor(hostRef) {
221
+ registerInstance(this, hostRef);
222
+ this.showLoading = undefined;
223
+ this.visibleOptions = undefined;
224
+ this.textEmptyList = undefined;
225
+ this.showOptionValue = undefined;
226
+ this.preSelection = undefined;
227
+ this.maxWidth = undefined;
228
+ this.width = undefined;
229
+ this.onOptionSelect = undefined;
230
+ this.onOptionHover = undefined;
231
+ }
232
+ /**
233
+ * Move a seleção para a próxima opção na lista.
234
+ */
235
+ async nextOption() {
236
+ var _a, _b;
237
+ if (!((_a = this.visibleOptions) === null || _a === void 0 ? void 0 : _a.length))
238
+ return;
239
+ const isAtLastOption = this.preSelection !== undefined && this.preSelection >= this.visibleOptions.length - 1;
240
+ if (!isAtLastOption) {
241
+ this.preSelection = this.preSelection === undefined ? 0 : this.preSelection + 1;
242
+ this.scrollToOption(this.visibleOptions[this.preSelection]);
243
+ (_b = this.onOptionHover) === null || _b === void 0 ? void 0 : _b.call(this, this.preSelection);
244
+ }
245
+ }
246
+ /**
247
+ * Move a seleção para a opção anterior na lista, sem ultrapassar o início.
248
+ */
249
+ async previousOption() {
250
+ var _a, _b;
251
+ if (!((_a = this.visibleOptions) === null || _a === void 0 ? void 0 : _a.length))
252
+ return;
253
+ const isAtFirstOption = this.preSelection !== undefined && this.preSelection <= 0;
254
+ if (!isAtFirstOption) {
255
+ this.preSelection = this.preSelection === undefined ? this.visibleOptions.length - 1 : this.preSelection - 1;
256
+ this.scrollToOption(this.visibleOptions[this.preSelection]);
257
+ (_b = this.onOptionHover) === null || _b === void 0 ? void 0 : _b.call(this, this.preSelection);
258
+ }
259
+ }
260
+ /**
261
+ * Seleciona a opção atualmente pré-selecionada.
262
+ */
263
+ async selectCurrentOption() {
264
+ if (this.preSelection !== undefined) {
265
+ this.onOptionSelect(this.visibleOptions[this.preSelection]);
266
+ this.preSelection = undefined;
267
+ }
268
+ }
269
+ /**
270
+ * Observa mudanças na propriedade `width` e ajusta a largura da lista.
271
+ *
272
+ * @param newValue O novo valor da largura.
273
+ * @param oldValue O valor anterior da largura.
274
+ */
275
+ observeWidth(newValue, oldValue) {
276
+ if (newValue === oldValue)
277
+ return;
278
+ if (!this._listWrapper)
279
+ return;
280
+ this._listWrapper.style.width = `${this.width}px`;
281
+ }
282
+ /**
283
+ * Observa mudanças na propriedade `maxWidth` e ajusta a largura máxima da lista.
284
+ *
285
+ * @param newValue O novo valor da largura máxima.
286
+ * @param oldValue O valor anterior da largura máxima.
287
+ */
288
+ observeMaxWidth(newValue, oldValue) {
289
+ if (newValue === oldValue)
290
+ return;
291
+ if (!this._listWrapper)
292
+ return;
293
+ this._listWrapper.style.maxWidth = this.maxWidth ? `${this.maxWidth}px` : '';
294
+ }
295
+ /**
296
+ * Gerencia a navegação por teclado na lista do combo box.
297
+ *
298
+ * - `ArrowDown`: Move para a próxima opção.
299
+ * - `ArrowUp`: Move para a opção anterior.
300
+ * - `Enter`: Seleciona a opção atual.
301
+ * - `Escape`: Limpa a pré-seleção.
302
+ *
303
+ * @param event O evento de teclado.
304
+ */
305
+ handleKeyDown(event) {
306
+ switch (event.key) {
307
+ case "ArrowDown":
308
+ event.preventDefault();
309
+ event.stopPropagation();
310
+ this.nextOption();
311
+ break;
312
+ case "ArrowUp":
313
+ event.preventDefault();
314
+ event.stopPropagation();
315
+ this.previousOption();
316
+ break;
317
+ case "Enter":
318
+ this.selectCurrentOption();
319
+ break;
320
+ case "Escape":
321
+ this.preSelection = undefined;
322
+ break;
323
+ }
324
+ }
325
+ buildItem(opt, index) {
326
+ const widthValue = this.showOptionValue && this.maxWidth > 0 ? `${this.maxWidth}px` : '';
327
+ opt.label = opt.label || opt.value;
328
+ return h("li", { tabIndex: 1, class: index === this.preSelection ? "item preselected" : "item", id: `item_${opt.value}_${index}`, key: `item_${opt.value}_${index}`, onMouseDown: () => this.onOptionSelect(opt), onMouseOver: () => this.preSelection = index }, this.showOptionValue
329
+ ? h("span", { class: "item__value", title: opt.value, style: { width: widthValue, minWidth: widthValue, maxWidth: widthValue } }, opt.value)
330
+ : undefined, h("span", { class: "item__label " + (this.showOptionValue ? "item__label--bold" : ""), title: opt.label }, opt.label));
331
+ }
332
+ scrollToOption(opt) {
333
+ if (!(opt === null || opt === void 0 ? void 0 : opt.value) || !this._optionsList)
334
+ return;
335
+ const index = this.visibleOptions.indexOf(opt);
336
+ if (index === -1)
337
+ return;
338
+ const liElem = this._optionsList.querySelector(`li#item_${CSS.escape(opt.value)}_${CSS.escape(String(index))}`);
339
+ if (liElem) {
340
+ liElem.scrollIntoView({
341
+ behavior: "smooth",
342
+ block: "nearest"
343
+ });
344
+ }
345
+ }
346
+ async componentWillLoad() {
347
+ this.i18n = await initI18n();
348
+ }
349
+ componentDidLoad() {
350
+ this._listWrapper.style.width = `${this.width}px`;
351
+ this._listWrapper.style.maxWidth = this.maxWidth ? `${this.maxWidth}px` : '';
352
+ }
353
+ componentDidRender() {
354
+ var _a;
355
+ (_a = this._optionsList) === null || _a === void 0 ? void 0 : _a.querySelectorAll(".item").forEach((elem) => {
356
+ ElementIDUtils.addIDInfoIfNotExists(elem, "itemComboBox");
357
+ });
358
+ }
359
+ render() {
360
+ return (h("section", { class: "list-container" }, h("div", { class: "list-wrapper", ref: elem => this._listWrapper = elem }, h("ul", { class: "list-options", ref: elem => this._optionsList = elem }, !this.showLoading && this.visibleOptions.length === 0 && (h("div", { class: "message" }, h("span", { class: "message__no-result" }, this.textEmptyList || this.i18n("ez-combo-box.noResults")))), this.showLoading && (h("div", { class: "message" }, h("div", { class: "message__loading" }))), this.showOptionValue && (h("span", { class: "item__value item__value--hidden" })), !this.showLoading && this.visibleOptions.length > 0 &&
361
+ this.visibleOptions.map((opt, index) => this.buildItem(opt, index))))));
362
+ }
363
+ static get watchers() { return {
364
+ "width": ["observeWidth"],
365
+ "maxWidth": ["observeMaxWidth"]
366
+ }; }
367
+ };
368
+ EzComboBoxList.style = ezComboBoxListCss;
369
+
370
+ const EzCustomFormInput = class {
371
+ constructor(hostRef) {
372
+ registerInstance(this, hostRef);
373
+ this.gui = undefined;
374
+ this.customEditor = undefined;
375
+ this.formViewField = undefined;
376
+ this.value = undefined;
377
+ this.detailContext = undefined;
378
+ this.builderFallback = undefined;
379
+ this.selectedRecord = undefined;
380
+ }
381
+ /**
382
+ * Aplica foco no campo.
383
+ */
384
+ async setFocus() {
385
+ var _a, _b;
386
+ (_b = (_a = this.gui) === null || _a === void 0 ? void 0 : _a["setFocus"]) === null || _b === void 0 ? void 0 : _b.call(_a);
387
+ }
388
+ /**
389
+ * Remove o foco do campo.
390
+ */
391
+ async setBlur() {
392
+ var _a, _b;
393
+ (_b = (_a = this.gui) === null || _a === void 0 ? void 0 : _a["setBlur"]) === null || _b === void 0 ? void 0 : _b.call(_a);
394
+ }
395
+ /**
396
+ * Retorna se o conteúdo é inválido.
397
+ */
398
+ async isInvalid() {
399
+ var _a, _b;
400
+ return ((_b = (_a = this.gui) === null || _a === void 0 ? void 0 : _a["isInvalid"]) === null || _b === void 0 ? void 0 : _b.call(_a)) || false;
401
+ }
402
+ watchValue() {
403
+ this.handleValue(this.gui);
404
+ }
405
+ watchCustomEditor() {
406
+ this.getContent();
407
+ }
408
+ watchFormViewField(newValue, oldValue) {
409
+ if (!ObjectUtils.equals(newValue, oldValue))
410
+ this.getContent();
411
+ }
412
+ watchDetailContext() {
413
+ this.getContent();
414
+ }
415
+ watchBuilderFallback() {
416
+ this.getContent();
417
+ }
418
+ watchSelectedRecord(newValue, oldValue) {
419
+ const newRecordId = newValue === null || newValue === void 0 ? void 0 : newValue['__record__id__'];
420
+ const oldRecordId = oldValue === null || oldValue === void 0 ? void 0 : oldValue['__record__id__'];
421
+ if (newRecordId !== oldRecordId) {
422
+ this.getContent();
423
+ }
424
+ }
425
+ getContent() {
426
+ var _a, _b, _c, _d, _e;
427
+ const fieldProps = new Map();
428
+ for (const prop in this.formViewField.props) {
429
+ fieldProps.set(prop, this.formViewField.props[prop]);
430
+ }
431
+ const params = {
432
+ value: this.value,
433
+ name: this.formViewField.name,
434
+ currentEditor: this.builderFallback(this.formViewField),
435
+ setValue: (value) => this.setValue(value),
436
+ getValue: this.getValue,
437
+ record: this.selectedRecord,
438
+ editorMetadata: {
439
+ label: this.formViewField.label,
440
+ hidden: ((_a = this.formViewField.props) === null || _a === void 0 ? void 0 : _a.visible) === false,
441
+ userInterface: this.formViewField.userInterface,
442
+ options: (_b = this.formViewField.props) === null || _b === void 0 ? void 0 : _b.options,
443
+ props: this.formViewField.props ? fieldProps : undefined,
444
+ optionLoader: this.formViewField.optionLoader
445
+ },
446
+ source: CustomEditorSource.FORM,
447
+ detailContext: this.detailContext
448
+ };
449
+ let gui = this.customEditor.getEditorElement(params);
450
+ if (!gui) {
451
+ gui = this.builderFallback(this.formViewField);
452
+ this.handleValue(gui);
453
+ this.gui = gui;
454
+ return;
455
+ }
456
+ if (!(gui instanceof HTMLElement) && typeof gui !== 'string') {
457
+ this.handleValue(gui);
458
+ this.gui = gui;
459
+ return;
460
+ }
461
+ if (typeof gui === 'string') {
462
+ gui = HTMLBuilder.parseElement(gui);
463
+ }
464
+ const value = (_e = (_d = (_c = this.value) === null || _c === void 0 ? void 0 : _c.value) !== null && _d !== void 0 ? _d : this.value) !== null && _e !== void 0 ? _e : '';
465
+ gui.setAttribute('value', value);
466
+ this.gui = h("div", { key: StringUtils.generateUUID(), ref: el => el && el.appendChild(gui) });
467
+ }
468
+ setValue(value) {
469
+ this.value = value;
470
+ }
471
+ getValue() {
472
+ return this.value;
473
+ }
474
+ handleValue(gui) {
475
+ var _a;
476
+ //@ts-ignore
477
+ (_a = gui.$children$) === null || _a === void 0 ? void 0 : _a.forEach((child) => {
478
+ child.$attrs$.value = this.value;
479
+ });
480
+ }
481
+ componentWillLoad() {
482
+ this.getContent();
483
+ }
484
+ render() {
485
+ return (h(Host, null, this.gui));
486
+ }
487
+ static get watchers() { return {
488
+ "value": ["watchValue"],
489
+ "customEditor": ["watchCustomEditor"],
490
+ "formViewField": ["watchFormViewField"],
491
+ "detailContext": ["watchDetailContext"],
492
+ "builderFallback": ["watchBuilderFallback"],
493
+ "selectedRecord": ["watchSelectedRecord"]
494
+ }; }
495
+ };
496
+
497
+ const ezImageInputCss = ":host{display:block;--ez-image-input--container-height:200px;--ez-image-input--container-width:280px;--ez-image-input--background-color:var(--color--gray-80);--ez-image-input--border-color:var(--color--gray-200);--ez-image-input--border-color-hover:var(--color--ocean-green-600);--ez-image-input--border-color-dragging:var(--color--ocean-green-500);--ez-image-input--border-color-disabled:var(--color--gray-200);--ez-image-input--label-color:var(--color--petroleum-900);--ez-image-input--icon-color:var(--color--gray-400);--ez-image-input--border-radius:var(--border--radius-24);--ez-image-input--border-width:2px;--ez-image-input--remove-button-bg:var(--color--red-600);--ez-image-input--remove-button-bg-hover:var(--color--red-700);--ez-image-input--remove-button-color:var(--color--gray-70);--ez-image-input--remove-button-border:1px solid var(--color--red-700)}.image-input__container{display:flex;align-items:center;justify-content:center;position:relative;height:var(--ez-image-input--container-height);width:var(--ez-image-input--container-width);border:var(--ez-image-input--border-width) dashed var(--ez-image-input--border-color);border-radius:var(--ez-image-input--border-radius);background-color:var(--ez-image-input--background-color);cursor:pointer;transition:all 0.3s ease;overflow:hidden}.image-input__container:hover:not(.image-input__container--disabled){border-color:var(--ez-image-input--border-color-hover)}.image-input__container--dragging{border-color:var(--ez-image-input--border-color-dragging);background-color:var(--color--ocean-green-90)}.image-input__container--disabled{cursor:not-allowed;opacity:0.6;border-color:var(--ez-image-input--border-color-disabled)}.image-input__container--has-image{border-style:solid;padding:var(--space--0)}.image-input__file-input{display:none}.image-input__dropzone{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:var(--space--16);padding:var(--space--24);text-align:center}.image-input__dropzone ez-icon{color:var(--ez-image-input--icon-color)}.image-input__label{font-family:var(--font--pattern);font-size:var(--font-size--default);font-weight:var(--font-weight--medium);color:var(--ez-image-input--label-color);line-height:var(--line-height--20)}.image-input__preview{position:relative;width:100%;height:100%;display:flex;align-items:center;justify-content:center}.image-input__image{height:100%;object-fit:cover;border-radius:calc(var(--ez-image-input--border-radius) - var(--ez-image-input--border-width))}.image-input__actions{position:absolute;top:var(--space--8);right:var(--space--8);display:flex;flex-direction:column;gap:var(--space--4);opacity:0;transition:opacity 0.2s ease}.image-input__container:hover .image-input__actions{opacity:1}.image-input__remove-button{--ez-button--background-color:var(--ez-image-input--remove-button-bg);--ez-button--hover--background-color:var(--ez-image-input--remove-button-bg-hover);--ez-button--color:var(--ez-image-input--remove-button-color);--ez-button--border:var(--ez-image-input--remove-button-border);--ez-button--hover--border:var(--ez-image-input--remove-button-border)}.image-input__edit-button{--ez-button--background-color:var(--ez-image-input--edit-button-bg);--ez-button--hover--background-color:var(--ez-image-input--edit-button-bg-hover);--ez-button--color:var(--ez-image-input--edit-button-color);--ez-button--border:var(--ez-image-input--edit-button-border);--ez-button--hover--border:var(--ez-image-input--edit-button-border);--ez-button--left-icon--color:var(--ez-image-input--edit-button-color);--ez-button--right-icon--color:var(--ez-image-input--edit-button-color)}.image-input__popup-content{display:flex;align-items:center;justify-content:center;padding:var(--space--16);height:100%}.image-input__popup-image{max-width:100%;max-height:70vh;object-fit:contain;border-radius:var(--border--radius-8)}.image-input__image{height:100%;object-fit:cover;border-radius:calc(var(--ez-image-input--border-radius) - var(--ez-image-input--border-width));cursor:pointer;transition:transform 0.2s ease}.image-input__image:hover{transform:scale(1.02)}ez-skeleton{--skeleton-width:var(--ez-image-input--container-width);--skeleton-height:var(--ez-image-input--container-height)}";
498
+
499
+ const EzImageInput = class {
500
+ constructor(hostRef) {
501
+ registerInstance(this, hostRef);
502
+ this.ezChange = createEvent(this, "ezChange", 7);
503
+ this.ezError = createEvent(this, "ezError", 7);
504
+ this.handleFileSelect = (event) => {
505
+ const input = event.target;
506
+ if (input.files && input.files[0]) {
507
+ this.processFile(input.files[0]);
508
+ }
509
+ };
510
+ this.handleDrop = (event) => {
511
+ var _a;
512
+ event.preventDefault();
513
+ event.stopPropagation();
514
+ this._isDragging = false;
515
+ if (!this.enabled)
516
+ return;
517
+ const files = (_a = event.dataTransfer) === null || _a === void 0 ? void 0 : _a.files;
518
+ if (files && files[0]) {
519
+ this.processFile(files[0]);
520
+ }
521
+ };
522
+ this.handleDragOver = (event) => {
523
+ event.preventDefault();
524
+ event.stopPropagation();
525
+ if (this.enabled) {
526
+ this._isDragging = true;
527
+ }
528
+ };
529
+ this.handleDragLeave = (event) => {
530
+ event.preventDefault();
531
+ event.stopPropagation();
532
+ this._isDragging = false;
533
+ };
534
+ this.handleRemoveImage = (event) => {
535
+ event.stopPropagation();
536
+ this.value = undefined;
537
+ this._hasImage = false;
538
+ if (this._inputElem) {
539
+ this._inputElem.value = '';
540
+ }
541
+ this.ezChange.emit('');
542
+ };
543
+ this.handleEditImage = (event) => {
544
+ var _a;
545
+ event.stopPropagation();
546
+ (_a = this._inputElem) === null || _a === void 0 ? void 0 : _a.click();
547
+ };
548
+ this.handleClickDropZone = () => {
549
+ var _a;
550
+ if (this.enabled && !this._hasImage) {
551
+ (_a = this._inputElem) === null || _a === void 0 ? void 0 : _a.click();
552
+ }
553
+ };
554
+ this.handleImageClick = (event) => {
555
+ event.stopPropagation();
556
+ if (this._hasImage && this.value) {
557
+ this._showImagePopup = true;
558
+ }
559
+ };
560
+ this.handlePopupAction = (event) => {
561
+ const action = event.detail;
562
+ if (action === 'CANCEL' || action === 'OK') {
563
+ this.handleClosePopup();
564
+ }
565
+ };
566
+ this.handleClosePopup = () => {
567
+ this._showImagePopup = false;
568
+ };
569
+ this.enabled = true;
570
+ this.label = undefined;
571
+ this.name = undefined;
572
+ this.value = undefined;
573
+ this.maxFileSize = 20 * 1024 * 1024;
574
+ this.accept = 'image/*';
575
+ this.loading = false;
576
+ this._hasImage = false;
577
+ this._isDragging = false;
578
+ this._showImagePopup = false;
579
+ }
580
+ onValueChange(newValue, oldValue) {
581
+ if (newValue !== oldValue) {
582
+ this._hasImage = !!newValue;
583
+ }
584
+ if (!newValue && this._inputElem) {
585
+ this._inputElem.value = '';
586
+ }
587
+ }
588
+ addInfoId() {
589
+ if (this._element) {
590
+ ElementIDUtils.addIDInfo(this._element);
591
+ }
592
+ if (this._inputElem) {
593
+ const dataInfo = { id: 'embedded' };
594
+ ElementIDUtils.addIDInfo(this._inputElem, 'image-input', dataInfo);
595
+ }
596
+ }
597
+ processFile(file) {
598
+ // Validar tipo de arquivo
599
+ if (!file.type.startsWith('image/')) {
600
+ const errorMsg = this.i18n('ez-image-input.invalidFileType');
601
+ this.ezError.emit(errorMsg);
602
+ return;
603
+ }
604
+ // Validar tamanho do arquivo
605
+ if (this.maxFileSize && file.size > this.maxFileSize) {
606
+ const maxSizeMB = (this.maxFileSize / (1024 * 1024)).toFixed(2);
607
+ const errorMsg = this.i18n('ez-image-input.fileTooLarge', { maxSize: `${maxSizeMB}MB` });
608
+ this.ezError.emit(errorMsg);
609
+ return;
610
+ }
611
+ // Converter para base64
612
+ const reader = new FileReader();
613
+ reader.onload = (e) => {
614
+ var _a;
615
+ const base64 = (_a = e.target) === null || _a === void 0 ? void 0 : _a.result;
616
+ this.value = base64;
617
+ this._hasImage = true;
618
+ this.ezChange.emit(base64);
619
+ };
620
+ reader.readAsDataURL(file);
621
+ }
622
+ async componentWillLoad() {
623
+ this.i18n = await initI18n();
624
+ this._hasImage = !!this.value;
625
+ }
626
+ componentDidLoad() {
627
+ this.addInfoId();
628
+ }
629
+ render() {
630
+ if (this.loading) {
631
+ return (h(Host, null, h("ez-skeleton", { width: "280px", height: '200px' })));
632
+ }
633
+ const dropZoneLabel = this.label || this.i18n('ez-image-input.defaultLabel');
634
+ return (h(Host, null, h("div", { class: {
635
+ 'image-input__container': true,
636
+ 'image-input__container--disabled': !this.enabled,
637
+ 'image-input__container--dragging': this._isDragging,
638
+ 'image-input__container--has-image': this._hasImage
639
+ }, "data-enabled": this.enabled.toString(), "data-has-image": this._hasImage.toString(), onClick: this.handleClickDropZone, onDrop: this.handleDrop, onDragOver: this.handleDragOver, onDragLeave: this.handleDragLeave, role: "button", "aria-label": dropZoneLabel, tabindex: this.enabled ? 0 : -1 }, h("input", { ref: (el) => (this._inputElem = el), type: "file", accept: this.accept, name: this.name, disabled: !this.enabled, onChange: this.handleFileSelect, class: "image-input__file-input", "aria-hidden": "true" }), this._hasImage && this.value ? (h("div", { class: "image-input__preview" }, h("img", { src: this.value, alt: this.i18n('ez-image-input.imageAlt'), class: "image-input__image", onClick: this.handleImageClick }), this.enabled && (h("div", { class: "image-input__actions" }, h("ez-button", { class: "image-input__remove-button", variant: "primary", type: "button", mode: "icon", size: "small", iconName: "trash-alt", onClick: this.handleRemoveImage, "aria-label": this.i18n('ez-image-input.removeImage'), title: this.i18n('ez-image-input.removeImage') }), h("ez-button", { class: "image-input__edit-button", variant: "secondary", type: "button", mode: "icon", size: "small", iconName: "edit", onClick: this.handleEditImage, "aria-label": this.i18n('ez-image-input.editImage'), title: this.i18n('ez-image-input.editImage') }))))) : (h("div", { class: "image-input__dropzone" }, h("ez-icon", { iconName: "image", size: "x-large" }), h("span", { class: "image-input__label" }, dropZoneLabel)))), h("ez-popup", { opened: this._showImagePopup, ezTitle: this.i18n('ez-image-input.imagePreview'), size: "large", heightMode: "auto", onEzPopupAction: this.handlePopupAction, onEzClosePopup: this.handleClosePopup }, h("div", { class: "image-input__popup-content" }, h("img", { src: this.value, alt: this.i18n('ez-image-input.imageAlt'), class: "image-input__popup-image" })))));
640
+ }
641
+ get _element() { return getElement(this); }
642
+ static get watchers() { return {
643
+ "value": ["onValueChange"]
644
+ }; }
645
+ };
646
+ EzImageInput.style = ezImageInputCss;
647
+
648
+ const ezRichTextCss = ".sc-ez-rich-text-h{display:block;width:100%;font-family:Roboto;--ez-rich-text--box-shadow:0 0 3px 0 #DCE0E8;--ez-rich-text--shadow--outline:var(--shadow--outline) var(--color--strokes)}.editor-container.sc-ez-rich-text{width:100%;overflow:hidden;border-radius:12px;border:1px solid #DCE0E8}ez-text-area.sc-ez-rich-text{--text-area__input--border:1px solid}.preview.sc-ez-rich-text{min-height:20px;padding:12px;resize:both;overflow:auto;max-width:100%;border-top:1px solid #DCE0E8}";
649
+
650
+ const EzRichText = class {
651
+ constructor(hostRef) {
652
+ registerInstance(this, hostRef);
653
+ this.ezChange = createEvent(this, "ezChange", 7);
654
+ this.historyStack = [];
655
+ this.historyIndex = -1;
656
+ this.previewMode = false;
657
+ this.showPreview = true;
658
+ this.value = undefined;
659
+ this.label = undefined;
660
+ this.mode = "regular";
661
+ this.enabled = true;
662
+ this.rows = 6;
663
+ this.errorMessage = undefined;
664
+ this.canShowError = true;
665
+ this.showConfigs = true;
666
+ this.showTextFormat = true;
667
+ this.showUndoRedo = true;
668
+ }
669
+ observeValue(newValue, oldValue) {
670
+ if (ObjectUtils.equals(newValue, oldValue))
671
+ return;
672
+ this.ezChange.emit(newValue);
673
+ }
674
+ observeErrorMessage(newValue) {
675
+ if (newValue && this.previewMode) {
676
+ this.previewMode = false;
677
+ }
678
+ }
679
+ async handleExecuteToolbarCommand(event) {
680
+ const { command, value } = event.detail;
681
+ await this.executeCommand(command, value);
682
+ }
683
+ /**
684
+ * Aplica o foco no campo.
685
+ */
686
+ async setFocus() {
687
+ this.handleFocus();
688
+ }
689
+ /**
690
+ * Remove o foco do campo.
691
+ */
692
+ async setBlur() {
693
+ var _a;
694
+ await ((_a = this.textAreaRef) === null || _a === void 0 ? void 0 : _a.setBlur());
695
+ }
696
+ /**
697
+ * Retorna se o conteúdo é inválido.
698
+ */
699
+ async isInvalid() {
700
+ return typeof this.errorMessage === 'string' && this.errorMessage.trim() !== '';
701
+ }
702
+ bindPreview() {
703
+ if (!this._keyboardManager || !this.showPreview)
704
+ return;
705
+ this._keyboardManager
706
+ .bind('ctrl + p', async () => {
707
+ await this.togglePreview();
708
+ }, { description: 'Entra em modo de pré visualização.', element: this.element });
709
+ }
710
+ bindConfigs() {
711
+ if (!this._keyboardManager || !this.showConfigs)
712
+ return;
713
+ this._keyboardManager
714
+ .bind('ctrl + l', async () => {
715
+ await this.handleFormatSelection(RICH_TOOLBAR_FORMAT_TAGS.LIST);
716
+ }, { description: this.i18n("ez-rich-text.listShortcut"), element: this.element })
717
+ .bind('ctrl + k', async () => {
718
+ await this.handleLink();
719
+ }, { description: this.i18n("ez-rich-text.linkShortcut"), element: this.element })
720
+ .bind('ctrl + o', async () => {
721
+ await this.handleImage();
722
+ }, { description: this.i18n("ez-rich-text.imageShortcut"), element: this.element });
723
+ }
724
+ bindTextFormat() {
725
+ if (!this._keyboardManager || !this.showTextFormat)
726
+ return;
727
+ this._keyboardManager
728
+ .bind('ctrl + b', async () => {
729
+ await this.handleFormatSelection(RICH_TOOLBAR_FORMAT_TAGS.BOLD);
730
+ }, { description: this.i18n("ez-rich-text.boldShortcut"), element: this.element })
731
+ .bind('ctrl + i', async () => {
732
+ await this.handleFormatSelection(RICH_TOOLBAR_FORMAT_TAGS.ITALIC);
733
+ }, { description: this.i18n("ez-rich-text.italicShortcut"), element: this.element })
734
+ .bind('ctrl + u', async () => {
735
+ await this.handleFormatSelection(RICH_TOOLBAR_FORMAT_TAGS.UNDERLINE);
736
+ }, { description: this.i18n("ez-rich-text.underlineShortcut"), element: this.element });
737
+ }
738
+ initKeyboardManager() {
739
+ this._keyboardManager = new KeyboardManager({ propagate: false, element: this.element });
740
+ this._keyboardManager
741
+ .bind('ctrl + Enter', async () => {
742
+ await this.handleFormatSelection(RICH_TOOLBAR_FORMAT_TAGS.BREAK_LINE);
743
+ }, { description: this.i18n("ez-rich-text.breakLineShortcut"), element: this.element })
744
+ .bind('ctrl + z', async () => {
745
+ await this.handleUndo();
746
+ }, { description: this.i18n("ez-rich-text.undoShortcut"), element: this.element })
747
+ .bind('ctrl + x', async () => {
748
+ await this.handleRedo();
749
+ }, { description: this.i18n("ez-rich-text.redoShortcut"), element: this.element });
750
+ this.bindPreview();
751
+ this.bindConfigs();
752
+ this.bindTextFormat();
753
+ }
754
+ async executeCommand(command, value) {
755
+ switch (command) {
756
+ case RICH_TOOLBAR_COMMANDS.FOCUS:
757
+ this.handleFocus();
758
+ break;
759
+ case RICH_TOOLBAR_COMMANDS.PREVIEW:
760
+ await this.togglePreview();
761
+ break;
762
+ case RICH_TOOLBAR_COMMANDS.FORMAT:
763
+ await this.handleFormatSelection(value);
764
+ break;
765
+ case RICH_TOOLBAR_COMMANDS.UNDO:
766
+ await this.handleUndo();
767
+ break;
768
+ case RICH_TOOLBAR_COMMANDS.REDO:
769
+ await this.handleRedo();
770
+ break;
771
+ case RICH_TOOLBAR_COMMANDS.LINK:
772
+ await this.handleLink();
773
+ break;
774
+ case RICH_TOOLBAR_COMMANDS.IMAGE:
775
+ await this.handleImage();
776
+ break;
777
+ }
778
+ }
779
+ handleFocus() {
780
+ this.previewMode = false;
781
+ requestAnimationFrame(async () => {
782
+ await this.textAreaRef.setFocus();
783
+ });
784
+ }
785
+ async handleLink() {
786
+ this.previewMode = false;
787
+ requestAnimationFrame(async () => {
788
+ await this.linkBuilderRef.show(this.getSelectedText());
789
+ });
790
+ }
791
+ async handleImage() {
792
+ this.previewMode = false;
793
+ await this.imageUploaderRef.show();
794
+ }
795
+ async handleRedo() {
796
+ this.previewMode = false;
797
+ requestAnimationFrame(async () => {
798
+ this.redo();
799
+ await this.textAreaRef.setFocus();
800
+ });
801
+ }
802
+ async handleUndo() {
803
+ this.previewMode = false;
804
+ requestAnimationFrame(async () => {
805
+ this.undo();
806
+ await this.textAreaRef.setFocus();
807
+ });
808
+ }
809
+ async handleFormatSelection(value) {
810
+ if (!value)
811
+ return;
812
+ this.previewMode = false;
813
+ requestAnimationFrame(async () => {
814
+ await this.formatSelection(value);
815
+ await this.textAreaRef.setFocus();
816
+ });
817
+ }
818
+ async togglePreview() {
819
+ this.previewMode = !this.previewMode;
820
+ if (this.previewMode) {
821
+ await this.textAreaRef.setFocus();
822
+ }
823
+ }
824
+ getSelectedText() {
825
+ const textarea = this.getTextAreaElement();
826
+ if (!textarea)
827
+ return undefined;
828
+ const selectionStart = textarea.selectionStart;
829
+ const selectionEnd = textarea.selectionEnd;
830
+ const currentValue = this.textAreaRef.value || '';
831
+ return currentValue.substring(selectionStart, selectionEnd);
832
+ }
833
+ getTextAreaElement() {
834
+ const textAreaElement = this.element.querySelector('ez-text-area');
835
+ return textAreaElement.shadowRoot.querySelector('textarea');
836
+ }
837
+ async formatSelection(htmlTag) {
838
+ if (!this.textAreaRef)
839
+ return;
840
+ const formattedHtml = htmlTag.replace('$selection', this.getSelectedText() || '');
841
+ await this.textAreaRef.appendTextToSelection(formattedHtml);
842
+ this.value = this.textAreaRef.value;
843
+ this.addToHistory(this.value);
844
+ }
845
+ addToHistory(content) {
846
+ // Só adiciona ao histórico se for diferente do estado atual
847
+ if (this.historyIndex >= 0 && content === this.historyStack[this.historyIndex]) {
848
+ return;
849
+ }
850
+ //se o tamanho do histórico chegou ao máximo, faz um splice mantendo os últimos 49 elementos
851
+ if (this.historyStack.length >= 50) {
852
+ this.historyStack.splice(0, this.historyStack.length - 49);
853
+ }
854
+ //Adiciona novo estado ao histórico
855
+ this.historyStack.push(content);
856
+ this.historyIndex = this.historyStack.length - 1;
857
+ }
858
+ undo() {
859
+ if (!this.canExecuteUndo())
860
+ return;
861
+ this.historyIndex--;
862
+ const content = this.historyStack[this.historyIndex];
863
+ this.value = content;
864
+ this.textAreaRef.value = content;
865
+ }
866
+ canExecuteUndo() {
867
+ return this.historyIndex > 0;
868
+ }
869
+ redo() {
870
+ if (!this.canExecuteRedo())
871
+ return;
872
+ this.historyIndex++;
873
+ this.getValueFromHistory();
874
+ }
875
+ canExecuteRedo() {
876
+ return this.historyIndex < this.historyStack.length - 1;
877
+ }
878
+ getValueFromHistory() {
879
+ const content = this.historyStack[this.historyIndex];
880
+ this.value = content;
881
+ this.textAreaRef.value = content;
882
+ }
883
+ handleTextAreaChanged(event) {
884
+ this.value = event.detail;
885
+ this.addToHistory(this.value);
886
+ }
887
+ async removeShortcuts() {
888
+ var _a;
889
+ (_a = this._keyboardManager) === null || _a === void 0 ? void 0 : _a.unbindAllShortcutKeys();
890
+ }
891
+ async componentWillLoad() {
892
+ this.i18n = await initI18n();
893
+ }
894
+ componentDidLoad() {
895
+ this.initKeyboardManager();
896
+ this.addToHistory(this.value);
897
+ }
898
+ async disconnectedCallback() {
899
+ await this.removeShortcuts();
900
+ }
901
+ getSanitizedValue() {
902
+ return purify.sanitize(this.value, {
903
+ ADD_ATTR: ['target', 'rel']
904
+ });
905
+ }
906
+ renderContent() {
907
+ if (this.previewMode) {
908
+ return (h("div", { id: 'rich-text-preview-container', class: "preview", innerHTML: this.getSanitizedValue() }));
909
+ }
910
+ return h("ez-text-area", { ref: (el) => this.textAreaRef = el, label: this.label, value: this.value, enabled: this.enabled, rows: this.rows, mode: this.mode, canShowError: this.canShowError, errorMessage: this.errorMessage, onEzChange: this.handleTextAreaChanged.bind(this) });
911
+ }
912
+ render() {
913
+ return (h(Host, null, h("div", { class: 'editor-container bordered' }, h("ez-rich-toolbar", { isPreviewMode: this.previewMode, showPreview: this.showPreview, showConfigs: this.showConfigs && this.enabled, showTextFormat: this.showTextFormat && this.enabled, showUndoRedo: this.showUndoRedo && this.enabled }), this.renderContent()), h("ez-link-builder", { ref: (el) => this.linkBuilderRef = el }), h("ez-simple-image-uploader", { ref: (el) => this.imageUploaderRef = el })));
914
+ }
915
+ get element() { return getElement(this); }
916
+ static get watchers() { return {
917
+ "value": ["observeValue"],
918
+ "errorMessage": ["observeErrorMessage"]
919
+ }; }
920
+ };
921
+ EzRichText.style = ezRichTextCss;
922
+
923
+ const ezTextEditCss = ":host{display:flex;align-items:center;gap:5px}.text-edit__form-input{width:auto;--ez-text-input__input--padding:0px}.text-edit__hidden-value{visibility:hidden;position:absolute;white-space:nowrap;z-index:-1;top:0;left:0}";
924
+
925
+ const EzTextEdit = class {
926
+ constructor(hostRef) {
927
+ registerInstance(this, hostRef);
928
+ this.saveEdition = createEvent(this, "saveEdition", 7);
929
+ this.cancelEdition = createEvent(this, "cancelEdition", 7);
930
+ this._newValue = undefined;
931
+ this.value = undefined;
932
+ this.styled = undefined;
933
+ }
934
+ /**
935
+ * Aplica foco no campo.
936
+ */
937
+ async applyFocusSelect() {
938
+ this.calcSizeInput(this.value, true);
939
+ }
940
+ calcSizeInput(value, setSelect = false) {
941
+ var _a, _b;
942
+ const textInput = (_b = (_a = this._inputElement) === null || _a === void 0 ? void 0 : _a.shadowRoot) === null || _b === void 0 ? void 0 : _b.querySelector('input');
943
+ if (textInput != undefined) {
944
+ const sizeText = this.getWidthValue(value);
945
+ textInput.style.width = sizeText + 'px';
946
+ if (setSelect) {
947
+ setTimeout(() => textInput.select(), 100);
948
+ }
949
+ }
950
+ }
951
+ getWidthValue(value) {
952
+ if (this._valueBasis != undefined) {
953
+ const span = this._valueBasis;
954
+ if (value != undefined) {
955
+ const cursorSpace = 2;
956
+ span.innerHTML = value;
957
+ return span.clientWidth > 0 ? (span.clientWidth + cursorSpace) : cursorSpace;
958
+ }
959
+ else {
960
+ span.innerHTML = "";
961
+ }
962
+ }
963
+ return 0;
964
+ }
965
+ setStyledInput() {
966
+ var _a, _b;
967
+ let fontSize = "";
968
+ let fontWeight = "";
969
+ let fontFamily = "";
970
+ if (this.styled != undefined) {
971
+ fontSize = this.styled.fontSize;
972
+ fontWeight = this.styled.fontWeight;
973
+ fontFamily = this.styled.fontFamily;
974
+ }
975
+ const textInput = (_b = (_a = this._inputElement) === null || _a === void 0 ? void 0 : _a.shadowRoot) === null || _b === void 0 ? void 0 : _b.querySelector('input');
976
+ if (textInput != undefined) {
977
+ textInput.style.fontSize = fontSize;
978
+ textInput.style.fontWeight = fontWeight;
979
+ textInput.style.fontFamily = fontFamily;
980
+ }
981
+ const span = this._valueBasis;
982
+ if (span != undefined) {
983
+ span.style.fontSize = fontSize;
984
+ span.style.fontWeight = fontWeight;
985
+ span.style.fontFamily = fontFamily;
986
+ }
987
+ }
988
+ handleSaveEdition() {
989
+ if (!this._newValue) {
990
+ ApplicationUtils.alert(this.i18n("app.warning"), this.i18n("ez-text-edit.emptyFieldWarning")).then(() => {
991
+ this.setNewValue(this.value, true);
992
+ });
993
+ return;
994
+ }
995
+ this.saveEdition.emit({ value: this.value, newValue: this._newValue });
996
+ }
997
+ handleCancelEdition() {
998
+ this.cancelEdition.emit();
999
+ }
1000
+ setNewValue(value, setSelect = false) {
1001
+ this._newValue = value;
1002
+ this.calcSizeInput(this._newValue, setSelect);
1003
+ }
1004
+ async componentWillLoad() {
1005
+ this.i18n = await initI18n();
1006
+ }
1007
+ componentDidLoad() {
1008
+ this.applyFocusSelect();
1009
+ this.setNewValue(this.value);
1010
+ }
1011
+ componentDidRender() {
1012
+ this.setStyledInput();
1013
+ }
1014
+ render() {
1015
+ ElementIDUtils.addIDInfoIfNotExists(this._element, 'input');
1016
+ return (h(Host, null, h("span", { class: "text-edit__hidden-value", ref: elem => this._valueBasis = elem }), h("ez-text-input", { "data-element-id": ElementIDUtils.getInternalIDInfo("textInput"), onInput: () => { this.calcSizeInput(this._newValue); }, class: "text-edit__form-input", value: this._newValue, ref: (elem) => this._inputElement = elem, mode: "slim", onEzChange: (evt) => this.setNewValue(evt === null || evt === void 0 ? void 0 : evt.detail), noBorder: true }), h("ez-button", { class: "text-edit__icon-check", mode: "icon", iconName: "check", size: "small", onClick: () => { this.handleSaveEdition(); } }), h("ez-button", { class: "text-edit__icon-close", mode: "icon", iconName: "close", size: "small", onClick: () => { this.handleCancelEdition(); } })));
1017
+ }
1018
+ get _element() { return getElement(this); }
1019
+ };
1020
+ EzTextEdit.style = ezTextEditCss;
1021
+
1022
+ export { ClassicSearchList as classic_search_list, EzClassicSearchResultList as ez_classic_search_result_list, EzComboBoxList as ez_combo_box_list, EzCustomFormInput as ez_custom_form_input, EzImageInput as ez_image_input, EzRichText as ez_rich_text, EzTextEdit as ez_text_edit };