@sankhyalabs/ezui 5.22.0-dev.1 → 5.22.0-dev.100

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 (369) hide show
  1. package/dist/cjs/{CSSVarsUtils-10c9d5b4.js → CSSVarsUtils-f20973d1.js} +1 -0
  2. package/dist/cjs/DataBinder-e92314c2.js +445 -0
  3. package/dist/cjs/FocusResolver-885f2173.js +35 -0
  4. package/dist/cjs/ez-actions-button.cjs.entry.js +4 -3
  5. package/dist/cjs/ez-badge.cjs.entry.js +14 -2
  6. package/dist/cjs/ez-button.cjs.entry.js +11 -5
  7. package/dist/cjs/ez-card-item_2.cjs.entry.js +1485 -0
  8. package/dist/cjs/ez-chart.cjs.entry.js +2 -0
  9. package/dist/cjs/ez-check.cjs.entry.js +1 -1
  10. package/dist/cjs/ez-chip.cjs.entry.js +1 -1
  11. package/dist/cjs/ez-collapsible-box.cjs.entry.js +1 -1
  12. package/dist/cjs/ez-combo-box-list_3.cjs.entry.js +387 -0
  13. package/dist/cjs/ez-combo-box.cjs.entry.js +82 -155
  14. package/dist/cjs/ez-date-input.cjs.entry.js +15 -19
  15. package/dist/cjs/ez-date-time-input.cjs.entry.js +14 -20
  16. package/dist/cjs/ez-dialog.cjs.entry.js +14 -7
  17. package/dist/cjs/ez-double-list.cjs.entry.js +287 -0
  18. package/dist/cjs/{ez-dropdown.cjs.entry.js → ez-dropdown_2.cjs.entry.js} +75 -8
  19. package/dist/cjs/ez-filter-input.cjs.entry.js +129 -0
  20. package/dist/cjs/ez-form-view.cjs.entry.js +28 -21
  21. package/dist/cjs/ez-form.cjs.entry.js +6 -321
  22. package/dist/cjs/ez-grid.cjs.entry.js +15069 -69838
  23. package/dist/cjs/ez-icon.cjs.entry.js +1 -1
  24. package/dist/cjs/ez-list.cjs.entry.js +258 -211
  25. package/dist/cjs/ez-modal-container.cjs.entry.js +3 -2
  26. package/dist/cjs/ez-modal.cjs.entry.js +19 -4
  27. package/dist/cjs/ez-multi-selection-list.cjs.entry.js +2 -2
  28. package/dist/cjs/ez-number-input.cjs.entry.js +15 -3
  29. package/dist/cjs/ez-popover-plus_3.cjs.entry.js +198 -0
  30. package/dist/cjs/ez-popup.cjs.entry.js +24 -2
  31. package/dist/cjs/ez-scroller_2.cjs.entry.js +3 -3
  32. package/dist/cjs/ez-search.cjs.entry.js +121 -187
  33. package/dist/cjs/ez-sidebar-navigator.cjs.entry.js +1 -1
  34. package/dist/cjs/ez-split-button.cjs.entry.js +2 -2
  35. package/dist/cjs/ez-split-item.cjs.entry.js +6 -3
  36. package/dist/cjs/ez-split-panel.cjs.entry.js +68 -6
  37. package/dist/cjs/ez-tabselector.cjs.entry.js +8 -2
  38. package/dist/cjs/ez-text-area.cjs.entry.js +68 -6
  39. package/dist/cjs/ez-text-input.cjs.entry.js +152 -16
  40. package/dist/cjs/ez-time-input.cjs.entry.js +7 -1
  41. package/dist/cjs/ez-tooltip.cjs.entry.js +55 -0
  42. package/dist/cjs/ez-tree.cjs.entry.js +5 -4
  43. package/dist/cjs/ezListHelper-0d3970b4.js +90 -0
  44. package/dist/cjs/ezui.cjs.js +1 -1
  45. package/dist/cjs/filter-column.cjs.entry.js +10 -47
  46. package/dist/cjs/index-a7b0c73d.js +22 -10
  47. package/dist/cjs/loader.cjs.js +1 -1
  48. package/dist/cjs/searchFormatters-b7e1ed1e.js +23 -0
  49. package/dist/collection/collection-manifest.json +8 -2
  50. package/dist/collection/components/ez-actions-button/ez-actions-button.js +3 -2
  51. package/dist/collection/components/ez-badge/ez-badge.css +12 -1
  52. package/dist/collection/components/ez-badge/ez-badge.js +31 -1
  53. package/dist/collection/components/ez-button/ez-button.css +24 -14
  54. package/dist/collection/components/ez-button/ez-button.js +12 -6
  55. package/dist/collection/components/ez-card-item/ez-card-item.css +58 -10
  56. package/dist/collection/components/ez-card-item/ez-card-item.js +30 -3
  57. package/dist/collection/components/ez-chart/ez-chart.js +2 -0
  58. package/dist/collection/components/ez-check/ez-check.css +1 -6
  59. package/dist/collection/components/ez-chip/ez-chip.css +5 -1
  60. package/dist/collection/components/ez-collapsible-box/ez-collapsible-box.css +2 -2
  61. package/dist/collection/components/ez-combo-box/ez-combo-box-list/ez-combo-box-list.css +205 -0
  62. package/dist/collection/components/ez-combo-box/ez-combo-box-list/ez-combo-box-list.js +426 -0
  63. package/dist/collection/components/ez-combo-box/ez-combo-box.css +8 -246
  64. package/dist/collection/components/ez-combo-box/ez-combo-box.js +129 -166
  65. package/dist/collection/components/ez-date-input/ez-date-input.css +1 -1
  66. package/dist/collection/components/ez-date-input/ez-date-input.js +40 -19
  67. package/dist/collection/components/ez-date-time-input/ez-date-time-input.css +1 -1
  68. package/dist/collection/components/ez-date-time-input/ez-date-time-input.js +39 -20
  69. package/dist/collection/components/ez-dialog/ez-dialog.css +3 -3
  70. package/dist/collection/components/ez-dialog/ez-dialog.js +14 -16
  71. package/dist/collection/components/ez-double-list/doubleListHelper.js +82 -0
  72. package/dist/collection/components/ez-double-list/ez-double-list.css +62 -0
  73. package/dist/collection/components/ez-double-list/ez-double-list.js +440 -0
  74. package/dist/collection/components/ez-dropdown/ez-dropdown.js +33 -8
  75. package/dist/collection/components/ez-filter-input/ez-filter-input.css +1 -1
  76. package/dist/collection/components/ez-filter-input/ez-filter-input.js +35 -4
  77. package/dist/collection/components/ez-form/ez-form.js +1 -0
  78. package/dist/collection/components/ez-form-view/custom-input/ez-custom-form-input.js +49 -6
  79. package/dist/collection/components/ez-form-view/ez-form-view.css +5 -2
  80. package/dist/collection/components/ez-form-view/fieldbuilder/FieldBuilder.js +2 -1
  81. package/dist/collection/components/ez-form-view/fieldbuilder/templates/CheckBox.tpl.js +1 -1
  82. package/dist/collection/components/ez-form-view/fieldbuilder/templates/ComboBox.tpl.js +1 -1
  83. package/dist/collection/components/ez-form-view/fieldbuilder/templates/DateInput.tpl.js +8 -4
  84. package/dist/collection/components/ez-form-view/fieldbuilder/templates/FileInput.tpl.js +1 -1
  85. package/dist/collection/components/ez-form-view/fieldbuilder/templates/NumberInput.tpl.js +1 -1
  86. package/dist/collection/components/ez-form-view/fieldbuilder/templates/SearchInput.tpl.js +3 -2
  87. package/dist/collection/components/ez-form-view/fieldbuilder/templates/TextArea.tpl.js +1 -1
  88. package/dist/collection/components/ez-form-view/fieldbuilder/templates/TextInput.tpl.js +2 -2
  89. package/dist/collection/components/ez-grid/controller/ag-grid/AgGridController.js +297 -67
  90. package/dist/collection/components/ez-grid/controller/ag-grid/DataSource.js +151 -31
  91. package/dist/collection/components/ez-grid/controller/ag-grid/DataSourceInterceptor.js +2 -1
  92. package/dist/collection/components/ez-grid/controller/ag-grid/GridEditionManager.js +219 -42
  93. package/dist/collection/components/ez-grid/controller/ag-grid/components/EzGridCustomCellEditor.js +16 -0
  94. package/dist/collection/components/ez-grid/controller/ag-grid/components/EzGridCustomHeader.js +1 -1
  95. package/dist/collection/components/ez-grid/controller/ag-grid/editor/EzCellEditor.js +8 -0
  96. package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/ComboBox.tpl.js +2 -0
  97. package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/DateInput.tpl.js +1 -0
  98. package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/NumberInput.tpl.js +1 -0
  99. package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/Search.tpl.js +8 -0
  100. package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/TextInput.tpl.js +4 -1
  101. package/dist/collection/components/ez-grid/controller/ag-grid/test/constants/GridEditionMock.js +2 -0
  102. package/dist/collection/components/ez-grid/ez-grid.css +95 -10
  103. package/dist/collection/components/ez-grid/ez-grid.js +377 -11
  104. package/dist/collection/components/ez-grid/subcomponents/filter-column.css +4 -0
  105. package/dist/collection/components/ez-grid/subcomponents/filter-column.js +9 -46
  106. package/dist/collection/components/ez-grid/utils/ColumnFilterManager.js +7 -54
  107. package/dist/collection/components/ez-grid/utils/InMemoryFilterColumnDataSource.js +20 -4
  108. package/dist/collection/components/ez-icon/ez-icon.css +156 -149
  109. package/dist/collection/components/ez-list/ez-list.css +5 -4
  110. package/dist/collection/components/ez-list/ez-list.js +301 -212
  111. package/dist/collection/components/ez-list/ezListHelper.js +85 -0
  112. package/dist/collection/components/ez-modal/ez-modal.css +7 -2
  113. package/dist/collection/components/ez-modal/ez-modal.js +38 -5
  114. package/dist/collection/components/ez-modal-container/ez-modal-container.css +1 -0
  115. package/dist/collection/components/ez-modal-container/ez-modal-container.js +20 -1
  116. package/dist/collection/components/ez-multi-selection-list/ez-multi-selection-list.css +3 -3
  117. package/dist/collection/components/ez-multi-selection-list/ez-multi-selection-list.js +1 -1
  118. package/dist/collection/components/ez-number-input/ez-number-input.css +8 -0
  119. package/dist/collection/components/ez-number-input/ez-number-input.js +49 -1
  120. package/dist/collection/components/ez-popover-plus/ez-popover-plus.css +3 -0
  121. package/dist/collection/components/ez-popover-plus/ez-popover-plus.js +432 -0
  122. package/dist/collection/components/ez-popover-plus/subcomponent/ez-popover-core.css +67 -0
  123. package/dist/collection/components/ez-popover-plus/subcomponent/ez-popover-core.js +528 -0
  124. package/dist/collection/components/ez-popup/ez-popup.css +8 -3
  125. package/dist/collection/components/ez-popup/ez-popup.js +43 -3
  126. package/dist/collection/components/ez-scroller/ez-scroller.css +4 -0
  127. package/dist/collection/components/ez-search/ez-search.css +2 -210
  128. package/dist/collection/components/ez-search/ez-search.js +221 -199
  129. package/dist/collection/components/ez-search/subcomponent/search-list/search-list.css +227 -0
  130. package/dist/collection/components/ez-search/subcomponent/search-list/search-list.js +289 -0
  131. package/dist/collection/components/ez-search/utils/searchFormatters.js +18 -0
  132. package/dist/collection/components/ez-sidebar-button/ez-sidebar-button.css +3 -0
  133. package/dist/collection/components/ez-sidebar-button/ez-sidebar-button.js +1 -1
  134. package/dist/collection/components/ez-sidebar-navigator/ez-sidebar-navigator.css +4 -1
  135. package/dist/collection/components/ez-skeleton/ez-skeleton.css +54 -34
  136. package/dist/collection/components/ez-split-button/ez-split-button.css +52 -14
  137. package/dist/collection/components/ez-split-button/ez-split-button.js +3 -3
  138. package/dist/collection/components/ez-split-panel/ez-split-panel.css +15 -0
  139. package/dist/collection/components/ez-split-panel/ez-split-panel.js +106 -5
  140. package/dist/collection/components/ez-split-panel/interfaces/IPanelSizeInfo.js +1 -0
  141. package/dist/collection/components/ez-split-panel/structure/item/ez-split-item.css +14 -2
  142. package/dist/collection/components/ez-split-panel/structure/item/ez-split-item.js +22 -1
  143. package/dist/collection/components/ez-tabselector/ez-tabselector.js +34 -2
  144. package/dist/collection/components/ez-text-area/ez-text-area.css +78 -29
  145. package/dist/collection/components/ez-text-area/ez-text-area.js +104 -4
  146. package/dist/collection/components/ez-text-input/ez-text-input.css +106 -91
  147. package/dist/collection/components/ez-text-input/ez-text-input.js +166 -15
  148. package/dist/collection/components/ez-time-input/ez-time-input.js +24 -0
  149. package/dist/collection/components/ez-tooltip/ez-tooltip.css +20 -0
  150. package/dist/collection/components/ez-tooltip/ez-tooltip.js +116 -0
  151. package/dist/collection/components/ez-tree/ez-tree.js +21 -1
  152. package/dist/collection/components/ez-tree/subcomponents/TreeItem.js +3 -3
  153. package/dist/collection/sw.js +46 -0
  154. package/dist/collection/utils/CSSVarsUtils.js +1 -0
  155. package/dist/collection/utils/FocusResolver.js +31 -0
  156. package/dist/collection/utils/ResponsiveInputUtils.js +26 -0
  157. package/dist/collection/utils/form/DataBinder.js +28 -9
  158. package/dist/collection/utils/form/FormMetadata.js +2 -1
  159. package/dist/collection/utils/interfaces/AbstractFieldMetadata.js +1 -1
  160. package/dist/collection/utils/validators/recordvalidator/IInvalidCells.js +1 -0
  161. package/dist/collection/utils/validators/recordvalidator/RecordValidationProcessor.js +7 -1
  162. package/dist/custom-elements/index.d.ts +36 -0
  163. package/dist/custom-elements/index.js +18717 -70960
  164. package/dist/esm/{CSSVarsUtils-71ce76be.js → CSSVarsUtils-acba92d7.js} +1 -0
  165. package/dist/esm/DataBinder-9c877244.js +441 -0
  166. package/dist/esm/FocusResolver-1ccbf850.js +33 -0
  167. package/dist/esm/ez-actions-button.entry.js +4 -3
  168. package/dist/esm/ez-badge.entry.js +14 -2
  169. package/dist/esm/ez-button.entry.js +11 -5
  170. package/dist/esm/ez-card-item_2.entry.js +1480 -0
  171. package/dist/esm/ez-chart.entry.js +2 -0
  172. package/dist/esm/ez-check.entry.js +1 -1
  173. package/dist/esm/ez-chip.entry.js +1 -1
  174. package/dist/esm/ez-collapsible-box.entry.js +1 -1
  175. package/dist/esm/ez-combo-box-list_3.entry.js +381 -0
  176. package/dist/esm/ez-combo-box.entry.js +83 -156
  177. package/dist/esm/ez-date-input.entry.js +15 -19
  178. package/dist/esm/ez-date-time-input.entry.js +14 -20
  179. package/dist/esm/ez-dialog.entry.js +15 -8
  180. package/dist/esm/ez-double-list.entry.js +283 -0
  181. package/dist/esm/{ez-dropdown.entry.js → ez-dropdown_2.entry.js} +75 -9
  182. package/dist/esm/ez-filter-input.entry.js +125 -0
  183. package/dist/esm/ez-form-view.entry.js +28 -21
  184. package/dist/esm/ez-form.entry.js +5 -320
  185. package/dist/esm/ez-grid.entry.js +14990 -69759
  186. package/dist/esm/ez-icon.entry.js +1 -1
  187. package/dist/esm/ez-list.entry.js +258 -211
  188. package/dist/esm/ez-modal-container.entry.js +3 -2
  189. package/dist/esm/ez-modal.entry.js +19 -4
  190. package/dist/esm/ez-multi-selection-list.entry.js +2 -2
  191. package/dist/esm/ez-number-input.entry.js +15 -3
  192. package/dist/esm/ez-popover-plus_3.entry.js +192 -0
  193. package/dist/esm/ez-popup.entry.js +24 -2
  194. package/dist/esm/ez-scroller_2.entry.js +3 -3
  195. package/dist/esm/ez-search.entry.js +122 -188
  196. package/dist/esm/ez-sidebar-navigator.entry.js +1 -1
  197. package/dist/esm/ez-split-button.entry.js +2 -2
  198. package/dist/esm/ez-split-item.entry.js +6 -3
  199. package/dist/esm/ez-split-panel.entry.js +69 -7
  200. package/dist/esm/ez-tabselector.entry.js +8 -2
  201. package/dist/esm/ez-text-area.entry.js +68 -6
  202. package/dist/esm/ez-text-input.entry.js +152 -16
  203. package/dist/esm/ez-time-input.entry.js +7 -1
  204. package/dist/esm/ez-tooltip.entry.js +51 -0
  205. package/dist/esm/ez-tree.entry.js +5 -4
  206. package/dist/esm/ezListHelper-00fb9b8d.js +87 -0
  207. package/dist/esm/ezui.js +1 -1
  208. package/dist/esm/filter-column.entry.js +10 -47
  209. package/dist/esm/index-baa5e267.js +22 -10
  210. package/dist/esm/loader.js +1 -1
  211. package/dist/esm/searchFormatters-8229207e.js +20 -0
  212. package/dist/ezui/ezui.esm.js +1 -1
  213. package/dist/ezui/p-0fa52b0f.entry.js +1 -0
  214. package/dist/ezui/p-17de16e5.entry.js +1 -0
  215. package/dist/ezui/p-17eabf46.entry.js +1 -0
  216. package/dist/ezui/p-1ad6c61b.entry.js +1 -0
  217. package/dist/ezui/p-20c024f7.entry.js +1 -0
  218. package/dist/ezui/p-20cb13fa.entry.js +1 -0
  219. package/dist/ezui/p-23b6128c.entry.js +1 -0
  220. package/dist/ezui/p-2872fd16.entry.js +1 -0
  221. package/dist/ezui/p-288631d1.entry.js +1 -0
  222. package/dist/ezui/p-2f45506d.entry.js +1 -0
  223. package/dist/ezui/p-3195a7a7.entry.js +1 -0
  224. package/dist/ezui/p-31b71e50.entry.js +1 -0
  225. package/dist/ezui/p-31da1b57.entry.js +1 -0
  226. package/dist/ezui/p-40a60148.js +1 -0
  227. package/dist/ezui/p-556468d9.entry.js +1 -0
  228. package/dist/ezui/p-56fe5341.entry.js +1 -0
  229. package/dist/ezui/p-5aca7386.entry.js +1 -0
  230. package/dist/ezui/{p-ffef392d.entry.js → p-5b205c80.entry.js} +1 -1
  231. package/dist/ezui/p-6cdd3e0a.entry.js +1 -0
  232. package/dist/ezui/p-788467fe.entry.js +1 -0
  233. package/dist/ezui/p-7e677b7b.entry.js +1 -0
  234. package/dist/ezui/{p-bf79aaa1.entry.js → p-7fdd479f.entry.js} +1 -1
  235. package/dist/ezui/p-80dfc50b.js +1 -0
  236. package/dist/ezui/p-a4cee65d.entry.js +1 -0
  237. package/dist/ezui/p-acddfb2e.js +1 -0
  238. package/dist/ezui/p-b7706b43.entry.js +1 -0
  239. package/dist/ezui/p-c0d9c4f8.entry.js +1 -0
  240. package/dist/ezui/p-c1527804.entry.js +1 -0
  241. package/dist/ezui/p-c297aa52.entry.js +1 -0
  242. package/dist/ezui/p-cb1535f7.entry.js +1 -0
  243. package/dist/ezui/p-cb5cd243.entry.js +309 -0
  244. package/dist/ezui/p-cf87aacb.entry.js +1 -0
  245. package/dist/ezui/p-da1b4a38.entry.js +1 -0
  246. package/dist/ezui/p-dc628ed3.js +1 -0
  247. package/dist/ezui/p-dc73e1fe.entry.js +1 -0
  248. package/dist/ezui/p-dcf3c8e5.entry.js +1 -0
  249. package/dist/ezui/{p-17be134a.entry.js → p-e06a9886.entry.js} +1 -1
  250. package/dist/ezui/{p-84e439b9.entry.js → p-e347df9c.entry.js} +1 -1
  251. package/dist/ezui/p-e6a9041d.entry.js +1 -0
  252. package/dist/ezui/p-e75c7a23.entry.js +1 -0
  253. package/dist/ezui/p-ea54d056.entry.js +1 -0
  254. package/dist/ezui/p-ec7db713.js +1 -0
  255. package/dist/ezui/p-f5931caa.entry.js +1 -0
  256. package/dist/ezui/p-fa6732f2.entry.js +1 -0
  257. package/dist/ezui/p-fd0a19d6.entry.js +1 -0
  258. package/dist/types/components/ez-badge/ez-badge.d.ts +5 -0
  259. package/dist/types/components/ez-button/ez-button.d.ts +2 -1
  260. package/dist/types/components/ez-calendar/ez-calendar.d.ts +3 -3
  261. package/dist/types/components/ez-card-item/ez-card-item.d.ts +5 -0
  262. package/dist/types/components/ez-combo-box/ez-combo-box-list/ez-combo-box-list.d.ts +104 -0
  263. package/dist/types/components/ez-combo-box/ez-combo-box.d.ts +17 -15
  264. package/dist/types/components/ez-date-input/ez-date-input.d.ts +8 -3
  265. package/dist/types/components/ez-date-time-input/ez-date-time-input.d.ts +8 -3
  266. package/dist/types/components/ez-dialog/ez-dialog.d.ts +2 -1
  267. package/dist/types/components/ez-double-list/doubleListHelper.d.ts +10 -0
  268. package/dist/types/components/ez-double-list/ez-double-list.d.ts +87 -0
  269. package/dist/types/components/ez-dropdown/ez-dropdown.d.ts +4 -0
  270. package/dist/types/components/ez-dropdown/structure/DropdownItem.d.ts +1 -1
  271. package/dist/types/components/ez-filter-input/ez-filter-input.d.ts +6 -1
  272. package/dist/types/components/ez-form-view/custom-input/ez-custom-form-input.d.ts +7 -1
  273. package/dist/types/components/ez-form-view/fieldbuilder/templates/DateInput.tpl.d.ts +2 -1
  274. package/dist/types/components/ez-form-view/fieldbuilder/templates/SearchInput.tpl.d.ts +1 -1
  275. package/dist/types/components/ez-form-view/fieldbuilder/templates/TextInput.tpl.d.ts +1 -1
  276. package/dist/types/components/ez-grid/controller/EzGridController.d.ts +71 -4
  277. package/dist/types/components/ez-grid/controller/ag-grid/AgGridController.d.ts +37 -4
  278. package/dist/types/components/ez-grid/controller/ag-grid/DataSource.d.ts +25 -2
  279. package/dist/types/components/ez-grid/controller/ag-grid/GridEditionManager.d.ts +33 -7
  280. package/dist/types/components/ez-grid/controller/ag-grid/components/EzGridCustomCellEditor.d.ts +4 -1
  281. package/dist/types/components/ez-grid/controller/ag-grid/components/EzGridCustomCellRender.d.ts +1 -1
  282. package/dist/types/components/ez-grid/controller/ag-grid/components/EzGridCustomHeader.d.ts +1 -1
  283. package/dist/types/components/ez-grid/controller/ag-grid/components/cellRendererStatus.d.ts +1 -1
  284. package/dist/types/components/ez-grid/controller/ag-grid/components/selectionHeader.d.ts +1 -1
  285. package/dist/types/components/ez-grid/controller/ag-grid/editor/EzCellEditor.d.ts +2 -1
  286. package/dist/types/components/ez-grid/controller/ag-grid/editor/EzCellRender.d.ts +1 -1
  287. package/dist/types/components/ez-grid/controller/ag-grid/editor/IUICellEditor.d.ts +1 -0
  288. package/dist/types/components/ez-grid/controller/ag-grid/mock/Server.d.ts +1 -1
  289. package/dist/types/components/ez-grid/ez-grid.d.ts +59 -1
  290. package/dist/types/components/ez-grid/subcomponents/filter-column.d.ts +0 -11
  291. package/dist/types/components/ez-grid/utils/ColumnFilterManager.d.ts +1 -1
  292. package/dist/types/components/ez-grid/utils/InMemoryFilterColumnDataSource.d.ts +3 -0
  293. package/dist/types/components/ez-list/ez-list.d.ts +23 -2
  294. package/dist/types/components/ez-list/ezListHelper.d.ts +20 -0
  295. package/dist/types/components/ez-modal/ez-modal.d.ts +7 -1
  296. package/dist/types/components/ez-modal-container/ez-modal-container.d.ts +4 -0
  297. package/dist/types/components/ez-number-input/ez-number-input.d.ts +8 -0
  298. package/dist/types/components/ez-popover-plus/ez-popover-plus.d.ts +76 -0
  299. package/dist/types/components/ez-popover-plus/subcomponent/ez-popover-core.d.ts +91 -0
  300. package/dist/types/components/ez-popup/ez-popup.d.ts +8 -1
  301. package/dist/types/components/ez-search/ez-search.d.ts +34 -16
  302. package/dist/types/components/ez-search/subcomponent/search-list/search-list.d.ts +23 -0
  303. package/dist/types/components/ez-search/utils/searchFormatters.d.ts +2 -0
  304. package/dist/types/components/ez-split-button/ez-split-button.d.ts +1 -1
  305. package/dist/types/components/ez-split-panel/ez-split-panel.d.ts +11 -0
  306. package/dist/types/components/ez-split-panel/interfaces/IPanelSizeInfo.d.ts +9 -0
  307. package/dist/types/components/ez-split-panel/structure/item/ez-split-item.d.ts +5 -0
  308. package/dist/types/components/ez-tabselector/ez-tabselector.d.ts +2 -1
  309. package/dist/types/components/ez-text-area/ez-text-area.d.ts +17 -0
  310. package/dist/types/components/ez-text-input/ez-text-input.d.ts +24 -2
  311. package/dist/types/components/ez-time-input/ez-time-input.d.ts +4 -0
  312. package/dist/types/components/ez-tooltip/ez-tooltip.d.ts +21 -0
  313. package/dist/types/components/ez-tree/ez-tree.d.ts +4 -0
  314. package/dist/types/components/ez-tree/interfaces/ITreeItem.d.ts +1 -0
  315. package/dist/types/components/ez-tree/subcomponents/TreeItem.d.ts +1 -0
  316. package/dist/types/components.d.ts +810 -21
  317. package/dist/types/utils/FocusResolver.d.ts +5 -0
  318. package/dist/types/utils/ResponsiveInputUtils.d.ts +6 -0
  319. package/dist/types/utils/customEditor/interfaces/ICustomEditor.d.ts +2 -0
  320. package/dist/types/utils/form/DataBinder.d.ts +5 -0
  321. package/dist/types/utils/validators/recordvalidator/IInvalidCells.d.ts +5 -0
  322. package/dist/types/utils/validators/recordvalidator/RecordValidationProcessor.d.ts +1 -1
  323. package/package.json +11 -3
  324. package/react/components.d.ts +6 -0
  325. package/react/components.js +6 -0
  326. package/react/components.js.map +1 -1
  327. package/dist/cjs/RecordValidationProcessor-4c893e04.js +0 -102
  328. package/dist/cjs/ez-card-item_3.cjs.entry.js +0 -183
  329. package/dist/cjs/ez-custom-form-input_2.cjs.entry.js +0 -206
  330. package/dist/cjs/ez-skeleton.cjs.entry.js +0 -67
  331. package/dist/esm/RecordValidationProcessor-b00b8b77.js +0 -99
  332. package/dist/esm/ez-card-item_3.entry.js +0 -177
  333. package/dist/esm/ez-custom-form-input_2.entry.js +0 -201
  334. package/dist/esm/ez-skeleton.entry.js +0 -63
  335. package/dist/ezui/p-04f24913.js +0 -1
  336. package/dist/ezui/p-072e6347.entry.js +0 -1
  337. package/dist/ezui/p-1285c902.entry.js +0 -1
  338. package/dist/ezui/p-12ae1104.entry.js +0 -1
  339. package/dist/ezui/p-13d2fe2d.entry.js +0 -1
  340. package/dist/ezui/p-2097d0cf.entry.js +0 -1
  341. package/dist/ezui/p-2dcb50d4.entry.js +0 -1
  342. package/dist/ezui/p-30775e7f.entry.js +0 -1
  343. package/dist/ezui/p-3b4eeeb6.entry.js +0 -1
  344. package/dist/ezui/p-3faa2b46.entry.js +0 -1
  345. package/dist/ezui/p-49456b34.entry.js +0 -1
  346. package/dist/ezui/p-4d5235f1.entry.js +0 -1
  347. package/dist/ezui/p-5056284a.entry.js +0 -1
  348. package/dist/ezui/p-5bd5e68f.entry.js +0 -1
  349. package/dist/ezui/p-650e4b6d.entry.js +0 -1
  350. package/dist/ezui/p-784fe207.entry.js +0 -1
  351. package/dist/ezui/p-7922142b.entry.js +0 -1
  352. package/dist/ezui/p-7af81663.entry.js +0 -1
  353. package/dist/ezui/p-7bc07c31.entry.js +0 -1
  354. package/dist/ezui/p-816cece6.entry.js +0 -304
  355. package/dist/ezui/p-85c8baae.entry.js +0 -1
  356. package/dist/ezui/p-8888d9ed.entry.js +0 -1
  357. package/dist/ezui/p-9050d2cd.entry.js +0 -1
  358. package/dist/ezui/p-922ac38b.entry.js +0 -1
  359. package/dist/ezui/p-9ab22a07.entry.js +0 -1
  360. package/dist/ezui/p-9e11fc7b.js +0 -1
  361. package/dist/ezui/p-a31b9c90.entry.js +0 -1
  362. package/dist/ezui/p-af95cd16.entry.js +0 -1
  363. package/dist/ezui/p-bae4e180.entry.js +0 -1
  364. package/dist/ezui/p-baf80b13.entry.js +0 -1
  365. package/dist/ezui/p-bcb53f27.entry.js +0 -1
  366. package/dist/ezui/p-d9401ea0.entry.js +0 -1
  367. package/dist/ezui/p-e85c48d7.entry.js +0 -1
  368. package/dist/ezui/p-ecc2c1ec.entry.js +0 -1
  369. package/dist/ezui/p-f3c526cc.entry.js +0 -1
