@sankhyalabs/ezui 5.22.0-dev.10 → 5.22.0-dev.101

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/{CSSVarsUtils-10c9d5b4.js → CSSVarsUtils-f20973d1.js} +1 -0
  2. package/dist/cjs/DataBinder-e92314c2.js +445 -0
  3. package/dist/cjs/FocusResolver-885f2173.js +35 -0
  4. package/dist/cjs/ez-actions-button.cjs.entry.js +4 -3
  5. package/dist/cjs/ez-badge.cjs.entry.js +14 -2
  6. package/dist/cjs/ez-button.cjs.entry.js +11 -5
  7. package/dist/cjs/ez-card-item_2.cjs.entry.js +1485 -0
  8. package/dist/cjs/ez-check.cjs.entry.js +1 -1
  9. package/dist/cjs/ez-chip.cjs.entry.js +1 -1
  10. package/dist/cjs/ez-collapsible-box.cjs.entry.js +1 -1
  11. package/dist/cjs/ez-combo-box-list_3.cjs.entry.js +387 -0
  12. package/dist/cjs/ez-combo-box.cjs.entry.js +82 -155
  13. package/dist/cjs/ez-date-input.cjs.entry.js +15 -19
  14. package/dist/cjs/ez-date-time-input.cjs.entry.js +14 -20
  15. package/dist/cjs/ez-dialog.cjs.entry.js +14 -7
  16. package/dist/cjs/ez-double-list.cjs.entry.js +287 -0
  17. package/dist/cjs/{ez-dropdown.cjs.entry.js → ez-dropdown_2.cjs.entry.js} +75 -8
  18. package/dist/cjs/ez-filter-input.cjs.entry.js +129 -0
  19. package/dist/cjs/ez-form-view.cjs.entry.js +26 -20
  20. package/dist/cjs/ez-form.cjs.entry.js +6 -325
  21. package/dist/cjs/ez-grid.cjs.entry.js +15067 -69836
  22. package/dist/cjs/ez-icon.cjs.entry.js +1 -1
  23. package/dist/cjs/ez-list.cjs.entry.js +258 -211
  24. package/dist/cjs/ez-modal-container.cjs.entry.js +2 -2
  25. package/dist/cjs/ez-modal.cjs.entry.js +12 -3
  26. package/dist/cjs/ez-multi-selection-list.cjs.entry.js +2 -2
  27. package/dist/cjs/ez-number-input.cjs.entry.js +15 -3
  28. package/dist/cjs/ez-popover-plus_3.cjs.entry.js +200 -0
  29. package/dist/cjs/ez-popup.cjs.entry.js +24 -2
  30. package/dist/cjs/ez-scroller_2.cjs.entry.js +3 -3
  31. package/dist/cjs/ez-search.cjs.entry.js +119 -188
  32. package/dist/cjs/ez-sidebar-navigator.cjs.entry.js +1 -1
  33. package/dist/cjs/ez-split-button.cjs.entry.js +2 -2
  34. package/dist/cjs/ez-split-item.cjs.entry.js +6 -3
  35. package/dist/cjs/ez-split-panel.cjs.entry.js +68 -6
  36. package/dist/cjs/ez-text-area.cjs.entry.js +68 -6
  37. package/dist/cjs/ez-text-input.cjs.entry.js +152 -16
  38. package/dist/cjs/ez-time-input.cjs.entry.js +7 -1
  39. package/dist/cjs/ez-tooltip.cjs.entry.js +55 -0
  40. package/dist/cjs/ez-tree.cjs.entry.js +5 -4
  41. package/dist/cjs/ezListHelper-0d3970b4.js +90 -0
  42. package/dist/cjs/ezui.cjs.js +1 -1
  43. package/dist/cjs/filter-column.cjs.entry.js +10 -47
  44. package/dist/cjs/index-a7b0c73d.js +22 -10
  45. package/dist/cjs/loader.cjs.js +1 -1
  46. package/dist/cjs/searchFormatters-b7e1ed1e.js +23 -0
  47. package/dist/collection/collection-manifest.json +8 -2
  48. package/dist/collection/components/ez-actions-button/ez-actions-button.js +3 -2
  49. package/dist/collection/components/ez-badge/ez-badge.css +12 -1
  50. package/dist/collection/components/ez-badge/ez-badge.js +31 -1
  51. package/dist/collection/components/ez-button/ez-button.css +24 -14
  52. package/dist/collection/components/ez-button/ez-button.js +12 -6
  53. package/dist/collection/components/ez-card-item/ez-card-item.css +58 -10
  54. package/dist/collection/components/ez-card-item/ez-card-item.js +30 -3
  55. package/dist/collection/components/ez-check/ez-check.css +1 -6
  56. package/dist/collection/components/ez-chip/ez-chip.css +5 -1
  57. package/dist/collection/components/ez-collapsible-box/ez-collapsible-box.css +2 -2
  58. package/dist/collection/components/ez-combo-box/ez-combo-box-list/ez-combo-box-list.css +205 -0
  59. package/dist/collection/components/ez-combo-box/ez-combo-box-list/ez-combo-box-list.js +426 -0
  60. package/dist/collection/components/ez-combo-box/ez-combo-box.css +8 -246
  61. package/dist/collection/components/ez-combo-box/ez-combo-box.js +129 -166
  62. package/dist/collection/components/ez-date-input/ez-date-input.css +1 -1
  63. package/dist/collection/components/ez-date-input/ez-date-input.js +40 -19
  64. package/dist/collection/components/ez-date-time-input/ez-date-time-input.css +1 -1
  65. package/dist/collection/components/ez-date-time-input/ez-date-time-input.js +39 -20
  66. package/dist/collection/components/ez-dialog/ez-dialog.css +3 -3
  67. package/dist/collection/components/ez-dialog/ez-dialog.js +14 -16
  68. package/dist/collection/components/ez-double-list/doubleListHelper.js +82 -0
  69. package/dist/collection/components/ez-double-list/ez-double-list.css +62 -0
  70. package/dist/collection/components/ez-double-list/ez-double-list.js +440 -0
  71. package/dist/collection/components/ez-dropdown/ez-dropdown.js +33 -8
  72. package/dist/collection/components/ez-filter-input/ez-filter-input.css +1 -1
  73. package/dist/collection/components/ez-filter-input/ez-filter-input.js +35 -4
  74. package/dist/collection/components/ez-form/ez-form.js +1 -0
  75. package/dist/collection/components/ez-form-view/custom-input/ez-custom-form-input.js +49 -6
  76. package/dist/collection/components/ez-form-view/ez-form-view.css +5 -2
  77. package/dist/collection/components/ez-form-view/fieldbuilder/FieldBuilder.js +2 -1
  78. package/dist/collection/components/ez-form-view/fieldbuilder/templates/CheckBox.tpl.js +1 -1
  79. package/dist/collection/components/ez-form-view/fieldbuilder/templates/ComboBox.tpl.js +1 -1
  80. package/dist/collection/components/ez-form-view/fieldbuilder/templates/DateInput.tpl.js +8 -4
  81. package/dist/collection/components/ez-form-view/fieldbuilder/templates/FileInput.tpl.js +1 -1
  82. package/dist/collection/components/ez-form-view/fieldbuilder/templates/NumberInput.tpl.js +1 -1
  83. package/dist/collection/components/ez-form-view/fieldbuilder/templates/SearchInput.tpl.js +1 -1
  84. package/dist/collection/components/ez-form-view/fieldbuilder/templates/TextArea.tpl.js +1 -1
  85. package/dist/collection/components/ez-form-view/fieldbuilder/templates/TextInput.tpl.js +2 -2
  86. package/dist/collection/components/ez-grid/controller/ag-grid/AgGridController.js +297 -63
  87. package/dist/collection/components/ez-grid/controller/ag-grid/DataSource.js +151 -31
  88. package/dist/collection/components/ez-grid/controller/ag-grid/DataSourceInterceptor.js +2 -1
  89. package/dist/collection/components/ez-grid/controller/ag-grid/GridEditionManager.js +219 -42
  90. package/dist/collection/components/ez-grid/controller/ag-grid/components/EzGridCustomCellEditor.js +16 -0
  91. package/dist/collection/components/ez-grid/controller/ag-grid/components/EzGridCustomHeader.js +1 -1
  92. package/dist/collection/components/ez-grid/controller/ag-grid/editor/EzCellEditor.js +8 -0
  93. package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/ComboBox.tpl.js +2 -0
  94. package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/DateInput.tpl.js +1 -0
  95. package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/NumberInput.tpl.js +1 -0
  96. package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/Search.tpl.js +8 -1
  97. package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/TextInput.tpl.js +4 -1
  98. package/dist/collection/components/ez-grid/controller/ag-grid/test/constants/GridEditionMock.js +2 -0
  99. package/dist/collection/components/ez-grid/ez-grid.css +95 -10
  100. package/dist/collection/components/ez-grid/ez-grid.js +375 -12
  101. package/dist/collection/components/ez-grid/subcomponents/filter-column.css +4 -0
  102. package/dist/collection/components/ez-grid/subcomponents/filter-column.js +9 -46
  103. package/dist/collection/components/ez-grid/utils/ColumnFilterManager.js +7 -54
  104. package/dist/collection/components/ez-grid/utils/InMemoryFilterColumnDataSource.js +20 -4
  105. package/dist/collection/components/ez-icon/ez-icon.css +156 -149
  106. package/dist/collection/components/ez-list/ez-list.css +5 -4
  107. package/dist/collection/components/ez-list/ez-list.js +301 -212
  108. package/dist/collection/components/ez-list/ezListHelper.js +85 -0
  109. package/dist/collection/components/ez-modal/ez-modal.css +7 -2
  110. package/dist/collection/components/ez-modal/ez-modal.js +13 -4
  111. package/dist/collection/components/ez-modal-container/ez-modal-container.css +1 -0
  112. package/dist/collection/components/ez-modal-container/ez-modal-container.js +1 -1
  113. package/dist/collection/components/ez-multi-selection-list/ez-multi-selection-list.css +3 -3
  114. package/dist/collection/components/ez-multi-selection-list/ez-multi-selection-list.js +1 -1
  115. package/dist/collection/components/ez-number-input/ez-number-input.css +8 -0
  116. package/dist/collection/components/ez-number-input/ez-number-input.js +49 -1
  117. package/dist/collection/components/ez-popover-plus/ez-popover-plus.css +3 -0
  118. package/dist/collection/components/ez-popover-plus/ez-popover-plus.js +425 -0
  119. package/dist/collection/components/ez-popover-plus/subcomponent/ez-popover-core.css +67 -0
  120. package/dist/collection/components/ez-popover-plus/subcomponent/ez-popover-core.js +528 -0
  121. package/dist/collection/components/ez-popup/ez-popup.css +8 -3
  122. package/dist/collection/components/ez-popup/ez-popup.js +43 -3
  123. package/dist/collection/components/ez-scroller/ez-scroller.css +4 -0
  124. package/dist/collection/components/ez-search/ez-search.css +2 -210
  125. package/dist/collection/components/ez-search/ez-search.js +204 -203
  126. package/dist/collection/components/ez-search/subcomponent/search-list/search-list.css +227 -0
  127. package/dist/collection/components/ez-search/subcomponent/search-list/search-list.js +289 -0
  128. package/dist/collection/components/ez-search/utils/searchFormatters.js +18 -0
  129. package/dist/collection/components/ez-sidebar-button/ez-sidebar-button.css +3 -0
  130. package/dist/collection/components/ez-sidebar-button/ez-sidebar-button.js +1 -1
  131. package/dist/collection/components/ez-sidebar-navigator/ez-sidebar-navigator.css +4 -1
  132. package/dist/collection/components/ez-skeleton/ez-skeleton.css +54 -34
  133. package/dist/collection/components/ez-split-button/ez-split-button.css +52 -14
  134. package/dist/collection/components/ez-split-button/ez-split-button.js +3 -3
  135. package/dist/collection/components/ez-split-panel/ez-split-panel.css +15 -0
  136. package/dist/collection/components/ez-split-panel/ez-split-panel.js +106 -5
  137. package/dist/collection/components/ez-split-panel/interfaces/IPanelSizeInfo.js +1 -0
  138. package/dist/collection/components/ez-split-panel/structure/item/ez-split-item.css +14 -2
  139. package/dist/collection/components/ez-split-panel/structure/item/ez-split-item.js +22 -1
  140. package/dist/collection/components/ez-text-area/ez-text-area.css +78 -29
  141. package/dist/collection/components/ez-text-area/ez-text-area.js +104 -4
  142. package/dist/collection/components/ez-text-input/ez-text-input.css +106 -91
  143. package/dist/collection/components/ez-text-input/ez-text-input.js +166 -15
  144. package/dist/collection/components/ez-time-input/ez-time-input.js +24 -0
  145. package/dist/collection/components/ez-tooltip/ez-tooltip.css +20 -0
  146. package/dist/collection/components/ez-tooltip/ez-tooltip.js +116 -0
  147. package/dist/collection/components/ez-tree/ez-tree.js +21 -1
  148. package/dist/collection/components/ez-tree/subcomponents/TreeItem.js +3 -3
  149. package/dist/collection/sw.js +46 -0
  150. package/dist/collection/utils/CSSVarsUtils.js +1 -0
  151. package/dist/collection/utils/FocusResolver.js +31 -0
  152. package/dist/collection/utils/ResponsiveInputUtils.js +26 -0
  153. package/dist/collection/utils/form/DataBinder.js +22 -7
  154. package/dist/collection/utils/form/FormMetadata.js +2 -1
  155. package/dist/collection/utils/interfaces/AbstractFieldMetadata.js +1 -1
  156. package/dist/collection/utils/validators/recordvalidator/IInvalidCells.js +1 -0
  157. package/dist/collection/utils/validators/recordvalidator/RecordValidationProcessor.js +7 -1
  158. package/dist/custom-elements/index.d.ts +36 -0
  159. package/dist/custom-elements/index.js +18614 -70878
  160. package/dist/esm/{CSSVarsUtils-71ce76be.js → CSSVarsUtils-acba92d7.js} +1 -0
  161. package/dist/esm/DataBinder-9c877244.js +441 -0
  162. package/dist/esm/FocusResolver-1ccbf850.js +33 -0
  163. package/dist/esm/ez-actions-button.entry.js +4 -3
  164. package/dist/esm/ez-badge.entry.js +14 -2
  165. package/dist/esm/ez-button.entry.js +11 -5
  166. package/dist/esm/ez-card-item_2.entry.js +1480 -0
  167. package/dist/esm/ez-check.entry.js +1 -1
  168. package/dist/esm/ez-chip.entry.js +1 -1
  169. package/dist/esm/ez-collapsible-box.entry.js +1 -1
  170. package/dist/esm/ez-combo-box-list_3.entry.js +381 -0
  171. package/dist/esm/ez-combo-box.entry.js +83 -156
  172. package/dist/esm/ez-date-input.entry.js +15 -19
  173. package/dist/esm/ez-date-time-input.entry.js +14 -20
  174. package/dist/esm/ez-dialog.entry.js +15 -8
  175. package/dist/esm/ez-double-list.entry.js +283 -0
  176. package/dist/esm/{ez-dropdown.entry.js → ez-dropdown_2.entry.js} +75 -9
  177. package/dist/esm/ez-filter-input.entry.js +125 -0
  178. package/dist/esm/ez-form-view.entry.js +26 -20
  179. package/dist/esm/ez-form.entry.js +5 -324
  180. package/dist/esm/ez-grid.entry.js +14989 -69758
  181. package/dist/esm/ez-icon.entry.js +1 -1
  182. package/dist/esm/ez-list.entry.js +258 -211
  183. package/dist/esm/ez-modal-container.entry.js +2 -2
  184. package/dist/esm/ez-modal.entry.js +12 -3
  185. package/dist/esm/ez-multi-selection-list.entry.js +2 -2
  186. package/dist/esm/ez-number-input.entry.js +15 -3
  187. package/dist/esm/ez-popover-plus_3.entry.js +194 -0
  188. package/dist/esm/ez-popup.entry.js +24 -2
  189. package/dist/esm/ez-scroller_2.entry.js +3 -3
  190. package/dist/esm/ez-search.entry.js +120 -189
  191. package/dist/esm/ez-sidebar-navigator.entry.js +1 -1
  192. package/dist/esm/ez-split-button.entry.js +2 -2
  193. package/dist/esm/ez-split-item.entry.js +6 -3
  194. package/dist/esm/ez-split-panel.entry.js +69 -7
  195. package/dist/esm/ez-text-area.entry.js +68 -6
  196. package/dist/esm/ez-text-input.entry.js +152 -16
  197. package/dist/esm/ez-time-input.entry.js +7 -1
  198. package/dist/esm/ez-tooltip.entry.js +51 -0
  199. package/dist/esm/ez-tree.entry.js +5 -4
  200. package/dist/esm/ezListHelper-00fb9b8d.js +87 -0
  201. package/dist/esm/ezui.js +1 -1
  202. package/dist/esm/filter-column.entry.js +10 -47
  203. package/dist/esm/index-baa5e267.js +22 -10
  204. package/dist/esm/loader.js +1 -1
  205. package/dist/esm/searchFormatters-8229207e.js +20 -0
  206. package/dist/ezui/ezui.esm.js +1 -1
  207. package/dist/ezui/p-0fa52b0f.entry.js +1 -0
  208. package/dist/ezui/p-17de16e5.entry.js +1 -0
  209. package/dist/ezui/p-17eabf46.entry.js +1 -0
  210. package/dist/ezui/p-1ad6c61b.entry.js +1 -0
  211. package/dist/ezui/p-20c024f7.entry.js +1 -0
  212. package/dist/ezui/p-20cb13fa.entry.js +1 -0
  213. package/dist/ezui/p-23b6128c.entry.js +1 -0
  214. package/dist/ezui/p-2872fd16.entry.js +1 -0
  215. package/dist/ezui/p-288631d1.entry.js +1 -0
  216. package/dist/ezui/p-2f45506d.entry.js +1 -0
  217. package/dist/ezui/p-3195a7a7.entry.js +1 -0
  218. package/dist/ezui/p-31b71e50.entry.js +1 -0
  219. package/dist/ezui/p-31da1b57.entry.js +1 -0
  220. package/dist/ezui/p-40a60148.js +1 -0
  221. package/dist/ezui/p-556468d9.entry.js +1 -0
  222. package/dist/ezui/p-56fe5341.entry.js +1 -0
  223. package/dist/ezui/p-6cdd3e0a.entry.js +1 -0
  224. package/dist/ezui/p-788467fe.entry.js +1 -0
  225. package/dist/ezui/p-7e677b7b.entry.js +1 -0
  226. package/dist/ezui/{p-bf79aaa1.entry.js → p-7fdd479f.entry.js} +1 -1
  227. package/dist/ezui/p-80dfc50b.js +1 -0
  228. package/dist/ezui/p-a4cee65d.entry.js +1 -0
  229. package/dist/ezui/p-a69355eb.entry.js +1 -0
  230. package/dist/ezui/p-acddfb2e.js +1 -0
  231. package/dist/ezui/p-b7706b43.entry.js +1 -0
  232. package/dist/ezui/p-c1527804.entry.js +1 -0
  233. package/dist/ezui/p-c297aa52.entry.js +1 -0
  234. package/dist/ezui/p-cb1535f7.entry.js +1 -0
  235. package/dist/ezui/p-cb5cd243.entry.js +309 -0
  236. package/dist/ezui/p-cf87aacb.entry.js +1 -0
  237. package/dist/ezui/p-da1b4a38.entry.js +1 -0
  238. package/dist/ezui/p-dc628ed3.js +1 -0
  239. package/dist/ezui/p-dc73e1fe.entry.js +1 -0
  240. package/dist/ezui/p-dcf3c8e5.entry.js +1 -0
  241. package/dist/ezui/{p-17be134a.entry.js → p-e06a9886.entry.js} +1 -1
  242. package/dist/ezui/{p-84e439b9.entry.js → p-e347df9c.entry.js} +1 -1
  243. package/dist/ezui/p-e6a9041d.entry.js +1 -0
  244. package/dist/ezui/p-e75c7a23.entry.js +1 -0
  245. package/dist/ezui/p-ea54d056.entry.js +1 -0
  246. package/dist/ezui/p-ec7db713.js +1 -0
  247. package/dist/ezui/p-f5931caa.entry.js +1 -0
  248. package/dist/ezui/p-fa6732f2.entry.js +1 -0
  249. package/dist/ezui/p-fd0a19d6.entry.js +1 -0
  250. package/dist/types/components/ez-badge/ez-badge.d.ts +5 -0
  251. package/dist/types/components/ez-button/ez-button.d.ts +2 -1
  252. package/dist/types/components/ez-calendar/ez-calendar.d.ts +3 -3
  253. package/dist/types/components/ez-card-item/ez-card-item.d.ts +5 -0
  254. package/dist/types/components/ez-combo-box/ez-combo-box-list/ez-combo-box-list.d.ts +104 -0
  255. package/dist/types/components/ez-combo-box/ez-combo-box.d.ts +17 -15
  256. package/dist/types/components/ez-date-input/ez-date-input.d.ts +8 -3
  257. package/dist/types/components/ez-date-time-input/ez-date-time-input.d.ts +8 -3
  258. package/dist/types/components/ez-dialog/ez-dialog.d.ts +2 -1
  259. package/dist/types/components/ez-double-list/doubleListHelper.d.ts +10 -0
  260. package/dist/types/components/ez-double-list/ez-double-list.d.ts +87 -0
  261. package/dist/types/components/ez-dropdown/ez-dropdown.d.ts +4 -0
  262. package/dist/types/components/ez-dropdown/structure/DropdownItem.d.ts +1 -1
  263. package/dist/types/components/ez-filter-input/ez-filter-input.d.ts +6 -1
  264. package/dist/types/components/ez-form-view/custom-input/ez-custom-form-input.d.ts +7 -1
  265. package/dist/types/components/ez-form-view/fieldbuilder/templates/DateInput.tpl.d.ts +2 -1
  266. package/dist/types/components/ez-form-view/fieldbuilder/templates/TextInput.tpl.d.ts +1 -1
  267. package/dist/types/components/ez-grid/controller/EzGridController.d.ts +71 -4
  268. package/dist/types/components/ez-grid/controller/ag-grid/AgGridController.d.ts +37 -4
  269. package/dist/types/components/ez-grid/controller/ag-grid/DataSource.d.ts +25 -2
  270. package/dist/types/components/ez-grid/controller/ag-grid/GridEditionManager.d.ts +33 -7
  271. package/dist/types/components/ez-grid/controller/ag-grid/components/EzGridCustomCellEditor.d.ts +4 -1
  272. package/dist/types/components/ez-grid/controller/ag-grid/components/EzGridCustomCellRender.d.ts +1 -1
  273. package/dist/types/components/ez-grid/controller/ag-grid/components/EzGridCustomHeader.d.ts +1 -1
  274. package/dist/types/components/ez-grid/controller/ag-grid/components/cellRendererStatus.d.ts +1 -1
  275. package/dist/types/components/ez-grid/controller/ag-grid/components/selectionHeader.d.ts +1 -1
  276. package/dist/types/components/ez-grid/controller/ag-grid/editor/EzCellEditor.d.ts +2 -1
  277. package/dist/types/components/ez-grid/controller/ag-grid/editor/EzCellRender.d.ts +1 -1
  278. package/dist/types/components/ez-grid/controller/ag-grid/editor/IUICellEditor.d.ts +1 -0
  279. package/dist/types/components/ez-grid/controller/ag-grid/mock/Server.d.ts +1 -1
  280. package/dist/types/components/ez-grid/ez-grid.d.ts +59 -1
  281. package/dist/types/components/ez-grid/subcomponents/filter-column.d.ts +0 -11
  282. package/dist/types/components/ez-grid/utils/ColumnFilterManager.d.ts +1 -1
  283. package/dist/types/components/ez-grid/utils/InMemoryFilterColumnDataSource.d.ts +3 -0
  284. package/dist/types/components/ez-list/ez-list.d.ts +23 -2
  285. package/dist/types/components/ez-list/ezListHelper.d.ts +20 -0
  286. package/dist/types/components/ez-modal/ez-modal.d.ts +2 -1
  287. package/dist/types/components/ez-number-input/ez-number-input.d.ts +8 -0
  288. package/dist/types/components/ez-popover-plus/ez-popover-plus.d.ts +73 -0
  289. package/dist/types/components/ez-popover-plus/subcomponent/ez-popover-core.d.ts +91 -0
  290. package/dist/types/components/ez-popup/ez-popup.d.ts +8 -1
  291. package/dist/types/components/ez-search/ez-search.d.ts +32 -18
  292. package/dist/types/components/ez-search/subcomponent/search-list/search-list.d.ts +23 -0
  293. package/dist/types/components/ez-search/utils/searchFormatters.d.ts +2 -0
  294. package/dist/types/components/ez-split-button/ez-split-button.d.ts +1 -1
  295. package/dist/types/components/ez-split-panel/ez-split-panel.d.ts +11 -0
  296. package/dist/types/components/ez-split-panel/interfaces/IPanelSizeInfo.d.ts +9 -0
  297. package/dist/types/components/ez-split-panel/structure/item/ez-split-item.d.ts +5 -0
  298. package/dist/types/components/ez-text-area/ez-text-area.d.ts +17 -0
  299. package/dist/types/components/ez-text-input/ez-text-input.d.ts +24 -2
  300. package/dist/types/components/ez-time-input/ez-time-input.d.ts +4 -0
  301. package/dist/types/components/ez-tooltip/ez-tooltip.d.ts +21 -0
  302. package/dist/types/components/ez-tree/ez-tree.d.ts +4 -0
  303. package/dist/types/components/ez-tree/interfaces/ITreeItem.d.ts +1 -0
  304. package/dist/types/components/ez-tree/subcomponents/TreeItem.d.ts +1 -0
  305. package/dist/types/components.d.ts +793 -29
  306. package/dist/types/utils/FocusResolver.d.ts +5 -0
  307. package/dist/types/utils/ResponsiveInputUtils.d.ts +6 -0
  308. package/dist/types/utils/customEditor/interfaces/ICustomEditor.d.ts +2 -0
  309. package/dist/types/utils/form/DataBinder.d.ts +3 -0
  310. package/dist/types/utils/validators/recordvalidator/IInvalidCells.d.ts +5 -0
  311. package/dist/types/utils/validators/recordvalidator/RecordValidationProcessor.d.ts +1 -1
  312. package/package.json +11 -3
  313. package/react/components.d.ts +6 -0
  314. package/react/components.js +6 -0
  315. package/react/components.js.map +1 -1
  316. package/dist/cjs/RecordValidationProcessor-4c893e04.js +0 -102
  317. package/dist/cjs/ez-card-item_3.cjs.entry.js +0 -183
  318. package/dist/cjs/ez-custom-form-input_2.cjs.entry.js +0 -206
  319. package/dist/cjs/ez-skeleton.cjs.entry.js +0 -67
  320. package/dist/esm/RecordValidationProcessor-b00b8b77.js +0 -99
  321. package/dist/esm/ez-card-item_3.entry.js +0 -177
  322. package/dist/esm/ez-custom-form-input_2.entry.js +0 -201
  323. package/dist/esm/ez-skeleton.entry.js +0 -63
  324. package/dist/ezui/p-04f24913.js +0 -1
  325. package/dist/ezui/p-072e6347.entry.js +0 -1
  326. package/dist/ezui/p-1285c902.entry.js +0 -1
  327. package/dist/ezui/p-13d2fe2d.entry.js +0 -1
  328. package/dist/ezui/p-2097d0cf.entry.js +0 -1
  329. package/dist/ezui/p-32e553e5.entry.js +0 -304
  330. package/dist/ezui/p-34b6916c.entry.js +0 -1
  331. package/dist/ezui/p-3b4eeeb6.entry.js +0 -1
  332. package/dist/ezui/p-3faa2b46.entry.js +0 -1
  333. package/dist/ezui/p-42533ea4.entry.js +0 -1
  334. package/dist/ezui/p-49456b34.entry.js +0 -1
  335. package/dist/ezui/p-4d5235f1.entry.js +0 -1
  336. package/dist/ezui/p-5bd5e68f.entry.js +0 -1
  337. package/dist/ezui/p-650e4b6d.entry.js +0 -1
  338. package/dist/ezui/p-784fe207.entry.js +0 -1
  339. package/dist/ezui/p-7922142b.entry.js +0 -1
  340. package/dist/ezui/p-7af81663.entry.js +0 -1
  341. package/dist/ezui/p-7bc07c31.entry.js +0 -1
  342. package/dist/ezui/p-85c8baae.entry.js +0 -1
  343. package/dist/ezui/p-8888d9ed.entry.js +0 -1
  344. package/dist/ezui/p-9050d2cd.entry.js +0 -1
  345. package/dist/ezui/p-922ac38b.entry.js +0 -1
  346. package/dist/ezui/p-9e11fc7b.js +0 -1
  347. package/dist/ezui/p-a31b9c90.entry.js +0 -1
  348. package/dist/ezui/p-aba3da00.entry.js +0 -1
  349. package/dist/ezui/p-af95cd16.entry.js +0 -1
  350. package/dist/ezui/p-bae4e180.entry.js +0 -1
  351. package/dist/ezui/p-baf80b13.entry.js +0 -1
  352. package/dist/ezui/p-bcb53f27.entry.js +0 -1
  353. package/dist/ezui/p-cdc472cc.entry.js +0 -1
  354. package/dist/ezui/p-d9401ea0.entry.js +0 -1
  355. package/dist/ezui/p-e85c48d7.entry.js +0 -1
  356. package/dist/ezui/p-ecc2c1ec.entry.js +0 -1
  357. package/dist/ezui/p-fcf0acce.entry.js +0 -1
