@sankhyalabs/ezui 5.22.0-dev.12 → 5.22.0-dev.120

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 (422) hide show
  1. package/dist/cjs/{CSSVarsUtils-10c9d5b4.js → CSSVarsUtils-f20973d1.js} +1 -0
  2. package/dist/cjs/DataBinder-b9973a19.js +474 -0
  3. package/dist/cjs/FocusResolver-885f2173.js +35 -0
  4. package/dist/cjs/FormLayout-c2451c7f.js +7 -0
  5. package/dist/cjs/{constants-2714478b.js → constants-569271bc.js} +4 -0
  6. package/dist/cjs/ez-actions-button.cjs.entry.js +6 -4
  7. package/dist/cjs/ez-badge.cjs.entry.js +14 -2
  8. package/dist/cjs/ez-button.cjs.entry.js +11 -5
  9. package/dist/cjs/ez-card-item_2.cjs.entry.js +270 -0
  10. package/dist/cjs/ez-chart.cjs.entry.js +3 -3
  11. package/dist/cjs/ez-check.cjs.entry.js +18 -10
  12. package/dist/cjs/ez-chip.cjs.entry.js +1 -1
  13. package/dist/cjs/ez-collapsible-box.cjs.entry.js +3 -2
  14. package/dist/cjs/ez-combo-box-list_3.cjs.entry.js +388 -0
  15. package/dist/cjs/ez-combo-box.cjs.entry.js +79 -156
  16. package/dist/cjs/ez-date-input.cjs.entry.js +16 -19
  17. package/dist/cjs/ez-date-time-input.cjs.entry.js +15 -20
  18. package/dist/cjs/ez-dialog.cjs.entry.js +18 -8
  19. package/dist/cjs/ez-double-list.cjs.entry.js +287 -0
  20. package/dist/cjs/ez-dropdown.cjs.entry.js +14 -8
  21. package/dist/cjs/ez-filter-input.cjs.entry.js +129 -0
  22. package/dist/cjs/ez-form-view.cjs.entry.js +41 -27
  23. package/dist/cjs/ez-form.cjs.entry.js +34 -327
  24. package/dist/cjs/ez-grid.cjs.entry.js +15146 -69779
  25. package/dist/cjs/ez-icon.cjs.entry.js +1 -1
  26. package/dist/cjs/ez-list.cjs.entry.js +258 -211
  27. package/dist/cjs/ez-modal-container.cjs.entry.js +7 -3
  28. package/dist/cjs/ez-modal.cjs.entry.js +17 -4
  29. package/dist/cjs/ez-multi-selection-list.cjs.entry.js +2 -2
  30. package/dist/cjs/ez-number-input.cjs.entry.js +16 -3
  31. package/dist/cjs/ez-popover-plus_3.cjs.entry.js +209 -0
  32. package/dist/cjs/ez-popup.cjs.entry.js +29 -3
  33. package/dist/cjs/ez-scroller_2.cjs.entry.js +3 -3
  34. package/dist/cjs/ez-search-plus.cjs.entry.js +398 -0
  35. package/dist/cjs/ez-search-result-list.cjs.entry.js +97 -0
  36. package/dist/cjs/ez-search.cjs.entry.js +124 -191
  37. package/dist/cjs/ez-sidebar-navigator.cjs.entry.js +1 -1
  38. package/dist/cjs/ez-skeleton.cjs.entry.js +1 -1
  39. package/dist/cjs/ez-split-button.cjs.entry.js +2 -2
  40. package/dist/cjs/ez-split-item.cjs.entry.js +8 -4
  41. package/dist/cjs/ez-split-panel.cjs.entry.js +68 -6
  42. package/dist/cjs/ez-text-area.cjs.entry.js +91 -8
  43. package/dist/cjs/ez-text-input.cjs.entry.js +135 -30
  44. package/dist/cjs/ez-time-input.cjs.entry.js +9 -2
  45. package/dist/cjs/ez-tooltip.cjs.entry.js +135 -0
  46. package/dist/cjs/ez-tree.cjs.entry.js +5 -4
  47. package/dist/cjs/ezListHelper-0d3970b4.js +90 -0
  48. package/dist/cjs/ezui.cjs.js +1 -1
  49. package/dist/cjs/filter-column.cjs.entry.js +10 -47
  50. package/dist/cjs/floating-ui.dom.esm-017acce4.js +1404 -0
  51. package/dist/cjs/index-9e5554cb.js +32 -8
  52. package/dist/cjs/loader.cjs.js +1 -1
  53. package/dist/cjs/searchFormatters-b7e1ed1e.js +23 -0
  54. package/dist/cjs/{ICustomRender-6fafffce.js → types-6a5df0c7.js} +8 -0
  55. package/dist/collection/collection-manifest.json +20 -2
  56. package/dist/collection/components/ez-actions-button/ez-actions-button.js +3 -2
  57. package/dist/collection/components/ez-badge/ez-badge.css +12 -1
  58. package/dist/collection/components/ez-badge/ez-badge.js +31 -1
  59. package/dist/collection/components/ez-button/ez-button.css +24 -14
  60. package/dist/collection/components/ez-button/ez-button.js +12 -6
  61. package/dist/collection/components/ez-card-item/ez-card-item.css +58 -10
  62. package/dist/collection/components/ez-card-item/ez-card-item.js +30 -3
  63. package/dist/collection/components/ez-chart/ez-chart.js +2 -2
  64. package/dist/collection/components/ez-chart/interfaces/ChartTypeValue.js +1 -0
  65. package/dist/collection/components/ez-chart/types/BaseHighChartsRender.js +3 -3
  66. package/dist/collection/components/ez-check/ez-check.css +10 -6
  67. package/dist/collection/components/ez-check/ez-check.js +34 -9
  68. package/dist/collection/components/ez-chip/ez-chip.css +5 -1
  69. package/dist/collection/components/ez-collapsible-box/ez-collapsible-box.css +2 -2
  70. package/dist/collection/components/ez-combo-box/ez-combo-box-list/ez-combo-box-list.css +205 -0
  71. package/dist/collection/components/ez-combo-box/ez-combo-box-list/ez-combo-box-list.js +426 -0
  72. package/dist/collection/components/ez-combo-box/ez-combo-box.css +8 -246
  73. package/dist/collection/components/ez-combo-box/ez-combo-box.js +139 -165
  74. package/dist/collection/components/ez-date-input/ez-date-input.css +1 -1
  75. package/dist/collection/components/ez-date-input/ez-date-input.js +58 -19
  76. package/dist/collection/components/ez-date-time-input/ez-date-time-input.css +1 -1
  77. package/dist/collection/components/ez-date-time-input/ez-date-time-input.js +57 -20
  78. package/dist/collection/components/ez-dialog/ez-dialog.css +27 -24
  79. package/dist/collection/components/ez-dialog/ez-dialog.js +18 -17
  80. package/dist/collection/components/ez-double-list/doubleListHelper.js +82 -0
  81. package/dist/collection/components/ez-double-list/ez-double-list.css +62 -0
  82. package/dist/collection/components/ez-double-list/ez-double-list.js +440 -0
  83. package/dist/collection/components/ez-dropdown/ez-dropdown.js +33 -8
  84. package/dist/collection/components/ez-filter-input/ez-filter-input.css +1 -1
  85. package/dist/collection/components/ez-filter-input/ez-filter-input.js +35 -4
  86. package/dist/collection/components/ez-form/ez-form.js +32 -4
  87. package/dist/collection/components/ez-form-view/custom-input/ez-custom-form-input.js +49 -6
  88. package/dist/collection/components/ez-form-view/ez-form-view.css +13 -2
  89. package/dist/collection/components/ez-form-view/ez-form-view.js +21 -2
  90. package/dist/collection/components/ez-form-view/fieldbuilder/FieldBuilder.js +5 -2
  91. package/dist/collection/components/ez-form-view/fieldbuilder/templates/CheckBox.tpl.js +1 -1
  92. package/dist/collection/components/ez-form-view/fieldbuilder/templates/ComboBox.tpl.js +1 -1
  93. package/dist/collection/components/ez-form-view/fieldbuilder/templates/DateInput.tpl.js +8 -4
  94. package/dist/collection/components/ez-form-view/fieldbuilder/templates/FileInput.tpl.js +1 -1
  95. package/dist/collection/components/ez-form-view/fieldbuilder/templates/NumberInput.tpl.js +1 -1
  96. package/dist/collection/components/ez-form-view/fieldbuilder/templates/SearchInput.tpl.js +1 -1
  97. package/dist/collection/components/ez-form-view/fieldbuilder/templates/SearchInputPlus.tpl.js +6 -0
  98. package/dist/collection/components/ez-form-view/fieldbuilder/templates/TextArea.tpl.js +1 -1
  99. package/dist/collection/components/ez-form-view/fieldbuilder/templates/TextInput.tpl.js +2 -2
  100. package/dist/collection/components/ez-grid/controller/ag-grid/AgGridController.js +387 -73
  101. package/dist/collection/components/ez-grid/controller/ag-grid/DataSource.js +170 -33
  102. package/dist/collection/components/ez-grid/controller/ag-grid/DataSourceInterceptor.js +2 -1
  103. package/dist/collection/components/ez-grid/controller/ag-grid/GridEditionManager.js +248 -43
  104. package/dist/collection/components/ez-grid/controller/ag-grid/components/EzGridCustomCellEditor.js +16 -0
  105. package/dist/collection/components/ez-grid/controller/ag-grid/components/EzGridCustomHeader.js +1 -1
  106. package/dist/collection/components/ez-grid/controller/ag-grid/editor/EzCellEditor.js +10 -0
  107. package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/ComboBox.tpl.js +2 -0
  108. package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/DateInput.tpl.js +1 -0
  109. package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/NumberInput.tpl.js +1 -0
  110. package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/Search.tpl.js +8 -1
  111. package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/SearchPlus.tpl.js +15 -0
  112. package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/TextInput.tpl.js +4 -1
  113. package/dist/collection/components/ez-grid/controller/ag-grid/test/constants/GridEditionMock.js +2 -0
  114. package/dist/collection/components/ez-grid/ez-grid.css +95 -10
  115. package/dist/collection/components/ez-grid/ez-grid.js +370 -12
  116. package/dist/collection/components/ez-grid/subcomponents/filter-column.css +4 -0
  117. package/dist/collection/components/ez-grid/subcomponents/filter-column.js +9 -46
  118. package/dist/collection/components/ez-grid/utils/ColumnFilterManager.js +7 -54
  119. package/dist/collection/components/ez-grid/utils/InMemoryFilterColumnDataSource.js +20 -4
  120. package/dist/collection/components/ez-icon/ez-icon.css +156 -149
  121. package/dist/collection/components/ez-list/ez-list.css +5 -4
  122. package/dist/collection/components/ez-list/ez-list.js +301 -212
  123. package/dist/collection/components/ez-list/ezListHelper.js +85 -0
  124. package/dist/collection/components/ez-modal/ez-modal.css +7 -2
  125. package/dist/collection/components/ez-modal/ez-modal.js +18 -5
  126. package/dist/collection/components/ez-modal-container/ez-modal-container.css +1 -0
  127. package/dist/collection/components/ez-modal-container/ez-modal-container.js +6 -2
  128. package/dist/collection/components/ez-multi-selection-list/ez-multi-selection-list.css +3 -3
  129. package/dist/collection/components/ez-multi-selection-list/ez-multi-selection-list.js +1 -1
  130. package/dist/collection/components/ez-number-input/ez-number-input.css +8 -0
  131. package/dist/collection/components/ez-number-input/ez-number-input.js +67 -1
  132. package/dist/collection/components/ez-popover-plus/ez-popover-plus.css +3 -0
  133. package/dist/collection/components/ez-popover-plus/ez-popover-plus.js +434 -0
  134. package/dist/collection/components/ez-popover-plus/subcomponent/ez-popover-core.css +67 -0
  135. package/dist/collection/components/ez-popover-plus/subcomponent/ez-popover-core.js +527 -0
  136. package/dist/collection/components/ez-popup/ez-popup.css +8 -3
  137. package/dist/collection/components/ez-popup/ez-popup.js +48 -4
  138. package/dist/collection/components/ez-scroller/ez-scroller.css +4 -0
  139. package/dist/collection/components/ez-search/ez-search.css +2 -210
  140. package/dist/collection/components/ez-search/ez-search.js +223 -204
  141. package/dist/collection/components/ez-search/subcomponent/search-list/search-list.css +227 -0
  142. package/dist/collection/components/ez-search/subcomponent/search-list/search-list.js +289 -0
  143. package/dist/collection/components/ez-search/utils/searchFormatters.js +18 -0
  144. package/dist/collection/components/ez-search-plus/ez-search-plus.css +373 -0
  145. package/dist/collection/components/ez-search-plus/ez-search-plus.js +984 -0
  146. package/dist/collection/components/ez-search-plus/subcomponent/ez-search-result-list/ez-search-result-list.css +221 -0
  147. package/dist/collection/components/ez-search-plus/subcomponent/ez-search-result-list/ez-search-result-list.js +278 -0
  148. package/dist/collection/components/ez-sidebar-button/ez-sidebar-button.css +3 -0
  149. package/dist/collection/components/ez-sidebar-button/ez-sidebar-button.js +1 -1
  150. package/dist/collection/components/ez-sidebar-navigator/ez-sidebar-navigator.css +4 -1
  151. package/dist/collection/components/ez-skeleton/ez-skeleton.css +54 -34
  152. package/dist/collection/components/ez-split-button/ez-split-button.css +52 -14
  153. package/dist/collection/components/ez-split-button/ez-split-button.js +3 -3
  154. package/dist/collection/components/ez-split-panel/ez-split-panel.css +15 -0
  155. package/dist/collection/components/ez-split-panel/ez-split-panel.js +106 -5
  156. package/dist/collection/components/ez-split-panel/interfaces/IPanelSizeInfo.js +1 -0
  157. package/dist/collection/components/ez-split-panel/structure/item/ez-split-item.css +14 -2
  158. package/dist/collection/components/ez-split-panel/structure/item/ez-split-item.js +22 -1
  159. package/dist/collection/components/ez-text-area/ez-text-area.css +78 -29
  160. package/dist/collection/components/ez-text-area/ez-text-area.js +151 -6
  161. package/dist/collection/components/ez-text-input/ez-text-input.css +126 -93
  162. package/dist/collection/components/ez-text-input/ez-text-input.js +216 -28
  163. package/dist/collection/components/ez-time-input/ez-time-input.js +43 -1
  164. package/dist/collection/components/ez-tooltip/ez-tooltip.css +61 -0
  165. package/dist/collection/components/ez-tooltip/ez-tooltip.js +310 -0
  166. package/dist/collection/components/ez-tree/ez-tree.js +21 -1
  167. package/dist/collection/components/ez-tree/subcomponents/TreeItem.js +3 -3
  168. package/dist/collection/sw.js +46 -0
  169. package/dist/collection/utils/CSSVarsUtils.js +1 -0
  170. package/dist/collection/utils/FocusResolver.js +31 -0
  171. package/dist/collection/utils/constants.js +2 -0
  172. package/dist/collection/utils/form/DataBinder.js +65 -21
  173. package/dist/collection/utils/form/FormMetadata.js +2 -1
  174. package/dist/collection/utils/form/interfaces/FormLayout.js +5 -0
  175. package/dist/collection/utils/form/interfaces/index.js +1 -1
  176. package/dist/collection/utils/form/test/DataBinder.test.js +14 -0
  177. package/dist/collection/utils/index.js +2 -0
  178. package/dist/collection/utils/interfaces/AbstractFieldMetadata.js +1 -1
  179. package/dist/collection/utils/search/types.js +7 -0
  180. package/dist/collection/utils/validators/recordvalidator/IInvalidCells.js +1 -0
  181. package/dist/collection/utils/validators/recordvalidator/RecordValidationProcessor.js +7 -1
  182. package/dist/custom-elements/index.d.ts +48 -0
  183. package/dist/custom-elements/index.js +21625 -72913
  184. package/dist/esm/{CSSVarsUtils-71ce76be.js → CSSVarsUtils-acba92d7.js} +1 -0
  185. package/dist/esm/DataBinder-1035e36f.js +470 -0
  186. package/dist/esm/FocusResolver-1ccbf850.js +33 -0
  187. package/dist/esm/FormLayout-54092963.js +7 -0
  188. package/dist/esm/constants-b036528f.js +7 -0
  189. package/dist/esm/ez-actions-button.entry.js +6 -4
  190. package/dist/esm/ez-badge.entry.js +14 -2
  191. package/dist/esm/ez-button.entry.js +11 -5
  192. package/dist/esm/ez-card-item_2.entry.js +265 -0
  193. package/dist/esm/ez-chart.entry.js +3 -3
  194. package/dist/esm/ez-check.entry.js +18 -10
  195. package/dist/esm/ez-chip.entry.js +1 -1
  196. package/dist/esm/ez-collapsible-box.entry.js +3 -2
  197. package/dist/esm/ez-combo-box-list_3.entry.js +382 -0
  198. package/dist/esm/ez-combo-box.entry.js +80 -157
  199. package/dist/esm/ez-date-input.entry.js +16 -19
  200. package/dist/esm/ez-date-time-input.entry.js +15 -20
  201. package/dist/esm/ez-dialog.entry.js +19 -9
  202. package/dist/esm/ez-double-list.entry.js +283 -0
  203. package/dist/esm/ez-dropdown.entry.js +14 -8
  204. package/dist/esm/ez-filter-input.entry.js +125 -0
  205. package/dist/esm/ez-form-view.entry.js +42 -28
  206. package/dist/esm/ez-form.entry.js +33 -326
  207. package/dist/esm/ez-grid.entry.js +15145 -69778
  208. package/dist/esm/ez-icon.entry.js +1 -1
  209. package/dist/esm/ez-list.entry.js +258 -211
  210. package/dist/esm/ez-modal-container.entry.js +7 -3
  211. package/dist/esm/ez-modal.entry.js +17 -4
  212. package/dist/esm/ez-multi-selection-list.entry.js +2 -2
  213. package/dist/esm/ez-number-input.entry.js +16 -3
  214. package/dist/esm/ez-popover-plus_3.entry.js +203 -0
  215. package/dist/esm/ez-popup.entry.js +29 -3
  216. package/dist/esm/ez-scroller_2.entry.js +3 -3
  217. package/dist/esm/ez-search-plus.entry.js +394 -0
  218. package/dist/esm/ez-search-result-list.entry.js +93 -0
  219. package/dist/esm/ez-search.entry.js +125 -192
  220. package/dist/esm/ez-sidebar-navigator.entry.js +1 -1
  221. package/dist/esm/ez-skeleton.entry.js +1 -1
  222. package/dist/esm/ez-split-button.entry.js +2 -2
  223. package/dist/esm/ez-split-item.entry.js +8 -4
  224. package/dist/esm/ez-split-panel.entry.js +69 -7
  225. package/dist/esm/ez-text-area.entry.js +91 -8
  226. package/dist/esm/ez-text-input.entry.js +135 -30
  227. package/dist/esm/ez-time-input.entry.js +9 -2
  228. package/dist/esm/ez-tooltip.entry.js +131 -0
  229. package/dist/esm/ez-tree.entry.js +5 -4
  230. package/dist/esm/ezListHelper-00fb9b8d.js +87 -0
  231. package/dist/esm/ezui.js +1 -1
  232. package/dist/esm/filter-column.entry.js +10 -47
  233. package/dist/esm/floating-ui.dom.esm-5d3da819.js +1398 -0
  234. package/dist/esm/index-5a720e56.js +32 -8
  235. package/dist/esm/loader.js +1 -1
  236. package/dist/esm/searchFormatters-8229207e.js +20 -0
  237. package/dist/esm/{ICustomRender-875b5a40.js → types-6f6b2650.js} +9 -1
  238. package/dist/ezui/ezui.esm.js +1 -1
  239. package/dist/ezui/p-000159dc.entry.js +1 -0
  240. package/dist/ezui/p-06f1b8e4.entry.js +1 -0
  241. package/dist/ezui/{p-044d46d5.entry.js → p-07594da0.entry.js} +1 -1
  242. package/dist/ezui/p-0cfbbe82.entry.js +1 -0
  243. package/dist/ezui/p-0f658cfd.entry.js +1 -0
  244. package/dist/ezui/p-15ea0c98.js +1 -0
  245. package/dist/ezui/p-173f68ea.js +1 -0
  246. package/dist/ezui/p-18e71523.entry.js +1 -0
  247. package/dist/ezui/p-19389207.entry.js +1 -0
  248. package/dist/ezui/p-1f7241cd.entry.js +1 -0
  249. package/dist/ezui/p-1fefb37a.entry.js +1 -0
  250. package/dist/ezui/p-2069c78a.entry.js +1 -0
  251. package/dist/ezui/{p-b2f6bc0a.entry.js → p-2f351332.entry.js} +1 -1
  252. package/dist/ezui/{p-82ac8b06.entry.js → p-2f77f563.entry.js} +1 -1
  253. package/dist/ezui/p-3eaa0f67.entry.js +1 -0
  254. package/dist/ezui/p-40a60148.js +1 -0
  255. package/dist/ezui/p-44b39e81.entry.js +1 -0
  256. package/dist/ezui/p-4d8afc8e.entry.js +1 -0
  257. package/dist/ezui/p-5895e687.js +1 -0
  258. package/dist/ezui/p-5b85d3de.entry.js +1 -0
  259. package/dist/ezui/p-5b8639c0.entry.js +1 -0
  260. package/dist/ezui/p-5eea9886.js +1 -0
  261. package/dist/ezui/p-6b3fddee.entry.js +1 -0
  262. package/dist/ezui/p-6ccfb01f.entry.js +1 -0
  263. package/dist/ezui/p-708b196e.entry.js +1 -0
  264. package/dist/ezui/p-72731b9b.entry.js +1 -0
  265. package/dist/ezui/p-80dfc50b.js +1 -0
  266. package/dist/ezui/p-81452714.entry.js +309 -0
  267. package/dist/ezui/p-88c615f0.entry.js +1 -0
  268. package/dist/ezui/p-8d9ab0b0.entry.js +1 -0
  269. package/dist/ezui/p-8f49705f.entry.js +1 -0
  270. package/dist/ezui/p-9066b0b0.entry.js +1 -0
  271. package/dist/ezui/p-90e91173.entry.js +1 -0
  272. package/dist/ezui/p-926a0bde.entry.js +1 -0
  273. package/dist/ezui/p-97d94ef3.entry.js +1 -0
  274. package/dist/ezui/p-9e95bfeb.entry.js +1 -0
  275. package/dist/ezui/p-a11827ca.entry.js +1 -0
  276. package/dist/ezui/p-b8344ae8.entry.js +1 -0
  277. package/dist/ezui/p-b9255e16.entry.js +1 -0
  278. package/dist/ezui/p-c2b1b592.entry.js +1 -0
  279. package/dist/ezui/p-c7035d65.entry.js +1 -0
  280. package/dist/ezui/p-cf33bc48.entry.js +1 -0
  281. package/dist/ezui/p-d2290004.entry.js +1 -0
  282. package/dist/ezui/p-dc628ed3.js +1 -0
  283. package/dist/ezui/p-ddb22a70.entry.js +1 -0
  284. package/dist/ezui/p-e07e4671.js +1 -0
  285. package/dist/ezui/p-e18c7afe.entry.js +1 -0
  286. package/dist/ezui/p-e5e911ef.entry.js +1 -0
  287. package/dist/ezui/p-ec7db713.js +1 -0
  288. package/dist/ezui/p-ed48a632.entry.js +1 -0
  289. package/dist/ezui/p-f6a88217.entry.js +1 -0
  290. package/dist/types/components/ez-badge/ez-badge.d.ts +5 -0
  291. package/dist/types/components/ez-button/ez-button.d.ts +2 -1
  292. package/dist/types/components/ez-calendar/ez-calendar.d.ts +3 -3
  293. package/dist/types/components/ez-card-item/ez-card-item.d.ts +5 -0
  294. package/dist/types/components/ez-chart/interfaces/ChartAxis.d.ts +2 -0
  295. package/dist/types/components/ez-chart/interfaces/ChartTypeValue.d.ts +1 -0
  296. package/dist/types/components/ez-check/ez-check.d.ts +7 -2
  297. package/dist/types/components/ez-combo-box/ez-combo-box-list/ez-combo-box-list.d.ts +104 -0
  298. package/dist/types/components/ez-combo-box/ez-combo-box.d.ts +19 -15
  299. package/dist/types/components/ez-date-input/ez-date-input.d.ts +12 -3
  300. package/dist/types/components/ez-date-time-input/ez-date-time-input.d.ts +12 -3
  301. package/dist/types/components/ez-dialog/ez-dialog.d.ts +3 -1
  302. package/dist/types/components/ez-double-list/doubleListHelper.d.ts +10 -0
  303. package/dist/types/components/ez-double-list/ez-double-list.d.ts +87 -0
  304. package/dist/types/components/ez-dropdown/ez-dropdown.d.ts +4 -0
  305. package/dist/types/components/ez-dropdown/structure/DropdownItem.d.ts +1 -1
  306. package/dist/types/components/ez-filter-input/ez-filter-input.d.ts +6 -1
  307. package/dist/types/components/ez-form/ez-form.d.ts +5 -1
  308. package/dist/types/components/ez-form-view/custom-input/ez-custom-form-input.d.ts +7 -1
  309. package/dist/types/components/ez-form-view/ez-form-view.d.ts +4 -0
  310. package/dist/types/components/ez-form-view/fieldbuilder/templates/DateInput.tpl.d.ts +2 -1
  311. package/dist/types/components/ez-form-view/fieldbuilder/templates/SearchInputPlus.tpl.d.ts +2 -0
  312. package/dist/types/components/ez-form-view/fieldbuilder/templates/TextInput.tpl.d.ts +1 -1
  313. package/dist/types/components/ez-grid/controller/EzGridController.d.ts +75 -4
  314. package/dist/types/components/ez-grid/controller/ag-grid/AgGridController.d.ts +42 -6
  315. package/dist/types/components/ez-grid/controller/ag-grid/DataSource.d.ts +26 -2
  316. package/dist/types/components/ez-grid/controller/ag-grid/GridEditionManager.d.ts +34 -7
  317. package/dist/types/components/ez-grid/controller/ag-grid/components/EzGridCustomCellEditor.d.ts +4 -1
  318. package/dist/types/components/ez-grid/controller/ag-grid/components/EzGridCustomCellRender.d.ts +1 -1
  319. package/dist/types/components/ez-grid/controller/ag-grid/components/EzGridCustomHeader.d.ts +1 -1
  320. package/dist/types/components/ez-grid/controller/ag-grid/components/cellRendererStatus.d.ts +1 -1
  321. package/dist/types/components/ez-grid/controller/ag-grid/components/selectionHeader.d.ts +1 -1
  322. package/dist/types/components/ez-grid/controller/ag-grid/editor/EzCellEditor.d.ts +2 -1
  323. package/dist/types/components/ez-grid/controller/ag-grid/editor/EzCellRender.d.ts +1 -1
  324. package/dist/types/components/ez-grid/controller/ag-grid/editor/IUICellEditor.d.ts +1 -0
  325. package/dist/types/components/ez-grid/controller/ag-grid/editor/templates/SearchPlus.tpl.d.ts +3 -0
  326. package/dist/types/components/ez-grid/controller/ag-grid/mock/Server.d.ts +1 -1
  327. package/dist/types/components/ez-grid/ez-grid.d.ts +59 -1
  328. package/dist/types/components/ez-grid/subcomponents/filter-column.d.ts +0 -11
  329. package/dist/types/components/ez-grid/utils/ColumnFilterManager.d.ts +1 -1
  330. package/dist/types/components/ez-grid/utils/InMemoryFilterColumnDataSource.d.ts +3 -0
  331. package/dist/types/components/ez-list/ez-list.d.ts +23 -2
  332. package/dist/types/components/ez-list/ezListHelper.d.ts +20 -0
  333. package/dist/types/components/ez-modal/ez-modal.d.ts +4 -1
  334. package/dist/types/components/ez-modal-container/ez-modal-container.d.ts +2 -0
  335. package/dist/types/components/ez-number-input/ez-number-input.d.ts +12 -0
  336. package/dist/types/components/ez-popover-plus/ez-popover-plus.d.ts +74 -0
  337. package/dist/types/components/ez-popover-plus/subcomponent/ez-popover-core.d.ts +91 -0
  338. package/dist/types/components/ez-popup/ez-popup.d.ts +10 -1
  339. package/dist/types/components/ez-search/ez-search.d.ts +36 -18
  340. package/dist/types/components/ez-search/subcomponent/search-list/search-list.d.ts +23 -0
  341. package/dist/types/components/ez-search/utils/searchFormatters.d.ts +2 -0
  342. package/dist/types/components/ez-search-plus/ez-search-plus.d.ts +186 -0
  343. package/dist/types/components/ez-search-plus/subcomponent/ez-search-result-list/ez-search-result-list.d.ts +26 -0
  344. package/dist/types/components/ez-split-button/ez-split-button.d.ts +1 -1
  345. package/dist/types/components/ez-split-panel/ez-split-panel.d.ts +11 -0
  346. package/dist/types/components/ez-split-panel/interfaces/IPanelSizeInfo.d.ts +9 -0
  347. package/dist/types/components/ez-split-panel/structure/item/ez-split-item.d.ts +5 -0
  348. package/dist/types/components/ez-text-area/ez-text-area.d.ts +25 -0
  349. package/dist/types/components/ez-text-input/ez-text-input.d.ts +35 -3
  350. package/dist/types/components/ez-time-input/ez-time-input.d.ts +8 -0
  351. package/dist/types/components/ez-tooltip/ez-tooltip.d.ts +57 -0
  352. package/dist/types/components/ez-tree/ez-tree.d.ts +4 -0
  353. package/dist/types/components/ez-tree/interfaces/ITreeItem.d.ts +1 -0
  354. package/dist/types/components/ez-tree/subcomponents/TreeItem.d.ts +1 -0
  355. package/dist/types/components.d.ts +1233 -63
  356. package/dist/types/utils/FocusResolver.d.ts +5 -0
  357. package/dist/types/utils/constants.d.ts +2 -0
  358. package/dist/types/utils/customEditor/interfaces/ICustomEditor.d.ts +2 -0
  359. package/dist/types/utils/form/DataBinder.d.ts +7 -2
  360. package/dist/types/utils/form/interfaces/FormLayout.d.ts +4 -0
  361. package/dist/types/utils/form/interfaces/index.d.ts +1 -0
  362. package/dist/types/utils/index.d.ts +2 -0
  363. package/dist/types/utils/search/types.d.ts +12 -0
  364. package/dist/types/utils/validators/recordvalidator/IInvalidCells.d.ts +5 -0
  365. package/dist/types/utils/validators/recordvalidator/RecordValidationProcessor.d.ts +1 -1
  366. package/package.json +12 -4
  367. package/react/components.d.ts +62 -54
  368. package/react/components.js +8 -0
  369. package/react/components.js.map +1 -1
  370. package/react/react-component-lib/createComponent.d.ts +1 -1
  371. package/react/react-component-lib/createComponent.js.map +1 -1
  372. package/react/react-component-lib/createOverlayComponent.js.map +1 -1
  373. package/react/react-component-lib/interfaces.js +1 -0
  374. package/react/react-component-lib/utils/attachProps.d.ts +1 -1
  375. package/react/react-component-lib/utils/attachProps.js.map +1 -1
  376. package/react/react-component-lib/utils/dev.js.map +1 -1
  377. package/react/react-component-lib/utils/index.d.ts +2 -2
  378. package/react/react-component-lib/utils/index.js.map +1 -1
  379. package/dist/cjs/RecordValidationProcessor-4c893e04.js +0 -102
  380. package/dist/cjs/ez-card-item_3.cjs.entry.js +0 -183
  381. package/dist/cjs/ez-custom-form-input_2.cjs.entry.js +0 -206
  382. package/dist/esm/RecordValidationProcessor-b00b8b77.js +0 -99
  383. package/dist/esm/constants-4e0d35b7.js +0 -5
  384. package/dist/esm/ez-card-item_3.entry.js +0 -177
  385. package/dist/esm/ez-custom-form-input_2.entry.js +0 -201
  386. package/dist/ezui/p-04f24913.js +0 -1
  387. package/dist/ezui/p-05e1f4e7.js +0 -1
  388. package/dist/ezui/p-0ee0ac03.entry.js +0 -1
  389. package/dist/ezui/p-11b09aa1.entry.js +0 -1
  390. package/dist/ezui/p-1b08bf3c.entry.js +0 -1
  391. package/dist/ezui/p-24ca32a3.entry.js +0 -1
  392. package/dist/ezui/p-2af4e2de.entry.js +0 -1
  393. package/dist/ezui/p-30951bd7.entry.js +0 -1
  394. package/dist/ezui/p-3141ee18.entry.js +0 -1
  395. package/dist/ezui/p-31674f8e.entry.js +0 -1
  396. package/dist/ezui/p-33792b2b.entry.js +0 -1
  397. package/dist/ezui/p-36180f4d.entry.js +0 -1
  398. package/dist/ezui/p-3f8c33e0.entry.js +0 -1
  399. package/dist/ezui/p-4607fb89.js +0 -1
  400. package/dist/ezui/p-52100a6e.entry.js +0 -1
  401. package/dist/ezui/p-5517995b.entry.js +0 -1
  402. package/dist/ezui/p-5fefcdc9.entry.js +0 -1
  403. package/dist/ezui/p-615def37.entry.js +0 -304
  404. package/dist/ezui/p-752c4069.entry.js +0 -1
  405. package/dist/ezui/p-81cffa53.entry.js +0 -1
  406. package/dist/ezui/p-81f99ace.entry.js +0 -1
  407. package/dist/ezui/p-868b56f7.entry.js +0 -1
  408. package/dist/ezui/p-8eef0f70.entry.js +0 -1
  409. package/dist/ezui/p-9634631d.entry.js +0 -1
  410. package/dist/ezui/p-9a23d513.entry.js +0 -1
  411. package/dist/ezui/p-9aa27e69.entry.js +0 -1
  412. package/dist/ezui/p-9c2e2d68.entry.js +0 -1
  413. package/dist/ezui/p-9e11fc7b.js +0 -1
  414. package/dist/ezui/p-b0e71d23.entry.js +0 -1
  415. package/dist/ezui/p-c3b7a23e.entry.js +0 -1
  416. package/dist/ezui/p-cd1a2e6b.entry.js +0 -1
  417. package/dist/ezui/p-dbeee5aa.entry.js +0 -1
  418. package/dist/ezui/p-de870657.entry.js +0 -1
  419. package/dist/ezui/p-ee9315ff.entry.js +0 -1
  420. package/dist/ezui/p-f1c2c19e.entry.js +0 -1
  421. package/dist/ezui/p-f1c3f85d.entry.js +0 -1
  422. package/dist/ezui/p-f291db18.entry.js +0 -1