@@ -1,13 +1,14 @@
1
1
  import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-baa5e267.js';
2
- import { C as CSSVarsUtils } from './CSSVarsUtils-71ce76be.js';
3
- import { ObjectUtils, StringUtils, FloatingManager, ElementIDUtils } from '@sankhyalabs/core';
2
+ import { C as CSSVarsUtils } from './CSSVarsUtils-acba92d7.js';
3
+ import { ObjectUtils, StringUtils, ElementIDUtils } from '@sankhyalabs/core';
4
4
  import { A as ApplicationUtils } from './ApplicationUtils-eaf91331.js';
5
5
  import './DialogType-54a62731.js';
6
6
  import './CheckMode-bdb2ec19.js';
7
7
  import './ICustomRender-875b5a40.js';
8
8
  import { R as REQUIRED_INFO } from './constants-4e0d35b7.js';
9
+ import { r as replaceQuotes, a as replaceHighlight } from './searchFormatters-8229207e.js';
9
10
 
10
- const ezSearchCss = ":host{--ez-search--height:42px;--ez-search--width:100%;--ez-search__icon--width:48px;--ez-search--border-radius:var(--border--radius-medium, 12px);--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-color--xlight:var(--background--xlight, #fff);--ez-search--background-medium:var(--background--medium, #f0f3f7);--ez-search--line-height:calc(var(--text--medium, 14px) + 4px);--ez-search__input--background-color:var(--background--medium, #e0e0e0);--ez-search__input--border:var(--border--medium, 2px solid);--ez-search__input--border-color:var(--ez-search__input--background-color);--ez-search__input--focus--border-color:var(--color--primary, #008561);--ez-search__input--disabled--background-color:var(--color--disable-secondary, #F2F5F8);--ez-search__input--disabled--color:var(--text--disable, #AFB6C0);--ez-search__input--error--border-color:#CC2936;--ez-search__btn--color:var(--title--primary, #2B3A54);--ez-search__btn-disabled--color:var(--text--disable, #AFB6C0);--ez-search__btn-hover--color:var(--color--primary, #4e4e4e);--ez-search__label--color:var(--title--primary, #2B3A54);--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--space--medium:var(--space--medium, 12px);--ez-search--space--small:var(--space--small, 6px);--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--medium, 12px);display:flex;flex-wrap:wrap;position:relative;width:var(--ez-search--width)}ez-icon{--ez-icon--color:inherit;font-weight:var(--text-weight--large, 600)}.suppressed-search-input{--ez-text-input__input--border-color:var(--color--strokes, #dce0e8);--ez-text-input__input--disabled--background-color:var(--background--xlight, #fff);--ez-text-input__input--disabled--color:var(--title--primary, #2B3A54)}.list-container{min-width:var(--ez-search__list-min-width);overflow:auto;position:relative;width:100%}.list-wrapper{display:flex;flex-direction:column;box-sizing:border-box;width:0;z-index:var(--more-visible, 2);max-height:350px;min-width:150px;background-color:var(--ez-search--background-color--xlight);border-radius:var(--ez-search--border-radius);box-shadow:var(--shadow, 0px 0px 16px 0px #000);padding:var(--ez-search--space--small)}.list-options{box-sizing:border-box;width:100%;height:100%;padding:0;display:flex;flex-direction:column;scroll-behavior:smooth;overflow:auto;scrollbar-width:thin;gap:3px;scrollbar-color:var(--ez-search__scrollbar--color-clicked) var(--ez-search__scrollbar--color-background)}.list-options::-webkit-scrollbar{background-color:var(--ez-search__scrollbar--color-background);width:var(--ez-search__scrollbar--width);max-width:var(--ez-search__scrollbar--width);min-width:var(--ez-search__scrollbar--width)}.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)}.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);padding:var(--ez-search--space--small);gap:var(--space--small, 6px)}.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}.message{text-align:center;display:flex;justify-content:center;align-items:center;list-style-type:none;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__list>li:hover{background-color:var(--ez-search--background-medium)}.preselected{background-color:var(--background--medium)}.btn{outline:none;border:none;background:none;cursor:pointer;color:var(--ez-search__btn--color)}.btn:disabled{cursor:unset;color:var(--ez-search__btn-disabled--color)}.btn:disabled:hover{cursor:unset;color:var(--ez-search__btn-disabled--color)}.btn:hover{color:var(--ez-search__btn-hover--color)}.btn__close{visibility:hidden}ez-text-input:hover .btn__close,ez-text-input:focus .btn__close{visibility:visible}@-webkit-keyframes spin{0%{-webkit-transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg)}}@keyframes spin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}";
11
+ const ezSearchCss = ":host{--ez-search--height:42px;--ez-search--width:100%;--ez-search__icon--width:48px;--ez-search--border-radius:var(--border--radius-medium, 12px);--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-color--xlight:var(--background--xlight, #fff);--ez-search--background-medium:var(--background--medium, #f0f3f7);--ez-search--line-height:calc(var(--text--medium, 14px) + 4px);--ez-search__input--background-color:var(--background--medium, #e0e0e0);--ez-search__input--border:var(--border--medium, 2px solid);--ez-search__input--border-color:var(--ez-search__input--background-color);--ez-search__input--focus--border-color:var(--color--primary, #008561);--ez-search__input--disabled--background-color:var(--color--disable-secondary, #F2F5F8);--ez-search__input--disabled--color:var(--text--disable, #AFB6C0);--ez-search__input--error--border-color:#CC2936;--ez-search__btn--color:var(--title--primary, #2B3A54);--ez-search__btn-disabled--color:var(--text--disable, #AFB6C0);--ez-search__btn-hover--color:var(--color--primary, #4e4e4e);--ez-search__label--color:var(--title--primary, #2B3A54);--ez-search--space--medium:var(--space--medium, 12px);--ez-search--space--small:var(--space--small, 6px);display:flex;flex-wrap:wrap;position:relative;width:var(--ez-search--width)}ez-icon{--ez-icon--color:inherit;font-weight:var(--text-weight--large, 600)}.suppressed-search-input{--ez-text-input__input--border-color:var(--color--strokes, #dce0e8);--ez-text-input__input--disabled--background-color:var(--background--xlight, #fff);--ez-text-input__input--disabled--color:var(--title--primary, #2B3A54)}.btn{outline:none;border:none;background:none;cursor:pointer;color:var(--ez-search__btn--color)}.btn:disabled{cursor:not-allowed;color:var(--ez-search__btn-disabled--color)}.btn:disabled:hover{cursor:not-allowed;color:var(--ez-search__btn-disabled--color)}.btn:hover{color:var(--ez-search__btn-hover--color)}.btn__close{visibility:hidden}ez-text-input:hover .btn__close,ez-text-input:focus .btn__close{visibility:visible}";
11
12
 