@@ -1,4 +1,4 @@
1
- import { ElementIDUtils, JSUtils, OverflowWatcher, OVERFLOWED_CLASS_NAME, StringUtils, } from '@sankhyalabs/core';
1
+ import { ElementIDUtils, JSUtils, OverflowWatcher, OVERFLOWED_CLASS_NAME, StringUtils, ApplicationContext, KeyboardManager, } from '@sankhyalabs/core';
2
2
  import { SelectionMode } from '@sankhyalabs/core/dist/dataunit/DataUnit';
3
3
  import { Host, h } from '@stencil/core';
4
4
  import { ApplicationUtils } from '../../utils';
@@ -25,6 +25,8 @@ export class EzGrid {
25
25
  this._selectionCount = undefined;
26
26
  this._hasLeftButtons = false;
27
27
  this._customFormatters = new Map();
28
+ this.enableLockManagerLoadingComp = false;
29
+ this.enableLockManagerTaskbarClick = true;
28
30
  this.multipleSelection = undefined;
29
31
  this.config = undefined;
30
32
  this.selectionToastConfig = undefined;
@@ -36,6 +38,13 @@ export class EzGrid {
36
38
  this.recordsValidator = undefined;
37
39
  this.canEdit = true;
38
40
  this.autoFocus = true;
41
+ this.paginationCounterMode = 'show';
42
+ this.enableGridInsert = false;
43
+ this.enableContinuousInsert = true;
44
+ this.suppressCheckboxColumn = false;
45
+ this.outlineMode = false;
46
+ this.enableRowTableStriped = true;
47
+ this.compact = false;
39
48
  }
40
49
  /**
41
50
  * Aplica a definição de colunas.
@@ -160,10 +169,23 @@ export class EzGrid {
160
169
  async setFocus() {
161
170
  this._gridController.setFocus();
162
171
  }
172
+ /**
173
+ * Para a edição da grade.
174
+ */
175
+ async stopEdit() {
176
+ this._gridController.stopEdit();
177
+ }
178
+ async checkStopEditOutsideClick(event) {
179
+ var _a;
180
+ if ((_a = this._container) === null || _a === void 0 ? void 0 : _a.contains(event.target))
181
+ return;
182
+ this._gridController.stopEdit();
183
+ }
163
184
  observeConfig(config) {
164
185
  this._gridController.setColumnsState(config === null || config === void 0 ? void 0 : config.columns);
165
186
  }
166
187
  updatePaginationTooltip() {
188
+ this.handleShowCancelPagination();
167
189
  if (!this._refPaginationLabelTooltip)
168
190
  return;
169
191
  const alreadyDefined = this._refPaginationLabelTooltip.getAttribute('data-tooltip');
@@ -171,12 +193,23 @@ export class EzGrid {
171
193
  this._refPaginationLabelTooltip.setAttribute('data-tooltip', this._getPaginationTooltip());
172
194
  }
173
195
  }
196
+ observePaginationCounterMode(newValue) {
197
+ if (newValue === 'hidden') {
198
+ this._hidePaginationDescription();
199
+ }
200
+ if (newValue === 'show') {
201
+ this._showPaginationDescription();
202
+ }
203
+ }
174
204
  onSelectionChange(evt) {
175
205
  this._currentPageSelected = evt.detail.selectionHeaderStatus === true;
176
206
  if (this.dataUnit) {
177
207
  this.setSelection(this.dataUnit.getSelectionInfo());
178
208
  }
179
209
  }
210
+ async handleClick(event) {
211
+ this.checkStopEditOutsideClick(event);
212
+ }
180
213
  setSelection(selectionInfo) {
181
214
  var _a;
182
215
  this._selectionCount = (_a = selectionInfo === null || selectionInfo === void 0 ? void 0 : selectionInfo.length) !== null && _a !== void 0 ? _a : 0;
@@ -329,18 +362,57 @@ export class EzGrid {
329
362
  .then(() => this.resetPaginationState());
330
363
  }
331
364
  }
365
+ nextRecord() {
366
+ if (this.dataUnit) {
367
+ if (this.dataUnit.getSelectionInfo().records.length === 0) {
368
+ this.dataUnit.selectFirst();
369
+ return;
370
+ }
371
+ this.dataUnit.nextRecord();
372
+ }
373
+ }
374
+ previousRecord() {
375
+ if (this.dataUnit) {
376
+ this.dataUnit.previousRecord();
377
+ }
378
+ }
332
379
  resetPaginationState() {
333
380
  var _a;
334
381
  this._paginationChangedByKeyboard = false;
335
- (_a = this._gridApi) === null || _a === void 0 ? void 0 : _a.clearRangeSelection();
382
+ (_a = this._gridController) === null || _a === void 0 ? void 0 : _a.resetPaginationState();
383
+ }
384
+ resolvePaginationClassMode() {
385
+ if (this.paginationCounterMode == 'show')
386
+ return "pagination-expanded";
387
+ return "pagination-contracted";
388
+ }
389
+ async handleCancelPagination() {
390
+ var _a;
391
+ this.dataUnit.cancelPagination = true;
392
+ await ((_a = this._cancelPaginationPopoverElement) === null || _a === void 0 ? void 0 : _a.hide());
393
+ }
394
+ renderCancelPagination() {
395
+ return (h("ez-popover", { ref: (element) => (this._cancelPaginationPopoverElement = element), "overlay-type": 'none', autoClose: false }, h("div", { class: 'cancel-pagination' }, h("ez-icon", { iconName: "sync", size: "x-large", class: "spin" }), h("span", { onClick: () => this.handleCancelPagination(), class: 'cancel-pagination-btn' }, "Cancelar pagina\u00E7\u00E3o"))));
396
+ }
397
+ handleShowCancelPagination() {
398
+ var _a, _b, _c;
399
+ if (!this._hasToShowCancelPagination()) {
400
+ (_a = this._cancelPaginationPopoverElement) === null || _a === void 0 ? void 0 : _a.hide();
401
+ return;
402
+ }
403
+ if ((_b = this._cancelPaginationPopoverElement) === null || _b === void 0 ? void 0 : _b.opened)
404
+ return;
405
+ (_c = this._cancelPaginationPopoverElement) === null || _c === void 0 ? void 0 : _c.show("15px");
336
406
  }
337
407
  getPaginationControl() {
338
408
  if (!this._paginationInfo)
339
409
  return null;
340
410
  const { currentPage, hasMore } = this._paginationInfo;
341
- return (h("div", { class: "grid-header__container grid-header__pagination", ref: ref => (this._refPaginationControl = ref) }, h("div", { class: "ez-text ez-text--primary ez-text--medium ez-margin-right--medium", ref: (element) => (this._refPaginationLabel = element) }, h("span", { class: "grid-header__pagination-label" }, h("strong", { class: "ez-text ez-text--primary ez-text--medium" }, this._getActualPageLabel()), this._getRemainingPageLabel())), h("div", { id: "grid-pagination-tooltip", ref: (element) => (this._refPaginationLabelTooltip = element), class: "ez-flex ez-margin-right--medium" }, h("ez-button", { size: "small", class: "ez-margin-right--medium", iconName: "chevron-left", mode: "icon", enabled: currentPage > 0, onClick: () => this.previousPage(), label: "P\u00E1gina anterior" }), h("ez-button", { size: "small", iconName: "chevron-right", mode: "icon", enabled: hasMore, onClick: () => this.nextPage(), label: "Pr\u00F3xima P\u00E1gina" }))));
411
+ return (h("div", { class: `grid-header__container grid-header__pagination ${this.resolvePaginationClassMode()}`, ref: ref => (this._refPaginationControl = ref) }, this.renderCancelPagination(), h("div", { class: "ez-text ez-text--primary ez-text--medium ez-margin-right--medium", ref: (element) => (this._refPaginationLabel = element) }, h("span", { class: "grid-header__pagination-label" }, this.paginationCounterMode == 'show' && h("strong", { class: "ez-text ez-text--primary ez-text--medium" }, this._getActualPageLabel()), this.paginationCounterMode == 'show' && this._getRemainingPageLabel())), h("div", { id: "grid-pagination-tooltip", ref: (element) => (this._refPaginationLabelTooltip = element), class: "ez-flex ez-margin-right--medium", title: `${this._getActualPageLabel()} ${this._getRemainingPageLabel()}` }, h("ez-button", { size: "small", class: "ez-margin-right--medium", iconName: "chevron-left", mode: "icon", enabled: currentPage > 0, onClick: () => this.previousPage(), label: "P\u00E1gina anterior" }), h("ez-button", { size: "small", iconName: "chevron-right", mode: "icon", enabled: hasMore, onClick: () => this.nextPage(), label: "Pr\u00F3xima P\u00E1gina" }))));
342
412
  }
343
413
  componentDidLoad() {
414
+ const _application = ApplicationContext.getContextValue("__SNK__APPLICATION__");
415
+ this.enableLockManagerLoadingComp = (!_application || (_application === null || _application === void 0 ? void 0 : _application.enableLockManagerLoadingApp)) ? this.enableLockManagerLoadingComp : false;
344
416
  this._gridController.initDatagrid(this._container, {
345
417
  onColumnStateChange: (type, state, info) => this.onColumnStateChange(type, state, info),
346
418
  onSelectionChange: (selection) => this.ezSelectionChange.emit(selection),
@@ -362,11 +434,17 @@ export class EzGrid {
362
434
  editionIsDisabled: () => !this.canEdit,
363
435
  customFormatters: this._customFormatters,
364
436
  autoFocus: this.autoFocus,
437
+ enableGridInsert: this.enableGridInsert,
438
+ enableContinuousInsert: this.enableContinuousInsert,
439
+ suppressCheckBoxCol: this.suppressCheckboxColumn,
365
440
  onRefresh: () => {
366
441
  if (this.dataUnit) {
367
442
  this.setSelection(this.dataUnit.getSelectionInfo());
368
443
  }
369
- }
444
+ },
445
+ enableLockManagerTaskbarClick: this.enableLockManagerTaskbarClick,
446
+ enableLockManagerLoadingComp: this.enableLockManagerLoadingComp,
447
+ enableRowTableStriped: this.enableRowTableStriped,
370
448
  });
371
449
  if (this.config) {
372
450
  this.observeConfig(this.config);
@@ -378,7 +456,9 @@ export class EzGrid {
378
456
  this.setEvents();
379
457
  this.componentReady.emit();
380
458
  this._gridController.configFilterColumn(this._filterColumn);
381
- this._initHeaderOverflowWatcher();
459
+ if (this.paginationCounterMode === 'auto')
460
+ this._initHeaderOverflowWatcher();
461
+ this.initKeyboardManager();
382
462
  }
383
463
  handlePaginationChange(selectFirstRecord, paginationInfo) {
384
464
  var _a;
@@ -401,11 +481,18 @@ export class EzGrid {
401
481
  const { total, count } = this._paginationInfo;
402
482
  return `${total == undefined ? ` de ${count + 1} ou mais` : ` de ${total}`}`;
403
483
  }
484
+ _hasToShowCancelPagination() {
485
+ var _a;
486
+ const { total, count } = (_a = this._paginationInfo) !== null && _a !== void 0 ? _a : {};
487
+ const hasMore = (total === undefined);
488
+ return !this.dataUnit.cancelPagination && hasMore && count > this.dataUnit.pageSize;
489
+ }
404
490
  _getPaginationTooltip() {
405
491
  return this._getActualPageLabel() + this._getRemainingPageLabel();
406
492
  }
407
493
  _initHeaderOverflowWatcher() {
408
- this._headerOverflowWatcher = new OverflowWatcher(this.buildOverFlowWatcherParams());
494
+ if (this._refPaginationControl)
495
+ this._headerOverflowWatcher = new OverflowWatcher(this.buildOverFlowWatcherParams());
409
496
  }
410
497
  buildOverFlowWatcherParams() {
411
498
  return {
@@ -436,8 +523,14 @@ export class EzGrid {
436
523
  this._refPaginationLabelTooltip.removeAttribute('data-tooltip');
437
524
  }
438
525
  disconnectedCallback() {
439
- var _a;
526
+ var _a, _b;
440
527
  (_a = this._headerOverflowWatcher) === null || _a === void 0 ? void 0 : _a.destroy();
528
+ (_b = this._gridController) === null || _b === void 0 ? void 0 : _b.destroy();
529
+ this.removeShortcuts();
530
+ }
531
+ connectedCallback() {
532
+ var _a;
533
+ (_a = this._gridController) === null || _a === void 0 ? void 0 : _a.registryListeners();
441
534
  }
442
535
  componentWillRender() {
443
536
  this.configSelectionCounter();
@@ -454,20 +547,78 @@ export class EzGrid {
454
547
  }
455
548
  componentDidUpdate() {
456
549
  this._gridController.setAutoFocus(this.autoFocus);
457
- if (this.dataUnit) {
550
+ this._gridController.setEnableGridInsert(this.enableGridInsert);
551
+ this._gridController.setEnableContinuousInsert(this.enableContinuousInsert);
552
+ if (this.dataUnit && this._showSelectionCounter) {
458
553
  this.setSelection(this.dataUnit.getSelectionInfo());
459
554
  }
460
555
  }
461
556
  getDataSource() {
462
- var _a;
463
- return (_a = this.columnfilterDataSource) !== null && _a !== void 0 ? _a : new InMemoryFilterColumnDataSource(this.dataUnit);
557
+ if (!this.columnfilterDataSource) {
558
+ this.columnfilterDataSource = new InMemoryFilterColumnDataSource(this.dataUnit);
559
+ }
560
+ return this.columnfilterDataSource;
464
561
  }
465
562
  hideHeader() {
466
- return (!!this._element.getAttribute("no-header") && !this._paginationInfo);
563
+ return !this._hasLeftButtons && !this._paginationInfo;
564
+ }
565
+ resolveLeftHeaderClass() {
566
+ if (this.paginationCounterMode == 'show')
567
+ return "left__header-expanded";
568
+ return "left__header-contracted";
569
+ }
570
+ async initKeyboardManager() {
571
+ this._keyboardManager = new KeyboardManager({ propagate: false, element: this._element });
572
+ this._keyboardManager
573
+ .bind("ctrl + .", () => {
574
+ if (!this._paginationInfo)
575
+ return;
576
+ this.nextRecord();
577
+ }, { description: "Avança para o próximo registro.", element: this._element })
578
+ .bind("ctrl + ,", () => {
579
+ if (!this._paginationInfo)
580
+ return;
581
+ this.previousRecord();
582
+ }, { description: "Retorna ao registro anterior.", element: this._element })
583
+ .bind("ctrl + alt + ArrowLeft", () => {
584
+ if (!this._paginationInfo)
585
+ return;
586
+ const { currentPage } = this._paginationInfo;
587
+ if (currentPage > 0) {
588
+ this.previousPage();
589
+ }
590
+ }, { description: "Retorna a pagina anterior.", element: this._element })
591
+ .bind("ctrl + alt + ArrowRight", () => {
592
+ if (!this._paginationInfo)
593
+ return;
594
+ const { hasMore } = this._paginationInfo;
595
+ if (hasMore) {
596
+ this.nextPage();
597
+ }
598
+ }, { description: "Avança para a próxima página.", element: this._element });
599
+ }
600
+ async removeShortcuts() {
601
+ if (this._keyboardManager) {
602
+ this._keyboardManager
603
+ .unbind("ctrl + .")
604
+ .unbind("ctrl + ,")
605
+ .unbind("ctrl + alt + ArrowLeft")
606
+ .unbind("ctrl + alt + ArrowRight");
607
+ }
467
608
  }
468
609
  render() {
469
610
  var _a;
470
- return (h(Host, { "no-header": this.hideHeader() }, h("div", { class: "grid__container ez-grid", ref: elem => (this._container = elem) }), h("div", { class: "ez-box ez-box--shadow ez-padding--medium grid-header" }, h("filter-column", { class: "grid-header__popover", noHeaderTaskBar: !this._hasLeftButtons, dataSource: this.getDataSource(), dataUnit: this.dataUnit, gridHeaderHidden: this.hideHeader(), ref: (element) => (this._filterColumn = element) }), h("div", { class: "grid-header__position" }, h("div", { class: "grid-header__container grid-header__left-container" }, h("slot", { name: "leftButtons" })), this.getPaginationControl())), h("div", { ref: (ref) => (this._gridSelectionCounter = ref), class: `grid__selection-counter ez-elevation--4
611
+ return (h(Host, { "no-header": this.hideHeader() }, h("div", { class: {
612
+ 'grid__container ez-grid': true,
613
+ 'outline-mode': this.outlineMode,
614
+ 'shadow-mode': !this.outlineMode,
615
+ 'no-padding': this.compact,
616
+ 'header-overlay': !this.hideHeader(),
617
+ }, ref: elem => (this._container = elem) }), h("div", { class: {
618
+ 'ez-box ez-padding--small grid-header': true,
619
+ 'outline-mode': this.outlineMode,
620
+ 'shadow-mode': !this.outlineMode && !this.hideHeader(),
621
+ } }, h("filter-column", { class: "grid-header__popover", noHeaderTaskBar: !this._hasLeftButtons, dataSource: this.getDataSource(), dataUnit: this.dataUnit, gridHeaderHidden: this.hideHeader(), ref: (element) => (this._filterColumn = element) }), h("div", { class: "grid-header__position" }, h("div", { class: `grid-header__container grid-header__left-container ${this.resolveLeftHeaderClass()}` }, h("slot", { name: "leftButtons" })), this.getPaginationControl())), h("div", { ref: (ref) => (this._gridSelectionCounter = ref), class: `grid__selection-counter ez-elevation--4
471
622
  ${this._showSelectionCounter ? 'grid__selection-counter--opened' : ''}
472
623
  ` }, h(SelectionCounter, { selectionCount: this._selectionCount, currentPageSelected: this._currentPageSelected, paginationInfo: this._paginationInfo, canSelectAll: (_a = this.selectionToastConfig) === null || _a === void 0 ? void 0 : _a.canSelectAll, allRecordSelected: this._isAllSelection, onSelectAll: () => this.onSelectAllRecords(), onSelectPage: () => this.onSelectPageRecords(), onClearAll: () => this.onClearSelectedRecords(), onClose: () => (this._showSelectionCounter = false) })), h("div", { class: "grid__footer" }, h("slot", { name: "footer" }))));
473
624
  }
@@ -486,6 +637,42 @@ export class EzGrid {
486
637
  static get assetsDirs() { return ["../assets"]; }
487
638
  static get properties() {
488
639
  return {
640
+ "enableLockManagerLoadingComp": {
641
+ "type": "boolean",
642
+ "mutable": false,
643
+ "complexType": {
644
+ "original": "boolean",
645
+ "resolved": "boolean",
646
+ "references": {}
647
+ },
648
+ "required": false,
649
+ "optional": true,
650
+ "docs": {
651
+ "tags": [],
652
+ "text": "Define se o componente deve usar o LockManager para controle de carregamento da aplica\u00E7\u00E3o"
653
+ },
654
+ "attribute": "enable-lock-manager-loading-comp",
655
+ "reflect": false,
656
+ "defaultValue": "false"
657
+ },
658
+ "enableLockManagerTaskbarClick": {
659
+ "type": "boolean",
660
+ "mutable": false,
661
+ "complexType": {
662
+ "original": "boolean",
663
+ "resolved": "boolean",
664
+ "references": {}
665
+ },
666
+ "required": false,
667
+ "optional": true,
668
+ "docs": {
669
+ "tags": [],
670
+ "text": "Ativa inser\u00E7\u00E3o de registros no modo grade pela Taskbar."
671
+ },
672
+ "attribute": "enable-lock-manager-taskbar-click",
673
+ "reflect": false,
674
+ "defaultValue": "true"
675
+ },
489
676
  "multipleSelection": {
490
677
  "type": "boolean",
491
678
  "mutable": false,
@@ -697,6 +884,132 @@ export class EzGrid {
697
884
  "attribute": "auto-focus",
698
885
  "reflect": false,
699
886
  "defaultValue": "true"
887
+ },
888
+ "paginationCounterMode": {
889
+ "type": "string",
890
+ "mutable": false,
891
+ "complexType": {
892
+ "original": "'show' | 'hidden' | 'auto'",
893
+ "resolved": "\"auto\" | \"hidden\" | \"show\"",
894
+ "references": {}
895
+ },
896
+ "required": false,
897
+ "optional": true,
898
+ "docs": {
899
+ "tags": [],
900
+ "text": "Define se a grid ser\u00E1 focada ao ser carregada."
901
+ },
902
+ "attribute": "pagination-counter-mode",
903
+ "reflect": false,
904
+ "defaultValue": "'show'"
905
+ },
906
+ "enableGridInsert": {
907
+ "type": "boolean",
908
+ "mutable": false,
909
+ "complexType": {
910
+ "original": "boolean",
911
+ "resolved": "boolean",
912
+ "references": {}
913
+ },
914
+ "required": false,
915
+ "optional": true,
916
+ "docs": {
917
+ "tags": [],
918
+ "text": "Ativa inser\u00E7\u00E3o de registros no modo grade."
919
+ },
920
+ "attribute": "enable-grid-insert",
921
+ "reflect": false,
922
+ "defaultValue": "false"
923
+ },
924
+ "enableContinuousInsert": {
925
+ "type": "boolean",
926
+ "mutable": false,
927
+ "complexType": {
928
+ "original": "boolean",
929
+ "resolved": "boolean",
930
+ "references": {}
931
+ },
932
+ "required": false,
933
+ "optional": true,
934
+ "docs": {
935
+ "tags": [],
936
+ "text": "Ativa/desativa a inser\u00E7\u00E3o continua na grade\nS\u00F3 funciona quando a prop enableGridInsert est\u00E1 ativa"
937
+ },
938
+ "attribute": "enable-continuous-insert",
939
+ "reflect": false,
940
+ "defaultValue": "true"
941
+ },
942
+ "suppressCheckboxColumn": {
943
+ "type": "boolean",
944
+ "mutable": false,
945
+ "complexType": {
946
+ "original": "boolean",
947
+ "resolved": "boolean",
948
+ "references": {}
949
+ },
950
+ "required": false,
951
+ "optional": true,
952
+ "docs": {
953
+ "tags": [],
954
+ "text": "Informa se a coluna de chechbox deve ser suprimida"
955
+ },
956
+ "attribute": "suppress-checkbox-column",
957
+ "reflect": false,
958
+ "defaultValue": "false"
959
+ },
960
+ "outlineMode": {
961
+ "type": "boolean",
962
+ "mutable": false,
963
+ "complexType": {
964
+ "original": "boolean",
965
+ "resolved": "boolean",
966
+ "references": {}
967
+ },
968
+ "required": false,
969
+ "optional": true,
970
+ "docs": {
971
+ "tags": [],
972
+ "text": "Altera visualmente as sombras e bordas do componente\nQuando false, aplica o padr\u00E3o de sombras ao componente (Utilizar quando for o elemento principal do layout)\nQuando true, aplica o padr\u00E3o de outline ao componente (Utilizar quando estiver contido em outro elemento como um painel ou pop-up)"
973
+ },
974
+ "attribute": "outline-mode",
975
+ "reflect": false,
976
+ "defaultValue": "false"
977
+ },
978
+ "enableRowTableStriped": {
979
+ "type": "boolean",
980
+ "mutable": false,
981
+ "complexType": {
982
+ "original": "boolean",
983
+ "resolved": "boolean",
984
+ "references": {}
985
+ },
986
+ "required": false,
987
+ "optional": true,
988
+ "docs": {
989
+ "tags": [],
990
+ "text": "Ativa modo de linhas com cores alternadas."
991
+ },
992
+ "attribute": "enable-row-table-striped",
993
+ "reflect": false,
994
+ "defaultValue": "true"
995
+ },
996
+ "compact": {
997
+ "type": "boolean",
998
+ "mutable": false,
999
+ "complexType": {
1000
+ "original": "boolean",
1001
+ "resolved": "boolean",
1002
+ "references": {}
1003
+ },
1004
+ "required": false,
1005
+ "optional": true,
1006
+ "docs": {
1007
+ "tags": [],
1008
+ "text": "Define se a grade deve ser exibida em modo compacto"
1009
+ },
1010
+ "attribute": "compact",
1011
+ "reflect": false,
1012
+ "defaultValue": "false"
700
1013
  }
701
1014
  };
702
1015
  }
@@ -1201,6 +1514,47 @@ export class EzGrid {
1201
1514
  "text": "Atribui o foco para a grade.",
1202
1515
  "tags": []
1203
1516
  }
1517
+ },
1518
+ "stopEdit": {
1519
+ "complexType": {
1520
+ "signature": "() => Promise<void>",
1521
+ "parameters": [],
1522
+ "references": {
1523
+ "Promise": {
1524
+ "location": "global"
1525
+ }
1526
+ },
1527
+ "return": "Promise<void>"
1528
+ },
1529
+ "docs": {
1530
+ "text": "Para a edi\u00E7\u00E3o da grade.",
1531
+ "tags": []
1532
+ }
1533
+ },
1534
+ "checkStopEditOutsideClick": {
1535
+ "complexType": {
1536
+ "signature": "(event: MouseEvent) => Promise<void>",
1537
+ "parameters": [{
1538
+ "tags": [],
1539
+ "text": ""
1540
+ }],
1541
+ "references": {
1542
+ "Promise": {
1543
+ "location": "global"
1544
+ },
1545
+ "MouseEvent": {
1546
+ "location": "global"
1547
+ },
1548
+ "Node": {
1549
+ "location": "global"
1550
+ }
1551
+ },
1552
+ "return": "Promise<void>"
1553
+ },
1554
+ "docs": {
1555
+ "text": "",
1556
+ "tags": []
1557
+ }
1204
1558
  }
1205
1559
  };
1206
1560
  }
@@ -1212,6 +1566,9 @@ export class EzGrid {
1212
1566
  }, {
1213
1567
  "propName": "_paginationInfo",
1214
1568
  "methodName": "updatePaginationTooltip"
1569
+ }, {
1570
+ "propName": "paginationCounterMode",
1571
+ "methodName": "observePaginationCounterMode"
1215
1572
  }];
1216
1573
  }
1217
1574
  static get listeners() {
@@ -1221,6 +1578,12 @@ export class EzGrid {
1221
1578
  "target": undefined,
1222
1579
  "capture": false,
1223
1580
  "passive": false
1581
+ }, {
1582
+ "name": "click",
1583
+ "method": "handleClick",
1584
+ "target": undefined,
1585
+ "capture": true,
1586
+ "passive": false
1224
1587
  }];
1225
1588
  }
1226
1589
  }
@@ -31,4 +31,8 @@
31
31
 
32
32
  .filter-column__header-title {
33
33
  margin-left: 8px;
34
+ }
35
+
36
+ #filter-column-selection-list {
37
+ --ez-multi-selection-default-height: unset;
34
38
  }
@@ -8,13 +8,6 @@ const onSubmitFilter = new CustomEvent('onSubmitFilter', {
8
8
  });
9
9
  export class FilterColumn {
10
10
  constructor() {
11
- this.TOP_POSITION = '65';
12
- this.TOP_POSITION_HEADER_HIDDEN = '18';
13
- this.TOP_POSITION_NO_TASKBAR = '32';
14
- this.TOP_POSITION_NO_TASKBAR_HEADER_HIDDEN = '20';
15
- this.DEFAULT_HEIGHT = 430;
16
- this.FIX_MARGIN = 60;
17
- this.FILTER_COLUMN_WIDTH = 330;
18
11
  this.opened = true;
19
12
  this.columnName = undefined;
20
13
  this.columnLabel = undefined;
@@ -44,50 +37,14 @@ export class FilterColumn {
44
37
  this.columnName = configs.columnName;
45
38
  this.columnLabel = configs.columnLabel;
46
39
  await this.setOptions(configs.filteredOptions);
47
- await this.ezPopoverElement.show(this.calcTopPosition(), this.calculateLeftPosition(configs));
40
+ await this.ezPopoverElement.showUnder(`filter-column-${configs.columnName}-${this.dataUnit.dataUnitId}`);
48
41
  }
49
42
  }
50
- calculateLeftPosition({ leftPosition, fromIcon }) {
51
- const leftPositionCalculated = this.calcFilterColumnLeftPosition(leftPosition);
52
- if (!fromIcon) {
53
- return `${leftPositionCalculated}px`;
54
- }
55
- const difference = this.ezPopoverElement.getBoundingClientRect().left;
56
- const leftResolved = (leftPositionCalculated + 16) - difference;
57
- return `${(leftResolved > 0 ? leftResolved : 0)}px`;
58
- }
59
- calcFilterColumnLeftPosition(leftReference) {
60
- var _a, _b;
61
- const gridReference = this.ezPopoverElement.closest("ez-grid");
62
- const gridLimit = (_a = gridReference.getBoundingClientRect()) === null || _a === void 0 ? void 0 : _a.right;
63
- const popoverDiff = (_b = this.ezPopoverElement.getBoundingClientRect()) === null || _b === void 0 ? void 0 : _b.left;
64
- const maxLeft = gridLimit - (this.FILTER_COLUMN_WIDTH + popoverDiff);
65
- const leftInt = leftReference - (this.FIX_MARGIN + popoverDiff);
66
- return leftInt > maxLeft ? maxLeft : leftInt;
67
- }
68
43
  buildIsTextSearch() {
69
44
  var _a, _b;
70
45
  const userInterface = (_b = (_a = this.fieldDescriptor) === null || _a === void 0 ? void 0 : _a.userInterface) !== null && _b !== void 0 ? _b : UserInterface.SHORTTEXT;
71
46
  this.isTextSearch = !(userInterface === UserInterface.DECIMALNUMBER || userInterface === UserInterface.INTEGERNUMBER);
72
47
  }
73
- calcTopPosition() {
74
- const referencePosition = this.buildReferenceTopPosition();
75
- const totalPopoverHeight = parseInt(referencePosition) + this.DEFAULT_HEIGHT;
76
- const popoverPosition = Math.round(this.ezPopoverElement.getBoundingClientRect().top);
77
- const popoverBottomPosition = popoverPosition + totalPopoverHeight;
78
- const windowHeight = window.innerHeight;
79
- if (windowHeight > popoverBottomPosition) {
80
- return `${referencePosition}px`;
81
- }
82
- const differenceBetween = windowHeight - popoverBottomPosition;
83
- return `${differenceBetween}px`;
84
- }
85
- buildReferenceTopPosition() {
86
- if (this.noHeaderTaskBar) {
87
- return this.gridHeaderHidden ? this.TOP_POSITION_NO_TASKBAR_HEADER_HIDDEN : this.TOP_POSITION_NO_TASKBAR;
88
- }
89
- return this.gridHeaderHidden ? this.TOP_POSITION_HEADER_HIDDEN : this.TOP_POSITION;
90
- }
91
48
  async clearConfigs() {
92
49
  var _a;
93
50
  await ((_a = this.ezMultiSelectionList) === null || _a === void 0 ? void 0 : _a.clearFilteredOptions());
@@ -145,7 +102,13 @@ export class FilterColumn {
145
102
  { label: 'Não', value: 'false', check: true },
146
103
  ];
147
104
  }
148
- const optionsObject = JSON.parse((_b = (_a = this.fieldDescriptor) === null || _a === void 0 ? void 0 : _a.properties) === null || _b === void 0 ? void 0 : _b.options);
105
+ const options = (_b = (_a = this.fieldDescriptor) === null || _a === void 0 ? void 0 : _a.properties) === null || _b === void 0 ? void 0 : _b.options;
106
+ if (Array.isArray(options)) {
107
+ return options.map((option) => {
108
+ return { label: option.value, value: option.value, check: true };
109
+ });
110
+ }
111
+ const optionsObject = JSON.parse(options);
149
112
  const objectKeys = Object.keys(optionsObject);
150
113
  return objectKeys.map(key => {
151
114
  return { label: optionsObject[key], value: key, check: true };
@@ -157,7 +120,7 @@ export class FilterColumn {
157
120
  }
158
121
  }
159
122
  render() {
160
- return (h("ez-popover", { class: 'filter-column__popover', "overlay-type": 'none', ref: (element) => (this.ezPopoverElement = element), autoClose: true, onEzVisibilityChange: this.handleEzVisibilityChange.bind(this) }, h("section", { class: 'filter-column' }, h("header", { class: 'filter-column__header' }, h("span", { class: 'ez-text ez-text--medium filter-column__header-title' }, "Filtro da coluna ", this.columnLabel), h("ez-button", { mode: 'icon', "icon-name": 'close', class: 'ez-button--tertiary', onClick: () => this.hide() })), h("ez-multi-selection-list", { columnName: this.columnName, dataSource: this.dataSource, options: this.options, useOptions: this.useOptions, ref: (element) => (this.ezMultiSelectionList = element), onChangeFilteredOptions: (event) => this.changeSelectedItems(event.detail), isTextSearch: this.isTextSearch }), h("footer", { class: 'filter-column__footer' }, h("ez-button", { label: 'Aplicar', class: 'ez-button--primary', onClick: this.submit.bind(this) })))));
123
+ return (h("ez-popover-plus", { ref: (element) => (this.ezPopoverElement = element), class: 'filter-column__popover', "overlay-type": 'none', autoClose: true, onEzVisibilityChange: this.handleEzVisibilityChange.bind(this) }, h("section", { class: 'filter-column' }, h("header", { class: 'filter-column__header' }, h("span", { class: 'ez-text ez-text--medium filter-column__header-title' }, "Filtro da coluna ", this.columnLabel), h("ez-button", { mode: 'icon', "icon-name": 'close', class: 'ez-button--tertiary', onClick: () => this.hide() })), h("ez-multi-selection-list", { id: 'filter-column-selection-list', columnName: this.columnName, dataSource: this.dataSource, options: this.options, useOptions: this.useOptions, ref: (element) => (this.ezMultiSelectionList = element), onChangeFilteredOptions: (event) => this.changeSelectedItems(event.detail), isTextSearch: this.isTextSearch }), h("footer", { class: 'filter-column__footer' }, h("ez-button", { label: 'Aplicar', class: 'ez-button--primary', onClick: this.submit.bind(this) })))));
161
124
  }
162
125
  static get is() { return "filter-column"; }
163
126
  static get originalStyleUrls() {