@@ -5,37 +5,35 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  const index = require('./index-9e5554cb.js');
6
6
  const core = require('@sankhyalabs/core');
7
7
 
8
- const ezTextInputCss = ":host{--ez-text-input--height:42px;--ez-text-input--width:100%;--ez-text-input__icon--width:48px;--ez-text-input--height--slim:32px;--ez-text-input--border-radius:var(--border--radius-medium, 12px);--ez-text-input--font-size:var(--text--medium, 14px);--ez-text-input--font-family:var(--font-pattern, Arial);--ez-text-input--font-weight:var(--text-weight--medium, 400);--ez-text-input--color:var(--title--primary, #2B3A54);--ez-text-input__input--background-color:var(--background--medium, #e0e0e0);--ez-text-input__input--border:var(--border--medium, 2px solid);--ez-text-input__input--border-color:var(--ez-text-input__input--background-color);--ez-text-input__input--focus--border-color:var(--color--primary, #008561);--ez-text-input__input--disabled--background-color:var(--color--disable-secondary, #F2F5F8);--ez-text-input__input--disabled--color:var(--text--disable, #AFB6C0);--ez-text-input__input--error--border-color:#CC2936;--ez-text-input__input--noborder-color:white;--ez-text-input__input--padding:var(--space--medium, 6px);--ez-text-input__message_box--font-size:var(--text--small, 12px);--ez-text-input__message_box--info--color:var(--color--success, #22085d);--ez-text-input__message_box--error--color:var(--color--error, #FF0000);--ez-text-input__label--floating--top:6px;--ez-text-input__label--padding-top:12px;--ez-text-input__label--padding-left:14px;--ez-text-input__label--padding-right:12px;--ez-text-input__input--focus--icon-color:var(--ez-text-input__input--focus--border-color);display:flex;flex-wrap:wrap;position:relative;width:var(--ez-text-input--width)}:host(.grid_editor){--ez-text-input--height--slim:25px}input{width:100%;box-sizing:border-box;height:var(--ez-text-input--height);border-radius:var(--ez-text-input--border-radius);font-family:var(--ez-text-input--font-family);font-size:var(--ez-text-input--font-size);border:var(--ez-text-input__input--border);border-color:var(--ez-text-input__input--border-color);background-color:var(--ez-text-input__input--background-color);color:var(--ez-text-input--color);font-weight:var(--ez-text-input--font-weight);padding:var(--ez-text-input__input--padding)}input:disabled{background-color:var(--ez-text-input__input--disabled--background-color);color:var(--ez-text-input__input--disabled--color)}input:focus{outline:none;border-color:var(--ez-text-input__input--focus--border-color)}input.icon--left{padding-left:var(--ez-text-input__icon--width)}input.icon--right{padding-right:var(--ez-text-input__icon--width)}input.hasError{color:var(--ez-text-input--color);border-color:var(--ez-text-input__input--error--border-color)}input:disabled.hasError{color:var(--ez-text-input__input--disabled--color)}input.text--right{text-align:right}input:read-only{cursor:default}.message-box{min-height:16px;min-width:100%;margin-top:3px;line-height:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-family:var(--ez-text-input--font-family);font-size:var(--ez-text-input__message_box--font-size);color:var(--ez-text-input__message_box--info--color)}.hasError{color:var(--ez-text-input__message_box--error--color)}.input__label{box-sizing:border-box;position:absolute;z-index:var(--visible);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;-webkit-transition:font-size .05s, top .05s;transition:font-size .05s, top .05s;width:calc(100% - var(--ez-text-input__label--padding-right));left:var(--ez-text-input--space--medium);font-family:var(--ez-text-input--font-family);font-size:var(--ez-text-input--font-size);font-weight:var(--ez-text-input--font-weight);color:var(--ez-text-input--color);top:var(--ez-text-input__label--padding-top);left:var(--ez-text-input__label--padding-left);padding-right:var(--ez-text-input__label--padding-right)}.input__label--floated{font-family:var(--ez-text-input--font-family);font-size:var(--text--extra-small);color:var(--text--primary);top:var(--ez-text-input__label--floating--top)}.input__label--disabled{color:var(--ez-text-input__input--disabled--color)}.input__label--left{text-align:left;left:calc(var(--ez-text-input__icon--width) + 2px);width:calc(100% - var(--ez-text-input__icon--width))}.input__label--right{right:var(--ez-text-input__icon--width);width:calc(100% - var(--ez-text-input__icon--width))}.input__label--left.input__label--right{left:calc(var(--ez-text-input__icon--width) + 2px);width:calc(100% - var(--ez-text-input__icon--width) * 2)}.input--with--label{padding-bottom:0}.input--slim{padding-top:var(--space--small, 3px);padding-bottom:var(--space--small, 3px);height:var(--ez-text-input--height--slim)}.input__slim--title{font-size:16px;font-weight:bold}.input--slim::-webkit-input-placeholder{font-family:var(--ez-text-input--font-family);font-size:var(--ez-text-input--font-size);font-weight:var(--ez-text-input--font-weight);color:var(--ez-text-input--color)}.input--slim:-moz-placeholder{font-family:var(--ez-text-input--font-family);font-size:var(--ez-text-input--font-size);font-weight:var(--ez-text-input--font-weight);color:var(--ez-text-input--color)}.input--slim::-moz-placeholder{font-family:var(--ez-text-input--font-family);font-size:var(--ez-text-input--font-size);font-weight:var(--ez-text-input--font-weight);color:var(--ez-text-input--color)}.input--slim:-ms-input-placeholder{font-family:var(--ez-text-input--font-family);font-size:var(--ez-text-input--font-size);font-weight:var(--ez-text-input--font-weight);color:var(--ez-text-input--color)}.input--slim::placeholder{font-family:var(--ez-text-input--font-family);font-size:var(--ez-text-input--font-size);font-weight:var(--ez-text-input--font-weight);color:var(--ez-text-input--color)}.input--slim:disabled::-webkit-input-placeholder{color:var(--ez-text-input__input--disabled--color)}.input--slim:disabled:-moz-placeholder{color:var(--ez-text-input__input--disabled--color)}.input--slim:disabled::-moz-placeholder{color:var(--ez-text-input__input--disabled--color)}.input--slim:disabled:-ms-input-placeholder{color:var(--ez-text-input__input--disabled--color)}.input--slim:disabled::placeholder{color:var(--ez-text-input__input--disabled--color)}input.input__slim--noborder{box-shadow:0 0 0 0;border:0 none;outline:0;background:var(--ez-text-input__input--noborder-color)}";
8
+ const ezTextInputCss = ":host{--ez-text-input--height:42px;--ez-text-input--width:100%;--ez-text-input__icon--width:30px;--ez-text-input--height--slim:32px;--ez-text-input__min-width:0px;--ez-text-input__max-width:100%;--ez-text-input--border-radius:var(--border--radius-medium, 12px);--ez-text-input--border-top-left-radius:var(--ez-text-input--border-radius);--ez-text-input--border-bottom-left-radius:var(--ez-text-input--border-radius);--ez-text-input--border-top-right-radius:var(--ez-text-input--border-radius);--ez-text-input--border-bottom-right-radius:var(--ez-text-input--border-radius);--ez-text-input--font-size:var(--text--medium, 14px);--ez-text-input--font-family:var(--font-pattern, Arial);--ez-text-input--font-weight:var(--text-weight--medium, 400);--ez-text-input--color:var(--title--primary, #2B3A54);--ez-text-input__margin-bottom:var(--space--small);--ez-text-input__input--background-color:var(--background--light, #ffffff);--ez-text-input__input--border:var(--border--small, 1px solid);--ez-text-input__input--border-color:var(--color--strokes,#DCE0E8);--ez-text-input__input--focus--border-color:var(--color--primary, #008561);--ez-text-input__input--disabled--background-color:var(--background--medium, #F0F3F7);--ez-text-input__input--disabled--color:var(--text--primary, #626E82);--ez-text-input__input--error--border-color:var(--color-alert--error-800,#BD0025);--ez-text-input__input--noborder-color:white;--ez-text-input__input--padding:var(--space--medium, 6px);--ez-text-input__placeholder--color:var(--text--secondary, #a2abb9);--ez-text-input__tooltip_icon--error--color:var(--color-alert--error-800,#BD0025);--ez-text-input__label--floating--top:6px;--ez-text-input__label--padding-top:12px;--ez-text-input__label--padding-left:14px;--ez-text-input__label--padding-right:12px;--ez-text-input__input--focus--icon-color:var(--title--primary, #2B3A54);--ez-text-input__input--disabled--focus--icon-color:var(--text--primary, #626E82);--ez-text-input__tooltip-icon--spacing:var(--space--large);--ez-text-input__tooltip-icon---width:var(--space--large);--ez-text-input__tooltip-icon---horizontal-margin:var(--space--medium, 12px);--ez-text-input__tooltip-icon---vertical-margin:10px;display:flex;flex-wrap:wrap;position:relative;width:var(--ez-text-input--width);min-width:var(--ez-text-input__min-width);max-width:var(--ez-text-input__max-width)}:host(.grid_editor){--ez-text-input--height--slim:25px}input{width:100%;box-sizing:border-box;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;height:var(--ez-text-input--height);border-top-left-radius:var(--ez-text-input--border-top-left-radius);border-bottom-left-radius:var(--ez-text-input--border-bottom-left-radius);border-top-right-radius:var(--ez-text-input--border-top-right-radius);border-bottom-right-radius:var(--ez-text-input--border-bottom-right-radius);font-family:var(--ez-text-input--font-family);font-size:var(--ez-text-input--font-size);border:var(--ez-text-input__input--border);border-color:var(--ez-text-input__input--border-color);background-color:var(--ez-text-input__input--background-color);color:var(--ez-text-input--color);font-weight:var(--ez-text-input--font-weight);padding:var(--ez-text-input__input--padding);margin-bottom:var(--ez-text-input__margin-bottom)}input.no--margin{--ez-text-input__margin-bottom:0}input:disabled{background-color:var(--ez-text-input__input--disabled--background-color);color:var(--ez-text-input__input--disabled--color);cursor:not-allowed}input:focus{outline:none;border:var(--border--medium, 2px solid);border-color:var(--ez-text-input__input--focus--border-color)}input.icon--left{padding-left:var(--ez-text-input__icon--width)}input.icon--left.hasError{padding-right:var(--ez-text-input__icon--width)}input.icon--right{padding-right:var(--ez-text-input__icon--width)}input.icon--right.hasError{padding-right:calc(var(--ez-text-input__icon--width) + var(--ez-text-input__tooltip-icon--spacing))}input.hasError{color:var(--ez-text-input--color);border:var(--border--medium, 2px solid);border-color:var(--ez-text-input__input--error--border-color);padding-right:calc(var(--ez-text-input__tooltip-icon---width) + (2*var(--ez-text-input__tooltip-icon---horizontal-margin)))}input:disabled.hasError{color:var(--ez-text-input__input--disabled--color)}input.text--right{text-align:right}input:disabled,input:read-only{cursor:not-allowed}.hasError{color:var(--ez-text-input__tooltip_icon--error--color)}.input__label{box-sizing:border-box;position:absolute;z-index:var(--visible);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;-webkit-transition:font-size .05s, top .05s;transition:font-size .05s, top .05s;width:calc(100% - var(--ez-text-input__label--padding-right));left:var(--ez-text-input--space--medium);font-family:var(--ez-text-input--font-family);font-size:var(--ez-text-input--font-size);font-weight:var(--ez-text-input--font-weight);color:var(--ez-text-input--color);top:var(--ez-text-input__label--padding-top);left:var(--ez-text-input__label--padding-left);padding-right:var(--ez-text-input__label--padding-right)}.input__label.hasError{width:calc(100% - 2*(var(--ez-text-input__tooltip-icon--spacing)))}.input__label--floated{font-family:var(--ez-text-input--font-family);font-size:var(--text--extra-small);color:var(--text--primary);top:var(--ez-text-input__label--floating--top)}.input__label--disabled{color:var(--ez-text-input__input--disabled--color);cursor:not-allowed}.input__label--left{text-align:left;left:calc(var(--ez-text-input__icon--width) + 2px);width:calc(100% - var(--ez-text-input__icon--width))}.input__label--left.hasError{width:calc(100% - var(--ez-text-input__icon--width) - var(--ez-text-input__tooltip-icon--spacing))}.input__label--right{right:var(--ez-text-input__icon--width);width:calc(100% - var(--ez-text-input__icon--width))}.input__label--right.hasError{width:calc(100% - var(--ez-text-input__icon--width) - var(--ez-text-input__tooltip-icon--spacing))}.input__label--left.input__label--right{left:calc(var(--ez-text-input__icon--width) + 2px);width:calc(100% - var(--ez-text-input__icon--width) * 2)}.input--with--label{padding-bottom:0}.input--slim{padding-top:var(--space--small, 3px);padding-bottom:var(--space--small, 3px);height:var(--ez-text-input--height--slim)}.input__slim--title{font-size:16px;font-weight:bold}.input--slim::-webkit-input-placeholder,.input--slim:-moz-placeholder,.input--slim::-moz-placeholder,.input--slim:-ms-input-placeholder,.input--slim::placeholder{font-family:var(--ez-text-input--font-family);font-size:var(--ez-text-input--font-size);font-weight:var(--ez-text-input--font-weight);color:var(--ez-text-input__placeholder--color)}.input--slim:disabled::-webkit-input-placeholder,.input--slim:disabled:-moz-placeholder,.input--slim:disabled::-moz-placeholder,.input--slim:disabled:-ms-input-placeholder,.input--slim:disabled::placeholder{color:var(--ez-text-input__input--disabled--color)}input.input__slim--noborder{box-shadow:0 0 0 0;border:0 none;outline:0;background:var(--ez-text-input__input--noborder-color)}ez-icon.tooltip-icon{position:absolute;display:flex;align-items:center;justify-content:center;overflow:hidden;width:var(--ez-text-input__tooltip-icon---width);height:22px;margin:var(--ez-text-input__tooltip-icon---vertical-margin) var(--ez-text-input__tooltip-icon---horizontal-margin);top:0;right:0;z-index:var(--elevation--4);border-radius:var(--ez-text-input--border-radius)}ez-icon.tooltip-icon.rightIconSlot{right:var(--ez-text-input__tooltip-icon--spacing)}ez-icon.tooltip-icon.hasError{--ez-icon--color:var(--ez-text-input__tooltip_icon--error--color)}";
9
9
 
