@sankhyalabs/ezui 5.22.0-dev.7 → 5.22.0-dev.70

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 (357) hide show
  1. package/dist/cjs/DataBinder-b4ef826a.js +445 -0
  2. package/dist/cjs/FocusResolver-885f2173.js +35 -0
  3. package/dist/cjs/ez-actions-button.cjs.entry.js +4 -3
  4. package/dist/cjs/ez-alert-list.cjs.entry.js +1 -1
  5. package/dist/cjs/ez-alert.cjs.entry.js +1 -1
  6. package/dist/cjs/ez-application.cjs.entry.js +1 -1
  7. package/dist/cjs/ez-badge.cjs.entry.js +1 -1
  8. package/dist/cjs/ez-breadcrumb.cjs.entry.js +1 -1
  9. package/dist/cjs/ez-button.cjs.entry.js +12 -6
  10. package/dist/cjs/ez-calendar.cjs.entry.js +1 -1
  11. package/dist/cjs/ez-card-item_2.cjs.entry.js +76 -0
  12. package/dist/cjs/ez-chart.cjs.entry.js +1 -1
  13. package/dist/cjs/ez-check.cjs.entry.js +2 -2
  14. package/dist/cjs/ez-chip.cjs.entry.js +1 -1
  15. package/dist/cjs/ez-collapsible-box.cjs.entry.js +2 -2
  16. package/dist/cjs/ez-combo-box.cjs.entry.js +68 -14
  17. package/dist/cjs/ez-custom-form-input_2.cjs.entry.js +37 -7
  18. package/dist/cjs/ez-date-input.cjs.entry.js +15 -5
  19. package/dist/cjs/ez-date-time-input.cjs.entry.js +12 -5
  20. package/dist/cjs/ez-dialog.cjs.entry.js +11 -3
  21. package/dist/cjs/ez-double-list.cjs.entry.js +287 -0
  22. package/dist/cjs/{ez-dropdown.cjs.entry.js → ez-dropdown_2.cjs.entry.js} +76 -9
  23. package/dist/cjs/ez-file-item.cjs.entry.js +1 -1
  24. package/dist/cjs/ez-filter-input.cjs.entry.js +130 -0
  25. package/dist/cjs/ez-form-view.cjs.entry.js +30 -23
  26. package/dist/cjs/ez-form.cjs.entry.js +7 -326
  27. package/dist/cjs/ez-grid.cjs.entry.js +14931 -69809
  28. package/dist/cjs/ez-guide-navigator.cjs.entry.js +1 -1
  29. package/dist/cjs/ez-icon.cjs.entry.js +2 -2
  30. package/dist/cjs/ez-list.cjs.entry.js +259 -212
  31. package/dist/cjs/ez-loading-bar.cjs.entry.js +1 -1
  32. package/dist/cjs/ez-modal-container.cjs.entry.js +3 -2
  33. package/dist/cjs/ez-modal.cjs.entry.js +20 -5
  34. package/dist/cjs/ez-multi-selection-list.cjs.entry.js +3 -3
  35. package/dist/cjs/ez-number-input.cjs.entry.js +16 -3
  36. package/dist/cjs/ez-popover.cjs.entry.js +1 -1
  37. package/dist/cjs/ez-popup.cjs.entry.js +25 -3
  38. package/dist/cjs/ez-radio-button.cjs.entry.js +1 -1
  39. package/dist/cjs/ez-scroller_2.cjs.entry.js +4 -4
  40. package/dist/cjs/ez-search.cjs.entry.js +106 -46
  41. package/dist/cjs/ez-sidebar-navigator.cjs.entry.js +2 -2
  42. package/dist/cjs/ez-split-button.cjs.entry.js +3 -3
  43. package/dist/cjs/ez-split-item.cjs.entry.js +4 -3
  44. package/dist/cjs/ez-split-panel.cjs.entry.js +69 -7
  45. package/dist/cjs/ez-tabselector.cjs.entry.js +1 -1
  46. package/dist/cjs/ez-text-area.cjs.entry.js +68 -6
  47. package/dist/cjs/ez-text-input.cjs.entry.js +154 -17
  48. package/dist/cjs/ez-time-input.cjs.entry.js +9 -2
  49. package/dist/cjs/ez-toast.cjs.entry.js +1 -1
  50. package/dist/cjs/ez-tooltip.cjs.entry.js +55 -0
  51. package/dist/cjs/ez-tree.cjs.entry.js +1 -1
  52. package/dist/cjs/ez-upload.cjs.entry.js +1 -1
  53. package/dist/cjs/ez-view-stack.cjs.entry.js +1 -1
  54. package/dist/cjs/ezListHelper-0d3970b4.js +90 -0
  55. package/dist/cjs/ezui.cjs.js +2 -2
  56. package/dist/cjs/filter-column.cjs.entry.js +3 -3
  57. package/dist/cjs/{index-9e5554cb.js → index-a7b0c73d.js} +16 -11
  58. package/dist/cjs/loader.cjs.js +2 -2
  59. package/dist/collection/collection-manifest.json +3 -1
  60. package/dist/collection/components/ez-actions-button/ez-actions-button.js +3 -2
  61. package/dist/collection/components/ez-button/ez-button.css +23 -13
  62. package/dist/collection/components/ez-button/ez-button.js +12 -6
  63. package/dist/collection/components/ez-card-item/ez-card-item.css +60 -10
  64. package/dist/collection/components/ez-card-item/ez-card-item.js +30 -3
  65. package/dist/collection/components/ez-check/ez-check.css +1 -6
  66. package/dist/collection/components/ez-collapsible-box/ez-collapsible-box.css +2 -2
  67. package/dist/collection/components/ez-combo-box/ez-combo-box.css +13 -1
  68. package/dist/collection/components/ez-combo-box/ez-combo-box.js +130 -15
  69. package/dist/collection/components/ez-date-input/ez-date-input.css +1 -1
  70. package/dist/collection/components/ez-date-input/ez-date-input.js +58 -5
  71. package/dist/collection/components/ez-date-time-input/ez-date-time-input.css +1 -1
  72. package/dist/collection/components/ez-date-time-input/ez-date-time-input.js +55 -5
  73. package/dist/collection/components/ez-dialog/ez-dialog.css +3 -3
  74. package/dist/collection/components/ez-dialog/ez-dialog.js +9 -1
  75. package/dist/collection/components/ez-double-list/doubleListHelper.js +82 -0
  76. package/dist/collection/components/ez-double-list/ez-double-list.css +62 -0
  77. package/dist/collection/components/ez-double-list/ez-double-list.js +440 -0
  78. package/dist/collection/components/ez-dropdown/ez-dropdown.js +33 -8
  79. package/dist/collection/components/ez-filter-input/ez-filter-input.js +55 -5
  80. package/dist/collection/components/ez-form/ez-form.js +1 -0
  81. package/dist/collection/components/ez-form-view/custom-input/ez-custom-form-input.js +49 -6
  82. package/dist/collection/components/ez-form-view/ez-form-view.css +5 -2
  83. package/dist/collection/components/ez-form-view/fieldbuilder/FieldBuilder.js +2 -1
  84. package/dist/collection/components/ez-form-view/fieldbuilder/templates/CheckBox.tpl.js +1 -1
  85. package/dist/collection/components/ez-form-view/fieldbuilder/templates/ComboBox.tpl.js +1 -1
  86. package/dist/collection/components/ez-form-view/fieldbuilder/templates/DateInput.tpl.js +8 -4
  87. package/dist/collection/components/ez-form-view/fieldbuilder/templates/FileInput.tpl.js +1 -1
  88. package/dist/collection/components/ez-form-view/fieldbuilder/templates/NumberInput.tpl.js +1 -1
  89. package/dist/collection/components/ez-form-view/fieldbuilder/templates/SearchInput.tpl.js +3 -2
  90. package/dist/collection/components/ez-form-view/fieldbuilder/templates/TextArea.tpl.js +1 -1
  91. package/dist/collection/components/ez-form-view/fieldbuilder/templates/TextInput.tpl.js +2 -2
  92. package/dist/collection/components/ez-grid/controller/ag-grid/AgGridController.js +261 -53
  93. package/dist/collection/components/ez-grid/controller/ag-grid/DataSource.js +107 -5
  94. package/dist/collection/components/ez-grid/controller/ag-grid/DataSourceInterceptor.js +2 -2
  95. package/dist/collection/components/ez-grid/controller/ag-grid/GridEditionManager.js +219 -42
  96. package/dist/collection/components/ez-grid/controller/ag-grid/components/EzGridCustomCellEditor.js +16 -0
  97. package/dist/collection/components/ez-grid/controller/ag-grid/editor/EzCellEditor.js +8 -0
  98. package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/ComboBox.tpl.js +2 -0
  99. package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/DateInput.tpl.js +1 -0
  100. package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/NumberInput.tpl.js +1 -0
  101. package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/Search.tpl.js +8 -1
  102. package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/TextInput.tpl.js +4 -1
  103. package/dist/collection/components/ez-grid/controller/ag-grid/test/constants/GridEditionMock.js +2 -0
  104. package/dist/collection/components/ez-grid/ez-grid.css +47 -8
  105. package/dist/collection/components/ez-grid/ez-grid.js +220 -7
  106. package/dist/collection/components/ez-grid/subcomponents/filter-column.css +4 -0
  107. package/dist/collection/components/ez-grid/subcomponents/filter-column.js +1 -1
  108. package/dist/collection/components/ez-icon/ez-icon.css +153 -149
  109. package/dist/collection/components/ez-list/ez-list.css +2 -1
  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 +5 -1
  113. package/dist/collection/components/ez-modal/ez-modal.js +38 -5
  114. package/dist/collection/components/ez-modal-container/ez-modal-container.js +20 -1
  115. package/dist/collection/components/ez-multi-selection-list/ez-multi-selection-list.css +2 -3
  116. package/dist/collection/components/ez-multi-selection-list/ez-multi-selection-list.js +1 -1
  117. package/dist/collection/components/ez-number-input/ez-number-input.css +8 -0
  118. package/dist/collection/components/ez-number-input/ez-number-input.js +68 -1
  119. package/dist/collection/components/ez-popup/ez-popup.css +8 -3
  120. package/dist/collection/components/ez-popup/ez-popup.js +43 -3
  121. package/dist/collection/components/ez-scroller/ez-scroller.css +1 -0
  122. package/dist/collection/components/ez-search/ez-search.css +21 -10
  123. package/dist/collection/components/ez-search/ez-search.js +189 -49
  124. package/dist/collection/components/ez-sidebar-button/ez-sidebar-button.css +3 -0
  125. package/dist/collection/components/ez-sidebar-button/ez-sidebar-button.js +1 -1
  126. package/dist/collection/components/ez-sidebar-navigator/ez-sidebar-navigator.css +3 -1
  127. package/dist/collection/components/ez-split-button/ez-split-button.css +50 -14
  128. package/dist/collection/components/ez-split-button/ez-split-button.js +3 -3
  129. package/dist/collection/components/ez-split-panel/ez-split-panel.css +15 -0
  130. package/dist/collection/components/ez-split-panel/ez-split-panel.js +106 -5
  131. package/dist/collection/components/ez-split-panel/interfaces/IPanelSizeInfo.js +1 -0
  132. package/dist/collection/components/ez-split-panel/structure/item/ez-split-item.css +14 -2
  133. package/dist/collection/components/ez-split-panel/structure/item/ez-split-item.js +20 -1
  134. package/dist/collection/components/ez-text-area/ez-text-area.css +73 -28
  135. package/dist/collection/components/ez-text-area/ez-text-area.js +103 -3
  136. package/dist/collection/components/ez-text-input/ez-text-input.css +106 -91
  137. package/dist/collection/components/ez-text-input/ez-text-input.js +185 -15
  138. package/dist/collection/components/ez-time-input/ez-time-input.js +44 -1
  139. package/dist/collection/components/ez-tooltip/ez-tooltip.css +20 -0
  140. package/dist/collection/components/ez-tooltip/ez-tooltip.js +116 -0
  141. package/dist/collection/sw.js +46 -0
  142. package/dist/collection/utils/FocusResolver.js +31 -0
  143. package/dist/collection/utils/ResponsiveInputUtils.js +26 -0
  144. package/dist/collection/utils/form/DataBinder.js +20 -5
  145. package/dist/collection/utils/form/FormMetadata.js +2 -1
  146. package/dist/collection/utils/interfaces/AbstractFieldMetadata.js +1 -1
  147. package/dist/collection/utils/validators/recordvalidator/IInvalidCells.js +1 -0
  148. package/dist/collection/utils/validators/recordvalidator/RecordValidationProcessor.js +7 -1
  149. package/dist/custom-elements/index.d.ts +12 -0
  150. package/dist/custom-elements/index.js +16545 -70383
  151. package/dist/esm/DataBinder-d2ecbb0f.js +441 -0
  152. package/dist/esm/FocusResolver-1ccbf850.js +33 -0
  153. package/dist/esm/ez-actions-button.entry.js +4 -3
  154. package/dist/esm/ez-alert-list.entry.js +1 -1
  155. package/dist/esm/ez-alert.entry.js +1 -1
  156. package/dist/esm/ez-application.entry.js +1 -1
  157. package/dist/esm/ez-badge.entry.js +1 -1
  158. package/dist/esm/ez-breadcrumb.entry.js +1 -1
  159. package/dist/esm/ez-button.entry.js +12 -6
  160. package/dist/esm/ez-calendar.entry.js +1 -1
  161. package/dist/esm/ez-card-item_2.entry.js +71 -0
  162. package/dist/esm/ez-chart.entry.js +1 -1
  163. package/dist/esm/ez-check.entry.js +2 -2
  164. package/dist/esm/ez-chip.entry.js +1 -1
  165. package/dist/esm/ez-collapsible-box.entry.js +2 -2
  166. package/dist/esm/ez-combo-box.entry.js +69 -15
  167. package/dist/esm/ez-custom-form-input_2.entry.js +38 -8
  168. package/dist/esm/ez-date-input.entry.js +15 -5
  169. package/dist/esm/ez-date-time-input.entry.js +12 -5
  170. package/dist/esm/ez-dialog.entry.js +11 -3
  171. package/dist/esm/ez-double-list.entry.js +283 -0
  172. package/dist/esm/{ez-dropdown.entry.js → ez-dropdown_2.entry.js} +76 -10
  173. package/dist/esm/ez-file-item.entry.js +1 -1
  174. package/dist/esm/ez-filter-input.entry.js +126 -0
  175. package/dist/esm/ez-form-view.entry.js +30 -23
  176. package/dist/esm/ez-form.entry.js +6 -325
  177. package/dist/esm/ez-grid.entry.js +14931 -69809
  178. package/dist/esm/ez-guide-navigator.entry.js +1 -1
  179. package/dist/esm/ez-icon.entry.js +2 -2
  180. package/dist/esm/ez-list.entry.js +259 -212
  181. package/dist/esm/ez-loading-bar.entry.js +1 -1
  182. package/dist/esm/ez-modal-container.entry.js +3 -2
  183. package/dist/esm/ez-modal.entry.js +20 -5
  184. package/dist/esm/ez-multi-selection-list.entry.js +3 -3
  185. package/dist/esm/ez-number-input.entry.js +16 -3
  186. package/dist/esm/ez-popover.entry.js +1 -1
  187. package/dist/esm/ez-popup.entry.js +25 -3
  188. package/dist/esm/ez-radio-button.entry.js +1 -1
  189. package/dist/esm/ez-scroller_2.entry.js +4 -4
  190. package/dist/esm/ez-search.entry.js +106 -46
  191. package/dist/esm/ez-sidebar-navigator.entry.js +2 -2
  192. package/dist/esm/ez-split-button.entry.js +3 -3
  193. package/dist/esm/ez-split-item.entry.js +4 -3
  194. package/dist/esm/ez-split-panel.entry.js +69 -7
  195. package/dist/esm/ez-tabselector.entry.js +1 -1
  196. package/dist/esm/ez-text-area.entry.js +68 -6
  197. package/dist/esm/ez-text-input.entry.js +154 -17
  198. package/dist/esm/ez-time-input.entry.js +9 -2
  199. package/dist/esm/ez-toast.entry.js +1 -1
  200. package/dist/esm/ez-tooltip.entry.js +51 -0
  201. package/dist/esm/ez-tree.entry.js +1 -1
  202. package/dist/esm/ez-upload.entry.js +1 -1
  203. package/dist/esm/ez-view-stack.entry.js +1 -1
  204. package/dist/esm/ezListHelper-00fb9b8d.js +87 -0
  205. package/dist/esm/ezui.js +3 -3
  206. package/dist/esm/filter-column.entry.js +3 -3
  207. package/dist/esm/{index-5a720e56.js → index-baa5e267.js} +17 -11
  208. package/dist/esm/loader.js +3 -3
  209. package/dist/ezui/ezui.esm.js +1 -1
  210. package/dist/ezui/{p-e6b38ade.entry.js → p-0306dff7.entry.js} +1 -1
  211. package/dist/ezui/{p-91ccae0c.entry.js → p-09de35a2.entry.js} +1 -1
  212. package/dist/ezui/p-14b769d7.entry.js +1 -0
  213. package/dist/ezui/p-16e612fc.entry.js +1 -0
  214. package/dist/ezui/{p-b2f6bc0a.entry.js → p-17be134a.entry.js} +1 -1
  215. package/dist/ezui/p-17eabf46.entry.js +1 -0
  216. package/dist/ezui/p-181b5ae8.entry.js +1 -0
  217. package/dist/ezui/{p-81461d2f.entry.js → p-1e7a8633.entry.js} +1 -1
  218. package/dist/ezui/{p-6b51c9cc.entry.js → p-1f50fa05.entry.js} +1 -1
  219. package/dist/ezui/{p-e4c7eb39.js → p-23a36bb6.js} +2 -2
  220. package/dist/ezui/p-2475fd6e.entry.js +1 -0
  221. package/dist/ezui/p-2bb2a0c4.entry.js +1 -0
  222. package/dist/ezui/p-3175fe8c.entry.js +1 -0
  223. package/dist/ezui/{p-30951bd7.entry.js → p-35d467a8.entry.js} +1 -1
  224. package/dist/ezui/p-3f2dd525.entry.js +1 -0
  225. package/dist/ezui/{p-0378416a.entry.js → p-44caad9a.entry.js} +1 -1
  226. package/dist/ezui/p-50d83a46.entry.js +1 -0
  227. package/dist/ezui/{p-7567ccdd.entry.js → p-555c9018.entry.js} +1 -1
  228. package/dist/ezui/{p-044d46d5.entry.js → p-5b205c80.entry.js} +1 -1
  229. package/dist/ezui/{p-6fc26622.entry.js → p-5ed81457.entry.js} +1 -1
  230. package/dist/ezui/{p-f1c2c19e.entry.js → p-650e4b6d.entry.js} +1 -1
  231. package/dist/ezui/p-654b3f99.entry.js +1 -0
  232. package/dist/ezui/p-65f471bc.entry.js +1 -0
  233. package/dist/ezui/p-66924de6.entry.js +1 -0
  234. package/dist/ezui/p-6cdd3e0a.entry.js +1 -0
  235. package/dist/ezui/p-6d79930d.entry.js +1 -0
  236. package/dist/ezui/{p-fc194825.entry.js → p-6e429cff.entry.js} +1 -1
  237. package/dist/ezui/p-6f22a385.entry.js +1 -0
  238. package/dist/ezui/p-7409eeaa.entry.js +1 -0
  239. package/dist/ezui/{p-11bfeca3.entry.js → p-77a4bd35.entry.js} +1 -1
  240. package/dist/ezui/p-7ba4886c.entry.js +309 -0
  241. package/dist/ezui/p-7e677b7b.entry.js +1 -0
  242. package/dist/ezui/p-7ed30844.entry.js +1 -0
  243. package/dist/ezui/p-7fdd479f.entry.js +1 -0
  244. package/dist/ezui/p-80dfc50b.js +1 -0
  245. package/dist/ezui/{p-1b08bf3c.entry.js → p-8888d9ed.entry.js} +1 -1
  246. package/dist/ezui/{p-82fa4b09.entry.js → p-8df1ca33.entry.js} +1 -1
  247. package/dist/ezui/p-990b4318.entry.js +1 -0
  248. package/dist/ezui/{p-c2b20f78.entry.js → p-9f5fa3f9.entry.js} +1 -1
  249. package/dist/ezui/p-a6fe527a.entry.js +1 -0
  250. package/dist/ezui/{p-dfca5946.entry.js → p-a80b1287.entry.js} +1 -1
  251. package/dist/ezui/p-b6a4e6de.entry.js +1 -0
  252. package/dist/ezui/p-bc2f844e.entry.js +1 -0
  253. package/dist/ezui/{p-92748142.entry.js → p-c0d9c4f8.entry.js} +1 -1
  254. package/dist/ezui/p-c3045972.entry.js +1 -0
  255. package/dist/ezui/{p-82ac8b06.entry.js → p-c4320a39.entry.js} +1 -1
  256. package/dist/ezui/p-ca6340a9.entry.js +1 -0
  257. package/dist/ezui/p-ceadecd9.js +1 -0
  258. package/dist/ezui/p-d0ca26fe.entry.js +1 -0
  259. package/dist/ezui/p-d520839d.entry.js +1 -0
  260. package/dist/ezui/p-dc628ed3.js +1 -0
  261. package/dist/ezui/p-dc8b36c3.entry.js +1 -0
  262. package/dist/ezui/{p-9aa27e69.entry.js → p-e347df9c.entry.js} +1 -1
  263. package/dist/ezui/p-e3e3fd7a.entry.js +1 -0
  264. package/dist/ezui/p-fa6732f2.entry.js +1 -0
  265. package/dist/ezui/p-fec696ab.entry.js +1 -0
  266. package/dist/types/components/ez-button/ez-button.d.ts +2 -1
  267. package/dist/types/components/ez-card-item/ez-card-item.d.ts +5 -0
  268. package/dist/types/components/ez-combo-box/ez-combo-box.d.ts +16 -1
  269. package/dist/types/components/ez-date-input/ez-date-input.d.ts +10 -1
  270. package/dist/types/components/ez-date-time-input/ez-date-time-input.d.ts +10 -1
  271. package/dist/types/components/ez-dialog/ez-dialog.d.ts +2 -0
  272. package/dist/types/components/ez-double-list/doubleListHelper.d.ts +10 -0
  273. package/dist/types/components/ez-double-list/ez-double-list.d.ts +87 -0
  274. package/dist/types/components/ez-dropdown/ez-dropdown.d.ts +4 -0
  275. package/dist/types/components/ez-dropdown/structure/DropdownItem.d.ts +1 -1
  276. package/dist/types/components/ez-filter-input/ez-filter-input.d.ts +10 -1
  277. package/dist/types/components/ez-form-view/custom-input/ez-custom-form-input.d.ts +7 -1
  278. package/dist/types/components/ez-form-view/fieldbuilder/templates/DateInput.tpl.d.ts +2 -1
  279. package/dist/types/components/ez-form-view/fieldbuilder/templates/SearchInput.tpl.d.ts +1 -1
  280. package/dist/types/components/ez-form-view/fieldbuilder/templates/TextInput.tpl.d.ts +1 -1
  281. package/dist/types/components/ez-grid/controller/EzGridController.d.ts +60 -4
  282. package/dist/types/components/ez-grid/controller/ag-grid/AgGridController.d.ts +32 -4
  283. package/dist/types/components/ez-grid/controller/ag-grid/DataSource.d.ts +23 -1
  284. package/dist/types/components/ez-grid/controller/ag-grid/GridEditionManager.d.ts +33 -7
  285. package/dist/types/components/ez-grid/controller/ag-grid/components/EzGridCustomCellEditor.d.ts +4 -1
  286. package/dist/types/components/ez-grid/controller/ag-grid/components/EzGridCustomCellRender.d.ts +1 -1
  287. package/dist/types/components/ez-grid/controller/ag-grid/components/EzGridCustomHeader.d.ts +1 -1
  288. package/dist/types/components/ez-grid/controller/ag-grid/components/cellRendererStatus.d.ts +1 -1
  289. package/dist/types/components/ez-grid/controller/ag-grid/components/selectionHeader.d.ts +1 -1
  290. package/dist/types/components/ez-grid/controller/ag-grid/editor/EzCellEditor.d.ts +2 -1
  291. package/dist/types/components/ez-grid/controller/ag-grid/editor/EzCellRender.d.ts +1 -1
  292. package/dist/types/components/ez-grid/controller/ag-grid/editor/IUICellEditor.d.ts +1 -0
  293. package/dist/types/components/ez-grid/controller/ag-grid/mock/Server.d.ts +1 -1
  294. package/dist/types/components/ez-grid/ez-grid.d.ts +37 -1
  295. package/dist/types/components/ez-list/ez-list.d.ts +23 -2
  296. package/dist/types/components/ez-list/ezListHelper.d.ts +20 -0
  297. package/dist/types/components/ez-modal/ez-modal.d.ts +7 -1
  298. package/dist/types/components/ez-modal-container/ez-modal-container.d.ts +4 -0
  299. package/dist/types/components/ez-number-input/ez-number-input.d.ts +12 -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 +29 -5
  302. package/dist/types/components/ez-split-button/ez-split-button.d.ts +1 -1
  303. package/dist/types/components/ez-split-panel/ez-split-panel.d.ts +11 -0
  304. package/dist/types/components/ez-split-panel/interfaces/IPanelSizeInfo.d.ts +9 -0
  305. package/dist/types/components/ez-split-panel/structure/item/ez-split-item.d.ts +4 -0
  306. package/dist/types/components/ez-text-area/ez-text-area.d.ts +17 -0
  307. package/dist/types/components/ez-text-input/ez-text-input.d.ts +28 -2
  308. package/dist/types/components/ez-time-input/ez-time-input.d.ts +8 -0
  309. package/dist/types/components/ez-tooltip/ez-tooltip.d.ts +21 -0
  310. package/dist/types/components.d.ts +448 -25
  311. package/dist/types/utils/FocusResolver.d.ts +5 -0
  312. package/dist/types/utils/ResponsiveInputUtils.d.ts +6 -0
  313. package/dist/types/utils/customEditor/interfaces/ICustomEditor.d.ts +2 -0
  314. package/dist/types/utils/form/DataBinder.d.ts +3 -0
  315. package/dist/types/utils/validators/recordvalidator/IInvalidCells.d.ts +5 -0
  316. package/dist/types/utils/validators/recordvalidator/RecordValidationProcessor.d.ts +1 -1
  317. package/package.json +12 -4
  318. package/react/components.d.ts +2 -0
  319. package/react/components.js +2 -0
  320. package/react/components.js.map +1 -1
  321. package/dist/cjs/RecordValidationProcessor-4c893e04.js +0 -102
  322. package/dist/cjs/ez-card-item_3.cjs.entry.js +0 -183
  323. package/dist/cjs/ez-skeleton.cjs.entry.js +0 -67
  324. package/dist/esm/RecordValidationProcessor-b00b8b77.js +0 -99
  325. package/dist/esm/ez-card-item_3.entry.js +0 -177
  326. package/dist/esm/ez-skeleton.entry.js +0 -63
  327. package/dist/ezui/p-04f24913.js +0 -1
  328. package/dist/ezui/p-11b09aa1.entry.js +0 -1
  329. package/dist/ezui/p-24ca32a3.entry.js +0 -1
  330. package/dist/ezui/p-2af4e2de.entry.js +0 -1
  331. package/dist/ezui/p-31674f8e.entry.js +0 -1
  332. package/dist/ezui/p-33792b2b.entry.js +0 -1
  333. package/dist/ezui/p-33b08253.entry.js +0 -304
  334. package/dist/ezui/p-36180f4d.entry.js +0 -1
  335. package/dist/ezui/p-3f8c33e0.entry.js +0 -1
  336. package/dist/ezui/p-5fefcdc9.entry.js +0 -1
  337. package/dist/ezui/p-6ec40dec.entry.js +0 -1
  338. package/dist/ezui/p-752c4069.entry.js +0 -1
  339. package/dist/ezui/p-81cffa53.entry.js +0 -1
  340. package/dist/ezui/p-81f99ace.entry.js +0 -1
  341. package/dist/ezui/p-868b56f7.entry.js +0 -1
  342. package/dist/ezui/p-8eef0f70.entry.js +0 -1
  343. package/dist/ezui/p-9634631d.entry.js +0 -1
  344. package/dist/ezui/p-9a11e223.entry.js +0 -1
  345. package/dist/ezui/p-9a23d513.entry.js +0 -1
  346. package/dist/ezui/p-9c2e2d68.entry.js +0 -1
  347. package/dist/ezui/p-a35b41e6.entry.js +0 -1
  348. package/dist/ezui/p-acbf0e76.entry.js +0 -1
  349. package/dist/ezui/p-b0e71d23.entry.js +0 -1
  350. package/dist/ezui/p-c3b7a23e.entry.js +0 -1
  351. package/dist/ezui/p-cd1a2e6b.entry.js +0 -1
  352. package/dist/ezui/p-dbeee5aa.entry.js +0 -1
  353. package/dist/ezui/p-de870657.entry.js +0 -1
  354. package/dist/ezui/p-e151e795.entry.js +0 -1
  355. package/dist/ezui/p-ee9315ff.entry.js +0 -1
  356. package/dist/ezui/p-f1c3f85d.entry.js +0 -1
  357. package/dist/ezui/p-f291db18.entry.js +0 -1
