@sankhyalabs/ezui 0.0.0-bugfix-dev-KB-132151.1 → 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 (319) 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} +202 -4
  4. package/dist/cjs/ez-actions-button.cjs.entry.js +2 -2
  5. package/dist/cjs/ez-alert-list.cjs.entry.js +1 -1
  6. package/dist/cjs/ez-avatar.cjs.entry.js +1 -1
  7. package/dist/cjs/ez-calendar.cjs.entry.js +1 -1
  8. package/dist/cjs/ez-classic-combo-box.cjs.entry.js +4 -2
  9. package/dist/cjs/ez-classic-date-input.cjs.entry.js +2 -2
  10. package/dist/cjs/ez-classic-date-time-input.cjs.entry.js +1 -1
  11. package/dist/cjs/ez-classic-input.cjs.entry.js +49 -3
  12. package/dist/cjs/ez-classic-number-input.cjs.entry.js +1 -1
  13. package/dist/cjs/ez-classic-search-plus.cjs.entry.js +26 -13
  14. package/dist/cjs/ez-classic-search.cjs.entry.js +2 -2
  15. package/dist/cjs/ez-classic-text-area.cjs.entry.js +12 -1
  16. package/dist/cjs/ez-classic-time-input.cjs.entry.js +4 -3
  17. package/dist/cjs/ez-collapsible-box.cjs.entry.js +2 -2
  18. package/dist/cjs/ez-combo-box.cjs.entry.js +7 -2
  19. package/dist/cjs/ez-date-input.cjs.entry.js +1 -1
  20. package/dist/cjs/ez-date-time-input.cjs.entry.js +1 -1
  21. package/dist/cjs/ez-dialog.cjs.entry.js +1 -1
  22. package/dist/cjs/ez-double-list.cjs.entry.js +1 -1
  23. package/dist/cjs/ez-dropdown.cjs.entry.js +1 -1
  24. package/dist/cjs/ez-empty-card.cjs.entry.js +1 -1
  25. package/dist/cjs/ez-file-item.cjs.entry.js +1 -1
  26. package/dist/cjs/ez-form-view.cjs.entry.js +20 -1
  27. package/dist/cjs/ez-form.cjs.entry.js +65 -43
  28. package/dist/cjs/ez-grid-pagination.cjs.entry.js +227 -0
  29. package/dist/cjs/ez-grid.cjs.entry.js +235 -172
  30. package/dist/cjs/ez-guide-navigator.cjs.entry.js +1 -1
  31. package/dist/cjs/ez-icon.cjs.entry.js +1 -1
  32. package/dist/cjs/ez-link-builder_6.cjs.entry.js +1 -1
  33. package/dist/cjs/ez-list.cjs.entry.js +1 -1
  34. package/dist/cjs/ez-modal-container.cjs.entry.js +1 -1
  35. package/dist/cjs/ez-modal.cjs.entry.js +1 -1
  36. package/dist/cjs/ez-multi-selection-list_5.cjs.entry.js +675 -0
  37. package/dist/cjs/ez-number-input.cjs.entry.js +1 -1
  38. package/dist/cjs/ez-pagination.cjs.entry.js +1 -1
  39. package/dist/cjs/ez-popup.cjs.entry.js +4 -5
  40. package/dist/cjs/ez-record-navigation.cjs.entry.js +121 -0
  41. package/dist/cjs/ez-scroller_2.cjs.entry.js +81 -14
  42. package/dist/cjs/ez-search-plus.cjs.entry.js +25 -11
  43. package/dist/cjs/ez-search-result-list.cjs.entry.js +1 -1
  44. package/dist/cjs/ez-search.cjs.entry.js +11 -4
  45. package/dist/cjs/ez-sidebar-navigator.cjs.entry.js +1 -1
  46. package/dist/cjs/ez-skeleton.cjs.entry.js +1 -1
  47. package/dist/cjs/ez-sortable-list.cjs.entry.js +99 -114
  48. package/dist/cjs/ez-spinner.cjs.entry.js +1 -1
  49. package/dist/cjs/ez-split-button.cjs.entry.js +16 -17
  50. package/dist/cjs/ez-split-item.cjs.entry.js +2 -2
  51. package/dist/cjs/ez-tabselector.cjs.entry.js +209 -61
  52. package/dist/cjs/ez-text-input.cjs.entry.js +21 -15
  53. package/dist/cjs/ez-time-input.cjs.entry.js +1 -1
  54. package/dist/cjs/ez-tooltip.cjs.entry.js +46 -8
  55. package/dist/cjs/ez-tree.cjs.entry.js +1 -1
  56. package/dist/cjs/ez-upload.cjs.entry.js +2 -2
  57. package/dist/cjs/ezui.cjs.js +3 -3
  58. package/dist/cjs/filter-column.cjs.entry.js +9 -3
  59. package/dist/cjs/{floating-ui.dom.esm-f4d87617.js → floating-ui.dom.esm-9c8bfebb.js} +258 -119
  60. package/dist/cjs/{index-350d0fa0.js → index-9739c242.js} +91 -30
  61. package/dist/cjs/index-a7b0c73d.js +16 -16
  62. package/dist/cjs/loader.cjs.js +3 -3
  63. package/dist/cjs/{search-column-4bb1cdb7.js → search-column-6e90fb19.js} +24 -10
  64. package/dist/collection/collection-manifest.json +8 -0
  65. package/dist/collection/components/ez-classic-combo-box/ez-classic-combo-box.js +21 -2
  66. package/dist/collection/components/ez-classic-date-input/ez-classic-date-input.js +1 -1
  67. package/dist/collection/components/ez-classic-input/ez-classic-input.js +47 -2
  68. package/dist/collection/components/ez-classic-input/utils/maskFormatter.js +2 -1
  69. package/dist/collection/components/ez-classic-search-plus/ez-classic-search-plus.css +22 -0
  70. package/dist/collection/components/ez-classic-search-plus/ez-classic-search-plus.js +26 -11
  71. package/dist/collection/components/ez-classic-text-area/ez-classic-text-area.js +32 -1
  72. package/dist/collection/components/ez-classic-time-input/ez-classic-time-input.js +3 -2
  73. package/dist/collection/components/ez-combo-box/ez-combo-box.js +5 -0
  74. package/dist/collection/components/ez-dropdown/ez-dropdown.css +2 -2
  75. package/dist/collection/components/ez-empty-card/ez-empty-card.js +7 -7
  76. package/dist/collection/components/ez-form-view/fieldbuilder/FieldBuilder.js +2 -0
  77. package/dist/collection/components/ez-form-view/fieldbuilder/templates/MultiSelectInput.tpl.js +17 -0
  78. package/dist/collection/components/ez-grid/controller/ag-grid/AgGridController.js +163 -27
  79. package/dist/collection/components/ez-grid/controller/ag-grid/DataSource.js +8 -1
  80. package/dist/collection/components/ez-grid/controller/ag-grid/gridColumnDefaultWidths.js +23 -0
  81. package/dist/collection/components/ez-grid/controller/ag-grid/utils/AggFunctionResolver.js +24 -0
  82. package/dist/collection/components/ez-grid/ez-grid.css +5 -60
  83. package/dist/collection/components/ez-grid/ez-grid.js +52 -150
  84. package/dist/collection/components/ez-grid/interfaces/IAggegationFunc.js +1 -0
  85. package/dist/collection/components/ez-grid/subcomponents/filter-column.css +10 -0
  86. package/dist/collection/components/ez-grid/subcomponents/filter-column.js +7 -1
  87. package/dist/collection/components/ez-grid/subcomponents/selection-counter.js +1 -1
  88. package/dist/collection/components/ez-grid/utils/index.js +1 -0
  89. package/dist/collection/components/ez-grid-pagination/ez-grid-pagination.css +111 -0
  90. package/dist/collection/components/ez-grid-pagination/ez-grid-pagination.js +410 -0
  91. package/dist/collection/components/ez-icon/ez-icon.css +1153 -1146
  92. package/dist/collection/components/ez-image-input/ez-image-input.css +24 -8
  93. package/dist/collection/components/ez-image-input/ez-image-input.js +6 -1
  94. package/dist/collection/components/ez-multi-select-input/ez-multi-select-input.css +221 -0
  95. package/dist/collection/components/ez-multi-select-input/ez-multi-select-input.js +555 -0
  96. package/dist/collection/components/ez-multi-selection-list/ez-multi-selection-list.css +27 -6
  97. package/dist/collection/components/ez-multi-selection-list/ez-multi-selection-list.js +66 -10
  98. package/dist/collection/components/ez-popover-plus/ez-popover-plus.js +20 -0
  99. package/dist/collection/components/ez-popover-plus/subcomponent/ez-popover-core.js +36 -2
  100. package/dist/collection/components/ez-popup/ez-popup.js +3 -4
  101. package/dist/collection/components/ez-record-navigation/ez-record-navigation.css +51 -0
  102. package/dist/collection/components/ez-record-navigation/ez-record-navigation.js +246 -0
  103. package/dist/collection/components/ez-scroller/EzScrollNavigationMode.js +5 -0
  104. package/dist/collection/components/ez-scroller/ez-scroller.css +117 -11
  105. package/dist/collection/components/ez-scroller/ez-scroller.js +118 -13
  106. package/dist/collection/components/ez-search/ez-search.css +4 -0
  107. package/dist/collection/components/ez-search/ez-search.js +22 -1
  108. package/dist/collection/components/ez-search-plus/ez-search-plus.js +38 -10
  109. package/dist/collection/components/ez-sortable-list/ez-sortable-list.css +1 -1
  110. package/dist/collection/components/ez-split-button/ez-split-button.css +1 -1
  111. package/dist/collection/components/ez-split-button/ez-split-button.js +20 -15
  112. package/dist/collection/components/ez-tabselector/ez-tabselector.css +29 -1
  113. package/dist/collection/components/ez-tabselector/ez-tabselector.js +254 -62
  114. package/dist/collection/components/ez-text-input/ez-text-input.js +21 -15
  115. package/dist/collection/components/ez-tooltip/ez-tooltip.js +45 -7
  116. package/dist/collection/utils/form/FormMetadata.js +62 -40
  117. package/dist/collection/utils/i18n/locales/en-us.js +27 -4
  118. package/dist/collection/utils/i18n/locales/es-es.js +27 -4
  119. package/dist/collection/utils/i18n/locales/pt-br.js +27 -4
  120. package/dist/collection/utils/interfaces/AbstractFieldMetadata.js +14 -2
  121. package/dist/collection/utils/searchColumn/search-column.js +8 -6
  122. package/dist/custom-elements/index.d.ts +18 -0
  123. package/dist/custom-elements/index.js +1889 -647
  124. package/dist/esm/{ApplicationUtils-0c5cb207.js → ApplicationUtils-f7721533.js} +1 -1
  125. package/dist/esm/{app-globals-1db10325.js → app-globals-6e258867.js} +1 -1
  126. package/dist/esm/{classic-search-list_7.entry.js → classic-search-list_8.entry.js} +202 -5
  127. package/dist/esm/ez-actions-button.entry.js +2 -2
  128. package/dist/esm/ez-alert-list.entry.js +1 -1
  129. package/dist/esm/ez-avatar.entry.js +1 -1
  130. package/dist/esm/ez-calendar.entry.js +1 -1
  131. package/dist/esm/ez-classic-combo-box.entry.js +4 -2
  132. package/dist/esm/ez-classic-date-input.entry.js +2 -2
  133. package/dist/esm/ez-classic-date-time-input.entry.js +1 -1
  134. package/dist/esm/ez-classic-input.entry.js +49 -3
  135. package/dist/esm/ez-classic-number-input.entry.js +1 -1
  136. package/dist/esm/ez-classic-search-plus.entry.js +26 -13
  137. package/dist/esm/ez-classic-search.entry.js +2 -2
  138. package/dist/esm/ez-classic-text-area.entry.js +12 -1
  139. package/dist/esm/ez-classic-time-input.entry.js +4 -3
  140. package/dist/esm/ez-collapsible-box.entry.js +2 -2
  141. package/dist/esm/ez-combo-box.entry.js +7 -2
  142. package/dist/esm/ez-date-input.entry.js +1 -1
  143. package/dist/esm/ez-date-time-input.entry.js +1 -1
  144. package/dist/esm/ez-dialog.entry.js +1 -1
  145. package/dist/esm/ez-double-list.entry.js +1 -1
  146. package/dist/esm/ez-dropdown.entry.js +1 -1
  147. package/dist/esm/ez-empty-card.entry.js +1 -1
  148. package/dist/esm/ez-file-item.entry.js +1 -1
  149. package/dist/esm/ez-form-view.entry.js +20 -1
  150. package/dist/esm/ez-form.entry.js +65 -43
  151. package/dist/esm/ez-grid-pagination.entry.js +223 -0
  152. package/dist/esm/ez-grid.entry.js +236 -173
  153. package/dist/esm/ez-guide-navigator.entry.js +1 -1
  154. package/dist/esm/ez-icon.entry.js +1 -1
  155. package/dist/esm/ez-link-builder_6.entry.js +1 -1
  156. package/dist/esm/ez-list.entry.js +1 -1
  157. package/dist/esm/ez-modal-container.entry.js +1 -1
  158. package/dist/esm/ez-modal.entry.js +1 -1
  159. package/dist/esm/ez-multi-selection-list_5.entry.js +667 -0
  160. package/dist/esm/ez-number-input.entry.js +1 -1
  161. package/dist/esm/ez-pagination.entry.js +1 -1
  162. package/dist/esm/ez-popup.entry.js +4 -5
  163. package/dist/esm/ez-record-navigation.entry.js +117 -0
  164. package/dist/esm/ez-scroller_2.entry.js +81 -14
  165. package/dist/esm/ez-search-plus.entry.js +25 -11
  166. package/dist/esm/ez-search-result-list.entry.js +1 -1
  167. package/dist/esm/ez-search.entry.js +11 -4
  168. package/dist/esm/ez-sidebar-navigator.entry.js +1 -1
  169. package/dist/esm/ez-skeleton.entry.js +1 -1
  170. package/dist/esm/ez-sortable-list.entry.js +99 -114
  171. package/dist/esm/ez-spinner.entry.js +1 -1
  172. package/dist/esm/ez-split-button.entry.js +16 -17
  173. package/dist/esm/ez-split-item.entry.js +2 -2
  174. package/dist/esm/ez-tabselector.entry.js +209 -61
  175. package/dist/esm/ez-text-input.entry.js +21 -15
  176. package/dist/esm/ez-time-input.entry.js +1 -1
  177. package/dist/esm/ez-tooltip.entry.js +46 -8
  178. package/dist/esm/ez-tree.entry.js +1 -1
  179. package/dist/esm/ez-upload.entry.js +2 -2
  180. package/dist/esm/ezui.js +3 -3
  181. package/dist/esm/filter-column.entry.js +9 -3
  182. package/dist/esm/{floating-ui.dom.esm-ad30f2f0.js → floating-ui.dom.esm-0c464cef.js} +258 -120
  183. package/dist/esm/{index-225aa0c3.js → index-9e6dab5b.js} +91 -30
  184. package/dist/esm/index-baa5e267.js +16 -16
  185. package/dist/esm/loader.js +3 -3
  186. package/dist/esm/{search-column-e145f048.js → search-column-7d7f0331.js} +24 -10
  187. package/dist/ezui/ezui.esm.js +1 -1
  188. package/dist/ezui/p-01e652c6.entry.js +1 -0
  189. package/dist/ezui/p-0592535f.entry.js +1 -0
  190. package/dist/ezui/{p-544605c4.entry.js → p-063bb342.entry.js} +1 -1
  191. package/dist/ezui/{p-c56ee8c0.entry.js → p-0ac8bd66.entry.js} +1 -1
  192. package/dist/ezui/p-0d80e3ec.entry.js +1 -0
  193. package/dist/ezui/{p-729bd1be.entry.js → p-108503ed.entry.js} +1 -1
  194. package/dist/ezui/{p-e3cd5080.entry.js → p-1166b2d5.entry.js} +1 -1
  195. package/dist/ezui/p-1222e1b6.entry.js +1 -0
  196. package/dist/ezui/p-15873627.js +1 -0
  197. package/dist/ezui/p-178cb9df.entry.js +1 -0
  198. package/dist/ezui/p-1b1b0af3.entry.js +1 -0
  199. package/dist/ezui/p-2856c545.entry.js +1 -0
  200. package/dist/ezui/{p-df802548.entry.js → p-2ae127bc.entry.js} +1 -1
  201. package/dist/ezui/{p-556bf329.entry.js → p-2ebd7383.entry.js} +1 -1
  202. package/dist/ezui/p-3e84df1c.entry.js +1 -0
  203. package/dist/ezui/p-3fae7072.entry.js +1 -0
  204. package/dist/ezui/p-42e1e733.js +1 -0
  205. package/dist/ezui/{p-4e869617.entry.js → p-45245c32.entry.js} +1 -1
  206. package/dist/ezui/{p-a872c642.entry.js → p-46b1b2ac.entry.js} +1 -1
  207. package/dist/ezui/{p-5abb220b.entry.js → p-54af1af0.entry.js} +1 -1
  208. package/dist/ezui/p-55434123.entry.js +1 -0
  209. package/dist/ezui/p-6791d05f.entry.js +1 -0
  210. package/dist/ezui/{p-b83b9d14.entry.js → p-6d46f862.entry.js} +46 -46
  211. package/dist/ezui/p-6da0dc70.entry.js +1 -0
  212. package/dist/ezui/p-72e77b45.entry.js +1 -0
  213. package/dist/ezui/{p-7edc3ef7.entry.js → p-73461028.entry.js} +1 -1
  214. package/dist/ezui/{p-f5552540.entry.js → p-7424d520.entry.js} +1 -1
  215. package/dist/ezui/{p-b705b342.entry.js → p-7a07c50f.entry.js} +1 -1
  216. package/dist/ezui/p-7b078125.entry.js +1 -0
  217. package/dist/ezui/p-7df45688.entry.js +1 -0
  218. package/dist/ezui/{p-b0a716ef.entry.js → p-881abc22.entry.js} +1 -1
  219. package/dist/ezui/{p-7134726a.entry.js → p-99556756.entry.js} +1 -1
  220. package/dist/ezui/{p-97312709.entry.js → p-9bd78d39.entry.js} +1 -1
  221. package/dist/ezui/p-a11e4e8e.entry.js +1 -0
  222. package/dist/ezui/p-a9ab6cb9.entry.js +1 -0
  223. package/dist/ezui/{p-9825c1d2.js → p-ad5e263d.js} +1 -1
  224. package/dist/ezui/{p-26cd4c2e.entry.js → p-b06294c9.entry.js} +1 -1
  225. package/dist/ezui/{p-4d30b703.entry.js → p-b50289bb.entry.js} +1 -1
  226. package/dist/ezui/p-b66ae5c5.entry.js +1 -0
  227. package/dist/ezui/{p-2da9faf1.entry.js → p-b8cd501a.entry.js} +1 -1
  228. package/dist/ezui/p-b986da95.entry.js +7 -0
  229. package/dist/ezui/{p-4c2a4435.entry.js → p-c25a4d30.entry.js} +1 -1
  230. package/dist/ezui/{p-4f7ad3ee.entry.js → p-c37fb359.entry.js} +1 -1
  231. package/dist/ezui/{p-e2972977.entry.js → p-cb00863d.entry.js} +1 -1
  232. package/dist/ezui/{p-e3a42f47.entry.js → p-d5684cdc.entry.js} +1 -1
  233. package/dist/ezui/{p-6ac056d7.entry.js → p-d70805e4.entry.js} +1 -1
  234. package/dist/ezui/p-d81a15fc.entry.js +1 -0
  235. package/dist/ezui/p-d8b69419.entry.js +1 -0
  236. package/dist/ezui/p-de14fe07.js +1 -0
  237. package/dist/ezui/p-df6173c8.entry.js +1 -0
  238. package/dist/ezui/{p-56565777.entry.js → p-dfced8c7.entry.js} +1 -1
  239. package/dist/ezui/{p-0248846f.entry.js → p-e3d6b544.entry.js} +1 -1
  240. package/dist/ezui/p-e63a0479.js +1 -0
  241. package/dist/ezui/{p-4c76b365.entry.js → p-e692c2a7.entry.js} +1 -1
  242. package/dist/ezui/{p-8e5f1c74.entry.js → p-e8cd003b.entry.js} +1 -1
  243. package/dist/ezui/p-ed790867.entry.js +1 -0
  244. package/dist/ezui/p-f2e0acf5.entry.js +1 -0
  245. package/dist/ezui/{p-34d459e4.entry.js → p-f498f6b5.entry.js} +1 -1
  246. package/dist/ezui/{p-4af745e1.entry.js → p-fb27b98d.entry.js} +1 -1
  247. package/dist/ezui/{p-987185c4.entry.js → p-fc11f5b9.entry.js} +1 -1
  248. package/dist/types/components/ez-classic-combo-box/ez-classic-combo-box.d.ts +2 -0
  249. package/dist/types/components/ez-classic-input/ez-classic-input.d.ts +6 -0
  250. package/dist/types/components/ez-classic-search-plus/ez-classic-search-plus.d.ts +3 -0
  251. package/dist/types/components/ez-classic-text-area/ez-classic-text-area.d.ts +3 -0
  252. package/dist/types/components/ez-empty-card/ez-empty-card.d.ts +2 -2
  253. package/dist/types/components/ez-form-view/fieldbuilder/templates/MultiSelectInput.tpl.d.ts +2 -0
  254. package/dist/types/components/ez-grid/controller/EzGridController.d.ts +2 -0
  255. package/dist/types/components/ez-grid/controller/ag-grid/AgGridController.d.ts +16 -0
  256. package/dist/types/components/ez-grid/controller/ag-grid/gridColumnDefaultWidths.d.ts +4 -0
  257. package/dist/types/components/ez-grid/controller/ag-grid/utils/AggFunctionResolver.d.ts +2 -0
  258. package/dist/types/components/ez-grid/ez-grid.d.ts +10 -27
  259. package/dist/types/components/ez-grid/interfaces/IAggegationFunc.d.ts +3 -0
  260. package/dist/types/components/ez-grid/utils/index.d.ts +1 -0
  261. package/dist/types/components/ez-grid-pagination/ez-grid-pagination.d.ts +75 -0
  262. package/dist/types/components/ez-image-input/ez-image-input.d.ts +1 -0
  263. package/dist/types/components/ez-multi-select-input/ez-multi-select-input.d.ts +119 -0
  264. package/dist/types/components/ez-multi-selection-list/ez-multi-selection-list.d.ts +8 -0
  265. package/dist/types/components/ez-popover-plus/ez-popover-plus.d.ts +7 -0
  266. package/dist/types/components/ez-popover-plus/subcomponent/ez-popover-core.d.ts +9 -0
  267. package/dist/types/components/ez-popup/ez-popup.d.ts +1 -0
  268. package/dist/types/components/ez-record-navigation/ez-record-navigation.d.ts +43 -0
  269. package/dist/types/components/ez-scroller/EzScrollNavigationMode.d.ts +4 -0
  270. package/dist/types/components/ez-scroller/ez-scroller.d.ts +16 -2
  271. package/dist/types/components/ez-search/ez-search.d.ts +4 -0
  272. package/dist/types/components/ez-search-plus/ez-search-plus.d.ts +6 -1
  273. package/dist/types/components/ez-split-button/ez-split-button.d.ts +1 -2
  274. package/dist/types/components/ez-tabselector/ez-tabselector.d.ts +41 -20
  275. package/dist/types/components/ez-text-input/ez-text-input.d.ts +1 -0
  276. package/dist/types/components/ez-tooltip/ez-tooltip.d.ts +2 -0
  277. package/dist/types/components.d.ts +407 -9
  278. package/dist/types/utils/i18n/locales/en-us.d.ts +26 -3
  279. package/dist/types/utils/i18n/locales/es-es.d.ts +26 -3
  280. package/dist/types/utils/i18n/locales/pt-br.d.ts +26 -3
  281. package/dist/types/utils/i18n/translations.d.ts +78 -9
  282. package/package.json +5 -6
  283. package/react/components.d.ts +3 -0
  284. package/react/components.js +3 -0
  285. package/react/components.js.map +1 -1
  286. package/dist/cjs/ez-multi-selection-list.cjs.entry.js +0 -194
  287. package/dist/cjs/ez-popover-core.cjs.entry.js +0 -211
  288. package/dist/cjs/ez-popover-plus_3.cjs.entry.js +0 -243
  289. package/dist/esm/ez-multi-selection-list.entry.js +0 -190
  290. package/dist/esm/ez-popover-core.entry.js +0 -207
  291. package/dist/esm/ez-popover-plus_3.entry.js +0 -237
  292. package/dist/ezui/p-0625743b.entry.js +0 -1
  293. package/dist/ezui/p-2528e988.entry.js +0 -1
  294. package/dist/ezui/p-288631d1.entry.js +0 -1
  295. package/dist/ezui/p-2a806303.js +0 -1
  296. package/dist/ezui/p-44183c39.entry.js +0 -1
  297. package/dist/ezui/p-4e576bb9.entry.js +0 -1
  298. package/dist/ezui/p-6020f3d5.entry.js +0 -1
  299. package/dist/ezui/p-619225ce.entry.js +0 -1
  300. package/dist/ezui/p-679a2942.entry.js +0 -1
  301. package/dist/ezui/p-951b32a1.entry.js +0 -1
  302. package/dist/ezui/p-a0f51b99.entry.js +0 -1
  303. package/dist/ezui/p-a3bad8f8.entry.js +0 -1
  304. package/dist/ezui/p-a4351519.entry.js +0 -1
  305. package/dist/ezui/p-b36475f9.entry.js +0 -1
  306. package/dist/ezui/p-b8078832.entry.js +0 -1
  307. package/dist/ezui/p-c0ae79fa.entry.js +0 -1
  308. package/dist/ezui/p-c178730b.js +0 -1
  309. package/dist/ezui/p-c2b2172b.entry.js +0 -1
  310. package/dist/ezui/p-c3c6274e.js +0 -1
  311. package/dist/ezui/p-cabc119e.entry.js +0 -1
  312. package/dist/ezui/p-ce0a0036.entry.js +0 -7
  313. package/dist/ezui/p-cfa26133.entry.js +0 -1
  314. package/dist/ezui/p-d2645bdf.entry.js +0 -1
  315. package/dist/ezui/p-d5dc6b01.entry.js +0 -1
  316. package/dist/ezui/p-e2689b33.entry.js +0 -1
  317. package/dist/ezui/p-e493ad57.entry.js +0 -1
  318. package/dist/ezui/p-ef8bd3e8.entry.js +0 -1
  319. package/dist/ezui/p-ff4312d5.js +0 -1
