@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,15 +1,23 @@
1
1
  import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-baa5e267.js';
2
2
  import { ElementIDUtils, StringUtils } from '@sankhyalabs/core';
3
3
 
4
- const ezTabselectorCss = "@keyframes activate{0%{clip-path:inset(calc(100% - 3px) 50% 0px 50%)}100%{clip-path:inset(calc(100% - 3px) 0px 0px 0px)}}:host{display:flex;position:relative;width:100%;overflow:hidden;--tabselector--backward-icon:url('data:image/svg+xml;utf8,<svg xmlns=\"http://www.w3.org/2000/svg\" version=\"1.1\" height=\"16px\" width=\"10px\"><path d=\"M 9.7808475,13.860393 3.9204526,8.0000004 9.7808475,2.0624965 7.9301965,0.28895552 0.21915255,8.0000004 7.9301965,15.711044 Z\"/></svg>');--tabselector--forward-icon:url('data:image/svg+xml;utf8,<svg xmlns=\"http://www.w3.org/2000/svg\" version=\"1.1\" height=\"16px\" width=\"10px\"><path d=\"M 0.21915251,13.860393 6.0795475,8.0000007 0.21915251,2.0624968 2.0698036,0.28895588 9.7808475,8.0000007 2.0698036,15.711044 Z\"/></svg>')}.scroll{display:flex;width:100%;scroll-behavior:smooth;overflow-x:auto;scrollbar-width:none}.scroll.startHidden{-webkit-mask-image:linear-gradient(90deg, transparent 20px, #000 48px)}.scroll.middle{-webkit-mask-image:linear-gradient(90deg, transparent 20px, #000 48px, #000 calc(100% - 48px), transparent calc(100% - 20px))}.scroll.endHidden{-webkit-mask-image:linear-gradient(90deg, #000 calc(100% - 48px), transparent calc(100% - 20px))}.tab{display:flex;border:none;background-color:unset;min-width:100px;max-width:260px;cursor:pointer;padding:6px 12px;align-items:center;justify-content:center;color:var(--text--primary, #626e82);font-family:var(--font-pattern, \"Roboto\");font-size:var(--title--small, 14px);flex-shrink:0;margin-bottom:var(--space--extra-small, 3px)}.tab:focus,.forward-button,.backward-button{outline:none}.is-active{position:relative;color:var(--color--primary, #008561)}.is-active ez-icon{--ez-icon--color:var(--color--primary, #008561)}.is-active::after{content:\"\";position:absolute;width:100%;height:100%;background-color:var(--color--primary, #008561);clip-path:inset(calc(100% - 3px) 0px 0px 0px);animation:activate 0.25s ease-in-out}.is-focused{border:1px dashed var(--color--primary, #000000c5)}.tab-label{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;text-shadow:var(--text-shadow)}.forward-button,.backward-button{position:absolute;z-index:1;display:flex;box-sizing:border-box;padding:0px;top:0px;right:0px;width:16px;height:100%;border:none;background-color:unset;cursor:pointer;justify-content:center;align-items:center}.backward-button{left:0px}.forward-button::after,.backward-button::after{content:'';display:flex;background-color:var(--text--primary, #008561);width:10px;height:16px}.forward-button::after{-webkit-mask-image:var(--tabselector--forward-icon);mask-image:var(--tabselector--forward-icon)}.backward-button::after{-webkit-mask-image:var(--tabselector--backward-icon);mask-image:var(--tabselector--backward-icon)}.forward-button:hover::after,.backward-button:hover::after{background-color:var(--color--primary, #4e4e4e)}.hidden{display:none}.scroll::-webkit-scrollbar{display:none}.left-icon{padding-right:var(--space--small)}.right-icon{padding-left:var(--space--small)}";
4
+ const ezTabselectorCss = "@keyframes activate{0%{clip-path:inset(calc(100% - 3px) 50% 0px 50%)}100%{clip-path:inset(calc(100% - 3px) 0px 0px 0px)}}:host{display:flex;position:relative;width:100%;overflow:hidden;--tabselector--backward-icon:url('data:image/svg+xml;utf8,<svg xmlns=\"http://www.w3.org/2000/svg\" version=\"1.1\" height=\"16px\" width=\"10px\"><path d=\"M 9.7808475,13.860393 3.9204526,8.0000004 9.7808475,2.0624965 7.9301965,0.28895552 0.21915255,8.0000004 7.9301965,15.711044 Z\"/></svg>');--tabselector--forward-icon:url('data:image/svg+xml;utf8,<svg xmlns=\"http://www.w3.org/2000/svg\" version=\"1.1\" height=\"16px\" width=\"10px\"><path d=\"M 0.21915251,13.860393 6.0795475,8.0000007 0.21915251,2.0624968 2.0698036,0.28895588 9.7808475,8.0000007 2.0698036,15.711044 Z\"/></svg>')}.scroll{display:flex;width:100%;scroll-behavior:smooth;overflow-x:auto;scrollbar-width:none}.scroll.startHidden{-webkit-mask-image:linear-gradient(90deg, transparent 20px, #000 48px)}.scroll.middle{-webkit-mask-image:linear-gradient(90deg, transparent 20px, #000 48px, #000 calc(100% - 48px), transparent calc(100% - 20px))}.scroll.endHidden{-webkit-mask-image:linear-gradient(90deg, #000 calc(100% - 48px), transparent calc(100% - 20px))}.tab{display:flex;border:none;background-color:unset;min-width:100px;max-width:260px;cursor:pointer;padding:6px 12px;align-items:center;justify-content:center;color:var(--text--primary, #626e82);font-family:var(--font-pattern, \"Roboto\");font-size:var(--title--small, 14px);flex-shrink:0;margin-bottom:var(--space--extra-small, 3px)}.tab:focus,.forward-button,.backward-button{outline:none}.is-active{position:relative;color:var(--color--primary, #008561)}.is-active ez-icon{--ez-icon--color:var(--color--primary, #008561)}.is-active::after{content:\"\";position:absolute;width:100%;height:100%;background-color:var(--color--primary, #008561);clip-path:inset(calc(100% - 3px) 0px 0px 0px);animation:activate 0.25s ease-in-out}.is-focused{border:1px dashed var(--color--primary, #000000c5)}.is-disabled,.tab:disabled{cursor:not-allowed;opacity:0.5;color:var(--text--disabled, #a0a7b4);pointer-events:none}.is-disabled ez-icon{--ez-icon--color:var(--text--disabled, #a0a7b4)}.is-reorderable:not(.is-disabled){cursor:grab}.is-reorderable:not(.is-disabled):active{cursor:grabbing}.is-dragging{opacity:0.4}.is-drag-over{box-shadow:inset 2px 0 0 0 var(--color--primary, #008561)}.tab-label{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;text-shadow:var(--text-shadow)}.forward-button,.backward-button{position:absolute;z-index:1;display:flex;box-sizing:border-box;padding:0px;top:-2px;right:0px;width:16px;height:100%;border:none;background-color:unset;cursor:pointer;justify-content:center;align-items:center}.backward-button{left:0px}.forward-button::after,.backward-button::after{content:'';display:flex;background-color:var(--text--primary, #008561);width:10px;height:16px}.forward-button::after{-webkit-mask-image:var(--tabselector--forward-icon);mask-image:var(--tabselector--forward-icon)}.backward-button::after{-webkit-mask-image:var(--tabselector--backward-icon);mask-image:var(--tabselector--backward-icon)}.forward-button:hover::after,.backward-button:hover::after{background-color:var(--color--primary, #4e4e4e)}.hidden{display:none}.scroll::-webkit-scrollbar{display:none}.left-icon{padding-right:var(--space--small)}.right-icon{padding-left:var(--space--small)}";
5
5
 
