@sankhyalabs/ezui 7.3.4 → 7.3.5-dev.1

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 (1035) hide show
  1. package/README.md +8 -8
  2. package/dist/cjs/{ApplicationUtils-999d2366.js → ApplicationUtils-34e43a14.js} +1 -1
  3. package/dist/cjs/{search-column-254df8ea.js → DataBinder-cdc66d4e.js} +4 -31
  4. package/dist/cjs/FormLayout-fe8da83c.js +9 -0
  5. package/dist/cjs/FormMetadata-16c68f51.js +278 -0
  6. package/dist/cjs/{app-globals-1fea23aa.js → app-globals-a03da63f.js} +1 -1
  7. package/dist/cjs/classic-search-list_11.cjs.entry.js +1483 -0
  8. package/dist/cjs/ez-actions-button.cjs.entry.js +4 -3
  9. package/dist/cjs/ez-alert-list.cjs.entry.js +1 -1
  10. package/dist/cjs/ez-avatar.cjs.entry.js +1 -1
  11. package/dist/cjs/ez-calendar.cjs.entry.js +1 -1
  12. package/dist/cjs/ez-card-item.cjs.entry.js +62 -0
  13. package/dist/cjs/ez-chart.cjs.entry.js +1 -1
  14. package/dist/cjs/ez-classic-combo-box.cjs.entry.js +38 -15
  15. package/dist/cjs/ez-classic-date-input.cjs.entry.js +201 -0
  16. package/dist/cjs/ez-classic-date-time-input.cjs.entry.js +246 -0
  17. package/dist/cjs/ez-classic-input.cjs.entry.js +144 -18
  18. package/dist/cjs/ez-classic-number-input.cjs.entry.js +205 -0
  19. package/dist/cjs/ez-classic-search-plus.cjs.entry.js +420 -0
  20. package/dist/cjs/ez-classic-search.cjs.entry.js +683 -0
  21. package/dist/cjs/ez-classic-text-area.cjs.entry.js +13 -2
  22. package/dist/cjs/ez-classic-time-input.cjs.entry.js +198 -0
  23. package/dist/cjs/ez-collapsible-box.cjs.entry.js +4 -3
  24. package/dist/cjs/ez-combo-box.cjs.entry.js +4 -3
  25. package/dist/cjs/ez-date-input.cjs.entry.js +1 -1
  26. package/dist/cjs/ez-date-time-input.cjs.entry.js +1 -1
  27. package/dist/cjs/ez-dialog.cjs.entry.js +1 -1
  28. package/dist/cjs/ez-double-list.cjs.entry.js +1 -1
  29. package/dist/cjs/ez-dropdown.cjs.entry.js +1 -1
  30. package/dist/cjs/ez-empty-card.cjs.entry.js +1 -1
  31. package/dist/cjs/ez-file-item.cjs.entry.js +1 -1
  32. package/dist/cjs/ez-filter.cjs.entry.js +426 -0
  33. package/dist/cjs/ez-form-view.cjs.entry.js +130 -37
  34. package/dist/cjs/ez-form.cjs.entry.js +27 -233
  35. package/dist/cjs/ez-grid-pagination.cjs.entry.js +331 -0
  36. package/dist/cjs/ez-grid.cjs.entry.js +984 -267
  37. package/dist/cjs/ez-guide-navigator.cjs.entry.js +1 -1
  38. package/dist/cjs/ez-icon.cjs.entry.js +1 -1
  39. package/dist/cjs/ez-list.cjs.entry.js +1 -1
  40. package/dist/cjs/ez-modal-container.cjs.entry.js +1 -1
  41. package/dist/cjs/ez-modal.cjs.entry.js +2 -2
  42. package/dist/cjs/{ez-card-item_5.cjs.entry.js → ez-multi-selection-list_5.cjs.entry.js} +222 -56
  43. package/dist/cjs/ez-number-input.cjs.entry.js +1 -1
  44. package/dist/cjs/ez-pagination.cjs.entry.js +1 -1
  45. package/dist/cjs/ez-popover.cjs.entry.js +8 -0
  46. package/dist/cjs/ez-popup.cjs.entry.js +1 -1
  47. package/dist/cjs/ez-record-navigation.cjs.entry.js +121 -0
  48. package/dist/cjs/ez-rich-toolbar-arrows_3.cjs.entry.js +57 -0
  49. package/dist/cjs/ez-scroller_2.cjs.entry.js +81 -14
  50. package/dist/cjs/ez-search-plus.cjs.entry.js +18 -8
  51. package/dist/cjs/ez-search-result-list.cjs.entry.js +1 -1
  52. package/dist/cjs/ez-search.cjs.entry.js +49 -11
  53. package/dist/cjs/ez-sidebar-navigator.cjs.entry.js +1 -1
  54. package/dist/cjs/ez-skeleton.cjs.entry.js +1 -1
  55. package/dist/cjs/ez-sortable-list.cjs.entry.js +2 -2
  56. package/dist/cjs/ez-spinner.cjs.entry.js +1 -1
  57. package/dist/cjs/ez-split-button.cjs.entry.js +16 -17
  58. package/dist/cjs/ez-split-item.cjs.entry.js +7 -5
  59. package/dist/cjs/ez-split-panel.cjs.entry.js +6 -4
  60. package/dist/cjs/ez-tabselector.cjs.entry.js +209 -61
  61. package/dist/cjs/ez-text-input.cjs.entry.js +37 -0
  62. package/dist/cjs/ez-time-input.cjs.entry.js +1 -1
  63. package/dist/cjs/ez-tree.cjs.entry.js +1 -1
  64. package/dist/cjs/ez-upload.cjs.entry.js +2 -2
  65. package/dist/cjs/ezui.cjs.js +3 -3
  66. package/dist/cjs/filter-column.cjs.entry.js +1 -1
  67. package/dist/cjs/index-a7b0c73d.js +70 -34
  68. package/dist/cjs/{index-637af219.js → index-f98939e1.js} +180 -12
  69. package/dist/cjs/loader.cjs.js +3 -3
  70. package/dist/cjs/{purify-ef86f048.js → purify-4f39f037.js} +1 -0
  71. package/dist/cjs/search-column-f1c7a355.js +32 -0
  72. package/dist/cjs/searchFormatters-051f8677.js +23 -0
  73. package/dist/cjs/{FormLayout-18853e70.js → types-6a5df0c7.js} +0 -6
  74. package/dist/collection/collection-manifest.json +65 -3
  75. package/dist/collection/components/ez-classic-combo-box/ez-classic-combo-box.css +5 -0
  76. package/dist/collection/components/ez-classic-combo-box/ez-classic-combo-box.js +96 -18
  77. package/dist/collection/components/ez-classic-date-input/ez-classic-date-input.css +44 -0
  78. package/dist/collection/components/ez-classic-date-input/ez-classic-date-input.js +541 -0
  79. package/dist/collection/components/ez-classic-date-time-input/ez-classic-date-time-input.css +44 -0
  80. package/dist/collection/components/ez-classic-date-time-input/ez-classic-date-time-input.js +586 -0
  81. package/dist/collection/components/ez-classic-input/ez-classic-input.css +33 -5
  82. package/dist/collection/components/ez-classic-input/ez-classic-input.js +200 -19
  83. package/dist/collection/components/ez-classic-number-input/ez-classic-number-input.css +16 -0
  84. package/dist/collection/components/ez-classic-number-input/ez-classic-number-input.js +583 -0
  85. package/dist/collection/components/ez-classic-search/ez-classic-search.css +126 -0
  86. package/dist/collection/components/ez-classic-search/ez-classic-search.js +1330 -0
  87. package/dist/collection/components/ez-classic-search/subcomponent/classic-search-list/classic-search-list.css +227 -0
  88. package/dist/collection/components/ez-classic-search/subcomponent/classic-search-list/classic-search-list.js +316 -0
  89. package/dist/collection/components/ez-classic-search/utils/searchFormatters.js +18 -0
  90. package/dist/collection/components/ez-classic-search-plus/ez-classic-search-plus.css +428 -0
  91. package/dist/collection/components/ez-classic-search-plus/ez-classic-search-plus.js +1003 -0
  92. package/dist/collection/components/ez-classic-search-plus/subcomponent/ez-search-result-list/ez-classic-search-result-list.css +221 -0
  93. package/dist/collection/components/ez-classic-search-plus/subcomponent/ez-search-result-list/ez-classic-search-result-list.js +298 -0
  94. package/dist/collection/components/ez-classic-text-area/ez-classic-text-area.css +3 -2
  95. package/dist/collection/components/ez-classic-text-area/ez-classic-text-area.js +32 -1
  96. package/dist/collection/components/ez-classic-time-input/ez-classic-time-input.css +14 -0
  97. package/dist/collection/components/ez-classic-time-input/ez-classic-time-input.js +512 -0
  98. package/dist/collection/components/ez-dropdown/ez-dropdown.css +2 -2
  99. package/dist/collection/components/ez-empty-card/ez-empty-card.js +7 -7
  100. package/dist/collection/components/ez-filter/ez-filter.css +134 -0
  101. package/dist/collection/components/ez-filter/ez-filter.js +1076 -0
  102. package/dist/collection/components/ez-filter/interfaces/IFilterChange.js +1 -0
  103. package/dist/collection/components/ez-filter/interfaces/IFilterCustomField.js +1 -0
  104. package/dist/collection/components/ez-filter/interfaces/index.js +1 -0
  105. package/dist/collection/components/ez-form/ez-form.js +30 -4
  106. package/dist/collection/components/ez-form-view/ez-form-view.css +27 -8
  107. package/dist/collection/components/ez-form-view/ez-form-view.js +62 -4
  108. package/dist/collection/components/ez-form-view/fieldbuilder/FieldBuilder.js +9 -4
  109. package/dist/collection/components/ez-form-view/fieldbuilder/templates/CheckBox.tpl.js +9 -6
  110. package/dist/collection/components/ez-form-view/fieldbuilder/templates/ComboBox.tpl.js +8 -1
  111. package/dist/collection/components/ez-form-view/fieldbuilder/templates/DateInput.tpl.js +30 -6
  112. package/dist/collection/components/ez-form-view/fieldbuilder/templates/FileInput.tpl.js +1 -1
  113. package/dist/collection/components/ez-form-view/fieldbuilder/templates/ImageInput.tpl.js +4 -0
  114. package/dist/collection/components/ez-form-view/fieldbuilder/templates/NumberInput.tpl.js +12 -5
  115. package/dist/collection/components/ez-form-view/fieldbuilder/templates/RichText.tpl.js +1 -1
  116. package/dist/collection/components/ez-form-view/fieldbuilder/templates/SearchInput.tpl.js +9 -3
  117. package/dist/collection/components/ez-form-view/fieldbuilder/templates/SearchInputPlus.tpl.js +8 -1
  118. package/dist/collection/components/ez-form-view/fieldbuilder/templates/TextArea.tpl.js +7 -1
  119. package/dist/collection/components/ez-form-view/fieldbuilder/templates/TextInput.tpl.js +8 -1
  120. package/dist/collection/components/ez-form-view/structure/index.js +1 -1
  121. package/dist/collection/components/ez-grid/controller/ag-grid/AgGridController.js +138 -13
  122. package/dist/collection/components/ez-grid/controller/ag-grid/DataSource.js +11 -1
  123. package/dist/collection/components/ez-grid/controller/ag-grid/gridColumnDefaultWidths.js +23 -0
  124. package/dist/collection/components/ez-grid/controller/ag-grid/utils/AggFunctionResolver.js +24 -0
  125. package/dist/collection/components/ez-grid/ez-grid.css +5 -60
  126. package/dist/collection/components/ez-grid/ez-grid.js +52 -150
  127. package/dist/collection/components/ez-grid/interfaces/IAggegationFunc.js +1 -0
  128. package/dist/collection/components/ez-grid/utils/index.js +1 -0
  129. package/dist/collection/components/ez-grid-pagination/ez-grid-pagination.css +217 -0
  130. package/dist/collection/components/ez-grid-pagination/ez-grid-pagination.js +516 -0
  131. package/dist/collection/components/ez-grid-pagination/ez-grid-pagination.model.js +1 -0
  132. package/dist/collection/components/ez-icon/ez-icon.css +8 -7
  133. package/dist/collection/components/ez-image-input/ez-image-input.css +189 -0
  134. package/dist/collection/components/ez-image-input/ez-image-input.js +329 -0
  135. package/dist/collection/components/ez-modal/ez-modal.css +3 -0
  136. package/dist/collection/components/ez-popover/ez-popover.js +27 -0
  137. package/dist/collection/components/ez-record-navigation/ez-record-navigation.css +51 -0
  138. package/dist/collection/components/ez-record-navigation/ez-record-navigation.js +246 -0
  139. package/dist/collection/components/ez-scroller/EzScrollNavigationMode.js +5 -0
  140. package/dist/collection/components/ez-scroller/ez-scroller.css +117 -11
  141. package/dist/collection/components/ez-scroller/ez-scroller.js +118 -13
  142. package/dist/collection/components/ez-search/ez-search.css +4 -0
  143. package/dist/collection/components/ez-search/ez-search.js +75 -3
  144. package/dist/collection/components/ez-search-plus/ez-search-plus.js +11 -2
  145. package/dist/collection/components/ez-sortable-list/ez-sortable-list.css +1 -1
  146. package/dist/collection/components/ez-split-button/ez-split-button.css +1 -1
  147. package/dist/collection/components/ez-split-button/ez-split-button.js +20 -15
  148. package/dist/collection/components/ez-split-panel/ez-split-panel.css +29 -0
  149. package/dist/collection/components/ez-split-panel/ez-split-panel.js +23 -3
  150. package/dist/collection/components/ez-split-panel/structure/item/ez-split-item.css +9 -0
  151. package/dist/collection/components/ez-split-panel/structure/item/ez-split-item.js +20 -1
  152. package/dist/collection/components/ez-tabselector/ez-tabselector.css +33 -1
  153. package/dist/collection/components/ez-tabselector/ez-tabselector.js +254 -62
  154. package/dist/collection/components/ez-text-input/ez-text-input.js +38 -1
  155. package/dist/collection/utils/form/DataBinder.js +2 -2
  156. package/dist/collection/utils/form/FormMetadata.js +132 -74
  157. package/dist/collection/utils/form/interfaces/FormLayout.js +3 -1
  158. package/dist/collection/utils/i18n/locales/en-us.js +60 -4
  159. package/dist/collection/utils/i18n/locales/es-es.js +60 -4
  160. package/dist/collection/utils/i18n/locales/pt-br.js +60 -4
  161. package/dist/collection/utils/searchColumn/search-column.js +8 -6
  162. package/dist/custom-elements/index.d.ts +72 -0
  163. package/dist/custom-elements/index.js +5231 -572
  164. package/dist/esm/{ApplicationUtils-7270d89f.js → ApplicationUtils-aaf24be5.js} +1 -1
  165. package/dist/esm/{search-column-d98f7d96.js → DataBinder-81d15b1b.js} +5 -28
  166. package/dist/esm/FormLayout-bda67973.js +9 -0
  167. package/dist/esm/FormMetadata-112f11d8.js +276 -0
  168. package/dist/esm/{RichToolbarHelper-f3a149c4.js → RichToolbarHelper-cad0978a.js} +1 -1
  169. package/dist/esm/{app-globals-6208a4b6.js → app-globals-d5fb68f0.js} +1 -1
  170. package/dist/esm/classic-search-list_11.entry.js +1469 -0
  171. package/dist/esm/ez-actions-button.entry.js +4 -3
  172. package/dist/esm/ez-alert-list.entry.js +1 -1
  173. package/dist/esm/ez-avatar.entry.js +1 -1
  174. package/dist/esm/ez-calendar.entry.js +1 -1
  175. package/dist/esm/ez-card-item.entry.js +58 -0
  176. package/dist/esm/ez-chart.entry.js +1 -1
  177. package/dist/esm/ez-classic-combo-box.entry.js +38 -15
  178. package/dist/esm/ez-classic-date-input.entry.js +197 -0
  179. package/dist/esm/ez-classic-date-time-input.entry.js +242 -0
  180. package/dist/esm/ez-classic-input.entry.js +145 -19
  181. package/dist/esm/ez-classic-number-input.entry.js +201 -0
  182. package/dist/esm/ez-classic-search-plus.entry.js +416 -0
  183. package/dist/esm/ez-classic-search.entry.js +679 -0
  184. package/dist/esm/ez-classic-text-area.entry.js +13 -2
  185. package/dist/esm/ez-classic-time-input.entry.js +194 -0
  186. package/dist/esm/ez-collapsible-box.entry.js +4 -3
  187. package/dist/esm/ez-combo-box.entry.js +4 -3
  188. package/dist/esm/ez-date-input.entry.js +1 -1
  189. package/dist/esm/ez-date-time-input.entry.js +1 -1
  190. package/dist/esm/ez-dialog.entry.js +1 -1
  191. package/dist/esm/ez-double-list.entry.js +1 -1
  192. package/dist/esm/ez-dropdown.entry.js +1 -1
  193. package/dist/esm/ez-empty-card.entry.js +1 -1
  194. package/dist/esm/ez-file-item.entry.js +1 -1
  195. package/dist/esm/ez-filter.entry.js +422 -0
  196. package/dist/esm/ez-form-view.entry.js +130 -37
  197. package/dist/esm/ez-form.entry.js +15 -221
  198. package/dist/esm/ez-grid-pagination.entry.js +327 -0
  199. package/dist/esm/ez-grid.entry.js +980 -263
  200. package/dist/esm/ez-guide-navigator.entry.js +1 -1
  201. package/dist/esm/ez-icon.entry.js +1 -1
  202. package/dist/esm/ez-list.entry.js +1 -1
  203. package/dist/esm/ez-modal-container.entry.js +1 -1
  204. package/dist/esm/ez-modal.entry.js +2 -2
  205. package/dist/esm/{ez-card-item_5.entry.js → ez-multi-selection-list_5.entry.js} +224 -58
  206. package/dist/esm/ez-number-input.entry.js +1 -1
  207. package/dist/esm/ez-pagination.entry.js +1 -1
  208. package/dist/esm/ez-popover.entry.js +8 -0
  209. package/dist/esm/ez-popup.entry.js +1 -1
  210. package/dist/esm/ez-record-navigation.entry.js +117 -0
  211. package/dist/esm/ez-rich-toolbar-arrows_3.entry.js +51 -0
  212. package/dist/esm/ez-scroller_2.entry.js +81 -14
  213. package/dist/esm/ez-search-plus.entry.js +15 -5
  214. package/dist/esm/ez-search-result-list.entry.js +1 -1
  215. package/dist/esm/ez-search.entry.js +44 -6
  216. package/dist/esm/ez-sidebar-navigator.entry.js +1 -1
  217. package/dist/esm/ez-skeleton.entry.js +1 -1
  218. package/dist/esm/ez-sortable-list.entry.js +2 -2
  219. package/dist/esm/ez-spinner.entry.js +1 -1
  220. package/dist/esm/ez-split-button.entry.js +16 -17
  221. package/dist/esm/ez-split-item.entry.js +7 -5
  222. package/dist/esm/ez-split-panel.entry.js +6 -4
  223. package/dist/esm/ez-tabselector.entry.js +209 -61
  224. package/dist/esm/ez-text-input.entry.js +37 -0
  225. package/dist/esm/ez-time-input.entry.js +1 -1
  226. package/dist/esm/ez-tree.entry.js +1 -1
  227. package/dist/esm/ez-upload.entry.js +2 -2
  228. package/dist/esm/ezui.js +3 -3
  229. package/dist/esm/filter-column.entry.js +1 -1
  230. package/dist/esm/index-baa5e267.js +70 -34
  231. package/dist/esm/{index-8088eb6e.js → index-d37095f4.js} +180 -12
  232. package/dist/esm/loader.js +3 -3
  233. package/dist/esm/{purify-96c0d5c2.js → purify-f52f5419.js} +1 -0
  234. package/dist/esm/search-column-8b15de9a.js +27 -0
  235. package/dist/esm/searchFormatters-6d9b06e4.js +20 -0
  236. package/dist/esm/{FormLayout-071d324c.js → types-6f6b2650.js} +1 -7
  237. package/dist/ezui/ezui.esm.js +1 -1
  238. package/dist/ezui/p-0583e935.entry.js +1 -0
  239. package/dist/ezui/p-05af2c30.entry.js +1 -0
  240. package/dist/ezui/p-0d80e3ec.entry.js +1 -0
  241. package/dist/ezui/{p-fadf0509.entry.js → p-0ec3061a.entry.js} +1 -1
  242. package/dist/ezui/p-0f6e6ff6.entry.js +1 -0
  243. package/dist/ezui/p-10da38bf.js +1 -0
  244. package/dist/ezui/p-1283b53a.entry.js +1 -0
  245. package/dist/ezui/p-133c9bac.entry.js +1 -0
  246. package/dist/ezui/p-178cb9df.entry.js +1 -0
  247. package/dist/ezui/p-1878f204.entry.js +1 -0
  248. package/dist/ezui/p-1a017dc3.entry.js +1 -0
  249. package/dist/ezui/{p-513baabe.entry.js → p-1b3151a3.entry.js} +1 -1
  250. package/dist/ezui/p-1e82a5b6.entry.js +1 -0
  251. package/dist/ezui/p-20059180.js +1 -0
  252. package/dist/ezui/{p-87d12992.entry.js → p-2b467976.entry.js} +1 -1
  253. package/dist/ezui/p-2c74a7c2.entry.js +1 -0
  254. package/dist/ezui/p-2fe3d4c5.entry.js +1 -0
  255. package/dist/ezui/p-3a3926dd.entry.js +1 -0
  256. package/dist/ezui/{p-bf5b6db2.entry.js → p-3ff798b2.entry.js} +1 -1
  257. package/dist/ezui/p-47e4a8ce.js +1 -0
  258. package/dist/ezui/p-49bc0b59.entry.js +1 -0
  259. package/dist/ezui/{p-95a521ce.entry.js → p-4f48f23a.entry.js} +1 -1
  260. package/dist/ezui/p-53ed3234.entry.js +1 -0
  261. package/dist/ezui/p-5895e687.js +1 -0
  262. package/dist/ezui/{p-f90e8299.js → p-58ce160e.js} +1 -1
  263. package/dist/ezui/{p-b663ec25.entry.js → p-5a1abe6a.entry.js} +1 -1
  264. package/dist/ezui/p-5af2fb3b.entry.js +1 -0
  265. package/dist/ezui/{p-8a74deab.entry.js → p-62f331fe.entry.js} +1 -1
  266. package/dist/ezui/p-63409a57.entry.js +1 -0
  267. package/dist/ezui/p-6369a0cd.entry.js +1 -0
  268. package/dist/ezui/p-638a30d0.js +1 -0
  269. package/dist/ezui/{p-27fd20cf.entry.js → p-65215a4f.entry.js} +1 -1
  270. package/dist/ezui/p-65b9fe4c.entry.js +1 -0
  271. package/dist/ezui/{p-f949bb8b.entry.js → p-68107165.entry.js} +1 -1
  272. package/dist/ezui/{p-f14b1400.entry.js → p-7a0a96fa.entry.js} +1 -1
  273. package/dist/ezui/p-7f7b4b9b.js +1 -0
  274. package/dist/ezui/p-83781530.entry.js +1 -0
  275. package/dist/ezui/p-88a115b3.js +1 -0
  276. package/dist/ezui/p-8c339d46.entry.js +1 -0
  277. package/dist/ezui/{p-8bbb3df7.entry.js → p-8d346a47.entry.js} +1 -1
  278. package/dist/ezui/{p-7ab75605.entry.js → p-8ddeb58b.entry.js} +1 -1
  279. package/dist/ezui/p-989849b8.entry.js +1 -0
  280. package/dist/ezui/{p-1cfe7c1b.entry.js → p-9bff4320.entry.js} +1 -1
  281. package/dist/ezui/{p-e2fe1b5d.entry.js → p-9c0fdc8e.entry.js} +1 -1
  282. package/dist/ezui/p-abfbbe1e.entry.js +1 -0
  283. package/dist/ezui/{p-b6bc4499.entry.js → p-af0196b7.entry.js} +1 -1
  284. package/dist/ezui/p-b29d9b0e.entry.js +1 -0
  285. package/dist/ezui/{p-4d30b703.entry.js → p-b50289bb.entry.js} +1 -1
  286. package/dist/ezui/{p-3e767a74.js → p-b50ed164.js} +1 -1
  287. package/dist/ezui/p-bcf0460e.entry.js +1 -0
  288. package/dist/ezui/{p-e50e1c80.entry.js → p-bd7c1dd6.entry.js} +1 -1
  289. package/dist/ezui/p-bf3c7f5f.entry.js +1 -0
  290. package/dist/ezui/{p-f9054bd6.entry.js → p-c086e527.entry.js} +1 -1
  291. package/dist/ezui/p-c6f28649.entry.js +309 -0
  292. package/dist/ezui/{p-efd28447.entry.js → p-ca707def.entry.js} +2 -2
  293. package/dist/ezui/{p-8ddeb513.entry.js → p-ce4d51eb.entry.js} +1 -1
  294. package/dist/ezui/p-d393677b.entry.js +1 -0
  295. package/dist/ezui/p-d6f50207.entry.js +1 -0
  296. package/dist/ezui/{p-25c1aa0a.js → p-d878fb19.js} +1 -1
  297. package/dist/ezui/p-df1cb82b.entry.js +1 -0
  298. package/dist/ezui/p-df539dd1.entry.js +1 -0
  299. package/dist/ezui/p-df6173c8.entry.js +1 -0
  300. package/dist/ezui/{p-30425ea2.entry.js → p-e11574fb.entry.js} +1 -1
  301. package/dist/ezui/p-e25a7874.entry.js +1 -0
  302. package/dist/ezui/{p-fa5cc755.entry.js → p-e2defb84.entry.js} +1 -1
  303. package/dist/ezui/{p-abe0dd62.entry.js → p-e95d93ba.entry.js} +1 -1
  304. package/dist/ezui/p-ea184272.entry.js +1 -0
  305. package/dist/ezui/{p-fa6732f2.entry.js → p-efea2c79.entry.js} +1 -1
  306. package/dist/ezui/p-f60a6b1f.js +1 -0
  307. package/dist/ezui/{p-ce269c9c.entry.js → p-ff79e5c2.entry.js} +1 -1
  308. package/dist/types/components/ez-classic-combo-box/ez-classic-combo-box.d.ts +11 -3
  309. package/dist/types/components/ez-classic-date-input/ez-classic-date-input.d.ts +91 -0
  310. package/dist/types/components/ez-classic-date-time-input/ez-classic-date-time-input.d.ts +95 -0
  311. package/dist/types/components/ez-classic-input/ez-classic-input.d.ts +24 -1
  312. package/dist/types/components/ez-classic-number-input/ez-classic-number-input.d.ts +101 -0
  313. package/dist/types/components/ez-classic-search/ez-classic-search.d.ts +219 -0
  314. package/dist/types/components/ez-classic-search/subcomponent/classic-search-list/classic-search-list.d.ts +29 -0
  315. package/dist/types/components/ez-classic-search/utils/searchFormatters.d.ts +2 -0
  316. package/dist/types/components/ez-classic-search-plus/ez-classic-search-plus.d.ts +189 -0
  317. package/dist/types/components/ez-classic-search-plus/subcomponent/ez-search-result-list/ez-classic-search-result-list.d.ts +29 -0
  318. package/dist/types/components/ez-classic-text-area/ez-classic-text-area.d.ts +3 -0
  319. package/dist/types/components/ez-empty-card/ez-empty-card.d.ts +2 -2
  320. package/dist/types/components/ez-filter/ez-filter.d.ts +207 -0
  321. package/dist/types/components/ez-filter/interfaces/IFilterChange.d.ts +13 -0
  322. package/dist/types/components/ez-filter/interfaces/IFilterCustomField.d.ts +34 -0
  323. package/dist/types/components/ez-filter/interfaces/index.d.ts +2 -0
  324. package/dist/types/components/ez-form/ez-form.d.ts +6 -0
  325. package/dist/types/components/ez-form-view/ez-form-view.d.ts +11 -0
  326. package/dist/types/components/ez-form-view/fieldbuilder/FieldBuilder.d.ts +9 -0
  327. package/dist/types/components/ez-form-view/fieldbuilder/templates/CheckBox.tpl.d.ts +3 -2
  328. package/dist/types/components/ez-form-view/fieldbuilder/templates/ComboBox.tpl.d.ts +2 -1
  329. package/dist/types/components/ez-form-view/fieldbuilder/templates/DateInput.tpl.d.ts +5 -4
  330. package/dist/types/components/ez-form-view/fieldbuilder/templates/FileInput.tpl.d.ts +2 -1
  331. package/dist/types/components/ez-form-view/fieldbuilder/templates/ImageInput.tpl.d.ts +2 -0
  332. package/dist/types/components/ez-form-view/fieldbuilder/templates/NumberInput.tpl.d.ts +3 -2
  333. package/dist/types/components/ez-form-view/fieldbuilder/templates/RichText.tpl.d.ts +2 -1
  334. package/dist/types/components/ez-form-view/fieldbuilder/templates/SearchInput.tpl.d.ts +2 -1
  335. package/dist/types/components/ez-form-view/fieldbuilder/templates/SearchInputPlus.tpl.d.ts +2 -1
  336. package/dist/types/components/ez-form-view/fieldbuilder/templates/TextArea.tpl.d.ts +2 -1
  337. package/dist/types/components/ez-form-view/fieldbuilder/templates/TextInput.tpl.d.ts +2 -1
  338. package/dist/types/components/ez-grid/controller/EzGridController.d.ts +2 -0
  339. package/dist/types/components/ez-grid/controller/ag-grid/AgGridController.d.ts +14 -0
  340. package/dist/types/components/ez-grid/controller/ag-grid/gridColumnDefaultWidths.d.ts +4 -0
  341. package/dist/types/components/ez-grid/controller/ag-grid/utils/AggFunctionResolver.d.ts +2 -0
  342. package/dist/types/components/ez-grid/ez-grid.d.ts +10 -27
  343. package/dist/types/components/ez-grid/interfaces/IAggegationFunc.d.ts +3 -0
  344. package/dist/types/components/ez-grid/utils/index.d.ts +1 -0
  345. package/dist/types/components/ez-grid-pagination/ez-grid-pagination.d.ts +91 -0
  346. package/dist/types/components/ez-grid-pagination/ez-grid-pagination.model.d.ts +7 -0
  347. package/dist/types/components/ez-image-input/ez-image-input.d.ts +43 -0
  348. package/dist/types/components/ez-popover/ez-popover.d.ts +9 -0
  349. package/dist/types/components/ez-record-navigation/ez-record-navigation.d.ts +43 -0
  350. package/dist/types/components/ez-scroller/EzScrollNavigationMode.d.ts +4 -0
  351. package/dist/types/components/ez-scroller/ez-scroller.d.ts +16 -2
  352. package/dist/types/components/ez-search/ez-search.d.ts +12 -1
  353. package/dist/types/components/ez-search-plus/ez-search-plus.d.ts +1 -0
  354. package/dist/types/components/ez-split-button/ez-split-button.d.ts +1 -2
  355. package/dist/types/components/ez-split-panel/ez-split-panel.d.ts +4 -0
  356. package/dist/types/components/ez-split-panel/structure/item/ez-split-item.d.ts +4 -0
  357. package/dist/types/components/ez-tabselector/ez-tabselector.d.ts +42 -20
  358. package/dist/types/components/ez-text-input/ez-text-input.d.ts +4 -0
  359. package/dist/types/components.d.ts +3747 -2031
  360. package/dist/types/utils/form/FormMetadata.d.ts +2 -1
  361. package/dist/types/utils/form/interfaces/FormLayout.d.ts +3 -1
  362. package/dist/types/utils/form/interfaces/IFormSheetMetadata.d.ts +3 -0
  363. package/dist/types/utils/form/interfaces/ITabConfig.d.ts +3 -0
  364. package/dist/types/utils/i18n/locales/en-us.d.ts +59 -3
  365. package/dist/types/utils/i18n/locales/es-es.d.ts +59 -3
  366. package/dist/types/utils/i18n/locales/pt-br.d.ts +59 -3
  367. package/dist/types/utils/i18n/translations.d.ts +177 -9
  368. package/package.json +5 -5
  369. package/react/components.d.ts +12 -0
  370. package/react/components.js +12 -0
  371. package/react/components.js.map +1 -1
  372. package/dist/cjs/ApplicationUtils-999d2366.js.gz +0 -0
  373. package/dist/cjs/CSSVarsUtils-f20973d1.js.gz +0 -0
  374. package/dist/cjs/CheckMode-ecb90b87.js.gz +0 -0
  375. package/dist/cjs/DialogType-2114c337.js.gz +0 -0
  376. package/dist/cjs/EzScrollDirection-b2c99895.js.gz +0 -0
  377. package/dist/cjs/FocusResolver-885f2173.js.gz +0 -0
  378. package/dist/cjs/FormLayout-18853e70.js.gz +0 -0
  379. package/dist/cjs/RichToolbarHelper-ea12328f.js.gz +0 -0
  380. package/dist/cjs/_commonjsHelpers-537d719a.js.gz +0 -0
  381. package/dist/cjs/app-globals-1fea23aa.js.gz +0 -0
  382. package/dist/cjs/constants-72b7e05e.js.gz +0 -0
  383. package/dist/cjs/ez-actions-button.cjs.entry.js.gz +0 -0
  384. package/dist/cjs/ez-alert-list.cjs.entry.js.gz +0 -0
  385. package/dist/cjs/ez-alert.cjs.entry.js.gz +0 -0
  386. package/dist/cjs/ez-application.cjs.entry.js.gz +0 -0
  387. package/dist/cjs/ez-avatar.cjs.entry.js.gz +0 -0
  388. package/dist/cjs/ez-badge.cjs.entry.js.gz +0 -0
  389. package/dist/cjs/ez-breadcrumb.cjs.entry.js.gz +0 -0
  390. package/dist/cjs/ez-button.cjs.entry.js.gz +0 -0
  391. package/dist/cjs/ez-calendar.cjs.entry.js.gz +0 -0
  392. package/dist/cjs/ez-card-item_5.cjs.entry.js.gz +0 -0
  393. package/dist/cjs/ez-chart.cjs.entry.js.gz +0 -0
  394. package/dist/cjs/ez-check.cjs.entry.js.gz +0 -0
  395. package/dist/cjs/ez-chip.cjs.entry.js.gz +0 -0
  396. package/dist/cjs/ez-classic-combo-box.cjs.entry.js.gz +0 -0
  397. package/dist/cjs/ez-classic-input.cjs.entry.js.gz +0 -0
  398. package/dist/cjs/ez-classic-text-area.cjs.entry.js.gz +0 -0
  399. package/dist/cjs/ez-collapsible-box.cjs.entry.js.gz +0 -0
  400. package/dist/cjs/ez-combo-box-list_5.cjs.entry.js +0 -866
  401. package/dist/cjs/ez-combo-box-list_5.cjs.entry.js.gz +0 -0
  402. package/dist/cjs/ez-combo-box.cjs.entry.js.gz +0 -0
  403. package/dist/cjs/ez-date-input.cjs.entry.js.gz +0 -0
  404. package/dist/cjs/ez-date-time-input.cjs.entry.js.gz +0 -0
  405. package/dist/cjs/ez-dialog.cjs.entry.js.gz +0 -0
  406. package/dist/cjs/ez-double-list.cjs.entry.js.gz +0 -0
  407. package/dist/cjs/ez-dropdown.cjs.entry.js.gz +0 -0
  408. package/dist/cjs/ez-empty-card.cjs.entry.js.gz +0 -0
  409. package/dist/cjs/ez-file-item.cjs.entry.js.gz +0 -0
  410. package/dist/cjs/ez-filter-input.cjs.entry.js.gz +0 -0
  411. package/dist/cjs/ez-form-view.cjs.entry.js.gz +0 -0
  412. package/dist/cjs/ez-form.cjs.entry.js.gz +0 -0
  413. package/dist/cjs/ez-grid-view.cjs.entry.js.gz +0 -0
  414. package/dist/cjs/ez-grid.cjs.entry.js.gz +0 -0
  415. package/dist/cjs/ez-guide-navigator.cjs.entry.js.gz +0 -0
  416. package/dist/cjs/ez-icon.cjs.entry.js.gz +0 -0
  417. package/dist/cjs/ez-link-builder_6.cjs.entry.js +0 -315
  418. package/dist/cjs/ez-link-builder_6.cjs.entry.js.gz +0 -0
  419. package/dist/cjs/ez-list-item.cjs.entry.js.gz +0 -0
  420. package/dist/cjs/ez-list.cjs.entry.js.gz +0 -0
  421. package/dist/cjs/ez-loading-bar.cjs.entry.js.gz +0 -0
  422. package/dist/cjs/ez-modal-container.cjs.entry.js.gz +0 -0
  423. package/dist/cjs/ez-modal.cjs.entry.js.gz +0 -0
  424. package/dist/cjs/ez-number-input.cjs.entry.js.gz +0 -0
  425. package/dist/cjs/ez-pagination.cjs.entry.js.gz +0 -0
  426. package/dist/cjs/ez-popover-core.cjs.entry.js +0 -227
  427. package/dist/cjs/ez-popover-core.cjs.entry.js.gz +0 -0
  428. package/dist/cjs/ez-popover.cjs.entry.js.gz +0 -0
  429. package/dist/cjs/ez-popup.cjs.entry.js.gz +0 -0
  430. package/dist/cjs/ez-progress-bar.cjs.entry.js.gz +0 -0
  431. package/dist/cjs/ez-radio-button.cjs.entry.js.gz +0 -0
  432. package/dist/cjs/ez-rich-toolbar-item.cjs.entry.js.gz +0 -0
  433. package/dist/cjs/ez-scroller_2.cjs.entry.js.gz +0 -0
  434. package/dist/cjs/ez-search-plus.cjs.entry.js.gz +0 -0
  435. package/dist/cjs/ez-search-result-list.cjs.entry.js.gz +0 -0
  436. package/dist/cjs/ez-search.cjs.entry.js.gz +0 -0
  437. package/dist/cjs/ez-sidebar-navigator.cjs.entry.js.gz +0 -0
  438. package/dist/cjs/ez-skeleton.cjs.entry.js.gz +0 -0
  439. package/dist/cjs/ez-sortable-list.cjs.entry.js.gz +0 -0
  440. package/dist/cjs/ez-spinner.cjs.entry.js.gz +0 -0
  441. package/dist/cjs/ez-split-button.cjs.entry.js.gz +0 -0
  442. package/dist/cjs/ez-split-item.cjs.entry.js.gz +0 -0
  443. package/dist/cjs/ez-split-panel.cjs.entry.js.gz +0 -0
  444. package/dist/cjs/ez-tabselector.cjs.entry.js.gz +0 -0
  445. package/dist/cjs/ez-tag-input.cjs.entry.js.gz +0 -0
  446. package/dist/cjs/ez-tag.cjs.entry.js.gz +0 -0
  447. package/dist/cjs/ez-text-area.cjs.entry.js.gz +0 -0
  448. package/dist/cjs/ez-text-input.cjs.entry.js.gz +0 -0
  449. package/dist/cjs/ez-tile-medium.cjs.entry.js.gz +0 -0
  450. package/dist/cjs/ez-tile.cjs.entry.js.gz +0 -0
  451. package/dist/cjs/ez-time-input.cjs.entry.js.gz +0 -0
  452. package/dist/cjs/ez-toast.cjs.entry.js.gz +0 -0
  453. package/dist/cjs/ez-tooltip.cjs.entry.js.gz +0 -0
  454. package/dist/cjs/ez-tree.cjs.entry.js.gz +0 -0
  455. package/dist/cjs/ez-underface.cjs.entry.js.gz +0 -0
  456. package/dist/cjs/ez-upload.cjs.entry.js.gz +0 -0
  457. package/dist/cjs/ez-view-stack.cjs.entry.js.gz +0 -0
  458. package/dist/cjs/ezListHelper-0d3970b4.js.gz +0 -0
  459. package/dist/cjs/ezui.cjs.js.gz +0 -0
  460. package/dist/cjs/filter-column.cjs.entry.js.gz +0 -0
  461. package/dist/cjs/floating-ui.dom.esm-4a0428c0.js.gz +0 -0
  462. package/dist/cjs/index-637af219.js.gz +0 -0
  463. package/dist/cjs/index-a7b0c73d.js.gz +0 -0
  464. package/dist/cjs/index.cjs.js.gz +0 -0
  465. package/dist/cjs/loader.cjs.js.gz +0 -0
  466. package/dist/cjs/purify-ef86f048.js.gz +0 -0
  467. package/dist/cjs/search-column-254df8ea.js.gz +0 -0
  468. package/dist/cjs/searchFormatters-b7e1ed1e.js.gz +0 -0
  469. package/dist/collection/components/ez-actions-button/ez-actions-button.css.gz +0 -0
  470. package/dist/collection/components/ez-actions-button/ez-actions-button.js.gz +0 -0
  471. package/dist/collection/components/ez-alert/ez-alert.css.gz +0 -0
  472. package/dist/collection/components/ez-alert/ez-alert.js.gz +0 -0
  473. package/dist/collection/components/ez-alert-list/ez-alert-list.css.gz +0 -0
  474. package/dist/collection/components/ez-alert-list/ez-alert-list.js.gz +0 -0
  475. package/dist/collection/components/ez-application/ez-application.css.gz +0 -0
  476. package/dist/collection/components/ez-application/ez-application.js.gz +0 -0
  477. package/dist/collection/components/ez-avatar/ez-avatar.css.gz +0 -0
  478. package/dist/collection/components/ez-avatar/ez-avatar.js.gz +0 -0
  479. package/dist/collection/components/ez-badge/enum/sizes.js.gz +0 -0
  480. package/dist/collection/components/ez-badge/ez-badge.css.gz +0 -0
  481. package/dist/collection/components/ez-badge/ez-badge.js.gz +0 -0
  482. package/dist/collection/components/ez-badge/interfaces/IPosition.js.gz +0 -0
  483. package/dist/collection/components/ez-breadcrumb/ez-breadcrumb.css.gz +0 -0
  484. package/dist/collection/components/ez-breadcrumb/ez-breadcrumb.js.gz +0 -0
  485. package/dist/collection/components/ez-breadcrumb/subcomponents/breadcrumb-item.js.gz +0 -0
  486. package/dist/collection/components/ez-button/ez-button.css.gz +0 -0
  487. package/dist/collection/components/ez-button/ez-button.js.gz +0 -0
  488. package/dist/collection/components/ez-calendar/ez-calendar.css.gz +0 -0
  489. package/dist/collection/components/ez-calendar/ez-calendar.js.gz +0 -0
  490. package/dist/collection/components/ez-card-item/ez-card-item.css.gz +0 -0
  491. package/dist/collection/components/ez-card-item/ez-card-item.js.gz +0 -0
  492. package/dist/collection/components/ez-chart/components/BarChart.js.gz +0 -0
  493. package/dist/collection/components/ez-chart/components/ColumnChart.js.gz +0 -0
  494. package/dist/collection/components/ez-chart/components/DonutChart.js.gz +0 -0
  495. package/dist/collection/components/ez-chart/components/LineChart.js.gz +0 -0
  496. package/dist/collection/components/ez-chart/components/PieChart.js.gz +0 -0
  497. package/dist/collection/components/ez-chart/components/index.js.gz +0 -0
  498. package/dist/collection/components/ez-chart/ez-chart.css.gz +0 -0
  499. package/dist/collection/components/ez-chart/ez-chart.js.gz +0 -0
  500. package/dist/collection/components/ez-chart/interfaces/ChartAxis.js.gz +0 -0
  501. package/dist/collection/components/ez-chart/interfaces/ChartContext.js.gz +0 -0
  502. package/dist/collection/components/ez-chart/interfaces/ChartOptions.js.gz +0 -0
  503. package/dist/collection/components/ez-chart/interfaces/ChartSerie.js.gz +0 -0
  504. package/dist/collection/components/ez-chart/interfaces/ChartStrategies.js.gz +0 -0
  505. package/dist/collection/components/ez-chart/interfaces/ChartType.js.gz +0 -0
  506. package/dist/collection/components/ez-chart/interfaces/ChartTypeValue.js.gz +0 -0
  507. package/dist/collection/components/ez-chart/interfaces/index.js.gz +0 -0
  508. package/dist/collection/components/ez-chart/test/mock-chart.js.gz +0 -0
  509. package/dist/collection/components/ez-chart/types/BaseHighChartsRender.js.gz +0 -0
  510. package/dist/collection/components/ez-check/CheckMode.js.gz +0 -0
  511. package/dist/collection/components/ez-check/ez-check.css.gz +0 -0
  512. package/dist/collection/components/ez-check/ez-check.js.gz +0 -0
  513. package/dist/collection/components/ez-chip/ez-chip.css.gz +0 -0
  514. package/dist/collection/components/ez-chip/ez-chip.js.gz +0 -0
  515. package/dist/collection/components/ez-classic-combo-box/ez-classic-combo-box.css.gz +0 -0
  516. package/dist/collection/components/ez-classic-combo-box/ez-classic-combo-box.js.gz +0 -0
  517. package/dist/collection/components/ez-classic-combo-box/interfaces/IOption.js.gz +0 -0
  518. package/dist/collection/components/ez-classic-input/ez-classic-input.css.gz +0 -0
  519. package/dist/collection/components/ez-classic-input/ez-classic-input.js.gz +0 -0
  520. package/dist/collection/components/ez-classic-input/interfaces/optionsSetFocus.js.gz +0 -0
  521. package/dist/collection/components/ez-classic-input/utils/maskFormatter.js.gz +0 -0
  522. package/dist/collection/components/ez-classic-text-area/ez-classic-text-area.css.gz +0 -0
  523. package/dist/collection/components/ez-classic-text-area/ez-classic-text-area.js.gz +0 -0
  524. package/dist/collection/components/ez-classic-text-area/interfaces/optionsSetFocus.js.gz +0 -0
  525. package/dist/collection/components/ez-collapsible-box/ez-collapsible-box.css.gz +0 -0
  526. package/dist/collection/components/ez-collapsible-box/ez-collapsible-box.js.gz +0 -0
  527. package/dist/collection/components/ez-combo-box/ez-combo-box-list/ez-combo-box-list.css.gz +0 -0
  528. package/dist/collection/components/ez-combo-box/ez-combo-box-list/ez-combo-box-list.js.gz +0 -0
  529. package/dist/collection/components/ez-combo-box/ez-combo-box.css.gz +0 -0
  530. package/dist/collection/components/ez-combo-box/ez-combo-box.js.gz +0 -0
  531. package/dist/collection/components/ez-date-input/ez-date-input.css.gz +0 -0
  532. package/dist/collection/components/ez-date-input/ez-date-input.js.gz +0 -0
  533. package/dist/collection/components/ez-date-time-input/ez-date-time-input.css.gz +0 -0
  534. package/dist/collection/components/ez-date-time-input/ez-date-time-input.js.gz +0 -0
  535. package/dist/collection/components/ez-dialog/DialogType.js.gz +0 -0
  536. package/dist/collection/components/ez-dialog/ez-dialog.css.gz +0 -0
  537. package/dist/collection/components/ez-dialog/ez-dialog.js.gz +0 -0
  538. package/dist/collection/components/ez-double-list/doubleListHelper.js.gz +0 -0
  539. package/dist/collection/components/ez-double-list/ez-double-list.css.gz +0 -0
  540. package/dist/collection/components/ez-double-list/ez-double-list.js.gz +0 -0
  541. package/dist/collection/components/ez-dropdown/ez-dropdown.css.gz +0 -0
  542. package/dist/collection/components/ez-dropdown/ez-dropdown.js.gz +0 -0
  543. package/dist/collection/components/ez-dropdown/structure/DropdownItem.js.gz +0 -0
  544. package/dist/collection/components/ez-dropdown/structure/SubmenuControl.js.gz +0 -0
  545. package/dist/collection/components/ez-empty-card/ez-empty-card.css.gz +0 -0
  546. package/dist/collection/components/ez-empty-card/ez-empty-card.js.gz +0 -0
  547. package/dist/collection/components/ez-file-item/ez-file-item.css.gz +0 -0
  548. package/dist/collection/components/ez-file-item/ez-file-item.js.gz +0 -0
  549. package/dist/collection/components/ez-filter-input/ez-filter-input.css.gz +0 -0
  550. package/dist/collection/components/ez-filter-input/ez-filter-input.js.gz +0 -0
  551. package/dist/collection/components/ez-form/ez-form.css.gz +0 -0
  552. package/dist/collection/components/ez-form/ez-form.js.gz +0 -0
  553. package/dist/collection/components/ez-form/store/form.slice.js.gz +0 -0
  554. package/dist/collection/components/ez-form-view/custom-input/ez-custom-form-input.js.gz +0 -0
  555. package/dist/collection/components/ez-form-view/ez-form-view.css.gz +0 -0
  556. package/dist/collection/components/ez-form-view/ez-form-view.js.gz +0 -0
  557. package/dist/collection/components/ez-form-view/fieldbuilder/FieldBuilder.js.gz +0 -0
  558. package/dist/collection/components/ez-form-view/fieldbuilder/templates/CheckBox.tpl.js.gz +0 -0
  559. package/dist/collection/components/ez-form-view/fieldbuilder/templates/ComboBox.tpl.js.gz +0 -0
  560. package/dist/collection/components/ez-form-view/fieldbuilder/templates/DateInput.tpl.js.gz +0 -0
  561. package/dist/collection/components/ez-form-view/fieldbuilder/templates/FileInput.tpl.js.gz +0 -0
  562. package/dist/collection/components/ez-form-view/fieldbuilder/templates/MultiSelectInput.tpl.js.gz +0 -0
  563. package/dist/collection/components/ez-form-view/fieldbuilder/templates/NumberInput.tpl.js.gz +0 -0
  564. package/dist/collection/components/ez-form-view/fieldbuilder/templates/RichText.tpl.js.gz +0 -0
  565. package/dist/collection/components/ez-form-view/fieldbuilder/templates/SearchInput.tpl.js.gz +0 -0
  566. package/dist/collection/components/ez-form-view/fieldbuilder/templates/SearchInputPlus.tpl.js.gz +0 -0
  567. package/dist/collection/components/ez-form-view/fieldbuilder/templates/TextArea.tpl.js.gz +0 -0
  568. package/dist/collection/components/ez-form-view/fieldbuilder/templates/TextInput.tpl.js.gz +0 -0
  569. package/dist/collection/components/ez-form-view/interfaces/IFormViewField.js.gz +0 -0
  570. package/dist/collection/components/ez-form-view/interfaces/index.js.gz +0 -0
  571. package/dist/collection/components/ez-form-view/structure/index.js.gz +0 -0
  572. package/dist/collection/components/ez-grid/controller/EzGridController.js.gz +0 -0
  573. package/dist/collection/components/ez-grid/controller/ag-grid/AgGridController.js.gz +0 -0
  574. package/dist/collection/components/ez-grid/controller/ag-grid/DataSource.js.gz +0 -0
  575. package/dist/collection/components/ez-grid/controller/ag-grid/DataSourceInterceptor.js.gz +0 -0
  576. package/dist/collection/components/ez-grid/controller/ag-grid/GridEditionManager.js.gz +0 -0
  577. package/dist/collection/components/ez-grid/controller/ag-grid/components/EzGridCustomCellEditor.js.gz +0 -0
  578. package/dist/collection/components/ez-grid/controller/ag-grid/components/EzGridCustomCellRender.js.gz +0 -0
  579. package/dist/collection/components/ez-grid/controller/ag-grid/components/EzGridCustomHeader.js.gz +0 -0
  580. package/dist/collection/components/ez-grid/controller/ag-grid/components/cellRendererStatus.js.gz +0 -0
  581. package/dist/collection/components/ez-grid/controller/ag-grid/components/selectionHeader.js.gz +0 -0
  582. package/dist/collection/components/ez-grid/controller/ag-grid/components/test/constants/EzGridCustomCellEditorConstants.js.gz +0 -0
  583. package/dist/collection/components/ez-grid/controller/ag-grid/components/test/constants/EzGridCustomCellRenderConstants.js.gz +0 -0
  584. package/dist/collection/components/ez-grid/controller/ag-grid/editor/EzCellEditor.js.gz +0 -0
  585. package/dist/collection/components/ez-grid/controller/ag-grid/editor/EzCellRender.js.gz +0 -0
  586. package/dist/collection/components/ez-grid/controller/ag-grid/editor/GridEditorUtils.js.gz +0 -0
  587. package/dist/collection/components/ez-grid/controller/ag-grid/editor/IEditorMetadata.js.gz +0 -0
  588. package/dist/collection/components/ez-grid/controller/ag-grid/editor/IUICellEditor.js.gz +0 -0
  589. package/dist/collection/components/ez-grid/controller/ag-grid/editor/IUICellRender.js.gz +0 -0
  590. package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/ComboBox.tpl.js.gz +0 -0
  591. package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/DateInput.tpl.js.gz +0 -0
  592. package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/NumberInput.tpl.js.gz +0 -0
  593. package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/Search.tpl.js.gz +0 -0
  594. package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/SearchPlus.tpl.js.gz +0 -0
  595. package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/TextInput.tpl.js.gz +0 -0
  596. package/dist/collection/components/ez-grid/controller/ag-grid/mock/Server.js.gz +0 -0
  597. package/dist/collection/components/ez-grid/controller/ag-grid/test/constants/GridEditionMock.js.gz +0 -0
  598. package/dist/collection/components/ez-grid/controller/ag-grid/utils/buildLocaleText.js.gz +0 -0
  599. package/dist/collection/components/ez-grid/ez-grid.css.gz +0 -0
  600. package/dist/collection/components/ez-grid/ez-grid.js.gz +0 -0
  601. package/dist/collection/components/ez-grid/interfaces/IColumnFilter.js.gz +0 -0
  602. package/dist/collection/components/ez-grid/interfaces/ICustomFormatter.js.gz +0 -0
  603. package/dist/collection/components/ez-grid/interfaces/IGridMode.js.gz +0 -0
  604. package/dist/collection/components/ez-grid/interfaces/ISelection.js.gz +0 -0
  605. package/dist/collection/components/ez-grid/interfaces/ISelectionToastConfig.js.gz +0 -0
  606. package/dist/collection/components/ez-grid/interfaces/index.js.gz +0 -0
  607. package/dist/collection/components/ez-grid/subcomponents/filter-column.css.gz +0 -0
  608. package/dist/collection/components/ez-grid/subcomponents/filter-column.js.gz +0 -0
  609. package/dist/collection/components/ez-grid/subcomponents/selection-counter.js.gz +0 -0
  610. package/dist/collection/components/ez-grid/subcomponents/utils/selectionCounterUtils.js.gz +0 -0
  611. package/dist/collection/components/ez-grid/test/resources/gridDataUnit.js.gz +0 -0
  612. package/dist/collection/components/ez-grid/utils/ColumnFilterManager.js.gz +0 -0
  613. package/dist/collection/components/ez-grid/utils/InMemoryFilterColumnDataSource.js.gz +0 -0
  614. package/dist/collection/components/ez-grid/utils/index.js.gz +0 -0
  615. package/dist/collection/components/ez-grid-view/ez-grid-view.css.gz +0 -0
  616. package/dist/collection/components/ez-grid-view/ez-grid-view.js.gz +0 -0
  617. package/dist/collection/components/ez-guide-navigator/ez-guide-navigator.css.gz +0 -0
  618. package/dist/collection/components/ez-guide-navigator/ez-guide-navigator.js.gz +0 -0
  619. package/dist/collection/components/ez-guide-navigator/interfaces/IGuideItem.js.gz +0 -0
  620. package/dist/collection/components/ez-guide-navigator/interfaces/index.js.gz +0 -0
  621. package/dist/collection/components/ez-icon/ez-icon.css.gz +0 -0
  622. package/dist/collection/components/ez-icon/ez-icon.js.gz +0 -0
  623. package/dist/collection/components/ez-list/ez-list.css.gz +0 -0
  624. package/dist/collection/components/ez-list/ez-list.js.gz +0 -0
  625. package/dist/collection/components/ez-list/ezListHelper.js.gz +0 -0
  626. package/dist/collection/components/ez-list-item/ez-list-item.css.gz +0 -0
  627. package/dist/collection/components/ez-list-item/ez-list-item.js.gz +0 -0
  628. package/dist/collection/components/ez-loading-bar/ez-loading-bar.css.gz +0 -0
  629. package/dist/collection/components/ez-loading-bar/ez-loading-bar.js.gz +0 -0
  630. package/dist/collection/components/ez-modal/ez-modal.css.gz +0 -0
  631. package/dist/collection/components/ez-modal/ez-modal.js.gz +0 -0
  632. package/dist/collection/components/ez-modal-container/ez-modal-container.css.gz +0 -0
  633. package/dist/collection/components/ez-modal-container/ez-modal-container.js.gz +0 -0
  634. package/dist/collection/components/ez-modal-container/index.js.gz +0 -0
  635. package/dist/collection/components/ez-modal-container/modal-action.js.gz +0 -0
  636. package/dist/collection/components/ez-modal-container/modal-button-status.js.gz +0 -0
  637. package/dist/collection/components/ez-multi-select-input/ez-multi-select-input.css.gz +0 -0
  638. package/dist/collection/components/ez-multi-select-input/ez-multi-select-input.js.gz +0 -0
  639. package/dist/collection/components/ez-multi-selection-list/ez-multi-selection-list.css.gz +0 -0
  640. package/dist/collection/components/ez-multi-selection-list/ez-multi-selection-list.js.gz +0 -0
  641. package/dist/collection/components/ez-multi-selection-list/interfaces/IMultiSelectionListDataSource.js.gz +0 -0
  642. package/dist/collection/components/ez-multi-selection-list/interfaces/IMultiSelectionOption.js.gz +0 -0
  643. package/dist/collection/components/ez-multi-selection-list/interfaces/IStaticOptionsFetchConfig.js.gz +0 -0
  644. package/dist/collection/components/ez-multi-selection-list/subcomponents/multi-selection-box-message.css.gz +0 -0
  645. package/dist/collection/components/ez-multi-selection-list/subcomponents/multi-selection-box-message.js.gz +0 -0
  646. package/dist/collection/components/ez-number-input/ez-number-input.css.gz +0 -0
  647. package/dist/collection/components/ez-number-input/ez-number-input.js.gz +0 -0
  648. package/dist/collection/components/ez-pagination/ez-pagination.css.gz +0 -0
  649. package/dist/collection/components/ez-pagination/ez-pagination.js.gz +0 -0
  650. package/dist/collection/components/ez-popover/ez-popover.css.gz +0 -0
  651. package/dist/collection/components/ez-popover/ez-popover.js.gz +0 -0
  652. package/dist/collection/components/ez-popover-plus/ez-popover-plus.css.gz +0 -0
  653. package/dist/collection/components/ez-popover-plus/ez-popover-plus.js.gz +0 -0
  654. package/dist/collection/components/ez-popover-plus/subcomponent/ez-popover-core.css.gz +0 -0
  655. package/dist/collection/components/ez-popover-plus/subcomponent/ez-popover-core.js.gz +0 -0
  656. package/dist/collection/components/ez-popup/ez-popup.css.gz +0 -0
  657. package/dist/collection/components/ez-popup/ez-popup.js.gz +0 -0
  658. package/dist/collection/components/ez-popup/interfaces/EzButtonProps.js.gz +0 -0
  659. package/dist/collection/components/ez-progress-bar/ez-progress-bar.css.gz +0 -0
  660. package/dist/collection/components/ez-progress-bar/ez-progress-bar.js.gz +0 -0
  661. package/dist/collection/components/ez-radio-button/ez-radio-button.css.gz +0 -0
  662. package/dist/collection/components/ez-radio-button/ez-radio-button.js.gz +0 -0
  663. package/dist/collection/components/ez-rich-text/ez-link-builder/ez-link-builder.css.gz +0 -0
  664. package/dist/collection/components/ez-rich-text/ez-link-builder/ez-link-builder.js.gz +0 -0
  665. package/dist/collection/components/ez-rich-text/ez-rich-text.css.gz +0 -0
  666. package/dist/collection/components/ez-rich-text/ez-rich-text.js.gz +0 -0
  667. package/dist/collection/components/ez-rich-text/ez-rich-toolbar/RichToolbarHelper.js.gz +0 -0
  668. package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-arrows/ez-rich-toolbar-arrows.css.gz +0 -0
  669. package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-arrows/ez-rich-toolbar-arrows.js.gz +0 -0
  670. package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-configs/ez-rich-toolbar-configs.css.gz +0 -0
  671. package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-configs/ez-rich-toolbar-configs.js.gz +0 -0
  672. package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-item/ez-rich-toolbar-item.css.gz +0 -0
  673. package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-item/ez-rich-toolbar-item.js.gz +0 -0
  674. package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-letters/ez-rich-toolbar-letters.css.gz +0 -0
  675. package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-letters/ez-rich-toolbar-letters.js.gz +0 -0
  676. package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar.css.gz +0 -0
  677. package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar.js.gz +0 -0
  678. package/dist/collection/components/ez-rich-text/ez-simple-image-uploader/ez-simple-image-uploader.css.gz +0 -0
  679. package/dist/collection/components/ez-rich-text/ez-simple-image-uploader/ez-simple-image-uploader.js.gz +0 -0
  680. package/dist/collection/components/ez-rich-text/ez-simple-image-uploader/test/resource/imageBase64.js.gz +0 -0
  681. package/dist/collection/components/ez-rich-text/ez-simple-image-uploader/utils/fileToBase64.js.gz +0 -0
  682. package/dist/collection/components/ez-rich-text/ez-simple-image-uploader/utils/formatBytes.js.gz +0 -0
  683. package/dist/collection/components/ez-scroller/EzScrollDirection.js.gz +0 -0
  684. package/dist/collection/components/ez-scroller/ez-scroller.css.gz +0 -0
  685. package/dist/collection/components/ez-scroller/ez-scroller.js.gz +0 -0
  686. package/dist/collection/components/ez-search/ez-search.css.gz +0 -0
  687. package/dist/collection/components/ez-search/ez-search.js.gz +0 -0
  688. package/dist/collection/components/ez-search/subcomponent/search-list/search-list.css.gz +0 -0
  689. package/dist/collection/components/ez-search/subcomponent/search-list/search-list.js.gz +0 -0
  690. package/dist/collection/components/ez-search/utils/searchFormatters.js.gz +0 -0
  691. package/dist/collection/components/ez-search-plus/ez-search-plus.css.gz +0 -0
  692. package/dist/collection/components/ez-search-plus/ez-search-plus.js.gz +0 -0
  693. package/dist/collection/components/ez-search-plus/subcomponent/ez-search-result-list/ez-search-result-list.css.gz +0 -0
  694. package/dist/collection/components/ez-search-plus/subcomponent/ez-search-result-list/ez-search-result-list.js.gz +0 -0
  695. package/dist/collection/components/ez-sidebar-button/ez-sidebar-button.css.gz +0 -0
  696. package/dist/collection/components/ez-sidebar-button/ez-sidebar-button.js.gz +0 -0
  697. package/dist/collection/components/ez-sidebar-navigator/ez-sidebar-navigator.css.gz +0 -0
  698. package/dist/collection/components/ez-sidebar-navigator/ez-sidebar-navigator.js.gz +0 -0
  699. package/dist/collection/components/ez-sidebar-navigator/interfaces/ModeMenuEnum.js.gz +0 -0
  700. package/dist/collection/components/ez-sidebar-navigator/interfaces/SizeMenuEnum.js.gz +0 -0
  701. package/dist/collection/components/ez-sidebar-navigator/interfaces/TypeMenuEnum.js.gz +0 -0
  702. package/dist/collection/components/ez-sidebar-navigator/interfaces/index.js.gz +0 -0
  703. package/dist/collection/components/ez-skeleton/ez-skeleton.constants.js.gz +0 -0
  704. package/dist/collection/components/ez-skeleton/ez-skeleton.css.gz +0 -0
  705. package/dist/collection/components/ez-skeleton/ez-skeleton.js.gz +0 -0
  706. package/dist/collection/components/ez-sortable-list/ez-sortable-list.css.gz +0 -0
  707. package/dist/collection/components/ez-sortable-list/ez-sortable-list.js.gz +0 -0
  708. package/dist/collection/components/ez-spinner/ez-spinner.css.gz +0 -0
  709. package/dist/collection/components/ez-spinner/ez-spinner.js.gz +0 -0
  710. package/dist/collection/components/ez-split-button/ez-split-button.css.gz +0 -0
  711. package/dist/collection/components/ez-split-button/ez-split-button.js.gz +0 -0
  712. package/dist/collection/components/ez-split-button/test/dropdownItems.js.gz +0 -0
  713. package/dist/collection/components/ez-split-panel/ez-split-panel.css.gz +0 -0
  714. package/dist/collection/components/ez-split-panel/ez-split-panel.js.gz +0 -0
  715. package/dist/collection/components/ez-split-panel/interfaces/IPanelSizeInfo.js.gz +0 -0
  716. package/dist/collection/components/ez-split-panel/structure/item/ez-split-item.css.gz +0 -0
  717. package/dist/collection/components/ez-split-panel/structure/item/ez-split-item.js.gz +0 -0
  718. package/dist/collection/components/ez-tabselector/ez-tabselector.css.gz +0 -0
  719. package/dist/collection/components/ez-tabselector/ez-tabselector.js.gz +0 -0
  720. package/dist/collection/components/ez-tag/ez-tag.css.gz +0 -0
  721. package/dist/collection/components/ez-tag/ez-tag.js.gz +0 -0
  722. package/dist/collection/components/ez-tag-input/ez-tag-input.css.gz +0 -0
  723. package/dist/collection/components/ez-tag-input/ez-tag-input.js.gz +0 -0
  724. package/dist/collection/components/ez-tag-input/interfaces/optionsSetFocus.js.gz +0 -0
  725. package/dist/collection/components/ez-text-area/ez-text-area.css.gz +0 -0
  726. package/dist/collection/components/ez-text-area/ez-text-area.js.gz +0 -0
  727. package/dist/collection/components/ez-text-edit/ez-text-edit.css.gz +0 -0
  728. package/dist/collection/components/ez-text-edit/ez-text-edit.js.gz +0 -0
  729. package/dist/collection/components/ez-text-input/ez-text-input.css.gz +0 -0
  730. package/dist/collection/components/ez-text-input/ez-text-input.js.gz +0 -0
  731. package/dist/collection/components/ez-tile/ez-tile.css.gz +0 -0
  732. package/dist/collection/components/ez-tile/ez-tile.js.gz +0 -0
  733. package/dist/collection/components/ez-tile-medium/ez-tile-medium.css.gz +0 -0
  734. package/dist/collection/components/ez-tile-medium/ez-tile-medium.js.gz +0 -0
  735. package/dist/collection/components/ez-time-input/ez-time-input.css.gz +0 -0
  736. package/dist/collection/components/ez-time-input/ez-time-input.js.gz +0 -0
  737. package/dist/collection/components/ez-toast/ez-toast.css.gz +0 -0
  738. package/dist/collection/components/ez-toast/ez-toast.js.gz +0 -0
  739. package/dist/collection/components/ez-tooltip/ez-tooltip.css.gz +0 -0
  740. package/dist/collection/components/ez-tooltip/ez-tooltip.js.gz +0 -0
  741. package/dist/collection/components/ez-tree/ez-tree.css.gz +0 -0
  742. package/dist/collection/components/ez-tree/ez-tree.js.gz +0 -0
  743. package/dist/collection/components/ez-tree/interfaces/ITree.js.gz +0 -0
  744. package/dist/collection/components/ez-tree/interfaces/ITreeItem.js.gz +0 -0
  745. package/dist/collection/components/ez-tree/interfaces/ITreeItemBadge.js.gz +0 -0
  746. package/dist/collection/components/ez-tree/subcomponents/DefaultIconResolver.js.gz +0 -0
  747. package/dist/collection/components/ez-tree/subcomponents/DefaultTooltipResolver.js.gz +0 -0
  748. package/dist/collection/components/ez-tree/subcomponents/TreeItem.js.gz +0 -0
  749. package/dist/collection/components/ez-tree/subcomponents/index.js.gz +0 -0
  750. package/dist/collection/components/ez-tree/types/Node.js.gz +0 -0
  751. package/dist/collection/components/ez-tree/types/Tree.js.gz +0 -0
  752. package/dist/collection/components/ez-tree/types/UpdateItemConfig.js.gz +0 -0
  753. package/dist/collection/components/ez-underface/ez-underface.css.gz +0 -0
  754. package/dist/collection/components/ez-underface/ez-underface.js.gz +0 -0
  755. package/dist/collection/components/ez-upload/RemoteFile.js.gz +0 -0
  756. package/dist/collection/components/ez-upload/ez-upload.css.gz +0 -0
  757. package/dist/collection/components/ez-upload/ez-upload.js.gz +0 -0
  758. package/dist/collection/components/ez-view-stack/ez-view-stack.css.gz +0 -0
  759. package/dist/collection/components/ez-view-stack/ez-view-stack.js.gz +0 -0
  760. package/dist/collection/global/app-init.js.gz +0 -0
  761. package/dist/collection/index.js.gz +0 -0
  762. package/dist/collection/servidor.js.gz +0 -0
  763. package/dist/collection/setupTests.js.gz +0 -0
  764. package/dist/collection/sw.js.gz +0 -0
  765. package/dist/collection/utils/ApplicationUtils.js.gz +0 -0
  766. package/dist/collection/utils/AssetsUtils.js.gz +0 -0
  767. package/dist/collection/utils/CSSVarsUtils.js.gz +0 -0
  768. package/dist/collection/utils/FocusResolver.js.gz +0 -0
  769. package/dist/collection/utils/ag-grid-license.js.gz +0 -0
  770. package/dist/collection/utils/constants.js.gz +0 -0
  771. package/dist/collection/utils/customEditor/interfaces/ICustomEditor.js.gz +0 -0
  772. package/dist/collection/utils/customEditor/interfaces/ICustomEditorInfo.js.gz +0 -0
  773. package/dist/collection/utils/customRender/interfaces/ICustomRender.js.gz +0 -0
  774. package/dist/collection/utils/customRender/interfaces/ICustomRenderInfo.js.gz +0 -0
  775. package/dist/collection/utils/form/DataBinder.js.gz +0 -0
  776. package/dist/collection/utils/form/FormMetadata.js.gz +0 -0
  777. package/dist/collection/utils/form/index.js.gz +0 -0
  778. package/dist/collection/utils/form/interfaces/FormLayout.js.gz +0 -0
  779. package/dist/collection/utils/form/interfaces/IDefaultConfig.js.gz +0 -0
  780. package/dist/collection/utils/form/interfaces/IFormCardConfig.js.gz +0 -0
  781. package/dist/collection/utils/form/interfaces/IFormConfig.js.gz +0 -0
  782. package/dist/collection/utils/form/interfaces/IFormSheetMetadata.js.gz +0 -0
  783. package/dist/collection/utils/form/interfaces/ISummaryField.js.gz +0 -0
  784. package/dist/collection/utils/form/interfaces/ITabConfig.js.gz +0 -0
  785. package/dist/collection/utils/form/interfaces/index.js.gz +0 -0
  786. package/dist/collection/utils/form/test/DataBinder.test.js.gz +0 -0
  787. package/dist/collection/utils/form/test/resources/metadataTest.js.gz +0 -0
  788. package/dist/collection/utils/i18n/elanguages.js.gz +0 -0
  789. package/dist/collection/utils/i18n/index.js.gz +0 -0
  790. package/dist/collection/utils/i18n/locales/en-us.js.gz +0 -0
  791. package/dist/collection/utils/i18n/locales/es-es.js.gz +0 -0
  792. package/dist/collection/utils/i18n/locales/pt-br.js.gz +0 -0
  793. package/dist/collection/utils/i18n/translations.js.gz +0 -0
  794. package/dist/collection/utils/index.js.gz +0 -0
  795. package/dist/collection/utils/interfaces/AbstractFieldMetadata.js.gz +0 -0
  796. package/dist/collection/utils/interfaces/IAction.js.gz +0 -0
  797. package/dist/collection/utils/interfaces/IFieldConfig.js.gz +0 -0
  798. package/dist/collection/utils/mock/ez-upload-mock.js.gz +0 -0
  799. package/dist/collection/utils/search/types.js.gz +0 -0
  800. package/dist/collection/utils/searchColumn/search-column.js.gz +0 -0
  801. package/dist/collection/utils/utils.js.gz +0 -0
  802. package/dist/collection/utils/validators/recordvalidator/IInvalidCells.js.gz +0 -0
  803. package/dist/collection/utils/validators/recordvalidator/IInvalidField.js.gz +0 -0
  804. package/dist/collection/utils/validators/recordvalidator/IRecordValidator.js.gz +0 -0
  805. package/dist/collection/utils/validators/recordvalidator/IValidationResult.js.gz +0 -0
  806. package/dist/collection/utils/validators/recordvalidator/IValidationSource.js.gz +0 -0
  807. package/dist/collection/utils/validators/recordvalidator/RecordValidationProcessor.js.gz +0 -0
  808. package/dist/custom-elements/index.js.gz +0 -0
  809. package/dist/esm/ApplicationUtils-7270d89f.js.gz +0 -0
  810. package/dist/esm/CSSVarsUtils-acba92d7.js.gz +0 -0
  811. package/dist/esm/CheckMode-bdb2ec19.js.gz +0 -0
  812. package/dist/esm/DialogType-54a62731.js.gz +0 -0
  813. package/dist/esm/EzScrollDirection-2df26c93.js.gz +0 -0
  814. package/dist/esm/FocusResolver-1ccbf850.js.gz +0 -0
  815. package/dist/esm/FormLayout-071d324c.js.gz +0 -0
  816. package/dist/esm/RichToolbarHelper-f3a149c4.js.gz +0 -0
  817. package/dist/esm/_commonjsHelpers-9943807e.js.gz +0 -0
  818. package/dist/esm/app-globals-6208a4b6.js.gz +0 -0
  819. package/dist/esm/constants-3fabe81e.js.gz +0 -0
  820. package/dist/esm/ez-actions-button.entry.js.gz +0 -0
  821. package/dist/esm/ez-alert-list.entry.js.gz +0 -0
  822. package/dist/esm/ez-alert.entry.js.gz +0 -0
  823. package/dist/esm/ez-application.entry.js.gz +0 -0
  824. package/dist/esm/ez-avatar.entry.js.gz +0 -0
  825. package/dist/esm/ez-badge.entry.js.gz +0 -0
  826. package/dist/esm/ez-breadcrumb.entry.js.gz +0 -0
  827. package/dist/esm/ez-button.entry.js.gz +0 -0
  828. package/dist/esm/ez-calendar.entry.js.gz +0 -0
  829. package/dist/esm/ez-card-item_5.entry.js.gz +0 -0
  830. package/dist/esm/ez-chart.entry.js.gz +0 -0
  831. package/dist/esm/ez-check.entry.js.gz +0 -0
  832. package/dist/esm/ez-chip.entry.js.gz +0 -0
  833. package/dist/esm/ez-classic-combo-box.entry.js.gz +0 -0
  834. package/dist/esm/ez-classic-input.entry.js.gz +0 -0
  835. package/dist/esm/ez-classic-text-area.entry.js.gz +0 -0
  836. package/dist/esm/ez-collapsible-box.entry.js.gz +0 -0
  837. package/dist/esm/ez-combo-box-list_5.entry.js +0 -858
  838. package/dist/esm/ez-combo-box-list_5.entry.js.gz +0 -0
  839. package/dist/esm/ez-combo-box.entry.js.gz +0 -0
  840. package/dist/esm/ez-date-input.entry.js.gz +0 -0
  841. package/dist/esm/ez-date-time-input.entry.js.gz +0 -0
  842. package/dist/esm/ez-dialog.entry.js.gz +0 -0
  843. package/dist/esm/ez-double-list.entry.js.gz +0 -0
  844. package/dist/esm/ez-dropdown.entry.js.gz +0 -0
  845. package/dist/esm/ez-empty-card.entry.js.gz +0 -0
  846. package/dist/esm/ez-file-item.entry.js.gz +0 -0
  847. package/dist/esm/ez-filter-input.entry.js.gz +0 -0
  848. package/dist/esm/ez-form-view.entry.js.gz +0 -0
  849. package/dist/esm/ez-form.entry.js.gz +0 -0
  850. package/dist/esm/ez-grid-view.entry.js.gz +0 -0
  851. package/dist/esm/ez-grid.entry.js.gz +0 -0
  852. package/dist/esm/ez-guide-navigator.entry.js.gz +0 -0
  853. package/dist/esm/ez-icon.entry.js.gz +0 -0
  854. package/dist/esm/ez-link-builder_6.entry.js +0 -306
  855. package/dist/esm/ez-link-builder_6.entry.js.gz +0 -0
  856. package/dist/esm/ez-list-item.entry.js.gz +0 -0
  857. package/dist/esm/ez-list.entry.js.gz +0 -0
  858. package/dist/esm/ez-loading-bar.entry.js.gz +0 -0
  859. package/dist/esm/ez-modal-container.entry.js.gz +0 -0
  860. package/dist/esm/ez-modal.entry.js.gz +0 -0
  861. package/dist/esm/ez-number-input.entry.js.gz +0 -0
  862. package/dist/esm/ez-pagination.entry.js.gz +0 -0
  863. package/dist/esm/ez-popover-core.entry.js +0 -223
  864. package/dist/esm/ez-popover-core.entry.js.gz +0 -0
  865. package/dist/esm/ez-popover.entry.js.gz +0 -0
  866. package/dist/esm/ez-popup.entry.js.gz +0 -0
  867. package/dist/esm/ez-progress-bar.entry.js.gz +0 -0
  868. package/dist/esm/ez-radio-button.entry.js.gz +0 -0
  869. package/dist/esm/ez-rich-toolbar-item.entry.js.gz +0 -0
  870. package/dist/esm/ez-scroller_2.entry.js.gz +0 -0
  871. package/dist/esm/ez-search-plus.entry.js.gz +0 -0
  872. package/dist/esm/ez-search-result-list.entry.js.gz +0 -0
  873. package/dist/esm/ez-search.entry.js.gz +0 -0
  874. package/dist/esm/ez-sidebar-navigator.entry.js.gz +0 -0
  875. package/dist/esm/ez-skeleton.entry.js.gz +0 -0
  876. package/dist/esm/ez-sortable-list.entry.js.gz +0 -0
  877. package/dist/esm/ez-spinner.entry.js.gz +0 -0
  878. package/dist/esm/ez-split-button.entry.js.gz +0 -0
  879. package/dist/esm/ez-split-item.entry.js.gz +0 -0
  880. package/dist/esm/ez-split-panel.entry.js.gz +0 -0
  881. package/dist/esm/ez-tabselector.entry.js.gz +0 -0
  882. package/dist/esm/ez-tag-input.entry.js.gz +0 -0
  883. package/dist/esm/ez-tag.entry.js.gz +0 -0
  884. package/dist/esm/ez-text-area.entry.js.gz +0 -0
  885. package/dist/esm/ez-text-input.entry.js.gz +0 -0
  886. package/dist/esm/ez-tile-medium.entry.js.gz +0 -0
  887. package/dist/esm/ez-tile.entry.js.gz +0 -0
  888. package/dist/esm/ez-time-input.entry.js.gz +0 -0
  889. package/dist/esm/ez-toast.entry.js.gz +0 -0
  890. package/dist/esm/ez-tooltip.entry.js.gz +0 -0
  891. package/dist/esm/ez-tree.entry.js.gz +0 -0
  892. package/dist/esm/ez-underface.entry.js.gz +0 -0
  893. package/dist/esm/ez-upload.entry.js.gz +0 -0
  894. package/dist/esm/ez-view-stack.entry.js.gz +0 -0
  895. package/dist/esm/ezListHelper-00fb9b8d.js.gz +0 -0
  896. package/dist/esm/ezui.js.gz +0 -0
  897. package/dist/esm/filter-column.entry.js.gz +0 -0
  898. package/dist/esm/floating-ui.dom.esm-ffa73324.js.gz +0 -0
  899. package/dist/esm/index-8088eb6e.js.gz +0 -0
  900. package/dist/esm/index-baa5e267.js.gz +0 -0
  901. package/dist/esm/index.js.gz +0 -0
  902. package/dist/esm/loader.js.gz +0 -0
  903. package/dist/esm/polyfills/core-js.js.gz +0 -0
  904. package/dist/esm/polyfills/css-shim.js.gz +0 -0
  905. package/dist/esm/polyfills/dom.js.gz +0 -0
  906. package/dist/esm/polyfills/es5-html-element.js.gz +0 -0
  907. package/dist/esm/polyfills/index.js.gz +0 -0
  908. package/dist/esm/polyfills/system.js.gz +0 -0
  909. package/dist/esm/purify-96c0d5c2.js.gz +0 -0
  910. package/dist/esm/search-column-d98f7d96.js.gz +0 -0
  911. package/dist/esm/searchFormatters-8229207e.js.gz +0 -0
  912. package/dist/ezui/ezui.esm.js.gz +0 -0
  913. package/dist/ezui/index.esm.js.gz +0 -0
  914. package/dist/ezui/p-03eb09b0.entry.js +0 -1
  915. package/dist/ezui/p-03eb09b0.entry.js.gz +0 -0
  916. package/dist/ezui/p-0ec37151.entry.js +0 -1
  917. package/dist/ezui/p-0ec37151.entry.js.gz +0 -0
  918. package/dist/ezui/p-112455b1.js.gz +0 -0
  919. package/dist/ezui/p-1cfe7c1b.entry.js.gz +0 -0
  920. package/dist/ezui/p-1e21475d.entry.js +0 -1
  921. package/dist/ezui/p-1e21475d.entry.js.gz +0 -0
  922. package/dist/ezui/p-1e7a8633.entry.js.gz +0 -0
  923. package/dist/ezui/p-1f3867a8.entry.js +0 -1
  924. package/dist/ezui/p-1f3867a8.entry.js.gz +0 -0
  925. package/dist/ezui/p-1f50fa05.entry.js.gz +0 -0
  926. package/dist/ezui/p-20c024f7.entry.js.gz +0 -0
  927. package/dist/ezui/p-21647085.entry.js +0 -1
  928. package/dist/ezui/p-21647085.entry.js.gz +0 -0
  929. package/dist/ezui/p-23a36bb6.js.gz +0 -0
  930. package/dist/ezui/p-25c1aa0a.js.gz +0 -0
  931. package/dist/ezui/p-27fd20cf.entry.js.gz +0 -0
  932. package/dist/ezui/p-288631d1.entry.js +0 -1
  933. package/dist/ezui/p-288631d1.entry.js.gz +0 -0
  934. package/dist/ezui/p-29aa849f.js +0 -1
  935. package/dist/ezui/p-29aa849f.js.gz +0 -0
  936. package/dist/ezui/p-30425ea2.entry.js.gz +0 -0
  937. package/dist/ezui/p-30da1152.entry.js +0 -1
  938. package/dist/ezui/p-30da1152.entry.js.gz +0 -0
  939. package/dist/ezui/p-30ffb9ed.js +0 -1
  940. package/dist/ezui/p-30ffb9ed.js.gz +0 -0
  941. package/dist/ezui/p-359430a5.entry.js.gz +0 -0
  942. package/dist/ezui/p-3e767a74.js.gz +0 -0
  943. package/dist/ezui/p-40a60148.js.gz +0 -0
  944. package/dist/ezui/p-411c0222.entry.js.gz +0 -0
  945. package/dist/ezui/p-48effc69.entry.js +0 -1
  946. package/dist/ezui/p-48effc69.entry.js.gz +0 -0
  947. package/dist/ezui/p-4d30b703.entry.js.gz +0 -0
  948. package/dist/ezui/p-513baabe.entry.js.gz +0 -0
  949. package/dist/ezui/p-55cc66bb.entry.js +0 -1
  950. package/dist/ezui/p-55cc66bb.entry.js.gz +0 -0
  951. package/dist/ezui/p-5832d458.entry.js +0 -1
  952. package/dist/ezui/p-5832d458.entry.js.gz +0 -0
  953. package/dist/ezui/p-5ed81457.entry.js.gz +0 -0
  954. package/dist/ezui/p-6020f3d5.entry.js +0 -1
  955. package/dist/ezui/p-6020f3d5.entry.js.gz +0 -0
  956. package/dist/ezui/p-65f830ba.entry.js +0 -1
  957. package/dist/ezui/p-65f830ba.entry.js.gz +0 -0
  958. package/dist/ezui/p-669dc773.entry.js +0 -1
  959. package/dist/ezui/p-669dc773.entry.js.gz +0 -0
  960. package/dist/ezui/p-6d596a5a.entry.js.gz +0 -0
  961. package/dist/ezui/p-6f77a359.entry.js.gz +0 -0
  962. package/dist/ezui/p-7995dcb4.entry.js +0 -1
  963. package/dist/ezui/p-7995dcb4.entry.js.gz +0 -0
  964. package/dist/ezui/p-7ab75605.entry.js.gz +0 -0
  965. package/dist/ezui/p-7f792043.entry.js.gz +0 -0
  966. package/dist/ezui/p-7fe97ef5.entry.js +0 -1
  967. package/dist/ezui/p-7fe97ef5.entry.js.gz +0 -0
  968. package/dist/ezui/p-80dfc50b.js.gz +0 -0
  969. package/dist/ezui/p-85deadad.entry.js +0 -1
  970. package/dist/ezui/p-85deadad.entry.js.gz +0 -0
  971. package/dist/ezui/p-87d12992.entry.js.gz +0 -0
  972. package/dist/ezui/p-8a74deab.entry.js.gz +0 -0
  973. package/dist/ezui/p-8bbb3df7.entry.js.gz +0 -0
  974. package/dist/ezui/p-8ddeb513.entry.js.gz +0 -0
  975. package/dist/ezui/p-8df1ca33.entry.js.gz +0 -0
  976. package/dist/ezui/p-8dfd01b1.js +0 -1
  977. package/dist/ezui/p-8dfd01b1.js.gz +0 -0
  978. package/dist/ezui/p-8ebe11f4.js.gz +0 -0
  979. package/dist/ezui/p-91c9d50e.entry.js.gz +0 -0
  980. package/dist/ezui/p-93e1c917.entry.js.gz +0 -0
  981. package/dist/ezui/p-941e02ff.entry.js +0 -1
  982. package/dist/ezui/p-941e02ff.entry.js.gz +0 -0
  983. package/dist/ezui/p-95a521ce.entry.js.gz +0 -0
  984. package/dist/ezui/p-98bb8b16.js.gz +0 -0
  985. package/dist/ezui/p-9f5fa3f9.entry.js.gz +0 -0
  986. package/dist/ezui/p-a0bf1fc7.entry.js.gz +0 -0
  987. package/dist/ezui/p-a3075f52.entry.js.gz +0 -0
  988. package/dist/ezui/p-a3ada561.entry.js.gz +0 -0
  989. package/dist/ezui/p-a80b1287.entry.js +0 -1
  990. package/dist/ezui/p-a80b1287.entry.js.gz +0 -0
  991. package/dist/ezui/p-ab574d59.js.gz +0 -0
  992. package/dist/ezui/p-abe0dd62.entry.js.gz +0 -0
  993. package/dist/ezui/p-b1e45320.js.gz +0 -0
  994. package/dist/ezui/p-b663ec25.entry.js.gz +0 -0
  995. package/dist/ezui/p-b6bc4499.entry.js.gz +0 -0
  996. package/dist/ezui/p-b853763b.js.gz +0 -0
  997. package/dist/ezui/p-bc2f844e.entry.js.gz +0 -0
  998. package/dist/ezui/p-bf5b6db2.entry.js.gz +0 -0
  999. package/dist/ezui/p-bf9ff8fe.js +0 -1
  1000. package/dist/ezui/p-bf9ff8fe.js.gz +0 -0
  1001. package/dist/ezui/p-ce269c9c.entry.js.gz +0 -0
  1002. package/dist/ezui/p-d1421af5.entry.js +0 -1
  1003. package/dist/ezui/p-d1421af5.entry.js.gz +0 -0
  1004. package/dist/ezui/p-d2645bdf.entry.js +0 -1
  1005. package/dist/ezui/p-d2645bdf.entry.js.gz +0 -0
  1006. package/dist/ezui/p-d6742c1e.entry.js.gz +0 -0
  1007. package/dist/ezui/p-d8cc640d.entry.js.gz +0 -0
  1008. package/dist/ezui/p-dc628ed3.js.gz +0 -0
  1009. package/dist/ezui/p-e2fe1b5d.entry.js.gz +0 -0
  1010. package/dist/ezui/p-e50e1c80.entry.js.gz +0 -0
  1011. package/dist/ezui/p-e6ac0c4d.entry.js +0 -309
  1012. package/dist/ezui/p-e6ac0c4d.entry.js.gz +0 -0
  1013. package/dist/ezui/p-e75c7a23.entry.js.gz +0 -0
  1014. package/dist/ezui/p-e7a7c594.entry.js.gz +0 -0
  1015. package/dist/ezui/p-e8c57463.entry.js.gz +0 -0
  1016. package/dist/ezui/p-ec7db713.js.gz +0 -0
  1017. package/dist/ezui/p-efd28447.entry.js.gz +0 -0
  1018. package/dist/ezui/p-f00c9dc2.entry.js +0 -1
  1019. package/dist/ezui/p-f00c9dc2.entry.js.gz +0 -0
  1020. package/dist/ezui/p-f14b1400.entry.js.gz +0 -0
  1021. package/dist/ezui/p-f34ec732.entry.js.gz +0 -0
  1022. package/dist/ezui/p-f67d789c.entry.js +0 -1
  1023. package/dist/ezui/p-f67d789c.entry.js.gz +0 -0
  1024. package/dist/ezui/p-f7b8d2b9.entry.js +0 -1
  1025. package/dist/ezui/p-f7b8d2b9.entry.js.gz +0 -0
  1026. package/dist/ezui/p-f9054bd6.entry.js.gz +0 -0
  1027. package/dist/ezui/p-f90e8299.js.gz +0 -0
  1028. package/dist/ezui/p-f949bb8b.entry.js.gz +0 -0
  1029. package/dist/ezui/p-fa5cc755.entry.js.gz +0 -0
  1030. package/dist/ezui/p-fa6732f2.entry.js.gz +0 -0
  1031. package/dist/ezui/p-fa7fc44f.entry.js +0 -1
  1032. package/dist/ezui/p-fa7fc44f.entry.js.gz +0 -0
  1033. package/dist/ezui/p-fadf0509.entry.js.gz +0 -0
  1034. package/dist/index.cjs.js.gz +0 -0
  1035. package/dist/index.js.gz +0 -0
