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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (401) hide show
  1. package/dist/cjs/{ApplicationUtils-006ca96f.js → ApplicationUtils-88dfe345.js} +1 -1
  2. package/dist/cjs/{app-globals-5cb12916.js → app-globals-c1d07d68.js} +1 -1
  3. package/dist/cjs/{classic-search-list_7.cjs.entry.js → classic-search-list_8.cjs.entry.js} +204 -6
  4. package/dist/cjs/ez-actions-button.cjs.entry.js +3 -3
  5. package/dist/cjs/ez-alert-list.cjs.entry.js +2 -2
  6. package/dist/cjs/ez-alert.cjs.entry.js +1 -1
  7. package/dist/cjs/ez-application.cjs.entry.js +1 -1
  8. package/dist/cjs/ez-avatar.cjs.entry.js +2 -2
  9. package/dist/cjs/ez-badge.cjs.entry.js +1 -1
  10. package/dist/cjs/ez-breadcrumb.cjs.entry.js +1 -1
  11. package/dist/cjs/ez-button.cjs.entry.js +1 -1
  12. package/dist/cjs/ez-calendar.cjs.entry.js +2 -2
  13. package/dist/cjs/ez-card-item.cjs.entry.js +1 -1
  14. package/dist/cjs/ez-chart.cjs.entry.js +1 -1
  15. package/dist/cjs/ez-check.cjs.entry.js +1 -1
  16. package/dist/cjs/ez-chip.cjs.entry.js +1 -1
  17. package/dist/cjs/ez-classic-combo-box.cjs.entry.js +5 -3
  18. package/dist/cjs/ez-classic-date-input.cjs.entry.js +3 -3
  19. package/dist/cjs/ez-classic-date-time-input.cjs.entry.js +2 -2
  20. package/dist/cjs/ez-classic-input.cjs.entry.js +50 -4
  21. package/dist/cjs/ez-classic-number-input.cjs.entry.js +2 -2
  22. package/dist/cjs/ez-classic-search-plus.cjs.entry.js +27 -14
  23. package/dist/cjs/ez-classic-search.cjs.entry.js +3 -3
  24. package/dist/cjs/ez-classic-text-area.cjs.entry.js +13 -2
  25. package/dist/cjs/ez-classic-time-input.cjs.entry.js +5 -4
  26. package/dist/cjs/ez-collapsible-box.cjs.entry.js +3 -3
  27. package/dist/cjs/ez-combo-box.cjs.entry.js +8 -3
  28. package/dist/cjs/ez-date-input.cjs.entry.js +2 -2
  29. package/dist/cjs/ez-date-time-input.cjs.entry.js +2 -2
  30. package/dist/cjs/ez-dialog.cjs.entry.js +2 -2
  31. package/dist/cjs/ez-double-list.cjs.entry.js +2 -2
  32. package/dist/cjs/ez-dropdown.cjs.entry.js +2 -2
  33. package/dist/cjs/ez-empty-card.cjs.entry.js +2 -2
  34. package/dist/cjs/ez-file-item.cjs.entry.js +2 -2
  35. package/dist/cjs/ez-filter-input.cjs.entry.js +1 -1
  36. package/dist/cjs/ez-form-view.cjs.entry.js +23 -4
  37. package/dist/cjs/ez-form.cjs.entry.js +66 -44
  38. package/dist/cjs/ez-grid-pagination.cjs.entry.js +227 -0
  39. package/dist/cjs/ez-grid-view.cjs.entry.js +1 -1
  40. package/dist/cjs/ez-grid.cjs.entry.js +236 -173
  41. package/dist/cjs/ez-guide-navigator.cjs.entry.js +2 -2
  42. package/dist/cjs/ez-icon.cjs.entry.js +2 -2
  43. package/dist/cjs/ez-link-builder_6.cjs.entry.js +2 -2
  44. package/dist/cjs/ez-list-item.cjs.entry.js +1 -1
  45. package/dist/cjs/ez-list.cjs.entry.js +2 -2
  46. package/dist/cjs/ez-loading-bar.cjs.entry.js +1 -1
  47. package/dist/cjs/ez-modal-container.cjs.entry.js +2 -2
  48. package/dist/cjs/ez-modal.cjs.entry.js +2 -2
  49. package/dist/cjs/ez-multi-selection-list_5.cjs.entry.js +675 -0
  50. package/dist/cjs/ez-number-input.cjs.entry.js +2 -2
  51. package/dist/cjs/ez-pagination.cjs.entry.js +2 -2
  52. package/dist/cjs/ez-popover.cjs.entry.js +1 -1
  53. package/dist/cjs/ez-popup.cjs.entry.js +5 -6
  54. package/dist/cjs/ez-progress-bar.cjs.entry.js +1 -1
  55. package/dist/cjs/ez-radio-button.cjs.entry.js +1 -1
  56. package/dist/cjs/ez-record-navigation.cjs.entry.js +121 -0
  57. package/dist/cjs/ez-rich-toolbar-item.cjs.entry.js +1 -1
  58. package/dist/cjs/ez-scroller_2.cjs.entry.js +82 -15
  59. package/dist/cjs/ez-search-plus.cjs.entry.js +26 -12
  60. package/dist/cjs/ez-search-result-list.cjs.entry.js +2 -2
  61. package/dist/cjs/ez-search.cjs.entry.js +12 -5
  62. package/dist/cjs/ez-sidebar-navigator.cjs.entry.js +2 -2
  63. package/dist/cjs/ez-skeleton.cjs.entry.js +2 -2
  64. package/dist/cjs/ez-sortable-list.cjs.entry.js +100 -115
  65. package/dist/cjs/ez-spinner.cjs.entry.js +2 -2
  66. package/dist/cjs/ez-split-button.cjs.entry.js +5 -5
  67. package/dist/cjs/ez-split-item.cjs.entry.js +3 -3
  68. package/dist/cjs/ez-split-panel.cjs.entry.js +1 -1
  69. package/dist/cjs/ez-tabselector.cjs.entry.js +210 -62
  70. package/dist/cjs/ez-tag-input.cjs.entry.js +1 -1
  71. package/dist/cjs/ez-tag.cjs.entry.js +1 -1
  72. package/dist/cjs/ez-text-area.cjs.entry.js +1 -1
  73. package/dist/cjs/ez-text-input.cjs.entry.js +22 -16
  74. package/dist/cjs/ez-tile-medium.cjs.entry.js +1 -1
  75. package/dist/cjs/ez-tile.cjs.entry.js +1 -1
  76. package/dist/cjs/ez-time-input.cjs.entry.js +2 -2
  77. package/dist/cjs/ez-toast.cjs.entry.js +1 -1
  78. package/dist/cjs/ez-tooltip.cjs.entry.js +47 -9
  79. package/dist/cjs/ez-tree.cjs.entry.js +2 -2
  80. package/dist/cjs/ez-underface.cjs.entry.js +1 -1
  81. package/dist/cjs/ez-upload.cjs.entry.js +3 -3
  82. package/dist/cjs/ez-view-stack.cjs.entry.js +1 -1
  83. package/dist/cjs/ezui.cjs.js +4 -4
  84. package/dist/cjs/filter-column.cjs.entry.js +10 -4
  85. package/dist/cjs/{floating-ui.dom.esm-f4d87617.js → floating-ui.dom.esm-9c8bfebb.js} +258 -119
  86. package/dist/cjs/{index-350d0fa0.js → index-9739c242.js} +91 -30
  87. package/dist/cjs/{index-9e5554cb.js → index-a7b0c73d.js} +16 -19
  88. package/dist/cjs/loader.cjs.js +4 -4
  89. package/dist/cjs/{search-column-46d02656.js → search-column-6e90fb19.js} +19 -10
  90. package/dist/collection/collection-manifest.json +8 -0
  91. package/dist/collection/components/ez-classic-combo-box/ez-classic-combo-box.js +21 -2
  92. package/dist/collection/components/ez-classic-date-input/ez-classic-date-input.js +1 -1
  93. package/dist/collection/components/ez-classic-input/ez-classic-input.js +47 -2
  94. package/dist/collection/components/ez-classic-input/utils/maskFormatter.js +2 -1
  95. package/dist/collection/components/ez-classic-search-plus/ez-classic-search-plus.css +22 -0
  96. package/dist/collection/components/ez-classic-search-plus/ez-classic-search-plus.js +26 -11
  97. package/dist/collection/components/ez-classic-text-area/ez-classic-text-area.js +32 -1
  98. package/dist/collection/components/ez-classic-time-input/ez-classic-time-input.js +3 -2
  99. package/dist/collection/components/ez-combo-box/ez-combo-box.js +5 -0
  100. package/dist/collection/components/ez-dropdown/ez-dropdown.css +2 -2
  101. package/dist/collection/components/ez-empty-card/ez-empty-card.js +7 -7
  102. package/dist/collection/components/ez-form-view/ez-form-view.css +19 -5
  103. package/dist/collection/components/ez-form-view/ez-form-view.js +1 -1
  104. package/dist/collection/components/ez-form-view/fieldbuilder/FieldBuilder.js +2 -0
  105. package/dist/collection/components/ez-form-view/fieldbuilder/templates/MultiSelectInput.tpl.js +17 -0
  106. package/dist/collection/components/ez-grid/controller/ag-grid/AgGridController.js +163 -27
  107. package/dist/collection/components/ez-grid/controller/ag-grid/DataSource.js +8 -1
  108. package/dist/collection/components/ez-grid/controller/ag-grid/gridColumnDefaultWidths.js +23 -0
  109. package/dist/collection/components/ez-grid/controller/ag-grid/utils/AggFunctionResolver.js +24 -0
  110. package/dist/collection/components/ez-grid/ez-grid.css +5 -60
  111. package/dist/collection/components/ez-grid/ez-grid.js +52 -150
  112. package/dist/collection/components/ez-grid/interfaces/IAggegationFunc.js +1 -0
  113. package/dist/collection/components/ez-grid/subcomponents/filter-column.css +10 -0
  114. package/dist/collection/components/ez-grid/subcomponents/filter-column.js +7 -1
  115. package/dist/collection/components/ez-grid/subcomponents/selection-counter.js +1 -1
  116. package/dist/collection/components/ez-grid/utils/index.js +1 -0
  117. package/dist/collection/components/ez-grid-pagination/ez-grid-pagination.css +111 -0
  118. package/dist/collection/components/ez-grid-pagination/ez-grid-pagination.js +410 -0
  119. package/dist/collection/components/ez-icon/ez-icon.css +1153 -1146
  120. package/dist/collection/components/ez-image-input/ez-image-input.css +24 -8
  121. package/dist/collection/components/ez-image-input/ez-image-input.js +6 -1
  122. package/dist/collection/components/ez-multi-select-input/ez-multi-select-input.css +221 -0
  123. package/dist/collection/components/ez-multi-select-input/ez-multi-select-input.js +555 -0
  124. package/dist/collection/components/ez-multi-selection-list/ez-multi-selection-list.css +27 -6
  125. package/dist/collection/components/ez-multi-selection-list/ez-multi-selection-list.js +66 -10
  126. package/dist/collection/components/ez-popover-plus/ez-popover-plus.js +20 -0
  127. package/dist/collection/components/ez-popover-plus/subcomponent/ez-popover-core.js +36 -2
  128. package/dist/collection/components/ez-popup/ez-popup.js +3 -4
  129. package/dist/collection/components/ez-record-navigation/ez-record-navigation.css +51 -0
  130. package/dist/collection/components/ez-record-navigation/ez-record-navigation.js +246 -0
  131. package/dist/collection/components/ez-scroller/EzScrollNavigationMode.js +5 -0
  132. package/dist/collection/components/ez-scroller/ez-scroller.css +117 -11
  133. package/dist/collection/components/ez-scroller/ez-scroller.js +118 -13
  134. package/dist/collection/components/ez-search/ez-search.css +4 -0
  135. package/dist/collection/components/ez-search/ez-search.js +22 -1
  136. package/dist/collection/components/ez-search-plus/ez-search-plus.js +38 -10
  137. package/dist/collection/components/ez-sortable-list/ez-sortable-list.css +1 -1
  138. package/dist/collection/components/ez-split-button/ez-split-button.css +1 -1
  139. package/dist/collection/components/ez-split-button/ez-split-button.js +2 -2
  140. package/dist/collection/components/ez-tabselector/ez-tabselector.css +29 -1
  141. package/dist/collection/components/ez-tabselector/ez-tabselector.js +254 -62
  142. package/dist/collection/components/ez-text-input/ez-text-input.js +21 -15
  143. package/dist/collection/components/ez-tooltip/ez-tooltip.js +45 -7
  144. package/dist/collection/utils/form/FormMetadata.js +62 -40
  145. package/dist/collection/utils/i18n/locales/en-us.js +27 -4
  146. package/dist/collection/utils/i18n/locales/es-es.js +27 -4
  147. package/dist/collection/utils/i18n/locales/pt-br.js +27 -4
  148. package/dist/collection/utils/interfaces/AbstractFieldMetadata.js +14 -2
  149. package/dist/collection/utils/searchColumn/search-column.js +2 -5
  150. package/dist/custom-elements/index.d.ts +18 -0
  151. package/dist/custom-elements/index.js +1872 -634
  152. package/dist/esm/{ApplicationUtils-0c5cb207.js → ApplicationUtils-f7721533.js} +1 -1
  153. package/dist/esm/{app-globals-1db10325.js → app-globals-6e258867.js} +1 -1
  154. package/dist/esm/{classic-search-list_7.entry.js → classic-search-list_8.entry.js} +204 -7
  155. package/dist/esm/ez-actions-button.entry.js +3 -3
  156. package/dist/esm/ez-alert-list.entry.js +2 -2
  157. package/dist/esm/ez-alert.entry.js +1 -1
  158. package/dist/esm/ez-application.entry.js +1 -1
  159. package/dist/esm/ez-avatar.entry.js +2 -2
  160. package/dist/esm/ez-badge.entry.js +1 -1
  161. package/dist/esm/ez-breadcrumb.entry.js +1 -1
  162. package/dist/esm/ez-button.entry.js +1 -1
  163. package/dist/esm/ez-calendar.entry.js +2 -2
  164. package/dist/esm/ez-card-item.entry.js +1 -1
  165. package/dist/esm/ez-chart.entry.js +1 -1
  166. package/dist/esm/ez-check.entry.js +1 -1
  167. package/dist/esm/ez-chip.entry.js +1 -1
  168. package/dist/esm/ez-classic-combo-box.entry.js +5 -3
  169. package/dist/esm/ez-classic-date-input.entry.js +3 -3
  170. package/dist/esm/ez-classic-date-time-input.entry.js +2 -2
  171. package/dist/esm/ez-classic-input.entry.js +50 -4
  172. package/dist/esm/ez-classic-number-input.entry.js +2 -2
  173. package/dist/esm/ez-classic-search-plus.entry.js +27 -14
  174. package/dist/esm/ez-classic-search.entry.js +3 -3
  175. package/dist/esm/ez-classic-text-area.entry.js +13 -2
  176. package/dist/esm/ez-classic-time-input.entry.js +5 -4
  177. package/dist/esm/ez-collapsible-box.entry.js +3 -3
  178. package/dist/esm/ez-combo-box.entry.js +8 -3
  179. package/dist/esm/ez-date-input.entry.js +2 -2
  180. package/dist/esm/ez-date-time-input.entry.js +2 -2
  181. package/dist/esm/ez-dialog.entry.js +2 -2
  182. package/dist/esm/ez-double-list.entry.js +2 -2
  183. package/dist/esm/ez-dropdown.entry.js +2 -2
  184. package/dist/esm/ez-empty-card.entry.js +2 -2
  185. package/dist/esm/ez-file-item.entry.js +2 -2
  186. package/dist/esm/ez-filter-input.entry.js +1 -1
  187. package/dist/esm/ez-form-view.entry.js +23 -4
  188. package/dist/esm/ez-form.entry.js +66 -44
  189. package/dist/esm/ez-grid-pagination.entry.js +223 -0
  190. package/dist/esm/ez-grid-view.entry.js +1 -1
  191. package/dist/esm/ez-grid.entry.js +237 -174
  192. package/dist/esm/ez-guide-navigator.entry.js +2 -2
  193. package/dist/esm/ez-icon.entry.js +2 -2
  194. package/dist/esm/ez-link-builder_6.entry.js +2 -2
  195. package/dist/esm/ez-list-item.entry.js +1 -1
  196. package/dist/esm/ez-list.entry.js +2 -2
  197. package/dist/esm/ez-loading-bar.entry.js +1 -1
  198. package/dist/esm/ez-modal-container.entry.js +2 -2
  199. package/dist/esm/ez-modal.entry.js +2 -2
  200. package/dist/esm/ez-multi-selection-list_5.entry.js +667 -0
  201. package/dist/esm/ez-number-input.entry.js +2 -2
  202. package/dist/esm/ez-pagination.entry.js +2 -2
  203. package/dist/esm/ez-popover.entry.js +1 -1
  204. package/dist/esm/ez-popup.entry.js +5 -6
  205. package/dist/esm/ez-progress-bar.entry.js +1 -1
  206. package/dist/esm/ez-radio-button.entry.js +1 -1
  207. package/dist/esm/ez-record-navigation.entry.js +117 -0
  208. package/dist/esm/ez-rich-toolbar-item.entry.js +1 -1
  209. package/dist/esm/ez-scroller_2.entry.js +82 -15
  210. package/dist/esm/ez-search-plus.entry.js +26 -12
  211. package/dist/esm/ez-search-result-list.entry.js +2 -2
  212. package/dist/esm/ez-search.entry.js +12 -5
  213. package/dist/esm/ez-sidebar-navigator.entry.js +2 -2
  214. package/dist/esm/ez-skeleton.entry.js +2 -2
  215. package/dist/esm/ez-sortable-list.entry.js +100 -115
  216. package/dist/esm/ez-spinner.entry.js +2 -2
  217. package/dist/esm/ez-split-button.entry.js +5 -5
  218. package/dist/esm/ez-split-item.entry.js +3 -3
  219. package/dist/esm/ez-split-panel.entry.js +1 -1
  220. package/dist/esm/ez-tabselector.entry.js +210 -62
  221. package/dist/esm/ez-tag-input.entry.js +1 -1
  222. package/dist/esm/ez-tag.entry.js +1 -1
  223. package/dist/esm/ez-text-area.entry.js +1 -1
  224. package/dist/esm/ez-text-input.entry.js +22 -16
  225. package/dist/esm/ez-tile-medium.entry.js +1 -1
  226. package/dist/esm/ez-tile.entry.js +1 -1
  227. package/dist/esm/ez-time-input.entry.js +2 -2
  228. package/dist/esm/ez-toast.entry.js +1 -1
  229. package/dist/esm/ez-tooltip.entry.js +47 -9
  230. package/dist/esm/ez-tree.entry.js +2 -2
  231. package/dist/esm/ez-underface.entry.js +1 -1
  232. package/dist/esm/ez-upload.entry.js +3 -3
  233. package/dist/esm/ez-view-stack.entry.js +1 -1
  234. package/dist/esm/ezui.js +5 -5
  235. package/dist/esm/filter-column.entry.js +10 -4
  236. package/dist/esm/{floating-ui.dom.esm-ad30f2f0.js → floating-ui.dom.esm-0c464cef.js} +258 -120
  237. package/dist/esm/{index-225aa0c3.js → index-9e6dab5b.js} +91 -30
  238. package/dist/esm/{index-5a720e56.js → index-baa5e267.js} +17 -19
  239. package/dist/esm/loader.js +5 -5
  240. package/dist/esm/{search-column-2da15ef5.js → search-column-7d7f0331.js} +19 -10
  241. package/dist/ezui/ezui.esm.js +1 -1
  242. package/dist/ezui/p-01e652c6.entry.js +1 -0
  243. package/dist/ezui/p-0592535f.entry.js +1 -0
  244. package/dist/ezui/{p-3453dad5.entry.js → p-063bb342.entry.js} +1 -1
  245. package/dist/ezui/{p-75e650ff.entry.js → p-0ac8bd66.entry.js} +1 -1
  246. package/dist/ezui/p-0d80e3ec.entry.js +1 -0
  247. package/dist/ezui/{p-e039e049.entry.js → p-108503ed.entry.js} +1 -1
  248. package/dist/ezui/{p-29f0de90.entry.js → p-1166b2d5.entry.js} +1 -1
  249. package/dist/ezui/p-1222e1b6.entry.js +1 -0
  250. package/dist/ezui/p-15873627.js +1 -0
  251. package/dist/ezui/p-178cb9df.entry.js +1 -0
  252. package/dist/ezui/p-1b1b0af3.entry.js +1 -0
  253. package/dist/ezui/{p-81461d2f.entry.js → p-1e7a8633.entry.js} +1 -1
  254. package/dist/ezui/{p-6b51c9cc.entry.js → p-1f50fa05.entry.js} +1 -1
  255. package/dist/ezui/{p-cf33bc48.entry.js → p-20c024f7.entry.js} +1 -1
  256. package/dist/ezui/{p-e4c7eb39.js → p-23a36bb6.js} +2 -2
  257. package/dist/ezui/p-2856c545.entry.js +1 -0
  258. package/dist/ezui/{p-9d515e5b.entry.js → p-2ae127bc.entry.js} +1 -1
  259. package/dist/ezui/{p-05bcbe61.entry.js → p-2ebd7383.entry.js} +1 -1
  260. package/dist/ezui/p-3e84df1c.entry.js +1 -0
  261. package/dist/ezui/p-3fae7072.entry.js +1 -0
  262. package/dist/ezui/{p-f7ca8634.entry.js → p-411c0222.entry.js} +1 -1
  263. package/dist/ezui/p-42e1e733.js +1 -0
  264. package/dist/ezui/{p-2fa490f1.entry.js → p-45245c32.entry.js} +1 -1
  265. package/dist/ezui/{p-534209bf.entry.js → p-46b1b2ac.entry.js} +1 -1
  266. package/dist/ezui/{p-12cc95dc.entry.js → p-54af1af0.entry.js} +1 -1
  267. package/dist/ezui/p-55434123.entry.js +1 -0
  268. package/dist/ezui/{p-6fc26622.entry.js → p-5ed81457.entry.js} +1 -1
  269. package/dist/ezui/{p-51e34317.entry.js → p-6369a0cd.entry.js} +1 -1
  270. package/dist/ezui/p-6791d05f.entry.js +1 -0
  271. package/dist/ezui/{p-7fe5a9eb.entry.js → p-6d46f862.entry.js} +46 -46
  272. package/dist/ezui/{p-0b531233.entry.js → p-6d596a5a.entry.js} +1 -1
  273. package/dist/ezui/p-6da0dc70.entry.js +1 -0
  274. package/dist/ezui/{p-1723f728.entry.js → p-6f77a359.entry.js} +1 -1
  275. package/dist/ezui/p-72e77b45.entry.js +1 -0
  276. package/dist/ezui/{p-636ea910.entry.js → p-73461028.entry.js} +1 -1
  277. package/dist/ezui/{p-a6ea8da3.entry.js → p-7424d520.entry.js} +1 -1
  278. package/dist/ezui/{p-9fb7131e.entry.js → p-7a07c50f.entry.js} +1 -1
  279. package/dist/ezui/p-7b078125.entry.js +1 -0
  280. package/dist/ezui/p-7df45688.entry.js +1 -0
  281. package/dist/ezui/{p-e195eaad.entry.js → p-7f792043.entry.js} +1 -1
  282. package/dist/ezui/{p-e963cb3f.entry.js → p-881abc22.entry.js} +1 -1
  283. package/dist/ezui/{p-82fa4b09.entry.js → p-8df1ca33.entry.js} +1 -1
  284. package/dist/ezui/{p-78e975b4.entry.js → p-91c9d50e.entry.js} +1 -1
  285. package/dist/ezui/{p-05e68ab3.entry.js → p-93e1c917.entry.js} +1 -1
  286. package/dist/ezui/{p-82e1d7fc.entry.js → p-99556756.entry.js} +1 -1
  287. package/dist/ezui/{p-0ba284cd.entry.js → p-9bd78d39.entry.js} +1 -1
  288. package/dist/ezui/{p-c2b20f78.entry.js → p-9f5fa3f9.entry.js} +1 -1
  289. package/dist/ezui/{p-bc693db6.entry.js → p-a0bf1fc7.entry.js} +1 -1
  290. package/dist/ezui/p-a11e4e8e.entry.js +1 -0
  291. package/dist/ezui/{p-9bcfa689.entry.js → p-a3075f52.entry.js} +1 -1
  292. package/dist/ezui/{p-f26b97e9.entry.js → p-a3ada561.entry.js} +1 -1
  293. package/dist/ezui/{p-dfca5946.entry.js → p-a80b1287.entry.js} +1 -1
  294. package/dist/ezui/p-a9ab6cb9.entry.js +1 -0
  295. package/dist/ezui/{p-9825c1d2.js → p-ad5e263d.js} +1 -1
  296. package/dist/ezui/{p-d57ea090.entry.js → p-b06294c9.entry.js} +1 -1
  297. package/dist/ezui/{p-4a876b8b.entry.js → p-b50289bb.entry.js} +1 -1
  298. package/dist/ezui/p-b66ae5c5.entry.js +1 -0
  299. package/dist/ezui/{p-e0380234.entry.js → p-b8cd501a.entry.js} +1 -1
  300. package/dist/ezui/p-b986da95.entry.js +7 -0
  301. package/dist/ezui/p-bc2f844e.entry.js +1 -0
  302. package/dist/ezui/{p-0820f8c3.entry.js → p-c25a4d30.entry.js} +1 -1
  303. package/dist/ezui/{p-55a9e4ba.entry.js → p-c37fb359.entry.js} +1 -1
  304. package/dist/ezui/{p-e0fd2ce5.entry.js → p-cb00863d.entry.js} +1 -1
  305. package/dist/ezui/{p-181cb82f.entry.js → p-d5684cdc.entry.js} +1 -1
  306. package/dist/ezui/{p-a9432878.entry.js → p-d6742c1e.entry.js} +1 -1
  307. package/dist/ezui/{p-770cf2b8.entry.js → p-d6f50207.entry.js} +1 -1
  308. package/dist/ezui/{p-458027b5.entry.js → p-d70805e4.entry.js} +1 -1
  309. package/dist/ezui/p-d81a15fc.entry.js +1 -0
  310. package/dist/ezui/p-d8b69419.entry.js +1 -0
  311. package/dist/ezui/p-d8cc640d.entry.js +1 -0
  312. package/dist/ezui/p-de14fe07.js +1 -0
  313. package/dist/ezui/p-df6173c8.entry.js +1 -0
  314. package/dist/ezui/{p-be2e39c5.entry.js → p-dfced8c7.entry.js} +1 -1
  315. package/dist/ezui/{p-e275353b.entry.js → p-e3d6b544.entry.js} +1 -1
  316. package/dist/ezui/p-e63a0479.js +1 -0
  317. package/dist/ezui/{p-fe0bca65.entry.js → p-e692c2a7.entry.js} +1 -1
  318. package/dist/ezui/{p-000159dc.entry.js → p-e75c7a23.entry.js} +1 -1
  319. package/dist/ezui/{p-e9b409c1.entry.js → p-e7a7c594.entry.js} +1 -1
  320. package/dist/ezui/{p-b21efe83.entry.js → p-e8c57463.entry.js} +1 -1
  321. package/dist/ezui/{p-75443a91.entry.js → p-e8cd003b.entry.js} +1 -1
  322. package/dist/ezui/p-ed790867.entry.js +1 -0
  323. package/dist/ezui/p-f2e0acf5.entry.js +1 -0
  324. package/dist/ezui/{p-980f1f18.entry.js → p-f34ec732.entry.js} +1 -1
  325. package/dist/ezui/{p-f32d5a82.entry.js → p-f498f6b5.entry.js} +1 -1
  326. package/dist/ezui/{p-44b39e81.entry.js → p-fa6732f2.entry.js} +1 -1
  327. package/dist/ezui/{p-2c123fdf.entry.js → p-fb27b98d.entry.js} +1 -1
  328. package/dist/ezui/{p-d3aca6aa.entry.js → p-fc11f5b9.entry.js} +1 -1
  329. package/dist/types/components/ez-classic-combo-box/ez-classic-combo-box.d.ts +2 -0
  330. package/dist/types/components/ez-classic-input/ez-classic-input.d.ts +6 -0
  331. package/dist/types/components/ez-classic-search-plus/ez-classic-search-plus.d.ts +3 -0
  332. package/dist/types/components/ez-classic-text-area/ez-classic-text-area.d.ts +3 -0
  333. package/dist/types/components/ez-empty-card/ez-empty-card.d.ts +2 -2
  334. package/dist/types/components/ez-form-view/fieldbuilder/templates/MultiSelectInput.tpl.d.ts +2 -0
  335. package/dist/types/components/ez-grid/controller/EzGridController.d.ts +2 -0
  336. package/dist/types/components/ez-grid/controller/ag-grid/AgGridController.d.ts +16 -0
  337. package/dist/types/components/ez-grid/controller/ag-grid/gridColumnDefaultWidths.d.ts +4 -0
  338. package/dist/types/components/ez-grid/controller/ag-grid/utils/AggFunctionResolver.d.ts +2 -0
  339. package/dist/types/components/ez-grid/ez-grid.d.ts +10 -27
  340. package/dist/types/components/ez-grid/interfaces/IAggegationFunc.d.ts +3 -0
  341. package/dist/types/components/ez-grid/utils/index.d.ts +1 -0
  342. package/dist/types/components/ez-grid-pagination/ez-grid-pagination.d.ts +75 -0
  343. package/dist/types/components/ez-image-input/ez-image-input.d.ts +1 -0
  344. package/dist/types/components/ez-multi-select-input/ez-multi-select-input.d.ts +119 -0
  345. package/dist/types/components/ez-multi-selection-list/ez-multi-selection-list.d.ts +8 -0
  346. package/dist/types/components/ez-popover-plus/ez-popover-plus.d.ts +7 -0
  347. package/dist/types/components/ez-popover-plus/subcomponent/ez-popover-core.d.ts +9 -0
  348. package/dist/types/components/ez-popup/ez-popup.d.ts +1 -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 +4 -0
  353. package/dist/types/components/ez-search-plus/ez-search-plus.d.ts +6 -1
  354. package/dist/types/components/ez-tabselector/ez-tabselector.d.ts +41 -20
  355. package/dist/types/components/ez-text-input/ez-text-input.d.ts +1 -0
  356. package/dist/types/components/ez-tooltip/ez-tooltip.d.ts +2 -0
  357. package/dist/types/components.d.ts +407 -9
  358. package/dist/types/utils/i18n/locales/en-us.d.ts +26 -3
  359. package/dist/types/utils/i18n/locales/es-es.d.ts +26 -3
  360. package/dist/types/utils/i18n/locales/pt-br.d.ts +26 -3
  361. package/dist/types/utils/i18n/translations.d.ts +78 -9
  362. package/package.json +5 -6
  363. package/react/components.d.ts +3 -0
  364. package/react/components.js +3 -0
  365. package/react/components.js.map +1 -1
  366. package/dist/cjs/ez-multi-selection-list.cjs.entry.js +0 -194
  367. package/dist/cjs/ez-popover-core.cjs.entry.js +0 -211
  368. package/dist/cjs/ez-popover-plus_3.cjs.entry.js +0 -243
  369. package/dist/esm/ez-multi-selection-list.entry.js +0 -190
  370. package/dist/esm/ez-popover-core.entry.js +0 -207
  371. package/dist/esm/ez-popover-plus_3.entry.js +0 -237
  372. package/dist/ezui/p-06f1b8e4.entry.js +0 -1
  373. package/dist/ezui/p-0d393a5d.entry.js +0 -1
  374. package/dist/ezui/p-14d6aeb8.entry.js +0 -1
  375. package/dist/ezui/p-169d460d.entry.js +0 -1
  376. package/dist/ezui/p-24993171.entry.js +0 -7
  377. package/dist/ezui/p-27421015.entry.js +0 -1
  378. package/dist/ezui/p-27c8a9b7.entry.js +0 -1
  379. package/dist/ezui/p-2a806303.js +0 -1
  380. package/dist/ezui/p-34d596a3.entry.js +0 -1
  381. package/dist/ezui/p-35e3715c.entry.js +0 -1
  382. package/dist/ezui/p-4d909730.entry.js +0 -1
  383. package/dist/ezui/p-4df2edb5.entry.js +0 -1
  384. package/dist/ezui/p-61c10e02.js +0 -1
  385. package/dist/ezui/p-6ec40dec.entry.js +0 -1
  386. package/dist/ezui/p-71b341cc.entry.js +0 -1
  387. package/dist/ezui/p-75e8862c.entry.js +0 -1
  388. package/dist/ezui/p-81a98a7c.entry.js +0 -1
  389. package/dist/ezui/p-87739608.entry.js +0 -1
  390. package/dist/ezui/p-892e7326.entry.js +0 -1
  391. package/dist/ezui/p-8f7373ab.entry.js +0 -1
  392. package/dist/ezui/p-986044d1.entry.js +0 -1
  393. package/dist/ezui/p-c178730b.js +0 -1
  394. package/dist/ezui/p-c754774e.entry.js +0 -1
  395. package/dist/ezui/p-c96e536d.entry.js +0 -1
  396. package/dist/ezui/p-ce2614fc.entry.js +0 -1
  397. package/dist/ezui/p-dc9781b3.entry.js +0 -1
  398. package/dist/ezui/p-e94d3af5.entry.js +0 -1
  399. package/dist/ezui/p-f0425f87.entry.js +0 -1
  400. package/dist/ezui/p-f1b54699.entry.js +0 -1
  401. package/dist/ezui/p-ff4312d5.js +0 -1