12
13
  const EzSearch = class {
13
14
  constructor(hostRef) {
@@ -26,15 +27,18 @@ const EzSearch = class {
26
27
  this._visibleOptions = undefined;
27
28
  this._startLoading = false;
28
29
  this._showLoading = true;
30
+ this._showLoadingDescription = false;
29
31
  this._criteria = undefined;
30
32
  this.value = undefined;
31
33
  this.label = undefined;
32
34
  this.enabled = true;
33
35
  this.errorMessage = undefined;
34
36
  this.optionLoader = undefined;
37
+ this.contextProperties = undefined;
35
38
  this.showSelectedValue = true;
36
39
  this.showOptionValue = true;
37
40
  this.suppressEmptyOption = false;
41
+ this.stopPropagateEnterKeyEvent = false;
38
42
  this.mode = "regular";
39
43
  this.canShowError = true;
40
44
  this.hideErrorOnFocusOut = true;
@@ -43,6 +47,9 @@ const EzSearch = class {
43
47
  this.ignoreLimitCharsToSearch = false;
44
48
  this.options = undefined;
45
49
  this.suppressSearch = false;
50
+ this.ensureClearButtonVisible = false;
51
+ this.suppressPreLoad = true;
52
+ this.autoFocus = false;
46
53
  }
47
54
  observeErrorMessage() {
48
55
  var _a;
@@ -53,12 +60,21 @@ const EzSearch = class {
53
60
  }
54
61
  }
55
62
  }
63
+ getValue(val) {
64
+ return typeof val === 'object' ? val === null || val === void 0 ? void 0 : val.value : val;
65
+ }
56
66
  validateNewValue(newValue, oldValue) {
57
- const getValue = (val) => typeof val === 'object' ? val === null || val === void 0 ? void 0 : val.value : val;
58
- return (getValue(newValue) !== getValue(oldValue));
67
+ const parsedNewValue = this.getValue(newValue);
68
+ const parsedOldValue = this.getValue(oldValue);
69
+ const newValueIsValid = parsedNewValue !== "[object Object]";
70
+ const valuesIsDifferent = parsedNewValue !== parsedOldValue;
71
+ if (newValueIsValid && valuesIsDifferent) {
72
+ return true;
73
+ }
74
+ return false;
59
75
  }
60
76
  async observeValue(newValue, oldValue) {
61
- if (this._textInput && newValue !== oldValue && this.validateNewValue(newValue, oldValue)) {
77
+ if (this._textInput && this.validateNewValue(newValue, oldValue)) {
62
78
  if (typeof newValue === "string") {
63
79
  await this.handleValueAsString(newValue);
64
80
  return;
@@ -75,6 +91,8 @@ const EzSearch = class {
75
91
  }
76
92
  }
77
93
  observeOptions(newOptions, oldOptions) {
94
+ if (!newOptions.length && this.suppressPreLoad)
95
+ return;
78
96
  if ((newOptions === null || newOptions === void 0 ? void 0 : newOptions.join('')) === (oldOptions === null || oldOptions === void 0 ? void 0 : oldOptions.join('')))
79
97
  return;
80
98
  this.loadOptions(SearchMode.PRELOAD);
@@ -99,9 +117,9 @@ const EzSearch = class {
99
117
  /**
100
118
  * Aplica o foco no campo.
101
119
  */
102
- async setFocus() {
120
+ async setFocus(options) {
103
121
  if (this._textInput) {
104
- this._textInput.setFocus();
122
+ this._textInput.setFocus(options);
105
123
  }
106
124
  }
107
125
  /**
@@ -124,73 +142,19 @@ const EzSearch = class {
124
142
  async clearValue() {
125
143
  this.clearSearch();
126
144
  }
127
- scrollListener() {
128
- var _a;
129
- if (this._floatingID == undefined) {
130
- return;
131
- }
132
- if ((_a = this.listOptionsPosition) === null || _a === void 0 ? void 0 : _a.hardPosition) {
133
- this.hideOptions();
134
- }
135
- else {
136
- window.requestAnimationFrame(() => {
137
- this.updateListPosition();
138
- });
139
- }
140
- }
141
145
  async handleValueAsString(value) {
142
146
  if (this.getSelectedOption(value)) {
143
147
  this.setInputValue();
144
148
  return;
145
149
  }
146
150
  await this.loadDescriptionValue(value);
151
+ if (!this._currentValue) {
152
+ return;
153
+ }
147
154
  this.setInputValue();
148
155
  this.ezChange.emit(this.value);
149
156
  this._currentValue = this.value;
150
157
  }
151
- updateListPosition() {
152
- let { verticalPosition, horizontalPosition, fromBottom, fromRight, bottomLimit, hardPosition } = this.getListPosition();
153
- const elementRect = this._listWrapper.getBoundingClientRect();
154
- const containerRect = this._listContainer.getBoundingClientRect();
155
- const textInputRect = this._textInput.getBoundingClientRect();
156
- const limitHeight = bottomLimit || window.innerHeight;
157
- const neededHeight = containerRect.bottom + elementRect.height;
158
- if (!fromBottom && (elementRect.top < 0 || neededHeight > limitHeight)) {
159
- fromBottom = true;
160
- }
161
- if (!hardPosition) {
162
- verticalPosition = verticalPosition || 0;
163
- horizontalPosition = horizontalPosition || 0;
164
- if (fromBottom) {
165
- verticalPosition = window.innerHeight - textInputRect.top + verticalPosition;
166
- }
167
- else {
168
- verticalPosition += containerRect.top;
169
- }
170
- if (fromRight) {
171
- horizontalPosition = window.innerWidth - textInputRect.right + horizontalPosition;
172
- }
173
- else {
174
- horizontalPosition += containerRect.left;
175
- }
176
- }
177
- if (verticalPosition != undefined) {
178
- this._listWrapper.style[fromBottom ? "bottom" : "top"] = `${verticalPosition}px`;
179
- this._listWrapper.style[fromBottom ? "top" : "bottom"] = "";
180
- }
181
- if (horizontalPosition != undefined) {
182
- this._listWrapper.style[fromRight ? "right" : "left"] = `${horizontalPosition}px`;
183
- this._listWrapper.style[fromRight ? "left" : "right"] = "";
184
- }
185
- }
186
- getListPosition() {
187
- if (this.listOptionsPosition) {
188
- return this.listOptionsPosition;
189
- }
190
- return {
191
- verticalPosition: (this.errorMessage || !this.canShowError || this.mode === "slim") ? 6 : -13
192
- };
193
- }
194
158
  isDifferentValues(firstValue, secondValue) {
195
159
  return ObjectUtils.objectToString(firstValue || {}) !== ObjectUtils.objectToString(secondValue || {});
196
160
  }
@@ -198,28 +162,21 @@ const EzSearch = class {
198
162
  if (currentValue == undefined) {
199
163
  return;
200
164
  }
201
- let text = (!this.showSelectedValue || currentValue.value == undefined) ? currentValue.label : `${currentValue.value} - ${currentValue.label}`;
202
- text = text.replace(new RegExp(this._startHighlightTag, 'g'), '').replace(new RegExp(this._endHighlightTag, 'g'), '');
165
+ let text = (!this.showSelectedValue || currentValue.value == undefined) ? currentValue.label : currentValue.label ? `${currentValue.value} - ${currentValue.label}` : currentValue.value;
166
+ text = text === null || text === void 0 ? void 0 : text.replace(new RegExp(this._startHighlightTag, 'g'), '').replace(new RegExp(this._endHighlightTag, 'g'), '');
203
167
  return text;
204
168
  }
205
169
  getText() {
206
170
  const currentValue = this.getSelectedOption(this._currentValue);
207
171
  const text = this.getFormattedText(currentValue);
208
- if (text == undefined) {
209
- return;
210
- }
211
- return String(text)
212
- .replace(/&amp;/g, '&')
213
- .replace(/&lt;/g, '<')
214
- .replace(/&gt;/g, '>')
215
- .replace(/&quot;/g, '"');
172
+ return replaceQuotes(text);
216
173
  }
217
174
  getSelectedOption(value) {
218
175
  if (typeof value === "string" || value instanceof String) {
219
176
  return this._visibleOptions.find(o => o.value === value);
220
177
  }
221
178
  if (value) {
222
- return Object.assign(Object.assign({}, value), { value: this.replaceHighlight(value === null || value === void 0 ? void 0 : value.value), label: this.replaceHighlight(value === null || value === void 0 ? void 0 : value.label) });
179
+ return Object.assign(Object.assign({}, value), { value: replaceHighlight(value === null || value === void 0 ? void 0 : value.value), label: replaceHighlight(value === null || value === void 0 ? void 0 : value.label) });
223
180
  }
224
181
  return value;
225
182
  }
@@ -257,75 +214,19 @@ const EzSearch = class {
257
214
  }
258
215
  return 0;
259
216
  }
260
- createOption(detail) {
261
- let { key, title } = detail;
262
- const startHighlight = new RegExp(this._startHighlightTag, 'g');
263
- const endHighlight = new RegExp(this._endHighlightTag, 'g');
264
- title = StringUtils.decodeHtmlEntities(title);
265
- const option = {
266
- value: key === null || key === void 0 ? void 0 : key.replace(startHighlight, '').replace(endHighlight, ''),
267
- label: title === null || title === void 0 ? void 0 : title.replace(startHighlight, '').replace(endHighlight, '')
268
- };
269
- this.selectOption(option);
270
- }
271
- buildItem(opt, index) {
272
- opt.label = opt.label || opt.value;
273
- const card = {
274
- key: opt.value,
275
- title: opt.label,
276
- details: opt.details
277
- };
278
- return h("div", { style: { "height": "100%" }, class: index === this._preSelection ? "item preselected" : "item", id: `item_${opt.value}`, onMouseDown: () => this.createOption(card), onMouseOver: () => this._preSelection = index }, h("ez-card-item", { item: card }));
279
- }
280
217
  showOptions() {
281
218
  if (!this.enabled)
282
219
  return;
283
220
  if (this.isOptionsVisible()) {
284
221
  return;
285
222
  }
286
- if (!!this._resizeObserver)
287
- this._resizeObserver.observe(this._textInput);
288
- this._floatingID = FloatingManager.float(this._listWrapper, this._listContainer, { autoClose: false, isFixed: true, backClickListener: () => this.hideOptions() });
289
- this.setFocus();
290
- window.requestAnimationFrame(() => {
291
- this.updateListPosition();
292
- if (!this.listOptionsPosition) {
293
- this._listWrapper.scrollIntoView({ behavior: "smooth", block: "nearest", inline: "nearest" });
294
- }
295
- });
223
+ this._ezPopOverPlusElement.showUnder(this._textInput);
296
224
  }
297
225
  hideOptions() {
298
- if (this._floatingID !== undefined) {
299
- FloatingManager.close(this._floatingID);
300
- }
301
- this._floatingID = undefined;
302
- if (!!this._resizeObserver)
303
- this._resizeObserver.unobserve(this._textInput);
226
+ this._ezPopOverPlusElement.hide();
304
227
  }
305
228
  isOptionsVisible() {
306
- return this._floatingID !== undefined && FloatingManager.isFloating(this._floatingID);
307
- }
308
- nextOption() {
309
- if (!this.isOptionsVisible()) {
310
- return;
311
- }
312
- this.showOptions();
313
- this._preSelection = this._preSelection === undefined ? 0 : Math.min(this._preSelection + 1, this._visibleOptions.length - 1);
314
- this.scrollToOption(this._visibleOptions[this._preSelection]);
315
- }
316
- previousOption() {
317
- this._preSelection = this._preSelection === undefined ? 0 : Math.max(this._preSelection - 1, 0);
318
- this.scrollToOption(this._visibleOptions[this._preSelection]);
319
- }
320
- scrollToOption(opt) {
321
- window.requestAnimationFrame(() => {
322
- const liElem = (opt === null || opt === void 0 ? void 0 : opt.value)
323
- ? this._optionsList.querySelector(`div#item_${opt.value.replace(/([ #;&,.+*~':"!^$[\]()=<>|/\\])/g, '\\$1')}`)
324
- : undefined;
325
- if (liElem) {
326
- liElem.scrollIntoView({ behavior: "smooth", block: "nearest" });
327
- }
328
- });
229
+ return this._ezPopOverPlusElement.opened;
329
230
  }
330
231
  selectCurrentOption() {
331
232
  if (this._preSelection !== undefined) {
@@ -340,10 +241,13 @@ const EzSearch = class {
340
241
  this._startLoading = false;
341
242
  if (source instanceof Promise) {
342
243
  this._showLoading = true;
244
+ this._showLoadingDescription = true;
343
245
  source.then(result => {
344
- this._showLoading = false;
345
246
  this.updateSource(result);
346
- }).catch(() => this._showLoading = false);
247
+ }).finally(() => {
248
+ this._showLoading = false;
249
+ this._showLoadingDescription = false;
250
+ });
347
251
  this.updateVisibleOptions();
348
252
  }
349
253
  else {
@@ -353,7 +257,7 @@ const EzSearch = class {
353
257
  this.updateVisibleOptions();
354
258
  if (this._tabPressed) {
355
259
  this._tabPressed = false;
356
- this.controlEmptySearch();
260
+ this.controlEmptySearch(false);
357
261
  }
358
262
  }
359
263
  else {
@@ -365,18 +269,14 @@ const EzSearch = class {
365
269
  this._source = [];
366
270
  this.updateVisibleOptions();
367
271
  }
368
- replaceHighlight(value) {
369
- const startHighlight = new RegExp(this._startHighlightTag, 'g');
370
- const endHighlight = new RegExp(this._endHighlightTag, 'g');
371
- return (value !== null && value !== void 0 ? value : "").replace(startHighlight, '').replace(endHighlight, '');
372
- }
373
- selectOption(newOption) {
272
+ selectOption(newOption, focusOnInput = true) {
374
273
  var _a, _b;
375
274
  const currentValue = this.getSelectedOption(this.value);
376
- const newOptionsReplaced = Object.assign(Object.assign({}, newOption), { value: this.replaceHighlight(newOption === null || newOption === void 0 ? void 0 : newOption.value), label: this.replaceHighlight(newOption === null || newOption === void 0 ? void 0 : newOption.label) });
377
- if ((((_a = currentValue === null || currentValue === void 0 ? void 0 : currentValue.value) === null || _a === void 0 ? void 0 : _a.toString()) !== ((_b = newOptionsReplaced === null || newOptionsReplaced === void 0 ? void 0 : newOptionsReplaced.value) === null || _b === void 0 ? void 0 : _b.toString()))
378
- || (currentValue == undefined && newOptionsReplaced != undefined && "value" in newOptionsReplaced)) {
379
- const adjustedOpt = !(newOptionsReplaced === null || newOptionsReplaced === void 0 ? void 0 : newOptionsReplaced.value) ? undefined : newOptionsReplaced;
275
+ 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) });
276
+ 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) });
277
+ if ((((_a = currentValue === null || currentValue === void 0 ? void 0 : currentValue.value) === null || _a === void 0 ? void 0 : _a.toString()) !== ((_b = newOptionsFormatted === null || newOptionsFormatted === void 0 ? void 0 : newOptionsFormatted.value) === null || _b === void 0 ? void 0 : _b.toString()))
278
+ || (currentValue == undefined && newOptionsFormatted != undefined && "value" in newOptionsFormatted)) {
279
+ const adjustedOpt = !(newOptionsFormatted === null || newOptionsFormatted === void 0 ? void 0 : newOptionsFormatted.value) ? undefined : newOptionsFormatted;
380
280
  this.value = adjustedOpt;
381
281
  this._currentValue = adjustedOpt;
382
282
  }
@@ -386,13 +286,18 @@ const EzSearch = class {
386
286
  }
387
287
  this._visibleOptions = [];
388
288
  this.clearSource();
289
+ if (focusOnInput) {
290
+ setTimeout(() => {
291
+ this.setFocus();
292
+ }, 0);
293
+ }
389
294
  }
390
295
  loadOptions(mode, argument = "") {
391
296
  this._criteria = argument;
392
297
  this._startLoading = true;
393
298
  if (this.optionLoader) {
394
299
  const searchArgument = { mode, argument };
395
- this.updateSource(this.optionLoader(searchArgument));
300
+ this.updateSource(this.optionLoader(searchArgument, this.contextProperties));
396
301
  }
397
302
  else {
398
303
  this.updateSource(this.options);
@@ -422,7 +327,7 @@ const EzSearch = class {
422
327
  this.value = null;
423
328
  this._currentValue = null;
424
329
  }
425
- controlListWithOnlyOne() {
330
+ controlListWithOnlyOne(focusOnInput = true) {
426
331
  var _a, _b;
427
332
  const source = (_a = this._visibleOptions) === null || _a === void 0 ? void 0 : _a.filter((opt) => opt.label !== "" && opt.value != undefined);
428
333
  if ((source === null || source === void 0 ? void 0 : source.length) > 0) {
@@ -433,32 +338,19 @@ const EzSearch = class {
433
338
  value: (_b = source[0].value) === null || _b === void 0 ? void 0 : _b.replace(startHighlight, '').replace(endHighlight, ''),
434
339
  label: title === null || title === void 0 ? void 0 : title.replace(startHighlight, '').replace(endHighlight, '')
435
340
  };
436
- this.selectOption(option);
341
+ this.selectOption(option, focusOnInput);
437
342
  }
438
343
  }
439
- controlEmptySearch() {
344
+ controlEmptySearch(focusOnInput = true) {
440
345
  var _a;
441
346
  if (!((_a = this._visibleOptions) === null || _a === void 0 ? void 0 : _a.length)) {
442
347
  this.clearSearch();
443
348
  ApplicationUtils.info(this._textEmptyList);
444
349
  }
445
350
  else {
446
- this.controlListWithOnlyOne();
351
+ this.controlListWithOnlyOne(focusOnInput);
447
352
  }
448
353
  }
449
- validateDescriptionValue() {
450
- if (StringUtils.isEmpty(this.value)) {
451
- return;
452
- }
453
- if (!this.validateNewValue(this.value, this._currentValue)) {
454
- return;
455
- }
456
- let value = this.value;
457
- if (typeof value === "object") {
458
- return;
459
- }
460
- this.loadDescriptionValue(value);
461
- }
462
354
  async loadDescriptionValue(argument) {
463
355
  var _a, _b;
464
356
  if (argument == undefined) {
@@ -472,7 +364,7 @@ const EzSearch = class {
472
364
  mode: SearchMode.PREDICTIVE,
473
365
  argument
474
366
  };
475
- const source = await ((_b = this.optionLoader) === null || _b === void 0 ? void 0 : _b.call(this, searchArgument));
367
+ const source = await ((_b = this.optionLoader) === null || _b === void 0 ? void 0 : _b.call(this, searchArgument, this.contextProperties));
476
368
  if (source == undefined) {
477
369
  return;
478
370
  }
@@ -491,8 +383,17 @@ const EzSearch = class {
491
383
  this.showNoResultMessage();
492
384
  return;
493
385
  }
494
- this._currentValue = value ? Object.assign(Object.assign({}, value), { value: this.replaceHighlight(value.value), label: this.replaceHighlight(value.label) }) : value;
386
+ this._currentValue = value ? Object.assign(Object.assign({}, value), { value: replaceHighlight(value.value), label: replaceHighlight(value.label) }) : value;
495
387
  this.value = this._currentValue;
388
+ this.setTextInputValue();
389
+ }
390
+ setTextInputValue() {
391
+ if (this._textInput && (this._textInput.value === null || this._textInput.value === undefined)) {
392
+ if (this.value === undefined || this.value === null)
393
+ return;
394
+ const textValue = (typeof this.value === 'string') ? this.value : this.getFormattedText(this.value);
395
+ this._textInput.value = replaceQuotes(textValue);
396
+ }
496
397
  }
497
398
  loadOptionValue(argument) {
498
399
  var _a;
@@ -518,6 +419,19 @@ const EzSearch = class {
518
419
  this._preSelection = undefined;
519
420
  this.updateVisibleOptions();
520
421
  }
422
+ async handleInitialValue() {
423
+ const valueIsValid = !!this.getValue(this.value);
424
+ if (!valueIsValid) {
425
+ return;
426
+ }
427
+ if (typeof this.value === "string") {
428
+ await this.handleValueAsString(this.value);
429
+ return;
430
+ }
431
+ let text = this.getFormattedText(this.value);
432
+ text = replaceQuotes(text);
433
+ this._textInput.value = text;
434
+ }
521
435
  //---------------------------------------------
522
436
  // Lifecycle web component
523
437
  //---------------------------------------------
@@ -542,28 +456,29 @@ const EzSearch = class {
542
456
  }
543
457
  componentDidRender() {
544
458
  var _a;
545
- if (this._floatingID === undefined) {
546
- this._listWrapper.remove();
547
- }
548
459
  (_a = this._optionsList) === null || _a === void 0 ? void 0 : _a.querySelectorAll(".item").forEach((elem) => {
549
460
  ElementIDUtils.addIDInfoIfNotExists(elem, "itemSearch");
550
461
  });
551
- this.validateDescriptionValue();
552
462
  }
553
- componentDidLoad() {
463
+ async componentDidLoad() {
554
464
  this._currentValue = this.value;
555
465
  CSSVarsUtils.applyVarsTextInput(this.el, this._textInput);
556
- this.setInputValue(false);
557
466
  this._resizeObserver = new ResizeObserver((entries) => {
558
467
  window.requestAnimationFrame(() => {
559
468
  if (!Array.isArray(entries) || !entries.length)
560
469
  return;
561
- const { clientWidth } = this._listContainer;
562
- if (clientWidth > 0 && !!this._listWrapper) {
563
- this._listWrapper.style.width = `${clientWidth}px`;
564
- }
565
470
  });
566
471
  });
472
+ await this.handleInitialValue();
473
+ if (this.autoFocus) {
474
+ requestAnimationFrame(() => {
475
+ this.setFocus({ selectText: true });
476
+ });
477
+ }
478
+ }
479
+ disconnectedCallback() {
480
+ var _a;
481
+ (_a = this._resizeObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
567
482
  }
568
483
  //---------------------------------------------
569
484
  // Event handlers
@@ -595,7 +510,7 @@ const EzSearch = class {
595
510
  if (argument) {
596
511
  this._showLoading = false;
597
512
  this.clearSource();
598
- if (!isNaN(argumentNumber) || argument.length >= this._limitCharsToSearch) {
513
+ if (this.ignoreLimitCharsToSearch || !isNaN(argumentNumber) || argument.length >= this._limitCharsToSearch) {
599
514
  this._showLoading = true;
600
515
  this._changeDeboucingTimeout = window.setTimeout(() => {
601
516
  this.loadOptions(SearchMode.PREDICTIVE, isNaN(argumentNumber) ? argument : argumentNumber.toString());
@@ -618,7 +533,7 @@ const EzSearch = class {
618
533
  this._changeDeboucingTimeout = null;
619
534
  }
620
535
  }
621
- keyDownHandler(event) {
536
+ async keyDownHandler(event) {
622
537
  this._tabPressed = false;
623
538
  if (event.ctrlKey) {
624
539
  if (event.key === "f" || event.key === "F") {
@@ -633,14 +548,24 @@ const EzSearch = class {
633
548
  }
634
549
  switch (event.key) {
635
550
  case "ArrowDown":
636
- this.nextOption();
637
551
  event.stopPropagation();
552
+ if (this.canShowListOptions()) {
553
+ event.preventDefault();
554
+ }
555
+ if (!this.isOptionsVisible()) {
556
+ this.showOptions();
557
+ }
558
+ await this._searchList.nextOption();
638
559
  break;
639
560
  case "ArrowUp":
640
- this.previousOption();
641
561
  event.stopPropagation();
562
+ if (this.canShowListOptions()) {
563
+ event.preventDefault();
564
+ }
565
+ await this._searchList.previousOption();
642
566
  break;
643
567
  case "Enter":
568
+ this.handleEventPropagation(event);
644
569
  this.selectCurrentOption();
645
570
  break;
646
571
  case "Escape":
@@ -648,7 +573,7 @@ const EzSearch = class {
648
573
  break;
649
574
  case "Tab":
650
575
  this._tabPressed = true;
651
- this.controlListWithOnlyOne();
576
+ this.controlListWithOnlyOne(false);
652
577
  break;
653
578
  }
654
579
  //ATENÇÃO: Existe a necessidade de propagar o evento de teclado.
@@ -657,6 +582,12 @@ const EzSearch = class {
657
582
  //e o contexto pode reagir (fechar um popup por exemplo).
658
583
  //event.stopPropagation();
659
584
  }
585
+ //O evento deve ter sua propagação interrompida, apenas se a lista de opções estiver sendo exibida.
586
+ handleEventPropagation(event) {
587
+ if (this._ezPopOverPlusElement.opened && this.stopPropagateEnterKeyEvent) {
588
+ event.stopPropagation();
589
+ }
590
+ }
660
591
  onTextInputFocusOutHandler() {
661
592
  if (this.hideErrorOnFocusOut)
662
593
  this.cancelPreselection();
@@ -664,15 +595,18 @@ const EzSearch = class {
664
595
  canShowListOptions() {
665
596
  return !this._showLoading && this._visibleOptions.length > 0;
666
597
  }
598
+ canShowLoadSpinDescription() {
599
+ return this._showLoadingDescription && !this._ezPopOverPlusElement.opened;
600
+ }
601
+ onChangePreSelection(value) {
602
+ this._preSelection = value;
603
+ }
667
604
  render() {
668
605
  var _a;
669
606
  ElementIDUtils.addIDInfoIfNotExists(this.el, 'input');
670
- return (h(Host, null, h("ez-text-input", { "data-element-id": ElementIDUtils.getInternalIDInfo("textInput"), class: this.suppressSearch ? "suppressed-search-input" : "", ref: elem => this._textInput = elem, "data-slave-mode": "true", enabled: this.enabled && !this.suppressSearch, onInput: event => this.onTextInputChangeHandler(event), onFocusout: () => this.onTextInputFocusOutHandler(), onKeyDown: event => this.keyDownHandler(event), label: this.label, canShowError: this.canShowError, errorMessage: this.errorMessage, mode: this.mode }, h("button", { class: "btn", slot: "leftIcon", disabled: !this.enabled, tabindex: -1, onClick: () => this.handlerIconClick() }, h("ez-icon", { iconName: "search" })), ((_a = this._textInput) === null || _a === void 0 ? void 0 : _a.value) && (this._criteria || this.value)
607
+ return (h(Host, null, h("ez-text-input", { "data-element-id": ElementIDUtils.getInternalIDInfo("textInput"), class: this.suppressSearch ? "suppressed-search-input" : "", ref: elem => this._textInput = elem, "data-slave-mode": "true", enabled: this.enabled && !this.suppressSearch, onInput: event => this.onTextInputChangeHandler(event), onFocusout: () => this.onTextInputFocusOutHandler(), onKeyDown: event => this.keyDownHandler(event), label: this.label, canShowError: this.canShowError, errorMessage: this.errorMessage, mode: this.mode }, h("button", { class: "btn", slot: "leftIcon", disabled: !this.enabled, tabindex: -1, onClick: () => this.handlerIconClick() }, this.canShowLoadSpinDescription() ? h("div", { class: "message__loading" }) : h("ez-icon", { iconName: "search" })), (((_a = this._textInput) === null || _a === void 0 ? void 0 : _a.value) && (this._criteria || this.value) || this.ensureClearButtonVisible)
671
608
  ? h("button", { class: "btn btn__close", slot: "rightIcon", disabled: !this.enabled, tabindex: -1, onClick: () => this.clearSearch() }, h("ez-icon", { iconName: "close" }))
672
- : undefined), h("section", { class: "list-container", ref: elem => this._listContainer = elem }, h("div", { class: "list-wrapper", ref: elem => this._listWrapper = elem }, h("ul", { class: "list-options", ref: elem => this._optionsList = elem }, !this._showLoading
673
- && this._visibleOptions.length === 0
674
- && h("div", { class: "message" }, h("span", { class: "message__no-result" }, this._textEmptyList)), this._showLoading
675
- && h("div", { class: "message" }, h("div", { class: "message__loading" })), h("span", { class: "item__value item__value--hidden", ref: elem => this._itemValueBasis = elem }), this.canShowListOptions() && this._visibleOptions.map((opt, index) => this.buildItem(opt, index)))))));
609
+ : undefined), h("ez-popover-plus", { ref: elem => this._ezPopOverPlusElement = elem, autoClose: false, overlayType: "none", useAnchorSize: true, anchorElement: [this._textInput, this.el] }, h("search-list", { ref: (ref) => this._searchList = ref, showLoading: this._showLoading, visibleOptions: this._visibleOptions, textEmptyList: this._textEmptyList, canShowListOptions: this.canShowListOptions(), value: this.value, showOptionValue: this.showOptionValue, preSelection: this._preSelection, onChangeValue: ({ detail }) => this.selectOption(detail), onChangePreSelection: ({ detail }) => this.onChangePreSelection(detail) }))));
676
610
  }
677
611
  get el() { return getElement(this); }
678
612
  static get watchers() { return {
@@ -28,7 +28,7 @@ const MESSAGES = {
28
28
  PUSH_PIN_MENU: 'Fixar menu',
29
29
  };
30
30
 
31
- const ezSidebarNavigatorCss = ":host{--ez-sidebar-navigator--padding-left:var(--space--xs, 12px);--ez-sidebar-navigator--padding-right:var(--space--xs, 12px);--ez-sidebar-navigator--gap:var(--space--xs, 12px);--ez-sidebar-navigator--box-shadow:var(--shadow, 0px 0px 24px 0px #000);--ez-sidebar-navigator--background-color:var(--color--inverted);--ez-sidebar-navigator--border-radius:0px var(--border--radius-medium) var(--border--radius-medium) 0px;--ez-sidebar-navigator--height:calc(100vh - var(--space--lg, 24px));--ez-sidebar-navigator--header-gap:var(--space--xs, 12px);--ez-sidebar-navigator--footer-gap:var(--space--xs, 12px);--ez-ez-sidebar-navigator__title--font-family:var(--font-pattern, \"Roboto\");--ez-ez-sidebar-navigator__title--font-size:var(--title--medium, 16px);--ez-ez-sidebar-navigator__title--color:var(--title--primary, #2b3a54);--ez-ez-sidebar-navigator__title--font-weight:var(--text-weight--extra-large, 700)}.inverted{transform:rotate(180deg)}.ez-sidebar-navigator{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;height:var(--ez-sidebar-navigator--height);padding-top:var(--space--xs, 12px);padding-bottom:var(--space--xs, 12px);gap:var(--ez-sidebar-navigator--gap);padding-left:var(--ez-sidebar-navigator--padding-left);padding-right:var(--ez-sidebar-navigator--padding-right);background-color:var(--ez-sidebar-navigator--background-color);-webkit-box-shadow:var(--ez-sidebar-navigator--box-shadow);box-shadow:var(--ez-sidebar-navigator--box-shadow);border-radius:var(--ez-sidebar-navigator--border-radius)}.ez-sidebar-navigator__header{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;justify-content:space-between;gap:var(--ez-sidebar-navigator--header-gap)}.ez-sidebar-navigator__content{height:100%}.ez-sidebar-navigator__footer{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;gap:var(--ez-sidebar-navigator--footer-gap)}.ez-sidebar-navigator__title{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;font-family:var(--ez-ez-sidebar-navigator__title--font-family);font-size:var(--ez-ez-sidebar-navigator__title--font-size);font-weight:var(--ez-ez-sidebar-navigator__title--font-weight);color:var(--ez-ez-sidebar-navigator__title--color)}.ez-sidebar-navigator__end{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;margin-left:auto;gap:var(--ez-sidebar-navigator--gap)}.dynamic{position:absolute;z-index:var(--most-visible\t, 4)}.fixed{position:relative}.hidden{display:none}.show{animation:fadeIn .1s ease-in-out 1}@keyframes fadeIn{from{transform:translate(-100%)}}.sm{width:240px}.md{width:280px}.lg{width:320px}@media screen and (max-width: 991px){.responsive{width:240px}}@media screen and (min-width: 992px){.responsive{width:280px}}@media screen and (min-width: 1200px){.responsive{width:320px}}";
31
+ const ezSidebarNavigatorCss = ":host{--ez-sidebar-navigator--padding-left:var(--space--xs, 12px);--ez-sidebar-navigator--padding-right:var(--space--xs, 12px);--ez-sidebar-navigator--gap:var(--space--xs, 12px);--ez-sidebar-navigator--box-shadow:var(--shadow, 0px 0px 24px 0px #000);--ez-sidebar-navigator--background-color:var(--color--inverted);--ez-sidebar-navigator--border-radius:0px var(--border--radius-medium) var(--border--radius-medium) 0px;--ez-sidebar-navigator--height:calc(100vh - var(--space--lg, 24px));--ez-sidebar-navigator--z-index:var(--elevation--20, 20);--ez-sidebar-navigator--header-gap:var(--space--xs, 12px);--ez-sidebar-navigator--footer-gap:var(--space--xs, 12px);--ez-ez-sidebar-navigator__title--font-family:var(--font-pattern, \"Roboto\");--ez-ez-sidebar-navigator__title--font-size:var(--title--medium, 16px);--ez-ez-sidebar-navigator__title--color:var(--title--primary, #2b3a54);--ez-ez-sidebar-navigator__title--font-weight:var(--text-weight--extra-large, 700)}.inverted{transform:rotate(180deg)}.ez-sidebar-navigator{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;height:var(--ez-sidebar-navigator--height);padding-top:var(--space--xs, 12px);padding-bottom:var(--space--xs, 12px);outline:none;gap:var(--ez-sidebar-navigator--gap);padding-left:var(--ez-sidebar-navigator--padding-left);padding-right:var(--ez-sidebar-navigator--padding-right);background-color:var(--ez-sidebar-navigator--background-color);-webkit-box-shadow:var(--ez-sidebar-navigator--box-shadow);box-shadow:var(--ez-sidebar-navigator--box-shadow);border-radius:var(--ez-sidebar-navigator--border-radius)}.ez-sidebar-navigator__header{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;justify-content:space-between;gap:var(--ez-sidebar-navigator--header-gap)}.ez-sidebar-navigator__content{height:100%}.ez-sidebar-navigator__footer{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;gap:var(--ez-sidebar-navigator--footer-gap)}.ez-sidebar-navigator__title{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;font-family:var(--ez-ez-sidebar-navigator__title--font-family);font-size:var(--ez-ez-sidebar-navigator__title--font-size);font-weight:var(--ez-ez-sidebar-navigator__title--font-weight);color:var(--ez-ez-sidebar-navigator__title--color)}.ez-sidebar-navigator__end{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;margin-left:auto;gap:var(--ez-sidebar-navigator--gap)}.dynamic{position:absolute;z-index:var(--ez-sidebar-navigator--z-index)}.fixed{position:relative}.hidden{display:none}.show{animation:fadeIn .1s ease-in-out 1}@keyframes fadeIn{from{transform:translate(-100%)}}.sm{width:240px}.md{width:280px}.lg{width:320px}@media screen and (max-width: 991px){.responsive{width:240px}}@media screen and (min-width: 992px){.responsive{width:280px}}@media screen and (min-width: 1200px){.responsive{width:320px}}";
32
32
 
33
33
  const EzSidebarNavigator = class {
34
34
  constructor(hostRef) {
@@ -1,7 +1,7 @@
1
1
  import { r as registerInstance, c as createEvent, h, g as getElement } from './index-baa5e267.js';
2
2
  import { ElementIDUtils } from '@sankhyalabs/core';
3
3
 
4
- const ezSplitButtonCss = ":host{--ez-split-button--min-width:24;--ez-split-button--width:'auto';--ez-split-button__medium--height:32px;--ez-split-button__large--height:42px;--ez-split-button__medium-icon--width:40px;--ez-split-button__large-icon--width:44px;--ez-split-button__inline__icon--gap:6px;--ez-split-button__label--padding-top:0px;--ez-split-button__label--padding-bottom:0px;--ez-split-button__right-button--padding-left:8px;--ez-split-button--color:var(--title--primary, #FFF);--ez-split-button--font-size:var(--text--medium, 14px);--ez-split-button--font-family:var(--font-pattern, Arial);--ez-split-button--font-weight:var(--text-weight--large);--ez-split-button--background-color:var(--background--medium, #008561);--ez-split-button--border-radius:var(--border--radius-large, 12px);--ez-split-button--border:none;--ez-split-button--justify-content:center;--ez-split-button--hover-color:var(--color--primary-600);--ez-split-button--hover--background-color:var(--background--medium, var(--ez-split-button--background-color));--ez-split-button--disabled-color:var(--text--disable);--ez-split-button--disabled--background-color:var(--color--disable-secondary);--ez-split-button--focus--border:var(--border--medium, 2px) var(--color--primary-300);--ez-split-button--focus--box-shadow:none;--ez-split-button--active-color:var(--color--primary-700);--ez-split-button--active--background-color:var(--background--strong)}ez-icon{--ez-icon--color:inherit}button{position:relative;display:flex;align-items:center;margin:0;cursor:pointer;transition:background-color 0.2s linear;white-space:nowrap;min-width:var(--ez-split-button--min-width);width:var(--ez-split-button--width);height:var(--ez-split-button__medium--height);font-family:var(--ez-split-button--font-family);font-size:var(--ez-split-button--font-size);font-weight:var(--ez-split-button--font-weight);padding:var(--ez-split-button__label--padding-top) 0 var(--ez-split-button__label--padding-bottom) 0;border-top-left-radius:var(--ez-split-button--border-radius);border-bottom-left-radius:var(--ez-split-button--border-radius);background-color:var(--ez-split-button--background-color);color:var(--ez-split-button--color);fill:var(--ez-split-button--color);border:var(--ez-split-button--border);justify-content:var(--ez-split-button--justify-content)}label{cursor:pointer}button:active{outline:none;box-shadow:none;background-color:var(--ez-split-button--active--background-color);color:var(--ez-split-button--active-color);fill:var(--ez-split-button--active-color);--ez-icon--color:var(--ez-split-button--active-color)}.ez-split-button__left-button:focus,.ez-split-button__right-button:focus{outline:var(--ez-split-button--focus--border);box-shadow:var(--ez-split-button--focus--box-shadow)}.ez-split-button__left-button:hover,.ez-split-button__right-button:hover{outline:none;background-color:var(--ez-split-button--hover--background-color);color:var(--ez-split-button--hover-color);fill:var(--ez-split-button--hover-color);--ez-icon--color:var(--ez-split-button--hover-color)}.ez-split-button__left-button:disabled,.ez-split-button__left-button:disabled label,.ez-split-button__right-button:disabled{background-color:var(--ez-split-button--disabled--background-color);color:var(--ez-split-button--disabled-color);fill:var(--ez-split-button--disabled-color);border:none;--ez-icon--color:var(--ez-split-button--disabled-color);cursor:not-allowed}button.large{height:var(--ez-split-button__large--height)}button.medium{height:var(--ez-split-button__medium--height)}.default label{padding:var(--ez-split-button__label--padding-top) 12px var(--ez-split-button__label--padding-bottom) 20px}.icon-left{gap:var(--ez-split-button__inline__icon--gap)}.icon-left label{padding-right:12px}.icon-left ez-icon{padding-left:20px}.icon-only{padding-left:12px;padding-right:12px}.ez-split-button__right-button{border-top-right-radius:var(--ez-split-button--border-radius);border-bottom-right-radius:var(--ez-split-button--border-radius);border-top-left-radius:0;border-bottom-left-radius:0}.ez-split-button__right-button--medium{min-width:var(--ez-split-button__medium-icon--width)}.ez-split-button__right-button--large{min-width:var(--ez-split-button__large-icon--width)}.ez-split-button__right-button--divider{top:10%;bottom:10%}.ez-split-button__right-button--divider:before{content:\"\";position:absolute;left:0;border-left:1px solid rgba(0, 0, 0, 20%);border-radius:2px;height:75%}.btn-icon--medium{min-width:--ez-split-button__medium-icon--width}.btn-icon--large{min-width:--ez-split-button__large-icon--width}.ez-split-button__right-button-container{position:absolute;left:0;padding-left:var(--ez-split-button__right-button--padding-left)}.label-icon{display:flex;flex-direction:row;align-items:center;color:var(--ez-split-button--color)}.label-icon:active{color:var(--ez-split-button--active-color);fill:var(--ez-split-button--active-color);--ez-icon--color:var(--ez-split-button--active-color)}.dropdown{display:flex}.dropdown-content{display:block;position:absolute;background-color:#f1f1f1;min-width:160px;z-index:--ez-elevation--8;border-radius:var(--ez-split-button--border-radius)}.dropdown-content>ez-dropdown{position:relative}";
4
+ const ezSplitButtonCss = ":host{--ez-split-button--min-width:24;--ez-split-button--width:'auto';--ez-split-button__medium--height:32px;--ez-split-button__large--height:42px;--ez-split-button__medium-icon--width:40px;--ez-split-button__large-icon--width:44px;--ez-split-button__inline__icon--gap:6px;--ez-split-button__label--padding-top:0px;--ez-split-button__label--padding-bottom:0px;--ez-split-button__right-button--padding-left:8px;--ez-split-button--color:var(--title--primary, #2B3A54);--ez-split-button--font-size:var(--text--small, 12px);--ez-split-button--font-family:var(--font-pattern, Arial);--ez-split-button--font-weight:var(--text-weight--large);--ez-split-button--background-color:var(--background--light, #ffffff);--ez-split-button--border-radius:var(--border--radius-large, 24px);--ez-split-button--border:1px solid var(--color--strokes);--ez-split-button--justify-content:center;--ez-split-button--hover-color:var(--color--primary-600, #007a5a);--ez-split-button--hover--background-color:var(--background--light, #ffffff);--ez-split-button--disabled-color:var(--text--primary);--ez-split-button--disabled--background-color:var(--background--medium);--ez-split-button--focus--border:var(--border--medium, 2px) var(--color--primary-300);--ez-split-button--focus--box-shadow:none;--ez-split-button--active-color:var(--color--primary-700);--ez-split-button--active--background-color:var(--background--strong)}ez-icon{--ez-icon--color:inherit}button{position:relative;display:flex;align-items:center;margin:0;cursor:pointer;transition:background-color 0.2s linear;white-space:nowrap;min-width:var(--ez-split-button--min-width);width:var(--ez-split-button--width);height:var(--ez-split-button__medium--height);font-family:var(--ez-split-button--font-family);font-size:var(--ez-split-button--font-size);font-weight:var(--ez-split-button--font-weight);padding:var(--ez-split-button__label--padding-top) 0 var(--ez-split-button__label--padding-bottom) 0;border-top-left-radius:var(--ez-split-button--border-radius);border-bottom-left-radius:var(--ez-split-button--border-radius);background-color:var(--ez-split-button--background-color);color:var(--ez-split-button--color);fill:var(--ez-split-button--color);border:none;justify-content:var(--ez-split-button--justify-content)}label{cursor:pointer}button:active{outline:none;box-shadow:none;background-color:var(--ez-split-button--active--background-color);color:var(--ez-split-button--active-color);fill:var(--ez-split-button--active-color);--ez-icon--color:var(--ez-split-button--active-color)}.ez-split-button__left-button{border:var(--ez-split-button--border);border-right:none;outline:none}.ez-split-button__right-button{border:var(--ez-split-button--border);border-left:none;outline:none}.ez-split-button__left-button:focus{box-shadow:0 0 0 2px var(--color--primary-300), \n 0 2px 0 0 var(--color--primary-300), \n 0 -2px 0 0 var(--color--primary-300);}.ez-split-button__right-button:focus{box-shadow:2px 0 0 0 var(--color--primary-300), \n 0 2px 0 0 var(--color--primary-300), \n 0 -2px 0 0 var(--color--primary-300);}.ez-split-button__left-button:hover,.ez-split-button__right-button:hover{outline:none;background-color:var(--ez-split-button--hover--background-color);color:var(--ez-split-button--hover-color);fill:var(--ez-split-button--hover-color);--ez-icon--color:var(--ez-split-button--hover-color)}.ez-split-button__left-button:active,.ez-split-button__right-button:active{outline:none;box-shadow:none;background-color:var(--ez-split-button--active--background-color);color:var(--ez-split-button--active-color);fill:var(--ez-split-button--active-color);--ez-icon--color:var(--ez-split-button--active-color)}.ez-split-button__left-button:disabled,.ez-split-button__left-button:disabled label,.ez-split-button__right-button:disabled{background-color:var(--ez-split-button--disabled--background-color);color:var(--ez-split-button--disabled-color);fill:var(--ez-split-button--disabled-color);border:none;--ez-icon--color:var(--ez-split-button--disabled-color);cursor:not-allowed}.ez-split-button__left-button:disabled{border:var(--ez-split-button--disabled-border);border-right:none}.ez-split-button__right-button:disabled{border:var(--ez-split-button--disabled-border);border-left:none}button.large{height:var(--ez-split-button__large--height)}button.medium{height:var(--ez-split-button__medium--height)}.default label{padding:var(--ez-split-button__label--padding-top) 12px var(--ez-split-button__label--padding-bottom) 20px}.icon-left{gap:var(--ez-split-button__inline__icon--gap)}.icon-left label{padding-right:12px}.icon-left ez-icon{padding-left:20px}.icon-only{padding-left:12px;padding-right:12px}.ez-split-button__right-button{border-top-right-radius:var(--ez-split-button--border-radius);border-bottom-right-radius:var(--ez-split-button--border-radius);border-top-left-radius:0;border-bottom-left-radius:0;border-right:var(--ez-split-button--border)}.ez-split-button__right-button--medium{min-width:var(--ez-split-button__medium-icon--width)}.ez-split-button__right-button--large{min-width:var(--ez-split-button__large-icon--width)}.ez-split-button__right-button--divider{top:10%;bottom:10%}.ez-split-button__right-button--divider:before{content:\"\";position:absolute;left:0;border-left:1px solid rgba(0, 0, 0, 20%);border-radius:2px;height:75%}.btn-icon--medium{min-width:--ez-split-button__medium-icon--width}.btn-icon--large{min-width:--ez-split-button__large-icon--width}.ez-split-button__right-button-container{position:absolute;left:0;padding-left:var(--ez-split-button__right-button--padding-left)}.label-icon{display:flex;flex-direction:row;align-items:center;color:var(--ez-split-button--color)}.label-icon:active{color:var(--ez-split-button--active-color);fill:var(--ez-split-button--active-color);--ez-icon--color:var(--ez-split-button--active-color)}.dropdown{display:flex}.dropdown-content{display:block;position:absolute;background-color:#f1f1f1;min-width:160px;z-index:--ez-elevation--8;border-radius:var(--ez-split-button--border-radius)}.dropdown-content>ez-dropdown{position:relative}";
5
5
 
6
6
  const EzSplitButton = class {
7
7
  constructor(hostRef) {
@@ -49,7 +49,7 @@ const EzSplitButton = class {
49
49
  }
50
50
  getIconSize(sizeParam = 'medium') {
51
51
  var _a;
52
- const sizeList = ['medium', 'large'];
52
+ const sizeList = ['small', 'medium', 'large'];
53
53
  const sizeLowerCase = (_a = this.size) === null || _a === void 0 ? void 0 : _a.toLowerCase();
54
54
  return sizeList.includes(sizeLowerCase) ? sizeLowerCase : sizeParam;
55
55
  }