6
6
  const EzTabselector = class {
7
7
  constructor(hostRef) {
8
8
  registerInstance(this, hostRef);
9
9
  this.ezChange = createEvent(this, "ezChange", 7);
10
+ this.ezReorder = createEvent(this, "ezReorder", 7);
10
11
  this.setFocusedParam = (ev) => {
11
12
  if (ev.key === "Enter") {
13
+ if (!this._processedTabs || this._focusedIndex === undefined) {
14
+ return;
15
+ }
12
16
  const selectedTab = this._processedTabs[this._focusedIndex];
17
+ if (selectedTab.disabled) {
18
+ ev.preventDefault();
19
+ return;
20
+ }
13
21
  this.handleTabClick(selectedTab);
14
22
  ev.preventDefault();
15
23
  this.setFocusedTab(selectedTab.index);
@@ -25,32 +33,19 @@ const EzTabselector = class {
25
33
  else {
26
34
  return;
27
35
  }
36
+ const step = operator ? 1 : -1;
37
+ const baseIndex = this._focusedIndex !== undefined ? this._focusedIndex : this.selectedIndex;
38
+ this._focusedIndex = this.findNextEnabledIndex(baseIndex, step);
28
39
  if (this._focusedIndex === undefined) {
29
- if (operator === false) {
30
- this._focusedIndex = this.selectedIndex !== undefined ? this.selectedIndex - 1 : undefined;
31
- }
32
- else {
33
- this._focusedIndex = this.selectedIndex !== undefined ? this.selectedIndex + 1 : undefined;
34
- }
35
- }
36
- else {
37
- if (operator === false) {
38
- this._focusedIndex = this._focusedIndex - 1;
39
- }
40
- else {
41
- this._focusedIndex = this._focusedIndex + 1;
42
- }
43
- }
44
- if (this._focusedIndex < 0) {
45
- this._focusedIndex = 0;
46
- }
47
- else if (this._focusedIndex > this._processedTabs.length - 1) {
48
- this._focusedIndex = this._processedTabs.length - 1;
40
+ return;
49
41
  }
50
42
  this.setFocusedBtn(true, this._focusedIndex);
51
43
  this.setFocusedTab(this._focusedIndex);
52
44
  }
53
45
  else if (ev.key === "Tab" || ev.key === "Escape") {
46
+ if (!this._processedTabs || this.selectedIndex === undefined) {
47
+ return;
48
+ }
54
49
  const currentTab = this._processedTabs[this.selectedIndex];
55
50
  this._focusedIndex = undefined;
56
51
  this.handleTabClick(currentTab);
@@ -58,10 +53,12 @@ const EzTabselector = class {
58
53
  this.setFocusedTab(this.selectedIndex);
59
54
  }
60
55
  };
56
+ this._dragOverIndex = undefined;
61
57
  this._processedTabs = undefined;
62
58
  this.selectedIndex = undefined;
63
59
  this.selectedTab = undefined;
64
60
  this.tabs = undefined;
61
+ this.reorderable = false;
65
62
  }
66
63
  observeTabs(newValue, oldValue) {
67
64
  if (newValue && typeof newValue !== "string") {
@@ -72,23 +69,72 @@ const EzTabselector = class {
72
69
  this.processesTabs();
73
70
  }
74
71
  }
72
+ observeSelectedIndex(newValue, oldValue) {
73
+ if (newValue !== oldValue && newValue !== undefined) {
74
+ this.scrollActiveTabIntoView(newValue);
75
+ }
76
+ }
77
+ observeSelectedTab(newValue, oldValue) {
78
+ if (newValue !== oldValue && newValue !== undefined && this._processedTabs) {
79
+ const idx = this._processedTabs.findIndex(t => t.tabKey === newValue);
80
+ if (idx >= 0) {
81
+ this.scrollActiveTabIntoView(idx);
82
+ }
83
+ }
84
+ }
75
85
  async goToTab(tabIndex, silent = false) {
76
- const tab = this._processedTabs.find(tab => tab.index === tabIndex);
77
- this.handleTabClick(tab, !silent);
86
+ var _a;
87
+ const tab = (_a = this._processedTabs) === null || _a === void 0 ? void 0 : _a.find(tab => tab.index === tabIndex);
88
+ if (tab) {
89
+ this.handleTabClick(tab, !silent);
90
+ }
78
91
  }
79
92
  handleTabClick(tab, emitChange = true) {
93
+ var _a;
94
+ if (tab.disabled) {
95
+ return;
96
+ }
80
97
  this.selectedIndex = tab.index;
81
98
  this._focusedIndex = undefined;
82
99
  this.selectedTab = tab.tabKey;
83
100
  if (emitChange) {
84
- this.ezChange.emit(tab);
101
+ (_a = this.ezChange) === null || _a === void 0 ? void 0 : _a.emit(tab);
85
102
  }
86
103
  this.setFocusedBtn(false, tab.index);
104
+ this.scrollActiveTabIntoView(tab.index);
87
105
  }
88
- componentWillLoad() {
89
- this.processesTabs();
106
+ scrollActiveTabIntoView(index) {
107
+ if (index === undefined) {
108
+ return;
109
+ }
110
+ requestAnimationFrame(() => {
111
+ const container = this._scrollContainer;
112
+ if (!container) {
113
+ return;
114
+ }
115
+ const tabEl = container.querySelector(`#tab${index}`);
116
+ if (!tabEl) {
117
+ return;
118
+ }
119
+ const containerRect = container.getBoundingClientRect();
120
+ const tabRect = tabEl.getBoundingClientRect();
121
+ const buttonOffset = 48;
122
+ const visibleLeft = containerRect.left + (this._startHidden ? buttonOffset : 0);
123
+ const visibleRight = containerRect.right - (this._endHidden ? buttonOffset : 0);
124
+ let delta = 0;
125
+ if (tabRect.left < visibleLeft) {
126
+ delta = tabRect.left - visibleLeft;
127
+ }
128
+ else if (tabRect.right > visibleRight) {
129
+ delta = tabRect.right - visibleRight;
130
+ }
131
+ if (delta !== 0) {
132
+ container.scrollBy({ left: delta, behavior: "smooth" });
133
+ }
134
+ });
90
135
  }
91
136
  processesTabs() {
137
+ var _a;
92
138
  if (this.tabs) {
93
139
  if (Array.isArray(this.tabs)) {
94
140
  this._processedTabs = [...this.tabs];
@@ -96,39 +142,30 @@ const EzTabselector = class {
96
142
  else {
97
143
  this._processedTabs = [];
98
144
  this.tabs.split(",").forEach((label) => {
145
+ var _a;
99
146
  label = label.trim();
100
- this._processedTabs.push({ label, tabKey: label, index: this._processedTabs.length });
147
+ (_a = this._processedTabs) === null || _a === void 0 ? void 0 : _a.push({ label, tabKey: label, index: this._processedTabs.length });
101
148
  this.buildElementIdTab(this._processedTabs);
102
149
  });
103
150
  }
104
151
  }
105
- this._hostElem.querySelectorAll("ez-tab").forEach((elem) => {
106
- const tabKey = elem.getAttribute("tabKey");
107
- const label = elem.getAttribute("label");
108
- const leftIcon = elem.getAttribute("leftIcon");
109
- const rightIcon = elem.getAttribute("rightIcon");
110
- const tab = { label, tabKey, leftIcon, rightIcon, index: this._processedTabs.length };
152
+ (_a = this._hostElem) === null || _a === void 0 ? void 0 : _a.querySelectorAll("ez-tab").forEach((elem) => {
153
+ var _a, _b, _c, _d, _e, _f, _g, _h;
154
+ const tabKey = (_a = elem.getAttribute("tabKey")) !== null && _a !== void 0 ? _a : 'tab';
155
+ const label = (_b = elem.getAttribute("label")) !== null && _b !== void 0 ? _b : 'tab';
156
+ const leftIcon = (_c = elem.getAttribute("leftIcon")) !== null && _c !== void 0 ? _c : undefined;
157
+ const rightIcon = (_d = elem.getAttribute("rightIcon")) !== null && _d !== void 0 ? _d : undefined;
158
+ const disabled = elem.hasAttribute("disabled");
159
+ const tab = { label, tabKey, leftIcon, rightIcon, disabled, index: (_f = (_e = this._processedTabs) === null || _e === void 0 ? void 0 : _e.length) !== null && _f !== void 0 ? _f : 0 };
111
160
  const content = elem.firstChild;
112
161
  if (content) {
113
162
  content.setAttribute("slot", "tab" + tab.index);
114
- this._hostElem.appendChild(content);
163
+ (_g = this._hostElem) === null || _g === void 0 ? void 0 : _g.appendChild(content);
115
164
  }
116
- this._processedTabs.push(tab);
165
+ (_h = this._processedTabs) === null || _h === void 0 ? void 0 : _h.push(tab);
117
166
  this.buildElementIdTab(this._processedTabs);
118
167
  });
119
168
  }
120
- componentDidRender() {
121
- this.updateScroll();
122
- }
123
- componentDidLoad() {
124
- ElementIDUtils.addIDInfo(this._hostElem, "itemsSelector");
125
- this._hostElem.shadowRoot.querySelectorAll('button[name="tab-button"]').forEach((elem) => {
126
- var _a;
127
- const label = (_a = elem.querySelector('span.tab-label')) === null || _a === void 0 ? void 0 : _a.innerText;
128
- const dataInfo = { id: `${StringUtils.toCamelCase(label)}` };
129
- ElementIDUtils.addIDInfo(elem, "itemSelector", dataInfo);
130
- });
131
- }
132
169
  handleSlotChange(ev) {
133
170
  const slot = ev.target;
134
171
  const content = slot.assignedElements()[0];
@@ -151,10 +188,13 @@ const EzTabselector = class {
151
188
  lastTab = tab;
152
189
  }
153
190
  });
154
- container.scrollLeft = lastTab.offsetLeft + lastTab.offsetWidth;
191
+ if (lastTab) {
192
+ container.scrollLeft = lastTab.offsetLeft + lastTab.offsetWidth;
193
+ }
155
194
  }
156
195
  }
157
196
  updateScroll() {
197
+ var _a, _b, _c, _d;
158
198
  const container = this._scrollContainer;
159
199
  if (container) {
160
200
  const { scrollWidth, clientWidth, scrollLeft } = container;
@@ -162,16 +202,16 @@ const EzTabselector = class {
162
202
  this._startHidden = container.scrollLeft > 0;
163
203
  this._endHidden = remainingScroll > 0;
164
204
  if (this._startHidden) {
165
- this._backwardButton.classList.remove("hidden");
205
+ (_a = this._backwardButton) === null || _a === void 0 ? void 0 : _a.classList.remove("hidden");
166
206
  }
167
207
  else {
168
- this._backwardButton.classList.add("hidden");
208
+ (_b = this._backwardButton) === null || _b === void 0 ? void 0 : _b.classList.add("hidden");
169
209
  }
170
210
  if (this._endHidden) {
171
- this._forwardButton.classList.remove("hidden");
211
+ (_c = this._forwardButton) === null || _c === void 0 ? void 0 : _c.classList.remove("hidden");
172
212
  }
173
213
  else {
174
- this._forwardButton.classList.add("hidden");
214
+ (_d = this._forwardButton) === null || _d === void 0 ? void 0 : _d.classList.add("hidden");
175
215
  }
176
216
  const classNames = ["", "startHidden", "endHidden", "middle"];
177
217
  const currentClass = classNames[Number(this._startHidden) | Number(this._endHidden) << 1];
@@ -190,44 +230,152 @@ const EzTabselector = class {
190
230
  this._scrollCallBack = window.setTimeout(() => { this.updateScroll(); }, 200);
191
231
  }
192
232
  setFocusedTab(index) {
233
+ if (index === undefined) {
234
+ return;
235
+ }
193
236
  window.clearTimeout(this._scrollCallBackTest);
194
237
  this._scrollCallBackTest = window.setTimeout(() => {
195
- const tabtoscroll = this._scrollContainer.querySelector(`#tab${index}`);
196
- tabtoscroll.scrollIntoView();
238
+ var _a;
239
+ const tabtoscroll = (_a = this._scrollContainer) === null || _a === void 0 ? void 0 : _a.querySelector(`#tab${index}`);
240
+ tabtoscroll === null || tabtoscroll === void 0 ? void 0 : tabtoscroll.scrollIntoView();
197
241
  }, 200);
198
242
  }
243
+ handleDragStart(ev, index) {
244
+ if (!this.reorderable) {
245
+ return;
246
+ }
247
+ this._dragSourceIndex = index;
248
+ if (ev.dataTransfer) {
249
+ ev.dataTransfer.effectAllowed = "move";
250
+ ev.dataTransfer.setData("text/plain", String(index));
251
+ }
252
+ }
253
+ handleDragOver(ev, index) {
254
+ if (!this.reorderable || this._dragSourceIndex === undefined) {
255
+ return;
256
+ }
257
+ ev.preventDefault();
258
+ if (ev.dataTransfer) {
259
+ ev.dataTransfer.dropEffect = "move";
260
+ }
261
+ if (this._dragOverIndex !== index) {
262
+ this._dragOverIndex = index;
263
+ }
264
+ }
265
+ handleDragLeave(index) {
266
+ if (this._dragOverIndex === index) {
267
+ this._dragOverIndex = undefined;
268
+ }
269
+ }
270
+ handleDrop(ev, targetIndex) {
271
+ var _a;
272
+ if (!this.reorderable || this._dragSourceIndex === undefined || !this._processedTabs) {
273
+ return;
274
+ }
275
+ ev.preventDefault();
276
+ const sourceIndex = this._dragSourceIndex;
277
+ this._dragSourceIndex = undefined;
278
+ this._dragOverIndex = undefined;
279
+ if (sourceIndex === targetIndex) {
280
+ return;
281
+ }
282
+ const previouslySelectedKey = this.selectedTab;
283
+ const reordered = [...this._processedTabs];
284
+ const [moved] = reordered.splice(sourceIndex, 1);
285
+ reordered.splice(targetIndex, 0, moved);
286
+ reordered.forEach((tab, idx) => { tab.index = idx; });
287
+ this._processedTabs = reordered;
288
+ if (previouslySelectedKey !== undefined) {
289
+ const newSelected = reordered.findIndex(t => t.tabKey === previouslySelectedKey);
290
+ if (newSelected >= 0) {
291
+ this.selectedIndex = newSelected;
292
+ }
293
+ }
294
+ (_a = this.ezReorder) === null || _a === void 0 ? void 0 : _a.emit(reordered);
295
+ }
296
+ handleDragEnd() {
297
+ this._dragSourceIndex = undefined;
298
+ this._dragOverIndex = undefined;
299
+ }
300
+ findNextEnabledIndex(from, step) {
301
+ if (!this._processedTabs || this._processedTabs.length === 0) {
302
+ return undefined;
303
+ }
304
+ const total = this._processedTabs.length;
305
+ let index = from === undefined ? (step > 0 ? -1 : total) : from;
306
+ for (let i = 0; i < total; i++) {
307
+ index += step;
308
+ if (index < 0 || index > total - 1) {
309
+ return from;
310
+ }
311
+ if (!this._processedTabs[index].disabled) {
312
+ return index;
313
+ }
314
+ }
315
+ return from;
316
+ }
199
317
  setFocusedBtn(visible, parameter) {
200
- const tabsButtons = this._scrollContainer.querySelectorAll(".tab");
201
- tabsButtons.forEach((el) => {
318
+ var _a;
319
+ if (parameter === undefined) {
320
+ return;
321
+ }
322
+ const tabsButtons = (_a = this._scrollContainer) === null || _a === void 0 ? void 0 : _a.querySelectorAll(".tab");
323
+ tabsButtons === null || tabsButtons === void 0 ? void 0 : tabsButtons.forEach((el) => {
202
324
  el.classList.remove("is-focused");
203
325
  if (el.id === "tab" + parameter && visible) {
204
326
  el.classList.add("is-focused");
205
327
  }
206
328
  });
207
329
  }
208
- buildElementIdTab(tabs) {
330
+ buildElementIdTab(tabs = []) {
209
331
  tabs.forEach(tab => {
332
+ var _a;
210
333
  if (!tab.hasOwnProperty(ElementIDUtils.DATA_ELEMENT_ID_ATTRIBUTE_NAME)) {
211
- const elemIdTabSelector = this._hostElem.getAttribute(ElementIDUtils.DATA_ELEMENT_ID_ATTRIBUTE_NAME);
334
+ const elemIdTabSelector = (_a = this._hostElem) === null || _a === void 0 ? void 0 : _a.getAttribute(ElementIDUtils.DATA_ELEMENT_ID_ATTRIBUTE_NAME);
212
335
  const dataElementID = `${elemIdTabSelector}_${StringUtils.toCamelCase(tab.tabKey)}`;
213
336
  tab[ElementIDUtils.DATA_ELEMENT_ID_ATTRIBUTE_NAME] = dataElementID;
214
337
  }
215
338
  });
216
339
  }
340
+ componentWillLoad() {
341
+ this.processesTabs();
342
+ }
343
+ componentDidRender() {
344
+ this.updateScroll();
345
+ }
346
+ componentDidLoad() {
347
+ var _a;
348
+ if (this._hostElem) {
349
+ ElementIDUtils.addIDInfo(this._hostElem, "itemsSelector");
350
+ (_a = this._hostElem.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelectorAll('button[name="tab-button"]').forEach((elem) => {
351
+ var _a;
352
+ const label = (_a = elem.querySelector('span.tab-label')) === null || _a === void 0 ? void 0 : _a.innerText;
353
+ const dataInfo = { id: `${StringUtils.toCamelCase(label)}` };
354
+ ElementIDUtils.addIDInfo(elem, "itemSelector", dataInfo);
355
+ });
356
+ }
357
+ this.scrollActiveTabIntoView(this.selectedIndex);
358
+ }
217
359
  render() {
218
- return (h(Host, null, h("button", { class: "backward-button", ref: (el) => this._backwardButton = el, onClick: () => this.scrollBackward() }), h("div", { class: "scroll", ref: (el) => this._scrollContainer = el, onScroll: () => this.domScrollHandler(), onKeyDown: (ev) => this.setFocusedParam(ev) }, this._processedTabs.map((tab, index) => {
360
+ var _a;
361
+ return (h(Host, null, h("button", { class: "backward-button", ref: (el) => this._backwardButton = el, onClick: () => this.scrollBackward() }), h("div", { class: "scroll", ref: (el) => this._scrollContainer = el, onScroll: () => this.domScrollHandler(), onKeyDown: (ev) => this.setFocusedParam(ev) }, (_a = this._processedTabs) === null || _a === void 0 ? void 0 : _a.map((tab, index) => {
219
362
  const tabId = "tab" + index;
220
363
  const isSelected = index === this.selectedIndex || (this.selectedTab && tab.tabKey === this.selectedTab);
221
364
  if (isSelected) {
222
365
  this.selectedTab = tab.tabKey;
223
366
  this.selectedIndex = index;
224
367
  }
225
- return h("button", { id: tabId, name: "tab-button", class: `tab${isSelected ? " is-active" : ""}`, onClick: () => this.handleTabClick(tab) }, tab.leftIcon && h("ez-icon", { iconName: tab.leftIcon, class: "left-icon" }), h("span", { class: "tab-label", title: tab.label }, tab.label), tab.rightIcon && h("ez-icon", { iconName: tab.rightIcon, class: "right-icon" }), h("slot", { name: tabId, onSlotchange: (ev) => { this.handleSlotChange(ev); } }));
368
+ const isDraggable = this.reorderable && !tab.disabled;
369
+ const isDragOver = this.reorderable && this._dragOverIndex === index && this._dragSourceIndex !== index;
370
+ const isDragging = this._dragSourceIndex === index;
371
+ return h("button", { id: tabId, name: "tab-button", class: `tab${isSelected ? " is-active" : ""}${tab.disabled ? " is-disabled" : ""}${this.reorderable ? " is-reorderable" : ""}${isDragOver ? " is-drag-over" : ""}${isDragging ? " is-dragging" : ""}`, disabled: tab.disabled, "aria-disabled": tab.disabled ? "true" : "false", draggable: isDraggable, onClick: () => this.handleTabClick(tab), onDragStart: (ev) => this.handleDragStart(ev, index), onDragOver: (ev) => this.handleDragOver(ev, index), onDragLeave: () => this.handleDragLeave(index), onDrop: (ev) => this.handleDrop(ev, index), onDragEnd: () => this.handleDragEnd() }, tab.leftIcon && h("ez-icon", { iconName: tab.leftIcon, class: "left-icon" }), h("span", { class: "tab-label", title: tab.label }, tab.label), tab.rightIcon && h("ez-icon", { iconName: tab.rightIcon, class: "right-icon" }), h("slot", { name: tabId, onSlotchange: (ev) => { this.handleSlotChange(ev); } }));
226
372
  })), h("button", { class: "forward-button", ref: (el) => this._forwardButton = el, onClick: () => this.scrollFoward() })));
227
373
  }
228
374
  get _hostElem() { return getElement(this); }
229
375
  static get watchers() { return {
230
- "tabs": ["observeTabs"]
376
+ "tabs": ["observeTabs"],
377
+ "selectedIndex": ["observeSelectedIndex"],
378
+ "selectedTab": ["observeSelectedTab"]
231
379
  }; }
232
380
  };
233
381
  EzTabselector.style = ezTabselectorCss;
@@ -46,6 +46,7 @@ const EzTextInput = class {
46
46
  if (newValue != oldValue) {
47
47
  this._inputElem.value = this.value || "";
48
48
  this.handleChange();
49
+ this.applyMask(newValue);
49
50
  this.adjustFloatingLabel();
50
51
  this.checkIsOverflowing();
51
52
  if (!this.isSlaveMode()) {
@@ -190,12 +191,9 @@ const EzTextInput = class {
190
191
  const value = this._inputElem.value;
191
192
  if (value && this._maskFormatter) {
192
193
  try {
193
- if (this.cleanValueMask) {
194
- this.applyMask(value);
195
- }
196
- else {
197
- this._inputElem.value = this._maskFormatter.format(value);
198
- }
194
+ const newMask = this.handleDefaultMask(value);
195
+ this._maskFormatter.mask = newMask;
196
+ this._inputElem.value = this._maskFormatter.format(this._maskFormatter.removeMask(value));
199
197
  }
200
198
  catch (e) {
201
199
  this.errorMessage = e.message;
@@ -221,20 +219,33 @@ const EzTextInput = class {
221
219
  }
222
220
  }
223
221
  }
222
+ handleDefaultMask(value = this.value) {
223
+ if (this.mask === "cgc_cpf") {
224
+ if (value && value.length <= 11) {
225
+ this.mask = MaskFormatter.DEFAULT_MASKS["cpf"];
226
+ }
227
+ else {
228
+ this.mask = MaskFormatter.DEFAULT_MASKS["cnpj"];
229
+ }
230
+ }
231
+ return this.mask;
232
+ }
224
233
  applyMask(value) {
225
234
  if (!value || value === "")
226
235
  return value;
227
236
  if (this._maskFormatter) {
228
237
  try {
238
+ const newMask = this.handleDefaultMask(value);
239
+ this._maskFormatter.mask = newMask;
229
240
  const formattedValue = this._maskFormatter.applyMask(this._maskFormatter.removeMask(value));
230
241
  if (this._inputElem) {
231
242
  this._inputElem.value = formattedValue;
232
243
  return this._inputElem.value;
233
244
  }
234
- else {
245
+ if (!this.cleanValueMask) {
235
246
  this.value = formattedValue;
236
- return this.value;
237
247
  }
248
+ return this.value;
238
249
  }
239
250
  catch (e) {
240
251
  this.errorMessage = e.message;
@@ -301,7 +312,7 @@ const EzTextInput = class {
301
312
  this.adjustColorContentSlot("var(--ez-text-input__input--focus--icon-color)");
302
313
  }
303
314
  getValue() {
304
- return this.mask && this.cleanValueMask ? this.applyMask(this.value) : this.value;
315
+ return this.mask ? this.applyMask(this.value) : this.value;
305
316
  }
306
317
  buildLabelClass() {
307
318
  let classList = this.enabled ? 'input__label' : 'input__label input__label--disabled';
@@ -332,12 +343,7 @@ const EzTextInput = class {
332
343
  if (this.value) {
333
344
  if (this._maskFormatter) {
334
345
  try {
335
- if (this.cleanValueMask) {
336
- this.applyMask(this.value);
337
- }
338
- else {
339
- this.value = this._maskFormatter.format(this.value);
340
- }
346
+ this.applyMask(this.value);
341
347
  }
342
348
  catch (e) {
343
349
  this.errorMessage = e.message;
@@ -1,7 +1,7 @@
1
1
  import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-baa5e267.js';
2
2
  import { TimeFormatter, MaskFormatter, NumberUtils, ElementIDUtils } from '@sankhyalabs/core';
3
3
  import { C as CSSVarsUtils } from './CSSVarsUtils-acba92d7.js';
4
- import { i as initI18n } from './index-225aa0c3.js';
4
+ import { i as initI18n } from './index-9e6dab5b.js';
5
5
 
6
6
  const ezTimeInputCss = ":host{display:flex;flex-wrap:wrap;position:relative;width:100%}.time__input{height:100%}";
7
7
 
@@ -1,5 +1,5 @@
1
1
  import { r as registerInstance, h, H as Host, g as getElement } from './index-baa5e267.js';
2
- import { a as autoUpdate, c as computePosition, o as offset, f as flip, s as shift, b as arrow } from './floating-ui.dom.esm-ad30f2f0.js';
2
+ import { b as autoUpdate, c as computePosition, o as offset, f as flip, s as shift, d as arrow } from './floating-ui.dom.esm-0c464cef.js';
3
3
  import { ElementIDUtils } from '@sankhyalabs/core';
4
4
 
5
5
  const ezTooltipCss = ":host{--ez-tooltip--triangle-size:var(--space--8);--ez-tooltip--z-index:var(--elevation--24);--ez-tooltip--padding:var(--space--4) var(--space--8);--ez-tooltip--border-radius:var(--border--radius-8);--ez-tooltip--font-family:var(--font--pattern);--ez-tooltip--font-size:var(--font-size--small);--ez-tooltip--font-weight:var(--font-weight--regular);width:100%}.tooltip{position:absolute;z-index:var(--ez-tooltip--z-index);padding:var(--ez-tooltip--padding);border-radius:var(--ez-tooltip--border-radius);box-sizing:border-box;font-family:var(--ez-tooltip--font-family);font-size:var(--ez-tooltip--font-size);font-weight:var(--ez-tooltip--font-weight);text-align:center;width:max-content;display:none}.tooltip[data-strategy=\"fixed\"]{position:fixed}.arrow{position:absolute;width:var(--ez-tooltip--triangle-size);height:var(--ez-tooltip--triangle-size);transform:rotate(45deg)}.tooltip[data-type=\"default\"]{background:var(--color--petroleum-600);color:var(--color--gray-70)}.tooltip[data-type=\"default\"] .arrow{background:var(--color--petroleum-600)}.tooltip[data-type=\"error\"]{background:var(--color--red-600);color:var(--color--red-100)}.tooltip[data-type=\"error\"] .arrow{background:var(--color--red-600)}.tooltip[data-type=\"success\"]{background:var(--color--green-600);color:var(--color--green-100)}.tooltip[data-type=\"success\"] .arrow{background:var(--color--green-600)}.tooltip[data-type=\"warning\"]{background:var(--color--yellow-600);color:var(--color--yellow-100)}.tooltip[data-type=\"warning\"] .arrow{background:var(--color--yellow-600)}.tooltip[data-active=\"false\"]{display:none !important}";
@@ -50,6 +50,39 @@ const EzTooltip = class {
50
50
  this._tooltipElement.style.display = 'none';
51
51
  this._opened = false;
52
52
  }
53
+ updatePositionArrow(middlewareData, placement) {
54
+ const { x, y } = middlewareData.arrow;
55
+ Object.assign(this._arrowElement.style, {
56
+ left: '',
57
+ right: '',
58
+ top: '',
59
+ bottom: '',
60
+ });
61
+ if (placement.startsWith('bottom')) {
62
+ Object.assign(this._arrowElement.style, {
63
+ left: x != null ? `${x}px` : '',
64
+ top: `${-this._arrowElement.offsetHeight / 2}px`,
65
+ });
66
+ }
67
+ else if (placement.startsWith('top')) {
68
+ Object.assign(this._arrowElement.style, {
69
+ left: x != null ? `${x}px` : '',
70
+ bottom: `${-this._arrowElement.offsetHeight / 2}px`,
71
+ });
72
+ }
73
+ else if (placement.startsWith('left')) {
74
+ Object.assign(this._arrowElement.style, {
75
+ right: `${-this._arrowElement.offsetWidth / 2}px`,
76
+ top: y != null ? `${y}px` : '',
77
+ });
78
+ }
79
+ else if (placement.startsWith('right')) {
80
+ Object.assign(this._arrowElement.style, {
81
+ left: `${-this._arrowElement.offsetWidth / 2}px`,
82
+ top: y != null ? `${y}px` : '',
83
+ });
84
+ }
85
+ }
53
86
  async updatePosition(element = this.anchoringElement) {
54
87
  if (!element || !this._opened) {
55
88
  return;
@@ -79,13 +112,7 @@ const EzTooltip = class {
79
112
  left: `${newLeft}px`,
80
113
  });
81
114
  if (middlewareData.arrow) {
82
- const { x } = middlewareData.arrow;
83
- const onBottom = placement.includes("bottom");
84
- Object.assign(this._arrowElement.style, {
85
- left: `${x}px`,
86
- top: onBottom ? `${-this._arrowElement.offsetHeight / 2}px` : '',
87
- bottom: !onBottom ? `${-this._arrowElement.offsetHeight / 2}px` : '',
88
- });
115
+ this.updatePositionArrow(middlewareData, placement);
89
116
  }
90
117
  });
91
118
  });
@@ -95,6 +122,16 @@ const EzTooltip = class {
95
122
  const content = slot.assignedElements()[0];
96
123
  this.anchoringElement = content;
97
124
  }
125
+ anchoringOnSlotElement() {
126
+ var _a;
127
+ const slotElement = (_a = this._element.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector('slot');
128
+ if (slotElement && typeof slotElement.assignedElements === 'function') {
129
+ const assignedElements = slotElement.assignedElements();
130
+ if (assignedElements && assignedElements.length > 0) {
131
+ this.anchoringElement = assignedElements[0];
132
+ }
133
+ }
134
+ }
98
135
  setEvents(element = this.anchoringElement) {
99
136
  if (!element) {
100
137
  return;
@@ -128,6 +165,7 @@ const EzTooltip = class {
128
165
  this.initializeTooltip();
129
166
  }
130
167
  componentDidLoad() {
168
+ this.anchoringOnSlotElement();
131
169
  this.initializeTooltip();
132
170
  }
133
171
  addInfoId() {
@@ -1,6 +1,6 @@
1
1
  import { h, r as registerInstance, c as createEvent, f as forceUpdate, H as Host, g as getElement } from './index-baa5e267.js';
2
2
  import { ElementIDUtils, StringUtils, ObjectUtils } from '@sankhyalabs/core';
3
- import { i as initI18n } from './index-225aa0c3.js';
3
+ import { i as initI18n } from './index-9e6dab5b.js';
4
4
 
5
5
  const ICON_EXPANDED = "chevron-down";
6
6
  const ICON_COLAPSED = "chevron-right";
@@ -1,7 +1,7 @@
1
1
  import { r as registerInstance, c as createEvent, f as forceUpdate, h, g as getElement } from './index-baa5e267.js';
2
2
  import { ElementIDUtils } from '@sankhyalabs/core';
3
- import { A as ApplicationUtils } from './ApplicationUtils-0c5cb207.js';
4
- import { i as initI18n } from './index-225aa0c3.js';
3
+ import { A as ApplicationUtils } from './ApplicationUtils-f7721533.js';
4
+ import { i as initI18n } from './index-9e6dab5b.js';
5
5
  import './DialogType-54a62731.js';
6
6
 
7
7
  class RemoteFile {