@@ -1,194 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- const index = require('./index-9e5554cb.js');
6
- const index$1 = require('./index-350d0fa0.js');
7
- const core = require('@sankhyalabs/core');
8
-
9
- const ezMultiSelectionListCss = ".sc-ez-multi-selection-list-h{--ez-check--outter-gap:0px;--ez-multi-selection-default-height:322px;display:block;width:304px;height:var(--ez-multi-selection-default-height);min-height:fit-content;max-height:calc(100vh - 350px)}.multi-selection__input.sc-ez-multi-selection-list{margin-bottom:var(--space--2xs, 8px)}.multi-selection__content-options.sc-ez-multi-selection-list{position:relative;left:-4px}.multi-selection__select-all.sc-ez-multi-selection-list{height:var(--space--xl);margin:0 var(--space--small, 6px)}.multi-selection__list.sc-ez-multi-selection-list{max-height:calc(100vh - 435px);overflow-y:auto;overflow-x:clip}.multi-selection__list.sc-ez-multi-selection-list::-webkit-scrollbar{width:var(--space--small);min-width:var(--space--small);max-width:var(--space--small)}";
10
-
11
- var ViewScenarios;
12
- (function (ViewScenarios) {
13
- ViewScenarios["DATASOURCE_RESULTS"] = "DATASOURCE_RESULTS";
14
- ViewScenarios["DATASOURCE_RESULTS_EMPTY"] = "DATASOURCE_RESULTS_EMPTY";
15
- ViewScenarios["DATASOURCE_INIT"] = "DATASOURCE_INIT";
16
- ViewScenarios["OPTIONS_EMPTY"] = "OPTIONS_EMPTY";
17
- ViewScenarios["OPTIONS"] = "OPTIONS";
18
- })(ViewScenarios || (ViewScenarios = {}));
19
- const EzMuiltiSelectionList = class {
20
- constructor(hostRef) {
21
- index.registerInstance(this, hostRef);
22
- this.changeFilteredOptions = index.createEvent(this, "changeFilteredOptions", 7);
23
- this.columnName = undefined;
24
- this.dataSource = undefined;
25
- this.useOptions = false;
26
- this.options = undefined;
27
- this.isTextSearch = false;
28
- this.filteredOptions = undefined;
29
- this.displayOptions = undefined;
30
- this.viewScenario = undefined;
31
- this.displayOptionToCheckAllItems = true;
32
- }
33
- async componentWillLoad() {
34
- this.i18n = await index$1.initI18n();
35
- }
36
- async clearFilteredOptions() {
37
- this.setInitialScenario();
38
- this.filteredOptions = [];
39
- if (this.searchInput) {
40
- await this.searchInput.clearValue();
41
- }
42
- if (this.filterInput) {
43
- this.filterInput.value = '';
44
- }
45
- }
46
- onChangeUseOptions() {
47
- this.setInitialScenario();
48
- }
49
- onChangeOptions() {
50
- if (this.options) {
51
- this.filteredOptions = this.ordenationByCheckStateAndAlphabetically(this.options);
52
- }
53
- this.checkInput && this.changeCheckAllValeuFromFilteredOptions();
54
- this.setInitialScenario();
55
- }
56
- onChangeFilteredOptions(optionsListUpdated) {
57
- this.displayOptions = this.filteredOptions;
58
- this.displayOptionToCheckAllItems = this.filteredOptions.length > 1;
59
- this.checkInput && this.changeCheckAllValeuFromFilteredOptions();
60
- this.changeFilteredOptions.emit(optionsListUpdated);
61
- }
62
- componentDidLoad() {
63
- this.onChangeOptions();
64
- }
65
- componentDidRender() {
66
- this.changeCheckAllValeuFromFilteredOptions();
67
- }
68
- ordenationByCheckStateAndAlphabetically(filteredOptions) {
69
- const listWithSelectChecked = [];
70
- const listWithNotSelectChecked = [];
71
- let emptyElement;
72
- filteredOptions.forEach(item => {
73
- if (item.value == undefined || item.label === "") {
74
- emptyElement = Object.assign(Object.assign({}, item), { label: this.i18n("ez-multi-selection-list.empty") });
75
- }
76
- else {
77
- (item.check ? listWithSelectChecked.push(item) : listWithNotSelectChecked.push(item));
78
- }
79
- });
80
- return (emptyElement == undefined ? [] : [emptyElement])
81
- .concat(this.dataSource == undefined ? core.ArrayUtils.sortAlphabetically(listWithSelectChecked) : this.dataSource.sortItems(this.columnName, listWithSelectChecked))
82
- .concat(this.dataSource == undefined ? core.ArrayUtils.sortAlphabetically(listWithNotSelectChecked) : this.dataSource.sortItems(this.columnName, listWithNotSelectChecked));
83
- }
84
- changeCheckAllValeuFromFilteredOptions() {
85
- var _a, _b, _c, _d;
86
- const selectAll = (_a = this.filteredOptions) === null || _a === void 0 ? void 0 : _a.every(item => item.check === true);
87
- const notSelectAll = (_b = this.filteredOptions) === null || _b === void 0 ? void 0 : _b.every(item => item.check === false);
88
- const selectIndeterminated = ((_c = this.filteredOptions) === null || _c === void 0 ? void 0 : _c.some(item => item.check === false)) && ((_d = this.filteredOptions) === null || _d === void 0 ? void 0 : _d.some(item => item.check === true)) && (!selectAll || !notSelectAll);
89
- if (this.checkInput && selectAll) {
90
- this.checkInput.indeterminate = false;
91
- this.checkInput.value = true;
92
- return;
93
- }
94
- if (this.checkInput && selectIndeterminated) {
95
- this.checkInput.indeterminate = true;
96
- this.checkInput.value = false;
97
- return;
98
- }
99
- if (this.checkInput && notSelectAll) {
100
- this.checkInput.indeterminate = false;
101
- this.checkInput.value = false;
102
- return;
103
- }
104
- }
105
- setInitialScenario() {
106
- if (this.useOptions) {
107
- this.viewScenario = ViewScenarios.OPTIONS;
108
- this.changeCheckAllValeuFromFilteredOptions();
109
- return;
110
- }
111
- this.viewScenario = this.options && this.options.length > 0 ? ViewScenarios.DATASOURCE_RESULTS : ViewScenarios.DATASOURCE_INIT;
112
- }
113
- async searchWithDataSource(searchArgument, fieldName) {
114
- const { argument, mode } = searchArgument;
115
- if (mode !== 'PRELOAD' && fieldName) {
116
- return this.dataSource.fetchData(argument, fieldName);
117
- }
118
- }
119
- async handleSearchOnDataSource(event) {
120
- var _a;
121
- const optionsToSort = (_a = this.filteredOptions) !== null && _a !== void 0 ? _a : [];
122
- if (event.detail && !optionsToSort.some(item => item.value == event.detail.value)) {
123
- this.filteredOptions = this.ordenationByCheckStateAndAlphabetically([...optionsToSort, event.detail]);
124
- }
125
- this.viewScenario = ViewScenarios.DATASOURCE_RESULTS;
126
- await this.searchInput.clearValue();
127
- }
128
- async handleRemoveItemFromOptions(item) {
129
- this.filteredOptions = this.ordenationByCheckStateAndAlphabetically(this.filteredOptions.filter(i => i.value !== item.value));
130
- if (this.filteredOptions.length === 0) {
131
- this.viewScenario = ViewScenarios.DATASOURCE_INIT;
132
- }
133
- if (this.searchInput) {
134
- await this.searchInput.clearValue();
135
- }
136
- }
137
- handleSearchOnOption(event) {
138
- if (event.detail) {
139
- this.displayOptions = core.ArrayUtils.applyStringFilter(event.detail, this.filteredOptions, true);
140
- this.viewScenario = this.displayOptions.length === 0 ? ViewScenarios.OPTIONS_EMPTY : ViewScenarios.OPTIONS;
141
- return;
142
- }
143
- this.displayOptions = this.filteredOptions;
144
- this.viewScenario = ViewScenarios.OPTIONS;
145
- }
146
- handleChangeSelectAllItems(event) {
147
- this.filteredOptions = this.ordenationByCheckStateAndAlphabetically([
148
- ...this.filteredOptions.map(item => {
149
- item.check = !!event.detail;
150
- return item;
151
- }),
152
- ]);
153
- }
154
- handleChangeSelectedItem(event) {
155
- const { detail: itemCheckSelected } = event;
156
- const itemSelected = this.filteredOptions.find(item => item.label === itemCheckSelected.label);
157
- itemSelected.check = itemCheckSelected.check;
158
- this.changeFilteredOptions.emit(this.filteredOptions);
159
- }
160
- buildViewList(hasDelete) {
161
- return (index.h(index.Fragment, null, this.displayOptionToCheckAllItems && (index.h("ez-check", { ref: (element) => (this.checkInput = element), label: this.i18n("ez-multi-selection-list.selectAll"), class: "multi-selection__select-all", onEzChange: this.handleChangeSelectAllItems.bind(this) })), index.h("ez-list", { class: "multi-selection__list", dataSource: this.displayOptions.map(opt => (Object.assign(Object.assign({}, opt), { id: opt.value }))), listMode: "check", hoverFeedback: true, onEzCheckChange: this.handleChangeSelectedItem.bind(this), itemSlotBuilder: hasDelete ? this.buildDeleteIconSlot.bind(this) : null })));
162
- }
163
- buildDeleteIconSlot(item) {
164
- return index.h("ez-icon", { style: { cursor: 'pointer' }, iconName: "delete", onClick: () => this.handleRemoveItemFromOptions(item) });
165
- }
166
- buildInitViewWithDataSource() {
167
- return index.h("multi-selection-box-message", { message: this.i18n("ez-multi-selection-list.initMessage") });
168
- }
169
- buildViewEmptyResults() {
170
- return index.h("multi-selection-box-message", { message: this.i18n("ez-multi-selection-list.emptyResults") });
171
- }
172
- scenarioToDisplay(view) {
173
- const scenarios = {
174
- [ViewScenarios.DATASOURCE_INIT]: () => this.buildInitViewWithDataSource(),
175
- [ViewScenarios.DATASOURCE_RESULTS]: () => this.buildViewList(true),
176
- [ViewScenarios.DATASOURCE_RESULTS_EMPTY]: () => this.buildViewEmptyResults(),
177
- [ViewScenarios.OPTIONS_EMPTY]: () => this.buildViewEmptyResults(),
178
- [ViewScenarios.OPTIONS]: () => this.buildViewList(false),
179
- };
180
- const scenarioBuilder = scenarios[view];
181
- return scenarioBuilder ? scenarioBuilder() : undefined;
182
- }
183
- render() {
184
- return (index.h(index.Host, null, index.h("div", { class: "multi-selection" }, this.useOptions ? (index.h("ez-filter-input", { ref: (element) => (this.filterInput = element), label: this.i18n("ez-multi-selection-list.search"), onEzChange: this.handleSearchOnOption.bind(this) })) : (index.h("ez-search", { class: "multi-selection__input", label: this.i18n("ez-multi-selection-list.search"), ref: (element) => (this.searchInput = element), suppressEmptyOption: true, showOptionValue: false, showSelectedValue: false, optionLoader: (search) => this.searchWithDataSource(search, this.columnName), onEzChange: this.handleSearchOnDataSource.bind(this), isTextSearch: this.isTextSearch })), index.h("ez-scroll", { class: "multi-selection__content-options" }, this.scenarioToDisplay(this.viewScenario)))));
185
- }
186
- static get watchers() { return {
187
- "useOptions": ["onChangeUseOptions"],
188
- "options": ["onChangeOptions"],
189
- "filteredOptions": ["onChangeFilteredOptions"]
190
- }; }
191
- };
192
- EzMuiltiSelectionList.style = ezMultiSelectionListCss;
193
-
194
- exports.ez_multi_selection_list = EzMuiltiSelectionList;
@@ -1,211 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- const index = require('./index-9e5554cb.js');
6
- const floatingUi_dom_esm = require('./floating-ui.dom.esm-f4d87617.js');
7
-
8
- const ezPopoverCoreCss = ":host{--ez-popover__box--border-radius:var(--border--radius-medium, 12px);--ez-popover__box--box-shadow:var(--shadow, 0px 0px 16px 0px #000);--ez-popover__box--background-color:var(--background--xlight, #fff);--ez-popover__box--z-index:var(--elevation--100, 100);--ez-popover__box--overlay-z-index:var(--elevation--24, 24);position:relative;display:flex;user-select:none}.popover__overlay{display:none;position:fixed;padding:0;top:0px;left:0px;width:100%;height:100vh;box-sizing:border-box;z-index:var(--ez-popover__box--overlay-z-index)}.popover__overlay--light{background-color:rgba(var(--rgb-background--overlay), var(--opacity--bright))}.popover__overlay--medium{background-color:rgba(var(--rgb-background--overlay), var(--opacity--soft));backdrop-filter:blur(var(--background-blur--medium))}.popover__box{display:none;position:fixed;top:0;left:0;z-index:var(--ez-popover__box--z-index);flex-direction:column;height:fit-content;background-color:var(--ez-popover__box--background-color);border-radius:var(--ez-popover__box--border-radius);box-shadow:var(--ez-popover__box--box-shadow)}.popover__box--fit-content{width:fit-content}.popover__box--full-width{width:calc(100% - 10px)}";
9
-
10
- const EzPopoverCore = class {
11
- constructor(hostRef) {
12
- index.registerInstance(this, hostRef);
13
- this.ezVisibilityChange = index.createEvent(this, "ezVisibilityChange", 7);
14
- this.autoClose = true;
15
- this.boxWidth = "fit-content";
16
- this.opened = false;
17
- this.overlayType = "light";
18
- this.anchorElement = undefined;
19
- this.options = { horizontalGap: 0, verticalGap: 0, fromRight: false };
20
- this.useAnchorSize = false;
21
- this.minWidth = 150;
22
- }
23
- observeOpened(newValue, oldValue) {
24
- if (newValue === oldValue) {
25
- return;
26
- }
27
- if (newValue) {
28
- this.openPopover();
29
- }
30
- else {
31
- this.hidePopover();
32
- }
33
- }
34
- /**
35
- * Atualiza a posição do popover.
36
- */
37
- async updatePosition(top, left) {
38
- this.updateOptionPosition(top, left);
39
- await this.updatePositionPopover();
40
- }
41
- /**
42
- * Exibe o ez-popover.
43
- */
44
- async show(top, left) {
45
- this.updateOptionPosition(top, left);
46
- this.opened = true;
47
- }
48
- /**
49
- * Ancora a exibição do popOver a um elemento HTML.
50
- */
51
- async showUnder(element, options) {
52
- if (options) {
53
- this.options = options;
54
- }
55
- this.anchorElement = element;
56
- this.opened = true;
57
- }
58
- /**
59
- * Oculta o ez-popover.
60
- */
61
- async hide() {
62
- this.opened = false;
63
- }
64
- /**
65
- * Altera as opções.
66
- */
67
- async setOptions(options) {
68
- Object.assign(this.options, options);
69
- }
70
- /**
71
- * Altera o elemento de ancoragem.
72
- */
73
- async setAnchorElement(anchor) {
74
- this.anchorElement = anchor;
75
- }
76
- parseSizePixel(sizePixel, defaultValue) {
77
- if (!sizePixel) {
78
- return defaultValue !== null && defaultValue !== void 0 ? defaultValue : 0;
79
- }
80
- if (typeof sizePixel === "string") {
81
- return Number(sizePixel.replace("px", ""));
82
- }
83
- return sizePixel !== null && sizePixel !== void 0 ? sizePixel : 0;
84
- }
85
- updateOptionPosition(top, left) {
86
- Object.assign(this.options, {
87
- horizontalGap: this.parseSizePixel(left, this.options.horizontalGap),
88
- verticalGap: this.parseSizePixel(top, this.options.verticalGap),
89
- });
90
- }
91
- getElement(element) {
92
- if (typeof element === 'string') {
93
- return document.getElementById(element);
94
- }
95
- return element;
96
- }
97
- getAnchorElement() {
98
- if (!this.anchorElement) {
99
- return this._host;
100
- }
101
- if (Array.isArray(this.anchorElement)) {
102
- for (const element of this.anchorElement) {
103
- const htmlElement = this.getElement(element);
104
- if (htmlElement) {
105
- return htmlElement;
106
- }
107
- }
108
- return this._host;
109
- }
110
- return this.getElement(this.anchorElement);
111
- }
112
- async updatePositionPopover() {
113
- if (!this._box || !this.opened) {
114
- return;
115
- }
116
- const currentAnchorElement = this.getAnchorElement();
117
- await floatingUi_dom_esm.computePosition(currentAnchorElement, this._box, {
118
- placement: this.options.fromRight ? 'bottom-end' : 'bottom-start',
119
- middleware: [floatingUi_dom_esm.flip(), floatingUi_dom_esm.shift({ padding: 5 })],
120
- strategy: 'fixed',
121
- }).then(({ x, y, placement }) => {
122
- const newTop = placement.includes("bottom") ? y + this.options.verticalGap : y - this.options.verticalGap;
123
- const newLeft = placement.includes("start") ? x + this.options.horizontalGap : x - this.options.horizontalGap;
124
- Object.assign(this._box.style, {
125
- top: `${newTop}px`,
126
- left: `${newLeft}px`,
127
- });
128
- });
129
- }
130
- hidePopover() {
131
- if (!this._box) {
132
- return;
133
- }
134
- this._box.style.display = '';
135
- this.hideOverlay();
136
- this.ezVisibilityChange.emit(false);
137
- }
138
- async openPopover() {
139
- if (!this._box || !this.opened) {
140
- return;
141
- }
142
- this._box.style.display = 'flex';
143
- this._box.style.visibility = 'hidden';
144
- if (this.useAnchorSize) {
145
- const currentAnchorElement = this.getAnchorElement();
146
- const anchorSize = currentAnchorElement.getBoundingClientRect().width;
147
- const width = anchorSize < this.minWidth ? this.minWidth : anchorSize;
148
- this._box.style.width = `${width}px`;
149
- }
150
- await this.updatePositionPopover();
151
- this.openOverlay();
152
- this.ezVisibilityChange.emit(true);
153
- this._box.style.visibility = 'visible';
154
- }
155
- openOverlay() {
156
- if (!this._overlay || !this._overlayIsActive) {
157
- return;
158
- }
159
- this._overlay.style.display = 'block';
160
- }
161
- hideOverlay() {
162
- if (!this._overlay) {
163
- return;
164
- }
165
- this._overlay.style.display = 'none';
166
- }
167
- checkStatusOverlay() {
168
- if (this.overlayType !== "none") {
169
- return true;
170
- }
171
- if (this.overlayType === "none" && this.autoClose) {
172
- return true;
173
- }
174
- return false;
175
- }
176
- handlePositionUpdate() {
177
- if (!this.opened) {
178
- return;
179
- }
180
- this.updatePositionPopover();
181
- }
182
- componentWillLoad() {
183
- window.addEventListener('scroll', this.handlePositionUpdate.bind(this), true);
184
- window.addEventListener('resize', this.handlePositionUpdate.bind(this), true);
185
- }
186
- componentDidLoad() {
187
- this._overlayIsActive = this.checkStatusOverlay();
188
- this._resizeObserver = new ResizeObserver(this.updatePositionPopover.bind(this));
189
- this._resizeObserver.observe(this._box);
190
- this.openPopover();
191
- }
192
- disconnectedCallback() {
193
- window.removeEventListener('scroll', this.handlePositionUpdate.bind(this), true);
194
- window.removeEventListener('resize', this.handlePositionUpdate.bind(this), true);
195
- this._resizeObserver.disconnect();
196
- }
197
- render() {
198
- return (index.h(index.Host, null, index.h("div", { ref: el => this._overlay = el, onClick: () => this.hide(), class: `popover__overlay popover__overlay--${this.overlayType}` }), index.h("section", { ref: el => this._box = el, class: {
199
- "popover__box": true,
200
- "popover__box--fit-content": this.boxWidth === "fit-content",
201
- "popover__box--full-width": this.boxWidth !== "fit-content",
202
- } }, index.h("slot", null))));
203
- }
204
- get _host() { return index.getElement(this); }
205
- static get watchers() { return {
206
- "opened": ["observeOpened"]
207
- }; }
208
- };
209
- EzPopoverCore.style = ezPopoverCoreCss;
210
-
211
- exports.ez_popover_core = EzPopoverCore;
@@ -1,243 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- const index = require('./index-9e5554cb.js');
6
- const core = require('@sankhyalabs/core');
7
- const searchFormatters = require('./searchFormatters-b7e1ed1e.js');
8
-
9
- const ezPopoverPlusCss = ":host{display:none}";
10
-
11
- const EzPopoverPlus = class {
12
- constructor(hostRef) {
13
- index.registerInstance(this, hostRef);
14
- this.ezVisibilityChange = index.createEvent(this, "ezVisibilityChange", 7);
15
- this.autoClose = true;
16
- this.boxWidth = "fit-content";
17
- this.opened = false;
18
- this.overlayType = "light";
19
- this.anchorElement = undefined;
20
- this.options = { horizontalGap: 0, verticalGap: 0, fromRight: false };
21
- this.useAnchorSize = false;
22
- this.minWidth = 150;
23
- }
24
- async observeOpened(newValue) {
25
- if (newValue && !this._popOverCore) {
26
- this.renderPopoverCore();
27
- }
28
- this._popOverCore.opened = newValue;
29
- }
30
- /**
31
- * Atualiza a posição do popover.
32
- */
33
- async updatePosition(top, left) {
34
- var _a;
35
- await ((_a = this._popOverCore) === null || _a === void 0 ? void 0 : _a.updatePosition(top, left));
36
- }
37
- /**
38
- * Exibe o ez-popover.
39
- */
40
- async show(top, left) {
41
- if (!this._popOverCore) {
42
- this.renderPopoverCore();
43
- }
44
- await this._popOverCore.show(top, left);
45
- }
46
- /**
47
- * Ancora a exibição do popOver a um elemento HTML.
48
- */
49
- async showUnder(element, options) {
50
- if (!this._popOverCore) {
51
- this.renderPopoverCore();
52
- }
53
- await this._popOverCore.showUnder(element, options);
54
- }
55
- /**
56
- * Oculta o ez-popover.
57
- */
58
- async hide() {
59
- var _a;
60
- await ((_a = this._popOverCore) === null || _a === void 0 ? void 0 : _a.hide());
61
- }
62
- /**
63
- * Altera as opções.
64
- */
65
- async setOptions(options) {
66
- var _a;
67
- await ((_a = this._popOverCore) === null || _a === void 0 ? void 0 : _a.setOptions(options));
68
- }
69
- /**
70
- * Altera o elemento de ancoragem.
71
- */
72
- async setAnchorElement(anchor) {
73
- var _a;
74
- await ((_a = this._popOverCore) === null || _a === void 0 ? void 0 : _a.setAnchorElement(anchor));
75
- this.anchorElement = anchor;
76
- }
77
- getFirstElement(collection) {
78
- if (Array.isArray(collection) && collection.length) {
79
- return collection[0];
80
- }
81
- if (!Array.isArray(collection) && collection.item) {
82
- return collection.item(0);
83
- }
84
- return null;
85
- }
86
- buildElementId(keys) {
87
- const filteredKeys = keys.filter((key) => !!key);
88
- return core.ElementIDUtils.getInternalIDInfo(filteredKeys.join("_"));
89
- }
90
- renderPopoverCore() {
91
- var _a;
92
- this._popOverCore = document.createElement('ez-popover-core');
93
- this._popOverCore.opened = this.opened;
94
- this._popOverCore.anchorElement = this.anchorElement;
95
- this._popOverCore.autoClose = this.autoClose;
96
- this._popOverCore.boxWidth = this.boxWidth;
97
- this._popOverCore.overlayType = this.overlayType;
98
- this._popOverCore.options = this.options;
99
- this._popOverCore.useAnchorSize = this.useAnchorSize;
100
- this._popOverCore.minWidth = this.minWidth;
101
- this._popOverCore.setAttribute("data-element-id", this.buildElementId(["ez-popover-core", this._host.getAttribute("data-element-id")]));
102
- this._popOverCore.addEventListener('ezVisibilityChange', ({ detail }) => {
103
- this.ezVisibilityChange.emit(detail);
104
- this.opened = detail;
105
- });
106
- const firstChild = this.getFirstElement(this._host.children);
107
- if (firstChild) {
108
- this._popOverCore.appendChild(firstChild);
109
- }
110
- else {
111
- console.warn('O slot do popover está vazio. Adicione conteúdo ao slot para exibição correta.');
112
- }
113
- const root = document.body.querySelector("#root");
114
- const firstDiv = this.getFirstElement(document.body.getElementsByTagName("div"));
115
- const parentElement = (_a = root !== null && root !== void 0 ? root : firstDiv) !== null && _a !== void 0 ? _a : document.body;
116
- parentElement.appendChild(this._popOverCore);
117
- }
118
- render() {
119
- return (index.h(index.Host, null, index.h("slot", null)));
120
- }
121
- get _host() { return index.getElement(this); }
122
- static get watchers() { return {
123
- "opened": ["observeOpened"]
124
- }; }
125
- };
126
- EzPopoverPlus.style = ezPopoverPlusCss;
127
-
128
- const multiSelectionBoxMessageCss = ".multi-selection__message{display:flex;flex-direction:row;align-items:center;justify-content:center;width:100%;min-height:320px;text-align:center}.multi-selection__text-message{margin-top:-30px;font-family:var(--font-pattern);font-size:var(--text--meduim);padding:var(--space-xs);color:var(--text--primary)}";
129
-
130
- const MultiSelectionBoxMessage = class {
131
- constructor(hostRef) {
132
- index.registerInstance(this, hostRef);
133
- this.message = undefined;
134
- }
135
- render() {
136
- return (index.h("div", { class: "multi-selection__message" }, index.h("span", { class: "multi-selection__text-message" }, this.message)));
137
- }
138
- };
139
- MultiSelectionBoxMessage.style = multiSelectionBoxMessageCss;
140
-
141
- const searchListCss = ":host{--ez-search__list-title--primary:var(--title--primary, #2B3A54);--ez-search__list-text--primary:var(--text--primary, #626e82);--ez-search__list-height:calc(var(--ez-search--font-size) + var(--ez-search--space--medium) + 4px);--ez-search__list-min-width:64px;--ez-search__scrollbar--color-default:var(--scrollbar--default, #626e82);--ez-search__scrollbar--color-background:var(--scrollbar--background, #E5EAF0);--ez-search__scrollbar--color-hover:var(--scrollbar--hover, #2B3A54);--ez-search__scrollbar--color-clicked:var(--scrollbar--clicked, #a2abb9);--ez-search__scrollbar--border-radius:var(--border--radius-small, 6px);--ez-search__scrollbar--width:var(--space--small, 6px);--ez-search--border-radius-small:var(--border--radius-small, 6px);--ez-search--font-size:var(--text--medium, 14px);--ez-search--font-family:var(--font-pattern, Arial);--ez-search--font-weight--large:var(--text-weight--large, 500);--ez-search--font-weight--medium:var(--text-weight--medium, 400);--ez-search--background-medium:var(--background--medium, #f0f3f7);--ez-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-search__scrollbar--color-clicked) var(--ez-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-search__scrollbar--color-background);border-radius:var(--ez-search__scrollbar--border-radius)}.list-options::-webkit-scrollbar-thumb{background-color:var(--ez-search__scrollbar--color-default);border-radius:var(--ez-search__scrollbar--border-radius)}.list-options::-webkit-scrollbar-thumb:vertical:hover,.list-options::-webkit-scrollbar-thumb:horizontal:hover{background-color:var(--ez-search__scrollbar--color-hover)}.list-options::-webkit-scrollbar-thumb:vertical:active,.list-options::-webkit-scrollbar-thumb:horizontal:active{background-color:var(--ez-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-search__list-height)}.message__no-result{color:var(--ez-search__list-title--primary);font-family:var(--ez-search--font-family);font-size:var(--ez-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-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-search__list-title--primary);font-family:var(--ez-search--font-family);font-size:var(--ez-search--font-size);line-height:var(--ez-search--line-height)}.item__label{font-weight:var(--ez-search--font-weight--medium)}.item__label--bold{font-weight:var(--ez-search--font-weight--large)}.item__value{text-align:center;color:var(--ez-search__list-text--primary);font-weight:var(--ez-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-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-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}}";
142
-
143
- const SearchList = class {
144
- constructor(hostRef) {
145
- index.registerInstance(this, hostRef);
146
- this.changeValue = index.createEvent(this, "changeValue", 7);
147
- this.changePreSelection = index.createEvent(this, "changePreSelection", 7);
148
- this._startHighlightTag = "<span class='card-item__highlight'>";
149
- this._endHighlightTag = "</span>";
150
- this.MAX_HEIGHT = 350;
151
- this.HEADER_MENU_HEIGHT = 60;
152
- this.showLoading = undefined;
153
- this.visibleOptions = [];
154
- this.textEmptyList = undefined;
155
- this.canShowListOptions = undefined;
156
- this.value = undefined;
157
- this.showOptionValue = true;
158
- this.preSelection = undefined;
159
- }
160
- async nextOption() {
161
- const newPreSelection = this.preSelection === undefined ? 0 : Math.min(this.preSelection + 1, this.visibleOptions.length - 1);
162
- this.changePreSelection.emit(newPreSelection);
163
- this.scrollToOption(this.visibleOptions[newPreSelection]);
164
- }
165
- async previousOption() {
166
- const newPreSelection = this.preSelection === undefined ? 0 : Math.max(this.preSelection - 1, 0);
167
- this.changePreSelection.emit(newPreSelection);
168
- this.scrollToOption(this.visibleOptions[newPreSelection]);
169
- }
170
- selectOption(newOption) {
171
- const newOptionsReplaced = Object.assign(Object.assign({}, newOption), { value: searchFormatters.replaceHighlight(newOption === null || newOption === void 0 ? void 0 : newOption.value), label: searchFormatters.replaceHighlight(newOption === null || newOption === void 0 ? void 0 : newOption.label) });
172
- const newOptionsFormatted = Object.assign(Object.assign({}, newOptionsReplaced), { value: searchFormatters.replaceQuotes(newOptionsReplaced === null || newOptionsReplaced === void 0 ? void 0 : newOptionsReplaced.value), label: searchFormatters.replaceQuotes(newOptionsReplaced === null || newOptionsReplaced === void 0 ? void 0 : newOptionsReplaced.label) });
173
- this.changeValue.emit(newOptionsFormatted);
174
- }
175
- createOption(detail) {
176
- let { key, title } = detail;
177
- const startHighlight = new RegExp(this._startHighlightTag, 'g');
178
- const endHighlight = new RegExp(this._endHighlightTag, 'g');
179
- title = core.StringUtils.decodeHtmlEntities(title);
180
- const option = {
181
- value: key === null || key === void 0 ? void 0 : key.replace(startHighlight, '').replace(endHighlight, ''),
182
- label: title === null || title === void 0 ? void 0 : title.replace(startHighlight, '').replace(endHighlight, '')
183
- };
184
- this.selectOption(option);
185
- }
186
- scrollToOption(opt) {
187
- window.requestAnimationFrame(() => {
188
- const liElem = (opt === null || opt === void 0 ? void 0 : opt.value)
189
- ? this._optionsList.querySelector(`div#item_${opt.value.replace(/([ #;&,.+*~':"!^$[\]()=<>|/\\])/g, '\\$1')}`)
190
- : undefined;
191
- if (liElem) {
192
- liElem.scrollIntoView({ behavior: "smooth", block: "nearest" });
193
- }
194
- });
195
- }
196
- buildItem(opt, index$1) {
197
- opt.label = opt.label || opt.value;
198
- const card = {
199
- key: opt.value,
200
- title: opt.label,
201
- details: opt.details
202
- };
203
- return index.h("div", { style: { "height": "100%" }, class: index$1 === this.preSelection ? "item preselected" : "item", id: `item_${opt.value}`, onMouseDown: () => this.createOption(card), onMouseOver: () => this.changePreSelection.emit(index$1) }, index.h("ez-card-item", { item: card, compacted: true, enableKey: this.showOptionValue }));
204
- }
205
- componentDidLoad() {
206
- if (this._optionsList) {
207
- this._optionsList.style.maxHeight = `${this.MAX_HEIGHT}px`;
208
- }
209
- }
210
- componentDidUpdate() {
211
- if (this._optionsList) {
212
- const rect = this._optionsList.getBoundingClientRect();
213
- const spaceBelow = window.innerHeight - rect.bottom;
214
- if (spaceBelow < 0) {
215
- this.adjustMaxHeight(rect);
216
- }
217
- }
218
- }
219
- adjustMaxHeight(rect) {
220
- if (this._optionsList) {
221
- const spaceAbove = rect.top - this.HEADER_MENU_HEIGHT;
222
- const maxHeight = this.MAX_HEIGHT;
223
- const height = Math.min(spaceAbove, maxHeight);
224
- this._optionsList.style.maxHeight = `${height}px`;
225
- }
226
- }
227
- cleanEmptyObjectArray(arr) {
228
- return arr.filter(item => {
229
- return Object.values(item).some(valor => valor !== undefined);
230
- });
231
- }
232
- render() {
233
- return (index.h(index.Host, null, index.h("ul", { class: "list-options", ref: elem => this._optionsList = elem }, !this.showLoading
234
- && this.cleanEmptyObjectArray(this.visibleOptions).length === 0
235
- && index.h("div", { class: "message" }, index.h("span", { class: "message__no-result" }, this.textEmptyList)), this.showLoading
236
- && index.h("div", { class: "message" }, index.h("div", { class: "message__loading" })), this.canShowListOptions && this.visibleOptions.map((opt, index) => this.buildItem(opt, index)))));
237
- }
238
- };
239
- SearchList.style = searchListCss;
240
-
241
- exports.ez_popover_plus = EzPopoverPlus;
242
- exports.multi_selection_box_message = MultiSelectionBoxMessage;
243
- exports.search_list = SearchList;