@@ -1,13 +1,15 @@
1
- import { r as registerInstance, c as createEvent, h, F as Fragment, H as Host } from './index-5a720e56.js';
1
+ import { r as registerInstance, c as createEvent, h, F as Fragment, H as Host } from './index-baa5e267.js';
2
2
  import { StringUtils, ElementIDUtils } from '@sankhyalabs/core';
3
+ import { p as processListOnDrop } from './ezListHelper-00fb9b8d.js';
3
4
 
4
- const ezListCss = ":host {\n /* @doc Define a camada de visibilidae do componente. */\n --ez-list__host--z-index: var(--visible, 1);\n\n /* @doc Define o raio da borda do componente. */\n --ez-list__host--border-radius: var(--border--radius-medium, 12px);\n\n /* @doc Define o espaçamento entre a lista e o componente. */\n --ez-list__host--padding: var(--space--medium, 12px);\n\n /* @doc Define o espaçamento interno do ícone. */\n --ez-list__icon--padding: var(--space--small, 6px);\n\n /* @doc Define a cor do ícone de arrasto do item da lista. */\n --ez-list__icon--color: #AFB6C0;\n\n /* @doc Define o espaçamento externo do item da lista. */\n --ez-list__item--margin: 0 var(--space--small, 6px);\n\n /* @doc Define a cor do texto do item da lista. */\n --ez-list__item--color: var(--title--primary, #2b3a54);\n\n /* @doc Define o estilo borda inferior do item da lista. */\n --ez-list__item--border-bottom;\n\n /* @doc Define a cor da borda inferior do item da lista. */\n --ez-list__item--border-bottom-color;\n\n /* @doc Define o estilo do texto do item da lista. */\n --ez-list__item--font-family: var(--font-pattern, \"Roboto\");\n\n /* @doc Define o tamanho do texto do item da lista. */\n --ez-list__item--font-size: var(--text--medium, 14px);\n \n /* @doc Define o tipo da quebra de linha do item da lista. */\n --ez-list__item--white-space: var(--ez-list__item--white-space, nowrap);\n\n /* @doc Define o espaçamento lateral direito para items selecionados. */\n --ez-list__selectable--padding-right: var(--space--small, 6px);\n \n /* @doc Define o espaçamento lateral esquerdo para items selecionados. */\n --ez-list__selectable--padding-left: var(--space--small, 6px);\n\n /*@doc Define o raio da borda de items selecionados.*/\n --ez-list__selected-item--border-radius: var(--border--radius-small, 6px);\n \n /*@doc Define a cor de fundo de items selecionados.*/\n --ez-list__selected-item--background-color: var(--color--primary-300, #E2F4EF);\n\n /* @doc Define o estilo do texto do grupo da lista. */\n --ez-list__group--font-family: var(--font-pattern, \"Roboto\");\n \n /* @doc Define o tamanho do texto do grupo da lista. */\n --ez-list__group--font-size: var(--text--medium, 14px);\n \n /* @doc Define o peso do texto do grupo da lista. */\n --ez-list__group--font-weight: var(--text-weight--large, 600);\n \n /* @doc Define o espaçamento inferior do grupo da lista. */\n --ez-list__group--padding-bottom: var(--space-small, 6px);\n\n /* @doc Define o estilo do texto da área de transferência de grupos. */\n --ez-list__group-overlay--font-family: var(--font-pattern, \"Roboto\");\n\n /* @doc Define o tamanho do texto da área de transferência de grupos. */\n --ez-list__group-overlay--font-size: var(--text--medium, 14px);\n \n /* @doc Define a cor da borda pontilhada sobre os elementos da lista. */\n --ez-list__over--border--color: var(--color--primary, #008561);\n\n /*@doc Define a altura do container para arrasto para última posição .*/\n --ez-list__last-droppable-space--height: var(--space--small, 6px);\n \n /*@doc Define o espaçamento do container de itens arrastáveis .*/\n --ez-list__draggable-list--padding-bottom: var(--space--small, 6px);\n\n /* @doc Define a imagem do ícone de drag. */\n --ez-list__draggable-icon--image: url('data:image/svg+xml;utf8,<svg width=\"18\" height=\"18\" viewBox=\"0 0 18 18\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"m 6.75,2.25 h 1.5 v 1.5 h -1.5 z m 3,0 h 1.5 v 1.5 h -1.5 z m -3,3 h 1.5 v 1.5 h -1.5 z m 3,0 h 1.5 v 1.5 h -1.5 z m -3,3 h 1.5 v 1.5 h -1.5 z m 3,0 h 1.5 v 1.5 h -1.5 z m -3,3 h 1.5 v 1.5 h -1.5 z m 3,0 h 1.5 v 1.5 h -1.5 z m -3,3 h 1.5 v 1.5 h -1.5 z m 3,0 h 1.5 v 1.5 h -1.5 z\"/></svg>');\n\n /* scrollbar */\n /*@doc Define a cor da barra de rolagem do componente.*/\n --ez-list__scrollbar--color-default: var(--scrollbar--default, #626e82);\n /*@doc Define a cor de fundo da barra de rolagem do componente.*/\n --ez-list__scrollbar--color-background: var(--scrollbar--background, #E5EAF0);\n /*@doc Define a cor do hover na barra de rolagem do componente.*/\n --ez-list__scrollbar--color-hover: var(--scrollbar--hover, #2B3A54);\n /*@doc Define a cor do active na barra de rolagem do componente.*/\n --ez-list__scrollbar--color-clicked: var(--scrollbar--clicked, #a2abb9);\n /*@doc Define o raio da borda da barra de rolagem do componente.*/\n --ez-list__scrollbar--border-radius: var(--border--radius-small, 6px);\n /*@doc Define a largura da barra de rolagem do componente.*/\n --ez-list__scrollbar--width: var(--space--medium, 12px);\n\n max-height: 100%;\n width: 100%;\n background-color: #fff;\n display: flex;\n\n /*public*/\n z-index: var(--ez-list__host--z-index);\n}\n\np {\n margin: 0;\n}\n\n.draggable {\n /* private */\n width: 100%;\n display: grid;\n grid-template-columns: minmax(0px, auto) minmax(0px, auto);\n place-items: center;\n border-top: 1px dashed #fff;\n justify-content: space-between;\n\n /*public*/\n font-family: var(--ez-list__item--font-family);\n font-size: var(--ez-list__item--font-size);\n}\n\n.dragging {\n background: #FFFFFF;\n /* Primary/color--primary */\n\n border: 1px solid #008561;\n box-sizing: border-box;\n box-shadow: 0px 0px 16px rgba(0, 38, 111, 0.122);\n border-radius: 6px;\n}\n\n.selectable {\n cursor: pointer;\n\n /*public*/\n padding-right: var(--ez-list__selectable--padding-right);\n padding-left: var(--ez-list__selectable--padding-left);\n}\n\n.selectable-container {\n margin: 0px !important;\n}\n\n.hover-feedback:hover {\n background-color: var(--background--medium);\n border-radius: var(--border--radius-regular);\n}\n\n.item-content {\n display: flex;\n overflow: hidden;\n justify-content: flex-start;\n width: 100%;\n}\n\n.draggable-list {\n padding: 0;\n margin: 0;\n width: 100%;\n max-height: 100%;\n scrollbar-width: thin;\n \n /*public*/\n color: var(--text-color);\n scrollbar-color: var(--ez-list__scrollbar--color-clicked) var(--ez-list__scrollbar--color-background);\n}\n\n.draggable-list li {\n display: flex;\n \n /*public*/\n font-family: var(--ez-list__item--font-family);\n font-size: var(--ez-list__item--font-size);\n color: var(--ez-list__item--color);\n border-bottom: var(--ez-list__item--border-bottom, none) var(--ez-list__item--border-bottom-color);\n}\n\n.draggable-list li > div {\n /*public*/\n padding: var(--space--2xs, 8px) var(--space--3xs, 4px);\n margin: var(--ez-list__item--margin);\n}\n\n.over {\n /*public*/\n border-top: 1px dashed var(--ez-list__over--border--color);\n}\n\n.last-droppable-space {\n /*public*/\n height: var(--ez-list__last-droppable-space--height);\n}\n\n.draggable-selected {\n /*public*/\n background-color: var(--background--strong) !important;\n}\n\n.draggable-selected div:hover {\n /*public*/\n background-color: var(--background--strong) !important;\n}\n\n.draggable-list::-webkit-scrollbar {\n /*public*/\n background-color: var(--ez-list__scrollbar--color-background);\n width: var(--ez-list__scrollbar--width);\n max-width: var(--ez-list__scrollbar--width);\n min-width: var(--ez-list__scrollbar--width);\n}\n\n.draggable-list::-webkit-scrollbar-track {\n /*public*/\n background-color: var(--ez-list__scrollbar--color-background);\n border-radius: var(--ez-list__scrollbar--border-radius);\n}\n\n.draggable-list::-webkit-scrollbar-thumb {\n /*public*/\n background-color: var(--ez-list__scrollbar--color-default);\n border-radius: var(--ez-list__scrollbar--border-radius);\n}\n\n.draggable-list::-webkit-scrollbar-thumb:vertical:hover,\n.draggable-list::-webkit-scrollbar-thumb:horizontal:hover {\n /*public*/\n background-color: var(--ez-list__scrollbar--color-hover);\n}\n\n.draggable-list::-webkit-scrollbar-thumb:vertical:active,\n.draggable-list::-webkit-scrollbar-thumb:horizontal:active {\n /*public*/\n background-color: var(--ez-list__scrollbar--color-clicked);\n}\n\n.draggable-icon {\n align-items: flex-start;\n display: flex;\n outline: none;\n border: none;\n background-color: unset;\n}\n\n.draggable-icon::after {\n content: '';\n display: flex;\n width: 18px;\n height: 18px;\n\n /*public*/\n background-color: var(--ez-list__icon--color);\n -webkit-mask-image: var(--ez-list__draggable-icon--image);\n mask-image: var(--ez-list__draggable-icon--image);\n}\n\n* {\n box-sizing: border-box;\n}\n\n.checkbox {\n width: fit-content;\n}\n\n.text--ellipsis {\n overflow: hidden;\n text-overflow: ellipsis;\n \n /*public*/\n white-space: var(--ez-list__item--white-space);\n}\n\n.group-container {\n display: flex;\n flex-direction: column;\n max-height: 100%;\n overflow-y: auto;\n outline: none;\n width: 100%;\n scrollbar-width: thin;\n\n /*public*/\n scrollbar-color: var(--ez-list__scrollbar--color-clicked) var(--ez-list__scrollbar--color-background);\n}\n\n.group-name {\n -webkit-user-select: none;\n -moz-user-select: -moz-none;\n -ms-user-select: none;\n user-select: none;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n\n /*public*/\n color: var(--title--primary);\n font-family: var(--ez-list__group--font-family);\n font-size: var(--ez-list__group--font-size);\n font-weight: var(--ez-list__group--font-weight);\n padding-bottom: var(--ez-list__group--padding-bottom);\n}\n\n.group {\n display: flex;\n flex-direction: column;\n}\n\n.group-container::-webkit-scrollbar {\n /*public*/\n background-color: var(--ez-list__scrollbar--color-background);\n width: var(--ez-list__scrollbar--width);\n max-width: var(--ez-list__scrollbar--width);\n min-width: var(--ez-list__scrollbar--width);\n}\n\n.group-container::-webkit-scrollbar-track {\n /*public*/\n background-color: var(--ez-list__scrollbar--color-background);\n border-radius: var(--ez-list__scrollbar--border-radius);\n}\n\n.group-container::-webkit-scrollbar-thumb {\n /*public*/\n background-color: var(--ez-list__scrollbar--color-default);\n border-radius: var(--ez-list__scrollbar--border-radius);\n}\n\n.group-container::-webkit-scrollbar-thumb:vertical:hover,\n.group-container::-webkit-scrollbar-thumb:horizontal:hover {\n /*public*/\n background-color: var(--ez-list__scrollbar--color-hover);\n}\n\n.group-container::-webkit-scrollbar-thumb:vertical:active,\n.group-container::-webkit-scrollbar-thumb:horizontal:active {\n /*public*/\n background-color: var(--ez-list__scrollbar--color-clicked);\n}\n\n.section-container {\n display: flex;\n position: relative;\n height: 100%;\n}\n\n.items-container {\n width: 100%;\n max-height: 100%;\n outline: none;\n scrollbar-width: thin;\n\n /*public*/\n scrollbar-color: var(--ez-list__scrollbar--color-clicked) var(--ez-list__scrollbar--color-background);\n}\n\n.group-items-container {\n width: 100%;\n max-height: 100%;\n height: 100%;\n outline: none;\n}\n\n.items-container::-webkit-scrollbar {\n /*public*/\n background-color: var(--ez-list__scrollbar--color-background);\n width: var(--ez-list__scrollbar--width);\n max-width: var(--ez-list__scrollbar--width);\n min-width: var(--ez-list__scrollbar--width);\n}\n\n.items-container::-webkit-scrollbar-track {\n /*public*/\n background-color: var(--ez-list__scrollbar--color-background);\n border-radius: var(--ez-list__scrollbar--border-radius);\n}\n\n.items-container::-webkit-scrollbar-thumb {\n /*public*/\n background-color: var(--ez-list__scrollbar--color-default);\n border-radius: var(--ez-list__scrollbar--border-radius);\n}\n\n.items-container::-webkit-scrollbar-thumb:vertical:hover,\n.items-container::-webkit-scrollbar-thumb:horizontal:hover {\n /*public*/\n background-color: var(--ez-list__scrollbar--color-hover);\n}\n\n.items-container::-webkit-scrollbar-thumb:vertical:active,\n.items-container::-webkit-scrollbar-thumb:horizontal:active {\n /*public*/\n background-color: var(--ez-list__scrollbar--color-clicked);\n}\n\n.group-overlay {\n background: rgba(226, 244, 239, 0.8);\n border: 1px solid #008561;\n border-radius: 8px;\n position: absolute;\n display: none;\n place-items: center;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n z-index: 2;\n margin: 0;\n cursor: pointer;\n\n /*public*/\n font-family: var(--ez-list__group-overlay--font-family);\n font-size: var(--ez-list__group-overlay--font-size);\n}\n\n.presetedHeight {\n min-height: 100px;\n}\n\n.overlay-text {\n position: absolute;\n top: 50%;\n left: 50%;\n font-size: 50px;\n color: white;\n transform: translate(-50%, -50%);\n -ms-transform: translate(-50%, -50%);\n}\n\n.selected-item {\n /*public*/\n background: var(--ez-list__selected-item--background-color);\n border-radius: var(--ez-list__selected-item--border-radius);\n}\n\n.slot-item {\n align-items: flex-end;\n}\n\n.overGroup {\n background: rgba(226, 244, 239, 0.8);\n border: 1px solid #008561;\n box-sizing: border-box;\n border-radius: 8px;\n padding-top: 6px;\n}";
5
+ const ezListCss = ".sc-ez-list-h {\n \n --ez-list__host--z-index: var(--visible, 1);\n\n \n --ez-list__host--border-radius: var(--border--radius-medium, 12px);\n\n \n --ez-list__host--padding: var(--space--medium, 12px);\n\n \n --ez-list__icon--padding: var(--space--small, 6px);\n\n \n --ez-list__icon--color: #AFB6C0;\n\n \n --ez-list__item--margin: 0 var(--space--small, 6px);\n\n \n --ez-list__item--color: var(--title--primary, #2b3a54);\n\n \n --ez-list__item--border-bottom;\n\n \n --ez-list__item--border-bottom-color;\n\n \n --ez-list__item--font-family: var(--font-pattern, \"Roboto\");\n\n \n --ez-list__item--font-size: var(--text--medium, 14px);\n \n \n --ez-list__item--white-space: var(--ez-list__item--white-space, nowrap);\n\n \n --ez-list__selectable--padding-right: var(--space--small, 6px);\n \n \n --ez-list__selectable--padding-left: var(--space--small, 6px);\n\n \n --ez-list__selected-item--border-radius: var(--border--radius-small, 6px);\n \n \n --ez-list__selected-item--background-color: var(--color--primary-300, #E2F4EF);\n\n \n --ez-list__group--font-family: var(--font-pattern, \"Roboto\");\n \n \n --ez-list__group--font-size: var(--text--medium, 14px);\n \n \n --ez-list__group--font-weight: var(--text-weight--large, 600);\n \n \n --ez-list__group--padding-bottom: var(--space-small, 6px);\n\n \n --ez-list__group-overlay--font-family: var(--font-pattern, \"Roboto\");\n\n \n --ez-list__group-overlay--font-size: var(--text--medium, 14px);\n \n \n --ez-list__over--border--color: var(--color--primary, #008561);\n\n \n --ez-list__last-droppable-space--height: var(--space--small, 6px);\n \n \n --ez-list__draggable-list--padding-bottom: var(--space--small, 6px);\n\n \n --ez-list__draggable-icon--image: url('data:image/svg+xml;utf8,<svg width=\"18\" height=\"18\" viewBox=\"0 0 18 18\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"m 6.75,2.25 h 1.5 v 1.5 h -1.5 z m 3,0 h 1.5 v 1.5 h -1.5 z m -3,3 h 1.5 v 1.5 h -1.5 z m 3,0 h 1.5 v 1.5 h -1.5 z m -3,3 h 1.5 v 1.5 h -1.5 z m 3,0 h 1.5 v 1.5 h -1.5 z m -3,3 h 1.5 v 1.5 h -1.5 z m 3,0 h 1.5 v 1.5 h -1.5 z m -3,3 h 1.5 v 1.5 h -1.5 z m 3,0 h 1.5 v 1.5 h -1.5 z\"/></svg>');\n\n \n \n --ez-list__scrollbar--color-default: var(--scrollbar--default, #626e82);\n \n --ez-list__scrollbar--color-background: var(--scrollbar--background, #E5EAF0);\n \n --ez-list__scrollbar--color-hover: var(--scrollbar--hover, #2B3A54);\n \n --ez-list__scrollbar--color-clicked: var(--scrollbar--clicked, #a2abb9);\n \n --ez-list__scrollbar--border-radius: var(--border--radius-small, 6px);\n \n --ez-list__scrollbar--width: var(--space--medium, 12px);\n\n max-height: 100%;\n width: 100%;\n background-color: #fff;\n display: flex;\n\n \n z-index: var(--ez-list__host--z-index);\n}\n\np.sc-ez-list {\n margin: 0;\n}\n\n.draggable.sc-ez-list {\n \n width: 100%;\n display: grid;\n grid-template-columns: minmax(0px, auto) minmax(0px, auto);\n place-items: center;\n border-top: 1px dashed #fff;\n justify-content: space-between;\n\n \n font-family: var(--ez-list__item--font-family);\n font-size: var(--ez-list__item--font-size);\n}\n\n.dragging.sc-ez-list {\n background: #FFFFFF;\n \n\n border: 1px solid #008561;\n box-sizing: border-box;\n box-shadow: 0px 0px 16px rgba(0, 38, 111, 0.122);\n border-radius: 6px;\n}\n\n.selectable.sc-ez-list {\n cursor: pointer;\n\n \n padding-right: var(--ez-list__selectable--padding-right);\n padding-left: var(--ez-list__selectable--padding-left);\n}\n\n.selectable-container.sc-ez-list {\n margin: 0px !important;\n}\n\n.hover-feedback.sc-ez-list:hover {\n background-color: var(--background--medium);\n border-radius: var(--border--radius-regular);\n}\n\n.item-content.sc-ez-list {\n display: flex;\n align-items: center;\n overflow: hidden;\n justify-content: flex-start;\n width: 100%;\n}\n\n.draggable-list.sc-ez-list {\n padding: 0;\n margin: 0;\n width: 100%;\n max-height: 100%;\n scrollbar-width: thin;\n \n \n color: var(--text-color);\n scrollbar-color: var(--ez-list__scrollbar--color-clicked) var(--ez-list__scrollbar--color-background);\n}\n\n.draggable-list.sc-ez-list li.sc-ez-list {\n display: flex;\n \n \n font-family: var(--ez-list__item--font-family);\n font-size: var(--ez-list__item--font-size);\n color: var(--ez-list__item--color);\n border-bottom: var(--ez-list__item--border-bottom, none) var(--ez-list__item--border-bottom-color);\n}\n\n.draggable-list.sc-ez-list li.sc-ez-list > div.sc-ez-list {\n \n padding: var(--space--3xs, 4px) var(--space--3xs, 4px);\n margin: var(--ez-list__item--margin);\n}\n\n.over.sc-ez-list {\n \n border-top: 1px dashed var(--ez-list__over--border--color);\n}\n\n.last-droppable-space.sc-ez-list {\n \n height: var(--ez-list__last-droppable-space--height);\n}\n\n.draggable-selected.sc-ez-list {\n \n background-color: var(--background--strong) !important;\n}\n\n.draggable-selected.sc-ez-list div.sc-ez-list:hover {\n \n background-color: var(--background--strong) !important;\n}\n\n.draggable-list.sc-ez-list::-webkit-scrollbar {\n \n background-color: var(--ez-list__scrollbar--color-background);\n width: var(--ez-list__scrollbar--width);\n max-width: var(--ez-list__scrollbar--width);\n min-width: var(--ez-list__scrollbar--width);\n}\n\n.draggable-list.sc-ez-list::-webkit-scrollbar-track {\n \n background-color: var(--ez-list__scrollbar--color-background);\n border-radius: var(--ez-list__scrollbar--border-radius);\n}\n\n.draggable-list.sc-ez-list::-webkit-scrollbar-thumb {\n \n background-color: var(--ez-list__scrollbar--color-default);\n border-radius: var(--ez-list__scrollbar--border-radius);\n}\n\n.draggable-list.sc-ez-list::-webkit-scrollbar-thumb:vertical:hover, .draggable-list.sc-ez-list::-webkit-scrollbar-thumb:horizontal:hover {\n \n background-color: var(--ez-list__scrollbar--color-hover);\n}\n\n.draggable-list.sc-ez-list::-webkit-scrollbar-thumb:vertical:active, .draggable-list.sc-ez-list::-webkit-scrollbar-thumb:horizontal:active {\n \n background-color: var(--ez-list__scrollbar--color-clicked);\n}\n\n.draggable-icon.sc-ez-list {\n align-items: flex-start;\n display: flex;\n outline: none;\n border: none;\n background-color: unset;\n}\n\n.draggable-icon.sc-ez-list::after {\n content: '';\n display: flex;\n width: 18px;\n height: 18px;\n\n \n background-color: var(--ez-list__icon--color);\n -webkit-mask-image: var(--ez-list__draggable-icon--image);\n mask-image: var(--ez-list__draggable-icon--image);\n}\n\n*.sc-ez-list {\n box-sizing: border-box;\n}\n\n.checkbox.sc-ez-list {\n width: fit-content;\n}\n\n.text--ellipsis.sc-ez-list {\n overflow: hidden;\n text-overflow: ellipsis;\n \n \n white-space: var(--ez-list__item--white-space);\n}\n\n.group-container.sc-ez-list {\n display: flex;\n flex-direction: column;\n max-height: 100%;\n overflow-y: auto;\n outline: none;\n width: 100%;\n scrollbar-width: thin;\n\n \n scrollbar-color: var(--ez-list__scrollbar--color-clicked) var(--ez-list__scrollbar--color-background);\n}\n\n.group-name.sc-ez-list {\n -webkit-user-select: none;\n -moz-user-select: -moz-none;\n -ms-user-select: none;\n user-select: none;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n\n \n color: var(--title--primary);\n font-family: var(--ez-list__group--font-family);\n font-size: var(--ez-list__group--font-size);\n font-weight: var(--ez-list__group--font-weight);\n padding-bottom: var(--ez-list__group--padding-bottom);\n}\n\n.group.sc-ez-list {\n display: flex;\n flex-direction: column;\n}\n\n.group-container.sc-ez-list::-webkit-scrollbar {\n \n background-color: var(--ez-list__scrollbar--color-background);\n width: var(--ez-list__scrollbar--width);\n max-width: var(--ez-list__scrollbar--width);\n min-width: var(--ez-list__scrollbar--width);\n}\n\n.group-container.sc-ez-list::-webkit-scrollbar-track {\n \n background-color: var(--ez-list__scrollbar--color-background);\n border-radius: var(--ez-list__scrollbar--border-radius);\n}\n\n.group-container.sc-ez-list::-webkit-scrollbar-thumb {\n \n background-color: var(--ez-list__scrollbar--color-default);\n border-radius: var(--ez-list__scrollbar--border-radius);\n}\n\n.group-container.sc-ez-list::-webkit-scrollbar-thumb:vertical:hover, .group-container.sc-ez-list::-webkit-scrollbar-thumb:horizontal:hover {\n \n background-color: var(--ez-list__scrollbar--color-hover);\n}\n\n.group-container.sc-ez-list::-webkit-scrollbar-thumb:vertical:active, .group-container.sc-ez-list::-webkit-scrollbar-thumb:horizontal:active {\n \n background-color: var(--ez-list__scrollbar--color-clicked);\n}\n\n.section-container.sc-ez-list {\n display: flex;\n position: relative;\n height: 100%;\n}\n\n.items-container.sc-ez-list {\n width: 100%;\n max-height: 100%;\n outline: none;\n scrollbar-width: thin;\n\n \n scrollbar-color: var(--ez-list__scrollbar--color-clicked) var(--ez-list__scrollbar--color-background);\n}\n\n.group-items-container.sc-ez-list {\n width: 100%;\n max-height: 100%;\n height: 100%;\n outline: none;\n}\n\n.items-container.sc-ez-list::-webkit-scrollbar {\n \n background-color: var(--ez-list__scrollbar--color-background);\n width: var(--ez-list__scrollbar--width);\n max-width: var(--ez-list__scrollbar--width);\n min-width: var(--ez-list__scrollbar--width);\n}\n\n.items-container.sc-ez-list::-webkit-scrollbar-track {\n \n background-color: var(--ez-list__scrollbar--color-background);\n border-radius: var(--ez-list__scrollbar--border-radius);\n}\n\n.items-container.sc-ez-list::-webkit-scrollbar-thumb {\n \n background-color: var(--ez-list__scrollbar--color-default);\n border-radius: var(--ez-list__scrollbar--border-radius);\n}\n\n.items-container.sc-ez-list::-webkit-scrollbar-thumb:vertical:hover, .items-container.sc-ez-list::-webkit-scrollbar-thumb:horizontal:hover {\n \n background-color: var(--ez-list__scrollbar--color-hover);\n}\n\n.items-container.sc-ez-list::-webkit-scrollbar-thumb:vertical:active, .items-container.sc-ez-list::-webkit-scrollbar-thumb:horizontal:active {\n \n background-color: var(--ez-list__scrollbar--color-clicked);\n}\n\n.group-overlay.sc-ez-list {\n background: rgba(226, 244, 239, 0.8);\n border: 1px solid #008561;\n border-radius: 8px;\n position: absolute;\n display: none;\n place-items: center;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n z-index: 2;\n margin: 0;\n cursor: pointer;\n\n \n font-family: var(--ez-list__group-overlay--font-family);\n font-size: var(--ez-list__group-overlay--font-size);\n}\n\n.presetedHeight.sc-ez-list {\n min-height: 100px;\n}\n\n.overlay-text.sc-ez-list {\n position: absolute;\n top: 50%;\n left: 50%;\n font-size: 50px;\n color: white;\n transform: translate(-50%, -50%);\n -ms-transform: translate(-50%, -50%);\n}\n\n.selected-item.sc-ez-list {\n \n background: var(--ez-list__selected-item--background-color);\n border-radius: var(--ez-list__selected-item--border-radius);\n}\n\n.slot-item.sc-ez-list {\n align-items: flex-end;\n}\n\n.overGroup.sc-ez-list {\n background: rgba(226, 244, 239, 0.8);\n border: 1px solid #008561;\n box-sizing: border-box;\n border-radius: 8px;\n padding-top: 6px;\n}";
5
6
 