10
10
  const EzTextInput = class {
11
11
  constructor(hostRef) {
12
12
  index.registerInstance(this, hostRef);
13
13
  this.ezChange = index.createEvent(this, "ezChange", 7);
14
+ this._isOverflowing = false;
14
15
  this.label = undefined;
16
+ this.alternativePlaceholder = undefined;
15
17
  this.value = undefined;
16
18
  this.enabled = true;
17
19
  this.errorMessage = undefined;
20
+ this.hasInvalid = false;
18
21
  this.mask = undefined;
22
+ this.cleanValueMask = false;
19
23
  this.canShowError = true;
20
24
  this.restrict = undefined;
21
25
  this.mode = "regular";
22
26
  this.noBorder = false;
23
27
  this.password = false;
28
+ this.autoFocus = false;
29
+ this.hasRightSlotContent = false;
30
+ this.forceLabelFloat = false;
24
31
  }
25
- observeErrorMessage() {
26
- if (this._inputElem) {
27
- this.isInvalid().then((hasError) => {
28
- var _a, _b;
29
- if (hasError) {
30
- this._inputElem.classList.add("hasError");
31
- (_a = this._messageBoxElem) === null || _a === void 0 ? void 0 : _a.classList.add("hasError");
32
- }
33
- else {
34
- this._inputElem.classList.remove("hasError");
35
- (_b = this._messageBoxElem) === null || _b === void 0 ? void 0 : _b.classList.remove("hasError");
36
- }
37
- });
32
+ observeHasInvalid(newValue, oldValue) {
33
+ if (newValue === oldValue) {
34
+ return;
38
35
  }
36
+ this.validateErrors();
39
37
  }
40
38
  observeMask() {
41
39
  if (this.mask) {
@@ -53,6 +51,7 @@ const EzTextInput = class {
53
51
  this._inputElem.value = this.value || "";
54
52
  this.handleChange();
55
53
  this.adjustFloatingLabel();
54
+ this.checkIsOverflowing();
56
55
  if (!this.isSlaveMode()) {
57
56
  this.errorMessage = "";
58
57
  this.ezChange.emit(this.value);
@@ -60,14 +59,38 @@ const EzTextInput = class {
60
59
  }
61
60
  }
62
61
  }
62
+ observeAlternativePlaceholder(newValue) {
63
+ this.forceLabelFloat = !!newValue;
64
+ }
63
65
  //---------------------------------------------
64
66
  // Private methods
65
67
  //---------------------------------------------
68
+ validateErrors() {
69
+ const hasErrorMessage = this.handleValidateErrorMessage(this.errorMessage);
70
+ const hasError = this.canShowError && (hasErrorMessage || this.hasInvalid);
71
+ this.updateClassError(hasError);
72
+ }
73
+ handleValidateErrorMessage(message = this.errorMessage) {
74
+ return typeof message === "string" && message.trim() !== "";
75
+ }
76
+ updateClassError(status) {
77
+ if (!this._inputElem) {
78
+ return;
79
+ }
80
+ if (status) {
81
+ this._inputElem.classList.add("hasError");
82
+ }
83
+ else {
84
+ this._inputElem.classList.remove("hasError");
85
+ }
86
+ }
66
87
  adjustFloatingLabel() {
67
88
  if (this.label && this._labelElem) {
68
89
  if (this._inputElem && !this._inputElem.classList.contains("input--with--label")) {
69
90
  this._inputElem.classList.add("input--with--label");
70
91
  }
92
+ if (this.forceLabelFloat)
93
+ return;
71
94
  const hasValue = this.value && this.value.toString().length > 0;
72
95
  const containsFloatedClass = this._labelElem.classList.contains("input__label--floated");
73
96
  if (hasValue || this.isFocused()) {
@@ -121,7 +144,7 @@ const EzTextInput = class {
121
144
  * Retorna se o conteúdo é inválido.
122
145
  */
123
146
  async isInvalid() {
124
- return typeof this.errorMessage === "string" && this.errorMessage.trim() !== "";
147
+ return this.handleValidateErrorMessage();
125
148
  }
126
149
  //---------------------------------------------
127
150
  // Event handlers
@@ -130,7 +153,12 @@ const EzTextInput = class {
130
153
  const value = this._inputElem.value;
131
154
  if (value && this._maskFormatter) {
132
155
  try {
133
- this._inputElem.value = this._maskFormatter.format(value);
156
+ if (this.cleanValueMask) {
157
+ this.applyMask(value);
158
+ }
159
+ else {
160
+ this._inputElem.value = this._maskFormatter.format(value);
161
+ }
134
162
  }
135
163
  catch (e) {
136
164
  this.errorMessage = e.message;
@@ -148,8 +176,34 @@ const EzTextInput = class {
148
176
  }
149
177
  controlChangeValue() {
150
178
  if (this._inputElem && (this.value || '') !== this._inputElem.value) {
151
- this.value = this._inputElem.value;
179
+ if (this.cleanValueMask) {
180
+ this.value = this._maskFormatter.removeMask(this._inputElem.value);
181
+ }
182
+ else {
183
+ this.value = this._inputElem.value;
184
+ }
185
+ }
186
+ }
187
+ applyMask(value) {
188
+ if (!value || value === "")
189
+ return value;
190
+ if (this._maskFormatter) {
191
+ try {
192
+ const formattedValue = this._maskFormatter.applyMask(this._maskFormatter.removeMask(value));
193
+ if (this._inputElem) {
194
+ this._inputElem.value = formattedValue;
195
+ return this._inputElem.value;
196
+ }
197
+ else {
198
+ this.value = formattedValue;
199
+ return this.value;
200
+ }
201
+ }
202
+ catch (e) {
203
+ this.errorMessage = e.message;
204
+ }
152
205
  }
206
+ return value;
153
207
  }
154
208
  handleChange() {
155
209
  if (!this._inputElem) {
@@ -165,8 +219,10 @@ const EzTextInput = class {
165
219
  this.controlChangeValue();
166
220
  }
167
221
  handleSlotChange(ev) {
222
+ var _a;
168
223
  const slot = ev.target;
169
224
  const content = slot.assignedElements()[0];
225
+ this.hasRightSlotContent = false;
170
226
  if (content) {
171
227
  content.style.position = "absolute";
172
228
  content.style.display = "flex";
@@ -192,10 +248,14 @@ const EzTextInput = class {
192
248
  if (this._labelElem) {
193
249
  this._labelElem.classList.add("input__label--right");
194
250
  }
251
+ if (this._tooltipIconElem) {
252
+ this._tooltipIconElem.classList.add("rightIconSlot");
253
+ }
254
+ this.hasRightSlotContent = ((_a = content.children) === null || _a === void 0 ? void 0 : _a.length) > 0;
195
255
  }
196
256
  slot.name && core.ElementIDUtils.addIDInfo(content, slot.name);
197
257
  }
198
- this.observeErrorMessage();
258
+ this.validateErrors();
199
259
  }
200
260
  doFocus() {
201
261
  if (this.label && this._labelElem && !this._labelElem.classList.contains("input__label--floated")) {
@@ -203,21 +263,43 @@ const EzTextInput = class {
203
263
  }
204
264
  this.adjustColorContentSlot("var(--ez-text-input__input--focus--icon-color)");
205
265
  }
266
+ getValue() {
267
+ return this.mask && this.cleanValueMask ? this.applyMask(this.value) : this.value;
268
+ }
269
+ buildLabelClass() {
270
+ let classList = this.enabled ? 'input__label' : 'input__label input__label--disabled';
271
+ if (this.errorMessage)
272
+ classList = classList + ' hasError';
273
+ if (this.forceLabelFloat)
274
+ classList = classList + ' input__label--floated';
275
+ return classList;
276
+ }
277
+ buildPlaceholder() {
278
+ if (this.alternativePlaceholder)
279
+ return this.alternativePlaceholder;
280
+ return (this.mode === "slim" && this.label) ? this.label : '';
281
+ }
282
+ checkIsOverflowing() {
283
+ if (this._inputElem) {
284
+ this._isOverflowing = this._inputElem.offsetWidth < this._inputElem.scrollWidth;
285
+ return;
286
+ }
287
+ this._isOverflowing = false;
288
+ }
206
289
  //---------------------------------------------
207
290
  // Lifecycle web component
208
291
  //---------------------------------------------
209
- componentDidLoad() {
210
- this.observeErrorMessage();
211
- this.observeMask();
212
- this.adjustFloatingLabel();
213
- this.adjustBorderInput();
214
- }
215
292
  componentWillLoad() {
216
293
  this.observeMask();
217
294
  if (this.value) {
218
295
  if (this._maskFormatter) {
219
296
  try {
220
- this.value = this._maskFormatter.format(this.value);
297
+ if (this.cleanValueMask) {
298
+ this.applyMask(this.value);
299
+ }
300
+ else {
301
+ this.value = this._maskFormatter.format(this.value);
302
+ }
221
303
  }
222
304
  catch (e) {
223
305
  this.errorMessage = e.message;
@@ -229,18 +311,41 @@ const EzTextInput = class {
229
311
  }
230
312
  }
231
313
  }
314
+ componentDidLoad() {
315
+ var _a;
316
+ this.validateErrors();
317
+ this.observeMask();
318
+ this.adjustFloatingLabel();
319
+ this.adjustBorderInput();
320
+ this.checkIsOverflowing();
321
+ if (this.autoFocus) {
322
+ requestAnimationFrame(() => {
323
+ this.setFocus({ selectText: true });
324
+ });
325
+ }
326
+ (_a = this._inputElem) === null || _a === void 0 ? void 0 : _a.addEventListener('focus', () => {
327
+ var _a;
328
+ this._inputElem.setSelectionRange(0, (_a = this._inputElem) === null || _a === void 0 ? void 0 : _a.value.length);
329
+ });
330
+ }
331
+ componentDidRender() {
332
+ this.adjustFloatingLabel();
333
+ }
232
334
  render() {
233
335
  core.ElementIDUtils.addIDInfoIfNotExists(this._hostElement, 'input');
234
336
  return (index.h(index.Host, { style: this._hostElement.classList.contains("grid_editor") ? { "height": "100%" } : null }, index.h("slot", { name: "leftIcon", onSlotchange: (ev) => { this.handleSlotChange(ev); } }), this.label && this.mode != "slim" ?
235
- index.h("label", { ref: (el) => this._labelElem = el, class: this.enabled ? "input__label" : "input__label input__label--disabled", onClick: () => this._inputElem.focus(), title: this.label }, this.label)
236
- : null, index.h("input", { "data-element-id": core.ElementIDUtils.getInternalIDInfo("input"), onFocus: () => this.doFocus(), ref: (el) => this._inputElem = el, type: this.password ? "password" : "text", class: this.mode === "slim" ? "input--slim" : "", placeholder: this.mode === "slim" && this.label ? this.label : "", value: this.value, disabled: !this.enabled, onInput: () => { this.handleChange(); }, onFocusout: () => { this.handleFocusout(); } }), index.h("slot", { name: "rightIcon", onSlotchange: (ev) => { this.handleSlotChange(ev); } }), this.canShowError && this.mode != "slim" &&
237
- index.h("span", { class: "message-box", ref: (el) => this._messageBoxElem = el, title: this.errorMessage, "data-element-id": core.ElementIDUtils.getInternalIDInfo("message_box") }, this.errorMessage)));
337
+ index.h("label", { ref: (el) => this._labelElem = el, class: this.buildLabelClass(), onClick: () => this._inputElem.focus(), title: this.label }, this.label)
338
+ : null, index.h("input", { "data-element-id": core.ElementIDUtils.getInternalIDInfo("input"), onFocus: () => this.doFocus(), ref: (el) => this._inputElem = el, type: this.password ? "password" : "text", class: `${this.mode === "slim" ? "input--slim" : ""}`, placeholder: this.buildPlaceholder(), value: this.getValue(), disabled: !this.enabled, onInput: () => { this.handleChange(); }, onFocusout: () => { this.handleFocusout(); } }), index.h("ez-tooltip", { anchoringElement: this._hostElement, message: this.getValue(), active: this._isOverflowing, useAnchorSize: true }), this.canShowError && this.mode != "slim" && this.errorMessage &&
339
+ index.h("ez-tooltip", { type: "error", message: this.errorMessage }, index.h("ez-icon", { class: `tooltip-icon ${this.errorMessage ? "hasError" : ""} ${this.hasRightSlotContent ? "rightIconSlot" : ""}`, "data-element-id": core.ElementIDUtils.getInternalIDInfo("tooltip-icon"), ref: (el) => this._tooltipIconElem = el, iconName: "alert-circle" })), index.h("slot", { name: "rightIcon", onSlotchange: (ev) => { this.handleSlotChange(ev); } }, " ")));
238
340
  }
239
341
  get _hostElement() { return index.getElement(this); }
240
342
  static get watchers() { return {
241
- "errorMessage": ["observeErrorMessage"],
343
+ "hasInvalid": ["observeHasInvalid"],
344
+ "errorMessage": ["observeHasInvalid"],
345
+ "canShowError": ["observeHasInvalid"],
242
346
  "mask": ["observeMask"],
243
- "value": ["observeValue"]
347
+ "value": ["observeValue"],
348
+ "alternativePlaceholder": ["observeAlternativePlaceholder"]
244
349
  }; }
245
350
  };
246
351
  EzTextInput.style = ezTextInputCss;
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-9e5554cb.js');
6
6
  const core = require('@sankhyalabs/core');
7
- const CSSVarsUtils = require('./CSSVarsUtils-10c9d5b4.js');
7
+ const CSSVarsUtils = require('./CSSVarsUtils-f20973d1.js');
8
8
 
9
9
  const ezTimeInputCss = ":host{display:flex;flex-wrap:wrap;position:relative;width:100%}.time__input{height:100%}";
10
10
 
@@ -21,6 +21,8 @@ const EzTimeInput = class {
21
21
  this.showSeconds = false;
22
22
  this.mode = "regular";
23
23
  this.canShowError = true;
24
+ this.autoFocus = false;
25
+ this.alternativePlaceholder = undefined;
24
26
  }
25
27
  observeErrorMessage() {
26
28
  var _a;
@@ -141,6 +143,11 @@ const EzTimeInput = class {
141
143
  //---------------------------------------------
142
144
  componentDidLoad() {
143
145
  CSSVarsUtils.CSSVarsUtils.applyVarsTextInput(this._elem, this._textInput);
146
+ if (this.autoFocus) {
147
+ requestAnimationFrame(() => {
148
+ this.setFocus({ selectText: true });
149
+ });
150
+ }
144
151
  }
145
152
  componentWillLoad() {
146
153
  this.observeShowSeconds();
@@ -153,7 +160,7 @@ const EzTimeInput = class {
153
160
  }
154
161
  render() {
155
162
  core.ElementIDUtils.addIDInfoIfNotExists(this._elem, 'input');
156
- return (index.h(index.Host, null, index.h("ez-text-input", { class: "time__input", "data-element-id": core.ElementIDUtils.getInternalIDInfo("textInput"), ref: (el) => this._textInput = el, "data-slave-mode": "true", value: this._viewValue, enabled: this.enabled, label: this.label, restrict: "0123456789:", onBlur: () => this.handleBlur(), onInput: () => this.handleInput(), errorMessage: this.errorMessage, mode: this.mode, canShowError: this.canShowError }, index.h("ez-icon", { slot: "leftIcon", iconName: "timer-outline" }))));
163
+ return (index.h(index.Host, null, index.h("ez-text-input", { class: "time__input", "data-element-id": core.ElementIDUtils.getInternalIDInfo("textInput"), ref: (el) => this._textInput = el, "data-slave-mode": "true", value: this._viewValue, enabled: this.enabled, label: this.label, restrict: "0123456789:", onBlur: () => this.handleBlur(), onInput: () => this.handleInput(), errorMessage: this.errorMessage, mode: this.mode, canShowError: this.canShowError, alternativePlaceholder: this.alternativePlaceholder }, index.h("ez-icon", { slot: "leftIcon", iconName: "timer-outline" }))));
157
164
  }
158
165
  static get assetsDirs() { return ["../assets"]; }
159
166
  get _elem() { return index.getElement(this); }
@@ -0,0 +1,135 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ const index = require('./index-9e5554cb.js');
6
+ const floatingUi_dom_esm = require('./floating-ui.dom.esm-017acce4.js');
7
+ const core = require('@sankhyalabs/core');
8
+
9
+ const ezTooltipCss = ":host{--triangle-size:8px}.tooltip{position:absolute;z-index:var(--elevation--24);padding:var(--space--extra-small, 3px) var(--space--small, 6px);border-radius:var(--border--radius-small);box-sizing:border-box;font-family:var(--font-pattern\t, 'Roboto', sans-serif);font-size:var(--text--small, 12px);font-weight:var(--text-weight--medium, 400);text-align:center;width:max-content;display:none}.arrow{position:absolute;width:var(--triangle-size);height:var(--triangle-size);transform:rotate(45deg)}.default-tooltip{background:var(--title--primary, #2b3a54);color:var(--color--inverted)}.default-tooltip .arrow{background:var(--title--primary, #2b3a54)}.error-tooltip{background:var(--color-alert--error-800, #BD0025);color:var(--color--error-200, #F7E0E5)}.error-tooltip .arrow{background:var(--color-alert--error-800, #BD0025)}.success-tooltip{background:var(--color--success, #00cb94);color:var(--color--success-200, #EBFFFA)}.success-tooltip .arrow{background:var(--color--success, #00cb94)}.warning-tooltip{background:var(--color--warning, #f2d410);color:var(--color--warning-200, #FDF8D8)}.warning-tooltip .arrow{background:var(--color--warning, #f2d410)}";
10
+
11
+ const EzTooltip = class {
12
+ constructor(hostRef) {
13
+ index.registerInstance(this, hostRef);
14
+ this._opened = false;
15
+ this.message = undefined;
16
+ this.anchoringElement = undefined;
17
+ this.placement = 'bottom';
18
+ this.gapOptions = { horizontalGap: 0, verticalGap: 0 };
19
+ this.type = 'default';
20
+ this.debouncingTime = 500;
21
+ this.active = true;
22
+ this.maxWidth = 200;
23
+ this.useAnchorSize = false;
24
+ }
25
+ watchAnchoringElement(newValue, oldValue) {
26
+ if (newValue) {
27
+ this.setEvents(newValue);
28
+ this.removeEvents(oldValue);
29
+ }
30
+ }
31
+ watchMessage(newValue) {
32
+ if (!newValue) {
33
+ this.closeTooltip();
34
+ return;
35
+ }
36
+ this.updatePosition();
37
+ }
38
+ openTooltip() {
39
+ if (this.message && this.active) {
40
+ if (this._debouncingTimeout) {
41
+ clearTimeout(this._debouncingTimeout);
42
+ }
43
+ this._debouncingTimeout = setTimeout(() => {
44
+ this._opened = true;
45
+ this._tooltipElement.style.display = 'block';
46
+ this.updatePosition();
47
+ }, this.debouncingTime);
48
+ }
49
+ }
50
+ closeTooltip() {
51
+ clearTimeout(this._debouncingTimeout);
52
+ this._tooltipElement.style.display = 'none';
53
+ this._opened = false;
54
+ }
55
+ async updatePosition(element = this.anchoringElement) {
56
+ if (!element || !this._opened) {
57
+ return;
58
+ }
59
+ if (this.useAnchorSize) {
60
+ const anchorSize = element.getBoundingClientRect().width;
61
+ this._tooltipElement.style.width = `${anchorSize}px`;
62
+ }
63
+ await floatingUi_dom_esm.computePosition(element, this._tooltipElement, {
64
+ placement: this.placement,
65
+ middleware: [
66
+ floatingUi_dom_esm.offset(5),
67
+ floatingUi_dom_esm.flip(),
68
+ floatingUi_dom_esm.shift(),
69
+ floatingUi_dom_esm.arrow({ element: this._arrowElement })
70
+ ],
71
+ }).then(({ x, y, placement, middlewareData }) => {
72
+ const newTop = placement.includes("bottom") ? y + this.gapOptions.verticalGap : y - this.gapOptions.verticalGap;
73
+ const newLeft = placement.includes("start") ? x + this.gapOptions.horizontalGap : x - this.gapOptions.horizontalGap;
74
+ Object.assign(this._tooltipElement.style, {
75
+ top: `${newTop}px`,
76
+ left: `${newLeft}px`,
77
+ });
78
+ if (middlewareData.arrow) {
79
+ const { x } = middlewareData.arrow;
80
+ const onBottom = placement.includes("bottom");
81
+ Object.assign(this._arrowElement.style, {
82
+ left: `${x}px`,
83
+ top: onBottom ? `${-this._arrowElement.offsetHeight / 2}px` : '',
84
+ bottom: !onBottom ? `${-this._arrowElement.offsetHeight / 2}px` : '',
85
+ });
86
+ }
87
+ });
88
+ }
89
+ handleSlotChange(ev) {
90
+ const slot = ev.target;
91
+ const content = slot.assignedElements()[0];
92
+ this.anchoringElement = content;
93
+ }
94
+ setEvents(element = this.anchoringElement) {
95
+ if (!element) {
96
+ return;
97
+ }
98
+ element.addEventListener('mouseenter', () => {
99
+ this.openTooltip();
100
+ });
101
+ element.addEventListener('mouseleave', () => {
102
+ this.closeTooltip();
103
+ });
104
+ }
105
+ removeEvents(element = this.anchoringElement) {
106
+ if (!element) {
107
+ return;
108
+ }
109
+ element.removeEventListener('mouseenter', () => {
110
+ this.openTooltip();
111
+ });
112
+ element.removeEventListener('mouseleave', () => {
113
+ this.closeTooltip();
114
+ });
115
+ }
116
+ componentDidLoad() {
117
+ this.setEvents();
118
+ }
119
+ render() {
120
+ return (index.h(index.Fragment, null, index.h("div", Object.assign({ ref: ref => this._tooltipElement = ref }, { inert: true }, { class: {
121
+ "tooltip": true,
122
+ [`${this.type}-tooltip`]: true,
123
+ }, style: {
124
+ maxWidth: (this.maxWidth && !this.useAnchorSize) ? `${this.maxWidth}px` : undefined,
125
+ }, role: "tooltip", "data-element-id": core.ElementIDUtils.getInternalIDInfo("tooltip") }), this.message, index.h("div", { ref: ref => this._arrowElement = ref, class: "arrow" })), index.h("slot", { onSlotchange: (ev) => { this.handleSlotChange(ev); } })));
126
+ }
127
+ get _element() { return index.getElement(this); }
128
+ static get watchers() { return {
129
+ "anchoringElement": ["watchAnchoringElement"],
130
+ "message": ["watchMessage"]
131
+ }; }
132
+ };
133
+ EzTooltip.style = ezTooltipCss;
134
+
135
+ exports.ez_tooltip = EzTooltip;
@@ -19,7 +19,7 @@ const defaultTooltipResolver = (item, _enabled, _level) => {
19
19
  };
20
20
 
21
21
  const TreeItem = (props) => {
22
- const { node, selectedId, itemClick, iconClick, iconResolver, tooltipResolver, itemsList } = props;
22
+ const { node, selectedId, itemClick, iconClick, iconResolver, tooltipResolver, itemsList, itemDoubleClick } = props;
23
23
  if (!node.visible) {
24
24
  return;
25
25
  }
@@ -33,7 +33,7 @@ const TreeItem = (props) => {
33
33
  itemsList.push(treeItem);
34
34
  }
35
35
  return (index.h("ul", { class: level === 1 ? "first-level" : undefined },
36
- index.h("li", Object.assign({ title: tooltipResolver(treeItem, !disabled, level), class: `tree-item ${treeItem.id !== selectedId ? "tree-item-error" : ""}`, onClick: () => available && itemClick(treeItem) }, {
36
+ index.h("li", Object.assign({ title: tooltipResolver(treeItem, !disabled, level), class: `tree-item ${treeItem.id !== selectedId ? "tree-item-error" : ""}`, onClick: () => available && itemClick(treeItem), onDblClick: () => available && itemDoubleClick(treeItem) }, {
37
37
  disabled,
38
38
  selected: treeItem.id === selectedId,
39
39
  [core.ElementIDUtils.DATA_ELEMENT_ID_ATTRIBUTE_NAME]: core.ElementIDUtils.getInternalIDInfo(`ezTreeItem_${treeItem.id}`)
@@ -44,7 +44,7 @@ const TreeItem = (props) => {
44
44
  index.h("label", { class: `item-label ${treeItem.bold ? "item-label--bold" : ""}` }, treeItem.label)),
45
45
  getBadgeElement(treeItem.id, treeItem.badge, treeItem.id === selectedId)),
46
46
  expanded
47
- && node.getChildren().map(child => index.h(TreeItem, { selectedId: selectedId, node: child, itemClick: itemClick, iconClick: iconClick, level: level + 1, iconResolver: iconResolver, tooltipResolver: tooltipResolver, itemsList: itemsList }))));
47
+ && node.getChildren().map(child => index.h(TreeItem, { selectedId: selectedId, node: child, itemClick: itemClick, iconClick: iconClick, level: level + 1, iconResolver: iconResolver, tooltipResolver: tooltipResolver, itemsList: itemsList, itemDoubleClick: itemDoubleClick }))));
48
48
  };
49
49
  function getBadgeElement(itemId, badge, isSelectedItem) {
50
50
  if (badge == undefined) {
@@ -310,6 +310,7 @@ const EzTree = class {
310
310
  index.registerInstance(this, hostRef);
311
311
  this.ezChange = index.createEvent(this, "ezChange", 7);
312
312
  this.ezOpenItem = index.createEvent(this, "ezOpenItem", 7);
313
+ this.ezDbClickItem = index.createEvent(this, "ezDbClickItem", 7);
313
314
  this._onItemClick = (item) => {
314
315
  this.value = item;
315
316
  };
@@ -579,7 +580,7 @@ const EzTree = class {
579
580
  :
580
581
  this._tree.getChildren().map(node => {
581
582
  var _a;
582
- return index.h(TreeItem, { selectedId: (_a = this.value) === null || _a === void 0 ? void 0 : _a.id, node: node, itemClick: this._onItemClick, iconClick: this._onIconClick, iconResolver: this.iconResolver, tooltipResolver: this.tooltipResolver || defaultTooltipResolver, itemsList: this._visibleItems });
583
+ return index.h(TreeItem, { selectedId: (_a = this.value) === null || _a === void 0 ? void 0 : _a.id, node: node, itemClick: this._onItemClick, iconClick: this._onIconClick, iconResolver: this.iconResolver, tooltipResolver: this.tooltipResolver || defaultTooltipResolver, itemsList: this._visibleItems, itemDoubleClick: (item) => this.ezDbClickItem.emit(item) });
583
584
  })));
584
585
  }
585
586
  get _element() { return index.getElement(this); }
@@ -0,0 +1,90 @@
1
+ 'use strict';
2
+
3
+ /**
4
+ * O dragElement é posicionado ANTERIORMENTE ao targetIndex.
5
+ * Ex: no array: ["A", "B", "C", "D", "E"]
6
+ * se o dragItem for "B" e o targetIndex 3 (referente à "D"),
7
+ * "B" será posicionado logo antes de "D".
8
+ * O resultado será: ["A", "C", "B", "D", "E"]
9
+ *
10
+ * @param configs
11
+ */
12
+ function processListOnDrop(configs) {
13
+ let newList;
14
+ if (hasToMoveMultipleItems(configs)) {
15
+ newList = processMoveMultipleItems(configs);
16
+ }
17
+ else {
18
+ newList = processMoveSingleItem(configs);
19
+ configs.clearSelection();
20
+ }
21
+ return newList;
22
+ }
23
+ function hasToMoveMultipleItems(configs) {
24
+ const { enableMultipleSelection, listItems, dragItem, moveToFinal, targetIndex } = configs;
25
+ if (!enableMultipleSelection)
26
+ return false;
27
+ const selectedItemsIndexes = getSelectedIndices(listItems);
28
+ if (selectedItemsIndexes.length <= 1)
29
+ return false;
30
+ if (!selectedItemsIndexes.includes(dragItem.index))
31
+ return false;
32
+ if (!isContinuousSequence(selectedItemsIndexes))
33
+ return false;
34
+ if (moveToFinal)
35
+ return true;
36
+ return !selectedItemsIndexes.includes(targetIndex);
37
+ }
38
+ function processMoveSingleItem(configs) {
39
+ const { listItems, dragItem, targetIndex, moveToFinal } = configs;
40
+ const newList = [...listItems];
41
+ newList.splice(dragItem.index, 1);
42
+ if (moveToFinal) {
43
+ newList.push(dragItem.item);
44
+ }
45
+ else {
46
+ const adjustedIndex = (targetIndex > dragItem.index) ? Math.max(0, targetIndex - 1) : targetIndex;
47
+ newList.splice(adjustedIndex, 0, dragItem.item);
48
+ }
49
+ return newList;
50
+ }
51
+ function processMoveMultipleItems(configs) {
52
+ const { listItems, moveToFinal, targetIndex } = configs;
53
+ const selectedItems = listItems.filter(item => item.selected);
54
+ const selectedItemsIndexes = getSelectedIndices(listItems);
55
+ const minorIndex = Math.min(...selectedItemsIndexes);
56
+ const majorIndex = Math.max(...selectedItemsIndexes);
57
+ const qtdToMove = selectedItems.length;
58
+ const newList = [...listItems];
59
+ newList.splice(minorIndex, qtdToMove);
60
+ if (moveToFinal) {
61
+ newList.push(...selectedItems);
62
+ }
63
+ else {
64
+ let adjustedIndex = (targetIndex > majorIndex) ? Math.max(0, targetIndex - qtdToMove) : targetIndex;
65
+ newList.splice(adjustedIndex, 0, ...selectedItems);
66
+ }
67
+ return newList;
68
+ }
69
+ function isContinuousSequence(numbers) {
70
+ if (numbers.length === 0)
71
+ return false;
72
+ const sortedNumbers = [...numbers].sort((a, b) => a - b);
73
+ for (let i = 1; i < sortedNumbers.length; i++) {
74
+ if (sortedNumbers[i] !== sortedNumbers[i - 1] + 1) {
75
+ return false;
76
+ }
77
+ }
78
+ return true;
79
+ }
80
+ function getSelectedIndices(listItems) {
81
+ return listItems.reduce((indices, item, index) => {
82
+ if (item.selected) {
83
+ indices.push(index);
84
+ }
85
+ return indices;
86
+ }, []);
87
+ }
88
+
89
+ exports.isContinuousSequence = isContinuousSequence;
90
+ exports.processListOnDrop = processListOnDrop;