@@ -1,190 +0,0 @@
1
- import { r as registerInstance, c as createEvent, h, F as Fragment, H as Host } from './index-baa5e267.js';
2
- import { i as initI18n } from './index-225aa0c3.js';
3
- import { ArrayUtils } from '@sankhyalabs/core';
4
-
5
- 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)}";
6
-
7
- var ViewScenarios;
8
- (function (ViewScenarios) {
9
- ViewScenarios["DATASOURCE_RESULTS"] = "DATASOURCE_RESULTS";
10
- ViewScenarios["DATASOURCE_RESULTS_EMPTY"] = "DATASOURCE_RESULTS_EMPTY";
11
- ViewScenarios["DATASOURCE_INIT"] = "DATASOURCE_INIT";
12
- ViewScenarios["OPTIONS_EMPTY"] = "OPTIONS_EMPTY";
13
- ViewScenarios["OPTIONS"] = "OPTIONS";
14
- })(ViewScenarios || (ViewScenarios = {}));
15
- const EzMuiltiSelectionList = class {
16
- constructor(hostRef) {
17
- registerInstance(this, hostRef);
18
- this.changeFilteredOptions = createEvent(this, "changeFilteredOptions", 7);
19
- this.columnName = undefined;
20
- this.dataSource = undefined;
21
- this.useOptions = false;
22
- this.options = undefined;
23
- this.isTextSearch = false;
24
- this.filteredOptions = undefined;
25
- this.displayOptions = undefined;
26
- this.viewScenario = undefined;
27
- this.displayOptionToCheckAllItems = true;
28
- }
29
- async componentWillLoad() {
30
- this.i18n = await initI18n();
31
- }
32
- async clearFilteredOptions() {
33
- this.setInitialScenario();
34
- this.filteredOptions = [];
35
- if (this.searchInput) {
36
- await this.searchInput.clearValue();
37
- }
38
- if (this.filterInput) {
39
- this.filterInput.value = '';
40
- }
41
- }
42
- onChangeUseOptions() {
43
- this.setInitialScenario();
44
- }
45
- onChangeOptions() {
46
- if (this.options) {
47
- this.filteredOptions = this.ordenationByCheckStateAndAlphabetically(this.options);
48
- }
49
- this.checkInput && this.changeCheckAllValeuFromFilteredOptions();
50
- this.setInitialScenario();
51
- }
52
- onChangeFilteredOptions(optionsListUpdated) {
53
- this.displayOptions = this.filteredOptions;
54
- this.displayOptionToCheckAllItems = this.filteredOptions.length > 1;
55
- this.checkInput && this.changeCheckAllValeuFromFilteredOptions();
56
- this.changeFilteredOptions.emit(optionsListUpdated);
57
- }
58
- componentDidLoad() {
59
- this.onChangeOptions();
60
- }
61
- componentDidRender() {
62
- this.changeCheckAllValeuFromFilteredOptions();
63
- }
64
- ordenationByCheckStateAndAlphabetically(filteredOptions) {
65
- const listWithSelectChecked = [];
66
- const listWithNotSelectChecked = [];
67
- let emptyElement;
68
- filteredOptions.forEach(item => {
69
- if (item.value == undefined || item.label === "") {
70
- emptyElement = Object.assign(Object.assign({}, item), { label: this.i18n("ez-multi-selection-list.empty") });
71
- }
72
- else {
73
- (item.check ? listWithSelectChecked.push(item) : listWithNotSelectChecked.push(item));
74
- }
75
- });
76
- return (emptyElement == undefined ? [] : [emptyElement])
77
- .concat(this.dataSource == undefined ? ArrayUtils.sortAlphabetically(listWithSelectChecked) : this.dataSource.sortItems(this.columnName, listWithSelectChecked))
78
- .concat(this.dataSource == undefined ? ArrayUtils.sortAlphabetically(listWithNotSelectChecked) : this.dataSource.sortItems(this.columnName, listWithNotSelectChecked));
79
- }
80
- changeCheckAllValeuFromFilteredOptions() {
81
- var _a, _b, _c, _d;
82
- const selectAll = (_a = this.filteredOptions) === null || _a === void 0 ? void 0 : _a.every(item => item.check === true);
83
- const notSelectAll = (_b = this.filteredOptions) === null || _b === void 0 ? void 0 : _b.every(item => item.check === false);
84
- 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);
85
- if (this.checkInput && selectAll) {
86
- this.checkInput.indeterminate = false;
87
- this.checkInput.value = true;
88
- return;
89
- }
90
- if (this.checkInput && selectIndeterminated) {
91
- this.checkInput.indeterminate = true;
92
- this.checkInput.value = false;
93
- return;
94
- }
95
- if (this.checkInput && notSelectAll) {
96
- this.checkInput.indeterminate = false;
97
- this.checkInput.value = false;
98
- return;
99
- }
100
- }
101
- setInitialScenario() {
102
- if (this.useOptions) {
103
- this.viewScenario = ViewScenarios.OPTIONS;
104
- this.changeCheckAllValeuFromFilteredOptions();
105
- return;
106
- }
107
- this.viewScenario = this.options && this.options.length > 0 ? ViewScenarios.DATASOURCE_RESULTS : ViewScenarios.DATASOURCE_INIT;
108
- }
109
- async searchWithDataSource(searchArgument, fieldName) {
110
- const { argument, mode } = searchArgument;
111
- if (mode !== 'PRELOAD' && fieldName) {
112
- return this.dataSource.fetchData(argument, fieldName);
113
- }
114
- }
115
- async handleSearchOnDataSource(event) {
116
- var _a;
117
- const optionsToSort = (_a = this.filteredOptions) !== null && _a !== void 0 ? _a : [];
118
- if (event.detail && !optionsToSort.some(item => item.value == event.detail.value)) {
119
- this.filteredOptions = this.ordenationByCheckStateAndAlphabetically([...optionsToSort, event.detail]);
120
- }
121
- this.viewScenario = ViewScenarios.DATASOURCE_RESULTS;
122
- await this.searchInput.clearValue();
123
- }
124
- async handleRemoveItemFromOptions(item) {
125
- this.filteredOptions = this.ordenationByCheckStateAndAlphabetically(this.filteredOptions.filter(i => i.value !== item.value));
126
- if (this.filteredOptions.length === 0) {
127
- this.viewScenario = ViewScenarios.DATASOURCE_INIT;
128
- }
129
- if (this.searchInput) {
130
- await this.searchInput.clearValue();
131
- }
132
- }
133
- handleSearchOnOption(event) {
134
- if (event.detail) {
135
- this.displayOptions = ArrayUtils.applyStringFilter(event.detail, this.filteredOptions, true);
136
- this.viewScenario = this.displayOptions.length === 0 ? ViewScenarios.OPTIONS_EMPTY : ViewScenarios.OPTIONS;
137
- return;
138
- }
139
- this.displayOptions = this.filteredOptions;
140
- this.viewScenario = ViewScenarios.OPTIONS;
141
- }
142
- handleChangeSelectAllItems(event) {
143
- this.filteredOptions = this.ordenationByCheckStateAndAlphabetically([
144
- ...this.filteredOptions.map(item => {
145
- item.check = !!event.detail;
146
- return item;
147
- }),
148
- ]);
149
- }
150
- handleChangeSelectedItem(event) {
151
- const { detail: itemCheckSelected } = event;
152
- const itemSelected = this.filteredOptions.find(item => item.label === itemCheckSelected.label);
153
- itemSelected.check = itemCheckSelected.check;
154
- this.changeFilteredOptions.emit(this.filteredOptions);
155
- }
156
- buildViewList(hasDelete) {
157
- return (h(Fragment, null, this.displayOptionToCheckAllItems && (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) })), 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 })));
158
- }
159
- buildDeleteIconSlot(item) {
160
- return h("ez-icon", { style: { cursor: 'pointer' }, iconName: "delete", onClick: () => this.handleRemoveItemFromOptions(item) });
161
- }
162
- buildInitViewWithDataSource() {
163
- return h("multi-selection-box-message", { message: this.i18n("ez-multi-selection-list.initMessage") });
164
- }
165
- buildViewEmptyResults() {
166
- return h("multi-selection-box-message", { message: this.i18n("ez-multi-selection-list.emptyResults") });
167
- }
168
- scenarioToDisplay(view) {
169
- const scenarios = {
170
- [ViewScenarios.DATASOURCE_INIT]: () => this.buildInitViewWithDataSource(),
171
- [ViewScenarios.DATASOURCE_RESULTS]: () => this.buildViewList(true),
172
- [ViewScenarios.DATASOURCE_RESULTS_EMPTY]: () => this.buildViewEmptyResults(),
173
- [ViewScenarios.OPTIONS_EMPTY]: () => this.buildViewEmptyResults(),
174
- [ViewScenarios.OPTIONS]: () => this.buildViewList(false),
175
- };
176
- const scenarioBuilder = scenarios[view];
177
- return scenarioBuilder ? scenarioBuilder() : undefined;
178
- }
179
- render() {
180
- return (h(Host, null, h("div", { class: "multi-selection" }, this.useOptions ? (h("ez-filter-input", { ref: (element) => (this.filterInput = element), label: this.i18n("ez-multi-selection-list.search"), onEzChange: this.handleSearchOnOption.bind(this) })) : (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 })), h("ez-scroll", { class: "multi-selection__content-options" }, this.scenarioToDisplay(this.viewScenario)))));
181
- }
182
- static get watchers() { return {
183
- "useOptions": ["onChangeUseOptions"],
184
- "options": ["onChangeOptions"],
185
- "filteredOptions": ["onChangeFilteredOptions"]
186
- }; }
187
- };
188
- EzMuiltiSelectionList.style = ezMultiSelectionListCss;
189
-
190
- export { EzMuiltiSelectionList as ez_multi_selection_list };
@@ -1,207 +0,0 @@
1
- import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-baa5e267.js';
2
- import { c as computePosition, f as flip, s as shift } from './floating-ui.dom.esm-ad30f2f0.js';
3
-
4
- 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)}";
5
-
6
- const EzPopoverCore = class {
7
- constructor(hostRef) {
8
- registerInstance(this, hostRef);
9
- this.ezVisibilityChange = createEvent(this, "ezVisibilityChange", 7);
10
- this.autoClose = true;
11
- this.boxWidth = "fit-content";
12
- this.opened = false;
13
- this.overlayType = "light";
14
- this.anchorElement = undefined;
15
- this.options = { horizontalGap: 0, verticalGap: 0, fromRight: false };
16
- this.useAnchorSize = false;
17
- this.minWidth = 150;
18
- }
19
- observeOpened(newValue, oldValue) {
20
- if (newValue === oldValue) {
21
- return;
22
- }
23
- if (newValue) {
24
- this.openPopover();
25
- }
26
- else {
27
- this.hidePopover();
28
- }
29
- }
30
- /**
31
- * Atualiza a posição do popover.
32
- */
33
- async updatePosition(top, left) {
34
- this.updateOptionPosition(top, left);
35
- await this.updatePositionPopover();
36
- }
37
- /**
38
- * Exibe o ez-popover.
39
- */
40
- async show(top, left) {
41
- this.updateOptionPosition(top, left);
42
- this.opened = true;
43
- }
44
- /**
45
- * Ancora a exibição do popOver a um elemento HTML.
46
- */
47
- async showUnder(element, options) {
48
- if (options) {
49
- this.options = options;
50
- }
51
- this.anchorElement = element;
52
- this.opened = true;
53
- }
54
- /**
55
- * Oculta o ez-popover.
56
- */
57
- async hide() {
58
- this.opened = false;
59
- }
60
- /**
61
- * Altera as opções.
62
- */
63
- async setOptions(options) {
64
- Object.assign(this.options, options);
65
- }
66
- /**
67
- * Altera o elemento de ancoragem.
68
- */
69
- async setAnchorElement(anchor) {
70
- this.anchorElement = anchor;
71
- }
72
- parseSizePixel(sizePixel, defaultValue) {
73
- if (!sizePixel) {
74
- return defaultValue !== null && defaultValue !== void 0 ? defaultValue : 0;
75
- }
76
- if (typeof sizePixel === "string") {
77
- return Number(sizePixel.replace("px", ""));
78
- }
79
- return sizePixel !== null && sizePixel !== void 0 ? sizePixel : 0;
80
- }
81
- updateOptionPosition(top, left) {
82
- Object.assign(this.options, {
83
- horizontalGap: this.parseSizePixel(left, this.options.horizontalGap),
84
- verticalGap: this.parseSizePixel(top, this.options.verticalGap),
85
- });
86
- }
87
- getElement(element) {
88
- if (typeof element === 'string') {
89
- return document.getElementById(element);
90
- }
91
- return element;
92
- }
93
- getAnchorElement() {
94
- if (!this.anchorElement) {
95
- return this._host;
96
- }
97
- if (Array.isArray(this.anchorElement)) {
98
- for (const element of this.anchorElement) {
99
- const htmlElement = this.getElement(element);
100
- if (htmlElement) {
101
- return htmlElement;
102
- }
103
- }
104
- return this._host;
105
- }
106
- return this.getElement(this.anchorElement);
107
- }
108
- async updatePositionPopover() {
109
- if (!this._box || !this.opened) {
110
- return;
111
- }
112
- const currentAnchorElement = this.getAnchorElement();
113
- await computePosition(currentAnchorElement, this._box, {
114
- placement: this.options.fromRight ? 'bottom-end' : 'bottom-start',
115
- middleware: [flip(), shift({ padding: 5 })],
116
- strategy: 'fixed',
117
- }).then(({ x, y, placement }) => {
118
- const newTop = placement.includes("bottom") ? y + this.options.verticalGap : y - this.options.verticalGap;
119
- const newLeft = placement.includes("start") ? x + this.options.horizontalGap : x - this.options.horizontalGap;
120
- Object.assign(this._box.style, {
121
- top: `${newTop}px`,
122
- left: `${newLeft}px`,
123
- });
124
- });
125
- }
126
- hidePopover() {
127
- if (!this._box) {
128
- return;
129
- }
130
- this._box.style.display = '';
131
- this.hideOverlay();
132
- this.ezVisibilityChange.emit(false);
133
- }
134
- async openPopover() {
135
- if (!this._box || !this.opened) {
136
- return;
137
- }
138
- this._box.style.display = 'flex';
139
- this._box.style.visibility = 'hidden';
140
- if (this.useAnchorSize) {
141
- const currentAnchorElement = this.getAnchorElement();
142
- const anchorSize = currentAnchorElement.getBoundingClientRect().width;
143
- const width = anchorSize < this.minWidth ? this.minWidth : anchorSize;
144
- this._box.style.width = `${width}px`;
145
- }
146
- await this.updatePositionPopover();
147
- this.openOverlay();
148
- this.ezVisibilityChange.emit(true);
149
- this._box.style.visibility = 'visible';
150
- }
151
- openOverlay() {
152
- if (!this._overlay || !this._overlayIsActive) {
153
- return;
154
- }
155
- this._overlay.style.display = 'block';
156
- }
157
- hideOverlay() {
158
- if (!this._overlay) {
159
- return;
160
- }
161
- this._overlay.style.display = 'none';
162
- }
163
- checkStatusOverlay() {
164
- if (this.overlayType !== "none") {
165
- return true;
166
- }
167
- if (this.overlayType === "none" && this.autoClose) {
168
- return true;
169
- }
170
- return false;
171
- }
172
- handlePositionUpdate() {
173
- if (!this.opened) {
174
- return;
175
- }
176
- this.updatePositionPopover();
177
- }
178
- componentWillLoad() {
179
- window.addEventListener('scroll', this.handlePositionUpdate.bind(this), true);
180
- window.addEventListener('resize', this.handlePositionUpdate.bind(this), true);
181
- }
182
- componentDidLoad() {
183
- this._overlayIsActive = this.checkStatusOverlay();
184
- this._resizeObserver = new ResizeObserver(this.updatePositionPopover.bind(this));
185
- this._resizeObserver.observe(this._box);
186
- this.openPopover();
187
- }
188
- disconnectedCallback() {
189
- window.removeEventListener('scroll', this.handlePositionUpdate.bind(this), true);
190
- window.removeEventListener('resize', this.handlePositionUpdate.bind(this), true);
191
- this._resizeObserver.disconnect();
192
- }
193
- render() {
194
- return (h(Host, null, h("div", { ref: el => this._overlay = el, onClick: () => this.hide(), class: `popover__overlay popover__overlay--${this.overlayType}` }), h("section", { ref: el => this._box = el, class: {
195
- "popover__box": true,
196
- "popover__box--fit-content": this.boxWidth === "fit-content",
197
- "popover__box--full-width": this.boxWidth !== "fit-content",
198
- } }, h("slot", null))));
199
- }
200
- get _host() { return getElement(this); }
201
- static get watchers() { return {
202
- "opened": ["observeOpened"]
203
- }; }
204
- };
205
- EzPopoverCore.style = ezPopoverCoreCss;
206
-
207
- export { EzPopoverCore as ez_popover_core };
@@ -1,237 +0,0 @@
1
- import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-baa5e267.js';
2
- import { ElementIDUtils, StringUtils } from '@sankhyalabs/core';
3
- import { a as replaceHighlight, r as replaceQuotes } from './searchFormatters-8229207e.js';
4
-
5
- const ezPopoverPlusCss = ":host{display:none}";
6
-
7
- const EzPopoverPlus = class {
8
- constructor(hostRef) {
9
- registerInstance(this, hostRef);
10
- this.ezVisibilityChange = createEvent(this, "ezVisibilityChange", 7);
11
- this.autoClose = true;
12
- this.boxWidth = "fit-content";
13
- this.opened = false;
14
- this.overlayType = "light";
15
- this.anchorElement = undefined;
16
- this.options = { horizontalGap: 0, verticalGap: 0, fromRight: false };
17
- this.useAnchorSize = false;
18
- this.minWidth = 150;
19
- }
20
- async observeOpened(newValue) {
21
- if (newValue && !this._popOverCore) {
22
- this.renderPopoverCore();
23
- }
24
- this._popOverCore.opened = newValue;
25
- }
26
- /**
27
- * Atualiza a posição do popover.
28
- */
29
- async updatePosition(top, left) {
30
- var _a;
31
- await ((_a = this._popOverCore) === null || _a === void 0 ? void 0 : _a.updatePosition(top, left));
32
- }
33
- /**
34
- * Exibe o ez-popover.
35
- */
36
- async show(top, left) {
37
- if (!this._popOverCore) {
38
- this.renderPopoverCore();
39
- }
40
- await this._popOverCore.show(top, left);
41
- }
42
- /**
43
- * Ancora a exibição do popOver a um elemento HTML.
44
- */
45
- async showUnder(element, options) {
46
- if (!this._popOverCore) {
47
- this.renderPopoverCore();
48
- }
49
- await this._popOverCore.showUnder(element, options);
50
- }
51
- /**
52
- * Oculta o ez-popover.
53
- */
54
- async hide() {
55
- var _a;
56
- await ((_a = this._popOverCore) === null || _a === void 0 ? void 0 : _a.hide());
57
- }
58
- /**
59
- * Altera as opções.
60
- */
61
- async setOptions(options) {
62
- var _a;
63
- await ((_a = this._popOverCore) === null || _a === void 0 ? void 0 : _a.setOptions(options));
64
- }
65
- /**
66
- * Altera o elemento de ancoragem.
67
- */
68
- async setAnchorElement(anchor) {
69
- var _a;
70
- await ((_a = this._popOverCore) === null || _a === void 0 ? void 0 : _a.setAnchorElement(anchor));
71
- this.anchorElement = anchor;
72
- }
73
- getFirstElement(collection) {
74
- if (Array.isArray(collection) && collection.length) {
75
- return collection[0];
76
- }
77
- if (!Array.isArray(collection) && collection.item) {
78
- return collection.item(0);
79
- }
80
- return null;
81
- }
82
- buildElementId(keys) {
83
- const filteredKeys = keys.filter((key) => !!key);
84
- return ElementIDUtils.getInternalIDInfo(filteredKeys.join("_"));
85
- }
86
- renderPopoverCore() {
87
- var _a;
88
- this._popOverCore = document.createElement('ez-popover-core');
89
- this._popOverCore.opened = this.opened;
90
- this._popOverCore.anchorElement = this.anchorElement;
91
- this._popOverCore.autoClose = this.autoClose;
92
- this._popOverCore.boxWidth = this.boxWidth;
93
- this._popOverCore.overlayType = this.overlayType;
94
- this._popOverCore.options = this.options;
95
- this._popOverCore.useAnchorSize = this.useAnchorSize;
96
- this._popOverCore.minWidth = this.minWidth;
97
- this._popOverCore.setAttribute("data-element-id", this.buildElementId(["ez-popover-core", this._host.getAttribute("data-element-id")]));
98
- this._popOverCore.addEventListener('ezVisibilityChange', ({ detail }) => {
99
- this.ezVisibilityChange.emit(detail);
100
- this.opened = detail;
101
- });
102
- const firstChild = this.getFirstElement(this._host.children);
103
- if (firstChild) {
104
- this._popOverCore.appendChild(firstChild);
105
- }
106
- else {
107
- console.warn('O slot do popover está vazio. Adicione conteúdo ao slot para exibição correta.');
108
- }
109
- const root = document.body.querySelector("#root");
110
- const firstDiv = this.getFirstElement(document.body.getElementsByTagName("div"));
111
- const parentElement = (_a = root !== null && root !== void 0 ? root : firstDiv) !== null && _a !== void 0 ? _a : document.body;
112
- parentElement.appendChild(this._popOverCore);
113
- }
114
- render() {
115
- return (h(Host, null, h("slot", null)));
116
- }
117
- get _host() { return getElement(this); }
118
- static get watchers() { return {
119
- "opened": ["observeOpened"]
120
- }; }
121
- };
122
- EzPopoverPlus.style = ezPopoverPlusCss;
123
-
124
- 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)}";
125
-
126
- const MultiSelectionBoxMessage = class {
127
- constructor(hostRef) {
128
- registerInstance(this, hostRef);
129
- this.message = undefined;
130
- }
131
- render() {
132
- return (h("div", { class: "multi-selection__message" }, h("span", { class: "multi-selection__text-message" }, this.message)));
133
- }
134
- };
135
- MultiSelectionBoxMessage.style = multiSelectionBoxMessageCss;
136
-
137
- 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}}";
138
-
139
- const SearchList = class {
140
- constructor(hostRef) {
141
- registerInstance(this, hostRef);
142
- this.changeValue = createEvent(this, "changeValue", 7);
143
- this.changePreSelection = createEvent(this, "changePreSelection", 7);
144
- this._startHighlightTag = "<span class='card-item__highlight'>";
145
- this._endHighlightTag = "</span>";
146
- this.MAX_HEIGHT = 350;
147
- this.HEADER_MENU_HEIGHT = 60;
148
- this.showLoading = undefined;
149
- this.visibleOptions = [];
150
- this.textEmptyList = undefined;
151
- this.canShowListOptions = undefined;
152
- this.value = undefined;
153
- this.showOptionValue = true;
154
- this.preSelection = undefined;
155
- }
156
- async nextOption() {
157
- const newPreSelection = this.preSelection === undefined ? 0 : Math.min(this.preSelection + 1, this.visibleOptions.length - 1);
158
- this.changePreSelection.emit(newPreSelection);
159
- this.scrollToOption(this.visibleOptions[newPreSelection]);
160
- }
161
- async previousOption() {
162
- const newPreSelection = this.preSelection === undefined ? 0 : Math.max(this.preSelection - 1, 0);
163
- this.changePreSelection.emit(newPreSelection);
164
- this.scrollToOption(this.visibleOptions[newPreSelection]);
165
- }
166
- selectOption(newOption) {
167
- 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) });
168
- 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) });
169
- this.changeValue.emit(newOptionsFormatted);
170
- }
171
- createOption(detail) {
172
- let { key, title } = detail;
173
- const startHighlight = new RegExp(this._startHighlightTag, 'g');
174
- const endHighlight = new RegExp(this._endHighlightTag, 'g');
175
- title = StringUtils.decodeHtmlEntities(title);
176
- const option = {
177
- value: key === null || key === void 0 ? void 0 : key.replace(startHighlight, '').replace(endHighlight, ''),
178
- label: title === null || title === void 0 ? void 0 : title.replace(startHighlight, '').replace(endHighlight, '')
179
- };
180
- this.selectOption(option);
181
- }
182
- scrollToOption(opt) {
183
- window.requestAnimationFrame(() => {
184
- const liElem = (opt === null || opt === void 0 ? void 0 : opt.value)
185
- ? this._optionsList.querySelector(`div#item_${opt.value.replace(/([ #;&,.+*~':"!^$[\]()=<>|/\\])/g, '\\$1')}`)
186
- : undefined;
187
- if (liElem) {
188
- liElem.scrollIntoView({ behavior: "smooth", block: "nearest" });
189
- }
190
- });
191
- }
192
- buildItem(opt, index) {
193
- opt.label = opt.label || opt.value;
194
- const card = {
195
- key: opt.value,
196
- title: opt.label,
197
- details: opt.details
198
- };
199
- 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 }));
200
- }
201
- componentDidLoad() {
202
- if (this._optionsList) {
203
- this._optionsList.style.maxHeight = `${this.MAX_HEIGHT}px`;
204
- }
205
- }
206
- componentDidUpdate() {
207
- if (this._optionsList) {
208
- const rect = this._optionsList.getBoundingClientRect();
209
- const spaceBelow = window.innerHeight - rect.bottom;
210
- if (spaceBelow < 0) {
211
- this.adjustMaxHeight(rect);
212
- }
213
- }
214
- }
215
- adjustMaxHeight(rect) {
216
- if (this._optionsList) {
217
- const spaceAbove = rect.top - this.HEADER_MENU_HEIGHT;
218
- const maxHeight = this.MAX_HEIGHT;
219
- const height = Math.min(spaceAbove, maxHeight);
220
- this._optionsList.style.maxHeight = `${height}px`;
221
- }
222
- }
223
- cleanEmptyObjectArray(arr) {
224
- return arr.filter(item => {
225
- return Object.values(item).some(valor => valor !== undefined);
226
- });
227
- }
228
- render() {
229
- return (h(Host, null, h("ul", { class: "list-options", ref: elem => this._optionsList = elem }, !this.showLoading
230
- && this.cleanEmptyObjectArray(this.visibleOptions).length === 0
231
- && h("div", { class: "message" }, h("span", { class: "message__no-result" }, this.textEmptyList)), this.showLoading
232
- && h("div", { class: "message" }, h("div", { class: "message__loading" })), this.canShowListOptions && this.visibleOptions.map((opt, index) => this.buildItem(opt, index)))));
233
- }
234
- };
235
- SearchList.style = searchListCss;
236
-
237
- export { EzPopoverPlus as ez_popover_plus, MultiSelectionBoxMessage as multi_selection_box_message, SearchList as search_list };