6
7
  const EzList = class {
7
8
  constructor(hostRef) {
8
9
  registerInstance(this, hostRef);
9
10
  this.ezChange = createEvent(this, "ezChange", 7);
10
11
  this.ezSelectItem = createEvent(this, "ezSelectItem", 7);
12
+ this.ezSelectMultipleItems = createEvent(this, "ezSelectMultipleItems", 7);
11
13
  this.ezCheckChange = createEvent(this, "ezCheckChange", 7);
12
14
  this.ezDoubleClick = createEvent(this, "ezDoubleClick", 7);
13
15
  this._listItemsHistory = [];
@@ -21,6 +23,7 @@ const EzList = class {
21
23
  this.itemSlotBuilder = undefined;
22
24
  this.itemLeftSlotBuilder = undefined;
23
25
  this.hoverFeedback = false;
26
+ this.enableMultipleSelection = false;
24
27
  }
25
28
  /**
26
29
  * Limpa o histórico da lista.
@@ -33,65 +36,108 @@ const EzList = class {
33
36
  */
34
37
  async scrollToTop() {
35
38
  if (this.useGroups) {
36
- this._element.shadowRoot.querySelector('.group-container').scrollTop = 0;
39
+ this._element.querySelector('.group-container').scrollTop = 0;
37
40
  }
38
41
  else {
39
- this._element.shadowRoot.querySelector('.items-container').scrollTop = 0;
42
+ this._element.querySelector('.items-container').scrollTop = 0;
40
43
  }
41
44
  }
42
45
  /**
43
46
  * Aplica seleção nas linhas da lista.
44
47
  */
45
- async setSelection(selectedItem, scrollToOption) {
46
- if (selectedItem && this.ezSelectable) {
47
- this.ezSelectItem.emit(selectedItem);
48
- if (this.useGroups) {
49
- let newList = [...this._listGroupItems];
50
- newList.forEach(groupItem => {
51
- groupItem.items.forEach(item => {
52
- item.selected = item.id === selectedItem.id;
53
- });
54
- });
55
- this._listGroupItems = newList;
56
- }
57
- else {
58
- let newList = [...this._listItems];
59
- newList.forEach(item => {
60
- item.selected = item.id === selectedItem.id;
61
- });
62
- this._listItems = newList;
63
- }
64
- if (scrollToOption) {
65
- let liElem = this.useGroups
66
- ? this._groupContainer.querySelector('li#item_' + selectedItem.id)
67
- : this._itemContainer.querySelector('li#item_' + selectedItem.id);
68
- if (liElem) {
69
- liElem.scrollIntoView();
70
- }
71
- }
72
- }
73
- else {
48
+ async setSelection(selectedItem, scrollToOption, shitkey, ctrlKey) {
49
+ if (!selectedItem || !this.ezSelectable) {
74
50
  await this.removeSelection();
51
+ return;
52
+ }
53
+ if (this.useGroups) {
54
+ this.setSelectionWithGroups(selectedItem, scrollToOption);
55
+ return;
56
+ }
57
+ if (this.enableMultipleSelection && ctrlKey) {
58
+ this.setSelectionMultiple(selectedItem);
59
+ return;
60
+ }
61
+ if (this.enableMultipleSelection && shitkey) {
62
+ this.setSelectionRange(selectedItem);
63
+ return;
64
+ }
65
+ this.setSelectionSingleItem(selectedItem, scrollToOption);
66
+ this.emitSelectedItems(selectedItem);
67
+ }
68
+ emitSelectedItems(singleItem, listItem) {
69
+ this.ezSelectItem.emit(singleItem);
70
+ this.ezSelectMultipleItems.emit(listItem !== null && listItem !== void 0 ? listItem : [singleItem]);
71
+ }
72
+ setSelectionRange(selectedItem) {
73
+ const lastSelectedIndex = this._listItems.findIndex(item => item.selected);
74
+ const seletedItemIndex = this._listItems.findIndex(item => item.id === selectedItem.id);
75
+ if (lastSelectedIndex < 0 || lastSelectedIndex === seletedItemIndex) {
76
+ this.setSelectionSingleItem(selectedItem);
77
+ return;
75
78
  }
79
+ const minorIndex = Math.min(lastSelectedIndex, seletedItemIndex);
80
+ const majorIndex = Math.max(lastSelectedIndex, seletedItemIndex);
81
+ let newList = [...this._listItems];
82
+ newList.forEach((item, index) => {
83
+ item.selected = (index >= minorIndex && index <= majorIndex);
84
+ });
85
+ this._listItems = [...newList];
86
+ const selectedList = this._listItems.filter(item => item.selected);
87
+ this.emitSelectedItems(selectedItem, selectedList);
88
+ }
89
+ setSelectionMultiple(selectedItem) {
90
+ let newList = [...this._listItems];
91
+ newList.forEach(item => {
92
+ item.selected = (item.id === selectedItem.id) ? !item.selected : item.selected;
93
+ });
94
+ this._listItems = [...newList];
95
+ const selectedList = this._listItems.filter(item => item.selected);
96
+ this.emitSelectedItems(selectedItem, selectedList);
97
+ }
98
+ setSelectionSingleItem(selectedItem, scrollToOption) {
99
+ this.emitSelectedItems(selectedItem);
100
+ let newList = [...this._listItems];
101
+ newList.forEach(item => {
102
+ item.selected = item.id === selectedItem.id;
103
+ });
104
+ this._listItems = newList;
105
+ if (!scrollToOption)
106
+ return;
107
+ let liElem = this._itemContainer.querySelector('li#item_' + selectedItem.id);
108
+ if (liElem)
109
+ liElem.scrollIntoView();
110
+ }
111
+ setSelectionWithGroups(selectedItem, scrollToOption) {
112
+ this.emitSelectedItems(selectedItem);
113
+ let newList = [...this._listGroupItems];
114
+ newList.forEach(groupItem => {
115
+ groupItem.items.forEach(item => {
116
+ item.selected = item.id === selectedItem.id;
117
+ });
118
+ });
119
+ this._listGroupItems = newList;
120
+ if (!scrollToOption)
121
+ return;
122
+ let liElem = this._groupContainer.querySelector('li#item_' + selectedItem.id);
123
+ if (liElem)
124
+ liElem.scrollIntoView();
76
125
  }
77
126
  /**
78
127
  * Obtém o item selecionado.
79
128
  */
80
129
  async getSelection() {
130
+ if (!this.useGroups)
131
+ return this._listItems.find(item => item.selected == true);
81
132
  let selectedItem;
82
- if (this.useGroups) {
83
- this._listGroupItems.every(group => {
84
- let item = group.items.find(item => item.selected == true);
85
- if (item) {
86
- selectedItem = item;
87
- return false;
88
- }
89
- return true;
90
- });
91
- }
92
- else {
93
- selectedItem = this._listItems.find(item => item.selected == true);
94
- }
133
+ this._listGroupItems.every(group => {
134
+ let item = group.items.find(item => item.selected == true);
135
+ if (item) {
136
+ selectedItem = item;
137
+ return false;
138
+ }
139
+ return true;
140
+ });
95
141
  return selectedItem;
96
142
  }
97
143
  /**
@@ -115,14 +161,11 @@ const EzList = class {
115
161
  });
116
162
  });
117
163
  this._listGroupItems = newList;
164
+ return;
118
165
  }
119
- else {
120
- let newList = [...this._listItems];
121
- newList.forEach(item => {
122
- item.selected = false;
123
- });
124
- this._listItems = newList;
125
- }
166
+ let newList = [...this._listItems];
167
+ newList.forEach(item => item.selected = false);
168
+ this._listItems = newList;
126
169
  }
127
170
  applyUUID(item) {
128
171
  if (!item.id) {
@@ -156,8 +199,7 @@ const EzList = class {
156
199
  }
157
200
  }
158
201
  buildIdDraggableListAndSelectable() {
159
- const shadow = this._element.shadowRoot;
160
- const draggableList = shadow.querySelectorAll('.draggable-list');
202
+ const draggableList = this._element.querySelectorAll('.draggable-list');
161
203
  draggableList === null || draggableList === void 0 ? void 0 : draggableList.forEach((draggable, index) => {
162
204
  var _a, _b;
163
205
  let suffix = 'draggableList';
@@ -167,7 +209,7 @@ const EzList = class {
167
209
  }
168
210
  ElementIDUtils.addIDInfoIfNotExists(draggable, suffix);
169
211
  });
170
- const selectable = shadow.querySelectorAll('.selectable-container');
212
+ const selectable = this._element.querySelectorAll('.selectable-container');
171
213
  selectable === null || selectable === void 0 ? void 0 : selectable.forEach((item) => {
172
214
  ElementIDUtils.addIDInfoIfNotExists(item, 'selectable');
173
215
  });
@@ -185,78 +227,88 @@ const EzList = class {
185
227
  ElementIDUtils.addIDInfo(this._element);
186
228
  }
187
229
  onDrop(ev, dragEndItem) {
230
+ ev.stopPropagation();
188
231
  this.removeOverClass();
232
+ if (!this._dragStartItem)
233
+ return;
234
+ if (this.useGroups) {
235
+ this.onDropWithGroups(dragEndItem);
236
+ return;
237
+ }
238
+ this._listItems = [...processListOnDrop(this.buildDragHandlerConfig(dragEndItem.index, false))];
239
+ this._listItemsHistory = [...this._listItems];
240
+ this.ezChange.emit(this._listItems);
241
+ }
242
+ buildDragHandlerConfig(targetIndex, moveToFinal) {
243
+ return {
244
+ listItems: this._listItems,
245
+ dragItem: this._dragStartItem,
246
+ enableMultipleSelection: this.enableMultipleSelection,
247
+ targetIndex,
248
+ moveToFinal,
249
+ clearSelection: () => this.setSelection(undefined)
250
+ };
251
+ }
252
+ ;
253
+ onDropWithGroups(dragEndItem) {
189
254
  this.setSelection(undefined);
190
- if (this._dragStartItem) {
191
- if (this.useGroups) {
192
- let newList = [...this._listGroupItems];
193
- let groupEnd = this._listGroupItems.find(group => dragEndItem.groupName == group.group);
194
- //Remove item arrastado
195
- newList.find(group => group.group == this._dragStartItem.groupName).items.splice(this._dragStartItem.index, 1);
196
- //Adiciona item arrastado
197
- if (groupEnd.sort) {
198
- newList.find(group => group.group == dragEndItem.groupName).items.push(this._dragStartItem.item);
199
- newList
200
- .find(group => group.group == dragEndItem.groupName)
201
- .items.sort(function (a, b) {
202
- return a.label < b.label ? -1 : a.label > b.label ? 1 : 0;
203
- });
204
- if (groupEnd.sort === 'DSC') {
205
- newList.find(group => group.group == dragEndItem.groupName).items.reverse();
206
- }
207
- }
208
- else {
209
- let indexForAdd = dragEndItem.index > this._dragStartItem.index ? dragEndItem.index - 1 : dragEndItem.index;
210
- newList.find(group => group.group == dragEndItem.groupName).items.splice(indexForAdd, 0, this._dragStartItem.item);
211
- }
212
- this._listGroupItems = newList;
213
- this.ezChange.emit(this._listGroupItems);
214
- }
215
- else {
216
- let newList = [...this._listItems];
217
- newList.splice(this._dragStartItem.index, 1);
218
- newList.splice(dragEndItem.index, 0, this._dragStartItem.item);
219
- this._listItems = newList;
220
- this._listItemsHistory = newList;
221
- this.ezChange.emit(this._listItems);
255
+ let newList = [...this._listGroupItems];
256
+ let groupEnd = this._listGroupItems.find(group => dragEndItem.groupName == group.group);
257
+ //Remove item arrastado
258
+ newList.find(group => group.group == this._dragStartItem.groupName).items.splice(this._dragStartItem.index, 1);
259
+ //Adiciona item arrastado
260
+ if (groupEnd.sort) {
261
+ newList.find(group => group.group == dragEndItem.groupName).items.push(this._dragStartItem.item);
262
+ newList
263
+ .find(group => group.group == dragEndItem.groupName)
264
+ .items.sort(function (a, b) {
265
+ return a.label < b.label ? -1 : a.label > b.label ? 1 : 0;
266
+ });
267
+ if (groupEnd.sort === 'DSC') {
268
+ newList.find(group => group.group == dragEndItem.groupName).items.reverse();
222
269
  }
223
270
  }
224
- ev.stopPropagation();
271
+ else {
272
+ let indexForAdd = dragEndItem.index > this._dragStartItem.index ? dragEndItem.index - 1 : dragEndItem.index;
273
+ newList.find(group => group.group == dragEndItem.groupName).items.splice(indexForAdd, 0, this._dragStartItem.item);
274
+ }
275
+ this._listGroupItems = newList;
276
+ this.ezChange.emit(this._listGroupItems);
225
277
  }
226
278
  onDropLastIndex(ev, groupDropped) {
279
+ ev.stopPropagation();
227
280
  this.removeOverClass();
281
+ if (!this._dragStartItem)
282
+ return;
283
+ if (this.useGroups) {
284
+ this.onDropLastItemWithGroups(groupDropped);
285
+ return;
286
+ }
287
+ const lastIndex = this._listItems.length - 1;
288
+ this._listItems = [...processListOnDrop(this.buildDragHandlerConfig(lastIndex, true))];
289
+ this._listItemsHistory = [...this._listItems];
290
+ this.ezChange.emit(this._listItems);
291
+ }
292
+ onDropLastItemWithGroups(groupDropped) {
228
293
  this.setSelection(undefined);
229
- if (this._dragStartItem) {
230
- if (this.useGroups) {
231
- let newList = [...this._listGroupItems];
232
- let groupEnd = this._listGroupItems.find(group => groupDropped.group == group.group);
233
- //Remove item arrastado
234
- newList.find(group => group.group == this._dragStartItem.groupName).items.splice(this._dragStartItem.index, 1);
235
- //Adiciona item arrastado
236
- newList.find(group => group.group == groupDropped.group).items.push(this._dragStartItem.item);
237
- if (groupEnd.sort) {
238
- newList
239
- .find(group => group.group == groupDropped.group)
240
- .items.sort(function (a, b) {
241
- return a.label < b.label ? -1 : a.label > b.label ? 1 : 0;
242
- });
243
- if (groupEnd.sort === 'DSC') {
244
- newList.find(group => group.group == groupDropped.group).items.reverse();
245
- }
246
- }
247
- this._listGroupItems = newList;
248
- this.ezChange.emit(this._listGroupItems);
249
- }
250
- else {
251
- let newList = [...this._listItems];
252
- newList.splice(this._dragStartItem.index, 1);
253
- newList.push(this._dragStartItem.item);
254
- this._listItems = newList;
255
- this._listItemsHistory = newList;
256
- this.ezChange.emit(this._listItems);
294
+ let newList = [...this._listGroupItems];
295
+ let groupEnd = this._listGroupItems.find(group => groupDropped.group == group.group);
296
+ //Remove item arrastado
297
+ newList.find(group => group.group == this._dragStartItem.groupName).items.splice(this._dragStartItem.index, 1);
298
+ //Adiciona item arrastado
299
+ newList.find(group => group.group == groupDropped.group).items.push(this._dragStartItem.item);
300
+ if (groupEnd.sort) {
301
+ newList
302
+ .find(group => group.group == groupDropped.group)
303
+ .items.sort(function (a, b) {
304
+ return a.label < b.label ? -1 : a.label > b.label ? 1 : 0;
305
+ });
306
+ if (groupEnd.sort === 'DSC') {
307
+ newList.find(group => group.group == groupDropped.group).items.reverse();
257
308
  }
258
309
  }
259
- ev.stopPropagation();
310
+ this._listGroupItems = newList;
311
+ this.ezChange.emit(this._listGroupItems);
260
312
  }
261
313
  onDropGroup(groupSelected) {
262
314
  var _a;
@@ -294,19 +346,13 @@ const EzList = class {
294
346
  if (this.useGroups) {
295
347
  this.hideOverlays();
296
348
  }
297
- if (this._draggingElement) {
298
- try {
299
- this._element.shadowRoot.removeChild(this._draggingElement);
300
- }
301
- catch (err) { }
302
- this._draggingElement = undefined;
303
- }
304
349
  }
305
350
  addOverClass(element) {
306
351
  if ((element === null || element === void 0 ? void 0 : element.__proto__) == HTMLDivElement.prototype && element.classList.contains('draggable')) {
307
352
  element.classList.add('over');
353
+ return;
308
354
  }
309
- else if ((element === null || element === void 0 ? void 0 : element.parentElement) && !element.parentElement.classList.contains('draggable-list')) {
355
+ if ((element === null || element === void 0 ? void 0 : element.parentElement) && !element.parentElement.classList.contains('draggable-list')) {
310
356
  this.addOverClass(element.parentElement);
311
357
  }
312
358
  }
@@ -362,84 +408,94 @@ const EzList = class {
362
408
  window.clearTimeout(this._changeDeboucingTimeout);
363
409
  }
364
410
  if (this.useGroups) {
365
- this._dragStartItem = { groupName: group.group, item: item, index: index };
366
- this._changeDeboucingTimeout = window.setTimeout(() => {
367
- this.showOverlays(group);
368
- }, 10);
369
- }
370
- else {
371
- this._dragStartItem = { item: item.item, index: item.index };
411
+ this.onDragStartWithGroups(group, item, index);
412
+ return;
372
413
  }
414
+ this._dragStartItem = { item: item.item, index: item.index };
415
+ }
416
+ onDragStartWithGroups(group, item, index) {
417
+ this._dragStartItem = { groupName: group.group, item: item, index: index };
418
+ this._changeDeboucingTimeout = window.setTimeout(() => {
419
+ this.showOverlays(group);
420
+ }, 10);
373
421
  }
374
422
  selectFirstItem() {
375
423
  if (this.useGroups) {
376
424
  this.setSelection(this._listGroupItems[0].items[0]);
377
425
  }
378
- {
426
+ else {
379
427
  this.setSelection(this._listItems[0]);
380
428
  }
381
429
  }
382
430
  nextOption(selectedItem) {
383
- let nextItem = undefined;
384
431
  if (this.useGroups) {
385
- this._listGroupItems.every((group, groupIndex, listGroupItems) => {
386
- let item = undefined;
387
- let itemIndex = group.items.findIndex(item => item.id == selectedItem.id);
388
- if (itemIndex != undefined && itemIndex != -1) {
389
- if (itemIndex === group.items.length - 1) {
390
- if (groupIndex + 1 <= listGroupItems.length - 1) {
391
- item = { label: listGroupItems[groupIndex + 1].items[0].label };
392
- }
393
- }
394
- else {
395
- item = { label: group.items[itemIndex + 1].label };
432
+ this.setSelection(this.nextOptionWithGroups(selectedItem), true);
433
+ return;
434
+ }
435
+ let nextItem = undefined;
436
+ let itemIndex = this._listItems.findIndex(item => item.id === selectedItem.id);
437
+ if (itemIndex >= 0 && itemIndex < this._listItems.length) {
438
+ nextItem = this._listItems[itemIndex + 1];
439
+ }
440
+ this.setSelection(nextItem, true);
441
+ }
442
+ nextOptionWithGroups(selectedItem) {
443
+ let nextItem = undefined;
444
+ this._listGroupItems.every((group, groupIndex, listGroupItems) => {
445
+ let item = undefined;
446
+ let itemIndex = group.items.findIndex(item => item.id == selectedItem.id);
447
+ if (itemIndex != undefined && itemIndex != -1) {
448
+ if (itemIndex === group.items.length - 1) {
449
+ if (groupIndex + 1 <= listGroupItems.length - 1) {
450
+ item = { label: listGroupItems[groupIndex + 1].items[0].label };
396
451
  }
397
452
  }
398
- if (item != undefined) {
399
- nextItem = item;
400
- return false;
453
+ else {
454
+ item = { label: group.items[itemIndex + 1].label };
401
455
  }
402
- return true;
403
- });
404
- }
405
- else {
406
- let itemIndex = this._listItems.findIndex(item => item.id === selectedItem.id);
407
- if (itemIndex >= 0 && itemIndex < this._listItems.length) {
408
- nextItem = this._listItems[itemIndex + 1];
409
456
  }
410
- }
411
- this.setSelection(nextItem, true);
457
+ if (item != undefined) {
458
+ nextItem = item;
459
+ return false;
460
+ }
461
+ return true;
462
+ });
463
+ return nextItem;
412
464
  }
413
465
  previousOption(selectedItem) {
414
- let previousItem = undefined;
415
466
  if (this.useGroups) {
416
- this._listGroupItems.every((group, groupIndex, listGroupItems) => {
417
- let item = undefined;
418
- let itemIndex = group.items.findIndex(item => item.id === selectedItem.id);
419
- if (itemIndex != undefined && itemIndex != -1) {
420
- if (itemIndex === 0) {
421
- if (groupIndex - 1 >= 0) {
422
- item = { label: listGroupItems[groupIndex - 1].items[listGroupItems[groupIndex - 1].items.length - 1].label };
423
- }
424
- }
425
- else {
426
- item = { label: group.items[itemIndex - 1].label };
467
+ this.setSelection(this.previousOptionWithGroups(selectedItem), true);
468
+ return;
469
+ }
470
+ let previousItem = undefined;
471
+ let itemIndex = this._listItems.findIndex(item => item.id === selectedItem.id);
472
+ if (itemIndex > 0 && itemIndex < this._listItems.length) {
473
+ previousItem = this._listItems[itemIndex - 1];
474
+ }
475
+ this.setSelection(previousItem, true);
476
+ }
477
+ previousOptionWithGroups(selectedItem) {
478
+ let previousItem = undefined;
479
+ this._listGroupItems.every((group, groupIndex, listGroupItems) => {
480
+ let item = undefined;
481
+ let itemIndex = group.items.findIndex(item => item.id === selectedItem.id);
482
+ if (itemIndex != undefined && itemIndex != -1) {
483
+ if (itemIndex === 0) {
484
+ if (groupIndex - 1 >= 0) {
485
+ item = { label: listGroupItems[groupIndex - 1].items[listGroupItems[groupIndex - 1].items.length - 1].label };
427
486
  }
428
487
  }
429
- if (item != undefined) {
430
- previousItem = item;
431
- return false;
488
+ else {
489
+ item = { label: group.items[itemIndex - 1].label };
432
490
  }
433
- return true;
434
- });
435
- }
436
- else {
437
- let itemIndex = this._listItems.findIndex(item => item.id === selectedItem.id);
438
- if (itemIndex > 0 && itemIndex < this._listItems.length) {
439
- previousItem = this._listItems[itemIndex - 1];
440
491
  }
441
- }
442
- this.setSelection(previousItem, true);
492
+ if (item != undefined) {
493
+ previousItem = item;
494
+ return false;
495
+ }
496
+ return true;
497
+ });
498
+ return previousItem;
443
499
  }
444
500
  keyDownHandler(event) {
445
501
  if (!event.ctrlKey) {
@@ -481,11 +537,11 @@ const EzList = class {
481
537
  }
482
538
  }
483
539
  onDragOverItem(event) {
484
- if (this._dragStartItem) {
485
- event.preventDefault();
486
- this.addOverClass(event.target);
487
- event.stopPropagation();
488
- }
540
+ if (!this._dragStartItem)
541
+ return;
542
+ event.preventDefault();
543
+ this.addOverClass(event.target);
544
+ event.stopPropagation();
489
545
  }
490
546
  onDragOverLastIndex(ev) {
491
547
  ev.preventDefault();
@@ -525,38 +581,29 @@ const EzList = class {
525
581
  doubleClickItem(item) {
526
582
  this.ezDoubleClick.emit(item);
527
583
  }
528
- render() {
529
- return (h(Host, { ref: el => (this._element = el) }, this.useGroups ? (h("div", { class: "group-container", ref: el => (this._groupContainer = el), tabIndex: 0, onKeyDown: event => {
530
- this.keyDownHandler(event);
531
- } }, this._listGroupItems.map(group => {
532
- return (h("div", { id: this.getDivGroupId(group.group), class: "group", key: group.group + group.items.length, onDrop: () => this.onDropGroup(group) }, h("label", { draggable: false, class: "group-name", title: group.group }, group.group), h("section", { class: "section-container", onDragOver: ev => ev.preventDefault() }, h("div", { class: "group-items-container" }, h("div", { class: "draggable-list" }, group.items.map((item, index) => (h("li", Object.assign({ id: 'item_' + item.id, class: {
584
+ buildItem(item, evt) {
585
+ return { id: item.id, label: item.label, check: evt.detail };
586
+ }
587
+ renderListWithGroups() {
588
+ return h("div", { class: 'group-container', ref: el => (this._groupContainer = el), tabIndex: 0, onKeyDown: event => this.keyDownHandler(event) }, this._listGroupItems.map(group => {
589
+ return (h("div", { id: this.getDivGroupId(group.group), class: 'group', key: group.group + group.items.length, onDrop: () => this.onDropGroup(group) }, h("label", { draggable: false, class: 'group-name', title: group.group }, group.group), h("section", { class: 'section-container', onDragOver: ev => ev.preventDefault() }, h("div", { class: 'group-items-container' }, h("div", { class: 'draggable-list' }, group.items.map((item, index) => (h("li", Object.assign({ id: 'item_' + item.id, class: {
533
590
  'selectable-container': this.ezSelectable,
534
591
  'hover-feedback': this.hoverFeedback,
535
592
  }, key: 'item_' + item.id }, {
536
593
  [ElementIDUtils.DATA_ELEMENT_ID_ATTRIBUTE_NAME]: ElementIDUtils.getInternalIDInfo(`ezListItem__${StringUtils.replaceAccentuatedChars(item.label)}`),
537
- }), h("div", { class: 'draggable' + (item.selected == true ? ' selected-item ' : '') + (this.ezSelectable == true ? ' selectable ' : ''), onDblClick: () => {
538
- this.doubleClickItem(item);
539
- }, onClick: () => {
540
- this.setSelection(item);
541
- }, onDragLeave: () => {
542
- group.sort ? undefined : this.removeOverClass();
543
- }, onDragEnd: () => this.onDragEnd(), onDragStart: () => this.onDragStart(item, group, index), onDragOver: event => {
544
- group.sort ? undefined : this.onDragOverItem(event);
545
- }, onDrop: event => this.onDrop(event, { groupName: group.group, item: item, index: index }), draggable: this.ezDraggable }, h("div", { class: "item-content" }, this.ezDraggable ? h("span", { class: "draggable-icon" }) : undefined, this.listMode === 'regular' ? (h(Fragment, null, !!this.itemLeftSlotBuilder && this.getContainerItemBuilder('left', item, group), h("p", { title: item.label, class: "person-name text--ellipsis" }, item.label))) : (h("ez-check", { label: item.label, value: item.check, onEzChange: evt => this.ezCheckChange.emit({ id: item.id, label: item.label, check: evt.detail }) }))), !!this.itemSlotBuilder && this.getContainerItemBuilder('right', item, group, 'slot-item')))))), h("div", { class: "last-droppable-space", onDragLeave: () => this.removeOverClass(), onDragOver: event => {
546
- this.onDragOverLastIndex(event);
547
- }, onDragEnd: () => this.onDragEnd(), onDrop: event => this.onDropLastIndex(event, group) })), group.sort ? (h("div", { id: this.getGroupOverlayId(group.group), class: "group-overlay" }, "Mover para ", group.group)) : undefined)));
548
- }))) : (h("div", { class: "items-container", ref: el => (this._itemContainer = el), tabIndex: 0, onKeyDown: event => {
594
+ }), h("div", { class: 'draggable' + (item.selected == true ? ' selected-item ' : '') + (this.ezSelectable == true ? ' selectable ' : ''), onDblClick: () => this.doubleClickItem(item), onClick: () => this.setSelection(item), onDragLeave: () => group.sort ? undefined : this.removeOverClass(), onDragEnd: () => this.onDragEnd(), onDragStart: () => this.onDragStart(item, group, index), onDragOver: event => group.sort ? undefined : this.onDragOverItem(event), onDrop: event => this.onDrop(event, { groupName: group.group, item: item, index: index }), draggable: this.ezDraggable }, h("div", { class: 'item-content' }, this.ezDraggable ? h("span", { class: 'draggable-icon' }) : undefined, this.listMode === 'regular' ? (h(Fragment, null, !!this.itemLeftSlotBuilder && this.getContainerItemBuilder('left', item, group), h("p", { title: item.label, class: 'person-name text--ellipsis' }, item.label))) : (h("ez-check", { label: item.label, value: item.check, onEzChange: evt => this.ezCheckChange.emit(this.buildItem(item, evt)) }))), !!this.itemSlotBuilder && this.getContainerItemBuilder('right', item, group, 'slot-item')))))), h("div", { class: 'last-droppable-space', onDragLeave: () => this.removeOverClass(), onDragOver: event => this.onDragOverLastIndex(event), onDragEnd: () => this.onDragEnd(), onDrop: event => this.onDropLastIndex(event, group) })), group.sort ? (h("div", { id: this.getGroupOverlayId(group.group), class: 'group-overlay' }, "Mover para ", group.group)) : undefined)));
595
+ }));
596
+ }
597
+ renderList() {
598
+ return h("div", { class: 'items-container', ref: el => (this._itemContainer = el), tabIndex: 0, onKeyDown: event => {
549
599
  this.keyDownHandler(event);
550
- } }, h("div", { class: "draggable-list" }, this._listItems.map((item, index) => (h("li", Object.assign({ id: 'item_' + item.id, class: {
600
+ } }, h("div", { class: 'draggable-list' }, this._listItems.map((item, index) => (h("li", Object.assign({ id: 'item_' + item.id, class: {
551
601
  'selectable-container': this.ezSelectable,
552
602
  'hover-feedback': this.hoverFeedback,
553
- }, key: 'item_' + item.id }, { [ElementIDUtils.DATA_ELEMENT_ID_ATTRIBUTE_NAME]: ElementIDUtils.getInternalIDInfo(`ezListItem__${StringUtils.replaceAccentuatedChars(item.label)}`) }), h("div", { class: 'draggable' + (item.selected == true ? ' selected-item ' : '') + (this.ezSelectable == true ? ' selectable ' : ''), onDragStart: () => this.onDragStart({ item: item, index: index }), onDblClick: () => {
554
- this.doubleClickItem(item);
555
- }, onClick: () => {
556
- this.setSelection(item);
557
- }, onDragLeave: () => this.removeOverClass(), onDragOver: event => this.onDragOverItem(event), onDragEnd: () => this.onDragEnd(), onDrop: event => this.onDrop(event, { item: item, index: index }), draggable: this.ezDraggable }, h("div", { class: "item-content" }, this.listMode === 'regular' ? (h(Fragment, null, this.ezDraggable ? h("span", { class: "draggable-icon" }) : undefined, !!this.itemLeftSlotBuilder && this.getContainerItemBuilder('left', item), h("p", { title: item.label, class: "person-name text--ellipsis" }, item.label))) : (h(Fragment, null, this.ezDraggable ? h("span", { class: "draggable-icon" }) : undefined, h("ez-check", { label: item.label, value: item.check, onEzChange: evt => this.ezCheckChange.emit({ id: item.id, label: item.label, check: evt.detail }) })))), !!this.itemSlotBuilder && this.getContainerItemBuilder('right', item))))), h("div", { class: "last-droppable-space", onDragLeave: () => this.removeOverClass(), onDragOver: event => {
558
- this.onDragOverLastIndex(event);
559
- }, onDragEnd: () => this.onDragEnd(), onDrop: event => this.onDropLastIndex(event) }))))));
603
+ }, key: 'item_' + item.id }, { [ElementIDUtils.DATA_ELEMENT_ID_ATTRIBUTE_NAME]: ElementIDUtils.getInternalIDInfo(`ezListItem__${StringUtils.replaceAccentuatedChars(item.label)}`) }), h("div", { class: 'draggable' + (item.selected == true ? ' selected-item ' : '') + (this.ezSelectable == true ? ' selectable ' : ''), onDblClick: () => this.doubleClickItem(item), onClick: (event) => this.setSelection(item, false, event.shiftKey, (event.altKey || event.metaKey)), onDragStart: () => this.onDragStart({ item: item, index: index }), onDragOver: event => this.onDragOverItem(event), onDragLeave: () => this.removeOverClass(), onDragEnd: () => this.onDragEnd(), onDrop: event => this.onDrop(event, { item: item, index: index }), draggable: this.ezDraggable }, h("div", { class: 'item-content' }, this.listMode === 'regular' ? (h(Fragment, null, this.ezDraggable ? h("span", { class: 'draggable-icon' }) : undefined, !!this.itemLeftSlotBuilder && this.getContainerItemBuilder('left', item), h("p", { title: item.label, class: 'person-name text--ellipsis' }, item.label))) : (h(Fragment, null, this.ezDraggable ? h("span", { class: 'draggable-icon' }) : undefined, h("ez-check", { label: item.label, value: item.check, onEzChange: evt => this.ezCheckChange.emit({ id: item.id, label: item.label, check: evt.detail }) })))), !!this.itemSlotBuilder && this.getContainerItemBuilder('right', item))))), h("div", { class: 'last-droppable-space', onDragLeave: () => this.removeOverClass(), onDragOver: event => this.onDragOverLastIndex(event), onDragEnd: () => this.onDragEnd(), onDrop: event => this.onDropLastIndex(event) })));
604
+ }
605
+ render() {
606
+ return (h(Host, { ref: el => (this._element = el) }, this.useGroups ? this.renderListWithGroups() : this.renderList()));
560
607
  }
561
608
  };
562
609
  EzList.style = ezListCss;