@@ -0,0 +1,1469 @@
1
+ import { r as registerInstance, c as createEvent, h, H as Host, g as getElement, F as Fragment } 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-d37095f4.js';
5
+ import { C as CustomEditorSource } from './types-6f6b2650.js';
6
+ import { R as RICH_TOOLBAR_COMMANDS, a as RICH_TOOLBAR_FORMAT_TAGS } from './RichToolbarHelper-cad0978a.js';
7
+ import { p as purify } from './purify-f52f5419.js';
8
+ import { A as ApplicationUtils } from './ApplicationUtils-aaf24be5.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 ezLinkBuilderCss = ".link-builder-container.sc-ez-link-builder{font-family:'Roboto';color:#2b3a54;display:flex;flex-direction:column;gap:10px;justify-content:space-between}.header.sc-ez-link-builder{display:flex;font-weight:500;font-size:16px}.actions.sc-ez-link-builder{display:flex;justify-content:flex-end;gap:12px;margin-top:12px;width:100%}";
649
+
650
+ const EzLinkBuilder = class {
651
+ constructor(hostRef) {
652
+ registerInstance(this, hostRef);
653
+ this.executeToolbarCommand = createEvent(this, "executeToolbarCommand", 7);
654
+ this.textToShow = undefined;
655
+ this.link = undefined;
656
+ this.openInNewGuide = false;
657
+ }
658
+ async show(text) {
659
+ this._popupElement.opened = true;
660
+ if (text) {
661
+ this.textToShow = text;
662
+ }
663
+ }
664
+ async hide() {
665
+ this._popupElement.opened = false;
666
+ }
667
+ async componentWillLoad() {
668
+ this.i18n = await initI18n();
669
+ }
670
+ async handleCancel() {
671
+ this.clearValues();
672
+ this.executeToolbarCommand.emit({ command: RICH_TOOLBAR_COMMANDS.FOCUS });
673
+ await this.hide();
674
+ }
675
+ clearValues() {
676
+ this.link = '';
677
+ this.textToShow = '';
678
+ this.openInNewGuide = false;
679
+ }
680
+ async handleCreateLink() {
681
+ const tag = `<a href="${this.link}" ${this.openInNewGuide ? 'target="_blank" rel="noopener noreferrer"' : ''}>${this.textToShow ? this.textToShow : this.link}</a>`;
682
+ this.executeToolbarCommand.emit({ command: RICH_TOOLBAR_COMMANDS.FORMAT, value: tag });
683
+ this.clearValues();
684
+ await this.hide();
685
+ }
686
+ async handleActionPopup(event) {
687
+ if (event.detail === 'OK') {
688
+ await this.handleCreateLink();
689
+ return;
690
+ }
691
+ if (event.detail === 'CANCEL' || event.detail === 'CLOSE') {
692
+ await this.handleCancel();
693
+ }
694
+ }
695
+ getOkButtonStatus() {
696
+ var _a;
697
+ return ((_a = this.link) === null || _a === void 0 ? void 0 : _a.trim()) ? 'ENABLED' : 'DISABLED';
698
+ }
699
+ render() {
700
+ return (h("ez-popup", { heightMode: 'auto', size: 'small', useHeader: false, ref: ref => this._popupElement = ref, onEzClosePopup: () => this.clearValues() }, h("div", null, h("ez-modal-container", { modalTitle: this.i18n("ez-link-builder.addLinkTitle"), modalSubTitle: this.i18n("ez-link-builder.addLinkSubtitle"), okButtonLabel: this.i18n("ez-link-builder.submit"), cancelButtonLabel: this.i18n("app.cancel"), onEzModalAction: this.handleActionPopup.bind(this), okButtonStatus: this.getOkButtonStatus() }, h("div", { class: 'link-builder-container' }, h("ez-text-input", { id: 'link_url_input', label: this.i18n("ez-link-builder.urlInputLabel"), value: this.link, onEzChange: (e) => this.link = e.detail }), h("ez-text-input", { id: 'link_text_input', label: this.i18n("ez-link-builder.textInputLabel"), value: this.textToShow, onEzChange: (e) => this.textToShow = e.detail }), h("ez-check", { label: this.i18n("ez-link-builder.openInNewPage"), value: this.openInNewGuide, onEzChange: (e) => this.openInNewGuide = e.detail }))))));
701
+ }
702
+ };
703
+ EzLinkBuilder.style = ezLinkBuilderCss;
704
+
705
+ const ezMultiSelectInputCss = ":host{--ez-multi-select-input--height:42px;--ez-multi-select-input--height--slim:32px;--ez-multi-select-input--width:100%;--ez-multi-select-input__min-width:0px;--ez-multi-select-input__max-width:100%;--ez-multi-select-input__icon--width:30px;--ez-multi-select-input--font-size:var(--text--medium, 14px);--ez-multi-select-input--font-family:var(--font-pattern, Arial);--ez-multi-select-input--font-weight:var(--text-weight--medium, 400);--ez-multi-select-input--color:var(--title--primary, #2B3A54);--ez-multi-select-input--border-radius:var(--border--radius-medium, 12px);--ez-multi-select-input__input--border:var(--border--small, 1px solid);--ez-multi-select-input__input--border-color:var(--color--strokes, #DCE0E8);--ez-multi-select-input__input--focus--border-color:var(--color--primary, #008561);--ez-multi-select-input__input--error--border-color:var(--color-alert--error-800, #BD0025);--ez-multi-select-input__input--background-color:var(--background--light, #ffffff);--ez-multi-select-input__input--disabled--background-color:var(--background--medium, #F0F3F7);--ez-multi-select-input__input--disabled--color:var(--text--primary, #626E82);--ez-multi-select-input__label--floating--top:6px;--ez-multi-select-input__label--padding-top:12px;--ez-multi-select-input__label--padding-left:14px;--ez-multi-select-input__placeholder--color:var(--text--secondary, #a2abb9);--ez-multi-select-input__tooltip_icon--error--color:var(--color-alert--error-800, #BD0025);--ez-multi-select-input__tooltip-icon---width:var(--space--large);--ez-multi-select-input__tooltip-icon---horizontal-margin:var(--space--medium, 12px);--ez-multi-select-input__tooltip-icon---vertical-margin:10px;display:flex;flex-wrap:wrap;position:relative;width:var(--ez-multi-select-input--width);min-width:var(--ez-multi-select-input__min-width);max-width:var(--ez-multi-select-input__max-width)}.trigger{position:relative;display:flex;align-items:center;box-sizing:border-box;cursor:pointer;width:100%;overflow:hidden;height:var(--ez-multi-select-input--height);border-radius:var(--ez-multi-select-input--border-radius);font-family:var(--ez-multi-select-input--font-family);font-size:var(--ez-multi-select-input--font-size);font-weight:var(--ez-multi-select-input--font-weight);color:var(--ez-multi-select-input--color);background-color:var(--ez-multi-select-input__input--background-color);border:var(--ez-multi-select-input__input--border);border-color:var(--ez-multi-select-input__input--border-color);padding:0 var(--ez-multi-select-input__icon--width) 0 14px;margin-bottom:var(--space--small)}.trigger:focus{outline:none}.trigger--focused{border:var(--border--medium, 2px solid);outline:none;border-color:var(--ez-multi-select-input__input--focus--border-color)}.trigger--error{border:var(--border--medium, 2px solid);border-color:var(--ez-multi-select-input__input--error--border-color)}.trigger--disabled{cursor:not-allowed;background-color:var(--ez-multi-select-input__input--disabled--background-color);color:var(--ez-multi-select-input__input--disabled--color)}.trigger--no-border{box-shadow:none;border:none}.trigger--slim{height:var(--ez-multi-select-input--height--slim)}.trigger__label{position:absolute;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;pointer-events:none;-webkit-transition:font-size .05s, top .05s;transition:font-size .05s, top .05s;font-family:var(--ez-multi-select-input--font-family);font-size:var(--ez-multi-select-input--font-size);font-weight:var(--ez-multi-select-input--font-weight);color:var(--ez-multi-select-input--color);top:var(--ez-multi-select-input__label--padding-top);left:var(--ez-multi-select-input__label--padding-left)}.trigger__label--floated{font-size:var(--text--extra-small);color:var(--text--primary);top:var(--ez-multi-select-input__label--floating--top)}.trigger__label--disabled{color:var(--ez-multi-select-input__input--disabled--color)}.trigger__label--error{color:var(--ez-multi-select-input__tooltip_icon--error--color)}.trigger__value{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.trigger__value--placeholder{color:var(--ez-multi-select-input__placeholder--color)}.trigger__value--with-label{padding-top:14px}.trigger__chevron{position:absolute;right:8px;display:flex;align-items:center;color:var(--ez-multi-select-input--color)}.trigger--disabled .trigger__chevron{color:var(--ez-multi-select-input__input--disabled--color)}ez-icon.tooltip-icon{position:absolute;display:flex;align-items:center;justify-content:center;overflow:hidden;width:var(--ez-multi-select-input__tooltip-icon---width);height:22px;margin:var(--ez-multi-select-input__tooltip-icon---vertical-margin)\n var(--ez-multi-select-input__tooltip-icon---horizontal-margin);top:0;right:var(--ez-multi-select-input__icon--width);border-radius:var(--ez-multi-select-input--border-radius)}ez-icon.tooltip-icon.hasError{--ez-icon--color:var(--ez-multi-select-input__tooltip_icon--error--color)}ez-popover-core ez-multi-selection-list{padding:var(--space--2xs, 8px);--ez-multi-selection-default-width:100%}";
706
+
707
+ const EzMultiSelectInput = class {
708
+ constructor(hostRef) {
709
+ registerInstance(this, hostRef);
710
+ this.ezChange = createEvent(this, "ezChange", 7);
711
+ /**
712
+ * Chave da última seleção conhecida (valores marcados, ordenados). Usada para
713
+ * deduplicar emissões de `ezChange`: o ez-multi-selection-list emite
714
+ * `changeFilteredOptions` também ao montar e a cada sincronização programática
715
+ * de `options`/`value`, então só propagamos mudanças reais de seleção.
716
+ */
717
+ this._lastSelectionKey = '';
718
+ this.label = undefined;
719
+ this.enabled = true;
720
+ this.errorMessage = undefined;
721
+ this.hasInvalid = false;
722
+ this.canShowError = true;
723
+ this.mode = 'regular';
724
+ this.noBorder = false;
725
+ this.options = undefined;
726
+ this.dataSource = undefined;
727
+ this.columnName = undefined;
728
+ this.useOptions = false;
729
+ this.isTextSearch = false;
730
+ this.orderSelectedFirst = false;
731
+ this.value = undefined;
732
+ this._selectedCount = 0;
733
+ this._isOpen = false;
734
+ }
735
+ //---------------------------------------------
736
+ // Watchers
737
+ //---------------------------------------------
738
+ observeHasInvalid(newValue, oldValue) {
739
+ if (newValue === oldValue) {
740
+ return;
741
+ }
742
+ }
743
+ observeOptions(newOptions) {
744
+ if (!newOptions) {
745
+ this._selectedCount = 0;
746
+ this._lastSelectionKey = '';
747
+ return;
748
+ }
749
+ this._selectedCount = newOptions.filter(o => o.check).length;
750
+ this._lastSelectionKey = this.selectionKey(newOptions);
751
+ }
752
+ observeValue(newValue) {
753
+ if (!Array.isArray(newValue)) {
754
+ return;
755
+ }
756
+ if (this.selectionKey(newValue) === this._lastSelectionKey) {
757
+ return;
758
+ }
759
+ this.options = newValue;
760
+ }
761
+ //---------------------------------------------
762
+ // Public methods
763
+ //---------------------------------------------
764
+ /**
765
+ * Retorna as opções com o estado de check atual.
766
+ */
767
+ async getSelectedOptions() {
768
+ var _a, _b;
769
+ const source = (_b = (_a = this.value) !== null && _a !== void 0 ? _a : this.options) !== null && _b !== void 0 ? _b : [];
770
+ return source.filter(o => o.check);
771
+ }
772
+ /**
773
+ * Limpa todas as seleções. Delega ao ez-multi-selection-list.
774
+ */
775
+ async clearSelection() {
776
+ var _a, _b;
777
+ const list = (_a = this._list) !== null && _a !== void 0 ? _a : (_b = this._popover) === null || _b === void 0 ? void 0 : _b.querySelector('ez-multi-selection-list');
778
+ await (list === null || list === void 0 ? void 0 : list.clearSelection());
779
+ this._selectedCount = 0;
780
+ }
781
+ //---------------------------------------------
782
+ // Private methods
783
+ //---------------------------------------------
784
+ handleTogglePopover() {
785
+ if (!this.enabled) {
786
+ return;
787
+ }
788
+ if (this._isOpen) {
789
+ this._popover.hide();
790
+ }
791
+ else {
792
+ this._popover.showUnder(this._trigger);
793
+ }
794
+ }
795
+ handleKeyDown(event) {
796
+ if (event.key === 'Enter' || event.key === ' ' || event.key === 'Spacebar') {
797
+ event.preventDefault();
798
+ this.handleTogglePopover();
799
+ }
800
+ }
801
+ handleVisibilityChange(event) {
802
+ this._isOpen = event.detail;
803
+ }
804
+ stopInnerChangeEvents(event) {
805
+ event.stopPropagation();
806
+ }
807
+ handleSelectionChange(event) {
808
+ var _a;
809
+ const opts = (_a = event.detail) !== null && _a !== void 0 ? _a : [];
810
+ this._selectedCount = opts.filter(o => o.check).length;
811
+ const key = this.selectionKey(opts);
812
+ if (key === this._lastSelectionKey) {
813
+ return;
814
+ }
815
+ this._lastSelectionKey = key;
816
+ this.value = opts;
817
+ this.ezChange.emit(opts);
818
+ }
819
+ selectionKey(opts) {
820
+ return (opts || [])
821
+ .filter(o => o.check)
822
+ .map(o => o.value)
823
+ .sort()
824
+ .join('|');
825
+ }
826
+ buildDisplayText() {
827
+ return this._selectedCount > 0 ? `${this._selectedCount} selecionado(s)` : '';
828
+ }
829
+ buildTriggerClass() {
830
+ const classes = ['trigger'];
831
+ if (!this.enabled)
832
+ classes.push('trigger--disabled');
833
+ if (this._isOpen)
834
+ classes.push('trigger--focused');
835
+ if (this.hasError())
836
+ classes.push('trigger--error');
837
+ if (this.noBorder)
838
+ classes.push('trigger--no-border');
839
+ if (this.mode === 'slim')
840
+ classes.push('trigger--slim');
841
+ return classes.join(' ');
842
+ }
843
+ hasError() {
844
+ if (!this.canShowError) {
845
+ return false;
846
+ }
847
+ return this.hasInvalid || (typeof this.errorMessage === 'string' && this.errorMessage.trim() !== '');
848
+ }
849
+ //---------------------------------------------
850
+ // Lifecycle
851
+ //---------------------------------------------
852
+ componentWillLoad() {
853
+ if (Array.isArray(this.value) && this.value !== this.options) {
854
+ this.options = this.value;
855
+ }
856
+ const source = this.options;
857
+ if (source) {
858
+ this._selectedCount = source.filter(o => o.check).length;
859
+ this._lastSelectionKey = this.selectionKey(source);
860
+ }
861
+ }
862
+ render() {
863
+ ElementIDUtils.addIDInfoIfNotExists(this._hostElement, 'multi-select-input');
864
+ const displayText = this.buildDisplayText();
865
+ const hasError = this.hasError();
866
+ const isFloated = this._selectedCount > 0 || this._isOpen;
867
+ return (h(Host, null, h("div", { ref: el => this._trigger = el, class: this.buildTriggerClass(), tabindex: this.enabled ? '0' : '-1', onClick: () => this.handleTogglePopover(), onKeyDown: (e) => this.handleKeyDown(e), "data-element-id": ElementIDUtils.getInternalIDInfo('trigger') }, this.label && this.mode !== 'slim' && (h("label", { class: {
868
+ 'trigger__label': true,
869
+ 'trigger__label--floated': isFloated,
870
+ 'trigger__label--disabled': !this.enabled,
871
+ 'trigger__label--error': hasError,
872
+ }, title: this.label }, this.label)), h("span", { class: {
873
+ 'trigger__value': true,
874
+ 'trigger__value--placeholder': this._selectedCount === 0,
875
+ 'trigger__value--with-label': !!this.label && this.mode !== 'slim',
876
+ } }, displayText || (this.mode === 'slim' && this.label ? this.label : '')), h("ez-icon", { class: "trigger__chevron", iconName: this._isOpen ? 'chevron-up' : 'chevron-down' }), hasError && this.mode !== 'slim' && this.errorMessage && (
877
+ // strategy="fixed": o tooltip fica dentro de `.trigger` (que tem
878
+ // overflow: hidden); com position:fixed o balão escapa do recorte do
879
+ // container — z-index sozinho não resolve recorte por overflow.
880
+ h("ez-tooltip", { type: "error", message: this.errorMessage, strategy: "fixed" }, h("ez-icon", { class: "tooltip-icon hasError", "data-element-id": ElementIDUtils.getInternalIDInfo('tooltip-icon'), iconName: "alert-circle" })))), h("ez-popover-core", { ref: el => this._popover = el, overlayType: "light", fitInViewport: true, useAnchorSize: true, onEzVisibilityChange: (e) => this.handleVisibilityChange(e) }, h("ez-multi-selection-list", { ref: el => {
881
+ this._list = el;
882
+ el === null || el === void 0 ? void 0 : el.removeEventListener('ezChange', this.stopInnerChangeEvents);
883
+ el === null || el === void 0 ? void 0 : el.addEventListener('ezChange', this.stopInnerChangeEvents);
884
+ }, columnName: this.columnName, dataSource: this.dataSource, useOptions: this.useOptions, options: this.options, isTextSearch: this.isTextSearch, orderSelectedFirst: this.orderSelectedFirst, onChangeFilteredOptions: (e) => this.handleSelectionChange(e) }))));
885
+ }
886
+ get _hostElement() { return getElement(this); }
887
+ static get watchers() { return {
888
+ "hasInvalid": ["observeHasInvalid"],
889
+ "errorMessage": ["observeHasInvalid"],
890
+ "canShowError": ["observeHasInvalid"],
891
+ "options": ["observeOptions"],
892
+ "value": ["observeValue"]
893
+ }; }
894
+ };
895
+ EzMultiSelectInput.style = ezMultiSelectInputCss;
896
+
897
+ 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}";
898
+
899
+ const EzRichText = class {
900
+ constructor(hostRef) {
901
+ registerInstance(this, hostRef);
902
+ this.ezChange = createEvent(this, "ezChange", 7);
903
+ this.historyStack = [];
904
+ this.historyIndex = -1;
905
+ this.previewMode = false;
906
+ this.showPreview = true;
907
+ this.value = undefined;
908
+ this.label = undefined;
909
+ this.mode = "regular";
910
+ this.enabled = true;
911
+ this.rows = 6;
912
+ this.errorMessage = undefined;
913
+ this.canShowError = true;
914
+ this.showConfigs = true;
915
+ this.showTextFormat = true;
916
+ this.showUndoRedo = true;
917
+ }
918
+ observeValue(newValue, oldValue) {
919
+ if (ObjectUtils.equals(newValue, oldValue))
920
+ return;
921
+ this.ezChange.emit(newValue);
922
+ }
923
+ observeErrorMessage(newValue) {
924
+ if (newValue && this.previewMode) {
925
+ this.previewMode = false;
926
+ }
927
+ }
928
+ async handleExecuteToolbarCommand(event) {
929
+ const { command, value } = event.detail;
930
+ await this.executeCommand(command, value);
931
+ }
932
+ /**
933
+ * Aplica o foco no campo.
934
+ */
935
+ async setFocus() {
936
+ this.handleFocus();
937
+ }
938
+ /**
939
+ * Remove o foco do campo.
940
+ */
941
+ async setBlur() {
942
+ var _a;
943
+ await ((_a = this.textAreaRef) === null || _a === void 0 ? void 0 : _a.setBlur());
944
+ }
945
+ /**
946
+ * Retorna se o conteúdo é inválido.
947
+ */
948
+ async isInvalid() {
949
+ return typeof this.errorMessage === 'string' && this.errorMessage.trim() !== '';
950
+ }
951
+ bindPreview() {
952
+ if (!this._keyboardManager || !this.showPreview)
953
+ return;
954
+ this._keyboardManager
955
+ .bind('ctrl + p', async () => {
956
+ await this.togglePreview();
957
+ }, { description: 'Entra em modo de pré visualização.', element: this.element });
958
+ }
959
+ bindConfigs() {
960
+ if (!this._keyboardManager || !this.showConfigs)
961
+ return;
962
+ this._keyboardManager
963
+ .bind('ctrl + l', async () => {
964
+ await this.handleFormatSelection(RICH_TOOLBAR_FORMAT_TAGS.LIST);
965
+ }, { description: this.i18n("ez-rich-text.listShortcut"), element: this.element })
966
+ .bind('ctrl + k', async () => {
967
+ await this.handleLink();
968
+ }, { description: this.i18n("ez-rich-text.linkShortcut"), element: this.element })
969
+ .bind('ctrl + o', async () => {
970
+ await this.handleImage();
971
+ }, { description: this.i18n("ez-rich-text.imageShortcut"), element: this.element });
972
+ }
973
+ bindTextFormat() {
974
+ if (!this._keyboardManager || !this.showTextFormat)
975
+ return;
976
+ this._keyboardManager
977
+ .bind('ctrl + b', async () => {
978
+ await this.handleFormatSelection(RICH_TOOLBAR_FORMAT_TAGS.BOLD);
979
+ }, { description: this.i18n("ez-rich-text.boldShortcut"), element: this.element })
980
+ .bind('ctrl + i', async () => {
981
+ await this.handleFormatSelection(RICH_TOOLBAR_FORMAT_TAGS.ITALIC);
982
+ }, { description: this.i18n("ez-rich-text.italicShortcut"), element: this.element })
983
+ .bind('ctrl + u', async () => {
984
+ await this.handleFormatSelection(RICH_TOOLBAR_FORMAT_TAGS.UNDERLINE);
985
+ }, { description: this.i18n("ez-rich-text.underlineShortcut"), element: this.element });
986
+ }
987
+ initKeyboardManager() {
988
+ this._keyboardManager = new KeyboardManager({ propagate: false, element: this.element });
989
+ this._keyboardManager
990
+ .bind('ctrl + Enter', async () => {
991
+ await this.handleFormatSelection(RICH_TOOLBAR_FORMAT_TAGS.BREAK_LINE);
992
+ }, { description: this.i18n("ez-rich-text.breakLineShortcut"), element: this.element })
993
+ .bind('ctrl + z', async () => {
994
+ await this.handleUndo();
995
+ }, { description: this.i18n("ez-rich-text.undoShortcut"), element: this.element })
996
+ .bind('ctrl + x', async () => {
997
+ await this.handleRedo();
998
+ }, { description: this.i18n("ez-rich-text.redoShortcut"), element: this.element });
999
+ this.bindPreview();
1000
+ this.bindConfigs();
1001
+ this.bindTextFormat();
1002
+ }
1003
+ async executeCommand(command, value) {
1004
+ switch (command) {
1005
+ case RICH_TOOLBAR_COMMANDS.FOCUS:
1006
+ this.handleFocus();
1007
+ break;
1008
+ case RICH_TOOLBAR_COMMANDS.PREVIEW:
1009
+ await this.togglePreview();
1010
+ break;
1011
+ case RICH_TOOLBAR_COMMANDS.FORMAT:
1012
+ await this.handleFormatSelection(value);
1013
+ break;
1014
+ case RICH_TOOLBAR_COMMANDS.UNDO:
1015
+ await this.handleUndo();
1016
+ break;
1017
+ case RICH_TOOLBAR_COMMANDS.REDO:
1018
+ await this.handleRedo();
1019
+ break;
1020
+ case RICH_TOOLBAR_COMMANDS.LINK:
1021
+ await this.handleLink();
1022
+ break;
1023
+ case RICH_TOOLBAR_COMMANDS.IMAGE:
1024
+ await this.handleImage();
1025
+ break;
1026
+ }
1027
+ }
1028
+ handleFocus() {
1029
+ this.previewMode = false;
1030
+ requestAnimationFrame(async () => {
1031
+ await this.textAreaRef.setFocus();
1032
+ });
1033
+ }
1034
+ async handleLink() {
1035
+ this.previewMode = false;
1036
+ requestAnimationFrame(async () => {
1037
+ await this.linkBuilderRef.show(this.getSelectedText());
1038
+ });
1039
+ }
1040
+ async handleImage() {
1041
+ this.previewMode = false;
1042
+ await this.imageUploaderRef.show();
1043
+ }
1044
+ async handleRedo() {
1045
+ this.previewMode = false;
1046
+ requestAnimationFrame(async () => {
1047
+ this.redo();
1048
+ await this.textAreaRef.setFocus();
1049
+ });
1050
+ }
1051
+ async handleUndo() {
1052
+ this.previewMode = false;
1053
+ requestAnimationFrame(async () => {
1054
+ this.undo();
1055
+ await this.textAreaRef.setFocus();
1056
+ });
1057
+ }
1058
+ async handleFormatSelection(value) {
1059
+ if (!value)
1060
+ return;
1061
+ this.previewMode = false;
1062
+ requestAnimationFrame(async () => {
1063
+ await this.formatSelection(value);
1064
+ await this.textAreaRef.setFocus();
1065
+ });
1066
+ }
1067
+ async togglePreview() {
1068
+ this.previewMode = !this.previewMode;
1069
+ if (this.previewMode) {
1070
+ await this.textAreaRef.setFocus();
1071
+ }
1072
+ }
1073
+ getSelectedText() {
1074
+ const textarea = this.getTextAreaElement();
1075
+ if (!textarea)
1076
+ return undefined;
1077
+ const selectionStart = textarea.selectionStart;
1078
+ const selectionEnd = textarea.selectionEnd;
1079
+ const currentValue = this.textAreaRef.value || '';
1080
+ return currentValue.substring(selectionStart, selectionEnd);
1081
+ }
1082
+ getTextAreaElement() {
1083
+ const textAreaElement = this.element.querySelector('ez-text-area');
1084
+ return textAreaElement.shadowRoot.querySelector('textarea');
1085
+ }
1086
+ async formatSelection(htmlTag) {
1087
+ if (!this.textAreaRef)
1088
+ return;
1089
+ const formattedHtml = htmlTag.replace('$selection', this.getSelectedText() || '');
1090
+ await this.textAreaRef.appendTextToSelection(formattedHtml);
1091
+ this.value = this.textAreaRef.value;
1092
+ this.addToHistory(this.value);
1093
+ }
1094
+ addToHistory(content) {
1095
+ // Só adiciona ao histórico se for diferente do estado atual
1096
+ if (this.historyIndex >= 0 && content === this.historyStack[this.historyIndex]) {
1097
+ return;
1098
+ }
1099
+ //se o tamanho do histórico chegou ao máximo, faz um splice mantendo os últimos 49 elementos
1100
+ if (this.historyStack.length >= 50) {
1101
+ this.historyStack.splice(0, this.historyStack.length - 49);
1102
+ }
1103
+ //Adiciona novo estado ao histórico
1104
+ this.historyStack.push(content);
1105
+ this.historyIndex = this.historyStack.length - 1;
1106
+ }
1107
+ undo() {
1108
+ if (!this.canExecuteUndo())
1109
+ return;
1110
+ this.historyIndex--;
1111
+ const content = this.historyStack[this.historyIndex];
1112
+ this.value = content;
1113
+ this.textAreaRef.value = content;
1114
+ }
1115
+ canExecuteUndo() {
1116
+ return this.historyIndex > 0;
1117
+ }
1118
+ redo() {
1119
+ if (!this.canExecuteRedo())
1120
+ return;
1121
+ this.historyIndex++;
1122
+ this.getValueFromHistory();
1123
+ }
1124
+ canExecuteRedo() {
1125
+ return this.historyIndex < this.historyStack.length - 1;
1126
+ }
1127
+ getValueFromHistory() {
1128
+ const content = this.historyStack[this.historyIndex];
1129
+ this.value = content;
1130
+ this.textAreaRef.value = content;
1131
+ }
1132
+ handleTextAreaChanged(event) {
1133
+ this.value = event.detail;
1134
+ this.addToHistory(this.value);
1135
+ }
1136
+ async removeShortcuts() {
1137
+ var _a;
1138
+ (_a = this._keyboardManager) === null || _a === void 0 ? void 0 : _a.unbindAllShortcutKeys();
1139
+ }
1140
+ async componentWillLoad() {
1141
+ this.i18n = await initI18n();
1142
+ }
1143
+ componentDidLoad() {
1144
+ this.initKeyboardManager();
1145
+ this.addToHistory(this.value);
1146
+ }
1147
+ async disconnectedCallback() {
1148
+ await this.removeShortcuts();
1149
+ }
1150
+ getSanitizedValue() {
1151
+ return purify.sanitize(this.value, {
1152
+ ADD_ATTR: ['target', 'rel']
1153
+ });
1154
+ }
1155
+ renderContent() {
1156
+ if (this.previewMode) {
1157
+ return (h("div", { id: 'rich-text-preview-container', class: "preview", innerHTML: this.getSanitizedValue() }));
1158
+ }
1159
+ 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) });
1160
+ }
1161
+ render() {
1162
+ 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 })));
1163
+ }
1164
+ get element() { return getElement(this); }
1165
+ static get watchers() { return {
1166
+ "value": ["observeValue"],
1167
+ "errorMessage": ["observeErrorMessage"]
1168
+ }; }
1169
+ };
1170
+ EzRichText.style = ezRichTextCss;
1171
+
1172
+ const ezRichToolbarCss = ".sc-ez-rich-toolbar-h{display:block;width:100%}.taskbar.sc-ez-rich-toolbar{display:flex;padding:8px;border-radius:4px 4px 0 0}.taskbar-group.sc-ez-rich-toolbar{display:flex;margin-right:15px;padding-right:15px;border-right:1px solid #ddd}.taskbar-group.sc-ez-rich-toolbar:last-child{border-right:none}.preview-btn.sc-ez-rich-toolbar{font-family:Roboto;font-size:14px;background:none;display:flex;align-items:center;padding:0 8px;border-radius:4px;cursor:pointer;color:var(--color--secondary, #383c45);transition:0.3s all ease-in-out;width:110px;justify-content:center}.preview-btn.sc-ez-rich-toolbar:hover{background-color:#f5f5f5}";
1173
+
1174
+ const EzRichToolbar = class {
1175
+ constructor(hostRef) {
1176
+ registerInstance(this, hostRef);
1177
+ this.executeToolbarCommand = createEvent(this, "executeToolbarCommand", 7);
1178
+ this.showPreview = true;
1179
+ this.isPreviewMode = false;
1180
+ this.showConfigs = true;
1181
+ this.showTextFormat = true;
1182
+ this.showUndoRedo = true;
1183
+ }
1184
+ async componentWillLoad() {
1185
+ this.i18n = await initI18n();
1186
+ }
1187
+ handleActionTriggered(event) {
1188
+ this.executeToolbarCommand.emit({ command: event.detail.command, value: event.detail.value });
1189
+ }
1190
+ handleClickPreview() {
1191
+ this.executeToolbarCommand.emit({ command: RICH_TOOLBAR_COMMANDS.PREVIEW });
1192
+ }
1193
+ renderArrows() {
1194
+ if (!this.showUndoRedo)
1195
+ return;
1196
+ return (h("div", { id: "rich-toolbar-undo-redo", class: "taskbar-group" }, h("ez-rich-toolbar-arrows", null)));
1197
+ }
1198
+ renderLetters() {
1199
+ if (!this.showTextFormat)
1200
+ return;
1201
+ return (h("div", { id: "rich-toolbar-text-format", class: "taskbar-group" }, h("ez-rich-toolbar-letters", null)));
1202
+ }
1203
+ renderConfigs() {
1204
+ if (!this.showConfigs)
1205
+ return;
1206
+ return (h("div", { id: "rich-toolbar-options-configs", class: "taskbar-group" }, h("ez-rich-toolbar-configs", null)));
1207
+ }
1208
+ renderPreview() {
1209
+ if (!this.showPreview)
1210
+ return;
1211
+ return (h("div", { class: "taskbar-group" }, h("span", { id: 'rich-text-preview-btn', class: "preview-btn", title: this.getPreviewTitle(), onClick: this.handleClickPreview.bind(this) }, this.isPreviewMode ? this.i18n("ez-rich-text.edit") : this.i18n("ez-rich-text.preview"))));
1212
+ }
1213
+ getPreviewTitle() {
1214
+ return this.isPreviewMode
1215
+ ? this.i18n("ez-rich-text.title.edit")
1216
+ : this.i18n("ez-rich-text.title.preview");
1217
+ }
1218
+ render() {
1219
+ return (h(Host, null, h("div", { class: "taskbar" }, this.renderPreview(), this.renderArrows(), this.renderLetters(), this.renderConfigs())));
1220
+ }
1221
+ };
1222
+ EzRichToolbar.style = ezRichToolbarCss;
1223
+
1224
+ function formatBytes(bytes, decimals = 1) {
1225
+ if (bytes === 0) {
1226
+ return "0 Bytes";
1227
+ }
1228
+ const k = 1024;
1229
+ const dm = decimals < 0 ? 0 : decimals;
1230
+ const sizes = ["Bytes", "Kilobytes", "Megabytes", "Gigabytes", "Terabytes", "Petabytes", "Exabytes", "Zettabytes", "Yottabytes"];
1231
+ const i = Math.floor(Math.log(bytes) / Math.log(k));
1232
+ return parseFloat((bytes / Math.pow(k, i)).toFixed(dm)) + " " + sizes[i];
1233
+ }
1234
+
1235
+ function fileToBase64(file) {
1236
+ return new Promise((resolve, reject) => {
1237
+ try {
1238
+ const reader = new FileReader();
1239
+ reader.onload = () => {
1240
+ resolve(reader.result);
1241
+ };
1242
+ reader.readAsDataURL(file);
1243
+ }
1244
+ catch (error) {
1245
+ reject(error);
1246
+ }
1247
+ });
1248
+ }
1249
+
1250
+ const ezSimpleImageUploaderCss = ".image-uploader-container.sc-ez-simple-image-uploader{font-family:\"Roboto\";color:#2b3a54;display:flex;flex-direction:column;gap:var(--space--10, 10px);justify-content:space-between;align-items:center;padding-bottom:var(--space--8, 8px)}.header.sc-ez-simple-image-uploader{display:flex;font-weight:500;font-size:var(--font-size--medium, 16px)}.actions.sc-ez-simple-image-uploader{display:flex;justify-content:flex-end;gap:var(--space--12, 12px);margin-top:var(--space--12, 12px);width:100%}.drop-zone-section.sc-ez-simple-image-uploader{width:100%}.drop-zone.sc-ez-simple-image-uploader{display:flex;flex-wrap:wrap;background-color:var(--color--petroleum-70, #F4F6F9);padding:var(--space--6, 6px);width:100%;border-radius:var(--space--12, 12px);box-sizing:border-box;min-height:100px}.clickable.sc-ez-simple-image-uploader{cursor:pointer}.dragging.sc-ez-simple-image-uploader{background-color:var(--color--petroleum-100, #C8CCD3)}.drop-zone-container.sc-ez-simple-image-uploader{width:100%;display:flex;flex-wrap:wrap;justify-content:center;align-items:center;border:2px dashed var(--color-strokes, #DCE0E8);border-radius:6px;box-sizing:border-box}.text-error.sc-ez-simple-image-uploader{font-family:var(--font--pattern, \"Roboto\");color:var(--color--red-600, #BD0025);font-size:var(--font-size--small, 12px)}.button-close.sc-ez-simple-image-uploader{border:none;background:none;cursor:pointer}";
1251
+
1252
+ const EzSimpleImageUploader = class {
1253
+ constructor(hostRef) {
1254
+ registerInstance(this, hostRef);
1255
+ this.executeToolbarCommand = createEvent(this, "executeToolbarCommand", 7);
1256
+ this.link = undefined;
1257
+ this.base64 = undefined;
1258
+ this.messageError = undefined;
1259
+ this.selectedFile = undefined;
1260
+ this.maxSize = 500;
1261
+ }
1262
+ /**
1263
+ * Método responsável pela abertura do popup.
1264
+ */
1265
+ async show() {
1266
+ this._popupElement.opened = true;
1267
+ }
1268
+ /**
1269
+ * Método responsável pelo fechamento do popup.
1270
+ */
1271
+ async hide() {
1272
+ this._popupElement.opened = false;
1273
+ }
1274
+ async componentWillLoad() {
1275
+ this.i18n = await initI18n();
1276
+ }
1277
+ async handleCancel() {
1278
+ this.removeSelectedFile();
1279
+ this.executeToolbarCommand.emit({ command: RICH_TOOLBAR_COMMANDS.FOCUS });
1280
+ await this.hide();
1281
+ }
1282
+ removeSelectedFile(event) {
1283
+ event === null || event === void 0 ? void 0 : event.stopPropagation();
1284
+ this.link = undefined;
1285
+ this.base64 = undefined;
1286
+ this.selectedFile = undefined;
1287
+ this.messageError = undefined;
1288
+ }
1289
+ triggerFileSelect() {
1290
+ if (!this.selectedFile) {
1291
+ this._fileInput.click();
1292
+ }
1293
+ }
1294
+ async handleImage(files) {
1295
+ const file = files && files[0];
1296
+ if (!file) {
1297
+ return;
1298
+ }
1299
+ if (file.size < (this.maxSize * 1000)) {
1300
+ this.selectedFile = file;
1301
+ this.base64 = await fileToBase64(file);
1302
+ }
1303
+ else {
1304
+ this.messageError = this.i18n("ez-simple-image-uploader.imageTooLarge", { maxSize: formatBytes(this.maxSize) });
1305
+ }
1306
+ }
1307
+ getFileList(event) {
1308
+ if (event instanceof DragEvent) {
1309
+ return Array.from(event.dataTransfer.files);
1310
+ }
1311
+ else {
1312
+ const input = event.target;
1313
+ return input.files;
1314
+ }
1315
+ }
1316
+ handleFileChange(event) {
1317
+ event.preventDefault();
1318
+ this.messageError = undefined;
1319
+ this._dropZone.classList.remove("dragging");
1320
+ const files = this.getFileList(event);
1321
+ this.handleImage(files);
1322
+ const input = event.target;
1323
+ input.value = "";
1324
+ }
1325
+ handleDragOver(event) {
1326
+ event.stopPropagation();
1327
+ event.preventDefault();
1328
+ }
1329
+ handleDragEnter(event) {
1330
+ event.preventDefault();
1331
+ this._dropZone.classList.add("dragging");
1332
+ }
1333
+ handleDragLeave(event) {
1334
+ event.preventDefault();
1335
+ if (!this._dropZone.contains(event.relatedTarget)) {
1336
+ this._dropZone.classList.remove("dragging");
1337
+ }
1338
+ }
1339
+ async handleActionPopup(event) {
1340
+ if (event.detail === "OK") {
1341
+ await this.handleCreateImgTag();
1342
+ }
1343
+ else if (event.detail === "CANCEL" || event.detail === "CLOSE") {
1344
+ await this.handleCancel();
1345
+ }
1346
+ }
1347
+ async handleCreateImgTag() {
1348
+ var _a;
1349
+ const tag = `<img src="${(_a = this.base64) !== null && _a !== void 0 ? _a : this.link}" alt="${this.i18n("ez-simple-image-uploader.imageAlt")}" />`;
1350
+ this.executeToolbarCommand.emit({ command: RICH_TOOLBAR_COMMANDS.FORMAT, value: tag });
1351
+ this.removeSelectedFile();
1352
+ await this.hide();
1353
+ }
1354
+ getOkButtonStatus() {
1355
+ var _a;
1356
+ return (!this.base64 && !((_a = this.link) === null || _a === void 0 ? void 0 : _a.trim())) ? 'DISABLED' : 'ENABLED';
1357
+ }
1358
+ render() {
1359
+ return (h("ez-popup", { ref: ref => this._popupElement = ref, heightMode: "auto", size: "small", useHeader: false, onEzClosePopup: () => this.handleCancel() }, h("div", null, h("ez-modal-container", { modalTitle: this.i18n("ez-simple-image-uploader.uploadTitle"), modalSubTitle: this.i18n("ez-simple-image-uploader.uploadSubtitle"), okButtonLabel: this.i18n("ez-simple-image-uploader.submit"), cancelButtonLabel: this.i18n("app.cancel"), onEzModalAction: this.handleActionPopup.bind(this), okButtonStatus: this.getOkButtonStatus() }, h("div", { class: "image-uploader-container" }, h("ez-tooltip", { message: this.i18n("ez-simple-image-uploader.tooltipMessage"), active: !!this.selectedFile }, h("ez-text-input", { label: this.i18n("ez-simple-image-uploader.urlInputLabel"), value: this.link, onEzChange: (e) => this.link = e.detail, enabled: !this.selectedFile })), h("span", null, this.i18n("ez-simple-image-uploader.orText")), h("section", { class: "drop-zone-section" }, h("div", { ref: (ref) => this._dropZone = ref, class: "drop-zone", onDrop: (ev) => this.handleFileChange(ev), onDragOver: (ev) => this.handleDragOver(ev), onDragEnter: (ev) => this.handleDragEnter(ev), onDragLeave: (ev) => this.handleDragLeave(ev) }, h("div", { class: {
1360
+ "drop-zone-container": true,
1361
+ "clickable": !this.selectedFile,
1362
+ }, onClick: () => this.triggerFileSelect() }, !!this.selectedFile ?
1363
+ h(Fragment, null, h("span", { class: "ez-text ez-text--primary ez-text--medium" }, this.selectedFile.name, " (", formatBytes(this.selectedFile.size), ")"), h("button", { class: "button-close", onClick: (event) => this.removeSelectedFile(event), title: this.i18n("ez-simple-image-uploader.removeFile") }, h("ez-icon", { iconName: "close" })))
1364
+ :
1365
+ h(Fragment, null, h("ez-icon", { iconName: "anexo" }), h("span", { class: "ez-text ez-text--primary ez-text--medium" }, this.i18n("ez-simple-image-uploader.dragDropText")))), h("input", { ref: (el) => this._fileInput = el, type: "file", accept: "image/*", style: { display: "none" }, onChange: (ev) => this.handleFileChange(ev) })), !!this.messageError && h("span", { class: "text-error" }, this.messageError)))))));
1366
+ }
1367
+ };
1368
+ EzSimpleImageUploader.style = ezSimpleImageUploaderCss;
1369
+
1370
+ 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}";
1371
+
1372
+ const EzTextEdit = class {
1373
+ constructor(hostRef) {
1374
+ registerInstance(this, hostRef);
1375
+ this.saveEdition = createEvent(this, "saveEdition", 7);
1376
+ this.cancelEdition = createEvent(this, "cancelEdition", 7);
1377
+ this._newValue = undefined;
1378
+ this.value = undefined;
1379
+ this.styled = undefined;
1380
+ }
1381
+ /**
1382
+ * Aplica foco no campo.
1383
+ */
1384
+ async applyFocusSelect() {
1385
+ this.calcSizeInput(this.value, true);
1386
+ }
1387
+ calcSizeInput(value, setSelect = false) {
1388
+ var _a, _b;
1389
+ const textInput = (_b = (_a = this._inputElement) === null || _a === void 0 ? void 0 : _a.shadowRoot) === null || _b === void 0 ? void 0 : _b.querySelector('input');
1390
+ if (textInput != undefined) {
1391
+ const sizeText = this.getWidthValue(value);
1392
+ textInput.style.width = sizeText + 'px';
1393
+ if (setSelect) {
1394
+ setTimeout(() => textInput.select(), 100);
1395
+ }
1396
+ }
1397
+ }
1398
+ getWidthValue(value) {
1399
+ if (this._valueBasis != undefined) {
1400
+ const span = this._valueBasis;
1401
+ if (value != undefined) {
1402
+ const cursorSpace = 2;
1403
+ span.innerHTML = value;
1404
+ return span.clientWidth > 0 ? (span.clientWidth + cursorSpace) : cursorSpace;
1405
+ }
1406
+ else {
1407
+ span.innerHTML = "";
1408
+ }
1409
+ }
1410
+ return 0;
1411
+ }
1412
+ setStyledInput() {
1413
+ var _a, _b;
1414
+ let fontSize = "";
1415
+ let fontWeight = "";
1416
+ let fontFamily = "";
1417
+ if (this.styled != undefined) {
1418
+ fontSize = this.styled.fontSize;
1419
+ fontWeight = this.styled.fontWeight;
1420
+ fontFamily = this.styled.fontFamily;
1421
+ }
1422
+ const textInput = (_b = (_a = this._inputElement) === null || _a === void 0 ? void 0 : _a.shadowRoot) === null || _b === void 0 ? void 0 : _b.querySelector('input');
1423
+ if (textInput != undefined) {
1424
+ textInput.style.fontSize = fontSize;
1425
+ textInput.style.fontWeight = fontWeight;
1426
+ textInput.style.fontFamily = fontFamily;
1427
+ }
1428
+ const span = this._valueBasis;
1429
+ if (span != undefined) {
1430
+ span.style.fontSize = fontSize;
1431
+ span.style.fontWeight = fontWeight;
1432
+ span.style.fontFamily = fontFamily;
1433
+ }
1434
+ }
1435
+ handleSaveEdition() {
1436
+ if (!this._newValue) {
1437
+ ApplicationUtils.alert(this.i18n("app.warning"), this.i18n("ez-text-edit.emptyFieldWarning")).then(() => {
1438
+ this.setNewValue(this.value, true);
1439
+ });
1440
+ return;
1441
+ }
1442
+ this.saveEdition.emit({ value: this.value, newValue: this._newValue });
1443
+ }
1444
+ handleCancelEdition() {
1445
+ this.cancelEdition.emit();
1446
+ }
1447
+ setNewValue(value, setSelect = false) {
1448
+ this._newValue = value;
1449
+ this.calcSizeInput(this._newValue, setSelect);
1450
+ }
1451
+ async componentWillLoad() {
1452
+ this.i18n = await initI18n();
1453
+ }
1454
+ componentDidLoad() {
1455
+ this.applyFocusSelect();
1456
+ this.setNewValue(this.value);
1457
+ }
1458
+ componentDidRender() {
1459
+ this.setStyledInput();
1460
+ }
1461
+ render() {
1462
+ ElementIDUtils.addIDInfoIfNotExists(this._element, 'input');
1463
+ 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(); } })));
1464
+ }
1465
+ get _element() { return getElement(this); }
1466
+ };
1467
+ EzTextEdit.style = ezTextEditCss;
1468
+
1469
+ 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, EzLinkBuilder as ez_link_builder, EzMultiSelectInput as ez_multi_select_input, EzRichText as ez_rich_text, EzRichToolbar as ez_rich_toolbar, EzSimpleImageUploader as ez_simple_image_uploader, EzTextEdit as ez_text_edit };